@vlalg-nimbus/nb-inputs 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nb-inputs.js +980 -987
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-inputs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useCssVars as Na, onMounted as La, ref as
|
|
1
|
+
import { useCssVars as Na, onMounted as La, ref as Y, toRefs as Fa, computed as a, watch as G, openBlock as W, createElementBlock as P, normalizeClass as Ee, normalizeStyle as Be, createElementVNode as ve, mergeProps as Aa, Fragment as dl, renderList as cl, unref as u, withDirectives as za, vModelRadio as bl, withKeys as la, withModifiers as Ma, toDisplayString as Dt, createCommentVNode as oe, vModelCheckbox as ml, onUnmounted as Pa, createTextVNode as qt, renderSlot as Ba, vModelDynamic as fl, vModelText as vl, defineAsyncComponent as hl, nextTick as aa, createBlock as Sl, Teleport as xl, createVNode as Cl } from "vue";
|
|
2
2
|
const Wa = (e, S) => {
|
|
3
3
|
const C = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
C[
|
|
4
|
+
for (const [B, _] of S)
|
|
5
|
+
C[B] = _;
|
|
6
6
|
return C;
|
|
7
7
|
}, Vl = ["id"], Tl = ["id", "disabled", "value", "name"], kl = ["for", "tabindex"], Bl = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbInputRadio",
|
|
@@ -58,8 +58,8 @@ const Wa = (e, S) => {
|
|
|
58
58
|
return !1;
|
|
59
59
|
let S = !1;
|
|
60
60
|
for (const C of e) {
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const B = Object.keys(C);
|
|
62
|
+
B.length !== 2 && (S = !0), B.every((Le) => ["value", "text"].includes(Le)) || (S = !0);
|
|
63
63
|
}
|
|
64
64
|
if (!S)
|
|
65
65
|
return e;
|
|
@@ -154,137 +154,137 @@ const Wa = (e, S) => {
|
|
|
154
154
|
setup(e, { emit: S }) {
|
|
155
155
|
Na((x) => ({
|
|
156
156
|
"0fd48d29": _e.value,
|
|
157
|
-
"50426c15":
|
|
158
|
-
"5fa7628c":
|
|
159
|
-
"5949c3d2":
|
|
160
|
-
91322790:
|
|
157
|
+
"50426c15": Lt.value,
|
|
158
|
+
"5fa7628c": yt.value,
|
|
159
|
+
"5949c3d2": tt.value,
|
|
160
|
+
91322790: gt.value,
|
|
161
161
|
"6750fc92": ee.value,
|
|
162
|
-
"8c592938":
|
|
163
|
-
c11d4680:
|
|
164
|
-
"35b74fa6":
|
|
165
|
-
"7dd5f889":
|
|
166
|
-
"5cb21b36":
|
|
162
|
+
"8c592938": ut.value,
|
|
163
|
+
c11d4680: it.value,
|
|
164
|
+
"35b74fa6": Bt.value,
|
|
165
|
+
"7dd5f889": we.value,
|
|
166
|
+
"5cb21b36": Se.value
|
|
167
167
|
})), La(() => {
|
|
168
|
-
|
|
168
|
+
st();
|
|
169
169
|
});
|
|
170
|
-
const C = S,
|
|
171
|
-
ariaLabel:
|
|
172
|
-
ariaAttrs:
|
|
173
|
-
currentOption:
|
|
174
|
-
valueType:
|
|
175
|
-
display:
|
|
170
|
+
const C = S, B = e, _ = Y(null), {
|
|
171
|
+
ariaLabel: Le,
|
|
172
|
+
ariaAttrs: pe,
|
|
173
|
+
currentOption: Ne,
|
|
174
|
+
valueType: Ae,
|
|
175
|
+
display: re,
|
|
176
176
|
options: J,
|
|
177
177
|
theme: Pe,
|
|
178
|
-
lightTextColor:
|
|
178
|
+
lightTextColor: Fe,
|
|
179
179
|
lightColor: ae,
|
|
180
180
|
lightColorHover: K,
|
|
181
|
-
darkTextColor:
|
|
181
|
+
darkTextColor: N,
|
|
182
182
|
darkColor: le,
|
|
183
|
-
darkColorHover:
|
|
183
|
+
darkColorHover: ue,
|
|
184
184
|
hoverEffect: Q,
|
|
185
|
-
activeHoverEffect:
|
|
186
|
-
itemGap:
|
|
187
|
-
internalGap:
|
|
188
|
-
scale:
|
|
185
|
+
activeHoverEffect: $e,
|
|
186
|
+
itemGap: ie,
|
|
187
|
+
internalGap: H,
|
|
188
|
+
scale: ge,
|
|
189
189
|
disabled: X,
|
|
190
|
-
fontFamily:
|
|
191
|
-
fontSize:
|
|
192
|
-
fontWeight:
|
|
193
|
-
} = Fa(
|
|
194
|
-
const x = X.value ? "component-disabled" : "", $ =
|
|
190
|
+
fontFamily: he,
|
|
191
|
+
fontSize: ye,
|
|
192
|
+
fontWeight: be
|
|
193
|
+
} = Fa(B), I = a(() => {
|
|
194
|
+
const x = X.value ? "component-disabled" : "", $ = re.value !== "b" ? "inline-block" : "block", se = he.value ? he.value : "'Lato', sans-serif", q = ye.value ? ye.value : "1.6em", de = be.value !== 0 && !be.value || be.value < 0 ? 200 : be.value, at = [!1, !0].includes(Q.value) ? Q.value : !1, Ge = [!1, !0].includes($e.value) ? $e.value : !1, We = ie.value !== 0 && !ie.value || ie.value < 0 ? 15 : ie.value, p = H.value !== 0 && !H.value || H.value < 0 ? 6 : H.value, T = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value;
|
|
195
195
|
return {
|
|
196
196
|
disabled: x,
|
|
197
197
|
display: $,
|
|
198
|
-
hoverEffect:
|
|
198
|
+
hoverEffect: at,
|
|
199
199
|
activeHoverEffect: Ge,
|
|
200
|
-
itemGap:
|
|
200
|
+
itemGap: We,
|
|
201
201
|
internalGap: p,
|
|
202
|
-
scale:
|
|
203
|
-
font:
|
|
204
|
-
fontSize:
|
|
205
|
-
fontWeight:
|
|
202
|
+
scale: T,
|
|
203
|
+
font: se,
|
|
204
|
+
fontSize: q,
|
|
205
|
+
fontWeight: de
|
|
206
206
|
};
|
|
207
|
-
}),
|
|
208
|
-
display:
|
|
209
|
-
})), Z = a(() =>
|
|
210
|
-
const x =
|
|
207
|
+
}), je = a(() => I.value.disabled), v = a(() => ({
|
|
208
|
+
display: I.value.display
|
|
209
|
+
})), Z = a(() => I.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), ze = a(() => {
|
|
210
|
+
const x = I.value;
|
|
211
211
|
return {
|
|
212
212
|
fontSize: x.fontSize,
|
|
213
213
|
fontWeight: x.fontWeight
|
|
214
214
|
};
|
|
215
|
-
}), Ue = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), h = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), _e = a(() =>
|
|
216
|
-
const $ =
|
|
215
|
+
}), Ue = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), h = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), _e = a(() => I.value.font), ee = a(() => Fe.value), ut = a(() => ae.value), gt = a(() => I.value.hoverEffect ? K.value : ae.value), tt = a(() => I.value.activeHoverEffect ? K.value : ae.value), we = a(() => N.value), Se = a(() => le.value), Bt = a(() => I.value.hoverEffect ? ue.value : le.value), it = a(() => I.value.activeHoverEffect ? ue.value : le.value), yt = a(() => {
|
|
216
|
+
const $ = I.value.internalGap;
|
|
217
217
|
return !$ || $ < 0 ? 0 : `${$}px`;
|
|
218
|
-
}),
|
|
219
|
-
const $ =
|
|
218
|
+
}), Lt = a(() => {
|
|
219
|
+
const $ = I.value.itemGap;
|
|
220
220
|
return !$ || $ < 0 ? 0 : `${$}px`;
|
|
221
|
-
}),
|
|
222
|
-
zoom:
|
|
221
|
+
}), bt = a(() => ({
|
|
222
|
+
zoom: I.value.scale
|
|
223
223
|
})), Oe = a(() => {
|
|
224
224
|
const x = {};
|
|
225
|
-
|
|
225
|
+
pe.value && Object.keys(pe.value).forEach((q) => x[`aria-${q}`] = pe.value[q]);
|
|
226
226
|
const $ = {
|
|
227
|
-
"aria-label":
|
|
227
|
+
"aria-label": Le.value,
|
|
228
228
|
"aria-disabled": X.value,
|
|
229
229
|
...x
|
|
230
230
|
};
|
|
231
231
|
return Object.fromEntries(
|
|
232
|
-
Object.entries($).filter(([
|
|
232
|
+
Object.entries($).filter(([se, q]) => q != null)
|
|
233
233
|
);
|
|
234
|
-
}),
|
|
235
|
-
const x =
|
|
236
|
-
x && ["string"].includes(
|
|
237
|
-
},
|
|
234
|
+
}), st = () => {
|
|
235
|
+
const x = Ne.value;
|
|
236
|
+
x && ["string"].includes(Ae.value) ? _.value = x.toString().toLowerCase() : _.value = x;
|
|
237
|
+
}, Ye = () => {
|
|
238
238
|
C("clicked");
|
|
239
239
|
};
|
|
240
|
-
return
|
|
241
|
-
x !== $ &&
|
|
242
|
-
}),
|
|
240
|
+
return G(Ne, (x, $) => {
|
|
241
|
+
x !== $ && st();
|
|
242
|
+
}), G(_, (x, $) => {
|
|
243
243
|
x !== $ && (C("current-value", x), C("changed", x));
|
|
244
|
-
}), (x, $) => e.nbId && Ue.value ? (
|
|
244
|
+
}), (x, $) => e.nbId && Ue.value ? (W(), P("div", {
|
|
245
245
|
key: 0,
|
|
246
|
-
class: Ee(["nb-wrapper",
|
|
247
|
-
style:
|
|
246
|
+
class: Ee(["nb-wrapper", je.value]),
|
|
247
|
+
style: Be([v.value, bt.value])
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
ve("div", Aa({
|
|
250
250
|
id: e.nbId,
|
|
251
251
|
role: "radiogroup"
|
|
252
252
|
}, Oe.value, {
|
|
253
253
|
class: ["nb-reset", "component", Z.value, h.value]
|
|
254
254
|
}), [
|
|
255
|
-
(
|
|
256
|
-
key:
|
|
255
|
+
(W(!0), P(dl, null, cl(u(J), (se, q) => (W(), P("div", {
|
|
256
|
+
key: q,
|
|
257
257
|
class: "component-radio__item"
|
|
258
258
|
}, [
|
|
259
|
-
za(
|
|
260
|
-
id: `${e.nbId}-${
|
|
261
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
259
|
+
za(ve("input", {
|
|
260
|
+
id: `${e.nbId}-${se.value}`,
|
|
261
|
+
"onUpdate:modelValue": $[0] || ($[0] = (de) => _.value = de),
|
|
262
262
|
type: "radio",
|
|
263
263
|
class: "component-radio__item--input",
|
|
264
264
|
disabled: u(X),
|
|
265
|
-
value:
|
|
265
|
+
value: se.value,
|
|
266
266
|
name: e.groupName,
|
|
267
|
-
onClick:
|
|
267
|
+
onClick: Ye
|
|
268
268
|
}, null, 8, Tl), [
|
|
269
|
-
[bl,
|
|
269
|
+
[bl, _.value]
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
for: `${e.nbId}-${
|
|
273
|
-
tabindex: u(X) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[
|
|
271
|
+
ve("label", {
|
|
272
|
+
for: `${e.nbId}-${se.value}`,
|
|
273
|
+
tabindex: u(X) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[q] : e.tabIndex >= 0 ? e.tabIndex : q + 1,
|
|
274
274
|
class: "component-radio__item--label",
|
|
275
275
|
onKeydown: [
|
|
276
|
-
$[1] || ($[1] = la(Ma((
|
|
277
|
-
$[2] || ($[2] = la(Ma((
|
|
276
|
+
$[1] || ($[1] = la(Ma((de) => !u(X) && e.hasTabIndexEnter && de.target.click(), ["prevent"]), ["enter"])),
|
|
277
|
+
$[2] || ($[2] = la(Ma((de) => !u(X) && e.hasTabIndexSpace && de.target.click(), ["prevent"]), ["space"]))
|
|
278
278
|
]
|
|
279
279
|
}, [
|
|
280
|
-
$[3] || ($[3] =
|
|
281
|
-
|
|
282
|
-
style:
|
|
283
|
-
}, Dt(
|
|
280
|
+
$[3] || ($[3] = ve("div", null, null, -1)),
|
|
281
|
+
ve("span", {
|
|
282
|
+
style: Be([ze.value])
|
|
283
|
+
}, Dt(se.text), 5)
|
|
284
284
|
], 40, kl)
|
|
285
285
|
]))), 128))
|
|
286
286
|
], 16, Vl)
|
|
287
|
-
], 6)) :
|
|
287
|
+
], 6)) : oe("", !0);
|
|
288
288
|
}
|
|
289
289
|
}), Ll = /* @__PURE__ */ Wa(Bl, [["__scopeId", "data-v-a95f65ea"]]);
|
|
290
290
|
const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabindex"], Dl = /* @__PURE__ */ Object.assign({
|
|
@@ -341,8 +341,8 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
|
|
|
341
341
|
return !1;
|
|
342
342
|
let S = !1;
|
|
343
343
|
for (const C of e) {
|
|
344
|
-
const
|
|
345
|
-
|
|
344
|
+
const B = Object.keys(C);
|
|
345
|
+
B.length !== 2 && (S = !0), B.every((Le) => ["value", "text"].includes(Le)) || (S = !0);
|
|
346
346
|
}
|
|
347
347
|
if (!S)
|
|
348
348
|
return e;
|
|
@@ -449,67 +449,67 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
|
|
|
449
449
|
emits: ["current-value", "changed", "clicked"],
|
|
450
450
|
setup(e, { emit: S }) {
|
|
451
451
|
Na((p) => ({
|
|
452
|
-
"49e2c63f":
|
|
453
|
-
"107babaa":
|
|
452
|
+
"49e2c63f": ut.value,
|
|
453
|
+
"107babaa": se.value,
|
|
454
454
|
"3c7cc5ce": $.value,
|
|
455
455
|
"16d311d0": x.value,
|
|
456
|
-
"3f8b2f30":
|
|
457
|
-
"53078d64":
|
|
458
|
-
"537834e6":
|
|
459
|
-
fbc86ee4:
|
|
460
|
-
"517939e1":
|
|
461
|
-
"3faff29d":
|
|
462
|
-
"302ecd6a":
|
|
463
|
-
"8a4df060":
|
|
456
|
+
"3f8b2f30": Se.value,
|
|
457
|
+
"53078d64": we.value,
|
|
458
|
+
"537834e6": Bt.value,
|
|
459
|
+
fbc86ee4: tt.value,
|
|
460
|
+
"517939e1": gt.value,
|
|
461
|
+
"3faff29d": Ye.value,
|
|
462
|
+
"302ecd6a": bt.value,
|
|
463
|
+
"8a4df060": Lt.value,
|
|
464
464
|
"0a99dbe2": Oe.value,
|
|
465
|
-
d6971e68:
|
|
466
|
-
ca30d9c2:
|
|
465
|
+
d6971e68: yt.value,
|
|
466
|
+
ca30d9c2: it.value
|
|
467
467
|
})), La(() => {
|
|
468
468
|
Ge();
|
|
469
469
|
});
|
|
470
|
-
const C = S,
|
|
471
|
-
ariaLabel:
|
|
472
|
-
ariaAttrs:
|
|
473
|
-
currentOption:
|
|
474
|
-
display:
|
|
475
|
-
options:
|
|
470
|
+
const C = S, B = e, _ = Y(null), {
|
|
471
|
+
ariaLabel: Le,
|
|
472
|
+
ariaAttrs: pe,
|
|
473
|
+
currentOption: Ne,
|
|
474
|
+
display: Ae,
|
|
475
|
+
options: re,
|
|
476
476
|
theme: J,
|
|
477
477
|
lightTextColor: Pe,
|
|
478
|
-
lightColor:
|
|
478
|
+
lightColor: Fe,
|
|
479
479
|
lightColorHover: ae,
|
|
480
480
|
darkTextColor: K,
|
|
481
|
-
darkColor:
|
|
481
|
+
darkColor: N,
|
|
482
482
|
darkColorHover: le,
|
|
483
|
-
boxRadius:
|
|
483
|
+
boxRadius: ue,
|
|
484
484
|
hoverEffect: Q,
|
|
485
|
-
activeHoverEffect:
|
|
486
|
-
itemGap:
|
|
487
|
-
internalGap:
|
|
488
|
-
scale:
|
|
485
|
+
activeHoverEffect: $e,
|
|
486
|
+
itemGap: ie,
|
|
487
|
+
internalGap: H,
|
|
488
|
+
scale: ge,
|
|
489
489
|
type: X,
|
|
490
|
-
background:
|
|
491
|
-
disabled:
|
|
492
|
-
fontFamily:
|
|
493
|
-
fontSize:
|
|
494
|
-
fontWeight:
|
|
495
|
-
} = Fa(
|
|
496
|
-
const p =
|
|
490
|
+
background: he,
|
|
491
|
+
disabled: ye,
|
|
492
|
+
fontFamily: be,
|
|
493
|
+
fontSize: I,
|
|
494
|
+
fontWeight: je
|
|
495
|
+
} = Fa(B), v = a(() => {
|
|
496
|
+
const p = ye.value ? "component-disabled" : "", T = Ae.value !== "b" ? "inline-block" : "block", te = be.value ? be.value : "'Lato', sans-serif", ne = I.value ? I.value : "1.6em", ce = je.value !== 0 && !je.value || je.value < 0 ? 200 : je.value, De = ue.value !== 0 && !ue.value || ue.value < 0 ? 0 : ue.value, xe = [!1, !0].includes(Q.value) ? Q.value : !1, Re = [!1, !0].includes($e.value) ? $e.value : !1, Ie = ie.value !== 0 && !ie.value || ie.value < 0 ? 15 : ie.value, He = H.value !== 0 && !H.value || H.value < 0 ? 6 : H.value, Ke = ["box", "circle"].includes(X.value) ? X.value : "box", dt = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value, ct = [!1, !0].includes(he.value) ? he.value : !1;
|
|
497
497
|
return {
|
|
498
498
|
disabled: p,
|
|
499
|
-
display:
|
|
500
|
-
boxRadius:
|
|
501
|
-
hoverEffect:
|
|
502
|
-
activeHoverEffect:
|
|
499
|
+
display: T,
|
|
500
|
+
boxRadius: De,
|
|
501
|
+
hoverEffect: xe,
|
|
502
|
+
activeHoverEffect: Re,
|
|
503
503
|
itemGap: Ie,
|
|
504
|
-
internalGap:
|
|
505
|
-
scale:
|
|
504
|
+
internalGap: He,
|
|
505
|
+
scale: dt,
|
|
506
506
|
type: Ke,
|
|
507
|
-
font:
|
|
507
|
+
font: te,
|
|
508
508
|
background: ct,
|
|
509
|
-
fontSize:
|
|
510
|
-
fontWeight:
|
|
509
|
+
fontSize: ne,
|
|
510
|
+
fontWeight: ce
|
|
511
511
|
};
|
|
512
|
-
}), Z = a(() => v.value.disabled),
|
|
512
|
+
}), Z = a(() => v.value.disabled), ze = a(() => ({
|
|
513
513
|
display: v.value.display
|
|
514
514
|
})), Ue = a(() => v.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), h = a(() => {
|
|
515
515
|
const p = v.value;
|
|
@@ -517,94 +517,94 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
|
|
|
517
517
|
fontSize: p.fontSize,
|
|
518
518
|
fontWeight: p.fontWeight
|
|
519
519
|
};
|
|
520
|
-
}), _e = a(() => Array.isArray(
|
|
520
|
+
}), _e = a(() => Array.isArray(re.value) && re.value.constructor === Array && re.value.length > 0), ee = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), ut = a(() => v.value.font), gt = a(() => Pe.value), tt = a(() => Fe.value), we = a(() => v.value.hoverEffect ? ae.value : Fe.value), Se = a(() => v.value.activeHoverEffect ? ae.value : Fe.value), Bt = a(() => {
|
|
521
521
|
const p = v.value;
|
|
522
522
|
return p.activeHoverEffect && p.background ? `${ae.value}80` : ae.value;
|
|
523
|
-
}),
|
|
523
|
+
}), it = a(() => K.value), yt = a(() => N.value), Lt = a(() => v.value.hoverEffect ? le.value : N.value), bt = a(() => v.value.activeHoverEffect ? le.value : N.value), Oe = a(() => {
|
|
524
524
|
const p = v.value;
|
|
525
525
|
return p.activeHoverEffect && p.background ? `${le.value}80` : le.value;
|
|
526
|
-
}),
|
|
527
|
-
const p = v.value,
|
|
528
|
-
return p.background ? "#ffffff" :
|
|
526
|
+
}), st = a(() => v.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ye = a(() => {
|
|
527
|
+
const p = v.value, T = J.value === "dark" ? K.value : Pe.value;
|
|
528
|
+
return p.background ? "#ffffff" : T;
|
|
529
529
|
});
|
|
530
530
|
a(() => v.value.background ? "19px" : "auto");
|
|
531
531
|
const x = a(() => {
|
|
532
|
-
const
|
|
533
|
-
return !
|
|
532
|
+
const T = v.value.internalGap;
|
|
533
|
+
return !T || T < 0 ? 0 : `${T}px`;
|
|
534
534
|
}), $ = a(() => {
|
|
535
535
|
const p = v.value;
|
|
536
536
|
return `${p.boxRadius > 7 ? 7 : p.boxRadius}px`;
|
|
537
|
-
}),
|
|
538
|
-
const
|
|
539
|
-
return !
|
|
540
|
-
}),
|
|
537
|
+
}), se = a(() => {
|
|
538
|
+
const T = v.value.itemGap;
|
|
539
|
+
return !T || T < 0 ? 0 : `${T}px`;
|
|
540
|
+
}), q = a(() => v.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), de = a(() => ({
|
|
541
541
|
zoom: v.value.scale
|
|
542
|
-
})),
|
|
542
|
+
})), at = a(() => {
|
|
543
543
|
const p = {};
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
"aria-label":
|
|
547
|
-
"aria-disabled":
|
|
544
|
+
pe.value && Object.keys(pe.value).forEach((ne) => p[`aria-${ne}`] = pe.value[ne]);
|
|
545
|
+
const T = {
|
|
546
|
+
"aria-label": Le.value,
|
|
547
|
+
"aria-disabled": ye.value,
|
|
548
548
|
...p
|
|
549
549
|
};
|
|
550
550
|
return Object.fromEntries(
|
|
551
|
-
Object.entries(
|
|
551
|
+
Object.entries(T).filter(([te, ne]) => ne != null)
|
|
552
552
|
);
|
|
553
553
|
}), Ge = () => {
|
|
554
|
-
|
|
555
|
-
},
|
|
554
|
+
_.value = Ne.value;
|
|
555
|
+
}, We = () => {
|
|
556
556
|
C("clicked");
|
|
557
557
|
};
|
|
558
|
-
return
|
|
559
|
-
p !==
|
|
560
|
-
}),
|
|
561
|
-
p !==
|
|
562
|
-
}), (p,
|
|
558
|
+
return G(Ne, (p, T) => {
|
|
559
|
+
p !== T && Ge();
|
|
560
|
+
}), G(_, (p, T) => {
|
|
561
|
+
p !== T && (C("current-value", p), C("changed", p));
|
|
562
|
+
}), (p, T) => e.nbId && _e.value ? (W(), P("div", {
|
|
563
563
|
key: 0,
|
|
564
564
|
class: Ee(["nb-wrapper", Z.value]),
|
|
565
|
-
style:
|
|
565
|
+
style: Be([ze.value, de.value])
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
ve("div", Aa({
|
|
568
568
|
id: e.nbId,
|
|
569
569
|
role: "group"
|
|
570
|
-
},
|
|
570
|
+
}, at.value, {
|
|
571
571
|
class: ["nb-reset", "component", Ue.value, ee.value]
|
|
572
572
|
}), [
|
|
573
|
-
(
|
|
574
|
-
key:
|
|
573
|
+
(W(!0), P(dl, null, cl(u(re), (te, ne) => (W(), P("div", {
|
|
574
|
+
key: ne,
|
|
575
575
|
class: "component-checkbox__item"
|
|
576
576
|
}, [
|
|
577
|
-
za(
|
|
578
|
-
id: `${e.nbId}-${
|
|
579
|
-
"onUpdate:modelValue":
|
|
577
|
+
za(ve("input", {
|
|
578
|
+
id: `${e.nbId}-${te.value}`,
|
|
579
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ce) => _.value = ce),
|
|
580
580
|
type: "checkbox",
|
|
581
581
|
class: "component-checkbox__item--input",
|
|
582
|
-
disabled: u(
|
|
583
|
-
value:
|
|
582
|
+
disabled: u(ye),
|
|
583
|
+
value: te.value,
|
|
584
584
|
name: e.groupName,
|
|
585
|
-
onClick:
|
|
585
|
+
onClick: We
|
|
586
586
|
}, null, 8, $l), [
|
|
587
|
-
[ml,
|
|
587
|
+
[ml, _.value]
|
|
588
588
|
]),
|
|
589
|
-
|
|
590
|
-
for: `${e.nbId}-${
|
|
591
|
-
class: Ee([[
|
|
592
|
-
tabindex: u(
|
|
589
|
+
ve("label", {
|
|
590
|
+
for: `${e.nbId}-${te.value}`,
|
|
591
|
+
class: Ee([[q.value], "component-checkbox__item--label"]),
|
|
592
|
+
tabindex: u(ye) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ne] : e.tabIndex >= 0 ? e.tabIndex : ne + 1,
|
|
593
593
|
onKeydown: [
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
T[1] || (T[1] = la(Ma((ce) => !u(ye) && e.hasTabIndexEnter && ce.target.click(), ["prevent"]), ["enter"])),
|
|
595
|
+
T[2] || (T[2] = la(Ma((ce) => !u(ye) && e.hasTabIndexSpace && ce.target.click(), ["prevent"]), ["space"]))
|
|
596
596
|
]
|
|
597
597
|
}, [
|
|
598
|
-
|
|
599
|
-
class: Ee([
|
|
598
|
+
ve("div", {
|
|
599
|
+
class: Ee([st.value])
|
|
600
600
|
}, null, 2),
|
|
601
|
-
|
|
602
|
-
style:
|
|
603
|
-
}, Dt(
|
|
601
|
+
ve("span", {
|
|
602
|
+
style: Be([h.value])
|
|
603
|
+
}, Dt(te.text), 5)
|
|
604
604
|
], 42, wl)
|
|
605
605
|
]))), 128))
|
|
606
606
|
], 16, Al)
|
|
607
|
-
], 6)) :
|
|
607
|
+
], 6)) : oe("", !0);
|
|
608
608
|
}
|
|
609
609
|
}), Rl = /* @__PURE__ */ Wa(Dl, [["__scopeId", "data-v-1c6afddc"]]);
|
|
610
610
|
const Ml = ["id"], Nl = ["for"], Fl = {
|
|
@@ -1066,39 +1066,39 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1066
1066
|
Na((o) => ({
|
|
1067
1067
|
"440599b4": oa.value,
|
|
1068
1068
|
a3815248: na.value,
|
|
1069
|
-
e36d7636: u(
|
|
1069
|
+
e36d7636: u(bt),
|
|
1070
1070
|
"650d18a8": sa.value,
|
|
1071
1071
|
c7ec6004: da.value,
|
|
1072
1072
|
"57d3f016": ca.value,
|
|
1073
|
-
"73afd0ca": u(
|
|
1074
|
-
"45dd7bbc": u(
|
|
1075
|
-
"77cc7e84": u(
|
|
1073
|
+
"73afd0ca": u(se),
|
|
1074
|
+
"45dd7bbc": u(Re),
|
|
1075
|
+
"77cc7e84": u(q),
|
|
1076
1076
|
e8193a24: u(Rt),
|
|
1077
1077
|
"5ca879a7": u($),
|
|
1078
|
-
"743bbde8": u(
|
|
1078
|
+
"743bbde8": u(Ye),
|
|
1079
1079
|
"7af41b0e": u(x),
|
|
1080
1080
|
"17cd86d9": Ca.value,
|
|
1081
1081
|
"35dc14c3": u(Oe),
|
|
1082
|
-
f5405c56: u(
|
|
1083
|
-
"54856b3e": u(
|
|
1084
|
-
"6a2eb70c": u(
|
|
1082
|
+
f5405c56: u(st),
|
|
1083
|
+
"54856b3e": u(xe),
|
|
1084
|
+
"6a2eb70c": u(de),
|
|
1085
1085
|
"4513470a": u(ct),
|
|
1086
|
-
e9fdf11e: u(
|
|
1087
|
-
"9f7f8c44": u(
|
|
1088
|
-
"17ad4684": u(
|
|
1089
|
-
"0e1c0c8d": u(
|
|
1090
|
-
"5b95af6a": u(
|
|
1086
|
+
e9fdf11e: u(Lt),
|
|
1087
|
+
"9f7f8c44": u(it),
|
|
1088
|
+
"17ad4684": u(yt),
|
|
1089
|
+
"0e1c0c8d": u(Se),
|
|
1090
|
+
"5b95af6a": u(Bt),
|
|
1091
1091
|
"74cc9141": wt.value,
|
|
1092
1092
|
"1818a668": Sa.value,
|
|
1093
1093
|
"134a9193": xa.value,
|
|
1094
|
-
d7b06ffa:
|
|
1094
|
+
d7b06ffa: ot.value,
|
|
1095
1095
|
"775fa126": ma.value,
|
|
1096
|
-
"3d1cc0da": u(
|
|
1096
|
+
"3d1cc0da": u(at),
|
|
1097
1097
|
"4c994568": ga.value,
|
|
1098
1098
|
"56a36bb3": ra.value,
|
|
1099
|
-
"7714cb1c":
|
|
1099
|
+
"7714cb1c": Ut.value,
|
|
1100
1100
|
"3305cdca": ua.value,
|
|
1101
|
-
"3b3cdb16":
|
|
1101
|
+
"3b3cdb16": Yt.value,
|
|
1102
1102
|
"4083b276": o.styleButtonColor,
|
|
1103
1103
|
ee844aac: ia.value
|
|
1104
1104
|
})), La(() => {
|
|
@@ -1106,98 +1106,98 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1106
1106
|
}), Pa(() => {
|
|
1107
1107
|
Jt();
|
|
1108
1108
|
});
|
|
1109
|
-
const C = S,
|
|
1110
|
-
nbId:
|
|
1111
|
-
display:
|
|
1112
|
-
hasTabIndexEnter:
|
|
1113
|
-
ariaLabel:
|
|
1114
|
-
ariaAttrs:
|
|
1115
|
-
textColor:
|
|
1109
|
+
const C = S, B = e, {
|
|
1110
|
+
nbId: _,
|
|
1111
|
+
display: Le,
|
|
1112
|
+
hasTabIndexEnter: pe,
|
|
1113
|
+
ariaLabel: Ne,
|
|
1114
|
+
ariaAttrs: Ae,
|
|
1115
|
+
textColor: re,
|
|
1116
1116
|
caretColor: J,
|
|
1117
1117
|
selectionBgColor: Pe,
|
|
1118
|
-
selectionTextColor:
|
|
1118
|
+
selectionTextColor: Fe,
|
|
1119
1119
|
hasBorderRadius: ae,
|
|
1120
1120
|
borderRadius: K,
|
|
1121
|
-
disabled:
|
|
1121
|
+
disabled: N,
|
|
1122
1122
|
fontFamily: le,
|
|
1123
|
-
fontSize:
|
|
1123
|
+
fontSize: ue,
|
|
1124
1124
|
fontWeight: Q,
|
|
1125
|
-
fontFamilyMsg:
|
|
1126
|
-
fontSizeMsg:
|
|
1127
|
-
fontWeightMsg:
|
|
1128
|
-
textMessageColor:
|
|
1125
|
+
fontFamilyMsg: $e,
|
|
1126
|
+
fontSizeMsg: ie,
|
|
1127
|
+
fontWeightMsg: H,
|
|
1128
|
+
textMessageColor: ge,
|
|
1129
1129
|
inputWidth: X,
|
|
1130
|
-
inputStyle:
|
|
1131
|
-
activeTextStyle:
|
|
1132
|
-
sizeMediaQuery:
|
|
1133
|
-
inputReadonly:
|
|
1134
|
-
blockPaste:
|
|
1130
|
+
inputStyle: he,
|
|
1131
|
+
activeTextStyle: ye,
|
|
1132
|
+
sizeMediaQuery: be,
|
|
1133
|
+
inputReadonly: I,
|
|
1134
|
+
blockPaste: je,
|
|
1135
1135
|
showInputEye: v,
|
|
1136
1136
|
inputType: Z,
|
|
1137
|
-
hasTrim:
|
|
1137
|
+
hasTrim: ze,
|
|
1138
1138
|
inputUppercase: Ue,
|
|
1139
1139
|
inputName: h,
|
|
1140
1140
|
inputPlaceholder: _e,
|
|
1141
1141
|
inputText: ee,
|
|
1142
|
-
theme:
|
|
1143
|
-
inputEyeIcon:
|
|
1144
|
-
tabindex:
|
|
1145
|
-
inputEyeIconHidden:
|
|
1146
|
-
lightBgColor:
|
|
1147
|
-
lightBgColorFocus:
|
|
1148
|
-
lightEyeBgColor:
|
|
1149
|
-
lightEyeBgColorActive:
|
|
1150
|
-
lightDisabledBgColor:
|
|
1151
|
-
lightTextColor:
|
|
1142
|
+
theme: ut,
|
|
1143
|
+
inputEyeIcon: gt,
|
|
1144
|
+
tabindex: tt,
|
|
1145
|
+
inputEyeIconHidden: we,
|
|
1146
|
+
lightBgColor: Se,
|
|
1147
|
+
lightBgColorFocus: Bt,
|
|
1148
|
+
lightEyeBgColor: it,
|
|
1149
|
+
lightEyeBgColorActive: yt,
|
|
1150
|
+
lightDisabledBgColor: Lt,
|
|
1151
|
+
lightTextColor: bt,
|
|
1152
1152
|
darkBgColor: Oe,
|
|
1153
|
-
darkBgColorFocus:
|
|
1154
|
-
darkEyeBgColor:
|
|
1153
|
+
darkBgColorFocus: st,
|
|
1154
|
+
darkEyeBgColor: Ye,
|
|
1155
1155
|
darkEyeBgColorActive: x,
|
|
1156
1156
|
darkDisabledBgColor: $,
|
|
1157
|
-
darkTextColor:
|
|
1158
|
-
darkDisabledEyeBgColor:
|
|
1159
|
-
lightDisabledEyeBgColor:
|
|
1160
|
-
textAlign:
|
|
1157
|
+
darkTextColor: se,
|
|
1158
|
+
darkDisabledEyeBgColor: q,
|
|
1159
|
+
lightDisabledEyeBgColor: de,
|
|
1160
|
+
textAlign: at,
|
|
1161
1161
|
showMsg: Ge,
|
|
1162
|
-
hasMsg:
|
|
1162
|
+
hasMsg: We,
|
|
1163
1163
|
hasIcon: p,
|
|
1164
|
-
iconDirection:
|
|
1165
|
-
iconPadding:
|
|
1166
|
-
iconPaddingInput:
|
|
1167
|
-
iconMargin:
|
|
1168
|
-
iconBorderRadius:
|
|
1169
|
-
iconLightTextColor:
|
|
1170
|
-
iconDarkTextColor:
|
|
1164
|
+
iconDirection: T,
|
|
1165
|
+
iconPadding: te,
|
|
1166
|
+
iconPaddingInput: ne,
|
|
1167
|
+
iconMargin: ce,
|
|
1168
|
+
iconBorderRadius: De,
|
|
1169
|
+
iconLightTextColor: xe,
|
|
1170
|
+
iconDarkTextColor: Re,
|
|
1171
1171
|
iconLightBgColor: Ie,
|
|
1172
|
-
iconDarkBgColor:
|
|
1172
|
+
iconDarkBgColor: He,
|
|
1173
1173
|
iconLightBgColorActive: Ke,
|
|
1174
|
-
iconDarkBgColorActive:
|
|
1174
|
+
iconDarkBgColorActive: dt,
|
|
1175
1175
|
iconLightDisabledBgColor: ct,
|
|
1176
1176
|
iconDarkDisabledBgColor: Rt,
|
|
1177
|
-
iconWidth:
|
|
1178
|
-
iconSize:
|
|
1177
|
+
iconWidth: mt,
|
|
1178
|
+
iconSize: ht,
|
|
1179
1179
|
showLabel: Qe,
|
|
1180
1180
|
label: Mt,
|
|
1181
1181
|
labelBreakOnActive: Ze,
|
|
1182
|
-
labelBackground:
|
|
1183
|
-
labelPadding:
|
|
1184
|
-
labelBorderRadius:
|
|
1182
|
+
labelBackground: ft,
|
|
1183
|
+
labelPadding: m,
|
|
1184
|
+
labelBorderRadius: R,
|
|
1185
1185
|
labelLeft: g,
|
|
1186
|
-
inputLabelMarginActive:
|
|
1187
|
-
labelActiveTop:
|
|
1188
|
-
labelActiveLeft:
|
|
1189
|
-
labelRight:
|
|
1190
|
-
labelActiveRight:
|
|
1191
|
-
fontFamilyLabel:
|
|
1192
|
-
fontSizeLabel:
|
|
1193
|
-
fontSizeLabelActive:
|
|
1194
|
-
fontWeightLabel:
|
|
1195
|
-
lightTextColorLabel:
|
|
1196
|
-
lightTextColorLabelActive:
|
|
1197
|
-
darkTextColorLabel:
|
|
1198
|
-
darkTextColorLabelActive:
|
|
1199
|
-
} = Fa(
|
|
1200
|
-
const o =
|
|
1186
|
+
inputLabelMarginActive: St,
|
|
1187
|
+
labelActiveTop: lt,
|
|
1188
|
+
labelActiveLeft: xt,
|
|
1189
|
+
labelRight: Ce,
|
|
1190
|
+
labelActiveRight: nt,
|
|
1191
|
+
fontFamilyLabel: fe,
|
|
1192
|
+
fontSizeLabel: Ct,
|
|
1193
|
+
fontSizeLabelActive: Vt,
|
|
1194
|
+
fontWeightLabel: j,
|
|
1195
|
+
lightTextColorLabel: At,
|
|
1196
|
+
lightTextColorLabelActive: F,
|
|
1197
|
+
darkTextColorLabel: E,
|
|
1198
|
+
darkTextColorLabelActive: jt
|
|
1199
|
+
} = Fa(B), L = Y(""), z = Y(null), Tt = Y(""), kt = Y(!1), vt = Y(!1), A = a(() => {
|
|
1200
|
+
const o = N.value ? "component-disabled" : "", b = Le.value !== "b" ? "inline-block" : "block", ke = re ? re.value : "ffffff", Je = J.value ? J.value : "", ka = Pe.value ? Pe.value : "", ea = Fe.value ? Fe.value : "", $a = ae.value ? ae.value : !1, wa = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, Wt = le.value ? le.value : "'Lato', sans-serif", ta = ue.value ? ue.value : null, Ht = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, Da = $e.value ? $e.value : "'Lato', sans-serif", Ia = ie.value ? ie.value : "1em", Ra = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, me = ge.value ? ge.value : "#f15574", Ea = X.value ? X.value : 200, pt = ye.value ? ye.value : "normal", t = be.value ? be.value : "xs", l = I.value ? I.value : !1, n = v.value ? v.value : !1, r = Z.value ? Z.value : "text", d = Ue.value ? Ue.value : !1, s = ut.value ? ut.value : "normal", c = at.value ? at.value : "left", y = he.value ? he.value : "background", V = te.value ? te.value : "5px 10px", k = ce.value ? ce.value : "0", M = ne.value ? ne.value : 10, O = xe.value ? xe.value : "#000000", Me = Re.value ? Re.value : "#000000", Xe = Ie.value ? Ie.value : "transparent", qe = He.value ? He.value : "transparent", et = De.value !== 0 && !De.value || De.value < 0 ? 0 : De.value, _a = Ke.value ? Ke.value : "transparent", Oa = dt.value ? dt.value : "transparent", Ha = mt.value ? mt.value : 32, qa = ht.value ? ht.value : 1, ja = Qe.value ? Qe.value : !1, Ua = g.value !== 0 && !g.value || g.value < 0 ? 5 : g.value, Ya = ft.value ? ft.value : "transparent", Ga = St.value !== 0 && !St.value || St.value < 0 ? 15 : St.value, Ka = m.value ? m.value : "1px 5px", Qa = R.value !== 0 && !R.value || R.value < 0 ? 0 : R.value, Za = lt.value === null || lt.value === void 0 ? -13 : lt.value, Ja = xt.value === null || xt.value === void 0 ? -10 : xt.value, Xa = Ce.value === null || Ce.value === void 0 ? 0 : Ce.value, el = nt.value === null || nt.value === void 0 ? 0 : nt.value, tl = fe.value ? fe.value : "'Lato', sans-serif", al = Ct.value ? Ct.value : "1em", ll = Vt.value ? Vt.value : "0.8em", nl = j.value ? j.value : 400, ol = At.value ? At.value : "#ffffff", rl = E.value ? E.value : "#000000", ul = F.value ? F.value : "#ffffff", il = jt.value ? jt.value : "#000000";
|
|
1201
1201
|
return {
|
|
1202
1202
|
disabled: o,
|
|
1203
1203
|
display: b,
|
|
@@ -1207,8 +1207,8 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1207
1207
|
fontFamilyMsg: Da,
|
|
1208
1208
|
fontSizeMsg: Ia,
|
|
1209
1209
|
fontWeightMsg: Ra,
|
|
1210
|
-
textMessageColor:
|
|
1211
|
-
textColor:
|
|
1210
|
+
textMessageColor: me,
|
|
1211
|
+
textColor: ke,
|
|
1212
1212
|
caretColor: Je,
|
|
1213
1213
|
selectionBgColor: ka,
|
|
1214
1214
|
selectionTextColor: ea,
|
|
@@ -1216,7 +1216,7 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1216
1216
|
borderRadius: wa,
|
|
1217
1217
|
textAlign: c,
|
|
1218
1218
|
inputWidth: Ea,
|
|
1219
|
-
activeTextStyle:
|
|
1219
|
+
activeTextStyle: pt,
|
|
1220
1220
|
sizeMediaQuery: t,
|
|
1221
1221
|
inputReadonly: l,
|
|
1222
1222
|
showInputEye: n,
|
|
@@ -1225,22 +1225,22 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1225
1225
|
theme: s,
|
|
1226
1226
|
inputStyle: y,
|
|
1227
1227
|
iconPadding: V,
|
|
1228
|
-
iconMargin:
|
|
1229
|
-
iconPaddingInput:
|
|
1230
|
-
iconLightTextColor:
|
|
1231
|
-
iconDarkTextColor:
|
|
1228
|
+
iconMargin: k,
|
|
1229
|
+
iconPaddingInput: M,
|
|
1230
|
+
iconLightTextColor: O,
|
|
1231
|
+
iconDarkTextColor: Me,
|
|
1232
1232
|
iconLightBgColor: Xe,
|
|
1233
|
-
iconDarkBgColor:
|
|
1233
|
+
iconDarkBgColor: qe,
|
|
1234
1234
|
iconBorderRadius: et,
|
|
1235
1235
|
iconLightBgColorActive: _a,
|
|
1236
1236
|
iconDarkBgColorActive: Oa,
|
|
1237
1237
|
iconWidth: Ha,
|
|
1238
1238
|
iconSize: qa,
|
|
1239
1239
|
showLabel: ja,
|
|
1240
|
-
labelBackground:
|
|
1240
|
+
labelBackground: Ya,
|
|
1241
1241
|
labelPadding: Ka,
|
|
1242
1242
|
labelBorderRadius: Qa,
|
|
1243
|
-
labelLeft:
|
|
1243
|
+
labelLeft: Ua,
|
|
1244
1244
|
inputLabelMarginActive: Ga,
|
|
1245
1245
|
labelActiveTop: Za,
|
|
1246
1246
|
labelActiveLeft: Ja,
|
|
@@ -1287,7 +1287,7 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1287
1287
|
}), $t = a(() => {
|
|
1288
1288
|
const o = A.value;
|
|
1289
1289
|
return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
|
|
1290
|
-
}), oa = a(() => A.value.font), ra = a(() => A.value.fontFamilyMsg),
|
|
1290
|
+
}), oa = a(() => A.value.font), ra = a(() => A.value.fontFamilyMsg), Ut = a(() => A.value.fontSizeMsg), ua = a(() => A.value.fontWeightMsg), ia = a(() => A.value.textColor), Yt = a(() => A.value.textMessageColor), sa = a(() => {
|
|
1291
1291
|
const o = A.value;
|
|
1292
1292
|
return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1293
1293
|
}), da = a(() => {
|
|
@@ -1302,7 +1302,7 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1302
1302
|
width: `${o.inputWidth}px`
|
|
1303
1303
|
};
|
|
1304
1304
|
}), fa = a(() => {
|
|
1305
|
-
switch (
|
|
1305
|
+
switch (he.value) {
|
|
1306
1306
|
case "line":
|
|
1307
1307
|
return "component__input--line";
|
|
1308
1308
|
case "border":
|
|
@@ -1337,24 +1337,24 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1337
1337
|
default:
|
|
1338
1338
|
return "component__theme--light";
|
|
1339
1339
|
}
|
|
1340
|
-
}),
|
|
1340
|
+
}), U = a(() => A.value.inputReadonly ? "component__input--read-only" : ""), i = a(() => A.value.inputUppercase ? "component__input--uppercase" : ""), D = a(() => {
|
|
1341
1341
|
const o = A.value;
|
|
1342
1342
|
return !!(o.showInputEye && o.inputType === "password");
|
|
1343
|
-
}),
|
|
1343
|
+
}), Ve = a(() => kt.value ? gt.value : we.value), Te = a(() => h.value ? h.value : `${_.value}-name-label`), va = a(() => Qe.value ? vt.value ? _e.value : "" : _e.value), Pt = a(() => {
|
|
1344
1344
|
const o = L.value;
|
|
1345
|
-
return
|
|
1346
|
-
}), pa = a(() => A.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Qt = a(() =>
|
|
1345
|
+
return vt.value || o != null && String(o).trim().length > 0;
|
|
1346
|
+
}), pa = a(() => A.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Qt = a(() => vt.value ? "component__input--active" : "component__input--no-active"), ga = a(() => D.value ? "6px 50px 6px 10px" : "6px 10px"), ya = a(() => !!(Ge.value && We.value)), ba = a(() => {
|
|
1347
1347
|
const o = {};
|
|
1348
|
-
|
|
1348
|
+
Ae.value && Object.keys(Ae.value).forEach((Je) => o[`aria-${Je}`] = Ae.value[Je]);
|
|
1349
1349
|
const b = {
|
|
1350
|
-
"aria-label":
|
|
1351
|
-
"aria-disabled":
|
|
1350
|
+
"aria-label": Ne.value,
|
|
1351
|
+
"aria-disabled": N.value,
|
|
1352
1352
|
...o
|
|
1353
1353
|
};
|
|
1354
1354
|
return Object.fromEntries(
|
|
1355
|
-
Object.entries(b).filter(([
|
|
1355
|
+
Object.entries(b).filter(([ke, Je]) => Je != null)
|
|
1356
1356
|
);
|
|
1357
|
-
}), ma = a(() => p.value ? `${
|
|
1357
|
+
}), ma = a(() => p.value ? `${ht.value}rem` : "0"), wt = a(() => p.value ? `${mt.value}px` : "0"), ha = a(() => p.value ? `component__icon--${T.value}` : ""), Sa = a(() => {
|
|
1358
1358
|
const o = A.value;
|
|
1359
1359
|
return p.value ? o.iconPadding : "0";
|
|
1360
1360
|
}), xa = a(() => {
|
|
@@ -1363,19 +1363,19 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1363
1363
|
}), Ca = a(() => {
|
|
1364
1364
|
const o = A.value;
|
|
1365
1365
|
return p.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
|
|
1366
|
-
}),
|
|
1366
|
+
}), ot = a(() => {
|
|
1367
1367
|
const o = A.value;
|
|
1368
1368
|
return p.value ? `${o.iconBorderRadius}rem` : "0";
|
|
1369
1369
|
}), _t = a(() => {
|
|
1370
1370
|
const o = A.value;
|
|
1371
|
-
return p.value ?
|
|
1371
|
+
return p.value ? T.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
|
|
1372
1372
|
}), Zt = a(() => {
|
|
1373
|
-
const o = A.value, b = Pt.value,
|
|
1373
|
+
const o = A.value, b = Pt.value, ke = b ? o.lightTextColorLabelActive : o.lightTextColorLabel, Je = b ? o.darkTextColorLabelActive : o.darkTextColorLabel;
|
|
1374
1374
|
return {
|
|
1375
1375
|
fontFamily: o.fontFamilyLabel,
|
|
1376
1376
|
fontSize: b ? o.fontSizeLabelActive : o.fontSizeLabel,
|
|
1377
1377
|
fontWeight: o.fontWeightLabel,
|
|
1378
|
-
color: o.theme === "dark" ? Je :
|
|
1378
|
+
color: o.theme === "dark" ? Je : ke,
|
|
1379
1379
|
top: b ? `${o.labelActiveTop}px` : "50%",
|
|
1380
1380
|
left: b ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
|
|
1381
1381
|
right: b ? `${o.labelActiveRight}px` : `${o.labelRight}px`,
|
|
@@ -1400,14 +1400,14 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1400
1400
|
return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
|
|
1401
1401
|
});
|
|
1402
1402
|
const Jt = () => {
|
|
1403
|
-
ee.value != null ? Z.value === "number" && typeof ee.value == "number" ? L.value = ee.value : L.value = String(ee.value) : L.value = "",
|
|
1403
|
+
ee.value != null ? Z.value === "number" && typeof ee.value == "number" ? L.value = ee.value : L.value = String(ee.value) : L.value = "", Tt.value = Z.value;
|
|
1404
1404
|
}, Ot = () => {
|
|
1405
1405
|
const o = A.value;
|
|
1406
1406
|
if (o.inputReadonly || o.disabled)
|
|
1407
1407
|
return;
|
|
1408
|
-
const b = !
|
|
1409
|
-
b ?
|
|
1410
|
-
}, Ft = a(() =>
|
|
1408
|
+
const b = !kt.value;
|
|
1409
|
+
b ? Tt.value = "text" : Tt.value = Z.value, kt.value = b;
|
|
1410
|
+
}, Ft = a(() => Tt.value === "number"), rt = (o) => {
|
|
1411
1411
|
if (Z.value === "number") {
|
|
1412
1412
|
if (o === "" || o === null || o === void 0)
|
|
1413
1413
|
return "";
|
|
@@ -1420,17 +1420,17 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1420
1420
|
}, zt = () => {
|
|
1421
1421
|
C("clicked");
|
|
1422
1422
|
}, Va = (o) => {
|
|
1423
|
-
o.stopPropagation(), !(
|
|
1423
|
+
o.stopPropagation(), !(N.value || A.value.inputReadonly) && z.value && z.value.focus();
|
|
1424
1424
|
}, Xt = () => {
|
|
1425
|
-
|
|
1425
|
+
N.value || A.value.inputReadonly || !pe.value || C("entered", rt(L.value));
|
|
1426
1426
|
}, Ta = async (o) => {
|
|
1427
|
-
var
|
|
1428
|
-
const b = ((
|
|
1429
|
-
C("paste", b),
|
|
1427
|
+
var ke;
|
|
1428
|
+
const b = ((ke = o.clipboardData) == null ? void 0 : ke.getData("text")) || "";
|
|
1429
|
+
C("paste", b), je.value && o.preventDefault();
|
|
1430
1430
|
};
|
|
1431
|
-
return
|
|
1432
|
-
|
|
1433
|
-
}, { immediate: !0 }),
|
|
1431
|
+
return G(Z, (o) => {
|
|
1432
|
+
Tt.value = o;
|
|
1433
|
+
}, { immediate: !0 }), G(ee, (o) => {
|
|
1434
1434
|
if (o != null)
|
|
1435
1435
|
if (Z.value === "number" && typeof o == "number")
|
|
1436
1436
|
o !== L.value && (L.value = o);
|
|
@@ -1440,115 +1440,115 @@ const Ml = ["id"], Nl = ["for"], Fl = {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
else
|
|
1442
1442
|
L.value !== "" && (L.value = "");
|
|
1443
|
-
}, { immediate: !0 }),
|
|
1444
|
-
|
|
1445
|
-
}),
|
|
1443
|
+
}, { immediate: !0 }), G(L, (o) => {
|
|
1444
|
+
ze.value && typeof o == "string" && (o = o.trim()), C("changed", rt(o));
|
|
1445
|
+
}), G(vt, (o) => {
|
|
1446
1446
|
C(o ? "focused" : "blurred");
|
|
1447
|
-
}),
|
|
1447
|
+
}), G(kt, (o) => {
|
|
1448
1448
|
C("show-input-eye", o);
|
|
1449
|
-
}, { immediate: !0 }),
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
1449
|
+
}, { immediate: !0 }), G(L, (o) => {
|
|
1450
|
+
ze.value && typeof o == "string" && (o = o.trim()), C("current-value", rt(o));
|
|
1451
|
+
}), G(Z, (o) => {
|
|
1452
1452
|
o === "password" && nextTick(() => {
|
|
1453
1453
|
const b = document.getElementById(h.value);
|
|
1454
1454
|
b && (b.type = "password", b.removeAttribute("autocomplete"));
|
|
1455
1455
|
});
|
|
1456
|
-
}), (o, b) => u(
|
|
1456
|
+
}), (o, b) => u(_) ? (W(), P("div", Aa({
|
|
1457
1457
|
key: 0,
|
|
1458
1458
|
class: ["nb-wrapper", It.value],
|
|
1459
1459
|
style: [Et.value, Gt.value, $t.value],
|
|
1460
1460
|
role: "input"
|
|
1461
1461
|
}, ba.value), [
|
|
1462
|
-
|
|
1463
|
-
id: u(
|
|
1464
|
-
class: Ee(["nb-reset", "component", f.value, w.value,
|
|
1465
|
-
style:
|
|
1462
|
+
ve("div", {
|
|
1463
|
+
id: u(_),
|
|
1464
|
+
class: Ee(["nb-reset", "component", f.value, w.value, U.value, fa.value]),
|
|
1465
|
+
style: Be([Nt.value, Gt.value, $t.value]),
|
|
1466
1466
|
onClick: zt
|
|
1467
1467
|
}, [
|
|
1468
|
-
u(Qe) ? (
|
|
1468
|
+
u(Qe) ? (W(), P("label", {
|
|
1469
1469
|
key: 0,
|
|
1470
|
-
for:
|
|
1470
|
+
for: Te.value,
|
|
1471
1471
|
class: "component__label",
|
|
1472
|
-
style:
|
|
1472
|
+
style: Be([Zt.value]),
|
|
1473
1473
|
onClick: Va
|
|
1474
1474
|
}, [
|
|
1475
1475
|
qt(Dt(u(Mt)), 1),
|
|
1476
|
-
e.required ? (
|
|
1477
|
-
], 12, Nl)) :
|
|
1478
|
-
D.value ? (
|
|
1476
|
+
e.required ? (W(), P("span", Fl, "*")) : oe("", !0)
|
|
1477
|
+
], 12, Nl)) : oe("", !0),
|
|
1478
|
+
D.value ? (W(), P("div", {
|
|
1479
1479
|
key: 1,
|
|
1480
1480
|
class: Ee(["component__eye", Qt.value]),
|
|
1481
|
-
style:
|
|
1481
|
+
style: Be([$t.value]),
|
|
1482
1482
|
onClick: Ot
|
|
1483
1483
|
}, [
|
|
1484
|
-
|
|
1485
|
-
for:
|
|
1484
|
+
ve("label", {
|
|
1485
|
+
for: Te.value,
|
|
1486
1486
|
class: Ee(["component__eye-icon", "fas"])
|
|
1487
1487
|
}, [
|
|
1488
|
-
e.inputEyeCustomIcon ? (
|
|
1489
|
-
|
|
1488
|
+
e.inputEyeCustomIcon ? (W(), P("span", Il, [
|
|
1489
|
+
kt.value ? Ba(o.$slots, "eye-icon-show", { key: 0 }, () => [
|
|
1490
1490
|
b[4] || (b[4] = qt("show"))
|
|
1491
1491
|
], !0) : Ba(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
|
|
1492
1492
|
b[5] || (b[5] = qt("hidden"))
|
|
1493
1493
|
], !0)
|
|
1494
|
-
])) : (
|
|
1494
|
+
])) : (W(), P("span", Wl, Dt(Ve.value), 1))
|
|
1495
1495
|
], 8, zl)
|
|
1496
|
-
], 6)) :
|
|
1497
|
-
za(
|
|
1496
|
+
], 6)) : oe("", !0),
|
|
1497
|
+
za(ve("input", {
|
|
1498
1498
|
ref_key: "inputRef",
|
|
1499
|
-
ref:
|
|
1500
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1501
|
-
id:
|
|
1502
|
-
name:
|
|
1503
|
-
type:
|
|
1499
|
+
ref: z,
|
|
1500
|
+
"onUpdate:modelValue": b[0] || (b[0] = (ke) => L.value = ke),
|
|
1501
|
+
id: Te.value,
|
|
1502
|
+
name: Te.value,
|
|
1503
|
+
type: Tt.value,
|
|
1504
1504
|
class: Ee(["component__input", [
|
|
1505
1505
|
i.value,
|
|
1506
1506
|
pa.value,
|
|
1507
1507
|
Kt.value
|
|
1508
1508
|
]]),
|
|
1509
1509
|
placeholder: va.value,
|
|
1510
|
-
disabled: u(
|
|
1510
|
+
disabled: u(N) || u(I),
|
|
1511
1511
|
required: e.required,
|
|
1512
|
-
readonly: u(
|
|
1512
|
+
readonly: u(I),
|
|
1513
1513
|
autocomplete: e.inputAutocomplete,
|
|
1514
|
-
tabindex: u(
|
|
1514
|
+
tabindex: u(N) || u(I) ? -1 : u(tt),
|
|
1515
1515
|
min: Ft.value ? e.min : void 0,
|
|
1516
1516
|
max: Ft.value ? e.max : void 0,
|
|
1517
1517
|
step: Ft.value ? e.step : void 0,
|
|
1518
1518
|
role: "input",
|
|
1519
|
-
style:
|
|
1520
|
-
onFocus: b[1] || (b[1] = (
|
|
1521
|
-
onBlur: b[2] || (b[2] = (
|
|
1522
|
-
onKeydown: b[3] || (b[3] = la((
|
|
1519
|
+
style: Be([$t.value, _t.value]),
|
|
1520
|
+
onFocus: b[1] || (b[1] = (ke) => vt.value = !0),
|
|
1521
|
+
onBlur: b[2] || (b[2] = (ke) => vt.value = !1),
|
|
1522
|
+
onKeydown: b[3] || (b[3] = la((ke) => !u(N) && u(pe) && Xt(), ["enter"])),
|
|
1523
1523
|
onPaste: Ta
|
|
1524
1524
|
}, null, 46, El), [
|
|
1525
1525
|
[fl, L.value]
|
|
1526
1526
|
]),
|
|
1527
|
-
u(p) ? (
|
|
1527
|
+
u(p) ? (W(), P("label", {
|
|
1528
1528
|
key: 2,
|
|
1529
|
-
for:
|
|
1529
|
+
for: Te.value,
|
|
1530
1530
|
class: Ee(["component__icon", ha.value])
|
|
1531
1531
|
}, [
|
|
1532
1532
|
Ba(o.$slots, "icon", {}, () => [
|
|
1533
|
-
b[6] || (b[6] =
|
|
1533
|
+
b[6] || (b[6] = ve("span", null, "♥", -1))
|
|
1534
1534
|
], !0)
|
|
1535
|
-
], 10, Pl)) :
|
|
1535
|
+
], 10, Pl)) : oe("", !0)
|
|
1536
1536
|
], 14, Ml),
|
|
1537
|
-
ya.value ? (
|
|
1537
|
+
ya.value ? (W(), P("div", {
|
|
1538
1538
|
key: 0,
|
|
1539
1539
|
class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
1540
1540
|
}, [
|
|
1541
1541
|
Ba(o.$slots, "message", {}, () => [
|
|
1542
1542
|
qt(Dt(e.message), 1)
|
|
1543
1543
|
], !0)
|
|
1544
|
-
], 2)) :
|
|
1545
|
-
], 16)) :
|
|
1544
|
+
], 2)) : oe("", !0)
|
|
1545
|
+
], 16)) : oe("", !0);
|
|
1546
1546
|
}
|
|
1547
1547
|
}), Ol = /* @__PURE__ */ Wa(_l, [["__scopeId", "data-v-1dc2e4db"]]);
|
|
1548
1548
|
const Hl = ["for"], ql = {
|
|
1549
1549
|
key: 0,
|
|
1550
1550
|
class: "component__label--required"
|
|
1551
|
-
}, jl = ["id"],
|
|
1551
|
+
}, jl = ["id"], Ul = ["onClick"], Yl = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], Gl = /* @__PURE__ */ Object.assign({
|
|
1552
1552
|
name: "NbInputChip",
|
|
1553
1553
|
inheritAttrs: !1
|
|
1554
1554
|
}, {
|
|
@@ -1891,124 +1891,124 @@ const Hl = ["for"], ql = {
|
|
|
1891
1891
|
emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred", "paste"],
|
|
1892
1892
|
setup(e, { emit: S }) {
|
|
1893
1893
|
Na((f) => ({
|
|
1894
|
-
"47d9637a":
|
|
1895
|
-
"65b71666":
|
|
1896
|
-
"40cfe1aa": u(
|
|
1894
|
+
"47d9637a": jt.value,
|
|
1895
|
+
"65b71666": z.value,
|
|
1896
|
+
"40cfe1aa": u(gt),
|
|
1897
1897
|
"11f69f5a": u(Ue),
|
|
1898
1898
|
"7e5dfe4c": u(_e),
|
|
1899
|
-
"81b13832": u(
|
|
1900
|
-
"29dc2dbf": u(
|
|
1901
|
-
"09f33a88": u(
|
|
1902
|
-
"0b5826d6": u(
|
|
1903
|
-
"19e63f86": u(
|
|
1904
|
-
"4ccfad94": u(
|
|
1905
|
-
"1a618ed1": u(
|
|
1899
|
+
"81b13832": u(tt),
|
|
1900
|
+
"29dc2dbf": u(we),
|
|
1901
|
+
"09f33a88": u(Se),
|
|
1902
|
+
"0b5826d6": u(st),
|
|
1903
|
+
"19e63f86": u(it),
|
|
1904
|
+
"4ccfad94": u(Lt),
|
|
1905
|
+
"1a618ed1": u(Ye),
|
|
1906
1906
|
c19173ae: u(x),
|
|
1907
1907
|
d62c3f1c: u($),
|
|
1908
1908
|
"2f211428": u(ee),
|
|
1909
|
-
"8764e57c": u(
|
|
1910
|
-
"3b29a854":
|
|
1911
|
-
b3f81bb4:
|
|
1912
|
-
"2813ea10":
|
|
1909
|
+
"8764e57c": u(bt),
|
|
1910
|
+
"3b29a854": j.value,
|
|
1911
|
+
b3f81bb4: kt.value,
|
|
1912
|
+
"2813ea10": vt.value,
|
|
1913
1913
|
"5d9d5490": A.value,
|
|
1914
1914
|
"1883778b": f.styleButtonColor,
|
|
1915
1915
|
"4be6b620": L.value,
|
|
1916
|
-
"4b848537": u(
|
|
1917
|
-
"3360c130": u(
|
|
1916
|
+
"4b848537": u(ut),
|
|
1917
|
+
"3360c130": u(Bt),
|
|
1918
1918
|
"5309a9be": u(Oe),
|
|
1919
|
-
"755e621a": u(
|
|
1919
|
+
"755e621a": u(se)
|
|
1920
1920
|
})), La(() => {
|
|
1921
|
-
K.value.length > 0 && (
|
|
1921
|
+
K.value.length > 0 && (Ce.value = K.value);
|
|
1922
1922
|
});
|
|
1923
|
-
const C = S,
|
|
1924
|
-
nbId:
|
|
1925
|
-
display:
|
|
1926
|
-
textColor:
|
|
1927
|
-
paddingX:
|
|
1928
|
-
paddingY:
|
|
1929
|
-
borderRadius:
|
|
1923
|
+
const C = S, B = e, {
|
|
1924
|
+
nbId: _,
|
|
1925
|
+
display: Le,
|
|
1926
|
+
textColor: pe,
|
|
1927
|
+
paddingX: Ne,
|
|
1928
|
+
paddingY: Ae,
|
|
1929
|
+
borderRadius: re,
|
|
1930
1930
|
disabled: J,
|
|
1931
1931
|
fontFamily: Pe,
|
|
1932
|
-
fontSize:
|
|
1932
|
+
fontSize: Fe,
|
|
1933
1933
|
fontWeight: ae,
|
|
1934
1934
|
currentList: K,
|
|
1935
|
-
allowDuplicates:
|
|
1935
|
+
allowDuplicates: N,
|
|
1936
1936
|
minChips: le,
|
|
1937
|
-
maxChips:
|
|
1937
|
+
maxChips: ue,
|
|
1938
1938
|
inputPosition: Q,
|
|
1939
|
-
width:
|
|
1940
|
-
inputName:
|
|
1941
|
-
inputPlaceholder:
|
|
1942
|
-
inputUppercase:
|
|
1939
|
+
width: $e,
|
|
1940
|
+
inputName: ie,
|
|
1941
|
+
inputPlaceholder: H,
|
|
1942
|
+
inputUppercase: ge,
|
|
1943
1943
|
inputReadonly: X,
|
|
1944
|
-
blockPaste:
|
|
1945
|
-
inputAutocomplete:
|
|
1946
|
-
required:
|
|
1947
|
-
textAlign:
|
|
1948
|
-
hasBorderRadius:
|
|
1944
|
+
blockPaste: he,
|
|
1945
|
+
inputAutocomplete: ye,
|
|
1946
|
+
required: be,
|
|
1947
|
+
textAlign: I,
|
|
1948
|
+
hasBorderRadius: je,
|
|
1949
1949
|
activeTextStyle: v,
|
|
1950
1950
|
theme: Z,
|
|
1951
|
-
inputStyle:
|
|
1951
|
+
inputStyle: ze,
|
|
1952
1952
|
lightBgColor: Ue,
|
|
1953
1953
|
lightBgColorFocus: h,
|
|
1954
1954
|
lightBorderColor: _e,
|
|
1955
1955
|
lightBorderColorFocus: ee,
|
|
1956
|
-
lightDisabledBgColor:
|
|
1957
|
-
lightTextColor:
|
|
1958
|
-
lightChipBgColor:
|
|
1959
|
-
lightChipTextColor:
|
|
1960
|
-
lightChipRemoveColor:
|
|
1961
|
-
lightDisabledBorderColor:
|
|
1962
|
-
darkBgColor:
|
|
1963
|
-
darkBgColorFocus:
|
|
1964
|
-
darkBorderColor:
|
|
1965
|
-
darkBorderColorFocus:
|
|
1956
|
+
lightDisabledBgColor: ut,
|
|
1957
|
+
lightTextColor: gt,
|
|
1958
|
+
lightChipBgColor: tt,
|
|
1959
|
+
lightChipTextColor: we,
|
|
1960
|
+
lightChipRemoveColor: Se,
|
|
1961
|
+
lightDisabledBorderColor: Bt,
|
|
1962
|
+
darkBgColor: it,
|
|
1963
|
+
darkBgColorFocus: yt,
|
|
1964
|
+
darkBorderColor: Lt,
|
|
1965
|
+
darkBorderColorFocus: bt,
|
|
1966
1966
|
darkDisabledBgColor: Oe,
|
|
1967
|
-
darkTextColor:
|
|
1968
|
-
darkChipBgColor:
|
|
1967
|
+
darkTextColor: st,
|
|
1968
|
+
darkChipBgColor: Ye,
|
|
1969
1969
|
darkChipTextColor: x,
|
|
1970
1970
|
darkChipRemoveColor: $,
|
|
1971
|
-
darkDisabledBorderColor:
|
|
1972
|
-
tabIndex:
|
|
1973
|
-
hasTabIndexEnter:
|
|
1974
|
-
ariaLabel:
|
|
1971
|
+
darkDisabledBorderColor: se,
|
|
1972
|
+
tabIndex: q,
|
|
1973
|
+
hasTabIndexEnter: de,
|
|
1974
|
+
ariaLabel: at,
|
|
1975
1975
|
ariaAttrs: Ge,
|
|
1976
|
-
caretColor:
|
|
1976
|
+
caretColor: We,
|
|
1977
1977
|
selectionBgColor: p,
|
|
1978
|
-
selectionTextColor:
|
|
1979
|
-
showLabel:
|
|
1980
|
-
label:
|
|
1981
|
-
labelBackground:
|
|
1982
|
-
labelPadding:
|
|
1983
|
-
labelBorderRadius:
|
|
1984
|
-
labelLeft:
|
|
1978
|
+
selectionTextColor: T,
|
|
1979
|
+
showLabel: te,
|
|
1980
|
+
label: ne,
|
|
1981
|
+
labelBackground: ce,
|
|
1982
|
+
labelPadding: De,
|
|
1983
|
+
labelBorderRadius: xe,
|
|
1984
|
+
labelLeft: Re,
|
|
1985
1985
|
inputLabelMarginActive: Ie,
|
|
1986
|
-
labelActiveTop:
|
|
1986
|
+
labelActiveTop: He,
|
|
1987
1987
|
labelActiveLeft: Ke,
|
|
1988
|
-
fontFamilyLabel:
|
|
1988
|
+
fontFamilyLabel: dt,
|
|
1989
1989
|
fontSizeLabel: ct,
|
|
1990
1990
|
fontSizeLabelActive: Rt,
|
|
1991
|
-
fontWeightLabel:
|
|
1992
|
-
lightTextColorLabel:
|
|
1991
|
+
fontWeightLabel: mt,
|
|
1992
|
+
lightTextColorLabel: ht,
|
|
1993
1993
|
lightTextColorLabelActive: Qe,
|
|
1994
1994
|
darkTextColorLabel: Mt,
|
|
1995
1995
|
darkTextColorLabelActive: Ze,
|
|
1996
|
-
fontFamilyChip:
|
|
1997
|
-
fontSizeChip:
|
|
1998
|
-
fontWeightChip:
|
|
1999
|
-
} = Fa(
|
|
2000
|
-
const f = J.value ? "component-disabled" : "", w =
|
|
1996
|
+
fontFamilyChip: ft,
|
|
1997
|
+
fontSizeChip: m,
|
|
1998
|
+
fontWeightChip: R
|
|
1999
|
+
} = Fa(B), g = Y(""), St = Y(null), lt = Y(null), xt = Y(null), Ce = Y([]), nt = Y(!1), fe = a(() => {
|
|
2000
|
+
const f = J.value ? "component-disabled" : "", w = Le.value !== "b" ? "inline-block" : "block", U = !$e.value || $e.value < 185 ? 185 : $e.value, i = pe ? pe.value : "ffffff", D = We.value ? We.value : "", Ve = p.value ? p.value : "", Te = T.value ? T.value : "", va = Ne.value !== 0 && !Ne.value || Ne.value < 0 ? 1 : Ne.value, Pt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0.2 : Ae.value, pa = re.value !== 0 && !re.value || re.value < 0 ? 0 : re.value, Qt = Pe.value ? Pe.value : "'Lato', sans-serif", ga = Fe.value ? Fe.value : "1.2em", ya = ae.value !== 0 && !ae.value || ae.value < 0 ? 100 : ae.value, ba = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, ma = ue.value !== 0 && !ue.value || ue.value < 0 ? 10 : ue.value, wt = !Q.value || !["top", "bottom"].includes(Q.value) ? "bottom" : Q.value, ha = !ze.value || !["background", "line", "border"].includes(ze.value) ? "background" : ze.value, Sa = Z.value ? Z.value : "light", xa = te.value ? te.value : !1, Ca = Re.value !== 0 && !Re.value || Re.value < 0 ? 5 : Re.value, ot = ce.value ? ce.value : "transparent", _t = Ie.value !== 0 && !Ie.value || Ie.value < 0 ? 15 : Ie.value, Zt = De.value ? De.value : "1px 5px", Jt = xe.value !== 0 && !xe.value || xe.value < 0 ? 0 : xe.value, Ot = He.value === null || He.value === void 0 ? -13 : He.value, Ft = Ke.value === null || Ke.value === void 0 ? 5 : Ke.value, rt = dt.value ? dt.value : "'Lato', sans-serif", zt = ct.value ? ct.value : "1em", Va = Rt.value ? Rt.value : "0.8em", Xt = mt.value ? mt.value : 400, Ta = ht.value ? ht.value : "#333333", o = Mt.value ? Mt.value : "#ffffff", b = Qe.value ? Qe.value : "#333333", ke = Ze.value ? Ze.value : "#ffffff", Je = ft.value ? ft.value : "'Lato', sans-serif", ka = m.value ? m.value : "1.2em", ea = R.value ? R.value : 400;
|
|
2001
2001
|
return {
|
|
2002
2002
|
disabled: f,
|
|
2003
2003
|
display: w,
|
|
2004
|
-
width:
|
|
2004
|
+
width: U,
|
|
2005
2005
|
font: Qt,
|
|
2006
2006
|
fontSize: ga,
|
|
2007
2007
|
fontWeight: ya,
|
|
2008
2008
|
textColor: i,
|
|
2009
2009
|
caretColor: D,
|
|
2010
|
-
selectionBgColor:
|
|
2011
|
-
selectionTextColor:
|
|
2010
|
+
selectionBgColor: Ve,
|
|
2011
|
+
selectionTextColor: Te,
|
|
2012
2012
|
paddingX: va,
|
|
2013
2013
|
paddingY: Pt,
|
|
2014
2014
|
borderRadius: pa,
|
|
@@ -2019,39 +2019,39 @@ const Hl = ["for"], ql = {
|
|
|
2019
2019
|
theme: Sa,
|
|
2020
2020
|
showLabel: xa,
|
|
2021
2021
|
labelLeft: Ca,
|
|
2022
|
-
labelBackground:
|
|
2022
|
+
labelBackground: ot,
|
|
2023
2023
|
inputLabelMarginActive: _t,
|
|
2024
2024
|
labelPadding: Zt,
|
|
2025
2025
|
labelBorderRadius: Jt,
|
|
2026
2026
|
labelActiveTop: Ot,
|
|
2027
2027
|
labelActiveLeft: Ft,
|
|
2028
|
-
fontFamilyLabel:
|
|
2028
|
+
fontFamilyLabel: rt,
|
|
2029
2029
|
fontSizeLabel: zt,
|
|
2030
2030
|
fontSizeLabelActive: Va,
|
|
2031
2031
|
fontWeightLabel: Xt,
|
|
2032
2032
|
lightTextColorLabel: Ta,
|
|
2033
2033
|
darkTextColorLabel: o,
|
|
2034
2034
|
lightTextColorLabelActive: b,
|
|
2035
|
-
darkTextColorLabelActive:
|
|
2035
|
+
darkTextColorLabelActive: ke,
|
|
2036
2036
|
fontFamilyChip: Je,
|
|
2037
2037
|
fontSizeChip: ka,
|
|
2038
2038
|
fontWeightChip: ea
|
|
2039
2039
|
};
|
|
2040
|
-
}),
|
|
2041
|
-
display:
|
|
2042
|
-
})),
|
|
2043
|
-
const f =
|
|
2040
|
+
}), Ct = a(() => fe.value.disabled), Vt = a(() => ({
|
|
2041
|
+
display: fe.value.display
|
|
2042
|
+
})), j = a(() => {
|
|
2043
|
+
const f = fe.value;
|
|
2044
2044
|
return f.fontSize ? f.fontSize : "1.2em";
|
|
2045
|
-
}),
|
|
2046
|
-
const f =
|
|
2045
|
+
}), At = a(() => {
|
|
2046
|
+
const f = fe.value, w = $t.value;
|
|
2047
2047
|
return {
|
|
2048
2048
|
color: f.textColor,
|
|
2049
2049
|
padding: `${f.paddingY}rem ${f.paddingX}rem`,
|
|
2050
2050
|
fontWeight: f.fontWeight,
|
|
2051
|
-
textAlign:
|
|
2052
|
-
marginTop: w &&
|
|
2051
|
+
textAlign: I.value,
|
|
2052
|
+
marginTop: w && te.value ? `${f.inputLabelMarginActive}px` : "0"
|
|
2053
2053
|
};
|
|
2054
|
-
}),
|
|
2054
|
+
}), F = a(() => {
|
|
2055
2055
|
switch (v.value) {
|
|
2056
2056
|
case "italic":
|
|
2057
2057
|
return "component__text--italic";
|
|
@@ -2060,46 +2060,46 @@ const Hl = ["for"], ql = {
|
|
|
2060
2060
|
default:
|
|
2061
2061
|
return "component__text--normal";
|
|
2062
2062
|
}
|
|
2063
|
-
}),
|
|
2064
|
-
const f =
|
|
2065
|
-
return f.inputStyle !== "line" &&
|
|
2066
|
-
}),
|
|
2063
|
+
}), E = a(() => {
|
|
2064
|
+
const f = fe.value;
|
|
2065
|
+
return f.inputStyle !== "line" && je.value ? { borderRadius: `${f.borderRadius}rem` } : {};
|
|
2066
|
+
}), jt = a(() => fe.value.font), L = a(() => fe.value.textColor), z = a(() => fe.value.inputPosition === "top" ? "column" : "column-reverse"), Tt = a(() => {
|
|
2067
2067
|
const f = {};
|
|
2068
2068
|
Ge.value && Object.keys(Ge.value).forEach((i) => f[`aria-${i}`] = Ge.value[i]);
|
|
2069
2069
|
const w = {
|
|
2070
|
-
"aria-label":
|
|
2070
|
+
"aria-label": at.value,
|
|
2071
2071
|
"aria-disabled": J.value,
|
|
2072
2072
|
...f
|
|
2073
2073
|
};
|
|
2074
2074
|
return Object.fromEntries(
|
|
2075
|
-
Object.entries(w).filter(([
|
|
2075
|
+
Object.entries(w).filter(([U, i]) => i != null)
|
|
2076
2076
|
);
|
|
2077
|
-
}),
|
|
2078
|
-
const f =
|
|
2077
|
+
}), kt = a(() => {
|
|
2078
|
+
const f = fe.value;
|
|
2079
2079
|
return f.caretColor || (f.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2080
|
-
}),
|
|
2081
|
-
const f =
|
|
2080
|
+
}), vt = a(() => {
|
|
2081
|
+
const f = fe.value;
|
|
2082
2082
|
return f.selectionBgColor || (f.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2083
2083
|
}), A = a(() => {
|
|
2084
|
-
const f =
|
|
2084
|
+
const f = fe.value;
|
|
2085
2085
|
return f.selectionTextColor || (f.theme === "dark" ? "#000000" : "#ffffff");
|
|
2086
2086
|
}), It = a(() => ({
|
|
2087
|
-
caretColor:
|
|
2087
|
+
caretColor: kt.value
|
|
2088
2088
|
})), Et = a(() => ({
|
|
2089
|
-
"--selection-bg-color":
|
|
2089
|
+
"--selection-bg-color": vt.value,
|
|
2090
2090
|
"--selection-text-color": A.value
|
|
2091
2091
|
})), na = a(() => {
|
|
2092
|
-
const f =
|
|
2092
|
+
const f = fe.value, w = {
|
|
2093
2093
|
width: `${f.width}px`
|
|
2094
2094
|
};
|
|
2095
2095
|
return f.display === "block" ? { width: "auto" } : w;
|
|
2096
|
-
}), Nt = a(() =>
|
|
2097
|
-
const f =
|
|
2096
|
+
}), Nt = a(() => ie.value ? ie.value : `${_.value}-name-label`), $t = a(() => nt.value || Ce.value.length > 0 || g.value && g.value.trim().length > 0), oa = a(() => te.value ? nt.value || Ce.value.length > 0 ? H.value : "" : H.value), ra = a(() => {
|
|
2097
|
+
const f = fe.value, w = $t.value, U = w ? f.lightTextColorLabelActive : f.lightTextColorLabel, i = w ? f.darkTextColorLabelActive : f.darkTextColorLabel;
|
|
2098
2098
|
return {
|
|
2099
2099
|
fontFamily: f.fontFamilyLabel,
|
|
2100
2100
|
fontSize: w ? f.fontSizeLabelActive : f.fontSizeLabel,
|
|
2101
2101
|
fontWeight: f.fontWeightLabel,
|
|
2102
|
-
color: f.theme === "dark" ? i :
|
|
2102
|
+
color: f.theme === "dark" ? i : U,
|
|
2103
2103
|
top: w ? `${f.labelActiveTop}px` : "50%",
|
|
2104
2104
|
left: w ? `${f.labelActiveLeft}px` : `${f.labelLeft}px`,
|
|
2105
2105
|
transform: w ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -2108,8 +2108,8 @@ const Hl = ["for"], ql = {
|
|
|
2108
2108
|
padding: w ? f.labelPadding : "0",
|
|
2109
2109
|
borderRadius: w ? `${f.labelBorderRadius}rem` : "0"
|
|
2110
2110
|
};
|
|
2111
|
-
}),
|
|
2112
|
-
const f =
|
|
2111
|
+
}), Ut = a(() => {
|
|
2112
|
+
const f = fe.value;
|
|
2113
2113
|
return {
|
|
2114
2114
|
fontSize: f.fontSizeChip,
|
|
2115
2115
|
fontWeight: f.fontWeightChip,
|
|
@@ -2123,7 +2123,7 @@ const Hl = ["for"], ql = {
|
|
|
2123
2123
|
return "component__theme--light";
|
|
2124
2124
|
}
|
|
2125
2125
|
}), ia = a(() => {
|
|
2126
|
-
switch (
|
|
2126
|
+
switch (ze.value) {
|
|
2127
2127
|
case "line":
|
|
2128
2128
|
return "component__input--line";
|
|
2129
2129
|
case "border":
|
|
@@ -2131,104 +2131,104 @@ const Hl = ["for"], ql = {
|
|
|
2131
2131
|
default:
|
|
2132
2132
|
return "component__input--background";
|
|
2133
2133
|
}
|
|
2134
|
-
}),
|
|
2134
|
+
}), Yt = () => {
|
|
2135
2135
|
C("clicked");
|
|
2136
2136
|
}, sa = () => {
|
|
2137
|
-
|
|
2137
|
+
nt.value = !0, C("focused");
|
|
2138
2138
|
}, da = () => {
|
|
2139
|
-
|
|
2139
|
+
nt.value = !1, C("blurred");
|
|
2140
2140
|
}, ca = async (f) => {
|
|
2141
|
-
var
|
|
2142
|
-
const w = ((
|
|
2143
|
-
C("paste", w),
|
|
2141
|
+
var U;
|
|
2142
|
+
const w = ((U = f.clipboardData) == null ? void 0 : U.getData("text")) || "";
|
|
2143
|
+
C("paste", w), he.value && f.preventDefault();
|
|
2144
2144
|
}, Gt = (f) => {
|
|
2145
2145
|
if (!(J.value || X.value) && f.key === "Enter" && g.value.trim() !== "") {
|
|
2146
2146
|
f.preventDefault();
|
|
2147
2147
|
let w = g.value.trim();
|
|
2148
|
-
|
|
2148
|
+
ge.value && (w = w.toUpperCase()), (N.value || !Ce.value.includes(w)) && fa(w), g.value = "";
|
|
2149
2149
|
}
|
|
2150
2150
|
}, fa = (f) => {
|
|
2151
|
-
|
|
2151
|
+
Ce.value.push(f), C("added", f);
|
|
2152
2152
|
}, Kt = (f) => {
|
|
2153
|
-
|
|
2153
|
+
Ce.value = Ce.value.filter((w) => w !== f), C("removed", f);
|
|
2154
2154
|
};
|
|
2155
|
-
return
|
|
2156
|
-
|
|
2157
|
-
}),
|
|
2155
|
+
return G(K, (f) => {
|
|
2156
|
+
Ce.value = f, C("changed", f);
|
|
2157
|
+
}), G(g, (f) => {
|
|
2158
2158
|
C("input-changed", f);
|
|
2159
|
-
}), (f, w) => u(
|
|
2159
|
+
}), (f, w) => u(_) ? (W(), P("div", Aa({
|
|
2160
2160
|
key: 0,
|
|
2161
|
-
class: ["nb-wrapper",
|
|
2162
|
-
style: [
|
|
2161
|
+
class: ["nb-wrapper", Ct.value],
|
|
2162
|
+
style: [Vt.value],
|
|
2163
2163
|
role: "input"
|
|
2164
|
-
},
|
|
2165
|
-
u(
|
|
2164
|
+
}, Tt.value, { onClick: Yt }), [
|
|
2165
|
+
u(te) ? (W(), P("label", {
|
|
2166
2166
|
key: 0,
|
|
2167
2167
|
for: Nt.value,
|
|
2168
2168
|
class: "component__label",
|
|
2169
|
-
style:
|
|
2169
|
+
style: Be([ra.value])
|
|
2170
2170
|
}, [
|
|
2171
|
-
qt(Dt(u(
|
|
2172
|
-
u(
|
|
2173
|
-
], 12, Hl)) :
|
|
2174
|
-
|
|
2175
|
-
id: u(
|
|
2171
|
+
qt(Dt(u(ne)), 1),
|
|
2172
|
+
u(be) ? (W(), P("span", ql, "*")) : oe("", !0)
|
|
2173
|
+
], 12, Hl)) : oe("", !0),
|
|
2174
|
+
ve("div", {
|
|
2175
|
+
id: u(_),
|
|
2176
2176
|
ref_key: "chipsContainer",
|
|
2177
|
-
ref:
|
|
2177
|
+
ref: St,
|
|
2178
2178
|
class: Ee(["nb-reset", "component", ua.value, ia.value]),
|
|
2179
|
-
style:
|
|
2179
|
+
style: Be([At.value, na.value, E.value])
|
|
2180
2180
|
}, [
|
|
2181
|
-
|
|
2181
|
+
Ce.value.length > 0 ? (W(), P("div", {
|
|
2182
2182
|
key: 0,
|
|
2183
2183
|
ref_key: "chips",
|
|
2184
|
-
ref:
|
|
2184
|
+
ref: xt,
|
|
2185
2185
|
class: "chips"
|
|
2186
2186
|
}, [
|
|
2187
|
-
(
|
|
2188
|
-
key:
|
|
2187
|
+
(W(!0), P(dl, null, cl(Ce.value, (U) => (W(), P("div", {
|
|
2188
|
+
key: U,
|
|
2189
2189
|
class: "chip"
|
|
2190
2190
|
}, [
|
|
2191
2191
|
Ba(f.$slots, "chip", {
|
|
2192
|
-
chips:
|
|
2193
|
-
chip:
|
|
2192
|
+
chips: Ce.value,
|
|
2193
|
+
chip: U,
|
|
2194
2194
|
removeChip: Kt
|
|
2195
2195
|
}, () => [
|
|
2196
|
-
|
|
2196
|
+
ve("span", {
|
|
2197
2197
|
class: "chip-text",
|
|
2198
|
-
style:
|
|
2199
|
-
}, Dt(
|
|
2200
|
-
!u(J) && !u(X) ? (
|
|
2198
|
+
style: Be([Ut.value])
|
|
2199
|
+
}, Dt(U), 5),
|
|
2200
|
+
!u(J) && !u(X) ? (W(), P("span", {
|
|
2201
2201
|
key: 0,
|
|
2202
2202
|
class: "chip-remove",
|
|
2203
|
-
style:
|
|
2204
|
-
onClick: (i) => Kt(
|
|
2205
|
-
}, "×", 12,
|
|
2203
|
+
style: Be([Ut.value]),
|
|
2204
|
+
onClick: (i) => Kt(U)
|
|
2205
|
+
}, "×", 12, Ul)) : oe("", !0)
|
|
2206
2206
|
], !0)
|
|
2207
2207
|
]))), 128))
|
|
2208
|
-
], 512)) :
|
|
2209
|
-
za(
|
|
2208
|
+
], 512)) : oe("", !0),
|
|
2209
|
+
za(ve("input", {
|
|
2210
2210
|
ref_key: "chipInput",
|
|
2211
|
-
ref:
|
|
2211
|
+
ref: lt,
|
|
2212
2212
|
type: "text",
|
|
2213
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
2213
|
+
"onUpdate:modelValue": w[0] || (w[0] = (U) => g.value = U),
|
|
2214
2214
|
id: Nt.value,
|
|
2215
2215
|
name: Nt.value,
|
|
2216
2216
|
placeholder: oa.value,
|
|
2217
2217
|
readonly: u(X),
|
|
2218
|
-
autocomplete: u(
|
|
2219
|
-
required: u(
|
|
2220
|
-
tabindex: u(J) || u(X) ? -1 : u(
|
|
2221
|
-
class: Ee(["chips-input",
|
|
2222
|
-
style:
|
|
2223
|
-
onKeydown: w[1] || (w[1] = la((
|
|
2218
|
+
autocomplete: u(ye),
|
|
2219
|
+
required: u(be),
|
|
2220
|
+
tabindex: u(J) || u(X) ? -1 : u(q),
|
|
2221
|
+
class: Ee(["chips-input", F.value]),
|
|
2222
|
+
style: Be([It.value, Et.value]),
|
|
2223
|
+
onKeydown: w[1] || (w[1] = la((U) => !u(J) && u(de) && Gt(U), ["enter"])),
|
|
2224
2224
|
onFocus: sa,
|
|
2225
2225
|
onBlur: da,
|
|
2226
2226
|
onPaste: ca
|
|
2227
|
-
}, null, 46,
|
|
2227
|
+
}, null, 46, Yl), [
|
|
2228
2228
|
[vl, g.value]
|
|
2229
2229
|
])
|
|
2230
2230
|
], 14, jl)
|
|
2231
|
-
], 16)) :
|
|
2231
|
+
], 16)) : oe("", !0);
|
|
2232
2232
|
}
|
|
2233
2233
|
}), Kl = /* @__PURE__ */ Wa(Gl, [["__scopeId", "data-v-8a410829"]]);
|
|
2234
2234
|
const Ql = ["id"], Zl = ["for"], Jl = {
|
|
@@ -2629,108 +2629,108 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2629
2629
|
],
|
|
2630
2630
|
setup(e, { emit: S }) {
|
|
2631
2631
|
Na((i) => ({
|
|
2632
|
-
a404ea36:
|
|
2633
|
-
"08e3a654": u(
|
|
2634
|
-
"08d189db":
|
|
2635
|
-
"74be46ed":
|
|
2632
|
+
a404ea36: fe.value,
|
|
2633
|
+
"08e3a654": u(tt),
|
|
2634
|
+
"08d189db": E.value,
|
|
2635
|
+
"74be46ed": jt.value,
|
|
2636
2636
|
55733176: L.value,
|
|
2637
|
-
f0c424ec: u(
|
|
2638
|
-
"649be056": u(
|
|
2639
|
-
"5546cb1c": u(
|
|
2640
|
-
"95eafcf4": u(
|
|
2641
|
-
fd0b12bc: u(
|
|
2637
|
+
f0c424ec: u(it),
|
|
2638
|
+
"649be056": u(Bt),
|
|
2639
|
+
"5546cb1c": u(we),
|
|
2640
|
+
"95eafcf4": u(Se),
|
|
2641
|
+
fd0b12bc: u(gt),
|
|
2642
2642
|
"5eac3cbe": u(ee),
|
|
2643
|
-
d03f228c: u(
|
|
2644
|
-
"6fb52ccb":
|
|
2645
|
-
a53475fc: u(
|
|
2643
|
+
d03f228c: u(ut),
|
|
2644
|
+
"6fb52ccb": xt.value,
|
|
2645
|
+
a53475fc: u(yt),
|
|
2646
2646
|
"2a438d7d": $t.value,
|
|
2647
|
-
"13b81d3c":
|
|
2648
|
-
"00649ebe":
|
|
2649
|
-
a7af40ec:
|
|
2650
|
-
"89d3ed38":
|
|
2647
|
+
"13b81d3c": Ct.value,
|
|
2648
|
+
"00649ebe": Vt.value,
|
|
2649
|
+
a7af40ec: j.value,
|
|
2650
|
+
"89d3ed38": F.value,
|
|
2651
2651
|
"0f68d676": i.styleButtonColor,
|
|
2652
|
-
"13fa7aca":
|
|
2652
|
+
"13fa7aca": At.value
|
|
2653
2653
|
})), La(() => {
|
|
2654
|
-
|
|
2654
|
+
m.value = Ue.value;
|
|
2655
2655
|
}), Pa(() => {
|
|
2656
2656
|
fa();
|
|
2657
2657
|
});
|
|
2658
|
-
const C = S,
|
|
2659
|
-
nbId:
|
|
2660
|
-
display:
|
|
2661
|
-
hasTabIndexEnter:
|
|
2662
|
-
ariaLabel:
|
|
2663
|
-
ariaAttrs:
|
|
2664
|
-
textColor:
|
|
2658
|
+
const C = S, B = e, {
|
|
2659
|
+
nbId: _,
|
|
2660
|
+
display: Le,
|
|
2661
|
+
hasTabIndexEnter: pe,
|
|
2662
|
+
ariaLabel: Ne,
|
|
2663
|
+
ariaAttrs: Ae,
|
|
2664
|
+
textColor: re,
|
|
2665
2665
|
caretColor: J,
|
|
2666
2666
|
selectionBgColor: Pe,
|
|
2667
|
-
selectionTextColor:
|
|
2667
|
+
selectionTextColor: Fe,
|
|
2668
2668
|
hasBorderRadius: ae,
|
|
2669
2669
|
borderRadius: K,
|
|
2670
|
-
disabled:
|
|
2670
|
+
disabled: N,
|
|
2671
2671
|
fontFamily: le,
|
|
2672
|
-
fontSize:
|
|
2672
|
+
fontSize: ue,
|
|
2673
2673
|
fontWeight: Q,
|
|
2674
|
-
fontFamilyMsg:
|
|
2675
|
-
fontSizeMsg:
|
|
2676
|
-
fontWeightMsg:
|
|
2677
|
-
textMessageColor:
|
|
2674
|
+
fontFamilyMsg: $e,
|
|
2675
|
+
fontSizeMsg: ie,
|
|
2676
|
+
fontWeightMsg: H,
|
|
2677
|
+
textMessageColor: ge,
|
|
2678
2678
|
inputWidth: X,
|
|
2679
|
-
inputStyle:
|
|
2680
|
-
activeTextStyle:
|
|
2681
|
-
inputReadonly:
|
|
2682
|
-
blockPaste:
|
|
2683
|
-
hasTrim:
|
|
2679
|
+
inputStyle: he,
|
|
2680
|
+
activeTextStyle: ye,
|
|
2681
|
+
inputReadonly: be,
|
|
2682
|
+
blockPaste: I,
|
|
2683
|
+
hasTrim: je,
|
|
2684
2684
|
inputUppercase: v,
|
|
2685
2685
|
inputName: Z,
|
|
2686
|
-
inputPlaceholder:
|
|
2686
|
+
inputPlaceholder: ze,
|
|
2687
2687
|
inputText: Ue,
|
|
2688
2688
|
theme: h,
|
|
2689
2689
|
tabindex: _e,
|
|
2690
2690
|
lightBgColor: ee,
|
|
2691
|
-
lightBgColorFocus:
|
|
2692
|
-
lightDisabledBgColor:
|
|
2693
|
-
lightTextColor:
|
|
2694
|
-
darkBgColor:
|
|
2695
|
-
darkBgColorFocus:
|
|
2696
|
-
darkDisabledBgColor:
|
|
2697
|
-
darkTextColor:
|
|
2698
|
-
textAlign:
|
|
2699
|
-
showMsg:
|
|
2700
|
-
hasMsg:
|
|
2691
|
+
lightBgColorFocus: ut,
|
|
2692
|
+
lightDisabledBgColor: gt,
|
|
2693
|
+
lightTextColor: tt,
|
|
2694
|
+
darkBgColor: we,
|
|
2695
|
+
darkBgColorFocus: Se,
|
|
2696
|
+
darkDisabledBgColor: Bt,
|
|
2697
|
+
darkTextColor: it,
|
|
2698
|
+
textAlign: yt,
|
|
2699
|
+
showMsg: Lt,
|
|
2700
|
+
hasMsg: bt,
|
|
2701
2701
|
showLabel: Oe,
|
|
2702
|
-
labelBackground:
|
|
2703
|
-
labelPadding:
|
|
2702
|
+
labelBackground: st,
|
|
2703
|
+
labelPadding: Ye,
|
|
2704
2704
|
labelBorderRadius: x,
|
|
2705
2705
|
labelLeft: $,
|
|
2706
|
-
inputLabelMarginActive:
|
|
2707
|
-
labelActiveTop:
|
|
2708
|
-
labelActiveLeft:
|
|
2709
|
-
fontFamilyLabel:
|
|
2706
|
+
inputLabelMarginActive: se,
|
|
2707
|
+
labelActiveTop: q,
|
|
2708
|
+
labelActiveLeft: de,
|
|
2709
|
+
fontFamilyLabel: at,
|
|
2710
2710
|
fontSizeLabel: Ge,
|
|
2711
|
-
fontSizeLabelActive:
|
|
2711
|
+
fontSizeLabelActive: We,
|
|
2712
2712
|
fontWeightLabel: p,
|
|
2713
|
-
lightTextColorLabel:
|
|
2714
|
-
lightTextColorLabelActive:
|
|
2715
|
-
darkTextColorLabel:
|
|
2716
|
-
darkTextColorLabelActive:
|
|
2717
|
-
rows:
|
|
2718
|
-
cols:
|
|
2719
|
-
maxlength:
|
|
2713
|
+
lightTextColorLabel: T,
|
|
2714
|
+
lightTextColorLabelActive: te,
|
|
2715
|
+
darkTextColorLabel: ne,
|
|
2716
|
+
darkTextColorLabelActive: ce,
|
|
2717
|
+
rows: De,
|
|
2718
|
+
cols: xe,
|
|
2719
|
+
maxlength: Re,
|
|
2720
2720
|
minlength: Ie,
|
|
2721
|
-
wrap:
|
|
2721
|
+
wrap: He,
|
|
2722
2722
|
spellcheck: Ke,
|
|
2723
|
-
autofocus:
|
|
2723
|
+
autofocus: dt,
|
|
2724
2724
|
resize: ct,
|
|
2725
2725
|
minWidth: Rt,
|
|
2726
|
-
maxWidth:
|
|
2727
|
-
minHeight:
|
|
2726
|
+
maxWidth: mt,
|
|
2727
|
+
minHeight: ht,
|
|
2728
2728
|
maxHeight: Qe,
|
|
2729
2729
|
autoResize: Mt,
|
|
2730
2730
|
minRows: Ze,
|
|
2731
|
-
maxRows:
|
|
2732
|
-
} = Fa(
|
|
2733
|
-
const i =
|
|
2731
|
+
maxRows: ft
|
|
2732
|
+
} = Fa(B), m = Y(""), R = Y(!1), g = a(() => {
|
|
2733
|
+
const i = N.value ? "component-disabled" : "", D = Le.value !== "b" ? "inline-block" : "block", Ve = re ? re.value : "ffffff", Te = J.value ? J.value : "", va = Pe.value ? Pe.value : "", Pt = Fe.value ? Fe.value : "", pa = ae.value ? ae.value : !1, Qt = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, ga = le.value ? le.value : "'Lato', sans-serif", ya = ue.value ? ue.value : "1.4em", ba = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, ma = $e.value ? $e.value : "'Lato', sans-serif", wt = ie.value ? ie.value : "1em", ha = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, Sa = ge.value ? ge.value : "#f15574", xa = X.value ? X.value : 200, Ca = ye.value ? ye.value : "normal", ot = be.value ? be.value : !1, _t = v.value ? v.value : !1, Zt = h.value ? h.value : "normal", Jt = yt.value ? yt.value : "left", Ot = he.value ? he.value : "background", Ft = Oe.value ? Oe.value : !1, rt = $.value !== 0 && !$.value || $.value < 0 ? 5 : $.value, zt = st.value ? st.value : "transparent", Va = se.value !== 0 && !se.value || se.value < 0 ? 15 : se.value, Xt = Ye.value ? Ye.value : "1px 5px", Ta = x.value !== 0 && !x.value || x.value < 0 ? 0 : x.value, o = q.value === null || q.value === void 0 ? -13 : q.value, b = de.value === null || de.value === void 0 ? -10 : de.value, ke = at.value ? at.value : "'Lato', sans-serif", Je = Ge.value ? Ge.value : "1em", ka = We.value ? We.value : "0.8em", ea = p.value ? p.value : 400, $a = T.value ? T.value : "#ffffff", wa = ne.value ? ne.value : "#000000", Wt = te.value ? te.value : "#ffffff", ta = ce.value ? ce.value : "#000000", Ht = De.value && De.value > 0 ? De.value : 2, Da = xe.value && xe.value > 0 ? xe.value : 20, Ia = Re.value !== null && Re.value >= 0 ? Re.value : null, Ra = Ie.value !== null && Ie.value >= 0 ? Ie.value : null, me = He.value && ["soft", "hard", "off"].includes(He.value) ? He.value : "soft", Ea = Ke.value !== void 0 ? Ke.value : "default", pt = dt.value !== void 0 ? dt.value : !1, t = ct.value && ["none", "both", "vertical", "horizontal"].includes(ct.value) ? ct.value : "vertical", l = Rt.value ? Rt.value : "auto", n = mt.value ? mt.value : "auto", r = ht.value ? ht.value : "auto", d = Qe.value ? Qe.value : "auto", s = Mt.value !== void 0 ? Mt.value : !1, c = Ze.value !== null && Ze.value > 0 ? Ze.value : null, y = ft.value !== null && ft.value > 0 ? ft.value : null;
|
|
2734
2734
|
return {
|
|
2735
2735
|
disabled: i,
|
|
2736
2736
|
display: D,
|
|
@@ -2741,8 +2741,8 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2741
2741
|
fontSizeMsg: wt,
|
|
2742
2742
|
fontWeightMsg: ha,
|
|
2743
2743
|
textMessageColor: Sa,
|
|
2744
|
-
textColor:
|
|
2745
|
-
caretColor:
|
|
2744
|
+
textColor: Ve,
|
|
2745
|
+
caretColor: Te,
|
|
2746
2746
|
selectionBgColor: va,
|
|
2747
2747
|
selectionTextColor: Pt,
|
|
2748
2748
|
hasBorderRadius: pa,
|
|
@@ -2750,7 +2750,7 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2750
2750
|
textAlign: Jt,
|
|
2751
2751
|
inputWidth: xa,
|
|
2752
2752
|
activeTextStyle: Ca,
|
|
2753
|
-
inputReadonly:
|
|
2753
|
+
inputReadonly: ot,
|
|
2754
2754
|
inputUppercase: _t,
|
|
2755
2755
|
theme: Zt,
|
|
2756
2756
|
inputStyle: Ot,
|
|
@@ -2758,11 +2758,11 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2758
2758
|
labelBackground: zt,
|
|
2759
2759
|
labelPadding: Xt,
|
|
2760
2760
|
labelBorderRadius: Ta,
|
|
2761
|
-
labelLeft:
|
|
2761
|
+
labelLeft: rt,
|
|
2762
2762
|
inputLabelMarginActive: Va,
|
|
2763
2763
|
labelActiveTop: o,
|
|
2764
2764
|
labelActiveLeft: b,
|
|
2765
|
-
fontFamilyLabel:
|
|
2765
|
+
fontFamilyLabel: ke,
|
|
2766
2766
|
fontSizeLabel: Je,
|
|
2767
2767
|
fontSizeLabelActive: ka,
|
|
2768
2768
|
fontWeightLabel: ea,
|
|
@@ -2774,9 +2774,9 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2774
2774
|
cols: Da,
|
|
2775
2775
|
maxlength: Ia,
|
|
2776
2776
|
minlength: Ra,
|
|
2777
|
-
wrap:
|
|
2777
|
+
wrap: me,
|
|
2778
2778
|
spellcheck: Ea,
|
|
2779
|
-
autofocus:
|
|
2779
|
+
autofocus: pt,
|
|
2780
2780
|
resize: t,
|
|
2781
2781
|
minWidth: l,
|
|
2782
2782
|
maxWidth: n,
|
|
@@ -2786,36 +2786,36 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2786
2786
|
minRows: c,
|
|
2787
2787
|
maxRows: y
|
|
2788
2788
|
};
|
|
2789
|
-
}),
|
|
2789
|
+
}), St = a(() => g.value.disabled), lt = a(() => ({
|
|
2790
2790
|
display: g.value.display
|
|
2791
|
-
})),
|
|
2791
|
+
})), xt = a(() => {
|
|
2792
2792
|
const i = g.value;
|
|
2793
2793
|
return i.fontSize ? i.fontSize : "1.4em";
|
|
2794
|
-
}),
|
|
2794
|
+
}), Ce = a(() => {
|
|
2795
2795
|
const i = g.value, D = Nt.value;
|
|
2796
2796
|
return {
|
|
2797
2797
|
fontWeight: i.fontWeight,
|
|
2798
2798
|
marginTop: D && Oe.value ? `${i.inputLabelMarginActive}px` : "0"
|
|
2799
2799
|
};
|
|
2800
|
-
}),
|
|
2800
|
+
}), nt = a(() => {
|
|
2801
2801
|
const i = g.value;
|
|
2802
2802
|
return i.inputStyle !== "line" && i.hasBorderRadius ? { borderRadius: `${i.borderRadius}rem` } : {};
|
|
2803
|
-
}),
|
|
2803
|
+
}), fe = a(() => g.value.font), Ct = a(() => g.value.fontFamilyMsg), Vt = a(() => g.value.fontSizeMsg), j = a(() => g.value.fontWeightMsg), At = a(() => g.value.textColor), F = a(() => g.value.textMessageColor), E = a(() => {
|
|
2804
2804
|
const i = g.value;
|
|
2805
2805
|
return i.caretColor || (i.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2806
|
-
}),
|
|
2806
|
+
}), jt = a(() => {
|
|
2807
2807
|
const i = g.value;
|
|
2808
2808
|
return i.selectionBgColor || (i.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2809
2809
|
}), L = a(() => {
|
|
2810
2810
|
const i = g.value;
|
|
2811
2811
|
return i.selectionTextColor || (i.theme === "dark" ? "#000000" : "#ffffff");
|
|
2812
|
-
}),
|
|
2812
|
+
}), z = a(() => {
|
|
2813
2813
|
const i = g.value;
|
|
2814
2814
|
return i.display === "block" ? { width: "100%" } : {
|
|
2815
2815
|
width: `${i.inputWidth}px`
|
|
2816
2816
|
};
|
|
2817
|
-
}),
|
|
2818
|
-
switch (
|
|
2817
|
+
}), Tt = a(() => {
|
|
2818
|
+
switch (he.value) {
|
|
2819
2819
|
case "line":
|
|
2820
2820
|
return "component__input--line";
|
|
2821
2821
|
case "border":
|
|
@@ -2823,7 +2823,7 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2823
2823
|
default:
|
|
2824
2824
|
return "component__input--background";
|
|
2825
2825
|
}
|
|
2826
|
-
}),
|
|
2826
|
+
}), kt = a(() => {
|
|
2827
2827
|
switch (g.value.activeTextStyle) {
|
|
2828
2828
|
case "italic":
|
|
2829
2829
|
return "component__input--active--italic";
|
|
@@ -2832,33 +2832,33 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2832
2832
|
default:
|
|
2833
2833
|
return "component__input--active--normal";
|
|
2834
2834
|
}
|
|
2835
|
-
}),
|
|
2835
|
+
}), vt = a(() => {
|
|
2836
2836
|
switch (g.value.theme) {
|
|
2837
2837
|
case "dark":
|
|
2838
2838
|
return "component__theme--dark";
|
|
2839
2839
|
default:
|
|
2840
2840
|
return "component__theme--light";
|
|
2841
2841
|
}
|
|
2842
|
-
}), A = a(() => g.value.inputReadonly ? "component__input--read-only" : ""), It = a(() => g.value.inputUppercase ? "component__input--uppercase" : ""), Et = a(() => Z.value ? Z.value : `${
|
|
2843
|
-
a(() =>
|
|
2844
|
-
const $t = a(() => "6px 10px"), oa = a(() => !!(
|
|
2842
|
+
}), A = a(() => g.value.inputReadonly ? "component__input--read-only" : ""), It = a(() => g.value.inputUppercase ? "component__input--uppercase" : ""), Et = a(() => Z.value ? Z.value : `${_.value}-name-label`), na = a(() => Oe.value ? R.value ? ze.value : "" : ze.value), Nt = a(() => R.value || m.value && m.value.trim().length > 0);
|
|
2843
|
+
a(() => R.value ? "component__input--active" : "component__input--no-active");
|
|
2844
|
+
const $t = a(() => "6px 10px"), oa = a(() => !!(Lt.value && bt.value)), ra = a(() => {
|
|
2845
2845
|
const i = {};
|
|
2846
|
-
|
|
2846
|
+
Ae.value && Object.keys(Ae.value).forEach((Te) => i[`aria-${Te}`] = Ae.value[Te]);
|
|
2847
2847
|
const D = {
|
|
2848
|
-
"aria-label":
|
|
2849
|
-
"aria-disabled":
|
|
2848
|
+
"aria-label": Ne.value,
|
|
2849
|
+
"aria-disabled": N.value,
|
|
2850
2850
|
...i
|
|
2851
2851
|
};
|
|
2852
2852
|
return Object.fromEntries(
|
|
2853
|
-
Object.entries(D).filter(([
|
|
2853
|
+
Object.entries(D).filter(([Ve, Te]) => Te != null)
|
|
2854
2854
|
);
|
|
2855
|
-
}),
|
|
2856
|
-
const i = g.value, D = Nt.value,
|
|
2855
|
+
}), Ut = a(() => {
|
|
2856
|
+
const i = g.value, D = Nt.value, Ve = D ? i.lightTextColorLabelActive : i.lightTextColorLabel, Te = D ? i.darkTextColorLabelActive : i.darkTextColorLabel;
|
|
2857
2857
|
return {
|
|
2858
2858
|
fontFamily: i.fontFamilyLabel,
|
|
2859
2859
|
fontSize: D ? i.fontSizeLabelActive : i.fontSizeLabel,
|
|
2860
2860
|
fontWeight: i.fontWeightLabel,
|
|
2861
|
-
color: i.theme === "dark" ?
|
|
2861
|
+
color: i.theme === "dark" ? Te : Ve,
|
|
2862
2862
|
top: D ? `${i.labelActiveTop}px` : "50%",
|
|
2863
2863
|
left: D ? `${i.labelActiveLeft}px` : `${i.labelLeft}px`,
|
|
2864
2864
|
transform: D ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -2883,7 +2883,7 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2883
2883
|
return i.maxlength !== null && (D.maxlength = i.maxlength), i.minlength !== null && (D.minlength = i.minlength), D;
|
|
2884
2884
|
}), ia = a(() => ({
|
|
2885
2885
|
resize: g.value.resize
|
|
2886
|
-
})),
|
|
2886
|
+
})), Yt = a(() => g.value.wrap === "off" ? {
|
|
2887
2887
|
whiteSpace: "nowrap",
|
|
2888
2888
|
overflowX: "auto"
|
|
2889
2889
|
} : {}), sa = a(() => {
|
|
@@ -2907,83 +2907,83 @@ const Ql = ["id"], Zl = ["for"], Jl = {
|
|
|
2907
2907
|
maxHeight: i.maxHeight
|
|
2908
2908
|
};
|
|
2909
2909
|
}), fa = () => {
|
|
2910
|
-
|
|
2910
|
+
m.value = Ue.value;
|
|
2911
2911
|
}, Kt = () => {
|
|
2912
2912
|
C("clicked");
|
|
2913
2913
|
}, f = () => {
|
|
2914
|
-
|
|
2914
|
+
N.value || g.value.inputReadonly || !pe.value || C("entered", m.value);
|
|
2915
2915
|
}, w = async (i) => {
|
|
2916
|
-
var
|
|
2917
|
-
const D = ((
|
|
2918
|
-
C("paste", D),
|
|
2919
|
-
},
|
|
2920
|
-
let i =
|
|
2921
|
-
|
|
2916
|
+
var Ve;
|
|
2917
|
+
const D = ((Ve = i.clipboardData) == null ? void 0 : Ve.getData("text")) || "";
|
|
2918
|
+
C("paste", D), I.value && i.preventDefault();
|
|
2919
|
+
}, U = () => {
|
|
2920
|
+
let i = m.value;
|
|
2921
|
+
je.value && (i = i.trim()), C("current-value", i);
|
|
2922
2922
|
};
|
|
2923
|
-
return
|
|
2924
|
-
i !==
|
|
2925
|
-
}, { immediate: !0 }),
|
|
2926
|
-
|
|
2927
|
-
}),
|
|
2923
|
+
return G(Ue, (i) => {
|
|
2924
|
+
i !== m.value && (m.value = i);
|
|
2925
|
+
}, { immediate: !0 }), G(m, (i) => {
|
|
2926
|
+
je.value && (i = i.trim()), C("changed", i);
|
|
2927
|
+
}), G(R, (i) => {
|
|
2928
2928
|
C(i ? "focused" : "blurred");
|
|
2929
|
-
}),
|
|
2930
|
-
|
|
2931
|
-
}, { immediate: !0 }), (i, D) => u(
|
|
2929
|
+
}), G(m, () => {
|
|
2930
|
+
U();
|
|
2931
|
+
}, { immediate: !0 }), (i, D) => u(_) ? (W(), P("div", Aa({
|
|
2932
2932
|
key: 0,
|
|
2933
|
-
class: ["nb-wrapper",
|
|
2934
|
-
style: [
|
|
2933
|
+
class: ["nb-wrapper", St.value],
|
|
2934
|
+
style: [lt.value, z.value, nt.value],
|
|
2935
2935
|
role: "input"
|
|
2936
2936
|
}, ra.value), [
|
|
2937
|
-
|
|
2938
|
-
id: u(
|
|
2939
|
-
class: Ee(["nb-reset", "component",
|
|
2940
|
-
style:
|
|
2937
|
+
ve("div", {
|
|
2938
|
+
id: u(_),
|
|
2939
|
+
class: Ee(["nb-reset", "component", vt.value, A.value, Tt.value]),
|
|
2940
|
+
style: Be([Ce.value, z.value, nt.value]),
|
|
2941
2941
|
onClick: Kt
|
|
2942
2942
|
}, [
|
|
2943
|
-
u(Oe) ? (
|
|
2943
|
+
u(Oe) ? (W(), P("label", {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
for: Et.value,
|
|
2946
2946
|
class: "component__label",
|
|
2947
|
-
style:
|
|
2947
|
+
style: Be([Ut.value])
|
|
2948
2948
|
}, [
|
|
2949
2949
|
qt(Dt(e.label), 1),
|
|
2950
|
-
e.required ? (
|
|
2951
|
-
], 12, Zl)) :
|
|
2952
|
-
za(
|
|
2953
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
2950
|
+
e.required ? (W(), P("span", Jl, "*")) : oe("", !0)
|
|
2951
|
+
], 12, Zl)) : oe("", !0),
|
|
2952
|
+
za(ve("textarea", Aa({
|
|
2953
|
+
"onUpdate:modelValue": D[0] || (D[0] = (Ve) => m.value = Ve),
|
|
2954
2954
|
id: Et.value,
|
|
2955
2955
|
name: Et.value
|
|
2956
2956
|
}, ua.value, {
|
|
2957
2957
|
class: ["component__input", [
|
|
2958
2958
|
It.value,
|
|
2959
|
-
|
|
2959
|
+
kt.value
|
|
2960
2960
|
]],
|
|
2961
2961
|
placeholder: na.value,
|
|
2962
|
-
disabled: u(
|
|
2962
|
+
disabled: u(N) || u(be),
|
|
2963
2963
|
required: e.required,
|
|
2964
|
-
readonly: u(
|
|
2964
|
+
readonly: u(be),
|
|
2965
2965
|
autocomplete: e.inputAutocomplete,
|
|
2966
|
-
tabindex: u(
|
|
2966
|
+
tabindex: u(N) || u(be) ? -1 : u(_e),
|
|
2967
2967
|
role: "textbox",
|
|
2968
|
-
style: [
|
|
2969
|
-
onFocus: D[1] || (D[1] = (
|
|
2970
|
-
onBlur: D[2] || (D[2] = (
|
|
2971
|
-
onInput:
|
|
2972
|
-
onKeydown: D[3] || (D[3] = la((
|
|
2968
|
+
style: [nt.value, ia.value, Yt.value, sa.value, da.value, ca.value, Gt.value],
|
|
2969
|
+
onFocus: D[1] || (D[1] = (Ve) => R.value = !0),
|
|
2970
|
+
onBlur: D[2] || (D[2] = (Ve) => R.value = !1),
|
|
2971
|
+
onInput: U,
|
|
2972
|
+
onKeydown: D[3] || (D[3] = la((Ve) => !u(N) && u(pe) && f(), ["enter"])),
|
|
2973
2973
|
onPaste: w
|
|
2974
2974
|
}), null, 16, Xl), [
|
|
2975
|
-
[vl,
|
|
2975
|
+
[vl, m.value]
|
|
2976
2976
|
])
|
|
2977
2977
|
], 14, Ql),
|
|
2978
|
-
oa.value ? (
|
|
2978
|
+
oa.value ? (W(), P("div", {
|
|
2979
2979
|
key: 0,
|
|
2980
2980
|
class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
2981
2981
|
}, [
|
|
2982
2982
|
Ba(i.$slots, "message", {}, () => [
|
|
2983
2983
|
qt(Dt(e.message), 1)
|
|
2984
2984
|
], !0)
|
|
2985
|
-
], 2)) :
|
|
2986
|
-
], 16)) :
|
|
2985
|
+
], 2)) : oe("", !0)
|
|
2986
|
+
], 16)) : oe("", !0);
|
|
2987
2987
|
}
|
|
2988
2988
|
}), tn = /* @__PURE__ */ Wa(en, [["__scopeId", "data-v-63673665"]]);
|
|
2989
2989
|
const an = ["id"], ln = ["for"], nn = {
|
|
@@ -3121,15 +3121,9 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3121
3121
|
default: null,
|
|
3122
3122
|
validator: (e) => e === null || typeof e == "boolean"
|
|
3123
3123
|
},
|
|
3124
|
-
useCustomCalendar: {
|
|
3125
|
-
type: Boolean,
|
|
3126
|
-
default: !0,
|
|
3127
|
-
// true = usa customizado por padrão, false = força nativo
|
|
3128
|
-
validator: (e) => typeof e == "boolean"
|
|
3129
|
-
},
|
|
3130
3124
|
locale: {
|
|
3131
3125
|
type: String,
|
|
3132
|
-
default: "
|
|
3126
|
+
default: "en-US",
|
|
3133
3127
|
validator: (e) => ["pt-BR", "en-US"].includes(e)
|
|
3134
3128
|
},
|
|
3135
3129
|
allowRange: {
|
|
@@ -3638,29 +3632,29 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3638
3632
|
],
|
|
3639
3633
|
setup(e, { emit: S }) {
|
|
3640
3634
|
Na((t) => ({
|
|
3641
|
-
"
|
|
3642
|
-
"
|
|
3643
|
-
"
|
|
3644
|
-
"
|
|
3645
|
-
"
|
|
3646
|
-
|
|
3647
|
-
"
|
|
3648
|
-
"
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
"
|
|
3652
|
-
"
|
|
3653
|
-
"
|
|
3654
|
-
"
|
|
3655
|
-
|
|
3656
|
-
"
|
|
3657
|
-
|
|
3658
|
-
"
|
|
3659
|
-
|
|
3660
|
-
"
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3635
|
+
"1578cd41": Et.value,
|
|
3636
|
+
"07ae5c22": vt.value,
|
|
3637
|
+
"04e1a79c": u(Ye),
|
|
3638
|
+
"46f075ff": Ut.value,
|
|
3639
|
+
"5946efde": ua.value,
|
|
3640
|
+
"0558ef69": ia.value,
|
|
3641
|
+
"141192ae": u(q),
|
|
3642
|
+
"63601a7a": u(se),
|
|
3643
|
+
"7fff3896": u(x),
|
|
3644
|
+
deec3168: oa.value,
|
|
3645
|
+
"3ac919e2": u($),
|
|
3646
|
+
"2aa82e18": va.value,
|
|
3647
|
+
"2b7174c0": Pt.value,
|
|
3648
|
+
"5b3d80fe": u(st),
|
|
3649
|
+
"085d631a": u(bt),
|
|
3650
|
+
"6c163c44": u(Oe),
|
|
3651
|
+
"10bcc7b4": u(de),
|
|
3652
|
+
"5816984e": D.value,
|
|
3653
|
+
be72e0f4: na.value,
|
|
3654
|
+
"3dec9cc5": Nt.value,
|
|
3655
|
+
"43865aa4": $t.value,
|
|
3656
|
+
"19b44a88": ra.value,
|
|
3657
|
+
d5b1225c: t.styleButtonColor
|
|
3664
3658
|
}));
|
|
3665
3659
|
const C = hl(
|
|
3666
3660
|
() => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
|
|
@@ -3670,83 +3664,82 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3670
3664
|
}), Pa(() => {
|
|
3671
3665
|
Qt();
|
|
3672
3666
|
});
|
|
3673
|
-
const
|
|
3674
|
-
nbId:
|
|
3675
|
-
display:
|
|
3676
|
-
hasTabIndexEnter:
|
|
3677
|
-
ariaLabel:
|
|
3678
|
-
ariaAttrs:
|
|
3667
|
+
const B = S, _ = e, {
|
|
3668
|
+
nbId: Le,
|
|
3669
|
+
display: pe,
|
|
3670
|
+
hasTabIndexEnter: Ne,
|
|
3671
|
+
ariaLabel: Ae,
|
|
3672
|
+
ariaAttrs: re,
|
|
3679
3673
|
caretColor: J,
|
|
3680
3674
|
selectionBgColor: Pe,
|
|
3681
|
-
selectionTextColor:
|
|
3675
|
+
selectionTextColor: Fe,
|
|
3682
3676
|
hasBorderRadius: ae,
|
|
3683
3677
|
borderRadius: K,
|
|
3684
|
-
disabled:
|
|
3678
|
+
disabled: N,
|
|
3685
3679
|
fontFamily: le,
|
|
3686
|
-
fontSize:
|
|
3680
|
+
fontSize: ue,
|
|
3687
3681
|
fontWeight: Q,
|
|
3688
|
-
fontFamilyMsg:
|
|
3689
|
-
fontSizeMsg:
|
|
3690
|
-
fontWeightMsg:
|
|
3691
|
-
textMessageColor:
|
|
3682
|
+
fontFamilyMsg: $e,
|
|
3683
|
+
fontSizeMsg: ie,
|
|
3684
|
+
fontWeightMsg: H,
|
|
3685
|
+
textMessageColor: ge,
|
|
3692
3686
|
inputWidth: X,
|
|
3693
|
-
inputStyle:
|
|
3694
|
-
activeTextStyle:
|
|
3695
|
-
sizeMediaQuery:
|
|
3696
|
-
inputReadonly:
|
|
3697
|
-
blockPaste:
|
|
3687
|
+
inputStyle: he,
|
|
3688
|
+
activeTextStyle: ye,
|
|
3689
|
+
sizeMediaQuery: be,
|
|
3690
|
+
inputReadonly: I,
|
|
3691
|
+
blockPaste: je,
|
|
3698
3692
|
inputType: v,
|
|
3699
3693
|
hasTrim: Z,
|
|
3700
|
-
inputUppercase:
|
|
3694
|
+
inputUppercase: ze,
|
|
3701
3695
|
inputName: Ue,
|
|
3702
3696
|
inputText: h,
|
|
3703
3697
|
min: _e,
|
|
3704
3698
|
max: ee,
|
|
3705
|
-
step:
|
|
3706
|
-
hasSeconds:
|
|
3707
|
-
useCustomCalendar: Vt,
|
|
3699
|
+
step: ut,
|
|
3700
|
+
hasSeconds: gt,
|
|
3708
3701
|
locale: tt,
|
|
3709
|
-
theme:
|
|
3710
|
-
allowRange:
|
|
3711
|
-
calendarZIndex:
|
|
3712
|
-
calendarWidth:
|
|
3713
|
-
blockClicksWithoutEvents:
|
|
3714
|
-
tabindex:
|
|
3715
|
-
lightBgColor:
|
|
3716
|
-
lightBgColorFocus:
|
|
3717
|
-
lightDisabledBgColor:
|
|
3718
|
-
lightTextColor:
|
|
3719
|
-
darkBgColor:
|
|
3720
|
-
darkBgColorFocus:
|
|
3721
|
-
darkDisabledBgColor:
|
|
3722
|
-
darkTextColor:
|
|
3723
|
-
textAlign:
|
|
3724
|
-
showMsg:
|
|
3725
|
-
hasMsg:
|
|
3726
|
-
showLabel:
|
|
3727
|
-
label:
|
|
3728
|
-
labelBreakOnActive:
|
|
3729
|
-
labelBackground:
|
|
3730
|
-
labelPadding:
|
|
3731
|
-
labelBorderRadius:
|
|
3732
|
-
labelLeft:
|
|
3733
|
-
inputLabelMarginActive:
|
|
3734
|
-
labelActiveTop:
|
|
3735
|
-
labelActiveLeft:
|
|
3736
|
-
labelRight:
|
|
3737
|
-
labelActiveRight:
|
|
3738
|
-
fontFamilyLabel:
|
|
3739
|
-
fontSizeLabel:
|
|
3740
|
-
fontSizeLabelActive:
|
|
3741
|
-
fontWeightLabel:
|
|
3742
|
-
lightTextColorLabel:
|
|
3743
|
-
lightTextColorLabelActive:
|
|
3744
|
-
darkTextColorLabel:
|
|
3745
|
-
darkTextColorLabelActive:
|
|
3746
|
-
required:
|
|
3747
|
-
} = Fa(
|
|
3748
|
-
if (
|
|
3749
|
-
return
|
|
3702
|
+
theme: we,
|
|
3703
|
+
allowRange: Se,
|
|
3704
|
+
calendarZIndex: Bt,
|
|
3705
|
+
calendarWidth: it,
|
|
3706
|
+
blockClicksWithoutEvents: yt,
|
|
3707
|
+
tabindex: Lt,
|
|
3708
|
+
lightBgColor: bt,
|
|
3709
|
+
lightBgColorFocus: Oe,
|
|
3710
|
+
lightDisabledBgColor: st,
|
|
3711
|
+
lightTextColor: Ye,
|
|
3712
|
+
darkBgColor: x,
|
|
3713
|
+
darkBgColorFocus: $,
|
|
3714
|
+
darkDisabledBgColor: se,
|
|
3715
|
+
darkTextColor: q,
|
|
3716
|
+
textAlign: de,
|
|
3717
|
+
showMsg: at,
|
|
3718
|
+
hasMsg: Ge,
|
|
3719
|
+
showLabel: We,
|
|
3720
|
+
label: p,
|
|
3721
|
+
labelBreakOnActive: T,
|
|
3722
|
+
labelBackground: te,
|
|
3723
|
+
labelPadding: ne,
|
|
3724
|
+
labelBorderRadius: ce,
|
|
3725
|
+
labelLeft: De,
|
|
3726
|
+
inputLabelMarginActive: xe,
|
|
3727
|
+
labelActiveTop: Re,
|
|
3728
|
+
labelActiveLeft: Ie,
|
|
3729
|
+
labelRight: He,
|
|
3730
|
+
labelActiveRight: Ke,
|
|
3731
|
+
fontFamilyLabel: dt,
|
|
3732
|
+
fontSizeLabel: ct,
|
|
3733
|
+
fontSizeLabelActive: Rt,
|
|
3734
|
+
fontWeightLabel: mt,
|
|
3735
|
+
lightTextColorLabel: ht,
|
|
3736
|
+
lightTextColorLabelActive: Qe,
|
|
3737
|
+
darkTextColorLabel: Mt,
|
|
3738
|
+
darkTextColorLabelActive: Ze,
|
|
3739
|
+
required: ft
|
|
3740
|
+
} = Fa(_), m = Y(""), R = Y(""), g = Y(""), St = Y(""), lt = Y(!1), xt = Y(!1), Ce = a(() => !it.value || it.value < 280 ? 280 : parseInt(it.value, 10)), nt = a(() => {
|
|
3741
|
+
if (gt.value !== null)
|
|
3742
|
+
return gt.value;
|
|
3750
3743
|
if (v.value === "time" || v.value === "datetime-local") {
|
|
3751
3744
|
const t = (l) => {
|
|
3752
3745
|
if (!l || typeof l != "string")
|
|
@@ -3758,10 +3751,10 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3758
3751
|
return !0;
|
|
3759
3752
|
}
|
|
3760
3753
|
return !1;
|
|
3761
|
-
}),
|
|
3754
|
+
}), fe = a(() => {
|
|
3762
3755
|
if (!m.value)
|
|
3763
3756
|
return null;
|
|
3764
|
-
if (
|
|
3757
|
+
if (Se.value && typeof m.value == "string" && m.value.startsWith("{"))
|
|
3765
3758
|
try {
|
|
3766
3759
|
const t = JSON.parse(m.value);
|
|
3767
3760
|
if (t && (t.startDate || t.endDate)) {
|
|
@@ -3786,12 +3779,12 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3786
3779
|
return new Date(t, l - 1, n);
|
|
3787
3780
|
}
|
|
3788
3781
|
return m.value;
|
|
3789
|
-
}),
|
|
3782
|
+
}), Ct = (t, l, n) => {
|
|
3790
3783
|
if (!t)
|
|
3791
3784
|
return "";
|
|
3792
3785
|
const r = n || tt.value;
|
|
3793
3786
|
if (l === "date") {
|
|
3794
|
-
if (
|
|
3787
|
+
if (Se.value && typeof t == "string" && t.startsWith("{"))
|
|
3795
3788
|
try {
|
|
3796
3789
|
const d = JSON.parse(t);
|
|
3797
3790
|
if (d && (d.startDate || d.endDate)) {
|
|
@@ -3799,8 +3792,8 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3799
3792
|
if (!V)
|
|
3800
3793
|
return "";
|
|
3801
3794
|
if (/^\d{4}-\d{2}-\d{2}$/.test(V)) {
|
|
3802
|
-
const [
|
|
3803
|
-
return r === "pt-BR" ? `${
|
|
3795
|
+
const [k, M, O] = V.split("-");
|
|
3796
|
+
return r === "pt-BR" ? `${O}/${M}/${k}` : `${M}/${O}/${k}`;
|
|
3804
3797
|
}
|
|
3805
3798
|
return V;
|
|
3806
3799
|
}, c = s(d.startDate), y = s(d.endDate);
|
|
@@ -3833,14 +3826,14 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3833
3826
|
} else if (l === "datetime-local") {
|
|
3834
3827
|
if (typeof t == "string") {
|
|
3835
3828
|
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
|
|
3836
|
-
const [s, c] = t.split("T"), [y, V,
|
|
3837
|
-
return r === "pt-BR" ? `${
|
|
3829
|
+
const [s, c] = t.split("T"), [y, V, k] = s.split("-");
|
|
3830
|
+
return r === "pt-BR" ? `${k}/${V}/${y} ${c}` : `${V}/${k}/${y} ${c}`;
|
|
3838
3831
|
}
|
|
3839
3832
|
if (/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/.test(t)) {
|
|
3840
3833
|
const s = new Date(t);
|
|
3841
3834
|
if (!isNaN(s.getTime())) {
|
|
3842
|
-
const c = s.getFullYear(), y = String(s.getMonth() + 1).padStart(2, "0"), V = String(s.getDate()).padStart(2, "0"),
|
|
3843
|
-
return r === "pt-BR" ? `${V}/${y}/${c} ${
|
|
3835
|
+
const c = s.getFullYear(), y = String(s.getMonth() + 1).padStart(2, "0"), V = String(s.getDate()).padStart(2, "0"), k = String(s.getHours()).padStart(2, "0"), M = String(s.getMinutes()).padStart(2, "0"), O = String(s.getSeconds()).padStart(2, "0");
|
|
3836
|
+
return r === "pt-BR" ? `${V}/${y}/${c} ${k}:${M}:${O}` : `${y}/${V}/${c} ${k}:${M}:${O}`;
|
|
3844
3837
|
}
|
|
3845
3838
|
}
|
|
3846
3839
|
}
|
|
@@ -3860,36 +3853,36 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3860
3853
|
return t;
|
|
3861
3854
|
}
|
|
3862
3855
|
return t;
|
|
3863
|
-
},
|
|
3856
|
+
}, Vt = (t, l, n) => {
|
|
3864
3857
|
if (!t || !t.trim())
|
|
3865
3858
|
return "";
|
|
3866
3859
|
const r = t.trim(), d = n || tt.value;
|
|
3867
3860
|
if (l === "date") {
|
|
3868
|
-
if (
|
|
3869
|
-
const s = r.split(/\s*-\s*/).map((
|
|
3870
|
-
if (!
|
|
3861
|
+
if (Se.value && r.includes("-")) {
|
|
3862
|
+
const s = r.split(/\s*-\s*/).map((k) => k.trim()), c = (k) => {
|
|
3863
|
+
if (!k)
|
|
3871
3864
|
return null;
|
|
3872
|
-
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(
|
|
3873
|
-
const
|
|
3865
|
+
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(k)) {
|
|
3866
|
+
const M = k.split("/");
|
|
3874
3867
|
if (d === "pt-BR") {
|
|
3875
|
-
const [
|
|
3876
|
-
return `${Xe}-${et}-${
|
|
3868
|
+
const [O, Me, Xe] = M, qe = O.padStart(2, "0"), et = Me.padStart(2, "0");
|
|
3869
|
+
return `${Xe}-${et}-${qe}`;
|
|
3877
3870
|
} else {
|
|
3878
|
-
const [
|
|
3879
|
-
return `${Xe}-${et}-${
|
|
3871
|
+
const [O, Me, Xe] = M, qe = Me.padStart(2, "0"), et = O.padStart(2, "0");
|
|
3872
|
+
return `${Xe}-${et}-${qe}`;
|
|
3880
3873
|
}
|
|
3881
|
-
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(
|
|
3882
|
-
const
|
|
3883
|
-
return `${
|
|
3874
|
+
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(k)) {
|
|
3875
|
+
const M = k.split("-"), [O, Me, Xe] = M, qe = Xe.padStart(2, "0"), et = Me.padStart(2, "0");
|
|
3876
|
+
return `${O}-${et}-${qe}`;
|
|
3884
3877
|
}
|
|
3885
3878
|
return null;
|
|
3886
3879
|
};
|
|
3887
3880
|
let y = c(s[0]), V = s[1] ? c(s[1]) : null;
|
|
3888
3881
|
if (y && V) {
|
|
3889
|
-
const
|
|
3890
|
-
if (new Date(V) <
|
|
3891
|
-
const
|
|
3892
|
-
y = V, V =
|
|
3882
|
+
const k = new Date(y);
|
|
3883
|
+
if (new Date(V) < k) {
|
|
3884
|
+
const O = y;
|
|
3885
|
+
y = V, V = O;
|
|
3893
3886
|
}
|
|
3894
3887
|
return JSON.stringify({ startDate: y, endDate: V });
|
|
3895
3888
|
} else if (y)
|
|
@@ -3899,30 +3892,30 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3899
3892
|
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(r)) {
|
|
3900
3893
|
const s = r.split("/");
|
|
3901
3894
|
if (d === "pt-BR") {
|
|
3902
|
-
const [c, y, V] = s,
|
|
3903
|
-
return `${V}-${
|
|
3895
|
+
const [c, y, V] = s, k = c.padStart(2, "0"), M = y.padStart(2, "0");
|
|
3896
|
+
return `${V}-${M}-${k}`;
|
|
3904
3897
|
} else {
|
|
3905
|
-
const [c, y, V] = s,
|
|
3906
|
-
return `${V}-${
|
|
3898
|
+
const [c, y, V] = s, k = y.padStart(2, "0"), M = c.padStart(2, "0");
|
|
3899
|
+
return `${V}-${M}-${k}`;
|
|
3907
3900
|
}
|
|
3908
3901
|
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)) {
|
|
3909
|
-
const s = r.split("-"), [c, y, V] = s,
|
|
3910
|
-
return `${c}-${
|
|
3902
|
+
const s = r.split("-"), [c, y, V] = s, k = V.padStart(2, "0"), M = y.padStart(2, "0");
|
|
3903
|
+
return `${c}-${M}-${k}`;
|
|
3911
3904
|
}
|
|
3912
3905
|
return "";
|
|
3913
3906
|
} else if (l === "datetime-local") {
|
|
3914
3907
|
if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
|
|
3915
3908
|
const [s, c] = r.split(" "), y = s.split("/");
|
|
3916
3909
|
if (d === "pt-BR") {
|
|
3917
|
-
const [V,
|
|
3918
|
-
return `${
|
|
3910
|
+
const [V, k, M] = y, O = V.padStart(2, "0"), Me = k.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
|
|
3911
|
+
return `${M}-${Me}-${O}T${qe}`;
|
|
3919
3912
|
} else {
|
|
3920
|
-
const [V,
|
|
3921
|
-
return `${
|
|
3913
|
+
const [V, k, M] = y, O = k.padStart(2, "0"), Me = V.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
|
|
3914
|
+
return `${M}-${Me}-${O}T${qe}`;
|
|
3922
3915
|
}
|
|
3923
3916
|
} else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
|
|
3924
|
-
const [s, c] = r.split("T"), y = s.split("-"), [V,
|
|
3925
|
-
return `${V}-${
|
|
3917
|
+
const [s, c] = r.split("T"), y = s.split("-"), [V, k, M] = y, O = M.padStart(2, "0"), Me = k.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
|
|
3918
|
+
return `${V}-${Me}-${O}T${qe}`;
|
|
3926
3919
|
}
|
|
3927
3920
|
return "";
|
|
3928
3921
|
} else if (l === "month") {
|
|
@@ -3944,32 +3937,32 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3944
3937
|
return c ? `${c[2]}-W${c[1]}` : "";
|
|
3945
3938
|
}
|
|
3946
3939
|
return r;
|
|
3947
|
-
}, j =
|
|
3948
|
-
const t =
|
|
3940
|
+
}, j = Y(!1), At = Y({ top: 0, left: 0 }), F = Y(null), E = Y(null), jt = Y(!0), L = a(() => jt.value === !0), z = a(() => {
|
|
3941
|
+
const t = N.value ? "component-disabled" : "", l = pe.value !== "b" ? "inline-block" : "block", n = J.value ? J.value : "", r = Pe.value ? Pe.value : "", d = Fe.value ? Fe.value : "", s = ae.value ? ae.value : !1, c = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, y = le.value ? le.value : "'Lato', sans-serif", V = ue.value ? ue.value : "1.4em", k = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, M = $e.value ? $e.value : "'Lato', sans-serif", O = ie.value ? ie.value : "1em", Me = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, Xe = ge.value ? ge.value : "#f15574", qe = X.value ? X.value : 200, et = ye.value ? ye.value : "normal", _a = "sm", Oa = I.value ? I.value : !1, Ha = v.value ? v.value : "date", qa = ze.value ? ze.value : !1, ja = we.value ? we.value : "normal", Ua = de.value ? de.value : "left", Ya = he.value ? he.value : "background", Ga = We.value ? We.value : !1, Ka = De.value !== 0 && !De.value || De.value < 0 ? 5 : De.value, Qa = te.value ? te.value : "transparent", Za = xe.value !== 0 && !xe.value || xe.value < 0 ? 15 : xe.value, Ja = ne.value ? ne.value : "1px 5px", Xa = ce.value !== 0 && !ce.value || ce.value < 0 ? 0 : ce.value, el = Re.value === null || Re.value === void 0 ? -13 : Re.value, tl = Ie.value === null || Ie.value === void 0 ? -10 : Ie.value, al = He.value === null || He.value === void 0 ? 0 : He.value, ll = Ke.value === null || Ke.value === void 0 ? 0 : Ke.value, nl = dt.value ? dt.value : "'Lato', sans-serif", ol = ct.value ? ct.value : "1em", rl = Rt.value ? Rt.value : "0.8em", ul = mt.value ? mt.value : 400, il = ht.value ? ht.value : "#ffffff", pl = Mt.value ? Mt.value : "#000000", gl = Qe.value ? Qe.value : "#ffffff", yl = Ze.value ? Ze.value : "#000000";
|
|
3949
3942
|
return {
|
|
3950
3943
|
disabled: t,
|
|
3951
3944
|
display: l,
|
|
3952
3945
|
font: y,
|
|
3953
3946
|
fontSize: V,
|
|
3954
|
-
fontWeight:
|
|
3955
|
-
fontFamilyMsg:
|
|
3956
|
-
fontSizeMsg:
|
|
3957
|
-
fontWeightMsg:
|
|
3947
|
+
fontWeight: k,
|
|
3948
|
+
fontFamilyMsg: M,
|
|
3949
|
+
fontSizeMsg: O,
|
|
3950
|
+
fontWeightMsg: Me,
|
|
3958
3951
|
textMessageColor: Xe,
|
|
3959
3952
|
caretColor: n,
|
|
3960
3953
|
selectionBgColor: r,
|
|
3961
3954
|
selectionTextColor: d,
|
|
3962
3955
|
hasBorderRadius: s,
|
|
3963
3956
|
borderRadius: c,
|
|
3964
|
-
textAlign:
|
|
3965
|
-
inputWidth:
|
|
3957
|
+
textAlign: Ua,
|
|
3958
|
+
inputWidth: qe,
|
|
3966
3959
|
activeTextStyle: et,
|
|
3967
3960
|
sizeMediaQuery: _a,
|
|
3968
3961
|
inputReadonly: Oa,
|
|
3969
3962
|
inputType: Ha,
|
|
3970
3963
|
inputUppercase: qa,
|
|
3971
3964
|
theme: ja,
|
|
3972
|
-
inputStyle:
|
|
3965
|
+
inputStyle: Ya,
|
|
3973
3966
|
showLabel: Ga,
|
|
3974
3967
|
labelBackground: Qa,
|
|
3975
3968
|
labelPadding: Ja,
|
|
@@ -3989,41 +3982,41 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
3989
3982
|
lightTextColorLabelActive: gl,
|
|
3990
3983
|
darkTextColorLabelActive: yl
|
|
3991
3984
|
};
|
|
3992
|
-
}),
|
|
3993
|
-
const t =
|
|
3985
|
+
}), Tt = a(() => z.value.disabled), kt = a(() => {
|
|
3986
|
+
const t = z.value, l = U.value;
|
|
3994
3987
|
return {
|
|
3995
3988
|
display: t.display,
|
|
3996
3989
|
// Adiciona padding-top quando o label está ativo para evitar que seja cortado
|
|
3997
|
-
paddingTop: l &&
|
|
3990
|
+
paddingTop: l && We.value ? `${Math.abs(t.labelActiveTop)}px` : "0"
|
|
3998
3991
|
};
|
|
3999
|
-
}),
|
|
4000
|
-
const t =
|
|
3992
|
+
}), vt = a(() => {
|
|
3993
|
+
const t = z.value;
|
|
4001
3994
|
return t.fontSize ? t.fontSize : "1.4em";
|
|
4002
3995
|
}), A = a(() => {
|
|
4003
|
-
const t =
|
|
3996
|
+
const t = z.value, l = U.value;
|
|
4004
3997
|
return {
|
|
4005
3998
|
fontWeight: t.fontWeight,
|
|
4006
|
-
marginTop: l &&
|
|
3999
|
+
marginTop: l && We.value ? `${t.inputLabelMarginActive}px` : "0"
|
|
4007
4000
|
};
|
|
4008
4001
|
}), It = a(() => {
|
|
4009
|
-
const t =
|
|
4002
|
+
const t = z.value;
|
|
4010
4003
|
return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
|
|
4011
|
-
}), Et = a(() =>
|
|
4012
|
-
const t =
|
|
4004
|
+
}), Et = a(() => z.value.font), na = a(() => z.value.fontFamilyMsg), Nt = a(() => z.value.fontSizeMsg), $t = a(() => z.value.fontWeightMsg), oa = a(() => we.value === "dark" ? q.value : Ye.value), ra = a(() => z.value.textMessageColor), Ut = a(() => {
|
|
4005
|
+
const t = z.value;
|
|
4013
4006
|
return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
4014
4007
|
}), ua = a(() => {
|
|
4015
|
-
const t =
|
|
4008
|
+
const t = z.value;
|
|
4016
4009
|
return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
4017
4010
|
}), ia = a(() => {
|
|
4018
|
-
const t =
|
|
4011
|
+
const t = z.value;
|
|
4019
4012
|
return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
|
|
4020
|
-
}),
|
|
4021
|
-
const t =
|
|
4013
|
+
}), Yt = a(() => {
|
|
4014
|
+
const t = z.value;
|
|
4022
4015
|
return t.display === "block" ? { width: "100%" } : {
|
|
4023
4016
|
width: `${t.inputWidth}px`
|
|
4024
4017
|
};
|
|
4025
4018
|
}), sa = a(() => {
|
|
4026
|
-
switch (
|
|
4019
|
+
switch (he.value) {
|
|
4027
4020
|
case "line":
|
|
4028
4021
|
return "component__input--line";
|
|
4029
4022
|
case "border":
|
|
@@ -4032,7 +4025,7 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4032
4025
|
return "component__input--background";
|
|
4033
4026
|
}
|
|
4034
4027
|
}), da = a(() => {
|
|
4035
|
-
switch (
|
|
4028
|
+
switch (z.value.activeTextStyle) {
|
|
4036
4029
|
case "italic":
|
|
4037
4030
|
return "component__input--active--italic";
|
|
4038
4031
|
case "oblique":
|
|
@@ -4041,33 +4034,33 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4041
4034
|
return "component__input--active--normal";
|
|
4042
4035
|
}
|
|
4043
4036
|
}), ca = a(() => "component__sm"), Gt = a(() => {
|
|
4044
|
-
switch (
|
|
4037
|
+
switch (z.value.theme) {
|
|
4045
4038
|
case "dark":
|
|
4046
4039
|
return "component__theme--dark";
|
|
4047
4040
|
default:
|
|
4048
4041
|
return "component__theme--light";
|
|
4049
4042
|
}
|
|
4050
|
-
}), fa = a(() =>
|
|
4051
|
-
a(() =>
|
|
4052
|
-
const D = a(() => "6px 10px"),
|
|
4043
|
+
}), fa = a(() => z.value.inputReadonly ? "component__input--read-only" : ""), Kt = a(() => z.value.inputUppercase ? "component__input--uppercase" : ""), f = a(() => Ue.value ? Ue.value : `${Le.value}-name-label`), w = a(() => ""), U = a(() => lt.value || R.value && R.value.trim().length > 0), i = a(() => !R.value || R.value.trim().length === 0 ? "component__input--empty" : "");
|
|
4044
|
+
a(() => lt.value ? "component__input--active" : "component__input--no-active");
|
|
4045
|
+
const D = a(() => "6px 10px"), Ve = a(() => !!(at.value && Ge.value)), Te = a(() => {
|
|
4053
4046
|
const t = {};
|
|
4054
|
-
|
|
4047
|
+
re.value && Object.keys(re.value).forEach((r) => t[`aria-${r}`] = re.value[r]);
|
|
4055
4048
|
const l = {
|
|
4056
|
-
"aria-label":
|
|
4057
|
-
"aria-disabled":
|
|
4049
|
+
"aria-label": Ae.value,
|
|
4050
|
+
"aria-disabled": N.value,
|
|
4058
4051
|
...t
|
|
4059
4052
|
};
|
|
4060
4053
|
return Object.fromEntries(
|
|
4061
4054
|
Object.entries(l).filter(([n, r]) => r != null)
|
|
4062
4055
|
);
|
|
4063
4056
|
}), va = a(() => {
|
|
4064
|
-
const t =
|
|
4057
|
+
const t = we.value === "dark" ? x.value : bt.value, l = we.value === "dark" ? q.value : Ye.value;
|
|
4065
4058
|
return t === "transparent" || t === "#transparent" || !t ? l : t;
|
|
4066
4059
|
}), Pt = a(() => {
|
|
4067
|
-
const t =
|
|
4060
|
+
const t = we.value === "dark" ? $.value : Oe.value, l = we.value === "dark" ? q.value : Ye.value;
|
|
4068
4061
|
return t === "transparent" || t === "#transparent" || !t ? l : t;
|
|
4069
4062
|
}), pa = a(() => {
|
|
4070
|
-
const t =
|
|
4063
|
+
const t = z.value, l = U.value, n = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, r = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
|
|
4071
4064
|
return {
|
|
4072
4065
|
fontFamily: t.fontFamilyLabel,
|
|
4073
4066
|
fontSize: l ? t.fontSizeLabelActive : t.fontSizeLabel,
|
|
@@ -4084,36 +4077,36 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4084
4077
|
// Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
|
|
4085
4078
|
...l ? {
|
|
4086
4079
|
width: "fit-content",
|
|
4087
|
-
whiteSpace:
|
|
4088
|
-
wordWrap:
|
|
4089
|
-
overflowWrap:
|
|
4080
|
+
whiteSpace: T.value ? "nowrap" : "normal",
|
|
4081
|
+
wordWrap: T.value ? "normal" : "break-word",
|
|
4082
|
+
overflowWrap: T.value ? "normal" : "break-word",
|
|
4090
4083
|
maxWidth: "100%",
|
|
4091
|
-
textOverflow:
|
|
4092
|
-
overflow:
|
|
4084
|
+
textOverflow: T.value ? "ellipsis" : "clip",
|
|
4085
|
+
overflow: T.value ? "hidden" : "visible"
|
|
4093
4086
|
} : {}
|
|
4094
4087
|
};
|
|
4095
4088
|
});
|
|
4096
4089
|
a(() => {
|
|
4097
|
-
const t =
|
|
4090
|
+
const t = z.value;
|
|
4098
4091
|
return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
|
|
4099
4092
|
});
|
|
4100
4093
|
const Qt = () => {
|
|
4101
|
-
m.value = h.value,
|
|
4094
|
+
m.value = h.value, St.value = v.value;
|
|
4102
4095
|
}, ga = () => {
|
|
4103
|
-
|
|
4096
|
+
B("clicked");
|
|
4104
4097
|
}, ya = (t) => {
|
|
4105
|
-
t.stopPropagation(), !(
|
|
4098
|
+
t.stopPropagation(), !(N.value || z.value.inputReadonly) && F.value && (F.value.focus(), L.value && (j.value = !1, requestAnimationFrame(() => {
|
|
4106
4099
|
wt(), j.value = !0;
|
|
4107
4100
|
})));
|
|
4108
4101
|
}, ba = () => {
|
|
4109
|
-
|
|
4102
|
+
N.value || z.value.inputReadonly || !Ne.value || B("entered", m.value);
|
|
4110
4103
|
}, ma = async (t) => {
|
|
4111
4104
|
var n;
|
|
4112
4105
|
const l = ((n = t.clipboardData) == null ? void 0 : n.getData("text")) || "";
|
|
4113
|
-
|
|
4106
|
+
B("paste", l), je.value && t.preventDefault();
|
|
4114
4107
|
}, wt = () => {
|
|
4115
|
-
|
|
4116
|
-
const t =
|
|
4108
|
+
F.value && aa(() => {
|
|
4109
|
+
const t = F.value.getBoundingClientRect(), l = 4;
|
|
4117
4110
|
At.value = {
|
|
4118
4111
|
top: `${t.bottom + l}px`,
|
|
4119
4112
|
left: `${t.left}px`
|
|
@@ -4123,32 +4116,32 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4123
4116
|
position: "fixed",
|
|
4124
4117
|
top: At.value.top,
|
|
4125
4118
|
left: At.value.left,
|
|
4126
|
-
zIndex:
|
|
4119
|
+
zIndex: Bt.value
|
|
4127
4120
|
})), Sa = () => {
|
|
4128
|
-
|
|
4121
|
+
lt.value = !0, B("focused"), L.value && (j.value = !1, requestAnimationFrame(() => {
|
|
4129
4122
|
wt(), j.value = !0;
|
|
4130
4123
|
}));
|
|
4131
4124
|
}, xa = (t) => {
|
|
4132
|
-
t.relatedTarget &&
|
|
4125
|
+
t.relatedTarget && E.value && E.value.contains(t.relatedTarget) || setTimeout(() => {
|
|
4133
4126
|
var r;
|
|
4134
4127
|
const l = document.activeElement;
|
|
4135
4128
|
if (j.value) {
|
|
4136
|
-
if (
|
|
4129
|
+
if (E.value && E.value.contains(l) || t.relatedTarget && E.value && E.value.contains(t.relatedTarget))
|
|
4137
4130
|
return;
|
|
4138
|
-
if (l === document.body &&
|
|
4139
|
-
const d =
|
|
4131
|
+
if (l === document.body && E.value) {
|
|
4132
|
+
const d = E.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
4140
4133
|
if (Array.from(d).some((c) => c === document.activeElement || c.contains(document.activeElement)))
|
|
4141
4134
|
return;
|
|
4142
4135
|
}
|
|
4143
4136
|
}
|
|
4144
|
-
const n = (r =
|
|
4145
|
-
n && n.contains(l) ||
|
|
4137
|
+
const n = (r = F.value) == null ? void 0 : r.closest(".component");
|
|
4138
|
+
n && n.contains(l) || F.value !== l && (lt.value = !1, j.value = !1, B("blurred"));
|
|
4146
4139
|
}, 200);
|
|
4147
4140
|
}, Ca = () => {
|
|
4148
4141
|
L.value && (j.value, j.value = !1, requestAnimationFrame(() => {
|
|
4149
4142
|
wt(), j.value = !0;
|
|
4150
4143
|
}));
|
|
4151
|
-
},
|
|
4144
|
+
}, ot = (t) => {
|
|
4152
4145
|
if (!t || !(t instanceof Date))
|
|
4153
4146
|
return null;
|
|
4154
4147
|
const l = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), r = String(t.getDate()).padStart(2, "0");
|
|
@@ -4157,7 +4150,7 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4157
4150
|
if (t == null || t === "")
|
|
4158
4151
|
return "";
|
|
4159
4152
|
if (t instanceof Date)
|
|
4160
|
-
return isNaN(t.getTime()) ? "" :
|
|
4153
|
+
return isNaN(t.getTime()) ? "" : ot(t);
|
|
4161
4154
|
if (typeof t == "string") {
|
|
4162
4155
|
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
|
|
4163
4156
|
const [n, r, d] = t.split("-").map(Number), s = new Date(n, r - 1, d);
|
|
@@ -4165,7 +4158,7 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4165
4158
|
}
|
|
4166
4159
|
if (/^(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})?)?$/.test(t)) {
|
|
4167
4160
|
const n = new Date(t);
|
|
4168
|
-
return isNaN(n.getTime()) ? "" :
|
|
4161
|
+
return isNaN(n.getTime()) ? "" : ot(n);
|
|
4169
4162
|
}
|
|
4170
4163
|
}
|
|
4171
4164
|
return "";
|
|
@@ -4251,7 +4244,7 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4251
4244
|
return !0;
|
|
4252
4245
|
}
|
|
4253
4246
|
return !1;
|
|
4254
|
-
},
|
|
4247
|
+
}, rt = (t, l) => {
|
|
4255
4248
|
if (!t || t === "")
|
|
4256
4249
|
return !0;
|
|
4257
4250
|
if (l === "date") {
|
|
@@ -4270,7 +4263,7 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4270
4263
|
if (n.length !== 2)
|
|
4271
4264
|
return !1;
|
|
4272
4265
|
const r = n[0], d = n[1];
|
|
4273
|
-
return
|
|
4266
|
+
return rt(r, "date") && rt(d, "time");
|
|
4274
4267
|
} else if (l === "month") {
|
|
4275
4268
|
if (!/^\d{4}-\d{2}$/.test(t))
|
|
4276
4269
|
return !1;
|
|
@@ -4286,27 +4279,27 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4286
4279
|
}, zt = () => {
|
|
4287
4280
|
let t = !0;
|
|
4288
4281
|
if (h.value === null || h.value === void 0 || h.value === "") {
|
|
4289
|
-
t = !
|
|
4282
|
+
t = !ft.value, B("valid", t);
|
|
4290
4283
|
return;
|
|
4291
4284
|
}
|
|
4292
4285
|
if (v.value === "date") {
|
|
4293
4286
|
const n = _t(h.value);
|
|
4294
4287
|
if (n === "" && h.value !== "" && h.value !== null && h.value !== void 0) {
|
|
4295
|
-
|
|
4288
|
+
B("valid", !1);
|
|
4296
4289
|
return;
|
|
4297
4290
|
}
|
|
4298
4291
|
if (n === "") {
|
|
4299
|
-
|
|
4292
|
+
B("valid", !0);
|
|
4300
4293
|
return;
|
|
4301
4294
|
}
|
|
4302
|
-
if (!
|
|
4303
|
-
|
|
4295
|
+
if (!rt(n, v.value)) {
|
|
4296
|
+
B("valid", !1);
|
|
4304
4297
|
return;
|
|
4305
4298
|
}
|
|
4306
4299
|
t = !Ot(n);
|
|
4307
4300
|
} else if (v.value === "time") {
|
|
4308
|
-
if (!
|
|
4309
|
-
|
|
4301
|
+
if (!rt(h.value, v.value)) {
|
|
4302
|
+
B("valid", !1);
|
|
4310
4303
|
return;
|
|
4311
4304
|
}
|
|
4312
4305
|
const n = h.value.split(":");
|
|
@@ -4318,18 +4311,18 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4318
4311
|
if (h.value, typeof h.value == "string") {
|
|
4319
4312
|
const n = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/, r = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
4320
4313
|
if (!n.test(h.value) && !r.test(h.value)) {
|
|
4321
|
-
|
|
4314
|
+
B("valid", !1);
|
|
4322
4315
|
return;
|
|
4323
4316
|
}
|
|
4324
4317
|
if (r.test(h.value)) {
|
|
4325
4318
|
const d = new Date(h.value);
|
|
4326
4319
|
if (isNaN(d.getTime())) {
|
|
4327
|
-
|
|
4320
|
+
B("valid", !1);
|
|
4328
4321
|
return;
|
|
4329
4322
|
}
|
|
4330
4323
|
}
|
|
4331
4324
|
} else if (h.value !== null && h.value !== void 0 && h.value !== "") {
|
|
4332
|
-
|
|
4325
|
+
B("valid", !1);
|
|
4333
4326
|
return;
|
|
4334
4327
|
}
|
|
4335
4328
|
if (m.value) {
|
|
@@ -4338,44 +4331,44 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4338
4331
|
const r = n[0], d = n[1], s = !Ot(r), c = d.split(":");
|
|
4339
4332
|
let y = !0;
|
|
4340
4333
|
if (c.length >= 2) {
|
|
4341
|
-
const V = parseInt(c[0], 10) || 0,
|
|
4342
|
-
y = !Ft(V,
|
|
4334
|
+
const V = parseInt(c[0], 10) || 0, k = parseInt(c[1], 10) || 0, M = c[2] ? parseInt(c[2], 10) : 0;
|
|
4335
|
+
y = !Ft(V, k, M);
|
|
4343
4336
|
}
|
|
4344
4337
|
t = s && y;
|
|
4345
4338
|
}
|
|
4346
4339
|
}
|
|
4347
4340
|
} else if (v.value === "month") {
|
|
4348
|
-
if (!
|
|
4349
|
-
|
|
4341
|
+
if (!rt(h.value, v.value)) {
|
|
4342
|
+
B("valid", !1);
|
|
4350
4343
|
return;
|
|
4351
4344
|
}
|
|
4352
4345
|
t = !Ot(h.value + "-01");
|
|
4353
4346
|
} else if (v.value === "week") {
|
|
4354
|
-
if (!
|
|
4355
|
-
|
|
4347
|
+
if (!rt(h.value, v.value)) {
|
|
4348
|
+
B("valid", !1);
|
|
4356
4349
|
return;
|
|
4357
4350
|
}
|
|
4358
4351
|
t = !0;
|
|
4359
4352
|
}
|
|
4360
|
-
|
|
4353
|
+
B("valid", t);
|
|
4361
4354
|
}, Va = (t) => {
|
|
4362
|
-
|
|
4355
|
+
B("valid", t);
|
|
4363
4356
|
}, Xt = (t, l) => {
|
|
4364
4357
|
if (!t || !(t instanceof Date))
|
|
4365
4358
|
return t || "";
|
|
4366
4359
|
if (l === "date")
|
|
4367
|
-
return
|
|
4360
|
+
return ot(t);
|
|
4368
4361
|
if (l === "time") {
|
|
4369
4362
|
const n = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), d = String(t.getSeconds()).padStart(2, "0");
|
|
4370
4363
|
return `${n}:${r}:${d}`;
|
|
4371
4364
|
} else if (l === "datetime-local") {
|
|
4372
|
-
const n =
|
|
4365
|
+
const n = ot(t), r = String(t.getHours()).padStart(2, "0"), d = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
|
|
4373
4366
|
return `${n}T${r}:${d}:${s}`;
|
|
4374
4367
|
} else if (l === "month") {
|
|
4375
4368
|
const n = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0");
|
|
4376
4369
|
return `${n}-${r}`;
|
|
4377
4370
|
} else if (l === "week")
|
|
4378
|
-
return
|
|
4371
|
+
return ot(t);
|
|
4379
4372
|
return "";
|
|
4380
4373
|
}, Ta = a(() => {
|
|
4381
4374
|
if (!L.value)
|
|
@@ -4383,74 +4376,74 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4383
4376
|
}), o = a(() => {
|
|
4384
4377
|
if (!L.value)
|
|
4385
4378
|
return Xt(ee.value, v.value);
|
|
4386
|
-
}), b = a(() => !0),
|
|
4379
|
+
}), b = a(() => !0), ke = (t) => {
|
|
4387
4380
|
let l = "";
|
|
4388
4381
|
if (!t)
|
|
4389
4382
|
l = "";
|
|
4390
|
-
else if (
|
|
4383
|
+
else if (Se.value && typeof t == "object" && !(t instanceof Date)) {
|
|
4391
4384
|
if (t.startDate === null && t.endDate === null)
|
|
4392
4385
|
l = "";
|
|
4393
4386
|
else if (t.startDate || t.endDate) {
|
|
4394
4387
|
const r = {
|
|
4395
4388
|
// Converter startDate para string ISO se existir
|
|
4396
|
-
startDate: t.startDate ?
|
|
4389
|
+
startDate: t.startDate ? ot(t.startDate) : null,
|
|
4397
4390
|
// Converter endDate para string ISO se existir
|
|
4398
|
-
endDate: t.endDate ?
|
|
4391
|
+
endDate: t.endDate ? ot(t.endDate) : null
|
|
4399
4392
|
};
|
|
4400
4393
|
l = JSON.stringify(r);
|
|
4401
4394
|
}
|
|
4402
4395
|
} else
|
|
4403
|
-
v.value === "date" ? t instanceof Date ? l =
|
|
4404
|
-
|
|
4405
|
-
const n = l ?
|
|
4406
|
-
|
|
4396
|
+
v.value === "date" ? t instanceof Date ? l = ot(t) : typeof t == "string" && (l = t) : (v.value === "month" || v.value === "time" || v.value === "datetime-local" || v.value === "week") && (l = typeof t == "string" ? t : "");
|
|
4397
|
+
pt = !0, m.value = l;
|
|
4398
|
+
const n = l ? Ct(l, v.value) : "";
|
|
4399
|
+
R.value = n, g.value = n;
|
|
4407
4400
|
}, Je = () => {
|
|
4408
4401
|
if (!L.value) {
|
|
4409
|
-
m.value =
|
|
4402
|
+
m.value = R.value;
|
|
4410
4403
|
return;
|
|
4411
4404
|
}
|
|
4412
|
-
|
|
4413
|
-
const t =
|
|
4414
|
-
start:
|
|
4415
|
-
end:
|
|
4416
|
-
} : null, l =
|
|
4405
|
+
me = !0;
|
|
4406
|
+
const t = F.value ? {
|
|
4407
|
+
start: F.value.selectionStart,
|
|
4408
|
+
end: F.value.selectionEnd
|
|
4409
|
+
} : null, l = R.value.trim();
|
|
4417
4410
|
if (!l || l.length === 0) {
|
|
4418
|
-
|
|
4419
|
-
|
|
4411
|
+
pt = !0, m.value = "", R.value = "", g.value = "", setTimeout(() => {
|
|
4412
|
+
me = !1;
|
|
4420
4413
|
}, 50);
|
|
4421
4414
|
return;
|
|
4422
4415
|
}
|
|
4423
4416
|
if (v.value === "date") {
|
|
4424
|
-
const r =
|
|
4425
|
-
if (
|
|
4417
|
+
const r = Se.value ? /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$|^\d{1,2}\/\d{1,2}\/\d{4}\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})?$/ : /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/;
|
|
4418
|
+
if (Se.value) {
|
|
4426
4419
|
if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), l.length > 23 && !r.test(l)) {
|
|
4427
|
-
|
|
4428
|
-
const d = Math.min(t.start,
|
|
4429
|
-
|
|
4420
|
+
R.value = g.value, t && F.value && aa(() => {
|
|
4421
|
+
const d = Math.min(t.start, g.value.length);
|
|
4422
|
+
F.value.setSelectionRange(d, d);
|
|
4430
4423
|
}), setTimeout(() => {
|
|
4431
|
-
|
|
4424
|
+
me = !1;
|
|
4432
4425
|
}, 50);
|
|
4433
4426
|
return;
|
|
4434
4427
|
}
|
|
4435
4428
|
if (!r.test(l) && l.length <= 23) {
|
|
4436
4429
|
setTimeout(() => {
|
|
4437
|
-
|
|
4430
|
+
me = !1;
|
|
4438
4431
|
}, 50);
|
|
4439
4432
|
return;
|
|
4440
4433
|
}
|
|
4441
4434
|
} else {
|
|
4442
4435
|
if (l.length > 10 && !r.test(l)) {
|
|
4443
|
-
|
|
4444
|
-
const d = Math.min(t.start,
|
|
4445
|
-
|
|
4436
|
+
R.value = g.value, t && F.value && aa(() => {
|
|
4437
|
+
const d = Math.min(t.start, g.value.length);
|
|
4438
|
+
F.value.setSelectionRange(d, d);
|
|
4446
4439
|
}), setTimeout(() => {
|
|
4447
|
-
|
|
4440
|
+
me = !1;
|
|
4448
4441
|
}, 50);
|
|
4449
4442
|
return;
|
|
4450
4443
|
}
|
|
4451
4444
|
if (!r.test(l) && l.length <= 10) {
|
|
4452
4445
|
setTimeout(() => {
|
|
4453
|
-
|
|
4446
|
+
me = !1;
|
|
4454
4447
|
}, 50);
|
|
4455
4448
|
return;
|
|
4456
4449
|
}
|
|
@@ -4458,90 +4451,90 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4458
4451
|
}
|
|
4459
4452
|
let n = null;
|
|
4460
4453
|
if (v.value === "date")
|
|
4461
|
-
if (
|
|
4454
|
+
if (Se.value)
|
|
4462
4455
|
if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
|
|
4463
|
-
if (n =
|
|
4464
|
-
|
|
4456
|
+
if (n = Vt(l, v.value), n && n !== m.value)
|
|
4457
|
+
pt = !0, m.value = n, g.value = l;
|
|
4465
4458
|
else {
|
|
4466
4459
|
setTimeout(() => {
|
|
4467
|
-
|
|
4460
|
+
me = !1;
|
|
4468
4461
|
}, 50);
|
|
4469
4462
|
return;
|
|
4470
4463
|
}
|
|
4471
4464
|
else if (l.includes("-")) {
|
|
4472
4465
|
const d = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
|
|
4473
4466
|
if (d) {
|
|
4474
|
-
const s = d[1], c =
|
|
4467
|
+
const s = d[1], c = Vt(s, v.value);
|
|
4475
4468
|
if (c) {
|
|
4476
4469
|
const y = JSON.stringify({ startDate: c, endDate: null });
|
|
4477
|
-
y !== m.value && (
|
|
4470
|
+
y !== m.value && (pt = !0, m.value = y, g.value = l);
|
|
4478
4471
|
} else {
|
|
4479
|
-
|
|
4480
|
-
|
|
4472
|
+
g.value = l, setTimeout(() => {
|
|
4473
|
+
me = !1;
|
|
4481
4474
|
}, 50);
|
|
4482
4475
|
return;
|
|
4483
4476
|
}
|
|
4484
4477
|
} else {
|
|
4485
|
-
|
|
4486
|
-
|
|
4478
|
+
g.value = l, setTimeout(() => {
|
|
4479
|
+
me = !1;
|
|
4487
4480
|
}, 50);
|
|
4488
4481
|
return;
|
|
4489
4482
|
}
|
|
4490
4483
|
} else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
|
|
4491
|
-
if (n =
|
|
4484
|
+
if (n = Vt(l, v.value), n) {
|
|
4492
4485
|
const s = JSON.stringify({ startDate: n, endDate: null });
|
|
4493
|
-
s !== m.value && (
|
|
4486
|
+
s !== m.value && (pt = !0, m.value = s, g.value = l);
|
|
4494
4487
|
} else {
|
|
4495
|
-
|
|
4496
|
-
|
|
4488
|
+
g.value = l, setTimeout(() => {
|
|
4489
|
+
me = !1;
|
|
4497
4490
|
}, 50);
|
|
4498
4491
|
return;
|
|
4499
4492
|
}
|
|
4500
4493
|
else {
|
|
4501
|
-
|
|
4502
|
-
|
|
4494
|
+
g.value = l, setTimeout(() => {
|
|
4495
|
+
me = !1;
|
|
4503
4496
|
}, 50);
|
|
4504
4497
|
return;
|
|
4505
4498
|
}
|
|
4506
4499
|
else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
|
|
4507
|
-
n =
|
|
4500
|
+
n = Vt(l, v.value), n && n !== m.value && (pt = !0, m.value = n, g.value = l);
|
|
4508
4501
|
else {
|
|
4509
4502
|
setTimeout(() => {
|
|
4510
|
-
|
|
4503
|
+
me = !1;
|
|
4511
4504
|
}, 50);
|
|
4512
4505
|
return;
|
|
4513
4506
|
}
|
|
4514
4507
|
else
|
|
4515
|
-
n =
|
|
4508
|
+
n = Vt(l, v.value), n && n !== m.value && (pt = !0, m.value = n, g.value = l);
|
|
4516
4509
|
setTimeout(() => {
|
|
4517
|
-
|
|
4510
|
+
me = !1;
|
|
4518
4511
|
}, 50);
|
|
4519
4512
|
}, ka = (t) => {
|
|
4520
4513
|
}, ea = (t) => {
|
|
4521
4514
|
var d;
|
|
4522
|
-
if (!j.value || !
|
|
4515
|
+
if (!j.value || !E.value || !F.value)
|
|
4523
4516
|
return;
|
|
4524
|
-
const l = t.target, n = (d =
|
|
4525
|
-
if (
|
|
4517
|
+
const l = t.target, n = (d = F.value) == null ? void 0 : d.closest(".nb-wrapper");
|
|
4518
|
+
if (E.value && E.value.contains(l) || n && (l === n || n.contains(l)) || E.value && E.value.contains(l))
|
|
4526
4519
|
return;
|
|
4527
4520
|
let r = l;
|
|
4528
4521
|
for (; r && r !== document.body; ) {
|
|
4529
|
-
if (r ===
|
|
4522
|
+
if (r === E.value || E.value && E.value.contains(r))
|
|
4530
4523
|
return;
|
|
4531
4524
|
r = r.parentElement;
|
|
4532
4525
|
}
|
|
4533
4526
|
setTimeout(() => {
|
|
4534
|
-
if (!j.value || !
|
|
4527
|
+
if (!j.value || !E.value || E.value && E.value.contains(l))
|
|
4535
4528
|
return;
|
|
4536
4529
|
for (r = l; r && r !== document.body; ) {
|
|
4537
|
-
if (r ===
|
|
4530
|
+
if (r === E.value || E.value && E.value.contains(r))
|
|
4538
4531
|
return;
|
|
4539
4532
|
r = r.parentElement;
|
|
4540
4533
|
}
|
|
4541
4534
|
if (!document.body.contains(l))
|
|
4542
4535
|
return;
|
|
4543
|
-
const s =
|
|
4544
|
-
!s && !c && (j.value = !1, (!
|
|
4536
|
+
const s = F.value && (l === F.value || F.value.contains(l)), c = n && (l === n || n.contains(l));
|
|
4537
|
+
!s && !c && (j.value = !1, (!R.value || R.value.trim().length === 0) && (lt.value = !1));
|
|
4545
4538
|
}, 50);
|
|
4546
4539
|
}, $a = () => {
|
|
4547
4540
|
j.value && L.value && wt();
|
|
@@ -4550,25 +4543,25 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4550
4543
|
};
|
|
4551
4544
|
let Wt = null, ta = null, Ht = { top: 0, left: 0 };
|
|
4552
4545
|
const Da = () => {
|
|
4553
|
-
if (!j.value || !L.value || !
|
|
4546
|
+
if (!j.value || !L.value || !F.value)
|
|
4554
4547
|
return;
|
|
4555
|
-
const t = 4, l =
|
|
4548
|
+
const t = 4, l = F.value.getBoundingClientRect(), n = `${l.bottom + t}px`, r = `${l.left}px`;
|
|
4556
4549
|
(Ht.top !== n || Ht.left !== r) && (Ht.top = n, Ht.left = r, At.value = {
|
|
4557
4550
|
top: n,
|
|
4558
4551
|
left: r
|
|
4559
4552
|
}), ta = requestAnimationFrame(Da);
|
|
4560
4553
|
}, Ia = () => {
|
|
4561
|
-
if (!
|
|
4554
|
+
if (!F.value || !L.value)
|
|
4562
4555
|
return;
|
|
4563
4556
|
Ht = { top: 0, left: 0 }, Da(), Wt = new ResizeObserver(() => {
|
|
4564
4557
|
j.value && wt();
|
|
4565
|
-
}), Wt.observe(
|
|
4566
|
-
const t =
|
|
4558
|
+
}), Wt.observe(F.value);
|
|
4559
|
+
const t = F.value.closest(".component");
|
|
4567
4560
|
t && Wt.observe(t);
|
|
4568
4561
|
}, Ra = () => {
|
|
4569
4562
|
ta !== null && (cancelAnimationFrame(ta), ta = null), Wt && (Wt.disconnect(), Wt = null);
|
|
4570
4563
|
};
|
|
4571
|
-
|
|
4564
|
+
G(j, (t) => {
|
|
4572
4565
|
t && L.value ? aa(() => {
|
|
4573
4566
|
Ia();
|
|
4574
4567
|
}) : Ra();
|
|
@@ -4589,23 +4582,23 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4589
4582
|
if (isNaN(d.getTime()))
|
|
4590
4583
|
t = "";
|
|
4591
4584
|
else {
|
|
4592
|
-
const s = d.getFullYear(), c = String(d.getMonth() + 1).padStart(2, "0"), y = String(d.getDate()).padStart(2, "0"), V = String(d.getHours()).padStart(2, "0"),
|
|
4593
|
-
t =
|
|
4585
|
+
const s = d.getFullYear(), c = String(d.getMonth() + 1).padStart(2, "0"), y = String(d.getDate()).padStart(2, "0"), V = String(d.getHours()).padStart(2, "0"), k = String(d.getMinutes()).padStart(2, "0"), M = String(d.getSeconds()).padStart(2, "0"), O = ((l = h.value.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
|
|
4586
|
+
t = O.includes(":") && O.split(":").length >= 3 ? `${s}-${c}-${y}T${V}:${k}:${M}` : `${s}-${c}-${y}T${V}:${k}`;
|
|
4594
4587
|
}
|
|
4595
4588
|
} else
|
|
4596
4589
|
t = "";
|
|
4597
4590
|
} else
|
|
4598
4591
|
t = "";
|
|
4599
|
-
m.value = t,
|
|
4592
|
+
m.value = t, R.value = Ct(h.value, v.value), document.addEventListener("click", ea, !1), window.addEventListener("scroll", $a, { capture: !0, passive: !0 }), window.addEventListener("resize", wa), aa(() => {
|
|
4600
4593
|
zt();
|
|
4601
4594
|
});
|
|
4602
4595
|
}), Pa(() => {
|
|
4603
4596
|
Qt(), Ra(), document.removeEventListener("click", ea), window.removeEventListener("scroll", $a, { capture: !0, passive: !0 }), window.removeEventListener("resize", wa);
|
|
4604
|
-
}),
|
|
4605
|
-
|
|
4606
|
-
}, { immediate: !0 }),
|
|
4607
|
-
m.value && L.value && (
|
|
4608
|
-
}),
|
|
4597
|
+
}), G(v, (t) => {
|
|
4598
|
+
St.value = t;
|
|
4599
|
+
}, { immediate: !0 }), G(tt, () => {
|
|
4600
|
+
m.value && L.value && (R.value = Ct(m.value, v.value));
|
|
4601
|
+
}), G(h, (t) => {
|
|
4609
4602
|
var l;
|
|
4610
4603
|
if (t !== m.value) {
|
|
4611
4604
|
let n = t;
|
|
@@ -4623,35 +4616,35 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4623
4616
|
if (isNaN(c.getTime()))
|
|
4624
4617
|
n = "";
|
|
4625
4618
|
else {
|
|
4626
|
-
const y = c.getFullYear(), V = String(c.getMonth() + 1).padStart(2, "0"),
|
|
4627
|
-
n = Xe.includes(":") && Xe.split(":").length >= 3 ? `${y}-${V}-${
|
|
4619
|
+
const y = c.getFullYear(), V = String(c.getMonth() + 1).padStart(2, "0"), k = String(c.getDate()).padStart(2, "0"), M = String(c.getHours()).padStart(2, "0"), O = String(c.getMinutes()).padStart(2, "0"), Me = String(c.getSeconds()).padStart(2, "0"), Xe = ((l = t.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
|
|
4620
|
+
n = Xe.includes(":") && Xe.split(":").length >= 3 ? `${y}-${V}-${k}T${M}:${O}:${Me}` : `${y}-${V}-${k}T${M}:${O}`;
|
|
4628
4621
|
}
|
|
4629
4622
|
} else
|
|
4630
4623
|
n = "";
|
|
4631
4624
|
} else
|
|
4632
4625
|
n = "";
|
|
4633
4626
|
m.value = n;
|
|
4634
|
-
const r =
|
|
4635
|
-
|
|
4627
|
+
const r = Ct(t, v.value);
|
|
4628
|
+
R.value = r, aa(() => {
|
|
4636
4629
|
zt();
|
|
4637
|
-
}),
|
|
4630
|
+
}), g.value = r;
|
|
4638
4631
|
}
|
|
4639
4632
|
}, { immediate: !0 });
|
|
4640
|
-
let
|
|
4633
|
+
let me = !1;
|
|
4641
4634
|
const Ea = () => {
|
|
4642
|
-
|
|
4643
|
-
|
|
4635
|
+
me = !0, setTimeout(() => {
|
|
4636
|
+
me = !1;
|
|
4644
4637
|
}, 100);
|
|
4645
4638
|
};
|
|
4646
|
-
let
|
|
4647
|
-
return
|
|
4648
|
-
if (L.value && !
|
|
4649
|
-
const l =
|
|
4650
|
-
l !==
|
|
4639
|
+
let pt = !1;
|
|
4640
|
+
return G(() => m.value, (t) => {
|
|
4641
|
+
if (L.value && !pt && !me) {
|
|
4642
|
+
const l = Ct(t, v.value);
|
|
4643
|
+
l !== R.value && (R.value = l, g.value = l);
|
|
4651
4644
|
}
|
|
4652
|
-
|
|
4653
|
-
}),
|
|
4654
|
-
if (Z.value && (t = t.trim()),
|
|
4645
|
+
pt = !1;
|
|
4646
|
+
}), G(m, (t) => {
|
|
4647
|
+
if (Z.value && (t = t.trim()), Se.value && typeof t == "string" && t.startsWith("{"))
|
|
4655
4648
|
try {
|
|
4656
4649
|
const l = JSON.parse(t);
|
|
4657
4650
|
if (l && (l.startDate || l.endDate)) {
|
|
@@ -4664,112 +4657,112 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4664
4657
|
}
|
|
4665
4658
|
return new Date(s);
|
|
4666
4659
|
}, r = l.startDate ? n(l.startDate) : null, d = l.endDate ? n(l.endDate) : null;
|
|
4667
|
-
|
|
4660
|
+
B("changed", { startDate: r, endDate: d });
|
|
4668
4661
|
return;
|
|
4669
4662
|
}
|
|
4670
4663
|
} catch {
|
|
4671
4664
|
}
|
|
4672
|
-
|
|
4673
|
-
}),
|
|
4674
|
-
|
|
4675
|
-
}),
|
|
4676
|
-
Z.value && (t = t.trim()),
|
|
4665
|
+
B("changed", t);
|
|
4666
|
+
}), G(lt, (t) => {
|
|
4667
|
+
B(t ? "focused" : "blurred");
|
|
4668
|
+
}), G(m, (t) => {
|
|
4669
|
+
Z.value && (t = t.trim()), B("current-value", t), aa(() => {
|
|
4677
4670
|
zt();
|
|
4678
4671
|
});
|
|
4679
|
-
}),
|
|
4672
|
+
}), G([_e, ee], () => {
|
|
4680
4673
|
aa(() => {
|
|
4681
4674
|
zt();
|
|
4682
4675
|
});
|
|
4683
|
-
}), (t, l) => u(
|
|
4676
|
+
}), (t, l) => u(Le) ? (W(), P("div", Aa({
|
|
4684
4677
|
key: 0,
|
|
4685
|
-
class: ["nb-wrapper",
|
|
4686
|
-
style: [
|
|
4678
|
+
class: ["nb-wrapper", Tt.value],
|
|
4679
|
+
style: [kt.value, Yt.value, It.value],
|
|
4687
4680
|
role: "input"
|
|
4688
|
-
},
|
|
4689
|
-
|
|
4690
|
-
id: u(
|
|
4681
|
+
}, Te.value), [
|
|
4682
|
+
ve("div", {
|
|
4683
|
+
id: u(Le),
|
|
4691
4684
|
class: Ee(["nb-reset", "component", ca.value, Gt.value, fa.value, sa.value]),
|
|
4692
|
-
style:
|
|
4685
|
+
style: Be([A.value, Yt.value, It.value]),
|
|
4693
4686
|
onClick: ga
|
|
4694
4687
|
}, [
|
|
4695
|
-
u(
|
|
4688
|
+
u(We) ? (W(), P("label", {
|
|
4696
4689
|
key: 0,
|
|
4697
4690
|
for: f.value,
|
|
4698
4691
|
class: "component__label",
|
|
4699
|
-
style:
|
|
4692
|
+
style: Be([pa.value]),
|
|
4700
4693
|
onClick: ya
|
|
4701
4694
|
}, [
|
|
4702
|
-
qt(Dt(u(
|
|
4703
|
-
u(
|
|
4704
|
-
], 12, ln)) :
|
|
4705
|
-
za(
|
|
4695
|
+
qt(Dt(u(p)), 1),
|
|
4696
|
+
u(ft) ? (W(), P("span", nn, "*")) : oe("", !0)
|
|
4697
|
+
], 12, ln)) : oe("", !0),
|
|
4698
|
+
za(ve("input", {
|
|
4706
4699
|
ref_key: "inputRef",
|
|
4707
|
-
ref:
|
|
4708
|
-
"onUpdate:modelValue": l[0] || (l[0] = (n) =>
|
|
4700
|
+
ref: F,
|
|
4701
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => R.value = n),
|
|
4709
4702
|
onInput: Je,
|
|
4710
4703
|
onKeydown: [
|
|
4711
4704
|
Ea,
|
|
4712
|
-
l[1] || (l[1] = la((n) => !u(
|
|
4705
|
+
l[1] || (l[1] = la((n) => !u(N) && u(Ne) && ba(), ["enter"]))
|
|
4713
4706
|
],
|
|
4714
4707
|
id: f.value,
|
|
4715
4708
|
name: f.value,
|
|
4716
|
-
type: L.value ? "text" :
|
|
4709
|
+
type: L.value ? "text" : St.value,
|
|
4717
4710
|
class: Ee(["component__input", [
|
|
4718
4711
|
Kt.value,
|
|
4719
4712
|
da.value,
|
|
4720
4713
|
i.value
|
|
4721
4714
|
]]),
|
|
4722
4715
|
placeholder: w.value,
|
|
4723
|
-
disabled: u(
|
|
4724
|
-
required: u(
|
|
4716
|
+
disabled: u(N) || u(I),
|
|
4717
|
+
required: u(ft),
|
|
4725
4718
|
readonly: b.value,
|
|
4726
4719
|
autocomplete: e.inputAutocomplete,
|
|
4727
4720
|
min: Ta.value,
|
|
4728
4721
|
max: o.value,
|
|
4729
|
-
step: L.value ? void 0 : u(
|
|
4730
|
-
tabindex: u(
|
|
4722
|
+
step: L.value ? void 0 : u(ut),
|
|
4723
|
+
tabindex: u(N) || u(I) ? -1 : u(Lt),
|
|
4731
4724
|
role: "input",
|
|
4732
|
-
style:
|
|
4725
|
+
style: Be([It.value]),
|
|
4733
4726
|
onFocus: Sa,
|
|
4734
4727
|
onBlur: xa,
|
|
4735
4728
|
onClick: Ca,
|
|
4736
4729
|
onPaste: ma
|
|
4737
4730
|
}, null, 46, on), [
|
|
4738
|
-
[fl,
|
|
4731
|
+
[fl, R.value]
|
|
4739
4732
|
])
|
|
4740
4733
|
], 14, an),
|
|
4741
|
-
|
|
4734
|
+
Ve.value ? (W(), P("div", {
|
|
4742
4735
|
key: 0,
|
|
4743
4736
|
class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
4744
4737
|
}, [
|
|
4745
4738
|
Ba(t.$slots, "message", {}, () => [
|
|
4746
4739
|
qt(Dt(e.message), 1)
|
|
4747
4740
|
], !0)
|
|
4748
|
-
], 2)) :
|
|
4749
|
-
(
|
|
4750
|
-
L.value && j.value ? (
|
|
4741
|
+
], 2)) : oe("", !0),
|
|
4742
|
+
(W(), Sl(xl, { to: "body" }, [
|
|
4743
|
+
L.value && j.value ? (W(), P("div", {
|
|
4751
4744
|
key: 0,
|
|
4752
4745
|
ref_key: "calendarRef",
|
|
4753
|
-
ref:
|
|
4746
|
+
ref: E,
|
|
4754
4747
|
class: "datepicker__custom-calendar-wrapper",
|
|
4755
|
-
style:
|
|
4756
|
-
onClick: l[4] || (l[4] = Ma((n) =>
|
|
4757
|
-
onMousedown: l[5] || (l[5] = Ma((n) =>
|
|
4748
|
+
style: Be(ha.value),
|
|
4749
|
+
onClick: l[4] || (l[4] = Ma((n) => xt.value = !0, ["stop"])),
|
|
4750
|
+
onMousedown: l[5] || (l[5] = Ma((n) => xt.value = !0, ["stop"]))
|
|
4758
4751
|
}, [
|
|
4759
4752
|
Cl(u(C), {
|
|
4760
|
-
"nb-id": `${u(
|
|
4761
|
-
value:
|
|
4753
|
+
"nb-id": `${u(Le)}-calendar`,
|
|
4754
|
+
value: fe.value,
|
|
4762
4755
|
"input-type": u(v),
|
|
4763
|
-
"has-seconds":
|
|
4756
|
+
"has-seconds": nt.value,
|
|
4764
4757
|
min: u(_e),
|
|
4765
4758
|
max: u(ee),
|
|
4766
|
-
step: u(
|
|
4767
|
-
disabled: u(
|
|
4768
|
-
width:
|
|
4759
|
+
step: u(ut),
|
|
4760
|
+
disabled: u(N),
|
|
4761
|
+
width: Ce.value,
|
|
4769
4762
|
locale: u(tt),
|
|
4770
|
-
theme: u(
|
|
4771
|
-
"allow-range": u(
|
|
4772
|
-
"block-clicks-without-events": u(
|
|
4763
|
+
theme: u(we),
|
|
4764
|
+
"allow-range": u(Se),
|
|
4765
|
+
"block-clicks-without-events": u(yt),
|
|
4773
4766
|
"font-family": e.calendarFontFamily,
|
|
4774
4767
|
"font-size": e.calendarFontSize,
|
|
4775
4768
|
"font-weight": e.calendarFontWeight,
|
|
@@ -4827,17 +4820,17 @@ const an = ["id"], ln = ["for"], nn = {
|
|
|
4827
4820
|
"time-display-label-text": e.calendarTimeDisplayLabelText,
|
|
4828
4821
|
"clear-button-title": e.calendarClearButtonTitle,
|
|
4829
4822
|
"clear-button-symbol": e.calendarClearButtonSymbol,
|
|
4830
|
-
onChanged:
|
|
4823
|
+
onChanged: ke,
|
|
4831
4824
|
onDateSelected: ka,
|
|
4832
4825
|
onValid: Va,
|
|
4833
|
-
onMousedown: l[2] || (l[2] = (n) =>
|
|
4834
|
-
onClick: l[3] || (l[3] = (n) =>
|
|
4826
|
+
onMousedown: l[2] || (l[2] = (n) => xt.value = !0),
|
|
4827
|
+
onClick: l[3] || (l[3] = (n) => xt.value = !0)
|
|
4835
4828
|
}, 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"])
|
|
4836
|
-
], 36)) :
|
|
4829
|
+
], 36)) : oe("", !0)
|
|
4837
4830
|
]))
|
|
4838
|
-
], 16)) :
|
|
4831
|
+
], 16)) : oe("", !0);
|
|
4839
4832
|
}
|
|
4840
|
-
}), un = /* @__PURE__ */ Wa(rn, [["__scopeId", "data-v-
|
|
4833
|
+
}), un = /* @__PURE__ */ Wa(rn, [["__scopeId", "data-v-158ccd7c"]]), sl = {
|
|
4841
4834
|
NbInputRadio: Ll,
|
|
4842
4835
|
NbInputCheckbox: Rl,
|
|
4843
4836
|
NbInput: Ol,
|