aloha-vue 2.79.1 → 2.80.0

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.
@@ -27318,21 +27318,24 @@ function jC(e, { emit: t }, { htmlIdLocal: r = n(() => void 0) }) {
27318
27318
  //#endregion
27319
27319
  //#region src/ui/AValidatedJson/compositionAPI/ListModeAPI.js
27320
27320
  function MC(e, { emit: t }, { htmlIdLocal: r = n(() => void 0) }) {
27321
- let i = p(e, "change"), a = p(e, "id"), s = p(e, "modelValue"), c = d(!1), l = n(() => L(s.value) ? s.value : []), u = () => {
27322
- c.value = !0;
27323
- }, f = ({ model: e } = {}) => {
27321
+ let i = p(e, "change"), a = p(e, "id"), s = p(e, "errors"), c = p(e, "valueKey"), l = p(e, "modelValue"), u = d(!1), f = n(() => L(l.value) ? l.value : []), m = n(() => c.value ? f.value.map((e) => Nu({}, c.value, e)) : f.value), h = (e) => c.value ? z(e, c.value) : e, g = (e) => {
27322
+ let t = s.value?.[e];
27323
+ return c.value && (typeof t == "string" || L(t)) ? Nu({}, c.value, t) : t;
27324
+ }, _ = () => {
27325
+ u.value = !0;
27326
+ }, v = ({ model: e } = {}) => {
27324
27327
  if (e) {
27325
- let n = B(l.value);
27326
- n.push(e), t("update:modelValue", B(n)), i.value({
27328
+ let n = B(f.value);
27329
+ n.push(h(e)), t("update:modelValue", B(n)), i.value({
27327
27330
  currentModel: n,
27328
27331
  model: n,
27329
27332
  id: a.value
27330
27333
  });
27331
27334
  }
27332
- c.value = !1;
27333
- }, m = ({ index: e }) => {
27335
+ u.value = !1;
27336
+ }, y = ({ index: e }) => {
27334
27337
  if (e === 0) return;
27335
- let n = B(l.value), s = n[e];
27338
+ let n = B(f.value), s = n[e];
27336
27339
  n.splice(e, 1), n.splice(e - 1, 0, s), t("update:modelValue", B(n)), i.value({
27337
27340
  currentModel: n,
27338
27341
  model: n,
@@ -27340,9 +27343,9 @@ function MC(e, { emit: t }, { htmlIdLocal: r = n(() => void 0) }) {
27340
27343
  }), o().then(() => {
27341
27344
  iv({ selector: `#${r.value}_btn_move_up_${e - 1}` });
27342
27345
  });
27343
- }, h = ({ index: e }) => {
27344
- if (e >= l.value.length - 1) return;
27345
- let n = B(l.value), s = n[e];
27346
+ }, b = ({ index: e }) => {
27347
+ if (e >= f.value.length - 1) return;
27348
+ let n = B(f.value), s = n[e];
27346
27349
  n.splice(e, 1), n.splice(e + 1, 0, s), t("update:modelValue", B(n)), i.value({
27347
27350
  currentModel: n,
27348
27351
  model: n,
@@ -27352,9 +27355,9 @@ function MC(e, { emit: t }, { htmlIdLocal: r = n(() => void 0) }) {
27352
27355
  });
27353
27356
  };
27354
27357
  return {
27355
- closeModalCreateListMode: f,
27358
+ closeModalCreateListMode: v,
27356
27359
  deleteListMode: ({ index: e }) => {
27357
- let n = B(l.value);
27360
+ let n = B(f.value);
27358
27361
  n.splice(e, 1), t("update:modelValue", B(n)), i.value({
27359
27362
  currentModel: n,
27360
27363
  model: n,
@@ -27363,15 +27366,17 @@ function MC(e, { emit: t }, { htmlIdLocal: r = n(() => void 0) }) {
27363
27366
  iv({ selector: `#${r.value}` });
27364
27367
  });
27365
27368
  },
27366
- isModalCreateListModeVisible: c,
27367
- modelListMode: l,
27369
+ isModalCreateListModeVisible: u,
27370
+ getListModeErrors: g,
27371
+ listModeItems: m,
27372
+ modelListMode: f,
27368
27373
  moveListMode: ({ action: e, index: t }) => {
27369
- e === "up" ? m({ index: t }) : h({ index: t });
27374
+ e === "up" ? y({ index: t }) : b({ index: t });
27370
27375
  },
27371
- openModalCreateListMode: u,
27376
+ openModalCreateListMode: _,
27372
27377
  updateListMode: ({ index: e, model: n }) => {
27373
- let r = B(l.value);
27374
- r.splice(e, 1, n), t("update:modelValue", B(r)), i.value({
27378
+ let r = B(f.value);
27379
+ r.splice(e, 1, h(n)), t("update:modelValue", B(r)), i.value({
27375
27380
  currentModel: r,
27376
27381
  model: r,
27377
27382
  id: a.value
@@ -27627,6 +27632,11 @@ var IC = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" f
27627
27632
  required: !1,
27628
27633
  default: () => []
27629
27634
  },
27635
+ valueKey: {
27636
+ type: String,
27637
+ required: !1,
27638
+ default: void 0
27639
+ },
27630
27640
  useFlatErrors: {
27631
27641
  type: Boolean,
27632
27642
  required: !1,
@@ -27644,24 +27654,26 @@ var IC = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" f
27644
27654
  childrenFiltered: g,
27645
27655
  htmlIdLocal: s,
27646
27656
  onChange: l
27647
- }), { closeModalCreateListMode: b, deleteListMode: x, isModalCreateListModeVisible: S, moveListMode: C, modelListMode: w, openModalCreateListMode: T, updateListMode: E } = MC(e, t, { htmlIdLocal: s }), { closeModalCreateJsonMode: D, deleteJsonMode: O, isModelJsonModeEmpty: k, isModalCreateJsonModeVisible: A, modelJsonMode: j, modelJsonModeSorted: M, openModalCreateJsonMode: N, updateJsonMode: P } = jC(e, t, { htmlIdLocal: s });
27657
+ }), { closeModalCreateListMode: b, deleteListMode: x, isModalCreateListModeVisible: S, getListModeErrors: C, listModeItems: w, moveListMode: T, modelListMode: E, openModalCreateListMode: D, updateListMode: O } = MC(e, t, { htmlIdLocal: s }), { closeModalCreateJsonMode: k, deleteJsonMode: A, isModelJsonModeEmpty: j, isModalCreateJsonModeVisible: M, modelJsonMode: N, modelJsonModeSorted: P, openModalCreateJsonMode: ee, updateJsonMode: te } = jC(e, t, { htmlIdLocal: s });
27648
27658
  return _(), {
27649
27659
  childrenFiltered: g,
27650
27660
  blur: p,
27651
27661
  focus: m,
27652
27662
  deleteListMode: x,
27653
- updateListMode: E,
27663
+ updateListMode: O,
27654
27664
  open: h,
27655
27665
  closeModalCreateListMode: b,
27656
27666
  isModalCreateListModeVisible: S,
27657
- modelListMode: w,
27658
- modelJsonModeSorted: M,
27667
+ getListModeErrors: C,
27668
+ listModeItems: w,
27669
+ modelListMode: E,
27670
+ modelJsonModeSorted: P,
27659
27671
  btnIdAdd: f,
27660
27672
  elementLabelTranslated: d,
27661
27673
  singleModeChildren: v,
27662
27674
  singleModeDataFormCheckbox: y,
27663
- moveListMode: C,
27664
- openModalCreateListMode: T,
27675
+ moveListMode: T,
27676
+ openModalCreateListMode: D,
27665
27677
  ariaDescribedbyLocal: i,
27666
27678
  attributesToExcludeFromRender: n,
27667
27679
  checkUndefinedValue: u,
@@ -27670,13 +27682,13 @@ var IC = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" f
27670
27682
  helpTextId: o,
27671
27683
  htmlIdLocal: s,
27672
27684
  isErrors: c,
27673
- closeModalCreateJsonMode: D,
27674
- deleteJsonMode: O,
27675
- isModelJsonModeEmpty: k,
27676
- isModalCreateJsonModeVisible: A,
27677
- modelJsonMode: j,
27678
- openModalCreateJsonMode: N,
27679
- updateJsonMode: P,
27685
+ closeModalCreateJsonMode: k,
27686
+ deleteJsonMode: A,
27687
+ isModelJsonModeEmpty: j,
27688
+ isModalCreateJsonModeVisible: M,
27689
+ modelJsonMode: N,
27690
+ openModalCreateJsonMode: ee,
27691
+ updateJsonMode: te,
27680
27692
  onChange: l
27681
27693
  };
27682
27694
  },
@@ -27733,18 +27745,18 @@ var IC = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" f
27733
27745
  required: this.required,
27734
27746
  slotName: `slotAppend_${this.id}`
27735
27747
  }, { [`slotAppend_${this.id}`]: () => i("div", { class: "a_column a_column_12" }, [
27736
- i("ul", { class: "a_list_group" }, [this.modelListMode.length > 0 ? this.modelListMode.map((e, t) => i(DC, {
27748
+ i("ul", { class: "a_list_group" }, [this.modelListMode.length > 0 ? this.listModeItems.map((e, t) => i(DC, {
27737
27749
  key: t,
27738
27750
  children: this.childrenFiltered,
27739
27751
  deactivateOrdering: this.deactivateOrdering,
27740
27752
  deactivatePreview: this.deactivatePreview,
27741
27753
  elementLabel: this.elementLabelTranslated,
27742
27754
  elementTemplate: this.elementTemplate,
27743
- errors: this.errors?.[t],
27755
+ errors: this.getListModeErrors(t),
27744
27756
  hidePosition: this.hidePosition,
27745
27757
  isLast: t === this.modelListMode.length - 1,
27746
27758
  mode: this.mode,
27747
- modelAll: this.modelListMode,
27759
+ modelAll: this.listModeItems,
27748
27760
  modelIndex: t,
27749
27761
  modelItem: e,
27750
27762
  parentHtmlId: this.htmlIdLocal,
@@ -27782,7 +27794,7 @@ var IC = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" f
27782
27794
  elementLabelTranslated: this.elementLabelTranslated,
27783
27795
  isCreate: !0,
27784
27796
  mode: "list",
27785
- modelAll: this.modelListMode,
27797
+ modelAll: this.listModeItems,
27786
27798
  typedBaseId: this.typedBaseId,
27787
27799
  typedChildren: this.typedChildren,
27788
27800
  uniqueChildrenIds: this.uniqueChildrenIds