@odx/foundation 1.0.0-alpha.2 → 1.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/assets/fonts.css +3 -3
- package/dist/cdk/drag-drop/drag.controller.d.ts +1 -1
- package/dist/cdk/drag-drop/is-draggable.d.ts +2 -2
- package/dist/cdk/main.d.ts +6 -6
- package/dist/cdk/popover/popover-host.mixin.d.ts +2 -2
- package/dist/cdk/popover/popover.component.d.ts +1 -1
- package/dist/cdk/popover/popover.utils.d.ts +1 -1
- package/dist/cdk.js +345 -0
- package/dist/components/accordion/accordion-header.component.d.ts +2 -2
- package/dist/components/accordion/accordion-panel.component.d.ts +1 -1
- package/dist/components/accordion/accordion.component.d.ts +2 -2
- package/dist/components/accordion/accordion.stories.d.ts +10 -0
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/action-group/action-group.component.d.ts +24 -0
- package/dist/components/action-group/action-group.stories.d.ts +13 -0
- package/dist/components/action-group/index.d.ts +2 -0
- package/dist/components/anchor-navigation/anchor-navigation.component.d.ts +21 -0
- package/dist/components/anchor-navigation/anchor-navigation.stories.d.ts +12 -0
- package/dist/components/anchor-navigation/anchor-observer.d.ts +11 -0
- package/dist/components/anchor-navigation/index.d.ts +3 -0
- package/dist/components/area-header/area-header.component.d.ts +2 -2
- package/dist/components/area-header/area-header.stories.d.ts +9 -0
- package/dist/components/area-header/index.d.ts +2 -2
- package/dist/components/avatar/avatar.component.d.ts +2 -2
- package/dist/components/avatar/avatar.stories.d.ts +13 -0
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar-group/avatar-group.component.d.ts +2 -2
- package/dist/components/avatar-group/avatar-group.stories.d.ts +9 -0
- package/dist/components/avatar-group/index.d.ts +1 -1
- package/dist/components/badge/badge.component.d.ts +2 -2
- package/dist/components/badge/badge.stories.d.ts +12 -0
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.component.d.ts +17 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +23 -0
- package/dist/components/breadcrumbs/breadcrumbs.stories.d.ts +22 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/base-button.d.ts +7 -4
- package/dist/components/button/button.component.d.ts +3 -3
- package/dist/components/button/button.stories.d.ts +22 -0
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button-group/button-group.component.d.ts +5 -3
- package/dist/components/button-group/button-group.stories.d.ts +16 -0
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/card/card.component.d.ts +2 -2
- package/dist/components/card/card.stories.d.ts +10 -0
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/checkbox/checkbox.stories.d.ts +13 -0
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.component.d.ts +2 -2
- package/dist/components/checkbox-group/checkbox-group.stories.d.ts +12 -0
- package/dist/components/checkbox-group/index.d.ts +2 -2
- package/dist/components/chip/chip.component.d.ts +3 -3
- package/dist/components/chip/chip.stories.d.ts +13 -0
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/circular-progress-bar/circular-progress-bar.component.d.ts +2 -2
- package/dist/components/circular-progress-bar/circular-progress-bar.stories.d.ts +9 -0
- package/dist/components/circular-progress-bar/index.d.ts +2 -2
- package/dist/components/content-box/content-box.component.d.ts +1 -1
- package/dist/components/content-box/content-box.models.d.ts +1 -0
- package/dist/components/content-box/content-box.stories.d.ts +9 -0
- package/dist/components/content-box/index.d.ts +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +4 -4
- package/dist/components/dropdown/dropdown.stories.d.ts +12 -0
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/{elements → components}/form-field/form-field.element.d.ts +1 -1
- package/dist/components/form-field/form-field.stories.d.ts +9 -0
- package/dist/components/form-field/index.d.ts +2 -0
- package/dist/components/format/format-bytes.component.d.ts +1 -1
- package/dist/components/format/format-date.component.d.ts +2 -2
- package/dist/components/format/format-number.component.d.ts +2 -2
- package/dist/components/format/format.component.d.ts +4 -3
- package/dist/components/format/format.stories.d.ts +12 -0
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/format/relative-time.component.d.ts +2 -2
- package/dist/components/header/header-actions.component.d.ts +1 -1
- package/dist/components/header/header.component.d.ts +1 -1
- package/dist/components/header/header.stories.d.ts +15 -0
- package/dist/components/header/index.d.ts +2 -2
- package/dist/components/headline/headline.component.d.ts +2 -2
- package/dist/components/headline/headline.stories.d.ts +12 -0
- package/dist/components/headline/index.d.ts +2 -2
- package/dist/components/highlight/highlight.component.d.ts +14 -0
- package/dist/components/highlight/highlight.stories.d.ts +9 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/icon-button/icon-button.component.d.ts +1 -1
- package/dist/components/icon-button/icon-button.stories.d.ts +15 -0
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/inline-message/index.d.ts +2 -2
- package/dist/components/inline-message/inline-message.component.d.ts +2 -2
- package/dist/components/inline-message/inline-message.stories.d.ts +10 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.component.d.ts +5 -4
- package/dist/components/input/input.stories.d.ts +14 -0
- package/dist/components/line-clamp/index.d.ts +1 -1
- package/dist/components/line-clamp/line-clamp.component.d.ts +1 -1
- package/dist/components/line-clamp/line-clamp.stories.d.ts +18 -0
- package/dist/components/link/base-link.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/link.component.d.ts +1 -1
- package/dist/components/link/link.stories.d.ts +9 -0
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/list-item.component.d.ts +7 -4
- package/dist/components/list/list-item.stories.d.ts +9 -0
- package/dist/components/list/list.component.d.ts +2 -3
- package/dist/components/list/list.stories.d.ts +9 -0
- package/dist/components/loading-overlay/index.d.ts +1 -1
- package/dist/components/loading-overlay/loading-overlay.component.d.ts +2 -2
- package/dist/components/loading-overlay/loading-overlay.stories.d.ts +9 -0
- package/dist/components/loading-spinner/index.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.stories.d.ts +12 -0
- package/dist/components/logo/index.d.ts +2 -2
- package/dist/components/logo/logo.component.d.ts +2 -2
- package/dist/components/logo/logo.stories.d.ts +10 -0
- package/dist/components/main-menu/index.d.ts +5 -5
- package/dist/components/main-menu/main-menu-button.component.d.ts +1 -1
- package/dist/components/main-menu/main-menu-link.component.d.ts +1 -1
- package/dist/components/main-menu/main-menu-subtitle.component.d.ts +1 -1
- package/dist/components/main-menu/main-menu-title.component.d.ts +1 -1
- package/dist/components/main-menu/main-menu.component.d.ts +1 -1
- package/dist/components/main-menu/main-menu.stories.d.ts +14 -0
- package/dist/components/main.d.ts +60 -51
- package/dist/components/menu/index.d.ts +2 -3
- package/dist/components/menu/menu-label.component.d.ts +1 -3
- package/dist/components/menu/menu.component.d.ts +4 -4
- package/dist/components/menu/menu.stories.d.ts +11 -0
- package/dist/components/menu-item/index.d.ts +2 -0
- package/dist/components/menu-item/menu-item.component.d.ts +14 -0
- package/dist/components/menu-item/menu-item.stories.d.ts +17 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.component.d.ts +35 -0
- package/dist/components/modal/modal.models.d.ts +5 -0
- package/dist/components/modal/modal.stories.d.ts +11 -0
- package/dist/components/navigation-item/index.d.ts +2 -2
- package/dist/components/navigation-item/navigation-item.component.d.ts +6 -8
- package/dist/components/navigation-item/navigation-item.stories.d.ts +14 -0
- package/dist/components/option/index.d.ts +1 -1
- package/dist/components/option/option.component.d.ts +1 -1
- package/dist/components/option/option.stories.d.ts +9 -0
- package/dist/components/page/index.d.ts +2 -2
- package/dist/components/page/page.component.d.ts +2 -2
- package/dist/components/page/page.stories.d.ts +12 -0
- package/dist/components/page-layout/index.d.ts +1 -1
- package/dist/components/page-layout/page-layout.component.d.ts +1 -1
- package/dist/components/progress-bar/index.d.ts +2 -2
- package/dist/components/progress-bar/progress-bar.component.d.ts +2 -2
- package/dist/components/progress-bar/progress-bar.stories.d.ts +12 -0
- package/dist/components/radio-button/index.d.ts +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +1 -1
- package/dist/components/radio-button/radio-button.stories.d.ts +13 -0
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/radio-group.component.d.ts +2 -2
- package/dist/components/radio-group/radio-group.stories.d.ts +11 -0
- package/dist/components/rail-navigation/index.d.ts +1 -1
- package/dist/components/rail-navigation/rail-navigation.component.d.ts +4 -9
- package/dist/components/rail-navigation/rail-navigation.stories.d.ts +12 -0
- package/dist/components/search-bar/index.d.ts +3 -3
- package/dist/components/search-bar/search-bar.component.d.ts +3 -2
- package/dist/components/search-bar/search-bar.stories.d.ts +9 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/select.component.d.ts +3 -3
- package/dist/components/select/select.stories.d.ts +12 -0
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/separator/separator.component.d.ts +5 -1
- package/dist/components/separator/separator.models.d.ts +6 -0
- package/dist/components/separator/separator.stories.d.ts +12 -0
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/skeleton.component.d.ts +6 -2
- package/dist/components/skeleton/skeleton.models.d.ts +13 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +11 -0
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/slider-handle.component.d.ts +4 -4
- package/dist/components/slider/slider-marks.component.d.ts +2 -2
- package/dist/components/slider/slider.component.d.ts +5 -5
- package/dist/components/slider/slider.component.stories.d.ts +10 -0
- package/dist/components/spacer/index.d.ts +1 -1
- package/dist/components/spacer/spacer.component.d.ts +1 -1
- package/dist/components/spacer/spacer.stories.d.ts +12 -0
- package/dist/components/spinbox/index.d.ts +1 -1
- package/dist/components/spinbox/spinbox.component.d.ts +2 -2
- package/dist/components/spinbox/spinbox.stories.d.ts +9 -0
- package/dist/components/stack/index.d.ts +2 -2
- package/dist/components/stack/stack.component.d.ts +2 -2
- package/dist/components/stack/stack.stories.d.ts +9 -0
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +1 -1
- package/dist/components/switch/switch.stories.d.ts +13 -0
- package/dist/components/table/index.d.ts +8 -0
- package/dist/{elements/table/elements/table-body → components/table}/table-body.element.d.ts +1 -1
- package/dist/{elements/table/elements/table-cell → components/table}/table-cell.element.d.ts +1 -1
- package/dist/{elements/table/elements/table-checkbox-cell → components/table}/table-checkbox-cell.element.d.ts +1 -1
- package/dist/{elements/table/elements/table-header-cell → components/table}/table-header-cell.element.d.ts +1 -1
- package/dist/{elements/table/elements/table-header → components/table}/table-header.element.d.ts +1 -1
- package/dist/{elements/table/elements/table-row → components/table}/table-row.element.d.ts +1 -1
- package/dist/{elements → components}/table/table.element.d.ts +3 -3
- package/dist/components/table/table.stories.d.ts +9 -0
- package/dist/components/text/index.d.ts +2 -2
- package/dist/components/text/text.component.d.ts +2 -2
- package/dist/components/text/text.models.d.ts +1 -0
- package/dist/components/text/text.stories.d.ts +10 -0
- package/dist/components/title/index.d.ts +2 -2
- package/dist/components/title/title.component.d.ts +2 -2
- package/dist/components/title/title.stories.d.ts +13 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/{elements → components}/toast/toast.element.d.ts +2 -2
- package/dist/{elements/toast/models/toast-variant.d.ts → components/toast/toast.models.d.ts} +1 -1
- package/dist/components/toast/toast.stories.d.ts +9 -0
- package/dist/components/toggle-button/index.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.component.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.stories.d.ts +14 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/{elements → components}/tooltip/tooltip.element.d.ts +3 -4
- package/dist/{elements/tooltip/models/tooltip-placement.d.ts → components/tooltip/tooltip.models.d.ts} +1 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +9 -0
- package/dist/components/translate/index.d.ts +2 -0
- package/dist/components/translate/translate.component.d.ts +16 -0
- package/dist/components/translate/translate.stories.d.ts +12 -0
- package/dist/components/visually-hidden/index.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden.component.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden.stories.d.ts +9 -0
- package/dist/components.js +4806 -0
- package/dist/i18n/lib/config.d.ts +29 -0
- package/dist/i18n/lib/format.d.ts +6 -0
- package/dist/{lib/mixins/is-localized.d.ts → i18n/lib/is-localized.mixin.d.ts} +6 -4
- package/dist/i18n/lib/localization.d.ts +5 -0
- package/dist/{lib/models/single-unit-identifier.d.ts → i18n/lib/models.d.ts} +2 -1
- package/dist/i18n/lib/translate.d.ts +11 -0
- package/dist/i18n/main.d.ts +7 -0
- package/dist/i18n.js +147 -0
- package/dist/lib/{models/custom-element.d.ts → custom-element.d.ts} +1 -3
- package/dist/lib/decorators/request-update-on-aria-change.d.ts +4 -0
- package/dist/lib/facade/checkbox-form-control.d.ts +2 -2
- package/dist/lib/facade/checkbox-group-form-control.d.ts +3 -3
- package/dist/lib/facade/option-control.d.ts +3 -3
- package/dist/lib/facade/radio-group-form-control.d.ts +3 -3
- package/dist/lib/facade/select-form-control.d.ts +3 -3
- package/dist/lib/main.d.ts +31 -7
- package/dist/lib/mixins/can-be-disabled.d.ts +2 -2
- package/dist/lib/mixins/can-be-readonly.d.ts +2 -2
- package/dist/lib/mixins/can-be-required.d.ts +2 -2
- package/dist/lib/mixins/can-be-selected.d.ts +9 -0
- package/dist/lib/mixins/can-be-validated.d.ts +2 -2
- package/dist/lib/mixins/form-control.d.ts +6 -6
- package/dist/lib/mixins/number-control.d.ts +3 -3
- package/dist/lib/mixins/with-aria-controls.d.ts +3 -3
- package/dist/lib/mixins/with-loading-state.d.ts +2 -2
- package/dist/lib/{models/aria-mixin-strict.d.ts → utils/a11y.d.ts} +3 -1
- package/dist/lib/utils/{parse-date.d.ts → date.d.ts} +1 -1
- package/dist/lib/utils/dom.d.ts +9 -0
- package/dist/lib/utils/effect.d.ts +5 -0
- package/dist/lib/utils/{create-options.d.ts → object.d.ts} +1 -1
- package/dist/lib/utils/search-text-content.d.ts +7 -0
- package/dist/lib/utils/shared-intersection-observer.d.ts +7 -0
- package/dist/lib/utils/shared-resize-observer.d.ts +7 -0
- package/dist/main.js +1149 -0
- package/dist/styles.css +1 -0
- package/dist/vendor-okSCJWYL.js +3856 -0
- package/package.json +20 -22
- package/public/assets/fonts.css +3 -3
- package/dist/cdk/drag-drop/drag.controller.js +0 -90
- package/dist/cdk/drag-drop/is-draggable.js +0 -42
- package/dist/cdk/main.js +0 -5
- package/dist/cdk/popover/popover-host.mixin.css.js +0 -3
- package/dist/cdk/popover/popover-host.mixin.js +0 -115
- package/dist/cdk/popover/popover.component.css.js +0 -3
- package/dist/cdk/popover/popover.component.js +0 -38
- package/dist/cdk/popover/popover.models.js +0 -32
- package/dist/cdk/popover/popover.utils.js +0 -48
- package/dist/components/accordion/accordion-header.component.css.js +0 -3
- package/dist/components/accordion/accordion-header.component.js +0 -69
- package/dist/components/accordion/accordion-panel.component.css.js +0 -3
- package/dist/components/accordion/accordion-panel.component.js +0 -29
- package/dist/components/accordion/accordion.component.css.js +0 -3
- package/dist/components/accordion/accordion.component.js +0 -83
- package/dist/components/area-header/area-header.component.css.js +0 -3
- package/dist/components/area-header/area-header.component.js +0 -37
- package/dist/components/area-header/area-header.models.js +0 -11
- package/dist/components/avatar/avatar.component.css.js +0 -3
- package/dist/components/avatar/avatar.component.js +0 -31
- package/dist/components/avatar/avatar.models.js +0 -12
- package/dist/components/avatar-group/avatar-group.component.css.js +0 -3
- package/dist/components/avatar-group/avatar-group.component.js +0 -31
- package/dist/components/badge/badge.component.css.js +0 -3
- package/dist/components/badge/badge.component.js +0 -32
- package/dist/components/badge/badge.models.js +0 -10
- package/dist/components/breadcrumb/breadcrumb-item.component.css.js +0 -3
- package/dist/components/breadcrumb/breadcrumb-item.component.d.ts +0 -16
- package/dist/components/breadcrumb/breadcrumb-item.component.js +0 -56
- package/dist/components/breadcrumb/breadcrumb.component.css.js +0 -3
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +0 -17
- package/dist/components/breadcrumb/breadcrumb.component.js +0 -72
- package/dist/components/breadcrumb/index.d.ts +0 -3
- package/dist/components/button/base-button.css.js +0 -3
- package/dist/components/button/base-button.js +0 -78
- package/dist/components/button/button.component.css.js +0 -3
- package/dist/components/button/button.component.js +0 -66
- package/dist/components/button/button.models.js +0 -16
- package/dist/components/button-group/button-group.component.css.js +0 -3
- package/dist/components/button-group/button-group.component.js +0 -47
- package/dist/components/card/card.component.css.js +0 -3
- package/dist/components/card/card.component.js +0 -30
- package/dist/components/checkbox/checkbox.component.css.js +0 -3
- package/dist/components/checkbox/checkbox.component.js +0 -57
- package/dist/components/checkbox-group/checkbox-group.component.css.js +0 -3
- package/dist/components/checkbox-group/checkbox-group.component.js +0 -54
- package/dist/components/checkbox-group/checkbox-group.models.js +0 -5
- package/dist/components/chip/chip.component.css.js +0 -3
- package/dist/components/chip/chip.component.js +0 -94
- package/dist/components/chip/chip.models.js +0 -10
- package/dist/components/circular-progress-bar/circular-progress-bar.component.css.js +0 -3
- package/dist/components/circular-progress-bar/circular-progress-bar.component.js +0 -123
- package/dist/components/circular-progress-bar/circular-progress-bar.models.js +0 -7
- package/dist/components/content-box/content-box.component.css.js +0 -3
- package/dist/components/content-box/content-box.component.js +0 -26
- package/dist/components/dropdown/dropdown.component.css.js +0 -3
- package/dist/components/dropdown/dropdown.component.js +0 -121
- package/dist/components/dropdown/dropdown.models.js +0 -8
- package/dist/components/format/format-bytes.component.js +0 -46
- package/dist/components/format/format-date.component.js +0 -36
- package/dist/components/format/format-number.component.js +0 -59
- package/dist/components/format/format.component.js +0 -33
- package/dist/components/format/relative-time.component.js +0 -80
- package/dist/components/header/header-actions.component.css.js +0 -3
- package/dist/components/header/header-actions.component.js +0 -22
- package/dist/components/header/header.component.css.js +0 -3
- package/dist/components/header/header.component.js +0 -58
- package/dist/components/headline/headline.component.css.js +0 -3
- package/dist/components/headline/headline.component.js +0 -31
- package/dist/components/headline/headline.models.js +0 -8
- package/dist/components/icon-button/icon-button.component.js +0 -35
- package/dist/components/inline-message/inline-message.component.css.js +0 -3
- package/dist/components/inline-message/inline-message.component.js +0 -39
- package/dist/components/inline-message/inline-message.models.js +0 -9
- package/dist/components/input/input.component.css.js +0 -3
- package/dist/components/input/input.component.js +0 -72
- package/dist/components/input/input.models.js +0 -7
- package/dist/components/line-clamp/line-clamp.component.css.js +0 -3
- package/dist/components/line-clamp/line-clamp.component.js +0 -37
- package/dist/components/link/base-link.js +0 -70
- package/dist/components/link/link.component.css.js +0 -3
- package/dist/components/link/link.component.js +0 -33
- package/dist/components/list/list-item.component.css.js +0 -3
- package/dist/components/list/list-item.component.js +0 -32
- package/dist/components/list/list.component.css.js +0 -3
- package/dist/components/list/list.component.js +0 -24
- package/dist/components/loading-overlay/loading-overlay.component.css.js +0 -3
- package/dist/components/loading-overlay/loading-overlay.component.js +0 -80
- package/dist/components/loading-spinner/loading-spinner.component.css.js +0 -3
- package/dist/components/loading-spinner/loading-spinner.component.js +0 -58
- package/dist/components/logo/logo.component.css.js +0 -3
- package/dist/components/logo/logo.component.js +0 -38
- package/dist/components/logo/logo.models.js +0 -9
- package/dist/components/main-menu/main-menu-button.component.js +0 -38
- package/dist/components/main-menu/main-menu-link.component.css.js +0 -3
- package/dist/components/main-menu/main-menu-link.component.js +0 -19
- package/dist/components/main-menu/main-menu-subtitle.component.js +0 -29
- package/dist/components/main-menu/main-menu-title.component.js +0 -29
- package/dist/components/main-menu/main-menu.component.css.js +0 -3
- package/dist/components/main-menu/main-menu.component.js +0 -82
- package/dist/components/main.js +0 -102
- package/dist/components/menu/menu-item.component.css.js +0 -3
- package/dist/components/menu/menu-item.component.d.ts +0 -13
- package/dist/components/menu/menu-item.component.js +0 -37
- package/dist/components/menu/menu-label.component.css.js +0 -3
- package/dist/components/menu/menu-label.component.js +0 -26
- package/dist/components/menu/menu.component.css.js +0 -3
- package/dist/components/menu/menu.component.js +0 -110
- package/dist/components/navigation-item/navigation-item.component.css.js +0 -3
- package/dist/components/navigation-item/navigation-item.component.js +0 -42
- package/dist/components/navigation-item/navigation-item.models.js +0 -6
- package/dist/components/option/option.component.css.js +0 -3
- package/dist/components/option/option.component.js +0 -37
- package/dist/components/page/page.component.css.js +0 -3
- package/dist/components/page/page.component.js +0 -53
- package/dist/components/page/page.models.js +0 -9
- package/dist/components/page-layout/page-layout.component.css.js +0 -3
- package/dist/components/page-layout/page-layout.component.js +0 -28
- package/dist/components/progress-bar/progress-bar.component.css.js +0 -3
- package/dist/components/progress-bar/progress-bar.component.js +0 -89
- package/dist/components/progress-bar/progress-bar.models.js +0 -7
- package/dist/components/radio-button/radio-button.component.css.js +0 -3
- package/dist/components/radio-button/radio-button.component.js +0 -39
- package/dist/components/radio-group/radio-group.component.css.js +0 -3
- package/dist/components/radio-group/radio-group.component.js +0 -24
- package/dist/components/radio-group/radio-group.models.js +0 -5
- package/dist/components/rail-navigation/rail-navigation.component.css.js +0 -3
- package/dist/components/rail-navigation/rail-navigation.component.js +0 -71
- package/dist/components/search-bar/search-bar.component.css.js +0 -3
- package/dist/components/search-bar/search-bar.component.js +0 -100
- package/dist/components/search-bar/search-bar.events.js +0 -7
- package/dist/components/search-bar/search-bar.models.js +0 -6
- package/dist/components/select/select.component.css.js +0 -3
- package/dist/components/select/select.component.js +0 -100
- package/dist/components/separator/separator.component.css.js +0 -3
- package/dist/components/separator/separator.component.js +0 -36
- package/dist/components/skeleton/skeleton.component.css.js +0 -3
- package/dist/components/skeleton/skeleton.component.js +0 -32
- package/dist/components/slider/slider-handle.component.css.js +0 -3
- package/dist/components/slider/slider-handle.component.js +0 -168
- package/dist/components/slider/slider-marks.component.css.js +0 -3
- package/dist/components/slider/slider-marks.component.js +0 -61
- package/dist/components/slider/slider.component.css.js +0 -3
- package/dist/components/slider/slider.component.js +0 -119
- package/dist/components/slider/slider.models.js +0 -17
- package/dist/components/spacer/spacer.component.css.js +0 -3
- package/dist/components/spacer/spacer.component.js +0 -39
- package/dist/components/spinbox/spinbox.component.css.js +0 -3
- package/dist/components/spinbox/spinbox.component.js +0 -94
- package/dist/components/stack/stack.component.css.js +0 -3
- package/dist/components/stack/stack.component.js +0 -45
- package/dist/components/stack/stack.models.js +0 -23
- package/dist/components/switch/switch.component.css.js +0 -3
- package/dist/components/switch/switch.component.js +0 -36
- package/dist/components/text/text.component.css.js +0 -3
- package/dist/components/text/text.component.js +0 -34
- package/dist/components/text/text.models.js +0 -12
- package/dist/components/title/title.component.css.js +0 -3
- package/dist/components/title/title.component.js +0 -31
- package/dist/components/title/title.models.js +0 -10
- package/dist/components/toggle-button/toggle-button.component.css.js +0 -3
- package/dist/components/toggle-button/toggle-button.component.js +0 -52
- package/dist/components/visually-hidden/visually-hidden.component.css.js +0 -3
- package/dist/components/visually-hidden/visually-hidden.component.js +0 -22
- package/dist/elements/form-field/form-field.element.css.js +0 -3
- package/dist/elements/form-field/form-field.element.js +0 -62
- package/dist/elements/form-field/index.d.ts +0 -2
- package/dist/elements/main.d.ts +0 -5
- package/dist/elements/table/elements/table-body/index.d.ts +0 -2
- package/dist/elements/table/elements/table-body/table-body.element.css.js +0 -3
- package/dist/elements/table/elements/table-body/table-body.element.js +0 -26
- package/dist/elements/table/elements/table-cell/index.d.ts +0 -2
- package/dist/elements/table/elements/table-cell/table-cell.element.css.js +0 -3
- package/dist/elements/table/elements/table-cell/table-cell.element.js +0 -26
- package/dist/elements/table/elements/table-checkbox-cell/index.d.ts +0 -2
- package/dist/elements/table/elements/table-checkbox-cell/table-checkbox-cell.element.css.js +0 -3
- package/dist/elements/table/elements/table-checkbox-cell/table-checkbox-cell.element.js +0 -66
- package/dist/elements/table/elements/table-header/index.d.ts +0 -2
- package/dist/elements/table/elements/table-header/table-header.element.css.js +0 -3
- package/dist/elements/table/elements/table-header/table-header.element.js +0 -52
- package/dist/elements/table/elements/table-header-cell/index.d.ts +0 -2
- package/dist/elements/table/elements/table-header-cell/table-header-cell.element.css.js +0 -3
- package/dist/elements/table/elements/table-header-cell/table-header-cell.element.js +0 -40
- package/dist/elements/table/elements/table-row/index.d.ts +0 -2
- package/dist/elements/table/elements/table-row/table-row.element.css.js +0 -3
- package/dist/elements/table/elements/table-row/table-row.element.js +0 -111
- package/dist/elements/table/index.d.ts +0 -8
- package/dist/elements/table/table.element.css.js +0 -3
- package/dist/elements/table/table.element.js +0 -97
- package/dist/elements/toast/index.d.ts +0 -3
- package/dist/elements/toast/models/index.d.ts +0 -2
- package/dist/elements/toast/models/toast-variant.js +0 -5
- package/dist/elements/toast/toast.element.css.js +0 -3
- package/dist/elements/toast/toast.element.js +0 -31
- package/dist/elements/tooltip/index.d.ts +0 -3
- package/dist/elements/tooltip/models/index.d.ts +0 -2
- package/dist/elements/tooltip/models/tooltip-placement.js +0 -10
- package/dist/elements/tooltip/tooltip.element.css.js +0 -3
- package/dist/elements/tooltip/tooltip.element.js +0 -120
- package/dist/lib/controllers/focus-trap.controller.js +0 -55
- package/dist/lib/controllers/index.d.ts +0 -2
- package/dist/lib/directives/aria-boolean-attr.d.ts +0 -3
- package/dist/lib/directives/aria-boolean-attr.js +0 -9
- package/dist/lib/directives/index.d.ts +0 -5
- package/dist/lib/directives/optional-attr.js +0 -8
- package/dist/lib/directives/optional-slot.js +0 -14
- package/dist/lib/directives/slot-fallback.js +0 -16
- package/dist/lib/external/index.d.ts +0 -2
- package/dist/lib/external/roving-tabindex.d.ts +0 -87
- package/dist/lib/external/roving-tabindex.js +0 -386
- package/dist/lib/facade/checkbox-form-control.js +0 -78
- package/dist/lib/facade/checkbox-group-form-control.js +0 -109
- package/dist/lib/facade/index.d.ts +0 -6
- package/dist/lib/facade/option-control.js +0 -49
- package/dist/lib/facade/radio-group-form-control.js +0 -87
- package/dist/lib/facade/select-form-control.js +0 -108
- package/dist/lib/main.js +0 -35
- package/dist/lib/mixins/can-be-disabled.js +0 -60
- package/dist/lib/mixins/can-be-readonly.js +0 -33
- package/dist/lib/mixins/can-be-required.js +0 -33
- package/dist/lib/mixins/can-be-validated.js +0 -32
- package/dist/lib/mixins/dedupe-mixin.js +0 -23
- package/dist/lib/mixins/form-control.js +0 -61
- package/dist/lib/mixins/index.d.ts +0 -12
- package/dist/lib/mixins/is-localized.js +0 -41
- package/dist/lib/mixins/is-translatable.d.ts +0 -13
- package/dist/lib/mixins/is-translatable.js +0 -20
- package/dist/lib/mixins/number-control.js +0 -63
- package/dist/lib/mixins/with-aria-controls.js +0 -43
- package/dist/lib/mixins/with-loading-state.js +0 -33
- package/dist/lib/models/custom-element.css.js +0 -3
- package/dist/lib/models/custom-element.js +0 -27
- package/dist/lib/models/index.d.ts +0 -5
- package/dist/lib/models/locale.d.ts +0 -2
- package/dist/lib/utils/create-intersection-observer.d.ts +0 -8
- package/dist/lib/utils/create-intersection-observer.js +0 -9
- package/dist/lib/utils/create-mutation-observer.d.ts +0 -8
- package/dist/lib/utils/create-mutation-observer.js +0 -9
- package/dist/lib/utils/create-options.js +0 -7
- package/dist/lib/utils/create-resize-observer.d.ts +0 -8
- package/dist/lib/utils/create-resize-observer.js +0 -9
- package/dist/lib/utils/dom.js +0 -35
- package/dist/lib/utils/element-loader.d.ts +0 -4
- package/dist/lib/utils/format.d.ts +0 -20
- package/dist/lib/utils/format.js +0 -56
- package/dist/lib/utils/get-unique-id.js +0 -15
- package/dist/lib/utils/index.d.ts +0 -13
- package/dist/lib/utils/keyboard-events.js +0 -42
- package/dist/lib/utils/localization.d.ts +0 -15
- package/dist/lib/utils/localization.js +0 -41
- package/dist/lib/utils/parse-date.js +0 -10
- package/dist/lib/utils/request-update-on-aria-change.d.ts +0 -34
- package/dist/lib/utils/request-update-on-aria-change.js +0 -15
- package/dist/lib/utils/shared-intersection-observer.js +0 -32
- package/dist/lib/utils/shared-resize-observer.js +0 -33
- package/dist/lib/utils/wait-for-animations.d.ts +0 -2
- package/dist/lib/utils/wait-for-animations.js +0 -8
- package/dist/styles/main.css +0 -1
- /package/dist/{elements → components}/table/table.context.d.ts +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement, requestUpdateOnAriaChange, optionalAttr } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { query, property } from 'lit/decorators.js';
|
|
4
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
-
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result = void 0 ;
|
|
9
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
-
if (decorator = decorators[i])
|
|
11
|
-
result = (decorator(target, key, result) ) || result;
|
|
12
|
-
if (result) __defProp(target, key, result);
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
|
-
class BaseLink extends CanBeDisabled(CustomElement) {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.href = "";
|
|
19
|
-
this.target = "";
|
|
20
|
-
this.rel = "noreferrer noopener";
|
|
21
|
-
}
|
|
22
|
-
static {
|
|
23
|
-
requestUpdateOnAriaChange(["ariaLabel", "ariaHasPopup", "ariaExpanded", "ariaCurrent", "ariaHidden"]);
|
|
24
|
-
}
|
|
25
|
-
static {
|
|
26
|
-
this.shadowRootOptions = {
|
|
27
|
-
...CustomElement.shadowRootOptions,
|
|
28
|
-
delegatesFocus: true
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
render(role) {
|
|
32
|
-
const { ariaLabel, ariaHasPopup, ariaExpanded, ariaCurrent, ariaHidden } = this;
|
|
33
|
-
return html`<a
|
|
34
|
-
class="base"
|
|
35
|
-
part="anchor"
|
|
36
|
-
aria-label="${optionalAttr(ariaLabel)}"
|
|
37
|
-
aria-haspopup="${optionalAttr(ariaHasPopup)}"
|
|
38
|
-
aria-expanded="${optionalAttr(ariaExpanded)}"
|
|
39
|
-
aria-current="${optionalAttr(ariaCurrent)}"
|
|
40
|
-
aria-hidden="${optionalAttr(ariaHidden)}"
|
|
41
|
-
href=${optionalAttr(this.href)}
|
|
42
|
-
target=${optionalAttr(this.target)}
|
|
43
|
-
download=${ifDefined(this.download)}
|
|
44
|
-
rel=${optionalAttr(this.rel)}
|
|
45
|
-
role=${optionalAttr(role)}
|
|
46
|
-
>
|
|
47
|
-
${this.renderContent()}
|
|
48
|
-
</a>`;
|
|
49
|
-
}
|
|
50
|
-
renderContent() {
|
|
51
|
-
return html`<slot></slot>`;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
__decorateClass([
|
|
55
|
-
query('[part~="anchor"]', true)
|
|
56
|
-
], BaseLink.prototype, "interactiveElement");
|
|
57
|
-
__decorateClass([
|
|
58
|
-
property()
|
|
59
|
-
], BaseLink.prototype, "href");
|
|
60
|
-
__decorateClass([
|
|
61
|
-
property()
|
|
62
|
-
], BaseLink.prototype, "target");
|
|
63
|
-
__decorateClass([
|
|
64
|
-
property()
|
|
65
|
-
], BaseLink.prototype, "rel");
|
|
66
|
-
__decorateClass([
|
|
67
|
-
property()
|
|
68
|
-
], BaseLink.prototype, "download");
|
|
69
|
-
|
|
70
|
-
export { BaseLink };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_color-foreground: var(--odx-palette-blue-50);display:inline;text-decoration:underline}:host(:focus-visible){outline:none}.base{padding-inline:calc(1 / 24 * 1rem);transition:var(--odx-transition-reduced);color:var(--_color-foreground);text-decoration:inherit;outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset);border-radius:var(--odx-border-radius-controls);&:focus-visible{outline-color:var(--odx-focus-ring-color)}}:host(:hover){--_color-foreground: var(--odx-palette-blue-80)}:host([emphasized]){--_color-foreground: var(--odx-color-foreground);font-weight:var(--odx-typography-font-weight-medium)}:host([aria-disabled=\"true\"]),:host([subtle]:not(:hover)){text-decoration:none}:host([aria-disabled=\"true\"]){--_color-foreground: var(--odx-palette-coolgray-40);.anchor{cursor:default}}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import { BaseLink } from './base-link.js';
|
|
4
|
-
import styles from './link.component.css.js';
|
|
5
|
-
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
-
if (decorator = decorators[i])
|
|
12
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
-
if (kind && result) __defProp(target, key, result);
|
|
14
|
-
return result;
|
|
15
|
-
};
|
|
16
|
-
let OdxLinkComponent = class extends BaseLink {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.emphasized = false;
|
|
20
|
-
this.subtle = false;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
__decorateClass([
|
|
24
|
-
property({ type: Boolean, reflect: true })
|
|
25
|
-
], OdxLinkComponent.prototype, "emphasized", 2);
|
|
26
|
-
__decorateClass([
|
|
27
|
-
property({ type: Boolean, reflect: true })
|
|
28
|
-
], OdxLinkComponent.prototype, "subtle", 2);
|
|
29
|
-
OdxLinkComponent = __decorateClass([
|
|
30
|
-
customElement("odx-link", [styles])
|
|
31
|
-
], OdxLinkComponent);
|
|
32
|
-
|
|
33
|
-
export { OdxLinkComponent };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { when } from 'lit/directives/when.js';
|
|
4
|
-
import styles from './list-item.component.css.js';
|
|
5
|
-
import { BaseLink } from '../link/base-link.js';
|
|
6
|
-
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
-
if (decorator = decorators[i])
|
|
12
|
-
result = (decorator(result)) || result;
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
|
-
let OdxListItemComponent = class extends BaseLink {
|
|
16
|
-
render() {
|
|
17
|
-
return html`
|
|
18
|
-
<slot name="prefix"></slot>
|
|
19
|
-
${when(
|
|
20
|
-
this.href,
|
|
21
|
-
() => super.render(),
|
|
22
|
-
() => html`<slot></slot>`
|
|
23
|
-
)}
|
|
24
|
-
<slot name="suffix"></slot>
|
|
25
|
-
`;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
OdxListItemComponent = __decorateClass([
|
|
29
|
-
customElement("odx-list-item", [styles])
|
|
30
|
-
], OdxListItemComponent);
|
|
31
|
-
|
|
32
|
-
export { OdxListItemComponent };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import styles from './list.component.css.js';
|
|
4
|
-
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
8
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
-
if (decorator = decorators[i])
|
|
10
|
-
result = (decorator(result)) || result;
|
|
11
|
-
return result;
|
|
12
|
-
};
|
|
13
|
-
let OdxListComponent = class extends CustomElement {
|
|
14
|
-
render() {
|
|
15
|
-
return html`
|
|
16
|
-
<slot></slot>
|
|
17
|
-
`;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
OdxListComponent = __decorateClass([
|
|
21
|
-
customElement("odx-list", [styles])
|
|
22
|
-
], OdxListComponent);
|
|
23
|
-
|
|
24
|
-
export { OdxListComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_overlay-fill-color: var(--odx-color-backdrop, rgba(255, 255, 255, .25));display:contents;overflow:hidden;border-radius:inherit}:host::part(overlay){display:flex;flex-direction:column;place-content:center;place-items:center;position:absolute;inset:0;pointer-events:none;opacity:0;visibility:hidden;transition:var(--odx-transition-reduced) allow-discrete;overflow:hidden;border-radius:inherit}:host::part(content){min-inline-size:var(--odx-size-225);text-align:center}:host([loading])::part(overlay){background-color:var(--_overlay-fill-color);z-index:9999;opacity:1;backdrop-filter:blur(var(--odx-size-12));pointer-events:all;visibility:visible}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { WithLoadingState, CustomElement, waitForAnimations, emptySlotFallbackFix, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { query } from 'lit/decorators.js';
|
|
4
|
-
import styles from './loading-overlay.component.css.js';
|
|
5
|
-
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __typeError = (msg) => {
|
|
9
|
-
throw TypeError(msg);
|
|
10
|
-
};
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
20
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), member.get(obj));
|
|
21
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
22
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
23
|
-
var _loadingContainerPosition;
|
|
24
|
-
const LOADING_OVERLAY_HOST_DIRECTIVE = "odx-loading-overlay-host";
|
|
25
|
-
let OdxLoadingOverlayComponent = class extends WithLoadingState(CustomElement) {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
__privateAdd(this, _loadingContainerPosition, "");
|
|
29
|
-
}
|
|
30
|
-
get loadingContainer() {
|
|
31
|
-
return this.parentElement ?? this;
|
|
32
|
-
}
|
|
33
|
-
disconnectedCallback() {
|
|
34
|
-
super.disconnectedCallback?.();
|
|
35
|
-
this.hideOverlay();
|
|
36
|
-
}
|
|
37
|
-
async updated(props) {
|
|
38
|
-
if (props.has("loading")) {
|
|
39
|
-
if (this.loading) {
|
|
40
|
-
this.showOverlay();
|
|
41
|
-
} else {
|
|
42
|
-
await waitForAnimations(this.overlay);
|
|
43
|
-
this.hideOverlay();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
return html`
|
|
49
|
-
<div part="overlay">
|
|
50
|
-
<div class="content">
|
|
51
|
-
<slot ${emptySlotFallbackFix()}>
|
|
52
|
-
<odx-loading-spinner></odx-loading-spinner>
|
|
53
|
-
</slot>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
`;
|
|
57
|
-
}
|
|
58
|
-
showOverlay() {
|
|
59
|
-
this.loadingContainer.toggleAttribute(LOADING_OVERLAY_HOST_DIRECTIVE, true);
|
|
60
|
-
__privateSet(this, _loadingContainerPosition, window.getComputedStyle(this.loadingContainer).position);
|
|
61
|
-
if (__privateGet(this, _loadingContainerPosition) !== "static") return;
|
|
62
|
-
this.loadingContainer.style.position = "relative";
|
|
63
|
-
this.loadingContainer.inert = true;
|
|
64
|
-
}
|
|
65
|
-
hideOverlay() {
|
|
66
|
-
this.loadingContainer.toggleAttribute(LOADING_OVERLAY_HOST_DIRECTIVE, false);
|
|
67
|
-
if (__privateGet(this, _loadingContainerPosition) !== "static") return;
|
|
68
|
-
this.loadingContainer.style.position = "";
|
|
69
|
-
this.loadingContainer.inert = false;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
_loadingContainerPosition = new WeakMap();
|
|
73
|
-
__decorateClass([
|
|
74
|
-
query('[part="overlay"]', true)
|
|
75
|
-
], OdxLoadingOverlayComponent.prototype, "overlay", 2);
|
|
76
|
-
OdxLoadingOverlayComponent = __decorateClass([
|
|
77
|
-
customElement("odx-loading-overlay", [styles])
|
|
78
|
-
], OdxLoadingOverlayComponent);
|
|
79
|
-
|
|
80
|
-
export { LOADING_OVERLAY_HOST_DIRECTIVE, OdxLoadingOverlayComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_animation-duration: 1.5s;--_animation-delay: 0s;--_size: var(--odx-size-225);--_space: var(--odx-size-37);--_track-size: calc(var(--odx-size-37) - var(--odx-size-px));--_track-color: var(--odx-color-transparent-pressed);display:flex;place-content:center;place-items:center;color:inherit;font-size:var(--_size);block-size:1em}.base{display:block;block-size:100%;inline-size:100%;aspect-ratio:1;animation:loading-spinner-rotation-animation 1.5s linear infinite}:host(:not([variant=\"dots\"])){inline-size:1em;.track,.indicator{stroke-width:var(--_track-size)}.track{stroke:var(--_track-color)}.indicator{stroke:currentColor;color:inherit;stroke-dasharray:90,180;stroke-dashoffset:-5;animation:loading-spinner-animation 1.5s ease-in-out infinite;stroke-linecap:round}:not(svg){transform-origin:0px 0px}}:host([variant=\"dots\"]){gap:calc(var(--_space) / 2);padding:var(--_space);animation:loading-spinner-dots-entry-animation .25s linear both;.indicator{background-color:currentColor;border-radius:50%;block-size:calc(var(--_size) / 3);flex:0 0 calc(var(--_size) / 3);z-index:3;animation:loading-spinner-dots-animation var(--_animation-duration) var(--_animation-delay) infinite cubic-bezier(.96,.21,.41,.76) forwards;&:nth-child(1){--_animation-delay: calc(-1 * var(--_animation-duration) / 6)}&:nth-child(2){--_animation-delay: calc(-1 * var(--_animation-duration) / 12)}&:nth-child(3){--_animation-delay: 0s}}}@keyframes loading-spinner-animation{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes loading-spinner-rotation-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading-spinner-dots-entry-animation{0%{opacity:0}to{opacity:1}}@keyframes loading-spinner-dots-animation{0%,75%,to{transform:scale(.667);background-color:var(--odx-color-transparent-pressed)}50%{transform:scale(1);background-color:currentColor}}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { property } from 'lit/decorators.js';
|
|
4
|
-
import styles from './loading-spinner.component.css.js';
|
|
5
|
-
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __typeError = (msg) => {
|
|
9
|
-
throw TypeError(msg);
|
|
10
|
-
};
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
20
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
21
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
22
|
-
var _OdxLoadingSpinnerComponent_instances, renderSpinner_fn, renderDots_fn;
|
|
23
|
-
let OdxLoadingSpinnerComponent = class extends CustomElement {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
__privateAdd(this, _OdxLoadingSpinnerComponent_instances);
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
if (this.variant === "dots") {
|
|
30
|
-
return __privateMethod(this, _OdxLoadingSpinnerComponent_instances, renderDots_fn).call(this);
|
|
31
|
-
}
|
|
32
|
-
return __privateMethod(this, _OdxLoadingSpinnerComponent_instances, renderSpinner_fn).call(this);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
_OdxLoadingSpinnerComponent_instances = new WeakSet();
|
|
36
|
-
renderSpinner_fn = function() {
|
|
37
|
-
return html`
|
|
38
|
-
<svg class="base" role="progressbar" aria-label="Loading" fill="none" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
|
|
39
|
-
<circle class="track" cx="24" cy="24" r="20" fill="none"></circle>
|
|
40
|
-
<circle class="indicator" cx="24" cy="24" r="20" fill="none"></circle>
|
|
41
|
-
</svg>
|
|
42
|
-
`;
|
|
43
|
-
};
|
|
44
|
-
renderDots_fn = function() {
|
|
45
|
-
return html`
|
|
46
|
-
<div class="indicator"></div>
|
|
47
|
-
<div class="indicator"></div>
|
|
48
|
-
<div class="indicator"></div>
|
|
49
|
-
`;
|
|
50
|
-
};
|
|
51
|
-
__decorateClass([
|
|
52
|
-
property({ reflect: true })
|
|
53
|
-
], OdxLoadingSpinnerComponent.prototype, "variant", 2);
|
|
54
|
-
OdxLoadingSpinnerComponent = __decorateClass([
|
|
55
|
-
customElement("odx-loading-spinner", [styles])
|
|
56
|
-
], OdxLoadingSpinnerComponent);
|
|
57
|
-
|
|
58
|
-
export { OdxLoadingSpinnerComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{aspect-ratio:92 / 36;background-color:currentColor;block-size:var(--_logo-block-size);display:inline-block;mask-image:url(\"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2091.6%2035.43'%3e%3cpath%20d='m81.18,29.07h5.63v-14.43c0-1.06,0-1.38.21-1.7.32-.74,1.17-1.17,2.23-1.17.96,0,1.59.21,2.34.74v-4.24c-6.27.11-8.29.53-10.41,2.23v18.56Zm-12.11-10.93v-4.24c0-1.59.74-2.44,2.34-2.44,1.49,0,2.34.85,2.34,2.33v4.35h-4.68Zm10.31,3.29v-8.06c0-3.4-1.81-4.99-5.63-4.99h-4.68c-2.02,0-2.87.21-3.93,1.06-1.06.96-1.7,2.33-1.7,3.93v10.71c0,1.48.43,2.55,1.38,3.61,1.06,1.06,2.02,1.38,4.25,1.38h10.2v-4.24c-2.87.85-4.57,1.06-6.69,1.06-2.44,0-3.51-.53-3.51-1.91v-2.55h10.31Zm-27.63,6.37c0-1.59.74-2.44,2.34-2.44s2.44.85,2.44,2.44v2.33c0,1.38-.85,2.23-2.34,2.23-1.59,0-2.44-.85-2.44-2.23v-2.33Zm10.41-.53c0-1.59-.32-2.65-1.17-3.61-1.06-1.17-2.23-1.49-4.46-1.49h-4.68c-2.12,0-2.97.21-4.04,1.06-1.06.95-1.7,2.44-1.7,4.03v3.08c0,1.49.53,2.76,1.38,3.61,1.06,1.17,2.02,1.48,4.36,1.48h4.68c2.02,0,2.98-.21,4.04-1.06,1.06-.95,1.59-2.12,1.59-4.03v-3.08Zm-10.41-13.58c0-1.38.85-2.23,2.44-2.23s2.44.85,2.44,2.23v2.44c0,1.38-.96,2.23-2.44,2.23-1.59,0-2.44-.85-2.44-2.23v-2.44Zm9.99-5.3h-9.99c-1.91,0-2.66.21-3.72,1.06-1.06.96-1.59,2.33-1.59,3.93v3.08c0,1.27.43,2.55,1.28,3.5,1.06,1.17,1.91,1.49,4.04,1.49h4.57c2.02,0,2.87-.32,3.83-1.06,1.06-.95,1.59-2.23,1.59-3.93v-8.06Zm-22.63,17.4h-2.44c-.96,0-1.7-.32-2.13-1.06-.21-.32-.21-.42-.21-1.38v-1.91c0-1.59.74-2.33,2.34-2.33h2.44v6.68Zm0-9.97h-4.89c-1.91,0-2.76.21-3.72,1.17-1.06.85-1.59,2.12-1.59,3.82v3.29c0,1.48.32,2.55,1.17,3.5,1.06,1.17,2.02,1.48,4.25,1.48h10.52v-15.81c0-1.38-.43-2.55-1.38-3.5-1.17-1.17-2.13-1.49-4.25-1.49h-8.5v4.24c2.13-.85,3.51-1.17,5.42-1.17,2.02,0,2.97.64,2.97,2.02v2.44Zm2.34-15.81c-1.81,0-3.19,1.38-3.19,3.08,0,1.8,1.38,3.18,3.19,3.18,1.7,0,3.08-1.38,3.08-3.18,0-1.7-1.38-3.08-3.08-3.08Zm-7.55,0c-1.81,0-3.19,1.38-3.19,3.08,0,1.8,1.38,3.18,3.19,3.18,1.7,0,3.08-1.38,3.08-3.18,0-1.7-1.38-3.08-3.08-3.08Zm-14.77,29.07h5.63v-14.43c0-1.06,0-1.38.21-1.7.32-.74,1.17-1.17,2.23-1.17.96,0,1.59.21,2.34.74v-4.24c-6.27.11-8.29.53-10.41,2.23v18.56ZM0,.72v2.97h9.14c1.06,0,1.59.21,2.13.74.43.53.43.74.43,2.65v15.29c0,2.87-.53,3.4-3.08,3.4h-2.55V6.67H0v22.4h11.26c2.66,0,3.4-.21,4.68-1.49,1.17-1.17,1.38-2.02,1.38-5.31V6.24c0-2.02-.21-2.76-1.06-3.82-1.06-1.17-2.44-1.7-4.36-1.7H0Z'%20/%3e%3c/svg%3e\");mask-repeat:no-repeat;mask-origin:content-box;mask-position:center center;margin-block:var(--_logo-spacing)}:host([compact]){aspect-ratio:1;mask-image:url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2017%2028'%3e%3cpath%20d='M0%200v2.97h9.14c1.06%200%201.59.21%202.13.74.43.53.43.74.43%202.65v15.29c0%202.87-.53%203.4-3.08%203.4H6.07V5.95H0v22.4h11.26c2.66%200%203.4-.21%204.68-1.49%201.17-1.17%201.38-2.02%201.38-5.31V5.52c0-2.02-.21-2.76-1.06-3.82C15.2.53%2013.82%200%2011.9%200H0Z'%20/%3e%3c/svg%3e\")}:host([size=\"xs\"]){--_logo-block-size: calc(var(--odx-size-150) - 2 * var(--odx-size-25));--_logo-spacing: var(--odx-size-25)}:host,:host([size=\"sm\"]){--_logo-block-size: var(--odx-size-150);--_logo-spacing: var(--odx-size-37)}:host([size=\"md\"]){--_logo-block-size: var(--odx-size-225);--_logo-spacing: var(--odx-size-37)}:host([size=\"lg\"]){--_logo-block-size: var(--odx-size-300);--_logo-spacing: var(--odx-size-37)}:host([size=\"xl\"]){--_logo-block-size: var(--odx-size-400);--_logo-spacing: var(--odx-size-37)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import styles from './logo.component.css.js';
|
|
4
|
-
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
-
if (decorator = decorators[i])
|
|
11
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
-
if (kind && result) __defProp(target, key, result);
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
|
-
let OdxLogoComponent = class extends CustomElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.compact = false;
|
|
19
|
-
}
|
|
20
|
-
connectedCallback() {
|
|
21
|
-
super.connectedCallback?.();
|
|
22
|
-
this.ariaLabel ||= "Dräger";
|
|
23
|
-
this.ariaRoleDescription ||= "Logo";
|
|
24
|
-
this.role = "img";
|
|
25
|
-
this.translate = false;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
__decorateClass([
|
|
29
|
-
property({ reflect: true })
|
|
30
|
-
], OdxLogoComponent.prototype, "size", 2);
|
|
31
|
-
__decorateClass([
|
|
32
|
-
property({ type: Boolean, reflect: true })
|
|
33
|
-
], OdxLogoComponent.prototype, "compact", 2);
|
|
34
|
-
OdxLogoComponent = __decorateClass([
|
|
35
|
-
customElement("odx-logo", [styles])
|
|
36
|
-
], OdxLogoComponent);
|
|
37
|
-
|
|
38
|
-
export { OdxLogoComponent };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __typeError = (msg) => {
|
|
6
|
-
throw TypeError(msg);
|
|
7
|
-
};
|
|
8
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
-
if (decorator = decorators[i])
|
|
12
|
-
result = (decorator(result)) || result;
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
16
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
17
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
18
|
-
var _handleClick;
|
|
19
|
-
let OdxMainMenuButtonComponent = class extends CustomElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
__privateAdd(this, _handleClick, () => {
|
|
23
|
-
document.querySelector("odx-main-menu")?.open();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return html`
|
|
28
|
-
<odx-icon-button aria-label="Open main menu" icon="core::menu" variant="ghost" @click=${__privateGet(this, _handleClick)}>
|
|
29
|
-
</odx-icon-button>
|
|
30
|
-
`;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
_handleClick = new WeakMap();
|
|
34
|
-
OdxMainMenuButtonComponent = __decorateClass([
|
|
35
|
-
customElement("odx-main-menu-button", [])
|
|
36
|
-
], OdxMainMenuButtonComponent);
|
|
37
|
-
|
|
38
|
-
export { OdxMainMenuButtonComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_color-fill: var(--odx-palette-transparent);--_color-text: inherit;--_color-outline: var(--odx-palette-transparent);user-select:none}.base{display:flex;place-items:center;background-color:var(--_color-fill);color:var(--_color-text);gap:var(--odx-size-50);block-size:var(--odx-size-300);padding-inline:var(--odx-size-100);font-weight:var(--odx-font-weight-medium);border-radius:var(--odx-border-radius-sm);outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset);outline-color:var(--_color-outline);transition:var(--odx-transition-default);text-decoration:none;&:focus-visible{--_color-outline: var(--odx-focus-ring-color)}}:host(:hover){--_color-fill: var(--odx-color-foreground-highlight)}:host(:is([active],:active)){--_color-fill: var(--odx-color-foreground-highlight-pressed)}:host([aria-disabled=\"true\"]){--_color-text: var(--odx-color-disabled-foreground-brand);pointer-events:none}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { customElement } from '@odx/foundation';
|
|
2
|
-
import styles from './main-menu-link.component.css.js';
|
|
3
|
-
import { BaseLink } from '../link/base-link.js';
|
|
4
|
-
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
8
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
-
if (decorator = decorators[i])
|
|
10
|
-
result = (decorator(result)) || result;
|
|
11
|
-
return result;
|
|
12
|
-
};
|
|
13
|
-
let OdxMainMenuLinkComponent = class extends BaseLink {
|
|
14
|
-
};
|
|
15
|
-
OdxMainMenuLinkComponent = __decorateClass([
|
|
16
|
-
customElement("odx-main-menu-link", [styles])
|
|
17
|
-
], OdxMainMenuLinkComponent);
|
|
18
|
-
|
|
19
|
-
export { OdxMainMenuLinkComponent };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
7
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8
|
-
if (decorator = decorators[i])
|
|
9
|
-
result = (decorator(result)) || result;
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
let OdxMainMenuSubtitleComponent = class extends CustomElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.slot = "subtitle";
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return html`
|
|
19
|
-
<odx-text size="md">
|
|
20
|
-
<slot></slot>
|
|
21
|
-
</odx-text>
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
OdxMainMenuSubtitleComponent = __decorateClass([
|
|
26
|
-
customElement("odx-main-menu-subtitle")
|
|
27
|
-
], OdxMainMenuSubtitleComponent);
|
|
28
|
-
|
|
29
|
-
export { OdxMainMenuSubtitleComponent };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
7
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8
|
-
if (decorator = decorators[i])
|
|
9
|
-
result = (decorator(result)) || result;
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
let OdxMainMenuTitleComponent = class extends CustomElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.slot = "title";
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return html`
|
|
19
|
-
<odx-title size="sm">
|
|
20
|
-
<slot></slot>
|
|
21
|
-
</odx-title>
|
|
22
|
-
`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
OdxMainMenuTitleComponent = __decorateClass([
|
|
26
|
-
customElement("odx-main-menu-title")
|
|
27
|
-
], OdxMainMenuTitleComponent);
|
|
28
|
-
|
|
29
|
-
export { OdxMainMenuTitleComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--odx-link-color: var(--odx-color-foreground-light);--odx-link-color-hover: var(--odx-color-foreground-light);--odx-link-color-disabled: var(--odx-color-disabled-foreground-brand);--_transition-duration: var(--odx-motion-duration-default);grid-template-rows:auto 1fr auto auto;block-size:100%;inline-size:var(--odx-main-menu-max-width, min(100dvw, 384px));border:none;background-color:var(--odx-color-background-draeger);color:var(--odx-color-foreground-light);margin:0;padding:0;transform:translate(-100%);box-shadow:var(--odx-shadow-level-2);transition:transform var(--_transition-duration) allow-discrete,overlay var(--_transition-duration) allow-discrete,display var(--_transition-duration) allow-discrete}:host(:popover-open){display:grid;opacity:1;transform:translate(0);@starting-style{opacity:0;transform:translate(-100%)}}:host::backdrop{background-color:var(--odx-color-backdrop);backdrop-filter:blur(0);opacity:0;transition:backdrop-filter var(--_transition-duration),opacity var(--_transition-duration);cursor:default}:host(:popover-open)::backdrop{backdrop-filter:blur(var(--odx-elevation-blur));opacity:1}@starting-style{:host(:popover-open)::backdrop{backdrop-filter:blur(0);opacity:0}}[part~=navigation]{padding:var(--odx-size-75);overflow-y:auto}[part~=header]{padding-inline:var(--odx-size-150);padding-block-start:var(--odx-size-75);padding-block-end:clamp(0px,4dvh - calc(var(--odx-size-75)),var(--odx-size-75))}[part~=link-navigation],[part~=footer]{padding:var(--odx-size-150);padding-block:clamp(var(--odx-size-75),4dvh,var(--odx-size-150))}[part~=link-navigation]{padding-block-end:0;padding-block-start:var(--odx-size-75);column-gap:var(--odx-size-100)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { CustomElement, FocusTrapController, customElement } from '@odx/foundation';
|
|
2
|
-
import { isServer, html } from 'lit';
|
|
3
|
-
import { queryAssignedElements } from 'lit/decorators.js';
|
|
4
|
-
import styles from './main-menu.component.css.js';
|
|
5
|
-
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __typeError = (msg) => {
|
|
9
|
-
throw TypeError(msg);
|
|
10
|
-
};
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
20
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
21
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
22
|
-
var _focusTrap, _handleSlotChange, _handleToggle;
|
|
23
|
-
let OdxMainMenuComponent = class extends CustomElement {
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
__privateAdd(this, _focusTrap, new FocusTrapController(this));
|
|
27
|
-
__privateAdd(this, _handleSlotChange, () => {
|
|
28
|
-
for (const link of this.links) {
|
|
29
|
-
link.slot ||= "link-navigation";
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
__privateAdd(this, _handleToggle, ({ newState }) => {
|
|
33
|
-
__privateGet(this, _focusTrap).toggle(newState === "open");
|
|
34
|
-
});
|
|
35
|
-
if (!isServer) {
|
|
36
|
-
this.addEventListener("toggle", __privateGet(this, _handleToggle));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
connectedCallback() {
|
|
40
|
-
super.connectedCallback?.();
|
|
41
|
-
this.popover = "auto";
|
|
42
|
-
}
|
|
43
|
-
toggle() {
|
|
44
|
-
this.togglePopover();
|
|
45
|
-
}
|
|
46
|
-
open() {
|
|
47
|
-
this.showPopover();
|
|
48
|
-
}
|
|
49
|
-
close() {
|
|
50
|
-
this.hidePopover();
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return html`
|
|
54
|
-
<div part="header">
|
|
55
|
-
<slot name="title"></slot>
|
|
56
|
-
<slot name="subtitle"></slot>
|
|
57
|
-
</div>
|
|
58
|
-
<nav part="navigation">
|
|
59
|
-
<odx-stack gap="md" align="stretch" vertical>
|
|
60
|
-
<slot @slotchange=${__privateGet(this, _handleSlotChange)}></slot>
|
|
61
|
-
</odx-stack>
|
|
62
|
-
</nav>
|
|
63
|
-
<odx-stack part="link-navigation" gap="xs" wrap horizontal justify="start">
|
|
64
|
-
<slot name="link-navigation"></slot>
|
|
65
|
-
</odx-stack>
|
|
66
|
-
<div part="footer">
|
|
67
|
-
<odx-logo size="sm"></odx-logo>
|
|
68
|
-
</div>
|
|
69
|
-
`;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
_focusTrap = new WeakMap();
|
|
73
|
-
_handleSlotChange = new WeakMap();
|
|
74
|
-
_handleToggle = new WeakMap();
|
|
75
|
-
__decorateClass([
|
|
76
|
-
queryAssignedElements({ selector: "odx-link", flatten: true })
|
|
77
|
-
], OdxMainMenuComponent.prototype, "links", 2);
|
|
78
|
-
OdxMainMenuComponent = __decorateClass([
|
|
79
|
-
customElement("odx-main-menu", [styles])
|
|
80
|
-
], OdxMainMenuComponent);
|
|
81
|
-
|
|
82
|
-
export { OdxMainMenuComponent };
|