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
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { IconType } from '../../types/Icon';
|
|
2
|
+
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Color input with hex value masking and an optional palette popover.
|
|
5
|
+
* Accepts and emits `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) values via v-model
|
|
6
|
+
* and supports full input chrome slots.
|
|
7
|
+
*/
|
|
8
|
+
export type BaseColorInputProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Enable the alpha channel. When true the picker shows an opacity slider and
|
|
11
|
+
* emits / accepts `#RRGGBBAA` hex8 values.
|
|
12
|
+
*/
|
|
13
|
+
alpha?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the icon to render at the right hand side of the input.
|
|
16
|
+
*/
|
|
17
|
+
'append:icon'?: IconType;
|
|
18
|
+
/**
|
|
19
|
+
* Id(s) of element(s) describing this input for assistive tech (space-separated).
|
|
20
|
+
* Typically includes the container hint id if used within a BaseInputContainer.
|
|
21
|
+
*/
|
|
22
|
+
ariaDescribedby?: InputHTMLAttributes['aria-describedby'];
|
|
23
|
+
/**
|
|
24
|
+
* Autocomplete hint for the browser.
|
|
25
|
+
* @default 'off'
|
|
26
|
+
*/
|
|
27
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
28
|
+
/**
|
|
29
|
+
* Focus the input on mount.
|
|
30
|
+
*/
|
|
31
|
+
autofocus?: InputHTMLAttributes['autofocus'];
|
|
32
|
+
/**
|
|
33
|
+
* Show a clear button when the input has a value.
|
|
34
|
+
*/
|
|
35
|
+
clearable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Display the component in a compact layout.
|
|
38
|
+
*/
|
|
39
|
+
compact?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Disable all interactions.
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Visually mark the component as invalid (also sets aria-invalid on the input).
|
|
46
|
+
*/
|
|
47
|
+
hasErrors?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The id attribute for the input element. Defaults to a generated `bb_<unique>` id when omitted.
|
|
50
|
+
*/
|
|
51
|
+
id?: HTMLAttributes['id'];
|
|
52
|
+
/**
|
|
53
|
+
* Display the loading state.
|
|
54
|
+
*/
|
|
55
|
+
loading?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* v-model value: `#RRGGBB` hex string or `null` when empty.
|
|
58
|
+
* Example: `#1A2B3C`
|
|
59
|
+
*/
|
|
60
|
+
modelValue: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Name attribute of the input.
|
|
63
|
+
*/
|
|
64
|
+
name?: InputHTMLAttributes['name'];
|
|
65
|
+
/**
|
|
66
|
+
* Placeholder text when there is no value.
|
|
67
|
+
*/
|
|
68
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
69
|
+
/**
|
|
70
|
+
* Name of the icon to render at the start of the input.
|
|
71
|
+
*/
|
|
72
|
+
'prepend:icon'?: IconType;
|
|
73
|
+
/**
|
|
74
|
+
* Make the input read-only.
|
|
75
|
+
*/
|
|
76
|
+
readonly?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Mark the input as required.
|
|
79
|
+
*/
|
|
80
|
+
required?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Show an eyedropper button to sample any color on screen.
|
|
83
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
picker?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Controls swatches display in the picker:
|
|
89
|
+
* - `true` — show the built-in Material-palette swatches
|
|
90
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
91
|
+
* - `false` / omitted — no swatches section
|
|
92
|
+
*/
|
|
93
|
+
swatches?: boolean | string[][];
|
|
94
|
+
/**
|
|
95
|
+
* Transition duration (ms) of the palette popover.
|
|
96
|
+
* @default 250
|
|
97
|
+
*/
|
|
98
|
+
transitionDuration?: number;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Events emitted by the color input.
|
|
102
|
+
* - blur/change/click/focus/input/keydown/mousedown/mouseup: native input events (payload: original event)
|
|
103
|
+
* - update:modelValue: emits `#RRGGBB` when valid, `null` when cleared/invalid
|
|
104
|
+
*/
|
|
105
|
+
export type BaseColorInputEvents = {
|
|
106
|
+
/**
|
|
107
|
+
* Emitted when the native text input loses focus.
|
|
108
|
+
* Forwards the original DOM `FocusEvent`.
|
|
109
|
+
*/
|
|
110
|
+
(e: 'blur', event: FocusEvent): void;
|
|
111
|
+
/**
|
|
112
|
+
* Emitted when the native text input fires a change event.
|
|
113
|
+
* Forwards the original DOM `Event`.
|
|
114
|
+
*/
|
|
115
|
+
(e: 'change', event: Event): void;
|
|
116
|
+
/**
|
|
117
|
+
* Emitted when the input area receives a click.
|
|
118
|
+
* Forwards the original DOM `MouseEvent`.
|
|
119
|
+
*/
|
|
120
|
+
(e: 'click', event: MouseEvent): void;
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the native text input gains focus.
|
|
123
|
+
* Forwards the original DOM `FocusEvent`.
|
|
124
|
+
*/
|
|
125
|
+
(e: 'focus', event: FocusEvent): void;
|
|
126
|
+
/**
|
|
127
|
+
* Emitted on native input events from the text field.
|
|
128
|
+
* Forwards the original DOM `Event`.
|
|
129
|
+
*/
|
|
130
|
+
(e: 'input', event: Event): void;
|
|
131
|
+
/**
|
|
132
|
+
* Emitted for keyboard interaction on the input.
|
|
133
|
+
* Forwards the original DOM `KeyboardEvent`.
|
|
134
|
+
*/
|
|
135
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
136
|
+
/**
|
|
137
|
+
* Emitted when a pointing device button is pressed over the input.
|
|
138
|
+
* Forwards the original DOM `MouseEvent`.
|
|
139
|
+
*/
|
|
140
|
+
(e: 'mousedown', event: MouseEvent): void;
|
|
141
|
+
/**
|
|
142
|
+
* Emitted when a pointing device button is released over the input.
|
|
143
|
+
* Forwards the original DOM `MouseEvent`.
|
|
144
|
+
*/
|
|
145
|
+
(e: 'mouseup', event: MouseEvent): void;
|
|
146
|
+
/**
|
|
147
|
+
* Emitted when the value becomes a valid hex color via typing/masking,
|
|
148
|
+
* when the field is cleared, or when the palette selects a color.
|
|
149
|
+
* Emits:
|
|
150
|
+
* - `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) for valid values
|
|
151
|
+
* - `null` when cleared
|
|
152
|
+
*/
|
|
153
|
+
(e: 'update:modelValue', value: string | null): void;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Slots to customize the input chrome.
|
|
157
|
+
* Use `prepend`/`append` for inline adornments; `prepend-outer`/`append-outer` for the outer container areas.
|
|
158
|
+
*/
|
|
159
|
+
export type BaseColorInputSlots = {
|
|
160
|
+
/**
|
|
161
|
+
* Content rendered after the color picker indicator button, at the end of the inner container.
|
|
162
|
+
* When provided, replaces the default suffix wrapper (use the `suffix` slot if you only need inline trailing text).
|
|
163
|
+
* This slot receives no scoped props.
|
|
164
|
+
*/
|
|
165
|
+
append?: (props: Record<string, never>) => any;
|
|
166
|
+
/**
|
|
167
|
+
* Content rendered after the entire input control, outside the input chrome.
|
|
168
|
+
* This slot receives no scoped props.
|
|
169
|
+
*/
|
|
170
|
+
'append-outer'?: (props: Record<string, never>) => any;
|
|
171
|
+
/**
|
|
172
|
+
* Inline content rendered at the start of the input field area, before the typed text.
|
|
173
|
+
* This slot receives no scoped props.
|
|
174
|
+
*/
|
|
175
|
+
prefix?: (props: Record<string, never>) => any;
|
|
176
|
+
/**
|
|
177
|
+
* Content rendered before the text input, at the start of the inner container.
|
|
178
|
+
* This slot receives no scoped props.
|
|
179
|
+
*/
|
|
180
|
+
prepend?: (props: Record<string, never>) => any;
|
|
181
|
+
/**
|
|
182
|
+
* Content rendered before the entire input control, outside the input chrome.
|
|
183
|
+
* This slot receives no scoped props.
|
|
184
|
+
*/
|
|
185
|
+
'prepend-outer'?: (props: Record<string, never>) => any;
|
|
186
|
+
/**
|
|
187
|
+
* Inline content rendered at the end of the input field area, after the typed text.
|
|
188
|
+
* Renders inside the default `append` area's suffix wrapper.
|
|
189
|
+
* This slot receives no scoped props.
|
|
190
|
+
*/
|
|
191
|
+
suffix?: (props: Record<string, never>) => any;
|
|
192
|
+
};
|
|
193
|
+
export type ColorPaletteProps = {
|
|
194
|
+
/**
|
|
195
|
+
* Current color value bound via `v-model`.
|
|
196
|
+
* Accepts `#RRGGBB` and `#RRGGBBAA` (alpha) formats, or `null` for no value.
|
|
197
|
+
*/
|
|
198
|
+
modelValue: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* Enable alpha channel support.
|
|
201
|
+
* When true, an alpha slider is shown and emitted values include alpha as hex8.
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
alpha?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Show an eyedropper button that lets the user sample any color on screen.
|
|
207
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
208
|
+
* @default false
|
|
209
|
+
*/
|
|
210
|
+
picker?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Controls swatches display:
|
|
213
|
+
* - `true` — show the built-in Material-palette swatches
|
|
214
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
215
|
+
* - `false` / omitted — no swatches section
|
|
216
|
+
*/
|
|
217
|
+
swatches?: boolean | string[][];
|
|
218
|
+
};
|
|
219
|
+
export type ColorPaletteEvents = {
|
|
220
|
+
/**
|
|
221
|
+
* Emitted whenever the user changes color through:
|
|
222
|
+
* - SV canvas dragging/keyboard
|
|
223
|
+
* - hue slider dragging/keyboard
|
|
224
|
+
* - alpha slider dragging/keyboard (when enabled)
|
|
225
|
+
* - swatch selection
|
|
226
|
+
* - eyedropper pick
|
|
227
|
+
*
|
|
228
|
+
* Payload format:
|
|
229
|
+
* - `#RRGGBB` when `alpha` is disabled
|
|
230
|
+
* - `#RRGGBBAA` when `alpha` is enabled
|
|
231
|
+
*/
|
|
232
|
+
(e: 'update:modelValue', value: string): void;
|
|
233
|
+
};
|
|
@@ -53,7 +53,27 @@ export type BaseDatePickerProps = {
|
|
|
53
53
|
};
|
|
54
54
|
declare function __VLS_template(): {
|
|
55
55
|
attrs: Partial<{}>;
|
|
56
|
-
slots:
|
|
56
|
+
slots: Readonly<{
|
|
57
|
+
[key: string]: (props: {
|
|
58
|
+
first: boolean;
|
|
59
|
+
highlighted: boolean;
|
|
60
|
+
item: any;
|
|
61
|
+
label: string;
|
|
62
|
+
last: boolean;
|
|
63
|
+
middle: boolean;
|
|
64
|
+
selected: boolean;
|
|
65
|
+
}) => any;
|
|
66
|
+
}> & {
|
|
67
|
+
[key: string]: (props: {
|
|
68
|
+
first: boolean;
|
|
69
|
+
highlighted: boolean;
|
|
70
|
+
item: any;
|
|
71
|
+
label: string;
|
|
72
|
+
last: boolean;
|
|
73
|
+
middle: boolean;
|
|
74
|
+
selected: boolean;
|
|
75
|
+
}) => any;
|
|
76
|
+
};
|
|
57
77
|
refs: {};
|
|
58
78
|
rootEl: HTMLDivElement;
|
|
59
79
|
};
|
|
@@ -21,23 +21,27 @@ type Props = {
|
|
|
21
21
|
type DateValue = string | string[] | null;
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
23
|
attrs: Partial<{}>;
|
|
24
|
-
slots:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
slots: Readonly<{
|
|
25
|
+
[key: string]: (props: {
|
|
26
|
+
first: boolean;
|
|
27
|
+
highlighted: boolean;
|
|
28
|
+
item: any;
|
|
29
|
+
label: string;
|
|
30
|
+
last: boolean;
|
|
31
|
+
middle: boolean;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
}) => any;
|
|
34
|
+
}> & {
|
|
35
|
+
[key: string]: (props: {
|
|
36
|
+
first: boolean;
|
|
37
|
+
highlighted: boolean;
|
|
38
|
+
item: any;
|
|
39
|
+
label: string;
|
|
40
|
+
last: boolean;
|
|
41
|
+
middle: boolean;
|
|
42
|
+
selected: boolean;
|
|
43
|
+
}) => any;
|
|
44
|
+
};
|
|
41
45
|
refs: {
|
|
42
46
|
calendar: HTMLDivElement;
|
|
43
47
|
};
|
|
@@ -169,18 +169,54 @@ export type BaseDatePickerInputEvents = {
|
|
|
169
169
|
declare function __VLS_template(): {
|
|
170
170
|
attrs: Partial<{}>;
|
|
171
171
|
slots: Readonly<{
|
|
172
|
+
/**
|
|
173
|
+
* Content rendered before the entire input control, outside the input chrome.
|
|
174
|
+
*/
|
|
172
175
|
'prepend-outer'?: (props: object) => any;
|
|
176
|
+
/**
|
|
177
|
+
* Content rendered before the date fields, at the start of the inner container.
|
|
178
|
+
*/
|
|
173
179
|
prepend?: (props: object) => any;
|
|
180
|
+
/**
|
|
181
|
+
* Inline content rendered at the start of the input field area, before the date fields.
|
|
182
|
+
*/
|
|
174
183
|
prefix?: (props: object) => any;
|
|
184
|
+
/**
|
|
185
|
+
* Content rendered after the date fields, at the end of the inner container (before the calendar toggle button).
|
|
186
|
+
*/
|
|
175
187
|
append?: (props: object) => any;
|
|
188
|
+
/**
|
|
189
|
+
* Content rendered after the entire input control, outside the input chrome.
|
|
190
|
+
*/
|
|
176
191
|
'append-outer'?: (props: object) => any;
|
|
192
|
+
/**
|
|
193
|
+
* Inline content rendered at the end of the input field area, after the date fields.
|
|
194
|
+
*/
|
|
177
195
|
suffix?: (props: object) => any;
|
|
178
196
|
}> & {
|
|
197
|
+
/**
|
|
198
|
+
* Content rendered before the entire input control, outside the input chrome.
|
|
199
|
+
*/
|
|
179
200
|
'prepend-outer'?: (props: object) => any;
|
|
201
|
+
/**
|
|
202
|
+
* Content rendered before the date fields, at the start of the inner container.
|
|
203
|
+
*/
|
|
180
204
|
prepend?: (props: object) => any;
|
|
205
|
+
/**
|
|
206
|
+
* Inline content rendered at the start of the input field area, before the date fields.
|
|
207
|
+
*/
|
|
181
208
|
prefix?: (props: object) => any;
|
|
209
|
+
/**
|
|
210
|
+
* Content rendered after the date fields, at the end of the inner container (before the calendar toggle button).
|
|
211
|
+
*/
|
|
182
212
|
append?: (props: object) => any;
|
|
213
|
+
/**
|
|
214
|
+
* Content rendered after the entire input control, outside the input chrome.
|
|
215
|
+
*/
|
|
183
216
|
'append-outer'?: (props: object) => any;
|
|
217
|
+
/**
|
|
218
|
+
* Inline content rendered at the end of the input field area, after the date fields.
|
|
219
|
+
*/
|
|
184
220
|
suffix?: (props: object) => any;
|
|
185
221
|
};
|
|
186
222
|
refs: {
|
|
@@ -223,10 +259,14 @@ declare function __VLS_template(): {
|
|
|
223
259
|
$nextTick: typeof import('vue').nextTick;
|
|
224
260
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
225
261
|
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
226
|
-
$slots: {
|
|
227
|
-
'prepend-outer'
|
|
228
|
-
default
|
|
229
|
-
'append-outer'
|
|
262
|
+
$slots: Readonly<{
|
|
263
|
+
'prepend-outer'?: (props: object) => any;
|
|
264
|
+
default?: (props: object) => any;
|
|
265
|
+
'append-outer'?: (props: object) => any;
|
|
266
|
+
}> & {
|
|
267
|
+
'prepend-outer'?: (props: object) => any;
|
|
268
|
+
default?: (props: object) => any;
|
|
269
|
+
'append-outer'?: (props: object) => any;
|
|
230
270
|
};
|
|
231
271
|
}) | null;
|
|
232
272
|
innerContainer: ({
|
|
@@ -282,12 +322,18 @@ declare function __VLS_template(): {
|
|
|
282
322
|
} & Readonly<{}> & Omit<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
|
|
283
323
|
"onClick:clear"?: (() => any) | undefined;
|
|
284
324
|
}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
285
|
-
$slots: {
|
|
286
|
-
prepend
|
|
287
|
-
prefix
|
|
288
|
-
default
|
|
289
|
-
append
|
|
290
|
-
suffix
|
|
325
|
+
$slots: Readonly<{
|
|
326
|
+
prepend?: (props: object) => any;
|
|
327
|
+
prefix?: (props: object) => any;
|
|
328
|
+
default?: (props: object) => any;
|
|
329
|
+
append?: (props: object) => any;
|
|
330
|
+
suffix?: (props: object) => any;
|
|
331
|
+
}> & {
|
|
332
|
+
prepend?: (props: object) => any;
|
|
333
|
+
prefix?: (props: object) => any;
|
|
334
|
+
default?: (props: object) => any;
|
|
335
|
+
append?: (props: object) => any;
|
|
336
|
+
suffix?: (props: object) => any;
|
|
291
337
|
};
|
|
292
338
|
}) | null;
|
|
293
339
|
calendar: HTMLDivElement;
|
|
@@ -358,7 +404,27 @@ declare function __VLS_template(): {
|
|
|
358
404
|
}>, "firstDayOfWeek" | "resetStatus"> & import('vue').ShallowUnwrapRef<{
|
|
359
405
|
resetStatus: () => void;
|
|
360
406
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
361
|
-
$slots:
|
|
407
|
+
$slots: Readonly<{
|
|
408
|
+
[key: string]: (props: {
|
|
409
|
+
first: boolean;
|
|
410
|
+
highlighted: boolean;
|
|
411
|
+
item: any;
|
|
412
|
+
label: string;
|
|
413
|
+
last: boolean;
|
|
414
|
+
middle: boolean;
|
|
415
|
+
selected: boolean;
|
|
416
|
+
}) => any;
|
|
417
|
+
}> & {
|
|
418
|
+
[key: string]: (props: {
|
|
419
|
+
first: boolean;
|
|
420
|
+
highlighted: boolean;
|
|
421
|
+
item: any;
|
|
422
|
+
label: string;
|
|
423
|
+
last: boolean;
|
|
424
|
+
middle: boolean;
|
|
425
|
+
selected: boolean;
|
|
426
|
+
}) => any;
|
|
427
|
+
};
|
|
362
428
|
}) | null;
|
|
363
429
|
};
|
|
364
430
|
rootEl: HTMLSpanElement;
|
|
@@ -419,10 +485,14 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
|
|
|
419
485
|
$nextTick: typeof import('vue').nextTick;
|
|
420
486
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
421
487
|
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
422
|
-
$slots: {
|
|
423
|
-
'prepend-outer'
|
|
424
|
-
default
|
|
425
|
-
'append-outer'
|
|
488
|
+
$slots: Readonly<{
|
|
489
|
+
'prepend-outer'?: (props: object) => any;
|
|
490
|
+
default?: (props: object) => any;
|
|
491
|
+
'append-outer'?: (props: object) => any;
|
|
492
|
+
}> & {
|
|
493
|
+
'prepend-outer'?: (props: object) => any;
|
|
494
|
+
default?: (props: object) => any;
|
|
495
|
+
'append-outer'?: (props: object) => any;
|
|
426
496
|
};
|
|
427
497
|
}) | null;
|
|
428
498
|
innerContainer: ({
|
|
@@ -478,12 +548,18 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
|
|
|
478
548
|
} & Readonly<{}> & Omit<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
|
|
479
549
|
"onClick:clear"?: (() => any) | undefined;
|
|
480
550
|
}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
481
|
-
$slots: {
|
|
482
|
-
prepend
|
|
483
|
-
prefix
|
|
484
|
-
default
|
|
485
|
-
append
|
|
486
|
-
suffix
|
|
551
|
+
$slots: Readonly<{
|
|
552
|
+
prepend?: (props: object) => any;
|
|
553
|
+
prefix?: (props: object) => any;
|
|
554
|
+
default?: (props: object) => any;
|
|
555
|
+
append?: (props: object) => any;
|
|
556
|
+
suffix?: (props: object) => any;
|
|
557
|
+
}> & {
|
|
558
|
+
prepend?: (props: object) => any;
|
|
559
|
+
prefix?: (props: object) => any;
|
|
560
|
+
default?: (props: object) => any;
|
|
561
|
+
append?: (props: object) => any;
|
|
562
|
+
suffix?: (props: object) => any;
|
|
487
563
|
};
|
|
488
564
|
}) | null;
|
|
489
565
|
calendar: HTMLDivElement;
|
|
@@ -554,7 +630,27 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
|
|
|
554
630
|
}>, "firstDayOfWeek" | "resetStatus"> & import('vue').ShallowUnwrapRef<{
|
|
555
631
|
resetStatus: () => void;
|
|
556
632
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
|
557
|
-
$slots:
|
|
633
|
+
$slots: Readonly<{
|
|
634
|
+
[key: string]: (props: {
|
|
635
|
+
first: boolean;
|
|
636
|
+
highlighted: boolean;
|
|
637
|
+
item: any;
|
|
638
|
+
label: string;
|
|
639
|
+
last: boolean;
|
|
640
|
+
middle: boolean;
|
|
641
|
+
selected: boolean;
|
|
642
|
+
}) => any;
|
|
643
|
+
}> & {
|
|
644
|
+
[key: string]: (props: {
|
|
645
|
+
first: boolean;
|
|
646
|
+
highlighted: boolean;
|
|
647
|
+
item: any;
|
|
648
|
+
label: string;
|
|
649
|
+
last: boolean;
|
|
650
|
+
middle: boolean;
|
|
651
|
+
selected: boolean;
|
|
652
|
+
}) => any;
|
|
653
|
+
};
|
|
558
654
|
}) | null;
|
|
559
655
|
}, HTMLSpanElement>;
|
|
560
656
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -102,21 +102,47 @@ export type BaseDialogEvents = {
|
|
|
102
102
|
* - Default slot renders the body content; `footer` renders controls below the body.
|
|
103
103
|
*/
|
|
104
104
|
export type BaseDialogSlots = {
|
|
105
|
+
/**
|
|
106
|
+
* Replaces the default close icon rendered inside the header's close button.
|
|
107
|
+
*/
|
|
105
108
|
close?: (props: object) => any;
|
|
109
|
+
/**
|
|
110
|
+
* Primary body content of the dialog, rendered in the scrollable body area.
|
|
111
|
+
* @param close - Programmatically closes the dialog.
|
|
112
|
+
* @param titleId - The `id` of the title element; useful for custom `aria-labelledby` wiring.
|
|
113
|
+
*/
|
|
106
114
|
default?: (props: {
|
|
107
115
|
close: typeof close;
|
|
108
116
|
titleId: typeof titleId;
|
|
109
117
|
}) => any;
|
|
118
|
+
/**
|
|
119
|
+
* Replaces the default accessible description block. The provided content is linked to the dialog via `aria-describedby`.
|
|
120
|
+
* @param descriptionId - The `id` to assign to your custom description element for `aria-describedby` wiring.
|
|
121
|
+
* @param text - The `description` prop value.
|
|
122
|
+
*/
|
|
110
123
|
description?: (props: {
|
|
111
124
|
descriptionId: typeof descriptionId;
|
|
112
125
|
text: BaseDialogProps['description'];
|
|
113
126
|
}) => any;
|
|
127
|
+
/**
|
|
128
|
+
* Content rendered in the dialog footer, below the body area. Typically used for action buttons.
|
|
129
|
+
*/
|
|
114
130
|
footer?: (props: object) => any;
|
|
131
|
+
/**
|
|
132
|
+
* Replaces the entire dialog header section (title + close button). Maintains accessibility wiring via the provided props.
|
|
133
|
+
* @param titleId - The `id` to assign to your custom title element, wired to the dialog's `aria-labelledby`.
|
|
134
|
+
* @param close - Programmatically closes the dialog.
|
|
135
|
+
* @param title - The `title` prop value.
|
|
136
|
+
*/
|
|
115
137
|
header?: (props: {
|
|
116
138
|
titleId: typeof titleId;
|
|
117
139
|
close: typeof close;
|
|
118
140
|
title: BaseDialogProps['title'];
|
|
119
141
|
}) => any;
|
|
142
|
+
/**
|
|
143
|
+
* Replaces the default title text inside the header. Remains linked to the dialog through `aria-labelledby`.
|
|
144
|
+
* @param text - The `title` prop value.
|
|
145
|
+
*/
|
|
120
146
|
title?: (props: {
|
|
121
147
|
text: BaseDialogProps['title'];
|
|
122
148
|
}) => any;
|
|
@@ -81,12 +81,25 @@ export type BaseInputContainerProps = {
|
|
|
81
81
|
* - `label` allows custom label content while receiving the computed text and error state.
|
|
82
82
|
*/
|
|
83
83
|
export type BaseInputContainerSlots = {
|
|
84
|
+
/**
|
|
85
|
+
* The form control to render, positioned in the input column. Receives pre-computed
|
|
86
|
+
* wiring attributes so the inner input can be correctly associated with the label and hint.
|
|
87
|
+
* @param id - The resolved `id` for the input element; matches the `for` attribute on the label.
|
|
88
|
+
* @param name - The resolved `name` for the input, derived from the `label` prop when not set explicitly.
|
|
89
|
+
* @param hasErrors - Whether the container is in an error state (from `errors` or `hasErrors` props).
|
|
90
|
+
* @param ariaDescribedby - The `id` of the hint element when a `hint` is configured; pass as `aria-describedby` to the inner input.
|
|
91
|
+
*/
|
|
84
92
|
input?: (props: {
|
|
85
93
|
id: string;
|
|
86
94
|
name: string;
|
|
87
95
|
hasErrors: boolean;
|
|
88
96
|
ariaDescribedby: string | undefined;
|
|
89
97
|
}) => any;
|
|
98
|
+
/**
|
|
99
|
+
* Replaces the default label text. The outer label element and its `for` association are always rendered.
|
|
100
|
+
* @param text - The `label` prop value.
|
|
101
|
+
* @param hasErrors - Whether the container is in an error state.
|
|
102
|
+
*/
|
|
90
103
|
label?: (props: {
|
|
91
104
|
text: string;
|
|
92
105
|
hasErrors: boolean;
|
|
@@ -114,23 +114,50 @@ export type BaseNumberInputEvents = {
|
|
|
114
114
|
* Slots for decorating the input. Helpers `{ increase, decrease }` are provided where relevant.
|
|
115
115
|
*/
|
|
116
116
|
export type BaseNumberInputSlots = {
|
|
117
|
+
/**
|
|
118
|
+
* Inline content rendered at the start of the input field area, before the typed number.
|
|
119
|
+
*/
|
|
117
120
|
prefix?: (props: object) => any;
|
|
121
|
+
/**
|
|
122
|
+
* Content rendered after the number input, at the end of the inner container.
|
|
123
|
+
* Typically used to place increment/decrement buttons next to the input.
|
|
124
|
+
* @param increase - Increments the value by one `step`.
|
|
125
|
+
* @param decrease - Decrements the value by one `step`.
|
|
126
|
+
*/
|
|
118
127
|
append?: (props: {
|
|
119
128
|
increase: typeof increase;
|
|
120
129
|
decrease: typeof decrease;
|
|
121
130
|
}) => any;
|
|
131
|
+
/**
|
|
132
|
+
* Content rendered after the entire input control, outside the input chrome.
|
|
133
|
+
* @param increase - Increments the value by one `step`.
|
|
134
|
+
* @param decrease - Decrements the value by one `step`.
|
|
135
|
+
*/
|
|
122
136
|
'append-outer'?: (props: {
|
|
123
137
|
increase: typeof increase;
|
|
124
138
|
decrease: typeof decrease;
|
|
125
139
|
}) => any;
|
|
140
|
+
/**
|
|
141
|
+
* Content rendered before the number input, at the start of the inner container.
|
|
142
|
+
* @param increase - Increments the value by one `step`.
|
|
143
|
+
* @param decrease - Decrements the value by one `step`.
|
|
144
|
+
*/
|
|
126
145
|
prepend?: (props: {
|
|
127
146
|
increase: typeof increase;
|
|
128
147
|
decrease: typeof decrease;
|
|
129
148
|
}) => any;
|
|
149
|
+
/**
|
|
150
|
+
* Content rendered before the entire input control, outside the input chrome.
|
|
151
|
+
* @param increase - Increments the value by one `step`.
|
|
152
|
+
* @param decrease - Decrements the value by one `step`.
|
|
153
|
+
*/
|
|
130
154
|
'prepend-outer'?: (props: {
|
|
131
155
|
increase: typeof increase;
|
|
132
156
|
decrease: typeof decrease;
|
|
133
157
|
}) => any;
|
|
158
|
+
/**
|
|
159
|
+
* Inline content rendered at the end of the input field area, after the typed number.
|
|
160
|
+
*/
|
|
134
161
|
suffix?: (props: object) => any;
|
|
135
162
|
};
|
|
136
163
|
declare const decrease: () => void;
|
|
@@ -85,8 +85,34 @@ export type SlotAttributes = {
|
|
|
85
85
|
declare function __VLS_template(): {
|
|
86
86
|
attrs: Partial<{}>;
|
|
87
87
|
slots: Readonly<{
|
|
88
|
+
/**
|
|
89
|
+
* Replaces the default radio dot visual rendered inside the radio container.
|
|
90
|
+
* @param checked - Whether the radio is currently selected.
|
|
91
|
+
* @param disabled - Whether the radio is disabled.
|
|
92
|
+
* @param focused - Whether the radio input currently has focus.
|
|
93
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
94
|
+
* @param hasErrors - Whether the radio is in an error state.
|
|
95
|
+
* @param id - The `id` attribute of the underlying input.
|
|
96
|
+
* @param name - The `name` attribute of the underlying input.
|
|
97
|
+
* @param parsedValue - The radio value serialized to a string for form submission.
|
|
98
|
+
* @param readonly - Whether the radio is read-only.
|
|
99
|
+
* @param value - The current effective value of this radio option.
|
|
100
|
+
*/
|
|
88
101
|
icon?: (props: SlotAttributes) => any;
|
|
89
102
|
}> & {
|
|
103
|
+
/**
|
|
104
|
+
* Replaces the default radio dot visual rendered inside the radio container.
|
|
105
|
+
* @param checked - Whether the radio is currently selected.
|
|
106
|
+
* @param disabled - Whether the radio is disabled.
|
|
107
|
+
* @param focused - Whether the radio input currently has focus.
|
|
108
|
+
* @param focusVisible - Whether focus is keyboard-visible (`:focus-visible`).
|
|
109
|
+
* @param hasErrors - Whether the radio is in an error state.
|
|
110
|
+
* @param id - The `id` attribute of the underlying input.
|
|
111
|
+
* @param name - The `name` attribute of the underlying input.
|
|
112
|
+
* @param parsedValue - The radio value serialized to a string for form submission.
|
|
113
|
+
* @param readonly - Whether the radio is read-only.
|
|
114
|
+
* @param value - The current effective value of this radio option.
|
|
115
|
+
*/
|
|
90
116
|
icon?: (props: SlotAttributes) => any;
|
|
91
117
|
};
|
|
92
118
|
refs: {};
|