@nordhealth/components 4.26.1 → 5.0.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 +54613 -21826
- package/lib/Accordion.js +2 -0
- package/lib/Accordion.js.map +1 -0
- package/lib/AccordionHeader.js +2 -0
- package/lib/AccordionHeader.js.map +1 -0
- package/lib/AccordionItem.js +2 -0
- package/lib/AccordionItem.js.map +1 -0
- package/lib/AccordionPanel.js +2 -0
- package/lib/AccordionPanel.js.map +1 -0
- package/lib/AccordionTrigger.js +2 -0
- package/lib/AccordionTrigger.js.map +1 -0
- package/lib/ActiveDescendantController-BnMqM79O.js +2 -0
- package/lib/ActiveDescendantController-BnMqM79O.js.map +1 -0
- package/lib/Aside.js +5 -7
- package/lib/Aside.js.map +1 -1
- package/lib/AsideDrawer.js +7 -11
- package/lib/AsideDrawer.js.map +1 -1
- package/lib/AsideTrigger.js +3 -4
- package/lib/AsideTrigger.js.map +1 -1
- package/lib/Autocomplete.js +2 -0
- package/lib/Autocomplete.js.map +1 -0
- 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 +7 -12
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/Calendar-C1SxrlzN.js +2 -0
- package/lib/Calendar-C1SxrlzN.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/CollapseController-BtKNFNyJ.js +2 -0
- package/lib/CollapseController-BtKNFNyJ.js.map +1 -0
- package/lib/Collapsible.js +2 -0
- package/lib/Collapsible.js.map +1 -0
- package/lib/CollapsiblePanel.js +2 -0
- package/lib/CollapsiblePanel.js.map +1 -0
- package/lib/CollapsibleTrigger.js +2 -0
- package/lib/CollapsibleTrigger.js.map +1 -0
- package/lib/Combobox-By4h1Sp-.js +2 -0
- package/lib/Combobox-By4h1Sp-.js.map +1 -0
- package/lib/Combobox.js +2 -0
- package/lib/Combobox.js.map +1 -0
- package/lib/ComboboxBase.js +2 -0
- package/lib/ComboboxBase.js.map +1 -0
- package/lib/ComboboxEvents.js +2 -0
- package/lib/ComboboxEvents.js.map +1 -0
- package/lib/ComboboxGroup.js +2 -0
- package/lib/ComboboxGroup.js.map +1 -0
- package/lib/ComboboxOption.js +2 -0
- package/lib/ComboboxOption.js.map +1 -0
- 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-BJ5O5n8k.js +2 -0
- package/lib/Component-BJ5O5n8k.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateRangeChangeEvent.js +2 -0
- package/lib/DateRangeChangeEvent.js.map +1 -0
- package/lib/DateRangePicker.js +2 -0
- package/lib/DateRangePicker.js.map +1 -0
- package/lib/DateRangeSelectEvent.js +2 -0
- package/lib/DateRangeSelectEvent.js.map +1 -0
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-4qug5Rky.js +2 -0
- package/lib/DraftComponentMixin-4qug5Rky.js.map +1 -0
- 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-BYbOLth6.js +2 -0
- package/lib/DropdownItem-BYbOLth6.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/DropdownSubmenu.js +1 -1
- package/lib/DropdownSubmenu.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/Field.js +2 -0
- package/lib/Field.js.map +1 -0
- package/lib/FieldContent.js +2 -0
- package/lib/FieldContent.js.map +1 -0
- package/lib/FieldControlMixin-BXNZJXu9.js +2 -0
- package/lib/FieldControlMixin-BXNZJXu9.js.map +1 -0
- package/lib/FieldDescription.js +2 -0
- package/lib/FieldDescription.js.map +1 -0
- package/lib/FieldError.js +2 -0
- package/lib/FieldError.js.map +1 -0
- package/lib/FieldGroup.js +2 -0
- package/lib/FieldGroup.js.map +1 -0
- package/lib/FieldLabel.js +2 -0
- package/lib/FieldLabel.js.map +1 -0
- package/lib/FieldLegend.js +2 -0
- package/lib/FieldLegend.js.map +1 -0
- package/lib/FieldSeparator.js +2 -0
- package/lib/FieldSeparator.js.map +1 -0
- package/lib/FieldSet.js +2 -0
- package/lib/FieldSet.js.map +1 -0
- package/lib/FieldTitle.js +2 -0
- package/lib/FieldTitle.js.map +1 -0
- package/lib/Fieldset2.js +2 -0
- package/lib/Fieldset2.js.map +1 -0
- package/lib/FilterAddButton.js +2 -0
- package/lib/FilterAddButton.js.map +1 -0
- package/lib/FilterAddButtonEvents.js +2 -0
- package/lib/FilterAddButtonEvents.js.map +1 -0
- package/lib/FilterBar.js +2 -0
- package/lib/FilterBar.js.map +1 -0
- package/lib/FilterDateRange.js +2 -0
- package/lib/FilterDateRange.js.map +1 -0
- package/lib/FilterDateRangeEvents.js +2 -0
- package/lib/FilterDateRangeEvents.js.map +1 -0
- package/lib/FilterDropdown.js +2 -0
- package/lib/FilterDropdown.js.map +1 -0
- package/lib/FilterDropdownEvents.js +2 -0
- package/lib/FilterDropdownEvents.js.map +1 -0
- package/lib/FilterField.js +2 -0
- package/lib/FilterField.js.map +1 -0
- package/lib/FilterFieldEvents.js +2 -0
- package/lib/FilterFieldEvents.js.map +1 -0
- package/lib/FilterInput.js +2 -0
- package/lib/FilterInput.js.map +1 -0
- package/lib/FilterResetButton.js +2 -0
- package/lib/FilterResetButton.js.map +1 -0
- package/lib/FocusableWhenDisabledController-C_Mn1mfN.js +2 -0
- package/lib/FocusableWhenDisabledController-C_Mn1mfN.js.map +1 -0
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/FormAssociatedMixin-D9aPREgv.js +2 -0
- package/lib/FormAssociatedMixin-D9aPREgv.js.map +1 -0
- package/lib/FormField-CMgEFZCK.js +2 -0
- package/lib/FormField-CMgEFZCK.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/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/Item.js +2 -0
- package/lib/Item.js.map +1 -0
- package/lib/ItemActions.js +2 -0
- package/lib/ItemActions.js.map +1 -0
- package/lib/ItemContent.js +2 -0
- package/lib/ItemContent.js.map +1 -0
- package/lib/ItemDescription.js +2 -0
- package/lib/ItemDescription.js.map +1 -0
- package/lib/ItemFooter.js +2 -0
- package/lib/ItemFooter.js.map +1 -0
- package/lib/ItemGroup.js +2 -0
- package/lib/ItemGroup.js.map +1 -0
- package/lib/ItemHeader.js +2 -0
- package/lib/ItemHeader.js.map +1 -0
- package/lib/ItemMedia.js +2 -0
- package/lib/ItemMedia.js.map +1 -0
- package/lib/ItemSeparator.js +2 -0
- package/lib/ItemSeparator.js.map +1 -0
- package/lib/ItemTitle.js +2 -0
- package/lib/ItemTitle.js.map +1 -0
- package/lib/Kbd.js +2 -0
- package/lib/Kbd.js.map +1 -0
- package/lib/KbdGroup.js +2 -0
- package/lib/KbdGroup.js.map +1 -0
- package/lib/KeyboardController.js +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -3
- package/lib/Layout.js.map +1 -1
- package/lib/LocalizeController.js +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Meter.js +2 -0
- package/lib/Meter.js.map +1 -0
- 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-BY83xpx0.js +2 -0
- package/lib/NavToggle-BY83xpx0.js.map +1 -0
- 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/NumberField.js +2 -0
- package/lib/NumberField.js.map +1 -0
- package/lib/NumberFieldEvents.js +2 -0
- package/lib/NumberFieldEvents.js.map +1 -0
- package/lib/OpenStateController-CCnZ7up6.js +2 -0
- package/lib/OpenStateController-CCnZ7up6.js.map +1 -0
- package/lib/OtpField.js +2 -0
- package/lib/OtpField.js.map +1 -0
- package/lib/OtpFieldEvents.js +2 -0
- package/lib/OtpFieldEvents.js.map +1 -0
- package/lib/Pagination.js +2 -0
- package/lib/Pagination.js.map +1 -0
- package/lib/PaginationContent.js +2 -0
- package/lib/PaginationContent.js.map +1 -0
- package/lib/PaginationEllipsis.js +2 -0
- package/lib/PaginationEllipsis.js.map +1 -0
- package/lib/PaginationItem.js +2 -0
- package/lib/PaginationItem.js.map +1 -0
- package/lib/PaginationLink.js +2 -0
- package/lib/PaginationLink.js.map +1 -0
- package/lib/PaginationNext.js +2 -0
- package/lib/PaginationNext.js.map +1 -0
- package/lib/PaginationPrevious.js +2 -0
- package/lib/PaginationPrevious.js.map +1 -0
- package/lib/Popout-DpN7PP9h.js +2 -0
- package/lib/Popout-DpN7PP9h.js.map +1 -0
- package/lib/Popout.js +1 -1
- package/lib/Progress.js +1 -1
- package/lib/Progress.js.map +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +2 -2
- 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/ReadonlyMixin-BdJPGtQ3.js +2 -0
- package/lib/ReadonlyMixin-BdJPGtQ3.js.map +1 -0
- package/lib/ResizeController-14PUwRQy.js +2 -0
- package/lib/ResizeController-14PUwRQy.js.map +1 -0
- package/lib/ScrollArea.js +2 -0
- package/lib/ScrollArea.js.map +1 -0
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +23 -40
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.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/StateAttributesController-BIh96sXZ.js +2 -0
- package/lib/StateAttributesController-BIh96sXZ.js.map +1 -0
- package/lib/Sticky-CZImMrGj.js +2 -0
- package/lib/Sticky-CZImMrGj.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-CSKvieoG.js +2 -0
- package/lib/TextField-CSKvieoG.js.map +1 -0
- package/lib/TextSelectableMixin-Cfv__lHS.js.map +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/TimePicker.js +2 -0
- package/lib/TimePicker.js.map +1 -0
- 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/Truncate.js +1 -1
- package/lib/Truncate.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +91 -91
- package/lib/bundle.js.map +1 -1
- package/lib/combobox-context.js +2 -0
- package/lib/combobox-context.js.map +1 -0
- package/lib/context-consumer-BJVUulGf.js +7 -0
- package/lib/context-consumer-BJVUulGf.js.map +1 -0
- package/lib/context-provider-D8lrPLVi.js +12 -0
- package/lib/context-provider-D8lrPLVi.js.map +1 -0
- package/lib/context-request-event-CCRlXoeR.js +7 -0
- package/lib/context-request-event-CCRlXoeR.js.map +1 -0
- package/lib/create-context-CJ69ntlY.js +7 -0
- package/lib/create-context-CJ69ntlY.js.map +1 -0
- package/lib/currency.js +2 -0
- package/lib/currency.js.map +1 -0
- package/lib/date-adapter.js +1 -1
- package/lib/dates-C-ZvzXaC.js +2 -0
- package/lib/dates-C-ZvzXaC.js.map +1 -0
- package/lib/dates.js +2 -0
- package/lib/dates.js.map +1 -0
- package/lib/dismiss.js +2 -0
- package/lib/dismiss.js.map +1 -0
- package/lib/en-us.js +1 -1
- package/lib/en-us.js.map +1 -1
- package/lib/fi-fi.js +1 -1
- package/lib/fi-fi.js.map +1 -1
- package/lib/field-context.js +2 -0
- package/lib/field-context.js.map +1 -0
- package/lib/filter-chip-C97zd4PT.js +2 -0
- package/lib/filter-chip-C97zd4PT.js.map +1 -0
- package/lib/format.js +2 -0
- package/lib/format.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/interface-add-small-B-hv2v9J.js +2 -0
- package/lib/interface-add-small-B-hv2v9J.js.map +1 -0
- package/lib/interface-calendar-Cw2bJfbS.js +2 -0
- package/lib/interface-calendar-Cw2bJfbS.js.map +1 -0
- package/lib/interface-close-BvKnv9eh.js +2 -0
- package/lib/interface-close-BvKnv9eh.js.map +1 -0
- package/lib/interface-dropdown-small-CYvgxudU.js +2 -0
- package/lib/interface-dropdown-small-CYvgxudU.js.map +1 -0
- package/lib/interface-filter-CCsx9-u6.js +2 -0
- package/lib/interface-filter-CCsx9-u6.js.map +1 -0
- package/lib/interface-remove-small-DUaWSs90.js +2 -0
- package/lib/interface-remove-small-DUaWSs90.js.map +1 -0
- package/lib/light-dom-styles-DXsbiKU9.js +2 -0
- package/lib/light-dom-styles-DXsbiKU9.js.map +1 -0
- package/lib/localization.js +1 -1
- package/lib/localization.js.map +1 -1
- package/lib/localization10.js +2 -0
- package/lib/localization10.js.map +1 -0
- package/lib/localization11.js +2 -0
- package/lib/localization11.js.map +1 -0
- package/lib/localization12.js +2 -0
- package/lib/localization12.js.map +1 -0
- package/lib/localization13.js +2 -0
- package/lib/localization13.js.map +1 -0
- package/lib/localization14.js +2 -0
- package/lib/localization14.js.map +1 -0
- package/lib/localization15.js +2 -0
- package/lib/localization15.js.map +1 -0
- package/lib/localization16.js +2 -0
- package/lib/localization16.js.map +1 -0
- package/lib/localization17.js +2 -0
- package/lib/localization17.js.map +1 -0
- package/lib/localization18.js +2 -0
- package/lib/localization18.js.map +1 -0
- package/lib/localization19.js +2 -0
- package/lib/localization19.js.map +1 -0
- package/lib/localization2.js +1 -1
- package/lib/localization2.js.map +1 -1
- package/lib/localization20.js +2 -0
- package/lib/localization20.js.map +1 -0
- package/lib/localization21.js +2 -0
- package/lib/localization21.js.map +1 -0
- package/lib/localization22.js +2 -0
- package/lib/localization22.js.map +1 -0
- package/lib/localization3.js +1 -1
- package/lib/localization3.js.map +1 -1
- package/lib/localization4.js +1 -1
- package/lib/localization4.js.map +1 -1
- package/lib/localization5.js +1 -1
- package/lib/localization5.js.map +1 -1
- package/lib/localization6.js +1 -1
- package/lib/localization6.js.map +1 -1
- package/lib/localization7.js +1 -1
- package/lib/localization7.js.map +1 -1
- package/lib/localization8.js +1 -1
- package/lib/localization8.js.map +1 -1
- package/lib/localization9.js +1 -1
- package/lib/localization9.js.map +1 -1
- package/lib/navigation-search-CBbIGzo2.js +2 -0
- package/lib/navigation-search-CBbIGzo2.js.map +1 -0
- package/lib/paginate.js +2 -0
- package/lib/paginate.js.map +1 -0
- package/lib/parse.js +2 -0
- package/lib/parse.js.map +1 -0
- package/lib/primitives-Dj0vyf1-.js +2 -0
- package/lib/primitives-Dj0vyf1-.js.map +1 -0
- package/lib/react.d.ts +505 -0
- package/lib/src/accordion/Accordion.d.ts +121 -0
- package/lib/src/accordion/AccordionHeader.d.ts +28 -0
- package/lib/src/accordion/AccordionItem.d.ts +68 -0
- package/lib/src/accordion/AccordionPanel.d.ts +35 -0
- package/lib/src/accordion/AccordionTrigger.d.ts +47 -0
- package/lib/src/aside-drawer/AsideDrawer.d.ts +2 -0
- package/lib/src/aside-trigger/AsideTrigger.d.ts +2 -0
- package/lib/src/autocomplete/Autocomplete.d.ts +190 -0
- package/lib/src/autocomplete/localization.d.ts +5 -0
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +3 -0
- package/lib/src/button-group/ButtonGroup.d.ts +2 -1
- package/lib/src/calendar/Calendar.d.ts +44 -0
- package/lib/src/calendar/DateRangeSelectEvent.d.ts +16 -0
- package/lib/src/collapsible/Collapsible.d.ts +69 -0
- package/lib/src/collapsible/CollapsiblePanel.d.ts +35 -0
- package/lib/src/collapsible/CollapsibleTrigger.d.ts +38 -0
- package/lib/src/combobox/Combobox.d.ts +131 -0
- package/lib/src/combobox/ComboboxBase.d.ts +421 -0
- package/lib/src/combobox/ComboboxEvents.d.ts +25 -0
- package/lib/src/combobox/ComboboxGroup.d.ts +34 -0
- package/lib/src/combobox/ComboboxOption.d.ts +47 -0
- package/lib/src/combobox/combobox-context.d.ts +18 -0
- package/lib/src/combobox/localization.d.ts +6 -0
- package/lib/src/command-menu/ICommandMenuAction.d.ts +11 -0
- package/lib/src/common/controllers/ActiveDescendantController.d.ts +45 -0
- package/lib/src/common/controllers/CollapseController.d.ts +50 -0
- package/lib/src/common/controllers/FocusableWhenDisabledController.d.ts +29 -0
- package/lib/src/common/controllers/OpenStateController.d.ts +58 -0
- package/lib/src/common/controllers/RovingFocusController.d.ts +40 -0
- package/lib/src/common/controllers/StateAttributesController.d.ts +47 -0
- package/lib/src/common/controllers/TransitionStatusController.d.ts +48 -0
- package/lib/src/common/dates.d.ts +13 -0
- package/lib/src/common/light-dom-styles.d.ts +17 -0
- package/lib/src/common/mixins/FieldControlMixin.d.ts +60 -0
- package/lib/src/common/mixins/FloatingComponentMixin.d.ts +2 -0
- package/lib/src/common/mixins/FormAssociatedMixin.d.ts +8 -25
- package/lib/src/common/mixins/TextSelectableMixin.d.ts +1 -0
- package/lib/src/common/prefers-reduced-motion.d.ts +7 -0
- package/lib/src/date-picker/DatePicker.d.ts +2 -0
- package/lib/src/date-range-picker/DateRangeChangeEvent.d.ts +27 -0
- package/lib/src/date-range-picker/DateRangePicker.d.ts +307 -0
- package/lib/src/date-range-picker/localization.d.ts +42 -0
- package/lib/src/drawer/Drawer.d.ts +7 -0
- package/lib/src/dropdown/Dropdown.d.ts +1 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +3 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +3 -1
- package/lib/src/dropdown-submenu/DropdownSubmenu.d.ts +2 -0
- package/lib/src/field/Field.d.ts +102 -0
- package/lib/src/field/FieldContent.d.ts +22 -0
- package/lib/src/field/FieldDescription.d.ts +21 -0
- package/lib/src/field/FieldError.d.ts +25 -0
- package/lib/src/field/FieldGroup.d.ts +25 -0
- package/lib/src/field/FieldLabel.d.ts +41 -0
- package/lib/src/field/FieldLegend.d.ts +20 -0
- package/lib/src/field/FieldSeparator.d.ts +21 -0
- package/lib/src/field/FieldSet.d.ts +28 -0
- package/lib/src/field/FieldTitle.d.ts +21 -0
- package/lib/src/field/field-context.d.ts +47 -0
- package/lib/src/fieldset/Fieldset.d.ts +12 -4
- package/lib/src/filter-add-button/FilterAddButton.d.ts +91 -0
- package/lib/src/filter-add-button/FilterAddButtonEvents.d.ts +17 -0
- package/lib/src/filter-add-button/localization.d.ts +4 -0
- package/lib/src/filter-bar/FilterBar.d.ts +37 -0
- package/lib/src/filter-date-range/FilterDateRange.d.ts +96 -0
- package/lib/src/filter-date-range/FilterDateRangeEvents.d.ts +37 -0
- package/lib/src/filter-date-range/localization.d.ts +11 -0
- package/lib/src/filter-dropdown/FilterDropdown.d.ts +247 -0
- package/lib/src/filter-dropdown/FilterDropdownEvents.d.ts +57 -0
- package/lib/src/filter-dropdown/localization.d.ts +14 -0
- package/lib/src/filter-field/FilterField.d.ts +89 -0
- package/lib/src/filter-field/FilterFieldEvents.d.ts +18 -0
- package/lib/src/filter-field/localization.d.ts +8 -0
- package/lib/src/filter-input/FilterInput.d.ts +102 -0
- package/lib/src/filter-input/localization.d.ts +5 -0
- package/lib/src/filter-reset-button/FilterResetButton.d.ts +50 -0
- package/lib/src/filter-reset-button/localization.d.ts +4 -0
- package/lib/src/index.d.ts +59 -0
- package/lib/src/input/Input.d.ts +2 -1
- package/lib/src/item/Item.d.ts +44 -0
- package/lib/src/item/ItemActions.d.ts +20 -0
- package/lib/src/item/ItemContent.d.ts +22 -0
- package/lib/src/item/ItemDescription.d.ts +20 -0
- package/lib/src/item/ItemFooter.d.ts +20 -0
- package/lib/src/item/ItemGroup.d.ts +22 -0
- package/lib/src/item/ItemHeader.d.ts +20 -0
- package/lib/src/item/ItemMedia.d.ts +28 -0
- package/lib/src/item/ItemSeparator.d.ts +21 -0
- package/lib/src/item/ItemTitle.d.ts +19 -0
- package/lib/src/kbd/Kbd.d.ts +54 -0
- package/lib/src/kbd/KbdGroup.d.ts +22 -0
- package/lib/src/layout/Layout.d.ts +2 -2
- package/lib/src/localization/en-us.d.ts +85 -0
- package/lib/src/localization/translation.d.ts +85 -0
- package/lib/src/meter/Meter.d.ts +76 -0
- package/lib/src/nav-group/NavGroup.d.ts +2 -0
- package/lib/src/nav-item/NavItem.d.ts +2 -0
- package/lib/src/nav-toggle/NavToggle.d.ts +3 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -0
- package/lib/src/number-field/NumberField.d.ts +377 -0
- package/lib/src/number-field/NumberFieldEvents.d.ts +37 -0
- package/lib/src/number-field/currency.d.ts +24 -0
- package/lib/src/number-field/format.d.ts +8 -0
- package/lib/src/number-field/localization.d.ts +6 -0
- package/lib/src/number-field/parse.d.ts +44 -0
- package/lib/src/number-field/validate.d.ts +24 -0
- package/lib/src/otp-field/OtpField.d.ts +177 -0
- package/lib/src/otp-field/OtpFieldEvents.d.ts +38 -0
- package/lib/src/otp-field/localization.d.ts +4 -0
- package/lib/src/pagination/Pagination.d.ts +51 -0
- package/lib/src/pagination/PaginationContent.d.ts +27 -0
- package/lib/src/pagination/PaginationEllipsis.d.ts +27 -0
- package/lib/src/pagination/PaginationItem.d.ts +24 -0
- package/lib/src/pagination/PaginationLink.d.ts +30 -0
- package/lib/src/pagination/PaginationNext.d.ts +24 -0
- package/lib/src/pagination/PaginationPrevious.d.ts +24 -0
- package/lib/src/pagination/localization.d.ts +4 -0
- package/lib/src/pagination/paginate.d.ts +20 -0
- package/lib/src/popout/Popout.d.ts +11 -2
- package/lib/src/scroll-area/ScrollArea.d.ts +101 -0
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +2 -0
- package/lib/src/storybook-utils/dates.d.ts +2 -0
- package/lib/src/storybook-utils/dismiss.d.ts +1 -0
- package/lib/src/storybook-utils/story-descriptions.d.ts +2 -0
- package/lib/src/tab-group/TabGroup.d.ts +2 -0
- package/lib/src/tab-panel/TabPanel.d.ts +2 -0
- package/lib/src/tag-group/TagGroup.d.ts +2 -0
- package/lib/src/textarea/Textarea.d.ts +2 -1
- package/lib/src/time-picker/TimePicker.d.ts +105 -0
- package/lib/src/time-picker/localization.d.ts +4 -0
- package/lib/src/toast-group/ToastGroup.d.ts +11 -0
- package/lib/src/tooltip/Tooltip.d.ts +12 -0
- package/lib/src/truncate/Truncate.d.ts +12 -0
- package/lib/story-descriptions.js +2 -0
- package/lib/story-descriptions.js.map +1 -0
- package/lib/translation.js +1 -1
- package/lib/translation.js.map +1 -1
- package/lib/validate.js +2 -0
- package/lib/validate.js.map +1 -0
- package/lib/vue.d.ts +407 -0
- package/package.json +9 -12
- package/lib/Calendar-ChNZdVRO.js +0 -2
- package/lib/Calendar-ChNZdVRO.js.map +0 -1
- package/lib/Component-DSU3Qp0O.js +0 -2
- package/lib/Component-DSU3Qp0O.js.map +0 -1
- package/lib/DropdownItem-Cb-7cHMg.js +0 -2
- package/lib/DropdownItem-Cb-7cHMg.js.map +0 -1
- package/lib/Fieldset.js +0 -2
- package/lib/Fieldset.js.map +0 -1
- package/lib/FormAssociatedMixin-B4Qj-CQN.js +0 -2
- package/lib/FormAssociatedMixin-B4Qj-CQN.js.map +0 -1
- package/lib/FormField-BFaVzUjk.js +0 -2
- package/lib/FormField-BFaVzUjk.js.map +0 -1
- package/lib/NavToggle-DzKbd-El.js +0 -2
- package/lib/NavToggle-DzKbd-El.js.map +0 -1
- package/lib/Popout-DtEL0HZ0.js +0 -2
- package/lib/Popout-DtEL0HZ0.js.map +0 -1
- package/lib/Sticky-DqnqENYN.js +0 -2
- package/lib/Sticky-DqnqENYN.js.map +0 -1
- package/lib/TextField-B955GOhe.js +0 -2
- package/lib/TextField-B955GOhe.js.map +0 -1
- package/lib/dates-CAAlPKZi.js +0 -2
- package/lib/dates-CAAlPKZi.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Field Legend labels a [Field Set](/components/field-set/), naming the group of
|
|
4
|
+
* fields for assistive technology. Place it as the first child of a Field Set.
|
|
5
|
+
*
|
|
6
|
+
* @status draft
|
|
7
|
+
* @category form
|
|
8
|
+
* @lightDom true
|
|
9
|
+
*
|
|
10
|
+
* @slot - Default slot for the legend text.
|
|
11
|
+
*/
|
|
12
|
+
export default class FieldLegend extends LitElement {
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
protected createRenderRoot(): this;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'nord-field-legend': FieldLegend;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Field Separator draws a thin divider between sections inside a
|
|
4
|
+
* [Field Group](/components/field-group/).
|
|
5
|
+
*
|
|
6
|
+
* @status draft
|
|
7
|
+
* @category form
|
|
8
|
+
* @lightDom true
|
|
9
|
+
*
|
|
10
|
+
* @part separator - The dividing line.
|
|
11
|
+
*/
|
|
12
|
+
export default class FieldSeparator extends LitElement {
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
protected createRenderRoot(): this;
|
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'nord-field-separator': FieldSeparator;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Field Set groups related fields under a [Field Legend](/components/field-legend/)
|
|
4
|
+
* for semantic, accessible grouping. It exposes `role="group"` named by its
|
|
5
|
+
* legend; wrap a [Field Group](/components/field-group/) inside.
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category form
|
|
9
|
+
* @lightDom true
|
|
10
|
+
*
|
|
11
|
+
* @slot - Default slot for a [Field Legend](/components/field-legend/) and a [Field Group](/components/field-group/).
|
|
12
|
+
*/
|
|
13
|
+
export default class FieldSet extends LitElement {
|
|
14
|
+
/**
|
|
15
|
+
* Disables every field in the set. Each enclosed [Field](/components/field/)
|
|
16
|
+
* reads this and cascades it to its control.
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
protected createRenderRoot(): this;
|
|
21
|
+
protected firstUpdated(): void;
|
|
22
|
+
private linkLegend;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'nord-field-set': FieldSet;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Field Title is an emphasized inline title used inside choice-card style
|
|
4
|
+
* [Field](/components/field/) layouts, where a [Field Label](/components/field-label/)
|
|
5
|
+
* wraps a whole selectable field.
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category form
|
|
9
|
+
* @lightDom true
|
|
10
|
+
*
|
|
11
|
+
* @slot - Default slot for the title text.
|
|
12
|
+
*/
|
|
13
|
+
export default class FieldTitle extends LitElement {
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
protected createRenderRoot(): this;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'nord-field-title': FieldTitle;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The state a [Field](/components/field/) shares with the form control it wraps.
|
|
3
|
+
*
|
|
4
|
+
* This mirrors Base UI React's `FieldRootContext`, trimmed to what Nord needs
|
|
5
|
+
* today. The Field is the provider; every control consumes it through
|
|
6
|
+
* `FieldControlMixin`. When a control resolves a value (i.e. it is inside a
|
|
7
|
+
* Field), it suppresses its own built-in label/hint/error and lets the Field
|
|
8
|
+
* parts take over.
|
|
9
|
+
*
|
|
10
|
+
* Validation/state-tracking fields (touched, dirty, filled, validity, …) are
|
|
11
|
+
* intentionally deferred — this is the seam where they would be added.
|
|
12
|
+
*/
|
|
13
|
+
export interface FieldContextValue {
|
|
14
|
+
/** Field-level invalid state. The control ORs this with its own. */
|
|
15
|
+
invalid: boolean;
|
|
16
|
+
/** Field-level disabled (incl. any fieldset cascade). The control ORs this with its own. */
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The `id` of the `<nord-field-label>`, for light-DOM controls to reference
|
|
20
|
+
* via `aria-labelledby` (IDREFs resolve in the same tree).
|
|
21
|
+
*/
|
|
22
|
+
labelId: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The label's text content, for shadow-DOM controls to use as `aria-label`
|
|
25
|
+
* (an external `aria-labelledby` cannot cross the shadow boundary).
|
|
26
|
+
*/
|
|
27
|
+
labelText: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Space-joined ids of the field's description(s) and error(s), in DOM order,
|
|
30
|
+
* for the control's `aria-describedby`.
|
|
31
|
+
*/
|
|
32
|
+
describedById: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Lets the control publish its own `required` up to the Field so the
|
|
35
|
+
* `<nord-field-label>` can render the required indicator. The control owns
|
|
36
|
+
* `required`; the label only reflects it.
|
|
37
|
+
*/
|
|
38
|
+
setRequired: (required: boolean) => void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Context shared by `<nord-field>` (provider) with its control (consumer).
|
|
42
|
+
* `undefined` means "not inside a Field" — the control renders its own
|
|
43
|
+
* built-in field UI.
|
|
44
|
+
*/
|
|
45
|
+
export declare const fieldContext: {
|
|
46
|
+
__context__: FieldContextValue | undefined;
|
|
47
|
+
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Deprecated: for new code, group related controls with the composable Field
|
|
4
|
+
* family — see [grouping fields with Field](/components/field#radio).
|
|
5
|
+
* `nord-fieldset` remains supported for backwards compatibility and is not
|
|
6
|
+
* scheduled for removal.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
+
* Fieldset is used for grouping sets of input components. It is necessary to use a
|
|
9
|
+
* fieldset with radio and checkbox components, and can also be useful for logically
|
|
10
|
+
* grouping other types of inputs.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Group related controls with the composable Field family instead — see
|
|
13
|
+
* [grouping fields with Field](/components/field#radio). Kept for backwards
|
|
14
|
+
* compatibility; not scheduled for removal.
|
|
15
|
+
* @status deprecated
|
|
8
16
|
* @category form
|
|
9
17
|
* @slot label - Use when a label requires more than plain text.
|
|
10
18
|
* @slot hint - Optional slot that holds hint text for the fieldset.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../button/Button.js';
|
|
3
|
+
import '../dropdown-group/DropdownGroup.js';
|
|
4
|
+
import '../dropdown-item/DropdownItem.js';
|
|
5
|
+
import '../popout/Popout.js';
|
|
6
|
+
export { FilterAddButtonSelectEvent } from './FilterAddButtonEvents.js';
|
|
7
|
+
/** A single, selectable option offered by the add-filter popout. */
|
|
8
|
+
export interface FilterAddOption {
|
|
9
|
+
/** Identifies the option; sent in the `select` event when chosen. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** The human-readable label shown in the list. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** When `true`, the option cannot be selected. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** A heading-labelled cluster of options. */
|
|
17
|
+
export interface FilterAddGroup {
|
|
18
|
+
/** Optional heading shown above the group's options. */
|
|
19
|
+
heading?: string;
|
|
20
|
+
/** The options within the group. */
|
|
21
|
+
options: FilterAddOption[];
|
|
22
|
+
}
|
|
23
|
+
declare const FilterAddButton_base: typeof LitElement;
|
|
24
|
+
/**
|
|
25
|
+
* Filter Add Button opens a popout of available filters and emits the chosen one
|
|
26
|
+
* so your app can add it to the bar. Pass a flat list of options, or group them
|
|
27
|
+
* under headings; selecting one fires a `select` event with the option's `id`
|
|
28
|
+
* and closes the popout.
|
|
29
|
+
*
|
|
30
|
+
* Like the other filter primitives it is intent-only: it does not track which
|
|
31
|
+
* filters are active. Your app owns the active filters and decides what to do on
|
|
32
|
+
* `select` (typically render a new [Filter Field](/components/filter-field/)).
|
|
33
|
+
* Mirrors the Provet Cloud filter add button.
|
|
34
|
+
*
|
|
35
|
+
* @status draft
|
|
36
|
+
* @category form
|
|
37
|
+
* @lightDom true
|
|
38
|
+
*
|
|
39
|
+
* @fires {FilterAddButtonSelectEvent} select - Dispatched with the chosen option's `id` when an option is selected.
|
|
40
|
+
* @fires {NordEvent} open - Dispatched when the popout is opened.
|
|
41
|
+
* @fires {NordEvent} close - Dispatched when the popout is closed.
|
|
42
|
+
*
|
|
43
|
+
* @localization label - The text label for the add-filter button.
|
|
44
|
+
*
|
|
45
|
+
* @cssprop [--n-filter-add-button-list-inline-size=250px] - Controls the inline size, or width, of the popout list.
|
|
46
|
+
*
|
|
47
|
+
* @parent FilterBar
|
|
48
|
+
*/
|
|
49
|
+
export default class FilterAddButton extends FilterAddButton_base {
|
|
50
|
+
private filterAddButtonId;
|
|
51
|
+
private localize;
|
|
52
|
+
private popout?;
|
|
53
|
+
private dismiss;
|
|
54
|
+
private openState;
|
|
55
|
+
/**
|
|
56
|
+
* The options to offer in the popout. Either a flat list of options, or an
|
|
57
|
+
* array of groups (each with an optional `heading` and its own `options`),
|
|
58
|
+
* which renders dividers between the groups.
|
|
59
|
+
*/
|
|
60
|
+
options: FilterAddOption[] | FilterAddGroup[];
|
|
61
|
+
/**
|
|
62
|
+
* Makes the component disabled. This prevents users from being able to
|
|
63
|
+
* interact with it and conveys its inactive state to assistive technologies.
|
|
64
|
+
*/
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the popout is open. Set it to open or close the popout
|
|
68
|
+
* programmatically.
|
|
69
|
+
*/
|
|
70
|
+
open: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The size of the button.
|
|
73
|
+
*/
|
|
74
|
+
size: 's' | 'm' | 'l';
|
|
75
|
+
connectedCallback(): void;
|
|
76
|
+
protected createRenderRoot(): this;
|
|
77
|
+
/** Normalises the options into groups, wrapping a flat list in a single group. */
|
|
78
|
+
private get groups();
|
|
79
|
+
/** Open the popout. */
|
|
80
|
+
show(): void;
|
|
81
|
+
/** Close the popout. */
|
|
82
|
+
hide(): void;
|
|
83
|
+
private handleTriggerClick;
|
|
84
|
+
private handleSelect;
|
|
85
|
+
render(): import("lit").TemplateResult<1>;
|
|
86
|
+
}
|
|
87
|
+
declare global {
|
|
88
|
+
interface HTMLElementTagNameMap {
|
|
89
|
+
'nord-filter-add-button': FilterAddButton;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NordEvent } from '../common/events.js';
|
|
2
|
+
/**
|
|
3
|
+
* Dispatched when the user chooses an option from the add-filter popout. Carries
|
|
4
|
+
* the chosen option's `id`. The button does not track which filters are active —
|
|
5
|
+
* the consumer adds the corresponding filter (and removes the option from the
|
|
6
|
+
* list if it should not be addable twice).
|
|
7
|
+
*/
|
|
8
|
+
export declare class FilterAddButtonSelectEvent extends NordEvent {
|
|
9
|
+
/** The `id` of the chosen option. */
|
|
10
|
+
readonly value: string;
|
|
11
|
+
static eventName: string;
|
|
12
|
+
constructor(
|
|
13
|
+
/** The `id` of the chosen option. */
|
|
14
|
+
value: string);
|
|
15
|
+
/** Convenience accessor mirroring `CustomEvent.detail`. */
|
|
16
|
+
get detail(): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare const FilterBar_base: typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Filter Bar is a layout wrapper for a row of filter controls. It lays its
|
|
5
|
+
* children out in a wrapping flex row with a consistent gap, so you can drop in
|
|
6
|
+
* [Filter Field](/components/filter-field/), [Filter Input](/components/filter-input/),
|
|
7
|
+
* [Filter Add Button](/components/filter-add-button/) and
|
|
8
|
+
* [Filter Reset Button](/components/filter-reset-button/) (or any controls) and
|
|
9
|
+
* have them align without extra styling.
|
|
10
|
+
*
|
|
11
|
+
* Like [Pagination](/components/pagination/), it is composition-first: it owns no
|
|
12
|
+
* filter state and emits no events. Your app owns the active filters and any URL
|
|
13
|
+
* or query-string syncing; the filter primitives only emit intent.
|
|
14
|
+
*
|
|
15
|
+
* @status draft
|
|
16
|
+
* @category form
|
|
17
|
+
* @lightDom true
|
|
18
|
+
*
|
|
19
|
+
* @slot - Default slot for the filter controls.
|
|
20
|
+
*
|
|
21
|
+
* @cssprop [--n-filter-bar-gap=var(--n-space-s)] - Controls the spacing between the filter controls.
|
|
22
|
+
* @cssprop [--n-filter-bar-align-items=center] - Controls the cross-axis alignment of the controls.
|
|
23
|
+
*/
|
|
24
|
+
export default class FilterBar extends FilterBar_base {
|
|
25
|
+
/**
|
|
26
|
+
* The cross-axis alignment of the controls within the bar.
|
|
27
|
+
*/
|
|
28
|
+
align: 'start' | 'center' | 'end';
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
protected createRenderRoot(): this;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'nord-filter-bar': FilterBar;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../filter-field/FilterField.js';
|
|
3
|
+
import '../popout/Popout.js';
|
|
4
|
+
import '../date-range-picker/DateRangePicker.js';
|
|
5
|
+
export { FilterDateRangeChangeEvent, FilterDateRangeClearEvent, FilterDateRangeRemoveEvent, } from './FilterDateRangeEvents.js';
|
|
6
|
+
declare const FilterDateRange_base: typeof LitElement;
|
|
7
|
+
/**
|
|
8
|
+
* Filter Date Range is a self-contained date-range **filter**: a chip that opens
|
|
9
|
+
* a popout containing an inline [Date Range Picker](/components/date-range-picker/)
|
|
10
|
+
* (presets + two-month calendar + Apply). It is the date-range counterpart to
|
|
11
|
+
* [Filter Dropdown](/components/filter-dropdown/) and renders the shared filter
|
|
12
|
+
* chip via [Filter Field](/components/filter-field/).
|
|
13
|
+
*
|
|
14
|
+
* Composition-first: it emits `change`/`clear`/`remove` and leaves the active
|
|
15
|
+
* filters and any URL/query state to your app.
|
|
16
|
+
*
|
|
17
|
+
* @status draft
|
|
18
|
+
* @category form
|
|
19
|
+
* @lightDom true
|
|
20
|
+
*
|
|
21
|
+
* @fires {FilterDateRangeChangeEvent} change - Dispatched when the committed range changes (Apply or clear).
|
|
22
|
+
* @fires {FilterDateRangeClearEvent} clear - Dispatched when the chip's clear affordance is pressed.
|
|
23
|
+
* @fires {FilterDateRangeRemoveEvent} remove - Dispatched when the chip's remove affordance is pressed.
|
|
24
|
+
* @fires {NordEvent} open - Dispatched when the popout is opened.
|
|
25
|
+
* @fires {NordEvent} close - Dispatched when the popout is closed.
|
|
26
|
+
*
|
|
27
|
+
* @localization filterIconLabel - Accessible label for the leading calendar icon.
|
|
28
|
+
* @localization clearLabel - Accessible label for the clear button.
|
|
29
|
+
* @localization removeLabel - Accessible label for the remove button.
|
|
30
|
+
* @localization rangeSeparator - Character shown between the start and end dates on the chip.
|
|
31
|
+
*
|
|
32
|
+
* @cssprop [--n-filter-date-range-popout-inline-size] - Controls the inline size of the popout content.
|
|
33
|
+
*
|
|
34
|
+
* @parent FilterBar
|
|
35
|
+
*/
|
|
36
|
+
export default class FilterDateRange extends FilterDateRange_base {
|
|
37
|
+
private filterDateRangeId;
|
|
38
|
+
private localize;
|
|
39
|
+
private popout?;
|
|
40
|
+
private openState;
|
|
41
|
+
/** The label naming what this filter targets, shown on the chip. */
|
|
42
|
+
label: string;
|
|
43
|
+
/**
|
|
44
|
+
* The committed range as an ISO-8601 interval string `YYYY-MM-DD/YYYY-MM-DD`,
|
|
45
|
+
* or `""` for no selection.
|
|
46
|
+
*/
|
|
47
|
+
value: string;
|
|
48
|
+
/** Earliest selectable date (ISO-8601). */
|
|
49
|
+
min?: string;
|
|
50
|
+
/** Latest selectable date (ISO-8601). */
|
|
51
|
+
max?: string;
|
|
52
|
+
/** Hides the built-in preset list, leaving only the calendar. */
|
|
53
|
+
hidePresets: boolean;
|
|
54
|
+
/** First day of the week (0 = Sunday … 6 = Saturday). */
|
|
55
|
+
firstDayOfWeek?: number;
|
|
56
|
+
/** Overrides "today" (ISO-8601), mainly for deterministic tests/demos. */
|
|
57
|
+
today?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the whole filter can be removed. When `true` the trailing affordance
|
|
60
|
+
* is a remove button that fires `remove`; otherwise it is a clear button.
|
|
61
|
+
*/
|
|
62
|
+
removable: boolean;
|
|
63
|
+
/** Shows a clear (✕) button while there is a selection. Defaults to `true`. */
|
|
64
|
+
clearable: boolean;
|
|
65
|
+
/** Makes the component disabled. */
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
/** The size of the chip controls. */
|
|
68
|
+
size: 's' | 'm' | 'l';
|
|
69
|
+
/** Identifies the filter (e.g. for your app's active-filter state). */
|
|
70
|
+
name: string;
|
|
71
|
+
/** Whether the popout is open. */
|
|
72
|
+
open: boolean;
|
|
73
|
+
/** The committed start date (ISO-8601), derived from `value`. */
|
|
74
|
+
get startDate(): string;
|
|
75
|
+
/** The committed end date (ISO-8601), derived from `value`. */
|
|
76
|
+
get endDate(): string;
|
|
77
|
+
connectedCallback(): void;
|
|
78
|
+
protected createRenderRoot(): this;
|
|
79
|
+
/** The chip text: the formatted range, or `""` while inactive. */
|
|
80
|
+
private get displayValue();
|
|
81
|
+
/** Open the popout. */
|
|
82
|
+
show(): void;
|
|
83
|
+
/** Close the popout. */
|
|
84
|
+
hide(): void;
|
|
85
|
+
private handleTriggerClick;
|
|
86
|
+
private handleInnerChange;
|
|
87
|
+
private handleInnerInput;
|
|
88
|
+
private handleClear;
|
|
89
|
+
private handleRemove;
|
|
90
|
+
render(): import("lit").TemplateResult<1>;
|
|
91
|
+
}
|
|
92
|
+
declare global {
|
|
93
|
+
interface HTMLElementTagNameMap {
|
|
94
|
+
'nord-filter-date-range': FilterDateRange;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NordEvent } from '../common/events.js';
|
|
2
|
+
/** The payload carried by a {@link FilterDateRangeChangeEvent}. */
|
|
3
|
+
export interface FilterDateRangeChangeDetail {
|
|
4
|
+
/** The committed interval string `YYYY-MM-DD/YYYY-MM-DD`, or `""` when empty. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** The committed start date in ISO-8601 format, or `""` when empty. */
|
|
7
|
+
startDate: string;
|
|
8
|
+
/** The committed end date in ISO-8601 format, or `""` when empty. */
|
|
9
|
+
endDate: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Dispatched when the committed range changes (the user applies a range inside
|
|
13
|
+
* the popout, or clears it).
|
|
14
|
+
*/
|
|
15
|
+
export declare class FilterDateRangeChangeEvent extends NordEvent {
|
|
16
|
+
private readonly _detail;
|
|
17
|
+
static eventName: string;
|
|
18
|
+
constructor(_detail: FilterDateRangeChangeDetail);
|
|
19
|
+
/** Convenience accessor mirroring `CustomEvent.detail`. */
|
|
20
|
+
get detail(): FilterDateRangeChangeDetail;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Dispatched when the range is cleared via the chip's clear affordance. The
|
|
24
|
+
* value is emptied; your app resets any active-filter/URL state in the handler.
|
|
25
|
+
*/
|
|
26
|
+
export declare class FilterDateRangeClearEvent extends NordEvent {
|
|
27
|
+
static eventName: string;
|
|
28
|
+
constructor();
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Dispatched when the filter is removed via the chip's remove affordance. The
|
|
32
|
+
* consumer removes the field from the bar (and clears its filter) in the handler.
|
|
33
|
+
*/
|
|
34
|
+
export declare class FilterDateRangeRemoveEvent extends NordEvent {
|
|
35
|
+
static eventName: string;
|
|
36
|
+
constructor();
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const filterDateRangeLocalization: {
|
|
2
|
+
/** Accessible label for the leading calendar icon on the chip. */
|
|
3
|
+
filterIconLabel: string;
|
|
4
|
+
/** Accessible label for the clear button. */
|
|
5
|
+
clearLabel: string;
|
|
6
|
+
/** Accessible label for the remove button. */
|
|
7
|
+
removeLabel: string;
|
|
8
|
+
/** Joins the start and end of the displayed range, e.g. "1 Jan 2024 – 7 Jan 2024". */
|
|
9
|
+
rangeSeparator: string;
|
|
10
|
+
};
|
|
11
|
+
export default filterDateRangeLocalization;
|