@odx/foundation 1.0.0-beta.25 → 1.0.0-beta.251
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 +37 -14
- package/dist/_virtual_class-decorator-runtime.js +13 -0
- package/dist/breakpoints/main.d.ts +27 -0
- package/dist/breakpoints/types.d.ts +17 -0
- package/dist/breakpoints/utils.d.ts +13 -0
- package/dist/breakpoints.js +112 -0
- package/dist/components/abstract/button-control-element.d.ts +20 -0
- package/dist/components/abstract/control-element.d.ts +36 -0
- package/dist/components/abstract/dialog-element.d.ts +61 -0
- package/dist/components/abstract/link-control-element.d.ts +20 -0
- package/dist/components/accordion/accordion.d.ts +31 -6
- package/dist/components/accordion-item/accordion-item.d.ts +25 -0
- package/dist/components/accordion-panel/accordion-panel.d.ts +22 -0
- package/dist/components/action-button/action-button.d.ts +27 -0
- package/dist/components/action-group/action-group.d.ts +6 -13
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +8 -6
- package/dist/components/area-footer/area-footer.d.ts +29 -0
- package/dist/components/area-header/area-header.d.ts +13 -4
- package/dist/components/autocomplete/autocomplete.d.ts +27 -0
- package/dist/components/avatar/avatar.d.ts +20 -11
- package/dist/components/badge/badge.d.ts +23 -6
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +20 -7
- package/dist/components/button/button.d.ts +19 -37
- package/dist/components/button-group/button-group.d.ts +12 -5
- package/dist/components/card/card.d.ts +22 -3
- package/dist/components/checkbox/checkbox.d.ts +28 -6
- package/dist/components/checkbox-group/checkbox-group.d.ts +7 -8
- package/dist/components/chip/chip.d.ts +8 -5
- package/dist/components/drawer/drawer.d.ts +17 -0
- package/dist/components/dropdown/dropdown.d.ts +23 -16
- package/dist/components/empty-state/empty-state.d.ts +46 -0
- package/dist/components/form-field/form-field.d.ts +3 -4
- package/dist/components/format/base-format.d.ts +2 -2
- package/dist/components/format/format-bytes.d.ts +1 -1
- package/dist/components/format/format-number.d.ts +1 -1
- package/dist/components/format/{index.d.ts → format.d.ts} +1 -1
- package/dist/components/format/relative-time.d.ts +2 -2
- package/dist/components/gradient-overlay/gradient-overlay.d.ts +23 -0
- package/dist/components/header/header.d.ts +13 -2
- package/dist/components/highlight/highlight.d.ts +30 -7
- package/dist/components/icon-button/icon-button.d.ts +25 -17
- package/dist/components/image/image.d.ts +5 -5
- package/dist/components/inline-message/inline-message.d.ts +22 -7
- package/dist/components/input/input.d.ts +16 -8
- package/dist/components/key-value/key-value.d.ts +53 -0
- package/dist/components/key-value-list/key-value-list.d.ts +15 -0
- package/dist/components/label/label.d.ts +11 -0
- package/dist/components/line-clamp/line-clamp.d.ts +3 -3
- package/dist/components/link/link.d.ts +12 -4
- package/dist/components/list/list.d.ts +11 -2
- package/dist/components/list-item/list-item.d.ts +39 -0
- package/dist/components/listbox/listbox.d.ts +28 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +3 -5
- package/dist/components/loading-spinner/loading-spinner.d.ts +10 -3
- package/dist/components/logo/logo.d.ts +4 -3
- package/dist/components/main-menu/main-menu-button.d.ts +3 -2
- package/dist/components/main-menu/main-menu.d.ts +3 -7
- package/dist/components/main.d.ts +85 -66
- package/dist/components/menu/menu.d.ts +6 -5
- package/dist/components/menu-item/menu-item.d.ts +27 -6
- package/dist/components/modal/modal.d.ts +6 -26
- package/dist/components/modal/modal.service.d.ts +11 -0
- package/dist/components/navigation/navigation.d.ts +20 -0
- package/dist/components/navigation-item/navigation-item.d.ts +11 -15
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +22 -0
- package/dist/components/option/option.d.ts +8 -3
- package/dist/components/page/page.d.ts +15 -9
- package/dist/components/page-layout/page-layout.d.ts +10 -1
- package/dist/components/pagination/pagination.d.ts +3 -2
- package/dist/components/popover/compute-popover-placement.d.ts +13 -0
- package/dist/components/popover/popover-host.d.ts +43 -0
- package/dist/components/popover/popover-observer.d.ts +10 -0
- package/dist/{cdk → components}/popover/popover.d.ts +3 -2
- package/dist/components/progress-bar/base-progress.d.ts +23 -0
- package/dist/components/progress-bar/progress-bar.d.ts +3 -19
- package/dist/components/progress-ring/progress-ring.d.ts +31 -0
- package/dist/components/radio-button/radio-button.d.ts +5 -4
- package/dist/components/radio-group/radio-group.d.ts +8 -6
- package/dist/components/rail-navigation/rail-navigation.d.ts +6 -7
- package/dist/components/scroll-container/scroll-container.d.ts +37 -0
- package/dist/components/search-bar/search-bar.d.ts +14 -5
- package/dist/components/select/select.d.ts +12 -10
- package/dist/components/separator/separator.d.ts +8 -6
- package/dist/components/sidebar/sidebar.d.ts +31 -0
- package/dist/components/skeleton/skeleton.d.ts +12 -18
- package/dist/components/slider/slider-handle.d.ts +21 -6
- package/dist/components/slider/slider-marks.d.ts +2 -2
- package/dist/components/slider/slider.d.ts +5 -3
- package/dist/components/slider/slider.models.d.ts +4 -4
- package/dist/components/status/status.d.ts +9 -5
- package/dist/components/switch/switch.d.ts +4 -3
- package/dist/components/tab-bar/tab-bar.d.ts +42 -0
- package/dist/components/table/table-body.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-checkbox-cell.d.ts +2 -2
- package/dist/components/table/table-header-cell.d.ts +1 -1
- package/dist/components/table/table-header.d.ts +5 -3
- package/dist/components/table/table-row.d.ts +3 -3
- package/dist/components/table/table.d.ts +7 -1
- package/dist/components/text/text.d.ts +10 -5
- package/dist/components/textarea/textarea.d.ts +22 -0
- package/dist/components/tile/tile.d.ts +37 -0
- package/dist/components/title/title.d.ts +13 -7
- package/dist/components/toast/toast.d.ts +10 -4
- package/dist/components/toggle-button/toggle-button.d.ts +32 -6
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +21 -0
- package/dist/components/toggle-content/toggle-content.d.ts +4 -4
- package/dist/components/toolbar/toolbar.d.ts +15 -0
- package/dist/components/tooltip/tooltip.d.ts +40 -5
- package/dist/components/translate/translate.d.ts +2 -2
- package/dist/components-loader.js +3 -0
- package/dist/components.js +4342 -4209
- package/dist/en.js +6 -0
- package/dist/i18n/{lib/format.d.ts → format.d.ts} +1 -0
- package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +2 -2
- package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +0 -1
- package/dist/i18n/main.d.ts +19 -6
- package/dist/i18n/translate.d.ts +6 -0
- package/dist/i18n/translations/en.json.d.ts +19 -0
- package/dist/i18n/types.d.ts +14 -0
- package/dist/i18n.js +60 -57
- package/dist/lib/behaviors/can-be-collapsed.d.ts +14 -0
- package/dist/lib/behaviors/can-be-disabled.d.ts +9 -0
- package/dist/lib/behaviors/can-be-expanded.d.ts +15 -0
- package/dist/lib/behaviors/checkbox-control.d.ts +15 -0
- package/dist/lib/behaviors/checkbox-group-control.d.ts +22 -0
- package/dist/lib/behaviors/form-associated.d.ts +21 -0
- package/dist/lib/behaviors/is-draggable.d.ts +23 -0
- package/dist/lib/behaviors/listbox-control.d.ts +26 -0
- package/dist/lib/behaviors/number-form-control.d.ts +11 -0
- package/dist/lib/behaviors/option-control.d.ts +17 -0
- package/dist/lib/behaviors/radio-group-control.d.ts +12 -0
- package/dist/lib/behaviors/with-presets.d.ts +12 -0
- package/dist/lib/controllers/active-descendants-controller.d.ts +29 -0
- package/dist/lib/controllers/drag.controller.d.ts +18 -0
- package/dist/lib/controllers/expandable-controller.d.ts +6 -10
- package/dist/lib/custom-element.d.ts +18 -5
- package/dist/lib/dark-mode.d.ts +12 -0
- package/dist/lib/models.d.ts +45 -0
- package/dist/lib/signals.d.ts +6 -0
- package/dist/main.d.ts +20 -0
- package/dist/main.js +983 -755
- package/dist/oss-licenses.json +37 -0
- package/dist/oss-licenses.txt +178 -0
- package/dist/styles.css +1 -1
- package/dist/utils/attribute-directive.d.ts +20 -0
- package/dist/utils/command-directive.d.ts +22 -0
- package/dist/utils/dom-events.d.ts +17 -0
- package/dist/utils/dom-renderer.d.ts +16 -0
- package/dist/{lib/types/a11y.d.ts → utils/dom-types.d.ts} +1 -17
- package/dist/utils/dom.d.ts +17 -0
- package/dist/utils/lit.d.ts +2 -0
- package/dist/utils/main.d.ts +15 -0
- package/dist/utils/math.d.ts +2 -0
- package/dist/utils/object.d.ts +4 -0
- package/dist/utils/shared-event-listener.d.ts +3 -0
- package/dist/utils/shared-media-observer.d.ts +4 -0
- package/dist/utils/shared-resize-observer.d.ts +7 -0
- package/dist/utils.js +362 -0
- package/dist/vendor.js +142 -0
- package/package.json +53 -29
- package/dist/cdk/control/checkbox-form-control.d.ts +0 -15
- package/dist/cdk/control/checkbox-group-form-control.d.ts +0 -21
- package/dist/cdk/control/listbox-form-control.d.ts +0 -22
- package/dist/cdk/control/option-control.d.ts +0 -24
- package/dist/cdk/control/radio-group-form-control.d.ts +0 -22
- package/dist/cdk/drag-drop/drag-events.d.ts +0 -9
- package/dist/cdk/drag-drop/drag.controller.d.ts +0 -18
- package/dist/cdk/drag-drop/is-draggable.d.ts +0 -18
- package/dist/cdk/interactive/interactive-element.d.ts +0 -28
- package/dist/cdk/interactive/interactive-link.d.ts +0 -15
- package/dist/cdk/main.d.ts +0 -14
- package/dist/cdk/popover/popover-host.d.ts +0 -25
- package/dist/cdk/popover/popover.models.d.ts +0 -35
- package/dist/cdk/popover/popover.utils.d.ts +0 -5
- package/dist/cdk.js +0 -942
- package/dist/components/accordion/accordion-header.d.ts +0 -19
- package/dist/components/accordion/accordion-panel.d.ts +0 -13
- package/dist/components/accordion/index.d.ts +0 -4
- package/dist/components/action-group/index.d.ts +0 -2
- package/dist/components/anchor-navigation/anchor-observer.d.ts +0 -11
- package/dist/components/anchor-navigation/index.d.ts +0 -3
- package/dist/components/area-header/index.d.ts +0 -2
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar-group/avatar-group.d.ts +0 -15
- package/dist/components/avatar-group/index.d.ts +0 -2
- package/dist/components/badge/index.d.ts +0 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +0 -17
- package/dist/components/breadcrumbs/index.d.ts +0 -3
- package/dist/components/button/index.d.ts +0 -2
- package/dist/components/button-group/index.d.ts +0 -2
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/checkbox-group/index.d.ts +0 -2
- package/dist/components/chip/index.d.ts +0 -2
- package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +0 -50
- package/dist/components/circular-progress-bar/index.d.ts +0 -2
- package/dist/components/combobox/combobox.d.ts +0 -20
- package/dist/components/combobox/index.d.ts +0 -2
- package/dist/components/content-box/content-box.d.ts +0 -11
- package/dist/components/content-box/index.d.ts +0 -2
- package/dist/components/dropdown/index.d.ts +0 -2
- package/dist/components/form-field/index.d.ts +0 -2
- package/dist/components/header/header-actions.d.ts +0 -10
- package/dist/components/header/index.d.ts +0 -3
- package/dist/components/headline/headline.d.ts +0 -21
- package/dist/components/headline/index.d.ts +0 -2
- package/dist/components/highlight/index.d.ts +0 -2
- package/dist/components/icon-button/index.d.ts +0 -2
- package/dist/components/image/index.d.ts +0 -2
- package/dist/components/inline-message/index.d.ts +0 -2
- package/dist/components/input/index.d.ts +0 -2
- package/dist/components/line-clamp/index.d.ts +0 -2
- package/dist/components/link/base-link.d.ts +0 -15
- package/dist/components/link/index.d.ts +0 -3
- package/dist/components/list/index.d.ts +0 -3
- package/dist/components/list/list-item.d.ts +0 -27
- package/dist/components/loading-overlay/index.d.ts +0 -2
- package/dist/components/loading-spinner/index.d.ts +0 -2
- package/dist/components/logo/index.d.ts +0 -2
- package/dist/components/main-menu/index.d.ts +0 -6
- package/dist/components/main-menu/main-menu-link.d.ts +0 -9
- package/dist/components/main-menu/main-menu-subtitle.d.ts +0 -12
- package/dist/components/main-menu/main-menu-title.d.ts +0 -12
- package/dist/components/menu/index.d.ts +0 -3
- package/dist/components/menu/menu-label.d.ts +0 -9
- package/dist/components/menu-item/index.d.ts +0 -2
- package/dist/components/modal/index.d.ts +0 -2
- package/dist/components/navigation-item/index.d.ts +0 -2
- package/dist/components/option/index.d.ts +0 -2
- package/dist/components/page/index.d.ts +0 -2
- package/dist/components/page-layout/index.d.ts +0 -2
- package/dist/components/pagination/index.d.ts +0 -2
- package/dist/components/progress-bar/index.d.ts +0 -2
- package/dist/components/radio-button/index.d.ts +0 -2
- package/dist/components/radio-group/index.d.ts +0 -2
- package/dist/components/rail-navigation/index.d.ts +0 -2
- package/dist/components/search-bar/index.d.ts +0 -3
- package/dist/components/search-bar/search-bar.events.d.ts +0 -7
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/separator/index.d.ts +0 -2
- package/dist/components/skeleton/index.d.ts +0 -2
- package/dist/components/slider/index.d.ts +0 -5
- package/dist/components/spacer/index.d.ts +0 -2
- package/dist/components/spacer/spacer.d.ts +0 -13
- package/dist/components/spinbox/index.d.ts +0 -2
- package/dist/components/spinbox/spinbox.d.ts +0 -20
- package/dist/components/stack/index.d.ts +0 -3
- package/dist/components/stack/stack.d.ts +0 -17
- package/dist/components/stack/stack.models.d.ts +0 -26
- package/dist/components/status/index.d.ts +0 -2
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/table/index.d.ts +0 -9
- package/dist/components/table/table.models.d.ts +0 -10
- package/dist/components/text/index.d.ts +0 -2
- package/dist/components/timeline/index.d.ts +0 -3
- package/dist/components/timeline/timeline-item.d.ts +0 -9
- package/dist/components/timeline/timeline.d.ts +0 -9
- package/dist/components/title/index.d.ts +0 -2
- package/dist/components/toast/index.d.ts +0 -2
- package/dist/components/toggle-button/index.d.ts +0 -2
- package/dist/components/toggle-content/index.d.ts +0 -2
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/translate/index.d.ts +0 -2
- package/dist/components/visually-hidden/index.d.ts +0 -2
- package/dist/components/visually-hidden/visually-hidden.d.ts +0 -11
- package/dist/i18n/lib/translate.d.ts +0 -11
- package/dist/lib/controllers/active-desendants-controller.d.ts +0 -25
- package/dist/lib/controllers/focus-trap.controller.d.ts +0 -14
- package/dist/lib/main.d.ts +0 -36
- package/dist/lib/mixins/can-be-disabled.d.ts +0 -15
- package/dist/lib/mixins/can-be-expanded.d.ts +0 -10
- package/dist/lib/mixins/can-be-highlighted.d.ts +0 -8
- package/dist/lib/mixins/can-be-readonly.d.ts +0 -7
- package/dist/lib/mixins/can-be-required.d.ts +0 -7
- package/dist/lib/mixins/can-be-selected.d.ts +0 -9
- package/dist/lib/mixins/can-be-validated.d.ts +0 -12
- package/dist/lib/mixins/form-control.d.ts +0 -17
- package/dist/lib/mixins/number-control.d.ts +0 -12
- package/dist/lib/mixins/with-loading-state.d.ts +0 -8
- package/dist/lib/models/shape.d.ts +0 -7
- package/dist/lib/models/size.d.ts +0 -11
- package/dist/lib/models/variant.d.ts +0 -12
- package/dist/lib/types/utils.d.ts +0 -2
- package/dist/lib/utils/date.d.ts +0 -2
- package/dist/lib/utils/dedupe-mixin.d.ts +0 -3
- package/dist/lib/utils/dom.d.ts +0 -15
- package/dist/lib/utils/empty-slot-fallback-fix.d.ts +0 -8
- package/dist/lib/utils/get-unique-id.d.ts +0 -36
- package/dist/lib/utils/keyboard-events.d.ts +0 -43
- package/dist/lib/utils/lit.d.ts +0 -5
- package/dist/lib/utils/query-assigned-element.d.ts +0 -16
- package/dist/lib/utils/search-text-content.d.ts +0 -8
- package/dist/lib/utils/shared-intersection-observer.d.ts +0 -18
- package/dist/lib/utils/shared-resize-observer.d.ts +0 -18
- package/dist/lib/utils/transformers.d.ts +0 -5
- package/dist/loader/main.d.ts +0 -2
- package/dist/loader.js +0 -12
- package/dist/vendor-Cef33Vym.js +0 -149
- /package/dist/i18n/{lib/config.d.ts → config.d.ts} +0 -0
- /package/dist/i18n/{lib/models.d.ts → models.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
# @odx/foundation
|
|
3
3
|
|
|
4
|
-
The `@odx/foundation` package is
|
|
4
|
+
The `@odx/foundation` package is a core part of the ODX Design System, providing essential building blocks for creating consistent and cohesive user interfaces. This package includes foundational components, styles, and utilities to ensure a unified design across all ODX projects.
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
- **CSS Framework**: A comprehensive CSS framework that includes layout, typography, and utility classes to streamline styling and ensure consistency
|
|
9
|
+
- **Components**: Reusable web components, including buttons, tables, headers, and more.
|
|
10
|
+
- **i18n**: Internationalization utilities for building multilingual applications, with support for locale changes and translations.
|
|
11
|
+
- **Global Styles**: Comprehensive global styles, including colors, spacing, and themes.
|
|
12
|
+
- **Browser Support**: <a href="https://web-platform-dx.github.io/web-features/supported-browsers/?targetYear=2024" target="_blank">Baseline 2024</a>
|
|
14
13
|
|
|
15
14
|
### Install
|
|
16
15
|
|
|
17
16
|
[<img alt="NPM Version (with dist tag)" src="https://img.shields.io/npm/v/%40odx%2Ffoundation/latest?style=flat-square">](https://npmjs.org/package/@odx/foundation)
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
To install `@odx/foundation` in your project, run the following command:
|
|
19
|
+
To install `@odx/foundation` and it's peer dependencies in your project, run the following command:
|
|
21
20
|
|
|
22
21
|
```bash
|
|
23
22
|
npm install @odx/foundation @odx/icons@next --save
|
|
24
23
|
```
|
|
25
24
|
|
|
26
|
-
> We depend on the <a href="https://lit.dev" target="_blank" rel="noopener"
|
|
25
|
+
> We depend on the <a href="https://lit.dev" target="_blank" rel="noopener">Lit package</a> for building web elements because it offers a lightweight, efficient framework with a simple syntax for creating fast, reusable elements. Its powerful templating system ensures high performance and seamless user experience. Lit is also highly interoperable, making it easy to integrate with other frameworks and libraries.
|
|
27
26
|
>
|
|
28
27
|
> [<img src="https://img.shields.io/npm/dependency-version/@odx/foundation/lit" />](https://npmjs.org/package/lit)
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
### Setup
|
|
32
31
|
|
|
33
|
-
> Ensure that you have followed the installation and setup instructions for our [
|
|
32
|
+
> Ensure that you have followed the installation and setup instructions for our [design tokens](https://npmjs.org/package/@odx/design-tokens) library.
|
|
34
33
|
|
|
35
34
|
Once installed, you can import the foundational components and styles into your project:
|
|
36
35
|
|
|
@@ -43,18 +42,42 @@ import '@odx/icons/core';
|
|
|
43
42
|
import '@odx/foundation/loader';
|
|
44
43
|
|
|
45
44
|
// Load styles (in JS)
|
|
46
|
-
import '@odx/foundation/styles';
|
|
45
|
+
import '@odx/foundation/styles';
|
|
46
|
+
|
|
47
47
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
```css
|
|
51
|
-
|
|
51
|
+
/* Load styles (in CSS) */
|
|
52
52
|
@import '@odx/foundation/dist/styles.css';
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Framework integration
|
|
57
|
+
|
|
58
|
+
We currently do not provide any framework specific integration for the `@odx/foundation` package. However, you can easily integrate the web components into your framework of choice by following the standard practices for using web components in that framework.
|
|
59
|
+
|
|
60
|
+
#### Angular Example
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import { Directive, input } from '@angular/core';
|
|
64
|
+
|
|
65
|
+
@Directive({
|
|
66
|
+
selector: 'odx-title',
|
|
67
|
+
host: { '[attr.size]': 'size() || null' },
|
|
68
|
+
})
|
|
69
|
+
export class Title {
|
|
70
|
+
size = input<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'>();
|
|
71
|
+
}
|
|
53
72
|
```
|
|
54
73
|
|
|
74
|
+
#### React Example
|
|
75
|
+
|
|
76
|
+
See <a href="https://lit.dev/docs/frameworks/react/" target="_blank">Lit documentation</a> for more information on how to use web components in React.
|
|
77
|
+
|
|
55
78
|
### Documentation
|
|
56
79
|
|
|
57
|
-
For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://odx.
|
|
80
|
+
For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://ca-odx-storybook-dev.yellowisland-7b13f2d7.westeurope.azurecontainerapps.io/" target="_blank" rel="noopener">storybook documentation</a>.
|
|
58
81
|
|
|
59
82
|
### Contact
|
|
60
|
-
For questions, feedback, or support, please reach out to us through our <a href="https://odx.draeger.com/contact" target="_blank" rel="noopener"
|
|
83
|
+
For questions, feedback, or support, please reach out to us through our <a href="https://odx.draeger.com/contact" target="_blank" rel="noopener">contact page</a>.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
|
|
4
|
+
const __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
6
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
+
if (decorator = decorators[i])
|
|
8
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9
|
+
if (kind && result) __defProp(target, key, result);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { __decorateClass as _ };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BreakpointConfig } from './types.js';
|
|
2
|
+
declare global {
|
|
3
|
+
namespace ODX.Breakpoints {
|
|
4
|
+
interface Config {
|
|
5
|
+
mobile: true;
|
|
6
|
+
tablet: true;
|
|
7
|
+
desktop: true;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultBreakpoints: [{
|
|
12
|
+
readonly name: "mobile";
|
|
13
|
+
readonly min: 0;
|
|
14
|
+
readonly max: 575.98;
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "tablet";
|
|
17
|
+
readonly min: 576;
|
|
18
|
+
readonly max: 991.98;
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "desktop";
|
|
21
|
+
readonly min: 992;
|
|
22
|
+
readonly max: 1199.98;
|
|
23
|
+
}];
|
|
24
|
+
export default function setupBreakpoints(breakpointsConfig?: BreakpointConfig[]): () => void;
|
|
25
|
+
export type * from './types.js';
|
|
26
|
+
export * from './utils.js';
|
|
27
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type FilteredKeys<T extends object> = {
|
|
2
|
+
[K in keyof T as T[K] extends true ? K : never]: T[K];
|
|
3
|
+
};
|
|
4
|
+
export type BreakpointOperator = '<' | '<=' | '>=' | '>';
|
|
5
|
+
export interface BreakpointConfig {
|
|
6
|
+
name: keyof FilteredKeys<ODX.Breakpoints.Config>;
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
customQuery?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Breakpoint extends BreakpointConfig {
|
|
12
|
+
id: BreakpointConfig['name'] | `${BreakpointOperator}${BreakpointConfig['name']}`;
|
|
13
|
+
query: string;
|
|
14
|
+
operator?: BreakpointOperator;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Signal } from '../main.js';
|
|
2
|
+
import { Breakpoint, BreakpointConfig, BreakpointOperator } from './types.js';
|
|
3
|
+
export declare const breakpointDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint">;
|
|
4
|
+
export declare const breakpointClassDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint-class">;
|
|
5
|
+
export declare function buildBreakpoint(breakpoint: BreakpointConfig, operator?: BreakpointOperator): Breakpoint;
|
|
6
|
+
export declare function expandBreakpoints(...breakpoints: BreakpointConfig[]): Breakpoint[];
|
|
7
|
+
export declare function observeBreakpoint(breakpoint: Breakpoint, initialValue?: boolean): Signal<Breakpoint & {
|
|
8
|
+
matches: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function createBreakpointDirectiveUpdater(breakpoints: Breakpoint[], update?: (target: HTMLElement, change: Breakpoint & {
|
|
11
|
+
matches: boolean;
|
|
12
|
+
}) => void): () => void;
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { signal, effect } from '@odx/foundation';
|
|
2
|
+
import { stringAttributeDirective, observeMedia } from '@odx/foundation/utils';
|
|
3
|
+
|
|
4
|
+
const operators = ["<", "<=", ">=", ">"];
|
|
5
|
+
const breakpointDirective = stringAttributeDirective("odx-breakpoint");
|
|
6
|
+
const breakpointClassDirective = stringAttributeDirective("odx-breakpoint-class");
|
|
7
|
+
function buildBreakpoint(breakpoint, operator) {
|
|
8
|
+
const id = operator ? `${operator}${breakpoint.name}` : breakpoint.name;
|
|
9
|
+
let query = `(min-width: ${breakpoint.min}px) and (max-width: ${breakpoint.max}px)`;
|
|
10
|
+
switch (operator) {
|
|
11
|
+
case "<":
|
|
12
|
+
query = `(max-width: ${breakpoint.min - 0.02}px)`;
|
|
13
|
+
break;
|
|
14
|
+
case "<=":
|
|
15
|
+
query = `(max-width: ${breakpoint.max}px)`;
|
|
16
|
+
break;
|
|
17
|
+
case ">=":
|
|
18
|
+
query = `(min-width: ${breakpoint.min}px)`;
|
|
19
|
+
break;
|
|
20
|
+
case ">":
|
|
21
|
+
query = `(min-width: ${breakpoint.max + 0.02}px)`;
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
return { ...breakpoint, id, operator, query: [query, breakpoint.customQuery].filter(Boolean).join(" and ") };
|
|
25
|
+
}
|
|
26
|
+
function expandBreakpoints(...breakpoints) {
|
|
27
|
+
return breakpoints.flatMap((breakpoint) => [void 0, ...operators].map((operator) => buildBreakpoint(breakpoint, operator)));
|
|
28
|
+
}
|
|
29
|
+
function observeBreakpoint(breakpoint, initialValue = false) {
|
|
30
|
+
let unobserveMedia;
|
|
31
|
+
return signal(
|
|
32
|
+
{ ...breakpoint, matches: initialValue },
|
|
33
|
+
{
|
|
34
|
+
unwatched: () => {
|
|
35
|
+
unobserveMedia?.();
|
|
36
|
+
unobserveMedia = void 0;
|
|
37
|
+
},
|
|
38
|
+
watched() {
|
|
39
|
+
unobserveMedia = observeMedia(breakpoint.query, ({ matches }) => {
|
|
40
|
+
this.value = { ...breakpoint, matches };
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function setBreakpointActiveStyles(host, active) {
|
|
47
|
+
const classNames = breakpointClassDirective.value(host);
|
|
48
|
+
if (!classNames) {
|
|
49
|
+
host.hidden = !active;
|
|
50
|
+
host.inert = !active;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
for (const className of classNames.split(" ")) {
|
|
54
|
+
host.classList.toggle(className, active);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function createBreakpointDirectiveUpdater(breakpoints, update) {
|
|
58
|
+
const breakpointCache = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
const breakpointObservers = breakpoints.map((breakpoint) => observeBreakpoint(breakpoint, false));
|
|
60
|
+
return () => {
|
|
61
|
+
const directives = document.querySelectorAll(breakpointDirective.selector);
|
|
62
|
+
const changes = breakpointObservers.reduce(
|
|
63
|
+
(breakpoints2, { value }) => {
|
|
64
|
+
breakpoints2[value.id] = value;
|
|
65
|
+
return breakpoints2;
|
|
66
|
+
},
|
|
67
|
+
{}
|
|
68
|
+
);
|
|
69
|
+
let i = directives.length;
|
|
70
|
+
while (i--) {
|
|
71
|
+
const directive = directives[i];
|
|
72
|
+
const change = changes[breakpointDirective.value(directive) || ""];
|
|
73
|
+
if (!change || change.matches === breakpointCache.get(directive)) continue;
|
|
74
|
+
breakpointCache.set(directive, change.matches);
|
|
75
|
+
setBreakpointActiveStyles(directive, change.matches);
|
|
76
|
+
update?.(directive, change);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const defaultBreakpoints = [
|
|
82
|
+
{ name: "mobile", min: 0, max: 575.98 },
|
|
83
|
+
{ name: "tablet", min: 576, max: 991.98 },
|
|
84
|
+
{ name: "desktop", min: 992, max: 1199.98 }
|
|
85
|
+
];
|
|
86
|
+
function setupBreakpoints(breakpointsConfig = []) {
|
|
87
|
+
const breakpoints = expandBreakpoints(...defaultBreakpoints, ...breakpointsConfig);
|
|
88
|
+
const directiveUpdater = createBreakpointDirectiveUpdater(breakpoints);
|
|
89
|
+
let mutationObserver;
|
|
90
|
+
let unobserveBreakpoints = () => {
|
|
91
|
+
};
|
|
92
|
+
function initBreakpoints() {
|
|
93
|
+
destroyBreakpoints();
|
|
94
|
+
mutationObserver = new MutationObserver(directiveUpdater);
|
|
95
|
+
mutationObserver.observe(document.documentElement, {
|
|
96
|
+
attributes: true,
|
|
97
|
+
subtree: true,
|
|
98
|
+
childList: true,
|
|
99
|
+
attributeFilter: [breakpointDirective.attribute]
|
|
100
|
+
});
|
|
101
|
+
unobserveBreakpoints = effect(directiveUpdater);
|
|
102
|
+
}
|
|
103
|
+
function destroyBreakpoints() {
|
|
104
|
+
unobserveBreakpoints();
|
|
105
|
+
mutationObserver?.disconnect();
|
|
106
|
+
globalThis.removeEventListener("DOMContentLoaded", initBreakpoints);
|
|
107
|
+
}
|
|
108
|
+
globalThis.addEventListener("DOMContentLoaded", initBreakpoints);
|
|
109
|
+
return destroyBreakpoints;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { breakpointClassDirective, breakpointDirective, buildBreakpoint, createBreakpointDirectiveUpdater, setupBreakpoints as default, defaultBreakpoints, expandBreakpoints, observeBreakpoint };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
|
+
import { ControlElement } from './control-element.js';
|
|
3
|
+
/**
|
|
4
|
+
* @csspart base
|
|
5
|
+
* @csspart spinner
|
|
6
|
+
* @csspart label
|
|
7
|
+
*
|
|
8
|
+
* @slot prefix - Prefix slot
|
|
9
|
+
* @slot suffix - Suffix slot
|
|
10
|
+
* @slot - Default slot
|
|
11
|
+
*/
|
|
12
|
+
export declare class ButtonControlElement extends ControlElement {
|
|
13
|
+
static readonly styles: CSSResultGroup;
|
|
14
|
+
static shadowRootOptions: ShadowRootInit;
|
|
15
|
+
focusTarget: HTMLButtonElement;
|
|
16
|
+
lineClamp: number;
|
|
17
|
+
protected render(): TemplateResult;
|
|
18
|
+
protected renderLabel(): TemplateResult;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=button-control-element.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
4
|
+
export declare const controlDirective: import('../../utils/main.js').BooleanAttributeDirective<"data-odx-control">;
|
|
5
|
+
export type ControlSize = ValuesOf<typeof ControlSize>;
|
|
6
|
+
export declare const ControlSize: Pick<{
|
|
7
|
+
readonly XS: "xs";
|
|
8
|
+
readonly SM: "sm";
|
|
9
|
+
readonly MD: "md";
|
|
10
|
+
readonly LG: "lg";
|
|
11
|
+
readonly XL: "xl";
|
|
12
|
+
readonly XXL: "xxl";
|
|
13
|
+
}, "SM" | "MD" | "LG">;
|
|
14
|
+
declare const ControlElement_base: import('../../utils/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
15
|
+
/**
|
|
16
|
+
* @csspart spinner
|
|
17
|
+
*
|
|
18
|
+
* @slot prefix - Prefix slot
|
|
19
|
+
* @slot suffix - Suffix slot
|
|
20
|
+
* @slot - Default slot
|
|
21
|
+
*/
|
|
22
|
+
export declare class ControlElement extends ControlElement_base {
|
|
23
|
+
static readonly styles: CSSResultGroup;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
size: ControlSize;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
click(): void;
|
|
28
|
+
protected updated(props: PropertyValues): void;
|
|
29
|
+
protected render(): TemplateResult;
|
|
30
|
+
protected renderContent(): TemplateResult;
|
|
31
|
+
protected renderLabel(defaultContent?: TemplateResult | string): TemplateResult;
|
|
32
|
+
protected renderSideSlot(name: 'prefix' | 'suffix', defaultContent?: TemplateResult | string): TemplateResult;
|
|
33
|
+
protected renderLoadingSpinner(): TemplateResult;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=control-element.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
4
|
+
export declare const dialogDirective: import('../../utils/main.js').BooleanAttributeDirective<"odx-dialog">;
|
|
5
|
+
export type DialogSize = ValuesOf<typeof DialogSize>;
|
|
6
|
+
export declare const DialogSize: Pick<{
|
|
7
|
+
readonly XS: "xs";
|
|
8
|
+
readonly SM: "sm";
|
|
9
|
+
readonly MD: "md";
|
|
10
|
+
readonly LG: "lg";
|
|
11
|
+
readonly XL: "xl";
|
|
12
|
+
readonly XXL: "xxl";
|
|
13
|
+
}, "SM" | "MD" | "LG">;
|
|
14
|
+
export type DialogLayer = ValuesOf<typeof DialogLayer>;
|
|
15
|
+
export declare const DialogLayer: {
|
|
16
|
+
SCREEN: string;
|
|
17
|
+
PAGE: string;
|
|
18
|
+
CONTAINER: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const DialogShowCommand: import('../../utils/main.js').CommandDirective<"odx-dialog-show">;
|
|
21
|
+
export declare const DialogDismissCommand: import('../../utils/main.js').CommandDirective<"odx-dialog-dismiss">;
|
|
22
|
+
export declare const DialogCloseCommand: import('../../utils/main.js').CommandDirective<"odx-dialog-close">;
|
|
23
|
+
export declare class DialogShowEvent extends Event {
|
|
24
|
+
static readonly eventName = "dialog-show";
|
|
25
|
+
constructor(eventInit?: EventInit);
|
|
26
|
+
}
|
|
27
|
+
export declare class DialogCloseEvent extends CustomEvent<{
|
|
28
|
+
returnValue?: string;
|
|
29
|
+
}> {
|
|
30
|
+
static readonly eventName = "dialog-close";
|
|
31
|
+
constructor(eventInit?: CustomEventInit<{
|
|
32
|
+
returnValue?: string;
|
|
33
|
+
}>);
|
|
34
|
+
}
|
|
35
|
+
declare const DialogElement_base: import('../../utils/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
36
|
+
export declare class DialogElement extends DialogElement_base {
|
|
37
|
+
#private;
|
|
38
|
+
static readonly styles: CSSResultGroup;
|
|
39
|
+
backdropDisabled: boolean;
|
|
40
|
+
dismissible: boolean;
|
|
41
|
+
open: boolean;
|
|
42
|
+
layer: DialogLayer;
|
|
43
|
+
size: DialogSize;
|
|
44
|
+
get canShow(): boolean;
|
|
45
|
+
get canClose(): boolean;
|
|
46
|
+
get canDismiss(): boolean;
|
|
47
|
+
constructor();
|
|
48
|
+
connectedCallback(): void;
|
|
49
|
+
disconnectedCallback(): void;
|
|
50
|
+
show(): Promise<string | undefined>;
|
|
51
|
+
close(returnValue?: string): void;
|
|
52
|
+
dismiss(): void;
|
|
53
|
+
toggle(state?: boolean, returnValue?: string): boolean;
|
|
54
|
+
showPopover(): void;
|
|
55
|
+
hidePopover(): void;
|
|
56
|
+
togglePopover(state?: boolean): boolean;
|
|
57
|
+
protected updated(props: PropertyValues<this>): void;
|
|
58
|
+
protected render(): TemplateResult;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=dialog-element.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ButtonControlElement } from './button-control-element.js';
|
|
3
|
+
/**
|
|
4
|
+
* @csspart base
|
|
5
|
+
* @csspart spinner
|
|
6
|
+
* @csspart label
|
|
7
|
+
*
|
|
8
|
+
* @slot prefix - Prefix slot
|
|
9
|
+
* @slot suffix - Suffix slot
|
|
10
|
+
* @slot - Default slot
|
|
11
|
+
*/
|
|
12
|
+
export declare class LinkControlElement extends ButtonControlElement {
|
|
13
|
+
focusTarget: HTMLButtonElement & HTMLLinkElement;
|
|
14
|
+
href: string;
|
|
15
|
+
target: '_blank' | '_parent' | '_self' | '_top' | '';
|
|
16
|
+
rel: string;
|
|
17
|
+
download?: string;
|
|
18
|
+
protected render(): TemplateResult;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=link-control-element.d.ts.map
|
|
@@ -1,15 +1,40 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
2
|
-
import {
|
|
1
|
+
import { CustomElement, ExpandableItemManagerHost } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
|
+
import { ControlSize } from '../abstract/control-element.js';
|
|
5
|
+
import { OdxAccordionItem } from '../accordion-item/accordion-item.js';
|
|
3
6
|
declare global {
|
|
4
7
|
interface HTMLElementTagNameMap {
|
|
5
8
|
'odx-accordion': OdxAccordion;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
export type AccordionIndicatorPosition = ValuesOf<typeof AccordionIndicatorPosition>;
|
|
12
|
+
export declare const AccordionIndicatorPosition: Pick<{
|
|
13
|
+
readonly START: "start";
|
|
14
|
+
readonly CENTER: "center";
|
|
15
|
+
readonly END: "end";
|
|
16
|
+
}, "START" | "END">;
|
|
17
|
+
/**
|
|
18
|
+
* @summary A container for grouping a set of accordion items and panels.
|
|
19
|
+
* @status beta
|
|
20
|
+
* @since 1.0.0
|
|
21
|
+
*
|
|
22
|
+
* @dependencies odx-accordion-item
|
|
23
|
+
*
|
|
24
|
+
* @slot - Default slot for accordion items and panels.
|
|
25
|
+
*
|
|
26
|
+
* @event expand - Emitted when an accordion item is expanded. Can be canceled to prevent expansion.
|
|
27
|
+
* @event collapse - Emitted when an accordion item is collapsed. Can be canceled to prevent collapse.
|
|
28
|
+
*/
|
|
29
|
+
export declare class OdxAccordion extends CustomElement implements ExpandableItemManagerHost<OdxAccordionItem> {
|
|
30
|
+
#private;
|
|
31
|
+
indicatorPosition: AccordionIndicatorPosition;
|
|
11
32
|
multiple: boolean;
|
|
33
|
+
size: ControlSize;
|
|
12
34
|
constructor();
|
|
13
|
-
|
|
35
|
+
getItems(): OdxAccordionItem[];
|
|
36
|
+
toggleAll(state?: boolean, emitEvent?: boolean): void;
|
|
37
|
+
protected render(): TemplateResult | string;
|
|
38
|
+
protected updated(props: PropertyValues<this>): void;
|
|
14
39
|
}
|
|
15
40
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CanBeExpanded } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { ButtonControlElement } from '../abstract/button-control-element.js';
|
|
4
|
+
import { OdxAccordionPanel } from '../accordion-panel/accordion-panel.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'odx-accordion-item': OdxAccordionItem;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const OdxAccordionItem_base: import('../../utils/main.js').Constructor<CanBeExpanded> & typeof ButtonControlElement;
|
|
11
|
+
/**
|
|
12
|
+
* @summary An accordion item component that can be expanded or collapsed to show or hide content.
|
|
13
|
+
* @status beta
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*
|
|
16
|
+
* @dependencies odx-accordion-panel
|
|
17
|
+
*/
|
|
18
|
+
export declare class OdxAccordionItem extends OdxAccordionItem_base {
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
getPanel(): OdxAccordionPanel | null;
|
|
21
|
+
protected renderContent(): TemplateResult;
|
|
22
|
+
protected updated(props: PropertyValues<this>): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=accordion-item.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { ControlSize } from '../abstract/control-element.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-accordion-panel': OdxAccordionPanel;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @summary A panel component that is used within an accordion to show or hide content.
|
|
11
|
+
* @status beta
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare class OdxAccordionPanel extends CustomElement {
|
|
16
|
+
expanded: boolean;
|
|
17
|
+
size: ControlSize;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
protected updated(props: PropertyValues<this>): void;
|
|
20
|
+
protected render(): TemplateResult;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=accordion-panel.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OdxIconName } from '@odx/icons';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxButton } from '../button/button.js';
|
|
4
|
+
import { TooltipPlacement } from '../tooltip/tooltip.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'odx-action-button': OdxActionButton;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class OdxActionButton extends OdxButton {
|
|
11
|
+
#private;
|
|
12
|
+
static observeSlots: boolean;
|
|
13
|
+
private tooltip?;
|
|
14
|
+
done: boolean;
|
|
15
|
+
icon?: OdxIconName;
|
|
16
|
+
label: string;
|
|
17
|
+
labelPlacement?: TooltipPlacement;
|
|
18
|
+
statusIcon: OdxIconName;
|
|
19
|
+
statusLabel: string;
|
|
20
|
+
statusTimeout: number;
|
|
21
|
+
replaceContent: boolean;
|
|
22
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
23
|
+
protected render(): TemplateResult;
|
|
24
|
+
protected renderContent(): TemplateResult;
|
|
25
|
+
protected updated(props: PropertyValues<this>): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=action-button.d.ts.map
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import {
|
|
3
|
+
import { OdxButton } from '../button/button.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-action-group': OdxActionGroup;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
10
|
-
export declare class OdxActionGroup extends OdxActionGroup_base {
|
|
9
|
+
export declare class OdxActionGroup extends CustomElement {
|
|
11
10
|
#private;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
private base;
|
|
15
|
-
private container;
|
|
16
|
-
connected: boolean;
|
|
17
|
-
size?: ButtonSize | null;
|
|
18
|
-
variant?: ButtonVariant | null;
|
|
19
|
-
connectedCallback(): void;
|
|
11
|
+
getItems(): OdxButton[];
|
|
12
|
+
disconnectedCallback(): void;
|
|
20
13
|
protected render(): TemplateResult;
|
|
14
|
+
protected renderOverflowMenu(items: OdxButton[]): TemplateResult;
|
|
21
15
|
protected updated(props: PropertyValues<this>): void;
|
|
22
16
|
}
|
|
23
|
-
export {};
|
|
24
17
|
//# sourceMappingURL=action-group.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
2
|
-
import {
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxNavigationItem } from '../navigation-item/navigation-item.js';
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
5
6
|
'odx-anchor-navigation': OdxAnchorNavigation;
|
|
@@ -8,14 +9,15 @@ declare global {
|
|
|
8
9
|
declare const OdxAnchorNavigation_base: typeof CustomElement;
|
|
9
10
|
export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
|
|
10
11
|
#private;
|
|
11
|
-
|
|
12
|
+
readonly activeItem: import('@preact/signals-core').ReadonlySignal<OdxNavigationItem | undefined>;
|
|
13
|
+
root: Document | HTMLElement;
|
|
14
|
+
rootMargin?: string;
|
|
15
|
+
threshold: number;
|
|
12
16
|
vertical: boolean;
|
|
13
17
|
constructor();
|
|
14
|
-
connectedCallback(): void;
|
|
15
18
|
disconnectedCallback(): void;
|
|
16
|
-
renderAnchorLink(anchor: Element, isActive?: boolean): unknown;
|
|
17
19
|
protected render(): TemplateResult;
|
|
18
|
-
protected updated(props:
|
|
20
|
+
protected updated(props: PropertyValues<this>): void;
|
|
19
21
|
}
|
|
20
22
|
export {};
|
|
21
23
|
//# sourceMappingURL=anchor-navigation.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { TemplateResult } from 'lit';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-area-footer': OdxAreaFooter;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type AreaFooterAlignment = ValuesOf<typeof AreaFooterAlignment>;
|
|
10
|
+
export declare const AreaFooterAlignment: Pick<{
|
|
11
|
+
readonly START: "start";
|
|
12
|
+
readonly CENTER: "center";
|
|
13
|
+
readonly END: "end";
|
|
14
|
+
}, "START" | "CENTER" | "END">;
|
|
15
|
+
export type AreaFooterSize = ValuesOf<typeof AreaFooterSize>;
|
|
16
|
+
export declare const AreaFooterSize: Pick<{
|
|
17
|
+
readonly XS: "xs";
|
|
18
|
+
readonly SM: "sm";
|
|
19
|
+
readonly MD: "md";
|
|
20
|
+
readonly LG: "lg";
|
|
21
|
+
readonly XL: "xl";
|
|
22
|
+
readonly XXL: "xxl";
|
|
23
|
+
}, "SM" | "MD" | "LG">;
|
|
24
|
+
export declare class OdxAreaFooter extends CustomElement {
|
|
25
|
+
alignment: AreaFooterAlignment;
|
|
26
|
+
size: AreaFooterSize;
|
|
27
|
+
protected render(): TemplateResult;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=area-footer.d.ts.map
|