@odx/foundation 1.0.0-beta.242 → 1.0.0-beta.245
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/breakpoints/utils.d.ts +1 -1
- package/dist/breakpoints.js +2 -1
- package/dist/components/accordion/accordion.d.ts +12 -0
- package/dist/components/accordion-item/accordion-item.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -0
- package/dist/components/empty-state/empty-state.d.ts +1 -0
- package/dist/components/format/{index.d.ts → format.d.ts} +1 -1
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/key-value/key-value.d.ts +1 -0
- package/dist/components/loading-spinner/loading-spinner.d.ts +1 -0
- package/dist/components/main-menu/main-menu.d.ts +2 -0
- package/dist/components/main.d.ts +6 -6
- package/dist/components/page-layout/page-layout.d.ts +1 -0
- package/dist/components/radio-button/radio-button.d.ts +1 -1
- package/dist/components/scroll-container/scroll-container.d.ts +1 -0
- package/dist/components/sidebar/sidebar.d.ts +1 -0
- package/dist/components/slider/slider.d.ts +3 -0
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/table/table.d.ts +6 -0
- package/dist/components/textarea/textarea.d.ts +1 -0
- package/dist/components/tile/tile.d.ts +1 -0
- package/dist/components.js +184 -141
- package/dist/i18n/is-localized.d.ts +1 -2
- package/dist/i18n/translate.d.ts +1 -1
- package/dist/i18n.js +1 -1
- package/dist/lib/behaviors/can-be-collapsed.d.ts +4 -0
- package/dist/lib/behaviors/can-be-expanded.d.ts +4 -0
- package/dist/lib/behaviors/form-associated.d.ts +0 -1
- package/dist/lib/custom-element.d.ts +11 -3
- package/dist/{theming → lib}/dark-mode.d.ts +4 -2
- package/dist/lib/dialog-element.d.ts +12 -128
- package/dist/{signals/main.d.ts → lib/signals.d.ts} +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.js +154 -45
- package/dist/oss-licenses.json +0 -9
- package/dist/oss-licenses.txt +0 -34
- package/dist/styles.css +1 -1
- package/dist/utils/dom-events.d.ts +0 -31
- package/dist/utils/lit.d.ts +0 -2
- package/dist/utils.js +2 -37
- package/dist/vendor.js +9 -60
- package/package.json +8 -20
- package/dist/components/anchor-navigation/index.d.ts +0 -2
- package/dist/components/header/index.d.ts +0 -2
- package/dist/components/main-menu/index.d.ts +0 -3
- package/dist/components/slider/index.d.ts +0 -5
- package/dist/components/table/index.d.ts +0 -8
- package/dist/signals.js +0 -3
- package/dist/theming/main.d.ts +0 -2
- package/dist/theming.js +0 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Signal } from '../
|
|
1
|
+
import { Signal } from '../main.js';
|
|
2
2
|
import { Breakpoint, BreakpointConfig, BreakpointOperator } from './types.js';
|
|
3
3
|
export declare const breakpointDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint">;
|
|
4
4
|
export declare const breakpointClassDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint-class">;
|
package/dist/breakpoints.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, effect } from '@odx/foundation
|
|
1
|
+
import { signal, effect } from '@odx/foundation';
|
|
2
2
|
import { stringAttributeDirective, observeMedia } from '@odx/foundation/utils';
|
|
3
3
|
|
|
4
4
|
const operators = ["<", "<=", ">=", ">"];
|
|
@@ -33,6 +33,7 @@ function observeBreakpoint(breakpoint, initialValue = false) {
|
|
|
33
33
|
{
|
|
34
34
|
unwatched: () => {
|
|
35
35
|
unobserveMedia?.();
|
|
36
|
+
unobserveMedia = void 0;
|
|
36
37
|
},
|
|
37
38
|
watched() {
|
|
38
39
|
unobserveMedia = observeMedia(breakpoint.query, ({ matches }) => {
|
|
@@ -6,6 +6,18 @@ declare global {
|
|
|
6
6
|
'odx-accordion': OdxAccordion;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @summary A container for grouping a set of accordion items and panels.
|
|
11
|
+
* @status beta
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*
|
|
14
|
+
* @dependency odx-accordion-item
|
|
15
|
+
*
|
|
16
|
+
* @slot - Default slot for accordion items and panels.
|
|
17
|
+
*
|
|
18
|
+
* @event expand - Emitted when an accordion item is expanded. Can be canceled to prevent expansion.
|
|
19
|
+
* @event collapse - Emitted when an accordion item is collapsed. Can be canceled to prevent collapse.
|
|
20
|
+
*/
|
|
9
21
|
export declare class OdxAccordion extends CustomElement implements ExpandableItemManagerHost<OdxAccordionItem> {
|
|
10
22
|
#private;
|
|
11
23
|
indicatorPosition: AccordionItemIndicatorPosition;
|
|
@@ -19,7 +19,7 @@ export declare class OdxAccordionItem extends OdxAccordionItem_base {
|
|
|
19
19
|
getPanel(): OdxAccordionPanel | null;
|
|
20
20
|
connectedCallback(): void;
|
|
21
21
|
protected renderContent(): TemplateResult;
|
|
22
|
-
protected
|
|
22
|
+
protected updated(props: PropertyValues<this>): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=accordion-item.d.ts.map
|
|
@@ -22,6 +22,7 @@ export declare const CardVariant: Pick<{
|
|
|
22
22
|
declare const OdxCard_base: import('../../utils/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
23
23
|
export declare class OdxCard extends OdxCard_base {
|
|
24
24
|
#private;
|
|
25
|
+
static observeSlots: boolean;
|
|
25
26
|
interactive: boolean;
|
|
26
27
|
variant: CardVariant;
|
|
27
28
|
protected updated(props: PropertyValues<this>): void;
|
|
@@ -36,6 +36,7 @@ export declare const EmptyStateVariant: Pick<{
|
|
|
36
36
|
readonly GHOST: "ghost";
|
|
37
37
|
}, "NEUTRAL" | "NEUTRAL_SUBTLE" | "DANGER">;
|
|
38
38
|
export declare class OdxEmptyState extends CustomElement {
|
|
39
|
+
static observeSlots: boolean;
|
|
39
40
|
alignment: EmptyStateAlignment;
|
|
40
41
|
icon?: OdxIconName;
|
|
41
42
|
size: EmptyStateSize;
|
|
@@ -40,6 +40,7 @@ export declare const KeyValueVariant: Pick<{
|
|
|
40
40
|
readonly GHOST: "ghost";
|
|
41
41
|
}, "NEUTRAL" | "ACCENT" | "SUCCESS" | "DANGER">;
|
|
42
42
|
export declare class OdxKeyValue extends CustomElement {
|
|
43
|
+
static observeSlots: boolean;
|
|
43
44
|
alignment: KeyValueAlignment;
|
|
44
45
|
key: string;
|
|
45
46
|
layout: KeyValueLayout;
|
|
@@ -5,8 +5,10 @@ declare global {
|
|
|
5
5
|
'odx-main-menu': OdxMainMenu;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
+
export * from './main-menu-button.js';
|
|
8
9
|
export declare class OdxMainMenu extends CustomElement {
|
|
9
10
|
#private;
|
|
11
|
+
static observeSlots: boolean;
|
|
10
12
|
protected render(): TemplateResult;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=main-menu.d.ts.map
|
|
@@ -3,7 +3,7 @@ export * from './accordion-item/accordion-item.js';
|
|
|
3
3
|
export * from './accordion-panel/accordion-panel.js';
|
|
4
4
|
export * from './action-button/action-button.js';
|
|
5
5
|
export * from './action-group/action-group.js';
|
|
6
|
-
export * from './anchor-navigation/
|
|
6
|
+
export * from './anchor-navigation/anchor-navigation.js';
|
|
7
7
|
export * from './area-footer/area-footer.js';
|
|
8
8
|
export * from './area-header/area-header.js';
|
|
9
9
|
export * from './autocomplete/autocomplete.js';
|
|
@@ -20,9 +20,9 @@ export * from './drawer/drawer.js';
|
|
|
20
20
|
export * from './dropdown/dropdown.js';
|
|
21
21
|
export * from './empty-state/empty-state.js';
|
|
22
22
|
export * from './form-field/form-field.js';
|
|
23
|
-
export * from './format/
|
|
23
|
+
export * from './format/format.js';
|
|
24
24
|
export * from './gradient-overlay/gradient-overlay.js';
|
|
25
|
-
export * from './header/
|
|
25
|
+
export * from './header/header.js';
|
|
26
26
|
export * from './highlight/highlight.js';
|
|
27
27
|
export * from './icon-button/icon-button.js';
|
|
28
28
|
export * from './image/image.js';
|
|
@@ -38,7 +38,7 @@ export * from './list-item/list-item.js';
|
|
|
38
38
|
export * from './loading-overlay/loading-overlay.js';
|
|
39
39
|
export * from './loading-spinner/loading-spinner.js';
|
|
40
40
|
export * from './logo/logo.js';
|
|
41
|
-
export * from './main-menu/
|
|
41
|
+
export * from './main-menu/main-menu.js';
|
|
42
42
|
export * from './menu/menu.js';
|
|
43
43
|
export * from './menu-item/menu-item.js';
|
|
44
44
|
export * from './modal/modal.js';
|
|
@@ -62,12 +62,12 @@ export * from './select/select.js';
|
|
|
62
62
|
export * from './separator/separator.js';
|
|
63
63
|
export * from './sidebar/sidebar.js';
|
|
64
64
|
export * from './skeleton/skeleton.js';
|
|
65
|
-
export * from './slider/
|
|
65
|
+
export * from './slider/slider.js';
|
|
66
66
|
export * from './spinbox/spinbox.js';
|
|
67
67
|
export * from './status/status.js';
|
|
68
68
|
export * from './switch/switch.js';
|
|
69
69
|
export * from './tab-bar/tab-bar.js';
|
|
70
|
-
export * from './table/
|
|
70
|
+
export * from './table/table.js';
|
|
71
71
|
export * from './text/text.js';
|
|
72
72
|
export * from './textarea/textarea.js';
|
|
73
73
|
export * from './tile/tile.js';
|
|
@@ -13,6 +13,7 @@ export declare const PageLayoutAlignment: Pick<{
|
|
|
13
13
|
readonly END: "end";
|
|
14
14
|
}, "START" | "CENTER" | "END">;
|
|
15
15
|
export declare class OdxPageLayout extends CustomElement {
|
|
16
|
+
static observeSlots: boolean;
|
|
16
17
|
alignment: PageLayoutAlignment;
|
|
17
18
|
protected render(): TemplateResult;
|
|
18
19
|
}
|
|
@@ -20,6 +20,7 @@ export interface ScrollContainerChangeEvent extends Event {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class OdxScrollContainer extends CustomElement {
|
|
22
22
|
#private;
|
|
23
|
+
static observeSlots: boolean;
|
|
23
24
|
readonly scroller: HTMLElement;
|
|
24
25
|
readonly stage: HTMLElement;
|
|
25
26
|
leftOverflow: boolean;
|
|
@@ -22,6 +22,7 @@ export declare const SidebarSize: Pick<{
|
|
|
22
22
|
readonly XXL: "xxl";
|
|
23
23
|
}, "SM" | "MD" | "LG">;
|
|
24
24
|
export declare class OdxSidebar extends CustomElement {
|
|
25
|
+
static observeSlots: boolean;
|
|
25
26
|
hidden: boolean;
|
|
26
27
|
size?: SidebarSize;
|
|
27
28
|
appearance?: 'default' | 'minimal';
|
|
@@ -7,6 +7,9 @@ declare global {
|
|
|
7
7
|
'odx-slider': OdxSlider;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
+
export * from './slider.models.js';
|
|
11
|
+
export * from './slider-handle.js';
|
|
12
|
+
export * from './slider-marks.js';
|
|
10
13
|
export declare class OdxSlider extends CustomElement {
|
|
11
14
|
#private;
|
|
12
15
|
protected dragController: DragController<OdxSliderHandle>;
|
|
@@ -7,6 +7,12 @@ declare global {
|
|
|
7
7
|
'odx-table': OdxTable;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
+
export * from './table-body.js';
|
|
11
|
+
export * from './table-cell.js';
|
|
12
|
+
export * from './table-checkbox-cell.js';
|
|
13
|
+
export * from './table-header.js';
|
|
14
|
+
export * from './table-header-cell.js';
|
|
15
|
+
export * from './table-row.js';
|
|
10
16
|
export declare class OdxTable extends CustomElement {
|
|
11
17
|
#private;
|
|
12
18
|
protected get headerElements(): OdxTableHeader[];
|
|
@@ -9,6 +9,7 @@ declare const OdxTextArea_base: import('../../utils/main.js').Constructor<FormAs
|
|
|
9
9
|
export declare class OdxTextArea extends OdxTextArea_base {
|
|
10
10
|
#private;
|
|
11
11
|
static shadowRootOptions: ShadowRootInit;
|
|
12
|
+
static observeSlots: boolean;
|
|
12
13
|
focusTarget: HTMLTextAreaElement;
|
|
13
14
|
autoResize: boolean;
|
|
14
15
|
placeholder: string;
|