@dile/crud 2.2.6 → 2.2.8
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.
|
@@ -165,7 +165,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
165
165
|
this._ajaxrem = this.shadowRoot.getElementById('ajaxrem');
|
|
166
166
|
|
|
167
167
|
if (this.loadFromEndpoint) {
|
|
168
|
-
this.
|
|
168
|
+
this.refreshList();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -268,8 +268,8 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
268
268
|
|
|
269
269
|
_onAddSuccess(e) {
|
|
270
270
|
this._selectedId = null;
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
271
|
+
this.clearSelect();
|
|
272
|
+
this.refreshList();
|
|
273
273
|
if (this.hideErrorOnInput && this.errored) {
|
|
274
274
|
this.message = '';
|
|
275
275
|
this.errored = false;
|
|
@@ -290,7 +290,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
290
290
|
|
|
291
291
|
_onRemoveSuccess() {
|
|
292
292
|
this._removingItemId = undefined;
|
|
293
|
-
this.
|
|
293
|
+
this.refreshList();
|
|
294
294
|
this._dispatch('many-relation-remove-success');
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -299,7 +299,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
299
299
|
this._dispatch('many-relation-remove-error');
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
refreshList() {
|
|
303
303
|
this._loadingList = true;
|
|
304
304
|
this.updateComplete.then(() => this._ajaxlist.generateRequest());
|
|
305
305
|
}
|
|
@@ -314,7 +314,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
314
314
|
this._dispatch('many-relation-list-error');
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
clearSelect() {
|
|
318
318
|
const select = this.shadowRoot.getElementById('theselect');
|
|
319
319
|
if (select) {
|
|
320
320
|
select.clear();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"description": "Components to create a generic crud system based on Web Components and Lit",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://dile-components.com/",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dile/ui": "^3.
|
|
28
|
+
"@dile/ui": "^3.6.0",
|
|
29
29
|
"axios": "^1.19.0",
|
|
30
30
|
"lit": "^2.7.0 || ^3.0.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "1255147fa9d7247f77899a2da1af6f00bf4a31cd"
|
|
36
36
|
}
|