@vlalg-nimbus/nb-inputs 10.0.2 → 10.0.3
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/nb-inputs.js +359 -359
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +101 -101
package/dist/nb-inputs.js
CHANGED
|
@@ -155,20 +155,20 @@ const il = (e, v) => {
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["current-value", "changed", "clicked"],
|
|
157
157
|
setup(e, { emit: v }) {
|
|
158
|
-
rl((
|
|
158
|
+
rl((P) => ({
|
|
159
159
|
"794c5afd": wt.value,
|
|
160
|
-
"7ab72fe9":
|
|
160
|
+
"7ab72fe9": Kt.value,
|
|
161
161
|
"6833088e": da.value,
|
|
162
162
|
"684cbaa6": Qe.value,
|
|
163
163
|
"2650920c": gt.value,
|
|
164
164
|
"0177d163": Ve.value,
|
|
165
165
|
30867110: qe.value,
|
|
166
|
-
"138a3b6c":
|
|
166
|
+
"138a3b6c": jt.value,
|
|
167
167
|
"6ad79f52": rt.value,
|
|
168
168
|
ae51f946: sa.value,
|
|
169
|
-
"0df1b00a":
|
|
169
|
+
"0df1b00a": Wt.value
|
|
170
170
|
})), nl(() => {
|
|
171
|
-
|
|
171
|
+
Pt();
|
|
172
172
|
});
|
|
173
173
|
const m = v, g = e, W = se(null), {
|
|
174
174
|
ariaLabel: H,
|
|
@@ -176,7 +176,7 @@ const il = (e, v) => {
|
|
|
176
176
|
currentOption: w,
|
|
177
177
|
valueType: L,
|
|
178
178
|
display: B,
|
|
179
|
-
options:
|
|
179
|
+
options: E,
|
|
180
180
|
valueKey: $,
|
|
181
181
|
textKey: ae,
|
|
182
182
|
theme: Z,
|
|
@@ -191,14 +191,14 @@ const il = (e, v) => {
|
|
|
191
191
|
itemGap: xe,
|
|
192
192
|
internalGap: Oe,
|
|
193
193
|
scale: ce,
|
|
194
|
-
disabled:
|
|
194
|
+
disabled: Pe,
|
|
195
195
|
fontFamily: tt,
|
|
196
196
|
fontSize: Re,
|
|
197
197
|
fontWeight: Be
|
|
198
198
|
} = ul(g), C = a(() => {
|
|
199
|
-
const
|
|
199
|
+
const P = Pe.value ? "component-disabled" : "", U = B.value !== "b" ? "inline-block" : "block", _e = tt.value ? tt.value : "'Lato', sans-serif", Me = Re.value ? Re.value : "1.6em", Ue = Be.value !== 0 && !Be.value || Be.value < 0 ? 200 : Be.value, $t = [!1, !0].includes(et.value) ? et.value : !1, Ze = [!1, !0].includes($e.value) ? $e.value : !1, ze = xe.value !== 0 && !xe.value || xe.value < 0 ? 15 : xe.value, V = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 6 : Oe.value, R = ce.value !== 0 && !ce.value || ce.value < 0 ? 1 : ce.value;
|
|
200
200
|
return {
|
|
201
|
-
disabled:
|
|
201
|
+
disabled: P,
|
|
202
202
|
display: U,
|
|
203
203
|
hoverEffect: $t,
|
|
204
204
|
activeHoverEffect: Ze,
|
|
@@ -212,41 +212,41 @@ const il = (e, v) => {
|
|
|
212
212
|
}), He = a(() => C.value.disabled), K = a(() => ({
|
|
213
213
|
display: C.value.display
|
|
214
214
|
})), Ye = a(() => C.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), A = a(() => {
|
|
215
|
-
const
|
|
215
|
+
const P = C.value;
|
|
216
216
|
return {
|
|
217
|
-
fontSize:
|
|
218
|
-
fontWeight:
|
|
217
|
+
fontSize: P.fontSize,
|
|
218
|
+
fontWeight: P.fontWeight
|
|
219
219
|
};
|
|
220
|
-
}), Ge = a(() => Array.isArray(
|
|
220
|
+
}), Ge = a(() => Array.isArray(E.value) && E.value.constructor === Array && E.value.length > 0), pt = a(() => Z.value === "dark" ? "component__theme--dark" : "component__theme--light"), wt = a(() => C.value.font), Ve = a(() => T.value), qe = a(() => k.value), gt = a(() => C.value.hoverEffect ? _.value : k.value), Qe = a(() => C.value.activeHoverEffect ? _.value : k.value), sa = a(() => be.value), Wt = a(() => Q.value), rt = a(() => C.value.hoverEffect ? Ae.value : Q.value), jt = a(() => C.value.activeHoverEffect ? Ae.value : Q.value), da = a(() => {
|
|
221
221
|
const U = C.value.internalGap;
|
|
222
222
|
return !U || U < 0 ? 0 : `${U}px`;
|
|
223
|
-
}),
|
|
223
|
+
}), Kt = a(() => {
|
|
224
224
|
const U = C.value.itemGap;
|
|
225
225
|
return !U || U < 0 ? 0 : `${U}px`;
|
|
226
226
|
}), ut = a(() => ({
|
|
227
227
|
zoom: C.value.scale
|
|
228
228
|
})), Ft = a(() => {
|
|
229
|
-
const
|
|
230
|
-
de.value && Object.keys(de.value).forEach((Me) =>
|
|
229
|
+
const P = {};
|
|
230
|
+
de.value && Object.keys(de.value).forEach((Me) => P[`aria-${Me}`] = de.value[Me]);
|
|
231
231
|
const U = {
|
|
232
232
|
"aria-label": H.value,
|
|
233
|
-
"aria-disabled":
|
|
234
|
-
...
|
|
233
|
+
"aria-disabled": Pe.value,
|
|
234
|
+
...P
|
|
235
235
|
};
|
|
236
236
|
return Object.fromEntries(
|
|
237
237
|
Object.entries(U).filter(([_e, Me]) => Me != null)
|
|
238
238
|
);
|
|
239
|
-
}),
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
}, Lt = (
|
|
243
|
-
m("clicked",
|
|
239
|
+
}), Pt = () => {
|
|
240
|
+
const P = w.value;
|
|
241
|
+
P && ["string"].includes(L.value) ? W.value = P.toString().toLowerCase() : W.value = P;
|
|
242
|
+
}, Lt = (P) => {
|
|
243
|
+
m("clicked", P);
|
|
244
244
|
};
|
|
245
|
-
return ge(w, (
|
|
246
|
-
|
|
247
|
-
}), ge(W, (
|
|
248
|
-
|
|
249
|
-
}), (
|
|
245
|
+
return ge(w, (P, U) => {
|
|
246
|
+
P !== U && Pt();
|
|
247
|
+
}), ge(W, (P, U) => {
|
|
248
|
+
P !== U && (m("current-value", P), m("changed", P));
|
|
249
|
+
}), (P, U) => e.nbId && Ge.value ? (F(), M("div", {
|
|
250
250
|
key: 0,
|
|
251
251
|
class: Ne(["nb-wrapper", He.value]),
|
|
252
252
|
style: he([K.value, ut.value]),
|
|
@@ -258,7 +258,7 @@ const il = (e, v) => {
|
|
|
258
258
|
}, Ft.value, {
|
|
259
259
|
class: ["nb-reset", "component", Ye.value, pt.value]
|
|
260
260
|
}), [
|
|
261
|
-
(F(!0), M(Dl, null, wl(l(
|
|
261
|
+
(F(!0), M(Dl, null, wl(l(E), (_e, Me) => (F(), M("div", {
|
|
262
262
|
key: _e[l($)],
|
|
263
263
|
class: "component-radio__item"
|
|
264
264
|
}, [
|
|
@@ -267,7 +267,7 @@ const il = (e, v) => {
|
|
|
267
267
|
"onUpdate:modelValue": U[0] || (U[0] = (Ue) => W.value = Ue),
|
|
268
268
|
type: "radio",
|
|
269
269
|
class: "component-radio__item--input",
|
|
270
|
-
disabled: l(
|
|
270
|
+
disabled: l(Pe),
|
|
271
271
|
value: _e[l($)],
|
|
272
272
|
name: e.groupName,
|
|
273
273
|
onClick: U[1] || (U[1] = (Ue) => Lt(Ue))
|
|
@@ -276,11 +276,11 @@ const il = (e, v) => {
|
|
|
276
276
|
]),
|
|
277
277
|
me("label", {
|
|
278
278
|
for: `${e.nbId}-${_e[l($)]}`,
|
|
279
|
-
tabindex: l(
|
|
279
|
+
tabindex: l(Pe) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[Me] : e.tabIndex >= 0 ? e.tabIndex : Me + 1,
|
|
280
280
|
class: "component-radio__item--label",
|
|
281
281
|
onKeydown: [
|
|
282
|
-
U[2] || (U[2] = ja(ol((Ue) => !l(
|
|
283
|
-
U[3] || (U[3] = ja(ol((Ue) => !l(
|
|
282
|
+
U[2] || (U[2] = ja(ol((Ue) => !l(Pe) && e.hasTabIndexEnter && Ue.target.click(), ["prevent"]), ["enter"])),
|
|
283
|
+
U[3] || (U[3] = ja(ol((Ue) => !l(Pe) && e.hasTabIndexSpace && Ue.target.click(), ["prevent"]), ["space"]))
|
|
284
284
|
]
|
|
285
285
|
}, [
|
|
286
286
|
U[4] || (U[4] = me("div", null, null, -1)),
|
|
@@ -459,18 +459,18 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
459
459
|
43335222: qe.value,
|
|
460
460
|
"7c540c8e": _e.value,
|
|
461
461
|
f27e829e: U.value,
|
|
462
|
-
"61170ab3":
|
|
463
|
-
"9488cfea":
|
|
462
|
+
"61170ab3": P.value,
|
|
463
|
+
"9488cfea": Wt.value,
|
|
464
464
|
"1c12c19e": sa.value,
|
|
465
465
|
"5037b870": rt.value,
|
|
466
466
|
"43c7fe6a": Qe.value,
|
|
467
467
|
"740de8c4": gt.value,
|
|
468
468
|
"5b2a5880": Lt.value,
|
|
469
469
|
"0dc79d67": ut.value,
|
|
470
|
-
"2f58d98d":
|
|
470
|
+
"2f58d98d": Kt.value,
|
|
471
471
|
55505268: Ft.value,
|
|
472
472
|
"5dddbcef": da.value,
|
|
473
|
-
"4f0fd47c":
|
|
473
|
+
"4f0fd47c": jt.value
|
|
474
474
|
})), nl(() => {
|
|
475
475
|
Ze();
|
|
476
476
|
});
|
|
@@ -480,7 +480,7 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
480
480
|
currentOption: w,
|
|
481
481
|
display: L,
|
|
482
482
|
options: B,
|
|
483
|
-
valueKey:
|
|
483
|
+
valueKey: E,
|
|
484
484
|
textKey: $,
|
|
485
485
|
theme: ae,
|
|
486
486
|
lightTextColor: Z,
|
|
@@ -495,14 +495,14 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
495
495
|
itemGap: xe,
|
|
496
496
|
internalGap: Oe,
|
|
497
497
|
scale: ce,
|
|
498
|
-
type:
|
|
498
|
+
type: Pe,
|
|
499
499
|
background: tt,
|
|
500
500
|
disabled: Re,
|
|
501
501
|
fontFamily: Be,
|
|
502
502
|
fontSize: C,
|
|
503
503
|
fontWeight: He
|
|
504
504
|
} = ul(g), K = a(() => {
|
|
505
|
-
const V = Re.value ? "component-disabled" : "", R = L.value !== "b" ? "inline-block" : "block", Se = Be.value ? Be.value : "'Lato', sans-serif", We = C.value ? C.value : "1.6em", Le = He.value !== 0 && !He.value || He.value < 0 ? 200 : He.value, St = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0 : Ae.value, at = [!1, !0].includes(et.value) ? et.value : !1, lt = [!1, !0].includes($e.value) ? $e.value : !1, it = xe.value !== 0 && !xe.value || xe.value < 0 ? 15 : xe.value, bt = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 6 : Oe.value, Ct = ["box", "circle"].includes(
|
|
505
|
+
const V = Re.value ? "component-disabled" : "", R = L.value !== "b" ? "inline-block" : "block", Se = Be.value ? Be.value : "'Lato', sans-serif", We = C.value ? C.value : "1.6em", Le = He.value !== 0 && !He.value || He.value < 0 ? 200 : He.value, St = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0 : Ae.value, at = [!1, !0].includes(et.value) ? et.value : !1, lt = [!1, !0].includes($e.value) ? $e.value : !1, it = xe.value !== 0 && !xe.value || xe.value < 0 ? 15 : xe.value, bt = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 6 : Oe.value, Ct = ["box", "circle"].includes(Pe.value) ? Pe.value : "box", Rt = ce.value !== 0 && !ce.value || ce.value < 0 ? 1 : ce.value, Yt = [!1, !0].includes(tt.value) ? tt.value : !1;
|
|
506
506
|
return {
|
|
507
507
|
disabled: V,
|
|
508
508
|
display: R,
|
|
@@ -514,7 +514,7 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
514
514
|
scale: Rt,
|
|
515
515
|
type: Ct,
|
|
516
516
|
font: Se,
|
|
517
|
-
background:
|
|
517
|
+
background: Yt,
|
|
518
518
|
fontSize: We,
|
|
519
519
|
fontWeight: Le
|
|
520
520
|
};
|
|
@@ -526,18 +526,18 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
526
526
|
fontSize: V.fontSize,
|
|
527
527
|
fontWeight: V.fontWeight
|
|
528
528
|
};
|
|
529
|
-
}), wt = a(() => Array.isArray(B.value) && B.value.constructor === Array && B.value.length > 0), Ve = a(() => ae.value === "dark" ? "component__theme--dark" : "component__theme--light"), qe = a(() => K.value.font), gt = a(() => Z.value), Qe = a(() => T.value), sa = a(() => K.value.hoverEffect ? k.value : T.value),
|
|
529
|
+
}), wt = a(() => Array.isArray(B.value) && B.value.constructor === Array && B.value.length > 0), Ve = a(() => ae.value === "dark" ? "component__theme--dark" : "component__theme--light"), qe = a(() => K.value.font), gt = a(() => Z.value), Qe = a(() => T.value), sa = a(() => K.value.hoverEffect ? k.value : T.value), Wt = a(() => K.value.activeHoverEffect ? k.value : T.value), rt = a(() => {
|
|
530
530
|
const V = K.value;
|
|
531
531
|
return V.activeHoverEffect && V.background ? `${k.value}80` : k.value;
|
|
532
|
-
}),
|
|
532
|
+
}), jt = a(() => _.value), da = a(() => be.value), Kt = a(() => K.value.hoverEffect ? Q.value : be.value), ut = a(() => K.value.activeHoverEffect ? Q.value : be.value), Ft = a(() => {
|
|
533
533
|
const V = K.value;
|
|
534
534
|
return V.activeHoverEffect && V.background ? `${Q.value}80` : Q.value;
|
|
535
|
-
}),
|
|
535
|
+
}), Pt = a(() => K.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Lt = a(() => {
|
|
536
536
|
const V = K.value, R = ae.value === "dark" ? _.value : Z.value;
|
|
537
537
|
return V.background ? "#ffffff" : R;
|
|
538
538
|
});
|
|
539
539
|
a(() => K.value.background ? "19px" : "auto");
|
|
540
|
-
const
|
|
540
|
+
const P = a(() => {
|
|
541
541
|
const R = K.value.internalGap;
|
|
542
542
|
return !R || R < 0 ? 0 : `${R}px`;
|
|
543
543
|
}), U = a(() => {
|
|
@@ -581,23 +581,23 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
581
581
|
class: ["nb-reset", "component", Ge.value, Ve.value]
|
|
582
582
|
}), [
|
|
583
583
|
(F(!0), M(Dl, null, wl(l(B), (Se, We) => (F(), M("div", {
|
|
584
|
-
key: Se[l(
|
|
584
|
+
key: Se[l(E)],
|
|
585
585
|
class: "component-checkbox__item"
|
|
586
586
|
}, [
|
|
587
587
|
ll(me("input", {
|
|
588
|
-
id: `${e.nbId}-${Se[l(
|
|
588
|
+
id: `${e.nbId}-${Se[l(E)]}`,
|
|
589
589
|
"onUpdate:modelValue": R[0] || (R[0] = (Le) => W.value = Le),
|
|
590
590
|
type: "checkbox",
|
|
591
591
|
class: "component-checkbox__item--input",
|
|
592
592
|
disabled: l(Re),
|
|
593
|
-
value: Se[l(
|
|
593
|
+
value: Se[l(E)],
|
|
594
594
|
name: e.groupName,
|
|
595
595
|
onClick: R[1] || (R[1] = (Le) => ze(Le))
|
|
596
596
|
}, null, 8, Mo), [
|
|
597
597
|
[ho, W.value]
|
|
598
598
|
]),
|
|
599
599
|
me("label", {
|
|
600
|
-
for: `${e.nbId}-${Se[l(
|
|
600
|
+
for: `${e.nbId}-${Se[l(E)]}`,
|
|
601
601
|
class: Ne([[Me.value], "component-checkbox__item--label"]),
|
|
602
602
|
tabindex: l(Re) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[We] : e.tabIndex >= 0 ? e.tabIndex : We + 1,
|
|
603
603
|
onKeydown: [
|
|
@@ -606,7 +606,7 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
606
606
|
]
|
|
607
607
|
}, [
|
|
608
608
|
me("div", {
|
|
609
|
-
class: Ne([
|
|
609
|
+
class: Ne([Pt.value])
|
|
610
610
|
}, null, 2),
|
|
611
611
|
me("span", {
|
|
612
612
|
style: he([pt.value])
|
|
@@ -617,7 +617,7 @@ const $o = ["title"], Ro = ["id"], Mo = ["id", "disabled", "value", "name"], Io
|
|
|
617
617
|
], 14, $o)) : le("", !0);
|
|
618
618
|
}
|
|
619
619
|
}), _o = /* @__PURE__ */ il(No, [["__scopeId", "data-v-fdb17d69"]]);
|
|
620
|
-
const zo = ["title"], Wo = ["id"],
|
|
620
|
+
const zo = ["title"], Wo = ["id"], Po = ["for"], Eo = {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "component__label--required"
|
|
623
623
|
}, Oo = ["for"], Ho = { key: 0 }, qo = { key: 1 }, Uo = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex", "min", "max", "step"], jo = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex", "min", "max", "step"], Ko = ["for"], Yo = /* @__PURE__ */ Object.assign({
|
|
@@ -1104,21 +1104,21 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1104
1104
|
"8faed680": l(Mt),
|
|
1105
1105
|
"7e59370e": l(U),
|
|
1106
1106
|
"4a19d7d6": l(Lt),
|
|
1107
|
-
c7b2eb08: l(
|
|
1107
|
+
c7b2eb08: l(P),
|
|
1108
1108
|
"22e64572": ra.value,
|
|
1109
1109
|
"7d7ff195": l(Ft),
|
|
1110
|
-
"5c1f2843": l(
|
|
1110
|
+
"5c1f2843": l(Pt),
|
|
1111
1111
|
"78c8de2c": l(lt),
|
|
1112
1112
|
"11c45368": l(Ue),
|
|
1113
1113
|
c0f76110: l(Jt),
|
|
1114
|
-
a7991242: l(
|
|
1115
|
-
d3b544a0: l(
|
|
1114
|
+
a7991242: l(Kt),
|
|
1115
|
+
d3b544a0: l(jt),
|
|
1116
1116
|
"1cc8c4d6": l(da),
|
|
1117
|
-
"8a186c0a": l(
|
|
1117
|
+
"8a186c0a": l(Wt),
|
|
1118
1118
|
"593ec0c6": l(rt),
|
|
1119
1119
|
"4aaaab2f": Nt.value,
|
|
1120
1120
|
"6a99f98c": ee.value,
|
|
1121
|
-
"0da09536":
|
|
1121
|
+
"0da09536": qt.value,
|
|
1122
1122
|
cd797356: _t.value,
|
|
1123
1123
|
"657f9178": Vt.value,
|
|
1124
1124
|
"58aaee36": l($t),
|
|
@@ -1142,7 +1142,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1142
1142
|
hasTabIndexEnter: w,
|
|
1143
1143
|
ariaLabel: L,
|
|
1144
1144
|
ariaAttrs: B,
|
|
1145
|
-
textColor:
|
|
1145
|
+
textColor: E,
|
|
1146
1146
|
caretColor: $,
|
|
1147
1147
|
selectionBgColor: ae,
|
|
1148
1148
|
selectionTextColor: Z,
|
|
@@ -1157,7 +1157,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1157
1157
|
fontWeightMsg: xe,
|
|
1158
1158
|
textMessageColor: Oe,
|
|
1159
1159
|
inputWidth: ce,
|
|
1160
|
-
inputStyle:
|
|
1160
|
+
inputStyle: Pe,
|
|
1161
1161
|
activeTextStyle: tt,
|
|
1162
1162
|
sizeMediaQuery: Re,
|
|
1163
1163
|
inputReadonly: Be,
|
|
@@ -1174,16 +1174,16 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1174
1174
|
inputEyeIcon: gt,
|
|
1175
1175
|
tabindex: Qe,
|
|
1176
1176
|
inputEyeIconHidden: sa,
|
|
1177
|
-
lightBgColor:
|
|
1177
|
+
lightBgColor: Wt,
|
|
1178
1178
|
lightBgColorFocus: rt,
|
|
1179
|
-
lightEyeBgColor:
|
|
1179
|
+
lightEyeBgColor: jt,
|
|
1180
1180
|
lightEyeBgColorActive: da,
|
|
1181
|
-
lightDisabledBgColor:
|
|
1181
|
+
lightDisabledBgColor: Kt,
|
|
1182
1182
|
lightTextColor: ut,
|
|
1183
1183
|
darkBgColor: Ft,
|
|
1184
|
-
darkBgColorFocus:
|
|
1184
|
+
darkBgColorFocus: Pt,
|
|
1185
1185
|
darkEyeBgColor: Lt,
|
|
1186
|
-
darkEyeBgColorActive:
|
|
1186
|
+
darkEyeBgColorActive: P,
|
|
1187
1187
|
darkDisabledBgColor: U,
|
|
1188
1188
|
darkTextColor: _e,
|
|
1189
1189
|
darkDisabledEyeBgColor: Me,
|
|
@@ -1203,7 +1203,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1203
1203
|
iconLightBgColor: bt,
|
|
1204
1204
|
iconDarkBgColor: Ct,
|
|
1205
1205
|
iconLightBgColorActive: Rt,
|
|
1206
|
-
iconDarkBgColorActive:
|
|
1206
|
+
iconDarkBgColorActive: Yt,
|
|
1207
1207
|
iconLightDisabledBgColor: Jt,
|
|
1208
1208
|
iconDarkDisabledBgColor: Mt,
|
|
1209
1209
|
iconWidth: xt,
|
|
@@ -1237,7 +1237,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1237
1237
|
const u = Ye.value;
|
|
1238
1238
|
return Array.isArray(u) ? u.slice() : u;
|
|
1239
1239
|
}), Y = a(() => {
|
|
1240
|
-
const u = _.value ? "component-disabled" : "", S = de.value !== "b" ? "inline-block" : "block", Te =
|
|
1240
|
+
const u = _.value ? "component-disabled" : "", S = de.value !== "b" ? "inline-block" : "block", Te = E ? E.value : "#ffffff", Tt = $.value ? $.value : "", ht = ae.value ? ae.value : "", ya = Z.value ? Z.value : "", Ra = T.value ? T.value : !1, Ka = k.value !== 0 && !k.value || k.value < 0 ? 0 : k.value, Ya = be.value ? be.value : "'Lato', sans-serif", Ma = Q.value ? Q.value : null, Ga = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 100 : Ae.value, ot = et.value ? et.value : "'Lato', sans-serif", Qa = $e.value ? $e.value : "1em", Xt = xe.value !== 0 && !xe.value || xe.value < 0 ? 100 : xe.value, t = Oe.value ? Oe.value : "#f15574", n = ce.value ? ce.value : 200, i = tt.value ? tt.value : "normal", s = Re.value ? Re.value : "xs", f = Be.value ? Be.value : !1, c = He.value ? He.value : !1, h = K.value ? K.value : "text", x = Ge.value ? Ge.value : !1, N = qe.value ? qe.value : "light", j = $t.value ? $t.value : "left", te = Pe.value ? Pe.value : "background", ve = We.value ? We.value : "5px 10px", Ke = St.value ? St.value : "0", ct = Le.value ? Le.value : 10, ft = lt.value ? lt.value : "#000000", At = it.value ? it.value : "#000000", o = bt.value ? bt.value : "transparent", y = Ct.value ? Ct.value : "transparent", X = at.value !== 0 && !at.value || at.value < 0 ? 0 : at.value, Dt = Rt.value ? Rt.value : "transparent", ma = Yt.value ? Yt.value : "transparent", Ia = xt.value ? xt.value : 32, ka = ea.value ? ea.value : 1, sl = yt.value ? yt.value : !1, dl = ne.value !== 0 && !ne.value || ne.value < 0 ? 5 : ne.value, cl = ue.value ? ue.value : "transparent", fl = q.value !== 0 && !q.value || q.value < 0 ? 15 : q.value, vl = fe.value ? fe.value : "1px 5px", pl = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 0 : Ce.value, gl = Et.value === null || Et.value === void 0 ? -13 : Et.value, bl = ta.value === null || ta.value === void 0 ? 5 : ta.value, yl = Ie.value === null || Ie.value === void 0 ? 0 : Ie.value, ml = mt.value === null || mt.value === void 0 ? 0 : mt.value, Za = ye.value ? ye.value : "'Lato', sans-serif", Xa = ke.value ? ke.value : "1em", hl = aa.value ? aa.value : "0.8em", Sl = oe.value ? oe.value : 400, Cl = ie.value ? ie.value : "#ffffff", xl = De.value ? De.value : "#000000", Ja = kt.value ? kt.value : "#ffffff", Bl = J.value ? J.value : "#000000";
|
|
1241
1241
|
return {
|
|
1242
1242
|
disabled: u,
|
|
1243
1243
|
display: S,
|
|
@@ -1295,7 +1295,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1295
1295
|
lightTextColorLabelActive: Ja,
|
|
1296
1296
|
darkTextColorLabelActive: Bl
|
|
1297
1297
|
};
|
|
1298
|
-
}), la = a(() => Y.value.disabled),
|
|
1298
|
+
}), la = a(() => Y.value.disabled), Gt = a(() => {
|
|
1299
1299
|
const u = Y.value;
|
|
1300
1300
|
return Va.value, {
|
|
1301
1301
|
display: u.display,
|
|
@@ -1330,10 +1330,10 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1330
1330
|
// Mesma regra que antes estava no wrapper: esconde label inativo; não afeta .component__message
|
|
1331
1331
|
overflow: !yt.value || S ? "visible" : "hidden"
|
|
1332
1332
|
};
|
|
1333
|
-
}),
|
|
1333
|
+
}), Qt = a(() => {
|
|
1334
1334
|
const u = Y.value;
|
|
1335
1335
|
return u.inputStyle !== "line" && u.hasBorderRadius ? { borderRadius: `${u.borderRadius}rem` } : {};
|
|
1336
|
-
}), Sa = a(() => Y.value.font), Ca = a(() => Y.value.fontFamilyMsg), Ta = a(() => Y.value.fontSizeMsg), Aa = a(() => Y.value.fontWeightMsg), Da = a(() => Y.value.textColor), wa = a(() => Y.value.theme === "dark" ? U.value :
|
|
1336
|
+
}), Sa = a(() => Y.value.font), Ca = a(() => Y.value.fontFamilyMsg), Ta = a(() => Y.value.fontSizeMsg), Aa = a(() => Y.value.fontWeightMsg), Da = a(() => Y.value.textColor), wa = a(() => Y.value.theme === "dark" ? U.value : Kt.value), xa = a(() => Y.value.textMessageColor), Ba = a(() => {
|
|
1337
1337
|
const u = Y.value;
|
|
1338
1338
|
return u.caretColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1339
1339
|
}), pe = a(() => {
|
|
@@ -1347,8 +1347,8 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1347
1347
|
return u.display === "block" ? { width: "100%" } : {
|
|
1348
1348
|
width: `${u.inputWidth}px`
|
|
1349
1349
|
};
|
|
1350
|
-
}),
|
|
1351
|
-
switch (
|
|
1350
|
+
}), Ot = a(() => {
|
|
1351
|
+
switch (Pe.value) {
|
|
1352
1352
|
case "line":
|
|
1353
1353
|
return "component__input--line";
|
|
1354
1354
|
case "border":
|
|
@@ -1383,13 +1383,13 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1383
1383
|
default:
|
|
1384
1384
|
return "component__theme--light";
|
|
1385
1385
|
}
|
|
1386
|
-
}), D = a(() => Y.value.inputReadonly ? "component__input--read-only" : ""),
|
|
1386
|
+
}), D = a(() => Y.value.inputReadonly ? "component__input--read-only" : ""), Ee = a(() => Y.value.inputUppercase ? "component__input--uppercase" : ""), Bt = a(() => {
|
|
1387
1387
|
const u = Y.value;
|
|
1388
1388
|
return !!(u.showInputEye && u.inputType === "password");
|
|
1389
|
-
}), ba = a(() => It.value ? gt.value : sa.value),
|
|
1389
|
+
}), ba = a(() => It.value ? gt.value : sa.value), Ht = a(() => pt.value ? pt.value : `${H.value}-name-label`), Fa = a(() => yt.value ? Xe.value ? wt.value : "" : wt.value), Va = a(() => {
|
|
1390
1390
|
const u = re.value;
|
|
1391
1391
|
return Xe.value || u != null && String(u).trim().length > 0;
|
|
1392
|
-
}), $a = a(() => Y.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), oa = a(() => Xe.value ? "component__input--active" : "component__input--no-active"), za = a(() => Bt.value ? "6px 50px 6px 10px" : "6px 10px"),
|
|
1392
|
+
}), $a = a(() => Y.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), oa = a(() => Xe.value ? "component__input--active" : "component__input--no-active"), za = a(() => Bt.value ? "6px 50px 6px 10px" : "6px 10px"), Ea = a(() => !!(Ze.value && ze.value)), Oa = a(() => {
|
|
1393
1393
|
const u = {};
|
|
1394
1394
|
B.value && Object.keys(B.value).forEach((Tt) => u[`aria-${Tt}`] = B.value[Tt]);
|
|
1395
1395
|
const S = {
|
|
@@ -1403,7 +1403,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1403
1403
|
}), Vt = a(() => R.value ? `${ea.value}rem` : "0"), Nt = a(() => R.value ? `${xt.value}px` : "0"), nt = a(() => R.value ? `component__icon--${Se.value}` : ""), ee = a(() => {
|
|
1404
1404
|
const u = Y.value;
|
|
1405
1405
|
return R.value ? u.iconPadding : "0";
|
|
1406
|
-
}),
|
|
1406
|
+
}), qt = a(() => {
|
|
1407
1407
|
const u = Y.value;
|
|
1408
1408
|
return R.value ? u.iconMargin : "0";
|
|
1409
1409
|
}), ra = a(() => {
|
|
@@ -1412,7 +1412,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1412
1412
|
}), _t = a(() => {
|
|
1413
1413
|
const u = Y.value;
|
|
1414
1414
|
return R.value ? `${u.iconBorderRadius}rem` : "0";
|
|
1415
|
-
}),
|
|
1415
|
+
}), zt = a(() => {
|
|
1416
1416
|
const u = Y.value;
|
|
1417
1417
|
return R.value ? Se.value === "left" ? { paddingLeft: `${u.iconPaddingInput}px` } : { paddingRight: `${u.iconPaddingInput}px` } : {};
|
|
1418
1418
|
}), Zt = a(() => {
|
|
@@ -1505,34 +1505,34 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1505
1505
|
}), (u, S) => l(H) ? (F(), M("div", al({
|
|
1506
1506
|
key: 0,
|
|
1507
1507
|
class: ["nb-wrapper", la.value],
|
|
1508
|
-
style: [
|
|
1508
|
+
style: [Gt.value, ga.value, Qt.value],
|
|
1509
1509
|
role: "input",
|
|
1510
1510
|
title: e.title
|
|
1511
1511
|
}, Oa.value), [
|
|
1512
1512
|
me("div", {
|
|
1513
1513
|
id: l(H),
|
|
1514
|
-
class: Ne(["nb-reset", "component", b.value, d.value, D.value,
|
|
1515
|
-
style: he([ha.value, ga.value,
|
|
1514
|
+
class: Ne(["nb-reset", "component", b.value, d.value, D.value, Ot.value]),
|
|
1515
|
+
style: he([ha.value, ga.value, Qt.value]),
|
|
1516
1516
|
onClick: S[8] || (S[8] = (Te) => qa(Te))
|
|
1517
1517
|
}, [
|
|
1518
1518
|
l(yt) ? (F(), M("label", {
|
|
1519
1519
|
key: 0,
|
|
1520
|
-
for:
|
|
1520
|
+
for: Ht.value,
|
|
1521
1521
|
class: "component__label",
|
|
1522
1522
|
style: he([Zt.value]),
|
|
1523
1523
|
onClick: Ua
|
|
1524
1524
|
}, [
|
|
1525
1525
|
Na(vt(l(je)), 1),
|
|
1526
|
-
e.required ? (F(), M("span",
|
|
1527
|
-
], 12,
|
|
1526
|
+
e.required ? (F(), M("span", Eo, "*")) : le("", !0)
|
|
1527
|
+
], 12, Po)) : le("", !0),
|
|
1528
1528
|
Bt.value ? (F(), M("div", {
|
|
1529
1529
|
key: 1,
|
|
1530
1530
|
class: Ne(["component__eye", oa.value]),
|
|
1531
|
-
style: he([
|
|
1531
|
+
style: he([Qt.value]),
|
|
1532
1532
|
onClick: ua
|
|
1533
1533
|
}, [
|
|
1534
1534
|
me("label", {
|
|
1535
|
-
for:
|
|
1535
|
+
for: Ht.value,
|
|
1536
1536
|
class: Ne(["component__eye-icon", "fas"])
|
|
1537
1537
|
}, [
|
|
1538
1538
|
e.inputEyeCustomIcon ? (F(), M("span", qo, [
|
|
@@ -1549,11 +1549,11 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1549
1549
|
ref_key: "inputRef",
|
|
1550
1550
|
ref: ca,
|
|
1551
1551
|
"onUpdate:modelValue": S[0] || (S[0] = (Te) => re.value = Te),
|
|
1552
|
-
id:
|
|
1553
|
-
name:
|
|
1552
|
+
id: Ht.value,
|
|
1553
|
+
name: Ht.value,
|
|
1554
1554
|
type: st.value,
|
|
1555
1555
|
class: Ne(["component__input", [
|
|
1556
|
-
|
|
1556
|
+
Ee.value,
|
|
1557
1557
|
$a.value,
|
|
1558
1558
|
p.value
|
|
1559
1559
|
]]),
|
|
@@ -1567,7 +1567,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1567
1567
|
max: dt.value ? e.max : void 0,
|
|
1568
1568
|
step: dt.value ? e.step : void 0,
|
|
1569
1569
|
role: "input",
|
|
1570
|
-
style: he([
|
|
1570
|
+
style: he([Qt.value, zt.value]),
|
|
1571
1571
|
onFocus: S[1] || (S[1] = (Te) => Xe.value = !0),
|
|
1572
1572
|
onBlur: S[2] || (S[2] = (Te) => Xe.value = !1),
|
|
1573
1573
|
onKeydown: S[3] || (S[3] = ja((Te) => !l(_) && l(w) && Wa(), ["enter"])),
|
|
@@ -1580,11 +1580,11 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1580
1580
|
ref_key: "inputRef",
|
|
1581
1581
|
ref: ca,
|
|
1582
1582
|
"onUpdate:modelValue": S[4] || (S[4] = (Te) => re.value = Te),
|
|
1583
|
-
id:
|
|
1584
|
-
name:
|
|
1583
|
+
id: Ht.value,
|
|
1584
|
+
name: Ht.value,
|
|
1585
1585
|
type: st.value,
|
|
1586
1586
|
class: Ne(["component__input", [
|
|
1587
|
-
|
|
1587
|
+
Ee.value,
|
|
1588
1588
|
$a.value,
|
|
1589
1589
|
p.value
|
|
1590
1590
|
]]),
|
|
@@ -1598,7 +1598,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1598
1598
|
max: dt.value ? e.max : void 0,
|
|
1599
1599
|
step: dt.value ? e.step : void 0,
|
|
1600
1600
|
role: "input",
|
|
1601
|
-
style: he([
|
|
1601
|
+
style: he([Qt.value, zt.value]),
|
|
1602
1602
|
onFocus: S[5] || (S[5] = (Te) => Xe.value = !0),
|
|
1603
1603
|
onBlur: S[6] || (S[6] = (Te) => Xe.value = !1),
|
|
1604
1604
|
onKeydown: S[7] || (S[7] = ja((Te) => !l(_) && l(w) && Wa(), ["enter"])),
|
|
@@ -1608,7 +1608,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1608
1608
|
]),
|
|
1609
1609
|
l(R) ? (F(), M("label", {
|
|
1610
1610
|
key: 4,
|
|
1611
|
-
for:
|
|
1611
|
+
for: Ht.value,
|
|
1612
1612
|
class: Ne(["component__icon", nt.value])
|
|
1613
1613
|
}, [
|
|
1614
1614
|
_a(u.$slots, "icon", {}, () => [
|
|
@@ -1616,7 +1616,7 @@ const zo = ["title"], Wo = ["id"], Eo = ["for"], Po = {
|
|
|
1616
1616
|
], !0)
|
|
1617
1617
|
], 10, Ko)) : le("", !0)
|
|
1618
1618
|
], 14, Wo),
|
|
1619
|
-
|
|
1619
|
+
Ea.value ? (F(), M("div", {
|
|
1620
1620
|
key: 0,
|
|
1621
1621
|
class: Ne([
|
|
1622
1622
|
"component__message",
|
|
@@ -2003,12 +2003,12 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2003
2003
|
"0e451533": l(wt),
|
|
2004
2004
|
"4f0e7ace": l(Qe),
|
|
2005
2005
|
"5c5926e6": l(sa),
|
|
2006
|
-
ddd2f422: l(
|
|
2007
|
-
"0ee8d1e4": l(
|
|
2008
|
-
"21eed4f6": l(
|
|
2009
|
-
"288f196f": l(
|
|
2006
|
+
ddd2f422: l(Wt),
|
|
2007
|
+
"0ee8d1e4": l(Pt),
|
|
2008
|
+
"21eed4f6": l(jt),
|
|
2009
|
+
"288f196f": l(Kt),
|
|
2010
2010
|
"69587f0a": l(Lt),
|
|
2011
|
-
"0c330c22": l(
|
|
2011
|
+
"0c330c22": l(P),
|
|
2012
2012
|
"9be7e7aa": l(U),
|
|
2013
2013
|
"45b59765": l(Ve),
|
|
2014
2014
|
"4370d8a9": l(ut),
|
|
@@ -2033,7 +2033,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2033
2033
|
textColor: w,
|
|
2034
2034
|
paddingX: L,
|
|
2035
2035
|
paddingY: B,
|
|
2036
|
-
borderRadius:
|
|
2036
|
+
borderRadius: E,
|
|
2037
2037
|
disabled: $,
|
|
2038
2038
|
fontFamily: ae,
|
|
2039
2039
|
fontSize: Z,
|
|
@@ -2048,7 +2048,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2048
2048
|
inputPlaceholder: xe,
|
|
2049
2049
|
inputUppercase: Oe,
|
|
2050
2050
|
inputReadonly: ce,
|
|
2051
|
-
blockPaste:
|
|
2051
|
+
blockPaste: Pe,
|
|
2052
2052
|
inputAutocomplete: tt,
|
|
2053
2053
|
inputMask: Re,
|
|
2054
2054
|
required: Be,
|
|
@@ -2065,16 +2065,16 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2065
2065
|
lightTextColor: gt,
|
|
2066
2066
|
lightChipBgColor: Qe,
|
|
2067
2067
|
lightChipTextColor: sa,
|
|
2068
|
-
lightChipRemoveColor:
|
|
2068
|
+
lightChipRemoveColor: Wt,
|
|
2069
2069
|
lightDisabledBorderColor: rt,
|
|
2070
|
-
darkBgColor:
|
|
2070
|
+
darkBgColor: jt,
|
|
2071
2071
|
darkBgColorFocus: da,
|
|
2072
|
-
darkBorderColor:
|
|
2072
|
+
darkBorderColor: Kt,
|
|
2073
2073
|
darkBorderColorFocus: ut,
|
|
2074
2074
|
darkDisabledBgColor: Ft,
|
|
2075
|
-
darkTextColor:
|
|
2075
|
+
darkTextColor: Pt,
|
|
2076
2076
|
darkChipBgColor: Lt,
|
|
2077
|
-
darkChipTextColor:
|
|
2077
|
+
darkChipTextColor: P,
|
|
2078
2078
|
darkChipRemoveColor: U,
|
|
2079
2079
|
darkDisabledBorderColor: _e,
|
|
2080
2080
|
tabIndex: Me,
|
|
@@ -2094,7 +2094,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2094
2094
|
inputLabelMarginActive: bt,
|
|
2095
2095
|
labelActiveTop: Ct,
|
|
2096
2096
|
labelActiveLeft: Rt,
|
|
2097
|
-
fontFamilyLabel:
|
|
2097
|
+
fontFamilyLabel: Yt,
|
|
2098
2098
|
fontSizeLabel: Jt,
|
|
2099
2099
|
fontSizeLabelActive: Mt,
|
|
2100
2100
|
fontWeightLabel: xt,
|
|
@@ -2106,7 +2106,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2106
2106
|
fontSizeChip: fe,
|
|
2107
2107
|
fontWeightChip: Ce
|
|
2108
2108
|
} = ul(W), ne = se(""), q = se(null), Et = se(null), ta = se(null), Ie = se([]), mt = se(!1), ye = a(() => {
|
|
2109
|
-
const p = $.value ? "component-disabled" : "", b = de.value !== "b" ? "inline-block" : "block", d = !et.value || et.value < 185 ? 185 : et.value, D = w ? w.value : "ffffff",
|
|
2109
|
+
const p = $.value ? "component-disabled" : "", b = de.value !== "b" ? "inline-block" : "block", d = !et.value || et.value < 185 ? 185 : et.value, D = w ? w.value : "ffffff", Ee = ze.value ? ze.value : "", Bt = V.value ? V.value : "", ba = R.value ? R.value : "", Ht = L.value !== 0 && !L.value || L.value < 0 ? 1 : L.value, Fa = B.value !== 0 && !B.value || B.value < 0 ? 0.2 : B.value, Va = E.value !== 0 && !E.value || E.value < 0 ? 0 : E.value, $a = ae.value ? ae.value : "'Lato', sans-serif", oa = Z.value ? Z.value : "1.2em", za = T.value !== 0 && !T.value || T.value < 0 ? 100 : T.value, Ea = be.value !== 0 && !be.value || be.value < 0 ? 0 : be.value, Oa = Q.value !== 0 && !Q.value || Q.value < 0 ? 10 : Q.value, Vt = !Ae.value || !["top", "bottom"].includes(Ae.value) ? "bottom" : Ae.value, Nt = !A.value || !["background", "line", "border"].includes(A.value) ? "background" : A.value, nt = Ye.value ? Ye.value : "light", ee = Se.value ? Se.value : !1, qt = it.value !== 0 && !it.value || it.value < 0 ? 5 : it.value, ra = Le.value ? Le.value : "transparent", _t = bt.value !== 0 && !bt.value || bt.value < 0 ? 15 : bt.value, zt = St.value ? St.value : "1px 5px", Zt = at.value !== 0 && !at.value || at.value < 0 ? 0 : at.value, Ha = Ct.value === null || Ct.value === void 0 ? -13 : Ct.value, ua = Rt.value === null || Rt.value === void 0 ? 5 : Rt.value, dt = Yt.value ? Yt.value : "'Lato', sans-serif", La = Jt.value ? Jt.value : "1em", qa = Mt.value ? Mt.value : "0.8em", Ua = xt.value ? xt.value : 400, Wa = ea.value ? ea.value : "#333333", O = je.value ? je.value : "#ffffff", u = yt.value ? yt.value : "#333333", S = I.value ? I.value : "#ffffff", Te = ue.value ? ue.value : "'Lato', sans-serif", Tt = fe.value ? fe.value : "1.2em", ht = Ce.value ? Ce.value : 400;
|
|
2110
2110
|
return {
|
|
2111
2111
|
disabled: p,
|
|
2112
2112
|
display: b,
|
|
@@ -2115,22 +2115,22 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2115
2115
|
fontSize: oa,
|
|
2116
2116
|
fontWeight: za,
|
|
2117
2117
|
textColor: D,
|
|
2118
|
-
caretColor:
|
|
2118
|
+
caretColor: Ee,
|
|
2119
2119
|
selectionBgColor: Bt,
|
|
2120
2120
|
selectionTextColor: ba,
|
|
2121
|
-
paddingX:
|
|
2121
|
+
paddingX: Ht,
|
|
2122
2122
|
paddingY: Fa,
|
|
2123
2123
|
borderRadius: Va,
|
|
2124
|
-
minChips:
|
|
2124
|
+
minChips: Ea,
|
|
2125
2125
|
maxChips: Oa,
|
|
2126
2126
|
inputPosition: Vt,
|
|
2127
2127
|
inputStyle: Nt,
|
|
2128
2128
|
theme: nt,
|
|
2129
2129
|
showLabel: ee,
|
|
2130
|
-
labelLeft:
|
|
2130
|
+
labelLeft: qt,
|
|
2131
2131
|
labelBackground: ra,
|
|
2132
2132
|
inputLabelMarginActive: _t,
|
|
2133
|
-
labelPadding:
|
|
2133
|
+
labelPadding: zt,
|
|
2134
2134
|
labelBorderRadius: Zt,
|
|
2135
2135
|
labelActiveTop: Ha,
|
|
2136
2136
|
labelActiveLeft: ua,
|
|
@@ -2211,7 +2211,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2211
2211
|
width: `${p.width}px`
|
|
2212
2212
|
};
|
|
2213
2213
|
return p.display === "block" ? { width: "auto" } : b;
|
|
2214
|
-
}),
|
|
2214
|
+
}), Gt = a(() => $e.value ? $e.value : `${H.value}-name-label`), na = a(() => mt.value || Ie.value.length > 0 || ne.value && ne.value.trim().length > 0), ha = a(() => Se.value ? mt.value || Ie.value.length > 0 ? xe.value : "" : xe.value), Qt = a(() => {
|
|
2215
2215
|
const p = ye.value, b = na.value, d = b ? p.lightTextColorLabelActive : p.lightTextColorLabel, D = b ? p.darkTextColorLabelActive : p.darkTextColorLabel;
|
|
2216
2216
|
return {
|
|
2217
2217
|
fontFamily: p.fontFamilyLabel,
|
|
@@ -2273,7 +2273,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2273
2273
|
}, pe = async (p) => {
|
|
2274
2274
|
var d;
|
|
2275
2275
|
const b = ((d = p.clipboardData) == null ? void 0 : d.getData("text")) || "";
|
|
2276
|
-
g("paste", b),
|
|
2276
|
+
g("paste", b), Pe.value && p.preventDefault();
|
|
2277
2277
|
}, pa = (p) => {
|
|
2278
2278
|
if (!($.value || ce.value) && p.key === "Enter" && ne.value.trim() !== "") {
|
|
2279
2279
|
p.preventDefault();
|
|
@@ -2286,7 +2286,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2286
2286
|
index: Ie.value.indexOf(p),
|
|
2287
2287
|
list: Ie.value
|
|
2288
2288
|
});
|
|
2289
|
-
},
|
|
2289
|
+
}, Ot = (p) => {
|
|
2290
2290
|
Ie.value = Ie.value.filter((b) => b !== p), g("removed", {
|
|
2291
2291
|
chip: p,
|
|
2292
2292
|
index: Ie.value.indexOf(p),
|
|
@@ -2312,9 +2312,9 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2312
2312
|
}), [
|
|
2313
2313
|
l(Se) ? (F(), M("label", {
|
|
2314
2314
|
key: 0,
|
|
2315
|
-
for:
|
|
2315
|
+
for: Gt.value,
|
|
2316
2316
|
class: "component__label",
|
|
2317
|
-
style: he([
|
|
2317
|
+
style: he([Qt.value])
|
|
2318
2318
|
}, [
|
|
2319
2319
|
Na(vt(l(We)), 1),
|
|
2320
2320
|
l(Be) ? (F(), M("span", Xo, "*")) : le("", !0)
|
|
@@ -2339,7 +2339,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2339
2339
|
_a(p.$slots, "chip", {
|
|
2340
2340
|
chips: Ie.value,
|
|
2341
2341
|
chip: d,
|
|
2342
|
-
removeChip:
|
|
2342
|
+
removeChip: Ot
|
|
2343
2343
|
}, () => [
|
|
2344
2344
|
me("span", {
|
|
2345
2345
|
class: "chip-text",
|
|
@@ -2349,7 +2349,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2349
2349
|
key: 0,
|
|
2350
2350
|
class: "chip-remove",
|
|
2351
2351
|
style: he([Sa.value]),
|
|
2352
|
-
onClick: (D) =>
|
|
2352
|
+
onClick: (D) => Ot(d)
|
|
2353
2353
|
}, "×", 12, er)) : le("", !0)
|
|
2354
2354
|
], !0)
|
|
2355
2355
|
]))), 128))
|
|
@@ -2360,8 +2360,8 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2360
2360
|
ref: Et,
|
|
2361
2361
|
type: "text",
|
|
2362
2362
|
"onUpdate:modelValue": b[0] || (b[0] = (d) => ne.value = d),
|
|
2363
|
-
id:
|
|
2364
|
-
name:
|
|
2363
|
+
id: Gt.value,
|
|
2364
|
+
name: Gt.value,
|
|
2365
2365
|
placeholder: ha.value,
|
|
2366
2366
|
readonly: l(ce),
|
|
2367
2367
|
autocomplete: l(tt),
|
|
@@ -2382,8 +2382,8 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2382
2382
|
ref: Et,
|
|
2383
2383
|
type: "text",
|
|
2384
2384
|
"onUpdate:modelValue": b[2] || (b[2] = (d) => ne.value = d),
|
|
2385
|
-
id:
|
|
2386
|
-
name:
|
|
2385
|
+
id: Gt.value,
|
|
2386
|
+
name: Gt.value,
|
|
2387
2387
|
placeholder: ha.value,
|
|
2388
2388
|
readonly: l(ce),
|
|
2389
2389
|
autocomplete: l(tt),
|
|
@@ -2401,7 +2401,7 @@ const Qo = ["title"], Zo = ["for"], Xo = {
|
|
|
2401
2401
|
], 14, Jo)
|
|
2402
2402
|
], 16, Qo)) : le("", !0);
|
|
2403
2403
|
}
|
|
2404
|
-
}), nr = /* @__PURE__ */ il(lr, [["__scopeId", "data-v-9342c4f9"]]),
|
|
2404
|
+
}), nr = /* @__PURE__ */ il(lr, [["__scopeId", "data-v-9342c4f9"]]), Pa = Object.freeze({
|
|
2405
2405
|
TYPE_NOT_ALLOWED: "TYPE_NOT_ALLOWED",
|
|
2406
2406
|
EXTENSION_NOT_ALLOWED: "EXTENSION_NOT_ALLOWED",
|
|
2407
2407
|
SIZE_EXCEEDED: "SIZE_EXCEEDED",
|
|
@@ -2511,9 +2511,9 @@ function cr(e, v, m, g = {}) {
|
|
|
2511
2511
|
H();
|
|
2512
2512
|
return;
|
|
2513
2513
|
}
|
|
2514
|
-
const B = new Image(),
|
|
2514
|
+
const B = new Image(), E = URL.createObjectURL(e);
|
|
2515
2515
|
B.onload = () => {
|
|
2516
|
-
URL.revokeObjectURL(
|
|
2516
|
+
URL.revokeObjectURL(E);
|
|
2517
2517
|
const $ = B.width, ae = B.height;
|
|
2518
2518
|
let Z = !1;
|
|
2519
2519
|
for (let T = 0; T < w.length; T++)
|
|
@@ -2529,11 +2529,11 @@ function cr(e, v, m, g = {}) {
|
|
|
2529
2529
|
width: $,
|
|
2530
2530
|
height: ae,
|
|
2531
2531
|
allowedPairs: T
|
|
2532
|
-
}),
|
|
2532
|
+
}), Pa.GIF_DIMENSIONS_INVALID));
|
|
2533
2533
|
}
|
|
2534
2534
|
}, B.onerror = () => {
|
|
2535
|
-
URL.revokeObjectURL(
|
|
2536
|
-
}, B.src =
|
|
2535
|
+
URL.revokeObjectURL(E), de(Al(W.gifLoadError, Pa.GIF_LOAD_ERROR));
|
|
2536
|
+
}, B.src = E;
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
2539
|
function fr(e, v = {}) {
|
|
@@ -2548,8 +2548,8 @@ function fr(e, v = {}) {
|
|
|
2548
2548
|
w();
|
|
2549
2549
|
return;
|
|
2550
2550
|
}
|
|
2551
|
-
const B = m != null && String(m).trim() !== "",
|
|
2552
|
-
if (!B && !
|
|
2551
|
+
const B = m != null && String(m).trim() !== "", E = g != null && g > 0;
|
|
2552
|
+
if (!B && !E) {
|
|
2553
2553
|
w();
|
|
2554
2554
|
return;
|
|
2555
2555
|
}
|
|
@@ -2567,22 +2567,22 @@ function fr(e, v = {}) {
|
|
|
2567
2567
|
height: _,
|
|
2568
2568
|
aspect: be.toFixed(2),
|
|
2569
2569
|
ratio: m
|
|
2570
|
-
}),
|
|
2570
|
+
}), Pa.VIDEO_ASPECT_INVALID));
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
|
-
if (
|
|
2576
|
+
if (E && Number.isFinite($.duration) && $.duration > g) {
|
|
2577
2577
|
L(Al(ia(de.videoDurationInvalid, {
|
|
2578
2578
|
duration: $.duration.toFixed(2),
|
|
2579
2579
|
maxDuration: g
|
|
2580
|
-
}),
|
|
2580
|
+
}), Pa.VIDEO_DURATION_INVALID));
|
|
2581
2581
|
return;
|
|
2582
2582
|
}
|
|
2583
2583
|
w();
|
|
2584
2584
|
}, $.onerror = () => {
|
|
2585
|
-
URL.revokeObjectURL(ae), L(Al(de.videoLoadError,
|
|
2585
|
+
URL.revokeObjectURL(ae), L(Al(de.videoLoadError, Pa.VIDEO_LOAD_ERROR));
|
|
2586
2586
|
}, $.src = ae;
|
|
2587
2587
|
});
|
|
2588
2588
|
}
|
|
@@ -2596,7 +2596,7 @@ async function vr(e, {
|
|
|
2596
2596
|
gifWidth: w,
|
|
2597
2597
|
gifHeight: L,
|
|
2598
2598
|
videoRatio: B,
|
|
2599
|
-
videoMaxDuration:
|
|
2599
|
+
videoMaxDuration: E,
|
|
2600
2600
|
videoAspectTolerance: $ = 0.01,
|
|
2601
2601
|
locale: ae = {}
|
|
2602
2602
|
}) {
|
|
@@ -2609,7 +2609,7 @@ async function vr(e, {
|
|
|
2609
2609
|
fileType: e.type || "unknown",
|
|
2610
2610
|
accept: v || "any"
|
|
2611
2611
|
}),
|
|
2612
|
-
errorType:
|
|
2612
|
+
errorType: Pa.TYPE_NOT_ALLOWED
|
|
2613
2613
|
};
|
|
2614
2614
|
if (!ur(e.name, m)) {
|
|
2615
2615
|
const T = (m || []).map(Fn).filter(Boolean).join(", ");
|
|
@@ -2619,29 +2619,29 @@ async function vr(e, {
|
|
|
2619
2619
|
fileName: e.name,
|
|
2620
2620
|
list: T
|
|
2621
2621
|
}),
|
|
2622
|
-
errorType:
|
|
2622
|
+
errorType: Pa.EXTENSION_NOT_ALLOWED
|
|
2623
2623
|
};
|
|
2624
2624
|
}
|
|
2625
2625
|
return ir(e, g) ? {
|
|
2626
2626
|
ok: !1,
|
|
2627
2627
|
error: ia(Z.sizeExceeded, { fileName: e.name }),
|
|
2628
|
-
errorType:
|
|
2628
|
+
errorType: Pa.SIZE_EXCEEDED
|
|
2629
2629
|
} : sr(e, H, W) ? {
|
|
2630
2630
|
ok: !1,
|
|
2631
2631
|
error: ia(Z.duplicateInList, { fileName: e.name }),
|
|
2632
|
-
errorType:
|
|
2632
|
+
errorType: Pa.DUPLICATE_IN_LIST
|
|
2633
2633
|
} : dr(e, de, W) ? {
|
|
2634
2634
|
ok: !1,
|
|
2635
2635
|
error: ia(Z.duplicateInBatch, { fileName: e.name }),
|
|
2636
|
-
errorType:
|
|
2636
|
+
errorType: Pa.DUPLICATE_IN_BATCH
|
|
2637
2637
|
} : (await cr(e, w, L, Z), await fr(e, {
|
|
2638
2638
|
videoRatio: B,
|
|
2639
|
-
videoMaxDuration:
|
|
2639
|
+
videoMaxDuration: E,
|
|
2640
2640
|
aspectTolerance: $,
|
|
2641
2641
|
locale: Z
|
|
2642
2642
|
}), { ok: !0 });
|
|
2643
2643
|
} catch (T) {
|
|
2644
|
-
const k = T && typeof T.message == "string" ? T.message : String(T), _ = T && typeof T.code == "string" && T.code ? T.code :
|
|
2644
|
+
const k = T && typeof T.message == "string" ? T.message : String(T), _ = T && typeof T.code == "string" && T.code ? T.code : Pa.UNKNOWN;
|
|
2645
2645
|
return { ok: !1, error: k, errorType: _ };
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
@@ -3301,46 +3301,46 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3301
3301
|
],
|
|
3302
3302
|
setup(e, { expose: v, emit: m }) {
|
|
3303
3303
|
rl((r) => ({
|
|
3304
|
-
"
|
|
3305
|
-
"
|
|
3306
|
-
"
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
"
|
|
3310
|
-
"
|
|
3311
|
-
"
|
|
3312
|
-
|
|
3313
|
-
"
|
|
3314
|
-
|
|
3315
|
-
"
|
|
3316
|
-
"
|
|
3317
|
-
|
|
3318
|
-
"
|
|
3319
|
-
|
|
3320
|
-
"
|
|
3321
|
-
"
|
|
3322
|
-
"
|
|
3323
|
-
"
|
|
3324
|
-
"
|
|
3325
|
-
"
|
|
3326
|
-
"
|
|
3327
|
-
"
|
|
3328
|
-
"
|
|
3329
|
-
"
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
"
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
"
|
|
3338
|
-
"
|
|
3339
|
-
"
|
|
3340
|
-
|
|
3341
|
-
"
|
|
3342
|
-
"
|
|
3343
|
-
"
|
|
3304
|
+
"08d7bb6a": ya.value,
|
|
3305
|
+
"9c48efb6": Te.value,
|
|
3306
|
+
"03998688": l(St),
|
|
3307
|
+
"5ace76b5": Qa.value,
|
|
3308
|
+
b72eaf72: Xt.value,
|
|
3309
|
+
"78444bc2": t.value,
|
|
3310
|
+
"6931a6eb": l(Et),
|
|
3311
|
+
"6c776e38": l(Rt),
|
|
3312
|
+
10056612: l(aa),
|
|
3313
|
+
"6242d030": l(Ct),
|
|
3314
|
+
"625c63a8": l(Yt),
|
|
3315
|
+
"3518e4f0": ka.value,
|
|
3316
|
+
"6836044c": l(at),
|
|
3317
|
+
baa9a028: l(lt),
|
|
3318
|
+
"238ec60c": l(it),
|
|
3319
|
+
"7b7d0f9c": l(bt),
|
|
3320
|
+
"4c719f95": l(q),
|
|
3321
|
+
"5a469e21": l(ke),
|
|
3322
|
+
"38b18208": l(Le),
|
|
3323
|
+
"2c689ad0": l(Jt),
|
|
3324
|
+
"27000e24": l(V),
|
|
3325
|
+
"5e558d14": l(R),
|
|
3326
|
+
"418eb598": l(Se),
|
|
3327
|
+
"2cc1595a": l(We),
|
|
3328
|
+
"3692edd0": X.value,
|
|
3329
|
+
"113f0ae3": ma.value,
|
|
3330
|
+
bec0d6c8: Ia.value,
|
|
3331
|
+
c6f2bf68: sl.value,
|
|
3332
|
+
"7afbd26f": y.value,
|
|
3333
|
+
71384548: l(Mt),
|
|
3334
|
+
"1ad1423a": ve.value,
|
|
3335
|
+
ee054988: Ra.value,
|
|
3336
|
+
"51ca9d7b": Ka.value,
|
|
3337
|
+
"729d7de4": Ya.value,
|
|
3338
|
+
"2a7f2a84": ot.value,
|
|
3339
|
+
"9deda438": ml.value,
|
|
3340
|
+
"30a248a3": yl.value,
|
|
3341
|
+
"1adc4396": bl.value,
|
|
3342
|
+
"05ecf648": Ga.value,
|
|
3343
|
+
"0eb05afe": Ma.value
|
|
3344
3344
|
}));
|
|
3345
3345
|
const g = m, W = e, {
|
|
3346
3346
|
nbId: H,
|
|
@@ -3348,7 +3348,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3348
3348
|
hasTabIndexEnter: w,
|
|
3349
3349
|
ariaLabel: L,
|
|
3350
3350
|
ariaAttrs: B,
|
|
3351
|
-
textColor:
|
|
3351
|
+
textColor: E,
|
|
3352
3352
|
caretColor: $,
|
|
3353
3353
|
selectionBgColor: ae,
|
|
3354
3354
|
selectionTextColor: Z,
|
|
@@ -3363,7 +3363,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3363
3363
|
fontWeightMsg: xe,
|
|
3364
3364
|
textMessageColor: Oe,
|
|
3365
3365
|
fontFamilyFileList: ce,
|
|
3366
|
-
fontSizeFileList:
|
|
3366
|
+
fontSizeFileList: Pe,
|
|
3367
3367
|
fontWeightFileList: tt,
|
|
3368
3368
|
textFileListColor: Re,
|
|
3369
3369
|
textFileListPadding: Be,
|
|
@@ -3380,16 +3380,16 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3380
3380
|
fileExtension: gt,
|
|
3381
3381
|
fileExtensions: Qe,
|
|
3382
3382
|
captureMode: sa,
|
|
3383
|
-
maxFileSizeBytes:
|
|
3383
|
+
maxFileSizeBytes: Wt,
|
|
3384
3384
|
maxFiles: rt,
|
|
3385
|
-
allowedExtensions:
|
|
3385
|
+
allowedExtensions: jt,
|
|
3386
3386
|
allowDuplicates: da,
|
|
3387
|
-
gifWidth:
|
|
3387
|
+
gifWidth: Kt,
|
|
3388
3388
|
gifHeight: ut,
|
|
3389
3389
|
videoMaxDuration: Ft,
|
|
3390
|
-
videoRatio:
|
|
3390
|
+
videoRatio: Pt,
|
|
3391
3391
|
videoAspectTolerance: Lt,
|
|
3392
|
-
showFilesCounter:
|
|
3392
|
+
showFilesCounter: P,
|
|
3393
3393
|
locale: U,
|
|
3394
3394
|
showConstraintsText: _e,
|
|
3395
3395
|
showConstraintsAccept: Me,
|
|
@@ -3409,7 +3409,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3409
3409
|
darkControlBorderColorActive: bt,
|
|
3410
3410
|
darkDisabledBgColor: Ct,
|
|
3411
3411
|
darkTextColor: Rt,
|
|
3412
|
-
darkDisabledControlBorderColor:
|
|
3412
|
+
darkDisabledControlBorderColor: Yt,
|
|
3413
3413
|
lightDisabledControlBorderColor: Jt,
|
|
3414
3414
|
textAlign: Mt,
|
|
3415
3415
|
showMsg: xt,
|
|
@@ -3443,10 +3443,10 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3443
3443
|
labelActiveLeft: va,
|
|
3444
3444
|
labelRight: Y,
|
|
3445
3445
|
labelActiveRight: la,
|
|
3446
|
-
fontFamilyLabel:
|
|
3446
|
+
fontFamilyLabel: Gt,
|
|
3447
3447
|
fontSizeLabel: na,
|
|
3448
3448
|
fontSizeLabelActive: ha,
|
|
3449
|
-
fontWeightLabel:
|
|
3449
|
+
fontWeightLabel: Qt,
|
|
3450
3450
|
lightTextColorLabel: Sa,
|
|
3451
3451
|
lightTextColorLabelActive: Ca,
|
|
3452
3452
|
darkTextColorLabel: Ta,
|
|
@@ -3458,23 +3458,23 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3458
3458
|
textConstraintsPadding: pe,
|
|
3459
3459
|
textConstraintsMargin: pa,
|
|
3460
3460
|
fontFamilyClearButton: ga,
|
|
3461
|
-
fontSizeClearButton:
|
|
3461
|
+
fontSizeClearButton: Ot,
|
|
3462
3462
|
fontWeightClearButton: p,
|
|
3463
3463
|
textClearButtonColor: b,
|
|
3464
3464
|
textClearButtonColorHover: d,
|
|
3465
3465
|
textClearButtonPadding: D,
|
|
3466
|
-
textClearButtonPaddingHover:
|
|
3466
|
+
textClearButtonPaddingHover: Ee,
|
|
3467
3467
|
textClearButtonBackground: Bt,
|
|
3468
3468
|
textClearButtonBackgroundHover: ba,
|
|
3469
|
-
fontFamilyCounter:
|
|
3469
|
+
fontFamilyCounter: Ht,
|
|
3470
3470
|
fontSizeCounter: Fa,
|
|
3471
3471
|
fontWeightCounter: Va,
|
|
3472
3472
|
textCounterColor: $a,
|
|
3473
3473
|
textCounterPadding: oa,
|
|
3474
3474
|
textCounterMargin: za,
|
|
3475
|
-
showFileList:
|
|
3475
|
+
showFileList: Ea,
|
|
3476
3476
|
extraContendAbsolute: Oa
|
|
3477
|
-
} = ul(W), Vt = se(null), Nt = se(null), nt = se(!1), ee = se([]),
|
|
3477
|
+
} = ul(W), Vt = se(null), Nt = se(null), nt = se(!1), ee = se([]), qt = se([]), ra = se(0), _t = se(!1), zt = {
|
|
3478
3478
|
clearAction: "Clear",
|
|
3479
3479
|
chooseFileAriaLabel: "Choose file",
|
|
3480
3480
|
singleFileLimit: "1 file",
|
|
@@ -3488,12 +3488,12 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3488
3488
|
(G) => G.startsWith("image/") || G.startsWith("video/") || G === "image/*" || G === "video/*"
|
|
3489
3489
|
) ? null : r === "auto" ? "environment" : r;
|
|
3490
3490
|
}), ua = a(() => or(U.value)), dt = a(() => ({
|
|
3491
|
-
...
|
|
3491
|
+
...zt,
|
|
3492
3492
|
// default file UI locale
|
|
3493
3493
|
...U.value || {}
|
|
3494
3494
|
// resolved file locale
|
|
3495
3495
|
})), La = a(() => {
|
|
3496
|
-
if (!
|
|
3496
|
+
if (!P.value || rt.value == null || !qe.value)
|
|
3497
3497
|
return "";
|
|
3498
3498
|
const r = ua.value;
|
|
3499
3499
|
return ia(r.filesCounter, {
|
|
@@ -3503,11 +3503,11 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3503
3503
|
}), qa = a(() => qe.value ? rt.value : 1), Ua = a(() => {
|
|
3504
3504
|
if (!Me.value)
|
|
3505
3505
|
return "";
|
|
3506
|
-
const r = String(Zt.value || "").trim(), z =
|
|
3506
|
+
const r = String(Zt.value || "").trim(), z = jt.value, we = Array.isArray(z) ? z.map((Ut) => String(Ut).trim()).filter(Boolean).map((Ut) => Ut.startsWith(".") ? Ut : `.${Ut}`) : [], G = we.length ? we.join(", ") : "";
|
|
3507
3507
|
if (!r && !G)
|
|
3508
3508
|
return "";
|
|
3509
3509
|
const Fe = dt.value.acceptedLine;
|
|
3510
|
-
return Fe ===
|
|
3510
|
+
return Fe === zt.acceptedLine ? r && G ? ia(zt.acceptedLine, {
|
|
3511
3511
|
accept: r,
|
|
3512
3512
|
extensions: G
|
|
3513
3513
|
}) : r ? ia("Accept: {accept}", { accept: r }) : ia("Extensions: {extensions}", { extensions: G }) : ia(Fe, {
|
|
@@ -3519,11 +3519,11 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3519
3519
|
const Fe = qa.value;
|
|
3520
3520
|
return qe.value ? Fe == null ? dt.value.multipleFilesLimit : ia(dt.value.upToFilesLimit, { max: Fe }) : dt.value.singleFileLimit;
|
|
3521
3521
|
})(), z = ia(dt.value.maxSizePerFile, {
|
|
3522
|
-
size: hl(
|
|
3522
|
+
size: hl(Wt.value)
|
|
3523
3523
|
}), we = Ua.value, G = [r, z];
|
|
3524
3524
|
return we && G.push(we), G.join(" • ");
|
|
3525
3525
|
}), O = a(() => {
|
|
3526
|
-
const r = _.value ? "component-disabled" : "", z = de.value !== "b" ? "inline-block" : "block", we =
|
|
3526
|
+
const r = _.value ? "component-disabled" : "", z = de.value !== "b" ? "inline-block" : "block", we = E ? E.value : "#ffffff", G = $.value ? $.value : "", Fe = ae.value ? ae.value : "", Je = Z.value ? Z.value : "", Ut = T.value ? T.value : !1, el = k.value !== 0 && !k.value || k.value < 0 ? 0 : k.value, ql = be.value ? be.value : "'Lato', sans-serif", Ul = Q.value ? Q.value : null, jl = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 100 : Ae.value, Kl = et.value ? et.value : "'Lato', sans-serif", Yl = $e.value ? $e.value : "1em", Gl = xe.value !== 0 && !xe.value || xe.value < 0 ? 100 : xe.value, Ql = Oe.value ? Oe.value : "#f15574", Zl = He.value ? He.value : 200, Xl = Ye.value ? Ye.value : "normal", Jl = A.value ? A.value : "xs", en = Ge.value ? Ge.value : !1, tn = pt.value ? pt.value : !1, an = Ze.value ? Ze.value : "light", ln = Mt.value ? Mt.value : "left", nn = K.value ? K.value : "background", on = ue.value ? ue.value : "5px 10px", rn = Ce.value ? Ce.value : "0", un = fe.value ? fe.value : 10, sn = q.value ? q.value : "#000000", dn = Et.value ? Et.value : "#000000", cn = ta.value ? ta.value : "transparent", fn = Ie.value ? Ie.value : "transparent", vn = ne.value !== 0 && !ne.value || ne.value < 0 ? 0 : ne.value, pn = mt.value ? mt.value : "transparent", gn = ye.value ? ye.value : "transparent", bn = oe.value ? oe.value : 32, yn = ie.value ? ie.value : 1, mn = kt.value ? kt.value : !1, hn = It.value !== 0 && !It.value || It.value < 0 ? 5 : It.value, Sn = re.value ? re.value : "transparent", Cn = Xe.value !== 0 && !Xe.value || Xe.value < 0 ? 15 : Xe.value, xn = ca.value ? ca.value : "1px 5px", Bn = st.value !== 0 && !st.value || st.value < 0 ? 0 : st.value, $n = fa.value === null || fa.value === void 0 ? -13 : fa.value, Rn = va.value === null || va.value === void 0 ? 5 : va.value, Mn = Y.value === null || Y.value === void 0 ? 0 : Y.value, In = la.value === null || la.value === void 0 ? 0 : la.value, Nn = Gt.value ? Gt.value : "'Lato', sans-serif", _n = na.value ? na.value : "1em", zn = ha.value ? ha.value : "0.8em", Wn = Qt.value ? Qt.value : 400, Pn = Sa.value ? Sa.value : "#ffffff", En = Ta.value ? Ta.value : "#000000", On = Ca.value ? Ca.value : "#ffffff", Hn = Aa.value ? Aa.value : "#000000", qn = ce.value ? ce.value : "'Lato', sans-serif", Un = Pe.value ? Pe.value : "1.6em", jn = tt.value ? tt.value : 400, Kn = Re.value ? Re.value : "#000000", Yn = Be.value ? Be.value : "2px", Gn = C.value ? C.value : "2px", Qn = Da.value ? Da.value : "'Lato', sans-serif", Zn = wa.value ? wa.value : "1.2em", Xn = xa.value ? xa.value : 400, Jn = Ba.value ? Ba.value : "#6b7280", eo = pe.value ? pe.value : "2px", to = pa.value ? pa.value : "6px 0 0 0", ao = ga.value ? ga.value : "'Lato', sans-serif", lo = Ot.value ? Ot.value : "1.2em", no = p.value ? p.value : 400, oo = b.value ? b.value : "#6b7280", ro = d.value ? d.value : "#000000", uo = D.value ? D.value : "0px 6px", io = Ee.value ? Ee.value : "0px 6px", so = Bt.value ? Bt.value : "transparent", co = ba.value ? ba.value : "transparent", fo = Ht.value ? Ht.value : "'Lato', sans-serif", vo = Fa.value ? Fa.value : "1.2em", po = Va.value ? Va.value : 600, go = $a.value ? $a.value : "#374151", bo = oa.value ? oa.value : "0px", yo = za.value ? za.value : "4px 0 0 0";
|
|
3527
3527
|
return {
|
|
3528
3528
|
disabled: r,
|
|
3529
3529
|
display: z,
|
|
@@ -3538,7 +3538,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3538
3538
|
caretColor: G,
|
|
3539
3539
|
selectionBgColor: Fe,
|
|
3540
3540
|
selectionTextColor: Je,
|
|
3541
|
-
hasBorderRadius:
|
|
3541
|
+
hasBorderRadius: Ut,
|
|
3542
3542
|
borderRadius: el,
|
|
3543
3543
|
textAlign: ln,
|
|
3544
3544
|
inputWidth: Zl,
|
|
@@ -3574,8 +3574,8 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3574
3574
|
fontSizeLabel: _n,
|
|
3575
3575
|
fontSizeLabelActive: zn,
|
|
3576
3576
|
fontWeightLabel: Wn,
|
|
3577
|
-
lightTextColorLabel:
|
|
3578
|
-
darkTextColorLabel:
|
|
3577
|
+
lightTextColorLabel: Pn,
|
|
3578
|
+
darkTextColorLabel: En,
|
|
3579
3579
|
lightTextColorLabelActive: On,
|
|
3580
3580
|
darkTextColorLabelActive: Hn,
|
|
3581
3581
|
fontFamilyFileList: qn,
|
|
@@ -3687,7 +3687,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3687
3687
|
default:
|
|
3688
3688
|
return "component__theme--light";
|
|
3689
3689
|
}
|
|
3690
|
-
}), h = a(() => O.value.inputReadonly ? "component__input--read-only" : ""), x = a(() => O.value.inputUppercase ? "component__input--uppercase" : ""), N = a(() => wt.value ? wt.value : `${H.value}-name-label`), j = a(() => kt.value ? nt.value ? Ve.value : "" : Ve.value), te = a(() => nt.value || ee.value.length > 0), ve = a(() => "6px 10px"), Ke = a(() => !!(xt.value && ea.value)), ct = a(() => !1), ft = a(() => !!(
|
|
3690
|
+
}), h = a(() => O.value.inputReadonly ? "component__input--read-only" : ""), x = a(() => O.value.inputUppercase ? "component__input--uppercase" : ""), N = a(() => wt.value ? wt.value : `${H.value}-name-label`), j = a(() => kt.value ? nt.value ? Ve.value : "" : Ve.value), te = a(() => nt.value || ee.value.length > 0), ve = a(() => "6px 10px"), Ke = a(() => !!(xt.value && ea.value)), ct = a(() => !1), ft = a(() => !!(Ea.value && ee.value.length > 0)), At = a(() => {
|
|
3691
3691
|
const r = {};
|
|
3692
3692
|
B.value && Object.keys(B.value).forEach((G) => r[`aria-${G}`] = B.value[G]);
|
|
3693
3693
|
const z = {
|
|
@@ -3789,7 +3789,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3789
3789
|
}), bl = a(() => O.value.textClearButtonPaddingHover), yl = a(() => O.value.textClearButtonColorHover), ml = a(() => O.value.textClearButtonBackgroundHover), Za = (r) => {
|
|
3790
3790
|
g("clicked", r), Tl();
|
|
3791
3791
|
}, Xa = ({ emitEvent: r = !0 } = {}) => {
|
|
3792
|
-
|
|
3792
|
+
qt.value = [], r && g("validation-errors", []);
|
|
3793
3793
|
}, hl = (r) => {
|
|
3794
3794
|
if (!r || r <= 0)
|
|
3795
3795
|
return "0 B";
|
|
@@ -3800,10 +3800,10 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3800
3800
|
}, Cl = () => {
|
|
3801
3801
|
!_t.value && ee.value.length === 0 || (nt.value = !0);
|
|
3802
3802
|
}, xl = () => {
|
|
3803
|
-
var z, we, G, Fe, Je,
|
|
3803
|
+
var z, we, G, Fe, Je, Ut;
|
|
3804
3804
|
ra.value++, _t.value = !1;
|
|
3805
3805
|
const r = ((we = (z = Vt.value) == null ? void 0 : z.files) == null ? void 0 : we.length) || 0;
|
|
3806
|
-
nt.value = ee.value.length > 0 || r > 0, Ue.value && ee.value.length === 0 && r === 0 && ((Fe = (G = Vt.value) == null ? void 0 : G.blur) == null || Fe.call(G), (
|
|
3806
|
+
nt.value = ee.value.length > 0 || r > 0, Ue.value && ee.value.length === 0 && r === 0 && ((Fe = (G = Vt.value) == null ? void 0 : G.blur) == null || Fe.call(G), (Ut = (Je = Nt.value) == null ? void 0 : Je.blur) == null || Ut.call(Je));
|
|
3807
3807
|
}, Ja = (r = "cancelled", z = 0) => {
|
|
3808
3808
|
g("file-dialog-closed", { reason: r, selectedCount: z });
|
|
3809
3809
|
}, Bl = () => {
|
|
@@ -3827,12 +3827,12 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3827
3827
|
ra.value++, _t.value = !1, Xa({ emitEvent: !1 });
|
|
3828
3828
|
const z = Array.from(r.target.files || []), we = z.length, G = /* @__PURE__ */ new Set(), Fe = [];
|
|
3829
3829
|
for (const Je of z) {
|
|
3830
|
-
const
|
|
3830
|
+
const Ut = await vr(Je, {
|
|
3831
3831
|
accept: Zt.value,
|
|
3832
3832
|
// Accepted file extensions
|
|
3833
|
-
allowedExtensions:
|
|
3833
|
+
allowedExtensions: jt.value,
|
|
3834
3834
|
// Allowed extensions list
|
|
3835
|
-
maxFileSizeBytes:
|
|
3835
|
+
maxFileSizeBytes: Wt.value,
|
|
3836
3836
|
// Max file size in bytes
|
|
3837
3837
|
allowDuplicates: da.value,
|
|
3838
3838
|
// Allow duplicates
|
|
@@ -3840,11 +3840,11 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3840
3840
|
// Existing files
|
|
3841
3841
|
batchKeySet: G,
|
|
3842
3842
|
// Batch key set
|
|
3843
|
-
gifWidth:
|
|
3843
|
+
gifWidth: Kt.value,
|
|
3844
3844
|
// GIF width
|
|
3845
3845
|
gifHeight: ut.value,
|
|
3846
3846
|
// GIF height
|
|
3847
|
-
videoRatio:
|
|
3847
|
+
videoRatio: Pt.value,
|
|
3848
3848
|
// Video ratio
|
|
3849
3849
|
videoMaxDuration: Ft.value,
|
|
3850
3850
|
// Video max duration
|
|
@@ -3853,9 +3853,9 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3853
3853
|
locale: ua.value
|
|
3854
3854
|
// Resolved file locale
|
|
3855
3855
|
});
|
|
3856
|
-
if (!
|
|
3857
|
-
const el = Tn(Je,
|
|
3858
|
-
|
|
3856
|
+
if (!Ut.ok) {
|
|
3857
|
+
const el = Tn(Je, Ut.error, Ut.errorType);
|
|
3858
|
+
qt.value.push(el), g("validation-error", el);
|
|
3859
3859
|
continue;
|
|
3860
3860
|
}
|
|
3861
3861
|
G.add(kn(Je)), Fe.push(Je);
|
|
@@ -3864,25 +3864,25 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3864
3864
|
if (rt.value != null) {
|
|
3865
3865
|
const Je = rt.value - ee.value.length;
|
|
3866
3866
|
if (Je <= 0) {
|
|
3867
|
-
const
|
|
3867
|
+
const Ut = ia(ua.value.maxFilesReached, {
|
|
3868
3868
|
max: rt.value
|
|
3869
|
-
}), el = Tn(null,
|
|
3870
|
-
|
|
3869
|
+
}), el = Tn(null, Ut, Pa.MAX_FILES_REACHED);
|
|
3870
|
+
qt.value.push(el), g("validation-error", el), Fe.length = 0;
|
|
3871
3871
|
} else
|
|
3872
3872
|
Fe.length > Je && Fe.splice(Je);
|
|
3873
3873
|
}
|
|
3874
3874
|
ee.value = [...ee.value, ...Fe];
|
|
3875
3875
|
} else
|
|
3876
3876
|
ee.value = Fe.length ? [Fe[0]] : [];
|
|
3877
|
-
nt.value = ee.value.length > 0, g("validation-errors", [...
|
|
3877
|
+
nt.value = ee.value.length > 0, g("validation-errors", [...qt.value]), g("changed", ee.value), g("current-value", ee.value), Ja(we > 0 ? "selected" : "cancelled", we);
|
|
3878
3878
|
}, $l = () => {
|
|
3879
3879
|
_t.value || (nt.value = ee.value.length > 0);
|
|
3880
3880
|
}, Wl = (r) => {
|
|
3881
3881
|
const z = r == null ? void 0 : r.target;
|
|
3882
3882
|
z && typeof z.matches == "function" && z.matches(":focus-visible") && (nt.value = !0);
|
|
3883
|
-
},
|
|
3883
|
+
}, Pl = () => {
|
|
3884
3884
|
$l();
|
|
3885
|
-
},
|
|
3885
|
+
}, El = (r) => {
|
|
3886
3886
|
r.stopPropagation(), !(_.value || O.value.inputReadonly) && Za(r);
|
|
3887
3887
|
}, Ol = (r) => {
|
|
3888
3888
|
_.value || O.value.inputReadonly || !w.value || (r.key === "Enter" || r.key === " ") && (r.preventDefault(), Tl());
|
|
@@ -3958,9 +3958,9 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3958
3958
|
"aria-label": o.value,
|
|
3959
3959
|
"aria-disabled": l(_) || l(Ge),
|
|
3960
3960
|
style: he([ht.value, dl.value]),
|
|
3961
|
-
onClick:
|
|
3961
|
+
onClick: El,
|
|
3962
3962
|
onFocus: Wl,
|
|
3963
|
-
onBlur:
|
|
3963
|
+
onBlur: Pl,
|
|
3964
3964
|
onKeydown: Ol
|
|
3965
3965
|
}, [
|
|
3966
3966
|
me("div", Sr, [
|
|
@@ -3992,7 +3992,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
3992
3992
|
class: "component__file-constraints",
|
|
3993
3993
|
style: he([vl.value])
|
|
3994
3994
|
}, vt(Wa.value), 5)) : le("", !0),
|
|
3995
|
-
l(
|
|
3995
|
+
l(P) && l(rt) != null && l(qe) ? (F(), M("p", {
|
|
3996
3996
|
key: 1,
|
|
3997
3997
|
class: "component__file-counter",
|
|
3998
3998
|
style: he([pl.value])
|
|
@@ -4007,12 +4007,12 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
4007
4007
|
], !0)
|
|
4008
4008
|
], 2)) : le("", !0),
|
|
4009
4009
|
ct.value ? (F(), M("div", Lr, [
|
|
4010
|
-
|
|
4010
|
+
qt.value.length ? _a(r.$slots, "file-errors", {
|
|
4011
4011
|
key: 0,
|
|
4012
|
-
errors:
|
|
4012
|
+
errors: qt.value
|
|
4013
4013
|
}, () => [
|
|
4014
4014
|
me("div", kr, [
|
|
4015
|
-
(F(!0), M(Dl, null, wl(
|
|
4015
|
+
(F(!0), M(Dl, null, wl(qt.value, (G, Fe) => (F(), M("div", {
|
|
4016
4016
|
key: Fe,
|
|
4017
4017
|
class: "component__file-error"
|
|
4018
4018
|
}, vt(G.msg), 1))), 128))
|
|
@@ -4046,7 +4046,7 @@ const pr = ["title"], gr = ["id"], br = ["for"], yr = {
|
|
|
4046
4046
|
], 16, pr)) : le("", !0);
|
|
4047
4047
|
};
|
|
4048
4048
|
}
|
|
4049
|
-
}), Fr = /* @__PURE__ */ il(wr, [["__scopeId", "data-v-
|
|
4049
|
+
}), Fr = /* @__PURE__ */ il(wr, [["__scopeId", "data-v-c2af52b7"]]);
|
|
4050
4050
|
const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
4051
4051
|
key: 0,
|
|
4052
4052
|
class: "component__label--required"
|
|
@@ -4472,7 +4472,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4472
4472
|
"2a5a3a8d": J.value,
|
|
4473
4473
|
"61182a1f": re.value,
|
|
4474
4474
|
"12b445f7": ca.value,
|
|
4475
|
-
"36c1ba88": l(
|
|
4475
|
+
"36c1ba88": l(Wt),
|
|
4476
4476
|
"3c18e808": l(sa),
|
|
4477
4477
|
"632d7424": l(gt),
|
|
4478
4478
|
"76d031d8": l(Qe),
|
|
@@ -4500,7 +4500,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4500
4500
|
ariaLabel: w,
|
|
4501
4501
|
ariaAttrs: L,
|
|
4502
4502
|
textColor: B,
|
|
4503
|
-
caretColor:
|
|
4503
|
+
caretColor: E,
|
|
4504
4504
|
selectionBgColor: $,
|
|
4505
4505
|
selectionTextColor: ae,
|
|
4506
4506
|
hasBorderRadius: Z,
|
|
@@ -4515,7 +4515,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4515
4515
|
textMessageColor: xe,
|
|
4516
4516
|
inputWidth: Oe,
|
|
4517
4517
|
inputStyle: ce,
|
|
4518
|
-
activeTextStyle:
|
|
4518
|
+
activeTextStyle: Pe,
|
|
4519
4519
|
inputReadonly: tt,
|
|
4520
4520
|
blockPaste: Re,
|
|
4521
4521
|
hasTrim: Be,
|
|
@@ -4532,16 +4532,16 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4532
4532
|
darkBgColor: gt,
|
|
4533
4533
|
darkBgColorFocus: Qe,
|
|
4534
4534
|
darkDisabledBgColor: sa,
|
|
4535
|
-
darkTextColor:
|
|
4535
|
+
darkTextColor: Wt,
|
|
4536
4536
|
textAlign: rt,
|
|
4537
|
-
showMsg:
|
|
4537
|
+
showMsg: jt,
|
|
4538
4538
|
hasMsg: da,
|
|
4539
|
-
extraContendAbsolute:
|
|
4539
|
+
extraContendAbsolute: Kt,
|
|
4540
4540
|
showLabel: ut,
|
|
4541
4541
|
labelBackground: Ft,
|
|
4542
|
-
labelPadding:
|
|
4542
|
+
labelPadding: Pt,
|
|
4543
4543
|
labelBorderRadius: Lt,
|
|
4544
|
-
labelBreakOnActive:
|
|
4544
|
+
labelBreakOnActive: P,
|
|
4545
4545
|
labelLeft: U,
|
|
4546
4546
|
inputLabelMarginActive: _e,
|
|
4547
4547
|
labelActiveTop: Me,
|
|
@@ -4561,7 +4561,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4561
4561
|
maxlength: bt,
|
|
4562
4562
|
minlength: Ct,
|
|
4563
4563
|
wrap: Rt,
|
|
4564
|
-
spellcheck:
|
|
4564
|
+
spellcheck: Yt,
|
|
4565
4565
|
autofocus: Jt,
|
|
4566
4566
|
resize: Mt,
|
|
4567
4567
|
minWidth: xt,
|
|
@@ -4572,27 +4572,27 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4572
4572
|
minRows: ue,
|
|
4573
4573
|
maxRows: fe
|
|
4574
4574
|
} = ul(g), Ce = se(""), ne = se(!1), q = a(() => {
|
|
4575
|
-
const d = k.value ? "component-disabled" : "", D = H.value !== "b" ? "inline-block" : "block",
|
|
4575
|
+
const d = k.value ? "component-disabled" : "", D = H.value !== "b" ? "inline-block" : "block", Ee = B ? B.value : "ffffff", Bt = E.value ? E.value : "", ba = $.value ? $.value : "", Ht = ae.value ? ae.value : "", Fa = Z.value ? Z.value : !1, Va = T.value !== 0 && !T.value || T.value < 0 ? 0 : T.value, $a = _.value ? _.value : "'Lato', sans-serif", oa = be.value ? be.value : "1.4em", za = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, Ea = Ae.value ? Ae.value : "'Lato', sans-serif", Oa = et.value ? et.value : "1em", Vt = $e.value !== 0 && !$e.value || $e.value < 0 ? 100 : $e.value, Nt = xe.value ? xe.value : "#f15574", nt = Oe.value ? Oe.value : 200, ee = Pe.value ? Pe.value : "normal", qt = tt.value ? tt.value : !1, ra = C.value ? C.value : !1, _t = A.value ? A.value : "light", zt = rt.value ? rt.value : "left", Zt = ce.value ? ce.value : "background", Ha = ut.value ? ut.value : !1, ua = U.value !== 0 && !U.value || U.value < 0 ? 5 : U.value, dt = Ft.value ? Ft.value : "transparent", La = _e.value !== 0 && !_e.value || _e.value < 0 ? 15 : _e.value, qa = Pt.value ? Pt.value : "1px 5px", Ua = Lt.value !== 0 && !Lt.value || Lt.value < 0 ? 0 : Lt.value, Wa = Me.value === null || Me.value === void 0 ? -13 : Me.value, O = Ue.value === null || Ue.value === void 0 ? 5 : Ue.value, u = $t.value === null || $t.value === void 0 ? 0 : $t.value, S = Ze.value === null || Ze.value === void 0 ? 0 : Ze.value, Te = ze.value ? ze.value : "'Lato', sans-serif", Tt = V.value ? V.value : "1em", ht = R.value ? R.value : "0.8em", ya = Se.value ? Se.value : 400, Ra = We.value ? We.value : "#ffffff", Ka = St.value ? St.value : "#000000", Ya = Le.value ? Le.value : "#ffffff", Ma = at.value ? at.value : "#000000", Ga = lt.value && lt.value > 0 ? lt.value : 2, ot = it.value && it.value > 0 ? it.value : 20, Qa = bt.value !== null && bt.value >= 0 ? bt.value : null, Xt = Ct.value !== null && Ct.value >= 0 ? Ct.value : null, t = Rt.value && ["soft", "hard", "off"].includes(Rt.value) ? Rt.value : "soft", n = Yt.value !== void 0 ? Yt.value : "default", i = Jt.value !== void 0 ? Jt.value : !1, s = Mt.value && ["none", "both", "vertical", "horizontal"].includes(Mt.value) ? Mt.value : "vertical", f = xt.value ? xt.value : "auto", c = ea.value ? ea.value : "auto", h = yt.value ? yt.value : "auto", x = je.value ? je.value : "auto", N = I.value !== void 0 ? I.value : !1, j = ue.value !== null && ue.value > 0 ? ue.value : null, te = fe.value !== null && fe.value > 0 ? fe.value : null;
|
|
4576
4576
|
return {
|
|
4577
4577
|
disabled: d,
|
|
4578
4578
|
display: D,
|
|
4579
4579
|
font: $a,
|
|
4580
4580
|
fontSize: oa,
|
|
4581
4581
|
fontWeight: za,
|
|
4582
|
-
fontFamilyMsg:
|
|
4582
|
+
fontFamilyMsg: Ea,
|
|
4583
4583
|
fontSizeMsg: Oa,
|
|
4584
4584
|
fontWeightMsg: Vt,
|
|
4585
4585
|
textMessageColor: Nt,
|
|
4586
|
-
textColor:
|
|
4586
|
+
textColor: Ee,
|
|
4587
4587
|
caretColor: Bt,
|
|
4588
4588
|
selectionBgColor: ba,
|
|
4589
|
-
selectionTextColor:
|
|
4589
|
+
selectionTextColor: Ht,
|
|
4590
4590
|
hasBorderRadius: Fa,
|
|
4591
4591
|
borderRadius: Va,
|
|
4592
|
-
textAlign:
|
|
4592
|
+
textAlign: zt,
|
|
4593
4593
|
inputWidth: nt,
|
|
4594
4594
|
activeTextStyle: ee,
|
|
4595
|
-
inputReadonly:
|
|
4595
|
+
inputReadonly: qt,
|
|
4596
4596
|
inputUppercase: ra,
|
|
4597
4597
|
theme: _t,
|
|
4598
4598
|
inputStyle: Zt,
|
|
@@ -4696,9 +4696,9 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4696
4696
|
default:
|
|
4697
4697
|
return "component__theme--light";
|
|
4698
4698
|
}
|
|
4699
|
-
}), va = a(() => q.value.inputReadonly ? "component__input--read-only" : ""), Y = a(() => q.value.inputUppercase ? "component__input--uppercase" : ""), la = a(() => He.value ? He.value : `${W.value}-name-label`),
|
|
4699
|
+
}), va = a(() => q.value.inputReadonly ? "component__input--read-only" : ""), Y = a(() => q.value.inputUppercase ? "component__input--uppercase" : ""), la = a(() => He.value ? He.value : `${W.value}-name-label`), Gt = a(() => ut.value ? ne.value ? K.value : "" : K.value), na = a(() => ne.value || Ce.value && Ce.value.trim().length > 0);
|
|
4700
4700
|
a(() => ne.value ? "component__input--active" : "component__input--no-active");
|
|
4701
|
-
const ha = a(() => "6px 10px"),
|
|
4701
|
+
const ha = a(() => "6px 10px"), Qt = a(() => !!(jt.value && da.value)), Sa = a(() => {
|
|
4702
4702
|
const d = {};
|
|
4703
4703
|
L.value && Object.keys(L.value).forEach((Bt) => d[`aria-${Bt}`] = L.value[Bt]);
|
|
4704
4704
|
const D = {
|
|
@@ -4707,15 +4707,15 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4707
4707
|
...d
|
|
4708
4708
|
};
|
|
4709
4709
|
return Object.fromEntries(
|
|
4710
|
-
Object.entries(D).filter(([
|
|
4710
|
+
Object.entries(D).filter(([Ee, Bt]) => Bt != null)
|
|
4711
4711
|
);
|
|
4712
4712
|
}), Ca = a(() => {
|
|
4713
|
-
const d = q.value, D = na.value,
|
|
4713
|
+
const d = q.value, D = na.value, Ee = D ? d.lightTextColorLabelActive : d.lightTextColorLabel, Bt = D ? d.darkTextColorLabelActive : d.darkTextColorLabel;
|
|
4714
4714
|
return {
|
|
4715
4715
|
fontFamily: d.fontFamilyLabel,
|
|
4716
4716
|
fontSize: D ? d.fontSizeLabelActive : d.fontSizeLabel,
|
|
4717
4717
|
fontWeight: d.fontWeightLabel,
|
|
4718
|
-
color: d.theme === "dark" ? Bt :
|
|
4718
|
+
color: d.theme === "dark" ? Bt : Ee,
|
|
4719
4719
|
top: D ? `${d.labelActiveTop}px` : "50%",
|
|
4720
4720
|
transform: D ? "translateY(0)" : "translateY(-50%)",
|
|
4721
4721
|
left: D ? `${d.labelActiveLeft}px` : `${d.labelLeft}px`,
|
|
@@ -4726,12 +4726,12 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4726
4726
|
borderRadius: D ? `${d.labelBorderRadius}rem` : "0",
|
|
4727
4727
|
// Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
|
|
4728
4728
|
...D ? {
|
|
4729
|
-
whiteSpace:
|
|
4730
|
-
wordWrap:
|
|
4731
|
-
overflowWrap:
|
|
4729
|
+
whiteSpace: P.value ? "nowrap" : "normal",
|
|
4730
|
+
wordWrap: P.value ? "normal" : "break-word",
|
|
4731
|
+
overflowWrap: P.value ? "normal" : "break-word",
|
|
4732
4732
|
maxWidth: "100%",
|
|
4733
|
-
textOverflow:
|
|
4734
|
-
overflow:
|
|
4733
|
+
textOverflow: P.value ? "ellipsis" : "clip",
|
|
4734
|
+
overflow: P.value ? "hidden" : "visible"
|
|
4735
4735
|
} : {}
|
|
4736
4736
|
};
|
|
4737
4737
|
});
|
|
@@ -4777,11 +4777,11 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4777
4777
|
Ce.value = Ye.value;
|
|
4778
4778
|
}, ga = (d) => {
|
|
4779
4779
|
m("clicked", d);
|
|
4780
|
-
},
|
|
4780
|
+
}, Ot = () => {
|
|
4781
4781
|
k.value || q.value.inputReadonly || !de.value || m("entered", Ce.value);
|
|
4782
4782
|
}, p = async (d) => {
|
|
4783
|
-
var
|
|
4784
|
-
const D = ((
|
|
4783
|
+
var Ee;
|
|
4784
|
+
const D = ((Ee = d.clipboardData) == null ? void 0 : Ee.getData("text")) || "";
|
|
4785
4785
|
m("paste", D), Re.value && d.preventDefault();
|
|
4786
4786
|
}, b = () => {
|
|
4787
4787
|
let d = Ce.value;
|
|
@@ -4806,7 +4806,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4806
4806
|
id: l(W),
|
|
4807
4807
|
class: Ne(["nb-reset", "component", fa.value, va.value, It.value]),
|
|
4808
4808
|
style: he([mt.value, st.value, ye.value]),
|
|
4809
|
-
onClick: D[4] || (D[4] = (
|
|
4809
|
+
onClick: D[4] || (D[4] = (Ee) => ga(Ee))
|
|
4810
4810
|
}, [
|
|
4811
4811
|
l(ut) ? (F(), M("label", {
|
|
4812
4812
|
key: 0,
|
|
@@ -4818,7 +4818,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4818
4818
|
e.required ? (F(), M("span", Ir, "*")) : le("", !0)
|
|
4819
4819
|
], 12, Mr)) : le("", !0),
|
|
4820
4820
|
ll(me("textarea", al({
|
|
4821
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
4821
|
+
"onUpdate:modelValue": D[0] || (D[0] = (Ee) => Ce.value = Ee),
|
|
4822
4822
|
id: la.value,
|
|
4823
4823
|
name: la.value
|
|
4824
4824
|
}, Ta.value, {
|
|
@@ -4826,7 +4826,7 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4826
4826
|
Y.value,
|
|
4827
4827
|
Xe.value
|
|
4828
4828
|
]],
|
|
4829
|
-
placeholder:
|
|
4829
|
+
placeholder: Gt.value,
|
|
4830
4830
|
disabled: l(k) || l(tt),
|
|
4831
4831
|
required: e.required,
|
|
4832
4832
|
readonly: l(tt),
|
|
@@ -4834,22 +4834,22 @@ const $r = ["title"], Rr = ["id"], Mr = ["for"], Ir = {
|
|
|
4834
4834
|
tabindex: l(k) || l(tt) ? -1 : l(Ge),
|
|
4835
4835
|
role: "textbox",
|
|
4836
4836
|
style: [ye.value, Aa.value, Da.value, wa.value, xa.value, Ba.value, pe.value],
|
|
4837
|
-
onFocus: D[1] || (D[1] = (
|
|
4838
|
-
onBlur: D[2] || (D[2] = (
|
|
4837
|
+
onFocus: D[1] || (D[1] = (Ee) => ne.value = !0),
|
|
4838
|
+
onBlur: D[2] || (D[2] = (Ee) => ne.value = !1),
|
|
4839
4839
|
onInput: b,
|
|
4840
|
-
onKeydown: D[3] || (D[3] = ja((
|
|
4840
|
+
onKeydown: D[3] || (D[3] = ja((Ee) => !l(k) && l(de) && Ot(), ["enter"])),
|
|
4841
4841
|
onPaste: p
|
|
4842
4842
|
}), null, 16, Nr), [
|
|
4843
4843
|
[Ln, Ce.value]
|
|
4844
4844
|
])
|
|
4845
4845
|
], 14, Rr),
|
|
4846
|
-
|
|
4846
|
+
Qt.value ? (F(), M("div", {
|
|
4847
4847
|
key: 0,
|
|
4848
4848
|
class: Ne([
|
|
4849
4849
|
"component__message",
|
|
4850
4850
|
"component__extra-content",
|
|
4851
4851
|
e.hasCustomMsg ? "component__message--custom" : "component__message--default",
|
|
4852
|
-
{ "component__extra-content--absolute": l(
|
|
4852
|
+
{ "component__extra-content--absolute": l(Kt) }
|
|
4853
4853
|
])
|
|
4854
4854
|
}, [
|
|
4855
4855
|
_a(d.$slots, "message", {}, () => [
|
|
@@ -4919,10 +4919,10 @@ e.getDate() === v.getDate(), Il = (e) => {
|
|
|
4919
4919
|
const w = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, L = e.match(w);
|
|
4920
4920
|
if (!L)
|
|
4921
4921
|
return { hour: 0, minute: 0, second: void 0, timeString: "" };
|
|
4922
|
-
const B = parseInt(L[1], 10),
|
|
4922
|
+
const B = parseInt(L[1], 10), E = parseInt(L[2], 10), $ = L[3] ? parseInt(L[3], 10) : void 0;
|
|
4923
4923
|
return {
|
|
4924
4924
|
hour: B,
|
|
4925
|
-
minute:
|
|
4925
|
+
minute: E,
|
|
4926
4926
|
second: g ? $ : void 0,
|
|
4927
4927
|
timeString: e
|
|
4928
4928
|
};
|
|
@@ -4930,17 +4930,17 @@ e.getDate() === v.getDate(), Il = (e) => {
|
|
|
4930
4930
|
const w = e.split("T");
|
|
4931
4931
|
if (w.length !== 2)
|
|
4932
4932
|
return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
|
|
4933
|
-
const L = w[0], B = w[1],
|
|
4934
|
-
if (!
|
|
4933
|
+
const L = w[0], B = w[1], E = Il(L);
|
|
4934
|
+
if (!E)
|
|
4935
4935
|
return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
|
|
4936
4936
|
const $ = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, ae = B.match($);
|
|
4937
4937
|
if (!ae)
|
|
4938
4938
|
return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
|
|
4939
|
-
const Z = parseInt(ae[1], 10), T = parseInt(ae[2], 10), k = ae[3] ? parseInt(ae[3], 10) : void 0, _ = new Date(
|
|
4939
|
+
const Z = parseInt(ae[1], 10), T = parseInt(ae[2], 10), k = ae[3] ? parseInt(ae[3], 10) : void 0, _ = new Date(E.getTime());
|
|
4940
4940
|
_.setHours(Z, T, k || 0, 0);
|
|
4941
4941
|
const be = /* @__PURE__ */ new Date();
|
|
4942
4942
|
be.setHours(0, 0, 0, 0);
|
|
4943
|
-
const Q = new Date(
|
|
4943
|
+
const Q = new Date(E.getTime());
|
|
4944
4944
|
return Q.setHours(0, 0, 0, 0), {
|
|
4945
4945
|
date: Q,
|
|
4946
4946
|
hour: Z,
|
|
@@ -4966,14 +4966,14 @@ e.getDate() === v.getDate(), Il = (e) => {
|
|
|
4966
4966
|
const w = /^(\d{4})-W(\d{2})$/, L = e.match(w);
|
|
4967
4967
|
if (!L)
|
|
4968
4968
|
return { weekString: null, weekStartDate: null, weekEndDate: null, weekNumber: null, weekYear: null, isoString: null, isoStringLocal: null };
|
|
4969
|
-
const B = parseInt(L[1], 10),
|
|
4970
|
-
k.setDate(T.getDate() + (
|
|
4969
|
+
const B = parseInt(L[1], 10), E = parseInt(L[2], 10), Z = (8 - (new Date(B, 0, 4).getDay() || 7)) % 7, T = new Date(B, 0, 4 + Z), k = new Date(T.getTime());
|
|
4970
|
+
k.setDate(T.getDate() + (E - 1) * 7), k.setHours(0, 0, 0, 0);
|
|
4971
4971
|
const _ = new Date(k.getTime());
|
|
4972
4972
|
return _.setDate(k.getDate() + 6), _.setHours(23, 59, 59, 999), {
|
|
4973
4973
|
weekString: e,
|
|
4974
4974
|
weekStartDate: k,
|
|
4975
4975
|
weekEndDate: _,
|
|
4976
|
-
weekNumber:
|
|
4976
|
+
weekNumber: E,
|
|
4977
4977
|
weekYear: B,
|
|
4978
4978
|
isoString: Ll(k, H),
|
|
4979
4979
|
isoStringLocal: Vl(k)
|
|
@@ -4982,15 +4982,15 @@ e.getDate() === v.getDate(), Il = (e) => {
|
|
|
4982
4982
|
const w = /^(\d{4})-(\d{2})$/, L = e.match(w);
|
|
4983
4983
|
if (!L)
|
|
4984
4984
|
return { date: null, dateString: null, month: null, year: null, monthName: null, isoString: null, isoStringLocal: null };
|
|
4985
|
-
const B = parseInt(L[1], 10),
|
|
4985
|
+
const B = parseInt(L[1], 10), E = parseInt(L[2], 10) - 1, $ = new Date(B, E, 1);
|
|
4986
4986
|
$.setHours(0, 0, 0, 0);
|
|
4987
4987
|
const ae = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
4988
4988
|
return {
|
|
4989
4989
|
date: $,
|
|
4990
|
-
dateString: `${B}-${kl(
|
|
4991
|
-
month:
|
|
4990
|
+
dateString: `${B}-${kl(E + 1)}-01`,
|
|
4991
|
+
month: E,
|
|
4992
4992
|
year: B,
|
|
4993
|
-
monthName: ae[
|
|
4993
|
+
monthName: ae[E],
|
|
4994
4994
|
isoString: Ll($, H),
|
|
4995
4995
|
isoStringLocal: Vl($)
|
|
4996
4996
|
};
|
|
@@ -5027,7 +5027,7 @@ e.getDate() === v.getDate(), Il = (e) => {
|
|
|
5027
5027
|
}
|
|
5028
5028
|
return null;
|
|
5029
5029
|
};
|
|
5030
|
-
const
|
|
5030
|
+
const Pr = ["title"], Er = ["id"], Or = ["for"], Hr = {
|
|
5031
5031
|
key: 0,
|
|
5032
5032
|
class: "component__label--required"
|
|
5033
5033
|
}, qr = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Ur = /* @__PURE__ */ Object.assign({
|
|
@@ -5695,18 +5695,18 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5695
5695
|
"0cd5ff22": st.value,
|
|
5696
5696
|
"0287a55f": l(Ft),
|
|
5697
5697
|
"3df1bb1c": ha.value,
|
|
5698
|
-
"782ed244":
|
|
5698
|
+
"782ed244": Qt.value,
|
|
5699
5699
|
"827d0e48": Sa.value,
|
|
5700
5700
|
"24bebfe1": l(U),
|
|
5701
|
-
fed55526: l(
|
|
5702
|
-
"0f27d2ee": l(
|
|
5703
|
-
a481bb82:
|
|
5701
|
+
fed55526: l(P),
|
|
5702
|
+
"0f27d2ee": l(Pt),
|
|
5703
|
+
a481bb82: Gt.value,
|
|
5704
5704
|
"38f00862": l(Lt),
|
|
5705
5705
|
"5931dff6": D.value,
|
|
5706
|
-
e1cce05a:
|
|
5706
|
+
e1cce05a: Ee.value,
|
|
5707
5707
|
"36a0b72a": l(ut),
|
|
5708
5708
|
c4e778f2: l(da),
|
|
5709
|
-
"39123d91": l(
|
|
5709
|
+
"39123d91": l(Kt),
|
|
5710
5710
|
"61835ad9": l(_e),
|
|
5711
5711
|
69239446: p.value,
|
|
5712
5712
|
"19336d79": va.value,
|
|
@@ -5729,7 +5729,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5729
5729
|
hasTabIndexEnter: w,
|
|
5730
5730
|
ariaLabel: L,
|
|
5731
5731
|
ariaAttrs: B,
|
|
5732
|
-
caretColor:
|
|
5732
|
+
caretColor: E,
|
|
5733
5733
|
selectionBgColor: $,
|
|
5734
5734
|
selectionTextColor: ae,
|
|
5735
5735
|
hasBorderRadius: Z,
|
|
@@ -5744,7 +5744,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5744
5744
|
textMessageColor: xe,
|
|
5745
5745
|
inputWidth: Oe,
|
|
5746
5746
|
inputStyle: ce,
|
|
5747
|
-
activeTextStyle:
|
|
5747
|
+
activeTextStyle: Pe,
|
|
5748
5748
|
sizeMediaQuery: tt,
|
|
5749
5749
|
inputReadonly: Re,
|
|
5750
5750
|
blockPaste: Be,
|
|
@@ -5761,16 +5761,16 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5761
5761
|
theme: gt,
|
|
5762
5762
|
allowRange: Qe,
|
|
5763
5763
|
calendarZIndex: sa,
|
|
5764
|
-
calendarWidth:
|
|
5764
|
+
calendarWidth: Wt,
|
|
5765
5765
|
blockClicksWithoutEvents: rt,
|
|
5766
|
-
tabindex:
|
|
5766
|
+
tabindex: jt,
|
|
5767
5767
|
lightBgColor: da,
|
|
5768
|
-
lightBgColorFocus:
|
|
5768
|
+
lightBgColorFocus: Kt,
|
|
5769
5769
|
lightDisabledBgColor: ut,
|
|
5770
5770
|
lightTextColor: Ft,
|
|
5771
|
-
darkBgColor:
|
|
5771
|
+
darkBgColor: Pt,
|
|
5772
5772
|
darkBgColorFocus: Lt,
|
|
5773
|
-
darkDisabledBgColor:
|
|
5773
|
+
darkDisabledBgColor: P,
|
|
5774
5774
|
darkTextColor: U,
|
|
5775
5775
|
textAlign: _e,
|
|
5776
5776
|
showMsg: Me,
|
|
@@ -5790,14 +5790,14 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5790
5790
|
labelActiveRight: bt,
|
|
5791
5791
|
fontFamilyLabel: Ct,
|
|
5792
5792
|
fontSizeLabel: Rt,
|
|
5793
|
-
fontSizeLabelActive:
|
|
5793
|
+
fontSizeLabelActive: Yt,
|
|
5794
5794
|
fontWeightLabel: Jt,
|
|
5795
5795
|
lightTextColorLabel: Mt,
|
|
5796
5796
|
lightTextColorLabelActive: xt,
|
|
5797
5797
|
darkTextColorLabel: ea,
|
|
5798
5798
|
darkTextColorLabelActive: yt,
|
|
5799
5799
|
required: je
|
|
5800
|
-
} = ul(W), I = se(""), ue = se(""), fe = se(""), Ce = se(""), ne = se(!1), q = se(!1), Et = a(() => !
|
|
5800
|
+
} = ul(W), I = se(""), ue = se(""), fe = se(""), Ce = se(""), ne = se(!1), q = se(!1), Et = a(() => !Wt.value || Wt.value < 280 ? 280 : parseInt(Wt.value, 10)), ta = a(() => {
|
|
5801
5801
|
if (Ve.value !== null)
|
|
5802
5802
|
return Ve.value;
|
|
5803
5803
|
if (C.value === "time" || C.value === "datetime-local") {
|
|
@@ -5998,7 +5998,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
return s;
|
|
6000
6000
|
}, ke = se(!1), aa = se({ top: 0, left: 0 }), oe = se(null), ie = se(null), kt = se(!0), De = a(() => kt.value === !0), J = a(() => {
|
|
6001
|
-
const t = k.value ? "component-disabled" : "", n = de.value !== "b" ? "inline-block" : "block", i =
|
|
6001
|
+
const t = k.value ? "component-disabled" : "", n = de.value !== "b" ? "inline-block" : "block", i = E.value ? E.value : "", s = $.value ? $.value : "", f = ae.value ? ae.value : "", c = Z.value ? Z.value : !1, h = T.value !== 0 && !T.value || T.value < 0 ? 0 : T.value, x = _.value ? _.value : "'Lato', sans-serif", N = be.value ? be.value : "1.4em", j = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, te = Ae.value ? Ae.value : "'Lato', sans-serif", ve = et.value ? et.value : "1em", Ke = $e.value !== 0 && !$e.value || $e.value < 0 ? 100 : $e.value, ct = xe.value ? xe.value : "#f15574", ft = Oe.value ? Oe.value : 200, At = Pe.value ? Pe.value : "normal", o = "sm", y = Re.value ? Re.value : !1, X = C.value ? C.value : "date", Dt = K.value ? K.value : !1, ma = gt.value ? gt.value : "light", Ia = _e.value ? _e.value : "left", ka = ce.value ? ce.value : "background", sl = Ze.value ? Ze.value : !1, dl = Le.value !== 0 && !Le.value || Le.value < 0 ? 5 : Le.value, cl = R.value ? R.value : "transparent", fl = St.value !== 0 && !St.value || St.value < 0 ? 15 : St.value, vl = Se.value ? Se.value : "1px 5px", pl = We.value !== 0 && !We.value || We.value < 0 ? 0 : We.value, gl = at.value === null || at.value === void 0 ? -13 : at.value, bl = lt.value === null || lt.value === void 0 ? 5 : lt.value, yl = it.value === null || it.value === void 0 ? 0 : it.value, ml = bt.value === null || bt.value === void 0 ? 0 : bt.value, Za = Ct.value ? Ct.value : "'Lato', sans-serif", Xa = Rt.value ? Rt.value : "1em", hl = Yt.value ? Yt.value : "0.8em", Sl = Jt.value ? Jt.value : 400, Cl = Mt.value ? Mt.value : "#ffffff", xl = ea.value ? ea.value : "#000000", Ja = xt.value ? xt.value : "#ffffff", Bl = yt.value ? yt.value : "#000000";
|
|
6002
6002
|
return {
|
|
6003
6003
|
disabled: t,
|
|
6004
6004
|
display: n,
|
|
@@ -6064,10 +6064,10 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6064
6064
|
}), Xe = a(() => {
|
|
6065
6065
|
const t = J.value;
|
|
6066
6066
|
return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
|
|
6067
|
-
}), fa = a(() => J.value.font), va = a(() => J.value.fontFamilyMsg), Y = a(() => J.value.fontSizeMsg), la = a(() => J.value.fontWeightMsg),
|
|
6067
|
+
}), fa = a(() => J.value.font), va = a(() => J.value.fontFamilyMsg), Y = a(() => J.value.fontSizeMsg), la = a(() => J.value.fontWeightMsg), Gt = a(() => gt.value === "dark" ? U.value : Ft.value), na = a(() => J.value.textMessageColor), ha = a(() => {
|
|
6068
6068
|
const t = J.value;
|
|
6069
6069
|
return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
6070
|
-
}),
|
|
6070
|
+
}), Qt = a(() => {
|
|
6071
6071
|
const t = J.value;
|
|
6072
6072
|
return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
6073
6073
|
}), Sa = a(() => {
|
|
@@ -6103,7 +6103,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6103
6103
|
default:
|
|
6104
6104
|
return "component__theme--light";
|
|
6105
6105
|
}
|
|
6106
|
-
}), xa = a(() => J.value.inputReadonly ? "component__input--read-only" : ""), Ba = a(() => J.value.inputUppercase ? "component__input--uppercase" : ""), pe = a(() => Ye.value ? Ye.value : `${H.value}-name-label`), pa = a(() => ""), ga = a(() => ne.value || ue.value && ue.value.trim().length > 0),
|
|
6106
|
+
}), xa = a(() => J.value.inputReadonly ? "component__input--read-only" : ""), Ba = a(() => J.value.inputUppercase ? "component__input--uppercase" : ""), pe = a(() => Ye.value ? Ye.value : `${H.value}-name-label`), pa = a(() => ""), ga = a(() => ne.value || ue.value && ue.value.trim().length > 0), Ot = a(() => !ue.value || ue.value.trim().length === 0 ? "component__input--empty" : "");
|
|
6107
6107
|
a(() => ne.value ? "component__input--active" : "component__input--no-active");
|
|
6108
6108
|
const p = a(() => "6px 10px"), b = a(() => !!(Me.value && Ue.value)), d = a(() => {
|
|
6109
6109
|
const t = {};
|
|
@@ -6117,10 +6117,10 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6117
6117
|
Object.entries(n).filter(([i, s]) => s != null)
|
|
6118
6118
|
);
|
|
6119
6119
|
}), D = a(() => {
|
|
6120
|
-
const t = gt.value === "dark" ?
|
|
6120
|
+
const t = gt.value === "dark" ? Pt.value : da.value, n = gt.value === "dark" ? U.value : Ft.value;
|
|
6121
6121
|
return t === "transparent" || t === "#transparent" || !t ? n : t;
|
|
6122
|
-
}),
|
|
6123
|
-
const t = gt.value === "dark" ? Lt.value :
|
|
6122
|
+
}), Ee = a(() => {
|
|
6123
|
+
const t = gt.value === "dark" ? Lt.value : Kt.value, n = gt.value === "dark" ? U.value : Ft.value;
|
|
6124
6124
|
return t === "transparent" || t === "#transparent" || !t ? n : t;
|
|
6125
6125
|
}), Bt = a(() => {
|
|
6126
6126
|
const t = J.value, n = ga.value, i = n ? t.lightTextColorLabelActive : t.lightTextColorLabel, s = n ? t.darkTextColorLabelActive : t.darkTextColorLabel;
|
|
@@ -6155,7 +6155,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6155
6155
|
});
|
|
6156
6156
|
const ba = () => {
|
|
6157
6157
|
I.value = A.value, Ce.value = C.value;
|
|
6158
|
-
},
|
|
6158
|
+
}, Ht = (t) => {
|
|
6159
6159
|
g("clicked", t);
|
|
6160
6160
|
}, Fa = (t) => {
|
|
6161
6161
|
t.stopPropagation(), !(k.value || J.value.inputReadonly) && oe.value && (oe.value.focus(), De.value && (ke.value = !1, requestAnimationFrame(() => {
|
|
@@ -6180,7 +6180,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6180
6180
|
top: aa.value.top,
|
|
6181
6181
|
left: aa.value.left,
|
|
6182
6182
|
zIndex: sa.value
|
|
6183
|
-
})),
|
|
6183
|
+
})), Ea = () => {
|
|
6184
6184
|
ne.value = !0, g("focused"), De.value && (ke.value = !1, requestAnimationFrame(() => {
|
|
6185
6185
|
oa(), ke.value = !0;
|
|
6186
6186
|
}));
|
|
@@ -6242,7 +6242,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6242
6242
|
return n.setHours(0, 0, 0, 0), n;
|
|
6243
6243
|
}
|
|
6244
6244
|
return null;
|
|
6245
|
-
},
|
|
6245
|
+
}, qt = (t) => {
|
|
6246
6246
|
if (!t)
|
|
6247
6247
|
return null;
|
|
6248
6248
|
if (t instanceof Date && !isNaN(t.getTime())) {
|
|
@@ -6294,20 +6294,20 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
return !1;
|
|
6296
6296
|
}, _t = (t, n, i = 0) => {
|
|
6297
|
-
const s = t * 3600 + n * 60 + i, f =
|
|
6297
|
+
const s = t * 3600 + n * 60 + i, f = qt(Ge.value);
|
|
6298
6298
|
if (f) {
|
|
6299
6299
|
const h = f.hour * 3600 + f.minute * 60 + (f.second || 0);
|
|
6300
6300
|
if (s < h)
|
|
6301
6301
|
return !0;
|
|
6302
6302
|
}
|
|
6303
|
-
const c =
|
|
6303
|
+
const c = qt(pt.value);
|
|
6304
6304
|
if (c) {
|
|
6305
6305
|
const h = c.hour * 3600 + c.minute * 60 + (c.second || 0);
|
|
6306
6306
|
if (s > h)
|
|
6307
6307
|
return !0;
|
|
6308
6308
|
}
|
|
6309
6309
|
return !1;
|
|
6310
|
-
},
|
|
6310
|
+
}, zt = (t, n) => {
|
|
6311
6311
|
if (!t || t === "")
|
|
6312
6312
|
return !0;
|
|
6313
6313
|
if (n === "date") {
|
|
@@ -6326,7 +6326,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6326
6326
|
if (i.length !== 2)
|
|
6327
6327
|
return !1;
|
|
6328
6328
|
const s = i[0], f = i[1];
|
|
6329
|
-
return
|
|
6329
|
+
return zt(s, "date") && zt(f, "time");
|
|
6330
6330
|
} else if (n === "month") {
|
|
6331
6331
|
if (!/^\d{4}-\d{2}$/.test(t))
|
|
6332
6332
|
return !1;
|
|
@@ -6355,13 +6355,13 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6355
6355
|
g("valid", !0);
|
|
6356
6356
|
return;
|
|
6357
6357
|
}
|
|
6358
|
-
if (!
|
|
6358
|
+
if (!zt(i, C.value)) {
|
|
6359
6359
|
g("valid", !1);
|
|
6360
6360
|
return;
|
|
6361
6361
|
}
|
|
6362
6362
|
t = !ra(i);
|
|
6363
6363
|
} else if (C.value === "time") {
|
|
6364
|
-
if (!
|
|
6364
|
+
if (!zt(A.value, C.value)) {
|
|
6365
6365
|
g("valid", !1);
|
|
6366
6366
|
return;
|
|
6367
6367
|
}
|
|
@@ -6401,13 +6401,13 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
6403
|
} else if (C.value === "month") {
|
|
6404
|
-
if (!
|
|
6404
|
+
if (!zt(A.value, C.value)) {
|
|
6405
6405
|
g("valid", !1);
|
|
6406
6406
|
return;
|
|
6407
6407
|
}
|
|
6408
6408
|
t = !ra(A.value + "-01");
|
|
6409
6409
|
} else if (C.value === "week") {
|
|
6410
|
-
if (!
|
|
6410
|
+
if (!zt(A.value, C.value)) {
|
|
6411
6411
|
g("valid", !1);
|
|
6412
6412
|
return;
|
|
6413
6413
|
}
|
|
@@ -6760,7 +6760,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6760
6760
|
id: l(H),
|
|
6761
6761
|
class: Ne(["nb-reset", "component", Da.value, wa.value, xa.value, Ta.value]),
|
|
6762
6762
|
style: he([It.value, Ca.value, Xe.value]),
|
|
6763
|
-
onClick: n[2] || (n[2] = (i) =>
|
|
6763
|
+
onClick: n[2] || (n[2] = (i) => Ht(i))
|
|
6764
6764
|
}, [
|
|
6765
6765
|
l(Ze) ? (F(), M("label", {
|
|
6766
6766
|
key: 0,
|
|
@@ -6787,7 +6787,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6787
6787
|
class: Ne(["component__input", [
|
|
6788
6788
|
Ba.value,
|
|
6789
6789
|
Aa.value,
|
|
6790
|
-
|
|
6790
|
+
Ot.value
|
|
6791
6791
|
]]),
|
|
6792
6792
|
placeholder: pa.value,
|
|
6793
6793
|
disabled: l(k) || l(Re),
|
|
@@ -6797,17 +6797,17 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6797
6797
|
min: La.value,
|
|
6798
6798
|
max: qa.value,
|
|
6799
6799
|
step: De.value ? void 0 : l(wt),
|
|
6800
|
-
tabindex: l(k) || l(Re) ? -1 : l(
|
|
6800
|
+
tabindex: l(k) || l(Re) ? -1 : l(jt),
|
|
6801
6801
|
role: "input",
|
|
6802
6802
|
style: he([Xe.value]),
|
|
6803
|
-
onFocus:
|
|
6803
|
+
onFocus: Ea,
|
|
6804
6804
|
onBlur: Oa,
|
|
6805
6805
|
onClick: Vt,
|
|
6806
6806
|
onPaste: $a
|
|
6807
6807
|
}, null, 46, qr), [
|
|
6808
6808
|
[Nl, ue.value]
|
|
6809
6809
|
])
|
|
6810
|
-
], 14,
|
|
6810
|
+
], 14, Er),
|
|
6811
6811
|
b.value ? (F(), M("div", {
|
|
6812
6812
|
key: 0,
|
|
6813
6813
|
class: Ne([
|
|
@@ -6912,7 +6912,7 @@ const Er = ["title"], Pr = ["id"], Or = ["for"], Hr = {
|
|
|
6912
6912
|
}, null, 8, ["nb-id", "value", "input-type", "has-seconds", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range", "block-clicks-without-events", "font-family", "font-size", "font-weight", "primary-color", "selection-color", "event-color", "today-color", "hover-text-color", "normal-text-color", "month-year-item-bg", "month-year-item-bg-hover", "day-hover-bg", "day-hover-text-color", "time-display-text-color", "time-edit-button-bg", "time-edit-button-text-color", "time-edit-button-bg-hover", "time-edit-button-text-color-hover", "time-edit-button-font-family", "time-edit-button-font-size", "time-edit-button-padding", "time-edit-button-border-radius", "time-edit-button-font-weight", "time-edit-button-border", "time-edit-button-text", "today-button-bg", "today-button-text-color", "today-button-bg-hover", "today-button-text-color-hover", "today-button-font-family", "today-button-font-size", "today-button-padding", "today-button-border-radius", "today-button-font-weight", "today-button-border", "today-button-text", "now-button-text", "show-clear-button", "show-today-button", "clear-button-keep-current-month", "start-week-on-monday", "edit-range", "max-range-days", "min-year", "max-year", "go-to-date", "is-required", "width-full", "border-radius", "scroll-class", "events", "select-month-text", "select-year-text", "select-time-text", "time-display-label-text", "clear-button-title", "clear-button-symbol", "iso-string-timezone-format"])
|
|
6913
6913
|
], 36)) : le("", !0)
|
|
6914
6914
|
]))
|
|
6915
|
-
], 16,
|
|
6915
|
+
], 16, Pr)) : le("", !0);
|
|
6916
6916
|
}
|
|
6917
6917
|
}), jr = /* @__PURE__ */ il(Ur, [["__scopeId", "data-v-1587a51c"]]);
|
|
6918
6918
|
const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
@@ -7491,8 +7491,8 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7491
7491
|
],
|
|
7492
7492
|
setup(e, { emit: v }) {
|
|
7493
7493
|
rl((o) => ({
|
|
7494
|
-
"07150e05":
|
|
7495
|
-
"7e8f2dab":
|
|
7494
|
+
"07150e05": Ht.value,
|
|
7495
|
+
"7e8f2dab": Ee.value,
|
|
7496
7496
|
"9aed15ea": n.value,
|
|
7497
7497
|
65159123: i.value,
|
|
7498
7498
|
70177014: l(da),
|
|
@@ -7501,22 +7501,22 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7501
7501
|
"38865fb6": Nt.value,
|
|
7502
7502
|
dc3e5358: nt.value,
|
|
7503
7503
|
"7e29cd1e": l(at),
|
|
7504
|
-
d310232c: l(
|
|
7505
|
-
"17dc42fd": l(
|
|
7504
|
+
d310232c: l(P),
|
|
7505
|
+
"17dc42fd": l(Yt),
|
|
7506
7506
|
"9d2c8d94": l(Lt),
|
|
7507
7507
|
"1d23bae2": l(U),
|
|
7508
7508
|
da77ecac: ht.value,
|
|
7509
|
-
cafd595c: l(
|
|
7509
|
+
cafd595c: l(Kt),
|
|
7510
7510
|
"005654a6": l(ut),
|
|
7511
7511
|
"2495f746": l(Ft),
|
|
7512
|
-
a0ed5428: l(
|
|
7512
|
+
a0ed5428: l(Pt),
|
|
7513
7513
|
28330462: l(St),
|
|
7514
7514
|
"364668db": l(Rt),
|
|
7515
|
-
"63308c7c": l(
|
|
7515
|
+
"63308c7c": l(jt),
|
|
7516
7516
|
"6ae7aa54": l(_e),
|
|
7517
7517
|
"3e1e9fde": l(Qe),
|
|
7518
7518
|
"93e200cc": l(sa),
|
|
7519
|
-
"01d0c98c": l(
|
|
7519
|
+
"01d0c98c": l(Wt),
|
|
7520
7520
|
"2f159a40": l(rt),
|
|
7521
7521
|
a310d75c: u.value,
|
|
7522
7522
|
"6eea2f9d": Te.value,
|
|
@@ -7528,7 +7528,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7528
7528
|
"896eab7c": Fa.value,
|
|
7529
7529
|
"7faa0cfe": Va.value,
|
|
7530
7530
|
"6b521f2c": $a.value,
|
|
7531
|
-
"0bd12a44":
|
|
7531
|
+
"0bd12a44": Ea.value,
|
|
7532
7532
|
"5ab4a996": za.value,
|
|
7533
7533
|
"7b2e448a": oa.value
|
|
7534
7534
|
})), nl(() => {
|
|
@@ -7541,7 +7541,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7541
7541
|
ariaLabel: w,
|
|
7542
7542
|
ariaAttrs: L,
|
|
7543
7543
|
textColor: B,
|
|
7544
|
-
caretColor:
|
|
7544
|
+
caretColor: E,
|
|
7545
7545
|
selectionBgColor: $,
|
|
7546
7546
|
selectionTextColor: ae,
|
|
7547
7547
|
hasBorderRadius: Z,
|
|
@@ -7556,7 +7556,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7556
7556
|
fontFamilyMsg: xe,
|
|
7557
7557
|
fontSizeMsg: Oe,
|
|
7558
7558
|
fontWeightMsg: ce,
|
|
7559
|
-
textMessageColor:
|
|
7559
|
+
textMessageColor: Pe,
|
|
7560
7560
|
inputWidth: tt,
|
|
7561
7561
|
inputStyle: Re,
|
|
7562
7562
|
activeTextStyle: Be,
|
|
@@ -7573,16 +7573,16 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7573
7573
|
tabindex: gt,
|
|
7574
7574
|
lightBgColor: Qe,
|
|
7575
7575
|
lightBgColorFocus: sa,
|
|
7576
|
-
lightControlBorderColor:
|
|
7576
|
+
lightControlBorderColor: Wt,
|
|
7577
7577
|
lightControlBorderColorActive: rt,
|
|
7578
|
-
lightDisabledBgColor:
|
|
7578
|
+
lightDisabledBgColor: jt,
|
|
7579
7579
|
lightTextColor: da,
|
|
7580
|
-
darkBgColor:
|
|
7580
|
+
darkBgColor: Kt,
|
|
7581
7581
|
darkBgColorFocus: ut,
|
|
7582
7582
|
darkControlBorderColor: Ft,
|
|
7583
|
-
darkControlBorderColorActive:
|
|
7583
|
+
darkControlBorderColorActive: Pt,
|
|
7584
7584
|
darkDisabledBgColor: Lt,
|
|
7585
|
-
darkTextColor:
|
|
7585
|
+
darkTextColor: P,
|
|
7586
7586
|
darkDisabledControlBorderColor: U,
|
|
7587
7587
|
lightDisabledControlBorderColor: _e,
|
|
7588
7588
|
textAlign: Me,
|
|
@@ -7602,7 +7602,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7602
7602
|
iconLightBgColorActive: bt,
|
|
7603
7603
|
iconDarkBgColorActive: Ct,
|
|
7604
7604
|
iconLightDisabledBgColor: Rt,
|
|
7605
|
-
iconDarkDisabledBgColor:
|
|
7605
|
+
iconDarkDisabledBgColor: Yt,
|
|
7606
7606
|
iconWidth: Jt,
|
|
7607
7607
|
iconSize: Mt,
|
|
7608
7608
|
showLabel: xt,
|
|
@@ -7636,10 +7636,10 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7636
7636
|
lightSubmitButtonBgColorHover: va,
|
|
7637
7637
|
darkSubmitButtonBgColorHover: Y,
|
|
7638
7638
|
lightSubmitButtonTextColor: la,
|
|
7639
|
-
darkSubmitButtonTextColor:
|
|
7639
|
+
darkSubmitButtonTextColor: Gt,
|
|
7640
7640
|
lightSubmitButtonTextColorHover: na,
|
|
7641
7641
|
darkSubmitButtonTextColorHover: ha,
|
|
7642
|
-
submitButtonPadding:
|
|
7642
|
+
submitButtonPadding: Qt,
|
|
7643
7643
|
submitButtonBorderRadius: Sa,
|
|
7644
7644
|
submitButtonTop: Ca,
|
|
7645
7645
|
submitButtonRight: Ta,
|
|
@@ -7648,9 +7648,9 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7648
7648
|
submitButtonFontSize: wa,
|
|
7649
7649
|
submitButtonFontWeight: xa,
|
|
7650
7650
|
submitButtonIsUppercase: Ba
|
|
7651
|
-
} = ul(g), pe = se(""), pa = se(null), ga = se(""),
|
|
7652
|
-
const o = Q.value ? "component-disabled" : "", y = H.value !== "b" ? "inline-block" : "block", X = B ? B.value : "#ffffff", Dt =
|
|
7653
|
-
}, ln = J.value ? J.value : 0, nn = Xe.value ? Xe.value : "#1d4ed8", on = fa.value ? fa.value : "#38bdf8", rn = la.value ? la.value : "#f8fafc", un =
|
|
7651
|
+
} = ul(g), pe = se(""), pa = se(null), ga = se(""), Ot = se(!1), p = Vo(null), b = a(() => {
|
|
7652
|
+
const o = Q.value ? "component-disabled" : "", y = H.value !== "b" ? "inline-block" : "block", X = B ? B.value : "#ffffff", Dt = E.value ? E.value : "", ma = $.value ? $.value : "", Ia = ae.value ? ae.value : "", ka = Z.value ? Z.value : !1, sl = be.value !== 0 && !be.value || be.value < 0 ? 0 : be.value, dl = Ae.value ? Ae.value : "'Lato', sans-serif", cl = et.value ? et.value : null, fl = $e.value !== 0 && !$e.value || $e.value < 0 ? 100 : $e.value, vl = xe.value ? xe.value : "'Lato', sans-serif", pl = Oe.value ? Oe.value : "1em", gl = ce.value !== 0 && !ce.value || ce.value < 0 ? 100 : ce.value, bl = Pe.value ? Pe.value : "#f15574", yl = tt.value ? tt.value : 200, ml = Be.value ? Be.value : "normal", Za = C.value ? C.value : "xs", Xa = He.value ? He.value : !1, hl = "text", Sl = A.value ? A.value : !1, Cl = qe.value ? qe.value : "light", xl = Me.value ? Me.value : "left", Ja = Re.value ? Re.value : "background", Bl = pt.value ? pt.value : "6px 10px", Tl = R.value ? R.value : "5px 10px", zl = We.value ? We.value : "0", $l = Se.value ? Se.value : 10, Wl = St.value ? St.value : "#f8fafc", Pl = at.value ? at.value : "#f1f5f9", El = lt.value ? lt.value : "transparent", Ol = it.value ? it.value : "transparent", Hl = Le.value !== 0 && !Le.value || Le.value < 0 ? 0 : Le.value, Rl = bt.value ? bt.value : "transparent", Ml = Ct.value ? Ct.value : "transparent", r = Jt.value ? Jt.value : 32, z = Mt.value ? Mt.value : 1, we = xt.value ? xt.value : !1, G = fe.value !== 0 && !fe.value || fe.value < 0 ? 5 : fe.value, Fe = je.value ? je.value : "transparent", Je = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 15 : Ce.value, Ut = I.value ? I.value : "1px 5px", el = ue.value !== 0 && !ue.value || ue.value < 0 ? 0 : ue.value, ql = ne.value === null || ne.value === void 0 ? -13 : ne.value, Ul = q.value === null || q.value === void 0 ? 5 : q.value, jl = Et.value === null || Et.value === void 0 ? 0 : Et.value, Kl = ta.value === null || ta.value === void 0 ? 0 : ta.value, Yl = Ie.value ? Ie.value : "'Lato', sans-serif", Gl = mt.value ? mt.value : "1em", Ql = ye.value ? ye.value : "0.8em", Zl = ke.value ? ke.value : 400, Xl = aa.value ? aa.value : "#333333", Jl = ie.value ? ie.value : "#ffffff", en = oe.value ? oe.value : "#333333", tn = kt.value ? kt.value : "#ffffff", an = De.value ? De.value : async () => {
|
|
7653
|
+
}, ln = J.value ? J.value : 0, nn = Xe.value ? Xe.value : "#1d4ed8", on = fa.value ? fa.value : "#38bdf8", rn = la.value ? la.value : "#f8fafc", un = Gt.value ? Gt.value : "#0f172a", sn = va.value ? va.value : "#1e40af", dn = Y.value ? Y.value : "#0ea5e9", cn = na.value ? na.value : "#ffffff", fn = ha.value ? ha.value : "#020617", vn = k.value ? k.value : "#2563eb", pn = _.value ? _.value : "#7dd3fc", gn = Qt.value ? Qt.value : "5px 10px", bn = Sa.value ? Sa.value : "0px", yn = Ca.value ? Ca.value : "0", mn = Ta.value ? Ta.value : "0", hn = Aa.value ? Aa.value : "0", Sn = Da.value ? Da.value : "'Lato', sans-serif", Cn = wa.value ? wa.value : "1.1em", xn = xa.value ? xa.value : 700, Bn = Ba.value ? Ba.value : !0;
|
|
7654
7654
|
return {
|
|
7655
7655
|
disabled: o,
|
|
7656
7656
|
display: y,
|
|
@@ -7681,8 +7681,8 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7681
7681
|
iconMargin: zl,
|
|
7682
7682
|
iconPaddingInput: $l,
|
|
7683
7683
|
iconLightTextColor: Wl,
|
|
7684
|
-
iconDarkTextColor:
|
|
7685
|
-
iconLightBgColor:
|
|
7684
|
+
iconDarkTextColor: Pl,
|
|
7685
|
+
iconLightBgColor: El,
|
|
7686
7686
|
iconDarkBgColor: Ol,
|
|
7687
7687
|
iconBorderRadius: Hl,
|
|
7688
7688
|
iconLightBgColorActive: Rl,
|
|
@@ -7691,7 +7691,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7691
7691
|
iconSize: z,
|
|
7692
7692
|
showLabel: we,
|
|
7693
7693
|
labelBackground: Fe,
|
|
7694
|
-
labelPadding:
|
|
7694
|
+
labelPadding: Ut,
|
|
7695
7695
|
labelBorderRadius: el,
|
|
7696
7696
|
labelLeft: G,
|
|
7697
7697
|
inputLabelMarginActive: Je,
|
|
@@ -7737,7 +7737,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7737
7737
|
// overflow do label fica no .component (componentStyle): se hidden for aqui, corta
|
|
7738
7738
|
// .component__message com position fora do fluxo (irmão do .component dentro do wrapper)
|
|
7739
7739
|
overflow: "visible"
|
|
7740
|
-
})),
|
|
7740
|
+
})), Ee = a(() => {
|
|
7741
7741
|
const o = b.value;
|
|
7742
7742
|
if (o.fontSize)
|
|
7743
7743
|
return o.fontSize;
|
|
@@ -7764,7 +7764,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7764
7764
|
}), ba = a(() => {
|
|
7765
7765
|
const o = b.value;
|
|
7766
7766
|
return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
|
|
7767
|
-
}),
|
|
7767
|
+
}), Ht = a(() => b.value.font), Fa = a(() => b.value.fontFamilyMsg), Va = a(() => b.value.fontSizeMsg), $a = a(() => b.value.fontWeightMsg), oa = a(() => b.value.textColor), za = a(() => b.value.theme === "dark" ? Lt.value : jt.value), Ea = a(() => b.value.textMessageColor), Oa = a(() => {
|
|
7768
7768
|
const o = b.value;
|
|
7769
7769
|
return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
7770
7770
|
}), Vt = a(() => {
|
|
@@ -7781,7 +7781,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7781
7781
|
return o.display === "block" ? { width: "100%" } : {
|
|
7782
7782
|
width: `${o.inputWidth}px`
|
|
7783
7783
|
};
|
|
7784
|
-
}),
|
|
7784
|
+
}), qt = a(() => {
|
|
7785
7785
|
switch (Re.value) {
|
|
7786
7786
|
case "line":
|
|
7787
7787
|
return "component__input--line";
|
|
@@ -7810,16 +7810,16 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7810
7810
|
default:
|
|
7811
7811
|
return "";
|
|
7812
7812
|
}
|
|
7813
|
-
}),
|
|
7813
|
+
}), zt = a(() => {
|
|
7814
7814
|
switch (b.value.theme) {
|
|
7815
7815
|
case "dark":
|
|
7816
7816
|
return "component__theme--dark";
|
|
7817
7817
|
default:
|
|
7818
7818
|
return "component__theme--light";
|
|
7819
7819
|
}
|
|
7820
|
-
}), Zt = a(() => b.value.inputReadonly ? "component__input--read-only" : ""), Ha = a(() => b.value.inputUppercase ? "component__input--uppercase" : ""), ua = a(() => Ge.value ? Ge.value : `${W.value}-name-label`), dt = a(() => xt.value ?
|
|
7820
|
+
}), Zt = a(() => b.value.inputReadonly ? "component__input--read-only" : ""), Ha = a(() => b.value.inputUppercase ? "component__input--uppercase" : ""), ua = a(() => Ge.value ? Ge.value : `${W.value}-name-label`), dt = a(() => xt.value ? Ot.value ? wt.value : "" : wt.value), La = a(() => {
|
|
7821
7821
|
const o = pe.value;
|
|
7822
|
-
return
|
|
7822
|
+
return Ot.value || o != null && String(o).trim().length > 0;
|
|
7823
7823
|
}), qa = a(() => b.value.inputPadding), Ua = a(() => !!(Ue.value && $t.value)), Wa = a(() => {
|
|
7824
7824
|
const o = {};
|
|
7825
7825
|
L.value && Object.keys(L.value).forEach((Dt) => o[`aria-${Dt}`] = L.value[Dt]);
|
|
@@ -7990,7 +7990,7 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
7990
7990
|
return;
|
|
7991
7991
|
const X = (ka) => Ye.value && typeof ka == "string" ? ka.trim() : ka, Dt = X(y), ma = X(o), Ia = (ka) => ka == null || ka === "";
|
|
7992
7992
|
!Ia(Dt) && Ia(ma) && m("cleared");
|
|
7993
|
-
}), ge(
|
|
7993
|
+
}), ge(Ot, (o) => {
|
|
7994
7994
|
m(o ? "focused" : "blurred");
|
|
7995
7995
|
}), ge(pe, (o) => {
|
|
7996
7996
|
Ye.value && typeof o == "string" && (o = o.trim()), m("current-value", c(o));
|
|
@@ -8009,11 +8009,11 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
8009
8009
|
"nb-reset",
|
|
8010
8010
|
"component",
|
|
8011
8011
|
_t.value,
|
|
8012
|
-
|
|
8012
|
+
zt.value,
|
|
8013
8013
|
Zt.value,
|
|
8014
|
-
|
|
8014
|
+
qt.value,
|
|
8015
8015
|
{ "component--focus-border-enabled": l(T) },
|
|
8016
|
-
{ "component--focus-border-active": l(T) &&
|
|
8016
|
+
{ "component--focus-border-active": l(T) && Ot.value }
|
|
8017
8017
|
]),
|
|
8018
8018
|
style: he([Bt.value, ee.value, ba.value]),
|
|
8019
8019
|
onClick: y[9] || (y[9] = (X) => h(X))
|
|
@@ -8049,8 +8049,8 @@ const Kr = ["title"], Yr = ["id"], Gr = ["for"], Qr = {
|
|
|
8049
8049
|
tabindex: l(Q) || l(He) ? -1 : l(gt),
|
|
8050
8050
|
role: "input",
|
|
8051
8051
|
style: he([ba.value, Ra.value]),
|
|
8052
|
-
onFocus: y[1] || (y[1] = (X) =>
|
|
8053
|
-
onBlur: y[2] || (y[2] = (X) =>
|
|
8052
|
+
onFocus: y[1] || (y[1] = (X) => Ot.value = !0),
|
|
8053
|
+
onBlur: y[2] || (y[2] = (X) => Ot.value = !1),
|
|
8054
8054
|
onBeforeinput: y[3] || (y[3] = (X) => ct(X)),
|
|
8055
8055
|
onInput: y[4] || (y[4] = (X) => ct(X)),
|
|
8056
8056
|
onKeyup: y[5] || (y[5] = (X) => ct(X)),
|