bt-core-app 1.4.737 → 1.4.739

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.
@@ -42712,7 +42712,7 @@ const Cj = ze({
42712
42712
  Ce();
42713
42713
  else if (G != null) {
42714
42714
  var Se = G.find((ae) => ae.id == h.id.value);
42715
- Se != null && (B.value = Se, W(), se());
42715
+ Se != null && (ee.value = Se, W(), se());
42716
42716
  }
42717
42717
  }
42718
42718
  },
@@ -42722,32 +42722,32 @@ const Cj = ze({
42722
42722
  var G;
42723
42723
  return !(b.value >= l.value.length || ((G = m.value) == null ? void 0 : G.onCanMoveNext) != null && m.value.onCanMoveNext({
42724
42724
  isChanged: te.value,
42725
- item: B.value,
42726
- meta: ee.value,
42725
+ item: ee.value,
42726
+ meta: B.value,
42727
42727
  mode: h.mode.value
42728
42728
  }) !== !0);
42729
42729
  }), x = T(() => b.value > 0), w = T(() => {
42730
42730
  var G;
42731
42731
  return !!(((G = m.value) == null ? void 0 : G.onCanSave) != null && m.value.onCanSave({
42732
42732
  isChanged: te.value,
42733
- item: B.value,
42734
- meta: ee.value,
42733
+ item: ee.value,
42734
+ meta: B.value,
42735
42735
  mode: h.mode.value
42736
42736
  }) && te.value || b.value >= l.value.length && te.value);
42737
42737
  }), _ = T(() => {
42738
42738
  var G;
42739
42739
  return !!(((G = m.value) == null ? void 0 : G.onCanSave) != null && m.value.onCanSave({
42740
42740
  isChanged: te.value,
42741
- item: B.value,
42742
- meta: ee.value,
42741
+ item: ee.value,
42742
+ meta: B.value,
42743
42743
  mode: h.mode.value
42744
42744
  }) && !te.value || b.value >= l.value.length && !te.value);
42745
42745
  }), C = T(() => {
42746
42746
  var G;
42747
42747
  return !!(((G = m.value) == null ? void 0 : G.onCanSkip) != null && m.value.onCanSkip({
42748
42748
  isChanged: te.value,
42749
- item: B.value,
42750
- meta: ee.value,
42749
+ item: ee.value,
42750
+ meta: B.value,
42751
42751
  mode: h.mode.value
42752
42752
  }));
42753
42753
  }), M = T(() => a.nav != null && !f.canEdit(a.nav) ? !1 : h.isEditing.value);
@@ -42762,9 +42762,9 @@ const Cj = ze({
42762
42762
  }), U = T(() => {
42763
42763
  var G, Se;
42764
42764
  return ((G = m.value) == null ? void 0 : G.label) != null ? m.value.label : ((Se = m.value) == null ? void 0 : Se.getLabel) != null ? m.value.getLabel({
42765
- item: B.value,
42766
- meta: ee.value
42767
- }) : a.getLabel != null ? a.getLabel(B.value, m.value) : v(a.nav ?? a.bladeName ?? "");
42765
+ item: ee.value,
42766
+ meta: B.value
42767
+ }) : a.getLabel != null ? a.getLabel(ee.value, m.value) : v(a.nav ?? a.bladeName ?? "");
42768
42768
  }), X = T(() => a.variant == "dialog" && (a.canSearch || xt(a.searchProps))), Z = T(() => a.variant == "inline" && (a.canSearch || xt(a.searchProps))), Y = T(() => {
42769
42769
  if (a.actualHeight != null)
42770
42770
  return `height: calc(${a.actualHeight})`;
@@ -42782,19 +42782,19 @@ const Cj = ze({
42782
42782
  Z.value ? G = (Se = i.value) == null ? void 0 : Se.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])") : h.showSearch.value && (G = (ae = r.value) == null ? void 0 : ae.$el.querySelector("input:not([type=hidden]),textarea:not([type=hidden])")), G == null || G.focus();
42783
42783
  });
