lkt-item-crud 2.0.10 → 2.0.11

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