@quoreadmin/ui 0.24.7 → 0.24.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.
package/dist/index.js CHANGED
@@ -3556,14 +3556,14 @@ const eC = ue({
3556
3556
  handleDragEnd: A
3557
3557
  };
3558
3558
  }
3559
- }), tC = (t) => (p2("data-v-f1851c91"), t = t(), m2(), t), nC = ["value"], rC = {
3559
+ }), tC = (t) => (p2("data-v-91ada41d"), t = t(), m2(), t), nC = ["value"], rC = {
3560
3560
  key: 0,
3561
3561
  class: "cursor-pointer pb-3"
3562
3562
  }, iC = /* @__PURE__ */ tC(() => /* @__PURE__ */ E("div", { class: "bg-gray-20 h-1 w-11 rounded cursor-pointer mx-auto z-[201]" }, null, -1)), oC = [
3563
3563
  iC
3564
3564
  ], sC = { class: "flex items-center h-6" }, aC = {
3565
3565
  key: 0,
3566
- class: "w-10"
3566
+ class: "w-auto"
3567
3567
  }, lC = { class: "w-10 text-right" };
3568
3568
  function uC(t, e, n, r, i, o) {
3569
3569
  const s = H("q-icon");
@@ -3624,7 +3624,7 @@ function uC(t, e, n, r, i, o) {
3624
3624
  ], 2)
3625
3625
  ], 8, nC);
3626
3626
  }
