@statistikzh/leu 0.12.2 → 0.13.1
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.
- package/.storybook/preview-head.html +1 -4
- package/.storybook/static/fonts/Inter-Black.woff2 +0 -0
- package/.storybook/static/fonts/Inter-Regular.woff2 +0 -0
- package/.storybook/static/fonts.css +11 -0
- package/CHANGELOG.md +18 -0
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +64 -34
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +5 -4
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.d.ts +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +3 -2
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +6 -2
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-519af050.d.ts → LeuElement-b670d77c.d.ts} +1 -1
- package/dist/LeuElement-b670d77c.d.ts.map +1 -0
- package/dist/{LeuElement-519af050.js → LeuElement-b670d77c.js} +11 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +2 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.js +3 -3
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -3
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +49 -20
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/{hasSlotController-bf769658.d.ts → hasSlotController-c09741c5.d.ts} +1 -1
- package/dist/{hasSlotController-bf769658.d.ts.map → hasSlotController-c09741c5.d.ts.map} +1 -1
- package/dist/{hasSlotController-bf769658.js → hasSlotController-c09741c5.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +2 -2
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +2 -2
- package/dist/leu-dropdown.js +2 -2
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/web-types.json +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/components/button/Button.js +8 -3
- package/src/components/button/button.css +56 -22
- package/src/components/button/stories/button.stories.js +1 -0
- package/src/components/button/test/button.test.js +3 -3
- package/src/components/chip/chip.css +4 -3
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/dropdown/dropdown.css +1 -0
- package/src/components/icon/icon.css +4 -0
- package/src/components/popup/popup.css +1 -0
- package/src/components/select/select.css +1 -1
- package/src/components/select/test/select.test.js +1 -0
- package/src/components/table/Table.js +33 -15
- package/src/components/table/table.css +16 -6
- package/src/styles/common-styles.css +9 -0
- package/web-test-runner.config.mjs +1 -0
- package/dist/LeuElement-519af050.d.ts.map +0 -1
package/dist/RadioGroup.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export class LeuRadioGroup extends LeuElement {
|
|
|
16
16
|
initializeIndex(): void;
|
|
17
17
|
render(): import("lit-html").TemplateResult<1>;
|
|
18
18
|
}
|
|
19
|
-
import { L as LeuElement } from './LeuElement-
|
|
19
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
20
20
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
package/dist/RadioGroup.js
CHANGED
package/dist/Range.d.ts
CHANGED
|
@@ -56,5 +56,5 @@ export class LeuRange extends LeuElement {
|
|
|
56
56
|
}): void;
|
|
57
57
|
render(): import("lit-html").TemplateResult<1>;
|
|
58
58
|
}
|
|
59
|
-
import { L as LeuElement } from './LeuElement-
|
|
59
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
60
60
|
//# sourceMappingURL=Range.d.ts.map
|
package/dist/Range.js
CHANGED
package/dist/ScrollTop.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export class LeuScrollTop extends LeuElement {
|
|
|
15
15
|
_scrollListener: Function;
|
|
16
16
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
17
|
}
|
|
18
|
-
import { L as LeuElement } from './LeuElement-
|
|
18
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { LeuButton } from './Button.js';
|
|
5
5
|
import { LeuIcon } from './Icon.js';
|
|
6
6
|
import { t as throttle } from './utils-65469421.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
|
-
import './hasSlotController-
|
|
8
|
+
import './hasSlotController-c09741c5.js';
|
|
9
9
|
|
|
10
10
|
var css_248z = css`.scroll-top {
|
|
11
11
|
overflow: hidden;
|
package/dist/Select.d.ts
CHANGED
|
@@ -131,6 +131,6 @@ export class LeuSelect extends LeuElement {
|
|
|
131
131
|
_renderToggleButton(): import("lit-html").TemplateResult<1>;
|
|
132
132
|
render(): import("lit-html").TemplateResult<1>;
|
|
133
133
|
}
|
|
134
|
-
import { L as LeuElement } from './LeuElement-
|
|
134
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
135
135
|
import { nothing } from 'lit';
|
|
136
136
|
//# sourceMappingURL=Select.d.ts.map
|
package/dist/Select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
-
import { H as HasSlotController } from './hasSlotController-
|
|
6
|
+
import { H as HasSlotController } from './hasSlotController-c09741c5.js';
|
|
7
7
|
import { LeuButton } from './Button.js';
|
|
8
8
|
import { LeuMenu } from './Menu.js';
|
|
9
9
|
import { LeuMenuItem } from './MenuItem.js';
|
|
@@ -79,7 +79,7 @@ var css_248z = css`:host {
|
|
|
79
79
|
line-height: 1.5;
|
|
80
80
|
padding: 1.375rem 3rem 1.375rem 1rem;
|
|
81
81
|
|
|
82
|
-
background:
|
|
82
|
+
background: var(--leu-color-black-0);
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
text-overflow: ellipsis;
|
|
85
85
|
white-space: nowrap;
|
package/dist/Spinner.d.ts
CHANGED
package/dist/Spinner.js
CHANGED
package/dist/Table.d.ts
CHANGED
|
@@ -32,13 +32,11 @@ export class LeuTable extends LeuElement {
|
|
|
32
32
|
isOnePropNotValid(): "Der Parameter 'columns' ist erforderlich !" | "Der Parameter 'data' ist erforderlich !";
|
|
33
33
|
isSorted(col: any): boolean;
|
|
34
34
|
sortClick(col: any): void;
|
|
35
|
-
sortOrder: string;
|
|
36
35
|
sortArrowIcon(): import("lit-html").TemplateResult<1>;
|
|
37
|
-
sortArrow(col: any): import("lit-html").TemplateResult<1>;
|
|
38
36
|
get _columns(): any[];
|
|
39
37
|
get _sortedData(): any[];
|
|
40
38
|
get _data(): any[];
|
|
41
39
|
render(): import("lit-html").TemplateResult<1>;
|
|
42
40
|
}
|
|
43
|
-
import { L as LeuElement } from './LeuElement-
|
|
41
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
44
42
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"AAgIA;;GAEG;AACH;IAGI,oBAAoB;IACpB,eAAiB;IACjB,oBAAoB;IACpB,YAAc;IACd,sBAAsB;IACtB,mBADW,OAAO,CACY;IAC9B,qBAAqB;IACrB,cADW,MAAM,CACO;IACxB,qBAAqB;IACrB,WADW,MAAM,CACI;IACrB,sBAAsB;IACtB,cADW,OAAO,CACO;IACzB,qBAAqB;IACrB,OADW,MAAM,CACA;IAEjB,gBAAgB;IAChB,qBAAwB;IACxB,gBAAgB;IAChB,sBAAyB;IACzB,gBAAgB;IAChB,8DAA6B;IAE7B,gBAAgB;IAChB,cAAc;IACd,gCAEE;IAKJ,oEAKC;IACD,qBAGC;IACD,gCAGC;IACD,8BAEC;IACD,8GAQC;IACD,4BAEC;IACD,0BAQC;IACD,sDAIC;IACD,sBAEC;IACD,yBAMC;IACD,mBAEC;IACD,+CAqFC;CACF;gCAnTqD,0BAA0B"}
|
package/dist/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
@@ -8,7 +8,7 @@ import { LeuPagination } from './Pagination.js';
|
|
|
8
8
|
import 'lit/directives/live.js';
|
|
9
9
|
import './Button.js';
|
|
10
10
|
import 'lit/directives/if-defined.js';
|
|
11
|
-
import './hasSlotController-
|
|
11
|
+
import './hasSlotController-c09741c5.js';
|
|
12
12
|
import './VisuallyHidden.js';
|
|
13
13
|
|
|
14
14
|
var css_248z = css`:host {
|
|
@@ -79,20 +79,30 @@ button {
|
|
|
79
79
|
line-height: 1.5;
|
|
80
80
|
padding: 0;
|
|
81
81
|
border: 0;
|
|
82
|
-
width: 100%;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: flex-center;
|
|
85
82
|
font-size: inherit;
|
|
86
83
|
font-family: inherit;
|
|
87
84
|
color: inherit;
|
|
88
85
|
}
|
|
89
86
|
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
button span {
|
|
88
|
+
vertical-align: bottom;
|
|
89
|
+
}
|
|
92
90
|
|
|
91
|
+
button leu-icon {
|
|
92
|
+
--leu-icon-size: 1.25rem;
|
|
93
93
|
display: inline-block;
|
|
94
|
-
color: var(--leu-color-accent-blue);
|
|
95
94
|
padding: 0;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
vertical-align: bottom;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
button:hover leu-icon {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
button.active leu-icon {
|
|
104
|
+
color: var(--leu-color-accent-blue);
|
|
105
|
+
opacity: 1;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
table.sticky td:first-child,
|
|
@@ -188,7 +198,7 @@ class LeuTable extends LeuElement {
|
|
|
188
198
|
this.sortOrderAsc = !this.sortOrderAsc;
|
|
189
199
|
} else {
|
|
190
200
|
this.sortIndex = index;
|
|
191
|
-
this.
|
|
201
|
+
this.sortOrderAsc = false;
|
|
192
202
|
}
|
|
193
203
|
}
|
|
194
204
|
sortArrowIcon() {
|
|
@@ -196,9 +206,6 @@ class LeuTable extends LeuElement {
|
|
|
196
206
|
name=${this.sortOrderAsc ? "arrowDown" : "arrowUp"}
|
|
197
207
|
></leu-icon>`;
|
|
198
208
|
}
|
|
199
|
-
sortArrow(col) {
|
|
200
|
-
return html` ${this.isSorted(col) ? this.sortArrowIcon() : nothing} `;
|
|
201
|
-
}
|
|
202
209
|
get _columns() {
|
|
203
210
|
return this.columns;
|
|
204
211
|
}
|
|
@@ -230,6 +237,28 @@ class LeuTable extends LeuElement {
|
|
|
230
237
|
const stickyClass = {
|
|
231
238
|
sticky: this.firstColumnSticky
|
|
232
239
|
};
|
|
240
|
+
function headerStyle(col) {
|
|
241
|
+
if (col.headerStyle) {
|
|
242
|
+
return styleMap({
|
|
243
|
+
...col.headerStyle(),
|
|
244
|
+
textAlign: col.align === "right" ? "right" : undefined
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
return col.align === "right" ? styleMap({
|
|
248
|
+
textAlign: "right"
|
|
249
|
+
}) : nothing;
|
|
250
|
+
}
|
|
251
|
+
function bodyStyle(col, row) {
|
|
252
|
+
if (col.style) {
|
|
253
|
+
return styleMap({
|
|
254
|
+
...col.style(row),
|
|
255
|
+
textAlign: col.align === "right" ? "right" : undefined
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
return col.align === "right" ? styleMap({
|
|
259
|
+
textAlign: "right"
|
|
260
|
+
}) : nothing;
|
|
261
|
+
}
|
|
233
262
|
return html`
|
|
234
263
|
<div
|
|
235
264
|
class=${classMap(scrollClasses)}
|
|
@@ -239,21 +268,21 @@ class LeuTable extends LeuElement {
|
|
|
239
268
|
<table class=${classMap(stickyClass)}>
|
|
240
269
|
<thead>
|
|
241
270
|
<tr>
|
|
242
|
-
${this._columns.map(col => html`<th
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
271
|
+
${this._columns.map(col => html`<th style=${headerStyle(col)}>
|
|
272
|
+
${col.sort ? html`<button
|
|
273
|
+
@click=${_ => this.sortClick(col)}
|
|
274
|
+
class=${this.isSorted(col) ? "active" : nothing}
|
|
275
|
+
>
|
|
276
|
+
${col.align === "right" ? this.sortArrowIcon() : nothing}
|
|
246
277
|
<span>${col.name}</span>
|
|
247
|
-
${this.
|
|
278
|
+
${col.align !== "right" ? this.sortArrowIcon() : nothing}
|
|
248
279
|
</button>` : col.name}
|
|
249
280
|
</th>`)}
|
|
250
281
|
</tr>
|
|
251
282
|
</thead>
|
|
252
283
|
<tbody>
|
|
253
284
|
${this._data.map(row => html`<tr>
|
|
254
|
-
${this._columns.map(col => html`<td
|
|
255
|
-
style=${col.style ? styleMap(col.style(row)) : nothing}
|
|
256
|
-
>
|
|
285
|
+
${this._columns.map(col => html`<td style=${bodyStyle(col, row)}>
|
|
257
286
|
${col.value(row)}
|
|
258
287
|
</td>`)}
|
|
259
288
|
</tr>`)}
|
package/dist/VisuallyHidden.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
export class LeuVisuallyHidden extends LeuElement {
|
|
5
5
|
render(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
}
|
|
7
|
-
import { L as LeuElement } from './LeuElement-
|
|
7
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
8
8
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasSlotController-
|
|
1
|
+
{"version":3,"file":"hasSlotController-c09741c5.d.ts","sourceRoot":"","sources":["hasSlotController-c09741c5.js"],"names":[],"mappings":";;;;iCASa,OAAO,KAAK,EAAE,kBAAkB;AAP7C;;;GAGG;AAEH;;;;GAIG;AACH;IACE,uCAcC;IAHC,UAAgB;IAEhB,eAA0B;IAG5B;;;OAGG;IACH,uBAeC;IAED;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,gCAEC;IACD,sBAEC;IACD,yBAEC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { LeuRadio } from "./Radio.js";
|
|
|
16
16
|
export { LeuRadioGroup } from "./RadioGroup.js";
|
|
17
17
|
export { LeuSelect } from "./Select.js";
|
|
18
18
|
export { LeuTable } from "./Table.js";
|
|
19
|
+
export { L as LeuElement } from "./LeuElement-b670d77c.js";
|
|
19
20
|
export { BUTTON_EXPANDED_OPTIONS, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, LeuButton } from "./Button.js";
|
|
20
21
|
export { LeuInput, SIZES } from "./Input.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { LeuRadio } from './Radio.js';
|
|
|
18
18
|
export { LeuRadioGroup } from './RadioGroup.js';
|
|
19
19
|
export { LeuSelect } from './Select.js';
|
|
20
20
|
export { LeuTable } from './Table.js';
|
|
21
|
-
|
|
21
|
+
export { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
22
22
|
import 'lit';
|
|
23
23
|
import 'lit/static-html.js';
|
|
24
24
|
import 'lit/directives/ref.js';
|
|
@@ -27,7 +27,7 @@ import './utils-65469421.js';
|
|
|
27
27
|
import './Icon.js';
|
|
28
28
|
import './VisuallyHidden.js';
|
|
29
29
|
import 'lit/directives/if-defined.js';
|
|
30
|
-
import './hasSlotController-
|
|
30
|
+
import './hasSlotController-c09741c5.js';
|
|
31
31
|
import './Chip.js';
|
|
32
32
|
import 'lit/directives/live.js';
|
|
33
33
|
import '@floating-ui/dom';
|
package/dist/leu-accordion.js
CHANGED
package/dist/leu-breadcrumb.js
CHANGED
package/dist/leu-button-group.js
CHANGED
package/dist/leu-button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuButton } from './Button.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
6
|
import './Icon.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-c09741c5.js';
|
|
8
8
|
|
|
9
9
|
LeuButton.define("leu-button");
|
|
10
10
|
|
package/dist/leu-checkbox.js
CHANGED
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
package/dist/leu-dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LeuDialog } from './Dialog.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/class-map.js';
|
|
6
|
-
import './hasSlotController-
|
|
6
|
+
import './hasSlotController-c09741c5.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
|
|
9
9
|
LeuDialog.define("leu-dialog");
|
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
|
-
import './hasSlotController-
|
|
5
|
+
import './hasSlotController-c09741c5.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
|
8
8
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LeuPagination } from './Pagination.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|
|
9
|
-
import './hasSlotController-
|
|
9
|
+
import './hasSlotController-c09741c5.js';
|
|
10
10
|
import './VisuallyHidden.js';
|
|
11
11
|
|
|
12
12
|
LeuPagination.define("leu-pagination");
|
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
7
|
import './Icon.js';
|
|
8
|
-
import './hasSlotController-
|
|
8
|
+
import './hasSlotController-c09741c5.js';
|
|
9
9
|
import './utils-65469421.js';
|
|
10
10
|
|
|
11
11
|
LeuScrollTop.define("leu-scroll-top");
|
package/dist/leu-select.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuSelect } from './Select.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-c09741c5.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './Icon.js';
|
|
10
10
|
import './Menu.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeuTable } from './Table.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-b670d77c.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/style-map.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination.js';
|
|
|
9
9
|
import 'lit/directives/live.js';
|
|
10
10
|
import './Button.js';
|
|
11
11
|
import 'lit/directives/if-defined.js';
|
|
12
|
-
import './hasSlotController-
|
|
12
|
+
import './hasSlotController-c09741c5.js';
|
|
13
13
|
import './VisuallyHidden.js';
|
|
14
14
|
|
|
15
15
|
LeuTable.define("leu-table");
|
package/dist/web-types.json
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ export class LeuButton extends LeuElement {
|
|
|
110
110
|
|
|
111
111
|
renderExpandingIcon() {
|
|
112
112
|
if (typeof this.expanded !== "undefined" && this.variant === "ghost") {
|
|
113
|
-
return html`<div class="icon-
|
|
113
|
+
return html`<div class="icon-expanded">
|
|
114
114
|
<leu-icon name="angleDropDown" size="24"></leu-icon>
|
|
115
115
|
</div>`
|
|
116
116
|
}
|
|
@@ -170,9 +170,14 @@ export class LeuButton extends LeuElement {
|
|
|
170
170
|
?disabled=${this.disabled}
|
|
171
171
|
type=${this.type}
|
|
172
172
|
>
|
|
173
|
-
<
|
|
173
|
+
<div class="icon-wrapper icon-wrapper--before">
|
|
174
|
+
<slot name="before" class="icon-wrapper__slot"></slot>
|
|
175
|
+
</div>
|
|
174
176
|
<span class="content"><slot></slot></span>
|
|
175
|
-
<
|
|
177
|
+
<div class="icon-wrapper icon-wrapper--after">
|
|
178
|
+
<slot name="after" class="icon-wrapper__slot"></slot>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
176
181
|
${this.renderExpandingIcon()}
|
|
177
182
|
</button>
|
|
178
183
|
`
|