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

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.
@@ -23052,342 +23052,346 @@ const KD = (t, e, n) => {
23052
23052
  ], 16, uR)
23053
23053
  ])) : (g(!0), T(le, { key: 1 }, Ze(me.value, (ve, an) => {
23054
23054
  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]),
23055
+ return g(), T(le, {
23056
+ key: `${an}-${ve[H.dataKey]}`
23057
+ }, [
23058
+ M("tr", O(
23059
+ {
23060
+ id: ve._id,
23067
23061
  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;
23062
+ ref_for: !0
23077
23063
  },
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({
23064
+ (Go = x(l)) == null ? void 0 : Go.bodyrow({
23065
+ context: {
23066
+ highlighted: ve[H.highlightKey ?? ""],
23067
+ selected: yt(ve[H.dataKey]),
23068
+ disabled: _e(ve[H.dataKey]),
23069
+ draggable: cn(ve),
23070
+ dragging: $.value
23071
+ },
23072
+ props: n
23073
+ }),
23074
+ {
23075
+ onClick: (xe) => sn(xe, ve, an),
23076
+ onDblclick: (xe) => {
23077
+ var Yi;
23078
+ return H.treeTable && ((Yi = ve.children) != null && Yi.length || ve.hasChildren) ? Bt(ve, an) : null;
23079
+ },
23080
+ onDrag: ie[11] || (ie[11] = (xe) => $.value = !0),
23081
+ onDragenter: Tt((xe) => ee(xe, ve), ["prevent"]),
23082
+ onDragleave: ie[12] || (ie[12] = Tt(() => {
23083
+ }, ["prevent"])),
23084
+ onDragover: ie[13] || (ie[13] = Tt(() => {
23085
+ }, ["prevent"])),
23086
+ onDragstart: (xe) => _t(xe, ve, an),
23087
+ onDrop: Q
23088
+ }
23089
+ ), [
23090
+ H.reorderable && !Oe.value ? (g(), T("td", O({
23106
23091
  key: 0,
23107
23092
  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
- {
23093
+ }, (Be = x(l)) == null ? void 0 : Be.bodycell), [
23094
+ !ve.childRow && !ve.childRowHeader ? (g(), L(Te, {
23095
+ key: 0,
23096
+ class: "draggableicon",
23097
+ icon: "dragable-menu"
23098
+ })) : N("", !0)
23099
+ ], 16)) : N("", !0),
23100
+ H.selectionType === "checkbox" ? (g(), T("td", O({
23101
+ key: 1,
23102
+ ref_for: !0
23103
+ }, (at = x(l)) == null ? void 0 : at.bodycell, {
23104
+ onClick: ie[3] || (ie[3] = Tt(() => {
23105
+ }, ["stop"]))
23106
+ }), [
23107
+ !ve.childRow && !ve.childRowHeader ? (g(), L(ps, O({
23126
23108
  key: 0,
23127
- onClick: Tt((xe) => Bt(ve, an), ["stop"]),
23128
23109
  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: ""
23110
+ }, (Mt = x(l)) == null ? void 0 : Mt.rowcheckbox, {
23111
+ modelValue: A.value,
23112
+ "onUpdate:modelValue": ie[2] || (ie[2] = (xe) => A.value = xe),
23113
+ binary: !1,
23114
+ disabled: _e(ve[H.dataKey]),
23115
+ value: ve
23116
+ }), null, 16, ["modelValue", "disabled", "value"])) : N("", !0)
23117
+ ], 16)) : N("", !0),
23118
+ H.treeTable ? (g(), T("td", O({
23119
+ key: 2,
23120
+ ref_for: !0
23121
+ }, (Qt = x(l)) == null ? void 0 : Qt.bodycell, {
23122
+ onClick: (xe) => {
23123
+ (ve.childRow || ve.childRowHeader) && xe.stopPropagation();
23138
23124
  }
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(() => {
23125
+ }), [
23126
+ (En = ve.children) != null && En.length || ve.hasChildren ? (g(), L(Ue, O(
23127
+ {
23128
+ key: 0,
23129
+ onClick: Tt((xe) => Bt(ve, an), ["stop"]),
23130
+ ref_for: !0
23131
+ },
23132
+ x(l).rowtogglerbutton({
23133
+ context: {
23134
+ isRowExpanded: Ne(ve[H.dataKey])
23135
+ }
23136
+ }),
23137
+ {
23138
+ icon: "arrow-down",
23139
+ text: ""
23140
+ }
23141
+ ), null, 16, ["onClick"])) : N("", !0)
23142
+ ], 16, eR)) : N("", !0),
23143
+ (() => {
23144
+ var xe;
23145
+ return ve.childRowHeader && ((xe = n.childTableProps) == null ? void 0 : xe.useColumnsHeader);
23146
+ })() ? (g(), T(le, { key: 3 }, [
23147
+ (g(!0), T(le, null, Ze(ue.value, (xe) => {
23148
+ var Yi, oo;
23149
+ return g(), T("td", {
23150
+ key: xe.header,
23151
+ class: fe([(Yi = x(l)) == null ? void 0 : Yi.bodycell.class, "font-semibold text-xs"]),
23152
+ colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23153
+ onClick: ie[4] || (ie[4] = Tt(() => {
23154
+ }, ["stop"]))
23155
+ }, _(xe.header), 11, tR);
23156
+ }), 128)),
23157
+ ze.value ? (g(), T("td", {
23158
+ key: 0,
23159
+ class: fe(x(l).bodycell.class),
23160
+ onClick: ie[5] || (ie[5] = Tt(() => {
23152
23161
  }, ["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(() => {
23162
+ }, null, 2)) : N("", !0)
23163
+ ], 64)) : ve.childRowHeader ? (g(), T("td", O({
23164
+ key: 4,
23165
+ ref_for: !0
23166
+ }, x(l).childrowheader, {
23167
+ class: (yi = x(l)) == null ? void 0 : yi.bodycell.class,
23168
+ colspan: n.columns.length + 1,
23169
+ onClick: ie[6] || (ie[6] = Tt(() => {
23159
23170
  }, ["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(
23171
+ }), _(ve.header), 17, nR)) : ve.loadingRow ? (g(), T("td", {
23172
+ key: 5,
23173
+ class: fe((Ji = x(l)) == null ? void 0 : Ji.bodycell.class),
23174
+ colspan: n.columns.length + 1,
23175
+ onClick: ie[7] || (ie[7] = Tt(() => {
23176
+ }, ["stop"]))
23177
+ }, [
23178
+ M("div", O({ ref_for: !0 }, x(l).loadingtablewrapper), [
23179
+ P(Ja, O({
23180
+ animation: "loading-table",
23181
+ ref_for: !0
23182
+ }, x(l).loadingtablelottie), null, 16)
23183
+ ], 16)
23184
+ ], 10, iR)) : ve.noDataRow ? (g(), T("td", {
23185
+ key: 6,
23186
+ class: fe((Zo = x(l)) == null ? void 0 : Zo.bodycell.class),
23187
+ colspan: n.columns.length + 1,
23188
+ onClick: ie[8] || (ie[8] = Tt(() => {
23189
+ }, ["stop"]))
23190
+ }, [
23191
+ M("div", O({ ref_for: !0 }, x(l).nodatalottiewrapper), [
23192
+ P(Ja, O({
23193
+ animation: "no-data",
23194
+ ref_for: !0
23195
+ }, x(l).nodatalottie), null, 16),
23196
+ a.value.emptyTableMessage ? (g(), T("span", O({
23197
+ key: 0,
23198
+ ref_for: !0
23199
+ }, x(l).nodatamessage), _(a.value.emptyTableMessage), 17)) : N("", !0)
23200
+ ], 16)
23201
+ ], 10, rR)) : (g(), T(le, { key: 7 }, [
23202
+ (g(!0), T(le, null, Ze(ve.childRow ? ue.value : S.value, (xe) => {
23203
+ var Yi, oo, $u, Vu, zu, Fu, _o, Ba, Ii, Hu, Fs, bt, $a, Pn, rn, Rr, hr, Hs;
23204
+ return g(), T("td", O({
23205
+ key: xe.field,
23206
+ class: [
23240
23207
  {
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();
23208
+ "!py-0": xe.editable,
23209
+ "!px-0": ((Yi = xe.preset) == null ? void 0 : Yi.type) === "multirow"
23210
+ },
23211
+ typeof xe.bodyClass == "function" ? xe.bodyClass(ve) : xe.bodyClass,
23212
+ xe.class
23213
+ ],
23214
+ colspan: xe.colspan ?? ((oo = xe.parentColumnsFields) == null ? void 0 : oo.length),
23215
+ ref_for: !0
23216
+ }, ($u = x(l)) == null ? void 0 : $u.bodycell), [
23217
+ ((Vu = xe.preset) == null ? void 0 : Vu.type) === "toggle" || ((zu = xe.preset) == null ? void 0 : zu.type) === "checkbox" ? (g(), T(le, { key: 0 }, [
23218
+ ((Fu = xe.preset) == null ? void 0 : Fu.type) === "toggle" ? (g(), L(Mw, {
23219
+ key: 0,
23220
+ 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),
23221
+ "input-id": ve[H.dataKey],
23222
+ "model-value": x(Fn)(ve, xe.field),
23223
+ onClick: ie[9] || (ie[9] = Tt(() => {
23224
+ }, ["stop"])),
23225
+ "onUpdate:modelValue": (vn) => {
23226
+ x(qs)(ve, xe.field, vn), Dt(vn, ve, xe);
23227
+ }
23228
+ }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23229
+ ((Hu = xe.preset) == null ? void 0 : Hu.type) === "checkbox" ? (g(), L(ps, {
23230
+ key: 1,
23231
+ 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),
23232
+ "input-id": ve[H.dataKey],
23233
+ "model-value": x(Fn)(ve, xe.field),
23234
+ onClick: ie[10] || (ie[10] = Tt(() => {
23235
+ }, ["stop"])),
23236
+ "onUpdate:modelValue": (vn) => {
23237
+ x(qs)(ve, xe.field, !!vn), Dt(!!vn, ve, xe);
23261
23238
  },
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)(
23239
+ binary: ""
23240
+ }, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : N("", !0),
23241
+ (Pn = xe.preset) != null && Pn.confirmDialogProps ? (g(), L(sr, O(
23242
+ {
23243
+ key: 2,
23244
+ list: [ve],
23245
+ visible: !!ke.value[ve[H.dataKey] + xe.field],
23246
+ onClose: () => {
23247
+ var Ve, Ke, Ct;
23248
+ const vn = () => x(qs)(
23269
23249
  ve,
23270
23250
  xe.field,
23271
23251
  !x(Fn)(ve, xe.field)
23272
- )
23273
- );
23252
+ );
23253
+ ((Ve = Rt(
23254
+ xe.preset,
23255
+ ve[xe.field],
23256
+ ve
23257
+ )) == null ? void 0 : Ve.actionable) == !1 && "onConfirm" in xe.preset ? (Ct = (Ke = xe.preset).onConfirm) == null || Ct.call(
23258
+ Ke,
23259
+ ve[xe.field],
23260
+ ve,
23261
+ vn
23262
+ ) : vn();
23263
+ },
23264
+ onConfirm: (vn) => {
23265
+ var Ve, Ke;
23266
+ return (Ke = (Ve = xe.preset) == null ? void 0 : Ve.onConfirm) == null ? void 0 : Ke.call(
23267
+ Ve,
23268
+ ve[xe.field],
23269
+ ve,
23270
+ () => x(qs)(
23271
+ ve,
23272
+ xe.field,
23273
+ !x(Fn)(ve, xe.field)
23274
+ )
23275
+ );
23276
+ },
23277
+ "onUpdate:visible": (vn) => ke.value[ve[H.dataKey] + xe.field] = vn,
23278
+ actionable: "",
23279
+ ref_for: !0
23274
23280
  },
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,
23281
+ Rt(
23282
+ xe.preset,
23283
+ ve[xe.field],
23284
+ ve
23285
+ )
23286
+ ), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : N("", !0)
23287
+ ], 64)) : ((rn = xe.preset) == null ? void 0 : rn.type) === "multirow" ? (g(), L(qD, {
23288
+ key: 1,
23289
+ attributes: ((hr = (Rr = xe.preset) == null ? void 0 : Rr.fieldAttributes) == null ? void 0 : hr.call(Rr, ve)) ?? []
23290
+ }, null, 8, ["attributes"])) : xe.editable ? (g(), T("span", O({
23291
+ key: 2,
23310
23292
  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);
23293
+ }, x(l).celleditableelement, {
23294
+ contenteditable: xe.editable,
23295
+ onBlur: (vn) => {
23296
+ H.$emit("cellEdited", {
23297
+ item: ve,
23298
+ field: xe.field,
23299
+ index: an,
23300
+ value: vn.target.innerText
23301
+ });
23317
23302
  },
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);
23303
+ onKeypress: (vn) => {
23304
+ xe.numberInputOnly && W(vn);
23324
23305
  }
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 ?? ""]
23306
+ }), _(x(Fn)(ve, xe.field) || "-"), 17, sR)) : xe.bodyComponent || xe.bodyClass || xe.bodyTemplate || xe.dateFormatOptions ? (g(), T(le, { key: 3 }, [
23307
+ xe.bodyComponent ? (g(), L(vt(xe.bodyComponent(ve, an).component), O({
23308
+ key: 0,
23309
+ modelValue: xe.bodyComponent(ve, an).model,
23310
+ "onUpdate:modelValue": (vn) => xe.bodyComponent(ve, an).model = vn,
23311
+ disabled: xe.bodyComponent(ve, an).disabled,
23312
+ ref_for: !0
23313
+ }, xe.bodyComponent(ve, an).props, Qs(
23314
+ xe.bodyComponent(ve, an).events ? xe.bodyComponent(ve, an).events : {}
23315
+ ), {
23316
+ onChange: (vn) => {
23317
+ var Ve, Ke;
23318
+ return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23319
+ },
23320
+ onClick: (vn) => {
23321
+ xe.bodyComponent(ve, an).stop !== !1 && vn.stopPropagation();
23322
+ },
23323
+ "onUpdate:modelValue": (vn) => {
23324
+ var Ve, Ke;
23325
+ return (Ke = (Ve = xe.bodyComponent(ve, an)).onChange) == null ? void 0 : Ke.call(Ve, ve);
23326
+ }
23327
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "onClick"])) : (g(), T("span", aR, [
23328
+ xe.bodyTemplate ? (g(), T(le, { key: 0 }, [
23329
+ ft(_(((Hs = xe.bodyTemplate) == null ? void 0 : Hs.call(xe, ve, an)) || "-"), 1)
23330
+ ], 64)) : xe.dateFormatOptions ? (g(), T(le, { key: 1 }, [
23331
+ ft(_(x(Nd)(
23332
+ new Date(
23333
+ x(Fn)(
23334
+ ve,
23335
+ xe.field
23336
+ )
23337
+ ),
23338
+ xe.dateFormatOptions
23339
+ )), 1)
23340
+ ], 64)) : (g(), T(le, { key: 2 }, [
23341
+ ft(_(x(Fn)(ve, xe.field) || "-"), 1)
23342
+ ], 64))
23343
+ ]))
23344
+ ], 64)) : (g(), T(le, { key: 4 }, [
23345
+ ft(_(x(Fn)(ve, xe.field) ?? "-"), 1)
23346
+ ], 64))
23347
+ ], 16, oR);
23348
+ }), 128)),
23349
+ ze.value ? (g(), T("td", O(
23350
+ {
23351
+ key: 0,
23352
+ ref_for: !0,
23353
+ ref_key: "rowSingleActionCell",
23354
+ ref: k
23355
+ },
23356
+ (ni = x(l)) == null ? void 0 : ni.rowsingleactioncell({
23357
+ props: n,
23358
+ context: {
23359
+ selected: yt(ve[H.dataKey]),
23360
+ highlighted: ve[H.highlightKey ?? ""]
23361
+ }
23362
+ }),
23363
+ {
23364
+ class: x(l).bodycell.class
23359
23365
  }
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],
23366
+ ), [
23367
+ !ve.childRow && H.useOption || ve.childRow && ((Mi = n.childTableProps) != null && Mi.useOption) ? (g(), T("div", O({
23368
+ key: 0,
23371
23369
  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"])
23370
+ }, x(l).singleactionwrapper), [
23371
+ P(Ue, O({
23372
+ id: "button-action-" + ve[n.dataKey],
23373
+ ref_for: !0
23374
+ }, x(l).singleactionbutton({ props: n }), {
23375
+ disabled: H.disableAllRows,
23376
+ onClick: Tt((xe) => Ft(xe, ve), ["stop"]),
23377
+ icon: "ellipsis-h",
23378
+ outlined: "",
23379
+ size: "small",
23380
+ "tooltip-pos": "left",
23381
+ type: "button"
23382
+ }), null, 16, ["id", "disabled", "onClick"])
23383
+ ], 16)) : N("", !0)
23381
23384
  ], 16)) : N("", !0)
23382
- ], 16)) : N("", !0)
23383
- ], 64))
23384
- ], 16, QD);
23385
+ ], 64))
23386
+ ], 16, QD),
23387
+ te(H.$slots, "row-subcontent", { item: ve }, void 0, !0)
23388
+ ], 64);
23385
23389
  }), 128))
