@quoreadmin/ui 0.24.5 → 0.24.6
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 +38 -33
- package/dist/index.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3556,9 +3556,9 @@ const X9 = ue({
|
|
|
3556
3556
|
handleDragEnd: A
|
|
3557
3557
|
};
|
|
3558
3558
|
}
|
|
3559
|
-
}), eC = (t) => (p2("data-v-
|
|
3559
|
+
}), eC = (t) => (p2("data-v-f1851c91"), t = t(), m2(), t), tC = ["value"], nC = {
|
|
3560
3560
|
key: 0,
|
|
3561
|
-
class: "cursor-pointer pb-
|
|
3561
|
+
class: "cursor-pointer pb-3"
|
|
3562
3562
|
}, rC = /* @__PURE__ */ eC(() => /* @__PURE__ */ E("div", { class: "bg-gray-20 h-1 w-11 rounded cursor-pointer mx-auto z-[201]" }, null, -1)), iC = [
|
|
3563
3563
|
rC
|
|
3564
3564
|
], oC = { class: "flex items-center h-6" }, sC = {
|
|
@@ -3624,7 +3624,7 @@ function lC(t, e, n, r, i, o) {
|
|
|
3624
3624
|
], 2)
|
|
3625
3625
|
], 8, tC);
|
|
3626
3626
|
}
|
|
3627
|
-
const FU = /* @__PURE__ */ we(X9, [["render", lC], ["__scopeId", "data-v-
|
|
3627
|
+
const FU = /* @__PURE__ */ we(X9, [["render", lC], ["__scopeId", "data-v-f1851c91"]]), vo = "button-", uC = ue({
|
|
3628
3628
|
name: "QButton",
|
|
3629
3629
|
props: {
|
|
3630
3630
|
/** Determines the size (height) of the button */
|
|
@@ -14012,34 +14012,37 @@ const BE = /* @__PURE__ */ we($E, [["render", NE], ["__scopeId", "data-v-86f2575
|
|
|
14012
14012
|
},
|
|
14013
14013
|
props: FE,
|
|
14014
14014
|
emits: ["edit:comment", "delete:comment"],
|
|
14015
|
-
setup(t) {
|
|
14016
|
-
const { t:
|
|
14017
|
-
const
|
|
14018
|
-
return t.canEdit &&
|
|
14019
|
-
text:
|
|
14015
|
+
setup(t, { emit: e }) {
|
|
14016
|
+
const { t: n } = ds(), r = [{ text: n("HC_CANCEL") }], i = V(!1), o = z(() => {
|
|
14017
|
+
const d = [];
|
|
14018
|
+
return t.canEdit && d.push({
|
|
14019
|
+
text: n("HC_EDIT_COMMENT"),
|
|
14020
14020
|
classes: "!text-blue-20 md:!text-inkwell-0",
|
|
14021
14021
|
click: "edit:comment"
|
|
14022
|
-
}), t.canDelete &&
|
|
14023
|
-
text:
|
|
14022
|
+
}), t.canDelete && d.push({
|
|
14023
|
+
text: n("HC_DELETE_COMMENT"),
|
|
14024
14024
|
classes: "!text-red-20",
|
|
14025
14025
|
click: "delete:comment"
|
|
14026
|
-
}),
|
|
14027
|
-
}),
|
|
14026
|
+
}), d;
|
|
14027
|
+
}), s = z(() => t.user.firstName + " " + t.user.lastName.substring(0, 1)), a = z(() => je.fromISO(t.dateUtc).toLocaleString(
|
|
14028
14028
|
je.DATETIME_MED
|
|
14029
|
-
)),
|
|
14029
|
+
)), l = z(() => t.user.name.split(" ").map((d) => d.trim().charAt(0)).join("").toUpperCase());
|
|
14030
14030
|
return {
|
|
14031
14031
|
// static
|
|
14032
|
-
menuActions:
|
|
14032
|
+
menuActions: r,
|
|
14033
14033
|
// refs
|
|
14034
|
-
showControls:
|
|
14034
|
+
showControls: i,
|
|
14035
14035
|
// computed
|
|
14036
|
-
allowedActions:
|
|
14037
|
-
displayName:
|
|
14038
|
-
formatDate:
|
|
14039
|
-
userInitials:
|
|
14036
|
+
allowedActions: o,
|
|
14037
|
+
displayName: s,
|
|
14038
|
+
formatDate: a,
|
|
14039
|
+
userInitials: l,
|
|
14040
14040
|
// methods
|
|
14041
14041
|
onClick: () => {
|
|
14042
|
-
|
|
14042
|
+
i.value = !i.value;
|
|
14043
|
+
},
|
|
14044
|
+
onClickLink: (d, f) => {
|
|
14045
|
+
e(d.click, f), i.value = !i.value;
|
|
14043
14046
|
},
|
|
14044
14047
|
// composables
|
|
14045
14048
|
mq: nr
|
|
@@ -14057,10 +14060,10 @@ function GE(t, e, n, r, i, o) {
|
|
|
14057
14060
|
class: "mr-4"
|
|
14058
14061
|
}, null, 8, ["src", "text"])) : M("", !0),
|
|
14059
14062
|
E("div", zE, [
|
|
14060
|
-
E("span", jE, q(t.user.name)
|
|
14063
|
+
E("span", jE, q(t.user.name), 1),
|
|
14061
14064
|
E("span", ZE, q(t.dateLocal || t.formatDate), 1)
|
|
14062
14065
|
]),
|
|
14063
|
-
t.allowedActions.length && t.mq.md ? (g(), D(l, {
|
|
14066
|
+
t.allowedActions.length && t.mq.md && t.comment ? (g(), D(l, {
|
|
14064
14067
|
key: 1,
|
|
14065
14068
|
modelValue: t.showControls,
|
|
14066
14069
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.showControls = c),
|
|
@@ -14091,7 +14094,7 @@ function GE(t, e, n, r, i, o) {
|
|
|
14091
14094
|
]),
|
|
14092
14095
|
_: 1
|
|
14093
14096
|
}, 8, ["modelValue"])) : M("", !0),
|
|
14094
|
-
t.allowedActions.length && !t.mq.md ? (g(), C("div", KE, [
|
|
14097
|
+
t.allowedActions.length && !t.mq.md && t.comment ? (g(), C("div", KE, [
|
|
14095
14098
|
T(a, {
|
|
14096
14099
|
icon: "ellipsis-h",
|
|
14097
14100
|
type: "fill",
|
|
@@ -14108,7 +14111,7 @@ function GE(t, e, n, r, i, o) {
|
|
|
14108
14111
|
actions: t.menuActions,
|
|
14109
14112
|
links: t.allowedActions,
|
|
14110
14113
|
"links-background": "light-gray",
|
|
14111
|
-
"onClick:link": e[2] || (e[2] = (c) => t
|
|
14114
|
+
"onClick:link": e[2] || (e[2] = (c) => t.onClickLink(c, t.id)),
|
|
14112
14115
|
"onClick:action": t.onClick
|
|
14113
14116
|
}, null, 8, ["modelValue", "actions", "links", "onClick:action"])) : M("", !0)
|
|
14114
14117
|
]),
|
|
@@ -14123,7 +14126,7 @@ function GE(t, e, n, r, i, o) {
|
|
|
14123
14126
|
], 2)
|
|
14124
14127
|
]);
|
|
14125
14128
|
}
|
|
14126
|
-
const qE = /* @__PURE__ */ we(VE, [["render", GE], ["__scopeId", "data-v-
|
|
14129
|
+
const qE = /* @__PURE__ */ we(VE, [["render", GE], ["__scopeId", "data-v-488363db"]]), YE = ue({
|
|
14127
14130
|
name: "QCommentSection",
|
|
14128
14131
|
components: {
|
|
14129
14132
|
QComment: qE
|
|
@@ -20583,21 +20586,23 @@ const YU = /* @__PURE__ */ we(oD, [["render", aD], ["__scopeId", "data-v-320db1d
|
|
|
20583
20586
|
delay: 100
|
|
20584
20587
|
});
|
|
20585
20588
|
const v = (A) => {
|
|
20586
|
-
A.tap || (o.value = !0);
|
|
20589
|
+
A.tap || A.axis === "x" || (o.value = !0);
|
|
20587
20590
|
}, b = (A) => {
|
|
20588
|
-
if (A.tap)
|
|
20591
|
+
if (A.tap || A.axis === "x")
|
|
20589
20592
|
return;
|
|
20590
20593
|
const k = A.direction[1], x = k >= 0, P = k <= 0 && n.value <= 0;
|
|
20591
|
-
!a.value && (x || P) && S(!P), o.value = !1;
|
|
20592
|
-
}, S = async (A) => {
|
|
20593
|
-
a.value = A,
|
|
20594
|
-
|
|
20595
|
-
|
|
20594
|
+
!a.value && (x || P) && S(!P, "drag"), o.value = !1;
|
|
20595
|
+
}, S = async (A, k) => {
|
|
20596
|
+
if (a.value = A, k === "scroll")
|
|
20597
|
+
return;
|
|
20598
|
+
await Jn();
|
|
20599
|
+
const x = c.value ? c.value.offsetHeight : 0;
|
|
20600
|
+
f("y", x, d, l);
|
|
20596
20601
|
}, w = c8(() => {
|
|
20597
20602
|
const A = Math.max(0, n.value) > r.value ? "down" : "up";
|
|
20598
20603
|
A !== i.value && (i.value = A);
|
|
20599
20604
|
const k = window.innerHeight + n.value >= document.body.offsetHeight;
|
|
20600
|
-
n.value < 0 || i.value === "up" && !a.value && !k ? S(!0) : i.value === "down" && a.value && S(!1), r.value = Math.max(0, n.value);
|
|
20605
|
+
n.value < 0 || i.value === "up" && !a.value && !k ? S(!0, "scroll") : i.value === "down" && a.value && S(!1, "scroll"), r.value = Math.max(0, n.value);
|
|
20601
20606
|
}, 50);
|
|
20602
20607
|
return Ze(() => {
|
|
20603
20608
|
s.value && window.addEventListener("scroll", w);
|