@quidgest/ui 0.14.17 → 0.14.19

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 (113) hide show
  1. package/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +90 -27
  3. package/dist/ui.esm.js +5867 -5517
  4. package/dist/ui.js +16 -16
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +222 -198
  7. package/dist/ui.scss +94 -30
  8. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.vue.js +42 -48
  10. package/esm/components/QCheckbox/QCheckbox.d.ts +2 -1
  11. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  12. package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
  13. package/esm/components/QCheckbox/constants.d.ts +9 -0
  14. package/esm/components/QCheckbox/constants.d.ts.map +1 -0
  15. package/esm/components/QCheckbox/index.d.ts +6 -6
  16. package/esm/components/QCheckbox/types.d.ts +1 -8
  17. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  18. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  19. package/esm/components/QCollapsible/QCollapsible.vue.js +9 -8
  20. package/esm/components/QCombobox/QCombobox.d.ts +24 -0
  21. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  22. package/esm/components/QCombobox/QCombobox.vue.js +1 -0
  23. package/esm/components/QCombobox/index.d.ts +45 -3
  24. package/esm/components/QCombobox/index.d.ts.map +1 -1
  25. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  26. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +12 -10
  27. package/esm/components/QDateTimePicker/index.d.ts +6 -0
  28. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  29. package/esm/components/QField/QField.d.ts.map +1 -1
  30. package/esm/components/QField/QField.vue.js +47 -39
  31. package/esm/components/QField/types.d.ts +6 -10
  32. package/esm/components/QField/types.d.ts.map +1 -1
  33. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  34. package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
  35. package/esm/components/QFileUpload/index.d.ts +6 -0
  36. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  37. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
  38. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  39. package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
  40. package/esm/components/QInputGroup/index.d.ts +2 -0
  41. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  42. package/esm/components/QLabel/QLabel.d.ts +20 -0
  43. package/esm/components/QLabel/QLabel.d.ts.map +1 -0
  44. package/esm/components/QLabel/QLabel.vue.js +27 -0
  45. package/esm/components/QLabel/QLabel.vue2.js +4 -0
  46. package/esm/components/QLabel/index.d.ts +22 -0
  47. package/esm/components/QLabel/index.d.ts.map +1 -0
  48. package/esm/components/QLabel/index.js +6 -0
  49. package/esm/components/QLabel/types.d.ts +12 -0
  50. package/esm/components/QLabel/types.d.ts.map +1 -0
  51. package/esm/components/QMeter/QMeter.d.ts +14 -0
  52. package/esm/components/QMeter/QMeter.d.ts.map +1 -0
  53. package/esm/components/QMeter/QMeter.vue.js +60 -0
  54. package/esm/components/QMeter/QMeter.vue2.js +4 -0
  55. package/esm/components/QMeter/index.d.ts +29 -0
  56. package/esm/components/QMeter/index.d.ts.map +1 -0
  57. package/esm/components/QMeter/index.js +6 -0
  58. package/esm/components/QMeter/types.d.ts +20 -0
  59. package/esm/components/QMeter/types.d.ts.map +1 -0
  60. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  61. package/esm/components/QOverlay/QOverlay.vue.js +94 -102
  62. package/esm/components/QOverlay/index.d.ts +2 -0
  63. package/esm/components/QOverlay/index.d.ts.map +1 -1
  64. package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
  65. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
  66. package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
  67. package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
  68. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
  69. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
  70. package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
  71. package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
  72. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
  73. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
  74. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
  75. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
  76. package/esm/components/QPasswordField/constants.d.ts +9 -0
  77. package/esm/components/QPasswordField/constants.d.ts.map +1 -0
  78. package/esm/components/QPasswordField/constants.js +11 -0
  79. package/esm/components/QPasswordField/index.d.ts +264 -0
  80. package/esm/components/QPasswordField/index.d.ts.map +1 -0
  81. package/esm/components/QPasswordField/index.js +6 -0
  82. package/esm/components/QPasswordField/types.d.ts +100 -0
  83. package/esm/components/QPasswordField/types.d.ts.map +1 -0
  84. package/esm/components/QSelect/QSelect.d.ts +2 -0
  85. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  86. package/esm/components/QSelect/QSelect.vue.js +31 -29
  87. package/esm/components/QSelect/index.d.ts +7 -0
  88. package/esm/components/QSelect/index.d.ts.map +1 -1
  89. package/esm/components/QTextArea/QTextArea.vue.js +10 -9
  90. package/esm/components/QTextArea/index.d.ts +6 -0
  91. package/esm/components/QTextArea/index.d.ts.map +1 -1
  92. package/esm/components/QTextField/QTextField.d.ts +2 -0
  93. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  94. package/esm/components/QTextField/QTextField.vue.js +8 -6
  95. package/esm/components/QTextField/index.d.ts +9 -0
  96. package/esm/components/QTextField/index.d.ts.map +1 -1
  97. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  98. package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -9
  99. package/esm/components/index.d.ts +3 -0
  100. package/esm/components/index.d.ts.map +1 -1
  101. package/esm/components/index.js +51 -45
  102. package/esm/composables/theme.d.ts +2 -0
  103. package/esm/composables/theme.d.ts.map +1 -1
  104. package/esm/composables/useColorStyle/index.d.ts +11 -0
  105. package/esm/composables/useColorStyle/index.d.ts.map +1 -0
  106. package/esm/composables/useColorStyle/index.js +33 -0
  107. package/esm/composables/useColorStyle/types.d.ts +36 -0
  108. package/esm/composables/useColorStyle/types.d.ts.map +1 -0
  109. package/esm/index.d.ts +3 -0
  110. package/esm/utils/theme.d.ts.map +1 -1
  111. package/esm/utils/theme.js +27 -26
  112. package/package.json +1 -1
  113. /package/esm/components/QCheckbox/{types.js → constants.js} +0 -0
