@namba_one/ui-kit-2 1.2.29 → 1.2.31
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 +2 -0
- package/dist/index.es.js +84 -80
- package/dist/index.umd.js +18 -18
- package/dist/namba-one-uikit.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ag = Object.defineProperty;
|
|
2
2
|
var lg = (n, e, t) => e in n ? ag(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var xe = (n, e, t) => lg(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as ne, useCssModule as dn, computed as R, createBlock as W, openBlock as v, resolveDynamicComponent as Gn, mergeProps as Je, withCtx as k, renderSlot as oe, createElementBlock as _, normalizeClass as m, normalizeStyle as Le, createElementVNode as H, createCommentVNode as N, createVNode as T, unref as h, useTemplateRef as Do, watch as Xe, ref as Y, withDirectives as vn, vShow as Uo, h as Gr, Transition as yn, onMounted as lt, useSlots as qn, toHandlers as Js, mergeModels as et, useModel as tt, createTextVNode as se, toDisplayString as re, withModifiers as Yn, resolveComponent as xs, TransitionGroup as ma, Fragment as _e, renderList as De, provide as tr, useId as Cu, onBeforeUnmount as _r, Teleport as is, inject as Cr, isRef as
|
|
4
|
+
import { defineComponent as ne, useCssModule as dn, computed as R, createBlock as W, openBlock as v, resolveDynamicComponent as Gn, mergeProps as Je, withCtx as k, renderSlot as oe, createElementBlock as _, normalizeClass as m, normalizeStyle as Le, createElementVNode as H, createCommentVNode as N, createVNode as T, unref as h, useTemplateRef as Do, watch as Xe, ref as Y, withDirectives as vn, vShow as Uo, h as Gr, Transition as yn, onMounted as lt, useSlots as qn, toHandlers as Js, mergeModels as et, useModel as tt, createTextVNode as se, toDisplayString as re, withModifiers as Yn, resolveComponent as xs, TransitionGroup as ma, Fragment as _e, renderList as De, provide as tr, useId as Cu, onBeforeUnmount as _r, Teleport as is, inject as Cr, isRef as xn, onUnmounted as Kn, readonly as pp, toRef as _o, nextTick as gt, getCurrentInstance as ei, getCurrentScope as fp, onScopeDispose as vp, shallowRef as ug, vModelText as ga, reactive as as, createSlots as qt, normalizeProps as Wt, guardReactiveProps as fn, render as eh, useAttrs as cg, toValue as dg, onBeforeUpdate as hg, withKeys as pg, resolveDirective as fg, vModelDynamic as vg, createPropsRestProxy as mg } from "vue";
|
|
5
5
|
import { useRouter as gg, onBeforeRouteLeave as yg } from "vue-router";
|
|
6
6
|
const bg = /* @__PURE__ */ ne({
|
|
7
7
|
__name: "TheText",
|
|
@@ -1827,7 +1827,7 @@ function Bu(n, e) {
|
|
|
1827
1827
|
t = t.previousElementSibling;
|
|
1828
1828
|
return t || null;
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Dn(n, e) {
|
|
1831
1831
|
var t = 0;
|
|
1832
1832
|
if (!n || !n.parentNode)
|
|
1833
1833
|
return -1;
|
|
@@ -2220,7 +2220,7 @@ He.prototype = /** @lends Sortable.prototype */
|
|
|
2220
2220
|
if (e.cancelable) {
|
|
2221
2221
|
var t = this, o = this.el, r = this.options, s = r.preventOnFilter, i = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, c = r.filter;
|
|
2222
2222
|
if (P0(o), !Ee && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ms && l && l.tagName.toUpperCase() === "SELECT") && (l = to(l, r.draggable, o, !1), !(l && l.animated) && Di !== l)) {
|
|
2223
|
-
if (jr =
|
|
2223
|
+
if (jr = Dn(l), Ds = Dn(l, r.draggable), typeof c == "function") {
|
|
2224
2224
|
if (c.call(this, e, l, this)) {
|
|
2225
2225
|
sn({
|
|
2226
2226
|
sortable: t,
|
|
@@ -2426,7 +2426,7 @@ He.prototype = /** @lends Sortable.prototype */
|
|
|
2426
2426
|
}), f !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (o === Ee && !Ee.animated || o === t && !o.animated) && (Dr = null), !a.dragoverBubble && !e.rootEl && o !== document && (Ee.parentNode[Sn]._isOutsideThisEl(e.target), !q && ar(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
2427
2427
|
}
|
|
2428
2428
|
function F() {
|
|
2429
|
-
Cn =
|
|
2429
|
+
Cn = Dn(Ee), zo = Dn(Ee, a.draggable), sn({
|
|
2430
2430
|
sortable: f,
|
|
2431
2431
|
name: "change",
|
|
2432
2432
|
toEl: t,
|
|
@@ -2460,7 +2460,7 @@ He.prototype = /** @lends Sortable.prototype */
|
|
|
2460
2460
|
Dr !== o && (A = s[w], Os = !1, mi = !C && a.invertSwap || z), j = O0(e, o, s, g, C ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, mi, Dr === o);
|
|
2461
2461
|
var te;
|
|
2462
2462
|
if (j !== 0) {
|
|
2463
|
-
var E =
|
|
2463
|
+
var E = Dn(Ee);
|
|
2464
2464
|
do
|
|
2465
2465
|
E -= j, te = xt.children[E];
|
|
2466
2466
|
while (te && (ze(te, "display") === "none" || te === Ke));
|
|
@@ -2489,9 +2489,9 @@ He.prototype = /** @lends Sortable.prototype */
|
|
|
2489
2489
|
},
|
|
2490
2490
|
_onDrop: function(e) {
|
|
2491
2491
|
var t = this.el, o = this.options;
|
|
2492
|
-
if (Cn =
|
|
2492
|
+
if (Cn = Dn(Ee), zo = Dn(Ee, o.draggable), hn("drop", this, {
|
|
2493
2493
|
evt: e
|
|
2494
|
-
}), xt = Ee && Ee.parentNode, Cn =
|
|
2494
|
+
}), xt = Ee && Ee.parentNode, Cn = Dn(Ee), zo = Dn(Ee, o.draggable), He.eventCanceled) {
|
|
2495
2495
|
this._nulling();
|
|
2496
2496
|
return;
|
|
2497
2497
|
}
|
|
@@ -2677,7 +2677,7 @@ function O0(n, e, t, o, r, s, i, a) {
|
|
|
2677
2677
|
return p = p || i, p && (l < c + u * s / 2 || l > d - u * s / 2) ? l > c + u / 2 ? 1 : -1 : 0;
|
|
2678
2678
|
}
|
|
2679
2679
|
function I0(n) {
|
|
2680
|
-
return
|
|
2680
|
+
return Dn(Ee) < Dn(n) ? 1 : -1;
|
|
2681
2681
|
}
|
|
2682
2682
|
function L0(n) {
|
|
2683
2683
|
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, t = e.length, o = 0; t--; )
|
|
@@ -2713,7 +2713,7 @@ He.utils = {
|
|
|
2713
2713
|
closest: to,
|
|
2714
2714
|
toggleClass: kn,
|
|
2715
2715
|
clone: Op,
|
|
2716
|
-
index:
|
|
2716
|
+
index: Dn,
|
|
2717
2717
|
nextTick: Oi,
|
|
2718
2718
|
cancelNextTick: Gl,
|
|
2719
2719
|
detectDirection: Lp,
|
|
@@ -4215,8 +4215,8 @@ function Z1() {
|
|
|
4215
4215
|
} else {
|
|
4216
4216
|
var bn = L.style.borderLeftWidth, Pn = L.style.borderRightWidth;
|
|
4217
4217
|
L.style.borderLeftWidth = "0px", L.style.borderRightWidth = "0px";
|
|
4218
|
-
var
|
|
4219
|
-
return L.style.borderLeftWidth = bn, L.style.borderRightWidth = Pn,
|
|
4218
|
+
var Bn = L.offsetWidth - L.clientWidth;
|
|
4219
|
+
return L.style.borderLeftWidth = bn, L.style.borderRightWidth = Pn, Bn;
|
|
4220
4220
|
}
|
|
4221
4221
|
else
|
|
4222
4222
|
return 0;
|
|
@@ -4376,8 +4376,8 @@ Available fill gap methods: `).concat(be, "."));
|
|
|
4376
4376
|
else if (C.fillGapMethod === "max-width")
|
|
4377
4377
|
L.style.maxWidth = "calc(100% - ".concat(Be, "px)");
|
|
4378
4378
|
else if (C.fillGapMethod === "padding") {
|
|
4379
|
-
var
|
|
4380
|
-
L.style.paddingRight = "".concat(
|
|
4379
|
+
var Bn = parseFloat(bn.paddingRight);
|
|
4380
|
+
L.style.paddingRight = "".concat(Bn + Be, "px");
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
4383
|
}, qe = function(L) {
|
|
@@ -4398,7 +4398,7 @@ Available fill gap methods: `).concat(be, "."));
|
|
|
4398
4398
|
if (!C.scroll) {
|
|
4399
4399
|
var be = C.startTouchY, Be = C.startTouchX, Ae = L.touches[0].clientY, bn = L.touches[0].clientX;
|
|
4400
4400
|
if (L.touches.length < 2) {
|
|
4401
|
-
var Pn = c(C.scrollableSelectors),
|
|
4401
|
+
var Pn = c(C.scrollableSelectors), Bn = {
|
|
4402
4402
|
up: be < Ae,
|
|
4403
4403
|
down: be > Ae,
|
|
4404
4404
|
left: Be < bn,
|
|
@@ -4416,7 +4416,7 @@ Available fill gap methods: `).concat(be, "."));
|
|
|
4416
4416
|
return !1;
|
|
4417
4417
|
if (Re || F(fe) && p(fe, Pn) || g(fe, Pn)) {
|
|
4418
4418
|
var he = !1;
|
|
4419
|
-
$(fe) && x(fe) ? (
|
|
4419
|
+
$(fe) && x(fe) ? (Bn.up && y(fe) || Bn.down && B(fe)) && (he = !0) : y(fe) && B(fe) ? (Bn.left && $(fe) || Bn.right && x(fe)) && (he = !0) : (Oo.up && y(fe) || Oo.down && B(fe) || Oo.left && $(fe) || Oo.right && x(fe)) && (he = !0), he && (Ge ? J(Ge, !0) : L.cancelable && L.preventDefault());
|
|
4420
4420
|
} else
|
|
4421
4421
|
J(Ge);
|
|
4422
4422
|
} else
|
|
@@ -4471,7 +4471,7 @@ Available fill gap methods: `).concat(be, "."));
|
|
|
4471
4471
|
u(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead.
|
|
4472
4472
|
https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`), te();
|
|
4473
4473
|
}
|
|
4474
|
-
},
|
|
4474
|
+
}, Mn = I({
|
|
4475
4475
|
disablePageScroll: w,
|
|
4476
4476
|
enablePageScroll: O,
|
|
4477
4477
|
getScrollState: U,
|
|
@@ -4494,7 +4494,7 @@ Available fill gap methods: `).concat(be, "."));
|
|
|
4494
4494
|
refillGaps: we,
|
|
4495
4495
|
_state: C
|
|
4496
4496
|
}, Ot);
|
|
4497
|
-
o.default =
|
|
4497
|
+
o.default = Mn;
|
|
4498
4498
|
}
|
|
4499
4499
|
/******/
|
|
4500
4500
|
]).default
|
|
@@ -7193,7 +7193,7 @@ function qw(n, e) {
|
|
|
7193
7193
|
defaultUnmaskedValue: i,
|
|
7194
7194
|
defaultTypedValue: a
|
|
7195
7195
|
} = e === void 0 ? {} : e;
|
|
7196
|
-
const l =
|
|
7196
|
+
const l = xn(n) ? n : Y(n), u = Y(), c = Y(), d = Y(""), p = Y(""), g = Y();
|
|
7197
7197
|
let f, y = d.value, B = p.value, $ = g.value;
|
|
7198
7198
|
function x() {
|
|
7199
7199
|
$ = g.value = c.value.typedValue, B = p.value = c.value.unmaskedValue, y = d.value = c.value.value;
|
|
@@ -8539,7 +8539,7 @@ const af = Symbol(), lf = () => Cr(
|
|
|
8539
8539
|
function Fu(n) {
|
|
8540
8540
|
return n / 12;
|
|
8541
8541
|
}
|
|
8542
|
-
function
|
|
8542
|
+
function An(n) {
|
|
8543
8543
|
if (window) {
|
|
8544
8544
|
const t = Math.min(Math.max(window.innerWidth, 1200), 1440) / 100;
|
|
8545
8545
|
return Number((n * t / 12).toFixed(2));
|
|
@@ -8557,7 +8557,7 @@ function Q_({
|
|
|
8557
8557
|
}) {
|
|
8558
8558
|
const a = n == null ? void 0 : n.getBoundingClientRect(), l = e;
|
|
8559
8559
|
if (!a || !l) return;
|
|
8560
|
-
const { innerWidth: u, innerHeight: c } = window, d = l.getBoundingClientRect(), p =
|
|
8560
|
+
const { innerWidth: u, innerHeight: c } = window, d = l.getBoundingClientRect(), p = An(Number(r)), g = An(Number(s)), f = a.left + (a.width + p) - d.width > 0, y = a.left + d.width + p <= u, B = a.bottom + d.height + g < c, $ = a.top > d.height + g, { coordinates: x, align: F } = e2({
|
|
8561
8561
|
isCanPositionRight: f,
|
|
8562
8562
|
isCanPositionLeft: y,
|
|
8563
8563
|
parentElementRect: a,
|
|
@@ -8973,6 +8973,8 @@ const s2 = /* @__PURE__ */ ne({
|
|
|
8973
8973
|
});
|
|
8974
8974
|
}), (d, p) => (v(), _("div", {
|
|
8975
8975
|
"data-ignore-click-outside": "",
|
|
8976
|
+
ref_key: "parentElementRef",
|
|
8977
|
+
ref: c,
|
|
8976
8978
|
class: m([
|
|
8977
8979
|
d.$style.root,
|
|
8978
8980
|
{
|
|
@@ -9002,6 +9004,7 @@ const s2 = /* @__PURE__ */ ne({
|
|
|
9002
9004
|
], 2),
|
|
9003
9005
|
T(h(fo), {
|
|
9004
9006
|
isShowDropdown: h(a),
|
|
9007
|
+
"onUpdate:isShowDropdown": p[1] || (p[1] = (g) => xn(a) ? a.value = g : null),
|
|
9005
9008
|
"vertical-offset": "10",
|
|
9006
9009
|
isCloseOnScrollParent: !0,
|
|
9007
9010
|
"is-stretch-to-parent": "",
|
|
@@ -11150,7 +11153,7 @@ function vt(n, e) {
|
|
|
11150
11153
|
function Fe(n, e) {
|
|
11151
11154
|
return vt(e || n, n);
|
|
11152
11155
|
}
|
|
11153
|
-
function
|
|
11156
|
+
function On(n, e, t) {
|
|
11154
11157
|
const o = Fe(n, t == null ? void 0 : t.in);
|
|
11155
11158
|
return isNaN(e) ? vt((t == null ? void 0 : t.in) || n, NaN) : (e && o.setDate(o.getDate() + e), o);
|
|
11156
11159
|
}
|
|
@@ -11177,7 +11180,7 @@ function bf(n, e, t) {
|
|
|
11177
11180
|
hours: a = 0,
|
|
11178
11181
|
minutes: l = 0,
|
|
11179
11182
|
seconds: u = 0
|
|
11180
|
-
} = e, c = Fe(n, t == null ? void 0 : t.in), d = r || o ? jn(c, r + o * 12) : c, p = i || s ?
|
|
11183
|
+
} = e, c = Fe(n, t == null ? void 0 : t.in), d = r || o ? jn(c, r + o * 12) : c, p = i || s ? On(d, i + s * 7) : d, g = l + a * 60, y = (u + g * 60) * 1e3;
|
|
11181
11184
|
return vt(n, +p + y);
|
|
11182
11185
|
}
|
|
11183
11186
|
function BT(n, e, t) {
|
|
@@ -13381,7 +13384,7 @@ class t$ extends ct {
|
|
|
13381
13384
|
function Uu(n, e, t) {
|
|
13382
13385
|
var d, p, g, f;
|
|
13383
13386
|
const o = $r(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((p = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : p.weekStartsOn) ?? o.weekStartsOn ?? ((f = (g = o.locale) == null ? void 0 : g.options) == null ? void 0 : f.weekStartsOn) ?? 0, s = Fe(n, t == null ? void 0 : t.in), i = s.getDay(), l = (e % 7 + 7) % 7, u = 7 - r, c = e < 0 || e > 6 ? e - (i + u) % 7 : (l + u) % 7 - (i + u) % 7;
|
|
13384
|
-
return
|
|
13387
|
+
return On(s, c, t);
|
|
13385
13388
|
}
|
|
13386
13389
|
class n$ extends ct {
|
|
13387
13390
|
constructor() {
|
|
@@ -13568,7 +13571,7 @@ class r$ extends ct {
|
|
|
13568
13571
|
}
|
|
13569
13572
|
function s$(n, e, t) {
|
|
13570
13573
|
const o = Fe(n, t == null ? void 0 : t.in), r = OS(o, t), s = e - r;
|
|
13571
|
-
return
|
|
13574
|
+
return On(o, s, t);
|
|
13572
13575
|
}
|
|
13573
13576
|
class i$ extends ct {
|
|
13574
13577
|
constructor() {
|
|
@@ -14159,7 +14162,7 @@ function Ih(n, e, t) {
|
|
|
14159
14162
|
return +fr(o) == +fr(r);
|
|
14160
14163
|
}
|
|
14161
14164
|
function Lf(n, e, t) {
|
|
14162
|
-
return
|
|
14165
|
+
return On(n, -e, t);
|
|
14163
14166
|
}
|
|
14164
14167
|
function Pf(n, e, t) {
|
|
14165
14168
|
const o = Fe(n, t == null ? void 0 : t.in), r = o.getFullYear(), s = o.getDate(), i = vt(n, 0);
|
|
@@ -14636,7 +14639,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14636
14639
|
}
|
|
14637
14640
|
return !0;
|
|
14638
14641
|
}, Jf = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((o) => o.month === e && o.year === t), nc = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), uu = (n) => `dp-${co(n, "yyyy-MM-dd")}`, zh = (n, e) => {
|
|
14639
|
-
const t = Lf(Ut(e), n), o =
|
|
14642
|
+
const t = Lf(Ut(e), n), o = On(Ut(e), n);
|
|
14640
14643
|
return { before: t, after: o };
|
|
14641
14644
|
}, ms = as({
|
|
14642
14645
|
menuFocused: !1,
|
|
@@ -17440,10 +17443,10 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17440
17443
|
const he = 6 - J.length, Me = (fe.getDay() + 7 - Ge) % 7, Oe = 6 - (Re.getDay() + 7 - Ge) % 7, [vo, Zn] = Te(Me, Oe);
|
|
17441
17444
|
for (let sr = 1; sr <= he; sr++)
|
|
17442
17445
|
if (Zn ? !!(sr % 2) == vo : vo) {
|
|
17443
|
-
const Io = J[0].days[0], tl = Qe(
|
|
17446
|
+
const Io = J[0].days[0], tl = Qe(On(Io.value, -7), nt(fe));
|
|
17444
17447
|
J.unshift({ days: tl });
|
|
17445
17448
|
} else {
|
|
17446
|
-
const Io = J[J.length - 1], tl = Io.days[Io.days.length - 1], ig = Qe(
|
|
17449
|
+
const Io = J[J.length - 1], tl = Io.days[Io.days.length - 1], ig = Qe(On(tl.value, 1), nt(fe));
|
|
17447
17450
|
J.push({ days: ig });
|
|
17448
17451
|
}
|
|
17449
17452
|
}
|
|
@@ -17451,7 +17454,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17451
17454
|
}, Qe = (J, fe) => {
|
|
17452
17455
|
const Re = ge(J), Ge = [];
|
|
17453
17456
|
for (let he = 0; he < 7; he++) {
|
|
17454
|
-
const Me =
|
|
17457
|
+
const Me = On(Re, he), Oe = nt(Me) !== fe;
|
|
17455
17458
|
Ge.push({
|
|
17456
17459
|
text: n.hideOffsetDates && Oe ? "" : Me.getDate(),
|
|
17457
17460
|
value: Me,
|
|
@@ -17466,7 +17469,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17466
17469
|
if (Re.push({ days: sr }), !Re[Re.length - 1].days.some(
|
|
17467
17470
|
(Io) => ot(Ut(Io.value), Ut(he))
|
|
17468
17471
|
)) {
|
|
17469
|
-
const Io =
|
|
17472
|
+
const Io = On(Zn, 7);
|
|
17470
17473
|
vo(Io);
|
|
17471
17474
|
}
|
|
17472
17475
|
};
|
|
@@ -17481,7 +17484,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17481
17484
|
}, $e = (J, fe) => {
|
|
17482
17485
|
const Re = [
|
|
17483
17486
|
ge(J.value),
|
|
17484
|
-
|
|
17487
|
+
On(ge(J.value), +f.value.autoRange)
|
|
17485
17488
|
];
|
|
17486
17489
|
I(Re) ? (fe && rt(J.value), r.value = Re) : e("invalid-date", J.value);
|
|
17487
17490
|
}, rt = (J) => {
|
|
@@ -17497,7 +17500,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17497
17500
|
if (St(J.value) || !j(J.value, l.value, f.value.fixedStart ? 0 : 1))
|
|
17498
17501
|
return e("invalid-date", J.value);
|
|
17499
17502
|
r.value = ov(ge(J.value), l, e, f);
|
|
17500
|
-
},
|
|
17503
|
+
}, Mn = (J, fe) => {
|
|
17501
17504
|
if (Z(), f.value.autoRange) return $e(J, fe);
|
|
17502
17505
|
if (f.value.fixedStart || f.value.fixedEnd) return Ot(J);
|
|
17503
17506
|
r.value[0] ? j(ge(J.value), l.value) && !St(J.value) ? Dt(ge(J.value), ge(r.value[0])) ? (r.value.unshift(ge(J.value)), e("range-end", r.value[0])) : (r.value[1] = ge(J.value), e("range-end", r.value[1])) : (n.autoApply && e("auto-apply-invalid", J.value), e("invalid-date", J.value)) : (r.value[0] = ge(J.value), e("range-start", r.value[0]));
|
|
@@ -17516,7 +17519,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17516
17519
|
}, Ae = (J, fe = !1) => {
|
|
17517
17520
|
if (P(J.value) || !J.current && n.hideOffsetDates) return e("invalid-date", J.value);
|
|
17518
17521
|
if (i.value = JSON.parse(JSON.stringify(J)), !f.value.enabled) return it(J);
|
|
17519
|
-
Vh(c.hours) && Vh(c.minutes) && !x.value.enabled && (
|
|
17522
|
+
Vh(c.hours) && Vh(c.minutes) && !x.value.enabled && (Mn(J, fe), Be());
|
|
17520
17523
|
}, bn = (J, fe) => {
|
|
17521
17524
|
var Re;
|
|
17522
17525
|
M(J, fe.month, fe.year, !0), p.value.count && !p.value.solo && Ne(J), e("update-month-year", { instance: J, month: fe.month, year: fe.year }), t(p.value.solo ? J : void 0);
|
|
@@ -17529,7 +17532,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17529
17532
|
range: f.value.enabled,
|
|
17530
17533
|
timezone: fe ? void 0 : B.value.timezone
|
|
17531
17534
|
}), G(), n.multiCalendars && gt().then(() => X(!0));
|
|
17532
|
-
},
|
|
17535
|
+
}, Bn = () => {
|
|
17533
17536
|
const J = Zu(ge(), B.value);
|
|
17534
17537
|
!f.value.enabled && !x.value.enabled ? l.value = J : l.value && Array.isArray(l.value) && l.value[0] ? x.value.enabled ? l.value = [...l.value, J] : l.value = Dt(J, l.value[0]) ? [J, l.value[0]] : [l.value[0], J] : l.value = [J], G();
|
|
17535
17538
|
}, Oo = () => {
|
|
@@ -17560,7 +17563,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17560
17563
|
selectDate: Ae,
|
|
17561
17564
|
updateMonthYear: bn,
|
|
17562
17565
|
presetDate: Pn,
|
|
17563
|
-
selectCurrentDate:
|
|
17566
|
+
selectCurrentDate: Bn,
|
|
17564
17567
|
updateTime: (J, fe = !0, Re = !1) => {
|
|
17565
17568
|
A(J, fe, Re, Oo);
|
|
17566
17569
|
},
|
|
@@ -18110,8 +18113,8 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
18110
18113
|
var $e, rt, Ot;
|
|
18111
18114
|
($e = I.value) == null || $e.toggleTimePicker(!1, !1), (rt = I.value) == null || rt.toggleMonthPicker(!1, !1, Z), (Ot = I.value) == null || Ot.toggleYearPicker(!1, !1, Z);
|
|
18112
18115
|
}, Ce = (Z, $e = 0) => {
|
|
18113
|
-
var rt, Ot,
|
|
18114
|
-
return Z === "month" ? (rt = I.value) == null ? void 0 : rt.toggleMonthPicker(!1, !0, $e) : Z === "year" ? (Ot = I.value) == null ? void 0 : Ot.toggleYearPicker(!1, !0, $e) : Z === "time" ? (
|
|
18116
|
+
var rt, Ot, Mn;
|
|
18117
|
+
return Z === "month" ? (rt = I.value) == null ? void 0 : rt.toggleMonthPicker(!1, !0, $e) : Z === "year" ? (Ot = I.value) == null ? void 0 : Ot.toggleYearPicker(!1, !0, $e) : Z === "time" ? (Mn = I.value) == null ? void 0 : Mn.toggleTimePicker(!0, !1) : ve($e);
|
|
18115
18118
|
}, D = (Z, ...$e) => {
|
|
18116
18119
|
var rt, Ot;
|
|
18117
18120
|
(rt = I.value) != null && rt[Z] && ((Ot = I.value) == null || Ot[Z](...$e));
|
|
@@ -18160,7 +18163,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
18160
18163
|
($e = (Z = I.value) == null ? void 0 : Z.setStartTime) == null || $e.call(Z);
|
|
18161
18164
|
}
|
|
18162
18165
|
}), (Z, $e) => {
|
|
18163
|
-
var rt, Ot,
|
|
18166
|
+
var rt, Ot, Mn;
|
|
18164
18167
|
return v(), _("div", {
|
|
18165
18168
|
id: Z.uid ? `dp-menu-${Z.uid}` : void 0,
|
|
18166
18169
|
ref_key: "dpMenuRef",
|
|
@@ -18194,7 +18197,7 @@ const au = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
18194
18197
|
ref: F,
|
|
18195
18198
|
class: m({
|
|
18196
18199
|
dp__menu_content_wrapper: ((Ot = Z.presetDates) == null ? void 0 : Ot.length) || !!Z.$slots["left-sidebar"] || !!Z.$slots["right-sidebar"],
|
|
18197
|
-
"dp--menu-content-wrapper-collapsed": n.collapse && (((
|
|
18200
|
+
"dp--menu-content-wrapper-collapsed": n.collapse && (((Mn = Z.presetDates) == null ? void 0 : Mn.length) || !!Z.$slots["left-sidebar"] || !!Z.$slots["right-sidebar"])
|
|
18198
18201
|
}),
|
|
18199
18202
|
"data-dp-mobile": h(B),
|
|
18200
18203
|
style: Le({ "--dp-menu-width": `${x.value}px` })
|
|
@@ -18567,7 +18570,7 @@ const kx = ({
|
|
|
18567
18570
|
if (l.value.autoRange || e.weekPicker) {
|
|
18568
18571
|
if (c.value) {
|
|
18569
18572
|
if (e.hideOffsetDates && !b.current) return !1;
|
|
18570
|
-
const ee =
|
|
18573
|
+
const ee = On(c.value, +l.value.autoRange), we = bo(ge(c.value), e.weekStart);
|
|
18571
18574
|
return e.weekPicker ? ot(we[1], ge(b.value)) : ot(ee, ge(b.value));
|
|
18572
18575
|
}
|
|
18573
18576
|
return !1;
|
|
@@ -18576,7 +18579,7 @@ const kx = ({
|
|
|
18576
18579
|
}, I = (b) => {
|
|
18577
18580
|
if (l.value.autoRange || e.weekPicker) {
|
|
18578
18581
|
if (c.value) {
|
|
18579
|
-
const ee =
|
|
18582
|
+
const ee = On(c.value, +l.value.autoRange);
|
|
18580
18583
|
if (e.hideOffsetDates && !b.current) return !1;
|
|
18581
18584
|
const we = bo(ge(c.value), e.weekStart);
|
|
18582
18585
|
return e.weekPicker ? Lt(b.value, we[0]) && Dt(b.value, we[1]) : Lt(b.value, c.value) && Dt(b.value, ee);
|
|
@@ -19148,7 +19151,7 @@ const kx = ({
|
|
|
19148
19151
|
Ot(), ee(), w.value.closeOnAutoApply && !he && L();
|
|
19149
19152
|
}, Ot = () => {
|
|
19150
19153
|
d.value && z.value.enabled && d.value.setParsedDate(pe.value);
|
|
19151
|
-
},
|
|
19154
|
+
}, Mn = (he = !1) => {
|
|
19152
19155
|
r.autoApply && j(pe.value) && Z() && (O.value.enabled && Array.isArray(pe.value) ? (O.value.partialRange || pe.value.length === 2) && rt(he) : rt(he));
|
|
19153
19156
|
}, ce = () => {
|
|
19154
19157
|
z.value.enabled || (pe.value = null);
|
|
@@ -19161,7 +19164,7 @@ const kx = ({
|
|
|
19161
19164
|
return;
|
|
19162
19165
|
}
|
|
19163
19166
|
const vo = Array.isArray(he) ? !he.some((sr) => !I(sr)) : I(he), Zn = j(he);
|
|
19164
|
-
vo && Zn ? ($.value = !0, pe.value = he, Me ? (f.value = Oe, $e(), o("text-submit")) : r.autoApply &&
|
|
19167
|
+
vo && Zn ? ($.value = !0, pe.value = he, Me ? (f.value = Oe, $e(), o("text-submit")) : r.autoApply && Mn(), gt().then(() => {
|
|
19165
19168
|
$.value = !1;
|
|
19166
19169
|
})) : o("invalid-date", he);
|
|
19167
19170
|
}, Be = () => {
|
|
@@ -19170,7 +19173,7 @@ const kx = ({
|
|
|
19170
19173
|
pe.value = he;
|
|
19171
19174
|
}, Pn = () => {
|
|
19172
19175
|
z.value.enabled && (p.value = !0, we()), o("focus");
|
|
19173
|
-
},
|
|
19176
|
+
}, Bn = () => {
|
|
19174
19177
|
if (z.value.enabled && (p.value = !1, b(r.modelValue), f.value)) {
|
|
19175
19178
|
const he = j$(g.value, y.value);
|
|
19176
19179
|
he == null || he.focus();
|
|
@@ -19221,7 +19224,7 @@ const kx = ({
|
|
|
19221
19224
|
ref_key: "inputRef",
|
|
19222
19225
|
ref: d,
|
|
19223
19226
|
"input-value": h(le),
|
|
19224
|
-
"onUpdate:inputValue": Me[0] || (Me[0] = (Oe) =>
|
|
19227
|
+
"onUpdate:inputValue": Me[0] || (Me[0] = (Oe) => xn(le) ? le.value = Oe : null),
|
|
19225
19228
|
"is-menu-open": i.value
|
|
19226
19229
|
}, he.$props, {
|
|
19227
19230
|
onClear: St,
|
|
@@ -19232,7 +19235,7 @@ const kx = ({
|
|
|
19232
19235
|
onToggle: Ae,
|
|
19233
19236
|
onClose: L,
|
|
19234
19237
|
onFocus: Pn,
|
|
19235
|
-
onBlur:
|
|
19238
|
+
onBlur: Bn,
|
|
19236
19239
|
onRealBlur: Me[1] || (Me[1] = (Oe) => p.value = !1),
|
|
19237
19240
|
onTextInput: Me[2] || (Me[2] = (Oe) => he.$emit("text-input", Oe))
|
|
19238
19241
|
}), qt({ _: 2 }, [
|
|
@@ -19263,7 +19266,7 @@ const kx = ({
|
|
|
19263
19266
|
ref: c
|
|
19264
19267
|
}, he.$props, {
|
|
19265
19268
|
"internal-model-value": h(pe),
|
|
19266
|
-
"onUpdate:internalModelValue": Me[3] || (Me[3] = (Oe) =>
|
|
19269
|
+
"onUpdate:internalModelValue": Me[3] || (Me[3] = (Oe) => xn(pe) ? pe.value = Oe : null),
|
|
19267
19270
|
class: { [Ve.value]: !0, "dp--menu-wrapper": he.teleport },
|
|
19268
19271
|
"open-on-top": h(K),
|
|
19269
19272
|
"no-overlay-focus": D.value,
|
|
@@ -19272,7 +19275,7 @@ const kx = ({
|
|
|
19272
19275
|
"is-text-input-date": $.value,
|
|
19273
19276
|
onClosePicker: L,
|
|
19274
19277
|
onSelectDate: $e,
|
|
19275
|
-
onAutoApply:
|
|
19278
|
+
onAutoApply: Mn,
|
|
19276
19279
|
onTimeUpdate: Be,
|
|
19277
19280
|
onFlowStep: Me[4] || (Me[4] = (Oe) => he.$emit("flow-step", Oe)),
|
|
19278
19281
|
onUpdateMonthYear: Me[5] || (Me[5] = (Oe) => he.$emit("update-month-year", Oe)),
|
|
@@ -19950,7 +19953,7 @@ const Jt = /* @__PURE__ */ X1(jx), Vx = /* @__PURE__ */ ne({
|
|
|
19950
19953
|
}, 8, ["count", "onClick"]),
|
|
19951
19954
|
T(h(fo), {
|
|
19952
19955
|
isShowDropdown: h(o),
|
|
19953
|
-
"onUpdate:isShowDropdown": u[1] || (u[1] = (c) =>
|
|
19956
|
+
"onUpdate:isShowDropdown": u[1] || (u[1] = (c) => xn(o) ? o.value = c : null),
|
|
19954
19957
|
verticalOffset: 4,
|
|
19955
19958
|
"horizontal-align": "left"
|
|
19956
19959
|
}, {
|
|
@@ -20200,7 +20203,7 @@ const kM = /* @__PURE__ */ ne({
|
|
|
20200
20203
|
}, 8, ["class", "onClick"]),
|
|
20201
20204
|
T(h(fo), {
|
|
20202
20205
|
"is-show-dropdown": h(s),
|
|
20203
|
-
"onUpdate:isShowDropdown": y[2] || (y[2] = (B) =>
|
|
20206
|
+
"onUpdate:isShowDropdown": y[2] || (y[2] = (B) => xn(s) ? s.value = B : null),
|
|
20204
20207
|
verticalOffset: "4",
|
|
20205
20208
|
horizontalAlign: "left"
|
|
20206
20209
|
}, {
|
|
@@ -20809,7 +20812,7 @@ const pN = new aB(), lB = ["disabled"], uB = ["onClick"], cB = /* @__PURE__ */ n
|
|
|
20809
20812
|
], 2),
|
|
20810
20813
|
T(h(fo), {
|
|
20811
20814
|
isShowDropdown: h(e),
|
|
20812
|
-
"onUpdate:isShowDropdown": y[0] || (y[0] = ($) =>
|
|
20815
|
+
"onUpdate:isShowDropdown": y[0] || (y[0] = ($) => xn(e) ? e.value = $ : null),
|
|
20813
20816
|
verticalOffset: "4"
|
|
20814
20817
|
}, {
|
|
20815
20818
|
default: k(() => [
|
|
@@ -21370,7 +21373,7 @@ const A3 = /* @__PURE__ */ ne({
|
|
|
21370
21373
|
},
|
|
21371
21374
|
setup(n, { expose: e }) {
|
|
21372
21375
|
const { isShowDropdown: t, setIsShowDropdown: o, triggerElementRef: r } = Xn(), s = R(() => typeof n.width > "u" ? {} : {
|
|
21373
|
-
width: `${
|
|
21376
|
+
width: `${An(Number(n.width))}px`
|
|
21374
21377
|
});
|
|
21375
21378
|
function i() {
|
|
21376
21379
|
n.behavior === "hover" && o(!0);
|
|
@@ -21399,7 +21402,7 @@ const A3 = /* @__PURE__ */ ne({
|
|
|
21399
21402
|
oe(c.$slots, "default"),
|
|
21400
21403
|
T(h(fo), {
|
|
21401
21404
|
isShowDropdown: h(t),
|
|
21402
|
-
"onUpdate:isShowDropdown": d[0] || (d[0] = (p) =>
|
|
21405
|
+
"onUpdate:isShowDropdown": d[0] || (d[0] = (p) => xn(t) ? t.value = p : null),
|
|
21403
21406
|
"vertical-offset": c.verticalOffset,
|
|
21404
21407
|
"horizontal-align": "center",
|
|
21405
21408
|
"vertical-align": c.verticalAlign
|
|
@@ -21777,7 +21780,7 @@ li.logLevel = "VERBOSE";
|
|
|
21777
21780
|
function hD(n) {
|
|
21778
21781
|
li.logLevel = n;
|
|
21779
21782
|
}
|
|
21780
|
-
const dt = li.bind(window, !1),
|
|
21783
|
+
const dt = li.bind(window, !1), In = li.bind(window, !0);
|
|
21781
21784
|
function kr(n) {
|
|
21782
21785
|
return Object.prototype.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
|
|
21783
21786
|
}
|
|
@@ -21903,7 +21906,7 @@ function kD(n = "") {
|
|
|
21903
21906
|
}
|
|
21904
21907
|
function hu(n, e, t) {
|
|
21905
21908
|
const o = `«${e}» is deprecated and will be removed in the next major release. Please use the «${t}» instead.`;
|
|
21906
|
-
n &&
|
|
21909
|
+
n && In(o, "warn");
|
|
21907
21910
|
}
|
|
21908
21911
|
function cs(n, e, t) {
|
|
21909
21912
|
const o = t.value ? "value" : "get", r = t[o], s = `#${e}Cache`;
|
|
@@ -23722,7 +23725,7 @@ class DD extends st {
|
|
|
23722
23725
|
getBlockIndex(e) {
|
|
23723
23726
|
const t = this.Editor.BlockManager.getBlockById(e);
|
|
23724
23727
|
if (!t) {
|
|
23725
|
-
|
|
23728
|
+
In("There is no block with id `" + e + "`", "warn");
|
|
23726
23729
|
return;
|
|
23727
23730
|
}
|
|
23728
23731
|
return this.Editor.BlockManager.getBlockIndex(t);
|
|
@@ -23735,7 +23738,7 @@ class DD extends st {
|
|
|
23735
23738
|
getBlockByIndex(e) {
|
|
23736
23739
|
const t = this.Editor.BlockManager.getBlockByIndex(e);
|
|
23737
23740
|
if (t === void 0) {
|
|
23738
|
-
|
|
23741
|
+
In("There is no block at index `" + e + "`", "warn");
|
|
23739
23742
|
return;
|
|
23740
23743
|
}
|
|
23741
23744
|
return new yo(t);
|
|
@@ -23747,7 +23750,7 @@ class DD extends st {
|
|
|
23747
23750
|
*/
|
|
23748
23751
|
getById(e) {
|
|
23749
23752
|
const t = this.Editor.BlockManager.getBlockById(e);
|
|
23750
|
-
return t === void 0 ? (
|
|
23753
|
+
return t === void 0 ? (In("There is no block with id `" + e + "`", "warn"), null) : new yo(t);
|
|
23751
23754
|
}
|
|
23752
23755
|
/**
|
|
23753
23756
|
* Get Block API object by any child html element
|
|
@@ -23757,7 +23760,7 @@ class DD extends st {
|
|
|
23757
23760
|
getBlockByElement(e) {
|
|
23758
23761
|
const t = this.Editor.BlockManager.getBlock(e);
|
|
23759
23762
|
if (t === void 0) {
|
|
23760
|
-
|
|
23763
|
+
In("There is no block corresponding to element `" + e + "`", "warn");
|
|
23761
23764
|
return;
|
|
23762
23765
|
}
|
|
23763
23766
|
return new yo(t);
|
|
@@ -23794,7 +23797,7 @@ class DD extends st {
|
|
|
23794
23797
|
const t = this.Editor.BlockManager.getBlockByIndex(e);
|
|
23795
23798
|
this.Editor.BlockManager.removeBlock(t);
|
|
23796
23799
|
} catch (t) {
|
|
23797
|
-
|
|
23800
|
+
In(t, "warn");
|
|
23798
23801
|
return;
|
|
23799
23802
|
}
|
|
23800
23803
|
this.Editor.BlockManager.blocks.length === 0 && this.Editor.BlockManager.insert(), this.Editor.BlockManager.currentBlock && this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock, this.Editor.Caret.positions.END), this.Editor.Toolbar.close();
|
|
@@ -23947,7 +23950,7 @@ let LD = class Iv extends st {
|
|
|
23947
23950
|
get methods() {
|
|
23948
23951
|
return {
|
|
23949
23952
|
t: () => {
|
|
23950
|
-
|
|
23953
|
+
In("I18n.t() method can be accessed only from Tools", "warn");
|
|
23951
23954
|
}
|
|
23952
23955
|
};
|
|
23953
23956
|
}
|
|
@@ -24607,7 +24610,7 @@ class QD extends st {
|
|
|
24607
24610
|
*/
|
|
24608
24611
|
save() {
|
|
24609
24612
|
const e = "Editor's content can not be saved in read-only mode";
|
|
24610
|
-
return this.Editor.ReadOnly.isEnabled ? (
|
|
24613
|
+
return this.Editor.ReadOnly.isEnabled ? (In(e, "warn"), Promise.reject(new Error(e))) : this.Editor.Saver.save();
|
|
24611
24614
|
}
|
|
24612
24615
|
}
|
|
24613
24616
|
class ZD extends st {
|
|
@@ -24720,7 +24723,7 @@ class tA extends st {
|
|
|
24720
24723
|
*/
|
|
24721
24724
|
toggleBlockSettings(e) {
|
|
24722
24725
|
if (this.Editor.BlockManager.currentBlockIndex === -1) {
|
|
24723
|
-
|
|
24726
|
+
In("Could't toggle the Toolbar because there is no block selected ", "warn");
|
|
24724
24727
|
return;
|
|
24725
24728
|
}
|
|
24726
24729
|
e ?? !this.Editor.BlockSettings.opened ? (this.Editor.Toolbar.moveAndOpen(), this.Editor.BlockSettings.open()) : this.Editor.BlockSettings.close();
|
|
@@ -24732,7 +24735,7 @@ class tA extends st {
|
|
|
24732
24735
|
*/
|
|
24733
24736
|
toggleToolbox(e) {
|
|
24734
24737
|
if (this.Editor.BlockManager.currentBlockIndex === -1) {
|
|
24735
|
-
|
|
24738
|
+
In("Could't toggle the Toolbox because there is no block selected ", "warn");
|
|
24736
24739
|
return;
|
|
24737
24740
|
}
|
|
24738
24741
|
e ?? !this.Editor.Toolbar.toolbox.opened ? (this.Editor.Toolbar.moveAndOpen(), this.Editor.Toolbar.toolbox.open()) : this.Editor.Toolbar.toolbox.close();
|
|
@@ -30947,7 +30950,7 @@ class II extends st {
|
|
|
30947
30950
|
r.insert();
|
|
30948
30951
|
else {
|
|
30949
30952
|
const s = e.map(({ type: i, data: a, tunes: l, id: u }) => {
|
|
30950
|
-
o.available.has(i) === !1 && (
|
|
30953
|
+
o.available.has(i) === !1 && (In(`Tool «${i}» is not found. Check 'tools' property at the Editor.js config.`, "warn"), a = this.composeStubDataForTool(i, a, u), i = o.stubTool);
|
|
30951
30954
|
let c;
|
|
30952
30955
|
try {
|
|
30953
30956
|
c = r.composeBlock({
|
|
@@ -31015,7 +31018,7 @@ class LI extends st {
|
|
|
31015
31018
|
const s = await Promise.all(r), i = await uc(s, (a) => t.blockTools.get(a).sanitizeConfig);
|
|
31016
31019
|
return this.makeOutput(i);
|
|
31017
31020
|
} catch (s) {
|
|
31018
|
-
|
|
31021
|
+
In("Saving failed due to the Error %o", "error", s);
|
|
31019
31022
|
}
|
|
31020
31023
|
}
|
|
31021
31024
|
/**
|
|
@@ -36996,7 +36999,7 @@ const p8 = ["id"], f8 = /* @__PURE__ */ ne({
|
|
|
36996
36999
|
}, 8, ["for", "is-error", "class", "label", "description", "errorText", "isDisabled"]),
|
|
36997
37000
|
T(h(fo), {
|
|
36998
37001
|
isShowDropdown: h(a),
|
|
36999
|
-
"onUpdate:isShowDropdown": x[3] || (x[3] = (F) =>
|
|
37002
|
+
"onUpdate:isShowDropdown": x[3] || (x[3] = (F) => xn(a) ? a.value = F : null),
|
|
37000
37003
|
verticalOffset: "4",
|
|
37001
37004
|
isStretchToParent: !0
|
|
37002
37005
|
}, {
|
|
@@ -37126,7 +37129,7 @@ const p8 = ["id"], f8 = /* @__PURE__ */ ne({
|
|
|
37126
37129
|
}, 8, ["is-error", "class", "label", "description", "errorText", "isDisabled"]),
|
|
37127
37130
|
T(h(fo), {
|
|
37128
37131
|
isShowDropdown: h(s),
|
|
37129
|
-
"onUpdate:isShowDropdown": c[4] || (c[4] = (d) =>
|
|
37132
|
+
"onUpdate:isShowDropdown": c[4] || (c[4] = (d) => xn(s) ? s.value = d : null),
|
|
37130
37133
|
verticalOffset: "4",
|
|
37131
37134
|
isStretchToParent: !0
|
|
37132
37135
|
}, {
|
|
@@ -37663,23 +37666,23 @@ const WP = ["onMouseenter", "onClick"], UP = ["onClick"], GP = /* @__PURE__ */ n
|
|
|
37663
37666
|
const I = R(() => ({
|
|
37664
37667
|
...n.scrollOffset && {
|
|
37665
37668
|
scroller: {
|
|
37666
|
-
paddingLeft: `${
|
|
37667
|
-
paddingRight: `${
|
|
37668
|
-
marginLeft: `-${
|
|
37669
|
-
marginRight: `-${
|
|
37669
|
+
paddingLeft: `${An(Number(n.scrollOffset))}px`,
|
|
37670
|
+
paddingRight: `${An(Number(n.scrollOffset))}px`,
|
|
37671
|
+
marginLeft: `-${An(Number(n.scrollOffset))}px`,
|
|
37672
|
+
marginRight: `-${An(Number(n.scrollOffset))}px`
|
|
37670
37673
|
},
|
|
37671
37674
|
overlayLeft: {
|
|
37672
|
-
left: `-${
|
|
37675
|
+
left: `-${An(Number(n.scrollOffset))}px`
|
|
37673
37676
|
},
|
|
37674
37677
|
overlayRight: {
|
|
37675
|
-
right: `-${
|
|
37678
|
+
right: `-${An(Number(n.scrollOffset))}px`
|
|
37676
37679
|
}
|
|
37677
37680
|
}
|
|
37678
37681
|
}));
|
|
37679
37682
|
function j(A) {
|
|
37680
37683
|
var M, G;
|
|
37681
37684
|
if (!a.value || !d.value) return;
|
|
37682
|
-
const z =
|
|
37685
|
+
const z = An(Number(n.scrollOffset)), C = YP(
|
|
37683
37686
|
a.value,
|
|
37684
37687
|
l.value
|
|
37685
37688
|
), w = l.value;
|
|
@@ -37787,8 +37790,8 @@ const WP = ["onMouseenter", "onClick"], UP = ["onClick"], GP = /* @__PURE__ */ n
|
|
|
37787
37790
|
ref: l,
|
|
37788
37791
|
key: C,
|
|
37789
37792
|
style: Le({
|
|
37790
|
-
minWidth: `${h(
|
|
37791
|
-
width: `${h(
|
|
37793
|
+
minWidth: `${h(An)(A.sizes[w])}px`,
|
|
37794
|
+
width: `${h(An)(A.sizes[w])}px`
|
|
37792
37795
|
})
|
|
37793
37796
|
}, [
|
|
37794
37797
|
oe(A.$slots, "renderHeaderCell", { columnKey: C })
|
|
@@ -37881,6 +37884,7 @@ const WP = ["onMouseenter", "onClick"], UP = ["onClick"], GP = /* @__PURE__ */ n
|
|
|
37881
37884
|
"is-scrolled-right": "TableSimple__is-scrolled-right_1ae95",
|
|
37882
37885
|
"overlay-right": "TableSimple__overlay-right_87938",
|
|
37883
37886
|
"is-hide-bottom-border": "TableSimple__is-hide-bottom-border_66da4",
|
|
37887
|
+
"is-hide-top-border": "TableSimple__is-hide-top-border_e3464",
|
|
37884
37888
|
overlay: QP,
|
|
37885
37889
|
scroller: ZP,
|
|
37886
37890
|
cell: JP,
|
|
@@ -37987,7 +37991,7 @@ const WP = ["onMouseenter", "onClick"], UP = ["onClick"], GP = /* @__PURE__ */ n
|
|
|
37987
37991
|
h(a).actions ? (v(), W(h(fo), {
|
|
37988
37992
|
key: 0,
|
|
37989
37993
|
isShowDropdown: h(t),
|
|
37990
|
-
"onUpdate:isShowDropdown": g[0] || (g[0] = (f) =>
|
|
37994
|
+
"onUpdate:isShowDropdown": g[0] || (g[0] = (f) => xn(t) ? t.value = f : null),
|
|
37991
37995
|
isStretchToParent: "",
|
|
37992
37996
|
verticalOffset: "0",
|
|
37993
37997
|
verticalAlign: "bottom",
|
|
@@ -38090,7 +38094,7 @@ const WP = ["onMouseenter", "onClick"], UP = ["onClick"], GP = /* @__PURE__ */ n
|
|
|
38090
38094
|
}, null, 8, ["icon"]),
|
|
38091
38095
|
T(h(fo), {
|
|
38092
38096
|
isShowDropdown: h(e),
|
|
38093
|
-
"onUpdate:isShowDropdown": i[0] || (i[0] = (a) =>
|
|
38097
|
+
"onUpdate:isShowDropdown": i[0] || (i[0] = (a) => xn(e) ? e.value = a : null),
|
|
38094
38098
|
minWidth: s.minWidth,
|
|
38095
38099
|
horizontalAlign: s.horizontalAlign,
|
|
38096
38100
|
horizontalOffset: s.horizontalOffset,
|
|
@@ -38203,7 +38207,7 @@ const P6 = {
|
|
|
38203
38207
|
], 512),
|
|
38204
38208
|
T(h(fo), {
|
|
38205
38209
|
isShowDropdown: h(e),
|
|
38206
|
-
"onUpdate:isShowDropdown": a[1] || (a[1] = (l) =>
|
|
38210
|
+
"onUpdate:isShowDropdown": a[1] || (a[1] = (l) => xn(e) ? e.value = l : null),
|
|
38207
38211
|
minWidth: i.minWidth,
|
|
38208
38212
|
horizontalAlign: "left",
|
|
38209
38213
|
verticalOffset: i.verticalOffset,
|