@quidgest/ui 0.15.7 → 0.15.9

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 (107) hide show
  1. package/dist/manifest/components.json +1 -0
  2. package/dist/ui.css +90 -1
  3. package/dist/ui.esm.js +4463 -4443
  4. package/dist/ui.js +18 -18
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +755 -754
  7. package/dist/ui.scss +31 -2
  8. package/esm/components/QAccordion/types.d.ts.map +1 -1
  9. package/esm/components/QBadge/types.d.ts.map +1 -1
  10. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  11. package/esm/components/QButton/QButton.d.ts.map +1 -1
  12. package/esm/components/QButton/QButton.vue.js +34 -32
  13. package/esm/components/QButton/types.d.ts +1 -1
  14. package/esm/components/QButton/types.d.ts.map +1 -1
  15. package/esm/components/QButtonGroup/types.d.ts.map +1 -1
  16. package/esm/components/QButtonToggle/types.d.ts.map +1 -1
  17. package/esm/components/QCard/types.d.ts.map +1 -1
  18. package/esm/components/QCheckbox/QCheckbox.vue.js +28 -28
  19. package/esm/components/QCheckbox/index.d.ts +18 -1
  20. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  21. package/esm/components/QCheckbox/index.js +6 -4
  22. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  23. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  24. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  25. package/esm/components/QCombobox/QCombobox.d.ts +78 -53
  26. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  27. package/esm/components/QCombobox/QCombobox.vue.js +53 -53
  28. package/esm/components/QCombobox/index.d.ts +55 -59
  29. package/esm/components/QCombobox/index.d.ts.map +1 -1
  30. package/esm/components/QCombobox/types.d.ts +4 -9
  31. package/esm/components/QCombobox/types.d.ts.map +1 -1
  32. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  33. package/esm/components/QDialog/types.d.ts.map +1 -1
  34. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -0
  35. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  36. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +15 -10
  37. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +90 -59
  38. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  39. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +39 -38
  40. package/esm/components/QDropdownMenu/index.d.ts +7 -4
  41. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  42. package/esm/components/QDropdownMenu/types.d.ts +4 -21
  43. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  44. package/esm/components/QFileUpload/QFileUpload.d.ts +1 -1
  45. package/esm/components/QFileUpload/types.d.ts.map +1 -1
  46. package/esm/components/QIcon/types.d.ts.map +1 -1
  47. package/esm/components/QInputGroup/QInputGroup.d.ts +1 -1
  48. package/esm/components/QInputGroup/types.d.ts.map +1 -1
  49. package/esm/components/QLabel/types.d.ts.map +1 -1
  50. package/esm/components/QLineLoader/types.d.ts.map +1 -1
  51. package/esm/components/QList/QList.d.ts +44 -24
  52. package/esm/components/QList/QList.d.ts.map +1 -1
  53. package/esm/components/QList/QList.vue.js +97 -93
  54. package/esm/components/QList/QListItem.d.ts +12 -6
  55. package/esm/components/QList/QListItem.d.ts.map +1 -1
  56. package/esm/components/QList/QListItem.vue.js +51 -49
  57. package/esm/components/QList/index.d.ts +60 -31
  58. package/esm/components/QList/index.d.ts.map +1 -1
  59. package/esm/components/QList/types.d.ts +3 -8
  60. package/esm/components/QList/types.d.ts.map +1 -1
  61. package/esm/components/QMeter/types.d.ts.map +1 -1
  62. package/esm/components/QOverlay/types.d.ts.map +1 -1
  63. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  64. package/esm/components/QPopover/types.d.ts.map +1 -1
  65. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  66. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  67. package/esm/components/QRadioGroup/QRadioGroup.d.ts +3 -4
  68. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  69. package/esm/components/QRadioGroup/QRadioGroup.vue.js +7 -7
  70. package/esm/components/QRadioGroup/index.d.ts +8 -8
  71. package/esm/components/QSelect/QSelect.d.ts +86 -61
  72. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  73. package/esm/components/QSelect/QSelect.vue.js +45 -45
  74. package/esm/components/QSelect/index.d.ts +55 -59
  75. package/esm/components/QSelect/index.d.ts.map +1 -1
  76. package/esm/components/QSelect/types.d.ts +4 -9
  77. package/esm/components/QSelect/types.d.ts.map +1 -1
  78. package/esm/components/QSkeletonLoader/types.d.ts.map +1 -1
  79. package/esm/components/QSpinnerLoader/types.d.ts.map +1 -1
  80. package/esm/components/QTextArea/types.d.ts.map +1 -1
  81. package/esm/components/QTextField/QTextField.d.ts +10 -10
  82. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  83. package/esm/components/QTextField/index.d.ts.map +1 -1
  84. package/esm/components/QTextField/types.d.ts.map +1 -1
  85. package/esm/components/QThemeProvider/types.d.ts.map +1 -1
  86. package/esm/components/QTooltip/types.d.ts.map +1 -1
  87. package/esm/components/__internal__/QChevron/types.d.ts.map +1 -1
  88. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +8 -8
  89. package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -1
  90. package/esm/components/index.js +63 -62
  91. package/esm/composables/defaults.js +4 -4
  92. package/esm/composables/theme.d.ts.map +1 -1
  93. package/esm/composables/theme.js +5 -5
  94. package/esm/composables/useColor/index.d.ts.map +1 -1
  95. package/esm/composables/useColor/index.js +27 -25
  96. package/esm/composables/useColor/types.d.ts +9 -1
  97. package/esm/composables/useColor/types.d.ts.map +1 -1
  98. package/esm/framework.d.ts +1 -1
  99. package/esm/framework.d.ts.map +1 -1
  100. package/esm/index.d.ts +1 -0
  101. package/esm/templates/theme.d.ts.map +1 -1
  102. package/esm/utils/color.d.ts +6 -0
  103. package/esm/utils/color.d.ts.map +1 -1
  104. package/esm/utils/color.js +16 -12
  105. package/esm/utils/theme.d.ts +1 -1
  106. package/esm/utils/theme.d.ts.map +1 -1
  107. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { QListItemGroupProps, QListItemProps } from '../QList';
