lkt-item-crud 2.0.11 → 2.0.13

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,31 +1,31 @@
1
- import { defineComponent as ye, ref as v, watch as h, useSlots as ke, computed as k, resolveComponent as se, createElementBlock as $, createCommentVNode as n, openBlock as i, createBlock as B, mergeProps as O, withCtx as R, renderSlot as g, withDirectives as Y, unref as d, vShow as Z, Fragment as De, mergeDefaults as Ue, nextTick as Se, onMounted as Ie, resolveDynamicComponent as we, normalizeProps as Me, guardReactiveProps as Re, createElementVNode as Te, toDisplayString as Ee, createSlots as ce } from "vue";
2
- import { httpCall as $e } from "lkt-http-client";
1
+ import { defineComponent as Be, ref as p, watch as h, useSlots as ke, computed as k, resolveComponent as se, createElementBlock as E, createCommentVNode as i, openBlock as b, createBlock as j, mergeProps as L, withCtx as M, renderSlot as y, withDirectives as O, unref as n, createVNode as H, vShow as V, Fragment as Ue, mergeDefaults as Se, nextTick as Ie, onMounted as we, resolveDynamicComponent as Me, normalizeProps as Re, guardReactiveProps as Te, createElementVNode as Ee, toDisplayString as $e, createSlots as ce } from "vue";
2
+ import { httpCall as Ne } from "lkt-http-client";
3
3
  import { DataState as fe } from "lkt-data-state";
