bitboss-ui 0.2.31 → 0.2.32
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/BaseButton/BaseButton.vue.d.ts +6 -6
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
- package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
- package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
- package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
- package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
- package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +11 -11
- package/dist/components/BbTable/types.d.ts +107 -107
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/composables/useConfirm.d.ts +10 -10
- package/dist/composables/useOptions.d.ts +2 -2
- package/dist/composables/useRoute.d.ts +2 -2
- package/dist/composables/useRouter.d.ts +1 -1
- package/dist/composables/useToast.d.ts +5 -5
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index.d.ts +126 -126
- package/dist/index101.js +32 -37
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +19 -19
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +16 -16
- package/dist/index105.js.map +1 -1
- package/dist/index107.js +15 -15
- package/dist/index107.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +7 -7
- package/dist/index11.js.map +1 -1
- package/dist/index111.js +16 -16
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +3 -3
- package/dist/index113.js.map +1 -1
- package/dist/index115.js +6 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +4 -4
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +5 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +4 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +11 -11
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +226 -224
- package/dist/index15.js.map +1 -1
- package/dist/index17.js +61 -62
- package/dist/index17.js.map +1 -1
- package/dist/index19.js +22 -22
- package/dist/index19.js.map +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +293 -14
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +23 -23
- package/dist/index2.js.map +1 -1
- package/dist/index200.js +15 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -17
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -28
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -378
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -134
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +235 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +3 -174
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +35 -23
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +4 -4
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -373
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +10 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +378 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +134 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +172 -8
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -3
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -31
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -6
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +26 -233
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -8
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -121
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -27
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +120 -12
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -295
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -2
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +14 -16
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +428 -110
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +88 -105
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +199 -3
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +1 -1
- package/dist/index240.js +1 -1
- package/dist/index241.js +2 -435
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +115 -87
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +104 -198
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +160 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -162
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +37 -14
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +4 -4
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -38
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +15 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index27.js +7 -7
- package/dist/index27.js.map +1 -1
- package/dist/index29.js +15 -15
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -1
- package/dist/index3.js.map +1 -1
- package/dist/index31.js +28 -28
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +10 -11
- package/dist/index33.js.map +1 -1
- package/dist/index35.js +2 -2
- package/dist/index35.js.map +1 -1
- package/dist/index37.js +12 -12
- package/dist/index37.js.map +1 -1
- package/dist/index39.js +5 -7
- package/dist/index39.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index43.js +19 -16
- package/dist/index43.js.map +1 -1
- package/dist/index45.js +9 -9
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +7 -6
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index55.js +20 -20
- package/dist/index55.js.map +1 -1
- package/dist/index57.js +35 -35
- package/dist/index57.js.map +1 -1
- package/dist/index59.js +8 -8
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +38 -38
- package/dist/index6.js.map +1 -1
- package/dist/index61.js +27 -27
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +4 -4
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +20 -20
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +26 -26
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +21 -19
- package/dist/index69.js.map +1 -1
- package/dist/index7.js.map +1 -1
- package/dist/index71.js +2 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +3 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +14 -14
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +18 -18
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +11 -11
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +15 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +10 -7
- package/dist/index8.js.map +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +20 -20
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +34 -34
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +18 -18
- package/dist/index87.js.map +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index91.js +53 -53
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +16 -16
- package/dist/index93.js.map +1 -1
- package/dist/index95.js +21 -21
- package/dist/index95.js.map +1 -1
- package/dist/index97.js +37 -37
- package/dist/index97.js.map +1 -1
- package/dist/index99.js +18 -18
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +18 -18
- package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
- package/dist/types/ExtractGenericFromRef.d.ts +1 -1
- package/dist/types/VoidHtmlElements.d.ts +1 -1
- package/dist/utilities/functions/cloneDeep.d.ts +1 -1
- package/dist/utilities/functions/debounce.d.ts +1 -1
- package/dist/utilities/functions/flow.d.ts +1 -1
- package/dist/utilities/functions/get.d.ts +1 -1
- package/dist/utilities/functions/isNotNil.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/merge.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/overEvery.d.ts +1 -1
- package/dist/utilities/functions/percentage.d.ts +4 -4
- package/dist/utilities/functions/pick.d.ts +1 -1
- package/dist/utilities/functions/pickBy.d.ts +1 -1
- package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
- package/package.json +93 -77
- package/dist/index256.js +0 -5
- package/dist/index256.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { BaseRadioGroupEvents } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseRadioGroupEvents } from '../BaseRadioGroup/BaseRadioGroup.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
import type { NestedKeyOf } from '../../types/NestedKeyOf';
|
|
4
|
-
import type { SlotAttributes } from
|
|
4
|
+
import type { SlotAttributes } from '../BaseRadio/BaseRadio.vue';
|
|
5
5
|
export type BbRadioGroupEvents = BaseRadioGroupEvents;
|
|
6
6
|
export type BbRadioGroupProps<T> = {
|
|
7
7
|
/**
|
|
8
8
|
* Sets autofocus on page load.
|
|
9
9
|
*/
|
|
10
|
-
autofocus?: InputHTMLAttributes[
|
|
10
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
11
11
|
/**
|
|
12
12
|
* Define a color for the component.
|
|
13
13
|
*
|
|
@@ -42,7 +42,7 @@ export type BbRadioGroupProps<T> = {
|
|
|
42
42
|
/**
|
|
43
43
|
* The identifier of the component.
|
|
44
44
|
*/
|
|
45
|
-
id?: HTMLAttributes[
|
|
45
|
+
id?: HTMLAttributes['id'];
|
|
46
46
|
/**
|
|
47
47
|
* Used to retrieve items can be an array or a function.
|
|
48
48
|
*/
|
|
@@ -64,7 +64,7 @@ export type BbRadioGroupProps<T> = {
|
|
|
64
64
|
* `string` is 40% faster but relies on property order.
|
|
65
65
|
* `equality` is more reliable but is slower.
|
|
66
66
|
*/
|
|
67
|
-
matchStrategy?:
|
|
67
|
+
matchStrategy?: 'string' | 'equality';
|
|
68
68
|
/**
|
|
69
69
|
* Used by v-model. Can be any serializable type.
|
|
70
70
|
*/
|
|
@@ -76,7 +76,7 @@ export type BbRadioGroupProps<T> = {
|
|
|
76
76
|
/**
|
|
77
77
|
* Defines the name of the input.
|
|
78
78
|
*/
|
|
79
|
-
name: InputHTMLAttributes[
|
|
79
|
+
name: InputHTMLAttributes['name'];
|
|
80
80
|
/**
|
|
81
81
|
* String displayed when there are no items to display.
|
|
82
82
|
*/
|
|
@@ -84,7 +84,7 @@ export type BbRadioGroupProps<T> = {
|
|
|
84
84
|
/**
|
|
85
85
|
* Sets the input in a readonly state.
|
|
86
86
|
*/
|
|
87
|
-
readonly?: InputHTMLAttributes[
|
|
87
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
88
88
|
/**
|
|
89
89
|
* Can be a string or an array of string containing the messages to display.
|
|
90
90
|
*/
|
|
@@ -104,7 +104,7 @@ export type BbRadioGroupProps<T> = {
|
|
|
104
104
|
/**
|
|
105
105
|
* Defines the direction of the inputs in the fieldset
|
|
106
106
|
*/
|
|
107
|
-
inputDirection?:
|
|
107
|
+
inputDirection?: 'horizontal' | 'vertical';
|
|
108
108
|
/**
|
|
109
109
|
* Text content of the legend.
|
|
110
110
|
*/
|
|
@@ -150,8 +150,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
150
150
|
slots: Readonly<{
|
|
151
151
|
prepend?: ((props: {}) => any) | undefined;
|
|
152
152
|
loading?: ((props: {}) => any) | undefined;
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
154
|
+
'option:prepend'?: ((props: {
|
|
155
155
|
item: any;
|
|
156
156
|
}) => any) | undefined;
|
|
157
157
|
icon?: ((props: SlotAttributes & {
|
|
@@ -163,7 +163,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
163
163
|
text: string;
|
|
164
164
|
checked: boolean;
|
|
165
165
|
}) => any) | undefined;
|
|
166
|
-
|
|
166
|
+
'option:append'?: ((props: {
|
|
167
167
|
item: any;
|
|
168
168
|
}) => any) | undefined;
|
|
169
169
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -174,8 +174,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
174
174
|
}> & {
|
|
175
175
|
prepend?: ((props: {}) => any) | undefined;
|
|
176
176
|
loading?: ((props: {}) => any) | undefined;
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
178
|
+
'option:prepend'?: ((props: {
|
|
179
179
|
item: any;
|
|
180
180
|
}) => any) | undefined;
|
|
181
181
|
icon?: ((props: SlotAttributes & {
|
|
@@ -187,7 +187,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
187
187
|
text: string;
|
|
188
188
|
checked: boolean;
|
|
189
189
|
}) => any) | undefined;
|
|
190
|
-
|
|
190
|
+
'option:append'?: ((props: {
|
|
191
191
|
item: any;
|
|
192
192
|
}) => any) | undefined;
|
|
193
193
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -239,8 +239,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
239
239
|
slots: Readonly<{
|
|
240
240
|
prepend?: ((props: {}) => any) | undefined;
|
|
241
241
|
loading?: ((props: {}) => any) | undefined;
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
243
|
+
'option:prepend'?: ((props: {
|
|
244
244
|
item: any;
|
|
245
245
|
}) => any) | undefined;
|
|
246
246
|
icon?: ((props: SlotAttributes & {
|
|
@@ -252,7 +252,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
252
252
|
text: string;
|
|
253
253
|
checked: boolean;
|
|
254
254
|
}) => any) | undefined;
|
|
255
|
-
|
|
255
|
+
'option:append'?: ((props: {
|
|
256
256
|
item: any;
|
|
257
257
|
}) => any) | undefined;
|
|
258
258
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -263,8 +263,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
263
263
|
}> & {
|
|
264
264
|
prepend?: ((props: {}) => any) | undefined;
|
|
265
265
|
loading?: ((props: {}) => any) | undefined;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
267
|
+
'option:prepend'?: ((props: {
|
|
268
268
|
item: any;
|
|
269
269
|
}) => any) | undefined;
|
|
270
270
|
icon?: ((props: SlotAttributes & {
|
|
@@ -276,7 +276,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
276
276
|
text: string;
|
|
277
277
|
checked: boolean;
|
|
278
278
|
}) => any) | undefined;
|
|
279
|
-
|
|
279
|
+
'option:append'?: ((props: {
|
|
280
280
|
item: any;
|
|
281
281
|
}) => any) | undefined;
|
|
282
282
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -331,8 +331,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
331
331
|
slots: Readonly<{
|
|
332
332
|
prepend?: ((props: {}) => any) | undefined;
|
|
333
333
|
loading?: ((props: {}) => any) | undefined;
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
335
|
+
'option:prepend'?: ((props: {
|
|
336
336
|
item: any;
|
|
337
337
|
}) => any) | undefined;
|
|
338
338
|
icon?: ((props: SlotAttributes & {
|
|
@@ -344,7 +344,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
344
344
|
text: string;
|
|
345
345
|
checked: boolean;
|
|
346
346
|
}) => any) | undefined;
|
|
347
|
-
|
|
347
|
+
'option:append'?: ((props: {
|
|
348
348
|
item: any;
|
|
349
349
|
}) => any) | undefined;
|
|
350
350
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -355,8 +355,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
355
355
|
}> & {
|
|
356
356
|
prepend?: ((props: {}) => any) | undefined;
|
|
357
357
|
loading?: ((props: {}) => any) | undefined;
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
359
|
+
'option:prepend'?: ((props: {
|
|
360
360
|
item: any;
|
|
361
361
|
}) => any) | undefined;
|
|
362
362
|
icon?: ((props: SlotAttributes & {
|
|
@@ -368,7 +368,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
368
368
|
text: string;
|
|
369
369
|
checked: boolean;
|
|
370
370
|
}) => any) | undefined;
|
|
371
|
-
|
|
371
|
+
'option:append'?: ((props: {
|
|
372
372
|
item: any;
|
|
373
373
|
}) => any) | undefined;
|
|
374
374
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { BaseRatingEvents, BaseRatingSlots } from
|
|
2
|
-
import type { BbIconProps } from
|
|
3
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseRatingEvents, BaseRatingSlots } from '../BaseRating/BaseRating.vue';
|
|
2
|
+
import type { BbIconProps } from '../BbIcon/BbIcon.vue';
|
|
3
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
export type BbRatingProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Sets autofocus on page load.
|
|
7
7
|
*/
|
|
8
|
-
autofocus?: InputHTMLAttributes[
|
|
8
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
9
9
|
/**
|
|
10
10
|
* Define a color for the component.
|
|
11
11
|
*
|
|
@@ -24,7 +24,7 @@ export type BbRatingProps = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The identifier of the component.
|
|
26
26
|
*/
|
|
27
|
-
id?: HTMLAttributes[
|
|
27
|
+
id?: HTMLAttributes['id'];
|
|
28
28
|
/**
|
|
29
29
|
* Used by v-model
|
|
30
30
|
*/
|
|
@@ -32,11 +32,11 @@ export type BbRatingProps = {
|
|
|
32
32
|
/**
|
|
33
33
|
* Defines the name of the input.
|
|
34
34
|
*/
|
|
35
|
-
name: Exclude<InputHTMLAttributes[
|
|
35
|
+
name: Exclude<InputHTMLAttributes['name'], undefined>;
|
|
36
36
|
/**
|
|
37
37
|
* Sets the input in a readonly state.
|
|
38
38
|
*/
|
|
39
|
-
readonly?: InputHTMLAttributes[
|
|
39
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
40
40
|
/**
|
|
41
41
|
* Maximum number of stars to render and maximum value of the component
|
|
42
42
|
*/
|
|
@@ -48,7 +48,7 @@ export type BbRatingProps = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.
|
|
50
50
|
*/
|
|
51
|
-
inputPosition?:
|
|
51
|
+
inputPosition?: 'left' | 'center' | 'right';
|
|
52
52
|
/**
|
|
53
53
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
54
54
|
*/
|
|
@@ -64,8 +64,8 @@ export type BbRatingProps = {
|
|
|
64
64
|
/**
|
|
65
65
|
* Sets the text alignment of the legend.
|
|
66
66
|
*/
|
|
67
|
-
legendPosition?:
|
|
68
|
-
} & Pick<BbIconProps,
|
|
67
|
+
legendPosition?: 'left' | 'center' | 'right';
|
|
68
|
+
} & Pick<BbIconProps, 'size'>;
|
|
69
69
|
export type BbRatingEvents = BaseRatingEvents;
|
|
70
70
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbRatingProps>, {
|
|
71
71
|
inputPosition: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseSelectEvents } from
|
|
1
|
+
import type { BaseSelectEvents } from '../BaseSelect/BaseSelect.vue';
|
|
2
2
|
import type { NestedKeyOf } from '../../types/NestedKeyOf';
|
|
3
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
3
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
export type BbSelectProps<T> = {
|
|
5
5
|
/**
|
|
6
6
|
* Allows the user to add options to the list by
|
|
@@ -16,11 +16,11 @@ export type BbSelectProps<T> = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Guides to the browser as to the type of information expected in the field.
|
|
18
18
|
*/
|
|
19
|
-
autocomplete?: InputHTMLAttributes[
|
|
19
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
20
20
|
/**
|
|
21
21
|
* Sets autofocus on page load.
|
|
22
22
|
*/
|
|
23
|
-
autofocus?: InputHTMLAttributes[
|
|
23
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
24
24
|
/**
|
|
25
25
|
* Sets the display model for selected values to a list
|
|
26
26
|
* of comma separated string. In this mode the user
|
|
@@ -38,7 +38,7 @@ export type BbSelectProps<T> = {
|
|
|
38
38
|
/**
|
|
39
39
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
40
40
|
*/
|
|
41
|
-
direction?:
|
|
41
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
42
42
|
/**
|
|
43
43
|
* Disables the component
|
|
44
44
|
*/
|
|
@@ -77,7 +77,7 @@ export type BbSelectProps<T> = {
|
|
|
77
77
|
/**
|
|
78
78
|
* The identifier of the component.
|
|
79
79
|
*/
|
|
80
|
-
id?: HTMLAttributes[
|
|
80
|
+
id?: HTMLAttributes['id'];
|
|
81
81
|
/**
|
|
82
82
|
* Used to retrieve items can be an array or a function.
|
|
83
83
|
*/
|
|
@@ -97,7 +97,7 @@ export type BbSelectProps<T> = {
|
|
|
97
97
|
/**
|
|
98
98
|
* Sets the text alignment of the label.
|
|
99
99
|
*/
|
|
100
|
-
labelPosition?:
|
|
100
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
101
101
|
/**
|
|
102
102
|
* String displayed while items are being loaded.
|
|
103
103
|
*/
|
|
@@ -107,7 +107,7 @@ export type BbSelectProps<T> = {
|
|
|
107
107
|
* `string` is 40% faster but relies on property order.
|
|
108
108
|
* `equality` is more reliable but is slower.
|
|
109
109
|
*/
|
|
110
|
-
matchStrategy?:
|
|
110
|
+
matchStrategy?: 'string' | 'equality';
|
|
111
111
|
/**
|
|
112
112
|
* Used by v-model. Can be any serializable type.
|
|
113
113
|
*/
|
|
@@ -123,7 +123,7 @@ export type BbSelectProps<T> = {
|
|
|
123
123
|
/**
|
|
124
124
|
* Defines the name of the input.
|
|
125
125
|
*/
|
|
126
|
-
name?: InputHTMLAttributes[
|
|
126
|
+
name?: InputHTMLAttributes['name'];
|
|
127
127
|
/**
|
|
128
128
|
* String displayed when there are no items to display.
|
|
129
129
|
*/
|
|
@@ -131,12 +131,12 @@ export type BbSelectProps<T> = {
|
|
|
131
131
|
/**
|
|
132
132
|
* String displayed when there's no data.
|
|
133
133
|
*/
|
|
134
|
-
placeholder?: InputHTMLAttributes[
|
|
134
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
135
135
|
/**
|
|
136
136
|
* Defines the prefill strategy for the input. By default the input will prefill
|
|
137
137
|
* on focus. It can also always prefill with `true` and only prefill on search with `false`.
|
|
138
138
|
*/
|
|
139
|
-
prefill?: boolean |
|
|
139
|
+
prefill?: boolean | 'focus';
|
|
140
140
|
/**
|
|
141
141
|
* Time to wait when the users stops writing in the input before querying data.
|
|
142
142
|
* Especially useful when searching live data on big datasets.
|
|
@@ -145,7 +145,7 @@ export type BbSelectProps<T> = {
|
|
|
145
145
|
/**
|
|
146
146
|
* Sets the input in a readonly state.
|
|
147
147
|
*/
|
|
148
|
-
readonly?: InputHTMLAttributes[
|
|
148
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
149
149
|
/**
|
|
150
150
|
* If `true` when in multiple selection, reset the query immediately
|
|
151
151
|
* upon selecting an option. By default the query is
|
|
@@ -177,7 +177,7 @@ export type BbSelectProps<T> = {
|
|
|
177
177
|
export type BbSelectEvents = BaseSelectEvents;
|
|
178
178
|
export type BbSelectSlots<T> = {
|
|
179
179
|
append?: (props: {}) => any;
|
|
180
|
-
|
|
180
|
+
'append-outer'?: (props: {}) => any;
|
|
181
181
|
chevron?: (props: {
|
|
182
182
|
loading: boolean;
|
|
183
183
|
shown: boolean;
|
|
@@ -200,7 +200,7 @@ export type BbSelectSlots<T> = {
|
|
|
200
200
|
loading?: (props: {
|
|
201
201
|
query: string;
|
|
202
202
|
}) => any;
|
|
203
|
-
|
|
203
|
+
'no-data'?: (props: {
|
|
204
204
|
query: string;
|
|
205
205
|
}) => any;
|
|
206
206
|
option?: (props: {
|
|
@@ -215,16 +215,16 @@ export type BbSelectSlots<T> = {
|
|
|
215
215
|
text: string;
|
|
216
216
|
value: any;
|
|
217
217
|
}) => any;
|
|
218
|
-
|
|
218
|
+
'option:append'?: (props: {
|
|
219
219
|
item: T;
|
|
220
220
|
}) => any;
|
|
221
|
-
|
|
221
|
+
'option:prepend'?: (props: {
|
|
222
222
|
item: T;
|
|
223
223
|
}) => any;
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
'options:append'?: (props: {}) => any;
|
|
225
|
+
'options:prepend'?: (props: {}) => any;
|
|
226
226
|
prepend?: (props: {}) => any;
|
|
227
|
-
|
|
227
|
+
'prepend-outer'?: (props: {}) => any;
|
|
228
228
|
spinner?: (props: {
|
|
229
229
|
loading: boolean;
|
|
230
230
|
}) => any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { BaseSliderEvents, BaseSliderSlots } from
|
|
2
|
-
import type { HTMLAttributes, InputHTMLAttributes } from
|
|
1
|
+
import type { BaseSliderEvents, BaseSliderSlots } from '../BaseSlider/BaseSlider.vue';
|
|
2
|
+
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
export type BbSliderProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Sets autofocus on page load.
|
|
6
6
|
*/
|
|
7
|
-
autofocus?: InputHTMLAttributes[
|
|
7
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
8
8
|
/**
|
|
9
9
|
* Define a color for the component.
|
|
10
10
|
*
|
|
@@ -14,7 +14,7 @@ export type BbSliderProps = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
16
16
|
*/
|
|
17
|
-
direction?:
|
|
17
|
+
direction?: 'horizontal' | 'vertical' | 'auto' | string;
|
|
18
18
|
/**
|
|
19
19
|
* Disables the component
|
|
20
20
|
*/
|
|
@@ -35,7 +35,7 @@ export type BbSliderProps = {
|
|
|
35
35
|
/**
|
|
36
36
|
* The identifier of the component.
|
|
37
37
|
*/
|
|
38
|
-
id?: HTMLAttributes[
|
|
38
|
+
id?: HTMLAttributes['id'];
|
|
39
39
|
/**
|
|
40
40
|
* Text content of the label of the element.
|
|
41
41
|
*/
|
|
@@ -43,7 +43,7 @@ export type BbSliderProps = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Sets the text alignment of the label.
|
|
45
45
|
*/
|
|
46
|
-
labelPosition?:
|
|
46
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
47
47
|
/**
|
|
48
48
|
* Maximum value cap.
|
|
49
49
|
*/
|
|
@@ -59,11 +59,11 @@ export type BbSliderProps = {
|
|
|
59
59
|
/**
|
|
60
60
|
* Defines the name of the input.
|
|
61
61
|
*/
|
|
62
|
-
name?: InputHTMLAttributes[
|
|
62
|
+
name?: InputHTMLAttributes['name'];
|
|
63
63
|
/**
|
|
64
64
|
* Sets the input in a readonly state.
|
|
65
65
|
*/
|
|
66
|
-
readonly?: InputHTMLAttributes[
|
|
66
|
+
readonly?: InputHTMLAttributes['readonly'];
|
|
67
67
|
/**
|
|
68
68
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
69
69
|
*/
|
|
@@ -13,7 +13,7 @@ export type BbSmoothHeightProps = {
|
|
|
13
13
|
* component will update on resizing.
|
|
14
14
|
* You can also define 'mutation' to use a MutationObserver
|
|
15
15
|
*/
|
|
16
|
-
strategy?:
|
|
16
|
+
strategy?: 'resize' | 'mutation';
|
|
17
17
|
} & NonVoidElementTag & Pick<CommonProps, 'transitionDuration'>;
|
|
18
18
|
export type BbSmoothHeightSlots = {
|
|
19
19
|
default?: (props: {}) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CommonProps, Size as S } from '../../types/CommonProps';
|
|
2
|
-
import type { Size as IconSize } from
|
|
2
|
+
import type { Size as IconSize } from '../BbIcon/BbIcon.vue';
|
|
3
3
|
export type Size = IconSize;
|
|
4
|
-
export type BbSpinnerProps = Pick<CommonProps,
|
|
4
|
+
export type BbSpinnerProps = Pick<CommonProps, 'color'> & S<IconSize>;
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbSpinnerProps>, {
|
|
6
6
|
size: string;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbSpinnerProps>, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SlotAttributes } from
|
|
2
|
-
import type { BbCheckboxEvents, BbCheckboxProps } from
|
|
1
|
+
import type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
|
|
2
|
+
import type { BbCheckboxEvents, BbCheckboxProps } from '../BbCheckbox/BbCheckbox.vue';
|
|
3
3
|
export type BbSwitchProps = BbCheckboxProps;
|
|
4
4
|
export type BbSwitchEvents = BbCheckboxEvents;
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbCheckboxProps>, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SlotAttributes } from
|
|
2
|
-
import type { BbCheckboxGroupEvents, BbCheckboxGroupProps } from
|
|
1
|
+
import type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
|
|
2
|
+
import type { BbCheckboxGroupEvents, BbCheckboxGroupProps } from '../BbCheckboxGroup/BbCheckboxGroup.vue';
|
|
3
3
|
export type BbSwitchGroupProps<T> = BbCheckboxGroupProps<T>;
|
|
4
4
|
export type BbSwitchGroupEvents = BbCheckboxGroupEvents;
|
|
5
5
|
declare const _default: <T = any>(__VLS_props: {
|
|
@@ -42,8 +42,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
42
42
|
slots: Readonly<{
|
|
43
43
|
prepend?: ((props: {}) => any) | undefined;
|
|
44
44
|
loading?: ((props: {}) => any) | undefined;
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
46
|
+
'option:prepend'?: ((props: {
|
|
47
47
|
item: T;
|
|
48
48
|
}) => any) | undefined;
|
|
49
49
|
icon?: ((props: SlotAttributes & {
|
|
@@ -55,7 +55,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
55
55
|
text: string;
|
|
56
56
|
checked: boolean;
|
|
57
57
|
}) => any) | undefined;
|
|
58
|
-
|
|
58
|
+
'option:append'?: ((props: {
|
|
59
59
|
item: T;
|
|
60
60
|
}) => any) | undefined;
|
|
61
61
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -66,8 +66,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
66
66
|
}> & {
|
|
67
67
|
prepend?: ((props: {}) => any) | undefined;
|
|
68
68
|
loading?: ((props: {}) => any) | undefined;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
70
|
+
'option:prepend'?: ((props: {
|
|
71
71
|
item: T;
|
|
72
72
|
}) => any) | undefined;
|
|
73
73
|
icon?: ((props: SlotAttributes & {
|
|
@@ -79,7 +79,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
79
79
|
text: string;
|
|
80
80
|
checked: boolean;
|
|
81
81
|
}) => any) | undefined;
|
|
82
|
-
|
|
82
|
+
'option:append'?: ((props: {
|
|
83
83
|
item: T;
|
|
84
84
|
}) => any) | undefined;
|
|
85
85
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -131,8 +131,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
131
131
|
slots: Readonly<{
|
|
132
132
|
prepend?: ((props: {}) => any) | undefined;
|
|
133
133
|
loading?: ((props: {}) => any) | undefined;
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
135
|
+
'option:prepend'?: ((props: {
|
|
136
136
|
item: T;
|
|
137
137
|
}) => any) | undefined;
|
|
138
138
|
icon?: ((props: SlotAttributes & {
|
|
@@ -144,7 +144,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
144
144
|
text: string;
|
|
145
145
|
checked: boolean;
|
|
146
146
|
}) => any) | undefined;
|
|
147
|
-
|
|
147
|
+
'option:append'?: ((props: {
|
|
148
148
|
item: T;
|
|
149
149
|
}) => any) | undefined;
|
|
150
150
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -155,8 +155,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
155
155
|
}> & {
|
|
156
156
|
prepend?: ((props: {}) => any) | undefined;
|
|
157
157
|
loading?: ((props: {}) => any) | undefined;
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
159
|
+
'option:prepend'?: ((props: {
|
|
160
160
|
item: T;
|
|
161
161
|
}) => any) | undefined;
|
|
162
162
|
icon?: ((props: SlotAttributes & {
|
|
@@ -168,7 +168,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
168
168
|
text: string;
|
|
169
169
|
checked: boolean;
|
|
170
170
|
}) => any) | undefined;
|
|
171
|
-
|
|
171
|
+
'option:append'?: ((props: {
|
|
172
172
|
item: T;
|
|
173
173
|
}) => any) | undefined;
|
|
174
174
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -223,8 +223,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
223
223
|
slots: Readonly<{
|
|
224
224
|
prepend?: ((props: {}) => any) | undefined;
|
|
225
225
|
loading?: ((props: {}) => any) | undefined;
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
227
|
+
'option:prepend'?: ((props: {
|
|
228
228
|
item: T;
|
|
229
229
|
}) => any) | undefined;
|
|
230
230
|
icon?: ((props: SlotAttributes & {
|
|
@@ -236,7 +236,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
236
236
|
text: string;
|
|
237
237
|
checked: boolean;
|
|
238
238
|
}) => any) | undefined;
|
|
239
|
-
|
|
239
|
+
'option:append'?: ((props: {
|
|
240
240
|
item: T;
|
|
241
241
|
}) => any) | undefined;
|
|
242
242
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -247,8 +247,8 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
247
247
|
}> & {
|
|
248
248
|
prepend?: ((props: {}) => any) | undefined;
|
|
249
249
|
loading?: ((props: {}) => any) | undefined;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
'no-data'?: ((props: {}) => any) | undefined;
|
|
251
|
+
'option:prepend'?: ((props: {
|
|
252
252
|
item: T;
|
|
253
253
|
}) => any) | undefined;
|
|
254
254
|
icon?: ((props: SlotAttributes & {
|
|
@@ -260,7 +260,7 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
260
260
|
text: string;
|
|
261
261
|
checked: boolean;
|
|
262
262
|
}) => any) | undefined;
|
|
263
|
-
|
|
263
|
+
'option:append'?: ((props: {
|
|
264
264
|
item: T;
|
|
265
265
|
}) => any) | undefined;
|
|
266
266
|
append?: ((props: {}) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
-
export type BbTabItem = Pick<CommonProps,
|
|
2
|
+
export type BbTabItem = Pick<CommonProps, 'disabled'> & {
|
|
3
3
|
/**
|
|
4
4
|
* Used to render a tab even when not visible.
|
|
5
5
|
* It's useful if you want the content of a tab in the DOM
|
|
@@ -16,11 +16,11 @@ export type BbTabItem = Pick<CommonProps, "disabled"> & {
|
|
|
16
16
|
*/
|
|
17
17
|
label?: string;
|
|
18
18
|
};
|
|
19
|
-
export type BbTabProps = Pick<CommonProps,
|
|
19
|
+
export type BbTabProps = Pick<CommonProps, 'disabled' | 'eager' | 'id'> & {
|
|
20
20
|
/**
|
|
21
21
|
* Direction of the tabs component
|
|
22
22
|
*/
|
|
23
|
-
direction?:
|
|
23
|
+
direction?: 'horizontal' | 'vertical';
|
|
24
24
|
/**
|
|
25
25
|
* Array of items that define the tabs in the component.
|
|
26
26
|
*/
|
|
@@ -28,7 +28,7 @@ export type BbTabProps = Pick<CommonProps, "disabled" | "eager" | "id"> & {
|
|
|
28
28
|
/**
|
|
29
29
|
* The current tab. Used by v-model.
|
|
30
30
|
*/
|
|
31
|
-
modelValue?: null | BbTabItem[
|
|
31
|
+
modelValue?: null | BbTabItem['key'];
|
|
32
32
|
/**
|
|
33
33
|
* Synchronizes the current tab with the url.
|
|
34
34
|
*/
|
|
@@ -47,7 +47,7 @@ declare const props: Readonly<Omit<import("@vue/shared").LooseRequired<BbTabProp
|
|
|
47
47
|
readonly navigation: boolean;
|
|
48
48
|
};
|
|
49
49
|
export type BbTabEvents = {
|
|
50
|
-
(e:
|
|
50
|
+
(e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;
|
|
51
51
|
};
|
|
52
52
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTabProps>, {
|
|
53
53
|
direction: string;
|