lkt-item-crud 2.0.27 → 2.0.29

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/dist/build.js CHANGED
@@ -1,32 +1,32 @@
1
- import { defineComponent as He, ref as p, watch as b, useSlots as Ge, computed as w, resolveComponent as ke, createElementBlock as h, createCommentVNode as B, openBlock as n, createBlock as g, Fragment as F, renderSlot as T, withDirectives as C, mergeProps as f, normalizeProps as Re, unref as d, renderList as K, vShow as D, createVNode as x, withCtx as Q, mergeDefaults as _e, nextTick as Xe, onMounted as xe, resolveDynamicComponent as et, createSlots as fe, createElementVNode as tt, toDisplayString as at } from "vue";
2
- import { httpCall as ot } from "lkt-http-client";
3
- import { DataState as Ae } from "lkt-data-state";
4
- import { ModificationView as S, ItemCrudMode as A, ItemCrudButtonNavVisibility as Ke, ButtonType as Oe, TablePermission as Le, ensureButtonConfig as ee, LktSettings as m, getFormDataState as nt, ItemCrudView as We, getFormSlotKeys as ut, ItemCrudButtonNavPosition as Ne, NotificationType as ne, getDefaultValues as it, ItemCrud as lt, ToastPositionX as se } from "lkt-vue-kernel";
5
- import { closeModal as rt, updateModalKey as dt } from "lkt-modal";
6
- import { __ as st } from "lkt-i18n";
1
+ import { defineComponent as Ge, ref as p, watch as g, useSlots as qe, computed as k, resolveComponent as me, createElementBlock as w, createCommentVNode as B, openBlock as n, createBlock as m, Fragment as F, renderSlot as T, withDirectives as C, mergeProps as f, normalizeProps as De, unref as d, renderList as H, vShow as D, createVNode as x, withCtx as Q, mergeDefaults as tt, nextTick as He, onMounted as at, resolveDynamicComponent as ot, createSlots as ce, toDisplayString as nt } from "vue";
2
+ import { httpCall as ut } from "lkt-http-client";
3
+ import { DataState as Oe } from "lkt-data-state";
4
+ import { ModificationView as S, ItemCrudMode as A, ItemCrudButtonNavVisibility as Ke, ButtonType as Le, TablePermission as $e, ensureButtonConfig as ee, LktSettings as b, getFormDataState as it, ItemCrudView as We, getFormSlotKeys as lt, ItemCrudButtonNavPosition as Ne, NotificationType as ne, getDefaultValues as rt, ItemCrud as dt, ToastPositionX as se } from "lkt-vue-kernel";
5
+ import { closeModal as st, updateModalKey as vt } from "lkt-modal";
6
+ import { __ as pt } from "lkt-i18n";
7
7
  import { openToast as ve } from "lkt-toast";
