bitboss-ui 2.1.111 → 2.1.113
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 -0
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +6 -2
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +9 -117
- package/dist/components/BaseCheckbox/types.d.ts +213 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -170
- package/dist/components/BaseCheckboxGroup/types.d.ts +275 -0
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +45 -151
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +1 -17
- package/dist/components/BaseColorInput/types.d.ts +233 -0
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +21 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +21 -17
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +118 -22
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +26 -0
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +13 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +27 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +26 -0
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +100 -0
- package/dist/components/BaseRating/BaseRating.vue.d.ts +14 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +86 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +34 -0
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +17 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BaseTag/BaseTag.vue.d.ts +58 -20
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +18 -0
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +20 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +16 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -0
- package/dist/components/BbBadge/BbBadge.vue.d.ts +12 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +66 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +8 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +47 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +116 -4
- package/dist/components/BbChip/BbChip.vue.d.ts +6 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +8 -0
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +20 -5
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +46 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +82 -4
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +86 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +12 -0
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +12 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +24 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +30 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +36 -4
- package/dist/components/BbRadio/BbRadio.vue.d.ts +40 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +110 -0
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -0
- package/dist/components/BbRatio/BbRatio.vue.d.ts +6 -0
- package/dist/components/BbRows/BbRows.vue.d.ts +70 -12
- package/dist/components/BbSelect/BbSelect.vue.d.ts +79 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +57 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +10 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -0
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +41 -3
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +111 -3
- package/dist/components/BbTab/BbTab.vue.d.ts +48 -0
- package/dist/components/BbTable/types.d.ts +63 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +23 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +15 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +15 -0
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +18 -4
- package/dist/components/BbTree/BbTree.vue.d.ts +13 -0
- package/dist/components/CommonInputInnerContainer.vue.d.ts +42 -6
- package/dist/components/CommonInputOuterContainer.vue.d.ts +26 -4
- package/dist/components/CommonPopover.vue.d.ts +10 -2
- package/dist/components/FlatListBox.vue.d.ts +65 -5
- package/dist/components/GroupedListBox.vue.d.ts +92 -9
- package/dist/components/ListBox.vue.d.ts +85 -17
- package/dist/components/OptionsContainer.vue.d.ts +121 -13
- package/dist/components/Transitions/ScaleFade.vue.d.ts +6 -2
- package/dist/components/Transitions/Slide.vue.d.ts +6 -2
- package/dist/composables/useToast.d.ts +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +156 -155
- package/dist/index109.js +9 -9
- package/dist/index11.js +1 -1
- package/dist/index110.js +20 -20
- package/dist/index118.js +1 -1
- package/dist/index12.js +2 -2
- package/dist/index124.js +9 -9
- package/dist/index126.js +13 -13
- package/dist/index13.js +6 -6
- package/dist/index134.js +1 -1
- package/dist/index136.js +6 -6
- package/dist/index138.js +1 -1
- package/dist/index14.js +2 -2
- package/dist/index140.js +2 -2
- package/dist/index142.js +12 -13
- package/dist/index144.js +11 -2
- package/dist/index145.js +2 -419
- package/dist/index146.js +417 -7
- package/dist/index147.js +8 -8
- package/dist/index148.js +9 -25
- package/dist/index149.js +25 -2
- package/dist/index150.js +2 -5
- package/dist/index151.js +5 -6
- package/dist/index152.js +5 -4
- package/dist/index153.js +5 -3
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index16.js +16 -15
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index168.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +1 -1
- package/dist/index179.js +1 -1
- package/dist/index18.js +6 -6
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +3 -2
- package/dist/index184.js +2 -3
- package/dist/index185.js +3 -2
- package/dist/index186.js +2 -3
- package/dist/index187.js +1 -1
- package/dist/index188.js +1 -1
- package/dist/index189.js +1 -1
- package/dist/index190.js +1 -1
- package/dist/index191.js +1 -1
- package/dist/index192.js +3 -2
- package/dist/index193.js +2 -3
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +2 -2
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index20.js +8 -8
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +3 -2
- package/dist/index203.js +2 -3
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.js +1 -1
- package/dist/index208.js +1 -1
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +1 -1
- package/dist/index212.js +1 -1
- package/dist/index213.js +1 -1
- package/dist/index214.js +1 -1
- package/dist/index215.js +1 -1
- package/dist/index216.js +1 -1
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +5 -0
- package/dist/index22.js +14 -14
- package/dist/index220.js +3 -7
- package/dist/index221.js +2 -138
- package/dist/index222.js +138 -2
- package/dist/index224.js +34 -5
- package/dist/index225.js +32 -7
- package/dist/index226.js +28 -33
- package/dist/index228.js +7 -0
- package/dist/index229.js +8 -7
- package/dist/index230.js +7 -2
- package/dist/index231.js +2 -2
- package/dist/index232.js +9 -4
- package/dist/index233.js +13 -2
- package/dist/index234.js +3 -2
- package/dist/index235.js +2 -13
- package/dist/index236.js +11 -33
- package/dist/index237.js +8 -3
- package/dist/index238.js +3 -8
- package/dist/index239.js +3 -6
- package/dist/index24.js +56 -55
- package/dist/index240.js +2 -16
- package/dist/index241.js +18 -3
- package/dist/index242.js +11 -12
- package/dist/index243.js +49 -133
- package/dist/index244.js +20 -0
- package/dist/index245.js +12 -4
- package/dist/index246.js +16 -22
- package/dist/index247.js +30 -5
- package/dist/index248.js +18 -5
- package/dist/index249.js +4 -5
- package/dist/index250.js +106 -5
- package/dist/index252.js +100 -6
- package/dist/index254.js +130 -47
- package/dist/index256.js +99 -24
- package/dist/index257.js +13 -60
- package/dist/index258.js +2 -9
- package/dist/index259.js +7 -21
- package/dist/index26.js +4 -4
- package/dist/index260.js +7 -30
- package/dist/index261.js +86 -18
- package/dist/index263.js +5 -51
- package/dist/index264.js +5 -12
- package/dist/index265.js +5 -53
- package/dist/index266.js +5 -10
- package/dist/index267.js +5 -3
- package/dist/index268.js +5 -3
- package/dist/index269.js +58 -77
- package/dist/index270.js +35 -0
- package/dist/index271.js +2 -18
- package/dist/index272.js +2 -373
- package/dist/index273.js +5 -0
- package/dist/index274.js +3 -3
- package/dist/index275.js +21 -18
- package/dist/index276.js +6 -5
- package/dist/index277.js +13 -5
- package/dist/index278.js +5 -5
- package/dist/index279.js +6 -3
- package/dist/index28.js +2 -2
- package/dist/index280.js +268 -5
- package/dist/index281.js +52 -11
- package/dist/index282.js +51 -17
- package/dist/index283.js +32 -12
- package/dist/index284.js +56 -103
- package/dist/index285.js +4 -6
- package/dist/index286.js +19 -105
- package/dist/index287.js +7 -0
- package/dist/index288.js +367 -94
- package/dist/index290.js +6 -188
- package/dist/index291.js +16 -3
- package/dist/index292.js +9 -8
- package/dist/index293.js +3 -23
- package/dist/index294.js +7 -32
- package/dist/index295.js +21 -3
- package/dist/index296.js +9 -2
- package/dist/index297.js +23 -7
- package/dist/index298.js +25 -7
- package/dist/index299.js +187 -8
- package/dist/index30.js +23 -22
- package/dist/index300.js +3 -67
- package/dist/index301.js +3 -13
- package/dist/index302.js +52 -24
- package/dist/index304.js +7 -3
- package/dist/index305.js +3 -4
- package/dist/index306.js +2 -719
- package/dist/index307.js +5 -366
- package/dist/index308.js +7 -57
- package/dist/index309.js +3 -280
- package/dist/index310.js +3 -2
- package/dist/index311.js +3 -16
- package/dist/index312.js +2 -2
- package/dist/index313.js +27 -15
- package/dist/index314.js +17 -2
- package/dist/index315.js +4 -27
- package/dist/index316.js +2 -2
- package/dist/index317.js +3 -2
- package/dist/index318.js +280 -2
- package/dist/index319.js +2 -2
- package/dist/index32.js +2 -2
- package/dist/index320.js +125 -2
- package/dist/index321.js +2 -28
- package/dist/index322.js +15 -2
- package/dist/index323.js +2 -7
- package/dist/index324.js +16 -5
- package/dist/index325.js +2 -3
- package/dist/index326.js +16 -17
- package/dist/index327.js +2 -3
- package/dist/index328.js +19 -3
- package/dist/index329.js +2 -2
- package/dist/index330.js +26 -3
- package/dist/index331.js +2 -125
- package/dist/index332.js +2 -2
- package/dist/index333.js +2 -15
- package/dist/index334.js +2 -2
- package/dist/index335.js +2 -19
- package/dist/index336.js +2 -2
- package/dist/index337.js +1 -1
- package/dist/index338.js +4 -3
- package/dist/index339.js +719 -2
- package/dist/index34.js +8 -8
- package/dist/index340.js +366 -2
- package/dist/index341.js +57 -5
- package/dist/index343.js +5 -7
- package/dist/index344.js +35 -5
- package/dist/index345.js +125 -31
- package/dist/index346.js +382 -113
- package/dist/index347.js +198 -396
- package/dist/index348.js +259 -7
- package/dist/index349.js +226 -17
- package/dist/index350.js +67 -9
- package/dist/index351.js +66 -14
- package/dist/index352.js +2 -228
- package/dist/index353.js +2 -67
- package/dist/index354.js +133 -66
- package/dist/index355.js +7 -200
- package/dist/index356.js +17 -257
- package/dist/index357.js +9 -22
- package/dist/index358.js +17 -0
- package/dist/index359.js +5 -134
- package/dist/index36.js +5 -5
- package/dist/index360.js +7 -2
- package/dist/index361.js +21 -1
- package/dist/index363.js +87 -435
- package/dist/index364.js +427 -114
- package/dist/index365.js +127 -46
- package/dist/index366.js +44 -67
- package/dist/index367.js +66 -516
- package/dist/index368.js +515 -45
- package/dist/index369.js +52 -0
- package/dist/index38.js +55 -54
- package/dist/index40.js +8 -8
- package/dist/index42.js +2 -2
- package/dist/index44.js +8 -8
- package/dist/index46.js +35 -34
- package/dist/index48.js +15 -14
- package/dist/index50.js +38 -37
- package/dist/index54.js +1 -1
- package/dist/index56.js +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.js +3 -3
- package/dist/index62.js +6 -6
- package/dist/index68.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index74.js +4 -4
- package/dist/index82.js +8 -8
- package/dist/index84.js +1 -1
- package/dist/index86.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index9.js +1 -1
- package/dist/index90.js +1 -1
- package/dist/index93.js +4 -4
- package/dist/index95.js +3 -3
- package/dist/index97.js +6 -6
- package/dist/index99.js +2 -2
- package/package.json +2 -2
- package/dist/index143.js +0 -13
- package/dist/index227.js +0 -30
- package/dist/index251.js +0 -4
- package/dist/index253.js +0 -270
- package/dist/index255.js +0 -54
- package/dist/index262.js +0 -19
- package/dist/index362.js +0 -95
|
@@ -1,23 +1,61 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCheckboxIconSlotProps } from '../BaseCheckbox/types';
|
|
2
2
|
import { BbCheckboxEvents, BbCheckboxProps } from '../BbCheckbox/BbCheckbox.vue';
|
|
3
3
|
export type BbSwitchProps = BbCheckboxProps;
|
|
4
4
|
export type BbSwitchEvents = BbCheckboxEvents;
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
attrs: Partial<{}>;
|
|
7
7
|
slots: Readonly<{
|
|
8
|
+
/**
|
|
9
|
+
* Replaces the default label text rendered next to the switch.
|
|
10
|
+
* @param text - The `label` prop value.
|
|
11
|
+
* @param hasErrors - Whether the switch is in an error state.
|
|
12
|
+
*/
|
|
8
13
|
label?: (props: {
|
|
9
14
|
text: string;
|
|
10
15
|
hasErrors: boolean;
|
|
11
16
|
}) => any;
|
|
12
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the default toggle track visual inside the switch. Receives `BaseSwitch` slot attributes plus the label text.
|
|
19
|
+
* @param checked - Whether the switch is currently on.
|
|
20
|
+
* @param disabled - Whether the switch is disabled.
|
|
21
|
+
* @param focused - Whether the input currently has focus.
|
|
22
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
23
|
+
* @param hasErrors - Whether the switch is in an error state.
|
|
24
|
+
* @param id - The `id` attribute of the underlying input.
|
|
25
|
+
* @param name - The `name` attribute of the underlying input.
|
|
26
|
+
* @param parsedValue - The switch value serialized for form submission.
|
|
27
|
+
* @param readonly - Whether the switch is read-only.
|
|
28
|
+
* @param value - The current effective value of the switch.
|
|
29
|
+
* @param text - The `label` prop value.
|
|
30
|
+
*/
|
|
31
|
+
icon?: (props: BaseCheckboxIconSlotProps & {
|
|
13
32
|
text: string;
|
|
14
33
|
}) => any;
|
|
15
34
|
}> & {
|
|
35
|
+
/**
|
|
36
|
+
* Replaces the default label text rendered next to the switch.
|
|
37
|
+
* @param text - The `label` prop value.
|
|
38
|
+
* @param hasErrors - Whether the switch is in an error state.
|
|
39
|
+
*/
|
|
16
40
|
label?: (props: {
|
|
17
41
|
text: string;
|
|
18
42
|
hasErrors: boolean;
|
|
19
43
|
}) => any;
|
|
20
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Replaces the default toggle track visual inside the switch. Receives `BaseSwitch` slot attributes plus the label text.
|
|
46
|
+
* @param checked - Whether the switch is currently on.
|
|
47
|
+
* @param disabled - Whether the switch is disabled.
|
|
48
|
+
* @param focused - Whether the input currently has focus.
|
|
49
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
50
|
+
* @param hasErrors - Whether the switch is in an error state.
|
|
51
|
+
* @param id - The `id` attribute of the underlying input.
|
|
52
|
+
* @param name - The `name` attribute of the underlying input.
|
|
53
|
+
* @param parsedValue - The switch value serialized for form submission.
|
|
54
|
+
* @param readonly - Whether the switch is read-only.
|
|
55
|
+
* @param value - The current effective value of the switch.
|
|
56
|
+
* @param text - The `label` prop value.
|
|
57
|
+
*/
|
|
58
|
+
icon?: (props: BaseCheckboxIconSlotProps & {
|
|
21
59
|
text: string;
|
|
22
60
|
}) => any;
|
|
23
61
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCheckboxIconSlotProps } from '../BaseCheckbox/types';
|
|
2
2
|
import { BbCheckboxGroupEvents, BbCheckboxGroupProps } from '../BbCheckboxGroup/BbCheckboxGroup.vue';
|
|
3
3
|
export type BbSwitchGroupProps<T> = BbCheckboxGroupProps<T>;
|
|
4
4
|
export type BbSwitchGroupEvents = BbCheckboxGroupEvents;
|
|
@@ -18,9 +18,26 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
18
18
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
19
19
|
attrs: any;
|
|
20
20
|
slots: Readonly<{
|
|
21
|
+
/**
|
|
22
|
+
* Content rendered before the first option, inside the options container.
|
|
23
|
+
*/
|
|
21
24
|
prepend?: (props: object) => any;
|
|
25
|
+
/**
|
|
26
|
+
* Content shown while options are loading (replaces the default loading text).
|
|
27
|
+
*/
|
|
22
28
|
loading?: (props: object) => any;
|
|
29
|
+
/**
|
|
30
|
+
* Content shown when no options are available (replaces the default "no data" text).
|
|
31
|
+
*/
|
|
23
32
|
'no-data'?: (props: object) => any;
|
|
33
|
+
/**
|
|
34
|
+
* Content rendered before each option's switch.
|
|
35
|
+
* @param checked - Whether this option is currently selected.
|
|
36
|
+
* @param disabled - Whether this option is disabled.
|
|
37
|
+
* @param id - The `id` of this option's input, if set.
|
|
38
|
+
* @param item - The raw item from the `items` prop.
|
|
39
|
+
* @param text - The display text for this option.
|
|
40
|
+
*/
|
|
24
41
|
'option:prepend'?: (props: {
|
|
25
42
|
checked: boolean;
|
|
26
43
|
disabled: boolean;
|
|
@@ -28,15 +45,44 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
28
45
|
item: T;
|
|
29
46
|
text: string;
|
|
30
47
|
}) => any;
|
|
31
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Replaces the default switch track visual for each option. Receives all `BaseSwitch` slot attributes plus the source item and its display text.
|
|
50
|
+
* @param checked - Whether this option is currently selected.
|
|
51
|
+
* @param disabled - Whether this option is disabled.
|
|
52
|
+
* @param focused - Whether this option's input currently has focus.
|
|
53
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
54
|
+
* @param hasErrors - Whether the group is in an error state.
|
|
55
|
+
* @param id - The `id` of this option's input.
|
|
56
|
+
* @param name - The `name` of this option's input.
|
|
57
|
+
* @param parsedValue - The option value serialized for form submission.
|
|
58
|
+
* @param readonly - Whether this option is read-only.
|
|
59
|
+
* @param value - The current effective value for this option.
|
|
60
|
+
* @param item - The raw item from the `items` prop.
|
|
61
|
+
* @param text - The display text resolved for this option.
|
|
62
|
+
*/
|
|
63
|
+
icon?: (props: BaseCheckboxIconSlotProps & {
|
|
32
64
|
item: T;
|
|
33
65
|
text: string;
|
|
34
66
|
}) => any;
|
|
67
|
+
/**
|
|
68
|
+
* Replaces the default label text for each option.
|
|
69
|
+
* @param item - The raw item from the `items` prop.
|
|
70
|
+
* @param text - The resolved display text for this option.
|
|
71
|
+
* @param checked - Whether this option is currently selected.
|
|
72
|
+
*/
|
|
35
73
|
label?: (props: {
|
|
36
74
|
item: T;
|
|
37
75
|
text: string;
|
|
38
76
|
checked: boolean;
|
|
39
77
|
}) => any;
|
|
78
|
+
/**
|
|
79
|
+
* Content rendered after each option's switch and label.
|
|
80
|
+
* @param checked - Whether this option is currently selected.
|
|
81
|
+
* @param disabled - Whether this option is disabled.
|
|
82
|
+
* @param id - The `id` of this option's input, if set.
|
|
83
|
+
* @param item - The raw item from the `items` prop.
|
|
84
|
+
* @param text - The display text for this option.
|
|
85
|
+
*/
|
|
40
86
|
'option:append'?: (props: {
|
|
41
87
|
checked: boolean;
|
|
42
88
|
disabled: boolean;
|
|
@@ -44,15 +90,40 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
44
90
|
item: T;
|
|
45
91
|
text: string;
|
|
46
92
|
}) => any;
|
|
93
|
+
/**
|
|
94
|
+
* Content rendered after the last option, inside the options container.
|
|
95
|
+
*/
|
|
47
96
|
append?: (props: object) => any;
|
|
97
|
+
/**
|
|
98
|
+
* Replaces the default fieldset legend text for the group.
|
|
99
|
+
* @param text - The `legend` prop value.
|
|
100
|
+
* @param hasErrors - Whether the group is in an error state.
|
|
101
|
+
*/
|
|
48
102
|
legend?: (props: {
|
|
49
103
|
text: string;
|
|
50
104
|
hasErrors: boolean;
|
|
51
105
|
}) => any;
|
|
52
106
|
}> & {
|
|
107
|
+
/**
|
|
108
|
+
* Content rendered before the first option, inside the options container.
|
|
109
|
+
*/
|
|
53
110
|
prepend?: (props: object) => any;
|
|
111
|
+
/**
|
|
112
|
+
* Content shown while options are loading (replaces the default loading text).
|
|
113
|
+
*/
|
|
54
114
|
loading?: (props: object) => any;
|
|
115
|
+
/**
|
|
116
|
+
* Content shown when no options are available (replaces the default "no data" text).
|
|
117
|
+
*/
|
|
55
118
|
'no-data'?: (props: object) => any;
|
|
119
|
+
/**
|
|
120
|
+
* Content rendered before each option's switch.
|
|
121
|
+
* @param checked - Whether this option is currently selected.
|
|
122
|
+
* @param disabled - Whether this option is disabled.
|
|
123
|
+
* @param id - The `id` of this option's input, if set.
|
|
124
|
+
* @param item - The raw item from the `items` prop.
|
|
125
|
+
* @param text - The display text for this option.
|
|
126
|
+
*/
|
|
56
127
|
'option:prepend'?: (props: {
|
|
57
128
|
checked: boolean;
|
|
58
129
|
disabled: boolean;
|
|
@@ -60,15 +131,44 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
60
131
|
item: T;
|
|
61
132
|
text: string;
|
|
62
133
|
}) => any;
|
|
63
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Replaces the default switch track visual for each option. Receives all `BaseSwitch` slot attributes plus the source item and its display text.
|
|
136
|
+
* @param checked - Whether this option is currently selected.
|
|
137
|
+
* @param disabled - Whether this option is disabled.
|
|
138
|
+
* @param focused - Whether this option's input currently has focus.
|
|
139
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
140
|
+
* @param hasErrors - Whether the group is in an error state.
|
|
141
|
+
* @param id - The `id` of this option's input.
|
|
142
|
+
* @param name - The `name` of this option's input.
|
|
143
|
+
* @param parsedValue - The option value serialized for form submission.
|
|
144
|
+
* @param readonly - Whether this option is read-only.
|
|
145
|
+
* @param value - The current effective value for this option.
|
|
146
|
+
* @param item - The raw item from the `items` prop.
|
|
147
|
+
* @param text - The display text resolved for this option.
|
|
148
|
+
*/
|
|
149
|
+
icon?: (props: BaseCheckboxIconSlotProps & {
|
|
64
150
|
item: T;
|
|
65
151
|
text: string;
|
|
66
152
|
}) => any;
|
|
153
|
+
/**
|
|
154
|
+
* Replaces the default label text for each option.
|
|
155
|
+
* @param item - The raw item from the `items` prop.
|
|
156
|
+
* @param text - The resolved display text for this option.
|
|
157
|
+
* @param checked - Whether this option is currently selected.
|
|
158
|
+
*/
|
|
67
159
|
label?: (props: {
|
|
68
160
|
item: T;
|
|
69
161
|
text: string;
|
|
70
162
|
checked: boolean;
|
|
71
163
|
}) => any;
|
|
164
|
+
/**
|
|
165
|
+
* Content rendered after each option's switch and label.
|
|
166
|
+
* @param checked - Whether this option is currently selected.
|
|
167
|
+
* @param disabled - Whether this option is disabled.
|
|
168
|
+
* @param id - The `id` of this option's input, if set.
|
|
169
|
+
* @param item - The raw item from the `items` prop.
|
|
170
|
+
* @param text - The display text for this option.
|
|
171
|
+
*/
|
|
72
172
|
'option:append'?: (props: {
|
|
73
173
|
checked: boolean;
|
|
74
174
|
disabled: boolean;
|
|
@@ -76,7 +176,15 @@ declare const _default: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_
|
|
|
76
176
|
item: T;
|
|
77
177
|
text: string;
|
|
78
178
|
}) => any;
|
|
179
|
+
/**
|
|
180
|
+
* Content rendered after the last option, inside the options container.
|
|
181
|
+
*/
|
|
79
182
|
append?: (props: object) => any;
|
|
183
|
+
/**
|
|
184
|
+
* Replaces the default fieldset legend text for the group.
|
|
185
|
+
* @param text - The `legend` prop value.
|
|
186
|
+
* @param hasErrors - Whether the group is in an error state.
|
|
187
|
+
*/
|
|
80
188
|
legend?: (props: {
|
|
81
189
|
text: string;
|
|
82
190
|
hasErrors: boolean;
|
|
@@ -146,16 +146,40 @@ declare const _default: <K extends string = string>(__VLS_props: NonNullable<Awa
|
|
|
146
146
|
}>): void;
|
|
147
147
|
attrs: any;
|
|
148
148
|
slots: Readonly<{
|
|
149
|
+
/**
|
|
150
|
+
* Content rendered before the scrollable tab label list (e.g. a left scroll arrow).
|
|
151
|
+
* @param isScrolling - Whether the tab list is currently being scrolled.
|
|
152
|
+
* @param left - Whether the tab list has reached the left edge.
|
|
153
|
+
* @param right - Whether the tab list has reached the right edge.
|
|
154
|
+
*/
|
|
149
155
|
'header:prepend'?: (props: {
|
|
150
156
|
isScrolling: boolean;
|
|
151
157
|
left: boolean;
|
|
152
158
|
right: boolean;
|
|
153
159
|
}) => any;
|
|
160
|
+
/**
|
|
161
|
+
* Content rendered after the scrollable tab label list (e.g. a right scroll arrow).
|
|
162
|
+
* @param isScrolling - Whether the tab list is currently being scrolled.
|
|
163
|
+
* @param left - Whether the tab list has reached the left edge.
|
|
164
|
+
* @param right - Whether the tab list has reached the right edge.
|
|
165
|
+
*/
|
|
154
166
|
'header:append'?: (props: {
|
|
155
167
|
isScrolling: boolean;
|
|
156
168
|
left: boolean;
|
|
157
169
|
right: boolean;
|
|
158
170
|
}) => any;
|
|
171
|
+
/**
|
|
172
|
+
* Fallback slot used for all tab labels when no per-tab `label-{key}` slot is provided.
|
|
173
|
+
* @param current - The key of the currently active tab.
|
|
174
|
+
* @param currentIndex - Zero-based index of the currently active tab.
|
|
175
|
+
* @param disabled - Whether this tab is disabled.
|
|
176
|
+
* @param goTo - Navigate to `'first'`, `'previous'`, `'next'`, or `'last'` tab.
|
|
177
|
+
* @param isFirst - Whether the active tab is the first tab.
|
|
178
|
+
* @param isLast - Whether the active tab is the last tab.
|
|
179
|
+
* @param selected - Whether this specific tab is currently active.
|
|
180
|
+
* @param text - The `label` value of this tab item.
|
|
181
|
+
* @param value - The `key` value of this tab item.
|
|
182
|
+
*/
|
|
159
183
|
label?: (props: {
|
|
160
184
|
current: string | null;
|
|
161
185
|
currentIndex: number;
|
|
@@ -178,16 +202,40 @@ declare const _default: <K extends string = string>(__VLS_props: NonNullable<Awa
|
|
|
178
202
|
value: string;
|
|
179
203
|
goTo: (target: "first" | "previous" | "next" | "last") => void;
|
|
180
204
|
}) => any>>> & {
|
|
205
|
+
/**
|
|
206
|
+
* Content rendered before the scrollable tab label list (e.g. a left scroll arrow).
|
|
207
|
+
* @param isScrolling - Whether the tab list is currently being scrolled.
|
|
208
|
+
* @param left - Whether the tab list has reached the left edge.
|
|
209
|
+
* @param right - Whether the tab list has reached the right edge.
|
|
210
|
+
*/
|
|
181
211
|
'header:prepend'?: (props: {
|
|
182
212
|
isScrolling: boolean;
|
|
183
213
|
left: boolean;
|
|
184
214
|
right: boolean;
|
|
185
215
|
}) => any;
|
|
216
|
+
/**
|
|
217
|
+
* Content rendered after the scrollable tab label list (e.g. a right scroll arrow).
|
|
218
|
+
* @param isScrolling - Whether the tab list is currently being scrolled.
|
|
219
|
+
* @param left - Whether the tab list has reached the left edge.
|
|
220
|
+
* @param right - Whether the tab list has reached the right edge.
|
|
221
|
+
*/
|
|
186
222
|
'header:append'?: (props: {
|
|
187
223
|
isScrolling: boolean;
|
|
188
224
|
left: boolean;
|
|
189
225
|
right: boolean;
|
|
190
226
|
}) => any;
|
|
227
|
+
/**
|
|
228
|
+
* Fallback slot used for all tab labels when no per-tab `label-{key}` slot is provided.
|
|
229
|
+
* @param current - The key of the currently active tab.
|
|
230
|
+
* @param currentIndex - Zero-based index of the currently active tab.
|
|
231
|
+
* @param disabled - Whether this tab is disabled.
|
|
232
|
+
* @param goTo - Navigate to `'first'`, `'previous'`, `'next'`, or `'last'` tab.
|
|
233
|
+
* @param isFirst - Whether the active tab is the first tab.
|
|
234
|
+
* @param isLast - Whether the active tab is the last tab.
|
|
235
|
+
* @param selected - Whether this specific tab is currently active.
|
|
236
|
+
* @param text - The `label` value of this tab item.
|
|
237
|
+
* @param value - The `key` value of this tab item.
|
|
238
|
+
*/
|
|
191
239
|
label?: (props: {
|
|
192
240
|
current: string | null;
|
|
193
241
|
currentIndex: number;
|
|
@@ -280,21 +280,55 @@ export type BbTableEvents = {
|
|
|
280
280
|
(e: 'item:unselected', value: any): void;
|
|
281
281
|
};
|
|
282
282
|
export type BbTableSlots<Item = any> = {
|
|
283
|
+
/**
|
|
284
|
+
* Replaces the entire `<thead>` element. Use when you need full control over the header markup.
|
|
285
|
+
*/
|
|
283
286
|
thead?: (props: object) => any;
|
|
287
|
+
/**
|
|
288
|
+
* Replaces the entire `<tbody>` element. Use when you need full control over the body markup.
|
|
289
|
+
*/
|
|
284
290
|
tbody?: (props: object) => any;
|
|
291
|
+
/**
|
|
292
|
+
* Replaces the entire `<tfoot>` element. Use when you need full control over the footer markup.
|
|
293
|
+
*/
|
|
285
294
|
tfoot?: (props: object) => any;
|
|
295
|
+
/**
|
|
296
|
+
* Replaces the default selection header cell content (checkbox or radio label).
|
|
297
|
+
* @param multiple - Whether the table allows multiple selection.
|
|
298
|
+
* @param selectAll - Whether the "select all" checkbox is currently checked.
|
|
299
|
+
* @param text - The accessible label text for the select-all control.
|
|
300
|
+
*/
|
|
286
301
|
'header:select'?: (props: {
|
|
287
302
|
multiple: boolean;
|
|
288
303
|
selectAll: boolean;
|
|
289
304
|
text: string;
|
|
290
305
|
}) => any;
|
|
306
|
+
/**
|
|
307
|
+
* Replaces the default actions header cell content.
|
|
308
|
+
* @param text - The accessible label text for the actions column header.
|
|
309
|
+
*/
|
|
291
310
|
'header:actions'?: (props: {
|
|
292
311
|
text: string;
|
|
293
312
|
}) => any;
|
|
313
|
+
/**
|
|
314
|
+
* Content shown while table rows are loading (replaces the skeleton rows).
|
|
315
|
+
* @param items - The current (possibly stale) list of items, useful to match the previous row count.
|
|
316
|
+
*/
|
|
294
317
|
loading?: (props: {
|
|
295
318
|
items: Item[];
|
|
296
319
|
}) => any;
|
|
320
|
+
/**
|
|
321
|
+
* Content shown when the items list is empty and not loading.
|
|
322
|
+
*/
|
|
297
323
|
'no-data'?: (props: object) => any;
|
|
324
|
+
/**
|
|
325
|
+
* Content rendered in the actions cell for each row.
|
|
326
|
+
* @param expanded - Whether this row is currently expanded.
|
|
327
|
+
* @param expandProps - Bind these onto an expand-toggle button to wire up aria attributes and keyboard handling.
|
|
328
|
+
* @param toggleExpanded - Toggles the expanded state for this row.
|
|
329
|
+
* @param item - The raw item for this row.
|
|
330
|
+
* @param value - The resolved value for this row.
|
|
331
|
+
*/
|
|
298
332
|
actions?: (props: {
|
|
299
333
|
expanded?: boolean;
|
|
300
334
|
expandProps?: ExpandControllerProps;
|
|
@@ -302,6 +336,14 @@ export type BbTableSlots<Item = any> = {
|
|
|
302
336
|
item: Item;
|
|
303
337
|
value: any;
|
|
304
338
|
}) => any;
|
|
339
|
+
/**
|
|
340
|
+
* Full-width expandable content row rendered below each main row when expanded.
|
|
341
|
+
* @param expanded - Whether this row is currently expanded.
|
|
342
|
+
* @param expandProps - Bind these onto an expand-toggle button to wire up aria attributes and keyboard handling.
|
|
343
|
+
* @param toggleExpanded - Toggles the expanded state for this row.
|
|
344
|
+
* @param item - The raw item for this row.
|
|
345
|
+
* @param value - The resolved value for this row.
|
|
346
|
+
*/
|
|
305
347
|
expand?: (props: {
|
|
306
348
|
expanded: boolean;
|
|
307
349
|
expandProps?: ExpandControllerProps;
|
|
@@ -309,6 +351,15 @@ export type BbTableSlots<Item = any> = {
|
|
|
309
351
|
item: Item;
|
|
310
352
|
value: any;
|
|
311
353
|
}) => any;
|
|
354
|
+
/**
|
|
355
|
+
* Replaces the default checkbox/radio in the selection cell for each row.
|
|
356
|
+
* @param item - The raw item for this row.
|
|
357
|
+
* @param value - The resolved value for this row.
|
|
358
|
+
* @param checked - Whether this row is currently selected.
|
|
359
|
+
* @param disabled - Whether this row's selection control is disabled.
|
|
360
|
+
* @param inputName - The `name` attribute for the selection input.
|
|
361
|
+
* @param readonly - Whether the selection control is read-only.
|
|
362
|
+
*/
|
|
312
363
|
select?: (props: {
|
|
313
364
|
item: Item;
|
|
314
365
|
value: any;
|
|
@@ -318,6 +369,18 @@ export type BbTableSlots<Item = any> = {
|
|
|
318
369
|
readonly: boolean;
|
|
319
370
|
}) => any;
|
|
320
371
|
} & {
|
|
372
|
+
/**
|
|
373
|
+
* Named slot for a specific column cell (`col-key`) or column header (`header:col-key`).
|
|
374
|
+
* @param classes - CSS classes computed for the cell.
|
|
375
|
+
* @param content - The formatted cell content.
|
|
376
|
+
* @param expanded - Whether this row is currently expanded (body slots only).
|
|
377
|
+
* @param expandProps - Bind these onto an expand-toggle button (body slots only).
|
|
378
|
+
* @param toggleExpanded - Toggles the expanded state for this row (body slots only).
|
|
379
|
+
* @param item - The raw item for this row (body slots only).
|
|
380
|
+
* @param value - The resolved row value (body slots only).
|
|
381
|
+
* @param items - The full items list (header slots only).
|
|
382
|
+
* @param label - The column label (header slots only).
|
|
383
|
+
*/
|
|
321
384
|
[key: string]: (props: {
|
|
322
385
|
classes?: Classes[];
|
|
323
386
|
content?: any;
|
|
@@ -116,15 +116,38 @@ export type BbTagProps = {
|
|
|
116
116
|
};
|
|
117
117
|
export type BbTagEvents = BaseTagEvents;
|
|
118
118
|
export type BbTagSlots = {
|
|
119
|
+
/**
|
|
120
|
+
* Content appended inside the input field wrapper, after the tag chips.
|
|
121
|
+
*/
|
|
119
122
|
append?: (props: object) => any;
|
|
123
|
+
/**
|
|
124
|
+
* Content appended outside the input field wrapper.
|
|
125
|
+
*/
|
|
120
126
|
'append-outer'?: (props: object) => any;
|
|
127
|
+
/**
|
|
128
|
+
* Replaces the default label text rendered above the input.
|
|
129
|
+
* @param text - The `label` prop value.
|
|
130
|
+
* @param hasErrors - Whether the input is in an error state.
|
|
131
|
+
*/
|
|
121
132
|
label?: (props: {
|
|
122
133
|
text: string;
|
|
123
134
|
hasErrors: boolean;
|
|
124
135
|
}) => any;
|
|
136
|
+
/**
|
|
137
|
+
* Content prepended inside the input field wrapper, before the tag chips.
|
|
138
|
+
*/
|
|
125
139
|
prepend?: (props: object) => any;
|
|
140
|
+
/**
|
|
141
|
+
* Content rendered as an inline prefix inside the input field.
|
|
142
|
+
*/
|
|
126
143
|
prefix?: (props: object) => any;
|
|
144
|
+
/**
|
|
145
|
+
* Content rendered as an inline suffix inside the input field.
|
|
146
|
+
*/
|
|
127
147
|
suffix?: (props: object) => any;
|
|
148
|
+
/**
|
|
149
|
+
* Content prepended outside the input field wrapper.
|
|
150
|
+
*/
|
|
128
151
|
'prepend-outer'?: (props: object) => any;
|
|
129
152
|
};
|
|
130
153
|
declare function __VLS_template(): {
|
|
@@ -116,6 +116,11 @@ export type BbTextInputProps = {
|
|
|
116
116
|
};
|
|
117
117
|
export type BbTextInputEvents = BaseTextInputEvents;
|
|
118
118
|
export type BbTextInputSlots = BaseTextInputSlots & {
|
|
119
|
+
/**
|
|
120
|
+
* Replaces the default label text rendered above the input.
|
|
121
|
+
* @param text - The `label` prop value.
|
|
122
|
+
* @param hasErrors - Whether the input is in an error state.
|
|
123
|
+
*/
|
|
119
124
|
label?: (props: {
|
|
120
125
|
text: string;
|
|
121
126
|
hasErrors: boolean;
|
|
@@ -124,11 +129,21 @@ export type BbTextInputSlots = BaseTextInputSlots & {
|
|
|
124
129
|
declare function __VLS_template(): {
|
|
125
130
|
attrs: Partial<{}>;
|
|
126
131
|
slots: Readonly<BaseTextInputSlots & {
|
|
132
|
+
/**
|
|
133
|
+
* Replaces the default label text rendered above the input.
|
|
134
|
+
* @param text - The `label` prop value.
|
|
135
|
+
* @param hasErrors - Whether the input is in an error state.
|
|
136
|
+
*/
|
|
127
137
|
label?: (props: {
|
|
128
138
|
text: string;
|
|
129
139
|
hasErrors: boolean;
|
|
130
140
|
}) => any;
|
|
131
141
|
}> & BaseTextInputSlots & {
|
|
142
|
+
/**
|
|
143
|
+
* Replaces the default label text rendered above the input.
|
|
144
|
+
* @param text - The `label` prop value.
|
|
145
|
+
* @param hasErrors - Whether the input is in an error state.
|
|
146
|
+
*/
|
|
132
147
|
label?: (props: {
|
|
133
148
|
text: string;
|
|
134
149
|
hasErrors: boolean;
|
|
@@ -106,6 +106,11 @@ export type BbTextareaProps = {
|
|
|
106
106
|
};
|
|
107
107
|
export type BbTextareaEvents = BaseTextareaEvents;
|
|
108
108
|
export type BbTextareaSlots = BaseTextareaSlots & {
|
|
109
|
+
/**
|
|
110
|
+
* Replaces the default label text rendered above the textarea.
|
|
111
|
+
* @param text - The `label` prop value.
|
|
112
|
+
* @param hasErrors - Whether the textarea is in an error state.
|
|
113
|
+
*/
|
|
109
114
|
label?: (props: {
|
|
110
115
|
text: string;
|
|
111
116
|
hasErrors: boolean;
|
|
@@ -114,11 +119,21 @@ export type BbTextareaSlots = BaseTextareaSlots & {
|
|
|
114
119
|
declare function __VLS_template(): {
|
|
115
120
|
attrs: Partial<{}>;
|
|
116
121
|
slots: Readonly<BaseTextareaSlots & {
|
|
122
|
+
/**
|
|
123
|
+
* Replaces the default label text rendered above the textarea.
|
|
124
|
+
* @param text - The `label` prop value.
|
|
125
|
+
* @param hasErrors - Whether the textarea is in an error state.
|
|
126
|
+
*/
|
|
117
127
|
label?: (props: {
|
|
118
128
|
text: string;
|
|
119
129
|
hasErrors: boolean;
|
|
120
130
|
}) => any;
|
|
121
131
|
}> & BaseTextareaSlots & {
|
|
132
|
+
/**
|
|
133
|
+
* Replaces the default label text rendered above the textarea.
|
|
134
|
+
* @param text - The `label` prop value.
|
|
135
|
+
* @param hasErrors - Whether the textarea is in an error state.
|
|
136
|
+
*/
|
|
122
137
|
label?: (props: {
|
|
123
138
|
text: string;
|
|
124
139
|
hasErrors: boolean;
|
|
@@ -30,6 +30,13 @@ export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disab
|
|
|
30
30
|
};
|
|
31
31
|
type __VLS_Props = BbTooltipProps;
|
|
32
32
|
type BbTooltipSlots = {
|
|
33
|
+
/**
|
|
34
|
+
* Replaces the default trigger element that opens the tooltip.
|
|
35
|
+
* @param props - Bind these onto the activator element with `v-bind="props"` to wire up the popover reference.
|
|
36
|
+
* @param disabled - Whether the tooltip is disabled.
|
|
37
|
+
* @param open - Whether the tooltip is currently visible.
|
|
38
|
+
* @param placement - The current placement of the tooltip relative to the activator.
|
|
39
|
+
*/
|
|
33
40
|
activator?: (props: {
|
|
34
41
|
props: {
|
|
35
42
|
ref: (reference: unknown) => void;
|
|
@@ -38,6 +45,9 @@ type BbTooltipSlots = {
|
|
|
38
45
|
open: boolean;
|
|
39
46
|
placement: Placement;
|
|
40
47
|
}) => any;
|
|
48
|
+
/**
|
|
49
|
+
* Content rendered inside the tooltip bubble.
|
|
50
|
+
*/
|
|
41
51
|
default?: (props: object) => any;
|
|
42
52
|
};
|
|
43
53
|
type __VLS_PublicProps = {
|
|
@@ -138,8 +148,10 @@ declare function __VLS_template(): {
|
|
|
138
148
|
}> & Readonly<{
|
|
139
149
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
140
150
|
}>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
141
|
-
$slots: {
|
|
142
|
-
default
|
|
151
|
+
$slots: Readonly<{
|
|
152
|
+
default?: (props: object) => any;
|
|
153
|
+
}> & {
|
|
154
|
+
default?: (props: object) => any;
|
|
143
155
|
};
|
|
144
156
|
}) | null;
|
|
145
157
|
};
|
|
@@ -250,8 +262,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
250
262
|
}> & Readonly<{
|
|
251
263
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
252
264
|
}>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
253
|
-
$slots: {
|
|
254
|
-
default
|
|
265
|
+
$slots: Readonly<{
|
|
266
|
+
default?: (props: object) => any;
|
|
267
|
+
}> & {
|
|
268
|
+
default?: (props: object) => any;
|
|
255
269
|
};
|
|
256
270
|
}) | null;
|
|
257
271
|
}, any>;
|
|
@@ -39,6 +39,19 @@ export type BbTreeProps = {
|
|
|
39
39
|
expandable?: boolean | ((item: TreeItem, depth: number, parent?: TreeItem) => boolean);
|
|
40
40
|
};
|
|
41
41
|
export type BbTreeSlots = {
|
|
42
|
+
/**
|
|
43
|
+
* Named slots for tree nodes, resolved in priority order: `{identifier}` (specific node),
|
|
44
|
+
* `{depth}` (all nodes at that depth), `{identifier}-children` (children container),
|
|
45
|
+
* `{depth}-children` (children container at that depth), or `default` (all remaining nodes).
|
|
46
|
+
* @param item - The raw item from the `items` prop for this node.
|
|
47
|
+
* @param parent - The parent item, or `undefined` for root-level nodes.
|
|
48
|
+
* @param index - Zero-based index of this node among its siblings.
|
|
49
|
+
* @param offset - Absolute position of this node in the flattened tree.
|
|
50
|
+
* @param open - Whether this node is currently expanded (children visible).
|
|
51
|
+
* @param depth - Nesting depth of this node, starting at `0` for the root level.
|
|
52
|
+
* @param identifier - The resolved identifier value for this node.
|
|
53
|
+
* @param expandable - Whether this node can be expanded.
|
|
54
|
+
*/
|
|
42
55
|
[key: string]: (props: {
|
|
43
56
|
item: any;
|
|
44
57
|
parent?: any;
|
|
@@ -16,12 +16,48 @@ export type CommonInputInnerContainerProps = {
|
|
|
16
16
|
};
|
|
17
17
|
declare function __VLS_template(): {
|
|
18
18
|
attrs: Partial<{}>;
|
|
19
|
-
slots: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
slots: Readonly<{
|
|
20
|
+
/**
|
|
21
|
+
* Wraps the leading prefix area. Renders a `<span>` containing the `prefix` sub-slot by default.
|
|
22
|
+
*/
|
|
23
|
+
prepend?: (props: object) => any;
|
|
24
|
+
/**
|
|
25
|
+
* Content rendered as an inline text prefix inside the prepend span.
|
|
26
|
+
*/
|
|
27
|
+
prefix?: (props: object) => any;
|
|
28
|
+
/**
|
|
29
|
+
* The main input element (e.g. `<input>` or `<textarea>`).
|
|
30
|
+
*/
|
|
31
|
+
default?: (props: object) => any;
|
|
32
|
+
/**
|
|
33
|
+
* Wraps the trailing suffix area. Renders a `<span>` containing the `suffix` sub-slot by default.
|
|
34
|
+
*/
|
|
35
|
+
append?: (props: object) => any;
|
|
36
|
+
/**
|
|
37
|
+
* Content rendered as an inline text suffix inside the append span.
|
|
38
|
+
*/
|
|
39
|
+
suffix?: (props: object) => any;
|
|
40
|
+
}> & {
|
|
41
|
+
/**
|
|
42
|
+
* Wraps the leading prefix area. Renders a `<span>` containing the `prefix` sub-slot by default.
|
|
43
|
+
*/
|
|
44
|
+
prepend?: (props: object) => any;
|
|
45
|
+
/**
|
|
46
|
+
* Content rendered as an inline text prefix inside the prepend span.
|
|
47
|
+
*/
|
|
48
|
+
prefix?: (props: object) => any;
|
|
49
|
+
/**
|
|
50
|
+
* The main input element (e.g. `<input>` or `<textarea>`).
|
|
51
|
+
*/
|
|
52
|
+
default?: (props: object) => any;
|
|
53
|
+
/**
|
|
54
|
+
* Wraps the trailing suffix area. Renders a `<span>` containing the `suffix` sub-slot by default.
|
|
55
|
+
*/
|
|
56
|
+
append?: (props: object) => any;
|
|
57
|
+
/**
|
|
58
|
+
* Content rendered as an inline text suffix inside the append span.
|
|
59
|
+
*/
|
|
60
|
+
suffix?: (props: object) => any;
|
|
25
61
|
};
|
|
26
62
|
refs: {
|
|
27
63
|
container: HTMLSpanElement;
|