@quidgest/ui 0.15.8 → 0.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 (99) hide show
  1. package/dist/manifest/components.json +4 -1
  2. package/dist/ui.css +9 -6
  3. package/dist/ui.esm.js +3559 -3456
  4. package/dist/ui.js +26 -26
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +738 -731
  7. package/dist/ui.scss +11 -7
  8. package/esm/components/QAccordion/QAccordion.d.ts +4 -3
  9. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  10. package/esm/components/QAccordion/QAccordion.vue.js +21 -17
  11. package/esm/components/QAccordion/QAccordionItem.d.ts +19 -0
  12. package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -0
  13. package/esm/components/QAccordion/QAccordionItem.vue.js +42 -0
  14. package/esm/components/QAccordion/QAccordionItem.vue2.js +4 -0
  15. package/esm/components/QAccordion/index.d.ts +35 -15
  16. package/esm/components/QAccordion/index.d.ts.map +1 -1
  17. package/esm/components/QAccordion/index.js +6 -4
  18. package/esm/components/QAccordion/types.d.ts +25 -5
  19. package/esm/components/QAccordion/types.d.ts.map +1 -1
  20. package/esm/components/QButton/QButton.d.ts.map +1 -1
  21. package/esm/components/QButton/QButton.vue.js +9 -11
  22. package/esm/components/QButton/types.d.ts +0 -4
  23. package/esm/components/QButton/types.d.ts.map +1 -1
  24. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  25. package/esm/components/QCollapsible/QCollapsible.vue.js +60 -65
  26. package/esm/components/QCollapsible/index.d.ts +14 -14
  27. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  28. package/esm/components/QCombobox/QCombobox.d.ts +44 -49
  29. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  30. package/esm/components/QCombobox/QCombobox.vue.js +71 -71
  31. package/esm/components/QCombobox/index.d.ts +40 -59
  32. package/esm/components/QCombobox/index.d.ts.map +1 -1
  33. package/esm/components/QCombobox/types.d.ts +4 -9
  34. package/esm/components/QCombobox/types.d.ts.map +1 -1
  35. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +2 -3
  36. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  37. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +45 -46
  38. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  39. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +24 -24
  40. package/esm/components/QDropdownMenu/index.d.ts +2 -2
  41. package/esm/components/QList/QList.d.ts +15 -16
  42. package/esm/components/QList/QList.d.ts.map +1 -1
  43. package/esm/components/QList/QList.vue.js +46 -46
  44. package/esm/components/QList/QListItem.d.ts +1 -1
  45. package/esm/components/QList/QListItem.vue.js +19 -19
  46. package/esm/components/QList/index.d.ts +24 -24
  47. package/esm/components/QList/types.d.ts +3 -4
  48. package/esm/components/QList/types.d.ts.map +1 -1
  49. package/esm/components/QRadioGroup/QRadioButton.vue.js +3 -3
  50. package/esm/components/QRadioGroup/QRadioGroup.d.ts +3 -4
  51. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  52. package/esm/components/QRadioGroup/QRadioGroup.vue.js +8 -8
  53. package/esm/components/QRadioGroup/index.d.ts +8 -8
  54. package/esm/components/QSelect/QSelect.d.ts +44 -47
  55. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  56. package/esm/components/QSelect/QSelect.vue.js +49 -49
  57. package/esm/components/QSelect/index.d.ts +40 -58
  58. package/esm/components/QSelect/index.d.ts.map +1 -1
  59. package/esm/components/QSelect/types.d.ts +4 -9
  60. package/esm/components/QSelect/types.d.ts.map +1 -1
  61. package/esm/components/{QButtonToggle/QButtonToggle.d.ts → QToggle/QToggle.d.ts} +11 -9
  62. package/esm/components/QToggle/QToggle.d.ts.map +1 -0
  63. package/esm/components/QToggle/QToggle.vue.js +40 -0
  64. package/esm/components/QToggle/QToggle.vue2.js +4 -0
  65. package/esm/components/QToggle/index.d.ts +71 -0
  66. package/esm/components/QToggle/index.d.ts.map +1 -0
  67. package/esm/components/{QButtonToggle → QToggle}/index.js +3 -3
  68. package/esm/components/QToggle/types.d.ts +3 -0
  69. package/esm/components/QToggle/types.d.ts.map +1 -0
  70. package/esm/components/QToggleGroup/QToggleGroup.d.ts +28 -0
  71. package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -0
  72. package/esm/components/QToggleGroup/QToggleGroup.vue.js +49 -0
  73. package/esm/components/QToggleGroup/QToggleGroup.vue2.js +4 -0
  74. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +19 -0
  75. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -0
  76. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +44 -0
  77. package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +4 -0
  78. package/esm/components/QToggleGroup/index.d.ts +75 -0
  79. package/esm/components/QToggleGroup/index.d.ts.map +1 -0
  80. package/esm/components/QToggleGroup/index.js +8 -0
  81. package/esm/components/QToggleGroup/types.d.ts +19 -0
  82. package/esm/components/QToggleGroup/types.d.ts.map +1 -0
  83. package/esm/components/index.d.ts +2 -1
  84. package/esm/components/index.d.ts.map +1 -1
  85. package/esm/components/index.js +83 -79
  86. package/esm/composables/{group.d.ts → useGroup/index.d.ts} +11 -3
  87. package/esm/composables/useGroup/index.d.ts.map +1 -0
  88. package/esm/composables/useGroup/index.js +38 -0
  89. package/esm/index.d.ts +4 -1
  90. package/package.json +1 -1
  91. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +0 -1
  92. package/esm/components/QButtonToggle/QButtonToggle.vue.js +0 -62
  93. package/esm/components/QButtonToggle/QButtonToggle.vue2.js +0 -4
  94. package/esm/components/QButtonToggle/index.d.ts +0 -51
  95. package/esm/components/QButtonToggle/index.d.ts.map +0 -1
  96. package/esm/components/QButtonToggle/types.d.ts +0 -29
  97. package/esm/components/QButtonToggle/types.d.ts.map +0 -1
  98. package/esm/composables/group.d.ts.map +0 -1
  99. package/esm/composables/group.js +0 -31
