@quidgest/ui 0.18.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 (164) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/dist/json/api.json +1328 -215
  3. package/dist/manifest/components.json +3 -1
  4. package/dist/ui.css +1448 -185
  5. package/dist/ui.esm.js +1448 -825
  6. package/dist/ui.js +1411 -788
  7. package/dist/ui.min.css +2 -1
  8. package/dist/ui.min.js +1411 -788
  9. package/dist/ui.scss +597 -157
  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/QGrid/QCol.vue.js +1 -1
  13. package/esm/components/QInputGroup/QInputGroup.d.ts +147 -3
  14. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  15. package/esm/components/QInputGroup/QInputGroup.vue.js +32 -23
  16. package/esm/components/QInputGroup/index.d.ts +81 -4
  17. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  18. package/esm/components/QList/QList.d.ts.map +1 -1
  19. package/esm/components/QList/QList.vue.js +3 -1
  20. package/esm/components/QList/QListItem.d.ts.map +1 -1
  21. package/esm/components/QList/QListItem.vue.js +24 -28
  22. package/esm/components/QList/types.d.ts +1 -1
  23. package/esm/components/QOverlay/types.d.ts +3 -1
  24. package/esm/components/QOverlay/types.d.ts.map +1 -1
  25. package/esm/components/QPhoneField/QPhoneField.d.ts +2263 -0
  26. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -0
  27. package/esm/components/QPhoneField/QPhoneField.vue.js +478 -0
  28. package/esm/components/QPhoneField/QPhoneField2.vue.js +5 -0
  29. package/esm/components/QPhoneField/constants.d.ts +11 -0
  30. package/esm/components/QPhoneField/constants.d.ts.map +1 -0
  31. package/esm/components/QPhoneField/constants.js +14 -0
  32. package/esm/components/QPhoneField/index.d.ts +1253 -0
  33. package/esm/components/QPhoneField/index.d.ts.map +1 -0
  34. package/esm/components/QPhoneField/index.js +6 -0
  35. package/esm/components/QPhoneField/types.d.ts +108 -0
  36. package/esm/components/QPhoneField/types.d.ts.map +1 -0
  37. package/esm/components/{QGroupBox/QGroupBox.d.ts → QSection/QSection.d.ts} +4 -4
  38. package/esm/components/QSection/QSection.d.ts.map +1 -0
  39. package/esm/components/{QGroupBox/QGroupBox.vue.js → QSection/QSection.vue.js} +8 -8
  40. package/esm/components/QSection/QSection2.vue.js +5 -0
  41. package/esm/components/{QGroupBox → QSection}/index.d.ts +8 -8
  42. package/esm/components/QSection/index.d.ts.map +1 -0
  43. package/esm/components/QSection/index.js +6 -0
  44. package/esm/components/QSection/types.d.ts +32 -0
  45. package/esm/components/QSection/types.d.ts.map +1 -0
  46. package/esm/components/QSelect/QSelect.d.ts +16 -1
  47. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  48. package/esm/components/QSelect/QSelect.vue.js +158 -129
  49. package/esm/components/QSelect/index.d.ts +31 -3
  50. package/esm/components/QSelect/index.d.ts.map +1 -1
  51. package/esm/components/QSelect/types.d.ts +13 -0
  52. package/esm/components/QSelect/types.d.ts.map +1 -1
  53. package/esm/components/QSidebar/QSidebar.d.ts +53 -6
  54. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  55. package/esm/components/QSidebar/QSidebar.vue.js +76 -106
  56. package/esm/components/QSidebar/QSidebarAnchor.d.ts +24 -210
  57. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  58. package/esm/components/QSidebar/QSidebarAnchor.vue.js +47 -59
  59. package/esm/components/QSidebar/QSidebarItem.d.ts +213 -0
  60. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -0
  61. package/esm/components/QSidebar/QSidebarItem.vue.js +130 -0
  62. package/esm/components/QSidebar/QSidebarItem2.vue.js +5 -0
  63. package/esm/components/QSidebar/QSidebarPanel.d.ts +1 -7
  64. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  65. package/esm/components/QSidebar/QSidebarPanel.vue.js +4 -10
  66. package/esm/components/QSidebar/context.d.ts +108 -0
  67. package/esm/components/QSidebar/context.d.ts.map +1 -0
  68. package/esm/components/QSidebar/context.js +4 -0
  69. package/esm/components/QSidebar/index.d.ts +166 -8
  70. package/esm/components/QSidebar/index.d.ts.map +1 -1
  71. package/esm/components/QSidebar/index.js +3 -2
  72. package/esm/components/QSidebar/types.d.ts +77 -42
  73. package/esm/components/QSidebar/types.d.ts.map +1 -1
  74. package/esm/components/QTabs/QTab.d.ts +1 -0
  75. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  76. package/esm/components/QTabs/QTab.vue.js +2 -1
  77. package/esm/components/QTabs/QTabs.d.ts +2 -0
  78. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  79. package/esm/components/QTabs/QTabs.vue.js +125 -46
  80. package/esm/components/QTabs/context.d.ts +10 -3
  81. package/esm/components/QTabs/context.d.ts.map +1 -1
  82. package/esm/components/QTabs/index.d.ts +2 -0
  83. package/esm/components/QTabs/index.d.ts.map +1 -1
  84. package/esm/components/QTabs/types.d.ts +3 -1
  85. package/esm/components/QTabs/types.d.ts.map +1 -1
  86. package/esm/components/index.d.ts +2 -1
  87. package/esm/components/index.d.ts.map +1 -1
  88. package/esm/components/index.js +48 -45
  89. package/esm/composables/useDialog/index.d.ts +2 -88
  90. package/esm/composables/useDialog/index.d.ts.map +1 -1
  91. package/esm/composables/useDialog/index.js +6 -6
  92. package/esm/composables/useDialog/types.d.ts +14 -4
  93. package/esm/composables/useDialog/types.d.ts.map +1 -1
  94. package/esm/index.d.ts +3 -1
  95. package/esm/vendors/country-flag-icons/modules/countries.json.js +4 -0
  96. package/esm/vendors/country-flag-icons/modules/hasFlag.js +7 -0
  97. package/esm/vendors/libphonenumber-js/es6/AsYouType.js +312 -0
  98. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +142 -0
  99. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +145 -0
  100. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +45 -0
  101. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.js +258 -0
  102. package/esm/vendors/libphonenumber-js/es6/AsYouTypeFormatter.util.js +57 -0
  103. package/esm/vendors/libphonenumber-js/es6/AsYouTypeParser.js +242 -0
  104. package/esm/vendors/libphonenumber-js/es6/AsYouTypeState.js +115 -0
  105. package/esm/vendors/libphonenumber-js/es6/ParseError.js +116 -0
  106. package/esm/vendors/libphonenumber-js/es6/PhoneNumber.js +164 -0
  107. package/esm/vendors/libphonenumber-js/es6/constants.js +4 -0
  108. package/esm/vendors/libphonenumber-js/es6/format.js +77 -0
  109. package/esm/vendors/libphonenumber-js/es6/formatIncompletePhoneNumber.js +7 -0
  110. package/esm/vendors/libphonenumber-js/es6/getCountries.js +7 -0
  111. package/esm/vendors/libphonenumber-js/es6/getExampleNumber.js +7 -0
  112. package/esm/vendors/libphonenumber-js/es6/helpers/RFC3966.js +9 -0
  113. package/esm/vendors/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
  114. package/esm/vendors/libphonenumber-js/es6/helpers/checkNumberLength.js +21 -0
  115. package/esm/vendors/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
  116. package/esm/vendors/libphonenumber-js/es6/helpers/extension/extractExtension.js +16 -0
  117. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +36 -0
  118. package/esm/vendors/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
  119. package/esm/vendors/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +18 -0
  120. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumber.js +27 -0
  121. package/esm/vendors/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
  122. package/esm/vendors/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -0
  123. package/esm/vendors/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +11 -0
  124. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +13 -0
  125. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +12 -0
  126. package/esm/vendors/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +43 -0
  127. package/esm/vendors/libphonenumber-js/es6/helpers/getIddPrefix.js +10 -0
  128. package/esm/vendors/libphonenumber-js/es6/helpers/getNumberType.js +61 -0
  129. package/esm/vendors/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
  130. package/esm/vendors/libphonenumber-js/es6/helpers/isCallingCode.js +7 -0
  131. package/esm/vendors/libphonenumber-js/es6/helpers/isCountryCode.js +7 -0
  132. package/esm/vendors/libphonenumber-js/es6/helpers/isObject.js +7 -0
  133. package/esm/vendors/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +12 -0
  134. package/esm/vendors/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
  135. package/esm/vendors/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
  136. package/esm/vendors/libphonenumber-js/es6/helpers/parseDigits.js +82 -0
  137. package/esm/vendors/libphonenumber-js/es6/helpers/stripIddPrefix.js +18 -0
  138. package/esm/vendors/libphonenumber-js/es6/isPossible.js +32 -0
  139. package/esm/vendors/libphonenumber-js/es6/isValid.js +11 -0
  140. package/esm/vendors/libphonenumber-js/es6/metadata.js +474 -0
  141. package/esm/vendors/libphonenumber-js/es6/normalizeArguments.js +110 -0
  142. package/esm/vendors/libphonenumber-js/es6/parse.js +103 -0
  143. package/esm/vendors/libphonenumber-js/es6/parseIncompletePhoneNumber.js +48 -0
  144. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
  145. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumberWithError_.js +58 -0
  146. package/esm/vendors/libphonenumber-js/es6/parsePhoneNumber_.js +66 -0
  147. package/esm/vendors/libphonenumber-js/es6/tools/semver-compare.js +14 -0
  148. package/esm/vendors/libphonenumber-js/examples.mobile.json.js +250 -0
  149. package/esm/vendors/libphonenumber-js/max/exports/AsYouType.js +9 -0
  150. package/esm/vendors/libphonenumber-js/max/exports/formatIncompletePhoneNumber.js +8 -0
  151. package/esm/vendors/libphonenumber-js/max/exports/getCountries.js +8 -0
  152. package/esm/vendors/libphonenumber-js/max/exports/getCountryCallingCode.js +8 -0
  153. package/esm/vendors/libphonenumber-js/max/exports/getExampleNumber.js +8 -0
  154. package/esm/vendors/libphonenumber-js/max/exports/isSupportedCountry.js +8 -0
  155. package/esm/vendors/libphonenumber-js/max/exports/parsePhoneNumber.js +8 -0
  156. package/esm/vendors/libphonenumber-js/max/exports/withMetadataArgument.js +8 -0
  157. package/esm/vendors/libphonenumber-js/metadata.max.json.js +10489 -0
  158. package/package.json +9 -6
  159. package/esm/components/QGroupBox/QGroupBox.d.ts.map +0 -1
  160. package/esm/components/QGroupBox/QGroupBox2.vue.js +0 -5
  161. package/esm/components/QGroupBox/index.d.ts.map +0 -1
  162. package/esm/components/QGroupBox/index.js +0 -6
  163. package/esm/components/QGroupBox/types.d.ts +0 -32
  164. package/esm/components/QGroupBox/types.d.ts.map +0 -1
