Skip to content

Commit

Permalink
chore: release v2.20.1 (#6116)
Browse files Browse the repository at this point in the history
* chore(deps): update devdependency eslint-plugin-standard to ^4.0.2 (#5944)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency eslint-config-standard to v15 (#5945)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency terser to ^5.3.8 (#5948)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore:fix missing ` in carousel documentation (#5951)

* chore(deps): update devdependency sass-loader to ^10.0.4 (#5952)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): update devdependency postcss to ^8.1.3 (#5953)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update all non-major dependencies to ^26.6.1 (#5956)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore: update contributors

* chore(deps): update devdependency @testing-library/jest-dom to ^5.11.5 (#5957)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update all non-major dependencies (#5959)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(b-avatar): prevent avatar from being squished (#5963)

Closes #5962

* chore(deps): update devdependency vue-router to ^3.4.8 (#5966)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency lint-staged to ^10.5.0 (#5967)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency eslint to ^7.12.1 (#5969)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update README.md (#5971)

Spelling correction

* chore(deps): update devdependency eslint-config-prettier to ^6.15.0 (#5972)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency eslint-config-standard to ^15.0.1 (#5974)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* feat(b-media): improve aside right handling (#5965)

* fix(b-media): removed utility classes and added style

* fix(b-media): removed utility classes and added style

* fix(b-media): Changes according to suggestions for media

* feat(b-media): added prop desc in component's package.json

* feat(b-media-asign): advanced `right` handling

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): update devdependency execa to ^4.1.0 (#5976)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(b-avatar): badge `z-index` handling (#5975)

* chore(deps): update devdependency bootstrap-icons to ^1.1.0 (#5977)

* chore(deps): update devdependency bootstrap-icons to ^1.1.0

* Update .bundlewatch.config.json

* Regenerate icon files

* Update README.md

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): replace `<b-input>` with `<b-form-input>` (#5978)

* chore(docs): replace b-input with b-form-input

* chore(docs): fix single root element in example

* chore(docs): fix single root element in example

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): update devdependency eslint-config-standard to v16 (#5979)

* chore(deps): update devdependency eslint-config-standard to v16

* chore(lint): fix errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): update devdependency postcss-cli to ^8.2.0 (#5983)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Switched comments (#5984)

* chore(deps): update devdependency eslint-config-standard to ^16.0.1 (#5987)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency lint-staged to ^10.5.1 (#5989)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency @vue/test-utils to ^1.1.1 (#5991)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency rollup to ^2.33.0 (#5992)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore: migrate from `node-sass` to `sass` (Dart Sass) (#5990)

* chore(deps): update devdependency node-sass to v5

* chore: migrate from `node-sass` to `sass` (Dart Sass)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): update devdependency rollup to ^2.33.1 (#5993)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency sass-loader to ^10.0.5 (#5996)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency babel-jest to ^26.6.2 (#5997)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update devdependency jest to ^26.6.2 (#5999)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(docs): add gull & dexam themes (#5995)

* GUll vue added in themes section

* dexam landing pages added in doc themes section

* update gull and dexam themes details

* typo fix in gull yaml file

* fix description

* update gull description

* update dexam description

* layout break fix

* Update themes

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(ci): update Node.js versions (#6001)

* chore(ci): update Node.js versions

* Update build.yml

* Update test.yml

* chore: add `SECURITY.md` (#6002)

* chore(ci): add CodeQL action (#6003)

* chore(ci): add CodeQL action

* fix(ci): move action to workflows dir

* chore(ci): move to Dependabot for all dependency updates (#6004)

* chore(deps-dev): bump @babel/standalone from 7.12.4 to 7.12.5 (#6010)

Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone) from 7.12.4 to 7.12.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.5/packages/babel-standalone)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump babel-jest from 26.6.2 to 26.6.3 (#6011)

Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 26.6.2 to 26.6.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.6.3/packages/babel-jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump jest from 26.6.2 to 26.6.3 (#6012)

Bumps [jest](https://github.com/facebook/jest) from 26.6.2 to 26.6.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](jestjs/jest@v26.6.2...v26.6.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): improve component name formatting (#6014)

* fix(b-form-checkbox/b-form-radio): `chnage` event timing (#6008)

* fix(b-form-group): accessibility when `label-for` prop not set (#6006)

* chore: unify interval/timeout handling (#6015)

* fix(b-dropdown): click handling on close (closes #5982) (#6009)

* fix(b-dropdown): click handling on close

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* Update dropdown.js

* chore(deps-dev): bump sass from 1.28.0 to 1.29.0 (#6018)

Bumps [sass](https://github.com/sass/dart-sass) from 1.28.0 to 1.29.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md)
- [Commits](sass/dart-sass@1.28.0...1.29.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump marked from 1.2.2 to 1.2.3 (#6017)

Bumps [marked](https://github.com/markedjs/marked) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](markedjs/marked@v1.2.2...v1.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/standalone from 7.12.5 to 7.12.6 (#6016)

Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone) from 7.12.5 to 7.12.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.6/packages/babel-standalone)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): add another `pageOptions` setting example (#6019)

* chore(docs): add another `pageOptions` example in table component doc

* chore(docs): correct a sentence in table component doc

chore(docs): correct a sentence in table component doc

* Update README.md

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump postcss from 8.1.4 to 8.1.6 (#6021)

Bumps [postcss](https://github.com/postcss/postcss) from 8.1.4 to 8.1.6.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss@8.1.4...8.1.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump vue-router from 3.4.8 to 3.4.9 (#6022)

Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.4.8 to 3.4.9.
- [Release notes](https://github.com/vuejs/vue-router/releases)
- [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md)
- [Commits](vuejs/vue-router@v3.4.8...v3.4.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* feat(config): improved defaults handling (closes #4507, #5138, #5291, #5459, #5958) (#5981)

* specify support of sidebar + array

* Initial Concept

* remove test code

* Remove `config-default.js`

* Update componentdoc.vue

* Update bootstrap-vue.js

* feat(config): code improvements

* fix: fallback config handling for date/time components

* update calendar.js

* feat(config): make all props configurable [WIP]

* Update aspect.js

* Update avatar-group.js

* Update avatar.js

* Update form-datepicker.js

* fix(config): default value handling in `makePropsConfigurable()`

* Update config.spec.js

* Update config.js

* Update componentdoc.vue

* Apply `makePropsConfigurable` to all components

* Update object.js

* Update object.js

* fix linting errors

* Revert "fix linting errors"

This reverts commit 786886f.

* Update form-input.js

* Update form-spinbutton.js

* fix(form-file): `fileNameFormatter` prop handling

* fix: property `validator` context

* Update form-tags.js

* Update pagination-nav.js

* Update toast.js

* Update button.js

* Update calendar.js

* Update bv-modal.js

* Update form-size.js

* Update mixin-selectable.js

* Update mixin-tfoot.js

* Update mixin-thead.js

* Update bv-toast.js

* Update popover.js

* Update tooltip.js

* Update tbody.js

* Update td.js

* Update tfoot.js

* Update thead.js

* Update tr.js

* Update pagination.js

* Update button-group.js

* Update button.js

* Update form-datepicker.js

* Update form-timepicker.js

* Update time.js

* Update button-toolbar.js

* Update calendar.js

* Update form-file.js

* Update form-rating.js

* Update mixin-options.js

* Update form-spinbutton.js

* Update form-tags.js

* Update nav-item.js

* Update mixin-busy.js

* Update mixin-caption.js

* Update mixin-empty.js

* Update mixin-filtering.js

* Update mixin-items.js

* Update mixin-pagination.js

* Update mixin-provider.js

* Update mixin-sorting.js

* Update mixin-stacked.js

* Update mixin-table-renderer.js

* Update mixin-tbody-row.js

* Update icon.js

* Update iconstack.js

* Update card.js

* Update dropdown.js

* Update form-options.js

* Update form-radio-check-group.js

* Update form-radio-check.js

* Update form-text.js

* Update form.js

* Update mixin-filtering.js

* Update pagination.js

* Update form-text.js

* Update modal.js

* chore: remove redundant istanbul ignores

* fix: add back some istanbul ignore

* fix(config): ensure props from mixins are configurabel via component config

* fix: resuse `form-plain` mixin everywhere

* feat: improve form control mixins

* Update README.md

* Update componentdoc.vue

* Update SECURITY.md

* Update README.md

* Update breadcrumb.js

* fix: size prop default value

* Update input-group.js

* fix(config): `makePropsConfigurable()` usage without key

* Update config.js

* Update config.js

* Update button-close.js

* Update toaster.js

* Update calendar.js

* Update carousel.js

* Update dropdown.js

* Update dropdown.spec.js

* Update img-lazy.js

* Update config.spec.js

* Update avatar.js

* feat: further improve shared form props usage

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore: bump version to v2.19.0 (#6025)

* chore(deps-dev): bump core-js from 3.6.5 to 3.7.0 (#6027)

Bumps [core-js](https://github.com/zloirock/core-js) from 3.6.5 to 3.7.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](zloirock/core-js@v3.6.5...v3.7.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump eslint from 7.12.1 to 7.13.0 (#6028)

Bumps [eslint](https://github.com/eslint/eslint) from 7.12.1 to 7.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v7.12.1...v7.13.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): correct comment to Nuxt.js module `icons` option

* chore(deps-dev): bump eslint-plugin-standard from 4.0.2 to 4.1.0 (#6033)

Bumps [eslint-plugin-standard](https://github.com/standard/eslint-plugin-standard) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/standard/eslint-plugin-standard/releases)
- [Commits](standard/eslint-plugin-standard@v4.0.2...v4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump autoprefixer from 10.0.1 to 10.0.2 (#6036)

Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](postcss/autoprefixer@10.0.1...10.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump postcss from 8.1.6 to 8.1.7 (#6037)

Bumps [postcss](https://github.com/postcss/postcss) from 8.1.6 to 8.1.7.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss@8.1.6...8.1.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): fix gull & dexam preview image link  (#6040)

* GUll vue added in themes section

* dexam landing pages added in doc themes section

* update gull and dexam themes details

* typo fix in gull yaml file

* fix description

* update gull description

* update dexam description

* layout break fix

* Update themes

* gull&dexam theme preview image link fixed

* Update dexam-startup-and-product-landing-page.yaml

* Update gull-admin-dashboard.yaml

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump sass-loader from 10.0.5 to 10.1.0 (#6041)

Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 10.0.5 to 10.1.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/sass-loader@v10.0.5...v10.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump eslint-plugin-jest from 24.1.0 to 24.1.2 (#6042)

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.1.0 to 24.1.2.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v24.1.0...v24.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(docs): update "Can I use" links (#6043)

* chore(deps-dev): bump eslint-plugin-jest from 24.1.2 to 24.1.3 (#6044)

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.1.2 to 24.1.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v24.1.2...v24.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump marked from 1.2.3 to 1.2.4 (#6049)

Bumps [marked](https://github.com/markedjs/marked) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](markedjs/marked@v1.2.3...v1.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @testing-library/jest-dom from 5.11.5 to 5.11.6 (#6048)

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.11.5 to 5.11.6.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.11.5...v5.11.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump rollup from 2.33.1 to 2.33.2 (#6050)

Bumps [rollup](https://github.com/rollup/rollup) from 2.33.1 to 2.33.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.33.1...v2.33.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump terser from 5.3.8 to 5.4.0 (#6053)

Bumps [terser](https://github.com/terser/terser) from 5.3.8 to 5.4.0.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](terser/terser@v5.3.8...v5.4.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump eslint-config-standard from 16.0.1 to 16.0.2 (#6055)

Bumps [eslint-config-standard](https://github.com/standard/eslint-config-standard) from 16.0.1 to 16.0.2.
- [Release notes](https://github.com/standard/eslint-config-standard/releases)
- [Changelog](https://github.com/standard/eslint-config-standard/blob/master/CHANGELOG.md)
- [Commits](standard/eslint-config-standard@v16.0.1...v16.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump rollup from 2.33.2 to 2.33.3 (#6054)

Bumps [rollup](https://github.com/rollup/rollup) from 2.33.2 to 2.33.3.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.33.2...v2.33.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump postcss-cli from 8.2.0 to 8.3.0 (#6056)

Bumps [postcss-cli](https://github.com/postcss/postcss-cli) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/postcss/postcss-cli/releases)
- [Changelog](https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss-cli@8.2.0...8.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump terser from 5.4.0 to 5.5.0 (#6057)

Bumps [terser](https://github.com/terser/terser) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](terser/terser@v5.4.0...v5.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump codemirror from 5.58.2 to 5.58.3 (#6058)

Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.58.2 to 5.58.3.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](codemirror/codemirror5@5.58.2...5.58.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @nuxt/content from 1.10.0 to 1.11.0 (#6059)

Bumps [@nuxt/content](https://github.com/nuxt/content) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/nuxt/content/releases)
- [Changelog](https://github.com/nuxt/content/blob/dev/docs/CHANGELOG.md)
- [Commits](https://github.com/nuxt/content/compare/@nuxt/content@1.10.0...@nuxt/content@1.11.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump highlight.js from 9.18.3 to 9.18.4 (#6060)

Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.3 to 9.18.4.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump postcss from 8.1.7 to 8.1.8 (#6065)

Bumps [postcss](https://github.com/postcss/postcss) from 8.1.7 to 8.1.8.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss@8.1.7...8.1.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump highlight.js from 9.18.4 to 9.18.5 (#6066)

Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.4 to 9.18.5.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/9.18.5/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/commits/9.18.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump marked from 1.2.4 to 1.2.5 (#6067)

Bumps [marked](https://github.com/markedjs/marked) from 1.2.4 to 1.2.5.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](markedjs/marked@v1.2.4...v1.2.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/cli from 7.12.1 to 7.12.7 (#6072)

Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.1 to 7.12.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.7/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @babel/preset-env from 7.12.1 to 7.12.7 (#6073)

Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.1 to 7.12.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.7/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump postcss from 8.1.8 to 8.1.9 (#6074)

Bumps [postcss](https://github.com/postcss/postcss) from 8.1.8 to 8.1.9.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss@8.1.8...8.1.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/standalone from 7.12.6 to 7.12.7 (#6075)

Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone) from 7.12.6 to 7.12.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.7/packages/babel-standalone)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump eslint-plugin-standard from 4.1.0 to 5.0.0 (#6071)

Bumps [eslint-plugin-standard](https://github.com/standard/eslint-plugin-standard) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/standard/eslint-plugin-standard/releases)
- [Commits](standard/eslint-plugin-standard@v4.1.0...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): remove deperacted `eslint-plugin-standard` (#6077)

* chore(deps-dev): bump eslint from 7.13.0 to 7.14.0 (#6081)

Bumps [eslint](https://github.com/eslint/eslint) from 7.13.0 to 7.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v7.13.0...v7.14.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump postcss from 8.1.9 to 8.1.10 (#6079)

Bumps [postcss](https://github.com/postcss/postcss) from 8.1.9 to 8.1.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](postcss/postcss@8.1.9...8.1.10)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/core from 7.12.3 to 7.12.8 (#6083)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.3 to 7.12.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.8/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/cli from 7.12.7 to 7.12.8 (#6082)

Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.7 to 7.12.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.8/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/standalone from 7.12.7 to 7.12.8 (#6080)

Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone) from 7.12.7 to 7.12.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.8/packages/babel-standalone)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* fix(b-form-input): modified value handling (#6084)

* fix: user supplied prop function detection (#6070)

* chore(deps-dev): bump @nuxt/content from 1.11.0 to 1.11.1 (#6089)

Bumps [@nuxt/content](https://github.com/nuxt/content) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/nuxt/content/releases)
- [Changelog](https://github.com/nuxt/content/blob/dev/docs/CHANGELOG.md)
- [Commits](https://github.com/nuxt/content/compare/@nuxt/content@1.11.0...@nuxt/content@1.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump lint-staged from 10.5.1 to 10.5.2 (#6088)

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.1 to 10.5.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v10.5.1...v10.5.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/standalone from 7.12.8 to 7.12.9 (#6087)

Bumps [@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone) from 7.12.8 to 7.12.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.9/packages/babel-standalone)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @babel/core from 7.12.8 to 7.12.9 (#6086)

Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.8 to 7.12.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.9/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps): regenerate lockfile (#6091)

* chore(deps-dev): bump core-js from 3.7.0 to 3.8.0 (#6093)

Bumps [core-js](https://github.com/zloirock/core-js) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](zloirock/core-js@v3.7.0...v3.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump autoprefixer from 10.0.2 to 10.0.3 (#6096)

Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.0.2 to 10.0.3.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](postcss/autoprefixer@10.0.2...10.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(b-table): only set `tabindex="0"` for sortable TH's (#6102)

* fix(b-form-spinbutton): button markup (#6101)

* chore(refactor): improved code sharing between form components (#6100)

* chore(refactor): improved code sharing between form components

* Update form-checkbox-group.spec.js

* Update form-radio-group.spec.js

* Update form-radio-group.js

* Update form-radio-check-group.js

* Update form-radio-group.js

* fix(b-form-tags): required handling (closes #6094) (#6103)

* fix(b-form-tags): required handling

* Update form-tags.js

* Update form-tags.js

* Update form-tags.js

* Update form-tags.spec.js

* feat(b-form-tags): add `reset` method (#6104)

* feat(b-form-tags): add `reset` method

* Update form-tags.js

* chore(deps-dev): bump autoprefixer from 10.0.3 to 10.0.4 (#6106)

Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.0.3 to 10.0.4.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](postcss/autoprefixer@10.0.3...10.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump rollup from 2.33.3 to 2.34.0 (#6107)

Bumps [rollup](https://github.com/rollup/rollup) from 2.33.3 to 2.34.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.33.3...v2.34.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump @nuxtjs/pwa from 3.2.2 to 3.3.1 (#6108)

Bumps [@nuxtjs/pwa](https://github.com/nuxt-community/pwa-module) from 3.2.2 to 3.3.1.
- [Release notes](https://github.com/nuxt-community/pwa-module/releases)
- [Changelog](https://github.com/nuxt-community/pwa-module/blob/master/CHANGELOG.md)
- [Commits](nuxt-community/pwa-module@v3.2.2...v3.3.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* chore(deps-dev): bump terser from 5.5.0 to 5.5.1 (#6109)

Bumps [terser](https://github.com/terser/terser) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](terser/terser@v5.5.0...v5.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>

* fix(b-table): sort handling for numeric string values (closes #6092) (#6105)

* fix(b-table): sort handling for numeric string values

* Update stringify-object-values.spec.js

* Update stringify-object-values.spec.js

* chore: bump version to v2.20.0 (#6110)

* fix(table): use original value for fallback when number parsing fails in `defaultSortCompare()`

* fix: user supplied prop function detection (closes #6112) (#6113)

* fix(b-form-input/b-form-textarea): v-model handling

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* Update form-text.js

* fix: user supplied prop function detection

* Update calendar.spec.js

* Update form-text.js

* fix: further improve user supplied prop fucntion detection

* Revert "fix: further improve user supplied prop fucntion detection"

This reverts commit 86bbb7f.

* chore: bump version to v2.20.1 (#6115)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: 82amp <46736702+82amp@users.noreply.github.com>
Co-authored-by: Tal Koren <talkor@users.noreply.github.com>
Co-authored-by: criskgl <cris.kgl@gmail.com>
Co-authored-by: JD <47495003+jd-0001@users.noreply.github.com>
Co-authored-by: Ctibor Laky <luckylooke@gmail.com>
Co-authored-by: naime-hossain <hossain.naime@yahoo.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Lacance <tombodys@gmail.com>
Co-authored-by: Hiws <hiws@live.dk>
  • Loading branch information
12 people committed Dec 1, 2020
1 parent 98d01c9 commit c10f945
Show file tree
Hide file tree
Showing 10 changed files with 329 additions and 230 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. See
[standard-version](https://github.com/conventional-changelog/standard-version) for commit
guidelines.

<a name="2.20.1"></a>

## [v2.20.1](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.20.0...v2.20.1)

Released: 2020-12-01

### Bug Fixes v2.20.1

- user supplied prop function detection (closes
[#6112](https://github.com/bootstrap-vue/bootstrap-vue/issues/6112))
([#6113](https://github.com/bootstrap-vue/bootstrap-vue/issues/6113))
([1d85839](https://github.com/bootstrap-vue/bootstrap-vue/commit/1d85839fa76c88f1a411a81945d03a4c895b3f4f))

<a name="2.20.0"></a>

## [v2.20.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.19.0...v2.20.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bootstrap-vue",
"version": "2.20.0",
"version": "2.20.1",
"description": "With more than 85 components, over 45 available plugins, several directives, and 1000+ icons, BootstrapVue provides one of the most comprehensive implementations of the Bootstrap v4 component and grid system available for Vue.js v2.6, complete with extensive and automated WAI-ARIA accessibility markup.",
"main": "dist/bootstrap-vue.common.js",
"web": "dist/bootstrap-vue.js",
Expand Down
6 changes: 4 additions & 2 deletions src/components/calendar/calendar.js
Expand Up @@ -342,12 +342,14 @@ export const BCalendar = Vue.extend({
},
computedDateDisabledFn() {
const { dateDisabledFn } = this
return dateDisabledFn.name !== 'default' ? dateDisabledFn : () => false
return dateDisabledFn.name !== props.dateDisabledFn.default.name
? dateDisabledFn
: () => false
},
// TODO: Change `dateInfoFn` to handle events and notes as well as classes
computedDateInfoFn() {
const { dateInfoFn } = this
return dateInfoFn.name !== 'default' ? dateInfoFn : () => ({})
return dateInfoFn.name !== props.dateInfoFn.default.name ? dateInfoFn : () => ({})
},
calendarLocale() {
// This locale enforces the gregorian calendar (for use in formatter functions)
Expand Down
66 changes: 66 additions & 0 deletions src/components/calendar/calendar.spec.js
Expand Up @@ -377,4 +377,70 @@ describe('calendar', () => {
expect($buttons.at(3).classes()).toContain('btn-outline-primary')
expect($buttons.at(4).classes()).toContain('btn-outline-primary')
})

it('disables dates based on `date-disabled-fn` prop', async () => {
const wrapper = mount(BCalendar, {
attachTo: createContainer(),
propsData: {
value: '2020-01-01',
dateDisabledFn(ymd) {
return ymd === '2020-01-02'
}
}
})

expect(wrapper.vm).toBeDefined()
await waitNT(wrapper.vm)
await waitRAF()

const $grid = wrapper.find('[role="application"]')
expect($grid.exists()).toBe(true)

let $cell = $grid.find('[data-date="2020-01-01"]')
expect($cell.exists()).toBe(true)
expect($cell.attributes('aria-disabled')).toBeUndefined()

$cell = $grid.find('[data-date="2020-01-02"]')
expect($cell.exists()).toBe(true)
expect($cell.attributes('aria-disabled')).toEqual('true')

$cell = $grid.find('[data-date="2020-01-03"]')
expect($cell.exists()).toBe(true)
expect($cell.attributes('aria-disabled')).toBeUndefined()

wrapper.destroy()
})

it('applies classes on dates based on `date-info-fn` prop', async () => {
const wrapper = mount(BCalendar, {
attachTo: createContainer(),
propsData: {
value: '2020-01-01',
dateInfoFn(ymd) {
return ymd === '2020-01-02' ? 'my-info' : null
}
}
})

expect(wrapper.vm).toBeDefined()
await waitNT(wrapper.vm)
await waitRAF()

const $grid = wrapper.find('[role="application"]')
expect($grid.exists()).toBe(true)

let $cell = $grid.find('[data-date="2020-01-01"]')
expect($cell.exists()).toBe(true)
expect($cell.classes()).not.toContain('my-info')

$cell = $grid.find('[data-date="2020-01-02"]')
expect($cell.exists()).toBe(true)
expect($cell.classes()).toContain('my-info')

$cell = $grid.find('[data-date="2020-01-03"]')
expect($cell.exists()).toBe(true)
expect($cell.classes()).not.toContain('my-info')

wrapper.destroy()
})
})
154 changes: 79 additions & 75 deletions src/components/form-file/form-file.js
Expand Up @@ -108,6 +108,83 @@ const getAllFileEntriesInDirectory = (directoryReader, path = '') =>
readDirectoryEntries()
})

// --- Props ---

const props = makePropsConfigurable(
{
...formControlProps,
...formCustomProps,
...formStateProps,
...formSizeProps,
value: {
type: [File, Array],
default: null,
validator(value) {
/* istanbul ignore next */
if (value === '') {
warn(VALUE_EMPTY_DEPRECATED_MSG, NAME_FORM_FILE)
return true
}
return isUndefinedOrNull(value) || isValidValue(value)
}
},
accept: {
type: String,
default: ''
},
// Instruct input to capture from camera
capture: {
type: Boolean,
default: false
},
placeholder: {
type: String,
default: 'No file chosen'
},
browseText: {
type: String,
default: 'Browse'
},
dropPlaceholder: {
type: String,
default: 'Drop files here'
},
noDropPlaceholder: {
type: String,
default: 'Not allowed'
},
multiple: {
type: Boolean,
default: false
},
directory: {
type: Boolean,
default: false
},
// TODO:
// Should we deprecate this and only support flat file structures?
// Nested file structures are only supported when files are dropped
// A Chromium "bug" prevents `webkitEntries` from being populated
// on the file input's `change` event and is marked as "WontFix"
// Mozilla implemented the behavior the same way as Chromium
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=138987
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1326031
noTraverse: {
type: Boolean,
default: false
},
noDrop: {
type: Boolean,
default: false
},
fileNameFormatter: {
type: Function
// default: null
}
},
NAME_FORM_FILE
)

// @vue/component
export const BFormFile = /*#__PURE__*/ Vue.extend({
name: NAME_FORM_FILE,
Expand All @@ -124,80 +201,7 @@ export const BFormFile = /*#__PURE__*/ Vue.extend({
prop: 'value',
event: 'input'
},
props: makePropsConfigurable(
{
...formControlProps,
...formCustomProps,
...formStateProps,
...formSizeProps,
value: {
type: [File, Array],
default: null,
validator(value) {
/* istanbul ignore next */
if (value === '') {
warn(VALUE_EMPTY_DEPRECATED_MSG, NAME_FORM_FILE)
return true
}
return isUndefinedOrNull(value) || isValidValue(value)
}
},
accept: {
type: String,
default: ''
},
// Instruct input to capture from camera
capture: {
type: Boolean,
default: false
},
placeholder: {
type: String,
default: 'No file chosen'
},
browseText: {
type: String,
default: 'Browse'
},
dropPlaceholder: {
type: String,
default: 'Drop files here'
},
noDropPlaceholder: {
type: String,
default: 'Not allowed'
},
multiple: {
type: Boolean,
default: false
},
directory: {
type: Boolean,
default: false
},
// TODO:
// Should we deprecate this and only support flat file structures?
// Nested file structures are only supported when files are dropped
// A Chromium "bug" prevents `webkitEntries` from being populated
// on the file input's `change` event and is marked as "WontFix"
// Mozilla implemented the behavior the same way as Chromium
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=138987
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1326031
noTraverse: {
type: Boolean,
default: false
},
noDrop: {
type: Boolean,
default: false
},
fileNameFormatter: {
type: Function
// default: null
}
},
NAME_FORM_FILE
),
props,
data() {
return {
files: [],
Expand Down Expand Up @@ -269,7 +273,7 @@ export const BFormFile = /*#__PURE__*/ Vue.extend({
},
computedFileNameFormatter() {
const { fileNameFormatter } = this
return fileNameFormatter.name !== 'default'
return fileNameFormatter.name !== props.fileNameFormatter.default.name
? fileNameFormatter
: this.defaultFileNameFormatter
},
Expand Down
4 changes: 3 additions & 1 deletion src/components/form-spinbutton/form-spinbutton.js
Expand Up @@ -223,7 +223,9 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
},
computedFormatter() {
const { formatterFn } = this
return formatterFn.name !== 'default' ? formatterFn : this.defaultFormatter
return formatterFn.name !== props.formatterFn.default.name
? formatterFn
: this.defaultFormatter
},
computedAttrs() {
return {
Expand Down

1 comment on commit c10f945

@vercel
Copy link

@vercel vercel bot commented on c10f945 Dec 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.