@odx/foundation 1.0.0-beta.22 → 1.0.0-beta.220
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 +55 -13
- package/dist/_virtual_class-decorator-runtime.js +13 -0
- package/dist/components/accordion/accordion.d.ts +11 -6
- package/dist/components/accordion-item/accordion-item.d.ts +25 -0
- package/dist/components/{accordion → accordion-panel}/accordion-panel.d.ts +4 -3
- package/dist/components/action-button/action-button.d.ts +28 -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/anchor-navigation/index.d.ts +0 -1
- package/dist/components/area-footer/area-footer.d.ts +29 -0
- package/dist/components/area-header/area-header.d.ts +20 -4
- package/dist/components/autocomplete/autocomplete.d.ts +27 -0
- package/dist/components/avatar/avatar.d.ts +37 -5
- package/dist/components/badge/badge.d.ts +28 -5
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +18 -7
- package/dist/components/button/button.d.ts +29 -23
- package/dist/components/button-group/button-group.d.ts +9 -5
- package/dist/components/card/card.d.ts +21 -3
- package/dist/components/checkbox/checkbox.d.ts +6 -6
- package/dist/components/checkbox-group/checkbox-group.d.ts +10 -5
- package/dist/components/chip/chip.d.ts +17 -5
- package/dist/components/drawer/drawer.d.ts +17 -0
- package/dist/components/dropdown/dropdown.d.ts +25 -13
- package/dist/components/empty-state/empty-state.d.ts +45 -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/relative-time.d.ts +2 -2
- package/dist/components/gradient-overlay/gradient-overlay.d.ts +23 -0
- package/dist/components/header/header.d.ts +12 -2
- package/dist/components/header/index.d.ts +0 -1
- package/dist/components/highlight/highlight.d.ts +30 -7
- package/dist/components/icon-button/icon-button.d.ts +15 -16
- package/dist/components/image/image.d.ts +5 -5
- package/dist/components/inline-message/inline-message.d.ts +20 -6
- package/dist/components/input/input.d.ts +15 -10
- package/dist/components/key-value/key-value.d.ts +52 -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 +10 -2
- package/dist/components/list-item/list-item.d.ts +24 -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 +9 -3
- package/dist/components/logo/logo.d.ts +12 -3
- package/dist/components/main-menu/index.d.ts +1 -4
- package/dist/components/main-menu/main-menu-button.d.ts +3 -2
- package/dist/components/main-menu/main-menu.d.ts +1 -7
- package/dist/components/main.d.ts +75 -58
- package/dist/components/menu/menu.d.ts +7 -5
- package/dist/components/menu-item/menu-item.d.ts +30 -4
- package/dist/components/modal/modal.d.ts +10 -27
- package/dist/components/navigation/navigation.d.ts +18 -0
- package/dist/components/navigation-item/navigation-item.d.ts +11 -7
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +20 -0
- package/dist/components/option/option.d.ts +6 -3
- package/dist/components/page/page.d.ts +20 -6
- package/dist/components/page-layout/page-layout.d.ts +9 -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 -14
- package/dist/components/progress-ring/progress-ring.d.ts +33 -0
- package/dist/components/radio-button/radio-button.d.ts +5 -3
- package/dist/components/radio-group/radio-group.d.ts +12 -4
- package/dist/components/rail-navigation/rail-navigation.d.ts +5 -7
- package/dist/components/scroll-container/scroll-container.d.ts +36 -0
- package/dist/components/search-bar/search-bar.d.ts +19 -5
- package/dist/components/select/select.d.ts +11 -10
- package/dist/components/separator/separator.d.ts +10 -4
- package/dist/components/sidebar/sidebar.d.ts +30 -0
- package/dist/components/skeleton/skeleton.d.ts +13 -6
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/slider-handle.d.ts +6 -6
- package/dist/components/slider/slider-marks.d.ts +2 -2
- package/dist/components/slider/slider.d.ts +2 -3
- package/dist/components/slider/slider.models.d.ts +4 -3
- package/dist/components/spinbox/spinbox.d.ts +14 -10
- package/dist/components/status/status.d.ts +27 -0
- package/dist/components/switch/switch.d.ts +12 -2
- package/dist/components/tab-bar/tab-bar.d.ts +39 -0
- package/dist/components/table/index.d.ts +3 -3
- 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 +1 -1
- package/dist/components/text/text.d.ts +26 -3
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/tile/tile.d.ts +36 -0
- package/dist/components/title/title.d.ts +19 -5
- package/dist/components/toast/toast.d.ts +18 -3
- package/dist/components/toggle-button/toggle-button.d.ts +39 -6
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +20 -0
- package/dist/components/toggle-content/toggle-content.d.ts +4 -4
- package/dist/components/toolbar/toolbar.d.ts +14 -0
- package/dist/components/tooltip/tooltip.d.ts +53 -3
- package/dist/components/translate/translate.d.ts +2 -2
- package/dist/components-loader.js +3 -0
- package/dist/components.js +3857 -4253
- package/dist/en.js +6 -0
- package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +3 -2
- package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +0 -1
- package/dist/i18n/main.d.ts +7 -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 +30 -0
- package/dist/i18n.js +52 -58
- package/dist/lib/behaviors/can-be-collapsed.d.ts +10 -0
- package/dist/lib/behaviors/can-be-disabled.d.ts +9 -0
- package/dist/lib/behaviors/can-be-expanded.d.ts +11 -0
- package/dist/lib/behaviors/checkbox-control-group.d.ts +21 -0
- package/dist/lib/behaviors/checkbox-control.d.ts +15 -0
- package/dist/lib/behaviors/form-associated.d.ts +22 -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 +18 -0
- package/dist/lib/behaviors/radio-group-control.d.ts +12 -0
- package/dist/lib/control-element.d.ts +40 -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 +8 -5
- package/dist/lib/dialog-element.d.ts +183 -0
- package/dist/lib/interactive-control-element.d.ts +19 -0
- package/dist/lib/link-control-element.d.ts +19 -0
- package/dist/lib/models/layout.d.ts +46 -0
- package/dist/lib/models/shape.d.ts +7 -0
- package/dist/lib/models/size.d.ts +11 -0
- package/dist/lib/models/variant.d.ts +15 -0
- package/dist/main.d.ts +24 -0
- package/dist/main.js +1142 -727
- package/dist/styles-native.css +1 -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 +49 -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 +4 -0
- package/dist/utils/main.d.ts +11 -0
- package/dist/utils/shared-event-listener.d.ts +3 -0
- package/dist/utils/shared-resize-observer.d.ts +7 -0
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/unique-id.d.ts +20 -0
- package/dist/utils.js +299 -0
- package/dist/vendor.js +1968 -0
- package/package.json +55 -32
- 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 -34
- package/dist/cdk/popover/popover.utils.d.ts +0 -5
- package/dist/cdk.js +0 -950
- package/dist/components/accordion/accordion-header.d.ts +0 -17
- 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/area-header/area-header.models.d.ts +0 -12
- package/dist/components/area-header/index.d.ts +0 -3
- package/dist/components/avatar/avatar.models.d.ts +0 -18
- package/dist/components/avatar/index.d.ts +0 -3
- 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/badge.models.d.ts +0 -14
- package/dist/components/badge/index.d.ts +0 -3
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +0 -17
- package/dist/components/breadcrumbs/index.d.ts +0 -3
- package/dist/components/button/button.models.d.ts +0 -27
- package/dist/components/button/index.d.ts +0 -3
- 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/checkbox-group.models.d.ts +0 -6
- package/dist/components/checkbox-group/index.d.ts +0 -3
- package/dist/components/chip/chip.models.d.ts +0 -10
- package/dist/components/chip/index.d.ts +0 -3
- package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +0 -42
- package/dist/components/circular-progress-bar/circular-progress-bar.models.d.ts +0 -7
- package/dist/components/circular-progress-bar/index.d.ts +0 -3
- 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/content-box.models.d.ts +0 -2
- package/dist/components/content-box/index.d.ts +0 -2
- package/dist/components/dropdown/dropdown.models.d.ts +0 -6
- package/dist/components/dropdown/index.d.ts +0 -3
- package/dist/components/form-field/index.d.ts +0 -2
- package/dist/components/header/header-actions.d.ts +0 -10
- package/dist/components/headline/headline.d.ts +0 -13
- package/dist/components/headline/headline.models.d.ts +0 -8
- package/dist/components/headline/index.d.ts +0 -3
- 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 -3
- package/dist/components/inline-message/inline-message.models.d.ts +0 -12
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input.models.d.ts +0 -7
- 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 -3
- package/dist/components/logo/logo.models.d.ts +0 -9
- 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 -3
- package/dist/components/modal/modal.models.d.ts +0 -5
- package/dist/components/navigation-item/index.d.ts +0 -3
- package/dist/components/navigation-item/navigation-item.models.d.ts +0 -6
- package/dist/components/option/index.d.ts +0 -2
- package/dist/components/page/index.d.ts +0 -3
- package/dist/components/page/page.models.d.ts +0 -10
- 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 -3
- package/dist/components/progress-bar/progress-bar.models.d.ts +0 -7
- package/dist/components/radio-button/index.d.ts +0 -2
- package/dist/components/radio-group/index.d.ts +0 -3
- package/dist/components/radio-group/radio-group.models.d.ts +0 -6
- package/dist/components/rail-navigation/index.d.ts +0 -2
- package/dist/components/search-bar/index.d.ts +0 -4
- package/dist/components/search-bar/search-bar.events.d.ts +0 -7
- package/dist/components/search-bar/search-bar.models.d.ts +0 -6
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/separator/index.d.ts +0 -3
- package/dist/components/separator/separator.models.d.ts +0 -6
- package/dist/components/skeleton/index.d.ts +0 -3
- package/dist/components/skeleton/skeleton.models.d.ts +0 -13
- package/dist/components/spacer/index.d.ts +0 -2
- package/dist/components/spacer/spacer.d.ts +0 -13
- package/dist/components/spacer/spacer.models.d.ts +0 -7
- package/dist/components/spinbox/index.d.ts +0 -2
- 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 -25
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/text/index.d.ts +0 -3
- package/dist/components/text/text.models.d.ts +0 -14
- package/dist/components/title/index.d.ts +0 -3
- package/dist/components/title/title.models.d.ts +0 -10
- package/dist/components/toast/index.d.ts +0 -3
- package/dist/components/toast/toast.models.d.ts +0 -5
- 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 -3
- package/dist/components/tooltip/tooltip.models.d.ts +0 -8
- 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 -31
- 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/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-dJxQG085.js +0 -138
- /package/dist/i18n/{lib/config.d.ts → config.d.ts} +0 -0
- /package/dist/i18n/{lib/format.d.ts → format.d.ts} +0 -0
- /package/dist/i18n/{lib/models.d.ts → models.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
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
|
-
### Prequisites
|
|
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.
|
|
13
12
|
|
|
13
|
+
### Prerequisites
|
|
14
14
|
|
|
15
15
|
### Install
|
|
16
16
|
|
|
17
17
|
[<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
18
|
|
|
19
19
|
|
|
20
|
-
To install `@odx/foundation` in your project, run the following command:
|
|
20
|
+
To install `@odx/foundation` and it's peer dependencies in your project, run the following command:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
npm install @odx/foundation @odx/icons@next --save
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
> We depend on the <a href="https://lit.dev" target="_blank" rel="noopener"
|
|
26
|
+
> 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
27
|
>
|
|
28
28
|
> [<img src="https://img.shields.io/npm/dependency-version/@odx/foundation/lit" />](https://npmjs.org/package/lit)
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
### Setup
|
|
32
32
|
|
|
33
|
-
> Ensure that you have followed the installation and setup instructions for our [
|
|
33
|
+
> Ensure that you have followed the installation and setup instructions for our [design tokens](https://npmjs.org/package/@odx/design-tokens) library.
|
|
34
34
|
|
|
35
35
|
Once installed, you can import the foundational components and styles into your project:
|
|
36
36
|
|
|
@@ -43,18 +43,60 @@ import '@odx/icons/core';
|
|
|
43
43
|
import '@odx/foundation/loader';
|
|
44
44
|
|
|
45
45
|
// Load styles (in JS)
|
|
46
|
-
import '@odx/foundation/styles';
|
|
46
|
+
import '@odx/foundation/styles';
|
|
47
|
+
|
|
47
48
|
|
|
48
49
|
```
|
|
49
50
|
|
|
50
51
|
```css
|
|
51
|
-
|
|
52
|
+
/* Load styles (in CSS) */
|
|
52
53
|
@import '@odx/foundation/dist/styles.css';
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Native Styles
|
|
58
|
+
|
|
59
|
+
The `@odx/foundation` package provides native styles that can be used to apply the ODX Design System's visual language to native HTML elements. These styles ensure that your application maintains a consistent look and feel across all components, whether they are custom web components or standard HTML elements.
|
|
60
|
+
|
|
61
|
+
In order to use the native styles, you need to import the `styles.css` file from the `@odx/foundation` package. This file contains all the necessary CSS rules to style native HTML elements according to the ODX Design System.
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
// Load styles (in JS)
|
|
65
|
+
import '@odx/foundation/styles-native'; // JS
|
|
53
66
|
```
|
|
54
67
|
|
|
68
|
+
```css
|
|
69
|
+
/* Load styles (in CSS) */
|
|
70
|
+
@import '@odx/foundation/dist/styles-native.css';
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Framework integration
|
|
74
|
+
|
|
75
|
+
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.
|
|
76
|
+
|
|
77
|
+
#### Angular Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { Directive, input } from '@angular/core';
|
|
81
|
+
|
|
82
|
+
@Directive({
|
|
83
|
+
selector: 'odx-title',
|
|
84
|
+
host: { '[attr.size]': 'size() || null' },
|
|
85
|
+
})
|
|
86
|
+
export class Title {
|
|
87
|
+
size = input<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'>();
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### React Example
|
|
92
|
+
|
|
93
|
+
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.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
55
97
|
### Documentation
|
|
56
98
|
|
|
57
|
-
For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://odx.draeger.com" target="_blank" rel="noopener"
|
|
99
|
+
For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://odx.draeger.com" target="_blank" rel="noopener">documentation</a>.
|
|
58
100
|
|
|
59
101
|
### 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"
|
|
102
|
+
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 _ };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
2
|
-
import {
|
|
1
|
+
import { ControlSize, CustomElement, ExpandableItemManagerHost } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { AccordionItemIndicatorPosition, OdxAccordionItem } from '../accordion-item/accordion-item.js';
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
5
6
|
'odx-accordion': OdxAccordion;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
export declare class OdxAccordion extends CustomElement {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export declare class OdxAccordion extends CustomElement implements ExpandableItemManagerHost<OdxAccordionItem> {
|
|
10
|
+
#private;
|
|
11
|
+
indicatorPosition: AccordionItemIndicatorPosition;
|
|
11
12
|
multiple: boolean;
|
|
13
|
+
size: ControlSize;
|
|
12
14
|
constructor();
|
|
13
|
-
|
|
15
|
+
protected render(): TemplateResult | string;
|
|
16
|
+
getItems(): OdxAccordionItem[];
|
|
17
|
+
toggleAll(state?: boolean, emitEvent?: boolean): void;
|
|
18
|
+
protected updated(props: PropertyValues<this>): void;
|
|
14
19
|
}
|
|
15
20
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CanBeExpanded, InteractiveControlElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
|
+
import { OdxAccordionPanel } from '../accordion-panel/accordion-panel.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'odx-accordion-item': OdxAccordionItem;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export type AccordionItemIndicatorPosition = ValuesOf<typeof AccordionItemIndicatorPosition>;
|
|
11
|
+
export declare const AccordionItemIndicatorPosition: Pick<{
|
|
12
|
+
readonly START: "start";
|
|
13
|
+
readonly CENTER: "center";
|
|
14
|
+
readonly END: "end";
|
|
15
|
+
}, "START" | "END">;
|
|
16
|
+
declare const OdxAccordionItem_base: import('../../utils/main.js').Constructor<CanBeExpanded> & typeof InteractiveControlElement;
|
|
17
|
+
export declare class OdxAccordionItem extends OdxAccordionItem_base {
|
|
18
|
+
indicatorPosition: AccordionItemIndicatorPosition;
|
|
19
|
+
getPanel(): OdxAccordionPanel | null;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
protected renderContent(): TemplateResult;
|
|
22
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=accordion-item.d.ts.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-accordion-panel': OdxAccordionPanel;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export declare class OdxAccordionPanel extends CustomElement {
|
|
9
|
-
|
|
9
|
+
expanded: boolean;
|
|
10
10
|
connectedCallback(): void;
|
|
11
|
+
protected updated(props: PropertyValues<this>): void;
|
|
11
12
|
protected render(): TemplateResult;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=accordion-panel.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OdxIconName } from '@odx/icons';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxButton } from '../button/button.js';
|
|
4
|
+
import { OdxTooltip, 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
|
+
protected tooltip?: OdxTooltip;
|
|
13
|
+
done: boolean;
|
|
14
|
+
icon: OdxIconName | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
labelPlacement?: TooltipPlacement;
|
|
17
|
+
statusIcon: OdxIconName;
|
|
18
|
+
statusMessage: string;
|
|
19
|
+
statusTimeout: number;
|
|
20
|
+
statusMessageTimeout: number;
|
|
21
|
+
replaceContent: boolean;
|
|
22
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
23
|
+
protected render(): TemplateResult;
|
|
24
|
+
protected renderContent(): TemplateResult;
|
|
25
|
+
protected renderLabel(label: TemplateResult | string): TemplateResult;
|
|
26
|
+
protected updated(props: PropertyValues<this>): void;
|
|
27
|
+
}
|
|
28
|
+
//# 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
|
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
2
3
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { AreaHeaderSize, AreaHeaderVariant } from './area-header.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-area-header': OdxAreaHeader;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export type AreaHeaderAlignment = ValuesOf<typeof AreaHeaderAlignment>;
|
|
10
|
+
export declare const AreaHeaderAlignment: Pick<{
|
|
11
|
+
readonly START: "start";
|
|
12
|
+
readonly CENTER: "center";
|
|
13
|
+
readonly END: "end";
|
|
14
|
+
}, "START" | "CENTER" | "END">;
|
|
15
|
+
export type AreaHeaderSize = ValuesOf<typeof AreaHeaderSize>;
|
|
16
|
+
export declare const AreaHeaderSize: 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
|
+
}, "XS" | "SM" | "MD" | "LG" | "XL">;
|
|
9
24
|
export declare class OdxAreaHeader extends CustomElement {
|
|
10
|
-
|
|
11
|
-
|
|
25
|
+
#private;
|
|
26
|
+
alignment: AreaHeaderAlignment;
|
|
27
|
+
size: AreaHeaderSize;
|
|
12
28
|
protected render(): TemplateResult;
|
|
13
29
|
}
|
|
14
30
|
//# sourceMappingURL=area-header.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ActiveDescendantsController, CustomElement, FormAssociated } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxDropdown } from '../dropdown/dropdown.js';
|
|
4
|
+
import { OdxHighlight } from '../highlight/highlight.js';
|
|
5
|
+
import { OdxOption } from '../option/option.js';
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'odx-autocomplete': OdxAutocomplete;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare const OdxAutocomplete_base: import('../../utils/main.js').Constructor<FormAssociated<string>> & typeof CustomElement;
|
|
12
|
+
export declare class OdxAutocomplete extends OdxAutocomplete_base {
|
|
13
|
+
#private;
|
|
14
|
+
static shadowRootOptions: ShadowRootInit;
|
|
15
|
+
protected readonly activeDescendants: ActiveDescendantsController<OdxOption>;
|
|
16
|
+
protected get options(): OdxOption[];
|
|
17
|
+
protected readonly highlight: OdxHighlight;
|
|
18
|
+
protected readonly dropdown: OdxDropdown;
|
|
19
|
+
minQueryLength: number;
|
|
20
|
+
searchFn: (option: OdxOption, query?: string) => boolean;
|
|
21
|
+
get control(): HTMLInputElement | undefined;
|
|
22
|
+
get controlValue(): string;
|
|
23
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
24
|
+
protected render(): TemplateResult;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -1,13 +1,45 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
2
|
-
import {
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
3
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
5
6
|
'odx-avatar': OdxAvatar;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
9
|
+
export type AvatarShape = ValuesOf<typeof AvatarShape>;
|
|
10
|
+
export declare const AvatarShape: Pick<{
|
|
11
|
+
readonly CIRCLE: "circle";
|
|
12
|
+
readonly RECTANGLE: "rectangle";
|
|
13
|
+
}, "CIRCLE" | "RECTANGLE">;
|
|
14
|
+
export type AvatarSize = ValuesOf<typeof AvatarSize>;
|
|
15
|
+
export declare const AvatarSize: Pick<{
|
|
16
|
+
readonly XS: "xs";
|
|
17
|
+
readonly SM: "sm";
|
|
18
|
+
readonly MD: "md";
|
|
19
|
+
readonly LG: "lg";
|
|
20
|
+
readonly XL: "xl";
|
|
21
|
+
readonly XXL: "xxl";
|
|
22
|
+
}, "XS" | "SM" | "MD" | "LG" | "XL" | "XXL">;
|
|
23
|
+
export type AvatarVariant = ValuesOf<typeof AvatarVariant>;
|
|
24
|
+
export declare const AvatarVariant: Pick<{
|
|
25
|
+
readonly NEUTRAL: "neutral";
|
|
26
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
27
|
+
readonly PRIMARY: "primary";
|
|
28
|
+
readonly ACCENT: "accent";
|
|
29
|
+
readonly ACCENT_GHOST: "accent-ghost";
|
|
30
|
+
readonly SUCCESS: "success";
|
|
31
|
+
readonly WARNING: "warning";
|
|
32
|
+
readonly DANGER: "danger";
|
|
33
|
+
readonly DANGER_GHOST: "danger-ghost";
|
|
34
|
+
readonly GHOST: "ghost";
|
|
35
|
+
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "GHOST">;
|
|
8
36
|
export declare class OdxAvatar extends CustomElement {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
37
|
+
interactive: boolean;
|
|
38
|
+
name: string;
|
|
39
|
+
shape: AvatarShape;
|
|
40
|
+
size: AvatarSize;
|
|
41
|
+
variant: AvatarVariant;
|
|
42
|
+
protected willUpdate(props: PropertyValues): void;
|
|
43
|
+
protected render(): TemplateResult;
|
|
12
44
|
}
|
|
13
45
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1,15 +1,38 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
2
3
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { BadgeVariant } from './badge.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-badge': OdxBadge;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export type BadgeSize = ValuesOf<typeof BadgeSize>;
|
|
10
|
+
export declare const BadgeSize: Pick<{
|
|
11
|
+
readonly XS: "xs";
|
|
12
|
+
readonly SM: "sm";
|
|
13
|
+
readonly MD: "md";
|
|
14
|
+
readonly LG: "lg";
|
|
15
|
+
readonly XL: "xl";
|
|
16
|
+
readonly XXL: "xxl";
|
|
17
|
+
}, "SM" | "MD" | "LG">;
|
|
18
|
+
export type BadgeVariant = ValuesOf<typeof BadgeVariant>;
|
|
19
|
+
export declare const BadgeVariant: Pick<{
|
|
20
|
+
readonly NEUTRAL: "neutral";
|
|
21
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
22
|
+
readonly PRIMARY: "primary";
|
|
23
|
+
readonly ACCENT: "accent";
|
|
24
|
+
readonly ACCENT_GHOST: "accent-ghost";
|
|
25
|
+
readonly SUCCESS: "success";
|
|
26
|
+
readonly WARNING: "warning";
|
|
27
|
+
readonly DANGER: "danger";
|
|
28
|
+
readonly DANGER_GHOST: "danger-ghost";
|
|
29
|
+
readonly GHOST: "ghost";
|
|
30
|
+
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "ACCENT_GHOST" | "SUCCESS" | "WARNING" | "DANGER" | "DANGER_GHOST" | "GHOST">;
|
|
9
31
|
export declare class OdxBadge extends CustomElement {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
32
|
+
animated: boolean;
|
|
33
|
+
compact: boolean;
|
|
34
|
+
size: BadgeSize;
|
|
35
|
+
variant: BadgeVariant;
|
|
13
36
|
protected render(): TemplateResult;
|
|
14
37
|
}
|
|
15
38
|
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CustomElement } from '../../
|
|
1
|
+
import { CustomElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
2
3
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
interface BreadcrumbsItem {
|
|
4
|
+
export interface BreadcrumbsItem {
|
|
4
5
|
href: string;
|
|
5
6
|
label: string;
|
|
6
7
|
}
|
|
@@ -9,15 +10,25 @@ declare global {
|
|
|
9
10
|
'odx-breadcrumbs': OdxBreadcrumbs;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
13
|
+
export type BreadcrumbsVariant = ValuesOf<typeof BreadcrumbsVariant>;
|
|
14
|
+
export declare const BreadcrumbsVariant: Pick<{
|
|
15
|
+
readonly NEUTRAL: "neutral";
|
|
16
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
17
|
+
readonly PRIMARY: "primary";
|
|
18
|
+
readonly ACCENT: "accent";
|
|
19
|
+
readonly ACCENT_GHOST: "accent-ghost";
|
|
20
|
+
readonly SUCCESS: "success";
|
|
21
|
+
readonly WARNING: "warning";
|
|
22
|
+
readonly DANGER: "danger";
|
|
23
|
+
readonly DANGER_GHOST: "danger-ghost";
|
|
24
|
+
readonly GHOST: "ghost";
|
|
25
|
+
}, "PRIMARY" | "GHOST">;
|
|
12
26
|
export declare class OdxBreadcrumbs extends CustomElement {
|
|
13
27
|
#private;
|
|
14
|
-
private itemElements;
|
|
15
|
-
private renderedItemElements;
|
|
16
28
|
max: number;
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
variant: BreadcrumbsVariant;
|
|
30
|
+
connectedCallback(): void;
|
|
19
31
|
protected render(): TemplateResult;
|
|
20
32
|
protected updated(props: PropertyValues<this>): void;
|
|
21
33
|
}
|
|
22
|
-
export {};
|
|
23
34
|
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -1,41 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinkControlElement } from '../../main.js';
|
|
2
|
+
import { ValuesOf } from '../../utils/main.js';
|
|
2
3
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { ButtonBadgeAlign, ButtonSize, ButtonVariant } from './button.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-button': OdxButton;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
export declare const buttonDirective: import('../../utils/main.js').BooleanAttributeDirective<"odx-button">;
|
|
10
|
+
export type ButtonBadgePosition = ValuesOf<typeof ButtonBadgePosition>;
|
|
11
|
+
export declare const ButtonBadgePosition: Pick<{
|
|
12
|
+
readonly START: "start";
|
|
13
|
+
readonly CENTER: "center";
|
|
14
|
+
readonly END: "end";
|
|
15
|
+
}, "START" | "END">;
|
|
16
|
+
export type ButtonVariant = ValuesOf<typeof ButtonVariant>;
|
|
17
|
+
export declare const ButtonVariant: Pick<{
|
|
18
|
+
readonly NEUTRAL: "neutral";
|
|
19
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
20
|
+
readonly PRIMARY: "primary";
|
|
21
|
+
readonly ACCENT: "accent";
|
|
22
|
+
readonly ACCENT_GHOST: "accent-ghost";
|
|
23
|
+
readonly SUCCESS: "success";
|
|
24
|
+
readonly WARNING: "warning";
|
|
25
|
+
readonly DANGER: "danger";
|
|
26
|
+
readonly DANGER_GHOST: "danger-ghost";
|
|
27
|
+
readonly GHOST: "ghost";
|
|
28
|
+
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "WARNING" | "DANGER" | "DANGER_GHOST" | "GHOST">;
|
|
29
|
+
export declare class OdxButton extends LinkControlElement {
|
|
22
30
|
#private;
|
|
23
31
|
static readonly formAssociated = true;
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
active: boolean;
|
|
33
|
+
badgePosition: ButtonBadgePosition;
|
|
26
34
|
/**
|
|
27
35
|
* The type of the button.
|
|
28
36
|
*/
|
|
29
37
|
type: 'button' | 'submit' | 'reset';
|
|
30
|
-
/**
|
|
31
|
-
* The size of the button.
|
|
32
|
-
*/
|
|
33
|
-
size?: ButtonSize;
|
|
34
38
|
/**
|
|
35
39
|
* The variant of the button.
|
|
36
40
|
*/
|
|
37
|
-
variant
|
|
41
|
+
variant: ButtonVariant;
|
|
38
42
|
constructor();
|
|
39
|
-
|
|
43
|
+
isActive(): boolean;
|
|
44
|
+
connectedCallback(): void;
|
|
45
|
+
protected renderContent(): TemplateResult;
|
|
40
46
|
}
|
|
41
47
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ControlSize, CustomElement } from '../../main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { ButtonVariant } from '../button/button.js';
|
|
2
4
|
declare global {
|
|
3
5
|
interface HTMLElementTagNameMap {
|
|
4
6
|
'odx-button-group': OdxButtonGroup;
|
|
5
7
|
}
|
|
6
8
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export declare class OdxButtonGroup extends CustomElement {
|
|
10
|
+
size: ControlSize;
|
|
11
|
+
variant?: ButtonVariant;
|
|
10
12
|
vertical: boolean;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
protected render(): TemplateResult;
|
|
15
|
+
protected updated(props: PropertyValues<this>): void;
|
|
11
16
|
}
|
|
12
|
-
export {};
|
|
13
17
|
//# sourceMappingURL=button-group.d.ts.map
|