@dile/crud 2.2.7 → 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._refreshList();
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._clearSelect();
272
- this._refreshList();
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._refreshList();
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
- _refreshList() {
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
- _clearSelect() {
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.7",
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",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "38fa60c43d27a6b9d083a0d5be2e3be4b2a67f00"
35
+ "gitHead": "1255147fa9d7247f77899a2da1af6f00bf4a31cd"
36
36
  }