@vlalg-nimbus/nb-inputs 8.0.13 → 8.0.14
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 +884 -873
- package/dist/nb-inputs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nb-inputs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useCssVars as fa, onMounted as sa, ref as
|
|
1
|
+
import { useCssVars as fa, onMounted as sa, ref as J, toRefs as va, computed as a, watch as U, openBlock as O, createElementBlock as j, normalizeClass as We, normalizeStyle as Ee, createElementVNode as ve, 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 Be, 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 [P,
|
|
5
|
-
C[P] =
|
|
4
|
+
for (const [P, N] of m)
|
|
5
|
+
C[P] = N;
|
|
6
6
|
return C;
|
|
7
7
|
}, il = ["id"], sl = ["id", "disabled", "value", "name"], dl = ["for", "tabindex"], cl = /* @__PURE__ */ Object.assign({
|
|
8
8
|
name: "NbInputRadio",
|
|
@@ -59,7 +59,7 @@ const ba = (e, m) => {
|
|
|
59
59
|
let m = !1;
|
|
60
60
|
for (const C of e) {
|
|
61
61
|
const P = Object.keys(C);
|
|
62
|
-
P.length !== 2 && (m = !0), P.every((
|
|
62
|
+
P.length !== 2 && (m = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
|
|
63
63
|
}
|
|
64
64
|
if (!m)
|
|
65
65
|
return e;
|
|
@@ -153,138 +153,138 @@ const ba = (e, m) => {
|
|
|
153
153
|
emits: ["current-value", "changed", "clicked"],
|
|
154
154
|
setup(e, { emit: m }) {
|
|
155
155
|
fa((y) => ({
|
|
156
|
-
"0fd48d29":
|
|
156
|
+
"0fd48d29": ye.value,
|
|
157
157
|
"50426c15": ct.value,
|
|
158
158
|
"5fa7628c": dt.value,
|
|
159
|
-
"5949c3d2":
|
|
159
|
+
"5949c3d2": Te.value,
|
|
160
160
|
91322790: Xe.value,
|
|
161
161
|
"6750fc92": lt.value,
|
|
162
162
|
"8c592938": gt.value,
|
|
163
163
|
c11d4680: st.value,
|
|
164
164
|
"35b74fa6": nt.value,
|
|
165
|
-
"7dd5f889":
|
|
165
|
+
"7dd5f889": Se.value,
|
|
166
166
|
"5cb21b36": yt.value
|
|
167
167
|
})), sa(() => {
|
|
168
168
|
Ze();
|
|
169
169
|
});
|
|
170
|
-
const C = m, P = e,
|
|
171
|
-
ariaLabel:
|
|
172
|
-
ariaAttrs:
|
|
173
|
-
currentOption:
|
|
174
|
-
valueType:
|
|
175
|
-
display:
|
|
176
|
-
options:
|
|
177
|
-
theme:
|
|
178
|
-
lightTextColor:
|
|
179
|
-
lightColor:
|
|
170
|
+
const C = m, P = e, N = J(null), {
|
|
171
|
+
ariaLabel: Ve,
|
|
172
|
+
ariaAttrs: pe,
|
|
173
|
+
currentOption: Ae,
|
|
174
|
+
valueType: ke,
|
|
175
|
+
display: se,
|
|
176
|
+
options: X,
|
|
177
|
+
theme: Pe,
|
|
178
|
+
lightTextColor: _e,
|
|
179
|
+
lightColor: ne,
|
|
180
180
|
lightColorHover: G,
|
|
181
181
|
darkTextColor: R,
|
|
182
|
-
darkColor:
|
|
183
|
-
darkColorHover:
|
|
182
|
+
darkColor: oe,
|
|
183
|
+
darkColorHover: de,
|
|
184
184
|
hoverEffect: K,
|
|
185
|
-
activeHoverEffect:
|
|
186
|
-
itemGap:
|
|
185
|
+
activeHoverEffect: Le,
|
|
186
|
+
itemGap: ce,
|
|
187
187
|
internalGap: F,
|
|
188
|
-
scale:
|
|
189
|
-
disabled:
|
|
190
|
-
fontFamily:
|
|
191
|
-
fontSize:
|
|
192
|
-
fontWeight:
|
|
188
|
+
scale: be,
|
|
189
|
+
disabled: Z,
|
|
190
|
+
fontFamily: Ce,
|
|
191
|
+
fontSize: ge,
|
|
192
|
+
fontWeight: xe
|
|
193
193
|
} = va(P), _ = a(() => {
|
|
194
|
-
const y =
|
|
194
|
+
const y = Z.value ? "component-disabled" : "", V = se.value !== "b" ? "inline-block" : "block", ue = Ce.value ? Ce.value : "'Lato', sans-serif", ee = ge.value ? ge.value : "1.6em", me = xe.value !== 0 && !xe.value || xe.value < 0 ? 200 : xe.value, Re = [!1, !0].includes(K.value) ? K.value : !1, Ke = [!1, !0].includes(Le.value) ? Le.value : !1, re = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, d = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, b = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value;
|
|
195
195
|
return {
|
|
196
196
|
disabled: y,
|
|
197
|
-
display:
|
|
198
|
-
hoverEffect:
|
|
199
|
-
activeHoverEffect:
|
|
200
|
-
itemGap:
|
|
197
|
+
display: V,
|
|
198
|
+
hoverEffect: Re,
|
|
199
|
+
activeHoverEffect: Ke,
|
|
200
|
+
itemGap: re,
|
|
201
201
|
internalGap: d,
|
|
202
202
|
scale: b,
|
|
203
|
-
font:
|
|
204
|
-
fontSize:
|
|
205
|
-
fontWeight:
|
|
203
|
+
font: ue,
|
|
204
|
+
fontSize: ee,
|
|
205
|
+
fontWeight: me
|
|
206
206
|
};
|
|
207
|
-
}),
|
|
207
|
+
}), L = a(() => _.value.disabled), x = a(() => ({
|
|
208
208
|
display: _.value.display
|
|
209
|
-
})),
|
|
209
|
+
})), $e = a(() => _.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), je = a(() => {
|
|
210
210
|
const y = _.value;
|
|
211
211
|
return {
|
|
212
212
|
fontSize: y.fontSize,
|
|
213
213
|
fontWeight: y.fontWeight
|
|
214
214
|
};
|
|
215
|
-
}),
|
|
216
|
-
const
|
|
217
|
-
return !
|
|
215
|
+
}), we = a(() => Array.isArray(X.value) && X.value.constructor === Array && X.value.length > 0), at = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), ye = a(() => _.value.font), lt = a(() => _e.value), gt = a(() => ne.value), Xe = a(() => _.value.hoverEffect ? G.value : ne.value), Te = a(() => _.value.activeHoverEffect ? G.value : ne.value), Se = a(() => R.value), yt = a(() => oe.value), nt = a(() => _.value.hoverEffect ? de.value : oe.value), st = a(() => _.value.activeHoverEffect ? de.value : oe.value), dt = a(() => {
|
|
216
|
+
const V = _.value.internalGap;
|
|
217
|
+
return !V || V < 0 ? 0 : `${V}px`;
|
|
218
218
|
}), ct = a(() => {
|
|
219
|
-
const
|
|
220
|
-
return !
|
|
221
|
-
}),
|
|
219
|
+
const V = _.value.itemGap;
|
|
220
|
+
return !V || V < 0 ? 0 : `${V}px`;
|
|
221
|
+
}), He = a(() => ({
|
|
222
222
|
zoom: _.value.scale
|
|
223
|
-
})),
|
|
223
|
+
})), Ue = a(() => {
|
|
224
224
|
const y = {};
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
"aria-label":
|
|
228
|
-
"aria-disabled":
|
|
225
|
+
pe.value && Object.keys(pe.value).forEach((ee) => y[`aria-${ee}`] = pe.value[ee]);
|
|
226
|
+
const V = {
|
|
227
|
+
"aria-label": Ve.value,
|
|
228
|
+
"aria-disabled": Z.value,
|
|
229
229
|
...y
|
|
230
230
|
};
|
|
231
231
|
return Object.fromEntries(
|
|
232
|
-
Object.entries(
|
|
232
|
+
Object.entries(V).filter(([ue, ee]) => ee != null)
|
|
233
233
|
);
|
|
234
234
|
}), Ze = () => {
|
|
235
|
-
const y =
|
|
236
|
-
y && ["string"].includes(
|
|
237
|
-
},
|
|
235
|
+
const y = Ae.value;
|
|
236
|
+
y && ["string"].includes(ke.value) ? N.value = y.toString().toLowerCase() : N.value = y;
|
|
237
|
+
}, Ge = () => {
|
|
238
238
|
C("clicked");
|
|
239
239
|
};
|
|
240
|
-
return U(
|
|
241
|
-
y !==
|
|
242
|
-
}), U(
|
|
243
|
-
y !==
|
|
244
|
-
}), (y,
|
|
240
|
+
return U(Ae, (y, V) => {
|
|
241
|
+
y !== V && Ze();
|
|
242
|
+
}), U(N, (y, V) => {
|
|
243
|
+
y !== V && (C("current-value", y), C("changed", y));
|
|
244
|
+
}), (y, V) => e.nbId && we.value ? (O(), j("div", {
|
|
245
245
|
key: 0,
|
|
246
|
-
class:
|
|
247
|
-
style:
|
|
246
|
+
class: We(["nb-wrapper", L.value]),
|
|
247
|
+
style: Ee([x.value, He.value])
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
ve("div", da({
|
|
250
250
|
id: e.nbId,
|
|
251
251
|
role: "radiogroup"
|
|
252
|
-
},
|
|
253
|
-
class: ["nb-reset", "component",
|
|
252
|
+
}, Ue.value, {
|
|
253
|
+
class: ["nb-reset", "component", $e.value, at.value]
|
|
254
254
|
}), [
|
|
255
|
-
(O(!0), j(qa, null, ja(n(
|
|
256
|
-
key:
|
|
255
|
+
(O(!0), j(qa, null, ja(n(X), (ue, ee) => (O(), j("div", {
|
|
256
|
+
key: ee,
|
|
257
257
|
class: "component-radio__item"
|
|
258
258
|
}, [
|
|
259
|
-
pa(
|
|
260
|
-
id: `${e.nbId}-${
|
|
261
|
-
"onUpdate:modelValue":
|
|
259
|
+
pa(ve("input", {
|
|
260
|
+
id: `${e.nbId}-${ue.value}`,
|
|
261
|
+
"onUpdate:modelValue": V[0] || (V[0] = (me) => N.value = me),
|
|
262
262
|
type: "radio",
|
|
263
263
|
class: "component-radio__item--input",
|
|
264
|
-
disabled: n(
|
|
265
|
-
value:
|
|
264
|
+
disabled: n(Z),
|
|
265
|
+
value: ue.value,
|
|
266
266
|
name: e.groupName,
|
|
267
|
-
onClick:
|
|
267
|
+
onClick: Ge
|
|
268
268
|
}, null, 8, sl), [
|
|
269
|
-
[al,
|
|
269
|
+
[al, N.value]
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
for: `${e.nbId}-${
|
|
273
|
-
tabindex: n(
|
|
271
|
+
ve("label", {
|
|
272
|
+
for: `${e.nbId}-${ue.value}`,
|
|
273
|
+
tabindex: n(Z) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ee] : e.tabIndex >= 0 ? e.tabIndex : ee + 1,
|
|
274
274
|
class: "component-radio__item--label",
|
|
275
275
|
onKeydown: [
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
V[1] || (V[1] = jt(ca((me) => !n(Z) && e.hasTabIndexEnter && me.target.click(), ["prevent"]), ["enter"])),
|
|
277
|
+
V[2] || (V[2] = jt(ca((me) => !n(Z) && e.hasTabIndexSpace && me.target.click(), ["prevent"]), ["space"]))
|
|
278
278
|
]
|
|
279
279
|
}, [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
style:
|
|
283
|
-
}, St(
|
|
280
|
+
V[3] || (V[3] = ve("div", null, null, -1)),
|
|
281
|
+
ve("span", {
|
|
282
|
+
style: Ee([je.value])
|
|
283
|
+
}, St(ue.text), 5)
|
|
284
284
|
], 40, dl)
|
|
285
285
|
]))), 128))
|
|
286
286
|
], 16, il)
|
|
287
|
-
], 6)) :
|
|
287
|
+
], 6)) : Be("", !0);
|
|
288
288
|
}
|
|
289
289
|
}), fl = /* @__PURE__ */ ba(cl, [["__scopeId", "data-v-a95f65ea"]]);
|
|
290
290
|
const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabindex"], gl = /* @__PURE__ */ Object.assign({
|
|
@@ -342,7 +342,7 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
342
342
|
let m = !1;
|
|
343
343
|
for (const C of e) {
|
|
344
344
|
const P = Object.keys(C);
|
|
345
|
-
P.length !== 2 && (m = !0), P.every((
|
|
345
|
+
P.length !== 2 && (m = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
|
|
346
346
|
}
|
|
347
347
|
if (!m)
|
|
348
348
|
return e;
|
|
@@ -450,161 +450,161 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
|
|
|
450
450
|
setup(e, { emit: m }) {
|
|
451
451
|
fa((d) => ({
|
|
452
452
|
"49e2c63f": gt.value,
|
|
453
|
-
"107babaa":
|
|
454
|
-
"3c7cc5ce":
|
|
453
|
+
"107babaa": ue.value,
|
|
454
|
+
"3c7cc5ce": V.value,
|
|
455
455
|
"16d311d0": y.value,
|
|
456
456
|
"3f8b2f30": yt.value,
|
|
457
|
-
"53078d64":
|
|
457
|
+
"53078d64": Se.value,
|
|
458
458
|
"537834e6": nt.value,
|
|
459
|
-
fbc86ee4:
|
|
459
|
+
fbc86ee4: Te.value,
|
|
460
460
|
"517939e1": Xe.value,
|
|
461
|
-
"3faff29d":
|
|
462
|
-
"302ecd6a":
|
|
461
|
+
"3faff29d": Ge.value,
|
|
462
|
+
"302ecd6a": He.value,
|
|
463
463
|
"8a4df060": ct.value,
|
|
464
|
-
"0a99dbe2":
|
|
464
|
+
"0a99dbe2": Ue.value,
|
|
465
465
|
d6971e68: dt.value,
|
|
466
466
|
ca30d9c2: st.value
|
|
467
467
|
})), sa(() => {
|
|
468
|
-
|
|
468
|
+
Ke();
|
|
469
469
|
});
|
|
470
|
-
const C = m, P = e,
|
|
471
|
-
ariaLabel:
|
|
472
|
-
ariaAttrs:
|
|
473
|
-
currentOption:
|
|
474
|
-
display:
|
|
475
|
-
options:
|
|
476
|
-
theme:
|
|
477
|
-
lightTextColor:
|
|
478
|
-
lightColor:
|
|
479
|
-
lightColorHover:
|
|
470
|
+
const C = m, P = e, N = J(null), {
|
|
471
|
+
ariaLabel: Ve,
|
|
472
|
+
ariaAttrs: pe,
|
|
473
|
+
currentOption: Ae,
|
|
474
|
+
display: ke,
|
|
475
|
+
options: se,
|
|
476
|
+
theme: X,
|
|
477
|
+
lightTextColor: Pe,
|
|
478
|
+
lightColor: _e,
|
|
479
|
+
lightColorHover: ne,
|
|
480
480
|
darkTextColor: G,
|
|
481
481
|
darkColor: R,
|
|
482
|
-
darkColorHover:
|
|
483
|
-
boxRadius:
|
|
482
|
+
darkColorHover: oe,
|
|
483
|
+
boxRadius: de,
|
|
484
484
|
hoverEffect: K,
|
|
485
|
-
activeHoverEffect:
|
|
486
|
-
itemGap:
|
|
485
|
+
activeHoverEffect: Le,
|
|
486
|
+
itemGap: ce,
|
|
487
487
|
internalGap: F,
|
|
488
|
-
scale:
|
|
489
|
-
type:
|
|
490
|
-
background:
|
|
491
|
-
disabled:
|
|
492
|
-
fontFamily:
|
|
488
|
+
scale: be,
|
|
489
|
+
type: Z,
|
|
490
|
+
background: Ce,
|
|
491
|
+
disabled: ge,
|
|
492
|
+
fontFamily: xe,
|
|
493
493
|
fontSize: _,
|
|
494
|
-
fontWeight:
|
|
495
|
-
} = va(P),
|
|
496
|
-
const d =
|
|
494
|
+
fontWeight: L
|
|
495
|
+
} = va(P), x = a(() => {
|
|
496
|
+
const d = ge.value ? "component-disabled" : "", b = ke.value !== "b" ? "inline-block" : "block", fe = xe.value ? xe.value : "'Lato', sans-serif", Y = _.value ? _.value : "1.6em", te = L.value !== 0 && !L.value || L.value < 0 ? 200 : L.value, Me = de.value !== 0 && !de.value || de.value < 0 ? 0 : de.value, ze = [!1, !0].includes(K.value) ? K.value : !1, Fe = [!1, !0].includes(Le.value) ? Le.value : !1, Ye = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, et = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, ot = ["box", "circle"].includes(Z.value) ? Z.value : "box", ut = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value, ft = [!1, !0].includes(Ce.value) ? Ce.value : !1;
|
|
497
497
|
return {
|
|
498
498
|
disabled: d,
|
|
499
499
|
display: b,
|
|
500
|
-
boxRadius:
|
|
501
|
-
hoverEffect:
|
|
502
|
-
activeHoverEffect:
|
|
503
|
-
itemGap:
|
|
500
|
+
boxRadius: Me,
|
|
501
|
+
hoverEffect: ze,
|
|
502
|
+
activeHoverEffect: Fe,
|
|
503
|
+
itemGap: Ye,
|
|
504
504
|
internalGap: et,
|
|
505
505
|
scale: ut,
|
|
506
506
|
type: ot,
|
|
507
|
-
font:
|
|
507
|
+
font: fe,
|
|
508
508
|
background: ft,
|
|
509
509
|
fontSize: Y,
|
|
510
|
-
fontWeight:
|
|
510
|
+
fontWeight: te
|
|
511
511
|
};
|
|
512
|
-
}),
|
|
513
|
-
display:
|
|
514
|
-
})),
|
|
515
|
-
const d =
|
|
512
|
+
}), $e = a(() => x.value.disabled), je = a(() => ({
|
|
513
|
+
display: x.value.display
|
|
514
|
+
})), we = a(() => x.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), at = a(() => {
|
|
515
|
+
const d = x.value;
|
|
516
516
|
return {
|
|
517
517
|
fontSize: d.fontSize,
|
|
518
518
|
fontWeight: d.fontWeight
|
|
519
519
|
};
|
|
520
|
-
}),
|
|
521
|
-
const d =
|
|
522
|
-
return d.activeHoverEffect && d.background ? `${le.value}80` : le.value;
|
|
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
|
-
const d = L.value;
|
|
520
|
+
}), ye = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), lt = a(() => X.value === "dark" ? "component__theme--dark" : "component__theme--light"), gt = a(() => x.value.font), Xe = a(() => Pe.value), Te = a(() => _e.value), Se = a(() => x.value.hoverEffect ? ne.value : _e.value), yt = a(() => x.value.activeHoverEffect ? ne.value : _e.value), nt = a(() => {
|
|
521
|
+
const d = x.value;
|
|
525
522
|
return d.activeHoverEffect && d.background ? `${ne.value}80` : ne.value;
|
|
526
|
-
}),
|
|
527
|
-
const d =
|
|
523
|
+
}), st = a(() => G.value), dt = a(() => R.value), ct = a(() => x.value.hoverEffect ? oe.value : R.value), He = a(() => x.value.activeHoverEffect ? oe.value : R.value), Ue = a(() => {
|
|
524
|
+
const d = x.value;
|
|
525
|
+
return d.activeHoverEffect && d.background ? `${oe.value}80` : oe.value;
|
|
526
|
+
}), Ze = a(() => x.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ge = a(() => {
|
|
527
|
+
const d = x.value, b = X.value === "dark" ? G.value : Pe.value;
|
|
528
528
|
return d.background ? "#ffffff" : b;
|
|
529
529
|
});
|
|
530
|
-
a(() =>
|
|
530
|
+
a(() => x.value.background ? "19px" : "auto");
|
|
531
531
|
const y = a(() => {
|
|
532
|
-
const b =
|
|
532
|
+
const b = x.value.internalGap;
|
|
533
533
|
return !b || b < 0 ? 0 : `${b}px`;
|
|
534
|
-
}),
|
|
535
|
-
const d =
|
|
534
|
+
}), V = a(() => {
|
|
535
|
+
const d = x.value;
|
|
536
536
|
return `${d.boxRadius > 7 ? 7 : d.boxRadius}px`;
|
|
537
|
-
}),
|
|
538
|
-
const b =
|
|
537
|
+
}), ue = a(() => {
|
|
538
|
+
const b = x.value.itemGap;
|
|
539
539
|
return !b || b < 0 ? 0 : `${b}px`;
|
|
540
|
-
}),
|
|
541
|
-
zoom:
|
|
542
|
-
})),
|
|
540
|
+
}), ee = a(() => x.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), me = a(() => ({
|
|
541
|
+
zoom: x.value.scale
|
|
542
|
+
})), Re = a(() => {
|
|
543
543
|
const d = {};
|
|
544
|
-
|
|
544
|
+
pe.value && Object.keys(pe.value).forEach((Y) => d[`aria-${Y}`] = pe.value[Y]);
|
|
545
545
|
const b = {
|
|
546
|
-
"aria-label":
|
|
547
|
-
"aria-disabled":
|
|
546
|
+
"aria-label": Ve.value,
|
|
547
|
+
"aria-disabled": ge.value,
|
|
548
548
|
...d
|
|
549
549
|
};
|
|
550
550
|
return Object.fromEntries(
|
|
551
|
-
Object.entries(b).filter(([
|
|
551
|
+
Object.entries(b).filter(([fe, Y]) => Y != null)
|
|
552
552
|
);
|
|
553
|
-
}),
|
|
554
|
-
|
|
555
|
-
},
|
|
553
|
+
}), Ke = () => {
|
|
554
|
+
N.value = Ae.value;
|
|
555
|
+
}, re = () => {
|
|
556
556
|
C("clicked");
|
|
557
557
|
};
|
|
558
|
-
return U(
|
|
559
|
-
d !== b &&
|
|
560
|
-
}), U(
|
|
558
|
+
return U(Ae, (d, b) => {
|
|
559
|
+
d !== b && Ke();
|
|
560
|
+
}), U(N, (d, b) => {
|
|
561
561
|
d !== b && (C("current-value", d), C("changed", d));
|
|
562
|
-
}), (d, b) => e.nbId &&
|
|
562
|
+
}), (d, b) => e.nbId && ye.value ? (O(), j("div", {
|
|
563
563
|
key: 0,
|
|
564
|
-
class:
|
|
565
|
-
style:
|
|
564
|
+
class: We(["nb-wrapper", $e.value]),
|
|
565
|
+
style: Ee([je.value, me.value])
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
ve("div", da({
|
|
568
568
|
id: e.nbId,
|
|
569
569
|
role: "group"
|
|
570
|
-
},
|
|
571
|
-
class: ["nb-reset", "component",
|
|
570
|
+
}, Re.value, {
|
|
571
|
+
class: ["nb-reset", "component", we.value, lt.value]
|
|
572
572
|
}), [
|
|
573
|
-
(O(!0), j(qa, null, ja(n(
|
|
573
|
+
(O(!0), j(qa, null, ja(n(se), (fe, Y) => (O(), j("div", {
|
|
574
574
|
key: Y,
|
|
575
575
|
class: "component-checkbox__item"
|
|
576
576
|
}, [
|
|
577
|
-
pa(
|
|
578
|
-
id: `${e.nbId}-${
|
|
579
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
577
|
+
pa(ve("input", {
|
|
578
|
+
id: `${e.nbId}-${fe.value}`,
|
|
579
|
+
"onUpdate:modelValue": b[0] || (b[0] = (te) => N.value = te),
|
|
580
580
|
type: "checkbox",
|
|
581
581
|
class: "component-checkbox__item--input",
|
|
582
|
-
disabled: n(
|
|
583
|
-
value:
|
|
582
|
+
disabled: n(ge),
|
|
583
|
+
value: fe.value,
|
|
584
584
|
name: e.groupName,
|
|
585
|
-
onClick:
|
|
585
|
+
onClick: re
|
|
586
586
|
}, null, 8, pl), [
|
|
587
|
-
[ll,
|
|
587
|
+
[ll, N.value]
|
|
588
588
|
]),
|
|
589
|
-
|
|
590
|
-
for: `${e.nbId}-${
|
|
591
|
-
class:
|
|
592
|
-
tabindex: n(
|
|
589
|
+
ve("label", {
|
|
590
|
+
for: `${e.nbId}-${fe.value}`,
|
|
591
|
+
class: We([[ee.value], "component-checkbox__item--label"]),
|
|
592
|
+
tabindex: n(ge) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[Y] : e.tabIndex >= 0 ? e.tabIndex : Y + 1,
|
|
593
593
|
onKeydown: [
|
|
594
|
-
b[1] || (b[1] = jt(ca((
|
|
595
|
-
b[2] || (b[2] = jt(ca((
|
|
594
|
+
b[1] || (b[1] = jt(ca((te) => !n(ge) && e.hasTabIndexEnter && te.target.click(), ["prevent"]), ["enter"])),
|
|
595
|
+
b[2] || (b[2] = jt(ca((te) => !n(ge) && e.hasTabIndexSpace && te.target.click(), ["prevent"]), ["space"]))
|
|
596
596
|
]
|
|
597
597
|
}, [
|
|
598
|
-
|
|
599
|
-
class:
|
|
598
|
+
ve("div", {
|
|
599
|
+
class: We([Ze.value])
|
|
600
600
|
}, null, 2),
|
|
601
|
-
|
|
602
|
-
style:
|
|
603
|
-
}, St(
|
|
601
|
+
ve("span", {
|
|
602
|
+
style: Ee([at.value])
|
|
603
|
+
}, St(fe.text), 5)
|
|
604
604
|
], 42, bl)
|
|
605
605
|
]))), 128))
|
|
606
606
|
], 16, vl)
|
|
607
|
-
], 6)) :
|
|
607
|
+
], 6)) : Be("", !0);
|
|
608
608
|
}
|
|
609
609
|
}), yl = /* @__PURE__ */ ba(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({
|
|
@@ -718,7 +718,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
718
718
|
validator: (e) => ["center", "left", "right"].indexOf(e) !== -1
|
|
719
719
|
},
|
|
720
720
|
inputText: {
|
|
721
|
-
type: String,
|
|
721
|
+
type: [String, Number],
|
|
722
722
|
default: ""
|
|
723
723
|
},
|
|
724
724
|
inputType: {
|
|
@@ -1030,157 +1030,157 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1030
1030
|
],
|
|
1031
1031
|
setup(e, { emit: m }) {
|
|
1032
1032
|
fa((o) => ({
|
|
1033
|
-
|
|
1034
|
-
"
|
|
1035
|
-
"
|
|
1036
|
-
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1039
|
-
"
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
"
|
|
1045
|
-
|
|
1046
|
-
"
|
|
1047
|
-
"
|
|
1048
|
-
"
|
|
1049
|
-
|
|
1050
|
-
"
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
"
|
|
1054
|
-
|
|
1055
|
-
"
|
|
1056
|
-
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
"
|
|
1060
|
-
"
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
"
|
|
1068
|
-
|
|
1069
|
-
|
|
1033
|
+
"67393ca6": At.value,
|
|
1034
|
+
"492237ac": Bt.value,
|
|
1035
|
+
"070b6157": n(ct),
|
|
1036
|
+
"6cfae57a": Yt.value,
|
|
1037
|
+
"08362f4c": Qt.value,
|
|
1038
|
+
"6a65b3e4": Jt.value,
|
|
1039
|
+
"1950b62e": n(V),
|
|
1040
|
+
bc050f20: n(ze),
|
|
1041
|
+
dda7ee14: n(ue),
|
|
1042
|
+
c2f5b288: n(ft),
|
|
1043
|
+
d13f5716: n(y),
|
|
1044
|
+
"26044b4c": n(Ze),
|
|
1045
|
+
d190cc00: n(Ge),
|
|
1046
|
+
"687a4ecb": ra.value,
|
|
1047
|
+
"548a9d91": n(He),
|
|
1048
|
+
"53e6cc72": n(Ue),
|
|
1049
|
+
"2d1ffeb0": n(Me),
|
|
1050
|
+
"450b2f70": n(ee),
|
|
1051
|
+
f68c0608: n(ut),
|
|
1052
|
+
b176f33a: n(dt),
|
|
1053
|
+
"4fc1abac": n(nt),
|
|
1054
|
+
f84cb45c: n(st),
|
|
1055
|
+
"7582c502": n(Se),
|
|
1056
|
+
d1bd42ce: n(yt),
|
|
1057
|
+
"24e2a49a": na.value,
|
|
1058
|
+
"44a074be": oa.value,
|
|
1059
|
+
"9a67f93e": ua.value,
|
|
1060
|
+
"00542751": Pt.value,
|
|
1061
|
+
b6e1a318: la.value,
|
|
1062
|
+
"57aff83e": n(me),
|
|
1063
|
+
de542384: Ct.value,
|
|
1064
|
+
"7551f481": _t.value,
|
|
1065
|
+
"63f70c40": Dt.value,
|
|
1066
|
+
a92d612e: Ut.value,
|
|
1067
|
+
"4e8df1c3": Kt.value,
|
|
1068
|
+
"306aeeb7": o.styleButtonColor,
|
|
1069
|
+
"017ff71c": Gt.value
|
|
1070
1070
|
})), sa(() => {
|
|
1071
|
-
|
|
1071
|
+
ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "";
|
|
1072
1072
|
}), ma(() => {
|
|
1073
1073
|
bt();
|
|
1074
1074
|
});
|
|
1075
1075
|
const C = m, P = e, {
|
|
1076
|
-
nbId:
|
|
1077
|
-
display:
|
|
1078
|
-
hasTabIndexEnter:
|
|
1079
|
-
ariaLabel:
|
|
1080
|
-
ariaAttrs:
|
|
1081
|
-
textColor:
|
|
1082
|
-
caretColor:
|
|
1083
|
-
selectionBgColor:
|
|
1084
|
-
selectionTextColor:
|
|
1085
|
-
hasBorderRadius:
|
|
1076
|
+
nbId: N,
|
|
1077
|
+
display: Ve,
|
|
1078
|
+
hasTabIndexEnter: pe,
|
|
1079
|
+
ariaLabel: Ae,
|
|
1080
|
+
ariaAttrs: ke,
|
|
1081
|
+
textColor: se,
|
|
1082
|
+
caretColor: X,
|
|
1083
|
+
selectionBgColor: Pe,
|
|
1084
|
+
selectionTextColor: _e,
|
|
1085
|
+
hasBorderRadius: ne,
|
|
1086
1086
|
borderRadius: G,
|
|
1087
1087
|
disabled: R,
|
|
1088
|
-
fontFamily:
|
|
1089
|
-
fontSize:
|
|
1088
|
+
fontFamily: oe,
|
|
1089
|
+
fontSize: de,
|
|
1090
1090
|
fontWeight: K,
|
|
1091
|
-
fontFamilyMsg:
|
|
1092
|
-
fontSizeMsg:
|
|
1091
|
+
fontFamilyMsg: Le,
|
|
1092
|
+
fontSizeMsg: ce,
|
|
1093
1093
|
fontWeightMsg: F,
|
|
1094
|
-
textMessageColor:
|
|
1095
|
-
inputWidth:
|
|
1096
|
-
inputStyle:
|
|
1097
|
-
activeTextStyle:
|
|
1098
|
-
sizeMediaQuery:
|
|
1094
|
+
textMessageColor: be,
|
|
1095
|
+
inputWidth: Z,
|
|
1096
|
+
inputStyle: Ce,
|
|
1097
|
+
activeTextStyle: ge,
|
|
1098
|
+
sizeMediaQuery: xe,
|
|
1099
1099
|
inputReadonly: _,
|
|
1100
|
-
showInputEye:
|
|
1101
|
-
inputType:
|
|
1102
|
-
hasTrim:
|
|
1103
|
-
inputUppercase:
|
|
1104
|
-
inputName:
|
|
1100
|
+
showInputEye: L,
|
|
1101
|
+
inputType: x,
|
|
1102
|
+
hasTrim: $e,
|
|
1103
|
+
inputUppercase: je,
|
|
1104
|
+
inputName: we,
|
|
1105
1105
|
inputPlaceholder: at,
|
|
1106
|
-
inputText:
|
|
1106
|
+
inputText: ye,
|
|
1107
1107
|
theme: lt,
|
|
1108
1108
|
inputEyeIcon: gt,
|
|
1109
1109
|
tabindex: Xe,
|
|
1110
|
-
inputEyeIconHidden:
|
|
1111
|
-
lightBgColor:
|
|
1110
|
+
inputEyeIconHidden: Te,
|
|
1111
|
+
lightBgColor: Se,
|
|
1112
1112
|
lightBgColorFocus: yt,
|
|
1113
1113
|
lightEyeBgColor: nt,
|
|
1114
1114
|
lightEyeBgColorActive: st,
|
|
1115
1115
|
lightDisabledBgColor: dt,
|
|
1116
1116
|
lightTextColor: ct,
|
|
1117
|
-
darkBgColor:
|
|
1118
|
-
darkBgColorFocus:
|
|
1117
|
+
darkBgColor: He,
|
|
1118
|
+
darkBgColorFocus: Ue,
|
|
1119
1119
|
darkEyeBgColor: Ze,
|
|
1120
|
-
darkEyeBgColorActive:
|
|
1120
|
+
darkEyeBgColorActive: Ge,
|
|
1121
1121
|
darkDisabledBgColor: y,
|
|
1122
|
-
darkTextColor:
|
|
1123
|
-
darkDisabledEyeBgColor:
|
|
1124
|
-
lightDisabledEyeBgColor:
|
|
1125
|
-
textAlign:
|
|
1126
|
-
showMsg:
|
|
1127
|
-
hasMsg:
|
|
1128
|
-
hasIcon:
|
|
1122
|
+
darkTextColor: V,
|
|
1123
|
+
darkDisabledEyeBgColor: ue,
|
|
1124
|
+
lightDisabledEyeBgColor: ee,
|
|
1125
|
+
textAlign: me,
|
|
1126
|
+
showMsg: Re,
|
|
1127
|
+
hasMsg: Ke,
|
|
1128
|
+
hasIcon: re,
|
|
1129
1129
|
iconDirection: d,
|
|
1130
1130
|
iconPadding: b,
|
|
1131
|
-
iconPaddingInput:
|
|
1131
|
+
iconPaddingInput: fe,
|
|
1132
1132
|
iconMargin: Y,
|
|
1133
|
-
iconBorderRadius:
|
|
1134
|
-
iconLightTextColor:
|
|
1135
|
-
iconDarkTextColor:
|
|
1136
|
-
iconLightBgColor:
|
|
1137
|
-
iconDarkBgColor:
|
|
1133
|
+
iconBorderRadius: te,
|
|
1134
|
+
iconLightTextColor: Me,
|
|
1135
|
+
iconDarkTextColor: ze,
|
|
1136
|
+
iconLightBgColor: Fe,
|
|
1137
|
+
iconDarkBgColor: Ye,
|
|
1138
1138
|
iconLightBgColorActive: et,
|
|
1139
1139
|
iconDarkBgColorActive: ot,
|
|
1140
1140
|
iconLightDisabledBgColor: ut,
|
|
1141
1141
|
iconDarkDisabledBgColor: ft,
|
|
1142
1142
|
iconWidth: h,
|
|
1143
1143
|
iconSize: M,
|
|
1144
|
-
showLabel:
|
|
1145
|
-
labelBackground:
|
|
1144
|
+
showLabel: k,
|
|
1145
|
+
labelBackground: Oe,
|
|
1146
1146
|
labelPadding: T,
|
|
1147
|
-
labelBorderRadius:
|
|
1147
|
+
labelBorderRadius: he,
|
|
1148
1148
|
labelLeft: Vt,
|
|
1149
1149
|
inputLabelMarginActive: kt,
|
|
1150
1150
|
labelActiveTop: rt,
|
|
1151
1151
|
labelActiveLeft: H,
|
|
1152
|
-
fontFamilyLabel:
|
|
1153
|
-
fontSizeLabel:
|
|
1152
|
+
fontFamilyLabel: I,
|
|
1153
|
+
fontSizeLabel: ae,
|
|
1154
1154
|
fontSizeLabelActive: $,
|
|
1155
1155
|
fontWeightLabel: z,
|
|
1156
|
-
lightTextColorLabel:
|
|
1156
|
+
lightTextColorLabel: le,
|
|
1157
1157
|
lightTextColorLabelActive: W,
|
|
1158
1158
|
darkTextColorLabel: wt,
|
|
1159
1159
|
darkTextColorLabelActive: Rt
|
|
1160
|
-
} = va(P),
|
|
1161
|
-
const o = R.value ? "component-disabled" : "",
|
|
1160
|
+
} = va(P), Q = J(""), vt = J(""), it = J(!1), pt = J(!1), B = a(() => {
|
|
1161
|
+
const o = R.value ? "component-disabled" : "", f = Ve.value !== "b" ? "inline-block" : "block", w = se ? se.value : "ffffff", Qe = X.value ? X.value : "", Je = Pe.value ? Pe.value : "", t = _e.value ? _e.value : "", l = ne.value ? ne.value : !1, s = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, i = oe.value ? oe.value : "'Lato', sans-serif", v = de.value ? de.value : null, c = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, p = Le.value ? Le.value : "'Lato', sans-serif", S = ce.value ? ce.value : "1em", A = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, D = be.value ? be.value : "#f15574", q = Z.value ? Z.value : 200, ie = ge.value ? ge.value : "normal", De = xe.value ? xe.value : "xs", tt = _.value ? _.value : !1, Ne = L.value ? L.value : !1, Ie = x.value ? x.value : "text", ha = je.value ? je.value : !1, Ca = lt.value ? lt.value : "normal", xa = me.value ? me.value : "left", Sa = Ce.value ? Ce.value : "background", Va = b.value ? b.value : "5px 10px", ka = Y.value ? Y.value : "0", La = fe.value ? fe.value : 10, Ta = Me.value ? Me.value : "#000000", Ba = ze.value ? ze.value : "#000000", Aa = Fe.value ? Fe.value : "transparent", _a = Ye.value ? Ye.value : "transparent", $a = te.value !== 0 && !te.value || te.value < 0 ? 0 : te.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 = k.value ? k.value : !1, Na = Vt.value !== 0 && !Vt.value || Vt.value < 0 ? 5 : Vt.value, Ia = Oe.value ? Oe.value : "transparent", Wa = kt.value !== 0 && !kt.value || kt.value < 0 ? 15 : kt.value, Ea = T.value ? T.value : "1px 5px", Pa = he.value !== 0 && !he.value || he.value < 0 ? 0 : he.value, Fa = rt.value === null || rt.value === void 0 ? -13 : rt.value, Ga = H.value === null || H.value === void 0 ? -10 : H.value, Ka = I.value ? I.value : "'Lato', sans-serif", Ya = ae.value ? ae.value : "1em", Qa = $.value ? $.value : "0.8em", Ja = z.value ? z.value : 400, Xa = le.value ? le.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
|
-
display:
|
|
1164
|
+
display: f,
|
|
1165
1165
|
font: i,
|
|
1166
|
-
fontSize:
|
|
1166
|
+
fontSize: v,
|
|
1167
1167
|
fontWeight: c,
|
|
1168
|
-
fontFamilyMsg:
|
|
1169
|
-
fontSizeMsg:
|
|
1168
|
+
fontFamilyMsg: p,
|
|
1169
|
+
fontSizeMsg: S,
|
|
1170
1170
|
fontWeightMsg: A,
|
|
1171
1171
|
textMessageColor: D,
|
|
1172
1172
|
textColor: w,
|
|
1173
|
-
caretColor:
|
|
1174
|
-
selectionBgColor:
|
|
1173
|
+
caretColor: Qe,
|
|
1174
|
+
selectionBgColor: Je,
|
|
1175
1175
|
selectionTextColor: t,
|
|
1176
1176
|
hasBorderRadius: l,
|
|
1177
1177
|
borderRadius: s,
|
|
1178
1178
|
textAlign: xa,
|
|
1179
1179
|
inputWidth: q,
|
|
1180
|
-
activeTextStyle:
|
|
1181
|
-
sizeMediaQuery:
|
|
1180
|
+
activeTextStyle: ie,
|
|
1181
|
+
sizeMediaQuery: De,
|
|
1182
1182
|
inputReadonly: tt,
|
|
1183
|
-
showInputEye:
|
|
1183
|
+
showInputEye: Ne,
|
|
1184
1184
|
inputType: Ie,
|
|
1185
1185
|
inputUppercase: ha,
|
|
1186
1186
|
theme: Ca,
|
|
@@ -1198,10 +1198,10 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1198
1198
|
iconWidth: Ma,
|
|
1199
1199
|
iconSize: za,
|
|
1200
1200
|
showLabel: Da,
|
|
1201
|
-
labelBackground:
|
|
1201
|
+
labelBackground: Ia,
|
|
1202
1202
|
labelPadding: Ea,
|
|
1203
1203
|
labelBorderRadius: Pa,
|
|
1204
|
-
labelLeft:
|
|
1204
|
+
labelLeft: Na,
|
|
1205
1205
|
inputLabelMarginActive: Wa,
|
|
1206
1206
|
labelActiveTop: Fa,
|
|
1207
1207
|
labelActiveLeft: Ga,
|
|
@@ -1220,7 +1220,7 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1220
1220
|
const o = B.value;
|
|
1221
1221
|
if (o.fontSize)
|
|
1222
1222
|
return o.fontSize;
|
|
1223
|
-
let
|
|
1223
|
+
let f = "";
|
|
1224
1224
|
switch (o.sizeMediaQuery) {
|
|
1225
1225
|
case "sm":
|
|
1226
1226
|
return "1.2em";
|
|
@@ -1229,14 +1229,14 @@ 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
|
+
f = "1.2em";
|
|
1233
1233
|
}
|
|
1234
|
-
return
|
|
1234
|
+
return f;
|
|
1235
1235
|
}), Ht = a(() => {
|
|
1236
|
-
const o = B.value,
|
|
1236
|
+
const o = B.value, f = Et.value;
|
|
1237
1237
|
return {
|
|
1238
1238
|
fontWeight: o.fontWeight,
|
|
1239
|
-
marginTop:
|
|
1239
|
+
marginTop: f && k.value ? `${o.inputLabelMarginActive}px` : "0"
|
|
1240
1240
|
};
|
|
1241
1241
|
}), mt = a(() => {
|
|
1242
1242
|
const o = B.value;
|
|
@@ -1255,8 +1255,8 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1255
1255
|
return o.display === "block" ? { width: "100%" } : {
|
|
1256
1256
|
width: `${o.inputWidth}px`
|
|
1257
1257
|
};
|
|
1258
|
-
}),
|
|
1259
|
-
switch (
|
|
1258
|
+
}), Nt = a(() => {
|
|
1259
|
+
switch (Ce.value) {
|
|
1260
1260
|
case "line":
|
|
1261
1261
|
return "component__input--line";
|
|
1262
1262
|
case "border":
|
|
@@ -1291,49 +1291,52 @@ 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
|
-
}), E = a(() => B.value.inputReadonly ? "component__input--read-only" : ""),
|
|
1294
|
+
}), E = a(() => B.value.inputReadonly ? "component__input--read-only" : ""), qe = a(() => B.value.inputUppercase ? "component__input--uppercase" : ""), It = a(() => {
|
|
1295
1295
|
const o = B.value;
|
|
1296
1296
|
return !!(o.showInputEye && o.inputType === "password");
|
|
1297
|
-
}), Xt = a(() => it.value ? gt.value :
|
|
1297
|
+
}), Xt = a(() => it.value ? gt.value : Te.value), ht = a(() => we.value ? we.value : `${N.value}-name-label`), Wt = a(() => k.value ? pt.value ? at.value : "" : at.value), Et = a(() => {
|
|
1298
|
+
const o = Q.value;
|
|
1299
|
+
return pt.value || o != null && String(o).trim().length > 0;
|
|
1300
|
+
}), Zt = a(() => B.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), ea = a(() => pt.value ? "component__input--active" : "component__input--no-active"), Ct = a(() => It.value ? "6px 50px 6px 10px" : "6px 10px"), ta = a(() => !!(Re.value && Ke.value)), aa = a(() => {
|
|
1298
1301
|
const o = {};
|
|
1299
|
-
|
|
1300
|
-
const
|
|
1301
|
-
"aria-label":
|
|
1302
|
+
ke.value && Object.keys(ke.value).forEach((Qe) => o[`aria-${Qe}`] = ke.value[Qe]);
|
|
1303
|
+
const f = {
|
|
1304
|
+
"aria-label": Ae.value,
|
|
1302
1305
|
"aria-disabled": R.value,
|
|
1303
1306
|
...o
|
|
1304
1307
|
};
|
|
1305
1308
|
return Object.fromEntries(
|
|
1306
|
-
Object.entries(
|
|
1309
|
+
Object.entries(f).filter(([w, Qe]) => Qe != null)
|
|
1307
1310
|
);
|
|
1308
|
-
}), la = a(() =>
|
|
1311
|
+
}), la = a(() => re.value ? `${M.value}rem` : "0"), na = a(() => re.value ? `${h.value}px` : "0"), $t = a(() => re.value ? `component__icon--${d.value}` : ""), oa = a(() => {
|
|
1309
1312
|
const o = B.value;
|
|
1310
|
-
return
|
|
1313
|
+
return re.value ? o.iconPadding : "0";
|
|
1311
1314
|
}), ua = a(() => {
|
|
1312
1315
|
const o = B.value;
|
|
1313
|
-
return
|
|
1316
|
+
return re.value ? o.iconMargin : "0";
|
|
1314
1317
|
}), ra = a(() => {
|
|
1315
1318
|
const o = B.value;
|
|
1316
|
-
return
|
|
1319
|
+
return re.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
|
|
1317
1320
|
}), Pt = a(() => {
|
|
1318
1321
|
const o = B.value;
|
|
1319
|
-
return
|
|
1322
|
+
return re.value ? `${o.iconBorderRadius}rem` : "0";
|
|
1320
1323
|
}), Ft = a(() => {
|
|
1321
1324
|
const o = B.value;
|
|
1322
|
-
return
|
|
1325
|
+
return re.value ? d.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
|
|
1323
1326
|
}), Ot = a(() => {
|
|
1324
|
-
const o = B.value,
|
|
1327
|
+
const o = B.value, f = Et.value, w = f ? o.lightTextColorLabelActive : o.lightTextColorLabel, Qe = f ? o.darkTextColorLabelActive : o.darkTextColorLabel;
|
|
1325
1328
|
return {
|
|
1326
1329
|
fontFamily: o.fontFamilyLabel,
|
|
1327
|
-
fontSize:
|
|
1330
|
+
fontSize: f ? o.fontSizeLabelActive : o.fontSizeLabel,
|
|
1328
1331
|
fontWeight: o.fontWeightLabel,
|
|
1329
|
-
color: o.theme === "dark" ?
|
|
1330
|
-
top:
|
|
1331
|
-
left:
|
|
1332
|
-
transform:
|
|
1332
|
+
color: o.theme === "dark" ? Qe : w,
|
|
1333
|
+
top: f ? `${o.labelActiveTop}px` : "50%",
|
|
1334
|
+
left: f ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
|
|
1335
|
+
transform: f ? "translateY(0)" : "translateY(-50%)",
|
|
1333
1336
|
transition: "all 0.2s ease",
|
|
1334
|
-
backgroundColor:
|
|
1335
|
-
padding:
|
|
1336
|
-
borderRadius:
|
|
1337
|
+
backgroundColor: f ? o.labelBackground : "transparent",
|
|
1338
|
+
padding: f ? o.labelPadding : "0",
|
|
1339
|
+
borderRadius: f ? `${o.labelBorderRadius}rem` : "0"
|
|
1337
1340
|
};
|
|
1338
1341
|
});
|
|
1339
1342
|
a(() => {
|
|
@@ -1341,79 +1344,87 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1341
1344
|
return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
|
|
1342
1345
|
});
|
|
1343
1346
|
const bt = () => {
|
|
1344
|
-
|
|
1347
|
+
ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "", vt.value = x.value;
|
|
1345
1348
|
}, Tt = () => {
|
|
1346
1349
|
const o = B.value;
|
|
1347
1350
|
if (o.inputReadonly || o.disabled)
|
|
1348
1351
|
return;
|
|
1349
|
-
const
|
|
1350
|
-
|
|
1352
|
+
const f = !it.value;
|
|
1353
|
+
f ? vt.value = "text" : vt.value = x.value, it.value = f;
|
|
1351
1354
|
}, xt = () => {
|
|
1352
1355
|
C("clicked");
|
|
1353
1356
|
}, qt = () => {
|
|
1354
|
-
R.value || B.value.inputReadonly || !
|
|
1357
|
+
R.value || B.value.inputReadonly || !pe.value || C("entered", Q.value);
|
|
1355
1358
|
};
|
|
1356
|
-
return U(
|
|
1359
|
+
return U(x, (o) => {
|
|
1357
1360
|
vt.value = o;
|
|
1358
|
-
}, { immediate: !0 }), U(
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1361
|
+
}, { immediate: !0 }), U(ye, (o) => {
|
|
1362
|
+
if (o != null)
|
|
1363
|
+
if (x.value === "number" && typeof o == "number")
|
|
1364
|
+
o !== Q.value && (Q.value = o);
|
|
1365
|
+
else {
|
|
1366
|
+
const f = String(o);
|
|
1367
|
+
f !== Q.value && (Q.value = f);
|
|
1368
|
+
}
|
|
1369
|
+
else
|
|
1370
|
+
Q.value !== "" && (Q.value = "");
|
|
1371
|
+
}, { immediate: !0 }), U(Q, (o) => {
|
|
1372
|
+
$e.value && typeof o == "string" && (o = o.trim()), C("changed", o);
|
|
1362
1373
|
}), U(pt, (o) => {
|
|
1363
1374
|
C(o ? "focused" : "blurred");
|
|
1364
1375
|
}), U(it, (o) => {
|
|
1365
1376
|
C("show-input-eye", o);
|
|
1366
|
-
}, { immediate: !0 }), U(
|
|
1367
|
-
|
|
1368
|
-
}), U(
|
|
1377
|
+
}, { immediate: !0 }), U(Q, (o) => {
|
|
1378
|
+
$e.value && typeof o == "string" && (o = o.trim()), C("current-value", o);
|
|
1379
|
+
}), U(x, (o) => {
|
|
1369
1380
|
o === "password" && nextTick(() => {
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1381
|
+
const f = document.getElementById(we.value);
|
|
1382
|
+
f && (f.type = "password", f.removeAttribute("autocomplete"));
|
|
1372
1383
|
});
|
|
1373
|
-
}), (o,
|
|
1384
|
+
}), (o, f) => n(N) ? (O(), j("div", da({
|
|
1374
1385
|
key: 0,
|
|
1375
1386
|
class: ["nb-wrapper", Mt.value],
|
|
1376
1387
|
style: [zt.value, Lt.value, mt.value],
|
|
1377
1388
|
role: "input"
|
|
1378
1389
|
}, aa.value), [
|
|
1379
|
-
|
|
1380
|
-
id: n(
|
|
1381
|
-
class:
|
|
1382
|
-
style:
|
|
1390
|
+
ve("div", {
|
|
1391
|
+
id: n(N),
|
|
1392
|
+
class: We(["nb-reset", "component", u.value, g.value, E.value, Nt.value]),
|
|
1393
|
+
style: Ee([Ht.value, Lt.value, mt.value]),
|
|
1383
1394
|
onClick: xt
|
|
1384
1395
|
}, [
|
|
1385
|
-
n(
|
|
1396
|
+
n(k) ? (O(), j("label", {
|
|
1386
1397
|
key: 0,
|
|
1387
1398
|
for: ht.value,
|
|
1388
1399
|
class: "component__label",
|
|
1389
|
-
style:
|
|
1390
|
-
}, St(e.label), 13, hl)) :
|
|
1391
|
-
|
|
1400
|
+
style: Ee([Ot.value])
|
|
1401
|
+
}, St(e.label), 13, hl)) : Be("", !0),
|
|
1402
|
+
It.value ? (O(), j("div", {
|
|
1392
1403
|
key: 1,
|
|
1393
|
-
class:
|
|
1394
|
-
style:
|
|
1404
|
+
class: We(["component__eye", ea.value]),
|
|
1405
|
+
style: Ee([mt.value]),
|
|
1395
1406
|
onClick: Tt
|
|
1396
1407
|
}, [
|
|
1397
|
-
|
|
1408
|
+
ve("label", {
|
|
1398
1409
|
for: ht.value,
|
|
1399
|
-
class:
|
|
1410
|
+
class: We(["component__eye-icon", "fas"])
|
|
1400
1411
|
}, [
|
|
1401
1412
|
e.inputEyeCustomIcon ? (O(), j("span", Sl, [
|
|
1402
1413
|
it.value ? ia(o.$slots, "eye-icon-show", { key: 0 }, () => [
|
|
1403
|
-
|
|
1414
|
+
f[4] || (f[4] = ga("show"))
|
|
1404
1415
|
], !0) : ia(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
|
|
1405
|
-
|
|
1416
|
+
f[5] || (f[5] = ga("hidden"))
|
|
1406
1417
|
], !0)
|
|
1407
1418
|
])) : (O(), j("span", xl, St(Xt.value), 1))
|
|
1408
1419
|
], 8, Cl)
|
|
1409
|
-
], 6)) :
|
|
1410
|
-
pa(
|
|
1411
|
-
"onUpdate:modelValue":
|
|
1420
|
+
], 6)) : Be("", !0),
|
|
1421
|
+
pa(ve("input", {
|
|
1422
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => Q.value = w),
|
|
1412
1423
|
id: ht.value,
|
|
1413
1424
|
name: ht.value,
|
|
1414
1425
|
type: vt.value,
|
|
1415
|
-
class:
|
|
1416
|
-
|
|
1426
|
+
class: We(["component__input", [
|
|
1427
|
+
qe.value,
|
|
1417
1428
|
Zt.value,
|
|
1418
1429
|
r.value
|
|
1419
1430
|
]]),
|
|
@@ -1424,34 +1435,34 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
|
|
|
1424
1435
|
autocomplete: e.inputAutocomplete,
|
|
1425
1436
|
tabindex: n(R) || n(_) ? -1 : n(Xe),
|
|
1426
1437
|
role: "input",
|
|
1427
|
-
style:
|
|
1428
|
-
onFocus:
|
|
1429
|
-
onBlur:
|
|
1430
|
-
onKeydown:
|
|
1438
|
+
style: Ee([mt.value, Ft.value]),
|
|
1439
|
+
onFocus: f[1] || (f[1] = (w) => pt.value = !0),
|
|
1440
|
+
onBlur: f[2] || (f[2] = (w) => pt.value = !1),
|
|
1441
|
+
onKeydown: f[3] || (f[3] = jt((w) => !n(R) && n(pe) && qt(), ["enter"]))
|
|
1431
1442
|
}, null, 46, Vl), [
|
|
1432
|
-
[Ha,
|
|
1443
|
+
[Ha, Q.value]
|
|
1433
1444
|
]),
|
|
1434
|
-
n(
|
|
1445
|
+
n(re) ? (O(), j("label", {
|
|
1435
1446
|
key: 2,
|
|
1436
1447
|
for: ht.value,
|
|
1437
|
-
class:
|
|
1448
|
+
class: We(["component__icon", $t.value])
|
|
1438
1449
|
}, [
|
|
1439
1450
|
ia(o.$slots, "icon", {}, () => [
|
|
1440
|
-
|
|
1451
|
+
f[6] || (f[6] = ve("span", null, "♥", -1))
|
|
1441
1452
|
], !0)
|
|
1442
|
-
], 10, kl)) :
|
|
1453
|
+
], 10, kl)) : Be("", !0)
|
|
1443
1454
|
], 14, ml),
|
|
1444
1455
|
ta.value ? (O(), j("div", {
|
|
1445
1456
|
key: 0,
|
|
1446
|
-
class:
|
|
1457
|
+
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
1447
1458
|
}, [
|
|
1448
1459
|
ia(o.$slots, "message", {}, () => [
|
|
1449
1460
|
ga(St(e.message), 1)
|
|
1450
1461
|
], !0)
|
|
1451
|
-
], 2)) :
|
|
1452
|
-
], 16)) :
|
|
1462
|
+
], 2)) : Be("", !0)
|
|
1463
|
+
], 16)) : Be("", !0);
|
|
1453
1464
|
}
|
|
1454
|
-
}), Tl = /* @__PURE__ */ ba(Ll, [["__scopeId", "data-v-
|
|
1465
|
+
}), Tl = /* @__PURE__ */ ba(Ll, [["__scopeId", "data-v-6c16322b"]]);
|
|
1455
1466
|
const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"], wl = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], Rl = /* @__PURE__ */ Object.assign({
|
|
1456
1467
|
name: "NbInputChip",
|
|
1457
1468
|
inheritAttrs: !1
|
|
@@ -1777,109 +1788,109 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1777
1788
|
emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred"],
|
|
1778
1789
|
setup(e, { emit: m }) {
|
|
1779
1790
|
fa((u) => ({
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
"
|
|
1783
|
-
"
|
|
1784
|
-
"
|
|
1785
|
-
"
|
|
1786
|
-
"
|
|
1787
|
-
"
|
|
1788
|
-
|
|
1789
|
-
"
|
|
1790
|
-
|
|
1791
|
-
"
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
"
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
"
|
|
1800
|
-
|
|
1801
|
-
"
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
"
|
|
1805
|
-
"
|
|
1791
|
+
"376e4d80": Q.value,
|
|
1792
|
+
d807475a: it.value,
|
|
1793
|
+
"2226ac9e": n(gt),
|
|
1794
|
+
"19aa3459": n(je),
|
|
1795
|
+
"0af60f52": n(at),
|
|
1796
|
+
"4bbf74ed": n(Xe),
|
|
1797
|
+
"1e97d576": n(Te),
|
|
1798
|
+
"7a6f588e": n(Se),
|
|
1799
|
+
"2c5ee94f": n(Ue),
|
|
1800
|
+
"5743c377": n(nt),
|
|
1801
|
+
96524120: n(dt),
|
|
1802
|
+
"14bf75ea": n(Ze),
|
|
1803
|
+
b4bd543a: n(Ge),
|
|
1804
|
+
ade22ca8: n(y),
|
|
1805
|
+
f111ceb4: n(ye),
|
|
1806
|
+
"2cc9ab48": n(ct),
|
|
1807
|
+
14762890: le.value,
|
|
1808
|
+
fd7aaf40: B.value,
|
|
1809
|
+
ea04a49c: Mt.value,
|
|
1810
|
+
"594730ca": zt.value,
|
|
1811
|
+
b5c8eede: u.styleButtonColor,
|
|
1812
|
+
"2d3d8114": vt.value,
|
|
1813
|
+
"87feb986": n(lt),
|
|
1814
|
+
a61b2794: n(yt),
|
|
1815
|
+
"2abf974a": n(He),
|
|
1816
|
+
"71083e54": n(V)
|
|
1806
1817
|
})), sa(() => {
|
|
1807
1818
|
G.value.length > 0 && (H.value = G.value);
|
|
1808
1819
|
});
|
|
1809
1820
|
const C = m, P = e, {
|
|
1810
|
-
nbId:
|
|
1811
|
-
display:
|
|
1812
|
-
textColor:
|
|
1813
|
-
paddingX:
|
|
1814
|
-
paddingY:
|
|
1815
|
-
borderRadius:
|
|
1816
|
-
disabled:
|
|
1817
|
-
fontFamily:
|
|
1818
|
-
fontSize:
|
|
1819
|
-
fontWeight:
|
|
1821
|
+
nbId: N,
|
|
1822
|
+
display: Ve,
|
|
1823
|
+
textColor: pe,
|
|
1824
|
+
paddingX: Ae,
|
|
1825
|
+
paddingY: ke,
|
|
1826
|
+
borderRadius: se,
|
|
1827
|
+
disabled: X,
|
|
1828
|
+
fontFamily: Pe,
|
|
1829
|
+
fontSize: _e,
|
|
1830
|
+
fontWeight: ne,
|
|
1820
1831
|
currentList: G,
|
|
1821
1832
|
allowDuplicates: R,
|
|
1822
|
-
minChips:
|
|
1823
|
-
maxChips:
|
|
1833
|
+
minChips: oe,
|
|
1834
|
+
maxChips: de,
|
|
1824
1835
|
inputPosition: K,
|
|
1825
|
-
width:
|
|
1826
|
-
inputName:
|
|
1836
|
+
width: Le,
|
|
1837
|
+
inputName: ce,
|
|
1827
1838
|
inputPlaceholder: F,
|
|
1828
|
-
inputUppercase:
|
|
1829
|
-
inputReadonly:
|
|
1830
|
-
inputAutocomplete:
|
|
1831
|
-
required:
|
|
1832
|
-
textAlign:
|
|
1839
|
+
inputUppercase: be,
|
|
1840
|
+
inputReadonly: Z,
|
|
1841
|
+
inputAutocomplete: Ce,
|
|
1842
|
+
required: ge,
|
|
1843
|
+
textAlign: xe,
|
|
1833
1844
|
hasBorderRadius: _,
|
|
1834
|
-
activeTextStyle:
|
|
1835
|
-
theme:
|
|
1836
|
-
inputStyle:
|
|
1837
|
-
lightBgColor:
|
|
1838
|
-
lightBgColorFocus:
|
|
1845
|
+
activeTextStyle: L,
|
|
1846
|
+
theme: x,
|
|
1847
|
+
inputStyle: $e,
|
|
1848
|
+
lightBgColor: je,
|
|
1849
|
+
lightBgColorFocus: we,
|
|
1839
1850
|
lightBorderColor: at,
|
|
1840
|
-
lightBorderColorFocus:
|
|
1851
|
+
lightBorderColorFocus: ye,
|
|
1841
1852
|
lightDisabledBgColor: lt,
|
|
1842
1853
|
lightTextColor: gt,
|
|
1843
1854
|
lightChipBgColor: Xe,
|
|
1844
|
-
lightChipTextColor:
|
|
1845
|
-
lightChipRemoveColor:
|
|
1855
|
+
lightChipTextColor: Te,
|
|
1856
|
+
lightChipRemoveColor: Se,
|
|
1846
1857
|
lightDisabledBorderColor: yt,
|
|
1847
1858
|
darkBgColor: nt,
|
|
1848
1859
|
darkBgColorFocus: st,
|
|
1849
1860
|
darkBorderColor: dt,
|
|
1850
1861
|
darkBorderColorFocus: ct,
|
|
1851
|
-
darkDisabledBgColor:
|
|
1852
|
-
darkTextColor:
|
|
1862
|
+
darkDisabledBgColor: He,
|
|
1863
|
+
darkTextColor: Ue,
|
|
1853
1864
|
darkChipBgColor: Ze,
|
|
1854
|
-
darkChipTextColor:
|
|
1865
|
+
darkChipTextColor: Ge,
|
|
1855
1866
|
darkChipRemoveColor: y,
|
|
1856
|
-
darkDisabledBorderColor:
|
|
1857
|
-
tabIndex:
|
|
1858
|
-
hasTabIndexEnter:
|
|
1859
|
-
ariaLabel:
|
|
1860
|
-
ariaAttrs:
|
|
1861
|
-
caretColor:
|
|
1862
|
-
selectionBgColor:
|
|
1867
|
+
darkDisabledBorderColor: V,
|
|
1868
|
+
tabIndex: ue,
|
|
1869
|
+
hasTabIndexEnter: ee,
|
|
1870
|
+
ariaLabel: me,
|
|
1871
|
+
ariaAttrs: Re,
|
|
1872
|
+
caretColor: Ke,
|
|
1873
|
+
selectionBgColor: re,
|
|
1863
1874
|
selectionTextColor: d,
|
|
1864
1875
|
showLabel: b,
|
|
1865
|
-
label:
|
|
1876
|
+
label: fe,
|
|
1866
1877
|
labelBackground: Y,
|
|
1867
|
-
labelPadding:
|
|
1868
|
-
labelBorderRadius:
|
|
1869
|
-
labelLeft:
|
|
1870
|
-
inputLabelMarginActive:
|
|
1871
|
-
labelActiveTop:
|
|
1878
|
+
labelPadding: te,
|
|
1879
|
+
labelBorderRadius: Me,
|
|
1880
|
+
labelLeft: ze,
|
|
1881
|
+
inputLabelMarginActive: Fe,
|
|
1882
|
+
labelActiveTop: Ye,
|
|
1872
1883
|
labelActiveLeft: et,
|
|
1873
1884
|
fontFamilyLabel: ot,
|
|
1874
1885
|
fontSizeLabel: ut,
|
|
1875
1886
|
fontSizeLabelActive: ft,
|
|
1876
1887
|
fontWeightLabel: h,
|
|
1877
1888
|
lightTextColorLabel: M,
|
|
1878
|
-
lightTextColorLabelActive:
|
|
1879
|
-
darkTextColorLabel:
|
|
1889
|
+
lightTextColorLabelActive: k,
|
|
1890
|
+
darkTextColorLabel: Oe,
|
|
1880
1891
|
darkTextColorLabelActive: T
|
|
1881
|
-
} = va(P),
|
|
1882
|
-
const u =
|
|
1892
|
+
} = va(P), he = J(""), Vt = J(null), kt = J(null), rt = J(null), H = J([]), I = J(!1), ae = a(() => {
|
|
1893
|
+
const u = X.value ? "component-disabled" : "", g = Ve.value !== "b" ? "inline-block" : "block", E = !Le.value || Le.value < 185 ? 185 : Le.value, qe = pe ? pe.value : "ffffff", It = Ke.value ? Ke.value : "", Xt = re.value ? re.value : "", ht = d.value ? d.value : "", Wt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 1 : Ae.value, Et = ke.value !== 0 && !ke.value || ke.value < 0 ? 0.2 : ke.value, Zt = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, ea = Pe.value ? Pe.value : "'Lato', sans-serif", Ct = _e.value ? _e.value : "1.4em", ta = ne.value !== 0 && !ne.value || ne.value < 0 ? 100 : ne.value, aa = oe.value !== 0 && !oe.value || oe.value < 0 ? 0 : oe.value, la = de.value !== 0 && !de.value || de.value < 0 ? 10 : de.value, na = !K.value || !["top", "bottom"].includes(K.value) ? "bottom" : K.value, $t = !$e.value || !["background", "line", "border"].includes($e.value) ? "background" : $e.value, oa = x.value ? x.value : "light", ua = b.value ? b.value : !1, ra = ze.value !== 0 && !ze.value || ze.value < 0 ? 5 : ze.value, Pt = Y.value ? Y.value : "transparent", Ft = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 15 : Fe.value, Ot = te.value ? te.value : "1px 5px", bt = Me.value !== 0 && !Me.value || Me.value < 0 ? 0 : Me.value, Tt = Ye.value === null || Ye.value === void 0 ? 13 : Ye.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", f = ft.value ? ft.value : "0.8em", w = h.value ? h.value : 400, Qe = M.value ? M.value : "#333333", Je = Oe.value ? Oe.value : "#ffffff", t = k.value ? k.value : "#333333", l = T.value ? T.value : "#ffffff";
|
|
1883
1894
|
return {
|
|
1884
1895
|
disabled: u,
|
|
1885
1896
|
display: g,
|
|
@@ -1887,8 +1898,8 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1887
1898
|
font: ea,
|
|
1888
1899
|
fontSize: Ct,
|
|
1889
1900
|
fontWeight: ta,
|
|
1890
|
-
textColor:
|
|
1891
|
-
caretColor:
|
|
1901
|
+
textColor: qe,
|
|
1902
|
+
caretColor: It,
|
|
1892
1903
|
selectionBgColor: Xt,
|
|
1893
1904
|
selectionTextColor: ht,
|
|
1894
1905
|
paddingX: Wt,
|
|
@@ -1909,34 +1920,34 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1909
1920
|
labelActiveLeft: xt,
|
|
1910
1921
|
fontFamilyLabel: qt,
|
|
1911
1922
|
fontSizeLabel: o,
|
|
1912
|
-
fontSizeLabelActive:
|
|
1923
|
+
fontSizeLabelActive: f,
|
|
1913
1924
|
fontWeightLabel: w,
|
|
1914
|
-
lightTextColorLabel:
|
|
1915
|
-
darkTextColorLabel:
|
|
1925
|
+
lightTextColorLabel: Qe,
|
|
1926
|
+
darkTextColorLabel: Je,
|
|
1916
1927
|
lightTextColorLabelActive: t,
|
|
1917
1928
|
darkTextColorLabelActive: l
|
|
1918
1929
|
};
|
|
1919
|
-
}), $ = a(() =>
|
|
1920
|
-
const u =
|
|
1930
|
+
}), $ = a(() => ae.value.disabled), z = a(() => {
|
|
1931
|
+
const u = ae.value, g = _t.value;
|
|
1921
1932
|
return {
|
|
1922
1933
|
display: u.display,
|
|
1923
1934
|
// Adiciona padding-top quando o label está ativo para evitar que seja cortado
|
|
1924
1935
|
paddingTop: g && b.value ? `${Math.abs(u.labelActiveTop)}px` : "0"
|
|
1925
1936
|
};
|
|
1926
|
-
}),
|
|
1927
|
-
const u =
|
|
1937
|
+
}), le = a(() => {
|
|
1938
|
+
const u = ae.value;
|
|
1928
1939
|
return u.fontSize ? u.fontSize : "1.4em";
|
|
1929
1940
|
}), W = a(() => {
|
|
1930
|
-
const u =
|
|
1941
|
+
const u = ae.value, g = _t.value;
|
|
1931
1942
|
return {
|
|
1932
1943
|
color: u.textColor,
|
|
1933
1944
|
padding: `${u.paddingY}rem ${u.paddingX}rem`,
|
|
1934
1945
|
fontWeight: u.fontWeight,
|
|
1935
|
-
textAlign:
|
|
1946
|
+
textAlign: xe.value,
|
|
1936
1947
|
marginTop: g && b.value ? `${u.inputLabelMarginActive}px` : "0"
|
|
1937
1948
|
};
|
|
1938
1949
|
}), wt = a(() => {
|
|
1939
|
-
switch (
|
|
1950
|
+
switch (L.value) {
|
|
1940
1951
|
case "italic":
|
|
1941
1952
|
return "component__text--italic";
|
|
1942
1953
|
case "oblique":
|
|
@@ -1945,27 +1956,27 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1945
1956
|
return "component__text--normal";
|
|
1946
1957
|
}
|
|
1947
1958
|
}), Rt = a(() => {
|
|
1948
|
-
const u =
|
|
1959
|
+
const u = ae.value;
|
|
1949
1960
|
return u.inputStyle !== "line" && _.value ? { borderRadius: `${u.borderRadius}rem` } : {};
|
|
1950
|
-
}),
|
|
1961
|
+
}), Q = a(() => ae.value.font), vt = a(() => ae.value.textColor), it = a(() => ae.value.inputPosition === "top" ? "column" : "column-reverse"), pt = a(() => {
|
|
1951
1962
|
const u = {};
|
|
1952
|
-
|
|
1963
|
+
Re.value && Object.keys(Re.value).forEach((qe) => u[`aria-${qe}`] = Re.value[qe]);
|
|
1953
1964
|
const g = {
|
|
1954
|
-
"aria-label":
|
|
1955
|
-
"aria-disabled":
|
|
1965
|
+
"aria-label": me.value,
|
|
1966
|
+
"aria-disabled": X.value,
|
|
1956
1967
|
...u
|
|
1957
1968
|
};
|
|
1958
1969
|
return Object.fromEntries(
|
|
1959
|
-
Object.entries(g).filter(([E,
|
|
1970
|
+
Object.entries(g).filter(([E, qe]) => qe != null)
|
|
1960
1971
|
);
|
|
1961
1972
|
}), B = a(() => {
|
|
1962
|
-
const u =
|
|
1973
|
+
const u = ae.value;
|
|
1963
1974
|
return u.caretColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1964
1975
|
}), Mt = a(() => {
|
|
1965
|
-
const u =
|
|
1976
|
+
const u = ae.value;
|
|
1966
1977
|
return u.selectionBgColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
1967
1978
|
}), zt = a(() => {
|
|
1968
|
-
const u =
|
|
1979
|
+
const u = ae.value;
|
|
1969
1980
|
return u.selectionTextColor || (u.theme === "dark" ? "#000000" : "#ffffff");
|
|
1970
1981
|
}), Bt = a(() => ({
|
|
1971
1982
|
caretColor: B.value
|
|
@@ -1973,17 +1984,17 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1973
1984
|
"--selection-bg-color": Mt.value,
|
|
1974
1985
|
"--selection-text-color": zt.value
|
|
1975
1986
|
})), mt = a(() => {
|
|
1976
|
-
const u =
|
|
1987
|
+
const u = ae.value, g = {
|
|
1977
1988
|
width: `${u.width}px`
|
|
1978
1989
|
};
|
|
1979
1990
|
return u.display === "block" ? { width: "auto" } : g;
|
|
1980
|
-
}), At = a(() =>
|
|
1981
|
-
const u =
|
|
1991
|
+
}), At = a(() => ce.value ? ce.value : `${N.value}-name-label`), _t = a(() => I.value || H.value.length > 0 || he.value && he.value.trim().length > 0), Dt = a(() => b.value ? I.value || H.value.length > 0 ? F.value : "" : F.value), Ut = a(() => {
|
|
1992
|
+
const u = ae.value, g = _t.value, E = g ? u.lightTextColorLabelActive : u.lightTextColorLabel, qe = g ? u.darkTextColorLabelActive : u.darkTextColorLabel;
|
|
1982
1993
|
return {
|
|
1983
1994
|
fontFamily: u.fontFamilyLabel,
|
|
1984
1995
|
fontSize: g ? u.fontSizeLabelActive : u.fontSizeLabel,
|
|
1985
1996
|
fontWeight: u.fontWeightLabel,
|
|
1986
|
-
color: u.theme === "dark" ?
|
|
1997
|
+
color: u.theme === "dark" ? qe : E,
|
|
1987
1998
|
top: g ? `${u.labelActiveTop}px` : "50%",
|
|
1988
1999
|
left: g ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
|
|
1989
2000
|
transform: g ? "translateY(0)" : "translateY(-50%)",
|
|
@@ -1993,14 +2004,14 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
1993
2004
|
borderRadius: g ? `${u.labelBorderRadius}rem` : "0"
|
|
1994
2005
|
};
|
|
1995
2006
|
}), Gt = a(() => {
|
|
1996
|
-
switch (
|
|
2007
|
+
switch (x.value) {
|
|
1997
2008
|
case "dark":
|
|
1998
2009
|
return "component__theme--dark";
|
|
1999
2010
|
default:
|
|
2000
2011
|
return "component__theme--light";
|
|
2001
2012
|
}
|
|
2002
2013
|
}), Kt = a(() => {
|
|
2003
|
-
switch (
|
|
2014
|
+
switch ($e.value) {
|
|
2004
2015
|
case "line":
|
|
2005
2016
|
return "component__input--line";
|
|
2006
2017
|
case "border":
|
|
@@ -2011,25 +2022,25 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2011
2022
|
}), Yt = () => {
|
|
2012
2023
|
C("clicked");
|
|
2013
2024
|
}, Qt = () => {
|
|
2014
|
-
|
|
2025
|
+
I.value = !0, C("focused");
|
|
2015
2026
|
}, Jt = () => {
|
|
2016
|
-
|
|
2027
|
+
I.value = !1, C("blurred");
|
|
2017
2028
|
}, Lt = (u) => {
|
|
2018
|
-
if (!(
|
|
2029
|
+
if (!(X.value || Z.value) && u.key === "Enter" && he.value.trim() !== "") {
|
|
2019
2030
|
u.preventDefault();
|
|
2020
|
-
let g =
|
|
2021
|
-
|
|
2031
|
+
let g = he.value.trim();
|
|
2032
|
+
be.value && (g = g.toUpperCase()), (R.value || !H.value.includes(g)) && Nt(g), he.value = "";
|
|
2022
2033
|
}
|
|
2023
|
-
},
|
|
2034
|
+
}, Nt = (u) => {
|
|
2024
2035
|
H.value.push(u), C("added", u);
|
|
2025
2036
|
}, r = (u) => {
|
|
2026
2037
|
H.value = H.value.filter((g) => g !== u), C("removed", u);
|
|
2027
2038
|
};
|
|
2028
2039
|
return U(G, (u) => {
|
|
2029
2040
|
H.value = u, C("changed", u);
|
|
2030
|
-
}), U(
|
|
2041
|
+
}), U(he, (u) => {
|
|
2031
2042
|
C("input-changed", u);
|
|
2032
|
-
}), (u, g) => n(
|
|
2043
|
+
}), (u, g) => n(N) ? (O(), j("div", da({
|
|
2033
2044
|
key: 0,
|
|
2034
2045
|
class: ["nb-wrapper", $.value],
|
|
2035
2046
|
style: [z.value],
|
|
@@ -2039,14 +2050,14 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2039
2050
|
key: 0,
|
|
2040
2051
|
for: At.value,
|
|
2041
2052
|
class: "component__label",
|
|
2042
|
-
style:
|
|
2043
|
-
}, St(n(
|
|
2044
|
-
|
|
2045
|
-
id: n(
|
|
2053
|
+
style: Ee([Ut.value])
|
|
2054
|
+
}, St(n(fe)), 13, Bl)) : Be("", !0),
|
|
2055
|
+
ve("div", {
|
|
2056
|
+
id: n(N),
|
|
2046
2057
|
ref_key: "chipsContainer",
|
|
2047
2058
|
ref: Vt,
|
|
2048
|
-
class:
|
|
2049
|
-
style:
|
|
2059
|
+
class: We(["nb-reset", "component", Gt.value, Kt.value]),
|
|
2060
|
+
style: Ee([W.value, mt.value, Rt.value])
|
|
2050
2061
|
}, [
|
|
2051
2062
|
H.value.length > 0 ? (O(), j("div", {
|
|
2052
2063
|
key: 0,
|
|
@@ -2063,40 +2074,40 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
|
|
|
2063
2074
|
chip: E,
|
|
2064
2075
|
removeChip: r
|
|
2065
2076
|
}, () => [
|
|
2066
|
-
|
|
2067
|
-
!n(
|
|
2077
|
+
ve("span", _l, St(E), 1),
|
|
2078
|
+
!n(X) && !n(Z) ? (O(), j("span", {
|
|
2068
2079
|
key: 0,
|
|
2069
2080
|
class: "chip-remove",
|
|
2070
|
-
onClick: (
|
|
2071
|
-
}, "×", 8, $l)) :
|
|
2081
|
+
onClick: (qe) => r(E)
|
|
2082
|
+
}, "×", 8, $l)) : Be("", !0)
|
|
2072
2083
|
], !0)
|
|
2073
2084
|
]))), 128))
|
|
2074
|
-
], 512)) :
|
|
2075
|
-
pa(
|
|
2085
|
+
], 512)) : Be("", !0),
|
|
2086
|
+
pa(ve("input", {
|
|
2076
2087
|
ref_key: "chipInput",
|
|
2077
2088
|
ref: kt,
|
|
2078
2089
|
type: "text",
|
|
2079
|
-
"onUpdate:modelValue": g[0] || (g[0] = (E) =>
|
|
2090
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => he.value = E),
|
|
2080
2091
|
id: At.value,
|
|
2081
2092
|
name: At.value,
|
|
2082
2093
|
placeholder: Dt.value,
|
|
2083
|
-
readonly: n(
|
|
2084
|
-
autocomplete: n(
|
|
2085
|
-
required: n(
|
|
2086
|
-
tabindex: n(
|
|
2087
|
-
class:
|
|
2088
|
-
style:
|
|
2089
|
-
onKeydown: g[1] || (g[1] = jt((E) => !n(
|
|
2094
|
+
readonly: n(Z),
|
|
2095
|
+
autocomplete: n(Ce),
|
|
2096
|
+
required: n(ge),
|
|
2097
|
+
tabindex: n(X) || n(Z) ? -1 : n(ue),
|
|
2098
|
+
class: We(["chips-input", wt.value]),
|
|
2099
|
+
style: Ee([Bt.value, Ht.value]),
|
|
2100
|
+
onKeydown: g[1] || (g[1] = jt((E) => !n(X) && n(ee) && Lt(E), ["enter"])),
|
|
2090
2101
|
onFocus: Qt,
|
|
2091
2102
|
onBlur: Jt
|
|
2092
2103
|
}, null, 46, wl), [
|
|
2093
|
-
[Ua,
|
|
2104
|
+
[Ua, he.value]
|
|
2094
2105
|
])
|
|
2095
2106
|
], 14, Al)
|
|
2096
|
-
], 16)) :
|
|
2107
|
+
], 16)) : Be("", !0);
|
|
2097
2108
|
}
|
|
2098
|
-
}), Ml = /* @__PURE__ */ ba(Rl, [["__scopeId", "data-v-
|
|
2099
|
-
const zl = ["id"], Dl = ["for"],
|
|
2109
|
+
}), Ml = /* @__PURE__ */ ba(Rl, [["__scopeId", "data-v-3467aba9"]]);
|
|
2110
|
+
const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], Il = /* @__PURE__ */ Object.assign({
|
|
2100
2111
|
name: "NbTextarea",
|
|
2101
2112
|
inheritAttrs: !1
|
|
2102
2113
|
}, {
|
|
@@ -2466,103 +2477,103 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2466
2477
|
],
|
|
2467
2478
|
setup(e, { emit: m }) {
|
|
2468
2479
|
fa((r) => ({
|
|
2469
|
-
"
|
|
2470
|
-
|
|
2471
|
-
"
|
|
2472
|
-
"
|
|
2473
|
-
"
|
|
2474
|
-
"
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
"
|
|
2478
|
-
|
|
2479
|
-
"
|
|
2480
|
-
"
|
|
2481
|
-
"
|
|
2482
|
-
"
|
|
2483
|
-
"
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
"
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2480
|
+
"047a55d8": I.value,
|
|
2481
|
+
ea886f76: n(Xe),
|
|
2482
|
+
"5f575c4c": wt.value,
|
|
2483
|
+
"49bec09e": Rt.value,
|
|
2484
|
+
"6c0f38b6": Q.value,
|
|
2485
|
+
"39a7a83b": n(nt),
|
|
2486
|
+
f3bddb72: n(yt),
|
|
2487
|
+
"57474d63": n(Te),
|
|
2488
|
+
"2f3efd35": n(Se),
|
|
2489
|
+
dec8fa5e: n(gt),
|
|
2490
|
+
"1a17e7ed": n(ye),
|
|
2491
|
+
"643b68eb": n(lt),
|
|
2492
|
+
"21bee77c": kt.value,
|
|
2493
|
+
"07928033": n(st),
|
|
2494
|
+
"34a18ea8": At.value,
|
|
2495
|
+
"780ea453": ae.value,
|
|
2496
|
+
56538312: $.value,
|
|
2497
|
+
"788359bb": z.value,
|
|
2498
|
+
dfd2f9d6: W.value,
|
|
2499
|
+
ecc55bb6: r.styleButtonColor,
|
|
2500
|
+
f59f43ec: le.value
|
|
2490
2501
|
})), sa(() => {
|
|
2491
|
-
|
|
2502
|
+
k.value = je.value;
|
|
2492
2503
|
}), ma(() => {
|
|
2493
2504
|
Qt();
|
|
2494
2505
|
});
|
|
2495
2506
|
const C = m, P = e, {
|
|
2496
|
-
nbId:
|
|
2497
|
-
display:
|
|
2498
|
-
hasTabIndexEnter:
|
|
2499
|
-
ariaLabel:
|
|
2500
|
-
ariaAttrs:
|
|
2501
|
-
textColor:
|
|
2502
|
-
caretColor:
|
|
2503
|
-
selectionBgColor:
|
|
2504
|
-
selectionTextColor:
|
|
2505
|
-
hasBorderRadius:
|
|
2507
|
+
nbId: N,
|
|
2508
|
+
display: Ve,
|
|
2509
|
+
hasTabIndexEnter: pe,
|
|
2510
|
+
ariaLabel: Ae,
|
|
2511
|
+
ariaAttrs: ke,
|
|
2512
|
+
textColor: se,
|
|
2513
|
+
caretColor: X,
|
|
2514
|
+
selectionBgColor: Pe,
|
|
2515
|
+
selectionTextColor: _e,
|
|
2516
|
+
hasBorderRadius: ne,
|
|
2506
2517
|
borderRadius: G,
|
|
2507
2518
|
disabled: R,
|
|
2508
|
-
fontFamily:
|
|
2509
|
-
fontSize:
|
|
2519
|
+
fontFamily: oe,
|
|
2520
|
+
fontSize: de,
|
|
2510
2521
|
fontWeight: K,
|
|
2511
|
-
fontFamilyMsg:
|
|
2512
|
-
fontSizeMsg:
|
|
2522
|
+
fontFamilyMsg: Le,
|
|
2523
|
+
fontSizeMsg: ce,
|
|
2513
2524
|
fontWeightMsg: F,
|
|
2514
|
-
textMessageColor:
|
|
2515
|
-
inputWidth:
|
|
2516
|
-
inputStyle:
|
|
2517
|
-
activeTextStyle:
|
|
2518
|
-
inputReadonly:
|
|
2525
|
+
textMessageColor: be,
|
|
2526
|
+
inputWidth: Z,
|
|
2527
|
+
inputStyle: Ce,
|
|
2528
|
+
activeTextStyle: ge,
|
|
2529
|
+
inputReadonly: xe,
|
|
2519
2530
|
hasTrim: _,
|
|
2520
|
-
inputUppercase:
|
|
2521
|
-
inputName:
|
|
2522
|
-
inputPlaceholder:
|
|
2523
|
-
inputText:
|
|
2524
|
-
theme:
|
|
2531
|
+
inputUppercase: L,
|
|
2532
|
+
inputName: x,
|
|
2533
|
+
inputPlaceholder: $e,
|
|
2534
|
+
inputText: je,
|
|
2535
|
+
theme: we,
|
|
2525
2536
|
tabindex: at,
|
|
2526
|
-
lightBgColor:
|
|
2537
|
+
lightBgColor: ye,
|
|
2527
2538
|
lightBgColorFocus: lt,
|
|
2528
2539
|
lightDisabledBgColor: gt,
|
|
2529
2540
|
lightTextColor: Xe,
|
|
2530
|
-
darkBgColor:
|
|
2531
|
-
darkBgColorFocus:
|
|
2541
|
+
darkBgColor: Te,
|
|
2542
|
+
darkBgColorFocus: Se,
|
|
2532
2543
|
darkDisabledBgColor: yt,
|
|
2533
2544
|
darkTextColor: nt,
|
|
2534
2545
|
textAlign: st,
|
|
2535
2546
|
showMsg: dt,
|
|
2536
2547
|
hasMsg: ct,
|
|
2537
|
-
showLabel:
|
|
2538
|
-
labelBackground:
|
|
2548
|
+
showLabel: He,
|
|
2549
|
+
labelBackground: Ue,
|
|
2539
2550
|
labelPadding: Ze,
|
|
2540
|
-
labelBorderRadius:
|
|
2551
|
+
labelBorderRadius: Ge,
|
|
2541
2552
|
labelLeft: y,
|
|
2542
|
-
inputLabelMarginActive:
|
|
2543
|
-
labelActiveTop:
|
|
2544
|
-
labelActiveLeft:
|
|
2545
|
-
fontFamilyLabel:
|
|
2546
|
-
fontSizeLabel:
|
|
2547
|
-
fontSizeLabelActive:
|
|
2548
|
-
fontWeightLabel:
|
|
2553
|
+
inputLabelMarginActive: V,
|
|
2554
|
+
labelActiveTop: ue,
|
|
2555
|
+
labelActiveLeft: ee,
|
|
2556
|
+
fontFamilyLabel: me,
|
|
2557
|
+
fontSizeLabel: Re,
|
|
2558
|
+
fontSizeLabelActive: Ke,
|
|
2559
|
+
fontWeightLabel: re,
|
|
2549
2560
|
lightTextColorLabel: d,
|
|
2550
2561
|
lightTextColorLabelActive: b,
|
|
2551
|
-
darkTextColorLabel:
|
|
2562
|
+
darkTextColorLabel: fe,
|
|
2552
2563
|
darkTextColorLabelActive: Y,
|
|
2553
|
-
rows:
|
|
2554
|
-
cols:
|
|
2555
|
-
maxlength:
|
|
2556
|
-
minlength:
|
|
2557
|
-
wrap:
|
|
2564
|
+
rows: te,
|
|
2565
|
+
cols: Me,
|
|
2566
|
+
maxlength: ze,
|
|
2567
|
+
minlength: Fe,
|
|
2568
|
+
wrap: Ye,
|
|
2558
2569
|
spellcheck: et,
|
|
2559
2570
|
autofocus: ot,
|
|
2560
2571
|
resize: ut,
|
|
2561
2572
|
autoResize: ft,
|
|
2562
2573
|
minRows: h,
|
|
2563
2574
|
maxRows: M
|
|
2564
|
-
} = va(P),
|
|
2565
|
-
const r = R.value ? "component-disabled" : "", u =
|
|
2575
|
+
} = va(P), k = J(""), Oe = J(!1), T = a(() => {
|
|
2576
|
+
const r = R.value ? "component-disabled" : "", u = Ve.value !== "b" ? "inline-block" : "block", g = se ? se.value : "ffffff", E = X.value ? X.value : "", qe = Pe.value ? Pe.value : "", It = _e.value ? _e.value : "", Xt = ne.value ? ne.value : !1, ht = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, Wt = oe.value ? oe.value : "'Lato', sans-serif", Et = de.value ? de.value : "1.4em", Zt = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, ea = Le.value ? Le.value : "'Lato', sans-serif", Ct = ce.value ? ce.value : "1em", ta = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, aa = be.value ? be.value : "#f15574", la = Z.value ? Z.value : 200, na = ge.value ? ge.value : "normal", $t = xe.value ? xe.value : !1, oa = L.value ? L.value : !1, ua = we.value ? we.value : "normal", ra = st.value ? st.value : "left", Pt = Ce.value ? Ce.value : "background", Ft = He.value ? He.value : !1, Ot = y.value !== 0 && !y.value || y.value < 0 ? 5 : y.value, bt = Ue.value ? Ue.value : "transparent", Tt = V.value !== 0 && !V.value || V.value < 0 ? 15 : V.value, xt = Ze.value ? Ze.value : "1px 5px", qt = Ge.value !== 0 && !Ge.value || Ge.value < 0 ? 0 : Ge.value, o = ue.value === null || ue.value === void 0 ? -13 : ue.value, f = ee.value === null || ee.value === void 0 ? -10 : ee.value, w = me.value ? me.value : "'Lato', sans-serif", Qe = Re.value ? Re.value : "1em", Je = Ke.value ? Ke.value : "0.8em", t = re.value ? re.value : 400, l = d.value ? d.value : "#ffffff", s = fe.value ? fe.value : "#000000", i = b.value ? b.value : "#ffffff", v = Y.value ? Y.value : "#000000", c = te.value && te.value > 0 ? te.value : 2, p = Me.value && Me.value > 0 ? Me.value : 20, S = ze.value !== null && ze.value >= 0 ? ze.value : null, A = Fe.value !== null && Fe.value >= 0 ? Fe.value : null, D = Ye.value && ["soft", "hard", "off"].includes(Ye.value) ? Ye.value : "soft", q = et.value !== void 0 ? et.value : "default", ie = ot.value !== void 0 ? ot.value : !1, De = ut.value && ["none", "both", "vertical", "horizontal"].includes(ut.value) ? ut.value : "vertical", tt = ft.value !== void 0 ? ft.value : !1, Ne = h.value !== null && h.value > 0 ? h.value : null, Ie = M.value !== null && M.value > 0 ? M.value : null;
|
|
2566
2577
|
return {
|
|
2567
2578
|
disabled: r,
|
|
2568
2579
|
display: u,
|
|
@@ -2575,8 +2586,8 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2575
2586
|
textMessageColor: aa,
|
|
2576
2587
|
textColor: g,
|
|
2577
2588
|
caretColor: E,
|
|
2578
|
-
selectionBgColor:
|
|
2579
|
-
selectionTextColor:
|
|
2589
|
+
selectionBgColor: qe,
|
|
2590
|
+
selectionTextColor: It,
|
|
2580
2591
|
hasBorderRadius: Xt,
|
|
2581
2592
|
borderRadius: ht,
|
|
2582
2593
|
textAlign: ra,
|
|
@@ -2593,28 +2604,28 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2593
2604
|
labelLeft: Ot,
|
|
2594
2605
|
inputLabelMarginActive: Tt,
|
|
2595
2606
|
labelActiveTop: o,
|
|
2596
|
-
labelActiveLeft:
|
|
2607
|
+
labelActiveLeft: f,
|
|
2597
2608
|
fontFamilyLabel: w,
|
|
2598
|
-
fontSizeLabel:
|
|
2599
|
-
fontSizeLabelActive:
|
|
2609
|
+
fontSizeLabel: Qe,
|
|
2610
|
+
fontSizeLabelActive: Je,
|
|
2600
2611
|
fontWeightLabel: t,
|
|
2601
2612
|
lightTextColorLabel: l,
|
|
2602
2613
|
darkTextColorLabel: s,
|
|
2603
2614
|
lightTextColorLabelActive: i,
|
|
2604
|
-
darkTextColorLabelActive:
|
|
2615
|
+
darkTextColorLabelActive: v,
|
|
2605
2616
|
rows: c,
|
|
2606
|
-
cols:
|
|
2607
|
-
maxlength:
|
|
2617
|
+
cols: p,
|
|
2618
|
+
maxlength: S,
|
|
2608
2619
|
minlength: A,
|
|
2609
2620
|
wrap: D,
|
|
2610
2621
|
spellcheck: q,
|
|
2611
|
-
autofocus:
|
|
2612
|
-
resize:
|
|
2622
|
+
autofocus: ie,
|
|
2623
|
+
resize: De,
|
|
2613
2624
|
autoResize: tt,
|
|
2614
|
-
minRows:
|
|
2625
|
+
minRows: Ne,
|
|
2615
2626
|
maxRows: Ie
|
|
2616
2627
|
};
|
|
2617
|
-
}),
|
|
2628
|
+
}), he = a(() => T.value.disabled), Vt = a(() => ({
|
|
2618
2629
|
display: T.value.display
|
|
2619
2630
|
})), kt = a(() => {
|
|
2620
2631
|
const r = T.value;
|
|
@@ -2623,18 +2634,18 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2623
2634
|
const r = T.value, u = mt.value;
|
|
2624
2635
|
return {
|
|
2625
2636
|
fontWeight: r.fontWeight,
|
|
2626
|
-
marginTop: u &&
|
|
2637
|
+
marginTop: u && He.value ? `${r.inputLabelMarginActive}px` : "0"
|
|
2627
2638
|
};
|
|
2628
2639
|
}), H = a(() => {
|
|
2629
2640
|
const r = T.value;
|
|
2630
2641
|
return r.inputStyle !== "line" && r.hasBorderRadius ? { borderRadius: `${r.borderRadius}rem` } : {};
|
|
2631
|
-
}),
|
|
2642
|
+
}), I = a(() => T.value.font), ae = a(() => T.value.fontFamilyMsg), $ = a(() => T.value.fontSizeMsg), z = a(() => T.value.fontWeightMsg), le = a(() => T.value.textColor), W = a(() => T.value.textMessageColor), wt = a(() => {
|
|
2632
2643
|
const r = T.value;
|
|
2633
2644
|
return r.caretColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2634
2645
|
}), Rt = a(() => {
|
|
2635
2646
|
const r = T.value;
|
|
2636
2647
|
return r.selectionBgColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
2637
|
-
}),
|
|
2648
|
+
}), Q = a(() => {
|
|
2638
2649
|
const r = T.value;
|
|
2639
2650
|
return r.selectionTextColor || (r.theme === "dark" ? "#000000" : "#ffffff");
|
|
2640
2651
|
}), vt = a(() => {
|
|
@@ -2643,7 +2654,7 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2643
2654
|
width: `${r.inputWidth}px`
|
|
2644
2655
|
};
|
|
2645
2656
|
}), it = a(() => {
|
|
2646
|
-
switch (
|
|
2657
|
+
switch (Ce.value) {
|
|
2647
2658
|
case "line":
|
|
2648
2659
|
return "component__input--line";
|
|
2649
2660
|
case "border":
|
|
@@ -2667,13 +2678,13 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2667
2678
|
default:
|
|
2668
2679
|
return "component__theme--light";
|
|
2669
2680
|
}
|
|
2670
|
-
}), Mt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""), zt = a(() => T.value.inputUppercase ? "component__input--uppercase" : ""), Bt = a(() =>
|
|
2671
|
-
a(() =>
|
|
2681
|
+
}), Mt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""), zt = a(() => T.value.inputUppercase ? "component__input--uppercase" : ""), Bt = a(() => x.value ? x.value : `${N.value}-name-label`), Ht = a(() => He.value ? Oe.value ? $e.value : "" : $e.value), mt = a(() => Oe.value || k.value && k.value.trim().length > 0);
|
|
2682
|
+
a(() => Oe.value ? "component__input--active" : "component__input--no-active");
|
|
2672
2683
|
const At = a(() => "6px 10px"), _t = a(() => !!(dt.value && ct.value)), Dt = a(() => {
|
|
2673
2684
|
const r = {};
|
|
2674
|
-
|
|
2685
|
+
ke.value && Object.keys(ke.value).forEach((E) => r[`aria-${E}`] = ke.value[E]);
|
|
2675
2686
|
const u = {
|
|
2676
|
-
"aria-label":
|
|
2687
|
+
"aria-label": Ae.value,
|
|
2677
2688
|
"aria-disabled": R.value,
|
|
2678
2689
|
...r
|
|
2679
2690
|
};
|
|
@@ -2715,43 +2726,43 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2715
2726
|
whiteSpace: "nowrap",
|
|
2716
2727
|
overflowX: "auto"
|
|
2717
2728
|
} : {}), Qt = () => {
|
|
2718
|
-
|
|
2729
|
+
k.value = je.value;
|
|
2719
2730
|
}, Jt = () => {
|
|
2720
2731
|
C("clicked");
|
|
2721
2732
|
}, Lt = () => {
|
|
2722
|
-
R.value || T.value.inputReadonly || !
|
|
2723
|
-
},
|
|
2724
|
-
let r =
|
|
2733
|
+
R.value || T.value.inputReadonly || !pe.value || C("entered", k.value);
|
|
2734
|
+
}, Nt = () => {
|
|
2735
|
+
let r = k.value;
|
|
2725
2736
|
_.value && (r = r.trim()), C("current-value", r);
|
|
2726
2737
|
};
|
|
2727
|
-
return U(
|
|
2728
|
-
r !==
|
|
2729
|
-
}, { immediate: !0 }), U(
|
|
2738
|
+
return U(je, (r) => {
|
|
2739
|
+
r !== k.value && (k.value = r);
|
|
2740
|
+
}, { immediate: !0 }), U(k, (r) => {
|
|
2730
2741
|
_.value && (r = r.trim()), C("changed", r);
|
|
2731
|
-
}), U(
|
|
2742
|
+
}), U(Oe, (r) => {
|
|
2732
2743
|
C(r ? "focused" : "blurred");
|
|
2733
|
-
}), U(
|
|
2734
|
-
|
|
2735
|
-
}, { immediate: !0 }), (r, u) => n(
|
|
2744
|
+
}), U(k, () => {
|
|
2745
|
+
Nt();
|
|
2746
|
+
}, { immediate: !0 }), (r, u) => n(N) ? (O(), j("div", da({
|
|
2736
2747
|
key: 0,
|
|
2737
|
-
class: ["nb-wrapper",
|
|
2748
|
+
class: ["nb-wrapper", he.value],
|
|
2738
2749
|
style: [Vt.value, vt.value, H.value],
|
|
2739
2750
|
role: "input"
|
|
2740
2751
|
}, Dt.value), [
|
|
2741
|
-
|
|
2742
|
-
id: n(
|
|
2743
|
-
class:
|
|
2744
|
-
style:
|
|
2752
|
+
ve("div", {
|
|
2753
|
+
id: n(N),
|
|
2754
|
+
class: We(["nb-reset", "component", B.value, Mt.value, it.value]),
|
|
2755
|
+
style: Ee([rt.value, vt.value, H.value]),
|
|
2745
2756
|
onClick: Jt
|
|
2746
2757
|
}, [
|
|
2747
|
-
n(
|
|
2758
|
+
n(He) ? (O(), j("label", {
|
|
2748
2759
|
key: 0,
|
|
2749
2760
|
for: Bt.value,
|
|
2750
2761
|
class: "component__label",
|
|
2751
|
-
style:
|
|
2752
|
-
}, St(e.label), 13, Dl)) :
|
|
2753
|
-
pa(
|
|
2754
|
-
"onUpdate:modelValue": u[0] || (u[0] = (g) =>
|
|
2762
|
+
style: Ee([Ut.value])
|
|
2763
|
+
}, St(e.label), 13, Dl)) : Be("", !0),
|
|
2764
|
+
pa(ve("textarea", da({
|
|
2765
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => k.value = g),
|
|
2755
2766
|
id: Bt.value,
|
|
2756
2767
|
name: Bt.value
|
|
2757
2768
|
}, Gt.value, {
|
|
@@ -2760,32 +2771,32 @@ const zl = ["id"], Dl = ["for"], Il = ["id", "name", "placeholder", "disabled",
|
|
|
2760
2771
|
pt.value
|
|
2761
2772
|
]],
|
|
2762
2773
|
placeholder: Ht.value,
|
|
2763
|
-
disabled: n(R) || n(
|
|
2774
|
+
disabled: n(R) || n(xe),
|
|
2764
2775
|
required: e.required,
|
|
2765
|
-
readonly: n(
|
|
2776
|
+
readonly: n(xe),
|
|
2766
2777
|
autocomplete: e.inputAutocomplete,
|
|
2767
|
-
tabindex: n(R) || n(
|
|
2778
|
+
tabindex: n(R) || n(xe) ? -1 : n(at),
|
|
2768
2779
|
role: "textbox",
|
|
2769
2780
|
style: [H.value, Kt.value, Yt.value],
|
|
2770
|
-
onFocus: u[1] || (u[1] = (g) =>
|
|
2771
|
-
onBlur: u[2] || (u[2] = (g) =>
|
|
2772
|
-
onInput:
|
|
2773
|
-
onKeydown: u[3] || (u[3] = jt((g) => !n(R) && n(
|
|
2774
|
-
}), null, 16,
|
|
2775
|
-
[Ua,
|
|
2781
|
+
onFocus: u[1] || (u[1] = (g) => Oe.value = !0),
|
|
2782
|
+
onBlur: u[2] || (u[2] = (g) => Oe.value = !1),
|
|
2783
|
+
onInput: Nt,
|
|
2784
|
+
onKeydown: u[3] || (u[3] = jt((g) => !n(R) && n(pe) && Lt(), ["enter"]))
|
|
2785
|
+
}), null, 16, Nl), [
|
|
2786
|
+
[Ua, k.value]
|
|
2776
2787
|
])
|
|
2777
2788
|
], 14, zl),
|
|
2778
2789
|
_t.value ? (O(), j("div", {
|
|
2779
2790
|
key: 0,
|
|
2780
|
-
class:
|
|
2791
|
+
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
2781
2792
|
}, [
|
|
2782
2793
|
ia(r.$slots, "message", {}, () => [
|
|
2783
2794
|
ga(St(e.message), 1)
|
|
2784
2795
|
], !0)
|
|
2785
|
-
], 2)) :
|
|
2786
|
-
], 16)) :
|
|
2796
|
+
], 2)) : Be("", !0)
|
|
2797
|
+
], 16)) : Be("", !0);
|
|
2787
2798
|
}
|
|
2788
|
-
}), Wl = /* @__PURE__ */ ba(
|
|
2799
|
+
}), Wl = /* @__PURE__ */ ba(Il, [["__scopeId", "data-v-c4b7eb6b"]]);
|
|
2789
2800
|
const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Ol = /* @__PURE__ */ Object.assign({
|
|
2790
2801
|
name: "NbDatePicker",
|
|
2791
2802
|
inheritAttrs: !1
|
|
@@ -3128,108 +3139,108 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3128
3139
|
],
|
|
3129
3140
|
setup(e, { emit: m }) {
|
|
3130
3141
|
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
|
-
|
|
3142
|
+
"61b2bd67": pt.value,
|
|
3143
|
+
"7d03ac89": Q.value,
|
|
3144
|
+
cfe0b650: n(Ue),
|
|
3145
|
+
"0701dbce": mt.value,
|
|
3146
|
+
"51e828ab": At.value,
|
|
3147
|
+
"0f7ed183": _t.value,
|
|
3148
|
+
d6272570: n(V),
|
|
3149
|
+
"39af1994": n(y),
|
|
3150
|
+
"3723f1b0": n(Ze),
|
|
3151
|
+
"66d8e666": Bt.value,
|
|
3152
|
+
"370e0108": n(Ge),
|
|
3153
|
+
"26ed153e": It.value,
|
|
3154
|
+
"68d2e63a": Xt.value,
|
|
3155
|
+
"4ece6524": n(He),
|
|
3156
|
+
"35cfcd40": n(dt),
|
|
3157
|
+
"564cdf78": n(ct),
|
|
3158
|
+
"32f5d3c0": n(ue),
|
|
3159
|
+
"01671dff": g.value,
|
|
3160
|
+
"57eb48a0": B.value,
|
|
3161
|
+
"19098e42": Mt.value,
|
|
3162
|
+
"6a94d048": zt.value,
|
|
3163
|
+
cf8029bc: Ht.value,
|
|
3164
|
+
dd275410: t.styleButtonColor
|
|
3154
3165
|
}));
|
|
3155
3166
|
const C = nl(
|
|
3156
3167
|
() => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
|
|
3157
3168
|
);
|
|
3158
3169
|
sa(() => {
|
|
3159
|
-
h.value =
|
|
3170
|
+
h.value = we.value;
|
|
3160
3171
|
}), ma(() => {
|
|
3161
3172
|
Wt();
|
|
3162
3173
|
});
|
|
3163
|
-
const P = m,
|
|
3164
|
-
nbId:
|
|
3165
|
-
display:
|
|
3166
|
-
hasTabIndexEnter:
|
|
3167
|
-
ariaLabel:
|
|
3168
|
-
ariaAttrs:
|
|
3169
|
-
caretColor:
|
|
3170
|
-
selectionBgColor:
|
|
3171
|
-
selectionTextColor:
|
|
3172
|
-
hasBorderRadius:
|
|
3174
|
+
const P = m, N = e, {
|
|
3175
|
+
nbId: Ve,
|
|
3176
|
+
display: pe,
|
|
3177
|
+
hasTabIndexEnter: Ae,
|
|
3178
|
+
ariaLabel: ke,
|
|
3179
|
+
ariaAttrs: se,
|
|
3180
|
+
caretColor: X,
|
|
3181
|
+
selectionBgColor: Pe,
|
|
3182
|
+
selectionTextColor: _e,
|
|
3183
|
+
hasBorderRadius: ne,
|
|
3173
3184
|
borderRadius: G,
|
|
3174
3185
|
disabled: R,
|
|
3175
|
-
fontFamily:
|
|
3176
|
-
fontSize:
|
|
3186
|
+
fontFamily: oe,
|
|
3187
|
+
fontSize: de,
|
|
3177
3188
|
fontWeight: K,
|
|
3178
|
-
fontFamilyMsg:
|
|
3179
|
-
fontSizeMsg:
|
|
3189
|
+
fontFamilyMsg: Le,
|
|
3190
|
+
fontSizeMsg: ce,
|
|
3180
3191
|
fontWeightMsg: F,
|
|
3181
|
-
textMessageColor:
|
|
3182
|
-
inputWidth:
|
|
3183
|
-
inputStyle:
|
|
3184
|
-
activeTextStyle:
|
|
3185
|
-
sizeMediaQuery:
|
|
3192
|
+
textMessageColor: be,
|
|
3193
|
+
inputWidth: Z,
|
|
3194
|
+
inputStyle: Ce,
|
|
3195
|
+
activeTextStyle: ge,
|
|
3196
|
+
sizeMediaQuery: xe,
|
|
3186
3197
|
inputReadonly: _,
|
|
3187
|
-
inputType:
|
|
3188
|
-
hasTrim:
|
|
3189
|
-
inputUppercase:
|
|
3190
|
-
inputName:
|
|
3191
|
-
inputText:
|
|
3198
|
+
inputType: L,
|
|
3199
|
+
hasTrim: x,
|
|
3200
|
+
inputUppercase: $e,
|
|
3201
|
+
inputName: je,
|
|
3202
|
+
inputText: we,
|
|
3192
3203
|
min: at,
|
|
3193
|
-
max:
|
|
3204
|
+
max: ye,
|
|
3194
3205
|
step: lt,
|
|
3195
3206
|
useCustomCalendar: gt,
|
|
3196
3207
|
locale: Xe,
|
|
3197
|
-
theme:
|
|
3198
|
-
allowRange:
|
|
3208
|
+
theme: Te,
|
|
3209
|
+
allowRange: Se,
|
|
3199
3210
|
calendarZIndex: yt,
|
|
3200
3211
|
calendarWidth: nt,
|
|
3201
3212
|
tabindex: st,
|
|
3202
3213
|
lightBgColor: dt,
|
|
3203
3214
|
lightBgColorFocus: ct,
|
|
3204
|
-
lightDisabledBgColor:
|
|
3205
|
-
lightTextColor:
|
|
3215
|
+
lightDisabledBgColor: He,
|
|
3216
|
+
lightTextColor: Ue,
|
|
3206
3217
|
darkBgColor: Ze,
|
|
3207
|
-
darkBgColorFocus:
|
|
3218
|
+
darkBgColorFocus: Ge,
|
|
3208
3219
|
darkDisabledBgColor: y,
|
|
3209
|
-
darkTextColor:
|
|
3210
|
-
textAlign:
|
|
3211
|
-
showMsg:
|
|
3212
|
-
hasMsg:
|
|
3213
|
-
showLabel:
|
|
3214
|
-
labelBackground:
|
|
3215
|
-
labelPadding:
|
|
3220
|
+
darkTextColor: V,
|
|
3221
|
+
textAlign: ue,
|
|
3222
|
+
showMsg: ee,
|
|
3223
|
+
hasMsg: me,
|
|
3224
|
+
showLabel: Re,
|
|
3225
|
+
labelBackground: Ke,
|
|
3226
|
+
labelPadding: re,
|
|
3216
3227
|
labelBorderRadius: d,
|
|
3217
3228
|
labelLeft: b,
|
|
3218
|
-
inputLabelMarginActive:
|
|
3229
|
+
inputLabelMarginActive: fe,
|
|
3219
3230
|
labelActiveTop: Y,
|
|
3220
|
-
labelActiveLeft:
|
|
3221
|
-
fontFamilyLabel:
|
|
3222
|
-
fontSizeLabel:
|
|
3223
|
-
fontSizeLabelActive:
|
|
3224
|
-
fontWeightLabel:
|
|
3231
|
+
labelActiveLeft: te,
|
|
3232
|
+
fontFamilyLabel: Me,
|
|
3233
|
+
fontSizeLabel: ze,
|
|
3234
|
+
fontSizeLabelActive: Fe,
|
|
3235
|
+
fontWeightLabel: Ye,
|
|
3225
3236
|
lightTextColorLabel: et,
|
|
3226
3237
|
lightTextColorLabelActive: ot,
|
|
3227
3238
|
darkTextColorLabel: ut,
|
|
3228
3239
|
darkTextColorLabelActive: ft
|
|
3229
|
-
} = va(
|
|
3240
|
+
} = va(N), h = J(""), M = J(""), k = J(""), Oe = J(""), T = J(!1), he = J(!1), Vt = a(() => !nt.value || nt.value < 280 ? 280 : parseInt(nt.value, 10)), kt = a(() => {
|
|
3230
3241
|
if (!h.value)
|
|
3231
3242
|
return null;
|
|
3232
|
-
if (
|
|
3243
|
+
if (Se.value && typeof h.value == "string" && h.value.startsWith("{"))
|
|
3233
3244
|
try {
|
|
3234
3245
|
const t = JSON.parse(h.value);
|
|
3235
3246
|
if (t && (t.startDate || t.endDate)) {
|
|
@@ -3237,8 +3248,8 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3237
3248
|
if (!s)
|
|
3238
3249
|
return null;
|
|
3239
3250
|
if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
|
|
3240
|
-
const [i,
|
|
3241
|
-
return new Date(i,
|
|
3251
|
+
const [i, v, c] = s.split("-").map(Number);
|
|
3252
|
+
return new Date(i, v - 1, c);
|
|
3242
3253
|
}
|
|
3243
3254
|
return new Date(s);
|
|
3244
3255
|
};
|
|
@@ -3249,7 +3260,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3249
3260
|
}
|
|
3250
3261
|
} catch {
|
|
3251
3262
|
}
|
|
3252
|
-
if (
|
|
3263
|
+
if (L.value === "date" && typeof h.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(h.value)) {
|
|
3253
3264
|
const [t, l, s] = h.value.split("-").map(Number);
|
|
3254
3265
|
return new Date(t, l - 1, s);
|
|
3255
3266
|
}
|
|
@@ -3259,50 +3270,50 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3259
3270
|
return "";
|
|
3260
3271
|
const i = s || Xe.value;
|
|
3261
3272
|
if (l === "date") {
|
|
3262
|
-
if (
|
|
3273
|
+
if (Se.value && typeof t == "string" && t.startsWith("{"))
|
|
3263
3274
|
try {
|
|
3264
|
-
const
|
|
3265
|
-
if (
|
|
3275
|
+
const v = JSON.parse(t);
|
|
3276
|
+
if (v && (v.startDate || v.endDate)) {
|
|
3266
3277
|
const c = (A) => {
|
|
3267
3278
|
if (!A)
|
|
3268
3279
|
return "";
|
|
3269
3280
|
if (/^\d{4}-\d{2}-\d{2}$/.test(A)) {
|
|
3270
|
-
const [D, q,
|
|
3271
|
-
return i === "pt-BR" ? `${
|
|
3281
|
+
const [D, q, ie] = A.split("-");
|
|
3282
|
+
return i === "pt-BR" ? `${ie}/${q}/${D}` : `${q}/${ie}/${D}`;
|
|
3272
3283
|
}
|
|
3273
3284
|
return A;
|
|
3274
|
-
},
|
|
3275
|
-
if (
|
|
3276
|
-
return `${
|
|
3277
|
-
if (
|
|
3278
|
-
return
|
|
3279
|
-
if (
|
|
3280
|
-
return
|
|
3285
|
+
}, p = c(v.startDate), S = c(v.endDate);
|
|
3286
|
+
if (p && S)
|
|
3287
|
+
return `${p} - ${S}`;
|
|
3288
|
+
if (p)
|
|
3289
|
+
return p;
|
|
3290
|
+
if (S)
|
|
3291
|
+
return S;
|
|
3281
3292
|
}
|
|
3282
3293
|
} catch {
|
|
3283
3294
|
}
|
|
3284
3295
|
if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}$/.test(t)) {
|
|
3285
|
-
const [
|
|
3286
|
-
return i === "pt-BR" ? `${
|
|
3296
|
+
const [v, c, p] = t.split("-");
|
|
3297
|
+
return i === "pt-BR" ? `${p}/${c}/${v}` : `${c}/${p}/${v}`;
|
|
3287
3298
|
}
|
|
3288
3299
|
return t;
|
|
3289
3300
|
} else if (l === "datetime-local") {
|
|
3290
3301
|
if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
|
|
3291
|
-
const [
|
|
3292
|
-
return i === "pt-BR" ? `${A}/${
|
|
3302
|
+
const [v, c] = t.split("T"), [p, S, A] = v.split("-");
|
|
3303
|
+
return i === "pt-BR" ? `${A}/${S}/${p} ${c}` : `${S}/${A}/${p} ${c}`;
|
|
3293
3304
|
}
|
|
3294
3305
|
return t;
|
|
3295
3306
|
} else if (l === "month") {
|
|
3296
3307
|
if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
|
|
3297
|
-
const [
|
|
3298
|
-
return `${c}/${
|
|
3308
|
+
const [v, c] = t.split("-");
|
|
3309
|
+
return `${c}/${v}`;
|
|
3299
3310
|
}
|
|
3300
3311
|
return t;
|
|
3301
3312
|
} else if (l === "week") {
|
|
3302
3313
|
if (typeof t == "string" && /^\d{4}-W\d{2}$/i.test(t)) {
|
|
3303
|
-
const
|
|
3304
|
-
if (
|
|
3305
|
-
return i === "pt-BR" ? `Semana ${
|
|
3314
|
+
const v = t.match(/^(\d{4})-W(\d{2})$/i);
|
|
3315
|
+
if (v)
|
|
3316
|
+
return i === "pt-BR" ? `Semana ${v[2]} de ${v[1]}` : `Week ${v[2]} of ${v[1]}`;
|
|
3306
3317
|
}
|
|
3307
3318
|
return t;
|
|
3308
3319
|
}
|
|
@@ -3310,75 +3321,75 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3310
3321
|
}, H = (t, l, s) => {
|
|
3311
3322
|
if (!t || !t.trim())
|
|
3312
3323
|
return "";
|
|
3313
|
-
const i = t.trim(),
|
|
3324
|
+
const i = t.trim(), v = s || Xe.value;
|
|
3314
3325
|
if (l === "date") {
|
|
3315
|
-
if (
|
|
3316
|
-
const c = i.split(/\s*-\s*/).map((D) => D.trim()),
|
|
3326
|
+
if (Se.value && i.includes("-")) {
|
|
3327
|
+
const c = i.split(/\s*-\s*/).map((D) => D.trim()), p = (D) => {
|
|
3317
3328
|
if (!D)
|
|
3318
3329
|
return null;
|
|
3319
3330
|
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(D)) {
|
|
3320
3331
|
const q = D.split("/");
|
|
3321
|
-
if (
|
|
3322
|
-
const [
|
|
3323
|
-
return `${tt}-${Ie}-${
|
|
3332
|
+
if (v === "pt-BR") {
|
|
3333
|
+
const [ie, De, tt] = q, Ne = ie.padStart(2, "0"), Ie = De.padStart(2, "0");
|
|
3334
|
+
return `${tt}-${Ie}-${Ne}`;
|
|
3324
3335
|
} else {
|
|
3325
|
-
const [
|
|
3326
|
-
return `${tt}-${Ie}-${
|
|
3336
|
+
const [ie, De, tt] = q, Ne = De.padStart(2, "0"), Ie = ie.padStart(2, "0");
|
|
3337
|
+
return `${tt}-${Ie}-${Ne}`;
|
|
3327
3338
|
}
|
|
3328
3339
|
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(D)) {
|
|
3329
|
-
const q = D.split("-"), [
|
|
3330
|
-
return `${
|
|
3340
|
+
const q = D.split("-"), [ie, De, tt] = q, Ne = tt.padStart(2, "0"), Ie = De.padStart(2, "0");
|
|
3341
|
+
return `${ie}-${Ie}-${Ne}`;
|
|
3331
3342
|
}
|
|
3332
3343
|
return null;
|
|
3333
3344
|
};
|
|
3334
|
-
let
|
|
3335
|
-
if (
|
|
3336
|
-
const D = new Date(
|
|
3345
|
+
let S = p(c[0]), A = c[1] ? p(c[1]) : null;
|
|
3346
|
+
if (S && A) {
|
|
3347
|
+
const D = new Date(S);
|
|
3337
3348
|
if (new Date(A) < D) {
|
|
3338
|
-
const
|
|
3339
|
-
|
|
3349
|
+
const ie = S;
|
|
3350
|
+
S = A, A = ie;
|
|
3340
3351
|
}
|
|
3341
|
-
return JSON.stringify({ startDate:
|
|
3342
|
-
} else if (
|
|
3343
|
-
return JSON.stringify({ startDate:
|
|
3352
|
+
return JSON.stringify({ startDate: S, endDate: A });
|
|
3353
|
+
} else if (S)
|
|
3354
|
+
return JSON.stringify({ startDate: S, endDate: null });
|
|
3344
3355
|
return "";
|
|
3345
3356
|
}
|
|
3346
3357
|
if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(i)) {
|
|
3347
3358
|
const c = i.split("/");
|
|
3348
|
-
if (
|
|
3349
|
-
const [
|
|
3359
|
+
if (v === "pt-BR") {
|
|
3360
|
+
const [p, S, A] = c, D = p.padStart(2, "0"), q = S.padStart(2, "0");
|
|
3350
3361
|
return `${A}-${q}-${D}`;
|
|
3351
3362
|
} else {
|
|
3352
|
-
const [
|
|
3363
|
+
const [p, S, A] = c, D = S.padStart(2, "0"), q = p.padStart(2, "0");
|
|
3353
3364
|
return `${A}-${q}-${D}`;
|
|
3354
3365
|
}
|
|
3355
3366
|
} else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)) {
|
|
3356
|
-
const c = i.split("-"), [
|
|
3357
|
-
return `${
|
|
3367
|
+
const c = i.split("-"), [p, S, A] = c, D = A.padStart(2, "0"), q = S.padStart(2, "0");
|
|
3368
|
+
return `${p}-${q}-${D}`;
|
|
3358
3369
|
}
|
|
3359
3370
|
return "";
|
|
3360
3371
|
} else if (l === "datetime-local") {
|
|
3361
3372
|
if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
|
|
3362
|
-
const [c,
|
|
3363
|
-
if (
|
|
3364
|
-
const [A, D, q] =
|
|
3365
|
-
return `${q}-${
|
|
3373
|
+
const [c, p] = i.split(" "), S = c.split("/");
|
|
3374
|
+
if (v === "pt-BR") {
|
|
3375
|
+
const [A, D, q] = S, ie = A.padStart(2, "0"), De = D.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
|
|
3376
|
+
return `${q}-${De}-${ie}T${Ne}`;
|
|
3366
3377
|
} else {
|
|
3367
|
-
const [A, D, q] =
|
|
3368
|
-
return `${q}-${
|
|
3378
|
+
const [A, D, q] = S, ie = D.padStart(2, "0"), De = A.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
|
|
3379
|
+
return `${q}-${De}-${ie}T${Ne}`;
|
|
3369
3380
|
}
|
|
3370
3381
|
} else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
|
|
3371
|
-
const [c,
|
|
3372
|
-
return `${A}-${
|
|
3382
|
+
const [c, p] = i.split("T"), S = c.split("-"), [A, D, q] = S, ie = q.padStart(2, "0"), De = D.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
|
|
3383
|
+
return `${A}-${De}-${ie}T${Ne}`;
|
|
3373
3384
|
}
|
|
3374
3385
|
return "";
|
|
3375
3386
|
} else if (l === "month") {
|
|
3376
3387
|
if (/^\d{1,2}\/\d{4}$/.test(i)) {
|
|
3377
|
-
const [c,
|
|
3378
|
-
return `${
|
|
3388
|
+
const [c, p] = i.split("/"), S = c.padStart(2, "0");
|
|
3389
|
+
return `${p}-${S}`;
|
|
3379
3390
|
} else if (/^\d{4}-\d{1,2}$/.test(i)) {
|
|
3380
|
-
const [c,
|
|
3381
|
-
return `${c}-${
|
|
3391
|
+
const [c, p] = i.split("-"), S = p.padStart(2, "0");
|
|
3392
|
+
return `${c}-${S}`;
|
|
3382
3393
|
}
|
|
3383
3394
|
return "";
|
|
3384
3395
|
} else if (l === "week") {
|
|
@@ -3387,29 +3398,29 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3387
3398
|
const c = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
|
|
3388
3399
|
if (c)
|
|
3389
3400
|
return `${c[2]}-W${c[1]}`;
|
|
3390
|
-
const
|
|
3391
|
-
return
|
|
3401
|
+
const p = i.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
|
|
3402
|
+
return p ? `${p[2]}-W${p[1]}` : "";
|
|
3392
3403
|
}
|
|
3393
3404
|
return i;
|
|
3394
|
-
},
|
|
3395
|
-
const t = R.value ? "component-disabled" : "", l =
|
|
3405
|
+
}, I = J(!1), ae = J({ top: 0, left: 0 }), $ = J(null), z = J(null), le = a(() => gt.value === !0), W = a(() => {
|
|
3406
|
+
const t = R.value ? "component-disabled" : "", l = pe.value !== "b" ? "inline-block" : "block", s = X.value ? X.value : "", i = Pe.value ? Pe.value : "", v = _e.value ? _e.value : "", c = ne.value ? ne.value : !1, p = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, S = oe.value ? oe.value : "'Lato', sans-serif", A = de.value ? de.value : "1.4em", D = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, q = Le.value ? Le.value : "'Lato', sans-serif", ie = ce.value ? ce.value : "1em", De = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, tt = be.value ? be.value : "#f15574", Ne = Z.value ? Z.value : 200, Ie = ge.value ? ge.value : "normal", ha = "sm", Ca = _.value ? _.value : !1, xa = L.value ? L.value : "date", Sa = $e.value ? $e.value : !1, Va = Te.value ? Te.value : "normal", ka = ue.value ? ue.value : "left", La = Ce.value ? Ce.value : "background", Ta = Re.value ? Re.value : !1, Ba = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Aa = Ke.value ? Ke.value : "transparent", _a = fe.value !== 0 && !fe.value || fe.value < 0 ? 15 : fe.value, $a = re.value ? re.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 = te.value === null || te.value === void 0 ? -10 : te.value, za = Me.value ? Me.value : "'Lato', sans-serif", Da = ze.value ? ze.value : "1em", Na = Fe.value ? Fe.value : "0.8em", Ia = Ye.value ? Ye.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
3407
|
return {
|
|
3397
3408
|
disabled: t,
|
|
3398
3409
|
display: l,
|
|
3399
|
-
font:
|
|
3410
|
+
font: S,
|
|
3400
3411
|
fontSize: A,
|
|
3401
3412
|
fontWeight: D,
|
|
3402
3413
|
fontFamilyMsg: q,
|
|
3403
|
-
fontSizeMsg:
|
|
3404
|
-
fontWeightMsg:
|
|
3414
|
+
fontSizeMsg: ie,
|
|
3415
|
+
fontWeightMsg: De,
|
|
3405
3416
|
textMessageColor: tt,
|
|
3406
3417
|
caretColor: s,
|
|
3407
3418
|
selectionBgColor: i,
|
|
3408
|
-
selectionTextColor:
|
|
3419
|
+
selectionTextColor: v,
|
|
3409
3420
|
hasBorderRadius: c,
|
|
3410
|
-
borderRadius:
|
|
3421
|
+
borderRadius: p,
|
|
3411
3422
|
textAlign: ka,
|
|
3412
|
-
inputWidth:
|
|
3423
|
+
inputWidth: Ne,
|
|
3413
3424
|
activeTextStyle: Ie,
|
|
3414
3425
|
sizeMediaQuery: ha,
|
|
3415
3426
|
inputReadonly: Ca,
|
|
@@ -3427,8 +3438,8 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3427
3438
|
labelActiveLeft: Ma,
|
|
3428
3439
|
fontFamilyLabel: za,
|
|
3429
3440
|
fontSizeLabel: Da,
|
|
3430
|
-
fontSizeLabelActive:
|
|
3431
|
-
fontWeightLabel:
|
|
3441
|
+
fontSizeLabelActive: Na,
|
|
3442
|
+
fontWeightLabel: Ia,
|
|
3432
3443
|
lightTextColorLabel: Wa,
|
|
3433
3444
|
darkTextColorLabel: Ea,
|
|
3434
3445
|
lightTextColorLabelActive: Pa,
|
|
@@ -3436,19 +3447,19 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3436
3447
|
};
|
|
3437
3448
|
}), wt = a(() => W.value.disabled), Rt = a(() => ({
|
|
3438
3449
|
display: W.value.display
|
|
3439
|
-
})),
|
|
3450
|
+
})), Q = a(() => {
|
|
3440
3451
|
const t = W.value;
|
|
3441
3452
|
return t.fontSize ? t.fontSize : "1.4em";
|
|
3442
3453
|
}), vt = a(() => {
|
|
3443
3454
|
const t = W.value, l = r.value;
|
|
3444
3455
|
return {
|
|
3445
3456
|
fontWeight: t.fontWeight,
|
|
3446
|
-
marginTop: l &&
|
|
3457
|
+
marginTop: l && Re.value ? `${t.inputLabelMarginActive}px` : "0"
|
|
3447
3458
|
};
|
|
3448
3459
|
}), it = a(() => {
|
|
3449
3460
|
const t = W.value;
|
|
3450
3461
|
return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
|
|
3451
|
-
}), pt = a(() => W.value.font), B = a(() => W.value.fontFamilyMsg), Mt = a(() => W.value.fontSizeMsg), zt = a(() => W.value.fontWeightMsg), Bt = a(() =>
|
|
3462
|
+
}), pt = a(() => W.value.font), B = a(() => W.value.fontFamilyMsg), Mt = a(() => W.value.fontSizeMsg), zt = a(() => W.value.fontWeightMsg), Bt = a(() => Te.value === "dark" ? V.value : Ue.value), Ht = a(() => W.value.textMessageColor), mt = a(() => {
|
|
3452
3463
|
const t = W.value;
|
|
3453
3464
|
return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
|
|
3454
3465
|
}), At = a(() => {
|
|
@@ -3463,7 +3474,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3463
3474
|
width: `${t.inputWidth}px`
|
|
3464
3475
|
};
|
|
3465
3476
|
}), Ut = a(() => {
|
|
3466
|
-
switch (
|
|
3477
|
+
switch (Ce.value) {
|
|
3467
3478
|
case "line":
|
|
3468
3479
|
return "component__input--line";
|
|
3469
3480
|
case "border":
|
|
@@ -3487,24 +3498,24 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3487
3498
|
default:
|
|
3488
3499
|
return "component__theme--light";
|
|
3489
3500
|
}
|
|
3490
|
-
}), Qt = a(() => W.value.inputReadonly ? "component__input--read-only" : ""), Jt = a(() => W.value.inputUppercase ? "component__input--uppercase" : ""), Lt = a(() =>
|
|
3501
|
+
}), Qt = a(() => W.value.inputReadonly ? "component__input--read-only" : ""), Jt = a(() => W.value.inputUppercase ? "component__input--uppercase" : ""), Lt = a(() => je.value ? je.value : `${Ve.value}-name-label`), Nt = 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
3502
|
a(() => T.value ? "component__input--active" : "component__input--no-active");
|
|
3492
|
-
const g = a(() => "6px 10px"), E = a(() => !!(
|
|
3503
|
+
const g = a(() => "6px 10px"), E = a(() => !!(ee.value && me.value)), qe = a(() => {
|
|
3493
3504
|
const t = {};
|
|
3494
|
-
|
|
3505
|
+
se.value && Object.keys(se.value).forEach((i) => t[`aria-${i}`] = se.value[i]);
|
|
3495
3506
|
const l = {
|
|
3496
|
-
"aria-label":
|
|
3507
|
+
"aria-label": ke.value,
|
|
3497
3508
|
"aria-disabled": R.value,
|
|
3498
3509
|
...t
|
|
3499
3510
|
};
|
|
3500
3511
|
return Object.fromEntries(
|
|
3501
3512
|
Object.entries(l).filter(([s, i]) => i != null)
|
|
3502
3513
|
);
|
|
3503
|
-
}),
|
|
3504
|
-
const t =
|
|
3514
|
+
}), It = a(() => {
|
|
3515
|
+
const t = Te.value === "dark" ? Ze.value : dt.value, l = Te.value === "dark" ? V.value : Ue.value;
|
|
3505
3516
|
return t === "transparent" || t === "#transparent" || !t ? l : t;
|
|
3506
3517
|
}), Xt = a(() => {
|
|
3507
|
-
const t =
|
|
3518
|
+
const t = Te.value === "dark" ? Ge.value : ct.value, l = Te.value === "dark" ? V.value : Ue.value;
|
|
3508
3519
|
return t === "transparent" || t === "#transparent" || !t ? l : t;
|
|
3509
3520
|
}), ht = a(() => {
|
|
3510
3521
|
const t = W.value, l = r.value, s = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
|
|
@@ -3527,51 +3538,51 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3527
3538
|
return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
|
|
3528
3539
|
});
|
|
3529
3540
|
const Wt = () => {
|
|
3530
|
-
h.value =
|
|
3541
|
+
h.value = we.value, Oe.value = L.value;
|
|
3531
3542
|
}, Et = () => {
|
|
3532
3543
|
P("clicked");
|
|
3533
3544
|
}, Zt = (t) => {
|
|
3534
|
-
t.stopPropagation(), !(R.value || W.value.inputReadonly) && $.value && ($.value.focus(),
|
|
3535
|
-
Ct(),
|
|
3545
|
+
t.stopPropagation(), !(R.value || W.value.inputReadonly) && $.value && ($.value.focus(), le.value && (I.value = !1, requestAnimationFrame(() => {
|
|
3546
|
+
Ct(), I.value = !0;
|
|
3536
3547
|
})));
|
|
3537
3548
|
}, ea = () => {
|
|
3538
|
-
R.value || W.value.inputReadonly || !
|
|
3549
|
+
R.value || W.value.inputReadonly || !Ae.value || P("entered", h.value);
|
|
3539
3550
|
}, Ct = () => {
|
|
3540
3551
|
$.value && ya(() => {
|
|
3541
3552
|
const t = $.value.getBoundingClientRect(), l = 4;
|
|
3542
|
-
|
|
3553
|
+
ae.value = {
|
|
3543
3554
|
top: `${t.bottom + l}px`,
|
|
3544
3555
|
left: `${t.left}px`
|
|
3545
3556
|
};
|
|
3546
3557
|
});
|
|
3547
3558
|
}, ta = a(() => ({
|
|
3548
3559
|
position: "fixed",
|
|
3549
|
-
top:
|
|
3550
|
-
left:
|
|
3560
|
+
top: ae.value.top,
|
|
3561
|
+
left: ae.value.left,
|
|
3551
3562
|
zIndex: yt.value
|
|
3552
3563
|
})), aa = () => {
|
|
3553
|
-
T.value = !0, P("focused"),
|
|
3554
|
-
Ct(),
|
|
3564
|
+
T.value = !0, P("focused"), le.value && (I.value = !1, requestAnimationFrame(() => {
|
|
3565
|
+
Ct(), I.value = !0;
|
|
3555
3566
|
}));
|
|
3556
3567
|
}, la = (t) => {
|
|
3557
3568
|
t.relatedTarget && z.value && z.value.contains(t.relatedTarget) || setTimeout(() => {
|
|
3558
3569
|
var i;
|
|
3559
3570
|
const l = document.activeElement;
|
|
3560
|
-
if (
|
|
3571
|
+
if (I.value) {
|
|
3561
3572
|
if (z.value && z.value.contains(l) || t.relatedTarget && z.value && z.value.contains(t.relatedTarget))
|
|
3562
3573
|
return;
|
|
3563
3574
|
if (l === document.body && z.value) {
|
|
3564
|
-
const
|
|
3565
|
-
if (Array.from(
|
|
3575
|
+
const v = z.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
3576
|
+
if (Array.from(v).some((p) => p === document.activeElement || p.contains(document.activeElement)))
|
|
3566
3577
|
return;
|
|
3567
3578
|
}
|
|
3568
3579
|
}
|
|
3569
3580
|
const s = (i = $.value) == null ? void 0 : i.closest(".component");
|
|
3570
|
-
s && s.contains(l) || $.value !== l && (T.value = !1,
|
|
3581
|
+
s && s.contains(l) || $.value !== l && (T.value = !1, I.value = !1, P("blurred"));
|
|
3571
3582
|
}, 200);
|
|
3572
3583
|
}, na = () => {
|
|
3573
|
-
|
|
3574
|
-
Ct(),
|
|
3584
|
+
le.value && (I.value, I.value = !1, requestAnimationFrame(() => {
|
|
3585
|
+
Ct(), I.value = !0;
|
|
3575
3586
|
}));
|
|
3576
3587
|
}, $t = (t) => {
|
|
3577
3588
|
if (!t || !(t instanceof Date))
|
|
@@ -3582,7 +3593,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3582
3593
|
let l = "";
|
|
3583
3594
|
if (!t)
|
|
3584
3595
|
l = "";
|
|
3585
|
-
else if (
|
|
3596
|
+
else if (Se.value && typeof t == "object" && !(t instanceof Date)) {
|
|
3586
3597
|
if (t.startDate === null && t.endDate === null)
|
|
3587
3598
|
l = "";
|
|
3588
3599
|
else if (t.startDate || t.endDate) {
|
|
@@ -3595,12 +3606,12 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3595
3606
|
l = JSON.stringify(i);
|
|
3596
3607
|
}
|
|
3597
3608
|
} else
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
const s = l ? rt(l,
|
|
3601
|
-
M.value = s,
|
|
3609
|
+
L.value === "date" ? t instanceof Date ? l = $t(t) : typeof t == "string" && (l = t) : (L.value === "month" || L.value === "time" || L.value === "datetime-local" || L.value === "week") && (l = typeof t == "string" ? t : "");
|
|
3610
|
+
Je = !0, h.value = l;
|
|
3611
|
+
const s = l ? rt(l, L.value) : "";
|
|
3612
|
+
M.value = s, k.value = s;
|
|
3602
3613
|
}, ua = () => {
|
|
3603
|
-
if (!
|
|
3614
|
+
if (!le.value) {
|
|
3604
3615
|
h.value = M.value;
|
|
3605
3616
|
return;
|
|
3606
3617
|
}
|
|
@@ -3610,18 +3621,18 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3610
3621
|
end: $.value.selectionEnd
|
|
3611
3622
|
} : null, l = M.value.trim();
|
|
3612
3623
|
if (!l || l.length === 0) {
|
|
3613
|
-
|
|
3624
|
+
Je = !0, h.value = "", M.value = "", k.value = "", setTimeout(() => {
|
|
3614
3625
|
w = !1;
|
|
3615
3626
|
}, 50);
|
|
3616
3627
|
return;
|
|
3617
3628
|
}
|
|
3618
|
-
if (
|
|
3619
|
-
const i =
|
|
3620
|
-
if (
|
|
3629
|
+
if (L.value === "date") {
|
|
3630
|
+
const i = Se.value ? /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$|^\d{1,2}\/\d{1,2}\/\d{4}\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})?$/ : /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/;
|
|
3631
|
+
if (Se.value) {
|
|
3621
3632
|
if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), l.length > 23 && !i.test(l)) {
|
|
3622
|
-
M.value =
|
|
3623
|
-
const
|
|
3624
|
-
$.value.setSelectionRange(
|
|
3633
|
+
M.value = k.value, t && $.value && ya(() => {
|
|
3634
|
+
const v = Math.min(t.start, k.value.length);
|
|
3635
|
+
$.value.setSelectionRange(v, v);
|
|
3625
3636
|
}), setTimeout(() => {
|
|
3626
3637
|
w = !1;
|
|
3627
3638
|
}, 50);
|
|
@@ -3635,9 +3646,9 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3635
3646
|
}
|
|
3636
3647
|
} else {
|
|
3637
3648
|
if (l.length > 10 && !i.test(l)) {
|
|
3638
|
-
M.value =
|
|
3639
|
-
const
|
|
3640
|
-
$.value.setSelectionRange(
|
|
3649
|
+
M.value = k.value, t && $.value && ya(() => {
|
|
3650
|
+
const v = Math.min(t.start, k.value.length);
|
|
3651
|
+
$.value.setSelectionRange(v, v);
|
|
3641
3652
|
}), setTimeout(() => {
|
|
3642
3653
|
w = !1;
|
|
3643
3654
|
}, 50);
|
|
@@ -3652,11 +3663,11 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3652
3663
|
}
|
|
3653
3664
|
}
|
|
3654
3665
|
let s = null;
|
|
3655
|
-
if (
|
|
3656
|
-
if (
|
|
3666
|
+
if (L.value === "date")
|
|
3667
|
+
if (Se.value)
|
|
3657
3668
|
if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
|
|
3658
|
-
if (s = H(l,
|
|
3659
|
-
|
|
3669
|
+
if (s = H(l, L.value), s && s !== h.value)
|
|
3670
|
+
Je = !0, h.value = s, k.value = l;
|
|
3660
3671
|
else {
|
|
3661
3672
|
setTimeout(() => {
|
|
3662
3673
|
w = !1;
|
|
@@ -3664,42 +3675,42 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3664
3675
|
return;
|
|
3665
3676
|
}
|
|
3666
3677
|
else if (l.includes("-")) {
|
|
3667
|
-
const
|
|
3668
|
-
if (
|
|
3669
|
-
const c =
|
|
3670
|
-
if (
|
|
3671
|
-
const
|
|
3672
|
-
|
|
3678
|
+
const v = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
|
|
3679
|
+
if (v) {
|
|
3680
|
+
const c = v[1], p = H(c, L.value);
|
|
3681
|
+
if (p) {
|
|
3682
|
+
const S = JSON.stringify({ startDate: p, endDate: null });
|
|
3683
|
+
S !== h.value && (Je = !0, h.value = S, k.value = l);
|
|
3673
3684
|
} else {
|
|
3674
|
-
|
|
3685
|
+
k.value = l, setTimeout(() => {
|
|
3675
3686
|
w = !1;
|
|
3676
3687
|
}, 50);
|
|
3677
3688
|
return;
|
|
3678
3689
|
}
|
|
3679
3690
|
} else {
|
|
3680
|
-
|
|
3691
|
+
k.value = l, setTimeout(() => {
|
|
3681
3692
|
w = !1;
|
|
3682
3693
|
}, 50);
|
|
3683
3694
|
return;
|
|
3684
3695
|
}
|
|
3685
3696
|
} else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
|
|
3686
|
-
if (s = H(l,
|
|
3697
|
+
if (s = H(l, L.value), s) {
|
|
3687
3698
|
const c = JSON.stringify({ startDate: s, endDate: null });
|
|
3688
|
-
c !== h.value && (
|
|
3699
|
+
c !== h.value && (Je = !0, h.value = c, k.value = l);
|
|
3689
3700
|
} else {
|
|
3690
|
-
|
|
3701
|
+
k.value = l, setTimeout(() => {
|
|
3691
3702
|
w = !1;
|
|
3692
3703
|
}, 50);
|
|
3693
3704
|
return;
|
|
3694
3705
|
}
|
|
3695
3706
|
else {
|
|
3696
|
-
|
|
3707
|
+
k.value = l, setTimeout(() => {
|
|
3697
3708
|
w = !1;
|
|
3698
3709
|
}, 50);
|
|
3699
3710
|
return;
|
|
3700
3711
|
}
|
|
3701
3712
|
else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
|
|
3702
|
-
s = H(l,
|
|
3713
|
+
s = H(l, L.value), s && s !== h.value && (Je = !0, h.value = s, k.value = l);
|
|
3703
3714
|
else {
|
|
3704
3715
|
setTimeout(() => {
|
|
3705
3716
|
w = !1;
|
|
@@ -3707,16 +3718,16 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3707
3718
|
return;
|
|
3708
3719
|
}
|
|
3709
3720
|
else
|
|
3710
|
-
s = H(l,
|
|
3721
|
+
s = H(l, L.value), s && s !== h.value && (Je = !0, h.value = s, k.value = l);
|
|
3711
3722
|
setTimeout(() => {
|
|
3712
3723
|
w = !1;
|
|
3713
3724
|
}, 50);
|
|
3714
3725
|
}, ra = (t) => {
|
|
3715
3726
|
}, Pt = (t) => {
|
|
3716
|
-
var
|
|
3717
|
-
if (!
|
|
3727
|
+
var v;
|
|
3728
|
+
if (!I.value || !z.value || !$.value)
|
|
3718
3729
|
return;
|
|
3719
|
-
const l = t.target, s = (
|
|
3730
|
+
const l = t.target, s = (v = $.value) == null ? void 0 : v.closest(".nb-wrapper");
|
|
3720
3731
|
if (z.value && z.value.contains(l) || s && (l === s || s.contains(l)) || z.value && z.value.contains(l))
|
|
3721
3732
|
return;
|
|
3722
3733
|
let i = l;
|
|
@@ -3726,7 +3737,7 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3726
3737
|
i = i.parentElement;
|
|
3727
3738
|
}
|
|
3728
3739
|
setTimeout(() => {
|
|
3729
|
-
if (!
|
|
3740
|
+
if (!I.value || !z.value || z.value && z.value.contains(l))
|
|
3730
3741
|
return;
|
|
3731
3742
|
for (i = l; i && i !== document.body; ) {
|
|
3732
3743
|
if (i === z.value || z.value && z.value.contains(i))
|
|
@@ -3735,68 +3746,68 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3735
3746
|
}
|
|
3736
3747
|
if (!document.body.contains(l))
|
|
3737
3748
|
return;
|
|
3738
|
-
const c = $.value && (l === $.value || $.value.contains(l)),
|
|
3739
|
-
!c && !
|
|
3749
|
+
const c = $.value && (l === $.value || $.value.contains(l)), p = s && (l === s || s.contains(l));
|
|
3750
|
+
!c && !p && (I.value = !1, (!M.value || M.value.trim().length === 0) && (T.value = !1));
|
|
3740
3751
|
}, 50);
|
|
3741
3752
|
}, Ft = () => {
|
|
3742
|
-
|
|
3753
|
+
I.value && le.value && Ct();
|
|
3743
3754
|
}, Ot = () => {
|
|
3744
|
-
|
|
3755
|
+
I.value && le.value && (I.value = !1);
|
|
3745
3756
|
};
|
|
3746
3757
|
let bt = null, Tt = null, xt = { top: 0, left: 0 };
|
|
3747
3758
|
const qt = () => {
|
|
3748
|
-
if (!
|
|
3759
|
+
if (!I.value || !le.value || !$.value)
|
|
3749
3760
|
return;
|
|
3750
3761
|
const t = 4, l = $.value.getBoundingClientRect(), s = `${l.bottom + t}px`, i = `${l.left}px`;
|
|
3751
|
-
(xt.top !== s || xt.left !== i) && (xt.top = s, xt.left = i,
|
|
3762
|
+
(xt.top !== s || xt.left !== i) && (xt.top = s, xt.left = i, ae.value = {
|
|
3752
3763
|
top: s,
|
|
3753
3764
|
left: i
|
|
3754
3765
|
}), Tt = requestAnimationFrame(qt);
|
|
3755
3766
|
}, o = () => {
|
|
3756
|
-
if (!$.value || !
|
|
3767
|
+
if (!$.value || !le.value)
|
|
3757
3768
|
return;
|
|
3758
3769
|
xt = { top: 0, left: 0 }, qt(), bt = new ResizeObserver(() => {
|
|
3759
|
-
|
|
3770
|
+
I.value && Ct();
|
|
3760
3771
|
}), bt.observe($.value);
|
|
3761
3772
|
const t = $.value.closest(".component");
|
|
3762
3773
|
t && bt.observe(t);
|
|
3763
|
-
},
|
|
3774
|
+
}, f = () => {
|
|
3764
3775
|
Tt !== null && (cancelAnimationFrame(Tt), Tt = null), bt && (bt.disconnect(), bt = null);
|
|
3765
3776
|
};
|
|
3766
|
-
U(
|
|
3767
|
-
t &&
|
|
3777
|
+
U(I, (t) => {
|
|
3778
|
+
t && le.value ? ya(() => {
|
|
3768
3779
|
o();
|
|
3769
|
-
}) :
|
|
3780
|
+
}) : f();
|
|
3770
3781
|
}), sa(() => {
|
|
3771
|
-
h.value =
|
|
3782
|
+
h.value = we.value, M.value = rt(we.value, L.value), document.addEventListener("click", Pt, !1), window.addEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.addEventListener("resize", Ot);
|
|
3772
3783
|
}), ma(() => {
|
|
3773
|
-
Wt(),
|
|
3774
|
-
}), U(
|
|
3775
|
-
|
|
3784
|
+
Wt(), f(), document.removeEventListener("click", Pt), window.removeEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.removeEventListener("resize", Ot);
|
|
3785
|
+
}), U(L, (t) => {
|
|
3786
|
+
Oe.value = t;
|
|
3776
3787
|
}, { immediate: !0 }), U(Xe, () => {
|
|
3777
|
-
h.value &&
|
|
3778
|
-
}), U(
|
|
3788
|
+
h.value && le.value && (M.value = rt(h.value, L.value));
|
|
3789
|
+
}), U(we, (t) => {
|
|
3779
3790
|
if (t !== h.value) {
|
|
3780
3791
|
h.value = t;
|
|
3781
|
-
const l = rt(t,
|
|
3782
|
-
M.value = l,
|
|
3792
|
+
const l = rt(t, L.value);
|
|
3793
|
+
M.value = l, k.value = l;
|
|
3783
3794
|
}
|
|
3784
3795
|
}, { immediate: !0 });
|
|
3785
3796
|
let w = !1;
|
|
3786
|
-
const
|
|
3797
|
+
const Qe = () => {
|
|
3787
3798
|
w = !0, setTimeout(() => {
|
|
3788
3799
|
w = !1;
|
|
3789
3800
|
}, 100);
|
|
3790
3801
|
};
|
|
3791
|
-
let
|
|
3802
|
+
let Je = !1;
|
|
3792
3803
|
return U(() => h.value, (t) => {
|
|
3793
|
-
if (
|
|
3794
|
-
const l = rt(t,
|
|
3795
|
-
l !== M.value && (M.value = l,
|
|
3804
|
+
if (le.value && !Je && !w) {
|
|
3805
|
+
const l = rt(t, L.value);
|
|
3806
|
+
l !== M.value && (M.value = l, k.value = l);
|
|
3796
3807
|
}
|
|
3797
|
-
|
|
3808
|
+
Je = !1;
|
|
3798
3809
|
}), U(h, (t) => {
|
|
3799
|
-
if (
|
|
3810
|
+
if (x.value && (t = t.trim()), Se.value && typeof t == "string" && t.startsWith("{"))
|
|
3800
3811
|
try {
|
|
3801
3812
|
const l = JSON.parse(t);
|
|
3802
3813
|
if (l && (l.startDate || l.endDate)) {
|
|
@@ -3804,12 +3815,12 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3804
3815
|
if (!c)
|
|
3805
3816
|
return null;
|
|
3806
3817
|
if (/^\d{4}-\d{2}-\d{2}$/.test(c)) {
|
|
3807
|
-
const [
|
|
3808
|
-
return new Date(
|
|
3818
|
+
const [p, S, A] = c.split("-").map(Number);
|
|
3819
|
+
return new Date(p, S - 1, A);
|
|
3809
3820
|
}
|
|
3810
3821
|
return new Date(c);
|
|
3811
|
-
}, i = l.startDate ? s(l.startDate) : null,
|
|
3812
|
-
P("changed", { startDate: i, endDate:
|
|
3822
|
+
}, i = l.startDate ? s(l.startDate) : null, v = l.endDate ? s(l.endDate) : null;
|
|
3823
|
+
P("changed", { startDate: i, endDate: v });
|
|
3813
3824
|
return;
|
|
3814
3825
|
}
|
|
3815
3826
|
} catch {
|
|
@@ -3818,54 +3829,54 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3818
3829
|
}), U(T, (t) => {
|
|
3819
3830
|
P(t ? "focused" : "blurred");
|
|
3820
3831
|
}), U(h, (t) => {
|
|
3821
|
-
|
|
3822
|
-
}), (t, l) => n(
|
|
3832
|
+
x.value && (t = t.trim()), P("current-value", t);
|
|
3833
|
+
}), (t, l) => n(Ve) ? (O(), j("div", da({
|
|
3823
3834
|
key: 0,
|
|
3824
3835
|
class: ["nb-wrapper", wt.value],
|
|
3825
3836
|
style: [Rt.value, Dt.value, it.value],
|
|
3826
3837
|
role: "input"
|
|
3827
|
-
},
|
|
3828
|
-
|
|
3829
|
-
id: n(
|
|
3830
|
-
class:
|
|
3831
|
-
style:
|
|
3838
|
+
}, qe.value), [
|
|
3839
|
+
ve("div", {
|
|
3840
|
+
id: n(Ve),
|
|
3841
|
+
class: We(["nb-reset", "component", Kt.value, Yt.value, Qt.value, Ut.value]),
|
|
3842
|
+
style: Ee([vt.value, Dt.value, it.value]),
|
|
3832
3843
|
onClick: Et
|
|
3833
3844
|
}, [
|
|
3834
|
-
n(
|
|
3845
|
+
n(Re) ? (O(), j("label", {
|
|
3835
3846
|
key: 0,
|
|
3836
3847
|
for: Lt.value,
|
|
3837
3848
|
class: "component__label",
|
|
3838
|
-
style:
|
|
3849
|
+
style: Ee([ht.value]),
|
|
3839
3850
|
onClick: Zt
|
|
3840
|
-
}, St(e.label), 13, Pl)) :
|
|
3841
|
-
pa(
|
|
3851
|
+
}, St(e.label), 13, Pl)) : Be("", !0),
|
|
3852
|
+
pa(ve("input", {
|
|
3842
3853
|
ref_key: "inputRef",
|
|
3843
3854
|
ref: $,
|
|
3844
3855
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => M.value = s),
|
|
3845
3856
|
onInput: ua,
|
|
3846
3857
|
onKeydown: [
|
|
3847
|
-
|
|
3848
|
-
l[1] || (l[1] = jt((s) => !n(R) && n(
|
|
3858
|
+
Qe,
|
|
3859
|
+
l[1] || (l[1] = jt((s) => !n(R) && n(Ae) && ea(), ["enter"]))
|
|
3849
3860
|
],
|
|
3850
3861
|
id: Lt.value,
|
|
3851
3862
|
name: Lt.value,
|
|
3852
|
-
type:
|
|
3853
|
-
class:
|
|
3863
|
+
type: le.value ? "text" : Oe.value,
|
|
3864
|
+
class: We(["component__input", [
|
|
3854
3865
|
Jt.value,
|
|
3855
3866
|
Gt.value,
|
|
3856
3867
|
u.value
|
|
3857
3868
|
]]),
|
|
3858
|
-
placeholder:
|
|
3869
|
+
placeholder: Nt.value,
|
|
3859
3870
|
disabled: n(R) || n(_),
|
|
3860
3871
|
required: e.required,
|
|
3861
3872
|
readonly: n(_),
|
|
3862
3873
|
autocomplete: e.inputAutocomplete,
|
|
3863
|
-
min:
|
|
3864
|
-
max:
|
|
3865
|
-
step:
|
|
3874
|
+
min: le.value ? void 0 : n(at),
|
|
3875
|
+
max: le.value ? void 0 : n(ye),
|
|
3876
|
+
step: le.value ? void 0 : n(lt),
|
|
3866
3877
|
tabindex: n(R) || n(_) ? -1 : n(st),
|
|
3867
3878
|
role: "input",
|
|
3868
|
-
style:
|
|
3879
|
+
style: Ee([it.value]),
|
|
3869
3880
|
onFocus: aa,
|
|
3870
3881
|
onBlur: la,
|
|
3871
3882
|
onClick: na
|
|
@@ -3875,44 +3886,44 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
|
|
|
3875
3886
|
], 14, El),
|
|
3876
3887
|
E.value ? (O(), j("div", {
|
|
3877
3888
|
key: 0,
|
|
3878
|
-
class:
|
|
3889
|
+
class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
|
|
3879
3890
|
}, [
|
|
3880
3891
|
ia(t.$slots, "message", {}, () => [
|
|
3881
3892
|
ga(St(e.message), 1)
|
|
3882
3893
|
], !0)
|
|
3883
|
-
], 2)) :
|
|
3894
|
+
], 2)) : Be("", !0),
|
|
3884
3895
|
(O(), ol(ul, { to: "body" }, [
|
|
3885
|
-
|
|
3896
|
+
le.value && I.value ? (O(), j("div", {
|
|
3886
3897
|
key: 0,
|
|
3887
3898
|
ref_key: "calendarRef",
|
|
3888
3899
|
ref: z,
|
|
3889
3900
|
class: "datepicker__custom-calendar-wrapper",
|
|
3890
|
-
style:
|
|
3891
|
-
onClick: l[4] || (l[4] = ca((s) =>
|
|
3892
|
-
onMousedown: l[5] || (l[5] = ca((s) =>
|
|
3901
|
+
style: Ee(ta.value),
|
|
3902
|
+
onClick: l[4] || (l[4] = ca((s) => he.value = !0, ["stop"])),
|
|
3903
|
+
onMousedown: l[5] || (l[5] = ca((s) => he.value = !0, ["stop"]))
|
|
3893
3904
|
}, [
|
|
3894
3905
|
rl(n(C), {
|
|
3895
|
-
"nb-id": `${n(
|
|
3906
|
+
"nb-id": `${n(Ve)}-calendar`,
|
|
3896
3907
|
value: kt.value,
|
|
3897
|
-
"input-type": n(
|
|
3908
|
+
"input-type": n(L),
|
|
3898
3909
|
min: n(at),
|
|
3899
|
-
max: n(
|
|
3910
|
+
max: n(ye),
|
|
3900
3911
|
step: n(lt),
|
|
3901
3912
|
disabled: n(R),
|
|
3902
3913
|
width: Vt.value,
|
|
3903
3914
|
locale: n(Xe),
|
|
3904
|
-
theme: n(
|
|
3905
|
-
"allow-range": n(
|
|
3915
|
+
theme: n(Te),
|
|
3916
|
+
"allow-range": n(Se),
|
|
3906
3917
|
onChanged: oa,
|
|
3907
3918
|
onDateSelected: ra,
|
|
3908
|
-
onMousedown: l[2] || (l[2] = (s) =>
|
|
3909
|
-
onClick: l[3] || (l[3] = (s) =>
|
|
3919
|
+
onMousedown: l[2] || (l[2] = (s) => he.value = !0),
|
|
3920
|
+
onClick: l[3] || (l[3] = (s) => he.value = !0)
|
|
3910
3921
|
}, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range"])
|
|
3911
|
-
], 36)) :
|
|
3922
|
+
], 36)) : Be("", !0)
|
|
3912
3923
|
]))
|
|
3913
|
-
], 16)) :
|
|
3924
|
+
], 16)) : Be("", !0);
|
|
3914
3925
|
}
|
|
3915
|
-
}), ql = /* @__PURE__ */ ba(Ol, [["__scopeId", "data-v-
|
|
3926
|
+
}), ql = /* @__PURE__ */ ba(Ol, [["__scopeId", "data-v-35736538"]]), Oa = {
|
|
3916
3927
|
NbInputRadio: fl,
|
|
3917
3928
|
NbInputCheckbox: yl,
|
|
3918
3929
|
NbInput: Tl,
|