@statistikzh/leu 0.8.0 → 0.9.0
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/.github/workflows/release-please.yml +3 -3
- package/CHANGELOG.md +19 -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-3adfb3ed.d.ts → Button-5a8009c5.d.ts} +2 -2
- package/dist/{Button-3adfb3ed.d.ts.map → Button-5a8009c5.d.ts.map} +1 -1
- package/dist/{Button-3adfb3ed.js → Button-5a8009c5.js} +3 -4
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +2 -2
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.js +1 -1
- 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/Dropdown.d.ts +1 -1
- package/dist/Dropdown.js +3 -3
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-a20c5fd6.d.ts → LeuElement-7ab5ef5e.d.ts} +1 -1
- package/dist/LeuElement-7ab5ef5e.d.ts.map +1 -0
- package/dist/{LeuElement-a20c5fd6.js → LeuElement-7ab5ef5e.js} +1 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +5 -1
- package/dist/MenuItem.d.ts.map +1 -1
- package/dist/MenuItem.js +18 -3
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +2 -2
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.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.d.ts.map +1 -1
- package/dist/Select.js +9 -5
- package/dist/Spinner.d.ts +9 -0
- package/dist/Spinner.d.ts.map +1 -0
- package/dist/Spinner.js +53 -0
- package/dist/Table.d.ts +1 -1
- package/dist/Table.js +2 -2
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/index.d.ts +1 -1
- 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.d.ts +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-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-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.d.ts +3 -0
- package/dist/leu-spinner.d.ts.map +1 -0
- package/dist/leu-spinner.js +7 -0
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +52 -25
- package/dist/vscode.html-custom-data.json +16 -0
- package/dist/vue/index.d.ts +15 -0
- package/dist/web-types.json +19 -1
- package/package.json +1 -1
- package/scripts/generate-component/templates/[namespace]-[name].js +1 -2
- package/src/components/button/button.css +2 -3
- package/src/components/checkbox/Checkbox.js +1 -1
- package/src/components/checkbox/stories/checkbox.stories.js +7 -2
- package/src/components/dropdown/Dropdown.js +1 -1
- package/src/components/dropdown/test/dropdown.test.js +20 -3
- package/src/components/menu/MenuItem.js +21 -2
- package/src/components/menu/stories/menu-item.stories.js +18 -8
- package/src/components/menu/test/menu-item.test.js +23 -0
- package/src/components/radio/Radio.js +1 -1
- package/src/components/radio/stories/radio.stories.js +7 -1
- package/src/components/select/Select.js +8 -6
- package/src/components/select/test/select.test.js +30 -0
- package/src/components/spinner/Spinner.js +31 -0
- package/src/components/spinner/leu-spinner.js +5 -0
- package/src/components/spinner/spinner.css +20 -0
- package/src/components/spinner/stories/spinner.stories.js +29 -0
- package/src/components/spinner/test/spinner.test.js +30 -0
- package/src/styles/custom-properties.css +8 -3
- package/dist/LeuElement-a20c5fd6.d.ts.map +0 -1
|
@@ -13,17 +13,17 @@ jobs:
|
|
|
13
13
|
release-please:
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
steps:
|
|
16
|
-
- uses: google-github-actions/release-please-action@
|
|
16
|
+
- uses: google-github-actions/release-please-action@v4
|
|
17
17
|
id: release
|
|
18
18
|
with:
|
|
19
19
|
release-type: node
|
|
20
|
-
|
|
20
|
+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
21
21
|
# The logic below handles the npm publication:
|
|
22
22
|
- uses: actions/checkout@v4
|
|
23
23
|
# these if statements ensure that a publication only occurs when
|
|
24
24
|
# a new release is created:
|
|
25
25
|
if: ${{ steps.release.outputs.release_created }}
|
|
26
|
-
- uses: actions/setup-node@
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
27
|
with:
|
|
28
28
|
node-version: "20.x"
|
|
29
29
|
registry-url: "https://registry.npmjs.org"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0](https://github.com/statistikZH/leu/compare/v0.8.0...v0.9.0) (2024-07-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **menu-item:** add multipleSelection property to display a check icon ([#227](https://github.com/statistikZH/leu/issues/227)) ([02358cc](https://github.com/statistikZH/leu/commit/02358ccf5de5cb714adefc8de90d8f799dc58692))
|
|
9
|
+
* **spinner:** implement spinner animation element ([ba6257e](https://github.com/statistikZH/leu/commit/ba6257e6f46c021767f90384eaac19e203517b0d))
|
|
10
|
+
* **theme:** add :host pseudo class so that the theme can be used in a shadow root ([#221](https://github.com/statistikZH/leu/issues/221)) ([66e4676](https://github.com/statistikZH/leu/commit/66e4676be80ac79a137452d1f57d51394d3f4146))
|
|
11
|
+
* use new zh web typeface inter ([#224](https://github.com/statistikZH/leu/issues/224)) ([820deca](https://github.com/statistikZH/leu/commit/820deca357889fa11ac145ae0f203e2137c97a15))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **button:** remove border to match sizes of the design system ([#223](https://github.com/statistikZH/leu/issues/223)) ([9fa2cbb](https://github.com/statistikZH/leu/commit/9fa2cbbf919e02f71a150b974bc97563a75048c0))
|
|
17
|
+
* **checkbox:** avoid 'undefined' values and fallback to an empty string ([2f9f95f](https://github.com/statistikZH/leu/commit/2f9f95f50b56469a5ade01d4b5f5816a858028e3))
|
|
18
|
+
* **dropdown:** properly handle the document click events when the element is used in a shadow dom ([0c6c5a9](https://github.com/statistikZH/leu/commit/0c6c5a915b136f8fdbad300f719bb852d09fe220))
|
|
19
|
+
* **radio:** avoid 'undefined' values and fallback to an empty string ([2f9f95f](https://github.com/statistikZH/leu/commit/2f9f95f50b56469a5ade01d4b5f5816a858028e3))
|
|
20
|
+
* **select:** properly handle the document click events when the element is used in a shadow dom ([0c6c5a9](https://github.com/statistikZH/leu/commit/0c6c5a915b136f8fdbad300f719bb852d09fe220))
|
|
21
|
+
|
|
3
22
|
## [0.8.0](https://github.com/statistikZH/leu/compare/v0.7.0...v0.8.0) (2024-07-16)
|
|
4
23
|
|
|
5
24
|
|
package/dist/Accordion.d.ts
CHANGED
|
@@ -28,5 +28,5 @@ export class LeuAccordion extends LeuElement {
|
|
|
28
28
|
_handleToggleClick(): void;
|
|
29
29
|
render(): import("lit-html").TemplateResult;
|
|
30
30
|
}
|
|
31
|
-
import { L as LeuElement } from './LeuElement-
|
|
31
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
32
32
|
//# sourceMappingURL=Accordion.d.ts.map
|
package/dist/Accordion.js
CHANGED
package/dist/Breadcrumb.d.ts
CHANGED
|
@@ -64,6 +64,6 @@ export class LeuBreadcrumb extends LeuElement {
|
|
|
64
64
|
renderDropdown(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
65
65
|
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
66
66
|
}
|
|
67
|
-
import { L as LeuElement } from './LeuElement-
|
|
67
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
68
68
|
import { nothing } from 'lit';
|
|
69
69
|
//# sourceMappingURL=Breadcrumb.d.ts.map
|
package/dist/Breadcrumb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -77,7 +77,7 @@ declare class LeuButton extends LeuElement {
|
|
|
77
77
|
declare const BUTTON_SIZES: string[];
|
|
78
78
|
declare const BUTTON_TYPES: string[];
|
|
79
79
|
declare const BUTTON_EXPANDED_OPTIONS: string[];
|
|
80
|
-
import { L as LeuElement } from './LeuElement-
|
|
80
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
81
81
|
import { nothing } from 'lit';
|
|
82
82
|
export { BUTTON_VARIANTS as B, HasSlotController as H, LeuButton as L, BUTTON_SIZES as a, BUTTON_TYPES as b, BUTTON_EXPANDED_OPTIONS as c };
|
|
83
|
-
//# sourceMappingURL=Button-
|
|
83
|
+
//# sourceMappingURL=Button-5a8009c5.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button-
|
|
1
|
+
{"version":3,"file":"Button-5a8009c5.d.ts","sourceRoot":"","sources":["Button-5a8009c5.js"],"names":[],"mappings":";;;iCAaa,OAAO,KAAK,EAAE,kBAAkB;AAwW7C,wCAA0D;AA/W1D;;;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;AAkTD;;;;;GAKG;AACH;IAQI,WAAiB;IACjB,qBAAqB;IACrB,MADW,MAAM,CACI;IACrB,qBAAqB;IACrB,SADW,MAAM,CACO;IACxB,4CAA4C;IAC5C,MADW,QAAQ,GAAG,QAAQ,GAAG,OAAO,CACpB;IAEpB,qBAAqB;IACrB,eADW,MAAM,CACa;IAE9B,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,+EAA+E;IAC/E,OADW,OAAO,CACA;IAClB,sBAAsB;IACtB,QADW,OAAO,CACC;IACnB,wDAAwD;IACxD,UADW,OAAO,CACG;IAErB,gGAAgG;IAChG,OADW,OAAO,CACA;IAElB;;;OAGG;IACH,UAFU,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAEf;IAE3B,6EAOC;IACD;;;MAaC;IACD,0BAEC;IACD,+CAiCC;CACF;AA7GD,qCAA0C;AAE1C,qCAAmD;AAEnD,gDAAkD;gCA3XI,0BAA0B;wBAC7C,KAAK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -100,7 +100,7 @@ button {
|
|
|
100
100
|
appearance: none;
|
|
101
101
|
transition: background 0.1s ease;
|
|
102
102
|
cursor: pointer;
|
|
103
|
-
border:
|
|
103
|
+
border: none;
|
|
104
104
|
border-radius: 2px;
|
|
105
105
|
|
|
106
106
|
max-width: 100%;
|
|
@@ -126,12 +126,11 @@ button:disabled {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
button:focus-visible {
|
|
129
|
-
border: 1px solid var(--leu-color-black-0);
|
|
130
129
|
outline: 2px solid var(--leu-color-func-cyan);
|
|
130
|
+
outline-offset: 2px;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
button.inverted:focus-visible {
|
|
134
|
-
border: 1px solid var(--leu-color-black-100);
|
|
135
134
|
outline: 2px solid var(--leu-color-black-0);
|
|
136
135
|
}
|
|
137
136
|
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from "./Button-
|
|
1
|
+
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from "./Button-5a8009c5.js";
|
|
2
2
|
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './LeuElement-
|
|
1
|
+
import './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/if-defined.js';
|
|
5
5
|
import './Icon.js';
|
|
6
|
-
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from './Button-
|
|
6
|
+
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from './Button-5a8009c5.js';
|
package/dist/ButtonGroup.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export class LeuButtonGroup extends LeuElement {
|
|
|
20
20
|
_handleButtonClick(button: any): void;
|
|
21
21
|
render(): import("lit-html").TemplateResult<1>;
|
|
22
22
|
}
|
|
23
|
-
import { L as LeuElement } from './LeuElement-
|
|
23
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
24
24
|
//# sourceMappingURL=ButtonGroup.d.ts.map
|
package/dist/ButtonGroup.js
CHANGED
package/dist/Checkbox.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export class LeuCheckbox extends LeuElement {
|
|
|
10
10
|
handleInput(event: any): void;
|
|
11
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
12
12
|
}
|
|
13
|
-
import { L as LeuElement } from './LeuElement-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
14
14
|
//# sourceMappingURL=Checkbox.d.ts.map
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { LeuIcon } from './Icon.js';
|
|
4
4
|
|
|
@@ -125,7 +125,7 @@ class LeuCheckbox extends LeuElement {
|
|
|
125
125
|
@input=${this.handleInput}
|
|
126
126
|
.checked=${this.checked}
|
|
127
127
|
?disabled=${this.disabled}
|
|
128
|
-
.value=${this.value}
|
|
128
|
+
.value=${this.value ?? ""}
|
|
129
129
|
/>
|
|
130
130
|
<label for=${`checkbox-${this.name}`} class="label"><slot></slot></label>
|
|
131
131
|
<leu-icon class="icon" name="check"></leu-icon>
|
package/dist/CheckboxGroup.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export class LeuCheckboxGroup extends LeuElement {
|
|
|
10
10
|
handleItems(): void;
|
|
11
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
12
12
|
}
|
|
13
|
-
import { L as LeuElement } from './LeuElement-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
14
14
|
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
package/dist/CheckboxGroup.js
CHANGED
package/dist/Chip.d.ts
CHANGED
package/dist/Chip.js
CHANGED
package/dist/ChipGroup.d.ts
CHANGED
package/dist/ChipGroup.js
CHANGED
package/dist/ChipLink.js
CHANGED
package/dist/ChipRemovable.js
CHANGED
package/dist/ChipSelectable.js
CHANGED
package/dist/Dropdown.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export class LeuDropdown extends LeuElement {
|
|
|
15
15
|
_getMenu(): any;
|
|
16
16
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
17
|
}
|
|
18
|
-
import { L as LeuElement } from './LeuElement-
|
|
18
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
19
19
|
//# sourceMappingURL=Dropdown.d.ts.map
|
package/dist/Dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
|
-
import { H as HasSlotController, L as LeuButton } from './Button-
|
|
4
|
+
import { H as HasSlotController, L as LeuButton } from './Button-5a8009c5.js';
|
|
5
5
|
import { LeuMenu } from './Menu.js';
|
|
6
6
|
import { LeuMenuItem } from './MenuItem.js';
|
|
7
7
|
import { LeuPopup } from './Popup.js';
|
|
@@ -40,7 +40,7 @@ class LeuDropdown extends LeuElement {
|
|
|
40
40
|
super();
|
|
41
41
|
_defineProperty(this, "hasSlotController", new HasSlotController(this, ["icon"]));
|
|
42
42
|
_defineProperty(this, "_documentClickHandler", event => {
|
|
43
|
-
if (!
|
|
43
|
+
if (!event.composedPath().includes(this)) {
|
|
44
44
|
this.expanded = false;
|
|
45
45
|
}
|
|
46
46
|
});
|
package/dist/Icon.d.ts
CHANGED
|
@@ -112,5 +112,5 @@ export class LeuIcon extends LeuElement {
|
|
|
112
112
|
name: any | "";
|
|
113
113
|
render(): import("lit-html").TemplateResult<1>;
|
|
114
114
|
}
|
|
115
|
-
import { L as LeuElement } from './LeuElement-
|
|
115
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
116
116
|
//# sourceMappingURL=Icon.d.ts.map
|
package/dist/Icon.js
CHANGED
package/dist/Input.d.ts
CHANGED
|
@@ -145,6 +145,6 @@ export const SIZES: Readonly<{
|
|
|
145
145
|
SMALL: "small";
|
|
146
146
|
REGULAR: "regular";
|
|
147
147
|
}>;
|
|
148
|
-
import { L as LeuElement } from './LeuElement-
|
|
148
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
149
149
|
import { nothing } from 'lit';
|
|
150
150
|
//# sourceMappingURL=Input.d.ts.map
|
package/dist/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -4,4 +4,4 @@ declare class LeuElement extends LitElement {
|
|
|
4
4
|
declare function _defineProperty(obj: any, key: any, value: any): any;
|
|
5
5
|
import { LitElement } from 'lit';
|
|
6
6
|
export { LeuElement as L, _defineProperty as _ };
|
|
7
|
-
//# sourceMappingURL=LeuElement-
|
|
7
|
+
//# sourceMappingURL=LeuElement-7ab5ef5e.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeuElement-7ab5ef5e.d.ts","sourceRoot":"","sources":["LeuElement-7ab5ef5e.js"],"names":[],"mappings":"AA+BA;IACE,8EAcC;CACF;AA7CD,sEAaC;2BAf0B,KAAK"}
|
|
@@ -46,7 +46,7 @@ class LeuElement extends LitElement {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
_defineProperty(LeuElement, "version", "0.
|
|
49
|
+
_defineProperty(LeuElement, "version", "0.9.0");
|
|
50
50
|
_defineProperty(LeuElement, "dependencies", {});
|
|
51
51
|
|
|
52
52
|
export { LeuElement as L, _defineProperty as _ };
|
package/dist/Menu.d.ts
CHANGED
|
@@ -25,6 +25,6 @@ export class LeuMenu extends LeuElement {
|
|
|
25
25
|
updated(changedProperties: any): void;
|
|
26
26
|
render(): import("lit-html").TemplateResult<1>;
|
|
27
27
|
}
|
|
28
|
-
import { L as LeuElement } from './LeuElement-
|
|
28
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
29
29
|
import { LeuMenuItem } from './MenuItem.js';
|
|
30
30
|
//# sourceMappingURL=Menu.d.ts.map
|
package/dist/Menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { LeuMenuItem } from './MenuItem.js';
|
|
4
4
|
import 'lit/directives/if-defined.js';
|
package/dist/MenuItem.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type MenuItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | '
|
|
|
6
6
|
* @tagname leu-menu-item
|
|
7
7
|
* @slot - The label of the menu item
|
|
8
8
|
* @property {boolean} active - Defines if the item is selected or checked
|
|
9
|
+
* @property {boolean} multipleSelection - If the item is part of a multiple selection. Renders a checkmark before the label when active
|
|
9
10
|
* @property {boolean} disabled - Disables the underlying button or link
|
|
10
11
|
* @property {string} value - The value of the item. It must not contain commas. See `getValue()`
|
|
11
12
|
* @property {string} href - The href of the underlying link
|
|
@@ -15,6 +16,7 @@ export type MenuItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | '
|
|
|
15
16
|
export class LeuMenuItem extends LeuElement {
|
|
16
17
|
active: boolean;
|
|
17
18
|
disabled: boolean;
|
|
19
|
+
multipleSelection: boolean;
|
|
18
20
|
value: any;
|
|
19
21
|
href: any;
|
|
20
22
|
tabbable: any;
|
|
@@ -32,7 +34,9 @@ export class LeuMenuItem extends LeuElement {
|
|
|
32
34
|
_getTabIndex(): 0 | -1;
|
|
33
35
|
_renderLink(content: any): import("lit-html").TemplateResult<1>;
|
|
34
36
|
_renderButton(content: any): import("lit-html").TemplateResult<1>;
|
|
37
|
+
_renderBeforeSlotDefault(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
35
38
|
render(): import("lit-html").TemplateResult<1>;
|
|
36
39
|
}
|
|
37
|
-
import { L as LeuElement } from './LeuElement-
|
|
40
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
41
|
+
import { nothing } from 'lit';
|
|
38
42
|
//# sourceMappingURL=MenuItem.d.ts.map
|
package/dist/MenuItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["MenuItem.js"],"names":[],"mappings":"2BA8Fa,UAAU,GAAG,kBAAkB,GAAG,eAAe,GAAG,QAAQ,GAAG,MAAM;AADlF;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["MenuItem.js"],"names":[],"mappings":"2BA8Fa,UAAU,GAAG,kBAAkB,GAAG,eAAe,GAAG,QAAQ,GAAG,MAAM;AADlF;;GAEG;AAEH;;;;;;;;;;GAUG;AACH;IAGI,gBAAmB;IACnB,kBAAqB;IACrB,2BAA8B;IAC9B,WAAsB;IACtB,UAAqB;IACrB,cAAyB;IAEzB,2BAA2B;IAC3B,eADW,YAAY,CACQ;IAUjC,+BAKC;IAED;;;OAGG;IACH,YAFa,MAAM,CAIlB;IACD;;MAaC;IACD,uBAKC;IACD,gEAYC;IACD,kEAYC;IACD,kFAKC;IACD,+CASC;CACF;gCA7MqD,0BAA0B;wBAC7C,KAAK"}
|
package/dist/MenuItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
2
|
-
import { css, html } from 'lit';
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
|
+
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { LeuIcon } from './Icon.js';
|
|
5
5
|
|
|
@@ -99,6 +99,7 @@ var css_248z = css`:host,
|
|
|
99
99
|
* @tagname leu-menu-item
|
|
100
100
|
* @slot - The label of the menu item
|
|
101
101
|
* @property {boolean} active - Defines if the item is selected or checked
|
|
102
|
+
* @property {boolean} multipleSelection - If the item is part of a multiple selection. Renders a checkmark before the label when active
|
|
102
103
|
* @property {boolean} disabled - Disables the underlying button or link
|
|
103
104
|
* @property {string} value - The value of the item. It must not contain commas. See `getValue()`
|
|
104
105
|
* @property {string} href - The href of the underlying link
|
|
@@ -110,6 +111,7 @@ class LeuMenuItem extends LeuElement {
|
|
|
110
111
|
super();
|
|
111
112
|
this.active = false;
|
|
112
113
|
this.disabled = false;
|
|
114
|
+
this.multipleSelection = false;
|
|
113
115
|
this.value = undefined;
|
|
114
116
|
this.href = undefined;
|
|
115
117
|
this.tabbable = undefined;
|
|
@@ -185,9 +187,17 @@ class LeuMenuItem extends LeuElement {
|
|
|
185
187
|
${content}
|
|
186
188
|
</button>`;
|
|
187
189
|
}
|
|
190
|
+
_renderBeforeSlotDefault() {
|
|
191
|
+
if (!this.multipleSelection) {
|
|
192
|
+
return nothing;
|
|
193
|
+
}
|
|
194
|
+
return this.active ? html`<leu-icon name="check"></leu-icon>` : html`<leu-icon></leu-icon>`;
|
|
195
|
+
}
|
|
188
196
|
render() {
|
|
189
197
|
const content = html`
|
|
190
|
-
<slot class="before" name="before"
|
|
198
|
+
<slot class="before" name="before"
|
|
199
|
+
>${this._renderBeforeSlotDefault()}</slot
|
|
200
|
+
>
|
|
191
201
|
<span class="label"><slot></slot></span>
|
|
192
202
|
<slot class="after" name="after"></slot>
|
|
193
203
|
`;
|
|
@@ -210,6 +220,11 @@ _defineProperty(LeuMenuItem, "properties", {
|
|
|
210
220
|
type: Boolean,
|
|
211
221
|
reflect: true
|
|
212
222
|
},
|
|
223
|
+
multipleSelection: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
reflect: true,
|
|
226
|
+
attr: "multiple-selection"
|
|
227
|
+
},
|
|
213
228
|
disabled: {
|
|
214
229
|
type: Boolean,
|
|
215
230
|
reflect: true
|
package/dist/Pagination.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export class LeuPagination extends LeuElement {
|
|
|
30
30
|
_handleKeyDown(event: any): void;
|
|
31
31
|
render(): import("lit-html").TemplateResult<1>;
|
|
32
32
|
}
|
|
33
|
-
import { L as LeuElement } from './LeuElement-
|
|
33
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
34
34
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { live } from 'lit/directives/live.js';
|
|
4
|
-
import { L as LeuButton } from './Button-
|
|
4
|
+
import { L as LeuButton } from './Button-5a8009c5.js';
|
|
5
5
|
import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
package/dist/Popup.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export class LeuPopup extends LeuElement {
|
|
|
32
32
|
handleAnchorChange(): void;
|
|
33
33
|
render(): import("lit-html").TemplateResult<1>;
|
|
34
34
|
}
|
|
35
|
-
import { L as LeuElement } from './LeuElement-
|
|
35
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
36
36
|
//# sourceMappingURL=Popup.d.ts.map
|
package/dist/Popup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
|
|
4
4
|
|
package/dist/Radio.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export class LeuRadio extends LeuElement {
|
|
|
10
10
|
handleInput(event: any): void;
|
|
11
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
12
12
|
}
|
|
13
|
-
import { L as LeuElement } from './LeuElement-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
14
14
|
//# sourceMappingURL=Radio.d.ts.map
|
package/dist/Radio.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
|
|
4
4
|
var css_248z = css`:host {
|
|
@@ -124,7 +124,7 @@ class LeuRadio extends LeuElement {
|
|
|
124
124
|
@input=${this.handleInput}
|
|
125
125
|
.checked=${this.checked}
|
|
126
126
|
?disabled=${this.disabled}
|
|
127
|
-
.value=${this.value}
|
|
127
|
+
.value=${this.value ?? ""}
|
|
128
128
|
/>
|
|
129
129
|
<label for=${`radio-${this.name}`} class="label"><slot></slot></label>
|
|
130
130
|
`;
|
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-7ab5ef5e.js';
|
|
20
20
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
package/dist/RadioGroup.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-7ab5ef5e.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
-
import { L as LeuButton } from './Button-
|
|
4
|
+
import { L as LeuButton } from './Button-5a8009c5.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';
|
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-7ab5ef5e.js';
|
|
135
135
|
import { nothing } from 'lit';
|
|
136
136
|
//# sourceMappingURL=Select.d.ts.map
|
package/dist/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AA6PA;;;;;;;;;;;;;GAaG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmDC;IACD,wCAKC;IA4BC,cAAiB;IACjB,kBAAqB;IAErB,kBAAqB;IACrB,mBAAsB;IACtB,oBAAuB;IACvB,aAAe;IACf,cAAe;IACf,aAAc;IAEd,gBAAgB;IAChB,sBAAuB;IAEvB,gBAAgB;IAChB,2BAA6B;IAE7B,gBAAgB;IAChB,6BAAgC;IAEhC,gBAAgB;IAChB,sBAAuB;IAEvB;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,KAAmC,CAE1C;IACnC;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAE1B;IAEnC;;OAEG;IACH,UAFU,OAAO,oBAAoB,EAAE,GAAG,KAAgC,CAE/C;IAU7B,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AA6PA;;;;;;;;;;;;;GAaG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmDC;IACD,wCAKC;IA4BC,cAAiB;IACjB,kBAAqB;IAErB,kBAAqB;IACrB,mBAAsB;IACtB,oBAAuB;IACvB,aAAe;IACf,cAAe;IACf,aAAc;IAEd,gBAAgB;IAChB,sBAAuB;IAEvB,gBAAgB;IAChB,2BAA6B;IAE7B,gBAAgB;IAChB,6BAAgC;IAEhC,gBAAgB;IAChB,sBAAuB;IAEvB;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,KAAmC,CAE1C;IACnC;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAE1B;IAEnC;;OAEG;IACH,UAFU,OAAO,oBAAoB,EAAE,GAAG,KAAgC,CAE/C;IAU7B,sCAqBC;IAED;;;;OAIG;IACH,8CA6BC;IACD;;;OAGG;IACH,4BAFW,aAAa,iBAcvB;IAED;;;OAGG;IACH,iCAFW,aAAa,QAQvB;IAED;;;OAGG;IACH,oBAFa,uBAAgB,CAO5B;IACD,wBAMC;IACD,yBAMC;IACD,8BAOC;IACD,wBAIC;IACD,uBAMC;IACD,qCAEC;IAED;;;;OAIG;IACH,4CAEC;IACD,uCAoBC;IAED;;OAEG;IACH,uCAIC;IACD,4EAaC;IACD,4EAeC;IACD,4DAmCC;IACD,+CAmDC;CACF;gCAjrBqD,0BAA0B;wBAC7C,KAAK"}
|
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-7ab5ef5e.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, L as LeuButton } from './Button-
|
|
6
|
+
import { H as HasSlotController, L as LeuButton } from './Button-5a8009c5.js';
|
|
7
7
|
import { LeuMenu } from './Menu.js';
|
|
8
8
|
import { LeuMenuItem } from './MenuItem.js';
|
|
9
9
|
import { LeuIcon } from './Icon.js';
|
|
@@ -338,7 +338,7 @@ class LeuSelect extends LeuElement {
|
|
|
338
338
|
* @param {MouseEvent} event
|
|
339
339
|
*/
|
|
340
340
|
_defineProperty(this, "_handleDocumentClick", event => {
|
|
341
|
-
if (event.
|
|
341
|
+
if (!event.composedPath().includes(this) && this.open) {
|
|
342
342
|
this._closeDropdown();
|
|
343
343
|
}
|
|
344
344
|
});
|
|
@@ -409,10 +409,11 @@ class LeuSelect extends LeuElement {
|
|
|
409
409
|
// CAN be called with undefined.
|
|
410
410
|
this._toggleButtonRef.value?.focus();
|
|
411
411
|
}
|
|
412
|
-
if (changedProperties.has("value") || changedProperties.has("_optionFilter")) {
|
|
412
|
+
if (changedProperties.has("value") || changedProperties.has("_optionFilter") || changedProperties.has("multiple")) {
|
|
413
413
|
this._updateMenuItems({
|
|
414
414
|
value: changedProperties.has("value"),
|
|
415
|
-
optionFilter: changedProperties.has("_optionFilter")
|
|
415
|
+
optionFilter: changedProperties.has("_optionFilter"),
|
|
416
|
+
multiple: changedProperties.has("multiple")
|
|
416
417
|
});
|
|
417
418
|
}
|
|
418
419
|
}
|
|
@@ -431,6 +432,9 @@ class LeuSelect extends LeuElement {
|
|
|
431
432
|
|
|
432
433
|
/* eslint-disable no-param-reassign */
|
|
433
434
|
menuItems.forEach(menuItem => {
|
|
435
|
+
if (changed.multiple) {
|
|
436
|
+
menuItem.multipleSelection = this.multiple;
|
|
437
|
+
}
|
|
434
438
|
if (changed.optionFilter) {
|
|
435
439
|
menuItem.hidden = this._optionFilter !== "" && !menuItem.textContent.toLowerCase().includes(this._optionFilter.toLowerCase());
|
|
436
440
|
hasFilterResults = hasFilterResults || !menuItem.hidden;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @tagname leu-spinner
|
|
3
|
+
* @cssprop --leu-spinner-size - The size of the spinner.
|
|
4
|
+
*/
|
|
5
|
+
export class LeuSpinner extends LeuElement {
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
import { L as LeuElement } from './LeuElement-7ab5ef5e.js';
|
|
9
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["Spinner.js"],"names":[],"mappings":"AA2BA;;;GAGG;AACH;IACE,+CAgBC;CACF;gCAjDqD,0BAA0B"}
|