tsv2-library 0.2.11 → 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, {
|
|
@@ -43060,11 +43061,11 @@ const TI = { class: "flex items-center gap-3 w-full" }, FI = {
|
|
|
43060
43061
|
try {
|
|
43061
43062
|
if (!z())
|
|
43062
43063
|
throw new Error("NOT_SUPPORTED_SYSTEM");
|
|
43063
|
-
if (
|
|
43064
|
+
if (a("connect"), !l.value.length || !u.value[r.type])
|
|
43064
43065
|
throw new Error("HARDWARE_NOT_SYNCHRONIZED");
|
|
43065
43066
|
await bu.connectDevice(), a("connected", u.value[r.type]);
|
|
43066
43067
|
} catch (K) {
|
|
43067
|
-
throw
|
|
43068
|
+
throw P.value = !0, Y.value = zy(K), p.value = !1, a("error", K), new Error("SCANNER_CONNECTION_FAILED");
|
|
43068
43069
|
} finally {
|
|
43069
43070
|
i.removeGroup(s.value);
|
|
43070
43071
|
}
|
|
@@ -57907,20 +57908,24 @@ const S1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI1IiBoZWlnaHQ9IjEyNSIgdm
|
|
|
57907
57908
|
}
|
|
57908
57909
|
}), IL = /* @__PURE__ */ De({
|
|
57909
57910
|
__name: "ButtonSync",
|
|
57911
|
+
props: {
|
|
57912
|
+
withoutScanBtn: { type: Boolean }
|
|
57913
|
+
},
|
|
57910
57914
|
setup(e) {
|
|
57911
|
-
const t = at(!1);
|
|
57912
|
-
return (
|
|
57915
|
+
const t = e, n = at(!1);
|
|
57916
|
+
return (r, a) => (g(), k(ce, null, [
|
|
57913
57917
|
B(et, x({
|
|
57914
|
-
onClick:
|
|
57915
|
-
},
|
|
57918
|
+
onClick: a[0] || (a[0] = (i) => n.value = !0)
|
|
57919
|
+
}, r.$attrs, {
|
|
57916
57920
|
icon: "refresh",
|
|
57917
57921
|
label: "Sync",
|
|
57918
57922
|
outlined: ""
|
|
57919
57923
|
}), null, 16),
|
|
57920
57924
|
B(Jy, {
|
|
57921
|
-
visible:
|
|
57922
|
-
"onUpdate:visible":
|
|
57923
|
-
|
|
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"])
|
|
57924
57929
|
], 64));
|
|
57925
57930
|
}
|
|
57926
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> {}
|