@dile/crud 0.2.3 → 0.2.4
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.
|
@@ -342,7 +342,8 @@ export class DileCrud extends DileI18nMixin(DileCrudMixin(LitElement)) {
|
|
|
342
342
|
}
|
|
343
343
|
this.refresh();
|
|
344
344
|
if(this.config.onActionListSuccess) {
|
|
345
|
-
this.config.onActionListSuccess(
|
|
345
|
+
const handler = this.config.onActionListSuccess.bind(this);
|
|
346
|
+
handler(e.detail);
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
349
|
|
|
@@ -138,7 +138,8 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
|
|
|
138
138
|
this.refresh();
|
|
139
139
|
}
|
|
140
140
|
if(this.config.onActionSingleSuccess) {
|
|
141
|
-
this.config.onActionSingleSuccess(
|
|
141
|
+
const handler = this.config.onActionSingleSuccess.bind(this);
|
|
142
|
+
handler(e.detail);
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
|
package/lib/defaultConfig.js
CHANGED
|
@@ -74,6 +74,6 @@ export const defaultConfig = {
|
|
|
74
74
|
insertForm: 'insertform',
|
|
75
75
|
updateForm: 'updateform',
|
|
76
76
|
},
|
|
77
|
-
onActionListSuccess
|
|
78
|
-
onActionSingleSuccess
|
|
77
|
+
onActionListSuccess(actionSuccessDetail) {},
|
|
78
|
+
onActionSingleSuccess(actionSuccessDetail) {},
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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": "288f042877f824f3bbc38861ccca9ebd7e713f3d"
|
|
35
35
|
}
|