@gitlab/ui 128.16.1 → 128.17.1
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/dist/components/base/filtered_search/filtered_search_token.js +1 -1
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +1 -1
- package/dist/components/base/tooltip/tooltip.js +1 -3
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +1 -1
- package/dist/config.js +0 -37
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/utils/constants.js +1 -7
- package/dist/vendor/bootstrap-vue/src/components/button/button-close.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/button/button.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form/form-text.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form/form.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-group/form-group.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-radio/form-radio-group.js +1 -2
- package/dist/vendor/bootstrap-vue/src/components/form-radio/form-radio.js +1 -2
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select-option.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-select/form-select.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-select/helpers/mixin-options.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/layout/col.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/layout/form-row.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/popover/popover.js +8 -4
- package/dist/vendor/bootstrap-vue/src/components/table/table-lite.js +2 -3
- package/dist/vendor/bootstrap-vue/src/components/table/table-simple.js +2 -3
- package/dist/vendor/bootstrap-vue/src/components/table/table.js +2 -3
- package/dist/vendor/bootstrap-vue/src/components/table/tbody.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/table/td.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/table/tfoot.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/table/th.js +1 -2
- package/dist/vendor/bootstrap-vue/src/components/table/thead.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/table/tr.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/tabs/tab.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/tabs/tabs.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/toast/toast.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/toast/toaster.js +3 -3
- package/dist/vendor/bootstrap-vue/src/components/tooltip/tooltip.js +7 -6
- package/dist/vendor/bootstrap-vue/src/constants/config.js +7 -1
- package/dist/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +6 -7
- package/dist/vendor/bootstrap-vue/src/mixins/dropdown.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-control.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-custom.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-options.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-radio-check-group.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-radio-check.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-size.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-state.js +3 -3
- package/dist/vendor/bootstrap-vue/src/mixins/form-text.js +3 -3
- package/package.json +1 -1
- package/src/components/base/filtered_search/filtered_search_token.vue +5 -0
- package/src/components/base/filtered_search/filtered_search_token_segment.scss +14 -0
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +14 -12
- package/src/components/base/tooltip/tooltip.vue +0 -3
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +1 -1
- package/src/config.js +0 -40
- package/src/utils/constants.js +0 -6
- package/src/vendor/bootstrap-vue/src/components/button/button-close.js +7 -10
- package/src/vendor/bootstrap-vue/src/components/button/button.js +13 -16
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.js +4 -7
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.js +9 -12
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.js +9 -12
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +27 -30
- package/src/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +11 -14
- package/src/vendor/bootstrap-vue/src/components/form/form-text.js +7 -10
- package/src/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +11 -14
- package/src/vendor/bootstrap-vue/src/components/form/form.js +7 -10
- package/src/vendor/bootstrap-vue/src/components/form-group/form-group.js +27 -30
- package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio-group.js +1 -2
- package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio.js +1 -2
- package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.js +5 -8
- package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option.js +5 -8
- package/src/vendor/bootstrap-vue/src/components/form-select/form-select.js +14 -17
- package/src/vendor/bootstrap-vue/src/components/form-select/helpers/mixin-options.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.js +17 -20
- package/src/vendor/bootstrap-vue/src/components/layout/col.js +16 -19
- package/src/vendor/bootstrap-vue/src/components/layout/form-row.js +4 -7
- package/src/vendor/bootstrap-vue/src/components/modal/modal.js +59 -62
- package/src/vendor/bootstrap-vue/src/components/popover/popover.js +13 -11
- package/src/vendor/bootstrap-vue/src/components/table/table-lite.js +11 -15
- package/src/vendor/bootstrap-vue/src/components/table/table-simple.js +5 -9
- package/src/vendor/bootstrap-vue/src/components/table/table.js +20 -24
- package/src/vendor/bootstrap-vue/src/components/table/tbody.js +5 -8
- package/src/vendor/bootstrap-vue/src/components/table/td.js +8 -11
- package/src/vendor/bootstrap-vue/src/components/table/tfoot.js +5 -8
- package/src/vendor/bootstrap-vue/src/components/table/th.js +1 -2
- package/src/vendor/bootstrap-vue/src/components/table/thead.js +6 -9
- package/src/vendor/bootstrap-vue/src/components/table/tr.js +4 -7
- package/src/vendor/bootstrap-vue/src/components/tabs/tab.js +16 -19
- package/src/vendor/bootstrap-vue/src/components/tabs/tabs.js +22 -25
- package/src/vendor/bootstrap-vue/src/components/toast/toast.js +23 -26
- package/src/vendor/bootstrap-vue/src/components/toast/toaster.js +9 -12
- package/src/vendor/bootstrap-vue/src/components/tooltip/tooltip.js +36 -38
- package/src/vendor/bootstrap-vue/src/constants/config.js +6 -0
- package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +6 -7
- package/src/vendor/bootstrap-vue/src/mixins/dropdown.js +22 -25
- package/src/vendor/bootstrap-vue/src/mixins/form-control.js +9 -12
- package/src/vendor/bootstrap-vue/src/mixins/form-custom.js +4 -7
- package/src/vendor/bootstrap-vue/src/mixins/form-options.js +8 -11
- package/src/vendor/bootstrap-vue/src/mixins/form-radio-check-group.js +13 -16
- package/src/vendor/bootstrap-vue/src/mixins/form-radio-check.js +13 -16
- package/src/vendor/bootstrap-vue/src/mixins/form-size.js +4 -7
- package/src/vendor/bootstrap-vue/src/mixins/form-state.js +5 -8
- package/src/vendor/bootstrap-vue/src/mixins/form-text.js +17 -20
|
@@ -6,7 +6,7 @@ import { isNull } from '../../utils/inspect';
|
|
|
6
6
|
import { mathMax, mathMin, mathCeil } from '../../utils/math';
|
|
7
7
|
import { toInteger, toFloat } from '../../utils/number';
|
|
8
8
|
import { sortKeys } from '../../utils/object';
|
|
9
|
-
import {
|
|
9
|
+
import { makeProp } from '../../utils/props';
|
|
10
10
|
import { props as props$2, formControlMixin } from '../../mixins/form-control';
|
|
11
11
|
import { formSelectionMixin } from '../../mixins/form-selection';
|
|
12
12
|
import { props as props$3, formSizeMixin } from '../../mixins/form-size';
|
|
@@ -20,7 +20,7 @@ import { VBVisible } from '../../directives/visible/visible';
|
|
|
20
20
|
|
|
21
21
|
// --- Props ---
|
|
22
22
|
|
|
23
|
-
const props =
|
|
23
|
+
const props = sortKeys({
|
|
24
24
|
...props$1,
|
|
25
25
|
...props$2,
|
|
26
26
|
...props$3,
|
|
@@ -35,7 +35,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
35
35
|
// 'soft', 'hard' or 'off'
|
|
36
36
|
// Browser default is 'soft'
|
|
37
37
|
wrap: makeProp(PROP_TYPE_STRING, 'soft')
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
39
|
|
|
40
40
|
// --- Main component ---
|
|
41
41
|
|
|
@@ -8,7 +8,7 @@ import { identity } from '../../utils/identity';
|
|
|
8
8
|
import { isUndefinedOrNull } from '../../utils/inspect';
|
|
9
9
|
import { memoize } from '../../utils/memoize';
|
|
10
10
|
import { create, assign, keys, sortKeys } from '../../utils/object';
|
|
11
|
-
import { makeProp, suffixPropName
|
|
11
|
+
import { makeProp, suffixPropName } from '../../utils/props';
|
|
12
12
|
import { lowerCase } from '../../utils/string';
|
|
13
13
|
|
|
14
14
|
// --- Constants ---
|
|
@@ -78,7 +78,7 @@ const generateProps = () => {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
// Return the generated props
|
|
81
|
-
return
|
|
81
|
+
return sortKeys({
|
|
82
82
|
...breakpointCol,
|
|
83
83
|
...breakpointOffset,
|
|
84
84
|
...breakpointOrder,
|
|
@@ -93,7 +93,7 @@ const generateProps = () => {
|
|
|
93
93
|
offset: makeProp(PROP_TYPE_NUMBER_STRING),
|
|
94
94
|
order: makeProp(PROP_TYPE_NUMBER_STRING),
|
|
95
95
|
tag: makeProp(PROP_TYPE_STRING, 'div')
|
|
96
|
-
})
|
|
96
|
+
});
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
// --- Main component ---
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { extend, mergeData } from '../../vue';
|
|
2
2
|
import { NAME_FORM_ROW } from '../../constants/components';
|
|
3
3
|
import { PROP_TYPE_STRING } from '../../constants/props';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../../utils/props';
|
|
5
5
|
|
|
6
6
|
// --- Props ---
|
|
7
7
|
|
|
8
|
-
const props =
|
|
8
|
+
const props = {
|
|
9
9
|
tag: makeProp(PROP_TYPE_STRING, 'div')
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
|
|
12
12
|
// --- Main component ---
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ import { isUndefinedOrNull, isString } from '../../utils/inspect';
|
|
|
15
15
|
import { makeModelMixin } from '../../utils/model';
|
|
16
16
|
import { sortKeys } from '../../utils/object';
|
|
17
17
|
import { observeDom } from '../../utils/observe-dom';
|
|
18
|
-
import {
|
|
18
|
+
import { makeProp } from '../../utils/props';
|
|
19
19
|
import { attrsMixin } from '../../mixins/attrs';
|
|
20
20
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
21
21
|
import { listenOnDocumentMixin } from '../../mixins/listen-on-document';
|
|
@@ -64,7 +64,7 @@ const OBSERVER_CONFIG = {
|
|
|
64
64
|
|
|
65
65
|
// --- Props ---
|
|
66
66
|
|
|
67
|
-
const props =
|
|
67
|
+
const props = sortKeys({
|
|
68
68
|
...props$1,
|
|
69
69
|
...modelProps,
|
|
70
70
|
ariaLabel: makeProp(PROP_TYPE_STRING),
|
|
@@ -117,7 +117,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
117
117
|
titleClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
118
118
|
titleHtml: makeProp(PROP_TYPE_STRING),
|
|
119
119
|
titleTag: makeProp(PROP_TYPE_STRING, 'h5')
|
|
120
|
-
})
|
|
120
|
+
});
|
|
121
121
|
|
|
122
122
|
// --- Main component ---
|
|
123
123
|
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_POPOVER } from '../../constants/components';
|
|
3
3
|
import { EVENT_NAME_CLICK } from '../../constants/events';
|
|
4
|
-
import { PROP_TYPE_STRING, PROP_TYPE_ARRAY_STRING } from '../../constants/props';
|
|
4
|
+
import { PROP_TYPE_STRING, PROP_TYPE_NUMBER_OBJECT_STRING, PROP_TYPE_ARRAY_STRING } from '../../constants/props';
|
|
5
5
|
import { SLOT_NAME_TITLE } from '../../constants/slots';
|
|
6
|
-
import {
|
|
6
|
+
import { makeProp } from '../../utils/props';
|
|
7
7
|
import { props as props$1, BTooltip } from '../tooltip/tooltip';
|
|
8
8
|
import { BVPopover } from './helpers/bv-popover';
|
|
9
9
|
import { sortKeys } from '../../utils/object';
|
|
10
10
|
|
|
11
11
|
// --- Props ---
|
|
12
12
|
|
|
13
|
-
const props =
|
|
13
|
+
const props = sortKeys({
|
|
14
14
|
...props$1,
|
|
15
15
|
content: makeProp(PROP_TYPE_STRING),
|
|
16
|
+
delay: makeProp(PROP_TYPE_NUMBER_OBJECT_STRING, {
|
|
17
|
+
show: 50,
|
|
18
|
+
hide: 150
|
|
19
|
+
}),
|
|
16
20
|
placement: makeProp(PROP_TYPE_STRING, 'right'),
|
|
17
21
|
triggers: makeProp(PROP_TYPE_ARRAY_STRING, EVENT_NAME_CLICK)
|
|
18
|
-
})
|
|
22
|
+
});
|
|
19
23
|
|
|
20
24
|
// --- Main component ---
|
|
21
25
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TABLE_LITE } from '../../constants/components';
|
|
3
3
|
import { sortKeys } from '../../utils/object';
|
|
4
|
-
import { makePropsConfigurable } from '../../utils/props';
|
|
5
4
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
5
|
import { hasListenerMixin } from '../../mixins/has-listener';
|
|
7
6
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
@@ -17,7 +16,7 @@ import { props as props$9, theadMixin } from './helpers/mixin-thead';
|
|
|
17
16
|
|
|
18
17
|
// --- Props ---
|
|
19
18
|
|
|
20
|
-
const props =
|
|
19
|
+
const props = sortKeys({
|
|
21
20
|
...props$1,
|
|
22
21
|
...props$2,
|
|
23
22
|
...props$3,
|
|
@@ -27,7 +26,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
27
26
|
...props$7,
|
|
28
27
|
...props$8,
|
|
29
28
|
...props$9
|
|
30
|
-
})
|
|
29
|
+
});
|
|
31
30
|
|
|
32
31
|
// --- Main component ---
|
|
33
32
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TABLE_SIMPLE } from '../../constants/components';
|
|
3
3
|
import { sortKeys } from '../../utils/object';
|
|
4
|
-
import { makePropsConfigurable } from '../../utils/props';
|
|
5
4
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
5
|
import { hasListenerMixin } from '../../mixins/has-listener';
|
|
7
6
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
@@ -11,11 +10,11 @@ import { props as props$3, tableRendererMixin } from './helpers/mixin-table-rend
|
|
|
11
10
|
|
|
12
11
|
// --- Props ---
|
|
13
12
|
|
|
14
|
-
const props =
|
|
13
|
+
const props = sortKeys({
|
|
15
14
|
...props$1,
|
|
16
15
|
...props$2,
|
|
17
16
|
...props$3
|
|
18
|
-
})
|
|
17
|
+
});
|
|
19
18
|
|
|
20
19
|
// --- Main component ---
|
|
21
20
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TABLE } from '../../constants/components';
|
|
3
3
|
import { sortKeys } from '../../utils/object';
|
|
4
|
-
import { makePropsConfigurable } from '../../utils/props';
|
|
5
4
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
5
|
import { hasListenerMixin } from '../../mixins/has-listener';
|
|
7
6
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
@@ -26,7 +25,7 @@ import { props as props$i, topRowMixin } from './helpers/mixin-top-row';
|
|
|
26
25
|
|
|
27
26
|
// --- Props ---
|
|
28
27
|
|
|
29
|
-
const props =
|
|
28
|
+
const props = sortKeys({
|
|
30
29
|
...props$1,
|
|
31
30
|
...props$2,
|
|
32
31
|
...props$3,
|
|
@@ -45,7 +44,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
45
44
|
...props$g,
|
|
46
45
|
...props$h,
|
|
47
46
|
...props$i
|
|
48
|
-
})
|
|
47
|
+
});
|
|
49
48
|
|
|
50
49
|
// --- Main component ---
|
|
51
50
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TBODY } from '../../constants/components';
|
|
3
3
|
import { PROP_TYPE_OBJECT } from '../../constants/props';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../../utils/props';
|
|
5
5
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
6
|
import { listenersMixin } from '../../mixins/listeners';
|
|
7
7
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
8
8
|
|
|
9
9
|
// --- Props ---
|
|
10
10
|
|
|
11
|
-
const props =
|
|
11
|
+
const props = {
|
|
12
12
|
tbodyTransitionHandlers: makeProp(PROP_TYPE_OBJECT),
|
|
13
13
|
tbodyTransitionProps: makeProp(PROP_TYPE_OBJECT)
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
|
|
16
16
|
// --- Main component ---
|
|
17
17
|
|
|
@@ -4,7 +4,7 @@ import { PROP_TYPE_NUMBER_STRING, PROP_TYPE_STRING, PROP_TYPE_BOOLEAN } from '..
|
|
|
4
4
|
import { isTag } from '../../utils/dom';
|
|
5
5
|
import { isUndefinedOrNull } from '../../utils/inspect';
|
|
6
6
|
import { toInteger } from '../../utils/number';
|
|
7
|
-
import {
|
|
7
|
+
import { makeProp } from '../../utils/props';
|
|
8
8
|
import { toString } from '../../utils/string';
|
|
9
9
|
import { attrsMixin } from '../../mixins/attrs';
|
|
10
10
|
import { listenersMixin } from '../../mixins/listeners';
|
|
@@ -23,13 +23,13 @@ const spanValidator = value => isUndefinedOrNull(value) || parseSpan(value) > 0;
|
|
|
23
23
|
|
|
24
24
|
// --- Props ---
|
|
25
25
|
|
|
26
|
-
const props =
|
|
26
|
+
const props = {
|
|
27
27
|
colspan: makeProp(PROP_TYPE_NUMBER_STRING, null, spanValidator),
|
|
28
28
|
rowspan: makeProp(PROP_TYPE_NUMBER_STRING, null, spanValidator),
|
|
29
29
|
stackedHeading: makeProp(PROP_TYPE_STRING),
|
|
30
30
|
stickyColumn: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
31
31
|
variant: makeProp(PROP_TYPE_STRING)
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
|
|
34
34
|
// --- Main component ---
|
|
35
35
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TFOOT } from '../../constants/components';
|
|
3
3
|
import { PROP_TYPE_STRING } from '../../constants/props';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../../utils/props';
|
|
5
5
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
6
|
import { listenersMixin } from '../../mixins/listeners';
|
|
7
7
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
8
8
|
|
|
9
9
|
// --- Props ---
|
|
10
10
|
|
|
11
|
-
const props =
|
|
11
|
+
const props = {
|
|
12
12
|
// Supported values: 'lite', 'dark', or null
|
|
13
13
|
footVariant: makeProp(PROP_TYPE_STRING)
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
|
|
16
16
|
// --- Main component ---
|
|
17
17
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TH } from '../../constants/components';
|
|
3
|
-
import { makePropsConfigurable } from '../../utils/props';
|
|
4
3
|
import { props as props$1, BTd } from './td';
|
|
5
4
|
|
|
6
5
|
// --- Props ---
|
|
7
6
|
|
|
8
|
-
const props =
|
|
7
|
+
const props = props$1;
|
|
9
8
|
|
|
10
9
|
// --- Main component ---
|
|
11
10
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_THEAD } from '../../constants/components';
|
|
3
3
|
import { PROP_TYPE_STRING } from '../../constants/props';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../../utils/props';
|
|
5
5
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
6
|
import { listenersMixin } from '../../mixins/listeners';
|
|
7
7
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
8
8
|
|
|
9
9
|
// --- Props ---
|
|
10
10
|
|
|
11
|
-
const props =
|
|
11
|
+
const props = {
|
|
12
12
|
// Also sniffed by `<b-tr>` / `<b-td>` / `<b-th>`
|
|
13
13
|
// Supported values: 'lite', 'dark', or `null`
|
|
14
14
|
headVariant: makeProp(PROP_TYPE_STRING)
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
|
|
17
17
|
// --- Main component ---
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extend } from '../../vue';
|
|
2
2
|
import { NAME_TR } from '../../constants/components';
|
|
3
3
|
import { PROP_TYPE_STRING } from '../../constants/props';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../../utils/props';
|
|
5
5
|
import { attrsMixin } from '../../mixins/attrs';
|
|
6
6
|
import { listenersMixin } from '../../mixins/listeners';
|
|
7
7
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
@@ -13,9 +13,9 @@ const DARK = 'dark';
|
|
|
13
13
|
|
|
14
14
|
// --- Props ---
|
|
15
15
|
|
|
16
|
-
const props =
|
|
16
|
+
const props = {
|
|
17
17
|
variant: makeProp(PROP_TYPE_STRING)
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
|
|
20
20
|
// --- Main component ---
|
|
21
21
|
|
|
@@ -4,7 +4,7 @@ import { MODEL_EVENT_NAME_PREFIX } from '../../constants/events';
|
|
|
4
4
|
import { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING, PROP_TYPE_ARRAY_OBJECT_STRING, PROP_TYPE_OBJECT } from '../../constants/props';
|
|
5
5
|
import { SLOT_NAME_TITLE } from '../../constants/slots';
|
|
6
6
|
import { sortKeys } from '../../utils/object';
|
|
7
|
-
import {
|
|
7
|
+
import { makeProp } from '../../utils/props';
|
|
8
8
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
9
9
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
10
10
|
import { BVTransition } from '../transition/bv-transition';
|
|
@@ -16,7 +16,7 @@ const MODEL_EVENT_NAME_ACTIVE = MODEL_EVENT_NAME_PREFIX + MODEL_PROP_NAME_ACTIVE
|
|
|
16
16
|
|
|
17
17
|
// --- Props ---
|
|
18
18
|
|
|
19
|
-
const props =
|
|
19
|
+
const props = sortKeys({
|
|
20
20
|
...props$1,
|
|
21
21
|
[MODEL_PROP_NAME_ACTIVE]: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
22
22
|
buttonId: makeProp(PROP_TYPE_STRING),
|
|
@@ -30,7 +30,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
30
30
|
titleLinkAttributes: makeProp(PROP_TYPE_OBJECT),
|
|
31
31
|
// Sniffed by `<b-tabs>` and added to nav `a.nav-link`
|
|
32
32
|
titleLinkClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING)
|
|
33
|
-
})
|
|
33
|
+
});
|
|
34
34
|
|
|
35
35
|
// --- Main component ---
|
|
36
36
|
|
|
@@ -17,7 +17,7 @@ import { makeModelMixin } from '../../utils/model';
|
|
|
17
17
|
import { toInteger } from '../../utils/number';
|
|
18
18
|
import { sortKeys } from '../../utils/object';
|
|
19
19
|
import { observeDom } from '../../utils/observe-dom';
|
|
20
|
-
import { makeProp
|
|
20
|
+
import { makeProp } from '../../utils/props';
|
|
21
21
|
import { stableSort } from '../../utils/stable-sort';
|
|
22
22
|
import { props as props$1, idMixin } from '../../mixins/id';
|
|
23
23
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
@@ -170,7 +170,7 @@ const navProps = {
|
|
|
170
170
|
pills: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
171
171
|
small: makeProp(PROP_TYPE_BOOLEAN, false)
|
|
172
172
|
};
|
|
173
|
-
const props =
|
|
173
|
+
const props = sortKeys({
|
|
174
174
|
...props$1,
|
|
175
175
|
...modelProps,
|
|
176
176
|
...navProps,
|
|
@@ -190,7 +190,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
190
190
|
noKeyNav: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
191
191
|
noNavStyle: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
192
192
|
tag: makeProp(PROP_TYPE_STRING, 'div')
|
|
193
|
-
})
|
|
193
|
+
});
|
|
194
194
|
|
|
195
195
|
// --- Main component ---
|
|
196
196
|
|
|
@@ -11,7 +11,7 @@ import { mathMax } from '../../utils/math';
|
|
|
11
11
|
import { makeModelMixin } from '../../utils/model';
|
|
12
12
|
import { toInteger } from '../../utils/number';
|
|
13
13
|
import { pick, sortKeys } from '../../utils/object';
|
|
14
|
-
import {
|
|
14
|
+
import { makeProp, pluckProps } from '../../utils/props';
|
|
15
15
|
import { isLink } from '../../utils/router';
|
|
16
16
|
import { createNewChildComponent } from '../../utils/create-new-child-component';
|
|
17
17
|
import { attrsMixin } from '../../mixins/attrs';
|
|
@@ -40,7 +40,7 @@ const MIN_DURATION = 1000;
|
|
|
40
40
|
// --- Props ---
|
|
41
41
|
|
|
42
42
|
const linkProps = pick(props$1, ['href', 'to']);
|
|
43
|
-
const props =
|
|
43
|
+
const props = sortKeys({
|
|
44
44
|
...props$2,
|
|
45
45
|
...modelProps,
|
|
46
46
|
...linkProps,
|
|
@@ -61,7 +61,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
61
61
|
toastClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
62
62
|
toaster: makeProp(PROP_TYPE_STRING, 'b-toaster-top-right'),
|
|
63
63
|
variant: makeProp(PROP_TYPE_STRING)
|
|
64
|
-
})
|
|
64
|
+
});
|
|
65
65
|
|
|
66
66
|
// --- Main component ---
|
|
67
67
|
|
|
@@ -5,7 +5,7 @@ import { EVENT_NAME_DESTROYED } from '../../constants/events';
|
|
|
5
5
|
import { PROP_TYPE_STRING } from '../../constants/props';
|
|
6
6
|
import { requestAF, removeClass } from '../../utils/dom';
|
|
7
7
|
import { getRootEventName } from '../../utils/events';
|
|
8
|
-
import {
|
|
8
|
+
import { makeProp } from '../../utils/props';
|
|
9
9
|
import { warn } from '../../utils/warn';
|
|
10
10
|
import { listenOnRootMixin } from '../../mixins/listen-on-root';
|
|
11
11
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
@@ -48,7 +48,7 @@ const DefaultTransition = /*#__PURE__*/extend({
|
|
|
48
48
|
|
|
49
49
|
// --- Props ---
|
|
50
50
|
|
|
51
|
-
const props =
|
|
51
|
+
const props = {
|
|
52
52
|
// Allowed: 'true' or 'false' or `null`
|
|
53
53
|
ariaAtomic: makeProp(PROP_TYPE_STRING),
|
|
54
54
|
ariaLive: makeProp(PROP_TYPE_STRING),
|
|
@@ -56,7 +56,7 @@ const props = makePropsConfigurable({
|
|
|
56
56
|
// Required
|
|
57
57
|
// Aria role
|
|
58
58
|
role: makeProp(PROP_TYPE_STRING)
|
|
59
|
-
}
|
|
59
|
+
};
|
|
60
60
|
|
|
61
61
|
// --- Main component ---
|
|
62
62
|
|
|
@@ -7,7 +7,8 @@ import { useParentMixin } from '../../mixins/use-parent';
|
|
|
7
7
|
import { getScopeId } from '../../utils/get-scope-id';
|
|
8
8
|
import { isUndefinedOrNull } from '../../utils/inspect';
|
|
9
9
|
import { pick } from '../../utils/object';
|
|
10
|
-
import {
|
|
10
|
+
import { TOOLTIP_DELAY } from '../../constants/config';
|
|
11
|
+
import { makeProp } from '../../utils/props';
|
|
11
12
|
import { createNewChildComponent, eventProp } from '../../utils/create-new-child-component';
|
|
12
13
|
import { normalizeSlotMixin } from '../../mixins/normalize-slot';
|
|
13
14
|
import { BVTooltip } from './helpers/bv-tooltip';
|
|
@@ -21,18 +22,18 @@ const MODEL_EVENT_NAME_SHOW = MODEL_EVENT_NAME_PREFIX + MODEL_PROP_NAME_SHOW;
|
|
|
21
22
|
|
|
22
23
|
// --- Props ---
|
|
23
24
|
|
|
24
|
-
const props =
|
|
25
|
+
const props = {
|
|
25
26
|
// String: scrollParent, window, or viewport
|
|
26
27
|
// Element: element reference
|
|
27
28
|
// Object: Vue component
|
|
28
29
|
boundary: makeProp([HTMLElement, PROP_TYPE_OBJECT, PROP_TYPE_STRING], 'scrollParent'),
|
|
29
|
-
boundaryPadding: makeProp(PROP_TYPE_NUMBER_STRING,
|
|
30
|
+
boundaryPadding: makeProp(PROP_TYPE_NUMBER_STRING, 5),
|
|
30
31
|
// String: HTML ID of container, if null body is used (default)
|
|
31
32
|
// HTMLElement: element reference reference
|
|
32
33
|
// Object: Vue Component
|
|
33
34
|
container: makeProp([HTMLElement, PROP_TYPE_OBJECT, PROP_TYPE_STRING]),
|
|
34
|
-
customClass: makeProp(PROP_TYPE_STRING),
|
|
35
|
-
delay: makeProp(PROP_TYPE_NUMBER_OBJECT_STRING,
|
|
35
|
+
customClass: makeProp(PROP_TYPE_STRING, 'gl-tooltip'),
|
|
36
|
+
delay: makeProp(PROP_TYPE_NUMBER_OBJECT_STRING, TOOLTIP_DELAY),
|
|
36
37
|
[MODEL_PROP_NAME_ENABLED]: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
37
38
|
fallbackPlacement: makeProp(PROP_TYPE_ARRAY_STRING, 'flip'),
|
|
38
39
|
// ID to use for tooltip element
|
|
@@ -50,7 +51,7 @@ const props = makePropsConfigurable({
|
|
|
50
51
|
title: makeProp(PROP_TYPE_STRING),
|
|
51
52
|
triggers: makeProp(PROP_TYPE_ARRAY_STRING, 'hover focus'),
|
|
52
53
|
variant: makeProp(PROP_TYPE_STRING)
|
|
53
|
-
}
|
|
54
|
+
};
|
|
54
55
|
|
|
55
56
|
// --- Main component ---
|
|
56
57
|
|
|
@@ -2,4 +2,10 @@ const NAME = 'BvConfig';
|
|
|
2
2
|
const PROP_NAME = '$bvConfig';
|
|
3
3
|
const DEFAULT_BREAKPOINT = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// in milliseconds
|
|
6
|
+
const TOOLTIP_DELAY = {
|
|
7
|
+
show: 500,
|
|
8
|
+
hide: 0
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { DEFAULT_BREAKPOINT, NAME, PROP_NAME, TOOLTIP_DELAY };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { NAME_TOOLTIP } from '../../constants/components';
|
|
2
1
|
import { IS_BROWSER } from '../../constants/env';
|
|
3
2
|
import { EVENT_NAME_SHOW } from '../../constants/events';
|
|
4
3
|
import { concat } from '../../utils/array';
|
|
5
4
|
import { isVue3 } from '../../vue';
|
|
6
|
-
import { getComponentConfig } from '../../utils/config';
|
|
7
5
|
import { getScopeId } from '../../utils/get-scope-id';
|
|
6
|
+
import { TOOLTIP_DELAY } from '../../constants/config';
|
|
8
7
|
import { identity } from '../../utils/identity';
|
|
9
8
|
import { getInstanceFromDirective } from '../../utils/get-instance-from-directive';
|
|
10
9
|
import { isFunction, isString, isNumber, isPlainObject, isUndefined, isUndefinedOrNull } from '../../utils/inspect';
|
|
@@ -60,11 +59,11 @@ const parseBindings = (bindings, vnode) => /* istanbul ignore next: not easy to
|
|
|
60
59
|
html: false,
|
|
61
60
|
interactive: true,
|
|
62
61
|
disabled: false,
|
|
63
|
-
delay:
|
|
64
|
-
boundary:
|
|
65
|
-
boundaryPadding:
|
|
66
|
-
variant:
|
|
67
|
-
customClass:
|
|
62
|
+
delay: TOOLTIP_DELAY,
|
|
63
|
+
boundary: 'scrollParent',
|
|
64
|
+
boundaryPadding: 5,
|
|
65
|
+
variant: undefined,
|
|
66
|
+
customClass: 'gl-tooltip'
|
|
68
67
|
};
|
|
69
68
|
// Process `bindings.value`
|
|
70
69
|
if (isString(bindings.value) || isNumber(bindings.value)) {
|
|
@@ -10,7 +10,7 @@ import { BvEvent } from '../utils/bv-event.class';
|
|
|
10
10
|
import { requestAF, contains, closest, attemptFocus, selectAll, isVisible } from '../utils/dom';
|
|
11
11
|
import { getRootEventName, stopEvent } from '../utils/events';
|
|
12
12
|
import { sortKeys, mergeDeep } from '../utils/object';
|
|
13
|
-
import {
|
|
13
|
+
import { makeProp } from '../utils/props';
|
|
14
14
|
import { warn } from '../utils/warn';
|
|
15
15
|
import { clickOutMixin } from './click-out';
|
|
16
16
|
import { focusInMixin } from './focus-in';
|
|
@@ -34,7 +34,7 @@ const filterVisibles = els => (els || []).filter(isVisible);
|
|
|
34
34
|
|
|
35
35
|
// --- Props ---
|
|
36
36
|
|
|
37
|
-
const props =
|
|
37
|
+
const props = sortKeys({
|
|
38
38
|
...props$1,
|
|
39
39
|
// String: `scrollParent`, `window` or `viewport`
|
|
40
40
|
// HTMLElement: HTML Element reference
|
|
@@ -54,7 +54,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
54
54
|
popperOpts: makeProp(PROP_TYPE_OBJECT, {}),
|
|
55
55
|
// Right align menu (default is left align)
|
|
56
56
|
right: makeProp(PROP_TYPE_BOOLEAN, false)
|
|
57
|
-
})
|
|
57
|
+
});
|
|
58
58
|
|
|
59
59
|
// --- Mixin ---
|
|
60
60
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extend } from '../vue';
|
|
2
2
|
import { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING } from '../constants/props';
|
|
3
3
|
import { requestAF, isVisible, matches, select, attemptFocus } from '../utils/dom';
|
|
4
|
-
import {
|
|
4
|
+
import { makeProp } from '../utils/props';
|
|
5
5
|
|
|
6
6
|
// --- Constants ---
|
|
7
7
|
|
|
@@ -9,14 +9,14 @@ const SELECTOR = 'input, textarea, select';
|
|
|
9
9
|
|
|
10
10
|
// --- Props ---
|
|
11
11
|
|
|
12
|
-
const props =
|
|
12
|
+
const props = {
|
|
13
13
|
autofocus: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
14
14
|
disabled: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
15
15
|
form: makeProp(PROP_TYPE_STRING),
|
|
16
16
|
id: makeProp(PROP_TYPE_STRING),
|
|
17
17
|
name: makeProp(PROP_TYPE_STRING),
|
|
18
18
|
required: makeProp(PROP_TYPE_BOOLEAN, false)
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
// --- Mixin ---
|
|
22
22
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { extend } from '../vue';
|
|
2
2
|
import { PROP_TYPE_BOOLEAN } from '../constants/props';
|
|
3
|
-
import {
|
|
3
|
+
import { makeProp } from '../utils/props';
|
|
4
4
|
|
|
5
5
|
// --- Props ---
|
|
6
6
|
|
|
7
|
-
const props =
|
|
7
|
+
const props = {
|
|
8
8
|
plain: makeProp(PROP_TYPE_BOOLEAN, false)
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
|
|
11
11
|
// --- Mixin ---
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ import { get } from '../utils/get';
|
|
|
4
4
|
import { stripTags } from '../utils/html';
|
|
5
5
|
import { isPlainObject, isUndefined, isArray } from '../utils/inspect';
|
|
6
6
|
import { keys } from '../utils/object';
|
|
7
|
-
import {
|
|
7
|
+
import { makeProp } from '../utils/props';
|
|
8
8
|
import { warn } from '../utils/warn';
|
|
9
9
|
|
|
10
10
|
// --- Constants ---
|
|
@@ -13,13 +13,13 @@ const OPTIONS_OBJECT_DEPRECATED_MSG = 'Setting prop "options" to an object is de
|
|
|
13
13
|
|
|
14
14
|
// --- Props ---
|
|
15
15
|
|
|
16
|
-
const props =
|
|
16
|
+
const props = {
|
|
17
17
|
disabledField: makeProp(PROP_TYPE_STRING, 'disabled'),
|
|
18
18
|
htmlField: makeProp(PROP_TYPE_STRING, 'html'),
|
|
19
19
|
options: makeProp(PROP_TYPE_ARRAY_OBJECT, []),
|
|
20
20
|
textField: makeProp(PROP_TYPE_STRING, 'text'),
|
|
21
21
|
valueField: makeProp(PROP_TYPE_STRING, 'value')
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
|
|
24
24
|
// --- Mixin ---
|
|
25
25
|
|
|
@@ -5,7 +5,7 @@ import { htmlOrText } from '../utils/html';
|
|
|
5
5
|
import { looseEqual } from '../utils/loose-equal';
|
|
6
6
|
import { makeModelMixin } from '../utils/model';
|
|
7
7
|
import { sortKeys, pick, omit } from '../utils/object';
|
|
8
|
-
import {
|
|
8
|
+
import { makeProp } from '../utils/props';
|
|
9
9
|
import { BFormRadio } from '../components/form-radio/form-radio';
|
|
10
10
|
import { props as props$2, formControlMixin } from './form-control';
|
|
11
11
|
import { props as props$6, formCustomMixin } from './form-custom';
|
|
@@ -28,7 +28,7 @@ const {
|
|
|
28
28
|
|
|
29
29
|
// --- Props ---
|
|
30
30
|
|
|
31
|
-
const props =
|
|
31
|
+
const props = sortKeys({
|
|
32
32
|
...props$1,
|
|
33
33
|
...modelProps,
|
|
34
34
|
...props$2,
|
|
@@ -39,7 +39,7 @@ const props = makePropsConfigurable(sortKeys({
|
|
|
39
39
|
ariaInvalid: makeProp(PROP_TYPE_BOOLEAN_STRING, false),
|
|
40
40
|
stacked: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
41
41
|
validated: makeProp(PROP_TYPE_BOOLEAN, false)
|
|
42
|
-
})
|
|
42
|
+
});
|
|
43
43
|
|
|
44
44
|
// --- Mixin ---
|
|
45
45
|
|