@gitlab/ui 94.1.1 → 94.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/components/experimental/duo/chat/duo_chat.js +1 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +9 -1
- package/dist/tokens/build/js/tokens.js +9 -1
- package/dist/tokens/css/tokens.css +8 -0
- package/dist/tokens/css/tokens.dark.css +8 -0
- package/dist/tokens/js/tokens.dark.js +8 -0
- package/dist/tokens/js/tokens.js +8 -0
- package/dist/tokens/json/tokens.dark.json +219 -0
- package/dist/tokens/json/tokens.json +219 -0
- package/dist/tokens/scss/_tokens.dark.scss +8 -0
- package/dist/tokens/scss/_tokens.scss +8 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +8 -0
- package/dist/vendor/bootstrap-vue/src/components/badge/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/components/breadcrumb/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/button/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/button-group/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/collapse/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/dropdown/index.js +0 -34
- package/dist/vendor/bootstrap-vue/src/components/form/index.js +0 -20
- package/dist/vendor/bootstrap-vue/src/components/form-checkbox/index.js +0 -16
- package/dist/vendor/bootstrap-vue/src/components/form-group/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/form-input/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/form-radio/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/form-select/index.js +0 -17
- package/dist/vendor/bootstrap-vue/src/components/form-textarea/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/components/index.js +1 -49
- package/dist/vendor/bootstrap-vue/src/components/input-group/index.js +0 -18
- package/dist/vendor/bootstrap-vue/src/components/layout/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/link/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/components/modal/index.js +0 -19
- package/dist/vendor/bootstrap-vue/src/components/nav/index.js +0 -21
- package/dist/vendor/bootstrap-vue/src/components/navbar/index.js +0 -20
- package/dist/vendor/bootstrap-vue/src/components/popover/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/components/progress/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/table/index.js +0 -38
- package/dist/vendor/bootstrap-vue/src/components/tabs/index.js +0 -12
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +1 -1
- package/dist/vendor/bootstrap-vue/src/components/tooltip/index.js +0 -14
- package/dist/vendor/bootstrap-vue/src/constants/components.js +1 -2
- package/dist/vendor/bootstrap-vue/src/constants/env.js +1 -2
- package/dist/vendor/bootstrap-vue/src/constants/regex.js +1 -3
- package/dist/vendor/bootstrap-vue/src/directives/modal/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/directives/toggle/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/directives/tooltip/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/directives/visible/index.js +0 -10
- package/dist/vendor/bootstrap-vue/src/index.js +1 -38
- package/dist/vendor/bootstrap-vue/src/utils/object.js +1 -3
- package/dist/vendor/bootstrap-vue/src/utils/warn.js +2 -17
- package/package.json +1 -1
- package/src/components/base/filtered_search/filtered_search.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_term.scss +1 -0
- package/src/components/base/filtered_search/filtered_search_token.scss +10 -7
- package/src/components/base/filtered_search/filtered_search_token_segment.scss +1 -0
- package/src/components/base/token/token.scss +3 -17
- package/src/components/experimental/duo/chat/duo_chat.vue +0 -10
- package/src/tokens/build/css/tokens.css +8 -0
- package/src/tokens/build/css/tokens.dark.css +8 -0
- package/src/tokens/build/js/tokens.dark.js +8 -0
- package/src/tokens/build/js/tokens.js +8 -0
- package/src/tokens/build/json/tokens.dark.json +219 -0
- package/src/tokens/build/json/tokens.json +219 -0
- package/src/tokens/build/scss/_tokens.dark.scss +8 -0
- package/src/tokens/build/scss/_tokens.scss +8 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +8 -0
- package/src/tokens/contextual/filtered-search.tokens.json +72 -0
- package/src/tokens/contextual/token.tokens.json +21 -0
- package/src/vendor/bootstrap-vue/src/components/badge/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/badge/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/components/breadcrumb/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/breadcrumb/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/components/button/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/button/index.js +1 -11
- package/src/vendor/bootstrap-vue/src/components/button-group/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/button-group/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/collapse/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/collapse/index.js +1 -8
- package/src/vendor/bootstrap-vue/src/components/dropdown/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/dropdown/index.js +0 -25
- package/src/vendor/bootstrap-vue/src/components/form/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form/index.js +1 -15
- package/src/vendor/bootstrap-vue/src/components/form-checkbox/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-checkbox/index.js +1 -13
- package/src/vendor/bootstrap-vue/src/components/form-group/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-group/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/form-input/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-input/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/form-radio/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-radio/index.js +1 -11
- package/src/vendor/bootstrap-vue/src/components/form-select/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-select/index.js +1 -13
- package/src/vendor/bootstrap-vue/src/components/form-textarea/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/form-textarea/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/index.js +1 -50
- package/src/vendor/bootstrap-vue/src/components/input-group/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/input-group/index.js +1 -19
- package/src/vendor/bootstrap-vue/src/components/layout/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/layout/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/link/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/link/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/components/modal/README.md +0 -8
- package/src/vendor/bootstrap-vue/src/components/modal/index.d.ts +2 -5
- package/src/vendor/bootstrap-vue/src/components/modal/index.js +1 -11
- package/src/vendor/bootstrap-vue/src/components/modal/package.json +0 -3
- package/src/vendor/bootstrap-vue/src/components/nav/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/nav/index.js +1 -17
- package/src/vendor/bootstrap-vue/src/components/nav/package.json +0 -3
- package/src/vendor/bootstrap-vue/src/components/navbar/index.d.ts +1 -4
- package/src/vendor/bootstrap-vue/src/components/navbar/index.js +1 -17
- package/src/vendor/bootstrap-vue/src/components/navbar/package.json +0 -5
- package/src/vendor/bootstrap-vue/src/components/popover/README.md +1 -46
- package/src/vendor/bootstrap-vue/src/components/popover/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/popover/index.js +1 -8
- package/src/vendor/bootstrap-vue/src/components/popover/package.json +1 -4
- package/src/vendor/bootstrap-vue/src/components/progress/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/progress/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/table/README.md +3 -15
- package/src/vendor/bootstrap-vue/src/components/table/index.d.ts +1 -7
- package/src/vendor/bootstrap-vue/src/components/table/index.js +0 -33
- package/src/vendor/bootstrap-vue/src/components/table/package.json +0 -4
- package/src/vendor/bootstrap-vue/src/components/tabs/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/tabs/index.js +1 -9
- package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +1 -1
- package/src/vendor/bootstrap-vue/src/components/tooltip/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/components/tooltip/index.js +1 -8
- package/src/vendor/bootstrap-vue/src/components/tooltip/package.json +0 -3
- package/src/vendor/bootstrap-vue/src/constants/components.js +0 -1
- package/src/vendor/bootstrap-vue/src/constants/env.js +0 -1
- package/src/vendor/bootstrap-vue/src/constants/regex.js +0 -3
- package/src/vendor/bootstrap-vue/src/directives/modal/index.d.ts +1 -4
- package/src/vendor/bootstrap-vue/src/directives/modal/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/directives/toggle/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/directives/toggle/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/directives/tooltip/README.md +0 -1
- package/src/vendor/bootstrap-vue/src/directives/tooltip/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/directives/tooltip/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/directives/visible/index.d.ts +1 -5
- package/src/vendor/bootstrap-vue/src/directives/visible/index.js +1 -6
- package/src/vendor/bootstrap-vue/src/icons/icons.js +1 -4
- package/src/vendor/bootstrap-vue/src/index.d.ts +0 -3
- package/src/vendor/bootstrap-vue/src/index.js +2 -45
- package/src/vendor/bootstrap-vue/src/utils/config.spec.js +2 -2
- package/src/vendor/bootstrap-vue/src/utils/object.js +0 -2
- package/src/vendor/bootstrap-vue/src/utils/warn.js +1 -16
- package/translations.js +0 -2
- package/dist/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal.js +0 -279
- package/dist/vendor/bootstrap-vue/src/directives/hover/hover.js +0 -61
- package/dist/vendor/bootstrap-vue/src/directives/hover/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/directives/index.js +0 -23
- package/dist/vendor/bootstrap-vue/src/directives/popover/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/directives/popover/popover.js +0 -265
- package/dist/vendor/bootstrap-vue/src/directives/scrollspy/helpers/bv-scrollspy.class.js +0 -404
- package/dist/vendor/bootstrap-vue/src/directives/scrollspy/index.js +0 -11
- package/dist/vendor/bootstrap-vue/src/directives/scrollspy/scrollspy.js +0 -112
- package/src/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal.js +0 -279
- package/src/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal.spec.js +0 -178
- package/src/vendor/bootstrap-vue/src/directives/hover/README.md +0 -87
- package/src/vendor/bootstrap-vue/src/directives/hover/hover.js +0 -54
- package/src/vendor/bootstrap-vue/src/directives/hover/hover.spec.js +0 -49
- package/src/vendor/bootstrap-vue/src/directives/hover/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/directives/hover/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/directives/hover/package.json +0 -13
- package/src/vendor/bootstrap-vue/src/directives/index.d.ts +0 -13
- package/src/vendor/bootstrap-vue/src/directives/index.js +0 -22
- package/src/vendor/bootstrap-vue/src/directives/popover/README.md +0 -648
- package/src/vendor/bootstrap-vue/src/directives/popover/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/directives/popover/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/directives/popover/package.json +0 -111
- package/src/vendor/bootstrap-vue/src/directives/popover/popover.js +0 -275
- package/src/vendor/bootstrap-vue/src/directives/popover/popover.spec.js +0 -129
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/README.md +0 -411
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/helpers/bv-scrollspy.class.js +0 -480
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/index.d.ts +0 -11
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/index.js +0 -8
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/package.json +0 -38
- package/src/vendor/bootstrap-vue/src/directives/scrollspy/scrollspy.js +0 -117
|
@@ -776,9 +776,9 @@ table.b-table[aria-busy='true'] {
|
|
|
776
776
|
|
|
777
777
|
You can override this styling using your own CSS.
|
|
778
778
|
|
|
779
|
-
You may optionally provide a `table-busy` slot to show a custom loading message whenever
|
|
780
|
-
|
|
781
|
-
|
|
779
|
+
You may optionally provide a `table-busy` slot to show a custom loading message whenever the table's
|
|
780
|
+
busy state is `true`. The slot will be placed in a `<tr>` element with class `b-table-busy-slot`,
|
|
781
|
+
which has one single `<td>` with a `colspan` set to the number of fields.
|
|
782
782
|
|
|
783
783
|
**Example of `table-busy` slot usage:**
|
|
784
784
|
|
|
@@ -2503,12 +2503,6 @@ tabular data. The `<b-table-lite>` component provides all of the styling and for
|
|
|
2503
2503
|
- Fixed top and bottom rows
|
|
2504
2504
|
- Empty row support
|
|
2505
2505
|
|
|
2506
|
-
### Table lite as a plugin
|
|
2507
|
-
|
|
2508
|
-
The `TablePlugin` includes `<b-table-lite>`. For convenience, BootstrapVue also provides a
|
|
2509
|
-
`TableLitePlugin` which installs only `<b-table-lite>`. `TableLitePlugin` is available as a top
|
|
2510
|
-
level named export.
|
|
2511
|
-
|
|
2512
2506
|
## Simple tables
|
|
2513
2507
|
|
|
2514
2508
|
The `<b-table-simple>` component gives the user complete control over the rendering of the table
|
|
@@ -2770,12 +2764,6 @@ be sticky. For example:
|
|
|
2770
2764
|
As with `<b-table>` and `<b-table-lite>`, sticky columns are not supported when the `stacked` prop
|
|
2771
2765
|
is set on `<b-table-simple>`.
|
|
2772
2766
|
|
|
2773
|
-
### Table simple as a plugin
|
|
2774
|
-
|
|
2775
|
-
The `TablePlugin` includes `<b-table-simple>` and all of the helper components. For convenience,
|
|
2776
|
-
BootstrapVue also provides a `TableSimplePlugin` which installs `<b-table-simple>` and all of the
|
|
2777
|
-
helper components. `TableSimplePlugin` is available as a top level named export.
|
|
2778
|
-
|
|
2779
2767
|
## Table helper components
|
|
2780
2768
|
|
|
2781
2769
|
BootstrapVue provides additional helper child components when using `<b-table-simple>`, or the named
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Table
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin, BvComponent } from '../../'
|
|
6
|
-
|
|
7
|
-
// Table Plugins
|
|
8
|
-
export declare const TablePlugin: BvPlugin
|
|
9
|
-
export declare const TableLitePlugin: BvPlugin
|
|
10
|
-
export declare const TableSimplePlugin: BvPlugin
|
|
4
|
+
import { BvComponent } from '../../'
|
|
11
5
|
|
|
12
6
|
// Component: b-table
|
|
13
7
|
export declare class BTable extends BvComponent {
|
|
@@ -7,41 +7,8 @@ import { BTfoot } from './tfoot'
|
|
|
7
7
|
import { BTr } from './tr'
|
|
8
8
|
import { BTd } from './td'
|
|
9
9
|
import { BTh } from './th'
|
|
10
|
-
import { pluginFactory } from '../../utils/plugins'
|
|
11
|
-
|
|
12
|
-
const TableLitePlugin = /*#__PURE__*/ pluginFactory({
|
|
13
|
-
components: {
|
|
14
|
-
BTableLite
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const TableSimplePlugin = /*#__PURE__*/ pluginFactory({
|
|
19
|
-
components: {
|
|
20
|
-
BTableSimple,
|
|
21
|
-
BTbody,
|
|
22
|
-
BThead,
|
|
23
|
-
BTfoot,
|
|
24
|
-
BTr,
|
|
25
|
-
BTd,
|
|
26
|
-
BTh
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const TablePlugin = /*#__PURE__*/ pluginFactory({
|
|
31
|
-
components: {
|
|
32
|
-
BTable
|
|
33
|
-
},
|
|
34
|
-
plugins: {
|
|
35
|
-
TableLitePlugin,
|
|
36
|
-
TableSimplePlugin
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
10
|
|
|
40
11
|
export {
|
|
41
|
-
// Plugins
|
|
42
|
-
TablePlugin,
|
|
43
|
-
TableLitePlugin,
|
|
44
|
-
TableSimplePlugin,
|
|
45
12
|
// Table components
|
|
46
13
|
BTable,
|
|
47
14
|
BTableLite,
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
"meta": {
|
|
5
5
|
"title": "Table",
|
|
6
6
|
"description": "For displaying tabular data. <b-table> supports pagination, filtering, sorting, custom rendering, events, and asynchronous data. For simple display of tabular data without all the fancy features, BootstrapVue also provides lightweight alternative components <b-table-lite> and <b-table-simple>.",
|
|
7
|
-
"plugins": [
|
|
8
|
-
"TableLitePlugin",
|
|
9
|
-
"TableSimplePlugin"
|
|
10
|
-
],
|
|
11
7
|
"components": [
|
|
12
8
|
{
|
|
13
9
|
"component": "BTable",
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Tabs
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin, BvComponent } from '../../'
|
|
6
|
-
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const TabsPlugin: BvPlugin
|
|
4
|
+
import { BvComponent } from '../../'
|
|
9
5
|
|
|
10
6
|
// Component: b-tabs
|
|
11
7
|
export declare class BTabs extends BvComponent {}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { BTabs } from './tabs'
|
|
2
2
|
import { BTab } from './tab'
|
|
3
|
-
import { pluginFactory } from '../../utils/plugins'
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
components: {
|
|
7
|
-
BTabs,
|
|
8
|
-
BTab
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export { TabsPlugin, BTabs, BTab }
|
|
4
|
+
export { BTabs, BTab }
|
|
@@ -142,7 +142,7 @@ export const BVTooltip = /*#__PURE__*/ extend({
|
|
|
142
142
|
mixins: [listenOnRootMixin, useParentMixin],
|
|
143
143
|
data() {
|
|
144
144
|
return {
|
|
145
|
-
// BTooltip/BPopover/VBTooltip
|
|
145
|
+
// BTooltip/BPopover/VBTooltip will update this data
|
|
146
146
|
// Via the exposed updateData() method on this instance
|
|
147
147
|
// BVPopover will override some of these defaults
|
|
148
148
|
...templateData,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Tooltip
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin, BvComponent } from '../../'
|
|
6
|
-
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const TooltipPlugin: BvPlugin
|
|
4
|
+
import { BvComponent } from '../../'
|
|
9
5
|
|
|
10
6
|
// Component: b-tooltip
|
|
11
7
|
export declare class BTooltip extends BvComponent {}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { BTooltip } from './tooltip'
|
|
2
|
-
import { VBTooltipPlugin } from '../../directives/tooltip'
|
|
3
|
-
import { pluginFactory } from '../../utils/plugins'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
components: { BTooltip },
|
|
7
|
-
plugins: { VBTooltipPlugin }
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
export { TooltipPlugin, BTooltip }
|
|
3
|
+
export { BTooltip }
|
|
@@ -41,7 +41,6 @@ export const NAME_INPUT_GROUP_PREPEND = 'BInputGroupPrepend'
|
|
|
41
41
|
export const NAME_INPUT_GROUP_TEXT = 'BInputGroupText'
|
|
42
42
|
export const NAME_LINK = 'BLink'
|
|
43
43
|
export const NAME_MODAL = 'BModal'
|
|
44
|
-
export const NAME_MSG_BOX = 'BMsgBox'
|
|
45
44
|
export const NAME_NAV = 'BNav'
|
|
46
45
|
export const NAME_NAVBAR = 'BNavbar'
|
|
47
46
|
export const NAME_NAVBAR_BRAND = 'BNavbarBrand'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const HAS_WINDOW_SUPPORT = typeof window !== 'undefined'
|
|
2
2
|
export const HAS_DOCUMENT_SUPPORT = typeof document !== 'undefined'
|
|
3
3
|
export const HAS_NAVIGATOR_SUPPORT = typeof navigator !== 'undefined'
|
|
4
|
-
export const HAS_PROMISE_SUPPORT = typeof Promise !== 'undefined'
|
|
5
4
|
/* istanbul ignore next: JSDOM always returns false */
|
|
6
5
|
export const HAS_MUTATION_OBSERVER_SUPPORT =
|
|
7
6
|
typeof MutationObserver !== 'undefined' ||
|
|
@@ -21,9 +21,6 @@ export const RX_UN_KEBAB = /-(\w)/g
|
|
|
21
21
|
|
|
22
22
|
// --- URL ---
|
|
23
23
|
|
|
24
|
-
// HREFs must end with a hash followed by at least one non-hash character
|
|
25
|
-
export const RX_HREF = /^.*(#[^#]+)$/
|
|
26
|
-
|
|
27
24
|
export const RX_ENCODED_COMMA = /%2C/g
|
|
28
25
|
export const RX_ENCODE_REVERSE = /[!'()*]/g
|
|
29
26
|
export const RX_QUERY_START = /^(\?|#|&)/
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
//
|
|
2
2
|
// VBModal
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin } from '../../'
|
|
4
|
+
import { DirectiveOptions } from 'vue'
|
|
6
5
|
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const VBModalPlugin: BvPlugin
|
|
9
6
|
|
|
10
7
|
// directive: v-b-modal
|
|
11
8
|
export declare const VBModal: DirectiveOptions
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// VBToggle
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin } from '../../'
|
|
6
|
-
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const VBTogglePlugin: BvPlugin
|
|
4
|
+
import { DirectiveOptions } from 'vue'
|
|
9
5
|
|
|
10
6
|
// directive: v-b-toggle
|
|
11
7
|
export declare const VBToggle: DirectiveOptions
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// VBTooltip
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin } from '../../'
|
|
6
|
-
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const VBTooltipPlugin: BvPlugin
|
|
4
|
+
import { DirectiveOptions } from 'vue'
|
|
9
5
|
|
|
10
6
|
// directive: v-b-tooltip
|
|
11
7
|
export declare const VBTooltip: DirectiveOptions
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// VBVisible
|
|
3
3
|
//
|
|
4
|
-
import
|
|
5
|
-
import { BvPlugin } from '../../'
|
|
6
|
-
|
|
7
|
-
// Plugin
|
|
8
|
-
export declare const VBVisiblePlugin: BvPlugin
|
|
4
|
+
import { DirectiveOptions } from 'vue'
|
|
9
5
|
|
|
10
6
|
// Directive: v-b-visible
|
|
11
7
|
export declare const VBVisible: DirectiveOptions
|
|
@@ -2404,10 +2404,7 @@ export const BIconCircle = /*#__PURE__*/ makeIcon(
|
|
|
2404
2404
|
)
|
|
2405
2405
|
|
|
2406
2406
|
// eslint-disable-next-line
|
|
2407
|
-
export const BIconCircleFill = /*#__PURE__*/ makeIcon(
|
|
2408
|
-
'CircleFill',
|
|
2409
|
-
'<circle cx="8" cy="8" r="8"/>'
|
|
2410
|
-
)
|
|
2407
|
+
export const BIconCircleFill = /*#__PURE__*/ makeIcon('CircleFill', '<circle cx="8" cy="8" r="8"/>')
|
|
2411
2408
|
|
|
2412
2409
|
// eslint-disable-next-line
|
|
2413
2410
|
export const BIconCircleHalf = /*#__PURE__*/ makeIcon(
|
|
@@ -56,9 +56,6 @@ export * from './components'
|
|
|
56
56
|
// Icons & Plugin
|
|
57
57
|
export * from './icons'
|
|
58
58
|
|
|
59
|
-
// Directives & Plugins
|
|
60
|
-
export * from './directives'
|
|
61
|
-
|
|
62
59
|
// BootstrapVue plugin
|
|
63
60
|
export interface BootstrapVuePlugin extends BvPlugin {
|
|
64
61
|
setConfig: (config: BvConfigOptions) => void
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { installFactory } from './utils/plugins'
|
|
2
2
|
import { componentsPlugin } from './components'
|
|
3
|
-
import { directivesPlugin } from './directives'
|
|
4
3
|
import { BVConfigPlugin } from './bv-config'
|
|
5
4
|
|
|
6
5
|
const NAME = 'BootstrapVue'
|
|
@@ -8,8 +7,7 @@ const NAME = 'BootstrapVue'
|
|
|
8
7
|
// --- BootstrapVue installer ---
|
|
9
8
|
const install = /*#__PURE__*/ installFactory({
|
|
10
9
|
plugins: {
|
|
11
|
-
componentsPlugin
|
|
12
|
-
directivesPlugin
|
|
10
|
+
componentsPlugin
|
|
13
11
|
}
|
|
14
12
|
})
|
|
15
13
|
|
|
@@ -42,7 +40,6 @@ export {
|
|
|
42
40
|
// TODO:
|
|
43
41
|
// We should probably move injections into their own
|
|
44
42
|
// parent directory (i.e. `/src/injections`)
|
|
45
|
-
export { BVModalPlugin } from './components/modal/helpers/bv-modal'
|
|
46
43
|
export { BVToastPlugin } from './components/toast/helpers/bv-toast'
|
|
47
44
|
|
|
48
45
|
// Webpack 4 has optimization difficulties with re-export of re-exports,
|
|
@@ -64,29 +61,23 @@ export * from './icons/icons'
|
|
|
64
61
|
// --- Export all individual components and component group plugins as named exports ---
|
|
65
62
|
|
|
66
63
|
// export * from './components/badge'
|
|
67
|
-
export { BadgePlugin } from './components/badge'
|
|
68
64
|
export { BBadge } from './components/badge/badge'
|
|
69
65
|
|
|
70
66
|
// export * from './components/breadcrumb'
|
|
71
|
-
export { BreadcrumbPlugin } from './components/breadcrumb'
|
|
72
67
|
export { BBreadcrumb } from './components/breadcrumb/breadcrumb'
|
|
73
68
|
export { BBreadcrumbItem } from './components/breadcrumb/breadcrumb-item'
|
|
74
69
|
|
|
75
70
|
// export * from './components/button'
|
|
76
|
-
export { ButtonPlugin } from './components/button'
|
|
77
71
|
export { BButton } from './components/button/button'
|
|
78
72
|
export { BButtonClose } from './components/button/button-close'
|
|
79
73
|
|
|
80
74
|
// export * from './components/button-group'
|
|
81
|
-
export { ButtonGroupPlugin } from './components/button-group'
|
|
82
75
|
export { BButtonGroup } from './components/button-group/button-group'
|
|
83
76
|
|
|
84
77
|
// export * from './components/collapse'
|
|
85
|
-
export { CollapsePlugin } from './components/collapse'
|
|
86
78
|
export { BCollapse } from './components/collapse/collapse'
|
|
87
79
|
|
|
88
80
|
// export * from './components/dropdown'
|
|
89
|
-
export { DropdownPlugin } from './components/dropdown'
|
|
90
81
|
export { BDropdown } from './components/dropdown/dropdown'
|
|
91
82
|
export { BDropdownItem } from './components/dropdown/dropdown-item'
|
|
92
83
|
export { BDropdownItemButton } from './components/dropdown/dropdown-item-button'
|
|
@@ -97,42 +88,34 @@ export { BDropdownHeader } from './components/dropdown/dropdown-header'
|
|
|
97
88
|
export { BDropdownText } from './components/dropdown/dropdown-text'
|
|
98
89
|
|
|
99
90
|
// export * from './components/form'
|
|
100
|
-
export { FormPlugin } from './components/form'
|
|
101
91
|
export { BForm } from './components/form/form'
|
|
102
92
|
export { BFormText } from './components/form/form-text'
|
|
103
93
|
export { BFormInvalidFeedback } from './components/form/form-invalid-feedback'
|
|
104
94
|
export { BFormValidFeedback } from './components/form/form-valid-feedback'
|
|
105
95
|
|
|
106
96
|
// export * from './components/form-checkbox'
|
|
107
|
-
export { FormCheckboxPlugin } from './components/form-checkbox'
|
|
108
97
|
export { BFormCheckbox } from './components/form-checkbox/form-checkbox'
|
|
109
98
|
export { BFormCheckboxGroup } from './components/form-checkbox/form-checkbox-group'
|
|
110
99
|
|
|
111
100
|
// export * from './components/form-group'
|
|
112
|
-
export { FormGroupPlugin } from './components/form-group'
|
|
113
101
|
export { BFormGroup } from './components/form-group/form-group'
|
|
114
102
|
|
|
115
103
|
// export * from './components/form-input'
|
|
116
|
-
export { FormInputPlugin } from './components/form-input'
|
|
117
104
|
export { BFormInput } from './components/form-input/form-input'
|
|
118
105
|
|
|
119
106
|
// export * from './components/form-radio'
|
|
120
|
-
export { FormRadioPlugin } from './components/form-radio'
|
|
121
107
|
export { BFormRadio } from './components/form-radio/form-radio'
|
|
122
108
|
export { BFormRadioGroup } from './components/form-radio/form-radio-group'
|
|
123
109
|
|
|
124
110
|
// export * from './components/form-select'
|
|
125
|
-
export { FormSelectPlugin } from './components/form-select'
|
|
126
111
|
export { BFormSelect } from './components/form-select/form-select'
|
|
127
112
|
export { BFormSelectOption } from './components/form-select/form-select-option'
|
|
128
113
|
export { BFormSelectOptionGroup } from './components/form-select/form-select-option-group'
|
|
129
114
|
|
|
130
115
|
// export * from './components/form-textarea'
|
|
131
|
-
export { FormTextareaPlugin } from './components/form-textarea'
|
|
132
116
|
export { BFormTextarea } from './components/form-textarea/form-textarea'
|
|
133
117
|
|
|
134
118
|
// export * from './components/input-group'
|
|
135
|
-
export { InputGroupPlugin } from './components/input-group'
|
|
136
119
|
export { BInputGroup } from './components/input-group/input-group'
|
|
137
120
|
export { BInputGroupAddon } from './components/input-group/input-group-addon'
|
|
138
121
|
export { BInputGroupAppend } from './components/input-group/input-group-append'
|
|
@@ -140,40 +123,32 @@ export { BInputGroupPrepend } from './components/input-group/input-group-prepend
|
|
|
140
123
|
export { BInputGroupText } from './components/input-group/input-group-text'
|
|
141
124
|
|
|
142
125
|
// export * from './components/layout'
|
|
143
|
-
export { LayoutPlugin } from './components/layout'
|
|
144
126
|
export { BCol } from './components/layout/col'
|
|
145
127
|
export { BFormRow } from './components/layout/form-row'
|
|
146
128
|
|
|
147
129
|
// export * from './components/link'
|
|
148
|
-
export { LinkPlugin } from './components/link'
|
|
149
130
|
export { BLink } from './components/link/link'
|
|
150
131
|
|
|
151
132
|
// export * from './components/modal'
|
|
152
|
-
export { ModalPlugin } from './components/modal'
|
|
153
133
|
export { BModal } from './components/modal/modal'
|
|
154
134
|
|
|
155
135
|
// export * from './components/nav'
|
|
156
|
-
export { NavPlugin } from './components/nav'
|
|
157
136
|
export { BNav } from './components/nav/nav'
|
|
158
137
|
export { BNavItem } from './components/nav/nav-item'
|
|
159
138
|
export { BNavItemDropdown } from './components/nav/nav-item-dropdown'
|
|
160
139
|
|
|
161
140
|
// export * from './components/navbar'
|
|
162
|
-
export { NavbarPlugin } from './components/navbar'
|
|
163
141
|
export { BNavbar } from './components/navbar/navbar'
|
|
164
142
|
export { BNavbarBrand } from './components/navbar/navbar-brand'
|
|
165
143
|
|
|
166
144
|
// export * from './components/popover'
|
|
167
|
-
export { PopoverPlugin } from './components/popover'
|
|
168
145
|
export { BPopover } from './components/popover/popover'
|
|
169
146
|
|
|
170
147
|
// export * from './components/progress'
|
|
171
|
-
export { ProgressPlugin } from './components/progress'
|
|
172
148
|
export { BProgress } from './components/progress/progress'
|
|
173
149
|
export { BProgressBar } from './components/progress/progress-bar'
|
|
174
150
|
|
|
175
151
|
// export * from './components/table'
|
|
176
|
-
export { TablePlugin, TableLitePlugin, TableSimplePlugin } from './components/table'
|
|
177
152
|
export { BTable } from './components/table/table'
|
|
178
153
|
export { BTableLite } from './components/table/table-lite'
|
|
179
154
|
export { BTableSimple } from './components/table/table-simple'
|
|
@@ -185,7 +160,6 @@ export { BTh } from './components/table/th'
|
|
|
185
160
|
export { BTd } from './components/table/td'
|
|
186
161
|
|
|
187
162
|
// export * from './components/tabs'
|
|
188
|
-
export { TabsPlugin } from './components/tabs'
|
|
189
163
|
export { BTabs } from './components/tabs/tabs'
|
|
190
164
|
export { BTab } from './components/tabs/tab'
|
|
191
165
|
|
|
@@ -195,10 +169,9 @@ export { BToast } from './components/toast/toast'
|
|
|
195
169
|
export { BToaster } from './components/toast/toaster'
|
|
196
170
|
|
|
197
171
|
// export * from './components/tooltip'
|
|
198
|
-
export { TooltipPlugin } from './components/tooltip'
|
|
199
172
|
export { BTooltip } from './components/tooltip/tooltip'
|
|
200
173
|
|
|
201
|
-
// --- Named exports of all directives (VB<Name>)
|
|
174
|
+
// --- Named exports of all directives (VB<Name>) ---
|
|
202
175
|
|
|
203
176
|
// Webpack 4 has optimization difficulties with re-export of re-exports,
|
|
204
177
|
// so we import the directives individually here for better tree shaking
|
|
@@ -207,32 +180,16 @@ export { BTooltip } from './components/tooltip/tooltip'
|
|
|
207
180
|
// can be reverted back to `export * from './scrollspy'` when Webpack v5 is released
|
|
208
181
|
// https://github.com/webpack/webpack/pull/9203 (available in Webpack v5.0.0-alpha.15)
|
|
209
182
|
|
|
210
|
-
// export * from './directives/hover'
|
|
211
|
-
export { VBHoverPlugin } from './directives/hover'
|
|
212
|
-
export { VBHover } from './directives/hover/hover'
|
|
213
|
-
|
|
214
183
|
// export * from './directives/modal'
|
|
215
|
-
export { VBModalPlugin } from './directives/modal'
|
|
216
184
|
export { VBModal } from './directives/modal/modal'
|
|
217
185
|
|
|
218
|
-
// export * from './directives/popover'
|
|
219
|
-
export { VBPopoverPlugin } from './directives/popover'
|
|
220
|
-
export { VBPopover } from './directives/popover/popover'
|
|
221
|
-
|
|
222
|
-
// export * from './directives/scrollspy'
|
|
223
|
-
export { VBScrollspyPlugin } from './directives/scrollspy'
|
|
224
|
-
export { VBScrollspy } from './directives/scrollspy/scrollspy'
|
|
225
|
-
|
|
226
186
|
// export * from './directives/toggle'
|
|
227
|
-
export { VBTogglePlugin } from './directives/toggle'
|
|
228
187
|
export { VBToggle } from './directives/toggle/toggle'
|
|
229
188
|
|
|
230
189
|
// export * from './directives/tooltip'
|
|
231
|
-
export { VBTooltipPlugin } from './directives/tooltip'
|
|
232
190
|
export { VBTooltip } from './directives/tooltip/tooltip'
|
|
233
191
|
|
|
234
192
|
// export * from './directives/tooltip'
|
|
235
|
-
export { VBVisiblePlugin } from './directives/visible'
|
|
236
193
|
export { VBVisible } from './directives/visible/visible'
|
|
237
194
|
|
|
238
195
|
// Default export is the BootstrapVue plugin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLocalVue } from '@vue/test-utils'
|
|
2
2
|
import { isVue3 } from '../../src/vue'
|
|
3
3
|
import { BootstrapVue } from '../../src'
|
|
4
|
-
import {
|
|
4
|
+
import { ToastPlugin } from '../../src/components/toast'
|
|
5
5
|
import { BVConfigPlugin } from '../../src/bv-config'
|
|
6
6
|
import { setConfig, resetConfig } from './config-set'
|
|
7
7
|
import {
|
|
@@ -80,7 +80,7 @@ describe('utils/config', () => {
|
|
|
80
80
|
|
|
81
81
|
expect(getConfig()).toEqual({})
|
|
82
82
|
|
|
83
|
-
localVue.use(
|
|
83
|
+
localVue.use(ToastPlugin, config)
|
|
84
84
|
expect(getConfig()).toEqual(config)
|
|
85
85
|
|
|
86
86
|
// Reset the configuration
|
|
@@ -8,13 +8,11 @@ export const defineProperties = (obj, props) => Object.defineProperties(obj, pro
|
|
|
8
8
|
export const defineProperty = (obj, prop, descriptor) =>
|
|
9
9
|
Object.defineProperty(obj, prop, descriptor)
|
|
10
10
|
export const getOwnPropertyNames = obj => Object.getOwnPropertyNames(obj)
|
|
11
|
-
export const is = (value1, value2) => Object.is(value1, value2)
|
|
12
11
|
export const keys = obj => Object.keys(obj)
|
|
13
12
|
|
|
14
13
|
// --- "Instance" ---
|
|
15
14
|
|
|
16
15
|
export const hasOwnProperty = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
|
17
|
-
export const toString = obj => Object.prototype.toString.call(obj)
|
|
18
16
|
|
|
19
17
|
// --- Utilities ---
|
|
20
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IS_BROWSER,
|
|
1
|
+
import { IS_BROWSER, HAS_MUTATION_OBSERVER_SUPPORT } from '../constants/env'
|
|
2
2
|
import { getNoWarn } from './env'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -26,21 +26,6 @@ export const warnNotClient = source => {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* Warn when no Promise support is given
|
|
31
|
-
* @param {string} source
|
|
32
|
-
* @returns {boolean} warned
|
|
33
|
-
*/
|
|
34
|
-
export const warnNoPromiseSupport = source => {
|
|
35
|
-
/* istanbul ignore else */
|
|
36
|
-
if (HAS_PROMISE_SUPPORT) {
|
|
37
|
-
return false
|
|
38
|
-
} else {
|
|
39
|
-
warn(`${source}: Requires Promise support.`)
|
|
40
|
-
return true
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
29
|
/**
|
|
45
30
|
* Warn when no MutationObserver support is given
|
|
46
31
|
* @param {string} source
|
package/translations.js
CHANGED
|
@@ -21,8 +21,6 @@ export default {
|
|
|
21
21
|
'GlDuoChat.chatEmptyStateDesc': 'GitLab Duo Chat is your AI-powered assistant.',
|
|
22
22
|
'GlDuoChat.chatEmptyStateSecondaryDesc': 'Responses may be inaccurate. Verify before use.',
|
|
23
23
|
'GlDuoChat.chatEmptyStateTitle': 'Ask a question',
|
|
24
|
-
'GlDuoChat.chatLegalDisclaimer':
|
|
25
|
-
"May provide inappropriate responses not representative of GitLab's views. Do not input personal data.",
|
|
26
24
|
'GlDuoChat.chatPromptPlaceholderDefault': 'GitLab Duo Chat',
|
|
27
25
|
'GlDuoChat.chatPromptPlaceholderWithCommands': 'Type "/" for slash commands',
|
|
28
26
|
'GlDuoChat.chatSubmitLabel': 'Send chat message.',
|