@odx/foundation 1.0.0-beta.4 → 1.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/components/accordion/accordion-header.d.ts +4 -6
- package/dist/components/accordion/accordion-panel.d.ts +1 -0
- package/dist/components/accordion/accordion.d.ts +4 -4
- package/dist/components/action-button/action-button.d.ts +24 -0
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +1 -1
- package/dist/components/area-header/area-header.d.ts +10 -3
- package/dist/components/avatar/avatar.d.ts +26 -4
- package/dist/components/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +11 -2
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +1 -1
- package/dist/components/button/button.d.ts +29 -7
- package/dist/components/button-group/button-group.d.ts +0 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +7 -3
- package/dist/components/chip/chip.d.ts +13 -4
- package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +11 -3
- package/dist/components/combobox/autocomplete.d.ts +25 -0
- package/dist/components/dropdown/dropdown.d.ts +13 -8
- package/dist/components/headline/headline.d.ts +10 -2
- package/dist/components/highlight/highlight.d.ts +8 -3
- package/dist/components/icon-button/icon-button.d.ts +3 -3
- package/dist/components/inline-message/inline-message.d.ts +12 -3
- package/dist/components/input/input.d.ts +1 -2
- package/dist/components/kpi/kpi.d.ts +36 -0
- package/dist/components/link/link.d.ts +2 -2
- package/dist/components/list/list-item.d.ts +7 -8
- package/dist/components/list/list.d.ts +5 -0
- package/dist/components/logo/logo.d.ts +10 -2
- package/dist/components/main-menu/main-menu-link.d.ts +2 -2
- package/dist/components/main.d.ts +55 -52
- package/dist/components/menu/menu.d.ts +3 -6
- package/dist/components/menu-item/menu-item.d.ts +4 -6
- package/dist/components/modal/modal.d.ts +8 -4
- package/dist/components/navigation-item/navigation-item.d.ts +11 -4
- package/dist/components/option/option.d.ts +0 -1
- package/dist/components/page/page.d.ts +15 -6
- package/dist/components/progress-bar/progress-bar.d.ts +7 -2
- package/dist/components/radio-group/radio-group.d.ts +7 -3
- package/dist/components/search-bar/index.d.ts +0 -1
- package/dist/components/search-bar/search-bar.d.ts +6 -2
- package/dist/components/select/select.d.ts +11 -7
- package/dist/components/separator/separator.d.ts +6 -2
- package/dist/components/skeleton/skeleton.d.ts +16 -2
- package/dist/components/slider/slider-handle.d.ts +2 -3
- package/dist/components/slider/slider.d.ts +1 -2
- package/dist/components/slider/slider.models.d.ts +3 -2
- package/dist/components/stack/stack.d.ts +4 -3
- package/dist/components/stack/stack.models.d.ts +5 -4
- package/dist/components/status/status.d.ts +23 -0
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/text/text.d.ts +20 -2
- package/dist/components/title/title.d.ts +10 -2
- package/dist/components/toast/toast.d.ts +11 -2
- package/dist/components/toggle-content/toggle-content.d.ts +2 -3
- package/dist/components/tooltip/tooltip.d.ts +24 -6
- package/dist/components.js +1690 -1652
- package/dist/i18n/lib/config.d.ts +4 -3
- package/dist/i18n/lib/localization.d.ts +1 -1
- package/dist/i18n.js +16 -11
- package/dist/lib/control/listbox-form-control.d.ts +25 -0
- package/dist/lib/control/option-control.d.ts +28 -0
- package/dist/lib/controllers/active-descendants-controller.d.ts +26 -0
- package/dist/lib/controllers/expandable-controller.d.ts +17 -0
- package/dist/lib/controllers/focus-trap.controller.d.ts +1 -0
- package/dist/lib/custom-element.d.ts +1 -1
- package/dist/{cdk → lib}/drag-drop/drag.controller.d.ts +1 -0
- package/dist/{cdk → lib}/drag-drop/is-draggable.d.ts +3 -3
- package/dist/{components/button/base-button.d.ts → lib/interactive/interactive-element.d.ts} +9 -8
- package/dist/lib/interactive/interactive-link.d.ts +16 -0
- package/dist/lib/main.d.ts +32 -17
- package/dist/lib/mixins/active-descendant.d.ts +11 -0
- package/dist/lib/mixins/can-be-disabled.d.ts +1 -1
- package/dist/lib/mixins/can-be-expanded.d.ts +3 -5
- package/dist/lib/mixins/can-be-selected.d.ts +1 -1
- package/dist/lib/mixins/form-control.d.ts +12 -7
- package/dist/lib/mixins/number-control.d.ts +1 -1
- package/dist/lib/mixins/with-loading-state.d.ts +1 -1
- package/dist/lib/models/shape.d.ts +7 -0
- package/dist/lib/models/size.d.ts +11 -0
- package/dist/lib/models/state.d.ts +8 -0
- package/dist/lib/models/variant.d.ts +12 -0
- package/dist/lib/popover/popover-host.d.ts +30 -0
- package/dist/lib/popover/popover-observer.d.ts +11 -0
- package/dist/{cdk → lib}/popover/popover.d.ts +1 -1
- package/dist/{cdk → lib}/popover/popover.models.d.ts +4 -3
- package/dist/lib/utils/a11y.d.ts +0 -6
- package/dist/lib/utils/dedupe-mixin.d.ts +3 -0
- package/dist/lib/utils/dom.d.ts +6 -7
- package/dist/lib/utils/lit.d.ts +5 -0
- package/dist/lib/utils/query-assigned-element.d.ts +16 -0
- package/dist/lib/utils/search-text-content.d.ts +2 -0
- package/dist/lib/utils/types.d.ts +3 -0
- package/dist/loader.js +4 -5
- package/dist/main.js +1135 -466
- package/dist/styles.css +1 -1
- package/dist/vendor-C_8wBEOn.js +149 -0
- package/package.json +9 -13
- package/dist/cdk/main.d.ts +0 -7
- package/dist/cdk/popover/popover-host.d.ts +0 -19
- package/dist/cdk.js +0 -356
- package/dist/components/action-group/action-group.d.ts +0 -24
- package/dist/components/action-group/index.d.ts +0 -2
- 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 -13
- package/dist/components/avatar/index.d.ts +0 -3
- 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/button/button.models.d.ts +0 -15
- package/dist/components/button/index.d.ts +0 -4
- 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.models.d.ts +0 -7
- package/dist/components/circular-progress-bar/index.d.ts +0 -3
- 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/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/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/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/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.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/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/lib/decorators/request-update-on-aria-change.d.ts +0 -4
- package/dist/lib/directives/optional-attr.d.ts +0 -2
- package/dist/lib/directives/optional-slot.d.ts +0 -3
- package/dist/lib/directives/slot-fallback.d.ts +0 -8
- package/dist/lib/facade/option-control.d.ts +0 -16
- package/dist/lib/facade/select-form-control.d.ts +0 -19
- 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-validated.d.ts +0 -12
- package/dist/lib/mixins/dedupe-mixin.d.ts +0 -3
- package/dist/lib/utils/object.d.ts +0 -2
- package/dist/vendor-C_WVAD3D.js +0 -3680
- package/dist/vite.config.d.ts +0 -3
- /package/dist/lib/{facade → control}/checkbox-form-control.d.ts +0 -0
- /package/dist/lib/{facade → control}/checkbox-group-form-control.d.ts +0 -0
- /package/dist/lib/{facade → control}/radio-group-form-control.d.ts +0 -0
- /package/dist/{cdk → lib}/drag-drop/drag-events.d.ts +0 -0
- /package/dist/{cdk → lib}/popover/popover.utils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@ The `@odx/foundation` package is an integral element of the ODX Design System, o
|
|
|
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
|
-
###
|
|
13
|
-
|
|
12
|
+
### Prerequisites
|
|
14
13
|
|
|
15
14
|
### Install
|
|
16
15
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { CanBeExpanded,
|
|
1
|
+
import { CanBeExpanded, InteractiveElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import { OdxAccordionPanel } from './accordion-panel.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-accordion-header': OdxAccordionHeader;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
declare const OdxAccordionHeader_base: import('../../lib/main.js').Constructor<CanBeExpanded> & typeof
|
|
8
|
+
declare const OdxAccordionHeader_base: import('../../lib/main.js').Constructor<CanBeExpanded> & typeof InteractiveElement;
|
|
10
9
|
export declare class OdxAccordionHeader extends OdxAccordionHeader_base {
|
|
11
10
|
#private;
|
|
12
|
-
|
|
13
|
-
get panel(): OdxAccordionPanel | null;
|
|
11
|
+
get panel(): HTMLElement | null;
|
|
14
12
|
connectedCallback(): void;
|
|
15
|
-
protected
|
|
13
|
+
protected renderContent(): TemplateResult;
|
|
16
14
|
protected willUpdate(props: PropertyValues<this>): void;
|
|
17
15
|
}
|
|
18
16
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import {
|
|
2
|
+
import { OdxAccordionHeader } from './accordion-header.js';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-accordion': OdxAccordion;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export declare class OdxAccordion extends CustomElement {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
items: OdxAccordionHeader[];
|
|
10
|
+
indicatorPosition?: 'start';
|
|
11
11
|
multiple: boolean;
|
|
12
12
|
constructor();
|
|
13
|
-
|
|
13
|
+
toggleAll(state?: boolean, emitEvent?: boolean): void;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { OdxButton } from '../button/button.js';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-action-button': OdxActionButton;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class OdxActionButton extends OdxButton {
|
|
9
|
+
#private;
|
|
10
|
+
protected isStatusMessageShown: boolean;
|
|
11
|
+
done: boolean;
|
|
12
|
+
icon: OdxIconName | undefined;
|
|
13
|
+
statusIcon: OdxIconName;
|
|
14
|
+
statusMessage: string;
|
|
15
|
+
statusTimeout: number;
|
|
16
|
+
statusMessageTimeout: number;
|
|
17
|
+
replaceContent: boolean;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
20
|
+
protected render(): TemplateResult;
|
|
21
|
+
protected renderContent(): TemplateResult;
|
|
22
|
+
protected updated(props: PropertyValues<this>): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=action-button.d.ts.map
|
|
@@ -13,7 +13,7 @@ export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
|
|
|
13
13
|
constructor();
|
|
14
14
|
connectedCallback(): void;
|
|
15
15
|
disconnectedCallback(): void;
|
|
16
|
-
renderAnchorLink(anchor: Element, isActive?: boolean):
|
|
16
|
+
renderAnchorLink(anchor: Element, isActive?: boolean): TemplateResult;
|
|
17
17
|
protected render(): TemplateResult;
|
|
18
18
|
protected updated(props: PropertyValueMap<this>): void;
|
|
19
19
|
}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { AreaHeaderSize, AreaHeaderVariant } from './area-header.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-area-header': OdxAreaHeader;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type AreaHeaderSize = EnumString<typeof AreaHeaderSize>;
|
|
9
|
+
export declare const AreaHeaderSize: Pick<{
|
|
10
|
+
readonly XS: "xs";
|
|
11
|
+
readonly SM: "sm";
|
|
12
|
+
readonly MD: "md";
|
|
13
|
+
readonly LG: "lg";
|
|
14
|
+
readonly XL: "xl";
|
|
15
|
+
readonly XXL: "xxl";
|
|
16
|
+
}, "SM" | "MD" | "LG" | "XL">;
|
|
9
17
|
export declare class OdxAreaHeader extends CustomElement {
|
|
10
18
|
size?: AreaHeaderSize;
|
|
11
|
-
variant?: AreaHeaderVariant;
|
|
12
19
|
protected render(): TemplateResult;
|
|
13
20
|
}
|
|
14
21
|
//# sourceMappingURL=area-header.d.ts.map
|
|
@@ -1,14 +1,36 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
import { AvatarSize, AvatarVariant } from './avatar.models.js';
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
4
2
|
declare global {
|
|
5
3
|
interface HTMLElementTagNameMap {
|
|
6
4
|
'odx-avatar': OdxAvatar;
|
|
7
5
|
}
|
|
8
6
|
}
|
|
7
|
+
export type AvatarShape = EnumString<typeof AvatarShape>;
|
|
8
|
+
export declare const AvatarShape: Pick<{
|
|
9
|
+
readonly CIRCLE: "circle";
|
|
10
|
+
readonly RECTANGLE: "rectangle";
|
|
11
|
+
}, "CIRCLE" | "RECTANGLE">;
|
|
12
|
+
export type AvatarSize = EnumString<typeof AvatarSize>;
|
|
13
|
+
export declare const AvatarSize: Pick<{
|
|
14
|
+
readonly XS: "xs";
|
|
15
|
+
readonly SM: "sm";
|
|
16
|
+
readonly MD: "md";
|
|
17
|
+
readonly LG: "lg";
|
|
18
|
+
readonly XL: "xl";
|
|
19
|
+
readonly XXL: "xxl";
|
|
20
|
+
}, "SM" | "MD" | "LG" | "XL">;
|
|
21
|
+
export type AvatarVariant = EnumString<typeof AvatarVariant>;
|
|
22
|
+
export declare const AvatarVariant: Pick<{
|
|
23
|
+
readonly NEUTRAL: "neutral";
|
|
24
|
+
readonly PRIMARY: "primary";
|
|
25
|
+
readonly ACCENT: "accent";
|
|
26
|
+
readonly SUCCESS: "success";
|
|
27
|
+
readonly WARNING: "warning";
|
|
28
|
+
readonly DANGER: "danger";
|
|
29
|
+
readonly GHOST: "ghost";
|
|
30
|
+
}, "NEUTRAL" | "PRIMARY">;
|
|
9
31
|
export declare class OdxAvatar extends CustomElement {
|
|
32
|
+
shape?: AvatarShape;
|
|
10
33
|
size?: AvatarSize;
|
|
11
34
|
variant?: AvatarVariant;
|
|
12
|
-
protected render(): TemplateResult;
|
|
13
35
|
}
|
|
14
36
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues } from 'lit';
|
|
3
|
-
import { AvatarSize, AvatarVariant, OdxAvatar } from '../avatar/
|
|
3
|
+
import { AvatarSize, AvatarVariant, OdxAvatar } from '../avatar/avatar.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-avatar-group': OdxAvatarGroup;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { BadgeVariant } from './badge.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-badge': OdxBadge;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type BadgeVariant = EnumString<typeof BadgeVariant>;
|
|
9
|
+
export declare const BadgeVariant: Pick<{
|
|
10
|
+
readonly NEUTRAL: "neutral";
|
|
11
|
+
readonly PRIMARY: "primary";
|
|
12
|
+
readonly ACCENT: "accent";
|
|
13
|
+
readonly SUCCESS: "success";
|
|
14
|
+
readonly WARNING: "warning";
|
|
15
|
+
readonly DANGER: "danger";
|
|
16
|
+
readonly GHOST: "ghost";
|
|
17
|
+
}, "SUCCESS" | "NEUTRAL" | "PRIMARY" | "ACCENT" | "WARNING" | "DANGER">;
|
|
9
18
|
export declare class OdxBadge extends CustomElement {
|
|
10
19
|
compact?: boolean;
|
|
11
20
|
pulse?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import { OdxLink } from '../link/
|
|
3
|
+
import { OdxLink } from '../link/link.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-breadcrumbs-item': OdxBreadcrumbsItem;
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
+
import { EnumString, InteractiveElement } from '../../lib/main.js';
|
|
1
2
|
import { TemplateResult } from 'lit';
|
|
2
|
-
import { BaseButton } from './base-button.js';
|
|
3
|
-
import { ButtonSize, ButtonVariant } from './button.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-button': OdxButton;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
|
-
|
|
8
|
+
export type ButtonBadgeAlign = EnumString<typeof ButtonBadgeAlign>;
|
|
9
|
+
export declare const ButtonBadgeAlign: {
|
|
10
|
+
readonly START: "start";
|
|
11
|
+
readonly CENTER: "center";
|
|
12
|
+
readonly END: "end";
|
|
13
|
+
};
|
|
14
|
+
export type ButtonSize = EnumString<typeof ButtonSize>;
|
|
15
|
+
export declare const ButtonSize: 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">;
|
|
23
|
+
export type ButtonVariant = EnumString<typeof ButtonVariant>;
|
|
24
|
+
export declare const ButtonVariant: Pick<{
|
|
25
|
+
readonly NEUTRAL: "neutral";
|
|
26
|
+
readonly PRIMARY: "primary";
|
|
27
|
+
readonly ACCENT: "accent";
|
|
28
|
+
readonly SUCCESS: "success";
|
|
29
|
+
readonly WARNING: "warning";
|
|
30
|
+
readonly DANGER: "danger";
|
|
31
|
+
readonly GHOST: "ghost";
|
|
32
|
+
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "DANGER" | "GHOST">;
|
|
10
33
|
/**
|
|
11
34
|
* A button is clickable text or an icon that triggers an action on the page or in the background.
|
|
12
35
|
* Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
|
|
@@ -19,11 +42,10 @@ declare const OdxButton_base: import('../../lib/main.js').Constructor<import('..
|
|
|
19
42
|
* @slot suffix - Contains the button's icon or state indicator, e.g. a spinner.
|
|
20
43
|
* @slot - Contains button text
|
|
21
44
|
*/
|
|
22
|
-
export declare class OdxButton extends
|
|
45
|
+
export declare class OdxButton extends InteractiveElement {
|
|
23
46
|
#private;
|
|
24
47
|
static readonly formAssociated = true;
|
|
25
|
-
alignBadge?:
|
|
26
|
-
block: boolean;
|
|
48
|
+
alignBadge?: ButtonBadgeAlign;
|
|
27
49
|
/**
|
|
28
50
|
* The type of the button.
|
|
29
51
|
*/
|
|
@@ -37,7 +59,7 @@ export declare class OdxButton extends OdxButton_base {
|
|
|
37
59
|
*/
|
|
38
60
|
variant?: ButtonVariant;
|
|
39
61
|
constructor();
|
|
62
|
+
connectedCallback(): void;
|
|
40
63
|
protected render(): TemplateResult;
|
|
41
64
|
}
|
|
42
|
-
export {};
|
|
43
65
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { PropertyValues } from 'lit';
|
|
3
|
-
import { ButtonSize, ButtonVariant, OdxButton } from '../button/index.js';
|
|
4
2
|
declare global {
|
|
5
3
|
interface HTMLElementTagNameMap {
|
|
6
4
|
'odx-button-group': OdxButtonGroup;
|
|
@@ -8,14 +6,8 @@ declare global {
|
|
|
8
6
|
}
|
|
9
7
|
declare const OdxButtonGroup_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
8
|
export declare class OdxButtonGroup extends OdxButtonGroup_base {
|
|
11
|
-
protected buttons: OdxButton[];
|
|
12
|
-
constructor();
|
|
13
9
|
block: boolean;
|
|
14
|
-
connected: boolean;
|
|
15
10
|
vertical: boolean;
|
|
16
|
-
size?: ButtonSize;
|
|
17
|
-
variant?: ButtonVariant;
|
|
18
|
-
protected updated(props: PropertyValues<this>): void;
|
|
19
11
|
}
|
|
20
12
|
export {};
|
|
21
13
|
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -8,7 +8,7 @@ declare global {
|
|
|
8
8
|
export declare class OdxCheckbox extends CheckboxFormControl {
|
|
9
9
|
indeterminate: boolean;
|
|
10
10
|
protected render(): TemplateResult;
|
|
11
|
-
protected willUpdate(
|
|
11
|
+
protected willUpdate(props: PropertyValueMap<this>): void;
|
|
12
12
|
toggle(state?: boolean, dispatchEvent?: boolean): void;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { CheckboxGroupFormControl } from '../../lib/main.js';
|
|
1
|
+
import { EnumString, CheckboxGroupFormControl } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { CheckboxGroupVariant } from './checkbox-group.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-checkbox-group': OdxCheckboxGroup;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type CheckboxGroupLayout = EnumString<typeof CheckboxGroupLayout>;
|
|
9
|
+
export declare const CheckboxGroupLayout: {
|
|
10
|
+
readonly INLINE: "inline";
|
|
11
|
+
readonly LIST: "list";
|
|
12
|
+
};
|
|
9
13
|
export declare class OdxCheckboxGroup extends CheckboxGroupFormControl {
|
|
10
14
|
#private;
|
|
11
|
-
|
|
15
|
+
layout?: CheckboxGroupLayout;
|
|
12
16
|
protected render(): TemplateResult;
|
|
13
17
|
}
|
|
14
18
|
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CanBeDisabled, CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import { ChipVariant } from './chip.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-chip': OdxChip;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type ChipVariant = EnumString<typeof ChipVariant>;
|
|
9
|
+
export declare const ChipVariant: Pick<{
|
|
10
|
+
readonly NEUTRAL: "neutral";
|
|
11
|
+
readonly PRIMARY: "primary";
|
|
12
|
+
readonly ACCENT: "accent";
|
|
13
|
+
readonly SUCCESS: "success";
|
|
14
|
+
readonly WARNING: "warning";
|
|
15
|
+
readonly DANGER: "danger";
|
|
16
|
+
readonly GHOST: "ghost";
|
|
17
|
+
}, "SUCCESS" | "NEUTRAL" | "PRIMARY" | "ACCENT" | "WARNING" | "DANGER">;
|
|
9
18
|
declare const OdxChip_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
19
|
export declare class OdxChip extends OdxChip_base {
|
|
11
20
|
#private;
|
|
@@ -15,8 +24,8 @@ export declare class OdxChip extends OdxChip_base {
|
|
|
15
24
|
variant?: ChipVariant;
|
|
16
25
|
protected render(): TemplateResult;
|
|
17
26
|
protected renderAction(): TemplateResult;
|
|
18
|
-
protected willUpdate(
|
|
19
|
-
protected updated(
|
|
27
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
28
|
+
protected updated(props: PropertyValues<this>): void;
|
|
20
29
|
}
|
|
21
30
|
export {};
|
|
22
31
|
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValueMap, TemplateResult } from 'lit';
|
|
3
|
-
import { CircularProgressBarSize } from './circular-progress-bar.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-circular-progress-bar': OdxCircularProgressBar;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type CircularProgressBarSize = EnumString<typeof CircularProgressBarSize>;
|
|
9
|
+
export declare const CircularProgressBarSize: Pick<{
|
|
10
|
+
readonly XS: "xs";
|
|
11
|
+
readonly SM: "sm";
|
|
12
|
+
readonly MD: "md";
|
|
13
|
+
readonly LG: "lg";
|
|
14
|
+
readonly XL: "xl";
|
|
15
|
+
readonly XXL: "xxl";
|
|
16
|
+
}, "SM" | "MD" | "LG">;
|
|
9
17
|
/**
|
|
10
18
|
* A circular progress bar that indicates the progress of a task.
|
|
11
19
|
* @summary Displays the progress of a task in a circular format
|
|
@@ -33,7 +41,7 @@ export declare class OdxCircularProgressBar extends CustomElement {
|
|
|
33
41
|
/**
|
|
34
42
|
* The size of the progress bar.
|
|
35
43
|
*/
|
|
36
|
-
size
|
|
44
|
+
size?: CircularProgressBarSize;
|
|
37
45
|
firstUpdated(changes: PropertyValueMap<this>): void;
|
|
38
46
|
disconnectedCallback(): void;
|
|
39
47
|
protected render(): TemplateResult;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ActiveDescendantsController, CanBeDisabled, CustomElement, OptionControl } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxDropdown } from '../dropdown/dropdown.js';
|
|
4
|
+
import { OdxHighlight } from '../highlight/highlight.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'odx-autocomplete': OdxAutocomplete;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const OdxAutocomplete_base: import('../../lib/main.js').Constructor<CanBeDisabled> & import('../../lib/main.js').Constructor<import('../../lib/main.js').IsFormControl<string>> & typeof CustomElement;
|
|
11
|
+
export declare class OdxAutocomplete extends OdxAutocomplete_base {
|
|
12
|
+
#private;
|
|
13
|
+
protected readonly activeDescendants: ActiveDescendantsController<OptionControl>;
|
|
14
|
+
protected control?: HTMLInputElement | HTMLButtonElement;
|
|
15
|
+
protected options: OptionControl[];
|
|
16
|
+
protected readonly highlight: OdxHighlight;
|
|
17
|
+
protected readonly dropdown: OdxDropdown;
|
|
18
|
+
minQueryLength: number;
|
|
19
|
+
searchFn: (option: OptionControl, query?: string) => boolean;
|
|
20
|
+
get controlValue(): string;
|
|
21
|
+
firstUpdated(props: PropertyValues<this>): void;
|
|
22
|
+
protected render(): TemplateResult;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OdxPopover, PopoverHost, PopoverPlacementOptions } from '../../cdk/main.js';
|
|
1
|
+
import { EnumString, OdxPopover, PopoverHost, PopoverPlacementOptions } from '../../lib/main.js';
|
|
3
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
|
-
import { DropdownPlacement } from './dropdown.models.js';
|
|
5
3
|
declare global {
|
|
6
4
|
interface HTMLElementTagNameMap {
|
|
7
5
|
'odx-dropdown': OdxDropdown;
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
export declare
|
|
8
|
+
export type DropdownPlacement = EnumString<typeof DropdownPlacement>;
|
|
9
|
+
export declare const DropdownPlacement: {
|
|
10
|
+
readonly TOP: "top";
|
|
11
|
+
readonly BOTTOM: "bottom";
|
|
12
|
+
};
|
|
13
|
+
export declare class OdxDropdown extends PopoverHost {
|
|
12
14
|
#private;
|
|
13
|
-
|
|
15
|
+
popoverElement: OdxPopover;
|
|
14
16
|
matchReferenceWidth: boolean;
|
|
15
17
|
placement: DropdownPlacement;
|
|
16
18
|
get options(): PopoverPlacementOptions;
|
|
17
19
|
connectedCallback(): void;
|
|
18
20
|
mountPopover(referenceElement?: HTMLElement | null): void;
|
|
19
21
|
unmountPopover(referenceElement: HTMLElement): void;
|
|
22
|
+
onBeforePopoverShow(): void;
|
|
23
|
+
onPopoverShow(): void;
|
|
24
|
+
onBeforePopoverHide(): void;
|
|
25
|
+
onPopoverHide(): void;
|
|
20
26
|
protected render(): TemplateResult;
|
|
21
|
-
protected willUpdate(
|
|
27
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
22
28
|
}
|
|
23
|
-
export {};
|
|
24
29
|
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValueMap } from 'lit';
|
|
3
|
-
import { HeadlineSize } from './headline.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-headline': OdxHeadline;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type HeadlineSize = EnumString<typeof HeadlineSize>;
|
|
9
|
+
export declare const HeadlineSize: Pick<{
|
|
10
|
+
readonly XS: "xs";
|
|
11
|
+
readonly SM: "sm";
|
|
12
|
+
readonly MD: "md";
|
|
13
|
+
readonly LG: "lg";
|
|
14
|
+
readonly XL: "xl";
|
|
15
|
+
readonly XXL: "xxl";
|
|
16
|
+
}, "SM" | "MD" | "LG" | "XL">;
|
|
9
17
|
export declare class OdxHeadline extends CustomElement {
|
|
10
18
|
size?: HeadlineSize;
|
|
11
19
|
protected willUpdate(props: PropertyValueMap<this>): void;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValueMap } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-highlight': OdxHighlight;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
declare const OdxHighlight_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
|
+
export declare class OdxHighlight extends OdxHighlight_base {
|
|
10
|
+
#private;
|
|
9
11
|
query?: string | null;
|
|
12
|
+
selector?: string;
|
|
10
13
|
minlength: number;
|
|
14
|
+
root: Element;
|
|
15
|
+
subtle: boolean;
|
|
11
16
|
protected updated(props: PropertyValueMap<this>): void;
|
|
12
|
-
protected highlight(): void;
|
|
13
17
|
}
|
|
18
|
+
export {};
|
|
14
19
|
//# sourceMappingURL=highlight.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AvailableIcons } from '../../lib/main.js';
|
|
2
1
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { OdxButton } from '../button/
|
|
2
|
+
import { OdxButton } from '../button/button.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-icon-button': OdxIconButton;
|
|
@@ -19,7 +18,8 @@ declare global {
|
|
|
19
18
|
* @slot - Contains button text
|
|
20
19
|
*/
|
|
21
20
|
export declare class OdxIconButton extends OdxButton {
|
|
22
|
-
|
|
21
|
+
float: boolean;
|
|
22
|
+
icon?: OdxIconName;
|
|
23
23
|
protected renderContent(): TemplateResult;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { InlineMessageVariant } from './inline-message.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-inline-message': OdxInlineMessage;
|
|
7
6
|
}
|
|
8
7
|
}
|
|
8
|
+
export type InlineMessageVariant = EnumString<typeof InlineMessageVariant>;
|
|
9
|
+
export declare const InlineMessageVariant: Pick<{
|
|
10
|
+
readonly NEUTRAL: "neutral";
|
|
11
|
+
readonly PRIMARY: "primary";
|
|
12
|
+
readonly ACCENT: "accent";
|
|
13
|
+
readonly SUCCESS: "success";
|
|
14
|
+
readonly WARNING: "warning";
|
|
15
|
+
readonly DANGER: "danger";
|
|
16
|
+
readonly GHOST: "ghost";
|
|
17
|
+
}, "SUCCESS" | "NEUTRAL" | "ACCENT" | "WARNING" | "DANGER">;
|
|
9
18
|
export declare class OdxInlineMessage extends CustomElement {
|
|
10
19
|
closable: boolean;
|
|
11
20
|
emphasized: boolean;
|
|
12
|
-
icon?:
|
|
21
|
+
icon?: OdxIconName | null;
|
|
13
22
|
variant?: InlineMessageVariant;
|
|
14
23
|
show(): void;
|
|
15
24
|
hide(): Promise<void>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { InputVariant } from './input.models.js';
|
|
4
3
|
declare global {
|
|
5
4
|
interface HTMLElementTagNameMap {
|
|
6
5
|
'odx-input': OdxInput;
|
|
@@ -10,10 +9,10 @@ declare const OdxInput_base: import('../../lib/main.js').Constructor<import('../
|
|
|
10
9
|
export declare class OdxInput extends OdxInput_base {
|
|
11
10
|
#private;
|
|
12
11
|
static readonly formAssociated = true;
|
|
12
|
+
block: boolean;
|
|
13
13
|
clearable: boolean;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
type: HTMLInputElement['type'];
|
|
16
|
-
variant?: InputVariant | null;
|
|
17
16
|
clear(): void;
|
|
18
17
|
protected render(): TemplateResult;
|
|
19
18
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CustomElement, EnumString } from '../../lib/main.js';
|
|
2
|
+
import { HTMLTemplateResult, TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-kpi': OdxKpi;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type KpiSize = EnumString<typeof KpiSize>;
|
|
9
|
+
export declare const KpiSize: Pick<{
|
|
10
|
+
readonly XS: "xs";
|
|
11
|
+
readonly SM: "sm";
|
|
12
|
+
readonly MD: "md";
|
|
13
|
+
readonly LG: "lg";
|
|
14
|
+
readonly XL: "xl";
|
|
15
|
+
readonly XXL: "xxl";
|
|
16
|
+
}, "SM" | "MD" | "LG">;
|
|
17
|
+
export type KpiVariant = EnumString<typeof KpiVariant>;
|
|
18
|
+
export declare const KpiVariant: Pick<{
|
|
19
|
+
readonly NEUTRAL: "neutral";
|
|
20
|
+
readonly PRIMARY: "primary";
|
|
21
|
+
readonly ACCENT: "accent";
|
|
22
|
+
readonly SUCCESS: "success";
|
|
23
|
+
readonly WARNING: "warning";
|
|
24
|
+
readonly DANGER: "danger";
|
|
25
|
+
readonly GHOST: "ghost";
|
|
26
|
+
}, "SUCCESS" | "NEUTRAL" | "ACCENT" | "DANGER">;
|
|
27
|
+
export declare class OdxKpi extends CustomElement {
|
|
28
|
+
label: string;
|
|
29
|
+
unit?: string;
|
|
30
|
+
value: string;
|
|
31
|
+
size?: KpiSize;
|
|
32
|
+
variant?: KpiVariant;
|
|
33
|
+
vertical: boolean;
|
|
34
|
+
protected render(): HTMLTemplateResult | TemplateResult | string;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=kpi.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InteractiveLink } from '../../lib/main.js';
|
|
2
2
|
declare global {
|
|
3
3
|
interface HTMLElementTagNameMap {
|
|
4
4
|
'odx-link': OdxLink;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
export declare class OdxLink extends
|
|
7
|
+
export declare class OdxLink extends InteractiveLink {
|
|
8
8
|
emphasized: boolean;
|
|
9
9
|
subtle: boolean;
|
|
10
10
|
}
|