Skip to content

Commit 7d3d06e

Browse files
jacobmllr95renovate[bot]renovate-botHiwsJonathanGuberman
authored
chore: release v2.18.0 (bootstrap-vue#5925)
* chore(deps): update devdependency vue-jest to ^3.0.7 (bootstrap-vue#5770) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-modal): solve body padding not being removed (bootstrap-vue#5771) * update dom.js * update * update modal-manager.js * chore(deps): update devdependency @nuxt/content to ^1.9.0 (bootstrap-vue#5773) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency rollup to ^2.27.0 (bootstrap-vue#5779) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-table): properly handle empty included/excluded filter fields (closes bootstrap-vue#5775) (bootstrap-vue#5780) * fix(b-table): properly handle empty included/excluded filter fileds * Update table-filtering.spec.js * chore: lock `postcss` and `autoprefixer` for now (closes bootstrap-vue#5774) (bootstrap-vue#5782) * chore: lock `postcss` and `autoprefixer` for now * Update renovate.json * chore(deps): update devdependency lint-staged to ^10.4.0 (bootstrap-vue#5783) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore: code refactoring to separate constants from utils and better code sharing (bootstrap-vue#5772) * Initial improvements * Separate inspect from other utils * feat: code refactoring to reparte constants from utils and better code sharing * Update modal.js * Update form-group.spec.js * Update .bundlewatch.config.json * Update form-group.spec.js * chore: bump version to v2.17.1 (bootstrap-vue#5786) * chore(deps): update devdependency postcss to ^7.0.34 (bootstrap-vue#5788) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency rollup to ^2.27.1 (bootstrap-vue#5790) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-tooltip, b-popover): fix `title` not being reset on hide (bootstrap-vue#5793) * fix bug * add test * update tooltip.spec.js * Update bv-tooltip.js * Update bv-tooltip.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * fix(b-nav-item-dropdown): `boundary` handling in `<b-navbar>` (closes bootstrap-vue#5789) (bootstrap-vue#5794) * fix(b-nav-item-dropdown): `boundary` handling in `<b-navbar>` * Update nav-item-dropdown.spec.js * docs(form-tags): fix unmatched quote in wrapper example (bootstrap-vue#5796) * chore(deps): update devdependency terser to ^5.3.2 (bootstrap-vue#5800) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(docs): fix typo in `b-form-rating` docs (bootstrap-vue#5801) * chore: update keywords * chore: move `standard-version` configuration to `.versionrc` and skip commit and tag creation * fix(b-skeleton): add missing component exports (bootstrap-vue#5806) * Fix description (bootstrap-vue#5807) * chore: bump version to v2.17.2 (bootstrap-vue#5805) * chore: bump version to vv2.17.2 * Update CHANGELOG.md * chore(deps): update all non-major dependencies (bootstrap-vue#5816) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency codesandbox to ^2.2.1 (bootstrap-vue#5824) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency codemirror to ^5.58.1 (bootstrap-vue#5826) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency postcss-cli to v8 (bootstrap-vue#5821) * chore(deps): update devdependency postcss-cli to v8 * Update to `postcss` v8 Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5830) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency eslint-config-prettier to ^6.12.0 (bootstrap-vue#5831) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5833) Co-authored-by: Renovate Bot <bot@renovateapp.com> * docs(form-timepicker): fix typos in locale attribute (bootstrap-vue#5834) Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5835) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency terser to ^5.3.3 (bootstrap-vue#5838) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency postcss to ^8.1.1 (bootstrap-vue#5843) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency eslint-plugin-vue to v7 (bootstrap-vue#5844) * chore(deps): update devdependency eslint-plugin-vue to v7 * chore: refactro code to conform new rules of `eslint-plugin-vue` v7 Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * fix(b-carousel): fix glitching when switching slides fast (closes bootstrap-vue#5810) (bootstrap-vue#5845) * fix glitchingg * Update carousel.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * Update README.md (bootstrap-vue#5846) Fix typo * chore(deps): update devdependency terser to ^5.3.4 (bootstrap-vue#5852) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency eslint-plugin-vue to ^7.0.1 (bootstrap-vue#5853) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies to ^26.5.0 (bootstrap-vue#5854) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency eslint-plugin-jest to ^24.1.0 (bootstrap-vue#5856) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies to ^26.5.2 (bootstrap-vue#5857) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency @nuxtjs/pwa to ^3.1.0 (bootstrap-vue#5858) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-sekelton): animation overflow issue for Safari (bootstrap-vue#5863) * chore(docs): add example for `<b-toast>` with custom close button (bootstrap-vue#5864) * chore(docs): simplify `<b-form-group>` validation message example (bootstrap-vue#5862) * chore(deps): update devdependency @nuxtjs/pwa to ^3.1.2 (bootstrap-vue#5865) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): update devdependency vue-router to ^3.4.6 (bootstrap-vue#5866) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency rollup to ^2.29.0 (bootstrap-vue#5871) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-card): properly support header/footer with body image overlay (bootstrap-vue#5872) * chore(deps): update devdependency postcss-cli to ^8.1.0 (bootstrap-vue#5874) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency sass-loader to ^10.0.3 (bootstrap-vue#5878) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5880) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency jest to ^26.5.3 (bootstrap-vue#5884) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency terser to ^5.3.5 (bootstrap-vue#5886) Co-authored-by: Renovate Bot <bot@renovateapp.com> * docs(b-navbar): specify support of sidebar + array (bootstrap-vue#5885) * specify support of sidebar + array * update package.json * Update navbar-toggle.js * Update README.md Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): update devdependency @nuxt/content to ^1.10.0 (bootstrap-vue#5887) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(b-link): `href` handling inconsistencies to `<router-link>` (closes bootstrap-vue#5820) (bootstrap-vue#5876) * fix(b-link): `href` handling inconsistencies to `<router-link>` * Update regex.js * Update link.js * Update link.js * fix(v-tooltip, v-popover): render data-* attributes on root components (closes bootstrap-vue#5836) (bootstrap-vue#5882) * fix(v-tooltip, v-popover): render data-* attributes on root components * Delete package-lock.json * Remove TBD's * Attribute inheritance improvents * Update popover.spec.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * Update README.md (bootstrap-vue#5889) * chore(deps): update devdependency @nuxtjs/pwa to ^3.2.0 (bootstrap-vue#5890) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency @nuxtjs/pwa to ^3.2.1 (bootstrap-vue#5891) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(docs): fix datepicker locale typo (bootstrap-vue#5892) * chore: ignore `package-lock.json` * chore(docs): use new slot syntax everywhere (bootstrap-vue#5895) * chore(deps): update all non-major dependencies (bootstrap-vue#5896) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * feat: update `core-js` to v3 (bootstrap-vue#5894) * chore(deps): update dependency @nuxt/opencollective to ^0.3.2 (bootstrap-vue#5897) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * fix closing span tag (bootstrap-vue#5898) * chore: update dependencies (bootstrap-vue#5899) * chore(deps): update all non-major dependencies to ^7.12.0 (bootstrap-vue#5902) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore: move global Vue.js entry to surce root (bootstrap-vue#5904) * chore(deps): update all non-major dependencies (bootstrap-vue#5905) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies to ^7.12.1 (bootstrap-vue#5906) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Allow dependabot to check GitHub actions daily (bootstrap-vue#5907) Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): bump actions/setup-node from v1 to v2.1.2 (bootstrap-vue#5909) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.2. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v1...c6fd00c) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(b-calendar): add `no-key-nav` property (closes bootstrap-vue#5861) (bootstrap-vue#5883) * feat(b-calendar): add tabIndex property * feat(b-calendar): change tabIndex property to noKeyNav * feat(b-calendar): add noKeyNav prop description * Update calendar.js * Update calendar.spec.js * Update calendar.js * Update calendar.spec.js * Update calendar.spec.js * Update calendar.js * Update calendar.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * fix(b-calendar): month formatting for ceratin dates (bootstrap-vue#5911) * chore(deps): update devdependency @babel/standalone to ^7.12.2 (bootstrap-vue#5910) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com> * chore(deps): update devdependency vue-router to ^3.4.7 (bootstrap-vue#5912) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5914) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update all non-major dependencies (bootstrap-vue#5917) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency eslint-plugin-vue to ^7.1.0 (bootstrap-vue#5921) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps): update devdependency postcss to ^8.1.2 (bootstrap-vue#5922) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(docs): correct Bootstrap SCSS imports (bootstrap-vue#5923) * chore: bump version to v2.18.0 (bootstrap-vue#5924) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Hiws <hiws@live.dk> Co-authored-by: JonathanGuberman <jonathan@upnotnorth.net> Co-authored-by: JonathanGuberman <jg@tineye.com> Co-authored-by: Milan Curcic <caomaco@gmail.com> Co-authored-by: Wouter Kroes <wouterkroes@users.noreply.github.com> Co-authored-by: Салоев Сади <saloev.saadi@yandex.ru> Co-authored-by: Sauli Anto <sauli.anto@gmail.com> Co-authored-by: 82amp <46736702+82amp@users.noreply.github.com> Co-authored-by: John Losito <lositojohnj@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marco Túlio Gaulberto da Silva <marcot.gualberto@gmail.com>
1 parent 2f00167 commit 7d3d06e

File tree

197 files changed

+2921
-1864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+2921
-1864
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
],
2525
'object-shorthand': ['error', 'properties'],
2626
'spaced-comment': 'off', // needed to ignore `/*#__PURE__*/` comments
27+
'vue/custom-event-name-casing': 'off',
2728
'vue/html-self-closing': [
2829
'error',
2930
{
@@ -35,9 +36,8 @@ module.exports = {
3536
}
3637
],
3738
'vue/max-attributes-per-line': ['error', { singleline: 4 }],
38-
'vue/no-template-shadow': 'off',
39-
'vue/no-use-v-if-with-v-for': 'off',
4039
'vue/no-v-html': 'off',
40+
'vue/one-component-per-file': 'off',
4141
'vue/require-default-prop': 'off',
4242
'vue/require-prop-types': 'off',
4343
'vue/singleline-html-element-content-newline': 'off'

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/renovate.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,14 @@
22
"extends": ["@nuxtjs"],
33
"labels": ["Type: Dependencies"],
44
"packageRules": [
5-
{
6-
"packageNames": ["autoprefixer"],
7-
"allowedVersions": "<10.0.0"
8-
},
95
{
106
"packageNames": ["bootstrap"],
117
"allowedVersions": "<5.0.0"
128
},
13-
{
14-
"packageNames": ["core-js"],
15-
"allowedVersions": "<3.0.0"
16-
},
179
{
1810
"packageNames": ["highlight.js"],
1911
"allowedVersions": "<10.0.0"
2012
},
21-
{
22-
"packageNames": ["postcss"],
23-
"allowedVersions": "<8.0.0"
24-
},
2513
{
2614
"packageNames": ["prettier"],
2715
"allowedVersions": "<=1.14.3"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v2
2525

2626
- name: Set Node.js version
27-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v2.1.2
2828
with:
2929
node-version: ${{ matrix.node }}
3030

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v2
2525

2626
- name: Set Node.js version
27-
uses: actions/setup-node@v1
27+
uses: actions/setup-node@v2.1.2
2828
with:
2929
node-version: ${{ matrix.node }}
3030

@@ -61,7 +61,7 @@ jobs:
6161
uses: actions/checkout@v2
6262

6363
- name: Set Node.js version
64-
uses: actions/setup-node@v1
64+
uses: actions/setup-node@v2.1.2
6565
with:
6666
node-version: ${{ matrix.node }}
6767

@@ -98,7 +98,7 @@ jobs:
9898
uses: actions/checkout@v2
9999

100100
- name: Set Node.js version
101-
uses: actions/setup-node@v1
101+
uses: actions/setup-node@v2.1.2
102102
with:
103103
node-version: ${{ matrix.node }}
104104

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ node_modules/
1313
*.swp
1414
.DS_Store
1515
RELEASE-NOTES.md
16+
package-lock.json
1617
sw.js
1718
workbox*.js*

CHANGELOG.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,54 @@ 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+
## [2.18.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.3...v2.18.0)
8+
9+
Released: 2020-10-19
10+
11+
### Features v2.18.0
12+
13+
- **b-calendar:** add `no-key-nav` property (closes
14+
[#5861](https://github.com/bootstrap-vue/bootstrap-vue/issues/5861))
15+
([#5883](https://github.com/bootstrap-vue/bootstrap-vue/issues/5883))
16+
([955ad63](https://github.com/bootstrap-vue/bootstrap-vue/commit/955ad631698f82a83de214ce9cd37271367d8c45))
17+
- update `core-js` to v3 ([#5894](https://github.com/bootstrap-vue/bootstrap-vue/issues/5894))
18+
([aeed981](https://github.com/bootstrap-vue/bootstrap-vue/commit/aeed9812afe770b6561c9513709e4be852250022))
19+
20+
### Bug Fixes v2.18.0
21+
22+
- **b-calendar:** month formatting for certain dates
23+
([#5911](https://github.com/bootstrap-vue/bootstrap-vue/issues/5911))
24+
([7de1844](https://github.com/bootstrap-vue/bootstrap-vue/commit/7de1844c6d5c0014d25c930527a7fc49a2b0cc25))
25+
- **b-card:** properly support header/footer with body image overlay
26+
([#5872](https://github.com/bootstrap-vue/bootstrap-vue/issues/5872))
27+
([bd8319d](https://github.com/bootstrap-vue/bootstrap-vue/commit/bd8319da8c6166f9fe3e64d9a3ac5c490c6b2f48))
28+
- **b-carousel:** fix glitching when switching slides fast (closes
29+
[#5810](https://github.com/bootstrap-vue/bootstrap-vue/issues/5810))
30+
([#5845](https://github.com/bootstrap-vue/bootstrap-vue/issues/5845))
31+
([761bc93](https://github.com/bootstrap-vue/bootstrap-vue/commit/761bc9381ba24aed751726c8213651e2014aa746))
32+
- **b-link:** `href` handling inconsistencies to `<router-link>` (closes
33+
[#5820](https://github.com/bootstrap-vue/bootstrap-vue/issues/5820))
34+
([#5876](https://github.com/bootstrap-vue/bootstrap-vue/issues/5876))
35+
([daea0e5](https://github.com/bootstrap-vue/bootstrap-vue/commit/daea0e5c638de9ec45d39af5aa1e9f8a9e455422))
36+
- **b-skeleton:** animation overflow issue for Safari
37+
([#5863](https://github.com/bootstrap-vue/bootstrap-vue/issues/5863))
38+
([bfd4f96](https://github.com/bootstrap-vue/bootstrap-vue/commit/bfd4f960d7056edcd2ccb1ae3930639d543d8b34))
39+
- **v-tooltip, v-popover:** render data-\* attributes on root components (closes
40+
[#5836](https://github.com/bootstrap-vue/bootstrap-vue/issues/5836))
41+
([#5882](https://github.com/bootstrap-vue/bootstrap-vue/issues/5882))
42+
([f6b51e0](https://github.com/bootstrap-vue/bootstrap-vue/commit/f6b51e04f074e45e98650034e88c2b5629ad25f6))
43+
744
<a name="2.17.3"></a>
845

9-
### [v2.17.3](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.2...v2.17.3)
46+
## [v2.17.3](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.2...v2.17.3)
1047

1148
Released: 2020-09-18
1249

1350
- No changes to v2.17.2.
1451

1552
<a name="2.17.2"></a>
1653

17-
### [v2.17.2](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.1...v2.17.2)
54+
## [v2.17.2](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.1...v2.17.2)
1855

1956
Released: 2020-09-18
2057

@@ -33,7 +70,7 @@ Released: 2020-09-18
3370

3471
<a name="2.17.1"></a>
3572

36-
### [v2.17.1](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.0...v2.17.1)
73+
## [v2.17.1](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.17.0...v2.17.1)
3774

3875
Released: 2020-09-16
3976

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = api => {
33

44
const presets = []
55
if (!isDocs) {
6-
presets.push(['@babel/env', { useBuiltIns: 'entry', corejs: { version: 2 } }])
6+
presets.push(['@babel/env', { useBuiltIns: 'entry', corejs: { version: 3 } }])
77
}
88

99
return {

docs/components/bv-logo.vue

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@
5555
<div v-else class="bv-logo"></div>
5656
</template>
5757

58+
<script>
59+
export default {
60+
data() {
61+
return {
62+
isIE: false,
63+
showLogo: false
64+
}
65+
},
66+
mounted() {
67+
this.$nextTick(() => {
68+
this.isIE = /msie|trident/i.test(window.navigator.userAgent || '')
69+
this.showLogo = true
70+
})
71+
}
72+
}
73+
</script>
74+
5875
<style lang="scss" scoped>
5976
.bv-logo {
6077
display: block;
@@ -159,20 +176,3 @@
159176
}
160177
}
161178
</style>
162-
163-
<script>
164-
export default {
165-
data() {
166-
return {
167-
isIE: false,
168-
showLogo: false
169-
}
170-
},
171-
mounted() {
172-
this.$nextTick(() => {
173-
this.isIE = /msie|trident/i.test(window.navigator.userAgent || '')
174-
this.showLogo = true
175-
})
176-
}
177-
}
178-
</script>

docs/components/componentdoc.vue

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
bordered
9696
striped
9797
>
98-
<template v-slot:cell(prop)="{ value, item }">
98+
<template #cell(prop)="{ value, item }">
9999
<code class="text-nowrap notranslate" translate="no">{{ value }}</code><br>
100100
<b-badge v-if="item.required" variant="info">Required</b-badge>
101101
<b-badge v-if="item.settings" variant="dark" href="/docs/reference/settings" title="Configurable in settings">Settings</b-badge>
@@ -105,13 +105,13 @@
105105
<b-badge v-if="item.deprecated" variant="danger">Deprecated</b-badge>
106106
<b-badge v-else-if="item.deprecation" variant="warning">Deprecation</b-badge>
107107
</template>
108-
<template v-slot:cell(type)="{ value }">
108+
<template #cell(type)="{ value }">
109109
<span v-html="value"></span>
110110
</template>
111-
<template v-slot:cell(defaultValue)="{ value }">
111+
<template #cell(defaultValue)="{ value }">
112112
<code v-if="value" class="word-wrap-normal notranslate" translate="no">{{ value }}</code>
113113
</template>
114-
<template v-slot:row-details="{ item }">
114+
<template #row-details="{ item }">
115115
<p v-if="typeof item.deprecated === 'string'" class="mb-1 small">
116116
{{ item.deprecated }}
117117
</p>
@@ -158,10 +158,10 @@
158158
bordered
159159
striped
160160
>
161-
<template v-slot:cell(prop)="{ value }">
161+
<template #cell(prop)="{ value }">
162162
<code class="notranslate" translate="no">{{ kebabCase(value) }}</code>
163163
</template>
164-
<template v-slot:cell(event)="{ value }">
164+
<template #cell(event)="{ value }">
165165
<code class="notranslate" translate="no">{{ value }}</code>
166166
</template>
167167
</b-table-lite>
@@ -181,11 +181,11 @@
181181
bordered
182182
striped
183183
>
184-
<template v-slot:cell(name)="{ value, item }">
184+
<template #cell(name)="{ value, item }">
185185
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
186186
<b-badge v-if="item.version" variant="secondary">v{{ item.version }}+</b-badge>
187187
</template>
188-
<template v-slot:cell(scope)="{ value, detailsShowing, toggleDetails }">
188+
<template #cell(scope)="{ value, detailsShowing, toggleDetails }">
189189
<b-button
190190
v-if="value"
191191
variant="outline-info"
@@ -197,7 +197,7 @@
197197
</b-button>
198198
<span v-else>No</span>
199199
</template>
200-
<template v-slot:row-details="{ item }">
200+
<template #row-details="{ item }">
201201
<b-table-lite
202202
:items="item.scope"
203203
:fields="[{ key: 'prop', label: 'Property' }, 'type', 'description']"
@@ -207,19 +207,19 @@
207207
caption-top
208208
small
209209
>
210-
<template v-slot:thead-top>
210+
<template #thead-top>
211211
<b-tr>
212212
<b-th colspan="3" class="text-center">
213213
<code class="text-nowrap notranslate" translate="no">{{ item.name }}</code>
214214
Slot scoped properties
215215
</b-th>
216216
</b-tr>
217217
</template>
218-
<template v-slot:cell(prop)="{ value, item }">
218+
<template #cell(prop)="{ value, item: cellItem }">
219219
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
220-
<b-badge v-if="item.version" variant="secondary">v{{ item.version }}+</b-badge>
220+
<b-badge v-if="cellItem.version" variant="secondary">v{{ cellItem.version }}+</b-badge>
221221
</template>
222-
<template v-slot:cell(type)="{ value }">
222+
<template #cell(type)="{ value }">
223223
<code class="text-nowrap notranslate" translate="no">{{ value || 'Any' }}</code>
224224
</template>
225225
</b-table-lite>
@@ -240,11 +240,11 @@
240240
bordered
241241
striped
242242
>
243-
<template v-slot:cell(event)="{ value, item }">
243+
<template #cell(event)="{ value, item }">
244244
<code class="notranslate" translate="no">{{ value }}</code>
245245
<b-badge v-if="item.version" variant="secondary">v{{ item.version }}+</b-badge>
246246
</template>
247-
<template v-slot:cell(args)="{ value, item }">
247+
<template #cell(args)="{ value, item }">
248248
<ol v-if="value && value.length > 0" class="list-unstyled mb-0">
249249
<li v-for="(arg, idx) in value" :key="`event-${item.event}-${arg.arg || idx}`">
250250
<template v-if="arg.arg">
@@ -274,11 +274,11 @@
274274
bordered
275275
striped
276276
>
277-
<template v-slot:cell(event)="{ value, item }">
277+
<template #cell(event)="{ value, item }">
278278
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
279279
<b-badge v-if="item.version" variant="secondary">v{{ item.version }}+</b-badge>
280280
</template>
281-
<template v-slot:cell(args)="{ value, item }">
281+
<template #cell(args)="{ value, item }">
282282
<p
283283
v-for="arg in value"
284284
:key="`event-${item.event}-${arg.arg ? arg.arg : 'none'}`"
@@ -295,29 +295,6 @@
295295
</section>
296296
</template>
297297

298-
<style scoped>
299-
h3::before {
300-
display: block;
301-
height: 1.25rem;
302-
margin-top: -1.25rem;
303-
content: '';
304-
}
305-
306-
code.bigger {
307-
font-size: 105%;
308-
}
309-
310-
ul.component-ref-mini-toc:empty {
311-
display: none;
312-
}
313-
314-
/deep/ .word-wrap-normal {
315-
white-space: normal !important;
316-
word-break: normal !important;
317-
overflow-wrap: normal !important;
318-
}
319-
</style>
320-
321298
<script>
322299
import Vue from 'vue'
323300
import commonProps from '../common-props.json'
@@ -529,3 +506,26 @@ export default {
529506
}
530507
}
531508
</script>
509+
510+
<style scoped>
511+
h3::before {
512+
display: block;
513+
height: 1.25rem;
514+
margin-top: -1.25rem;
515+
content: '';
516+
}
517+
518+
code.bigger {
519+
font-size: 105%;
520+
}
521+
522+
ul.component-ref-mini-toc:empty {
523+
display: none;
524+
}
525+
526+
/deep/ .word-wrap-normal {
527+
white-space: normal !important;
528+
word-break: normal !important;
529+
overflow-wrap: normal !important;
530+
}
531+
</style>

0 commit comments

Comments
 (0)