bt-core-app 1.4.334 → 1.4.336
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 +69 -66
- package/dist/index.d.ts +6 -0
- 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 Lt(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 Lt(n) ? [...n.reduce((a, l) => {
|
|
5571
5571
|
a.push(l);
|
|
5572
5572
|
const r = og(l, t);
|
|
5573
|
-
return
|
|
5573
|
+
return Lt(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 || !_ || !Lt(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) || !Lt(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 (Lt(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, " "), Lt(m.value) ? x = dn(x, (k = m.value) == null ? void 0 : k.toString(), " ") : x = dn(x, "*", " "), Lt(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 (Lt(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 (Lt(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 (!Lt(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), Lt(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"), Et = 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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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(Et, {
|
|
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 Lt(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), Lt(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), Lt(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 || Lt(a.searchProps))), x = T(() => a.variant == "inline" && (a.canSearch || Lt(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)
|
|
@@ -24399,14 +24399,17 @@ const FT = {
|
|
|
24399
24399
|
if (a.selectSingle && !Array.isArray(I) && (I = [I]), a.returnIndex && a.returnCSV)
|
|
24400
24400
|
return I.map((R) => Number.parseInt(R));
|
|
24401
24401
|
let P = [];
|
|
24402
|
-
return a.
|
|
24402
|
+
return a.itemValue != null && Lt(I) && c.filteredItems.value.forEach((R) => {
|
|
24403
|
+
const L = i(R, a.itemValue);
|
|
24404
|
+
I.some((E) => E == L) && P.push(R);
|
|
24405
|
+
}), a.selectSingle ? Lt(P) ? [P[0]] : [] : P;
|
|
24403
24406
|
},
|
|
24404
24407
|
set(M) {
|
|
24405
24408
|
if (M == null)
|
|
24406
24409
|
n("update:selected", M), p.value = [];
|
|
24407
24410
|
else {
|
|
24408
24411
|
let I = M;
|
|
24409
|
-
a.returnIndex ? I = M.map((P) => c.filteredItems.value.indexOf((R) => R === P)) : a.itemValue != null && (I = M.map((P) => i(
|
|
24412
|
+
a.returnIndex ? I = M.map((P) => c.filteredItems.value.indexOf((R) => R === P)) : a.itemValue != null && (I = M.map((P) => i(P, a.itemValue))), a.selectSingle ? (I = Lt(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;
|
|
24410
24413
|
}
|
|
24411
24414
|
}
|
|
24412
24415
|
});
|
|
@@ -24574,13 +24577,13 @@ const FT = {
|
|
|
24574
24577
|
"hide-on-leave": ""
|
|
24575
24578
|
}, {
|
|
24576
24579
|
default: z(() => [
|
|
24577
|
-
(M.canSearch !== !1 || A(
|
|
24580
|
+
(M.canSearch !== !1 || A(Lt)(M.searchProps)) && !A(c).showSearch.value ? (B(), le(Be, {
|
|
24578
24581
|
icon: "$magnify",
|
|
24579
24582
|
key: "11",
|
|
24580
24583
|
size: M.size,
|
|
24581
24584
|
onClick: A(c).toggleSearch
|
|
24582
24585
|
}, null, 8, ["size", "onClick"])) : Q("", !0),
|
|
24583
|
-
(M.canSearch !== !1 || A(
|
|
24586
|
+
(M.canSearch !== !1 || A(Lt)(M.searchProps)) && A(c).showSearch.value ? (B(), le(ua, {
|
|
24584
24587
|
"onClick:appendInner": A(c).refresh,
|
|
24585
24588
|
"onClick:prependInner": A(c).toggleSearch,
|
|
24586
24589
|
onKeyup: Fo(A(c).refresh, ["native", "enter"]),
|
|
@@ -24609,7 +24612,7 @@ const FT = {
|
|
|
24609
24612
|
allItems: A(c).asyncItems.value,
|
|
24610
24613
|
size: M.size
|
|
24611
24614
|
}, void 0, !0),
|
|
24612
|
-
!g.value && A(
|
|
24615
|
+
!g.value && A(Lt)(A(c).filters.value) ? (B(), le(_n, {
|
|
24613
24616
|
key: 2,
|
|
24614
24617
|
"close-on-content-click": !1,
|
|
24615
24618
|
density: M.density,
|
|
@@ -24724,7 +24727,7 @@ const FT = {
|
|
|
24724
24727
|
_: 1
|
|
24725
24728
|
})
|
|
24726
24729
|
])) : Q("", !0),
|
|
24727
|
-
A(
|
|
24730
|
+
A(Lt)(A(c).asyncItems.value) ? M.selectSingle || M.selectMulti || M.showListOnly === !0 || E ? (B(), le(en, {
|
|
24728
24731
|
key: 2,
|
|
24729
24732
|
"active-class": M.activeClass,
|
|
24730
24733
|
class: "pt-0 overflow-y-auto",
|
|
@@ -25014,7 +25017,7 @@ const FT = {
|
|
|
25014
25017
|
for (const [a, l] of t)
|
|
25015
25018
|
n[a] = l;
|
|
25016
25019
|
return n;
|
|
25017
|
-
}, yp = /* @__PURE__ */ Ud(WT, [["__scopeId", "data-v-
|
|
25020
|
+
}, yp = /* @__PURE__ */ Ud(WT, [["__scopeId", "data-v-02a3b7bb"]]);
|
|
25018
25021
|
function Ze(e) {
|
|
25019
25022
|
const t = Object.prototype.toString.call(e);
|
|
25020
25023
|
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);
|
|
@@ -28382,7 +28385,7 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28382
28385
|
setMenuFocused: e,
|
|
28383
28386
|
setShiftKey: t
|
|
28384
28387
|
};
|
|
28385
|
-
},
|
|
28388
|
+
}, Vt = Jn({
|
|
28386
28389
|
monthYear: [],
|
|
28387
28390
|
calendar: [],
|
|
28388
28391
|
time: [],
|
|
@@ -28394,12 +28397,12 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28394
28397
|
},
|
|
28395
28398
|
monthPicker: []
|
|
28396
28399
|
}), Cu = U(null), Po = U(!1), Mu = U(!1), Tu = U(!1), _u = U(!1), xn = U(0), Jt = U(0), zl = () => {
|
|
28397
|
-
const e = T(() => Po.value ? [...
|
|
28398
|
-
...
|
|
28399
|
-
...
|
|
28400
|
+
const e = T(() => Po.value ? [...Vt.selectionGrid, Vt.actionRow].filter((c) => c.length) : Mu.value ? [
|
|
28401
|
+
...Vt.timePicker[0],
|
|
28402
|
+
...Vt.timePicker[1],
|
|
28400
28403
|
_u.value ? [] : [Cu.value],
|
|
28401
|
-
|
|
28402
|
-
].filter((c) => c.length) : Tu.value ? [...
|
|
28404
|
+
Vt.actionRow
|
|
28405
|
+
].filter((c) => c.length) : Tu.value ? [...Vt.monthPicker, Vt.actionRow] : [Vt.monthYear, ...Vt.calendar, Vt.time, Vt.actionRow].filter((c) => c.length)), t = (c) => {
|
|
28403
28406
|
xn.value = c ? xn.value + 1 : xn.value - 1;
|
|
28404
28407
|
let v = null;
|
|
28405
28408
|
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);
|
|
@@ -28417,9 +28420,9 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28417
28420
|
}, o = () => {
|
|
28418
28421
|
n(!0), a(!0);
|
|
28419
28422
|
}, s = (c, v) => {
|
|
28420
|
-
|
|
28423
|
+
Vt[v] = c;
|
|
28421
28424
|
}, d = (c, v) => {
|
|
28422
|
-
|
|
28425
|
+
Vt[v] = c;
|
|
28423
28426
|
}, f = () => {
|
|
28424
28427
|
xn.value = 0, Jt.value = 0;
|
|
28425
28428
|
};
|
|
@@ -28430,25 +28433,25 @@ const rD = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
28430
28433
|
Cu.value = c;
|
|
28431
28434
|
},
|
|
28432
28435
|
setSelectionGrid: (c) => {
|
|
28433
|
-
Po.value = c, f(), c || (
|
|
28436
|
+
Po.value = c, f(), c || (Vt.selectionGrid = []);
|
|
28434
28437
|
},
|
|
28435
28438
|
setTimePicker: (c, v = !1) => {
|
|
28436
|
-
Mu.value = c, _u.value = v, f(), c || (
|
|
28439
|
+
Mu.value = c, _u.value = v, f(), c || (Vt.timePicker[0] = [], Vt.timePicker[1] = []);
|
|
28437
28440
|
},
|
|
28438
28441
|
setTimePickerElements: (c, v = 0) => {
|
|
28439
|
-
|
|
28442
|
+
Vt.timePicker[v] = c;
|
|
28440
28443
|
},
|
|
28441
28444
|
arrowRight: l,
|
|
28442
28445
|
arrowLeft: r,
|
|
28443
28446
|
arrowUp: i,
|
|
28444
28447
|
arrowDown: o,
|
|
28445
28448
|
clearArrowNav: () => {
|
|
28446
|
-
|
|
28449
|
+
Vt.monthYear = [], Vt.calendar = [], Vt.time = [], Vt.actionRow = [], Vt.selectionGrid = [], Vt.timePicker[0] = [], Vt.timePicker[1] = [], Po.value = !1, Mu.value = !1, _u.value = !1, Tu.value = !1, f(), Cu.value = null;
|
|
28447
28450
|
},
|
|
28448
28451
|
setMonthPicker: (c) => {
|
|
28449
28452
|
Tu.value = c, f();
|
|
28450
28453
|
},
|
|
28451
|
-
refSets:
|
|
28454
|
+
refSets: Vt
|
|
28452
28455
|
// exposed for testing
|
|
28453
28456
|
};
|
|
28454
28457
|
}, wv = (e) => ({
|
|
@@ -33589,7 +33592,7 @@ function BL() {
|
|
|
33589
33592
|
routeName: ""
|
|
33590
33593
|
}, l.push(f));
|
|
33591
33594
|
let c = [];
|
|
33592
|
-
d.subFilters != null && (Array.isArray(d.subFilters) ? c = d.subFilters : c = [d.subFilters]), (s == null ? void 0 : s.subFilters) != null && !
|
|
33595
|
+
d.subFilters != null && (Array.isArray(d.subFilters) ? c = d.subFilters : c = [d.subFilters]), (s == null ? void 0 : s.subFilters) != null && !Lt(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({
|
|
33593
33596
|
displayName: (d == null ? void 0 : d.displayName) ?? t.findDisplay(s ?? void 0),
|
|
33594
33597
|
icon: (d == null ? void 0 : d.icon) ?? t.findIcon(s ?? void 0),
|
|
33595
33598
|
permissions: (d == null ? void 0 : d.permissions) ?? (s == null ? void 0 : s.permissions) ?? [],
|
|
@@ -35637,7 +35640,7 @@ const KL = /* @__PURE__ */ nt({
|
|
|
35637
35640
|
return n.isArray ? n.modelValue : (m = n.modelValue) == null ? void 0 : m.split(",");
|
|
35638
35641
|
},
|
|
35639
35642
|
set(m) {
|
|
35640
|
-
n.isArray ? a("update:modelValue", m) : a("update:modelValue",
|
|
35643
|
+
n.isArray ? a("update:modelValue", m) : a("update:modelValue", Lt(m) ? m.toString() : null);
|
|
35641
35644
|
}
|
|
35642
35645
|
}), 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);
|
|
35643
35646
|
return (m, h) => (B(), le(rt, {
|
|
@@ -38711,7 +38714,7 @@ const j3 = /* @__PURE__ */ Ud(Y3, [["render", U3]]), q3 = /* @__PURE__ */ nt({
|
|
|
38711
38714
|
group: ""
|
|
38712
38715
|
}, {
|
|
38713
38716
|
default: z(() => [
|
|
38714
|
-
(x.alwaysOpen || l.value) && A(
|
|
38717
|
+
(x.alwaysOpen || l.value) && A(Lt)(x.searchProps) ? (B(), le(ua, {
|
|
38715
38718
|
"onClick:prependInner": k[2] || (k[2] = (w) => A(s).searchString.value = void 0),
|
|
38716
38719
|
"hide-details": "",
|
|
38717
38720
|
key: "1",
|
|
@@ -39168,7 +39171,7 @@ export {
|
|
|
39168
39171
|
qV as guardRoute,
|
|
39169
39172
|
zw as hasSearch,
|
|
39170
39173
|
xV as isArrayOfLength,
|
|
39171
|
-
|
|
39174
|
+
Lt as isLengthyArray,
|
|
39172
39175
|
Ew as isMinDate,
|
|
39173
39176
|
Zc as isNullOrEmpty,
|
|
39174
39177
|
Pw as isSameDownToHour,
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,12 @@ declare interface ApiActionOptions extends StorePathOptions, DoActionOptions {
|
|
|
43
43
|
api?: BTApi;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export declare interface ApiError {
|
|
47
|
+
name: string;
|
|
48
|
+
code: 401 | 403;
|
|
49
|
+
message: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
export declare function appendUrl(originalVal?: string, additionalVal?: string, splittingChar?: string): string;
|
|
47
53
|
|
|
48
54
|
export declare interface AuthItem {
|