@nordhealth/components 3.16.0 → 3.18.0-alpha.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/custom-elements.json +3584 -3604
- package/lib/AutocompleteMixin-Dk_gVU09.js +2 -0
- package/lib/{AutocompleteMixin-5a7e10b2.js.map → AutocompleteMixin-Dk_gVU09.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-loNMUV5l.js +2 -0
- package/lib/Calendar-loNMUV5l.js.map +1 -0
- 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-BuB0QgQM.js +2 -0
- package/lib/Component-BuB0QgQM.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/{DirectionController-f35f5476.js → DirectionController-DiJ1Su1I.js} +1 -1
- package/lib/{DirectionController-f35f5476.js.map → DirectionController-DiJ1Su1I.js.map} +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.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-DpwKwVOT.js +2 -0
- package/lib/DropdownItem-DpwKwVOT.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 → EventController-BG-WpaBb.js} +1 -1
- package/lib/{EventController-d99ebeef.js.map → EventController-BG-WpaBb.js.map} +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/FocusableMixin-DriuCNli.js +2 -0
- package/lib/{FocusableMixin-d30213b4.js.map → FocusableMixin-DriuCNli.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-DXVeQVgN.js +2 -0
- package/lib/{FormAssociatedMixin-3fa55d53.js.map → FormAssociatedMixin-DXVeQVgN.js.map} +1 -1
- package/lib/{FormDataController-592ff3dd.js → FormDataController-OUt5L5uC.js} +1 -1
- package/lib/FormDataController-OUt5L5uC.js.map +1 -0
- package/lib/FormField-Cl7HHI9A.js +2 -0
- package/lib/FormField-Cl7HHI9A.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js +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-CV3PG_89.js +2 -0
- package/lib/{InputMixin-83b5bd46.js.map → InputMixin-CV3PG_89.js.map} +1 -1
- package/lib/KeyboardController.js +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-0a66b0a0.js → LightDismissController-BBolVMtn.js} +2 -2
- package/lib/LightDismissController-BBolVMtn.js.map +1 -0
- package/lib/LightDomController-BtyFuJKD.js +2 -0
- package/lib/LightDomController-BtyFuJKD.js.map +1 -0
- package/lib/LightSlotController-BDkcldj-.js +2 -0
- package/lib/LightSlotController-BDkcldj-.js.map +1 -0
- 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 +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-BW4ie2pA.js +2 -0
- package/lib/{NavToggle-6b13700e.js.map → NavToggle-BW4ie2pA.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-BMymOlRC.js +2 -0
- package/lib/{NotificationMixin-207f1f56.js.map → NotificationMixin-BMymOlRC.js.map} +1 -1
- package/lib/Popout-BdNAMySS.js +2 -0
- package/lib/Popout-BdNAMySS.js.map +1 -0
- 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 → ScrollbarController-C5CMxfb3.js} +1 -1
- package/lib/{ScrollbarController-773c79f4.js.map → ScrollbarController-C5CMxfb3.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 +1 -1
- package/lib/{ShortcutController-87615e31.js → ShortcutController-nMRUu6ns.js} +2 -2
- package/lib/{ShortcutController-87615e31.js.map → ShortcutController-nMRUu6ns.js.map} +1 -1
- package/lib/SizeMixin-DW6qUBEN.js +2 -0
- package/lib/{SizeMixin-ab074eff.js.map → SizeMixin-DW6qUBEN.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/{SlotController-d733c575.js → SlotController-BL-tOh6b.js} +2 -2
- package/lib/SlotController-BL-tOh6b.js.map +1 -0
- 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--4fNQ3K3.js +2 -0
- package/lib/Sticky--4fNQ3K3.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-CmHW8rL5.js +2 -0
- package/lib/{TextField-2d778949.js.map → TextField-CmHW8rL5.js.map} +1 -1
- package/lib/TextSelectableMixin-B_mtmFv0.js +2 -0
- package/lib/{TextSelectableMixin-aac97d82.js.map → TextSelectableMixin-B_mtmFv0.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 +19 -41
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-BQZJmA_8.js +7 -0
- package/lib/class-map-BQZJmA_8.js.map +1 -0
- package/lib/collection-CJHuUy_1.js +7 -0
- package/lib/collection-CJHuUy_1.js.map +1 -0
- package/lib/cond-Cuc_PMkN.js +2 -0
- package/lib/{cond-bb9ee891.js.map → cond-Cuc_PMkN.js.map} +1 -1
- package/lib/custom-element-CDWT-yC_.js +30 -0
- package/lib/custom-element-CDWT-yC_.js.map +1 -0
- package/lib/date-adapter.js +1 -1
- package/lib/{dates-5b651fbe.js → dates-lbaNvUdr.js} +2 -2
- package/lib/{dates-5b651fbe.js.map → dates-lbaNvUdr.js.map} +1 -1
- package/lib/{directive-e9ce14b4.js → directive-DQ0jBES2.js} +2 -2
- package/lib/directive-DQ0jBES2.js.map +1 -0
- package/lib/{events-d9666e88.js → events-Bv6wNHwJ.js} +1 -1
- package/lib/{events-d9666e88.js.map → events-Bv6wNHwJ.js.map} +1 -1
- package/lib/{fsm-50373df9.js → fsm-Bq5jMQrK.js} +1 -1
- package/lib/fsm-Bq5jMQrK.js.map +1 -0
- package/lib/if-defined-C2kZHWU2.js +7 -0
- package/lib/if-defined-C2kZHWU2.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/{interface-checked-small-07292940.js → interface-checked-small-BtICPEsp.js} +2 -2
- package/lib/{interface-checked-small-07292940.js.map → interface-checked-small-BtICPEsp.js.map} +1 -1
- package/lib/{interface-close-small-f26b0299.js → interface-close-small-CnpAFMO3.js} +2 -2
- package/lib/{interface-close-small-f26b0299.js.map → interface-close-small-CnpAFMO3.js.map} +1 -1
- package/lib/{number-c3ab3e95.js → number-Dg2vCfGd.js} +1 -1
- package/lib/{number-c3ab3e95.js.map → number-Dg2vCfGd.js.map} +1 -1
- package/lib/{observe-a9c6dfb6.js → observe-D0n0zOfU.js} +1 -1
- package/lib/observe-D0n0zOfU.js.map +1 -0
- package/lib/positioning-C9skJeM8.js +2 -0
- package/lib/positioning-C9skJeM8.js.map +1 -0
- package/lib/property-DeTTNf1t.js +7 -0
- package/lib/property-DeTTNf1t.js.map +1 -0
- package/lib/query-hiZs21fO.js +12 -0
- package/lib/query-hiZs21fO.js.map +1 -0
- package/lib/ref-BYkj-TPb.js +17 -0
- package/lib/ref-BYkj-TPb.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 +2 -2
- 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 +3 -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 +8 -1
- package/lib/src/divider/Divider.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +5 -4
- 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 +3 -1
- package/lib/src/footer/Footer.d.ts +2 -2
- 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 +2 -1
- package/lib/src/layout/Layout.d.ts +1 -1
- package/lib/src/message/Message.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 +2 -2
- package/lib/src/navigation/Navigation.d.ts +1 -1
- package/lib/src/notification/Notification.d.ts +2 -2
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -2
- 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 +3 -1
- package/lib/src/range/Range.d.ts +2 -2
- package/lib/src/segmented-control/SegmentedControl.d.ts +3 -5
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -2
- package/lib/src/select/Select.d.ts +2 -1
- package/lib/src/skeleton/Skeleton.d.ts +2 -2
- 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 +2 -2
- package/lib/src/tag-group/TagGroup.d.ts +3 -5
- package/lib/src/textarea/Textarea.d.ts +2 -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 +3 -1
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/lib/src/top-bar/TopBar.d.ts +2 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/state-BFYKuryf.js +7 -0
- package/lib/state-BFYKuryf.js.map +1 -0
- package/lib/style-map-VR90KNpY.js +7 -0
- package/lib/style-map-VR90KNpY.js.map +1 -0
- package/lib/test-utils/commands/examples/command.d.ts +13 -0
- package/lib/test-utils/commands/mouse/command.d.ts +7 -0
- package/lib/test-utils/commands/select/command.d.ts +5 -0
- package/lib/test-utils/spy.d.ts +13 -0
- package/lib/{tinykeys.module-84e6cc41.js → tinykeys.module-_6MZt7MP.js} +1 -1
- package/lib/{tinykeys.module-84e6cc41.js.map → tinykeys.module-_6MZt7MP.js.map} +1 -1
- package/lib/translation.js +1 -1
- package/lib/translation.js.map +1 -1
- package/package.json +53 -65
- package/lib/AutocompleteMixin-5a7e10b2.js +0 -2
- package/lib/Calendar-5fbf9d8d.js +0 -2
- package/lib/Calendar-5fbf9d8d.js.map +0 -1
- package/lib/Component-2253424f.js +0 -2
- package/lib/Component-2253424f.js.map +0 -1
- package/lib/DraftComponentMixin-9e4b7b34.js +0 -2
- package/lib/DraftComponentMixin-9e4b7b34.js.map +0 -1
- package/lib/DropdownItem-32052903.js +0 -2
- package/lib/DropdownItem-32052903.js.map +0 -1
- package/lib/FocusableMixin-d30213b4.js +0 -2
- package/lib/FormAssociatedMixin-3fa55d53.js +0 -2
- package/lib/FormDataController-592ff3dd.js.map +0 -1
- package/lib/FormField-b0da767b.js +0 -2
- package/lib/FormField-b0da767b.js.map +0 -1
- package/lib/InputMixin-83b5bd46.js +0 -2
- package/lib/LightDismissController-0a66b0a0.js.map +0 -1
- package/lib/LightDomController-5388d84c.js +0 -2
- package/lib/LightDomController-5388d84c.js.map +0 -1
- package/lib/LightSlotController-c51e9cf5.js +0 -2
- package/lib/LightSlotController-c51e9cf5.js.map +0 -1
- package/lib/NavToggle-6b13700e.js +0 -2
- package/lib/NotificationMixin-207f1f56.js +0 -2
- package/lib/Popout-9ea00c67.js +0 -2
- package/lib/Popout-9ea00c67.js.map +0 -1
- package/lib/SizeMixin-ab074eff.js +0 -2
- package/lib/SlotController-d733c575.js.map +0 -1
- package/lib/Sticky-c34c9b12.js +0 -2
- package/lib/Sticky-c34c9b12.js.map +0 -1
- package/lib/TextField-2d778949.js +0 -2
- package/lib/TextSelectableMixin-aac97d82.js +0 -2
- package/lib/class-map-512f0bc1.js +0 -7
- 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/fsm-50373df9.js.map +0 -1
- package/lib/if-defined-cccde88f.js +0 -7
- package/lib/if-defined-cccde88f.js.map +0 -1
- package/lib/observe-a9c6dfb6.js.map +0 -1
- package/lib/positioning-35c8d434.js +0 -2
- package/lib/positioning-35c8d434.js.map +0 -1
- package/lib/property-c78323b1.js +0 -7
- package/lib/property-c78323b1.js.map +0 -1
- package/lib/query-36bfe0e4.js +0 -12
- 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 +0 -17
- package/lib/ref-99418ab4.js.map +0 -1
- package/lib/state-d31c6912.js +0 -7
- 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/input/Input.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const Input_base: (new (...args: any[]) => import("../common/mixins/Size
|
|
|
18
18
|
* @cssprop [--n-input-border-color=var(--n-color-border-strong)] - Controls the border color of the input, using our [color tokens](/tokens/#color).
|
|
19
19
|
* @cssprop [--n-input-border-radius=var(--n-border-radius-s)] - Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).
|
|
20
20
|
* @cssprop [--n-input-text-align=start] - Controls the alignment of text within the input itself.
|
|
21
|
+
* @cssprop [--n-label-color=var(--n-color-text)] - Controls the text color of the label, using our [color tokens](/tokens/#color).
|
|
21
22
|
*/
|
|
22
23
|
export default class Input extends Input_base {
|
|
23
24
|
static styles: import("lit").CSSResult[];
|
|
@@ -38,7 +39,7 @@ export default class Input extends Input_base {
|
|
|
38
39
|
* Optionally disallow certain characters from being used inside the input, using a regex pattern.
|
|
39
40
|
*/
|
|
40
41
|
disallowPattern?: string;
|
|
41
|
-
render(): import("lit").TemplateResult<1>;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
42
43
|
private handleKeydown;
|
|
43
44
|
private handleInputChange;
|
|
44
45
|
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").TemplateResult<1>;
|
|
78
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
79
79
|
private renderNavToggle;
|
|
80
80
|
private renderNavCollapse;
|
|
81
81
|
protected handleNavWidthChange(): void;
|
|
@@ -5,7 +5,7 @@ declare const Message_base: (new (...args: any[]) => import("../common/mixins/Fo
|
|
|
5
5
|
* such as notifications, tasks or conversations. Message
|
|
6
6
|
* can be placed directly inside a dropdown component.
|
|
7
7
|
*
|
|
8
|
-
* @status
|
|
8
|
+
* @status ready
|
|
9
9
|
* @category action
|
|
10
10
|
* @slot - The message content.
|
|
11
11
|
* @slot footer - Used to place content after the message. Typically used for a timestamp.
|
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").TemplateResult<1>;
|
|
68
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
21
|
}
|
|
22
22
|
declare global {
|
|
23
23
|
interface HTMLElementTagNameMap {
|
|
@@ -7,7 +7,7 @@ declare const NavToggle_base: (new (...args: any[]) => import("../common/mixins/
|
|
|
7
7
|
* This component is used internally in the Layout component, but can also be
|
|
8
8
|
* used separate to further customize the behavior.
|
|
9
9
|
*
|
|
10
|
-
* @status
|
|
10
|
+
* @status ready
|
|
11
11
|
* @category action
|
|
12
12
|
*
|
|
13
13
|
* @localization label - Accessible label for the nav toggle button.
|
|
@@ -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").TemplateResult<1>;
|
|
19
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
29
|
private handleActivate;
|
|
30
30
|
}
|
|
31
31
|
declare global {
|
|
@@ -6,7 +6,7 @@ declare const Notification_base: (new (...args: any[]) => import("../common/mixi
|
|
|
6
6
|
* Notifications provide important information that requires action or acknowledgement.
|
|
7
7
|
* A notification is displayed until the user dismisses it.
|
|
8
8
|
*
|
|
9
|
-
* @status
|
|
9
|
+
* @status ready
|
|
10
10
|
* @category feedback
|
|
11
11
|
* @slot - Default slot used for the notification text/message.
|
|
12
12
|
* @slot icon - Slot used for the notification icon.
|
|
@@ -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").TemplateResult<1>;
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
20
|
}
|
|
21
21
|
declare global {
|
|
22
22
|
interface HTMLElementTagNameMap {
|
|
@@ -2,7 +2,7 @@ import { LitElement } from "lit";
|
|
|
2
2
|
/**
|
|
3
3
|
* Notification group is used to position and style a group of notifications.
|
|
4
4
|
*
|
|
5
|
-
* @status
|
|
5
|
+
* @status ready
|
|
6
6
|
* @category feedback
|
|
7
7
|
* @slot - Default slot in which to place notifications.
|
|
8
8
|
*
|
|
@@ -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").TemplateResult<1>;
|
|
13
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
52
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
35
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
45
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
46
46
|
}
|
|
47
47
|
declare global {
|
|
48
48
|
interface HTMLElementTagNameMap {
|
package/lib/src/radio/Radio.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const Radio_base: (new (...args: any[]) => import("../common/mixins/Size
|
|
|
11
11
|
* @slot label - Use when a label requires more than plain text.
|
|
12
12
|
* @slot hint - Optional slot that holds hint text for the input.
|
|
13
13
|
* @slot error - Optional slot that holds error text for the input.
|
|
14
|
+
*
|
|
15
|
+
* @cssprop [--n-label-color=var(--n-color-text)] - Controls the text color of the label, using our [color tokens](/tokens/#color).
|
|
14
16
|
*/
|
|
15
17
|
export default class Radio extends Radio_base {
|
|
16
18
|
static styles: import("lit").CSSResult[];
|
|
@@ -29,7 +31,7 @@ export default class Radio extends Radio_base {
|
|
|
29
31
|
* Controls whether the checkbox is checked or not.
|
|
30
32
|
*/
|
|
31
33
|
checked: boolean;
|
|
32
|
-
render(): import("lit").TemplateResult<1>;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
33
35
|
protected handleCheckedChange(previousChecked: boolean): void;
|
|
34
36
|
private uncheckSiblings;
|
|
35
37
|
protected handleChange(e: Event): void;
|
package/lib/src/range/Range.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const Range_base: (new (...args: any[]) => import("../common/mixins/Form
|
|
|
4
4
|
* Range input lets user specify a numeric value using a slider which
|
|
5
5
|
* must be no less than a given value, and no more than another given value.
|
|
6
6
|
*
|
|
7
|
-
* @status
|
|
7
|
+
* @status ready
|
|
8
8
|
* @category form
|
|
9
9
|
* @slot label - Use when a label requires more than plain text.
|
|
10
10
|
* @slot hint - Optional slot that holds hint text for the input.
|
|
@@ -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 {
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const SegmentedControl_base: typeof LitElement;
|
|
3
2
|
/**
|
|
4
3
|
* Segmented control is used to pick one choice from a set of
|
|
5
4
|
* closely related choices, and immediately apply that selection.
|
|
6
5
|
*
|
|
7
|
-
* @status
|
|
6
|
+
* @status new
|
|
8
7
|
* @category action
|
|
9
8
|
* @slot - Default slot.
|
|
10
9
|
*
|
|
11
10
|
* @fires {NordEvent} change - Fired whenever a segmented control item has been checked.
|
|
12
11
|
*/
|
|
13
|
-
export default class SegmentedControl extends
|
|
12
|
+
export default class SegmentedControl extends LitElement {
|
|
14
13
|
static styles: import("lit").CSSResult[];
|
|
15
14
|
private defaultSlot;
|
|
16
15
|
/**
|
|
17
16
|
* Controls whether the segmented control expands to fill the width of its container.
|
|
18
17
|
*/
|
|
19
18
|
expand: boolean;
|
|
20
|
-
render(): import("lit").TemplateResult<1>;
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
20
|
}
|
|
22
21
|
declare global {
|
|
23
22
|
interface HTMLElementTagNameMap {
|
|
24
23
|
"nord-segmented-control": SegmentedControl;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
export {};
|
|
@@ -6,7 +6,7 @@ declare const SegmentedControlItem_base: (new (...args: any[]) => import("../com
|
|
|
6
6
|
* Segmented control items populate a segmented control with options.
|
|
7
7
|
* Every item should be placed inside a segmented control.
|
|
8
8
|
*
|
|
9
|
-
* @status
|
|
9
|
+
* @status new
|
|
10
10
|
* @category action
|
|
11
11
|
* @slot label - Use when a label requires more than plain text.
|
|
12
12
|
*
|
|
@@ -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;
|
|
@@ -14,6 +14,7 @@ declare const Select_base: (new (...args: any[]) => import("../common/mixins/Siz
|
|
|
14
14
|
* @slot icon - Used to place an icon at the start of select.
|
|
15
15
|
*
|
|
16
16
|
* @cssprop [--n-select-block-size=var(--n-space-xl)] - Controls the block size, or height, of the select using our [spacing tokens](/tokens/#space).
|
|
17
|
+
* @cssprop [--n-label-color=var(--n-color-text)] - Controls the text color of the label, using our [color tokens](/tokens/#color).
|
|
17
18
|
*/
|
|
18
19
|
export default class Select extends Select_base {
|
|
19
20
|
static styles: import("lit").CSSResult[];
|
|
@@ -24,7 +25,7 @@ export default class Select extends Select_base {
|
|
|
24
25
|
* Controls whether the select expands to fill the width of its container.
|
|
25
26
|
*/
|
|
26
27
|
expand: boolean;
|
|
27
|
-
render(): import("lit").TemplateResult<1>;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
28
29
|
private get options();
|
|
29
30
|
private getButtonText;
|
|
30
31
|
private renderOption;
|
|
@@ -4,7 +4,7 @@ import { LitElement } from "lit";
|
|
|
4
4
|
* before it appears in a view. This improves the perceived loading time
|
|
5
5
|
* for our users.
|
|
6
6
|
*
|
|
7
|
-
* @status
|
|
7
|
+
* @status ready
|
|
8
8
|
* @category feedback
|
|
9
9
|
*
|
|
10
10
|
* @cssprop [--n-skeleton-border-radius=var(--n-border-radius)] - Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).
|
|
@@ -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
|
@@ -5,7 +5,7 @@ declare const Tag_base: (new (...args: any[]) => import("../common/mixins/InputM
|
|
|
5
5
|
* Tags represent a set of keywords that help label, categorize,
|
|
6
6
|
* and organize objects. Commonly used to signify the attributes of an object.
|
|
7
7
|
*
|
|
8
|
-
* @status
|
|
8
|
+
* @status new
|
|
9
9
|
* @category text
|
|
10
10
|
* @slot - The tag content.
|
|
11
11
|
*
|
|
@@ -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;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const TagGroup_base: typeof LitElement;
|
|
3
2
|
/**
|
|
4
3
|
* Tag groups are designed to bring together selectable tags that are of a similar nature. For example categories you can filter by.
|
|
5
4
|
*
|
|
6
|
-
* @status
|
|
5
|
+
* @status new
|
|
7
6
|
* @category structure
|
|
8
7
|
* @slot - The tag group content
|
|
9
8
|
*
|
|
@@ -13,7 +12,7 @@ declare const TagGroup_base: typeof LitElement;
|
|
|
13
12
|
* @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.
|
|
14
13
|
* @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.
|
|
15
14
|
*/
|
|
16
|
-
export default class TagGroup extends
|
|
15
|
+
export default class TagGroup extends LitElement {
|
|
17
16
|
static styles: import("lit").CSSResult[];
|
|
18
17
|
private defaultSlot;
|
|
19
18
|
private dirController;
|
|
@@ -34,11 +33,10 @@ export default class TagGroup extends TagGroup_base {
|
|
|
34
33
|
* The appropriate role for the containing element.
|
|
35
34
|
*/
|
|
36
35
|
role: string;
|
|
37
|
-
render(): import("lit").TemplateResult<1>;
|
|
36
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
38
37
|
}
|
|
39
38
|
declare global {
|
|
40
39
|
interface HTMLElementTagNameMap {
|
|
41
40
|
"nord-tag-group": TagGroup;
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
|
-
export {};
|
|
@@ -17,6 +17,7 @@ declare const Textarea_base: (new (...args: any[]) => import("../common/mixins/S
|
|
|
17
17
|
* @cssprop [--n-textarea-color=var(--n-color-text)] - Controls the text color of the textarea, using our [color tokens](/tokens/#color).
|
|
18
18
|
* @cssprop [--n-textarea-border-color=var(--n-color-border-strong)] - Controls the border color of the textarea, using our [color tokens](/tokens/#color).
|
|
19
19
|
* @cssprop [--n-textarea-border-radius=var(--n-border-radius-s)] - Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).
|
|
20
|
+
* @cssprop [--n-label-color=var(--n-color-text)] - Controls the text color of the label, using our [color tokens](/tokens/#color).
|
|
20
21
|
*
|
|
21
22
|
* @localization remainingCharacters - A function which receives the number of remaining characters and returns a string to be used as the aria-live message.
|
|
22
23
|
*/
|
|
@@ -44,7 +45,7 @@ export default class Textarea extends Textarea_base {
|
|
|
44
45
|
* When combined with `maxlength`, both the count and the max length are shown.
|
|
45
46
|
*/
|
|
46
47
|
characterCounter: boolean;
|
|
47
|
-
render(): import("lit").TemplateResult<1>;
|
|
48
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
48
49
|
protected handleSelect(e: Event): void;
|
|
49
50
|
private renderCharacterCounter;
|
|
50
51
|
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").TemplateResult<1>;
|
|
29
|
+
render(): import("lit-html").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").TemplateResult<1>;
|
|
15
|
+
render(): import("lit-html").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.
|
|
@@ -10,6 +10,8 @@ declare const Toggle_base: (new (...args: any[]) => import("../common/mixins/For
|
|
|
10
10
|
* @slot label - Use when a label requires more than plain text.
|
|
11
11
|
* @slot hint - Optional slot that holds hint text for the input.
|
|
12
12
|
* @slot error - Optional slot that holds error text for the input.
|
|
13
|
+
*
|
|
14
|
+
* @cssprop [--n-label-color=var(--n-color-text)] - Controls the text color of the label, using our [color tokens](/tokens/#color).
|
|
13
15
|
*/
|
|
14
16
|
export default class Toggle extends Toggle_base {
|
|
15
17
|
static styles: import("lit").CSSResult[];
|
|
@@ -27,7 +29,7 @@ export default class Toggle extends Toggle_base {
|
|
|
27
29
|
* The size of the toggle switch.
|
|
28
30
|
*/
|
|
29
31
|
size: "s" | "m" | "l";
|
|
30
|
-
render(): import("lit").TemplateResult<1>;
|
|
32
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
31
33
|
protected handleChange(e: Event): void;
|
|
32
34
|
}
|
|
33
35
|
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
|
/**
|
|
@@ -2,13 +2,14 @@ import { LitElement } from "lit";
|
|
|
2
2
|
/**
|
|
3
3
|
* Top bar is a header component that is always visible at the top of the interface. Top bar allows functionality such as search and contextual menus to be placed at the top of the interface.
|
|
4
4
|
*
|
|
5
|
+
* @status ready
|
|
5
6
|
* @category structure
|
|
6
7
|
* @slot - Used for the main content of the top bar. We recommend placing your application’s global search functionality into this slot.
|
|
7
8
|
* @slot end - Optional slot for menus, buttons, toggles, etc.
|
|
8
9
|
*/
|
|
9
10
|
export default class TopBar extends LitElement {
|
|
10
11
|
static styles: import("lit").CSSResult[];
|
|
11
|
-
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
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 {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-BFYKuryf.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n"],"names":["r","t","state","attribute"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,EAAGC,WAAU,GAAI","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{R as t}from"./custom-element-CDWT-yC_.js";import{e,i as s,t as r}from"./directive-DQ0jBES2.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const n="important",o=" !"+n,i=e(class extends s{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||"style"!==t.name||t.strings?.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,s)=>{const r=t[s];return null==r?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(e,[s]){const{style:r}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(s)),this.render(s);for(const t of this.ft)null==s[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in s){const e=s[t];if(null!=e){this.ft.add(t);const s="string"==typeof e&&e.endsWith(o);t.includes("-")||s?r.setProperty(t,s?e.slice(0,-11):e,s?n:""):r[t]=e}}return t}});export{i as s};
|
|
7
|
+
//# sourceMappingURL=style-map-VR90KNpY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-map-VR90KNpY.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as R}from\"../lit-html.js\";import{directive as e,Directive as i,PartType as t}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const ee=\"important\",ie=\" !\"+ee,se=e(class extends i{constructor(e){if(super(e),e.type!==t.ATTRIBUTE||\"style\"!==e.name||e.strings?.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(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes(\"-\")?r.removeProperty(t):r[t]=null);for(const t in e){const s=e[t];if(null!=s){this.ft.add(t);const e=\"string\"==typeof s&&s.endsWith(ie);t.includes(\"-\")||e?r.setProperty(t,e?s.slice(0,-11):s,e?ee:\"\"):r[t]=s}}return R}});export{se as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["ee","ie","se","e","i","constructor","super","type","t","ATTRIBUTE","name","strings","length","Error","render","Object","keys","reduce","r","s","includes","replace","toLowerCase","update","style","element","this","ft","Set","delete","removeProperty","add","endsWith","setProperty","slice","R"],"mappings":";;;;;GAKQ,MAACA,EAAG,YAAYC,EAAG,KAAKD,EAAGE,EAAGC,EAAE,cAAcC,EAAE,WAAAC,CAAYF,GAAG,GAAGG,MAAMH,GAAGA,EAAEI,OAAOC,EAAEC,WAAW,UAAUN,EAAEO,MAAMP,EAAEQ,SAASC,OAAO,EAAE,MAAMC,MAAM,6GAA6G,CAAC,MAAAC,CAAON,GAAG,OAAOO,OAAOC,KAAKR,GAAGS,QAAQ,CAACd,EAAEe,KAAK,MAAMC,EAAEX,EAAEU,GAAG,OAAO,MAAMC,EAAEhB,EAAEA,EAAE,GAAGe,EAAEA,EAAEE,SAAS,KAAKF,EAAEA,EAAEG,QAAQ,oCAAoC,OAAOC,iBAAiBH,IAAK,GAAE,GAAG,CAAC,MAAAI,CAAOf,GAAGL,IAAI,MAAMqB,MAAMN,GAAGV,EAAEiB,QAAQ,QAAG,IAASC,KAAKC,GAAG,OAAOD,KAAKC,GAAG,IAAIC,IAAIb,OAAOC,KAAKb,IAAIuB,KAAKZ,OAAOX,GAAG,IAAI,MAAMK,KAAKkB,KAAKC,GAAG,MAAMxB,EAAEK,KAAKkB,KAAKC,GAAGE,OAAOrB,GAAGA,EAAEY,SAAS,KAAKF,EAAEY,eAAetB,GAAGU,EAAEV,GAAG,MAAM,IAAI,MAAMA,KAAKL,EAAE,CAAC,MAAMgB,EAAEhB,EAAEK,GAAG,GAAG,MAAMW,EAAE,CAACO,KAAKC,GAAGI,IAAIvB,GAAG,MAAML,EAAE,iBAAiBgB,GAAGA,EAAEa,SAAS/B,GAAIO,EAAEY,SAAS,MAAMjB,EAAEe,EAAEe,YAAYzB,EAAEL,EAAEgB,EAAEe,MAAM,GAAG,IAAIf,EAAEhB,EAAEH,EAAG,IAAIkB,EAAEV,GAAGW,CAAC,CAAC,CAAC,OAAOgB,CAAC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type UsageExample = {
|
|
2
|
+
name: string;
|
|
3
|
+
html: string;
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
type GenerateTestOptions = {
|
|
7
|
+
padding?: boolean;
|
|
8
|
+
waitUntil?: (element: HTMLDivElement, name: string) => void | Promise<any>;
|
|
9
|
+
selector?: (element: HTMLDivElement, name: string) => Element | Promise<Element>;
|
|
10
|
+
};
|
|
11
|
+
export declare function getExamples(): Promise<UsageExample[]>;
|
|
12
|
+
export declare function generateTestsFromExamples(examples: UsageExample[], { waitUntil, selector, padding }?: GenerateTestOptions): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Position = [number, number];
|
|
2
|
+
type MouseTarget = Position | Element;
|
|
3
|
+
export declare function click(command: MouseTarget): Promise<string[]>;
|
|
4
|
+
export declare function hover(command: MouseTarget): Promise<string[]>;
|
|
5
|
+
export declare function reset(): Promise<string[]>;
|
|
6
|
+
export declare function drag(start: MouseTarget, end: Position): Promise<string[]>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type SpySubject = (...args: any[]) => any;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a spy for use in tests.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createSpy<T extends SpySubject>(fn?: T): {
|
|
6
|
+
(...args: Parameters<T>): ReturnType<T>;
|
|
7
|
+
readonly calls: Parameters<T>[];
|
|
8
|
+
readonly called: boolean;
|
|
9
|
+
readonly count: number;
|
|
10
|
+
readonly first: Parameters<T>;
|
|
11
|
+
readonly last: Parameters<T>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var t=["Shift","Meta","Alt","Control"],e="object"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function n(t,e){return"function"==typeof t.getModifierState&&t.getModifierState(e)}function r(t){return t.trim().split(" ").map((function(t){var n=t.split(/\b\+/),r=n.pop();return[n=n.map((function(t){return"$mod"===t?e:t})),r]}))}function o(e,o){var i;void 0===o&&(o={});var u=null!=(i=o.timeout)?i:1e3,a=Object.keys(e).map((function(t){return[r(t),e[t]]})),c=new Map,f=null;return function(e){e instanceof KeyboardEvent&&(a.forEach((function(r){var o=r[0],i=r[1],u=c.get(o)||o;!function(e,r){return!(r[1].toUpperCase()!==e.key.toUpperCase()&&r[1]!==e.code||r[0].find((function(t){return!n(e,t)}))||t.find((function(t){return!r[0].includes(t)&&r[1]!==t&&n(e,t)})))}(e,u[0])?n(e,e.key)||c.delete(o):u.length>1?c.set(o,u.slice(1)):(c.delete(o),i(e))})),f&&clearTimeout(f),f=setTimeout(c.clear.bind(c),u))}}function i(t,e,n){var r;void 0===n&&(n={});var i=null!=(r=n.event)?r:"keydown",u=o(e,n);return t.addEventListener(i,u),function(){t.removeEventListener(i,u)}}export{i,o};
|
|
2
|
-
//# sourceMappingURL=tinykeys.module-
|
|
2
|
+
//# sourceMappingURL=tinykeys.module-_6MZt7MP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tinykeys.module-
|
|
1
|
+
{"version":3,"file":"tinykeys.module-_6MZt7MP.js","sources":["../node_modules/tinykeys/dist/tinykeys.module.js"],"sourcesContent":["var t=[\"Shift\",\"Meta\",\"Alt\",\"Control\"],e=\"object\"==typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?\"Meta\":\"Control\";function n(t,e){return\"function\"==typeof t.getModifierState&&t.getModifierState(e)}function r(t){return t.trim().split(\" \").map(function(t){var n=t.split(/\\b\\+/),r=n.pop();return[n=n.map(function(t){return\"$mod\"===t?e:t}),r]})}function o(e,o){var i;void 0===o&&(o={});var u=null!=(i=o.timeout)?i:1e3,a=Object.keys(e).map(function(t){return[r(t),e[t]]}),f=new Map,c=null;return function(e){e instanceof KeyboardEvent&&(a.forEach(function(r){var o=r[0],i=r[1],u=f.get(o)||o;!function(e,r){return!(r[1].toUpperCase()!==e.key.toUpperCase()&&r[1]!==e.code||r[0].find(function(t){return!n(e,t)})||t.find(function(t){return!r[0].includes(t)&&r[1]!==t&&n(e,t)}))}(e,u[0])?n(e,e.key)||f.delete(o):u.length>1?f.set(o,u.slice(1)):(f.delete(o),i(e))}),c&&clearTimeout(c),c=setTimeout(f.clear.bind(f),u))}}function i(t,e,n){var r;void 0===n&&(n={});var i=null!=(r=n.event)?r:\"keydown\",u=o(e,n);return t.addEventListener(i,u),function(){t.removeEventListener(i,u)}}export default i;export{o as createKeybindingsHandler,r as parseKeybinding};\n//# sourceMappingURL=tinykeys.module.js.map\n"],"names":["t","e","navigator","test","platform","n","getModifierState","r","trim","split","map","pop","o","i","u","timeout","a","Object","keys","f","Map","c","KeyboardEvent","forEach","get","toUpperCase","key","code","find","includes","delete","length","set","slice","clearTimeout","setTimeout","clear","bind","event","addEventListener","removeEventListener"],"mappings":"AAAA,IAAIA,EAAE,CAAC,QAAQ,OAAO,MAAM,WAAWC,EAAE,iBAAiBC,WAAW,uBAAuBC,KAAKD,UAAUE,UAAU,OAAO,UAAU,SAASC,EAAEL,EAAEC,GAAG,MAAM,mBAAmBD,EAAEM,kBAAkBN,EAAEM,iBAAiBL,EAAE,CAAC,SAASM,EAAEP,GAAG,OAAOA,EAAEQ,OAAOC,MAAM,KAAKC,KAAI,SAASV,GAAG,IAAIK,EAAEL,EAAES,MAAM,QAAQF,EAAEF,EAAEM,MAAM,MAAM,CAACN,EAAEA,EAAEK,KAAI,SAASV,GAAG,MAAM,SAASA,EAAEC,EAAED,CAAC,IAAGO,EAAE,GAAE,CAAC,SAASK,EAAEX,EAAEW,GAAG,IAAIC,OAAE,IAASD,IAAIA,EAAE,CAAA,GAAI,IAAIE,EAAE,OAAOD,EAAED,EAAEG,SAASF,EAAE,IAAIG,EAAEC,OAAOC,KAAKjB,GAAGS,KAAI,SAASV,GAAG,MAAM,CAACO,EAAEP,GAAGC,EAAED,GAAG,IAAGmB,EAAE,IAAIC,IAAIC,EAAE,KAAK,OAAO,SAASpB,GAAGA,aAAaqB,gBAAgBN,EAAEO,SAAQ,SAAShB,GAAG,IAAIK,EAAEL,EAAE,GAAGM,EAAEN,EAAE,GAAGO,EAAEK,EAAEK,IAAIZ,IAAIA,GAAG,SAASX,EAAEM,GAAG,QAAQA,EAAE,GAAGkB,gBAAgBxB,EAAEyB,IAAID,eAAelB,EAAE,KAAKN,EAAE0B,MAAMpB,EAAE,GAAGqB,MAAK,SAAS5B,GAAG,OAAOK,EAAEJ,EAAED,EAAE,KAAIA,EAAE4B,MAAK,SAAS5B,GAAG,OAAOO,EAAE,GAAGsB,SAAS7B,IAAIO,EAAE,KAAKP,GAAGK,EAAEJ,EAAED,EAAE,IAAG,CAArL,CAAuLC,EAAEa,EAAE,IAAIT,EAAEJ,EAAEA,EAAEyB,MAAMP,EAAEW,OAAOlB,GAAGE,EAAEiB,OAAO,EAAEZ,EAAEa,IAAIpB,EAAEE,EAAEmB,MAAM,KAAKd,EAAEW,OAAOlB,GAAGC,EAAEZ,GAAG,IAAGoB,GAAGa,aAAab,GAAGA,EAAEc,WAAWhB,EAAEiB,MAAMC,KAAKlB,GAAGL,GAAG,CAAC,CAAC,SAASD,EAAEb,EAAEC,EAAEI,GAAG,IAAIE,OAAE,IAASF,IAAIA,EAAE,CAAA,GAAI,IAAIQ,EAAE,OAAON,EAAEF,EAAEiC,OAAO/B,EAAE,UAAUO,EAAEF,EAAEX,EAAEI,GAAG,OAAOL,EAAEuC,iBAAiB1B,EAAEC,GAAG,WAAWd,EAAEwC,oBAAoB3B,EAAEC,EAAE,CAAC","x_google_ignoreList":[0]}
|
package/lib/translation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"./en-us.js";
|
|
1
|
+
import t from"./en-us.js";import"./localization.js";import"./localization2.js";import"./localization3.js";import"./localization4.js";import"./localization5.js";import"./localization6.js";import"./localization7.js";import"./localization8.js";import"./localization9.js";const o=new Set,i=new Map;function n(){for(const t of o)t()}if("undefined"!=typeof MutationObserver){new MutationObserver(n).observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]})}function e(){i.clear()}function a(...t){t.forEach((t=>{const o=t.$lang.toLowerCase();i.set(o,t)})),n()}function r(t){return o.add(t),()=>o.delete(t)}function l(t){return i.has(t)}function s(o){const n=o.toLowerCase(),[e]=n.split("-");return i.get(n)||i.get(e)||t}export{e as clearTranslations,t as fallback,l as isTranslationRegistered,a as registerTranslation,s as resolveTranslation,r as subscribe};
|
|
2
2
|
//# sourceMappingURL=translation.js.map
|
package/lib/translation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sources":["../src/localization/translation.ts"],"sourcesContent":["import en from \"./en-us.js\"\n\n// gets list of properties beginning prefix\ntype PickStartsWith<T, Prefix extends string> = T extends `${Prefix}${string}` ? T : never\n\nexport type Translation = typeof en\nexport type WellKnownKeys = PickStartsWith<keyof Translation, \"$\">\n\nconst subscribers = new Set<() => void>()\nconst translations = new Map<string, Translation>()\n\nfunction update() {\n for (const subscriber of subscribers) {\n subscriber()\n }\n}\n\n// observe changes to the document's lang\
|
|
1
|
+
{"version":3,"file":"translation.js","sources":["../src/localization/translation.ts"],"sourcesContent":["import en from \"./en-us.js\"\n\n// gets list of properties beginning prefix\ntype PickStartsWith<T, Prefix extends string> = T extends `${Prefix}${string}` ? T : never\n\nexport type Translation = typeof en\nexport type WellKnownKeys = PickStartsWith<keyof Translation, \"$\">\n\nconst subscribers = new Set<() => void>()\nconst translations = new Map<string, Translation>()\n\nfunction update() {\n for (const subscriber of subscribers) {\n subscriber()\n }\n}\n\n// observe changes to the document's lang\nif (typeof MutationObserver !== \"undefined\") {\n const observer = new MutationObserver(update)\n\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"lang\"],\n })\n}\n\n/**\n * Removes all registered translations\n */\nexport function clearTranslations() {\n translations.clear()\n}\n\n/**\n * Registers one or more translations\n */\nexport function registerTranslation(...translation: Translation[]) {\n translation.forEach(t => {\n const lang = t.$lang.toLowerCase()\n translations.set(lang, t)\n })\n\n update()\n}\n\n/**\n * subscribe to language changes\n * @param onChange callback for when either `lang` attr changes, or a new language is registered.\n * @returns cleanup function\n */\nexport function subscribe(onChange: () => void): () => void {\n subscribers.add(onChange)\n return () => subscribers.delete(onChange)\n}\n\n/**\n * Check whether there is a translation registered for the given lang\n * @param lang the lang code e.g. \"en\" or \"en-GB\"\n */\nexport function isTranslationRegistered(lang: string) {\n return translations.has(lang)\n}\n\n/**\n * Picks the most appropriate translation for the given language, from most specific to least specific.\n * First tries lang + region, then lang only, then fallback.\n */\nexport function resolveTranslation(langCode: string) {\n const lang = langCode.toLowerCase()\n const [langOnly] = lang.split(\"-\")\n\n return translations.get(lang) || translations.get(langOnly) || en\n}\n\nexport { en as fallback }\n"],"names":["subscribers","Set","translations","Map","update","subscriber","MutationObserver","observe","document","documentElement","attributes","attributeFilter","clearTranslations","clear","registerTranslation","translation","forEach","t","lang","$lang","toLowerCase","set","subscribe","onChange","add","delete","isTranslationRegistered","has","resolveTranslation","langCode","langOnly","split","get","en"],"mappings":"4QAQA,MAAMA,EAAc,IAAIC,IAClBC,EAAe,IAAIC,IAEzB,SAASC,IACP,IAAK,MAAMC,KAAcL,EACvBK,GAEJ,CAGA,GAAgC,oBAArBC,iBAAkC,CAC1B,IAAIA,iBAAiBF,GAE7BG,QAAQC,SAASC,gBAAiB,CACzCC,YAAY,EACZC,gBAAiB,CAAC,SAEtB,UAKgBC,IACdV,EAAaW,OACf,CAKgB,SAAAC,KAAuBC,GACrCA,EAAYC,SAAQC,IAClB,MAAMC,EAAOD,EAAEE,MAAMC,cACrBlB,EAAamB,IAAIH,EAAMD,EAAE,IAG3Bb,GACF,CAOM,SAAUkB,EAAUC,GAExB,OADAvB,EAAYwB,IAAID,GACT,IAAMvB,EAAYyB,OAAOF,EAClC,CAMM,SAAUG,EAAwBR,GACtC,OAAOhB,EAAayB,IAAIT,EAC1B,CAMM,SAAUU,EAAmBC,GACjC,MAAMX,EAAOW,EAAST,eACfU,GAAYZ,EAAKa,MAAM,KAE9B,OAAO7B,EAAa8B,IAAId,IAAShB,EAAa8B,IAAIF,IAAaG,CACjE"}
|