@statistikzh/leu 0.6.0 → 0.7.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/CHANGELOG.md +14 -0
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.d.ts.map +1 -1
- package/dist/Breadcrumb.js +3 -1
- package/dist/{Button-9692e403.d.ts → Button-7370f901.d.ts} +2 -2
- package/dist/Button-7370f901.d.ts.map +1 -0
- package/dist/{Button-9692e403.js → Button-7370f901.js} +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.d.ts.map +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 +3 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.d.ts.map +1 -1
- package/dist/CheckboxGroup.js +3 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +19 -17
- package/dist/ChipGroup.d.ts +8 -2
- package/dist/ChipGroup.d.ts.map +1 -1
- package/dist/ChipGroup.js +32 -5
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.d.ts +3 -1
- package/dist/ChipSelectable.d.ts.map +1 -1
- package/dist/ChipSelectable.js +13 -11
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/Icon.d.ts +98 -2
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +7 -2
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +16 -3
- package/dist/{LeuElement-6de6f209.d.ts → LeuElement-ba5ea33d.d.ts} +2 -2
- package/dist/LeuElement-ba5ea33d.d.ts.map +1 -0
- package/dist/LeuElement-ba5ea33d.js +49 -0
- package/dist/Menu.d.ts +2 -2
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +2 -2
- 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.d.ts.map +1 -1
- package/dist/Popup.js +3 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.d.ts.map +1 -1
- package/dist/Radio.js +3 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup.js +19 -8
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +4 -2
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +4 -3
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden.js +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.d.ts +1 -1
- package/dist/leu-button.js +2 -2
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dropdown.js +2 -2
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +18 -5
- package/dist/vue/index.d.ts +21 -9
- package/dist/web-types.json +211 -232
- package/package.json +3 -3
- package/src/components/chip/ChipGroup.js +28 -4
- package/src/components/chip/ChipSelectable.js +12 -10
- package/src/components/chip/chip.css +16 -16
- package/src/components/chip/stories/chip-group.stories.js +6 -9
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/chip/test/chip-group.test.js +67 -0
- package/src/components/chip/test/chip-selectable.test.js +7 -7
- package/src/components/input/Input.js +14 -1
- package/src/components/input/stories/input.stories.js +3 -3
- package/src/components/input/test/input.test.js +20 -0
- package/src/components/radio/RadioGroup.js +12 -9
- package/dist/Button-9692e403.d.ts.map +0 -1
- package/dist/LeuElement-6de6f209.d.ts.map +0 -1
- package/dist/LeuElement-6de6f209.js +0 -43
package/dist/Input.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export class LeuInput extends LeuElement {
|
|
|
38
38
|
_validity: any;
|
|
39
39
|
validationMessages: {};
|
|
40
40
|
novalidate: boolean;
|
|
41
|
+
value: string;
|
|
41
42
|
/** @internal */
|
|
42
43
|
_identifier: string;
|
|
43
44
|
/**
|
|
@@ -45,6 +46,7 @@ export class LeuInput extends LeuElement {
|
|
|
45
46
|
* @type {import("lit/directives/ref.js").Ref<HTMLInputElement>}
|
|
46
47
|
*/
|
|
47
48
|
_inputRef: import("lit/directives/ref.js").Ref<HTMLInputElement>;
|
|
49
|
+
get valueAsNumber(): number;
|
|
48
50
|
/**
|
|
49
51
|
* Method for handling the click event of the wrapper element.
|
|
50
52
|
* Redirect every click on the wrapper to the input element.
|
|
@@ -83,7 +85,6 @@ export class LeuInput extends LeuElement {
|
|
|
83
85
|
* @returns {void}
|
|
84
86
|
*/
|
|
85
87
|
private handleChange;
|
|
86
|
-
value: any;
|
|
87
88
|
/**
|
|
88
89
|
* Method for handling the input event of the input element.
|
|
89
90
|
* Sets the value property and dispatches an input event so that
|
|
@@ -140,6 +141,10 @@ export class LeuInput extends LeuElement {
|
|
|
140
141
|
isInvalid(): boolean;
|
|
141
142
|
render(): import("lit-html").TemplateResult<1>;
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
+
export const SIZES: Readonly<{
|
|
145
|
+
SMALL: "small";
|
|
146
|
+
REGULAR: "regular";
|
|
147
|
+
}>;
|
|
148
|
+
import { L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
144
149
|
import { nothing } from 'lit';
|
|
145
150
|
//# 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":"AA+SA;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IAED;;;OAGG;IACH,uBAFa,OAAO,KAAK,EAAE,cAAc,iBAAU,CAgBlD;IAED;;;;;;OAMG;IACH,2BAsBC;IACD,qBAKC;IACD,+CA2CC;CACF;AAjVD;;;GAGG;gCA1RmD,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-ba5ea33d.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';
|
|
@@ -38,6 +38,7 @@ var css_248z = css`:host,
|
|
|
38
38
|
--input-font-black: var(--leu-font-family-black);
|
|
39
39
|
|
|
40
40
|
display: block;
|
|
41
|
+
font-family: var(--leu-font-family-regular);
|
|
41
42
|
font-family: var(--input-font-regular);
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -276,6 +277,11 @@ var css_248z = css`:host,
|
|
|
276
277
|
}
|
|
277
278
|
`;
|
|
278
279
|
|
|
280
|
+
const SIZES = Object.freeze({
|
|
281
|
+
SMALL: "small",
|
|
282
|
+
REGULAR: "regular"
|
|
283
|
+
});
|
|
284
|
+
|
|
279
285
|
/**
|
|
280
286
|
* TODO:
|
|
281
287
|
* - Add section to docs about how to mark up suffix and prefix for screenreaders
|
|
@@ -338,11 +344,12 @@ class LeuInput extends LeuElement {
|
|
|
338
344
|
this.clearable = false;
|
|
339
345
|
|
|
340
346
|
/** @type {"small" | "regular"} */
|
|
341
|
-
this.size =
|
|
347
|
+
this.size = SIZES.REGULAR;
|
|
342
348
|
this.type = "text";
|
|
343
349
|
this._validity = null;
|
|
344
350
|
this.validationMessages = {};
|
|
345
351
|
this.novalidate = false;
|
|
352
|
+
this.value = "";
|
|
346
353
|
|
|
347
354
|
/** @internal */
|
|
348
355
|
this._identifier = "";
|
|
@@ -353,6 +360,12 @@ class LeuInput extends LeuElement {
|
|
|
353
360
|
*/
|
|
354
361
|
this._inputRef = createRef();
|
|
355
362
|
}
|
|
363
|
+
get valueAsNumber() {
|
|
364
|
+
if (this.value === "") {
|
|
365
|
+
return NaN;
|
|
366
|
+
}
|
|
367
|
+
return Number(this.value);
|
|
368
|
+
}
|
|
356
369
|
|
|
357
370
|
/**
|
|
358
371
|
* Method for handling the click event of the wrapper element.
|
|
@@ -699,4 +712,4 @@ _defineProperty(LeuInput, "properties", {
|
|
|
699
712
|
}
|
|
700
713
|
});
|
|
701
714
|
|
|
702
|
-
export { LeuInput };
|
|
715
|
+
export { LeuInput, SIZES };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare class LeuElement extends LitElement {
|
|
2
2
|
static define(name: any, constructor?: typeof LeuElement, options?: {}): void;
|
|
3
3
|
}
|
|
4
|
-
declare function _defineProperty(
|
|
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-ba5ea33d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeuElement-ba5ea33d.d.ts","sourceRoot":"","sources":["LeuElement-ba5ea33d.js"],"names":[],"mappings":"AA+BA;IACE,8EAMC;CAOF;AA3CD,sEAaC;2BAf0B,KAAK"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
function _defineProperty(obj, key, value) {
|
|
4
|
+
key = _toPropertyKey(key);
|
|
5
|
+
if (key in obj) {
|
|
6
|
+
Object.defineProperty(obj, key, {
|
|
7
|
+
value: value,
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true
|
|
11
|
+
});
|
|
12
|
+
} else {
|
|
13
|
+
obj[key] = value;
|
|
14
|
+
}
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
function _toPrimitive(input, hint) {
|
|
18
|
+
if (typeof input !== "object" || input === null) return input;
|
|
19
|
+
var prim = input[Symbol.toPrimitive];
|
|
20
|
+
if (prim !== undefined) {
|
|
21
|
+
var res = prim.call(input, hint || "default");
|
|
22
|
+
if (typeof res !== "object") return res;
|
|
23
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
+
}
|
|
25
|
+
return (hint === "string" ? String : Number)(input);
|
|
26
|
+
}
|
|
27
|
+
function _toPropertyKey(arg) {
|
|
28
|
+
var key = _toPrimitive(arg, "string");
|
|
29
|
+
return typeof key === "symbol" ? key : String(key);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
class LeuElement extends LitElement {
|
|
33
|
+
static define(name, constructor = this, options = {}) {
|
|
34
|
+
if (!customElements.get(name)) {
|
|
35
|
+
customElements.define(name, constructor, options);
|
|
36
|
+
} else {
|
|
37
|
+
console.info(`${name} is already defined`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
43
|
+
this.constructor.define(name, component);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_defineProperty(LeuElement, "dependencies", {});
|
|
48
|
+
|
|
49
|
+
export { LeuElement as L, _defineProperty as _ };
|
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-ba5ea33d.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-ba5ea33d.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,5 +34,5 @@ export class LeuMenuItem extends LeuElement {
|
|
|
34
34
|
_renderButton(content: any): import("lit-html").TemplateResult<1>;
|
|
35
35
|
render(): import("lit-html").TemplateResult<1>;
|
|
36
36
|
}
|
|
37
|
-
import { L as LeuElement } from './LeuElement-
|
|
37
|
+
import { L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
38
38
|
//# 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-ba5ea33d.js';
|
|
2
2
|
import { css, html } 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-ba5ea33d.js';
|
|
34
34
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { live } from 'lit/directives/live.js';
|
|
4
|
-
import { L as LeuButton } from './Button-
|
|
4
|
+
import { L as LeuButton } from './Button-7370f901.js';
|
|
5
5
|
import { LeuVisuallyHidden } from './VisuallyHidden.js';
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import 'lit/directives/class-map.js';
|
package/dist/Popup.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export class LeuPopup extends LeuElement {
|
|
|
32
32
|
handleAnchorChange(): void;
|
|
33
33
|
render(): import("lit-html").TemplateResult<1>;
|
|
34
34
|
}
|
|
35
|
-
import { L as LeuElement } from './LeuElement-
|
|
35
|
+
import { L as LeuElement } from './LeuElement-ba5ea33d.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":"wBAyCa,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,2BAEC;IACD,cAKC;IACD,aAIC;IACD,mBAiEC;IACD,2BAiBC;IACD,+CAOC;CACF;gCAvMqD,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-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
|
|
4
4
|
|
|
@@ -11,6 +11,8 @@ var css_248z = css`:host,
|
|
|
11
11
|
--popup-font-regular: var(--leu-font-family-regular);
|
|
12
12
|
--popup-font-black: var(--leu-font-family-black);
|
|
13
13
|
|
|
14
|
+
font-family: var(--leu-font-family-regular);
|
|
15
|
+
|
|
14
16
|
font-family: var(--popup-font-regular);
|
|
15
17
|
}
|
|
16
18
|
|
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-ba5ea33d.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":"AAgGA;;GAEG;AACH;IAGI,iBAAoB;IACpB,kBAAqB;IACrB,aAAc;IACd,cAAe;IAEjB,+BAIC;IACD,8BAEC;IACD,+CAeC;CACF;gCAnIqD,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-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
|
|
4
4
|
var css_248z = css`:host {
|
|
@@ -15,6 +15,8 @@ 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
|
+
|
|
18
20
|
font-family: var(--radio-font-regular);
|
|
19
21
|
}
|
|
20
22
|
|
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-ba5ea33d.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":"AAqCA;;GAEG;AACH;IAIM,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;gCAlKqD,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-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
|
|
@@ -6,6 +6,8 @@ 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
|
+
|
|
9
11
|
font-family: var(--group-font-regular);
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -63,11 +65,9 @@ class LeuRadioGroup extends LeuElement {
|
|
|
63
65
|
this.setTabIndex();
|
|
64
66
|
});
|
|
65
67
|
_defineProperty(this, "handleInput", e => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
});
|
|
70
|
-
}
|
|
68
|
+
this.items.forEach(item => {
|
|
69
|
+
item.checked = item === e.target; // eslint-disable-line no-param-reassign
|
|
70
|
+
});
|
|
71
71
|
});
|
|
72
72
|
this.orientation = "HORIZONTAL";
|
|
73
73
|
this._currentIndex = 0;
|
|
@@ -87,12 +87,23 @@ class LeuRadioGroup extends LeuElement {
|
|
|
87
87
|
this.removeEventListeners();
|
|
88
88
|
}
|
|
89
89
|
addEventListeners() {
|
|
90
|
-
|
|
90
|
+
/**
|
|
91
|
+
* It is technically possible to add an event listener to the host element
|
|
92
|
+
* before it is connected to the dom. In that case the outside event listener would
|
|
93
|
+
* be called before the following event listener. But at this point multiple
|
|
94
|
+
* radio buttons could be selected at the same time because `handleInput` hasn't been
|
|
95
|
+
* called yet. That's why we use the capture phase.
|
|
96
|
+
*/
|
|
97
|
+
this.addEventListener("input", this.handleInput, {
|
|
98
|
+
capture: true
|
|
99
|
+
});
|
|
91
100
|
this.addEventListener("focusin", this.handleFocusIn);
|
|
92
101
|
this.addEventListener("keydown", this.handleKeyDown);
|
|
93
102
|
}
|
|
94
103
|
removeEventListeners() {
|
|
95
|
-
this.removeEventListener("input", this.handleInput
|
|
104
|
+
this.removeEventListener("input", this.handleInput, {
|
|
105
|
+
capture: true
|
|
106
|
+
});
|
|
96
107
|
this.removeEventListener("focusin", this.handleFocusIn);
|
|
97
108
|
this.removeEventListener("keydown", this.handleKeyDown);
|
|
98
109
|
}
|
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-ba5ea33d.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
-
import { L as LeuButton } from './Button-
|
|
4
|
+
import { L as LeuButton } from './Button-7370f901.js';
|
|
5
5
|
import { LeuIcon } from './Icon.js';
|
|
6
6
|
import { t as throttle } from './utils-65469421.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/Select.d.ts
CHANGED
|
@@ -131,6 +131,6 @@ export class LeuSelect extends LeuElement {
|
|
|
131
131
|
_renderToggleButton(): import("lit-html").TemplateResult<1>;
|
|
132
132
|
render(): import("lit-html").TemplateResult<1>;
|
|
133
133
|
}
|
|
134
|
-
import { L as LeuElement } from './LeuElement-
|
|
134
|
+
import { L as LeuElement } from './LeuElement-ba5ea33d.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":"AA6PA;;;;;;;;;;;;;GAaG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmDC;IACD,wCAKC;IA4BC,cAAiB;IACjB,kBAAqB;IAErB,kBAAqB;IACrB,mBAAsB;IACtB,oBAAuB;IACvB,aAAe;IACf,cAAe;IACf,aAAc;IAEd,gBAAgB;IAChB,sBAAuB;IAEvB,gBAAgB;IAChB,2BAA6B;IAE7B,gBAAgB;IAChB,6BAAgC;IAEhC,gBAAgB;IAChB,sBAAuB;IAEvB;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,KAAmC,CAE1C;IACnC;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAE1B;IAEnC;;OAEG;IACH,UAFU,OAAO,oBAAoB,EAAE,GAAG,KAAgC,CAE/C;IAU7B,sCAoBC;IAED;;;;OAIG;IACH,8CA0BC;IACD;;;OAGG;IACH,4BAFW,aAAa,iBAcvB;IAED;;;OAGG;IACH,iCAFW,aAAa,QAQvB;IAED;;;OAGG;IACH,oBAFa,uBAAgB,CAO5B;IACD,wBAMC;IACD,yBAMC;IACD,8BAOC;IACD,wBAIC;IACD,uBAMC;IACD,qCAEC;IAED;;;;OAIG;IACH,4CAEC;IACD,uCAoBC;IAED;;OAEG;IACH,uCAIC;IACD,4EAaC;IACD,4EAeC;IACD,4DAmCC;IACD,+CAmDC;CACF;gCA7qBqD,0BAA0B;wBAC7C,KAAK"}
|
package/dist/Select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
-
import { H as HasSlotController, L as LeuButton } from './Button-
|
|
6
|
+
import { H as HasSlotController, L as LeuButton } from './Button-7370f901.js';
|
|
7
7
|
import { LeuMenu } from './Menu.js';
|
|
8
8
|
import { LeuMenuItem } from './MenuItem.js';
|
|
9
9
|
import { LeuIcon } from './Icon.js';
|
|
@@ -53,6 +53,8 @@ var css_248z = css`:host,
|
|
|
53
53
|
position: relative;
|
|
54
54
|
display: block;
|
|
55
55
|
|
|
56
|
+
font-family: var(--leu-font-family-regular);
|
|
57
|
+
|
|
56
58
|
font-family: var(--select-font-regular);
|
|
57
59
|
}
|
|
58
60
|
|
package/dist/Table.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export class LeuTable extends LeuElement {
|
|
|
40
40
|
get _data(): any[];
|
|
41
41
|
render(): import("lit-html").TemplateResult<1>;
|
|
42
42
|
}
|
|
43
|
-
import { L as LeuElement } from './LeuElement-
|
|
43
|
+
import { L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
44
44
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"AAoHA;;GAEG;AACH;IAGI,oBAAoB;IACpB,eAAiB;IACjB,oBAAoB;IACpB,YAAc;IACd,sBAAsB;IACtB,mBADW,OAAO,CACY;IAC9B,qBAAqB;IACrB,cADW,MAAM,CACO;IACxB,qBAAqB;IACrB,WADW,MAAM,CACI;IACrB,sBAAsB;IACtB,cADW,OAAO,CACO;IACzB,qBAAqB;IACrB,OADW,MAAM,CACA;IAEjB,gBAAgB;IAChB,qBAAwB;IACxB,gBAAgB;IAChB,sBAAyB;IACzB,gBAAgB;IAChB,8DAA6B;IAE7B,gBAAgB;IAChB,cAAc;IACd,gCAEE;IAKJ,oEAKC;IACD,qBAGC;IACD,gCAGC;IACD,8BAEC;IACD,8GAQC;IACD,4BAEC;IACD,0BAQC;IAFG,kBAAsB;IAG1B,sDAIC;IACD,0DAEC;IACD,sBAEC;IACD,yBAMC;IACD,mBAEC;IACD,+CA6DC;CACF;gCAlRqD,0BAA0B"}
|
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-ba5ea33d.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';
|
|
@@ -6,7 +6,7 @@ import { createRef, ref } from 'lit/directives/ref.js';
|
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import { LeuPagination } from './Pagination.js';
|
|
8
8
|
import 'lit/directives/live.js';
|
|
9
|
-
import './Button-
|
|
9
|
+
import './Button-7370f901.js';
|
|
10
10
|
import 'lit/directives/if-defined.js';
|
|
11
11
|
import './VisuallyHidden.js';
|
|
12
12
|
|
|
@@ -101,7 +101,8 @@ table.sticky th:first-child {
|
|
|
101
101
|
div.shadow-left table.sticky td:first-child,
|
|
102
102
|
div.shadow-left table.sticky th:first-child {
|
|
103
103
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
|
|
104
|
-
clip-path: inset(0 -15px 0 0);
|
|
104
|
+
-webkit-clip-path: inset(0 -15px 0 0);
|
|
105
|
+
clip-path: inset(0 -15px 0 0);
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
div.shadow-left {
|
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-ba5ea33d.js';
|
|
8
8
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["VisuallyHidden.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["VisuallyHidden.js"],"names":[],"mappings":"AAiBA;;GAEG;AACH;IACE,+CAEC;CACF;gCAxBqD,0BAA0B"}
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-ba5ea33d.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
|
|
4
4
|
var css_248z = css`:host {
|
|
5
|
+
margin: -1px !important;
|
|
6
|
+
padding: 0 !important;
|
|
7
|
+
}
|
|
8
|
+
:host {
|
|
5
9
|
clip: rect(0 0 0 0);
|
|
6
10
|
border: 0;
|
|
7
11
|
height: 1px;
|
|
8
|
-
margin: -1px !important;
|
|
9
12
|
overflow: hidden;
|
|
10
|
-
padding: 0 !important;
|
|
11
13
|
position: absolute;
|
|
12
14
|
width: 1px;
|
|
13
15
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { LeuChipLink } from "./ChipLink.js";
|
|
|
8
8
|
export { LeuChipRemovable } from "./ChipRemovable.js";
|
|
9
9
|
export { LeuChipSelectable } from "./ChipSelectable.js";
|
|
10
10
|
export { LeuDropdown } from "./Dropdown.js";
|
|
11
|
-
export { LeuInput } from "./Input.js";
|
|
12
11
|
export { LeuMenu } from "./Menu.js";
|
|
13
12
|
export { LeuMenuItem } from "./MenuItem.js";
|
|
14
13
|
export { LeuPagination } from "./Pagination.js";
|
|
@@ -17,5 +16,6 @@ export { LeuRadio } from "./Radio.js";
|
|
|
17
16
|
export { LeuRadioGroup } from "./RadioGroup.js";
|
|
18
17
|
export { LeuSelect } from "./Select.js";
|
|
19
18
|
export { LeuTable } from "./Table.js";
|
|
20
|
-
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from "./Button-
|
|
19
|
+
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from "./Button-7370f901.js";
|
|
20
|
+
export { LeuInput, SIZES } from "./Input.js";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LeuAccordion } from './Accordion.js';
|
|
2
2
|
export { LeuBreadcrumb } from './Breadcrumb.js';
|
|
3
|
-
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from './Button-
|
|
3
|
+
export { c as BUTTON_EXPANDED_OPTIONS, a as BUTTON_SIZES, b as BUTTON_TYPES, B as BUTTON_VARIANTS, L as LeuButton } from './Button-7370f901.js';
|
|
4
4
|
export { LeuButtonGroup } from './ButtonGroup.js';
|
|
5
5
|
export { LeuCheckbox } from './Checkbox.js';
|
|
6
6
|
export { LeuCheckboxGroup } from './CheckboxGroup.js';
|
|
@@ -9,7 +9,7 @@ export { LeuChipLink } from './ChipLink.js';
|
|
|
9
9
|
export { LeuChipRemovable } from './ChipRemovable.js';
|
|
10
10
|
export { LeuChipSelectable } from './ChipSelectable.js';
|
|
11
11
|
export { LeuDropdown } from './Dropdown.js';
|
|
12
|
-
export { LeuInput } from './Input.js';
|
|
12
|
+
export { LeuInput, SIZES } from './Input.js';
|
|
13
13
|
export { LeuMenu } from './Menu.js';
|
|
14
14
|
export { LeuMenuItem } from './MenuItem.js';
|
|
15
15
|
export { LeuPagination } from './Pagination.js';
|
|
@@ -18,7 +18,7 @@ export { LeuRadio } from './Radio.js';
|
|
|
18
18
|
export { LeuRadioGroup } from './RadioGroup.js';
|
|
19
19
|
export { LeuSelect } from './Select.js';
|
|
20
20
|
export { LeuTable } from './Table.js';
|
|
21
|
-
import './LeuElement-
|
|
21
|
+
import './LeuElement-ba5ea33d.js';
|
|
22
22
|
import 'lit';
|
|
23
23
|
import 'lit/static-html.js';
|
|
24
24
|
import 'lit/directives/ref.js';
|
package/dist/leu-accordion.js
CHANGED
package/dist/leu-breadcrumb.js
CHANGED
package/dist/leu-button-group.js
CHANGED
package/dist/leu-button.d.ts
CHANGED
package/dist/leu-button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LeuButton } from './Button-
|
|
2
|
-
import './LeuElement-
|
|
1
|
+
import { L as LeuButton } from './Button-7370f901.js';
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-checkbox.js
CHANGED
package/dist/leu-chip-group.js
CHANGED
package/dist/leu-chip-link.js
CHANGED
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
|
-
import './LeuElement-
|
|
2
|
+
import './LeuElement-ba5ea33d.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
|
-
import './Button-
|
|
5
|
+
import './Button-7370f901.js';
|
|
6
6
|
import 'lit/directives/class-map.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
|
8
8
|
import './Icon.js';
|