@dile/crud 1.10.14 → 1.10.16

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.
@@ -16,7 +16,7 @@ export class DileCrudListItem extends LitElement {
16
16
  overflow: hidden;
17
17
  display: flex;
18
18
  align-items: center;
19
- padding: 0.5rem 0.5rem;
19
+ padding: var(--dile-crud-list-item-padding, 0.5rem 0.5rem);
20
20
  border-bottom: var(--dile-crud-list-item-line-separator, 1px solid #ddd);
21
21
  }
22
22
  dile-checkbox {
@@ -44,7 +44,7 @@ export class DileCrudListItem extends LitElement {
44
44
  }
45
45
  @media(min-width: 550px) {
46
46
  section {
47
- padding: 0.5rem 1rem;
47
+ padding: var(--dile-crud-list-item-padding, 0.5rem 1rem);
48
48
  }
49
49
  }
50
50
  `
@@ -81,9 +81,11 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
81
81
  <main class="elcontainer">
82
82
  ${this.detailTemplate}
83
83
  <div class="actions" @action-success=${this.actionSuccess}>
84
- <dile-button gray .icon="${editIcon}" @click=${this.edit}>
85
- ${this.startUpdateLabelComputed(this.config.labels.startUpdateAction, this.translations)}
86
- </dile-button>
84
+ ${!this.config?.customization?.disableEdit ? html`
85
+ <dile-button .icon="${editIcon}" @click=${this.edit}>
86
+ ${this.startUpdateLabelComputed(this.config.labels.startUpdateAction, this.translations)}
87
+ </dile-button>
88
+ ` : ''}
87
89
  ${this.actionsTemplate}
88
90
  </div>
89
91
  </main>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "1.10.14",
3
+ "version": "1.10.16",
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": "8ed3ed0cd454dddf99c948baa272aac242e90030"
34
+ "gitHead": "ac159d7d1e59630ff425386d67e4ebdfd9dede4f"
35
35
  }