@quidgest/ui 0.19.0 → 0.20.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 (115) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/json/api.json +1109 -3
  3. package/dist/manifest/components.json +1 -0
  4. package/dist/ui.css +1181 -5
  5. package/dist/ui.esm.js +1444 -843
  6. package/dist/ui.js +1405 -804
  7. package/dist/ui.min.css +2 -1
  8. package/dist/ui.min.js +1405 -804
  9. package/dist/ui.scss +373 -7
  10. package/esm/components/QField/QField.d.ts.map +1 -1
  11. package/esm/components/QField/QField.vue.js +1 -1
  12. package/esm/components/QInputGroup/QInputGroup.d.ts +147 -3
  13. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  14. package/esm/components/QInputGroup/QInputGroup.vue.js +32 -23
  15. package/esm/components/QInputGroup/index.d.ts +81 -4
  16. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  17. package/esm/components/QList/QList.d.ts.map +1 -1
  18. package/esm/components/QList/QList.vue.js +3 -1
  19. package/esm/components/QList/QListItem.d.ts.map +1 -1
  20. package/esm/components/QList/QListItem.vue.js +24 -28
  21. package/esm/components/QList/types.d.ts +1 -1
  22. package/esm/components/QOverlay/types.d.ts +3 -1
  23. package/esm/components/QOverlay/types.d.ts.map +1 -1
  24. package/esm/components/QPhoneField/QPhoneField.d.ts +2263 -0
  25. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -0
  26. package/esm/components/QPhoneField/QPhoneField.vue.js +478 -0
  27. package/esm/components/QPhoneField/QPhoneField2.vue.js +5 -0
  28. package/esm/components/QPhoneField/constants.d.ts +11 -0
  29. package/esm/components/QPhoneField/constants.d.ts.map +1 -0
  30. package/esm/components/QPhoneField/constants.js +14 -0
  31. package/esm/components/QPhoneField/index.d.ts +1253 -0
  32. package/esm/components/QPhoneField/index.d.ts.map +1 -0
  33. package/esm/components/QPhoneField/index.js +6 -0
  34. package/esm/components/QPhoneField/types.d.ts +108 -0
  35. package/esm/components/QPhoneField/types.d.ts.map +1 -0
  36. package/esm/components/QSelect/QSelect.d.ts +16 -1
  37. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  38. package/esm/components/QSelect/QSelect.vue.js +158 -129
  39. package/esm/components/QSelect/index.d.ts +31 -3
  40. package/esm/components/QSelect/index.d.ts.map +1 -1
  41. package/esm/components/QSelect/types.d.ts +13 -0
  42. package/esm/components/QSelect/types.d.ts.map +1 -1
  43. package/esm/components/index.d.ts +1 -0
  44. package/esm/components/index.d.ts.map +1 -1
  45. package/esm/components/index.js +36 -34
  46. package/esm/composables/useDialog/index.d.ts +2 -88
  47. package/esm/composables/useDialog/index.d.ts.map +1 -1
  48. package/esm/composables/useDialog/index.js +6 -6
  49. package/esm/composables/useDialog/types.d.ts +14 -4
  50. package/esm/composables/useDialog/types.d.ts.map +1 -1
  51. package/esm/index.d.ts +1 -0
  52. package/esm/vendors/country-flag-icons/modules/countries.json.js +4 -0
  53. package/esm/vendors/country-flag-icons/modules/hasFlag.js +7 -0
  54. package/esm/vendors/libphonenumber-js/es6/AsYouType.js +312 -0
  55. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +142 -0
  56. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +145 -0
  57. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +45 -0
  58. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.js +258 -0
  59. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.util.js +57 -0
  60. package/esm/vendors/libphonenumber-js/es6/AsYouTypeParser.js +242 -0
  61. package/esm/vendors/libphonenumber-js/es6/AsYouTypeState.js +115 -0
  62. package/esm/vendors/libphonenumber-js/es6/ParseError.js +116 -0
  63. package/esm/vendors/libphonenumber-js/es6/PhoneNumber.js +164 -0
  64. package/esm/vendors/libphonenumber-js/es6/constants.js +4 -0
  65. package/esm/vendors/libphonenumber-js/es6/format.js +77 -0
  66. package/esm/vendors/libphonenumber-js/es6/formatIncompletePhoneNumber.js +7 -0
  67. package/esm/vendors/libphonenumber-js/es6/getCountries.js +7 -0
  68. package/esm/vendors/libphonenumber-js/es6/getExampleNumber.js +7 -0
  69. package/esm/vendors/libphonenumber-js/es6/helpers/RFC3966.js +9 -0
  70. package/esm/vendors/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
  71. package/esm/vendors/libphonenumber-js/es6/helpers/checkNumberLength.js +21 -0
  72. package/esm/vendors/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
  73. package/esm/vendors/libphonenumber-js/es6/helpers/extension/extractExtension.js +16 -0
  74. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +36 -0
  75. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
  76. package/esm/vendors/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +18 -0
  77. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumber.js +27 -0
  78. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
  79. package/esm/vendors/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -0
  80. package/esm/vendors/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +11 -0
  81. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +13 -0
  82. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +12 -0
  83. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +43 -0
  84. package/esm/vendors/libphonenumber-js/es6/helpers/getIddPrefix.js +10 -0
  85. package/esm/vendors/libphonenumber-js/es6/helpers/getNumberType.js +61 -0
  86. package/esm/vendors/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
  87. package/esm/vendors/libphonenumber-js/es6/helpers/isCallingCode.js +7 -0
  88. package/esm/vendors/libphonenumber-js/es6/helpers/isCountryCode.js +7 -0
  89. package/esm/vendors/libphonenumber-js/es6/helpers/isObject.js +7 -0
  90. package/esm/vendors/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +12 -0
  91. package/esm/vendors/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
  92. package/esm/vendors/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
  93. package/esm/vendors/libphonenumber-js/es6/helpers/parseDigits.js +82 -0
  94. package/esm/vendors/libphonenumber-js/es6/helpers/stripIddPrefix.js +18 -0
  95. package/esm/vendors/libphonenumber-js/es6/isPossible.js +32 -0
  96. package/esm/vendors/libphonenumber-js/es6/isValid.js +11 -0
  97. package/esm/vendors/libphonenumber-js/es6/metadata.js +474 -0
  98. package/esm/vendors/libphonenumber-js/es6/normalizeArguments.js +110 -0
  99. package/esm/vendors/libphonenumber-js/es6/parse.js +103 -0
  100. package/esm/vendors/libphonenumber-js/es6/parseIncompletePhoneNumber.js +48 -0
  101. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
  102. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumberWithError_.js +58 -0
  103. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber_.js +66 -0
  104. package/esm/vendors/libphonenumber-js/es6/tools/semver-compare.js +14 -0
  105. package/esm/vendors/libphonenumber-js/examples.mobile.json.js +250 -0
  106. package/esm/vendors/libphonenumber-js/max/exports/AsYouType.js +9 -0
  107. package/esm/vendors/libphonenumber-js/max/exports/formatIncompletePhoneNumber.js +8 -0
  108. package/esm/vendors/libphonenumber-js/max/exports/getCountries.js +8 -0
  109. package/esm/vendors/libphonenumber-js/max/exports/getCountryCallingCode.js +8 -0
  110. package/esm/vendors/libphonenumber-js/max/exports/getExampleNumber.js +8 -0
  111. package/esm/vendors/libphonenumber-js/max/exports/isSupportedCountry.js +8 -0
  112. package/esm/vendors/libphonenumber-js/max/exports/parsePhoneNumber.js +8 -0
  113. package/esm/vendors/libphonenumber-js/max/exports/withMetadataArgument.js +8 -0
  114. package/esm/vendors/libphonenumber-js/metadata.max.json.js +10489 -0
  115. package/package.json +3 -1
