@quoreadmin/ui 1.0.14 → 1.0.16
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.css +1 -1
- package/dist/index.js +70 -73
- package/dist/index.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59773,59 +59773,61 @@ const ose = /* @__PURE__ */ ze(nse, [["render", sse], ["__scopeId", "data-v-01ed
|
|
|
59773
59773
|
},
|
|
59774
59774
|
emits: ["file-list", "upload-error", "uploading"],
|
|
59775
59775
|
setup(n, { emit: e }) {
|
|
59776
|
-
const t = B(null), r = B(), i = B([]), s = B([]), o = () => {
|
|
59776
|
+
const t = B(null), r = B(), i = B([]), s = B([]), o = Y(() => n.files), a = Y(() => n.filesAllowed.replace(/,/g, ", ")), l = () => {
|
|
59777
59777
|
t.value && t.value.clear();
|
|
59778
|
-
},
|
|
59778
|
+
}, u = () => {
|
|
59779
59779
|
i.value = [], s.value = [];
|
|
59780
|
-
},
|
|
59781
|
-
const
|
|
59782
|
-
for (const
|
|
59783
|
-
if (
|
|
59780
|
+
}, c = (T) => {
|
|
59781
|
+
const M = n.filesAllowed.split(",").map((A) => A.trim());
|
|
59782
|
+
for (const A of M)
|
|
59783
|
+
if (d(A) ? h(T.type) === h(A) : T.type == A || f(T).toLowerCase() === A.toLowerCase())
|
|
59784
59784
|
return !0;
|
|
59785
59785
|
return !1;
|
|
59786
|
-
},
|
|
59787
|
-
var
|
|
59788
|
-
const
|
|
59789
|
-
let
|
|
59790
|
-
|
|
59791
|
-
for (const
|
|
59792
|
-
|
|
59793
|
-
},
|
|
59794
|
-
e("upload-error",
|
|
59795
|
-
},
|
|
59786
|
+
}, d = (T) => T.indexOf("*") !== -1, f = (T) => "." + T.name.split(".").pop(), h = (T) => T.substring(0, T.indexOf("/")), m = (T) => {
|
|
59787
|
+
var N;
|
|
59788
|
+
const M = T.originalEvent;
|
|
59789
|
+
let A = [];
|
|
59790
|
+
M.type === "drop" ? A = (N = M.dataTransfer) == null ? void 0 : N.files : A = M.target.files;
|
|
59791
|
+
for (const O of A)
|
|
59792
|
+
O.size > n.maxFileSize && i.value.push(O.name), c(O) || s.value.push(O.name);
|
|
59793
|
+
}, y = (T) => {
|
|
59794
|
+
e("upload-error", T);
|
|
59795
|
+
}, g = () => {
|
|
59796
59796
|
t.value && t.value.upload();
|
|
59797
|
-
},
|
|
59798
|
-
e("uploading",
|
|
59799
|
-
},
|
|
59800
|
-
const
|
|
59801
|
-
(
|
|
59797
|
+
}, v = (T) => {
|
|
59798
|
+
e("uploading", T);
|
|
59799
|
+
}, b = (T) => {
|
|
59800
|
+
const M = o.value, A = M.findIndex(
|
|
59801
|
+
(N) => N.lastModified === T.lastModified
|
|
59802
59802
|
);
|
|
59803
|
-
|
|
59804
|
-
},
|
|
59805
|
-
|
|
59806
|
-
}, { isOverDropZone:
|
|
59803
|
+
A !== -1 && (M.splice(A, 1), e("file-list", M)), t.value.messages = null;
|
|
59804
|
+
}, S = (T) => {
|
|
59805
|
+
m(T), e("file-list", T.files);
|
|
59806
|
+
}, { isOverDropZone: w } = BL(r);
|
|
59807
59807
|
return {
|
|
59808
59808
|
// ref elements - Needed this for triggering events in component
|
|
59809
59809
|
fileUpload: t,
|
|
59810
59810
|
dropZoneRef: r,
|
|
59811
59811
|
// refs
|
|
59812
|
-
allFiles:
|
|
59812
|
+
allFiles: o,
|
|
59813
59813
|
sizeErrors: i,
|
|
59814
59814
|
typeErrors: s,
|
|
59815
|
-
isOverDropZone:
|
|
59815
|
+
isOverDropZone: w,
|
|
59816
|
+
// computed
|
|
59817
|
+
displayAllowedTypes: a,
|
|
59816
59818
|
// methods
|
|
59817
|
-
clear:
|
|
59818
|
-
clearErrors:
|
|
59819
|
-
getFileExtension:
|
|
59820
|
-
getTypeClass:
|
|
59821
|
-
isValidFileType:
|
|
59822
|
-
isWildcard:
|
|
59823
|
-
onBeforeSelect:
|
|
59824
|
-
onUpload:
|
|
59825
|
-
onUploadError:
|
|
59826
|
-
onUploading:
|
|
59827
|
-
onRemoveFile:
|
|
59828
|
-
onSelectedFiles:
|
|
59819
|
+
clear: l,
|
|
59820
|
+
clearErrors: u,
|
|
59821
|
+
getFileExtension: f,
|
|
59822
|
+
getTypeClass: h,
|
|
59823
|
+
isValidFileType: c,
|
|
59824
|
+
isWildcard: d,
|
|
59825
|
+
onBeforeSelect: m,
|
|
59826
|
+
onUpload: g,
|
|
59827
|
+
onUploadError: y,
|
|
59828
|
+
onUploading: v,
|
|
59829
|
+
onRemoveFile: b,
|
|
59830
|
+
onSelectedFiles: S,
|
|
59829
59831
|
// composables
|
|
59830
59832
|
mq: cr
|
|
59831
59833
|
};
|
|
@@ -59943,7 +59945,7 @@ function vse(n, e, t, r, i, s) {
|
|
|
59943
59945
|
(C(!0), E(me, null, Pe(n.sizeErrors, (f) => (C(), E("li", { key: f }, J(f), 1))), 128))
|
|
59944
59946
|
])) : _("", !0),
|
|
59945
59947
|
n.typeErrors.length ? (C(), E("p", gse, J(n.$t("HC_INVALID_FILE_TYPES", {
|
|
59946
|
-
types: n.
|
|
59948
|
+
types: n.displayAllowedTypes
|
|
59947
59949
|
}) + ":"), 1)) : _("", !0),
|
|
59948
59950
|
n.typeErrors.length ? (C(), E("ul", yse, [
|
|
59949
59951
|
(C(!0), E(me, null, Pe(n.typeErrors, (f) => (C(), E("li", { key: f }, J(f), 1))), 128))
|
|
@@ -64457,8 +64459,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64457
64459
|
idleClass: "!bg-idle-pass",
|
|
64458
64460
|
loading: "",
|
|
64459
64461
|
name: n("HC_PASS"),
|
|
64460
|
-
statusText: n("HC_PASSED")
|
|
64461
|
-
mobileOrder: 1
|
|
64462
|
+
statusText: n("HC_PASSED")
|
|
64462
64463
|
},
|
|
64463
64464
|
{
|
|
64464
64465
|
state: "failed",
|
|
@@ -64470,8 +64471,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64470
64471
|
mobileIdleClass: "!bg-red-30/25",
|
|
64471
64472
|
loading: "",
|
|
64472
64473
|
name: n("HC_FAIL"),
|
|
64473
|
-
statusText: n("HC_A_TASK_HAS_BEEN_CREATED")
|
|
64474
|
-
mobileOrder: 4
|
|
64474
|
+
statusText: n("HC_A_TASK_HAS_BEEN_CREATED")
|
|
64475
64475
|
},
|
|
64476
64476
|
{
|
|
64477
64477
|
state: "repaired",
|
|
@@ -64482,8 +64482,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64482
64482
|
idleClass: "!bg-orange-20/25",
|
|
64483
64483
|
loading: "",
|
|
64484
64484
|
name: n("HC_REPAIR"),
|
|
64485
|
-
statusText: n("HC_TASK_CLOSED")
|
|
64486
|
-
mobileOrder: 3
|
|
64485
|
+
statusText: n("HC_TASK_CLOSED")
|
|
64487
64486
|
},
|
|
64488
64487
|
{
|
|
64489
64488
|
state: "N/A",
|
|
@@ -64496,8 +64495,7 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64496
64495
|
loading: "",
|
|
64497
64496
|
name: n("HC_N/A"),
|
|
64498
64497
|
statusText: n("HC_N/A"),
|
|
64499
|
-
mobileIconClass: "!p-[0.1rem]"
|
|
64500
|
-
mobileOrder: 2
|
|
64498
|
+
mobileIconClass: "!p-[0.1rem]"
|
|
64501
64499
|
}
|
|
64502
64500
|
];
|
|
64503
64501
|
}
|
|
@@ -64510,13 +64508,10 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64510
64508
|
},
|
|
64511
64509
|
emits: ["update:state"],
|
|
64512
64510
|
setup(n, { emit: e }) {
|
|
64513
|
-
const { deviceType: t } = yp(), r = B(n.currentState), i = B(n.options.length === 1), s = Y(() => n.disabled || !!n.loading), o = Y(() =>
|
|
64514
|
-
|
|
64515
|
-
|
|
64516
|
-
|
|
64517
|
-
(c) => c.state === r.value
|
|
64518
|
-
)), l = Y(() => t.value !== "desktop" || !cr.md), u = (c, d) => {
|
|
64519
|
-
r.value = r.value === d ? "default" : d, e("update:state", { state: r.value, event: c });
|
|
64511
|
+
const { deviceType: t } = yp(), r = B(n.currentState), i = B(n.options.length === 1), s = Y(() => n.disabled || !!n.loading), o = Y(() => n.options.find(
|
|
64512
|
+
(u) => u.state === r.value
|
|
64513
|
+
)), a = Y(() => t.value !== "desktop" || !cr.md), l = (u, c) => {
|
|
64514
|
+
r.value = r.value === c ? "default" : c, e("update:state", { state: r.value, event: u });
|
|
64520
64515
|
};
|
|
64521
64516
|
return dt(
|
|
64522
64517
|
() => n.loading,
|
|
@@ -64528,12 +64523,11 @@ const Gfe = /* @__PURE__ */ ze(j0e, [["render", Y0e], ["__scopeId", "data-v-cfe1
|
|
|
64528
64523
|
selectedState: r,
|
|
64529
64524
|
singleOption: i,
|
|
64530
64525
|
// Computed
|
|
64531
|
-
sortedOptions: o,
|
|
64532
64526
|
isDisabled: s,
|
|
64533
|
-
selectedOption:
|
|
64534
|
-
shouldUseSwipe:
|
|
64527
|
+
selectedOption: o,
|
|
64528
|
+
shouldUseSwipe: a,
|
|
64535
64529
|
// Methods
|
|
64536
|
-
onSetState:
|
|
64530
|
+
onSetState: l,
|
|
64537
64531
|
// Composable
|
|
64538
64532
|
mq: cr
|
|
64539
64533
|
};
|
|
@@ -64549,8 +64543,8 @@ function nle(n, e, t, r, i, s) {
|
|
|
64549
64543
|
const o = K("q-icon"), a = K("q-button"), l = K("q-tooltip");
|
|
64550
64544
|
return C(), E(me, null, [
|
|
64551
64545
|
n.isColorKey ? (C(), E("div", X0e, [
|
|
64552
|
-
(C(!0), E(me, null, Pe(n.
|
|
64553
|
-
key:
|
|
64546
|
+
(C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", {
|
|
64547
|
+
key: u.state,
|
|
64554
64548
|
class: "flex flex-col items-center gap-1.5"
|
|
64555
64549
|
}, [
|
|
64556
64550
|
P("div", {
|
|
@@ -64560,11 +64554,12 @@ function nle(n, e, t, r, i, s) {
|
|
|
64560
64554
|
])
|
|
64561
64555
|
}, [
|
|
64562
64556
|
L(o, {
|
|
64563
|
-
icon: u.
|
|
64557
|
+
icon: u.icon,
|
|
64564
64558
|
type: u.iconType || "line",
|
|
64565
64559
|
size: "lg",
|
|
64566
|
-
color: "white"
|
|
64567
|
-
|
|
64560
|
+
color: "white",
|
|
64561
|
+
class: j(u.mobileIconClass || "!p-[0.4rem]")
|
|
64562
|
+
}, null, 8, ["icon", "type", "class"])
|
|
64568
64563
|
], 2),
|
|
64569
64564
|
P("span", J0e, J(u.name), 1)
|
|
64570
64565
|
]))), 128))
|
|
@@ -64575,8 +64570,8 @@ function nle(n, e, t, r, i, s) {
|
|
|
64575
64570
|
n.isDisabled ? "pointer-events-none" : ""
|
|
64576
64571
|
])
|
|
64577
64572
|
}, [
|
|
64578
|
-
(C(!0), E(me, null, Pe(n.
|
|
64579
|
-
key:
|
|
64573
|
+
(C(!0), E(me, null, Pe(n.options, (u) => (C(), H(a, D({
|
|
64574
|
+
key: u.state,
|
|
64580
64575
|
size: "sm",
|
|
64581
64576
|
class: [
|
|
64582
64577
|
"!w-14 !h-14 !min-w-fit !p-0",
|
|
@@ -64584,7 +64579,7 @@ function nle(n, e, t, r, i, s) {
|
|
|
64584
64579
|
],
|
|
64585
64580
|
loading: n.loading === "default" && u.state === n.currentState || n.loading === u.state
|
|
64586
64581
|
}, {
|
|
64587
|
-
[fo(!n.isDisabled && "click")]: (
|
|
64582
|
+
[fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
|
|
64588
64583
|
}), {
|
|
64589
64584
|
default: ne(() => [
|
|
64590
64585
|
L(o, {
|
|
@@ -64605,15 +64600,15 @@ function nle(n, e, t, r, i, s) {
|
|
|
64605
64600
|
n.isDisabled ? "pointer-events-none" : ""
|
|
64606
64601
|
])
|
|
64607
64602
|
}, [
|
|
64608
|
-
(C(!0), E(me, null, Pe(n.
|
|
64609
|
-
key:
|
|
64603
|
+
(C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", D({
|
|
64604
|
+
key: u.state,
|
|
64610
64605
|
class: [
|
|
64611
64606
|
"flex items-center justify-center shrink overflow-hidden max-w-[4.5rem]",
|
|
64612
64607
|
n.singleOption ? "w-full" : "w-1/4",
|
|
64613
64608
|
u.state !== n.selectedState && n.singleOption ? u.mobileIdleClass || u.idleClass : u.activeClass
|
|
64614
64609
|
]
|
|
64615
64610
|
}, {
|
|
64616
|
-
[fo(!n.isDisabled && "click")]: (
|
|
64611
|
+
[fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
|
|
64617
64612
|
}), [
|
|
64618
64613
|
L(o, {
|
|
64619
64614
|
icon: u.mobileIcon || u.icon,
|
|
@@ -64630,7 +64625,9 @@ function nle(n, e, t, r, i, s) {
|
|
|
64630
64625
|
n.isDisabled ? "pointer-events-none" : ""
|
|
64631
64626
|
])
|
|
64632
64627
|
}, [
|
|
64633
|
-
(C(!0), E(me, null, Pe(n.
|
|
64628
|
+
(C(!0), E(me, null, Pe(n.options, (u) => (C(), E("div", {
|
|
64629
|
+
key: u.state
|
|
64630
|
+
}, [
|
|
64634
64631
|
L(l, {
|
|
64635
64632
|
disabled: !n.mq.md,
|
|
64636
64633
|
class: "h-6"
|
|
@@ -64645,7 +64642,7 @@ function nle(n, e, t, r, i, s) {
|
|
|
64645
64642
|
loading: n.loading === "default" && u.state === n.currentState || n.loading === u.state,
|
|
64646
64643
|
"is-fab": ""
|
|
64647
64644
|
}, {
|
|
64648
|
-
[fo(!n.isDisabled && "click")]: (
|
|
64645
|
+
[fo(!n.isDisabled && "click")]: (c) => n.onSetState(c, u.state)
|
|
64649
64646
|
}), {
|
|
64650
64647
|
default: ne(() => [
|
|
64651
64648
|
L(o, {
|
|
@@ -64693,7 +64690,7 @@ function nle(n, e, t, r, i, s) {
|
|
|
64693
64690
|
})
|
|
64694
64691
|
], 64);
|
|
64695
64692
|
}
|
|
64696
|
-
const qfe = /* @__PURE__ */ ze(Q0e, [["render", nle], ["__scopeId", "data-v-
|
|
64693
|
+
const qfe = /* @__PURE__ */ ze(Q0e, [["render", nle], ["__scopeId", "data-v-67cf0eab"]]), rle = xe({
|
|
64697
64694
|
name: "QList",
|
|
64698
64695
|
components: {
|
|
64699
64696
|
QBadge: X2
|