@statistikzh/leu 0.13.0 → 0.14.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/.eslintrc.json +8 -0
- package/.github/workflows/ci.yml +78 -0
- package/.github/workflows/deploy-github-pages.yaml +2 -1
- package/.github/workflows/release-please.yml +2 -1
- package/.nvmrc +1 -0
- package/.prettierignore +1 -0
- package/.storybook/main.js +19 -3
- 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 +27 -0
- package/custom-elements-manifest.config.js +2 -2
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.d.ts.map +1 -1
- package/dist/Accordion.js +2 -4
- package/dist/Button.d.ts +2 -2
- 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.d.ts.map +1 -1
- package/dist/Checkbox.js +2 -3
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.d.ts.map +1 -1
- package/dist/CheckboxGroup.js +1 -3
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +5 -6
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.d.ts.map +1 -1
- package/dist/ChipGroup.js +2 -2
- 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.d.ts.map +1 -1
- package/dist/Dialog.js +3 -5
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +4 -3
- package/dist/Icon.d.ts +2 -98
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +6 -2
- package/dist/Input.d.ts +7 -2
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +15 -8
- package/dist/{LeuElement-874a297c.d.ts → LeuElement-BjGpKQpe.d.ts} +1 -1
- package/dist/LeuElement-BjGpKQpe.d.ts.map +1 -0
- package/dist/{LeuElement-874a297c.js → LeuElement-BjGpKQpe.js} +12 -2
- package/dist/Menu.d.ts +2 -2
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +3 -3
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +3 -3
- package/dist/Popup.d.ts +2 -2
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +2 -3
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.d.ts.map +1 -1
- package/dist/Radio.js +1 -3
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup.js +1 -3
- package/dist/Range.d.ts +1 -1
- package/dist/Range.d.ts.map +1 -1
- package/dist/Range.js +17 -19
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.d.ts.map +1 -1
- package/dist/ScrollTop.js +27 -3
- package/dist/Select.d.ts +3 -3
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +7 -5
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +3 -4
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden.js +3 -5
- package/dist/{hasSlotController-dbcac394.d.ts → hasSlotController-DvFw2NdC.d.ts} +1 -1
- package/dist/hasSlotController-DvFw2NdC.d.ts.map +1 -0
- package/dist/{hasSlotController-dbcac394.js → hasSlotController-DvFw2NdC.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -7
- package/dist/leu-accordion.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 -3
- 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/theme.css +143 -107
- package/dist/vscode.html-custom-data.json +3 -32
- package/dist/vue/index.d.ts +11 -77
- package/dist/web-types.json +246 -242
- package/index.js +1 -1
- package/package.json +55 -51
- package/rollup.config.js +3 -3
- package/scripts/generate-component/generate.js +5 -5
- package/src/components/accordion/test/accordion.test.js +24 -20
- package/src/components/button/Button.js +9 -4
- package/src/components/button/button.css +56 -22
- package/src/components/button/stories/button.stories.js +44 -45
- package/src/components/button/test/button.test.js +13 -13
- package/src/components/button-group/ButtonGroup.js +1 -1
- package/src/components/button-group/stories/button-group.stories.js +2 -2
- package/src/components/checkbox/checkbox.css +1 -0
- package/src/components/chip/ChipSelectable.js +1 -1
- package/src/components/chip/chip.css +4 -3
- package/src/components/chip/stories/chip-group.stories.js +4 -4
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/chip/test/chip-group.test.js +25 -33
- package/src/components/chip/test/chip-link.test.js +5 -5
- package/src/components/chip/test/chip-removable.test.js +6 -8
- package/src/components/chip/test/chip-selectable.test.js +9 -11
- package/src/components/dialog/test/dialog.test.js +1 -1
- package/src/components/dropdown/dropdown.css +1 -0
- package/src/components/dropdown/test/dropdown.test.js +12 -13
- package/src/components/icon/icon.css +4 -0
- package/src/components/input/Input.js +25 -17
- package/src/components/input/stories/input.stories.js +0 -2
- package/src/components/input/test/input.test.js +26 -0
- package/src/components/menu/stories/menu-item.stories.js +2 -0
- package/src/components/menu/test/menu-item.test.js +3 -2
- package/src/components/menu/test/menu.test.js +24 -22
- package/src/components/pagination/Pagination.js +1 -1
- package/src/components/pagination/pagination.css +1 -1
- package/src/components/pagination/stories/pagination.stories.js +2 -1
- package/src/components/pagination/test/pagination.test.js +8 -6
- package/src/components/popup/Popup.js +4 -4
- package/src/components/popup/popup.css +1 -0
- package/src/components/popup/test/popup.test.js +6 -8
- package/src/components/radio/RadioGroup.js +2 -2
- package/src/components/range/Range.js +20 -21
- package/src/components/select/Select.js +6 -1
- package/src/components/select/select.css +1 -1
- package/src/components/select/stories/select.stories.js +1 -1
- package/src/components/select/test/select.test.js +19 -16
- package/src/components/table/Table.js +4 -4
- package/src/components/table/test/table.test.js +3 -2
- package/src/components/visually-hidden/test/visually-hidden.test.js +6 -8
- package/src/lib/LeuElement.js +2 -2
- package/src/lib/hasSlotController.js +1 -1
- package/src/styles/common-styles.css +9 -0
- package/src/styles/style.stories.js +3 -1
- package/tsconfig.build.json +4 -3
- package/web-dev-server.config.mjs +1 -0
- package/web-test-runner.config.mjs +2 -1
- package/.github/workflows/test.yml +0 -38
- package/.storybook/preview-head.html +0 -5
- package/dist/Breadcrumb.d.ts +0 -69
- package/dist/Breadcrumb.d.ts.map +0 -1
- package/dist/Breadcrumb.js +0 -391
- package/dist/LeuElement-874a297c.d.ts.map +0 -1
- package/dist/hasSlotController-dbcac394.d.ts.map +0 -1
- package/dist/leu-breadcrumb.d.ts +0 -3
- package/dist/leu-breadcrumb.d.ts.map +0 -1
- package/dist/leu-breadcrumb.js +0 -17
- package/dist/utils-65469421.d.ts +0 -16
- package/dist/utils-65469421.d.ts.map +0 -1
- package/dist/utils-65469421.js +0 -35
- package/src/components/breadcrumb/Breadcrumb.js +0 -324
- package/src/components/breadcrumb/breadcrumb.css +0 -98
- package/src/components/breadcrumb/leu-breadcrumb.js +0 -5
- package/src/components/breadcrumb/stories/breadcrumb.stories.js +0 -73
- package/src/components/breadcrumb/test/breadcrumb.test.js +0 -141
package/dist/Dialog.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
2
|
-
import { css,
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
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';
|
|
5
|
-
import { H as HasSlotController } from './hasSlotController-
|
|
5
|
+
import { H as HasSlotController } from './hasSlotController-DvFw2NdC.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
|
|
8
8
|
var css_248z = css`/* figma https://www.figma.com/design/d6Pv21UVUbnBs3AdcZijHmbN/KTZH-Design-System?node-id=21161-186812&t=8VgDy9avMRG5aL7s-0 */
|
|
@@ -10,8 +10,6 @@ var css_248z = css`/* figma https://www.figma.com/design/d6Pv21UVUbnBs3AdcZijHmb
|
|
|
10
10
|
--dialog-font-regular: var(--leu-font-family-regular);
|
|
11
11
|
--dialog-font-black: var(--leu-font-family-black);
|
|
12
12
|
|
|
13
|
-
font-family: var(--leu-font-family-regular);
|
|
14
|
-
|
|
15
13
|
font-family: var(--dialog-font-regular);
|
|
16
14
|
}
|
|
17
15
|
.dialog {
|
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-BjGpKQpe.js';
|
|
19
19
|
//# sourceMappingURL=Dropdown.d.ts.map
|
package/dist/Dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH;IAMQ,kBAAqB;IAqBzB,cAAe;IAGf,kEAAkE;IAClE,YADW,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CACjC;IAkB/B,gCAIC;IACD,iDAYC;IACD,2BAEC;IAED;;OAEG;IACH,gBAEC;IACD,+CA6BC;CACF;gCA7IqD,0BAA0B"}
|
package/dist/Dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
2
|
-
import { css,
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
|
+
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
|
-
import { H as HasSlotController } from './hasSlotController-
|
|
4
|
+
import { H as HasSlotController } from './hasSlotController-DvFw2NdC.js';
|
|
5
5
|
import { LeuButton } from './Button.js';
|
|
6
6
|
import { LeuMenu } from './Menu.js';
|
|
7
7
|
import { LeuMenuItem } from './MenuItem.js';
|
|
@@ -13,6 +13,7 @@ import '@floating-ui/dom';
|
|
|
13
13
|
|
|
14
14
|
var css_248z = css`:host {
|
|
15
15
|
position: relative;
|
|
16
|
+
display: contents;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.content {
|
package/dist/Icon.d.ts
CHANGED
|
@@ -1,100 +1,4 @@
|
|
|
1
|
-
export type IconPathName =
|
|
2
|
-
addNew: string;
|
|
3
|
-
angleDropDown: string;
|
|
4
|
-
angleDropup: string;
|
|
5
|
-
angleLeft: string;
|
|
6
|
-
angleRight: string;
|
|
7
|
-
arrowDown: string;
|
|
8
|
-
arrowLeft: string;
|
|
9
|
-
arrowRight: string;
|
|
10
|
-
arrowUp: string;
|
|
11
|
-
calendar: string;
|
|
12
|
-
caution: string;
|
|
13
|
-
chatMessage: string;
|
|
14
|
-
check: string;
|
|
15
|
-
clear: string;
|
|
16
|
-
close: string;
|
|
17
|
-
conference: string;
|
|
18
|
-
confirm: string;
|
|
19
|
-
confirmPlain: string;
|
|
20
|
-
delete: string;
|
|
21
|
-
documents: string;
|
|
22
|
-
download: string;
|
|
23
|
-
edit: string;
|
|
24
|
-
email: string;
|
|
25
|
-
file: string;
|
|
26
|
-
fileOutline: string;
|
|
27
|
-
files: string;
|
|
28
|
-
filter: string;
|
|
29
|
-
floppy: string;
|
|
30
|
-
forward: string;
|
|
31
|
-
getInformation: string;
|
|
32
|
-
hide: string;
|
|
33
|
-
home: string;
|
|
34
|
-
link: string;
|
|
35
|
-
list: string;
|
|
36
|
-
lock: string;
|
|
37
|
-
location: string;
|
|
38
|
-
login: string;
|
|
39
|
-
logout: string;
|
|
40
|
-
map: string;
|
|
41
|
-
mapLocateMe: string;
|
|
42
|
-
mapLocation: string;
|
|
43
|
-
mapNavigation: string;
|
|
44
|
-
mapPin: string;
|
|
45
|
-
menu: string;
|
|
46
|
-
menuOverflow: string;
|
|
47
|
-
minus: string;
|
|
48
|
-
openMail: string;
|
|
49
|
-
overflow: string;
|
|
50
|
-
paperplane: string;
|
|
51
|
-
paragraph: string;
|
|
52
|
-
phoneCall: string;
|
|
53
|
-
pin: string;
|
|
54
|
-
plus: string;
|
|
55
|
-
print: string;
|
|
56
|
-
remove: string;
|
|
57
|
-
resizeText: string;
|
|
58
|
-
search: string;
|
|
59
|
-
show: string;
|
|
60
|
-
time: string;
|
|
61
|
-
upload: string;
|
|
62
|
-
cc: string;
|
|
63
|
-
fastForward: string;
|
|
64
|
-
fastRewind: string;
|
|
65
|
-
fullScreen: string;
|
|
66
|
-
next: string;
|
|
67
|
-
pause: string;
|
|
68
|
-
play: string;
|
|
69
|
-
playButton: string;
|
|
70
|
-
previews: string;
|
|
71
|
-
skipNext: string;
|
|
72
|
-
skipPrevious: string;
|
|
73
|
-
stop: string;
|
|
74
|
-
comment: string;
|
|
75
|
-
facebook: string;
|
|
76
|
-
google: string;
|
|
77
|
-
instagram: string;
|
|
78
|
-
kununu: string;
|
|
79
|
-
like: string;
|
|
80
|
-
linkedin: string;
|
|
81
|
-
love: string;
|
|
82
|
-
repost: string;
|
|
83
|
-
share: string;
|
|
84
|
-
snapchat: string;
|
|
85
|
-
twitter: string;
|
|
86
|
-
user: string;
|
|
87
|
-
users: string;
|
|
88
|
-
vote: string;
|
|
89
|
-
xing: string;
|
|
90
|
-
youtube: string;
|
|
91
|
-
youtubeLogo: string;
|
|
92
|
-
smileyThrilled: string;
|
|
93
|
-
smileySmile: string;
|
|
94
|
-
smileyIndifferent: string;
|
|
95
|
-
smileySad: string;
|
|
96
|
-
smileyDevastated: string;
|
|
97
|
-
};
|
|
1
|
+
export type IconPathName = "map" | "filter" | "link" | "menu" | "search" | "time" | "stop" | "close" | "pause" | "play" | "hide" | "arrowDown" | "arrowUp" | "addNew" | "angleDropDown" | "angleDropup" | "angleLeft" | "angleRight" | "arrowLeft" | "arrowRight" | "calendar" | "caution" | "chatMessage" | "check" | "clear" | "conference" | "confirm" | "confirmPlain" | "delete" | "documents" | "download" | "edit" | "email" | "file" | "fileOutline" | "files" | "floppy" | "forward" | "getInformation" | "home" | "list" | "lock" | "location" | "login" | "logout" | "mapLocateMe" | "mapLocation" | "mapNavigation" | "mapPin" | "menuOverflow" | "minus" | "openMail" | "overflow" | "paperplane" | "paragraph" | "phoneCall" | "pin" | "plus" | "print" | "remove" | "resizeText" | "show" | "upload" | "cc" | "fastForward" | "fastRewind" | "fullScreen" | "next" | "playButton" | "previews" | "skipNext" | "skipPrevious" | "comment" | "facebook" | "google" | "instagram" | "kununu" | "like" | "linkedin" | "love" | "repost" | "share" | "snapchat" | "twitter" | "user" | "users" | "vote" | "xing" | "youtube" | "youtubeLogo" | "smileyThrilled" | "smileySmile" | "smileyIndifferent" | "smileySad" | "smileyDevastated";
|
|
98
2
|
/**
|
|
99
3
|
* A component to render all defined zhWeb icons.
|
|
100
4
|
* The `fill` of the icon is set to `currentColor` and
|
|
@@ -112,5 +16,5 @@ export class LeuIcon extends LeuElement {
|
|
|
112
16
|
name: any | "";
|
|
113
17
|
render(): import("lit-html").TemplateResult<1>;
|
|
114
18
|
}
|
|
115
|
-
import { L as LeuElement } from './LeuElement-
|
|
19
|
+
import { L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
116
20
|
//# sourceMappingURL=Icon.d.ts.map
|
package/dist/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":";AA0HA;;;;;;;;;GASG;AACH;IAII;;OAEG;IACH,MAFU,GAA8B,GAAG,EAAE,CAE/B;IAEhB,+CAiBC;CACF;gCA/JqD,0BAA0B"}
|
package/dist/Icon.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
2
|
import { css, html, svg } from 'lit';
|
|
3
3
|
|
|
4
|
-
var css_248z = css
|
|
4
|
+
var css_248z = css`:host {
|
|
5
|
+
display: contents;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
svg,
|
|
5
9
|
.placeholder {
|
|
6
10
|
display: block;
|
|
7
11
|
width: 1.5rem;
|
package/dist/Input.d.ts
CHANGED
|
@@ -125,6 +125,12 @@ export class LeuInput extends LeuElement {
|
|
|
125
125
|
* @returns {Object} validationMessages
|
|
126
126
|
*/
|
|
127
127
|
getValidationMessages(): any;
|
|
128
|
+
isInvalid(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Check input validation
|
|
131
|
+
* @returns {boolean} if valid or not
|
|
132
|
+
*/
|
|
133
|
+
checkValidity(): boolean;
|
|
128
134
|
/**
|
|
129
135
|
* Creates an error list with an item for the given validity state.
|
|
130
136
|
* @returns {import("lit").TemplateResult | nothing}
|
|
@@ -138,13 +144,12 @@ export class LeuInput extends LeuElement {
|
|
|
138
144
|
* @returns {import("lit").TemplateResult | nothing}
|
|
139
145
|
*/
|
|
140
146
|
private renderAfterContent;
|
|
141
|
-
isInvalid(): boolean;
|
|
142
147
|
render(): import("lit-html").TemplateResult<1>;
|
|
143
148
|
}
|
|
144
149
|
export const SIZES: Readonly<{
|
|
145
150
|
SMALL: "small";
|
|
146
151
|
REGULAR: "regular";
|
|
147
152
|
}>;
|
|
148
|
-
import { L as LeuElement } from './LeuElement-
|
|
153
|
+
import { L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
149
154
|
import { nothing } from 'lit';
|
|
150
155
|
//# sourceMappingURL=Input.d.ts.map
|
package/dist/Input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["Input.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["Input.js"],"names":[],"mappings":"AAgTA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE,kEAKC;IAGC,kBAAqB;IACrB,kBAAqB;IACrB,mBAAsB;IAEtB,kCAAkC;IAClC,MADW,OAAO,GAAG,SAAS,CACL;IACzB,aAAkB;IAClB,eAAqB;IACrB,uBAA4B;IAC5B,oBAAuB;IACvB,cAAe;IAEf,gBAAgB;IAChB,oBAAqB;IAErB;;;OAGG;IACH,WAFU,OAAO,uBAAuB,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAEnC;IAE9B,4BAKC;IAED;;;;;;;;;;OAUG;IACH,2BAIC;IAED;;;;;;OAMG;IACH,mBAKC;IAED;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;;;OAQG;IACH,qBAMC;IAED;;;;;;;OAOG;IACH,oBAOC;IAED;;;;;;;;OAQG;IACH,cAWC;IAED;;;;;;;OAOG;IACH,cAUC;IAED;;;;;;;;;;OAUG;IACH,6BAgBC;IACD,qBAKC;IAED;;;OAGG;IACH,iBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,uBAFa,OAAO,KAAK,EAAE,cAAc,iBAAU,CAgBlD;IAED;;;;;;OAMG;IACH,2BAsBC;IACD,+CA2CC;CACF;AAzVD;;;GAGG;gCA3RmD,0BAA0B;wBAC7C,KAAK"}
|
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-BjGpKQpe.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';
|
|
@@ -36,7 +36,6 @@ var css_248z = css`:host {
|
|
|
36
36
|
--input-height-small: 3rem;
|
|
37
37
|
|
|
38
38
|
display: block;
|
|
39
|
-
font-family: var(--leu-font-family-regular);
|
|
40
39
|
font-family: var(--input-font-regular);
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -515,6 +514,20 @@ class LeuInput extends LeuElement {
|
|
|
515
514
|
validationMessages.rangeUnderflow = LeuInput.resolveErrorMessage(rangeUnderflow, this.min);
|
|
516
515
|
return validationMessages;
|
|
517
516
|
}
|
|
517
|
+
isInvalid() {
|
|
518
|
+
if (this.error) {
|
|
519
|
+
return true;
|
|
520
|
+
}
|
|
521
|
+
return this._validity === null || this.novalidate ? false : !this._validity.valid;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Check input validation
|
|
526
|
+
* @returns {boolean} if valid or not
|
|
527
|
+
*/
|
|
528
|
+
checkValidity() {
|
|
529
|
+
return this._inputRef.value?.checkValidity() ?? false;
|
|
530
|
+
}
|
|
518
531
|
|
|
519
532
|
/**
|
|
520
533
|
* Creates an error list with an item for the given validity state.
|
|
@@ -566,12 +579,6 @@ class LeuInput extends LeuElement {
|
|
|
566
579
|
}
|
|
567
580
|
return nothing;
|
|
568
581
|
}
|
|
569
|
-
isInvalid() {
|
|
570
|
-
if (this.error) {
|
|
571
|
-
return true;
|
|
572
|
-
}
|
|
573
|
-
return this._validity === null || this.novalidate ? false : !this._validity.valid;
|
|
574
|
-
}
|
|
575
582
|
render() {
|
|
576
583
|
const isInvalid = this.isInvalid();
|
|
577
584
|
const inputWrapperClasses = {
|
|
@@ -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-BjGpKQpe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeuElement-BjGpKQpe.d.ts","sourceRoot":"","sources":["LeuElement-BjGpKQpe.js"],"names":[],"mappings":"AAgDA;IACE,8EAcC;CACF;AA9DD,sEAaC;2BAf+B,KAAK"}
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) {
|
|
|
18
18
|
if (typeof input !== "object" || input === null) return input;
|
|
19
19
|
var prim = input[Symbol.toPrimitive];
|
|
20
20
|
if (prim !== undefined) {
|
|
21
|
-
var res = prim.call(input, hint
|
|
21
|
+
var res = prim.call(input, hint);
|
|
22
22
|
if (typeof res !== "object") return res;
|
|
23
23
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
24
|
}
|
|
@@ -34,6 +34,16 @@ var css_248z = css`:host,
|
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
font-feature-settings: var(--leu-t-font-feature-settings);
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* If a custom element sets the display property to any value
|
|
40
|
+
* it will not be hidden by the [hidden] attribute.
|
|
41
|
+
* That's why we need to specify this rule.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
:host([hidden]) {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
37
47
|
`;
|
|
38
48
|
|
|
39
49
|
class LeuElement extends LitElement {
|
|
@@ -53,7 +63,7 @@ class LeuElement extends LitElement {
|
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
65
|
}
|
|
56
|
-
_defineProperty(LeuElement, "version", "0.
|
|
66
|
+
_defineProperty(LeuElement, "version", "0.14.0");
|
|
57
67
|
_defineProperty(LeuElement, "dependencies", {});
|
|
58
68
|
_defineProperty(LeuElement, "styles", css_248z);
|
|
59
69
|
|
package/dist/Menu.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SelectsType =
|
|
1
|
+
export type SelectsType = "single" | "multiple" | "none";
|
|
2
2
|
/**
|
|
3
3
|
* @typedef {'single' | 'multiple' | 'none'} SelectsType
|
|
4
4
|
*/
|
|
@@ -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-BjGpKQpe.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-BjGpKQpe.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MenuItemRole =
|
|
1
|
+
export type MenuItemRole = "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "none";
|
|
2
2
|
/**
|
|
3
3
|
* @typedef {'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'option' | 'none'} MenuItemRole
|
|
4
4
|
*/
|
|
@@ -34,9 +34,9 @@ export class LeuMenuItem extends LeuElement {
|
|
|
34
34
|
_getTabIndex(): 0 | -1;
|
|
35
35
|
_renderLink(content: any): import("lit-html").TemplateResult<1>;
|
|
36
36
|
_renderButton(content: any): import("lit-html").TemplateResult<1>;
|
|
37
|
-
_renderBeforeSlotDefault(): import("lit-html").TemplateResult<1
|
|
37
|
+
_renderBeforeSlotDefault(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
38
38
|
render(): import("lit-html").TemplateResult<1>;
|
|
39
39
|
}
|
|
40
|
-
import { L as LeuElement } from './LeuElement-
|
|
40
|
+
import { L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
41
41
|
import { nothing } from 'lit';
|
|
42
42
|
//# sourceMappingURL=MenuItem.d.ts.map
|
package/dist/MenuItem.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { LeuIcon } from './Icon.js';
|
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-BjGpKQpe.js';
|
|
34
34
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { live } from 'lit/directives/live.js';
|
|
4
4
|
import { LeuButton } from './Button.js';
|
|
@@ -6,12 +6,12 @@ import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
|
8
8
|
import 'lit/directives/if-defined.js';
|
|
9
|
-
import './hasSlotController-
|
|
9
|
+
import './hasSlotController-DvFw2NdC.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = css`:host {
|
|
12
12
|
margin-top: 16px;
|
|
13
13
|
display: flex;
|
|
14
|
-
justify-content: end;
|
|
14
|
+
justify-content: flex-end;
|
|
15
15
|
font-family: var(--leu-font-family-regular);
|
|
16
16
|
}
|
|
17
17
|
|
package/dist/Popup.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export class LeuPopup extends LeuElement {
|
|
|
25
25
|
/**
|
|
26
26
|
* @returns {HTMLElement | null}
|
|
27
27
|
*/
|
|
28
|
-
get popupEl(): HTMLElement;
|
|
28
|
+
get popupEl(): HTMLElement | null;
|
|
29
29
|
start(): void;
|
|
30
30
|
stop(): void;
|
|
31
31
|
reposition(): void;
|
|
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-BjGpKQpe.js';
|
|
36
36
|
//# sourceMappingURL=Popup.d.ts.map
|
package/dist/Popup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["Popup.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["Popup.js"],"names":[],"mappings":"wBAmCa,KAAK,GAAC,WAAW,GAAC,SAAS,GAAC,QAAQ,GAAC,cAAc,GAAC,YAAY,GAAC,MAAM,GAAC,YAAY,GAAC,UAAU,GAAC,OAAO,GAAC,aAAa,GAAC,WAAW;AAD9I;;GAEG;AAEH;;GAEG;AACH;IAGI,cAAoB;IACpB,oBAAwB;IACxB,cAAiB;IACjB,eAAkB;IAClB,gBAAmB;IAEnB,wBAAwB;IACxB,WADW,SAAS,CACM;IAE1B,0CAA0C;IAC1C,WADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACZ;IAE1B,0CAA0C;IAC1C,UADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACb;IACzB,qBAAqB;IACrB,wBAAwB;IAExB,mCAAmC;IACnC,QADW,MAAM,GAAG,WAAW,CACR;IAMzB,sCAcC;IAED;;OAEG;IACH,eAFa,WAAW,GAAG,IAAI,CAI9B;IACD,cAKC;IACD,aAIC;IACD,mBAiEC;IACD,2BAiBC;IACD,+CAOC;CACF;gCAjMqD,0BAA0B"}
|
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-BjGpKQpe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
|
|
4
4
|
|
|
@@ -6,9 +6,8 @@ var css_248z = css`:host {
|
|
|
6
6
|
--popup-font-regular: var(--leu-font-family-regular);
|
|
7
7
|
--popup-font-black: var(--leu-font-family-black);
|
|
8
8
|
|
|
9
|
-
font-family: var(--leu-font-family-regular);
|
|
10
|
-
|
|
11
9
|
font-family: var(--popup-font-regular);
|
|
10
|
+
display: contents;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.popup {
|
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-BjGpKQpe.js';
|
|
14
14
|
//# sourceMappingURL=Radio.d.ts.map
|
package/dist/Radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["Radio.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["Radio.js"],"names":[],"mappings":"AA8FA;;GAEG;AACH;IAGI,iBAAoB;IACpB,kBAAqB;IACrB,aAAc;IACd,cAAe;IAEjB,+BAIC;IACD,8BAEC;IACD,+CAeC;CACF;gCAjIqD,0BAA0B"}
|
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-BjGpKQpe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
|
|
4
4
|
var css_248z = css`:host {
|
|
@@ -15,8 +15,6 @@ var css_248z = css`:host {
|
|
|
15
15
|
align-items: flex-start;
|
|
16
16
|
gap: 0.5rem;
|
|
17
17
|
|
|
18
|
-
font-family: var(--leu-font-family-regular);
|
|
19
|
-
|
|
20
18
|
font-family: var(--radio-font-regular);
|
|
21
19
|
}
|
|
22
20
|
|
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-BjGpKQpe.js';
|
|
20
20
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
package/dist/RadioGroup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["RadioGroup.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["RadioGroup.js"],"names":[],"mappings":"AAmCA;;GAEG;AACH;IAKM,sBAAiD;IA2BnD,oBAA+B;IAE/B,aAAe;IAEjB,iBAGC;IAUD,0BAaC;IACD,6BAMC;IACD,yBAEC;IACD,qCAIC;IACD,yDAaC;IACD,oBAQC;IACD,oBAIC;IACD,wBAIC;IACD,+CAWC;CACF;gCAjKqD,0BAA0B"}
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
|
|
@@ -6,8 +6,6 @@ var css_248z = css`:host {
|
|
|
6
6
|
--group-font-regular: var(--leu-font-family-regular);
|
|
7
7
|
--group-font-black: var(--leu-font-family-black);
|
|
8
8
|
|
|
9
|
-
font-family: var(--leu-font-family-regular);
|
|
10
|
-
|
|
11
9
|
font-family: var(--group-font-regular);
|
|
12
10
|
}
|
|
13
11
|
|
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-BjGpKQpe.js';
|
|
60
60
|
//# sourceMappingURL=Range.d.ts.map
|
package/dist/Range.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["Range.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["Range.js"],"names":[],"mappings":"AAwMA;;GAEG;AACH;IAGI,uBAAwB;IACxB,YAAY;IACZ,YAAc;IACd,aAAa;IACb,aAAc;IACd,cAAe;IACf,kBAAqB;IACrB,kBAAqB;IAEvB,gBAEC;IACD,sBAYC;IAMD;;;;;OAKG;IACH,iBAFW,MAAM,QAAQ,EAaxB;IAtBD,aASW,MAAM,QAAQ,CANxB;IAoBD,6BAEC;IACD,gCAMC;IACD,iCAMC;IAED;;OAEG;IACH,iBAFa,gBAAgB,GAAG,IAAI,CAInC;IAED;;OAEG;IACH,kBAFa,gBAAgB,GAAG,IAAI,CAInC;IAED;;;;OAIG;IACH,qBAHW,MAAM,MACN,UAAU,GAAG;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAC,QAIjD;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,MAAM,CAIlB;IACD,gCAKC;IAED;;;;OAIG;IACH,sBAFW,YAAY,GAAG;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAC,QAanD;IACD,+CAyCC;CACF;gCAjXqD,0BAA0B"}
|
package/dist/Range.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
|
|
4
4
|
var css_248z = css`:host {
|
|
@@ -27,8 +27,6 @@ var css_248z = css`:host {
|
|
|
27
27
|
|
|
28
28
|
display: block;
|
|
29
29
|
|
|
30
|
-
font-family: var(--leu-font-family-regular);
|
|
31
|
-
|
|
32
30
|
font-family: var(--range-font-regular);
|
|
33
31
|
}
|
|
34
32
|
|
|
@@ -67,7 +65,7 @@ var css_248z = css`:host {
|
|
|
67
65
|
--_stop: calc(100% - var(--range-thumb-diameter));
|
|
68
66
|
--_start: 0%;
|
|
69
67
|
|
|
70
|
-
left: calc(var(--value) * (
|
|
68
|
+
left: calc(var(--value) * (var(--_stop) - 0%) + 0%);
|
|
71
69
|
|
|
72
70
|
left: calc(var(--value) * (var(--_stop) - var(--_start)) + var(--_start));
|
|
73
71
|
transform: translateX(calc(-50% + var(--range-thumb-diameter) / 2));
|
|
@@ -350,21 +348,21 @@ class LeuRange extends LeuElement {
|
|
|
350
348
|
</div>
|
|
351
349
|
<div class="inputs">
|
|
352
350
|
${inputs.map((type, index) => html`
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
351
|
+
<input
|
|
352
|
+
@input=${e => this._handleInput(index, e)}
|
|
353
|
+
@pointerdown=${multiple && !disabled && index === 0 ? this._handlePointerDown : undefined}
|
|
354
|
+
type="range"
|
|
355
|
+
class="range range--${type}"
|
|
356
|
+
id="input-${type}"
|
|
357
|
+
name=${this.name}
|
|
358
|
+
min=${this.min}
|
|
359
|
+
max=${this.max}
|
|
360
|
+
step=${this.step}
|
|
361
|
+
aria-label=${multiple ? RANGE_LABELS[index] : undefined}
|
|
362
|
+
?disabled=${disabled}
|
|
363
|
+
.value=${defaultValue[index].toString()}
|
|
364
|
+
/>
|
|
365
|
+
`)}
|
|
368
366
|
</div>
|
|
369
367
|
</div>
|
|
370
368
|
`;
|
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-BjGpKQpe.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollTop.d.ts","sourceRoot":"","sources":["ScrollTop.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollTop.d.ts","sourceRoot":"","sources":["ScrollTop.js"],"names":[],"mappings":"AAqEA;;GAEG;AACH;IAwCE,2BAMC;IAtCO,qBAAwB;IAM5B;;;;OAIG;IACH,qBAA2E;IAC3E,kBAA+B;IAQjC,gBAAgB;IAChB,0BAAgC;IAkBlC,+CAgBC;CACF;gCAxIqD,0BAA0B"}
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BjGpKQpe.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
|
-
import { t as throttle } from './utils-65469421.js';
|
|
7
6
|
import 'lit/directives/if-defined.js';
|
|
8
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-DvFw2NdC.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Return a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
|
|
11
|
+
* @param {Function} func - Your function
|
|
12
|
+
* @param {Number} timeout - Default is 500 ms
|
|
13
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Return a throttled function that only invokes func at most once per every wait milliseconds.
|
|
18
|
+
* @param {Function} func - Your function
|
|
19
|
+
* @param {Number} timeout - Default is 500 ms
|
|
20
|
+
* @returns {Function} - Your function wrapped in a timeout function
|
|
21
|
+
*/
|
|
22
|
+
const throttle = function throttle(func, timeout = 500) {
|
|
23
|
+
let timer = null;
|
|
24
|
+
return (...args) => {
|
|
25
|
+
if (timer === null) {
|
|
26
|
+
func(...args);
|
|
27
|
+
timer = setTimeout(() => {
|
|
28
|
+
timer = null;
|
|
29
|
+
}, timeout);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
};
|
|
9
33
|
|
|
10
34
|
var css_248z = css`.scroll-top {
|
|
11
35
|
overflow: hidden;
|
package/dist/Select.d.ts
CHANGED
|
@@ -126,11 +126,11 @@ export class LeuSelect extends LeuElement {
|
|
|
126
126
|
* Close the dropdown if the focus moves outside the component.
|
|
127
127
|
*/
|
|
128
128
|
_handlePopupFocusOut(event: any): void;
|
|
129
|
-
_renderFilterInput(): import("lit-html").TemplateResult<1
|
|
130
|
-
_renderApplyButton(): import("lit-html").TemplateResult<1
|
|
129
|
+
_renderFilterInput(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
130
|
+
_renderApplyButton(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
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-BjGpKQpe.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":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AAuPA;;;;;;;;;;;;;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,CAAC,GAAiC,CAAC,CAE1C;IACnC;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAE1B;IAEnC;;OAEG;IACH,UAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,GAA8B,CAAC,CAE/C;IAU7B,sCAqBC;IAED;;;;OAIG;IACH,8CAgCC;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,+CAoDC;CACF;gCA/qBqD,0BAA0B;wBAC7C,KAAK"}
|