23386
23390
  ], 16)
23387
23391
  ], 16, XD))
23388
23392
  ];
23389
23393
  }),
23390
- _: 1
23394
+ _: 3
23391
23395
  }, 16)
23392
23396
  ], 16),
23393
23397
  H.usePaginator ? ut((g(), L(x(cg), O({
@@ -23443,7 +23447,7 @@ const KD = (t, e, n) => {
23443
23447
  for (const [i, r] of e)
23444
23448
  n[i] = r;
23445
23449
  return n;
23446
- }, dg = /* @__PURE__ */ fS(cR, [["__scopeId", "data-v-5797150a"]]), pS = /* @__PURE__ */ be({
23450
+ }, dg = /* @__PURE__ */ fS(cR, [["__scopeId", "data-v-015be0a0"]]), pS = /* @__PURE__ */ be({
23447
23451
  __name: "Form",
23448
23452
  props: {
23449
23453
  buttonsTemplate: {},
@@ -47322,7 +47326,7 @@ const R0 = [
47322
47326
  _: 3
47323
47327
  }, 8, ["mouse-move", "touch-move", "touch-resize", "wheel-resize"]));
47324
47328
  }
47325
- }), yW = /* @__PURE__ */ fS(vW, [["__scopeId", "data-v-5cd98b2d"]]), bW = { class: "flex flex-col gap-y-4" }, AW = {
47329
+ }), yW = /* @__PURE__ */ fS(vW, [["__scopeId", "data-v-9031c32d"]]), bW = { class: "flex flex-col gap-y-4" }, AW = {
47326
47330
  key: 0,
47327
47331
  class: /* @__PURE__ */ fe([
47328
47332
  "text-xs font-normal text-grayscale-900",
@@ -55687,8 +55691,8 @@ const vA = /* @__PURE__ */ Iu(ete), yA = "data:image/png;base64,iVBORw0KGgoAAAAN
55687
55691
  A[4] || (A[4] = M("span", null, "Preview", -1)),
55688
55692
  P(Te, {
55689
55693
  icon: "info",
55690
- info: `This preview is only for showing the side of the
55691
- label that printed or not. It does not show the
55694
+ info: `This preview is only for showing the side of the\r
55695
+ label that printed or not. It does not show the\r
55692
55696
  exact amount you entered.`,
55693
55697
  severity: "primary"
55694
55698
  })