@odx/foundation 1.0.0-alpha.4 → 1.0.0-alpha.41
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 +24 -19
- 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 → popover-host.d.ts} +4 -3
- package/dist/cdk/popover/popover.d.ts +12 -0
- package/dist/cdk/popover/popover.utils.d.ts +1 -1
- package/dist/cdk.js +356 -0
- package/dist/components/accordion/accordion-header.d.ts +18 -0
- package/dist/components/accordion/accordion-panel.d.ts +12 -0
- package/dist/components/accordion/accordion.d.ts +17 -0
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/action-group/action-group.d.ts +24 -0
- package/dist/components/action-group/index.d.ts +2 -0
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +21 -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 → area-header.d.ts} +5 -5
- package/dist/components/area-header/index.d.ts +2 -2
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar-group/avatar-group.d.ts +14 -0
- package/dist/components/avatar-group/index.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.models.d.ts +4 -0
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +17 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +23 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/base-button.d.ts +10 -6
- package/dist/components/button/{button.component.d.ts → button.d.ts} +9 -6
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button-group/button-group.d.ts +21 -0
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/card/card.d.ts +13 -0
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/{checkbox.component.d.ts → checkbox.d.ts} +4 -4
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +14 -0
- package/dist/components/checkbox-group/index.d.ts +2 -2
- package/dist/components/chip/{chip.component.d.ts → chip.d.ts} +6 -6
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/circular-progress-bar/{circular-progress-bar.component.d.ts → circular-progress-bar.d.ts} +5 -5
- package/dist/components/circular-progress-bar/index.d.ts +2 -2
- package/dist/components/content-box/content-box.d.ts +11 -0
- package/dist/components/content-box/content-box.models.d.ts +1 -0
- package/dist/components/content-box/index.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts +24 -0
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/{elements/form-field/form-field.element.d.ts → components/form-field/form-field.d.ts} +4 -4
- package/dist/components/form-field/index.d.ts +2 -0
- package/dist/components/format/base-format.d.ts +13 -0
- package/dist/components/format/format-bytes.d.ts +13 -0
- package/dist/components/format/format-date.d.ts +14 -0
- package/dist/components/format/{format-number.component.d.ts → format-number.d.ts} +5 -5
- package/dist/components/format/index.d.ts +5 -4
- package/dist/components/format/{relative-time.component.d.ts → relative-time.d.ts} +5 -5
- package/dist/components/header/header-actions.d.ts +10 -0
- package/dist/components/header/{header.component.d.ts → header.d.ts} +4 -4
- package/dist/components/header/index.d.ts +2 -2
- package/dist/components/headline/headline.d.ts +13 -0
- package/dist/components/headline/index.d.ts +2 -2
- package/dist/components/highlight/highlight.d.ts +14 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/icon-button/{icon-button.component.d.ts → icon-button.d.ts} +4 -4
- 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.d.ts +14 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.d.ts +21 -0
- package/dist/components/line-clamp/index.d.ts +1 -1
- package/dist/components/line-clamp/line-clamp.d.ts +12 -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.d.ts +11 -0
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/list-item.d.ts +23 -0
- package/dist/components/list/list.d.ts +11 -0
- package/dist/components/loading-overlay/index.d.ts +1 -1
- package/dist/components/loading-overlay/{loading-overlay.component.d.ts → loading-overlay.d.ts} +5 -5
- package/dist/components/loading-spinner/index.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.d.ts +13 -0
- package/dist/components/logo/index.d.ts +2 -2
- package/dist/components/logo/logo.d.ts +13 -0
- package/dist/components/main-menu/index.d.ts +5 -5
- package/dist/components/main-menu/main-menu-button.d.ts +12 -0
- package/dist/components/main-menu/main-menu-link.d.ts +9 -0
- package/dist/components/main-menu/main-menu-subtitle.d.ts +12 -0
- package/dist/components/main-menu/main-menu-title.d.ts +12 -0
- package/dist/components/main-menu/{main-menu.component.d.ts → main-menu.d.ts} +4 -4
- package/dist/components/main.d.ts +62 -51
- package/dist/components/menu/index.d.ts +2 -3
- package/dist/components/menu/menu-label.d.ts +9 -0
- package/dist/components/menu/menu.d.ts +24 -0
- package/dist/components/menu-item/index.d.ts +2 -0
- package/dist/components/menu-item/menu-item.d.ts +14 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +35 -0
- package/dist/components/modal/modal.models.d.ts +5 -0
- package/dist/components/navigation-item/index.d.ts +2 -2
- package/dist/components/navigation-item/navigation-item.d.ts +14 -0
- package/dist/components/option/index.d.ts +1 -1
- package/dist/components/option/option.d.ts +12 -0
- package/dist/components/page/index.d.ts +2 -2
- package/dist/components/page/{page.component.d.ts → page.d.ts} +5 -5
- package/dist/components/page-layout/index.d.ts +1 -1
- package/dist/components/page-layout/page-layout.d.ts +11 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +32 -0
- package/dist/components/progress-bar/index.d.ts +2 -2
- package/dist/components/progress-bar/{progress-bar.component.d.ts → progress-bar.d.ts} +5 -5
- package/dist/components/radio-button/index.d.ts +1 -1
- package/dist/components/radio-button/radio-button.d.ts +13 -0
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/radio-group.d.ts +11 -0
- package/dist/components/rail-navigation/index.d.ts +1 -1
- package/dist/components/rail-navigation/rail-navigation.d.ts +19 -0
- package/dist/components/search-bar/index.d.ts +3 -3
- package/dist/components/search-bar/{search-bar.component.d.ts → search-bar.d.ts} +6 -5
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/select.d.ts +18 -0
- package/dist/components/separator/index.d.ts +2 -1
- package/dist/components/separator/separator.d.ts +16 -0
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/skeleton.d.ts +16 -0
- package/dist/components/skeleton/skeleton.models.d.ts +13 -0
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/{slider-handle.component.d.ts → slider-handle.d.ts} +7 -7
- package/dist/components/slider/{slider-marks.component.d.ts → slider-marks.d.ts} +5 -5
- package/dist/components/slider/slider.d.ts +27 -0
- package/dist/components/spacer/index.d.ts +1 -1
- package/dist/components/spacer/spacer.d.ts +13 -0
- package/dist/components/spinbox/index.d.ts +1 -1
- package/dist/components/spinbox/{spinbox.component.d.ts → spinbox.d.ts} +5 -5
- package/dist/components/stack/index.d.ts +2 -2
- package/dist/components/stack/{stack.component.d.ts → stack.d.ts} +5 -5
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +12 -0
- package/dist/components/table/index.d.ts +9 -0
- package/dist/components/table/table-body.d.ts +12 -0
- package/dist/components/table/table-cell.d.ts +12 -0
- package/dist/{elements/table/elements/table-checkbox-cell/table-checkbox-cell.element.d.ts → components/table/table-checkbox-cell.d.ts} +4 -4
- package/dist/components/table/table-header-cell.d.ts +13 -0
- package/dist/components/table/table-header.d.ts +14 -0
- package/dist/{elements/table/elements/table-row/table-row.element.d.ts → components/table/table-row.d.ts} +4 -4
- package/dist/components/table/table.d.ts +20 -0
- package/dist/{elements/table/table.context.d.ts → components/table/table.models.d.ts} +1 -1
- package/dist/components/text/index.d.ts +2 -2
- package/dist/components/text/text.d.ts +13 -0
- package/dist/components/text/text.models.d.ts +1 -0
- package/dist/components/title/index.d.ts +2 -2
- package/dist/components/title/title.d.ts +13 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast.d.ts +13 -0
- package/dist/{elements/toast/models/toast-variant.d.ts → components/toast/toast.models.d.ts} +1 -1
- package/dist/components/toggle-button/index.d.ts +1 -1
- package/dist/components/toggle-button/{toggle-button.component.d.ts → toggle-button.d.ts} +4 -4
- package/dist/components/toggle-content/index.d.ts +2 -0
- package/dist/components/toggle-content/toggle-content.d.ts +13 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/{elements/tooltip/tooltip.element.d.ts → components/tooltip/tooltip.d.ts} +6 -7
- package/dist/{elements/tooltip/models/tooltip-placement.d.ts → components/tooltip/tooltip.models.d.ts} +1 -1
- package/dist/components/translate/index.d.ts +2 -0
- package/dist/components/translate/translate.d.ts +16 -0
- package/dist/components/visually-hidden/index.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/components.js +5042 -0
- package/dist/i18n/lib/config.d.ts +29 -0
- package/dist/i18n/lib/format.d.ts +6 -0
- package/dist/i18n/lib/is-localized.mixin.d.ts +15 -0
- 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 +145 -0
- package/dist/lib/custom-element.d.ts +10 -0
- 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 +3 -3
- package/dist/lib/mixins/can-be-expanded.d.ts +12 -0
- 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-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/{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/loader/main.d.ts +2 -0
- package/dist/loader.js +13 -0
- package/dist/main.js +1124 -0
- package/dist/styles.css +1 -0
- package/dist/vendor-C_WVAD3D.js +3680 -0
- package/dist/vite.config.d.ts +3 -0
- package/package.json +28 -27
- package/dist/assets/draeger-pangea-text-medium.woff2 +0 -0
- package/dist/assets/draeger-pangea-text-regular.woff2 +0 -0
- package/dist/assets/draeger-pangea-text-semibold.woff2 +0 -0
- package/dist/assets/fonts.css +0 -20
- 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.d.ts +0 -12
- 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.d.ts +0 -18
- 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.d.ts +0 -11
- 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.d.ts +0 -18
- 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.d.ts +0 -14
- 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.d.ts +0 -14
- 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.d.ts +0 -13
- 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.d.ts +0 -18
- 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.d.ts +0 -13
- 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.d.ts +0 -14
- 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.d.ts +0 -11
- 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.d.ts +0 -23
- 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.d.ts +0 -13
- package/dist/components/format/format-bytes.component.js +0 -46
- package/dist/components/format/format-date.component.d.ts +0 -14
- 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.d.ts +0 -12
- 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.d.ts +0 -10
- 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.d.ts +0 -13
- 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 -33
- package/dist/components/inline-message/inline-message.component.css.js +0 -3
- package/dist/components/inline-message/inline-message.component.d.ts +0 -14
- 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.d.ts +0 -20
- 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.d.ts +0 -12
- 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.d.ts +0 -11
- 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.d.ts +0 -11
- 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.d.ts +0 -11
- 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 -78
- package/dist/components/loading-spinner/loading-spinner.component.css.js +0 -3
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +0 -13
- 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.d.ts +0 -13
- 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.d.ts +0 -12
- 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.d.ts +0 -9
- package/dist/components/main-menu/main-menu-link.component.js +0 -19
- package/dist/components/main-menu/main-menu-subtitle.component.d.ts +0 -12
- package/dist/components/main-menu/main-menu-subtitle.component.js +0 -29
- package/dist/components/main-menu/main-menu-title.component.d.ts +0 -12
- 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.d.ts +0 -11
- 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.d.ts +0 -24
- 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.d.ts +0 -16
- 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.d.ts +0 -12
- 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.d.ts +0 -11
- 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.d.ts +0 -13
- 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.d.ts +0 -11
- 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.d.ts +0 -24
- 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.d.ts +0 -18
- 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.d.ts +0 -16
- package/dist/components/separator/separator.component.js +0 -49
- package/dist/components/skeleton/skeleton.component.css.js +0 -3
- package/dist/components/skeleton/skeleton.component.d.ts +0 -12
- 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.d.ts +0 -27
- 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.d.ts +0 -13
- 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.d.ts +0 -12
- 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.d.ts +0 -13
- 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.d.ts +0 -13
- 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.d.ts +0 -11
- 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.d.ts +0 -12
- 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.d.ts +0 -12
- 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.d.ts +0 -14
- 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.d.ts +0 -13
- 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.d.ts +0 -20
- 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.d.ts +0 -13
- 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.d.ts +0 -13
- 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.d.ts +0 -11
- 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.d.ts +0 -10
- 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/public/assets/draeger-pangea-text-medium.woff2 +0 -0
- package/public/assets/draeger-pangea-text-regular.woff2 +0 -0
- package/public/assets/draeger-pangea-text-semibold.woff2 +0 -0
- package/public/assets/fonts.css +0 -20
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { consume } from '@lit/context';
|
|
2
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
3
|
-
import { html, nothing } from 'lit';
|
|
4
|
-
import { property } from 'lit/decorators.js';
|
|
5
|
-
import { repeat } from 'lit/directives/repeat.js';
|
|
6
|
-
import styles from './slider-marks.component.css.js';
|
|
7
|
-
import { sliderContext } from './slider.models.js';
|
|
8
|
-
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
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
|
-
let OdxSliderMarksComponent = class extends CustomElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.context = sliderContext.defaultValue;
|
|
23
|
-
this.showLabels = false;
|
|
24
|
-
}
|
|
25
|
-
async connectedCallback() {
|
|
26
|
-
super.connectedCallback?.();
|
|
27
|
-
this.slot = "marks";
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
const step = this.step ?? this.context.step;
|
|
31
|
-
const markCount = Math.floor(this.context.range / step);
|
|
32
|
-
const marks = new Array(markCount).fill(null).map((_, index) => step * index + this.context.min);
|
|
33
|
-
return html`
|
|
34
|
-
${repeat(marks, (value) => this.renderMark(value))}
|
|
35
|
-
${this.renderMark(this.context.max, true)}
|
|
36
|
-
`;
|
|
37
|
-
}
|
|
38
|
-
renderMark(value, last = false) {
|
|
39
|
-
const label = this.showLabels ? html`<odx-text part="mark-label" size="xs" highlight>${value}</odx-text>` : nothing;
|
|
40
|
-
return html`
|
|
41
|
-
<div part="mark" ?last=${last}>
|
|
42
|
-
<span part="mark-tick"></span>
|
|
43
|
-
${label}
|
|
44
|
-
</div>
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
__decorateClass([
|
|
49
|
-
consume({ context: sliderContext.context, subscribe: true })
|
|
50
|
-
], OdxSliderMarksComponent.prototype, "context", 2);
|
|
51
|
-
__decorateClass([
|
|
52
|
-
property({ type: Number })
|
|
53
|
-
], OdxSliderMarksComponent.prototype, "step", 2);
|
|
54
|
-
__decorateClass([
|
|
55
|
-
property({ type: Boolean, reflect: true })
|
|
56
|
-
], OdxSliderMarksComponent.prototype, "showLabels", 2);
|
|
57
|
-
OdxSliderMarksComponent = __decorateClass([
|
|
58
|
-
customElement("odx-slider-marks", [styles])
|
|
59
|
-
], OdxSliderMarksComponent);
|
|
60
|
-
|
|
61
|
-
export { OdxSliderMarksComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_track-size: var(--odx-size-25);--_track-color: var(--odx-slider-track-color, var(--odx-color-primary-rest));--_layer-background: 0;--_layer-interactive-disabled: 1;--_layer-interactive: 2;--_layer-foreground: 3;display:flex;flex-direction:column;place-content:center;min-height:var(--odx-size-300);padding-block-start:var(--odx-size-75);padding-block-end:var(--odx-size-50);padding-inline:var(--odx-size-75);cursor:pointer}:host(:active){cursor:grabbing}:host::part(container){block-size:var(--_track-size);position:relative;background-color:var(--odx-palette-coolgray-40);border-radius:var(--odx-border-radius-sm)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { DragController } from '@odx/foundation/cdk';
|
|
3
|
-
import { TemplateResult } from 'lit';
|
|
4
|
-
import { OdxSliderHandleComponent } from './slider-handle.component';
|
|
5
|
-
import { SliderLabelVisibility } from './slider.models';
|
|
6
|
-
declare global {
|
|
7
|
-
interface HTMLElementTagNameMap {
|
|
8
|
-
'odx-slider': OdxSliderComponent;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export declare class OdxSliderComponent extends CustomElement {
|
|
12
|
-
#private;
|
|
13
|
-
protected dragController: DragController<OdxSliderHandleComponent>;
|
|
14
|
-
protected context: import('./slider.models').SliderContext;
|
|
15
|
-
protected container: HTMLElement;
|
|
16
|
-
set step(value: number);
|
|
17
|
-
get step(): number;
|
|
18
|
-
set minRange(value: number);
|
|
19
|
-
get minRange(): number;
|
|
20
|
-
set labelVisibility(value: SliderLabelVisibility);
|
|
21
|
-
get labelVisibility(): SliderLabelVisibility;
|
|
22
|
-
set unit(value: string);
|
|
23
|
-
get unit(): string;
|
|
24
|
-
constructor();
|
|
25
|
-
protected render(): TemplateResult;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=slider.component.d.ts.map
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { provide } from '@lit/context';
|
|
2
|
-
import { CustomElement, getKeyboardEventInfo, customElement } from '@odx/foundation';
|
|
3
|
-
import { DragController } from '@odx/foundation/cdk';
|
|
4
|
-
import { minBy, maxBy } from 'es-toolkit';
|
|
5
|
-
import { isServer, html } from 'lit';
|
|
6
|
-
import { query, property } from 'lit/decorators.js';
|
|
7
|
-
import { OdxSliderHandleComponent } from './slider-handle.component.js';
|
|
8
|
-
import styles from './slider.component.css.js';
|
|
9
|
-
import { sliderContext } from './slider.models.js';
|
|
10
|
-
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __typeError = (msg) => {
|
|
14
|
-
throw TypeError(msg);
|
|
15
|
-
};
|
|
16
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
17
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
18
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
19
|
-
if (decorator = decorators[i])
|
|
20
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
21
|
-
if (kind && result) __defProp(target, key, result);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
25
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
26
|
-
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);
|
|
27
|
-
var _handleKeyboardEvent, _handleSlotChange;
|
|
28
|
-
let OdxSliderComponent = class extends CustomElement {
|
|
29
|
-
constructor() {
|
|
30
|
-
super();
|
|
31
|
-
this.dragController = new DragController(this, {
|
|
32
|
-
getDraggableElements: () => Array.from(this.querySelectorAll(OdxSliderHandleComponent.selector)),
|
|
33
|
-
getContainer: () => this.container
|
|
34
|
-
});
|
|
35
|
-
this.context = sliderContext.defaultValue;
|
|
36
|
-
__privateAdd(this, _handleKeyboardEvent, (event) => {
|
|
37
|
-
const { actions, direction } = getKeyboardEventInfo(event);
|
|
38
|
-
const target = event.target;
|
|
39
|
-
if (target.localName !== OdxSliderHandleComponent.selector || actions.tab || actions.backTab || target.disabled) return;
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
event.stopPropagation();
|
|
42
|
-
if (direction.left || direction.down) {
|
|
43
|
-
target.value -= this.step;
|
|
44
|
-
} else if (direction.right || direction.up) {
|
|
45
|
-
target.value += this.step;
|
|
46
|
-
} else if (actions.start) {
|
|
47
|
-
target.value = this.context.min;
|
|
48
|
-
} else if (actions.end) {
|
|
49
|
-
target.value = this.context.max;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
__privateAdd(this, _handleSlotChange, async () => {
|
|
53
|
-
const elements = this.dragController.draggableElements;
|
|
54
|
-
const min = minBy(elements, (elment) => elment.min)?.min ?? 0;
|
|
55
|
-
const max = maxBy(elements, (element) => element.max)?.max ?? 1;
|
|
56
|
-
this.context = { ...this.context, min, max, range: Math.abs(max - min) };
|
|
57
|
-
});
|
|
58
|
-
if (!isServer) {
|
|
59
|
-
this.addEventListener("keydown", __privateGet(this, _handleKeyboardEvent));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
set step(value) {
|
|
63
|
-
this.context = { ...this.context, step: Math.max(1, value) };
|
|
64
|
-
}
|
|
65
|
-
get step() {
|
|
66
|
-
return this.context.step;
|
|
67
|
-
}
|
|
68
|
-
set minRange(value) {
|
|
69
|
-
this.context = { ...this.context, minRange: Math.max(0, value) };
|
|
70
|
-
}
|
|
71
|
-
get minRange() {
|
|
72
|
-
return this.context.minRange;
|
|
73
|
-
}
|
|
74
|
-
set labelVisibility(value) {
|
|
75
|
-
this.context = { ...this.context, labelVisibility: value };
|
|
76
|
-
}
|
|
77
|
-
get labelVisibility() {
|
|
78
|
-
return this.context.labelVisibility;
|
|
79
|
-
}
|
|
80
|
-
set unit(value) {
|
|
81
|
-
this.context = { ...this.context, unit: value.trim() };
|
|
82
|
-
}
|
|
83
|
-
get unit() {
|
|
84
|
-
return this.context.unit;
|
|
85
|
-
}
|
|
86
|
-
render() {
|
|
87
|
-
return html`
|
|
88
|
-
<div part="container" role="presentation">
|
|
89
|
-
<slot name="thumbs" @slotchange=${__privateGet(this, _handleSlotChange)}></slot>
|
|
90
|
-
<slot name="marks"></slot>
|
|
91
|
-
</div>
|
|
92
|
-
`;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
_handleKeyboardEvent = new WeakMap();
|
|
96
|
-
_handleSlotChange = new WeakMap();
|
|
97
|
-
__decorateClass([
|
|
98
|
-
provide({ context: sliderContext.context })
|
|
99
|
-
], OdxSliderComponent.prototype, "context", 2);
|
|
100
|
-
__decorateClass([
|
|
101
|
-
query('[part="container"]', true)
|
|
102
|
-
], OdxSliderComponent.prototype, "container", 2);
|
|
103
|
-
__decorateClass([
|
|
104
|
-
property({ type: Number })
|
|
105
|
-
], OdxSliderComponent.prototype, "step", 1);
|
|
106
|
-
__decorateClass([
|
|
107
|
-
property({ type: Number })
|
|
108
|
-
], OdxSliderComponent.prototype, "minRange", 1);
|
|
109
|
-
__decorateClass([
|
|
110
|
-
property()
|
|
111
|
-
], OdxSliderComponent.prototype, "labelVisibility", 1);
|
|
112
|
-
__decorateClass([
|
|
113
|
-
property()
|
|
114
|
-
], OdxSliderComponent.prototype, "unit", 1);
|
|
115
|
-
OdxSliderComponent = __decorateClass([
|
|
116
|
-
customElement("odx-slider", [styles])
|
|
117
|
-
], OdxSliderComponent);
|
|
118
|
-
|
|
119
|
-
export { OdxSliderComponent };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createContext } from '@lit/context';
|
|
2
|
-
|
|
3
|
-
const SliderLabelVisibility = {
|
|
4
|
-
AUTO: "auto",
|
|
5
|
-
HIDDEN: "hidden"
|
|
6
|
-
};
|
|
7
|
-
const SliderTrackVisibility = {
|
|
8
|
-
AUTO: "auto",
|
|
9
|
-
HIDDEN: "hidden",
|
|
10
|
-
VISIBLE: "visible"
|
|
11
|
-
};
|
|
12
|
-
const sliderContext = {
|
|
13
|
-
context: createContext("odx-slider::context"),
|
|
14
|
-
defaultValue: { step: 1, min: 0, max: 100, minRange: 0, maxRange: 0, range: 100, labelVisibility: SliderLabelVisibility.AUTO, unit: "" }
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { SliderLabelVisibility, SliderTrackVisibility, sliderContext };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--gap-offset: 0;--size: 0;display:block;inline-size:100%;block-size:var(--size);margin:calc(-1 * var(--gap-offset)) 0}:host([dynamic]){block-size:100%;flex:1 1 auto;max-block-size:var(--size)}:host([horizontal]){block-size:100%;inline-size:var(--size);margin:0 calc(-1 * var(--gap-offset))}:host([dynamic][horizontal]){inline-size:100%;max-inline-size:var(--size)}:host([fill]){min-block-size:var(--size);flex:1 1 var(--size)}:host([fill][horizontal]){min-inline-size:var(--size);flex:1 1 var(--size)}:host([fill][dynamic]){min-block-size:auto;min-inline-size:auto;max-block-size:100%;flex:1 1 auto}:host-context(odx-rail-navigation){--size: var(--odx-size-300);--gap-offset: var(--odx-size-75)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'odx-spacer': OdxSpacerComponent;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare class OdxSpacerComponent extends CustomElement {
|
|
8
|
-
horizontal: boolean;
|
|
9
|
-
dynamic: boolean;
|
|
10
|
-
fill: boolean;
|
|
11
|
-
protected render(): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=spacer.component.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import styles from './spacer.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 OdxSpacerComponent = class extends CustomElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.horizontal = false;
|
|
19
|
-
this.dynamic = false;
|
|
20
|
-
this.fill = false;
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return "";
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
__decorateClass([
|
|
27
|
-
property({ type: Boolean, reflect: true })
|
|
28
|
-
], OdxSpacerComponent.prototype, "horizontal", 2);
|
|
29
|
-
__decorateClass([
|
|
30
|
-
property({ type: Boolean, reflect: true })
|
|
31
|
-
], OdxSpacerComponent.prototype, "dynamic", 2);
|
|
32
|
-
__decorateClass([
|
|
33
|
-
property({ type: Boolean, reflect: true })
|
|
34
|
-
], OdxSpacerComponent.prototype, "fill", 2);
|
|
35
|
-
OdxSpacerComponent = __decorateClass([
|
|
36
|
-
customElement("odx-spacer", [styles])
|
|
37
|
-
], OdxSpacerComponent);
|
|
38
|
-
|
|
39
|
-
export { OdxSpacerComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_color-background: var(--odx-color-input-control-fill);--_color-stroke: var(--odx-color-input-control-stroke);--_color-foreground: var(--odx-color-foreground);display:grid;width:min-content;grid-template-columns:auto 1fr auto;grid-template-areas:\"decrement input increment\"}[part~=action],::slotted(input){border:var(--odx-border-width-thin) solid var(--_color-stroke);background-color:var(--_color-background);outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset);block-size:var(--odx-size-225);color:var(--_color-foreground);transition:var(--odx-transition-reduced);transition-property:background-color,border-color,color,outline-color}::slotted(input){grid-area:input;min-width:auto;padding:0 var(--odx-size-75)!important;text-align:center;min-inline-size:var(--odx-size-400);appearance:textfield;font-weight:var(--odx-typography-font-weight-medium)!important}[part~=action]{display:flex;place-content:center;place-items:center;inline-size:var(--odx-size-225);cursor:pointer;border-radius:var(--odx-border-radius-controls);font-size:var(--odx-typography-font-size-3)}[part~=action-increment]{grid-area:increment;border-start-start-radius:0;border-end-start-radius:0;border-inline-start:none}[part~=action-decrement]{grid-area:decrement;border-start-end-radius:0;border-end-end-radius:0;border-inline-end:none}[part~=action]:hover,::slotted(input:hover){--_color-background: var(--odx-color-input-control-fill-hover)}::slotted(input:hover){--_color-stroke: var(--odx-color-input-control-stroke-hover)}[part~=action]:focus-visible,::slotted(input:focus-visible){outline-color:var(--odx-focus-ring-color);z-index:1}:host([aria-disabled=\"true\"]) ::slotted(input),[part~=action]:disabled{--_color-background: var(--odx-color-disabled-fill);--_color-foreground: var(--odx-color-disabled-foreground);cursor:not-allowed}:host([compact]:not([compact=\"false\"])){grid-template-columns:1fr auto;grid-template-rows:1fr 1fr;grid-template-areas:\"input increment\" \"input decrement\";[part~=action]{block-size:calc(var(--odx-size-225) / 2);font-size:var(--odx-typography-font-size-1);border-inline-end:var(--odx-border-width-thin) solid var(--odx-color-input-control-stroke);border-inline-start:none;border-radius:var(--odx-border-radius-controls)}[part~=action-increment]{border-block-end:none;border-start-start-radius:0;border-end-start-radius:0;border-end-end-radius:0}[part~=action-decrement]{border-start-start-radius:0;border-end-start-radius:0;border-start-end-radius:0}::slotted(input){border-start-start-radius:var(--odx-border-radius-controls);border-end-start-radius:var(--odx-border-radius-controls)}}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { queryAssignedElements, property } from 'lit/decorators.js';
|
|
4
|
-
import styles from './spinbox.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 _handleSlotChange, _handleInputFocus;
|
|
23
|
-
let OdxSpinboxComponent = class extends CanBeDisabled(CustomElement) {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
this.compact = false;
|
|
27
|
-
__privateAdd(this, _handleSlotChange, () => {
|
|
28
|
-
this.inputElement?.removeEventListener("focus", __privateGet(this, _handleInputFocus));
|
|
29
|
-
if (!this.inputElement) return;
|
|
30
|
-
this.inputElement.type = "number";
|
|
31
|
-
this.inputElement.value = this.inputElement.value || this.inputElement.min;
|
|
32
|
-
this.inputElement.addEventListener("focus", __privateGet(this, _handleInputFocus));
|
|
33
|
-
this.requestUpdate();
|
|
34
|
-
});
|
|
35
|
-
__privateAdd(this, _handleInputFocus, () => {
|
|
36
|
-
this.inputElement?.select();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
get inputElement() {
|
|
40
|
-
return this.inputElements[0] ?? null;
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const min = this.inputElement?.min ? Number(this.inputElement.min) : null;
|
|
44
|
-
const max = this.inputElement?.max ? Number(this.inputElement.max) : null;
|
|
45
|
-
const value = this.inputElement?.value ? Number(this.inputElement.value) : null;
|
|
46
|
-
const canStepDown = min === null || value === null || value > min;
|
|
47
|
-
const canStepUp = max === null || value === null || value < max;
|
|
48
|
-
if (this.inputElement) {
|
|
49
|
-
this.inputElement.disabled = this.disabled;
|
|
50
|
-
}
|
|
51
|
-
const decrementAction = html`
|
|
52
|
-
<button part="action action-decrement" @click=${this.stepDown} ?disabled=${this.disabled || !canStepDown}>
|
|
53
|
-
<odx-icon name="minus"></odx-icon>
|
|
54
|
-
</button>
|
|
55
|
-
`;
|
|
56
|
-
const incrementAction = html`
|
|
57
|
-
<button part="action action-increment" @click=${this.stepUp} ?disabled=${this.disabled || !canStepUp}>
|
|
58
|
-
<odx-icon name="plus"></odx-icon>
|
|
59
|
-
</button>
|
|
60
|
-
`;
|
|
61
|
-
const slot = html`<slot @slotchange=${__privateGet(this, _handleSlotChange)}></slot>`;
|
|
62
|
-
if (this.compact) {
|
|
63
|
-
return html`${slot}${incrementAction}${decrementAction}`;
|
|
64
|
-
}
|
|
65
|
-
return html`${decrementAction}${slot}${incrementAction}`;
|
|
66
|
-
}
|
|
67
|
-
stepUp() {
|
|
68
|
-
if (!this.inputElement) return;
|
|
69
|
-
this.inputElement.stepUp();
|
|
70
|
-
this.requestUpdate();
|
|
71
|
-
}
|
|
72
|
-
stepDown() {
|
|
73
|
-
if (!this.inputElement) return;
|
|
74
|
-
this.inputElement.stepDown();
|
|
75
|
-
this.requestUpdate();
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
_handleSlotChange = new WeakMap();
|
|
79
|
-
_handleInputFocus = new WeakMap();
|
|
80
|
-
OdxSpinboxComponent.shadowRootOptions = {
|
|
81
|
-
mode: "open",
|
|
82
|
-
delegatesFocus: true
|
|
83
|
-
};
|
|
84
|
-
__decorateClass([
|
|
85
|
-
queryAssignedElements({ selector: "input", flatten: true })
|
|
86
|
-
], OdxSpinboxComponent.prototype, "inputElements", 2);
|
|
87
|
-
__decorateClass([
|
|
88
|
-
property({ type: Boolean, reflect: true })
|
|
89
|
-
], OdxSpinboxComponent.prototype, "compact", 2);
|
|
90
|
-
OdxSpinboxComponent = __decorateClass([
|
|
91
|
-
customElement("odx-spinbox", [styles])
|
|
92
|
-
], OdxSpinboxComponent);
|
|
93
|
-
|
|
94
|
-
export { OdxSpinboxComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--gap: 0;display:flex;flex-direction:row;max-inline-size:100%;inline-size:100%;gap:var(--gap)}:host([vertical]){flex-direction:column}:host([wrap]){flex-wrap:wrap}:host([gap=\"none\"]){--gap: 0}:host([gap=\"xs\"]){--gap: var(--odx-size-25)}:host([gap=\"sm\"]){--gap: var(--odx-size-50)}:host,:host([gap=\"md\"]){--gap: var(--odx-size-75)}:host([gap=\"lg\"]){--gap: var(--odx-size-150)}:host([gap=\"xl\"]){--gap: var(--odx-size-225)}:host,:host([align=\"start\"]){align-items:flex-start}:host([align=\"end\"]){align-items:end}:host([align=\"center\"]){align-items:center}:host([align=\"stretch\"]){align-items:stretch}:host([justify=\"center\"]){justify-content:center}:host,:host([justify=\"start\"]){justify-content:flex-start}:host([justify=\"end\"]){justify-content:flex-end}:host([justify=\"stretch\"]){justify-content:stretch}:host([justify=\"space-between\"]){justify-content:space-between}:host([justify=\"space-around\"]){justify-content:space-around}:host([justify=\"space-evenly\"]){justify-content:space-evenly}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,45 +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 './stack.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 OdxStackComponent = class extends CustomElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.vertical = false;
|
|
20
|
-
this.wrap = false;
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return html`<slot></slot>`;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
__decorateClass([
|
|
27
|
-
property({ attribute: "align-items", reflect: true })
|
|
28
|
-
], OdxStackComponent.prototype, "align", 2);
|
|
29
|
-
__decorateClass([
|
|
30
|
-
property({ attribute: "justify-content", reflect: true })
|
|
31
|
-
], OdxStackComponent.prototype, "justify", 2);
|
|
32
|
-
__decorateClass([
|
|
33
|
-
property({ reflect: true })
|
|
34
|
-
], OdxStackComponent.prototype, "gap", 2);
|
|
35
|
-
__decorateClass([
|
|
36
|
-
property({ type: Boolean, reflect: true })
|
|
37
|
-
], OdxStackComponent.prototype, "vertical", 2);
|
|
38
|
-
__decorateClass([
|
|
39
|
-
property({ type: Boolean, reflect: true })
|
|
40
|
-
], OdxStackComponent.prototype, "wrap", 2);
|
|
41
|
-
OdxStackComponent = __decorateClass([
|
|
42
|
-
customElement("odx-stack", [styles])
|
|
43
|
-
], OdxStackComponent);
|
|
44
|
-
|
|
45
|
-
export { OdxStackComponent };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const StackAlign = {
|
|
2
|
-
START: "start",
|
|
3
|
-
END: "end",
|
|
4
|
-
CENTER: "center"
|
|
5
|
-
};
|
|
6
|
-
const StackGap = {
|
|
7
|
-
NONE: "none",
|
|
8
|
-
XS: "xs",
|
|
9
|
-
SM: "sm",
|
|
10
|
-
MD: "md",
|
|
11
|
-
LG: "lg",
|
|
12
|
-
XL: "xl"
|
|
13
|
-
};
|
|
14
|
-
const StackJustify = {
|
|
15
|
-
START: "start",
|
|
16
|
-
END: "end",
|
|
17
|
-
CENTER: "center",
|
|
18
|
-
SPACE_BETWEEN: "space-between",
|
|
19
|
-
SPACE_AROUND: "space-around",
|
|
20
|
-
SPACE_EVENLY: "space-evenly"
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { StackAlign, StackGap, StackJustify };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = "*{box-sizing:border-box}:host{--_indicator-space: var(--odx-size-12);--_indicator-size: calc(var(--odx-size-150) - var(--_indicator-space) * 2);--_indicator-color-background: var(--odx-color-selection-control-fill);--_indicator-color-stroke: var(--odx-color-selection-control-stroke);--_indicator-track-color-background: var(--odx-color-selection-control-fill);--_label-color-foreground: var(--odx-color-foreground);cursor:pointer;display:inline-flex;margin:var(--odx-size-37) var(--odx-size-75);user-select:none;border-radius:var(--odx-border-radius-controls);outline:var(--odx-focus-ring-outline);transition-property:background-color border-color outline-color}:host,.indicator,.content{transition:var(--odx-transition-reduced)}.indicator{display:flex;place-items:center;block-size:var(--odx-size-150);position:relative}.indicator:before,.indicator:after{content:\"\";display:block;border-radius:var(--odx-size-225);box-sizing:border-box;transition:inherit;border-radius:var(--odx-border-radius-circle);border:var(--odx-border-width-thin) solid var(--_indicator-color-stroke)}.indicator:before{background-color:var(--_indicator-track-color-background);block-size:var(--odx-size-37);inline-size:var(--odx-size-225)}.indicator:after{display:flex;place-content:center;place-items:center;block-size:var(--_indicator-size);inline-size:var(--_indicator-size);flex-shrink:0;background-color:var(--_indicator-color-background);color:var(--_indicator-color-foreground);transition-property:background-color,border-color,transform;position:absolute;inset-inline-start:0;box-shadow:var(--odx-shadow-level-0)}.label{display:inline-block;cursor:inherit}.content{margin-inline-start:var(--odx-size-75);padding-inline-end:var(--odx-size-25);color:var(--_label-color-foreground);transition-property:color}:host(:empty) .content{display:none}:host(:hover){--_indicator-color-stroke: var(--odx-color-selection-control-stroke-hover);--_indicator-color-background: var(--odx-color-selection-control-fill-hover)}:host(:focus-visible){outline-color:var(--odx-focus-ring-color)}:host([aria-checked=\"true\"]){--_indicator-color-background: var(--odx-color-selection-control-fill-selected);--_indicator-color-stroke: var(--odx-color-selection-control-stroke-selected);--_indicator-track-color-background: var(--odx-color-selection-control-fill-selected);.indicator:after{transform:translate(var(--odx-size-225)) translate(-100%)}}:host([aria-checked=\"true\"]:not([aria-disabled]):hover){--_indicator-color-background: var(--odx-color-selection-control-fill-selected-hover)}:host([aria-disabled=\"true\"]){--_indicator-color-background: var(--odx-color-disabled-fill);--_indicator-color-stroke: var(--odx-color-disabled-stroke);--_indicator-track-color-background: var(--odx-color-disabled-fill);--_label-color-foreground: var(--odx-color-disabled-foreground);cursor:not-allowed}:host([aria-disabled=\"true\"][aria-checked=\"true\"]){--_indicator-color-background: var(--odx-color-disabled-fill-selected);--_indicator-color-stroke: var(--_indicator-color-background);--_indicator-track-color-background: var(--odx-color-disabled-fill-selected)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CheckboxFormControl } from '@odx/foundation';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
declare global {
|
|
4
|
-
interface HTMLElementTagNameMap {
|
|
5
|
-
'odx-switch': OdxSwitchComponent;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare class OdxSwitchComponent extends CheckboxFormControl {
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
protected render(): TemplateResult;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=switch.component.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CheckboxFormControl, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import styles from './switch.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 OdxSwitchComponent = class extends CheckboxFormControl {
|
|
14
|
-
connectedCallback() {
|
|
15
|
-
super.connectedCallback();
|
|
16
|
-
this.role = "switch";
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
return html`
|
|
20
|
-
<div class="indicator"></div>
|
|
21
|
-
<div class="content">
|
|
22
|
-
<div class="label">
|
|
23
|
-
<slot></slot>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="description">
|
|
26
|
-
<slot name="description"></slot>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
`;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
OdxSwitchComponent = __decorateClass([
|
|
33
|
-
customElement("odx-switch", [styles])
|
|
34
|
-
], OdxSwitchComponent);
|
|
35
|
-
|
|
36
|
-
export { OdxSwitchComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{display:block;text-decoration:inherit;color:var(--_color, inherit);font-size:var(--_font-size, inherit);line-height:var(--_line-height, inherit);font-weight:var(--_font-weight, inherit)}:host([inline]){display:inline-block}:host([emphasized]:not([emphasized=\"false\"])){--_font-weight: var(--odx-typography-font-weight-medium)}:host([size=\"xs\"]){--_font-size: var(--odx-typography-font-size-1);--_line-height: var(--odx-typography-line-height-1)}:host([size=\"sm\"]){--_font-size: var(--odx-typography-font-size-2);--_line-height: var(--odx-typography-line-height-2)}:host([size=\"md\"]){--_font-size: var(--odx-typography-font-size-3);--_line-height: var(--odx-typography-line-height-3)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { TextSize, TextVariant } from './text.models';
|
|
3
|
-
declare global {
|
|
4
|
-
interface HTMLElementTagNameMap {
|
|
5
|
-
'odx-text': OdxTextComponent;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare class OdxTextComponent extends CustomElement {
|
|
9
|
-
emphasized: boolean;
|
|
10
|
-
size?: TextSize;
|
|
11
|
-
variant?: TextVariant;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=text.component.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import styles from './text.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 OdxTextComponent = class extends CustomElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.emphasized = false;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
__decorateClass([
|
|
22
|
-
property({ type: Boolean, reflect: true })
|
|
23
|
-
], OdxTextComponent.prototype, "emphasized", 2);
|
|
24
|
-
__decorateClass([
|
|
25
|
-
property({ reflect: true })
|
|
26
|
-
], OdxTextComponent.prototype, "size", 2);
|
|
27
|
-
__decorateClass([
|
|
28
|
-
property({ reflect: true })
|
|
29
|
-
], OdxTextComponent.prototype, "variant", 2);
|
|
30
|
-
OdxTextComponent = __decorateClass([
|
|
31
|
-
customElement("odx-text", [styles])
|
|
32
|
-
], OdxTextComponent);
|
|
33
|
-
|
|
34
|
-
export { OdxTextComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{display:block;font-family:var(--odx-typography-font-family-brand);font-size:var(--_font-size);font-weight:var(--_font-weight);line-height:var(--_line-height);color:inherit}:host,:host([size=\"xs\"]){--_font-size: var(--odx-breakpoint-font-size-heading-6);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-6)}:host([size=\"sm\"]){--_font-size: var(--odx-breakpoint-font-size-heading-5);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-5)}:host([size=\"md\"]){--_font-size: var(--odx-breakpoint-font-size-heading-4);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-4)}:host([size=\"lg\"]){--_font-size: var(--odx-breakpoint-font-size-heading-3);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-3)}:host([size=\"xl\"]){--_font-size: var(--odx-breakpoint-font-size-heading-2);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-2)}:host([size=\"xxl\"]){--_font-size: var(--odx-breakpoint-font-size-heading-1);--_font-weight: var(--odx-typography-font-weight-semibold);--_line-height: var(--odx-breakpoint-line-height-heading-1)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { PropertyValueMap } from 'lit';
|
|
3
|
-
import { TitleSize } from './title.models';
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLElementTagNameMap {
|
|
6
|
-
'odx-title': OdxTitleComponent;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class OdxTitleComponent extends CustomElement {
|
|
10
|
-
size?: TitleSize | null;
|
|
11
|
-
protected willUpdate(props: PropertyValueMap<this>): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=title.component.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CustomElement, requestUpdateOnAriaChange, customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import styles from './title.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 OdxTitleComponent = class extends CustomElement {
|
|
16
|
-
willUpdate(props) {
|
|
17
|
-
super.willUpdate(props);
|
|
18
|
-
if (props.has("ariaLevel")) {
|
|
19
|
-
this.role = this.ariaLevel !== null ? "heading" : null;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
__decorateClass([
|
|
24
|
-
property({ reflect: true })
|
|
25
|
-
], OdxTitleComponent.prototype, "size", 2);
|
|
26
|
-
OdxTitleComponent = __decorateClass([
|
|
27
|
-
requestUpdateOnAriaChange(["ariaLevel"]),
|
|
28
|
-
customElement("odx-title", [styles])
|
|
29
|
-
], OdxTitleComponent);
|
|
30
|
-
|
|
31
|
-
export { OdxTitleComponent };
|