@quidgest/ui 0.14.18 → 0.14.20
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.
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +76 -26
- package/dist/ui.esm.js +5925 -5571
- package/dist/ui.js +16 -16
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +691 -666
- package/dist/ui.scss +80 -27
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +42 -48
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QCombobox/QCombobox.d.ts +26 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -0
- package/esm/components/QCombobox/index.d.ts +46 -3
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +12 -10
- package/esm/components/QDateTimePicker/index.d.ts +6 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/index.d.ts +3 -3
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +2 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +13 -13
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +47 -39
- package/esm/components/QField/types.d.ts +6 -10
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
- package/esm/components/QFileUpload/index.d.ts +6 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +25 -17
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +9 -13
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +11 -15
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +15 -19
- package/esm/components/QIcon/types.d.ts +8 -4
- package/esm/components/QIcon/types.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
- package/esm/components/QInputGroup/index.d.ts +2 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts +20 -0
- package/esm/components/QLabel/QLabel.d.ts.map +1 -0
- package/esm/components/QLabel/QLabel.vue.js +27 -0
- package/esm/components/QLabel/QLabel.vue2.js +4 -0
- package/esm/components/QLabel/index.d.ts +22 -0
- package/esm/components/QLabel/index.d.ts.map +1 -0
- package/esm/components/QLabel/index.js +6 -0
- package/esm/components/QLabel/types.d.ts +12 -0
- package/esm/components/QLabel/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +2 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +22 -21
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +22 -18
- package/esm/components/QList/index.d.ts +1 -0
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +4 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts +14 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -0
- package/esm/components/QMeter/QMeter.vue.js +60 -0
- package/esm/components/QMeter/QMeter.vue2.js +4 -0
- package/esm/components/QMeter/index.d.ts +29 -0
- package/esm/components/QMeter/index.d.ts.map +1 -0
- package/esm/components/QMeter/index.js +6 -0
- package/esm/components/QMeter/types.d.ts +20 -0
- package/esm/components/QMeter/types.d.ts.map +1 -0
- package/esm/components/QOverlay/index.d.ts +2 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
- package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
- package/esm/components/QPasswordField/constants.d.ts +9 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -0
- package/esm/components/QPasswordField/constants.js +11 -0
- package/esm/components/QPasswordField/index.d.ts +264 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -0
- package/esm/components/QPasswordField/index.js +6 -0
- package/esm/components/QPasswordField/types.d.ts +100 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +4 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +31 -29
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +10 -9
- package/esm/components/QTextArea/index.d.ts +6 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +8 -6
- package/esm/components/QTextField/index.d.ts +9 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +51 -45
- package/esm/composables/useColorStyle/index.d.ts +11 -0
- package/esm/composables/useColorStyle/index.d.ts.map +1 -0
- package/esm/composables/useColorStyle/index.js +33 -0
- package/esm/composables/useColorStyle/types.d.ts +36 -0
- package/esm/composables/useColorStyle/types.d.ts.map +1 -0
- package/esm/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { QMeterProps } from './types';
|
|
2
|
+
declare const QMeter: import('vue').DefineComponent<{
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
for?: string;
|
|
7
|
+
} & {
|
|
8
|
+
max?: number;
|
|
9
|
+
valueLabel?: string | ((value: number, max: number) => string);
|
|
10
|
+
color?: string;
|
|
11
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
14
|
+
modelValue?: number;
|
|
15
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
16
|
+
label?: string;
|
|
17
|
+
for?: string;
|
|
18
|
+
} & {
|
|
19
|
+
max?: number;
|
|
20
|
+
valueLabel?: string | ((value: number, max: number) => string);
|
|
21
|
+
color?: string;
|
|
22
|
+
}> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
max: number;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
export { QMeter };
|
|
28
|
+
export type { QMeterProps };
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { QLabelProps } from '../QLabel';
|
|
2
|
+
/**
|
|
3
|
+
* Props interface for QMeter component.
|
|
4
|
+
* @extends {QLabelProps}
|
|
5
|
+
*/
|
|
6
|
+
export type QMeterProps = QLabelProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Maximum value for the meter.
|
|
9
|
+
*/
|
|
10
|
+
max?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Label to display next to the meter value.
|
|
13
|
+
*/
|
|
14
|
+
valueLabel?: string | ((value: number, max: number) => string);
|
|
15
|
+
/**
|
|
16
|
+
* Color value to control the meter's fill color.
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE9D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QOverlayProps } from './types';
|
|
1
2
|
declare const QOverlay: {
|
|
2
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
4
|
modelValue?: boolean;
|
|
@@ -134,4 +135,5 @@ declare const QOverlay: {
|
|
|
134
135
|
};
|
|
135
136
|
});
|
|
136
137
|
export { QOverlay };
|
|
138
|
+
export type { QOverlayProps };
|
|
137
139
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,YAAY,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -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
|
+
};
|