@dile/crud 2.5.21 → 2.5.22
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.
|
@@ -36,20 +36,26 @@ export class DileCrudListItem extends LitElement {
|
|
|
36
36
|
text-align: right;
|
|
37
37
|
}
|
|
38
38
|
dile-button.action-button {
|
|
39
|
-
--dile-button-background-color: transparent;
|
|
40
|
-
--dile-button-border-color: transparent;
|
|
41
|
-
--dile-button-hover-background-color: var(--dile-neutral-color, transparent);
|
|
42
|
-
--dile-button-hover-border-color: transparent;
|
|
39
|
+
--dile-button-background-color: var(--dile-crud-list-item-action-button-background-color, transparent);
|
|
40
|
+
--dile-button-border-color: var(--dile-crud-list-item-action-button-border-color, transparent);
|
|
41
|
+
--dile-button-hover-background-color: var(--dile-crud-list-item-action-button-hover-background-color, var(--dile-neutral-color, transparent));
|
|
42
|
+
--dile-button-hover-border-color: var(--dile-crud-list-item-action-button-hover-border-color, transparent);
|
|
43
|
+
--dile-button-padding-y: var(--dile-crud-list-item-action-button-padding-y, 0.25rem);
|
|
44
|
+
--dile-button-padding-x: var(--dile-crud-list-item-action-button-padding-x, 0.25rem);
|
|
45
|
+
--dile-button-icon-size: var(--dile-crud-list-item-action-button-icon-size, 24px);
|
|
46
|
+
--dile-button-border-radius: var(--dile-crud-list-item-action-button-border-radius, 2rem);
|
|
47
|
+
}
|
|
48
|
+
dile-button.action-button.edit {
|
|
43
49
|
--dile-button-icon-color: var(--edit-icon-color, var(--dile-alert-neutral-color, #2889a7));
|
|
44
|
-
--dile-button-
|
|
45
|
-
--dile-button-padding-x: 0.25rem;
|
|
46
|
-
--dile-button-icon-size: 24px;
|
|
50
|
+
--dile-button-hover-text-color: var(--dile-crud-list-item-edit-icon-hover-color, var(--edit-icon-color, var(--dile-alert-neutral-color, #2889a7)));
|
|
47
51
|
}
|
|
48
|
-
dile-button.delete {
|
|
52
|
+
dile-button.action-button.delete {
|
|
49
53
|
--dile-button-icon-color: var(--delete-icon-color, var(--dile-danger-color, #e33));
|
|
54
|
+
--dile-button-hover-text-color: var(--dile-crud-list-item-delete-icon-hover-color, var(--delete-icon-color, var(--dile-danger-color, #e33)));
|
|
50
55
|
}
|
|
51
|
-
dile-button.restore {
|
|
56
|
+
dile-button.action-button.restore {
|
|
52
57
|
--dile-button-icon-color: var(--restore-icon-color, var(--dile-alert-success-color, #00900f));
|
|
58
|
+
--dile-button-hover-text-color: var(--dile-crud-list-item-restore-icon-hover-color, var(--restore-icon-color, var(--dile-alert-success-color, #00900f)));
|
|
53
59
|
}
|
|
54
60
|
@media(min-width: 550px) {
|
|
55
61
|
section {
|
|
@@ -105,7 +111,7 @@ export class DileCrudListItem extends LitElement {
|
|
|
105
111
|
return html`
|
|
106
112
|
${this.disableEdit
|
|
107
113
|
? ''
|
|
108
|
-
: html`<dile-button class="action-button" icon="material.edit" label="Edit" @click=${this.editClick}></dile-button>`
|
|
114
|
+
: html`<dile-button class="action-button edit" icon="material.edit" label="Edit" @click=${this.editClick}></dile-button>`
|
|
109
115
|
}
|
|
110
116
|
${this.disableDelete
|
|
111
117
|
? ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/crud",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.22",
|
|
4
4
|
"description": "Components to create a generic crud system based on Web Components and Lit",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "b6000357280d1ec8539a5adfc0cbfeadf1a1a064"
|
|
36
36
|
}
|