@statistikzh/leu 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.js +11 -0
- package/CHANGELOG.md +18 -0
- package/README.md +0 -67
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.d.ts.map +1 -1
- package/dist/Accordion.js +7 -5
- 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 +1 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.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/Dialog.d.ts +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +2 -2
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +4 -5
- package/dist/{LeuElement-BjGpKQpe.d.ts → LeuElement-BI1CxItv.d.ts} +1 -1
- package/dist/LeuElement-BI1CxItv.d.ts.map +1 -0
- package/dist/{LeuElement-BjGpKQpe.js → LeuElement-BI1CxItv.js} +1 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -5
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +3 -16
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- 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/{hasSlotController-DvFw2NdC.d.ts → hasSlotController-CCPfIEw1.d.ts} +1 -1
- package/dist/{hasSlotController-DvFw2NdC.d.ts.map → hasSlotController-CCPfIEw1.d.ts.map} +1 -1
- package/dist/{hasSlotController-DvFw2NdC.js → hasSlotController-CCPfIEw1.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-button-group.js +1 -1
- package/dist/leu-button.js +2 -2
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +2 -2
- package/dist/leu-dropdown.js +2 -2
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +4 -4
- package/dist/vscode.html-custom-data.json +1 -1
- package/dist/vue/index.d.ts +0 -1
- package/dist/web-types.json +2 -2
- package/package.json +3 -3
- package/scripts/generate-component/templates/stories/[name].stories.js +1 -1
- package/src/components/accordion/Accordion.js +1 -1
- package/src/components/accordion/accordion.css +6 -3
- package/src/components/accordion/stories/accordion.stories.js +7 -6
- package/src/components/button/stories/button.stories.js +1 -1
- package/src/components/button-group/stories/button-group.stories.js +1 -1
- package/src/components/checkbox/stories/checkbox-group.stories.js +1 -1
- package/src/components/checkbox/stories/checkbox.stories.js +1 -1
- package/src/components/chip/stories/chip-group.stories.js +1 -1
- package/src/components/chip/stories/chip-link.stories.js +1 -1
- package/src/components/chip/stories/chip-removable.stories.js +1 -1
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/dialog/stories/dialog.stories.js +1 -1
- package/src/components/dropdown/stories/dropdown.stories.js +1 -1
- package/src/components/icon/stories/icon.stories.js +1 -1
- package/src/components/input/Input.js +1 -1
- package/src/components/input/input.css +2 -2
- package/src/components/input/stories/input.stories.js +1 -2
- package/src/components/menu/stories/menu-item.stories.js +1 -1
- package/src/components/menu/stories/menu.stories.js +1 -1
- package/src/components/pagination/stories/pagination.stories.js +1 -1
- package/src/components/popup/stories/popup.stories.js +1 -1
- package/src/components/radio/stories/radio-group.stories.js +1 -1
- package/src/components/radio/stories/radio.stories.js +1 -1
- package/src/components/range/stories/range-slider.stories.js +1 -1
- package/src/components/scroll-top/stories/scroll-top.stories.js +1 -1
- package/src/components/select/Select.js +1 -17
- package/src/components/select/stories/select.stories.js +2 -2
- package/src/components/spinner/stories/spinner.stories.js +1 -1
- package/src/components/table/stories/table.stories.js +1 -1
- package/src/components/visually-hidden/stories/visually-hidden.stories.js +1 -1
- package/src/docs/contributing.mdx +154 -0
- package/src/docs/installation.mdx +35 -0
- package/src/docs/theme.mdx +349 -0
- package/src/docs/usage.mdx +73 -0
- package/src/styles/custom-properties.css +4 -4
- package/src/styles/style.stories.js +1 -1
- package/dist/LeuElement-BjGpKQpe.d.ts.map +0 -1
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-BI1CxItv.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
-
import { H as HasSlotController } from './hasSlotController-
|
|
6
|
+
import { H as HasSlotController } from './hasSlotController-CCPfIEw1.js';
|
|
7
7
|
import { LeuButton } from './Button.js';
|
|
8
8
|
import { LeuMenu } from './Menu.js';
|
|
9
9
|
import { LeuMenuItem } from './MenuItem.js';
|
|
@@ -557,15 +557,6 @@ class LeuSelect extends LeuElement {
|
|
|
557
557
|
this._closeDropdown();
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Close the dropdown if the focus moves outside the component.
|
|
563
|
-
*/
|
|
564
|
-
_handlePopupFocusOut(event) {
|
|
565
|
-
if (!this.contains(event.relatedTarget) && !this.shadowRoot.contains(event.relatedTarget)) {
|
|
566
|
-
this._closeDropdown();
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
560
|
_renderFilterInput() {
|
|
570
561
|
if (this.filterable) {
|
|
571
562
|
return html` <leu-input
|
|
@@ -657,11 +648,7 @@ class LeuSelect extends LeuElement {
|
|
|
657
648
|
autoSizePadding="8"
|
|
658
649
|
>
|
|
659
650
|
${this._renderToggleButton()}
|
|
660
|
-
<div
|
|
661
|
-
id="select-popup"
|
|
662
|
-
class="select-menu-container"
|
|
663
|
-
@focusout=${this._handlePopupFocusOut}
|
|
664
|
-
>
|
|
651
|
+
<div id="select-popup" class="select-menu-container">
|
|
665
652
|
<slot name="before" class="before"></slot>
|
|
666
653
|
${this._renderFilterInput()}
|
|
667
654
|
<leu-menu
|
package/dist/Spinner.d.ts
CHANGED
package/dist/Spinner.js
CHANGED
package/dist/Table.d.ts
CHANGED
|
@@ -38,5 +38,5 @@ export class LeuTable extends LeuElement {
|
|
|
38
38
|
get _data(): any[];
|
|
39
39
|
render(): import("lit-html").TemplateResult<1>;
|
|
40
40
|
}
|
|
41
|
-
import { L as LeuElement } from './LeuElement-
|
|
41
|
+
import { L as LeuElement } from './LeuElement-BI1CxItv.js';
|
|
42
42
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-BI1CxItv.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
@@ -8,7 +8,7 @@ import { LeuPagination } from './Pagination.js';
|
|
|
8
8
|
import 'lit/directives/live.js';
|
|
9
9
|
import './Button.js';
|
|
10
10
|
import 'lit/directives/if-defined.js';
|
|
11
|
-
import './hasSlotController-
|
|
11
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
12
12
|
import './VisuallyHidden.js';
|
|
13
13
|
|
|
14
14
|
var css_248z = css`:host {
|
package/dist/VisuallyHidden.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
export class LeuVisuallyHidden extends LeuElement {
|
|
5
5
|
render(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
}
|
|
7
|
-
import { L as LeuElement } from './LeuElement-
|
|
7
|
+
import { L as LeuElement } from './LeuElement-BI1CxItv.js';
|
|
8
8
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasSlotController-
|
|
1
|
+
{"version":3,"file":"hasSlotController-CCPfIEw1.d.ts","sourceRoot":"","sources":["hasSlotController-CCPfIEw1.js"],"names":[],"mappings":";;;;iCASa,OAAO,KAAK,EAAE,kBAAkB;AAP7C;;;GAGG;AAEH;;;;GAIG;AACH,2CAFgB,kBAAkB;IAGhC,uCAcC;IAHC,UAAgB;IAEhB,eAA0B;IAG5B;;;OAGG;IACH,uBAeC;IAED;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,gCAEC;IACD,sBAEC;IACD,yBAEC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { LeuRadio } from "./Radio.js";
|
|
|
15
15
|
export { LeuRadioGroup } from "./RadioGroup.js";
|
|
16
16
|
export { LeuSelect } from "./Select.js";
|
|
17
17
|
export { LeuTable } from "./Table.js";
|
|
18
|
-
export { L as LeuElement } from "./LeuElement-
|
|
18
|
+
export { L as LeuElement } from "./LeuElement-BI1CxItv.js";
|
|
19
19
|
export { BUTTON_EXPANDED_OPTIONS, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, LeuButton } from "./Button.js";
|
|
20
20
|
export { LeuInput, SIZES } from "./Input.js";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -17,13 +17,13 @@ export { LeuRadio } from './Radio.js';
|
|
|
17
17
|
export { LeuRadioGroup } from './RadioGroup.js';
|
|
18
18
|
export { LeuSelect } from './Select.js';
|
|
19
19
|
export { LeuTable } from './Table.js';
|
|
20
|
-
export { L as LeuElement } from './LeuElement-
|
|
20
|
+
export { L as LeuElement } from './LeuElement-BI1CxItv.js';
|
|
21
21
|
import 'lit';
|
|
22
22
|
import 'lit/static-html.js';
|
|
23
23
|
import 'lit/directives/class-map.js';
|
|
24
24
|
import 'lit/directives/if-defined.js';
|
|
25
25
|
import './Icon.js';
|
|
26
|
-
import './hasSlotController-
|
|
26
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
27
27
|
import './Chip.js';
|
|
28
28
|
import 'lit/directives/ref.js';
|
|
29
29
|
import 'lit/directives/live.js';
|
package/dist/leu-accordion.js
CHANGED
package/dist/leu-button-group.js
CHANGED
package/dist/leu-button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuButton } from './Button.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
6
|
import './Icon.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
8
8
|
|
|
9
9
|
LeuButton.define("leu-button");
|
|
10
10
|
|
package/dist/leu-checkbox.js
CHANGED
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
package/dist/leu-dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LeuDialog } from './Dialog.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/class-map.js';
|
|
6
|
-
import './hasSlotController-
|
|
6
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
|
|
9
9
|
LeuDialog.define("leu-dialog");
|
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
|
-
import './hasSlotController-
|
|
5
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
|
8
8
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LeuPagination } from './Pagination.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|
|
9
|
-
import './hasSlotController-
|
|
9
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
10
10
|
import './VisuallyHidden.js';
|
|
11
11
|
|
|
12
12
|
LeuPagination.define("leu-pagination");
|
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
7
|
import './Icon.js';
|
|
8
|
-
import './hasSlotController-
|
|
8
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
9
9
|
|
|
10
10
|
LeuScrollTop.define("leu-scroll-top");
|
|
11
11
|
|
package/dist/leu-select.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LeuSelect } from './Select.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
6
|
import 'lit/directives/if-defined.js';
|
|
7
|
-
import './hasSlotController-
|
|
7
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './Icon.js';
|
|
10
10
|
import './Menu.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeuTable } from './Table.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-BI1CxItv.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/style-map.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination.js';
|
|
|
9
9
|
import 'lit/directives/live.js';
|
|
10
10
|
import './Button.js';
|
|
11
11
|
import 'lit/directives/if-defined.js';
|
|
12
|
-
import './hasSlotController-
|
|
12
|
+
import './hasSlotController-CCPfIEw1.js';
|
|
13
13
|
import './VisuallyHidden.js';
|
|
14
14
|
|
|
15
15
|
LeuTable.define("leu-table");
|
package/dist/theme.css
CHANGED
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
--leu-color-func-green: #1a7f1f;
|
|
45
45
|
|
|
46
46
|
/* stylelint-disable value-keyword-case */
|
|
47
|
-
--leu-font-family-regular:
|
|
48
|
-
sans-serif;
|
|
49
|
-
--leu-font-family-black:
|
|
50
|
-
sans-serif;
|
|
47
|
+
--leu-font-family-regular:
|
|
48
|
+
"InterRegular", "HelveticaNowRegular", "Helvetica", sans-serif;
|
|
49
|
+
--leu-font-family-black:
|
|
50
|
+
"InterBlack", "HelveticaNowBlack", "Arial Black", "Helvetica", sans-serif;
|
|
51
51
|
/* stylelint-enable value-keyword-case */
|
|
52
52
|
|
|
53
53
|
--leu-box-shadow-short: 0px 0px 2px var(--leu-color-black-transp-40);
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
"name": "leu-select",
|
|
564
|
-
"description": "\n---\n\n\n### **Methods:**\n - **_updateMenuItems(changed)** - Apply the current state to the menu items.\n- Set the active property when the value property has changed.\n- Hide menu items that do not match the filter.\n- **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.\n- **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.\n
|
|
564
|
+
"description": "\n---\n\n\n### **Methods:**\n - **_updateMenuItems(changed)** - Apply the current state to the menu items.\n- Set the active property when the value property has changed.\n- Hide menu items that do not match the filter.\n- **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.\n- **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.\n\n### **Slots:**\n - **before** - Optional content the appears before the option list\n- **after** - Optional content the appears after the option list",
|
|
565
565
|
"attributes": [
|
|
566
566
|
{
|
|
567
567
|
"name": "value",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -665,7 +665,6 @@ export type CustomElements = {
|
|
|
665
665
|
* - Hide menu items that do not match the filter.
|
|
666
666
|
* - **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.
|
|
667
667
|
* - **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.
|
|
668
|
-
* - **_handlePopupFocusOut(event)** - Close the dropdown if the focus moves outside the component.
|
|
669
668
|
*
|
|
670
669
|
* ### **Slots:**
|
|
671
670
|
* - **before** - Optional content the appears before the option list
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@statistikzh/leu",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
},
|
|
1120
1120
|
{
|
|
1121
1121
|
"name": "leu-select",
|
|
1122
|
-
"description": "\n---\n\n\n### **Methods:**\n - **_updateMenuItems(changed)** - Apply the current state to the menu items.\n- Set the active property when the value property has changed.\n- Hide menu items that do not match the filter.\n- **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.\n- **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.\n
|
|
1122
|
+
"description": "\n---\n\n\n### **Methods:**\n - **_updateMenuItems(changed)** - Apply the current state to the menu items.\n- Set the active property when the value property has changed.\n- Hide menu items that do not match the filter.\n- **_getDisplayValue(): _String | nothing_** - Determines the value or label that should be displayed inside the toggle button.\n- **_isSelected(menuItemValue: _String_): _Boolean_** - Checks if the given value is selected.\n\n### **Slots:**\n - **before** - Optional content the appears before the option list\n- **after** - Optional content the appears after the option list",
|
|
1123
1123
|
"doc-url": "",
|
|
1124
1124
|
"attributes": [
|
|
1125
1125
|
{
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "UI component library of the canton of zurich",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "statistikzh",
|
|
6
|
-
"version": "0.14.
|
|
6
|
+
"version": "0.14.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"watch:css": "nodemon --watch 'src/styles/*' -e css --exec npm run build:css",
|
|
32
32
|
"lint": "npm run lint:eslint && npm run lint:prettier",
|
|
33
33
|
"lint:eslint": "eslint --ext .js,.mjs,.html . --ignore-path .gitignore ",
|
|
34
|
-
"lint:prettier": "prettier \"**/*.{js,mjs,md,html,json}\" --check",
|
|
34
|
+
"lint:prettier": "prettier \"**/*.{js,mjs,md,mdx,html,json}\" --check",
|
|
35
35
|
"lint:stylelint": "stylelint \"**/*.{js,css}\" --ignore-path .gitignore",
|
|
36
36
|
"lint:types": "tsc",
|
|
37
37
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
38
38
|
"format:eslint": "eslint --ext .js,.mjs,.html . --fix --ignore-path .gitignore",
|
|
39
|
-
"format:prettier": "prettier \"**/*.{js,mjs,md,html,json}\" --write",
|
|
39
|
+
"format:prettier": "prettier \"**/*.{js,mjs,md,mdx,html,json}\" --write",
|
|
40
40
|
"test": "web-test-runner --coverage",
|
|
41
41
|
"test:watch": "web-test-runner --watch",
|
|
42
42
|
"prepare": "husky",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
background: none;
|
|
29
29
|
padding: 1rem 0;
|
|
30
|
-
margin:
|
|
30
|
+
margin: 0;
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
|
|
33
33
|
border: none;
|
|
@@ -114,6 +114,8 @@
|
|
|
114
114
|
|
|
115
115
|
.contentwrapper[hidden] {
|
|
116
116
|
grid-template-rows: 0fr;
|
|
117
|
+
opacity: 0;
|
|
118
|
+
visibility: hidden;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
slot[name="content"] {
|
|
@@ -130,7 +132,6 @@ slot[name="content"] {
|
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
.divider {
|
|
133
|
-
|
|
134
135
|
width: 100%;
|
|
135
136
|
height: 1px;
|
|
136
137
|
margin: 0;
|
|
@@ -138,7 +139,9 @@ slot[name="content"] {
|
|
|
138
139
|
border: none;
|
|
139
140
|
background-color: var(--divider-color);
|
|
140
141
|
|
|
141
|
-
transition:
|
|
142
|
+
transition:
|
|
143
|
+
transform var(--transition),
|
|
144
|
+
background-color var(--transition);
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
:host(:not([open])) .heading:is(:hover, :focus-visible) ~ .divider {
|
|
@@ -4,10 +4,10 @@ import { ifDefined } from "lit/directives/if-defined.js"
|
|
|
4
4
|
import "../leu-accordion.js"
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title: "Accordion",
|
|
7
|
+
title: "Components/Accordion",
|
|
8
8
|
component: "leu-accordion",
|
|
9
9
|
argTypes: {
|
|
10
|
-
|
|
10
|
+
"heading-level": {
|
|
11
11
|
control: "select",
|
|
12
12
|
options: [1, 2, 3, 4, 5, 6],
|
|
13
13
|
},
|
|
@@ -27,9 +27,10 @@ export default {
|
|
|
27
27
|
|
|
28
28
|
function Template(args) {
|
|
29
29
|
return html` <leu-accordion
|
|
30
|
-
heading-level=${ifDefined(args
|
|
30
|
+
heading-level=${ifDefined(args["heading-level"])}
|
|
31
31
|
label=${ifDefined(args.label)}
|
|
32
|
-
label-prefix=${ifDefined(args
|
|
32
|
+
label-prefix=${ifDefined(args["label-prefix"])}
|
|
33
|
+
?open=${args.open}
|
|
33
34
|
>
|
|
34
35
|
<div slot="content">${args.content}</div>
|
|
35
36
|
</leu-accordion>`
|
|
@@ -37,7 +38,7 @@ function Template(args) {
|
|
|
37
38
|
|
|
38
39
|
export const Regular = Template.bind({})
|
|
39
40
|
Regular.args = {
|
|
40
|
-
|
|
41
|
+
"heading-level": 2,
|
|
41
42
|
label:
|
|
42
43
|
"Akkordeontitel der lang und noch länger werden kann und dann umbricht",
|
|
43
44
|
content: `Regular Interessierte können ab sofort die Genauigkeit ihrer Smartphones
|
|
@@ -55,5 +56,5 @@ Regular.args = {
|
|
|
55
56
|
export const Prefix = Template.bind({})
|
|
56
57
|
Prefix.args = {
|
|
57
58
|
...Regular.args,
|
|
58
|
-
|
|
59
|
+
"label-prefix": "01",
|
|
59
60
|
}
|
|
@@ -11,7 +11,7 @@ import { SELECTION_MODES } from "../ChipGroup.js"
|
|
|
11
11
|
import { VARIANTS as SELECTABLE_VARIANTS } from "../ChipSelectable.js"
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title: "Chip/Group",
|
|
14
|
+
title: "Components/Chip/Group",
|
|
15
15
|
component: "leu-chip-group",
|
|
16
16
|
argTypes: {
|
|
17
17
|
selectionMode: {
|