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.d.ts +6 -6
- package/dist/build.js +452 -354
- package/dist/components/ButtonNav.vue.d.ts +458 -12
- package/dist/lib-components/LktItemCrud.vue.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/ButtonNav.vue +161 -72
- package/src/lib-components/LktItemCrud.vue +3 -1
package/dist/build.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { httpCall as
|
|
3
|
-
import { DataState as
|
|
4
|
-
import { ensureButtonConfig as
|
|
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
|
|
7
|
-
import { openToast as
|
|
8
|
-
const
|
|
6
|
+
import { __ as Oe } from "lkt-i18n";
|
|
7
|
+
import { openToast as K } from "lkt-toast";
|
|
8
|
+
const _ = class _ {
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
},
|
|
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
|
-
},
|
|
22
|
+
}, Pe = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "lkt-item-crud-buttons"
|
|
25
|
-
},
|
|
25
|
+
}, Xe = {
|
|
26
26
|
key: 5,
|
|
27
27
|
class: "lkt-item-crud-buttons"
|
|
28
|
-
},
|
|
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(
|
|
56
|
-
const o =
|
|
57
|
-
h(() => a.createButton, (
|
|
58
|
-
|
|
59
|
-
}, { deep: !0 }), h(() => a.updateButton, (
|
|
60
|
-
|
|
61
|
-
}, { deep: !0 }), h(() => a.dropButton, (
|
|
62
|
-
|
|
63
|
-
}, { deep: !0 }), h(() => a.editModeButton, (
|
|
64
|
-
|
|
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
|
|
67
|
-
h(() => a.loading, (
|
|
68
|
-
const
|
|
69
|
-
h(() => a.editing, (
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
typeof
|
|
76
|
-
},
|
|
77
|
-
typeof
|
|
78
|
-
},
|
|
79
|
-
typeof
|
|
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
|
-
|
|
82
|
+
x({
|
|
82
83
|
doSave: () => {
|
|
83
|
-
|
|
84
|
+
I.value && typeof I.value.click == "function" && I.value.click();
|
|
84
85
|
},
|
|
85
86
|
doDrop: () => {
|
|
86
|
-
|
|
87
|
+
U.value && typeof U.value.click == "function" && U.value.click();
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
const
|
|
90
|
-
var
|
|
91
|
-
return a.mode !== w.Update || !a.canUpdate || !a.dataChanged ? !1 : typeof ((
|
|
92
|
-
}),
|
|
93
|
-
var
|
|
94
|
-
return a.mode !== w.Create || !a.dataChanged ? !1 : typeof ((
|
|
95
|
-
}),
|
|
96
|
-
var
|
|
97
|
-
return a.canDrop ? typeof ((
|
|
98
|
-
}),
|
|
99
|
-
return (
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
|
185
|
-
[
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
}),
|
|
295
|
+
}), Fe = { class: "lkt-item-crud" }, Ge = {
|
|
201
296
|
key: 0,
|
|
202
297
|
class: "lkt-item-crud_header"
|
|
203
|
-
},
|
|
298
|
+
}, qe = {
|
|
204
299
|
key: 0,
|
|
205
300
|
class: "lkt-item-crud_header-slot"
|
|
206
|
-
},
|
|
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
|
-
},
|
|
313
|
+
}, Je = /* @__PURE__ */ ye({
|
|
219
314
|
__name: "LktItemCrud",
|
|
220
|
-
props: /* @__PURE__ */
|
|
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(
|
|
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(
|
|
254
|
-
const o =
|
|
255
|
-
|
|
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
|
|
258
|
-
if (
|
|
259
|
-
|
|
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
|
-
|
|
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
|
-
|
|
360
|
+
s.value = !1, c.value = !1, U.value = 404, b("error", 404);
|
|
265
361
|
return;
|
|
266
362
|
}
|
|
267
363
|
};
|
|
268
|
-
h(() => o.modelValue, (
|
|
269
|
-
|
|
270
|
-
}, { deep: !0 }), h(
|
|
271
|
-
if (
|
|
272
|
-
|
|
273
|
-
let u = o.beforeEmitUpdate(
|
|
274
|
-
|
|
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
|
-
|
|
277
|
-
}, { deep: !0 }), h(
|
|
278
|
-
|
|
279
|
-
}), h(() => o.readData, (
|
|
280
|
-
|
|
281
|
-
}), h(() => o.editing, (
|
|
282
|
-
|
|
283
|
-
}), h(
|
|
284
|
-
|
|
285
|
-
}),
|
|
286
|
-
o.readResource && !
|
|
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
|
|
384
|
+
const F = (t, u) => {
|
|
289
385
|
if (u) {
|
|
290
|
-
if (
|
|
291
|
-
return I.value = !0,
|
|
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
|
-
},
|
|
296
|
-
!
|
|
297
|
-
},
|
|
298
|
-
if (
|
|
299
|
-
o.notificationType ===
|
|
300
|
-
text:
|
|
301
|
-
details:
|
|
302
|
-
icon:
|
|
303
|
-
positionX:
|
|
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
|
-
|
|
308
|
-
text:
|
|
309
|
-
details:
|
|
310
|
-
icon:
|
|
311
|
-
positionX:
|
|
312
|
-
}),
|
|
313
|
-
},
|
|
314
|
-
if (
|
|
315
|
-
o.notificationType ===
|
|
316
|
-
text:
|
|
317
|
-
details:
|
|
318
|
-
icon:
|
|
319
|
-
positionX:
|
|
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
|
-
|
|
324
|
-
text:
|
|
325
|
-
details:
|
|
326
|
-
icon:
|
|
327
|
-
positionX:
|
|
328
|
-
}),
|
|
329
|
-
},
|
|
330
|
-
if (
|
|
331
|
-
o.notificationType ===
|
|
332
|
-
text:
|
|
333
|
-
details:
|
|
334
|
-
icon:
|
|
335
|
-
positionX:
|
|
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 ===
|
|
340
|
-
text:
|
|
341
|
-
details:
|
|
342
|
-
icon:
|
|
343
|
-
positionX:
|
|
344
|
-
}),
|
|
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
|
-
|
|
442
|
+
x({
|
|
347
443
|
doDrop: () => {
|
|
348
444
|
L.value && L.value.doDrop();
|
|
349
445
|
},
|
|
350
|
-
doRefresh:
|
|
446
|
+
doRefresh: V,
|
|
351
447
|
doSave: () => {
|
|
352
448
|
L.value && L.value.doSave();
|
|
353
449
|
},
|
|
354
|
-
hasModifiedData: () =>
|
|
450
|
+
hasModifiedData: () => p.value.changed()
|
|
355
451
|
});
|
|
356
|
-
const
|
|
357
|
-
var
|
|
358
|
-
return
|
|
359
|
-
}),
|
|
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
|
-
...
|
|
364
|
-
itemCreated:
|
|
459
|
+
...t,
|
|
460
|
+
itemCreated: J.value
|
|
365
461
|
});
|
|
366
|
-
},
|
|
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:
|
|
464
|
+
item: l.value,
|
|
369
465
|
...o.modalConfig,
|
|
370
|
-
beforeClose:
|
|
371
|
-
closeConfirm:
|
|
466
|
+
beforeClose: Q,
|
|
467
|
+
closeConfirm: E.value
|
|
372
468
|
} : {});
|
|
373
|
-
return (
|
|
374
|
-
const
|
|
375
|
-
return
|
|
376
|
-
default:
|
|
377
|
-
|
|
378
|
-
!
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
item:
|
|
382
|
-
loading:
|
|
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
|
-
])) :
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
item:
|
|
389
|
-
loading:
|
|
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
|
-
])) :
|
|
392
|
-
])) :
|
|
393
|
-
|
|
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:
|
|
398
|
-
"onUpdate:loading": u[0] || (u[0] = (
|
|
399
|
-
editing:
|
|
400
|
-
"onUpdate:editing": u[1] || (u[1] = (
|
|
401
|
-
item:
|
|
402
|
-
mode:
|
|
403
|
-
view:
|
|
404
|
-
"button-nav-visibility":
|
|
405
|
-
"create-button":
|
|
406
|
-
"update-button":
|
|
407
|
-
"drop-button":
|
|
408
|
-
"edit-mode-button":
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"can-
|
|
413
|
-
"can-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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:
|
|
422
|
-
|
|
423
|
-
canUpdate:
|
|
424
|
-
canDrop:
|
|
425
|
-
perms:
|
|
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
|
-
|
|
431
|
-
name: "prev-buttons
|
|
432
|
-
fn:
|
|
433
|
-
|
|
434
|
-
canUpdate:
|
|
435
|
-
canDrop:
|
|
436
|
-
perms:
|
|
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"])) :
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
I.value &&
|
|
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:
|
|
447
|
-
palette:
|
|
543
|
+
code: U.value,
|
|
544
|
+
palette: U.value === 200 ? "success" : "danger",
|
|
448
545
|
quick: "",
|
|
449
546
|
"can-close": "",
|
|
450
|
-
onClose: u[2] || (u[2] = (
|
|
451
|
-
}, null, 8, ["code", "palette"])) :
|
|
452
|
-
|
|
453
|
-
item:
|
|
454
|
-
loading:
|
|
455
|
-
editMode:
|
|
456
|
-
isCreate:
|
|
457
|
-
canUpdate:
|
|
458
|
-
canDrop:
|
|
459
|
-
itemBeingEdited:
|
|
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
|
-
])) :
|
|
558
|
+
])) : t.notificationType === d(P).Inline ? (i(), B(ve, {
|
|
462
559
|
key: 1,
|
|
463
|
-
code:
|
|
464
|
-
}, null, 8, ["code"])) :
|
|
560
|
+
code: U.value
|
|
561
|
+
}, null, 8, ["code"])) : n("", !0)
|
|
465
562
|
])),
|
|
466
|
-
|
|
467
|
-
|
|
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:
|
|
472
|
-
"onUpdate:loading": u[3] || (u[3] = (
|
|
473
|
-
editing:
|
|
474
|
-
"onUpdate:editing": u[4] || (u[4] = (
|
|
475
|
-
item:
|
|
476
|
-
mode:
|
|
477
|
-
view:
|
|
478
|
-
"button-nav-visibility":
|
|
479
|
-
"create-button":
|
|
480
|
-
"update-button":
|
|
481
|
-
"drop-button":
|
|
482
|
-
"edit-mode-button":
|
|
483
|
-
"
|
|
484
|
-
"
|
|
485
|
-
"
|
|
486
|
-
"can-
|
|
487
|
-
"can-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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
|
-
|
|
592
|
+
fn: R(() => [
|
|
593
|
+
g(t.$slots, "prev-buttons-ever")
|
|
496
594
|
]),
|
|
497
595
|
key: "0"
|
|
498
596
|
} : void 0,
|
|
499
|
-
|
|
597
|
+
d(a)["prev-buttons"] ? {
|
|
500
598
|
name: "prev-buttons-ever",
|
|
501
|
-
fn:
|
|
502
|
-
|
|
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"])) :
|
|
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
|
-
}),
|
|
514
|
-
install: (
|
|
515
|
-
|
|
611
|
+
}), ot = {
|
|
612
|
+
install: (C, x = {}) => {
|
|
613
|
+
C.component("lkt-item-crud") === void 0 && C.component("lkt-item-crud", Je);
|
|
516
614
|
}
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
|
|
615
|
+
}, ut = (C) => {
|
|
616
|
+
W.defaultSaveIcon = C;
|
|
617
|
+
}, nt = (C) => {
|
|
618
|
+
W.defaultDropIcon = C;
|
|
521
619
|
};
|
|
522
620
|
export {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
621
|
+
at as debugLktItemCrud,
|
|
622
|
+
ot as default,
|
|
623
|
+
nt as setItemCrudDefaultDropIcon,
|
|
624
|
+
ut as setItemCrudDefaultSaveIcon
|
|
527
625
|
};
|