@anzusystems/common-admin 1.47.0-beta.dev-1784059868 → 1.47.0-beta.dev-1784059869

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 { aG as Oo, aH as Uo, d as fe, bT as jo, bU as qo, au as Go, bV as Da, j as Ve, k as Ho, a1 as Wo, h as ht, i as Kt, aj as Ia, ak as Ta, al as Fa, am as Ba, ag as Lt, a_ as Ra, aa as Ka, ab as La, ac as Va, ad as za, an as Ma, ao as Na, ae as Oa, af as Ua, bW as ja, bX as qa, be as Ga, bY as Jo, as as Ha, bZ as ta, ap as Xo, aq as Yo, aV as Qo, b2 as Zo, ar as _o, E as en, a8 as tn, a2 as an, b_ as on, q as nn, p as ln, x as sn, a7 as rn, aI as dn, m as Wa, b$ as cn, l as un, c0 as fn, c1 as mn, c2 as Ja, c3 as Xa, c4 as Ya, c5 as Qa, c6 as Za, c7 as _a, c8 as eo, c9 as to, ca as ao, cb as oo, cc as no, cd as vn, _ as lo, ce as yn, cf as hn, cg as pn, ch as gn, ci as bn, cj as kn, ck as wn, g as Cn, aU as xn, cl as Sn, cm as An, cn as En, z as Pn, co as $n, cp as Dn } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs";
2
- import { aE as Yi, cq as Qi, cr as Zi, aA as _i, aB as es, aD as ts, aF as as, aC as os, aS as ns, aJ as ls, bb as is, aO as ss, aX as rs, ay as ds, az as cs, cs as us, ct as fs, cu as ms, cv as vs, cw as ys, cx as hs, cy as ps, cz as gs, ai as bs, ah as ks, cA as ws, cB as Cs, cC as xs, cD as Ss, cE as As, cF as Es, cG as Ps, cH as $s } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs";
1
+ import { aK as Oo, aL as Uo, d as fe, bV as jo, bW as qo, ay as Go, bX as Da, j as Ve, k as Wo, a1 as Ho, h as ht, i as Kt, aj as Ia, ak as Ta, al as Fa, am as Ba, ag as Lt, an as Ra, aa as Ka, ab as La, ac as Va, ad as za, ao as Ma, ap as Na, ae as Oa, af as Ua, aq as ja, ar as qa, as as Ga, bY as Jo, aw as Wa, bZ as ta, at as Yo, au as Xo, aZ as Qo, b5 as Zo, av as _o, E as en, a8 as tn, a2 as an, b_ as on, q as nn, p as ln, x as sn, a7 as rn, aM as dn, m as Ha, b$ as cn, l as un, c0 as fn, c1 as mn, c2 as Ja, c3 as Ya, c4 as Xa, c5 as Qa, c6 as Za, c7 as _a, c8 as eo, c9 as to, ca as ao, cb as oo, cc as no, cd as vn, _ as lo, ce as yn, cf as hn, cg as pn, ch as gn, ci as bn, cj as kn, ck as wn, g as Cn, aY as xn, cl as Sn, cm as An, cn as En, z as Pn, co as $n, cp as Dn } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-Cqsl9h-v.mjs";
2
+ import { aI as Xi, cq as Qi, cr as Zi, aE as _i, aF as es, aH as ts, aJ as as, aG as os, aW as ns, aN as ls, be as is, aS as ss, a$ as rs, aC as ds, aD as cs, cs as us, ct as fs, cu as ms, cv as vs, cw as ys, cx as hs, cy as ps, cz as gs, ai as bs, ah as ks, cA as ws, cB as Cs, cC as xs, cD as Ss, cE as As, cF as Es, cG as Ps, cH as $s } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-Cqsl9h-v.mjs";
3
3
  import { defineComponent as ze, inject as Vt, provide as oa, ref as _, openBlock as g, createBlock as U, withKeys as In, withModifiers as J, withCtx as r, renderSlot as L, useModel as it, computed as b, watch as ue, createElementBlock as B, createElementVNode as K, toDisplayString as $, unref as c, createVNode as s, createTextVNode as N, Fragment as ne, renderList as Ze, normalizeClass as we, mergeModels as Te, createCommentVNode as M, onMounted as la, toRaw as wa, resolveComponent as Ca, mergeProps as Q, withDirectives as Tn, vShow as Fn, useSlots as io, useTemplateRef as zt, isRef as so, normalizeProps as De, guardReactiveProps as Ie, normalizeStyle as pt, shallowRef as aa, nextTick as Le, onBeforeUnmount as na, getCurrentInstance as xa } from "vue";
4
4
  import { VForm as Bn } from "vuetify/components/VForm";
5
5
  import { useI18n as je } from "vue-i18n";
@@ -13,7 +13,7 @@ import { useDisplay as co } from "vuetify";
13
13
  import { VCard as ia, VCardTitle as uo, VCardText as Rt, VCardActions as fo } from "vuetify/components/VCard";
14
14
  import { VDialog as sa } from "vuetify/components/VDialog";
15
15
  import { VSpacer as ra } from "vuetify/components/VGrid";
16
- import { VIcon as W } from "vuetify/components/VIcon";
16
+ import { VIcon as H } from "vuetify/components/VIcon";
17
17
  import { VToolbar as Ln } from "vuetify/components/VToolbar";
18
18
  import { VTooltip as Se } from "vuetify/components/VTooltip";
19
19
  import { Intersect as Vn } from "vuetify/directives";
