@nuxt/ui 2.15.2 → 2.16.0

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.
Files changed (68) hide show
  1. package/README.md +0 -10
  2. package/dist/module.d.mts +1 -24
  3. package/dist/module.d.ts +1 -24
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +108 -329
  6. package/dist/runtime/components/data/Table.vue +33 -2
  7. package/dist/runtime/components/data/Table.vue.d.ts +25 -35
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +1 -1
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +6 -6
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +10 -10
  11. package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
  12. package/dist/runtime/components/elements/Button.vue.d.ts +9 -9
  13. package/dist/runtime/components/elements/Carousel.vue.d.ts +1 -1
  14. package/dist/runtime/components/elements/Chip.vue.d.ts +8 -8
  15. package/dist/runtime/components/elements/Dropdown.vue.d.ts +1 -1
  16. package/dist/runtime/components/elements/Kbd.vue.d.ts +2 -2
  17. package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
  18. package/dist/runtime/components/elements/Meter.vue.d.ts +5 -5
  19. package/dist/runtime/components/elements/Progress.vue.d.ts +3 -3
  20. package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
  21. package/dist/runtime/components/forms/Form.vue.d.ts +2 -2
  22. package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
  23. package/dist/runtime/components/forms/Input.vue +1 -1
  24. package/dist/runtime/components/forms/Input.vue.d.ts +14 -14
  25. package/dist/runtime/components/forms/InputMenu.vue +6 -0
  26. package/dist/runtime/components/forms/InputMenu.vue.d.ts +30 -21
  27. package/dist/runtime/components/forms/Radio.vue.d.ts +11 -11
  28. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +8 -8
  29. package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
  30. package/dist/runtime/components/forms/Select.vue.d.ts +13 -13
  31. package/dist/runtime/components/forms/SelectMenu.vue +6 -0
  32. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +30 -21
  33. package/dist/runtime/components/forms/Textarea.vue.d.ts +12 -12
  34. package/dist/runtime/components/forms/Toggle.vue.d.ts +7 -7
  35. package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
  36. package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
  37. package/dist/runtime/components/layout/Divider.vue.d.ts +5 -5
  38. package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
  39. package/dist/runtime/components/navigation/Breadcrumb.vue +1 -0
  40. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
  41. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +10 -10
  42. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
  43. package/dist/runtime/components/navigation/Pagination.vue +5 -0
  44. package/dist/runtime/components/navigation/Pagination.vue.d.ts +10 -1
  45. package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
  46. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
  47. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +3 -3
  48. package/dist/runtime/components/overlays/Modal.vue.d.ts +5 -5
  49. package/dist/runtime/components/overlays/Notification.vue +8 -3
  50. package/dist/runtime/components/overlays/Notification.vue.d.ts +8 -8
  51. package/dist/runtime/components/overlays/Notifications.vue.d.ts +3 -1
  52. package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
  53. package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
  54. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
  55. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  56. package/dist/runtime/composables/usePopper.d.ts +8 -8
  57. package/dist/runtime/composables/useToast.d.ts +2 -0
  58. package/dist/runtime/composables/useToast.mjs +13 -1
  59. package/dist/runtime/types/slideover.d.ts +11 -12
  60. package/dist/runtime/ui.config/data/table.d.ts +1 -0
  61. package/dist/runtime/ui.config/data/table.mjs +1 -0
  62. package/dist/runtime/ui.config/forms/input.d.ts +0 -8
  63. package/dist/runtime/ui.config/forms/input.mjs +1 -9
  64. package/dist/runtime/ui.config/forms/select.d.ts +0 -8
  65. package/dist/runtime/ui.config/forms/textarea.d.ts +0 -8
  66. package/dist/runtime/utils/colors.d.ts +11 -0
  67. package/dist/runtime/utils/colors.mjs +299 -0
  68. package/package.json +19 -22
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
2
2
  import type { InputSize, InputVariant, PopperOptions } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
