@anzusystems/common-admin 1.47.0-beta.dev-1777971796 → 1.47.0-beta.dev-1778743735

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/labs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { bS as Cn, d as pe, j as Ue, k as Ra, a1 as Ka, h as ft, i as Tt, aj as xn, ak as An, al as Sn, am as Pn, ag as Et, aZ as In, aa as Dn, ab as Tn, ac as En, ad as $n, an as Fn, ao as Bn, ae as Rn, af as Kn, bT as Vn, bU as Ln, bd as Mn, bV as Va, as as zn, bW as Yt, ap as La, aq as Ma, aU as za, b1 as Na, ar as Oa, E as Ua, a8 as ja, a2 as qa, bX as Ga, q as Ha, p as Ja, x as Wa, a7 as Ya, aI as Xa, m as Nn, bY as Qa, l as Za, bZ as _a, b_ as On, b$ as Un, c0 as jn, c1 as qn, c2 as Gn, c3 as Hn, c4 as Jn, c5 as Wn, c6 as Yn, c7 as Xn, g as Ce, c8 as eo, _ as to, c9 as no, ca as ao, cb as oo, cc as lo, aT as io, cd as so, ce as ro, cf as co, z as uo } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-1FJ-5Ucu.mjs";
2
- import { aE as Di, cg as Ti, ch as Ei, aA as $i, aB as Fi, aD as Bi, aF as Ri, aC as Ki, aR as Vi, aJ as Li, ba as Mi, aW as zi, aG as Ni, aH as Oi, ay as Ui, az as ji, ci as qi, cj as Gi, ck as Hi, cl as Ji, cm as Wi, cn as Yi, co as Xi, ai as Qi, ah as Zi, cp as _i, cq as es, cr as ts, cs as ns } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-1FJ-5Ucu.mjs";
1
+ import { bS as Cn, d as pe, j as Ue, k as Ra, a1 as Ka, h as ft, i as Tt, aj as xn, ak as An, al as Sn, am as Pn, ag as Et, aZ as In, aa as Dn, ab as Tn, ac as En, ad as $n, an as Fn, ao as Bn, ae as Rn, af as Kn, bT as Vn, bU as Ln, bd as Mn, bV as Va, as as zn, bW as Yt, ap as La, aq as Ma, aU as za, b1 as Na, ar as Oa, E as Ua, a8 as ja, a2 as qa, bX as Ga, q as Ha, p as Ja, x as Wa, a7 as Ya, aI as Xa, m as Nn, bY as Qa, l as Za, bZ as _a, b_ as On, b$ as Un, c0 as jn, c1 as qn, c2 as Gn, c3 as Hn, c4 as Jn, c5 as Wn, c6 as Yn, c7 as Xn, g as Ce, c8 as eo, _ as to, c9 as no, ca as ao, cb as oo, cc as lo, aT as io, cd as so, ce as ro, cf as co, z as uo } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CfAKR0IJ.mjs";
2
+ import { aE as Di, cg as Ti, ch as Ei, aA as $i, aB as Fi, aD as Bi, aF as Ri, aC as Ki, aR as Vi, aJ as Li, ba as Mi, aW as zi, aG as Ni, aH as Oi, ay as Ui, az as ji, ci as qi, cj as Gi, ck as Hi, cl as Ji, cm as Wi, cn as Yi, co as Xi, ai as Qi, ah as Zi, cp as _i, cq as es, cr as ts, cs as ns } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CfAKR0IJ.mjs";
3
3
  import { defineComponent as He, useModel as Ge, inject as Qn, computed as k, watch as Pe, openBlock as g, createElementBlock as M, createElementVNode as z, toDisplayString as B, unref as d, createVNode as i, withCtx as s, createTextVNode as J, Fragment as be, renderList as at, createBlock as X, normalizeClass as xe, mergeModels as Ve, createCommentVNode as G, withModifiers as ae, ref as fe, onMounted as Qt, toRaw as yn, provide as fo, resolveComponent as hn, renderSlot as L, mergeProps as oe, withDirectives as mo, vShow as vo, useSlots as Zn, useTemplateRef as $t, isRef as _n, normalizeStyle as mt, normalizeProps as Ke, guardReactiveProps as qe, shallowRef as Xt, nextTick as Oe, onBeforeUnmount as ea, getCurrentInstance as yo } from "vue";
