@dile/crud 2.15.2 → 2.15.3

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.
@@ -22,6 +22,10 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
22
22
  css`
23
23
  :host {
24
24
  display: block;
25
+ /* Values received from outside, captured here so inner elements can use
26
+ them as fallbacks while reassigning the same variables. */
27
+ --_dile-crud-single-outer-button-text-transform: var(--dile-button-text-transform, none);
28
+ --_dile-crud-single-outer-list-options-text-transform: var(--dile-crud-list-options-text-transform);
25
29
  }
26
30
  main.elcontainer {
27
31
  margin-bottom: 1.5rem;
@@ -117,6 +121,10 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
117
121
  rendered by dile-crud-list-options inside dile-crud-actions. */
118
122
  --dile-button-justify-content: var(--dile-crud-single-group-action-justify-content, center);
119
123
  --dile-button-text-align: var(--dile-crud-single-group-action-text-align, center);
124
+ /* Edit, direct actions and the "Actions" menu read --dile-crud-list-options-text-transform.
125
+ Assigned here (not --dile-button-text-transform) so it does not reach the
126
+ buttons of the batch actions dropdown or its confirm modal. */
127
+ --dile-crud-list-options-text-transform: var(--dile-crud-single-group-action-text-transform, var(--_dile-crud-single-outer-list-options-text-transform));
120
128
  }
121
129
  aside.sidebar .action-controller {
122
130
  margin-left: 0;
@@ -166,6 +174,7 @@ export class DileCrudSingle extends DileI18nMixin(DileCrudMixin(LitElement)) {
166
174
  --dile-button-padding-x: var(--dile-crud-single-group-action-padding-x, 0.8rem);
167
175
  --dile-button-justify-content: var(--dile-crud-single-group-action-justify-content, center);
168
176
  --dile-button-text-align: var(--dile-crud-single-group-action-text-align, center);
177
+ --dile-button-text-transform: var(--dile-crud-single-group-action-text-transform, var(--_dile-crud-single-outer-button-text-transform));
169
178
  }
170
179
  .group-action.variant-primary {
171
180
  --dile-button-background-color: var(--dile-crud-single-action-primary-background-color, var(--dile-primary-color, #7BB93D));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "2.15.2",
3
+ "version": "2.15.3",
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",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "532a9887756f0ab0bfb175079fa77c4aa03dcb5f"
36
+ "gitHead": "a5a56ae1cac60e478705ef3dad74156f0b7397c0"
37
37
  }