@@ -95,7 +95,7 @@ const Ri = /* @__PURE__ */ ze({
95
95
  {
96
96
  id: 3,
97
97
  titleT: "common.system.datatable.ordering.mostRelevant",
98
- sortBy: { key: Ho, order: Ve.Desc }
98
+ sortBy: { key: Wo, order: Ve.Desc }
99
99
  },
100
100
  {
101
101
  id: 1,
@@ -189,7 +189,7 @@ const Ri = /* @__PURE__ */ ze({
189
189
  }), Un = { class: "anzu-data-footer" }, jn = {
190
190
  key: 0,
191
191
  class: "anzu-data-footer__page-limit"
192
- }, qn = { class: "anzu-data-footer__pagination" }, Gn = { class: "anzu-data-footer__icons-before" }, Hn = { class: "current-page" }, Wn = { class: "anzu-data-footer__icons-after" }, Jn = /* @__PURE__ */ ze({
192
+ }, qn = { class: "anzu-data-footer__pagination" }, Gn = { class: "anzu-data-footer__icons-before" }, Wn = { class: "current-page" }, Hn = { class: "anzu-data-footer__icons-after" }, Jn = /* @__PURE__ */ ze({
193
193
  __name: "ADatatablePagination",
194
194
  props: {
195
195
  itemsPerPageOptions: { default: () => [10, 25, 50] },
@@ -200,7 +200,7 @@ const Ri = /* @__PURE__ */ ze({
200
200
  const u = C, a = Vt(Da);
201
201
  if (fe(a))
202
202
  throw new Error("Incorrect provide/inject config.");
203
- const { t: m } = je(), { setStoredPage: h } = Wo(), y = b(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), x = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), k = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), p = b(() => a.value.page === 1), P = b(() => !ht(a.value.hasNextPage) || a.value.page === y.value), I = b(() => ht(a.value.hasNextPage) && a.value.page === y.value || a.value.hasNextPage === !1), R = b(() => ht(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? k.value + 1 + "+" : k.value);
203
+ const { t: m } = je(), { setStoredPage: h } = Ho(), y = b(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), x = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), k = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), p = b(() => a.value.page === 1), P = b(() => !ht(a.value.hasNextPage) || a.value.page === y.value), I = b(() => ht(a.value.hasNextPage) && a.value.page === y.value || a.value.hasNextPage === !1), R = b(() => ht(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? k.value + 1 + "+" : k.value);
204
204
  ue(
205
205
  () => a.value.rowsPerPage,
206
206
  (F, O) => {
@@ -267,10 +267,10 @@ const Ri = /* @__PURE__ */ ze({
267
267
  onClick: J(c(T), ["stop"])
268
268
  }, null, 8, ["disabled", "onClick"])
269
269
  ]),
270
- K("div", Hn, [
270
+ K("div", Wn, [
271
271
  K("span", null, $(c(a).page), 1)
272
272
  ]),
273
- K("div", Wn, [
273
+ K("div", Hn, [
274
274
  s(q, {
275
275
  disabled: I.value,
276
276
  icon: "mdi-chevron-right",
@@ -288,7 +288,7 @@ const Ri = /* @__PURE__ */ ze({
288
288
  ])
289
289
  ]));
290
290
  }
291
- }), Xn = (t, C, u = "id") => {
291
+ }), Yn = (t, C, u = "id") => {
292
292
  const { querySetLimit: a, querySetOffset: m, querySetOrder: h, queryBuild: y, queryAddFilter: x, queryAdd: k } = Jo(), p = t.length;
293
293
  return a(p), m(1, p), h(u, !1), C ? k(u, t.join(",")) : x("in", u, t.join(",")), y();
294
294
  }, Li = (t) => {
@@ -311,7 +311,7 @@ const Ri = /* @__PURE__ */ ze({
311
311
  try {
312
312
  const F = Kt(z) ? z : h, O = Kt(T) ? T : m;
313
313
  if (fe(O)) throw new Error("Url template is undefined");
314
- const E = (fe(F) ? O : Ia(O, F)) + Xn(S, x, k), d = await C().get(E, {
314
+ const E = (fe(F) ? O : Ia(O, F)) + Yn(S, x, k), d = await C().get(E, {
315
315
  ...y,
316
316
  signal: P.signal
317
317
  });
@@ -359,9 +359,9 @@ const Ri = /* @__PURE__ */ ze({
359
359
  try {
360
360
  const d = R.general.elastic || E ? "/search" : "", D = Kt(T) ? T : h, w = Kt(v) ? v : m;
361
361
  if (fe(w)) throw new Error("Url template is undefined");
362
- const { pagination: i } = Ha(z, F ? Ve.Desc : Ve.Asc, {
362
+ const { pagination: i } = Wa(z, F ? Ve.Desc : Ve.Asc, {
363
363
  rowsPerPage: O
364
- }), G = (fe(D) ? w : Ia(w, D)) + d, X = [], ee = await C().get(
364
+ }), G = (fe(D) ? w : Ia(w, D)) + d, Y = [], ee = await C().get(
365
365
  G + ta(i, I, R),
366
366
  {
367
367
  ...y,
@@ -371,9 +371,9 @@ const Ri = /* @__PURE__ */ ze({
371
371
  if (!Ta(ee.status))
372
372
  throw new Fa(ee.status);
373
373
  if (ee.data) {
374
- const H = ee.data;
375
- if (X.push(...H.data), Xo(H))
376
- for (i.value.hasNextPage = H.hasNextPage; i.value.hasNextPage; ) {
374
+ const W = ee.data;
375
+ if (Y.push(...W.data), Yo(W))
376
+ for (i.value.hasNextPage = W.hasNextPage; i.value.hasNextPage; ) {
377
377
  i.value.page++;
378
378
  const me = (await C().get(
379
379
  G + ta(i, I, R),
@@ -382,26 +382,26 @@ const Ri = /* @__PURE__ */ ze({
382
382
  signal: k.signal
383
383
  }
384
384
  )).data;
385
- X.push(...me.data), i.value.hasNextPage = me.hasNextPage;
385
+ Y.push(...me.data), i.value.hasNextPage = me.hasNextPage;
386
386
  }
387
- else if (Yo(H)) {
388
- if (i.value.totalCount = H.totalCount, i.value.totalCount <= i.value.rowsPerPage)
389
- return X;
390
- const Y = [], me = Math.ceil(i.value.totalCount / i.value.rowsPerPage);
387
+ else if (Xo(W)) {
388
+ if (i.value.totalCount = W.totalCount, i.value.totalCount <= i.value.rowsPerPage)
389
+ return Y;
390
+ const X = [], me = Math.ceil(i.value.totalCount / i.value.rowsPerPage);
391
391
  for (let ae = 1; ae < me; ae++) {
392
392
  const be = { ...i.value, page: ae + 1 }, ie = _(be);
393
- Y.push(
393
+ X.push(
394
394
  C().get(G + ta(ie, I, R), {
395
395
  ...y,
396
396
  signal: k.signal
397
397
  })
398
398
  );
399
399
  }
400
- (await Promise.all(Y)).forEach((ae) => {
401
- X.push(...ae.data.data);
400
+ (await Promise.all(X)).forEach((ae) => {
401
+ Y.push(...ae.data.data);
402
402
  });
403
403
  }
404
- return X;
404
+ return Y;
405
405
  }
406
406
  if (ee.status === Ba)
407
407
  return [];
@@ -430,7 +430,7 @@ function zi(t, C) {
430
430
  deleteJob: (y) => Qo(t, Tt + "/:id", { id: y }, C, Ft)
431
431
  };
432
432
  }
433
- const Yn = {
433
+ const Xn = {
434
434
  key: "",
435
435
  title: void 0,
436
436
  sortable: !1,
@@ -446,7 +446,7 @@ function Zn(t, C, u, a, m = {}) {
446
446
  let k;
447
447
  sn(h.storeColumnsLocalStorage) ? k = h.storeColumnsLocalStorage : rn(h.storeColumnsLocalStorage) && h.storeColumnsLocalStorage === !0 && (k = "table_" + u + "_" + a);
448
448
  const p = t.map((S) => {
449
- const v = { ...Yn, ...S };
449
+ const v = { ...Xn, ...S };
450
450
  return fe(v.title) && (fe(v.title) && on.includes(v.key) ? v.title = x("common.model.tracking." + v.key) : fe(v.title) && u && a ? v.title = x(u + "." + a + ".model." + v.key) : v.title = ""), v;
451
451
  }), P = b(() => {
452
452
  const S = [];
@@ -473,23 +473,23 @@ function Zn(t, C, u, a, m = {}) {
473
473
  };
474
474
  }
475
475
  function Mi(t, C, u, a, m, h, y, x = null, k = void 0, p = !1) {
476
- const P = _(!1), I = _([]), R = _([]), S = _(!1), { pagination: v, setSortBy: T, incrementPage: z } = Ha(
476
+ const P = _(!1), I = _([]), R = _([]), S = _(!1), { pagination: v, setSortBy: T, incrementPage: z } = Wa(
477
477
  ht(x) ? null : x.key,
478
478
  x?.order
479
479
  ), { resetFilter: F, submitFilter: O } = dn(h, y, {
480
480
  storeFiltersLocalStorage: !1,
481
481
  populateUrlParams: !1
482
- }), { showErrorsDefault: E } = Wa(), { columnsVisible: d, columnsAll: D, columnsHidden: w } = Zn(
482
+ }), { showErrorsDefault: E } = Ha(), { columnsVisible: d, columnsAll: D, columnsHidden: w } = Zn(
483
483
  t,
484
484
  C,
485
485
  u,
486
486
  a,
487
487
  { storeColumnsLocalStorage: !1, disableActions: !p }
488
488
  ), i = () => {
489
- ee(), Y();
489
+ ee(), X();
490
490
  }, G = (ve) => {
491
- T(ve.sortBy), Y();
492
- }, X = async () => {
491
+ T(ve.sortBy), X();
492
+ }, Y = async () => {
493
493
  S.value = !0, z();
494
494
  try {
495
495
  const ve = await m(v, h, y, k);
@@ -501,7 +501,7 @@ function Mi(t, C, u, a, m, h, y, x = null, k = void 0, p = !1) {
501
501
  }
502
502
  }, ee = () => {
503
503
  I.value = [], R.value = [];
504
- }, H = async () => {
504
+ }, W = async () => {
505
505
  S.value = !0;
506
506
  try {
507
507
  I.value = await m(
@@ -515,8 +515,8 @@ function Mi(t, C, u, a, m, h, y, x = null, k = void 0, p = !1) {
515
515
  } finally {
516
516
  S.value = !1;
517
517
  }
518
- }, Y = Rn(async () => {
519
- await H();
518
+ }, X = Rn(async () => {
519
+ await W();
520
520
  });
521
521
  return {
522
522
  items: I,
@@ -538,12 +538,12 @@ function Mi(t, C, u, a, m, h, y, x = null, k = void 0, p = !1) {
538
538
  const qe = ie.querySelector("input");
539
539
  qe && qe.click();
540
540
  },
541
- onFetchNextPage: X,
541
+ onFetchNextPage: Y,
542
542
  onOpen: i,
543
543
  sortByChange: G,
544
- getList: Y,
545
- resetFilter: () => F(v, Y),
546
- submitFilter: () => O(v, Y)
544
+ getList: X,
545
+ resetFilter: () => F(v, X),
546
+ submitFilter: () => O(v, X)
547
547
  };
548
548
  }
549
549
  const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class: "d-flex justify-space-between w-100 align-center" }, tl = { class: "d-flex align-center" }, al = { class: "d-flex align-center" }, ol = { class: "subject-select__sidebar system-border-r" }, nl = { class: "subject-select-filter" }, ll = { class: "subject-select__content" }, il = {
@@ -604,7 +604,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
604
604
  open: v,
605
605
  closeSidebarOnMobile: P
606
606
  }), (i, G) => {
607
- const X = Ca("ABtnSecondary"), ee = Ca("ABtnPrimary");
607
+ const Y = Ca("ABtnSecondary"), ee = Ca("ABtnPrimary");
608
608
  return g(), B(ne, null, [
609
609
  L(i.$slots, "activator", {
610
610
  props: { onClick: J(() => v(), ["stop"]) }
@@ -613,7 +613,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
613
613
  "model-value": y.value,
614
614
  fullscreen: "",
615
615
  class: "subject-select",
616
- "onUpdate:modelValue": G[1] || (G[1] = (H) => m("update:modelValue", H))
616
+ "onUpdate:modelValue": G[1] || (G[1] = (W) => m("update:modelValue", W))
617
617
  }), {
618
618
  default: r(() => [
619
619
  y.value ? (g(), U(ia, {
@@ -651,7 +651,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
651
651
  onClick: T
652
652
  }, {
653
653
  default: r(() => [
654
- s(W, {
654
+ s(H, {
655
655
  icon: "mdi-tune",
656
656
  size: 16
657
657
  }),
@@ -689,7 +689,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
689
689
  K("div", ll, [
690
690
  L(i.$slots, "content"),
691
691
  t.paginationMode === "more" ? (g(), B("div", il, [
692
- Tn((g(), U(X, {
692
+ Tn((g(), U(Y, {
693
693
  loading: t.loading,
694
694
  size: "small",
695
695
  onClick: O
@@ -712,7 +712,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
712
712
  ])) : (g(), U(Jn, {
713
713
  key: 1,
714
714
  modelValue: x.value,
715
- "onUpdate:modelValue": G[0] || (G[0] = (H) => x.value = H),
715
+ "onUpdate:modelValue": G[0] || (G[0] = (W) => x.value = W),
716
716
  onChange: E
717
717
  }, null, 8, ["modelValue"]))
718
718
  ])
@@ -867,15 +867,15 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
867
867
  () => T.retainOwners(E.value.map((o) => o.key)),
868
868
  { flush: "post" }
869
869
  );
870
- const w = _(/* @__PURE__ */ new Set()), i = zt("rowsContainer"), G = b(() => !a.chips && !!x.item), X = b(() => !a.chips && !!x["item-readonly"]), {
870
+ const w = _(/* @__PURE__ */ new Set()), i = zt("rowsContainer"), G = b(() => !a.chips && !!x.item), Y = b(() => !a.chips && !!x["item-readonly"]), {
871
871
  editingKeys: ee,
872
- editingSnapshots: H,
873
- beginEdit: Y,
872
+ editingSnapshots: W,
873
+ beginEdit: X,
874
874
  cancelEdit: me,
875
875
  commitEdit: ve,
876
876
  closeEdit: ae,
877
877
  requestAutoOpen: be
878
- } = Xa({
878
+ } = Ya({
879
879
  rowsContainer: i,
880
880
  rowSelector: ".a-le-row",
881
881
  isInlineEdit: G,
@@ -919,7 +919,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
919
919
  for (const f of Ge.keys())
920
920
  V.has(f) || Ge.delete(f);
921
921
  return o;
922
- }), st = b(() => Fe.value.length === 0), Ae = (o) => Fe.value.find((V) => V.key === o), He = Ya({
922
+ }), st = b(() => Fe.value.length === 0), Ae = (o) => Fe.value.find((V) => V.key === o), We = Xa({
923
923
  viewItems: b(() => Fe.value.map((o) => ({ key: o.key }))),
924
924
  variant: "flat",
925
925
  isReorderMode: _(!1),
@@ -935,7 +935,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
935
935
  }
936
936
  }), Ut = (o) => oo(o, { compactField: a.compactField }), Be = () => {
937
937
  Me.value && (be(), S.addItem(void 0, void 0));
938
- }, We = (o) => {
938
+ }, He = (o) => {
939
939
  le.value && (be(), S.addItem(void 0, { afterId: o.key }));
940
940
  }, Je = (o) => {
941
941
  if (le.value) {
@@ -943,7 +943,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
943
943
  tt(o);
944
944
  return;
945
945
  }
946
- G.value && (Y(o), w.value.delete(o.key)), m("edit", o);
946
+ G.value && (X(o), w.value.delete(o.key)), m("edit", o);
947
947
  }
948
948
  }, rt = (o) => {
949
949
  if (a.disabled || a.loading) return;
@@ -961,11 +961,11 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
961
961
  tt(o);
962
962
  return;
963
963
  }
964
- a.readonly && X.value ? rt(o) : Je(o);
964
+ a.readonly && Y.value ? rt(o) : Je(o);
965
965
  }
966
966
  }, {
967
967
  deleteDialog: Oe,
968
- deleteInFlight: Xe,
968
+ deleteInFlight: Ye,
969
969
  deleteError: dt,
970
970
  onDeleteClick: Ct,
971
971
  onDeleteDialogConfirm: et,
@@ -974,7 +974,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
974
974
  onDeleteConfirm: (o) => a.onDeleteConfirm ? a.onDeleteConfirm(o) : !0,
975
975
  onDelete: (o) => a.onDelete?.(o),
976
976
  onDeleted: (o) => {
977
- ee.value.delete(o.key), H.value.delete(o.key), w.value.delete(o.key), S.deleteItem(o.key, { trackDeleted: a.deleteMode === "deferred" }), m("deleted", o);
977
+ ee.value.delete(o.key), W.value.delete(o.key), w.value.delete(o.key), S.deleteItem(o.key, { trackDeleted: a.deleteMode === "deferred" }), m("deleted", o);
978
978
  },
979
979
  disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
980
980
  }), ke = async (o) => {
@@ -985,8 +985,8 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
985
985
  me(o);
986
986
  }, tt = (o) => {
987
987
  ae(o), w.value.delete(o.key), m("close", o);
988
- }, Ye = /* @__PURE__ */ new Map(), St = (o) => {
989
- let V = Ye.get(o);
988
+ }, Xe = /* @__PURE__ */ new Map(), St = (o) => {
989
+ let V = Xe.get(o);
990
990
  return V || (V = {
991
991
  edit: () => {
992
992
  const f = Ae(o);
@@ -1010,22 +1010,22 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1010
1010
  },
1011
1011
  addAfter: () => {
1012
1012
  const f = Ae(o);
1013
- f && We(f);
1013
+ f && He(f);
1014
1014
  },
1015
1015
  toggleExpand: () => {
1016
1016
  const f = Ae(o);
1017
1017
  f && rt(f);
1018
1018
  },
1019
1019
  update: (f) => S.updateItem(o, f)
1020
- }, Ye.set(o, V)), V;
1020
+ }, Xe.set(o, V)), V;
1021
1021
  };
1022
1022
  ue(
1023
1023
  () => Fe.value,
1024
1024
  (o) => {
1025
- if (Ye.size === 0) return;
1025
+ if (Xe.size === 0) return;
1026
1026
  const V = new Set(o.map((f) => f.key));
1027
- for (const f of Ye.keys())
1028
- V.has(f) || Ye.delete(f);
1027
+ for (const f of Xe.keys())
1028
+ V.has(f) || Xe.delete(f);
1029
1029
  }
1030
1030
  );
1031
1031
  const Ee = (o) => ({
@@ -1048,7 +1048,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1048
1048
  );
1049
1049
  const $e = () => no(S, (o) => {
1050
1050
  const V = E.value.find((f) => f.key === o);
1051
- V && Y(V);
1051
+ V && X(V);
1052
1052
  });
1053
1053
  return _a({
1054
1054
  hasErrors: S.hasErrors,
@@ -1125,7 +1125,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1125
1125
  K("div", {
1126
1126
  "data-id": String(f.key),
1127
1127
  role: "listitem",
1128
- tabindex: c(He).rowTabindex(f.key),
1128
+ tabindex: c(We).rowTabindex(f.key),
1129
1129
  class: we(["a-le-row", {
1130
1130
  "a-le-row--two-rows": t.twoRows === "always",
1131
1131
  "a-le-row--editing": f.editing,
@@ -1134,7 +1134,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1134
1134
  "a-le-row--clickable": wt(f),
1135
1135
  [`a-le-row--validation-${f.validationState}`]: f.validationState !== null
1136
1136
  }]),
1137
- onKeydown: (oe) => c(He).handleKeydown(f.key, oe)
1137
+ onKeydown: (oe) => c(We).handleKeydown(f.key, oe)
1138
1138
  }, [
1139
1139
  K("div", {
1140
1140
  class: "a-le-row-header",
@@ -1167,7 +1167,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1167
1167
  onClick: J((oe) => ke(f), ["stop"])
1168
1168
  }, {
1169
1169
  default: r(() => [
1170
- s(W, {
1170
+ s(H, {
1171
1171
  icon: "mdi-close",
1172
1172
  size: "14"
1173
1173
  })
@@ -1185,7 +1185,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1185
1185
  onClick: J((oe) => Je(f), ["stop"])
1186
1186
  }, {
1187
1187
  default: r(() => [
1188
- s(W, {
1188
+ s(H, {
1189
1189
  icon: "mdi-pencil-outline",
1190
1190
  size: "18"
1191
1191
  }),
@@ -1207,7 +1207,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1207
1207
  onClick: J((oe) => ke(f), ["stop"])
1208
1208
  }, {
1209
1209
  default: r(() => [
1210
- s(W, {
1210
+ s(H, {
1211
1211
  icon: "mdi-trash-can-outline",
1212
1212
  size: "18"
1213
1213
  }),
@@ -1229,7 +1229,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1229
1229
  class: "mx-1 a-le-action a-le-action--menu"
1230
1230
  }, {
1231
1231
  default: r(() => [
1232
- s(W, {
1232
+ s(H, {
1233
1233
  icon: "mdi-dots-vertical",
1234
1234
  size: "18"
1235
1235
  }),
@@ -1243,10 +1243,10 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1243
1243
  s(gt, { density: "compact" }, {
1244
1244
  default: r(() => [
1245
1245
  s(xe, {
1246
- onClick: (oe) => We(f)
1246
+ onClick: (oe) => He(f)
1247
1247
  }, {
1248
1248
  prepend: r(() => [
1249
- s(W, { icon: "mdi-plus" })
1249
+ s(H, { icon: "mdi-plus" })
1250
1250
  ]),
1251
1251
  default: r(() => [
1252
1252
  s(Pe, null, {
@@ -1323,7 +1323,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1323
1323
  class: "a-le-row-add",
1324
1324
  onClick: Be
1325
1325
  }, [
1326
- s(W, {
1326
+ s(H, {
1327
1327
  icon: "mdi-plus",
1328
1328
  size: "18"
1329
1329
  }),
@@ -1339,13 +1339,13 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1339
1339
  "confirm-label": c(y)("common.sortable.delete"),
1340
1340
  "cancel-label": c(y)("common.button.cancel"),
1341
1341
  error: c(dt),
1342
- "in-flight": c(Xe),
1342
+ "in-flight": c(Ye),
1343
1343
  onConfirm: c(et),
1344
1344
  onCancel: c(ct)
1345
1345
  }, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
1346
- K("div", $l, $(c(He).grabbedKey.value !== null ? c(y)("common.sortable.keyboardGrab.status", {
1347
- n: c(He).grabbedIndex.value + 1,
1348
- total: c(He).totalCount.value
1346
+ K("div", $l, $(c(We).grabbedKey.value !== null ? c(y)("common.sortable.keyboardGrab.status", {
1347
+ n: c(We).grabbedIndex.value + 1,
1348
+ total: c(We).totalCount.value
1349
1349
  }) : ""), 1)
1350
1350
  ], 2));
1351
1351
  }
@@ -1460,7 +1460,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1460
1460
  }, ql = {
1461
1461
  key: 1,
1462
1462
  class: "a-le-row-body"
1463
- }, Gl = { class: "a-le-form" }, Hl = ["data-parent-id"], Wl = "a-nested-list-editor__group", Jl = "a-le-drag-handle", yo = /* @__PURE__ */ ze({
1463
+ }, Gl = { class: "a-le-form" }, Wl = ["data-parent-id"], Hl = "a-nested-list-editor__group", Jl = "a-le-drag-handle", yo = /* @__PURE__ */ ze({
1464
1464
  __name: "LeNestedRow",
1465
1465
  props: {
1466
1466
  vi: {},
@@ -1539,7 +1539,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1539
1539
  K("span", Ll, $(t.context.resolveCompactText(t.vi.raw, t.vi.key)), 1)
1540
1540
  ]),
1541
1541
  t.vi.hasChildren ? (g(), B("span", Vl, [
1542
- s(W, {
1542
+ s(H, {
1543
1543
  icon: "mdi-file-tree",
1544
1544
  size: "14"
1545
1545
  }),
@@ -1565,7 +1565,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1565
1565
  onClick: p[1] || (p[1] = J((P) => t.callbacks.moveUp(t.vi.key), ["stop"]))
1566
1566
  }, {
1567
1567
  default: r(() => [
1568
- s(W, {
1568
+ s(H, {
1569
1569
  icon: "mdi-arrow-up",
1570
1570
  size: "18"
1571
1571
  }),
@@ -1587,7 +1587,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1587
1587
  onClick: p[2] || (p[2] = J((P) => t.callbacks.moveDown(t.vi.key), ["stop"]))
1588
1588
  }, {
1589
1589
  default: r(() => [
1590
- s(W, {
1590
+ s(H, {
1591
1591
  icon: "mdi-arrow-down",
1592
1592
  size: "18"
1593
1593
  }),
@@ -1608,7 +1608,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1608
1608
  class: "mx-1 a-le-action a-le-action--menu"
1609
1609
  }, {
1610
1610
  default: r(() => [
1611
- s(W, {
1611
+ s(H, {
1612
1612
  icon: "mdi-dots-vertical",
1613
1613
  size: "18"
1614
1614
  }),
@@ -1626,7 +1626,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1626
1626
  onClick: p[3] || (p[3] = J((P) => t.callbacks.moveTop(t.vi.key), ["stop"]))
1627
1627
  }, {
1628
1628
  prepend: r(() => [
1629
- s(W, { icon: "mdi-arrow-collapse-up" })
1629
+ s(H, { icon: "mdi-arrow-collapse-up" })
1630
1630
  ]),
1631
1631
  default: r(() => [
1632
1632
  s(Pe, null, {
@@ -1643,7 +1643,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1643
1643
  onClick: p[4] || (p[4] = J((P) => t.callbacks.moveBottom(t.vi.key), ["stop"]))
1644
1644
  }, {
1645
1645
  prepend: r(() => [
1646
- s(W, { icon: "mdi-arrow-collapse-down" })
1646
+ s(H, { icon: "mdi-arrow-collapse-down" })
1647
1647
  ]),
1648
1648
  default: r(() => [
1649
1649
  s(Pe, null, {
@@ -1660,7 +1660,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1660
1660
  onClick: p[5] || (p[5] = J((P) => t.callbacks.openMoveToPosition(t.vi), ["stop"]))
1661
1661
  }, {
1662
1662
  prepend: r(() => [
1663
- s(W, { icon: "mdi-target" })
1663
+ s(H, { icon: "mdi-target" })
1664
1664
  ]),
1665
1665
  default: r(() => [
1666
1666
  s(Pe, null, {
@@ -1677,7 +1677,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1677
1677
  onClick: p[6] || (p[6] = J((P) => t.callbacks.openChangeParent(t.vi), ["stop"]))
1678
1678
  }, {
1679
1679
  prepend: r(() => [
1680
- s(W, { icon: "mdi-folder-move-outline" })
1680
+ s(H, { icon: "mdi-folder-move-outline" })
1681
1681
  ]),
1682
1682
  default: r(() => [
1683
1683
  s(Pe, null, {
@@ -1694,7 +1694,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1694
1694
  onClick: p[7] || (p[7] = J((P) => t.callbacks.indent(t.vi), ["stop"]))
1695
1695
  }, {
1696
1696
  prepend: r(() => [
1697
- s(W, { icon: "mdi-format-indent-increase" })
1697
+ s(H, { icon: "mdi-format-indent-increase" })
1698
1698
  ]),
1699
1699
  default: r(() => [
1700
1700
  s(Pe, null, {
@@ -1711,7 +1711,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1711
1711
  onClick: p[8] || (p[8] = J((P) => t.callbacks.outdent(t.vi), ["stop"]))
1712
1712
  }, {
1713
1713
  prepend: r(() => [
1714
- s(W, { icon: "mdi-format-indent-decrease" })
1714
+ s(H, { icon: "mdi-format-indent-decrease" })
1715
1715
  ]),
1716
1716
  default: r(() => [
1717
1717
  s(Pe, null, {
@@ -1728,7 +1728,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1728
1728
  onClick: p[9] || (p[9] = J((P) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1729
1729
  }, {
1730
1730
  prepend: r(() => [
1731
- s(W, {
1731
+ s(H, {
1732
1732
  icon: "mdi-trash-can-outline",
1733
1733
  color: "error"
1734
1734
  })
@@ -1764,7 +1764,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1764
1764
  onClick: p[10] || (p[10] = J((P) => t.callbacks.onEditClick(t.vi), ["stop"]))
1765
1765
  }, {
1766
1766
  default: r(() => [
1767
- s(W, {
1767
+ s(H, {
1768
1768
  icon: "mdi-pencil-outline",
1769
1769
  size: "18"
1770
1770
  }),
@@ -1786,7 +1786,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1786
1786
  onClick: p[11] || (p[11] = J((P) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1787
1787
  }, {
1788
1788
  default: r(() => [
1789
- s(W, {
1789
+ s(H, {
1790
1790
  icon: "mdi-trash-can-outline",
1791
1791
  size: "18"
1792
1792
  }),
@@ -1808,7 +1808,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1808
1808
  class: "mx-1 a-le-action a-le-action--menu"
1809
1809
  }, {
1810
1810
  default: r(() => [
1811
- s(W, {
1811
+ s(H, {
1812
1812
  icon: "mdi-dots-vertical",
1813
1813
  size: "18"
1814
1814
  }),
@@ -1826,7 +1826,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1826
1826
  onClick: p[12] || (p[12] = J((P) => t.callbacks.onAddAfterClick(t.vi), ["stop"]))
1827
1827
  }, {
1828
1828
  prepend: r(() => [
1829
- s(W, { icon: "mdi-playlist-plus" })
1829
+ s(H, { icon: "mdi-playlist-plus" })
1830
1830
  ]),
1831
1831
  default: r(() => [
1832
1832
  s(Pe, null, {
@@ -1843,7 +1843,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1843
1843
  onClick: p[13] || (p[13] = J((P) => t.callbacks.onAddChildClick(t.vi), ["stop"]))
1844
1844
  }, {
1845
1845
  prepend: r(() => [
1846
- s(W, { icon: "mdi-subdirectory-arrow-right" })
1846
+ s(H, { icon: "mdi-subdirectory-arrow-right" })
1847
1847
  ]),
1848
1848
  default: r(() => [
1849
1849
  s(Pe, null, {
@@ -1914,7 +1914,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1914
1914
  style: pt({ "--parent-depth": t.vi.depth })
1915
1915
  }, [
1916
1916
  K("div", {
1917
- class: we([Wl]),
1917
+ class: we([Hl]),
1918
1918
  "data-parent-id": String(t.vi.key)
1919
1919
  }, [
1920
1920
  (g(!0), B(ne, null, Ze(x(), (P) => (g(), U(c(u), {
@@ -1951,11 +1951,11 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1951
1951
  ]),
1952
1952
  _: 3
1953
1953
  }, 8, ["vi", "view-items", "drag-state", "context", "callbacks"]))), 128))
1954
- ], 10, Hl)
1954
+ ], 10, Wl)
1955
1955
  ], 4)) : M("", !0)
1956
1956
  ], 42, Fl));
1957
1957
  }
1958
- }), Xl = { class: "text-body-medium mb-2" }, Yl = /* @__PURE__ */ ze({
1958
+ }), Yl = { class: "text-body-medium mb-2" }, Xl = /* @__PURE__ */ ze({
1959
1959
  __name: "LeChangeParentDialog",
1960
1960
  props: /* @__PURE__ */ Te({
1961
1961
  tree: {},
@@ -1980,11 +1980,11 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
1980
1980
  const D = (w) => {
1981
1981
  for (const i of w) {
1982
1982
  if (i.data[u.keyField] === u.sourceKey) {
1983
- const X = (ee) => {
1984
- for (const H of ee)
1985
- d.add(H.data[u.keyField]), H.children?.length && X(H.children);
1983
+ const Y = (ee) => {
1984
+ for (const W of ee)
1985
+ d.add(W.data[u.keyField]), W.children?.length && Y(W.children);
1986
1986
  };
1987
- return i.children?.length && X(i.children), !0;
1987
+ return i.children?.length && Y(i.children), !0;
1988
1988
  }
1989
1989
  if (i.children?.length && D(i.children)) return !0;
1990
1990
  }
@@ -2027,17 +2027,17 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2027
2027
  reason: P.value === null ? "currentParent" : null
2028
2028
  });
2029
2029
  const w = (i, G) => {
2030
- for (const X of i) {
2031
- const ee = X.data[u.keyField];
2032
- let H = !1, Y = null;
2033
- ee === u.sourceKey ? (H = !0, Y = "self") : k.value.has(ee) ? (H = !0, Y = "descendant") : P.value !== void 0 && P.value === ee ? (H = !0, Y = "currentParent") : G + 1 + D > u.maxDepth && (H = !0, Y = "maxDepth"), d.push({
2030
+ for (const Y of i) {
2031
+ const ee = Y.data[u.keyField];
2032
+ let W = !1, X = null;
2033
+ ee === u.sourceKey ? (W = !0, X = "self") : k.value.has(ee) ? (W = !0, X = "descendant") : P.value !== void 0 && P.value === ee ? (W = !0, X = "currentParent") : G + 1 + D > u.maxDepth && (W = !0, X = "maxDepth"), d.push({
2034
2034
  key: ee,
2035
2035
  depth: G + 1,
2036
- label: u.resolveLabel(X.data, ee),
2037
- hasChildren: !!(X.children && X.children.length > 0),
2038
- disallowed: H,
2039
- reason: Y
2040
- }), X.children?.length && w(X.children, G + 1);
2036
+ label: u.resolveLabel(Y.data, ee),
2037
+ hasChildren: !!(Y.children && Y.children.length > 0),
2038
+ disallowed: W,
2039
+ reason: X
2040
+ }), Y.children?.length && w(Y.children, G + 1);
2041
2041
  }
2042
2042
  };
2043
2043
  return w(u.tree.children, 0), d;
@@ -2105,15 +2105,15 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2105
2105
  onClick: (i) => T(w)
2106
2106
  }, {
2107
2107
  prepend: r(() => [
2108
- w.key === null ? (g(), U(W, {
2108
+ w.key === null ? (g(), U(H, {
2109
2109
  key: 0,
2110
2110
  icon: "mdi-folder-home-outline",
2111
2111
  size: "18"
2112
- })) : w.hasChildren ? (g(), U(W, {
2112
+ })) : w.hasChildren ? (g(), U(H, {
2113
2113
  key: 1,
2114
2114
  icon: "mdi-folder-outline",
2115
2115
  size: "18"
2116
- })) : (g(), U(W, {
2116
+ })) : (g(), U(H, {
2117
2117
  key: 2,
2118
2118
  icon: "mdi-file-outline",
2119
2119
  size: "18"
@@ -2132,7 +2132,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2132
2132
  class: "pt-0"
2133
2133
  }, {
2134
2134
  default: r(() => [
2135
- K("div", Xl, $(c(h)("common.sortable.changeParent.placementHeading", {
2135
+ K("div", Yl, $(c(h)("common.sortable.changeParent.placementHeading", {
2136
2136
  label: S.value?.label ?? ""
2137
2137
  })), 1),
2138
2138
  s(zn, {
@@ -2190,7 +2190,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2190
2190
  _: 1
2191
2191
  }, 8, ["modelValue"]));
2192
2192
  }
2193
- }), Ql = /* @__PURE__ */ lo(Yl, [["__scopeId", "data-v-0058f5cc"]]), Zl = { class: "a-le-card" }, _l = {
2193
+ }), Ql = /* @__PURE__ */ lo(Xl, [["__scopeId", "data-v-0058f5cc"]]), Zl = { class: "a-le-card" }, _l = {
2194
2194
  key: 0,
2195
2195
  class: "a-le-header"
2196
2196
  }, ei = {
@@ -2262,7 +2262,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2262
2262
  }),
2263
2263
  emits: /* @__PURE__ */ Te(["add", "add-child", "edit", "deleted", "close", "item-saved", "item-expand", "reorder-start", "reorder-cancel", "reorder-applied", "reorder-apply-error", "reorder-end", "indent", "outdent"], ["update:modelValue", "update:mode"]),
2264
2264
  setup(t, { expose: C, emit: u }) {
2265
- const a = t, m = u, h = it(t, "modelValue"), y = it(t, "mode"), { t: x } = je(), k = io(), { showWarningT: p } = Wa(), P = zt("rootEl"), { isNarrow: I } = yn(P), R = hn(), S = b(() => a.closeVariant === "icon" ? "icon" : a.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), v = _(/* @__PURE__ */ new Set()), T = _(/* @__PURE__ */ new Set()), z = a.getKey ?? "id", F = typeof z == "function" ? "id" : z, O = (e) => typeof z == "function" ? z(e) : e[z], E = (() => {
2265
+ const a = t, m = u, h = it(t, "modelValue"), y = it(t, "mode"), { t: x } = je(), k = io(), { showWarningT: p } = Ha(), P = zt("rootEl"), { isNarrow: I } = yn(P), R = hn(), S = b(() => a.closeVariant === "icon" ? "icon" : a.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), v = _(/* @__PURE__ */ new Set()), T = _(/* @__PURE__ */ new Set()), z = a.getKey ?? "id", F = typeof z == "function" ? "id" : z, O = (e) => typeof z == "function" ? z(e) : e[z], E = (() => {
2266
2266
  const e = a.position;
2267
2267
  return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
2268
2268
  })();
@@ -2283,7 +2283,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2283
2283
  maxDepth: a.maxDepth,
2284
2284
  dirtyExclude: () => a.dirtyExclude ?? [],
2285
2285
  validate: a.validate
2286
- }, w = a.editor ? null : pn(a.stateKey, D), i = a.editor ?? w?.handle ?? gn(D), G = Ja(w?.childScope ?? null), X = b(() => {
2286
+ }, w = a.editor ? null : pn(a.stateKey, D), i = a.editor ?? w?.handle ?? gn(D), G = Ja(w?.childScope ?? null), Y = b(() => {
2287
2287
  const e = [];
2288
2288
  let l = 0;
2289
2289
  const n = a.maxDepth, A = (j, te, ge) => {
@@ -2314,27 +2314,27 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2314
2314
  return A(h.value.children, 0, null), e;
2315
2315
  });
2316
2316
  ue(
2317
- () => X.value.map((e) => String(e.key)).join("|"),
2318
- () => G.retainOwners(X.value.map((e) => e.key)),
2317
+ () => Y.value.map((e) => String(e.key)).join("|"),
2318
+ () => G.retainOwners(Y.value.map((e) => e.key)),
2319
2319
  { flush: "post" }
2320
2320
  );
2321
- const ee = aa(null), H = _(/* @__PURE__ */ new Set()), Y = _(/* @__PURE__ */ new Set()), me = _(/* @__PURE__ */ new Set()), ve = () => {
2322
- i.commit(), H.value = /* @__PURE__ */ new Set();
2321
+ const ee = aa(null), W = _(/* @__PURE__ */ new Set()), X = _(/* @__PURE__ */ new Set()), me = _(/* @__PURE__ */ new Set()), ve = () => {
2322
+ i.commit(), W.value = /* @__PURE__ */ new Set();
2323
2323
  }, ae = (e) => {
2324
2324
  const { node: l } = i.findNode(e);
2325
2325
  if (!l) {
2326
- H.value.add(e);
2326
+ W.value.add(e);
2327
2327
  return;
2328
2328
  }
2329
2329
  const n = (A) => {
2330
- H.value.add(O(A.data)), A.children && A.children.forEach(n);
2330
+ W.value.add(O(A.data)), A.children && A.children.forEach(n);
2331
2331
  };
2332
2332
  n(l);
2333
2333
  }, be = /* @__PURE__ */ new Map(), ie = b(() => {
2334
2334
  const e = [], l = /* @__PURE__ */ new Set();
2335
- for (const n of X.value) {
2335
+ for (const n of Y.value) {
2336
2336
  l.add(n.key);
2337
- const A = Ne.value.has(n.key), j = T.value.has(n.key), te = v.value.has(n.key), ge = a.loadingKeys?.has(n.key) ?? !1, se = H.value.has(n.key), ce = a.readonly ? !1 : i.isUnsaved(n.key), Qe = a.readonly ? !1 : ce || se, Z = be.get(n.key);
2337
+ const A = Ne.value.has(n.key), j = T.value.has(n.key), te = v.value.has(n.key), ge = a.loadingKeys?.has(n.key) ?? !1, se = W.value.has(n.key), ce = a.readonly ? !1 : i.isUnsaved(n.key), Qe = a.readonly ? !1 : ce || se, Z = be.get(n.key);
2338
2338
  if (Z && Z.raw === n.raw && Z.index === n.index && Z.position === n.position && Z.depth === n.depth && Z.parentKey === n.parentKey && Z.childrenCount === n.childrenCount && Z.firstInParent === n.firstInParent && Z.lastInParent === n.lastInParent && Z.editing === A && Z.expanded === j && Z.childrenExpanded === te && Z.loading === ge && Z.dirty === ce && Z.moved === se && Z.unsaved === Qe) {
2339
2339
  e.push(Z);
2340
2340
  continue;
@@ -2354,7 +2354,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2354
2354
  for (const n of be.keys())
2355
2355
  l.has(n) || be.delete(n);
2356
2356
  return e;
2357
- }), qe = b(() => h.value.children.length === 0), bt = b(() => X.value.length), ye = zt("rowsContainer"), le = b(() => !a.readonly && !a.disabled && !a.loading), Me = b(
2357
+ }), qe = b(() => h.value.children.length === 0), bt = b(() => Y.value.length), ye = zt("rowsContainer"), le = b(() => !a.readonly && !a.disabled && !a.loading), Me = b(
2358
2358
  () => le.value && !a.disableReorder && bt.value > 1
2359
2359
  ), _e = b(() => !!k.item), kt = b(() => !!k["item-readonly"]), Ot = b(() => !!a.onItemSave), {
2360
2360
  editingKeys: Ne,
@@ -2362,10 +2362,10 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2362
2362
  clearEditing: Fe,
2363
2363
  beginEdit: st,
2364
2364
  cancelEdit: Ae,
2365
- commitEdit: He,
2365
+ commitEdit: We,
2366
2366
  closeEdit: Ut,
2367
2367
  requestAutoOpen: Be
2368
- } = Xa({
2368
+ } = Ya({
2369
2369
  rowsContainer: ye,
2370
2370
  rowSelector: ".a-le-row-wrapper",
2371
2371
  isInlineEdit: _e,
@@ -2388,18 +2388,18 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2388
2388
  l && v.value.add(O(l.data));
2389
2389
  }
2390
2390
  }), {
2391
- applying: We,
2391
+ applying: He,
2392
2392
  applyError: Je,
2393
2393
  hasPendingChanges: rt,
2394
2394
  movedCount: wt,
2395
2395
  reorderMode: he,
2396
2396
  enterReorderMode: Oe,
2397
- cancelReorderMode: Xe,
2397
+ cancelReorderMode: Ye,
2398
2398
  applyReorder: dt
2399
2399
  } = bn({
2400
2400
  mode: y,
2401
2401
  snapshot: ee,
2402
- movedKeys: H,
2402
+ movedKeys: W,
2403
2403
  modelValue: h,
2404
2404
  cloneModel: (e) => Cn(e),
2405
2405
  applyModel: (e) => {
@@ -2407,26 +2407,26 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2407
2407
  },
2408
2408
  canEnterReorder: Me,
2409
2409
  onEnter: () => {
2410
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2410
+ X.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2411
2411
  for (const e of $e.value) v.value.add(e);
2412
2412
  Le(() => {
2413
2413
  ke.value && ot();
2414
2414
  });
2415
2415
  },
2416
2416
  onExternalEnter: () => {
2417
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2417
+ X.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2418
2418
  },
2419
2419
  // Cancel: the snapshot-restore has brought every deleted row back; reconcile the controller so a
2420
2420
  // deferred delete truly reverts (clear tombstone, row stays) and an immediate delete stays gone (row
2421
2421
  // removed again — it is deleted on the backend and must not resurrect / be re-created by a save).
2422
2422
  onCancel: () => {
2423
- for (const e of Y.value) i.restoreDeleted(e);
2423
+ for (const e of X.value) i.restoreDeleted(e);
2424
2424
  for (const e of me.value)
2425
2425
  i.deleteItem(e, { trackDeleted: !1 });
2426
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Ke();
2426
+ X.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Ke();
2427
2427
  },
2428
2428
  onApplyEnd: () => {
2429
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Ke();
2429
+ X.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Ke();
2430
2430
  },
2431
2431
  onReorderApply: (e) => a.onReorderApply?.(e),
2432
2432
  emit: {
@@ -2437,14 +2437,14 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2437
2437
  reorderEnd: () => m("reorder-end")
2438
2438
  }
2439
2439
  }), Ct = b(
2440
- () => wt.value + Y.value.size
2440
+ () => wt.value + X.value.size
2441
2441
  ), et = b(
2442
- () => rt.value || Y.value.size > 0
2442
+ () => rt.value || X.value.size > 0
2443
2443
  ), ct = b(() => le.value && a.showAddButton && !he.value), ke = b(() => he.value && !R.value && !a.disableDrag), ut = b(
2444
2444
  () => a.addLabel ? x(a.addLabel) : x("common.sortable.add")
2445
2445
  ), xt = b(() => a.emptyTitle ?? x("common.sortable.emptyTitle")), tt = b(
2446
2446
  () => a.deleteConfirmTitle ?? x("common.sortable.deleteConfirmTitle")
2447
- ), Ye = b(
2447
+ ), Xe = b(
2448
2448
  () => a.deleteConfirmText ?? (a.deleteMode === "immediate" ? x("common.sortable.deleteConfirmText") : x("common.sortable.deleteConfirmTextDeferred"))
2449
2449
  ), St = b(
2450
2450
  () => !a.readonly && a.showReorderToggle && !he.value && bt.value > 0
@@ -2654,32 +2654,32 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2654
2654
  onDeleted: (e) => {
2655
2655
  Ne.value.delete(e.key), Ge.value.delete(e.key), T.value.delete(e.key), v.value.delete(e.key);
2656
2656
  const l = a.deleteMode === "deferred";
2657
- he.value && (l ? Y.value.add(e.key) : me.value.add(e.key)), i.deleteItem(e.key, { trackDeleted: l }), m("deleted", e);
2657
+ he.value && (l ? X.value.add(e.key) : me.value.add(e.key)), i.deleteItem(e.key, { trackDeleted: l }), m("deleted", e);
2658
2658
  },
2659
2659
  disableDeleteConfirm: () => a.disableDeleteConfirm
2660
2660
  }), ya = async (e) => {
2661
2661
  le.value && await ko(e);
2662
2662
  }, ha = async (e) => {
2663
- a.onItemSave && await a.onItemSave(e.raw), He(e), m("item-saved", e);
2663
+ a.onItemSave && await a.onItemSave(e.raw), We(e), m("item-saved", e);
2664
2664
  }, pa = (e) => {
2665
2665
  Ae(e);
2666
2666
  }, mt = (e) => {
2667
2667
  Ut(e), m("close", e);
2668
2668
  }, Gt = (e) => {
2669
2669
  i.moveUp(e) && ae(e);
2670
- }, Ht = (e) => {
2671
- i.moveDown(e) && ae(e);
2672
2670
  }, Wt = (e) => {
2671
+ i.moveDown(e) && ae(e);
2672
+ }, Ht = (e) => {
2673
2673
  i.moveTop(e) && ae(e);
2674
2674
  }, Jt = (e) => {
2675
2675
  i.moveBottom(e) && ae(e);
2676
- }, Xt = (e) => {
2676
+ }, Yt = (e) => {
2677
2677
  if (!i.indent(e.key)) {
2678
2678
  p("common.sortable.error.maxDeepExceed");
2679
2679
  return;
2680
2680
  }
2681
2681
  ae(e.key), m("indent", e);
2682
- }, Yt = (e) => {
2682
+ }, Xt = (e) => {
2683
2683
  i.outdent(e.key) && (ae(e.key), m("outdent", e));
2684
2684
  }, Qt = (e) => oo(e, { compactField: a.compactField }), ga = (e, l) => l === void 0 ? null : i.rowState(e, l, Ne.value.has(l)), vt = /* @__PURE__ */ new Map(), xo = (e) => {
2685
2685
  let l = vt.get(e);
@@ -2721,16 +2721,16 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2721
2721
  n && ma(n);
2722
2722
  },
2723
2723
  moveUp: () => Gt(e),
2724
- moveDown: () => Ht(e),
2725
- moveTop: () => Wt(e),
2724
+ moveDown: () => Wt(e),
2725
+ moveTop: () => Ht(e),
2726
2726
  moveBottom: () => Jt(e),
2727
2727
  indent: () => {
2728
2728
  const n = re(e);
2729
- n && Xt(n);
2729
+ n && Yt(n);
2730
2730
  },
2731
2731
  outdent: () => {
2732
2732
  const n = re(e);
2733
- n && Yt(n);
2733
+ n && Xt(n);
2734
2734
  },
2735
2735
  update: (n) => i.updateItem(e, n)
2736
2736
  }, vt.set(e, l)), l;
@@ -2775,13 +2775,13 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2775
2775
  stateKeyPrefix: G.prefixFor(e.key),
2776
2776
  actions: xo(e.key)
2777
2777
  }), Ao = b(() => ({
2778
- applying: We.value,
2778
+ applying: He.value,
2779
2779
  hasPendingChanges: et.value,
2780
2780
  movedCount: Ct.value,
2781
2781
  error: Je.value,
2782
2782
  actions: {
2783
2783
  apply: dt,
2784
- cancel: Xe
2784
+ cancel: Ye
2785
2785
  }
2786
2786
  })), ba = b(() => ({
2787
2787
  mode: y.value,
@@ -2789,9 +2789,9 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2789
2789
  hasPendingChanges: rt.value,
2790
2790
  actions: {
2791
2791
  enterReorderMode: Oe,
2792
- exitReorderMode: Xe
2792
+ exitReorderMode: Ye
2793
2793
  }
2794
- })), Eo = b(() => new Set($e.value)), re = (e) => ie.value.find((l) => l.key === e), Pt = Ya({
2794
+ })), Eo = b(() => new Set($e.value)), re = (e) => ie.value.find((l) => l.key === e), Pt = Xa({
2795
2795
  viewItems: b(
2796
2796
  () => ie.value.map((e) => ({
2797
2797
  key: e.key,
@@ -2814,22 +2814,22 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2814
2814
  l && mt(l);
2815
2815
  },
2816
2816
  onMoveUp: (e) => Gt(e),
2817
- onMoveDown: (e) => Ht(e),
2818
- onMoveTop: (e) => Wt(e),
2817
+ onMoveDown: (e) => Wt(e),
2818
+ onMoveTop: (e) => Ht(e),
2819
2819
  onMoveBottom: (e) => Jt(e),
2820
2820
  onIndent: (e) => {
2821
2821
  const l = re(e);
2822
- l && Xt(l);
2822
+ l && Yt(l);
2823
2823
  },
2824
2824
  onOutdent: (e) => {
2825
2825
  const l = re(e);
2826
- l && Yt(l);
2826
+ l && Xt(l);
2827
2827
  },
2828
2828
  onToggleChildren: (e) => {
2829
2829
  const l = re(e);
2830
2830
  l && jt(l);
2831
2831
  },
2832
- onCancelReorder: () => Xe()
2832
+ onCancelReorder: () => Ye()
2833
2833
  }), Zt = _(!1), nt = aa(null), _t = b(() => {
2834
2834
  const e = nt.value;
2835
2835
  if (!e) return null;
@@ -2886,11 +2886,11 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2886
2886
  onAddAfterClick: ua,
2887
2887
  onAddChildClick: fa,
2888
2888
  moveUp: (e) => Gt(e),
2889
- moveDown: (e) => Ht(e),
2890
- moveTop: (e) => Wt(e),
2889
+ moveDown: (e) => Wt(e),
2890
+ moveTop: (e) => Ht(e),
2891
2891
  moveBottom: (e) => Jt(e),
2892
- indent: Xt,
2893
- outdent: Yt,
2892
+ indent: Yt,
2893
+ outdent: Xt,
2894
2894
  openMoveToPosition: $o,
2895
2895
  openChangeParent: Io
2896
2896
  }, Ro = b(() => ie.value.filter((e) => e.parentKey === null)), Ko = (e, l, n) => (i.addItem(l, { afterId: e ?? void 0, childrenAllowed: n }), Le(() => i.commit()), h.value), Lo = (e, l, n) => (v.value.add(e), i.addItem(l, { parentId: e, asFirstChild: !0, childrenAllowed: n }), Le(() => i.commit()), h.value), Vo = (e) => {
@@ -2898,7 +2898,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2898
2898
  }, zo = (e, l, n = null, A = null, j = null) => {
2899
2899
  i.updateItem(e, l), Le(() => i.commit());
2900
2900
  }, Mo = i.unsavedCount, No = () => {
2901
- i.commit(), H.value = /* @__PURE__ */ new Set(), Fe();
2901
+ i.commit(), W.value = /* @__PURE__ */ new Set(), Fe();
2902
2902
  };
2903
2903
  Za(
2904
2904
  () => a.unsavedSectionLabel ? { label: a.unsavedSectionLabel, dirty: i.hasUnsaved.value } : []
@@ -2928,9 +2928,9 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2928
2928
  unsavedCount: Mo,
2929
2929
  clearUnsavedState: No,
2930
2930
  // Expand-aware flattened view (controller's own `viewItems` ignores collapse state).
2931
- viewItems: X,
2931
+ viewItems: Y,
2932
2932
  enterReorderMode: Oe,
2933
- cancelReorderMode: Xe,
2933
+ cancelReorderMode: Ye,
2934
2934
  applyReorder: dt,
2935
2935
  expand: (e) => v.value.add(e),
2936
2936
  collapse: (e) => v.value.delete(e),
@@ -2967,8 +2967,8 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2967
2967
  s(q, {
2968
2968
  variant: "text",
2969
2969
  size: "small",
2970
- disabled: c(We),
2971
- onClick: c(Xe)
2970
+ disabled: c(He),
2971
+ onClick: c(Ye)
2972
2972
  }, {
2973
2973
  default: r(() => [
2974
2974
  N($(c(x)("common.sortable.reorderCancel")), 1)
@@ -2980,8 +2980,8 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2980
2980
  variant: "flat",
2981
2981
  size: "small",
2982
2982
  "prepend-icon": "mdi-check",
2983
- loading: c(We),
2984
- disabled: c(We) || !et.value,
2983
+ loading: c(He),
2984
+ disabled: c(He) || !et.value,
2985
2985
  onClick: c(dt)
2986
2986
  }, {
2987
2987
  default: r(() => [
@@ -2999,7 +2999,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
2999
2999
  onClick: f
3000
3000
  }, {
3001
3001
  default: r(() => [
3002
- s(W, {
3002
+ s(H, {
3003
3003
  icon: o.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
3004
3004
  size: "18"
3005
3005
  }, null, 8, ["icon"]),
@@ -3034,7 +3034,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
3034
3034
  onClick: c(Oe)
3035
3035
  }, {
3036
3036
  default: r(() => [
3037
- s(W, {
3037
+ s(H, {
3038
3038
  icon: "mdi-sort",
3039
3039
  size: "18"
3040
3040
  }),
@@ -3173,7 +3173,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
3173
3173
  class: "a-le-row-add",
3174
3174
  onClick: ft
3175
3175
  }, [
3176
- s(W, {
3176
+ s(H, {
3177
3177
  icon: "mdi-plus",
3178
3178
  size: "18"
3179
3179
  }),
@@ -3204,7 +3204,7 @@ const _n = { class: "d-flex flex-column w-100 px-1 align-center" }, el = { class
3204
3204
  modelValue: c(qt),
3205
3205
  "onUpdate:modelValue": l[2] || (l[2] = (n) => so(qt) ? qt.value = n : null),
3206
3206
  title: tt.value,
3207
- text: Ye.value,
3207
+ text: Xe.value,
3208
3208
  "confirm-label": c(x)("common.sortable.delete"),
3209
3209
  "cancel-label": c(x)("common.button.cancel"),
3210
3210
  error: c(bo),
@@ -3374,7 +3374,7 @@ function Gi(t, C) {
3374
3374
  }) : a;
3375
3375
  };
3376
3376
  }
3377
- function Hi(t, C = {}) {
3377
+ function Wi(t, C = {}) {
3378
3378
  const u = C.keyField ?? "id", a = C.positionField ?? "position", m = C.positionMultiplier ?? 1, h = C.updatePosition === !0;
3379
3379
  h && u === a && console.warn(
3380
3380
  `[list-editor] key-field === position-field ("${u}") with update-position enabled. Reordering renumbers positions and thus changes row keys, breaking dirty/validity tracking. Point key-field at a stable identity field (e.g. "id").`
@@ -3445,7 +3445,7 @@ function Hi(t, C = {}) {
3445
3445
  recalculatePositions: p
3446
3446
  };
3447
3447
  }
3448
- function Wi() {
3448
+ function Hi() {
3449
3449
  const t = _(/* @__PURE__ */ new Map()), C = /* @__PURE__ */ new Set(), u = (y) => t.value.get(y) ?? C, a = (y, x) => {
3450
3450
  x.size === 0 ? t.value.delete(y) : t.value.set(y, x), t.value = new Map(t.value);
3451
3451
  }, m = b(() => {
@@ -3460,7 +3460,7 @@ function Wi() {
3460
3460
  export {
3461
3461
  Ki as ADatatableOrdering,
3462
3462
  Jn as ADatatablePagination,
3463
- Yi as AFilterBooleanSelect,
3463
+ Xi as AFilterBooleanSelect,
3464
3464
  Qi as AFilterDatetimePicker,
3465
3465
  Zi as AFilterInteger,
3466
3466
  _i as AFilterRemoteAutocomplete,
@@ -3509,14 +3509,14 @@ export {
3509
3509
  dn as useFilterHelpers,
3510
3510
  Gi as useGuardedDelete,
3511
3511
  zi as useJobApi,
3512
- Hi as useListEditor,
3512
+ Wi as useListEditor,
3513
3513
  mn as useListEditorController,
3514
3514
  fn as useListEditorStateEntry,
3515
3515
  Es as useNestedListEditor,
3516
3516
  gn as useNestedListEditorController,
3517
3517
  pn as useNestedListEditorStateEntry,
3518
- Wi as useNestedUnsavedKeys,
3519
- Ha as usePagination,
3518
+ Hi as useNestedUnsavedKeys,
3519
+ Wa as usePagination,
3520
3520
  Mi as useSubjectSelect,
3521
3521
  qi as useUnsavedChangesGuard,
3522
3522
  Za as useUnsavedSection,