bitboss-ui 2.1.103 → 2.1.105
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/BaseSelect/BaseSelect.vue.d.ts +6 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +6 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +277 -0
- package/dist/components/FlatListBox.vue.d.ts +4 -1
- package/dist/components/GroupedListBox.vue.d.ts +4 -1
- package/dist/components/ListBox.vue.d.ts +5 -1
- package/dist/composables/useCoherence.d.ts +1 -0
- package/dist/composables/usePrefill.d.ts +13 -3
- package/dist/index.d.ts +1 -0
- package/dist/index109.js +21 -23
- package/dist/index110.js +13 -7
- package/dist/index116.js +1 -1
- package/dist/index122.js +4 -4
- package/dist/index124.js +14 -16
- package/dist/index132.js +1 -1
- package/dist/index134.js +5 -5
- package/dist/index136.js +1 -1
- package/dist/index138.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index143.js +2 -2
- package/dist/index145.js +1 -1
- package/dist/index16.js +3 -3
- package/dist/index18.js +3 -3
- package/dist/index20.js +14 -14
- package/dist/index218.js +138 -2
- package/dist/index219.js +2 -138
- package/dist/index22.js +14 -14
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +6 -2
- package/dist/index224.js +16 -2
- package/dist/index225.js +5 -3
- package/dist/index226.js +5 -33
- package/dist/index227.js +5 -28
- package/dist/index228.js +7 -0
- package/dist/index229.js +3 -5
- package/dist/index230.js +2 -5
- package/dist/index231.js +6 -5
- package/dist/index232.js +8 -5
- package/dist/index233.js +268 -3
- package/dist/index234.js +52 -2
- package/dist/index235.js +52 -6
- package/dist/index236.js +30 -6
- package/dist/index237.js +53 -261
- package/dist/index238.js +12 -51
- package/dist/index239.js +3 -52
- package/dist/index24.js +11 -11
- package/dist/index240.js +33 -32
- package/dist/index241.js +25 -57
- package/dist/index243.js +2 -3
- package/dist/index244.js +2 -86
- package/dist/index245.js +5 -0
- package/dist/index246.js +8 -28
- package/dist/index247.js +12 -15
- package/dist/index248.js +135 -17
- package/dist/index250.js +23 -15
- package/dist/index251.js +4 -12
- package/dist/index252.js +23 -2
- package/dist/index253.js +33 -4
- package/dist/index254.js +2 -106
- package/dist/{index285.js → index255.js} +1 -1
- package/dist/index256.js +2 -100
- package/dist/index257.js +6 -0
- package/dist/index258.js +20 -3
- package/dist/index259.js +34 -10
- package/dist/index26.js +2 -2
- package/dist/index260.js +86 -3
- package/dist/index262.js +30 -5
- package/dist/index263.js +17 -5
- package/dist/index264.js +51 -5
- package/dist/index265.js +18 -2
- package/dist/index266.js +11 -19
- package/dist/index267.js +18 -135
- package/dist/index268.js +5 -0
- package/dist/index269.js +10 -187
- package/dist/index270.js +5 -3
- package/dist/index272.js +9 -13
- package/dist/index273.js +369 -19
- package/dist/index275.js +25 -23
- package/dist/index276.js +4 -18
- package/dist/index277.js +9 -12
- package/dist/index278.js +52 -103
- package/dist/index279.js +187 -10
- package/dist/index28.js +1 -1
- package/dist/index280.js +3 -9
- package/dist/index281.js +3 -21
- package/dist/index282.js +18 -25
- package/dist/index283.js +11 -32
- package/dist/index284.js +106 -4
- package/dist/index286.js +100 -9
- package/dist/index288.js +107 -2
- package/dist/index289.js +5 -7
- package/dist/index290.js +5 -7
- package/dist/index291.js +5 -3
- package/dist/index292.js +2 -6
- package/dist/index293.js +7 -16
- package/dist/index294.js +7 -5
- package/dist/index295.js +20 -52
- package/dist/index296.js +7 -34
- package/dist/index297.js +10 -373
- package/dist/index298.js +5 -0
- package/dist/index299.js +7 -0
- package/dist/index30.js +2 -2
- package/dist/index300.js +7 -3
- package/dist/index302.js +3 -280
- package/dist/index303.js +3 -2
- package/dist/index304.js +17 -16
- package/dist/index305.js +28 -2
- package/dist/index306.js +719 -16
- package/dist/index307.js +366 -2
- package/dist/index308.js +56 -26
- package/dist/index309.js +5 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +280 -2
- package/dist/index312.js +2 -2
- package/dist/index313.js +16 -2
- package/dist/index314.js +2 -28
- package/dist/index315.js +16 -2
- package/dist/index316.js +2 -7
- package/dist/index317.js +27 -3
- package/dist/index318.js +2 -17
- package/dist/index319.js +2 -4
- package/dist/index32.js +2 -2
- package/dist/index320.js +2 -3
- package/dist/index321.js +2 -3
- package/dist/index322.js +2 -125
- package/dist/index323.js +2 -2
- package/dist/index324.js +2 -15
- package/dist/index325.js +3 -2
- package/dist/index326.js +3 -18
- package/dist/index327.js +3 -2
- package/dist/index328.js +4 -3
- package/dist/index329.js +3 -2
- package/dist/index330.js +3 -2
- package/dist/index331.js +2 -6
- package/dist/index332.js +5 -3
- package/dist/index333.js +125 -5
- package/dist/index334.js +2 -719
- package/dist/index335.js +15 -366
- package/dist/index336.js +2 -57
- package/dist/index337.js +19 -2
- package/dist/index338.js +2 -5
- package/dist/index339.js +227 -6
- package/dist/index34.js +12 -12
- package/dist/index340.js +67 -7
- package/dist/index341.js +66 -18
- package/dist/index342.js +92 -8
- package/dist/index343.js +5 -15
- package/dist/index344.js +6 -34
- package/dist/index345.js +19 -6
- package/dist/index346.js +7 -127
- package/dist/index347.js +12 -395
- package/dist/index348.js +7 -67
- package/dist/index349.js +35 -67
- package/dist/index350.js +6 -228
- package/dist/index351.js +129 -3
- package/dist/index352.js +396 -189
- package/dist/index353.js +18 -254
- package/dist/index355.js +136 -0
- package/dist/index356.js +199 -133
- package/dist/index357.js +257 -91
- package/dist/index358.js +1 -1
- package/dist/index359.js +1 -1
- package/dist/index36.js +4 -4
- package/dist/index363.js +1 -1
- package/dist/index38.js +253 -239
- package/dist/index40.js +6 -6
- package/dist/index42.js +2 -2
- package/dist/index44.js +27 -29
- package/dist/index46.js +6 -6
- package/dist/index50.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index60.js +2 -2
- package/dist/index62.js +5 -5
- package/dist/index68.js +1 -1
- package/dist/index74.js +4 -4
- package/dist/index82.js +7 -7
- package/dist/index84.js +1 -1
- package/dist/index86.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/index93.js +2 -2
- package/dist/index95.js +2 -2
- package/dist/index97.js +5 -5
- package/package.json +2 -2
- package/dist/index242.js +0 -15
- package/dist/index249.js +0 -53
- package/dist/index261.js +0 -6
- package/dist/index274.js +0 -11
- package/dist/index287.js +0 -9
- package/dist/index301.js +0 -7
- package/dist/index354.js +0 -24
|
@@ -255,9 +255,15 @@ export type BaseSelectSlots<Item> = {
|
|
|
255
255
|
'options:append'?: (props: {
|
|
256
256
|
focus: () => void;
|
|
257
257
|
}) => any;
|
|
258
|
+
'options:append:outer'?: (props: {
|
|
259
|
+
focus: () => void;
|
|
260
|
+
}) => any;
|
|
258
261
|
'options:prepend'?: (props: {
|
|
259
262
|
focus: () => void;
|
|
260
263
|
}) => any;
|
|
264
|
+
'options:prepend:outer'?: (props: {
|
|
265
|
+
focus: () => void;
|
|
266
|
+
}) => any;
|
|
261
267
|
prefix?: (props: object) => any;
|
|
262
268
|
prepend?: (props: {
|
|
263
269
|
query: string;
|
|
@@ -263,9 +263,15 @@ export type BbSelectSlots<T> = {
|
|
|
263
263
|
'options:append'?: (props: {
|
|
264
264
|
focus: () => void;
|
|
265
265
|
}) => any;
|
|
266
|
+
'options:append:outer'?: (props: {
|
|
267
|
+
focus: () => void;
|
|
268
|
+
}) => any;
|
|
266
269
|
'options:prepend'?: (props: {
|
|
267
270
|
focus: () => void;
|
|
268
271
|
}) => any;
|
|
272
|
+
'options:prepend:outer'?: (props: {
|
|
273
|
+
focus: () => void;
|
|
274
|
+
}) => any;
|
|
269
275
|
prefix?: (props: object) => any;
|
|
270
276
|
prepend?: (props: {
|
|
271
277
|
query: string;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
+
import { CommonProps } from '../../types/CommonProps';
|
|
3
|
+
export type BbSelectPopoverProps<Item> = {
|
|
4
|
+
/**
|
|
5
|
+
* External activator element or component ref.
|
|
6
|
+
* When provided, the activator slot is not rendered and event listeners
|
|
7
|
+
* are attached programmatically to the referenced element.
|
|
8
|
+
*/
|
|
9
|
+
activator?: HTMLElement | Record<string, any> | null;
|
|
10
|
+
/**
|
|
11
|
+
* Controls whether the search input is shown inside the popover panel.
|
|
12
|
+
* Use `'not-mobile'` to hide the search input on mobile.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
allowWriting?: boolean | 'not-mobile';
|
|
16
|
+
/**
|
|
17
|
+
* Browser autocomplete hint for the popover search input.
|
|
18
|
+
* @default 'off'
|
|
19
|
+
*/
|
|
20
|
+
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
21
|
+
/**
|
|
22
|
+
* Apply the compact density variant.
|
|
23
|
+
*/
|
|
24
|
+
compact?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Space the arrow keeps from popover edges.
|
|
27
|
+
* Useful with rounded corners.
|
|
28
|
+
* @default 10
|
|
29
|
+
*/
|
|
30
|
+
arrowPadding?: CommonProps['arrowPadding'];
|
|
31
|
+
/**
|
|
32
|
+
* Constrains the popover to a specific boundary element.
|
|
33
|
+
*/
|
|
34
|
+
boundary?: HTMLElement | Record<string, any> | string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Additional dependencies that trigger item reloading when changed.
|
|
37
|
+
* @default []
|
|
38
|
+
*/
|
|
39
|
+
dependencies?: any[];
|
|
40
|
+
/**
|
|
41
|
+
* Debounce delay (ms) for dependency-triggered reloads.
|
|
42
|
+
* @default 0
|
|
43
|
+
*/
|
|
44
|
+
depsDebounceTime?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Disables the component.
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Marks the component as being in error state.
|
|
51
|
+
*/
|
|
52
|
+
hasErrors?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Explicit invalid state for accessibility semantics.
|
|
55
|
+
* Falls back to `hasErrors` when not provided.
|
|
56
|
+
*/
|
|
57
|
+
ariaInvalid?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Space-separated IDREF(s) that describe this field for assistive technologies.
|
|
60
|
+
* Accepts either a string or array of ids.
|
|
61
|
+
*/
|
|
62
|
+
ariaDescribedby?: string | string[];
|
|
63
|
+
/**
|
|
64
|
+
* Enable or disable floating flip behavior.
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
flip?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the floating arrow is hidden.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
hideArrow?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Reset modelValue to `null` or empty array if it no longer matches available items.
|
|
75
|
+
*/
|
|
76
|
+
enforceCoherence?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Controls how options are filtered during search.
|
|
79
|
+
* Options are always filtered by display text, but can also match additional properties
|
|
80
|
+
* when set to a string path, array of paths, or custom function.
|
|
81
|
+
* Set to `false` to disable filtering, or `'not_stashed'` to exclude stashed items.
|
|
82
|
+
* @default () => []
|
|
83
|
+
*/
|
|
84
|
+
filterBy?: string | string[] | false | 'not_stashed' | ((value: any, item: any, query: string | null) => boolean) | null;
|
|
85
|
+
groupBy?: string | ((item: Item) => string | number | symbol);
|
|
86
|
+
/**
|
|
87
|
+
* Height of group headers in the listbox (px). Defaults to 24px (compact) or 32px.
|
|
88
|
+
* Only applies when `groupBy` is set.
|
|
89
|
+
*/
|
|
90
|
+
headerHeight?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Explicit id for the component. Used to generate ids for listbox and options.
|
|
93
|
+
*/
|
|
94
|
+
id?: HTMLAttributes['id'];
|
|
95
|
+
/**
|
|
96
|
+
* Array of items or function to load them asynchronously.
|
|
97
|
+
* Functions receive `(query, prefill, modelValue)` and can return a promise.
|
|
98
|
+
* @default []
|
|
99
|
+
*/
|
|
100
|
+
items: Item[] | ((query: string, prefill: boolean, modelValue: any[]) => Promise<Item[]>) | ((query: string, prefill: boolean, modelValue: any[]) => Item[]);
|
|
101
|
+
/**
|
|
102
|
+
* Height of the options in the listbox (px).
|
|
103
|
+
* @default 40
|
|
104
|
+
*/
|
|
105
|
+
itemHeight?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Path to item property for display text or function to extract it.
|
|
108
|
+
*/
|
|
109
|
+
itemText?: string | ((item: Item) => string) | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Path to item property for value or function to extract it.
|
|
112
|
+
*/
|
|
113
|
+
itemValue?: string | ((item: Item) => string) | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Display the loading state styles.
|
|
116
|
+
*/
|
|
117
|
+
loading?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Message shown while items are being loaded.
|
|
120
|
+
*/
|
|
121
|
+
loadingText?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Maximum number of selectable items (limits selection when `multiple` is true).
|
|
124
|
+
* @default Infinity
|
|
125
|
+
*/
|
|
126
|
+
max?: number;
|
|
127
|
+
/**
|
|
128
|
+
* v-model value. Single value for single select, array for multiple select.
|
|
129
|
+
*/
|
|
130
|
+
modelValue: any;
|
|
131
|
+
/**
|
|
132
|
+
* Debounce delay (ms) for modelValue change handling.
|
|
133
|
+
* @default 0
|
|
134
|
+
*/
|
|
135
|
+
modelValueDebounceTime?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Enable multiple item selection. When true, modelValue must be an array.
|
|
138
|
+
*/
|
|
139
|
+
multiple?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Message displayed when no items are available.
|
|
142
|
+
*/
|
|
143
|
+
noDataText?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Distance (px) between the activator and the popover.
|
|
146
|
+
* @default 4
|
|
147
|
+
*/
|
|
148
|
+
offset?: number;
|
|
149
|
+
/**
|
|
150
|
+
* Minimum page padding used by floating shift middleware.
|
|
151
|
+
* @default 0
|
|
152
|
+
*/
|
|
153
|
+
padding?: CommonProps['padding'];
|
|
154
|
+
/**
|
|
155
|
+
* Floating placement of the popover.
|
|
156
|
+
* @default 'bottom'
|
|
157
|
+
*/
|
|
158
|
+
placement?: CommonProps['placement'];
|
|
159
|
+
/**
|
|
160
|
+
* Controls when items are pre-loaded.
|
|
161
|
+
* `'interaction'` loads on first user interaction (first popover open),
|
|
162
|
+
* `true` loads immediately, `false` loads only on explicit search/open flows.
|
|
163
|
+
* @default 'interaction'
|
|
164
|
+
*/
|
|
165
|
+
prefill?: boolean | 'interaction';
|
|
166
|
+
/**
|
|
167
|
+
* Debounce delay (ms) before triggering search queries after user input stops.
|
|
168
|
+
* @default 500
|
|
169
|
+
*/
|
|
170
|
+
queryDebounceTime?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Prevents opening the popover while keeping the activator accessible.
|
|
173
|
+
*/
|
|
174
|
+
readonly?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Accessible label used by the search input rendered inside the popover.
|
|
177
|
+
* @default 'Search options'
|
|
178
|
+
*/
|
|
179
|
+
searchInputAriaLabel?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Accumulate selected items across searches instead of replacing them.
|
|
182
|
+
*/
|
|
183
|
+
stash?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Transition duration (ms) for popover show/hide animations.
|
|
186
|
+
* @default 300
|
|
187
|
+
*/
|
|
188
|
+
transitionDuration?: number;
|
|
189
|
+
/**
|
|
190
|
+
* Width of the popover in pixels, percentage, or `'auto'`.
|
|
191
|
+
*/
|
|
192
|
+
width?: number | string;
|
|
193
|
+
};
|
|
194
|
+
export type BbSelectPopoverEvents = {
|
|
195
|
+
(e: 'blur', event: FocusEvent): void;
|
|
196
|
+
(e: 'change', event: Event): void;
|
|
197
|
+
(e: 'click', event: MouseEvent): void;
|
|
198
|
+
(e: 'focus', event: FocusEvent): void;
|
|
199
|
+
(e: 'inactive'): void;
|
|
200
|
+
(e: 'input', event: Event): void;
|
|
201
|
+
(e: 'update:modelValue', value: any): void;
|
|
202
|
+
(e: 'option:add', text: string): void;
|
|
203
|
+
};
|
|
204
|
+
export type BbSelectPopoverSlots<Item> = {
|
|
205
|
+
activator?: (props: {
|
|
206
|
+
props: {
|
|
207
|
+
ref: (reference: unknown) => void;
|
|
208
|
+
};
|
|
209
|
+
shown: boolean;
|
|
210
|
+
disabled: boolean | undefined;
|
|
211
|
+
readonly: boolean | undefined;
|
|
212
|
+
loading: boolean;
|
|
213
|
+
query: string;
|
|
214
|
+
clear: () => void;
|
|
215
|
+
open: () => Promise<void>;
|
|
216
|
+
close: () => Promise<void>;
|
|
217
|
+
toggle: () => Promise<void>;
|
|
218
|
+
}) => any;
|
|
219
|
+
loading?: (props: {
|
|
220
|
+
query: string;
|
|
221
|
+
}) => any;
|
|
222
|
+
'no-data'?: (props: {
|
|
223
|
+
query: string;
|
|
224
|
+
focus: () => void;
|
|
225
|
+
}) => any;
|
|
226
|
+
option?: (props: {
|
|
227
|
+
disabled: boolean;
|
|
228
|
+
focused: boolean;
|
|
229
|
+
index: number;
|
|
230
|
+
item: Item;
|
|
231
|
+
loading: boolean;
|
|
232
|
+
selected: boolean;
|
|
233
|
+
text: string;
|
|
234
|
+
value: any;
|
|
235
|
+
}) => any;
|
|
236
|
+
group?: (props: {
|
|
237
|
+
text: string;
|
|
238
|
+
item: Item;
|
|
239
|
+
index: number;
|
|
240
|
+
length: number;
|
|
241
|
+
disabled: boolean;
|
|
242
|
+
}) => any;
|
|
243
|
+
'options:append'?: (props: {
|
|
244
|
+
focus: () => void;
|
|
245
|
+
}) => any;
|
|
246
|
+
'options:append:outer'?: (props: {
|
|
247
|
+
focus: () => void;
|
|
248
|
+
}) => any;
|
|
249
|
+
'options:prepend'?: (props: {
|
|
250
|
+
focus: () => void;
|
|
251
|
+
}) => any;
|
|
252
|
+
'options:prepend:outer'?: (props: {
|
|
253
|
+
focus: () => void;
|
|
254
|
+
}) => any;
|
|
255
|
+
};
|
|
256
|
+
declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
257
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
258
|
+
readonly onInput?: ((event: Event) => any) | undefined;
|
|
259
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
260
|
+
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
261
|
+
readonly onChange?: ((event: Event) => any) | undefined;
|
|
262
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
263
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
264
|
+
readonly onInactive?: (() => any) | undefined;
|
|
265
|
+
readonly "onOption:add"?: ((text: string) => any) | undefined;
|
|
266
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClick" | "onUpdate:modelValue" | "onInactive" | "onOption:add"> & BbSelectPopoverProps<Item> & Partial<{}>> & import('vue').PublicProps;
|
|
267
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
268
|
+
attrs: any;
|
|
269
|
+
slots: Readonly<BbSelectPopoverSlots<Item>> & BbSelectPopoverSlots<Item>;
|
|
270
|
+
emit: BbSelectPopoverEvents;
|
|
271
|
+
}>) => import('vue').VNode & {
|
|
272
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
273
|
+
};
|
|
274
|
+
export default _default;
|
|
275
|
+
type __VLS_PrettifyLocal<T> = {
|
|
276
|
+
[K in keyof T]: T[K];
|
|
277
|
+
} & {};
|
|
@@ -3,7 +3,8 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly "onOption:unselected"?: ((option: Option) => any) | undefined;
|
|
5
5
|
readonly "onOption:selected"?: ((option: Option) => any) | undefined;
|
|
6
|
-
|
|
6
|
+
readonly "onFocused:change"?: ((id: string | undefined) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onOption:unselected" | "onOption:selected" | "onFocused:change"> & {
|
|
7
8
|
/**
|
|
8
9
|
* Sets the listbox in a compact state.
|
|
9
10
|
*/
|
|
@@ -28,6 +29,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
28
29
|
confirmOption: () => void;
|
|
29
30
|
focusByHash: (hash: Option["valueHash"]) => void;
|
|
30
31
|
getHighlighted: () => Option | undefined;
|
|
32
|
+
getActiveDescendantId: () => string | undefined;
|
|
31
33
|
}>): void;
|
|
32
34
|
attrs: any;
|
|
33
35
|
slots: Partial<Record<"loading", (_: {}) => any>> & Partial<Record<"no-data", (_: {}) => any>> & {
|
|
@@ -46,6 +48,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
46
48
|
emit: {
|
|
47
49
|
(e: "option:selected", option: Option): void;
|
|
48
50
|
(e: "option:unselected", option: Option): void;
|
|
51
|
+
(e: "focused:change", id: string | undefined): void;
|
|
49
52
|
};
|
|
50
53
|
}>) => import('vue').VNode & {
|
|
51
54
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -3,7 +3,8 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly "onOption:unselected"?: ((option: Option) => any) | undefined;
|
|
5
5
|
readonly "onOption:selected"?: ((option: Option) => any) | undefined;
|
|
6
|
-
|
|
6
|
+
readonly "onFocused:change"?: ((id: string | undefined) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onOption:unselected" | "onOption:selected" | "onFocused:change"> & {
|
|
7
8
|
/**
|
|
8
9
|
* Sets the listbox in a compact state.
|
|
9
10
|
*/
|
|
@@ -32,6 +33,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
32
33
|
confirmOption: () => void;
|
|
33
34
|
focusByHash: (hash: Option["valueHash"]) => void;
|
|
34
35
|
getHighlighted: () => Option | undefined;
|
|
36
|
+
getActiveDescendantId: () => string | undefined;
|
|
35
37
|
}>): void;
|
|
36
38
|
attrs: any;
|
|
37
39
|
slots: Partial<Record<"loading", (_: {}) => any>> & Partial<Record<"no-data", (_: {}) => any>> & {
|
|
@@ -57,6 +59,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
57
59
|
emit: {
|
|
58
60
|
(e: "option:selected", option: Option): void;
|
|
59
61
|
(e: "option:unselected", option: Option): void;
|
|
62
|
+
(e: "focused:change", id: string | undefined): void;
|
|
60
63
|
};
|
|
61
64
|
}>) => import('vue').VNode & {
|
|
62
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -10,12 +10,14 @@ export type ListBoxExposed = {
|
|
|
10
10
|
confirmOption: () => void;
|
|
11
11
|
focusByHash: (hash: Option['valueHash']) => void;
|
|
12
12
|
getHighlighted: () => Option | undefined;
|
|
13
|
+
getActiveDescendantId: () => string | undefined;
|
|
13
14
|
};
|
|
14
15
|
declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
16
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
16
17
|
readonly "onOption:unselected"?: ((option: Option) => any) | undefined;
|
|
17
18
|
readonly "onOption:selected"?: ((option: Option) => any) | undefined;
|
|
18
|
-
|
|
19
|
+
readonly "onFocused:change"?: ((id: string | undefined) => any) | undefined;
|
|
20
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onOption:unselected" | "onOption:selected" | "onFocused:change"> & {
|
|
19
21
|
compact?: boolean;
|
|
20
22
|
/**
|
|
21
23
|
* Flat option list. Used when `groups` is not provided.
|
|
@@ -48,6 +50,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
48
50
|
confirmOption: () => void | undefined;
|
|
49
51
|
focusByHash: (hash: Option["valueHash"]) => void | undefined;
|
|
50
52
|
getHighlighted: () => Option | undefined;
|
|
53
|
+
getActiveDescendantId: () => string | undefined;
|
|
51
54
|
}>): void;
|
|
52
55
|
attrs: any;
|
|
53
56
|
slots: {
|
|
@@ -88,6 +91,7 @@ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
88
91
|
emit: {
|
|
89
92
|
(e: "option:selected", option: Option): void;
|
|
90
93
|
(e: "option:unselected", option: Option): void;
|
|
94
|
+
(e: "focused:change", id: string | undefined): void;
|
|
91
95
|
};
|
|
92
96
|
}>) => import('vue').VNode & {
|
|
93
97
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
1
2
|
type Options = {
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Called to load items. Receives `isPrefill: boolean` — true when triggered
|
|
5
|
+
* as a prefill (show existing selection on mount), false for a user search.
|
|
6
|
+
*/
|
|
7
|
+
fn: (isPrefill: boolean) => any;
|
|
8
|
+
/**
|
|
9
|
+
* External trigger used to unlock preload.
|
|
10
|
+
* Can be a boolean or reactive getter.
|
|
11
|
+
*/
|
|
12
|
+
trigger?: MaybeRefOrGetter<boolean>;
|
|
4
13
|
multiple?: boolean;
|
|
5
14
|
currentValue?: any;
|
|
6
15
|
};
|
|
7
|
-
export declare const usePrefill: ({ fn,
|
|
16
|
+
export declare const usePrefill: ({ fn, trigger, multiple, currentValue, }: Options) => {
|
|
8
17
|
isPrefilling: import('vue').Ref<boolean, boolean>;
|
|
9
18
|
hasPrefilled: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
canLoad: import('vue').ComputedRef<boolean>;
|
|
10
20
|
prefill: () => Promise<void>;
|
|
11
21
|
};
|
|
12
22
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ export type { BbRatingProps, BbRatingEvents, } from './components/BbRating/BbRat
|
|
|
133
133
|
export type { BbRatioProps } from './components/BbRatio/BbRatio.vue';
|
|
134
134
|
export type { BbSelectProps, BbSelectEvents, BbSelectSlots, } from './components/BbSelect/BbSelect.vue';
|
|
135
135
|
export type { BbSliderProps, BbSliderEvents, } from './components/BbSlider/BbSlider.vue';
|
|
136
|
+
export type { BbSelectPopoverProps, BbSelectPopoverEvents, BbSelectPopoverSlots, } from './components/BbSelectPopover/BbSelectPopover.vue';
|
|
136
137
|
export type { BbSmoothHeightProps, BbSmoothHeightSlots, } from './components/BbSmoothHeight/BbSmoothHeight.vue';
|
|
137
138
|
export type { BbSpinnerProps, Size as BbSpinnerSizes, } from './components/BbSpinner/BbSpinner.vue';
|
|
138
139
|
export type { BbSwitchGroupEvents, BbSwitchGroupProps, } from './components/BbSwitchGroup/BbSwitchGroup.vue';
|
package/dist/index109.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as D, computed as
|
|
2
|
-
import { useItemValue as G } from "./
|
|
3
|
-
import { isNil as k } from "./
|
|
4
|
-
import { indexBy as U } from "./
|
|
5
|
-
import { hash as p } from "./
|
|
6
|
-
import { useItemsGetter as W } from "./
|
|
7
|
-
import { usePrefill as q } from "./
|
|
8
|
-
import { useIndexById as z } from "./
|
|
9
|
-
import { useBaseOptions as J } from "./
|
|
10
|
-
import { useHashedWatcher as K } from "./
|
|
1
|
+
import { defineComponent as D, computed as b, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as V, openBlock as g, Fragment as B, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
|
|
2
|
+
import { useItemValue as G } from "./index277.js";
|
|
3
|
+
import { isNil as k } from "./index254.js";
|
|
4
|
+
import { indexBy as U } from "./index295.js";
|
|
5
|
+
import { hash as p } from "./index229.js";
|
|
6
|
+
import { useItemsGetter as W } from "./index262.js";
|
|
7
|
+
import { usePrefill as q } from "./index267.js";
|
|
8
|
+
import { useIndexById as z } from "./index263.js";
|
|
9
|
+
import { useBaseOptions as J } from "./index264.js";
|
|
10
|
+
import { useHashedWatcher as K } from "./index266.js";
|
|
11
11
|
const oe = /* @__PURE__ */ D({
|
|
12
12
|
__name: "BbRows",
|
|
13
13
|
props: {
|
|
@@ -27,22 +27,20 @@ const oe = /* @__PURE__ */ D({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:modelValue", "update:unselectedItems"],
|
|
29
29
|
setup(H, { emit: x }) {
|
|
30
|
-
const t = H, u = x, { getItemValue: A } = G(), f =
|
|
30
|
+
const t = H, u = x, { getItemValue: A } = G(), f = b(() => !!(t.loading || w.value)), {
|
|
31
31
|
getter: v,
|
|
32
32
|
items: y,
|
|
33
33
|
loading: w
|
|
34
34
|
} = W({
|
|
35
35
|
items: r(t, "items")
|
|
36
36
|
}), { hasPrefilled: O } = q({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
multiple: t.multiple,
|
|
40
|
-
fn: async ({ prefill: e }) => {
|
|
37
|
+
trigger: !0,
|
|
38
|
+
fn: async (e) => {
|
|
41
39
|
await v(e, t.modelValue);
|
|
42
40
|
}
|
|
43
41
|
}), { data: h } = z({
|
|
44
42
|
items: r(t, "modelValue")
|
|
45
|
-
}), { options:
|
|
43
|
+
}), { options: F } = J({
|
|
46
44
|
disabled: r(t, "disabled"),
|
|
47
45
|
items: y,
|
|
48
46
|
itemText: void 0,
|
|
@@ -50,9 +48,9 @@ const oe = /* @__PURE__ */ D({
|
|
|
50
48
|
max: t.max,
|
|
51
49
|
selectable: !0,
|
|
52
50
|
selectedIndexedByHash: h
|
|
53
|
-
}),
|
|
51
|
+
}), N = async (e) => {
|
|
54
52
|
t.multiple ? u("update:modelValue", t.modelValue.concat(e.value)) : u("update:modelValue", e.value);
|
|
55
|
-
},
|
|
53
|
+
}, S = async (e) => {
|
|
56
54
|
if (t.multiple) {
|
|
57
55
|
const l = { ...h.value };
|
|
58
56
|
delete l[e.valueHash], u("update:modelValue", Object.values(l));
|
|
@@ -68,7 +66,7 @@ const oe = /* @__PURE__ */ D({
|
|
|
68
66
|
debounce: t.depsDebounceTime
|
|
69
67
|
}
|
|
70
68
|
);
|
|
71
|
-
const I =
|
|
69
|
+
const I = b(() => F.value.map((e) => {
|
|
72
70
|
let l = !t.selectable;
|
|
73
71
|
typeof t.selectable == "function" && (l = !t.selectable(e.item)), l = l || !!e.disabled;
|
|
74
72
|
const a = U(
|
|
@@ -94,12 +92,12 @@ const oe = /* @__PURE__ */ D({
|
|
|
94
92
|
disabled: l
|
|
95
93
|
};
|
|
96
94
|
})), T = (e) => {
|
|
97
|
-
d.value ||
|
|
95
|
+
d.value || N(e), o.delete(e.valueHash), u(
|
|
98
96
|
"update:unselectedItems",
|
|
99
97
|
t.unselectedItems.filter((l) => p(l) !== p(e.value))
|
|
100
98
|
);
|
|
101
99
|
}, _ = (e) => {
|
|
102
|
-
o.add(e.valueHash), u("update:unselectedItems", [...t.unselectedItems, e.value]),
|
|
100
|
+
o.add(e.valueHash), u("update:unselectedItems", [...t.unselectedItems, e.value]), S(e);
|
|
103
101
|
}, o = L(/* @__PURE__ */ new Set());
|
|
104
102
|
m(
|
|
105
103
|
() => t.unselectedItems,
|
|
@@ -117,12 +115,12 @@ const oe = /* @__PURE__ */ D({
|
|
|
117
115
|
}
|
|
118
116
|
), m(d, () => {
|
|
119
117
|
o.clear(), u("update:unselectedItems", []), u("update:modelValue", []);
|
|
120
|
-
}), (e, l) => (
|
|
118
|
+
}), (e, l) => (g(), V(B, null, [
|
|
121
119
|
f.value ? i(e.$slots, "loading", {
|
|
122
120
|
key: 0,
|
|
123
121
|
items: R(y)
|
|
124
122
|
}) : P("", !0),
|
|
125
|
-
I.value.length ? (
|
|
123
|
+
I.value.length ? (g(!0), V(B, { key: 2 }, j(I.value, (a, c) => i(e.$slots, "default", {
|
|
126
124
|
key: a.valueHash + d.value,
|
|
127
125
|
checked: a.selected,
|
|
128
126
|
columns: a.columns,
|
package/dist/index110.js
CHANGED
|
@@ -56,8 +56,8 @@ const F = /* @__PURE__ */ f({
|
|
|
56
56
|
updateOnAnimationFrame: { type: Boolean }
|
|
57
57
|
},
|
|
58
58
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
|
59
|
-
setup(
|
|
60
|
-
const r =
|
|
59
|
+
setup(d, { emit: u }) {
|
|
60
|
+
const r = d, t = u, s = y(!1), m = g(() => r.persistentHint || s.value), h = {
|
|
61
61
|
onBlur: (e) => t("blur", e),
|
|
62
62
|
onChange: (e) => t("change", e),
|
|
63
63
|
onClick: (e) => t("click", e),
|
|
@@ -85,14 +85,14 @@ const F = /* @__PURE__ */ f({
|
|
|
85
85
|
"model-value": e.modelValue,
|
|
86
86
|
name: e.name,
|
|
87
87
|
reverse: e.reverse,
|
|
88
|
-
"show-hint":
|
|
88
|
+
"show-hint": m.value
|
|
89
89
|
}, {
|
|
90
|
-
label: a((
|
|
91
|
-
n(e.$slots, "label", l(i(
|
|
90
|
+
label: a((p) => [
|
|
91
|
+
n(e.$slots, "label", l(i(p)))
|
|
92
92
|
]),
|
|
93
|
-
input: a(({ id:
|
|
93
|
+
input: a(({ id: p, hasErrors: c, ariaDescribedby: b }) => [
|
|
94
94
|
$(V, w({
|
|
95
|
-
id:
|
|
95
|
+
id: p,
|
|
96
96
|
"allow-writing": e.allowWriting,
|
|
97
97
|
"append:icon": r["append:icon"],
|
|
98
98
|
"aria-describedby": b,
|
|
@@ -161,9 +161,15 @@ const F = /* @__PURE__ */ f({
|
|
|
161
161
|
"options:append": a((o) => [
|
|
162
162
|
n(e.$slots, "options:append", l(i(o)))
|
|
163
163
|
]),
|
|
164
|
+
"options:append:outer": a((o) => [
|
|
165
|
+
n(e.$slots, "options:append:outer", l(i(o)))
|
|
166
|
+
]),
|
|
164
167
|
"options:prepend": a((o) => [
|
|
165
168
|
n(e.$slots, "options:prepend", l(i(o)))
|
|
166
169
|
]),
|
|
170
|
+
"options:prepend:outer": a((o) => [
|
|
171
|
+
n(e.$slots, "options:prepend:outer", l(i(o)))
|
|
172
|
+
]),
|
|
167
173
|
"prepend-outer": a((o) => [
|
|
168
174
|
n(e.$slots, "prepend-outer", l(i(o)))
|
|
169
175
|
]),
|
package/dist/index116.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
|
|
2
|
-
import { isCssColor as m } from "./
|
|
2
|
+
import { isCssColor as m } from "./index243.js";
|
|
3
3
|
const d = /* @__PURE__ */ p({
|
|
4
4
|
__name: "BbSpinner",
|
|
5
5
|
props: {
|
package/dist/index122.js
CHANGED
|
@@ -8,12 +8,12 @@ import Ce from "./index14.js";
|
|
|
8
8
|
import Be from "./index114.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { useFrameworkDetection as Te } from "./index144.js";
|
|
11
|
-
import { merge as qe } from "./
|
|
12
|
-
import { isNil as Le } from "./
|
|
11
|
+
import { merge as qe } from "./index253.js";
|
|
12
|
+
import { isNil as Le } from "./index254.js";
|
|
13
13
|
import { useQuery as Fe } from "./index11.js";
|
|
14
|
-
import { hash as Ee } from "./
|
|
14
|
+
import { hash as Ee } from "./index229.js";
|
|
15
15
|
import { isNotNil as Ne } from "./index147.js";
|
|
16
|
-
import { useLogger as Pe } from "./
|
|
16
|
+
import { useLogger as Pe } from "./index232.js";
|
|
17
17
|
const Ve = ["id"], Re = { class: "bb-tab__label-boundary" }, Ke = { class: "bb-tab__label" }, De = { class: "bb-tab__panes-container" }, We = ["id", "aria-labelledby", "tabindex"], rt = /* @__PURE__ */ fe({
|
|
18
18
|
__name: "BbTab",
|
|
19
19
|
props: {
|
package/dist/index124.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as he, mergeModels as X, ref as ke, computed as u, toRef as O, useModel as Y, watch as M, reactive as ge, createBlock as Z, openBlock as s, resolveDynamicComponent as xe, normalizeClass as i, withCtx as we, createElementBlock as o, createCommentVNode as p, createElementVNode as n, toDisplayString as m, renderSlot as c, unref as v, Fragment as k, renderList as x, normalizeStyle as H, createVNode as ee, createTextVNode as Ce, mergeProps as Ie } from "vue";
|
|
2
2
|
import { clamp as Ve } from "./index220.js";
|
|
3
|
-
import { hash as T } from "./
|
|
4
|
-
import { isNil as w } from "./
|
|
5
|
-
import { when as $e } from "./
|
|
3
|
+
import { hash as T } from "./index229.js";
|
|
4
|
+
import { isNil as w } from "./index254.js";
|
|
5
|
+
import { when as $e } from "./index276.js";
|
|
6
6
|
import { useId as Be } from "./index8.js";
|
|
7
|
-
import { useItemValue as He } from "./
|
|
8
|
-
import { useItemsGetter as Te } from "./
|
|
9
|
-
import { usePrefill as Ae } from "./
|
|
10
|
-
import { useIndexById as le } from "./
|
|
11
|
-
import { useBaseOptions as Ne } from "./
|
|
12
|
-
import { useHashedWatcher as Le } from "./
|
|
13
|
-
import { useLocale as De } from "./
|
|
7
|
+
import { useItemValue as He } from "./index277.js";
|
|
8
|
+
import { useItemsGetter as Te } from "./index262.js";
|
|
9
|
+
import { usePrefill as Ae } from "./index267.js";
|
|
10
|
+
import { useIndexById as le } from "./index263.js";
|
|
11
|
+
import { useBaseOptions as Ne } from "./index264.js";
|
|
12
|
+
import { useHashedWatcher as Le } from "./index266.js";
|
|
13
|
+
import { useLocale as De } from "./index238.js";
|
|
14
14
|
import ae from "./index18.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import Ee from "./index32.js";
|
|
17
17
|
/* empty css */
|
|
18
|
-
import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./
|
|
19
|
-
import { useLogger as Me } from "./
|
|
18
|
+
import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index278.js";
|
|
19
|
+
import { useLogger as Me } from "./index232.js";
|
|
20
20
|
const Fe = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "sr-only"
|
|
@@ -122,10 +122,8 @@ const Fe = {
|
|
|
122
122
|
} = Te({
|
|
123
123
|
items: O(a, "items")
|
|
124
124
|
}), { hasPrefilled: be } = Ae({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
multiple: a.multiple,
|
|
128
|
-
fn: async ({ prefill: e }) => {
|
|
125
|
+
trigger: !0,
|
|
126
|
+
fn: async (e) => {
|
|
129
127
|
await K(e, a.modelValue);
|
|
130
128
|
}
|
|
131
129
|
}), { data: j } = le({
|