@fewangsit/wangsvue-fats 1.0.1-alpha.22 → 1.0.1-alpha.24

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.
@@ -1468,26 +1468,19 @@ const lie = (t, e = !1) => Object.keys(IA(t, e)).map(Number), IA = (t, e = !1) =
1468
1468
  }, y4 = (t) => (
1469
1469
  // Use Sweden locale, which uses ISO 8601 format: https://stackoverflow.com/a/58633651/27534858
1470
1470
  new Date(t).toLocaleString("sv")
1471
- ), Aie = (t, e) => {
1472
- const n = Math.floor(
1473
- ((/* @__PURE__ */ new Date()).valueOf() - new Date(t).valueOf()) / 1e3
1474
- );
1475
- if (e && n > e)
1471
+ ), Aie = (t, e, n = "id") => {
1472
+ const i = Math.floor((Date.now() - t.getTime()) / 1e3);
1473
+ if (e && i > e)
1476
1474
  return Nd(t);
1477
- const i = Math.floor(n / 31536e3);
1478
- if (i >= 1)
1479
- return i + " tahun lalu";
1480
- const r = Math.floor(n / 2628e3);
1481
- if (r >= 1)
1482
- return r + " bulan lalu";
1483
- const o = Math.floor(n / 86400);
1484
- if (o >= 1)
1485
- return o + " hari lalu";
1486
- const s = Math.floor(n / 3600);
1487
- if (s >= 1)
1488
- return s + " jam lalu";
1489
- const a = Math.floor(n / 60);
1490
- return a >= 1 ? a + " menit lalu" : "baru saja";
1475
+ const r = [
1476
+ [Math.floor(i / 31536e3), "year"],
1477
+ [Math.floor(i / 2628e3), "month"],
1478
+ [Math.floor(i / 86400), "day"],
1479
+ [Math.floor(i / 3600), "hour"],
1480
+ [Math.floor(i / 60), "minute"],
1481
+ [i, "second"]
1482
+ ], [o, s] = r.find(([u]) => u > 0) ?? [0, "second"], l = new Intl.RelativeTimeFormat(n, { numeric: "auto" }).format(-o, s);
1483
+ return n === "id" && l.trim().toLowerCase() === "sekarang" ? "baru saja" : l;
1491
1484
  }, DA = (t) => {
1492
1485
  if (!t) return "-";
1493
1486
  if (t.length <= 8) return t;
@@ -23052,342 +23045,346 @@ const KD = (t, e, n) => {
23052
23045
  ], 16, uR)
