@statistikzh/leu 0.20.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +19 -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.js +2 -2
- package/dist/Icon.d.ts +1 -0
- package/dist/Icon.js +2 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-C1c3TgrG.js → LeuElement-BLUQU9Eu.js} +1 -1
- package/dist/Menu.js +10 -2
- 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.js +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +97 -3
- package/dist/Tag.js +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/icon/paths.d.ts +1 -0
- package/dist/components/icon/paths.d.ts.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/table/Table.d.ts.map +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 +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.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-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 +2 -2
- package/dist/leu-tag.js +1 -1
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/lib/styleMap.d.ts +61 -0
- package/dist/lib/styleMap.d.ts.map +1 -0
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/vue/index.d.ts +20 -20
- package/dist/web-types.json +28 -28
- package/package.json +1 -1
- package/src/components/icon/paths.ts +2 -0
- package/src/components/menu/Menu.ts +5 -1
- package/src/components/menu/menu.css +4 -0
- package/src/components/table/Table.ts +1 -1
- package/src/lib/styleMap.ts +139 -0
package/dist/leu-dialog.js
CHANGED
|
@@ -2,7 +2,7 @@ import { LeuDialog } from './Dialog.js';
|
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/ref.js';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
6
6
|
import './hasSlotController-Bm2tipvG.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/ref.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
5
5
|
import './hasSlotController-Bm2tipvG.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-file-input.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'lit';
|
|
|
4
4
|
import 'lit/decorators.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
|
-
import './LeuElement-
|
|
7
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
8
8
|
import './Accordion.js';
|
|
9
9
|
import 'lit/static-html.js';
|
|
10
10
|
import './Button.js';
|
|
@@ -34,7 +34,7 @@ import './Radio.js';
|
|
|
34
34
|
import './RadioGroup.js';
|
|
35
35
|
import './Select.js';
|
|
36
36
|
import './Table.js';
|
|
37
|
-
import 'lit/
|
|
37
|
+
import 'lit/directive.js';
|
|
38
38
|
import './leu-icon.js';
|
|
39
39
|
|
|
40
40
|
LeuFileInput.define("leu-file-input");
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'lit/directives/class-map.js';
|
|
|
4
4
|
import 'lit/directives/if-defined.js';
|
|
5
5
|
import 'lit/directives/live.js';
|
|
6
6
|
import 'lit/directives/ref.js';
|
|
7
|
-
import './LeuElement-
|
|
7
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
8
8
|
import './Icon.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
|
10
10
|
import 'lit/decorators.js';
|
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
package/dist/leu-message.js
CHANGED
package/dist/leu-pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/class-map.js';
|
|
9
9
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.js
CHANGED
package/dist/leu-progress-bar.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,7 +1,7 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import './_tslib-CNEFicEt.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LeuTable } from './Table.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
|
-
import 'lit/directives/style-map.js';
|
|
5
4
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-BLUQU9Eu.js';
|
|
6
|
+
import 'lit/directive.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './_tslib-CNEFicEt.js';
|
|
9
9
|
import 'lit/decorators.js';
|
package/dist/leu-tag.js
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The original lit styleMap directive is not compatible with a strict style-src content security policy.
|
|
3
|
+
* There is an an open issue about this in the lit repository:
|
|
4
|
+
* https://github.com/lit/lit/issues/4719
|
|
5
|
+
*
|
|
6
|
+
* This file contains a custom implementation of the styleMap directive that bypasses
|
|
7
|
+
* the render method and directly updates the styles using the .style.setProperty and
|
|
8
|
+
* .style.removeProperty methods.
|
|
9
|
+
*
|
|
10
|
+
* In the original implementation, the render method returns a string that is set as the
|
|
11
|
+
* value of the style attribute. This approach is blocked by strict CSPs that disallow
|
|
12
|
+
* inline styles.
|
|
13
|
+
*
|
|
14
|
+
* As we don't support SSR in this library, we can safely skip the render method.
|
|
15
|
+
*/
|
|
16
|
+
import { AttributePart } from "lit";
|
|
17
|
+
import { Directive, DirectiveParameters, PartInfo } from "lit/directive.js";
|
|
18
|
+
/**
|
|
19
|
+
* A key-value set of CSS properties and values.
|
|
20
|
+
*
|
|
21
|
+
* The key should be either a valid CSS property name string, like
|
|
22
|
+
* `'background-color'`, or a valid JavaScript camel case property name
|
|
23
|
+
* for CSSStyleDeclaration like `backgroundColor`.
|
|
24
|
+
*/
|
|
25
|
+
export interface StyleInfo {
|
|
26
|
+
[name: string]: string | number | undefined | null;
|
|
27
|
+
}
|
|
28
|
+
declare class StyleMapDirective extends Directive {
|
|
29
|
+
private _previousStyleProperties?;
|
|
30
|
+
constructor(partInfo: PartInfo);
|
|
31
|
+
render(_styleInfo: Readonly<StyleInfo>): symbol;
|
|
32
|
+
update(part: AttributePart, [styleInfo]: DirectiveParameters<this>): symbol;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* !A custom implementation of lit's `styleMap` directive!
|
|
36
|
+
* A directive that applies CSS properties to an element.
|
|
37
|
+
*
|
|
38
|
+
* `styleMap` can only be used in the `style` attribute and must be the only
|
|
39
|
+
* expression in the attribute. It takes the property names in the
|
|
40
|
+
* {@link StyleInfo styleInfo} object and adds the properties to the inline
|
|
41
|
+
* style of the element.
|
|
42
|
+
*
|
|
43
|
+
* Property names with dashes (`-`) are assumed to be valid CSS
|
|
44
|
+
* property names and set on the element's style object using `setProperty()`.
|
|
45
|
+
* Names without dashes are assumed to be camelCased JavaScript property names
|
|
46
|
+
* and set on the element's style object using property assignment, allowing the
|
|
47
|
+
* style object to translate JavaScript-style names to CSS property names.
|
|
48
|
+
*
|
|
49
|
+
* For example `styleMap({backgroundColor: 'red', 'border-top': '5px', '--size':
|
|
50
|
+
* '0'})` sets the `background-color`, `border-top` and `--size` properties.
|
|
51
|
+
*
|
|
52
|
+
* @param styleInfo
|
|
53
|
+
* @see {@link https://lit.dev/docs/templates/directives/#stylemap styleMap code samples on Lit.dev}
|
|
54
|
+
*/
|
|
55
|
+
export declare const styleMap: (_styleInfo: Readonly<StyleInfo>) => import("lit-html/directive.js").DirectiveResult<typeof StyleMapDirective>;
|
|
56
|
+
/**
|
|
57
|
+
* The type of the class that powers this directive. Necessary for naming the
|
|
58
|
+
* directive's return type.
|
|
59
|
+
*/
|
|
60
|
+
export type { StyleMapDirective };
|
|
61
|
+
//# sourceMappingURL=styleMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleMap.d.ts","sourceRoot":"","sources":["../../src/lib/styleMap.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAqB,MAAM,KAAK,CAAA;AACtD,OAAO,EAEL,SAAS,EACT,mBAAmB,EACnB,QAAQ,EAET,MAAM,kBAAkB,CAAA;AAEzB;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CACnD;AAQD,cAAM,iBAAkB,SAAQ,SAAS;IACvC,OAAO,CAAC,wBAAwB,CAAC,CAAa;gBAElC,QAAQ,EAAE,QAAQ;IAc9B,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,SAAS,CAAC;IAI7B,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC;CA4C5E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ,gHAA+B,CAAA;AAEpD;;;GAGG;AACH,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -34,17 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
{
|
|
38
|
-
"name": "leu-button-group",
|
|
39
|
-
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
40
|
-
"attributes": [],
|
|
41
|
-
"references": [
|
|
42
|
-
{
|
|
43
|
-
"name": "Documentation",
|
|
44
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
37
|
{
|
|
49
38
|
"name": "leu-button",
|
|
50
39
|
"description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
|
|
@@ -120,6 +109,17 @@
|
|
|
120
109
|
}
|
|
121
110
|
]
|
|
122
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"name": "leu-button-group",
|
|
114
|
+
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
115
|
+
"attributes": [],
|
|
116
|
+
"references": [
|
|
117
|
+
{
|
|
118
|
+
"name": "Documentation",
|
|
119
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
123
|
{
|
|
124
124
|
"name": "leu-chart-wrapper",
|
|
125
125
|
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DefineComponent } from "vue";
|
|
2
2
|
|
|
3
3
|
import type { LeuAccordion } from "../Accordion.js";
|
|
4
|
-
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
4
|
import type { LeuButton } from "../Button.js";
|
|
5
|
+
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
6
6
|
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
7
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
8
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
@@ -43,13 +43,6 @@ type LeuAccordionProps = {
|
|
|
43
43
|
label?: LeuAccordion["label"];
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
type LeuButtonGroupProps = {
|
|
47
|
-
/** The value of the currently selected (active) button */
|
|
48
|
-
value?: LeuButtonGroup["value"];
|
|
49
|
-
/** When the value of the group changes by clicking a button */
|
|
50
|
-
oninput?: (e: CustomEvent<never>) => void;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
46
|
type LeuButtonProps = {
|
|
54
47
|
/** `aria-label` of the underlying button elements.
|
|
55
48
|
Use it to provide a label when only an icon is visible. */
|
|
@@ -81,6 +74,13 @@ If it is set, the icon will either show an expanded or collapsed state. */
|
|
|
81
74
|
fluid?: LeuButton["fluid"];
|
|
82
75
|
};
|
|
83
76
|
|
|
77
|
+
type LeuButtonGroupProps = {
|
|
78
|
+
/** The value of the currently selected (active) button */
|
|
79
|
+
value?: LeuButtonGroup["value"];
|
|
80
|
+
/** When the value of the group changes by clicking a button */
|
|
81
|
+
oninput?: (e: CustomEvent<never>) => void;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
84
|
type LeuChartWrapperProps = {
|
|
85
85
|
/** Whether the chart is currently loading or not.
|
|
86
86
|
When set to `true`, a spinner will be shown in the chart container. */
|
|
@@ -501,30 +501,30 @@ export type CustomElements = {
|
|
|
501
501
|
"leu-accordion": DefineComponent<LeuAccordionProps>;
|
|
502
502
|
|
|
503
503
|
/**
|
|
504
|
-
* A radio input-like button group component.
|
|
505
|
-
* It allows only one button to be active at a time.
|
|
506
|
-
* ---
|
|
507
504
|
*
|
|
505
|
+
* ---
|
|
508
506
|
*
|
|
509
|
-
* ### **Events:**
|
|
510
|
-
* - **input** - When the value of the group changes by clicking a button
|
|
511
507
|
*
|
|
512
508
|
* ### **Slots:**
|
|
513
|
-
* -
|
|
509
|
+
* - **before** - The icon to display before the label
|
|
510
|
+
* - **after** - The icon to display after the label
|
|
511
|
+
* - _default_ - The label of the button or the icon if no label is set
|
|
514
512
|
*/
|
|
515
|
-
"leu-button
|
|
513
|
+
"leu-button": DefineComponent<LeuButtonProps>;
|
|
516
514
|
|
|
517
515
|
/**
|
|
518
|
-
*
|
|
516
|
+
* A radio input-like button group component.
|
|
517
|
+
* It allows only one button to be active at a time.
|
|
519
518
|
* ---
|
|
520
519
|
*
|
|
521
520
|
*
|
|
521
|
+
* ### **Events:**
|
|
522
|
+
* - **input** - When the value of the group changes by clicking a button
|
|
523
|
+
*
|
|
522
524
|
* ### **Slots:**
|
|
523
|
-
* -
|
|
524
|
-
* - **after** - The icon to display after the label
|
|
525
|
-
* - _default_ - The label of the button or the icon if no label is set
|
|
525
|
+
* - _default_ - Slot for the buttons
|
|
526
526
|
*/
|
|
527
|
-
"leu-button": DefineComponent<
|
|
527
|
+
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
530
|
* A wrapper element for charts.
|
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.
|
|
4
|
+
"version": "0.21.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -65,33 +65,6 @@
|
|
|
65
65
|
"events": []
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
{
|
|
69
|
-
"name": "leu-button-group",
|
|
70
|
-
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
71
|
-
"doc-url": "",
|
|
72
|
-
"attributes": [],
|
|
73
|
-
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
74
|
-
"events": [
|
|
75
|
-
{
|
|
76
|
-
"name": "input",
|
|
77
|
-
"description": "When the value of the group changes by clicking a button"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"js": {
|
|
81
|
-
"properties": [
|
|
82
|
-
{
|
|
83
|
-
"name": "value",
|
|
84
|
-
"description": "The value of the currently selected (active) button"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"events": [
|
|
88
|
-
{
|
|
89
|
-
"name": "input",
|
|
90
|
-
"description": "When the value of the group changes by clicking a button"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
68
|
{
|
|
96
69
|
"name": "leu-button",
|
|
97
70
|
"description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
|
|
@@ -238,6 +211,33 @@
|
|
|
238
211
|
"events": []
|
|
239
212
|
}
|
|
240
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"name": "leu-button-group",
|
|
216
|
+
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
217
|
+
"doc-url": "",
|
|
218
|
+
"attributes": [],
|
|
219
|
+
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
220
|
+
"events": [
|
|
221
|
+
{
|
|
222
|
+
"name": "input",
|
|
223
|
+
"description": "When the value of the group changes by clicking a button"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"js": {
|
|
227
|
+
"properties": [
|
|
228
|
+
{
|
|
229
|
+
"name": "value",
|
|
230
|
+
"description": "The value of the currently selected (active) button"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"events": [
|
|
234
|
+
{
|
|
235
|
+
"name": "input",
|
|
236
|
+
"description": "When the value of the group changes by clicking a button"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
241
|
{
|
|
242
242
|
"name": "leu-chart-wrapper",
|
|
243
243
|
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
package/package.json
CHANGED
|
@@ -143,6 +143,8 @@ export const paths = {
|
|
|
143
143
|
"M12.375 8.2485V3.75L22.875 11.25L12.375 18.75V14.25C8.20012 14.2515 4.39838 14.4128 1.125 20.25C1.125 16.5424 1.66875 8.35162 12.375 8.2485Z",
|
|
144
144
|
resizeText:
|
|
145
145
|
"M17 8V5H20V8H17ZM11 14H14V11H11V14ZM8 20H5V17H8V20ZM14 20H11V17H14V20ZM17 14H20V11H17V14ZM20 20H17V17H20V20Z",
|
|
146
|
+
ruler:
|
|
147
|
+
"M1.5 9C1.5 8.72386 1.72386 8.5 2 8.5H22C22.2761 8.5 22.5 8.72386 22.5 9V15C22.5 15.2761 22.2761 15.5 22 15.5H2C1.72386 15.5 1.5 15.2761 1.5 15V9ZM2.5 9.5V14.5H21.5V9.5H2.5Z M4.5 11V9H5.5V11H4.5Z M8 11V9H9V11H8Z M11.5 11V9H12.5V11H11.5Z M15 11V9H16V11H15Z M18.5 11V9H19.5V11H18.5Z",
|
|
146
148
|
search:
|
|
147
149
|
"M0.75 9C0.75 4.4445 4.4445 0.75 9 0.75C13.5555 0.75 17.25 4.4445 17.25 9C17.25 13.5555 13.5555 17.25 9 17.25C4.4445 17.25 0.75 13.5555 0.75 9ZM17.25 15.25L15 17.5L21 23.2493L23.25 20.9993L17.25 15.25ZM9 15C5.692 15 3 12.308 3 9C3 5.692 5.692 3 9 3C12.308 3 15 5.692 15 9C15 12.308 12.308 15 9 15Z",
|
|
148
150
|
securities:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { html, nothing } from "lit"
|
|
2
2
|
import { classMap } from "lit/directives/class-map.js"
|
|
3
|
-
import { styleMap } from "lit/directives/style-map.js"
|
|
4
3
|
import { createRef, ref } from "lit/directives/ref.js"
|
|
5
4
|
|
|
6
5
|
import { LeuElement } from "../../lib/LeuElement.js"
|
|
6
|
+
import { styleMap } from "../../lib/styleMap.js"
|
|
7
7
|
import { LeuIcon } from "../icon/Icon.js"
|
|
8
8
|
import { LeuPagination } from "../pagination/Pagination.js"
|
|
9
9
|
|