@quidgest/ui 0.14.12 → 0.14.13

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 (206) hide show
  1. package/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +1647 -124
  3. package/dist/ui.esm.js +11101 -1899
  4. package/dist/ui.js +29 -29
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +1210 -255
  7. package/dist/ui.scss +208 -7
  8. package/esm/components/QBadge/QBadge.d.ts +2 -1
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +75 -66
  11. package/esm/components/QBadge/index.d.ts +3 -0
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +7 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -1
  15. package/esm/components/QBadge/types.js +5 -2
  16. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +22 -0
  17. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -0
  18. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +43 -0
  19. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +4 -0
  20. package/esm/components/QBadgeIndicator/index.d.ts +28 -0
  21. package/esm/components/QBadgeIndicator/index.d.ts.map +1 -0
  22. package/esm/components/QBadgeIndicator/index.js +6 -0
  23. package/esm/components/QBadgeIndicator/types.d.ts +19 -0
  24. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -0
  25. package/esm/components/QCombobox/QCombobox.d.ts +32 -4
  26. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  27. package/esm/components/QCombobox/index.d.ts +56 -7
  28. package/esm/components/QCombobox/index.d.ts.map +1 -1
  29. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +36 -0
  30. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -0
  31. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +168 -0
  32. package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +4 -0
  33. package/esm/components/QDateTimePicker/index.d.ts +54 -0
  34. package/esm/components/QDateTimePicker/index.d.ts.map +1 -0
  35. package/esm/components/QDateTimePicker/index.js +6 -0
  36. package/esm/components/QDateTimePicker/types.d.ts +93 -0
  37. package/esm/components/QDateTimePicker/types.d.ts.map +1 -0
  38. package/esm/components/QDateTimePicker/types.js +15 -0
  39. package/esm/components/QFileUpload/QFileUpload.d.ts +37 -0
  40. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -0
  41. package/esm/components/QFileUpload/QFileUpload.vue.js +238 -0
  42. package/esm/components/QFileUpload/QFileUpload.vue2.js +4 -0
  43. package/esm/components/QFileUpload/index.d.ts +52 -0
  44. package/esm/components/QFileUpload/index.d.ts.map +1 -0
  45. package/esm/components/QFileUpload/index.js +6 -0
  46. package/esm/components/QFileUpload/types.d.ts +69 -0
  47. package/esm/components/QFileUpload/types.d.ts.map +1 -0
  48. package/esm/components/QFileUpload/types.js +28 -0
  49. package/esm/components/QTextField/QTextField.d.ts +3 -0
  50. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  51. package/esm/components/QTextField/QTextField.vue.js +51 -39
  52. package/esm/components/QTextField/index.d.ts +7 -0
  53. package/esm/components/QTextField/index.d.ts.map +1 -1
  54. package/esm/components/QTextField/types.d.ts +11 -0
  55. package/esm/components/QTextField/types.d.ts.map +1 -1
  56. package/esm/components/index.d.ts +3 -0
  57. package/esm/components/index.d.ts.map +1 -1
  58. package/esm/components/index.js +62 -56
  59. package/esm/composables/maska.d.ts +28 -0
  60. package/esm/composables/maska.d.ts.map +1 -0
  61. package/esm/composables/maska.js +26 -0
  62. package/esm/composables/useDropZone/index.d.ts +38 -0
  63. package/esm/composables/useDropZone/index.d.ts.map +1 -0
  64. package/esm/composables/useDropZone/index.js +62 -0
  65. package/esm/index.d.ts +3 -0
  66. package/esm/utils/color.js +57 -27
  67. package/esm/utils/date/date.d.ts +9 -0
  68. package/esm/utils/date/date.d.ts.map +1 -0
  69. package/esm/utils/date/date.js +91 -0
  70. package/esm/utils/date/index.d.ts +4 -0
  71. package/esm/utils/date/index.d.ts.map +1 -0
  72. package/esm/utils/date/tokens.d.ts +49 -0
  73. package/esm/utils/date/tokens.d.ts.map +1 -0
  74. package/esm/utils/date/tokens.js +243 -0
  75. package/esm/utils/download.d.ts +7 -0
  76. package/esm/utils/download.d.ts.map +1 -0
  77. package/esm/utils/download.js +16 -0
  78. package/esm/utils/string.d.ts.map +1 -1
  79. package/esm/utils/string.js +5 -2
  80. package/esm/utils/time.d.ts +36 -0
  81. package/esm/utils/time.d.ts.map +1 -0
  82. package/esm/utils/time.js +14 -0
  83. package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +5148 -0
  84. package/esm/vendors/date-fns/_lib/addLeadingZeros.js +7 -0
  85. package/esm/vendors/date-fns/_lib/defaultOptions.js +7 -0
  86. package/esm/vendors/date-fns/_lib/format/formatters.js +583 -0
  87. package/esm/vendors/date-fns/_lib/format/lightFormatters.js +59 -0
  88. package/esm/vendors/date-fns/_lib/format/longFormatters.js +52 -0
  89. package/esm/vendors/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  90. package/esm/vendors/date-fns/_lib/normalizeDates.js +11 -0
  91. package/esm/vendors/date-fns/_lib/normalizeInterval.js +8 -0
  92. package/esm/vendors/date-fns/_lib/protectedTokens.js +20 -0
  93. package/esm/vendors/date-fns/add.js +20 -0
  94. package/esm/vendors/date-fns/addDays.js +10 -0
  95. package/esm/vendors/date-fns/addHours.js +9 -0
  96. package/esm/vendors/date-fns/addMilliseconds.js +9 -0
  97. package/esm/vendors/date-fns/addMonths.js +20 -0
  98. package/esm/vendors/date-fns/addQuarters.js +8 -0
  99. package/esm/vendors/date-fns/addYears.js +8 -0
  100. package/esm/vendors/date-fns/compareAsc.js +9 -0
  101. package/esm/vendors/date-fns/constants.js +9 -0
  102. package/esm/vendors/date-fns/constructFrom.js +8 -0
  103. package/esm/vendors/date-fns/differenceInCalendarDays.js +16 -0
  104. package/esm/vendors/date-fns/differenceInCalendarYears.js +13 -0
  105. package/esm/vendors/date-fns/differenceInYears.js +17 -0
  106. package/esm/vendors/date-fns/eachDayOfInterval.js +17 -0
  107. package/esm/vendors/date-fns/eachQuarterOfInterval.js +18 -0
  108. package/esm/vendors/date-fns/endOfQuarter.js +9 -0
  109. package/esm/vendors/date-fns/endOfWeek.js +11 -0
  110. package/esm/vendors/date-fns/endOfYear.js +9 -0
  111. package/esm/vendors/date-fns/format.js +59 -0
  112. package/esm/vendors/date-fns/getDay.js +8 -0
  113. package/esm/vendors/date-fns/getDayOfYear.js +11 -0
  114. package/esm/vendors/date-fns/getDaysInMonth.js +10 -0
  115. package/esm/vendors/date-fns/getDefaultOptions.js +8 -0
  116. package/esm/vendors/date-fns/getHours.js +8 -0
  117. package/esm/vendors/date-fns/getISODay.js +9 -0
  118. package/esm/vendors/date-fns/getISOWeek.js +12 -0
  119. package/esm/vendors/date-fns/getISOWeekYear.js +15 -0
  120. package/esm/vendors/date-fns/getMinutes.js +8 -0
  121. package/esm/vendors/date-fns/getMonth.js +8 -0
  122. package/esm/vendors/date-fns/getQuarter.js +9 -0
  123. package/esm/vendors/date-fns/getSeconds.js +8 -0
  124. package/esm/vendors/date-fns/getWeek.js +12 -0
  125. package/esm/vendors/date-fns/getWeekYear.js +17 -0
  126. package/esm/vendors/date-fns/getYear.js +8 -0
  127. package/esm/vendors/date-fns/isAfter.js +8 -0
  128. package/esm/vendors/date-fns/isBefore.js +8 -0
  129. package/esm/vendors/date-fns/isDate.js +7 -0
  130. package/esm/vendors/date-fns/isEqual.js +8 -0
  131. package/esm/vendors/date-fns/isSameQuarter.js +14 -0
  132. package/esm/vendors/date-fns/isValid.js +9 -0
  133. package/esm/vendors/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  134. package/esm/vendors/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  135. package/esm/vendors/date-fns/locale/_lib/buildMatchFn.js +31 -0
  136. package/esm/vendors/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  137. package/esm/vendors/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  138. package/esm/vendors/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  139. package/esm/vendors/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  140. package/esm/vendors/date-fns/locale/en-US/_lib/localize.js +155 -0
  141. package/esm/vendors/date-fns/locale/en-US/_lib/match.js +110 -0
  142. package/esm/vendors/date-fns/locale/en-US.js +21 -0
  143. package/esm/vendors/date-fns/parse/_lib/Parser.js +22 -0
  144. package/esm/vendors/date-fns/parse/_lib/Setter.js +41 -0
  145. package/esm/vendors/date-fns/parse/_lib/constants.js +49 -0
  146. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  147. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  148. package/esm/vendors/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  149. package/esm/vendors/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  150. package/esm/vendors/date-fns/parse/_lib/parsers/DayParser.js +49 -0
  151. package/esm/vendors/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  152. package/esm/vendors/date-fns/parse/_lib/parsers/EraParser.js +33 -0
  153. package/esm/vendors/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  154. package/esm/vendors/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  155. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  156. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  157. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  158. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  159. package/esm/vendors/date-fns/parse/_lib/parsers/ISODayParser.js +105 -0
  160. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  161. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  162. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  163. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  164. package/esm/vendors/date-fns/parse/_lib/parsers/LocalDayParser.js +80 -0
  165. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  166. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  167. package/esm/vendors/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  168. package/esm/vendors/date-fns/parse/_lib/parsers/MonthParser.js +77 -0
  169. package/esm/vendors/date-fns/parse/_lib/parsers/QuarterParser.js +75 -0
  170. package/esm/vendors/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  171. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +80 -0
  172. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +77 -0
  173. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +75 -0
  174. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  175. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  176. package/esm/vendors/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  177. package/esm/vendors/date-fns/parse/_lib/parsers.js +67 -0
  178. package/esm/vendors/date-fns/parse/_lib/utils.js +103 -0
  179. package/esm/vendors/date-fns/parse.js +89 -0
  180. package/esm/vendors/date-fns/set.js +11 -0
  181. package/esm/vendors/date-fns/setDay.js +12 -0
  182. package/esm/vendors/date-fns/setHours.js +9 -0
  183. package/esm/vendors/date-fns/setISODay.js +11 -0
  184. package/esm/vendors/date-fns/setISOWeek.js +10 -0
  185. package/esm/vendors/date-fns/setMilliseconds.js +9 -0
  186. package/esm/vendors/date-fns/setMinutes.js +9 -0
  187. package/esm/vendors/date-fns/setMonth.js +13 -0
  188. package/esm/vendors/date-fns/setSeconds.js +9 -0
  189. package/esm/vendors/date-fns/setWeek.js +10 -0
  190. package/esm/vendors/date-fns/setYear.js +10 -0
  191. package/esm/vendors/date-fns/startOfDay.js +9 -0
  192. package/esm/vendors/date-fns/startOfISOWeek.js +8 -0
  193. package/esm/vendors/date-fns/startOfISOWeekYear.js +11 -0
  194. package/esm/vendors/date-fns/startOfMonth.js +9 -0
  195. package/esm/vendors/date-fns/startOfQuarter.js +9 -0
  196. package/esm/vendors/date-fns/startOfWeek.js +11 -0
  197. package/esm/vendors/date-fns/startOfWeekYear.js +13 -0
  198. package/esm/vendors/date-fns/startOfYear.js +9 -0
  199. package/esm/vendors/date-fns/sub.js +19 -0
  200. package/esm/vendors/date-fns/subDays.js +8 -0
  201. package/esm/vendors/date-fns/subMonths.js +8 -0
  202. package/esm/vendors/date-fns/subYears.js +8 -0
  203. package/esm/vendors/date-fns/toDate.js +8 -0
  204. package/esm/vendors/date-fns/transpose.js +18 -0
  205. package/esm/vendors/maska/dist/maska.js +179 -0
  206. package/package.json +5 -1
