lkt-item-crud 2.0.18 → 2.0.20
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 +1 -1
- package/dist/build.d.ts +6 -6
- package/dist/build.js +696 -613
- package/dist/components/ButtonNav.vue.d.ts +24 -89
- package/dist/functions/modifications-functions.d.ts +4 -0
- package/dist/lib-components/LktItemCrud.vue.d.ts +15 -6
- package/package.json +1 -1
- package/src/components/ButtonNav.vue +208 -83
- package/src/lib-components/LktItemCrud.vue +108 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ButtonConfig, ItemCrudButtonNavVisibility, ItemCrudMode, ItemCrudView, LktObject } from 'lkt-vue-kernel';
|
|
1
|
+
import { ButtonConfig, ItemCrudButtonNavVisibility, ItemCrudMode, ItemCrudView, LktObject, ModificationView } from 'lkt-vue-kernel';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
item: LktObject;
|
|
4
|
+
modifications: LktObject;
|
|
4
5
|
editing?: boolean;
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
grouped?: boolean;
|
|
@@ -22,122 +23,53 @@ type __VLS_Props = {
|
|
|
22
23
|
perms?: Array<string>;
|
|
23
24
|
httpSuccessRead?: boolean;
|
|
24
25
|
buttonNavVisibility: ItemCrudButtonNavVisibility;
|
|
26
|
+
modificationView?: boolean | Array<ModificationView>;
|
|
27
|
+
pickedModificationView: string;
|
|
28
|
+
editableView: ModificationView;
|
|
25
29
|
};
|
|
26
|
-
declare var
|
|
30
|
+
declare var __VLS_9: {
|
|
27
31
|
canUpdate: boolean | undefined;
|
|
28
32
|
canDrop: boolean | undefined;
|
|
29
33
|
perms: string[] | undefined;
|
|
30
|
-
},
|
|
34
|
+
}, __VLS_11: {
|
|
31
35
|
canUpdate: boolean | undefined;
|
|
32
36
|
canDrop: boolean | undefined;
|
|
33
37
|
perms: string[] | undefined;
|
|
34
|
-
},
|
|
35
|
-
item: LktObject;
|
|
36
|
-
editMode: boolean;
|
|
37
|
-
isCreate: boolean;
|
|
38
|
-
canUpdate: boolean | undefined;
|
|
39
|
-
canDrop: boolean | undefined;
|
|
40
|
-
}, __VLS_35: {
|
|
41
|
-
item: LktObject;
|
|
42
|
-
editMode: boolean;
|
|
43
|
-
isCreate: boolean;
|
|
44
|
-
canUpdate: boolean | undefined;
|
|
45
|
-
canDrop: boolean | undefined;
|
|
46
|
-
}, __VLS_49: {
|
|
47
|
-
item: LktObject;
|
|
48
|
-
editMode: boolean;
|
|
49
|
-
isCreate: boolean;
|
|
50
|
-
canUpdate: boolean | undefined;
|
|
51
|
-
canDrop: boolean | undefined;
|
|
52
|
-
}, __VLS_51: {}, __VLS_63: {
|
|
38
|
+
}, __VLS_49: {}, __VLS_65: {
|
|
53
39
|
canUpdate: boolean | undefined;
|
|
54
40
|
canDrop: boolean | undefined;
|
|
55
41
|
perms: string[] | undefined;
|
|
56
|
-
},
|
|
42
|
+
}, __VLS_67: {
|
|
57
43
|
canUpdate: boolean | undefined;
|
|
58
44
|
canDrop: boolean | undefined;
|
|
59
45
|
perms: string[] | undefined;
|
|
60
|
-
},
|
|
61
|
-
item: LktObject;
|
|
62
|
-
editMode: boolean;
|
|
63
|
-
isCreate: boolean;
|
|
64
|
-
canUpdate: boolean | undefined;
|
|
65
|
-
canDrop: boolean | undefined;
|
|
66
|
-
}, __VLS_93: {
|
|
67
|
-
item: LktObject;
|
|
68
|
-
editMode: boolean;
|
|
69
|
-
isCreate: boolean;
|
|
70
|
-
canUpdate: boolean | undefined;
|
|
71
|
-
canDrop: boolean | undefined;
|
|
72
|
-
}, __VLS_107: {
|
|
73
|
-
item: LktObject;
|
|
74
|
-
editMode: boolean;
|
|
75
|
-
isCreate: boolean;
|
|
76
|
-
canUpdate: boolean | undefined;
|
|
77
|
-
canDrop: boolean | undefined;
|
|
78
|
-
}, __VLS_109: {}, __VLS_111: {
|
|
46
|
+
}, __VLS_105: {}, __VLS_107: {
|
|
79
47
|
canUpdate: boolean | undefined;
|
|
80
48
|
canDrop: boolean | undefined;
|
|
81
49
|
perms: string[] | undefined;
|
|
82
|
-
},
|
|
50
|
+
}, __VLS_109: {
|
|
83
51
|
canUpdate: boolean | undefined;
|
|
84
52
|
canDrop: boolean | undefined;
|
|
85
53
|
perms: string[] | undefined;
|
|
86
|
-
},
|
|
87
|
-
item: LktObject;
|
|
88
|
-
editMode: boolean;
|
|
89
|
-
isCreate: boolean;
|
|
90
|
-
canUpdate: boolean | undefined;
|
|
91
|
-
canDrop: boolean | undefined;
|
|
92
|
-
}, __VLS_141: {
|
|
93
|
-
item: LktObject;
|
|
94
|
-
editMode: boolean;
|
|
95
|
-
isCreate: boolean;
|
|
96
|
-
canUpdate: boolean | undefined;
|
|
97
|
-
canDrop: boolean;
|
|
98
|
-
}, __VLS_155: {
|
|
99
|
-
item: LktObject;
|
|
100
|
-
editMode: boolean;
|
|
101
|
-
isCreate: boolean;
|
|
102
|
-
canUpdate: boolean | undefined;
|
|
103
|
-
canDrop: boolean | undefined;
|
|
104
|
-
}, __VLS_157: {};
|
|
54
|
+
}, __VLS_147: {};
|
|
105
55
|
type __VLS_Slots = {} & {
|
|
106
|
-
'prev-buttons-ever'?: (props: typeof
|
|
107
|
-
} & {
|
|
108
|
-
'prev-buttons'?: (props: typeof __VLS_7) => any;
|
|
109
|
-
} & {
|
|
110
|
-
'button-save'?: (props: typeof __VLS_21) => any;
|
|
111
|
-
} & {
|
|
112
|
-
'button-save'?: (props: typeof __VLS_35) => any;
|
|
113
|
-
} & {
|
|
114
|
-
'button-drop'?: (props: typeof __VLS_49) => any;
|
|
115
|
-
} & {
|
|
116
|
-
buttons?: (props: typeof __VLS_51) => any;
|
|
117
|
-
} & {
|
|
118
|
-
'prev-buttons-ever'?: (props: typeof __VLS_63) => any;
|
|
119
|
-
} & {
|
|
120
|
-
'prev-buttons'?: (props: typeof __VLS_65) => any;
|
|
121
|
-
} & {
|
|
122
|
-
'button-save'?: (props: typeof __VLS_79) => any;
|
|
123
|
-
} & {
|
|
124
|
-
'button-save'?: (props: typeof __VLS_93) => any;
|
|
56
|
+
'prev-buttons-ever'?: (props: typeof __VLS_9) => any;
|
|
125
57
|
} & {
|
|
126
|
-
'
|
|
58
|
+
'prev-buttons'?: (props: typeof __VLS_11) => any;
|
|
127
59
|
} & {
|
|
128
|
-
buttons?: (props: typeof
|
|
60
|
+
buttons?: (props: typeof __VLS_49) => any;
|
|
129
61
|
} & {
|
|
130
|
-
'prev-buttons-ever'?: (props: typeof
|
|
62
|
+
'prev-buttons-ever'?: (props: typeof __VLS_65) => any;
|
|
131
63
|
} & {
|
|
132
|
-
'prev-buttons'?: (props: typeof
|
|
64
|
+
'prev-buttons'?: (props: typeof __VLS_67) => any;
|
|
133
65
|
} & {
|
|
134
|
-
|
|
66
|
+
buttons?: (props: typeof __VLS_105) => any;
|
|
135
67
|
} & {
|
|
136
|
-
'
|
|
68
|
+
'prev-buttons-ever'?: (props: typeof __VLS_107) => any;
|
|
137
69
|
} & {
|
|
138
|
-
'
|
|
70
|
+
'prev-buttons'?: (props: typeof __VLS_109) => any;
|
|
139
71
|
} & {
|
|
140
|
-
buttons?: (props: typeof
|
|
72
|
+
buttons?: (props: typeof __VLS_147) => any;
|
|
141
73
|
};
|
|
142
74
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
143
75
|
doSave: () => void;
|
|
@@ -147,15 +79,18 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
147
79
|
create: (...args: any[]) => void;
|
|
148
80
|
"update:loading": (...args: any[]) => void;
|
|
149
81
|
"update:editing": (...args: any[]) => void;
|
|
82
|
+
"update:pickedModificationView": (...args: any[]) => void;
|
|
150
83
|
save: (...args: any[]) => void;
|
|
151
84
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
152
85
|
onDrop?: ((...args: any[]) => any) | undefined;
|
|
153
86
|
onCreate?: ((...args: any[]) => any) | undefined;
|
|
154
87
|
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
155
88
|
"onUpdate:editing"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
"onUpdate:pickedModificationView"?: ((...args: any[]) => any) | undefined;
|
|
156
90
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
157
91
|
}>, {
|
|
158
92
|
item: LktObject;
|
|
93
|
+
modifications: LktObject;
|
|
159
94
|
editing: boolean;
|
|
160
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
161
96
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormConfig, LktObject } from 'lkt-vue-kernel';
|
|
2
|
+
import { DataState } from 'lkt-data-state';
|
|
3
|
+
export declare const getModificationsDataState: (value: LktObject, modifications: LktObject, form: FormConfig) => DataState;
|
|
4
|
+
export declare const detectFormFieldsKeys: (form: FormConfig) => string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonConfig, ItemCrudButtonNavPosition, ItemCrudConfig, ItemCrudMode, ItemCrudView, LktObject, ModalConfig, NotificationType } from 'lkt-vue-kernel';
|
|
1
|
+
import { ButtonConfig, ItemCrudButtonNavPosition, ItemCrudConfig, ItemCrudMode, ItemCrudView, LktObject, ModalConfig, ModificationView, NotificationType } from 'lkt-vue-kernel';
|
|
2
2
|
declare var __VLS_17: {
|
|
3
3
|
canUpdate: boolean | undefined;
|
|
4
4
|
canDrop: boolean | undefined;
|
|
@@ -21,7 +21,7 @@ declare var __VLS_17: {
|
|
|
21
21
|
canUpdate: boolean | undefined;
|
|
22
22
|
canDrop: boolean | undefined;
|
|
23
23
|
perms: string[] | undefined;
|
|
24
|
-
},
|
|
24
|
+
}, __VLS_52: {
|
|
25
25
|
item: LktObject;
|
|
26
26
|
loading: false;
|
|
27
27
|
editMode: boolean;
|
|
@@ -30,7 +30,7 @@ declare var __VLS_17: {
|
|
|
30
30
|
canDrop: boolean;
|
|
31
31
|
itemBeingEdited: boolean;
|
|
32
32
|
perms: string[];
|
|
33
|
-
},
|
|
33
|
+
}, __VLS_73: {}, __VLS_75: {};
|
|
34
34
|
type __VLS_Slots = {} & {
|
|
35
35
|
'prev-buttons-ever'?: (props: typeof __VLS_17) => any;
|
|
36
36
|
} & {
|
|
@@ -44,11 +44,11 @@ type __VLS_Slots = {} & {
|
|
|
44
44
|
} & {
|
|
45
45
|
'prev-buttons'?: (props: typeof __VLS_38) => any;
|
|
46
46
|
} & {
|
|
47
|
-
item?: (props: typeof
|
|
47
|
+
item?: (props: typeof __VLS_52) => any;
|
|
48
48
|
} & {
|
|
49
|
-
'prev-buttons-ever'?: (props: typeof
|
|
49
|
+
'prev-buttons-ever'?: (props: typeof __VLS_73) => any;
|
|
50
50
|
} & {
|
|
51
|
-
'prev-buttons'?: (props: typeof
|
|
51
|
+
'prev-buttons'?: (props: typeof __VLS_75) => any;
|
|
52
52
|
};
|
|
53
53
|
declare const __VLS_component: import("vue").DefineComponent<ItemCrudConfig, {
|
|
54
54
|
doDrop: () => void;
|
|
@@ -67,6 +67,8 @@ declare const __VLS_component: import("vue").DefineComponent<ItemCrudConfig, {
|
|
|
67
67
|
"update:modelValue": (...args: any[]) => void;
|
|
68
68
|
"update:perms": (...args: any[]) => void;
|
|
69
69
|
"update:customData": (...args: any[]) => void;
|
|
70
|
+
"update:modifications": (...args: any[]) => void;
|
|
71
|
+
"update:modificationView": (...args: any[]) => void;
|
|
70
72
|
"before-save": (...args: any[]) => void;
|
|
71
73
|
"modified-data": (...args: any[]) => void;
|
|
72
74
|
}, string, import("vue").PublicProps, Readonly<ItemCrudConfig> & Readonly<{
|
|
@@ -80,12 +82,16 @@ declare const __VLS_component: import("vue").DefineComponent<ItemCrudConfig, {
|
|
|
80
82
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
81
83
|
"onUpdate:perms"?: ((...args: any[]) => any) | undefined;
|
|
82
84
|
"onUpdate:customData"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onUpdate:modifications"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onUpdate:modificationView"?: ((...args: any[]) => any) | undefined;
|
|
83
87
|
"onBefore-save"?: ((...args: any[]) => any) | undefined;
|
|
84
88
|
"onModified-data"?: ((...args: any[]) => any) | undefined;
|
|
85
89
|
}>, {
|
|
86
90
|
view: ItemCrudView;
|
|
91
|
+
form: import("lkt-vue-kernel").FormConfig;
|
|
87
92
|
title: string;
|
|
88
93
|
mode: ItemCrudMode;
|
|
94
|
+
modifications: LktObject;
|
|
89
95
|
modelValue: LktObject;
|
|
90
96
|
events: {
|
|
91
97
|
httpStart?: undefined | Function;
|
|
@@ -94,6 +100,8 @@ declare const __VLS_component: import("vue").DefineComponent<ItemCrudConfig, {
|
|
|
94
100
|
editing: boolean;
|
|
95
101
|
perms: import("lkt-vue-kernel").ValidTablePermission[];
|
|
96
102
|
customData: LktObject;
|
|
103
|
+
visibleView: ModificationView;
|
|
104
|
+
modificationViews: boolean | Array<ModificationView>;
|
|
97
105
|
editModeButton: ButtonConfig | false;
|
|
98
106
|
dropButton: ButtonConfig | false;
|
|
99
107
|
createButton: ButtonConfig | false;
|
|
@@ -112,6 +120,7 @@ declare const __VLS_component: import("vue").DefineComponent<ItemCrudConfig, {
|
|
|
112
120
|
enabledSaveWithoutChanges: boolean;
|
|
113
121
|
redirectOnCreate: string | ((id: number | string) => string);
|
|
114
122
|
redirectOnDrop: string | (() => string);
|
|
123
|
+
differencesTableConfig: import("lkt-vue-kernel").TableConfig | ((config: import("lkt-vue-kernel").TableConfig) => import("lkt-vue-kernel").TableConfig);
|
|
115
124
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
125
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
117
126
|
export default _default;
|