tsv2-library 1.0.61-alpha.53 → 1.0.61-alpha.55
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/tsv2-library.es.js
CHANGED
|
@@ -28209,11 +28209,11 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
28209
28209
|
return openBlock(), createBlock(unref(_sfc_main$1k), {
|
|
28210
28210
|
visible: visible4.value,
|
|
28211
28211
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible4.value = $event),
|
|
28212
|
-
header: "Approval List",
|
|
28213
28212
|
class: "w-[400px]",
|
|
28214
28213
|
closable: "",
|
|
28215
28214
|
"data-ts-name": "dialog-approval-list",
|
|
28216
28215
|
"data-ts-section": "root",
|
|
28216
|
+
header: "Approval List",
|
|
28217
28217
|
modal: ""
|
|
28218
28218
|
}, {
|
|
28219
28219
|
default: withCtx(() => [
|
|
@@ -36064,7 +36064,7 @@ const DeviceIOTServices = {
|
|
|
36064
36064
|
}).get("/reader");
|
|
36065
36065
|
}
|
|
36066
36066
|
};
|
|
36067
|
-
const encodedJs = "
|
|
36067
|
+
const encodedJs = "IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBlLHMsbz1udWxsLG49bnVsbCxhPSIiO3NlbGYub25tZXNzYWdlPWU9Pntjb25zdCBvPWUuZGF0YTtzd2l0Y2gocz1vLmNvbXBhbnlDb2RlLG8uY29tbWFuZCl7Y2FzZSJzeW5jIjpkKG8pO2JyZWFrO2Nhc2UiY29ubmVjdCI6aShvKTticmVhaztjYXNlInNjYW4iOnUobyk7YnJlYWs7Y2FzZSJzdG9wc2NhbiI6cChvKX19O2NvbnN0IHI9ZT0+e2xldCBzPSJlc3RhYmxpc2hlZCI7byYmby5yZWFkeVN0YXRlPT09V2ViU29ja2V0Lk9QRU4/KHM9InJldXNlZCIsZS5vbm9wZW4obyxzKSxjKGUudGltZW91dCkpOm89bmV3IFdlYlNvY2tldC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dlYlNvY2tldC5PUEVOJiYoby5zZW5kKEpTT04uc3RyaW5naWZ5KHtkYXRhOntjb21tYW5kOiJzdG9wc2NhbiIsdXNlcklkOmUsc291cmNlOiJhcHAiLHNlc3Npb25JZDphLGNvbXBhbnlDb2RlOnN9LGV2ZW50OiJyZWFkZXIifSkpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fc3RvcHBlZCJ9KSxjb25zb2xlLmluZm8oIlNjYW4gUHJvY2VzcyBTdG9wcGVkISIpKX19KCk7Cg==";
|
|
36068
36068
|
const blob = typeof window !== "undefined" && window.Blob && new Blob([atob(encodedJs)], { type: "text/javascript;charset=utf-8" });
|
|
36069
36069
|
function WorkerWrapper() {
|
|
36070
36070
|
let objURL;
|
|
@@ -36258,7 +36258,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
36258
36258
|
emit("scan");
|
|
36259
36259
|
};
|
|
36260
36260
|
const synchronize = () => {
|
|
36261
|
-
var _a;
|
|
36261
|
+
var _a, _b;
|
|
36262
36262
|
isSynchronizing.value = true;
|
|
36263
36263
|
errorMessage.value = void 0;
|
|
36264
36264
|
window.scannerWorker.onmessage = ({ data: data30 }) => {
|
|
@@ -36282,7 +36282,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
36282
36282
|
};
|
|
36283
36283
|
window.scannerWorker.postMessage({
|
|
36284
36284
|
command: "sync",
|
|
36285
|
-
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id
|
|
36285
|
+
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id,
|
|
36286
|
+
companyCode: (_b = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _b.companyCode
|
|
36286
36287
|
});
|
|
36287
36288
|
};
|
|
36288
36289
|
const setupWorker = () => {
|
|
@@ -36635,7 +36636,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
36635
36636
|
}
|
|
36636
36637
|
};
|
|
36637
36638
|
const connect = async () => {
|
|
36638
|
-
var _a;
|
|
36639
|
+
var _a, _b;
|
|
36639
36640
|
try {
|
|
36640
36641
|
if (!isWindows()) {
|
|
36641
36642
|
throw new Error("NOT_SUPPORTED_SYSTEM");
|
|
@@ -36690,14 +36691,15 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
36690
36691
|
};
|
|
36691
36692
|
window.scannerWorker.postMessage({
|
|
36692
36693
|
command: "connect",
|
|
36693
|
-
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id
|
|
36694
|
+
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id,
|
|
36695
|
+
companyCode: (_b = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _b.companyCode
|
|
36694
36696
|
});
|
|
36695
36697
|
} catch (error) {
|
|
36696
36698
|
handleConnectError(error);
|
|
36697
36699
|
}
|
|
36698
36700
|
};
|
|
36699
36701
|
const scan = (newConnection = false, reScan = false) => {
|
|
36700
|
-
var _a;
|
|
36702
|
+
var _a, _b;
|
|
36701
36703
|
scanStopped.value = false;
|
|
36702
36704
|
toast2.removeGroup(toastConnectingGroup.value);
|
|
36703
36705
|
if (!localStorage.devmode) {
|
|
@@ -36774,6 +36776,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
36774
36776
|
command: "scan",
|
|
36775
36777
|
scanCommand,
|
|
36776
36778
|
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id,
|
|
36779
|
+
companyCode: (_b = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _b.companyCode,
|
|
36777
36780
|
source: "app",
|
|
36778
36781
|
jenisDevice: scanDevice.jenisDevice,
|
|
36779
36782
|
serialNumber: scanDevice.serialNumber,
|
|
@@ -36880,11 +36883,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
36880
36883
|
bulkScannedCode.splice(0);
|
|
36881
36884
|
};
|
|
36882
36885
|
const stopScan = (afterScan = false) => {
|
|
36883
|
-
var _a;
|
|
36886
|
+
var _a, _b;
|
|
36884
36887
|
window.scannerWorker.onmessage = null;
|
|
36885
36888
|
window.scannerWorker.postMessage({
|
|
36886
36889
|
command: "stopscan",
|
|
36887
|
-
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id
|
|
36890
|
+
userId: (_a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _a._id,
|
|
36891
|
+
companyCode: (_b = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : _b.companyCode
|
|
36888
36892
|
});
|
|
36889
36893
|
handleScanStopped(afterScan);
|
|
36890
36894
|
scanStopped.value = true;
|
|
@@ -61620,8 +61624,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
61620
61624
|
ref: inputtext,
|
|
61621
61625
|
class: normalizeClass(unref(Preset$3).inputtext.class),
|
|
61622
61626
|
"model-value": selectedDateText.value,
|
|
61623
|
-
placeholder: "Select date",
|
|
61624
61627
|
onKeydown: onKeydown3,
|
|
61628
|
+
placeholder: "Select date",
|
|
61625
61629
|
readonly: ""
|
|
61626
61630
|
}, null, 8, ["class", "model-value"]),
|
|
61627
61631
|
createVNode(_sfc_main$1n, {
|
|
@@ -65806,7 +65810,7 @@ const API$1 = ({
|
|
|
65806
65810
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
65807
65811
|
const BASE_URL2 = "https://dev-api.tagsamurai.com/fam";
|
|
65808
65812
|
const instance = axios.create({
|
|
65809
|
-
baseURL: `${BASE_URL2}/tracking/v2/tracking`,
|
|
65813
|
+
baseURL: `${BASE_URL2}/missing-tracking/v2/tracking`,
|
|
65810
65814
|
headers: {
|
|
65811
65815
|
"Content-type": "application/json",
|
|
65812
65816
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -66402,14 +66406,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
66402
66406
|
key: 0,
|
|
66403
66407
|
modelValue: noteInput.value,
|
|
66404
66408
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => noteInput.value = $event),
|
|
66405
|
-
placeholder: "Enter note",
|
|
66406
66409
|
rows: 1,
|
|
66407
66410
|
"textarea-pt": {
|
|
66408
66411
|
root: {
|
|
66409
66412
|
maxlength: 30
|
|
66410
66413
|
}
|
|
66411
66414
|
},
|
|
66412
|
-
class: "!max-w-[250px]"
|
|
66415
|
+
class: "!max-w-[250px]",
|
|
66416
|
+
placeholder: "Enter note"
|
|
66413
66417
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
66414
66418
|
]),
|
|
66415
66419
|
_: 1
|
|
@@ -66417,11 +66421,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
66417
66421
|
createVNode(unref(_sfc_main$13), {
|
|
66418
66422
|
visible: showRemoveDialog.value,
|
|
66419
66423
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => showRemoveDialog.value = $event),
|
|
66424
|
+
lists: selectedData.value,
|
|
66425
|
+
onConfirm: removeFromList,
|
|
66420
66426
|
body: "Are you sure you want to remove it?",
|
|
66421
66427
|
"confirm-label": "Remove",
|
|
66422
66428
|
header: "Remove from List",
|
|
66423
|
-
lists: selectedData.value,
|
|
66424
|
-
onConfirm: removeFromList,
|
|
66425
66429
|
"list-label": "name.nameWithSequence",
|
|
66426
66430
|
severity: "danger"
|
|
66427
66431
|
}, null, 8, ["visible", "lists"])
|
|
@@ -66860,20 +66864,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
66860
66864
|
createVNode(unref(_sfc_main$13), {
|
|
66861
66865
|
visible: showRemoveDialog.value,
|
|
66862
66866
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => showRemoveDialog.value = $event),
|
|
66867
|
+
lists: [selectedItem.value],
|
|
66868
|
+
onConfirm: removeFromList,
|
|
66863
66869
|
body: "Are you sure you want to remove it?",
|
|
66864
66870
|
"confirm-label": "Remove",
|
|
66865
66871
|
header: "Remove from List",
|
|
66866
|
-
lists: [selectedItem.value],
|
|
66867
|
-
onConfirm: removeFromList,
|
|
66868
66872
|
"list-label": "name.nameWithSequence",
|
|
66869
66873
|
severity: "danger"
|
|
66870
66874
|
}, null, 8, ["visible", "lists"]),
|
|
66871
66875
|
createVNode(unref(_sfc_main$13), {
|
|
66872
66876
|
visible: showCancelReport.value,
|
|
66873
66877
|
"onUpdate:visible": _cache[8] || (_cache[8] = ($event) => showCancelReport.value = $event),
|
|
66878
|
+
onConfirm: onCancelReport,
|
|
66874
66879
|
"confirm-label": "Continue",
|
|
66875
66880
|
header: "Cancel Report",
|
|
66876
|
-
onConfirm: onCancelReport,
|
|
66877
66881
|
severity: "danger"
|
|
66878
66882
|
}, {
|
|
66879
66883
|
body: withCtx(() => [
|
|
@@ -66884,14 +66888,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
66884
66888
|
}, 8, ["visible"]),
|
|
66885
66889
|
createElementVNode("div", _hoisted_5$4, [
|
|
66886
66890
|
createVNode(unref(_sfc_main$1m), {
|
|
66887
|
-
label: "Cancel",
|
|
66888
66891
|
onClick: _cache[9] || (_cache[9] = ($event) => showCancelReport.value = true),
|
|
66892
|
+
label: "Cancel",
|
|
66889
66893
|
severity: "dark",
|
|
66890
66894
|
text: ""
|
|
66891
66895
|
}),
|
|
66892
66896
|
createVNode(unref(_sfc_main$1m), {
|
|
66893
|
-
label: "Submit",
|
|
66894
66897
|
onClick: submitDiposalReport,
|
|
66898
|
+
label: "Submit",
|
|
66895
66899
|
severity: "success"
|
|
66896
66900
|
})
|
|
66897
66901
|
])
|
|
@@ -73778,9 +73782,11 @@ const printOptions = {
|
|
|
73778
73782
|
const TSi18n = createI18n({
|
|
73779
73783
|
locale: "en",
|
|
73780
73784
|
fallbackLocale: "en",
|
|
73781
|
-
|
|
73782
|
-
|
|
73783
|
-
|
|
73785
|
+
/*
|
|
73786
|
+
* Messages: {
|
|
73787
|
+
* en: localeEN,
|
|
73788
|
+
* },
|
|
73789
|
+
*/
|
|
73784
73790
|
legacy: false
|
|
73785
73791
|
});
|
|
73786
73792
|
const buildEntry = {
|