bt-core-app 2.2.31 → 2.2.33

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-216fb448"]]);
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 y, createElementBlock as p, 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";
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 pe } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
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(ye, { emit: ve }) {
171
- const K = ve, s = ye, 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, {
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
- y(t.$slots, "blade-toolbar", {
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
- y(t.$slots, "toolbar-left", { ui: e(l) }, void 0, !0)
265
+ p(t.$slots, "toolbar-left", { ui: e(l) }, void 0, !0)
266
266
  ]),
267
267
  "blade-title-left": o(() => [
268
- q.value ? (i(), p("div", Re, [
269
- y(t.$slots, "search-box", { ui: e(l) }, () => [
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
- y(t.$slots, "toolbar-right", {
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
- y(t.$slots, "subtoolbar", {}, () => [
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), p($, null, C(e(l).headerOptions.value, (r, S) => (i(), d(e(w), {
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
- y(t.$slots, "settings", {
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
- y(t.$slots, "search-box", { ui: e(l) }, () => [
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
- y(t.$slots, "actions", {
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
- y(t.$slots, "actions-right", {
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), p($, null, C(e(l).filters.value, (r, S) => (i(), d(e(w), {
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(pe), { size: t.size }, {
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(pe), {
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(), p("div", Ge, [
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), p($, null, C(e(l).externalParties.value, (r, S) => (i(), d(e(w), {
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
- y(t.$slots, "d", {
564
+ p(t.$slots, "d", {
565
565
  items: e(l).asyncItems
566
566
  }, void 0, !0),
567
- y(t.$slots, "body", {
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
- y(t.$slots, "top", {
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), p($, null, C(e(l).filteredItems.value, (a, I) => (i(), p($, {
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
- y(t.$slots, "listItem", {
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
- y(t.$slots, "itemTitle", {
632
+ p(t.$slots, "itemTitle", {
632
633
  item: a,
633
634
  index: I,
634
635
  size: t.size
635
636
  }, () => [
636
- (i(!0), p($, null, C(e(l).titleOptions.value, (v, V) => (i(), p("span", { key: V }, [
637
- (i(!0), p($, null, C(v.values, (b, A) => y(t.$slots, b.value, {
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
- y(t.$slots, "itemSubtitle", {
652
+ p(t.$slots, "itemSubtitle", {
652
653
  item: a,
653
654
  index: I,
654
655
  size: t.size
655
656
  }, () => [
656
- (i(!0), p($, null, C(e(l).subtitleOptions.value, (v, V) => (i(), p("span", { key: V }, [
657
- (i(!0), p($, null, C(v.values, (b, A) => y(t.$slots, b.value, {
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
- y(t.$slots, "itemPrepend", {
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
- y(t.$slots, "itemActions", {
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(), p("div", Ke, [
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(), p("div", Ye, [
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
- y(t.$slots, "bottomItem", {}, void 0, !0)
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), p($, null, C(e(l).tableHeaders.value, (a) => (i(), p("th", {
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
- y(t.$slots, `${a.value}-header`, { options: a }, () => [
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(), p("th", qe, " Actions "))
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), p($, null, C(e(l).filteredItems.value, (a, I) => (i(), p("tr", {
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), p($, null, C(e(l).tableHeaders.value, (v) => (i(), p("td", {
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
- y(t.$slots, v.value, {
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(), p("td", {
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
- y(t.$slots, "itemActions", {
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(), p("div", We, [
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(), p("div", Xe, [
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(), p("div", {
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
- y(t.$slots, "notFound", {
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
- y(t.$slots, "bottom", {
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(), p("div", je, [
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),
@@ -1,63 +1,74 @@
1
- import { defineComponent as C, ref as m, onUnmounted as g, openBlock as o, createBlock as D, unref as u, withCtx as i, createVNode as f } from "vue";
2
- import { registerDialog as V } from "../composables/dialog-items.mjs";
3
- import { VDialog as s } from "../bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs";
4
- import { VCard as T } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
5
- import { VBtn as n } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
6
- const y = /* @__PURE__ */ C({
1
+ import { defineComponent as g, ref as f, onUnmounted as s, openBlock as n, createBlock as d, unref as u, withCtx as m, createVNode as i, createSlots as D, resolveDynamicComponent as V } from "vue";
2
+ import { registerDialog as T } from "../composables/dialog-items.mjs";
3
+ import { VDialog as k } from "../bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs";
4
+ import { VCard as h } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
5
+ import { VBtn as v } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
6
+ const O = /* @__PURE__ */ g({
7
7
  __name: "BT-Dialog-Confirm",
8
- setup(h) {
9
- const a = m(!1), t = m({});
8
+ setup(w) {
9
+ const a = f(!1), l = f({});
10
10
  let r;
11
- const x = V({
11
+ const c = T({
12
12
  dialogType: "confirm",
13
- open: (e, l) => {
14
- e.height ?? (e.height = "65vh"), e.maxWidth ?? (e.maxWidth = "350px"), e.cancelText ?? (e.cancelText = "Cancel"), e.confirmText ?? (e.confirmText = "Confirm"), e.text ?? (e.text = "Are you sure?"), t.value = e, a.value = !0, r = l;
13
+ open: (e, t) => {
14
+ e.height ?? (e.height = "65vh"), e.maxWidth ?? (e.maxWidth = "350px"), e.cancelText ?? (e.cancelText = "Cancel"), e.confirmText ?? (e.confirmText = "Confirm"), e.text ?? (e.text = "Are you sure?"), l.value = e, a.value = !0, r = t;
15
15
  }
16
16
  });
17
- function d() {
17
+ function x() {
18
18
  r != null && r({
19
19
  isCancelled: !1,
20
20
  isConfirmed: !0,
21
- isError: !1
21
+ isError: !1,
22
+ result: l.value.item
22
23
  }), a.value = !1;
23
24
  }
24
- function c() {
25
+ function o() {
25
26
  r != null && r({
26
27
  isCancelled: !0,
27
28
  isConfirmed: !1,
28
29
  isError: !1
29
30
  }), a.value = !1;
30
31
  }
31
- return g(() => {
32
- x();
33
- }), (e, l) => (o(), D(u(s), {
34
- "max-width": t.value.maxWidth,
32
+ return s(() => {
33
+ c();
34
+ }), (e, t) => (n(), d(u(k), {
35
+ "max-width": l.value.maxWidth,
35
36
  modelValue: a.value,
36
- "onUpdate:modelValue": l[2] || (l[2] = (v) => a.value = v)
37
+ "onUpdate:modelValue": t[2] || (t[2] = (C) => a.value = C)
37
38
  }, {
38
- default: i(() => [
39
- f(u(T), {
40
- subtitle: t.value.subtitle,
41
- text: t.value.text,
42
- title: t.value.title
43
- }, {
44
- actions: i(() => [
45
- f(u(n), {
46
- onClick: l[0] || (l[0] = () => c()),
47
- text: t.value.cancelText
39
+ default: m(() => [
40
+ i(u(h), {
41
+ subtitle: l.value.subtitle,
42
+ text: l.value.text,
43
+ title: l.value.title
44
+ }, D({
45
+ actions: m(() => [
46
+ i(u(v), {
47
+ onClick: t[0] || (t[0] = () => o()),
48
+ text: l.value.cancelText
48
49
  }, null, 8, ["text"]),
49
- f(u(n), {
50
- onClick: l[1] || (l[1] = () => d()),
51
- text: t.value.confirmText
50
+ i(u(v), {
51
+ onClick: t[1] || (t[1] = () => x()),
52
+ text: l.value.confirmText
52
53
  }, null, 8, ["text"])
53
54
  ]),
54
- _: 1
55
- }, 8, ["subtitle", "text", "title"])
55
+ _: 2
56
+ }, [
57
+ l.value.itemComponent != null ? {
58
+ name: "default",
59
+ fn: m(() => [
60
+ (n(), d(V(l.value.itemComponent), {
61
+ item: l.value.item
62
+ }, null, 8, ["item"]))
63
+ ]),
64
+ key: "0"
65
+ } : void 0
66
+ ]), 1032, ["subtitle", "text", "title"])
56
67
  ]),
57
68
  _: 1
58
69
  }, 8, ["max-width", "modelValue"]));
59
70
  }
60
71
  });
61
72
  export {
62
- y as default
73
+ O as default
63
74
  };
@@ -110,6 +110,8 @@ export interface UseDialogConfirmOptions {
110
110
  cancelText?: string;
111
111
  confirmText?: string;
112
112
  height?: string;
113
+ item?: any;
114
+ itemComponent?: any;
113
115
  maxWidth?: string;
114
116
  subtitle?: string;
115
117
  text?: string;