@@ -0,0 +1,52 @@
1
+ import { QFileUploadProps } from './types';
2
+ declare const QFileUpload: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
+ modelValue?: File;
5
+ } & QFileUploadProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: File) => any) | undefined;
7
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: File) => any;
9
+ }, import('vue').PublicProps, {
10
+ size: "large" | "xlarge" | "xxlarge" | "block";
11
+ icons: typeof import('./types').DEFAULT_ICONS;
12
+ texts: typeof import('./types').DEFAULT_TEXTS;
13
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
14
+ dropZoneRef: HTMLDivElement;
15
+ fileInput: HTMLInputElement;
16
+ }, any, import('vue').ComponentProvideOptions, {
17
+ P: {};
18
+ B: {};
19
+ D: {};
20
+ C: {};
21
+ M: {};
22
+ Defaults: {};
23
+ }, Readonly<{
24
+ modelValue?: File;
25
+ } & QFileUploadProps> & Readonly<{
26
+ "onUpdate:modelValue"?: ((value: File) => any) | undefined;
27
+ }>, {}, {}, {}, {}, {
28
+ size: "large" | "xlarge" | "xxlarge" | "block";
29
+ icons: typeof import('./types').DEFAULT_ICONS;
30
+ texts: typeof import('./types').DEFAULT_TEXTS;
31
+ }>;
32
+ __isFragment?: never;
33
+ __isTeleport?: never;
34
+ __isSuspense?: never;
35
+ } & import('vue').ComponentOptionsBase<Readonly<{
36
+ modelValue?: File;
37
+ } & QFileUploadProps> & Readonly<{
38
+ "onUpdate:modelValue"?: ((value: File) => any) | undefined;
39
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
+ "update:modelValue": (value: File) => any;
41
+ }, string, {
42
+ size: "large" | "xlarge" | "xxlarge" | "block";
43
+ icons: typeof import('./types').DEFAULT_ICONS;
44
+ texts: typeof import('./types').DEFAULT_TEXTS;
45
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
46
+ $slots: {
47
+ extras?(_: {}): any;
48
+ };
49
+ });
50
+ export { QFileUpload };
51
+ export type { QFileUploadProps };
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import o from "./QFileUpload.vue.js";
2
+ import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
+ const t = r(o);
4
+ export {
5
+ t as QFileUpload
6
+ };
@@ -0,0 +1,69 @@
1
+ export type QFileUploadProps = {
2
+ /**
3
+ * The field unique identifier.
4
+ */
5
+ id?: string;
6
+ /**
7
+ * The label of the input.
8
+ */
9
+ label?: string;
10
+ /**
11
+ * The size category of the field.
12
+ */
13
+ size?: 'large' | 'xlarge' | 'xxlarge' | 'block';
14
+ /**
15
+ * If set to true, the control is read-only.
16
+ */
17
+ readonly?: boolean;
18
+ /**
19
+ * If set to true, the control is disabled.
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * If set to true, an asterisk (*) is displayed
24
+ * to indicate that the field is required.
25
+ */
26
+ required?: boolean;
27
+ /**
28
+ * Specifies the accepted file types.
29
+ */
30
+ accept?: string | string[];
31
+ /**
32
+ * Custom set of classes to apply to the component.
33
+ */
34
+ class?: string | unknown[];
35
+ /**
36
+ * Custom icon configurations.
37
+ */
38
+ icons?: typeof DEFAULT_ICONS;
39
+ /**
40
+ * Custom text configurations.
41
+ */
42
+ texts?: typeof DEFAULT_TEXTS;
43
+ };
44
+ export declare const DEFAULT_ICONS: {
45
+ remove: {
46
+ icon: string;
47
+ };
48
+ download: {
49
+ icon: string;
50
+ };
51
+ upload: {
52
+ icon: string;
53
+ };
54
+ file: {
55
+ icon: string;
56
+ };
57
+ empty: {
58
+ icon: string;
59
+ };
60
+ };
61
+ export declare const DEFAULT_TEXTS: {
62
+ dropHereOr: string;
63
+ chooseFile: string;
64
+ preview: string;
65
+ download: string;
66
+ remove: string;
67
+ empty: string;
68
+ };
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;IAE/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,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"}
@@ -0,0 +1,28 @@
1
+ const e = {
2
+ remove: {
3
+ icon: "close"
4
+ },
5
+ download: {
6
+ icon: "download"
7
+ },
8
+ upload: {
9
+ icon: "upload"
10
+ },
11
+ file: {
12
+ icon: "file"
13
+ },
14
+ empty: {
15
+ icon: "diameter-variant"
16
+ }
17
+ }, o = {
18
+ dropHereOr: "Drop here or",
19
+ chooseFile: "Choose file",
20
+ preview: "Preview",
21
+ download: "Download attached file",
22
+ remove: "Remove attached file",
23
+ empty: "No document attached"
24
+ };
25
+ export {
26
+ e as DEFAULT_ICONS,
27
+ o as DEFAULT_TEXTS
28
+ };
@@ -91,8 +91,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
91
91
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
92
92
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
93
93
  "update:modelValue": (value: string) => any;
