@dile/crud 1.10.5 → 1.10.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.
|
@@ -35,6 +35,10 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
35
35
|
font-size: var(--many-relation-item-font-size, 0.9rem);
|
|
36
36
|
color: var(--many-relation-item-color, inherit);
|
|
37
37
|
}
|
|
38
|
+
.relation-item > dile-icon {
|
|
39
|
+
--dile-icon-color: var(--many-relation-list-icon-color, #666);
|
|
40
|
+
--dile-icon-size: var(--many-relation-list-icon-size, 24px);
|
|
41
|
+
}
|
|
38
42
|
button.remove-btn,
|
|
39
43
|
button.add-btn {
|
|
40
44
|
background: none;
|
|
@@ -111,6 +115,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
111
115
|
// Related list customisation
|
|
112
116
|
itemTemplate: { type: Object },
|
|
113
117
|
getListItems: { type: Object },
|
|
118
|
+
listIcon: { type: Object },
|
|
114
119
|
addRelationLabel: { type: String },
|
|
115
120
|
emptyListMessage: { type: String },
|
|
116
121
|
bodyIdProperty: { type: String },
|
|
@@ -212,6 +217,7 @@ export class DileManyRelation extends DileI18nMixin(LitElement) {
|
|
|
212
217
|
? html`<p class="empty-msg">${this.emptyListMessageComputed(this.emptyListMessage, this.translations)}</p>`
|
|
213
218
|
: this._items.map(item => html`
|
|
214
219
|
<div class="relation-item">
|
|
220
|
+
${this.listIcon ? html`<dile-icon .icon="${this.listIcon}"></dile-icon>` : ''}
|
|
215
221
|
<span class="relation-item-content">${this.itemTemplate(item)}</span>
|
|
216
222
|
<button
|
|
217
223
|
class="remove-btn"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.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.23.
|
|
27
|
+
"@dile/ui": "^2.23.10",
|
|
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": "
|
|
34
|
+
"gitHead": "d7a4a5656ebfc843fb67a8c8c81d83cab95a7429"
|
|
35
35
|
}
|