bt-core-app 2.2.31 → 2.2.32
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.
|
@@ -185,6 +185,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
185
185
|
};
|
|
186
186
|
}) => any>> & Partial<Record<string, (_: {
|
|
187
187
|
item: any;
|
|
188
|
+
allItems: any;
|
|
188
189
|
options: {
|
|
189
190
|
align?: "end" | "start" | "center" | undefined;
|
|
190
191
|
bool?: number | undefined;
|
|
@@ -1963,6 +1964,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
1963
1964
|
deleteItem: () => Promise<void>;
|
|
1964
1965
|
item: any;
|
|
1965
1966
|
index: number;
|
|
1967
|
+
allItems: any;
|
|
1966
1968
|
size: string | number;
|
|
1967
1969
|
select: () => void;
|
|
1968
1970
|
ui: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BT-Blade-Items.vue2.mjs";
|
|
2
2
|
import "./BT-Blade-Items.vue3.mjs";
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9b0854b6"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as be, ref as W, computed as k, watch as Ce, onMounted as Be, resolveComponent as ae, openBlock as i, createBlock as d, unref as e, withCtx as o, renderSlot as
|
|
1
|
+
import { defineComponent as be, ref as W, computed as k, watch as Ce, onMounted as Be, resolveComponent as ae, openBlock as i, createBlock as d, unref as e, withCtx as o, renderSlot as p, createElementBlock as y, createVNode as u, withKeys as ie, withModifiers as m, createCommentVNode as c, normalizeStyle as H, mergeProps as L, Fragment as $, renderList as C, createTextVNode as O, toDisplayString as X, createElementVNode as R, normalizeClass as T, createSlots as Ie, nextTick as Ve } from "vue";
|
|
2
2
|
import { isLengthyArray as B, isNullOrEmpty as se, capitalizeWords as oe } from "../composables/helpers.mjs";
|
|
3
3
|
import { useAuth as Ae } from "../composables/auth.mjs";
|
|
4
4
|
import { useList as we } from "../composables/list.mjs";
|
|
@@ -19,7 +19,7 @@ import { VBtn as h } from "../bt-core/core/node_modules/vuetify/lib/components/V
|
|
|
19
19
|
import { VMenu as G } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
20
20
|
import { VList as U } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
|
|
21
21
|
import { VSpacer as ce } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
22
|
-
import { VIcon as
|
|
22
|
+
import { VIcon as ye } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
23
23
|
const Re = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "d-flex"
|
|
@@ -167,8 +167,8 @@ const Re = {
|
|
|
167
167
|
variant: { default: "page" }
|
|
168
168
|
},
|
|
169
169
|
emits: ["update:selected", "change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
|
|
170
|
-
setup(
|
|
171
|
-
const K = ve, s =
|
|
170
|
+
setup(pe, { emit: ve }) {
|
|
171
|
+
const K = ve, s = pe, J = W(null), Z = W(null), { getValue: x } = Pe(), { xs: he } = Ne(), D = Fe(), P = Te(s.preset), { findDisplay: me } = Ee(), E = Ae(), _ = He(), l = we(s, K, {
|
|
172
172
|
hideActions: !0,
|
|
173
173
|
onError: (t) => {
|
|
174
174
|
if (t.code == 401)
|
|
@@ -253,7 +253,7 @@ const Re = {
|
|
|
253
253
|
variant: t.variant
|
|
254
254
|
}, {
|
|
255
255
|
"blade-toolbar": o(() => [
|
|
256
|
-
|
|
256
|
+
p(t.$slots, "blade-toolbar", {
|
|
257
257
|
refresh: e(l).refresh,
|
|
258
258
|
searchString: e(l).searchString,
|
|
259
259
|
showSearch: e(l).showSearch,
|
|
@@ -262,11 +262,11 @@ const Re = {
|
|
|
262
262
|
}, void 0, !0)
|
|
263
263
|
]),
|
|
264
264
|
"blade-toolbar-left": o(() => [
|
|
265
|
-
|
|
265
|
+
p(t.$slots, "toolbar-left", { ui: e(l) }, void 0, !0)
|
|
266
266
|
]),
|
|
267
267
|
"blade-title-left": o(() => [
|
|
268
|
-
q.value ? (i(),
|
|
269
|
-
|
|
268
|
+
q.value ? (i(), y("div", Re, [
|
|
269
|
+
p(t.$slots, "search-box", { ui: e(l) }, () => [
|
|
270
270
|
u(e(h), {
|
|
271
271
|
icon: e(l).showSearch.value ? "$close" : "$magnify",
|
|
272
272
|
size: t.size,
|
|
@@ -301,7 +301,7 @@ const Re = {
|
|
|
301
301
|
])) : c("", !0)
|
|
302
302
|
]),
|
|
303
303
|
"blade-toolbar-right": o(() => [
|
|
304
|
-
|
|
304
|
+
p(t.$slots, "toolbar-right", {
|
|
305
305
|
style: H(F.value),
|
|
306
306
|
ui: e(l)
|
|
307
307
|
}, void 0, !0),
|
|
@@ -324,7 +324,7 @@ const Re = {
|
|
|
324
324
|
}, null, 8, ["size", "disabled"])) : c("", !0)
|
|
325
325
|
]),
|
|
326
326
|
subtoolbar: o(() => [
|
|
327
|
-
|
|
327
|
+
p(t.$slots, "subtoolbar", {}, () => [
|
|
328
328
|
t.hideSubtoolbarSettings ? c("", !0) : (i(), d(e(G), {
|
|
329
329
|
key: 0,
|
|
330
330
|
"close-on-content-click": !1,
|
|
@@ -357,7 +357,7 @@ const Re = {
|
|
|
357
357
|
default: o(() => [
|
|
358
358
|
u(e(U), null, {
|
|
359
359
|
default: o(() => [
|
|
360
|
-
(i(!0),
|
|
360
|
+
(i(!0), y($, null, C(e(l).headerOptions.value, (r, S) => (i(), d(e(w), {
|
|
361
361
|
key: S,
|
|
362
362
|
"prepend-icon": r.hide === !0 ? "mdi" : "$check",
|
|
363
363
|
subtitle: r.title,
|
|
@@ -390,7 +390,7 @@ const Re = {
|
|
|
390
390
|
subtitle: "Export To CSV",
|
|
391
391
|
onClick: e(l).exportToCSV
|
|
392
392
|
}, null, 8, ["density", "onClick"])) : c("", !0),
|
|
393
|
-
|
|
393
|
+
p(t.$slots, "settings", {
|
|
394
394
|
items: e(l).filteredItems.value,
|
|
395
395
|
allItems: e(l).asyncItems.value,
|
|
396
396
|
size: t.size,
|
|
@@ -402,7 +402,7 @@ const Re = {
|
|
|
402
402
|
]),
|
|
403
403
|
_: 3
|
|
404
404
|
}, 8, ["density"])),
|
|
405
|
-
|
|
405
|
+
p(t.$slots, "search-box", { ui: e(l) }, () => [
|
|
406
406
|
u(e(Ue), { "hide-on-leave": "" }, {
|
|
407
407
|
default: o(() => [
|
|
408
408
|
(t.canSearch !== !1 || e(B)(t.searchProps)) && !e(l).showSearch.value ? (i(), d(e(h), {
|
|
@@ -431,13 +431,13 @@ const Re = {
|
|
|
431
431
|
_: 1
|
|
432
432
|
})
|
|
433
433
|
], !0),
|
|
434
|
-
|
|
434
|
+
p(t.$slots, "actions", {
|
|
435
435
|
ui: e(l),
|
|
436
436
|
allItems: e(l).asyncItems.value,
|
|
437
437
|
size: t.size
|
|
438
438
|
}, void 0, !0),
|
|
439
439
|
u(e(ce)),
|
|
440
|
-
|
|
440
|
+
p(t.$slots, "actions-right", {
|
|
441
441
|
ui: e(l),
|
|
442
442
|
allItems: e(l).asyncItems.value,
|
|
443
443
|
size: t.size
|
|
@@ -464,7 +464,7 @@ const Re = {
|
|
|
464
464
|
"onUpdate:selected": n[10] || (n[10] = (r) => e(l).selectedFilters.value = r)
|
|
465
465
|
}, {
|
|
466
466
|
default: o(() => [
|
|
467
|
-
(i(!0),
|
|
467
|
+
(i(!0), y($, null, C(e(l).filters.value, (r, S) => (i(), d(e(w), {
|
|
468
468
|
key: S,
|
|
469
469
|
subtitle: r,
|
|
470
470
|
value: S
|
|
@@ -472,7 +472,7 @@ const Re = {
|
|
|
472
472
|
prepend: o(({ isActive: a }) => [
|
|
473
473
|
u(e(N), null, {
|
|
474
474
|
default: o(() => [
|
|
475
|
-
u(e(
|
|
475
|
+
u(e(ye), { size: t.size }, {
|
|
476
476
|
default: o(() => [
|
|
477
477
|
O(X(a ? "$check" : ""), 1)
|
|
478
478
|
]),
|
|
@@ -493,7 +493,7 @@ const Re = {
|
|
|
493
493
|
size: t.size
|
|
494
494
|
}, {
|
|
495
495
|
default: o(() => [
|
|
496
|
-
u(e(
|
|
496
|
+
u(e(ye), {
|
|
497
497
|
start: "",
|
|
498
498
|
size: t.size
|
|
499
499
|
}, {
|
|
@@ -523,7 +523,7 @@ const Re = {
|
|
|
523
523
|
activator: o(({ props: r }) => [
|
|
524
524
|
u(e(j), { "hide-on-leave": "" }, {
|
|
525
525
|
default: o(() => [
|
|
526
|
-
e(l).currentExternalParty.value != null ? (i(),
|
|
526
|
+
e(l).currentExternalParty.value != null ? (i(), y("div", Ge, [
|
|
527
527
|
u(e(h), {
|
|
528
528
|
icon: "$close",
|
|
529
529
|
onClick: n[11] || (n[11] = m((S) => e(l).selectExternalParty(void 0), ["stop"]))
|
|
@@ -547,7 +547,7 @@ const Re = {
|
|
|
547
547
|
"min-width": "150"
|
|
548
548
|
}, {
|
|
549
549
|
default: o(() => [
|
|
550
|
-
(i(!0),
|
|
550
|
+
(i(!0), y($, null, C(e(l).externalParties.value, (r, S) => (i(), d(e(w), {
|
|
551
551
|
onClick: m((a) => e(l).selectExternalParty(r), ["stop"]),
|
|
552
552
|
key: (r.party ?? "") + S,
|
|
553
553
|
title: e(oe)(r.party)
|
|
@@ -561,10 +561,10 @@ const Re = {
|
|
|
561
561
|
], !0)
|
|
562
562
|
]),
|
|
563
563
|
content: o(({ bladeData: r, isMobile: S }) => [
|
|
564
|
-
|
|
564
|
+
p(t.$slots, "d", {
|
|
565
565
|
items: e(l).asyncItems
|
|
566
566
|
}, void 0, !0),
|
|
567
|
-
|
|
567
|
+
p(t.$slots, "body", {
|
|
568
568
|
bladeData: r,
|
|
569
569
|
items: e(l).filteredItems.value,
|
|
570
570
|
allItems: e(l).asyncItems.value,
|
|
@@ -576,7 +576,7 @@ const Re = {
|
|
|
576
576
|
toggleSearch: e(l).toggleSearch,
|
|
577
577
|
ui: e(l)
|
|
578
578
|
}, () => [
|
|
579
|
-
|
|
579
|
+
p(t.$slots, "top", {
|
|
580
580
|
refresh: e(l).refresh,
|
|
581
581
|
searchString: e(l).searchString,
|
|
582
582
|
showSearch: e(l).showSearch,
|
|
@@ -607,14 +607,15 @@ const Re = {
|
|
|
607
607
|
"hide-on-leave": ""
|
|
608
608
|
}, {
|
|
609
609
|
default: o(() => [
|
|
610
|
-
(i(!0),
|
|
610
|
+
(i(!0), y($, null, C(e(l).filteredItems.value, (a, I) => (i(), y($, {
|
|
611
611
|
key: `${a.id}${I}-table-list-item`
|
|
612
612
|
}, [
|
|
613
|
-
|
|
613
|
+
p(t.$slots, "listItem", {
|
|
614
614
|
bladeData: r,
|
|
615
615
|
deleteItem: () => e(l).deleteItem(a),
|
|
616
616
|
item: a,
|
|
617
617
|
index: I,
|
|
618
|
+
allItems: e(l).asyncItems.value,
|
|
618
619
|
size: t.size,
|
|
619
620
|
select: () => e(l).selectItem(a, t.variant),
|
|
620
621
|
ui: e(l)
|
|
@@ -628,13 +629,13 @@ const Re = {
|
|
|
628
629
|
onMouseover: (v) => t.$emit("mouse-over-item", a)
|
|
629
630
|
}, Ie({
|
|
630
631
|
title: o(() => [
|
|
631
|
-
|
|
632
|
+
p(t.$slots, "itemTitle", {
|
|
632
633
|
item: a,
|
|
633
634
|
index: I,
|
|
634
635
|
size: t.size
|
|
635
636
|
}, () => [
|
|
636
|
-
(i(!0),
|
|
637
|
-
(i(!0),
|
|
637
|
+
(i(!0), y($, null, C(e(l).titleOptions.value, (v, V) => (i(), y("span", { key: V }, [
|
|
638
|
+
(i(!0), y($, null, C(v.values, (b, A) => p(t.$slots, b.value, {
|
|
638
639
|
key: A,
|
|
639
640
|
item: a,
|
|
640
641
|
class: "mr-1"
|
|
@@ -648,13 +649,13 @@ const Re = {
|
|
|
648
649
|
], !0)
|
|
649
650
|
]),
|
|
650
651
|
subtitle: o(() => [
|
|
651
|
-
|
|
652
|
+
p(t.$slots, "itemSubtitle", {
|
|
652
653
|
item: a,
|
|
653
654
|
index: I,
|
|
654
655
|
size: t.size
|
|
655
656
|
}, () => [
|
|
656
|
-
(i(!0),
|
|
657
|
-
(i(!0),
|
|
657
|
+
(i(!0), y($, null, C(e(l).subtitleOptions.value, (v, V) => (i(), y("span", { key: V }, [
|
|
658
|
+
(i(!0), y($, null, C(v.values, (b, A) => p(t.$slots, b.value, {
|
|
658
659
|
key: A,
|
|
659
660
|
item: a,
|
|
660
661
|
class: "mr-1"
|
|
@@ -668,7 +669,7 @@ const Re = {
|
|
|
668
669
|
], !0)
|
|
669
670
|
]),
|
|
670
671
|
prepend: o(() => [
|
|
671
|
-
|
|
672
|
+
p(t.$slots, "itemPrepend", {
|
|
672
673
|
item: a,
|
|
673
674
|
index: I,
|
|
674
675
|
size: t.size
|
|
@@ -684,7 +685,7 @@ const Re = {
|
|
|
684
685
|
class: T(ee.value ? "actionButtons" : null)
|
|
685
686
|
}, {
|
|
686
687
|
default: o(() => [
|
|
687
|
-
|
|
688
|
+
p(t.$slots, "itemActions", {
|
|
688
689
|
item: a,
|
|
689
690
|
index: I,
|
|
690
691
|
items: e(l).asyncItems.value,
|
|
@@ -695,12 +696,12 @@ const Re = {
|
|
|
695
696
|
"hide-on-leave": ""
|
|
696
697
|
}, {
|
|
697
698
|
default: o(() => [
|
|
698
|
-
!Y.value && e(l).isIntegratable.value(a) ? (i(),
|
|
699
|
+
!Y.value && e(l).isIntegratable.value(a) ? (i(), y("div", Ke, [
|
|
699
700
|
u(e(j), { "hide-on-leave": "" }, {
|
|
700
701
|
default: o(() => {
|
|
701
702
|
var v, V, b, A;
|
|
702
703
|
return [
|
|
703
|
-
e(l).isIntegrated.value(a) ? (i(),
|
|
704
|
+
e(l).isIntegrated.value(a) ? (i(), y("div", Ye, [
|
|
704
705
|
u(e(h), {
|
|
705
706
|
class: "text-success",
|
|
706
707
|
icon: "$cloud-check",
|
|
@@ -776,7 +777,7 @@ const Re = {
|
|
|
776
777
|
]),
|
|
777
778
|
_: 2
|
|
778
779
|
}, 1024),
|
|
779
|
-
|
|
780
|
+
p(t.$slots, "bottomItem", {}, void 0, !0)
|
|
780
781
|
]),
|
|
781
782
|
_: 2
|
|
782
783
|
}, 1032, ["active-class", "class", "bg-color", "density", "lines", "mandatory", "selectable", "select-strategy", "style", "selected"])) : t.showTableOnly === !0 || !S ? (i(), d(e(Le), {
|
|
@@ -790,15 +791,15 @@ const Re = {
|
|
|
790
791
|
default: o(() => [
|
|
791
792
|
R("thead", null, [
|
|
792
793
|
R("tr", null, [
|
|
793
|
-
(i(!0),
|
|
794
|
+
(i(!0), y($, null, C(e(l).tableHeaders.value, (a) => (i(), y("th", {
|
|
794
795
|
key: a.value,
|
|
795
796
|
class: T(`d-none d-${a.showSize ?? "sm"}-table-cell ${a.align == "end" ? "text-right" : void 0}`)
|
|
796
797
|
}, [
|
|
797
|
-
|
|
798
|
+
p(t.$slots, `${a.value}-header`, { options: a }, () => [
|
|
798
799
|
O(X(a.title), 1)
|
|
799
800
|
], !0)
|
|
800
801
|
], 2))), 128)),
|
|
801
|
-
t.hideActions ? c("", !0) : (i(),
|
|
802
|
+
t.hideActions ? c("", !0) : (i(), y("th", qe, " Actions "))
|
|
802
803
|
])
|
|
803
804
|
]),
|
|
804
805
|
R("tbody", null, [
|
|
@@ -807,16 +808,17 @@ const Re = {
|
|
|
807
808
|
"hide-on-leave": ""
|
|
808
809
|
}, {
|
|
809
810
|
default: o(() => [
|
|
810
|
-
(i(!0),
|
|
811
|
+
(i(!0), y($, null, C(e(l).filteredItems.value, (a, I) => (i(), y("tr", {
|
|
811
812
|
key: `${a.id}${I}`,
|
|
812
813
|
onClick: (v) => e(l).selectItem(a, t.variant)
|
|
813
814
|
}, [
|
|
814
|
-
(i(!0),
|
|
815
|
+
(i(!0), y($, null, C(e(l).tableHeaders.value, (v) => (i(), y("td", {
|
|
815
816
|
key: "1" + v.value,
|
|
816
817
|
class: T(`d-none d-${v.showSize ?? "sm"}-table-cell ${v.align == "end" ? "text-right" : void 0}`)
|
|
817
818
|
}, [
|
|
818
|
-
|
|
819
|
+
p(t.$slots, v.value, {
|
|
819
820
|
item: a,
|
|
821
|
+
allItems: e(l).asyncItems.value,
|
|
820
822
|
options: v
|
|
821
823
|
}, () => [
|
|
822
824
|
u(f, {
|
|
@@ -825,7 +827,7 @@ const Re = {
|
|
|
825
827
|
}, null, 8, ["option", "data"])
|
|
826
828
|
], !0)
|
|
827
829
|
], 2))), 128)),
|
|
828
|
-
t.hideActions ? c("", !0) : (i(),
|
|
830
|
+
t.hideActions ? c("", !0) : (i(), y("td", {
|
|
829
831
|
key: "itemActions" + a.id,
|
|
830
832
|
class: "text-right"
|
|
831
833
|
}, [
|
|
@@ -837,7 +839,7 @@ const Re = {
|
|
|
837
839
|
}, {
|
|
838
840
|
default: o(() => [
|
|
839
841
|
u(e(ce)),
|
|
840
|
-
|
|
842
|
+
p(t.$slots, "itemActions", {
|
|
841
843
|
item: a,
|
|
842
844
|
allItems: e(l).asyncItems.value,
|
|
843
845
|
items: e(l).filteredItems.value,
|
|
@@ -845,12 +847,12 @@ const Re = {
|
|
|
845
847
|
density: t.density,
|
|
846
848
|
ui: e(l)
|
|
847
849
|
}, void 0, !0),
|
|
848
|
-
!Y.value && e(l).isIntegratable.value(a) ? (i(),
|
|
850
|
+
!Y.value && e(l).isIntegratable.value(a) ? (i(), y("div", We, [
|
|
849
851
|
u(e(j), { "hide-on-leave": "" }, {
|
|
850
852
|
default: o(() => {
|
|
851
853
|
var v, V, b, A;
|
|
852
854
|
return [
|
|
853
|
-
e(l).isIntegrated.value(a) ? (i(),
|
|
855
|
+
e(l).isIntegrated.value(a) ? (i(), y("div", Xe, [
|
|
854
856
|
u(e(h), {
|
|
855
857
|
class: "text-success",
|
|
856
858
|
icon: "$cloud-check",
|
|
@@ -920,25 +922,25 @@ const Re = {
|
|
|
920
922
|
])
|
|
921
923
|
]),
|
|
922
924
|
_: 3
|
|
923
|
-
}, 8, ["density", "fixed-header", "style"])) : c("", !0) : (i(),
|
|
925
|
+
}, 8, ["density", "fixed-header", "style"])) : c("", !0) : (i(), y("div", {
|
|
924
926
|
key: 0,
|
|
925
927
|
class: T(t.scrollY ? "overflow-y-auto" : ""),
|
|
926
928
|
style: H(F.value)
|
|
927
929
|
}, [
|
|
928
|
-
|
|
930
|
+
p(t.$slots, "notFound", {
|
|
929
931
|
ui: e(l),
|
|
930
932
|
bladeData: r,
|
|
931
933
|
refresh: e(l).refresh,
|
|
932
934
|
size: t.size
|
|
933
935
|
}, void 0, !0)
|
|
934
936
|
], 6)),
|
|
935
|
-
|
|
937
|
+
p(t.$slots, "bottom", {
|
|
936
938
|
size: t.size,
|
|
937
939
|
allItems: e(l).asyncItems.value,
|
|
938
940
|
items: e(l).filteredItems.value
|
|
939
941
|
}, void 0, !0)
|
|
940
942
|
], !0),
|
|
941
|
-
e(se)(t.paginate) ? c("", !0) : (i(),
|
|
943
|
+
e(se)(t.paginate) ? c("", !0) : (i(), y("div", je, [
|
|
942
944
|
u(e(Oe), {
|
|
943
945
|
modelValue: e(l).currentPage.value,
|
|
944
946
|
"onUpdate:modelValue": n[15] || (n[15] = (a) => e(l).currentPage.value = a),
|