Skip to content

Commit c10f945

Browse files
jacobmllr95renovate[bot]renovate-bot82amptalkor
authored
chore: release v2.20.1 (#6116)
* 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>
1 parent 98d01c9 commit c10f945

File tree

10 files changed

+329
-230
lines changed

10 files changed

+329
-230
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. See
44
[standard-version](https://github.com/conventional-changelog/standard-version) for commit
55
guidelines.
66

7+
<a name="2.20.1"></a>
8+
9+
## [v2.20.1](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.20.0...v2.20.1)
10+
11+
Released: 2020-12-01
12+
13+
### Bug Fixes v2.20.1
14+
15+
- user supplied prop function detection (closes
16+
[#6112](https://github.com/bootstrap-vue/bootstrap-vue/issues/6112))
17+
([#6113](https://github.com/bootstrap-vue/bootstrap-vue/issues/6113))
18+
([1d85839](https://github.com/bootstrap-vue/bootstrap-vue/commit/1d85839fa76c88f1a411a81945d03a4c895b3f4f))
19+
720
<a name="2.20.0"></a>
821

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-vue",
3-
"version": "2.20.0",
3+
"version": "2.20.1",
44
"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.",
55
"main": "dist/bootstrap-vue.common.js",
66
"web": "dist/bootstrap-vue.js",

src/components/calendar/calendar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,14 @@ export const BCalendar = Vue.extend({
342342
},
343343
computedDateDisabledFn() {
344344
const { dateDisabledFn } = this
345-
return dateDisabledFn.name !== 'default' ? dateDisabledFn : () => false
345+
return dateDisabledFn.name !== props.dateDisabledFn.default.name
346+
? dateDisabledFn
347+
: () => false
346348
},
347349
// TODO: Change `dateInfoFn` to handle events and notes as well as classes
348350
computedDateInfoFn() {
349351
const { dateInfoFn } = this
350-
return dateInfoFn.name !== 'default' ? dateInfoFn : () => ({})
352+
return dateInfoFn.name !== props.dateInfoFn.default.name ? dateInfoFn : () => ({})
351353
},
352354
calendarLocale() {
353355
// This locale enforces the gregorian calendar (for use in formatter functions)

src/components/calendar/calendar.spec.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,70 @@ describe('calendar', () => {
377377
expect($buttons.at(3).classes()).toContain('btn-outline-primary')
378378
expect($buttons.at(4).classes()).toContain('btn-outline-primary')
379379
})
380+
381+
it('disables dates based on `date-disabled-fn` prop', async () => {
382+
const wrapper = mount(BCalendar, {
383+
attachTo: createContainer(),
384+
propsData: {
385+
value: '2020-01-01',
386+
dateDisabledFn(ymd) {
387+
return ymd === '2020-01-02'
388+
}
389+
}
390+
})
391+
392+
expect(wrapper.vm).toBeDefined()
393+
await waitNT(wrapper.vm)
394+
await waitRAF()
395+
396+
const $grid = wrapper.find('[role="application"]')
397+
expect($grid.exists()).toBe(true)
398+
399+
let $cell = $grid.find('[data-date="2020-01-01"]')
400+
expect($cell.exists()).toBe(true)
401+
expect($cell.attributes('aria-disabled')).toBeUndefined()
402+
403+
$cell = $grid.find('[data-date="2020-01-02"]')
404+
expect($cell.exists()).toBe(true)
405+
expect($cell.attributes('aria-disabled')).toEqual('true')
406+
407+
$cell = $grid.find('[data-date="2020-01-03"]')
408+
expect($cell.exists()).toBe(true)
409+
expect($cell.attributes('aria-disabled')).toBeUndefined()
410+
411+
wrapper.destroy()
412+
})
413+
414+
it('applies classes on dates based on `date-info-fn` prop', async () => {
415+
const wrapper = mount(BCalendar, {
416+
attachTo: createContainer(),
417+
propsData: {
418+
value: '2020-01-01',
419+
dateInfoFn(ymd) {
420+
return ymd === '2020-01-02' ? 'my-info' : null
421+
}
422+
}
423+
})
424+
425+
expect(wrapper.vm).toBeDefined()
426+
await waitNT(wrapper.vm)
427+
await waitRAF()
428+
429+
const $grid = wrapper.find('[role="application"]')
430+
expect($grid.exists()).toBe(true)
431+
432+
let $cell = $grid.find('[data-date="2020-01-01"]')
433+
expect($cell.exists()).toBe(true)
434+
expect($cell.classes()).not.toContain('my-info')
435+
436+
$cell = $grid.find('[data-date="2020-01-02"]')
437+
expect($cell.exists()).toBe(true)
438+
expect($cell.classes()).toContain('my-info')
439+
440+
$cell = $grid.find('[data-date="2020-01-03"]')
441+
expect($cell.exists()).toBe(true)
442+
expect($cell.classes()).not.toContain('my-info')
443+
444+
wrapper.destroy()
445+
})
380446
})

src/components/form-file/form-file.js

Lines changed: 79 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,83 @@ const getAllFileEntriesInDirectory = (directoryReader, path = '') =>
108108
readDirectoryEntries()
109109
})
110110

111+
// --- Props ---
112+
113+
const props = makePropsConfigurable(
114+
{
115+
...formControlProps,
116+
...formCustomProps,
117+
...formStateProps,
118+
...formSizeProps,
119+
value: {
120+
type: [File, Array],
121+
default: null,
122+
validator(value) {
123+
/* istanbul ignore next */
124+
if (value === '') {
125+
warn(VALUE_EMPTY_DEPRECATED_MSG, NAME_FORM_FILE)
126+
return true
127+
}
128+
return isUndefinedOrNull(value) || isValidValue(value)
129+
}
130+
},
131+
accept: {
132+
type: String,
133+
default: ''
134+
},
135+
// Instruct input to capture from camera
136+
capture: {
137+
type: Boolean,
138+
default: false
139+
},
140+
placeholder: {
141+
type: String,
142+
default: 'No file chosen'
143+
},
144+
browseText: {
145+
type: String,
146+
default: 'Browse'
147+
},
148+
dropPlaceholder: {
149+
type: String,
150+
default: 'Drop files here'
151+
},
152+
noDropPlaceholder: {
153+
type: String,
154+
default: 'Not allowed'
155+
},
156+
multiple: {
157+
type: Boolean,
158+
default: false
159+
},
160+
directory: {
161+
type: Boolean,
162+
default: false
163+
},
164+
// TODO:
165+
// Should we deprecate this and only support flat file structures?
166+
// Nested file structures are only supported when files are dropped
167+
// A Chromium "bug" prevents `webkitEntries` from being populated
168+
// on the file input's `change` event and is marked as "WontFix"
169+
// Mozilla implemented the behavior the same way as Chromium
170+
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=138987
171+
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1326031
172+
noTraverse: {
173+
type: Boolean,
174+
default: false
175+
},
176+
noDrop: {
177+
type: Boolean,
178+
default: false
179+
},
180+
fileNameFormatter: {
181+
type: Function
182+
// default: null
183+
}
184+
},
185+
NAME_FORM_FILE
186+
)
187+
111188
// @vue/component
112189
export const BFormFile = /*#__PURE__*/ Vue.extend({
113190
name: NAME_FORM_FILE,
@@ -124,80 +201,7 @@ export const BFormFile = /*#__PURE__*/ Vue.extend({
124201
prop: 'value',
125202
event: 'input'
126203
},
127-
props: makePropsConfigurable(
128-
{
129-
...formControlProps,
130-
...formCustomProps,
131-
...formStateProps,
132-
...formSizeProps,
133-
value: {
134-
type: [File, Array],
135-
default: null,
136-
validator(value) {
137-
/* istanbul ignore next */
138-
if (value === '') {
139-
warn(VALUE_EMPTY_DEPRECATED_MSG, NAME_FORM_FILE)
140-
return true
141-
}
142-
return isUndefinedOrNull(value) || isValidValue(value)
143-
}
144-
},
145-
accept: {
146-
type: String,
147-
default: ''
148-
},
149-
// Instruct input to capture from camera
150-
capture: {
151-
type: Boolean,
152-
default: false
153-
},
154-
placeholder: {
155-
type: String,
156-
default: 'No file chosen'
157-
},
158-
browseText: {
159-
type: String,
160-
default: 'Browse'
161-
},
162-
dropPlaceholder: {
163-
type: String,
164-
default: 'Drop files here'
165-
},
166-
noDropPlaceholder: {
167-
type: String,
168-
default: 'Not allowed'
169-
},
170-
multiple: {
171-
type: Boolean,
172-
default: false
173-
},
174-
directory: {
175-
type: Boolean,
176-
default: false
177-
},
178-
// TODO:
179-
// Should we deprecate this and only support flat file structures?
180-
// Nested file structures are only supported when files are dropped
181-
// A Chromium "bug" prevents `webkitEntries` from being populated
182-
// on the file input's `change` event and is marked as "WontFix"
183-
// Mozilla implemented the behavior the same way as Chromium
184-
// See: https://bugs.chromium.org/p/chromium/issues/detail?id=138987
185-
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1326031
186-
noTraverse: {
187-
type: Boolean,
188-
default: false
189-
},
190-
noDrop: {
191-
type: Boolean,
192-
default: false
193-
},
194-
fileNameFormatter: {
195-
type: Function
196-
// default: null
197-
}
198-
},
199-
NAME_FORM_FILE
200-
),
204+
props,
201205
data() {
202206
return {
203207
files: [],
@@ -269,7 +273,7 @@ export const BFormFile = /*#__PURE__*/ Vue.extend({
269273
},
270274
computedFileNameFormatter() {
271275
const { fileNameFormatter } = this
272-
return fileNameFormatter.name !== 'default'
276+
return fileNameFormatter.name !== props.fileNameFormatter.default.name
273277
? fileNameFormatter
274278
: this.defaultFileNameFormatter
275279
},

src/components/form-spinbutton/form-spinbutton.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
223223
},
224224
computedFormatter() {
225225
const { formatterFn } = this
226-
return formatterFn.name !== 'default' ? formatterFn : this.defaultFormatter
226+
return formatterFn.name !== props.formatterFn.default.name
227+
? formatterFn
228+
: this.defaultFormatter
227229
},
228230
computedAttrs() {
229231
return {

0 commit comments

Comments
 (0)