@dile/crud 0.0.53 → 0.0.55
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.
|
@@ -32,6 +32,16 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
32
32
|
--dile-button-hover-text-color: var(--dile-ajax-form-cancel-button-hover-text-color, #303030);
|
|
33
33
|
--dile-button-hover-border-color: var(--dile-ajax-form-cancel-button-hover-border-color, #303030);
|
|
34
34
|
}
|
|
35
|
+
:host([inline]) section {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
:host([inline]) dile-inline-feedback {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
:host([hidefeedback]) dile-inline-feedback {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
35
45
|
`
|
|
36
46
|
];
|
|
37
47
|
|
|
@@ -97,12 +107,14 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
97
107
|
render() {
|
|
98
108
|
return html`
|
|
99
109
|
${this.ajaxComponents}
|
|
110
|
+
<section>
|
|
100
111
|
<slot></slot>
|
|
101
112
|
<dile-inline-feedback id="feedback"></dile-inline-feedback>
|
|
102
113
|
<div class="actions">
|
|
103
114
|
<dile-button @click=${this.doAction}>${this.actionLabelComputed(this.actionLabel, this.translations, this.operation)}</dile-button>
|
|
104
115
|
${this.showCancelButton ? html`<dile-button class="cancel_button" @click=${this.doCancel}>${this.translations.cancel_label}</dile-button>` : ''}
|
|
105
116
|
</div>
|
|
117
|
+
</section>
|
|
106
118
|
`;
|
|
107
119
|
}
|
|
108
120
|
|
|
@@ -259,7 +271,8 @@ export class DileAjaxForm extends DileI18nMixin(LitElement) {
|
|
|
259
271
|
bubbles: true,
|
|
260
272
|
composed: true,
|
|
261
273
|
detail: {
|
|
262
|
-
data: this.form.getData()
|
|
274
|
+
data: this.form.getData(),
|
|
275
|
+
isDirty: this.form.isDirty(),
|
|
263
276
|
}
|
|
264
277
|
}));
|
|
265
278
|
}
|
|
@@ -116,6 +116,7 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
|
|
|
116
116
|
@crud-action-success=${this.actionSuccess}
|
|
117
117
|
language="${this.language}"
|
|
118
118
|
.element=${this.element}
|
|
119
|
+
.responseAdapter=${this.config.responseAdapter}
|
|
119
120
|
></dile-crud-single-actions>
|
|
120
121
|
`
|
|
121
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
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.polydile.com/",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@dile/ui": "^2.1.
|
|
27
|
+
"@dile/ui": "^2.1.30",
|
|
28
28
|
"axios": "^1.7.2",
|
|
29
29
|
"lit": "^2.7.0 || ^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8f71392b64dc49d9049cf98d1087dcb2d841c5df"
|
|
35
35
|
}
|