4
- import { ensureButtonConfig as j, LktSettings as r, ItemCrudMode as w, ItemCrudButtonNavVisibility as le, TablePermission as ie, ItemCrudView as me, ItemCrudButtonNavPosition as be, NotificationType as P, getDefaultValues as Ne, ItemCrud as Le, ToastPositionX as H } from "lkt-vue-kernel";
5
- import { closeModal as Ve } from "lkt-modal";
6
- import { __ as Oe } from "lkt-i18n";
7
- import { openToast as K } from "lkt-toast";
8
- const _ = class _ {
4
+ import { ensureButtonConfig as A, LktSettings as r, ItemCrudMode as I, ItemCrudButtonNavVisibility as me, TablePermission as ie, ItemCrudView as be, ItemCrudButtonNavPosition as ge, NotificationType as X, getDefaultValues as Le, ItemCrud as Oe, ToastPositionX as W } from "lkt-vue-kernel";
5
+ import { closeModal as Ve, updateModalKey as Ae } from "lkt-modal";
6
+ import { __ as je } from "lkt-i18n";
7
+ import { openToast as J } from "lkt-toast";
8
+ const x = class x {
9
9
  };
10
- _.debugEnabled = !1, _.defaultSaveIcon = "", _.defaultDropIcon = "";
11
- let W = _;
12
- const y = (...C) => {
13
- W.debugEnabled && console.info("[LktItemCrud] ", ...C);
14
- }, at = (C = !0) => {
15
- W.debugEnabled = C;
16
- }, je = {
10
+ x.debugEnabled = !1, x.defaultSaveIcon = "", x.defaultDropIcon = "";
11
+ let Q = x;
12
+ const m = (...D) => {
13
+ Q.debugEnabled && console.info("[LktItemCrud] ", ...D);
14
+ }, ut = (D = !0) => {
15
+ Q.debugEnabled = D;
16
+ }, Pe = {
17
17
  key: 0,
18
18
  class: "lkt-item-crud-buttons"
19
- }, Ae = {
19
+ }, Xe = {
20
20
  key: 0,
21
21
  class: "lkt-item-crud-buttons"
22
- }, Pe = {
22
+ }, Ke = {
23
23
  key: 1,
24
24
  class: "lkt-item-crud-buttons"
25
- }, Xe = {
26
- key: 5,
25
+ }, Fe = {
26
+ key: 2,
27
27
  class: "lkt-item-crud-buttons"
28
- }, ge = /* @__PURE__ */ ye({
28
+ }, ye = /* @__PURE__ */ Be({
29
29
  __name: "ButtonNav",
30
30
  props: {
31
31
  item: { default: () => ({}) },
@@ -53,266 +53,270 @@ const y = (...C) => {
53
53
  "save",
54
54
  "drop"
55
55
  ],
56
- setup(C, { expose: x, emit: oe }) {
57
- const o = oe, a = C, b = v(j(a.createButton, r.defaultCreateButton)), s = v(j(a.updateButton, r.defaultUpdateButton)), l = v(j(a.dropButton, r.defaultDropButton)), D = v(j(a.editModeButton, r.defaultEditModeButton)), T = v(j(a.groupButton, r.defaultGroupButton));
56
+ setup(D, { expose: ee, emit: ue }) {
57
+ const o = ue, a = D, g = p(A(a.createButton, r.defaultCreateButton)), s = p(A(a.updateButton, r.defaultUpdateButton)), d = p(A(a.dropButton, r.defaultDropButton)), B = p(A(a.editModeButton, r.defaultEditModeButton)), R = p(A(a.groupButton, r.defaultGroupButton));
58
58
  h(() => a.createButton, (e) => {
59
- b.value = j(e, r.defaultCreateButton);
59
+ g.value = A(e, r.defaultCreateButton);
60
60
  }, { deep: !0 }), h(() => a.updateButton, (e) => {
61
- s.value = j(e, r.defaultUpdateButton);
61
+ s.value = A(e, r.defaultUpdateButton);
62
62
  }, { deep: !0 }), h(() => a.dropButton, (e) => {
63
- l.value = j(e, r.defaultDropButton);
63
+ d.value = A(e, r.defaultDropButton);
64
64
  }, { deep: !0 }), h(() => a.editModeButton, (e) => {
65
- D.value = j(e, r.defaultEditModeButton);
65
+ B.value = A(e, r.defaultEditModeButton);
66
66
  }, { deep: !0 });
67
- const c = ke(), I = v(null), U = v(null), p = v(a.loading);
68
- h(() => a.loading, (e) => p.value = e), h(p, (e) => o("update:loading", e));
69
- const f = v(a.editing);
70
- h(() => a.editing, (e) => f.value = e), h(f, (e) => o("update:editing", e));
71
- const N = () => {
72
- p.value = !0;
73
- }, S = () => {
74
- p.value = !1;
75
- }, G = (e, m) => {
76
- typeof e > "u" || o("create", e, m);
77
- }, J = (e, m) => {
78
- typeof e > "u" || o("save", e, m);
79
- }, L = (e, m) => {
80
- typeof e > "u" || o("drop", e, m);
67
+ const v = ke(), S = p(null), U = p(null), l = p(a.loading);
68
+ h(() => a.loading, (e) => l.value = e), h(l, (e) => o("update:loading", e));
69
+ const c = p(a.editing);
70
+ h(() => a.editing, (e) => c.value = e), h(c, (e) => o("update:editing", e));
71
+ const $ = () => {
72
+ l.value = !0;
73
+ }, C = () => {
74
+ l.value = !1;
75
+ }, F = (e, f) => {
76
+ typeof e > "u" || o("create", e, f);
77
+ }, Y = (e, f) => {
78
+ typeof e > "u" || o("save", e, f);
79
+ }, N = (e, f) => {
80
+ typeof e > "u" || o("drop", e, f);
81
81
  };
82
- x({
82
+ ee({
83
83
  doSave: () => {
84
- I.value && typeof I.value.click == "function" && I.value.click();
84
+ S.value && typeof S.value.click == "function" && S.value.click();
85
85
  },
86
86
  doDrop: () => {
87
87
  U.value && typeof U.value.click == "function" && U.value.click();
88
88
  }
89
89
  });
90
- const X = k(() => {
91
- var e, m;
92
- return a.mode !== w.Update || !a.canUpdate || !a.dataChanged ? !1 : typeof ((e = s.value) == null ? void 0 : e.disabled) == "function" ? !s.value.disabled(a.item) : typeof ((m = s.value) == null ? void 0 : m.disabled) == "boolean" ? !s.value.disabled : !0;
93
- }), V = k(() => {
94
- var e, m;
95
- return a.mode !== w.Create || !a.dataChanged ? !1 : typeof ((e = b.value) == null ? void 0 : e.disabled) == "function" ? !b.value.disabled(a.item) : typeof ((m = b.value) == null ? void 0 : m.disabled) == "boolean" ? !b.value.disabled : !0;
96
- }), F = k(() => {
97
- var e, m;
98
- return a.canDrop ? typeof ((e = l.value) == null ? void 0 : e.disabled) == "function" ? !l.value.disabled(a.item) : typeof ((m = l.value) == null ? void 0 : m.disabled) == "boolean" ? !l.value.disabled : !0 : !1;
99
- }), q = k(() => !a.canDrop || a.dropButton === !1 ? !1 : !a.canUpdate && a.canDrop ? !0 : !p.value && a.editing && a.httpSuccessRead), A = k(() => a.mode === w.Create && a.createButton === !1 || a.mode === w.Update && a.updateButton === !1 ? !1 : a.dataChanged ? X.value || V.value : p.value ? !1 : a.mode === w.Create ? !0 : a.buttonNavVisibility === le.Never ? !1 : a.editing && a.httpSuccessRead), z = k(() => a.editModeButton === !1 || !a.canSwitchEditMode || !a.canUpdate && !a.canDrop || !a.canUpdate && a.canDrop ? !1 : !p.value && a.mode !== w.Create && a.httpSuccessRead), ae = k(() => a.buttonNavVisibility === le.Always && (X.value || V.value || F.value) || c["prev-buttons-ever"] ? !0 : a.buttonNavVisibility === le.Never ? !1 : A.value || q.value || z.value);
100
- return (e, m) => {
101
- const E = se("lkt-button");
102
- return ae.value ? (i(), $("div", je, [
103
- e.groupButton !== !1 ? (i(), B(E, O({
90
+ const Z = k(() => {
91
+ var e, f;
92
+ return a.mode !== I.Update || !a.canUpdate || !a.dataChanged ? !1 : typeof ((e = s.value) == null ? void 0 : e.disabled) == "function" ? !s.value.disabled(a.item) : typeof ((f = s.value) == null ? void 0 : f.disabled) == "boolean" ? !s.value.disabled : !0;
93
+ }), K = k(() => {
94
+ var e, f;
95
+ return a.mode !== I.Create || !a.dataChanged ? !1 : typeof ((e = g.value) == null ? void 0 : e.disabled) == "function" ? !g.value.disabled(a.item) : typeof ((f = g.value) == null ? void 0 : f.disabled) == "boolean" ? !g.value.disabled : !0;
96
+ }), G = k(() => {
97
+ var e, f;
98
+ return a.canDrop ? typeof ((e = d.value) == null ? void 0 : e.disabled) == "function" ? !d.value.disabled(a.item) : typeof ((f = d.value) == null ? void 0 : f.disabled) == "boolean" ? !d.value.disabled : !0 : !1;
99
+ }), q = k(() => !a.canDrop || a.dropButton === !1 ? !1 : !a.canUpdate && a.canDrop ? !0 : !l.value && a.editing && a.httpSuccessRead), P = k(() => a.mode === I.Create && a.createButton === !1 || a.mode === I.Update && a.updateButton === !1 || l.value ? !1 : a.editing && a.httpSuccessRead), z = k(() => a.editModeButton === !1 || !a.canSwitchEditMode || !a.canUpdate && !a.canDrop || !a.canUpdate && a.canDrop ? !1 : !l.value && a.mode !== I.Create && a.httpSuccessRead), oe = k(() => a.buttonNavVisibility === me.Always || v["prev-buttons-ever"] ? !0 : a.buttonNavVisibility === me.Never ? !1 : P.value || q.value || z.value);
100
+ return (e, f) => {
101
+ const T = se("lkt-button");
102
+ return oe.value ? (b(), E("div", Pe, [
103
+ e.groupButton !== !1 ? (b(), j(T, L({
104
104
  key: 0,
105
105
  ref: "groupButton"
106
- }, T.value, { class: "lkt-item-crud-group-button" }), {
107
- split: R(() => [
108
- z.value ? (i(), B(E, O({ key: 0 }, D.value, {
109
- checked: f.value,
110
- "onUpdate:checked": m[0] || (m[0] = (Q) => f.value = Q),
106
+ }, R.value, { class: "lkt-item-crud-group-button" }), {
107
+ split: M(() => [
108
+ z.value ? (b(), j(T, L({ key: 0 }, B.value, {
109
+ checked: c.value,
110
+ "onUpdate:checked": f[0] || (f[0] = (_) => c.value = _),
111
111
  class: "lkt-item-crud--switch-mode-button"
112
- }), null, 16, ["checked"])) : n("", !0),
113
- d(c)["prev-buttons-ever"] ? g(e.$slots, "prev-buttons-ever", {
112
+ }), null, 16, ["checked"])) : i("", !0),
113
+ n(v)["prev-buttons-ever"] ? y(e.$slots, "prev-buttons-ever", {
114
114
  key: 1,
115
115
  canUpdate: e.canUpdate,
116
116
  canDrop: e.canDrop,
117
117
  perms: e.perms
118
- }) : n("", !0),
119
- d(c)["prev-buttons"] ? g(e.$slots, "prev-buttons", {
118
+ }) : i("", !0),
119
+ n(v)["prev-buttons"] ? y(e.$slots, "prev-buttons", {
120
120
  key: 2,
121
121
  canUpdate: e.canUpdate,
122
122
  canDrop: e.canDrop,
123
123
  perms: e.perms
124
- }) : n("", !0),
125
- e.mode === d(w).Update && A.value ? (i(), B(E, O({
126
- key: 3,
124
+ }) : i("", !0),
125
+ O(H(T, L({
127
126
  ref_key: "saveButtonRef",
128
- ref: I
127
+ ref: S
129
128
  }, s.value, {
130
- disabled: !X.value,
131
- onLoading: N,
132
- onLoaded: S,
133
- onClick: J
129
+ disabled: !Z.value,
130
+ onLoading: $,
131
+ onLoaded: C,
132
+ onClick: Y
134
133
  }), {
135
- default: R(() => [
136
- d(c)["button-save"] ? g(e.$slots, "button-save", {
134
+ default: M(() => [
135
+ n(v)["button-save"] ? y(e.$slots, "button-save", {
137
136
  key: 0,
138
137
  item: e.item,
139
- editMode: f.value,
138
+ editMode: c.value,
140
139
  isCreate: !1,
141
140
  canUpdate: e.canUpdate,
142
141
  canDrop: e.canDrop
143
- }) : n("", !0)
142
+ }) : i("", !0)
144
143
  ]),
145
144
  _: 3
146
- }, 16, ["disabled"])) : e.mode === d(w).Create && A.value ? (i(), B(E, O({
147
- key: 4,
145
+ }, 16, ["disabled"]), [
146
+ [V, e.mode === n(I).Update && P.value]
147
+ ]),
148
+ O(H(T, L({
148
149
  ref_key: "saveButtonRef",
149
- ref: I
150
- }, b.value, {
151
- disabled: !V.value,
152
- onLoading: N,
153
- onLoaded: S,
154
- onClick: G
150
+ ref: S
151
+ }, g.value, {
152
+ disabled: !K.value,
153
+ onLoading: $,
154
+ onLoaded: C,
155
+ onClick: F
155
156
  }), {
156
- default: R(() => [
157
- d(c)["button-save"] ? g(e.$slots, "button-save", {
157
+ default: M(() => [
158
+ n(v)["button-save"] ? y(e.$slots, "button-save", {
158
159
  key: 0,
159
160
  item: e.item,
160
- editMode: f.value,
161
+ editMode: c.value,
161
162
  isCreate: !0,
162
163
  canUpdate: e.canUpdate,
163
164
  canDrop: e.canDrop
164
- }) : n("", !0)
165
+ }) : i("", !0)
165
166
  ]),
166
167
  _: 3
167
- }, 16, ["disabled"])) : n("", !0),
168
- e.mode !== d(w).Create ? Y((i(), B(E, O({
169
- key: 5,
168
+ }, 16, ["disabled"]), [
169
+ [V, e.mode === n(I).Create && P.value]
170
+ ]),
171
+ O(H(T, L({
170
172
  ref_key: "dropButtonRef",
171
173
  ref: U
172
- }, l.value, {
173
- disabled: !F.value,
174
- onLoading: N,
175
- onLoaded: S,
176
- onClick: L
174
+ }, d.value, {
175
+ disabled: !G.value,
176
+ onLoading: $,
177
+ onLoaded: C,
178
+ onClick: N
177
179
  }), {
178
- default: R(() => [
179
- d(c)["button-drop"] ? g(e.$slots, "button-drop", {
180
+ default: M(() => [
181
+ n(v)["button-drop"] ? y(e.$slots, "button-drop", {
180
182
  key: 0,
181
183
  item: e.item,
182
- editMode: f.value,
184
+ editMode: c.value,
183
185
  isCreate: !1,
184
186
  canUpdate: e.canUpdate,
185
187
  canDrop: e.canDrop
186
- }) : n("", !0)
188
+ }) : i("", !0)
187
189
  ]),
188
190
  _: 3
189
- }, 16, ["disabled"])), [
190
- [Z, q.value]
191
- ]) : n("", !0),
192
- d(c).buttons ? g(e.$slots, "buttons", { key: 6 }) : n("", !0)
191
+ }, 16, ["disabled"]), [
192
+ [V, q.value && e.mode !== n(I).Create]
193
+ ]),
194
+ n(v).buttons ? y(e.$slots, "buttons", { key: 3 }) : i("", !0)
193
195
  ]),
194
196
  _: 3
195
- }, 16)) : (i(), $(De, { key: 1 }, [
196
- d(c)["prev-buttons-ever"] ? Y((i(), $("div", Ae, [
197
- g(e.$slots, "prev-buttons-ever", {
197
+ }, 16)) : (b(), E(Ue, { key: 1 }, [
198
+ n(v)["prev-buttons-ever"] ? O((b(), E("div", Xe, [
199
+ y(e.$slots, "prev-buttons-ever", {
198
200
  canUpdate: e.canUpdate,
199
201
  canDrop: e.canDrop,
200
202
  perms: e.perms
201
203
  })
202
204
  ], 512)), [
203
- [Z, !p.value]
204
- ]) : n("", !0),
205
- d(c)["prev-buttons"] ? Y((i(), $("div", Pe, [
206
- g(e.$slots, "prev-buttons", {
205
+ [V, !l.value]
206
+ ]) : i("", !0),
207
+ n(v)["prev-buttons"] ? O((b(), E("div", Ke, [
208
+ y(e.$slots, "prev-buttons", {
207
209
  canUpdate: e.canUpdate,
208
210
  canDrop: e.canDrop,
209
211
  perms: e.perms
210
212
  })
211
213
  ], 512)), [
212
- [Z, f.value && !p.value]
213
- ]) : n("", !0),
214
- e.mode === d(w).Update && A.value ? (i(), B(E, O({
215
- key: 2,
214
+ [V, c.value && !l.value]
215
+ ]) : i("", !0),
216
+ O(H(T, L({
216
217
  ref_key: "saveButtonRef",
217
- ref: I
218
+ ref: S
218
219
  }, s.value, {
219
- disabled: !X.value,
220
- onLoading: N,
221
- onLoaded: S,
222
- onClick: J
220
+ disabled: !Z.value,
221
+ onLoading: $,
222
+ onLoaded: C,
223
+ onClick: Y
223
224
  }), {
224
- default: R(() => [
225
- d(c)["button-save"] ? g(e.$slots, "button-save", {
225
+ default: M(() => [
226
+ n(v)["button-save"] ? y(e.$slots, "button-save", {
226
227
  key: 0,
227
228
  item: e.item,
228
- editMode: f.value,
229
+ editMode: c.value,
229
230
  isCreate: !1,
230
231
  canUpdate: e.canUpdate,
231
232
  canDrop: e.canDrop
232
- }) : n("", !0)
233
+ }) : i("", !0)
233
234
  ]),
234
235
  _: 3
235
- }, 16, ["disabled"])) : e.mode === d(w).Create && A.value ? (i(), B(E, O({
236
- key: 3,
236
+ }, 16, ["disabled"]), [
237
+ [V, e.mode === n(I).Update && P.value]
238
+ ]),
239
+ O(H(T, L({
237
240
  ref_key: "saveButtonRef",
238
- ref: I
239
- }, b.value, {
240
- disabled: !V.value,
241
- onLoading: N,
242
- onLoaded: S,
243
- onClick: G
241
+ ref: S
242
+ }, g.value, {
243
+ disabled: !K.value,
244
+ onLoading: $,
245
+ onLoaded: C,
246
+ onClick: F
244
247
  }), {
245
- default: R(() => [
246
- d(c)["button-save"] ? g(e.$slots, "button-save", {
248
+ default: M(() => [
249
+ n(v)["button-save"] ? y(e.$slots, "button-save", {
247
250
  key: 0,
248
251
  item: e.item,
249
- editMode: f.value,
252
+ editMode: c.value,
250
253
  isCreate: !0,
251
254
  canUpdate: e.canUpdate,
252
- canDrop: e.canDrop
253
- }) : n("", !0)
255
+ canDrop: !1
256
+ }) : i("", !0)
254
257
  ]),
255
258
  _: 3
256
- }, 16, ["disabled"])) : n("", !0),
257
- e.mode !== d(w).Create ? Y((i(), B(E, O({
258
- key: 4,
259
+ }, 16, ["disabled"]), [
260
+ [V, e.mode === n(I).Create && P.value]
261
+ ]),
262
+ O(H(T, L({
259
263
  ref_key: "dropButtonRef",
260
264
  ref: U
261
- }, l.value, {
262
- disabled: !F.value,
263
- onLoading: N,
264
- onLoaded: S,
265
- onClick: L
265
+ }, d.value, {
266
+ disabled: !G.value,
267
+ onLoading: $,
268
+ onLoaded: C,
269
+ onClick: N
266
270
  }), {
267
- default: R(() => [
268
- d(c)["button-drop"] ? g(e.$slots, "button-drop", {
271
+ default: M(() => [
272
+ n(v)["button-drop"] ? y(e.$slots, "button-drop", {
269
273
  key: 0,
270
274
  item: e.item,
271
- editMode: f.value,
275
+ editMode: c.value,
272
276
  isCreate: !1,
273
277
  canUpdate: e.canUpdate,
274
278
  canDrop: e.canDrop
275
- }) : n("", !0)
279
+ }) : i("", !0)
276
280
  ]),
277
281
  _: 3
278
- }, 16, ["disabled"])), [
279
- [Z, q.value]
280
- ]) : n("", !0),
281
- d(c).buttons ? Y((i(), $("div", Xe, [
282
- g(e.$slots, "buttons")
282
+ }, 16, ["disabled"]), [
283
+ [V, q.value && e.mode !== n(I).Create]
284
+ ]),
285
+ n(v).buttons ? O((b(), E("div", Fe, [
286
+ y(e.$slots, "buttons")
283
287
  ], 512)), [
284
- [Z, f.value && !p.value]
285
- ]) : n("", !0),
286
- z.value ? (i(), B(E, O({ key: 6 }, D.value, {
287
- checked: f.value,
288
- "onUpdate:checked": m[1] || (m[1] = (Q) => f.value = Q),
288
+ [V, c.value && !l.value]
289
+ ]) : i("", !0),
290
+ z.value ? (b(), j(T, L({ key: 3 }, B.value, {
291
+ checked: c.value,
292
+ "onUpdate:checked": f[1] || (f[1] = (_) => c.value = _),
289
293
  class: "lkt-item-crud--switch-mode-button"
290
- }), null, 16, ["checked"])) : n("", !0)
294
+ }), null, 16, ["checked"])) : i("", !0)
291
295
  ], 64))
292
- ])) : n("", !0);
296
+ ])) : i("", !0);
293
297
  };
294
298
  }
295
- }), Fe = { class: "lkt-item-crud" }, Ge = {
299
+ }), Ge = { class: "lkt-item-crud" }, qe = {
296
300
  key: 0,
297
301
  class: "lkt-item-crud_header"
298
- }, qe = {
302
+ }, ze = {
299
303
  key: 0,
300
304
  class: "lkt-item-crud_header-slot"
301
- }, ze = {
305
+ }, He = {
302
306
  key: 1,
303
307
  class: "lkt-item-crud_header-title"
304
- }, He = {
308
+ }, We = {
305
309
  key: 2,
306
310
  class: "lkt-item-crud_header-slot"
307
- }, Ke = {
311
+ }, Je = {
308
312
  key: 2,
309
313
  class: "lkt-item-crud_content"
310
- }, We = {
314
+ }, Qe = {
311
315
  key: 0,
312
316
  class: "lkt-grid-1"
313
- }, Je = /* @__PURE__ */ ye({
317
+ }, Ye = /* @__PURE__ */ Be({
314
318
  __name: "LktItemCrud",
315
- props: /* @__PURE__ */ Ue({
319
+ props: /* @__PURE__ */ Se({
316
320
  modelValue: {},
317
321
  editing: { type: Boolean },
318
322
  perms: {},
@@ -333,7 +337,7 @@ const y = (...C) => {
333
337
  title: {},
334
338
  beforeEmitUpdate: { type: Function },
335
339
  notificationType: {}
336
- }, Ne(Le)),
340
+ }, Le(Oe)),
337
341
  emits: [
338
342
  "update:modelValue",
339
343
  "update:editing",
@@ -346,155 +350,162 @@ const y = (...C) => {
346
350
  "error",
347
351
  "modified-data"
348
352
  ],
349
- setup(C, { expose: x, emit: oe }) {
350
- const o = C, a = ke(), b = oe, s = v(!0), l = v(o.modelValue), D = v(o.perms), T = v(o.editing), c = v(!1), I = v(!1), U = v(200), p = v(new fe(l.value, o.dataStateConfig)), f = v(!1), N = v(new fe(o.readData)), S = v(o.mode === w.Create), G = v(!1), J = v(!1), L = v(null), ee = k(() => !S.value && Array.isArray(D.value) && D.value.includes(ie.Update)), te = k(() => !S.value && Array.isArray(D.value) && D.value.includes(ie.Drop)), X = k(() => !S.value && Array.isArray(D.value) && D.value.includes(ie.SwitchEditMode)), V = async () => {
351
- y("fetchItem"), s.value = !0, U.value = -1, I.value = !1;
353
+ setup(D, { expose: ee, emit: ue }) {
354
+ const o = D, a = ke(), g = ue, s = p(!0), d = p(o.modelValue), B = p(o.perms), R = p(o.editing), v = p(!1), S = p(!1), U = p(200), l = p(new fe(d.value, o.dataStateConfig)), c = p(!1), $ = p(new fe(o.readData)), C = p(o.mode === I.Create), F = p(!1), Y = p(!1), N = p(null), te = k(() => !C.value && Array.isArray(B.value) && B.value.includes(ie.Update)), ae = k(() => !C.value && Array.isArray(B.value) && B.value.includes(ie.Drop)), Z = k(() => !C.value && Array.isArray(B.value) && B.value.includes(ie.SwitchEditMode));
355
+ h(() => o.mode, (t) => {
356
+ C.value = t === I.Create;
357
+ });
358
+ const K = async () => {
359
+ m("fetchItem"), s.value = !0, U.value = -1, S.value = !1;
352
360
  try {
353
- const t = await $e(o.readResource, o.readData);
354
- if (y("fetchItem -> response", t), s.value = !1, U.value = t.httpStatus, !t.success) {
355
- c.value = !1, U.value = t.httpStatus, b("error", t.httpStatus);
361
+ const t = await Ne(o.readResource, o.readData);
362
+ if (m("fetchItem -> response", t), s.value = !1, U.value = t.httpStatus, !t.success) {
363
+ v.value = !1, U.value = t.httpStatus, g("error", t.httpStatus);
356
364
  return;
357
365
  }
358
- c.value = !0, l.value = t.data, D.value = t.perms, p.value.increment(l.value).turnStoredIntoOriginal(), f.value = p.value.changed(), N.value.turnStoredIntoOriginal(), b("read", t);
366
+ v.value = !0, d.value = t.data, B.value = t.perms, l.value.increment(d.value).turnStoredIntoOriginal(), c.value = l.value.changed(), $.value.turnStoredIntoOriginal(), g("read", t);
359
367
  } catch {
360
- s.value = !1, c.value = !1, U.value = 404, b("error", 404);
368
+ s.value = !1, v.value = !1, U.value = 404, g("error", 404);
361
369
  return;
362
370
  }
363
371
  };
364
372
  h(() => o.modelValue, (t) => {
365
- l.value = t, p.value.increment(t);
366
- }, { deep: !0 }), h(l, (t) => {
367
- if (G.value = !0, y("item updated ->", l.value), typeof o.beforeEmitUpdate == "function") {
368
- y("item updated -> has beforeEmitUpdate");
369
- let u = o.beforeEmitUpdate(l.value);
370
- y("item updated -> override with: ", u), typeof u == "object" && (l.value = u);
373
+ d.value = t, l.value.increment(t);
374
+ }, { deep: !0 }), h(d, (t) => {
375
+ if (F.value = !0, m("item updated ->", d.value), typeof o.beforeEmitUpdate == "function") {
376
+ m("item updated -> has beforeEmitUpdate");
377
+ let u = o.beforeEmitUpdate(d.value);
378
+ m("item updated -> override with: ", u), typeof u == "object" && (d.value = u);
371
379
  }
372
- b("update:modelValue", l.value), y("item updated -> update dataState"), p.value.increment(t), f.value = p.value.changed(), Se(() => G.value = !1);
373
- }, { deep: !0 }), h(D, () => b("perms", D.value)), h(f, (t) => {
374
- b("modified-data", t);
380
+ g("update:modelValue", d.value), m("item updated -> update dataState"), l.value.increment(t), c.value = l.value.changed(), Ie(() => F.value = !1);
381
+ }, { deep: !0 }), h(B, () => g("perms", B.value)), h(c, (t) => {
382
+ g("modified-data", t);
375
383
  }), h(() => o.readData, (t) => {
376
- N.value.increment(t), N.value.changed() && V();
384
+ $.value.increment(t), $.value.changed() && K();
377
385
  }), h(() => o.editing, (t) => {
378
- y("editing updated -> updating editMode", t), T.value = t;
379
- }), h(T, (t) => {
380
- y("editMode updated -> emit update", t), b("update:editing", t);
381
- }), Ie(() => {
382
- o.readResource && !S.value ? V() : (S.value, c.value = !0, T.value = !0, s.value = !1, p.value.increment(l.value).turnStoredIntoOriginal(), f.value = p.value.changed());
386
+ m("editing updated -> updating editMode", t), R.value = t;
387
+ }), h(R, (t) => {
388
+ m("editMode updated -> emit update", t), g("update:editing", t);
389
+ }), we(() => {
390
+ o.readResource && !C.value ? K() : (C.value, v.value = !0, R.value = !0, s.value = !1, l.value.increment(d.value).turnStoredIntoOriginal(), c.value = l.value.changed());
383
391
  });
384
- const F = (t, u) => {
392
+ const G = (t, u) => {
385
393
  if (u) {
386
394
  if (s.value = !1, typeof t < "u" && (U.value = t.httpStatus, !t.success))
387
- return I.value = !0, b("error", t.httpStatus), !1;
388
- I.value = !0;
395
+ return S.value = !0, g("error", t.httpStatus), !1;
396
+ S.value = !0;
389
397
  }
390
398
  return !0;
391
399
  }, q = (t) => {
392
- !ne.value && t.autoReloadId && (y("doAutoReloadId -> autoReloadId detected: ", t.autoReloadId), o.readData.id = t.autoReloadId, y("doAutoReloadId -> turning off create mode"), S.value = !1, V());
393
- }, A = (t, u) => {
394
- if (y("onCreate"), !F(u, o.createButton.resource)) {
395
- o.notificationType === P.Toast && K({
400
+ m("doAutoReloadId -> enter: ", t), typeof t < "u" && t.autoReloadId && (m("doAutoReloadId -> autoReloadId detected: ", t.autoReloadId), de.value ? (m("doAutoReloadId -> insideModal: ", o), Ae(o.modalConfig.modalName, o.modalConfig.modalKey, t.autoReloadId)) : (m("doAutoReloadId -> outsideModal"), o.readData.id = t.autoReloadId, m("doAutoReloadId -> turning off create mode"), C.value = !1, K()));
401
+ }, P = (t, u) => {
402
+ if (m("onCreate"), !G(u, o.createButton.resource)) {
403
+ o.notificationType === X.Toast && J({
396
404
  text: r.defaultCreateErrorText,
397
405
  details: r.defaultCreateErrorDetails,
398
406
  icon: r.defaultCreateErrorIcon,
399
- positionX: H.Right
407
+ positionX: W.Right
400
408
  });
401
409
  return;
402
410
  }
403
- J.value = !0, y("onCreate -> turn stored data into original"), p.value.increment(l.value).turnStoredIntoOriginal(), o.notificationType === P.Toast && K({
411
+ Y.value = !0, m("onCreate -> turn stored data into original"), l.value.increment(d.value).turnStoredIntoOriginal(), o.notificationType === X.Toast && J({
404
412
  text: r.defaultCreateSuccessText,
405
413
  details: r.defaultCreateSuccessDetails,
406
414
  icon: r.defaultCreateSuccessIcon,
407
- positionX: H.Right
408
- }), q(u), b("create", u);
415
+ positionX: W.Right
416
+ }), q(u), m("onCreate -> beforeEmitCreate"), g("create", u);
409
417
  }, z = (t, u) => {
410
- if (y("onUpdate"), !F(u, o.updateButton.resource)) {
411
- o.notificationType === P.Toast && K({
418
+ if (m("onUpdate"), !G(u, o.updateButton.resource)) {
419
+ o.notificationType === X.Toast && J({
412
420
  text: r.defaultUpdateErrorText,
413
421
  details: r.defaultUpdateErrorDetails,
414
422
  icon: r.defaultUpdateErrorIcon,
415
- positionX: H.Right
423
+ positionX: W.Right
416
424
  });
417
425
  return;
418
426
  }
419
- y("onUpdate -> turn stored data into original"), p.value.turnStoredIntoOriginal(), o.notificationType === P.Toast && K({
427
+ m("onUpdate -> turn stored data into original"), l.value.turnStoredIntoOriginal(), o.notificationType === X.Toast && J({
420
428
  text: r.defaultUpdateSuccessText,
421
429
  details: r.defaultUpdateSuccessDetails,
422
430
  icon: r.defaultUpdateSuccessIcon,
423
- positionX: H.Right
424
- }), q(u), b("update", u);
425
- }, ae = (t, u) => {
426
- if (y("onDrop"), !F(u, o.dropButton.resource)) {
427
- o.notificationType === P.Toast && K({
431
+ positionX: W.Right
432
+ }), q(u), g("update", u);
433
+ }, oe = (t, u) => {
434
+ if (m("onDrop"), !G(u, o.dropButton.resource)) {
435
+ o.notificationType === X.Toast && J({
428
436
  text: r.defaultDropErrorText,
429
437
  details: r.defaultDropErrorDetails,
430
438
  icon: r.defaultDropErrorIcon,
431
- positionX: H.Right
439
+ positionX: W.Right
432
440
  });
433
441
  return;
434
442
  }
435
- o.notificationType === P.Toast && K({
443
+ o.notificationType === X.Toast && J({
436
444
  text: r.defaultDropSuccessText,
437
445
  details: r.defaultDropSuccessDetails,
438
446
  icon: r.defaultDropSuccessIcon,
439
- positionX: H.Right
440
- }), b("drop", u), o.view === me.Modal && (y("onDrop -> close modal"), Ve(o.modalConfig.modalName, o.modalConfig.modalKey));
447
+ positionX: W.Right
448
+ }), g("drop", u), o.view === be.Modal && (m("onDrop -> close modal"), Ve(o.modalConfig.modalName, o.modalConfig.modalKey));
441
449
  };
442
- x({
450
+ ee({
443
451
  doDrop: () => {
444
- L.value && L.value.doDrop();
452
+ N.value && N.value.doDrop();
445
453
  },
446
- doRefresh: V,
454
+ doRefresh: K,
447
455
  doSave: () => {
448
- L.value && L.value.doSave();
456
+ N.value && N.value.doSave();
457
+ },
458
+ turnStoredDataIntoOriginal: () => {
459
+ l.value.increment(d.value).turnStoredIntoOriginal();
449
460
  },
450
- hasModifiedData: () => p.value.changed()
461
+ hasModifiedData: () => l.value.changed()
451
462
  });
452
- const E = k(() => {
463
+ const T = k(() => {
453
464
  var t;
454
- return p.value.changed() ? (t = o.modalConfig) == null ? void 0 : t.closeConfirm : "";
455
- }), Q = (t) => {
465
+ return l.value.changed() ? (t = o.modalConfig) == null ? void 0 : t.closeConfirm : "";
466
+ }), _ = (t) => {
456
467
  var u;
457
468
  if (typeof ((u = o.modalConfig) == null ? void 0 : u.beforeClose) == "function")
458
469
  return o.modalConfig.beforeClose({
459
470
  ...t,
460
- itemCreated: J.value
471
+ itemCreated: Y.value
461
472
  });
462
- }, ue = k(() => o.title.startsWith("__:") ? String(Oe(o.title.substring(3))) : o.title), Be = k(() => s.value ? !1 : ue.value.length > 0 || !!a["post-title"]), ne = k(() => o.view === me.Modal), pe = k(() => ne.value ? "lkt-modal" : "section"), he = k(() => pe.value === "lkt-modal" ? {
473
+ }, ne = k(() => o.title.startsWith("__:") ? String(je(o.title.substring(3))) : o.title), he = k(() => s.value ? !1 : ne.value.length > 0 || !!a["post-title"]), de = k(() => o.view === be.Modal), pe = k(() => de.value ? "lkt-modal" : "section"), Ce = k(() => pe.value === "lkt-modal" ? {
463
474
  title: o.title,
464
- item: l.value,
475
+ item: d.value,
465
476
  ...o.modalConfig,
466
- beforeClose: Q,
467
- closeConfirm: E.value
477
+ beforeClose: _,
478
+ closeConfirm: T.value
468
479
  } : {});
469
480
  return (t, u) => {
470
- const ve = se("lkt-http-info"), Ce = se("lkt-loader");
471
- return i(), B(we(pe.value), Me(Re(he.value)), {
472
- default: R(() => [
473
- Te("article", Fe, [
474
- !ne.value && Be.value ? (i(), $("header", Ge, [
475
- d(a)["pre-title"] ? (i(), $("div", qe, [
476
- g(t.$slots, "pre-title", {
477
- item: l.value,
481
+ const ve = se("lkt-http-info"), De = se("lkt-loader");
482
+ return b(), j(Me(pe.value), Re(Te(Ce.value)), {
483
+ default: M(() => [
484
+ Ee("article", Ge, [
485
+ !de.value && he.value ? (b(), E("header", qe, [
486
+ n(a)["pre-title"] ? (b(), E("div", ze, [
487
+ y(t.$slots, "pre-title", {
488
+ item: d.value,
478
489
  loading: s.value
479
490
  })
480
- ])) : n("", !0),
481
- ue.value.length > 0 ? (i(), $("h1", ze, Ee(ue.value), 1)) : n("", !0),
482
- d(a)["post-title"] ? (i(), $("div", He, [
483
- g(t.$slots, "post-title", {
484
- item: l.value,
491
+ ])) : i("", !0),
492
+ ne.value.length > 0 ? (b(), E("h1", He, $e(ne.value), 1)) : i("", !0),
493
+ n(a)["post-title"] ? (b(), E("div", We, [
494
+ y(t.$slots, "post-title", {
495
+ item: d.value,
485
496
  loading: s.value
486
497
  })
487
- ])) : n("", !0)
488
- ])) : n("", !0),
489
- t.buttonNavPosition === d(be).Top ? (i(), B(ge, {
498
+ ])) : i("", !0)
499
+ ])) : i("", !0),
500
+ t.buttonNavPosition === n(ge).Top ? (b(), j(ye, {
490
501
  key: 1,
491
502
  ref_key: "buttonNav",
492
- ref: L,
503
+ ref: N,
493
504
  loading: s.value,
494
- "onUpdate:loading": u[0] || (u[0] = (M) => s.value = M),
495
- editing: T.value,
496
- "onUpdate:editing": u[1] || (u[1] = (M) => T.value = M),
497
- item: l.value,
505
+ "onUpdate:loading": u[0] || (u[0] = (w) => s.value = w),
506
+ editing: R.value,
507
+ "onUpdate:editing": u[1] || (u[1] = (w) => R.value = w),
508
+ item: d.value,
498
509
  mode: t.mode,
499
510
  view: t.view,
500
511
  "button-nav-visibility": t.buttonNavVisibility,
@@ -503,73 +514,74 @@ const y = (...C) => {
503
514
  "drop-button": t.dropButton,
504
515
  "edit-mode-button": t.editModeButton,
505
516
  "group-button": t.groupButton,
506
- "data-changed": f.value,
507
- "http-success-read": c.value,
508
- "can-update": ee.value,
509
- "can-drop": te.value,
510
- "can-switch-edit-mode": X.value,
511
- perms: D.value,
512
- onCreate: A,
517
+ "data-changed": c.value,
518
+ "http-success-read": v.value,
519
+ "can-update": te.value,
520
+ "can-drop": ae.value,
521
+ "can-switch-edit-mode": Z.value,
522
+ perms: B.value,
523
+ onCreate: P,
513
524
  onSave: z,
514
- onDrop: ae
525
+ onDrop: oe
515
526
  }, ce({ _: 2 }, [
516
- d(a)["prev-buttons-ever"] ? {
527
+ n(a)["prev-buttons-ever"] ? {
517
528
  name: "prev-buttons-ever",
518
- fn: R(({ canUpdate: M, canDrop: de, perms: re }) => [
519
- g(t.$slots, "prev-buttons-ever", {
520
- canUpdate: M,
521
- canDrop: de,
522
- perms: re
529
+ fn: M(({ canUpdate: w, canDrop: re, perms: le }) => [
530
+ y(t.$slots, "prev-buttons-ever", {
531
+ canUpdate: w,
532
+ canDrop: re,
533
+ perms: le
523
534
  })
524
535
  ]),
525
536
  key: "0"
526
537
  } : void 0,
527
- d(a)["prev-buttons"] ? {
538
+ n(a)["prev-buttons"] ? {
528
539
  name: "prev-buttons",
529
- fn: R(({ canUpdate: M, canDrop: de, perms: re }) => [
530
- g(t.$slots, "prev-buttons", {
531
- canUpdate: M,
532
- canDrop: de,
533
- perms: re
540
+ fn: M(({ canUpdate: w, canDrop: re, perms: le }) => [
541
+ y(t.$slots, "prev-buttons", {
542
+ canUpdate: w,
543
+ canDrop: re,
544
+ perms: le
534
545
  })
535
546
  ]),
536
547
  key: "1"
537
548
  } : void 0
538
- ]), 1032, ["loading", "editing", "item", "mode", "view", "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", "perms"])) : n("", !0),
539
- s.value ? n("", !0) : (i(), $("div", Ke, [
540
- c.value ? (i(), $("div", We, [
541
- I.value && t.notificationType === d(P).Inline ? (i(), B(ve, {
549
+ ]), 1032, ["loading", "editing", "item", "mode", "view", "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", "perms"])) : i("", !0),
550
+ s.value ? i("", !0) : (b(), E("div", Je, [
551
+ v.value ? (b(), E("div", Qe, [
552
+ S.value && t.notificationType === n(X).Inline ? (b(), j(ve, {
542
553
  key: 0,
543
554
  code: U.value,
544
555
  palette: U.value === 200 ? "success" : "danger",
545
556
  quick: "",
546
557
  "can-close": "",
547
- onClose: u[2] || (u[2] = (M) => I.value = !1)
548
- }, null, 8, ["code", "palette"])) : n("", !0),
549
- g(t.$slots, "item", {
550
- item: l.value,
558
+ onClose: u[2] || (u[2] = (w) => S.value = !1)
559
+ }, null, 8, ["code", "palette"])) : i("", !0),
560
+ y(t.$slots, "item", {
561
+ item: d.value,
551
562
  loading: s.value,
552
- editMode: T.value,
553
- isCreate: S.value,
554
- canUpdate: ee.value,
555
- canDrop: te.value,
556
- itemBeingEdited: G.value
563
+ editMode: R.value,
564
+ isCreate: C.value,
565
+ canUpdate: te.value,
566
+ canDrop: ae.value,
567
+ itemBeingEdited: F.value,
568
+ perms: B.value
557
569
  })
558
- ])) : t.notificationType === d(P).Inline ? (i(), B(ve, {
570
+ ])) : t.notificationType === n(X).Inline ? (b(), j(ve, {
559
571
  key: 1,
560
572
  code: U.value
561
- }, null, 8, ["code"])) : n("", !0)
573
+ }, null, 8, ["code"])) : i("", !0)
562
574
  ])),
563
- s.value ? (i(), B(Ce, { key: 3 })) : n("", !0),
564
- t.buttonNavPosition === d(be).Bottom ? (i(), B(ge, {
575
+ s.value ? (b(), j(De, { key: 3 })) : i("", !0),
576
+ t.buttonNavPosition === n(ge).Bottom ? (b(), j(ye, {
565
577
  key: 4,
566
578
  ref_key: "buttonNav",
567
- ref: L,
579
+ ref: N,
568
580
  loading: s.value,
569
- "onUpdate:loading": u[3] || (u[3] = (M) => s.value = M),
570
- editing: T.value,
571
- "onUpdate:editing": u[4] || (u[4] = (M) => T.value = M),
572
- item: l.value,
581
+ "onUpdate:loading": u[3] || (u[3] = (w) => s.value = w),
582
+ editing: R.value,
583
+ "onUpdate:editing": u[4] || (u[4] = (w) => R.value = w),
584
+ item: d.value,
573
585
  mode: t.mode,
574
586
  view: t.view,
575
587
  "button-nav-visibility": t.buttonNavVisibility,
@@ -578,48 +590,49 @@ const y = (...C) => {
578
590
  "drop-button": t.dropButton,
579
591
  "edit-mode-button": t.editModeButton,
580
592
  "group-button": t.groupButton,
581
- "data-changed": f.value,
582
- "http-success-read": c.value,
583
- "can-update": ee.value,
584
- "can-drop": te.value,
585
- "can-switch-edit-mode": X.value,
586
- onCreate: A,
593
+ "data-changed": c.value,
594
+ "http-success-read": v.value,
595
+ "can-update": te.value,
596
+ "can-drop": ae.value,
597
+ "can-switch-edit-mode": Z.value,
598
+ perms: B.value,
599
+ onCreate: P,
587
600
  onSave: z,
588
- onDrop: ae
601
+ onDrop: oe
589
602
  }, ce({ _: 2 }, [
590
- d(a)["prev-buttons-ever"] ? {
603
+ n(a)["prev-buttons-ever"] ? {
591
604
  name: "prev-buttons-ever",
592
- fn: R(() => [
593
- g(t.$slots, "prev-buttons-ever")
605
+ fn: M(() => [
606
+ y(t.$slots, "prev-buttons-ever")
594
607
  ]),
595
608
  key: "0"
596
609
  } : void 0,
597
- d(a)["prev-buttons"] ? {
610
+ n(a)["prev-buttons"] ? {
598
611
  name: "prev-buttons-ever",
599
- fn: R(() => [
600
- g(t.$slots, "prev-buttons")
612
+ fn: M(() => [
613
+ y(t.$slots, "prev-buttons")
601
614
  ]),
602
615
  key: "1"
603
616
  } : void 0
604
- ]), 1032, ["loading", "editing", "item", "mode", "view", "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"])) : n("", !0)
617
+ ]), 1032, ["loading", "editing", "item", "mode", "view", "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", "perms"])) : i("", !0)
605
618
  ])
606
619
  ]),
607
620
  _: 3
608
621
  }, 16);
609
622
  };
610
623
  }
611
- }), ot = {
612
- install: (C, x = {}) => {
613
- C.component("lkt-item-crud") === void 0 && C.component("lkt-item-crud", Je);
624
+ }), nt = {
625
+ install: (D, ee = {}) => {
626
+ D.component("lkt-item-crud") === void 0 && D.component("lkt-item-crud", Ye);
614
627
  }
615
- }, ut = (C) => {
616
- W.defaultSaveIcon = C;
617
- }, nt = (C) => {
618
- W.defaultDropIcon = C;
628
+ }, dt = (D) => {
629
+ Q.defaultSaveIcon = D;
630
+ }, rt = (D) => {
631
+ Q.defaultDropIcon = D;
619
632
  };
620
633
  export {
621
- at as debugLktItemCrud,
622
- ot as default,
623
- nt as setItemCrudDefaultDropIcon,
624
- ut as setItemCrudDefaultSaveIcon
634
+ ut as debugLktItemCrud,
635
+ nt as default,
636
+ rt as setItemCrudDefaultDropIcon,
637
+ dt as setItemCrudDefaultSaveIcon
625
638
  };