lkt-item-crud 2.0.37 → 2.0.39
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.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lkt-item-crud{display:var(--lkt-item-crud--display);flex-direction:var(--lkt-item-crud--flex-direction);gap:var(--lkt-item-crud--gap);text-align:var(--lkt-item-crud--text-align)}.lkt-item-crud_content{display:var(--lkt-item-crud--content--display);flex-direction:var(--lkt-item-crud--content--flex-direction);gap:var(--lkt-item-crud--content--gap)}.lkt-item-crud-buttons{position:var(--lkt-item-crud--buttons--position);top:calc(-1 * var(--lkt-item-crud--gap));display:var(--lkt-item-crud--buttons--display);align-items:var(--lkt-item-crud--buttons--align-items);gap:var(--lkt-item-crud--buttons--gap);transition:var(--lkt-item-crud--buttons--transition);background:var(--lkt-item-crud--buttons--background);z-index:var(--lkt-item-crud--buttons--z-index)}.lkt-item-crud-buttons .lkt-item-crud--switch-mode-button,.lkt-item-crud-buttons .lkt-item-crud--modifications-button{margin-left:auto}.lkt-item-crud-buttons .lkt-item-crud--modifications-button+.lkt-item-crud--switch-mode-button{margin-left:initial}.lkt-item-crud-buttons>.lkt-item-crud-buttons{padding:0}
|
|
1
|
+
.lkt-item-crud{display:var(--lkt-item-crud--display);flex-direction:var(--lkt-item-crud--flex-direction);gap:var(--lkt-item-crud--gap);text-align:var(--lkt-item-crud--text-align)}.lkt-item-crud_content{display:var(--lkt-item-crud--content--display);flex-direction:var(--lkt-item-crud--content--flex-direction);gap:var(--lkt-item-crud--content--gap)}.lkt-item-crud-buttons{position:var(--lkt-item-crud--buttons--position);top:calc(-1 * var(--lkt-item-crud--gap));display:var(--lkt-item-crud--buttons--display);align-items:var(--lkt-item-crud--buttons--align-items);justify-content:var(--lkt-item-crud--buttons--justify-content);gap:var(--lkt-item-crud--buttons--gap);transition:var(--lkt-item-crud--buttons--transition);background:var(--lkt-item-crud--buttons--background);z-index:var(--lkt-item-crud--buttons--z-index)}.lkt-item-crud-buttons .lkt-item-crud--switch-mode-button,.lkt-item-crud-buttons .lkt-item-crud--modifications-button{margin-left:auto}.lkt-item-crud-buttons .lkt-item-crud--modifications-button+.lkt-item-crud--switch-mode-button{margin-left:initial}.lkt-item-crud-buttons>.lkt-item-crud-buttons{padding:0}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ButtonConfig, FormUiConfig, ItemCrudButtonNavPosition, ItemCrudConfig, ItemCrudMode, ItemCrudView, LktObject, ModalConfig, ModificationView, NotificationType } from 'lkt-vue-kernel';
|
|
2
2
|
declare var __VLS_17: {
|
|
3
|
-
canUpdate:
|
|
4
|
-
canDrop:
|
|
5
|
-
perms:
|
|
3
|
+
canUpdate: any;
|
|
4
|
+
canDrop: any;
|
|
5
|
+
perms: any;
|
|
6
6
|
}, __VLS_19: {
|
|
7
|
-
canUpdate:
|
|
8
|
-
canDrop:
|
|
9
|
-
perms:
|
|
7
|
+
canUpdate: any;
|
|
8
|
+
canDrop: any;
|
|
9
|
+
perms: any;
|
|
10
10
|
}, __VLS_25: {
|
|
11
11
|
item: LktObject;
|
|
12
12
|
loading: boolean;
|
|
@@ -14,21 +14,21 @@ declare var __VLS_17: {
|
|
|
14
14
|
item: LktObject;
|
|
15
15
|
loading: boolean;
|
|
16
16
|
}, __VLS_40: {
|
|
17
|
-
canUpdate:
|
|
18
|
-
canDrop:
|
|
19
|
-
perms:
|
|
17
|
+
canUpdate: any;
|
|
18
|
+
canDrop: any;
|
|
19
|
+
perms: any;
|
|
20
20
|
}, __VLS_42: {
|
|
21
|
-
canUpdate:
|
|
22
|
-
canDrop:
|
|
23
|
-
perms:
|
|
21
|
+
canUpdate: any;
|
|
22
|
+
canDrop: any;
|
|
23
|
+
perms: any;
|
|
24
24
|
}, __VLS_55: {
|
|
25
|
-
canUpdate:
|
|
26
|
-
canDrop:
|
|
27
|
-
perms:
|
|
25
|
+
canUpdate: any;
|
|
26
|
+
canDrop: any;
|
|
27
|
+
perms: any;
|
|
28
28
|
}, __VLS_57: {
|
|
29
|
-
canUpdate:
|
|
30
|
-
canDrop:
|
|
31
|
-
perms:
|
|
29
|
+
canUpdate: any;
|
|
30
|
+
canDrop: any;
|
|
31
|
+
perms: any;
|
|
32
32
|
}, __VLS_74: string, __VLS_75: {}, __VLS_77: {
|
|
33
33
|
item: LktObject;
|
|
34
34
|
loading: false;
|
package/package.json
CHANGED
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
try {
|
|
154
154
|
const r: HTTPResponse = await httpCall(props.readResource, props.readData);
|
|
155
|
+
|
|
155
156
|
debug('fetchItem -> response', r);
|
|
156
157
|
isLoading.value = false;
|
|
157
158
|
httpStatus.value = r.httpStatus;
|
|
@@ -319,6 +320,7 @@
|
|
|
319
320
|
},
|
|
320
321
|
onCreate = ($event: PointerEvent, r: HTTPResponse) => {
|
|
321
322
|
debug('onCreate');
|
|
323
|
+
|
|
322
324
|
if (!ensureValidResourceSave(r, safeCreateButton.value.resource)) {
|
|
323
325
|
if (props.notificationType === NotificationType.Toast) {
|
|
324
326
|
openToast(<ToastConfig>{
|
|
@@ -350,6 +352,7 @@
|
|
|
350
352
|
},
|
|
351
353
|
onUpdate = ($event: PointerEvent, r: HTTPResponse) => {
|
|
352
354
|
debug('onUpdate');
|
|
355
|
+
|
|
353
356
|
if (!ensureValidResourceSave(r, safeUpdateButton.value.resource)) {
|
|
354
357
|
if (props.notificationType === NotificationType.Toast) {
|
|
355
358
|
openToast(<ToastConfig>{
|
|
@@ -379,6 +382,7 @@
|
|
|
379
382
|
},
|
|
380
383
|
onDrop = ($event: PointerEvent, r: HTTPResponse) => {
|
|
381
384
|
debug('onDrop');
|
|
385
|
+
|
|
382
386
|
if (!ensureValidResourceSave(r, safeDropButton.value.resource)) {
|
|
383
387
|
if (props.notificationType === NotificationType.Toast) {
|
|
384
388
|
openToast(<ToastConfig>{
|