94
+ } & {
95
+ "click:clear": (event: Event) => any;
94
96
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
95
97
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
98
+ "onClick:clear"?: ((event: Event) => any) | undefined;
96
99
  }>, {
97
100
  type: string;
98
101
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1 +1 @@
1
- {"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AA8CA;AAyFC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoCpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkE2ijB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAhDhsjB;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+BsjjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB/rjB,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":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAoHC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAwDpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqE2je,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnDhte;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bske,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB/se,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,13 +1,15 @@
1
- import { defineComponent as b, mergeModels as h, useModel as q, ref as f, computed as u, createBlock as $, openBlock as k, unref as o, normalizeClass as g, createSlots as v, withCtx as d, withDirectives as x, createElementVNode as R, mergeProps as z, vModelDynamic as B, renderSlot as a } from "vue";
2
- import { QField as V } from "../QField/index.js";
3
- import { useId as M } from "../../composables/uid.js";
4
- const C = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], L = /* @__PURE__ */ b({
1
+ import { defineComponent as C, mergeModels as c, useModel as g, ref as y, computed as o, createBlock as b, openBlock as h, unref as r, normalizeClass as R, createSlots as V, withCtx as a, withDirectives as z, createElementVNode as M, mergeProps as w, vModelDynamic as Q, renderSlot as d, createCommentVNode as D } from "vue";
2
+ import { QField as F } from "../QField/index.js";
3
+ import { QClearButton as L } from "../__internal__/QClearButton/index.js";
4
+ import { useId as N } from "../../composables/uid.js";
5
+ const S = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], P = /* @__PURE__ */ C({
5
6
  inheritAttrs: !1,
6
7
  __name: "QTextField",
7
- props: /* @__PURE__ */ h({
8
+ props: /* @__PURE__ */ c({
8
9
  id: {},
9
10
  placeholder: {},
10
11
  label: {},
12
+ clearable: { type: Boolean },
11
13
  size: {},
12
14
  maxLength: {},
13
15
  readonly: { type: Boolean },
@@ -15,55 +17,59 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
15
17
  required: { type: Boolean },
16
18
  role: {},
17
19
  type: { default: "text" },
18
- class: {}
20
+ class: {},
21
+ texts: {}
19
22
  }, {
20
23
  modelValue: {},
21
24
  modelModifiers: {}
22
25
  }),
23
- emits: ["update:modelValue"],
24
- setup(r, { expose: m }) {
25
- const e = r, n = q(r, "modelValue"), s = M(e.id), t = f(null), i = f(null), y = u(
26
+ emits: /* @__PURE__ */ c(["click:clear"], ["update:modelValue"]),
27
+ setup(n, { expose: v, emit: k }) {
28
+ const e = n, x = k, t = g(n, "modelValue"), s = N(e.id), i = y(null), p = y(null), q = o(
26
29
  () => e.readonly || e.disabled ? void 0 : e.placeholder
27
- );
28
- return m({
29
- fieldRef: u(() => {
30
+ ), u = o(() => e.clearable && !e.readonly && !e.disabled), f = o(() => u.value && t.value);
31
+ function $(l) {
32
+ u.value && (t.value = "", x("click:clear", l));
33
+ }
34
+ return v({
35
+ fieldRef: o(() => {
30
36
  var l;
31
- return (l = t.value) == null ? void 0 : l.fieldRef;
37
+ return (l = i.value) == null ? void 0 : l.fieldRef;
32
38
  }),
33
- inputRef: i
34
- }), (l, p) => (k(), $(o(V), {
39
+ inputRef: p
40
+ }), (l, m) => (h(), b(r(F), {
35
41
  ref_key: "fieldRef",
36
- ref: t,
37
- class: g(["q-text-field", e.class]),
38
- for: o(s),
42
+ ref: i,
43
+ class: R(["q-text-field", e.class]),
44
+ for: r(s),
39
45
  label: e.label,
40
46
  size: e.size,
41
47
  readonly: e.readonly,
42
48
  disabled: e.disabled,
43
49
  required: e.required
44
- }, v({
45
- "label.prepend": d(() => [
46
- a(l.$slots, "label.prepend")
50
+ }, V({
51
+ "label.prepend": a(() => [
52
+ d(l.$slots, "label.prepend")
47
53
  ]),
48
- "label.append": d(() => [
49
- a(l.$slots, "label.append")
54
+ "label.append": a(() => [
55
+ d(l.$slots, "label.append")
50
56
  ]),
51
- default: d(() => [
52
- x(R("input", z({
53
- id: o(s),
57
+ default: a(() => [
58
+ z(M("input", w({
59
+ id: r(s),
54
60
  ref_key: "inputRef",
55
- ref: i,
56
- "onUpdate:modelValue": p[0] || (p[0] = (c) => n.value = c),
61
+ ref: p,
62
+ "onUpdate:modelValue": m[0] || (m[0] = (B) => t.value = B),
57
63
  class: "q-text-field__input",
58
64
  type: e.type,
59
65
  role: e.role,
60
66
  required: e.required,
61
- placeholder: y.value,
67
+ placeholder: q.value,
62
68
  readonly: e.readonly,
63
69
  disabled: e.disabled,
64
70
  maxlength: e.maxLength
65
- }, l.$attrs), null, 16, C), [
66
- [B, n.value]
71
+ }, l.$attrs), null, 16, S), [
72
+ [Q, t.value]
67
73
  ])
68
74
  ]),
69
75
  _: 2
@@ -71,22 +77,28 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
71
77
  }, [
72
78
  l.$slots.prepend ? {
73
79
  name: "prepend",
74
- fn: d(() => [
75
- a(l.$slots, "prepend")
80
+ fn: a(() => [
81
+ d(l.$slots, "prepend")
76
82
  ]),
77
83
  key: "0"
78
84
  } : void 0,
79
- l.$slots.append ? {
85
+ l.$slots.append || f.value ? {
80
86
  name: "append",
81
- fn: d(() => [
82
- a(l.$slots, "append")
87
+ fn: a(() => [
88
+ d(l.$slots, "append"),
89
+ f.value ? (h(), b(r(L), {
90
+ key: 0,
91
+ "data-testid": "q-text-field__clear-button",
92
+ texts: e.texts,
93
+ onClick: $
94
+ }, null, 8, ["texts"])) : D("v-if", !0)
83
95
  ]),
84
96
  key: "1"
85
97
  } : void 0,
86
98
  l.$slots.extras ? {
87
99
  name: "extras",
88
- fn: d(() => [
89
- a(l.$slots, "extras")
100
+ fn: a(() => [
101
+ d(l.$slots, "extras")
90
102
  ]),
91
103
  key: "2"
92
104
  } : void 0
@@ -94,5 +106,5 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
94
106
  }
95
107
  });
96
108
  export {
97
- L as default
109
+ P as default
98
110
  };
@@ -3,11 +3,14 @@ declare const QTextField: {
3
3
  modelValue?: string;
4
4
  } & import('./types').QTextFieldProps> & Readonly<{
5
5
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
6
+ "onClick:clear"?: ((event: Event) => any) | undefined;
6
7
  }>, {
7
8
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
8
9
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
9
10
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
11
  "update:modelValue": (value: string) => any;
12
+ } & {
13
+ "click:clear": (event: Event) => any;
11
14
  }, import('vue').PublicProps, {
12
15
  type: string;
13
16
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -91,6 +94,7 @@ declare const QTextField: {
91
94
  modelValue?: string;
92
95
  } & import('./types').QTextFieldProps> & Readonly<{
93
96
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
97
+ "onClick:clear"?: ((event: Event) => any) | undefined;
94
98
  }>, {
95
99
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
96
100
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
@@ -104,11 +108,14 @@ declare const QTextField: {
104
108
  modelValue?: string;
105
109
  } & import('./types').QTextFieldProps> & Readonly<{
106
110
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
111
+ "onClick:clear"?: ((event: Event) => any) | undefined;
107
112
  }>, {
108
113
  fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
109
114
  inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
110
115
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
111
116
  "update:modelValue": (value: string) => any;
117
+ } & {
118
+ "click:clear": (event: Event) => any;
112
119
  }, string, {
113
120
  type: string;
114
121
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIyvzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJh1zB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIyvzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJh1zB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -12,6 +12,10 @@ export type QTextFieldProps = {
12
12
  * The label of the input.
13
13
  */
14
14
  label?: string;
15
+ /**
16
+ * Whether the value of the field can be cleared.
17
+ */
18
+ clearable?: boolean;
15
19
  /**
16
20
  * The size of the text field.
17
21
  */
@@ -46,5 +50,12 @@ export type QTextFieldProps = {
46
50
  * Custom set of classes to apply to the component.
47
51
  */
48
52
  class?: string | unknown[];
53
+ /**
54
+ * Custom text configurations.
55
+ */
56
+ texts?: typeof DEFAULT_TEXTS;
57
+ };
58
+ export declare const DEFAULT_TEXTS: {
59
+ clearValue: string;
49
60
  };
50
61
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './QAccordion';
2
2
  export * from './QBadge';
3
+ export * from './QBadgeIndicator';
3
4
  export * from './QButton';
4
5
  export * from './QButtonGroup';
5
6
  export * from './QButtonToggle';
@@ -8,9 +9,11 @@ export * from './QCheckbox';
8
9
  export * from './QCollapsible';
9
10
  export * from './QColorPicker';
10
11
  export * from './QCombobox';
12
+ export * from './QDateTimePicker';
11
13
  export * from './QDialog';
12
14
  export * from './QDropdownMenu';
13
15
  export * from './QField';
16
+ export * from './QFileUpload';
14
17
  export * from './QIcon';
15
18
  export * from './QInputGroup';
16
19
  export * from './QLineLoader';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -1,62 +1,68 @@
1
1
  import { QAccordion as e } from "./QAccordion/index.js";
2
2
  import { QBadge as p } from "./QBadge/index.js";
3
- import { QButton as m } from "./QButton/index.js";
4
- import { QButtonGroup as f } from "./QButtonGroup/index.js";
5
- import { QButtonToggle as n } from "./QButtonToggle/index.js";
6
- import { QCard as L } from "./QCard/index.js";
7
- import { QCheckbox as a } from "./QCheckbox/index.js";
8
- import { QCollapsible as u } from "./QCollapsible/index.js";
9
- import { QColorPicker as I } from "./QColorPicker/index.js";
10
- import { QCombobox as g } from "./QCombobox/index.js";
11
- import { QDialog as C } from "./QDialog/index.js";
12
- import { QDropdownMenu as v } from "./QDropdownMenu/index.js";
13
- import { QField as G } from "./QField/index.js";
14
- import { QIcon as T, QIconFont as k, QIconImg as F, QIconSvg as h } from "./QIcon/index.js";
15
- import { QInputGroup as D } from "./QInputGroup/index.js";
16
- import { QLineLoader as M } from "./QLineLoader/index.js";
17
- import { QList as R, QListItem as j, QListItemGroup as q } from "./QList/index.js";
18
- import { QOverlay as E } from "./QOverlay/index.js";
19
- import { QPopover as J } from "./QPopover/index.js";
20
- import { QPropertyList as N, QPropertyListGroup as U, QPropertyListPanel as V, QPropertyListRow as W } from "./QPropertyList/index.js";
21
- import { QSelect as Y } from "./QSelect/index.js";
22
- import { QSkeletonLoader as _ } from "./QSkeletonLoader/index.js";
23
- import { QSpinnerLoader as oo } from "./QSpinnerLoader/index.js";
24
- import { QTextField as eo } from "./QTextField/index.js";
25
- import { QThemeProvider as po } from "./QThemeProvider/index.js";
26
- import { QTooltip as mo } from "./QTooltip/index.js";
3
+ import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
4
+ import { QButton as f } from "./QButton/index.js";
5
+ import { QButtonGroup as n } from "./QButtonGroup/index.js";
6
+ import { QButtonToggle as a } from "./QButtonToggle/index.js";
7
+ import { QCard as c } from "./QCard/index.js";
8
+ import { QCheckbox as u } from "./QCheckbox/index.js";
9
+ import { QCollapsible as P } from "./QCollapsible/index.js";
10
+ import { QColorPicker as g } from "./QColorPicker/index.js";
11
+ import { QCombobox as B } from "./QCombobox/index.js";
12
+ import { QDateTimePicker as T } from "./QDateTimePicker/index.js";
13
+ import { QDialog as k } from "./QDialog/index.js";
14
+ import { QDropdownMenu as F } from "./QDropdownMenu/index.js";
15
+ import { QField as S } from "./QField/index.js";
16
+ import { QFileUpload as h } from "./QFileUpload/index.js";
17
+ import { QIcon as A, QIconFont as M, QIconImg as O, QIconSvg as R } from "./QIcon/index.js";
18
+ import { QInputGroup as j } from "./QInputGroup/index.js";
19
+ import { QLineLoader as z } from "./QLineLoader/index.js";
20
+ import { QList as H, QListItem as J, QListItemGroup as K } from "./QList/index.js";
21
+ import { QOverlay as V } from "./QOverlay/index.js";
22
+ import { QPopover as X } from "./QPopover/index.js";
23
+ import { QPropertyList as Z, QPropertyListGroup as _, QPropertyListPanel as $, QPropertyListRow as oo } from "./QPropertyList/index.js";
24
+ import { QSelect as eo } from "./QSelect/index.js";
25
+ import { QSkeletonLoader as po } from "./QSkeletonLoader/index.js";
26
+ import { QSpinnerLoader as mo } from "./QSpinnerLoader/index.js";
27
+ import { QTextField as fo } from "./QTextField/index.js";
28
+ import { QThemeProvider as no } from "./QThemeProvider/index.js";
29
+ import { QTooltip as ao } from "./QTooltip/index.js";
27
30
  export {
28
31
  e as QAccordion,
29
32
  p as QBadge,
30
- m as QButton,
31
- f as QButtonGroup,
32
- n as QButtonToggle,
33
- L as QCard,
34
- a as QCheckbox,
35
- u as QCollapsible,
36
- I as QColorPicker,
37
- g as QCombobox,
38
- C as QDialog,
39
- v as QDropdownMenu,
40
- G as QField,
41
- T as QIcon,
42
- k as QIconFont,
43
- F as QIconImg,
44
- h as QIconSvg,
45
- D as QInputGroup,
46
- M as QLineLoader,
47
- R as QList,
48
- j as QListItem,
49
- q as QListItemGroup,
50
- E as QOverlay,
51
- J as QPopover,
52
- N as QPropertyList,
53
- U as QPropertyListGroup,
54
- V as QPropertyListPanel,
55
- W as QPropertyListRow,
56
- Y as QSelect,
57
- _ as QSkeletonLoader,
58
- oo as QSpinnerLoader,
59
- eo as QTextField,
60
- po as QThemeProvider,
61
- mo as QTooltip
33
+ m as QBadgeIndicator,
34
+ f as QButton,
35
+ n as QButtonGroup,
36
+ a as QButtonToggle,
37
+ c as QCard,
38
+ u as QCheckbox,
39
+ P as QCollapsible,
40
+ g as QColorPicker,
41
+ B as QCombobox,
42
+ T as QDateTimePicker,
43
+ k as QDialog,
44
+ F as QDropdownMenu,
45
+ S as QField,
46
+ h as QFileUpload,
47
+ A as QIcon,
48
+ M as QIconFont,
49
+ O as QIconImg,
50
+ R as QIconSvg,
51
+ j as QInputGroup,
52
+ z as QLineLoader,
53
+ H as QList,
54
+ J as QListItem,
55
+ K as QListItemGroup,
56
+ V as QOverlay,
57
+ X as QPopover,
58
+ Z as QPropertyList,
59
+ _ as QPropertyListGroup,
60
+ $ as QPropertyListPanel,
61
+ oo as QPropertyListRow,
62
+ eo as QSelect,
63
+ po as QSkeletonLoader,
64
+ mo as QSpinnerLoader,
65
+ fo as QTextField,
66
+ no as QThemeProvider,
67
+ ao as QTooltip
62
68
  };
@@ -0,0 +1,28 @@
1
+ import { MaskOptions, MaskInput } from 'maska';
2
+ import { Ref } from 'vue';
3
+ /**
4
+ * Creates and manages a masked input instance on a given HTML input element.
5
+ *
6
+ * This function initializes a MaskInput instance using the provided HTML input element or a ref to the element.
7
+ * It applies mask options if provided, and listens for changes in the options to update the mask instance dynamically.
8
+ * The mask is automatically destroyed when the component is unmounted.
9
+ *
10
+ * @param target - The HTML input element or a ref to the HTML input element where the mask should be applied.
11
+ * @param options - (Optional) A ref to a set of mask options to configure the input mask. The mask instance will be updated
12
+ * when these options change.
13
+ *
14
+ * @returns An object containing a "maska" ref to the MaskInput instance.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const inputRef = ref<HTMLInputElement | null>(null);
19
+ * const maskOptions = ref<MaskOptions>({ mask: '###-##-####', tokens: { '#': { pattern: /\d/ } } });
20
+ * const { maska } = useMaska(inputRef, maskOptions);
21
+ * ```
22
+ *
23
+ * @see MaskInput for more details on how the mask is implemented.
24
+ */
25
+ export declare function useMaska(target: HTMLInputElement | Ref<HTMLInputElement | null | undefined>, options?: Ref<MaskOptions>): {
26
+ maska: Ref<MaskInput, MaskInput>;
27
+ };
28
+ //# sourceMappingURL=maska.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maska.d.ts","sourceRoot":"","sources":["../../src/composables/maska.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CACvB,MAAM,EAAE,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC,EACnE,OAAO,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;;EAmC1B"}
@@ -0,0 +1,26 @@
1
+ import { MaskInput as m } from "../vendors/maska/dist/maska.js";
2
+ import { ref as c, onMounted as d, onUnmounted as f, watch as o } from "vue";
3
+ function M(u, e) {
4
+ const n = c(null), r = () => {
5
+ const a = u instanceof HTMLInputElement ? u : u.value;
6
+ if (!a)
7
+ throw new Error("Input element is required");
8
+ n.value = new m(a, e == null ? void 0 : e.value), e && o(
9
+ e,
10
+ (s) => {
11
+ var t;
12
+ (t = n.value) == null || t.update(s);
13
+ },
14
+ { deep: !0 }
15
+ );
16
+ }, l = () => {
17
+ var a;
18
+ (a = n.value) == null || a.destroy(), n.value = null;
19
+ };
20
+ return d(r), f(l), {
21
+ maska: n
22
+ };
23
+ }
24
+ export {
25
+ M as useMaska
26
+ };