@nuxt/ui 2.18.4 → 2.18.6
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 +1 -1
- package/dist/module.d.mts +1 -6
- package/dist/module.d.ts +1 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -8
- package/dist/runtime/components/data/Table.vue +8 -7
- package/dist/runtime/components/data/Table.vue.d.ts +2016 -12
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1124 -10
- package/dist/runtime/components/elements/Alert.vue.d.ts +1449 -11
- package/dist/runtime/components/elements/Avatar.vue.d.ts +118 -10
- package/dist/runtime/components/elements/AvatarGroup.d.ts +12 -6
- package/dist/runtime/components/elements/Badge.vue.d.ts +45 -9
- package/dist/runtime/components/elements/Button.vue.d.ts +367 -14
- package/dist/runtime/components/elements/ButtonGroup.d.ts +107 -6
- package/dist/runtime/components/elements/Carousel.vue.d.ts +970 -10
- package/dist/runtime/components/elements/Chip.vue.d.ts +46 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +784 -13
- package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Kbd.vue.d.ts +28 -9
- package/dist/runtime/components/elements/Link.vue +1 -0
- package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Meter.vue.d.ts +136 -11
- package/dist/runtime/components/elements/MeterGroup.d.ts +60 -6
- package/dist/runtime/components/elements/Progress.vue.d.ts +89 -12
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +33 -12
- package/dist/runtime/components/forms/Form.vue +4 -3
- package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +39 -11
- package/dist/runtime/components/forms/Input.vue +1 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +176 -14
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +957 -20
- package/dist/runtime/components/forms/Radio.vue.d.ts +32 -12
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +245 -14
- package/dist/runtime/components/forms/Range.vue.d.ts +79 -13
- package/dist/runtime/components/forms/Select.vue.d.ts +171 -12
- package/dist/runtime/components/forms/SelectMenu.vue +1 -1
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +1163 -19
- package/dist/runtime/components/forms/Textarea.vue +3 -0
- package/dist/runtime/components/forms/Textarea.vue.d.ts +129 -14
- package/dist/runtime/components/forms/Toggle.vue.d.ts +211 -12
- package/dist/runtime/components/layout/Card.vue.d.ts +35 -9
- package/dist/runtime/components/layout/Container.vue.d.ts +17 -9
- package/dist/runtime/components/layout/Divider.vue.d.ts +528 -11
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +17 -9
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +302 -9
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1971 -13
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +625 -5
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +898 -9
- package/dist/runtime/components/navigation/Pagination.vue +4 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +981 -11
- package/dist/runtime/components/navigation/Tabs.vue +4 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +274 -14
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1666 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +45 -12
- package/dist/runtime/components/overlays/Modal.vue +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +392 -13
- package/dist/runtime/components/overlays/Notification.vue.d.ts +1459 -12
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1746 -10
- package/dist/runtime/components/overlays/Popover.vue.d.ts +165 -14
- package/dist/runtime/components/overlays/Slideover.vue +3 -3
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +391 -13
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +168 -12
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.js +4 -2
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/usePopper.d.ts +262 -1
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/composables/useUI.d.ts +2 -2
- package/dist/runtime/composables/useUI.js +1 -1
- package/dist/runtime/plugins/colors.js +3 -3
- package/dist/runtime/types/command-palette.d.ts +2 -2
- package/dist/runtime/ui.config/elements/button.js +9 -9
- package/dist/runtime/ui.config/elements/carousel.js +1 -1
- package/dist/runtime/ui.config/navigation/tabs.js +1 -1
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +5 -1
- package/package.json +27 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Strategy } from '../../types/index.js';
|
|
2
|
+
import type { DeepPartial, Strategy } from '../../types/index.js';
|
|
3
3
|
import colors from '#ui-colors';
|
|
4
4
|
declare const config: {
|
|
5
5
|
wrapper: string;
|
|
@@ -18,7 +18,7 @@ declare const config: {
|
|
|
18
18
|
color: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
22
22
|
id: {
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
default: any;
|
|
@@ -65,12 +65,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
default: () => "";
|
|
66
66
|
};
|
|
67
67
|
ui: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
69
69
|
strategy?: Strategy;
|
|
70
70
|
}>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
|
-
}
|
|
73
|
+
}>, {
|
|
74
74
|
inputId: string;
|
|
75
75
|
ui: import("vue").ComputedRef<{
|
|
76
76
|
wrapper: string;
|
|
@@ -92,11 +92,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
attrs: import("vue").ComputedRef<Pick<{
|
|
93
93
|
[x: string]: unknown;
|
|
94
94
|
}, string>>;
|
|
95
|
-
pick: import("vue").WritableComputedRef<string | number | boolean | Record<string, any>>;
|
|
95
|
+
pick: import("vue").WritableComputedRef<string | number | boolean | Record<string, any>, string | number | boolean | Record<string, any>>;
|
|
96
96
|
name: any;
|
|
97
97
|
inputClass: import("vue").ComputedRef<string>;
|
|
98
98
|
onChange: (event: Event) => void;
|
|
99
|
-
},
|
|
99
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
id: {
|
|
101
101
|
type: StringConstructor;
|
|
102
102
|
default: any;
|
|
@@ -143,26 +143,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
default: () => "";
|
|
144
144
|
};
|
|
145
145
|
ui: {
|
|
146
|
-
type: PropType<
|
|
146
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
147
147
|
strategy?: Strategy;
|
|
148
148
|
}>;
|
|
149
149
|
default: () => {};
|
|
150
150
|
};
|
|
151
|
-
}>> & {
|
|
151
|
+
}>> & Readonly<{
|
|
152
152
|
onChange?: (...args: any[]) => any;
|
|
153
153
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
154
|
-
}
|
|
154
|
+
}>, {
|
|
155
155
|
name: string;
|
|
156
156
|
required: boolean;
|
|
157
157
|
class: any;
|
|
158
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
159
158
|
disabled: boolean;
|
|
159
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
160
160
|
label: string;
|
|
161
|
-
ui: {
|
|
161
|
+
ui: {
|
|
162
|
+
wrapper?: string;
|
|
163
|
+
container?: string;
|
|
164
|
+
base?: string;
|
|
165
|
+
form?: string;
|
|
166
|
+
color?: string;
|
|
167
|
+
background?: string;
|
|
168
|
+
border?: string;
|
|
169
|
+
ring?: string;
|
|
170
|
+
inner?: string;
|
|
171
|
+
label?: string;
|
|
172
|
+
required?: string;
|
|
173
|
+
help?: string;
|
|
174
|
+
default?: DeepPartial<{
|
|
175
|
+
color: string;
|
|
176
|
+
}, any>;
|
|
177
|
+
} & {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
} & {
|
|
180
|
+
strategy?: Strategy;
|
|
181
|
+
};
|
|
162
182
|
id: string;
|
|
163
183
|
modelValue: string | number | boolean | Record<string, any>;
|
|
164
184
|
value: string | number | boolean;
|
|
165
185
|
help: string;
|
|
166
186
|
inputClass: string;
|
|
167
|
-
}, {}>;
|
|
187
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
168
188
|
export default _default;
|
|
@@ -97,7 +97,7 @@ export default defineComponent({
|
|
|
97
97
|
setup(props, { emit }) {
|
|
98
98
|
const { ui, attrs } = useUI("radioGroup", toRef(props, "ui"), config, toRef(props, "class"));
|
|
99
99
|
const { ui: uiRadio } = useUI("radio", toRef(props, "uiRadio"), configRadio);
|
|
100
|
-
const { emitFormChange, color, name } = useFormGroup(props, config);
|
|
100
|
+
const { emitFormChange, color, name } = useFormGroup(props, config, false);
|
|
101
101
|
provide("radio-group", { color, name });
|
|
102
102
|
const onUpdate = (value) => {
|
|
103
103
|
emit("update:modelValue", value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Strategy } from '../../types/index.js';
|
|
2
|
+
import type { DeepPartial, Strategy } from '../../types/index.js';
|
|
3
3
|
import colors from '#ui-colors';
|
|
4
4
|
declare const config: {
|
|
5
5
|
wrapper: string;
|
|
@@ -26,7 +26,7 @@ declare const configRadio: {
|
|
|
26
26
|
color: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
30
30
|
modelValue: {
|
|
31
31
|
type: (StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor)[];
|
|
32
32
|
default: string;
|
|
@@ -65,18 +65,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
default: () => "";
|
|
66
66
|
};
|
|
67
67
|
ui: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
69
69
|
strategy?: Strategy;
|
|
70
70
|
}>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
uiRadio: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<DeepPartial<typeof configRadio> & {
|
|
75
75
|
strategy?: Strategy;
|
|
76
76
|
}>;
|
|
77
77
|
default: () => {};
|
|
78
78
|
};
|
|
79
|
-
}
|
|
79
|
+
}>, {
|
|
80
80
|
ui: import("vue").ComputedRef<{
|
|
81
81
|
wrapper: string;
|
|
82
82
|
fieldset: string;
|
|
@@ -107,7 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
107
|
}, string>>;
|
|
108
108
|
normalizedOptions: import("vue").ComputedRef<any[]>;
|
|
109
109
|
onUpdate: (value: any) => void;
|
|
110
|
-
},
|
|
110
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
111
|
modelValue: {
|
|
112
112
|
type: (StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor)[];
|
|
113
113
|
default: string;
|
|
@@ -146,31 +146,262 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
default: () => "";
|
|
147
147
|
};
|
|
148
148
|
ui: {
|
|
149
|
-
type: PropType<
|
|
149
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
150
150
|
strategy?: Strategy;
|
|
151
151
|
}>;
|
|
152
152
|
default: () => {};
|
|
153
153
|
};
|
|
154
154
|
uiRadio: {
|
|
155
|
-
type: PropType<
|
|
155
|
+
type: PropType<DeepPartial<typeof configRadio> & {
|
|
156
156
|
strategy?: Strategy;
|
|
157
157
|
}>;
|
|
158
158
|
default: () => {};
|
|
159
159
|
};
|
|
160
|
-
}>> & {
|
|
160
|
+
}>> & Readonly<{
|
|
161
161
|
onChange?: (...args: any[]) => any;
|
|
162
162
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
163
|
-
}
|
|
163
|
+
}>, {
|
|
164
164
|
name: string;
|
|
165
165
|
class: any;
|
|
166
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
167
166
|
disabled: boolean;
|
|
167
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
168
168
|
legend: string;
|
|
169
|
-
ui: {
|
|
169
|
+
ui: {
|
|
170
|
+
wrapper?: string;
|
|
171
|
+
fieldset?: string;
|
|
172
|
+
legend?: string;
|
|
173
|
+
default?: DeepPartial<{
|
|
174
|
+
color: string;
|
|
175
|
+
}, any>;
|
|
176
|
+
} & {
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
} & {
|
|
179
|
+
strategy?: Strategy;
|
|
180
|
+
};
|
|
170
181
|
options: unknown[];
|
|
171
182
|
modelValue: string | number | boolean | Record<string, any>;
|
|
172
183
|
optionAttribute: string;
|
|
173
184
|
valueAttribute: string;
|
|
174
|
-
uiRadio: {
|
|
175
|
-
|
|
185
|
+
uiRadio: {
|
|
186
|
+
wrapper?: string;
|
|
187
|
+
container?: string;
|
|
188
|
+
base?: string;
|
|
189
|
+
form?: string;
|
|
190
|
+
color?: string;
|
|
191
|
+
background?: string;
|
|
192
|
+
border?: string;
|
|
193
|
+
ring?: string;
|
|
194
|
+
inner?: string;
|
|
195
|
+
label?: string;
|
|
196
|
+
required?: string;
|
|
197
|
+
help?: string;
|
|
198
|
+
default?: DeepPartial<{
|
|
199
|
+
color: string;
|
|
200
|
+
}, any>;
|
|
201
|
+
} & {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
} & {
|
|
204
|
+
strategy?: Strategy;
|
|
205
|
+
};
|
|
206
|
+
}, {}, {
|
|
207
|
+
URadio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
208
|
+
id: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: any;
|
|
211
|
+
};
|
|
212
|
+
value: {
|
|
213
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
214
|
+
default: any;
|
|
215
|
+
};
|
|
216
|
+
modelValue: {
|
|
217
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor)[];
|
|
218
|
+
default: any;
|
|
219
|
+
};
|
|
220
|
+
name: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: any;
|
|
223
|
+
};
|
|
224
|
+
disabled: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
help: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: any;
|
|
231
|
+
};
|
|
232
|
+
label: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
required: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
color: {
|
|
241
|
+
type: PropType<(typeof colors)[number]>;
|
|
242
|
+
default: () => string;
|
|
243
|
+
validator(value: string): any;
|
|
244
|
+
};
|
|
245
|
+
inputClass: {
|
|
246
|
+
type: StringConstructor;
|
|
247
|
+
default: any;
|
|
248
|
+
};
|
|
249
|
+
class: {
|
|
250
|
+
type: PropType<any>;
|
|
251
|
+
default: () => "";
|
|
252
|
+
};
|
|
253
|
+
ui: {
|
|
254
|
+
type: PropType<DeepPartial<{
|
|
255
|
+
wrapper: string;
|
|
256
|
+
container: string;
|
|
257
|
+
base: string;
|
|
258
|
+
form: string;
|
|
259
|
+
color: string;
|
|
260
|
+
background: string;
|
|
261
|
+
border: string;
|
|
262
|
+
ring: string;
|
|
263
|
+
inner: string;
|
|
264
|
+
label: string;
|
|
265
|
+
required: string;
|
|
266
|
+
help: string;
|
|
267
|
+
default: {
|
|
268
|
+
color: string;
|
|
269
|
+
};
|
|
270
|
+
}> & {
|
|
271
|
+
strategy?: Strategy;
|
|
272
|
+
}>;
|
|
273
|
+
default: () => {};
|
|
274
|
+
};
|
|
275
|
+
}>, {
|
|
276
|
+
inputId: string;
|
|
277
|
+
ui: import("vue").ComputedRef<{
|
|
278
|
+
wrapper: string;
|
|
279
|
+
container: string;
|
|
280
|
+
base: string;
|
|
281
|
+
form: string;
|
|
282
|
+
color: string;
|
|
283
|
+
background: string;
|
|
284
|
+
border: string;
|
|
285
|
+
ring: string;
|
|
286
|
+
inner: string;
|
|
287
|
+
label: string;
|
|
288
|
+
required: string;
|
|
289
|
+
help: string;
|
|
290
|
+
default: {
|
|
291
|
+
color: string;
|
|
292
|
+
};
|
|
293
|
+
}>;
|
|
294
|
+
attrs: import("vue").ComputedRef<Pick<{
|
|
295
|
+
[x: string]: unknown;
|
|
296
|
+
}, string>>;
|
|
297
|
+
pick: import("vue").WritableComputedRef<string | number | boolean | Record<string, any>, string | number | boolean | Record<string, any>>;
|
|
298
|
+
name: any;
|
|
299
|
+
inputClass: import("vue").ComputedRef<string>;
|
|
300
|
+
onChange: (event: Event) => void;
|
|
301
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
302
|
+
id: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
default: any;
|
|
305
|
+
};
|
|
306
|
+
value: {
|
|
307
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
308
|
+
default: any;
|
|
309
|
+
};
|
|
310
|
+
modelValue: {
|
|
311
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor)[];
|
|
312
|
+
default: any;
|
|
313
|
+
};
|
|
314
|
+
name: {
|
|
315
|
+
type: StringConstructor;
|
|
316
|
+
default: any;
|
|
317
|
+
};
|
|
318
|
+
disabled: {
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
default: boolean;
|
|
321
|
+
};
|
|
322
|
+
help: {
|
|
323
|
+
type: StringConstructor;
|
|
324
|
+
default: any;
|
|
325
|
+
};
|
|
326
|
+
label: {
|
|
327
|
+
type: StringConstructor;
|
|
328
|
+
default: any;
|
|
329
|
+
};
|
|
330
|
+
required: {
|
|
331
|
+
type: BooleanConstructor;
|
|
332
|
+
default: boolean;
|
|
333
|
+
};
|
|
334
|
+
color: {
|
|
335
|
+
type: PropType<(typeof colors)[number]>;
|
|
336
|
+
default: () => string;
|
|
337
|
+
validator(value: string): any;
|
|
338
|
+
};
|
|
339
|
+
inputClass: {
|
|
340
|
+
type: StringConstructor;
|
|
341
|
+
default: any;
|
|
342
|
+
};
|
|
343
|
+
class: {
|
|
344
|
+
type: PropType<any>;
|
|
345
|
+
default: () => "";
|
|
346
|
+
};
|
|
347
|
+
ui: {
|
|
348
|
+
type: PropType<DeepPartial<{
|
|
349
|
+
wrapper: string;
|
|
350
|
+
container: string;
|
|
351
|
+
base: string;
|
|
352
|
+
form: string;
|
|
353
|
+
color: string;
|
|
354
|
+
background: string;
|
|
355
|
+
border: string;
|
|
356
|
+
ring: string;
|
|
357
|
+
inner: string;
|
|
358
|
+
label: string;
|
|
359
|
+
required: string;
|
|
360
|
+
help: string;
|
|
361
|
+
default: {
|
|
362
|
+
color: string;
|
|
363
|
+
};
|
|
364
|
+
}> & {
|
|
365
|
+
strategy?: Strategy;
|
|
366
|
+
}>;
|
|
367
|
+
default: () => {};
|
|
368
|
+
};
|
|
369
|
+
}>> & Readonly<{
|
|
370
|
+
onChange?: (...args: any[]) => any;
|
|
371
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
372
|
+
}>, {
|
|
373
|
+
name: string;
|
|
374
|
+
required: boolean;
|
|
375
|
+
class: any;
|
|
376
|
+
disabled: boolean;
|
|
377
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
378
|
+
label: string;
|
|
379
|
+
ui: {
|
|
380
|
+
wrapper?: string;
|
|
381
|
+
container?: string;
|
|
382
|
+
base?: string;
|
|
383
|
+
form?: string;
|
|
384
|
+
color?: string;
|
|
385
|
+
background?: string;
|
|
386
|
+
border?: string;
|
|
387
|
+
ring?: string;
|
|
388
|
+
inner?: string;
|
|
389
|
+
label?: string;
|
|
390
|
+
required?: string;
|
|
391
|
+
help?: string;
|
|
392
|
+
default?: DeepPartial<{
|
|
393
|
+
color: string;
|
|
394
|
+
}, any>;
|
|
395
|
+
} & {
|
|
396
|
+
[key: string]: any;
|
|
397
|
+
} & {
|
|
398
|
+
strategy?: Strategy;
|
|
399
|
+
};
|
|
400
|
+
id: string;
|
|
401
|
+
modelValue: string | number | boolean | Record<string, any>;
|
|
402
|
+
value: string | number | boolean;
|
|
403
|
+
help: string;
|
|
404
|
+
inputClass: string;
|
|
405
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
406
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
176
407
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { RangeSize, RangeColor, Strategy } from '../../types/index.js';
|
|
2
|
+
import type { RangeSize, RangeColor, Strategy, DeepPartial } from '../../types/index.js';
|
|
3
3
|
declare const config: {
|
|
4
4
|
wrapper: string;
|
|
5
5
|
base: string;
|
|
@@ -63,7 +63,7 @@ declare const config: {
|
|
|
63
63
|
color: string;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
declare const _default: import("vue").DefineComponent<{
|
|
66
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
67
67
|
modelValue: {
|
|
68
68
|
type: NumberConstructor;
|
|
69
69
|
default: number;
|
|
@@ -111,12 +111,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
default: () => "";
|
|
112
112
|
};
|
|
113
113
|
ui: {
|
|
114
|
-
type: PropType<
|
|
114
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
115
115
|
strategy?: Strategy;
|
|
116
116
|
}>;
|
|
117
117
|
default: () => {};
|
|
118
118
|
};
|
|
119
|
-
}
|
|
119
|
+
}>, {
|
|
120
120
|
ui: import("vue").ComputedRef<{
|
|
121
121
|
wrapper: string;
|
|
122
122
|
base: string;
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
185
|
}, string>>;
|
|
186
186
|
name: import("vue").ComputedRef<string>;
|
|
187
187
|
inputId: import("vue").ComputedRef<string>;
|
|
188
|
-
value: import("vue").WritableComputedRef<number>;
|
|
188
|
+
value: import("vue").WritableComputedRef<number, number>;
|
|
189
189
|
wrapperClass: import("vue").ComputedRef<string>;
|
|
190
190
|
inputClass: import("vue").ComputedRef<string>;
|
|
191
191
|
thumbClass: import("vue").ComputedRef<string>;
|
|
@@ -195,7 +195,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
195
|
width: string;
|
|
196
196
|
}>;
|
|
197
197
|
onChange: (event: Event) => void;
|
|
198
|
-
},
|
|
198
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
199
199
|
modelValue: {
|
|
200
200
|
type: NumberConstructor;
|
|
201
201
|
default: number;
|
|
@@ -243,26 +243,92 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
243
|
default: () => "";
|
|
244
244
|
};
|
|
245
245
|
ui: {
|
|
246
|
-
type: PropType<
|
|
246
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
247
247
|
strategy?: Strategy;
|
|
248
248
|
}>;
|
|
249
249
|
default: () => {};
|
|
250
250
|
};
|
|
251
|
-
}>> & {
|
|
251
|
+
}>> & Readonly<{
|
|
252
252
|
onChange?: (...args: any[]) => any;
|
|
253
253
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
254
|
-
}
|
|
254
|
+
}>, {
|
|
255
255
|
name: string;
|
|
256
256
|
size: RangeSize;
|
|
257
257
|
class: any;
|
|
258
|
+
disabled: boolean;
|
|
259
|
+
max: number;
|
|
258
260
|
step: number;
|
|
259
261
|
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
260
|
-
|
|
261
|
-
|
|
262
|
+
ui: {
|
|
263
|
+
wrapper?: string;
|
|
264
|
+
base?: string;
|
|
265
|
+
rounded?: string;
|
|
266
|
+
background?: string;
|
|
267
|
+
ring?: string;
|
|
268
|
+
progress?: DeepPartial<{
|
|
269
|
+
base: string;
|
|
270
|
+
rounded: string;
|
|
271
|
+
background: string;
|
|
272
|
+
size: {
|
|
273
|
+
'2xs': string;
|
|
274
|
+
xs: string;
|
|
275
|
+
sm: string;
|
|
276
|
+
md: string;
|
|
277
|
+
lg: string;
|
|
278
|
+
xl: string;
|
|
279
|
+
'2xl': string;
|
|
280
|
+
};
|
|
281
|
+
}, any>;
|
|
282
|
+
thumb?: DeepPartial<{
|
|
283
|
+
base: string;
|
|
284
|
+
color: string;
|
|
285
|
+
background: string;
|
|
286
|
+
ring: string;
|
|
287
|
+
size: {
|
|
288
|
+
'2xs': string;
|
|
289
|
+
xs: string;
|
|
290
|
+
sm: string;
|
|
291
|
+
md: string;
|
|
292
|
+
lg: string;
|
|
293
|
+
xl: string;
|
|
294
|
+
'2xl': string;
|
|
295
|
+
};
|
|
296
|
+
}, any>;
|
|
297
|
+
track?: DeepPartial<{
|
|
298
|
+
base: string;
|
|
299
|
+
background: string;
|
|
300
|
+
rounded: string;
|
|
301
|
+
size: {
|
|
302
|
+
'2xs': string;
|
|
303
|
+
xs: string;
|
|
304
|
+
sm: string;
|
|
305
|
+
md: string;
|
|
306
|
+
lg: string;
|
|
307
|
+
xl: string;
|
|
308
|
+
'2xl': string;
|
|
309
|
+
};
|
|
310
|
+
}, any>;
|
|
311
|
+
size?: DeepPartial<{
|
|
312
|
+
'2xs': string;
|
|
313
|
+
xs: string;
|
|
314
|
+
sm: string;
|
|
315
|
+
md: string;
|
|
316
|
+
lg: string;
|
|
317
|
+
xl: string;
|
|
318
|
+
'2xl': string;
|
|
319
|
+
}, any>;
|
|
320
|
+
default?: DeepPartial<{
|
|
321
|
+
size: string;
|
|
322
|
+
color: string;
|
|
323
|
+
}, any>;
|
|
324
|
+
} & {
|
|
325
|
+
[key: string]: any;
|
|
326
|
+
} & {
|
|
327
|
+
strategy?: Strategy;
|
|
328
|
+
};
|
|
262
329
|
id: string;
|
|
263
330
|
modelValue: number;
|
|
264
|
-
max: number;
|
|
265
331
|
inputClass: string;
|
|
266
332
|
min: number;
|
|
267
|
-
}, {}>;
|
|
333
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
268
334
|
export default _default;
|