2
1
  import { Appearance, Placement, Trigger } from '../../composables/overlay';
3
- import { Selector } from '../../utils/getElement';
4
2
  import { QBaseComponentProps } from '../../types/component';
3
+ import { Selector } from '../../utils/getElement';
4
+ import { Group, Item } from '../QList/types';
5
5
  export type QDropdownMenuProps = QBaseComponentProps & {
6
6
  /**
7
7
  * The DOM element used to activate the dropdown menu.
@@ -32,11 +32,11 @@ export type QDropdownMenuProps = QBaseComponentProps & {
32
32
  /**
33
33
  * The list of available items for selection.
34
34
  */
35
- items?: QDropdownMenuItemProps[];
35
+ items?: Item[];
36
36
  /**
37
37
  * The item groups used for organizing the available items.
38
38
  */
39
- groups?: QDropdownMenuGroupProps[];
39
+ groups?: Group[];
40
40
  /**
41
41
  * Property on each item that contains its value.
42
42
  */
@@ -68,23 +68,6 @@ export type QDropdownMenuContentProps = QDropdownMenuProps & {
68
68
  */
69
69
  depth?: number;
70
70
  };
71
- export type QDropdownMenuItemProps = Omit<QListItemProps, 'value' | 'label'> & {
72
- /**
73
- * The list of available items for selection.
74
- */
75
- items?: QDropdownMenuItemProps[];
76
- /**
77
- * The item groups used for organizing the available items.
78
- */
79
- groups?: QDropdownMenuGroupProps[];
80
- [key: string]: any;
81
- };
82
- export type QDropdownMenuGroupProps = QListItemGroupProps & {
83
- /**
84
- * Whether the entire item group is disabled.
85
- */
86
- disabled?: boolean;
87
- };
88
71
  export declare const DEFAULT_ICONS: {
89
72
  expand: {
90
73
  icon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EA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AC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC5D;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
20
20
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
21
  "onUpdate:modelValue"?: ((value: File) => any) | undefined;
22
22
  }>, {
23
- size: import('../QField').QFieldSize;
23
+ size: import('..').QFieldSize;
24
24
  icons: typeof DEFAULT_ICONS;
25
25
  texts: typeof DEFAULT_TEXTS;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAgBM,CAAA;AAGhC,eAAO,MAAM,aAAa;;;;;;;CAOQ,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAG5C,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAgBM,CAAA;AAGhC,eAAO,MAAM,aAAa;;;;;;;CAOQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -14,7 +14,7 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<QInputGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QInputGroupProps> & Readonly<{}>, {
17
- size: import('../QField').QFieldSize;
17
+ size: import('..').QFieldSize;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
20
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAA;CACjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLineLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { Group, QListProps } from './types';
2
- import { Primitive } from '../../types/primitive';
3
2
  type __VLS_Props = QListProps;
4
3
  declare function getItem(idx: number): HTMLElement | undefined;
5
4
  /**
@@ -29,7 +28,7 @@ declare function getLastFocusableItemIndex(): number;
29
28
  */
30
29
  declare function getAdjacentItemIndex(idx: number, direction: 'next' | 'prev'): number;
31
30
  type __VLS_PublicProps = {
32
- modelValue?: Primitive;
31
+ modelValue?: any;
33
32
  } & __VLS_Props;
34
33
  declare function __VLS_template(): {
35
34
  attrs: Partial<{}>;
@@ -49,16 +48,17 @@ declare function __VLS_template(): {
49
48
  $: import('vue').ComponentInternalInstance;
50
49
  $data: {};
51
50
  $props: {
52
- readonly value: Primitive;
51
+ readonly modelValue?: boolean | undefined;
52
+ readonly value: any;
53
53
  readonly label: string;
54
54
  readonly icon?: import('..').Icon | undefined;
55
55
  readonly selectable?: boolean | undefined;
56
- readonly selected?: boolean | undefined;
57
56
  readonly highlighted?: boolean | undefined;
58
57
  readonly disabled?: boolean | undefined;
59
58
  readonly description?: string | undefined;
60
59
  readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
61
- readonly onSelect?: ((value: Primitive) => any) | undefined;
60
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
61
+ readonly onClick?: (() => any) | undefined;
62
62
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
63
63
  $attrs: {
64
64
  [x: string]: unknown;
@@ -72,12 +72,17 @@ declare function __VLS_template(): {
72
72
  $root: import('vue').ComponentPublicInstance | null;
73
73
  $parent: import('vue').ComponentPublicInstance | null;
74
74
  $host: Element | null;
75
- $emit: (event: "select", value: Primitive) => void;
75
+ $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
76
76
  $el: HTMLLIElement;
77
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
78
- onSelect?: ((value: Primitive) => any) | undefined;
79
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
80
- select: (value: Primitive) => any;
77
+ $options: import('vue').ComponentOptionsBase<Readonly<{
78
+ modelValue?: boolean;
79
+ } & import('./types').QListItemProps> & Readonly<{
80
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
81
+ onClick?: (() => any) | undefined;
82
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
83
+ "update:modelValue": (value: boolean) => any;
84
+ } & {
85
+ click: () => any;
81
86
  }, string, {
82
87
  icons: typeof import('./types').DEFAULT_ICONS;
83
88
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -102,8 +107,11 @@ declare function __VLS_template(): {
102
107
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
103
108
  } & Readonly<{
104
109
  icons: typeof import('./types').DEFAULT_ICONS;
105
- }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
106
- onSelect?: ((value: Primitive) => any) | undefined;
110
+ }> & Omit<Readonly<{
111
+ modelValue?: boolean;
112
+ } & import('./types').QListItemProps> & Readonly<{
113
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
114
+ onClick?: (() => any) | undefined;
107
115
  }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
108
116
  $slots: {
109
117
  prepend?(_: {}): any;
@@ -121,9 +129,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
121
129
  getFirstFocusableItemIndex: typeof getFirstFocusableItemIndex;
122
130
  getLastFocusableItemIndex: typeof getLastFocusableItemIndex;
123
131
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
124
- "update:modelValue": (value: Primitive) => any;
132
+ "update:modelValue": (value: any) => any;
133
+ } & {
134
+ click: (key: any) => any;
125
135
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
126
- "onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
136
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
137
+ onClick?: ((key: any) => any) | undefined;
127
138
  }>, {
128
139
  groups: Group[];
129
140
  itemValue: string;
@@ -134,16 +145,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
134
145
  $: import('vue').ComponentInternalInstance;
135
146
  $data: {};
136
147
  $props: {
137
- readonly value: Primitive;
148
+ readonly modelValue?: boolean | undefined;
149
+ readonly value: any;
138
150
  readonly label: string;
139
151
  readonly icon?: import('..').Icon | undefined;
140
152
  readonly selectable?: boolean | undefined;
141
- readonly selected?: boolean | undefined;
142
153
  readonly highlighted?: boolean | undefined;
143
154
  readonly disabled?: boolean | undefined;
144
155
  readonly description?: string | undefined;
145
156
  readonly icons?: typeof import('./types').DEFAULT_ICONS | undefined;
146
- readonly onSelect?: ((value: Primitive) => any) | undefined;
157
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
158
+ readonly onClick?: (() => any) | undefined;
147
159
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
148
160
  $attrs: {
149
161
  [x: string]: unknown;
@@ -157,12 +169,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
157
169
  $root: import('vue').ComponentPublicInstance | null;
158
170
  $parent: import('vue').ComponentPublicInstance | null;
159
171
  $host: Element | null;
160
- $emit: (event: "select", value: Primitive) => void;
172
+ $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
161
173
  $el: HTMLLIElement;
162
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types').QListItemProps> & Readonly<{
163
- onSelect?: ((value: Primitive) => any) | undefined;
164
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
165
- select: (value: Primitive) => any;
174
+ $options: import('vue').ComponentOptionsBase<Readonly<{
175
+ modelValue?: boolean;
176
+ } & import('./types').QListItemProps> & Readonly<{
177
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
178
+ onClick?: (() => any) | undefined;
179
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
180
+ "update:modelValue": (value: boolean) => any;
181
+ } & {
182
+ click: () => any;
166
183
  }, string, {
167
184
  icons: typeof import('./types').DEFAULT_ICONS;
168
185
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
@@ -187,8 +204,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
187
204
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
188
205
  } & Readonly<{
189
206
  icons: typeof import('./types').DEFAULT_ICONS;
190
- }> & Omit<Readonly<import('./types').QListItemProps> & Readonly<{
191
- onSelect?: ((value: Primitive) => any) | undefined;
207
+ }> & Omit<Readonly<{
208
+ modelValue?: boolean;
209
+ } & import('./types').QListItemProps> & Readonly<{
210
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
211
+ onClick?: (() => any) | undefined;
192
212
  }>, "icons"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
193
213
  $slots: {
194
214
  prepend?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AA4CA;AA4ZC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAKlD,KAAK,WAAW,GAAG,UAAU,CAAC;AAuM9B,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAaD;;;;;;GAMG;AACH,iBAAS,0BAA0B,IAAI,MAAM,CAO5C;AAED;;;;;;GAMG;AACH,iBAAS,yBAAyB,IAAI,MAAM,CAO3C;AAmCD;;;;;;;;GAQG;AACH,iBAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAuB7E;AAoDF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoIT,OAAO,IAA6B;;;;;YAbvB,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxEL,GAAG,8CAE3B,GAAG,yBACH,GAAG,6DAEF,GAAG;;;;;;;;;;;;;;;;;EAoFb;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAlHa,GAAG,8CAE3B,GAAG,yBACH,GAAG,6DAEF,GAAG;;;;;;;;;;;;;;;OAwHZ,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,11 +1,11 @@
1
- import { defineComponent as K, mergeModels as N, useModel as P, ref as b, computed as _, createBlock as w, openBlock as d, resolveDynamicComponent as W, normalizeClass as J, withCtx as p, createElementBlock as B, Fragment as D, renderList as M, unref as C, renderSlot as T } from "vue";
2
- import { QListItemGroup as X, QListItem as Y } from "./index.js";
3
- const te = /* @__PURE__ */ K({
1
+ import { defineComponent as N, mergeModels as _, useModel as X, ref as p, computed as D, createBlock as x, openBlock as d, resolveDynamicComponent as Y, normalizeClass as Z, withCtx as b, createElementBlock as M, Fragment as T, renderList as B, unref as E, renderSlot as U } from "vue";
2
+ import { QListItemGroup as ee, QListItem as te } from "./index.js";
3
+ const se = /* @__PURE__ */ N({
4
4
  __name: "QList",
5
- props: /* @__PURE__ */ N({
5
+ props: /* @__PURE__ */ _({
6
6
  id: {},
7
7
  class: {},
8
- highlighted: { type: [String, Number, Boolean, Symbol] },
8
+ highlighted: {},
9
9
  items: {},
10
10
  groups: { default: () => [] },
11
11
  itemValue: { default: "key" },
@@ -13,40 +13,43 @@ const te = /* @__PURE__ */ K({
13
13
  disabled: { type: Boolean },
14
14
  selectable: { type: Boolean }
15
15
  }, {
16
- modelValue: { type: [String, Number, Boolean, Symbol] },
16
+ modelValue: {},
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: ["update:modelValue"],
20
- setup(x, { expose: E }) {
21
- const n = x, f = P(x, "modelValue"), g = b(!1), $ = _(() => a.value.length > 1 ? "div" : "ul"), a = _(() => n.groups.length ? n.groups.filter(
19
+ emits: /* @__PURE__ */ _(["click"], ["update:modelValue"]),
20
+ setup(y, { expose: $, emit: R }) {
21
+ const n = y, S = R, f = X(y, "modelValue"), v = p(!1), q = D(() => a.value.length > 1 ? "div" : "ul"), a = D(() => n.groups.length ? n.groups.filter(
22
22
  (e) => {
23
23
  var t;
24
24
  return (t = n.items) == null ? void 0 : t.some((l) => l.group === e.id);
25
25
  }
26
- ) : [{ id: "", title: "" }]), v = b(null), h = b(null);
27
- function R(e) {
26
+ ) : [{ id: "", title: "" }]), g = p(null), h = p(null);
27
+ function O(e) {
28
+ S("click", e);
29
+ }
30
+ function Q(e) {
28
31
  f.value = e;
29
32
  }
30
- function q() {
31
- g.value = !0;
33
+ function j() {
34
+ v.value = !0;
32
35
  }
33
- function O() {
34
- g.value = !1;
36
+ function z() {
37
+ v.value = !1;
35
38
  }
36
- function Q(e) {
39
+ function G(e) {
37
40
  var s;
38
- if (!n.items || (s = v.value) != null && s.contains(e.relatedTarget))
41
+ if (!n.items || (s = g.value) != null && s.contains(e.relatedTarget))
39
42
  return;
40
43
  let t;
41
- f.value ? t = n.items.findIndex((o) => o[n.itemValue] === f.value) : t = y();
42
- const l = g.value;
43
- r(t, l);
44
+ f.value ? t = n.items.findIndex((i) => i[n.itemValue] === f.value) : t = k();
45
+ const l = v.value;
46
+ u(t, l);
44
47
  }
45
- const I = b("");
46
- let A;
47
- function U(e) {
48
+ const I = p("");
49
+ let V;
50
+ function H(e) {
48
51
  var t;
49
- switch (window.clearTimeout(A), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
52
+ switch (window.clearTimeout(V), ["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), e.key) {
50
53
  case "ArrowDown":
51
54
  m("next");
52
55
  break;
@@ -65,12 +68,12 @@ const te = /* @__PURE__ */ K({
65
68
  const l = ((t = n.items) == null ? void 0 : t.length) || 0;
66
69
  for (let s = 0; s < l; s++)
67
70
  if (n.items[s][n.itemLabel].toLowerCase().startsWith(I.value)) {
68
- r(s);
71
+ u(s);
69
72
  break;
70
73
  }
71
74
  e.preventDefault(), e.stopPropagation();
72
75
  }
73
- A = window.setTimeout(function() {
76
+ V = window.setTimeout(function() {
74
77
  I.value = "";
75
78
  }, 500);
76
79
  }
@@ -78,131 +81,132 @@ const te = /* @__PURE__ */ K({
78
81
  switch (e) {
79
82
  case "next":
80
83
  case "prev":
81
- r(G(e));
84
+ u(W(e));
82
85
  break;
83
86
  case "first":
84
- r(y());
87
+ u(k());
85
88
  break;
86
89
  case "last":
87
- r(L());
90
+ u(A());
88
91
  break;
89
92
  }
90
93
  }
91
- function r(e, t = !1) {
94
+ function u(e, t = !1) {
92
95
  var s;
93
- (s = i()[e]) == null || s.focus({ preventScroll: t });
96
+ (s = o()[e]) == null || s.focus({ preventScroll: t });
94
97
  }
95
- function i() {
98
+ function o() {
96
99
  var t;
97
- const e = (t = v.value) == null ? void 0 : t.querySelectorAll("li");
100
+ const e = (t = g.value) == null ? void 0 : t.querySelectorAll("li");
98
101
  return e ? Array.from(e) : [];
99
102
  }
100
- function j(e) {
101
- return i()[e];
103
+ function K(e) {
104
+ return o()[e];
102
105
  }
103
- function z() {
104
- return i().indexOf(document.activeElement);
106
+ function P() {
107
+ return o().indexOf(document.activeElement);
105
108
  }
106
- function y() {
107
- const e = i(), t = e.find((l) => k(l));
109
+ function k() {
110
+ const e = o(), t = e.find((l) => w(l));
108
111
  return t ? e.indexOf(t) : -1;
109
112
  }
110
- function L() {
111
- const e = i(), t = [...e].reverse().find((l) => k(l));
113
+ function A() {
114
+ const e = o(), t = [...e].reverse().find((l) => w(l));
112
115
  return t ? e.indexOf(t) : -1;
113
116
  }
114
- function S(e, t, l) {
117
+ function L(e, t, l) {
115
118
  return t === "prev" && e <= 0 || t === "next" && e === l.length - 1;
116
119
  }
117
- function G(e) {
118
- const t = z();
119
- return V(t, e);
120
+ function W(e) {
121
+ const t = P();
122
+ return C(t, e);
120
123
  }
121
- function V(e, t) {
122
- const l = i();
123
- if (S(e, t, l))
124
+ function C(e, t) {
125
+ const l = o();
126
+ if (L(e, t, l))
124
127
  return e;
125
128
  let s = e + (t === "next" ? 1 : -1);
126
- for (; !k(l[s]); ) {
127
- if (S(s, t, l))
129
+ for (; !w(l[s]); ) {
130
+ if (L(s, t, l))
128
131
  return e;
129
132
  s += t === "next" ? 1 : -1;
130
133
  }
131
134
  return s;
132
135
  }
133
- function k(e) {
136
+ function w(e) {
134
137
  return e.tabIndex === -2;
135
138
  }
136
- function H(e) {
139
+ function J(e) {
137
140
  var t;
138
141
  return e ? (t = n.items) == null ? void 0 : t.filter((l) => l.group === e) : n.items;
139
142
  }
140
- return E({
141
- getItem: j,
142
- getAdjacentItemIndex: V,
143
- getFirstFocusableItemIndex: y,
144
- getLastFocusableItemIndex: L
145
- }), (e, t) => (d(), w(W($.value), {
143
+ return $({
144
+ getItem: K,
145
+ getAdjacentItemIndex: C,
146
+ getFirstFocusableItemIndex: k,
147
+ getLastFocusableItemIndex: A
148
+ }), (e, t) => (d(), x(Y(q.value), {
146
149
  id: n.id,
147
150
  ref_key: "listRef",
148
- ref: v,
149
- class: J(["q-list", { "q-list--disabled": n.disabled }, n.class]),
151
+ ref: g,
152
+ class: Z(["q-list", { "q-list--disabled": n.disabled }, n.class]),
150
153
  role: "listbox",
151
154
  tabindex: n.disabled ? -1 : 0,
152
- onFocus: Q,
153
- onMousedown: q,
154
- onMouseup: O,
155
- onKeydown: U
155
+ onFocus: G,
156
+ onMousedown: j,
157
+ onMouseup: z,
158
+ onKeydown: H
156
159
  }, {
157
- default: p(() => [
158
- (d(!0), B(
159
- D,
160
+ default: b(() => [
161
+ (d(!0), M(
162
+ T,
160
163
  null,
161
- M(a.value, (l, s) => (d(), w(C(X), {
164
+ B(a.value, (l, s) => (d(), x(E(ee), {
162
165
  id: l.id,
163
166
  key: l.id,
164
167
  title: a.value.length === 1 ? void 0 : l.title
165
168
  }, {
166
- default: p(() => [
167
- (d(!0), B(
168
- D,
169
+ default: b(() => [
170
+ (d(!0), M(
171
+ T,
169
172
  null,
170
- M(H(l.id), (o, F) => (d(), w(C(Y), {
171
- key: o[n.itemValue],
173
+ B(J(l.id), (i, F) => (d(), x(E(te), {
174
+ key: i[n.itemValue],
172
175
  ref_for: !0,
173
176
  ref_key: "listItemsRef",
174
177
  ref: h,
175
- value: o[n.itemValue],
176
- label: o[n.itemLabel],
177
- description: o.description,
178
- icon: o.icon,
179
- disabled: n.disabled || l.disabled || o.disabled,
180
- highlighted: n.highlighted === o[n.itemValue],
178
+ "model-value": n.selectable && f.value === i[n.itemValue],
179
+ value: i[n.itemValue],
180
+ label: i[n.itemLabel],
181
+ description: i.description,
182
+ icon: i.icon,
183
+ disabled: n.disabled || l.disabled || i.disabled,
184
+ highlighted: n.highlighted === i[n.itemValue],
181
185
  selectable: n.selectable,
182
- selected: n.selectable && f.value === o[n.itemValue],
183
- onSelect: R
186
+ onClick: () => O(i[n.itemValue]),
187
+ "onUpdate:modelValue": () => Q(i[n.itemValue])
184
188
  }, {
185
- append: p(() => {
186
- var u, c;
189
+ append: b(() => {
190
+ var r, c;
187
191
  return [
188
- T(e.$slots, "item.append", {
189
- item: o,
190
- element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
192
+ U(e.$slots, "item.append", {
193
+ item: i,
194
+ element: (c = (r = h.value) == null ? void 0 : r[F + s * a.value.length]) == null ? void 0 : c.$el
191
195
  })
192
196
  ];
193
197
  }),
194
- default: p(() => {
195
- var u, c;
198
+ default: b(() => {
199
+ var r, c;
196
200
  return [
197
- T(e.$slots, "item", {
198
- item: o,
199
- element: (c = (u = h.value) == null ? void 0 : u[F + s * a.value.length]) == null ? void 0 : c.$el
201
+ U(e.$slots, "item", {
202
+ item: i,
203
+ element: (c = (r = h.value) == null ? void 0 : r[F + s * a.value.length]) == null ? void 0 : c.$el
200
204
  })
201
205
  ];
202
206
  }),
203
207
  _: 2
204
208
  /* DYNAMIC */
205
- }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selectable", "selected"]))),
209
+ }, 1032, ["model-value", "value", "label", "description", "icon", "disabled", "highlighted", "selectable", "onClick", "onUpdate:modelValue"]))),
206
210
  128
207
211
  /* KEYED_FRAGMENT */
208
212
  ))
@@ -220,5 +224,5 @@ const te = /* @__PURE__ */ K({
220
224
  }
221
225
  });
222
226
  export {
223
- te as default
227
+ se as default
224
228
  };
@@ -1,5 +1,8 @@
1
- import { QListItemProps, DEFAULT_ICONS } from './types';
2
- import { Primitive } from '../../types/primitive';
1
+ import { DEFAULT_ICONS, QListItemProps } from './types';
2
+ type __VLS_Props = QListItemProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
3
6
  declare function __VLS_template(): {
4
7
  attrs: Partial<{}>;
5
8
  slots: {
@@ -11,10 +14,13 @@ declare function __VLS_template(): {
11
14
  rootEl: HTMLLIElement;
12
15
  };
13
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<QListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
- select: (value: Primitive) => any;
16
- }, string, import('vue').PublicProps, Readonly<QListItemProps> & Readonly<{
17
- onSelect?: ((value: Primitive) => any) | undefined;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean) => any;
19
+ } & {
20
+ click: () => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
23
+ onClick?: (() => any) | undefined;
18
24
  }>, {
19
25
  icons: typeof DEFAULT_ICONS;
20
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAgDA;AA2FC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkCxC,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;uFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAgDA;AAqGC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAMvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,KAAK,WAAW,GAAG,cAAc,CAAC;AA4CnC,KAAK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