tsv2-library 0.2.12 → 0.2.13
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.
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { ClassComponent } from '../ts-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export interface ButtonSyncProps {
|
|
4
|
+
/**
|
|
5
|
+
* Defines no scan buttons in hardware sync dialog footer.
|
|
6
|
+
*/
|
|
7
|
+
withoutScanBtn?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ButtonSync extends ClassComponent<ButtonSyncProps> {}
|
|
@@ -17,6 +17,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
17
|
type: __PropType<boolean | undefined>;
|
|
18
18
|
required: false;
|
|
19
19
|
};
|
|
20
|
+
withoutScanBtn: {
|
|
21
|
+
type: __PropType<boolean | undefined>;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
20
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
25
|
visible: {
|
|
22
26
|
type: __PropType<boolean>;
|
|
@@ -34,6 +38,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
38
|
type: __PropType<boolean | undefined>;
|
|
35
39
|
required: false;
|
|
36
40
|
};
|
|
41
|
+
withoutScanBtn: {
|
|
42
|
+
type: __PropType<boolean | undefined>;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
37
45
|
}>> & {
|
|
38
46
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
39
47
|
}, {}, {}>;
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -42734,7 +42734,8 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
42734
42734
|
visible: { type: Boolean },
|
|
42735
42735
|
errorCode: {},
|
|
42736
42736
|
searchBy: {},
|
|
42737
|
-
bulk: { type: Boolean }
|
|
42737
|
+
bulk: { type: Boolean },
|
|
42738
|
+
withoutScanBtn: { type: Boolean }
|
|
42738
42739
|
},
|
|
42739
42740
|
emits: ["update:visible"],
|
|
42740
42741
|
setup(e, { emit: t }) {
|
|
@@ -42804,7 +42805,7 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
42804
42805
|
return nt(
|
|
42805
42806
|
() => n.visible,
|
|
42806
42807
|
(P) => {
|
|
42807
|
-
|
|
42808
|
+
P && (w.value = E(), H());
|
|
42808
42809
|
}
|
|
42809
42810
|
), (P, Y) => (g(), N(da, {
|
|
42810
42811
|
closable: !S.value,
|
|
@@ -42829,7 +42830,7 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
42829
42830
|
severity: "secondary",
|
|
42830
42831
|
text: ""
|
|
42831
42832
|
})) : Z("", !0),
|
|
42832
|
-
p.value
|
|
42833
|
+
!p.value || !n.withoutScanBtn ? (g(), k(ce, { key: 1 }, [
|
|
42833
42834
|
v.value ? (g(), N(Ci, {
|
|
42834
42835
|
key: 0,
|
|
42835
42836
|
bulk: P.bulk,
|
|
@@ -42842,7 +42843,7 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
42842
42843
|
onClick: z,
|
|
42843
42844
|
type: "QR"
|
|
42844
42845
|
}, null, 8, ["bulk"])) : Z("", !0)
|
|
42845
|
-
], 64))
|
|
42846
|
+
], 64)) : Z("", !0)
|
|
42846
42847
|
]),
|
|
42847
42848
|
default: j(() => [
|
|
42848
42849
|
w.value ? (g(), N(Ly, {
|
|
@@ -43046,7 +43047,6 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
43046
43047
|
), s = be(
|
|
43047
43048
|
() => r.type === "RFID" ? "RFID_Connecting" : "QR_Connecting"
|
|
43048
43049
|
), { devices: l, device: u, saveDevices: c, setDevice: d } = _y(), h = oe(new AbortController()), f = oe(), m = at(!1), p = at(!1), v = async () => {
|
|
43049
|
-
console.log("startScan");
|
|
43050
43050
|
try {
|
|
43051
43051
|
i.add({
|
|
43052
43052
|
message: r.type === "QR" ? "Connecting QR..." : "Connecting RFID...",
|
|
@@ -43058,7 +43058,6 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
43058
43058
|
console.error(K);
|
|
43059
43059
|
}
|
|
43060
43060
|
}, y = async () => {
|
|
43061
|
-
console.log("🚀 ~ connect ~ devices.value:", l.value);
|
|
43062
43061
|
try {
|
|
43063
43062
|
if (!z())
|
|
43064
43063
|
throw new Error("NOT_SUPPORTED_SYSTEM");
|
|
@@ -43066,7 +43065,7 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
43066
43065
|
throw new Error("HARDWARE_NOT_SYNCHRONIZED");
|
|
43067
43066
|
await bu.connectDevice(), a("connected", u.value[r.type]);
|
|
43068
43067
|
} catch (K) {
|
|
43069
|
-
throw
|
|
43068
|
+
throw P.value = !0, Y.value = zy(K), p.value = !1, a("error", K), new Error("SCANNER_CONNECTION_FAILED");
|
|
43070
43069
|
} finally {
|
|
43071
43070
|
i.removeGroup(s.value);
|
|
43072
43071
|
}
|
|
@@ -43128,7 +43127,7 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
43128
43127
|
});
|
|
43129
43128
|
}
|
|
43130
43129
|
}, F = () => {
|
|
43131
|
-
|
|
43130
|
+
window.Cypress ? T() : v();
|
|
43132
43131
|
}, T = () => {
|
|
43133
43132
|
i.add({
|
|
43134
43133
|
message: "Connecting device...",
|
|
@@ -57909,20 +57908,24 @@ const S1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI1IiBoZWlnaHQ9IjEyNSIgdm
|
|
|
57909
57908
|
}
|
|
57910
57909
|
}), IL = /* @__PURE__ */ De({
|
|
57911
57910
|
__name: "ButtonSync",
|
|
57911
|
+
props: {
|
|
57912
|
+
withoutScanBtn: { type: Boolean }
|
|
57913
|
+
},
|
|
57912
57914
|
setup(e) {
|
|
57913
|
-
const t = at(!1);
|
|
57914
|
-
return (
|
|
57915
|
+
const t = e, n = at(!1);
|
|
57916
|
+
return (r, a) => (g(), k(ce, null, [
|
|
57915
57917
|
B(et, x({
|
|
57916
|
-
onClick:
|
|
57917
|
-
},
|
|
57918
|
+
onClick: a[0] || (a[0] = (i) => n.value = !0)
|
|
57919
|
+
}, r.$attrs, {
|
|
57918
57920
|
icon: "refresh",
|
|
57919
57921
|
label: "Sync",
|
|
57920
57922
|
outlined: ""
|
|
57921
57923
|
}), null, 16),
|
|
57922
57924
|
B(Jy, {
|
|
57923
|
-
visible:
|
|
57924
|
-
"onUpdate:visible":
|
|
57925
|
-
|
|
57925
|
+
visible: n.value,
|
|
57926
|
+
"onUpdate:visible": a[1] || (a[1] = (i) => n.value = i),
|
|
57927
|
+
"without-scan-btn": t.withoutScanBtn
|
|
57928
|
+
}, null, 8, ["visible", "without-scan-btn"])
|
|
57926
57929
|
], 64));
|
|
57927
57930
|
}
|
|
57928
57931
|
});
|
package/package.json
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { ClassComponent } from '../ts-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export interface ButtonSyncProps {
|
|
4
|
+
/**
|
|
5
|
+
* Defines no scan buttons in hardware sync dialog footer.
|
|
6
|
+
*/
|
|
7
|
+
withoutScanBtn?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class ButtonSync extends ClassComponent<ButtonSyncProps> {}
|