@dile/crud 1.5.1 → 1.5.2

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.
@@ -33,6 +33,10 @@ export class DileAjax extends DileAxios(DileI18nMixin(LitElement)) {
33
33
 
34
34
  generateRequest() {
35
35
  let request;
36
+ this.dispatchEvent(new CustomEvent('dile-ajax-request-start', {
37
+ bubbles: true,
38
+ composed: true
39
+ }));
36
40
  if(this.sendDataAsFormData) {
37
41
  this._prepareFormData();
38
42
  }
@@ -70,6 +74,10 @@ export class DileAjax extends DileAxios(DileI18nMixin(LitElement)) {
70
74
  })
71
75
  .finally(() => {
72
76
  this.formData = null;
77
+ this.dispatchEvent(new CustomEvent('dile-ajax-request-end', {
78
+ bubbles: true,
79
+ composed: true
80
+ }));
73
81
  });
74
82
  }
75
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
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": "8fb4049d780b8cbd0b8a74296fd9983d499f9d4d"
34
+ "gitHead": "cb5c0c969e983dce3a5b6a864bed1eaf0795e97c"
35
35
  }