@dile/crud 1.9.4 → 1.9.6

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.
@@ -145,8 +145,14 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
145
145
  }
146
146
 
147
147
  edit() {
148
- this.updateElement.edit(this.relatedId);
149
- this.modalUpdate.open();
148
+ if (this.config.updateOperation?.type === 'modal') {
149
+ this.updateElement.edit(this.relatedId);
150
+ this.modalUpdate.open();
151
+ } else if (this.config.updateOperation?.type == 'handler') {
152
+ this.config.updateOperation.handler(this.relatedId, this);
153
+ }
154
+
155
+
150
156
  }
151
157
 
152
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
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.21.4",
27
+ "@dile/ui": "^2.22.1",
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": "f3d7061476125162d6d9822928d40dc15e110c6c"
34
+ "gitHead": "20de388e2c9140eb18f37c5f4102efc1da4b955a"
35
35
  }