@@ -1,6 +1,6 @@
1
1
  declare const QSelect: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- modelValue?: import('../../types/primitive').Primitive;
3
+ modelValue?: any;
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
5
  label?: string;
6
6
  for?: string;
@@ -12,27 +12,23 @@ declare const QSelect: {
12
12
  required?: boolean;
13
13
  invalid?: boolean;
14
14
  } & {
15
- items?: (Omit<import('..').QListItemProps, "value" | "label"> & {
16
- [key: string]: any;
17
- })[];
18
- groups?: (import('..').QListItemGroupProps & {
19
- id: string;
20
- })[];
15
+ items?: import('../QList/types').Item[];
16
+ groups?: import('../QList/types').Group[];
21
17
  itemValue?: string;
22
18
  itemLabel?: string;
23
19
  clearable?: boolean;
24
20
  loading?: boolean;
25
- emptyValue?: import('../../types/primitive').Primitive;
21
+ emptyValue?: any;
26
22
  icons?: typeof import('./types').DEFAULT_ICONS;
27
23
  texts?: typeof import('./types').DEFAULT_TEXTS;
28
24
  }> & Readonly<{
29
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
26
  "onBefore-show"?: (() => any) | undefined;
31
27
  "onBefore-hide"?: (() => any) | undefined;
32
28
  onShow?: (() => any) | undefined;
33
29
  onHide?: (() => any) | undefined;
34
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
- "update:modelValue": (value: import('../../types/primitive').Primitive) => any;
31
+ "update:modelValue": (value: any) => any;
36
32
  } & {
37
33
  "before-show": () => any;
38
34
  "before-hide": () => any;
@@ -41,9 +37,7 @@ declare const QSelect: {
41
37
  }, import('vue').PublicProps, {
42
38
  icons: typeof import('./types').DEFAULT_ICONS;
43
39
  texts: typeof import('./types').DEFAULT_TEXTS;
44
- groups: (import('..').QListItemGroupProps & {
45
- id: string;
46
- })[];
40
+ groups: import('../QList/types').Group[];
47
41
  itemValue: string;
48
42
  itemLabel: string;
49
43
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -121,18 +115,18 @@ declare const QSelect: {
121
115
  $: import('vue').ComponentInternalInstance;
122
116
  $data: {};
123
117
  $props: {
124
- readonly modelValue?: import('../../types/primitive').Primitive | undefined;
118
+ readonly modelValue?: any;
125
119
  readonly id?: string | undefined;
126
120
  readonly class?: string | unknown[] | undefined;
127
- readonly highlighted?: import('../../types/primitive').Primitive | undefined;
121
+ readonly highlighted?: any;
128
122
  readonly items?: import('../QList/types').Item[] | undefined;
129
123
  readonly groups?: import('../QList/types').Group[] | undefined;
130
124
  readonly itemValue?: string | undefined;
131
125
  readonly itemLabel?: string | undefined;
132
126
  readonly disabled?: boolean | undefined;
133
127
  readonly selectable?: boolean | undefined;
134
- readonly "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
135
- readonly onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
128
+ readonly onClick?: ((key: any) => any) | undefined;
129
+ readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
136
130
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
137
131
  $attrs: {
138
132
  [x: string]: unknown;
@@ -146,7 +140,7 @@ declare const QSelect: {
146
140
  $data: {};
147
141
  $props: {
148
142
  readonly modelValue?: boolean | undefined;
149
- readonly value: import('../../types/primitive').Primitive;
143
+ readonly value: any;
150
144
  readonly label: string;
151
145
  readonly icon?: import('..').Icon | undefined;
152
146
  readonly selectable?: boolean | undefined;
@@ -154,8 +148,8 @@ declare const QSelect: {
154
148
  readonly disabled?: boolean | undefined;
155
149
  readonly description?: string | undefined;
156
150
  readonly icons?: typeof import('../QList/types').DEFAULT_ICONS | undefined;
157
- readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
158
151
  readonly onClick?: (() => any) | undefined;
152
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
159
153
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
160
154
  $attrs: {
161
155
  [x: string]: unknown;
@@ -169,13 +163,13 @@ declare const QSelect: {
169
163
  $root: import('vue').ComponentPublicInstance | null;
170
164
  $parent: import('vue').ComponentPublicInstance | null;
171
165
  $host: Element | null;
172
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
166
+ $emit: ((event: "click") => void) & ((event: "update:modelValue", value: boolean) => void);
173
167
  $el: HTMLLIElement;
174
168
  $options: import('vue').ComponentOptionsBase<Readonly<{
175
169
  modelValue?: boolean;
176
170
  } & import('..').QListItemProps> & Readonly<{
177
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
178
171
  onClick?: (() => any) | undefined;
172
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
179
173
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
180
174
  "update:modelValue": (value: boolean) => any;
181
175
  } & {
@@ -207,8 +201,8 @@ declare const QSelect: {
207
201
  }> & Omit<Readonly<{
208
202
  modelValue?: boolean;
209
203
  } & import('..').QListItemProps> & Readonly<{
210
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
211
204
  onClick?: (() => any) | undefined;
205
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
212
206
  }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
213
207
  $slots: {
214
208
  prepend?(_: {}): any;
@@ -223,12 +217,12 @@ declare const QSelect: {
223
217
  $root: import('vue').ComponentPublicInstance | null;
224
218
  $parent: import('vue').ComponentPublicInstance | null;
225
219
  $host: Element | null;
226
- $emit: ((event: "update:modelValue", value: import('../../types/primitive').Primitive) => void) & ((event: "click", key: import('../../types/primitive').Primitive) => void);
220
+ $emit: ((event: "click", key: any) => void) & ((event: "update:modelValue", value: any) => void);
227
221
  $el: any;
228
222
  $options: import('vue').ComponentOptionsBase<Readonly<{
229
- modelValue?: import('../../types/primitive').Primitive;
223
+ modelValue?: any;
230
224
  } & import('../../types/component').QBaseComponentProps & {
231
- highlighted?: import('../../types/primitive').Primitive;
225
+ highlighted?: any;
232
226
  items?: import('../QList/types').Item[];
233
227
  groups?: import('../QList/types').Group[];
234
228
  itemValue?: string;
@@ -236,17 +230,17 @@ declare const QSelect: {
236
230
  disabled?: boolean;
237
231
  selectable?: boolean;
238
232
  }> & Readonly<{
239
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
240
- onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
233
+ onClick?: ((key: any) => any) | undefined;
234
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
241
235
  }>, {
242
236
  getItem: (idx: number) => HTMLElement | undefined;
243
237
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
244
238
  getFirstFocusableItemIndex: () => number;
245
239
  getLastFocusableItemIndex: () => number;
246
240
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
247
- "update:modelValue": (value: import('../../types/primitive').Primitive) => any;
241
+ "update:modelValue": (value: any) => any;
248
242
  } & {
249
- click: (key: import('../../types/primitive').Primitive) => any;
243
+ click: (key: any) => any;
250
244
  }, string, {
251
245
  groups: import('../QList/types').Group[];
252
246
  itemValue: string;
@@ -276,9 +270,9 @@ declare const QSelect: {
276
270
  itemValue: string;
277
271
  itemLabel: string;
278
272
  }> & Omit<Readonly<{
279
- modelValue?: import('../../types/primitive').Primitive;
273
+ modelValue?: any;
280
274
  } & import('../../types/component').QBaseComponentProps & {
281
- highlighted?: import('../../types/primitive').Primitive;
275
+ highlighted?: any;
282
276
  items?: import('../QList/types').Item[];
283
277
  groups?: import('../QList/types').Group[];
284
278
  itemValue?: string;
@@ -286,8 +280,8 @@ declare const QSelect: {
286
280
  disabled?: boolean;
287
281
  selectable?: boolean;
288
282
  }> & Readonly<{
289
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
290
- onClick?: ((key: import('../../types/primitive').Primitive) => any) | undefined;
283
+ onClick?: ((key: any) => any) | undefined;
284
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
291
285
  }>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
292
286
  getItem: (idx: number) => HTMLElement | undefined;
293
287
  getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
@@ -313,7 +307,7 @@ declare const QSelect: {
313
307
  M: {};
314
308
  Defaults: {};
315
309
  }, Readonly<{
316
- modelValue?: import('../../types/primitive').Primitive;
310
+ modelValue?: any;
317
311
  } & import('../../types/component').QBaseComponentProps & {
318
312
  label?: string;
319
313
  for?: string;
@@ -325,21 +319,17 @@ declare const QSelect: {
325
319
  required?: boolean;
326
320
  invalid?: boolean;
327
321
  } & {
328
- items?: (Omit<import('..').QListItemProps, "value" | "label"> & {
329
- [key: string]: any;
330
- })[];
331
- groups?: (import('..').QListItemGroupProps & {
332
- id: string;
333
- })[];
322
+ items?: import('../QList/types').Item[];
323
+ groups?: import('../QList/types').Group[];
334
324
  itemValue?: string;
335
325
  itemLabel?: string;
336
326
  clearable?: boolean;
337
327
  loading?: boolean;
338
- emptyValue?: import('../../types/primitive').Primitive;
328
+ emptyValue?: any;
339
329
  icons?: typeof import('./types').DEFAULT_ICONS;
340
330
  texts?: typeof import('./types').DEFAULT_TEXTS;
341
331
  }> & Readonly<{
342
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
332
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
343
333
  "onBefore-show"?: (() => any) | undefined;
344
334
  "onBefore-hide"?: (() => any) | undefined;
345
335
  onShow?: (() => any) | undefined;
@@ -347,9 +337,7 @@ declare const QSelect: {
347
337
  }>, {}, {}, {}, {}, {
348
338
  icons: typeof import('./types').DEFAULT_ICONS;
349
339
  texts: typeof import('./types').DEFAULT_TEXTS;
350
- groups: (import('..').QListItemGroupProps & {
351
- id: string;
352
- })[];
340
+ groups: import('../QList/types').Group[];
353
341
  itemValue: string;
354
342
  itemLabel: string;
355
343
  }>;
@@ -357,7 +345,7 @@ declare const QSelect: {
357
345
  __isTeleport?: never;
358
346
  __isSuspense?: never;
359
347
  } & import('vue').ComponentOptionsBase<Readonly<{
360
- modelValue?: import('../../types/primitive').Primitive;
348
+ modelValue?: any;
361
349
  } & import('../../types/component').QBaseComponentProps & {
362
350
  label?: string;
363
351
  for?: string;
@@ -369,27 +357,23 @@ declare const QSelect: {
369
357
  required?: boolean;
370
358
  invalid?: boolean;
371
359
  } & {
372
- items?: (Omit<import('..').QListItemProps, "value" | "label"> & {
373
- [key: string]: any;
374
- })[];
375
- groups?: (import('..').QListItemGroupProps & {
376
- id: string;
377
- })[];
360
+ items?: import('../QList/types').Item[];
361
+ groups?: import('../QList/types').Group[];
378
362
  itemValue?: string;
379
363
  itemLabel?: string;
380
364
  clearable?: boolean;
381
365
  loading?: boolean;
382
- emptyValue?: import('../../types/primitive').Primitive;
366
+ emptyValue?: any;
383
367
  icons?: typeof import('./types').DEFAULT_ICONS;
384
368
  texts?: typeof import('./types').DEFAULT_TEXTS;
385
369
  }> & Readonly<{
386
- "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
370
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
387
371
  "onBefore-show"?: (() => any) | undefined;
388
372
  "onBefore-hide"?: (() => any) | undefined;
389
373
  onShow?: (() => any) | undefined;
390
374
  onHide?: (() => any) | undefined;
391
375
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
392
- "update:modelValue": (value: import('../../types/primitive').Primitive) => any;
376
+ "update:modelValue": (value: any) => any;
393
377
  } & {
394
378
  "before-show": () => any;
395
379
  "before-hide": () => any;
@@ -398,9 +382,7 @@ declare const QSelect: {
398
382
  }, string, {
399
383
  icons: typeof import('./types').DEFAULT_ICONS;
400
384
  texts: typeof import('./types').DEFAULT_TEXTS;
401
- groups: (import('..').QListItemGroupProps & {
402
- id: string;
403
- })[];
385
+ groups: import('../QList/types').Group[];
404
386
  itemValue: string;
405
387
  itemLabel: string;
406
388
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,19 +1,14 @@
1
1
  import { QFieldProps } from '../QField';
2
- import { QListItemGroupProps, QListItemProps } from '../QList';
3
- import { Primitive } from '../../types/primitive';
2
+ import { Group, Item } from '../QList/types';
4
3
  export type QSelectProps = QFieldProps & {
5
4
  /**
6
5
  * The list of available items for selection.
7
6
  */
8
- items?: (Omit<QListItemProps, 'value' | 'label'> & {
9
- [key: string]: any;
10
- })[];
7
+ items?: Item[];
11
8
  /**
12
9
  * The item groups used for organizing the available items.
13
10
  */
14
- groups?: (QListItemGroupProps & {
15
- id: string;
16
- })[];
11
+ groups?: Group[];
17
12
  /**
18
13
  * Property on each item that contains its value.
19
14
  */
@@ -34,7 +29,7 @@ export type QSelectProps = QFieldProps & {
34
29
  * The value to be used in comparisons,
35
30
  * used to check if the field has a selected item.
36
31
  */
37
- emptyValue?: Primitive;
32
+ emptyValue?: any;
38
33
  /**
39
34
  * Custom icon configurations.
40
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;QAGlD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAClB,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,mBAAmB,GAAG;QAC/B,EAAE,EAAE,MAAM,CAAA;KACV,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAGM,CAAA"}
@@ -1,20 +1,22 @@
1
- import { QButtonToggleProps } from './types';
2
- type __VLS_Props = QButtonToggleProps;
1
+ import { QToggleProps } from './types';
2
+ type __VLS_Props = QToggleProps;
3
3
  type __VLS_PublicProps = {
4
- modelValue?: string;
4
+ modelValue?: boolean;
5
5
  } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
- slots: Partial<Record<string, (_: {}) => any>>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
9
11
  refs: {};
10
- rootEl: HTMLDivElement;
12
+ rootEl: HTMLButtonElement;
11
13
  };
12
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
15
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:modelValue": (value: string) => any;
16
+ "update:modelValue": (value: boolean) => any;
15
17
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
18
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
21
  export default _default;
20
22
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -22,4 +24,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
22
24
  $slots: S;
23
25
  };
24
26
  };
25
- //# sourceMappingURL=QButtonToggle.vue.d.ts.map
27
+ //# sourceMappingURL=QToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/QToggle.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAoBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;gGAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { defineComponent as s, mergeModels as r, useModel as c, computed as d, createBlock as u, openBlock as p, unref as i, mergeProps as m, withCtx as g, renderSlot as f } from "vue";
2
+ import { QButton as B } from "../QButton/index.js";
3
+ const k = /* @__PURE__ */ s({
4
+ __name: "QToggle",
5
+ props: /* @__PURE__ */ r({
6
+ id: {},
7
+ class: {},
8
+ label: {},
9
+ variant: {},
10
+ color: {},
11
+ disabled: { type: Boolean },
12
+ borderless: { type: Boolean },
13
+ elevated: { type: Boolean },
14
+ block: { type: Boolean },
15
+ loading: { type: Boolean },
16
+ size: {},
17
+ iconPos: {},
18
+ pill: { type: Boolean }
19
+ }, {
20
+ modelValue: { type: Boolean },
21
+ modelModifiers: {}
22
+ }),
23
+ emits: ["update:modelValue"],
24
+ setup(o) {
25
+ const l = o, e = c(o, "modelValue"), t = d(() => ["q-toggle", { "q-toggle--active": e.value }]);
26
+ function a() {
27
+ e.value = !e.value;
28
+ }
29
+ return (n, v) => (p(), u(i(B), m({ class: t.value }, l, { onClick: a }), {
30
+ default: g(() => [
31
+ f(n.$slots, "default")
32
+ ]),
33
+ _: 3
34
+ /* FORWARDED */
35
+ }, 16, ["class"]));
36
+ }
37
+ });
38
+ export {
39
+ k as default
40
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QToggle.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,71 @@
1
+ declare const QToggle: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ modelValue?: boolean;
4
+ } & import('../../types/component').QBaseComponentProps & {
5
+ label?: string;
6
+ variant?: import('../QButton/types').QButtonVariant;
7
+ color?: string;
8
+ disabled?: boolean;
9
+ borderless?: boolean;
10
+ elevated?: boolean;
11
+ block?: boolean;
12
+ loading?: boolean;
13
+ size?: import('../QButton/types').QButtonSize;
14
+ iconPos?: import('../QButton/types').QButtonIconPosition;
15
+ pill?: boolean;
16
+ }> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ "update:modelValue": (value: boolean) => any;
20
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<{
28
+ modelValue?: boolean;
29
+ } & import('../../types/component').QBaseComponentProps & {
30
+ label?: string;
31
+ variant?: import('../QButton/types').QButtonVariant;
32
+ color?: string;
33
+ disabled?: boolean;
34
+ borderless?: boolean;
35
+ elevated?: boolean;
36
+ block?: boolean;
37
+ loading?: boolean;
38
+ size?: import('../QButton/types').QButtonSize;
39
+ iconPos?: import('../QButton/types').QButtonIconPosition;
40
+ pill?: boolean;
41
+ }> & Readonly<{
42
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
43
+ }>, {}, {}, {}, {}, {}>;
44
+ __isFragment?: never;
45
+ __isTeleport?: never;
46
+ __isSuspense?: never;
47
+ } & import('vue').ComponentOptionsBase<Readonly<{
48
+ modelValue?: boolean;
49
+ } & import('../../types/component').QBaseComponentProps & {
50
+ label?: string;
51
+ variant?: import('../QButton/types').QButtonVariant;
52
+ color?: string;
53
+ disabled?: boolean;
54
+ borderless?: boolean;
55
+ elevated?: boolean;
56
+ block?: boolean;
57
+ loading?: boolean;
58
+ size?: import('../QButton/types').QButtonSize;
59
+ iconPos?: import('../QButton/types').QButtonIconPosition;
60
+ pill?: boolean;
61
+ }> & Readonly<{
62
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
64
+ "update:modelValue": (value: boolean) => any;
65
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
66
+ $slots: {
67
+ default?(_: {}): any;
68
+ };
69
+ });
70
+ export { QToggle };
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
- import o from "./QButtonToggle.vue.js";
1
+ import o from "./QToggle.vue.js";
2
2
  import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
- const p = r(o);
3
+ const t = r(o);
4
4
  export {
5
- p as QButtonToggle
5
+ t as QToggle
6
6
  };
@@ -0,0 +1,3 @@
1
+ import { QButtonProps } from '../QButton';
2
+ export type QToggleProps = QButtonProps;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,YAAY,GAAG,YAAY,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { Primitive } from '../../types/primitive';
2
+ import { QToggleGroupProps } from './types';
3
+ type __VLS_Props = QToggleGroupProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: Primitive | Primitive[];
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: Primitive | Primitive[]) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: Primitive | Primitive[]) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ //# sourceMappingURL=QToggleGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AAwDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { defineComponent as s, mergeModels as d, useModel as i, toRef as o, watch as u, createBlock as m, openBlock as p, unref as n, normalizeClass as c, withCtx as f, renderSlot as b } from "vue";
2
+ import { QButtonGroup as B } from "../QButtonGroup/index.js";
3
+ import { provideDefaults as v } from "../../composables/defaults.js";
4
+ import { useGroup as y } from "../../composables/useGroup/index.js";
5
+ const x = /* @__PURE__ */ s({
6
+ __name: "QToggleGroup",
7
+ props: /* @__PURE__ */ d({
8
+ id: {},
9
+ class: {},
10
+ disabled: { type: Boolean },
11
+ borderless: { type: Boolean },
12
+ elevated: { type: Boolean },
13
+ multiple: { type: Boolean },
14
+ required: { type: Boolean }
15
+ }, {
16
+ modelValue: { type: [String, Number, Boolean, Symbol, Array] },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: ["update:modelValue"],
20
+ setup(t) {
21
+ const e = t, r = i(t, "modelValue"), { active: a } = y({
22
+ active: r,
23
+ required: o(e, "required"),
24
+ multiple: o(e, "multiple")
25
+ });
26
+ return u(a, (l) => {
27
+ r.value = l;
28
+ }), v({
29
+ QToggleGroupItem: {
30
+ disabled: o(e, "disabled"),
31
+ borderless: o(e, "borderless")
32
+ }
33
+ }), (l, g) => (p(), m(n(B), {
34
+ id: e.id,
35
+ class: c(e.class),
36
+ elevated: e.elevated,
37
+ role: "listbox"
38
+ }, {
39
+ default: f(() => [
40
+ b(l.$slots, "default")
41
+ ]),
42
+ _: 3
43
+ /* FORWARDED */
44
+ }, 8, ["id", "class", "elevated"]));
45
+ }
46
+ });
47
+ export {
48
+ x as default
49
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QToggleGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,19 @@
1
+ import { QToggleGroupItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLButtonElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<QToggleGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //# sourceMappingURL=QToggleGroupItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAgBrD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,oUAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}