@@ -1,15 +1,15 @@
1
1
  import { provideDefaults as e } from "../../composables/defaults.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
3
  import { QField as n } from "../QField/index.js";
4
- import { createBlock as r, createCommentVNode as i, createElementBlock as a, createSlots as o, createVNode as s, defineComponent as c, guardReactiveProps as l, normalizeClass as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m, withCtx as h } from "vue";
4
+ import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, createVNode as c, defineComponent as l, guardReactiveProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
5
5
  //#region src/components/QInputGroup/QInputGroup.vue?vue&type=script&setup=true&lang.ts
6
- var g = {
6
+ var v = {
7
7
  key: 0,
8
8
  class: "q-input-group__prepend"
9
- }, _ = { key: 0 }, v = {
9
+ }, y = { key: 0 }, b = {
10
10
  key: 1,
11
11
  class: "q-input-group__append"
12
- }, y = { key: 0 }, b = /*@__PURE__*/ c({
12
+ }, x = { key: 0 }, S = /*@__PURE__*/ l({
13
13
  __name: "QInputGroup",
14
14
  props: {
15
15
  id: {},
@@ -25,39 +25,48 @@ var g = {
25
25
  prependIcon: {},
26
26
  appendIcon: {}
27
27
  },
28
- setup(c) {
29
- let b = c;
30
- return e({ QField: { size: "block" } }), (e, c) => (f(), r(m(n), {
31
- id: b.id,
32
- class: u(["q-input-group", b.class]),
33
- label: b.label,
34
- "label-position": b.labelPosition,
35
- required: b.required,
36
- size: b.size,
37
- invalid: b.invalid
38
- }, o({
39
- "label.prepend": h(() => [p(e.$slots, "label.prepend")]),
40
- "label.append": h(() => [p(e.$slots, "label.append")]),
41
- default: h(() => [
42
- e.$slots.prepend || b.prependIcon ? (f(), a("div", g, [b.prependIcon ? (f(), a("span", _, [s(m(t), d(l(b.prependIcon)), null, 16)])) : i("v-if", !0), p(e.$slots, "prepend")])) : i("v-if", !0),
43
- p(e.$slots, "default"),
44
- e.$slots.append || b.appendIcon ? (f(), a("div", v, [b.appendIcon ? (f(), a("span", y, [s(m(t), d(l(b.appendIcon)), null, 16)])) : i("v-if", !0), p(e.$slots, "append")])) : i("v-if", !0)
28
+ setup(l, { expose: S }) {
29
+ let C = l;
30
+ e({ QField: { size: "block" } });
31
+ let w = g("field");
32
+ return S({ fieldRef: r(() => w.value?.fieldRef) }), (e, r) => (p(), i(h(n), {
33
+ id: C.id,
34
+ ref: "field",
35
+ class: d(["q-input-group", C.class]),
36
+ for: C.for,
37
+ label: C.label,
38
+ "label-position": C.labelPosition,
39
+ required: C.required,
40
+ size: C.size,
41
+ readonly: C.readonly,
42
+ disabled: C.disabled,
43
+ invalid: C.invalid
44
+ }, s({
45
+ "label.prepend": _(() => [m(e.$slots, "label.prepend")]),
46
+ "label.append": _(() => [m(e.$slots, "label.append")]),
47
+ default: _(() => [
48
+ e.$slots.prepend || C.prependIcon ? (p(), o("div", v, [C.prependIcon ? (p(), o("span", y, [c(h(t), f(u(C.prependIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "prepend")])) : a("v-if", !0),
49
+ m(e.$slots, "default"),
50
+ e.$slots.append || C.appendIcon ? (p(), o("div", b, [C.appendIcon ? (p(), o("span", x, [c(h(t), f(u(C.appendIcon)), null, 16)])) : a("v-if", !0), m(e.$slots, "append")])) : a("v-if", !0)
45
51
  ]),
46
52
  _: 2
47
53
  }, [e.$slots.extras ? {
48
54
  name: "extras",
49
- fn: h(() => [p(e.$slots, "extras")]),
55
+ fn: _(() => [m(e.$slots, "extras")]),
50
56
  key: "0"
51
57
  } : void 0]), 1032, [
52
58
  "id",
53
59
  "class",
60
+ "for",
54
61
  "label",
55
62
  "label-position",
56
63
  "required",
57
64
  "size",
65
+ "readonly",
66
+ "disabled",
58
67
  "invalid"
59
68
  ]));
60
69
  }
61
70
  });
62
71
  //#endregion
63
- export { b as default };
72
+ export { S as default };
@@ -1,20 +1,97 @@
1
1
  declare const QInputGroup: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
3
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
5
  size: import('..').QFieldSize;
4
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
6
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
7
+ field: ({
8
+ $: import('vue').ComponentInternalInstance;
9
+ $data: {};
10
+ $props: {
11
+ readonly id?: string | undefined;
12
+ readonly class?: string | unknown[] | undefined;
13
+ readonly label?: string | undefined;
14
+ readonly required?: boolean | undefined;
15
+ readonly for?: string | undefined;
16
+ readonly labelPosition?: import('..').QLabelPosition | undefined;
17
+ readonly size?: import('..').QFieldSize | undefined;
18
+ readonly readonly?: boolean | undefined;
19
+ readonly disabled?: boolean | undefined;
20
+ readonly invalid?: boolean | undefined;
21
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
22
+ $attrs: import('vue').Attrs;
23
+ $refs: {
24
+ [x: string]: unknown;
25
+ } & {
26
+ field: HTMLDivElement;
27
+ };
28
+ $slots: Readonly<{
29
+ [name: string]: import('vue').Slot<any> | undefined;
30
+ }>;
31
+ $root: import('vue').ComponentPublicInstance | null;
32
+ $parent: import('vue').ComponentPublicInstance | null;
33
+ $host: Element | null;
34
+ $emit: (event: string, ...args: any[]) => void;
35
+ $el: any;
36
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
37
+ fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
38
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
39
+ size: import('..').QFieldSize;
40
+ labelPosition: import('..').QLabelPosition;
41
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
42
+ beforeCreate?: (() => void) | (() => void)[];
43
+ created?: (() => void) | (() => void)[];
44
+ beforeMount?: (() => void) | (() => void)[];
45
+ mounted?: (() => void) | (() => void)[];
46
+ beforeUpdate?: (() => void) | (() => void)[];
47
+ updated?: (() => void) | (() => void)[];
48
+ activated?: (() => void) | (() => void)[];
49
+ deactivated?: (() => void) | (() => void)[];
50
+ beforeDestroy?: (() => void) | (() => void)[];
51
+ beforeUnmount?: (() => void) | (() => void)[];
52
+ destroyed?: (() => void) | (() => void)[];
53
+ unmounted?: (() => void) | (() => void)[];
54
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
55
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
56
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
57
+ };
58
+ $forceUpdate: () => void;
59
+ $nextTick: typeof import('vue').nextTick;
60
+ $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;
61
+ } & Readonly<{
62
+ size: import('..').QFieldSize;
63
+ labelPosition: import('..').QLabelPosition;
64
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & {
65
+ fieldRef: HTMLDivElement | null;
66
+ } & {} & import('vue').ComponentCustomProperties & {} & {
67
+ $slots: {
68
+ 'label.prepend'?(_: {}): any;
69
+ 'label.append'?(_: {}): any;
70
+ control?(_: {}): any;
71
+ prepend?(_: {}): any;
72
+ default?(_: {}): any;
73
+ append?(_: {}): any;
74
+ extras?(_: {}): any;
75
+ };
76
+ }) | null;
77
+ }, any, import('vue').ComponentProvideOptions, {
5
78
  P: {};
6
79
  B: {};
7
80
  D: {};
8
81
  C: {};
9
82
  M: {};
10
83
  Defaults: {};
11
- }, Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
84
+ }, Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
85
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
86
+ }, {}, {}, {}, {
12
87
  size: import('..').QFieldSize;
13
88
  }>;
14
89
  __isFragment?: never;
15
90
  __isTeleport?: never;
16
91
  __isSuspense?: never;
17
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
92
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').QInputGroupProps> & Readonly<{}>, {
93
+ fieldRef: import('vue').ComputedRef<HTMLDivElement | null | undefined>;
94
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
18
95
  size: import('..').QFieldSize;
19
96
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
97
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO650B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPn/0B,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAgDA;AA2cC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA8O1C,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,IAAI,MAAM,CAIpC;AAED;;;;;;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;AA0DF,iBAAS,cAAc;WA8IT,OAAO,IAA6B;;yBAdpB,GAAG;;;;YACN,GAAG;;;;YACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA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;;;;;;;;;;;;;;;;;wCAzFH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEpH,GAAE;;;;;;;;;;;;;;;;;;EAwGD;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAlIe,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEpH,GAAE;;;;;;;;;;;;;;;;OA2IA,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"}
@@ -143,7 +143,7 @@ var v = /*@__PURE__*/ s({
143
143
  return r;
144
144
  }
145
145
  function K(e) {
146
- return e.tabIndex === -2;
146
+ return e.tabIndex === -1;
147
147
  }
148
148
  function q(e) {
149
149
  return e ? b.items?.filter((t) => t.group === e) : b.items;
@@ -166,6 +166,7 @@ var v = /*@__PURE__*/ s({
166
166
  b.class
167
167
  ]),
168
168
  role: "listbox",
169
+ "aria-multiselectable": b.multiple || void 0,
169
170
  tabindex: b.disabled ? -1 : 0,
170
171
  onFocus: M,
171
172
  onMousedown: A,
@@ -222,6 +223,7 @@ var v = /*@__PURE__*/ s({
222
223
  }, 40, [
223
224
  "id",
224
225
  "class",
226
+ "aria-multiselectable",
225
227
  "tabindex"
226
228
  ]));
227
229
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAkDA;AA+HC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C,O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AC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -14,10 +14,7 @@ var w = [
14
14
  ], T = { class: "q-list-item__container" }, E = { class: "q-list-item__content" }, D = {
15
15
  key: 0,
16
16
  class: "q-list-item__description"
17
- }, O = {
18
- key: 0,
19
- class: "q-list-item__check-container"
20
- }, k = /*@__PURE__*/ d({
17
+ }, O = /*@__PURE__*/ d({
21
18
  __name: "QListItem",
22
19
  props: /*@__PURE__*/ p({
23
20
  value: {},
@@ -39,47 +36,46 @@ var w = [
39
36
  }),
40
37
  emits: /*@__PURE__*/ p(["click"], ["update:modelValue"]),
41
38
  setup(i, { emit: d }) {
42
- let p = i, k = d, A = x(i, "modelValue"), j = n(), M = e(p.value);
43
- if (!M) throw Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.");
44
- function N() {
45
- p.disabled || (k("click"), p.selectable && M?.toggle());
39
+ let p = i, O = d, k = x(i, "modelValue"), A = n(), j = e(p.value);
40
+ if (!j) throw Error("QListItem: Failed to retrieve group item. Ensure the component is used within a QList context.");
41
+ function M() {
42
+ p.disabled || (O("click"), p.selectable && j?.toggle());
46
43
  }
47
- function P(e) {
48
- e.key === "Tab" && p.selectOnTab && N(), (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), N());
44
+ function N(e) {
45
+ e.key === "Tab" && p.selectOnTab && M(), (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), M());
49
46
  }
50
- return S(M.isActive, (e) => {
51
- A.value = e;
47
+ return S(j.isActive, (e) => {
48
+ k.value = e;
52
49
  }, { immediate: !0 }), (e, n) => (_(), s("li", {
53
- id: b(j),
50
+ id: b(A),
54
51
  "data-key": p.value,
55
52
  role: "option",
56
- tabindex: p.disabled ? void 0 : -2,
53
+ tabindex: p.disabled ? void 0 : -1,
57
54
  class: h(["q-list-item", {
58
- "q-list-item--selected": A.value,
55
+ "q-list-item--selected": k.value,
59
56
  "q-list-item--selectable": p.selectable,
60
57
  "q-list-item--disabled": p.disabled,
61
58
  "q-list-item--highlighted": p.highlighted
62
59
  }]),
63
60
  "aria-label": p.label,
64
- "aria-selected": p.disabled ? void 0 : A.value,
65
- onKeydown: P,
66
- onClick: C(N, ["stop", "prevent"])
61
+ "aria-selected": p.disabled ? void 0 : k.value,
62
+ onKeydown: N,
63
+ onClick: C(M, ["stop", "prevent"])
67
64
  }, [
68
65
  v(e.$slots, "prepend"),
69
66
  c("div", T, [c("div", E, [v(e.$slots, "default", {}, () => [p.icon ? (_(), a(b(t), g(m({ key: 0 }, p.icon)), null, 16)) : o("v-if", !0), l(" " + y(p.label), 1)])]), p.description ? (_(), s("div", D, [u(b(t), g(f(p.icons.description)), null, 16), c("span", null, y(p.description), 1)])) : o("v-if", !0)]),
70
67
  v(e.$slots, "append"),
71
- p.selectable ? (_(), s("div", O, [u(b(r), {
72
- borderless: p.checkboxless,
68
+ p.selectable ? (_(), s("div", {
69
+ key: 0,
70
+ class: h(["q-list-item__check-container", { "q-list-item__check-container--top": p.description }])
71
+ }, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, { "aria-hidden": "true" }), null, 16)) : p.checkboxless ? o("v-if", !0) : (_(), a(b(r), {
72
+ key: 1,
73
73
  disabled: p.disabled,
74
- "model-value": A.value,
75
- "onUpdate:modelValue": N
76
- }, null, 8, [
77
- "borderless",
78
- "disabled",
79
- "model-value"
80
- ])])) : o("v-if", !0)
74
+ "model-value": k.value,
75
+ "onUpdate:modelValue": M
76
+ }, null, 8, ["disabled", "model-value"]))], 2)) : o("v-if", !0)
81
77
  ], 42, w));
82
78
  }
83
79
  });
84
80
  //#endregion
85
- export { k as default };
81
+ export { O as default };
@@ -134,7 +134,7 @@ export type QListItemProps = {
134
134
  */
135
135
  icons?: typeof DEFAULT_ICONS;
136
136
  /**
137
- * If true, the checkbox has no borders
137
+ * Whether to use a non-interactive check mark instead of a checkbox.
138
138
  *
139
139
  * @category Presentation
140
140
  */
@@ -2,6 +2,8 @@ import { QBaseComponentProps } from '../../types/component';
2
2
  import { Appearance, Placement, Trigger } from '../../composables/overlay';
3
3
  import { Selector } from '../../utils/getElement';
4
4
  export type { Appearance as QOverlayAppearance, Trigger as QOverlayTrigger, Axis as QOverlayAxis, Side as QOverlaySide, Alignment as QOverlayAlignment, Placement as QOverlayPlacement } from '../../composables/overlay';
5
+ /** A DOM selector or element used to position an overlay. */
6
+ export type QOverlayAnchor = Selector | null;
5
7
  export type QOverlayProps = QBaseComponentProps & {
6
8
  /**
7
9
  * The value of the selected item.
@@ -14,7 +16,7 @@ export type QOverlayProps = QBaseComponentProps & {
14
16
  *
15
17
  * @category Identification
16
18
  */
17
- anchor?: Selector | null;
19
+ anchor?: QOverlayAnchor;
18
20
  /**
19
21
  * The appearance of the overlay.
20
22
  * 'regular' uses body text color for background and body background color for text.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,YAAY,EACX,UAAU,IAAI,kBAAkB,EAChC,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACpB,IAAI,IAAI,YAAY,EACpB,SAAS,IAAI,iBAAiB,EAC9B,SAAS,IAAI,iBAAiB,EAC9B,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IAExB;;;;;;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