@davincihealthcare/elty-design-system-vue 1.35.1 → 1.36.1
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/README.md +5 -0
- package/dist/forms/ElInputCheckbox.vue.d.ts +11 -0
- package/dist/forms/ElInputDate.vue.d.ts +11 -0
- package/dist/forms/ElInputFile.vue.d.ts +11 -0
- package/dist/forms/ElInputMeasureUnit.vue.d.ts +11 -0
- package/dist/forms/ElInputNumber.vue.d.ts +11 -0
- package/dist/forms/ElInputPhone.vue.d.ts +11 -0
- package/dist/forms/ElInputSelect.vue.d.ts +11 -0
- package/dist/forms/ElInputText.vue.d.ts +11 -0
- package/dist/forms/ElInputTextarea.vue.d.ts +11 -0
- package/dist/forms/input.d.ts +16 -1
- package/dist/index.js +49 -32
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -139,3 +139,8 @@ This section handles the styling for your Vue component library, leveraging Tail
|
|
|
139
139
|
|
|
140
140
|
You don't need to worry about providing dist/style.cjs separately. It's included in the built library package.
|
|
141
141
|
Your library's components can leverage Tailwind classes by referencing them directly.
|
|
142
|
+
|
|
143
|
+
### Breaking changes that will do in v2
|
|
144
|
+
|
|
145
|
+
- button v2 will have a different interface
|
|
146
|
+
- remove id from input which is useless and just use name prop
|
|
@@ -29,6 +29,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
29
29
|
default: number;
|
|
30
30
|
required: boolean;
|
|
31
31
|
};
|
|
32
|
+
name: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: boolean;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
32
37
|
id: {
|
|
33
38
|
type: StringConstructor;
|
|
34
39
|
required: boolean;
|
|
@@ -86,6 +91,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
86
91
|
default: number;
|
|
87
92
|
required: boolean;
|
|
88
93
|
};
|
|
94
|
+
name: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
required: boolean;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
89
99
|
id: {
|
|
90
100
|
type: StringConstructor;
|
|
91
101
|
required: boolean;
|
|
@@ -119,6 +129,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
119
129
|
}>> & {
|
|
120
130
|
"onUpdate:modelValue"?: ((val: boolean | "indeterminate") => any) | undefined;
|
|
121
131
|
}, {
|
|
132
|
+
name: string;
|
|
122
133
|
disabled: boolean;
|
|
123
134
|
label: string;
|
|
124
135
|
id: string;
|
|
@@ -21,6 +21,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
21
|
default: number;
|
|
22
22
|
required: boolean;
|
|
23
23
|
};
|
|
24
|
+
name: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: boolean;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
24
29
|
id: {
|
|
25
30
|
type: StringConstructor;
|
|
26
31
|
required: boolean;
|
|
@@ -72,6 +77,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
72
77
|
default: number;
|
|
73
78
|
required: boolean;
|
|
74
79
|
};
|
|
80
|
+
name: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
required: boolean;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
75
85
|
id: {
|
|
76
86
|
type: StringConstructor;
|
|
77
87
|
required: boolean;
|
|
@@ -106,6 +116,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
106
116
|
"onUpdate:modelValue"?: ((value: NumberValueType) => any) | undefined;
|
|
107
117
|
"onUpdate:readableString"?: ((value: string) => any) | undefined;
|
|
108
118
|
}, {
|
|
119
|
+
name: string;
|
|
109
120
|
disabled: boolean;
|
|
110
121
|
type: "time" | "date" | "datetime-local";
|
|
111
122
|
label: string;
|
|
@@ -20,6 +20,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
20
20
|
default: string;
|
|
21
21
|
required: false;
|
|
22
22
|
};
|
|
23
|
+
name: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: boolean;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
23
28
|
id: {
|
|
24
29
|
type: StringConstructor;
|
|
25
30
|
required: boolean;
|
|
@@ -70,6 +75,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
75
|
default: string;
|
|
71
76
|
required: false;
|
|
72
77
|
};
|
|
78
|
+
name: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
required: boolean;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
73
83
|
id: {
|
|
74
84
|
type: StringConstructor;
|
|
75
85
|
required: boolean;
|
|
@@ -103,6 +113,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
103
113
|
}>> & {
|
|
104
114
|
"onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
|
|
105
115
|
}, {
|
|
116
|
+
name: string;
|
|
106
117
|
disabled: boolean;
|
|
107
118
|
label: string;
|
|
108
119
|
id: string;
|
|
@@ -34,6 +34,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
34
34
|
default: number;
|
|
35
35
|
required: boolean;
|
|
36
36
|
};
|
|
37
|
+
name: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: boolean;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
37
42
|
id: {
|
|
38
43
|
type: StringConstructor;
|
|
39
44
|
required: boolean;
|
|
@@ -95,6 +100,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
95
100
|
default: number;
|
|
96
101
|
required: boolean;
|
|
97
102
|
};
|
|
103
|
+
name: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
required: boolean;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
98
108
|
id: {
|
|
99
109
|
type: StringConstructor;
|
|
100
110
|
required: boolean;
|
|
@@ -129,6 +139,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
129
139
|
"onUpdate:modelValue"?: ((value: NumberValueType) => any) | undefined;
|
|
130
140
|
onChangeUnit?: ((value: string) => any) | undefined;
|
|
131
141
|
}, {
|
|
142
|
+
name: string;
|
|
132
143
|
disabled: boolean;
|
|
133
144
|
label: string;
|
|
134
145
|
id: string;
|
|
@@ -22,6 +22,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
default: number;
|
|
23
23
|
required: boolean;
|
|
24
24
|
};
|
|
25
|
+
name: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
25
30
|
id: {
|
|
26
31
|
type: StringConstructor;
|
|
27
32
|
required: boolean;
|
|
@@ -78,6 +83,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
78
83
|
default: number;
|
|
79
84
|
required: boolean;
|
|
80
85
|
};
|
|
86
|
+
name: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
required: boolean;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
81
91
|
id: {
|
|
82
92
|
type: StringConstructor;
|
|
83
93
|
required: boolean;
|
|
@@ -113,6 +123,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
113
123
|
onOverlayedBtnClicked?: (() => any) | undefined;
|
|
114
124
|
"onUpdate:formattedAmount"?: ((value: NumberValueType) => any) | undefined;
|
|
115
125
|
}, {
|
|
126
|
+
name: string;
|
|
116
127
|
disabled: boolean;
|
|
117
128
|
label: string;
|
|
118
129
|
id: string;
|
|
@@ -10,6 +10,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
10
|
default: string;
|
|
11
11
|
required: boolean;
|
|
12
12
|
};
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: boolean;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
13
18
|
id: {
|
|
14
19
|
type: StringConstructor;
|
|
15
20
|
required: boolean;
|
|
@@ -52,6 +57,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
52
57
|
default: string;
|
|
53
58
|
required: boolean;
|
|
54
59
|
};
|
|
60
|
+
name: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
required: boolean;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
55
65
|
id: {
|
|
56
66
|
type: StringConstructor;
|
|
57
67
|
required: boolean;
|
|
@@ -85,6 +95,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
85
95
|
}>> & {
|
|
86
96
|
"onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
|
|
87
97
|
}, {
|
|
98
|
+
name: string;
|
|
88
99
|
disabled: boolean;
|
|
89
100
|
label: string;
|
|
90
101
|
id: string;
|
|
@@ -31,6 +31,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
required: false;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
|
+
name: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
34
39
|
id: {
|
|
35
40
|
type: StringConstructor;
|
|
36
41
|
required: boolean;
|
|
@@ -92,6 +97,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
92
97
|
required: false;
|
|
93
98
|
default: string;
|
|
94
99
|
};
|
|
100
|
+
name: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
required: boolean;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
95
105
|
id: {
|
|
96
106
|
type: StringConstructor;
|
|
97
107
|
required: boolean;
|
|
@@ -126,6 +136,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
126
136
|
"onUpdate:modelValue"?: ((newValue: OptionValueType) => any) | undefined;
|
|
127
137
|
"onUpdate:modelLabel"?: ((newValue: OptionValueType) => any) | undefined;
|
|
128
138
|
}, {
|
|
139
|
+
name: string;
|
|
129
140
|
disabled: boolean;
|
|
130
141
|
label: string;
|
|
131
142
|
id: string;
|
|
@@ -36,6 +36,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
36
36
|
default: string;
|
|
37
37
|
required: boolean;
|
|
38
38
|
};
|
|
39
|
+
name: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: boolean;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
39
44
|
id: {
|
|
40
45
|
type: StringConstructor;
|
|
41
46
|
required: boolean;
|
|
@@ -100,6 +105,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
100
105
|
default: string;
|
|
101
106
|
required: boolean;
|
|
102
107
|
};
|
|
108
|
+
name: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
required: boolean;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
103
113
|
id: {
|
|
104
114
|
type: StringConstructor;
|
|
105
115
|
required: boolean;
|
|
@@ -133,6 +143,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
133
143
|
}>> & {
|
|
134
144
|
"onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
|
|
135
145
|
}, {
|
|
146
|
+
name: string;
|
|
136
147
|
disabled: boolean;
|
|
137
148
|
type: "text" | "password";
|
|
138
149
|
label: string;
|
|
@@ -22,6 +22,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
default: string;
|
|
23
23
|
required: boolean;
|
|
24
24
|
};
|
|
25
|
+
name: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
25
30
|
id: {
|
|
26
31
|
type: StringConstructor;
|
|
27
32
|
required: boolean;
|
|
@@ -76,6 +81,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
76
81
|
default: string;
|
|
77
82
|
required: boolean;
|
|
78
83
|
};
|
|
84
|
+
name: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: boolean;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
79
89
|
id: {
|
|
80
90
|
type: StringConstructor;
|
|
81
91
|
required: boolean;
|
|
@@ -109,6 +119,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
109
119
|
}>> & {
|
|
110
120
|
"onUpdate:modelValue"?: ((value: TextualValueType) => any) | undefined;
|
|
111
121
|
}, {
|
|
122
|
+
name: string;
|
|
112
123
|
disabled: boolean;
|
|
113
124
|
label: string;
|
|
114
125
|
id: string;
|
package/dist/forms/input.d.ts
CHANGED
|
@@ -84,6 +84,11 @@ export declare const withTextualInputProps: () => {
|
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
export declare const withCommonElInputProps: () => {
|
|
87
|
+
name: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
required: boolean;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
87
92
|
id: {
|
|
88
93
|
type: StringConstructor;
|
|
89
94
|
required: boolean;
|
|
@@ -125,6 +130,11 @@ export declare const withTextualElInputProps: () => {
|
|
|
125
130
|
default: string;
|
|
126
131
|
required: boolean;
|
|
127
132
|
};
|
|
133
|
+
name: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
required: boolean;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
128
138
|
id: {
|
|
129
139
|
type: StringConstructor;
|
|
130
140
|
required: boolean;
|
|
@@ -218,6 +228,11 @@ export declare const withNumberElInputProps: () => {
|
|
|
218
228
|
default: number;
|
|
219
229
|
required: boolean;
|
|
220
230
|
};
|
|
231
|
+
name: {
|
|
232
|
+
type: StringConstructor;
|
|
233
|
+
required: boolean;
|
|
234
|
+
default: string;
|
|
235
|
+
};
|
|
221
236
|
id: {
|
|
222
237
|
type: StringConstructor;
|
|
223
238
|
required: boolean;
|
|
@@ -249,7 +264,7 @@ export declare const withNumberElInputProps: () => {
|
|
|
249
264
|
default: boolean;
|
|
250
265
|
};
|
|
251
266
|
};
|
|
252
|
-
export declare function useInput<T = string>(initialValue: Ref<T>, validations: Ref<string[]> | ComputedRef<string[]>, onChange?: (value: T) => void): {
|
|
267
|
+
export declare function useInput<T = string>(initialValue: Ref<T>, validations: Ref<string[]> | ComputedRef<string[]>, inputName?: string, onChange?: (value: T) => void): {
|
|
253
268
|
fieldContext: import('vee-validate').FieldContext<T>;
|
|
254
269
|
errorMessage: Ref<string | undefined>;
|
|
255
270
|
value: Ref<T>;
|
package/dist/index.js
CHANGED
|
@@ -17454,6 +17454,11 @@ let eo = 0;
|
|
|
17454
17454
|
const rG = () => ({
|
|
17455
17455
|
getID: () => (eo++, `elty-input-${eo.toString()}`)
|
|
17456
17456
|
}), CA = () => ({
|
|
17457
|
+
name: {
|
|
17458
|
+
type: String,
|
|
17459
|
+
required: !1,
|
|
17460
|
+
default: ""
|
|
17461
|
+
},
|
|
17457
17462
|
id: {
|
|
17458
17463
|
type: String,
|
|
17459
17464
|
required: !1,
|
|
@@ -17512,24 +17517,24 @@ const rG = () => ({
|
|
|
17512
17517
|
required: !1
|
|
17513
17518
|
}
|
|
17514
17519
|
});
|
|
17515
|
-
function oe(t, e, n) {
|
|
17516
|
-
const
|
|
17520
|
+
function oe(t, e, n = "", o) {
|
|
17521
|
+
const l = rG().getID(), s = q(() => e.value && e.value.join("|")), N = ws(n || l, s, {
|
|
17517
17522
|
// empty string counts as a forced blank value
|
|
17518
17523
|
initialValue: t,
|
|
17519
17524
|
// validation is performed manually on value change, only if there are errors
|
|
17520
17525
|
validateOnValueUpdate: !1
|
|
17521
17526
|
});
|
|
17522
|
-
return W0(t, (
|
|
17523
|
-
|
|
17524
|
-
}), W0(
|
|
17525
|
-
|
|
17527
|
+
return W0(t, (c) => {
|
|
17528
|
+
N.setValue(c);
|
|
17529
|
+
}), W0(N.value, (c) => {
|
|
17530
|
+
o && o(c), N.errorMessage.value && N.validate();
|
|
17526
17531
|
}), {
|
|
17527
|
-
fieldContext:
|
|
17528
|
-
errorMessage:
|
|
17529
|
-
value:
|
|
17530
|
-
uuid:
|
|
17531
|
-
meta:
|
|
17532
|
-
setValue:
|
|
17532
|
+
fieldContext: N,
|
|
17533
|
+
errorMessage: N.errorMessage,
|
|
17534
|
+
value: N.value,
|
|
17535
|
+
uuid: l,
|
|
17536
|
+
meta: N.meta,
|
|
17537
|
+
setValue: N.setValue
|
|
17533
17538
|
};
|
|
17534
17539
|
}
|
|
17535
17540
|
function e5(t, e) {
|
|
@@ -17734,7 +17739,7 @@ const nG = ["for"], OG = {
|
|
|
17734
17739
|
var M;
|
|
17735
17740
|
n.focusOnMount && ((M = l.value) == null || M.focus());
|
|
17736
17741
|
});
|
|
17737
|
-
const s = e, N = q(() => n.modelValue), c = q(() => [n.validation]), { value: S, errorMessage: d, uuid: G, fieldContext: D } = oe(N, c, (M) => {
|
|
17742
|
+
const s = e, N = q(() => n.modelValue), c = q(() => [n.validation]), { value: S, errorMessage: d, uuid: G, fieldContext: D } = oe(N, c, n.name, (M) => {
|
|
17738
17743
|
s("update:modelValue", M == null ? void 0 : M.trim());
|
|
17739
17744
|
}), h = q(() => n.label ? n.label.trim().replaceAll(" ", "") : n.type), T = () => {
|
|
17740
17745
|
o.value = o.value === "text" ? "password" : "text";
|
|
@@ -17769,7 +17774,7 @@ const nG = ["for"], OG = {
|
|
|
17769
17774
|
ref_key: "inputRef",
|
|
17770
17775
|
ref: l,
|
|
17771
17776
|
"onUpdate:modelValue": P[0] || (P[0] = (w) => aA(S) ? S.value = w : null),
|
|
17772
|
-
name: M.id || `${Z(G)}-${h.value}`,
|
|
17777
|
+
name: n.name || M.id || `${Z(G)}-${h.value}`,
|
|
17773
17778
|
type: o.value,
|
|
17774
17779
|
class: b(["el-input", {
|
|
17775
17780
|
error: u,
|
|
@@ -21854,7 +21859,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21854
21859
|
})) : y("", !0)
|
|
21855
21860
|
], 2));
|
|
21856
21861
|
}
|
|
21857
|
-
}), HG = ["id"], xG = ["id", "checked", "indeterminate", "disabled", "data-cy"], kG = ["for"], yG = { class: "ml-1" }, HD = ["xs", "xxs"], xD = [!0, !1, "indeterminate"], oA = /* @__PURE__ */ E0({
|
|
21862
|
+
}), HG = ["id"], xG = ["id", "name", "checked", "indeterminate", "disabled", "data-cy"], kG = ["for"], yG = { class: "ml-1" }, HD = ["xs", "xxs"], xD = [!0, !1, "indeterminate"], oA = /* @__PURE__ */ E0({
|
|
21858
21863
|
__name: "ElInputCheckbox",
|
|
21859
21864
|
props: {
|
|
21860
21865
|
...m2(),
|
|
@@ -21875,9 +21880,14 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21875
21880
|
},
|
|
21876
21881
|
emits: ["update:modelValue"],
|
|
21877
21882
|
setup(t, { emit: e }) {
|
|
21878
|
-
const n = t, o = e, l = q(() => n.modelValue || !1), s = q(() => [n.validation]), { value: N, errorMessage: c, uuid: S } = oe(
|
|
21879
|
-
|
|
21880
|
-
|
|
21883
|
+
const n = t, o = e, l = q(() => n.modelValue || !1), s = q(() => [n.validation]), { value: N, errorMessage: c, uuid: S } = oe(
|
|
21884
|
+
l,
|
|
21885
|
+
s,
|
|
21886
|
+
n.name,
|
|
21887
|
+
(G) => {
|
|
21888
|
+
o("update:modelValue", G);
|
|
21889
|
+
}
|
|
21890
|
+
), d = () => {
|
|
21881
21891
|
n.disabled || (n.modelValue === "indeterminate" ? N.value = !0 : N.value = !N.value);
|
|
21882
21892
|
};
|
|
21883
21893
|
return (G, D) => (I(), t0(he, F0(G.$attrs, {
|
|
@@ -21899,6 +21909,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21899
21909
|
}, [
|
|
21900
21910
|
a("input", {
|
|
21901
21911
|
id: Z(S),
|
|
21912
|
+
name: n.name,
|
|
21902
21913
|
checked: typeof t.modelValue == "boolean" && t.modelValue,
|
|
21903
21914
|
indeterminate: t.modelValue === "indeterminate",
|
|
21904
21915
|
type: "checkbox",
|
|
@@ -21936,7 +21947,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21936
21947
|
_: 3
|
|
21937
21948
|
}, 16, ["error-message", "hidden-error-message", "name"]));
|
|
21938
21949
|
}
|
|
21939
|
-
}), _G = ["id", "type", "placeholder", "disabled", "data-cy"], kD = ["date", "datetime-local", "time"], ga = /* @__PURE__ */ E0({
|
|
21950
|
+
}), _G = ["id", "name", "type", "placeholder", "disabled", "data-cy"], kD = ["date", "datetime-local", "time"], ga = /* @__PURE__ */ E0({
|
|
21940
21951
|
__name: "ElInputDate",
|
|
21941
21952
|
props: {
|
|
21942
21953
|
...m2(),
|
|
@@ -21958,7 +21969,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21958
21969
|
default:
|
|
21959
21970
|
return "";
|
|
21960
21971
|
}
|
|
21961
|
-
}), N = q(() => n.modelValue), c = q(() => [n.validation]), { value: S, errorMessage: d, uuid: G, fieldContext: D } = oe(N, c, (T) => {
|
|
21972
|
+
}), N = q(() => n.modelValue), c = q(() => [n.validation]), { value: S, errorMessage: d, uuid: G, fieldContext: D } = oe(N, c, n.name, (T) => {
|
|
21962
21973
|
o("update:modelValue", T), o("update:readableString", h.value);
|
|
21963
21974
|
}), h = q({
|
|
21964
21975
|
get: () => S.value ? I0.fromSeconds(S.value).toFormat(s.value) : "",
|
|
@@ -21980,6 +21991,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
21980
21991
|
default: H0(() => [
|
|
21981
21992
|
K1(a("input", {
|
|
21982
21993
|
id: Z(G),
|
|
21994
|
+
name: n.name,
|
|
21983
21995
|
"onUpdate:modelValue": M[0] || (M[0] = (P) => h.value = P),
|
|
21984
21996
|
type: t.type,
|
|
21985
21997
|
class: b(["el-input", {
|
|
@@ -22213,7 +22225,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22213
22225
|
break;
|
|
22214
22226
|
}
|
|
22215
22227
|
return u;
|
|
22216
|
-
}), { value: d, errorMessage: G, uuid: D } = oe(N, S, (u) => {
|
|
22228
|
+
}), { value: d, errorMessage: G, uuid: D } = oe(N, S, n.name, (u) => {
|
|
22217
22229
|
s("update:modelValue", u);
|
|
22218
22230
|
}), h = (u) => {
|
|
22219
22231
|
const v = u.target;
|
|
@@ -22279,7 +22291,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22279
22291
|
class: "hidden",
|
|
22280
22292
|
accept: c.value.join(","),
|
|
22281
22293
|
disabled: u.disabled,
|
|
22282
|
-
name: Z(D),
|
|
22294
|
+
name: n.name || Z(D),
|
|
22283
22295
|
multiple: t.multiple,
|
|
22284
22296
|
onChange: p0(h, ["prevent"])
|
|
22285
22297
|
}, null, 40, JG),
|
|
@@ -22296,7 +22308,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22296
22308
|
_: 1
|
|
22297
22309
|
}, 16, ["name", "label", "error-message", "hidden-error-message"]));
|
|
22298
22310
|
}
|
|
22299
|
-
}), XG = ["id", "placeholder", "disabled"], ef = {
|
|
22311
|
+
}), XG = ["id", "name", "placeholder", "disabled"], ef = {
|
|
22300
22312
|
key: 0,
|
|
22301
22313
|
class: "absolute top-[4px] right-[-4px] flex h-5/6 items-center"
|
|
22302
22314
|
}, Af = ["disabled"], QD = /* @__PURE__ */ E0({
|
|
@@ -22339,7 +22351,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22339
22351
|
}
|
|
22340
22352
|
}, S = q(() => l.modelValue), d = q(() => [l.validation]), G = X(l.defaultUnit || c(l.availableUnitCategory)), D = (f) => {
|
|
22341
22353
|
N("update:modelValue", f);
|
|
22342
|
-
}, { value: h, errorMessage: T, uuid: M } = oe(S, d, (f) => D(f)), P = X(G), u = () => {
|
|
22354
|
+
}, { value: h, errorMessage: T, uuid: M } = oe(S, d, l.name, (f) => D(f)), P = X(G), u = () => {
|
|
22343
22355
|
const f = P.value === "Al bisogno" ? "AlBisogno" : P.value;
|
|
22344
22356
|
N("changeUnit", f);
|
|
22345
22357
|
}, v = (f) => P.value = f;
|
|
@@ -22361,6 +22373,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22361
22373
|
default: H0(({ error: x }) => [
|
|
22362
22374
|
K1(a("input", {
|
|
22363
22375
|
id: Z(M),
|
|
22376
|
+
name: l.name,
|
|
22364
22377
|
"onUpdate:modelValue": w[0] || (w[0] = (Q) => aA(h) ? h.value = Q : null),
|
|
22365
22378
|
type: "number",
|
|
22366
22379
|
class: b(["el-input el-input-measure-unit", { error: x }]),
|
|
@@ -22388,7 +22401,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22388
22401
|
_: 1
|
|
22389
22402
|
}, 16, ["name", "label", "error-message", "hidden-error-message", "set-required-mark"]));
|
|
22390
22403
|
}
|
|
22391
|
-
}), tf = ["id", "step", "placeholder", "disabled", "data-cy"], zD = /* @__PURE__ */ E0({
|
|
22404
|
+
}), tf = ["id", "name", "step", "placeholder", "disabled", "data-cy"], zD = /* @__PURE__ */ E0({
|
|
22392
22405
|
__name: "ElInputNumber",
|
|
22393
22406
|
props: {
|
|
22394
22407
|
...m2(),
|
|
@@ -22403,7 +22416,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22403
22416
|
},
|
|
22404
22417
|
emits: ["update:modelValue", "overlayedBtnClicked", "update:formattedAmount"],
|
|
22405
22418
|
setup(t, { emit: e }) {
|
|
22406
|
-
const n = t, o = e, l = X(!1), s = q(() => n.modelValue), N = q(() => [n.validation]), { value: c, errorMessage: S, uuid: d, fieldContext: G } = oe(s, N, (M) => {
|
|
22419
|
+
const n = t, o = e, l = X(!1), s = q(() => n.modelValue), N = q(() => [n.validation]), { value: c, errorMessage: S, uuid: d, fieldContext: G } = oe(s, N, n.name, (M) => {
|
|
22407
22420
|
typeof M == "string" && (String(M).length === 0 ? M = void 0 : M = Number(M)), o("update:modelValue", M), o("update:formattedAmount", D.value);
|
|
22408
22421
|
}), D = q({
|
|
22409
22422
|
get: () => c.value == null || typeof c.value == "string" ? null : n.isTwoDecimals ? parseFloat((c.value / 100).toFixed(2)) : c.value,
|
|
@@ -22425,6 +22438,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22425
22438
|
default: H0(({ error: u }) => [
|
|
22426
22439
|
K1(a("input", {
|
|
22427
22440
|
id: Z(d),
|
|
22441
|
+
name: n.name,
|
|
22428
22442
|
"onUpdate:modelValue": [
|
|
22429
22443
|
P[0] || (P[0] = (v) => D.value = v),
|
|
22430
22444
|
P[1] || (P[1] = (v) => l.value = !0)
|
|
@@ -22691,7 +22705,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22691
22705
|
);
|
|
22692
22706
|
const s = e, N = () => {
|
|
22693
22707
|
s("update:modelValue", o.value + d.value);
|
|
22694
|
-
}, c = q(() => ["min:5|regex:^([0-9]+)$", n.validation]), { errorMessage: S, value: d, setValue: G, uuid: D, fieldContext: h } = oe(l, c, N), T = q(() => n.label.trim().replaceAll(" ", ""));
|
|
22708
|
+
}, c = q(() => ["min:5|regex:^([0-9]+)$", n.validation]), { errorMessage: S, value: d, setValue: G, uuid: D, fieldContext: h } = oe(l, c, n.name, N), T = q(() => n.label.trim().replaceAll(" ", ""));
|
|
22695
22709
|
return (M, P) => (I(), t0(he, F0(M.$attrs, {
|
|
22696
22710
|
name: M.id || `${Z(D)}-${T.value}`,
|
|
22697
22711
|
class: "relative",
|
|
@@ -22724,7 +22738,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22724
22738
|
a("input", {
|
|
22725
22739
|
id: M.id || `${Z(D)}-${T.value}`,
|
|
22726
22740
|
value: l.value,
|
|
22727
|
-
name: M.id || `${Z(D)}-${T.value}`,
|
|
22741
|
+
name: n.name || M.id || `${Z(D)}-${T.value}`,
|
|
22728
22742
|
disabled: M.disabled,
|
|
22729
22743
|
type: "text",
|
|
22730
22744
|
class: b([{
|
|
@@ -22740,7 +22754,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22740
22754
|
_: 1
|
|
22741
22755
|
}, 16, ["name", "label", "error-message", "hidden-error-message", "set-required-mark"]));
|
|
22742
22756
|
}
|
|
22743
|
-
}), If = ["disabled", "data-cy", "onMousedown", "onFocus", "onBlur", "onKeydown"], lf = {
|
|
22757
|
+
}), If = ["name", "disabled", "data-cy", "onMousedown", "onFocus", "onBlur", "onKeydown"], lf = {
|
|
22744
22758
|
key: 0,
|
|
22745
22759
|
class: "text-neutral-inactive truncate"
|
|
22746
22760
|
}, Ef = {
|
|
@@ -22800,7 +22814,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22800
22814
|
text: "-",
|
|
22801
22815
|
onClick: () => G(void 0)
|
|
22802
22816
|
}), f;
|
|
22803
|
-
}), l = e, s = X(), N = q(() => n.modelValue), c = q(() => [n.validation]), { errorMessage: S, value: d, setValue: G } = oe(N, c, (f) => {
|
|
22817
|
+
}), l = e, s = X(), N = q(() => n.modelValue), c = q(() => [n.validation]), { errorMessage: S, value: d, setValue: G } = oe(N, c, n.name, (f) => {
|
|
22804
22818
|
l("update:modelValue", f), l("update:modelLabel", h(f));
|
|
22805
22819
|
}), D = q(() => !d.value || !h(d.value)), h = (f) => {
|
|
22806
22820
|
var w, x;
|
|
@@ -22836,6 +22850,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22836
22850
|
ref_key: "button",
|
|
22837
22851
|
ref: s,
|
|
22838
22852
|
type: "button",
|
|
22853
|
+
name: n.name,
|
|
22839
22854
|
disabled: f.disabled,
|
|
22840
22855
|
class: b(["el-input !pr-8", { error: x, empty: D.value, "focus:ring-1": !x }]),
|
|
22841
22856
|
"aria-haspopup": "listbox",
|
|
@@ -22870,7 +22885,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22870
22885
|
_: 1
|
|
22871
22886
|
}, 16, ["name", "label", "error-message", "hidden-error-message", "set-required-mark"]));
|
|
22872
22887
|
}
|
|
22873
|
-
}), Cf = ["id", "placeholder", "disabled", "data-cy"], WD = /* @__PURE__ */ E0({
|
|
22888
|
+
}), Cf = ["id", "name", "placeholder", "disabled", "data-cy"], WD = /* @__PURE__ */ E0({
|
|
22874
22889
|
__name: "ElInputTextarea",
|
|
22875
22890
|
props: {
|
|
22876
22891
|
...Fr(),
|
|
@@ -22892,6 +22907,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22892
22907
|
const n = X(), o = t, l = e, s = q(() => o.modelValue || void 0), N = q(() => [`max:${o.maxCharacters > 0 ? o.maxCharacters : 1e3}`, o.validation]), { value: c, errorMessage: S, uuid: d, fieldContext: G } = oe(
|
|
22893
22908
|
s,
|
|
22894
22909
|
N,
|
|
22910
|
+
o.name,
|
|
22895
22911
|
(T) => l("update:modelValue", T)
|
|
22896
22912
|
), D = q(() => {
|
|
22897
22913
|
var T;
|
|
@@ -22910,6 +22926,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
22910
22926
|
default: H0(({ error: P }) => [
|
|
22911
22927
|
K1(a("textarea", {
|
|
22912
22928
|
id: Z(d),
|
|
22929
|
+
name: o.name,
|
|
22913
22930
|
ref_key: "textareaRef",
|
|
22914
22931
|
ref: n,
|
|
22915
22932
|
"onUpdate:modelValue": M[0] || (M[0] = (u) => aA(c) ? c.value = u : null),
|
|
@@ -23285,7 +23302,7 @@ const fG = /* @__PURE__ */ mr(Ur), VG = { class: "relative" }, vG = { class: "bo
|
|
|
23285
23302
|
},
|
|
23286
23303
|
emits: ["update:modelValue"],
|
|
23287
23304
|
setup(t, { emit: e }) {
|
|
23288
|
-
const n = t, o = e, l = q(() => n.modelValue), s = q(() => [n.validation]), { value: N, uuid: c } = oe(l, s, (S) => {
|
|
23305
|
+
const n = t, o = e, l = q(() => n.modelValue), s = q(() => [n.validation]), { value: N, uuid: c } = oe(l, s, n.name, (S) => {
|
|
23289
23306
|
o("update:modelValue", S);
|
|
23290
23307
|
});
|
|
23291
23308
|
return (S, d) => (I(), i(j0, null, [
|