@dile/crud 1.12.4 → 1.12.5
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.
|
@@ -257,7 +257,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
257
257
|
this._ajaxadd.generateRequest();
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
_onAddSuccess() {
|
|
260
|
+
_onAddSuccess(e) {
|
|
261
261
|
this._selectedId = null;
|
|
262
262
|
this._clearSelect();
|
|
263
263
|
this._refreshList();
|
|
@@ -265,11 +265,11 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
265
265
|
this.message = '';
|
|
266
266
|
this.errored = false;
|
|
267
267
|
}
|
|
268
|
-
this._dispatch('many-relation-add-success');
|
|
268
|
+
this._dispatch('many-relation-add-success', e.detail);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
_onAddError() {
|
|
272
|
-
this._dispatch('many-relation-add-error');
|
|
271
|
+
_onAddError(e) {
|
|
272
|
+
this._dispatch('many-relation-add-error', e.detail);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
_removeItem(item) {
|
|
@@ -312,8 +312,12 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
_dispatch(eventName) {
|
|
316
|
-
this.dispatchEvent(new CustomEvent(eventName, {
|
|
315
|
+
_dispatch(eventName, detail = null) {
|
|
316
|
+
this.dispatchEvent(new CustomEvent(eventName, {
|
|
317
|
+
bubbles: true,
|
|
318
|
+
composed: true,
|
|
319
|
+
detail
|
|
320
|
+
}));
|
|
317
321
|
}
|
|
318
322
|
|
|
319
323
|
addRelationLabelComputed(label, translations) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
4
4
|
"description": "Components to create a generic crud system based on Web Components and Lit",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://dile-components.com/",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@dile/ui": "^2.
|
|
27
|
+
"@dile/ui": "^2.25.0",
|
|
28
28
|
"axios": "^1.16.0",
|
|
29
29
|
"lit": "^2.7.0 || ^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "f65c62d5678f82edf5c921058c7e25dfc6ee2922"
|
|
35
35
|
}
|