@quoreadmin/ui 0.28.8 → 0.28.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 +44 -41
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64675,40 +64675,44 @@ const upe = /* @__PURE__ */ _e(X0e, [["render", lue], ["__scopeId", "data-v-cfe1
|
|
|
64675
64675
|
emits: ["update:state", "cancel:reset"],
|
|
64676
64676
|
setup(n, { emit: e }) {
|
|
64677
64677
|
const { deviceType: t } = Pp(), r = F(() => {
|
|
64678
|
-
}), i = F(
|
|
64679
|
-
|
|
64680
|
-
|
|
64681
|
-
|
|
64682
|
-
|
|
64683
|
-
|
|
64684
|
-
|
|
64685
|
-
|
|
64686
|
-
|
|
64687
|
-
|
|
64688
|
-
|
|
64689
|
-
|
|
64690
|
-
|
|
64691
|
-
|
|
64692
|
-
|
|
64693
|
-
|
|
64694
|
-
|
|
64678
|
+
}), i = F(() => {
|
|
64679
|
+
}), s = F(!1), o = F(""), a = K(() => Object.keys(n.states).find(
|
|
64680
|
+
(p) => n.states[p] === 1
|
|
64681
|
+
)), l = K(() => n.disabled || !!n.states.loading), u = K(() => {
|
|
64682
|
+
let p = n.options;
|
|
64683
|
+
return n.isChecklist && (p = p.filter(
|
|
64684
|
+
(g) => g.state === "pass"
|
|
64685
|
+
)), d.value && p.sort((g, y) => g.mobileOrder - y.mobileOrder), p;
|
|
64686
|
+
}), c = K(() => u.value.find(
|
|
64687
|
+
(p) => p.state === o.value
|
|
64688
|
+
)), d = K(() => t.value !== "desktop" || !Un.md), f = (p, g) => {
|
|
64689
|
+
const y = ["failed", "repaired"];
|
|
64690
|
+
n.promptFailCountReset && !y.includes(g) ? (s.value = !0, i.value = async () => {
|
|
64691
|
+
h(p, g), s.value = !1;
|
|
64692
|
+
}, r.value = async () => {
|
|
64693
|
+
s.value = !1, e("cancel:reset", p);
|
|
64694
|
+
}) : h(p, g);
|
|
64695
|
+
}, h = (p, g) => {
|
|
64696
|
+
const y = a.value === g ? "default" : g;
|
|
64697
|
+
o.value = y, e("update:state", { state: y, event: p });
|
|
64695
64698
|
};
|
|
64696
64699
|
return ut(() => {
|
|
64697
|
-
n.isColorKey || (
|
|
64700
|
+
n.isColorKey || (o.value = a.value || "");
|
|
64698
64701
|
}), {
|
|
64699
64702
|
// Refs
|
|
64700
|
-
|
|
64701
|
-
|
|
64702
|
-
|
|
64703
|
+
cancelReset: r,
|
|
64704
|
+
confirmReset: i,
|
|
64705
|
+
resetModal: s,
|
|
64706
|
+
selectedState: o,
|
|
64703
64707
|
// Computed
|
|
64704
|
-
currentState:
|
|
64705
|
-
filteredAndSortedOptions:
|
|
64706
|
-
isDisabled:
|
|
64707
|
-
selectedOption:
|
|
64708
|
-
shouldUseSwipe:
|
|
64708
|
+
currentState: a,
|
|
64709
|
+
filteredAndSortedOptions: u,
|
|
64710
|
+
isDisabled: l,
|
|
64711
|
+
selectedOption: c,
|
|
64712
|
+
shouldUseSwipe: d,
|
|
64709
64713
|
// Methods
|
|
64710
|
-
onActionClick:
|
|
64711
|
-
onSetState:
|
|
64714
|
+
onActionClick: f,
|
|
64715
|
+
onSetState: h,
|
|
64712
64716
|
// Composable
|
|
64713
64717
|
mq: Un
|
|
64714
64718
|
};
|
|
@@ -64776,7 +64780,8 @@ function pue(n, e, t, r, i, s) {
|
|
|
64776
64780
|
key: 3,
|
|
64777
64781
|
class: j([
|
|
64778
64782
|
"q-icon-action-group flex justify-center actions z-20 inset-y-0 cursor-pointer border-white border-l-px",
|
|
64779
|
-
n.isChecklist ? "shrink-0" : "absolute right-0 w-0"
|
|
64783
|
+
n.isChecklist ? "shrink-0" : "absolute right-0 w-0",
|
|
64784
|
+
n.isDisabled ? "pointer-events-none" : ""
|
|
64780
64785
|
])
|
|
64781
64786
|
}, [
|
|
64782
64787
|
(w(!0), A(he, null, xe(n.filteredAndSortedOptions, (c, d) => (w(), A("div", N({
|
|
@@ -64784,7 +64789,7 @@ function pue(n, e, t, r, i, s) {
|
|
|
64784
64789
|
class: [
|
|
64785
64790
|
"flex items-center justify-center shrink overflow-hidden max-w-[4.5rem]",
|
|
64786
64791
|
n.isChecklist ? "w-full" : "w-1/4",
|
|
64787
|
-
c.activeClass
|
|
64792
|
+
c.state !== n.selectedState && n.isChecklist ? c.mobileIdleClass || c.idleClass : c.activeClass
|
|
64788
64793
|
]
|
|
64789
64794
|
}, {
|
|
64790
64795
|
[Is(!n.isDisabled && "click")]: (f) => n.onActionClick(f, c.state)
|
|
@@ -64842,20 +64847,20 @@ function pue(n, e, t, r, i, s) {
|
|
|
64842
64847
|
], 2)),
|
|
64843
64848
|
P(mn, { name: "fade" }, {
|
|
64844
64849
|
default: ne(() => {
|
|
64845
|
-
var c, d, f, h, p, g;
|
|
64850
|
+
var c, d, f, h, p, g, y;
|
|
64846
64851
|
return [
|
|
64847
|
-
!n.isColorKey && !n.isActionItemBar && n.states.loading && n.shouldUseSwipe ? (w(), A("div", {
|
|
64852
|
+
!n.isColorKey && !n.isActionItemBar && n.states.loading === ((c = n.selectedOption) == null ? void 0 : c.state) && n.shouldUseSwipe ? (w(), A("div", {
|
|
64848
64853
|
key: 0,
|
|
64849
64854
|
class: j([
|
|
64850
64855
|
"absolute flex items-center justify-center inset-0 text-white z-30",
|
|
64851
|
-
(
|
|
64856
|
+
(d = n.selectedOption) == null ? void 0 : d.activeClass
|
|
64852
64857
|
])
|
|
64853
64858
|
}, [
|
|
64854
64859
|
L("div", fue, [
|
|
64855
|
-
n.states.changed ? (w(), A("div", hue, te(((
|
|
64860
|
+
n.states.changed ? (w(), A("div", hue, te(((g = n.selectedOption) == null ? void 0 : g.state) === "default" ? n.$t("HC_CLEARED") : (y = n.selectedOption) == null ? void 0 : y.statusText), 1)) : (w(), z(o, {
|
|
64856
64861
|
key: 0,
|
|
64857
|
-
icon: ((
|
|
64858
|
-
type: ((
|
|
64862
|
+
icon: ((f = n.selectedOption) == null ? void 0 : f.mobileIcon) || ((h = n.selectedOption) == null ? void 0 : h.icon),
|
|
64863
|
+
type: ((p = n.selectedOption) == null ? void 0 : p.iconType) || "line",
|
|
64859
64864
|
size: "lg",
|
|
64860
64865
|
color: "white"
|
|
64861
64866
|
}, null, 8, ["icon", "type"]))
|
|
@@ -64873,9 +64878,7 @@ function pue(n, e, t, r, i, s) {
|
|
|
64873
64878
|
toggle: n.resetModal,
|
|
64874
64879
|
"onUpdate:toggle": [
|
|
64875
64880
|
e[1] || (e[1] = (c) => n.resetModal = c),
|
|
64876
|
-
|
|
64877
|
-
n.resetModal = !1, n.$emit("cancel:reset");
|
|
64878
|
-
})
|
|
64881
|
+
n.cancelReset
|
|
64879
64882
|
]
|
|
64880
64883
|
}, {
|
|
64881
64884
|
desktopHeader: ne(() => [
|
|
@@ -64897,11 +64900,11 @@ function pue(n, e, t, r, i, s) {
|
|
|
64897
64900
|
Te(te(n.$t("HC_CANCEL")), 1)
|
|
64898
64901
|
]),
|
|
64899
64902
|
_: 1
|
|
64900
|
-
}, 8, ["action", "toggle"])
|
|
64903
|
+
}, 8, ["action", "toggle", "onUpdate:toggle"])
|
|
64901
64904
|
]))
|
|
64902
64905
|
], 64);
|
|
64903
64906
|
}
|
|
64904
|
-
const cpe = /* @__PURE__ */ _e(uue, [["render", pue], ["__scopeId", "data-v-
|
|
64907
|
+
const cpe = /* @__PURE__ */ _e(uue, [["render", pue], ["__scopeId", "data-v-a6414115"]]), mue = Me({
|
|
64905
64908
|
name: "QList",
|
|
64906
64909
|
components: {
|
|
64907
64910
|
QBadge: vu
|