@nordhealth/components 3.14.1 → 3.15.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/README.md +1 -1
- package/custom-elements.json +999 -955
- package/lib/AutocompleteMixin-5a7e10b2.js +2 -0
- package/lib/{AutocompleteMixin-3cf61f49.js.map → AutocompleteMixin-5a7e10b2.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/{Calendar-a80c53ba.js → Calendar-5fbf9d8d.js} +2 -2
- package/lib/{Calendar-a80c53ba.js.map → Calendar-5fbf9d8d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-420bbc41.js → Component-2253424f.js} +2 -2
- package/lib/Component-2253424f.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/DirectionController-f35f5476.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/{DropdownItem-579d8ef6.js → DropdownItem-32052903.js} +2 -2
- package/lib/DropdownItem-32052903.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-d99ebeef.js.map +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/{FocusableMixin-4300e44e.js → FocusableMixin-d30213b4.js} +2 -2
- package/lib/{FocusableMixin-4300e44e.js.map → FocusableMixin-d30213b4.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/{FormAssociatedMixin-6f1c13ac.js → FormAssociatedMixin-3fa55d53.js} +2 -2
- package/lib/{FormAssociatedMixin-6f1c13ac.js.map → FormAssociatedMixin-3fa55d53.js.map} +1 -1
- package/lib/FormDataController-592ff3dd.js.map +1 -1
- package/lib/{FormField-cbfebb3f.js → FormField-87551be2.js} +2 -2
- package/lib/FormField-87551be2.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-f9fb4034.js → InputMixin-83b5bd46.js} +2 -2
- package/lib/{InputMixin-f9fb4034.js.map → InputMixin-83b5bd46.js.map} +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDismissController-11ae4745.js.map +1 -1
- package/lib/{LightDomController-3d3edb76.js → LightDomController-5388d84c.js} +2 -2
- package/lib/{LightDomController-3d3edb76.js.map → LightDomController-5388d84c.js.map} +1 -1
- package/lib/{LightSlotController-0953b4d4.js → LightSlotController-c51e9cf5.js} +2 -2
- package/lib/{LightSlotController-0953b4d4.js.map → LightSlotController-c51e9cf5.js.map} +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/ModalController.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/{NavToggle-5620165f.js → NavToggle-6b13700e.js} +2 -2
- package/lib/{NavToggle-5620165f.js.map → NavToggle-6b13700e.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/{NotificationMixin-c06bb631.js → NotificationMixin-207f1f56.js} +2 -2
- package/lib/{NotificationMixin-c06bb631.js.map → NotificationMixin-207f1f56.js.map} +1 -1
- package/lib/Popout-b6f0175c.js +2 -0
- package/lib/{Popout-e5584f6a.js.map → Popout-b6f0175c.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Range.js.map +1 -1
- package/lib/ScrollbarController-773c79f4.js.map +1 -1
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +1 -1
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SelectEvent.js.map +1 -1
- package/lib/ShortcutController-87615e31.js.map +1 -1
- package/lib/SizeMixin-ab074eff.js +2 -0
- package/lib/{SizeMixin-fb379434.js.map → SizeMixin-ab074eff.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-d733c575.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/{Sticky-acc92284.js → Sticky-c34c9b12.js} +2 -2
- package/lib/Sticky-c34c9b12.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +1 -1
- package/lib/TagGroup.js.map +1 -1
- package/lib/{TextField-8b226327.js → TextField-2d778949.js} +2 -2
- package/lib/{TextField-8b226327.js.map → TextField-2d778949.js.map} +1 -1
- package/lib/{TextSelectableMixin-f05ce716.js → TextSelectableMixin-aac97d82.js} +2 -2
- package/lib/{TextSelectableMixin-f05ce716.js.map → TextSelectableMixin-aac97d82.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +35 -18
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-cb77ead2.js → class-map-512f0bc1.js} +2 -2
- package/lib/class-map-512f0bc1.js.map +1 -0
- package/lib/collection-511dcfac.js +7 -0
- package/lib/collection-511dcfac.js.map +1 -0
- package/lib/cond-bb9ee891.js +2 -0
- package/lib/{cond-44672025.js.map → cond-bb9ee891.js.map} +1 -1
- package/lib/{directive-de55b00a.js → directive-e9ce14b4.js} +1 -1
- package/lib/directive-e9ce14b4.js.map +1 -0
- package/lib/events-d9666e88.js.map +1 -1
- package/lib/{if-defined-9b177db4.js → if-defined-cccde88f.js} +2 -2
- package/lib/if-defined-cccde88f.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/positioning-35c8d434.js +2 -0
- package/lib/positioning-35c8d434.js.map +1 -0
- package/lib/{property-03f59dce.js → property-c78323b1.js} +2 -2
- package/lib/property-c78323b1.js.map +1 -0
- package/lib/{query-2d22378e.js → query-36bfe0e4.js} +1 -1
- package/lib/query-36bfe0e4.js.map +1 -0
- package/lib/query-assigned-elements-92ce7494.js +51 -0
- package/lib/query-assigned-elements-92ce7494.js.map +1 -0
- package/lib/{ref-5526fb07.js → ref-99418ab4.js} +4 -4
- package/lib/ref-99418ab4.js.map +1 -0
- package/lib/src/avatar/Avatar.d.ts +3 -3
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +1 -1
- package/lib/src/button-group/ButtonGroup.d.ts +1 -1
- package/lib/src/calendar/Calendar.d.ts +1 -1
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +1 -1
- package/lib/src/command-menu/CommandMenu.d.ts +1 -1
- package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +2 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +1 -0
- package/lib/src/empty-state/EmptyState.d.ts +1 -1
- package/lib/src/fieldset/Fieldset.d.ts +1 -1
- package/lib/src/footer/Footer.d.ts +1 -1
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/layout/Layout.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +1 -1
- package/lib/src/nav-group/NavGroup.d.ts +1 -1
- package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +1 -1
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +1 -1
- package/lib/src/popout/Popout.d.ts +1 -1
- package/lib/src/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/src/qrcode/Qrcode.d.ts +1 -1
- package/lib/src/radio/Radio.d.ts +2 -2
- package/lib/src/range/Range.d.ts +1 -1
- package/lib/src/segmented-control/SegmentedControl.d.ts +1 -1
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +1 -1
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/skeleton/Skeleton.d.ts +1 -1
- package/lib/src/spinner/Spinner.d.ts +1 -1
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/tab/Tab.d.ts +1 -1
- package/lib/src/tab-group/TabGroup.d.ts +1 -1
- package/lib/src/tab-panel/TabPanel.d.ts +1 -1
- package/lib/src/tag/Tag.d.ts +1 -1
- package/lib/src/tag-group/TagGroup.d.ts +2 -1
- package/lib/src/tag-group/TagGroup.test.d.ts +1 -0
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/lib/src/toast/Toast.d.ts +1 -1
- package/lib/src/toast-group/ToastGroup.d.ts +1 -1
- package/lib/src/toggle/Toggle.d.ts +1 -1
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/lib/src/top-bar/TopBar.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/{state-70f38ceb.js → state-d31c6912.js} +2 -2
- package/lib/state-d31c6912.js.map +1 -0
- package/lib/style-map-f8a1c8d5.js +7 -0
- package/lib/style-map-f8a1c8d5.js.map +1 -0
- package/package.json +9 -6
- package/lib/AutocompleteMixin-3cf61f49.js +0 -2
- package/lib/Component-420bbc41.js.map +0 -1
- package/lib/DropdownItem-579d8ef6.js.map +0 -1
- package/lib/FormField-cbfebb3f.js.map +0 -1
- package/lib/Popout-e5584f6a.js +0 -2
- package/lib/SizeMixin-fb379434.js +0 -2
- package/lib/Sticky-acc92284.js.map +0 -1
- package/lib/class-map-cb77ead2.js.map +0 -1
- package/lib/collection-2f8e38bd.js +0 -7
- package/lib/collection-2f8e38bd.js.map +0 -1
- package/lib/cond-44672025.js +0 -2
- package/lib/directive-de55b00a.js.map +0 -1
- package/lib/if-defined-9b177db4.js.map +0 -1
- package/lib/positioning-a572d126.js +0 -2
- package/lib/positioning-a572d126.js.map +0 -1
- package/lib/property-03f59dce.js.map +0 -1
- package/lib/query-2d22378e.js.map +0 -1
- package/lib/query-assigned-elements-15485e3d.js +0 -34
- package/lib/query-assigned-elements-15485e3d.js.map +0 -1
- package/lib/ref-5526fb07.js.map +0 -1
- package/lib/state-70f38ceb.js.map +0 -1
- package/lib/style-map-ed7e6cc6.js +0 -7
- package/lib/style-map-ed7e6cc6.js.map +0 -1
|
@@ -15,7 +15,7 @@ export default class Header extends LitElement {
|
|
|
15
15
|
* Controls the size of the header component.
|
|
16
16
|
*/
|
|
17
17
|
size: "m" | "s";
|
|
18
|
-
render(): import("lit
|
|
18
|
+
render(): import("lit").TemplateResult<1>;
|
|
19
19
|
}
|
|
20
20
|
declare global {
|
|
21
21
|
interface HTMLElementTagNameMap {
|
package/lib/src/icon/Icon.d.ts
CHANGED
package/lib/src/input/Input.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export default class Input extends Input_base {
|
|
|
38
38
|
* Optionally disallow certain characters from being used inside the input, using a regex pattern.
|
|
39
39
|
*/
|
|
40
40
|
disallowPattern?: string;
|
|
41
|
-
render(): import("lit
|
|
41
|
+
render(): import("lit").TemplateResult<1>;
|
|
42
42
|
private handleKeydown;
|
|
43
43
|
private handleInputChange;
|
|
44
44
|
protected handleSelect(e: Event): void;
|
|
@@ -75,7 +75,7 @@ export default class Layout extends LitElement {
|
|
|
75
75
|
get isNarrow(): boolean;
|
|
76
76
|
connectedCallback(): void;
|
|
77
77
|
willUpdate(): void;
|
|
78
|
-
render(): import("lit
|
|
78
|
+
render(): import("lit").TemplateResult<1>;
|
|
79
79
|
private renderNavToggle;
|
|
80
80
|
private renderNavCollapse;
|
|
81
81
|
protected handleNavWidthChange(): void;
|
package/lib/src/modal/Modal.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export default class Modal extends LitElement {
|
|
|
65
65
|
* @param options An object which controls aspects of the focusing process.
|
|
66
66
|
*/
|
|
67
67
|
focus(options?: FocusOptions): void;
|
|
68
|
-
render(): import("lit
|
|
68
|
+
render(): import("lit").TemplateResult<1>;
|
|
69
69
|
protected handleOpenUpdated(prev: boolean): void;
|
|
70
70
|
private handleDismiss;
|
|
71
71
|
}
|
|
@@ -17,7 +17,7 @@ export default class NavGroup extends LitElement {
|
|
|
17
17
|
* Heading and accessible label for the nav group
|
|
18
18
|
*/
|
|
19
19
|
heading?: string;
|
|
20
|
-
render(): import("lit
|
|
20
|
+
render(): import("lit").TemplateResult<1>;
|
|
21
21
|
}
|
|
22
22
|
declare global {
|
|
23
23
|
interface HTMLElementTagNameMap {
|
|
@@ -16,7 +16,7 @@ export default class NavToggle extends NavToggle_base {
|
|
|
16
16
|
static styles: import("lit").CSSResult[];
|
|
17
17
|
private direction;
|
|
18
18
|
private localization;
|
|
19
|
-
render(): import("lit
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
20
|
}
|
|
21
21
|
declare global {
|
|
22
22
|
interface HTMLElementTagNameMap {
|
|
@@ -25,7 +25,7 @@ export default class Navigation extends LitElement {
|
|
|
25
25
|
*/
|
|
26
26
|
stickyFooter: boolean;
|
|
27
27
|
connectedCallback(): void;
|
|
28
|
-
render(): import("lit
|
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
|
29
29
|
private handleActivate;
|
|
30
30
|
}
|
|
31
31
|
declare global {
|
|
@@ -16,7 +16,7 @@ declare const Notification_base: (new (...args: any[]) => import("../common/mixi
|
|
|
16
16
|
export default class Notification extends Notification_base {
|
|
17
17
|
static styles: import("lit").CSSResult[];
|
|
18
18
|
private localize;
|
|
19
|
-
render(): import("lit
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
20
|
}
|
|
21
21
|
declare global {
|
|
22
22
|
interface HTMLElementTagNameMap {
|
|
@@ -10,7 +10,7 @@ import { LitElement } from "lit";
|
|
|
10
10
|
*/
|
|
11
11
|
export default class NotificationGroup extends LitElement {
|
|
12
12
|
static styles: import("lit").CSSResult[];
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
@@ -49,7 +49,7 @@ export default class Popout extends Popout_base {
|
|
|
49
49
|
firstUpdated(): void;
|
|
50
50
|
connectedCallback(): void;
|
|
51
51
|
disconnectedCallback(): void;
|
|
52
|
-
render(): import("lit
|
|
52
|
+
render(): import("lit").TemplateResult<1>;
|
|
53
53
|
protected handleIdChange(): void;
|
|
54
54
|
protected handleOpenChange(): void;
|
|
55
55
|
protected handleAnchorChange(): void;
|
|
@@ -32,7 +32,7 @@ export default class ProgressBar extends ProgressBar_base {
|
|
|
32
32
|
* for assistive technology.
|
|
33
33
|
*/
|
|
34
34
|
label: string;
|
|
35
|
-
render(): import("lit
|
|
35
|
+
render(): import("lit").TemplateResult<1>;
|
|
36
36
|
}
|
|
37
37
|
declare global {
|
|
38
38
|
interface HTMLElementTagNameMap {
|
|
@@ -42,7 +42,7 @@ export default class Qrcode extends LitElement {
|
|
|
42
42
|
correction: "L" | "M" | "Q" | "H";
|
|
43
43
|
firstUpdated(): void;
|
|
44
44
|
private generate;
|
|
45
|
-
render(): import("lit
|
|
45
|
+
render(): import("lit").TemplateResult<1>;
|
|
46
46
|
}
|
|
47
47
|
declare global {
|
|
48
48
|
interface HTMLElementTagNameMap {
|
package/lib/src/radio/Radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import { LightDomController } from "../common/controllers/LightDomController.js";
|
|
3
3
|
import { LightSlotController } from "../common/controllers/LightSlotController.js";
|
|
4
|
-
declare const Radio_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
4
|
+
declare const Radio_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
5
5
|
/**
|
|
6
6
|
* Radio buttons are graphical user interface elements that allow user to choose only one option from
|
|
7
7
|
* a predefined set of mutually exclusive options.
|
|
@@ -29,7 +29,7 @@ export default class Radio extends Radio_base {
|
|
|
29
29
|
* Controls whether the checkbox is checked or not.
|
|
30
30
|
*/
|
|
31
31
|
checked: boolean;
|
|
32
|
-
render(): import("lit
|
|
32
|
+
render(): import("lit").TemplateResult<1>;
|
|
33
33
|
protected handleCheckedChange(previousChecked: boolean): void;
|
|
34
34
|
private uncheckSiblings;
|
|
35
35
|
protected handleChange(e: Event): void;
|
package/lib/src/range/Range.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default class Range extends Range_base {
|
|
|
34
34
|
* Controls whether the input expands to fill the width of its container.
|
|
35
35
|
*/
|
|
36
36
|
expand: boolean;
|
|
37
|
-
render(): import("lit
|
|
37
|
+
render(): import("lit").TemplateResult<1>;
|
|
38
38
|
protected handleInput(e: Event): void;
|
|
39
39
|
}
|
|
40
40
|
declare global {
|
|
@@ -17,7 +17,7 @@ export default class SegmentedControl extends SegmentedControl_base {
|
|
|
17
17
|
* Controls whether the segmented control expands to fill the width of its container.
|
|
18
18
|
*/
|
|
19
19
|
expand: boolean;
|
|
20
|
-
render(): import("lit
|
|
20
|
+
render(): import("lit").TemplateResult<1>;
|
|
21
21
|
}
|
|
22
22
|
declare global {
|
|
23
23
|
interface HTMLElementTagNameMap {
|
|
@@ -43,7 +43,7 @@ export default class SegmentedControlItem extends SegmentedControlItem_base {
|
|
|
43
43
|
* Label for the segmented control item.
|
|
44
44
|
*/
|
|
45
45
|
label: string;
|
|
46
|
-
render(): import("lit
|
|
46
|
+
render(): import("lit").TemplateResult<1>;
|
|
47
47
|
protected handleCheckedChange(previousChecked: boolean): void;
|
|
48
48
|
private uncheckSiblings;
|
|
49
49
|
protected handleChange(e: Event): void;
|
|
@@ -24,7 +24,7 @@ export default class Select extends Select_base {
|
|
|
24
24
|
* Controls whether the select expands to fill the width of its container.
|
|
25
25
|
*/
|
|
26
26
|
expand: boolean;
|
|
27
|
-
render(): import("lit
|
|
27
|
+
render(): import("lit").TemplateResult<1>;
|
|
28
28
|
private get options();
|
|
29
29
|
private getButtonText;
|
|
30
30
|
private renderOption;
|
|
@@ -18,7 +18,7 @@ export default class Skeleton extends LitElement {
|
|
|
18
18
|
* The default is no animation.
|
|
19
19
|
*/
|
|
20
20
|
effect?: "pulse" | "sheen";
|
|
21
|
-
render(): import("lit
|
|
21
|
+
render(): import("lit").TemplateResult<1>;
|
|
22
22
|
}
|
|
23
23
|
declare global {
|
|
24
24
|
interface HTMLElementTagNameMap {
|
|
@@ -25,7 +25,7 @@ export default class Spinner extends LitElement {
|
|
|
25
25
|
* If no label is supplied, the spinner is hidden from assistive technology.
|
|
26
26
|
*/
|
|
27
27
|
label?: string;
|
|
28
|
-
render(): import("lit
|
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
|
29
29
|
}
|
|
30
30
|
declare global {
|
|
31
31
|
interface HTMLElementTagNameMap {
|
package/lib/src/stack/Stack.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export default class Stack extends LitElement {
|
|
|
32
32
|
* How to justify the child items inside the stack.
|
|
33
33
|
*/
|
|
34
34
|
justifyContent?: "center" | "start" | "end" | "baseline" | "space-between" | "space-around" | "space-evenly";
|
|
35
|
-
render(): import("lit
|
|
35
|
+
render(): import("lit").TemplateResult<1>;
|
|
36
36
|
}
|
|
37
37
|
declare global {
|
|
38
38
|
interface HTMLElementTagNameMap {
|
package/lib/src/tab/Tab.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default class Tab extends LitElement {
|
|
|
16
16
|
* Whether the tab item is selected
|
|
17
17
|
*/
|
|
18
18
|
selected: boolean;
|
|
19
|
-
render(): import("lit
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
20
|
/**
|
|
21
21
|
* Apply accessible attributes and values to the tab button.
|
|
22
22
|
* Observe the selected property if it changes
|
|
@@ -35,7 +35,7 @@ export default class TabGroup extends LitElement {
|
|
|
35
35
|
* The current tab node selected in the tab group.
|
|
36
36
|
*/
|
|
37
37
|
private selectedTab;
|
|
38
|
-
render(): import("lit
|
|
38
|
+
render(): import("lit").TemplateResult<1>;
|
|
39
39
|
connectedCallback(): void;
|
|
40
40
|
private updateSlots;
|
|
41
41
|
firstUpdated(): void;
|
|
@@ -9,7 +9,7 @@ import { LitElement } from "lit";
|
|
|
9
9
|
*/
|
|
10
10
|
export default class TabPanel extends LitElement {
|
|
11
11
|
static styles: import("lit").CSSResult[];
|
|
12
|
-
render(): import("lit
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
13
|
connectedCallback(): void;
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
package/lib/src/tag/Tag.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class Tag extends Tag_base {
|
|
|
35
35
|
expand: boolean;
|
|
36
36
|
protected handleChange(e: Event): void;
|
|
37
37
|
protected handleRemove(): void;
|
|
38
|
-
render(): import("lit
|
|
38
|
+
render(): import("lit").TemplateResult<1>;
|
|
39
39
|
private renderStaticTag;
|
|
40
40
|
private renderRemovableTag;
|
|
41
41
|
private renderSelectableTag;
|
|
@@ -15,6 +15,7 @@ declare const TagGroup_base: typeof LitElement;
|
|
|
15
15
|
*/
|
|
16
16
|
export default class TagGroup extends TagGroup_base {
|
|
17
17
|
static styles: import("lit").CSSResult[];
|
|
18
|
+
private defaultSlot;
|
|
18
19
|
private dirController;
|
|
19
20
|
/**
|
|
20
21
|
* The style variant of the tag group.
|
|
@@ -33,7 +34,7 @@ export default class TagGroup extends TagGroup_base {
|
|
|
33
34
|
* The appropriate role for the containing element.
|
|
34
35
|
*/
|
|
35
36
|
role: string;
|
|
36
|
-
render(): import("lit
|
|
37
|
+
render(): import("lit").TemplateResult<1>;
|
|
37
38
|
}
|
|
38
39
|
declare global {
|
|
39
40
|
interface HTMLElementTagNameMap {
|
|
@@ -44,7 +44,7 @@ export default class Textarea extends Textarea_base {
|
|
|
44
44
|
* When combined with `maxlength`, both the count and the max length are shown.
|
|
45
45
|
*/
|
|
46
46
|
characterCounter: boolean;
|
|
47
|
-
render(): import("lit
|
|
47
|
+
render(): import("lit").TemplateResult<1>;
|
|
48
48
|
protected handleSelect(e: Event): void;
|
|
49
49
|
private renderCharacterCounter;
|
|
50
50
|
private handleLangChange;
|
package/lib/src/toast/Toast.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default class Toast extends Toast_base {
|
|
|
26
26
|
* The returned promise resolves when toast's exit animation is complete.
|
|
27
27
|
*/
|
|
28
28
|
dismiss(): Promise<void>;
|
|
29
|
-
render(): import("lit
|
|
29
|
+
render(): import("lit").TemplateResult<1>;
|
|
30
30
|
protected handleAutoDismissChange(): void;
|
|
31
31
|
}
|
|
32
32
|
declare global {
|
|
@@ -12,7 +12,7 @@ type ToastOptions = Partial<Pick<Toast, "variant" | "autoDismiss">>;
|
|
|
12
12
|
*/
|
|
13
13
|
export default class ToastGroup extends LitElement {
|
|
14
14
|
static styles: import("lit").CSSResult[];
|
|
15
|
-
render(): import("lit
|
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
|
16
16
|
/**
|
|
17
17
|
* Convenience method for creating and adding a toast to the group.
|
|
18
18
|
* @param {string} text - The text/message of the toast.
|
|
@@ -27,7 +27,7 @@ export default class Toggle extends Toggle_base {
|
|
|
27
27
|
* The size of the toggle switch.
|
|
28
28
|
*/
|
|
29
29
|
size: "s" | "m" | "l";
|
|
30
|
-
render(): import("lit
|
|
30
|
+
render(): import("lit").TemplateResult<1>;
|
|
31
31
|
protected handleChange(e: Event): void;
|
|
32
32
|
}
|
|
33
33
|
declare global {
|
|
@@ -52,7 +52,7 @@ export default class Tooltip extends LitElement {
|
|
|
52
52
|
* Apply all event listeners
|
|
53
53
|
*/
|
|
54
54
|
connectedCallback(): void;
|
|
55
|
-
render(): import("lit
|
|
55
|
+
render(): import("lit").TemplateResult<1>;
|
|
56
56
|
protected handleIdChange(): void;
|
|
57
57
|
private handleStateChange;
|
|
58
58
|
/**
|
|
@@ -8,7 +8,7 @@ import { LitElement } from "lit";
|
|
|
8
8
|
*/
|
|
9
9
|
export default class TopBar extends LitElement {
|
|
10
10
|
static styles: import("lit").CSSResult[];
|
|
11
|
-
render(): import("lit
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
12
|
}
|
|
13
13
|
declare global {
|
|
14
14
|
interface HTMLElementTagNameMap {
|
|
@@ -10,7 +10,7 @@ import { LitElement } from "lit";
|
|
|
10
10
|
*/
|
|
11
11
|
export default class VisuallyHidden extends LitElement {
|
|
12
12
|
static styles: import("lit").CSSResult;
|
|
13
|
-
render(): import("lit
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as r}from"./property-c78323b1.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/function t(t){return r({...t,state:!0})}export{t};
|
|
7
|
-
//# sourceMappingURL=state-
|
|
7
|
+
//# sourceMappingURL=state-d31c6912.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-d31c6912.js","sources":["../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n"],"names":["t","r","state"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{T as e}from"./query-assigned-elements-92ce7494.js";import{e as t,i as r,t as s}from"./directive-e9ce14b4.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const n="important",i=" !"+n,o=t(class extends r{constructor(e){var t;if(super(e),e.type!==s.ATTRIBUTE||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,r)=>{const s=e[r];return null==s?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[r]){const{style:s}=t.element;if(void 0===this.ht){this.ht=new Set;for(const e in r)this.ht.add(e);return this.render(r)}this.ht.forEach((e=>{null==r[e]&&(this.ht.delete(e),e.includes("-")?s.removeProperty(e):s[e]="")}));for(const e in r){const t=r[e];if(null!=t){this.ht.add(e);const r="string"==typeof t&&t.endsWith(i);e.includes("-")||r?s.setProperty(e,r?t.slice(0,-11):t,r?n:""):s[e]=t}}return e}});export{o};
|
|
7
|
+
//# sourceMappingURL=style-map-f8a1c8d5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-map-f8a1c8d5.js","sources":["../node_modules/lit/node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const i=\"important\",n=\" !\"+i,o=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`}),\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ht){this.ht=new Set;for(const t in r)this.ht.add(t);return this.render(r)}this.ht.forEach((t=>{null==r[t]&&(this.ht.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=\"\")}));for(const t in r){const e=r[t];if(null!=e){this.ht.add(t);const r=\"string\"==typeof e&&e.endsWith(n);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?i:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["i","n","o","e","r","constructor","t","super","type","s","ATTRIBUTE","name","strings","length","Error","render","Object","keys","reduce","includes","replace","toLowerCase","update","style","element","this","ht","Set","add","forEach","delete","removeProperty","endsWith","setProperty","slice"],"mappings":";;;;;GAKQ,MAACA,EAAE,YAAYC,EAAE,KAAKD,EAAEE,EAAEC,EAAE,cAAcC,EAAE,WAAAC,CAAYC,GAAG,IAAIH,EAAE,GAAGI,MAAMD,GAAGA,EAAEE,OAAOC,EAAEC,WAAW,UAAUJ,EAAEK,OAAO,QAAQR,EAAEG,EAAEM,eAAU,IAAST,OAAE,EAAOA,EAAEU,QAAQ,EAAE,MAAMC,MAAM,6GAA6G,CAAC,MAAAC,CAAOT,GAAG,OAAOU,OAAOC,KAAKX,GAAGY,QAAM,CAAGf,EAAEC,KAAK,MAAMK,EAAEH,EAAEF,GAAG,OAAO,MAAMK,EAAEN,EAAEA,EAAE,GAAGC,EAAEA,EAAEe,SAAS,KAAKf,EAAEA,EAAEgB,QAAQ,oCAAoC,OAAOC,iBAAiBZ,IAAK,GAAE,GAAG,CAAC,MAAAa,CAAOnB,GAAGC,IAAI,MAAMmB,MAAMd,GAAGN,EAAEqB,QAAQ,QAAG,IAASC,KAAKC,GAAG,CAACD,KAAKC,GAAG,IAAIC,IAAI,IAAI,MAAMrB,KAAKF,EAAEqB,KAAKC,GAAGE,IAAItB,GAAG,OAAOmB,KAAKV,OAAOX,EAAE,CAACqB,KAAKC,GAAGG,SAASvB,IAAI,MAAMF,EAAEE,KAAKmB,KAAKC,GAAGI,OAAOxB,GAAGA,EAAEa,SAAS,KAAKV,EAAEsB,eAAezB,GAAGG,EAAEH,GAAG,GAAI,IAAG,IAAI,MAAMA,KAAKF,EAAE,CAAC,MAAMD,EAAEC,EAAEE,GAAG,GAAG,MAAMH,EAAE,CAACsB,KAAKC,GAAGE,IAAItB,GAAG,MAAMF,EAAE,iBAAiBD,GAAGA,EAAE6B,SAAS/B,GAAGK,EAAEa,SAAS,MAAMf,EAAEK,EAAEwB,YAAY3B,EAAEF,EAAED,EAAE+B,MAAM,GAAG,IAAI/B,EAAEC,EAAEJ,EAAE,IAAIS,EAAEH,GAAGH,CAAC,CAAC,CAAC,OAAOG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "This package includes Nord Design System Web Components",
|
|
5
5
|
"author": "Nordhealth <support@nordhealth.design>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"prebuild": "npm run clean",
|
|
22
22
|
"build": "rollup -c",
|
|
23
23
|
"postbuild": "npm run analyze",
|
|
24
|
-
"build:docker": "docker
|
|
24
|
+
"build:docker": "docker compose build test",
|
|
25
25
|
"clean": "rm -rf lib/",
|
|
26
26
|
"clean:snapshots": "rm -rf src/*/screenshots/*/failed/*.png",
|
|
27
27
|
"lint": "eslint --ext .ts,.js,.html . --ignore-path ../../.gitignore && prettier \"**/*.ts\" --check --ignore-path ../../.gitignore",
|
|
28
28
|
"format": "eslint --ext .ts,.js,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
29
29
|
"pretest": "npm run clean:snapshots",
|
|
30
|
-
"test": "docker
|
|
31
|
-
"test:watch": "docker
|
|
30
|
+
"test": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test",
|
|
31
|
+
"test:watch": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test --watch",
|
|
32
32
|
"test:capture": "npm test -- --update-visual-baseline",
|
|
33
33
|
"test:local": "wtr --coverage --watch",
|
|
34
34
|
"analyze": "custom-elements-manifest analyze --litelement",
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
"qr-creator": "1.0.0",
|
|
42
42
|
"tinykeys": "1.4.0"
|
|
43
43
|
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"lit-html": "3.1.4"
|
|
46
|
+
},
|
|
44
47
|
"devDependencies": {
|
|
45
48
|
"@custom-elements-manifest/analyzer": "0.8.2",
|
|
46
49
|
"@nordhealth/css": "^3.2.1",
|
|
@@ -73,7 +76,7 @@
|
|
|
73
76
|
"prettier": "2.8.8",
|
|
74
77
|
"rollup": "2.79.1",
|
|
75
78
|
"rollup-plugin-lit-css": "4.0.1",
|
|
76
|
-
"rollup-plugin-minify-html-literals": "
|
|
79
|
+
"rollup-plugin-minify-html-literals": "1.2.6",
|
|
77
80
|
"rollup-plugin-summary": "2.0.0",
|
|
78
81
|
"rollup-plugin-terser": "7.0.2",
|
|
79
82
|
"tslib": "2.5.0",
|
|
@@ -184,5 +187,5 @@
|
|
|
184
187
|
}
|
|
185
188
|
]
|
|
186
189
|
},
|
|
187
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "b98afd8ac39ed4d338c958ca935696bdea2d6aeb"
|
|
188
191
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./query-assigned-elements-15485e3d.js";import{e as o}from"./property-03f59dce.js";function t(t){class r extends t{constructor(){super(...arguments),this.autocomplete="off"}}return e([o()],r.prototype,"autocomplete",void 0),r}export{t as A};
|
|
2
|
-
//# sourceMappingURL=AutocompleteMixin-3cf61f49.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-420bbc41.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownItem-579d8ef6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormField-cbfebb3f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/lib/Popout-e5584f6a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as t,i as e,x as o,e as i,s}from"./query-assigned-elements-15485e3d.js";import{e as n}from"./property-03f59dce.js";import{t as r}from"./state-70f38ceb.js";import{i as a}from"./query-2d22378e.js";import{c as l,l as p,o as h,f as d,s as c,h as m,a as u}from"./positioning-a572d126.js";import{L as v}from"./LightDismissController-11ae4745.js";import{S as f}from"./ScrollbarController-773c79f4.js";import{N as g,t as y}from"./events-d9666e88.js";import{s as b}from"./Component-420bbc41.js";import{D as w}from"./DirectionController-f35f5476.js";import{o as E}from"./observe-a9c6dfb6.js";import{E as x}from"./EventController-d99ebeef.js";function C(e){class o extends e{constructor(){super(...arguments),this.open=!1,this.align="start",this.position="block-end"}}return t([n({type:Boolean,reflect:!0})],o.prototype,"open",void 0),t([n({reflect:!0})],o.prototype,"align",void 0),t([n({reflect:!0})],o.prototype,"position",void 0),o}const k=e`:host{position:fixed;pointer-events:none;z-index:var(--n-index-popout);left:var(--_n-popout-position-x);top:var(--_n-popout-position-y);color:var(--n-color-text);opacity:0;transition:opacity var(--n-transition-slowly)}.n-popout{pointer-events:none;transform:translateY(-10px) scale(.97);visibility:hidden;transition:transform var(--n-transition-slowly),visibility var(--n-transition-slowly);transform-origin:top left;will-change:transform,opacity,visibility;background:var(--n-color-surface);box-shadow:var(--n-box-shadow-popout);border-radius:var(--n-border-radius-s)}:host([open]){opacity:1}:host([open]) .n-popout{transition-property:transform;visibility:visible;pointer-events:auto;transform:translateY(0) translateX(0) scale(1)}@media (max-width:35.9375em){:host{position:fixed;inset:0;overflow-y:auto;opacity:1;background:0 0;transition:background var(--n-transition-mobile)}:host([open]){pointer-events:auto;background:var(--n-color-overlay)}:host .n-popout{position:fixed;inset:0;inset-block-start:auto;transform:translateY(100%);transition:transform var(--n-transition-mobile),visibility var(--n-transition-mobile);transform-origin:bottom center;border-radius:0}}.top-end,.top-start{transform:translateY(10px) scale(.97)}.left-end,.left-start{transform:translateX(10px) scale(.97)}.right-end,.right-start{transform:translateX(-10px) scale(.97)}.bottom-start.is-rtl,.left-end,.top-end{transform-origin:bottom right}.bottom-end,.left-start,.top-start.is-rtl{transform-origin:top right}.bottom-end.is-rtl,.right-end,.right-start{transform-origin:bottom left}.right-start,.top-end.is-rtl{transform-origin:top left}`,A=matchMedia("(max-width: 35.9375em)");let P=class extends(C(s)){constructor(){super(...arguments),this.scrollBar=new f(this),this.dismiss=new v(this,{isOpen:()=>this.open,onDismiss:t=>this.hide("mouseup"!==t.type),isDismissible:t=>t!==this.popout&&t!==this.targetElement}),this.events=new x(this),this.direction=new w(this),this.smallViewport=A.matches,this.id="",this.enableScroll=()=>{this.open||this.scrollBar.unlockScroll()},this.updatePosition=async()=>{var t;if(!this.anchorElement)return;const{x:e,y:o,placement:i,middlewareData:s}=await l(this.anchorElement,this,{strategy:"fixed",placement:p(this.position,this.align,this.direction.dir),middleware:[h(8),d(),c({padding:8}),m()]});this.computedPosition=i,this.style.setProperty("--_n-popout-position-x",`${e}px`),this.style.setProperty("--_n-popout-position-y",`${o}px`),(null===(t=s.hide)||void 0===t?void 0:t.referenceHidden)&&this.hide()},this.toggleOpen=t=>{t.preventDefault(),this.open?this.hide(!1):this.smallViewport?this.show():this.updatePosition().then((()=>this.show()))},this.handleMediaQueryChange=()=>{var t;this.smallViewport=A.matches,null===(t=this.cleanupAutoUpdate)||void 0===t||t.call(this),!this.smallViewport&&this.open&&this.anchorElement?(this.cleanupAutoUpdate=u(this.anchorElement,this,this.updatePosition),this.scrollBar.unlockScroll()):this.open&&this.scrollBar.lockScroll()}}async show(){return this.open?Promise.resolve():(this.open=!0,await this.updateComplete,this.dispatchEvent(new g("open")),y(this.popout))}async hide(t=!0){var e,o;return this.open?(this.open=!1,null===(e=this.cleanupAutoUpdate)||void 0===e||e.call(this),this.dispatchEvent(new g("close")),t&&(null===(o=this.targetElement)||void 0===o||o.focus({preventScroll:!0})),y(this.popout)):Promise.resolve()}firstUpdated(){this.smallViewport||this.updatePosition()}connectedCallback(){super.connectedCallback(),this.events.listen(A,"change",this.handleMediaQueryChange)}disconnectedCallback(){var t,e;super.disconnectedCallback(),null===(t=this.cleanupAutoUpdate)||void 0===t||t.call(this),null===(e=this.targetElement)||void 0===e||e.removeAttribute("aria-expanded")}render(){return o`<div class="n-popout ${this.computedPosition} is-${this.direction.dir}" aria-hidden="${this.open?"false":"true"}" @transitionend="${this.enableScroll}"><slot></slot></div>`}handleIdChange(){var t;null===(t=this.targetElement)||void 0===t||t.removeEventListener("click",this.toggleOpen),this.id?(this.targetElement=this.getToggle(),this.anchorElement=this.getAnchor(),this.events.listen(this.targetElement,"click",this.toggleOpen)):console.warn("NORD: popout requires an id attribute and value")}handleOpenChange(){var t,e;null===(t=this.targetElement)||void 0===t||t.setAttribute("aria-expanded",`${this.open}`),this.open?this.smallViewport?this.scrollBar.lockScroll():this.anchorElement&&(this.cleanupAutoUpdate=u(this.anchorElement,this,this.updatePosition)):null===(e=this.cleanupAutoUpdate)||void 0===e||e.call(this)}handleAnchorChange(){var t;null===(t=this.cleanupAutoUpdate)||void 0===t||t.call(this),this.anchorElement=this.getAnchor(),this.open&&!this.smallViewport&&this.anchorElement&&(this.cleanupAutoUpdate=u(this.anchorElement,this,this.updatePosition))}getToggle(){const t=this.getRootNode().querySelector(`[aria-controls='${this.id}']`);return t instanceof HTMLSlotElement?t.assignedElements()[0]:t}getAnchor(){if(!this.anchor)return this.targetElement;const t=this.getRootNode().querySelector(`#${this.anchor}`);return t instanceof HTMLSlotElement?t.assignedElements()[0]:t}};P.styles=[b,k],t([a(".n-popout",!0)],P.prototype,"popout",void 0),t([r()],P.prototype,"computedPosition",void 0),t([r()],P.prototype,"smallViewport",void 0),t([n({reflect:!0})],P.prototype,"id",void 0),t([n({reflect:!0})],P.prototype,"anchor",void 0),t([E("id")],P.prototype,"handleIdChange",null),t([E("open")],P.prototype,"handleOpenChange",null),t([E("anchor")],P.prototype,"handleAnchorChange",null),P=t([i("nord-popout")],P);var S=P;export{C as F,S as P};
|
|
2
|
-
//# sourceMappingURL=Popout-e5584f6a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./query-assigned-elements-15485e3d.js";import{e as r}from"./property-03f59dce.js";function s(s){class t extends s{constructor(){super(...arguments),this.size="m"}}return e([r({reflect:!0})],t.prototype,"size",void 0),t}export{s as S};
|
|
2
|
-
//# sourceMappingURL=SizeMixin-fb379434.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sticky-acc92284.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-map-cb77ead2.js","sources":["../node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as i,Directive as s,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((i=>t[i])).join(\" \")+\" \"}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t))}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return t}});export{o as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["o","i","s","constructor","t","super","type","r","ATTRIBUTE","name","strings","length","Error","render","Object","keys","filter","join","update","this","it","Set","nt","split","has","add","e","element","classList","forEach","remove","delete"],"mappings":";;;;;GAKQ,MAACA,EAAEC,EAAE,cAAcC,EAAEC,YAAYC,GAAG,IAAIH,EAAE,GAAGI,MAAMD,GAAGA,EAAEE,OAAOC,EAAEC,WAAW,UAAUJ,EAAEK,OAAO,QAAQR,EAAEG,EAAEM,eAAU,IAAST,OAAE,EAAOA,EAAEU,QAAQ,EAAE,MAAMC,MAAM,qGAAqG,CAACC,OAAOT,GAAG,MAAM,IAAIU,OAAOC,KAAKX,GAAGY,QAAQf,GAAGG,EAAEH,KAAKgB,KAAK,KAAK,GAAG,CAACC,OAAOjB,GAAGC,IAAI,IAAIK,EAAEP,EAAE,QAAG,IAASmB,KAAKC,GAAG,CAACD,KAAKC,GAAG,IAAIC,SAAI,IAASpB,EAAES,UAAUS,KAAKG,GAAG,IAAID,IAAIpB,EAAES,QAAQO,KAAK,KAAKM,MAAM,MAAMP,QAAQZ,GAAG,KAAKA,MAAM,IAAI,MAAMA,KAAKF,EAAEA,EAAEE,MAAM,QAAQG,EAAEY,KAAKG,UAAK,IAASf,OAAE,EAAOA,EAAEiB,IAAIpB,KAAKe,KAAKC,GAAGK,IAAIrB,GAAG,OAAOe,KAAKN,OAAOX,EAAE,CAAC,MAAMwB,EAAEzB,EAAE0B,QAAQC,UAAUT,KAAKC,GAAGS,SAASzB,IAAIA,KAAKF,IAAIwB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,GAAI,IAAG,IAAI,MAAMA,KAAKF,EAAE,CAAC,MAAMD,IAAIC,EAAEE,GAAGH,IAAIkB,KAAKC,GAAGI,IAAIpB,KAAK,QAAQJ,EAAEmB,KAAKG,UAAK,IAAStB,OAAE,EAAOA,EAAEwB,IAAIpB,MAAMH,GAAGyB,EAAED,IAAIrB,GAAGe,KAAKC,GAAGK,IAAIrB,KAAKsB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,IAAI,CAAC,OAAOA,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{T as e}from"./query-assigned-elements-15485e3d.js";import{e as t,i as s,t as n}from"./directive-de55b00a.js";import{m as r,u as o,r as l,p as i,s as u}from"./ref-5526fb07.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const f=(e,t,s)=>{const n=new Map;for(let r=t;r<=s;r++)n.set(e[r],r);return n},a=t(class extends s{constructor(e){if(super(e),e.type!==n.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,s){let n;void 0===s?s=t:void 0!==t&&(n=t);const r=[],o=[];let l=0;for(const t of e)r[l]=n?n(t,l):l,o[l]=s(t,l),l++;return{values:o,keys:r}}render(e,t,s){return this.dt(e,t,s).values}update(t,[s,n,a]){var c;const h=r(t),{values:d,keys:p}=this.dt(s,n,a);if(!Array.isArray(h))return this.ht=p,d;const v=null!==(c=this.ht)&&void 0!==c?c:this.ht=[],m=[];let g,y,x=0,b=h.length-1,j=0,w=d.length-1;for(;x<=b&&j<=w;)if(null===h[x])x++;else if(null===h[b])b--;else if(v[x]===p[j])m[j]=o(h[x],d[j]),x++,j++;else if(v[b]===p[w])m[w]=o(h[b],d[w]),b--,w--;else if(v[x]===p[w])m[w]=o(h[x],d[w]),l(t,m[w+1],h[x]),x++,w--;else if(v[b]===p[j])m[j]=o(h[b],d[j]),l(t,h[x],h[b]),b--,j++;else if(void 0===g&&(g=f(p,j,w),y=f(v,x,b)),g.has(v[x]))if(g.has(v[b])){const e=y.get(p[j]),s=void 0!==e?h[e]:null;if(null===s){const e=l(t,h[x]);o(e,d[j]),m[j]=e}else m[j]=o(s,d[j]),l(t,h[x],s),h[e]=null;j++}else i(h[b]),b--;else i(h[x]),x++;for(;j<=w;){const e=l(t,m[w+1]);o(e,d[j]),m[j++]=e}for(;x<=b;){const e=h[x++];null!==e&&i(e)}return this.ht=p,u(t,m),e}});function c(e,t){var s;const n=new Map;for(const r of e){const e=r[t],o=null!==(s=n.get(e))&&void 0!==s?s:[];n.has(e)||n.set(e,[]),o.push(r),n.set(e,o)}return n}function h(e,t){const s=[];for(let n=0;n<e.length;n+=t)s.push(e.slice(n,n+t));return s}function d(e,t,s){return e.map(((n,r)=>{const o=(r+t)%e.length;return s(e[o],o)}))}export{h as a,a as c,c as g,d as m};
|
|
7
|
-
//# sourceMappingURL=collection-2f8e38bd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection-2f8e38bd.js","sources":["../node_modules/lit-html/directives/repeat.js","../src/common/collection.ts"],"sourcesContent":["import{noChange as e}from\"../lit-html.js\";import{directive as s,Directive as t,PartType as r}from\"../directive.js\";import{getCommittedValue as l,setChildPartValue as o,insertPart as i,removePart as n,setCommittedValue as f}from\"../directive-helpers.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error(\"repeat() can only be used in text expressions\")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.dt(t,r,c);if(!Array.isArray(a))return this.ht=v,p;const h=null!==(d=this.ht)&&void 0!==d?d:this.ht=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=o(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=o(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=o(a[j],p[A]),i(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=o(a[k],p[w]),i(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=i(s,a[j]);o(e,p[w]),m[w]=e}else m[w]=o(t,p[w]),i(s,a[j],t),a[e]=null;w++}else n(a[k]),k--;else n(a[j]),j++;for(;w<=A;){const e=i(s,m[A+1]);o(e,p[w]),m[w++]=e}for(;j<=k;){const e=a[j++];null!==e&&n(e)}return this.ht=v,f(s,m),e}});export{c as repeat};\n//# sourceMappingURL=repeat.js.map\n","/**\n * Groups an array objects by property value\n * @param array the collection of objects to group\n * @param key the property to group by\n * @returns a Map keyed by property value, where values are are an array of objects with that property value.\n */\nexport function groupBy<TObject extends Record<any, any>, TKey extends keyof TObject>(\n array: Array<TObject>,\n key: TKey\n) {\n const grouped = new Map<TObject[TKey], TObject[]>()\n\n for (const item of array) {\n const value = item[key]\n const collection = grouped.get(value) ?? []\n\n if (!grouped.has(value)) {\n grouped.set(value, [])\n }\n collection.push(item)\n grouped.set(value, collection)\n }\n\n return grouped\n}\n\n/**\n * Split an array into chunks of the given size\n * @param array\n * @param chunkSize\n * @returns\n */\nexport function chunk<T>(array: T[], chunkSize: number): T[][] {\n const result = []\n\n for (let i = 0; i < array.length; i += chunkSize) {\n result.push(array.slice(i, i + chunkSize))\n }\n\n return result\n}\n\n/**\n * maps over an array, starting at the given offset and wrapping around.\n * @param array\n * @param startingOffset\n * @param mapFn\n * @returns\n */\nexport function mapWithOffset<T, U>(array: T[], startingOffset: number, mapFn: (item: T, i: number) => U): U[] {\n return array.map((_, i) => {\n const adjustedIndex = (i + startingOffset) % array.length\n return mapFn(array[adjustedIndex], adjustedIndex)\n })\n}\n"],"names":["u","e","s","t","r","Map","l","set","c","constructor","super","type","CHILD","Error","dt","o","i","values","keys","render","this","update","d","a","p","v","Array","isArray","ht","h","m","y","x","j","k","length","w","A","has","get","n","f","groupBy","array","key","grouped","item","value","collection","_a","push","chunk","chunkSize","result","slice","mapWithOffset","startingOffset","mapFn","map","_","adjustedIndex"],"mappings":";;;;;GAMK,MAACA,EAAE,CAACC,EAAEC,EAAEC,KAAK,MAAMC,EAAE,IAAIC,IAAI,IAAI,IAAIC,EAAEJ,EAAEI,GAAGH,EAAEG,IAAIF,EAAEG,IAAIN,EAAEK,GAAGA,GAAG,OAAOF,GAAGI,EAAEN,EAAE,cAAcC,EAAEM,YAAYR,GAAG,GAAGS,MAAMT,GAAGA,EAAEU,OAAOP,EAAEQ,MAAM,MAAMC,MAAM,gDAAgD,CAACC,GAAGb,EAAEC,EAAEC,GAAG,IAAIC,OAAE,IAASD,EAAEA,EAAED,OAAE,IAASA,IAAIE,EAAEF,GAAG,MAAMI,EAAE,GAAGS,EAAE,GAAG,IAAIC,EAAE,EAAE,IAAI,MAAMd,KAAKD,EAAEK,EAAEU,GAAGZ,EAAEA,EAAEF,EAAEc,GAAGA,EAAED,EAAEC,GAAGb,EAAED,EAAEc,GAAGA,IAAI,MAAM,CAACC,OAAOF,EAAEG,KAAKZ,EAAE,CAACa,OAAOlB,EAAEC,EAAEC,GAAG,OAAOiB,KAAKN,GAAGb,EAAEC,EAAEC,GAAGc,MAAM,CAACI,OAAOnB,GAAGC,EAAEC,EAAEI,IAAI,IAAIc,EAAE,MAAMC,EAAEjB,EAAEJ,IAAIe,OAAOO,EAAEN,KAAKO,GAAGL,KAAKN,GAAGX,EAAEC,EAAEI,GAAG,IAAIkB,MAAMC,QAAQJ,GAAG,OAAOH,KAAKQ,GAAGH,EAAED,EAAE,MAAMK,EAAE,QAAQP,EAAEF,KAAKQ,UAAK,IAASN,EAAEA,EAAEF,KAAKQ,GAAG,GAAGE,EAAE,GAAG,IAAIC,EAAEC,EAAEC,EAAE,EAAEC,EAAEX,EAAEY,OAAO,EAAEC,EAAE,EAAEC,EAAEb,EAAEW,OAAO,EAAE,KAAKF,GAAGC,GAAGE,GAAGC,GAAG,GAAG,OAAOd,EAAEU,GAAGA,SAAS,GAAG,OAAOV,EAAEW,GAAGA,SAAS,GAAGL,EAAEI,KAAKR,EAAEW,GAAGN,EAAEM,GAAGrB,EAAEQ,EAAEU,GAAGT,EAAEY,IAAIH,IAAIG,SAAS,GAAGP,EAAEK,KAAKT,EAAEY,GAAGP,EAAEO,GAAGtB,EAAEQ,EAAEW,GAAGV,EAAEa,IAAIH,IAAIG,SAAS,GAAGR,EAAEI,KAAKR,EAAEY,GAAGP,EAAEO,GAAGtB,EAAEQ,EAAEU,GAAGT,EAAEa,IAAIrB,EAAEd,EAAE4B,EAAEO,EAAE,GAAGd,EAAEU,IAAIA,IAAII,SAAS,GAAGR,EAAEK,KAAKT,EAAEW,GAAGN,EAAEM,GAAGrB,EAAEQ,EAAEW,GAAGV,EAAEY,IAAIpB,EAAEd,EAAEqB,EAAEU,GAAGV,EAAEW,IAAIA,IAAIE,SAAS,QAAG,IAASL,IAAIA,EAAE/B,EAAEyB,EAAEW,EAAEC,GAAGL,EAAEhC,EAAE6B,EAAEI,EAAEC,IAAIH,EAAEO,IAAIT,EAAEI,IAAI,GAAGF,EAAEO,IAAIT,EAAEK,IAAI,CAAC,MAAMjC,EAAE+B,EAAEO,IAAId,EAAEW,IAAIjC,OAAE,IAASF,EAAEsB,EAAEtB,GAAG,KAAK,GAAG,OAAOE,EAAE,CAAC,MAAMF,EAAEe,EAAEd,EAAEqB,EAAEU,IAAIlB,EAAEd,EAAEuB,EAAEY,IAAIN,EAAEM,GAAGnC,CAAC,MAAM6B,EAAEM,GAAGrB,EAAEZ,EAAEqB,EAAEY,IAAIpB,EAAEd,EAAEqB,EAAEU,GAAG9B,GAAGoB,EAAEtB,GAAG,KAAKmC,GAAG,MAAMI,EAAEjB,EAAEW,IAAIA,SAASM,EAAEjB,EAAEU,IAAIA,IAAI,KAAKG,GAAGC,GAAG,CAAC,MAAMpC,EAAEe,EAAEd,EAAE4B,EAAEO,EAAE,IAAItB,EAAEd,EAAEuB,EAAEY,IAAIN,EAAEM,KAAKnC,CAAC,CAAC,KAAKgC,GAAGC,GAAG,CAAC,MAAMjC,EAAEsB,EAAEU,KAAK,OAAOhC,GAAGuC,EAAEvC,EAAE,CAAC,OAAOmB,KAAKQ,GAAGH,EAAEgB,EAAEvC,EAAE4B,GAAG7B,CAAC,ICAvsC,SAAAyC,EACdC,EACAC,SAEA,MAAMC,EAAU,IAAIxC,IAEpB,IAAK,MAAMyC,KAAQH,EAAO,CACxB,MAAMI,EAAQD,EAAKF,GACbI,EAAmC,QAAtBC,EAAAJ,EAAQN,IAAIQ,UAAU,IAAAE,EAAAA,EAAA,GAEpCJ,EAAQP,IAAIS,IACfF,EAAQtC,IAAIwC,EAAO,IAErBC,EAAWE,KAAKJ,GAChBD,EAAQtC,IAAIwC,EAAOC,EACpB,CAED,OAAOH,CACT,CAQgB,SAAAM,EAASR,EAAYS,GACnC,MAAMC,EAAS,GAEf,IAAK,IAAIrC,EAAI,EAAGA,EAAI2B,EAAMR,OAAQnB,GAAKoC,EACrCC,EAAOH,KAAKP,EAAMW,MAAMtC,EAAGA,EAAIoC,IAGjC,OAAOC,CACT,UASgBE,EAAoBZ,EAAYa,EAAwBC,GACtE,OAAOd,EAAMe,KAAI,CAACC,EAAG3C,KACnB,MAAM4C,GAAiB5C,EAAIwC,GAAkBb,EAAMR,OACnD,OAAOsB,EAAMd,EAAMiB,GAAgBA,EAAc,GAErD"}
|
package/lib/cond-44672025.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directive-de55b00a.js","sources":["../node_modules/lit-html/directive.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n"],"names":["t","ATTRIBUTE","CHILD","PROPERTY","BOOLEAN_ATTRIBUTE","EVENT","ELEMENT","e","_$litDirective$","values","i","constructor","_$AU","this","_$AM","_$AT","_$Ct","_$Ci","_$AS","update","render"],"mappings":";;;;;AAKK,MAACA,EAAE,CAACC,UAAU,EAAEC,MAAM,EAAEC,SAAS,EAAEC,kBAAkB,EAAEC,MAAM,EAAEC,QAAQ,GAAGC,EAAEP,GAAG,IAAIO,KAAC,CAAKC,gBAAgBR,EAAES,OAAOF,IAAI,MAAMG,EAAEC,YAAYX,GAAE,CAAMY,WAAO,OAAOC,KAAKC,KAAKF,IAAI,CAACG,KAAKf,EAAEO,EAAEG,GAAGG,KAAKG,KAAKhB,EAAEa,KAAKC,KAAKP,EAAEM,KAAKI,KAAKP,CAAC,CAACQ,KAAKlB,EAAEO,GAAG,OAAOM,KAAKM,OAAOnB,EAAEO,EAAE,CAACY,OAAOnB,EAAEO,GAAG,OAAOM,KAAKO,UAAUb,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"if-defined-9b177db4.js","sources":["../node_modules/lit-html/directives/if-defined.js"],"sourcesContent":["import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=l=>null!=l?l:t;export{l as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n"],"names":["l","t"],"mappings":";;;;;GAKQ,MAACA,EAAEA,GAAG,MAAMA,EAAEA,EAAEC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function t(t){return t.split("-")[1]}function e(t){return"y"===t?"height":"width"}function n(t){return t.split("-")[0]}function o(t){return["top","bottom"].includes(n(t))?"x":"y"}function i(i,r,l){let{reference:s,floating:c}=i;const a=s.x+s.width/2-c.width/2,f=s.y+s.height/2-c.height/2,u=o(r),d=e(u),m=s[d]/2-c[d]/2,h="x"===u;let p;switch(n(r)){case"top":p={x:a,y:s.y-c.height};break;case"bottom":p={x:a,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:f};break;case"left":p={x:s.x-c.width,y:f};break;default:p={x:s.x,y:s.y}}switch(t(r)){case"start":p[u]-=m*(l&&h?-1:1);break;case"end":p[u]+=m*(l&&h?-1:1)}return p}function r(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function l(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:l,rects:s,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=e,p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=c[m?"floating"===d?"reference":"floating":d],y=r(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:a})),x="floating"===d?{...s.floating,x:o,y:i}:s.reference,w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),b=await(null==l.isElement?void 0:l.isElement(w))&&await(null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},v=r(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:w,strategy:a}):x);return{top:(y.top-v.top+p.top)/b.y,bottom:(v.bottom-y.bottom+p.bottom)/b.y,left:(y.left-v.left+p.left)/b.x,right:(v.right-y.right+p.right)/b.x}}const s=Math.min,c=Math.max;function a(t,e,n){return c(t,s(e,n))}const f=["top","right","bottom","left"],u={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>u[t]))}const m={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>m[t]))}const p=function(i){return void 0===i&&(i={}),{name:"flip",options:i,async fn(r){var s;const{placement:c,middlewareData:a,rects:f,initialPlacement:u,platform:m,elements:p}=r,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...R}=i,L=n(c),E=n(u)===u,T=await(null==m.isRTL?void 0:m.isRTL(p.floating)),k=x||(E||!v?[d(u)]:function(t){const e=d(t);return[h(t),e,h(e)]}(u));x||"none"===b||k.push(...function(e,o,i,r){const l=t(e);let s=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(n(e),"start"===i,r);return l&&(s=s.map((t=>t+"-"+l)),o&&(s=s.concat(s.map(h)))),s}(u,v,b,T));const A=[u,...k],D=await l(r,R),C=[];let P=(null==(s=a.flip)?void 0:s.overflows)||[];if(g&&C.push(D[L]),y){const{main:n,cross:i}=function(n,i,r){void 0===r&&(r=!1);const l=t(n),s=o(n),c=e(s);let a="x"===s?l===(r?"end":"start")?"right":"left":"start"===l?"bottom":"top";return i.reference[c]>i.floating[c]&&(a=d(a)),{main:a,cross:d(a)}}(c,f,T);C.push(D[n],D[i])}if(P=[...P,{placement:c,overflows:C}],!C.every((t=>t<=0))){var F,S;const t=((null==(F=a.flip)?void 0:F.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(S=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!n)switch(w){case"bestFit":{var H;const t=null==(H=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=u}if(c!==n)return{reset:{placement:n}}}return{}}}};function g(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function y(t){return f.some((e=>t[e]>=0))}const x=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:n="referenceHidden",...o}=t,{rects:i}=e;switch(n){case"referenceHidden":{const t=g(await l(e,{...o,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:y(t)}}}case"escaped":{const t=g(await l(e,{...o,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:y(t)}}}default:return{}}}}};const w=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(i){const{x:r,y:l}=i,s=await async function(e,i){const{placement:r,platform:l,elements:s}=e,c=await(null==l.isRTL?void 0:l.isRTL(s.floating)),a=n(r),f=t(r),u="x"===o(r),d=["left","top"].includes(a)?-1:1,m=c&&u?-1:1,h="function"==typeof i?i(e):i;let{mainAxis:p,crossAxis:g,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return f&&"number"==typeof y&&(g="end"===f?-1*y:y),u?{x:g*m,y:p*d}:{x:p*d,y:g*m}}(i,e);return{x:r+s.x,y:l+s.y,data:s}}}};const b=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:r,placement:s}=e,{mainAxis:c=!0,crossAxis:f=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...d}=t,m={x:i,y:r},h=await l(e,d),p=o(n(s)),g="x"===p?"y":"x";let y=m[p],x=m[g];if(c){const t="y"===p?"bottom":"right";y=a(y+h["y"===p?"top":"left"],y,y-h[t])}if(f){const t="y"===g?"bottom":"right";x=a(x+h["y"===g?"top":"left"],x,x-h[t])}const w=u.fn({...e,[p]:y,[g]:x});return{...w,data:{x:w.x-i,y:w.y-r}}}}};function v(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function R(t){return v(t).getComputedStyle(t)}function L(t){return t instanceof v(t).Node}function E(t){return L(t)?(t.nodeName||"").toLowerCase():""}let T;function k(){if(T)return T;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(T=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),T):navigator.userAgent}function A(t){return t instanceof v(t).HTMLElement}function D(t){return t instanceof v(t).Element}function C(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof v(t).ShadowRoot||t instanceof ShadowRoot}function P(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=R(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function F(t){return["table","td","th"].includes(E(t))}function S(t){const e=/firefox/i.test(k()),n=R(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function H(){return/^((?!chrome|android).)*safari/i.test(k())}function O(t){return["html","body","#document"].includes(E(t))}const V=Math.min,B=Math.max,W=Math.round;function M(t){const e=R(t);let n=parseFloat(e.width),o=parseFloat(e.height);const i=A(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,s=W(n)!==r||W(o)!==l;return s&&(n=r,o=l),{width:n,height:o,fallback:s}}function z(t){return D(t)?t:t.contextElement}const N={x:1,y:1};function j(t){const e=z(t);if(!A(e))return N;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=M(e);let l=(r?W(n.width):n.width)/o,s=(r?W(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function X(t,e,n,o){var i,l;void 0===e&&(e=!1),void 0===n&&(n=!1);const s=t.getBoundingClientRect(),c=z(t);let a=N;e&&(o?D(o)&&(a=j(o)):a=j(t));const f=c?v(c):window,u=H()&&n;let d=(s.left+(u&&(null==(i=f.visualViewport)?void 0:i.offsetLeft)||0))/a.x,m=(s.top+(u&&(null==(l=f.visualViewport)?void 0:l.offsetTop)||0))/a.y,h=s.width/a.x,p=s.height/a.y;if(c){const t=v(c),e=o&&D(o)?v(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=j(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,d*=t.x,m*=t.y,h*=t.x,p*=t.y,d+=e.x,m+=e.y,n=v(n).frameElement}}return r({width:h,height:p,x:d,y:m})}function Y(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(t){return X(Y(t)).left+$(t).scrollLeft}function q(t){if("html"===E(t))return t;const e=t.assignedSlot||t.parentNode||C(t)&&t.host||Y(t);return C(e)?e.host:e}function G(t){const e=q(t);return O(e)?e.ownerDocument.body:A(e)&&P(e)?e:G(e)}function I(t,e){var n;void 0===e&&(e=[]);const o=G(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=v(o);return i?e.concat(r,r.visualViewport||[],P(o)?o:[]):e.concat(o,I(o))}function J(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=v(t),o=Y(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(i){r=i.width,l=i.height;const t=H();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:r,height:l,x:s,y:c}}(t,n);else if("document"===e)o=function(t){const e=Y(t),n=$(t),o=t.ownerDocument.body,i=B(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=B(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+_(t);const s=-n.scrollTop;return"rtl"===R(o).direction&&(l+=B(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}(Y(t));else if(D(e))o=function(t,e){const n=X(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=A(t)?j(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n={...e};if(H()){var i,l;const e=v(t);n.x-=(null==(i=e.visualViewport)?void 0:i.offsetLeft)||0,n.y-=(null==(l=e.visualViewport)?void 0:l.offsetTop)||0}o=n}return r(o)}function K(t,e){const n=q(t);return!(n===e||!D(n)||O(n))&&("fixed"===R(n).position||K(n,e))}function Q(t,e){return A(t)&&"fixed"!==R(t).position?e?e(t):t.offsetParent:null}function U(t,e){const n=v(t);if(!A(t))return n;let o=Q(t,e);for(;o&&F(o)&&"static"===R(o).position;)o=Q(o,e);return o&&("html"===E(o)||"body"===E(o)&&"static"===R(o).position&&!S(o))?n:o||function(t){let e=q(t);for(;A(e)&&!O(e);){if(S(e))return e;e=q(e)}return null}(t)||n}function Z(t,e,n){const o=A(e),i=Y(e),r=X(t,!0,"fixed"===n,e);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==E(e)||P(i))&&(l=$(e)),A(e)){const t=X(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=_(i));return{x:r.left+l.scrollLeft-s.x,y:r.top+l.scrollTop-s.y,width:r.width,height:r.height}}const tt={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=I(t).filter((t=>D(t)&&"body"!==E(t))),i=null;const r="fixed"===R(t).position;let l=r?q(t):t;for(;D(l)&&!O(l);){const e=R(l),n=S(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||P(l)&&!n&&K(t,l))?o=o.filter((t=>t!==l)):i=e,l=q(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],s=r.reduce(((t,n)=>{const o=J(e,n,i);return t.top=B(o.top,t.top),t.right=V(o.right,t.right),t.bottom=V(o.bottom,t.bottom),t.left=B(o.left,t.left),t}),J(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=A(n),r=Y(n);if(n===r)return e;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==E(n)||P(r))&&(l=$(n)),A(n))){const t=X(n);s=j(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-l.scrollLeft*s.x+c.x,y:e.y*s.y-l.scrollTop*s.y+c.y}},isElement:D,getDimensions:function(t){return M(t)},getOffsetParent:U,getDocumentElement:Y,getScale:j,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||U,r=this.getDimensions;return{reference:Z(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===R(t).direction};function et(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=i||r?[...D(t)?I(t):t.contextElement?I(t.contextElement):[],...I(e)]:[];c.forEach((t=>{const e=!D(t)&&t.toString().includes("V");!i||s&&!e||t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));let a,f=null;l&&(f=new ResizeObserver((()=>{n()})),D(t)&&!s&&f.observe(t),D(t)||!t.contextElement||s||f.observe(t.contextElement),f.observe(e));let u=s?X(t):null;return s&&function e(){const o=X(t);!u||o.x===u.x&&o.y===u.y&&o.width===u.width&&o.height===u.height||n();u=o,a=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==(t=f)||t.disconnect(),f=null,s&&cancelAnimationFrame(a)}}const nt=(t,e,n)=>{const o=new Map,r={platform:tt,...n},l={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:s}=n,c=l.filter(Boolean),a=await(null==s.isRTL?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=i(f,o,a),m=o,h={},p=0;for(let n=0;n<c.length;n++){const{name:l,fn:g}=c[n],{x:y,y:x,data:w,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:h,rects:f,platform:s,elements:{reference:t,floating:e}});u=null!=y?y:u,d=null!=x?x:d,h={...h,[l]:{...h[l],...w}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(f=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:d}=i(f,m,a))),n=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:h}})(t,e,{...r,platform:l})},ot={"inline-start-start":"left-start","inline-start-end":"left-end","inline-end-start":"right-start","inline-end-end":"right-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},it={"inline-start-start":"right-start","inline-start-end":"right-end","inline-end-start":"left-start","inline-end-end":"left-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},rt={"block-end":"bottom","block-start":"top","inline-start":"left","inline-end":"right"};function lt(t,e,n){if(null!=e&&null!=n){const o=`${t}-${e}`;return"ltr"===n?ot[o]:it[o]}return rt[t]}export{et as a,nt as c,p as f,x as h,lt as l,w as o,b as s};
|
|
2
|
-
//# sourceMappingURL=positioning-a572d126.js.map
|