@vlalg-nimbus/nb-inputs 8.0.7 → 8.0.8
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 +870 -865
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +94 -94
package/dist/nb-inputs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
1
|
+
import { useCssVars as da, onMounted as ra, ref as ee, toRefs as ca, computed as a, watch as U, openBlock as E, createElementBlock as O, normalizeClass as We, normalizeStyle as Pe, createElementVNode as ve, mergeProps as ia, Fragment as Fa, renderList as Oa, unref as u, withDirectives as fa, vModelRadio as al, withKeys as Et, withModifiers as sa, toDisplayString as ht, createCommentVNode as Be, vModelCheckbox as ll, onUnmounted as ma, renderSlot as ua, createTextVNode as ga, vModelDynamic as qa, vModelText as ja, defineAsyncComponent as nl, nextTick as ya, createBlock as ol, Teleport as ul, createVNode as rl } from "vue";
|
|
2
|
+
const va = (e, y) => {
|
|
3
3
|
const m = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
m[
|
|
4
|
+
for (const [W, M] of y)
|
|
5
|
+
m[W] = M;
|
|
6
6
|
return m;
|
|
7
7
|
}, il = ["id"], sl = ["id", "disabled", "value", "name"], dl = ["for", "tabindex"], cl = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbInputRadio",
|
|
@@ -58,8 +58,8 @@ const fa = (e, y) => {
|
|
|
58
58
|
return !1;
|
|
59
59
|
let y = !1;
|
|
60
60
|
for (const m of e) {
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const W = Object.keys(m);
|
|
62
|
+
W.length !== 2 && (y = !0), W.every((Se) => ["value", "text"].includes(Se)) || (y = !0);
|
|
63
63
|
}
|
|
64
64
|
if (!y)
|
|
65
65
|
return e;
|
|
@@ -152,7 +152,7 @@ const fa = (e, y) => {
|
|
|
152
152
|
},
|
|
153
153
|
emits: ["current-value", "changed", "clicked"],
|
|
154
154
|
setup(e, { emit: y }) {
|
|
155
|
-
|
|
155
|
+
da((f) => ({
|
|
156
156
|
"0fd48d29": Ge.value,
|
|
157
157
|
"50426c15": pt.value,
|
|
158
158
|
"5fa7628c": it.value,
|
|
@@ -164,129 +164,129 @@ const fa = (e, y) => {
|
|
|
164
164
|
"35b74fa6": vt.value,
|
|
165
165
|
"7dd5f889": he.value,
|
|
166
166
|
"5cb21b36": ft.value
|
|
167
|
-
})),
|
|
167
|
+
})), ra(() => {
|
|
168
168
|
Ye();
|
|
169
169
|
});
|
|
170
|
-
const m = y,
|
|
170
|
+
const m = y, W = e, M = ee(null), {
|
|
171
171
|
ariaLabel: Se,
|
|
172
172
|
ariaAttrs: pe,
|
|
173
173
|
currentOption: Ae,
|
|
174
174
|
valueType: Ve,
|
|
175
175
|
display: se,
|
|
176
|
-
options:
|
|
177
|
-
theme:
|
|
176
|
+
options: te,
|
|
177
|
+
theme: Ee,
|
|
178
178
|
lightTextColor: $e,
|
|
179
|
-
lightColor:
|
|
179
|
+
lightColor: oe,
|
|
180
180
|
lightColorHover: G,
|
|
181
|
-
darkTextColor:
|
|
182
|
-
darkColor:
|
|
181
|
+
darkTextColor: _,
|
|
182
|
+
darkColor: ue,
|
|
183
183
|
darkColorHover: K,
|
|
184
184
|
hoverEffect: Y,
|
|
185
185
|
activeHoverEffect: ke,
|
|
186
186
|
itemGap: de,
|
|
187
|
-
internalGap:
|
|
187
|
+
internalGap: P,
|
|
188
188
|
scale: be,
|
|
189
|
-
disabled:
|
|
189
|
+
disabled: ae,
|
|
190
190
|
fontFamily: ye,
|
|
191
191
|
fontSize: ge,
|
|
192
192
|
fontWeight: me
|
|
193
|
-
} =
|
|
194
|
-
const
|
|
193
|
+
} = ca(W), $ = a(() => {
|
|
194
|
+
const f = ae.value ? "component-disabled" : "", S = se.value !== "b" ? "inline-block" : "block", ce = ye.value ? ye.value : "'Lato', sans-serif", Q = ge.value ? ge.value : "1.6em", le = me.value !== 0 && !me.value || me.value < 0 ? 200 : me.value, je = [!1, !0].includes(Y.value) ? Y.value : !1, He = [!1, !0].includes(ke.value) ? ke.value : !1, J = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, d = P.value !== 0 && !P.value || P.value < 0 ? 6 : P.value, v = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value;
|
|
195
195
|
return {
|
|
196
|
-
disabled:
|
|
196
|
+
disabled: f,
|
|
197
197
|
display: S,
|
|
198
198
|
hoverEffect: je,
|
|
199
199
|
activeHoverEffect: He,
|
|
200
200
|
itemGap: J,
|
|
201
201
|
internalGap: d,
|
|
202
|
-
scale:
|
|
202
|
+
scale: v,
|
|
203
203
|
font: ce,
|
|
204
204
|
fontSize: Q,
|
|
205
|
-
fontWeight:
|
|
205
|
+
fontWeight: le
|
|
206
206
|
};
|
|
207
|
-
}), V = a(() =>
|
|
208
|
-
display:
|
|
209
|
-
})), _e = a(() =>
|
|
210
|
-
const
|
|
207
|
+
}), V = a(() => $.value.disabled), k = a(() => ({
|
|
208
|
+
display: $.value.display
|
|
209
|
+
})), _e = a(() => $.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), qe = a(() => {
|
|
210
|
+
const f = $.value;
|
|
211
211
|
return {
|
|
212
|
-
fontSize:
|
|
213
|
-
fontWeight:
|
|
212
|
+
fontSize: f.fontSize,
|
|
213
|
+
fontWeight: f.fontWeight
|
|
214
214
|
};
|
|
215
|
-
}), we = a(() => Array.isArray(
|
|
216
|
-
const S =
|
|
215
|
+
}), we = a(() => Array.isArray(te.value) && te.value.constructor === Array && te.value.length > 0), et = a(() => Ee.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ge = a(() => $.value.font), tt = a(() => $e.value), ct = a(() => oe.value), Ke = a(() => $.value.hoverEffect ? G.value : oe.value), Le = a(() => $.value.activeHoverEffect ? G.value : oe.value), he = a(() => _.value), ft = a(() => ue.value), vt = a(() => $.value.hoverEffect ? K.value : ue.value), at = a(() => $.value.activeHoverEffect ? K.value : ue.value), it = a(() => {
|
|
216
|
+
const S = $.value.internalGap;
|
|
217
217
|
return !S || S < 0 ? 0 : `${S}px`;
|
|
218
218
|
}), pt = a(() => {
|
|
219
|
-
const S =
|
|
219
|
+
const S = $.value.itemGap;
|
|
220
220
|
return !S || S < 0 ? 0 : `${S}px`;
|
|
221
221
|
}), Te = a(() => ({
|
|
222
|
-
zoom:
|
|
222
|
+
zoom: $.value.scale
|
|
223
223
|
})), lt = a(() => {
|
|
224
|
-
const
|
|
225
|
-
pe.value && Object.keys(pe.value).forEach((Q) =>
|
|
224
|
+
const f = {};
|
|
225
|
+
pe.value && Object.keys(pe.value).forEach((Q) => f[`aria-${Q}`] = pe.value[Q]);
|
|
226
226
|
const S = {
|
|
227
227
|
"aria-label": Se.value,
|
|
228
|
-
"aria-disabled":
|
|
229
|
-
...
|
|
228
|
+
"aria-disabled": ae.value,
|
|
229
|
+
...f
|
|
230
230
|
};
|
|
231
231
|
return Object.fromEntries(
|
|
232
232
|
Object.entries(S).filter(([ce, Q]) => Q != null)
|
|
233
233
|
);
|
|
234
234
|
}), Ye = () => {
|
|
235
|
-
const
|
|
236
|
-
|
|
235
|
+
const f = Ae.value;
|
|
236
|
+
f && ["string"].includes(Ve.value) ? M.value = f.toString().toLowerCase() : M.value = f;
|
|
237
237
|
}, Qe = () => {
|
|
238
238
|
m("clicked");
|
|
239
239
|
};
|
|
240
|
-
return U(Ae, (
|
|
241
|
-
|
|
242
|
-
}), U(
|
|
243
|
-
|
|
244
|
-
}), (
|
|
240
|
+
return U(Ae, (f, S) => {
|
|
241
|
+
f !== S && Ye();
|
|
242
|
+
}), U(M, (f, S) => {
|
|
243
|
+
f !== S && (m("current-value", f), m("changed", f));
|
|
244
|
+
}), (f, S) => e.nbId && we.value ? (E(), O("div", {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: We(["nb-wrapper", V.value]),
|
|
247
|
-
style:
|
|
247
|
+
style: Pe([k.value, Te.value])
|
|
248
248
|
}, [
|
|
249
|
-
ve("div",
|
|
249
|
+
ve("div", ia({
|
|
250
250
|
id: e.nbId,
|
|
251
251
|
role: "radiogroup"
|
|
252
252
|
}, lt.value, {
|
|
253
253
|
class: ["nb-reset", "component", _e.value, et.value]
|
|
254
254
|
}), [
|
|
255
|
-
(E(!0), O(
|
|
255
|
+
(E(!0), O(Fa, null, Oa(u(te), (ce, Q) => (E(), O("div", {
|
|
256
256
|
key: Q,
|
|
257
257
|
class: "component-radio__item"
|
|
258
258
|
}, [
|
|
259
|
-
|
|
259
|
+
fa(ve("input", {
|
|
260
260
|
id: `${e.nbId}-${ce.value}`,
|
|
261
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
261
|
+
"onUpdate:modelValue": S[0] || (S[0] = (le) => M.value = le),
|
|
262
262
|
type: "radio",
|
|
263
263
|
class: "component-radio__item--input",
|
|
264
|
-
disabled:
|
|
264
|
+
disabled: u(ae),
|
|
265
265
|
value: ce.value,
|
|
266
266
|
name: e.groupName,
|
|
267
267
|
onClick: Qe
|
|
268
268
|
}, null, 8, sl), [
|
|
269
|
-
[al,
|
|
269
|
+
[al, M.value]
|
|
270
270
|
]),
|
|
271
271
|
ve("label", {
|
|
272
272
|
for: `${e.nbId}-${ce.value}`,
|
|
273
|
-
tabindex:
|
|
273
|
+
tabindex: u(ae) ? -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
|
-
S[1] || (S[1] = Et(
|
|
277
|
-
S[2] || (S[2] = Et(
|
|
276
|
+
S[1] || (S[1] = Et(sa((le) => !u(ae) && e.hasTabIndexEnter && le.target.click(), ["prevent"]), ["enter"])),
|
|
277
|
+
S[2] || (S[2] = Et(sa((le) => !u(ae) && e.hasTabIndexSpace && le.target.click(), ["prevent"]), ["space"]))
|
|
278
278
|
]
|
|
279
279
|
}, [
|
|
280
280
|
S[3] || (S[3] = ve("div", null, null, -1)),
|
|
281
281
|
ve("span", {
|
|
282
|
-
style:
|
|
282
|
+
style: Pe([qe.value])
|
|
283
283
|
}, ht(ce.text), 5)
|
|
284
284
|
], 40, dl)
|
|
285
285
|
]))), 128))
|
|
286
286
|
], 16, il)
|
|
287
287
|
], 6)) : Be("", !0);
|
|
288
288
|
}
|
|
289
|
-
}), fl = /* @__PURE__ */
|
|
289
|
+
}), fl = /* @__PURE__ */ va(cl, [["__scopeId", "data-v-a95f65ea"]]);
|
|
290
290
|
const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabindex"], gl = /* @__PURE__ */ Object.assign({
|
|
291
291
|
name: "NbInputCheckbox",
|
|
292
292
|
inheritAttrs: !1
|
|
@@ -341,8 +341,8 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
341
341
|
return !1;
|
|
342
342
|
let y = !1;
|
|
343
343
|
for (const m of e) {
|
|
344
|
-
const
|
|
345
|
-
|
|
344
|
+
const W = Object.keys(m);
|
|
345
|
+
W.length !== 2 && (y = !0), W.every((Se) => ["value", "text"].includes(Se)) || (y = !0);
|
|
346
346
|
}
|
|
347
347
|
if (!y)
|
|
348
348
|
return e;
|
|
@@ -448,11 +448,11 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
448
448
|
},
|
|
449
449
|
emits: ["current-value", "changed", "clicked"],
|
|
450
450
|
setup(e, { emit: y }) {
|
|
451
|
-
|
|
451
|
+
da((d) => ({
|
|
452
452
|
"49e2c63f": ct.value,
|
|
453
453
|
"107babaa": ce.value,
|
|
454
454
|
"3c7cc5ce": S.value,
|
|
455
|
-
"16d311d0":
|
|
455
|
+
"16d311d0": f.value,
|
|
456
456
|
"3f8b2f30": ft.value,
|
|
457
457
|
"53078d64": he.value,
|
|
458
458
|
"537834e6": vt.value,
|
|
@@ -464,39 +464,39 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
464
464
|
"0a99dbe2": lt.value,
|
|
465
465
|
d6971e68: it.value,
|
|
466
466
|
ca30d9c2: at.value
|
|
467
|
-
})),
|
|
467
|
+
})), ra(() => {
|
|
468
468
|
He();
|
|
469
469
|
});
|
|
470
|
-
const m = y,
|
|
470
|
+
const m = y, W = e, M = ee(null), {
|
|
471
471
|
ariaLabel: Se,
|
|
472
472
|
ariaAttrs: pe,
|
|
473
473
|
currentOption: Ae,
|
|
474
474
|
display: Ve,
|
|
475
475
|
options: se,
|
|
476
|
-
theme:
|
|
477
|
-
lightTextColor:
|
|
476
|
+
theme: te,
|
|
477
|
+
lightTextColor: Ee,
|
|
478
478
|
lightColor: $e,
|
|
479
|
-
lightColorHover:
|
|
479
|
+
lightColorHover: oe,
|
|
480
480
|
darkTextColor: G,
|
|
481
|
-
darkColor:
|
|
482
|
-
darkColorHover:
|
|
481
|
+
darkColor: _,
|
|
482
|
+
darkColorHover: ue,
|
|
483
483
|
boxRadius: K,
|
|
484
484
|
hoverEffect: Y,
|
|
485
485
|
activeHoverEffect: ke,
|
|
486
486
|
itemGap: de,
|
|
487
|
-
internalGap:
|
|
487
|
+
internalGap: P,
|
|
488
488
|
scale: be,
|
|
489
|
-
type:
|
|
489
|
+
type: ae,
|
|
490
490
|
background: ye,
|
|
491
491
|
disabled: ge,
|
|
492
492
|
fontFamily: me,
|
|
493
|
-
fontSize:
|
|
493
|
+
fontSize: $,
|
|
494
494
|
fontWeight: V
|
|
495
|
-
} =
|
|
496
|
-
const d = ge.value ? "component-disabled" : "",
|
|
495
|
+
} = ca(W), k = a(() => {
|
|
496
|
+
const d = ge.value ? "component-disabled" : "", v = Ve.value !== "b" ? "inline-block" : "block", fe = me.value ? me.value : "'Lato', sans-serif", q = $.value ? $.value : "1.6em", re = V.value !== 0 && !V.value || V.value < 0 ? 200 : V.value, Re = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, Me = [!1, !0].includes(Y.value) ? Y.value : !1, Fe = [!1, !0].includes(ke.value) ? ke.value : !1, Oe = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, Ue = P.value !== 0 && !P.value || P.value < 0 ? 6 : P.value, nt = ["box", "circle"].includes(ae.value) ? ae.value : "box", ot = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value, h = [!1, !0].includes(ye.value) ? ye.value : !1;
|
|
497
497
|
return {
|
|
498
498
|
disabled: d,
|
|
499
|
-
display:
|
|
499
|
+
display: v,
|
|
500
500
|
boxRadius: Re,
|
|
501
501
|
hoverEffect: Me,
|
|
502
502
|
activeHoverEffect: Fe,
|
|
@@ -507,7 +507,7 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
507
507
|
font: fe,
|
|
508
508
|
background: h,
|
|
509
509
|
fontSize: q,
|
|
510
|
-
fontWeight:
|
|
510
|
+
fontWeight: re
|
|
511
511
|
};
|
|
512
512
|
}), _e = a(() => k.value.disabled), qe = a(() => ({
|
|
513
513
|
display: k.value.display
|
|
@@ -517,96 +517,96 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
517
517
|
fontSize: d.fontSize,
|
|
518
518
|
fontWeight: d.fontWeight
|
|
519
519
|
};
|
|
520
|
-
}), Ge = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), tt = a(() =>
|
|
520
|
+
}), Ge = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), tt = a(() => te.value === "dark" ? "component__theme--dark" : "component__theme--light"), ct = a(() => k.value.font), Ke = a(() => Ee.value), Le = a(() => $e.value), he = a(() => k.value.hoverEffect ? oe.value : $e.value), ft = a(() => k.value.activeHoverEffect ? oe.value : $e.value), vt = a(() => {
|
|
521
521
|
const d = k.value;
|
|
522
|
-
return d.activeHoverEffect && d.background ? `${
|
|
523
|
-
}), at = a(() => G.value), it = a(() =>
|
|
522
|
+
return d.activeHoverEffect && d.background ? `${oe.value}80` : oe.value;
|
|
523
|
+
}), at = a(() => G.value), it = a(() => _.value), pt = a(() => k.value.hoverEffect ? ue.value : _.value), Te = a(() => k.value.activeHoverEffect ? ue.value : _.value), lt = a(() => {
|
|
524
524
|
const d = k.value;
|
|
525
|
-
return d.activeHoverEffect && d.background ? `${
|
|
525
|
+
return d.activeHoverEffect && d.background ? `${ue.value}80` : ue.value;
|
|
526
526
|
}), Ye = a(() => k.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Qe = a(() => {
|
|
527
|
-
const d = k.value,
|
|
528
|
-
return d.background ? "#ffffff" :
|
|
527
|
+
const d = k.value, v = te.value === "dark" ? G.value : Ee.value;
|
|
528
|
+
return d.background ? "#ffffff" : v;
|
|
529
529
|
});
|
|
530
530
|
a(() => k.value.background ? "19px" : "auto");
|
|
531
|
-
const
|
|
532
|
-
const
|
|
533
|
-
return !
|
|
531
|
+
const f = a(() => {
|
|
532
|
+
const v = k.value.internalGap;
|
|
533
|
+
return !v || v < 0 ? 0 : `${v}px`;
|
|
534
534
|
}), S = a(() => {
|
|
535
535
|
const d = k.value;
|
|
536
536
|
return `${d.boxRadius > 7 ? 7 : d.boxRadius}px`;
|
|
537
537
|
}), ce = a(() => {
|
|
538
|
-
const
|
|
539
|
-
return !
|
|
540
|
-
}), Q = a(() => k.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""),
|
|
538
|
+
const v = k.value.itemGap;
|
|
539
|
+
return !v || v < 0 ? 0 : `${v}px`;
|
|
540
|
+
}), Q = a(() => k.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), le = a(() => ({
|
|
541
541
|
zoom: k.value.scale
|
|
542
542
|
})), je = a(() => {
|
|
543
543
|
const d = {};
|
|
544
544
|
pe.value && Object.keys(pe.value).forEach((q) => d[`aria-${q}`] = pe.value[q]);
|
|
545
|
-
const
|
|
545
|
+
const v = {
|
|
546
546
|
"aria-label": Se.value,
|
|
547
547
|
"aria-disabled": ge.value,
|
|
548
548
|
...d
|
|
549
549
|
};
|
|
550
550
|
return Object.fromEntries(
|
|
551
|
-
Object.entries(
|
|
551
|
+
Object.entries(v).filter(([fe, q]) => q != null)
|
|
552
552
|
);
|
|
553
553
|
}), He = () => {
|
|
554
|
-
|
|
554
|
+
M.value = Ae.value;
|
|
555
555
|
}, J = () => {
|
|
556
556
|
m("clicked");
|
|
557
557
|
};
|
|
558
|
-
return U(Ae, (d,
|
|
559
|
-
d !==
|
|
560
|
-
}), U(
|
|
561
|
-
d !==
|
|
562
|
-
}), (d,
|
|
558
|
+
return U(Ae, (d, v) => {
|
|
559
|
+
d !== v && He();
|
|
560
|
+
}), U(M, (d, v) => {
|
|
561
|
+
d !== v && (m("current-value", d), m("changed", d));
|
|
562
|
+
}), (d, v) => e.nbId && Ge.value ? (E(), O("div", {
|
|
563
563
|
key: 0,
|
|
564
564
|
class: We(["nb-wrapper", _e.value]),
|
|
565
|
-
style:
|
|
565
|
+
style: Pe([qe.value, le.value])
|
|
566
566
|
}, [
|
|
567
|
-
ve("div",
|
|
567
|
+
ve("div", ia({
|
|
568
568
|
id: e.nbId,
|
|
569
569
|
role: "group"
|
|
570
570
|
}, je.value, {
|
|
571
571
|
class: ["nb-reset", "component", we.value, tt.value]
|
|
572
572
|
}), [
|
|
573
|
-
(E(!0), O(
|
|
573
|
+
(E(!0), O(Fa, null, Oa(u(se), (fe, q) => (E(), O("div", {
|
|
574
574
|
key: q,
|
|
575
575
|
class: "component-checkbox__item"
|
|
576
576
|
}, [
|
|
577
|
-
|
|
577
|
+
fa(ve("input", {
|
|
578
578
|
id: `${e.nbId}-${fe.value}`,
|
|
579
|
-
"onUpdate:modelValue":
|
|
579
|
+
"onUpdate:modelValue": v[0] || (v[0] = (re) => M.value = re),
|
|
580
580
|
type: "checkbox",
|
|
581
581
|
class: "component-checkbox__item--input",
|
|
582
|
-
disabled:
|
|
582
|
+
disabled: u(ge),
|
|
583
583
|
value: fe.value,
|
|
584
584
|
name: e.groupName,
|
|
585
585
|
onClick: J
|
|
586
586
|
}, null, 8, pl), [
|
|
587
|
-
[ll,
|
|
587
|
+
[ll, M.value]
|
|
588
588
|
]),
|
|
589
589
|
ve("label", {
|
|
590
590
|
for: `${e.nbId}-${fe.value}`,
|
|
591
591
|
class: We([[Q.value], "component-checkbox__item--label"]),
|
|
592
|
-
tabindex:
|
|
592
|
+
tabindex: u(ge) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[q] : e.tabIndex >= 0 ? e.tabIndex : q + 1,
|
|
593
593
|
onKeydown: [
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
v[1] || (v[1] = Et(sa((re) => !u(ge) && e.hasTabIndexEnter && re.target.click(), ["prevent"]), ["enter"])),
|
|
595
|
+
v[2] || (v[2] = Et(sa((re) => !u(ge) && e.hasTabIndexSpace && re.target.click(), ["prevent"]), ["space"]))
|
|
596
596
|
]
|
|
597
597
|
}, [
|
|
598
598
|
ve("div", {
|
|
599
599
|
class: We([Ye.value])
|
|
600
600
|
}, null, 2),
|
|
601
601
|
ve("span", {
|
|
602
|
-
style:
|
|
602
|
+
style: Pe([et.value])
|
|
603
603
|
}, ht(fe.text), 5)
|
|
604
604
|
], 42, bl)
|
|
605
605
|
]))), 128))
|
|
606
606
|
], 16, vl)
|
|
607
607
|
], 6)) : Be("", !0);
|
|
608
608
|
}
|
|
609
|
-
}), yl = /* @__PURE__ */
|
|
609
|
+
}), yl = /* @__PURE__ */ va(gl, [["__scopeId", "data-v-1c6afddc"]]);
|
|
610
610
|
const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 }, Vl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], kl = ["for"], Ll = /* @__PURE__ */ Object.assign({
|
|
611
611
|
name: "NbInput",
|
|
612
612
|
inheritAttrs: !1
|
|
@@ -1029,74 +1029,74 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1029
1029
|
"entered"
|
|
1030
1030
|
],
|
|
1031
1031
|
setup(e, { emit: y }) {
|
|
1032
|
-
|
|
1032
|
+
da((o) => ({
|
|
1033
1033
|
"15b4e490": xt.value,
|
|
1034
1034
|
"7b408380": Ct.value,
|
|
1035
|
-
"616dacc1":
|
|
1036
|
-
"5ee20750":
|
|
1035
|
+
"616dacc1": u(pt),
|
|
1036
|
+
"5ee20750": Kt.value,
|
|
1037
1037
|
d213cebc: kt.value,
|
|
1038
|
-
"48d09fba":
|
|
1039
|
-
d9ad7782:
|
|
1040
|
-
"92b90674":
|
|
1041
|
-
"4b2d6b40":
|
|
1042
|
-
"7cf01292":
|
|
1043
|
-
"1a969b4b":
|
|
1044
|
-
"476025c4":
|
|
1045
|
-
"7aca2dea":
|
|
1038
|
+
"48d09fba": Yt.value,
|
|
1039
|
+
d9ad7782: u(S),
|
|
1040
|
+
"92b90674": u(Me),
|
|
1041
|
+
"4b2d6b40": u(ce),
|
|
1042
|
+
"7cf01292": u(h),
|
|
1043
|
+
"1a969b4b": u(f),
|
|
1044
|
+
"476025c4": u(Ye),
|
|
1045
|
+
"7aca2dea": u(Qe),
|
|
1046
1046
|
99113096: It.value,
|
|
1047
|
-
"4dc81a67":
|
|
1048
|
-
"2109b2b1":
|
|
1049
|
-
a58af5cc:
|
|
1050
|
-
"883557c4":
|
|
1051
|
-
"73ac8be6":
|
|
1052
|
-
ea51cb66:
|
|
1053
|
-
"41a8cd82":
|
|
1054
|
-
"12998f28":
|
|
1055
|
-
"189e892e":
|
|
1056
|
-
a8713a22:
|
|
1047
|
+
"4dc81a67": u(Te),
|
|
1048
|
+
"2109b2b1": u(lt),
|
|
1049
|
+
a58af5cc: u(Re),
|
|
1050
|
+
"883557c4": u(Q),
|
|
1051
|
+
"73ac8be6": u(ot),
|
|
1052
|
+
ea51cb66: u(it),
|
|
1053
|
+
"41a8cd82": u(vt),
|
|
1054
|
+
"12998f28": u(at),
|
|
1055
|
+
"189e892e": u(he),
|
|
1056
|
+
a8713a22: u(ft),
|
|
1057
1057
|
"47f0f91d": aa.value,
|
|
1058
|
-
e0c4e4b0:
|
|
1058
|
+
e0c4e4b0: na.value,
|
|
1059
1059
|
b699b592: Dt.value,
|
|
1060
|
-
e1d7deb2:
|
|
1061
|
-
"4460cdca":
|
|
1062
|
-
f9aa8392:
|
|
1060
|
+
e1d7deb2: Nt.value,
|
|
1061
|
+
"4460cdca": Bt.value,
|
|
1062
|
+
f9aa8392: u(le),
|
|
1063
1063
|
"816fe7b0": Zt.value,
|
|
1064
|
-
"6e8f7157":
|
|
1065
|
-
"55de2e16":
|
|
1066
|
-
"7fe15882":
|
|
1067
|
-
"456449ce":
|
|
1068
|
-
"7b6807a1":
|
|
1069
|
-
"5be24286":
|
|
1070
|
-
})),
|
|
1064
|
+
"6e8f7157": qt.value,
|
|
1065
|
+
"55de2e16": jt.value,
|
|
1066
|
+
"7fe15882": Ht.value,
|
|
1067
|
+
"456449ce": Gt.value,
|
|
1068
|
+
"7b6807a1": o.styleButtonColor,
|
|
1069
|
+
"5be24286": Ut.value
|
|
1070
|
+
})), ra(() => {
|
|
1071
1071
|
xe.value = Ge.value;
|
|
1072
1072
|
}), ma(() => {
|
|
1073
|
-
|
|
1073
|
+
mt();
|
|
1074
1074
|
});
|
|
1075
|
-
const m = y,
|
|
1076
|
-
nbId:
|
|
1075
|
+
const m = y, W = e, {
|
|
1076
|
+
nbId: M,
|
|
1077
1077
|
display: Se,
|
|
1078
1078
|
hasTabIndexEnter: pe,
|
|
1079
1079
|
ariaLabel: Ae,
|
|
1080
1080
|
ariaAttrs: Ve,
|
|
1081
1081
|
textColor: se,
|
|
1082
|
-
caretColor:
|
|
1083
|
-
selectionBgColor:
|
|
1082
|
+
caretColor: te,
|
|
1083
|
+
selectionBgColor: Ee,
|
|
1084
1084
|
selectionTextColor: $e,
|
|
1085
|
-
hasBorderRadius:
|
|
1085
|
+
hasBorderRadius: oe,
|
|
1086
1086
|
borderRadius: G,
|
|
1087
|
-
disabled:
|
|
1088
|
-
fontFamily:
|
|
1087
|
+
disabled: _,
|
|
1088
|
+
fontFamily: ue,
|
|
1089
1089
|
fontSize: K,
|
|
1090
1090
|
fontWeight: Y,
|
|
1091
1091
|
fontFamilyMsg: ke,
|
|
1092
1092
|
fontSizeMsg: de,
|
|
1093
|
-
fontWeightMsg:
|
|
1093
|
+
fontWeightMsg: P,
|
|
1094
1094
|
textMessageColor: be,
|
|
1095
|
-
inputWidth:
|
|
1095
|
+
inputWidth: ae,
|
|
1096
1096
|
inputStyle: ye,
|
|
1097
1097
|
activeTextStyle: ge,
|
|
1098
1098
|
sizeMediaQuery: me,
|
|
1099
|
-
inputReadonly:
|
|
1099
|
+
inputReadonly: $,
|
|
1100
1100
|
showInputEye: V,
|
|
1101
1101
|
inputType: k,
|
|
1102
1102
|
hasTrim: _e,
|
|
@@ -1118,19 +1118,19 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1118
1118
|
darkBgColorFocus: lt,
|
|
1119
1119
|
darkEyeBgColor: Ye,
|
|
1120
1120
|
darkEyeBgColorActive: Qe,
|
|
1121
|
-
darkDisabledBgColor:
|
|
1121
|
+
darkDisabledBgColor: f,
|
|
1122
1122
|
darkTextColor: S,
|
|
1123
1123
|
darkDisabledEyeBgColor: ce,
|
|
1124
1124
|
lightDisabledEyeBgColor: Q,
|
|
1125
|
-
textAlign:
|
|
1125
|
+
textAlign: le,
|
|
1126
1126
|
showMsg: je,
|
|
1127
1127
|
hasMsg: He,
|
|
1128
1128
|
hasIcon: J,
|
|
1129
1129
|
iconDirection: d,
|
|
1130
|
-
iconPadding:
|
|
1130
|
+
iconPadding: v,
|
|
1131
1131
|
iconPaddingInput: fe,
|
|
1132
1132
|
iconMargin: q,
|
|
1133
|
-
iconBorderRadius:
|
|
1133
|
+
iconBorderRadius: re,
|
|
1134
1134
|
iconLightTextColor: Re,
|
|
1135
1135
|
iconDarkTextColor: Me,
|
|
1136
1136
|
iconLightBgColor: Fe,
|
|
@@ -1139,47 +1139,47 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1139
1139
|
iconDarkBgColorActive: nt,
|
|
1140
1140
|
iconLightDisabledBgColor: ot,
|
|
1141
1141
|
iconDarkDisabledBgColor: h,
|
|
1142
|
-
iconWidth:
|
|
1143
|
-
iconSize:
|
|
1142
|
+
iconWidth: w,
|
|
1143
|
+
iconSize: I,
|
|
1144
1144
|
showLabel: j,
|
|
1145
1145
|
labelBackground: Ce,
|
|
1146
1146
|
labelPadding: T,
|
|
1147
1147
|
labelBorderRadius: ze,
|
|
1148
1148
|
labelLeft: Je,
|
|
1149
1149
|
inputLabelMarginActive: Xe,
|
|
1150
|
-
labelActiveTop:
|
|
1150
|
+
labelActiveTop: N,
|
|
1151
1151
|
labelActiveLeft: H,
|
|
1152
|
-
fontFamilyLabel:
|
|
1152
|
+
fontFamilyLabel: B,
|
|
1153
1153
|
fontSizeLabel: C,
|
|
1154
|
-
fontSizeLabelActive:
|
|
1155
|
-
fontWeightLabel:
|
|
1154
|
+
fontSizeLabelActive: ne,
|
|
1155
|
+
fontWeightLabel: z,
|
|
1156
1156
|
lightTextColorLabel: At,
|
|
1157
1157
|
lightTextColorLabelActive: $t,
|
|
1158
1158
|
darkTextColorLabel: Vt,
|
|
1159
1159
|
darkTextColorLabelActive: _t
|
|
1160
|
-
} =
|
|
1161
|
-
const
|
|
1160
|
+
} = ca(W), xe = ee(""), st = ee(""), bt = ee(!1), ut = ee(!1), L = a(() => {
|
|
1161
|
+
const o = _.value ? "component-disabled" : "", p = Se.value !== "b" ? "inline-block" : "block", Z = se ? se.value : "ffffff", t = te.value ? te.value : "", n = Ee.value ? Ee.value : "", r = $e.value ? $e.value : "", s = oe.value ? oe.value : !1, b = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, c = ue.value ? ue.value : "'Lato', sans-serif", g = K.value && K.value >= 0 ? K.value : null, x = Y.value !== 0 && !Y.value || Y.value < 0 ? 100 : Y.value, A = ke.value ? ke.value : "'Lato', sans-serif", R = de.value ? de.value : "1em", F = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, ie = be.value ? be.value : "#f15574", De = ae.value ? ae.value : 200, Ze = ge.value ? ge.value : "normal", Ie = me.value ? me.value : "xs", Ne = $.value ? $.value : !1, pa = V.value ? V.value : !1, ba = k.value ? k.value : "text", ha = qe.value ? qe.value : !1, Ca = tt.value ? tt.value : "normal", xa = le.value ? le.value : "left", Sa = ye.value ? ye.value : "background", Va = v.value ? v.value : "5px 10px", ka = q.value ? q.value : "0", La = fe.value ? fe.value : 10, Ta = Re.value ? Re.value : "#000000", Ba = Me.value ? Me.value : "#000000", Aa = Fe.value ? Fe.value : "transparent", $a = Oe.value ? Oe.value : "transparent", _a = re.value !== 0 && !re.value || re.value < 0 ? 0 : re.value, wa = Ue.value ? Ue.value : "transparent", Ra = nt.value ? nt.value : "transparent", Ma = w.value ? w.value : 32, za = I.value ? I.value : 1, Da = j.value ? j.value : !1, Ia = Je.value !== 0 && !Je.value || Je.value < 0 ? 5 : Je.value, Na = Ce.value ? Ce.value : "transparent", Wa = Xe.value !== 0 && !Xe.value || Xe.value < 0 ? 15 : Xe.value, Pa = T.value ? T.value : "1px 5px", Ha = ze.value !== 0 && !ze.value || ze.value < 0 ? 0 : ze.value, Ua = N.value !== 0 && !N.value || N.value < 0 ? -13 : N.value, Ga = H.value !== 0 && !H.value || H.value < 0 ? -10 : H.value, Ka = B.value ? B.value : "'Lato', sans-serif", Ya = C.value ? C.value : "1em", Qa = ne.value ? ne.value : "0.8em", Ja = z.value ? z.value : 400, Xa = At.value ? At.value : "#ffffff", Za = Vt.value ? Vt.value : "#000000", el = $t.value ? $t.value : "#ffffff", tl = _t.value ? _t.value : "#000000";
|
|
1162
1162
|
return {
|
|
1163
|
-
disabled:
|
|
1164
|
-
display:
|
|
1165
|
-
font:
|
|
1166
|
-
fontSize:
|
|
1167
|
-
fontWeight:
|
|
1168
|
-
fontFamilyMsg:
|
|
1169
|
-
fontSizeMsg:
|
|
1170
|
-
fontWeightMsg:
|
|
1171
|
-
textMessageColor:
|
|
1172
|
-
textColor:
|
|
1173
|
-
caretColor:
|
|
1174
|
-
selectionBgColor:
|
|
1175
|
-
selectionTextColor:
|
|
1176
|
-
hasBorderRadius:
|
|
1177
|
-
borderRadius:
|
|
1163
|
+
disabled: o,
|
|
1164
|
+
display: p,
|
|
1165
|
+
font: c,
|
|
1166
|
+
fontSize: g,
|
|
1167
|
+
fontWeight: x,
|
|
1168
|
+
fontFamilyMsg: A,
|
|
1169
|
+
fontSizeMsg: R,
|
|
1170
|
+
fontWeightMsg: F,
|
|
1171
|
+
textMessageColor: ie,
|
|
1172
|
+
textColor: Z,
|
|
1173
|
+
caretColor: t,
|
|
1174
|
+
selectionBgColor: n,
|
|
1175
|
+
selectionTextColor: r,
|
|
1176
|
+
hasBorderRadius: s,
|
|
1177
|
+
borderRadius: b,
|
|
1178
1178
|
textAlign: xa,
|
|
1179
|
-
inputWidth:
|
|
1180
|
-
activeTextStyle:
|
|
1181
|
-
sizeMediaQuery:
|
|
1182
|
-
inputReadonly:
|
|
1179
|
+
inputWidth: De,
|
|
1180
|
+
activeTextStyle: Ze,
|
|
1181
|
+
sizeMediaQuery: Ie,
|
|
1182
|
+
inputReadonly: Ne,
|
|
1183
1183
|
showInputEye: pa,
|
|
1184
1184
|
inputType: ba,
|
|
1185
1185
|
inputUppercase: ha,
|
|
@@ -1199,7 +1199,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1199
1199
|
iconSize: za,
|
|
1200
1200
|
showLabel: Da,
|
|
1201
1201
|
labelBackground: Na,
|
|
1202
|
-
labelPadding:
|
|
1202
|
+
labelPadding: Pa,
|
|
1203
1203
|
labelBorderRadius: Ha,
|
|
1204
1204
|
labelLeft: Ia,
|
|
1205
1205
|
inputLabelMarginActive: Wa,
|
|
@@ -1214,14 +1214,14 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1214
1214
|
lightTextColorLabelActive: el,
|
|
1215
1215
|
darkTextColorLabelActive: tl
|
|
1216
1216
|
};
|
|
1217
|
-
}), wt = a(() => L.value.disabled),
|
|
1217
|
+
}), wt = a(() => L.value.disabled), Ft = a(() => ({
|
|
1218
1218
|
display: L.value.display
|
|
1219
1219
|
})), Ct = a(() => {
|
|
1220
|
-
const
|
|
1221
|
-
if (
|
|
1222
|
-
return `${
|
|
1223
|
-
let
|
|
1224
|
-
switch (
|
|
1220
|
+
const o = L.value;
|
|
1221
|
+
if (o.fontSize)
|
|
1222
|
+
return `${o.fontSize}em`;
|
|
1223
|
+
let p = "";
|
|
1224
|
+
switch (o.sizeMediaQuery) {
|
|
1225
1225
|
case "sm":
|
|
1226
1226
|
return "1.2em";
|
|
1227
1227
|
case "md":
|
|
@@ -1229,32 +1229,32 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1229
1229
|
case "lg":
|
|
1230
1230
|
return "2em";
|
|
1231
1231
|
default:
|
|
1232
|
-
|
|
1232
|
+
p = "1.2em";
|
|
1233
1233
|
}
|
|
1234
|
-
return
|
|
1235
|
-
}),
|
|
1236
|
-
const
|
|
1234
|
+
return p;
|
|
1235
|
+
}), Ot = a(() => {
|
|
1236
|
+
const o = L.value, p = zt.value;
|
|
1237
1237
|
return {
|
|
1238
1238
|
fontSize: Ct.value,
|
|
1239
|
-
fontWeight:
|
|
1240
|
-
marginTop:
|
|
1239
|
+
fontWeight: o.fontWeight,
|
|
1240
|
+
marginTop: p && j.value ? `${o.inputLabelMarginActive}px` : "0"
|
|
1241
1241
|
};
|
|
1242
1242
|
}), rt = a(() => {
|
|
1243
|
-
const
|
|
1244
|
-
return
|
|
1245
|
-
}), xt = a(() => L.value.font),
|
|
1246
|
-
const
|
|
1247
|
-
return
|
|
1243
|
+
const o = L.value;
|
|
1244
|
+
return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
|
|
1245
|
+
}), xt = a(() => L.value.font), qt = a(() => L.value.fontFamilyMsg), jt = a(() => L.value.fontSizeMsg), Ht = a(() => L.value.fontWeightMsg), Ut = a(() => L.value.textColor), Gt = a(() => L.value.textMessageColor), Kt = a(() => {
|
|
1246
|
+
const o = L.value;
|
|
1247
|
+
return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1248
1248
|
}), kt = a(() => {
|
|
1249
|
-
const
|
|
1250
|
-
return
|
|
1251
|
-
}),
|
|
1252
|
-
const
|
|
1253
|
-
return
|
|
1249
|
+
const o = L.value;
|
|
1250
|
+
return o.selectionBgColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1251
|
+
}), Yt = a(() => {
|
|
1252
|
+
const o = L.value;
|
|
1253
|
+
return o.selectionTextColor || (o.theme === "dark" ? "#000000" : "#ffffff");
|
|
1254
1254
|
}), Lt = a(() => {
|
|
1255
|
-
const
|
|
1256
|
-
return
|
|
1257
|
-
width: `${
|
|
1255
|
+
const o = L.value;
|
|
1256
|
+
return o.display === "block" ? { width: "100%" } : {
|
|
1257
|
+
width: `${o.inputWidth}px`
|
|
1258
1258
|
};
|
|
1259
1259
|
}), Tt = a(() => {
|
|
1260
1260
|
switch (ye.value) {
|
|
@@ -1274,7 +1274,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1274
1274
|
default:
|
|
1275
1275
|
return "component__input--active--normal";
|
|
1276
1276
|
}
|
|
1277
|
-
}),
|
|
1277
|
+
}), i = a(() => {
|
|
1278
1278
|
switch (L.value.sizeMediaQuery) {
|
|
1279
1279
|
case "sm":
|
|
1280
1280
|
return "component__sm";
|
|
@@ -1285,160 +1285,160 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1285
1285
|
default:
|
|
1286
1286
|
return "";
|
|
1287
1287
|
}
|
|
1288
|
-
}),
|
|
1288
|
+
}), D = a(() => {
|
|
1289
1289
|
switch (L.value.theme) {
|
|
1290
1290
|
case "dark":
|
|
1291
1291
|
return "component__theme--dark";
|
|
1292
1292
|
default:
|
|
1293
1293
|
return "component__theme--light";
|
|
1294
1294
|
}
|
|
1295
|
-
}), X = a(() => L.value.inputReadonly ? "component__input--read-only" : ""),
|
|
1296
|
-
const
|
|
1297
|
-
return !!(
|
|
1298
|
-
}), Mt = a(() => bt.value ? ct.value : Le.value), gt = a(() => we.value ? we.value : `${
|
|
1299
|
-
const
|
|
1300
|
-
Ve.value && Object.keys(Ve.value).forEach((
|
|
1301
|
-
const
|
|
1295
|
+
}), X = a(() => L.value.inputReadonly ? "component__input--read-only" : ""), Qt = a(() => L.value.inputUppercase ? "component__input--uppercase" : ""), Rt = a(() => {
|
|
1296
|
+
const o = L.value;
|
|
1297
|
+
return !!(o.showInputEye && o.inputType === "password");
|
|
1298
|
+
}), Mt = a(() => bt.value ? ct.value : Le.value), gt = a(() => we.value ? we.value : `${M.value}-name-label`), Jt = a(() => j.value ? ut.value ? et.value : "" : et.value), zt = a(() => ut.value || xe.value && xe.value.trim().length > 0), yt = a(() => L.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Xt = a(() => ut.value ? "component__input--active" : "component__input--no-active"), Zt = a(() => Rt.value ? "6px 50px 6px 10px" : "6px 10px"), ea = a(() => !!(je.value && He.value)), ta = a(() => {
|
|
1299
|
+
const o = {};
|
|
1300
|
+
Ve.value && Object.keys(Ve.value).forEach((t) => o[`aria-${t}`] = Ve.value[t]);
|
|
1301
|
+
const p = {
|
|
1302
1302
|
"aria-label": Ae.value,
|
|
1303
|
-
"aria-disabled":
|
|
1304
|
-
...
|
|
1303
|
+
"aria-disabled": _.value,
|
|
1304
|
+
...o
|
|
1305
1305
|
};
|
|
1306
1306
|
return Object.fromEntries(
|
|
1307
|
-
Object.entries(
|
|
1307
|
+
Object.entries(p).filter(([Z, t]) => t != null)
|
|
1308
1308
|
);
|
|
1309
|
-
}),
|
|
1310
|
-
const
|
|
1311
|
-
return J.value ?
|
|
1309
|
+
}), Bt = a(() => J.value ? `${I.value}rem` : "0"), aa = a(() => J.value ? `${w.value}px` : "0"), la = a(() => J.value ? `component__icon--${d.value}` : ""), na = a(() => {
|
|
1310
|
+
const o = L.value;
|
|
1311
|
+
return J.value ? o.iconPadding : "0";
|
|
1312
1312
|
}), Dt = a(() => {
|
|
1313
|
-
const
|
|
1314
|
-
return J.value ?
|
|
1313
|
+
const o = L.value;
|
|
1314
|
+
return J.value ? o.iconMargin : "0";
|
|
1315
1315
|
}), It = a(() => {
|
|
1316
|
-
const
|
|
1317
|
-
return J.value ?
|
|
1316
|
+
const o = L.value;
|
|
1317
|
+
return J.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
|
|
1318
|
+
}), Nt = a(() => {
|
|
1319
|
+
const o = L.value;
|
|
1320
|
+
return J.value ? `${o.iconBorderRadius}rem` : "0";
|
|
1318
1321
|
}), dt = a(() => {
|
|
1319
|
-
const
|
|
1320
|
-
return J.value ? `${
|
|
1322
|
+
const o = L.value;
|
|
1323
|
+
return J.value ? d.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
|
|
1321
1324
|
}), St = a(() => {
|
|
1322
|
-
const
|
|
1323
|
-
return J.value ? d.value === "left" ? { paddingLeft: `${u.iconPaddingInput}px` } : { paddingRight: `${u.iconPaddingInput}px` } : {};
|
|
1324
|
-
}), mt = a(() => {
|
|
1325
|
-
const u = L.value, c = yt.value, t = c ? u.lightTextColorLabelActive : u.lightTextColorLabel, n = c ? u.darkTextColorLabelActive : u.darkTextColorLabel;
|
|
1325
|
+
const o = L.value, p = zt.value, Z = p ? o.lightTextColorLabelActive : o.lightTextColorLabel, t = p ? o.darkTextColorLabelActive : o.darkTextColorLabel;
|
|
1326
1326
|
return {
|
|
1327
|
-
fontFamily:
|
|
1328
|
-
fontSize:
|
|
1329
|
-
fontWeight:
|
|
1330
|
-
color:
|
|
1331
|
-
top:
|
|
1332
|
-
left:
|
|
1333
|
-
transform:
|
|
1327
|
+
fontFamily: o.fontFamilyLabel,
|
|
1328
|
+
fontSize: p ? o.fontSizeLabelActive : o.fontSizeLabel,
|
|
1329
|
+
fontWeight: o.fontWeightLabel,
|
|
1330
|
+
color: o.theme === "dark" ? t : Z,
|
|
1331
|
+
top: p ? `${o.labelActiveTop}px` : "50%",
|
|
1332
|
+
left: p ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
|
|
1333
|
+
transform: p ? "translateY(0)" : "translateY(-50%)",
|
|
1334
1334
|
transition: "all 0.2s ease",
|
|
1335
|
-
backgroundColor:
|
|
1336
|
-
padding:
|
|
1337
|
-
borderRadius:
|
|
1335
|
+
backgroundColor: p ? o.labelBackground : "transparent",
|
|
1336
|
+
padding: p ? o.labelPadding : "0",
|
|
1337
|
+
borderRadius: p ? `${o.labelBorderRadius}rem` : "0"
|
|
1338
1338
|
};
|
|
1339
1339
|
});
|
|
1340
1340
|
a(() => {
|
|
1341
|
-
const
|
|
1342
|
-
return
|
|
1341
|
+
const o = L.value;
|
|
1342
|
+
return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
|
|
1343
1343
|
});
|
|
1344
|
-
const
|
|
1344
|
+
const mt = () => {
|
|
1345
1345
|
xe.value = Ge.value, st.value = k.value;
|
|
1346
|
-
}, na = () => {
|
|
1347
|
-
const u = L.value;
|
|
1348
|
-
if (u.inputReadonly || u.disabled)
|
|
1349
|
-
return;
|
|
1350
|
-
const c = !bt.value;
|
|
1351
|
-
c ? st.value = "text" : st.value = k.value, bt.value = c;
|
|
1352
1346
|
}, Wt = () => {
|
|
1347
|
+
const o = L.value;
|
|
1348
|
+
if (o.inputReadonly || o.disabled)
|
|
1349
|
+
return;
|
|
1350
|
+
const p = !bt.value;
|
|
1351
|
+
p ? st.value = "text" : st.value = k.value, bt.value = p;
|
|
1352
|
+
}, oa = () => {
|
|
1353
1353
|
m("clicked");
|
|
1354
|
-
},
|
|
1355
|
-
|
|
1354
|
+
}, Pt = () => {
|
|
1355
|
+
_.value || L.value.inputReadonly || !pe.value || m("entered", xe.value);
|
|
1356
1356
|
};
|
|
1357
|
-
return U(k, (
|
|
1358
|
-
st.value =
|
|
1359
|
-
}, { immediate: !0 }), U(Ge, (
|
|
1360
|
-
|
|
1361
|
-
}, { immediate: !0 }), U(xe, (
|
|
1362
|
-
_e.value && (
|
|
1363
|
-
}), U(ut, (
|
|
1364
|
-
m(
|
|
1365
|
-
}), U(bt, (
|
|
1366
|
-
m("show-input-eye",
|
|
1367
|
-
}, { immediate: !0 }), U(xe, (
|
|
1368
|
-
_e.value && (
|
|
1369
|
-
}), U(k, (
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1357
|
+
return U(k, (o) => {
|
|
1358
|
+
st.value = o;
|
|
1359
|
+
}, { immediate: !0 }), U(Ge, (o) => {
|
|
1360
|
+
o !== xe.value && (xe.value = o);
|
|
1361
|
+
}, { immediate: !0 }), U(xe, (o) => {
|
|
1362
|
+
_e.value && (o = o.trim()), m("changed", o);
|
|
1363
|
+
}), U(ut, (o) => {
|
|
1364
|
+
m(o ? "focused" : "blurred");
|
|
1365
|
+
}), U(bt, (o) => {
|
|
1366
|
+
m("show-input-eye", o);
|
|
1367
|
+
}, { immediate: !0 }), U(xe, (o) => {
|
|
1368
|
+
_e.value && (o = o.trim()), m("current-value", o);
|
|
1369
|
+
}), U(k, (o) => {
|
|
1370
|
+
o === "password" && nextTick(() => {
|
|
1371
|
+
const p = document.getElementById(we.value);
|
|
1372
|
+
p && (p.type = "password", p.removeAttribute("autocomplete"));
|
|
1373
1373
|
});
|
|
1374
|
-
}), (
|
|
1374
|
+
}), (o, p) => u(M) ? (E(), O("div", ia({
|
|
1375
1375
|
key: 0,
|
|
1376
1376
|
class: ["nb-wrapper", wt.value],
|
|
1377
|
-
style: [
|
|
1377
|
+
style: [Ft.value, Lt.value, rt.value],
|
|
1378
1378
|
role: "input"
|
|
1379
|
-
},
|
|
1379
|
+
}, ta.value), [
|
|
1380
1380
|
ve("div", {
|
|
1381
|
-
id:
|
|
1382
|
-
class: We(["nb-reset", "component",
|
|
1383
|
-
style:
|
|
1384
|
-
onClick:
|
|
1381
|
+
id: u(M),
|
|
1382
|
+
class: We(["nb-reset", "component", i.value, D.value, X.value, Tt.value]),
|
|
1383
|
+
style: Pe([Ot.value, Lt.value, rt.value]),
|
|
1384
|
+
onClick: oa
|
|
1385
1385
|
}, [
|
|
1386
|
-
|
|
1386
|
+
u(j) ? (E(), O("label", {
|
|
1387
1387
|
key: 0,
|
|
1388
1388
|
for: gt.value,
|
|
1389
1389
|
class: "component__label",
|
|
1390
|
-
style:
|
|
1390
|
+
style: Pe([St.value])
|
|
1391
1391
|
}, ht(e.label), 13, hl)) : Be("", !0),
|
|
1392
1392
|
Rt.value ? (E(), O("div", {
|
|
1393
1393
|
key: 1,
|
|
1394
1394
|
class: We(["component__eye", Xt.value]),
|
|
1395
|
-
style:
|
|
1396
|
-
onClick:
|
|
1395
|
+
style: Pe([rt.value]),
|
|
1396
|
+
onClick: Wt
|
|
1397
1397
|
}, [
|
|
1398
1398
|
ve("label", {
|
|
1399
1399
|
for: gt.value,
|
|
1400
1400
|
class: We(["component__eye-icon", "fas"])
|
|
1401
1401
|
}, [
|
|
1402
1402
|
e.inputEyeCustomIcon ? (E(), O("span", Sl, [
|
|
1403
|
-
bt.value ?
|
|
1404
|
-
|
|
1405
|
-
], !0) :
|
|
1406
|
-
|
|
1403
|
+
bt.value ? ua(o.$slots, "eye-icon-show", { key: 0 }, () => [
|
|
1404
|
+
p[4] || (p[4] = ga("show"))
|
|
1405
|
+
], !0) : ua(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
|
|
1406
|
+
p[5] || (p[5] = ga("hidden"))
|
|
1407
1407
|
], !0)
|
|
1408
1408
|
])) : (E(), O("span", xl, ht(Mt.value), 1))
|
|
1409
1409
|
], 8, Cl)
|
|
1410
1410
|
], 6)) : Be("", !0),
|
|
1411
|
-
|
|
1412
|
-
"onUpdate:modelValue":
|
|
1411
|
+
fa(ve("input", {
|
|
1412
|
+
"onUpdate:modelValue": p[0] || (p[0] = (Z) => xe.value = Z),
|
|
1413
1413
|
id: gt.value,
|
|
1414
1414
|
name: gt.value,
|
|
1415
1415
|
type: st.value,
|
|
1416
1416
|
class: We(["component__input", [
|
|
1417
|
-
|
|
1418
|
-
|
|
1417
|
+
Qt.value,
|
|
1418
|
+
yt.value,
|
|
1419
1419
|
l.value
|
|
1420
1420
|
]]),
|
|
1421
|
-
placeholder:
|
|
1422
|
-
disabled:
|
|
1421
|
+
placeholder: Jt.value,
|
|
1422
|
+
disabled: u(_) || u($),
|
|
1423
1423
|
required: e.required,
|
|
1424
|
-
readonly:
|
|
1424
|
+
readonly: u($),
|
|
1425
1425
|
autocomplete: e.inputAutocomplete,
|
|
1426
|
-
tabindex:
|
|
1426
|
+
tabindex: u(_) || u($) ? -1 : u(Ke),
|
|
1427
1427
|
role: "input",
|
|
1428
|
-
style:
|
|
1429
|
-
onFocus:
|
|
1430
|
-
onBlur:
|
|
1431
|
-
onKeydown:
|
|
1428
|
+
style: Pe([rt.value, dt.value]),
|
|
1429
|
+
onFocus: p[1] || (p[1] = (Z) => ut.value = !0),
|
|
1430
|
+
onBlur: p[2] || (p[2] = (Z) => ut.value = !1),
|
|
1431
|
+
onKeydown: p[3] || (p[3] = Et((Z) => !u(_) && u(pe) && Pt(), ["enter"]))
|
|
1432
1432
|
}, null, 46, Vl), [
|
|
1433
|
-
[
|
|
1433
|
+
[qa, xe.value]
|
|
1434
1434
|
]),
|
|
1435
|
-
|
|
1435
|
+
u(J) ? (E(), O("label", {
|
|
1436
1436
|
key: 2,
|
|
1437
1437
|
for: gt.value,
|
|
1438
1438
|
class: We(["component__icon", la.value])
|
|
1439
1439
|
}, [
|
|
1440
|
-
|
|
1441
|
-
|
|
1440
|
+
ua(o.$slots, "icon", {}, () => [
|
|
1441
|
+
p[6] || (p[6] = ve("span", null, "♥", -1))
|
|
1442
1442
|
], !0)
|
|
1443
1443
|
], 10, kl)) : Be("", !0)
|
|
1444
1444
|
], 14, ml),
|
|
@@ -1446,13 +1446,13 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1446
1446
|
key: 0,
|
|
1447
1447
|
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
1448
1448
|
}, [
|
|
1449
|
-
|
|
1449
|
+
ua(o.$slots, "message", {}, () => [
|
|
1450
1450
|
ga(ht(e.message), 1)
|
|
1451
1451
|
], !0)
|
|
1452
1452
|
], 2)) : Be("", !0)
|
|
1453
1453
|
], 16)) : Be("", !0);
|
|
1454
1454
|
}
|
|
1455
|
-
}), Tl = /* @__PURE__ */
|
|
1455
|
+
}), Tl = /* @__PURE__ */ va(Ll, [["__scopeId", "data-v-ba7b1c2a"]]);
|
|
1456
1456
|
const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"], wl = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], Rl = /* @__PURE__ */ Object.assign({
|
|
1457
1457
|
name: "NbInputChip",
|
|
1458
1458
|
inheritAttrs: !1
|
|
@@ -1778,60 +1778,60 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
1778
1778
|
},
|
|
1779
1779
|
emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred"],
|
|
1780
1780
|
setup(e, { emit: y }) {
|
|
1781
|
-
|
|
1781
|
+
da((l) => ({
|
|
1782
1782
|
be085a92: _t.value,
|
|
1783
1783
|
"0f20f54a": st.value,
|
|
1784
|
-
"5a3a5628":
|
|
1785
|
-
"0e969290":
|
|
1786
|
-
"4ceb0bee":
|
|
1787
|
-
"1a53dfa4":
|
|
1788
|
-
"6bd8ae3c":
|
|
1789
|
-
"825ce076":
|
|
1790
|
-
"56035c10":
|
|
1791
|
-
"5a717b40":
|
|
1792
|
-
"99827c4e":
|
|
1793
|
-
"17efb118":
|
|
1794
|
-
accb7be8:
|
|
1795
|
-
db0520d6:
|
|
1796
|
-
"61486f62":
|
|
1797
|
-
"712be27f":
|
|
1784
|
+
"5a3a5628": u(ct),
|
|
1785
|
+
"0e969290": u(qe),
|
|
1786
|
+
"4ceb0bee": u(et),
|
|
1787
|
+
"1a53dfa4": u(Ke),
|
|
1788
|
+
"6bd8ae3c": u(Le),
|
|
1789
|
+
"825ce076": u(he),
|
|
1790
|
+
"56035c10": u(lt),
|
|
1791
|
+
"5a717b40": u(vt),
|
|
1792
|
+
"99827c4e": u(it),
|
|
1793
|
+
"17efb118": u(Ye),
|
|
1794
|
+
accb7be8: u(Qe),
|
|
1795
|
+
db0520d6: u(f),
|
|
1796
|
+
"61486f62": u(Ge),
|
|
1797
|
+
"712be27f": u(pt),
|
|
1798
1798
|
"7faa8ac9": ut.value,
|
|
1799
1799
|
"5a3b454a": L.value,
|
|
1800
1800
|
"3abe9a33": wt.value,
|
|
1801
1801
|
"73aff348": l.styleButtonColor,
|
|
1802
1802
|
"54aeebed": xe.value,
|
|
1803
|
-
"0062da74":
|
|
1804
|
-
"0b2fa026":
|
|
1805
|
-
"57e28b78":
|
|
1806
|
-
"527fa7bd":
|
|
1807
|
-
})),
|
|
1803
|
+
"0062da74": u(tt),
|
|
1804
|
+
"0b2fa026": u(ft),
|
|
1805
|
+
"57e28b78": u(Te),
|
|
1806
|
+
"527fa7bd": u(S)
|
|
1807
|
+
})), ra(() => {
|
|
1808
1808
|
G.value.length > 0 && (H.value = G.value);
|
|
1809
1809
|
});
|
|
1810
|
-
const m = y,
|
|
1811
|
-
nbId:
|
|
1810
|
+
const m = y, W = e, {
|
|
1811
|
+
nbId: M,
|
|
1812
1812
|
display: Se,
|
|
1813
1813
|
textColor: pe,
|
|
1814
1814
|
paddingX: Ae,
|
|
1815
1815
|
paddingY: Ve,
|
|
1816
1816
|
borderRadius: se,
|
|
1817
|
-
disabled:
|
|
1818
|
-
fontFamily:
|
|
1817
|
+
disabled: te,
|
|
1818
|
+
fontFamily: Ee,
|
|
1819
1819
|
fontSize: $e,
|
|
1820
|
-
fontWeight:
|
|
1820
|
+
fontWeight: oe,
|
|
1821
1821
|
currentList: G,
|
|
1822
|
-
allowDuplicates:
|
|
1823
|
-
minChips:
|
|
1822
|
+
allowDuplicates: _,
|
|
1823
|
+
minChips: ue,
|
|
1824
1824
|
maxChips: K,
|
|
1825
1825
|
inputPosition: Y,
|
|
1826
1826
|
width: ke,
|
|
1827
1827
|
inputName: de,
|
|
1828
|
-
inputPlaceholder:
|
|
1828
|
+
inputPlaceholder: P,
|
|
1829
1829
|
inputUppercase: be,
|
|
1830
|
-
inputReadonly:
|
|
1830
|
+
inputReadonly: ae,
|
|
1831
1831
|
inputAutocomplete: ye,
|
|
1832
1832
|
required: ge,
|
|
1833
1833
|
textAlign: me,
|
|
1834
|
-
hasBorderRadius:
|
|
1834
|
+
hasBorderRadius: $,
|
|
1835
1835
|
activeTextStyle: V,
|
|
1836
1836
|
theme: k,
|
|
1837
1837
|
inputStyle: _e,
|
|
@@ -1853,19 +1853,19 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
1853
1853
|
darkTextColor: lt,
|
|
1854
1854
|
darkChipBgColor: Ye,
|
|
1855
1855
|
darkChipTextColor: Qe,
|
|
1856
|
-
darkChipRemoveColor:
|
|
1856
|
+
darkChipRemoveColor: f,
|
|
1857
1857
|
darkDisabledBorderColor: S,
|
|
1858
1858
|
tabIndex: ce,
|
|
1859
1859
|
hasTabIndexEnter: Q,
|
|
1860
|
-
ariaLabel:
|
|
1860
|
+
ariaLabel: le,
|
|
1861
1861
|
ariaAttrs: je,
|
|
1862
1862
|
caretColor: He,
|
|
1863
1863
|
selectionBgColor: J,
|
|
1864
1864
|
selectionTextColor: d,
|
|
1865
|
-
showLabel:
|
|
1865
|
+
showLabel: v,
|
|
1866
1866
|
label: fe,
|
|
1867
1867
|
labelBackground: q,
|
|
1868
|
-
labelPadding:
|
|
1868
|
+
labelPadding: re,
|
|
1869
1869
|
labelBorderRadius: Re,
|
|
1870
1870
|
labelLeft: Me,
|
|
1871
1871
|
inputLabelMarginActive: Fe,
|
|
@@ -1874,65 +1874,65 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
1874
1874
|
fontFamilyLabel: nt,
|
|
1875
1875
|
fontSizeLabel: ot,
|
|
1876
1876
|
fontSizeLabelActive: h,
|
|
1877
|
-
fontWeightLabel:
|
|
1878
|
-
lightTextColorLabel:
|
|
1877
|
+
fontWeightLabel: w,
|
|
1878
|
+
lightTextColorLabel: I,
|
|
1879
1879
|
lightTextColorLabelActive: j,
|
|
1880
1880
|
darkTextColorLabel: Ce,
|
|
1881
1881
|
darkTextColorLabelActive: T
|
|
1882
|
-
} =
|
|
1883
|
-
const l =
|
|
1882
|
+
} = ca(W), ze = ee(""), Je = ee(null), Xe = ee(null), N = ee(null), H = ee([]), B = ee(!1), C = a(() => {
|
|
1883
|
+
const l = te.value ? "component-disabled" : "", i = Se.value !== "b" ? "inline-block" : "block", D = !ke.value || ke.value < 185 ? 185 : ke.value, X = pe ? pe.value : "ffffff", Qt = He.value ? He.value : "", Rt = J.value ? J.value : "", Mt = d.value ? d.value : "", gt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 1 : Ae.value, Jt = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 0.2 : Ve.value, zt = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, yt = Ee.value ? Ee.value : "'Lato', sans-serif", Xt = $e.value ? $e.value : "1.6rem", Zt = oe.value !== 0 && !oe.value || oe.value < 0 ? 100 : oe.value, ea = ue.value !== 0 && !ue.value || ue.value < 0 ? 0 : ue.value, ta = K.value !== 0 && !K.value || K.value < 0 ? 10 : K.value, Bt = !Y.value || !["top", "bottom"].includes(Y.value) ? "bottom" : Y.value, aa = !_e.value || !["background", "line", "border"].includes(_e.value) ? "background" : _e.value, la = k.value ? k.value : "light", na = v.value ? v.value : !1, Dt = Me.value !== 0 && !Me.value || Me.value < 0 ? 5 : Me.value, It = q.value ? q.value : "transparent", Nt = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 15 : Fe.value, dt = re.value ? re.value : "1px 5px", St = Re.value !== 0 && !Re.value || Re.value < 0 ? 0 : Re.value, mt = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 13 : Oe.value, Wt = Ue.value !== 0 && !Ue.value || Ue.value < 0 ? 5 : Ue.value, oa = nt.value ? nt.value : "'Lato', sans-serif", Pt = ot.value ? ot.value : "1em", o = h.value ? h.value : "0.8em", p = w.value ? w.value : 400, Z = I.value ? I.value : "#333333", t = Ce.value ? Ce.value : "#ffffff", n = j.value ? j.value : "#333333", r = T.value ? T.value : "#ffffff";
|
|
1884
1884
|
return {
|
|
1885
1885
|
disabled: l,
|
|
1886
|
-
display:
|
|
1887
|
-
width:
|
|
1888
|
-
font:
|
|
1886
|
+
display: i,
|
|
1887
|
+
width: D,
|
|
1888
|
+
font: yt,
|
|
1889
1889
|
fontSize: Xt,
|
|
1890
1890
|
fontWeight: Zt,
|
|
1891
1891
|
textColor: X,
|
|
1892
|
-
caretColor:
|
|
1892
|
+
caretColor: Qt,
|
|
1893
1893
|
selectionBgColor: Rt,
|
|
1894
1894
|
selectionTextColor: Mt,
|
|
1895
1895
|
paddingX: gt,
|
|
1896
|
-
paddingY:
|
|
1897
|
-
borderRadius:
|
|
1896
|
+
paddingY: Jt,
|
|
1897
|
+
borderRadius: zt,
|
|
1898
1898
|
minChips: ea,
|
|
1899
|
-
maxChips:
|
|
1900
|
-
inputPosition:
|
|
1899
|
+
maxChips: ta,
|
|
1900
|
+
inputPosition: Bt,
|
|
1901
1901
|
inputStyle: aa,
|
|
1902
1902
|
theme: la,
|
|
1903
|
-
showLabel:
|
|
1903
|
+
showLabel: na,
|
|
1904
1904
|
labelLeft: Dt,
|
|
1905
1905
|
labelBackground: It,
|
|
1906
|
-
inputLabelMarginActive:
|
|
1907
|
-
labelPadding:
|
|
1908
|
-
labelBorderRadius:
|
|
1909
|
-
labelActiveTop:
|
|
1910
|
-
labelActiveLeft:
|
|
1911
|
-
fontFamilyLabel:
|
|
1912
|
-
fontSizeLabel:
|
|
1913
|
-
fontSizeLabelActive:
|
|
1914
|
-
fontWeightLabel:
|
|
1915
|
-
lightTextColorLabel:
|
|
1916
|
-
darkTextColorLabel:
|
|
1917
|
-
lightTextColorLabelActive:
|
|
1918
|
-
darkTextColorLabelActive:
|
|
1906
|
+
inputLabelMarginActive: Nt,
|
|
1907
|
+
labelPadding: dt,
|
|
1908
|
+
labelBorderRadius: St,
|
|
1909
|
+
labelActiveTop: mt,
|
|
1910
|
+
labelActiveLeft: Wt,
|
|
1911
|
+
fontFamilyLabel: oa,
|
|
1912
|
+
fontSizeLabel: Pt,
|
|
1913
|
+
fontSizeLabelActive: o,
|
|
1914
|
+
fontWeightLabel: p,
|
|
1915
|
+
lightTextColorLabel: Z,
|
|
1916
|
+
darkTextColorLabel: t,
|
|
1917
|
+
lightTextColorLabelActive: n,
|
|
1918
|
+
darkTextColorLabelActive: r
|
|
1919
1919
|
};
|
|
1920
|
-
}),
|
|
1921
|
-
const l = C.value,
|
|
1920
|
+
}), ne = a(() => C.value.disabled), z = a(() => {
|
|
1921
|
+
const l = C.value, i = xt.value;
|
|
1922
1922
|
return {
|
|
1923
1923
|
display: l.display,
|
|
1924
1924
|
// Adiciona padding-top quando o label está ativo para evitar que seja cortado
|
|
1925
|
-
paddingTop:
|
|
1925
|
+
paddingTop: i && v.value ? `${Math.abs(l.labelActiveTop)}px` : "0"
|
|
1926
1926
|
};
|
|
1927
1927
|
}), At = a(() => {
|
|
1928
|
-
const l = C.value,
|
|
1928
|
+
const l = C.value, i = xt.value;
|
|
1929
1929
|
return {
|
|
1930
1930
|
color: l.textColor,
|
|
1931
1931
|
padding: `${l.paddingY}rem ${l.paddingX}rem`,
|
|
1932
1932
|
fontSize: l.fontSize,
|
|
1933
1933
|
fontWeight: l.fontWeight,
|
|
1934
1934
|
textAlign: me.value,
|
|
1935
|
-
marginTop:
|
|
1935
|
+
marginTop: i && v.value ? `${l.inputLabelMarginActive}px` : "0"
|
|
1936
1936
|
};
|
|
1937
1937
|
}), $t = a(() => {
|
|
1938
1938
|
switch (V.value) {
|
|
@@ -1945,17 +1945,17 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
1945
1945
|
}
|
|
1946
1946
|
}), Vt = a(() => {
|
|
1947
1947
|
const l = C.value;
|
|
1948
|
-
return l.inputStyle !== "line" &&
|
|
1948
|
+
return l.inputStyle !== "line" && $.value ? { borderRadius: `${l.borderRadius}rem` } : {};
|
|
1949
1949
|
}), _t = a(() => C.value.font), xe = a(() => C.value.textColor), st = a(() => C.value.inputPosition === "top" ? "column" : "column-reverse"), bt = a(() => {
|
|
1950
1950
|
const l = {};
|
|
1951
1951
|
je.value && Object.keys(je.value).forEach((X) => l[`aria-${X}`] = je.value[X]);
|
|
1952
|
-
const
|
|
1953
|
-
"aria-label":
|
|
1954
|
-
"aria-disabled":
|
|
1952
|
+
const i = {
|
|
1953
|
+
"aria-label": le.value,
|
|
1954
|
+
"aria-disabled": te.value,
|
|
1955
1955
|
...l
|
|
1956
1956
|
};
|
|
1957
1957
|
return Object.fromEntries(
|
|
1958
|
-
Object.entries(
|
|
1958
|
+
Object.entries(i).filter(([D, X]) => X != null)
|
|
1959
1959
|
);
|
|
1960
1960
|
}), ut = a(() => {
|
|
1961
1961
|
const l = C.value;
|
|
@@ -1966,39 +1966,39 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
1966
1966
|
}), wt = a(() => {
|
|
1967
1967
|
const l = C.value;
|
|
1968
1968
|
return l.selectionTextColor || (l.theme === "dark" ? "#000000" : "#ffffff");
|
|
1969
|
-
}),
|
|
1969
|
+
}), Ft = a(() => ({
|
|
1970
1970
|
caretColor: ut.value
|
|
1971
1971
|
})), Ct = a(() => ({
|
|
1972
1972
|
"--selection-bg-color": L.value,
|
|
1973
1973
|
"--selection-text-color": wt.value
|
|
1974
|
-
})),
|
|
1975
|
-
const l = C.value,
|
|
1974
|
+
})), Ot = a(() => {
|
|
1975
|
+
const l = C.value, i = {
|
|
1976
1976
|
width: `${l.width}px`
|
|
1977
1977
|
};
|
|
1978
|
-
return l.display === "block" ? { width: "auto" } :
|
|
1979
|
-
}), rt = a(() => de.value ? de.value : `${
|
|
1980
|
-
const l = C.value,
|
|
1978
|
+
return l.display === "block" ? { width: "auto" } : i;
|
|
1979
|
+
}), rt = a(() => de.value ? de.value : `${M.value}-name-label`), xt = a(() => B.value || H.value.length > 0 || ze.value && ze.value.trim().length > 0), qt = a(() => v.value ? B.value || H.value.length > 0 ? P.value : "" : P.value), jt = a(() => {
|
|
1980
|
+
const l = C.value, i = xt.value, D = i ? l.lightTextColorLabelActive : l.lightTextColorLabel, X = i ? l.darkTextColorLabelActive : l.darkTextColorLabel;
|
|
1981
1981
|
return {
|
|
1982
1982
|
fontFamily: l.fontFamilyLabel,
|
|
1983
|
-
fontSize:
|
|
1983
|
+
fontSize: i ? l.fontSizeLabelActive : l.fontSizeLabel,
|
|
1984
1984
|
fontWeight: l.fontWeightLabel,
|
|
1985
|
-
color: l.theme === "dark" ? X :
|
|
1986
|
-
top:
|
|
1987
|
-
left:
|
|
1988
|
-
transform:
|
|
1985
|
+
color: l.theme === "dark" ? X : D,
|
|
1986
|
+
top: i ? `${l.labelActiveTop}px` : "50%",
|
|
1987
|
+
left: i ? `${l.labelActiveLeft}px` : `${l.labelLeft}px`,
|
|
1988
|
+
transform: i ? "translateY(0)" : "translateY(-50%)",
|
|
1989
1989
|
transition: "all 0.2s ease",
|
|
1990
|
-
backgroundColor:
|
|
1991
|
-
padding:
|
|
1992
|
-
borderRadius:
|
|
1990
|
+
backgroundColor: i ? l.labelBackground : "transparent",
|
|
1991
|
+
padding: i ? l.labelPadding : "0",
|
|
1992
|
+
borderRadius: i ? `${l.labelBorderRadius}rem` : "0"
|
|
1993
1993
|
};
|
|
1994
|
-
}),
|
|
1994
|
+
}), Ht = a(() => {
|
|
1995
1995
|
switch (k.value) {
|
|
1996
1996
|
case "dark":
|
|
1997
1997
|
return "component__theme--dark";
|
|
1998
1998
|
default:
|
|
1999
1999
|
return "component__theme--light";
|
|
2000
2000
|
}
|
|
2001
|
-
}),
|
|
2001
|
+
}), Ut = a(() => {
|
|
2002
2002
|
switch (_e.value) {
|
|
2003
2003
|
case "line":
|
|
2004
2004
|
return "component__input--line";
|
|
@@ -2007,94 +2007,94 @@ const Bl = ["for"], Al = ["id"], $l = { class: "chip-text" }, _l = ["onClick"],
|
|
|
2007
2007
|
default:
|
|
2008
2008
|
return "component__input--background";
|
|
2009
2009
|
}
|
|
2010
|
-
}),
|
|
2010
|
+
}), Gt = () => {
|
|
2011
2011
|
m("clicked");
|
|
2012
|
-
},
|
|
2013
|
-
|
|
2012
|
+
}, Kt = () => {
|
|
2013
|
+
B.value = !0, m("focused");
|
|
2014
2014
|
}, kt = () => {
|
|
2015
|
-
|
|
2016
|
-
},
|
|
2017
|
-
if (!(
|
|
2015
|
+
B.value = !1, m("blurred");
|
|
2016
|
+
}, Yt = (l) => {
|
|
2017
|
+
if (!(te.value || ae.value) && l.key === "Enter" && ze.value.trim() !== "") {
|
|
2018
2018
|
l.preventDefault();
|
|
2019
|
-
let
|
|
2020
|
-
be.value && (
|
|
2019
|
+
let i = ze.value.trim();
|
|
2020
|
+
be.value && (i = i.toUpperCase()), (_.value || !H.value.includes(i)) && Lt(i), ze.value = "";
|
|
2021
2021
|
}
|
|
2022
2022
|
}, Lt = (l) => {
|
|
2023
2023
|
H.value.push(l), m("added", l);
|
|
2024
2024
|
}, Tt = (l) => {
|
|
2025
|
-
H.value = H.value.filter((
|
|
2025
|
+
H.value = H.value.filter((i) => i !== l), m("removed", l);
|
|
2026
2026
|
};
|
|
2027
2027
|
return U(G, (l) => {
|
|
2028
2028
|
H.value = l, m("changed", l);
|
|
2029
2029
|
}), U(ze, (l) => {
|
|
2030
2030
|
m("input-changed", l);
|
|
2031
|
-
}), (l,
|
|
2031
|
+
}), (l, i) => u(M) ? (E(), O("div", ia({
|
|
2032
2032
|
key: 0,
|
|
2033
|
-
class: ["nb-wrapper",
|
|
2034
|
-
style: [
|
|
2033
|
+
class: ["nb-wrapper", ne.value],
|
|
2034
|
+
style: [z.value],
|
|
2035
2035
|
role: "input"
|
|
2036
|
-
}, bt.value, { onClick:
|
|
2037
|
-
|
|
2036
|
+
}, bt.value, { onClick: Gt }), [
|
|
2037
|
+
u(v) ? (E(), O("label", {
|
|
2038
2038
|
key: 0,
|
|
2039
2039
|
for: rt.value,
|
|
2040
2040
|
class: "component__label",
|
|
2041
|
-
style:
|
|
2042
|
-
}, ht(
|
|
2041
|
+
style: Pe([jt.value])
|
|
2042
|
+
}, ht(u(fe)), 13, Bl)) : Be("", !0),
|
|
2043
2043
|
ve("div", {
|
|
2044
|
-
id:
|
|
2044
|
+
id: u(M),
|
|
2045
2045
|
ref_key: "chipsContainer",
|
|
2046
2046
|
ref: Je,
|
|
2047
|
-
class: We(["nb-reset", "component",
|
|
2048
|
-
style:
|
|
2047
|
+
class: We(["nb-reset", "component", Ht.value, Ut.value]),
|
|
2048
|
+
style: Pe([At.value, Ot.value, Vt.value])
|
|
2049
2049
|
}, [
|
|
2050
2050
|
H.value.length > 0 ? (E(), O("div", {
|
|
2051
2051
|
key: 0,
|
|
2052
2052
|
ref_key: "chips",
|
|
2053
|
-
ref:
|
|
2053
|
+
ref: N,
|
|
2054
2054
|
class: "chips"
|
|
2055
2055
|
}, [
|
|
2056
|
-
(E(!0), O(
|
|
2057
|
-
key:
|
|
2056
|
+
(E(!0), O(Fa, null, Oa(H.value, (D) => (E(), O("div", {
|
|
2057
|
+
key: D,
|
|
2058
2058
|
class: "chip"
|
|
2059
2059
|
}, [
|
|
2060
|
-
|
|
2060
|
+
ua(l.$slots, "chip", {
|
|
2061
2061
|
chips: H.value,
|
|
2062
|
-
chip:
|
|
2062
|
+
chip: D,
|
|
2063
2063
|
removeChip: Tt
|
|
2064
2064
|
}, () => [
|
|
2065
|
-
ve("span", $l, ht(
|
|
2066
|
-
!
|
|
2065
|
+
ve("span", $l, ht(D), 1),
|
|
2066
|
+
!u(te) && !u(ae) ? (E(), O("span", {
|
|
2067
2067
|
key: 0,
|
|
2068
2068
|
class: "chip-remove",
|
|
2069
|
-
onClick: (X) => Tt(
|
|
2069
|
+
onClick: (X) => Tt(D)
|
|
2070
2070
|
}, "×", 8, _l)) : Be("", !0)
|
|
2071
2071
|
], !0)
|
|
2072
2072
|
]))), 128))
|
|
2073
2073
|
], 512)) : Be("", !0),
|
|
2074
|
-
|
|
2074
|
+
fa(ve("input", {
|
|
2075
2075
|
ref_key: "chipInput",
|
|
2076
2076
|
ref: Xe,
|
|
2077
2077
|
type: "text",
|
|
2078
|
-
"onUpdate:modelValue":
|
|
2078
|
+
"onUpdate:modelValue": i[0] || (i[0] = (D) => ze.value = D),
|
|
2079
2079
|
id: rt.value,
|
|
2080
2080
|
name: rt.value,
|
|
2081
|
-
placeholder:
|
|
2082
|
-
readonly:
|
|
2083
|
-
autocomplete:
|
|
2084
|
-
required:
|
|
2085
|
-
tabindex:
|
|
2081
|
+
placeholder: qt.value,
|
|
2082
|
+
readonly: u(ae),
|
|
2083
|
+
autocomplete: u(ye),
|
|
2084
|
+
required: u(ge),
|
|
2085
|
+
tabindex: u(te) || u(ae) ? -1 : u(ce),
|
|
2086
2086
|
class: We(["chips-input", $t.value]),
|
|
2087
|
-
style:
|
|
2088
|
-
onKeydown:
|
|
2089
|
-
onFocus:
|
|
2087
|
+
style: Pe([Ft.value, Ct.value]),
|
|
2088
|
+
onKeydown: i[1] || (i[1] = Et((D) => !u(te) && u(Q) && Yt(D), ["enter"])),
|
|
2089
|
+
onFocus: Kt,
|
|
2090
2090
|
onBlur: kt
|
|
2091
2091
|
}, null, 46, wl), [
|
|
2092
|
-
[
|
|
2092
|
+
[ja, ze.value]
|
|
2093
2093
|
])
|
|
2094
2094
|
], 14, Al)
|
|
2095
2095
|
], 16)) : Be("", !0);
|
|
2096
2096
|
}
|
|
2097
|
-
}), Ml = /* @__PURE__ */
|
|
2097
|
+
}), Ml = /* @__PURE__ */ va(Rl, [["__scopeId", "data-v-cb537a8c"]]);
|
|
2098
2098
|
const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], Nl = /* @__PURE__ */ Object.assign({
|
|
2099
2099
|
name: "NbTextarea",
|
|
2100
2100
|
inheritAttrs: !1
|
|
@@ -2464,57 +2464,57 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2464
2464
|
"entered"
|
|
2465
2465
|
],
|
|
2466
2466
|
setup(e, { emit: y }) {
|
|
2467
|
-
|
|
2468
|
-
"3967c1cf":
|
|
2469
|
-
21384740:
|
|
2467
|
+
da((l) => ({
|
|
2468
|
+
"3967c1cf": B.value,
|
|
2469
|
+
21384740: u(Ke),
|
|
2470
2470
|
cf2a869e: Vt.value,
|
|
2471
2471
|
"5d9f8143": _t.value,
|
|
2472
2472
|
"0ac2641b": xe.value,
|
|
2473
|
-
"071c4440":
|
|
2474
|
-
"4c13b82c":
|
|
2475
|
-
"1c06af70":
|
|
2476
|
-
"1897a970":
|
|
2477
|
-
ee04cce8:
|
|
2478
|
-
"53e42cb0":
|
|
2479
|
-
b40f77e0:
|
|
2480
|
-
"693b5058":
|
|
2473
|
+
"071c4440": u(vt),
|
|
2474
|
+
"4c13b82c": u(ft),
|
|
2475
|
+
"1c06af70": u(Le),
|
|
2476
|
+
"1897a970": u(he),
|
|
2477
|
+
ee04cce8: u(ct),
|
|
2478
|
+
"53e42cb0": u(Ge),
|
|
2479
|
+
b40f77e0: u(tt),
|
|
2480
|
+
"693b5058": u(at),
|
|
2481
2481
|
bcb58b32: xt.value,
|
|
2482
2482
|
"12c3ff38": C.value,
|
|
2483
|
-
e1323912:
|
|
2484
|
-
"8b7f9640":
|
|
2483
|
+
e1323912: ne.value,
|
|
2484
|
+
"8b7f9640": z.value,
|
|
2485
2485
|
b811788c: $t.value,
|
|
2486
2486
|
"72f5fe60": l.styleButtonColor,
|
|
2487
2487
|
"1bacdd05": At.value
|
|
2488
|
-
})),
|
|
2488
|
+
})), ra(() => {
|
|
2489
2489
|
j.value = qe.value;
|
|
2490
2490
|
}), ma(() => {
|
|
2491
2491
|
kt();
|
|
2492
2492
|
});
|
|
2493
|
-
const m = y,
|
|
2494
|
-
nbId:
|
|
2493
|
+
const m = y, W = e, {
|
|
2494
|
+
nbId: M,
|
|
2495
2495
|
display: Se,
|
|
2496
2496
|
hasTabIndexEnter: pe,
|
|
2497
2497
|
ariaLabel: Ae,
|
|
2498
2498
|
ariaAttrs: Ve,
|
|
2499
2499
|
textColor: se,
|
|
2500
|
-
caretColor:
|
|
2501
|
-
selectionBgColor:
|
|
2500
|
+
caretColor: te,
|
|
2501
|
+
selectionBgColor: Ee,
|
|
2502
2502
|
selectionTextColor: $e,
|
|
2503
|
-
hasBorderRadius:
|
|
2503
|
+
hasBorderRadius: oe,
|
|
2504
2504
|
borderRadius: G,
|
|
2505
|
-
disabled:
|
|
2506
|
-
fontFamily:
|
|
2505
|
+
disabled: _,
|
|
2506
|
+
fontFamily: ue,
|
|
2507
2507
|
fontSize: K,
|
|
2508
2508
|
fontWeight: Y,
|
|
2509
2509
|
fontFamilyMsg: ke,
|
|
2510
2510
|
fontSizeMsg: de,
|
|
2511
|
-
fontWeightMsg:
|
|
2511
|
+
fontWeightMsg: P,
|
|
2512
2512
|
textMessageColor: be,
|
|
2513
|
-
inputWidth:
|
|
2513
|
+
inputWidth: ae,
|
|
2514
2514
|
inputStyle: ye,
|
|
2515
2515
|
activeTextStyle: ge,
|
|
2516
2516
|
inputReadonly: me,
|
|
2517
|
-
hasTrim:
|
|
2517
|
+
hasTrim: $,
|
|
2518
2518
|
inputUppercase: V,
|
|
2519
2519
|
inputName: k,
|
|
2520
2520
|
inputPlaceholder: _e,
|
|
@@ -2536,19 +2536,19 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2536
2536
|
labelBackground: lt,
|
|
2537
2537
|
labelPadding: Ye,
|
|
2538
2538
|
labelBorderRadius: Qe,
|
|
2539
|
-
labelLeft:
|
|
2539
|
+
labelLeft: f,
|
|
2540
2540
|
inputLabelMarginActive: S,
|
|
2541
2541
|
labelActiveTop: ce,
|
|
2542
2542
|
labelActiveLeft: Q,
|
|
2543
|
-
fontFamilyLabel:
|
|
2543
|
+
fontFamilyLabel: le,
|
|
2544
2544
|
fontSizeLabel: je,
|
|
2545
2545
|
fontSizeLabelActive: He,
|
|
2546
2546
|
fontWeightLabel: J,
|
|
2547
2547
|
lightTextColorLabel: d,
|
|
2548
|
-
lightTextColorLabelActive:
|
|
2548
|
+
lightTextColorLabelActive: v,
|
|
2549
2549
|
darkTextColorLabel: fe,
|
|
2550
2550
|
darkTextColorLabelActive: q,
|
|
2551
|
-
rows:
|
|
2551
|
+
rows: re,
|
|
2552
2552
|
cols: Re,
|
|
2553
2553
|
maxlength: Me,
|
|
2554
2554
|
minlength: Fe,
|
|
@@ -2557,58 +2557,58 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2557
2557
|
autofocus: nt,
|
|
2558
2558
|
resize: ot,
|
|
2559
2559
|
autoResize: h,
|
|
2560
|
-
minRows:
|
|
2561
|
-
maxRows:
|
|
2562
|
-
} =
|
|
2563
|
-
const l =
|
|
2560
|
+
minRows: w,
|
|
2561
|
+
maxRows: I
|
|
2562
|
+
} = ca(W), j = ee(""), Ce = ee(!1), T = a(() => {
|
|
2563
|
+
const l = _.value ? "component-disabled" : "", i = Se.value !== "b" ? "inline-block" : "block", D = se ? se.value : "ffffff", X = te.value ? te.value : "", Qt = Ee.value ? Ee.value : "", Rt = $e.value ? $e.value : "", Mt = oe.value ? oe.value : !1, gt = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, Jt = ue.value ? ue.value : "'Lato', sans-serif", zt = K.value && K.value >= 0 ? K.value : null, yt = Y.value !== 0 && !Y.value || Y.value < 0 ? 100 : Y.value, Xt = ke.value ? ke.value : "'Lato', sans-serif", Zt = de.value ? de.value : "1em", ea = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, ta = be.value ? be.value : "#f15574", Bt = ae.value ? ae.value : 200, aa = ge.value ? ge.value : "normal", la = me.value ? me.value : !1, na = V.value ? V.value : !1, Dt = we.value ? we.value : "normal", It = at.value ? at.value : "left", Nt = ye.value ? ye.value : "background", dt = Te.value ? Te.value : !1, St = f.value !== 0 && !f.value || f.value < 0 ? 5 : f.value, mt = lt.value ? lt.value : "transparent", Wt = S.value !== 0 && !S.value || S.value < 0 ? 15 : S.value, oa = Ye.value ? Ye.value : "1px 5px", Pt = Qe.value !== 0 && !Qe.value || Qe.value < 0 ? 0 : Qe.value, o = ce.value !== 0 && !ce.value || ce.value < 0 ? -13 : ce.value, p = Q.value !== 0 && !Q.value || Q.value < 0 ? -10 : Q.value, Z = le.value ? le.value : "'Lato', sans-serif", t = je.value ? je.value : "1em", n = He.value ? He.value : "0.8em", r = J.value ? J.value : 400, s = d.value ? d.value : "#ffffff", b = fe.value ? fe.value : "#000000", c = v.value ? v.value : "#ffffff", g = q.value ? q.value : "#000000", x = re.value && re.value > 0 ? re.value : 2, A = Re.value && Re.value > 0 ? Re.value : 20, R = Me.value !== null && Me.value >= 0 ? Me.value : null, F = Fe.value !== null && Fe.value >= 0 ? Fe.value : null, ie = Oe.value && ["soft", "hard", "off"].includes(Oe.value) ? Oe.value : "soft", De = Ue.value !== void 0 ? Ue.value : "default", Ze = nt.value !== void 0 ? nt.value : !1, Ie = ot.value && ["none", "both", "vertical", "horizontal"].includes(ot.value) ? ot.value : "vertical", Ne = h.value !== void 0 ? h.value : !1, pa = w.value !== null && w.value > 0 ? w.value : null, ba = I.value !== null && I.value > 0 ? I.value : null;
|
|
2564
2564
|
return {
|
|
2565
2565
|
disabled: l,
|
|
2566
|
-
display:
|
|
2567
|
-
font:
|
|
2568
|
-
fontSize:
|
|
2569
|
-
fontWeight:
|
|
2566
|
+
display: i,
|
|
2567
|
+
font: Jt,
|
|
2568
|
+
fontSize: zt,
|
|
2569
|
+
fontWeight: yt,
|
|
2570
2570
|
fontFamilyMsg: Xt,
|
|
2571
2571
|
fontSizeMsg: Zt,
|
|
2572
2572
|
fontWeightMsg: ea,
|
|
2573
|
-
textMessageColor:
|
|
2574
|
-
textColor:
|
|
2573
|
+
textMessageColor: ta,
|
|
2574
|
+
textColor: D,
|
|
2575
2575
|
caretColor: X,
|
|
2576
|
-
selectionBgColor:
|
|
2576
|
+
selectionBgColor: Qt,
|
|
2577
2577
|
selectionTextColor: Rt,
|
|
2578
2578
|
hasBorderRadius: Mt,
|
|
2579
2579
|
borderRadius: gt,
|
|
2580
2580
|
textAlign: It,
|
|
2581
|
-
inputWidth:
|
|
2581
|
+
inputWidth: Bt,
|
|
2582
2582
|
activeTextStyle: aa,
|
|
2583
2583
|
inputReadonly: la,
|
|
2584
|
-
inputUppercase:
|
|
2584
|
+
inputUppercase: na,
|
|
2585
2585
|
theme: Dt,
|
|
2586
|
-
inputStyle:
|
|
2587
|
-
showLabel:
|
|
2588
|
-
labelBackground:
|
|
2589
|
-
labelPadding:
|
|
2590
|
-
labelBorderRadius:
|
|
2591
|
-
labelLeft:
|
|
2592
|
-
inputLabelMarginActive:
|
|
2593
|
-
labelActiveTop:
|
|
2594
|
-
labelActiveLeft:
|
|
2595
|
-
fontFamilyLabel:
|
|
2596
|
-
fontSizeLabel:
|
|
2597
|
-
fontSizeLabelActive:
|
|
2598
|
-
fontWeightLabel:
|
|
2599
|
-
lightTextColorLabel:
|
|
2600
|
-
darkTextColorLabel:
|
|
2601
|
-
lightTextColorLabelActive:
|
|
2602
|
-
darkTextColorLabelActive:
|
|
2603
|
-
rows:
|
|
2604
|
-
cols:
|
|
2605
|
-
maxlength:
|
|
2606
|
-
minlength:
|
|
2607
|
-
wrap:
|
|
2608
|
-
spellcheck:
|
|
2609
|
-
autofocus:
|
|
2610
|
-
resize:
|
|
2611
|
-
autoResize:
|
|
2586
|
+
inputStyle: Nt,
|
|
2587
|
+
showLabel: dt,
|
|
2588
|
+
labelBackground: mt,
|
|
2589
|
+
labelPadding: oa,
|
|
2590
|
+
labelBorderRadius: Pt,
|
|
2591
|
+
labelLeft: St,
|
|
2592
|
+
inputLabelMarginActive: Wt,
|
|
2593
|
+
labelActiveTop: o,
|
|
2594
|
+
labelActiveLeft: p,
|
|
2595
|
+
fontFamilyLabel: Z,
|
|
2596
|
+
fontSizeLabel: t,
|
|
2597
|
+
fontSizeLabelActive: n,
|
|
2598
|
+
fontWeightLabel: r,
|
|
2599
|
+
lightTextColorLabel: s,
|
|
2600
|
+
darkTextColorLabel: b,
|
|
2601
|
+
lightTextColorLabelActive: c,
|
|
2602
|
+
darkTextColorLabelActive: g,
|
|
2603
|
+
rows: x,
|
|
2604
|
+
cols: A,
|
|
2605
|
+
maxlength: R,
|
|
2606
|
+
minlength: F,
|
|
2607
|
+
wrap: ie,
|
|
2608
|
+
spellcheck: De,
|
|
2609
|
+
autofocus: Ze,
|
|
2610
|
+
resize: Ie,
|
|
2611
|
+
autoResize: Ne,
|
|
2612
2612
|
minRows: pa,
|
|
2613
2613
|
maxRows: ba
|
|
2614
2614
|
};
|
|
@@ -2617,17 +2617,17 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2617
2617
|
})), Xe = a(() => {
|
|
2618
2618
|
const l = T.value;
|
|
2619
2619
|
return l.fontSize ? `${l.fontSize}em` : "1.2em";
|
|
2620
|
-
}),
|
|
2621
|
-
const l = T.value,
|
|
2620
|
+
}), N = a(() => {
|
|
2621
|
+
const l = T.value, i = rt.value;
|
|
2622
2622
|
return {
|
|
2623
2623
|
fontSize: Xe.value,
|
|
2624
2624
|
fontWeight: l.fontWeight,
|
|
2625
|
-
marginTop:
|
|
2625
|
+
marginTop: i && Te.value ? `${l.inputLabelMarginActive}px` : "0"
|
|
2626
2626
|
};
|
|
2627
2627
|
}), H = a(() => {
|
|
2628
2628
|
const l = T.value;
|
|
2629
2629
|
return l.inputStyle !== "line" && l.hasBorderRadius ? { borderRadius: `${l.borderRadius}rem` } : {};
|
|
2630
|
-
}),
|
|
2630
|
+
}), B = a(() => T.value.font), C = a(() => T.value.fontFamilyMsg), ne = a(() => T.value.fontSizeMsg), z = a(() => T.value.fontWeightMsg), At = a(() => T.value.textColor), $t = a(() => T.value.textMessageColor), Vt = a(() => {
|
|
2631
2631
|
const l = T.value;
|
|
2632
2632
|
return l.caretColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2633
2633
|
}), _t = a(() => {
|
|
@@ -2666,126 +2666,126 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2666
2666
|
default:
|
|
2667
2667
|
return "component__theme--light";
|
|
2668
2668
|
}
|
|
2669
|
-
}), wt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""),
|
|
2669
|
+
}), wt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""), Ft = a(() => T.value.inputUppercase ? "component__input--uppercase" : ""), Ct = a(() => k.value ? k.value : `${M.value}-name-label`), Ot = a(() => Te.value ? Ce.value ? _e.value : "" : _e.value), rt = a(() => Ce.value || j.value && j.value.trim().length > 0);
|
|
2670
2670
|
a(() => Ce.value ? "component__input--active" : "component__input--no-active");
|
|
2671
|
-
const xt = a(() => "6px 10px"),
|
|
2671
|
+
const xt = a(() => "6px 10px"), qt = a(() => !!(it.value && pt.value)), jt = a(() => {
|
|
2672
2672
|
const l = {};
|
|
2673
2673
|
Ve.value && Object.keys(Ve.value).forEach((X) => l[`aria-${X}`] = Ve.value[X]);
|
|
2674
|
-
const
|
|
2674
|
+
const i = {
|
|
2675
2675
|
"aria-label": Ae.value,
|
|
2676
|
-
"aria-disabled":
|
|
2676
|
+
"aria-disabled": _.value,
|
|
2677
2677
|
...l
|
|
2678
2678
|
};
|
|
2679
2679
|
return Object.fromEntries(
|
|
2680
|
-
Object.entries(
|
|
2680
|
+
Object.entries(i).filter(([D, X]) => X != null)
|
|
2681
2681
|
);
|
|
2682
|
-
}),
|
|
2683
|
-
const l = T.value,
|
|
2682
|
+
}), Ht = a(() => {
|
|
2683
|
+
const l = T.value, i = rt.value, D = i ? l.lightTextColorLabelActive : l.lightTextColorLabel, X = i ? l.darkTextColorLabelActive : l.darkTextColorLabel;
|
|
2684
2684
|
return {
|
|
2685
2685
|
fontFamily: l.fontFamilyLabel,
|
|
2686
|
-
fontSize:
|
|
2686
|
+
fontSize: i ? l.fontSizeLabelActive : l.fontSizeLabel,
|
|
2687
2687
|
fontWeight: l.fontWeightLabel,
|
|
2688
|
-
color: l.theme === "dark" ? X :
|
|
2689
|
-
top:
|
|
2690
|
-
left:
|
|
2691
|
-
transform:
|
|
2688
|
+
color: l.theme === "dark" ? X : D,
|
|
2689
|
+
top: i ? `${l.labelActiveTop}px` : "50%",
|
|
2690
|
+
left: i ? `${l.labelActiveLeft}px` : `${l.labelLeft}px`,
|
|
2691
|
+
transform: i ? "translateY(0)" : "translateY(-50%)",
|
|
2692
2692
|
transition: "all 0.2s ease",
|
|
2693
|
-
backgroundColor:
|
|
2694
|
-
padding:
|
|
2695
|
-
borderRadius:
|
|
2693
|
+
backgroundColor: i ? l.labelBackground : "transparent",
|
|
2694
|
+
padding: i ? l.labelPadding : "0",
|
|
2695
|
+
borderRadius: i ? `${l.labelBorderRadius}rem` : "0"
|
|
2696
2696
|
};
|
|
2697
2697
|
});
|
|
2698
2698
|
a(() => {
|
|
2699
2699
|
const l = T.value;
|
|
2700
2700
|
return l.theme === "dark" ? l.darkTextColorLabelActive : l.lightTextColorLabelActive;
|
|
2701
2701
|
});
|
|
2702
|
-
const
|
|
2703
|
-
const l = T.value,
|
|
2702
|
+
const Ut = a(() => {
|
|
2703
|
+
const l = T.value, i = {
|
|
2704
2704
|
rows: l.rows,
|
|
2705
2705
|
cols: l.cols,
|
|
2706
2706
|
wrap: l.wrap,
|
|
2707
2707
|
spellcheck: l.spellcheck === "default" ? void 0 : l.spellcheck,
|
|
2708
2708
|
autofocus: l.autofocus || void 0
|
|
2709
2709
|
};
|
|
2710
|
-
return l.maxlength !== null && (
|
|
2711
|
-
}),
|
|
2710
|
+
return l.maxlength !== null && (i.maxlength = l.maxlength), l.minlength !== null && (i.minlength = l.minlength), i;
|
|
2711
|
+
}), Gt = a(() => ({
|
|
2712
2712
|
resize: T.value.resize
|
|
2713
|
-
})),
|
|
2713
|
+
})), Kt = a(() => T.value.wrap === "off" ? {
|
|
2714
2714
|
whiteSpace: "nowrap",
|
|
2715
2715
|
overflowX: "auto"
|
|
2716
2716
|
} : {}), kt = () => {
|
|
2717
2717
|
j.value = qe.value;
|
|
2718
|
-
},
|
|
2718
|
+
}, Yt = () => {
|
|
2719
2719
|
m("clicked");
|
|
2720
2720
|
}, Lt = () => {
|
|
2721
|
-
|
|
2721
|
+
_.value || T.value.inputReadonly || !pe.value || m("entered", j.value);
|
|
2722
2722
|
}, Tt = () => {
|
|
2723
2723
|
let l = j.value;
|
|
2724
|
-
|
|
2724
|
+
$.value && (l = l.trim()), m("current-value", l);
|
|
2725
2725
|
};
|
|
2726
2726
|
return U(qe, (l) => {
|
|
2727
2727
|
l !== j.value && (j.value = l);
|
|
2728
2728
|
}, { immediate: !0 }), U(j, (l) => {
|
|
2729
|
-
|
|
2729
|
+
$.value && (l = l.trim()), m("changed", l);
|
|
2730
2730
|
}), U(Ce, (l) => {
|
|
2731
2731
|
m(l ? "focused" : "blurred");
|
|
2732
2732
|
}), U(j, () => {
|
|
2733
2733
|
Tt();
|
|
2734
|
-
}, { immediate: !0 }), (l,
|
|
2734
|
+
}, { immediate: !0 }), (l, i) => u(M) ? (E(), O("div", ia({
|
|
2735
2735
|
key: 0,
|
|
2736
2736
|
class: ["nb-wrapper", ze.value],
|
|
2737
2737
|
style: [Je.value, st.value, H.value],
|
|
2738
2738
|
role: "input"
|
|
2739
|
-
},
|
|
2739
|
+
}, jt.value), [
|
|
2740
2740
|
ve("div", {
|
|
2741
|
-
id:
|
|
2741
|
+
id: u(M),
|
|
2742
2742
|
class: We(["nb-reset", "component", L.value, wt.value, bt.value]),
|
|
2743
|
-
style:
|
|
2744
|
-
onClick:
|
|
2743
|
+
style: Pe([N.value, st.value, H.value]),
|
|
2744
|
+
onClick: Yt
|
|
2745
2745
|
}, [
|
|
2746
|
-
|
|
2746
|
+
u(Te) ? (E(), O("label", {
|
|
2747
2747
|
key: 0,
|
|
2748
2748
|
for: Ct.value,
|
|
2749
2749
|
class: "component__label",
|
|
2750
|
-
style:
|
|
2750
|
+
style: Pe([Ht.value])
|
|
2751
2751
|
}, ht(e.label), 13, Dl)) : Be("", !0),
|
|
2752
|
-
|
|
2753
|
-
"onUpdate:modelValue":
|
|
2752
|
+
fa(ve("textarea", ia({
|
|
2753
|
+
"onUpdate:modelValue": i[0] || (i[0] = (D) => j.value = D),
|
|
2754
2754
|
id: Ct.value,
|
|
2755
2755
|
name: Ct.value
|
|
2756
|
-
},
|
|
2756
|
+
}, Ut.value, {
|
|
2757
2757
|
class: ["component__input", [
|
|
2758
|
-
|
|
2758
|
+
Ft.value,
|
|
2759
2759
|
ut.value
|
|
2760
2760
|
]],
|
|
2761
|
-
placeholder:
|
|
2762
|
-
disabled:
|
|
2761
|
+
placeholder: Ot.value,
|
|
2762
|
+
disabled: u(_) || u(me),
|
|
2763
2763
|
required: e.required,
|
|
2764
|
-
readonly:
|
|
2764
|
+
readonly: u(me),
|
|
2765
2765
|
autocomplete: e.inputAutocomplete,
|
|
2766
|
-
tabindex:
|
|
2766
|
+
tabindex: u(_) || u(me) ? -1 : u(et),
|
|
2767
2767
|
role: "textbox",
|
|
2768
|
-
style: [H.value,
|
|
2769
|
-
onFocus:
|
|
2770
|
-
onBlur:
|
|
2768
|
+
style: [H.value, Gt.value, Kt.value],
|
|
2769
|
+
onFocus: i[1] || (i[1] = (D) => Ce.value = !0),
|
|
2770
|
+
onBlur: i[2] || (i[2] = (D) => Ce.value = !1),
|
|
2771
2771
|
onInput: Tt,
|
|
2772
|
-
onKeydown:
|
|
2772
|
+
onKeydown: i[3] || (i[3] = Et((D) => !u(_) && u(pe) && Lt(), ["enter"]))
|
|
2773
2773
|
}), null, 16, Il), [
|
|
2774
|
-
[
|
|
2774
|
+
[ja, j.value]
|
|
2775
2775
|
])
|
|
2776
2776
|
], 14, zl),
|
|
2777
|
-
|
|
2777
|
+
qt.value ? (E(), O("div", {
|
|
2778
2778
|
key: 0,
|
|
2779
2779
|
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
2780
2780
|
}, [
|
|
2781
|
-
|
|
2781
|
+
ua(l.$slots, "message", {}, () => [
|
|
2782
2782
|
ga(ht(e.message), 1)
|
|
2783
2783
|
], !0)
|
|
2784
2784
|
], 2)) : Be("", !0)
|
|
2785
2785
|
], 16)) : Be("", !0);
|
|
2786
2786
|
}
|
|
2787
|
-
}), Wl = /* @__PURE__ */
|
|
2788
|
-
const
|
|
2787
|
+
}), Wl = /* @__PURE__ */ va(Nl, [["__scopeId", "data-v-1f2d2742"]]);
|
|
2788
|
+
const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Ol = /* @__PURE__ */ Object.assign({
|
|
2789
2789
|
name: "NbDatePicker",
|
|
2790
2790
|
inheritAttrs: !1
|
|
2791
2791
|
}, {
|
|
@@ -3121,63 +3121,63 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3121
3121
|
"entered"
|
|
3122
3122
|
],
|
|
3123
3123
|
setup(e, { emit: y }) {
|
|
3124
|
-
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
|
|
3129
|
-
"
|
|
3130
|
-
|
|
3131
|
-
"
|
|
3132
|
-
|
|
3133
|
-
"
|
|
3134
|
-
|
|
3135
|
-
"
|
|
3136
|
-
"
|
|
3137
|
-
|
|
3138
|
-
"
|
|
3139
|
-
"
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
"
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
"
|
|
3147
|
-
"
|
|
3124
|
+
da((t) => ({
|
|
3125
|
+
"88116e52": st.value,
|
|
3126
|
+
"2fccff19": Vt.value,
|
|
3127
|
+
"3e70a448": u(Te),
|
|
3128
|
+
"223e00a9": Ct.value,
|
|
3129
|
+
"7dbdeb3b": Ot.value,
|
|
3130
|
+
c6239fda: rt.value,
|
|
3131
|
+
"47b5bfd8": u(f),
|
|
3132
|
+
72344024: u(Qe),
|
|
3133
|
+
"3e40a840": u(lt),
|
|
3134
|
+
c143e614: wt.value,
|
|
3135
|
+
"6da63710": u(Ye),
|
|
3136
|
+
"8de80ea4": X.value,
|
|
3137
|
+
d6aeae6c: Qt.value,
|
|
3138
|
+
"26ee1094": u(pt),
|
|
3139
|
+
"1249e8b0": u(at),
|
|
3140
|
+
"080a6a08": u(it),
|
|
3141
|
+
d8222360: u(S),
|
|
3142
|
+
"443d8d22": l.value,
|
|
3143
|
+
"5f07ff30": bt.value,
|
|
3144
|
+
"193a276f": ut.value,
|
|
3145
|
+
"1c525ad8": L.value,
|
|
3146
|
+
"77d4a49c": Ft.value,
|
|
3147
|
+
"238b3968": t.styleButtonColor
|
|
3148
3148
|
}));
|
|
3149
3149
|
const m = nl(
|
|
3150
3150
|
() => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
|
|
3151
3151
|
);
|
|
3152
|
-
|
|
3152
|
+
ra(() => {
|
|
3153
3153
|
h.value = we.value;
|
|
3154
3154
|
}), ma(() => {
|
|
3155
3155
|
Mt();
|
|
3156
3156
|
});
|
|
3157
|
-
const
|
|
3157
|
+
const W = y, M = e, {
|
|
3158
3158
|
nbId: Se,
|
|
3159
3159
|
display: pe,
|
|
3160
3160
|
hasTabIndexEnter: Ae,
|
|
3161
3161
|
ariaLabel: Ve,
|
|
3162
3162
|
ariaAttrs: se,
|
|
3163
|
-
caretColor:
|
|
3164
|
-
selectionBgColor:
|
|
3163
|
+
caretColor: te,
|
|
3164
|
+
selectionBgColor: Ee,
|
|
3165
3165
|
selectionTextColor: $e,
|
|
3166
|
-
hasBorderRadius:
|
|
3166
|
+
hasBorderRadius: oe,
|
|
3167
3167
|
borderRadius: G,
|
|
3168
|
-
disabled:
|
|
3169
|
-
fontFamily:
|
|
3168
|
+
disabled: _,
|
|
3169
|
+
fontFamily: ue,
|
|
3170
3170
|
fontSize: K,
|
|
3171
3171
|
fontWeight: Y,
|
|
3172
3172
|
fontFamilyMsg: ke,
|
|
3173
3173
|
fontSizeMsg: de,
|
|
3174
|
-
fontWeightMsg:
|
|
3174
|
+
fontWeightMsg: P,
|
|
3175
3175
|
textMessageColor: be,
|
|
3176
|
-
inputWidth:
|
|
3176
|
+
inputWidth: ae,
|
|
3177
3177
|
inputStyle: ye,
|
|
3178
3178
|
activeTextStyle: ge,
|
|
3179
3179
|
sizeMediaQuery: me,
|
|
3180
|
-
inputReadonly:
|
|
3180
|
+
inputReadonly: $,
|
|
3181
3181
|
inputType: V,
|
|
3182
3182
|
hasTrim: k,
|
|
3183
3183
|
inputUppercase: _e,
|
|
@@ -3199,19 +3199,19 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3199
3199
|
darkBgColor: lt,
|
|
3200
3200
|
darkBgColorFocus: Ye,
|
|
3201
3201
|
darkDisabledBgColor: Qe,
|
|
3202
|
-
darkTextColor:
|
|
3202
|
+
darkTextColor: f,
|
|
3203
3203
|
textAlign: S,
|
|
3204
3204
|
showMsg: ce,
|
|
3205
3205
|
hasMsg: Q,
|
|
3206
|
-
showLabel:
|
|
3206
|
+
showLabel: le,
|
|
3207
3207
|
labelBackground: je,
|
|
3208
3208
|
labelPadding: He,
|
|
3209
3209
|
labelBorderRadius: J,
|
|
3210
3210
|
labelLeft: d,
|
|
3211
|
-
inputLabelMarginActive:
|
|
3211
|
+
inputLabelMarginActive: v,
|
|
3212
3212
|
labelActiveTop: fe,
|
|
3213
3213
|
labelActiveLeft: q,
|
|
3214
|
-
fontFamilyLabel:
|
|
3214
|
+
fontFamilyLabel: re,
|
|
3215
3215
|
fontSizeLabel: Re,
|
|
3216
3216
|
fontSizeLabelActive: Me,
|
|
3217
3217
|
fontWeightLabel: Fe,
|
|
@@ -3219,7 +3219,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3219
3219
|
lightTextColorLabelActive: Ue,
|
|
3220
3220
|
darkTextColorLabel: nt,
|
|
3221
3221
|
darkTextColorLabelActive: ot
|
|
3222
|
-
} =
|
|
3222
|
+
} = ca(M), h = ee(""), w = ee(""), I = ee(""), j = ee(""), Ce = ee(!1), T = ee(!1), ze = a(() => {
|
|
3223
3223
|
if (!h.value)
|
|
3224
3224
|
return null;
|
|
3225
3225
|
if (he.value && typeof h.value == "string" && h.value.startsWith("{"))
|
|
@@ -3230,8 +3230,8 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3230
3230
|
if (!r)
|
|
3231
3231
|
return null;
|
|
3232
3232
|
if (/^\d{4}-\d{2}-\d{2}$/.test(r)) {
|
|
3233
|
-
const [
|
|
3234
|
-
return new Date(
|
|
3233
|
+
const [s, b, c] = r.split("-").map(Number);
|
|
3234
|
+
return new Date(s, b - 1, c);
|
|
3235
3235
|
}
|
|
3236
3236
|
return new Date(r);
|
|
3237
3237
|
};
|
|
@@ -3250,21 +3250,21 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3250
3250
|
}), Je = (t, n, r) => {
|
|
3251
3251
|
if (!t)
|
|
3252
3252
|
return "";
|
|
3253
|
-
const
|
|
3253
|
+
const s = r || Ke.value;
|
|
3254
3254
|
if (n === "date") {
|
|
3255
3255
|
if (he.value && typeof t == "string" && t.startsWith("{"))
|
|
3256
3256
|
try {
|
|
3257
3257
|
const b = JSON.parse(t);
|
|
3258
3258
|
if (b && (b.startDate || b.endDate)) {
|
|
3259
|
-
const
|
|
3260
|
-
if (!
|
|
3259
|
+
const c = (A) => {
|
|
3260
|
+
if (!A)
|
|
3261
3261
|
return "";
|
|
3262
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(
|
|
3263
|
-
const [
|
|
3264
|
-
return
|
|
3262
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(A)) {
|
|
3263
|
+
const [R, F, ie] = A.split("-");
|
|
3264
|
+
return s === "pt-BR" ? `${ie}/${F}/${R}` : `${F}/${ie}/${R}`;
|
|
3265
3265
|
}
|
|
3266
|
-
return
|
|
3267
|
-
}, g =
|
|
3266
|
+
return A;
|
|
3267
|
+
}, g = c(b.startDate), x = c(b.endDate);
|
|
3268
3268
|
if (g && x)
|
|
3269
3269
|
return `${g} - ${x}`;
|
|
3270
3270
|
if (g)
|
|
@@ -3275,27 +3275,27 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3275
3275
|
} catch {
|
|
3276
3276
|
}
|
|
3277
3277
|
if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}$/.test(t)) {
|
|
3278
|
-
const [b,
|
|
3279
|
-
return
|
|
3278
|
+
const [b, c, g] = t.split("-");
|
|
3279
|
+
return s === "pt-BR" ? `${g}/${c}/${b}` : `${c}/${g}/${b}`;
|
|
3280
3280
|
}
|
|
3281
3281
|
return t;
|
|
3282
3282
|
} else if (n === "datetime-local") {
|
|
3283
3283
|
if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
|
|
3284
|
-
const [b,
|
|
3285
|
-
return
|
|
3284
|
+
const [b, c] = t.split("T"), [g, x, A] = b.split("-");
|
|
3285
|
+
return s === "pt-BR" ? `${A}/${x}/${g} ${c}` : `${x}/${A}/${g} ${c}`;
|
|
3286
3286
|
}
|
|
3287
3287
|
return t;
|
|
3288
3288
|
} else if (n === "month") {
|
|
3289
3289
|
if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
|
|
3290
|
-
const [b,
|
|
3291
|
-
return `${
|
|
3290
|
+
const [b, c] = t.split("-");
|
|
3291
|
+
return `${c}/${b}`;
|
|
3292
3292
|
}
|
|
3293
3293
|
return t;
|
|
3294
3294
|
} else if (n === "week") {
|
|
3295
3295
|
if (typeof t == "string" && /^\d{4}-W\d{2}$/i.test(t)) {
|
|
3296
3296
|
const b = t.match(/^(\d{4})-W(\d{2})$/i);
|
|
3297
3297
|
if (b)
|
|
3298
|
-
return
|
|
3298
|
+
return s === "pt-BR" ? `Semana ${b[2]} de ${b[1]}` : `Week ${b[2]} of ${b[1]}`;
|
|
3299
3299
|
}
|
|
3300
3300
|
return t;
|
|
3301
3301
|
}
|
|
@@ -3303,14 +3303,14 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3303
3303
|
}, Xe = (t, n, r) => {
|
|
3304
3304
|
if (!t || !t.trim())
|
|
3305
3305
|
return "";
|
|
3306
|
-
const
|
|
3306
|
+
const s = t.trim(), b = r || Ke.value;
|
|
3307
3307
|
if (n === "date") {
|
|
3308
|
-
if (he.value &&
|
|
3309
|
-
const
|
|
3310
|
-
if (!
|
|
3308
|
+
if (he.value && s.includes("-")) {
|
|
3309
|
+
const c = s.split(/\s*-\s*/).map((R) => R.trim()), g = (R) => {
|
|
3310
|
+
if (!R)
|
|
3311
3311
|
return null;
|
|
3312
|
-
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(
|
|
3313
|
-
const F =
|
|
3312
|
+
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(R)) {
|
|
3313
|
+
const F = R.split("/");
|
|
3314
3314
|
if (b === "pt-BR") {
|
|
3315
3315
|
const [ie, De, Ze] = F, Ie = ie.padStart(2, "0"), Ne = De.padStart(2, "0");
|
|
3316
3316
|
return `${Ze}-${Ne}-${Ie}`;
|
|
@@ -3318,145 +3318,145 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3318
3318
|
const [ie, De, Ze] = F, Ie = De.padStart(2, "0"), Ne = ie.padStart(2, "0");
|
|
3319
3319
|
return `${Ze}-${Ne}-${Ie}`;
|
|
3320
3320
|
}
|
|
3321
|
-
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(
|
|
3322
|
-
const F =
|
|
3321
|
+
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(R)) {
|
|
3322
|
+
const F = R.split("-"), [ie, De, Ze] = F, Ie = Ze.padStart(2, "0"), Ne = De.padStart(2, "0");
|
|
3323
3323
|
return `${ie}-${Ne}-${Ie}`;
|
|
3324
3324
|
}
|
|
3325
3325
|
return null;
|
|
3326
3326
|
};
|
|
3327
|
-
let x = g(
|
|
3328
|
-
if (x &&
|
|
3329
|
-
const
|
|
3330
|
-
if (new Date(
|
|
3327
|
+
let x = g(c[0]), A = c[1] ? g(c[1]) : null;
|
|
3328
|
+
if (x && A) {
|
|
3329
|
+
const R = new Date(x);
|
|
3330
|
+
if (new Date(A) < R) {
|
|
3331
3331
|
const ie = x;
|
|
3332
|
-
x =
|
|
3332
|
+
x = A, A = ie;
|
|
3333
3333
|
}
|
|
3334
|
-
return JSON.stringify({ startDate: x, endDate:
|
|
3334
|
+
return JSON.stringify({ startDate: x, endDate: A });
|
|
3335
3335
|
} else if (x)
|
|
3336
3336
|
return JSON.stringify({ startDate: x, endDate: null });
|
|
3337
3337
|
return "";
|
|
3338
3338
|
}
|
|
3339
|
-
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(
|
|
3340
|
-
const
|
|
3339
|
+
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(s)) {
|
|
3340
|
+
const c = s.split("/");
|
|
3341
3341
|
if (b === "pt-BR") {
|
|
3342
|
-
const [g, x,
|
|
3343
|
-
return `${
|
|
3342
|
+
const [g, x, A] = c, R = g.padStart(2, "0"), F = x.padStart(2, "0");
|
|
3343
|
+
return `${A}-${F}-${R}`;
|
|
3344
3344
|
} else {
|
|
3345
|
-
const [g, x,
|
|
3346
|
-
return `${
|
|
3345
|
+
const [g, x, A] = c, R = x.padStart(2, "0"), F = g.padStart(2, "0");
|
|
3346
|
+
return `${A}-${F}-${R}`;
|
|
3347
3347
|
}
|
|
3348
|
-
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(
|
|
3349
|
-
const
|
|
3350
|
-
return `${g}-${F}-${
|
|
3348
|
+
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(s)) {
|
|
3349
|
+
const c = s.split("-"), [g, x, A] = c, R = A.padStart(2, "0"), F = x.padStart(2, "0");
|
|
3350
|
+
return `${g}-${F}-${R}`;
|
|
3351
3351
|
}
|
|
3352
3352
|
return "";
|
|
3353
3353
|
} else if (n === "datetime-local") {
|
|
3354
|
-
if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(
|
|
3355
|
-
const [
|
|
3354
|
+
if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(s)) {
|
|
3355
|
+
const [c, g] = s.split(" "), x = c.split("/");
|
|
3356
3356
|
if (b === "pt-BR") {
|
|
3357
|
-
const [
|
|
3357
|
+
const [A, R, F] = x, ie = A.padStart(2, "0"), De = R.padStart(2, "0"), Ie = g.split(":").map((Ne) => Ne.padStart(2, "0")).join(":");
|
|
3358
3358
|
return `${F}-${De}-${ie}T${Ie}`;
|
|
3359
3359
|
} else {
|
|
3360
|
-
const [
|
|
3360
|
+
const [A, R, F] = x, ie = R.padStart(2, "0"), De = A.padStart(2, "0"), Ie = g.split(":").map((Ne) => Ne.padStart(2, "0")).join(":");
|
|
3361
3361
|
return `${F}-${De}-${ie}T${Ie}`;
|
|
3362
3362
|
}
|
|
3363
|
-
} else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(
|
|
3364
|
-
const [
|
|
3365
|
-
return `${
|
|
3363
|
+
} else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(s)) {
|
|
3364
|
+
const [c, g] = s.split("T"), x = c.split("-"), [A, R, F] = x, ie = F.padStart(2, "0"), De = R.padStart(2, "0"), Ie = g.split(":").map((Ne) => Ne.padStart(2, "0")).join(":");
|
|
3365
|
+
return `${A}-${De}-${ie}T${Ie}`;
|
|
3366
3366
|
}
|
|
3367
3367
|
return "";
|
|
3368
3368
|
} else if (n === "month") {
|
|
3369
|
-
if (/^\d{1,2}\/\d{4}$/.test(
|
|
3370
|
-
const [
|
|
3369
|
+
if (/^\d{1,2}\/\d{4}$/.test(s)) {
|
|
3370
|
+
const [c, g] = s.split("/"), x = c.padStart(2, "0");
|
|
3371
3371
|
return `${g}-${x}`;
|
|
3372
|
-
} else if (/^\d{4}-\d{1,2}$/.test(
|
|
3373
|
-
const [
|
|
3374
|
-
return `${
|
|
3372
|
+
} else if (/^\d{4}-\d{1,2}$/.test(s)) {
|
|
3373
|
+
const [c, g] = s.split("-"), x = g.padStart(2, "0");
|
|
3374
|
+
return `${c}-${x}`;
|
|
3375
3375
|
}
|
|
3376
3376
|
return "";
|
|
3377
3377
|
} else if (n === "week") {
|
|
3378
|
-
if (/^\d{4}-W\d{2}$/i.test(
|
|
3379
|
-
return
|
|
3380
|
-
const
|
|
3381
|
-
if (
|
|
3382
|
-
return `${
|
|
3383
|
-
const g =
|
|
3378
|
+
if (/^\d{4}-W\d{2}$/i.test(s))
|
|
3379
|
+
return s.toUpperCase();
|
|
3380
|
+
const c = s.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
|
|
3381
|
+
if (c)
|
|
3382
|
+
return `${c[2]}-W${c[1]}`;
|
|
3383
|
+
const g = s.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
|
|
3384
3384
|
return g ? `${g[2]}-W${g[1]}` : "";
|
|
3385
3385
|
}
|
|
3386
|
-
return
|
|
3387
|
-
},
|
|
3388
|
-
const t =
|
|
3386
|
+
return s;
|
|
3387
|
+
}, N = ee(!1), H = ee({ top: 0, left: 0 }), B = ee(null), C = ee(null), ne = a(() => ct.value === !0), z = a(() => {
|
|
3388
|
+
const t = _.value ? "component-disabled" : "", n = pe.value !== "b" ? "inline-block" : "block", r = te.value ? te.value : "", s = Ee.value ? Ee.value : "", b = $e.value ? $e.value : "", c = oe.value ? oe.value : !1, g = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, x = ue.value ? ue.value : "'Lato', sans-serif", A = K.value && K.value >= 0 ? K.value : null, R = Y.value !== 0 && !Y.value || Y.value < 0 ? 100 : Y.value, F = ke.value ? ke.value : "'Lato', sans-serif", ie = de.value ? de.value : "1em", De = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, Ze = be.value ? be.value : "#f15574", Ie = ae.value ? ae.value : 200, Ne = ge.value ? ge.value : "normal", pa = "sm", ba = $.value ? $.value : !1, ha = V.value ? V.value : "date", Ca = _e.value ? _e.value : !1, xa = Le.value ? Le.value : "normal", Sa = S.value ? S.value : "left", Va = ye.value ? ye.value : "background", ka = le.value ? le.value : !1, La = d.value !== 0 && !d.value || d.value < 0 ? 5 : d.value, Ta = je.value ? je.value : "transparent", Ba = v.value !== 0 && !v.value || v.value < 0 ? 15 : v.value, Aa = He.value ? He.value : "1px 5px", $a = J.value !== 0 && !J.value || J.value < 0 ? 0 : J.value, _a = fe.value !== 0 && !fe.value || fe.value < 0 ? -13 : fe.value, wa = q.value !== 0 && !q.value || q.value < 0 ? -10 : q.value, Ra = re.value ? re.value : "'Lato', sans-serif", Ma = Re.value ? Re.value : "1em", za = Me.value ? Me.value : "0.8em", Da = Fe.value ? Fe.value : 400, Ia = Oe.value ? Oe.value : "#ffffff", Na = nt.value ? nt.value : "#000000", Wa = Ue.value ? Ue.value : "#ffffff", Pa = ot.value ? ot.value : "#000000";
|
|
3389
3389
|
return {
|
|
3390
3390
|
disabled: t,
|
|
3391
3391
|
display: n,
|
|
3392
3392
|
font: x,
|
|
3393
|
-
fontSize:
|
|
3394
|
-
fontWeight:
|
|
3393
|
+
fontSize: A,
|
|
3394
|
+
fontWeight: R,
|
|
3395
3395
|
fontFamilyMsg: F,
|
|
3396
3396
|
fontSizeMsg: ie,
|
|
3397
3397
|
fontWeightMsg: De,
|
|
3398
3398
|
textMessageColor: Ze,
|
|
3399
3399
|
caretColor: r,
|
|
3400
|
-
selectionBgColor:
|
|
3400
|
+
selectionBgColor: s,
|
|
3401
3401
|
selectionTextColor: b,
|
|
3402
|
-
hasBorderRadius:
|
|
3402
|
+
hasBorderRadius: c,
|
|
3403
3403
|
borderRadius: g,
|
|
3404
|
-
textAlign:
|
|
3404
|
+
textAlign: Sa,
|
|
3405
3405
|
inputWidth: Ie,
|
|
3406
3406
|
activeTextStyle: Ne,
|
|
3407
|
-
sizeMediaQuery:
|
|
3408
|
-
inputReadonly:
|
|
3409
|
-
inputType:
|
|
3410
|
-
inputUppercase:
|
|
3411
|
-
theme:
|
|
3412
|
-
inputStyle:
|
|
3413
|
-
showLabel:
|
|
3414
|
-
labelBackground:
|
|
3415
|
-
labelPadding:
|
|
3416
|
-
labelBorderRadius:
|
|
3417
|
-
labelLeft:
|
|
3418
|
-
inputLabelMarginActive:
|
|
3419
|
-
labelActiveTop:
|
|
3420
|
-
labelActiveLeft:
|
|
3421
|
-
fontFamilyLabel:
|
|
3422
|
-
fontSizeLabel:
|
|
3423
|
-
fontSizeLabelActive:
|
|
3424
|
-
fontWeightLabel:
|
|
3425
|
-
lightTextColorLabel:
|
|
3426
|
-
darkTextColorLabel:
|
|
3427
|
-
lightTextColorLabelActive:
|
|
3428
|
-
darkTextColorLabelActive:
|
|
3407
|
+
sizeMediaQuery: pa,
|
|
3408
|
+
inputReadonly: ba,
|
|
3409
|
+
inputType: ha,
|
|
3410
|
+
inputUppercase: Ca,
|
|
3411
|
+
theme: xa,
|
|
3412
|
+
inputStyle: Va,
|
|
3413
|
+
showLabel: ka,
|
|
3414
|
+
labelBackground: Ta,
|
|
3415
|
+
labelPadding: Aa,
|
|
3416
|
+
labelBorderRadius: $a,
|
|
3417
|
+
labelLeft: La,
|
|
3418
|
+
inputLabelMarginActive: Ba,
|
|
3419
|
+
labelActiveTop: _a,
|
|
3420
|
+
labelActiveLeft: wa,
|
|
3421
|
+
fontFamilyLabel: Ra,
|
|
3422
|
+
fontSizeLabel: Ma,
|
|
3423
|
+
fontSizeLabelActive: za,
|
|
3424
|
+
fontWeightLabel: Da,
|
|
3425
|
+
lightTextColorLabel: Ia,
|
|
3426
|
+
darkTextColorLabel: Na,
|
|
3427
|
+
lightTextColorLabelActive: Wa,
|
|
3428
|
+
darkTextColorLabelActive: Pa
|
|
3429
3429
|
};
|
|
3430
|
-
}), At = a(() =>
|
|
3431
|
-
display:
|
|
3430
|
+
}), At = a(() => z.value.disabled), $t = a(() => ({
|
|
3431
|
+
display: z.value.display
|
|
3432
3432
|
})), Vt = a(() => {
|
|
3433
|
-
const t =
|
|
3433
|
+
const t = z.value;
|
|
3434
3434
|
return t.fontSize ? `${t.fontSize}em` : "1.2em";
|
|
3435
3435
|
}), _t = a(() => {
|
|
3436
|
-
const t =
|
|
3436
|
+
const t = z.value, n = Lt.value;
|
|
3437
3437
|
return {
|
|
3438
3438
|
fontSize: Vt.value,
|
|
3439
3439
|
fontWeight: t.fontWeight,
|
|
3440
|
-
marginTop: n &&
|
|
3440
|
+
marginTop: n && le.value ? `${t.inputLabelMarginActive}px` : "0"
|
|
3441
3441
|
};
|
|
3442
3442
|
}), xe = a(() => {
|
|
3443
|
-
const t =
|
|
3443
|
+
const t = z.value;
|
|
3444
3444
|
return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
|
|
3445
|
-
}), st = a(() =>
|
|
3446
|
-
const t =
|
|
3445
|
+
}), st = a(() => z.value.font), bt = a(() => z.value.fontFamilyMsg), ut = a(() => z.value.fontSizeMsg), L = a(() => z.value.fontWeightMsg), wt = a(() => Le.value === "dark" ? f.value : Te.value), Ft = a(() => z.value.textMessageColor), Ct = a(() => {
|
|
3446
|
+
const t = z.value;
|
|
3447
3447
|
return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
3448
|
-
}),
|
|
3449
|
-
const t =
|
|
3448
|
+
}), Ot = a(() => {
|
|
3449
|
+
const t = z.value;
|
|
3450
3450
|
return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
3451
3451
|
}), rt = a(() => {
|
|
3452
|
-
const t =
|
|
3452
|
+
const t = z.value;
|
|
3453
3453
|
return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
|
|
3454
3454
|
}), xt = a(() => {
|
|
3455
|
-
const t =
|
|
3455
|
+
const t = z.value;
|
|
3456
3456
|
return t.display === "block" ? { width: "100%" } : {
|
|
3457
3457
|
width: `${t.inputWidth}px`
|
|
3458
3458
|
};
|
|
3459
|
-
}),
|
|
3459
|
+
}), qt = a(() => {
|
|
3460
3460
|
switch (ye.value) {
|
|
3461
3461
|
case "line":
|
|
3462
3462
|
return "component__input--line";
|
|
@@ -3465,8 +3465,8 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3465
3465
|
default:
|
|
3466
3466
|
return "component__input--background";
|
|
3467
3467
|
}
|
|
3468
|
-
}),
|
|
3469
|
-
switch (
|
|
3468
|
+
}), jt = a(() => {
|
|
3469
|
+
switch (z.value.activeTextStyle) {
|
|
3470
3470
|
case "italic":
|
|
3471
3471
|
return "component__input--active--italic";
|
|
3472
3472
|
case "oblique":
|
|
@@ -3474,39 +3474,39 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3474
3474
|
default:
|
|
3475
3475
|
return "component__input--active--normal";
|
|
3476
3476
|
}
|
|
3477
|
-
}),
|
|
3478
|
-
switch (
|
|
3477
|
+
}), Ht = a(() => "component__sm"), Ut = a(() => {
|
|
3478
|
+
switch (z.value.theme) {
|
|
3479
3479
|
case "dark":
|
|
3480
3480
|
return "component__theme--dark";
|
|
3481
3481
|
default:
|
|
3482
3482
|
return "component__theme--light";
|
|
3483
3483
|
}
|
|
3484
|
-
}),
|
|
3484
|
+
}), Gt = a(() => z.value.inputReadonly ? "component__input--read-only" : ""), Kt = a(() => z.value.inputUppercase ? "component__input--uppercase" : ""), kt = a(() => qe.value ? qe.value : `${Se.value}-name-label`), Yt = a(() => ""), Lt = a(() => Ce.value || w.value && w.value.trim().length > 0), Tt = a(() => !w.value || w.value.trim().length === 0 ? "component__input--empty" : "");
|
|
3485
3485
|
a(() => Ce.value ? "component__input--active" : "component__input--no-active");
|
|
3486
|
-
const l = a(() => "6px 10px"),
|
|
3486
|
+
const l = a(() => "6px 10px"), i = a(() => !!(ce.value && Q.value)), D = a(() => {
|
|
3487
3487
|
const t = {};
|
|
3488
|
-
se.value && Object.keys(se.value).forEach((
|
|
3488
|
+
se.value && Object.keys(se.value).forEach((s) => t[`aria-${s}`] = se.value[s]);
|
|
3489
3489
|
const n = {
|
|
3490
3490
|
"aria-label": Ve.value,
|
|
3491
|
-
"aria-disabled":
|
|
3491
|
+
"aria-disabled": _.value,
|
|
3492
3492
|
...t
|
|
3493
3493
|
};
|
|
3494
3494
|
return Object.fromEntries(
|
|
3495
|
-
Object.entries(n).filter(([r,
|
|
3495
|
+
Object.entries(n).filter(([r, s]) => s != null)
|
|
3496
3496
|
);
|
|
3497
3497
|
}), X = a(() => {
|
|
3498
|
-
const t = Le.value === "dark" ? lt.value : at.value, n = Le.value === "dark" ?
|
|
3498
|
+
const t = Le.value === "dark" ? lt.value : at.value, n = Le.value === "dark" ? f.value : Te.value;
|
|
3499
3499
|
return t === "transparent" || t === "#transparent" || !t ? n : t;
|
|
3500
|
-
}),
|
|
3501
|
-
const t = Le.value === "dark" ? Ye.value : it.value, n = Le.value === "dark" ?
|
|
3500
|
+
}), Qt = a(() => {
|
|
3501
|
+
const t = Le.value === "dark" ? Ye.value : it.value, n = Le.value === "dark" ? f.value : Te.value;
|
|
3502
3502
|
return t === "transparent" || t === "#transparent" || !t ? n : t;
|
|
3503
3503
|
}), Rt = a(() => {
|
|
3504
|
-
const t =
|
|
3504
|
+
const t = z.value, n = Lt.value, r = n ? t.lightTextColorLabelActive : t.lightTextColorLabel, s = n ? t.darkTextColorLabelActive : t.darkTextColorLabel;
|
|
3505
3505
|
return {
|
|
3506
3506
|
fontFamily: t.fontFamilyLabel,
|
|
3507
3507
|
fontSize: n ? t.fontSizeLabelActive : t.fontSizeLabel,
|
|
3508
3508
|
fontWeight: t.fontWeightLabel,
|
|
3509
|
-
color: t.theme === "dark" ?
|
|
3509
|
+
color: t.theme === "dark" ? s : r,
|
|
3510
3510
|
top: n ? `${t.labelActiveTop}px` : "50%",
|
|
3511
3511
|
left: n ? `${t.labelActiveLeft}px` : `${t.labelLeft}px`,
|
|
3512
3512
|
transform: n ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -3517,37 +3517,41 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3517
3517
|
};
|
|
3518
3518
|
});
|
|
3519
3519
|
a(() => {
|
|
3520
|
-
const t =
|
|
3520
|
+
const t = z.value;
|
|
3521
3521
|
return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
|
|
3522
3522
|
});
|
|
3523
3523
|
const Mt = () => {
|
|
3524
3524
|
h.value = we.value, j.value = V.value;
|
|
3525
3525
|
}, gt = () => {
|
|
3526
|
-
|
|
3527
|
-
},
|
|
3528
|
-
|
|
3526
|
+
W("clicked");
|
|
3527
|
+
}, Jt = (t) => {
|
|
3528
|
+
t.stopPropagation(), !(_.value || z.value.inputReadonly) && B.value && (B.value.focus(), ne.value && (N.value = !1, requestAnimationFrame(() => {
|
|
3529
|
+
yt(), N.value = !0;
|
|
3530
|
+
})));
|
|
3531
|
+
}, zt = () => {
|
|
3532
|
+
_.value || z.value.inputReadonly || !Ae.value || W("entered", h.value);
|
|
3529
3533
|
}, yt = () => {
|
|
3530
|
-
|
|
3531
|
-
const t =
|
|
3534
|
+
B.value && ya(() => {
|
|
3535
|
+
const t = B.value.getBoundingClientRect(), n = 4;
|
|
3532
3536
|
H.value = {
|
|
3533
3537
|
top: `${t.bottom + n}px`,
|
|
3534
3538
|
left: `${t.left}px`
|
|
3535
3539
|
};
|
|
3536
3540
|
});
|
|
3537
|
-
},
|
|
3541
|
+
}, Xt = a(() => ({
|
|
3538
3542
|
position: "fixed",
|
|
3539
3543
|
top: H.value.top,
|
|
3540
3544
|
left: H.value.left,
|
|
3541
3545
|
zIndex: ft.value
|
|
3542
|
-
})),
|
|
3543
|
-
Ce.value = !0,
|
|
3544
|
-
yt(),
|
|
3546
|
+
})), Zt = () => {
|
|
3547
|
+
Ce.value = !0, W("focused"), ne.value && (N.value = !1, requestAnimationFrame(() => {
|
|
3548
|
+
yt(), N.value = !0;
|
|
3545
3549
|
}));
|
|
3546
|
-
},
|
|
3550
|
+
}, ea = (t) => {
|
|
3547
3551
|
t.relatedTarget && C.value && C.value.contains(t.relatedTarget) || setTimeout(() => {
|
|
3548
|
-
var
|
|
3552
|
+
var s;
|
|
3549
3553
|
const n = document.activeElement;
|
|
3550
|
-
if (
|
|
3554
|
+
if (N.value) {
|
|
3551
3555
|
if (C.value && C.value.contains(n) || t.relatedTarget && C.value && C.value.contains(t.relatedTarget))
|
|
3552
3556
|
return;
|
|
3553
3557
|
if (n === document.body && C.value) {
|
|
@@ -3556,19 +3560,19 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3556
3560
|
return;
|
|
3557
3561
|
}
|
|
3558
3562
|
}
|
|
3559
|
-
const r = (
|
|
3560
|
-
r && r.contains(n) ||
|
|
3563
|
+
const r = (s = B.value) == null ? void 0 : s.closest(".component");
|
|
3564
|
+
r && r.contains(n) || B.value !== n && (Ce.value = !1, N.value = !1, W("blurred"));
|
|
3561
3565
|
}, 200);
|
|
3562
|
-
},
|
|
3563
|
-
|
|
3564
|
-
yt(),
|
|
3566
|
+
}, ta = () => {
|
|
3567
|
+
ne.value && (N.value, N.value = !1, requestAnimationFrame(() => {
|
|
3568
|
+
yt(), N.value = !0;
|
|
3565
3569
|
}));
|
|
3566
3570
|
}, Bt = (t) => {
|
|
3567
3571
|
if (!t || !(t instanceof Date))
|
|
3568
3572
|
return null;
|
|
3569
|
-
const n = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"),
|
|
3570
|
-
return `${n}-${r}-${
|
|
3571
|
-
},
|
|
3573
|
+
const n = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
3574
|
+
return `${n}-${r}-${s}`;
|
|
3575
|
+
}, aa = (t) => {
|
|
3572
3576
|
let n = "";
|
|
3573
3577
|
if (!t)
|
|
3574
3578
|
n = "";
|
|
@@ -3576,66 +3580,66 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3576
3580
|
if (t.startDate === null && t.endDate === null)
|
|
3577
3581
|
n = "";
|
|
3578
3582
|
else if (t.startDate || t.endDate) {
|
|
3579
|
-
const
|
|
3583
|
+
const s = {
|
|
3580
3584
|
// Converter startDate para string ISO se existir
|
|
3581
3585
|
startDate: t.startDate ? Bt(t.startDate) : null,
|
|
3582
3586
|
// Converter endDate para string ISO se existir
|
|
3583
3587
|
endDate: t.endDate ? Bt(t.endDate) : null
|
|
3584
3588
|
};
|
|
3585
|
-
n = JSON.stringify(
|
|
3589
|
+
n = JSON.stringify(s);
|
|
3586
3590
|
}
|
|
3587
3591
|
} else
|
|
3588
3592
|
V.value === "date" ? t instanceof Date ? n = Bt(t) : typeof t == "string" && (n = t) : (V.value === "month" || V.value === "time" || V.value === "datetime-local" || V.value === "week") && (n = typeof t == "string" ? t : "");
|
|
3589
|
-
|
|
3593
|
+
Z = !0, h.value = n;
|
|
3590
3594
|
const r = n ? Je(n, V.value) : "";
|
|
3591
|
-
|
|
3592
|
-
},
|
|
3593
|
-
if (!
|
|
3594
|
-
h.value =
|
|
3595
|
+
w.value = r, I.value = r;
|
|
3596
|
+
}, la = () => {
|
|
3597
|
+
if (!ne.value) {
|
|
3598
|
+
h.value = w.value;
|
|
3595
3599
|
return;
|
|
3596
3600
|
}
|
|
3597
|
-
|
|
3598
|
-
const t =
|
|
3599
|
-
start:
|
|
3600
|
-
end:
|
|
3601
|
-
} : null, n =
|
|
3601
|
+
o = !0;
|
|
3602
|
+
const t = B.value ? {
|
|
3603
|
+
start: B.value.selectionStart,
|
|
3604
|
+
end: B.value.selectionEnd
|
|
3605
|
+
} : null, n = w.value.trim();
|
|
3602
3606
|
if (!n || n.length === 0) {
|
|
3603
|
-
|
|
3604
|
-
|
|
3607
|
+
Z = !0, h.value = "", w.value = "", I.value = "", setTimeout(() => {
|
|
3608
|
+
o = !1;
|
|
3605
3609
|
}, 50);
|
|
3606
3610
|
return;
|
|
3607
3611
|
}
|
|
3608
3612
|
if (V.value === "date") {
|
|
3609
|
-
const
|
|
3613
|
+
const s = he.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}$/;
|
|
3610
3614
|
if (he.value) {
|
|
3611
|
-
if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), n.length > 23 && !
|
|
3612
|
-
|
|
3613
|
-
const b = Math.min(t.start,
|
|
3614
|
-
|
|
3615
|
+
if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), n.length > 23 && !s.test(n)) {
|
|
3616
|
+
w.value = I.value, t && B.value && ya(() => {
|
|
3617
|
+
const b = Math.min(t.start, I.value.length);
|
|
3618
|
+
B.value.setSelectionRange(b, b);
|
|
3615
3619
|
}), setTimeout(() => {
|
|
3616
|
-
|
|
3620
|
+
o = !1;
|
|
3617
3621
|
}, 50);
|
|
3618
3622
|
return;
|
|
3619
3623
|
}
|
|
3620
|
-
if (!
|
|
3624
|
+
if (!s.test(n) && n.length <= 23) {
|
|
3621
3625
|
setTimeout(() => {
|
|
3622
|
-
|
|
3626
|
+
o = !1;
|
|
3623
3627
|
}, 50);
|
|
3624
3628
|
return;
|
|
3625
3629
|
}
|
|
3626
3630
|
} else {
|
|
3627
|
-
if (n.length > 10 && !
|
|
3628
|
-
|
|
3629
|
-
const b = Math.min(t.start,
|
|
3630
|
-
|
|
3631
|
+
if (n.length > 10 && !s.test(n)) {
|
|
3632
|
+
w.value = I.value, t && B.value && ya(() => {
|
|
3633
|
+
const b = Math.min(t.start, I.value.length);
|
|
3634
|
+
B.value.setSelectionRange(b, b);
|
|
3631
3635
|
}), setTimeout(() => {
|
|
3632
|
-
|
|
3636
|
+
o = !1;
|
|
3633
3637
|
}, 50);
|
|
3634
3638
|
return;
|
|
3635
3639
|
}
|
|
3636
|
-
if (!
|
|
3640
|
+
if (!s.test(n) && n.length <= 10) {
|
|
3637
3641
|
setTimeout(() => {
|
|
3638
|
-
|
|
3642
|
+
o = !1;
|
|
3639
3643
|
}, 50);
|
|
3640
3644
|
return;
|
|
3641
3645
|
}
|
|
@@ -3646,68 +3650,68 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3646
3650
|
if (he.value)
|
|
3647
3651
|
if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
|
|
3648
3652
|
if (r = Xe(n, V.value), r && r !== h.value)
|
|
3649
|
-
|
|
3653
|
+
Z = !0, h.value = r, I.value = n;
|
|
3650
3654
|
else {
|
|
3651
3655
|
setTimeout(() => {
|
|
3652
|
-
|
|
3656
|
+
o = !1;
|
|
3653
3657
|
}, 50);
|
|
3654
3658
|
return;
|
|
3655
3659
|
}
|
|
3656
3660
|
else if (n.includes("-")) {
|
|
3657
3661
|
const b = n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
|
|
3658
3662
|
if (b) {
|
|
3659
|
-
const
|
|
3663
|
+
const c = b[1], g = Xe(c, V.value);
|
|
3660
3664
|
if (g) {
|
|
3661
3665
|
const x = JSON.stringify({ startDate: g, endDate: null });
|
|
3662
|
-
x !== h.value && (
|
|
3666
|
+
x !== h.value && (Z = !0, h.value = x, I.value = n);
|
|
3663
3667
|
} else {
|
|
3664
|
-
|
|
3665
|
-
|
|
3668
|
+
I.value = n, setTimeout(() => {
|
|
3669
|
+
o = !1;
|
|
3666
3670
|
}, 50);
|
|
3667
3671
|
return;
|
|
3668
3672
|
}
|
|
3669
3673
|
} else {
|
|
3670
|
-
|
|
3671
|
-
|
|
3674
|
+
I.value = n, setTimeout(() => {
|
|
3675
|
+
o = !1;
|
|
3672
3676
|
}, 50);
|
|
3673
3677
|
return;
|
|
3674
3678
|
}
|
|
3675
3679
|
} else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
|
|
3676
3680
|
if (r = Xe(n, V.value), r) {
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3681
|
+
const c = JSON.stringify({ startDate: r, endDate: null });
|
|
3682
|
+
c !== h.value && (Z = !0, h.value = c, I.value = n);
|
|
3679
3683
|
} else {
|
|
3680
|
-
|
|
3681
|
-
|
|
3684
|
+
I.value = n, setTimeout(() => {
|
|
3685
|
+
o = !1;
|
|
3682
3686
|
}, 50);
|
|
3683
3687
|
return;
|
|
3684
3688
|
}
|
|
3685
3689
|
else {
|
|
3686
|
-
|
|
3687
|
-
|
|
3690
|
+
I.value = n, setTimeout(() => {
|
|
3691
|
+
o = !1;
|
|
3688
3692
|
}, 50);
|
|
3689
3693
|
return;
|
|
3690
3694
|
}
|
|
3691
3695
|
else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
|
|
3692
|
-
r = Xe(n, V.value), r && r !== h.value && (
|
|
3696
|
+
r = Xe(n, V.value), r && r !== h.value && (Z = !0, h.value = r, I.value = n);
|
|
3693
3697
|
else {
|
|
3694
3698
|
setTimeout(() => {
|
|
3695
|
-
|
|
3699
|
+
o = !1;
|
|
3696
3700
|
}, 50);
|
|
3697
3701
|
return;
|
|
3698
3702
|
}
|
|
3699
3703
|
else
|
|
3700
|
-
r = Xe(n, V.value), r && r !== h.value && (
|
|
3704
|
+
r = Xe(n, V.value), r && r !== h.value && (Z = !0, h.value = r, I.value = n);
|
|
3701
3705
|
setTimeout(() => {
|
|
3702
|
-
|
|
3706
|
+
o = !1;
|
|
3703
3707
|
}, 50);
|
|
3704
|
-
},
|
|
3705
|
-
},
|
|
3706
|
-
var
|
|
3707
|
-
if (!
|
|
3708
|
+
}, na = (t) => {
|
|
3709
|
+
}, Dt = (t) => {
|
|
3710
|
+
var s;
|
|
3711
|
+
if (!N.value || !C.value || !B.value)
|
|
3708
3712
|
return;
|
|
3709
3713
|
const n = t.target;
|
|
3710
|
-
if ((
|
|
3714
|
+
if ((s = B.value) == null || s.closest(".nb-wrapper"), C.value && C.value.contains(n) || t.defaultPrevented || t.cancelBubble || C.value && C.value.contains(n))
|
|
3711
3715
|
return;
|
|
3712
3716
|
let r = n;
|
|
3713
3717
|
for (; r && r !== document.body; ) {
|
|
@@ -3716,7 +3720,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3716
3720
|
r = r.parentElement;
|
|
3717
3721
|
}
|
|
3718
3722
|
setTimeout(() => {
|
|
3719
|
-
if (!
|
|
3723
|
+
if (!N.value || !C.value || C.value && C.value.contains(n))
|
|
3720
3724
|
return;
|
|
3721
3725
|
for (r = n; r && r !== document.body; ) {
|
|
3722
3726
|
if (r === C.value || C.value && C.value.contains(r))
|
|
@@ -3725,174 +3729,175 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3725
3729
|
}
|
|
3726
3730
|
if (!document.body.contains(n))
|
|
3727
3731
|
return;
|
|
3728
|
-
|
|
3732
|
+
B.value && (n === B.value || B.value.contains(n)) || (N.value = !1, (!w.value || w.value.trim().length === 0) && (Ce.value = !1));
|
|
3729
3733
|
}, 50);
|
|
3730
|
-
}, Dt = () => {
|
|
3731
|
-
P.value && ue.value && yt();
|
|
3732
3734
|
}, It = () => {
|
|
3733
|
-
|
|
3735
|
+
N.value && ne.value && yt();
|
|
3736
|
+
}, Nt = () => {
|
|
3737
|
+
N.value && ne.value && (N.value = !1);
|
|
3734
3738
|
};
|
|
3735
3739
|
let dt = null, St = null, mt = { top: 0, left: 0 };
|
|
3736
|
-
const
|
|
3737
|
-
if (!
|
|
3740
|
+
const Wt = () => {
|
|
3741
|
+
if (!N.value || !ne.value || !B.value)
|
|
3738
3742
|
return;
|
|
3739
|
-
const t = 4, n =
|
|
3740
|
-
(mt.top !== r || mt.left !==
|
|
3743
|
+
const t = 4, n = B.value.getBoundingClientRect(), r = `${n.bottom + t}px`, s = `${n.left}px`;
|
|
3744
|
+
(mt.top !== r || mt.left !== s) && (mt.top = r, mt.left = s, H.value = {
|
|
3741
3745
|
top: r,
|
|
3742
|
-
left:
|
|
3743
|
-
}), St = requestAnimationFrame(
|
|
3744
|
-
},
|
|
3745
|
-
if (
|
|
3746
|
+
left: s
|
|
3747
|
+
}), St = requestAnimationFrame(Wt);
|
|
3748
|
+
}, oa = () => {
|
|
3749
|
+
if (!B.value || !ne.value)
|
|
3746
3750
|
return;
|
|
3747
|
-
mt = { top: 0, left: 0 },
|
|
3748
|
-
|
|
3749
|
-
}), dt.observe(
|
|
3750
|
-
const t =
|
|
3751
|
+
mt = { top: 0, left: 0 }, Wt(), dt = new ResizeObserver(() => {
|
|
3752
|
+
N.value && yt();
|
|
3753
|
+
}), dt.observe(B.value);
|
|
3754
|
+
const t = B.value.closest(".component");
|
|
3751
3755
|
t && dt.observe(t);
|
|
3752
|
-
},
|
|
3756
|
+
}, Pt = () => {
|
|
3753
3757
|
St !== null && (cancelAnimationFrame(St), St = null), dt && (dt.disconnect(), dt = null);
|
|
3754
3758
|
};
|
|
3755
|
-
U(
|
|
3756
|
-
t &&
|
|
3757
|
-
|
|
3758
|
-
}) :
|
|
3759
|
-
}),
|
|
3760
|
-
h.value = we.value,
|
|
3759
|
+
U(N, (t) => {
|
|
3760
|
+
t && ne.value ? ya(() => {
|
|
3761
|
+
oa();
|
|
3762
|
+
}) : Pt();
|
|
3763
|
+
}), ra(() => {
|
|
3764
|
+
h.value = we.value, w.value = Je(we.value, V.value), document.addEventListener("click", Dt, !1), window.addEventListener("scroll", It, { capture: !0, passive: !0 }), window.addEventListener("resize", Nt);
|
|
3761
3765
|
}), ma(() => {
|
|
3762
|
-
Mt(),
|
|
3766
|
+
Mt(), Pt(), document.removeEventListener("click", Dt), window.removeEventListener("scroll", It, { capture: !0, passive: !0 }), window.removeEventListener("resize", Nt);
|
|
3763
3767
|
}), U(V, (t) => {
|
|
3764
3768
|
j.value = t;
|
|
3765
3769
|
}, { immediate: !0 }), U(Ke, () => {
|
|
3766
|
-
h.value &&
|
|
3770
|
+
h.value && ne.value && (w.value = Je(h.value, V.value));
|
|
3767
3771
|
}), U(we, (t) => {
|
|
3768
3772
|
if (t !== h.value) {
|
|
3769
3773
|
h.value = t;
|
|
3770
3774
|
const n = Je(t, V.value);
|
|
3771
|
-
|
|
3775
|
+
w.value = n, I.value = n;
|
|
3772
3776
|
}
|
|
3773
3777
|
}, { immediate: !0 });
|
|
3774
|
-
let
|
|
3775
|
-
const
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
+
let o = !1;
|
|
3779
|
+
const p = () => {
|
|
3780
|
+
o = !0, setTimeout(() => {
|
|
3781
|
+
o = !1;
|
|
3778
3782
|
}, 100);
|
|
3779
3783
|
};
|
|
3780
|
-
let
|
|
3784
|
+
let Z = !1;
|
|
3781
3785
|
return U(() => h.value, (t) => {
|
|
3782
|
-
if (
|
|
3786
|
+
if (ne.value && !Z && !o) {
|
|
3783
3787
|
const n = Je(t, V.value);
|
|
3784
|
-
n !==
|
|
3788
|
+
n !== w.value && (w.value = n, I.value = n);
|
|
3785
3789
|
}
|
|
3786
|
-
|
|
3790
|
+
Z = !1;
|
|
3787
3791
|
}), U(h, (t) => {
|
|
3788
3792
|
if (k.value && (t = t.trim()), he.value && typeof t == "string" && t.startsWith("{"))
|
|
3789
3793
|
try {
|
|
3790
3794
|
const n = JSON.parse(t);
|
|
3791
3795
|
if (n && (n.startDate || n.endDate)) {
|
|
3792
|
-
const r = (
|
|
3793
|
-
if (!
|
|
3796
|
+
const r = (c) => {
|
|
3797
|
+
if (!c)
|
|
3794
3798
|
return null;
|
|
3795
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(
|
|
3796
|
-
const [g, x,
|
|
3797
|
-
return new Date(g, x - 1,
|
|
3799
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(c)) {
|
|
3800
|
+
const [g, x, A] = c.split("-").map(Number);
|
|
3801
|
+
return new Date(g, x - 1, A);
|
|
3798
3802
|
}
|
|
3799
|
-
return new Date(
|
|
3800
|
-
},
|
|
3801
|
-
|
|
3803
|
+
return new Date(c);
|
|
3804
|
+
}, s = n.startDate ? r(n.startDate) : null, b = n.endDate ? r(n.endDate) : null;
|
|
3805
|
+
W("changed", { startDate: s, endDate: b });
|
|
3802
3806
|
return;
|
|
3803
3807
|
}
|
|
3804
3808
|
} catch {
|
|
3805
3809
|
}
|
|
3806
|
-
|
|
3810
|
+
W("changed", t);
|
|
3807
3811
|
}), U(Ce, (t) => {
|
|
3808
|
-
|
|
3812
|
+
W(t ? "focused" : "blurred");
|
|
3809
3813
|
}), U(h, (t) => {
|
|
3810
|
-
k.value && (t = t.trim()),
|
|
3811
|
-
}), (t, n) =>
|
|
3814
|
+
k.value && (t = t.trim()), W("current-value", t);
|
|
3815
|
+
}), (t, n) => u(Se) ? (E(), O("div", ia({
|
|
3812
3816
|
key: 0,
|
|
3813
3817
|
class: ["nb-wrapper", At.value],
|
|
3814
3818
|
style: [$t.value, xt.value, xe.value],
|
|
3815
3819
|
role: "input"
|
|
3816
|
-
},
|
|
3820
|
+
}, D.value), [
|
|
3817
3821
|
ve("div", {
|
|
3818
|
-
id:
|
|
3819
|
-
class: We(["nb-reset", "component",
|
|
3820
|
-
style:
|
|
3822
|
+
id: u(Se),
|
|
3823
|
+
class: We(["nb-reset", "component", Ht.value, Ut.value, Gt.value, qt.value]),
|
|
3824
|
+
style: Pe([_t.value, xt.value, xe.value]),
|
|
3821
3825
|
onClick: gt
|
|
3822
3826
|
}, [
|
|
3823
|
-
|
|
3827
|
+
u(le) ? (E(), O("label", {
|
|
3824
3828
|
key: 0,
|
|
3825
3829
|
for: kt.value,
|
|
3826
3830
|
class: "component__label",
|
|
3827
|
-
style:
|
|
3828
|
-
|
|
3829
|
-
|
|
3831
|
+
style: Pe([Rt.value]),
|
|
3832
|
+
onClick: Jt
|
|
3833
|
+
}, ht(e.label), 13, El)) : Be("", !0),
|
|
3834
|
+
fa(ve("input", {
|
|
3830
3835
|
ref_key: "inputRef",
|
|
3831
|
-
ref:
|
|
3832
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
|
3833
|
-
onInput:
|
|
3836
|
+
ref: B,
|
|
3837
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => w.value = r),
|
|
3838
|
+
onInput: la,
|
|
3834
3839
|
onKeydown: [
|
|
3835
|
-
|
|
3836
|
-
n[1] || (n[1] = Et((r) => !
|
|
3840
|
+
p,
|
|
3841
|
+
n[1] || (n[1] = Et((r) => !u(_) && u(Ae) && zt(), ["enter"]))
|
|
3837
3842
|
],
|
|
3838
3843
|
id: kt.value,
|
|
3839
3844
|
name: kt.value,
|
|
3840
|
-
type:
|
|
3845
|
+
type: ne.value ? "text" : j.value,
|
|
3841
3846
|
class: We(["component__input", [
|
|
3842
|
-
|
|
3843
|
-
|
|
3847
|
+
Kt.value,
|
|
3848
|
+
jt.value,
|
|
3844
3849
|
Tt.value
|
|
3845
3850
|
]]),
|
|
3846
|
-
placeholder:
|
|
3847
|
-
disabled:
|
|
3851
|
+
placeholder: Yt.value,
|
|
3852
|
+
disabled: u(_) || u($),
|
|
3848
3853
|
required: e.required,
|
|
3849
|
-
readonly:
|
|
3854
|
+
readonly: u($),
|
|
3850
3855
|
autocomplete: e.inputAutocomplete,
|
|
3851
|
-
min:
|
|
3852
|
-
max:
|
|
3853
|
-
step:
|
|
3854
|
-
tabindex:
|
|
3856
|
+
min: ne.value ? void 0 : u(et),
|
|
3857
|
+
max: ne.value ? void 0 : u(Ge),
|
|
3858
|
+
step: ne.value ? void 0 : u(tt),
|
|
3859
|
+
tabindex: u(_) || u($) ? -1 : u(vt),
|
|
3855
3860
|
role: "input",
|
|
3856
|
-
style:
|
|
3857
|
-
onFocus:
|
|
3858
|
-
onBlur:
|
|
3859
|
-
onClick:
|
|
3861
|
+
style: Pe([xe.value]),
|
|
3862
|
+
onFocus: Zt,
|
|
3863
|
+
onBlur: ea,
|
|
3864
|
+
onClick: ta
|
|
3860
3865
|
}, null, 46, Fl), [
|
|
3861
|
-
[
|
|
3866
|
+
[qa, w.value]
|
|
3862
3867
|
])
|
|
3863
|
-
], 14,
|
|
3864
|
-
|
|
3868
|
+
], 14, Pl),
|
|
3869
|
+
i.value ? (E(), O("div", {
|
|
3865
3870
|
key: 0,
|
|
3866
3871
|
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
3867
3872
|
}, [
|
|
3868
|
-
|
|
3873
|
+
ua(t.$slots, "message", {}, () => [
|
|
3869
3874
|
ga(ht(e.message), 1)
|
|
3870
3875
|
], !0)
|
|
3871
3876
|
], 2)) : Be("", !0),
|
|
3872
3877
|
(E(), ol(ul, { to: "body" }, [
|
|
3873
|
-
|
|
3878
|
+
ne.value && N.value ? (E(), O("div", {
|
|
3874
3879
|
key: 0,
|
|
3875
3880
|
ref_key: "calendarRef",
|
|
3876
3881
|
ref: C,
|
|
3877
3882
|
class: "datepicker__custom-calendar-wrapper",
|
|
3878
|
-
style:
|
|
3879
|
-
onClick: n[4] || (n[4] =
|
|
3880
|
-
onMousedown: n[5] || (n[5] =
|
|
3883
|
+
style: Pe(Xt.value),
|
|
3884
|
+
onClick: n[4] || (n[4] = sa((r) => T.value = !0, ["stop"])),
|
|
3885
|
+
onMousedown: n[5] || (n[5] = sa((r) => T.value = !0, ["stop"]))
|
|
3881
3886
|
}, [
|
|
3882
|
-
rl(
|
|
3883
|
-
"nb-id": `${
|
|
3887
|
+
rl(u(m), {
|
|
3888
|
+
"nb-id": `${u(Se)}-calendar`,
|
|
3884
3889
|
value: ze.value,
|
|
3885
|
-
"input-type":
|
|
3886
|
-
min:
|
|
3887
|
-
max:
|
|
3888
|
-
step:
|
|
3889
|
-
disabled:
|
|
3890
|
+
"input-type": u(V),
|
|
3891
|
+
min: u(et),
|
|
3892
|
+
max: u(Ge),
|
|
3893
|
+
step: u(tt),
|
|
3894
|
+
disabled: u(_),
|
|
3890
3895
|
width: 350,
|
|
3891
|
-
locale:
|
|
3892
|
-
theme:
|
|
3893
|
-
"allow-range":
|
|
3894
|
-
onChanged:
|
|
3895
|
-
onDateSelected:
|
|
3896
|
+
locale: u(Ke),
|
|
3897
|
+
theme: u(Le),
|
|
3898
|
+
"allow-range": u(he),
|
|
3899
|
+
onChanged: aa,
|
|
3900
|
+
onDateSelected: na,
|
|
3896
3901
|
onMousedown: n[2] || (n[2] = (r) => T.value = !0),
|
|
3897
3902
|
onClick: n[3] || (n[3] = (r) => T.value = !0)
|
|
3898
3903
|
}, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "locale", "theme", "allow-range"])
|
|
@@ -3900,7 +3905,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3900
3905
|
]))
|
|
3901
3906
|
], 16)) : Be("", !0);
|
|
3902
3907
|
}
|
|
3903
|
-
}), ql = /* @__PURE__ */
|
|
3908
|
+
}), ql = /* @__PURE__ */ va(Ol, [["__scopeId", "data-v-0e19be2d"]]), Ea = {
|
|
3904
3909
|
NbInputRadio: fl,
|
|
3905
3910
|
NbInputCheckbox: yl,
|
|
3906
3911
|
NbInput: Tl,
|