@@ -3,7 +3,8 @@ import { QTabsDirection } from './types';
3
3
  /**
4
4
  * Metadata registered by each {@link QTab} with its parent {@link QTabs}.
5
5
  *
6
- * Used for keyboard navigation, default selection, and focusing tab triggers.
6
+ * Used for keyboard navigation, default selection, focusing tab triggers,
7
+ * and positioning the line-variant active indicator.
7
8
  */
8
9
  export type TabRegistration = {
9
10
  /**
@@ -16,6 +17,12 @@ export type TabRegistration = {
16
17
  * Stored as a computed so the parent can react when the prop changes.
17
18
  */
18
19
  disabled: ComputedRef<boolean>;
20
+ /**
21
+ * Template ref for the tab trigger element (indicator positioning).
22
+ */
23
+ tabRef: Ref<{
24
+ $el?: HTMLElement;
25
+ } | HTMLElement | null>;
19
26
  /**
20
27
  * Moves DOM focus to this tab's trigger button.
21
28
  */
@@ -32,9 +39,9 @@ export type TabRegistration = {
32
39
  */
33
40
  export type TabsContext = {
34
41
  /**
35
- * DOM element that hosts the tablist (`role="tablist"`).
42
+ * DOM element with `role="tablist"` that owns teleported tab triggers.
36
43
  *
37
- * Each `QTab` teleports its trigger button into this element.
44
+ * The line indicator lives on the outer `.q-tabs__list` host, not here.
38
45
  */
39
46
  tabListEl: Ref<HTMLElement | null>;
40
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;;;OAIG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAA;IAExC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,E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A;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,WAAW,CAAoB,CAAA"}
@@ -15,6 +15,7 @@ declare const QTabs: {
15
15
  direction: import('./types').QTabsDirection;
16
16
  align: import('./types').QTabsAlign;
17
17
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
18
+ tabListHost: HTMLDivElement;
18
19
  tabListEl: HTMLDivElement;
19
20
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
20
21
  P: {};
@@ -155,6 +156,7 @@ declare const QTab: {
155
156
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
156
157
  $slots: {
157
158
  'title.prepend'?(_: {}): any;
159
+ title?(_: {}): any;
158
160
  'title.append'?(_: {}): any;
159
161
  default?(_: {}): any;
160
162
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAA;AACrC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOy30B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPt90B,CAAA;AAGnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAA;AACrC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOy30B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPt90B,CAAA;AAGnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
@@ -20,7 +20,7 @@ export type QTabsAlign = 'start' | 'end' | 'center' | 'justify';
20
20
  /**
21
21
  * Visual style of the tab list.
22
22
  *
23
- * - `line` — underline indicator on a shared baseline
23
+ * - `line` — sliding underline / edge indicator on a shared baseline
24
24
  * - `card` — bordered folder tabs that merge into the panel
25
25
  */
26
26
  export type QTabsVariant = 'line' | 'card';
@@ -69,6 +69,8 @@ export type QTabProps = QBaseComponentProps & {
69
69
  /**
70
70
  * The label text shown on the tab trigger.
71
71
  *
72
+ * Overridden when the `title` slot is provided.
73
+ *
72
74
  * @category Content
73
75
  */
74
76
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAA;AAEtD;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAA;AAE1C;;;;GAIG;AACH,MA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AAC,EAAE,YAAY,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,mBAAmB,GAAG;IAC7C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
@@ -20,7 +20,6 @@ export * from './QField';
20
20
  export * from './QFileUpload';
21
21
  export * from './QFocusWrap';
22
22
  export * from './QGrid';
23
- export * from './QGroupBox';
24
23
  export * from './QIcon';
25
24
  export * from './QInputGroup';
26
25
  export * from './QLabel';
@@ -30,9 +29,11 @@ export * from './QMeter';
30
29
  export * from './QObfuscation';
31
30
  export * from './QOverlay';
32
31
  export * from './QPasswordField';
32
+ export * from './QPhoneField';
33
33
  export * from './QPopover';
34
34
  export * from './QPropertyList';
35
35
  export * from './QRadioGroup';
36
+ export * from './QSection';
36
37
  export * from './QSelect';
37
38
  export * from './QSidebar';
38
39
  export * from './QSkeletonLoader';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;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AAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
@@ -30,26 +30,27 @@ import { QDivider as F } from "./QDivider/index.js";
30
30
  import { QDropdownMenu as te } from "./QDropdownMenu/index.js";
31
31
  import { QFileUpload as I } from "./QFileUpload/index.js";
32
32
  import { QCol as L, QContainer as R, QRow as z, QSpacer as B } from "./QGrid/index.js";
33
- import { QGroupBox as V } from "./QGroupBox/index.js";
34
- import { QInputGroup as H } from "./QInputGroup/index.js";
35
- import { QLineLoader as U } from "./QLineLoader/index.js";
36
- import { QMeter as W } from "./QMeter/index.js";
37
- import { QObfuscation as G } from "./QObfuscation/index.js";
38
- import { QPasswordField as K } from "./QPasswordField/index.js";
39
- import { QPopover as q } from "./QPopover/index.js";
40
- import { QPropertyList as J, QPropertyListGroup as Y, QPropertyListPanel as X, QPropertyListRow as Z } from "./QPropertyList/index.js";
41
- import { QRadioButton as Q, QRadioGroup as $ } from "./QRadioGroup/index.js";
42
- import { QSelect as ne } from "./QSelect/index.js";
43
- import { QToggle as re } from "./QToggle/index.js";
44
- import { QSidebar as ie } from "./QSidebar/index.js";
45
- import { QTab as ae, QTabs as oe } from "./QTabs/index.js";
46
- import { QTextArea as se } from "./QTextArea/index.js";
47
- import { QThemeProvider as ce } from "./QThemeProvider/index.js";
48
- import { QToast as le, QToaster as ue } from "./QToast/index.js";
49
- import { QToggleGroup as de, QToggleGroupItem as fe } from "./QToggleGroup/index.js";
50
- import { QTooltip as pe } from "./QTooltip/index.js";
33
+ import { QInputGroup as V } from "./QInputGroup/index.js";
34
+ import { QLineLoader as H } from "./QLineLoader/index.js";
35
+ import { QMeter as U } from "./QMeter/index.js";
36
+ import { QObfuscation as W } from "./QObfuscation/index.js";
37
+ import { QPasswordField as G } from "./QPasswordField/index.js";
38
+ import { QPopover as K } from "./QPopover/index.js";
39
+ import { QSelect as q } from "./QSelect/index.js";
40
+ import { QPhoneField as J } from "./QPhoneField/index.js";
41
+ import { QPropertyList as Y, QPropertyListGroup as X, QPropertyListPanel as Z, QPropertyListRow as Q } from "./QPropertyList/index.js";
42
+ import { QRadioButton as $, QRadioGroup as ne } from "./QRadioGroup/index.js";
43
+ import { QSection as re } from "./QSection/index.js";
44
+ import { QToggle as ie } from "./QToggle/index.js";
45
+ import { QSidebar as ae, QSidebarItem as oe } from "./QSidebar/index.js";
46
+ import { QTab as se, QTabs as ce } from "./QTabs/index.js";
47
+ import { QTextArea as le } from "./QTextArea/index.js";
48
+ import { QThemeProvider as ue } from "./QThemeProvider/index.js";
49
+ import { QToast as de, QToaster as fe } from "./QToast/index.js";
50
+ import { QToggleGroup as pe, QToggleGroupItem as me } from "./QToggleGroup/index.js";
51
+ import { QTooltip as he } from "./QTooltip/index.js";
51
52
  //#region src/components/index.ts
52
- var me = /* @__PURE__ */ ee({
53
+ var ge = /* @__PURE__ */ ee({
53
54
  DEFAULT_TEXTS: () => b,
54
55
  QAccordion: () => c,
55
56
  QAccordionItem: () => l,
@@ -77,46 +78,48 @@ var me = /* @__PURE__ */ ee({
77
78
  QField: () => y,
78
79
  QFileUpload: () => I,
79
80
  QFocusWrap: () => D,
80
- QGroupBox: () => V,
81
81
  QIcon: () => r,
82
82
  QIconFont: () => i,
83
83
  QIconImg: () => a,
84
84
  QIconSvg: () => o,
85
- QInputGroup: () => H,
85
+ QInputGroup: () => V,
86
86
  QLabel: () => g,
87
- QLineLoader: () => U,
87
+ QLineLoader: () => H,
88
88
  QList: () => C,
89
89
  QListItem: () => w,
90
90
  QListItemGroup: () => T,
91
- QMeter: () => W,
92
- QObfuscation: () => G,
91
+ QMeter: () => U,
92
+ QObfuscation: () => W,
93
93
  QOverlay: () => O,
94
- QPasswordField: () => K,
95
- QPopover: () => q,
96
- QPropertyList: () => J,
97
- QPropertyListGroup: () => Y,
98
- QPropertyListPanel: () => X,
99
- QPropertyListRow: () => Z,
100
- QRadioButton: () => Q,
101
- QRadioGroup: () => $,
94
+ QPasswordField: () => G,
95
+ QPhoneField: () => J,
96
+ QPopover: () => K,
97
+ QPropertyList: () => Y,
98
+ QPropertyListGroup: () => X,
99
+ QPropertyListPanel: () => Z,
100
+ QPropertyListRow: () => Q,
101
+ QRadioButton: () => $,
102
+ QRadioGroup: () => ne,
102
103
  QRow: () => z,
103
- QSelect: () => ne,
104
- QSidebar: () => ie,
104
+ QSection: () => re,
105
+ QSelect: () => q,
106
+ QSidebar: () => ae,
107
+ QSidebarItem: () => oe,
105
108
  QSkeletonLoader: () => m,
106
109
  QSpacer: () => B,
107
110
  QSpinnerLoader: () => e,
108
111
  QSwitch: () => A,
109
- QTab: () => ae,
110
- QTabs: () => oe,
111
- QTextArea: () => se,
112
+ QTab: () => se,
113
+ QTabs: () => ce,
114
+ QTextArea: () => le,
112
115
  QTextField: () => x,
113
- QThemeProvider: () => ce,
114
- QToast: () => le,
115
- QToaster: () => ue,
116
- QToggle: () => re,
117
- QToggleGroup: () => de,
118
- QToggleGroupItem: () => fe,
119
- QTooltip: () => pe
116
+ QThemeProvider: () => ue,
117
+ QToast: () => de,
118
+ QToaster: () => fe,
119
+ QToggle: () => ie,
120
+ QToggleGroup: () => pe,
121
+ QToggleGroupItem: () => me,
122
+ QTooltip: () => he
120
123
  });
121
124
  //#endregion
122
- export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, L as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, R as QContainer, j as QDateTimePicker, M as QDefaultsProvider, N as QDialog, P as QDialogProvider, E as QDismissibleLayer, F as QDivider, te as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, V as QGroupBox, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, H as QInputGroup, g as QLabel, U as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, W as QMeter, G as QObfuscation, O as QOverlay, K as QPasswordField, q as QPopover, J as QPropertyList, Y as QPropertyListGroup, X as QPropertyListPanel, Z as QPropertyListRow, Q as QRadioButton, $ as QRadioGroup, z as QRow, ne as QSelect, ie as QSidebar, m as QSkeletonLoader, B as QSpacer, e as QSpinnerLoader, A as QSwitch, ae as QTab, oe as QTabs, se as QTextArea, x as QTextField, ce as QThemeProvider, le as QToast, ue as QToaster, re as QToggle, de as QToggleGroup, fe as QToggleGroupItem, pe as QTooltip, me as components_exports };
125
+ export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, L as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, R as QContainer, j as QDateTimePicker, M as QDefaultsProvider, N as QDialog, P as QDialogProvider, E as QDismissibleLayer, F as QDivider, te as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, V as QInputGroup, g as QLabel, H as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, U as QMeter, W as QObfuscation, O as QOverlay, G as QPasswordField, J as QPhoneField, K as QPopover, Y as QPropertyList, X as QPropertyListGroup, Z as QPropertyListPanel, Q as QPropertyListRow, $ as QRadioButton, ne as QRadioGroup, z as QRow, re as QSection, q as QSelect, ae as QSidebar, oe as QSidebarItem, m as QSkeletonLoader, B as QSpacer, e as QSpinnerLoader, A as QSwitch, se as QTab, ce as QTabs, le as QTextArea, x as QTextField, ue as QThemeProvider, de as QToast, fe as QToaster, ie as QToggle, pe as QToggleGroup, me as QToggleGroupItem, he as QTooltip, ge as components_exports };
@@ -1,94 +1,8 @@
1
- import { QDialogProps, QDialogOptions, QDialogHandlers } from '../../components/QDialog/types.ts';
1
+ import { UseDialogReturn } from './types.ts';
2
2
  /**
3
3
  * Manager for dialog models
4
4
  *
5
5
  * @returns Dialog state and functions
6
6
  */
7
- export declare function useDialog(): {
8
- addDialog: (props: QDialogProps, id?: string, options?: QDialogOptions, handlers?: QDialogHandlers) => string;
9
- removeDialog: (id: string) => void;
10
- dialogs: {
11
- id: string;
12
- props: {
13
- id?: string | undefined;
14
- class?: string | unknown[] | undefined;
15
- modelValue?: boolean | undefined;
16
- title?: string | undefined;
17
- text?: string | undefined;
18
- icon?: {
19
- id?: string | undefined;
20
- class?: string | unknown[] | undefined;
21
- icon: string;
22
- size?: number | undefined;
23
- color?: string | undefined;
24
- type?: "svg" | "font" | "img" | undefined;
25
- } | undefined;
26
- buttons?: {
27
- id: string;
28
- icon?: {
29
- id?: string | undefined;
30
- class?: string | unknown[] | undefined;
31
- icon: string;
32
- size?: number | undefined;
33
- color?: string | undefined;
34
- type?: "svg" | "font" | "img" | undefined;
35
- } | undefined;
36
- action?: {
37
- (value?: string): void;
38
- } | undefined;
39
- props: {
40
- id?: string | undefined;
41
- class?: string | unknown[] | undefined;
42
- label?: string | undefined;
43
- variant?: import('../../components/index.ts').QButtonVariant | undefined;
44
- color?: string | undefined;
45
- borderless?: boolean | undefined;
46
- elevated?: boolean | undefined;
47
- block?: boolean | undefined;
48
- size?: import('../../components/index.ts').QButtonSize | undefined;
49
- iconPos?: import('../../components/index.ts').QButtonIconPosition | undefined;
50
- pill?: boolean | undefined;
51
- disabled?: boolean | undefined;
52
- loading?: boolean | undefined;
53
- };
54
- }[] | undefined;
55
- backdropBlur?: boolean | undefined;
56
- size?: import('../../components/index.ts').QDialogSize | undefined;
57
- centerVertically?: boolean | undefined;
58
- attach?: string | undefined;
59
- inline?: boolean | undefined;
60
- focusWrap?: boolean | undefined;
61
- initialFocus?: (HTMLElement | string | null) | undefined;
62
- focusWithinOnActivate?: boolean | undefined;
63
- closingFocus?: (HTMLElement | string) | undefined;
64
- returnFocusOnDeactivate?: boolean | undefined;
65
- dismissible?: boolean | undefined;
66
- html?: boolean | undefined;
67
- input?: {
68
- type: string;
69
- placeholder?: string | undefined;
70
- validator?: ((value: string) => string | undefined) | undefined;
71
- } | undefined;
72
- icons?: {
73
- close: {
74
- icon: string;
75
- };
76
- } | undefined;
77
- };
78
- options?: {
79
- size?: import('../../components/index.ts').QDialogSize | undefined;
80
- dismissible?: boolean | undefined;
81
- input?: {
82
- type: string;
83
- placeholder?: string | undefined;
84
- validator?: ((value: string) => string | undefined) | undefined;
85
- } | undefined;
86
- } | undefined;
87
- handlers?: {
88
- onEnter?: (() => void) | undefined;
89
- onLeave?: (() => boolean | void) | undefined;
90
- onAction?: ((val: string) => void) | undefined;
91
- } | undefined;
92
- }[];
93
- };
7
+ export declare function useDialog(): UseDialogReturn;
94
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,MAAM,mCAAmC,CAAA;AAS1C;;;;GAIG;AACH,wBAAgB,SAAS;uBAWhB,YAAY,OACd,MAAM,YACD,cAAc,aACb,eAAe;uBAyBD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmBm8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADp+B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,YAAY,CAAA;AAQjE;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,eAAe,CAyD3C"}
@@ -1,11 +1,11 @@
1
1
  import { useId as e } from "../uid.js";
2
- import { reactive as t } from "vue";
2
+ import { ref as t } from "vue";
3
3
  //#region src/composables/useDialog/index.ts
4
- var n = t({ dialogs: [] });
4
+ var n = t([]);
5
5
  function r() {
6
6
  function t(t, r, i, a) {
7
7
  let o = e(r).value;
8
- return n.dialogs.push({
8
+ return n.value.push({
9
9
  id: o,
10
10
  props: {
11
11
  ...t,
@@ -16,11 +16,11 @@ function r() {
16
16
  }), a?.onEnter && a.onEnter(), o;
17
17
  }
18
18
  function r(e) {
19
- let t = n.dialogs.findIndex((t) => t.id === e);
20
- t !== -1 && (n.dialogs[t]?.handlers?.onLeave?.() ?? !0) && n.dialogs.splice(t, 1);
19
+ let t = n.value.findIndex((t) => t.id === e);
20
+ t !== -1 && (n.value[t]?.handlers?.onLeave?.() ?? !0) && n.value.splice(t, 1);
21
21
  }
22
22
  return {
23
- ...n,
23
+ dialogs: n,
24
24
  addDialog: t,
25
25
  removeDialog: r
26
26
  };
@@ -1,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  import { QDialogProps, QDialogOptions, QDialogHandlers } from '../../components/QDialog/types.ts';
2
3
  /**
3
4
  * Represents an instance of a dialog component.
@@ -21,12 +22,21 @@ export type DialogInstance = {
21
22
  handlers?: QDialogHandlers;
22
23
  };
23
24
  /**
24
- * Represents the state for dialog management.
25
+ * Represents the return type of the `useDialog` composable, providing methods and state
26
+ * for managing dialog instances.
25
27
  */
26
- export type DialogState = {
28
+ export type UseDialogReturn = {
27
29
  /**
28
- * An array containing the currently active dialog instances.
30
+ * A Vue Ref containing the list of currently active dialog instances.
29
31
  */
30
- dialogs: DialogInstance[];
32
+ dialogs: Ref<DialogInstance[]>;
33
+ /**
34
+ * Adds a new dialog to the state with the specified properties and an optional custom ID.
35
+ */
36
+ addDialog(props: QDialogProps, id?: string, options?: QDialogOptions, handlers?: QDialogHandlers): string;
37
+ /**
38
+ * Removes a dialog from the state by its unique identifier.
39
+ */
40
+ removeDialog(id: string): void;
31
41
  };
32
42
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,MAAM,mCAAmC,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,OAAO,EAAE,cAAc,EAAE,CAAA;CACzB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,KAAK,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,MAAM,mCAAmC,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC,cAAc,EAAE,CAAC,CAAA;IAE9B;;OAEG;IACH,SAAS,CACR,KAAK,EAAE,YAAY,EACnB,EAAE,CAAC,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,GACxB,MAAM,CAAA;IAET;;OAEG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,CAAA"}
package/esm/index.d.ts CHANGED
@@ -36,7 +36,6 @@ declare module '@vue/runtime-core' {
36
36
  QContainer: typeof import('@quidgest/ui/components')['QContainer']
37
37
  QRow: typeof import('@quidgest/ui/components')['QRow']
38
38
  QSpacer: typeof import('@quidgest/ui/components')['QSpacer']
39
- QGroupBox: typeof import('@quidgest/ui/components')['QGroupBox']
40
39
  QIcon: typeof import('@quidgest/ui/components')['QIcon']
41
40
  QIconFont: typeof import('@quidgest/ui/components')['QIconFont']
42
41
  QIconImg: typeof import('@quidgest/ui/components')['QIconImg']
@@ -51,6 +50,7 @@ declare module '@vue/runtime-core' {
51
50
  QObfuscation: typeof import('@quidgest/ui/components')['QObfuscation']
52
51
  QOverlay: typeof import('@quidgest/ui/components')['QOverlay']
53
52
  QPasswordField: typeof import('@quidgest/ui/components')['QPasswordField']
53
+ QPhoneField: typeof import('@quidgest/ui/components')['QPhoneField']
54
54
  QPopover: typeof import('@quidgest/ui/components')['QPopover']
55
55
  QPropertyList: typeof import('@quidgest/ui/components')['QPropertyList']
56
56
  QPropertyListRow: typeof import('@quidgest/ui/components')['QPropertyListRow']
@@ -58,8 +58,10 @@ declare module '@vue/runtime-core' {
58
58
  QPropertyListPanel: typeof import('@quidgest/ui/components')['QPropertyListPanel']
59
59
  QRadioButton: typeof import('@quidgest/ui/components')['QRadioButton']
60
60
  QRadioGroup: typeof import('@quidgest/ui/components')['QRadioGroup']
61
+ QSection: typeof import('@quidgest/ui/components')['QSection']
61
62
  QSelect: typeof import('@quidgest/ui/components')['QSelect']
62
63
  QSidebar: typeof import('@quidgest/ui/components')['QSidebar']
64
+ QSidebarItem: typeof import('@quidgest/ui/components')['QSidebarItem']
63
65
  QSkeletonLoader: typeof import('@quidgest/ui/components')['QSkeletonLoader']
64
66
  QSpinnerLoader: typeof import('@quidgest/ui/components')['QSpinnerLoader']
65
67
  QSwitch: typeof import('@quidgest/ui/components')['QSwitch']
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/country-flag-icons@1.6.19/node_modules/country-flag-icons/modules/countries.json.js
2
+ var e = /* @__PURE__ */ "AC.AD.AE.AF.AG.AI.AL.AM.AO.AQ.AR.AS.AT.AU.AW.AX.AZ.BA.BB.BD.BE.BF.BG.BH.BI.BJ.BL.BM.BN.BO.BQ-BO.BQ-SA.BQ-SE.BQ.BR.BS.BT.BV.BW.BY.BZ.CA.CC.CD.CF.CG.CH.CI.CK.CL.CM.CN.CO.CR.CU.CV.CW.CX.CY.CZ.DE.DJ.DK.DM.DO.DZ.EC.EE.EG.EH.ER.ES-CT.ES.ET.EU.FI.FJ.FK.FM.FO.FR.GA.GB-ENG.GB-NIR.GB-SCT.GB-WLS.GB.GD.GE.GF.GG.GH.GI.GL.GM.GN.GP.GQ.GR.GS.GT.GU.GW.GY.HK.HM.HN.HR.HT.HU.IC.ID.IE.IL.IM.IN.IO.IQ.IR.IS.IT.JE.JM.JO.JP.KE.KG.KH.KI.KM.KN.KP.KR.KW.KY.KZ.LA.LB.LC.LI.LK.LR.LS.LT.LU.LV.LY.MA.MC.MD.ME.MF.MG.MH.MK.ML.MM.MN.MO.MP.MQ.MR.MS.MT.MU.MV.MW.MX.MY.MZ.NA.NC.NE.NF.NG.NI.NL.NO.NP.NR.NU.NZ.OM.PA.PE.PF.PG.PH.PK.PL.PM.PN.PR.PS.PT.PW.PY.QA.RE.RO.RS.RU.RW.SA.SB.SC.SD.SE.SG.SH.SI.SJ.SK.SL.SM.SN.SO.SR.SS.ST.SV.SX.SY.SZ.TA.TC.TD.TF.TG.TH.TJ.TK.TL.TM.TN.TO.TR.TT.TV.TW.TZ.UA.UG.UM.US.UY.UZ.VA.VC.VE.VG.VI.VN.VU.WF.WS.XA.XC.XK.XO.YE.YT.ZA.ZM.ZW".split(".");
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,7 @@
1
+ import e from "./countries.json.js";
2
+ //#region ../../node_modules/.pnpm/country-flag-icons@1.6.19/node_modules/country-flag-icons/modules/hasFlag.js
3
+ function t(t) {
4
+ return e.indexOf(t) >= 0;
5
+ }
6
+ //#endregion
7
+ export { t as default };