@odx/foundation 1.0.0-beta.162 → 1.0.0-beta.164
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/dist/components/accordion/accordion.d.ts +3 -2
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +1 -1
- package/dist/components/area-header/area-header.d.ts +3 -2
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs-item/breadcrumbs-item.d.ts +8 -4
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts +12 -2
- package/dist/components/kpi/kpi.d.ts +0 -1
- package/dist/components/list-item/list-item.d.ts +11 -2
- package/dist/components/main.d.ts +1 -0
- package/dist/components/page/page.d.ts +5 -3
- package/dist/components/separator/separator.d.ts +4 -4
- package/dist/components/switch/switch.d.ts +3 -2
- package/dist/components/tile/tile.d.ts +35 -0
- package/dist/components.js +270 -229
- package/dist/lib/interactive/interactive-element.d.ts +5 -4
- package/dist/lib/mixins/is-draggable.d.ts +2 -2
- package/dist/lib/models/drag-event.d.ts +2 -2
- package/dist/lib/models/layout.d.ts +2 -3
- package/dist/main.js +34 -34
- package/dist/styles.css +1 -1
- package/package.json +3 -3
|
@@ -7,10 +7,11 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export type AccordionIndicatorPosition = ValuesOf<typeof AccordionIndicatorPosition>;
|
|
10
|
-
export declare const AccordionIndicatorPosition: {
|
|
10
|
+
export declare const AccordionIndicatorPosition: Pick<{
|
|
11
11
|
readonly START: "start";
|
|
12
|
+
readonly CENTER: "center";
|
|
12
13
|
readonly END: "end";
|
|
13
|
-
}
|
|
14
|
+
}, "START" | "END">;
|
|
14
15
|
export declare class OdxAccordion extends CustomElement {
|
|
15
16
|
indicatorPosition: AccordionIndicatorPosition;
|
|
16
17
|
multiple: boolean;
|
|
@@ -10,7 +10,7 @@ declare const OdxAnchorNavigation_base: typeof CustomElement;
|
|
|
10
10
|
export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
|
|
11
11
|
#private;
|
|
12
12
|
readonly activeItem: import('@preact/signals-core').ReadonlySignal<OdxNavigationItem | undefined>;
|
|
13
|
-
root: Document |
|
|
13
|
+
root: Document | HTMLElement;
|
|
14
14
|
rootMargin?: string;
|
|
15
15
|
threshold: number;
|
|
16
16
|
vertical: boolean;
|
|
@@ -6,10 +6,11 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export type AreaHeaderAlignment = ValuesOf<typeof AreaHeaderAlignment>;
|
|
9
|
-
export declare const AreaHeaderAlignment: {
|
|
9
|
+
export declare const AreaHeaderAlignment: Pick<{
|
|
10
10
|
readonly START: "start";
|
|
11
11
|
readonly CENTER: "center";
|
|
12
|
-
|
|
12
|
+
readonly END: "end";
|
|
13
|
+
}, "START" | "CENTER">;
|
|
13
14
|
export type AreaHeaderSize = ValuesOf<typeof AreaHeaderSize>;
|
|
14
15
|
export declare const AreaHeaderSize: Pick<{
|
|
15
16
|
readonly XS: "xs";
|
|
@@ -13,7 +13,7 @@ export declare class OdxBreadcrumbs extends CustomElement {
|
|
|
13
13
|
#private;
|
|
14
14
|
max: number;
|
|
15
15
|
items?: BreadcrumbsItem[];
|
|
16
|
-
|
|
16
|
+
connectedCallback(): void;
|
|
17
17
|
protected render(): TemplateResult;
|
|
18
18
|
protected updated(props: PropertyValues<this>): void;
|
|
19
19
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import {
|
|
1
|
+
import { CanBeDisabled, CustomElement, InteractiveLink } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-breadcrumbs-item': OdxBreadcrumbsItem;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
declare const OdxBreadcrumbsItem_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
|
+
export declare class OdxBreadcrumbsItem extends OdxBreadcrumbsItem_base {
|
|
10
|
+
active: boolean;
|
|
11
|
+
href: InteractiveLink['href'];
|
|
12
|
+
target: InteractiveLink['target'];
|
|
9
13
|
protected render(): TemplateResult;
|
|
10
|
-
protected updated(props: PropertyValues<this>): void;
|
|
11
14
|
}
|
|
15
|
+
export {};
|
|
@@ -8,7 +8,7 @@ declare global {
|
|
|
8
8
|
declare const OdxCard_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
9
|
export declare class OdxCard extends OdxCard_base {
|
|
10
10
|
interactive: boolean;
|
|
11
|
-
protected updated(
|
|
11
|
+
protected updated(props: PropertyValues<this>): void;
|
|
12
12
|
protected render(): TemplateResult;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -7,10 +7,20 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export type DropdownPlacement = ValuesOf<typeof DropdownPlacement>;
|
|
10
|
-
export declare const DropdownPlacement: {
|
|
10
|
+
export declare const DropdownPlacement: Pick<{
|
|
11
11
|
readonly TOP: "top";
|
|
12
|
+
readonly TOP_START: "top-start";
|
|
13
|
+
readonly TOP_END: "top-end";
|
|
14
|
+
readonly RIGHT: "right";
|
|
15
|
+
readonly RIGHT_START: "right-start";
|
|
16
|
+
readonly RIGHT_END: "right-end";
|
|
12
17
|
readonly BOTTOM: "bottom";
|
|
13
|
-
|
|
18
|
+
readonly BOTTOM_START: "bottom-start";
|
|
19
|
+
readonly BOTTOM_END: "bottom-end";
|
|
20
|
+
readonly LEFT: "left";
|
|
21
|
+
readonly LEFT_START: "left-start";
|
|
22
|
+
readonly LEFT_END: "left-end";
|
|
23
|
+
}, "TOP" | "BOTTOM">;
|
|
14
24
|
export declare class OdxDropdown extends PopoverHost {
|
|
15
25
|
#private;
|
|
16
26
|
matchReferenceWidth: boolean;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import { CanBeExpanded, InteractiveElement } from '../../lib/main.js';
|
|
1
|
+
import { CanBeExpanded, InteractiveElement, ValuesOf } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-list-item': OdxListItem;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
+
export type ListItemSize = ValuesOf<typeof ListItemSize>;
|
|
9
|
+
export declare const ListItemSize: 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
|
+
}, "MD" | "LG">;
|
|
8
17
|
declare const OdxListItem_base: import('../../lib/main.js').Constructor<CanBeExpanded> & typeof InteractiveElement;
|
|
9
18
|
export declare class OdxListItem extends OdxListItem_base {
|
|
10
19
|
#private;
|
|
11
20
|
region?: HTMLElementTagNameMap['odx-toggle-content'];
|
|
12
|
-
compact: boolean;
|
|
13
21
|
muted: boolean;
|
|
14
22
|
selected: boolean;
|
|
23
|
+
size: ListItemSize;
|
|
15
24
|
withExpandControl: boolean;
|
|
16
25
|
withExpandIndicator: boolean;
|
|
17
26
|
isExpandable(): boolean;
|
|
@@ -67,6 +67,7 @@ export * from './switch/switch.js';
|
|
|
67
67
|
export * from './tab-bar/tab-bar.js';
|
|
68
68
|
export * from './table/index.js';
|
|
69
69
|
export * from './text/text.js';
|
|
70
|
+
export * from './tile/tile.js';
|
|
70
71
|
export * from './title/title.js';
|
|
71
72
|
export * from './toast/toast.js';
|
|
72
73
|
export * from './toggle-button/toggle-button.js';
|
|
@@ -6,9 +6,11 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export type PageAlignment = ValuesOf<typeof PageAlignment>;
|
|
9
|
-
export declare const PageAlignment: {
|
|
9
|
+
export declare const PageAlignment: Pick<{
|
|
10
|
+
readonly START: "start";
|
|
10
11
|
readonly CENTER: "center";
|
|
11
|
-
|
|
12
|
+
readonly END: "end";
|
|
13
|
+
}, "START" | "CENTER">;
|
|
12
14
|
export type PageLayout = ValuesOf<typeof PageLayout>;
|
|
13
15
|
export declare const PageLayout: {
|
|
14
16
|
readonly AUTO: "auto";
|
|
@@ -18,7 +20,7 @@ export declare const PageLayout: {
|
|
|
18
20
|
export declare class OdxPage extends CustomElement {
|
|
19
21
|
headerElement: HTMLElement;
|
|
20
22
|
subheaderElement: HTMLElement;
|
|
21
|
-
alignment
|
|
23
|
+
alignment: PageAlignment;
|
|
22
24
|
layout: PageLayout;
|
|
23
25
|
firstUpdated(props: PropertyValues<this>): void;
|
|
24
26
|
disconnectedCallback(): void;
|
|
@@ -5,14 +5,14 @@ declare global {
|
|
|
5
5
|
'odx-separator': OdxSeparator;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type SeparatorAlignment = ValuesOf<typeof SeparatorAlignment>;
|
|
9
|
+
export declare const SeparatorAlignment: Pick<{
|
|
10
10
|
readonly START: "start";
|
|
11
11
|
readonly CENTER: "center";
|
|
12
12
|
readonly END: "end";
|
|
13
|
-
}
|
|
13
|
+
}, "START" | "CENTER" | "END">;
|
|
14
14
|
export declare class OdxSeparator extends CustomElement {
|
|
15
|
-
|
|
15
|
+
alignment: SeparatorAlignment;
|
|
16
16
|
strong: boolean;
|
|
17
17
|
vertical: boolean;
|
|
18
18
|
connectedCallback(): void;
|
|
@@ -6,10 +6,11 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export type SwitchIndicatorPosition = ValuesOf<typeof SwitchIndicatorPosition>;
|
|
9
|
-
export declare const SwitchIndicatorPosition: {
|
|
9
|
+
export declare const SwitchIndicatorPosition: Pick<{
|
|
10
10
|
readonly START: "start";
|
|
11
|
+
readonly CENTER: "center";
|
|
11
12
|
readonly END: "end";
|
|
12
|
-
}
|
|
13
|
+
}, "START" | "END">;
|
|
13
14
|
export declare class OdxSwitch extends CheckboxFormControl {
|
|
14
15
|
indicatorPosition: SwitchIndicatorPosition;
|
|
15
16
|
connectedCallback(): void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-tile': OdxTile;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type TileVariant = ValuesOf<typeof TileVariant>;
|
|
9
|
+
export declare const TileVariant: Pick<{
|
|
10
|
+
readonly NEUTRAL: "neutral";
|
|
11
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
12
|
+
readonly PRIMARY: "primary";
|
|
13
|
+
readonly PRIMARY_SUBTLE: "primary-subtle";
|
|
14
|
+
readonly ACCENT: "accent";
|
|
15
|
+
readonly ACCENT_SUBTLE: "accent-subtle";
|
|
16
|
+
readonly SUCCESS: "success";
|
|
17
|
+
readonly WARNING: "warning";
|
|
18
|
+
readonly DANGER: "danger";
|
|
19
|
+
readonly DANGER_SUBTLE: "danger-subtle";
|
|
20
|
+
readonly GHOST: "ghost";
|
|
21
|
+
}, "NEUTRAL">;
|
|
22
|
+
export type TileAlignment = ValuesOf<typeof TileAlignment>;
|
|
23
|
+
export declare const TileAlignment: Pick<{
|
|
24
|
+
readonly START: "start";
|
|
25
|
+
readonly CENTER: "center";
|
|
26
|
+
readonly END: "end";
|
|
27
|
+
}, "START" | "CENTER">;
|
|
28
|
+
export declare class OdxTile extends CustomElement {
|
|
29
|
+
alignment: TileAlignment;
|
|
30
|
+
interactive: boolean;
|
|
31
|
+
selected: boolean;
|
|
32
|
+
variant: TileVariant;
|
|
33
|
+
protected updated(props: PropertyValues<this>): void;
|
|
34
|
+
protected render(): TemplateResult;
|
|
35
|
+
}
|