@dile/crud 1.9.5 → 1.9.7

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.
package/README.md CHANGED
@@ -2,4 +2,8 @@
2
2
 
3
3
  Components to create a generic crud system based on Web Components and Lit.
4
4
 
5
- This is a "work in progress"...
5
+ `@dile/crud` is a complete set for creating advanced and fully configurable CRUD systems. Thanks to these components and utilities, you can **build administration panels**, avoiding tedious and repetitive tasks.
6
+
7
+ This CRUD system is designed to communicate via Ajax with a backend that exposes data and resource operations as a REST API. You can adjust everything from its appearance to the backend communications, so it adapts to the format of requests or responses.
8
+
9
+ Find more information on [Dile components CRUD documentation page](https://dile-components.com/crud/).
@@ -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.5",
3
+ "version": "1.9.7",
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.22.0",
27
+ "@dile/ui": "^2.23.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": "2347a53611364de73ace21a1ce421d5ac77a8717"
34
+ "gitHead": "47e4ddf20a4d15b4fb71f13724872ffdc06cfb0c"
35
35
  }