8
- import { useRouter as vt } from "vue-router";
9
- const ce = class ce {
8
+ import { useRouter as ft } from "vue-router";
9
+ const be = class be {
10
10
  };
11
- ce.debugEnabled = !1, ce.defaultSaveIcon = "", ce.defaultDropIcon = "";
12
- let pe = ce;
13
- const V = (...N) => {
14
- pe.debugEnabled && console.info("[LktItemCrud] ", ...N);
15
- }, Ot = (N = !0) => {
16
- pe.debugEnabled = N;
17
- }, pt = {
11
+ be.debugEnabled = !1, be.defaultSaveIcon = "", be.defaultDropIcon = "";
12
+ let pe = be;
13
+ const V = (...$) => {
14
+ pe.debugEnabled && console.info("[LktItemCrud] ", ...$);
15
+ }, Lt = ($ = !0) => {
16
+ pe.debugEnabled = $;
17
+ }, ct = {
18
18
  key: 0,
19
19
  class: "lkt-item-crud-buttons"
20
- }, ft = {
20
+ }, mt = {
21
21
  key: 0,
22
22
  class: "lkt-item-crud-buttons"
23
- }, ct = {
23
+ }, bt = {
24
24
  key: 1,
25
25
  class: "lkt-item-crud-buttons"
26
- }, mt = {
26
+ }, gt = {
27
27
  key: 2,
28
28
  class: "lkt-item-crud-buttons"
29
- }, $e = /* @__PURE__ */ He({
29
+ }, je = /* @__PURE__ */ Ge({
30
30
  __name: "ButtonNav",
31
31
  props: {
32
32
  item: { default: () => ({}) },
@@ -68,14 +68,14 @@ const V = (...N) => {
68
68
  "save",
69
69
  "drop"
70
70
  ],
71
- setup(N, { expose: me, emit: Ce }) {
72
- const a = Ce, u = N, E = p(u.pickedModificationView);
73
- b(() => u.pickedModificationView, (t) => E.value = t), b(E, (t) => a("update:pickedModificationView", t));
74
- const y = Ge(), c = p(null), s = p(null), i = p(u.loading);
75
- b(() => u.loading, (t) => i.value = t), b(i, (t) => a("update:loading", t));
76
- const M = p(u.editing);
77
- b(() => u.editing, (t) => M.value = t), b(M, (t) => a("update:editing", t));
78
- const k = () => {
71
+ setup($, { expose: ge, emit: we }) {
72
+ const a = we, u = $, M = p(u.pickedModificationView);
73
+ g(() => u.pickedModificationView, (t) => M.value = t), g(M, (t) => a("update:pickedModificationView", t));
74
+ const y = qe(), c = p(null), s = p(null), i = p(u.loading);
75
+ g(() => u.loading, (t) => i.value = t), g(i, (t) => a("update:loading", t));
76
+ const E = p(u.editing);
77
+ g(() => u.editing, (t) => E.value = t), g(E, (t) => a("update:editing", t));
78
+ const h = () => {
79
79
  i.value = !0;
80
80
  }, U = () => {
81
81
  i.value = !1;
@@ -85,8 +85,8 @@ const V = (...N) => {
85
85
  typeof t > "u" || a("save", t, L);
86
86
  }, P = (t, L) => {
87
87
  typeof t > "u" || a("drop", t, L);
88
- }, W = w(() => u.editableView === S.Modifications ? u.modifications : u.item);
89
- me({
88
+ }, K = k(() => u.editableView === S.Modifications ? u.modifications : u.item);
89
+ ge({
90
90
  doSave: () => {
91
91
  c.value && typeof c.value.click == "function" && c.value.click();
92
92
  },
@@ -94,63 +94,63 @@ const V = (...N) => {
94
94
  s.value && typeof s.value.click == "function" && s.value.click();
95
95
  }
96
96
  });
97
- const H = w(() => !u.canDrop || u.dropButton === !1 ? !1 : !u.canUpdate && u.canDrop ? !0 : !i.value && u.editing && u.httpSuccessRead), I = w(() => u.mode === A.Create && u.createButton === !1 || u.mode === A.Update && u.updateButton === !1 || i.value ? !1 : u.editing && u.httpSuccessRead), ae = w(() => u.editModeButton === !1 || !u.canSwitchEditMode || !u.canUpdate && !u.canDrop || !u.canUpdate && u.canDrop ? !1 : !i.value && u.mode !== A.Create && u.httpSuccessRead), J = w(() => u.buttonNavVisibility === Ke.Always || y["prev-buttons-ever"] ? !0 : u.buttonNavVisibility === Ke.Never ? !1 : I.value || H.value || ae.value), G = w(() => u.modificationView === !1 ? [] : u.modificationView === !0 ? [
97
+ const W = k(() => !u.canDrop || u.dropButton === !1 ? !1 : !u.canUpdate && u.canDrop ? !0 : !i.value && u.editing && u.httpSuccessRead), I = k(() => u.mode === A.Create && u.createButton === !1 || u.mode === A.Update && u.updateButton === !1 || i.value ? !1 : u.editing && u.httpSuccessRead), ae = k(() => u.editModeButton === !1 || !u.canSwitchEditMode || !u.canUpdate && !u.canDrop || !u.canUpdate && u.canDrop ? !1 : !i.value && u.mode !== A.Create && u.httpSuccessRead), J = k(() => u.buttonNavVisibility === Ke.Always || y["prev-buttons-ever"] ? !0 : u.buttonNavVisibility === Ke.Never ? !1 : I.value || W.value || ae.value), G = k(() => u.modificationView === !1 ? [] : u.modificationView === !0 ? [
98
98
  S.Current,
99
99
  S.Modifications,
100
100
  S.SplitView,
101
101
  S.Differences
102
- ] : Array.isArray(u.modificationView) ? u.modificationView : []), re = w(() => {
102
+ ] : Array.isArray(u.modificationView) ? u.modificationView : []), re = k(() => {
103
103
  let t = [];
104
104
  return G.value.includes(S.Current) && t.push({
105
105
  text: "Current",
106
106
  icon: "lkt-icn-see",
107
- disabled: E.value === S.Current,
107
+ disabled: M.value === S.Current,
108
108
  events: {
109
109
  click: () => {
110
- E.value = S.Current;
110
+ M.value = S.Current;
111
111
  }
112
112
  }
113
113
  }), G.value.includes(S.Modifications) && t.push({
114
114
  text: "Modifications",
115
115
  icon: "lkt-icn-edit",
116
- disabled: E.value === S.Modifications,
116
+ disabled: M.value === S.Modifications,
117
117
  events: {
118
118
  click: () => {
119
- E.value = S.Modifications;
119
+ M.value = S.Modifications;
120
120
  }
121
121
  }
122
122
  }), G.value.includes(S.SplitView) && t.push({
123
123
  text: "Split View",
124
124
  icon: "lkt-icn-columns",
125
- disabled: E.value === S.SplitView,
125
+ disabled: M.value === S.SplitView,
126
126
  events: {
127
127
  click: () => {
128
- E.value = S.SplitView;
128
+ M.value = S.SplitView;
129
129
  }
130
130
  }
131
131
  }), G.value.includes(S.Differences) && t.push({
132
132
  text: "Differences",
133
133
  icon: "lkt-icn-balance",
134
- disabled: E.value === S.Differences,
134
+ disabled: M.value === S.Differences,
135
135
  events: {
136
136
  click: () => {
137
- E.value = S.Differences;
137
+ M.value = S.Differences;
138
138
  }
139
139
  }
140
140
  }), t;
141
141
  });
142
142
  return (t, L) => {
143
- var _, de, X, q;
144
- const r = ke("lkt-button");
145
- return J.value ? (n(), h("div", pt, [
146
- t.grouped && t.groupButtonAsModalActions ? (n(), h(F, { key: 0 }, [
147
- ae.value ? (n(), g(r, f({ key: 0 }, t.editModeButton, {
148
- checked: M.value,
149
- "onUpdate:checked": L[0] || (L[0] = (v) => M.value = v),
143
+ var _, de, N, q;
144
+ const r = me("lkt-button");
145
+ return J.value ? (n(), w("div", ct, [
146
+ t.grouped && t.groupButtonAsModalActions ? (n(), w(F, { key: 0 }, [
147
+ ae.value ? (n(), m(r, f({ key: 0 }, t.editModeButton, {
148
+ checked: E.value,
149
+ "onUpdate:checked": L[0] || (L[0] = (v) => E.value = v),
150
150
  class: "lkt-item-crud--switch-mode-button"
151
151
  }), null, 16, ["checked"])) : B("", !0),
152
- G.value.length > 0 ? (n(), g(r, Re(f({ key: 1 }, {
153
- type: d(Oe).Tooltip,
152
+ G.value.length > 0 ? (n(), m(r, De(f({ key: 1 }, {
153
+ type: d(Le).Tooltip,
154
154
  icon: "lkt-icn-cross-arrows",
155
155
  class: "lkt-item-crud--modifications-button",
156
156
  splitButtons: re.value,
@@ -158,7 +158,7 @@ const V = (...N) => {
158
158
  contentClass: "lkt-flex-column"
159
159
  }
160
160
  })), null, 16)) : B("", !0),
161
- (n(!0), h(F, null, K(t.navStartButtons, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
161
+ (n(!0), w(F, null, H(t.navStartButtons, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
162
162
  [D, !i.value]
163
163
  ])), 256)),
164
164
  d(y)["prev-buttons-ever"] ? T(t.$slots, "prev-buttons-ever", {
@@ -167,8 +167,8 @@ const V = (...N) => {
167
167
  canDrop: t.canDrop,
168
168
  perms: t.perms
169
169
  }) : B("", !0),
170
- (n(!0), h(F, null, K(t.navStartButtonsEditing, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
171
- [D, M.value && !i.value]
170
+ (n(!0), w(F, null, H(t.navStartButtonsEditing, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
171
+ [D, E.value && !i.value]
172
172
  ])), 256)),
173
173
  d(y)["prev-buttons"] ? T(t.$slots, "prev-buttons", {
174
174
  key: 3,
@@ -183,11 +183,11 @@ const V = (...N) => {
183
183
  ...t.updateButton,
184
184
  resourceData: {
185
185
  ...(_ = t.updateButton) == null ? void 0 : _.resourceData,
186
- ...W.value
186
+ ...K.value
187
187
  },
188
188
  disabled: !t.ableToUpdate
189
189
  }, {
190
- onLoading: k,
190
+ onLoading: h,
191
191
  onLoaded: U,
192
192
  onClick: Y
193
193
  }), null, 16), [
@@ -200,11 +200,11 @@ const V = (...N) => {
200
200
  ...t.createButton,
201
201
  resourceData: {
202
202
  ...(de = t.createButton) == null ? void 0 : de.resourceData,
203
- ...W.value
203
+ ...K.value
204
204
  },
205
205
  disabled: !t.ableToCreate
206
206
  }, {
207
- onLoading: k,
207
+ onLoading: h,
208
208
  onLoaded: U,
209
209
  onClick: te
210
210
  }), null, 16), [
@@ -215,33 +215,33 @@ const V = (...N) => {
215
215
  ref: s
216
216
  }, t.dropButton, {
217
217
  disabled: !t.ableToDrop,
218
- onLoading: k,
218
+ onLoading: h,
219
219
  onLoaded: U,
220
220
  onClick: P
221
221
  }), null, 16, ["disabled"]), [
222
- [D, H.value && t.mode !== d(A).Create]
222
+ [D, W.value && t.mode !== d(A).Create]
223
223
  ]),
224
224
  d(y).buttons ? T(t.$slots, "buttons", { key: 4 }) : B("", !0),
225
- (n(!0), h(F, null, K(t.navEndButtons, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
225
+ (n(!0), w(F, null, H(t.navEndButtons, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
226
226
  [D, !i.value]
227
227
  ])), 256)),
228
- (n(!0), h(F, null, K(t.navEndButtonsEditing, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
229
- [D, M.value && !i.value]
228
+ (n(!0), w(F, null, H(t.navEndButtonsEditing, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
229
+ [D, E.value && !i.value]
230
230
  ])), 256))
231
- ], 64)) : t.grouped ? (n(), g(r, f({
231
+ ], 64)) : t.grouped ? (n(), m(r, f({
232
232
  key: 1,
233
233
  ref: "groupButton"
234
234
  }, t.groupButton, { class: "lkt-item-crud-group-button" }), {
235
235
  split: Q(() => {
236
236
  var v, z;
237
237
  return [
238
- ae.value ? (n(), g(r, f({ key: 0 }, t.editModeButton, {
239
- checked: M.value,
240
- "onUpdate:checked": L[1] || (L[1] = ($) => M.value = $),
238
+ ae.value ? (n(), m(r, f({ key: 0 }, t.editModeButton, {
239
+ checked: E.value,
240
+ "onUpdate:checked": L[1] || (L[1] = (j) => E.value = j),
241
241
  class: "lkt-item-crud--switch-mode-button"
242
242
  }), null, 16, ["checked"])) : B("", !0),
243
- G.value.length > 0 ? (n(), g(r, Re(f({ key: 1 }, {
244
- type: d(Oe).Tooltip,
243
+ G.value.length > 0 ? (n(), m(r, De(f({ key: 1 }, {
244
+ type: d(Le).Tooltip,
245
245
  icon: "lkt-icn-cross-arrows",
246
246
  class: "lkt-item-crud--modifications-button",
247
247
  splitButtons: re.value,
@@ -249,7 +249,7 @@ const V = (...N) => {
249
249
  contentClass: "lkt-flex-column"
250
250
  }
251
251
  })), null, 16)) : B("", !0),
252
- (n(!0), h(F, null, K(t.navStartButtons, ($) => C((n(), g(r, f({ ref_for: !0 }, $), null, 16)), [
252
+ (n(!0), w(F, null, H(t.navStartButtons, (j) => C((n(), m(r, f({ ref_for: !0 }, j), null, 16)), [
253
253
  [D, !i.value]
254
254
  ])), 256)),
255
255
  d(y)["prev-buttons-ever"] ? T(t.$slots, "prev-buttons-ever", {
@@ -258,8 +258,8 @@ const V = (...N) => {
258
258
  canDrop: t.canDrop,
259
259
  perms: t.perms
260
260
  }) : B("", !0),
261
- (n(!0), h(F, null, K(t.navStartButtonsEditing, ($) => C((n(), g(r, f({ ref_for: !0 }, $), null, 16)), [
262
- [D, M.value && !i.value]
261
+ (n(!0), w(F, null, H(t.navStartButtonsEditing, (j) => C((n(), m(r, f({ ref_for: !0 }, j), null, 16)), [
262
+ [D, E.value && !i.value]
263
263
  ])), 256)),
264
264
  d(y)["prev-buttons"] ? T(t.$slots, "prev-buttons", {
265
265
  key: 3,
@@ -274,11 +274,11 @@ const V = (...N) => {
274
274
  ...t.updateButton,
275
275
  resourceData: {
276
276
  ...(v = t.updateButton) == null ? void 0 : v.resourceData,
277
- ...W.value
277
+ ...K.value
278
278
  },
279
279
  disabled: !t.ableToUpdate
280
280
  }, {
281
- onLoading: k,
281
+ onLoading: h,
282
282
  onLoaded: U,
283
283
  onClick: Y
284
284
  }), null, 16), [
@@ -291,12 +291,12 @@ const V = (...N) => {
291
291
  ...t.createButton,
292
292
  resourceData: {
293
293
  ...(z = t.createButton) == null ? void 0 : z.resourceData,
294
- ...W.value
294
+ ...K.value
295
295
  },
296
296
  disabled: !t.ableToCreate
297
297
  }, {
298
298
  disabled: !t.ableToCreate,
299
- onLoading: k,
299
+ onLoading: h,
300
300
  onLoaded: U,
301
301
  onClick: te
302
302
  }), null, 16, ["disabled"]), [
@@ -307,27 +307,27 @@ const V = (...N) => {
307
307
  ref: s
308
308
  }, t.dropButton, {
309
309
  disabled: !t.ableToDrop,
310
- onLoading: k,
310
+ onLoading: h,
311
311
  onLoaded: U,
312
312
  onClick: P
313
313
  }), null, 16, ["disabled"]), [
314
- [D, H.value && t.mode !== d(A).Create]
314
+ [D, W.value && t.mode !== d(A).Create]
315
315
  ]),
316
316
  d(y).buttons ? T(t.$slots, "buttons", { key: 4 }) : B("", !0),
317
- (n(!0), h(F, null, K(t.navEndButtons, ($) => C((n(), g(r, f({ ref_for: !0 }, $), null, 16)), [
317
+ (n(!0), w(F, null, H(t.navEndButtons, (j) => C((n(), m(r, f({ ref_for: !0 }, j), null, 16)), [
318
318
  [D, !i.value]
319
319
  ])), 256)),
320
- (n(!0), h(F, null, K(t.navEndButtonsEditing, ($) => C((n(), g(r, f({ ref_for: !0 }, $), null, 16)), [
321
- [D, M.value && !i.value]
320
+ (n(!0), w(F, null, H(t.navEndButtonsEditing, (j) => C((n(), m(r, f({ ref_for: !0 }, j), null, 16)), [
321
+ [D, E.value && !i.value]
322
322
  ])), 256))
323
323
  ];
324
324
  }),
325
325
  _: 3
326
- }, 16)) : (n(), h(F, { key: 2 }, [
327
- (n(!0), h(F, null, K(t.navStartButtons, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
326
+ }, 16)) : (n(), w(F, { key: 2 }, [
327
+ (n(!0), w(F, null, H(t.navStartButtons, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
328
328
  [D, !i.value]
329
329
  ])), 256)),
330
- d(y)["prev-buttons-ever"] ? C((n(), h("div", ft, [
330
+ d(y)["prev-buttons-ever"] ? C((n(), w("div", mt, [
331
331
  T(t.$slots, "prev-buttons-ever", {
332
332
  canUpdate: t.canUpdate,
333
333
  canDrop: t.canDrop,
@@ -336,17 +336,17 @@ const V = (...N) => {
336
336
  ], 512)), [
337
337
  [D, !i.value]
338
338
  ]) : B("", !0),
339
- (n(!0), h(F, null, K(t.navStartButtonsEditing, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
340
- [D, M.value && !i.value]
339
+ (n(!0), w(F, null, H(t.navStartButtonsEditing, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
340
+ [D, E.value && !i.value]
341
341
  ])), 256)),
342
- d(y)["prev-buttons"] ? C((n(), h("div", ct, [
342
+ d(y)["prev-buttons"] ? C((n(), w("div", bt, [
343
343
  T(t.$slots, "prev-buttons", {
344
344
  canUpdate: t.canUpdate,
345
345
  canDrop: t.canDrop,
346
346
  perms: t.perms
347
347
  })
348
348
  ], 512)), [
349
- [D, M.value && !i.value]
349
+ [D, E.value && !i.value]
350
350
  ]) : B("", !0),
351
351
  C(x(r, f({
352
352
  ref_key: "saveButtonRef",
@@ -354,12 +354,12 @@ const V = (...N) => {
354
354
  }, {
355
355
  ...t.updateButton,
356
356
  resourceData: {
357
- ...(X = t.updateButton) == null ? void 0 : X.resourceData,
358
- ...W.value
357
+ ...(N = t.updateButton) == null ? void 0 : N.resourceData,
358
+ ...K.value
359
359
  },
360
360
  disabled: !t.ableToUpdate
361
361
  }, {
362
- onLoading: k,
362
+ onLoading: h,
363
363
  onLoaded: U,
364
364
  onClick: Y
365
365
  }), null, 16), [
@@ -372,11 +372,11 @@ const V = (...N) => {
372
372
  ...t.createButton,
373
373
  resourceData: {
374
374
  ...(q = t.createButton) == null ? void 0 : q.resourceData,
375
- ...W.value
375
+ ...K.value
376
376
  },
377
377
  disabled: !t.ableToCreate
378
378
  }, {
379
- onLoading: k,
379
+ onLoading: h,
380
380
  onLoaded: U,
381
381
  onClick: te
382
382
  }), null, 16), [
@@ -387,25 +387,25 @@ const V = (...N) => {
387
387
  ref: s
388
388
  }, t.dropButton, {
389
389
  disabled: !t.ableToDrop,
390
- onLoading: k,
390
+ onLoading: h,
391
391
  onLoaded: U,
392
392
  onClick: P
393
393
  }), null, 16, ["disabled"]), [
394
- [D, H.value && t.mode !== d(A).Create]
394
+ [D, W.value && t.mode !== d(A).Create]
395
395
  ]),
396
- d(y).buttons ? C((n(), h("div", mt, [
396
+ d(y).buttons ? C((n(), w("div", gt, [
397
397
  T(t.$slots, "buttons")
398
398
  ], 512)), [
399
- [D, M.value && !i.value]
399
+ [D, E.value && !i.value]
400
400
  ]) : B("", !0),
401
- (n(!0), h(F, null, K(t.navEndButtons, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
401
+ (n(!0), w(F, null, H(t.navEndButtons, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
402
402
  [D, !i.value]
403
403
  ])), 256)),
404
- (n(!0), h(F, null, K(t.navEndButtonsEditing, (v) => C((n(), g(r, f({ ref_for: !0 }, v), null, 16)), [
405
- [D, M.value && !i.value]
404
+ (n(!0), w(F, null, H(t.navEndButtonsEditing, (v) => C((n(), m(r, f({ ref_for: !0 }, v), null, 16)), [
405
+ [D, E.value && !i.value]
406
406
  ])), 256)),
407
- G.value.length > 0 ? (n(), g(r, Re(f({ key: 3 }, {
408
- type: d(Oe).Tooltip,
407
+ G.value.length > 0 ? (n(), m(r, De(f({ key: 3 }, {
408
+ type: d(Le).Tooltip,
409
409
  icon: "lkt-icn-cross-arrows",
410
410
  class: "lkt-item-crud--modifications-button",
411
411
  splitButtons: re.value,
@@ -413,42 +413,42 @@ const V = (...N) => {
413
413
  contentClass: "lkt-flex-column"
414
414
  }
415
415
  })), null, 16)) : B("", !0),
416
- ae.value ? (n(), g(r, f({ key: 4 }, t.editModeButton, {
417
- checked: M.value,
418
- "onUpdate:checked": L[2] || (L[2] = (v) => M.value = v),
416
+ ae.value ? (n(), m(r, f({ key: 4 }, t.editModeButton, {
417
+ checked: E.value,
418
+ "onUpdate:checked": L[2] || (L[2] = (v) => E.value = v),
419
419
  class: "lkt-item-crud--switch-mode-button"
420
420
  }), null, 16, ["checked"])) : B("", !0)
421
421
  ], 64))
422
422
  ])) : B("", !0);
423
423
  };
424
424
  }
425
- }), bt = { class: "lkt-item-crud" }, gt = {
426
- key: 0,
425
+ }), Bt = {
426
+ key: 1,
427
427
  class: "lkt-item-crud_header"
428
- }, Bt = {
428
+ }, yt = {
429
429
  key: 0,
430
430
  class: "lkt-item-crud_header-slot"
431
- }, yt = {
431
+ }, kt = {
432
432
  key: 1,
433
433
  class: "lkt-item-crud_header-title"
434
- }, kt = {
434
+ }, ht = {
435
435
  key: 2,
436
436
  class: "lkt-item-crud_header-slot"
437
437
  }, Ct = {
438
- key: 2,
438
+ key: 3,
439
439
  class: "lkt-item-crud_content"
440
440
  }, Dt = {
441
441
  key: 0,
442
442
  class: "lkt-grid-1"
443
- }, ht = /* @__PURE__ */ He({
443
+ }, wt = /* @__PURE__ */ Ge({
444
444
  __name: "LktItemCrud",
445
- props: /* @__PURE__ */ _e({
445
+ props: /* @__PURE__ */ tt({
446
446
  modelValue: {},
447
447
  modifications: {},
448
448
  editing: { type: Boolean },
449
449
  perms: {},
450
450
  customData: {},
451
- form: {},
451
+ form: { type: [Object, Function] },
452
452
  formUiConfig: {},
453
453
  mode: {},
454
454
  view: {},
@@ -468,6 +468,7 @@ const V = (...N) => {
468
468
  readResource: {},
469
469
  readData: {},
470
470
  title: {},
471
+ header: {},
471
472
  beforeEmitUpdate: { type: Function },
472
473
  notificationType: {},
473
474
  enabledSaveWithoutChanges: { type: Boolean },
@@ -479,7 +480,7 @@ const V = (...N) => {
479
480
  navEndButtons: {},
480
481
  navEndButtonsEditing: {},
481
482
  events: {}
482
- }, it(lt)),
483
+ }, rt(dt)),
483
484
  emits: [
484
485
  "update:modelValue",
485
486
  "update:editing",
@@ -496,51 +497,51 @@ const V = (...N) => {
496
497
  "error",
497
498
  "modified-data"
498
499
  ],
499
- setup(N, { expose: me, emit: Ce }) {
500
- const a = N, u = vt(), E = Ge(), y = Ce, c = p(!0), s = p(a.modelValue), i = p(a.modifications), M = p(a.customData), k = p(a.perms), U = p(a.editing), te = p(!1), Y = p(!1), P = p(!1), W = p(!1), Z = p(200), O = p(new Ae(s.value, a.dataStateConfig)), H = p(new Ae(i.value, a.dataStateConfig)), I = p(!1), ae = p(new Ae(a.readData)), J = p(a.mode === A.Create), G = p(!1), re = p(!1), t = p(null), L = p(null), r = w(() => !J.value && a.updateButton !== !1 && Array.isArray(k.value) && k.value.includes(Le.Update)), _ = w(() => !J.value && a.dropButton !== !1 && Array.isArray(k.value) && k.value.includes(Le.Drop)), de = w(() => a.editModeButton !== !1 && !J.value && Array.isArray(k.value) && k.value.includes(Le.SwitchEditMode)), X = p(a.visibleView);
501
- b(() => a.visibleView, (e) => {
502
- X.value = e;
503
- }), b(X, (e) => {
500
+ setup($, { expose: ge, emit: we }) {
501
+ const a = $, u = ft(), M = qe(), y = we, c = p(!0), s = p(a.modelValue), i = p(a.modifications), E = p(a.customData), h = p(a.perms), U = p(a.editing), te = p(!1), Y = p(!1), P = p(!1), K = p(!1), Z = p(200), O = p(new Oe(s.value, a.dataStateConfig)), W = p(new Oe(i.value, a.dataStateConfig)), I = p(!1), ae = p(new Oe(a.readData)), J = p(a.mode === A.Create), G = p(!1), re = p(!1), t = p(null), L = p(null), r = k(() => !J.value && a.updateButton !== !1 && Array.isArray(h.value) && h.value.includes($e.Update)), _ = k(() => !J.value && a.dropButton !== !1 && Array.isArray(h.value) && h.value.includes($e.Drop)), de = k(() => a.editModeButton !== !1 && !J.value && Array.isArray(h.value) && h.value.includes($e.SwitchEditMode)), N = p(a.visibleView);
502
+ g(() => a.visibleView, (e) => {
503
+ N.value = e;
504
+ }), g(N, (e) => {
504
505
  y("update:visibleView", e);
505
- }), b(() => a.mode, (e) => {
506
+ }), g(() => a.mode, (e) => {
506
507
  J.value = e === A.Create;
507
- }), b(() => a.perms, (e) => {
508
- k.value = e;
509
- }), b(k, (e) => {
508
+ }), g(() => a.perms, (e) => {
509
+ h.value = e;
510
+ }), g(h, (e) => {
510
511
  y("update:perms", e);
511
- }), b(() => a.customData, (e) => {
512
- M.value = e;
513
- }), b(M, (e) => {
512
+ }), g(() => a.customData, (e) => {
513
+ E.value = e;
514
+ }), g(E, (e) => {
514
515
  y("update:customData", e);
515
- }), b(() => a.modifications, (e) => {
516
- H.value.increment(e), i.value = e;
517
- }, { deep: !0 }), b(i, (e) => {
518
- he(), H.value.increment(e), ue.value === S.Modifications && (I.value = H.value.changed()), y("update:modifications", e);
516
+ }), g(() => a.modifications, (e) => {
517
+ W.value.increment(e), i.value = e;
518
+ }, { deep: !0 }), g(i, (e) => {
519
+ Ue(), W.value.increment(e), ue.value === S.Modifications && (I.value = W.value.changed()), y("update:modifications", e);
519
520
  }, { deep: !0 });
520
- const q = p(ee(a.createButton, m.defaultCreateButton)), v = p(ee(a.updateButton, m.defaultUpdateButton)), z = p(ee(a.dropButton, m.defaultDropButton)), $ = p(ee(a.editModeButton, m.defaultEditModeButton)), De = p(ee(a.groupButton, m.defaultGroupButton));
521
- b(() => a.createButton, (e) => {
522
- q.value = ee(e, m.defaultCreateButton);
523
- }, { deep: !0 }), b(() => a.updateButton, (e) => {
524
- v.value = ee(e, m.defaultUpdateButton);
525
- }, { deep: !0 }), b(() => a.dropButton, (e) => {
526
- z.value = ee(e, m.defaultDropButton);
527
- }, { deep: !0 }), b(() => a.editModeButton, (e) => {
528
- $.value = ee(e, m.defaultEditModeButton);
521
+ const q = p(ee(a.createButton, b.defaultCreateButton)), v = p(ee(a.updateButton, b.defaultUpdateButton)), z = p(ee(a.dropButton, b.defaultDropButton)), j = p(ee(a.editModeButton, b.defaultEditModeButton)), Se = p(ee(a.groupButton, b.defaultGroupButton));
522
+ g(() => a.createButton, (e) => {
523
+ q.value = ee(e, b.defaultCreateButton);
524
+ }, { deep: !0 }), g(() => a.updateButton, (e) => {
525
+ v.value = ee(e, b.defaultUpdateButton);
526
+ }, { deep: !0 }), g(() => a.dropButton, (e) => {
527
+ z.value = ee(e, b.defaultDropButton);
528
+ }, { deep: !0 }), g(() => a.editModeButton, (e) => {
529
+ j.value = ee(e, b.defaultEditModeButton);
529
530
  }, { deep: !0 });
530
- const be = async () => {
531
- var e, o, j;
532
- V("fetchItem"), c.value = !0, Z.value = -1, W.value = !1, typeof ((e = a.events) == null ? void 0 : e.httpStart) == "function" && a.events.httpStart();
531
+ const Be = async () => {
532
+ var e, o, X;
533
+ V("fetchItem"), c.value = !0, Z.value = -1, K.value = !1, typeof ((e = a.events) == null ? void 0 : e.httpStart) == "function" && a.events.httpStart();
533
534
  try {
534
- const R = await ot(a.readResource, a.readData);
535
- if (V("fetchItem -> response", R), c.value = !1, Z.value = R.httpStatus, M.value = R.custom, !R.success) {
535
+ const R = await ut(a.readResource, a.readData);
536
+ if (V("fetchItem -> response", R), c.value = !1, Z.value = R.httpStatus, E.value = R.custom, !R.success) {
536
537
  P.value = !1, Z.value = R.httpStatus, typeof ((o = a.events) == null ? void 0 : o.httpEnd) == "function" && a.events.httpEnd({
537
538
  httpResponse: R
538
539
  }), y("error", R.httpStatus);
539
540
  return;
540
541
  }
541
- P.value = !0, s.value = R.data, i.value = Array.isArray(R.modifications) ? {} : R.modifications, k.value = R.perms, O.value.increment(s.value).turnStoredIntoOriginal(), H.value.increment(i.value).turnStoredIntoOriginal(), I.value = O.value.changed(), ae.value.turnStoredIntoOriginal(), Object.keys(i.value).length > 0 && (X.value = S.Modifications), oe.value && (he(), Xe(() => {
542
+ P.value = !0, s.value = R.data, i.value = Array.isArray(R.modifications) ? {} : R.modifications, h.value = R.perms, O.value.increment(s.value).turnStoredIntoOriginal(), W.value.increment(i.value).turnStoredIntoOriginal(), I.value = O.value.changed(), ae.value.turnStoredIntoOriginal(), Object.keys(i.value).length > 0 && (N.value = S.Modifications), oe.value && (Ue(), He(() => {
542
543
  L.value.turnStoredIntoOriginal();
543
- })), typeof ((j = a.events) == null ? void 0 : j.httpEnd) == "function" && a.events.httpEnd({
544
+ })), typeof ((X = a.events) == null ? void 0 : X.httpEnd) == "function" && a.events.httpEnd({
544
545
  httpResponse: R
545
546
  }), y("read", R);
546
547
  } catch {
@@ -548,102 +549,102 @@ const V = (...N) => {
548
549
  return;
549
550
  }
550
551
  };
551
- b(G, (e) => {
552
- e && Xe(() => G.value = !1);
553
- }), b(() => a.modelValue, (e) => {
552
+ g(G, (e) => {
553
+ e && He(() => G.value = !1);
554
+ }), g(() => a.modelValue, (e) => {
554
555
  s.value = e, O.value.increment(e);
555
- }, { deep: !0 }), b(s, (e) => {
556
+ }, { deep: !0 }), g(s, (e) => {
556
557
  if (V("item updated ->", s.value), typeof a.beforeEmitUpdate == "function") {
557
558
  V("item updated -> has beforeEmitUpdate");
558
559
  let o = a.beforeEmitUpdate(s.value);
559
560
  V("item updated -> override with: ", o), typeof o == "object" && (s.value = o);
560
561
  }
561
- oe.value && he(), y("update:modelValue", s.value), V("item updated -> update dataState"), O.value.increment(e), ue.value === S.Current && (I.value = O.value.changed()), G.value = !0;
562
- }, { deep: !0 }), b(k, () => y("perms", k.value)), b(I, (e) => {
562
+ oe.value && Ue(), y("update:modelValue", s.value), V("item updated -> update dataState"), O.value.increment(e), ue.value === S.Current && (I.value = O.value.changed()), G.value = !0;
563
+ }, { deep: !0 }), g(h, () => y("perms", h.value)), g(I, (e) => {
563
564
  y("modified-data", e);
564
- }), b(() => a.readData, (e) => {
565
- ae.value.increment(e), ae.value.changed() && be();
566
- }), b(() => a.editing, (e) => {
565
+ }), g(() => a.readData, (e) => {
566
+ ae.value.increment(e), ae.value.changed() && Be();
567
+ }), g(() => a.editing, (e) => {
567
568
  V("editing updated -> updating editMode", e), U.value = e;
568
- }), b(U, (e) => {
569
+ }), g(U, (e) => {
569
570
  V("editMode updated -> emit update", e), y("update:editing", e);
570
571
  });
571
- const je = p(void 0), he = () => {
572
- oe.value && (je.value = nt(s.value, i.value, a.form));
572
+ const Fe = p(void 0), Ue = () => {
573
+ oe.value && (Fe.value = it(s.value, i.value, fe.value));
573
574
  };
574
- xe(() => {
575
- a.readResource && !J.value ? be() : (J.value, P.value = !0, U.value = !0, c.value = !1, O.value.increment(s.value).turnStoredIntoOriginal(), I.value = O.value.changed());
575
+ at(() => {
576
+ a.readResource && !J.value ? Be() : (J.value, P.value = !0, U.value = !0, c.value = !1, O.value.increment(s.value).turnStoredIntoOriginal(), I.value = O.value.changed());
576
577
  });
577
- const we = (e, o) => {
578
+ const Me = (e, o) => {
578
579
  if (o) {
579
580
  if (c.value = !1, typeof e < "u" && (Z.value = e.httpStatus, !e.success))
580
- return W.value = !0, y("error", e.httpStatus), !1;
581
- W.value = !0;
581
+ return K.value = !0, y("error", e.httpStatus), !1;
582
+ K.value = !0;
582
583
  }
583
584
  return !0;
584
- }, Fe = (e, o) => {
585
+ }, Pe = (e, o) => {
585
586
  if (V("doAutoReloadId -> enter: ", e), typeof e < "u" && e.autoReloadId)
586
587
  if (V("doAutoReloadId -> autoReloadId detected: ", e.autoReloadId), typeof o < "u") {
587
- let j = o;
588
- typeof o == "function" && (j = o(e.autoReloadId)), u.push(j);
589
- } else Ve.value ? (V("doAutoReloadId -> insideModal: ", a), dt(a.modalConfig.modalName, a.modalConfig.modalKey, e.autoReloadId)) : (V("doAutoReloadId -> outsideModal"), a.readData.id = e.autoReloadId, V("doAutoReloadId -> turning off create mode"), J.value = !1, be());
590
- }, Se = (e, o) => {
591
- if (V("onCreate"), !we(o, q.value.resource)) {
588
+ let X = o;
589
+ typeof o == "function" && (X = o(e.autoReloadId)), u.push(X);
590
+ } else ye.value ? (V("doAutoReloadId -> insideModal: ", a), vt(a.modalConfig.modalName, a.modalConfig.modalKey, e.autoReloadId)) : (V("doAutoReloadId -> outsideModal"), a.readData.id = e.autoReloadId, V("doAutoReloadId -> turning off create mode"), J.value = !1, Be());
591
+ }, Ee = (e, o) => {
592
+ if (V("onCreate"), !Me(o, q.value.resource)) {
592
593
  a.notificationType === ne.Toast && ve({
593
- text: m.defaultCreateErrorText,
594
- details: m.defaultCreateErrorDetails,
595
- icon: m.defaultCreateErrorIcon,
594
+ text: b.defaultCreateErrorText,
595
+ details: b.defaultCreateErrorDetails,
596
+ icon: b.defaultCreateErrorIcon,
596
597
  positionX: se.Right
597
598
  });
598
599
  return;
599
600
  }
600
- re.value = !0, V("onCreate -> turn stored data into original"), O.value.increment(s.value).turnStoredIntoOriginal(), H.value.turnStoredIntoOriginal(), a.notificationType === ne.Toast && ve({
601
- text: m.defaultCreateSuccessText,
602
- details: m.defaultCreateSuccessDetails,
603
- icon: m.defaultCreateSuccessIcon,
601
+ re.value = !0, V("onCreate -> turn stored data into original"), O.value.increment(s.value).turnStoredIntoOriginal(), W.value.turnStoredIntoOriginal(), a.notificationType === ne.Toast && ve({
602
+ text: b.defaultCreateSuccessText,
603
+ details: b.defaultCreateSuccessDetails,
604
+ icon: b.defaultCreateSuccessIcon,
604
605
  positionX: se.Right
605
- }), Fe(o, a.redirectOnCreate), V("onCreate -> beforeEmitCreate"), y("create", o);
606
- }, Ue = (e, o) => {
607
- if (V("onUpdate"), !we(o, v.value.resource)) {
606
+ }), Pe(o, a.redirectOnCreate), V("onCreate -> beforeEmitCreate"), y("create", o);
607
+ }, Ve = (e, o) => {
608
+ if (V("onUpdate"), !Me(o, v.value.resource)) {
608
609
  a.notificationType === ne.Toast && ve({
609
- text: m.defaultUpdateErrorText,
610
- details: m.defaultUpdateErrorDetails,
611
- icon: m.defaultUpdateErrorIcon,
610
+ text: b.defaultUpdateErrorText,
611
+ details: b.defaultUpdateErrorDetails,
612
+ icon: b.defaultUpdateErrorIcon,
612
613
  positionX: se.Right
613
614
  });
614
615
  return;
615
616
  }
616
- V("onUpdate -> turn stored data into original"), O.value.turnStoredIntoOriginal(), H.value.turnStoredIntoOriginal(), a.notificationType === ne.Toast && ve({
617
- text: m.defaultUpdateSuccessText,
618
- details: m.defaultUpdateSuccessDetails,
619
- icon: m.defaultUpdateSuccessIcon,
617
+ V("onUpdate -> turn stored data into original"), O.value.turnStoredIntoOriginal(), W.value.turnStoredIntoOriginal(), a.notificationType === ne.Toast && ve({
618
+ text: b.defaultUpdateSuccessText,
619
+ details: b.defaultUpdateSuccessDetails,
620
+ icon: b.defaultUpdateSuccessIcon,
620
621
  positionX: se.Right
621
- }), Fe(o), y("update", o);
622
- }, Ee = (e, o) => {
623
- if (V("onDrop"), !we(o, z.value.resource)) {
622
+ }), Pe(o), y("update", o);
623
+ }, Ie = (e, o) => {
624
+ if (V("onDrop"), !Me(o, z.value.resource)) {
624
625
  a.notificationType === ne.Toast && ve({
625
- text: m.defaultDropErrorText,
626
- details: m.defaultDropErrorDetails,
627
- icon: m.defaultDropErrorIcon,
626
+ text: b.defaultDropErrorText,
627
+ details: b.defaultDropErrorDetails,
628
+ icon: b.defaultDropErrorIcon,
628
629
  positionX: se.Right
629
630
  });
630
631
  return;
631
632
  }
632
633
  if (a.notificationType === ne.Toast && ve({
633
- text: m.defaultDropSuccessText,
634
- details: m.defaultDropSuccessDetails,
635
- icon: m.defaultDropSuccessIcon,
634
+ text: b.defaultDropSuccessText,
635
+ details: b.defaultDropSuccessDetails,
636
+ icon: b.defaultDropSuccessIcon,
636
637
  positionX: se.Right
637
- }), y("drop", o), a.view === We.Modal && (V("onDrop -> close modal"), rt(a.modalConfig.modalName, a.modalConfig.modalKey)), typeof a.redirectOnDrop < "u") {
638
- let j = a.redirectOnDrop;
639
- typeof a.redirectOnDrop == "function" && (j = a.redirectOnDrop()), u.push(j);
638
+ }), y("drop", o), a.view === We.Modal && (V("onDrop -> close modal"), st(a.modalConfig.modalName, a.modalConfig.modalKey)), typeof a.redirectOnDrop < "u") {
639
+ let X = a.redirectOnDrop;
640
+ typeof a.redirectOnDrop == "function" && (X = a.redirectOnDrop()), u.push(X);
640
641
  }
641
642
  };
642
- me({
643
+ ge({
643
644
  doDrop: () => {
644
645
  t.value && t.value.doDrop();
645
646
  },
646
- doRefresh: be,
647
+ doRefresh: Be,
647
648
  doSave: () => {
648
649
  t.value && t.value.doSave();
649
650
  },
@@ -652,243 +653,244 @@ const V = (...N) => {
652
653
  },
653
654
  hasModifiedData: () => O.value.changed()
654
655
  });
655
- const qe = w(() => {
656
- var e, o, j;
657
- return ye.value ? oe.value ? Y.value ? (e = a.modalConfig) == null ? void 0 : e.closeConfirm : "" : ue.value === S.Modifications ? H.value.changed() ? (o = a.modalConfig) == null ? void 0 : o.closeConfirm : "" : O.value.changed() ? (j = a.modalConfig) == null ? void 0 : j.closeConfirm : "" : "";
658
- }), ze = (e) => {
656
+ const ze = k(() => {
657
+ var e, o, X;
658
+ return Ce.value ? oe.value ? Y.value ? (e = a.modalConfig) == null ? void 0 : e.closeConfirm : "" : ue.value === S.Modifications ? W.value.changed() ? (o = a.modalConfig) == null ? void 0 : o.closeConfirm : "" : O.value.changed() ? (X = a.modalConfig) == null ? void 0 : X.closeConfirm : "" : "";
659
+ }), Je = (e) => {
659
660
  var o;
660
661
  if (typeof ((o = a.modalConfig) == null ? void 0 : o.beforeClose) == "function")
661
662
  return a.modalConfig.beforeClose({
662
663
  ...e,
663
664
  itemCreated: re.value
664
665
  });
665
- }, Me = w(() => a.title.startsWith("__:") ? String(st(a.title.substring(3))) : a.title), Je = w(() => c.value ? !1 : Me.value.length > 0 || !!E["post-title"]), Ve = w(() => a.view === We.Modal), Pe = w(() => Ve.value ? "lkt-modal" : "section"), ge = w(() => {
666
+ }, Te = k(() => a.title.startsWith("__:") ? String(pt(a.title.substring(3))) : a.title), Qe = k(() => c.value ? !1 : Te.value.length > 0 || !!M["post-title"]), Ye = k(() => c.value ? !1 : typeof a.header == "object" && Object.keys(a.header).length > 0), ye = k(() => a.view === We.Modal), Xe = k(() => ye.value ? "lkt-modal" : "section"), ke = k(() => {
666
667
  var e, o;
667
668
  return a.mode !== A.Update || !r.value || !a.enabledSaveWithoutChanges && !I.value || oe.value && (!te.value || !Y.value) ? !1 : typeof ((e = v.value) == null ? void 0 : e.disabled) == "function" ? !v.value.disabled({
668
669
  prop: s.value
669
670
  }) : typeof ((o = v.value) == null ? void 0 : o.disabled) == "boolean" ? !v.value.disabled : !0;
670
- }), Be = w(() => {
671
+ }), he = k(() => {
671
672
  var e, o;
672
673
  return a.mode !== A.Create || !a.enabledSaveWithoutChanges && !I.value || oe.value && !te.value && !Y.value ? !1 : typeof ((e = q.value) == null ? void 0 : e.disabled) == "function" ? !q.value.disabled({
673
674
  prop: s.value
674
675
  }) : typeof ((o = q.value) == null ? void 0 : o.disabled) == "boolean" ? !q.value.disabled : !0;
675
- }), Ie = w(() => {
676
+ }), Re = k(() => {
676
677
  var e, o;
677
678
  return _.value ? typeof ((e = z.value) == null ? void 0 : e.disabled) == "function" ? !z.value.disabled({
678
679
  prop: s.value
679
680
  }) : typeof ((o = z.value) == null ? void 0 : o.disabled) == "boolean" ? !z.value.disabled : !0 : !1;
680
- }), Qe = w(() => Pe.value === "lkt-modal" ? {
681
+ }), Ze = k(() => Xe.value === "lkt-modal" ? {
681
682
  title: a.title,
682
683
  item: s.value,
683
684
  ...a.modalConfig,
684
- beforeClose: ze,
685
- closeConfirm: qe.value,
685
+ beforeClose: Je,
686
+ closeConfirm: ze.value,
686
687
  headerActionsButton: a.groupButton !== !1 ? {
687
- dot: Be.value || ge.value
688
+ dot: he.value || ke.value
688
689
  } : !1
689
- } : {}), oe = w(() => typeof a.form == "object" && Object.keys(a.form).length > 0), Te = w(() => Object.keys(i.value).length === 0 ? [] : a.modificationViews), ue = w(() => Object.keys(i.value).length === 0 ? S.Current : S.Modifications), ye = w(() => J.value || r.value || _.value), Ye = w(() => oe.value ? ut(a.form) : []);
690
+ } : {}), oe = k(() => typeof fe.value == "object" && Object.keys(fe.value).length > 0), Ae = k(() => Object.keys(i.value).length === 0 ? [] : a.modificationViews), ue = k(() => Object.keys(i.value).length === 0 ? S.Current : S.Modifications), Ce = k(() => J.value || r.value || _.value), _e = k(() => oe.value ? lt(fe.value) : []), fe = k(() => typeof a.form == "function" ? a.form({
691
+ mode: a.mode,
692
+ view: N.value
693
+ }) : a.form);
690
694
  return (e, o) => {
691
- const j = ke("lkt-http-info"), R = ke("lkt-form"), Ze = ke("lkt-loader");
692
- return n(), g(et(Pe.value), f(Qe.value, { class: "lkt-item-crud" }), fe({
695
+ const X = me("lkt-header"), R = me("lkt-http-info"), xe = me("lkt-form"), et = me("lkt-loader");
696
+ return n(), m(ot(Xe.value), f(Ze.value, { class: "lkt-item-crud" }), ce({
693
697
  default: Q(() => [
694
- tt("article", bt, [
695
- !Ve.value && Je.value ? (n(), h("header", gt, [
696
- d(E)["pre-title"] ? (n(), h("div", Bt, [
697
- T(e.$slots, "pre-title", {
698
- item: s.value,
699
- loading: c.value
700
- })
701
- ])) : B("", !0),
702
- Me.value.length > 0 ? (n(), h("h1", yt, at(Me.value), 1)) : B("", !0),
703
- d(E)["post-title"] ? (n(), h("div", kt, [
704
- T(e.$slots, "post-title", {
705
- item: s.value,
706
- loading: c.value
707
- })
708
- ])) : B("", !0)
698
+ !ye.value && Ye.value ? (n(), m(X, De(f({ key: 0 }, e.header)), null, 16)) : !ye.value && Qe.value ? (n(), w("header", Bt, [
699
+ d(M)["pre-title"] ? (n(), w("div", yt, [
700
+ T(e.$slots, "pre-title", {
701
+ item: s.value,
702
+ loading: c.value
703
+ })
709
704
  ])) : B("", !0),
710
- e.buttonNavPosition === d(Ne).Top && (e.groupButton === !1 || !e.groupButtonAsModalActions) && ye.value ? (n(), g($e, {
711
- key: 1,
712
- ref_key: "buttonNav",
713
- ref: t,
714
- loading: c.value,
715
- "onUpdate:loading": o[3] || (o[3] = (l) => c.value = l),
716
- editing: U.value,
717
- "onUpdate:editing": o[4] || (o[4] = (l) => U.value = l),
718
- "picked-modification-view": X.value,
719
- "onUpdate:pickedModificationView": o[5] || (o[5] = (l) => X.value = l),
720
- item: s.value,
721
- modifications: i.value,
722
- mode: e.mode,
723
- view: e.view,
724
- grouped: e.groupButton !== !1,
725
- "button-nav-visibility": e.buttonNavVisibility,
726
- "create-button": q.value,
727
- "update-button": v.value,
728
- "drop-button": z.value,
729
- "edit-mode-button": $.value,
730
- "group-button": De.value,
731
- "data-changed": I.value,
732
- "http-success-read": P.value,
733
- "can-update": r.value,
734
- "can-drop": _.value,
735
- "can-switch-edit-mode": de.value,
736
- "group-button-as-modal-actions": e.groupButtonAsModalActions,
737
- "able-to-create": Be.value,
738
- "able-to-update": ge.value,
739
- "able-to-drop": Ie.value,
740
- perms: k.value,
741
- "modification-view": Te.value,
742
- "editable-view": ue.value,
743
- "nav-start-buttons": e.navStartButtons,
744
- "nav-start-buttons-editing": e.navStartButtonsEditing,
745
- "nav-end-buttons": e.navEndButtons,
746
- "nav-end-buttons-editing": e.navEndButtonsEditing,
747
- onCreate: Se,
748
- onSave: Ue,
749
- onDrop: Ee
750
- }, fe({ _: 2 }, [
751
- d(E)["prev-buttons-ever"] ? {
752
- name: "prev-buttons-ever",
753
- fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
754
- T(e.$slots, "prev-buttons-ever", {
755
- canUpdate: l,
756
- canDrop: ie,
757
- perms: le
758
- })
759
- ]),
760
- key: "0"
761
- } : void 0,
762
- d(E)["prev-buttons"] ? {
763
- name: "prev-buttons",
764
- fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
765
- T(e.$slots, "prev-buttons", {
766
- canUpdate: l,
767
- canDrop: ie,
768
- perms: le
769
- })
770
- ]),
771
- key: "1"
772
- } : void 0
773
- ]), 1032, ["loading", "editing", "picked-modification-view", "item", "modifications", "mode", "view", "grouped", "button-nav-visibility", "create-button", "update-button", "drop-button", "edit-mode-button", "group-button", "data-changed", "http-success-read", "can-update", "can-drop", "can-switch-edit-mode", "group-button-as-modal-actions", "able-to-create", "able-to-update", "able-to-drop", "perms", "modification-view", "editable-view", "nav-start-buttons", "nav-start-buttons-editing", "nav-end-buttons", "nav-end-buttons-editing"])) : B("", !0),
774
- c.value ? B("", !0) : (n(), h("div", Ct, [
775
- P.value ? (n(), h("div", Dt, [
776
- W.value && e.notificationType === d(ne).Inline ? (n(), g(j, {
777
- key: 0,
778
- code: Z.value,
779
- palette: Z.value === 200 ? "success" : "danger",
780
- quick: "",
781
- "can-close": "",
782
- onClose: o[6] || (o[6] = (l) => W.value = !1)
783
- }, null, 8, ["code", "palette"])) : B("", !0),
784
- oe.value ? (n(), g(R, f({
785
- key: 1,
786
- ref_key: "formRef",
787
- ref: L,
788
- modelValue: s.value,
789
- "onUpdate:modelValue": o[7] || (o[7] = (l) => s.value = l),
790
- modifications: i.value,
791
- "onUpdate:modifications": o[8] || (o[8] = (l) => i.value = l),
792
- valid: te.value,
793
- "onUpdate:valid": o[9] || (o[9] = (l) => te.value = l),
794
- changed: Y.value,
795
- "onUpdate:changed": o[10] || (o[10] = (l) => Y.value = l)
796
- }, {
797
- ...e.formUiConfig,
798
- form: e.form,
799
- differencesTableConfig: e.differencesTableConfig,
800
- visibleView: X.value,
801
- modificationDataState: je.value,
802
- editableViews: [ue.value],
803
- disabled: !U.value
804
- }), fe({ _: 2 }, [
805
- K(Ye.value, (l) => ({
806
- name: l,
807
- fn: Q(({}) => [
808
- T(e.$slots, l)
809
- ])
810
- }))
811
- ]), 1040, ["modelValue", "modifications", "valid", "changed"])) : T(e.$slots, "item", {
812
- key: 2,
813
- item: s.value,
814
- loading: c.value,
815
- editMode: U.value,
816
- isCreate: J.value,
817
- canUpdate: r.value,
818
- canDrop: _.value,
819
- itemBeingEdited: G.value,
820
- perms: k.value
705
+ Te.value.length > 0 ? (n(), w("h1", kt, nt(Te.value), 1)) : B("", !0),
706
+ d(M)["post-title"] ? (n(), w("div", ht, [
707
+ T(e.$slots, "post-title", {
708
+ item: s.value,
709
+ loading: c.value
710
+ })
711
+ ])) : B("", !0)
712
+ ])) : B("", !0),
713
+ e.buttonNavPosition === d(Ne).Top && (e.groupButton === !1 || !e.groupButtonAsModalActions) && Ce.value ? (n(), m(je, {
714
+ key: 2,
715
+ ref_key: "buttonNav",
716
+ ref: t,
717
+ loading: c.value,
718
+ "onUpdate:loading": o[3] || (o[3] = (l) => c.value = l),
719
+ editing: U.value,
720
+ "onUpdate:editing": o[4] || (o[4] = (l) => U.value = l),
721
+ "picked-modification-view": N.value,
722
+ "onUpdate:pickedModificationView": o[5] || (o[5] = (l) => N.value = l),
723
+ item: s.value,
724
+ modifications: i.value,
725
+ mode: e.mode,
726
+ view: e.view,
727
+ grouped: e.groupButton !== !1,
728
+ "button-nav-visibility": e.buttonNavVisibility,
729
+ "create-button": q.value,
730
+ "update-button": v.value,
731
+ "drop-button": z.value,
732
+ "edit-mode-button": j.value,
733
+ "group-button": Se.value,
734
+ "data-changed": I.value,
735
+ "http-success-read": P.value,
736
+ "can-update": r.value,
737
+ "can-drop": _.value,
738
+ "can-switch-edit-mode": de.value,
739
+ "group-button-as-modal-actions": e.groupButtonAsModalActions,
740
+ "able-to-create": he.value,
741
+ "able-to-update": ke.value,
742
+ "able-to-drop": Re.value,
743
+ perms: h.value,
744
+ "modification-view": Ae.value,
745
+ "editable-view": ue.value,
746
+ "nav-start-buttons": e.navStartButtons,
747
+ "nav-start-buttons-editing": e.navStartButtonsEditing,
748
+ "nav-end-buttons": e.navEndButtons,
749
+ "nav-end-buttons-editing": e.navEndButtonsEditing,
750
+ onCreate: Ee,
751
+ onSave: Ve,
752
+ onDrop: Ie
753
+ }, ce({ _: 2 }, [
754
+ d(M)["prev-buttons-ever"] ? {
755
+ name: "prev-buttons-ever",
756
+ fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
757
+ T(e.$slots, "prev-buttons-ever", {
758
+ canUpdate: l,
759
+ canDrop: ie,
760
+ perms: le
821
761
  })
822
- ])) : e.notificationType === d(ne).Inline ? (n(), g(j, {
762
+ ]),
763
+ key: "0"
764
+ } : void 0,
765
+ d(M)["prev-buttons"] ? {
766
+ name: "prev-buttons",
767
+ fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
768
+ T(e.$slots, "prev-buttons", {
769
+ canUpdate: l,
770
+ canDrop: ie,
771
+ perms: le
772
+ })
773
+ ]),
774
+ key: "1"
775
+ } : void 0
776
+ ]), 1032, ["loading", "editing", "picked-modification-view", "item", "modifications", "mode", "view", "grouped", "button-nav-visibility", "create-button", "update-button", "drop-button", "edit-mode-button", "group-button", "data-changed", "http-success-read", "can-update", "can-drop", "can-switch-edit-mode", "group-button-as-modal-actions", "able-to-create", "able-to-update", "able-to-drop", "perms", "modification-view", "editable-view", "nav-start-buttons", "nav-start-buttons-editing", "nav-end-buttons", "nav-end-buttons-editing"])) : B("", !0),
777
+ c.value ? B("", !0) : (n(), w("div", Ct, [
778
+ P.value ? (n(), w("div", Dt, [
779
+ K.value && e.notificationType === d(ne).Inline ? (n(), m(R, {
780
+ key: 0,
781
+ code: Z.value,
782
+ palette: Z.value === 200 ? "success" : "danger",
783
+ quick: "",
784
+ "can-close": "",
785
+ onClose: o[6] || (o[6] = (l) => K.value = !1)
786
+ }, null, 8, ["code", "palette"])) : B("", !0),
787
+ oe.value ? (n(), m(xe, f({
823
788
  key: 1,
824
- code: Z.value
825
- }, null, 8, ["code"])) : B("", !0)
826
- ])),
827
- c.value ? (n(), g(Ze, { key: 3 })) : B("", !0),
828
- e.buttonNavPosition === d(Ne).Bottom && (e.groupButton === !1 || !e.groupButtonAsModalActions) && ye.value ? (n(), g($e, {
829
- key: 4,
830
- ref_key: "buttonNav",
831
- ref: t,
832
- loading: c.value,
833
- "onUpdate:loading": o[11] || (o[11] = (l) => c.value = l),
834
- editing: U.value,
835
- "onUpdate:editing": o[12] || (o[12] = (l) => U.value = l),
836
- "picked-modification-view": X.value,
837
- "onUpdate:pickedModificationView": o[13] || (o[13] = (l) => X.value = l),
838
- item: s.value,
839
- modifications: i.value,
840
- mode: e.mode,
841
- view: e.view,
842
- grouped: e.groupButton !== !1,
843
- "button-nav-visibility": e.buttonNavVisibility,
844
- "create-button": q.value,
845
- "update-button": v.value,
846
- "drop-button": z.value,
847
- "edit-mode-button": $.value,
848
- "group-button": De.value,
849
- "data-changed": I.value,
850
- "http-success-read": P.value,
851
- "can-update": r.value,
852
- "can-drop": _.value,
853
- "can-switch-edit-mode": de.value,
854
- "group-button-as-modal-actions": e.groupButtonAsModalActions,
855
- "able-to-create": Be.value,
856
- "able-to-update": ge.value,
857
- "able-to-drop": Ie.value,
858
- perms: k.value,
859
- "modification-view": Te.value,
860
- "editable-view": ue.value,
861
- "nav-start-buttons": e.navStartButtons,
862
- "nav-start-buttons-editing": e.navStartButtonsEditing,
863
- "nav-end-buttons": e.navEndButtons,
864
- "nav-end-buttons-editing": e.navEndButtonsEditing,
865
- onCreate: Se,
866
- onSave: Ue,
867
- onDrop: Ee
868
- }, fe({ _: 2 }, [
869
- d(E)["prev-buttons-ever"] ? {
870
- name: "prev-buttons-ever",
871
- fn: Q(() => [
872
- T(e.$slots, "prev-buttons-ever")
873
- ]),
874
- key: "0"
875
- } : void 0,
876
- d(E)["prev-buttons"] ? {
877
- name: "prev-buttons-ever",
878
- fn: Q(() => [
879
- T(e.$slots, "prev-buttons")
880
- ]),
881
- key: "1"
882
- } : void 0
883
- ]), 1032, ["loading", "editing", "picked-modification-view", "item", "modifications", "mode", "view", "grouped", "button-nav-visibility", "create-button", "update-button", "drop-button", "edit-mode-button", "group-button", "data-changed", "http-success-read", "can-update", "can-drop", "can-switch-edit-mode", "group-button-as-modal-actions", "able-to-create", "able-to-update", "able-to-drop", "perms", "modification-view", "editable-view", "nav-start-buttons", "nav-start-buttons-editing", "nav-end-buttons", "nav-end-buttons-editing"])) : B("", !0)
884
- ])
789
+ ref_key: "formRef",
790
+ ref: L,
791
+ modelValue: s.value,
792
+ "onUpdate:modelValue": o[7] || (o[7] = (l) => s.value = l),
793
+ modifications: i.value,
794
+ "onUpdate:modifications": o[8] || (o[8] = (l) => i.value = l),
795
+ valid: te.value,
796
+ "onUpdate:valid": o[9] || (o[9] = (l) => te.value = l),
797
+ changed: Y.value,
798
+ "onUpdate:changed": o[10] || (o[10] = (l) => Y.value = l)
799
+ }, {
800
+ ...e.formUiConfig,
801
+ form: fe.value,
802
+ differencesTableConfig: e.differencesTableConfig,
803
+ visibleView: N.value,
804
+ modificationDataState: Fe.value,
805
+ editableViews: [ue.value],
806
+ disabled: !U.value
807
+ }), ce({ _: 2 }, [
808
+ H(_e.value, (l) => ({
809
+ name: l,
810
+ fn: Q(({}) => [
811
+ T(e.$slots, l)
812
+ ])
813
+ }))
814
+ ]), 1040, ["modelValue", "modifications", "valid", "changed"])) : T(e.$slots, "item", {
815
+ key: 2,
816
+ item: s.value,
817
+ loading: c.value,
818
+ editMode: U.value,
819
+ isCreate: J.value,
820
+ canUpdate: r.value,
821
+ canDrop: _.value,
822
+ itemBeingEdited: G.value,
823
+ perms: h.value
824
+ })
825
+ ])) : e.notificationType === d(ne).Inline ? (n(), m(R, {
826
+ key: 1,
827
+ code: Z.value
828
+ }, null, 8, ["code"])) : B("", !0)
829
+ ])),
830
+ c.value ? (n(), m(et, { key: 4 })) : B("", !0),
831
+ e.buttonNavPosition === d(Ne).Bottom && (e.groupButton === !1 || !e.groupButtonAsModalActions) && Ce.value ? (n(), m(je, {
832
+ key: 5,
833
+ ref_key: "buttonNav",
834
+ ref: t,
835
+ loading: c.value,
836
+ "onUpdate:loading": o[11] || (o[11] = (l) => c.value = l),
837
+ editing: U.value,
838
+ "onUpdate:editing": o[12] || (o[12] = (l) => U.value = l),
839
+ "picked-modification-view": N.value,
840
+ "onUpdate:pickedModificationView": o[13] || (o[13] = (l) => N.value = l),
841
+ item: s.value,
842
+ modifications: i.value,
843
+ mode: e.mode,
844
+ view: e.view,
845
+ grouped: e.groupButton !== !1,
846
+ "button-nav-visibility": e.buttonNavVisibility,
847
+ "create-button": q.value,
848
+ "update-button": v.value,
849
+ "drop-button": z.value,
850
+ "edit-mode-button": j.value,
851
+ "group-button": Se.value,
852
+ "data-changed": I.value,
853
+ "http-success-read": P.value,
854
+ "can-update": r.value,
855
+ "can-drop": _.value,
856
+ "can-switch-edit-mode": de.value,
857
+ "group-button-as-modal-actions": e.groupButtonAsModalActions,
858
+ "able-to-create": he.value,
859
+ "able-to-update": ke.value,
860
+ "able-to-drop": Re.value,
861
+ perms: h.value,
862
+ "modification-view": Ae.value,
863
+ "editable-view": ue.value,
864
+ "nav-start-buttons": e.navStartButtons,
865
+ "nav-start-buttons-editing": e.navStartButtonsEditing,
866
+ "nav-end-buttons": e.navEndButtons,
867
+ "nav-end-buttons-editing": e.navEndButtonsEditing,
868
+ onCreate: Ee,
869
+ onSave: Ve,
870
+ onDrop: Ie
871
+ }, ce({ _: 2 }, [
872
+ d(M)["prev-buttons-ever"] ? {
873
+ name: "prev-buttons-ever",
874
+ fn: Q(() => [
875
+ T(e.$slots, "prev-buttons-ever")
876
+ ]),
877
+ key: "0"
878
+ } : void 0,
879
+ d(M)["prev-buttons"] ? {
880
+ name: "prev-buttons-ever",
881
+ fn: Q(() => [
882
+ T(e.$slots, "prev-buttons")
883
+ ]),
884
+ key: "1"
885
+ } : void 0
886
+ ]), 1032, ["loading", "editing", "picked-modification-view", "item", "modifications", "mode", "view", "grouped", "button-nav-visibility", "create-button", "update-button", "drop-button", "edit-mode-button", "group-button", "data-changed", "http-success-read", "can-update", "can-drop", "can-switch-edit-mode", "group-button-as-modal-actions", "able-to-create", "able-to-update", "able-to-drop", "perms", "modification-view", "editable-view", "nav-start-buttons", "nav-start-buttons-editing", "nav-end-buttons", "nav-end-buttons-editing"])) : B("", !0)
885
887
  ]),
886
888
  _: 2
887
889
  }, [
888
- e.groupButton !== !1 && e.groupButtonAsModalActions && ye.value ? {
890
+ e.groupButton !== !1 && e.groupButtonAsModalActions && Ce.value ? {
889
891
  name: "header-actions",
890
892
  fn: Q(() => [
891
- e.buttonNavPosition === d(Ne).Top ? (n(), g($e, {
893
+ e.buttonNavPosition === d(Ne).Top ? (n(), m(je, {
892
894
  key: 0,
893
895
  ref_key: "buttonNav",
894
896
  ref: t,
@@ -896,8 +898,8 @@ const V = (...N) => {
896
898
  "onUpdate:loading": o[0] || (o[0] = (l) => c.value = l),
897
899
  editing: U.value,
898
900
  "onUpdate:editing": o[1] || (o[1] = (l) => U.value = l),
899
- "picked-modification-view": X.value,
900
- "onUpdate:pickedModificationView": o[2] || (o[2] = (l) => X.value = l),
901
+ "picked-modification-view": N.value,
902
+ "onUpdate:pickedModificationView": o[2] || (o[2] = (l) => N.value = l),
901
903
  item: s.value,
902
904
  modifications: i.value,
903
905
  mode: e.mode,
@@ -907,29 +909,29 @@ const V = (...N) => {
907
909
  "create-button": q.value,
908
910
  "update-button": v.value,
909
911
  "drop-button": z.value,
910
- "edit-mode-button": $.value,
911
- "group-button": De.value,
912
+ "edit-mode-button": j.value,
913
+ "group-button": Se.value,
912
914
  "data-changed": I.value,
913
915
  "http-success-read": P.value,
914
916
  "can-update": r.value,
915
917
  "can-drop": _.value,
916
918
  "can-switch-edit-mode": de.value,
917
919
  "group-button-as-modal-actions": e.groupButtonAsModalActions,
918
- "able-to-create": Be.value,
919
- "able-to-update": ge.value,
920
- "able-to-drop": Ie.value,
921
- perms: k.value,
922
- "modification-view": Te.value,
920
+ "able-to-create": he.value,
921
+ "able-to-update": ke.value,
922
+ "able-to-drop": Re.value,
923
+ perms: h.value,
924
+ "modification-view": Ae.value,
923
925
  "editable-view": ue.value,
924
926
  "nav-start-buttons": e.navStartButtons,
925
927
  "nav-start-buttons-editing": e.navStartButtonsEditing,
926
928
  "nav-end-buttons": e.navEndButtons,
927
929
  "nav-end-buttons-editing": e.navEndButtonsEditing,
928
- onCreate: Se,
929
- onSave: Ue,
930
- onDrop: Ee
931
- }, fe({ _: 2 }, [
932
- d(E)["prev-buttons-ever"] ? {
930
+ onCreate: Ee,
931
+ onSave: Ve,
932
+ onDrop: Ie
933
+ }, ce({ _: 2 }, [
934
+ d(M)["prev-buttons-ever"] ? {
933
935
  name: "prev-buttons-ever",
934
936
  fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
935
937
  T(e.$slots, "prev-buttons-ever", {
@@ -940,7 +942,7 @@ const V = (...N) => {
940
942
  ]),
941
943
  key: "0"
942
944
  } : void 0,
943
- d(E)["prev-buttons"] ? {
945
+ d(M)["prev-buttons"] ? {
944
946
  name: "prev-buttons",
945
947
  fn: Q(({ canUpdate: l, canDrop: ie, perms: le }) => [
946
948
  T(e.$slots, "prev-buttons", {
@@ -958,18 +960,18 @@ const V = (...N) => {
958
960
  ]), 1040);
959
961
  };
960
962
  }
961
- }), Lt = {
962
- install: (N, me = {}) => {
963
- N.component("lkt-item-crud") === void 0 && N.component("lkt-item-crud", ht);
963
+ }), $t = {
964
+ install: ($, ge = {}) => {
965
+ $.component("lkt-item-crud") === void 0 && $.component("lkt-item-crud", wt);
964
966
  }
965
- }, Nt = (N) => {
966
- pe.defaultSaveIcon = N;
967
- }, $t = (N) => {
968
- pe.defaultDropIcon = N;
967
+ }, Nt = ($) => {
968
+ pe.defaultSaveIcon = $;
969
+ }, jt = ($) => {
970
+ pe.defaultDropIcon = $;
969
971
  };
970
972
  export {
971
- Ot as debugLktItemCrud,
972
- Lt as default,
973
- $t as setItemCrudDefaultDropIcon,
973
+ Lt as debugLktItemCrud,
974
+ $t as default,
975
+ jt as setItemCrudDefaultDropIcon,
974
976
  Nt as setItemCrudDefaultSaveIcon
975
977
  };