bt-core-app 1.4.721 → 1.4.723
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/bt-core-app.js +144 -143
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -6486,7 +6486,7 @@ var Yg = { exports: {} };
|
|
|
6486
6486
|
function he() {
|
|
6487
6487
|
return typeof openDatabase == "function";
|
|
6488
6488
|
}
|
|
6489
|
-
var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", H = "~~local_forage_type~", be = /^~~local_forage_type~([^~]+)~/, ie = "__lfsc__:",
|
|
6489
|
+
var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", H = "~~local_forage_type~", be = /^~~local_forage_type~([^~]+)~/, ie = "__lfsc__:", Me = ie.length, Ae = "arbf", tt = "blob", Ie = "si08", He = "ui08", xt = "uic8", Wt = "si16", na = "si32", Qt = "ur16", Zn = "ui32", dn = "fl32", yl = "fl64", Kn = Me + Ae.length, Pa = Object.prototype.toString;
|
|
6490
6490
|
function Ml(U) {
|
|
6491
6491
|
var ae = U.length * 0.75, j = U.length, ce, de = 0, oe, xe, Le, Ve;
|
|
6492
6492
|
U[U.length - 1] === "=" && (ae--, U[U.length - 2] === "=" && ae--);
|
|
@@ -6520,9 +6520,9 @@ var Yg = { exports: {} };
|
|
|
6520
6520
|
}
|
|
6521
6521
|
}
|
|
6522
6522
|
function Al(U) {
|
|
6523
|
-
if (U.substring(0,
|
|
6523
|
+
if (U.substring(0, Me) !== ie)
|
|
6524
6524
|
return JSON.parse(U);
|
|
6525
|
-
var ae = U.substring(Kn), j = U.substring(
|
|
6525
|
+
var ae = U.substring(Kn), j = U.substring(Me, Kn), ce;
|
|
6526
6526
|
if (j === tt && be.test(ae)) {
|
|
6527
6527
|
var de = ae.match(be);
|
|
6528
6528
|
ce = de[1], ae = ae.substring(de[0].length);
|
|
@@ -6614,7 +6614,7 @@ var Yg = { exports: {} };
|
|
|
6614
6614
|
});
|
|
6615
6615
|
return g(ce, ae), ce;
|
|
6616
6616
|
}
|
|
6617
|
-
function
|
|
6617
|
+
function Te(U, ae) {
|
|
6618
6618
|
var j = this, ce = new f(function(de, oe) {
|
|
6619
6619
|
j.ready().then(function() {
|
|
6620
6620
|
var xe = j._dbInfo;
|
|
@@ -6806,7 +6806,7 @@ var Yg = { exports: {} };
|
|
|
6806
6806
|
_driver: "webSQLStorage",
|
|
6807
6807
|
_initStorage: ye,
|
|
6808
6808
|
_support: he(),
|
|
6809
|
-
iterate:
|
|
6809
|
+
iterate: Te,
|
|
6810
6810
|
getItem: ve,
|
|
6811
6811
|
setItem: st,
|
|
6812
6812
|
removeItem: Ft,
|
|
@@ -12499,26 +12499,26 @@ function vi(e, t, a) {
|
|
|
12499
12499
|
function C() {
|
|
12500
12500
|
var J, ve;
|
|
12501
12501
|
if (o) {
|
|
12502
|
-
const
|
|
12503
|
-
if (
|
|
12504
|
-
return Number.parseInt(
|
|
12502
|
+
const Te = i == null ? void 0 : i.bladeData.data.page;
|
|
12503
|
+
if (Te != null)
|
|
12504
|
+
return Number.parseInt(Te);
|
|
12505
12505
|
}
|
|
12506
12506
|
if (s) {
|
|
12507
|
-
const
|
|
12508
|
-
if (
|
|
12509
|
-
return Number.parseInt(typeof
|
|
12507
|
+
const Te = (ve = (J = a == null ? void 0 : a.route) == null ? void 0 : J.query) == null ? void 0 : ve.page;
|
|
12508
|
+
if (Te != null)
|
|
12509
|
+
return Number.parseInt(typeof Te == "string" ? Te : Te.toString());
|
|
12510
12510
|
}
|
|
12511
12511
|
return 1;
|
|
12512
12512
|
}
|
|
12513
12513
|
const w = e.proxyKey ?? "proxyID", A = _(() => {
|
|
12514
|
-
var ve,
|
|
12514
|
+
var ve, Te;
|
|
12515
12515
|
let J = e.proxyID;
|
|
12516
|
-
return J == null && o && (J = i == null ? void 0 : i.bladeData.data[w]), J == null && s && (J = (
|
|
12516
|
+
return J == null && o && (J = i == null ? void 0 : i.bladeData.data[w]), J == null && s && (J = (Te = (ve = a == null ? void 0 : a.route) == null ? void 0 : ve.query) == null ? void 0 : Te[w]), J;
|
|
12517
12517
|
}), x = e.searchKey ?? "search", T = z(D());
|
|
12518
12518
|
function D() {
|
|
12519
|
-
var ve,
|
|
12519
|
+
var ve, Te;
|
|
12520
12520
|
let J;
|
|
12521
|
-
return J == null && o && (J = i == null ? void 0 : i.bladeData.data[x]), J == null && s && (J = (
|
|
12521
|
+
return J == null && o && (J = i == null ? void 0 : i.bladeData.data[x]), J == null && s && (J = (Te = (ve = a == null ? void 0 : a.route) == null ? void 0 : ve.query) == null ? void 0 : Te[x]), J;
|
|
12522
12522
|
}
|
|
12523
12523
|
const E = z(it(e.startShowingInactive) ?? !1), I = _(() => [
|
|
12524
12524
|
...e.searchProps ?? [],
|
|
@@ -12543,38 +12543,38 @@ function vi(e, t, a) {
|
|
|
12543
12543
|
const st = v.value[nt], Ft = y.find((_a) => _a.name == st);
|
|
12544
12544
|
Ft != null ? J = J != null ? `${J}ANDALSO${Ft.filterFunction()}` : Ft.filterFunction() : ve.push(st);
|
|
12545
12545
|
});
|
|
12546
|
-
const
|
|
12547
|
-
return rt(ve) && (
|
|
12546
|
+
const Te = {};
|
|
12547
|
+
return rt(ve) && (Te.filterBy = ve.toString()), J != null && (Te.query = J), Te;
|
|
12548
12548
|
}), he = _(() => {
|
|
12549
|
-
var ve,
|
|
12549
|
+
var ve, Te, nt, st;
|
|
12550
12550
|
let J = e.itemID;
|
|
12551
|
-
return J == null && o && (J = i == null ? void 0 : i.bladeData.data.id), J == null && s && (J = (
|
|
12551
|
+
return J == null && o && (J = i == null ? void 0 : i.bladeData.data.id), J == null && s && (J = (Te = (ve = a == null ? void 0 : a.route) == null ? void 0 : ve.query) == null ? void 0 : Te.id), J == null && s && (J = (st = (nt = a == null ? void 0 : a.route) == null ? void 0 : nt.params) == null ? void 0 : st.id), J;
|
|
12552
12552
|
}), ge = z(he.value == "new" ? "new" : e.startEditing ? "edit" : "view"), H = _(() => {
|
|
12553
|
-
var ve,
|
|
12553
|
+
var ve, Te, nt;
|
|
12554
12554
|
let J = e.params != null ? { ...e.params } : {};
|
|
12555
|
-
return e.paginate == "server" && e.itemsPerPage != null && (J.includeCount = !0, J.takeAmount = e.itemsPerPage, J.takeFrom = (S.value - 1) * e.itemsPerPage), le.value != null && (J = { ...J, ...le.value }), E.value && (J.includeInactive = !0), rt(e.selectProps) && (J.properties = (ve = e.selectProps) == null ? void 0 : ve.toString()), T.value != null && (J.searchString = T.value), rt(e.queryParams) && ((
|
|
12555
|
+
return e.paginate == "server" && e.itemsPerPage != null && (J.includeCount = !0, J.takeAmount = e.itemsPerPage, J.takeFrom = (S.value - 1) * e.itemsPerPage), le.value != null && (J = { ...J, ...le.value }), E.value && (J.includeInactive = !0), rt(e.selectProps) && (J.properties = (ve = e.selectProps) == null ? void 0 : ve.toString()), T.value != null && (J.searchString = T.value), rt(e.queryParams) && ((Te = a == null ? void 0 : a.route) == null ? void 0 : Te.query) != null && ((nt = e.queryParams) == null || nt.forEach((st) => {
|
|
12556
12556
|
var Ft, _a, la, Ja;
|
|
12557
12557
|
typeof st == "string" ? ((Ft = a.route) == null ? void 0 : Ft.query[st]) != null && (J[st] = (_a = a.route) == null ? void 0 : _a.query[st]) : ((la = a.route) == null ? void 0 : la.query[st.key]) != null && (J[st.value] = (Ja = a.route) == null ? void 0 : Ja.query[st.key]);
|
|
12558
12558
|
})), J;
|
|
12559
|
-
}), be = _(() => (J) => e.onCanDelete != null ? e.onCanDelete(J) : !(J != null && J.isInactive === !0)), ie = _(() => (J) => E.value ? e.onCanRestore != null ? e.onCanRestore(J) : (J == null ? void 0 : J.isInactive) === !0 : !1),
|
|
12559
|
+
}), be = _(() => (J) => e.onCanDelete != null ? e.onCanDelete(J) : !(J != null && J.isInactive === !0)), ie = _(() => (J) => E.value ? e.onCanRestore != null ? e.onCanRestore(J) : (J == null ? void 0 : J.isInactive) === !0 : !1), Me = e.onUpdateAsyncItem ?? ((J, ve) => {
|
|
12560
12560
|
ve.hasOwnProperty("rowVersion") && (J.rowVersion = ve.rowVersion), ve.hasOwnProperty("version") && (J.version = ve.version), ve.hasOwnProperty("isDeleted") && (J.isDeleted = ve.isDeleted), ve.hasOwnProperty("isInactive") && (J.isInactive = ve.isInactive), ve.hasOwnProperty("id") && (J.id = ve.id);
|
|
12561
12561
|
}), Ae = _(() => $.value.filter((J) => !J.hide)), tt = _(() => {
|
|
12562
12562
|
let J = new Array();
|
|
12563
|
-
return Ae.value.filter((
|
|
12564
|
-
let nt = J.find((st) => st.position ==
|
|
12565
|
-
nt == null ? J.push({ position:
|
|
12566
|
-
}), J.sort(Wa.firstBy((
|
|
12563
|
+
return Ae.value.filter((Te) => Te.sublevel != null).forEach((Te) => {
|
|
12564
|
+
let nt = J.find((st) => st.position == Te.sublevel);
|
|
12565
|
+
nt == null ? J.push({ position: Te.sublevel ?? 0, values: [Te] }) : nt.values.push(Te);
|
|
12566
|
+
}), J.sort(Wa.firstBy((Te) => Te.position));
|
|
12567
12567
|
}), Ie = _(() => {
|
|
12568
12568
|
let J = new Array();
|
|
12569
|
-
return Ae.value.filter((
|
|
12570
|
-
let nt = J.find((st) => st.position ==
|
|
12571
|
-
nt == null ? J.push({ position:
|
|
12572
|
-
}), J.sort(Wa.firstBy((
|
|
12569
|
+
return Ae.value.filter((Te) => Te.level != null).forEach((Te) => {
|
|
12570
|
+
let nt = J.find((st) => st.position == Te.level);
|
|
12571
|
+
nt == null ? J.push({ position: Te.level ?? 0, values: [Te] }) : nt.values.push(Te);
|
|
12572
|
+
}), J.sort(Wa.firstBy((Te) => Te.position));
|
|
12573
12573
|
}), He = _(() => Ae.value.filter((J) => J.nav != null && J.itemText != null || J.textFilter != null || J.display != null || J.bool != null));
|
|
12574
12574
|
function xt(J) {
|
|
12575
|
-
var
|
|
12575
|
+
var Te;
|
|
12576
12576
|
const ve = e.addBladeName ?? e.itemBladeName;
|
|
12577
|
-
ve != null && (J == "page" ? (
|
|
12577
|
+
ve != null && (J == "page" ? (Te = a == null ? void 0 : a.router) == null || Te.push({
|
|
12578
12578
|
name: ve,
|
|
12579
12579
|
params: { id: "new" }
|
|
12580
12580
|
}) : J == "blade" && (i == null || i.updateBlade({
|
|
@@ -12584,7 +12584,7 @@ function vi(e, t, a) {
|
|
|
12584
12584
|
}
|
|
12585
12585
|
function Wt(J) {
|
|
12586
12586
|
const ve = r(J), {
|
|
12587
|
-
additionalUrl:
|
|
12587
|
+
additionalUrl: Te,
|
|
12588
12588
|
onDeleteAsync: nt
|
|
12589
12589
|
} = { ...e };
|
|
12590
12590
|
if (ve == null)
|
|
@@ -12606,12 +12606,12 @@ function vi(e, t, a) {
|
|
|
12606
12606
|
return !1;
|
|
12607
12607
|
};
|
|
12608
12608
|
e.localOnly == !0 || c == null ? m != "soft" ? (st(L.value, ve), st(e.items, ve)) : E.value || st(V.value, ve) : q({
|
|
12609
|
-
additionalUrl:
|
|
12609
|
+
additionalUrl: Te,
|
|
12610
12610
|
data: J,
|
|
12611
12611
|
nav: c,
|
|
12612
12612
|
onCanDeleteAsync: e.onCanDeleteAsync,
|
|
12613
12613
|
onDeleteAsync: nt,
|
|
12614
|
-
onDeleteSuccessAsync: async (Ft) => (m != "soft" ? st(e.items, ve) : (
|
|
12614
|
+
onDeleteSuccessAsync: async (Ft) => (m != "soft" ? st(e.items, ve) : (Me(J, Ft), E.value || st(V.value, ve)), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(J) : Promise.resolve(void 0)),
|
|
12615
12615
|
proxyID: A.value,
|
|
12616
12616
|
storeKey: u
|
|
12617
12617
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
@@ -12621,14 +12621,14 @@ function vi(e, t, a) {
|
|
|
12621
12621
|
function na(J) {
|
|
12622
12622
|
const {
|
|
12623
12623
|
additionalUrl: ve,
|
|
12624
|
-
onRestoreAsync:
|
|
12625
|
-
onRestoreSuccessAsync: nt = (st) => (
|
|
12624
|
+
onRestoreAsync: Te,
|
|
12625
|
+
onRestoreSuccessAsync: nt = (st) => (Me(J, st), st)
|
|
12626
12626
|
} = { ...e };
|
|
12627
12627
|
return N({
|
|
12628
12628
|
additionalUrl: ve,
|
|
12629
12629
|
data: J,
|
|
12630
12630
|
nav: c,
|
|
12631
|
-
onRestoreAsync:
|
|
12631
|
+
onRestoreAsync: Te,
|
|
12632
12632
|
onRestoreSuccessAsync: nt,
|
|
12633
12633
|
proxyID: A.value,
|
|
12634
12634
|
storeKey: u
|
|
@@ -12638,14 +12638,14 @@ function vi(e, t, a) {
|
|
|
12638
12638
|
}
|
|
12639
12639
|
function Qt(J) {
|
|
12640
12640
|
const ve = it(J), {
|
|
12641
|
-
additionalUrl:
|
|
12641
|
+
additionalUrl: Te,
|
|
12642
12642
|
onCanSaveAsync: nt,
|
|
12643
12643
|
onGetSaveAsync: st,
|
|
12644
12644
|
onSaveAsync: Ft,
|
|
12645
12645
|
onSaveSuccessAsync: _a
|
|
12646
12646
|
} = { ...e };
|
|
12647
12647
|
return te({
|
|
12648
|
-
additionalUrl:
|
|
12648
|
+
additionalUrl: Te,
|
|
12649
12649
|
data: ve,
|
|
12650
12650
|
nav: c,
|
|
12651
12651
|
onCanSaveAsync: nt,
|
|
@@ -12669,19 +12669,19 @@ function vi(e, t, a) {
|
|
|
12669
12669
|
let J = e.onFilter ? e.onFilter(L.value) : L.value;
|
|
12670
12670
|
if (rt(e.localFilters) && p.value.forEach((ve) => {
|
|
12671
12671
|
var nt;
|
|
12672
|
-
const
|
|
12673
|
-
|
|
12672
|
+
const Te = (nt = e.localFilters) == null ? void 0 : nt.find((st) => st.name == v.value[ve]);
|
|
12673
|
+
Te != null && (Te.onFilter != null ? J = Te.onFilter(J) : Te.predicate != null && (J = J.filter((st) => Te.predicate(st))));
|
|
12674
12674
|
}), e.inactiveProp != null && !E.value) {
|
|
12675
12675
|
const ve = e.inactiveProp;
|
|
12676
|
-
J = J.filter((
|
|
12676
|
+
J = J.filter((Te) => Te[ve] !== !0);
|
|
12677
12677
|
}
|
|
12678
12678
|
if (T.value != null && T.value.length > 0) {
|
|
12679
12679
|
let ve = [...I.value];
|
|
12680
|
-
e.itemText && ve.push(e.itemText), rt(ve) && (J = J.filter((
|
|
12680
|
+
e.itemText && ve.push(e.itemText), rt(ve) && (J = J.filter((Te) => Vk(Te, T.value, ve)));
|
|
12681
12681
|
}
|
|
12682
12682
|
if (e.paginate == "local" && (Kn(J, J.length), e.itemsPerPage != null)) {
|
|
12683
|
-
let ve = (S.value - 1) * e.itemsPerPage,
|
|
12684
|
-
|
|
12683
|
+
let ve = (S.value - 1) * e.itemsPerPage, Te = ve + e.itemsPerPage;
|
|
12684
|
+
Te >= J.length && (Te = J.length), J = J.slice(ve, Te);
|
|
12685
12685
|
}
|
|
12686
12686
|
e.sortProp != null && (J = J.sort(Wa.firstBy((ve) => Da(ve, e.sortProp)))), V.value = J;
|
|
12687
12687
|
}
|
|
@@ -12692,17 +12692,17 @@ function vi(e, t, a) {
|
|
|
12692
12692
|
function Kn(J, ve) {
|
|
12693
12693
|
if (console.log("calc"), e.itemsPerPage == null || J == null || J.length == 0)
|
|
12694
12694
|
return;
|
|
12695
|
-
const
|
|
12696
|
-
|
|
12695
|
+
const Te = typeof e.itemsPerPage == "string" ? Number.parseInt(e.itemsPerPage) : e.itemsPerPage;
|
|
12696
|
+
Te <= 0 || (e.paginate == "server" ? ve != null && (Y.value = Math.ceil(ve / Te)) : e.paginate == "local" && (Y.value = Math.ceil(J.length / Te)));
|
|
12697
12697
|
}
|
|
12698
12698
|
async function Pa(J) {
|
|
12699
12699
|
if (se.value = !1, (J == null ? void 0 : J.resetSearch) === !0 && (Ue.value = !1, T.value = void 0), e.items != null) {
|
|
12700
12700
|
let ve = { data: e.items };
|
|
12701
12701
|
G.value = "Loading";
|
|
12702
|
-
let
|
|
12703
|
-
if (G.value = void 0,
|
|
12702
|
+
let Te = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(ve) : ve;
|
|
12703
|
+
if (G.value = void 0, Te == null || !Array.isArray(Te.data))
|
|
12704
12704
|
return;
|
|
12705
|
-
L.value = (
|
|
12705
|
+
L.value = (Te == null ? void 0 : Te.data) ?? [], e.paginate != "local" && Kn(L.value, L.value.length), dn(), F != null && F(L.value), (a == null ? void 0 : a.onFinishedAsync) != null && await (a == null ? void 0 : a.onFinishedAsync(L.value)), t && t("fetched", L.value);
|
|
12706
12706
|
return;
|
|
12707
12707
|
}
|
|
12708
12708
|
if (e.isSingle === !0) {
|
|
@@ -12723,8 +12723,8 @@ function vi(e, t, a) {
|
|
|
12723
12723
|
if (ve.id === "new")
|
|
12724
12724
|
L.value = [];
|
|
12725
12725
|
else {
|
|
12726
|
-
const
|
|
12727
|
-
|
|
12726
|
+
const Te = await R(ve);
|
|
12727
|
+
Te == null ? L.value = void 0 : Array.isArray(Te.data) ? L.value = Te.data : L.value = Te.data != null ? [Te.data] : void 0;
|
|
12728
12728
|
}
|
|
12729
12729
|
} else {
|
|
12730
12730
|
const ve = {
|
|
@@ -12741,22 +12741,22 @@ function vi(e, t, a) {
|
|
|
12741
12741
|
onGetAsync: e.onGetAsync,
|
|
12742
12742
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
12743
12743
|
};
|
|
12744
|
-
let
|
|
12744
|
+
let Te = await ee({
|
|
12745
12745
|
...ve,
|
|
12746
12746
|
onGetSuccessAsync: async (nt, st) => nt != null && (nt.filters != null && (h.value = (nt == null ? void 0 : nt.filters) ?? []), Kn(nt.data, nt.count), e.onGetSuccessAsync != null) ? await e.onGetSuccessAsync(nt, st) : nt
|
|
12747
12747
|
});
|
|
12748
|
-
L.value = (
|
|
12748
|
+
L.value = (Te == null ? void 0 : Te.data) ?? [], d.value = [...p.value];
|
|
12749
12749
|
}
|
|
12750
12750
|
dn(), F && F(L.value), (a == null ? void 0 : a.onFinishedAsync) != null && await (a == null ? void 0 : a.onFinishedAsync(L.value)), t && t("fetched", L.value);
|
|
12751
12751
|
}
|
|
12752
12752
|
function Ml(J, ve) {
|
|
12753
12753
|
var nt;
|
|
12754
|
-
const
|
|
12755
|
-
e.canUnselect ? W =
|
|
12754
|
+
const Te = it(J);
|
|
12755
|
+
e.canUnselect ? W = Te === W ? null : Te : W = Te ?? W, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(Te)) && (e.onSelectItem != null ? e.onSelectItem(W) : ve == "blade" && W == null ? i == null || i.closeBlade({ bladeName: e.itemBladeName }) : ve == "page" ? (nt = a == null ? void 0 : a.router) == null || nt.push({
|
|
12756
12756
|
name: e.itemBladeName,
|
|
12757
|
-
params: { id:
|
|
12757
|
+
params: { id: Te.id }
|
|
12758
12758
|
}) : ve == "blade" && (i == null || i.updateBlade({
|
|
12759
|
-
data: { id:
|
|
12759
|
+
data: { id: Te.id, data: Te },
|
|
12760
12760
|
bladeName: e.itemBladeName
|
|
12761
12761
|
}))), t != null && (t("select", W), t("confirm", W));
|
|
12762
12762
|
}
|
|
@@ -30348,7 +30348,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30348
30348
|
if (Y && l.arrowNavigation) {
|
|
30349
30349
|
Array.isArray(p.value[le]) ? p.value[le][he] = Y : p.value[le] = [Y];
|
|
30350
30350
|
const ge = p.value.reduce(
|
|
30351
|
-
(H, be) => be.map((ie,
|
|
30351
|
+
(H, be) => be.map((ie, Me) => [...H[Me] || [], be[Me]]),
|
|
30352
30352
|
[]
|
|
30353
30353
|
);
|
|
30354
30354
|
i(l.closeTimePickerBtn), v.value && (ge[1] = ge[1].concat(v.value)), r(ge, l.order);
|
|
@@ -30358,7 +30358,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30358
30358
|
var he;
|
|
30359
30359
|
return Y.disabled ? K("", !0) : (P(), re("div", kL, [
|
|
30360
30360
|
(P(!0), re(we, null, qe(L.value, (ge, H) => {
|
|
30361
|
-
var be, ie,
|
|
30361
|
+
var be, ie, Me;
|
|
30362
30362
|
return P(), re("div", {
|
|
30363
30363
|
key: H,
|
|
30364
30364
|
class: Je(I.value)
|
|
@@ -30434,7 +30434,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30434
30434
|
dp__inc_dec_button_disabled: T.value(ge.type)
|
|
30435
30435
|
}),
|
|
30436
30436
|
"data-test": `${ge.type}-time-dec-btn-${l.order}`,
|
|
30437
|
-
"aria-label": (
|
|
30437
|
+
"aria-label": (Me = M(o)) == null ? void 0 : Me.decrementValue(ge.type),
|
|
30438
30438
|
tabindex: "0",
|
|
30439
30439
|
onKeydown: (Ae) => M(ln)(Ae, () => ne(ge.type, !1, { keyboard: !0 }), !0),
|
|
30440
30440
|
onClick: (Ae) => M(u).timeArrowHoldThreshold ? void 0 : ne(ge.type, !1),
|
|
@@ -31209,8 +31209,8 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31209
31209
|
m.value = se.value;
|
|
31210
31210
|
let H = { left: `${he / 2}px` }, be = -50;
|
|
31211
31211
|
if (await ft(), S.value[0]) {
|
|
31212
|
-
const { left: ie, width:
|
|
31213
|
-
ie < 0 && (H = { left: "0" }, be = 0, C.value.left = `${he / 2}px`), window.innerWidth < ie +
|
|
31212
|
+
const { left: ie, width: Me } = S.value[0].getBoundingClientRect();
|
|
31213
|
+
ie < 0 && (H = { left: "0" }, be = 0, C.value.left = `${he / 2}px`), window.innerWidth < ie + Me && (H = { right: "0" }, be = 0, C.value.left = `${Me - he / 2}px`);
|
|
31214
31214
|
}
|
|
31215
31215
|
y.value = {
|
|
31216
31216
|
bottom: `${ge}px`,
|
|
@@ -31306,7 +31306,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31306
31306
|
Fe("div", XL, Re(ne(he.days)), 1)
|
|
31307
31307
|
])) : K("", !0),
|
|
31308
31308
|
(P(!0), re(we, null, qe(he.days, (H, be) => {
|
|
31309
|
-
var ie,
|
|
31309
|
+
var ie, Me, Ae;
|
|
31310
31310
|
return P(), re("div", {
|
|
31311
31311
|
id: M($p)(H.value),
|
|
31312
31312
|
ref_for: !0,
|
|
@@ -31316,7 +31316,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31316
31316
|
class: "dp__calendar_item",
|
|
31317
31317
|
"aria-selected": (H.classData.dp__active_date || H.classData.dp__range_start || H.classData.dp__range_start) ?? void 0,
|
|
31318
31318
|
"aria-disabled": H.classData.dp__cell_disabled || void 0,
|
|
31319
|
-
"aria-label": (
|
|
31319
|
+
"aria-label": (Me = (ie = M(s)) == null ? void 0 : ie.day) == null ? void 0 : Me.call(ie, H),
|
|
31320
31320
|
tabindex: "0",
|
|
31321
31321
|
"data-test": H.value,
|
|
31322
31322
|
onClick: ya((tt) => G(tt, H), ["prevent"]),
|
|
@@ -31412,8 +31412,8 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31412
31412
|
), V = _(
|
|
31413
31413
|
() => (me) => c.value[me] ? c.value[me].year : 0
|
|
31414
31414
|
), $ = (me) => !h.value.keepViewOnOffsetClick || me ? !0 : !i.value, W = (me, Ee, ye, J = !1) => {
|
|
31415
|
-
var ve,
|
|
31416
|
-
$(J) && (c.value[me] || (c.value[me] = { month: 0, year: 0 }), c.value[me].month = Jv(Ee) ? (ve = c.value[me]) == null ? void 0 : ve.month : Ee, c.value[me].year = Jv(ye) ? (
|
|
31415
|
+
var ve, Te;
|
|
31416
|
+
$(J) && (c.value[me] || (c.value[me] = { month: 0, year: 0 }), c.value[me].month = Jv(Ee) ? (ve = c.value[me]) == null ? void 0 : ve.month : Ee, c.value[me].year = Jv(ye) ? (Te = c.value[me]) == null ? void 0 : Te.year : ye);
|
|
31417
31417
|
}, F = () => {
|
|
31418
31418
|
e.autoApply && t("select-date");
|
|
31419
31419
|
};
|
|
@@ -31513,7 +31513,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31513
31513
|
}
|
|
31514
31514
|
}, be = (me, Ee, ye, J) => {
|
|
31515
31515
|
if (e.sixWeeks && me.length < 6) {
|
|
31516
|
-
const ve = 6 - me.length,
|
|
31516
|
+
const ve = 6 - me.length, Te = (Ee.getDay() + 7 - J) % 7, nt = 6 - (ye.getDay() + 7 - J) % 7, [st, Ft] = H(Te, nt);
|
|
31517
31517
|
for (let _a = 1; _a <= ve; _a++)
|
|
31518
31518
|
if (Ft ? !!(_a % 2) == st : st) {
|
|
31519
31519
|
const la = me[0].days[0], Ja = ie(Pn(la.value, -7), ht(Ee));
|
|
@@ -31527,17 +31527,17 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31527
31527
|
}, ie = (me, Ee) => {
|
|
31528
31528
|
const ye = _e(me), J = [];
|
|
31529
31529
|
for (let ve = 0; ve < 7; ve++) {
|
|
31530
|
-
const
|
|
31530
|
+
const Te = Pn(ye, ve), nt = ht(Te) !== Ee;
|
|
31531
31531
|
J.push({
|
|
31532
|
-
text: e.hideOffsetDates && nt ? "" :
|
|
31533
|
-
value:
|
|
31532
|
+
text: e.hideOffsetDates && nt ? "" : Te.getDate(),
|
|
31533
|
+
value: Te,
|
|
31534
31534
|
current: !nt,
|
|
31535
31535
|
classData: {}
|
|
31536
31536
|
});
|
|
31537
31537
|
}
|
|
31538
31538
|
return J;
|
|
31539
|
-
},
|
|
31540
|
-
const ye = [], J = new Date(Ee, me), ve = new Date(Ee, me + 1, 0),
|
|
31539
|
+
}, Me = (me, Ee) => {
|
|
31540
|
+
const ye = [], J = new Date(Ee, me), ve = new Date(Ee, me + 1, 0), Te = e.weekStart, nt = Hn(J, { weekStartsOn: Te }), st = (Ft) => {
|
|
31541
31541
|
const _a = ie(Ft, me);
|
|
31542
31542
|
if (ye.push({ days: _a }), !ye[ye.length - 1].days.some(
|
|
31543
31543
|
(la) => yt(Za(la.value), Za(ve))
|
|
@@ -31546,7 +31546,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31546
31546
|
st(la);
|
|
31547
31547
|
}
|
|
31548
31548
|
};
|
|
31549
|
-
return st(nt), be(ye, J, ve,
|
|
31549
|
+
return st(nt), be(ye, J, ve, Te);
|
|
31550
31550
|
}, Ae = (me) => {
|
|
31551
31551
|
const Ee = jl(_e(me.value), u.hours, u.minutes, Qt());
|
|
31552
31552
|
t("date-update", Ee), d.value.enabled ? Rf(Ee, s, d.value.limit) : s.value = Ee, n(), ft().then(() => {
|
|
@@ -31632,7 +31632,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31632
31632
|
disabledTimesConfig: I,
|
|
31633
31633
|
today: f,
|
|
31634
31634
|
validateTime: E,
|
|
31635
|
-
getCalendarDays:
|
|
31635
|
+
getCalendarDays: Me,
|
|
31636
31636
|
getMarker: ge,
|
|
31637
31637
|
handleScroll: Y,
|
|
31638
31638
|
handleSwipe: he,
|
|
@@ -32100,9 +32100,9 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32100
32100
|
],
|
|
32101
32101
|
setup(e, { expose: t, emit: a }) {
|
|
32102
32102
|
const n = a, l = e, r = z(null), i = _(() => {
|
|
32103
|
-
const { openOnTop: ie, ...
|
|
32103
|
+
const { openOnTop: ie, ...Me } = l;
|
|
32104
32104
|
return {
|
|
32105
|
-
...
|
|
32105
|
+
...Me,
|
|
32106
32106
|
flowStep: T.value,
|
|
32107
32107
|
collapse: l.collapse,
|
|
32108
32108
|
noOverlayFocus: l.noOverlayFocus,
|
|
@@ -32114,10 +32114,10 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32114
32114
|
d.value = !0, S(), window.addEventListener("resize", S);
|
|
32115
32115
|
const ie = ka(r);
|
|
32116
32116
|
if (ie && !f.value.enabled && !g.value.enabled && (o(!0), W()), ie) {
|
|
32117
|
-
const
|
|
32117
|
+
const Me = (Ae) => {
|
|
32118
32118
|
m.value.allowPreventDefault && Ae.preventDefault(), Yl(Ae, m.value, !0);
|
|
32119
32119
|
};
|
|
32120
|
-
ie.addEventListener("pointerdown",
|
|
32120
|
+
ie.addEventListener("pointerdown", Me), ie.addEventListener("mousedown", Me);
|
|
32121
32121
|
}
|
|
32122
32122
|
}
|
|
32123
32123
|
}), dl(() => {
|
|
@@ -32130,8 +32130,8 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32130
32130
|
var ie;
|
|
32131
32131
|
if (m.value.arrowLeft)
|
|
32132
32132
|
return m.value.arrowLeft;
|
|
32133
|
-
const
|
|
32134
|
-
return (Ae == null ? void 0 : Ae.width) < (v == null ? void 0 : v.value) && (Ae == null ? void 0 : Ae.left) <= ((
|
|
32133
|
+
const Me = (ie = r.value) == null ? void 0 : ie.getBoundingClientRect(), Ae = l.getInputRect();
|
|
32134
|
+
return (Ae == null ? void 0 : Ae.width) < (v == null ? void 0 : v.value) && (Ae == null ? void 0 : Ae.left) <= ((Me == null ? void 0 : Me.left) ?? 0) ? `${(Ae == null ? void 0 : Ae.width) / 2}px` : (Ae == null ? void 0 : Ae.right) >= ((Me == null ? void 0 : Me.right) ?? 0) && (Ae == null ? void 0 : Ae.width) < (v == null ? void 0 : v.value) ? `${(v == null ? void 0 : v.value) - (Ae == null ? void 0 : Ae.width) / 2}px` : "50%";
|
|
32135
32135
|
}), W = () => {
|
|
32136
32136
|
const ie = ka(r);
|
|
32137
32137
|
ie && ie.focus({ preventScroll: !0 });
|
|
@@ -32173,33 +32173,33 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32173
32173
|
}, ue = () => {
|
|
32174
32174
|
W(), n("time-picker-close");
|
|
32175
32175
|
}, Ce = (ie) => {
|
|
32176
|
-
var
|
|
32177
|
-
(
|
|
32178
|
-
}, se = (ie,
|
|
32176
|
+
var Me, Ae, tt;
|
|
32177
|
+
(Me = k.value) == null || Me.toggleTimePicker(!1, !1), (Ae = k.value) == null || Ae.toggleMonthPicker(!1, !1, ie), (tt = k.value) == null || tt.toggleYearPicker(!1, !1, ie);
|
|
32178
|
+
}, se = (ie, Me = 0) => {
|
|
32179
32179
|
var Ae, tt, Ie;
|
|
32180
|
-
return ie === "month" ? (Ae = k.value) == null ? void 0 : Ae.toggleMonthPicker(!1, !0,
|
|
32181
|
-
}, Ue = (ie, ...
|
|
32180
|
+
return ie === "month" ? (Ae = k.value) == null ? void 0 : Ae.toggleMonthPicker(!1, !0, Me) : ie === "year" ? (tt = k.value) == null ? void 0 : tt.toggleYearPicker(!1, !0, Me) : ie === "time" ? (Ie = k.value) == null ? void 0 : Ie.toggleTimePicker(!0, !1) : Ce(Me);
|
|
32181
|
+
}, Ue = (ie, ...Me) => {
|
|
32182
32182
|
var Ae, tt;
|
|
32183
|
-
(Ae = k.value) != null && Ae[ie] && ((tt = k.value) == null || tt[ie](...
|
|
32183
|
+
(Ae = k.value) != null && Ae[ie] && ((tt = k.value) == null || tt[ie](...Me));
|
|
32184
32184
|
}, Y = () => {
|
|
32185
32185
|
Ue("selectCurrentDate");
|
|
32186
|
-
}, le = (ie,
|
|
32187
|
-
Ue("presetDate", ie,
|
|
32186
|
+
}, le = (ie, Me) => {
|
|
32187
|
+
Ue("presetDate", ie, Me);
|
|
32188
32188
|
}, he = () => {
|
|
32189
32189
|
Ue("clearHoverDate");
|
|
32190
|
-
}, ge = (ie,
|
|
32191
|
-
Ue("updateMonthYear", ie,
|
|
32192
|
-
}, H = (ie,
|
|
32193
|
-
ie.preventDefault(), ne(
|
|
32190
|
+
}, ge = (ie, Me) => {
|
|
32191
|
+
Ue("updateMonthYear", ie, Me);
|
|
32192
|
+
}, H = (ie, Me) => {
|
|
32193
|
+
ie.preventDefault(), ne(Me);
|
|
32194
32194
|
}, be = (ie) => {
|
|
32195
|
-
var
|
|
32195
|
+
var Me;
|
|
32196
32196
|
if (G(ie), ie.key === jt.home || ie.key === jt.end)
|
|
32197
32197
|
return Ue(
|
|
32198
32198
|
"selectWeekDate",
|
|
32199
32199
|
ie.key === jt.home,
|
|
32200
32200
|
ie.target.getAttribute("id")
|
|
32201
32201
|
);
|
|
32202
|
-
switch ((ie.key === jt.pageUp || ie.key === jt.pageDown) && (ie.shiftKey ? Ue("changeYear", ie.key === jt.pageUp) : Ue("changeMonth", ie.key === jt.pageUp), ie.target.getAttribute("id") && ((
|
|
32202
|
+
switch ((ie.key === jt.pageUp || ie.key === jt.pageDown) && (ie.shiftKey ? Ue("changeYear", ie.key === jt.pageUp) : Ue("changeMonth", ie.key === jt.pageUp), ie.target.getAttribute("id") && ((Me = r.value) == null || Me.focus({ preventScroll: !0 }))), ie.key) {
|
|
32203
32203
|
case jt.esc:
|
|
32204
32204
|
return te();
|
|
32205
32205
|
case jt.arrowLeft:
|
|
@@ -32218,7 +32218,7 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32218
32218
|
updateMonthYear: ge,
|
|
32219
32219
|
switchView: se,
|
|
32220
32220
|
handleFlow: L
|
|
32221
|
-
}), (ie,
|
|
32221
|
+
}), (ie, Me) => {
|
|
32222
32222
|
var Ae, tt, Ie;
|
|
32223
32223
|
return P(), re("div", {
|
|
32224
32224
|
id: ie.uid ? `dp-menu-${ie.uid}` : void 0,
|
|
@@ -32291,24 +32291,24 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32291
32291
|
onUpdateFlowStep: M(D),
|
|
32292
32292
|
onResetFlow: M(I),
|
|
32293
32293
|
onFocusMenu: W,
|
|
32294
|
-
onSelectDate:
|
|
32295
|
-
onDateUpdate:
|
|
32296
|
-
onTooltipOpen:
|
|
32297
|
-
onTooltipClose:
|
|
32298
|
-
onAutoApply:
|
|
32299
|
-
onRangeStart:
|
|
32300
|
-
onRangeEnd:
|
|
32301
|
-
onInvalidFixedRange:
|
|
32302
|
-
onTimeUpdate:
|
|
32303
|
-
onAmPmChange:
|
|
32304
|
-
onTimePickerOpen:
|
|
32294
|
+
onSelectDate: Me[0] || (Me[0] = (He) => ie.$emit("select-date")),
|
|
32295
|
+
onDateUpdate: Me[1] || (Me[1] = (He) => ie.$emit("date-update", He)),
|
|
32296
|
+
onTooltipOpen: Me[2] || (Me[2] = (He) => ie.$emit("tooltip-open", He)),
|
|
32297
|
+
onTooltipClose: Me[3] || (Me[3] = (He) => ie.$emit("tooltip-close", He)),
|
|
32298
|
+
onAutoApply: Me[4] || (Me[4] = (He) => ie.$emit("auto-apply", He)),
|
|
32299
|
+
onRangeStart: Me[5] || (Me[5] = (He) => ie.$emit("range-start", He)),
|
|
32300
|
+
onRangeEnd: Me[6] || (Me[6] = (He) => ie.$emit("range-end", He)),
|
|
32301
|
+
onInvalidFixedRange: Me[7] || (Me[7] = (He) => ie.$emit("invalid-fixed-range", He)),
|
|
32302
|
+
onTimeUpdate: Me[8] || (Me[8] = (He) => ie.$emit("time-update")),
|
|
32303
|
+
onAmPmChange: Me[9] || (Me[9] = (He) => ie.$emit("am-pm-change", He)),
|
|
32304
|
+
onTimePickerOpen: Me[10] || (Me[10] = (He) => ie.$emit("time-picker-open", He)),
|
|
32305
32305
|
onTimePickerClose: ue,
|
|
32306
32306
|
onRecalculatePosition: O,
|
|
32307
|
-
onUpdateMonthYear:
|
|
32308
|
-
onAutoApplyInvalid:
|
|
32309
|
-
onInvalidDate:
|
|
32310
|
-
onOverlayToggle:
|
|
32311
|
-
"onUpdate:internalModelValue":
|
|
32307
|
+
onUpdateMonthYear: Me[11] || (Me[11] = (He) => ie.$emit("update-month-year", He)),
|
|
32308
|
+
onAutoApplyInvalid: Me[12] || (Me[12] = (He) => ie.$emit("auto-apply-invalid", He)),
|
|
32309
|
+
onInvalidDate: Me[13] || (Me[13] = (He) => ie.$emit("invalid-date", He)),
|
|
32310
|
+
onOverlayToggle: Me[14] || (Me[14] = (He) => ie.$emit("overlay-toggle", He)),
|
|
32311
|
+
"onUpdate:internalModelValue": Me[15] || (Me[15] = (He) => ie.$emit("update:internal-model-value", He))
|
|
32312
32312
|
}), fa({ _: 2 }, [
|
|
32313
32313
|
qe(q.value, (He, xt) => ({
|
|
32314
32314
|
name: He,
|
|
@@ -32333,9 +32333,9 @@ const $3 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
32333
32333
|
"menu-mount": d.value
|
|
32334
32334
|
}, i.value, {
|
|
32335
32335
|
"calendar-width": v.value,
|
|
32336
|
-
onClosePicker:
|
|
32337
|
-
onSelectDate:
|
|
32338
|
-
onInvalidSelect:
|
|
32336
|
+
onClosePicker: Me[16] || (Me[16] = (He) => ie.$emit("close-picker")),
|
|
32337
|
+
onSelectDate: Me[17] || (Me[17] = (He) => ie.$emit("select-date")),
|
|
32338
|
+
onInvalidSelect: Me[18] || (Me[18] = (He) => ie.$emit("invalid-select")),
|
|
32339
32339
|
onSelectNow: Y
|
|
32340
32340
|
}), fa({ _: 2 }, [
|
|
32341
32341
|
qe(M(Q), (He, xt) => ({
|
|
@@ -33167,7 +33167,7 @@ const h5 = ({
|
|
|
33167
33167
|
ye.key === "Tab" && !T.value.enabled && !l.teleport && D.value.tabOutClosesMenu && (m.value.contains(document.activeElement) || Qt()), h.value = ye.shiftKey;
|
|
33168
33168
|
}, ie = (ye) => {
|
|
33169
33169
|
h.value = ye.shiftKey;
|
|
33170
|
-
},
|
|
33170
|
+
}, Me = () => {
|
|
33171
33171
|
!l.disabled && !l.readonly && (R(lh, l), q(!1), i.value = !0, i.value && n("open"), i.value || na(), te(l.modelValue));
|
|
33172
33172
|
}, Ae = () => {
|
|
33173
33173
|
var ye;
|
|
@@ -33192,13 +33192,13 @@ const h5 = ({
|
|
|
33192
33192
|
N.value = null;
|
|
33193
33193
|
return;
|
|
33194
33194
|
}
|
|
33195
|
-
const
|
|
33196
|
-
|
|
33195
|
+
const Te = Array.isArray(ye) ? !ye.some((st) => !C(st)) : C(ye), nt = w(ye);
|
|
33196
|
+
Te && nt && (p.value = !0, N.value = ye, J && (y.value = ve, Ie(), n("text-submit")), ft().then(() => {
|
|
33197
33197
|
p.value = !1;
|
|
33198
33198
|
}));
|
|
33199
33199
|
}, dn = () => {
|
|
33200
33200
|
l.autoApply && w(N.value) && ne(), xt();
|
|
33201
|
-
}, yl = () => i.value ? Qt() :
|
|
33201
|
+
}, yl = () => i.value ? Qt() : Me(), Kn = (ye) => {
|
|
33202
33202
|
N.value = ye;
|
|
33203
33203
|
}, Pa = () => {
|
|
33204
33204
|
x.value.enabled && (g.value = !0, G()), n("focus");
|
|
@@ -33226,7 +33226,7 @@ const h5 = ({
|
|
|
33226
33226
|
closeMenu: Qt,
|
|
33227
33227
|
selectDate: Ie,
|
|
33228
33228
|
clearValue: Ae,
|
|
33229
|
-
openMenu:
|
|
33229
|
+
openMenu: Me,
|
|
33230
33230
|
onScroll: ge,
|
|
33231
33231
|
formatInputValue: G,
|
|
33232
33232
|
// exposed for testing purposes
|
|
@@ -33251,7 +33251,7 @@ const h5 = ({
|
|
|
33251
33251
|
"is-menu-open": i.value
|
|
33252
33252
|
}, ye.$props, {
|
|
33253
33253
|
onClear: Ae,
|
|
33254
|
-
onOpen:
|
|
33254
|
+
onOpen: Me,
|
|
33255
33255
|
onSetInputDate: Zn,
|
|
33256
33256
|
onSetEmptyDate: M(ne),
|
|
33257
33257
|
onSelectDate: Ie,
|
|
@@ -33261,7 +33261,7 @@ const h5 = ({
|
|
|
33261
33261
|
onBlur: Ml,
|
|
33262
33262
|
onRealBlur: J[1] || (J[1] = (ve) => g.value = !1)
|
|
33263
33263
|
}), fa({ _: 2 }, [
|
|
33264
|
-
qe(M(W), (ve,
|
|
33264
|
+
qe(M(W), (ve, Te) => ({
|
|
33265
33265
|
name: ve,
|
|
33266
33266
|
fn: B((nt) => [
|
|
33267
33267
|
fe(ye.$slots, ve, zt(sa(nt)))
|
|
@@ -33316,7 +33316,7 @@ const h5 = ({
|
|
|
33316
33316
|
onInvalidDate: J[16] || (J[16] = (ve) => ye.$emit("invalid-date", ve)),
|
|
33317
33317
|
onOverlayToggle: J[17] || (J[17] = (ve) => ye.$emit("overlay-toggle", ve))
|
|
33318
33318
|
}), fa({ _: 2 }, [
|
|
33319
|
-
qe(M($), (ve,
|
|
33319
|
+
qe(M($), (ve, Te) => ({
|
|
33320
33320
|
name: ve,
|
|
33321
33321
|
fn: B((nt) => [
|
|
33322
33322
|
fe(ye.$slots, ve, zt(sa({ ...nt })))
|
|
@@ -36087,13 +36087,13 @@ const wI = De({
|
|
|
36087
36087
|
renderless: !0,
|
|
36088
36088
|
items: $.value
|
|
36089
36089
|
}, {
|
|
36090
|
-
default: (
|
|
36090
|
+
default: (Me) => {
|
|
36091
36091
|
var xt;
|
|
36092
36092
|
let {
|
|
36093
36093
|
item: Ae,
|
|
36094
36094
|
index: tt,
|
|
36095
36095
|
itemRef: Ie
|
|
36096
|
-
} =
|
|
36096
|
+
} = Me;
|
|
36097
36097
|
const He = pe(Ae.props, {
|
|
36098
36098
|
ref: Ie,
|
|
36099
36099
|
key: Ae.value,
|
|
@@ -36135,7 +36135,7 @@ const wI = De({
|
|
|
36135
36135
|
function ie(Ie) {
|
|
36136
36136
|
Ie.stopPropagation(), Ie.preventDefault(), ue(H, !1);
|
|
36137
36137
|
}
|
|
36138
|
-
const
|
|
36138
|
+
const Me = {
|
|
36139
36139
|
"onClick:close": ie,
|
|
36140
36140
|
onKeydown(Ie) {
|
|
36141
36141
|
Ie.key !== "Enter" && Ie.key !== " " || (Ie.preventDefault(), Ie.stopPropagation(), ie(Ie));
|
|
@@ -36148,7 +36148,7 @@ const wI = De({
|
|
|
36148
36148
|
}, Ae = x.value ? !!n.chip : !!n.selection, tt = Ae ? Od(x.value ? n.chip({
|
|
36149
36149
|
item: H,
|
|
36150
36150
|
index: be,
|
|
36151
|
-
props:
|
|
36151
|
+
props: Me
|
|
36152
36152
|
}) : n.selection({
|
|
36153
36153
|
item: H,
|
|
36154
36154
|
index: be
|
|
@@ -36175,17 +36175,17 @@ const wI = De({
|
|
|
36175
36175
|
size: "small",
|
|
36176
36176
|
text: H.title,
|
|
36177
36177
|
disabled: H.props.disabled
|
|
36178
|
-
},
|
|
36178
|
+
}, Me), null) : tt ?? b("span", {
|
|
36179
36179
|
class: "v-combobox__selection-text"
|
|
36180
36180
|
}, [H.title, e.multiple && be < w.value.length - 1 && b("span", {
|
|
36181
36181
|
class: "v-combobox__selection-comma"
|
|
36182
36182
|
}, [Ne(",")])])]);
|
|
36183
36183
|
})]),
|
|
36184
36184
|
"append-inner": function() {
|
|
36185
|
-
var
|
|
36185
|
+
var Me;
|
|
36186
36186
|
for (var H = arguments.length, be = new Array(H), ie = 0; ie < H; ie++)
|
|
36187
36187
|
be[ie] = arguments[ie];
|
|
36188
|
-
return b(we, null, [(
|
|
36188
|
+
return b(we, null, [(Me = n["append-inner"]) == null ? void 0 : Me.call(n, ...be), (!e.hideNoData || e.items.length) && e.menuIcon ? b(lt, {
|
|
36189
36189
|
class: "v-combobox__menu-icon",
|
|
36190
36190
|
icon: e.menuIcon,
|
|
36191
36191
|
onMousedown: ee,
|
|
@@ -40046,7 +40046,8 @@ const fV = /* @__PURE__ */ Ro(cV, [["render", dV]]), mV = /* @__PURE__ */ Ze({
|
|
|
40046
40046
|
}, 8, ["height", "items"])) : S.alwaysOpen || l.value ? (P(), X(Vt, {
|
|
40047
40047
|
"bg-color": S.transparent ? "transparent" : void 0,
|
|
40048
40048
|
height: S.height,
|
|
40049
|
-
key: "3"
|
|
40049
|
+
key: "3",
|
|
40050
|
+
width: "100%"
|
|
40050
40051
|
}, {
|
|
40051
40052
|
default: B(() => [
|
|
40052
40053
|
S.canSelectNone ? (P(), X(dt, {
|
|
@@ -42517,9 +42518,9 @@ const NV = De({
|
|
|
42517
42518
|
const H = c.fadingActions ?? n.fadingActions;
|
|
42518
42519
|
return H ?? !o.value;
|
|
42519
42520
|
}), L = _(() => c.hideColumns ?? n.hideColumns), V = _(() => c.hideFilters ?? n.hideFilters), $ = _(() => c.hideRefresh ?? n.hideRefresh), W = _(() => c.hideSubToolbarSettings ?? n.hideSubtoolbarSettings), F = _(() => {
|
|
42520
|
-
var be, ie,
|
|
42521
|
+
var be, ie, Me;
|
|
42521
42522
|
let H = n.label ?? (n.variant == "page" ? (be = s == null ? void 0 : s.meta) == null ? void 0 : be.displayName : void 0) ?? f(n.nav ?? n.bladeName ?? "");
|
|
42522
|
-
return n.showCount == !0 && ((ie = h.filteredItems.value) == null ? void 0 : ie.length) != null && ((
|
|
42523
|
+
return n.showCount == !0 && ((ie = h.filteredItems.value) == null ? void 0 : ie.length) != null && ((Me = h.asyncItems.value) == null ? void 0 : Me.length) != null && (H = `${H} (${h.filteredItems.value.length} of ${h.asyncItems.value.length})`), H;
|
|
42523
42524
|
}), O = _(() => {
|
|
42524
42525
|
var H, be;
|
|
42525
42526
|
return ((H = d.value) == null ? void 0 : H.label) != null ? d.value.label : ((be = d.value) == null ? void 0 : be.getLabel) != null ? d.value.getLabel({
|
|
@@ -42569,10 +42570,10 @@ const NV = De({
|
|
|
42569
42570
|
h.mode.value = "new", N.value = await H(), te.value = {}, G(), se();
|
|
42570
42571
|
}
|
|
42571
42572
|
function se() {
|
|
42572
|
-
var ie,
|
|
42573
|
+
var ie, Me;
|
|
42573
42574
|
var H = p.value + 1;
|
|
42574
42575
|
if (((ie = d.value) == null ? void 0 : ie.onMoveNext) != null) {
|
|
42575
|
-
var be = (
|
|
42576
|
+
var be = (Me = d.value) == null ? void 0 : Me.onMoveNext({
|
|
42576
42577
|
item: N.value,
|
|
42577
42578
|
meta: te.value,
|
|
42578
42579
|
mode: h.mode.value,
|
|
@@ -42593,22 +42594,22 @@ const NV = De({
|
|
|
42593
42594
|
if (be < l.value.length) {
|
|
42594
42595
|
var ie = l.value[be];
|
|
42595
42596
|
if (ie.onMoveInto != null) {
|
|
42596
|
-
var
|
|
42597
|
+
var Me = ie.onMoveInto({
|
|
42597
42598
|
item: N.value,
|
|
42598
42599
|
meta: te.value,
|
|
42599
42600
|
mode: h.mode.value,
|
|
42600
42601
|
from: p.value,
|
|
42601
42602
|
thisStep: H
|
|
42602
42603
|
});
|
|
42603
|
-
if (
|
|
42604
|
+
if (Me == null)
|
|
42604
42605
|
return;
|
|
42605
|
-
H =
|
|
42606
|
+
H = Me;
|
|
42606
42607
|
}
|
|
42607
42608
|
}
|
|
42608
42609
|
}
|
|
42609
42610
|
if (H == 0 ? v.value = [H] : p.value != H && (v.value.length == 0 && v.value.push(0), v.value.push(H)), H == 0) {
|
|
42610
42611
|
const Ae = { ...s, params: {}, query: {}, replace: !0 };
|
|
42611
|
-
u.replace(Ae);
|
|
42612
|
+
u.replace(Ae), n.startEditing == !0 ? h.mode.value = "edit" : h.mode.value = "view";
|
|
42612
42613
|
}
|
|
42613
42614
|
}
|
|
42614
42615
|
function le(H) {
|
|
@@ -42663,8 +42664,8 @@ const NV = De({
|
|
|
42663
42664
|
}), dl(() => {
|
|
42664
42665
|
Ma(n.stepsID) || IS(n.stepsID);
|
|
42665
42666
|
}), (H, be) => {
|
|
42666
|
-
const ie = Fa("bt-header-option"),
|
|
42667
|
-
return P(), X(
|
|
42667
|
+
const ie = Fa("bt-header-option"), Me = Fa("bt-blade");
|
|
42668
|
+
return P(), X(Me, {
|
|
42668
42669
|
bladeName: H.bladeName,
|
|
42669
42670
|
density: H.density,
|
|
42670
42671
|
flat: H.flat,
|
|
@@ -43412,7 +43413,7 @@ const NV = De({
|
|
|
43412
43413
|
}, 8, ["bladeName", "density", "flat", "errorMsg", "hideSubtoolbar", "hideToolbar", "label", "loadingMsg", "preset", "size", "transparent", "variant"]);
|
|
43413
43414
|
};
|
|
43414
43415
|
}
|
|
43415
|
-
}), i4 = /* @__PURE__ */ Ro(t$, [["__scopeId", "data-v-
|
|
43416
|
+
}), i4 = /* @__PURE__ */ Ro(t$, [["__scopeId", "data-v-7712f62e"]]), a$ = { class: "d-flex align-center" }, o4 = /* @__PURE__ */ Ze({
|
|
43416
43417
|
__name: "BT-Dialog-Select",
|
|
43417
43418
|
setup(e) {
|
|
43418
43419
|
const t = z(!1), a = z({}), n = z([]), { getValue: l } = Py();
|