@eldrajs/ui 0.3.8 → 0.3.10
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/CHANGELOG.md +5 -0
- package/LICENSE-country-flag-icons +1 -1
- package/README.md +93 -4
- package/dist/CountryFlag-DOa8lOHp.js +71 -0
- package/dist/{PhoneInput-CYGpERg4.js → PhoneInput-BVH32MEg.js} +8 -62
- package/dist/{VariantPicker-D_Gg80So.js → VariantPicker-CKDdeFmV.js} +2962 -2531
- package/dist/componentNames.d.ts +1 -1
- package/dist/components/autocomplete/Autocomplete.vue.d.ts +216 -0
- package/dist/components/autocomplete/types.d.ts +50 -0
- package/dist/components/button/Button.vue.d.ts +4 -4
- package/dist/components/card/ContentCard.vue.d.ts +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.vue.d.ts +3 -3
- package/dist/components/chip/Chip.vue.d.ts +3 -1
- package/dist/components/container/Container.vue.d.ts +1 -1
- package/dist/components/dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/drawer/Drawer.vue.d.ts +5 -3
- package/dist/components/field-wrapper/FieldWrapper.vue.d.ts +1 -1
- package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
- package/dist/components/filter-panel/FilterPanel.vue.d.ts +6 -4
- package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +3 -1
- package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
- package/dist/components/form-layout/FormLayout.vue.d.ts +2 -2
- package/dist/components/image/Image.vue.d.ts +3 -3
- package/dist/components/input/Input.vue.d.ts +7 -7
- package/dist/components/lightbox/Lightbox.vue.d.ts +3 -1
- package/dist/components/nav-menu/NavMenu.vue.d.ts +5 -3
- package/dist/components/pagination/Pagination.vue.d.ts +4 -2
- package/dist/components/popover/Popover.vue.d.ts +3 -3
- package/dist/components/quantity-stepper/QuantityStepper.vue.d.ts +2 -2
- package/dist/components/radio/Radio.vue.d.ts +1 -1
- package/dist/components/range-slider/RangeSlider.vue.d.ts +3 -1
- package/dist/components/search-bar/SearchBar.vue.d.ts +5 -3
- package/dist/components/search-bar/SearchResultsPanel.vue.d.ts +1 -1
- package/dist/components/search-modal/SearchModal.vue.d.ts +4 -2
- package/dist/components/select/MultiSelect.vue.d.ts +13 -10
- package/dist/components/select/Select.vue.d.ts +13 -11
- package/dist/components/select/SelectPanel.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +7 -1
- package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/switch/Switch.vue.d.ts +1 -1
- package/dist/components/textarea/Textarea.vue.d.ts +3 -3
- package/dist/components/toast/Toast.vue.d.ts +3 -1
- package/dist/components/toast/Toaster.vue.d.ts +2 -0
- package/dist/components/unit-input/UnitInput.vue.d.ts +6 -6
- package/dist/{phone/PhoneFlag.vue.d.ts → flag/CountryFlag.vue.d.ts} +3 -0
- package/dist/flag/flags.d.ts +8 -0
- package/dist/flag/index.d.ts +9 -0
- package/dist/flag.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -4
- package/dist/messages/en-US.d.ts +4 -0
- package/dist/messages/is-IS.js +2 -0
- package/dist/phone/PhoneInput.vue.d.ts +8 -6
- package/dist/phone/index.d.ts +1 -1
- package/dist/phone/vee-validate.js +4 -4
- package/dist/phone.js +3 -1
- package/dist/resolver.d.ts +8 -2
- package/dist/resolver.js +14 -2
- package/dist/useEldraScope-BDbGzt7R.js +32 -0
- package/dist/{useFieldControl-D_b9SC9s.js → useFieldControl-CGH6GEWM.js} +2 -2
- package/dist/{useMessages-DQQPh1P_.js → useMessages-CYnyGVRG.js} +4 -0
- package/dist/{usePopover-4CQR2hB5.js → useOptionList-CPHHDvPF.js} +1477 -1506
- package/dist/vee-validate/FieldAutocomplete.vue.d.ts +20 -0
- package/dist/vee-validate/Form.vue.d.ts +2 -2
- package/dist/vee-validate/index.d.ts +3 -2
- package/dist/vee-validate/types.d.ts +4 -1
- package/dist/vee-validate/useFieldControl.d.ts +1 -1
- package/dist/vee-validate.js +73 -5
- package/dist/vue-i18n.js +1 -1
- package/package.json +6 -2
- package/dist/phone/flags.d.ts +0 -8
|
@@ -30,19 +30,19 @@ declare const __VLS_base: import('vue').DefineComponent<InputProps, {
|
|
|
30
30
|
modelValue: string;
|
|
31
31
|
classes: Partial<Record<import('./types.js').InputPart, string>>;
|
|
32
32
|
required: boolean;
|
|
33
|
+
leadingIcon: import('../../index.js').IconComponent;
|
|
34
|
+
id: string;
|
|
33
35
|
placeholder: string;
|
|
36
|
+
autocomplete: string;
|
|
37
|
+
inputmode: string | false;
|
|
38
|
+
min: number;
|
|
34
39
|
max: number;
|
|
35
|
-
id: string;
|
|
36
40
|
step: number;
|
|
37
|
-
|
|
38
|
-
disabled: boolean;
|
|
41
|
+
clearable: boolean;
|
|
39
42
|
invalid: boolean;
|
|
40
|
-
inputmode: string | false;
|
|
41
43
|
describedBy: string;
|
|
42
|
-
min: number;
|
|
43
|
-
clearable: boolean;
|
|
44
44
|
readonly: boolean;
|
|
45
|
-
|
|
45
|
+
disabled: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
48
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,7 +11,6 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
|
|
|
11
11
|
}>, {
|
|
12
12
|
modelValue: boolean;
|
|
13
13
|
classes: Partial<Record<import('./types.js').LightboxPart, string>>;
|
|
14
|
-
index: number;
|
|
15
14
|
messages: Partial<{
|
|
16
15
|
clear: string;
|
|
17
16
|
close: string;
|
|
@@ -37,6 +36,7 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
|
|
|
37
36
|
selectedCount: (n: number) => string;
|
|
38
37
|
noneSelected: string;
|
|
39
38
|
done: string;
|
|
39
|
+
selectAll: string;
|
|
40
40
|
decrease: string;
|
|
41
41
|
increase: string;
|
|
42
42
|
quantity: string;
|
|
@@ -163,6 +163,7 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
|
|
|
163
163
|
formPendingMessage: string;
|
|
164
164
|
stepCompleted: string;
|
|
165
165
|
stepNotStarted: string;
|
|
166
|
+
suggestions: string;
|
|
166
167
|
phoneCountry: (name: string, code: string) => string;
|
|
167
168
|
phoneCountryList: string;
|
|
168
169
|
phoneSearch: string;
|
|
@@ -172,6 +173,7 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
|
|
|
172
173
|
phoneInvalid: (country: string) => string;
|
|
173
174
|
phoneInvalidNumber: string;
|
|
174
175
|
}>;
|
|
176
|
+
index: number;
|
|
175
177
|
thumbnails: boolean;
|
|
176
178
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
177
179
|
declare const _default: typeof __VLS_export;
|
|
@@ -41,9 +41,6 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
|
|
|
41
41
|
}>, {
|
|
42
42
|
modelValue: number | null;
|
|
43
43
|
classes: Partial<Record<import('./types.js').NavMenuPart, string>>;
|
|
44
|
-
variant: NavMenuVariant;
|
|
45
|
-
linkAs: string | import('vue').Component;
|
|
46
|
-
ariaLabel: string;
|
|
47
44
|
messages: Partial<{
|
|
48
45
|
clear: string;
|
|
49
46
|
close: string;
|
|
@@ -69,6 +66,7 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
|
|
|
69
66
|
selectedCount: (n: number) => string;
|
|
70
67
|
noneSelected: string;
|
|
71
68
|
done: string;
|
|
69
|
+
selectAll: string;
|
|
72
70
|
decrease: string;
|
|
73
71
|
increase: string;
|
|
74
72
|
quantity: string;
|
|
@@ -195,6 +193,7 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
|
|
|
195
193
|
formPendingMessage: string;
|
|
196
194
|
stepCompleted: string;
|
|
197
195
|
stepNotStarted: string;
|
|
196
|
+
suggestions: string;
|
|
198
197
|
phoneCountry: (name: string, code: string) => string;
|
|
199
198
|
phoneCountryList: string;
|
|
200
199
|
phoneSearch: string;
|
|
@@ -204,6 +203,9 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
|
|
|
204
203
|
phoneInvalid: (country: string) => string;
|
|
205
204
|
phoneInvalidNumber: string;
|
|
206
205
|
}>;
|
|
206
|
+
variant: NavMenuVariant;
|
|
207
|
+
linkAs: string | import('vue').Component;
|
|
208
|
+
ariaLabel: string;
|
|
207
209
|
drawerOpen: boolean;
|
|
208
210
|
collapseBelow: NavMenuCollapse;
|
|
209
211
|
drawerSide: import('../../index.js').DrawerSide;
|
|
@@ -5,9 +5,7 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
|
|
|
5
5
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
classes: Partial<Record<import('./types.js').PaginationPart, string>>;
|
|
8
|
-
linkAs: string | import('vue').Component;
|
|
9
8
|
disabled: boolean;
|
|
10
|
-
ariaLabel: string;
|
|
11
9
|
messages: Partial<{
|
|
12
10
|
clear: string;
|
|
13
11
|
close: string;
|
|
@@ -33,6 +31,7 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
|
|
|
33
31
|
selectedCount: (n: number) => string;
|
|
34
32
|
noneSelected: string;
|
|
35
33
|
done: string;
|
|
34
|
+
selectAll: string;
|
|
36
35
|
decrease: string;
|
|
37
36
|
increase: string;
|
|
38
37
|
quantity: string;
|
|
@@ -159,6 +158,7 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
|
|
|
159
158
|
formPendingMessage: string;
|
|
160
159
|
stepCompleted: string;
|
|
161
160
|
stepNotStarted: string;
|
|
161
|
+
suggestions: string;
|
|
162
162
|
phoneCountry: (name: string, code: string) => string;
|
|
163
163
|
phoneCountryList: string;
|
|
164
164
|
phoneSearch: string;
|
|
@@ -168,6 +168,8 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
|
|
|
168
168
|
phoneInvalid: (country: string) => string;
|
|
169
169
|
phoneInvalidNumber: string;
|
|
170
170
|
}>;
|
|
171
|
+
linkAs: string | import('vue').Component;
|
|
172
|
+
ariaLabel: string;
|
|
171
173
|
compact: boolean;
|
|
172
174
|
siblings: number;
|
|
173
175
|
hrefForPage: (page: number) => string;
|
|
@@ -32,15 +32,15 @@ declare const __VLS_base: import('vue').DefineComponent<PopoverProps, {
|
|
|
32
32
|
modelValue: boolean;
|
|
33
33
|
classes: Partial<Record<import('./types.js').PopoverPart, string>>;
|
|
34
34
|
disabled: boolean;
|
|
35
|
-
ariaLabel: string;
|
|
36
|
-
closeOnEscape: boolean;
|
|
37
35
|
placement: import('../../index.js').FloatingPlacement;
|
|
38
36
|
teleport: boolean;
|
|
39
37
|
reference: import('@floating-ui/vue').ReferenceElement | null;
|
|
40
38
|
offset: number;
|
|
41
39
|
matchWidth: boolean | "exact";
|
|
40
|
+
ariaLabel: string;
|
|
41
|
+
closeOnEscape: boolean;
|
|
42
42
|
viewportPadding: number;
|
|
43
|
-
haspopup: "dialog" | "menu" | "true" | "
|
|
43
|
+
haspopup: "dialog" | "menu" | "true" | "listbox" | "grid" | "tree";
|
|
44
44
|
labelledByTrigger: boolean;
|
|
45
45
|
openOnArrowDown: boolean;
|
|
46
46
|
focusOnOpen: boolean;
|
|
@@ -15,11 +15,11 @@ declare const __VLS_export: import('vue').DefineComponent<QuantityStepperProps,
|
|
|
15
15
|
modelValue: number;
|
|
16
16
|
classes: Partial<Record<import('./types.js').QuantityStepperPart, string>>;
|
|
17
17
|
error: string;
|
|
18
|
-
max: number;
|
|
19
18
|
id: string;
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
20
21
|
disabled: boolean;
|
|
21
22
|
locale: string;
|
|
22
|
-
min: number;
|
|
23
23
|
itemName: string;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -19,8 +19,8 @@ declare const __VLS_base: import('vue').DefineComponent<RadioProps, {}, {}, {},
|
|
|
19
19
|
size: import('./types.js').RadioGroupSize;
|
|
20
20
|
modelValue: RadioValue;
|
|
21
21
|
classes: Partial<Record<import('./types.js').RadioPart, string>>;
|
|
22
|
-
disabled: boolean;
|
|
23
22
|
invalid: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
24
|
hint: string;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -25,6 +25,7 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
|
|
|
25
25
|
label: string;
|
|
26
26
|
modelValue: RangeSliderValue;
|
|
27
27
|
classes: Partial<Record<import('./types.js').RangeSliderPart, string>>;
|
|
28
|
+
min: number;
|
|
28
29
|
max: number;
|
|
29
30
|
step: number;
|
|
30
31
|
disabled: boolean;
|
|
@@ -53,6 +54,7 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
|
|
|
53
54
|
selectedCount: (n: number) => string;
|
|
54
55
|
noneSelected: string;
|
|
55
56
|
done: string;
|
|
57
|
+
selectAll: string;
|
|
56
58
|
decrease: string;
|
|
57
59
|
increase: string;
|
|
58
60
|
quantity: string;
|
|
@@ -179,6 +181,7 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
|
|
|
179
181
|
formPendingMessage: string;
|
|
180
182
|
stepCompleted: string;
|
|
181
183
|
stepNotStarted: string;
|
|
184
|
+
suggestions: string;
|
|
182
185
|
phoneCountry: (name: string, code: string) => string;
|
|
183
186
|
phoneCountryList: string;
|
|
184
187
|
phoneSearch: string;
|
|
@@ -188,7 +191,6 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
|
|
|
188
191
|
phoneInvalid: (country: string) => string;
|
|
189
192
|
phoneInvalidNumber: string;
|
|
190
193
|
}>;
|
|
191
|
-
min: number;
|
|
192
194
|
formatValue: (value: number, end?: RangeSliderEnd) => string;
|
|
193
195
|
inputs: boolean;
|
|
194
196
|
largeStep: number;
|
|
@@ -25,11 +25,11 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
|
|
|
25
25
|
size: SearchBarSize;
|
|
26
26
|
modelValue: string;
|
|
27
27
|
classes: Partial<Record<import('./types.js').SearchBarPart, string>>;
|
|
28
|
-
placeholder: string;
|
|
29
28
|
results: import('./types.js').SearchResults;
|
|
30
29
|
loading: boolean;
|
|
31
|
-
|
|
30
|
+
placeholder: string;
|
|
32
31
|
autofocus: boolean;
|
|
32
|
+
teleport: string | boolean;
|
|
33
33
|
messages: Partial<{
|
|
34
34
|
clear: string;
|
|
35
35
|
close: string;
|
|
@@ -55,6 +55,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
|
|
|
55
55
|
selectedCount: (n: number) => string;
|
|
56
56
|
noneSelected: string;
|
|
57
57
|
done: string;
|
|
58
|
+
selectAll: string;
|
|
58
59
|
decrease: string;
|
|
59
60
|
increase: string;
|
|
60
61
|
quantity: string;
|
|
@@ -181,6 +182,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
|
|
|
181
182
|
formPendingMessage: string;
|
|
182
183
|
stepCompleted: string;
|
|
183
184
|
stepNotStarted: string;
|
|
185
|
+
suggestions: string;
|
|
184
186
|
phoneCountry: (name: string, code: string) => string;
|
|
185
187
|
phoneCountryList: string;
|
|
186
188
|
phoneSearch: string;
|
|
@@ -190,8 +192,8 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
|
|
|
190
192
|
phoneInvalid: (country: string) => string;
|
|
191
193
|
phoneInvalidNumber: string;
|
|
192
194
|
}>;
|
|
195
|
+
pill: boolean;
|
|
193
196
|
action: string;
|
|
194
|
-
teleport: string | boolean;
|
|
195
197
|
recent: string[];
|
|
196
198
|
popular: string[];
|
|
197
199
|
showRecent: boolean;
|
|
@@ -81,8 +81,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
81
81
|
flat: boolean;
|
|
82
82
|
classes: Partial<Record<SearchBarPart, string>>;
|
|
83
83
|
placement: string;
|
|
84
|
-
activeValue: string;
|
|
85
84
|
panelStyle: Record<string, string>;
|
|
85
|
+
activeValue: string;
|
|
86
86
|
viewAll: SearchRow;
|
|
87
87
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
88
88
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -32,10 +32,9 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
32
32
|
}>, {
|
|
33
33
|
modelValue: boolean;
|
|
34
34
|
classes: Partial<Record<import('./types.js').SearchModalPart, string>>;
|
|
35
|
-
placeholder: string;
|
|
36
35
|
results: import('./types.js').SearchResults;
|
|
37
36
|
loading: boolean;
|
|
38
|
-
|
|
37
|
+
placeholder: string;
|
|
39
38
|
messages: Partial<{
|
|
40
39
|
clear: string;
|
|
41
40
|
close: string;
|
|
@@ -61,6 +60,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
61
60
|
selectedCount: (n: number) => string;
|
|
62
61
|
noneSelected: string;
|
|
63
62
|
done: string;
|
|
63
|
+
selectAll: string;
|
|
64
64
|
decrease: string;
|
|
65
65
|
increase: string;
|
|
66
66
|
quantity: string;
|
|
@@ -187,6 +187,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
187
187
|
formPendingMessage: string;
|
|
188
188
|
stepCompleted: string;
|
|
189
189
|
stepNotStarted: string;
|
|
190
|
+
suggestions: string;
|
|
190
191
|
phoneCountry: (name: string, code: string) => string;
|
|
191
192
|
phoneCountryList: string;
|
|
192
193
|
phoneSearch: string;
|
|
@@ -196,6 +197,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
196
197
|
phoneInvalid: (country: string) => string;
|
|
197
198
|
phoneInvalidNumber: string;
|
|
198
199
|
}>;
|
|
200
|
+
ariaLabel: string;
|
|
199
201
|
action: string;
|
|
200
202
|
query: string;
|
|
201
203
|
recent: string[];
|
|
@@ -80,13 +80,21 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
|
|
|
80
80
|
modelValue: string[];
|
|
81
81
|
classes: Partial<Record<import('./types.js').MultiSelectPart, string>>;
|
|
82
82
|
required: boolean;
|
|
83
|
-
placeholder: string;
|
|
84
83
|
loading: boolean;
|
|
85
|
-
|
|
84
|
+
selectAll: boolean;
|
|
86
85
|
leadingIcon: import('../../index.js').IconComponent;
|
|
87
|
-
|
|
86
|
+
id: string;
|
|
87
|
+
placeholder: string;
|
|
88
88
|
invalid: boolean;
|
|
89
89
|
describedBy: string;
|
|
90
|
+
readonly: boolean;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
searchable: boolean;
|
|
93
|
+
searchPlaceholder: string;
|
|
94
|
+
placement: import('./types.js').SelectPlacement;
|
|
95
|
+
teleport: string | boolean;
|
|
96
|
+
creatable: boolean;
|
|
97
|
+
renderBatch: number;
|
|
90
98
|
messages: Partial<{
|
|
91
99
|
clear: string;
|
|
92
100
|
close: string;
|
|
@@ -112,6 +120,7 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
|
|
|
112
120
|
selectedCount: (n: number) => string;
|
|
113
121
|
noneSelected: string;
|
|
114
122
|
done: string;
|
|
123
|
+
selectAll: string;
|
|
115
124
|
decrease: string;
|
|
116
125
|
increase: string;
|
|
117
126
|
quantity: string;
|
|
@@ -238,6 +247,7 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
|
|
|
238
247
|
formPendingMessage: string;
|
|
239
248
|
stepCompleted: string;
|
|
240
249
|
stepNotStarted: string;
|
|
250
|
+
suggestions: string;
|
|
241
251
|
phoneCountry: (name: string, code: string) => string;
|
|
242
252
|
phoneCountryList: string;
|
|
243
253
|
phoneSearch: string;
|
|
@@ -247,13 +257,6 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
|
|
|
247
257
|
phoneInvalid: (country: string) => string;
|
|
248
258
|
phoneInvalidNumber: string;
|
|
249
259
|
}>;
|
|
250
|
-
readonly: boolean;
|
|
251
|
-
searchable: boolean;
|
|
252
|
-
searchPlaceholder: string;
|
|
253
|
-
placement: import('./types.js').SelectPlacement;
|
|
254
|
-
teleport: string | boolean;
|
|
255
|
-
creatable: boolean;
|
|
256
|
-
renderBatch: number;
|
|
257
260
|
showTags: boolean;
|
|
258
261
|
tagPlacement: "below" | "inside";
|
|
259
262
|
maxTagRows: number;
|
|
@@ -51,13 +51,21 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
|
|
|
51
51
|
modelValue: string;
|
|
52
52
|
classes: Partial<Record<import('./types.js').SelectPart, string>>;
|
|
53
53
|
required: boolean;
|
|
54
|
-
placeholder: string;
|
|
55
54
|
loading: boolean;
|
|
56
|
-
id: string;
|
|
57
55
|
leadingIcon: import('../../index.js').IconComponent;
|
|
58
|
-
|
|
56
|
+
id: string;
|
|
57
|
+
placeholder: string;
|
|
58
|
+
clearable: boolean;
|
|
59
59
|
invalid: boolean;
|
|
60
60
|
describedBy: string;
|
|
61
|
+
readonly: boolean;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
searchable: boolean;
|
|
64
|
+
searchPlaceholder: string;
|
|
65
|
+
placement: import('./types.js').SelectPlacement;
|
|
66
|
+
teleport: string | boolean;
|
|
67
|
+
creatable: boolean;
|
|
68
|
+
renderBatch: number;
|
|
61
69
|
messages: Partial<{
|
|
62
70
|
clear: string;
|
|
63
71
|
close: string;
|
|
@@ -83,6 +91,7 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
|
|
|
83
91
|
selectedCount: (n: number) => string;
|
|
84
92
|
noneSelected: string;
|
|
85
93
|
done: string;
|
|
94
|
+
selectAll: string;
|
|
86
95
|
decrease: string;
|
|
87
96
|
increase: string;
|
|
88
97
|
quantity: string;
|
|
@@ -209,6 +218,7 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
|
|
|
209
218
|
formPendingMessage: string;
|
|
210
219
|
stepCompleted: string;
|
|
211
220
|
stepNotStarted: string;
|
|
221
|
+
suggestions: string;
|
|
212
222
|
phoneCountry: (name: string, code: string) => string;
|
|
213
223
|
phoneCountryList: string;
|
|
214
224
|
phoneSearch: string;
|
|
@@ -218,14 +228,6 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
|
|
|
218
228
|
phoneInvalid: (country: string) => string;
|
|
219
229
|
phoneInvalidNumber: string;
|
|
220
230
|
}>;
|
|
221
|
-
clearable: boolean;
|
|
222
|
-
readonly: boolean;
|
|
223
|
-
searchable: boolean;
|
|
224
|
-
searchPlaceholder: string;
|
|
225
|
-
placement: import('./types.js').SelectPlacement;
|
|
226
|
-
teleport: string | boolean;
|
|
227
|
-
creatable: boolean;
|
|
228
|
-
renderBatch: number;
|
|
229
231
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
230
232
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
231
233
|
declare const _default: typeof __VLS_export;
|
|
@@ -105,12 +105,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
105
105
|
loading: boolean;
|
|
106
106
|
createOption: SelectOption;
|
|
107
107
|
placement: string;
|
|
108
|
+
panelStyle: Record<string, string>;
|
|
108
109
|
activeValue: string;
|
|
109
110
|
labelledBy: string;
|
|
110
111
|
fallbackLabel: string;
|
|
111
112
|
loadingText: string;
|
|
112
113
|
createText: string;
|
|
113
|
-
panelStyle: Record<string, string>;
|
|
114
114
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
115
115
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
116
116
|
declare const _default: typeof __VLS_export;
|
|
@@ -135,7 +135,7 @@ export interface SelectProps {
|
|
|
135
135
|
* none either. Both are kept in the union rather than subtracted from it, so that one `classes`
|
|
136
136
|
* object can be handed to either control.
|
|
137
137
|
*/
|
|
138
|
-
export type MultiSelectPart = SelectPart | 'summary' | 'summaryMore' | 'tags' | 'tag' | 'tagRemove' | 'tagMore' | 'field' | 'footer' | 'footerCount' | 'footerClear' | 'footerDone';
|
|
138
|
+
export type MultiSelectPart = SelectPart | 'summary' | 'summaryMore' | 'tags' | 'tag' | 'tagRemove' | 'tagMore' | 'field' | 'footer' | 'footerCount' | 'footerSelectAll' | 'footerClear' | 'footerDone';
|
|
139
139
|
/**
|
|
140
140
|
* Everything a `Select` takes except the three the spec redefines: the value is a list, the
|
|
141
141
|
* placeholder's default is `"Any"` rather than `"Select"`, and there is no `clearable` — "the clear
|
|
@@ -165,6 +165,12 @@ export interface MultiSelectProps extends Omit<SelectProps, 'modelValue' | 'plac
|
|
|
165
165
|
* exactly that many.
|
|
166
166
|
*/
|
|
167
167
|
maxSummary?: number | 'fit';
|
|
168
|
+
/**
|
|
169
|
+
* A "Select all" button in the footer, before Clear. It adds every option the list is showing,
|
|
170
|
+
* so with a search typed it selects the matches only; disabled options are left as they are.
|
|
171
|
+
* It is disabled once all of them are selected. On by default; `false` leaves it out.
|
|
172
|
+
*/
|
|
173
|
+
selectAll?: boolean;
|
|
168
174
|
/**
|
|
169
175
|
* Per-part classes, appended to the part's own (they win by cascade layer). Style the root with
|
|
170
176
|
* `class`.
|
|
@@ -48,6 +48,7 @@ declare const __VLS_base: import('vue').DefineComponent<SiteFormProps, {}, {}, {
|
|
|
48
48
|
selectedCount: (n: number) => string;
|
|
49
49
|
noneSelected: string;
|
|
50
50
|
done: string;
|
|
51
|
+
selectAll: string;
|
|
51
52
|
decrease: string;
|
|
52
53
|
increase: string;
|
|
53
54
|
quantity: string;
|
|
@@ -174,6 +175,7 @@ declare const __VLS_base: import('vue').DefineComponent<SiteFormProps, {}, {}, {
|
|
|
174
175
|
formPendingMessage: string;
|
|
175
176
|
stepCompleted: string;
|
|
176
177
|
stepNotStarted: string;
|
|
178
|
+
suggestions: string;
|
|
177
179
|
phoneCountry: (name: string, code: string) => string;
|
|
178
180
|
phoneCountryList: string;
|
|
179
181
|
phoneSearch: string;
|
|
@@ -3,8 +3,8 @@ declare const __VLS_export: import('vue').DefineComponent<SkeletonProps, {}, {},
|
|
|
3
3
|
size: string;
|
|
4
4
|
height: string;
|
|
5
5
|
classes: Partial<Record<"line", string>>;
|
|
6
|
-
variant: SkeletonVariant;
|
|
7
6
|
width: string;
|
|
7
|
+
variant: SkeletonVariant;
|
|
8
8
|
ratio: import('../../index.js').ImageRatio;
|
|
9
9
|
lines: number;
|
|
10
10
|
busyLabel: string | null;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_base: import('vue').DefineComponent<SwitchProps, {}, {}, {},
|
|
|
24
24
|
classes: Partial<Record<import('./types.js').SwitchPart, string>>;
|
|
25
25
|
error: string;
|
|
26
26
|
id: string;
|
|
27
|
-
disabled: boolean;
|
|
28
27
|
invalid: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
29
|
requiredMark: boolean;
|
|
30
30
|
description: string;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -26,13 +26,13 @@ declare const __VLS_base: import('vue').DefineComponent<TextareaProps, {
|
|
|
26
26
|
modelValue: string;
|
|
27
27
|
classes: Partial<Record<import('./types.js').TextareaPart, string>>;
|
|
28
28
|
required: boolean;
|
|
29
|
-
placeholder: string;
|
|
30
29
|
id: string;
|
|
31
|
-
|
|
30
|
+
placeholder: string;
|
|
31
|
+
clearable: boolean;
|
|
32
32
|
invalid: boolean;
|
|
33
33
|
describedBy: string;
|
|
34
|
-
clearable: boolean;
|
|
35
34
|
readonly: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
36
|
maxLength: number;
|
|
37
37
|
hardLimit: boolean;
|
|
38
38
|
minHeight: string;
|
|
@@ -8,7 +8,6 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
|
|
|
8
8
|
}>, {
|
|
9
9
|
text: string;
|
|
10
10
|
classes: Partial<Record<import('./types.js').ToastPart, string>>;
|
|
11
|
-
variant: ToastVariant;
|
|
12
11
|
messages: Partial<{
|
|
13
12
|
clear: string;
|
|
14
13
|
close: string;
|
|
@@ -34,6 +33,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
|
|
|
34
33
|
selectedCount: (n: number) => string;
|
|
35
34
|
noneSelected: string;
|
|
36
35
|
done: string;
|
|
36
|
+
selectAll: string;
|
|
37
37
|
decrease: string;
|
|
38
38
|
increase: string;
|
|
39
39
|
quantity: string;
|
|
@@ -160,6 +160,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
|
|
|
160
160
|
formPendingMessage: string;
|
|
161
161
|
stepCompleted: string;
|
|
162
162
|
stepNotStarted: string;
|
|
163
|
+
suggestions: string;
|
|
163
164
|
phoneCountry: (name: string, code: string) => string;
|
|
164
165
|
phoneCountryList: string;
|
|
165
166
|
phoneSearch: string;
|
|
@@ -169,6 +170,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
|
|
|
169
170
|
phoneInvalid: (country: string) => string;
|
|
170
171
|
phoneInvalidNumber: string;
|
|
171
172
|
}>;
|
|
173
|
+
variant: ToastVariant;
|
|
172
174
|
action: import('./types.js').ToastAction;
|
|
173
175
|
closable: boolean;
|
|
174
176
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -33,6 +33,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToasterProps, {}, {},
|
|
|
33
33
|
selectedCount: (n: number) => string;
|
|
34
34
|
noneSelected: string;
|
|
35
35
|
done: string;
|
|
36
|
+
selectAll: string;
|
|
36
37
|
decrease: string;
|
|
37
38
|
increase: string;
|
|
38
39
|
quantity: string;
|
|
@@ -159,6 +160,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToasterProps, {}, {},
|
|
|
159
160
|
formPendingMessage: string;
|
|
160
161
|
stepCompleted: string;
|
|
161
162
|
stepNotStarted: string;
|
|
163
|
+
suggestions: string;
|
|
162
164
|
phoneCountry: (name: string, code: string) => string;
|
|
163
165
|
phoneCountryList: string;
|
|
164
166
|
phoneSearch: string;
|
|
@@ -30,22 +30,22 @@ declare const __VLS_base: import('vue').DefineComponent<UnitInputProps, {
|
|
|
30
30
|
classes: Partial<Record<import('./types.js').UnitInputPart, string>>;
|
|
31
31
|
required: boolean;
|
|
32
32
|
unit: string;
|
|
33
|
-
|
|
33
|
+
leadingIcon: import('../../index.js').IconComponent;
|
|
34
34
|
id: string;
|
|
35
|
+
min: number;
|
|
36
|
+
max: number;
|
|
35
37
|
step: number;
|
|
36
|
-
|
|
37
|
-
disabled: boolean;
|
|
38
|
+
clearable: boolean;
|
|
38
39
|
invalid: boolean;
|
|
39
40
|
describedBy: string;
|
|
41
|
+
readonly: boolean;
|
|
42
|
+
disabled: boolean;
|
|
40
43
|
locale: string;
|
|
41
44
|
currency: string;
|
|
42
45
|
narrowSymbol: boolean;
|
|
43
46
|
maxFraction: number;
|
|
44
47
|
isCurrency: boolean;
|
|
45
|
-
min: number;
|
|
46
48
|
enableDragAdjust: boolean;
|
|
47
|
-
clearable: boolean;
|
|
48
|
-
readonly: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/** ISO 3166-1 alpha-2 code, in either case (`IS`, `no`). */
|
|
2
3
|
country: string;
|
|
4
|
+
/** Names the flag for assistive technology. Leave it out where the country is named in text. */
|
|
5
|
+
label?: string;
|
|
3
6
|
};
|
|
4
7
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Loads the flags. Safe to call more than once, and ahead of a flag to draw it sooner. */
|
|
2
|
+
export declare function preloadCountryFlags(): Promise<void>;
|
|
3
|
+
export interface CountryFlagArt {
|
|
4
|
+
viewBox: string;
|
|
5
|
+
body: string;
|
|
6
|
+
}
|
|
7
|
+
/** A country's flag once the chunk is in; reactive, so a flag drawn before then fills in. */
|
|
8
|
+
export declare function countryFlag(country: string): CountryFlagArt | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@eldrajs/ui/flag`: a country's flag, for a country select, an address or a language switch.
|
|
3
|
+
*
|
|
4
|
+
* Its own entry because of its artwork: one lazy chunk of about 46 kB gzipped that the root entry
|
|
5
|
+
* must never reach. It needs no peer; `@eldrajs/ui/phone` draws its flags with the same component
|
|
6
|
+
* and shares the chunk.
|
|
7
|
+
*/
|
|
8
|
+
export { default as CountryFlag } from './CountryFlag.vue.js';
|
|
9
|
+
export { preloadCountryFlags } from './flags.js';
|
package/dist/flag.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as CountryFlag, n as preloadCountryFlags } from "./CountryFlag-DOa8lOHp.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Accordion } from './components/accordion/Accordion.vue.js';
|
|
2
2
|
export { default as AccordionItem } from './components/accordion/AccordionItem.vue.js';
|
|
3
|
+
export { default as Autocomplete } from './components/autocomplete/Autocomplete.vue.js';
|
|
3
4
|
export { default as Avatar } from './components/avatar/Avatar.vue.js';
|
|
4
5
|
export { default as AvatarGroup } from './components/avatar/AvatarGroup.vue.js';
|
|
5
6
|
export { default as Badge } from './components/badge/Badge.vue.js';
|
|
@@ -64,6 +65,7 @@ export { default as VariantPicker } from './components/variant-picker/VariantPic
|
|
|
64
65
|
export { default as VisuallyHidden } from './components/visually-hidden/VisuallyHidden.vue.js';
|
|
65
66
|
export type { AccordionItemHeadingLevel, AccordionItemPart, AccordionItemProps, AccordionPart, AccordionProps, } from './components/accordion/types.js';
|
|
66
67
|
export type { AppliedFilter, FilterFacet, FilterFacetLayout, FilterFacetSelection, FilterFacetType, FilterFacetValue, FilterPanelMode, FilterPanelPart, FilterPanelProps, FilterRemoval, FilterSelection, } from './components/filter-panel/types.js';
|
|
68
|
+
export type { AutocompleteOptionSlotProps, AutocompletePart, AutocompleteProps, AutocompleteSuggestion, } from './components/autocomplete/types.js';
|
|
67
69
|
export type { AvatarGroupPart, AvatarGroupPerson, AvatarGroupProps, AvatarPart, AvatarProps, AvatarSize, } from './components/avatar/types.js';
|
|
68
70
|
export type { BadgePart, BadgeProps, BadgeTone, BadgeVariant, StockBadgePart, StockBadgeProps, StockLevel, } from './components/badge/types.js';
|
|
69
71
|
export type { BreadcrumbItem, BreadcrumbPart, BreadcrumbProps, } from './components/breadcrumb/types.js';
|