@namba_one/ui-kit-2 1.0.150 → 1.0.152
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/index.d.ts +23 -1
- package/dist/index.es.js +199 -171
- package/dist/index.umd.js +24 -24
- package/dist/namba-one-uikit.css +1 -1
- package/dist/sprite/sprite.svg +37 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Dv = Object.defineProperty;
|
|
2
2
|
var Iv = (n, e, t) => e in n ? Dv(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Te = (n, e, t) => Iv(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as ue, useCssModule as hn, computed as R, createBlock as re, openBlock as v, resolveDynamicComponent as _r, mergeProps as tt, withCtx as P, renderSlot as ae, createElementBlock as M, normalizeClass as y, createVNode as V, unref as p, useTemplateRef as Fi, watch as Ze, ref as U, createCommentVNode as N, withDirectives as _n, createElementVNode as q, vShow as io, normalizeStyle as
|
|
4
|
+
import { defineComponent as ue, useCssModule as hn, computed as R, createBlock as re, openBlock as v, resolveDynamicComponent as _r, mergeProps as tt, withCtx as P, renderSlot as ae, createElementBlock as M, normalizeClass as y, createVNode as V, unref as p, useTemplateRef as Fi, watch as Ze, ref as U, createCommentVNode as N, withDirectives as _n, createElementVNode as q, vShow as io, normalizeStyle as Ye, h as Ro, Transition as dn, useSlots as Ur, toHandlers as Ni, useModel as ht, mergeModels as mt, createTextVNode as we, toDisplayString as me, withModifiers as nr, onMounted as pt, resolveComponent as vs, TransitionGroup as lu, Fragment as $e, renderList as Le, provide as oa, onBeforeUnmount as zi, Teleport as ia, inject as Hi, isRef as vr, onUnmounted as Cr, readonly as Lv, toRef as dr, nextTick as bt, getCurrentScope as Uh, onScopeDispose as Wh, vModelText as sa, getCurrentInstance as uu, reactive as ji, createSlots as Yt, normalizeProps as Ht, guardReactiveProps as ln, render as Od, useAttrs as Pv, toValue as Rv, onBeforeUpdate as Fv, withKeys as Nv, useId as qh, resolveDirective as zv, vModelDynamic as Hv } from "vue";
|
|
5
5
|
const jv = /* @__PURE__ */ ue({
|
|
6
6
|
__name: "TheText",
|
|
7
7
|
props: {
|
|
@@ -262,7 +262,7 @@ const Ls = (n) => `${Number(n / 12).toFixed(3)}rem`, jg = /* @__PURE__ */ ue({
|
|
|
262
262
|
}));
|
|
263
263
|
return (o, i) => (v(), M("div", {
|
|
264
264
|
class: y(t.value),
|
|
265
|
-
style:
|
|
265
|
+
style: Ye(r.value)
|
|
266
266
|
}, i[0] || (i[0] = [
|
|
267
267
|
q("svg", {
|
|
268
268
|
width: "48",
|
|
@@ -409,7 +409,7 @@ const rs = {
|
|
|
409
409
|
}, [
|
|
410
410
|
(v(), M("svg", {
|
|
411
411
|
class: y(t.value),
|
|
412
|
-
style:
|
|
412
|
+
style: Ye(r.value)
|
|
413
413
|
}, [
|
|
414
414
|
q("use", {
|
|
415
415
|
"xlink:href": `#${o.name}`
|
|
@@ -424,6 +424,9 @@ const rs = {
|
|
|
424
424
|
}, Jg = {
|
|
425
425
|
$style: Zg
|
|
426
426
|
}, Ke = /* @__PURE__ */ be(Gg, [["__cssModules", Jg]]), oP = [
|
|
427
|
+
"filled-sort-default",
|
|
428
|
+
"filled-sort-down",
|
|
429
|
+
"filled-sort-up",
|
|
427
430
|
"filled-success",
|
|
428
431
|
"filled-warning",
|
|
429
432
|
"outline-agreement",
|
|
@@ -437,6 +440,7 @@ const rs = {
|
|
|
437
440
|
"outline-balance-scale",
|
|
438
441
|
"outline-bank",
|
|
439
442
|
"outline-beach",
|
|
443
|
+
"outline-bookmark",
|
|
440
444
|
"outline-box",
|
|
441
445
|
"outline-briefcase",
|
|
442
446
|
"outline-browser",
|
|
@@ -483,6 +487,7 @@ const rs = {
|
|
|
483
487
|
"outline-eye-open",
|
|
484
488
|
"outline-file",
|
|
485
489
|
"outline-files",
|
|
490
|
+
"outline-filter-vertical",
|
|
486
491
|
"outline-flash",
|
|
487
492
|
"outline-h2",
|
|
488
493
|
"outline-help-circle",
|
|
@@ -513,8 +518,11 @@ const rs = {
|
|
|
513
518
|
"outline-rocket",
|
|
514
519
|
"outline-search",
|
|
515
520
|
"outline-settings",
|
|
521
|
+
"outline-share",
|
|
516
522
|
"outline-shop-1",
|
|
517
523
|
"outline-shop",
|
|
524
|
+
"outline-sidebar-hide",
|
|
525
|
+
"outline-sidebar-show",
|
|
518
526
|
"outline-snow",
|
|
519
527
|
"outline-sort-by-down",
|
|
520
528
|
"outline-sort-by-up",
|
|
@@ -538,6 +546,7 @@ const rs = {
|
|
|
538
546
|
"outline-wallet",
|
|
539
547
|
"outline-warning",
|
|
540
548
|
"outline_filter-horizontal",
|
|
549
|
+
"outlink-unlink",
|
|
541
550
|
"static-telegram",
|
|
542
551
|
"static-whats-app"
|
|
543
552
|
];
|
|
@@ -1157,7 +1166,7 @@ const Tb = /* @__PURE__ */ ue({
|
|
|
1157
1166
|
ref: t,
|
|
1158
1167
|
key: r.value,
|
|
1159
1168
|
class: y(o.value),
|
|
1160
|
-
style:
|
|
1169
|
+
style: Ye({ width: r.value })
|
|
1161
1170
|
}, a[0] || (a[0] = [
|
|
1162
1171
|
q("span", null, null, -1)
|
|
1163
1172
|
]), 6));
|
|
@@ -3025,7 +3034,7 @@ const n0 = {
|
|
|
3025
3034
|
setup(n) {
|
|
3026
3035
|
return (e, t) => (v(), M("div", {
|
|
3027
3036
|
class: y([e.$style.root, e.$style[`size_${e.size}`]]),
|
|
3028
|
-
style:
|
|
3037
|
+
style: Ye({
|
|
3029
3038
|
...Number(e.opacity) !== 1 && { opacity: Number(e.opacity) }
|
|
3030
3039
|
})
|
|
3031
3040
|
}, null, 6));
|
|
@@ -4410,25 +4419,25 @@ class U1 {
|
|
|
4410
4419
|
this.oldSelection.end === this.oldSelection.start ? De.RIGHT : De.LEFT;
|
|
4411
4420
|
}
|
|
4412
4421
|
}
|
|
4413
|
-
function
|
|
4414
|
-
return new
|
|
4422
|
+
function Ve(n, e) {
|
|
4423
|
+
return new Ve.InputMask(n, e);
|
|
4415
4424
|
}
|
|
4416
4425
|
function _p(n) {
|
|
4417
4426
|
if (n == null) throw new Error("mask property should be defined");
|
|
4418
|
-
return n instanceof RegExp ?
|
|
4427
|
+
return n instanceof RegExp ? Ve.MaskedRegExp : Fr(n) ? Ve.MaskedPattern : n === Date ? Ve.MaskedDate : n === Number ? Ve.MaskedNumber : Array.isArray(n) || n === Array ? Ve.MaskedDynamic : Ve.Masked && n.prototype instanceof Ve.Masked ? n : Ve.Masked && n instanceof Ve.Masked ? n.constructor : n instanceof Function ? Ve.MaskedFunction : (console.warn("Mask not found for mask", n), Ve.Masked);
|
|
4419
4428
|
}
|
|
4420
4429
|
function Mi(n) {
|
|
4421
4430
|
if (!n) throw new Error("Options in not defined");
|
|
4422
|
-
if (
|
|
4423
|
-
if (n.prototype instanceof
|
|
4431
|
+
if (Ve.Masked) {
|
|
4432
|
+
if (n.prototype instanceof Ve.Masked) return {
|
|
4424
4433
|
mask: n
|
|
4425
4434
|
};
|
|
4426
4435
|
const {
|
|
4427
4436
|
mask: e = void 0,
|
|
4428
4437
|
...t
|
|
4429
|
-
} = n instanceof
|
|
4438
|
+
} = n instanceof Ve.Masked ? {
|
|
4430
4439
|
mask: n
|
|
4431
|
-
} : qd(n) && n.mask instanceof
|
|
4440
|
+
} : qd(n) && n.mask instanceof Ve.Masked ? n : {};
|
|
4432
4441
|
if (e) {
|
|
4433
4442
|
const r = e.mask;
|
|
4434
4443
|
return {
|
|
@@ -4446,12 +4455,12 @@ function Mi(n) {
|
|
|
4446
4455
|
};
|
|
4447
4456
|
}
|
|
4448
4457
|
function yr(n) {
|
|
4449
|
-
if (
|
|
4458
|
+
if (Ve.Masked && n instanceof Ve.Masked) return n;
|
|
4450
4459
|
const e = Mi(n), t = _p(e.mask);
|
|
4451
4460
|
if (!t) throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
4452
4461
|
return e.mask === t && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new t(e);
|
|
4453
4462
|
}
|
|
4454
|
-
|
|
4463
|
+
Ve.createMask = yr;
|
|
4455
4464
|
class mu {
|
|
4456
4465
|
/** */
|
|
4457
4466
|
/** */
|
|
@@ -4490,7 +4499,7 @@ class mu {
|
|
|
4490
4499
|
/** */
|
|
4491
4500
|
/** */
|
|
4492
4501
|
}
|
|
4493
|
-
|
|
4502
|
+
Ve.MaskElement = mu;
|
|
4494
4503
|
const Gd = 90, W1 = 89;
|
|
4495
4504
|
class ua extends mu {
|
|
4496
4505
|
/** HTMLElement to use mask on */
|
|
@@ -4533,7 +4542,7 @@ class ua extends mu {
|
|
|
4533
4542
|
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
4534
4543
|
}
|
|
4535
4544
|
}
|
|
4536
|
-
|
|
4545
|
+
Ve.HTMLMaskElement = ua;
|
|
4537
4546
|
class q1 extends ua {
|
|
4538
4547
|
/** InputElement to use mask on */
|
|
4539
4548
|
constructor(e) {
|
|
@@ -4558,7 +4567,7 @@ class q1 extends ua {
|
|
|
4558
4567
|
this.input.value = e;
|
|
4559
4568
|
}
|
|
4560
4569
|
}
|
|
4561
|
-
|
|
4570
|
+
Ve.HTMLMaskElement = ua;
|
|
4562
4571
|
class Cp extends ua {
|
|
4563
4572
|
/** Returns HTMLElement selection start */
|
|
4564
4573
|
get _unsafeSelectionStart() {
|
|
@@ -4586,7 +4595,7 @@ class Cp extends ua {
|
|
|
4586
4595
|
this.input.textContent = e;
|
|
4587
4596
|
}
|
|
4588
4597
|
}
|
|
4589
|
-
|
|
4598
|
+
Ve.HTMLContenteditableMaskElement = Cp;
|
|
4590
4599
|
class ca {
|
|
4591
4600
|
constructor() {
|
|
4592
4601
|
this.states = [], this.currentIndex = 0;
|
|
@@ -4632,13 +4641,13 @@ class G1 {
|
|
|
4632
4641
|
}
|
|
4633
4642
|
set mask(e) {
|
|
4634
4643
|
if (this.maskEquals(e)) return;
|
|
4635
|
-
if (!(e instanceof
|
|
4644
|
+
if (!(e instanceof Ve.Masked) && this.masked.constructor === _p(e)) {
|
|
4636
4645
|
this.masked.updateOptions({
|
|
4637
4646
|
mask: e
|
|
4638
4647
|
});
|
|
4639
4648
|
return;
|
|
4640
4649
|
}
|
|
4641
|
-
const t = e instanceof
|
|
4650
|
+
const t = e instanceof Ve.Masked ? e : yr({
|
|
4642
4651
|
mask: e
|
|
4643
4652
|
});
|
|
4644
4653
|
t.unmaskedValue = this.masked.unmaskedValue, this.masked = t;
|
|
@@ -4823,7 +4832,7 @@ class G1 {
|
|
|
4823
4832
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
4824
4833
|
}
|
|
4825
4834
|
}
|
|
4826
|
-
|
|
4835
|
+
Ve.InputMask = G1;
|
|
4827
4836
|
class Qe {
|
|
4828
4837
|
/** Inserted symbols */
|
|
4829
4838
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -4855,7 +4864,7 @@ class Qe {
|
|
|
4855
4864
|
return this.inserted === e.inserted && this.tailShift === e.tailShift && this.rawInserted === e.rawInserted && this.skip === e.skip;
|
|
4856
4865
|
}
|
|
4857
4866
|
}
|
|
4858
|
-
|
|
4867
|
+
Ve.ChangeDetails = Qe;
|
|
4859
4868
|
class Kn {
|
|
4860
4869
|
/** Tail value as string */
|
|
4861
4870
|
/** Tail start position */
|
|
@@ -5139,7 +5148,7 @@ Qt.DEFAULTS = {
|
|
|
5139
5148
|
skipInvalid: !0
|
|
5140
5149
|
};
|
|
5141
5150
|
Qt.EMPTY_VALUES = [void 0, null, ""];
|
|
5142
|
-
|
|
5151
|
+
Ve.Masked = Qt;
|
|
5143
5152
|
class to {
|
|
5144
5153
|
/** */
|
|
5145
5154
|
constructor(e, t) {
|
|
@@ -5166,7 +5175,7 @@ class to {
|
|
|
5166
5175
|
}
|
|
5167
5176
|
}
|
|
5168
5177
|
appendTo(e) {
|
|
5169
|
-
if (!(e instanceof
|
|
5178
|
+
if (!(e instanceof Ve.MaskedPattern))
|
|
5170
5179
|
return new Kn(this.toString()).appendTo(e);
|
|
5171
5180
|
const t = new Qe();
|
|
5172
5181
|
for (let r = 0; r < this.chunks.length; ++r) {
|
|
@@ -5569,7 +5578,7 @@ class X1 extends Qt {
|
|
|
5569
5578
|
t && (e.validate = (r) => r.search(t) >= 0), super._update(e);
|
|
5570
5579
|
}
|
|
5571
5580
|
}
|
|
5572
|
-
|
|
5581
|
+
Ve.MaskedRegExp = X1;
|
|
5573
5582
|
class Zt extends Qt {
|
|
5574
5583
|
/** */
|
|
5575
5584
|
/** */
|
|
@@ -5619,7 +5628,7 @@ class Zt extends Qt {
|
|
|
5619
5628
|
...f,
|
|
5620
5629
|
repeat: m,
|
|
5621
5630
|
parent: this
|
|
5622
|
-
}, S = m != null ? new
|
|
5631
|
+
}, S = m != null ? new Ve.RepeatBlock(
|
|
5623
5632
|
g
|
|
5624
5633
|
/* TODO */
|
|
5625
5634
|
) : yr(g);
|
|
@@ -5878,7 +5887,7 @@ Zt.STOP_CHAR = "`";
|
|
|
5878
5887
|
Zt.ESCAPE_CHAR = "\\";
|
|
5879
5888
|
Zt.InputDefinition = js;
|
|
5880
5889
|
Zt.FixedDefinition = xp;
|
|
5881
|
-
|
|
5890
|
+
Ve.MaskedPattern = Zt;
|
|
5882
5891
|
class Cs extends Zt {
|
|
5883
5892
|
/**
|
|
5884
5893
|
Optionally sets max length of pattern.
|
|
@@ -5946,7 +5955,7 @@ class Cs extends Zt {
|
|
|
5946
5955
|
return t;
|
|
5947
5956
|
}
|
|
5948
5957
|
}
|
|
5949
|
-
|
|
5958
|
+
Ve.MaskedRange = Cs;
|
|
5950
5959
|
const Q1 = "d{.}`m{.}`Y";
|
|
5951
5960
|
class cr extends Zt {
|
|
5952
5961
|
static extractPatternOptions(e) {
|
|
@@ -6051,7 +6060,7 @@ cr.DEFAULTS = {
|
|
|
6051
6060
|
return new Date(o, r - 1, t);
|
|
6052
6061
|
}
|
|
6053
6062
|
};
|
|
6054
|
-
|
|
6063
|
+
Ve.MaskedDate = cr;
|
|
6055
6064
|
class da extends Qt {
|
|
6056
6065
|
constructor(e) {
|
|
6057
6066
|
super({
|
|
@@ -6265,7 +6274,7 @@ da.DEFAULTS = {
|
|
|
6265
6274
|
return i.sort((s, a) => a.weight - s.weight || a.totalInputPositions - s.totalInputPositions), e.compiledMasks[i[0].index];
|
|
6266
6275
|
}
|
|
6267
6276
|
};
|
|
6268
|
-
|
|
6277
|
+
Ve.MaskedDynamic = da;
|
|
6269
6278
|
class ha extends Zt {
|
|
6270
6279
|
constructor(e) {
|
|
6271
6280
|
super({
|
|
@@ -6322,7 +6331,7 @@ ha.DEFAULTS = {
|
|
|
6322
6331
|
...Zt.DEFAULTS,
|
|
6323
6332
|
matchValue: (n, e, t) => n.indexOf(e, t) === t
|
|
6324
6333
|
};
|
|
6325
|
-
|
|
6334
|
+
Ve.MaskedEnum = ha;
|
|
6326
6335
|
class Z1 extends Qt {
|
|
6327
6336
|
/** */
|
|
6328
6337
|
/** Enable characters overwriting */
|
|
@@ -6339,7 +6348,7 @@ class Z1 extends Qt {
|
|
|
6339
6348
|
});
|
|
6340
6349
|
}
|
|
6341
6350
|
}
|
|
6342
|
-
|
|
6351
|
+
Ve.MaskedFunction = Z1;
|
|
6343
6352
|
var Ep;
|
|
6344
6353
|
class bn extends Qt {
|
|
6345
6354
|
/** Single char */
|
|
@@ -6544,7 +6553,7 @@ bn.DEFAULTS = {
|
|
|
6544
6553
|
maximumFractionDigits: 20
|
|
6545
6554
|
})
|
|
6546
6555
|
};
|
|
6547
|
-
|
|
6556
|
+
Ve.MaskedNumber = bn;
|
|
6548
6557
|
const Fl = {
|
|
6549
6558
|
MASKED: "value",
|
|
6550
6559
|
UNMASKED: "unmaskedValue",
|
|
@@ -6558,9 +6567,9 @@ function Tp(n, e, t) {
|
|
|
6558
6567
|
function J1(n, e, t, r) {
|
|
6559
6568
|
return Tp(e, t, r)(n);
|
|
6560
6569
|
}
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6570
|
+
Ve.PIPE_TYPE = Fl;
|
|
6571
|
+
Ve.createPipe = Tp;
|
|
6572
|
+
Ve.pipe = J1;
|
|
6564
6573
|
class ew extends Zt {
|
|
6565
6574
|
get repeatFrom() {
|
|
6566
6575
|
var e;
|
|
@@ -6654,9 +6663,9 @@ class ew extends Zt {
|
|
|
6654
6663
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
6655
6664
|
}
|
|
6656
6665
|
}
|
|
6657
|
-
|
|
6666
|
+
Ve.RepeatBlock = ew;
|
|
6658
6667
|
try {
|
|
6659
|
-
globalThis.IMask =
|
|
6668
|
+
globalThis.IMask = Ve;
|
|
6660
6669
|
} catch {
|
|
6661
6670
|
}
|
|
6662
6671
|
var tw = {
|
|
@@ -6761,7 +6770,7 @@ function nw(n, e) {
|
|
|
6761
6770
|
function I() {
|
|
6762
6771
|
f = u.value;
|
|
6763
6772
|
const T = l.value;
|
|
6764
|
-
!f || !(T != null && T.mask) || (d.value =
|
|
6773
|
+
!f || !(T != null && T.mask) || (d.value = Ve(f, T), i !== void 0 && (c.value = i), s !== void 0 && (h.value = s), a !== void 0 && (m.value = a), A(), D(), z(), B(), d.value.on("accept", O).on("complete", K));
|
|
6765
6774
|
}
|
|
6766
6775
|
function w() {
|
|
6767
6776
|
var T;
|
|
@@ -6884,6 +6893,24 @@ const sw = {
|
|
|
6884
6893
|
date: {
|
|
6885
6894
|
mask: Date,
|
|
6886
6895
|
lazy: !0
|
|
6896
|
+
},
|
|
6897
|
+
time: {
|
|
6898
|
+
mask: "HH:MM",
|
|
6899
|
+
blocks: {
|
|
6900
|
+
HH: {
|
|
6901
|
+
mask: Ve.MaskedRange,
|
|
6902
|
+
from: 0,
|
|
6903
|
+
to: 23,
|
|
6904
|
+
maxLength: 2
|
|
6905
|
+
},
|
|
6906
|
+
MM: {
|
|
6907
|
+
mask: Ve.MaskedRange,
|
|
6908
|
+
from: 0,
|
|
6909
|
+
to: 59,
|
|
6910
|
+
maxLength: 2
|
|
6911
|
+
}
|
|
6912
|
+
},
|
|
6913
|
+
lazy: !0
|
|
6887
6914
|
}
|
|
6888
6915
|
}, aw = /* @__PURE__ */ ue({
|
|
6889
6916
|
__name: "TransitionExpand",
|
|
@@ -6975,6 +7002,7 @@ const sw = {
|
|
|
6975
7002
|
label: {},
|
|
6976
7003
|
description: {},
|
|
6977
7004
|
placeholder: {},
|
|
7005
|
+
placeholderOnFocus: {},
|
|
6978
7006
|
errorText: {},
|
|
6979
7007
|
isError: { type: Boolean },
|
|
6980
7008
|
isDisabled: { type: Boolean },
|
|
@@ -6997,115 +7025,115 @@ const sw = {
|
|
|
6997
7025
|
34: "caption",
|
|
6998
7026
|
44: "subhead"
|
|
6999
7027
|
}
|
|
7000
|
-
), a = R(() => s.get(n.size.toString()) ?? "caption");
|
|
7001
|
-
function
|
|
7028
|
+
), a = R(() => s.get(n.size.toString()) ?? "caption"), l = R(() => n.placeholderOnFocus && r.value ? n.placeholderOnFocus : n.placeholder);
|
|
7029
|
+
function u() {
|
|
7002
7030
|
r.value = !1, i("blur");
|
|
7003
7031
|
}
|
|
7004
|
-
const
|
|
7032
|
+
const d = (h) => {
|
|
7005
7033
|
if (!n.maxLength) return;
|
|
7006
|
-
const
|
|
7007
|
-
|
|
7008
|
-
},
|
|
7009
|
-
var
|
|
7010
|
-
(
|
|
7034
|
+
const m = h.target;
|
|
7035
|
+
m.value.length > Number(n.maxLength) && (m.value = m.value.slice(0, Number(n.maxLength)), t.value = m.value);
|
|
7036
|
+
}, c = () => {
|
|
7037
|
+
var h;
|
|
7038
|
+
(h = o.value) == null || h.$el.focus();
|
|
7011
7039
|
};
|
|
7012
7040
|
return pt(() => {
|
|
7013
|
-
var
|
|
7014
|
-
n.autofocus && ((
|
|
7015
|
-
}), (
|
|
7016
|
-
var
|
|
7041
|
+
var h;
|
|
7042
|
+
n.autofocus && ((h = o.value) == null || h.$el.focus());
|
|
7043
|
+
}), (h, m) => {
|
|
7044
|
+
var f;
|
|
7017
7045
|
return v(), M("div", {
|
|
7018
7046
|
class: y([
|
|
7019
|
-
|
|
7020
|
-
|
|
7047
|
+
h.$style.root,
|
|
7048
|
+
h.$style[`size_${h.size}`],
|
|
7021
7049
|
{
|
|
7022
|
-
[
|
|
7023
|
-
[
|
|
7024
|
-
[
|
|
7050
|
+
[h.$style["is-disabled"]]: h.isDisabled,
|
|
7051
|
+
[h.$style["is-error"]]: h.isError,
|
|
7052
|
+
[h.$style["is-focused"]]: r.value
|
|
7025
7053
|
}
|
|
7026
7054
|
])
|
|
7027
7055
|
}, [
|
|
7028
|
-
|
|
7056
|
+
h.label ? (v(), re(p(Be), {
|
|
7029
7057
|
key: 0,
|
|
7030
|
-
class: y(
|
|
7058
|
+
class: y(h.$style.label),
|
|
7031
7059
|
size: a.value,
|
|
7032
7060
|
color: "text-common-base-primary-default"
|
|
7033
7061
|
}, {
|
|
7034
7062
|
default: P(() => [
|
|
7035
|
-
we(me(
|
|
7063
|
+
we(me(h.label), 1)
|
|
7036
7064
|
]),
|
|
7037
7065
|
_: 1
|
|
7038
7066
|
}, 8, ["class", "size"])) : N("", !0),
|
|
7039
7067
|
q("div", {
|
|
7040
|
-
class: y(
|
|
7041
|
-
onClick:
|
|
7068
|
+
class: y(h.$style.wrapper),
|
|
7069
|
+
onClick: c
|
|
7042
7070
|
}, [
|
|
7043
|
-
|
|
7071
|
+
h.iconLeft ? (v(), re(p(Ke), {
|
|
7044
7072
|
key: 0,
|
|
7045
|
-
name:
|
|
7073
|
+
name: h.iconLeft,
|
|
7046
7074
|
size: 18,
|
|
7047
7075
|
color: "icon-input-base-primary"
|
|
7048
7076
|
}, null, 8, ["name"])) : N("", !0),
|
|
7049
7077
|
V(p(vu), tt({
|
|
7050
7078
|
unmasked: t.value,
|
|
7051
|
-
"onUpdate:unmasked":
|
|
7052
|
-
class:
|
|
7053
|
-
type:
|
|
7079
|
+
"onUpdate:unmasked": m[0] || (m[0] = (g) => t.value = g),
|
|
7080
|
+
class: h.$style.field,
|
|
7081
|
+
type: h.type,
|
|
7054
7082
|
ref_key: "inputRef",
|
|
7055
7083
|
ref: o
|
|
7056
|
-
}, p(sw)[
|
|
7084
|
+
}, p(sw)[h.mask ?? "any"], {
|
|
7057
7085
|
unmask: !1,
|
|
7058
|
-
autofocus:
|
|
7059
|
-
placeholder:
|
|
7060
|
-
autocomplete:
|
|
7061
|
-
inputmode:
|
|
7062
|
-
onFocus:
|
|
7063
|
-
onBlur:
|
|
7064
|
-
onAccept:
|
|
7065
|
-
onInput:
|
|
7086
|
+
autofocus: h.autofocus,
|
|
7087
|
+
placeholder: l.value,
|
|
7088
|
+
autocomplete: h.autocomplete,
|
|
7089
|
+
inputmode: h.inputmode,
|
|
7090
|
+
onFocus: m[1] || (m[1] = () => r.value = !0),
|
|
7091
|
+
onBlur: u,
|
|
7092
|
+
onAccept: m[2] || (m[2] = (g) => i("update:error", !1)),
|
|
7093
|
+
onInput: d
|
|
7066
7094
|
}), null, 16, ["unmasked", "class", "type", "autofocus", "placeholder", "autocomplete", "inputmode"]),
|
|
7067
|
-
|
|
7095
|
+
h.iconRight ? (v(), re(p(Ke), {
|
|
7068
7096
|
key: 1,
|
|
7069
|
-
name:
|
|
7097
|
+
name: h.iconRight,
|
|
7070
7098
|
size: 18,
|
|
7071
7099
|
color: "icon-input-base-primary"
|
|
7072
7100
|
}, null, 8, ["name"])) : N("", !0),
|
|
7073
|
-
|
|
7101
|
+
h.$slots.default ? (v(), M("div", {
|
|
7074
7102
|
key: 2,
|
|
7075
|
-
class: y(
|
|
7103
|
+
class: y(h.$style.action)
|
|
7076
7104
|
}, [
|
|
7077
|
-
ae(
|
|
7105
|
+
ae(h.$slots, "default")
|
|
7078
7106
|
], 2)) : N("", !0),
|
|
7079
|
-
|
|
7107
|
+
h.maxLength ? (v(), M("span", {
|
|
7080
7108
|
key: 3,
|
|
7081
|
-
class: y(
|
|
7082
|
-
}, me(Number(
|
|
7109
|
+
class: y(h.$style.badge)
|
|
7110
|
+
}, me(Number(h.maxLength) - (((f = t.value) == null ? void 0 : f.length) ?? 0)), 3)) : N("", !0)
|
|
7083
7111
|
], 2),
|
|
7084
7112
|
V(p(gw), {
|
|
7085
|
-
"is-show":
|
|
7113
|
+
"is-show": h.errorText && h.isError || !!h.description && !h.isError
|
|
7086
7114
|
}, {
|
|
7087
7115
|
default: P(() => [
|
|
7088
7116
|
V(p(Cn), null, {
|
|
7089
7117
|
default: P(() => [
|
|
7090
|
-
|
|
7091
|
-
class: y(
|
|
7118
|
+
h.description && !h.isError ? (v(), re(p(Be), {
|
|
7119
|
+
class: y(h.$style.bottom),
|
|
7092
7120
|
key: "description",
|
|
7093
7121
|
size: "subhead",
|
|
7094
7122
|
color: "text-common-base-secondary-default"
|
|
7095
7123
|
}, {
|
|
7096
7124
|
default: P(() => [
|
|
7097
|
-
we(me(
|
|
7125
|
+
we(me(h.description), 1)
|
|
7098
7126
|
]),
|
|
7099
7127
|
_: 1
|
|
7100
7128
|
}, 8, ["class"])) : N("", !0),
|
|
7101
|
-
|
|
7102
|
-
class: y(
|
|
7129
|
+
h.errorText && h.isError ? (v(), re(p(Be), {
|
|
7130
|
+
class: y(h.$style.bottom),
|
|
7103
7131
|
key: "error",
|
|
7104
7132
|
size: "subhead",
|
|
7105
7133
|
color: "text-common-critical-primary-default"
|
|
7106
7134
|
}, {
|
|
7107
7135
|
default: P(() => [
|
|
7108
|
-
we(me(
|
|
7136
|
+
we(me(h.errorText), 1)
|
|
7109
7137
|
]),
|
|
7110
7138
|
_: 1
|
|
7111
7139
|
}, 8, ["class"])) : N("", !0)
|
|
@@ -7768,7 +7796,7 @@ const Fk = /* @__PURE__ */ ue({
|
|
|
7768
7796
|
ref_key: "dropdownRef",
|
|
7769
7797
|
ref: i,
|
|
7770
7798
|
class: y(c.$style.dropdown),
|
|
7771
|
-
style:
|
|
7799
|
+
style: Ye([s.value, a.value])
|
|
7772
7800
|
}, [
|
|
7773
7801
|
ae(c.$slots, "dropdown")
|
|
7774
7802
|
], 6)) : N("", !0)
|
|
@@ -8714,7 +8742,7 @@ function __(n, e, t, r, o, i) {
|
|
|
8714
8742
|
{
|
|
8715
8743
|
ref: "container",
|
|
8716
8744
|
class: "vc-saturation",
|
|
8717
|
-
style:
|
|
8745
|
+
style: Ye({ background: i.bgColor }),
|
|
8718
8746
|
onMousedown: e[0] || (e[0] = (...s) => i.handleMouseDown && i.handleMouseDown(...s)),
|
|
8719
8747
|
onTouchmove: e[1] || (e[1] = (...s) => i.handleChange && i.handleChange(...s)),
|
|
8720
8748
|
onTouchstart: e[2] || (e[2] = (...s) => i.handleChange && i.handleChange(...s))
|
|
@@ -8726,7 +8754,7 @@ function __(n, e, t, r, o, i) {
|
|
|
8726
8754
|
"div",
|
|
8727
8755
|
{
|
|
8728
8756
|
class: "vc-saturation-pointer",
|
|
8729
|
-
style:
|
|
8757
|
+
style: Ye({ top: i.pointerTop, left: i.pointerLeft })
|
|
8730
8758
|
},
|
|
8731
8759
|
k_,
|
|
8732
8760
|
4
|
|
@@ -8849,7 +8877,7 @@ function S_(n, e, t, r, o, i) {
|
|
|
8849
8877
|
"div",
|
|
8850
8878
|
{
|
|
8851
8879
|
class: "vc-hue-pointer",
|
|
8852
|
-
style:
|
|
8880
|
+
style: Ye({ top: i.pointerTop, left: i.pointerLeft }),
|
|
8853
8881
|
role: "presentation"
|
|
8854
8882
|
},
|
|
8855
8883
|
T_,
|
|
@@ -9052,12 +9080,12 @@ function W_(n, e, t, r, o, i) {
|
|
|
9052
9080
|
q("div", {
|
|
9053
9081
|
class: "vc-ps-previews__pr-color",
|
|
9054
9082
|
"aria-label": `New color is ${n.colors.hex}`,
|
|
9055
|
-
style:
|
|
9083
|
+
style: Ye({ background: n.colors.hex })
|
|
9056
9084
|
}, null, 12, R_),
|
|
9057
9085
|
q("div", {
|
|
9058
9086
|
class: "vc-ps-previews__pr-color",
|
|
9059
9087
|
"aria-label": `Current color is ${o.currentColor}`,
|
|
9060
|
-
style:
|
|
9088
|
+
style: Ye({ background: o.currentColor }),
|
|
9061
9089
|
onClick: e[0] || (e[0] = (...u) => i.clickCurrentColor && i.clickCurrentColor(...u))
|
|
9062
9090
|
}, null, 12, F_)
|
|
9063
9091
|
]),
|
|
@@ -9226,7 +9254,7 @@ const G_ = /* @__PURE__ */ ue({
|
|
|
9226
9254
|
s(t.value) ? (v(), M("div", {
|
|
9227
9255
|
key: 0,
|
|
9228
9256
|
class: y(d.$style["color-box"]),
|
|
9229
|
-
style:
|
|
9257
|
+
style: Ye({ backgroundColor: t.value ?? "" })
|
|
9230
9258
|
}, null, 6)) : N("", !0)
|
|
9231
9259
|
]),
|
|
9232
9260
|
_: 1
|
|
@@ -9452,7 +9480,7 @@ const G_ = /* @__PURE__ */ ue({
|
|
|
9452
9480
|
], 10, s2))), 128)),
|
|
9453
9481
|
q("div", {
|
|
9454
9482
|
class: y(p(t).caret),
|
|
9455
|
-
style:
|
|
9483
|
+
style: Ye(o.value)
|
|
9456
9484
|
}, null, 6)
|
|
9457
9485
|
], 2)
|
|
9458
9486
|
], 2));
|
|
@@ -9501,7 +9529,7 @@ const G_ = /* @__PURE__ */ ue({
|
|
|
9501
9529
|
transition: `height ${ni}ms ease, opacity ${ni}ms ease, filter ${ni}ms ease`
|
|
9502
9530
|
}));
|
|
9503
9531
|
return zi(() => clearTimeout(o)), (c, h) => (v(), M("div", {
|
|
9504
|
-
style:
|
|
9532
|
+
style: Ye(d.value)
|
|
9505
9533
|
}, [
|
|
9506
9534
|
V(dn, {
|
|
9507
9535
|
mode: "out-in",
|
|
@@ -9590,7 +9618,7 @@ const x2 = /* @__PURE__ */ ue({
|
|
|
9590
9618
|
}));
|
|
9591
9619
|
return (t, r) => (v(), M("div", {
|
|
9592
9620
|
class: y(t.$style.root),
|
|
9593
|
-
style:
|
|
9621
|
+
style: Ye(e.value)
|
|
9594
9622
|
}, [
|
|
9595
9623
|
ae(t.$slots, "default")
|
|
9596
9624
|
], 6));
|
|
@@ -9969,7 +9997,7 @@ const Rp = Symbol(), BP = () => Hi(
|
|
|
9969
9997
|
ref_key: "fixedElementRef",
|
|
9970
9998
|
ref: o,
|
|
9971
9999
|
class: y(c.$style.dropdown),
|
|
9972
|
-
style:
|
|
10000
|
+
style: Ye({ ...s.value, ...i.value })
|
|
9973
10001
|
}, [
|
|
9974
10002
|
ae(c.$slots, "default", { align: a.value })
|
|
9975
10003
|
], 6)) : N("", !0)
|
|
@@ -10298,15 +10326,15 @@ const Rp = Symbol(), BP = () => Hi(
|
|
|
10298
10326
|
A.$style[`view_${I.view ?? "success"}`],
|
|
10299
10327
|
i.value ? "is-expand" : ""
|
|
10300
10328
|
]),
|
|
10301
|
-
style:
|
|
10329
|
+
style: Ye(d(w).toaster)
|
|
10302
10330
|
}, [
|
|
10303
10331
|
q("div", {
|
|
10304
10332
|
class: y(A.$style.left),
|
|
10305
|
-
style:
|
|
10333
|
+
style: Ye(d(w).left)
|
|
10306
10334
|
}, null, 6),
|
|
10307
10335
|
q("div", {
|
|
10308
10336
|
class: y(A.$style.body),
|
|
10309
|
-
style:
|
|
10337
|
+
style: Ye(d(w).body)
|
|
10310
10338
|
}, [
|
|
10311
10339
|
V(oC, {
|
|
10312
10340
|
toast: I,
|
|
@@ -10315,19 +10343,19 @@ const Rp = Symbol(), BP = () => Hi(
|
|
|
10315
10343
|
], 6),
|
|
10316
10344
|
q("div", {
|
|
10317
10345
|
class: y(A.$style.right),
|
|
10318
|
-
style:
|
|
10346
|
+
style: Ye(d(w).right)
|
|
10319
10347
|
}, null, 6),
|
|
10320
10348
|
q("div", {
|
|
10321
10349
|
class: y([A.$style.left, A.$style.shadow]),
|
|
10322
|
-
style:
|
|
10350
|
+
style: Ye(d(w).left)
|
|
10323
10351
|
}, null, 6),
|
|
10324
10352
|
q("div", {
|
|
10325
10353
|
class: y([A.$style.body, A.$style.shadow]),
|
|
10326
|
-
style:
|
|
10354
|
+
style: Ye(d(w).body)
|
|
10327
10355
|
}, null, 6),
|
|
10328
10356
|
q("div", {
|
|
10329
10357
|
class: y([A.$style.right, A.$style.shadow]),
|
|
10330
|
-
style:
|
|
10358
|
+
style: Ye(d(w).right)
|
|
10331
10359
|
}, null, 6)
|
|
10332
10360
|
], 14, aC))), 128))
|
|
10333
10361
|
];
|
|
@@ -14486,7 +14514,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14486
14514
|
key: 0,
|
|
14487
14515
|
class: "dp__selection_preview",
|
|
14488
14516
|
title: te.value,
|
|
14489
|
-
style:
|
|
14517
|
+
style: Ye(x.value)
|
|
14490
14518
|
}, [
|
|
14491
14519
|
C.$slots["action-preview"] && S.value ? ae(C.$slots, "action-preview", {
|
|
14492
14520
|
key: 0,
|
|
@@ -14662,7 +14690,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14662
14690
|
ref_key: "gridWrapRef",
|
|
14663
14691
|
ref: g,
|
|
14664
14692
|
class: y(z.value),
|
|
14665
|
-
style:
|
|
14693
|
+
style: Ye(I.value),
|
|
14666
14694
|
role: L.useRelative ? void 0 : "dialog",
|
|
14667
14695
|
"aria-label": L.overlayLabel,
|
|
14668
14696
|
tabindex: L.useRelative ? void 0 : "0",
|
|
@@ -14674,7 +14702,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14674
14702
|
ref_key: "containerRef",
|
|
14675
14703
|
ref: K,
|
|
14676
14704
|
class: y(H.value),
|
|
14677
|
-
style:
|
|
14705
|
+
style: Ye({ "--dp-overlay-height": `${O.value}px` }),
|
|
14678
14706
|
role: "grid"
|
|
14679
14707
|
}, [
|
|
14680
14708
|
q("div", mT, [
|
|
@@ -15751,7 +15779,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
15751
15779
|
"dp--overlay-absolute": !o.timePicker && !Y.timePickerInline,
|
|
15752
15780
|
"dp--overlay-relative": o.timePicker
|
|
15753
15781
|
}),
|
|
15754
|
-
style:
|
|
15782
|
+
style: Ye(Y.timePicker ? { height: `${p(c).modeHeight}px` } : void 0),
|
|
15755
15783
|
"aria-label": (fe = p(u)) == null ? void 0 : fe.timePicker,
|
|
15756
15784
|
tabindex: Y.timePickerInline ? void 0 : 0
|
|
15757
15785
|
}, [
|
|
@@ -16488,7 +16516,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16488
16516
|
}) : (v(), M("div", {
|
|
16489
16517
|
key: 1,
|
|
16490
16518
|
class: y(te.value(E.marker)),
|
|
16491
|
-
style:
|
|
16519
|
+
style: Ye(E.marker.color ? { backgroundColor: E.marker.color } : {})
|
|
16492
16520
|
}, null, 6))
|
|
16493
16521
|
], 64)) : N("", !0),
|
|
16494
16522
|
ce.value(E.value) ? (v(), M("div", {
|
|
@@ -16497,7 +16525,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16497
16525
|
ref_key: "activeTooltip",
|
|
16498
16526
|
ref: K,
|
|
16499
16527
|
class: "dp__marker_tooltip",
|
|
16500
|
-
style:
|
|
16528
|
+
style: Ye(f.value)
|
|
16501
16529
|
}, [
|
|
16502
16530
|
(Xe = E.marker) != null && Xe.tooltip ? (v(), M("div", {
|
|
16503
16531
|
key: 0,
|
|
@@ -16516,14 +16544,14 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16516
16544
|
J.$slots["marker-tooltip"] ? N("", !0) : (v(), M($e, { key: 1 }, [
|
|
16517
16545
|
q("div", {
|
|
16518
16546
|
class: "dp__tooltip_mark",
|
|
16519
|
-
style:
|
|
16547
|
+
style: Ye(qe.color ? { backgroundColor: qe.color } : {})
|
|
16520
16548
|
}, null, 4),
|
|
16521
16549
|
q("div", null, me(qe.text), 1)
|
|
16522
16550
|
], 64))
|
|
16523
16551
|
]))), 128)),
|
|
16524
16552
|
q("div", {
|
|
16525
16553
|
class: "dp__arrow_bottom_tp",
|
|
16526
|
-
style:
|
|
16554
|
+
style: Ye(A.value)
|
|
16527
16555
|
}, null, 4)
|
|
16528
16556
|
])) : N("", !0)
|
|
16529
16557
|
], 4)) : N("", !0)
|
|
@@ -17132,7 +17160,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17132
17160
|
default: P(({ instance: D }) => [
|
|
17133
17161
|
q("div", {
|
|
17134
17162
|
class: "dp-quarter-picker-wrap",
|
|
17135
|
-
style:
|
|
17163
|
+
style: Ye({ minHeight: `${p(l).modeHeight}px` })
|
|
17136
17164
|
}, [
|
|
17137
17165
|
K.$slots["top-extra"] ? ae(K.$slots, "top-extra", {
|
|
17138
17166
|
key: 0,
|
|
@@ -17385,7 +17413,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17385
17413
|
role: p(h).enabled ? void 0 : "dialog",
|
|
17386
17414
|
"aria-label": (nt = X.ariaLabels) == null ? void 0 : nt.menu,
|
|
17387
17415
|
class: y(b.value),
|
|
17388
|
-
style:
|
|
17416
|
+
style: Ye({ "--dp-arrow-left": Y.value }),
|
|
17389
17417
|
onMouseleave: Ce,
|
|
17390
17418
|
onClick: Z,
|
|
17391
17419
|
onKeydown: ot
|
|
@@ -17413,7 +17441,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17413
17441
|
"dp--menu-content-wrapper-collapsed": n.collapse && (((xn = X.presetDates) == null ? void 0 : xn.length) || !!X.$slots["left-sidebar"] || !!X.$slots["right-sidebar"])
|
|
17414
17442
|
}),
|
|
17415
17443
|
"data-dp-mobile": p(S),
|
|
17416
|
-
style:
|
|
17444
|
+
style: Ye({ "--dp-menu-width": `${B.value}px` })
|
|
17417
17445
|
}, [
|
|
17418
17446
|
X.$slots["left-sidebar"] ? (v(), M("div", uS, [
|
|
17419
17447
|
ae(X.$slots, "left-sidebar", Ht(ln(W.value)))
|
|
@@ -17432,7 +17460,7 @@ const Ul = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17432
17460
|
}) : (v(), M("button", {
|
|
17433
17461
|
key: 1,
|
|
17434
17462
|
type: "button",
|
|
17435
|
-
style:
|
|
17463
|
+
style: Ye(oe.style || {}),
|
|
17436
17464
|
class: y(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": n.collapse }]),
|
|
17437
17465
|
"data-test-id": oe.testId ?? void 0,
|
|
17438
17466
|
"data-dp-mobile": p(S),
|
|
@@ -19830,15 +19858,15 @@ const Pf = Symbol("ToastService"), DP = new HM(), jM = ["id"], VM = /* @__PURE__
|
|
|
19830
19858
|
A.$style[`view_${I.view ?? "success"}`],
|
|
19831
19859
|
i.value ? "is-expand" : ""
|
|
19832
19860
|
]),
|
|
19833
|
-
style:
|
|
19861
|
+
style: Ye(d(w).toaster)
|
|
19834
19862
|
}, [
|
|
19835
19863
|
q("div", {
|
|
19836
19864
|
class: y(A.$style.left),
|
|
19837
|
-
style:
|
|
19865
|
+
style: Ye(d(w).left)
|
|
19838
19866
|
}, null, 6),
|
|
19839
19867
|
q("div", {
|
|
19840
19868
|
class: y(A.$style.body),
|
|
19841
|
-
style:
|
|
19869
|
+
style: Ye(d(w).body)
|
|
19842
19870
|
}, [
|
|
19843
19871
|
V(zM, tt({ ref_for: !0 }, I, {
|
|
19844
19872
|
onClick: () => f(I.id)
|
|
@@ -19846,19 +19874,19 @@ const Pf = Symbol("ToastService"), DP = new HM(), jM = ["id"], VM = /* @__PURE__
|
|
|
19846
19874
|
], 6),
|
|
19847
19875
|
q("div", {
|
|
19848
19876
|
class: y(A.$style.right),
|
|
19849
|
-
style:
|
|
19877
|
+
style: Ye(d(w).right)
|
|
19850
19878
|
}, null, 6),
|
|
19851
19879
|
q("div", {
|
|
19852
19880
|
class: y([A.$style.left, A.$style.shadow]),
|
|
19853
|
-
style:
|
|
19881
|
+
style: Ye(d(w).left)
|
|
19854
19882
|
}, null, 6),
|
|
19855
19883
|
q("div", {
|
|
19856
19884
|
class: y([A.$style.body, A.$style.shadow]),
|
|
19857
|
-
style:
|
|
19885
|
+
style: Ye(d(w).body)
|
|
19858
19886
|
}, null, 6),
|
|
19859
19887
|
q("div", {
|
|
19860
19888
|
class: y([A.$style.right, A.$style.shadow]),
|
|
19861
|
-
style:
|
|
19889
|
+
style: Ye(d(w).right)
|
|
19862
19890
|
}, null, 6)
|
|
19863
19891
|
], 14, jM))), 128))
|
|
19864
19892
|
];
|
|
@@ -20102,7 +20130,7 @@ const LP = new t$(), n$ = ["disabled"], r$ = ["onClick"], o$ = /* @__PURE__ */ u
|
|
|
20102
20130
|
ref_key: "skeleton",
|
|
20103
20131
|
ref: e,
|
|
20104
20132
|
key: t.value,
|
|
20105
|
-
style:
|
|
20133
|
+
style: Ye({ width: t.value }),
|
|
20106
20134
|
class: y([o.$style.root, o.$style.view_secondary])
|
|
20107
20135
|
}, [
|
|
20108
20136
|
q("div", {
|
|
@@ -21052,7 +21080,7 @@ const i3 = /* @__PURE__ */ ue({
|
|
|
21052
21080
|
const e = R(() => JSON.stringify(n.list));
|
|
21053
21081
|
return (t, r) => (v(), M("div", {
|
|
21054
21082
|
class: y(t.$style.root),
|
|
21055
|
-
style:
|
|
21083
|
+
style: Ye({ "--grid-template-columns": t.gridTemplateColumns })
|
|
21056
21084
|
}, [
|
|
21057
21085
|
q("div", {
|
|
21058
21086
|
class: y(t.$style.header)
|
|
@@ -21125,7 +21153,7 @@ const i3 = /* @__PURE__ */ ue({
|
|
|
21125
21153
|
setup(n) {
|
|
21126
21154
|
return (e, t) => (v(), M("div", {
|
|
21127
21155
|
class: y(e.$style.row),
|
|
21128
|
-
style:
|
|
21156
|
+
style: Ye({
|
|
21129
21157
|
"grid-gap": `${p(gu)(Number(e.gap))}rem`,
|
|
21130
21158
|
"align-items": e.align
|
|
21131
21159
|
})
|
|
@@ -21143,7 +21171,7 @@ const i3 = /* @__PURE__ */ ue({
|
|
|
21143
21171
|
setup(n) {
|
|
21144
21172
|
return (e, t) => (v(), M("article", {
|
|
21145
21173
|
class: y(e.$style.root),
|
|
21146
|
-
style:
|
|
21174
|
+
style: Ye({
|
|
21147
21175
|
borderRadius: `var(--border-radius-${e.borderRadius.toString()})`
|
|
21148
21176
|
})
|
|
21149
21177
|
}, [
|
|
@@ -21245,7 +21273,7 @@ window.cancelIdleCallback = window.cancelIdleCallback || function(n) {
|
|
|
21245
21273
|
};
|
|
21246
21274
|
let k3 = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
21247
21275
|
var qf = /* @__PURE__ */ ((n) => (n.VERBOSE = "VERBOSE", n.INFO = "INFO", n.WARN = "WARN", n.ERROR = "ERROR", n))(qf || {});
|
|
21248
|
-
const
|
|
21276
|
+
const Ue = {
|
|
21249
21277
|
BACKSPACE: 8,
|
|
21250
21278
|
TAB: 9,
|
|
21251
21279
|
ENTER: 13,
|
|
@@ -24603,18 +24631,18 @@ let si = hm, Js = class nu {
|
|
|
24603
24631
|
this.iterator = null, this.activated = !1, this.flipCallbacks = [], this.onKeyDown = (t) => {
|
|
24604
24632
|
if (!(!this.isEventReadyForHandling(t) || t.shiftKey === !0))
|
|
24605
24633
|
switch (nu.usedKeys.includes(t.keyCode) && t.preventDefault(), t.keyCode) {
|
|
24606
|
-
case
|
|
24634
|
+
case Ue.TAB:
|
|
24607
24635
|
this.handleTabPress(t);
|
|
24608
24636
|
break;
|
|
24609
|
-
case
|
|
24610
|
-
case
|
|
24637
|
+
case Ue.LEFT:
|
|
24638
|
+
case Ue.UP:
|
|
24611
24639
|
this.flipLeft();
|
|
24612
24640
|
break;
|
|
24613
|
-
case
|
|
24614
|
-
case
|
|
24641
|
+
case Ue.RIGHT:
|
|
24642
|
+
case Ue.DOWN:
|
|
24615
24643
|
this.flipRight();
|
|
24616
24644
|
break;
|
|
24617
|
-
case
|
|
24645
|
+
case Ue.ENTER:
|
|
24618
24646
|
this.handleEnterPress(t);
|
|
24619
24647
|
break;
|
|
24620
24648
|
}
|
|
@@ -24634,12 +24662,12 @@ let si = hm, Js = class nu {
|
|
|
24634
24662
|
*/
|
|
24635
24663
|
static get usedKeys() {
|
|
24636
24664
|
return [
|
|
24637
|
-
|
|
24638
|
-
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24665
|
+
Ue.TAB,
|
|
24666
|
+
Ue.LEFT,
|
|
24667
|
+
Ue.RIGHT,
|
|
24668
|
+
Ue.ENTER,
|
|
24669
|
+
Ue.UP,
|
|
24670
|
+
Ue.DOWN
|
|
24643
24671
|
];
|
|
24644
24672
|
}
|
|
24645
24673
|
/**
|
|
@@ -25422,10 +25450,10 @@ const vm = class gm extends mm {
|
|
|
25422
25450
|
items: this.flippableElements,
|
|
25423
25451
|
focusedItemClass: Tt.focused,
|
|
25424
25452
|
allowedKeys: [
|
|
25425
|
-
|
|
25426
|
-
|
|
25427
|
-
|
|
25428
|
-
|
|
25453
|
+
Ue.TAB,
|
|
25454
|
+
Ue.UP,
|
|
25455
|
+
Ue.DOWN,
|
|
25456
|
+
Ue.ENTER
|
|
25429
25457
|
]
|
|
25430
25458
|
}), this.flipper.onFlip(this.onFlip));
|
|
25431
25459
|
}
|
|
@@ -27998,24 +28026,24 @@ class AD extends rt {
|
|
|
27998
28026
|
*/
|
|
27999
28027
|
keydown(e) {
|
|
28000
28028
|
switch (this.beforeKeydownProcessing(e), e.keyCode) {
|
|
28001
|
-
case
|
|
28029
|
+
case Ue.BACKSPACE:
|
|
28002
28030
|
this.backspace(e);
|
|
28003
28031
|
break;
|
|
28004
|
-
case
|
|
28032
|
+
case Ue.DELETE:
|
|
28005
28033
|
this.delete(e);
|
|
28006
28034
|
break;
|
|
28007
|
-
case
|
|
28035
|
+
case Ue.ENTER:
|
|
28008
28036
|
this.enter(e);
|
|
28009
28037
|
break;
|
|
28010
|
-
case
|
|
28011
|
-
case
|
|
28038
|
+
case Ue.DOWN:
|
|
28039
|
+
case Ue.RIGHT:
|
|
28012
28040
|
this.arrowRightAndDown(e);
|
|
28013
28041
|
break;
|
|
28014
|
-
case
|
|
28015
|
-
case
|
|
28042
|
+
case Ue.UP:
|
|
28043
|
+
case Ue.LEFT:
|
|
28016
28044
|
this.arrowLeftAndUp(e);
|
|
28017
28045
|
break;
|
|
28018
|
-
case
|
|
28046
|
+
case Ue.TAB:
|
|
28019
28047
|
this.tabPressed(e);
|
|
28020
28048
|
break;
|
|
28021
28049
|
}
|
|
@@ -28186,16 +28214,16 @@ class AD extends rt {
|
|
|
28186
28214
|
* @param {KeyboardEvent} event - keyboard event
|
|
28187
28215
|
*/
|
|
28188
28216
|
arrowRightAndDown(e) {
|
|
28189
|
-
const t = Js.usedKeys.includes(e.keyCode) && (!e.shiftKey || e.keyCode ===
|
|
28217
|
+
const t = Js.usedKeys.includes(e.keyCode) && (!e.shiftKey || e.keyCode === Ue.TAB);
|
|
28190
28218
|
if (this.Editor.UI.someToolbarOpened && t)
|
|
28191
28219
|
return;
|
|
28192
28220
|
this.Editor.Toolbar.close();
|
|
28193
28221
|
const { currentBlock: r } = this.Editor.BlockManager, o = ((r == null ? void 0 : r.currentInput) !== void 0 ? Bs(r.currentInput) : void 0) || this.Editor.BlockSelection.anyBlockSelected;
|
|
28194
|
-
if (e.shiftKey && e.keyCode ===
|
|
28222
|
+
if (e.shiftKey && e.keyCode === Ue.DOWN && o) {
|
|
28195
28223
|
this.Editor.CrossBlockSelection.toggleBlockSelectedState();
|
|
28196
28224
|
return;
|
|
28197
28225
|
}
|
|
28198
|
-
if (e.keyCode ===
|
|
28226
|
+
if (e.keyCode === Ue.DOWN || e.keyCode === Ue.RIGHT && !this.isRtl ? this.Editor.Caret.navigateNext() : this.Editor.Caret.navigatePrevious()) {
|
|
28199
28227
|
e.preventDefault();
|
|
28200
28228
|
return;
|
|
28201
28229
|
}
|
|
@@ -28210,17 +28238,17 @@ class AD extends rt {
|
|
|
28210
28238
|
*/
|
|
28211
28239
|
arrowLeftAndUp(e) {
|
|
28212
28240
|
if (this.Editor.UI.someToolbarOpened) {
|
|
28213
|
-
if (Js.usedKeys.includes(e.keyCode) && (!e.shiftKey || e.keyCode ===
|
|
28241
|
+
if (Js.usedKeys.includes(e.keyCode) && (!e.shiftKey || e.keyCode === Ue.TAB))
|
|
28214
28242
|
return;
|
|
28215
28243
|
this.Editor.UI.closeAllToolbars();
|
|
28216
28244
|
}
|
|
28217
28245
|
this.Editor.Toolbar.close();
|
|
28218
28246
|
const { currentBlock: t } = this.Editor.BlockManager, r = ((t == null ? void 0 : t.currentInput) !== void 0 ? $s(t.currentInput) : void 0) || this.Editor.BlockSelection.anyBlockSelected;
|
|
28219
|
-
if (e.shiftKey && e.keyCode ===
|
|
28247
|
+
if (e.shiftKey && e.keyCode === Ue.UP && r) {
|
|
28220
28248
|
this.Editor.CrossBlockSelection.toggleBlockSelectedState(!1);
|
|
28221
28249
|
return;
|
|
28222
28250
|
}
|
|
28223
|
-
if (e.keyCode ===
|
|
28251
|
+
if (e.keyCode === Ue.UP || e.keyCode === Ue.LEFT && !this.isRtl ? this.Editor.Caret.navigatePrevious() : this.Editor.Caret.navigateNext()) {
|
|
28224
28252
|
e.preventDefault();
|
|
28225
28253
|
return;
|
|
28226
28254
|
}
|
|
@@ -28234,7 +28262,7 @@ class AD extends rt {
|
|
|
28234
28262
|
* @param {KeyboardEvent} event - keyboard event
|
|
28235
28263
|
*/
|
|
28236
28264
|
needToolbarClosing(e) {
|
|
28237
|
-
const t = e.keyCode ===
|
|
28265
|
+
const t = e.keyCode === Ue.ENTER && this.Editor.Toolbar.toolbox.opened, r = e.keyCode === Ue.ENTER && this.Editor.BlockSettings.opened, o = e.keyCode === Ue.ENTER && this.Editor.InlineToolbar.opened, i = e.keyCode === Ue.TAB;
|
|
28238
28266
|
return !(e.shiftKey || i || t || r || o);
|
|
28239
28267
|
}
|
|
28240
28268
|
/**
|
|
@@ -29543,12 +29571,12 @@ class RD extends rt {
|
|
|
29543
29571
|
const { BlockManager: t, BlockSelection: r, Caret: o } = this.Editor, i = t.blocks.indexOf(this.firstSelectedBlock), s = t.blocks.indexOf(this.lastSelectedBlock);
|
|
29544
29572
|
if (r.anyBlockSelected && i > -1 && s > -1 && e && e instanceof KeyboardEvent)
|
|
29545
29573
|
switch (e.keyCode) {
|
|
29546
|
-
case
|
|
29547
|
-
case
|
|
29574
|
+
case Ue.DOWN:
|
|
29575
|
+
case Ue.RIGHT:
|
|
29548
29576
|
o.setToBlock(t.blocks[Math.max(i, s)], o.positions.END);
|
|
29549
29577
|
break;
|
|
29550
|
-
case
|
|
29551
|
-
case
|
|
29578
|
+
case Ue.UP:
|
|
29579
|
+
case Ue.LEFT:
|
|
29552
29580
|
o.setToBlock(t.blocks[Math.min(i, s)], o.positions.START);
|
|
29553
29581
|
break;
|
|
29554
29582
|
default:
|
|
@@ -31929,14 +31957,14 @@ class oI extends rt {
|
|
|
31929
31957
|
*/
|
|
31930
31958
|
documentKeydown(e) {
|
|
31931
31959
|
switch (e.keyCode) {
|
|
31932
|
-
case
|
|
31960
|
+
case Ue.ENTER:
|
|
31933
31961
|
this.enterPressed(e);
|
|
31934
31962
|
break;
|
|
31935
|
-
case
|
|
31936
|
-
case
|
|
31963
|
+
case Ue.BACKSPACE:
|
|
31964
|
+
case Ue.DELETE:
|
|
31937
31965
|
this.backspacePressed(e);
|
|
31938
31966
|
break;
|
|
31939
|
-
case
|
|
31967
|
+
case Ue.ESC:
|
|
31940
31968
|
this.escapePressed(e);
|
|
31941
31969
|
break;
|
|
31942
31970
|
default:
|