@@ -0,0 +1,413 @@
1
+ import { QPasswordFieldProps } from './types';
2
+ type __VLS_Props = QPasswordFieldProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ 'masked'?: boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ 'label.prepend'?(_: {}): any;
11
+ 'label.append'?(_: {}): any;
12
+ prepend?(_: {}): any;
13
+ append?(_: {}): any;
14
+ extras?(_: {}): any;
15
+ };
16
+ refs: {
17
+ fieldRef: ({
18
+ $: import('vue').ComponentInternalInstance;
19
+ $data: {};
20
+ $props: {
21
+ readonly modelValue?: string | undefined;
22
+ readonly id?: string | undefined;
23
+ readonly class?: string | unknown[] | undefined;
24
+ readonly label?: string | undefined;
25
+ readonly for?: string | undefined;
26
+ readonly size?: import('..').QFieldSize | undefined;
27
+ readonly readonly?: boolean | undefined;
28
+ readonly disabled?: boolean | undefined;
29
+ readonly required?: boolean | undefined;
30
+ readonly invalid?: boolean | undefined;
31
+ readonly placeholder?: string | undefined;
32
+ readonly clearable?: boolean | undefined;
33
+ readonly type?: string | undefined;
34
+ readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
35
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
36
+ readonly "onClick:clear"?: ((event: Event) => any) | undefined;
37
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ } & {
44
+ fieldRef: ({
45
+ $: import('vue').ComponentInternalInstance;
46
+ $data: {};
47
+ $props: {
48
+ readonly id?: string | undefined;
49
+ readonly class?: string | unknown[] | undefined;
50
+ readonly label?: string | undefined;
51
+ readonly for?: string | undefined;
52
+ readonly size?: import('..').QFieldSize | undefined;
53
+ readonly readonly?: boolean | undefined;
54
+ readonly disabled?: boolean | undefined;
55
+ readonly required?: boolean | undefined;
56
+ readonly invalid?: boolean | undefined;
57
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
58
+ $attrs: {
59
+ [x: string]: unknown;
60
+ };
61
+ $refs: {
62
+ [x: string]: unknown;
63
+ } & {
64
+ fieldRef: HTMLDivElement;
65
+ };
66
+ $slots: Readonly<{
67
+ [name: string]: import('vue').Slot<any> | undefined;
68
+ }>;
69
+ $root: import('vue').ComponentPublicInstance | null;
70
+ $parent: import('vue').ComponentPublicInstance | null;
71
+ $host: Element | null;
72
+ $emit: (event: string, ...args: any[]) => void;
73
+ $el: any;
74
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
75
+ fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
76
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
77
+ size: import('..').QFieldSize;
78
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
79
+ beforeCreate?: (() => void) | (() => void)[];
80
+ created?: (() => void) | (() => void)[];
81
+ beforeMount?: (() => void) | (() => void)[];
82
+ mounted?: (() => void) | (() => void)[];
83
+ beforeUpdate?: (() => void) | (() => void)[];
84
+ updated?: (() => void) | (() => void)[];
85
+ activated?: (() => void) | (() => void)[];
86
+ deactivated?: (() => void) | (() => void)[];
87
+ beforeDestroy?: (() => void) | (() => void)[];
88
+ beforeUnmount?: (() => void) | (() => void)[];
89
+ destroyed?: (() => void) | (() => void)[];
90
+ unmounted?: (() => void) | (() => void)[];
91
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
92
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
93
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
94
+ };
95
+ $forceUpdate: () => void;
96
+ $nextTick: typeof import('vue').nextTick;
97
+ $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;
98
+ } & Readonly<{
99
+ size: import('..').QFieldSize;
100
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
101
+ fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
102
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
103
+ $slots: {
104
+ 'label.prepend'?(_: {}): any;
105
+ 'label.append'?(_: {}): any;
106
+ control?(_: {}): any;
107
+ prepend?(_: {}): any;
108
+ default?(_: {}): any;
109
+ append?(_: {}): any;
110
+ extras?(_: {}): any;
111
+ };
112
+ }) | null;
113
+ inputRef: HTMLInputElement;
114
+ };
115
+ $slots: Readonly<{
116
+ [name: string]: import('vue').Slot<any> | undefined;
117
+ }>;
118
+ $root: import('vue').ComponentPublicInstance | null;
119
+ $parent: import('vue').ComponentPublicInstance | null;
120
+ $host: Element | null;
121
+ $emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
122
+ $el: any;
123
+ $options: import('vue').ComponentOptionsBase<Readonly<{
124
+ modelValue?: string;
125
+ } & import('../../types/component').QBaseComponentProps & {
126
+ label?: string;
127
+ for?: string;
128
+ } & {
129
+ size?: import('..').QFieldSize;
130
+ readonly?: boolean;
131
+ disabled?: boolean;
132
+ required?: boolean;
133
+ invalid?: boolean;
134
+ } & {
135
+ placeholder?: string;
136
+ clearable?: boolean;
137
+ type?: string;
138
+ texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
139
+ }> & Readonly<{
140
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
141
+ "onClick:clear"?: ((event: Event) => any) | undefined;
142
+ }>, {
143
+ fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
144
+ inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
145
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
146
+ "update:modelValue": (value: string) => any;
147
+ } & {
148
+ "click:clear": (event: Event) => any;
149
+ }, string, {
150
+ type: string;
151
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
152
+ beforeCreate?: (() => void) | (() => void)[];
153
+ created?: (() => void) | (() => void)[];
154
+ beforeMount?: (() => void) | (() => void)[];
155
+ mounted?: (() => void) | (() => void)[];
156
+ beforeUpdate?: (() => void) | (() => void)[];
157
+ updated?: (() => void) | (() => void)[];
158
+ activated?: (() => void) | (() => void)[];
159
+ deactivated?: (() => void) | (() => void)[];
160
+ beforeDestroy?: (() => void) | (() => void)[];
161
+ beforeUnmount?: (() => void) | (() => void)[];
162
+ destroyed?: (() => void) | (() => void)[];
163
+ unmounted?: (() => void) | (() => void)[];
164
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
165
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
166
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
167
+ };
168
+ $forceUpdate: () => void;
169
+ $nextTick: typeof import('vue').nextTick;
170
+ $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;
171
+ } & Readonly<{
172
+ type: string;
173
+ }> & Omit<Readonly<{
174
+ modelValue?: string;
175
+ } & import('../../types/component').QBaseComponentProps & {
176
+ label?: string;
177
+ for?: string;
178
+ } & {
179
+ size?: import('..').QFieldSize;
180
+ readonly?: boolean;
181
+ disabled?: boolean;
182
+ required?: boolean;
183
+ invalid?: boolean;
184
+ } & {
185
+ placeholder?: string;
186
+ clearable?: boolean;
187
+ type?: string;
188
+ texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
189
+ }> & Readonly<{
190
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
191
+ "onClick:clear"?: ((event: Event) => any) | undefined;
192
+ }>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
193
+ fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
194
+ inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
195
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
196
+ $slots: {
197
+ 'label.prepend'?(_: {}): any;
198
+ 'label.append'?(_: {}): any;
199
+ prepend?(_: {}): any;
200
+ append?(_: {}): any;
201
+ extras?(_: {}): any;
202
+ };
203
+ }) | null;
204
+ };
205
+ rootEl: any;
206
+ };
207
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
208
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
209
+ "update:modelValue": (value: string) => any;
210
+ "update:masked": (value: boolean) => any;
211
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
212
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
213
+ "onUpdate:masked"?: ((value: boolean) => any) | undefined;
214
+ }>, {
215
+ size: import('..').QFieldSize;
216
+ icons: import('./types').QPasswordFieldIcons;
217
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
218
+ fieldRef: ({
219
+ $: import('vue').ComponentInternalInstance;
220
+ $data: {};
221
+ $props: {
222
+ readonly modelValue?: string | undefined;
223
+ readonly id?: string | undefined;
224
+ readonly class?: string | unknown[] | undefined;
225
+ readonly label?: string | undefined;
226
+ readonly for?: string | undefined;
227
+ readonly size?: import('..').QFieldSize | undefined;
228
+ readonly readonly?: boolean | undefined;
229
+ readonly disabled?: boolean | undefined;
230
+ readonly required?: boolean | undefined;
231
+ readonly invalid?: boolean | undefined;
232
+ readonly placeholder?: string | undefined;
233
+ readonly clearable?: boolean | undefined;
234
+ readonly type?: string | undefined;
235
+ readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
236
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
237
+ readonly "onClick:clear"?: ((event: Event) => any) | undefined;
238
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
239
+ $attrs: {
240
+ [x: string]: unknown;
241
+ };
242
+ $refs: {
243
+ [x: string]: unknown;
244
+ } & {
245
+ fieldRef: ({
246
+ $: import('vue').ComponentInternalInstance;
247
+ $data: {};
248
+ $props: {
249
+ readonly id?: string | undefined;
250
+ readonly class?: string | unknown[] | undefined;
251
+ readonly label?: string | undefined;
252
+ readonly for?: string | undefined;
253
+ readonly size?: import('..').QFieldSize | undefined;
254
+ readonly readonly?: boolean | undefined;
255
+ readonly disabled?: boolean | undefined;
256
+ readonly required?: boolean | undefined;
257
+ readonly invalid?: boolean | undefined;
258
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
259
+ $attrs: {
260
+ [x: string]: unknown;
261
+ };
262
+ $refs: {
263
+ [x: string]: unknown;
264
+ } & {
265
+ fieldRef: HTMLDivElement;
266
+ };
267
+ $slots: Readonly<{
268
+ [name: string]: import('vue').Slot<any> | undefined;
269
+ }>;
270
+ $root: import('vue').ComponentPublicInstance | null;
271
+ $parent: import('vue').ComponentPublicInstance | null;
272
+ $host: Element | null;
273
+ $emit: (event: string, ...args: any[]) => void;
274
+ $el: any;
275
+ $options: import('vue').ComponentOptionsBase<Readonly<import('..').QFieldProps> & Readonly<{}>, {
276
+ fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
277
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
278
+ size: import('..').QFieldSize;
279
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
280
+ beforeCreate?: (() => void) | (() => void)[];
281
+ created?: (() => void) | (() => void)[];
282
+ beforeMount?: (() => void) | (() => void)[];
283
+ mounted?: (() => void) | (() => void)[];
284
+ beforeUpdate?: (() => void) | (() => void)[];
285
+ updated?: (() => void) | (() => void)[];
286
+ activated?: (() => void) | (() => void)[];
287
+ deactivated?: (() => void) | (() => void)[];
288
+ beforeDestroy?: (() => void) | (() => void)[];
289
+ beforeUnmount?: (() => void) | (() => void)[];
290
+ destroyed?: (() => void) | (() => void)[];
291
+ unmounted?: (() => void) | (() => void)[];
292
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
293
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
294
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
295
+ };
296
+ $forceUpdate: () => void;
297
+ $nextTick: typeof import('vue').nextTick;
298
+ $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;
299
+ } & Readonly<{
300
+ size: import('..').QFieldSize;
301
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
302
+ fieldRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
303
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
304
+ $slots: {
305
+ 'label.prepend'?(_: {}): any;
306
+ 'label.append'?(_: {}): any;
307
+ control?(_: {}): any;
308
+ prepend?(_: {}): any;
309
+ default?(_: {}): any;
310
+ append?(_: {}): any;
311
+ extras?(_: {}): any;
312
+ };
313
+ }) | null;
314
+ inputRef: HTMLInputElement;
315
+ };
316
+ $slots: Readonly<{
317
+ [name: string]: import('vue').Slot<any> | undefined;
318
+ }>;
319
+ $root: import('vue').ComponentPublicInstance | null;
320
+ $parent: import('vue').ComponentPublicInstance | null;
321
+ $host: Element | null;
322
+ $emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
323
+ $el: any;
324
+ $options: import('vue').ComponentOptionsBase<Readonly<{
325
+ modelValue?: string;
326
+ } & import('../../types/component').QBaseComponentProps & {
327
+ label?: string;
328
+ for?: string;
329
+ } & {
330
+ size?: import('..').QFieldSize;
331
+ readonly?: boolean;
332
+ disabled?: boolean;
333
+ required?: boolean;
334
+ invalid?: boolean;
335
+ } & {
336
+ placeholder?: string;
337
+ clearable?: boolean;
338
+ type?: string;
339
+ texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
340
+ }> & Readonly<{
341
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
342
+ "onClick:clear"?: ((event: Event) => any) | undefined;
343
+ }>, {
344
+ fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
345
+ inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
346
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
347
+ "update:modelValue": (value: string) => any;
348
+ } & {
349
+ "click:clear": (event: Event) => any;
350
+ }, string, {
351
+ type: string;
352
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
353
+ beforeCreate?: (() => void) | (() => void)[];
354
+ created?: (() => void) | (() => void)[];
355
+ beforeMount?: (() => void) | (() => void)[];
356
+ mounted?: (() => void) | (() => void)[];
357
+ beforeUpdate?: (() => void) | (() => void)[];
358
+ updated?: (() => void) | (() => void)[];
359
+ activated?: (() => void) | (() => void)[];
360
+ deactivated?: (() => void) | (() => void)[];
361
+ beforeDestroy?: (() => void) | (() => void)[];
362
+ beforeUnmount?: (() => void) | (() => void)[];
363
+ destroyed?: (() => void) | (() => void)[];
364
+ unmounted?: (() => void) | (() => void)[];
365
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
366
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
367
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
368
+ };
369
+ $forceUpdate: () => void;
370
+ $nextTick: typeof import('vue').nextTick;
371
+ $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;
372
+ } & Readonly<{
373
+ type: string;
374
+ }> & Omit<Readonly<{
375
+ modelValue?: string;
376
+ } & import('../../types/component').QBaseComponentProps & {
377
+ label?: string;
378
+ for?: string;
379
+ } & {
380
+ size?: import('..').QFieldSize;
381
+ readonly?: boolean;
382
+ disabled?: boolean;
383
+ required?: boolean;
384
+ invalid?: boolean;
385
+ } & {
386
+ placeholder?: string;
387
+ clearable?: boolean;
388
+ type?: string;
389
+ texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
390
+ }> & Readonly<{
391
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
392
+ "onClick:clear"?: ((event: Event) => any) | undefined;
393
+ }>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
394
+ fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
395
+ inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
396
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
397
+ $slots: {
398
+ 'label.prepend'?(_: {}): any;
399
+ 'label.append'?(_: {}): any;
400
+ prepend?(_: {}): any;
401
+ append?(_: {}): any;
402
+ extras?(_: {}): any;
403
+ };
404
+ }) | null;
405
+ }, any>;
406
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
407
+ export default _default;
408
+ type __VLS_WithTemplateSlots<T, S> = T & {
409
+ new (): {
410
+ $slots: S;
411
+ };
412
+ };
413
+ //# sourceMappingURL=QPasswordField.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPasswordField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordField.vue"],"names":[],"mappings":"AA6DA;AAqLC,OAAO,KAAK,EAEX,mBAAmB,EAEnB,MAAM,SAAS,CAAA;AAKhB,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA4FxC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAkLT,OAAO,IAA6B;;iCAhBZ,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAwE4uT,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAvDj4T;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8BuvT,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArBh4T,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"}
@@ -0,0 +1,162 @@
1
+ import { defineComponent as S, mergeModels as E, useModel as V, ref as B, computed as v, createElementBlock as L, openBlock as g, Fragment as P, createVNode as y, createBlock as $, createCommentVNode as w, unref as b, mergeProps as Q, createSlots as R, withCtx as r, renderSlot as d, normalizeProps as N, guardReactiveProps as O } from "vue";
2
+ import { DEFAULT_ICONS as U } from "./constants.js";
3
+ import { QButton as x } from "../QButton/index.js";
4
+ import { QIcon as A } from "../QIcon/index.js";
5
+ import { QTextField as I } from "../QTextField/index.js";
6
+ import T from "./QPasswordFieldMessages.vue.js";
7
+ import D from "./QPasswordFieldMeterOverlay.vue.js";
8
+ const Y = /* @__PURE__ */ S({
9
+ inheritAttrs: !1,
10
+ __name: "QPasswordField",
11
+ props: /* @__PURE__ */ E({
12
+ id: {},
13
+ class: {},
14
+ label: {},
15
+ for: {},
16
+ size: { default: "medium" },
17
+ readonly: { type: Boolean },
18
+ disabled: { type: Boolean },
19
+ required: { type: Boolean },
20
+ invalid: { type: Boolean },
21
+ placeholder: {},
22
+ toggle: { type: Boolean },
23
+ meter: { type: Boolean },
24
+ meterLevels: {},
25
+ rules: {},
26
+ icons: { default: () => U }
27
+ }, {
28
+ modelValue: {},
29
+ modelModifiers: {},
30
+ masked: { type: Boolean, default: !0 },
31
+ maskedModifiers: {}
32
+ }),
33
+ emits: ["update:modelValue", "update:masked"],
34
+ setup(p) {
35
+ const e = p, f = V(p, "modelValue"), i = V(p, "masked"), h = B(null), u = B(!1), M = v(() => i.value ? "password" : "text"), k = v(() => {
36
+ var l;
37
+ return (l = e.rules) == null ? void 0 : l.reduce((s, a) => s + a.weight, 0);
38
+ }), t = v(() => q(f.value, e.rules));
39
+ function q(l, s) {
40
+ if (!l || !s) return;
41
+ let a = 0;
42
+ const n = [];
43
+ return s.forEach((m) => {
44
+ const c = m.test instanceof RegExp ? m.test.test(l) : m.test(l);
45
+ c === !0 ? a += m.weight : typeof c == "string" && n.push(c);
46
+ }), {
47
+ score: k.value ? a / k.value : 0,
48
+ messages: n
49
+ };
50
+ }
51
+ function z() {
52
+ i.value = !i.value;
53
+ }
54
+ function F() {
55
+ u.value = !0;
56
+ }
57
+ function C() {
58
+ u.value = !1;
59
+ }
60
+ return (l, s) => {
61
+ var a, n;
62
+ return g(), L(
63
+ P,
64
+ null,
65
+ [
66
+ y(b(I), Q({
67
+ id: e.id,
68
+ ref_key: "fieldRef",
69
+ ref: h,
70
+ modelValue: f.value,
71
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => f.value = o),
72
+ class: e.class,
73
+ type: M.value,
74
+ placeholder: e.placeholder,
75
+ disabled: e.disabled,
76
+ readonly: e.readonly,
77
+ required: e.required,
78
+ label: e.label,
79
+ size: e.size,
80
+ invalid: e.invalid || !!((a = t.value) != null && a.messages.length)
81
+ }, l.$attrs, {
82
+ onFocusin: F,
83
+ onFocusout: C
84
+ }), R({
85
+ "label.prepend": r(() => [
86
+ d(l.$slots, "label.prepend")
87
+ ]),
88
+ "label.append": r(() => [
89
+ d(l.$slots, "label.append")
90
+ ]),
91
+ _: 2
92
+ /* DYNAMIC */
93
+ }, [
94
+ l.$slots.prepend ? {
95
+ name: "prepend",
96
+ fn: r(() => [
97
+ d(l.$slots, "prepend")
98
+ ]),
99
+ key: "0"
100
+ } : void 0,
101
+ e.toggle ? {
102
+ name: "append",
103
+ fn: r(() => [
104
+ d(l.$slots, "append"),
105
+ y(b(x), {
106
+ size: "small",
107
+ borderless: "",
108
+ "data-testid": "q-password-toggle",
109
+ disabled: e.disabled,
110
+ onClick: z
111
+ }, {
112
+ default: r(() => [
113
+ y(
114
+ b(A),
115
+ N(O(i.value ? e.icons.show : e.icons.hide)),
116
+ null,
117
+ 16
118
+ /* FULL_PROPS */
119
+ )
120
+ ]),
121
+ _: 1
122
+ /* STABLE */
123
+ }, 8, ["disabled"])
124
+ ]),
125
+ key: "1"
126
+ } : void 0,
127
+ l.$slots.extras || e.rules && !e.meter ? {
128
+ name: "extras",
129
+ fn: r(() => [
130
+ d(l.$slots, "extras", {}, () => {
131
+ var o;
132
+ return [
133
+ (o = t.value) != null && o.messages.length ? (g(), $(T, {
134
+ key: 0,
135
+ class: "q-password-field__inline-messages",
136
+ messages: t.value.messages
137
+ }, null, 8, ["messages"])) : w("v-if", !0)
138
+ ];
139
+ })
140
+ ]),
141
+ key: "2"
142
+ } : void 0
143
+ ]), 1040, ["id", "modelValue", "class", "type", "placeholder", "disabled", "readonly", "required", "label", "size", "invalid"]),
144
+ e.meter && e.meterLevels && t.value ? (g(), $(D, {
145
+ key: 0,
146
+ modelValue: u.value,
147
+ "onUpdate:modelValue": s[1] || (s[1] = (o) => u.value = o),
148
+ score: t.value.score,
149
+ levels: e.meterLevels,
150
+ messages: t.value.messages,
151
+ anchor: (n = h.value) == null ? void 0 : n.$el
152
+ }, null, 8, ["modelValue", "score", "levels", "messages", "anchor"])) : w("v-if", !0)
153
+ ],
154
+ 64
155
+ /* STABLE_FRAGMENT */
156
+ );
157
+ };
158
+ }
159
+ });
160
+ export {
161
+ Y as default
162
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPasswordField.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { QPasswordFieldMessagesProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<QPasswordFieldMessagesProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QPasswordFieldMessagesProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
3
+ export default _default;
4
+ //# sourceMappingURL=QPasswordFieldMessages.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPasswordFieldMessages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordFieldMessages.vue"],"names":[],"mappings":"AASA;AAmBC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;;AAgD3D,wBAOG"}
@@ -0,0 +1,28 @@
1
+ import { defineComponent as o, createElementBlock as e, openBlock as s, Fragment as a, renderList as l, toDisplayString as c } from "vue";
2
+ const p = { class: "q-password-field__messages" }, d = /* @__PURE__ */ o({
3
+ __name: "QPasswordFieldMessages",
4
+ props: {
5
+ messages: {}
6
+ },
7
+ setup(r) {
8
+ const n = r;
9
+ return (i, _) => (s(), e("ul", p, [
10
+ (s(!0), e(
11
+ a,
12
+ null,
13
+ l(n.messages, (t) => (s(), e(
14
+ "li",
15
+ { key: t },
16
+ c(t),
17
+ 1
18
+ /* TEXT */
19
+ ))),
20
+ 128
21
+ /* KEYED_FRAGMENT */
22
+ ))
23
+ ]));
24
+ }
25
+ });
26
+ export {
27
+ d as default
28
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QPasswordFieldMessages.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,12 @@
1
+ import { QPasswordFieldMeterOverlay } from './types';
2
+ type __VLS_Props = QPasswordFieldMeterOverlay;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: boolean) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
12
+ //# sourceMappingURL=QPasswordFieldMeterOverlay.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QPasswordFieldMeterOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordFieldMeterOverlay.vue"],"names":[],"mappings":"AA0BA;AAgFC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAKzD,KAAK,WAAW,GAAG,0BAA0B,CAAC;AAqC/C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;AAmGhB,wBAOG"}