@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.
@@ -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
  */
@@ -1,39 +1,40 @@
1
- import { defineComponent as C, shallowRef as B, computed as F, createElementBlock as o, openBlock as a, Fragment as i, createElementVNode as l, createVNode as m, toDisplayString as r, withCtx as I, renderList as g, createBlock as h, createCommentVNode as k } from "vue";
2
- import { f as N } from "../utils/date.util.es.js";
3
- import { _ as w } from "../badge/index.es.js";
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 V = {
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
- }, E = { class: "text-primary-500" }, H = { class: "text-general-800" }, M = { key: 1 }, S = { class: "flex flex-col gap-3 justify-between" }, U = { class: "flex justify-between" }, P = { class: "text-general-800 text-xs font-medium" }, R = { class: "flex justify-between items-center" }, T = { class: "text-primary-500 font-medium text-xs" }, q = {
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__ */ C({
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, c = B(!1), d = F(() => {
26
- var p, s, n, v, y, _, x;
27
- let t, e;
28
- return (p = u.approvals) == null || p.forEach((b) => {
29
- e = b.approvers.findIndex((L) => !!L.actionAt), t = e === -1 ? 0 : b.level - 1, e = e === -1 ? 0 : e;
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 = (s = u.approvals) == null ? void 0 : s[t]) == null ? void 0 : n.approvers[e]) == null ? void 0 : v.fullName,
32
- date: (x = (_ = (y = u.approvals) == null ? void 0 : y[t]) == null ? void 0 : _.approvers[e]) == null ? void 0 : x.actionAt
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 = (t) => {
35
+ }), j = (s) => {
35
36
  let e;
36
- switch (t) {
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 = (t) => u.useFormatDate ? t ? N(new Date(t), {
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
- }) : "-" : t;
52
- return (t, e) => {
53
- var p;
54
- return a(), o(i, null, [
55
- l("div", V, [
56
- t.showShortInfo ? (a(), o(i, { key: 0 }, [
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
- (p = t.approvals) != null && p.length ? (a(), o(i, { key: 0 }, [
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", E, r(d.value.name), 1),
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] = (s) => c.value = !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)) : (a(), o("span", M, "-"))
70
- ], 64)) : (a(), o("span", {
70
+ ], 64)) : (t(), o("span", M, "-"))
71
+ ], 64)) : (t(), o("span", {
71
72
  key: 1,
72
- onClick: e[1] || (e[1] = (s) => c.value = !0),
73
+ onClick: e[1] || (e[1] = (a) => p.value = !0),
73
74
  class: "text-primary-500 hover:cursor-pointer"
74
- }, r(t.label ?? "Lihat Approval"), 1))
75
+ }, r(s.label ?? "Lihat Approval"), 1))
75
76
  ]),
76
77
  m($, {
77
- visible: c.value,
78
- "onUpdate:visible": e[2] || (e[2] = (s) => c.value = s),
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
- (a(!0), o(i, null, g(t.approvals, (s) => (a(), o(i, {
86
- key: s._id
86
+ (t(!0), o(i, null, k(s.approvals, (a) => (t(), o(i, {
87
+ key: a._id
87
88
  }, [
88
- l("div", U, [
89
- l("span", P, " Level " + r(s.level) + " (" + r(s.type.toLowerCase()) + ") ", 1),
90
- s.status !== "menunggu approval" ? (a(), h(w, {
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
- })) : k("", !0)
101
+ })) : h("", !0)
95
102
  ]),
96
- (a(!0), o(i, null, g(s.approvers, (n) => (a(), o("div", {
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", R, [
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", T, r(n.fullName), 1)
112
+ l("span", R, r(n.fullName), 1)
106
113
  ]),
107
- s.status !== "menunggu approval" && !n.action ? (a(), o("span", q, " Tidak terlibat ")) : (a(), o("div", z, [
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 ? (a(), h(w, {
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"])) : k("", !0)
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
- }), b = /* @__PURE__ */ I(R, [["__scopeId", "data-v-5cd98b2d"]]);
53
+ }), S = /* @__PURE__ */ I(R, [["__scopeId", "data-v-9031c32d"]]);
54
54
  export {
55
- b as B,
55
+ S as B,
56
56
  I as _
57
57
  };
@@ -246,17 +246,18 @@ export type ColumnPreset =
246
246
  | ColumnCheckboxPreset;
247
247
 
248
248
  export interface CombinedHeaders {
249
- parent: TableParentHeaders[];
249
+ parent: TableParentHeader[];
250
250
  child: TreeTableColumns[];
251
251
  }
252
252
 
253
- export interface TableParentHeaders
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 parent header (the header placed above this column)
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?: string;
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
  */
@@ -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 Ht, e as Ft } from "../utils/exportToExcel.util.es.js";
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 F } from "../utils/object.util.es.js";
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
- if (n)
96
- n.colspan && n.colspan++;
97
- else {
98
- const s = t.parentHeaders.find(
99
- (v) => v.field === a.parentHeader
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
- Fe(), await Ma(() => {
224
+ He(), await Ma(() => {
233
225
  var d;
234
- s != null && s.classList.contains("option-button-active") ? Fe() : ((d = Qe.value) == null || d.toggle(v), Fe(), s == null || s.classList.add("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
- !F(a, n.field)
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
- }, He = (e) => e.draggable !== !1 && !e.childRow && !e.childRowHeader && t.reorderable && !D.value, at = (e, a, n) => {
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(), He(a)) {
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
- }, Fe = () => {
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 = F(s, v);
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 = Ht(k, d, Le);
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 Ft({
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: He(l),
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: He(l),
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, Ha, Fa;
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(F)(l, o.field),
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(F)(l, o.field),
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, H, Ba;
821
+ var E, F, Ba;
830
822
  const C = () => r(ce)(
831
823
  l,
832
824
  o.field,
833
- !r(F)(l, o.field)
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 = (H = o.preset).onConfirm) == null || Ba.call(
840
- H,
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, H;
848
- return (H = (E = o.preset) == null ? void 0 : E.onConfirm) == null ? void 0 : H.call(
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(F)(l, o.field)
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: ((Ha = (we = o.preset) == null ? void 0 : we.fieldAttributes) == null ? void 0 : Ha.call(we, l)) ?? []
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(F)(l, o.field) || "-"), 17, dl)) : o.bodyComponent || o.bodyClass || o.bodyTemplate || o.dateFormatOptions ? (i(), c(_, { key: 3 }, [
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, H;
900
- return (H = (E = o.bodyComponent(l, y)).onChange) == null ? void 0 : H.call(E, l);
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, H;
907
- return (H = (E = o.bodyComponent(l, y)).onChange) == null ? void 0 : H.call(E, l);
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(((Fa = o.bodyTemplate) == null ? void 0 : Fa.call(o, l, y)) || "-"), 1)
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(F)(
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(F)(l, o.field) || "-"), 1)
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(F)(l, o.field) ?? "-"), 1)
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-a2aa5e4c"]]);
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
  })
@@ -11,7 +11,7 @@ const R = () => u([
11
11
  {
12
12
  field: "profilePictureSmall",
13
13
  header: "Photo",
14
- sortable: !0,
14
+ sortable: !1,
15
15
  bodyComponent(e) {
16
16
  return {
17
17
  component: I,