@fewangsit/wangsvue-fats 1.0.1-alpha.62 → 1.0.1-alpha.64
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/basetree/index.d.ts +6 -2
- package/basetree/index.es.js +1 -1
- package/buttonscan/index.es.js +207 -204
- package/buttonselecttree/index.d.ts +5 -5
- package/buttonselecttree/index.es.js +9 -9
- package/datatable/index.d.ts +1 -1
- package/dialogselecttree/index.d.ts +11 -5
- package/dialogselecttree/index.es.js +8 -8
- package/filtercontainer/index.d.ts +2 -2
- package/hardwaresync/index.es.js +54 -53
- package/icon/index.d.ts +1 -0
- package/package.json +1 -1
- package/stats.html +1 -1
- package/timeline/index.d.ts +6 -1
- package/timeline/index.es.js +31 -26
- package/tree/index.d.ts +4 -4
- package/tree/index.es.js +76 -74
- package/treenode/index.es.js +22 -22
- package/vendor/@wangs-ui/core/components/{p-CKYwZoTo.es.js → p-C0QfdhKo.es.js} +1 -1
- package/vendor/@wangs-ui/core/components/{p-DPHEi31J.es.js → p-CRgC2JIi.es.js} +19 -14
- package/vendor/@wangs-ui/core/components/{p-CsoK-EWG.es.js → p-b33NVvKu.es.js} +12 -12
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +5 -5
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +1 -1
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +1 -1
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +1 -1
- package/wangsvue-fats.esm.browser.js +2439 -2423
- package/wangsvue-fats.system.js +45 -45
|
@@ -4,7 +4,7 @@ import { TreeNode } from '../basetree';
|
|
|
4
4
|
import { QueryParams, ShortFetchResponse } from '../datatable';
|
|
5
5
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
6
6
|
|
|
7
|
-
export type KeysModelValue = number[] | undefined;
|
|
7
|
+
export type KeysModelValue = string[] | number[] | undefined;
|
|
8
8
|
export type NodeModelValue =
|
|
9
9
|
| number
|
|
10
10
|
| TreeNode
|
|
@@ -87,16 +87,16 @@ export interface ButtonSelectTreeProps {
|
|
|
87
87
|
/**
|
|
88
88
|
* A list of node keys that should be disabled along with their children.
|
|
89
89
|
*/
|
|
90
|
-
disableKeys?: number[];
|
|
90
|
+
disableKeys?: string[] | number[];
|
|
91
91
|
/**
|
|
92
92
|
* A list of node keys that should be disabled, affecting only the specified nodes and not their children.
|
|
93
93
|
*/
|
|
94
|
-
exactDisableKeys?: number[];
|
|
94
|
+
exactDisableKeys?: string[] | number[];
|
|
95
95
|
/**
|
|
96
96
|
* Disable the Select button
|
|
97
97
|
*/
|
|
98
98
|
disabled?: boolean;
|
|
99
|
-
exactDisableKey?: number;
|
|
99
|
+
exactDisableKey?: string | number;
|
|
100
100
|
/**
|
|
101
101
|
* Disable node 'All' selection
|
|
102
102
|
*/
|
|
@@ -155,7 +155,7 @@ export interface ButtonSelectTreeProps {
|
|
|
155
155
|
/**
|
|
156
156
|
* Defines the group tree to disable excluded keys
|
|
157
157
|
*/
|
|
158
|
-
excludedKeys?:
|
|
158
|
+
excludedKeys?: string[];
|
|
159
159
|
/**
|
|
160
160
|
* Define wether single selection can be edited or readonly
|
|
161
161
|
* @default true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, onMounted as L, reactive as W, ref as d, computed as c, watch as
|
|
1
|
+
import { defineComponent as G, onMounted as L, reactive as W, ref as d, computed as c, watch as A, createElementBlock as M, openBlock as i, Fragment as F, createVNode as u, createBlock as p, mergeProps as z, withCtx as y, createCommentVNode as N, normalizeStyle as Y, normalizeClass as j, createSlots as J, renderSlot as P, nextTick as U } from "vue";
|
|
2
2
|
import { u as q } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
|
|
3
3
|
import { _ as Q } from "../badge/index.es.js";
|
|
4
4
|
import { _ as h } from "../button/index.es.js";
|
|
@@ -97,8 +97,8 @@ const le = {
|
|
|
97
97
|
v.value = o, s.value = g(v.value, l.fieldDataKey);
|
|
98
98
|
else {
|
|
99
99
|
const H = r == null ? void 0 : r.filter((I) => {
|
|
100
|
-
var
|
|
101
|
-
return !((
|
|
100
|
+
var T;
|
|
101
|
+
return !((T = l.excludedKeys) != null && T.includes(I.key));
|
|
102
102
|
});
|
|
103
103
|
s.value = g(H, l.fieldDataKey) ?? [];
|
|
104
104
|
}
|
|
@@ -109,18 +109,18 @@ const le = {
|
|
|
109
109
|
}, S = () => {
|
|
110
110
|
m.value = !0, b.value = !1, f("dialogShown");
|
|
111
111
|
};
|
|
112
|
-
return
|
|
112
|
+
return A(
|
|
113
113
|
() => l.value,
|
|
114
114
|
(e) => {
|
|
115
115
|
s.value = e;
|
|
116
116
|
}
|
|
117
|
-
),
|
|
117
|
+
), A(
|
|
118
118
|
() => l.selectedNode,
|
|
119
119
|
(e) => {
|
|
120
120
|
l.selectionMode === "single" && (n.value = e);
|
|
121
121
|
},
|
|
122
122
|
{ immediate: !0 }
|
|
123
|
-
), (e, a) => (i(),
|
|
123
|
+
), (e, a) => (i(), M(F, null, [
|
|
124
124
|
u(Z, z(e.$attrs, {
|
|
125
125
|
info: e.fieldInfo,
|
|
126
126
|
label: l.fieldLabel,
|
|
@@ -128,7 +128,7 @@ const le = {
|
|
|
128
128
|
"show-optional-text": e.$attrs["show-optional-text"] != !1
|
|
129
129
|
}), {
|
|
130
130
|
default: y(() => [
|
|
131
|
-
n.value ? (i(),
|
|
131
|
+
n.value ? (i(), M("span", le, [
|
|
132
132
|
u(Q, {
|
|
133
133
|
label: n.value.name,
|
|
134
134
|
format: "nowrap"
|
|
@@ -147,7 +147,7 @@ const le = {
|
|
|
147
147
|
})
|
|
148
148
|
]),
|
|
149
149
|
_: 1
|
|
150
|
-
})) :
|
|
150
|
+
})) : N("", !0),
|
|
151
151
|
e.singleResetable ? (i(), p(h, {
|
|
152
152
|
key: 1,
|
|
153
153
|
onClick: O,
|
|
@@ -162,7 +162,7 @@ const le = {
|
|
|
162
162
|
})
|
|
163
163
|
]),
|
|
164
164
|
_: 1
|
|
165
|
-
})) :
|
|
165
|
+
})) : N("", !0)
|
|
166
166
|
])) : (i(), p(h, {
|
|
167
167
|
key: 1,
|
|
168
168
|
class: j({ "!w-full": !l.width }),
|
package/datatable/index.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ export interface CombinedHeaders {
|
|
|
253
253
|
export interface TableParentHeader
|
|
254
254
|
extends Pick<
|
|
255
255
|
TableColumn,
|
|
256
|
-
'header' | 'info' | 'infoSeverity' | 'headerClass'
|
|
256
|
+
'header' | 'info' | 'infoSeverity' | 'headerClass' | 'sortable'
|
|
257
257
|
> {
|
|
258
258
|
/**
|
|
259
259
|
* Field is used as the header's key, parent headers with
|
|
@@ -33,7 +33,7 @@ export interface DialogSelectTreeProps
|
|
|
33
33
|
/**
|
|
34
34
|
* The previously selected tree key to be displayed again.
|
|
35
35
|
*/
|
|
36
|
-
keys?: number[];
|
|
36
|
+
keys?: string[] | number[];
|
|
37
37
|
/**
|
|
38
38
|
* The lists to be displayed in the dialog.
|
|
39
39
|
*/
|
|
@@ -50,15 +50,15 @@ export interface DialogSelectTreeProps
|
|
|
50
50
|
/**
|
|
51
51
|
* @deprecated
|
|
52
52
|
*/
|
|
53
|
-
exactDisableKey?: number;
|
|
53
|
+
exactDisableKey?: string | number;
|
|
54
54
|
/**
|
|
55
55
|
* A list of node keys that should be disabled along with their children.
|
|
56
56
|
*/
|
|
57
|
-
disableKeys?: number[];
|
|
57
|
+
disableKeys?: string[] | number[];
|
|
58
58
|
/**
|
|
59
59
|
* A list of node keys that should be disabled, affecting only the specified nodes and not their children.
|
|
60
60
|
*/
|
|
61
|
-
exactDisableKeys?: number[];
|
|
61
|
+
exactDisableKeys?: string[] | number[];
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* A function to determine when the node should be disabled,
|
|
@@ -83,12 +83,18 @@ export interface DialogSelectTreeProps
|
|
|
83
83
|
/**
|
|
84
84
|
* Defines the group tree to disable excluded keys
|
|
85
85
|
*/
|
|
86
|
-
excludedKeys?: number[];
|
|
86
|
+
excludedKeys?: string[] | number[];
|
|
87
87
|
/**
|
|
88
88
|
* Render hidden dialog to trigger fetch tree
|
|
89
89
|
*/
|
|
90
90
|
hidden?: boolean;
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Determines whether the selection state of a node should propagate
|
|
94
|
+
* both upward to its parent node and downward to its child nodes.
|
|
95
|
+
*
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
92
98
|
propagateSelection?: boolean;
|
|
93
99
|
}
|
|
94
100
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as
|
|
1
|
+
import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as f, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
|
|
2
2
|
import { g as Q } from "../utils/object.util.es.js";
|
|
3
3
|
import { _ as j } from "../button/index.es.js";
|
|
4
4
|
import { _ as R } from "../dialog/index.es.js";
|
|
@@ -40,7 +40,7 @@ const ee = {
|
|
|
40
40
|
flattenDisposableNode: { type: Boolean },
|
|
41
41
|
excludedKeys: {},
|
|
42
42
|
hidden: { type: Boolean },
|
|
43
|
-
propagateSelection: { type: Boolean },
|
|
43
|
+
propagateSelection: { type: Boolean, default: !0 },
|
|
44
44
|
selectedKeys: {},
|
|
45
45
|
selectedTreeNodes: {},
|
|
46
46
|
useOption: { type: Boolean },
|
|
@@ -78,7 +78,7 @@ const ee = {
|
|
|
78
78
|
}),
|
|
79
79
|
emits: /* @__PURE__ */ T(["select", "hide"], ["update:visible"]),
|
|
80
80
|
setup($, { expose: A, emit: x }) {
|
|
81
|
-
const s = $, C = x, n = P($, "visible"),
|
|
81
|
+
const s = $, C = x, n = P($, "visible"), v = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
|
|
82
82
|
c.value = u.value, S.value = w.value, Object.keys(c.value ?? {}).length ? (C("select", {
|
|
83
83
|
keys: c.value,
|
|
84
84
|
selectedNodes: m.value,
|
|
@@ -115,7 +115,7 @@ const ee = {
|
|
|
115
115
|
pt: {
|
|
116
116
|
root: {
|
|
117
117
|
class: [
|
|
118
|
-
...v
|
|
118
|
+
...f(v).root({ state: {} }).class,
|
|
119
119
|
"!w-[400px]",
|
|
120
120
|
{ "!hidden": e.hidden }
|
|
121
121
|
]
|
|
@@ -128,7 +128,7 @@ const ee = {
|
|
|
128
128
|
},
|
|
129
129
|
content: {
|
|
130
130
|
class: [
|
|
131
|
-
...v
|
|
131
|
+
...f(v).content({ state: {}, instance: {} }).class,
|
|
132
132
|
"pr-1.5 focus-visible:outline-none"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
@@ -161,17 +161,17 @@ const ee = {
|
|
|
161
161
|
return [
|
|
162
162
|
K("div", ee, [
|
|
163
163
|
K("h3", {
|
|
164
|
-
class: V([...v
|
|
164
|
+
class: V([...f(v).title.class, "!leading-6"])
|
|
165
165
|
}, L(H.value), 3),
|
|
166
166
|
e.lists ? (d(), k("ul", le, [
|
|
167
167
|
(d(!0), k(I, null, Y(e.lists, (i, F) => (d(), k("li", {
|
|
168
168
|
key: F,
|
|
169
169
|
class: "text-xs leading-[16.39px] tracking-[0.02em] font-medium text-general-800 list-disc ps-[6px]"
|
|
170
|
-
}, L(e.listLabel && typeof i != "string" ?
|
|
170
|
+
}, L(e.listLabel && typeof i != "string" ? f(Q)(i, e.listLabel) : i), 1))), 128))
|
|
171
171
|
])) : h("", !0),
|
|
172
172
|
e.subHeader ? (d(), k("h4", {
|
|
173
173
|
key: 1,
|
|
174
|
-
class: V([...v
|
|
174
|
+
class: V([...f(v).title.class, "!leading-6 text-sm"])
|
|
175
175
|
}, L(e.subHeader), 3)) : h("", !0),
|
|
176
176
|
(a = r.value) != null && a.isLoading ? h("", !0) : (d(), N(Z, {
|
|
177
177
|
key: 2,
|
|
@@ -54,13 +54,13 @@ type BaseSelectField<OptionsQueryParams extends QueryParams> = {
|
|
|
54
54
|
|
|
55
55
|
export interface MultiSelectFilterField<OptionsQueryParams extends QueryParams>
|
|
56
56
|
extends BaseSelectField<OptionsQueryParams>,
|
|
57
|
-
MultiSelectProps {
|
|
57
|
+
Omit<MultiSelectProps, 'fieldName' | 'options'> {
|
|
58
58
|
type: 'multiselect';
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export interface DropdownFilterField<OptionsQueryParams extends QueryParams>
|
|
62
62
|
extends BaseSelectField<OptionsQueryParams>,
|
|
63
|
-
DropdownProps {
|
|
63
|
+
Omit<DropdownProps, 'fieldName' | 'options'> {
|
|
64
64
|
type: 'dropdown';
|
|
65
65
|
}
|
|
66
66
|
|
package/hardwaresync/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as G, onMounted as K, shallowRef as u, computed as
|
|
1
|
+
import { defineComponent as G, onMounted as K, shallowRef as u, computed as m, ref as X, watch as ee, createBlock as g, openBlock as p, createSlots as ae, withCtx as E, createCommentVNode as b, createVNode as C, createElementVNode as V, normalizeClass as M, createElementBlock as ne, Fragment as te, toDisplayString as se } from "vue";
|
|
2
2
|
import { u as le } from "../utils/baseToast.util.es.js";
|
|
3
3
|
import { u as oe, W as re, g as ie } from "../buttonscan/index.es.js";
|
|
4
|
-
import { _ } from "../button/index.es.js";
|
|
4
|
+
import { _ as R } from "../button/index.es.js";
|
|
5
5
|
import { _ as ce } from "../dialog/index.es.js";
|
|
6
6
|
import { _ as $ } from "../dropdown/index.es.js";
|
|
7
7
|
import { _ as ue } from "../icon/index.es.js";
|
|
8
|
-
import { _ as
|
|
8
|
+
import { _ as de } from "../inlinemessage/index.es.js";
|
|
9
9
|
const De = /* @__PURE__ */ G({
|
|
10
10
|
__name: "HardwareSync",
|
|
11
11
|
props: {
|
|
@@ -22,7 +22,7 @@ const De = /* @__PURE__ */ G({
|
|
|
22
22
|
O();
|
|
23
23
|
});
|
|
24
24
|
const {
|
|
25
|
-
device:
|
|
25
|
+
device: _,
|
|
26
26
|
devices: I,
|
|
27
27
|
saveDevices: U,
|
|
28
28
|
setDevice: Q,
|
|
@@ -30,37 +30,37 @@ const De = /* @__PURE__ */ G({
|
|
|
30
30
|
} = oe(), i = {
|
|
31
31
|
label: "None",
|
|
32
32
|
device: void 0
|
|
33
|
-
},
|
|
34
|
-
var
|
|
35
|
-
if ((
|
|
36
|
-
const s = (
|
|
33
|
+
}, d = u(!1), l = u(i), r = u(i), T = (n) => {
|
|
34
|
+
var a, e;
|
|
35
|
+
if ((a = I.value) != null && a.length) {
|
|
36
|
+
const s = (e = I.value) == null ? void 0 : e.filter((t) => t[n]).map((t) => ({
|
|
37
37
|
label: `${t.name ?? t.jenisDevice + " - " + t.serialNumber}`,
|
|
38
38
|
device: t
|
|
39
39
|
}));
|
|
40
40
|
return s.length ? s : [];
|
|
41
41
|
}
|
|
42
42
|
return l.value = i, r.value = i, [];
|
|
43
|
-
},
|
|
43
|
+
}, f = m(() => T("rfidScan")), y = m(() => T("qrScan")), w = m(
|
|
44
44
|
() => o.errorCode === "NOT_SUPPORTED_SYSTEM"
|
|
45
|
-
), H =
|
|
45
|
+
), H = m(() => o.searchBy === "RFID" && l.value.device), Y = m(() => o.searchBy === "QR" && r.value.device), D = m(() => !!o.searchBy && o.errorCode !== "HARDWARE_NOT_SYNCHRONIZED"), B = async (n) => {
|
|
46
46
|
try {
|
|
47
47
|
U(n);
|
|
48
|
-
const
|
|
48
|
+
const a = f.value.some(
|
|
49
49
|
(s) => {
|
|
50
|
-
var t,
|
|
51
|
-
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (
|
|
50
|
+
var t, v, S;
|
|
51
|
+
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (v = l.value) == null ? void 0 : v.device) == null ? void 0 : S.serialNumber);
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), e = y.value.some(
|
|
54
54
|
(s) => {
|
|
55
|
-
var t,
|
|
56
|
-
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (
|
|
55
|
+
var t, v, S;
|
|
56
|
+
return ((t = s == null ? void 0 : s.device) == null ? void 0 : t.serialNumber) === ((S = (v = r.value) == null ? void 0 : v.device) == null ? void 0 : S.serialNumber);
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
l.value =
|
|
60
|
-
} catch (
|
|
61
|
-
c.value = h(ie(
|
|
59
|
+
l.value = a ? l.value : f.value[0] ?? i, r.value = e ? r.value : y.value[0] ?? i, N();
|
|
60
|
+
} catch (a) {
|
|
61
|
+
c.value = h(ie(a));
|
|
62
62
|
} finally {
|
|
63
|
-
|
|
63
|
+
d.value = !1;
|
|
64
64
|
}
|
|
65
65
|
}, c = X(), j = u({
|
|
66
66
|
title: "The detected OS is not compatible",
|
|
@@ -98,25 +98,26 @@ const De = /* @__PURE__ */ G({
|
|
|
98
98
|
QR: r.value.device
|
|
99
99
|
});
|
|
100
100
|
}, O = () => {
|
|
101
|
-
z(),
|
|
102
|
-
label:
|
|
103
|
-
device:
|
|
104
|
-
} :
|
|
101
|
+
z(), _.value.RFID ? l.value = {
|
|
102
|
+
label: _.value.RFID.name,
|
|
103
|
+
device: _.value.RFID
|
|
104
|
+
} : f.value.length && (l.value = f.value[0] ?? i), y.value.length && (r.value = y.value[0] ?? i), N();
|
|
105
105
|
}, F = () => {
|
|
106
106
|
k("update:visible", !1), k("scan");
|
|
107
107
|
}, Z = () => {
|
|
108
|
-
var n;
|
|
109
|
-
|
|
110
|
-
var
|
|
108
|
+
var n, a;
|
|
109
|
+
d.value = !0, c.value = void 0, window.scannerWorker.onmessage = ({ data: e }) => {
|
|
110
|
+
var s;
|
|
111
111
|
if (e.status === "synced") {
|
|
112
|
-
const
|
|
113
|
-
B(
|
|
114
|
-
const { error:
|
|
115
|
-
|
|
116
|
-
} else e.status === "error_sync" && (
|
|
112
|
+
const t = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.deviceList) ?? [];
|
|
113
|
+
B(t);
|
|
114
|
+
const { error: v } = (e == null ? void 0 : e.data) ?? {};
|
|
115
|
+
v === "Driver not connected to server" ? (d.value = !1, c.value = h("DRIVER_NOT_FOUND")) : t.length || (d.value = !1, c.value = h("DEVICE_NOT_CONNECTED"));
|
|
116
|
+
} else e.status === "error_sync" && (d.value = !1, B([]), P.add({ message: "Failed to connecting scanner", severity: "error" }));
|
|
117
117
|
}, window.scannerWorker.postMessage({
|
|
118
118
|
command: "sync",
|
|
119
|
-
userId: (n = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : n._id
|
|
119
|
+
userId: (n = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : n._id,
|
|
120
|
+
companyCode: (a = JSON.parse(localStorage.getItem("user") ?? "{}")) == null ? void 0 : a.companyCode
|
|
120
121
|
});
|
|
121
122
|
}, q = () => {
|
|
122
123
|
window.scannerWorker ?? (window.scannerWorker = new re());
|
|
@@ -124,9 +125,9 @@ const De = /* @__PURE__ */ G({
|
|
|
124
125
|
return ee(
|
|
125
126
|
() => o.visible,
|
|
126
127
|
(n) => {
|
|
127
|
-
n && (q(), c.value = h(), O(),
|
|
128
|
+
n && (q(), c.value = h(), O(), d.value = !1);
|
|
128
129
|
}
|
|
129
|
-
), (n,
|
|
130
|
+
), (n, a) => (p(), g(ce, {
|
|
130
131
|
closable: !D.value,
|
|
131
132
|
"header-class": [
|
|
132
133
|
{
|
|
@@ -134,7 +135,7 @@ const De = /* @__PURE__ */ G({
|
|
|
134
135
|
}
|
|
135
136
|
],
|
|
136
137
|
visible: n.visible,
|
|
137
|
-
"onUpdate:visible":
|
|
138
|
+
"onUpdate:visible": a[3] || (a[3] = (e) => n.$emit("update:visible", e)),
|
|
138
139
|
class: "w-[400px]",
|
|
139
140
|
"content-class": "!overflow-y-visible",
|
|
140
141
|
"footer-class": "!gap-1",
|
|
@@ -142,21 +143,21 @@ const De = /* @__PURE__ */ G({
|
|
|
142
143
|
modal: ""
|
|
143
144
|
}, ae({
|
|
144
145
|
footer: E(() => [
|
|
145
|
-
D.value ? (
|
|
146
|
+
D.value ? (p(), g(R, {
|
|
146
147
|
key: 0,
|
|
147
|
-
onClick:
|
|
148
|
+
onClick: a[2] || (a[2] = (e) => n.$emit("update:visible", !1)),
|
|
148
149
|
label: "Close",
|
|
149
150
|
severity: "secondary",
|
|
150
151
|
text: ""
|
|
151
152
|
})) : b("", !0),
|
|
152
|
-
w.value ? b("", !0) : (
|
|
153
|
-
H.value && !o.withoutScanBtn ? (
|
|
153
|
+
w.value ? b("", !0) : (p(), ne(te, { key: 1 }, [
|
|
154
|
+
H.value && !o.withoutScanBtn ? (p(), g(R, {
|
|
154
155
|
key: 0,
|
|
155
156
|
onClick: F,
|
|
156
157
|
icon: "rfid",
|
|
157
158
|
label: "Scan RFID"
|
|
158
159
|
})) : b("", !0),
|
|
159
|
-
Y.value && !o.withoutScanBtn ? (
|
|
160
|
+
Y.value && !o.withoutScanBtn ? (p(), g(R, {
|
|
160
161
|
key: 1,
|
|
161
162
|
onClick: F,
|
|
162
163
|
icon: "qr",
|
|
@@ -165,7 +166,7 @@ const De = /* @__PURE__ */ G({
|
|
|
165
166
|
], 64))
|
|
166
167
|
]),
|
|
167
168
|
default: E(() => [
|
|
168
|
-
c.value ? (
|
|
169
|
+
c.value ? (p(), g(de, {
|
|
169
170
|
key: 0,
|
|
170
171
|
class: M(["p-[9.52px] transition"]),
|
|
171
172
|
message: c.value.detail,
|
|
@@ -175,9 +176,9 @@ const De = /* @__PURE__ */ G({
|
|
|
175
176
|
"message-wrapper-class": "text-[11px] leading-[14px] tracking-[0.02em]",
|
|
176
177
|
severity: "danger"
|
|
177
178
|
}, null, 8, ["message", "title"])) : b("", !0),
|
|
178
|
-
R
|
|
179
|
+
C(R, {
|
|
179
180
|
disabled: w.value,
|
|
180
|
-
loading:
|
|
181
|
+
loading: d.value,
|
|
181
182
|
onClick: Z,
|
|
182
183
|
icon: "refresh",
|
|
183
184
|
label: "Sync",
|
|
@@ -191,23 +192,23 @@ const De = /* @__PURE__ */ G({
|
|
|
191
192
|
]),
|
|
192
193
|
"data-ts-section": "scanner-list"
|
|
193
194
|
}, [
|
|
194
|
-
|
|
195
|
+
C($, {
|
|
195
196
|
modelValue: l.value,
|
|
196
197
|
"onUpdate:modelValue": [
|
|
197
|
-
|
|
198
|
+
a[0] || (a[0] = (e) => l.value = e),
|
|
198
199
|
N
|
|
199
200
|
],
|
|
200
|
-
options:
|
|
201
|
+
options: f.value,
|
|
201
202
|
label: "RFID Scanner",
|
|
202
203
|
"option-label": "label"
|
|
203
204
|
}, null, 8, ["modelValue", "options"]),
|
|
204
|
-
|
|
205
|
+
C($, {
|
|
205
206
|
modelValue: r.value,
|
|
206
207
|
"onUpdate:modelValue": [
|
|
207
|
-
|
|
208
|
+
a[1] || (a[1] = (e) => r.value = e),
|
|
208
209
|
N
|
|
209
210
|
],
|
|
210
|
-
options:
|
|
211
|
+
options: y.value,
|
|
211
212
|
label: "QR Scanner",
|
|
212
213
|
"option-label": "label"
|
|
213
214
|
}, null, 8, ["modelValue", "options"])
|
|
@@ -218,10 +219,10 @@ const De = /* @__PURE__ */ G({
|
|
|
218
219
|
D.value ? {
|
|
219
220
|
name: "header",
|
|
220
221
|
fn: E(() => {
|
|
221
|
-
var
|
|
222
|
+
var e;
|
|
222
223
|
return [
|
|
223
|
-
|
|
224
|
-
icon: (
|
|
224
|
+
C(ue, {
|
|
225
|
+
icon: (e = n.searchBy) == null ? void 0 : e.toLowerCase()
|
|
225
226
|
}, null, 8, ["icon"]),
|
|
226
227
|
V("h3", null, "Scan " + se(n.searchBy), 1)
|
|
227
228
|
];
|
package/icon/index.d.ts
CHANGED