5
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  };
8
8
  query: {
@@ -111,6 +111,10 @@ declare const _default: import("vue").DefineComponent<{
111
111
  type: ArrayConstructor;
112
112
  default: null;
113
113
  };
114
+ searchLazy: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
114
118
  debounce: {
115
119
  type: NumberConstructor;
116
120
  default: number;
@@ -160,9 +164,9 @@ declare const _default: import("vue").DefineComponent<{
160
164
  query: import("vue").WritableComputedRef<string>;
161
165
  onUpdate: (value: any) => void;
162
166
  onQueryChange: (event: any) => void;
163
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:modelValue" | "open" | "update:query")[], "change" | "close" | "update:modelValue" | "open" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
167
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "open" | "close" | "update:query")[], "change" | "update:modelValue" | "open" | "close" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
164
168
  modelValue: {
165
- type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
169
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
166
170
  default: string;
167
171
  };
168
172
  query: {
@@ -271,6 +275,10 @@ declare const _default: import("vue").DefineComponent<{
271
275
  type: ArrayConstructor;
272
276
  default: null;
273
277
  };
278
+ searchLazy: {
279
+ type: BooleanConstructor;
280
+ default: boolean;
281
+ };
274
282
  debounce: {
275
283
  type: NumberConstructor;
276
284
  default: number;
@@ -296,45 +304,46 @@ declare const _default: import("vue").DefineComponent<{
296
304
  default: () => {};
297
305
  };
298
306
  }>> & {
299
- onClose?: ((...args: any[]) => any) | undefined;
300
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
301
307
  onChange?: ((...args: any[]) => any) | undefined;
308
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
302
309
  onOpen?: ((...args: any[]) => any) | undefined;
310
+ onClose?: ((...args: any[]) => any) | undefined;
303
311
  "onUpdate:query"?: ((...args: any[]) => any) | undefined;
304
312
  }, {
313
+ search: (query: string) => Promise<any[]> | any[];
305
314
  size: InputSize;
306
- ui: any;
307
- id: string;
308
- icon: string;
309
- color: any;
310
- class: any;
311
- options: string[] | {
312
- [key: string]: any;
313
- disabled?: boolean | undefined;
314
- }[];
315
- popper: PopperOptions;
316
315
  name: string;
317
- modelValue: string | number | unknown[] | Record<string, any>;
316
+ required: boolean;
317
+ class: any;
318
318
  leading: boolean;
319
- search: (query: string) => Promise<any[]> | any[];
319
+ popper: PopperOptions;
320
+ color: any;
320
321
  variant: InputVariant;
321
- by: string;
322
- loading: boolean;
323
322
  disabled: boolean;
324
- placeholder: string;
323
+ ui: any;
324
+ loading: boolean;
325
325
  padded: boolean;
326
+ icon: string;
326
327
  loadingIcon: string;
327
328
  leadingIcon: string;
328
329
  trailingIcon: string;
329
330
  trailing: boolean;
330
- required: boolean;
331
+ id: string;
332
+ modelValue: string | number | Record<string, any> | unknown[];
331
333
  inputClass: string;
334
+ by: string;
335
+ placeholder: string;
336
+ options: string[] | {
337
+ [key: string]: any;
338
+ disabled?: boolean | undefined;
339
+ }[];
332
340
  nullable: boolean;
333
341
  query: string;
334
342
  selectedIcon: string;
335
343
  optionAttribute: string;
336
344
  valueAttribute: string;
337
345
  searchAttributes: unknown[];
346
+ searchLazy: boolean;
338
347
  debounce: number;
339
348
  uiMenu: any;
340
349
  }, {}>;
@@ -5,11 +5,11 @@ declare const _default: import("vue").DefineComponent<{
5
5
  default: null;
6
6
  };
7
7
  value: {
8
- type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
8
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
9
9
  default: null;
10
10
  };
11
11
  modelValue: {
12
- type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
12
+ type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
13
13
  default: null;
14
14
  };
15
15
  name: {
@@ -65,11 +65,11 @@ declare const _default: import("vue").DefineComponent<{
65
65
  default: null;
66
66
  };
67
67
  value: {
68
- type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
68
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
69
69
  default: null;
70
70
  };
71
71
  modelValue: {
72
- type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
72
+ type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
73
73
  default: null;
74
74
  };
75
75
  name: {
@@ -110,19 +110,19 @@ declare const _default: import("vue").DefineComponent<{
110
110
  default: () => {};
111
111
  };
112
112
  }>> & {
113
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114
113
  onChange?: ((...args: any[]) => any) | undefined;
114
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
115
115
  }, {
116
- ui: any;
117
116
  value: string | number | boolean;
118
- id: string;
119
- color: any;
120
- class: any;
121
117
  name: string;
122
- modelValue: string | number | boolean | Record<string, any>;
118
+ required: boolean;
123
119
  label: string;
120
+ class: any;
121
+ color: any;
124
122
  disabled: boolean;
125
- required: boolean;
123
+ ui: any;
124
+ id: string;
125
+ modelValue: string | number | boolean | Record<string, any>;
126
126
  help: string;
127
127
  inputClass: string;
128
128
  }, {}>;
@@ -1,7 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  modelValue: {
4
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
4
+ type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
5
5
  default: string;
6
6
  };
7
7
  name: {
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
55
55
  onUpdate: (value: any) => void;
56
56
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
57
  modelValue: {
58
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
58
+ type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
59
59
  default: string;
60
60
  };
61
61
  name: {
@@ -100,17 +100,17 @@ declare const _default: import("vue").DefineComponent<{
100
100
  default: () => {};
101
101
  };
102
102
  }>> & {
103
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
104
103
  onChange?: ((...args: any[]) => any) | undefined;
104
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
105
  }, {
106
- ui: any;
107
- color: any;
108
- class: any;
109
- options: unknown[];
110
106
  name: string;
111
- modelValue: string | number | Record<string, any>;
112
107
  legend: string;
108
+ class: any;
109
+ color: any;
113
110
  disabled: boolean;
111
+ ui: any;
112
+ modelValue: string | number | Record<string, any>;
113
+ options: unknown[];
114
114
  optionAttribute: string;
115
115
  valueAttribute: string;
116
116
  uiRadio: any;
@@ -120,20 +120,20 @@ declare const _default: import("vue").DefineComponent<{
120
120
  default: () => {};
121
121
  };
122
122
  }>> & {
123
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
124
123
  onChange?: ((...args: any[]) => any) | undefined;
124
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
125
125
  }, {
126
126
  size: RangeSize;
127
- ui: any;
128
- id: string;
129
- color: any;
130
- class: any;
131
127
  name: string;
132
- modelValue: number;
128
+ class: any;
129
+ color: any;
133
130
  disabled: boolean;
131
+ ui: any;
134
132
  max: number;
135
- min: number;
136
- inputClass: string;
137
133
  step: number;
134
+ id: string;
135
+ modelValue: number;
136
+ inputClass: string;
137
+ min: number;
138
138
  }, {}>;
139
139
  export default _default;
@@ -2,7 +2,7 @@ import type { PropType, ComputedRef } from 'vue';
2
2
  import type { SelectSize, SelectVariant } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
5
+ type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  };
8
8
  id: {
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onChange: (event: Event) => void;
124
124
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
125
125
  modelValue: {
126
- type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
126
+ type: (StringConstructor | ObjectConstructor | NumberConstructor)[];
127
127
  default: string;
128
128
  };
129
129
  id: {
@@ -218,29 +218,29 @@ declare const _default: import("vue").DefineComponent<{
218
218
  default: () => {};
219
219
  };
220
220
  }>> & {
221
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
222
221
  onChange?: ((...args: any[]) => any) | undefined;
222
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
223
223
  }, {
224
224
  size: SelectSize;
225
- ui: any;
226
- id: string;
227
- icon: string;
228
- color: any;
229
- class: any;
230
- options: unknown[];
231
225
  name: string;
232
- modelValue: string | number | Record<string, any>;
226
+ required: boolean;
227
+ class: any;
233
228
  leading: boolean;
229
+ color: any;
234
230
  variant: SelectVariant;
235
- loading: boolean;
236
231
  disabled: boolean;
237
- placeholder: string;
232
+ ui: any;
233
+ loading: boolean;
238
234
  padded: boolean;
235
+ icon: string;
239
236
  loadingIcon: string;
240
237
  leadingIcon: string;
241
238
  trailingIcon: string;
242
239
  trailing: boolean;
243
- required: boolean;
240
+ id: string;
241
+ modelValue: string | number | Record<string, any>;
242
+ placeholder: string;
243
+ options: unknown[];
244
244
  optionAttribute: string;
245
245
  valueAttribute: string;
246
246
  selectClass: string;
@@ -243,6 +243,10 @@ export default defineComponent({
243
243
  type: String,
244
244
  default: "Search..."
245
245
  },
246
+ searchableLazy: {
247
+ type: Boolean,
248
+ default: false
249
+ },
246
250
  clearSearchOnClose: {
247
251
  type: Boolean,
248
252
  default: () => configMenu.default.clearSearchOnClose
@@ -439,6 +443,8 @@ export default defineComponent({
439
443
  return child !== null && child !== void 0 && String(child).search(new RegExp(query.value, "i")) !== -1;
440
444
  });
441
445
  });
446
+ }, [], {
447
+ lazy: props.searchableLazy
442
448
  });
443
449
  const createOption = computed(() => {
444
450
  if (query.value === "") {
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
2
2
  import type { SelectSize, SelectVariant, PopperOptions } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
5
+ type: (StringConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  };
8
8
  query: {
@@ -80,6 +80,10 @@ declare const _default: import("vue").DefineComponent<{
80
80
  type: StringConstructor;
81
81
  default: string;
82
82
  };
83
+ searchableLazy: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
83
87
  clearSearchOnClose: {
84
88
  type: BooleanConstructor;
85
89
  default: () => any;
@@ -179,9 +183,9 @@ declare const _default: import("vue").DefineComponent<{
179
183
  query: import("vue").WritableComputedRef<string>;
180
184
  onUpdate: (value: any) => void;
181
185
  onQueryChange: (event: any) => void;
182
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:modelValue" | "open" | "update:query")[], "change" | "close" | "update:modelValue" | "open" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
186
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "open" | "close" | "update:query")[], "change" | "update:modelValue" | "open" | "close" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
183
187
  modelValue: {
184
- type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
188
+ type: (StringConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
185
189
  default: string;
186
190
  };
187
191
  query: {
@@ -259,6 +263,10 @@ declare const _default: import("vue").DefineComponent<{
259
263
  type: StringConstructor;
260
264
  default: string;
261
265
  };
266
+ searchableLazy: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
262
270
  clearSearchOnClose: {
263
271
  type: BooleanConstructor;
264
272
  default: () => any;
@@ -331,38 +339,38 @@ declare const _default: import("vue").DefineComponent<{
331
339
  default: () => {};
332
340
  };
333
341
  }>> & {
334
- onClose?: ((...args: any[]) => any) | undefined;
335
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
336
342
  onChange?: ((...args: any[]) => any) | undefined;
343
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
337
344
  onOpen?: ((...args: any[]) => any) | undefined;
345
+ onClose?: ((...args: any[]) => any) | undefined;
338
346
  "onUpdate:query"?: ((...args: any[]) => any) | undefined;
339
347
  }, {
340
348
  size: SelectSize;
341
- ui: any;
342
- id: string;
343
- icon: string;
344
- color: any;
345
- class: any;
346
- options: string[] | {
347
- [key: string]: any;
348
- disabled?: boolean | undefined;
349
- }[];
350
- popper: PopperOptions;
351
349
  name: string;
352
- modelValue: string | number | boolean | unknown[] | Record<string, any>;
350
+ required: boolean;
351
+ class: any;
353
352
  leading: boolean;
353
+ popper: PopperOptions;
354
+ color: any;
354
355
  variant: SelectVariant;
355
- by: string;
356
- loading: boolean;
357
356
  disabled: boolean;
358
- multiple: boolean;
359
- placeholder: string;
357
+ ui: any;
358
+ loading: boolean;
360
359
  padded: boolean;
360
+ icon: string;
361
361
  loadingIcon: string;
362
362
  leadingIcon: string;
363
363
  trailingIcon: string;
364
364
  trailing: boolean;
365
- required: boolean;
365
+ id: string;
366
+ modelValue: string | number | boolean | Record<string, any> | unknown[];
367
+ by: string;
368
+ multiple: boolean;
369
+ placeholder: string;
370
+ options: string[] | {
371
+ [key: string]: any;
372
+ disabled?: boolean | undefined;
373
+ }[];
366
374
  query: string;
367
375
  selectedIcon: string;
368
376
  optionAttribute: string;
@@ -373,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
373
381
  selectClass: string;
374
382
  searchable: boolean | ((query: string) => Promise<any[]> | any[]);
375
383
  searchablePlaceholder: string;
384
+ searchableLazy: boolean;
376
385
  clearSearchOnClose: boolean;
377
386
  creatable: boolean;
378
387
  showCreateOptionWhen: "empty" | "always";
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
2
2
  import type { TextareaSize, TextareaVariant } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: (NumberConstructor | StringConstructor)[];
5
+ type: (StringConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  };
8
8
  id: {
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
102
102
  onBlur: (event: FocusEvent) => void;
103
103
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
104
104
  modelValue: {
105
- type: (NumberConstructor | StringConstructor)[];
105
+ type: (StringConstructor | NumberConstructor)[];
106
106
  default: string;
107
107
  };
108
108
  id: {
@@ -189,24 +189,24 @@ declare const _default: import("vue").DefineComponent<{
189
189
  default: () => {};
190
190
  };
191
191
  }>> & {
192
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
193
- onChange?: ((...args: any[]) => any) | undefined;
194
192
  onBlur?: ((...args: any[]) => any) | undefined;
193
+ onChange?: ((...args: any[]) => any) | undefined;
194
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
195
195
  }, {
196
- resize: boolean;
197
196
  size: TextareaSize;
197
+ name: string;
198
+ required: boolean;
199
+ class: any;
200
+ resize: boolean;
201
+ color: any;
202
+ variant: TextareaVariant;
203
+ disabled: boolean;
198
204
  ui: any;
205
+ padded: boolean;
199
206
  id: string;
200
- color: any;
201
- class: any;
202
- name: string;
203
207
  modelValue: string | number;
204
- variant: TextareaVariant;
205
208
  rows: number;
206
- disabled: boolean;
207
209
  placeholder: string;
208
- padded: boolean;
209
- required: boolean;
210
210
  autofocus: boolean;
211
211
  autofocusDelay: number;
212
212
  modelModifiers: {
@@ -116,19 +116,19 @@ declare const _default: import("vue").DefineComponent<{
116
116
  default: () => {};
117
117
  };
118
118
  }>> & {
119
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
120
119
  onChange?: ((...args: any[]) => any) | undefined;
120
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
121
121
  }, {
122
122
  size: ToggleSize;
123
- ui: any;
124
- id: string;
125
- color: any;
126
- class: any;
127
123
  name: string;
128
- modelValue: boolean;
129
- loading: boolean;
124
+ class: any;
125
+ color: any;
130
126
  disabled: boolean;
127
+ ui: any;
128
+ loading: boolean;
131
129
  loadingIcon: string;
130
+ id: string;
131
+ modelValue: boolean;
132
132
  onIcon: string;
133
133
  offIcon: string;
134
134
  }, {}>;
@@ -32,8 +32,8 @@ declare const _default: import("vue").DefineComponent<{
32
32
  default: () => {};
33
33
  };
34
34
  }>>, {
35
- ui: any;
36
35
  class: any;
37
36
  as: string;
37
+ ui: any;
38
38
  }, {}>;
39
39
  export default _default;
@@ -32,8 +32,8 @@ declare const _default: import("vue").DefineComponent<{
32
32
  default: () => {};
33
33
  };
34
34
  }>>, {
35
- ui: any;
36
35
  class: any;
37
36
  as: string;
37
+ ui: any;
38
38
  }, {}>;
39
39
  export default _default;
@@ -81,13 +81,13 @@ declare const _default: import("vue").DefineComponent<{
81
81
  default: () => {};
82
82
  };
83
83
  }>>, {
84
- orientation: "horizontal" | "vertical";
85
84
  size: DividerSize;
86
- ui: any;
87
- icon: string;
88
- avatar: Avatar;
89
85
  type: "solid" | "dotted" | "dashed";
90
- class: any;
91
86
  label: string;
87
+ class: any;
88
+ avatar: Avatar;
89
+ orientation: "horizontal" | "vertical";
90
+ ui: any;
91
+ icon: string;
92
92
  }, {}>;
93
93
  export default _default;
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  default: () => {};
25
25
  };
26
26
  }>>, {
27
- ui: any;
28
27
  class: any;
28
+ ui: any;
29
29
  }, {}>;
30
30
  export default _default;
@@ -7,6 +7,7 @@
7
7
  :class="[ui.base, index === links.length - 1 ? ui.active : !!link.to ? ui.inactive : '']"
8
8
  v-bind="getULinkProps(link)"
9
9
  :aria-current="index === links.length - 1 ? 'page' : undefined"
10
+ @click="link.click"
10
11
  >
11
12
  <slot name="icon" :link="link" :index="index" :is-active="index === links.length - 1">
12
13
  <UIcon
@@ -44,8 +44,8 @@ declare const _default: import("vue").DefineComponent<{
44
44
  default: () => {};
45
45
  };
46
46
  }>>, {
47
- ui: any;
48
47
  class: any;
48
+ ui: any;
49
49
  divider: string;
50
50
  links: BreadcrumbLink[];
51
51
  }, {}>;
@@ -3,7 +3,7 @@ import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
3
3
  import type { Group, Command, Button } from '../../types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  modelValue: {
6
- type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
6
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
7
7
  default: null;
8
8
  };
9
9
  by: {
@@ -110,9 +110,9 @@ declare const _default: import("vue").DefineComponent<{
110
110
  emptyState: ComputedRef<any>;
111
111
  onSelect: (option: Command | Command[]) => void;
112
112
  onClear: () => void;
113
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue")[], "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
113
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "close")[], "update:modelValue" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
114
114
  modelValue: {
115
- type: (ObjectConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
115
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
116
116
  default: null;
117
117
  };
118
118
  by: {
@@ -200,16 +200,16 @@ declare const _default: import("vue").DefineComponent<{
200
200
  default: () => {};
201
201
  };
202
202
  }>> & {
203
- onClose?: ((...args: any[]) => any) | undefined;
204
203
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
204
+ onClose?: ((...args: any[]) => any) | undefined;
205
205
  }, {
206
+ class: any;
206
207
  ui: any;
208
+ loading: boolean;
207
209
  icon: string;
208
- closeButton: Button;
209
- class: any;
210
- modelValue: string | number | unknown[] | Record<string, any>;
210
+ loadingIcon: string;
211
+ modelValue: string | number | Record<string, any> | unknown[];
211
212
  by: string;
212
- loading: boolean;
213
213
  emptyState: {
214
214
  icon: string;
215
215
  label: string;
@@ -217,14 +217,14 @@ declare const _default: import("vue").DefineComponent<{
217
217
  };
218
218
  multiple: boolean;
219
219
  placeholder: string;
220
- loadingIcon: string;
220
+ closeButton: Button;
221
221
  nullable: boolean;
222
222
  selectedIcon: string;
223
223
  debounce: number;
224
224
  searchable: boolean;
225
- groups: Group[];
226
225
  groupAttribute: string;
227
226
  commandAttribute: string;
227
+ groups: Group[];
228
228
  autoselect: boolean;
229
229
  autoclear: boolean;
230
230
  fuse: UseFuseOptions<Command>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<{
37
37
  default: () => {};
38
38
  };
39
39
  }>>, {
40
- ui: any;
41
40
  class: any;
41
+ ui: any;
42
42
  links: HorizontalNavigationLink[] | HorizontalNavigationLink[][];
43
43
  }, {}>;
44
44
  export default _default;
@@ -29,6 +29,7 @@
29
29
  <UButton
30
30
  v-for="(page, index) of displayedPages"
31
31
  :key="`${page}-${index}`"
32
+ :to="typeof page === 'number' ? to?.(page) : null"
32
33
  :size="size"
33
34
  :disabled="disabled"
34
35
  :label="`${page}`"
@@ -111,6 +112,10 @@ export default defineComponent({
111
112
  return Object.keys(buttonConfig.size).includes(value);
112
113
  }
113
114
  },
115
+ to: {
116
+ type: Function,
117
+ default: null
118
+ },
114
119
  activeButton: {
115
120
  type: Object,
116
121
  default: () => config.default.activeButton