@bwui/vue 0.1.14 → 0.1.16
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/README.md +3 -0
- package/dist/chrome.d.ts +183 -0
- package/dist/chrome.js +287 -0
- package/dist/combobox.d.ts +223 -8
- package/dist/combobox.js +571 -85
- package/dist/date-picker.d.ts +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -1
- package/dist/pages.js +10 -4
- package/dist/primitives.d.ts +174 -15
- package/dist/primitives.js +178 -15
- package/package.json +6 -4
- package/src/chrome.ts +385 -0
- package/src/combobox.ts +625 -61
- package/src/index.ts +33 -1
- package/src/pages.ts +10 -4
- package/src/primitives.ts +278 -32
package/dist/combobox.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
+
export type ComboboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
3
|
export type ComboboxOption = {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
5
6
|
disabled?: boolean;
|
|
7
|
+
/** Options sharing a group label, adjacent in `options`, render under one heading (CMB-017). */
|
|
8
|
+
group?: string;
|
|
6
9
|
};
|
|
10
|
+
declare function defaultResultsLabel(count: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Combobox (docs/components/combobox.md, GAP-CMB-18). Mirrors the React Early
|
|
13
|
+
* surface: single and multiple, size, groups, clear, readonly, invalid, client
|
|
14
|
+
* and server filter hooks, allow-create. The floor blank option uses
|
|
15
|
+
* `blankLabel` (falling back to `placeholder`); no hard-coded English
|
|
16
|
+
* "Choose" (CMB-072, CB-14). English string props remain overridable defaults,
|
|
17
|
+
* matching React.
|
|
18
|
+
*/
|
|
7
19
|
export declare const Combobox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
20
|
id: StringConstructor;
|
|
9
21
|
name: StringConstructor;
|
|
@@ -12,22 +24,112 @@ export declare const Combobox: import("vue").DefineComponent<import("vue").Extra
|
|
|
12
24
|
required: true;
|
|
13
25
|
};
|
|
14
26
|
modelValue: {
|
|
15
|
-
type:
|
|
16
|
-
default:
|
|
27
|
+
type: PropType<string | string[]>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
defaultValue: {
|
|
31
|
+
type: PropType<string | string[]>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
multiple: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
17
37
|
};
|
|
18
38
|
placeholder: {
|
|
19
39
|
type: StringConstructor;
|
|
20
40
|
default: string;
|
|
21
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Text of the blank option on the hidden floor select (CMB-072). Never shown
|
|
44
|
+
* to a user; defaults to `placeholder` so no English originates here. Single
|
|
45
|
+
* mode only.
|
|
46
|
+
*/
|
|
47
|
+
blankLabel: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
22
51
|
disabled: BooleanConstructor;
|
|
52
|
+
readOnly: BooleanConstructor;
|
|
23
53
|
required: BooleanConstructor;
|
|
54
|
+
invalid: BooleanConstructor;
|
|
55
|
+
size: {
|
|
56
|
+
type: PropType<ComboboxSize>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
filterMode: {
|
|
60
|
+
type: PropType<"client" | "server">;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
debounceMs: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
loading: BooleanConstructor;
|
|
68
|
+
error: BooleanConstructor;
|
|
69
|
+
allowCreate: BooleanConstructor;
|
|
24
70
|
emptyLabel: {
|
|
25
71
|
type: StringConstructor;
|
|
26
72
|
default: string;
|
|
27
73
|
};
|
|
74
|
+
errorLabel: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
createLabel: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
clearLabel: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
clearAllLabel: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
removeLabel: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
loadingLabel: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
resultsLabel: {
|
|
99
|
+
type: PropType<(count: number) => string>;
|
|
100
|
+
default: typeof defaultResultsLabel;
|
|
101
|
+
};
|
|
102
|
+
addedLabel: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
removedLabel: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
clearedLabel: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
ariaLabel: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
ariaLabelledby: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
ariaDescribedby: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: undefined;
|
|
125
|
+
};
|
|
28
126
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
127
|
[key: string]: any;
|
|
30
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
128
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
129
|
+
'update:modelValue': (_value: string | string[]) => true;
|
|
130
|
+
queryChange: (_query: string) => true;
|
|
131
|
+
create: (_query: string) => true;
|
|
132
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
133
|
id: StringConstructor;
|
|
32
134
|
name: StringConstructor;
|
|
33
135
|
options: {
|
|
@@ -35,25 +137,138 @@ export declare const Combobox: import("vue").DefineComponent<import("vue").Extra
|
|
|
35
137
|
required: true;
|
|
36
138
|
};
|
|
37
139
|
modelValue: {
|
|
38
|
-
type:
|
|
39
|
-
default:
|
|
140
|
+
type: PropType<string | string[]>;
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
defaultValue: {
|
|
144
|
+
type: PropType<string | string[]>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
multiple: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
40
150
|
};
|
|
41
151
|
placeholder: {
|
|
42
152
|
type: StringConstructor;
|
|
43
153
|
default: string;
|
|
44
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* Text of the blank option on the hidden floor select (CMB-072). Never shown
|
|
157
|
+
* to a user; defaults to `placeholder` so no English originates here. Single
|
|
158
|
+
* mode only.
|
|
159
|
+
*/
|
|
160
|
+
blankLabel: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: undefined;
|
|
163
|
+
};
|
|
45
164
|
disabled: BooleanConstructor;
|
|
165
|
+
readOnly: BooleanConstructor;
|
|
46
166
|
required: BooleanConstructor;
|
|
167
|
+
invalid: BooleanConstructor;
|
|
168
|
+
size: {
|
|
169
|
+
type: PropType<ComboboxSize>;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
filterMode: {
|
|
173
|
+
type: PropType<"client" | "server">;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
debounceMs: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
loading: BooleanConstructor;
|
|
181
|
+
error: BooleanConstructor;
|
|
182
|
+
allowCreate: BooleanConstructor;
|
|
47
183
|
emptyLabel: {
|
|
48
184
|
type: StringConstructor;
|
|
49
185
|
default: string;
|
|
50
186
|
};
|
|
187
|
+
errorLabel: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
191
|
+
createLabel: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
clearLabel: {
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
clearAllLabel: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
removeLabel: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
loadingLabel: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
resultsLabel: {
|
|
212
|
+
type: PropType<(count: number) => string>;
|
|
213
|
+
default: typeof defaultResultsLabel;
|
|
214
|
+
};
|
|
215
|
+
addedLabel: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
removedLabel: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
default: string;
|
|
222
|
+
};
|
|
223
|
+
clearedLabel: {
|
|
224
|
+
type: StringConstructor;
|
|
225
|
+
default: string;
|
|
226
|
+
};
|
|
227
|
+
ariaLabel: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
default: undefined;
|
|
230
|
+
};
|
|
231
|
+
ariaLabelledby: {
|
|
232
|
+
type: StringConstructor;
|
|
233
|
+
default: undefined;
|
|
234
|
+
};
|
|
235
|
+
ariaDescribedby: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
default: undefined;
|
|
238
|
+
};
|
|
51
239
|
}>> & Readonly<{
|
|
52
|
-
|
|
240
|
+
onCreate?: ((_query: string) => any) | undefined;
|
|
241
|
+
"onUpdate:modelValue"?: ((_value: string | string[]) => any) | undefined;
|
|
242
|
+
onQueryChange?: ((_query: string) => any) | undefined;
|
|
53
243
|
}>, {
|
|
54
|
-
disabled: boolean;
|
|
55
244
|
required: boolean;
|
|
56
|
-
|
|
245
|
+
error: boolean;
|
|
246
|
+
invalid: boolean;
|
|
247
|
+
size: ComboboxSize;
|
|
248
|
+
ariaLabel: string;
|
|
249
|
+
disabled: boolean;
|
|
250
|
+
readOnly: boolean;
|
|
251
|
+
loading: boolean;
|
|
252
|
+
allowCreate: boolean;
|
|
253
|
+
modelValue: string | string[];
|
|
254
|
+
defaultValue: string | string[];
|
|
255
|
+
multiple: boolean;
|
|
57
256
|
placeholder: string;
|
|
257
|
+
blankLabel: string;
|
|
258
|
+
filterMode: "client" | "server";
|
|
259
|
+
debounceMs: number;
|
|
58
260
|
emptyLabel: string;
|
|
261
|
+
errorLabel: string;
|
|
262
|
+
createLabel: string;
|
|
263
|
+
clearLabel: string;
|
|
264
|
+
clearAllLabel: string;
|
|
265
|
+
removeLabel: string;
|
|
266
|
+
loadingLabel: string;
|
|
267
|
+
resultsLabel: (count: number) => string;
|
|
268
|
+
addedLabel: string;
|
|
269
|
+
removedLabel: string;
|
|
270
|
+
clearedLabel: string;
|
|
271
|
+
ariaLabelledby: string;
|
|
272
|
+
ariaDescribedby: string;
|
|
59
273
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
274
|
+
export {};
|