@namba_one/ui-kit-2 1.0.229 → 1.0.231
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 +1 -1
- package/dist/index.es.js +79 -75
- package/dist/index.umd.js +2 -2
- package/dist/namba-one-uikit.css +1 -1
- package/dist/sprite/sprite.svg +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2303,7 +2303,7 @@ export declare type IconBaseProps = {
|
|
|
2303
2303
|
|
|
2304
2304
|
export declare type IconName = (typeof iconNames)[number];
|
|
2305
2305
|
|
|
2306
|
-
export declare const iconNames: readonly ["filed-nambaLogo", "filled-cross", "filled-rpLogo", "filled-sort-default", "filled-sort-down", "filled-sort-up", "filled-success", "filled-warning", "outline-agreement", "outline-airplane", "outline-alert", "outline-api", "outline-arrow-down", "outline-arrow-left", "outline-arrow-up-down", "outline-arrow-up-line", "outline-arrow-up", "outline-balance-scale", "outline-bank", "outline-beach", "outline-bookmark", "outline-box", "outline-briefcase", "outline-browser", "outline-brush", "outline-building", "outline-bulb", "outline-calendar", "outline-call", "outline-carousel", "outline-cash", "outline-chart-bar-line", "outline-check", "outline-checkmark-badge", "outline-chevron-down-huge", "outline-chevron-down", "outline-chevron-left", "outline-chevron-right", "outline-chevron-up", "outline-code", "outline-coins-stacks", "outline-computer", "outline-connect", "outline-copy", "outline-coupon-percent", "outline-coupon", "outline-credit-card-pos", "outline-credit-card", "outline-cross", "outline-csv-list", "outline-currency_bold", "outline-currency_medium", "outline-currency_regular", "outline-currency_semibold", "outline-cursor-add", "outline-customer-service", "outline-delete", "outline-delivery-tracking", "outline-delivery-truck", "outline-distribute-horizontal-center", "outline-download", "outline-drag-drop-vertical", "outline-edit", "outline-euro", "outline-export", "outline-eye-close", "outline-eye-open", "outline-file", "outline-files", "outline-filter-horizontal", "outline-filter-vertical", "outline-flash", "outline-h2", "outline-help-circle", "outline-image", "outline-link-square", "outline-link", "outline-list", "outline-lock-password", "outline-logout", "outline-magic-wand", "outline-mail-at-sign", "outline-megaphone", "outline-menu-dots", "outline-messenger", "outline-money-bag", "outline-money-safe", "outline-moon", "outline-more-horizontal", "outline-more-vertical", "outline-mortarboard", "outline-move", "outline-paint-board", "outline-percent", "outline-phone-check", "outline-placeholder", "outline-plus", "outline-promo", "outline-qr", "outline-rocket", "outline-search", "outline-settings", "outline-share", "outline-shop-1", "outline-shop", "outline-sidebar-hide", "outline-sidebar-show", "outline-snow", "outline-sort-by-down", "outline-sort-by-up", "outline-star", "outline-store-add", "outline-store-remove", "outline-success", "outline-sun", "outline-table", "outline-tag", "outline-text-bold", "outline-text", "outline-time-quarter-pass", "outline-time", "outline-traffic-jam", "outline-transaction-history", "outline-trash", "outline-two-users", "outline-unavailable", "outline-unlink", "outline-upload", "outline-user", "outline-wallet-stack", "outline-wallet", "outline-warning", "static-nambaLogo", "static-rpLogo", "static-telegram", "static-whats-app"];
|
|
2306
|
+
export declare const iconNames: readonly ["filed-nambaLogo", "filled-cross", "filled-rpLogo", "filled-sort-default", "filled-sort-down", "filled-sort-up", "filled-success", "filled-warning", "outline-agreement", "outline-airplane", "outline-alert", "outline-api", "outline-arrow-down", "outline-arrow-left", "outline-arrow-right", "outline-arrow-up-down", "outline-arrow-up-line", "outline-arrow-up", "outline-balance-scale", "outline-bank", "outline-beach", "outline-bookmark", "outline-box", "outline-briefcase", "outline-browser", "outline-brush", "outline-building", "outline-bulb", "outline-calendar", "outline-call", "outline-carousel", "outline-cash", "outline-chart-bar-line", "outline-check", "outline-checkmark-badge", "outline-chevron-down-huge", "outline-chevron-down", "outline-chevron-left", "outline-chevron-right", "outline-chevron-up", "outline-code", "outline-coins-stacks", "outline-computer", "outline-connect", "outline-copy", "outline-coupon-percent", "outline-coupon", "outline-credit-card-pos", "outline-credit-card", "outline-cross", "outline-csv-list", "outline-currency_bold", "outline-currency_medium", "outline-currency_regular", "outline-currency_semibold", "outline-cursor-add", "outline-customer-service", "outline-delete", "outline-delivery-tracking", "outline-delivery-truck", "outline-distribute-horizontal-center", "outline-download", "outline-drag-drop-vertical", "outline-edit", "outline-euro", "outline-export", "outline-eye-close", "outline-eye-open", "outline-file", "outline-files", "outline-filter-horizontal", "outline-filter-vertical", "outline-flash", "outline-h2", "outline-help-circle", "outline-image", "outline-link-square", "outline-link", "outline-list", "outline-lock-password", "outline-logout", "outline-magic-wand", "outline-mail-at-sign", "outline-megaphone", "outline-menu-dots", "outline-messenger", "outline-money-bag", "outline-money-safe", "outline-moon", "outline-more-horizontal", "outline-more-vertical", "outline-mortarboard", "outline-move", "outline-paint-board", "outline-percent", "outline-phone-check", "outline-placeholder", "outline-plus", "outline-promo", "outline-qr", "outline-rocket", "outline-search", "outline-settings", "outline-share", "outline-shop-1", "outline-shop", "outline-sidebar-hide", "outline-sidebar-show", "outline-snow", "outline-sort-by-down", "outline-sort-by-up", "outline-star", "outline-store-add", "outline-store-remove", "outline-success", "outline-sun", "outline-table", "outline-tag", "outline-text-bold", "outline-text", "outline-time-quarter-pass", "outline-time", "outline-traffic-jam", "outline-transaction-history", "outline-trash", "outline-two-users", "outline-unavailable", "outline-unlink", "outline-upload", "outline-user", "outline-wallet-stack", "outline-wallet", "outline-warning", "static-nambaLogo", "static-rpLogo", "static-telegram", "static-whats-app"];
|
|
2307
2307
|
|
|
2308
2308
|
export declare const IconView: DefineComponent<IconViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconViewProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2309
2309
|
|
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 ce, useCssModule as sn, computed as L, createBlock as te, openBlock as v, resolveDynamicComponent as wr, mergeProps as tt, withCtx as A, renderSlot as se, createElementBlock as M, normalizeClass as y, normalizeStyle as He, createElementVNode as U, createCommentVNode as z, createVNode as j, unref as p, useTemplateRef as co, watch as Ze, ref as W, withDirectives as cn, vShow as Lr, h as Fo, Transition as fn, useSlots as Yr, toHandlers as Hi, onMounted as ft, useModel as at, mergeModels as lt, createTextVNode as ye, toDisplayString as me, withModifiers as Fn, resolveComponent as vs, TransitionGroup as lu, Fragment as $e, renderList as Pe, provide as Zo, useId as uu, onBeforeUnmount as oa, Teleport as cu, inject as ji, isRef as mr, onUnmounted as kr, readonly as Pv, toRef as cr, nextTick as
|
|
4
|
+
import { defineComponent as ce, useCssModule as sn, computed as L, createBlock as te, openBlock as v, resolveDynamicComponent as wr, mergeProps as tt, withCtx as A, renderSlot as se, createElementBlock as M, normalizeClass as y, normalizeStyle as He, createElementVNode as U, createCommentVNode as z, createVNode as j, unref as p, useTemplateRef as co, watch as Ze, ref as W, withDirectives as cn, vShow as Lr, h as Fo, Transition as fn, useSlots as Yr, toHandlers as Hi, onMounted as ft, useModel as at, mergeModels as lt, createTextVNode as ye, toDisplayString as me, withModifiers as Fn, resolveComponent as vs, TransitionGroup as lu, Fragment as $e, renderList as Pe, provide as Zo, useId as uu, onBeforeUnmount as oa, Teleport as cu, inject as ji, isRef as mr, onUnmounted as kr, readonly as Pv, toRef as cr, nextTick as bt, getCurrentScope as Wh, onScopeDispose as qh, getCurrentInstance as Gh, vModelText as ia, reactive as Vi, createSlots as Yt, normalizeProps as Ht, guardReactiveProps as un, render as Dd, useAttrs as Lv, toValue as Rv, onBeforeUpdate as Fv, withKeys as Nv, resolveDirective as zv, vModelDynamic as Hv } from "vue";
|
|
5
5
|
const jv = /* @__PURE__ */ ce({
|
|
6
6
|
__name: "TheText",
|
|
7
7
|
props: {
|
|
@@ -120,6 +120,7 @@ const jv = /* @__PURE__ */ ce({
|
|
|
120
120
|
"outline-api",
|
|
121
121
|
"outline-arrow-down",
|
|
122
122
|
"outline-arrow-left",
|
|
123
|
+
"outline-arrow-right",
|
|
123
124
|
"outline-arrow-up-down",
|
|
124
125
|
"outline-arrow-up-line",
|
|
125
126
|
"outline-arrow-up",
|
|
@@ -7330,7 +7331,7 @@ const Cw = {
|
|
|
7330
7331
|
l.style.height = "0", l.style.opacity = "0", l.style.overflow = "hidden";
|
|
7331
7332
|
}, o = async (a, l) => {
|
|
7332
7333
|
const u = a;
|
|
7333
|
-
await
|
|
7334
|
+
await bt(), u.style.transition = "height 0.3s ease, opacity 0.3s ease", u.style.height = u.scrollHeight + "px", u.style.opacity = "1", t(u, () => {
|
|
7334
7335
|
u.style.transition = "", u.style.height = "auto", l();
|
|
7335
7336
|
});
|
|
7336
7337
|
}, i = (a) => {
|
|
@@ -8412,7 +8413,7 @@ const d_ = /* @__PURE__ */ ce({
|
|
|
8412
8413
|
vertical: void 0
|
|
8413
8414
|
});
|
|
8414
8415
|
function s() {
|
|
8415
|
-
const
|
|
8416
|
+
const f = r_({
|
|
8416
8417
|
parent: n.parentElement,
|
|
8417
8418
|
element: e.value,
|
|
8418
8419
|
startHorizontalAlign: n.horizontalAlign,
|
|
@@ -8421,38 +8422,41 @@ const d_ = /* @__PURE__ */ ce({
|
|
|
8421
8422
|
verticalOffset: Number(n.verticalOffset),
|
|
8422
8423
|
isCenterByParent: n.isCenterByParent
|
|
8423
8424
|
});
|
|
8424
|
-
|
|
8425
|
+
f && (o.value = f.styles, i.value = f.align);
|
|
8425
8426
|
}
|
|
8426
8427
|
function a() {
|
|
8427
8428
|
t();
|
|
8428
8429
|
}
|
|
8429
|
-
function l(
|
|
8430
|
-
|
|
8430
|
+
function l(f) {
|
|
8431
|
+
f.key === "Escape" && t();
|
|
8431
8432
|
}
|
|
8432
8433
|
const u = L(() => c(n.parentElement));
|
|
8433
|
-
function c(
|
|
8434
|
-
return
|
|
8435
|
-
}
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8434
|
+
function c(f) {
|
|
8435
|
+
return f ? f instanceof HTMLElement && (f.scrollHeight > f.clientHeight || f.scrollWidth > f.clientWidth) ? f : c(f.parentNode) : null;
|
|
8436
|
+
}
|
|
8437
|
+
let d;
|
|
8438
|
+
const h = () => {
|
|
8439
|
+
clearTimeout(d), d = setTimeout(() => {
|
|
8440
|
+
s();
|
|
8441
|
+
}, 10);
|
|
8442
|
+
}, m = new ResizeObserver(h);
|
|
8439
8443
|
return kr(() => {
|
|
8440
|
-
var
|
|
8441
|
-
window.removeEventListener("resize", s), window.removeEventListener("scroll", a), document.removeEventListener("keydown", l), (
|
|
8444
|
+
var f;
|
|
8445
|
+
window.removeEventListener("resize", s), window.removeEventListener("scroll", a), document.removeEventListener("keydown", l), (f = u.value) == null || f.removeEventListener("scroll", a), m.disconnect();
|
|
8442
8446
|
}), ft(() => {
|
|
8443
|
-
var
|
|
8444
|
-
n.isStretchToParent && (r.value.width = `${(
|
|
8447
|
+
var f, g;
|
|
8448
|
+
n.isStretchToParent && (r.value.width = `${(f = n.parentElement) == null ? void 0 : f.clientWidth}px`), n.isCloseOnScrollParent && ((g = u.value) == null || g.addEventListener("scroll", a, {
|
|
8445
8449
|
passive: !0
|
|
8446
8450
|
})), window.addEventListener("scroll", a, {
|
|
8447
8451
|
passive: !0
|
|
8448
|
-
}), document.addEventListener("keydown", l, { passive: !0 }), window.addEventListener("resize", s),
|
|
8449
|
-
}), (
|
|
8452
|
+
}), document.addEventListener("keydown", l, { passive: !0 }), window.addEventListener("resize", s), bt(s), m.observe(e.value);
|
|
8453
|
+
}), (f, g) => (v(), M("div", {
|
|
8450
8454
|
ref_key: "fixedElementRef",
|
|
8451
8455
|
ref: e,
|
|
8452
|
-
class: y(
|
|
8456
|
+
class: y(f.$style.root),
|
|
8453
8457
|
style: He({ ...o.value, ...r.value })
|
|
8454
8458
|
}, [
|
|
8455
|
-
se(
|
|
8459
|
+
se(f.$slots, "default", { align: i.value })
|
|
8456
8460
|
], 6));
|
|
8457
8461
|
}
|
|
8458
8462
|
}), h_ = "Wrapper__root_0f67c", p_ = {
|
|
@@ -8566,7 +8570,7 @@ const d_ = /* @__PURE__ */ ce({
|
|
|
8566
8570
|
), Ze(a, (d) => {
|
|
8567
8571
|
t.value = d, d || r("close");
|
|
8568
8572
|
}), Ze(t, (d) => {
|
|
8569
|
-
d &&
|
|
8573
|
+
d && bt(() => {
|
|
8570
8574
|
const h = i.value, m = document.querySelectorAll(
|
|
8571
8575
|
'[data-select-base-is-active-item = "true"]'
|
|
8572
8576
|
)[0];
|
|
@@ -10526,7 +10530,7 @@ const lC = {
|
|
|
10526
10530
|
}), r.value.style.height = `${P}px`, r.value.style.width = `${J}px`;
|
|
10527
10531
|
}
|
|
10528
10532
|
function E() {
|
|
10529
|
-
|
|
10533
|
+
bt(() => {
|
|
10530
10534
|
const [w, P, J] = o.value.sort(V), ie = _("0");
|
|
10531
10535
|
if ($(ie, "main"), P) {
|
|
10532
10536
|
const C = I({
|
|
@@ -10544,7 +10548,7 @@ const lC = {
|
|
|
10544
10548
|
translateY: "-30%",
|
|
10545
10549
|
index: 2
|
|
10546
10550
|
});
|
|
10547
|
-
$(C, "third"),
|
|
10551
|
+
$(C, "third"), bt(() => {
|
|
10548
10552
|
var x;
|
|
10549
10553
|
const k = (x = r.value) == null ? void 0 : x.querySelector(
|
|
10550
10554
|
".toaster-leave-active"
|
|
@@ -13978,7 +13982,7 @@ const pn = (n, e) => e ? new Date(n.toLocaleString("en-US", { timeZone: e })) :
|
|
|
13978
13982
|
};
|
|
13979
13983
|
var Dn = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n))(Dn || {}), In = /* @__PURE__ */ ((n) => (n.top = "top", n.bottom = "bottom", n))(In || {}), oo = /* @__PURE__ */ ((n) => (n.header = "header", n.calendar = "calendar", n.timePicker = "timePicker", n))(oo || {}), Kt = /* @__PURE__ */ ((n) => (n.month = "month", n.year = "year", n.calendar = "calendar", n.time = "time", n.minutes = "minutes", n.hours = "hours", n.seconds = "seconds", n))(Kt || {});
|
|
13980
13984
|
const HE = ["timestamp", "date", "iso"];
|
|
13981
|
-
var tn = /* @__PURE__ */ ((n) => (n.up = "up", n.down = "down", n.left = "left", n.right = "right", n))(tn || {}),
|
|
13985
|
+
var tn = /* @__PURE__ */ ((n) => (n.up = "up", n.down = "down", n.left = "left", n.right = "right", n))(tn || {}), gt = /* @__PURE__ */ ((n) => (n.arrowUp = "ArrowUp", n.arrowDown = "ArrowDown", n.arrowLeft = "ArrowLeft", n.arrowRight = "ArrowRight", n.enter = "Enter", n.space = " ", n.esc = "Escape", n.tab = "Tab", n.home = "Home", n.end = "End", n.pageUp = "PageUp", n.pageDown = "PageDown", n))(gt || {}), Po = /* @__PURE__ */ ((n) => (n.MONTH_AND_YEAR = "MM-yyyy", n.YEAR = "yyyy", n.DATE = "dd-MM-yyyy", n))(Po || {});
|
|
13982
13986
|
function fh(n) {
|
|
13983
13987
|
return (e) => {
|
|
13984
13988
|
const t = new Intl.DateTimeFormat(n, {
|
|
@@ -14091,7 +14095,7 @@ function GE(n, e) {
|
|
|
14091
14095
|
return t[r + (e ? -1 : 1)];
|
|
14092
14096
|
}
|
|
14093
14097
|
const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), bf = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), zu = (n, e) => er(n, e ?? Po.DATE), ll = (n) => Array.isArray(n), qs = (n, e, t) => e.get(zu(n, t)), KE = (n, e) => n ? e ? e instanceof Map ? !!qs(n, e) : e(pe(n)) : !1 : !0, rn = (n, e, t = !1, r) => {
|
|
14094
|
-
if (n.key ===
|
|
14098
|
+
if (n.key === gt.enter || n.key === gt.space)
|
|
14095
14099
|
return t && n.preventDefault(), e();
|
|
14096
14100
|
if (r) return r(n);
|
|
14097
14101
|
}, XE = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, yf = (n, e) => n ? Po.MONTH_AND_YEAR : e ? Po.YEAR : Po.DATE, wf = (n) => n < 10 ? `0${n}` : n, gh = (n, e, t, r, o, i) => {
|
|
@@ -14240,7 +14244,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14240
14244
|
setMenuFocused: n,
|
|
14241
14245
|
setShiftKey: e
|
|
14242
14246
|
};
|
|
14243
|
-
},
|
|
14247
|
+
}, vt = Vi({
|
|
14244
14248
|
monthYear: [],
|
|
14245
14249
|
calendar: [],
|
|
14246
14250
|
time: [],
|
|
@@ -14252,12 +14256,12 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14252
14256
|
},
|
|
14253
14257
|
monthPicker: []
|
|
14254
14258
|
}), pl = W(null), ds = W(!1), fl = W(!1), ml = W(!1), vl = W(!1), Gt = W(0), Ot = W(0), Ur = () => {
|
|
14255
|
-
const n = L(() => ds.value ? [...
|
|
14256
|
-
...
|
|
14257
|
-
...
|
|
14259
|
+
const n = L(() => ds.value ? [...vt.selectionGrid, vt.actionRow].filter((d) => d.length) : fl.value ? [
|
|
14260
|
+
...vt.timePicker[0],
|
|
14261
|
+
...vt.timePicker[1],
|
|
14258
14262
|
vl.value ? [] : [pl.value],
|
|
14259
|
-
|
|
14260
|
-
].filter((d) => d.length) : ml.value ? [...
|
|
14263
|
+
vt.actionRow
|
|
14264
|
+
].filter((d) => d.length) : ml.value ? [...vt.monthPicker, vt.actionRow] : [vt.monthYear, ...vt.calendar, vt.time, vt.actionRow].filter((d) => d.length)), e = (d) => {
|
|
14261
14265
|
Gt.value = d ? Gt.value + 1 : Gt.value - 1;
|
|
14262
14266
|
let h = null;
|
|
14263
14267
|
n.value[Ot.value] && (h = n.value[Ot.value][Gt.value]), !h && n.value[Ot.value + (d ? 1 : -1)] ? (Ot.value = Ot.value + (d ? 1 : -1), Gt.value = d ? 0 : n.value[Ot.value].length - 1) : h || (Gt.value = d ? Gt.value - 1 : Gt.value + 1);
|
|
@@ -14275,9 +14279,9 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14275
14279
|
}, a = () => {
|
|
14276
14280
|
t(!0), r(!0);
|
|
14277
14281
|
}, l = (d, h) => {
|
|
14278
|
-
|
|
14282
|
+
vt[h] = d;
|
|
14279
14283
|
}, u = (d, h) => {
|
|
14280
|
-
|
|
14284
|
+
vt[h] = d;
|
|
14281
14285
|
}, c = () => {
|
|
14282
14286
|
Gt.value = 0, Ot.value = 0;
|
|
14283
14287
|
};
|
|
@@ -14288,25 +14292,25 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14288
14292
|
pl.value = d;
|
|
14289
14293
|
},
|
|
14290
14294
|
setSelectionGrid: (d) => {
|
|
14291
|
-
ds.value = d, c(), d || (
|
|
14295
|
+
ds.value = d, c(), d || (vt.selectionGrid = []);
|
|
14292
14296
|
},
|
|
14293
14297
|
setTimePicker: (d, h = !1) => {
|
|
14294
|
-
fl.value = d, vl.value = h, c(), d || (
|
|
14298
|
+
fl.value = d, vl.value = h, c(), d || (vt.timePicker[0] = [], vt.timePicker[1] = []);
|
|
14295
14299
|
},
|
|
14296
14300
|
setTimePickerElements: (d, h = 0) => {
|
|
14297
|
-
|
|
14301
|
+
vt.timePicker[h] = d;
|
|
14298
14302
|
},
|
|
14299
14303
|
arrowRight: o,
|
|
14300
14304
|
arrowLeft: i,
|
|
14301
14305
|
arrowUp: s,
|
|
14302
14306
|
arrowDown: a,
|
|
14303
14307
|
clearArrowNav: () => {
|
|
14304
|
-
|
|
14308
|
+
vt.monthYear = [], vt.calendar = [], vt.time = [], vt.actionRow = [], vt.selectionGrid = [], vt.timePicker[0] = [], vt.timePicker[1] = [], ds.value = !1, fl.value = !1, vl.value = !1, ml.value = !1, c(), pl.value = null;
|
|
14305
14309
|
},
|
|
14306
14310
|
setMonthPicker: (d) => {
|
|
14307
14311
|
ml.value = d, c();
|
|
14308
14312
|
},
|
|
14309
|
-
refSets:
|
|
14313
|
+
refSets: vt
|
|
14310
14314
|
// exposed for testing
|
|
14311
14315
|
};
|
|
14312
14316
|
}, wh = (n) => ({
|
|
@@ -14940,7 +14944,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14940
14944
|
Fv(() => {
|
|
14941
14945
|
f.value = null;
|
|
14942
14946
|
}), ft(() => {
|
|
14943
|
-
|
|
14947
|
+
bt().then(() => J()), a.noOverlayFocus || R(), N(!0);
|
|
14944
14948
|
}), kr(() => N(!1));
|
|
14945
14949
|
const N = (D) => {
|
|
14946
14950
|
var K;
|
|
@@ -14981,7 +14985,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
14981
14985
|
{ deep: !0 }
|
|
14982
14986
|
);
|
|
14983
14987
|
const J = (D = !0) => {
|
|
14984
|
-
|
|
14988
|
+
bt().then(() => {
|
|
14985
14989
|
const K = Rt(f), ne = Rt(g), ue = Rt(E), b = Rt(G), Z = ue ? ue.getBoundingClientRect().height : 0;
|
|
14986
14990
|
ne && (ne.getBoundingClientRect().height ? O.value = ne.getBoundingClientRect().height - Z : O.value = c.value.modeHeight - Z), K && b && D && (b.scrollTop = K.offsetTop - b.offsetTop - (O.value / 2 - K.getBoundingClientRect().height) - Z);
|
|
14987
14991
|
});
|
|
@@ -15011,22 +15015,22 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
15011
15015
|
}
|
|
15012
15016
|
}, q = (D) => {
|
|
15013
15017
|
switch (D.key) {
|
|
15014
|
-
case
|
|
15018
|
+
case gt.esc:
|
|
15015
15019
|
return k(D);
|
|
15016
|
-
case
|
|
15020
|
+
case gt.arrowLeft:
|
|
15017
15021
|
return H(D);
|
|
15018
|
-
case
|
|
15022
|
+
case gt.arrowRight:
|
|
15019
15023
|
return H(D);
|
|
15020
|
-
case
|
|
15024
|
+
case gt.arrowUp:
|
|
15021
15025
|
return H(D);
|
|
15022
|
-
case
|
|
15026
|
+
case gt.arrowDown:
|
|
15023
15027
|
return H(D);
|
|
15024
15028
|
default:
|
|
15025
15029
|
return;
|
|
15026
15030
|
}
|
|
15027
15031
|
}, fe = (D) => {
|
|
15028
|
-
if (D.key ===
|
|
15029
|
-
if (D.key ===
|
|
15032
|
+
if (D.key === gt.enter) return C();
|
|
15033
|
+
if (D.key === gt.tab) return re();
|
|
15030
15034
|
};
|
|
15031
15035
|
return e({ focusGrid: R }), (D, K) => {
|
|
15032
15036
|
var ne;
|
|
@@ -15455,7 +15459,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
15455
15459
|
m.value = hr(ue, K, f.value(ne)), e("auto-apply"), e("update-flow-step");
|
|
15456
15460
|
}, Y = (K, ne) => {
|
|
15457
15461
|
const ue = F(K, ne);
|
|
15458
|
-
s.value.fixedEnd || s.value.fixedStart ? m.value = Of(ue, m, e, s) : m.value ? O(ue, m.value) && (m.value = Vu(m, F(K, ne), e)) : m.value = [F(K, ne)],
|
|
15462
|
+
s.value.fixedEnd || s.value.fixedStart ? m.value = Of(ue, m, e, s) : m.value ? O(ue, m.value) && (m.value = Vu(m, F(K, ne), e)) : m.value = [F(K, ne)], bt().then(() => {
|
|
15459
15463
|
ka(m.value, e, n.autoApply, n.modelAuto);
|
|
15460
15464
|
});
|
|
15461
15465
|
}, re = (K, ne) => {
|
|
@@ -15644,7 +15648,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
15644
15648
|
var E;
|
|
15645
15649
|
if (e("update-month-year", { instance: 0, year: T }), s.value.enabled)
|
|
15646
15650
|
return r.value ? Array.isArray(r.value) && (((E = r.value) == null ? void 0 : E.map((O) => Ve(O))).includes(T) ? r.value = r.value.filter((O) => Ve(O) !== T) : r.value.push(Xn(jt(pe()), T))) : r.value = [Xn(jt(Pi(pe())), T)], e("auto-apply", !0);
|
|
15647
|
-
l.value.enabled ? (r.value = Vu(r, $(T), e),
|
|
15651
|
+
l.value.enabled ? (r.value = Vu(r, $(T), e), bt().then(() => {
|
|
15648
15652
|
ka(r.value, e, n.autoApply, n.modelAuto);
|
|
15649
15653
|
})) : (r.value = $(T), e("auto-apply"));
|
|
15650
15654
|
}
|
|
@@ -16060,7 +16064,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16060
16064
|
Y.push(V(0));
|
|
16061
16065
|
return Y;
|
|
16062
16066
|
}), _ = (Y, re = !1, q = "") => {
|
|
16063
|
-
re || r("reset-flow"), R.value = Y, r(Y ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(Y),
|
|
16067
|
+
re || r("reset-flow"), R.value = Y, r(Y ? "overlay-opened" : "overlay-closed", Kt.time), o.arrowNavigation && s(Y), bt(() => {
|
|
16064
16068
|
q !== "" && E.value[0] && E.value[0].openChildCmp(q);
|
|
16065
16069
|
});
|
|
16066
16070
|
}, w = L(() => ({
|
|
@@ -16700,7 +16704,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16700
16704
|
const _ = (ee) => ee ? o.vertical ? "vNext" : "next" : o.vertical ? "vPrevious" : "previous", w = (ee, je) => {
|
|
16701
16705
|
if (o.transitions) {
|
|
16702
16706
|
const he = jt(hr(pe(), o.month, o.year));
|
|
16703
|
-
E.value = At(jt(hr(pe(), ee, je)), he) ? s.value[_(!0)] : s.value[_(!1)], T.value = !1,
|
|
16707
|
+
E.value = At(jt(hr(pe(), ee, je)), he) ? s.value[_(!0)] : s.value[_(!1)], T.value = !1, bt(() => {
|
|
16704
16708
|
T.value = !0;
|
|
16705
16709
|
});
|
|
16706
16710
|
}
|
|
@@ -16721,7 +16725,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
16721
16725
|
const { width: he, height: ke } = ee.getBoundingClientRect();
|
|
16722
16726
|
m.value = je.value;
|
|
16723
16727
|
let S = { left: `${he / 2}px` }, we = -50;
|
|
16724
|
-
if (await
|
|
16728
|
+
if (await bt(), G.value[0]) {
|
|
16725
16729
|
const { left: _e, width: Ce } = G.value[0].getBoundingClientRect();
|
|
16726
16730
|
_e < 0 && (S = { left: "0" }, we = 0, N.value.left = `${he / 2}px`), window.innerWidth < _e + Ce && (S = { right: "0" }, we = 0, N.value.left = `${Ce - he / 2}px`);
|
|
16727
16731
|
}
|
|
@@ -17061,7 +17065,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17061
17065
|
return rr(Ae), Ce(Ie, qe, le, Se);
|
|
17062
17066
|
}, ot = (Q) => {
|
|
17063
17067
|
const de = Nr(pe(Q.value), c.hours, c.minutes, oe());
|
|
17064
|
-
e("date-update", de), E.value.enabled ? ju(de, l, E.value.limit) : l.value = de, r(),
|
|
17068
|
+
e("date-update", de), E.value.enabled ? ju(de, l, E.value.limit) : l.value = de, r(), bt().then(() => {
|
|
17065
17069
|
re();
|
|
17066
17070
|
});
|
|
17067
17071
|
}, _t = (Q) => f.value.noDisabledRange ? Cf(o.value[0], Q).some((de) => G(de)) : !1, X = () => {
|
|
@@ -17116,7 +17120,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17116
17120
|
modelValue: l,
|
|
17117
17121
|
range: f.value.enabled,
|
|
17118
17122
|
timezone: de ? void 0 : $.value.timezone
|
|
17119
|
-
}), F(), n.multiCalendars &&
|
|
17123
|
+
}), F(), n.multiCalendars && bt().then(() => q(!0));
|
|
17120
17124
|
}, En = () => {
|
|
17121
17125
|
const Q = Ru(pe(), $.value);
|
|
17122
17126
|
!f.value.enabled && !E.value.enabled ? l.value = Q : l.value && Array.isArray(l.value) && l.value[0] ? E.value.enabled ? l.value = [...l.value, Q] : l.value = Mt(Q, l.value[0]) ? [Q, l.value[0]] : [l.value[0], Q] : l.value = [Q], F();
|
|
@@ -17691,7 +17695,7 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17691
17695
|
if (X === tn.right) return _();
|
|
17692
17696
|
} else X === tn.left || X === tn.up ? S("handleArrow", tn.left, 0, X === tn.up) : S("handleArrow", tn.right, 0, X === tn.down);
|
|
17693
17697
|
}, ee = (X) => {
|
|
17694
|
-
l(X.shiftKey), !o.disableMonthYearSelect && X.code ===
|
|
17698
|
+
l(X.shiftKey), !o.disableMonthYearSelect && X.code === gt.tab && X.target.classList.contains("dp__menu") && u.value.shiftKeyInMenu && (X.preventDefault(), Fr(X, m.value, !0), r("close-picker"));
|
|
17695
17699
|
}, je = () => {
|
|
17696
17700
|
re(), r("time-picker-close");
|
|
17697
17701
|
}, he = (X) => {
|
|
@@ -17715,22 +17719,22 @@ const ql = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
|
|
|
17715
17719
|
X.preventDefault(), Re(xe);
|
|
17716
17720
|
}, ot = (X) => {
|
|
17717
17721
|
var xe, nt, Bt;
|
|
17718
|
-
if (ee(X), X.key ===
|
|
17722
|
+
if (ee(X), X.key === gt.home || X.key === gt.end)
|
|
17719
17723
|
return S(
|
|
17720
17724
|
"selectWeekDate",
|
|
17721
|
-
X.key ===
|
|
17725
|
+
X.key === gt.home,
|
|
17722
17726
|
X.target.getAttribute("id")
|
|
17723
17727
|
);
|
|
17724
|
-
switch ((X.key ===
|
|
17725
|
-
case
|
|
17728
|
+
switch ((X.key === gt.pageUp || X.key === gt.pageDown) && (X.shiftKey ? (S("changeYear", X.key === gt.pageUp), (xe = ql(i.value, "overlay-year")) == null || xe.focus()) : (S("changeMonth", X.key === gt.pageUp), (nt = ql(i.value, X.key === gt.pageUp ? "action-prev" : "action-next")) == null || nt.focus()), X.target.getAttribute("id") && ((Bt = i.value) == null || Bt.focus({ preventScroll: !0 }))), X.key) {
|
|
17729
|
+
case gt.esc:
|
|
17726
17730
|
return be(X);
|
|
17727
|
-
case
|
|
17731
|
+
case gt.arrowLeft:
|
|
17728
17732
|
return Ge(X, tn.left);
|
|
17729
|
-
case
|
|
17733
|
+
case gt.arrowRight:
|
|
17730
17734
|
return Ge(X, tn.right);
|
|
17731
|
-
case
|
|
17735
|
+
case gt.arrowUp:
|
|
17732
17736
|
return Ge(X, tn.up);
|
|
17733
|
-
case
|
|
17737
|
+
case gt.arrowDown:
|
|
17734
17738
|
return Ge(X, tn.down);
|
|
17735
17739
|
default:
|
|
17736
17740
|
return;
|
|
@@ -18372,7 +18376,7 @@ const SS = ({
|
|
|
18372
18376
|
}
|
|
18373
18377
|
}, a = () => {
|
|
18374
18378
|
var d, h;
|
|
18375
|
-
(d = n.flow) != null && d.length && r.value !== -1 && (r.value += 1, e("flow-step", r.value), c()), ((h = n.flow) == null ? void 0 : h.length) === r.value &&
|
|
18379
|
+
(d = n.flow) != null && d.length && r.value !== -1 && (r.value += 1, e("flow-step", r.value), c()), ((h = n.flow) == null ? void 0 : h.length) === r.value && bt().then(() => l());
|
|
18376
18380
|
}, l = () => {
|
|
18377
18381
|
r.value = -1;
|
|
18378
18382
|
}, u = (d, h, ...m) => {
|
|
@@ -18478,7 +18482,7 @@ const SS = ({
|
|
|
18478
18482
|
}, P = (q, fe) => {
|
|
18479
18483
|
i.value.enabled && i.value.tabSubmit && !fe && I(q.target.value), i.value.tabSubmit && Gl(g.value) && o.inputValue !== "" ? (r("set-input-date", g.value, !0, !0), g.value = null) : i.value.tabSubmit && o.inputValue === "" && (g.value = null, r("clear", !0));
|
|
18480
18484
|
}, J = () => {
|
|
18481
|
-
T.value = !0, r("focus"),
|
|
18485
|
+
T.value = !0, r("focus"), bt().then(() => {
|
|
18482
18486
|
var q;
|
|
18483
18487
|
i.value.enabled && i.value.selectOnFocus && ((q = $.value) == null || q.select());
|
|
18484
18488
|
});
|
|
@@ -18504,7 +18508,7 @@ const SS = ({
|
|
|
18504
18508
|
}, Y = (q) => {
|
|
18505
18509
|
g.value = q;
|
|
18506
18510
|
}, re = (q) => {
|
|
18507
|
-
q.key ===
|
|
18511
|
+
q.key === gt.tab && P(q, !0);
|
|
18508
18512
|
};
|
|
18509
18513
|
return e({
|
|
18510
18514
|
focusInput: H,
|
|
@@ -18659,7 +18663,7 @@ const SS = ({
|
|
|
18659
18663
|
defaultedMultiDates: J
|
|
18660
18664
|
} = kt(o), { menuTransition: ie, showTransition: C } = Ki(V), { isMobile: k } = Pf(w), x = Gh();
|
|
18661
18665
|
ft(() => {
|
|
18662
|
-
b(o.modelValue),
|
|
18666
|
+
b(o.modelValue), bt().then(() => {
|
|
18663
18667
|
if (!_.value.enabled) {
|
|
18664
18668
|
const le = D(m.value);
|
|
18665
18669
|
le == null || le.addEventListener("scroll", _e), window == null || window.addEventListener("resize", Ce);
|
|
@@ -18749,7 +18753,7 @@ const SS = ({
|
|
|
18749
18753
|
return;
|
|
18750
18754
|
}
|
|
18751
18755
|
const rr = Array.isArray(le) ? !le.some((Gr) => !N(Gr)) : N(le), Hn = R(le);
|
|
18752
|
-
rr && Hn ? (T.value = !0, ue.value = le, Se ? (f.value = Ae, xe(), r("text-submit")) : o.autoApply && xn(),
|
|
18756
|
+
rr && Hn ? (T.value = !0, ue.value = le, Se ? (f.value = Ae, xe(), r("text-submit")) : o.autoApply && xn(), bt().then(() => {
|
|
18753
18757
|
T.value = !1;
|
|
18754
18758
|
})) : r("invalid-date", le);
|
|
18755
18759
|
}, Me = () => {
|
|
@@ -20065,7 +20069,7 @@ const zf = Symbol("ToastService"), l6 = new e$(), t$ = ["id"], n$ = /* @__PURE__
|
|
|
20065
20069
|
}), r.value.style.height = `${R}px`, r.value.style.width = `${V}px`;
|
|
20066
20070
|
}
|
|
20067
20071
|
function m() {
|
|
20068
|
-
|
|
20072
|
+
bt(() => {
|
|
20069
20073
|
const [N, R, V] = o.value.sort(E), I = G("0");
|
|
20070
20074
|
if (d(I, "main"), R) {
|
|
20071
20075
|
const _ = O({
|
|
@@ -20083,7 +20087,7 @@ const zf = Symbol("ToastService"), l6 = new e$(), t$ = ["id"], n$ = /* @__PURE__
|
|
|
20083
20087
|
translateY: "-30%",
|
|
20084
20088
|
index: 2
|
|
20085
20089
|
});
|
|
20086
|
-
d(_, "third"),
|
|
20090
|
+
d(_, "third"), bt(() => {
|
|
20087
20091
|
var P;
|
|
20088
20092
|
const w = (P = r.value) == null ? void 0 : P.querySelector(
|
|
20089
20093
|
".toaster-leave-active"
|
|
@@ -35469,7 +35473,7 @@ const k4 = ["id"], _4 = /* @__PURE__ */ ce({
|
|
|
35469
35473
|
(E = s.value) == null || E.blocks.render(JSON.parse(t.value));
|
|
35470
35474
|
return;
|
|
35471
35475
|
}
|
|
35472
|
-
(O = s.value) == null || O.render(t.value), await
|
|
35476
|
+
(O = s.value) == null || O.render(t.value), await bt(), m(), l.value = await lI({
|
|
35473
35477
|
editor: s.value,
|
|
35474
35478
|
limit: n.maxLength
|
|
35475
35479
|
});
|
|
@@ -36195,7 +36199,7 @@ const k4 = ["id"], _4 = /* @__PURE__ */ ce({
|
|
|
36195
36199
|
T === !1 && (e.value = !1);
|
|
36196
36200
|
});
|
|
36197
36201
|
function h(T) {
|
|
36198
|
-
n.list.find((E) => E.id === E.id), i.value.includes(T.id) ? i.value = i.value.filter((E) => E !== T.id) : i.value.push(T.id),
|
|
36202
|
+
n.list.find((E) => E.id === E.id), i.value.includes(T.id) ? i.value = i.value.filter((E) => E !== T.id) : i.value.push(T.id), bt(() => {
|
|
36199
36203
|
var E;
|
|
36200
36204
|
(E = s.value) == null || E.focus();
|
|
36201
36205
|
});
|
|
@@ -36592,10 +36596,10 @@ const k4 = ["id"], _4 = /* @__PURE__ */ ce({
|
|
|
36592
36596
|
}
|
|
36593
36597
|
function c() {
|
|
36594
36598
|
const g = l(e.value);
|
|
36595
|
-
g !== -1 &&
|
|
36599
|
+
g !== -1 && bt(() => a(g));
|
|
36596
36600
|
}
|
|
36597
36601
|
ft(() => {
|
|
36598
|
-
|
|
36602
|
+
bt(() => {
|
|
36599
36603
|
const g = l(e.value);
|
|
36600
36604
|
g !== -1 && a(g), i.value = !0;
|
|
36601
36605
|
}), window.addEventListener("resize", c, { passive: !0 });
|
|
@@ -36603,7 +36607,7 @@ const k4 = ["id"], _4 = /* @__PURE__ */ ce({
|
|
|
36603
36607
|
window.removeEventListener("resize", c);
|
|
36604
36608
|
}), Ze(e, (g) => {
|
|
36605
36609
|
const $ = l(g);
|
|
36606
|
-
$ !== -1 &&
|
|
36610
|
+
$ !== -1 && bt(() => a($));
|
|
36607
36611
|
});
|
|
36608
36612
|
const d = L(() => ({
|
|
36609
36613
|
default: "text-common-base-primary-default",
|