@nordhealth/components 3.13.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +2898 -2237
- package/lib/AutocompleteMixin-3cf61f49.js +2 -0
- package/lib/{AutocompleteMixin-5a7e10b2.js.map → AutocompleteMixin-3cf61f49.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-5fbf9d8d.js → Calendar-a80c53ba.js} +2 -2
- package/lib/{Calendar-5fbf9d8d.js.map → Calendar-a80c53ba.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-2253424f.js → Component-420bbc41.js} +2 -2
- package/lib/Component-420bbc41.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-8d334475.js → DropdownItem-579d8ef6.js} +2 -2
- package/lib/DropdownItem-579d8ef6.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-d30213b4.js → FocusableMixin-4300e44e.js} +2 -2
- package/lib/{FocusableMixin-d30213b4.js.map → FocusableMixin-4300e44e.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/{FormAssociatedMixin-3fa55d53.js → FormAssociatedMixin-6f1c13ac.js} +2 -2
- package/lib/{FormAssociatedMixin-3fa55d53.js.map → FormAssociatedMixin-6f1c13ac.js.map} +1 -1
- package/lib/FormDataController-592ff3dd.js.map +1 -1
- package/lib/{FormField-87551be2.js → FormField-cbfebb3f.js} +2 -2
- package/lib/FormField-cbfebb3f.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-83b5bd46.js → InputMixin-f9fb4034.js} +2 -2
- package/lib/{InputMixin-83b5bd46.js.map → InputMixin-f9fb4034.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-5388d84c.js → LightDomController-3d3edb76.js} +2 -2
- package/lib/{LightDomController-5388d84c.js.map → LightDomController-3d3edb76.js.map} +1 -1
- package/lib/{LightSlotController-c51e9cf5.js → LightSlotController-0953b4d4.js} +2 -2
- package/lib/{LightSlotController-c51e9cf5.js.map → LightSlotController-0953b4d4.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-6b13700e.js → NavToggle-5620165f.js} +2 -2
- package/lib/{NavToggle-6b13700e.js.map → NavToggle-5620165f.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-207f1f56.js → NotificationMixin-c06bb631.js} +2 -2
- package/lib/{NotificationMixin-207f1f56.js.map → NotificationMixin-c06bb631.js.map} +1 -1
- package/lib/Popout-e5584f6a.js +2 -0
- package/lib/{Popout-2f9d860d.js.map → Popout-e5584f6a.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-fb379434.js +2 -0
- package/lib/{SizeMixin-ab074eff.js.map → SizeMixin-fb379434.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-c34c9b12.js → Sticky-acc92284.js} +2 -2
- package/lib/Sticky-acc92284.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-2d778949.js → TextField-8b226327.js} +2 -2
- package/lib/{TextField-2d778949.js.map → TextField-8b226327.js.map} +1 -1
- package/lib/TextSelectableMixin-f05ce716.js +2 -0
- package/lib/TextSelectableMixin-f05ce716.js.map +1 -0
- 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 +18 -35
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-512f0bc1.js → class-map-cb77ead2.js} +2 -2
- package/lib/class-map-cb77ead2.js.map +1 -0
- package/lib/collection-2f8e38bd.js +7 -0
- package/lib/collection-2f8e38bd.js.map +1 -0
- package/lib/cond-44672025.js +2 -0
- package/lib/{cond-bb9ee891.js.map → cond-44672025.js.map} +1 -1
- package/lib/{directive-e9ce14b4.js → directive-de55b00a.js} +1 -1
- package/lib/directive-de55b00a.js.map +1 -0
- package/lib/events-d9666e88.js.map +1 -1
- package/lib/{if-defined-cccde88f.js → if-defined-9b177db4.js} +2 -2
- package/lib/if-defined-9b177db4.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/positioning-a572d126.js +2 -0
- package/lib/positioning-a572d126.js.map +1 -0
- package/lib/{property-c78323b1.js → property-03f59dce.js} +2 -2
- package/lib/property-03f59dce.js.map +1 -0
- package/lib/{query-36bfe0e4.js → query-2d22378e.js} +1 -1
- package/lib/query-2d22378e.js.map +1 -0
- package/lib/query-assigned-elements-15485e3d.js +34 -0
- package/lib/query-assigned-elements-15485e3d.js.map +1 -0
- package/lib/{ref-99418ab4.js → ref-5526fb07.js} +4 -4
- package/lib/ref-5526fb07.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/common/mixins/TextSelectableMixin.d.ts +16 -0
- package/lib/src/date-picker/DatePicker.d.ts +5 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +5 -2
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- 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 +3 -2
- package/lib/src/input/Input.test.d.ts +1 -0
- 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 +4 -1
- package/lib/src/nav-item/NavItem.d.ts +2 -0
- package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +4 -1
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +3 -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 +1 -1
- package/lib/src/range/Range.d.ts +1 -1
- package/lib/src/segmented-control/SegmentedControl.d.ts +2 -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/Tag.test.d.ts +1 -0
- package/lib/src/tag-group/TagGroup.d.ts +4 -1
- package/lib/src/textarea/Textarea.d.ts +3 -2
- package/lib/src/textarea/Textarea.test.d.ts +2 -0
- package/lib/src/toast/Toast.d.ts +1 -1
- package/lib/src/toast-group/ToastGroup.d.ts +3 -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-d31c6912.js → state-70f38ceb.js} +2 -2
- package/lib/state-70f38ceb.js.map +1 -0
- package/lib/style-map-ed7e6cc6.js +7 -0
- package/lib/style-map-ed7e6cc6.js.map +1 -0
- package/package.json +2 -2
- package/lib/AutocompleteMixin-5a7e10b2.js +0 -2
- package/lib/Component-2253424f.js.map +0 -1
- package/lib/DropdownItem-8d334475.js.map +0 -1
- package/lib/FormField-87551be2.js.map +0 -1
- package/lib/Popout-2f9d860d.js +0 -2
- package/lib/SizeMixin-ab074eff.js +0 -2
- package/lib/Sticky-c34c9b12.js.map +0 -1
- package/lib/class-map-512f0bc1.js.map +0 -1
- package/lib/collection-511dcfac.js +0 -7
- package/lib/collection-511dcfac.js.map +0 -1
- package/lib/cond-bb9ee891.js +0 -2
- package/lib/directive-e9ce14b4.js.map +0 -1
- package/lib/if-defined-cccde88f.js.map +0 -1
- package/lib/positioning-2346bdd6.js +0 -2
- package/lib/positioning-2346bdd6.js.map +0 -1
- package/lib/property-c78323b1.js.map +0 -1
- package/lib/query-36bfe0e4.js.map +0 -1
- package/lib/query-assigned-elements-92ce7494.js +0 -51
- package/lib/query-assigned-elements-92ce7494.js.map +0 -1
- package/lib/ref-99418ab4.js.map +0 -1
- package/lib/state-d31c6912.js.map +0 -1
- package/lib/style-map-f8a1c8d5.js +0 -7
- package/lib/style-map-f8a1c8d5.js.map +0 -1
package/lib/src/radio/Radio.d.ts
CHANGED
|
@@ -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").TemplateResult<1>;
|
|
32
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
37
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
38
38
|
protected handleInput(e: Event): void;
|
|
39
39
|
}
|
|
40
40
|
declare global {
|
|
@@ -8,6 +8,7 @@ declare const SegmentedControl_base: typeof LitElement;
|
|
|
8
8
|
* @category action
|
|
9
9
|
* @slot - Default slot.
|
|
10
10
|
*
|
|
11
|
+
* @fires {NordEvent} change - Fired whenever a segmented control item has been checked.
|
|
11
12
|
*/
|
|
12
13
|
export default class SegmentedControl extends SegmentedControl_base {
|
|
13
14
|
static styles: import("lit").CSSResult[];
|
|
@@ -16,7 +17,7 @@ export default class SegmentedControl extends SegmentedControl_base {
|
|
|
16
17
|
* Controls whether the segmented control expands to fill the width of its container.
|
|
17
18
|
*/
|
|
18
19
|
expand: boolean;
|
|
19
|
-
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
21
|
}
|
|
21
22
|
declare global {
|
|
22
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").TemplateResult<1>;
|
|
46
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
27
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
21
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
28
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
35
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
19
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
38
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
12
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
38
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
39
39
|
private renderStaticTag;
|
|
40
40
|
private renderRemovableTag;
|
|
41
41
|
private renderSelectableTag;
|
|
@@ -7,6 +7,9 @@ declare const TagGroup_base: typeof LitElement;
|
|
|
7
7
|
* @category structure
|
|
8
8
|
* @slot - The tag group content
|
|
9
9
|
*
|
|
10
|
+
* @fires {NordEvent} change - Fired whenever a tag has been checked or unchecked via user interaction.
|
|
11
|
+
* @fires {NordEvent} remove - Fired when the remove button is activated on a tag. This event should be used to remove the tag from the DOM.
|
|
12
|
+
*
|
|
10
13
|
* @cssprop [--n-tag-group-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the tag group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.
|
|
11
14
|
* @cssprop [--n-tag-group-box-shadow=var(--n-box-shadow)] - Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.
|
|
12
15
|
*/
|
|
@@ -30,7 +33,7 @@ export default class TagGroup extends TagGroup_base {
|
|
|
30
33
|
* The appropriate role for the containing element.
|
|
31
34
|
*/
|
|
32
35
|
role: string;
|
|
33
|
-
render(): import("lit").TemplateResult<1>;
|
|
36
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
34
37
|
}
|
|
35
38
|
declare global {
|
|
36
39
|
interface HTMLElementTagNameMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const Textarea_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/AutocompleteMixin.js").AutocompleteMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
2
|
+
declare const Textarea_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/AutocompleteMixin.js").AutocompleteMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/TextSelectableMixin.js").TextSelectableMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* Textarea is a component that allows user to write text over
|
|
5
5
|
* multiple rows. Used when the expected user input is long.
|
|
@@ -44,7 +44,8 @@ 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").TemplateResult<1>;
|
|
47
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
48
|
+
protected handleSelect(e: Event): void;
|
|
48
49
|
private renderCharacterCounter;
|
|
49
50
|
private handleLangChange;
|
|
50
51
|
protected resizeToFitContent(): void;
|
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").TemplateResult<1>;
|
|
29
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
30
30
|
protected handleAutoDismissChange(): void;
|
|
31
31
|
}
|
|
32
32
|
declare global {
|
|
@@ -7,10 +7,12 @@ type ToastOptions = Partial<Pick<Toast, "variant" | "autoDismiss">>;
|
|
|
7
7
|
* @status ready
|
|
8
8
|
* @category feedback
|
|
9
9
|
* @slot - Default slot in which to place toasts.
|
|
10
|
+
*
|
|
11
|
+
* @fires {NordEvent} dismiss - Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.
|
|
10
12
|
*/
|
|
11
13
|
export default class ToastGroup extends LitElement {
|
|
12
14
|
static styles: import("lit").CSSResult[];
|
|
13
|
-
render(): import("lit").TemplateResult<1>;
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
16
|
/**
|
|
15
17
|
* Convenience method for creating and adding a toast to the group.
|
|
16
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").TemplateResult<1>;
|
|
30
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
55
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
11
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as r}from"./property-03f59dce.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-70f38ceb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-70f38ceb.js","sources":["../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 t}from"./query-assigned-elements-15485e3d.js";import{e,i as r,t as s}from"./directive-de55b00a.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const n="important",i=" !"+n,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.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e}}return t}});export{o};
|
|
7
|
+
//# sourceMappingURL=style-map-ed7e6cc6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-map-ed7e6cc6.js","sources":["../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.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`}),\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=\"\")}));for(const t in r){const e=r[t];if(null!=e){this.ut.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","replace","toLowerCase","update","style","element","this","ut","Set","add","forEach","delete","includes","removeProperty","endsWith","setProperty","slice"],"mappings":";;;;;GAKQ,MAACA,EAAE,YAAYC,EAAE,KAAKD,EAAEE,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,6GAA6G,CAACC,OAAOT,GAAG,OAAOU,OAAOC,KAAKX,GAAGY,QAAM,CAAGf,EAAEC,KAAK,MAAMK,EAAEH,EAAEF,GAAG,OAAO,MAAMK,EAAEN,EAAEA,EAAE,GAAGC,EAAEA,EAAEe,QAAQ,oCAAoC,OAAOC,iBAAiBX,IAAK,GAAE,GAAG,CAACY,OAAOlB,GAAGC,IAAI,MAAMkB,MAAMb,GAAGN,EAAEoB,QAAQ,QAAG,IAASC,KAAKC,GAAG,CAACD,KAAKC,GAAG,IAAIC,IAAI,IAAI,MAAMpB,KAAKF,EAAEoB,KAAKC,GAAGE,IAAIrB,GAAG,OAAOkB,KAAKT,OAAOX,EAAE,CAACoB,KAAKC,GAAGG,SAAStB,IAAI,MAAMF,EAAEE,KAAKkB,KAAKC,GAAGI,OAAOvB,GAAGA,EAAEwB,SAAS,KAAKrB,EAAEsB,eAAezB,GAAGG,EAAEH,GAAG,GAAI,IAAG,IAAI,MAAMA,KAAKF,EAAE,CAAC,MAAMD,EAAEC,EAAEE,GAAG,GAAG,MAAMH,EAAE,CAACqB,KAAKC,GAAGE,IAAIrB,GAAG,MAAMF,EAAE,iBAAiBD,GAAGA,EAAE6B,SAAS/B,GAAGK,EAAEwB,SAAS,MAAM1B,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.14.1",
|
|
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",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
}
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "29510a2df53bf4d6f308859121bbf7e32a20612e"
|
|
188
188
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./query-assigned-elements-92ce7494.js";import{n as o}from"./property-c78323b1.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-5a7e10b2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-2253424f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownItem-8d334475.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormField-87551be2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/lib/Popout-2f9d860d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as t,i as e,x as o,e as i,s}from"./query-assigned-elements-92ce7494.js";import{n}from"./property-c78323b1.js";import{t as r}from"./state-d31c6912.js";import{i as a}from"./query-36bfe0e4.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-2346bdd6.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-2253424f.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-2f9d860d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./query-assigned-elements-92ce7494.js";import{n as r}from"./property-c78323b1.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-ab074eff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sticky-c34c9b12.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-map-512f0bc1.js","sources":["../node_modules/lit/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,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,qGAAqG,CAAC,MAAAC,CAAOT,GAAG,MAAM,IAAIU,OAAOC,KAAKX,GAAGY,QAAQf,GAAGG,EAAEH,KAAKgB,KAAK,KAAK,GAAG,CAAC,MAAAC,CAAOjB,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-92ce7494.js";import{e as t,i as s,t as n}from"./directive-e9ce14b4.js";import{m as r,f as o,c as l,p as i,a as u}from"./ref-99418ab4.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const c=(e,t,s)=>{const n=new Map;for(let r=t;r<=s;r++)n.set(e[r],r);return n},f=t(class extends s{constructor(e){if(super(e),e.type!==n.CHILD)throw Error("repeat() can only be used in text expressions")}ct(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.ct(e,t,s).values}update(t,[s,n,f]){var a;const h=r(t),{values:p,keys:d}=this.ct(s,n,f);if(!Array.isArray(h))return this.ut=d,p;const v=null!==(a=this.ut)&&void 0!==a?a:this.ut=[],m=[];let g,y,x=0,b=h.length-1,j=0,w=p.length-1;for(;x<=b&&j<=w;)if(null===h[x])x++;else if(null===h[b])b--;else if(v[x]===d[j])m[j]=o(h[x],p[j]),x++,j++;else if(v[b]===d[w])m[w]=o(h[b],p[w]),b--,w--;else if(v[x]===d[w])m[w]=o(h[x],p[w]),l(t,m[w+1],h[x]),x++,w--;else if(v[b]===d[j])m[j]=o(h[b],p[j]),l(t,h[x],h[b]),b--,j++;else if(void 0===g&&(g=c(d,j,w),y=c(v,x,b)),g.has(v[x]))if(g.has(v[b])){const e=y.get(d[j]),s=void 0!==e?h[e]:null;if(null===s){const e=l(t,h[x]);o(e,p[j]),m[j]=e}else m[j]=o(s,p[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,p[j]),m[j++]=e}for(;x<=b;){const e=h[x++];null!==e&&i(e)}return this.ut=d,u(t,m),e}});function a(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 p(e,t,s){return e.map(((n,r)=>{const o=(r+t)%e.length;return s(e[o],o)}))}export{h as a,f as c,a as g,p as m};
|
|
7
|
-
//# sourceMappingURL=collection-511dcfac.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection-511dcfac.js","sources":["../node_modules/lit/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\")}ct(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.ct(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.ct(t,r,c);if(!Array.isArray(a))return this.ut=v,p;const h=null!==(d=this.ut)&&void 0!==d?d:this.ut=[],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.ut=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","ct","o","i","values","keys","render","this","update","d","a","p","v","Array","isArray","ut","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":"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"}
|
package/lib/cond-bb9ee891.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directive-e9ce14b4.js","sources":["../node_modules/lit/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,EAAE,WAAAC,CAAYX,GAAE,CAAE,QAAIY,GAAO,OAAOC,KAAKC,KAAKF,IAAI,CAAC,IAAAG,CAAKf,EAAEO,EAAEG,GAAGG,KAAKG,KAAKhB,EAAEa,KAAKC,KAAKP,EAAEM,KAAKI,KAAKP,CAAC,CAAC,IAAAQ,CAAKlB,EAAEO,GAAG,OAAOM,KAAKM,OAAOnB,EAAEO,EAAE,CAAC,MAAAY,CAAOnB,EAAEO,GAAG,OAAOM,KAAKO,UAAUb,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"if-defined-cccde88f.js","sources":["../node_modules/lit/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
|
-
const t=["top","right","bottom","left"],e=Math.min,n=Math.max,o={left:"right",right:"left",bottom:"top",top:"bottom"},i={start:"end",end:"start"};function r(t,o,i){return n(t,e(o,i))}function l(t,e){return"function"==typeof t?t(e):t}function s(t){return t.split("-")[0]}function c(t){return t.split("-")[1]}function a(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function u(t){return["top","bottom"].includes(s(t))?"y":"x"}function d(t){return a(u(t))}function m(t){return t.replace(/start|end/g,(t=>i[t]))}function h(t){return t.replace(/left|right|bottom|top/g,(t=>o[t]))}function p(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function g(t,e,n){let{reference:o,floating:i}=t;const r=u(e),l=d(e),a=f(l),m=s(e),h="y"===r,p=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[a]/2-i[a]/2;let x;switch(m){case"top":x={x:p,y:o.y-i.height};break;case"bottom":x={x:p,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:g};break;case"left":x={x:o.x-i.width,y:g};break;default:x={x:o.x,y:o.y}}switch(c(e)){case"start":x[l]-=y*(n&&h?-1:1);break;case"end":x[l]+=y*(n&&h?-1:1)}return x}async function y(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=l(e,t),g=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),y=c[m?"floating"===d?"reference":"floating":d],x=p(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(y)))||n?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:a})),w="floating"===d?{...s.floating,x:o,y:i}:s.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),b=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},R=p(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:v,strategy:a}):w);return{top:(x.top-R.top+g.top)/b.y,bottom:(R.bottom-x.bottom+g.bottom)/b.y,left:(x.left-R.left+g.left)/b.x,right:(R.right-x.right+g.right)/b.x}}const x=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:u,platform:p,elements:g}=e,{mainAxis:x=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:L=!0,...E}=l(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const T=s(i),k=s(u)===u,A=await(null==p.isRTL?void 0:p.isRTL(g.floating)),D=v||(k||!L?[h(u)]:function(t){const e=h(t);return[m(t),e,m(e)]}(u));v||"none"===R||D.push(...function(t,e,n,o){const i=c(t);let r=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[]}}(s(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(m)))),r}(u,L,R,A));const C=[u,...D],O=await y(e,E),P=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(x&&P.push(O[T]),w){const t=function(t,e,n){void 0===n&&(n=!1);const o=c(t),i=d(t),r=f(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=h(l)),[l,h(l)]}(i,a,A);P.push(O[t[0]],O[t[1]])}if(F=[...F,{placement:i,overflows:P}],!P.every((t=>t<=0))){var S,H;const t=((null==(S=r.flip)?void 0:S.index)||0)+1,e=C[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(H=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:H.placement;if(!n)switch(b){case"bestFit":{var V;const t=null==(V=F.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:V[0];t&&(n=t);break}case"initialPlacement":n=u}if(i!==n)return{reset:{placement:n}}}return{}}}};function w(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function v(e){return t.some((t=>e[t]>=0))}const b=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=l(t,e);switch(o){case"referenceHidden":{const t=w(await y(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:v(t)}}}case"escaped":{const t=w(await y(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:v(t)}}}default:return{}}}}};const R=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:a,middlewareData:f}=e,d=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=s(n),f=c(n),d="y"===u(n),m=["left","top"].includes(a)?-1:1,h=r&&d?-1:1,p=l(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:x}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof x&&(y="end"===f?-1*x:x),d?{x:y*h,y:g*m}:{x:g*m,y:y*h}}(e,t);return a===(null==(n=f.offset)?void 0:n.placement)&&null!=(o=f.arrow)&&o.alignmentOffset?{}:{x:i+d.x,y:r+d.y,data:{...d,placement:a}}}}},L=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=l(t,e),h={x:n,y:o},p=await y(e,m),g=u(s(i)),x=a(g);let w=h[x],v=h[g];if(c){const t="y"===x?"bottom":"right";w=r(w+p["y"===x?"top":"left"],w,w-p[t])}if(f){const t="y"===g?"bottom":"right";v=r(v+p["y"===g?"top":"left"],v,v-p[t])}const b=d.fn({...e,[x]:w,[g]:v});return{...b,data:{x:b.x-n,y:b.y-o}}}}};function E(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function T(t){return E(t).getComputedStyle(t)}function k(t){return t instanceof E(t).Node}function A(t){return k(t)?(t.nodeName||"").toLowerCase():""}let D;function C(){if(D)return D;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(D=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),D):navigator.userAgent}function O(t){return t instanceof E(t).HTMLElement}function P(t){return t instanceof E(t).Element}function F(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof E(t).ShadowRoot||t instanceof ShadowRoot}function S(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=T(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function H(t){return["table","td","th"].includes(A(t))}function V(t){const e=/firefox/i.test(C()),n=T(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 B(){return/^((?!chrome|android).)*safari/i.test(C())}function W(t){return["html","body","#document"].includes(A(t))}const M=Math.min,z=Math.max,N=Math.round;function j(t){const e=T(t);let n=parseFloat(e.width),o=parseFloat(e.height);const i=O(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,s=N(n)!==r||N(o)!==l;return s&&(n=r,o=l),{width:n,height:o,fallback:s}}function X(t){return P(t)?t:t.contextElement}const Y={x:1,y:1};function $(t){const e=X(t);if(!O(e))return Y;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=j(e);let l=(r?N(n.width):n.width)/o,s=(r?N(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function _(t,e,n,o){var i,r;void 0===e&&(e=!1),void 0===n&&(n=!1);const l=t.getBoundingClientRect(),s=X(t);let c=Y;e&&(o?P(o)&&(c=$(o)):c=$(t));const a=s?E(s):window,f=B()&&n;let u=(l.left+(f&&(null==(i=a.visualViewport)?void 0:i.offsetLeft)||0))/c.x,d=(l.top+(f&&(null==(r=a.visualViewport)?void 0:r.offsetTop)||0))/c.y,m=l.width/c.x,h=l.height/c.y;if(s){const t=E(s),e=o&&P(o)?E(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=$(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,u*=t.x,d*=t.y,m*=t.x,h*=t.y,u+=e.x,d+=e.y,n=E(n).frameElement}}return p({width:m,height:h,x:u,y:d})}function q(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function G(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(t){return _(q(t)).left+G(t).scrollLeft}function J(t){if("html"===A(t))return t;const e=t.assignedSlot||t.parentNode||F(t)&&t.host||q(t);return F(e)?e.host:e}function K(t){const e=J(t);return W(e)?e.ownerDocument.body:O(e)&&S(e)?e:K(e)}function Q(t,e){var n;void 0===e&&(e=[]);const o=K(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=E(o);return i?e.concat(r,r.visualViewport||[],S(o)?o:[]):e.concat(o,Q(o))}function U(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=E(t),o=q(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=B();(!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=q(t),n=G(t),o=t.ownerDocument.body,i=z(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=z(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+I(t);const s=-n.scrollTop;return"rtl"===T(o).direction&&(l+=z(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}(q(t));else if(P(e))o=function(t,e){const n=_(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=O(t)?$(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(B()){var i,r;const e=E(t);n.x-=(null==(i=e.visualViewport)?void 0:i.offsetLeft)||0,n.y-=(null==(r=e.visualViewport)?void 0:r.offsetTop)||0}o=n}return p(o)}function Z(t,e){const n=J(t);return!(n===e||!P(n)||W(n))&&("fixed"===T(n).position||Z(n,e))}function tt(t,e){return O(t)&&"fixed"!==T(t).position?e?e(t):t.offsetParent:null}function et(t,e){const n=E(t);if(!O(t))return n;let o=tt(t,e);for(;o&&H(o)&&"static"===T(o).position;)o=tt(o,e);return o&&("html"===A(o)||"body"===A(o)&&"static"===T(o).position&&!V(o))?n:o||function(t){let e=J(t);for(;O(e)&&!W(e);){if(V(e))return e;e=J(e)}return null}(t)||n}function nt(t,e,n){const o=O(e),i=q(e),r=_(t,!0,"fixed"===n,e);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==A(e)||S(i))&&(l=G(e)),O(e)){const t=_(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=I(i));return{x:r.left+l.scrollLeft-s.x,y:r.top+l.scrollTop-s.y,width:r.width,height:r.height}}const ot={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=Q(t).filter((t=>P(t)&&"body"!==A(t))),i=null;const r="fixed"===T(t).position;let l=r?J(t):t;for(;P(l)&&!W(l);){const e=T(l),n=V(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||S(l)&&!n&&Z(t,l))?o=o.filter((t=>t!==l)):i=e,l=J(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],s=r.reduce(((t,n)=>{const o=U(e,n,i);return t.top=z(o.top,t.top),t.right=M(o.right,t.right),t.bottom=M(o.bottom,t.bottom),t.left=z(o.left,t.left),t}),U(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=O(n),r=q(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"!==A(n)||S(r))&&(l=G(n)),O(n))){const t=_(n);s=$(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:P,getDimensions:function(t){return j(t)},getOffsetParent:et,getDocumentElement:q,getScale:$,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||et,r=this.getDimensions;return{reference:nt(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===T(t).direction};function it(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?[...P(t)?Q(t):t.contextElement?Q(t.contextElement):[],...Q(e)]:[];c.forEach((t=>{const e=!P(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()})),P(t)&&!s&&f.observe(t),P(t)||!t.contextElement||s||f.observe(t.contextElement),f.observe(e));let u=s?_(t):null;return s&&function e(){const o=_(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 rt=(t,e,n)=>{const o=new Map,i={platform:ot,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=g(a,o,c),d=o,m={},h=0;for(let n=0;n<s.length;n++){const{name:r,fn:p}=s[n],{x:y,y:x,data:w,reset:v}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=x?x:u,m={...m,[r]:{...m[r],...w}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=g(a,d,c))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}})(t,e,{...i,platform:r})},lt={"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"},st={"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"},ct={"block-end":"bottom","block-start":"top","inline-start":"left","inline-end":"right"};function at(t,e,n){if(null!=e&&null!=n){const o=`${t}-${e}`;return"ltr"===n?lt[o]:st[o]}return ct[t]}export{it as a,rt as c,x as f,b as h,at as l,R as o,L as s};
|
|
2
|
-
//# sourceMappingURL=positioning-2346bdd6.js.map
|