bt-core-app 1.4.333 → 1.4.334
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 +67 -70
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -5507,7 +5507,7 @@ function wV(e, t) {
|
|
|
5507
5507
|
function xV(e, t) {
|
|
5508
5508
|
return e != null && Array.isArray(e) && e.length == t;
|
|
5509
5509
|
}
|
|
5510
|
-
function
|
|
5510
|
+
function Vt(e, t = 0) {
|
|
5511
5511
|
return e != null && Array.isArray(e) && e.length > t;
|
|
5512
5512
|
}
|
|
5513
5513
|
function Zc(e) {
|
|
@@ -5567,10 +5567,10 @@ function og(e, t = (n) => n) {
|
|
|
5567
5567
|
if (e == null)
|
|
5568
5568
|
return [];
|
|
5569
5569
|
const n = Array.isArray(e) ? e : t(e);
|
|
5570
|
-
return
|
|
5570
|
+
return Vt(n) ? [...n.reduce((a, l) => {
|
|
5571
5571
|
a.push(l);
|
|
5572
5572
|
const r = og(l, t);
|
|
5573
|
-
return
|
|
5573
|
+
return Vt(r) && a.push(...r), a;
|
|
5574
5574
|
}, [])] : [];
|
|
5575
5575
|
}
|
|
5576
5576
|
function MV(e) {
|
|
@@ -8156,7 +8156,7 @@ function Jw(e) {
|
|
|
8156
8156
|
if (D == null)
|
|
8157
8157
|
return !1;
|
|
8158
8158
|
let I = D.subscriptions ?? [], P = D.permissions ?? [], R = d(I, P, "view");
|
|
8159
|
-
return R || !_ || !
|
|
8159
|
+
return R || !_ || !Vt(D.children) ? R : ((D == null ? void 0 : D.children) != null && D.children.forEach((L) => {
|
|
8160
8160
|
f(L, !0) && (M = !0);
|
|
8161
8161
|
}), M);
|
|
8162
8162
|
}
|
|
@@ -9167,7 +9167,7 @@ function _x(e) {
|
|
|
9167
9167
|
if (n.value != x) {
|
|
9168
9168
|
n.value = x;
|
|
9169
9169
|
let k = !1, w = !1, p = !1, _ = !1;
|
|
9170
|
-
if (Zc(n.value) || !
|
|
9170
|
+
if (Zc(n.value) || !Vt(b(), 4))
|
|
9171
9171
|
k = !0;
|
|
9172
9172
|
else {
|
|
9173
9173
|
const D = b();
|
|
@@ -9204,7 +9204,7 @@ function _x(e) {
|
|
|
9204
9204
|
const L = R.split(",");
|
|
9205
9205
|
L.some((E) => !Ho.some((O) => O.value == E)) ? k = !0 : h.value = L;
|
|
9206
9206
|
}
|
|
9207
|
-
if (
|
|
9207
|
+
if (Vt(D, 5) && e.useLeadTimeLeft) {
|
|
9208
9208
|
const L = D[5].split("-");
|
|
9209
9209
|
if (e.useLeadTimeRight && L.length > 1) {
|
|
9210
9210
|
const E = Number.parseInt(L[1]);
|
|
@@ -9239,7 +9239,7 @@ function _x(e) {
|
|
|
9239
9239
|
if (s.value == "Custom")
|
|
9240
9240
|
return n.value;
|
|
9241
9241
|
let x = "0";
|
|
9242
|
-
return x = dn(x, c.value, " "),
|
|
9242
|
+
return x = dn(x, c.value, " "), Vt(m.value) ? x = dn(x, (k = m.value) == null ? void 0 : k.toString(), " ") : x = dn(x, "*", " "), Vt(v.value) ? x = dn(x, (w = v.value) == null ? void 0 : w.toString(), " ") : x = dn(x, "*", " "), ((p = h.value) == null ? void 0 : p.length) == 7 ? x = dn(x, "*", " ") : x = dn(x, (_ = h.value) == null ? void 0 : _.toString(), " "), x = dn(x, `${d.value}-${f.value}`, " "), n.value = x, n.value;
|
|
9243
9243
|
}
|
|
9244
9244
|
return S(e.value ?? e.defaultExpression ?? t()), {
|
|
9245
9245
|
applyRawExpression: g,
|
|
@@ -9338,7 +9338,7 @@ function Dx(e) {
|
|
|
9338
9338
|
return `${u.dateTrigger}|${u.replacingDate ?? ""}|${u.leadTimeLeft.toString()}-${u.leadTimeRight.toString()}`;
|
|
9339
9339
|
}
|
|
9340
9340
|
function c(u) {
|
|
9341
|
-
if (
|
|
9341
|
+
if (Vt(u))
|
|
9342
9342
|
return u.filter((b) => b.isAdjusting == !0).map((b) => f(b)).filter((b) => b != null && !b.includes("undefined")).toString();
|
|
9343
9343
|
}
|
|
9344
9344
|
function v(u) {
|
|
@@ -9349,7 +9349,7 @@ function Dx(e) {
|
|
|
9349
9349
|
if (u != null && u.includes("undefined"))
|
|
9350
9350
|
return;
|
|
9351
9351
|
const b = u == null ? void 0 : u.split("|");
|
|
9352
|
-
if (
|
|
9352
|
+
if (Vt(b, 2)) {
|
|
9353
9353
|
let S = 0, C = 0, x = b[2].split("-");
|
|
9354
9354
|
x.length > 0 && (S = Number.parseInt(x[0])), x.length > 1 && (C = Number.parseInt(x[1]));
|
|
9355
9355
|
let k = b[1].length > 1 ? b[1] : void 0;
|
|
@@ -9418,7 +9418,7 @@ function Ix() {
|
|
|
9418
9418
|
fileName: l = "data.csv",
|
|
9419
9419
|
format: r = "file"
|
|
9420
9420
|
} = t;
|
|
9421
|
-
if (!
|
|
9421
|
+
if (!Vt(n))
|
|
9422
9422
|
return;
|
|
9423
9423
|
let i = [];
|
|
9424
9424
|
a != null ? i = a == null ? void 0 : a.filter((u) => (u.csv ?? u.csvText ?? u.csvFilter ?? u.csvArray) != null).map((u) => ({
|
|
@@ -9435,7 +9435,7 @@ function Ix() {
|
|
|
9435
9435
|
var f = null;
|
|
9436
9436
|
typeof C.value == "function" ? f = C.value(b) : typeof C.value == "string" && (f = yn(b, C.value)), C.itemText != null ? s[C.header] = yn(f, C.itemText) : s[C.header] = f;
|
|
9437
9437
|
}
|
|
9438
|
-
o.push(s),
|
|
9438
|
+
o.push(s), Vt(d) && d.forEach((S) => {
|
|
9439
9439
|
o.push(S);
|
|
9440
9440
|
}), d = [];
|
|
9441
9441
|
}
|
|
@@ -12608,7 +12608,7 @@ const Fa = ea("slide-x-transition"), zm = ea("slide-x-reverse-transition"), qn =
|
|
|
12608
12608
|
reset: [Number, String],
|
|
12609
12609
|
root: [Boolean, String],
|
|
12610
12610
|
scoped: Boolean
|
|
12611
|
-
}, "VDefaultsProvider"),
|
|
12611
|
+
}, "VDefaultsProvider"), Lt = Fe(!1)({
|
|
12612
12612
|
name: "VDefaultsProvider",
|
|
12613
12613
|
props: R2(),
|
|
12614
12614
|
setup(e, t) {
|
|
@@ -13152,7 +13152,7 @@ const Y2 = [null, "prominent", "default", "comfortable", "compact"], U2 = xe({
|
|
|
13152
13152
|
default: () => [g && y("div", {
|
|
13153
13153
|
key: "image",
|
|
13154
13154
|
class: "v-toolbar__image"
|
|
13155
|
-
}, [n.image ? y(
|
|
13155
|
+
}, [n.image ? y(Lt, {
|
|
13156
13156
|
key: "image-defaults",
|
|
13157
13157
|
disabled: !e.image,
|
|
13158
13158
|
defaults: {
|
|
@@ -13165,7 +13165,7 @@ const Y2 = [null, "prominent", "default", "comfortable", "compact"], U2 = xe({
|
|
|
13165
13165
|
key: "image-img",
|
|
13166
13166
|
cover: !0,
|
|
13167
13167
|
src: e.image
|
|
13168
|
-
}, null)]), y(
|
|
13168
|
+
}, null)]), y(Lt, {
|
|
13169
13169
|
defaults: {
|
|
13170
13170
|
VTabs: {
|
|
13171
13171
|
height: qe(c.value)
|
|
@@ -13190,7 +13190,7 @@ const Y2 = [null, "prominent", "default", "comfortable", "compact"], U2 = xe({
|
|
|
13190
13190
|
class: "v-toolbar__append"
|
|
13191
13191
|
}, [(x = n.append) == null ? void 0 : x.call(n)])])];
|
|
13192
13192
|
}
|
|
13193
|
-
}), y(
|
|
13193
|
+
}), y(Lt, {
|
|
13194
13194
|
defaults: {
|
|
13195
13195
|
VTabs: {
|
|
13196
13196
|
height: qe(v.value)
|
|
@@ -14319,7 +14319,7 @@ const fi = {
|
|
|
14319
14319
|
return [ui(!0, "v-btn"), !e.icon && I && y("span", {
|
|
14320
14320
|
key: "prepend",
|
|
14321
14321
|
class: "v-btn__prepend"
|
|
14322
|
-
}, [a.prepend ? y(
|
|
14322
|
+
}, [a.prepend ? y(Lt, {
|
|
14323
14323
|
key: "prepend-defaults",
|
|
14324
14324
|
disabled: !e.prependIcon,
|
|
14325
14325
|
defaults: {
|
|
@@ -14336,7 +14336,7 @@ const fi = {
|
|
|
14336
14336
|
}, [!a.default && R ? y(ct, {
|
|
14337
14337
|
key: "content-icon",
|
|
14338
14338
|
icon: e.icon
|
|
14339
|
-
}, null) : y(
|
|
14339
|
+
}, null) : y(Lt, {
|
|
14340
14340
|
key: "content-defaults",
|
|
14341
14341
|
disabled: !R,
|
|
14342
14342
|
defaults: {
|
|
@@ -14352,7 +14352,7 @@ const fi = {
|
|
|
14352
14352
|
})]), !e.icon && P && y("span", {
|
|
14353
14353
|
key: "append",
|
|
14354
14354
|
class: "v-btn__append"
|
|
14355
|
-
}, [a.append ? y(
|
|
14355
|
+
}, [a.append ? y(Lt, {
|
|
14356
14356
|
key: "append-defaults",
|
|
14357
14357
|
disabled: !e.appendIcon,
|
|
14358
14358
|
defaults: {
|
|
@@ -14489,7 +14489,7 @@ const fi = {
|
|
|
14489
14489
|
}, null), k && y("div", {
|
|
14490
14490
|
key: "prepend",
|
|
14491
14491
|
class: "v-alert__prepend"
|
|
14492
|
-
}, [a.prepend ? y(
|
|
14492
|
+
}, [a.prepend ? y(Lt, {
|
|
14493
14493
|
key: "prepend-defaults",
|
|
14494
14494
|
disabled: !r.value,
|
|
14495
14495
|
defaults: {
|
|
@@ -14519,7 +14519,7 @@ const fi = {
|
|
|
14519
14519
|
}, [a.append()]), p && y("div", {
|
|
14520
14520
|
key: "close",
|
|
14521
14521
|
class: "v-alert__close"
|
|
14522
|
-
}, [a.close ? y(
|
|
14522
|
+
}, [a.close ? y(Lt, {
|
|
14523
14523
|
key: "close-defaults",
|
|
14524
14524
|
defaults: {
|
|
14525
14525
|
VBtn: {
|
|
@@ -14588,7 +14588,7 @@ const fi = {
|
|
|
14588
14588
|
}, a.value, l.value, o.value, s.value, d.value, i.value, e.class],
|
|
14589
14589
|
style: [r.value, f.value, e.style]
|
|
14590
14590
|
}, {
|
|
14591
|
-
default: () => [n.default ? y(
|
|
14591
|
+
default: () => [n.default ? y(Lt, {
|
|
14592
14592
|
key: "content-defaults",
|
|
14593
14593
|
defaults: {
|
|
14594
14594
|
VImg: {
|
|
@@ -15889,7 +15889,7 @@ const VS = xe({
|
|
|
15889
15889
|
}, {
|
|
15890
15890
|
default: () => [Ot(y("div", {
|
|
15891
15891
|
class: "v-chip__filter"
|
|
15892
|
-
}, [l.filter ? y(
|
|
15892
|
+
}, [l.filter ? y(Lt, {
|
|
15893
15893
|
key: "filter-defaults",
|
|
15894
15894
|
disabled: !e.filterIcon,
|
|
15895
15895
|
defaults: {
|
|
@@ -15904,7 +15904,7 @@ const VS = xe({
|
|
|
15904
15904
|
}), R && y("div", {
|
|
15905
15905
|
key: "prepend",
|
|
15906
15906
|
class: "v-chip__prepend"
|
|
15907
|
-
}, [l.prepend ? y(
|
|
15907
|
+
}, [l.prepend ? y(Lt, {
|
|
15908
15908
|
key: "prepend-defaults",
|
|
15909
15909
|
disabled: !P,
|
|
15910
15910
|
defaults: {
|
|
@@ -15938,7 +15938,7 @@ const VS = xe({
|
|
|
15938
15938
|
})) ?? e.text]), D && y("div", {
|
|
15939
15939
|
key: "append",
|
|
15940
15940
|
class: "v-chip__append"
|
|
15941
|
-
}, [l.append ? y(
|
|
15941
|
+
}, [l.append ? y(Lt, {
|
|
15942
15942
|
key: "append-defaults",
|
|
15943
15943
|
disabled: !_,
|
|
15944
15944
|
defaults: {
|
|
@@ -15963,7 +15963,7 @@ const VS = xe({
|
|
|
15963
15963
|
key: "close",
|
|
15964
15964
|
class: "v-chip__close",
|
|
15965
15965
|
type: "button"
|
|
15966
|
-
}, x.value), [l.close ? y(
|
|
15966
|
+
}, x.value), [l.close ? y(Lt, {
|
|
15967
15967
|
key: "close-defaults",
|
|
15968
15968
|
defaults: {
|
|
15969
15969
|
VIcon: {
|
|
@@ -16574,7 +16574,7 @@ const Ld = (e) => {
|
|
|
16574
16574
|
}, e.class],
|
|
16575
16575
|
style: e.style
|
|
16576
16576
|
}, {
|
|
16577
|
-
default: () => [n.activator && y(
|
|
16577
|
+
default: () => [n.activator && y(Lt, {
|
|
16578
16578
|
defaults: v.value
|
|
16579
16579
|
}, {
|
|
16580
16580
|
default: () => [y(YS, null, {
|
|
@@ -16754,7 +16754,7 @@ const Ld = (e) => {
|
|
|
16754
16754
|
return [ui(C.value || b.value, "v-list-item"), J && y("div", {
|
|
16755
16755
|
key: "prepend",
|
|
16756
16756
|
class: "v-list-item__prepend"
|
|
16757
|
-
}, [a.prepend ? y(
|
|
16757
|
+
}, [a.prepend ? y(Lt, {
|
|
16758
16758
|
key: "prepend-defaults",
|
|
16759
16759
|
disabled: !G,
|
|
16760
16760
|
defaults: {
|
|
@@ -16809,7 +16809,7 @@ const Ld = (e) => {
|
|
|
16809
16809
|
}), (Y = a.default) == null ? void 0 : Y.call(a, V.value)]), N && y("div", {
|
|
16810
16810
|
key: "append",
|
|
16811
16811
|
class: "v-list-item__append"
|
|
16812
|
-
}, [a.append ? y(
|
|
16812
|
+
}, [a.append ? y(Lt, {
|
|
16813
16813
|
key: "append-defaults",
|
|
16814
16814
|
disabled: !ee,
|
|
16815
16815
|
defaults: {
|
|
@@ -18391,7 +18391,7 @@ const SC = xe({
|
|
|
18391
18391
|
default: function() {
|
|
18392
18392
|
for (var u = arguments.length, b = new Array(u), S = 0; S < u; S++)
|
|
18393
18393
|
b[S] = arguments[S];
|
|
18394
|
-
return y(
|
|
18394
|
+
return y(Lt, {
|
|
18395
18395
|
root: "VMenu"
|
|
18396
18396
|
}, {
|
|
18397
18397
|
default: () => {
|
|
@@ -18654,7 +18654,7 @@ const SC = xe({
|
|
|
18654
18654
|
onMousedown: ($) => {
|
|
18655
18655
|
$.preventDefault(), $.stopPropagation();
|
|
18656
18656
|
}
|
|
18657
|
-
}, [y(
|
|
18657
|
+
}, [y(Lt, {
|
|
18658
18658
|
defaults: {
|
|
18659
18659
|
VIcon: {
|
|
18660
18660
|
icon: e.clearIcon
|
|
@@ -19502,7 +19502,7 @@ const ep = xe({
|
|
|
19502
19502
|
return y("div", {
|
|
19503
19503
|
key: ee.value,
|
|
19504
19504
|
class: "v-select__selection"
|
|
19505
|
-
}, [j ? n.chip ? y(
|
|
19505
|
+
}, [j ? n.chip ? y(Lt, {
|
|
19506
19506
|
key: "chip-defaults",
|
|
19507
19507
|
defaults: {
|
|
19508
19508
|
VChip: {
|
|
@@ -19708,7 +19708,7 @@ const OC = xe({
|
|
|
19708
19708
|
default: function() {
|
|
19709
19709
|
for (var m = arguments.length, h = new Array(m), g = 0; g < m; g++)
|
|
19710
19710
|
h[g] = arguments[g];
|
|
19711
|
-
return y(
|
|
19711
|
+
return y(Lt, {
|
|
19712
19712
|
root: "VDialog"
|
|
19713
19713
|
}, {
|
|
19714
19714
|
default: () => {
|
|
@@ -19783,7 +19783,7 @@ const OC = xe({
|
|
|
19783
19783
|
}, [l && y("div", {
|
|
19784
19784
|
key: "prepend",
|
|
19785
19785
|
class: "v-card-item__prepend"
|
|
19786
|
-
}, [n.prepend ? y(
|
|
19786
|
+
}, [n.prepend ? y(Lt, {
|
|
19787
19787
|
key: "prepend-defaults",
|
|
19788
19788
|
disabled: !a,
|
|
19789
19789
|
defaults: {
|
|
@@ -19823,7 +19823,7 @@ const OC = xe({
|
|
|
19823
19823
|
}), (d = n.default) == null ? void 0 : d.call(n)]), i && y("div", {
|
|
19824
19824
|
key: "append",
|
|
19825
19825
|
class: "v-card-item__append"
|
|
19826
|
-
}, [n.append ? y(
|
|
19826
|
+
}, [n.append ? y(Lt, {
|
|
19827
19827
|
key: "append-defaults",
|
|
19828
19828
|
disabled: !r,
|
|
19829
19829
|
defaults: {
|
|
@@ -19953,7 +19953,7 @@ const OC = xe({
|
|
|
19953
19953
|
return [D && y("div", {
|
|
19954
19954
|
key: "image",
|
|
19955
19955
|
class: "v-card__image"
|
|
19956
|
-
}, [a.image ? y(
|
|
19956
|
+
}, [a.image ? y(Lt, {
|
|
19957
19957
|
key: "image-defaults",
|
|
19958
19958
|
disabled: !e.image,
|
|
19959
19959
|
defaults: {
|
|
@@ -22211,7 +22211,7 @@ const eT = xe({
|
|
|
22211
22211
|
key: ue.value,
|
|
22212
22212
|
class: ["v-combobox__selection", de === m.value && ["v-combobox__selection--selected", x.value]],
|
|
22213
22213
|
style: de === m.value ? k.value : {}
|
|
22214
|
-
}, [_.value ? a.chip ? y(
|
|
22214
|
+
}, [_.value ? a.chip ? y(Lt, {
|
|
22215
22215
|
key: "chip-defaults",
|
|
22216
22216
|
defaults: {
|
|
22217
22217
|
VChip: {
|
|
@@ -23248,7 +23248,7 @@ const _T = ["start", "end", "left", "right", "top", "bottom"], AT = xe({
|
|
|
23248
23248
|
return [$ && y("div", {
|
|
23249
23249
|
key: "image",
|
|
23250
23250
|
class: "v-navigation-drawer__img"
|
|
23251
|
-
}, [l.image ? y(
|
|
23251
|
+
}, [l.image ? y(Lt, {
|
|
23252
23252
|
key: "image-defaults",
|
|
23253
23253
|
disabled: !e.image,
|
|
23254
23254
|
defaults: {
|
|
@@ -23400,7 +23400,7 @@ const _T = ["start", "end", "left", "right", "top", "bottom"], AT = xe({
|
|
|
23400
23400
|
"v-switch__thumb--filled": L || e.loading
|
|
23401
23401
|
}, e.inset || c ? void 0 : E.value],
|
|
23402
23402
|
style: e.inset ? void 0 : O.value
|
|
23403
|
-
}, [a.thumb ? y(
|
|
23403
|
+
}, [a.thumb ? y(Lt, {
|
|
23404
23404
|
defaults: {
|
|
23405
23405
|
VIcon: {
|
|
23406
23406
|
icon: L,
|
|
@@ -23841,7 +23841,7 @@ function Yd(e, t, n) {
|
|
|
23841
23841
|
ce != null ? me = me != null ? `${me}ANDALSO${ce.filterFunction()}` : ce.filterFunction() : We.push(we);
|
|
23842
23842
|
});
|
|
23843
23843
|
const ze = {};
|
|
23844
|
-
return
|
|
23844
|
+
return Vt(We) && (ze.filterBy = We.toString()), me != null && (ze.query = me), ze;
|
|
23845
23845
|
}), oe = T(() => {
|
|
23846
23846
|
var We;
|
|
23847
23847
|
let me = e.itemID;
|
|
@@ -23849,7 +23849,7 @@ function Yd(e, t, n) {
|
|
|
23849
23849
|
}), ve = T(() => {
|
|
23850
23850
|
var We;
|
|
23851
23851
|
let me = e.params != null ? { ...e.params } : {};
|
|
23852
|
-
return e.useServerPagination && e.itemsPerPage != null && (me.includeCount = !0, me.takeAmount = e.itemsPerPage, me.takeFrom = (k.value - 1) * e.itemsPerPage), H.value != null && (me = { ...me, ...H.value }), P.value && (me.includeInactive = !0),
|
|
23852
|
+
return e.useServerPagination && e.itemsPerPage != null && (me.includeCount = !0, me.takeAmount = e.itemsPerPage, me.takeFrom = (k.value - 1) * e.itemsPerPage), H.value != null && (me = { ...me, ...H.value }), P.value && (me.includeInactive = !0), Vt(e.selectProps) && (me.properties = (We = e.selectProps) == null ? void 0 : We.toString()), M.value != null && (me.searchString = M.value), me;
|
|
23853
23853
|
}), ue = T(() => (me) => e.onCanDelete != null ? e.onCanDelete(me) : !(me != null && me.isInactive === !0)), de = T(() => (me) => P.value ? e.onCanRestore != null ? e.onCanRestore(me) : (me == null ? void 0 : me.isInactive) === !0 : !1), Je = T(() => O.value.filter((me) => !me.hide)), ie = T(() => {
|
|
23854
23854
|
let me = new Array();
|
|
23855
23855
|
return Je.value.filter((ze) => ze.sublevel != null).forEach((ze) => {
|
|
@@ -23954,7 +23954,7 @@ function Yd(e, t, n) {
|
|
|
23954
23954
|
let me = e.onFilter ? e.onFilter(L.value) : L.value;
|
|
23955
23955
|
if (M.value != null && M.value.length > 0) {
|
|
23956
23956
|
let We = [...R.value];
|
|
23957
|
-
e.itemText && We.push(e.itemText),
|
|
23957
|
+
e.itemText && We.push(e.itemText), Vt(We) && (me = me.filter((ze) => zw(ze, M.value, We)));
|
|
23958
23958
|
}
|
|
23959
23959
|
if (e.useLocalPagination != null && e.useLocalPagination !== !1 && e.itemsPerPage != null) {
|
|
23960
23960
|
let We = (k.value - 1) * e.itemsPerPage, ze = We + e.itemsPerPage;
|
|
@@ -24383,7 +24383,7 @@ const FT = {
|
|
|
24383
24383
|
}), v = T(() => a.actionButtonSize ?? a.size), m = T(() => s.canAdd ?? a.canAdd), h = T(() => s.hideColumns ?? a.hideColumns), g = T(() => s.hideFilters ?? a.hideFilters), u = T(() => s.hideRefresh ?? a.hideRefresh), b = T(() => s.hideSubToolbarSettings ?? a.hideSubtoolbarSettings), S = T(() => {
|
|
24384
24384
|
var M;
|
|
24385
24385
|
return a.label ?? (a.variant == "page" ? (M = o == null ? void 0 : o.meta) == null ? void 0 : M.displayName : void 0) ?? d(a.nav ?? a.bladeName ?? "");
|
|
24386
|
-
}), C = T(() => a.variant == "dialog" && (a.canSearch ||
|
|
24386
|
+
}), C = T(() => a.variant == "dialog" && (a.canSearch || Vt(a.searchProps))), x = T(() => a.variant == "inline" && (a.canSearch || Vt(a.searchProps))), k = T(() => (a.useServerPagination || a.useLocalPagination) && c.totalPages.value > 1), w = T(() => {
|
|
24387
24387
|
if (a.actualHeight != null)
|
|
24388
24388
|
return `height: calc(${a.actualHeight})`;
|
|
24389
24389
|
if (a.actualUsedHeight != null)
|
|
@@ -24398,18 +24398,15 @@ const FT = {
|
|
|
24398
24398
|
let I = a.returnCSV ? M.split(",") : M;
|
|
24399
24399
|
if (a.selectSingle && !Array.isArray(I) && (I = [I]), a.returnIndex && a.returnCSV)
|
|
24400
24400
|
return I.map((R) => Number.parseInt(R));
|
|
24401
|
-
let P =
|
|
24402
|
-
return a.
|
|
24403
|
-
const L = i(R, a.itemValue);
|
|
24404
|
-
I.some((E) => E == L) && P.push(L);
|
|
24405
|
-
}), a.selectSingle ? Lt(P) ? [P[0]] : [] : P;
|
|
24401
|
+
let P = [];
|
|
24402
|
+
return a.selectSingle ? Vt(P) ? [P[0]] : [] : P;
|
|
24406
24403
|
},
|
|
24407
24404
|
set(M) {
|
|
24408
24405
|
if (M == null)
|
|
24409
24406
|
n("update:selected", M), p.value = [];
|
|
24410
24407
|
else {
|
|
24411
24408
|
let I = M;
|
|
24412
|
-
a.returnIndex
|
|
24409
|
+
a.returnIndex ? I = M.map((P) => c.filteredItems.value.indexOf((R) => R === P)) : a.itemValue != null && (I = M.map((P) => i(c.filteredItems.value[P], a.itemValue))), a.selectSingle ? (I = Vt(I) ? I[0] : void 0, p.value = I != null ? [I] : []) : p.value = I, a.returnCSV && I != null && (I = I.toString()), n("update:selected", I), p.value = I;
|
|
24413
24410
|
}
|
|
24414
24411
|
}
|
|
24415
24412
|
});
|
|
@@ -24577,13 +24574,13 @@ const FT = {
|
|
|
24577
24574
|
"hide-on-leave": ""
|
|
24578
24575
|
}, {
|
|
24579
24576
|
default: z(() => [
|
|
24580
|
-
(M.canSearch !== !1 || A(
|
|
24577
|
+
(M.canSearch !== !1 || A(Vt)(M.searchProps)) && !A(c).showSearch.value ? (B(), le(Be, {
|
|
24581
24578
|
icon: "$magnify",
|
|
24582
24579
|
key: "11",
|
|
24583
24580
|
size: M.size,
|
|
24584
24581
|
onClick: A(c).toggleSearch
|
|
24585
24582
|
}, null, 8, ["size", "onClick"])) : Q("", !0),
|
|
24586
|
-
(M.canSearch !== !1 || A(
|
|
24583
|
+
(M.canSearch !== !1 || A(Vt)(M.searchProps)) && A(c).showSearch.value ? (B(), le(ua, {
|
|
24587
24584
|
"onClick:appendInner": A(c).refresh,
|
|
24588
24585
|
"onClick:prependInner": A(c).toggleSearch,
|
|
24589
24586
|
onKeyup: Fo(A(c).refresh, ["native", "enter"]),
|
|
@@ -24612,7 +24609,7 @@ const FT = {
|
|
|
24612
24609
|
allItems: A(c).asyncItems.value,
|
|
24613
24610
|
size: M.size
|
|
24614
24611
|
}, void 0, !0),
|
|
24615
|
-
!g.value && A(
|
|
24612
|
+
!g.value && A(Vt)(A(c).filters.value) ? (B(), le(_n, {
|
|
24616
24613
|
key: 2,
|
|
24617
24614
|
"close-on-content-click": !1,
|
|
24618
24615
|
density: M.density,
|
|
@@ -24727,7 +24724,7 @@ const FT = {
|
|
|
24727
24724
|
_: 1
|
|
24728
24725
|
})
|
|
24729
24726
|
])) : Q("", !0),
|
|
24730
|
-
A(
|
|
24727
|
+
A(Vt)(A(c).asyncItems.value) ? M.selectSingle || M.selectMulti || M.showListOnly === !0 || E ? (B(), le(en, {
|
|
24731
24728
|
key: 2,
|
|
24732
24729
|
"active-class": M.activeClass,
|
|
24733
24730
|
class: "pt-0 overflow-y-auto",
|
|
@@ -25017,7 +25014,7 @@ const FT = {
|
|
|
25017
25014
|
for (const [a, l] of t)
|
|
25018
25015
|
n[a] = l;
|
|
25019
25016
|
return n;
|
|
25020
|
-
}, yp = /* @__PURE__ */ Ud(WT, [["__scopeId", "data-v-
|
|
25017
|
+
}, yp = /* @__PURE__ */ Ud(WT, [["__scopeId", "data-v-ef7de6a7"]]);
|
|
25021
25018
|
function Ze(e) {
|
|
25022
25019
|
const t = Object.prototype.toString.call(e);
|
|
25023
25020
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -28385,7 +28382,7 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28385
28382
|
setMenuFocused: e,
|
|
28386
28383
|
setShiftKey: t
|
|
28387
28384
|
};
|
|
28388
|
-
},
|
|
28385
|
+
}, Et = Jn({
|
|
28389
28386
|
monthYear: [],
|
|
28390
28387
|
calendar: [],
|
|
28391
28388
|
time: [],
|
|
@@ -28397,12 +28394,12 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28397
28394
|
},
|
|
28398
28395
|
monthPicker: []
|
|
28399
28396
|
}), Cu = U(null), Po = U(!1), Mu = U(!1), Tu = U(!1), _u = U(!1), xn = U(0), Jt = U(0), zl = () => {
|
|
28400
|
-
const e = T(() => Po.value ? [...
|
|
28401
|
-
...
|
|
28402
|
-
...
|
|
28397
|
+
const e = T(() => Po.value ? [...Et.selectionGrid, Et.actionRow].filter((c) => c.length) : Mu.value ? [
|
|
28398
|
+
...Et.timePicker[0],
|
|
28399
|
+
...Et.timePicker[1],
|
|
28403
28400
|
_u.value ? [] : [Cu.value],
|
|
28404
|
-
|
|
28405
|
-
].filter((c) => c.length) : Tu.value ? [...
|
|
28401
|
+
Et.actionRow
|
|
28402
|
+
].filter((c) => c.length) : Tu.value ? [...Et.monthPicker, Et.actionRow] : [Et.monthYear, ...Et.calendar, Et.time, Et.actionRow].filter((c) => c.length)), t = (c) => {
|
|
28406
28403
|
xn.value = c ? xn.value + 1 : xn.value - 1;
|
|
28407
28404
|
let v = null;
|
|
28408
28405
|
e.value[Jt.value] && (v = e.value[Jt.value][xn.value]), !v && e.value[Jt.value + (c ? 1 : -1)] ? (Jt.value = Jt.value + (c ? 1 : -1), xn.value = c ? 0 : e.value[Jt.value].length - 1) : v || (xn.value = c ? xn.value - 1 : xn.value + 1);
|
|
@@ -28420,9 +28417,9 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28420
28417
|
}, o = () => {
|
|
28421
28418
|
n(!0), a(!0);
|
|
28422
28419
|
}, s = (c, v) => {
|
|
28423
|
-
|
|
28420
|
+
Et[v] = c;
|
|
28424
28421
|
}, d = (c, v) => {
|
|
28425
|
-
|
|
28422
|
+
Et[v] = c;
|
|
28426
28423
|
}, f = () => {
|
|
28427
28424
|
xn.value = 0, Jt.value = 0;
|
|
28428
28425
|
};
|
|
@@ -28433,25 +28430,25 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28433
28430
|
Cu.value = c;
|
|
28434
28431
|
},
|
|
28435
28432
|
setSelectionGrid: (c) => {
|
|
28436
|
-
Po.value = c, f(), c || (
|
|
28433
|
+
Po.value = c, f(), c || (Et.selectionGrid = []);
|
|
28437
28434
|
},
|
|
28438
28435
|
setTimePicker: (c, v = !1) => {
|
|
28439
|
-
Mu.value = c, _u.value = v, f(), c || (
|
|
28436
|
+
Mu.value = c, _u.value = v, f(), c || (Et.timePicker[0] = [], Et.timePicker[1] = []);
|
|
28440
28437
|
},
|
|
28441
28438
|
setTimePickerElements: (c, v = 0) => {
|
|
28442
|
-
|
|
28439
|
+
Et.timePicker[v] = c;
|
|
28443
28440
|
},
|
|
28444
28441
|
arrowRight: l,
|
|
28445
28442
|
arrowLeft: r,
|
|
28446
28443
|
arrowUp: i,
|
|
28447
28444
|
arrowDown: o,
|
|
28448
28445
|
clearArrowNav: () => {
|
|
28449
|
-
|
|
28446
|
+
Et.monthYear = [], Et.calendar = [], Et.time = [], Et.actionRow = [], Et.selectionGrid = [], Et.timePicker[0] = [], Et.timePicker[1] = [], Po.value = !1, Mu.value = !1, _u.value = !1, Tu.value = !1, f(), Cu.value = null;
|
|
28450
28447
|
},
|
|
28451
28448
|
setMonthPicker: (c) => {
|
|
28452
28449
|
Tu.value = c, f();
|
|
28453
28450
|
},
|
|
28454
|
-
refSets:
|
|
28451
|
+
refSets: Et
|
|
28455
28452
|
// exposed for testing
|
|
28456
28453
|
};
|
|
28457
28454
|
}, wv = (e) => ({
|
|
@@ -33592,7 +33589,7 @@ function BL() {
|
|
|
33592
33589
|
routeName: ""
|
|
33593
33590
|
}, l.push(f));
|
|
33594
33591
|
let c = [];
|
|
33595
|
-
d.subFilters != null && (Array.isArray(d.subFilters) ? c = d.subFilters : c = [d.subFilters]), (s == null ? void 0 : s.subFilters) != null && !
|
|
33592
|
+
d.subFilters != null && (Array.isArray(d.subFilters) ? c = d.subFilters : c = [d.subFilters]), (s == null ? void 0 : s.subFilters) != null && !Vt(c) && (c = Array.isArray(s.subFilters) ? s.subFilters : [s.subFilters]), (xl.currentView.value == null || c == null || c.some((m) => m == "All" || xl.currentView.value == m)) && ((v = f.items) == null || v.push({
|
|
33596
33593
|
displayName: (d == null ? void 0 : d.displayName) ?? t.findDisplay(s ?? void 0),
|
|
33597
33594
|
icon: (d == null ? void 0 : d.icon) ?? t.findIcon(s ?? void 0),
|
|
33598
33595
|
permissions: (d == null ? void 0 : d.permissions) ?? (s == null ? void 0 : s.permissions) ?? [],
|
|
@@ -35640,7 +35637,7 @@ const KL = /* @__PURE__ */ nt({
|
|
|
35640
35637
|
return n.isArray ? n.modelValue : (m = n.modelValue) == null ? void 0 : m.split(",");
|
|
35641
35638
|
},
|
|
35642
35639
|
set(m) {
|
|
35643
|
-
n.isArray ? a("update:modelValue", m) : a("update:modelValue",
|
|
35640
|
+
n.isArray ? a("update:modelValue", m) : a("update:modelValue", Vt(m) ? m.toString() : null);
|
|
35644
35641
|
}
|
|
35645
35642
|
}), r = Ye("isEditing", () => U(!1), !0), i = T(() => n.isEditing ?? r.value), o = Ye("isMobile", () => U(!1), !0), s = Ye("fieldVariant", "underlined"), d = Ye("fieldEditVariant", "outlined"), f = T(() => n.isMobile ?? o.value ? !1 : n.lg), c = T(() => n.isMobile ?? o.value ? !1 : n.md), v = T(() => n.isMobile ?? o.value ? !1 : n.sm);
|
|
35646
35643
|
return (m, h) => (B(), le(rt, {
|
|
@@ -38714,7 +38711,7 @@ const j3 = /* @__PURE__ */ Ud(Y3, [["render", U3]]), q3 = /* @__PURE__ */ nt({
|
|
|
38714
38711
|
group: ""
|
|
38715
38712
|
}, {
|
|
38716
38713
|
default: z(() => [
|
|
38717
|
-
(x.alwaysOpen || l.value) && A(
|
|
38714
|
+
(x.alwaysOpen || l.value) && A(Vt)(x.searchProps) ? (B(), le(ua, {
|
|
38718
38715
|
"onClick:prependInner": k[2] || (k[2] = (w) => A(s).searchString.value = void 0),
|
|
38719
38716
|
"hide-details": "",
|
|
38720
38717
|
key: "1",
|
|
@@ -39171,7 +39168,7 @@ export {
|
|
|
39171
39168
|
qV as guardRoute,
|
|
39172
39169
|
zw as hasSearch,
|
|
39173
39170
|
xV as isArrayOfLength,
|
|
39174
|
-
|
|
39171
|
+
Vt as isLengthyArray,
|
|
39175
39172
|
Ew as isMinDate,
|
|
39176
39173
|
Zc as isNullOrEmpty,
|
|
39177
39174
|
Pw as isSameDownToHour,
|