3627
- const FU = /* @__PURE__ */ we(eC, [["render", uC], ["__scopeId", "data-v-f1851c91"]]), vo = "button-", cC = ue({
3627
+ const FU = /* @__PURE__ */ we(eC, [["render", uC], ["__scopeId", "data-v-91ada41d"]]), vo = "button-", cC = ue({
3628
3628
  name: "QButton",
3629
3629
  props: {
3630
3630
  /** Determines the size (height) of the button */
@@ -15589,22 +15589,22 @@ function WI(t, e, n, r, i, o) {
15589
15589
  }, 8, ["activeIndex", "visible", "value", "numVisible", "showItemNavigators", "showThumbnails", "showIndicators", "base-z-index"]),
15590
15590
  t.files ? (g(), C("div", HI, [
15591
15591
  (g(!0), C(ee, null, ve(t.files, (u, c) => {
15592
- var d;
15592
+ var d, f;
15593
15593
  return g(), C("div", {
15594
15594
  key: u.name || ((d = u.original) == null ? void 0 : d.name) || c,
15595
15595
  class: "py-3 pr-4 relative",
15596
- onMouseover: (f) => u.isHovered = !0,
15597
- onMouseleave: (f) => u.isHovered = !1
15596
+ onMouseover: (h) => u.isHovered = !0,
15597
+ onMouseleave: (h) => u.isHovered = !1
15598
15598
  }, [
15599
15599
  u.type && u.type.includes("image") ? (g(), C("img", {
15600
15600
  key: 0,
15601
15601
  src: (u == null ? void 0 : u.thumbnailImageSrc) || (u == null ? void 0 : u.objectURL) || (u == null ? void 0 : u.thumbnail.url),
15602
15602
  alt: u == null ? void 0 : u.alt,
15603
15603
  class: "rounded-lg cursor-pointer w-20 h-20 object-cover",
15604
- onClick: (f) => t.onOpenCarousel(c, u)
15604
+ onClick: (h) => t.onOpenCarousel(c, u)
15605
15605
  }, null, 8, zI)) : (g(), C("a", {
15606
15606
  key: 1,
15607
- href: u.original.url || u.itemImageSrc || u.objectURL,
15607
+ href: ((f = u.original) == null ? void 0 : f.url) || u.itemImageSrc || u.objectURL,
15608
15608
  class: "bg-gray-00 cursor-pointer p-3 w-20 h-20 max-w-20 rounded-lg border border-gray-20 flex flex-col flex-nowrap justify-center",
15609
15609
  download: ""
15610
15610
  }, [
@@ -15624,7 +15624,7 @@ function WI(t, e, n, r, i, o) {
15624
15624
  color: "inkwell-30",
15625
15625
  shape: "circle",
15626
15626
  class: "cursor-pointer absolute top-1 right-2 shadow-solid",
15627
- onClick: (f) => t.onRemoveFile(u)
15627
+ onClick: (h) => t.onRemoveFile(u)
15628
15628
  }, {
15629
15629
  icon: K(() => [
15630
15630
  T(s, {
@@ -15641,7 +15641,7 @@ function WI(t, e, n, r, i, o) {
15641
15641
  ])) : M("", !0)
15642
15642
  ], 512);
15643
15643
  }
15644
- const Xy = /* @__PURE__ */ we($I, [["render", WI], ["__scopeId", "data-v-81f22f29"]]), UI = ue({
15644
+ const Xy = /* @__PURE__ */ we($I, [["render", WI], ["__scopeId", "data-v-1345d09d"]]), UI = ue({
15645
15645
  name: "QMenu",
15646
15646
  props: {
15647
15647
  /** is menu visible */
@@ -15980,10 +15980,13 @@ const iM = /* @__PURE__ */ we(nM, [["render", rM], ["__scopeId", "data-v-86f2575
15980
15980
  mq: nr
15981
15981
  };
15982
15982
  }
15983
- }), aM = { class: "comment-container flex flex-col mb-5" }, lM = { class: "flex mb-1" }, uM = { class: "grow" }, cM = { class: "w-full block text-sm leading-4 font-bold" }, dM = { class: "text-inkwell-0 text-xs leading-4 block" }, fM = { class: "w-full" }, hM = ["onClick"], pM = { key: 2 };
15983
+ }), aM = {
15984
+ key: 0,
15985
+ class: "comment-container flex flex-col mb-5"
15986
+ }, lM = { class: "flex mb-1" }, uM = { class: "grow" }, cM = { class: "w-full block text-sm leading-4 font-bold" }, dM = { class: "text-inkwell-0 text-xs leading-4 block" }, fM = { class: "w-full" }, hM = ["onClick"], pM = { key: 2 };
15984
15987
  function mM(t, e, n, r, i, o) {
15985
15988
  const s = H("q-avatar"), a = H("q-icon"), l = H("q-popover"), u = H("q-menu"), c = H("q-image-gallery");
15986
- return g(), C("div", aM, [
15989
+ return t.comment || t.attachments.length > 0 ? (g(), C("div", aM, [
15987
15990
  E("div", lM, [
15988
15991
  t.showAvatar ? (g(), D(s, {
15989
15992
  key: 0,
@@ -15995,7 +15998,7 @@ function mM(t, e, n, r, i, o) {
15995
15998
  E("span", cM, q(t.user.name), 1),
15996
15999
  E("span", dM, q(t.dateLocal || t.formatDate), 1)
15997
16000
  ]),
15998
- t.allowedActions.length && t.mq.md && t.comment ? (g(), D(l, {
16001
+ t.allowedActions.length && t.mq.md ? (g(), D(l, {
15999
16002
  key: 1,
16000
16003
  modelValue: t.showControls,
16001
16004
  "onUpdate:modelValue": e[0] || (e[0] = (d) => t.showControls = d),
@@ -16026,7 +16029,7 @@ function mM(t, e, n, r, i, o) {
16026
16029
  ]),
16027
16030
  _: 1
16028
16031
  }, 8, ["modelValue"])) : M("", !0),
16029
- t.allowedActions.length && !t.mq.md && t.comment ? (g(), C("div", pM, [
16032
+ t.allowedActions.length && !t.mq.md ? (g(), C("div", pM, [
16030
16033
  T(a, {
16031
16034
  icon: "ellipsis-h",
16032
16035
  type: "fill",
@@ -16066,9 +16069,9 @@ function mM(t, e, n, r, i, o) {
16066
16069
  "show-remove": t.showRemoveButton,
16067
16070
  "onUpdate:modelValue": t.onRemoveAttachment
16068
16071
  }, null, 8, ["class", "files", "show-remove", "onUpdate:modelValue"])) : M("", !0)
16069
- ]);
16072
+ ])) : M("", !0);
16070
16073
  }
16071
- const gM = /* @__PURE__ */ we(sM, [["render", mM], ["__scopeId", "data-v-4092e9c0"]]), yM = ue({
16074
+ const gM = /* @__PURE__ */ we(sM, [["render", mM], ["__scopeId", "data-v-2bc0fda4"]]), yM = ue({
16072
16075
  name: "QCommentSection",
16073
16076
  components: {
16074
16077
  QComment: gM
@@ -19758,7 +19761,10 @@ const TP = ue({
19758
19761
  e("uploading", u);
19759
19762
  },
19760
19763
  onRemoveFile: (u) => {
19761
- r.value = r.value.filter((c) => JSON.stringify(c) !== JSON.stringify(u));
19764
+ const c = r.value.findIndex(
19765
+ (d) => JSON.stringify(d) === JSON.stringify(u)
19766
+ );
19767
+ c !== -1 && r.value.splice(c, 1);
19762
19768
  },
19763
19769
  onSelectedFiles: (u) => {
19764
19770
  r.value = u.files, e("file-list", r.value);
@@ -34233,7 +34239,7 @@ function tF(t, e, n, r, i, o) {
34233
34239
  ]),
34234
34240
  Object.keys(t.tableFilters).length || t.$slots.tableActions ? (g(), C("div", qB, [
34235
34241
  Object.keys(t.tableFilters).length ? $(t.$slots, "filters", { key: 0 }, () => [
34236
- T(u, { class: "z-[40] ml-2" }, {
34242
+ T(u, { class: "z-[45] ml-2" }, {
34237
34243
  trigger: K(() => [
34238
34244
  E("div", YB, [
34239
34245
  T(s, {
@@ -34304,7 +34310,7 @@ function tF(t, e, n, r, i, o) {
34304
34310
  ])) : M("", !0)
34305
34311
  ], 10, WB);
34306
34312
  }
34307
- const rK = /* @__PURE__ */ we(ZB, [["render", tF], ["__scopeId", "data-v-de74bb56"]]), nF = ue({
34313
+ const rK = /* @__PURE__ */ we(ZB, [["render", tF], ["__scopeId", "data-v-96fd84f5"]]), nF = ue({
34308
34314
  name: "QTag",
34309
34315
  components: {},
34310
34316
  props: {