4
4
  import { useI18n as Je } from "vue-i18n";
5
5
  import { VBtn as ee } from "vuetify/components/VBtn";
@@ -801,7 +801,8 @@ const Ko = { class: "d-flex flex-column w-100 px-1 align-center" }, Vo = { class
801
801
  () => p.value.map((o) => ({
802
802
  key: o[n.keyField],
803
803
  data: o
804
- }))
804
+ })),
805
+ { source: p }
805
806
  ), {
806
807
  editingKeys: Q,
807
808
  editingSnapshots: C,
@@ -823,7 +824,9 @@ const Ko = { class: "d-flex flex-column w-100 px-1 align-center" }, Vo = { class
823
824
  afterAutoOpen: (o) => {
824
825
  O.value.delete(o);
825
826
  }
826
- }), re = k(() => n.addLabel ?? h("common.sortable.add")), _ = k(() => n.emptyTitle ?? h("common.sortable.emptyTitle")), ne = k(() => n.emptyText ?? h("common.sortable.emptyText")), $ = k(
827
+ }), re = k(
828
+ () => n.addLabel ? h(n.addLabel) : h("common.sortable.add")
829
+ ), _ = k(() => n.emptyTitle ?? h("common.sortable.emptyTitle")), ne = k(() => n.emptyText ?? h("common.sortable.emptyText")), $ = k(
827
830
  () => n.deleteConfirmTitle ?? h("common.sortable.deleteConfirmTitle")
828
831
  ), f = k(
829
832
  () => n.deleteConfirmText ?? h("common.sortable.deleteConfirmText")
@@ -896,7 +899,7 @@ const Ko = { class: "d-flex flex-column w-100 px-1 align-center" }, Vo = { class
896
899
  O.value.add(N);
897
900
  }
898
901
  y("item-expand", o, !u);
899
- }, Be = (o) => n.chips || n.disableRowClick || n.disabled || n.loading ? !1 : !!(o.editing || o.expanded || !n.readonly && n.showEditButton || n.readonly && T.value), yt = (o) => {
902
+ }, Be = (o) => n.chips || n.disableRowClick || n.disabled || n.loading ? !1 : !!(o.editing || o.expanded || !n.readonly && n.showEditButton), yt = (o) => {
900
903
  if (Be(o)) {
901
904
  if (o.editing || o.expanded) {
902
905
  et(o);
@@ -915,7 +918,7 @@ const Ko = { class: "d-flex flex-column w-100 px-1 align-center" }, Vo = { class
915
918
  onDeleteConfirm: (o) => n.onDeleteConfirm ? n.onDeleteConfirm(o) : !0,
916
919
  onDelete: (o) => n.onDelete?.(o),
917
920
  onDeleted: (o) => {
918
- D.deleteItem(o.key), Q.value.delete(o.key), C.value.delete(o.key), O.value.delete(o.key), y("deleted", o);
921
+ Q.value.delete(o.key), C.value.delete(o.key), O.value.delete(o.key), y("deleted", o);
919
922
  },
920
923
  disableDeleteConfirm: () => n.disableDeleteConfirm || n.chips
921
924
  }), _e = async (o) => {
@@ -1240,7 +1243,7 @@ const Ko = { class: "d-flex flex-column w-100 px-1 align-center" }, Vo = { class
1240
1243
  }, 8, ["disabled", "onClick"])
1241
1244
  ])) : G("", !0)
1242
1245
  ])
1243
- ], 64)) : u.expanded && o.$slots["item-readonly"] ? (g(), M("div", sl, [
1246
+ ], 64)) : o.$slots["item-readonly"] && (t.readonly || u.expanded) ? (g(), M("div", sl, [
1244
1247
  z("div", rl, [
1245
1248
  L(o.$slots, "item-readonly", oe({ ref_for: !0 }, De(u)))
1246
1249
  ])
@@ -2030,7 +2033,7 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2030
2033
  }, 8, ["disabled"])
2031
2034
  ])) : G("", !0)
2032
2035
  ])
