@odx/foundation 1.0.0-alpha.3 → 1.0.0-alpha.30
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/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.component.d.ts +24 -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-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/index.d.ts +2 -2
- package/dist/components/avatar/avatar.component.d.ts +2 -2
- 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/index.d.ts +1 -1
- package/dist/components/badge/badge.component.d.ts +2 -2
- 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/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} +6 -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.component.d.ts +2 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- 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/index.d.ts +2 -2
- package/dist/components/chip/chip.component.d.ts +3 -3
- 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/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/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 → components}/form-field/form-field.element.d.ts +1 -1
- 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 +3 -2
- 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/index.d.ts +2 -2
- package/dist/components/headline/headline.component.d.ts +2 -2
- package/dist/components/headline/index.d.ts +2 -2
- package/dist/components/highlight/highlight.component.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.component.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.component.d.ts +5 -4
- 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/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/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 +2 -2
- 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/logo/index.d.ts +2 -2
- package/dist/components/logo/logo.component.d.ts +2 -2
- 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.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.component.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.component.d.ts +6 -8
- package/dist/components/option/index.d.ts +1 -1
- package/dist/components/option/option.component.d.ts +1 -1
- package/dist/components/page/index.d.ts +2 -2
- package/dist/components/page/page.component.d.ts +2 -2
- 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/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.component.d.ts +32 -0
- 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/radio-button/index.d.ts +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +1 -1
- 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/rail-navigation/index.d.ts +1 -1
- package/dist/components/rail-navigation/rail-navigation.component.d.ts +4 -9
- 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/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.component.d.ts +5 -1
- package/dist/components/separator/separator.models.d.ts +6 -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/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/spacer/index.d.ts +1 -1
- package/dist/components/spacer/spacer.component.d.ts +1 -1
- package/dist/components/spinbox/index.d.ts +1 -1
- package/dist/components/spinbox/spinbox.component.d.ts +2 -2
- package/dist/components/stack/index.d.ts +2 -2
- package/dist/components/stack/stack.component.d.ts +2 -2
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +1 -1
- 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/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/title/index.d.ts +2 -2
- package/dist/components/title/title.component.d.ts +2 -2
- 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/toggle-button/index.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.component.d.ts +1 -1
- package/dist/components/toggle-content/index.d.ts +2 -0
- package/dist/components/toggle-content/toggle-content.component.d.ts +13 -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/translate/index.d.ts +2 -0
- package/dist/components/translate/translate.component.d.ts +16 -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.js +5016 -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 +8 -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/main.js +1119 -0
- package/dist/styles.css +1 -0
- package/dist/vendor-C_WVAD3D.js +3680 -0
- package/package.json +22 -24
- 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.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.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.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.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.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.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 -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.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.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.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.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.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/dist/{elements → components}/table/table.context.d.ts +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '@odx/foundation';
|
|
2
|
-
import { ButtonSize, ButtonVariant } from '../button';
|
|
3
|
-
declare global {
|
|
4
|
-
interface HTMLElementTagNameMap {
|
|
5
|
-
'odx-button-group': OdxButtonGroupComponent;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare const OdxButtonGroupComponent_base: import('@odx/foundation').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
|
-
export declare class OdxButtonGroupComponent extends OdxButtonGroupComponent_base {
|
|
10
|
-
block: boolean;
|
|
11
|
-
connected: boolean;
|
|
12
|
-
vertical: boolean;
|
|
13
|
-
size?: ButtonSize | null;
|
|
14
|
-
variant?: ButtonVariant | null;
|
|
15
|
-
onDisabledChanged(disabled: boolean): void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=button-group.component.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { property } from 'lit/decorators.js';
|
|
3
|
-
import styles from './button-group.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 OdxButtonGroupComponent = class extends CanBeDisabled(CustomElement) {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.block = false;
|
|
19
|
-
this.connected = false;
|
|
20
|
-
this.vertical = false;
|
|
21
|
-
}
|
|
22
|
-
onDisabledChanged(disabled) {
|
|
23
|
-
for (const button of Array.from(this.querySelectorAll("odx-button"))) {
|
|
24
|
-
button._contextDisabled = disabled;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
__decorateClass([
|
|
29
|
-
property({ type: Boolean, reflect: true })
|
|
30
|
-
], OdxButtonGroupComponent.prototype, "block", 2);
|
|
31
|
-
__decorateClass([
|
|
32
|
-
property({ type: Boolean, reflect: true })
|
|
33
|
-
], OdxButtonGroupComponent.prototype, "connected", 2);
|
|
34
|
-
__decorateClass([
|
|
35
|
-
property({ type: Boolean, reflect: true })
|
|
36
|
-
], OdxButtonGroupComponent.prototype, "vertical", 2);
|
|
37
|
-
__decorateClass([
|
|
38
|
-
property({ reflect: true })
|
|
39
|
-
], OdxButtonGroupComponent.prototype, "size", 2);
|
|
40
|
-
__decorateClass([
|
|
41
|
-
property({ reflect: true })
|
|
42
|
-
], OdxButtonGroupComponent.prototype, "variant", 2);
|
|
43
|
-
OdxButtonGroupComponent = __decorateClass([
|
|
44
|
-
customElement("odx-button-group", [styles])
|
|
45
|
-
], OdxButtonGroupComponent);
|
|
46
|
-
|
|
47
|
-
export { OdxButtonGroupComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_card-padding: var(--odx-size-150);display:grid;place-content:flex-start;background-color:var(--odx-color-background-main);grid-template-columns:1fr auto;border-radius:var(--odx-border-radius-md);padding:var(--_card-padding);overflow:clip;max-width:100%;grid-template-areas:\"image image\" \"avatar avatar\" \"title header-actions\" \"content content\" \"footer footer\"}.header,.title{display:flex;place-items:center;overflow:hidden;min-block-size:var(--odx-size-225);margin-block-end:var(--odx-size-50)}.title{grid-area:title}.header{grid-area:header-actions}.avatar{display:flex;place-items:flex-end;grid-area:avatar;margin-block-start:calc(-1 * var(--odx-size-50))}.image{grid-area:image;margin:calc(-1 * var(--_card-padding));margin-block-end:var(--odx-size-150);position:relative}.image:after{content:\"\";position:absolute;inset:0;background-color:var(--odx-color-transparent-hover);opacity:0;pointer-events:none;transition:var(--odx-transition-default);backdrop-filter:blur(var(--odx-elevation-blur))}:host::part(content){grid-area:content}:host::part(footer){grid-area:footer}[part=image-container]+[part=avatar-container]{block-size:0}slot[name=image]::slotted(*){max-inline-size:100%;max-block-size:100%;object-fit:cover;aspect-ratio:16 / 9;user-select:none;pointer-events:none}slot[name=avatar]::slotted(*){margin:0}:host(:hover){cursor:pointer}:host(:hover) .image:after{opacity:1}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement, optionalSlot, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import styles from './card.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 OdxCardComponent = class extends CanBeDisabled(CustomElement) {
|
|
14
|
-
render() {
|
|
15
|
-
return html`
|
|
16
|
-
${optionalSlot(this, "header")}
|
|
17
|
-
${optionalSlot(this, "image")}
|
|
18
|
-
${optionalSlot(this, "avatar")}
|
|
19
|
-
${optionalSlot(this, "title")}
|
|
20
|
-
<div part="content">
|
|
21
|
-
<slot></slot>
|
|
22
|
-
</div>
|
|
23
|
-
`;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
OdxCardComponent = __decorateClass([
|
|
27
|
-
customElement("odx-card", [styles])
|
|
28
|
-
], OdxCardComponent);
|
|
29
|
-
|
|
30
|
-
export { OdxCardComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":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-color-foreground: var(--odx-palette-transparent);--_label-color-foreground: var(--odx-color-text);cursor:pointer;display:inline-flex;margin:var(--odx-size-37) var(--odx-size-75);user-select:none;border-radius:var(--odx-border-radius-controls);padding:var(--_indicator-space)}:host,.indicator,.content{transition:var(--odx-transition-reduced)}.indicator{display:flex;place-content:center;place-items:center;block-size:var(--_indicator-size);inline-size:var(--_indicator-size);flex-shrink:0;border-radius:var(--odx-border-radius-controls);background-color:var(--_indicator-color-background);border:var(--odx-border-width-thin) solid var(--_indicator-color-stroke);border-color:var(--_indicator-color-stroke);color:var(--_indicator-color-foreground);transition-property:background-color,border-color,outline-color;outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset)}.label{display:inline-block}.content{color:var(--_label-color-foreground);margin-block:calc(-1 * var(--_indicator-space));transition-property:color}:host(:not(:empty)) .indicator{margin-inline-end:var(--odx-size-75)}: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) .indicator{outline-color:var(--odx-focus-ring-color)}:host(:is([aria-checked=\"true\"],[aria-checked=\"mixed\"])){--_indicator-color-background: var(--odx-color-selection-control-fill-selected);--_indicator-color-foreground: var(--odx-color-foreground-light);--_indicator-color-stroke: var(--odx-color-selection-control-stroke-selected)}:host(:is([aria-checked=\"true\"],[aria-checked=\"mixed\"]):not(:is([aria-disabled],[aria-readonly])):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-foreground: var(--odx-palette-transparent);--_indicator-color-stroke: var(--odx-selection-control-color-border-disabled);--_label-color-foreground: var(--odx-color-disabled-foreground);cursor:not-allowed}:host([aria-disabled=\"true\"]:is([aria-checked=\"true\"],[aria-checked=\"mixed\"])){--_indicator-color-background: var(--odx-color-disabled-fill-selected);--_indicator-color-foreground: var(--odx-color-disabled-foreground-selected);--_indicator-color-stroke: var(--_indicator-color-background)}:host([aria-readonly=\"true\"]){--_indicator-color-background: var(--odx-color-selection-control-fill-readonly);--_indicator-color-stroke: var(--odx-color-input-control-stroke-readonly);cursor:default}:host([aria-readonly=\"true\"]:is([aria-checked=\"true\"],[aria-checked=\"mixed\"])){--_indicator-color-foreground: var(--odx-color-foreground)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CheckboxFormControl, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { property } from 'lit/decorators.js';
|
|
4
|
-
import styles from './checkbox.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 OdxCheckboxComponent = class extends CheckboxFormControl {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.indeterminate = false;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return html`
|
|
23
|
-
<div class="indicator">
|
|
24
|
-
<odx-icon name=${this.indeterminate ? "core::minus" : "core::check"}></odx-icon>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="content">
|
|
27
|
-
<div class="label">
|
|
28
|
-
<slot></slot>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="description">
|
|
31
|
-
<slot name="description"></slot>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
willUpdate(changes) {
|
|
37
|
-
super.willUpdate?.(changes);
|
|
38
|
-
if (changes.has("indeterminate")) {
|
|
39
|
-
if (this.indeterminate) {
|
|
40
|
-
this.ariaChecked = "mixed";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
toggle(state, dispatchEvent = false) {
|
|
45
|
-
super.toggle(state, dispatchEvent);
|
|
46
|
-
if (this.disabled || this.readonly) return;
|
|
47
|
-
this.indeterminate = false;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
__decorateClass([
|
|
51
|
-
property({ type: Boolean, reflect: true })
|
|
52
|
-
], OdxCheckboxComponent.prototype, "indeterminate", 2);
|
|
53
|
-
OdxCheckboxComponent = __decorateClass([
|
|
54
|
-
customElement("odx-checkbox", [styles])
|
|
55
|
-
], OdxCheckboxComponent);
|
|
56
|
-
|
|
57
|
-
export { OdxCheckboxComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{display:flex;flex-direction:column}::slotted(:is(odx-checkbox,odx-switch)){width:max-content}:host([variant=\"list\"]) ::slotted(:is(odx-checkbox,odx-switch)){border-block-end:var(--odx-border-width-thin) solid var(--odx-color-separator);padding:var(--odx-size-75);margin:0;width:auto}:host([variant=\"list\"]) ::slotted(:is(odx-checkbox,odx-switch):last-of-type){border-block-end:none}::slotted(odx-checkbox-group){margin-inline-start:var(--odx-size-75)}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { CheckboxGroupFormControl, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { property } from 'lit/decorators.js';
|
|
4
|
-
import styles from './checkbox-group.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, _handleGroupControlChange;
|
|
23
|
-
let OdxCheckboxGroupComponent = class extends CheckboxGroupFormControl {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
__privateAdd(this, _handleSlotChange, () => {
|
|
27
|
-
for (const control of this.groupControls) {
|
|
28
|
-
control.addEventListener("change", __privateGet(this, _handleGroupControlChange));
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
__privateAdd(this, _handleGroupControlChange, (event) => {
|
|
32
|
-
const { target } = event;
|
|
33
|
-
if (!this.isControl(target)) return;
|
|
34
|
-
event.stopImmediatePropagation();
|
|
35
|
-
this.updateValue(target.checked ? this.controls.map((control) => control.value) : [], true);
|
|
36
|
-
for (const groupControl of this.childGroups.flatMap((group) => group.groupControls)) {
|
|
37
|
-
groupControl.checked = target.checked;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return html`<slot @slotchange=${__privateGet(this, _handleSlotChange)}></slot>`;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
_handleSlotChange = new WeakMap();
|
|
46
|
-
_handleGroupControlChange = new WeakMap();
|
|
47
|
-
__decorateClass([
|
|
48
|
-
property({ reflect: true })
|
|
49
|
-
], OdxCheckboxGroupComponent.prototype, "variant", 2);
|
|
50
|
-
OdxCheckboxGroupComponent = __decorateClass([
|
|
51
|
-
customElement("odx-checkbox-group", [styles])
|
|
52
|
-
], OdxCheckboxGroupComponent);
|
|
53
|
-
|
|
54
|
-
export { OdxCheckboxGroupComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_color-background: var(--odx-color-neutral-rest);--_color-background-hover: var(--odx-color-neutral-hover);--_color-foreground: var(--odx-color-neutral-text);--_font-size: var(--odx-font-size-text-sm);--_block-size: var(--odx-size-150);--_border-radius: var(--_block-size);--_padding-inline: var(--odx-size-50);display:inline-flex;place-items:center;background-color:var(--_color-background);cursor:inherit;padding-inline:var(--_padding-inline);gap:var(--odx-size-25);block-size:var(--_block-size);border-radius:var(--_border-radius);color:var(--_color-foreground);outline-offset:var(--odx-focus-ring-offset)}:host,.content,.action{transition:var(--odx-transition-reduced);transition-property:color background-color outline-color}:host,.action{outline:var(--odx-focus-ring-outline)}:host(:focus-visible),.action:focus-visible{outline-color:var(--odx-focus-ring-color)}.content{min-inline-size:var(--odx-size-150);user-select:none;text-align:center}.action,::slotted(odx-icon){font-size:var(--odx-font-size-text-md);block-size:var(--_block-size);inline-size:var(--_block-size);color:inherit;outline-offset:calc(-1 * var(--odx-focus-ring-offset))}.action{background-color:var(--_color-background);border:none;border-radius:var(--_border-radius);cursor:pointer;margin-inline-end:calc(-1 * var(--_padding-inline));padding:0}.action:hover{background-color:var(--_color-background-hover)}:host([variant=\"neutral\"]){--_color-background: var(--odx-color-neutral-rest);--_color-background-hover: var(--odx-color-neutral-hover);--_color-foreground: var(--odx-color-foreground)}:host([variant=\"primary\"]){--_color-background: var(--odx-color-primary-rest);--_color-background-hover: var(--odx-color-primary-hover);--_color-foreground: var(--odx-color-foreground-light)}:host([variant=\"highlight\"]){--_color-background: var(--odx-color-highlight-rest);--_color-background-hover: var(--odx-color-highlight-hover);--_color-foreground: var(--odx-color-foreground-light)}:host([variant=\"success\"]){--_color-background: var(--odx-color-success-rest);--_color-background-hover: var(--odx-color-success-hover);--_color-foreground: var(--odx-color-success-text)}:host([variant=\"warning\"]){--_color-background: var(--odx-color-warning-rest);--_color-background-hover: var(--odx-color-warning-hover);--_color-foreground: var(--odx-color-warning-text)}:host([variant=\"danger\"]){--_color-background: var(--odx-color-danger-rest);--_color-background-hover: var(--odx-color-danger-hover);--_color-foreground: var(--odx-color-foreground-light)}:host([aria-disabled=\"true\"]){--_color-background: var(--odx-color-disabled-fill);--_color-foreground: var(--odx-color-disabled-foreground);.action{pointer-events:none}}:host([interactive]:not([interactive=\"false\"])){cursor:pointer}:host([interactive]:not([interactive=\"false\"]):hover){--_color-background: var(--_color-background-hover)}:host([aria-disabled=\"true\"][interactive]:not([interactive=\"false\"])){--_color-background: var(--odx-color-disabled-fill);cursor:not-allowed}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement, toggleAttribute, getElementFromEvent, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { query, property } from 'lit/decorators.js';
|
|
4
|
-
import { when } from 'lit/directives/when.js';
|
|
5
|
-
import styles from './chip.component.css.js';
|
|
6
|
-
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __typeError = (msg) => {
|
|
10
|
-
throw TypeError(msg);
|
|
11
|
-
};
|
|
12
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
-
if (decorator = decorators[i])
|
|
16
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
-
if (kind && result) __defProp(target, key, result);
|
|
18
|
-
return result;
|
|
19
|
-
};
|
|
20
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
21
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
22
|
-
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);
|
|
23
|
-
var _handleActionClick, _handleClick;
|
|
24
|
-
let OdxChipComponent = class extends CanBeDisabled(CustomElement) {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments);
|
|
27
|
-
this.removable = false;
|
|
28
|
-
this.interactive = false;
|
|
29
|
-
__privateAdd(this, _handleActionClick, (event) => {
|
|
30
|
-
const actionElement = getElementFromEvent(event, (node) => !!this.actionElement && node === this.actionElement);
|
|
31
|
-
if (!actionElement) return;
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
this.emit("remove");
|
|
34
|
-
});
|
|
35
|
-
__privateAdd(this, _handleClick, (event) => {
|
|
36
|
-
if (this.removable) {
|
|
37
|
-
const actionElement = getElementFromEvent(event, (node) => !!this.actionElement && node === this.actionElement);
|
|
38
|
-
if (actionElement) return;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
return html`
|
|
44
|
-
<odx-text class="content" size="sm" highlight odxPreventTextOverflow>
|
|
45
|
-
<slot></slot>
|
|
46
|
-
</odx-text>
|
|
47
|
-
${when(this.removable, () => this.renderAction())}
|
|
48
|
-
`;
|
|
49
|
-
}
|
|
50
|
-
renderAction() {
|
|
51
|
-
return html`
|
|
52
|
-
<button class="action" ?disabled=${this.disabled} @click=${__privateGet(this, _handleActionClick)}>
|
|
53
|
-
<odx-icon class="action-icon" name="core::close"></odx-icon>
|
|
54
|
-
</button>
|
|
55
|
-
`;
|
|
56
|
-
}
|
|
57
|
-
willUpdate(changes) {
|
|
58
|
-
super.willUpdate?.(changes);
|
|
59
|
-
if (changes.has("interactive") || changes.has("disabled")) {
|
|
60
|
-
if (!this.disabled) {
|
|
61
|
-
toggleAttribute(this, "tabindex", this.interactive ? 0 : null);
|
|
62
|
-
toggleAttribute(this.actionElement, "tabindex", this.interactive ? -1 : null);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
updated(changes) {
|
|
67
|
-
if (changes.has("removable") || changes.has("interactive") || changes.has("disabled")) {
|
|
68
|
-
if (this.removable || this.interactive) {
|
|
69
|
-
this.addEventListener("click", __privateGet(this, _handleClick), { capture: true });
|
|
70
|
-
} else {
|
|
71
|
-
this.removeEventListener("click", __privateGet(this, _handleClick));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
_handleActionClick = new WeakMap();
|
|
77
|
-
_handleClick = new WeakMap();
|
|
78
|
-
__decorateClass([
|
|
79
|
-
query(".action")
|
|
80
|
-
], OdxChipComponent.prototype, "actionElement", 2);
|
|
81
|
-
__decorateClass([
|
|
82
|
-
property({ type: Boolean, reflect: true })
|
|
83
|
-
], OdxChipComponent.prototype, "removable", 2);
|
|
84
|
-
__decorateClass([
|
|
85
|
-
property({ type: Boolean, reflect: true })
|
|
86
|
-
], OdxChipComponent.prototype, "interactive", 2);
|
|
87
|
-
__decorateClass([
|
|
88
|
-
property({ reflect: true })
|
|
89
|
-
], OdxChipComponent.prototype, "variant", 2);
|
|
90
|
-
OdxChipComponent = __decorateClass([
|
|
91
|
-
customElement("odx-chip", [styles])
|
|
92
|
-
], OdxChipComponent);
|
|
93
|
-
|
|
94
|
-
export { OdxChipComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = "@keyframes odx-circular-progress-indicator-animation{0%{stroke-dashoffset:100}25%{stroke-dashoffset:250;transform:rotate(180deg)}to{stroke-dashoffset:100;transform:rotate(270deg)}}@keyframes odx-circular-progress-inner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host{--_indicator-color: var(--odx-color-primary-rest);--_track-color: var(--odx-palette-coolgray-10);aspect-ratio:1;display:flex;place-content:center;place-items:center;color:currentColor;block-size:100%;inline-size:100%;position:relative}:host([size=\"small\"]){--_size: var(--odx-size-300)}:host([size=\"medium\"]){--_size: var(--odx-size-400)}:host([size=\"large\"]){--_size: var(--odx-size-600)}:host([size]){max-block-size:var(--_size);max-inline-size:var(--_size)}:host::part(track),:host::part(indicator){fill:transparent}:host::part(indicator){stroke:var(--_indicator-color);transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--odx-motion-duration-fast) var(--odx-motion-easing-reduced)}:host::part(track){stroke:var(--_track-color)}:host([indeterminate]:not([indeterminate=\"false\"]))::part(inner){animation:1.75s linear infinite odx-circular-progress-inner-animation}:host([indeterminate]:not([indeterminate=\"false\"]))::part(indicator){animation:1.75s ease infinite odx-circular-progress-indicator-animation both}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { CustomElement, SharedResizeObserver, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import { property } from 'lit/decorators.js';
|
|
4
|
-
import styles from './circular-progress-bar.component.css.js';
|
|
5
|
-
import { CircularProgressBarSize } from './circular-progress-bar.models.js';
|
|
6
|
-
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __typeError = (msg) => {
|
|
10
|
-
throw TypeError(msg);
|
|
11
|
-
};
|
|
12
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
-
if (decorator = decorators[i])
|
|
16
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
-
if (kind && result) __defProp(target, key, result);
|
|
18
|
-
return result;
|
|
19
|
-
};
|
|
20
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
21
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
22
|
-
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);
|
|
23
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
24
|
-
var _value, _OdxCircularProgressBarComponent_instances, circumference_get, radius_get, progressValue_get, normalizedStrokeWidth_get;
|
|
25
|
-
let OdxCircularProgressBarComponent = class extends CustomElement {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
__privateAdd(this, _OdxCircularProgressBarComponent_instances);
|
|
29
|
-
__privateAdd(this, _value, 0);
|
|
30
|
-
this.viewPortSize = 100;
|
|
31
|
-
this.stroke = 4;
|
|
32
|
-
this.indeterminate = false;
|
|
33
|
-
this.size = CircularProgressBarSize.MEDIUM;
|
|
34
|
-
}
|
|
35
|
-
set value(val) {
|
|
36
|
-
if (val >= -1 && val <= 100) {
|
|
37
|
-
__privateSet(this, _value, val);
|
|
38
|
-
this.indeterminate = val === -1;
|
|
39
|
-
this.setAttribute("aria-valuenow", `${this.indeterminate ? 0 : val}`);
|
|
40
|
-
} else {
|
|
41
|
-
console.warn(`Invalid value (${val}). Value must be between -1 and 100.`);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
get value() {
|
|
45
|
-
return __privateGet(this, _value);
|
|
46
|
-
}
|
|
47
|
-
firstUpdated(changes) {
|
|
48
|
-
super.firstUpdated?.(changes);
|
|
49
|
-
SharedResizeObserver.observe(this, () => {
|
|
50
|
-
this.requestUpdate();
|
|
51
|
-
});
|
|
52
|
-
this.setAttributes();
|
|
53
|
-
}
|
|
54
|
-
disconnectedCallback() {
|
|
55
|
-
super.disconnectedCallback?.();
|
|
56
|
-
SharedResizeObserver.unobserve(this);
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
return html`
|
|
60
|
-
<svg part="inner" viewBox="0 0 ${this.viewPortSize} ${this.viewPortSize}">
|
|
61
|
-
<circle
|
|
62
|
-
part="track"
|
|
63
|
-
stroke-width="${__privateGet(this, _OdxCircularProgressBarComponent_instances, normalizedStrokeWidth_get)}"
|
|
64
|
-
r="${__privateGet(this, _OdxCircularProgressBarComponent_instances, radius_get)}"
|
|
65
|
-
cx="50%"
|
|
66
|
-
cy="50%"
|
|
67
|
-
/>
|
|
68
|
-
<circle
|
|
69
|
-
part="indicator"
|
|
70
|
-
stroke-dasharray="${__privateGet(this, _OdxCircularProgressBarComponent_instances, circumference_get)}"
|
|
71
|
-
stroke-dashoffset="${__privateGet(this, _OdxCircularProgressBarComponent_instances, progressValue_get)}"
|
|
72
|
-
stroke-width="${__privateGet(this, _OdxCircularProgressBarComponent_instances, normalizedStrokeWidth_get)}"
|
|
73
|
-
r="${__privateGet(this, _OdxCircularProgressBarComponent_instances, radius_get)}"
|
|
74
|
-
cx="50%"
|
|
75
|
-
cy="50%"
|
|
76
|
-
/>
|
|
77
|
-
</svg>
|
|
78
|
-
`;
|
|
79
|
-
}
|
|
80
|
-
setAttributes() {
|
|
81
|
-
this.setAttribute("aria-valuenow", `${this.indeterminate ? 0 : this.value}`);
|
|
82
|
-
this.setAttribute("aria-valuemax", "100");
|
|
83
|
-
this.setAttribute("aria-valuemin", "0");
|
|
84
|
-
this.setAttribute("role", "meter");
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
_value = new WeakMap();
|
|
88
|
-
_OdxCircularProgressBarComponent_instances = new WeakSet();
|
|
89
|
-
circumference_get = function() {
|
|
90
|
-
return Math.floor(2 * __privateGet(this, _OdxCircularProgressBarComponent_instances, radius_get) * Math.PI);
|
|
91
|
-
};
|
|
92
|
-
radius_get = function() {
|
|
93
|
-
return Math.max(0, this.viewPortSize / 2 - __privateGet(this, _OdxCircularProgressBarComponent_instances, normalizedStrokeWidth_get) / 2);
|
|
94
|
-
};
|
|
95
|
-
progressValue_get = function() {
|
|
96
|
-
return this.indeterminate ? __privateGet(this, _OdxCircularProgressBarComponent_instances, circumference_get) : Math.floor((1 - __privateGet(this, _value) / 100) * __privateGet(this, _OdxCircularProgressBarComponent_instances, circumference_get));
|
|
97
|
-
};
|
|
98
|
-
normalizedStrokeWidth_get = function() {
|
|
99
|
-
if (this.stroke < 0) return 0;
|
|
100
|
-
const normalizeFactor = this.viewPortSize / (this.offsetWidth || 1);
|
|
101
|
-
let stroke = normalizeFactor * this.stroke;
|
|
102
|
-
if (normalizeFactor >= 3) {
|
|
103
|
-
stroke = Math.max(0, stroke - normalizeFactor);
|
|
104
|
-
}
|
|
105
|
-
return stroke;
|
|
106
|
-
};
|
|
107
|
-
__decorateClass([
|
|
108
|
-
property({ type: Number })
|
|
109
|
-
], OdxCircularProgressBarComponent.prototype, "value", 1);
|
|
110
|
-
__decorateClass([
|
|
111
|
-
property({ type: Number, reflect: true })
|
|
112
|
-
], OdxCircularProgressBarComponent.prototype, "stroke", 2);
|
|
113
|
-
__decorateClass([
|
|
114
|
-
property({ type: Boolean, reflect: true })
|
|
115
|
-
], OdxCircularProgressBarComponent.prototype, "indeterminate", 2);
|
|
116
|
-
__decorateClass([
|
|
117
|
-
property({ reflect: true })
|
|
118
|
-
], OdxCircularProgressBarComponent.prototype, "size", 2);
|
|
119
|
-
OdxCircularProgressBarComponent = __decorateClass([
|
|
120
|
-
customElement("odx-circular-progress-bar", [styles])
|
|
121
|
-
], OdxCircularProgressBarComponent);
|
|
122
|
-
|
|
123
|
-
export { OdxCircularProgressBarComponent };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CustomElement, customElement } from '@odx/foundation';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
import styles from './content-box.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 OdxContentBoxComponent = class extends CustomElement {
|
|
14
|
-
render() {
|
|
15
|
-
return html`
|
|
16
|
-
<slot name="header"></slot>
|
|
17
|
-
<slot></slot>
|
|
18
|
-
<slot name="footer"></slot>
|
|
19
|
-
`;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
OdxContentBoxComponent = __decorateClass([
|
|
23
|
-
customElement("odx-content-box", [styles])
|
|
24
|
-
], OdxContentBoxComponent);
|
|
25
|
-
|
|
26
|
-
export { OdxContentBoxComponent };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{--_popover-offset: var(--odx-size-37)}odx-popover{--color-background: var(--odx-color-background-main)}:host([matchReferenceWidth]:not([matchReferenceWidth=\"false\"])){odx-popover{--min-inline-size: var(--_reference-inline-size, 0)}}";
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '@odx/foundation';
|
|
2
|
-
import { OdxPopoverComponent, PopoverHost } from '@odx/foundation/cdk';
|
|
3
|
-
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
|
-
import { DropdownPlacement } from './dropdown.models';
|
|
5
|
-
declare global {
|
|
6
|
-
interface HTMLElementTagNameMap {
|
|
7
|
-
'odx-dropdown': OdxDropdownComponent;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
declare const OdxDropdownComponent_base: import('@odx/foundation').Constructor<PopoverHost> & import('@odx/foundation').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
11
|
-
export declare class OdxDropdownComponent extends OdxDropdownComponent_base {
|
|
12
|
-
#private;
|
|
13
|
-
protected popoverElement: OdxPopoverComponent;
|
|
14
|
-
matchReferenceWidth: boolean;
|
|
15
|
-
placement: DropdownPlacement;
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
mountPopover(referenceElement?: HTMLElement | null): void;
|
|
18
|
-
unmountPopover(referenceElement: HTMLElement): void;
|
|
19
|
-
protected render(): TemplateResult;
|
|
20
|
-
protected willUpdate(changes: PropertyValues<this>): void;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=dropdown.component.d.ts.map
|