@dile/crud 0.2.2 → 0.2.3
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.
|
@@ -341,6 +341,9 @@ export class DileCrud extends DileI18nMixin(DileCrudMixin(LitElement)) {
|
|
|
341
341
|
this.removeActionItems(e.detail.data.delete_elems);
|
|
342
342
|
}
|
|
343
343
|
this.refresh();
|
|
344
|
+
if(this.config.onActionListSuccess) {
|
|
345
|
+
this.config.onActionListSuccess(e.detail);
|
|
346
|
+
}
|
|
344
347
|
}
|
|
345
348
|
|
|
346
349
|
removeActionItems(idsArray) {
|
|
@@ -137,6 +137,9 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
|
|
|
137
137
|
if(e.detail.action != "DeleteAction") {
|
|
138
138
|
this.refresh();
|
|
139
139
|
}
|
|
140
|
+
if(this.config.onActionSingleSuccess) {
|
|
141
|
+
this.config.onActionSingleSuccess(e.detail);
|
|
142
|
+
}
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
edit() {
|
package/lib/defaultConfig.js
CHANGED
|
@@ -68,16 +68,12 @@ export const defaultConfig = {
|
|
|
68
68
|
formSingleActions: () => '',
|
|
69
69
|
},
|
|
70
70
|
labels: {
|
|
71
|
-
|
|
72
|
-
// updateAction: 'Save',
|
|
73
|
-
// startUpdateAction: 'Edit',
|
|
74
|
-
// insertWindowTitle: 'Create an item',
|
|
75
|
-
// updateWindowTitle: 'Update an item',
|
|
76
|
-
// helpTitle: 'Help',
|
|
77
|
-
// helpButtonLabel: 'Help',
|
|
71
|
+
|
|
78
72
|
},
|
|
79
73
|
formIds: {
|
|
80
74
|
insertForm: 'insertform',
|
|
81
75
|
updateForm: 'updateform',
|
|
82
76
|
},
|
|
77
|
+
onActionListSuccess: (actionSuccessDetail) => {},
|
|
78
|
+
onActionSingleSuccess: (actionSuccessDetail) => {},
|
|
83
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Components to create a generic crud system based on Web Components and Lit",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "9c6b9c904dc871f0e9067b4e4aeaa101f679c305"
|
|
35
35
|
}
|