@dile/crud 0.0.28 → 0.0.30
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.
|
@@ -2,8 +2,9 @@ import { LitElement, html, css } from 'lit';
|
|
|
2
2
|
import '../../ajax-form/ajax-form.js'
|
|
3
3
|
import { formStyles } from '../../../styles/form-styles.js';
|
|
4
4
|
import { ResponseApiAdapter } from '../../../lib/ResponseApiAdapter.js';
|
|
5
|
+
import { DileI18nMixin } from '../../../lib/DileI18nMixin.js';
|
|
5
6
|
|
|
6
|
-
export class DileCrudInsert extends LitElement {
|
|
7
|
+
export class DileCrudInsert extends DileI18nMixin(LitElement) {
|
|
7
8
|
static styles = [
|
|
8
9
|
formStyles,
|
|
9
10
|
css`
|
|
@@ -51,6 +52,7 @@ export class DileCrudInsert extends LitElement {
|
|
|
51
52
|
?buttonSmall="${this.buttonSmall}"
|
|
52
53
|
.responseAdapter="${this.responseAdapter}"
|
|
53
54
|
formIdentifier="${this.formIdentifier}"
|
|
55
|
+
language="${this.language}"
|
|
54
56
|
>
|
|
55
57
|
${this.formTemplate(this.belongsTo, this.relationId)}
|
|
56
58
|
</dile-ajax-form>
|
|
@@ -2,8 +2,9 @@ import { LitElement, html, css } from 'lit';
|
|
|
2
2
|
import '../../ajax-form/ajax-form.js'
|
|
3
3
|
import { formStyles } from '../../../styles/form-styles.js';
|
|
4
4
|
import { ResponseApiAdapter } from '../../../lib/ResponseApiAdapter.js';
|
|
5
|
+
import { DileI18nMixin } from '../../../lib/DileI18nMixin.js';
|
|
5
6
|
|
|
6
|
-
export class DileCrudUpdate extends LitElement {
|
|
7
|
+
export class DileCrudUpdate extends DileI18nMixin(LitElement) {
|
|
7
8
|
static styles = [
|
|
8
9
|
formStyles,
|
|
9
10
|
css`
|
|
@@ -54,6 +55,7 @@ export class DileCrudUpdate extends LitElement {
|
|
|
54
55
|
?loadOnInit="${this.loadOnInit}"
|
|
55
56
|
.responseAdapter="${this.responseAdapter}"
|
|
56
57
|
formIdentifier="${this.formIdentifier}"
|
|
58
|
+
language="${this.language}"
|
|
57
59
|
>
|
|
58
60
|
${this.formTemplate()}
|
|
59
61
|
</dile-ajax-form>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
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": "
|
|
34
|
+
"gitHead": "96692014323213826518042dd3b3a4e135f030cd"
|
|
35
35
|
}
|