@maxtropy/v-components 0.1.18-beta.4 → 0.1.18-beta.9

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.
@@ -27654,6 +27654,7 @@ const qpe = ["onClick"], fg = /* @__PURE__ */ te({
27654
27654
  customClass: { default: "" },
27655
27655
  devMenu: { default: void 0 },
27656
27656
  options: { default: () => [] },
27657
+ externalOptionsOnly: { type: Boolean, default: !1 },
27657
27658
  reassign: { type: Boolean, default: !1 },
27658
27659
  itemClick: { type: Function, default: void 0 }
27659
27660
  },
@@ -27661,7 +27662,7 @@ const qpe = ["onClick"], fg = /* @__PURE__ */ te({
27661
27662
  setup(e, { emit: t }) {
27662
27663
  const n = e, r = QC();
27663
27664
  let a = U([]);
27664
- ky((f) => a.value = f ?? []);
27665
+ n.externalOptionsOnly || ky((f) => a.value = f ?? []);
27665
27666
  const i = L(() => {
27666
27667
  var f;
27667
27668
  if (n.devMenu && process.env.NODE_ENV === "development") {
@@ -27674,6 +27675,8 @@ const qpe = ["onClick"], fg = /* @__PURE__ */ te({
27674
27675
  }
27675
27676
  return a.value;
27676
27677
  }), o = L(() => j_(i.value)), s = L(() => Jhe(i.value ?? [])), l = U(), u = L(() => {
27678
+ if (n.externalOptionsOnly)
27679
+ return [...(n == null ? void 0 : n.options) ?? []];
27677
27680
  if (l.value && !n.reassign) {
27678
27681
  let f = o.value[l.value] ?? o.value["/" + l.value];
27679
27682
  if (f)
@@ -27694,6 +27697,8 @@ const qpe = ["onClick"], fg = /* @__PURE__ */ te({
27694
27697
  Ce(
27695
27698
  r,
27696
27699
  () => {
27700
+ if (n.externalOptionsOnly)
27701
+ return;
27697
27702
  const { hash: f, pathname: d, search: h } = window.location;
27698
27703
  let v = d;
27699
27704
  const g = [0, 6];
@@ -29695,64 +29700,65 @@ Lg.install = (e) => {
29695
29700
  const cge = { class: "page-content-header" }, fge = { class: "page-content-main" }, dge = { class: "main-content" }, hge = /* @__PURE__ */ te({
29696
29701
  __name: "wrapper",
29697
29702
  setup(e) {
29698
- const { customTheme: t } = Ve("customTheme", {}), n = U(), r = U(), a = qQ(), i = QC();
29703
+ const { customTheme: t } = Ve("customTheme", {}), n = U(), r = U(), a = qQ(), i = QC(), o = !!lo();
29699
29704
  Rt("breadCrumbOptions", {
29700
29705
  breadCrumbOptions: r,
29701
- updateOptions: (u) => {
29702
- r.value = u;
29706
+ updateOptions: (c) => {
29707
+ r.value = c;
29703
29708
  }
29704
29709
  }), Ce(i, () => {
29705
- r.value = [];
29710
+ o || (r.value = []);
29706
29711
  });
29707
- const s = (u) => {
29708
- u && u.path && a.push(u.path);
29712
+ const l = (c) => {
29713
+ c && c.path && a.push(c.path);
29709
29714
  };
29710
29715
  Ce(
29711
29716
  t,
29712
- (u) => {
29713
- n.value = u || Ho.get(Qo);
29717
+ (c) => {
29718
+ n.value = c || Ho.get(Qo);
29714
29719
  },
29715
29720
  {
29716
29721
  immediate: !0
29717
29722
  }
29718
29723
  );
29719
- const l = (u) => {
29720
- u != null && u.theme && (n.value = (t == null ? void 0 : t.value) || u.theme.theme);
29724
+ const u = (c) => {
29725
+ c != null && c.theme && (n.value = (t == null ? void 0 : t.value) || c.theme.theme), o && Array.isArray(c == null ? void 0 : c.routes) && (r.value = c.routes);
29721
29726
  };
29722
29727
  return Ct(() => {
29723
- if (lo())
29724
- window.microApp.addDataListener(l, !0);
29728
+ if (o)
29729
+ window.microApp.addDataListener(u, !0);
29725
29730
  else {
29726
- const u = new BroadcastChannel("isv-theme-channel");
29727
- u.onmessage = (c) => {
29728
- const { latestTheme: f } = c.data;
29729
- n.value = (t == null ? void 0 : t.value) || f;
29731
+ const c = new BroadcastChannel("isv-theme-channel");
29732
+ c.onmessage = (f) => {
29733
+ const { latestTheme: d } = f.data;
29734
+ n.value = (t == null ? void 0 : t.value) || d;
29730
29735
  };
29731
29736
  }
29732
29737
  }), Yo(() => {
29733
- var u, c;
29734
- (c = (u = window.microApp) == null ? void 0 : u.removeDataListener) == null || c.call(u, l);
29735
- }), (u, c) => {
29736
- const f = ze("BreadCrumb");
29738
+ var c, f;
29739
+ (f = (c = window.microApp) == null ? void 0 : c.removeDataListener) == null || f.call(c, u);
29740
+ }), (c, f) => {
29741
+ const d = ze("BreadCrumb");
29737
29742
  return B(), G("div", {
29738
29743
  class: H(["mx-page-content", n.value === A(da).DARK && "mx-dark-wrapper"])
29739
29744
  }, [
29740
29745
  J("div", cge, [
29741
- ne(f, {
29746
+ ne(d, {
29742
29747
  options: r.value,
29743
- onItemClick: s
29748
+ "external-options-only": o,
29749
+ onItemClick: l
29744
29750
  }, null, 8, ["options"])
29745
29751
  ]),
29746
29752
  J("div", fge, [
29747
29753
  J("div", dge, [
29748
- pe(u.$slots, "default", {}, void 0, !0)
29754
+ pe(c.$slots, "default", {}, void 0, !0)
29749
29755
  ])
29750
29756
  ])
29751
29757
  ], 2);
29752
29758
  };
29753
29759
  }
29754
29760
  });
29755
- const Ng = /* @__PURE__ */ _n(hge, [["__scopeId", "data-v-3b63510f"]]);
29761
+ const Ng = /* @__PURE__ */ _n(hge, [["__scopeId", "data-v-170e0d29"]]);
29756
29762
  Ng.install = (e) => {
29757
29763
  e.component(Ng.__name, Ng);
29758
29764
  };