bitboss-ui 2.1.126 → 2.1.128
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/ai/BbButton.md +0 -10
- package/dist/ai/BbTable.md +635 -2
- package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +6 -6
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +6 -6
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -4
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +6 -6
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +1 -1
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +8 -8
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +6 -6
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +3 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +6 -6
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -2
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +7 -7
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +6 -6
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +6 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +7 -7
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +6 -6
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -4
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -3
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +8 -8
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +7 -7
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbRadio/BbRadio.vue.d.ts +7 -7
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +3 -3
- package/dist/components/BbRating/BbRating.vue.d.ts +6 -6
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +2 -2
- package/dist/components/BbSlider/BbSlider.vue.d.ts +6 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +7 -7
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +3 -3
- package/dist/components/BbTable/types.d.ts +32 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +6 -6
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +6 -6
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +6 -6
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useTableWidthContext.d.ts +35 -0
- package/dist/directives/bbDropdown.d.ts +8 -2
- package/dist/directives/bbTooltip.d.ts +7 -2
- package/dist/index.css +1 -1
- package/dist/index.js +9 -9
- package/dist/index240.js +58 -61
- package/dist/index270.js +1 -1
- package/dist/index325.js +34 -41
- package/dist/index326.js +40 -447
- package/dist/index327.js +632 -0
- package/dist/index329.js +5 -154
- package/dist/index330.js +155 -0
- package/dist/index332.js +5 -141
- package/dist/index333.js +142 -0
- package/dist/index335.js +5 -154
- package/dist/index336.js +155 -0
- package/dist/index338.js +5 -57
- package/dist/index339.js +57 -4
- package/dist/index340.js +4 -19
- package/dist/index341.js +20 -0
- package/dist/index343.js +5 -141
- package/dist/index344.js +142 -0
- package/dist/index346.js +5 -3
- package/dist/index347.js +3 -108
- package/dist/index348.js +109 -0
- package/dist/index350.js +5 -54
- package/dist/index351.js +54 -23
- package/dist/index352.js +12 -11
- package/dist/index353.js +22 -838
- package/dist/index354.js +811 -446
- package/dist/index355.js +472 -50
- package/dist/index356.js +51 -6
- package/dist/index357.js +7 -0
- package/package.json +1 -1
- package/dist/index328.js +0 -6
- package/dist/index331.js +0 -6
- package/dist/index334.js +0 -6
- package/dist/index337.js +0 -6
- package/dist/index342.js +0 -6
- package/dist/index345.js +0 -6
- package/dist/index349.js +0 -6
|
@@ -8,16 +8,16 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
+
shown: () => any;
|
|
11
12
|
show: () => any;
|
|
12
13
|
hide: () => any;
|
|
13
|
-
shown: () => any;
|
|
14
14
|
hidden: () => any;
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
onShown?: (() => any) | undefined;
|
|
16
18
|
onShow?: (() => any) | undefined;
|
|
17
19
|
onHide?: (() => any) | undefined;
|
|
18
|
-
onShown?: (() => any) | undefined;
|
|
19
20
|
onHidden?: (() => any) | undefined;
|
|
20
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
showClose: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BbDropdownProps, BbDropdownSlots, DropdownTrigger } from './types';
|
|
2
2
|
type __VLS_Slots = BbDropdownSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbDropdownProps> & Readonly<{}>, {
|
|
4
|
-
transitionDuration: number;
|
|
5
|
-
theme: string;
|
|
6
|
-
width: number | string;
|
|
7
4
|
arrowPadding: number;
|
|
8
5
|
offset: number;
|
|
9
6
|
padding: number;
|
|
10
7
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "cursor";
|
|
8
|
+
transitionDuration: number;
|
|
9
|
+
theme: string;
|
|
10
|
+
width: number | string;
|
|
11
11
|
trigger: DropdownTrigger | DropdownTrigger[];
|
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BbDropzoneProps, BbDropzoneSlots, DropZoneError } from './types';
|
|
2
2
|
type __VLS_Slots = BbDropzoneSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbDropzoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
|
-
blur: (event: FocusEvent) => any;
|
|
5
|
-
focus: (event: FocusEvent) => any;
|
|
6
4
|
"update:modelValue": (data: any) => any;
|
|
5
|
+
blur: (event: FocusEvent) => any;
|
|
7
6
|
error: (data: DropZoneError) => any;
|
|
7
|
+
focus: (event: FocusEvent) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<BbDropzoneProps> & Readonly<{
|
|
9
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
10
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
11
9
|
"onUpdate:modelValue"?: ((data: any) => any) | undefined;
|
|
10
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
12
11
|
onError?: ((data: DropZoneError) => any) | undefined;
|
|
12
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
tag: keyof Omit<HTMLElementTagNameMap, import('../../types/VoidHtmlElements').VoidHTMLElements>;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,28 +5,28 @@ declare const __VLS_base: import('vue').DefineComponent<BbNumberInputProps, {
|
|
|
5
5
|
decrease: () => void;
|
|
6
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
7
|
input: (event: Event) => any;
|
|
8
|
+
"update:modelValue": (value: number | null) => any;
|
|
9
|
+
click: (event: MouseEvent) => any;
|
|
10
|
+
keydown: (event: KeyboardEvent) => any;
|
|
8
11
|
blur: (event: FocusEvent) => any;
|
|
9
12
|
change: (event: Event) => any;
|
|
10
|
-
click: (event: MouseEvent) => any;
|
|
11
13
|
focus: (event: FocusEvent) => any;
|
|
12
|
-
|
|
14
|
+
keyup: (event: KeyboardEvent) => any;
|
|
13
15
|
mousedown: (event: MouseEvent) => any;
|
|
14
16
|
mouseup: (event: MouseEvent) => any;
|
|
15
|
-
"update:modelValue": (value: number | null) => any;
|
|
16
|
-
keyup: (event: KeyboardEvent) => any;
|
|
17
17
|
decrease: (value: number) => any;
|
|
18
18
|
increase: (value: number) => any;
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<BbNumberInputProps> & Readonly<{
|
|
20
20
|
onInput?: ((event: Event) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
22
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
23
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
24
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
22
25
|
onChange?: ((event: Event) => any) | undefined;
|
|
23
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
26
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
25
|
-
|
|
27
|
+
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
26
28
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
27
29
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
29
|
-
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
30
30
|
onDecrease?: ((value: number) => any) | undefined;
|
|
31
31
|
onIncrease?: ((value: number) => any) | undefined;
|
|
32
32
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,25 +8,25 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
+
shown: () => any;
|
|
11
12
|
show: () => any;
|
|
12
13
|
hide: () => any;
|
|
13
|
-
shown: () => any;
|
|
14
14
|
hidden: () => any;
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
onShown?: (() => any) | undefined;
|
|
16
18
|
onShow?: (() => any) | undefined;
|
|
17
19
|
onHide?: (() => any) | undefined;
|
|
18
|
-
onShown?: (() => any) | undefined;
|
|
19
20
|
onHidden?: (() => any) | undefined;
|
|
20
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
showClose: boolean;
|
|
23
|
-
size: number | ({
|
|
24
|
-
size?: any;
|
|
25
|
-
} & string) | keyof Sizes;
|
|
26
22
|
transitionDuration: number;
|
|
27
23
|
direction: "left" | "top" | "right" | "bottom";
|
|
28
24
|
overlayClasses: import('../../types/Classes').Classes;
|
|
29
25
|
panelClasses: import('../../types/Classes').Classes;
|
|
26
|
+
showClose: boolean;
|
|
27
|
+
size: number | ({
|
|
28
|
+
size?: any;
|
|
29
|
+
} & string) | keyof Sizes;
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,17 +18,17 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
18
18
|
shown: () => any;
|
|
19
19
|
hidden: () => any;
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
22
|
onShown?: (() => any) | undefined;
|
|
22
23
|
onHidden?: (() => any) | undefined;
|
|
23
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
showClose: boolean;
|
|
26
|
-
transitionDuration: number;
|
|
27
|
-
theme: string;
|
|
28
25
|
arrowPadding: number;
|
|
29
26
|
offset: number;
|
|
30
27
|
padding: number;
|
|
31
28
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "cursor";
|
|
29
|
+
transitionDuration: number;
|
|
30
|
+
showClose: boolean;
|
|
31
|
+
theme: string;
|
|
32
32
|
scrollable: boolean;
|
|
33
33
|
trigger: PopoverTrigger | PopoverTrigger[];
|
|
34
34
|
restoreFocus: boolean;
|
|
@@ -2,27 +2,27 @@ import { BbRadioProps, BbRadioSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbRadioSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: any) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
11
|
mousedown: (event: MouseEvent) => any;
|
|
11
12
|
mouseup: (event: MouseEvent) => any;
|
|
12
|
-
"update:modelValue": (value: any) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<BbRadioProps> & Readonly<{
|
|
14
14
|
onInput?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
18
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
16
19
|
onChange?: ((event: Event) => any) | undefined;
|
|
17
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
20
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
19
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
21
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
21
22
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
reverse: boolean;
|
|
25
24
|
direction: "horizontal" | "vertical" | "auto" | string;
|
|
25
|
+
reverse: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,14 +2,14 @@ import { BbRadioGroupProps, BbRadioGroupSlots } from './types';
|
|
|
2
2
|
declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<BbRadioGroupProps<T> & {
|
|
4
4
|
onInput?: ((event: Event) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
7
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
5
8
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
9
|
onChange?: ((event: Event) => any) | undefined;
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
10
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
10
11
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
11
12
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
12
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
13
13
|
onInactive?: (() => any) | undefined;
|
|
14
14
|
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -2,25 +2,25 @@ import { BbRatingProps, BbRatingSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbRatingSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbRatingProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: number | null) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
11
|
mousedown: (event: MouseEvent) => any;
|
|
11
12
|
mouseup: (event: MouseEvent) => any;
|
|
12
|
-
"update:modelValue": (value: number | null) => any;
|
|
13
13
|
inactive: () => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<BbRatingProps> & Readonly<{
|
|
15
15
|
onInput?: ((event: Event) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
17
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
19
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
20
|
onChange?: ((event: Event) => any) | undefined;
|
|
18
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
21
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
20
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
22
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
22
23
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
23
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
24
24
|
onInactive?: (() => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
inputPosition: "left" | "center" | "right";
|
|
@@ -2,11 +2,11 @@ import { BbSelectProps, BbSelectSlots } from './types';
|
|
|
2
2
|
declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<BbSelectProps<T> & {
|
|
4
4
|
onInput?: ((event: Event) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
5
7
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
8
|
onChange?: ((event: Event) => any) | undefined;
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
9
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
10
|
onInactive?: (() => any) | undefined;
|
|
11
11
|
"onOption:add"?: ((text: string) => any) | undefined;
|
|
12
12
|
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
@@ -2,11 +2,11 @@ import { BbSelectPopoverEvents, BbSelectPopoverProps, BbSelectPopoverSlots } fro
|
|
|
2
2
|
declare const __VLS_export: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<BbSelectPopoverProps<Item> & {
|
|
4
4
|
onInput?: ((event: Event) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
5
7
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
8
|
onChange?: ((event: Event) => any) | undefined;
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
9
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
10
|
onInactive?: (() => any) | undefined;
|
|
11
11
|
"onOption:add"?: ((text: string) => any) | undefined;
|
|
12
12
|
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { BbSliderProps, BbSliderSlots } from './types';
|
|
2
2
|
type __VLS_Slots = BbSliderSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbSliderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (event: number | number[]) => any;
|
|
4
5
|
click: (event: MouseEvent) => any;
|
|
5
|
-
focus: (event: FocusEvent) => any;
|
|
6
6
|
keydown: (event: KeyboardEvent) => any;
|
|
7
|
-
|
|
7
|
+
focus: (event: FocusEvent) => any;
|
|
8
8
|
pointerdown: (event: PointerEvent) => any;
|
|
9
9
|
pointermove: (event: PointerEvent) => any;
|
|
10
10
|
pointerup: (event: PointerEvent) => any;
|
|
11
|
-
inactive: () => any;
|
|
12
11
|
active: () => any;
|
|
12
|
+
inactive: () => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<BbSliderProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((event: number | number[]) => any) | undefined;
|
|
14
15
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
16
16
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
17
|
-
|
|
17
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
18
18
|
onPointerdown?: ((event: PointerEvent) => any) | undefined;
|
|
19
19
|
onPointermove?: ((event: PointerEvent) => any) | undefined;
|
|
20
20
|
onPointerup?: ((event: PointerEvent) => any) | undefined;
|
|
21
|
-
onInactive?: (() => any) | undefined;
|
|
22
21
|
onActive?: (() => any) | undefined;
|
|
22
|
+
onInactive?: (() => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
thumbTranslate: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,27 +2,27 @@ import { BbSwitchSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbSwitchSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<import('../..').BbCheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: any) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
11
|
mousedown: (event: MouseEvent) => any;
|
|
11
12
|
mouseup: (event: MouseEvent) => any;
|
|
12
|
-
"update:modelValue": (value: any) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<import('../..').BbCheckboxProps> & Readonly<{
|
|
14
14
|
onInput?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
18
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
16
19
|
onChange?: ((event: Event) => any) | undefined;
|
|
17
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
20
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
19
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
21
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
21
22
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
reverse: boolean;
|
|
25
24
|
direction: "horizontal" | "vertical" | "auto" | string;
|
|
25
|
+
reverse: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,14 +2,14 @@ import { BbSwitchGroupProps, BbSwitchGroupSlots } from './types';
|
|
|
2
2
|
declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<BbSwitchGroupProps<T> & {
|
|
4
4
|
onInput?: ((event: Event) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
6
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
7
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
5
8
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
6
9
|
onChange?: ((event: Event) => any) | undefined;
|
|
7
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
10
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
10
11
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
11
12
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
12
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
13
13
|
onInactive?: (() => any) | undefined;
|
|
14
14
|
}> & import('vue').PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -71,6 +71,28 @@ export type BbTableColumn<Item = any> = BaseColumn<Item> & {
|
|
|
71
71
|
* Defines the classes to be passed to the `<th>`.
|
|
72
72
|
*/
|
|
73
73
|
thClass?: Classes;
|
|
74
|
+
/**
|
|
75
|
+
* Freezes the column to a fixed width (numbers are treated as px). When
|
|
76
|
+
* omitted the column syncs its width to the parent table's matching track.
|
|
77
|
+
*/
|
|
78
|
+
width?: number | string;
|
|
79
|
+
/**
|
|
80
|
+
* For a nested table, where this column snaps onto the parent's grid. The
|
|
81
|
+
* parent's columns form snap points where `select` occupies `[0, 1]`, data
|
|
82
|
+
* column `k` occupies `[k + 1, k + 2]` and `actions` occupies `[N + 1, N + 2]`.
|
|
83
|
+
*
|
|
84
|
+
* - A single number is a start snap point that takes one parent track, e.g.
|
|
85
|
+
* `2` → `[2, 3]`. It may skip ahead (`5` jumps straight to the sixth track),
|
|
86
|
+
* and the next column resumes from where it ends.
|
|
87
|
+
* - A `[start, end]` pair snaps between two points; the width is the sum of
|
|
88
|
+
* the fractional parent tracks it covers, so `[3, 4.5]` is the full fourth
|
|
89
|
+
* track plus half of the fifth. `end` of `-1` runs to the end of the data
|
|
90
|
+
* region.
|
|
91
|
+
*
|
|
92
|
+
* When omitted the column chains from the previous column's end to the next
|
|
93
|
+
* whole snap point (a one-to-one inheritance by index).
|
|
94
|
+
*/
|
|
95
|
+
snap?: number | [start: number, end: number];
|
|
74
96
|
};
|
|
75
97
|
export type BbTableProps<Item = any> = {
|
|
76
98
|
/**
|
|
@@ -90,6 +112,16 @@ export type BbTableProps<Item = any> = {
|
|
|
90
112
|
* Text alignment of the columns.
|
|
91
113
|
*/
|
|
92
114
|
align?: 'left' | 'center' | 'right';
|
|
115
|
+
/**
|
|
116
|
+
* Stable id for this table's width context. When omitted a unique id is
|
|
117
|
+
* generated. Nested tables use the nearest ancestor id to inherit widths.
|
|
118
|
+
*/
|
|
119
|
+
id?: string;
|
|
120
|
+
/**
|
|
121
|
+
* When `true` (the default) unfrozen columns inherit their width from the
|
|
122
|
+
* parent table's matching track, accounting for `select`/`actions` columns.
|
|
123
|
+
*/
|
|
124
|
+
inheritColumnWidths?: boolean;
|
|
93
125
|
/**
|
|
94
126
|
* Boolean that defines whether to display a "Select all" checkbox.
|
|
95
127
|
*/
|
|
@@ -2,23 +2,23 @@ import { BbTagProps, BbTagSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbTagSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: any) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
|
-
"update:modelValue": (value: any) => any;
|
|
11
11
|
keyup: (event: KeyboardEvent) => any;
|
|
12
12
|
inactive: () => any;
|
|
13
13
|
duplicate: (string: string) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<BbTagProps> & Readonly<{
|
|
15
15
|
onInput?: ((event: Event) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
17
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
16
19
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
17
20
|
onChange?: ((event: Event) => any) | undefined;
|
|
18
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
21
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
20
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
22
22
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
23
23
|
onInactive?: (() => any) | undefined;
|
|
24
24
|
onDuplicate?: ((string: string) => any) | undefined;
|
|
@@ -2,24 +2,24 @@ import { BbTextInputProps, BbTextInputSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbTextInputSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbTextInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: string | null) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
11
|
mousedown: (event: MouseEvent) => any;
|
|
11
12
|
mouseup: (event: MouseEvent) => any;
|
|
12
|
-
"update:modelValue": (value: string | null) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<BbTextInputProps> & Readonly<{
|
|
14
14
|
onInput?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
18
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
16
19
|
onChange?: ((event: Event) => any) | undefined;
|
|
17
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
20
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
19
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
21
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
21
22
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
-
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,24 +2,24 @@ import { BbTextareaProps, BbTextareaSlots } from './types';
|
|
|
2
2
|
type __VLS_Slots = BbTextareaSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<BbTextareaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
input: (event: Event) => any;
|
|
5
|
+
"update:modelValue": (value: string | null) => any;
|
|
6
|
+
click: (event: MouseEvent) => any;
|
|
7
|
+
keydown: (event: KeyboardEvent) => any;
|
|
5
8
|
blur: (event: FocusEvent) => any;
|
|
6
9
|
change: (event: Event) => any;
|
|
7
|
-
click: (event: MouseEvent) => any;
|
|
8
10
|
focus: (event: FocusEvent) => any;
|
|
9
|
-
keydown: (event: KeyboardEvent) => any;
|
|
10
11
|
mousedown: (event: MouseEvent) => any;
|
|
11
12
|
mouseup: (event: MouseEvent) => any;
|
|
12
|
-
"update:modelValue": (value: string | null) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<BbTextareaProps> & Readonly<{
|
|
14
14
|
onInput?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
18
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
16
19
|
onChange?: ((event: Event) => any) | undefined;
|
|
17
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
20
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
19
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
21
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
21
22
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
-
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,12 +10,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
transitionDuration: number;
|
|
14
|
-
theme: string;
|
|
15
|
-
timeout: number;
|
|
16
13
|
arrowPadding: number;
|
|
17
14
|
padding: number;
|
|
18
15
|
placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
16
|
+
transitionDuration: number;
|
|
17
|
+
theme: string;
|
|
18
|
+
timeout: number;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,8 +10,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
transitionDuration: number;
|
|
14
13
|
padding: number;
|
|
14
|
+
transitionDuration: number;
|
|
15
15
|
tag: string;
|
|
16
16
|
flip: boolean;
|
|
17
17
|
scrollable: boolean;
|
|
@@ -8,8 +8,8 @@ type __VLS_Slots = {
|
|
|
8
8
|
default?: (props: object) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
-
duration: number;
|
|
12
11
|
direction: "left" | "right" | "bottom" | "top";
|
|
12
|
+
duration: number;
|
|
13
13
|
gap: number;
|
|
14
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* A single table's entry in the shared width registry.
|
|
4
|
+
*
|
|
5
|
+
* `tracks` is keyed, not indexed, so structural columns participate too:
|
|
6
|
+
* `'select'`, the data-column index (`'0'`, `'1'`, …) and `'actions'`.
|
|
7
|
+
*/
|
|
8
|
+
export interface TableWidthNode {
|
|
9
|
+
id: string;
|
|
10
|
+
parentId: string | null;
|
|
11
|
+
/** Measured track widths as CSS lengths, keyed by track id. */
|
|
12
|
+
tracks: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
export type TableWidthRegistry = Map<string, TableWidthNode>;
|
|
15
|
+
export interface UseTableWidthContextOptions {
|
|
16
|
+
/** Explicit table id. When omitted a stable unique id is generated. */
|
|
17
|
+
id?: MaybeRefOrGetter<string | undefined>;
|
|
18
|
+
/** This table's container element; used to find the parent table in the DOM. */
|
|
19
|
+
container: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
20
|
+
}
|
|
21
|
+
export declare function useTableWidthContext(options: UseTableWidthContextOptions): {
|
|
22
|
+
id: import('vue').ComputedRef<string>;
|
|
23
|
+
parentId: import('vue').Ref<string | null, string | null>;
|
|
24
|
+
parentNode: import('vue').ComputedRef<TableWidthNode | null>;
|
|
25
|
+
parentHasTrack: (key: string) => boolean;
|
|
26
|
+
parentVar: (key: string, fallback?: string) => string;
|
|
27
|
+
node: {
|
|
28
|
+
id: string;
|
|
29
|
+
parentId: string | null;
|
|
30
|
+
tracks: Record<string, string>;
|
|
31
|
+
};
|
|
32
|
+
registry: TableWidthRegistry;
|
|
33
|
+
setTracks: (tracks: Record<string, string>) => void;
|
|
34
|
+
cssVars: import('vue').ComputedRef<Record<string, string>>;
|
|
35
|
+
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { BbDropdownProps, Item } from '../components/BbDropdown/types';
|
|
3
|
+
/**
|
|
4
|
+
* `BbDropdown` props configurable through the directive. `items` is provided
|
|
5
|
+
* separately, and `activator` is excluded: the element the directive is attached
|
|
6
|
+
* to *is* the activator.
|
|
7
|
+
*/
|
|
8
|
+
type BbDropdownDirectiveProps = Partial<Omit<BbDropdownProps, 'items' | 'activator'>>;
|
|
3
9
|
/**
|
|
4
10
|
* Value accepted by the `v-bb-dropdown` directive.
|
|
5
11
|
*
|
|
6
12
|
* - an array of {@link Item} is used directly as the dropdown items
|
|
7
|
-
* - an object spreads
|
|
13
|
+
* - an object spreads the configurable `BbDropdown` props plus a required `items` array
|
|
8
14
|
*/
|
|
9
|
-
export type BbDropdownDirectiveValue = Item[] | (
|
|
15
|
+
export type BbDropdownDirectiveValue = Item[] | (BbDropdownDirectiveProps & {
|
|
10
16
|
items: Item[];
|
|
11
17
|
});
|
|
12
18
|
/**
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { BbTooltipProps } from '../components/BbTooltip/types';
|
|
3
|
+
/**
|
|
4
|
+
* `BbTooltip` props configurable through the directive. `activator` is excluded:
|
|
5
|
+
* the element the directive is attached to *is* the activator.
|
|
6
|
+
*/
|
|
7
|
+
type BbTooltipDirectiveProps = Omit<Partial<BbTooltipProps>, 'activator'>;
|
|
3
8
|
/**
|
|
4
9
|
* Value accepted by the `v-bb-tooltip` directive.
|
|
5
10
|
*
|
|
6
11
|
* - a string/number is used directly as the tooltip text
|
|
7
|
-
* - an object spreads
|
|
12
|
+
* - an object spreads the configurable `BbTooltip` props plus a required `text`
|
|
8
13
|
*/
|
|
9
|
-
export type BbTooltipDirectiveValue = string | number | (
|
|
14
|
+
export type BbTooltipDirectiveValue = string | number | (BbTooltipDirectiveProps & {
|
|
10
15
|
text: string;
|
|
11
16
|
});
|
|
12
17
|
/**
|