@fewangsit/wangsvue-fats 1.0.1-alpha.42 → 1.0.1-alpha.44
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/approverinfo/index.d.ts +4 -0
- package/approverinfo/index.es.js +50 -43
- package/backgroundimagecropper/index.es.js +2 -2
- package/datatable/index.d.ts +9 -12
- package/datatable/index.es.js +40 -48
- package/dialogprintqr/index.es.js +2 -2
- package/dialogselectuser/index.es.js +1 -1
- package/disposalreporttable/index.es.js +56 -57
- package/package.json +1 -1
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/role.util.es.js +23 -23
- package/wangsvue-fats.esm.browser.js +933 -935
- package/wangsvue-fats.system.js +27 -27
package/approverinfo/index.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export interface ApproverInfoProps {
|
|
|
20
20
|
* @default true
|
|
21
21
|
*/
|
|
22
22
|
showShortInfo?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* To customize the level 0 label, for example 'Senior'
|
|
25
|
+
*/
|
|
26
|
+
customLevelZeroLabel?: string;
|
|
23
27
|
/**
|
|
24
28
|
* To set label text when showShortInfo is false
|
|
25
29
|
*/
|
package/approverinfo/index.es.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { f as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { defineComponent as N, shallowRef as B, computed as F, createElementBlock as o, openBlock as t, Fragment as i, createElementVNode as l, createVNode as m, toDisplayString as r, withCtx as I, renderList as k, createBlock as g, createCommentVNode as h, createTextVNode as w } from "vue";
|
|
2
|
+
import { f as V } from "../utils/date.util.es.js";
|
|
3
|
+
import { _ as L } from "../badge/index.es.js";
|
|
4
4
|
import { _ as $ } from "../dialog/index.es.js";
|
|
5
5
|
import { _ as A } from "../icon/index.es.js";
|
|
6
|
-
const
|
|
6
|
+
const E = {
|
|
7
7
|
class: "flex justify-end gap-1 items-center pb-1 flex-wrap whitespace-nowrap",
|
|
8
8
|
"data-wv-name": "approver-info"
|
|
9
|
-
},
|
|
9
|
+
}, Z = { class: "text-primary-500" }, H = { class: "text-general-800" }, M = { key: 1 }, S = { class: "flex flex-col gap-3 justify-between" }, T = { class: "flex justify-between" }, U = { class: "text-general-800 text-xs font-medium" }, P = { class: "flex justify-between items-center" }, R = { class: "text-primary-500 font-medium text-xs" }, q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "text-general-800 font-normal text-xs"
|
|
12
12
|
}, z = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "flex gap-1 justify-end items-center"
|
|
15
|
-
}, G = { class: "text-general-800 font-normal text-xs" }, X = /* @__PURE__ */
|
|
15
|
+
}, G = { class: "text-general-800 font-normal text-xs" }, X = /* @__PURE__ */ N({
|
|
16
16
|
__name: "ApproverInfo",
|
|
17
17
|
props: {
|
|
18
18
|
approvals: {},
|
|
19
19
|
showShortInfo: { type: Boolean, default: !0 },
|
|
20
|
+
customLevelZeroLabel: {},
|
|
20
21
|
label: {},
|
|
21
22
|
btnLabel: {},
|
|
22
23
|
useFormatDate: { type: Boolean, default: !0 }
|
|
23
24
|
},
|
|
24
25
|
setup(D) {
|
|
25
|
-
const u = D,
|
|
26
|
-
var
|
|
27
|
-
let
|
|
28
|
-
return (
|
|
29
|
-
e = b.approvers.findIndex((
|
|
26
|
+
const u = D, p = B(!1), d = F(() => {
|
|
27
|
+
var c, a, n, v, y, x, _;
|
|
28
|
+
let s, e;
|
|
29
|
+
return (c = u.approvals) == null || c.forEach((b) => {
|
|
30
|
+
e = b.approvers.findIndex((C) => !!C.actionAt), s = e === -1 ? 0 : b.level - 1, e = e === -1 ? 0 : e;
|
|
30
31
|
}), {
|
|
31
|
-
name: (v = (n = (
|
|
32
|
-
date: (
|
|
32
|
+
name: (v = (n = (a = u.approvals) == null ? void 0 : a[s]) == null ? void 0 : n.approvers[e]) == null ? void 0 : v.fullName,
|
|
33
|
+
date: (_ = (x = (y = u.approvals) == null ? void 0 : y[s]) == null ? void 0 : x.approvers[e]) == null ? void 0 : _.actionAt
|
|
33
34
|
};
|
|
34
|
-
}), j = (
|
|
35
|
+
}), j = (s) => {
|
|
35
36
|
let e;
|
|
36
|
-
switch (
|
|
37
|
+
switch (s) {
|
|
37
38
|
case "menyetujui":
|
|
38
39
|
e = "success";
|
|
39
40
|
break;
|
|
@@ -44,73 +45,79 @@ const V = {
|
|
|
44
45
|
e = "warning";
|
|
45
46
|
}
|
|
46
47
|
return e;
|
|
47
|
-
}, f = (
|
|
48
|
+
}, f = (s) => u.useFormatDate ? s ? V(new Date(s), {
|
|
48
49
|
locale: "id-ID",
|
|
49
50
|
dateFormat: "dd M yyyy",
|
|
50
51
|
timeFormat: "HH:mm:ss"
|
|
51
|
-
}) : "-" :
|
|
52
|
-
return (
|
|
53
|
-
var
|
|
54
|
-
return
|
|
55
|
-
l("div",
|
|
56
|
-
|
|
52
|
+
}) : "-" : s;
|
|
53
|
+
return (s, e) => {
|
|
54
|
+
var c;
|
|
55
|
+
return t(), o(i, null, [
|
|
56
|
+
l("div", E, [
|
|
57
|
+
s.showShortInfo ? (t(), o(i, { key: 0 }, [
|
|
57
58
|
e[3] || (e[3] = l("span", null, "Approver:", -1)),
|
|
58
|
-
(
|
|
59
|
+
(c = s.approvals) != null && c.length ? (t(), o(i, { key: 0 }, [
|
|
59
60
|
m(A, {
|
|
60
61
|
class: "!text-general-200 !text-base",
|
|
61
62
|
icon: "user"
|
|
62
63
|
}),
|
|
63
|
-
l("span",
|
|
64
|
+
l("span", Z, r(d.value.name), 1),
|
|
64
65
|
l("span", H, r(f(d.value.date)), 1),
|
|
65
66
|
l("span", {
|
|
66
|
-
onClick: e[0] || (e[0] = (
|
|
67
|
+
onClick: e[0] || (e[0] = (a) => p.value = !0),
|
|
67
68
|
class: "text-primary-500 hover:cursor-pointer"
|
|
68
69
|
}, r(u.btnLabel ?? "more"), 1)
|
|
69
|
-
], 64)) : (
|
|
70
|
-
], 64)) : (
|
|
70
|
+
], 64)) : (t(), o("span", M, "-"))
|
|
71
|
+
], 64)) : (t(), o("span", {
|
|
71
72
|
key: 1,
|
|
72
|
-
onClick: e[1] || (e[1] = (
|
|
73
|
+
onClick: e[1] || (e[1] = (a) => p.value = !0),
|
|
73
74
|
class: "text-primary-500 hover:cursor-pointer"
|
|
74
|
-
}, r(
|
|
75
|
+
}, r(s.label ?? "Lihat Approval"), 1))
|
|
75
76
|
]),
|
|
76
77
|
m($, {
|
|
77
|
-
visible:
|
|
78
|
-
"onUpdate:visible": e[2] || (e[2] = (
|
|
78
|
+
visible: p.value,
|
|
79
|
+
"onUpdate:visible": e[2] || (e[2] = (a) => p.value = a),
|
|
79
80
|
class: "min-w-[400px]",
|
|
80
81
|
header: "List Approver",
|
|
81
82
|
modal: ""
|
|
82
83
|
}, {
|
|
83
84
|
default: I(() => [
|
|
84
85
|
l("div", S, [
|
|
85
|
-
(
|
|
86
|
-
key:
|
|
86
|
+
(t(!0), o(i, null, k(s.approvals, (a) => (t(), o(i, {
|
|
87
|
+
key: a._id
|
|
87
88
|
}, [
|
|
88
|
-
l("div",
|
|
89
|
-
l("span",
|
|
90
|
-
|
|
89
|
+
l("div", T, [
|
|
90
|
+
l("span", U, [
|
|
91
|
+
a.level === 0 && u.customLevelZeroLabel ? (t(), o(i, { key: 0 }, [
|
|
92
|
+
w(r(u.customLevelZeroLabel), 1)
|
|
93
|
+
], 64)) : (t(), o(i, { key: 1 }, [
|
|
94
|
+
w(" Level " + r(a.level) + " (" + r(a.type.toLowerCase()) + ") ", 1)
|
|
95
|
+
], 64))
|
|
96
|
+
]),
|
|
97
|
+
a.status !== "menunggu approval" ? (t(), g(L, {
|
|
91
98
|
key: 0,
|
|
92
99
|
label: "selesai",
|
|
93
100
|
severity: "success"
|
|
94
|
-
})) :
|
|
101
|
+
})) : h("", !0)
|
|
95
102
|
]),
|
|
96
|
-
(
|
|
103
|
+
(t(!0), o(i, null, k(a.approvers, (n) => (t(), o("div", {
|
|
97
104
|
key: n._id,
|
|
98
105
|
class: "flex justify-between"
|
|
99
106
|
}, [
|
|
100
|
-
l("div",
|
|
107
|
+
l("div", P, [
|
|
101
108
|
m(A, {
|
|
102
109
|
class: "!text-general-200 !text-base",
|
|
103
110
|
icon: "user"
|
|
104
111
|
}),
|
|
105
|
-
l("span",
|
|
112
|
+
l("span", R, r(n.fullName), 1)
|
|
106
113
|
]),
|
|
107
|
-
|
|
114
|
+
a.status !== "menunggu approval" && !n.action ? (t(), o("span", q, " Tidak terlibat ")) : (t(), o("div", z, [
|
|
108
115
|
l("span", G, r(n.actionAt ? f(n.actionAt) : "Menunggu approval..."), 1),
|
|
109
|
-
n.action ? (
|
|
116
|
+
n.action ? (t(), g(L, {
|
|
110
117
|
key: 0,
|
|
111
118
|
label: n.action,
|
|
112
119
|
severity: j(n.action)
|
|
113
|
-
}, null, 8, ["label", "severity"])) :
|
|
120
|
+
}, null, 8, ["label", "severity"])) : h("", !0)
|
|
114
121
|
]))
|
|
115
122
|
]))), 128))
|
|
116
123
|
], 64))), 128))
|
|
@@ -50,8 +50,8 @@ const I = (i, s) => {
|
|
|
50
50
|
_: 3
|
|
51
51
|
}, 8, ["mouse-move", "touch-move", "touch-resize", "wheel-resize"]));
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), S = /* @__PURE__ */ I(R, [["__scopeId", "data-v-9031c32d"]]);
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
S as B,
|
|
56
56
|
I as _
|
|
57
57
|
};
|
package/datatable/index.d.ts
CHANGED
|
@@ -246,17 +246,18 @@ export type ColumnPreset =
|
|
|
246
246
|
| ColumnCheckboxPreset;
|
|
247
247
|
|
|
248
248
|
export interface CombinedHeaders {
|
|
249
|
-
parent:
|
|
249
|
+
parent: TableParentHeader[];
|
|
250
250
|
child: TreeTableColumns[];
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export interface
|
|
253
|
+
export interface TableParentHeader
|
|
254
254
|
extends Pick<
|
|
255
255
|
TableColumn,
|
|
256
256
|
'header' | 'info' | 'infoSeverity' | 'headerClass'
|
|
257
257
|
> {
|
|
258
258
|
/**
|
|
259
|
-
* Field is used as the header's key
|
|
259
|
+
* Field is used as the header's key, parent headers with
|
|
260
|
+
* the same field will be grouped into one cell
|
|
260
261
|
*/
|
|
261
262
|
field: string;
|
|
262
263
|
/**
|
|
@@ -274,9 +275,12 @@ export interface TableParentHeaders
|
|
|
274
275
|
export interface TableColumn {
|
|
275
276
|
header?: string;
|
|
276
277
|
/**
|
|
277
|
-
* The
|
|
278
|
+
* The headers placed above certain child headers. If there are
|
|
279
|
+
* multiple child headers with the same parent header, the parent
|
|
280
|
+
* will have its colspan extended. The parent header will be shown
|
|
281
|
+
* when at least one of its child headers is visible.
|
|
278
282
|
*/
|
|
279
|
-
parentHeader?:
|
|
283
|
+
parentHeader?: TableParentHeader;
|
|
280
284
|
field: string;
|
|
281
285
|
fieldType?: 'string' | 'number' | 'boolean' | 'array';
|
|
282
286
|
info?: string;
|
|
@@ -530,13 +534,6 @@ export interface BaseDataTableProps {
|
|
|
530
534
|
* @optional
|
|
531
535
|
*/
|
|
532
536
|
tableTitle?: string;
|
|
533
|
-
/**
|
|
534
|
-
* The headers placed above certain child headers. If there are
|
|
535
|
-
* multiple child headers with the same parent header, the parent
|
|
536
|
-
* will have its colspan extended. The parent header will be shown
|
|
537
|
-
* when at least one of its child headers is visible.
|
|
538
|
-
*/
|
|
539
|
-
parentHeaders?: TableParentHeaders[];
|
|
540
537
|
/**
|
|
541
538
|
* An array of table columns to display.
|
|
542
539
|
*/
|
package/datatable/index.es.js
CHANGED
|
@@ -4,9 +4,9 @@ import { e as m } from "../event-bus/index.es.js";
|
|
|
4
4
|
import { u as St } from "../plugins/WangsVue.es.js";
|
|
5
5
|
import { u as Nt } from "../utils/baseToast.util.es.js";
|
|
6
6
|
import { f as At } from "../utils/date.util.es.js";
|
|
7
|
-
import { n as
|
|
7
|
+
import { n as Ft, e as Ht } from "../utils/exportToExcel.util.es.js";
|
|
8
8
|
import { m as Bt } from "../utils/mergePropsWithDefaults.util.es.js";
|
|
9
|
-
import { s as ce, g as
|
|
9
|
+
import { s as ce, g as H } from "../utils/object.util.es.js";
|
|
10
10
|
import { u as $t } from "../assetinfo/index.es.js";
|
|
11
11
|
import { s as xt } from "../vendor/primevue/paginator/paginator.esm.es.js";
|
|
12
12
|
import { O as Oa } from "../vendor/primevue/utils/utils.esm.es.js";
|
|
@@ -37,7 +37,6 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
37
37
|
childTableProps: {},
|
|
38
38
|
tableName: { default: "datatable" },
|
|
39
39
|
tableTitle: { default: void 0 },
|
|
40
|
-
parentHeaders: {},
|
|
41
40
|
columns: {},
|
|
42
41
|
useOption: { type: Boolean, default: !0 },
|
|
43
42
|
data: {},
|
|
@@ -90,20 +89,13 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
90
89
|
if (a.parentHeader) {
|
|
91
90
|
e.child.push(a);
|
|
92
91
|
const n = e.parent.find(
|
|
93
|
-
(s) => s.field === a.parentHeader
|
|
92
|
+
(s) => s.field === a.parentHeader.field
|
|
94
93
|
);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
);
|
|
101
|
-
s && e.parent.push({
|
|
102
|
-
...s,
|
|
103
|
-
colspan: 1,
|
|
104
|
-
rowspan: 1
|
|
105
|
-
});
|
|
106
|
-
}
|
|
94
|
+
n ? n.colspan && n.colspan++ : e.parent.push({
|
|
95
|
+
...a.parentHeader,
|
|
96
|
+
colspan: 1,
|
|
97
|
+
rowspan: 1
|
|
98
|
+
});
|
|
107
99
|
} else
|
|
108
100
|
e.parent.push(a);
|
|
109
101
|
return e;
|
|
@@ -229,9 +221,9 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
229
221
|
...e,
|
|
230
222
|
currentTarget: e.currentTarget ?? e.target
|
|
231
223
|
};
|
|
232
|
-
|
|
224
|
+
He(), await Ma(() => {
|
|
233
225
|
var d;
|
|
234
|
-
s != null && s.classList.contains("option-button-active") ?
|
|
226
|
+
s != null && s.classList.contains("option-button-active") ? He() : ((d = Qe.value) == null || d.toggle(v), He(), s == null || s.classList.add("option-button-active"));
|
|
235
227
|
});
|
|
236
228
|
}, Xe = async (e, a, n) => {
|
|
237
229
|
var v, d, b, f;
|
|
@@ -239,7 +231,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
239
231
|
const s = () => ce(
|
|
240
232
|
a,
|
|
241
233
|
n.field,
|
|
242
|
-
!
|
|
234
|
+
!H(a, n.field)
|
|
243
235
|
);
|
|
244
236
|
if (n.preset.type === "checkbox" ? (d = (v = n.preset).onCheck) == null || d.call(v, e, a, s) : n.preset.type === "toggle" && ((f = (b = n.preset).onToggle) == null || f.call(b, e, a, s)), "confirmDialogProps" in n.preset) {
|
|
245
237
|
const { showWhen: w } = xe(
|
|
@@ -252,14 +244,14 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
252
244
|
e
|
|
253
245
|
) : ge.value[a[t.dataKey] + n.field] = !w || w === "active" && e || w === "inactive" && !e;
|
|
254
246
|
}
|
|
255
|
-
},
|
|
247
|
+
}, Fe = (e) => e.draggable !== !1 && !e.childRow && !e.childRowHeader && t.reorderable && !D.value, at = (e, a, n) => {
|
|
256
248
|
if (a.childRow || a.childRowHeader) return;
|
|
257
249
|
$.value = {};
|
|
258
250
|
const { dataTransfer: s } = e;
|
|
259
251
|
be.value = a, q.value = { item: a, fromIndex: n }, s && (s.dropEffect = "move", s.effectAllowed = "move", s.setData("id", a._id), s.setData("index", n.toString()));
|
|
260
252
|
}, tt = (e, a) => {
|
|
261
253
|
var n, s;
|
|
262
|
-
if (e.preventDefault(),
|
|
254
|
+
if (e.preventDefault(), Fe(a)) {
|
|
263
255
|
const v = e.target, d = v.tagName === "TR" ? v : v.closest("tr");
|
|
264
256
|
if (d == null || d.classList.add("bg-primary-50"), (n = d == null ? void 0 : d.nextElementSibling) == null || n.classList.remove("bg-primary-50"), (s = d == null ? void 0 : d.previousElementSibling) == null || s.classList.remove("bg-primary-50"), !d || !be.value) return;
|
|
265
257
|
const b = M.value.findIndex(
|
|
@@ -282,7 +274,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
282
274
|
q.value && z("rowReorder", q.value), be.value = void 0, Te.value = !1, q.value = void 0;
|
|
283
275
|
}, ot = () => {
|
|
284
276
|
g.value = [...M.value];
|
|
285
|
-
},
|
|
277
|
+
}, He = () => {
|
|
286
278
|
const e = document.querySelectorAll(".option-button-active");
|
|
287
279
|
e == null || e.forEach((a) => {
|
|
288
280
|
a.classList.remove("option-button-active");
|
|
@@ -303,7 +295,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
303
295
|
try {
|
|
304
296
|
e = n.length ? e.filter((s) => n.every(
|
|
305
297
|
([v, { value: d, matchMode: b }]) => {
|
|
306
|
-
const f =
|
|
298
|
+
const f = H(s, v);
|
|
307
299
|
switch (b) {
|
|
308
300
|
case "IN":
|
|
309
301
|
return Array.isArray(d) ? d.includes(f) : !1;
|
|
@@ -423,7 +415,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
423
415
|
try {
|
|
424
416
|
if (m.off("data-table:download", me), e === t.tableName) {
|
|
425
417
|
ze(!0, Le.downloadingMessage);
|
|
426
|
-
const { data: k } = t.fetchFunction ? await aa() : { data: t.data }, l =
|
|
418
|
+
const { data: k } = t.fetchFunction ? await aa() : { data: t.data }, l = Ft(k, d, Le);
|
|
427
419
|
if (a != null && a.length) {
|
|
428
420
|
m.emit("button-download:multi-tables", {
|
|
429
421
|
table: {
|
|
@@ -435,7 +427,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
435
427
|
});
|
|
436
428
|
return;
|
|
437
429
|
}
|
|
438
|
-
await
|
|
430
|
+
await Ht({
|
|
439
431
|
tables: [
|
|
440
432
|
{ headers: b, data: l, tableName: e, tableTitle: t.tableTitle }
|
|
441
433
|
],
|
|
@@ -640,7 +632,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
640
632
|
L("tr", p(
|
|
641
633
|
{
|
|
642
634
|
id: l._id,
|
|
643
|
-
draggable:
|
|
635
|
+
draggable: Fe(l),
|
|
644
636
|
ref_for: !0
|
|
645
637
|
},
|
|
646
638
|
(se = r(u)) == null ? void 0 : se.bodyrow({
|
|
@@ -648,7 +640,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
648
640
|
highlighted: l[e.highlightKey ?? ""],
|
|
649
641
|
selected: Ae(l[e.dataKey]),
|
|
650
642
|
disabled: Y(l[e.dataKey]),
|
|
651
|
-
draggable:
|
|
643
|
+
draggable: Fe(l),
|
|
652
644
|
dragging: Te.value
|
|
653
645
|
},
|
|
654
646
|
props: t
|
|
@@ -782,7 +774,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
782
774
|
], 16)
|
|
783
775
|
], 10, rl)) : (i(), c(_, { key: 7 }, [
|
|
784
776
|
(i(!0), c(_, null, Q(l.childRow ? qe.value : x.value, (o) => {
|
|
785
|
-
var V, de, wa, ka, Ca, Ra, Da, _a, Ta, Pa, Ka, Ea, Sa, Na, Aa, we,
|
|
777
|
+
var V, de, wa, ka, Ca, Ra, Da, _a, Ta, Pa, Ka, Ea, Sa, Na, Aa, we, Fa, Ha;
|
|
786
778
|
return i(), c("td", p({
|
|
787
779
|
key: o.field,
|
|
788
780
|
class: [
|
|
@@ -801,7 +793,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
801
793
|
key: 0,
|
|
802
794
|
disabled: Y(l[e.dataKey]) || (typeof ((Da = o.preset) == null ? void 0 : Da.disabled) == "function" ? (_a = o.preset) == null ? void 0 : _a.disabled(l) : (Ta = o.preset) == null ? void 0 : Ta.disabled),
|
|
803
795
|
"input-id": l[e.dataKey],
|
|
804
|
-
"model-value": r(
|
|
796
|
+
"model-value": r(H)(l, o.field),
|
|
805
797
|
onClick: a[9] || (a[9] = N(() => {
|
|
806
798
|
}, ["stop"])),
|
|
807
799
|
"onUpdate:modelValue": (C) => {
|
|
@@ -812,7 +804,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
812
804
|
key: 1,
|
|
813
805
|
disabled: Y(l[e.dataKey]) || (typeof ((Ka = o.preset) == null ? void 0 : Ka.disabled) == "function" ? (Ea = o.preset) == null ? void 0 : Ea.disabled(l) : (Sa = o.preset) == null ? void 0 : Sa.disabled),
|
|
814
806
|
"input-id": l[e.dataKey],
|
|
815
|
-
"model-value": r(
|
|
807
|
+
"model-value": r(H)(l, o.field),
|
|
816
808
|
onClick: a[10] || (a[10] = N(() => {
|
|
817
809
|
}, ["stop"])),
|
|
818
810
|
"onUpdate:modelValue": (C) => {
|
|
@@ -826,33 +818,33 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
826
818
|
list: [l],
|
|
827
819
|
visible: !!ge.value[l[e.dataKey] + o.field],
|
|
828
820
|
onClose: () => {
|
|
829
|
-
var E,
|
|
821
|
+
var E, F, Ba;
|
|
830
822
|
const C = () => r(ce)(
|
|
831
823
|
l,
|
|
832
824
|
o.field,
|
|
833
|
-
!r(
|
|
825
|
+
!r(H)(l, o.field)
|
|
834
826
|
);
|
|
835
827
|
((E = xe(
|
|
836
828
|
o.preset,
|
|
837
829
|
l[o.field],
|
|
838
830
|
l
|
|
839
|
-
)) == null ? void 0 : E.actionable) == !1 && "onConfirm" in o.preset ? (Ba = (
|
|
840
|
-
|
|
831
|
+
)) == null ? void 0 : E.actionable) == !1 && "onConfirm" in o.preset ? (Ba = (F = o.preset).onConfirm) == null || Ba.call(
|
|
832
|
+
F,
|
|
841
833
|
l[o.field],
|
|
842
834
|
l,
|
|
843
835
|
C
|
|
844
836
|
) : C();
|
|
845
837
|
},
|
|
846
838
|
onConfirm: (C) => {
|
|
847
|
-
var E,
|
|
848
|
-
return (
|
|
839
|
+
var E, F;
|
|
840
|
+
return (F = (E = o.preset) == null ? void 0 : E.onConfirm) == null ? void 0 : F.call(
|
|
849
841
|
E,
|
|
850
842
|
l[o.field],
|
|
851
843
|
l,
|
|
852
844
|
() => r(ce)(
|
|
853
845
|
l,
|
|
854
846
|
o.field,
|
|
855
|
-
!r(
|
|
847
|
+
!r(H)(l, o.field)
|
|
856
848
|
)
|
|
857
849
|
);
|
|
858
850
|
},
|
|
@@ -868,7 +860,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
868
860
|
), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : h("", !0)
|
|
869
861
|
], 64)) : ((Aa = o.preset) == null ? void 0 : Aa.type) === "multirow" ? (i(), S(zt, {
|
|
870
862
|
key: 1,
|
|
871
|
-
attributes: ((
|
|
863
|
+
attributes: ((Fa = (we = o.preset) == null ? void 0 : we.fieldAttributes) == null ? void 0 : Fa.call(we, l)) ?? []
|
|
872
864
|
}, null, 8, ["attributes"])) : o.editable ? (i(), c("span", p({
|
|
873
865
|
key: 2,
|
|
874
866
|
ref_for: !0
|
|
@@ -885,7 +877,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
885
877
|
onKeypress: (C) => {
|
|
886
878
|
o.numberInputOnly && yt(C);
|
|
887
879
|
}
|
|
888
|
-
}), I(r(
|
|
880
|
+
}), I(r(H)(l, o.field) || "-"), 17, dl)) : o.bodyComponent || o.bodyClass || o.bodyTemplate || o.dateFormatOptions ? (i(), c(_, { key: 3 }, [
|
|
889
881
|
o.bodyComponent ? (i(), S(Tt(o.bodyComponent(l, y).component), p({
|
|
890
882
|
key: 0,
|
|
891
883
|
modelValue: o.bodyComponent(l, y).model,
|
|
@@ -896,23 +888,23 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
896
888
|
o.bodyComponent(l, y).events ? o.bodyComponent(l, y).events : {}
|
|
897
889
|
), {
|
|
898
890
|
onChange: (C) => {
|
|
899
|
-
var E,
|
|
900
|
-
return (
|
|
891
|
+
var E, F;
|
|
892
|
+
return (F = (E = o.bodyComponent(l, y)).onChange) == null ? void 0 : F.call(E, l);
|
|
901
893
|
},
|
|
902
894
|
onClick: (C) => {
|
|
903
895
|
o.bodyComponent(l, y).stop !== !1 && C.stopPropagation();
|
|
904
896
|
},
|
|
905
897
|
"onUpdate:modelValue": (C) => {
|
|
906
|
-
var E,
|
|
907
|
-
return (
|
|
898
|
+
var E, F;
|
|
899
|
+
return (F = (E = o.bodyComponent(l, y)).onChange) == null ? void 0 : F.call(E, l);
|
|
908
900
|
}
|
|
909
901
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "onClick"])) : (i(), c("span", il, [
|
|
910
902
|
o.bodyTemplate ? (i(), c(_, { key: 0 }, [
|
|
911
|
-
Re(I(((
|
|
903
|
+
Re(I(((Ha = o.bodyTemplate) == null ? void 0 : Ha.call(o, l, y)) || "-"), 1)
|
|
912
904
|
], 64)) : o.dateFormatOptions ? (i(), c(_, { key: 1 }, [
|
|
913
905
|
Re(I(r(At)(
|
|
914
906
|
new Date(
|
|
915
|
-
r(
|
|
907
|
+
r(H)(
|
|
916
908
|
l,
|
|
917
909
|
o.field
|
|
918
910
|
)
|
|
@@ -920,11 +912,11 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
920
912
|
o.dateFormatOptions
|
|
921
913
|
)), 1)
|
|
922
914
|
], 64)) : (i(), c(_, { key: 2 }, [
|
|
923
|
-
Re(I(r(
|
|
915
|
+
Re(I(r(H)(l, o.field) || "-"), 1)
|
|
924
916
|
], 64))
|
|
925
917
|
]))
|
|
926
918
|
], 64)) : (i(), c(_, { key: 4 }, [
|
|
927
|
-
Re(I(r(
|
|
919
|
+
Re(I(r(H)(l, o.field) ?? "-"), 1)
|
|
928
920
|
], 64))
|
|
929
921
|
], 16, sl);
|
|
930
922
|
}), 128)),
|
|
@@ -1024,7 +1016,7 @@ const Wt = (W, B) => W.every((t) => B.includes(t)), qt = ["id"], Gt = ["rowspan"
|
|
|
1024
1016
|
], 16);
|
|
1025
1017
|
};
|
|
1026
1018
|
}
|
|
1027
|
-
}), Ol = /* @__PURE__ */ Vt(pl, [["__scopeId", "data-v-
|
|
1019
|
+
}), Ol = /* @__PURE__ */ Vt(pl, [["__scopeId", "data-v-d33ae895"]]);
|
|
1028
1020
|
export {
|
|
1029
1021
|
Ol as D
|
|
1030
1022
|
};
|
|
@@ -231,8 +231,8 @@ const H = /* @__PURE__ */ nA(vA), j = "data:image/png;base64,iVBORw0KGgoAAAANSUh
|
|
|
231
231
|
t[4] || (t[4] = e("span", null, "Preview", -1)),
|
|
232
232
|
a(eA, {
|
|
233
233
|
icon: "info",
|
|
234
|
-
info: `This preview is only for showing the side of the
|
|
235
|
-
label that printed or not. It does not show the
|
|
234
|
+
info: `This preview is only for showing the side of the\r
|
|
235
|
+
label that printed or not. It does not show the\r
|
|
236
236
|
exact amount you entered.`,
|
|
237
237
|
severity: "primary"
|
|
238
238
|
})
|