@odx/foundation 1.0.0-alpha.8 → 1.0.0-beta.0
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 +27 -23
- package/dist/cdk/drag-drop/is-draggable.d.ts +1 -1
- package/dist/cdk/main.d.ts +2 -2
- 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.js +23 -12
- package/dist/components/accordion/accordion-header.d.ts +18 -0
- package/dist/components/accordion/accordion-panel.d.ts +12 -0
- package/dist/components/accordion/accordion.d.ts +17 -0
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/action-group/action-group.d.ts +24 -0
- package/dist/components/action-group/index.d.ts +2 -0
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +21 -0
- package/dist/components/anchor-navigation/anchor-observer.d.ts +11 -0
- package/dist/components/anchor-navigation/index.d.ts +3 -0
- package/dist/components/area-header/{area-header.component.d.ts → area-header.d.ts} +4 -4
- package/dist/components/area-header/index.d.ts +1 -1
- package/dist/components/avatar/{avatar.component.d.ts → avatar.d.ts} +4 -4
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar-group/avatar-group.d.ts +14 -0
- package/dist/components/avatar-group/index.d.ts +1 -1
- package/dist/components/badge/{badge.component.d.ts → badge.d.ts} +6 -4
- package/dist/components/badge/badge.models.d.ts +4 -0
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +17 -0
- package/dist/components/breadcrumbs/{breadcrumbs.component.d.ts → breadcrumbs.d.ts} +4 -4
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/button/base-button.d.ts +6 -4
- package/dist/components/button/{button.component.d.ts → button.d.ts} +8 -5
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button-group/button-group.d.ts +21 -0
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/card/card.d.ts +13 -0
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/{checkbox.component.d.ts → checkbox.d.ts} +4 -4
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox-group/{checkbox-group.component.d.ts → checkbox-group.d.ts} +4 -4
- package/dist/components/checkbox-group/checkbox-group.models.d.ts +1 -0
- package/dist/components/checkbox-group/index.d.ts +1 -1
- package/dist/components/chip/{chip.component.d.ts → chip.d.ts} +5 -5
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/circular-progress-bar/{circular-progress-bar.component.d.ts → circular-progress-bar.d.ts} +4 -4
- package/dist/components/circular-progress-bar/index.d.ts +1 -1
- package/dist/components/content-box/content-box.d.ts +11 -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 +1 -1
- package/dist/components/form-field/{form-field.element.d.ts → form-field.d.ts} +4 -4
- package/dist/components/form-field/index.d.ts +1 -1
- package/dist/components/format/base-format.d.ts +13 -0
- package/dist/components/format/format-bytes.d.ts +13 -0
- package/dist/components/format/{format-date.component.d.ts → format-date.d.ts} +4 -4
- package/dist/components/format/{format-number.component.d.ts → format-number.d.ts} +4 -4
- package/dist/components/format/index.d.ts +5 -4
- package/dist/components/format/{relative-time.component.d.ts → relative-time.d.ts} +4 -4
- package/dist/components/header/header-actions.d.ts +10 -0
- package/dist/components/header/{header.component.d.ts → header.d.ts} +4 -4
- package/dist/components/header/index.d.ts +2 -2
- package/dist/components/headline/{headline.component.d.ts → headline.d.ts} +4 -4
- package/dist/components/headline/index.d.ts +1 -1
- package/dist/components/highlight/highlight.d.ts +14 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/icon-button/{icon-button.component.d.ts → icon-button.d.ts} +6 -5
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/image/image.d.ts +34 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/inline-message/index.d.ts +1 -1
- package/dist/components/inline-message/inline-message.d.ts +18 -0
- package/dist/components/inline-message/inline-message.models.d.ts +8 -5
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/input.d.ts +21 -0
- package/dist/components/line-clamp/index.d.ts +1 -1
- package/dist/components/line-clamp/line-clamp.d.ts +12 -0
- package/dist/components/link/base-link.d.ts +2 -2
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/{link.component.d.ts → link.d.ts} +3 -3
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/list-item.d.ts +23 -0
- package/dist/components/list/list.d.ts +11 -0
- package/dist/components/loading-overlay/index.d.ts +1 -1
- package/dist/components/loading-overlay/{loading-overlay.component.d.ts → loading-overlay.d.ts} +5 -5
- package/dist/components/loading-spinner/index.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.d.ts +13 -0
- package/dist/components/logo/index.d.ts +1 -1
- package/dist/components/logo/logo.d.ts +13 -0
- package/dist/components/main-menu/index.d.ts +5 -5
- package/dist/components/main-menu/main-menu-button.d.ts +12 -0
- package/dist/components/main-menu/main-menu-link.d.ts +9 -0
- package/dist/components/main-menu/main-menu-subtitle.d.ts +12 -0
- package/dist/components/main-menu/main-menu-title.d.ts +12 -0
- package/dist/components/main-menu/{main-menu.component.d.ts → main-menu.d.ts} +4 -4
- package/dist/components/main.d.ts +12 -4
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/menu-label.d.ts +9 -0
- package/dist/components/menu/{menu.component.d.ts → menu.d.ts} +8 -8
- package/dist/components/menu-item/index.d.ts +1 -1
- package/dist/components/menu-item/menu-item.d.ts +15 -0
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +35 -0
- package/dist/components/modal/modal.models.d.ts +5 -0
- package/dist/components/navigation-item/index.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.d.ts +14 -0
- package/dist/components/option/index.d.ts +1 -1
- package/dist/components/option/option.d.ts +12 -0
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/{page.component.d.ts → page.d.ts} +4 -4
- package/dist/components/page-layout/index.d.ts +1 -1
- package/dist/components/page-layout/page-layout.d.ts +11 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +32 -0
- package/dist/components/progress-bar/index.d.ts +1 -1
- package/dist/components/progress-bar/{progress-bar.component.d.ts → progress-bar.d.ts} +4 -4
- package/dist/components/radio-button/index.d.ts +1 -1
- package/dist/components/radio-button/radio-button.d.ts +13 -0
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/radio-group.d.ts +11 -0
- package/dist/components/radio-group/radio-group.models.d.ts +1 -0
- package/dist/components/rail-navigation/index.d.ts +1 -1
- package/dist/components/rail-navigation/rail-navigation.d.ts +19 -0
- package/dist/components/search-bar/index.d.ts +1 -1
- package/dist/components/search-bar/{search-bar.component.d.ts → search-bar.d.ts} +6 -5
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/select.d.ts +18 -0
- package/dist/components/separator/index.d.ts +2 -1
- package/dist/components/separator/{separator.component.d.ts → separator.d.ts} +4 -4
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/skeleton.d.ts +16 -0
- package/dist/components/skeleton/skeleton.models.d.ts +13 -0
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/{slider-handle.component.d.ts → slider-handle.d.ts} +5 -5
- package/dist/components/slider/{slider-marks.component.d.ts → slider-marks.d.ts} +4 -4
- package/dist/components/slider/{slider.component.d.ts → slider.d.ts} +6 -6
- package/dist/components/spacer/index.d.ts +1 -1
- package/dist/components/spacer/spacer.d.ts +13 -0
- package/dist/components/spinbox/index.d.ts +1 -1
- package/dist/components/spinbox/spinbox.d.ts +20 -0
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/{stack.component.d.ts → stack.d.ts} +4 -4
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +12 -0
- package/dist/components/table/index.d.ts +8 -7
- package/dist/components/table/table-body.d.ts +12 -0
- package/dist/components/table/table-cell.d.ts +12 -0
- package/dist/components/table/{table-checkbox-cell.element.d.ts → table-checkbox-cell.d.ts} +4 -4
- package/dist/components/table/table-header-cell.d.ts +13 -0
- package/dist/components/table/table-header.d.ts +14 -0
- package/dist/components/table/{table-row.element.d.ts → table-row.d.ts} +4 -4
- package/dist/components/table/table.d.ts +20 -0
- package/dist/components/table/{table.context.d.ts → table.models.d.ts} +1 -1
- package/dist/components/text/index.d.ts +1 -1
- package/dist/components/text/{text.component.d.ts → text.d.ts} +4 -4
- package/dist/components/title/index.d.ts +1 -1
- package/dist/components/title/{title.component.d.ts → title.d.ts} +4 -4
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/{toast.element.d.ts → toast.d.ts} +4 -4
- package/dist/components/toggle-button/index.d.ts +1 -1
- package/dist/components/toggle-button/{toggle-button.component.d.ts → toggle-button.d.ts} +4 -4
- package/dist/components/toggle-content/index.d.ts +2 -0
- package/dist/components/toggle-content/toggle-content.d.ts +13 -0
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/{tooltip.element.d.ts → tooltip.d.ts} +5 -6
- package/dist/components/translate/index.d.ts +2 -0
- package/dist/components/translate/translate.d.ts +16 -0
- package/dist/components/visually-hidden/index.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/components.js +2583 -1675
- package/dist/i18n/lib/config.d.ts +6 -6
- package/dist/i18n/lib/is-localized.mixin.d.ts +5 -3
- package/dist/i18n/lib/localization.d.ts +4 -4
- package/dist/i18n/lib/models.d.ts +1 -1
- package/dist/i18n/lib/translate.d.ts +6 -4
- package/dist/i18n.js +47 -42
- package/dist/lib/custom-element.d.ts +5 -5
- package/dist/lib/decorators/request-update-on-aria-change.d.ts +1 -31
- package/dist/lib/main.d.ts +7 -5
- package/dist/lib/mixins/can-be-disabled.d.ts +1 -1
- package/dist/lib/mixins/can-be-expanded.d.ts +12 -0
- package/dist/lib/mixins/can-be-selected.d.ts +9 -0
- package/dist/lib/{models/aria-mixin-strict.d.ts → utils/a11y.d.ts} +3 -1
- package/dist/lib/utils/dom.d.ts +3 -0
- package/dist/lib/utils/search-text-content.d.ts +7 -0
- package/dist/lib/utils/shared-intersection-observer.d.ts +1 -1
- package/dist/loader/main.d.ts +2 -0
- package/dist/loader.js +13 -0
- package/dist/main.js +219 -537
- package/dist/styles.css +1 -1
- package/dist/{vendor.js → vendor-C_WVAD3D.js} +21 -1
- package/dist/vite.config.d.ts +3 -0
- package/package.json +18 -13
- package/dist/assets/draeger-pangea-text-medium.woff2 +0 -0
- package/dist/assets/draeger-pangea-text-regular.woff2 +0 -0
- package/dist/assets/draeger-pangea-text-semibold.woff2 +0 -0
- package/dist/assets/fonts.css +0 -20
- package/dist/cdk/popover/popover.component.d.ts +0 -12
- package/dist/components/accordion/accordion-header.component.d.ts +0 -18
- package/dist/components/accordion/accordion-panel.component.d.ts +0 -11
- package/dist/components/accordion/accordion.component.d.ts +0 -18
- package/dist/components/avatar-group/avatar-group.component.d.ts +0 -14
- package/dist/components/breadcrumbs/breadcrumbs-item.component.d.ts +0 -17
- package/dist/components/button-group/button-group.component.d.ts +0 -18
- package/dist/components/card/card.component.d.ts +0 -13
- package/dist/components/content-box/content-box.component.d.ts +0 -11
- package/dist/components/dropdown/dropdown.component.d.ts +0 -23
- package/dist/components/format/format-bytes.component.d.ts +0 -13
- package/dist/components/format/format.component.d.ts +0 -13
- package/dist/components/header/header-actions.component.d.ts +0 -10
- package/dist/components/inline-message/inline-message.component.d.ts +0 -14
- package/dist/components/input/input.component.d.ts +0 -20
- package/dist/components/line-clamp/line-clamp.component.d.ts +0 -12
- package/dist/components/list/list-item.component.d.ts +0 -11
- package/dist/components/list/list.component.d.ts +0 -11
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +0 -13
- package/dist/components/logo/logo.component.d.ts +0 -13
- package/dist/components/main-menu/main-menu-button.component.d.ts +0 -12
- package/dist/components/main-menu/main-menu-link.component.d.ts +0 -9
- package/dist/components/main-menu/main-menu-subtitle.component.d.ts +0 -12
- package/dist/components/main-menu/main-menu-title.component.d.ts +0 -12
- package/dist/components/menu/menu-label.component.d.ts +0 -9
- package/dist/components/menu-item/menu-item.component.d.ts +0 -14
- package/dist/components/navigation-item/navigation-item.component.d.ts +0 -16
- package/dist/components/option/option.component.d.ts +0 -12
- package/dist/components/page-layout/page-layout.component.d.ts +0 -11
- package/dist/components/radio-button/radio-button.component.d.ts +0 -13
- package/dist/components/radio-group/radio-group.component.d.ts +0 -11
- package/dist/components/rail-navigation/rail-navigation.component.d.ts +0 -19
- package/dist/components/select/select.component.d.ts +0 -18
- package/dist/components/skeleton/skeleton.component.d.ts +0 -12
- package/dist/components/spacer/spacer.component.d.ts +0 -13
- package/dist/components/spinbox/spinbox.component.d.ts +0 -20
- package/dist/components/switch/switch.component.d.ts +0 -12
- package/dist/components/table/table-body.element.d.ts +0 -12
- package/dist/components/table/table-cell.element.d.ts +0 -12
- package/dist/components/table/table-header-cell.element.d.ts +0 -13
- package/dist/components/table/table-header.element.d.ts +0 -14
- package/dist/components/table/table.element.d.ts +0 -20
- package/dist/components/visually-hidden/visually-hidden.component.d.ts +0 -11
- package/dist/lib/directives/aria-boolean-attr.d.ts +0 -3
- package/dist/lib/external/roving-tabindex.d.ts +0 -87
- package/dist/lib/mixins/with-aria-controls.d.ts +0 -11
- package/dist/lib/utils/string.d.ts +0 -2
- package/public/assets/draeger-pangea-text-medium.woff2 +0 -0
- package/public/assets/draeger-pangea-text-regular.woff2 +0 -0
- package/public/assets/draeger-pangea-text-semibold.woff2 +0 -0
- package/public/assets/fonts.css +0 -20
package/README.md
CHANGED
|
@@ -3,54 +3,58 @@
|
|
|
3
3
|
|
|
4
4
|
The `@odx/foundation` package is an integral element of the ODX Design System, offering essential building blocks for developing consistent and cohesive user interfaces. This package provides foundational styles for layout, typography, and global styles, ensuring a unified design across all ODX projects.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
### Features
|
|
7
7
|
|
|
8
8
|
- **Layout Styles**: Standardized layout styles to maintain consistency across different pages and elements.
|
|
9
9
|
- **Typography**: Predefined typography styles for headers, paragraphs, and other text elements to ensure a cohesive look and feel.
|
|
10
10
|
- **Global Styles**: Comprehensive global styles that set the base for your application's design, including colors, spacing, and more.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Prequisites
|
|
13
13
|
|
|
14
|
-
To include `@odx/foundation` in your project, run the following command:
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
### Install
|
|
16
|
+
|
|
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
|
+
|
|
19
|
+
|
|
20
|
+
To install `@odx/foundation` in your project, run the following command:
|
|
17
21
|
|
|
18
22
|
```bash
|
|
19
|
-
npm install @odx/foundation @odx/icons@
|
|
23
|
+
npm install @odx/foundation @odx/icons@next --save
|
|
20
24
|
```
|
|
21
25
|
|
|
22
|
-
|
|
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
|
+
>
|
|
28
|
+
> [<img src="https://img.shields.io/npm/dependency-version/@odx/foundation/lit" />](https://npmjs.org/package/lit)
|
|
23
29
|
|
|
24
|
-
Once installed, you can import the foundational components and styles into your project:
|
|
25
30
|
|
|
26
|
-
###
|
|
31
|
+
### Setup
|
|
32
|
+
|
|
33
|
+
> Ensure that you have followed the installation and setup instructions for our [**design tokens**](https://npmjs.org/package/@odx/design-tokens) library.
|
|
34
|
+
|
|
35
|
+
Once installed, you can import the foundational components and styles into your project:
|
|
27
36
|
|
|
28
37
|
```js
|
|
38
|
+
// Load core icons
|
|
29
39
|
import '@odx/icons';
|
|
30
40
|
import '@odx/icons/core';
|
|
31
|
-
```
|
|
32
41
|
|
|
33
|
-
|
|
42
|
+
// Load components
|
|
43
|
+
import '@odx/foundation/loader';
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
// JS
|
|
37
|
-
import '@odx/foundation/fonts';
|
|
38
|
-
import '@odx/foundation/styles';
|
|
45
|
+
// Load styles (in JS)
|
|
46
|
+
import '@odx/foundation/styles'; // JS
|
|
39
47
|
|
|
40
|
-
// CSS
|
|
41
|
-
@import '@odx/foundation/assets/fonts.css';
|
|
42
|
-
@import '@odx/foundation/styles.css';
|
|
43
48
|
```
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import '@odx/foundation/components';
|
|
50
|
+
```css
|
|
51
|
+
// Load styles (in CSS)
|
|
52
|
+
@import '@odx/foundation/dist/styles.css';
|
|
49
53
|
```
|
|
50
54
|
|
|
51
|
-
|
|
55
|
+
### Documentation
|
|
52
56
|
|
|
53
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">**documentation**</a>.
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
### Contact
|
|
56
60
|
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>.
|
package/dist/cdk/main.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './drag-drop/drag-events.js';
|
|
2
2
|
export * from './drag-drop/drag.controller.js';
|
|
3
3
|
export * from './drag-drop/is-draggable.js';
|
|
4
|
-
export * from './popover/popover-host.
|
|
5
|
-
export * from './popover/popover.
|
|
4
|
+
export * from './popover/popover-host.js';
|
|
5
|
+
export * from './popover/popover.js';
|
|
6
6
|
export * from './popover/popover.models.js';
|
|
7
7
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Constructor, CustomElement } from '
|
|
2
|
-
import { PopoverPlacement } from './popover.models.js';
|
|
1
|
+
import { Constructor, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PopoverPlacement, PopoverPlacementOptions } from './popover.models.js';
|
|
3
3
|
export interface PopoverHost {
|
|
4
4
|
referenceElement: HTMLElement | null;
|
|
5
5
|
anchor: string;
|
|
6
6
|
placement?: PopoverPlacement;
|
|
7
|
+
get options(): PopoverPlacementOptions;
|
|
7
8
|
isPopoverOpen(): boolean;
|
|
8
9
|
mountPopover(referenceElement?: HTMLElement | null): void;
|
|
9
10
|
unmountPopover(referenceElement: HTMLElement): void;
|
|
@@ -15,4 +16,4 @@ export interface PopoverHost {
|
|
|
15
16
|
}
|
|
16
17
|
export type PopoverHostElement = PopoverHost & CustomElement;
|
|
17
18
|
export declare const PopoverHost: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<PopoverHost> & T;
|
|
18
|
-
//# sourceMappingURL=popover-host.
|
|
19
|
+
//# sourceMappingURL=popover-host.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-popover': OdxPopover;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class OdxPopover extends CustomElement {
|
|
9
|
+
showArrow: boolean;
|
|
10
|
+
protected render(): TemplateResult;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=popover.d.ts.map
|
package/dist/cdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dedupeMixin, createOptions, toPx, waitForAnimations, findClosestDocument, createMutationObserver, customElement, CustomElement } from '@odx/foundation';
|
|
2
2
|
import { property, state } from 'lit/decorators.js';
|
|
3
|
-
import { m as minBy, a as computePosition, o as offset, s as shift, f as flip, b as size, d as arrow, h as hide, e as autoUpdate } from './vendor.js';
|
|
3
|
+
import { m as minBy, a as computePosition, o as offset, s as shift, f as flip, b as size, d as arrow, h as hide, e as autoUpdate } from './vendor-C_WVAD3D.js';
|
|
4
4
|
import { isServer, unsafeCSS, html } from 'lit';
|
|
5
5
|
import { when } from 'lit/directives/when.js';
|
|
6
6
|
|
|
@@ -128,7 +128,7 @@ class DragController {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
const styles$1 = ":host{--_popover-transition: var(--odx-popover-transition, var(--odx-motion-duration-default));--_popover-offset: var(--odx-size-50);background-color:transparent;opacity:0;padding:var(--_popover-offset);
|
|
131
|
+
const styles$1 = "@layer base{:host{--max-block-size: 100%;--max-inline-size: 100%;--_popover-color-background: var(--odx-color-transparent);--_popover-color-foreground: inherit;--_popover-min-block-size: inherit;--_popover-max-block-size: 100%;--_popover-min-inline-size: inherit;--_popover-max-inline-size: 100%;--_popover-transition: var(--odx-popover-transition, var(--odx-motion-duration-default));--_popover-offset: var(--odx-size-50);--_popover-shadow: var(--odx-popover-shadow, var(--odx-shadow-level-1));--_popover-outer-padding: var(--odx-size-75);--_max-block-size: min(var(--_popover-max-block-size), var(--max-block-size));--_max-inline-size: min(var(--_popover-max-inline-size), var(--max-inline-size));background-color:transparent;opacity:0;padding:var(--_popover-offset);transform:translate(var(--_popover-transition-offset-x),var(--_popover-transition-offset-y));transition:opacity var(--_popover-transition),transform var(--_popover-transition) allow-discrete,overlay var(--_popover-transition) allow-discrete,display var(--_popover-transition) allow-discrete;max-block-size:var(--_max-block-size);max-inline-size:var(--_max-inline-size);margin:0;top:var(--_popover-position-y);left:var(--_popover-position-x)}:host(:popover-open){display:flex;opacity:1;transform:translate(0);@starting-style{opacity:0;transform:translate(var(--_popover-transition-offset-x),var(--_popover-transition-offset-y))}}}@layer state{:host,:host([popover-placement^=\"top\"]){--_popover-transition-offset-x: 0;--_popover-transition-offset-y: calc(-1 * var(--_popover-offset));padding-block-start:var(--_popover-outer-padding);max-block-size:calc(var(--_max-block-size) - var(--_popover-outer-padding))}:host([popover-placement^=\"right\"]){--_popover-transition-offset-x: var(--_popover-offset);--_popover-transition-offset-y: 0;padding-inline-end:var(--_popover-outer-padding);max-inline-size:calc(var(--_max-inline-size) - var(--_popover-outer-padding))}:host([popover-placement^=\"bottom\"]){--_popover-transition-offset-x: 0;--_popover-transition-offset-y: var(--_popover-offset);padding-block-end:var(--_popover-outer-padding);max-block-size:calc(var(--_max-block-size) - var(--_popover-outer-padding))}:host([popover-placement^=\"left\"]){--_popover-transition-offset-x: calc(-1 * var(--_popover-offset));--_popover-transition-offset-y: 0;padding-inline-start:var(--_popover-outer-padding);max-inline-size:calc(var(--_max-inline-size) - var(--_popover-outer-padding))}}";
|
|
132
132
|
|
|
133
133
|
const PopoverPlacement = {
|
|
134
134
|
TOP: "top",
|
|
@@ -167,6 +167,7 @@ async function computePopoverPlacement(referenceElement, floatingElement, option
|
|
|
167
167
|
const arrowSize = arrowElement?.offsetWidth ?? 0;
|
|
168
168
|
const arrowMiddleware = arrowElement ? arrow({ element: arrowElement, padding: arrowSize * 3 }) : void 0;
|
|
169
169
|
const flipMiddleWare = enableFallback ? flip({ fallbackAxisSideDirection }) : void 0;
|
|
170
|
+
floatingElement.setAttribute("popover-placement", placement);
|
|
170
171
|
const result = await computePosition(referenceElement, floatingElement, {
|
|
171
172
|
placement,
|
|
172
173
|
middleware: [
|
|
@@ -174,12 +175,12 @@ async function computePopoverPlacement(referenceElement, floatingElement, option
|
|
|
174
175
|
shift({ padding: 0 }),
|
|
175
176
|
flipMiddleWare,
|
|
176
177
|
size({
|
|
177
|
-
|
|
178
|
-
apply: ({ availableHeight, availableWidth, rects }) => {
|
|
178
|
+
apply: ({ availableHeight, availableWidth, rects, placement: currentPlacement }) => {
|
|
179
179
|
floatingElement.style.setProperty("--_popover-min-inline-size", matchReferenceWidth ? toPx(rects.reference.width) : null);
|
|
180
180
|
floatingElement.style.setProperty("--_popover-max-inline-size", toPx(availableWidth));
|
|
181
181
|
floatingElement.style.setProperty("--_popover-min-block-size", minHeight ? toPx(Math.min(availableHeight, minHeight)) : null);
|
|
182
182
|
floatingElement.style.setProperty("--_popover-max-block-size", toPx(availableHeight));
|
|
183
|
+
floatingElement.setAttribute("popover-placement", currentPlacement);
|
|
183
184
|
}
|
|
184
185
|
}),
|
|
185
186
|
arrowMiddleware,
|
|
@@ -237,9 +238,12 @@ const PopoverHost = dedupeMixin((superClass) => {
|
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
240
|
static {
|
|
240
|
-
this.styles = [superClass.styles ?? [], unsafeCSS(styles$1)];
|
|
241
|
+
this.styles = [superClass.styles ?? [], unsafeCSS(styles$1)].flat(2);
|
|
241
242
|
}
|
|
242
243
|
#observer;
|
|
244
|
+
get options() {
|
|
245
|
+
return PopoverPlacementOptions({ placement: this.placement ?? PopoverPlacement.BOTTOM });
|
|
246
|
+
}
|
|
243
247
|
connectedCallback() {
|
|
244
248
|
super.connectedCallback?.();
|
|
245
249
|
this.popover ??= "auto";
|
|
@@ -258,7 +262,14 @@ const PopoverHost = dedupeMixin((superClass) => {
|
|
|
258
262
|
return;
|
|
259
263
|
}
|
|
260
264
|
this.referenceElement = referenceElement;
|
|
261
|
-
autoUpdate(
|
|
265
|
+
autoUpdate(
|
|
266
|
+
this.referenceElement,
|
|
267
|
+
this,
|
|
268
|
+
() => (
|
|
269
|
+
// biome-ignore lint/style/noNonNullAssertion: Reference element is defined when mounting popover
|
|
270
|
+
computePopoverPlacement(this.referenceElement, this, this.options)
|
|
271
|
+
)
|
|
272
|
+
);
|
|
262
273
|
}
|
|
263
274
|
unmountPopover(referenceElement) {
|
|
264
275
|
this.hidePopover();
|
|
@@ -309,7 +320,7 @@ const PopoverHost = dedupeMixin((superClass) => {
|
|
|
309
320
|
return PopoverHostClass;
|
|
310
321
|
});
|
|
311
322
|
|
|
312
|
-
const styles = ":host{--
|
|
323
|
+
const styles = ":host{--_arrow-size: var(--odx-size-50);--_outer-padding: var(--odx-size-75);--_border-radius: var(--odx-popover-border-radius, var(--odx-border-radius-controls));display:flex;background-color:transparent}:host::part(arrow),:host::part(content){background-color:var(--_popover-color-background)}:host::part(content){display:flex;flex-direction:column;position:relative;inset-block-start:0!important;inset-inline-start:0!important;block-size:fit-content;min-block-size:var(--_popover-min-block-size);max-block-size:100%;min-inline-size:var(--_popover-min-inline-size);max-inline-size:100%;box-shadow:var(--_popover-shadow);color:var(--_popover-color-foreground);padding:var(--_outer-padding);border-radius:var(--_border-radius);z-index:2;overflow:auto;scrollbar-width:thin}:host::part(arrow){border-radius:var(--odx-border-radius-sm);position:absolute;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);z-index:3;inset:0;transform:translate3d(var(--_popover-arrow-position-x),var(--_popover-arrow-position-y),0) rotate(45deg)}";
|
|
313
324
|
|
|
314
325
|
var __defProp = Object.defineProperty;
|
|
315
326
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -321,7 +332,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
321
332
|
if (kind && result) __defProp(target, key, result);
|
|
322
333
|
return result;
|
|
323
334
|
};
|
|
324
|
-
let
|
|
335
|
+
let OdxPopover = class extends CustomElement {
|
|
325
336
|
constructor() {
|
|
326
337
|
super(...arguments);
|
|
327
338
|
this.showArrow = false;
|
|
@@ -337,9 +348,9 @@ let OdxPopoverComponent = class extends CustomElement {
|
|
|
337
348
|
};
|
|
338
349
|
__decorateClass([
|
|
339
350
|
property({ type: Boolean, reflect: true })
|
|
340
|
-
],
|
|
341
|
-
|
|
351
|
+
], OdxPopover.prototype, "showArrow", 2);
|
|
352
|
+
OdxPopover = __decorateClass([
|
|
342
353
|
customElement("odx-popover", [styles])
|
|
343
|
-
],
|
|
354
|
+
], OdxPopover);
|
|
344
355
|
|
|
345
|
-
export { DragController, IS_DRAG_ACTIVE_ATTRIBUTE, IsDraggable,
|
|
356
|
+
export { DragController, IS_DRAG_ACTIVE_ATTRIBUTE, IsDraggable, OdxPopover, PopoverHost, PopoverPlacement, PopoverPlacementOptions, PopoverSide, isDraggableElement };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CanBeExpanded, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxAccordionPanel } from './accordion-panel.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-accordion-header': OdxAccordionHeader;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare const OdxAccordionHeader_base: import('../../lib/main.js').Constructor<CanBeExpanded> & typeof CustomElement;
|
|
10
|
+
export declare class OdxAccordionHeader extends OdxAccordionHeader_base {
|
|
11
|
+
#private;
|
|
12
|
+
get panel(): OdxAccordionPanel | null;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
protected render(): TemplateResult;
|
|
15
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=accordion-header.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-accordion-panel': OdxAccordionPanel;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class OdxAccordionPanel extends CustomElement {
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
protected render(): TemplateResult;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=accordion-panel.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-accordion': OdxAccordion;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
declare const OdxAccordion_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
|
+
export declare class OdxAccordion extends OdxAccordion_base {
|
|
10
|
+
#private;
|
|
11
|
+
private controls;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
constructor();
|
|
14
|
+
protected updated(props: PropertyValues): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './accordion-header.
|
|
2
|
-
export * from './accordion-panel.
|
|
3
|
-
export * from './accordion.
|
|
1
|
+
export * from './accordion-header.js';
|
|
2
|
+
export * from './accordion-panel.js';
|
|
3
|
+
export * from './accordion.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { ButtonSize, ButtonVariant } from '../button/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-action-group': OdxActionGroup;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare const OdxActionGroup_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
|
+
export declare class OdxActionGroup extends OdxActionGroup_base {
|
|
11
|
+
#private;
|
|
12
|
+
private assignedElements;
|
|
13
|
+
private fallbackElements;
|
|
14
|
+
private base;
|
|
15
|
+
private container;
|
|
16
|
+
connected: boolean;
|
|
17
|
+
size?: ButtonSize | null;
|
|
18
|
+
variant?: ButtonVariant | null;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
protected render(): TemplateResult;
|
|
21
|
+
protected updated(props: PropertyValues<this>): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=action-group.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValueMap, TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-anchor-navigation': OdxAnchorNavigation;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
declare const OdxAnchorNavigation_base: typeof CustomElement;
|
|
9
|
+
export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
|
|
10
|
+
#private;
|
|
11
|
+
container?: string;
|
|
12
|
+
vertical: boolean;
|
|
13
|
+
constructor();
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
renderAnchorLink(anchor: Element, isActive?: boolean): unknown;
|
|
17
|
+
protected render(): TemplateResult;
|
|
18
|
+
protected updated(props: PropertyValueMap<this>): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=anchor-navigation.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class AnchorObserver {
|
|
2
|
+
#private;
|
|
3
|
+
readonly root: Element | Document;
|
|
4
|
+
readonly anchors: import('@preact/signals-core').Signal<Element[]>;
|
|
5
|
+
readonly visibleAnchors: import('@preact/signals-core').ReadonlySignal<Element[]>;
|
|
6
|
+
constructor(root?: Element | null);
|
|
7
|
+
observe(): void;
|
|
8
|
+
disconnect(): void;
|
|
9
|
+
updateAnchors: () => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=anchor-observer.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CustomElement } from '
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
import { AreaHeaderSize, AreaHeaderVariant } from './area-header.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'odx-area-header':
|
|
6
|
+
'odx-area-header': OdxAreaHeader;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class OdxAreaHeader extends CustomElement {
|
|
10
10
|
size?: AreaHeaderSize;
|
|
11
11
|
variant?: AreaHeaderVariant;
|
|
12
12
|
protected render(): TemplateResult;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=area-header.
|
|
14
|
+
//# sourceMappingURL=area-header.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CustomElement } from '
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
import { AvatarSize, AvatarVariant } from './avatar.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'odx-avatar':
|
|
6
|
+
'odx-avatar': OdxAvatar;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class OdxAvatar extends CustomElement {
|
|
10
10
|
size?: AvatarSize;
|
|
11
11
|
variant?: AvatarVariant;
|
|
12
12
|
protected render(): TemplateResult;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=avatar.
|
|
14
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
import { AvatarSize, AvatarVariant, OdxAvatar } from '../avatar/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-avatar-group': OdxAvatarGroup;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class OdxAvatarGroup extends CustomElement implements Pick<OdxAvatar, 'size' | 'variant'> {
|
|
10
|
+
size?: AvatarSize;
|
|
11
|
+
variant?: AvatarVariant;
|
|
12
|
+
protected render(): TemplateResult;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=avatar-group.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './avatar-group.
|
|
1
|
+
export * from './avatar-group.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { CustomElement } from '
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
import { BadgeVariant } from './badge.models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'odx-badge':
|
|
6
|
+
'odx-badge': OdxBadge;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class OdxBadge extends CustomElement {
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
pulse?: boolean;
|
|
10
12
|
variant?: BadgeVariant;
|
|
11
13
|
protected render(): TemplateResult;
|
|
12
14
|
}
|
|
13
|
-
//# sourceMappingURL=badge.
|
|
15
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxLink } from '../link/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-breadcrumbs-item': OdxBreadcrumbsItem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class OdxBreadcrumbsItem extends CustomElement {
|
|
10
|
+
private linkElements;
|
|
11
|
+
fallback: boolean;
|
|
12
|
+
isLast(): boolean;
|
|
13
|
+
protected get interactiveElement(): OdxLink | null;
|
|
14
|
+
protected render(): TemplateResult;
|
|
15
|
+
protected updated(props: PropertyValues<this>): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=breadcrumbs-item.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomElement } from '
|
|
1
|
+
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
interface BreadcrumbsItem {
|
|
4
4
|
href: string;
|
|
@@ -6,10 +6,10 @@ interface BreadcrumbsItem {
|
|
|
6
6
|
}
|
|
7
7
|
declare global {
|
|
8
8
|
interface HTMLElementTagNameMap {
|
|
9
|
-
'odx-breadcrumbs':
|
|
9
|
+
'odx-breadcrumbs': OdxBreadcrumbs;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class OdxBreadcrumbs extends CustomElement {
|
|
13
13
|
#private;
|
|
14
14
|
private itemElements;
|
|
15
15
|
private renderedItemElements;
|
|
@@ -20,4 +20,4 @@ export declare class OdxBreadcrumbsComponent extends CustomElement {
|
|
|
20
20
|
protected updated(props: PropertyValues<this>): void;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
23
|
-
//# sourceMappingURL=breadcrumbs.
|
|
23
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './breadcrumbs-item.
|
|
2
|
-
export * from './breadcrumbs.
|
|
1
|
+
export * from './breadcrumbs-item.js';
|
|
2
|
+
export * from './breadcrumbs.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateResult, nothing } from 'lit';
|
|
2
2
|
import { BaseLink } from '../link/index.js';
|
|
3
|
-
declare const
|
|
3
|
+
declare const BaseButton_base: import('../../lib/main.js').Constructor<import('../../lib/main.js').HasLoadingState> & typeof BaseLink;
|
|
4
4
|
/**
|
|
5
5
|
* A button is clickable text or an icon that triggers an action on the page or in the background.
|
|
6
6
|
* Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
|
|
@@ -13,11 +13,13 @@ declare const BaseButtonComponent_base: import('../../dist/lib/main.js', { with:
|
|
|
13
13
|
* @slot suffix - Contains the button's icon or state indicator, e.g. a spinner.
|
|
14
14
|
* @slot - Contains button text
|
|
15
15
|
*/
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class BaseButton extends BaseButton_base {
|
|
17
|
+
static readonly styles: import('lit').CSSResult;
|
|
18
|
+
lineClamp: 1 | 2;
|
|
17
19
|
protected render(): TemplateResult;
|
|
18
|
-
protected renderContent(): TemplateResult;
|
|
20
|
+
protected renderContent(withSpinner?: boolean): TemplateResult;
|
|
19
21
|
protected renderButton(): TemplateResult<1>;
|
|
20
|
-
protected renderSlot(name: 'prefix' | 'suffix'): TemplateResult;
|
|
22
|
+
protected renderSlot(name: 'prefix' | 'suffix', force?: boolean): TemplateResult;
|
|
21
23
|
protected renderOverlay(): TemplateResult | typeof nothing;
|
|
22
24
|
protected renderSpinner(overlay?: boolean): TemplateResult;
|
|
23
25
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { BaseButton } from './base-button.js';
|
|
2
3
|
import { ButtonSize, ButtonVariant } from './button.models.js';
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'odx-button':
|
|
6
|
+
'odx-button': OdxButton;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
declare const
|
|
9
|
+
declare const OdxButton_base: import('../../lib/main.js').Constructor<import('../../lib/main.js').HasLoadingState> & typeof BaseButton;
|
|
9
10
|
/**
|
|
10
11
|
* A button is clickable text or an icon that triggers an action on the page or in the background.
|
|
11
12
|
* Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
|
|
@@ -18,9 +19,10 @@ declare const OdxButtonComponent_base: import('../../dist/lib/main.js', { with:
|
|
|
18
19
|
* @slot suffix - Contains the button's icon or state indicator, e.g. a spinner.
|
|
19
20
|
* @slot - Contains button text
|
|
20
21
|
*/
|
|
21
|
-
export declare class
|
|
22
|
+
export declare class OdxButton extends OdxButton_base {
|
|
22
23
|
#private;
|
|
23
24
|
static readonly formAssociated = true;
|
|
25
|
+
alignBadge?: 'center' | 'end';
|
|
24
26
|
block: boolean;
|
|
25
27
|
/**
|
|
26
28
|
* The type of the button.
|
|
@@ -35,6 +37,7 @@ export declare class OdxButtonComponent extends OdxButtonComponent_base {
|
|
|
35
37
|
*/
|
|
36
38
|
variant?: ButtonVariant;
|
|
37
39
|
constructor();
|
|
40
|
+
protected render(): TemplateResult;
|
|
38
41
|
}
|
|
39
42
|
export {};
|
|
40
|
-
//# sourceMappingURL=button.
|
|
43
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { ButtonSize, ButtonVariant } from '../button/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-button-group': OdxButtonGroup;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare const OdxButtonGroup_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
|
+
export declare class OdxButtonGroup extends OdxButtonGroup_base {
|
|
11
|
+
private buttons;
|
|
12
|
+
private allButtons;
|
|
13
|
+
block: boolean;
|
|
14
|
+
connected: boolean;
|
|
15
|
+
vertical: boolean;
|
|
16
|
+
size?: ButtonSize | null;
|
|
17
|
+
variant?: ButtonVariant | null;
|
|
18
|
+
protected updated(props: PropertyValues<this>): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './button-group.
|
|
1
|
+
export * from './button-group.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|