42784
42784
  }
42785
- const B = q(), ee = q(), { isChanged: te, restartTracker: W } = kT(B, {
42785
+ const B = q(), { asyncItem: ee, isChanged: te, restartTracker: W } = kT(void 0, {
42786
42786
  useTracker: a.trackChanges,
42787
42787
  propsToIgnore: a.trackIgnoreProps,
42788
42788
  propsToTrack: a.trackProps
42789
42789
  });
42790
42790
  async function fe(G) {
42791
42791
  var Se;
42792
- if (B.value = a.onSelectAsync != null ? await a.onSelectAsync(Hu(G), G) : Hu(G), ee.value = {}, ((Se = B.value) == null ? void 0 : Se.id) != null) {
42792
+ if (ee.value = a.onSelectAsync != null ? await a.onSelectAsync(Hu(G), G) : Hu(G), B.value = {}, ((Se = ee.value) == null ? void 0 : Se.id) != null) {
42793
42793
  const ae = {
42794
42794
  ...s,
42795
42795
  params: {
42796
42796
  ...s.params,
42797
- id: B.value.id
42797
+ id: ee.value.id
42798
42798
  },
42799
42799
  query: {},
42800
42800
  replace: !0
@@ -42805,15 +42805,15 @@ const Cj = ze({
42805
42805
  }
42806
42806
  async function Ce() {
42807
42807
  var G = a.onGetNewAsync ?? (async () => ({}));
42808
- h.mode.value = "new", B.value = await G(), ee.value = {}, W(), se();
42808
+ h.mode.value = "new", ee.value = await G(), B.value = {}, W(), se();
42809
42809
  }
42810
42810
  function se() {
42811
42811
  var ae, we;
42812
42812
  var G = b.value + 1;
42813
42813
  if (((ae = m.value) == null ? void 0 : ae.onMoveNext) != null) {
42814
42814
  var Se = (we = m.value) == null ? void 0 : we.onMoveNext({
42815
- item: B.value,
42816
- meta: ee.value,
42815
+ item: ee.value,
42816
+ meta: B.value,
42817
42817
  mode: h.mode.value,
42818
42818
  next: G
42819
42819
  });
@@ -42833,8 +42833,8 @@ const Cj = ze({
42833
42833
  var ae = l.value[Se];
42834
42834
  if (ae.onMoveInto != null) {
42835
42835
  var we = ae.onMoveInto({
42836
- item: B.value,
42837
- meta: ee.value,
42836
+ item: ee.value,
42837
+ meta: B.value,
42838
42838
  mode: h.mode.value,
42839
42839
  from: b.value,
42840
42840
  thisStep: G
@@ -42861,10 +42861,10 @@ const Cj = ze({
42861
42861
  }
42862
42862
  async function me() {
42863
42863
  var ae;
42864
- if (B.value != null) {
42865
- var G = await h.saveItem(B.value);
42864
+ if (ee.value != null) {
42865
+ var G = await h.saveItem(ee.value);
42866
42866
  if (G != null) {
42867
- B.value = Hu(G), W();
42867
+ ee.value = Hu(G), W();
42868
42868
  var Se = ((ae = m.value) == null ? void 0 : ae.onSaveMoveNext) ?? 0;
42869
42869
  typeof Se == "number" ? O(Se) : typeof Se == "boolean" && Se == !0 && se();
42870
42870
  }
@@ -42884,8 +42884,8 @@ const Cj = ze({
42884
42884
  canRestart: x,
42885
42885
  canSave: w,
42886
42886
  canSkip: C,
42887
- currentItem: B,
42888
- currentMeta: ee,
42887
+ currentItem: ee,
42888
+ currentMeta: B,
42889
42889
  currentStepData: m,
42890
42890
  isChanged: te,
42891
42891
  lastStep: b,
@@ -43230,8 +43230,8 @@ const Cj = ze({
43230
43230
  G.useStepHeader != !1 || b.value != 0 ? (R(), oe("div", Nj, [
43231
43231
  pe(G.$slots, "step-toolbar", {
43232
43232
  back: () => Be(),
43233
- item: B.value,
43234
- meta: ee.value,
43233
+ item: D(ee),
43234
+ meta: B.value,
43235
43235
  navTo: O,
43236
43236
  nextStep: se,
43237
43237
  title: U.value
@@ -43278,7 +43278,7 @@ const Cj = ze({
43278
43278
  y(Ro, null, {
43279
43279
  default: j(() => [
43280
43280
  pe(G.$slots, "firstStep", {
43281
- meta: ee.value,
43281
+ meta: B.value,
43282
43282
  mode: D(h).mode.value,
43283
43283
  navTo: O,
43284
43284
  navToName: Q,
@@ -43563,8 +43563,9 @@ const Cj = ze({
43563
43563
  }, {
43564
43564
  default: j(() => [
43565
43565
  pe(G.$slots, `${Fe.name}-top`, {
43566
- item: B.value,
43567
- meta: ee.value,
43566
+ isChanged: D(te),
43567
+ item: D(ee),
43568
+ meta: B.value,
43568
43569
  mode: D(h).mode.value,
43569
43570
  navTo: O,
43570
43571
  navToName: Q,
@@ -43576,9 +43577,10 @@ const Cj = ze({
43576
43577
  }, Ht({
43577
43578
  default: j(() => [
43578
43579
  pe(G.$slots, `${Fe.name}`, {
43579
- meta: ee.value,
43580
+ meta: B.value,
43580
43581
  mode: D(h).mode.value,
43581
- item: B.value,
43582
+ isChanged: D(te),
43583
+ item: D(ee),
43582
43584
  navTo: O,
43583
43585
  navToName: Q,
43584
43586
  nextStep: se,
@@ -43592,9 +43594,10 @@ const Cj = ze({
43592
43594
  name: "actions",
43593
43595
  fn: j(() => [
43594
43596
  pe(G.$slots, `${Fe.name}-actions`, {
43595
- meta: ee.value,
43597
+ meta: B.value,
43596
43598
  mode: D(h).mode.value,
43597
- item: B.value,
43599
+ isChanged: D(te),
43600
+ item: D(ee),
43598
43601
  canMoveNext: S.value,
43599
43602
  canSave: w.value,
43600
43603
  canSkip: C.value,
@@ -43651,7 +43654,7 @@ const Cj = ze({
43651
43654
  }, 8, ["bladeName", "density", "flat", "errorMsg", "hideSubtoolbar", "hideToolbar", "label", "loadingMsg", "preset", "size", "transparent", "variant"]);
43652
43655
  };
43653
43656
  }
43654
- }), nie = /* @__PURE__ */ Af(Hj, [["__scopeId", "data-v-4d903293"]]), Wj = { class: "d-flex align-center" }, aie = /* @__PURE__ */ Ke({
43657
+ }), nie = /* @__PURE__ */ Af(Hj, [["__scopeId", "data-v-846817c8"]]), Wj = { class: "d-flex align-center" }, aie = /* @__PURE__ */ Ke({
43655
43658
  __name: "BT-Dialog-Select",
43656
43659
  setup(e) {
43657
43660
  const t = q(!1), n = q({}), a = q([]), { getValue: l } = CT();
@@ -76056,9 +76059,9 @@ const $le = ze({
76056
76059
  return _e(() => a.openToggle, () => {
76057
76060
  l.value = !0;
76058
76061
  }), _e(() => a.modelValue, (L) => {
76059
- p(L);
76062
+ console.log("model value changed. reloading schema"), p(L);
76060
76063
  }), vt(() => {
76061
- p(a.modelValue);
76064
+ console.log("mounted. loading schema"), p(a.modelValue);
76062
76065
  }), (L, V) => D(x) != null ? (R(), oe("div", Lle, [
76063
76066
  y(Ki, {
76064
76067
  fullscreen: "",