@statistikzh/leu 0.22.1 → 0.24.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/ci.yml +8 -8
- package/.github/workflows/deploy-github-pages.yaml +2 -2
- package/.github/workflows/publish.yml +30 -0
- package/.github/workflows/release-please.yml +1 -19
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +25 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +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.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/FileInput.d.ts +0 -1
- package/dist/FileInput.js +1 -35
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-DfsEye-A.js → LeuElement-BfbOWTGZ.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.d.ts +16 -0
- package/dist/Popup.js +20 -2
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +51 -0
- package/dist/Range.js +143 -5
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/file-input/FileInput.d.ts +2 -2
- package/dist/components/file-input/FileInput.d.ts.map +1 -1
- package/dist/components/popup/Popup.d.ts +16 -0
- package/dist/components/popup/Popup.d.ts.map +1 -1
- package/dist/components/popup/stories/popup.stories.d.ts +2 -0
- package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
- package/dist/components/range/Range.d.ts +51 -0
- package/dist/components/range/Range.d.ts.map +1 -1
- package/dist/components/range/stories/range.stories.d.ts +230 -0
- package/dist/components/range/stories/range.stories.d.ts.map +1 -0
- package/dist/components/range/test/range.test.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- 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 +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-file-input.d.ts +0 -1
- package/dist/leu-file-input.js +1 -35
- 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-message.js +1 -1
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-progress-bar.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 +1 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +149 -85
- package/dist/vue/index.d.ts +125 -100
- package/dist/web-types.json +298 -174
- package/package.json +6 -2
- package/src/components/file-input/FileInput.ts +2 -2
- package/src/components/popup/Popup.ts +37 -0
- package/src/components/popup/stories/popup.stories.ts +10 -0
- package/src/components/popup/test/popup.test.ts +27 -0
- package/src/components/range/Range.ts +102 -3
- package/src/components/range/range.css +48 -1
- package/src/components/range/stories/range.stories.ts +182 -0
- package/src/components/range/test/range.test.ts +151 -6
- package/web-test-runner.config.mjs +10 -0
- package/dist/components/range/stories/range-slider.stories.d.ts +0 -26
- package/dist/components/range/stories/range-slider.stories.d.ts.map +0 -1
- package/src/components/range/stories/range-slider.stories.ts +0 -142
package/.github/workflows/ci.yml
CHANGED
|
@@ -7,10 +7,10 @@ jobs:
|
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v6
|
|
11
11
|
|
|
12
12
|
- name: Use Node.js
|
|
13
|
-
uses: actions/setup-node@
|
|
13
|
+
uses: actions/setup-node@v6
|
|
14
14
|
with:
|
|
15
15
|
node-version-file: ".nvmrc"
|
|
16
16
|
cache: "npm"
|
|
@@ -25,10 +25,10 @@ jobs:
|
|
|
25
25
|
needs: lint
|
|
26
26
|
|
|
27
27
|
steps:
|
|
28
|
-
- uses: actions/checkout@
|
|
28
|
+
- uses: actions/checkout@v6
|
|
29
29
|
|
|
30
30
|
- name: Use Node.js
|
|
31
|
-
uses: actions/setup-node@
|
|
31
|
+
uses: actions/setup-node@v6
|
|
32
32
|
with:
|
|
33
33
|
node-version-file: ".nvmrc"
|
|
34
34
|
cache: "npm"
|
|
@@ -47,10 +47,10 @@ jobs:
|
|
|
47
47
|
|
|
48
48
|
steps:
|
|
49
49
|
- name: Checkout code
|
|
50
|
-
uses: actions/checkout@
|
|
50
|
+
uses: actions/checkout@v6
|
|
51
51
|
|
|
52
52
|
- name: Use Node.js
|
|
53
|
-
uses: actions/setup-node@
|
|
53
|
+
uses: actions/setup-node@v6
|
|
54
54
|
with:
|
|
55
55
|
node-version-file: ".nvmrc"
|
|
56
56
|
cache: "npm"
|
|
@@ -62,7 +62,7 @@ jobs:
|
|
|
62
62
|
run: npx playwright install
|
|
63
63
|
|
|
64
64
|
- name: Cache Playwright binaries
|
|
65
|
-
uses: actions/cache@
|
|
65
|
+
uses: actions/cache@v5
|
|
66
66
|
with:
|
|
67
67
|
path: ~/.cache/ms-playwright
|
|
68
68
|
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
|
|
@@ -75,7 +75,7 @@ jobs:
|
|
|
75
75
|
- name: Run tests
|
|
76
76
|
run: npm test
|
|
77
77
|
|
|
78
|
-
- uses: actions/upload-artifact@
|
|
78
|
+
- uses: actions/upload-artifact@v6
|
|
79
79
|
with:
|
|
80
80
|
name: coverage
|
|
81
81
|
path: coverage/
|
|
@@ -18,10 +18,10 @@ jobs:
|
|
|
18
18
|
# Job steps
|
|
19
19
|
steps:
|
|
20
20
|
# Manual Checkout
|
|
21
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
22
|
|
|
23
23
|
# Set up Node
|
|
24
|
-
- uses: actions/setup-node@
|
|
24
|
+
- uses: actions/setup-node@v6
|
|
25
25
|
with:
|
|
26
26
|
node-version-file: ".nvmrc"
|
|
27
27
|
cache: "npm"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish Package to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "leu-v*"
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
id-token: write # Required for OIDC
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
publish:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
|
|
19
|
+
- uses: actions/setup-node@v6
|
|
20
|
+
with:
|
|
21
|
+
node-version-file: ".nvmrc"
|
|
22
|
+
cache: "npm"
|
|
23
|
+
registry-url: "https://registry.npmjs.org"
|
|
24
|
+
- run: npm --version
|
|
25
|
+
- run: npm ci
|
|
26
|
+
- run: npm run build
|
|
27
|
+
- name: Publish to npm
|
|
28
|
+
env:
|
|
29
|
+
NPM_CONFIG_PROVENANCE: true
|
|
30
|
+
run: npm publish
|
|
@@ -4,11 +4,10 @@ on:
|
|
|
4
4
|
- main
|
|
5
5
|
|
|
6
6
|
permissions:
|
|
7
|
-
id-token: write
|
|
8
7
|
contents: write
|
|
9
8
|
pull-requests: write
|
|
10
9
|
|
|
11
|
-
name: Create release
|
|
10
|
+
name: Create release
|
|
12
11
|
|
|
13
12
|
jobs:
|
|
14
13
|
release-please:
|
|
@@ -18,20 +17,3 @@ jobs:
|
|
|
18
17
|
id: release
|
|
19
18
|
with:
|
|
20
19
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
21
|
-
# The logic below handles the npm publication:
|
|
22
|
-
- uses: actions/checkout@v4
|
|
23
|
-
# these if statements ensure that a publication only occurs when
|
|
24
|
-
# a new release is created:
|
|
25
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
26
|
-
- uses: actions/setup-node@v4
|
|
27
|
-
with:
|
|
28
|
-
node-version-file: ".nvmrc"
|
|
29
|
-
cache: "npm"
|
|
30
|
-
registry-url: "https://registry.npmjs.org"
|
|
31
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
32
|
-
- run: npm ci
|
|
33
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
34
|
-
- run: npm run build
|
|
35
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
36
|
-
- run: npm publish --access public
|
|
37
|
-
if: ${{ steps.release.outputs.release_created }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.24.0](https://github.com/statistikZH/leu/compare/leu-v0.23.0...leu-v0.24.0) (2026-02-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **range:** The height of the element changed. When the label was empty it still rendered an empty element. This is now removed. Also the height of the range element was reduced by 4px to match the design specification.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **range:** add `hide-label` option to visually hide the label ([b344fa8](https://github.com/statistikZH/leu/commit/b344fa8f47b6b8c221211c5a7f84089762e29092))
|
|
13
|
+
* **range:** add `prefix`, `suffix` and `valueFormatter` properties to customize the value formatting ([b344fa8](https://github.com/statistikZH/leu/commit/b344fa8f47b6b8c221211c5a7f84089762e29092))
|
|
14
|
+
* **range:** add `show-ticks` and `show-range-labels` options to display ticks and the range value labels ([b344fa8](https://github.com/statistikZH/leu/commit/b344fa8f47b6b8c221211c5a7f84089762e29092))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **range:** rename story file to match convention ([b344fa8](https://github.com/statistikZH/leu/commit/b344fa8f47b6b8c221211c5a7f84089762e29092))
|
|
20
|
+
|
|
21
|
+
## [0.23.0](https://github.com/statistikZH/leu/compare/leu-v0.22.1...leu-v0.23.0) (2026-01-20)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **popup:** add offset properties to translate the popup content ([#324](https://github.com/statistikZH/leu/issues/324)) ([1e71bf0](https://github.com/statistikZH/leu/commit/1e71bf061bb940156dd0a24a71243db093d7bd49))
|
|
27
|
+
|
|
3
28
|
## [0.22.1](https://github.com/statistikZH/leu/compare/leu-v0.22.0...leu-v0.22.1) (2025-12-17)
|
|
4
29
|
|
|
5
30
|
|
package/dist/Accordion.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, nothing } from 'lit';
|
|
3
3
|
import { unsafeStatic, html } from 'lit/static-html.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
|
|
7
7
|
var css_248z = css`:host {
|
|
8
8
|
--accordion-font-regular: var(--leu-font-family-regular);
|
package/dist/Button.js
CHANGED
|
@@ -4,7 +4,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
5
|
import { property } from 'lit/decorators.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
|
-
import { L as LeuElement } from './LeuElement-
|
|
7
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
8
8
|
import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, html } from 'lit';
|
|
2
|
-
import { L as LeuElement } from './LeuElement-
|
|
2
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
3
3
|
import { LeuButton } from './Button.js';
|
|
4
4
|
import './_tslib-CNEFicEt.js';
|
|
5
5
|
import 'lit/directives/class-map.js';
|
package/dist/ChartWrapper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
|
|
6
6
|
import { LeuSpinner } from './Spinner.js';
|
|
7
7
|
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
import { LeuIcon } from './Icon.js';
|
|
6
6
|
|
|
7
7
|
var css_248z = css`:host {
|
package/dist/CheckboxGroup.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { LeuCheckbox } from './Checkbox.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
|
package/dist/Chip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { L as LeuElement } from './LeuElement-
|
|
3
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
4
4
|
import { css } from 'lit';
|
|
5
5
|
|
|
6
6
|
var css_248z = css`:host *::before,
|
package/dist/ChipGroup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { unsafeStatic, html } from 'lit/static-html.js';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
import { css } from 'lit';
|
|
6
6
|
import { LeuChipSelectable } from './ChipSelectable.js';
|
|
7
7
|
import './Chip.js';
|
package/dist/ChipLink.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { LeuChipBase } from './Chip.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @tagname leu-chip-link
|
package/dist/ChipRemovable.js
CHANGED
|
@@ -3,7 +3,7 @@ import { html } from 'lit';
|
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { LeuChipBase } from './Chip.js';
|
|
5
5
|
import { LeuIcon } from './Icon.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BfbOWTGZ.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @slot - The content of the chip
|
package/dist/ChipSelectable.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { LeuChipBase } from './Chip.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A chip component that can be selected.
|
package/dist/Dialog.js
CHANGED
|
@@ -3,7 +3,7 @@ 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';
|
|
5
5
|
import { property } from 'lit/decorators.js';
|
|
6
|
-
import { L as LeuElement } from './LeuElement-
|
|
6
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
7
7
|
import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import { LeuIcon } from './Icon.js';
|
|
9
9
|
|
package/dist/Dropdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
|
|
7
7
|
import { LeuButton } from './Button.js';
|
|
8
8
|
import { LeuMenu } from './Menu.js';
|
package/dist/FileInput.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { L as LeuElement } from './LeuElement.d-BevHqLUu.js';
|
|
|
5
5
|
import { LeuButton } from './Button.js';
|
|
6
6
|
import { L as LeuIcon } from './Icon.d-itcQ94ym.js';
|
|
7
7
|
import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
8
|
-
import './leu-icon.js';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* @todo Pluralize text when multiple files are allowed
|
package/dist/FileInput.js
CHANGED
|
@@ -3,45 +3,11 @@ import { css, html, nothing } from 'lit';
|
|
|
3
3
|
import { property, state, query } from 'lit/decorators.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
5
|
import { classMap } from 'lit/directives/class-map.js';
|
|
6
|
-
import { L as LeuElement } from './LeuElement-
|
|
7
|
-
import './Accordion.js';
|
|
6
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
8
7
|
import { LeuButton } from './Button.js';
|
|
9
|
-
import './ButtonGroup.js';
|
|
10
|
-
import './ChartWrapper.js';
|
|
11
|
-
import './Checkbox.js';
|
|
12
|
-
import './CheckboxGroup.js';
|
|
13
|
-
import './ChipGroup.js';
|
|
14
|
-
import './ChipLink.js';
|
|
15
|
-
import './ChipRemovable.js';
|
|
16
|
-
import './ChipSelectable.js';
|
|
17
|
-
import './Dialog.js';
|
|
18
|
-
import './Dropdown.js';
|
|
19
8
|
import { LeuIcon } from './Icon.js';
|
|
20
|
-
import './Input.js';
|
|
21
|
-
import './Menu.js';
|
|
22
|
-
import './MenuItem.js';
|
|
23
|
-
import './Message.js';
|
|
24
|
-
import './Pagination.js';
|
|
25
|
-
import './Placeholder.js';
|
|
26
|
-
import './Popup.js';
|
|
27
|
-
import './ProgressBar.js';
|
|
28
|
-
import './Radio.js';
|
|
29
|
-
import './RadioGroup.js';
|
|
30
|
-
import './Range.js';
|
|
31
|
-
import './ScrollTop.js';
|
|
32
|
-
import './Select.js';
|
|
33
|
-
import './Spinner.js';
|
|
34
|
-
import './Table.js';
|
|
35
|
-
import './Tag.js';
|
|
36
9
|
import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
37
|
-
import './leu-icon.js';
|
|
38
|
-
import 'lit/static-html.js';
|
|
39
10
|
import './hasSlotController-Bm2tipvG.js';
|
|
40
|
-
import './Chip.js';
|
|
41
|
-
import 'lit/directives/ref.js';
|
|
42
|
-
import '@floating-ui/dom';
|
|
43
|
-
import 'lit/directives/live.js';
|
|
44
|
-
import 'lit/directive.js';
|
|
45
11
|
|
|
46
12
|
var css_248z = css`:host {
|
|
47
13
|
--file-input-font-regular: var(--leu-font-family-regular);
|
package/dist/Icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, html, svg } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
|
|
6
6
|
var css_248z = css`:host {
|
|
7
7
|
display: contents;
|
package/dist/Input.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
import { live } from 'lit/directives/live.js';
|
|
6
6
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
7
7
|
import { property, state } from 'lit/decorators.js';
|
|
8
|
-
import { L as LeuElement } from './LeuElement-
|
|
8
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
9
9
|
import { LeuIcon } from './Icon.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = css`:host {
|
package/dist/Menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
import { LeuMenuItem } from './MenuItem.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
7
|
import './Icon.js';
|
package/dist/MenuItem.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
|
|
8
8
|
var css_248z = css`:host {
|
package/dist/Message.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
|
package/dist/Pagination.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { live } from 'lit/directives/live.js';
|
|
4
4
|
import { property, state } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { LeuButton } from './Button.js';
|
|
7
7
|
import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
8
8
|
import { LeuIcon } from './Icon.js';
|
package/dist/Placeholder.js
CHANGED
package/dist/Popup.d.ts
CHANGED
|
@@ -28,6 +28,22 @@ declare class LeuPopup extends LeuElement {
|
|
|
28
28
|
shift: boolean;
|
|
29
29
|
shiftPadding: number;
|
|
30
30
|
matchSize?: "width" | "height" | "both";
|
|
31
|
+
/**
|
|
32
|
+
* Offsets the popup along the main axis.
|
|
33
|
+
* @link https://floating-ui.com/docs/offset#mainaxis
|
|
34
|
+
*/
|
|
35
|
+
offsetMainAxis?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Offsets the popup along the cross axis.
|
|
38
|
+
* @link https://floating-ui.com/docs/offset#crossaxis
|
|
39
|
+
*/
|
|
40
|
+
offsetCrossAxis?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Offsets the popup along the alignment axis.
|
|
43
|
+
* Overrides the `offsetCrossAxis` value.
|
|
44
|
+
* @link https://floating-ui.com/docs/offset#alignmentaxis
|
|
45
|
+
*/
|
|
46
|
+
offsetAlignmentAxis?: number;
|
|
31
47
|
autoSize?: "width" | "height" | "both";
|
|
32
48
|
autoSizePadding: number;
|
|
33
49
|
private anchorEl;
|
package/dist/Popup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { autoUpdate, offset, size, flip, shift, computePosition } from '@floating-ui/dom';
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
|
|
7
7
|
var css_248z = css`:host {
|
|
8
8
|
--popup-font-regular: var(--leu-font-family-regular);
|
|
@@ -91,6 +91,15 @@ class LeuPopup extends LeuElement {
|
|
|
91
91
|
if (!this.anchorEl || !this.popupEl || !this.active)
|
|
92
92
|
return;
|
|
93
93
|
const middleware = [];
|
|
94
|
+
if (this.offsetAlignmentAxis ||
|
|
95
|
+
this.offsetMainAxis ||
|
|
96
|
+
this.offsetCrossAxis) {
|
|
97
|
+
middleware.push(offset({
|
|
98
|
+
mainAxis: this.offsetMainAxis,
|
|
99
|
+
crossAxis: this.offsetCrossAxis,
|
|
100
|
+
alignmentAxis: this.offsetAlignmentAxis,
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
94
103
|
if (this.matchSize) {
|
|
95
104
|
middleware.push(size({
|
|
96
105
|
apply: ({ rects }) => {
|
|
@@ -206,6 +215,15 @@ __decorate([
|
|
|
206
215
|
__decorate([
|
|
207
216
|
property({ type: String, reflect: true })
|
|
208
217
|
], LeuPopup.prototype, "matchSize", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
property({ type: Number, reflect: true, attribute: "offset-main-axis" })
|
|
220
|
+
], LeuPopup.prototype, "offsetMainAxis", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property({ type: Number, reflect: true, attribute: "offset-cross-axis" })
|
|
223
|
+
], LeuPopup.prototype, "offsetCrossAxis", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
property({ type: Number, reflect: true, attribute: "offset-alignment-axis" })
|
|
226
|
+
], LeuPopup.prototype, "offsetAlignmentAxis", void 0);
|
|
209
227
|
__decorate([
|
|
210
228
|
property({ type: String, reflect: true })
|
|
211
229
|
], LeuPopup.prototype, "autoSize", void 0);
|
package/dist/ProgressBar.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
|
|
7
7
|
var css_248z = css`/* :host {
|
|
8
8
|
--progress-bar-font-regular: var(--leu-font-family-regular);
|
package/dist/Radio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { L as LeuElement } from './LeuElement-
|
|
4
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
5
5
|
|
|
6
6
|
var css_248z = css`:host {
|
|
7
7
|
--radio-color: var(--leu-color-black-40);
|
package/dist/RadioGroup.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
|
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { L as LeuElement } from './LeuElement-
|
|
5
|
+
import { L as LeuElement } from './LeuElement-BfbOWTGZ.js';
|
|
6
6
|
import { LeuRadio } from './Radio.js';
|
|
7
7
|
|
|
8
8
|
var css_248z = css`:host {
|
package/dist/Range.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
|
+
import { nothing } from 'lit';
|
|
3
4
|
import { L as LeuElement } from './LeuElement.d-BevHqLUu.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -16,13 +17,61 @@ declare class LeuRange extends LeuElement {
|
|
|
16
17
|
registry?: CustomElementRegistry;
|
|
17
18
|
};
|
|
18
19
|
defaultValue: number[];
|
|
20
|
+
/**
|
|
21
|
+
* The minimum value of the range slider.
|
|
22
|
+
*/
|
|
19
23
|
min: number;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum value of the range slider.
|
|
26
|
+
*/
|
|
20
27
|
max: number;
|
|
28
|
+
/**
|
|
29
|
+
* The step size of the range slider.
|
|
30
|
+
*/
|
|
21
31
|
step: number;
|
|
22
32
|
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* The label of the range slider.
|
|
35
|
+
*/
|
|
23
36
|
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to hide the label of the range slider.
|
|
39
|
+
* If true, the label will still be available for screen readers
|
|
40
|
+
* and is only visually hidden.
|
|
41
|
+
*/
|
|
42
|
+
hideLabel: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the range slider is disabled.
|
|
45
|
+
*/
|
|
24
46
|
disabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to use a range with two handles.
|
|
49
|
+
*/
|
|
25
50
|
multiple: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Wheter to show tick marks below the range slider.
|
|
53
|
+
* One tick mark per step will be rendered.
|
|
54
|
+
*/
|
|
55
|
+
showTicks: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show the min and max labels below the range slider.
|
|
58
|
+
*/
|
|
59
|
+
showRangeLabels: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* A prefix to display before the value in the output element(s).
|
|
62
|
+
* Is ignored if a custom valueFormatter is provided.
|
|
63
|
+
*/
|
|
64
|
+
prefix: string;
|
|
65
|
+
/**
|
|
66
|
+
* A suffix to display after the value in the output element(s).
|
|
67
|
+
* Is ignored if a custom valueFormatter is provided.
|
|
68
|
+
*/
|
|
69
|
+
suffix: string;
|
|
70
|
+
/**
|
|
71
|
+
* A custom function to format the value displayed in the output element(s).
|
|
72
|
+
* If provided, the prefix and suffix properties will be ignored.
|
|
73
|
+
*/
|
|
74
|
+
valueFormatter?: (value: number) => string;
|
|
26
75
|
updated(): void;
|
|
27
76
|
protected get _inputs(): HTMLInputElement[];
|
|
28
77
|
protected _updateStyles(): void;
|
|
@@ -50,6 +99,8 @@ declare class LeuRange extends LeuElement {
|
|
|
50
99
|
protected _handlePointerDown(e: PointerEvent & {
|
|
51
100
|
target: HTMLInputElement;
|
|
52
101
|
}): void;
|
|
102
|
+
protected formatValue(value: number): string;
|
|
103
|
+
protected renderTicks(): typeof nothing | lit_html.TemplateResult<1>;
|
|
53
104
|
render(): lit_html.TemplateResult<1>;
|
|
54
105
|
}
|
|
55
106
|
|