@vlalg-nimbus/nb-inputs 8.0.11 → 8.0.13
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 +110 -110
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-inputs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCssVars as fa, onMounted as sa, ref as Q, toRefs as va, computed as a, watch as U, openBlock as O, createElementBlock as j, normalizeClass as Ne, normalizeStyle as We, createElementVNode as fe, mergeProps as da, Fragment as qa, renderList as ja, unref as n, withDirectives as pa, vModelRadio as al, withKeys as jt, withModifiers as ca, toDisplayString as St, createCommentVNode as Le, vModelCheckbox as ll, onUnmounted as ma, renderSlot as ia, createTextVNode as ga, vModelDynamic as Ha, vModelText as Ua, defineAsyncComponent as nl, nextTick as ya, createBlock as ol, Teleport as ul, createVNode as rl } from "vue";
|
|
2
2
|
const ba = (e, m) => {
|
|
3
3
|
const C = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
C[
|
|
4
|
+
for (const [P, I] of m)
|
|
5
|
+
C[P] = I;
|
|
6
6
|
return C;
|
|
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 ba = (e, m) => {
|
|
|
58
58
|
return !1;
|
|
59
59
|
let m = !1;
|
|
60
60
|
for (const C of e) {
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const P = Object.keys(C);
|
|
62
|
+
P.length !== 2 && (m = !0), P.every((xe) => ["value", "text"].includes(xe)) || (m = !0);
|
|
63
63
|
}
|
|
64
64
|
if (!m)
|
|
65
65
|
return e;
|
|
@@ -167,14 +167,14 @@ const ba = (e, m) => {
|
|
|
167
167
|
})), sa(() => {
|
|
168
168
|
Ze();
|
|
169
169
|
});
|
|
170
|
-
const C = m,
|
|
170
|
+
const C = m, P = e, I = Q(null), {
|
|
171
171
|
ariaLabel: xe,
|
|
172
172
|
ariaAttrs: ve,
|
|
173
173
|
currentOption: Te,
|
|
174
174
|
valueType: Se,
|
|
175
175
|
display: ie,
|
|
176
176
|
options: J,
|
|
177
|
-
theme:
|
|
177
|
+
theme: Ee,
|
|
178
178
|
lightTextColor: Be,
|
|
179
179
|
lightColor: le,
|
|
180
180
|
lightColorHover: G,
|
|
@@ -190,7 +190,7 @@ const ba = (e, m) => {
|
|
|
190
190
|
fontFamily: me,
|
|
191
191
|
fontSize: be,
|
|
192
192
|
fontWeight: he
|
|
193
|
-
} = va(
|
|
193
|
+
} = va(P), _ = a(() => {
|
|
194
194
|
const y = X.value ? "component-disabled" : "", S = ie.value !== "b" ? "inline-block" : "block", oe = me.value ? me.value : "'Lato', sans-serif", Z = be.value ? be.value : "1.6em", ge = he.value !== 0 && !he.value || he.value < 0 ? 200 : he.value, $e = [!1, !0].includes(K.value) ? K.value : !1, Ge = [!1, !0].includes(Ve.value) ? Ve.value : !1, ue = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, d = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, b = pe.value !== 0 && !pe.value || pe.value < 0 ? 1 : pe.value;
|
|
195
195
|
return {
|
|
196
196
|
disabled: y,
|
|
@@ -212,7 +212,7 @@ const ba = (e, m) => {
|
|
|
212
212
|
fontSize: y.fontSize,
|
|
213
213
|
fontWeight: y.fontWeight
|
|
214
214
|
};
|
|
215
|
-
}), _e = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), at = a(() =>
|
|
215
|
+
}), _e = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), at = a(() => Ee.value === "dark" ? "component__theme--dark" : "component__theme--light"), Je = a(() => _.value.font), lt = a(() => Be.value), gt = a(() => le.value), Xe = a(() => _.value.hoverEffect ? G.value : le.value), ke = a(() => _.value.activeHoverEffect ? G.value : le.value), Ce = a(() => R.value), yt = a(() => ne.value), nt = a(() => _.value.hoverEffect ? se.value : ne.value), st = a(() => _.value.activeHoverEffect ? se.value : ne.value), dt = a(() => {
|
|
216
216
|
const S = _.value.internalGap;
|
|
217
217
|
return !S || S < 0 ? 0 : `${S}px`;
|
|
218
218
|
}), ct = a(() => {
|
|
@@ -341,8 +341,8 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
341
341
|
return !1;
|
|
342
342
|
let m = !1;
|
|
343
343
|
for (const C of e) {
|
|
344
|
-
const
|
|
345
|
-
|
|
344
|
+
const P = Object.keys(C);
|
|
345
|
+
P.length !== 2 && (m = !0), P.every((xe) => ["value", "text"].includes(xe)) || (m = !0);
|
|
346
346
|
}
|
|
347
347
|
if (!m)
|
|
348
348
|
return e;
|
|
@@ -467,14 +467,14 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
467
467
|
})), sa(() => {
|
|
468
468
|
Ge();
|
|
469
469
|
});
|
|
470
|
-
const C = m,
|
|
470
|
+
const C = m, P = e, I = Q(null), {
|
|
471
471
|
ariaLabel: xe,
|
|
472
472
|
ariaAttrs: ve,
|
|
473
473
|
currentOption: Te,
|
|
474
474
|
display: Se,
|
|
475
475
|
options: ie,
|
|
476
476
|
theme: J,
|
|
477
|
-
lightTextColor:
|
|
477
|
+
lightTextColor: Ee,
|
|
478
478
|
lightColor: Be,
|
|
479
479
|
lightColorHover: le,
|
|
480
480
|
darkTextColor: G,
|
|
@@ -492,14 +492,14 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
492
492
|
fontFamily: he,
|
|
493
493
|
fontSize: _,
|
|
494
494
|
fontWeight: k
|
|
495
|
-
} = va(
|
|
496
|
-
const d = be.value ? "component-disabled" : "", b = Se.value !== "b" ? "inline-block" : "block", ce = he.value ? he.value : "'Lato', sans-serif", Y = _.value ? _.value : "1.6em", ee = k.value !== 0 && !k.value || k.value < 0 ? 200 : k.value, we = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, Re = [!1, !0].includes(K.value) ? K.value : !1,
|
|
495
|
+
} = va(P), L = a(() => {
|
|
496
|
+
const d = be.value ? "component-disabled" : "", b = Se.value !== "b" ? "inline-block" : "block", ce = he.value ? he.value : "'Lato', sans-serif", Y = _.value ? _.value : "1.6em", ee = k.value !== 0 && !k.value || k.value < 0 ? 200 : k.value, we = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, Re = [!1, !0].includes(K.value) ? K.value : !1, Pe = [!1, !0].includes(Ve.value) ? Ve.value : !1, Ke = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, et = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, ot = ["box", "circle"].includes(X.value) ? X.value : "box", ut = pe.value !== 0 && !pe.value || pe.value < 0 ? 1 : pe.value, ft = [!1, !0].includes(me.value) ? me.value : !1;
|
|
497
497
|
return {
|
|
498
498
|
disabled: d,
|
|
499
499
|
display: b,
|
|
500
500
|
boxRadius: we,
|
|
501
501
|
hoverEffect: Re,
|
|
502
|
-
activeHoverEffect:
|
|
502
|
+
activeHoverEffect: Pe,
|
|
503
503
|
itemGap: Ke,
|
|
504
504
|
internalGap: et,
|
|
505
505
|
scale: ut,
|
|
@@ -517,14 +517,14 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
517
517
|
fontSize: d.fontSize,
|
|
518
518
|
fontWeight: d.fontWeight
|
|
519
519
|
};
|
|
520
|
-
}), Je = a(() => Array.isArray(ie.value) && ie.value.constructor === Array && ie.value.length > 0), lt = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), gt = a(() => L.value.font), Xe = a(() =>
|
|
520
|
+
}), Je = a(() => Array.isArray(ie.value) && ie.value.constructor === Array && ie.value.length > 0), lt = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), gt = a(() => L.value.font), Xe = a(() => Ee.value), ke = a(() => Be.value), Ce = a(() => L.value.hoverEffect ? le.value : Be.value), yt = a(() => L.value.activeHoverEffect ? le.value : Be.value), nt = a(() => {
|
|
521
521
|
const d = L.value;
|
|
522
522
|
return d.activeHoverEffect && d.background ? `${le.value}80` : le.value;
|
|
523
523
|
}), st = a(() => G.value), dt = a(() => R.value), ct = a(() => L.value.hoverEffect ? ne.value : R.value), je = a(() => L.value.activeHoverEffect ? ne.value : R.value), He = a(() => {
|
|
524
524
|
const d = L.value;
|
|
525
525
|
return d.activeHoverEffect && d.background ? `${ne.value}80` : ne.value;
|
|
526
526
|
}), Ze = a(() => L.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ue = a(() => {
|
|
527
|
-
const d = L.value, b = J.value === "dark" ? G.value :
|
|
527
|
+
const d = L.value, b = J.value === "dark" ? G.value : Ee.value;
|
|
528
528
|
return d.background ? "#ffffff" : b;
|
|
529
529
|
});
|
|
530
530
|
a(() => L.value.background ? "19px" : "auto");
|
|
@@ -1057,7 +1057,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1057
1057
|
"4152281b": na.value,
|
|
1058
1058
|
"952215b4": oa.value,
|
|
1059
1059
|
"5110540e": ua.value,
|
|
1060
|
-
"03e4b02e":
|
|
1060
|
+
"03e4b02e": Pt.value,
|
|
1061
1061
|
d28271e8: la.value,
|
|
1062
1062
|
df28af0e: n(ge),
|
|
1063
1063
|
"1484e2a6": Ct.value,
|
|
@@ -1072,7 +1072,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1072
1072
|
}), ma(() => {
|
|
1073
1073
|
bt();
|
|
1074
1074
|
});
|
|
1075
|
-
const C = m,
|
|
1075
|
+
const C = m, P = e, {
|
|
1076
1076
|
nbId: I,
|
|
1077
1077
|
display: xe,
|
|
1078
1078
|
hasTabIndexEnter: ve,
|
|
@@ -1080,7 +1080,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1080
1080
|
ariaAttrs: Se,
|
|
1081
1081
|
textColor: ie,
|
|
1082
1082
|
caretColor: J,
|
|
1083
|
-
selectionBgColor:
|
|
1083
|
+
selectionBgColor: Ee,
|
|
1084
1084
|
selectionTextColor: Be,
|
|
1085
1085
|
hasBorderRadius: le,
|
|
1086
1086
|
borderRadius: G,
|
|
@@ -1133,7 +1133,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1133
1133
|
iconBorderRadius: ee,
|
|
1134
1134
|
iconLightTextColor: we,
|
|
1135
1135
|
iconDarkTextColor: Re,
|
|
1136
|
-
iconLightBgColor:
|
|
1136
|
+
iconLightBgColor: Pe,
|
|
1137
1137
|
iconDarkBgColor: Ke,
|
|
1138
1138
|
iconLightBgColorActive: et,
|
|
1139
1139
|
iconDarkBgColorActive: ot,
|
|
@@ -1157,8 +1157,8 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1157
1157
|
lightTextColorLabelActive: W,
|
|
1158
1158
|
darkTextColorLabel: wt,
|
|
1159
1159
|
darkTextColorLabelActive: Rt
|
|
1160
|
-
} = va(
|
|
1161
|
-
const o = R.value ? "component-disabled" : "", p = xe.value !== "b" ? "inline-block" : "block", w = ie ? ie.value : "ffffff", Ye = J.value ? J.value : "", Qe =
|
|
1160
|
+
} = va(P), Me = Q(""), vt = Q(""), it = Q(!1), pt = Q(!1), B = a(() => {
|
|
1161
|
+
const o = R.value ? "component-disabled" : "", p = xe.value !== "b" ? "inline-block" : "block", w = ie ? ie.value : "ffffff", Ye = J.value ? J.value : "", Qe = Ee.value ? Ee.value : "", t = Be.value ? Be.value : "", l = le.value ? le.value : !1, s = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, i = ne.value ? ne.value : "'Lato', sans-serif", f = se.value ? se.value : null, c = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, v = Ve.value ? Ve.value : "'Lato', sans-serif", x = de.value ? de.value : "1em", A = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, D = pe.value ? pe.value : "#f15574", q = X.value ? X.value : 200, re = be.value ? be.value : "normal", ze = he.value ? he.value : "xs", tt = _.value ? _.value : !1, De = k.value ? k.value : !1, Ie = L.value ? L.value : "text", ha = qe.value ? qe.value : !1, Ca = lt.value ? lt.value : "normal", xa = ge.value ? ge.value : "left", Sa = me.value ? me.value : "background", Va = b.value ? b.value : "5px 10px", ka = Y.value ? Y.value : "0", La = ce.value ? ce.value : 10, Ta = we.value ? we.value : "#000000", Ba = Re.value ? Re.value : "#000000", Aa = Pe.value ? Pe.value : "transparent", _a = Ke.value ? Ke.value : "transparent", $a = ee.value !== 0 && !ee.value || ee.value < 0 ? 0 : ee.value, wa = et.value ? et.value : "transparent", Ra = ot.value ? ot.value : "transparent", Ma = h.value ? h.value : 32, za = M.value ? M.value : 1, Da = V.value ? V.value : !1, Ia = Vt.value !== 0 && !Vt.value || Vt.value < 0 ? 5 : Vt.value, Na = Fe.value ? Fe.value : "transparent", Wa = kt.value !== 0 && !kt.value || kt.value < 0 ? 15 : kt.value, Ea = T.value ? T.value : "1px 5px", Pa = ye.value !== 0 && !ye.value || ye.value < 0 ? 0 : ye.value, Fa = rt.value === null || rt.value === void 0 ? -13 : rt.value, Ga = H.value === null || H.value === void 0 ? -10 : H.value, Ka = N.value ? N.value : "'Lato', sans-serif", Ya = te.value ? te.value : "1em", Qa = $.value ? $.value : "0.8em", Ja = z.value ? z.value : 400, Xa = ae.value ? ae.value : "#ffffff", Za = wt.value ? wt.value : "#000000", el = W.value ? W.value : "#ffffff", tl = Rt.value ? Rt.value : "#000000";
|
|
1162
1162
|
return {
|
|
1163
1163
|
disabled: o,
|
|
1164
1164
|
display: p,
|
|
@@ -1199,8 +1199,8 @@ 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:
|
|
1203
|
-
labelBorderRadius:
|
|
1202
|
+
labelPadding: Ea,
|
|
1203
|
+
labelBorderRadius: Pa,
|
|
1204
1204
|
labelLeft: Ia,
|
|
1205
1205
|
inputLabelMarginActive: Wa,
|
|
1206
1206
|
labelActiveTop: Fa,
|
|
@@ -1233,7 +1233,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1233
1233
|
}
|
|
1234
1234
|
return p;
|
|
1235
1235
|
}), Ht = a(() => {
|
|
1236
|
-
const o = B.value, p =
|
|
1236
|
+
const o = B.value, p = Et.value;
|
|
1237
1237
|
return {
|
|
1238
1238
|
fontWeight: o.fontWeight,
|
|
1239
1239
|
marginTop: p && V.value ? `${o.inputLabelMarginActive}px` : "0"
|
|
@@ -1291,10 +1291,10 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1291
1291
|
default:
|
|
1292
1292
|
return "component__theme--light";
|
|
1293
1293
|
}
|
|
1294
|
-
}),
|
|
1294
|
+
}), E = a(() => B.value.inputReadonly ? "component__input--read-only" : ""), Oe = a(() => B.value.inputUppercase ? "component__input--uppercase" : ""), Nt = a(() => {
|
|
1295
1295
|
const o = B.value;
|
|
1296
1296
|
return !!(o.showInputEye && o.inputType === "password");
|
|
1297
|
-
}), Xt = a(() => it.value ? gt.value : ke.value), ht = a(() => _e.value ? _e.value : `${I.value}-name-label`), Wt = a(() => V.value ? pt.value ? at.value : "" : at.value),
|
|
1297
|
+
}), Xt = a(() => it.value ? gt.value : ke.value), ht = a(() => _e.value ? _e.value : `${I.value}-name-label`), Wt = a(() => V.value ? pt.value ? at.value : "" : at.value), Et = a(() => pt.value || Me.value && Me.value.trim().length > 0), Zt = a(() => B.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), ea = a(() => pt.value ? "component__input--active" : "component__input--no-active"), Ct = a(() => Nt.value ? "6px 50px 6px 10px" : "6px 10px"), ta = a(() => !!($e.value && Ge.value)), aa = a(() => {
|
|
1298
1298
|
const o = {};
|
|
1299
1299
|
Se.value && Object.keys(Se.value).forEach((Ye) => o[`aria-${Ye}`] = Se.value[Ye]);
|
|
1300
1300
|
const p = {
|
|
@@ -1314,14 +1314,14 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1314
1314
|
}), ra = a(() => {
|
|
1315
1315
|
const o = B.value;
|
|
1316
1316
|
return ue.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
|
|
1317
|
-
}),
|
|
1317
|
+
}), Pt = a(() => {
|
|
1318
1318
|
const o = B.value;
|
|
1319
1319
|
return ue.value ? `${o.iconBorderRadius}rem` : "0";
|
|
1320
1320
|
}), Ft = a(() => {
|
|
1321
1321
|
const o = B.value;
|
|
1322
1322
|
return ue.value ? d.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
|
|
1323
1323
|
}), Ot = a(() => {
|
|
1324
|
-
const o = B.value, p =
|
|
1324
|
+
const o = B.value, p = Et.value, w = p ? o.lightTextColorLabelActive : o.lightTextColorLabel, Ye = p ? o.darkTextColorLabelActive : o.darkTextColorLabel;
|
|
1325
1325
|
return {
|
|
1326
1326
|
fontFamily: o.fontFamilyLabel,
|
|
1327
1327
|
fontSize: p ? o.fontSizeLabelActive : o.fontSizeLabel,
|
|
@@ -1378,7 +1378,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1378
1378
|
}, aa.value), [
|
|
1379
1379
|
fe("div", {
|
|
1380
1380
|
id: n(I),
|
|
1381
|
-
class: Ne(["nb-reset", "component", u.value, g.value,
|
|
1381
|
+
class: Ne(["nb-reset", "component", u.value, g.value, E.value, It.value]),
|
|
1382
1382
|
style: We([Ht.value, Lt.value, mt.value]),
|
|
1383
1383
|
onClick: xt
|
|
1384
1384
|
}, [
|
|
@@ -1806,7 +1806,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1806
1806
|
})), sa(() => {
|
|
1807
1807
|
G.value.length > 0 && (H.value = G.value);
|
|
1808
1808
|
});
|
|
1809
|
-
const C = m,
|
|
1809
|
+
const C = m, P = e, {
|
|
1810
1810
|
nbId: I,
|
|
1811
1811
|
display: xe,
|
|
1812
1812
|
textColor: ve,
|
|
@@ -1814,7 +1814,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1814
1814
|
paddingY: Se,
|
|
1815
1815
|
borderRadius: ie,
|
|
1816
1816
|
disabled: J,
|
|
1817
|
-
fontFamily:
|
|
1817
|
+
fontFamily: Ee,
|
|
1818
1818
|
fontSize: Be,
|
|
1819
1819
|
fontWeight: le,
|
|
1820
1820
|
currentList: G,
|
|
@@ -1867,7 +1867,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1867
1867
|
labelPadding: ee,
|
|
1868
1868
|
labelBorderRadius: we,
|
|
1869
1869
|
labelLeft: Re,
|
|
1870
|
-
inputLabelMarginActive:
|
|
1870
|
+
inputLabelMarginActive: Pe,
|
|
1871
1871
|
labelActiveTop: Ke,
|
|
1872
1872
|
labelActiveLeft: et,
|
|
1873
1873
|
fontFamilyLabel: ot,
|
|
@@ -1878,12 +1878,12 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1878
1878
|
lightTextColorLabelActive: V,
|
|
1879
1879
|
darkTextColorLabel: Fe,
|
|
1880
1880
|
darkTextColorLabelActive: T
|
|
1881
|
-
} = va(
|
|
1882
|
-
const u = J.value ? "component-disabled" : "", g = xe.value !== "b" ? "inline-block" : "block",
|
|
1881
|
+
} = va(P), ye = Q(""), Vt = Q(null), kt = Q(null), rt = Q(null), H = Q([]), N = Q(!1), te = a(() => {
|
|
1882
|
+
const u = J.value ? "component-disabled" : "", g = xe.value !== "b" ? "inline-block" : "block", E = !Ve.value || Ve.value < 185 ? 185 : Ve.value, Oe = ve ? ve.value : "ffffff", Nt = Ge.value ? Ge.value : "", Xt = ue.value ? ue.value : "", ht = d.value ? d.value : "", Wt = Te.value !== 0 && !Te.value || Te.value < 0 ? 1 : Te.value, Et = Se.value !== 0 && !Se.value || Se.value < 0 ? 0.2 : Se.value, Zt = ie.value !== 0 && !ie.value || ie.value < 0 ? 0 : ie.value, ea = Ee.value ? Ee.value : "'Lato', sans-serif", Ct = Be.value ? Be.value : "1.4em", ta = le.value !== 0 && !le.value || le.value < 0 ? 100 : le.value, aa = ne.value !== 0 && !ne.value || ne.value < 0 ? 0 : ne.value, la = se.value !== 0 && !se.value || se.value < 0 ? 10 : se.value, na = !K.value || !["top", "bottom"].includes(K.value) ? "bottom" : K.value, $t = !Ae.value || !["background", "line", "border"].includes(Ae.value) ? "background" : Ae.value, oa = L.value ? L.value : "light", ua = b.value ? b.value : !1, ra = Re.value !== 0 && !Re.value || Re.value < 0 ? 5 : Re.value, Pt = Y.value ? Y.value : "transparent", Ft = Pe.value !== 0 && !Pe.value || Pe.value < 0 ? 15 : Pe.value, Ot = ee.value ? ee.value : "1px 5px", bt = we.value !== 0 && !we.value || we.value < 0 ? 0 : we.value, Tt = Ke.value === null || Ke.value === void 0 ? 13 : Ke.value, xt = et.value === null || et.value === void 0 ? 5 : et.value, qt = ot.value ? ot.value : "'Lato', sans-serif", o = ut.value ? ut.value : "1em", p = ft.value ? ft.value : "0.8em", w = h.value ? h.value : 400, Ye = M.value ? M.value : "#333333", Qe = Fe.value ? Fe.value : "#ffffff", t = V.value ? V.value : "#333333", l = T.value ? T.value : "#ffffff";
|
|
1883
1883
|
return {
|
|
1884
1884
|
disabled: u,
|
|
1885
1885
|
display: g,
|
|
1886
|
-
width:
|
|
1886
|
+
width: E,
|
|
1887
1887
|
font: ea,
|
|
1888
1888
|
fontSize: Ct,
|
|
1889
1889
|
fontWeight: ta,
|
|
@@ -1892,7 +1892,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1892
1892
|
selectionBgColor: Xt,
|
|
1893
1893
|
selectionTextColor: ht,
|
|
1894
1894
|
paddingX: Wt,
|
|
1895
|
-
paddingY:
|
|
1895
|
+
paddingY: Et,
|
|
1896
1896
|
borderRadius: Zt,
|
|
1897
1897
|
minChips: aa,
|
|
1898
1898
|
maxChips: la,
|
|
@@ -1901,7 +1901,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1901
1901
|
theme: oa,
|
|
1902
1902
|
showLabel: ua,
|
|
1903
1903
|
labelLeft: ra,
|
|
1904
|
-
labelBackground:
|
|
1904
|
+
labelBackground: Pt,
|
|
1905
1905
|
inputLabelMarginActive: Ft,
|
|
1906
1906
|
labelPadding: Ot,
|
|
1907
1907
|
labelBorderRadius: bt,
|
|
@@ -1956,7 +1956,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1956
1956
|
...u
|
|
1957
1957
|
};
|
|
1958
1958
|
return Object.fromEntries(
|
|
1959
|
-
Object.entries(g).filter(([
|
|
1959
|
+
Object.entries(g).filter(([E, Oe]) => Oe != null)
|
|
1960
1960
|
);
|
|
1961
1961
|
}), B = a(() => {
|
|
1962
1962
|
const u = te.value;
|
|
@@ -1978,12 +1978,12 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1978
1978
|
};
|
|
1979
1979
|
return u.display === "block" ? { width: "auto" } : g;
|
|
1980
1980
|
}), At = a(() => de.value ? de.value : `${I.value}-name-label`), _t = a(() => N.value || H.value.length > 0 || ye.value && ye.value.trim().length > 0), Dt = a(() => b.value ? N.value || H.value.length > 0 ? F.value : "" : F.value), Ut = a(() => {
|
|
1981
|
-
const u = te.value, g = _t.value,
|
|
1981
|
+
const u = te.value, g = _t.value, E = g ? u.lightTextColorLabelActive : u.lightTextColorLabel, Oe = g ? u.darkTextColorLabelActive : u.darkTextColorLabel;
|
|
1982
1982
|
return {
|
|
1983
1983
|
fontFamily: u.fontFamilyLabel,
|
|
1984
1984
|
fontSize: g ? u.fontSizeLabelActive : u.fontSizeLabel,
|
|
1985
1985
|
fontWeight: u.fontWeightLabel,
|
|
1986
|
-
color: u.theme === "dark" ? Oe :
|
|
1986
|
+
color: u.theme === "dark" ? Oe : E,
|
|
1987
1987
|
top: g ? `${u.labelActiveTop}px` : "50%",
|
|
1988
1988
|
left: g ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
|
|
1989
1989
|
transform: g ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -2054,20 +2054,20 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2054
2054
|
ref: rt,
|
|
2055
2055
|
class: "chips"
|
|
2056
2056
|
}, [
|
|
2057
|
-
(O(!0), j(qa, null, ja(H.value, (
|
|
2058
|
-
key:
|
|
2057
|
+
(O(!0), j(qa, null, ja(H.value, (E) => (O(), j("div", {
|
|
2058
|
+
key: E,
|
|
2059
2059
|
class: "chip"
|
|
2060
2060
|
}, [
|
|
2061
2061
|
ia(u.$slots, "chip", {
|
|
2062
2062
|
chips: H.value,
|
|
2063
|
-
chip:
|
|
2063
|
+
chip: E,
|
|
2064
2064
|
removeChip: r
|
|
2065
2065
|
}, () => [
|
|
2066
|
-
fe("span", _l, St(
|
|
2066
|
+
fe("span", _l, St(E), 1),
|
|
2067
2067
|
!n(J) && !n(X) ? (O(), j("span", {
|
|
2068
2068
|
key: 0,
|
|
2069
2069
|
class: "chip-remove",
|
|
2070
|
-
onClick: (Oe) => r(
|
|
2070
|
+
onClick: (Oe) => r(E)
|
|
2071
2071
|
}, "×", 8, $l)) : Le("", !0)
|
|
2072
2072
|
], !0)
|
|
2073
2073
|
]))), 128))
|
|
@@ -2076,7 +2076,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2076
2076
|
ref_key: "chipInput",
|
|
2077
2077
|
ref: kt,
|
|
2078
2078
|
type: "text",
|
|
2079
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
2079
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => ye.value = E),
|
|
2080
2080
|
id: At.value,
|
|
2081
2081
|
name: At.value,
|
|
2082
2082
|
placeholder: Dt.value,
|
|
@@ -2086,7 +2086,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2086
2086
|
tabindex: n(J) || n(X) ? -1 : n(oe),
|
|
2087
2087
|
class: Ne(["chips-input", wt.value]),
|
|
2088
2088
|
style: We([Bt.value, Ht.value]),
|
|
2089
|
-
onKeydown: g[1] || (g[1] = jt((
|
|
2089
|
+
onKeydown: g[1] || (g[1] = jt((E) => !n(J) && n(Z) && Lt(E), ["enter"])),
|
|
2090
2090
|
onFocus: Qt,
|
|
2091
2091
|
onBlur: Jt
|
|
2092
2092
|
}, null, 46, wl), [
|
|
@@ -2492,7 +2492,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2492
2492
|
}), ma(() => {
|
|
2493
2493
|
Qt();
|
|
2494
2494
|
});
|
|
2495
|
-
const C = m,
|
|
2495
|
+
const C = m, P = e, {
|
|
2496
2496
|
nbId: I,
|
|
2497
2497
|
display: xe,
|
|
2498
2498
|
hasTabIndexEnter: ve,
|
|
@@ -2500,7 +2500,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2500
2500
|
ariaAttrs: Se,
|
|
2501
2501
|
textColor: ie,
|
|
2502
2502
|
caretColor: J,
|
|
2503
|
-
selectionBgColor:
|
|
2503
|
+
selectionBgColor: Ee,
|
|
2504
2504
|
selectionTextColor: Be,
|
|
2505
2505
|
hasBorderRadius: le,
|
|
2506
2506
|
borderRadius: G,
|
|
@@ -2553,7 +2553,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2553
2553
|
rows: ee,
|
|
2554
2554
|
cols: we,
|
|
2555
2555
|
maxlength: Re,
|
|
2556
|
-
minlength:
|
|
2556
|
+
minlength: Pe,
|
|
2557
2557
|
wrap: Ke,
|
|
2558
2558
|
spellcheck: et,
|
|
2559
2559
|
autofocus: ot,
|
|
@@ -2561,20 +2561,20 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2561
2561
|
autoResize: ft,
|
|
2562
2562
|
minRows: h,
|
|
2563
2563
|
maxRows: M
|
|
2564
|
-
} = va(
|
|
2565
|
-
const r = R.value ? "component-disabled" : "", u = xe.value !== "b" ? "inline-block" : "block", g = ie ? ie.value : "ffffff",
|
|
2564
|
+
} = va(P), V = Q(""), Fe = Q(!1), T = a(() => {
|
|
2565
|
+
const r = R.value ? "component-disabled" : "", u = xe.value !== "b" ? "inline-block" : "block", g = ie ? ie.value : "ffffff", E = J.value ? J.value : "", Oe = Ee.value ? Ee.value : "", Nt = Be.value ? Be.value : "", Xt = le.value ? le.value : !1, ht = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, Wt = ne.value ? ne.value : "'Lato', sans-serif", Et = se.value ? se.value : "1.4em", Zt = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, ea = Ve.value ? Ve.value : "'Lato', sans-serif", Ct = de.value ? de.value : "1em", ta = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, aa = pe.value ? pe.value : "#f15574", la = X.value ? X.value : 200, na = be.value ? be.value : "normal", $t = he.value ? he.value : !1, oa = k.value ? k.value : !1, ua = _e.value ? _e.value : "normal", ra = st.value ? st.value : "left", Pt = me.value ? me.value : "background", Ft = je.value ? je.value : !1, Ot = y.value !== 0 && !y.value || y.value < 0 ? 5 : y.value, bt = He.value ? He.value : "transparent", Tt = S.value !== 0 && !S.value || S.value < 0 ? 15 : S.value, xt = Ze.value ? Ze.value : "1px 5px", qt = Ue.value !== 0 && !Ue.value || Ue.value < 0 ? 0 : Ue.value, o = oe.value === null || oe.value === void 0 ? -13 : oe.value, p = Z.value === null || Z.value === void 0 ? -10 : Z.value, w = ge.value ? ge.value : "'Lato', sans-serif", Ye = $e.value ? $e.value : "1em", Qe = Ge.value ? Ge.value : "0.8em", t = ue.value ? ue.value : 400, l = d.value ? d.value : "#ffffff", s = ce.value ? ce.value : "#000000", i = b.value ? b.value : "#ffffff", f = Y.value ? Y.value : "#000000", c = ee.value && ee.value > 0 ? ee.value : 2, v = we.value && we.value > 0 ? we.value : 20, x = Re.value !== null && Re.value >= 0 ? Re.value : null, A = Pe.value !== null && Pe.value >= 0 ? Pe.value : null, D = Ke.value && ["soft", "hard", "off"].includes(Ke.value) ? Ke.value : "soft", q = et.value !== void 0 ? et.value : "default", re = ot.value !== void 0 ? ot.value : !1, ze = ut.value && ["none", "both", "vertical", "horizontal"].includes(ut.value) ? ut.value : "vertical", tt = ft.value !== void 0 ? ft.value : !1, De = h.value !== null && h.value > 0 ? h.value : null, Ie = M.value !== null && M.value > 0 ? M.value : null;
|
|
2566
2566
|
return {
|
|
2567
2567
|
disabled: r,
|
|
2568
2568
|
display: u,
|
|
2569
2569
|
font: Wt,
|
|
2570
|
-
fontSize:
|
|
2570
|
+
fontSize: Et,
|
|
2571
2571
|
fontWeight: Zt,
|
|
2572
2572
|
fontFamilyMsg: ea,
|
|
2573
2573
|
fontSizeMsg: Ct,
|
|
2574
2574
|
fontWeightMsg: ta,
|
|
2575
2575
|
textMessageColor: aa,
|
|
2576
2576
|
textColor: g,
|
|
2577
|
-
caretColor:
|
|
2577
|
+
caretColor: E,
|
|
2578
2578
|
selectionBgColor: Oe,
|
|
2579
2579
|
selectionTextColor: Nt,
|
|
2580
2580
|
hasBorderRadius: Xt,
|
|
@@ -2585,7 +2585,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2585
2585
|
inputReadonly: $t,
|
|
2586
2586
|
inputUppercase: oa,
|
|
2587
2587
|
theme: ua,
|
|
2588
|
-
inputStyle:
|
|
2588
|
+
inputStyle: Pt,
|
|
2589
2589
|
showLabel: Ft,
|
|
2590
2590
|
labelBackground: bt,
|
|
2591
2591
|
labelPadding: xt,
|
|
@@ -2671,22 +2671,22 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2671
2671
|
a(() => Fe.value ? "component__input--active" : "component__input--no-active");
|
|
2672
2672
|
const At = a(() => "6px 10px"), _t = a(() => !!(dt.value && ct.value)), Dt = a(() => {
|
|
2673
2673
|
const r = {};
|
|
2674
|
-
Se.value && Object.keys(Se.value).forEach((
|
|
2674
|
+
Se.value && Object.keys(Se.value).forEach((E) => r[`aria-${E}`] = Se.value[E]);
|
|
2675
2675
|
const u = {
|
|
2676
2676
|
"aria-label": Te.value,
|
|
2677
2677
|
"aria-disabled": R.value,
|
|
2678
2678
|
...r
|
|
2679
2679
|
};
|
|
2680
2680
|
return Object.fromEntries(
|
|
2681
|
-
Object.entries(u).filter(([g,
|
|
2681
|
+
Object.entries(u).filter(([g, E]) => E != null)
|
|
2682
2682
|
);
|
|
2683
2683
|
}), Ut = a(() => {
|
|
2684
|
-
const r = T.value, u = mt.value, g = u ? r.lightTextColorLabelActive : r.lightTextColorLabel,
|
|
2684
|
+
const r = T.value, u = mt.value, g = u ? r.lightTextColorLabelActive : r.lightTextColorLabel, E = u ? r.darkTextColorLabelActive : r.darkTextColorLabel;
|
|
2685
2685
|
return {
|
|
2686
2686
|
fontFamily: r.fontFamilyLabel,
|
|
2687
2687
|
fontSize: u ? r.fontSizeLabelActive : r.fontSizeLabel,
|
|
2688
2688
|
fontWeight: r.fontWeightLabel,
|
|
2689
|
-
color: r.theme === "dark" ?
|
|
2689
|
+
color: r.theme === "dark" ? E : g,
|
|
2690
2690
|
top: u ? `${r.labelActiveTop}px` : "50%",
|
|
2691
2691
|
left: u ? `${r.labelActiveLeft}px` : `${r.labelLeft}px`,
|
|
2692
2692
|
transform: u ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -2786,7 +2786,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2786
2786
|
], 16)) : Le("", !0);
|
|
2787
2787
|
}
|
|
2788
2788
|
}), Wl = /* @__PURE__ */ ba(Nl, [["__scopeId", "data-v-32c2ea2a"]]);
|
|
2789
|
-
const
|
|
2789
|
+
const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Ol = /* @__PURE__ */ Object.assign({
|
|
2790
2790
|
name: "NbDatePicker",
|
|
2791
2791
|
inheritAttrs: !1
|
|
2792
2792
|
}, {
|
|
@@ -3128,29 +3128,29 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3128
3128
|
],
|
|
3129
3129
|
setup(e, { emit: m }) {
|
|
3130
3130
|
fa((t) => ({
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3135
|
-
"
|
|
3136
|
-
"
|
|
3137
|
-
"
|
|
3138
|
-
|
|
3139
|
-
"
|
|
3140
|
-
"
|
|
3141
|
-
"
|
|
3142
|
-
"
|
|
3143
|
-
"
|
|
3144
|
-
"
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
"
|
|
3148
|
-
|
|
3149
|
-
"
|
|
3150
|
-
"
|
|
3151
|
-
"
|
|
3152
|
-
"
|
|
3153
|
-
"
|
|
3131
|
+
"3789b3cf": pt.value,
|
|
3132
|
+
af1129be: Me.value,
|
|
3133
|
+
"49d88d80": n(He),
|
|
3134
|
+
"19fd8ab1": mt.value,
|
|
3135
|
+
"2d5fcf43": At.value,
|
|
3136
|
+
"28b19bca": _t.value,
|
|
3137
|
+
"7f3fa840": n(S),
|
|
3138
|
+
"0b8f862c": n(y),
|
|
3139
|
+
"4db31370": n(Ze),
|
|
3140
|
+
"38b952fe": Bt.value,
|
|
3141
|
+
"6d42c920": n(Ue),
|
|
3142
|
+
"8d84a0b4": Nt.value,
|
|
3143
|
+
"444a8cd2": Xt.value,
|
|
3144
|
+
"8e08e8e8": n(je),
|
|
3145
|
+
"57c448b0": n(dt),
|
|
3146
|
+
"0e0f9210": n(ct),
|
|
3147
|
+
"0c809e58": n(oe),
|
|
3148
|
+
c095a732: g.value,
|
|
3149
|
+
"0c246590": B.value,
|
|
3150
|
+
"10f9b177": Mt.value,
|
|
3151
|
+
"225782e0": zt.value,
|
|
3152
|
+
"73b791ba": Ht.value,
|
|
3153
|
+
"23bcf060": t.styleButtonColor
|
|
3154
3154
|
}));
|
|
3155
3155
|
const C = nl(
|
|
3156
3156
|
() => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
|
|
@@ -3160,14 +3160,14 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3160
3160
|
}), ma(() => {
|
|
3161
3161
|
Wt();
|
|
3162
3162
|
});
|
|
3163
|
-
const
|
|
3163
|
+
const P = m, I = e, {
|
|
3164
3164
|
nbId: xe,
|
|
3165
3165
|
display: ve,
|
|
3166
3166
|
hasTabIndexEnter: Te,
|
|
3167
3167
|
ariaLabel: Se,
|
|
3168
3168
|
ariaAttrs: ie,
|
|
3169
3169
|
caretColor: J,
|
|
3170
|
-
selectionBgColor:
|
|
3170
|
+
selectionBgColor: Ee,
|
|
3171
3171
|
selectionTextColor: Be,
|
|
3172
3172
|
hasBorderRadius: le,
|
|
3173
3173
|
borderRadius: G,
|
|
@@ -3220,7 +3220,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3220
3220
|
labelActiveLeft: ee,
|
|
3221
3221
|
fontFamilyLabel: we,
|
|
3222
3222
|
fontSizeLabel: Re,
|
|
3223
|
-
fontSizeLabelActive:
|
|
3223
|
+
fontSizeLabelActive: Pe,
|
|
3224
3224
|
fontWeightLabel: Ke,
|
|
3225
3225
|
lightTextColorLabel: et,
|
|
3226
3226
|
lightTextColorLabelActive: ot,
|
|
@@ -3392,7 +3392,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3392
3392
|
}
|
|
3393
3393
|
return i;
|
|
3394
3394
|
}, N = Q(!1), te = Q({ top: 0, left: 0 }), $ = Q(null), z = Q(null), ae = a(() => gt.value === !0), W = a(() => {
|
|
3395
|
-
const t = R.value ? "component-disabled" : "", l = ve.value !== "b" ? "inline-block" : "block", s = J.value ? J.value : "", i =
|
|
3395
|
+
const t = R.value ? "component-disabled" : "", l = ve.value !== "b" ? "inline-block" : "block", s = J.value ? J.value : "", i = Ee.value ? Ee.value : "", f = Be.value ? Be.value : "", c = le.value ? le.value : !1, v = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, x = ne.value ? ne.value : "'Lato', sans-serif", A = se.value ? se.value : "1.4em", D = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, q = Ve.value ? Ve.value : "'Lato', sans-serif", re = de.value ? de.value : "1em", ze = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, tt = pe.value ? pe.value : "#f15574", De = X.value ? X.value : 200, Ie = be.value ? be.value : "normal", ha = "sm", Ca = _.value ? _.value : !1, xa = k.value ? k.value : "date", Sa = Ae.value ? Ae.value : !1, Va = ke.value ? ke.value : "normal", ka = oe.value ? oe.value : "left", La = me.value ? me.value : "background", Ta = $e.value ? $e.value : !1, Ba = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Aa = Ge.value ? Ge.value : "transparent", _a = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, $a = ue.value ? ue.value : "1px 5px", wa = d.value !== 0 && !d.value || d.value < 0 ? 0 : d.value, Ra = Y.value === null || Y.value === void 0 ? -13 : Y.value, Ma = ee.value === null || ee.value === void 0 ? -10 : ee.value, za = we.value ? we.value : "'Lato', sans-serif", Da = Re.value ? Re.value : "1em", Ia = Pe.value ? Pe.value : "0.8em", Na = Ke.value ? Ke.value : 400, Wa = et.value ? et.value : "#ffffff", Ea = ut.value ? ut.value : "#000000", Pa = ot.value ? ot.value : "#ffffff", Fa = ft.value ? ft.value : "#000000";
|
|
3396
3396
|
return {
|
|
3397
3397
|
disabled: t,
|
|
3398
3398
|
display: l,
|
|
@@ -3430,8 +3430,8 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3430
3430
|
fontSizeLabelActive: Ia,
|
|
3431
3431
|
fontWeightLabel: Na,
|
|
3432
3432
|
lightTextColorLabel: Wa,
|
|
3433
|
-
darkTextColorLabel:
|
|
3434
|
-
lightTextColorLabelActive:
|
|
3433
|
+
darkTextColorLabel: Ea,
|
|
3434
|
+
lightTextColorLabelActive: Pa,
|
|
3435
3435
|
darkTextColorLabelActive: Fa
|
|
3436
3436
|
};
|
|
3437
3437
|
}), wt = a(() => W.value.disabled), Rt = a(() => ({
|
|
@@ -3489,7 +3489,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3489
3489
|
}
|
|
3490
3490
|
}), Qt = a(() => W.value.inputReadonly ? "component__input--read-only" : ""), Jt = a(() => W.value.inputUppercase ? "component__input--uppercase" : ""), Lt = a(() => qe.value ? qe.value : `${xe.value}-name-label`), It = a(() => ""), r = a(() => T.value || M.value && M.value.trim().length > 0), u = a(() => !M.value || M.value.trim().length === 0 ? "component__input--empty" : "");
|
|
3491
3491
|
a(() => T.value ? "component__input--active" : "component__input--no-active");
|
|
3492
|
-
const g = a(() => "6px 10px"),
|
|
3492
|
+
const g = a(() => "6px 10px"), E = a(() => !!(Z.value && ge.value)), Oe = a(() => {
|
|
3493
3493
|
const t = {};
|
|
3494
3494
|
ie.value && Object.keys(ie.value).forEach((i) => t[`aria-${i}`] = ie.value[i]);
|
|
3495
3495
|
const l = {
|
|
@@ -3528,14 +3528,14 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3528
3528
|
});
|
|
3529
3529
|
const Wt = () => {
|
|
3530
3530
|
h.value = _e.value, Fe.value = k.value;
|
|
3531
|
-
},
|
|
3532
|
-
|
|
3531
|
+
}, Et = () => {
|
|
3532
|
+
P("clicked");
|
|
3533
3533
|
}, Zt = (t) => {
|
|
3534
3534
|
t.stopPropagation(), !(R.value || W.value.inputReadonly) && $.value && ($.value.focus(), ae.value && (N.value = !1, requestAnimationFrame(() => {
|
|
3535
3535
|
Ct(), N.value = !0;
|
|
3536
3536
|
})));
|
|
3537
3537
|
}, ea = () => {
|
|
3538
|
-
R.value || W.value.inputReadonly || !Te.value ||
|
|
3538
|
+
R.value || W.value.inputReadonly || !Te.value || P("entered", h.value);
|
|
3539
3539
|
}, Ct = () => {
|
|
3540
3540
|
$.value && ya(() => {
|
|
3541
3541
|
const t = $.value.getBoundingClientRect(), l = 4;
|
|
@@ -3550,7 +3550,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3550
3550
|
left: te.value.left,
|
|
3551
3551
|
zIndex: yt.value
|
|
3552
3552
|
})), aa = () => {
|
|
3553
|
-
T.value = !0,
|
|
3553
|
+
T.value = !0, P("focused"), ae.value && (N.value = !1, requestAnimationFrame(() => {
|
|
3554
3554
|
Ct(), N.value = !0;
|
|
3555
3555
|
}));
|
|
3556
3556
|
}, la = (t) => {
|
|
@@ -3567,7 +3567,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
3569
3569
|
const s = (i = $.value) == null ? void 0 : i.closest(".component");
|
|
3570
|
-
s && s.contains(l) || $.value !== l && (T.value = !1, N.value = !1,
|
|
3570
|
+
s && s.contains(l) || $.value !== l && (T.value = !1, N.value = !1, P("blurred"));
|
|
3571
3571
|
}, 200);
|
|
3572
3572
|
}, na = () => {
|
|
3573
3573
|
ae.value && (N.value, N.value = !1, requestAnimationFrame(() => {
|
|
@@ -3712,12 +3712,12 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3712
3712
|
w = !1;
|
|
3713
3713
|
}, 50);
|
|
3714
3714
|
}, ra = (t) => {
|
|
3715
|
-
},
|
|
3715
|
+
}, Pt = (t) => {
|
|
3716
3716
|
var f;
|
|
3717
3717
|
if (!N.value || !z.value || !$.value)
|
|
3718
3718
|
return;
|
|
3719
3719
|
const l = t.target, s = (f = $.value) == null ? void 0 : f.closest(".nb-wrapper");
|
|
3720
|
-
if (z.value && z.value.contains(l) ||
|
|
3720
|
+
if (z.value && z.value.contains(l) || s && (l === s || s.contains(l)) || z.value && z.value.contains(l))
|
|
3721
3721
|
return;
|
|
3722
3722
|
let i = l;
|
|
3723
3723
|
for (; i && i !== document.body; ) {
|
|
@@ -3768,9 +3768,9 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3768
3768
|
o();
|
|
3769
3769
|
}) : p();
|
|
3770
3770
|
}), sa(() => {
|
|
3771
|
-
h.value = _e.value, M.value = rt(_e.value, k.value), document.addEventListener("click",
|
|
3771
|
+
h.value = _e.value, M.value = rt(_e.value, k.value), document.addEventListener("click", Pt, !1), window.addEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.addEventListener("resize", Ot);
|
|
3772
3772
|
}), ma(() => {
|
|
3773
|
-
Wt(), p(), document.removeEventListener("click",
|
|
3773
|
+
Wt(), p(), document.removeEventListener("click", Pt), window.removeEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.removeEventListener("resize", Ot);
|
|
3774
3774
|
}), U(k, (t) => {
|
|
3775
3775
|
Fe.value = t;
|
|
3776
3776
|
}, { immediate: !0 }), U(Xe, () => {
|
|
@@ -3809,16 +3809,16 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3809
3809
|
}
|
|
3810
3810
|
return new Date(c);
|
|
3811
3811
|
}, i = l.startDate ? s(l.startDate) : null, f = l.endDate ? s(l.endDate) : null;
|
|
3812
|
-
|
|
3812
|
+
P("changed", { startDate: i, endDate: f });
|
|
3813
3813
|
return;
|
|
3814
3814
|
}
|
|
3815
3815
|
} catch {
|
|
3816
3816
|
}
|
|
3817
|
-
|
|
3817
|
+
P("changed", t);
|
|
3818
3818
|
}), U(T, (t) => {
|
|
3819
|
-
|
|
3819
|
+
P(t ? "focused" : "blurred");
|
|
3820
3820
|
}), U(h, (t) => {
|
|
3821
|
-
L.value && (t = t.trim()),
|
|
3821
|
+
L.value && (t = t.trim()), P("current-value", t);
|
|
3822
3822
|
}), (t, l) => n(xe) ? (O(), j("div", da({
|
|
3823
3823
|
key: 0,
|
|
3824
3824
|
class: ["nb-wrapper", wt.value],
|
|
@@ -3829,7 +3829,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3829
3829
|
id: n(xe),
|
|
3830
3830
|
class: Ne(["nb-reset", "component", Kt.value, Yt.value, Qt.value, Ut.value]),
|
|
3831
3831
|
style: We([vt.value, Dt.value, it.value]),
|
|
3832
|
-
onClick:
|
|
3832
|
+
onClick: Et
|
|
3833
3833
|
}, [
|
|
3834
3834
|
n($e) ? (O(), j("label", {
|
|
3835
3835
|
key: 0,
|
|
@@ -3837,7 +3837,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3837
3837
|
class: "component__label",
|
|
3838
3838
|
style: We([ht.value]),
|
|
3839
3839
|
onClick: Zt
|
|
3840
|
-
}, St(e.label), 13,
|
|
3840
|
+
}, St(e.label), 13, Pl)) : Le("", !0),
|
|
3841
3841
|
pa(fe("input", {
|
|
3842
3842
|
ref_key: "inputRef",
|
|
3843
3843
|
ref: $,
|
|
@@ -3872,8 +3872,8 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3872
3872
|
}, null, 46, Fl), [
|
|
3873
3873
|
[Ha, M.value]
|
|
3874
3874
|
])
|
|
3875
|
-
], 14,
|
|
3876
|
-
|
|
3875
|
+
], 14, El),
|
|
3876
|
+
E.value ? (O(), j("div", {
|
|
3877
3877
|
key: 0,
|
|
3878
3878
|
class: Ne(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
3879
3879
|
}, [
|
|
@@ -3912,7 +3912,7 @@ const Pl = ["id"], El = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3912
3912
|
]))
|
|
3913
3913
|
], 16)) : Le("", !0);
|
|
3914
3914
|
}
|
|
3915
|
-
}), ql = /* @__PURE__ */ ba(Ol, [["__scopeId", "data-v-
|
|
3915
|
+
}), ql = /* @__PURE__ */ ba(Ol, [["__scopeId", "data-v-e650e5d2"]]), Oa = {
|
|
3916
3916
|
NbInputRadio: fl,
|
|
3917
3917
|
NbInputCheckbox: yl,
|
|
3918
3918
|
NbInput: Tl,
|