2033
- ], 64)) : t.vi.expanded && !t.context.reorderMode && m.$slots["item-readonly"] ? (g(), M("div", Tl, [
2036
+ ], 64)) : m.$slots["item-readonly"] && (t.context.readonly || t.vi.expanded) && !t.context.reorderMode ? (g(), M("div", Tl, [
2034
2037
  z("div", El, [
2035
2038
  L(m.$slots, "item-readonly", Ke(qe(h())))
2036
2039
  ])
@@ -2413,7 +2416,7 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2413
2416
  };
2414
2417
  return l(p.value.children), e;
2415
2418
  },
2416
- { excludeFields: [n.positionField, n.parentField] }
2419
+ { excludeFields: [n.positionField, n.parentField], source: p }
2417
2420
  ), V = Xt(null), S = fe(/* @__PURE__ */ new Set()), se = () => {
2418
2421
  Q(), S.value = /* @__PURE__ */ new Set();
2419
2422
  }, Y = (e) => {
@@ -2532,7 +2535,9 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2532
2535
  reorderApplyError: (e) => y("reorder-apply-error", e),
2533
2536
  reorderEnd: () => y("reorder-end")
2534
2537
  }
2535
- }), lt = k(() => A.value && n.showAddButton && !ge.value), Ie = k(() => ge.value && !K.value && !n.disableDrag), _e = k(() => n.addLabel ?? b("common.sortable.add")), ht = k(() => n.emptyTitle ?? b("common.sortable.emptyTitle")), pt = k(() => n.emptyText ?? b("common.sortable.emptyText")), et = k(
2538
+ }), lt = k(() => A.value && n.showAddButton && !ge.value), Ie = k(() => ge.value && !K.value && !n.disableDrag), _e = k(
2539
+ () => n.addLabel ? b(n.addLabel) : b("common.sortable.add")
2540
+ ), ht = k(() => n.emptyTitle ?? b("common.sortable.emptyTitle")), pt = k(() => n.emptyText ?? b("common.sortable.emptyText")), et = k(
2536
2541
  () => n.deleteConfirmTitle ?? b("common.sortable.deleteConfirmTitle")
2537
2542
  ), Ye = k(
2538
2543
  () => n.deleteConfirmText ?? b("common.sortable.deleteConfirmText")
@@ -2723,7 +2728,7 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2723
2728
  if (n.disabled || n.loading) return;
2724
2729
  const l = e.key, a = U.value.has(l);
2725
2730
  a ? U.value.delete(l) : U.value.add(l), y("item-expand", e, !a);
2726
- }, rn = (e) => n.disableRowClick || n.disabled || n.loading || ge.value ? !1 : !!(e.editing || e.expanded || !n.readonly && n.showEditButton || n.readonly && H.value), sa = (e) => {
2731
+ }, rn = (e) => n.disableRowClick || n.disabled || n.loading || ge.value ? !1 : !!(e.editing || e.expanded || !n.readonly && n.showEditButton), sa = (e) => {
2727
2732
  if (rn(e)) {
2728
2733
  if (e.editing || e.expanded) {
2729
2734
  rt(e);
@@ -2742,7 +2747,7 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2742
2747
  onDeleteConfirm: (e) => n.onDeleteConfirm ? n.onDeleteConfirm(e) : !0,
2743
2748
  onDelete: (e) => n.onDelete?.(e),
2744
2749
  onDeleted: (e) => {
2745
- E.deleteItem(e.key), q.value.delete(e.key), ce.value.delete(e.key), U.value.delete(e.key), T.value.delete(e.key), y("deleted", e);
2750
+ q.value.delete(e.key), ce.value.delete(e.key), U.value.delete(e.key), T.value.delete(e.key), y("deleted", e);
2746
2751
  },
2747
2752
  disableDeleteConfirm: () => n.disableDeleteConfirm
2748
2753
  }), dn = async (e) => {
@@ -2949,6 +2954,7 @@ const Bt = (t, x) => t.find((v) => v.key === x) ?? null, la = (t, x, v) => {
2949
2954
  E.moveTo(a.key, e, Z) && (Y(a.key), e !== null && T.value.add(e));
2950
2955
  }, Ca = k(() => ({
2951
2956
  reorderMode: ge.value,
2957
+ readonly: n.readonly,
2952
2958
  canInteract: A.value,
2953
2959
  dragEnabled: Ie.value,
2954
2960
  showExpandToggle: n.showExpandToggle,