@pristy/pristy-libvue 2.5.3 → 2.5.4

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.
@@ -64560,6 +64560,14 @@ const dW = /* @__PURE__ */ ue(UZ, [["render", cW]]), uW = {
64560
64560
  hideViewSelector: {
64561
64561
  type: Boolean,
64562
64562
  default: !1
64563
+ },
64564
+ /**
64565
+ * When true, bypasses the isPristyAdmin check for editing loaded views.
64566
+ * Useful for admin pages where the user already has edit permissions.
64567
+ */
64568
+ canEditLoadedView: {
64569
+ type: Boolean,
64570
+ default: !1
64563
64571
  }
64564
64572
  },
64565
64573
  emits: [
@@ -64627,7 +64635,7 @@ const dW = /* @__PURE__ */ ue(UZ, [["render", cW]]), uW = {
64627
64635
  return this.loadedView !== null;
64628
64636
  },
64629
64637
  canManageLoadedView() {
64630
- return this.isSavedViewLoaded ? this.loadedView.scope === "user" ? !0 : this.loadedView.scope === "global" ? this.isPristyAdmin : !1 : !1;
64638
+ return this.isSavedViewLoaded ? this.canEditLoadedView || this.loadedView.scope === "user" ? !0 : this.loadedView.scope === "global" ? this.isPristyAdmin : !1 : !1;
64631
64639
  },
64632
64640
  viewToEdit() {
64633
64641
  return this.saveViewDialogMode === "edit" ? this.loadedView : null;
@@ -71350,7 +71358,7 @@ const lF = /* @__PURE__ */ ue(NY, [["render", RY], ["__scopeId", "data-v-63fa555
71350
71358
  });
71351
71359
  }, K = async () => {
71352
71360
  try {
71353
- const { default: Re } = await import("./jszip.min-BrgORSfj.js").then((oe) => oe.j), ne = new Re(), he = n.views.map(async (oe) => {
71361
+ const { default: Re } = await import("./jszip.min-8PfeYdht.js").then((oe) => oe.j), ne = new Re(), he = n.views.map(async (oe) => {
71354
71362
  const me = await Ma.getView(oe.name);
71355
71363
  ne.file(oe.name, JSON.stringify(me, null, 2));
71356
71364
  });
@@ -78786,4 +78794,4 @@ export {
78786
78794
  LM as y,
78787
78795
  Xg as z
78788
78796
  };
78789
- //# sourceMappingURL=index-DYatiWG2.js.map
78797
+ //# sourceMappingURL=index-BbVzbEij.js.map