23053
23046
  ])) : (g(!0), T(le, { key: 1 }, Ze(me.value, (ve, an) => {
23054
23047
  var Go, Be, at, Mt, Qt, En, yi, Ji, Zo, ni, Mi;
23055
- return g(), T("tr", O(
23056
- {
23057
- id: ve._id,
23058
- key: `${an}-${ve[H.dataKey]}`,
23059
- draggable: cn(ve),
23060
- ref_for: !0
23061
- },
23062
- (Go = x(l)) == null ? void 0 : Go.bodyrow({
23063
- context: {
23064
- highlighted: ve[H.highlightKey ?? ""],
23065
- selected: yt(ve[H.dataKey]),
23066
- disabled: _e(ve[H.dataKey]),
23048
+ return g(), T(le, {
23049
+ key: `${an}-${ve[H.dataKey]}`
23050
+ }, [
23051
+ M("tr", O(
23052
+ {
23053
+ id: ve._id,
23067
23054
  draggable: cn(ve),
23068
- dragging: $.value
23069
- },
23070
- props: n
23071
- }),
23072
- {
23073
- onClick: (xe) => sn(xe, ve, an),
23074
- onDblclick: (xe) => {
23075
- var Yi;
23076
- return H.treeTable && ((Yi = ve.children) != null && Yi.length || ve.hasChildren) ? Bt(ve, an) : null;
23055
+ ref_for: !0
23077
23056
  },
23078
- onDrag: ie[11] || (ie[11] = (xe) => $.value = !0),
23079
- onDragenter: Tt((xe) => ee(xe, ve), ["prevent"]),
23080
- onDragleave: ie[12] || (ie[12] = Tt(() => {
23081
- }, ["prevent"])),
23082
- onDragover: ie[13] || (ie[13] = Tt(() => {
23083
- }, ["prevent"])),
23084
- onDragstart: (xe) => _t(xe, ve, an),
23085
- onDrop: Q
23086
- }
23087
- ), [
23088
- H.reorderable && !Oe.value ? (g(), T("td", O({
23089
- key: 0,
23090
- ref_for: !0
23091
- }, (Be = x(l)) == null ? void 0 : Be.bodycell), [
23092
- !ve.childRow && !ve.childRowHeader ? (g(), L(Te, {
23093
- key: 0,
23094
- class: "draggableicon",
23095
- icon: "dragable-menu"
23096
- })) : N("", !0)
23097
- ], 16)) : N("", !0),
23098
- H.selectionType === "checkbox" ? (g(), T("td", O({
23099
- key: 1,
23100
- ref_for: !0
23101
- }, (at = x(l)) == null ? void 0 : at.bodycell, {
23102
- onClick: ie[3] || (ie[3] = Tt(() => {
23103
- }, ["stop"]))
23104
- }), [
23105
- !ve.childRow && !ve.childRowHeader ? (g(), L(ps, O({
23057
+ (Go = x(l)) == null ? void 0 : Go.bodyrow({
23058
+ context: {
23059
+ highlighted: ve[H.highlightKey ?? ""],
23060
+ selected: yt(ve[H.dataKey]),
23061
+ disabled: _e(ve[H.dataKey]),
23062
+ draggable: cn(ve),
23063
+ dragging: $.value
23064
+ },
23065
+ props: n
23066
+ }),
23067
+ {
23068
+ onClick: (xe) => sn(xe, ve, an),
23069
+ onDblclick: (xe) => {
23070
+ var Yi;
23071
+ return H.treeTable && ((Yi = ve.children) != null && Yi.length || ve.hasChildren) ? Bt(ve, an) : null;
23072
+ },
23073
+ onDrag: ie[11] || (ie[11] = (xe) => $.value = !0),
23074
+ onDragenter: Tt((xe) => ee(xe, ve), ["prevent"]),
23075
+ onDragleave: ie[12] || (ie[12] = Tt(() => {
23076
+ }, ["prevent"])),
23077
+ onDragover: ie[13] || (ie[13] = Tt(() => {
23078
+ }, ["prevent"])),
23079
+ onDragstart: (xe) => _t(xe, ve, an),
23080
+ onDrop: Q
23081
+ }
23082
+ ), [
23083
+ H.reorderable && !Oe.value ? (g(), T("td", O({
23106
23084
  key: 0,
23107
23085
  ref_for: !0
23108
- }, (Mt = x(l)) == null ? void 0 : Mt.rowcheckbox, {
23109
- modelValue: A.value,
23110
- "onUpdate:modelValue": ie[2] || (ie[2] = (xe) => A.value = xe),
23111
- binary: !1,
23112
- disabled: _e(ve[H.dataKey]),
23113
- value: ve
23114
- }), null, 16, ["modelValue", "disabled", "value"])) : N("", !0)
23115
- ], 16)) : N("", !0),
23116
- H.treeTable ? (g(), T("td", O({
23117
- key: 2,
23118
- ref_for: !0
23119
- }, (Qt = x(l)) == null ? void 0 : Qt.bodycell, {
23120
- onClick: (xe) => {
23121
- (ve.childRow || ve.childRowHeader) && xe.stopPropagation();
23122
- }
23123
- }), [
23124
- (En = ve.children) != null && En.length || ve.hasChildren ? (g(), L(Ue, O(
23125
- {
23086
+ }, (Be = x(l)) == null ? void 0 : Be.bodycell), [
23087
+ !ve.childRow && !ve.childRowHeader ? (g(), L(Te, {
23088
+ key: 0,
23089
+ class: "draggableicon",
23090
+ icon: "dragable-menu"
23091
+ })) : N("", !0)
23092
+ ], 16)) : N("", !0),
23093
+ H.selectionType === "checkbox" ? (g(), T("td", O({
23094
+ key: 1,
23095
+ ref_for: !0
23096
+ }, (at = x(l)) == null ? void 0 : at.bodycell, {
23097
+ onClick: ie[3] || (ie[3] = Tt(() => {
23098
+ }, ["stop"]))
23099
+ }), [
23100
+ !ve.childRow && !ve.childRowHeader ? (g(), L(ps, O({
23126
23101
  key: 0,
23127
- onClick: Tt((xe) => Bt(ve, an), ["stop"]),
23128
23102
  ref_for: !0
23129
- },
23130
- x(l).rowtogglerbutton({
23131
- context: {
23132
- isRowExpanded: Ne(ve[H.dataKey])
23133
- }
23134
- }),
23135
- {
23136
- icon: "arrow-down",
23137
- text: ""
23103
+ }, (Mt = x(l)) == null ? void 0 : Mt.rowcheckbox, {
23104
+ modelValue: A.value,
23105
+ "onUpdate:modelValue": ie[2] || (ie[2] = (xe) => A.value = xe),
23106
+ binary: !1,
23107
+ disabled: _e(ve[H.dataKey]),
23108
+ value: ve
23109
+ }), null, 16, ["modelValue", "disabled", "value"])) : N("", !0)
23110
+ ], 16)) : N("", !0),
23111
+ H.treeTable ? (g(), T("td", O({
23112
+ key: 2,
23113
+ ref_for: !0
23114
+ }, (Qt = x(l)) == null ? void 0 : Qt.bodycell, {
23115
+ onClick: (xe) => {
23116
+ (ve.childRow || ve.childRowHeader) && xe.stopPropagation();
23138
23117
  }
23139
- ), null, 16, ["onClick"])) : N("", !0)
23140
- ], 16, eR)) : N("", !0),
23141
- (() => {
23142
- var xe;
23143
- return ve.childRowHeader && ((xe = n.childTableProps) == null ? void 0 : xe.useColumnsHeader);
23144
- })() ? (g(), T(le, { key: 3 }, [
23145
- (g(!0), T(le, null, Ze(ue.value, (xe) => {
23146
- var Yi, oo;
23147
- return g(), T("td", {
23148
- key: xe.header,
23149
- class: fe([(Yi = x(l)) == null ? void 0 : Yi.bodycell.class, "font-semibold text-xs"]),
23150
- colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23151
- onClick: ie[4] || (ie[4] = Tt(() => {
23118
+ }), [
23119
+ (En = ve.children) != null && En.length || ve.hasChildren ? (g(), L(Ue, O(
23120
+ {
23121
+ key: 0,
23122
+ onClick: Tt((xe) => Bt(ve, an), ["stop"]),
23123
+ ref_for: !0
23124
+ },
23125
+ x(l).rowtogglerbutton({
23126
+ context: {
23127
+ isRowExpanded: Ne(ve[H.dataKey])
23128
+ }
23129
+ }),
23130
+ {
23131
+ icon: "arrow-down",
23132
+ text: ""
23133
+ }
23134
+ ), null, 16, ["onClick"])) : N("", !0)
23135
+ ], 16, eR)) : N("", !0),
23136
+ (() => {
23137
+ var xe;
23138
+ return ve.childRowHeader && ((xe = n.childTableProps) == null ? void 0 : xe.useColumnsHeader);
23139
+ })() ? (g(), T(le, { key: 3 }, [
23140
+ (g(!0), T(le, null, Ze(ue.value, (xe) => {
23141
+ var Yi, oo;
23142
+ return g(), T("td", {
23143
+ key: xe.header,
23144
+ class: fe([(Yi = x(l)) == null ? void 0 : Yi.bodycell.class, "font-semibold text-xs"]),
23145
+ colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23146
+ onClick: ie[4] || (ie[4] = Tt(() => {
23147
+ }, ["stop"]))
23148
+ }, _(xe.header), 11, tR);
23149
+ }), 128)),
23150
+ ze.value ? (g(), T("td", {
23151
+ key: 0,
23152
+ class: fe(x(l).bodycell.class),
23153
+ onClick: ie[5] || (ie[5] = Tt(() => {
23152
23154
  }, ["stop"]))
23153
- }, _(xe.header), 11, tR);
23154
- }), 128)),
23155
- ze.value ? (g(), T("td", {
23156
- key: 0,
23157
- class: fe(x(l).bodycell.class),
23158
- onClick: ie[5] || (ie[5] = Tt(() => {
23155
+ }, null, 2)) : N("", !0)
23156
+ ], 64)) : ve.childRowHeader ? (g(), T("td", O({
23157
+ key: 4,
23158
+ ref_for: !0
23159
+ }, x(l).childrowheader, {
23160
+ class: (yi = x(l)) == null ? void 0 : yi.bodycell.class,
23161
+ colspan: n.columns.length + 1,
23162
+ onClick: ie[6] || (ie[6] = Tt(() => {
23159
23163
  }, ["stop"]))
23160
- }, null, 2)) : N("", !0)
23161
- ], 64)) : ve.childRowHeader ? (g(), T("td", O({
23162
- key: 4,
23163
- ref_for: !0
23164
- }, x(l).childrowheader, {
23165
- class: (yi = x(l)) == null ? void 0 : yi.bodycell.class,
23166
- colspan: n.columns.length + 1,
23167
- onClick: ie[6] || (ie[6] = Tt(() => {
23168
- }, ["stop"]))
23169
- }), _(ve.header), 17, nR)) : ve.loadingRow ? (g(), T("td", {
23170
- key: 5,
23171
- class: fe((Ji = x(l)) == null ? void 0 : Ji.bodycell.class),
23172
- colspan: n.columns.length + 1,
23173
- onClick: ie[7] || (ie[7] = Tt(() => {
23174
- }, ["stop"]))
23175
- }, [
23176
- M("div", O({ ref_for: !0 }, x(l).loadingtablewrapper), [
23177
- P(Ja, O({
23178
- animation: "loading-table",
23179
- ref_for: !0
23180
- }, x(l).loadingtablelottie), null, 16)
23181
- ], 16)
23182
- ], 10, iR)) : ve.noDataRow ? (g(), T("td", {
23183
- key: 6,
23184
- class: fe((Zo = x(l)) == null ? void 0 : Zo.bodycell.class),
23185
- colspan: n.columns.length + 1,
23186
- onClick: ie[8] || (ie[8] = Tt(() => {
23187
- }, ["stop"]))
23188
- }, [
23189
- M("div", O({ ref_for: !0 }, x(l).nodatalottiewrapper), [
23190
- P(Ja, O({
23191
- animation: "no-data",
23192
- ref_for: !0
23193
- }, x(l).nodatalottie), null, 16),
23194
- a.value.emptyTableMessage ? (g(), T("span", O({
23195
- key: 0,
23196
- ref_for: !0
23197
- }, x(l).nodatamessage), _(a.value.emptyTableMessage), 17)) : N("", !0)
23198
- ], 16)
23199
- ], 10, rR)) : (g(), T(le, { key: 7 }, [
23200
- (g(!0), T(le, null, Ze(ve.childRow ? ue.value : S.value, (xe) => {
23201
- var Yi, oo, $u, Vu, zu, Fu, _o, Ba, Ii, Hu, Fs, bt, $a, Pn, rn, Rr, hr, Hs;
23202
- return g(), T("td", O({
23203
- key: xe.field,
23204
- class: [
23205
- {
23206
- "!py-0": xe.editable,
23207
- "!px-0": ((Yi = xe.preset) == null ? void 0 : Yi.type) === "multirow"
23208
- },
23209
- typeof xe.bodyClass == "function" ? xe.bodyClass(ve) : xe.bodyClass,
23210
- xe.class
23211
- ],
23212
- colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23213
- ref_for: !0
23214
- }, ($u = x(l)) == null ? void 0 : $u.bodycell), [
23215
- ((Vu = xe.preset) == null ? void 0 : Vu.type) === "toggle" || ((zu = xe.preset) == null ? void 0 : zu.type) === "checkbox" ? (g(), T(le, { key: 0 }, [
23216
- ((Fu = xe.preset) == null ? void 0 : Fu.type) === "toggle" ? (g(), L(Mw, {
23217
- key: 0,
23218
- disabled: _e(ve[H.dataKey]) || (typeof ((_o = xe.preset) == null ? void 0 : _o.disabled) == "function" ? (Ba = xe.preset) == null ? void 0 : Ba.disabled(ve) : (Ii = xe.preset) == null ? void 0 : Ii.disabled),
23219
- "input-id": ve[H.dataKey],
23220
- "model-value": x(Fn)(ve, xe.field),
23221
- onClick: ie[9] || (ie[9] = Tt(() => {
23222
- }, ["stop"])),
23223
- "onUpdate:modelValue": (vn) => {
23224
- x(qs)(ve, xe.field, vn), Dt(vn, ve, xe);
23225
- }
23226
- }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23227
- ((Hu = xe.preset) == null ? void 0 : Hu.type) === "checkbox" ? (g(), L(ps, {
23228
- key: 1,
23229
- disabled: _e(ve[H.dataKey]) || (typeof ((Fs = xe.preset) == null ? void 0 : Fs.disabled) == "function" ? (bt = xe.preset) == null ? void 0 : bt.disabled(ve) : ($a = xe.preset) == null ? void 0 : $a.disabled),
23230
- "input-id": ve[H.dataKey],
23231
- "model-value": x(Fn)(ve, xe.field),
23232
- onClick: ie[10] || (ie[10] = Tt(() => {
23233
- }, ["stop"])),
23234
- "onUpdate:modelValue": (vn) => {
23235
- x(qs)(ve, xe.field, !!vn), Dt(!!vn, ve, xe);
23236
- },
23237
- binary: ""
23238
- }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23239
- (Pn = xe.preset) != null && Pn.confirmDialogProps ? (g(), L(sr, O(
23164
+ }), _(ve.header), 17, nR)) : ve.loadingRow ? (g(), T("td", {
23165
+ key: 5,
23166
+ class: fe((Ji = x(l)) == null ? void 0 : Ji.bodycell.class),
23167
+ colspan: n.columns.length + 1,
23168
+ onClick: ie[7] || (ie[7] = Tt(() => {
23169
+ }, ["stop"]))
23170
+ }, [
23171
+ M("div", O({ ref_for: !0 }, x(l).loadingtablewrapper), [
23172
+ P(Ja, O({
23173
+ animation: "loading-table",
23174
+ ref_for: !0
23175
+ }, x(l).loadingtablelottie), null, 16)
23176
+ ], 16)
23177
+ ], 10, iR)) : ve.noDataRow ? (g(), T("td", {
23178
+ key: 6,
23179
+ class: fe((Zo = x(l)) == null ? void 0 : Zo.bodycell.class),
23180
+ colspan: n.columns.length + 1,
23181
+ onClick: ie[8] || (ie[8] = Tt(() => {
23182
+ }, ["stop"]))
23183
+ }, [
23184
+ M("div", O({ ref_for: !0 }, x(l).nodatalottiewrapper), [
23185
+ P(Ja, O({
23186
+ animation: "no-data",
23187
+ ref_for: !0
23188
+ }, x(l).nodatalottie), null, 16),
23189
+ a.value.emptyTableMessage ? (g(), T("span", O({
23190
+ key: 0,
23191
+ ref_for: !0
23192
+ }, x(l).nodatamessage), _(a.value.emptyTableMessage), 17)) : N("", !0)
23193
+ ], 16)
23194
+ ], 10, rR)) : (g(), T(le, { key: 7 }, [
23195
+ (g(!0), T(le, null, Ze(ve.childRow ? ue.value : S.value, (xe) => {
23196
+ var Yi, oo, $u, Vu, zu, Fu, _o, Ba, Ii, Hu, Fs, bt, $a, Pn, rn, Rr, hr, Hs;
23197
+ return g(), T("td", O({
23198
+ key: xe.field,
23199
+ class: [
23240
23200
  {
23241
- key: 2,
23242
- list: [ve],
23243
- visible: !!ke.value[ve[H.dataKey] + xe.field],
23244
- onClose: () => {
23245
- var Ve, Ke, Ct;
23246
- const vn = () => x(qs)(
23247
- ve,
23248
- xe.field,
23249
- !x(Fn)(ve, xe.field)
23250
- );
23251
- ((Ve = Rt(
23252
- xe.preset,
23253
- ve[xe.field],
23254
- ve
23255
- )) == null ? void 0 : Ve.actionable) == !1 && "onConfirm" in xe.preset ? (Ct = (Ke = xe.preset).onConfirm) == null || Ct.call(
23256
- Ke,
23257
- ve[xe.field],
23258
- ve,
23259
- vn
23260
- ) : vn();
23201
+ "!py-0": xe.editable,
23202
+ "!px-0": ((Yi = xe.preset) == null ? void 0 : Yi.type) === "multirow"
23203
+ },
23204
+ typeof xe.bodyClass == "function" ? xe.bodyClass(ve) : xe.bodyClass,
23205
+ xe.class
23206
+ ],
23207
+ colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23208
+ ref_for: !0
23209
+ }, ($u = x(l)) == null ? void 0 : $u.bodycell), [
23210
+ ((Vu = xe.preset) == null ? void 0 : Vu.type) === "toggle" || ((zu = xe.preset) == null ? void 0 : zu.type) === "checkbox" ? (g(), T(le, { key: 0 }, [
23211
+ ((Fu = xe.preset) == null ? void 0 : Fu.type) === "toggle" ? (g(), L(Mw, {
23212
+ key: 0,
23213
+ disabled: _e(ve[H.dataKey]) || (typeof ((_o = xe.preset) == null ? void 0 : _o.disabled) == "function" ? (Ba = xe.preset) == null ? void 0 : Ba.disabled(ve) : (Ii = xe.preset) == null ? void 0 : Ii.disabled),
23214
+ "input-id": ve[H.dataKey],
23215
+ "model-value": x(Fn)(ve, xe.field),
23216
+ onClick: ie[9] || (ie[9] = Tt(() => {
23217
+ }, ["stop"])),
23218
+ "onUpdate:modelValue": (vn) => {
23219
+ x(qs)(ve, xe.field, vn), Dt(vn, ve, xe);
23220
+ }
23221
+ }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23222
+ ((Hu = xe.preset) == null ? void 0 : Hu.type) === "checkbox" ? (g(), L(ps, {
23223
+ key: 1,
23224
+ disabled: _e(ve[H.dataKey]) || (typeof ((Fs = xe.preset) == null ? void 0 : Fs.disabled) == "function" ? (bt = xe.preset) == null ? void 0 : bt.disabled(ve) : ($a = xe.preset) == null ? void 0 : $a.disabled),
23225
+ "input-id": ve[H.dataKey],
23226
+ "model-value": x(Fn)(ve, xe.field),
23227
+ onClick: ie[10] || (ie[10] = Tt(() => {
23228
+ }, ["stop"])),
23229
+ "onUpdate:modelValue": (vn) => {
23230
+ x(qs)(ve, xe.field, !!vn), Dt(!!vn, ve, xe);
23261
23231
  },
23262
- onConfirm: (vn) => {
23263
- var Ve, Ke;
23264
- return (Ke = (Ve = xe.preset) == null ? void 0 : Ve.onConfirm) == null ? void 0 : Ke.call(
23265
- Ve,
23266
- ve[xe.field],
23267
- ve,
23268
- () => x(qs)(
23232
+ binary: ""
23233
+ }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23234
+ (Pn = xe.preset) != null && Pn.confirmDialogProps ? (g(), L(sr, O(
23235
+ {
23236
+ key: 2,
23237
+ list: [ve],
23238
+ visible: !!ke.value[ve[H.dataKey] + xe.field],
23239
+ onClose: () => {
23240
+ var Ve, Ke, Ct;
23241
+ const vn = () => x(qs)(
23269
23242
  ve,
23270
23243
  xe.field,
23271
23244
  !x(Fn)(ve, xe.field)
23272
- )
23273
- );
23245
+ );
23246
+ ((Ve = Rt(
23247
+ xe.preset,
23248
+ ve[xe.field],
23249
+ ve
23250
+ )) == null ? void 0 : Ve.actionable) == !1 && "onConfirm" in xe.preset ? (Ct = (Ke = xe.preset).onConfirm) == null || Ct.call(
23251
+ Ke,
23252
+ ve[xe.field],
23253
+ ve,
23254
+ vn
23255
+ ) : vn();
23256
+ },
23257
+ onConfirm: (vn) => {
23258
+ var Ve, Ke;
23259
+ return (Ke = (Ve = xe.preset) == null ? void 0 : Ve.onConfirm) == null ? void 0 : Ke.call(
23260
+ Ve,
23261
+ ve[xe.field],
23262
+ ve,
23263
+ () => x(qs)(
23264
+ ve,
23265
+ xe.field,
23266
+ !x(Fn)(ve, xe.field)
23267
+ )
23268
+ );
23269
+ },
23270
+ "onUpdate:visible": (vn) => ke.value[ve[H.dataKey] + xe.field] = vn,
23271
+ actionable: "",
23272
+ ref_for: !0
23274
23273
  },
23275
- "onUpdate:visible": (vn) => ke.value[ve[H.dataKey] + xe.field] = vn,
23276
- actionable: "",
23277
- ref_for: !0
23278
- },
23279
- Rt(
23280
- xe.preset,
23281
- ve[xe.field],
23282
- ve
23283
- )
23284
- ), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : N("", !0)
23285
- ], 64)) : ((rn = xe.preset) == null ? void 0 : rn.type) === "multirow" ? (g(), L(qD, {
23286
- key: 1,
23287
- attributes: ((hr = (Rr = xe.preset) == null ? void 0 : Rr.fieldAttributes) == null ? void 0 : hr.call(Rr, ve)) ?? []
23288
- }, null, 8, ["attributes"])) : xe.editable ? (g(), T("span", O({
23289
- key: 2,
23290
- ref_for: !0
23291
- }, x(l).celleditableelement, {
23292
- contenteditable: xe.editable,
23293
- onBlur: (vn) => {
23294
- H.$emit("cellEdited", {
23295
- item: ve,
23296
- field: xe.field,
23297
- index: an,
23298
- value: vn.target.innerText
23299
- });
23300
- },
23301
- onKeypress: (vn) => {
23302
- xe.numberInputOnly && W(vn);
23303
- }
23304
- }), _(x(Fn)(ve, xe.field) || "-"), 17, sR)) : xe.bodyComponent || xe.bodyClass || xe.bodyTemplate || xe.dateFormatOptions ? (g(), T(le, { key: 3 }, [
23305
- xe.bodyComponent ? (g(), L(vt(xe.bodyComponent(ve, an).component), O({
23306
- key: 0,
23307
- modelValue: xe.bodyComponent(ve, an).model,
23308
- "onUpdate:modelValue": (vn) => xe.bodyComponent(ve, an).model = vn,
23309
- disabled: xe.bodyComponent(ve, an).disabled,
23274
+ Rt(
23275
+ xe.preset,
23276
+ ve[xe.field],
23277
+ ve
23278
+ )
23279
+ ), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : N("", !0)
23280
+ ], 64)) : ((rn = xe.preset) == null ? void 0 : rn.type) === "multirow" ? (g(), L(qD, {
23281
+ key: 1,
23282
+ attributes: ((hr = (Rr = xe.preset) == null ? void 0 : Rr.fieldAttributes) == null ? void 0 : hr.call(Rr, ve)) ?? []
23283
+ }, null, 8, ["attributes"])) : xe.editable ? (g(), T("span", O({
23284
+ key: 2,
23310
23285
  ref_for: !0
23311
- }, xe.bodyComponent(ve, an).props, Qs(
23312
- xe.bodyComponent(ve, an).events ? xe.bodyComponent(ve, an).events : {}
23313
- ), {
23314
- onChange: (vn) => {
23315
- var Ve, Ke;
23316
- return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23286
+ }, x(l).celleditableelement, {
23287
+ contenteditable: xe.editable,
23288
+ onBlur: (vn) => {
23289
+ H.$emit("cellEdited", {
23290
+ item: ve,
23291
+ field: xe.field,
23292
+ index: an,
23293
+ value: vn.target.innerText
23294
+ });
23317
23295
  },
23318
- onClick: (vn) => {
23319
- xe.bodyComponent(ve, an).stop !== !1 && vn.stopPropagation();
23320
- },
23321
- "onUpdate:modelValue": (vn) => {
23322
- var Ve, Ke;
23323
- return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23296
+ onKeypress: (vn) => {
23297
+ xe.numberInputOnly && W(vn);
23324
23298
  }
23325
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "onClick"])) : (g(), T("span", aR, [
23326
- xe.bodyTemplate ? (g(), T(le, { key: 0 }, [
23327
- ft(_(((Hs = xe.bodyTemplate) == null ? void 0 : Hs.call(xe, ve, an)) || "-"), 1)
23328
- ], 64)) : xe.dateFormatOptions ? (g(), T(le, { key: 1 }, [
23329
- ft(_(x(Nd)(
23330
- new Date(
23331
- x(Fn)(
23332
- ve,
23333
- xe.field
23334
- )
23335
- ),
23336
- xe.dateFormatOptions
23337
- )), 1)
23338
- ], 64)) : (g(), T(le, { key: 2 }, [
23339
- ft(_(x(Fn)(ve, xe.field) || "-"), 1)
23340
- ], 64))
23341
- ]))
23342
- ], 64)) : (g(), T(le, { key: 4 }, [
23343
- ft(_(x(Fn)(ve, xe.field) ?? "-"), 1)
23344
- ], 64))
23345
- ], 16, oR);
23346
- }), 128)),
23347
- ze.value ? (g(), T("td", O(
23348
- {
23349
- key: 0,
23350
- ref_for: !0,
23351
- ref_key: "rowSingleActionCell",
23352
- ref: k
23353
- },
23354
- (ni = x(l)) == null ? void 0 : ni.rowsingleactioncell({
23355
- props: n,
23356
- context: {
23357
- selected: yt(ve[H.dataKey]),
23358
- highlighted: ve[H.highlightKey ?? ""]
23299
+ }), _(x(Fn)(ve, xe.field) || "-"), 17, sR)) : xe.bodyComponent || xe.bodyClass || xe.bodyTemplate || xe.dateFormatOptions ? (g(), T(le, { key: 3 }, [
23300
+ xe.bodyComponent ? (g(), L(vt(xe.bodyComponent(ve, an).component), O({
23301
+ key: 0,
23302
+ modelValue: xe.bodyComponent(ve, an).model,
23303
+ "onUpdate:modelValue": (vn) => xe.bodyComponent(ve, an).model = vn,
23304
+ disabled: xe.bodyComponent(ve, an).disabled,
23305
+ ref_for: !0
23306
+ }, xe.bodyComponent(ve, an).props, Qs(
23307
+ xe.bodyComponent(ve, an).events ? xe.bodyComponent(ve, an).events : {}
23308
+ ), {
23309
+ onChange: (vn) => {
23310
+ var Ve, Ke;
23311
+ return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23312
+ },
23313
+ onClick: (vn) => {
23314
+ xe.bodyComponent(ve, an).stop !== !1 && vn.stopPropagation();
23315
+ },
23316
+ "onUpdate:modelValue": (vn) => {
23317
+ var Ve, Ke;
23318
+ return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23319
+ }
23320
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "onClick"])) : (g(), T("span", aR, [
23321
+ xe.bodyTemplate ? (g(), T(le, { key: 0 }, [
23322
+ ft(_(((Hs = xe.bodyTemplate) == null ? void 0 : Hs.call(xe, ve, an)) || "-"), 1)
23323
+ ], 64)) : xe.dateFormatOptions ? (g(), T(le, { key: 1 }, [
23324
+ ft(_(x(Nd)(
23325
+ new Date(
23326
+ x(Fn)(
23327
+ ve,
23328
+ xe.field
23329
+ )
23330
+ ),
23331
+ xe.dateFormatOptions
23332
+ )), 1)
23333
+ ], 64)) : (g(), T(le, { key: 2 }, [
23334
+ ft(_(x(Fn)(ve, xe.field) || "-"), 1)
23335
+ ], 64))
23336
+ ]))
23337
+ ], 64)) : (g(), T(le, { key: 4 }, [
23338
+ ft(_(x(Fn)(ve, xe.field) ?? "-"), 1)
23339
+ ], 64))
23340
+ ], 16, oR);
23341
+ }), 128)),
23342
+ ze.value ? (g(), T("td", O(
23343
+ {
23344
+ key: 0,
23345
+ ref_for: !0,
23346
+ ref_key: "rowSingleActionCell",
23347
+ ref: k
23348
+ },
23349
+ (ni = x(l)) == null ? void 0 : ni.rowsingleactioncell({
23350
+ props: n,
23351
+ context: {
23352
+ selected: yt(ve[H.dataKey]),
23353
+ highlighted: ve[H.highlightKey ?? ""]
23354
+ }
23355
+ }),
23356
+ {
23357
+ class: x(l).bodycell.class
23359
23358
  }
23360
- }),
23361
- {
23362
- class: x(l).bodycell.class
23363
- }
23364
- ), [
23365
- !ve.childRow && H.useOption || ve.childRow && ((Mi = n.childTableProps) != null && Mi.useOption) ? (g(), T("div", O({
23366
- key: 0,
23367
- ref_for: !0
23368
- }, x(l).singleactionwrapper), [
23369
- P(Ue, O({
23370
- id: "button-action-" + ve[n.dataKey],
23359
+ ), [
23360
+ !ve.childRow && H.useOption || ve.childRow && ((Mi = n.childTableProps) != null && Mi.useOption) ? (g(), T("div", O({
23361
+ key: 0,
23371
23362
  ref_for: !0
23372
- }, x(l).singleactionbutton({ props: n }), {
23373
- disabled: H.disableAllRows,
23374
- onClick: Tt((xe) => Ft(xe, ve), ["stop"]),
23375
- icon: "ellipsis-h",
23376
- outlined: "",
23377
- size: "small",
23378
- "tooltip-pos": "left",
23379
- type: "button"
23380
- }), null, 16, ["id", "disabled", "onClick"])
23363
+ }, x(l).singleactionwrapper), [
23364
+ P(Ue, O({
23365
+ id: "button-action-" + ve[n.dataKey],
23366
+ ref_for: !0
23367
+ }, x(l).singleactionbutton({ props: n }), {
23368
+ disabled: H.disableAllRows,
23369
+ onClick: Tt((xe) => Ft(xe, ve), ["stop"]),
23370
+ icon: "ellipsis-h",
23371
+ outlined: "",
23372
+ size: "small",
23373
+ "tooltip-pos": "left",
23374
+ type: "button"
23375
+ }), null, 16, ["id", "disabled", "onClick"])
23376
+ ], 16)) : N("", !0)
23381
23377
  ], 16)) : N("", !0)
23382
- ], 16)) : N("", !0)
23383
- ], 64))
23384
- ], 16, QD);
23378
+ ], 64))
23379
+ ], 16, QD),
23380
+ te(H.$slots, "row-subcontent", { item: ve }, void 0, !0)
23381
+ ], 64);
23385
23382
  }), 128))
23386
23383
  ], 16)
23387
23384
  ], 16, XD))
23388
23385
  ];
23389
23386
  }),
23390
- _: 1
23387
+ _: 3
23391
23388
  }, 16)
23392
23389
  ], 16),
23393
23390
  H.usePaginator ? ut((g(), L(x(cg), O({
@@ -23443,7 +23440,7 @@ const KD = (t, e, n) => {
23443
23440
  for (const [i, r] of e)
23444
23441
  n[i] = r;
23445
23442
  return n;
23446
- }, dg = /* @__PURE__ */ fS(cR, [["__scopeId", "data-v-5797150a"]]), pS = /* @__PURE__ */ be({
23443
+ }, dg = /* @__PURE__ */ fS(cR, [["__scopeId", "data-v-37d9df20"]]), pS = /* @__PURE__ */ be({
23447
23444
  __name: "Form",
23448
23445
  props: {
23449
23446
  buttonsTemplate: {},
@@ -57950,6 +57947,7 @@ export {
57950
57947
  wie as formatCurrency,
57951
57948
  Nd as formatDate,
57952
57949
  Aie as formatDateReadable,
57950
+ Aie as formatTimeAgo,
57953
57951
  DA as formatUserName,
57954
57952
  Fn as getNestedPropertyValue,
57955
57953
  A4 as getStatusSeverity,