@odx/foundation 1.0.0-beta.270 → 1.0.0-beta.272
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/CHANGELOG.md +30 -1
- package/dist/{lib → components/abstract}/behaviors/can-be-disabled.d.ts +2 -2
- package/dist/{lib → components/abstract}/behaviors/checkbox-control.d.ts +3 -3
- package/dist/{lib → components/abstract}/behaviors/checkbox-group-control.d.ts +2 -2
- package/dist/{lib → components/abstract}/behaviors/form-associated.d.ts +2 -2
- package/dist/{lib → components/abstract}/behaviors/with-presets.d.ts +2 -2
- package/dist/components/abstract/button-control-element.d.ts +2 -5
- package/dist/components/abstract/control-element.d.ts +9 -9
- package/dist/{lib → components/abstract}/controllers/active-descendants-controller.d.ts +1 -1
- package/dist/{lib → components/abstract}/controllers/drag.controller.d.ts +1 -1
- package/dist/components/abstract/controllers/expandable-controller.d.ts +28 -0
- package/dist/components/abstract/dialog-element.d.ts +18 -17
- package/dist/components/abstract/input-control-element.d.ts +6 -5
- package/dist/components/abstract/link-control-element.d.ts +2 -0
- package/dist/components/abstract/listbox-control-element.d.ts +5 -5
- package/dist/components/abstract/models.d.ts +21 -0
- package/dist/components/accordion/accordion.d.ts +6 -8
- package/dist/components/accordion-item/accordion-item.d.ts +16 -7
- package/dist/components/accordion-panel/accordion-panel.d.ts +2 -3
- package/dist/components/action-group/action-group.d.ts +1 -1
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +1 -1
- package/dist/components/area-footer/area-footer.d.ts +4 -7
- package/dist/components/area-header/area-header.d.ts +4 -5
- package/dist/components/autocomplete/autocomplete.d.ts +4 -2
- package/dist/components/avatar/avatar.d.ts +4 -5
- package/dist/components/badge/badge.d.ts +4 -7
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/card/card.d.ts +4 -3
- package/dist/components/checkbox/checkbox.d.ts +11 -9
- package/dist/components/checkbox-group/checkbox-group.d.ts +2 -2
- package/dist/components/chip/chip.d.ts +4 -3
- package/dist/components/drawer/drawer.d.ts +11 -9
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/empty-state/empty-state.d.ts +4 -7
- package/dist/components/form-field/form-field.d.ts +2 -1
- package/dist/components/format/base-format.d.ts +2 -2
- package/dist/components/gradient-overlay/gradient-overlay.d.ts +4 -8
- package/dist/components/header/header.d.ts +4 -8
- package/dist/components/highlight/highlight.d.ts +4 -3
- package/dist/components/icon-button/icon-button.d.ts +3 -3
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/inline-message/inline-message.d.ts +4 -8
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input-number/input-number.d.ts +1 -1
- package/dist/components/key-value/key-value.d.ts +4 -6
- package/dist/components/key-value-list/key-value-list.d.ts +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/line-clamp/line-clamp.d.ts +1 -1
- package/dist/components/link/link.d.ts +3 -2
- package/dist/components/list/list.d.ts +2 -1
- package/dist/components/list-item/list-item.d.ts +6 -6
- package/dist/components/listbox/listbox.d.ts +3 -2
- package/dist/components/loading-dots/loading-dots.d.ts +16 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +3 -4
- package/dist/components/loading-spinner/loading-spinner.d.ts +8 -10
- package/dist/components/logo/logo.d.ts +4 -5
- package/dist/components/main-menu/main-menu-button.d.ts +1 -1
- package/dist/components/main-menu/main-menu.d.ts +1 -1
- package/dist/components/main.d.ts +12 -0
- package/dist/components/menu-item/menu-item.d.ts +3 -6
- package/dist/components/modal/modal.d.ts +7 -5
- package/dist/components/navigation/navigation.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +8 -3
- package/dist/components/page/page.d.ts +2 -2
- package/dist/components/page-layout/page-layout.d.ts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/popover/popover-host.d.ts +21 -4
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/progress-bar/base-progress.d.ts +2 -2
- package/dist/components/progress-ring/progress-ring.d.ts +7 -8
- package/dist/components/radio-group/radio-group.d.ts +5 -3
- package/dist/components/rail-navigation/rail-navigation.d.ts +4 -2
- package/dist/components/scroll-container/scroll-container.d.ts +3 -3
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/separator/separator.d.ts +3 -9
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/sidebar/sidebar.d.ts +4 -7
- package/dist/components/skeleton/skeleton.d.ts +2 -2
- package/dist/components/slider/slider-handle.d.ts +5 -3
- package/dist/components/slider/slider-marks.d.ts +1 -1
- package/dist/components/slider/slider.d.ts +2 -1
- package/dist/components/slider/slider.models.d.ts +1 -1
- package/dist/components/status/status.d.ts +2 -2
- package/dist/components/tab-bar/tab-bar.d.ts +2 -2
- package/dist/components/table/table-body.d.ts +1 -1
- package/dist/components/table/table-cell.d.ts +1 -1
- package/dist/components/table/table-checkbox-cell.d.ts +3 -2
- package/dist/components/table/table-header-cell.d.ts +1 -1
- package/dist/components/table/table-header.d.ts +3 -2
- package/dist/components/table/table-row.d.ts +3 -2
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/text/text.d.ts +4 -6
- package/dist/components/textarea/textarea.d.ts +3 -2
- package/dist/components/tile/tile.d.ts +2 -2
- package/dist/components/title/title.d.ts +6 -6
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.d.ts +3 -3
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +3 -2
- package/dist/components/toggle-content/toggle-content.d.ts +1 -1
- package/dist/components/toolbar/toolbar.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +3 -6
- package/dist/components/translate/translate.d.ts +2 -2
- package/dist/components.js +985 -234
- package/dist/i18n/is-localized.d.ts +3 -3
- package/dist/i18n.js +1 -2
- package/dist/lib/breakpoints-utils.d.ts +2 -2
- package/dist/{utils → lib}/dedupe-mixin.d.ts +1 -1
- package/dist/{utils → lib}/dom-types.d.ts +1 -0
- package/dist/{utils → lib}/math.d.ts +1 -2
- package/dist/main.d.ts +14 -12
- package/dist/main.js +436 -471
- package/dist/styles.css +1 -1
- package/dist/vendor.js +13 -13
- package/package.json +4 -8
- package/dist/active-descendants-controller.js +0 -308
- package/dist/dom.js +0 -86
- package/dist/lib/behaviors/can-be-collapsed.d.ts +0 -14
- package/dist/lib/behaviors/can-be-expanded.d.ts +0 -15
- package/dist/lib/controllers/expandable-controller.d.ts +0 -13
- package/dist/lib/models.d.ts +0 -68
- package/dist/utils/main.d.ts +0 -16
- package/dist/utils.js +0 -368
- /package/dist/{lib → components}/custom-element.d.ts +0 -0
- /package/dist/{utils → lib}/attribute-directive.d.ts +0 -0
- /package/dist/{utils → lib}/command-directive.d.ts +0 -0
- /package/dist/{utils → lib}/detect-keyboard-focus.d.ts +0 -0
- /package/dist/{utils → lib}/dom-events.d.ts +0 -0
- /package/dist/{utils → lib}/dom-renderer.d.ts +0 -0
- /package/dist/{utils → lib}/dom.d.ts +0 -0
- /package/dist/{utils → lib}/lit.d.ts +0 -0
- /package/dist/{utils → lib}/shared-event-listener.d.ts +0 -0
- /package/dist/{utils → lib}/shared-media-observer.d.ts +0 -0
- /package/dist/{utils → lib}/shared-resize-observer.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## 1.0.0-beta.272
|
|
2
|
+
|
|
3
|
+
### Major Changes
|
|
4
|
+
|
|
5
|
+
- Move component behavior utilities and controllers into `@odx/foundation/components` entry point
|
|
6
|
+
- Remove entry point `@odx/foundation/utils`, use root entry point `@odx/foundation` to import utilities instead
|
|
7
|
+
- Remove `type` property from `odx-loading-spinner`
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- Add `odx-loading-dots` component
|
|
12
|
+
- Remove obsolete backdrop element from `odx-loading-overlay`
|
|
13
|
+
- Add padding to `odx-loading-spinner` to align spinner size with icon sizes
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- Align `odx-accordion-item` indicator size with design spec for size `lg`
|
|
18
|
+
- Align `odx-avatar` with design spec
|
|
19
|
+
- Remove `min-width` from `odx-area-header` side slots
|
|
20
|
+
- Use touch-target of `36px` due to overflow issues
|
|
21
|
+
|
|
22
|
+
## 1.0.0-beta.271
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- Fix `odx-area-header` base slot positioning and overflow issues
|
|
27
|
+
- Fix `odx-loading-overlay` not hiding correctly when `loading` is set to `false`
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
## 1.0.0-beta.270
|
|
2
31
|
|
|
3
32
|
### Major Changes
|
|
@@ -157,7 +186,7 @@
|
|
|
157
186
|
|
|
158
187
|
### Minor Changes
|
|
159
188
|
|
|
160
|
-
- Update selected options label for
|
|
189
|
+
- Update selected options label for multi selection in `odx-select` component to match design spec
|
|
161
190
|
|
|
162
191
|
### Bug Fixes
|
|
163
192
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from '
|
|
2
|
-
import { CustomElement } from '
|
|
1
|
+
import { Constructor } from '../../../main.js';
|
|
2
|
+
import { CustomElement } from '../../custom-element.js';
|
|
3
3
|
export interface CanBeDisabled extends CustomElement {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
focusDisabled: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Constructor } from '
|
|
2
|
-
import { CustomElement } from '
|
|
1
|
+
import { Constructor } from '../../../main.js';
|
|
2
|
+
import { CustomElement } from '../../custom-element.js';
|
|
3
3
|
import { FormAssociated } from './form-associated.js';
|
|
4
4
|
type AriaCheckboxRoles = 'checkbox' | 'menuitemcheckbox' | 'menuitemradio' | 'option' | 'radio' | 'switch';
|
|
5
|
-
export declare const checkboxControlDirective: import('
|
|
5
|
+
export declare const checkboxControlDirective: import('../../../main.js').BooleanAttributeDirective<"data-odx-checkbox-control">;
|
|
6
6
|
export interface CheckboxControl extends FormAssociated {
|
|
7
7
|
controlled: boolean;
|
|
8
8
|
checked: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import { CustomElement } from '
|
|
2
|
+
import { CustomElement } from '../../custom-element.js';
|
|
3
3
|
import { CheckboxControl } from './checkbox-control.js';
|
|
4
4
|
import { FormAssociated } from './form-associated.js';
|
|
5
|
-
declare const CheckboxGroupControl_base: import('
|
|
5
|
+
declare const CheckboxGroupControl_base: import('../../../main.js').Constructor<FormAssociated> & typeof CustomElement;
|
|
6
6
|
export declare class CheckboxGroupControl extends CheckboxGroupControl_base {
|
|
7
7
|
#private;
|
|
8
8
|
private selection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Constructor } from '
|
|
2
|
-
import { CustomElement } from '
|
|
1
|
+
import { Constructor } from '../../../main.js';
|
|
2
|
+
import { CustomElement } from '../../custom-element.js';
|
|
3
3
|
import { CanBeDisabled } from './can-be-disabled.js';
|
|
4
4
|
export interface FormAssociated extends CanBeDisabled, CustomElement {
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Constructor } from '
|
|
1
|
+
import { Constructor } from '../../../main.js';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
import { CustomElement } from '
|
|
3
|
+
import { CustomElement } from '../../custom-element.js';
|
|
4
4
|
export type PresetsConfig<T extends CustomElement> = Record<string, Partial<T> & {
|
|
5
5
|
render?: () => TemplateResult;
|
|
6
6
|
}>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { ControlElement } from './control-element.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Base element for button control components
|
|
5
|
+
*
|
|
6
6
|
* @csspart label
|
|
7
7
|
*
|
|
8
|
-
* @slot prefix - Prefix slot
|
|
9
|
-
* @slot suffix - Suffix slot
|
|
10
|
-
* @slot - Default slot
|
|
11
8
|
*/
|
|
12
9
|
export declare class ButtonControlElement extends ControlElement {
|
|
13
10
|
static readonly styles: CSSResultGroup;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
4
|
-
|
|
2
|
+
import { CustomElement } from '../custom-element.js';
|
|
3
|
+
import { CanBeDisabled } from './behaviors/can-be-disabled.js';
|
|
4
|
+
import { ValuesOf } from './models.js';
|
|
5
|
+
export declare const controlDirective: import('../../main.js').BooleanAttributeDirective<"data-odx-control">;
|
|
5
6
|
export type ControlSize = ValuesOf<typeof ControlSize>;
|
|
6
|
-
export declare const ControlSize:
|
|
7
|
-
readonly XS: "xs";
|
|
7
|
+
export declare const ControlSize: {
|
|
8
8
|
readonly SM: "sm";
|
|
9
9
|
readonly MD: "md";
|
|
10
10
|
readonly LG: "lg";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, "SM" | "MD" | "LG">;
|
|
14
|
-
declare const ControlElement_base: import('../../utils/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
11
|
+
};
|
|
12
|
+
declare const ControlElement_base: import('../../main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
15
13
|
/**
|
|
14
|
+
* Base element for control components
|
|
15
|
+
*
|
|
16
16
|
* @csspart label
|
|
17
17
|
*
|
|
18
18
|
* @slot prefix - Prefix slot
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
export declare const activeDirective: import('
|
|
2
|
+
export declare const activeDirective: import('../../../main.js').BooleanAttributeDirective<"data-odx-active">;
|
|
3
3
|
export interface ActiveDescendant extends HTMLElement {
|
|
4
4
|
canActivate(): boolean;
|
|
5
5
|
isActive(): boolean;
|
|
@@ -17,7 +17,7 @@ export interface IsDraggable extends LitElement {
|
|
|
17
17
|
afterDragEnd?(event: DragEvent): void;
|
|
18
18
|
getDistance?(container: HTMLElement, position: DragPosition): number;
|
|
19
19
|
}
|
|
20
|
-
export declare const dragActiveDirective: import('
|
|
20
|
+
export declare const dragActiveDirective: import('../../../main.js').BooleanAttributeDirective<"data-odx-drag-active">;
|
|
21
21
|
export interface DragControllerOptions<T extends IsDraggable = IsDraggable> {
|
|
22
22
|
getDraggableElements: () => T[];
|
|
23
23
|
getContainer?: () => HTMLElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
+
import { CustomElement } from '../../custom-element.js';
|
|
3
|
+
export interface CanBeExpanded extends CustomElement {
|
|
4
|
+
expandControl?: HTMLElement;
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
isExpandable(): boolean;
|
|
7
|
+
toggle(state?: boolean, emitEvent?: boolean): void;
|
|
8
|
+
}
|
|
9
|
+
export interface ExpandableItemManagerHost<T extends CanBeExpanded = CanBeExpanded> extends ReactiveElement {
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
getItems(): T[];
|
|
12
|
+
toggleAll(state?: boolean, emitEvent?: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class CollapseEvent extends CustomEvent<boolean> {
|
|
15
|
+
static readonly eventName = "collapse";
|
|
16
|
+
constructor(eventInit?: CustomEventInit<boolean>);
|
|
17
|
+
}
|
|
18
|
+
export declare class ExpandEvent extends CustomEvent<boolean> {
|
|
19
|
+
static readonly eventName = "expand";
|
|
20
|
+
constructor(eventInit?: CustomEventInit<boolean>);
|
|
21
|
+
}
|
|
22
|
+
export declare function toggleExpandableItem(target: CanBeExpanded, state?: boolean, emitEvent?: boolean): void;
|
|
23
|
+
export declare class ExpandableItemManager<T extends CanBeExpanded = CanBeExpanded> implements ReactiveController {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(host: ExpandableItemManagerHost<T>);
|
|
26
|
+
hostConnected?(): void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=expandable-controller.d.ts.map
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly SM: "sm";
|
|
9
|
-
readonly MD: "md";
|
|
10
|
-
readonly LG: "lg";
|
|
11
|
-
readonly XL: "xl";
|
|
12
|
-
readonly XXL: "xxl";
|
|
13
|
-
}, "SM" | "MD" | "LG">;
|
|
2
|
+
import { CustomElement } from '../custom-element.js';
|
|
3
|
+
import { CanBeDisabled } from './behaviors/can-be-disabled.js';
|
|
4
|
+
import { ValuesOf } from './models.js';
|
|
5
|
+
export declare const dialogDirective: import('../../main.js').BooleanAttributeDirective<"odx-dialog">;
|
|
14
6
|
export type DialogLayer = ValuesOf<typeof DialogLayer>;
|
|
15
7
|
export declare const DialogLayer: {
|
|
16
8
|
SCREEN: string;
|
|
17
9
|
PAGE: string;
|
|
18
10
|
CONTAINER: string;
|
|
19
11
|
};
|
|
20
|
-
export declare const DialogShowCommand: import('../../
|
|
21
|
-
export declare const DialogDismissCommand: import('../../
|
|
22
|
-
export declare const DialogCloseCommand: import('../../
|
|
12
|
+
export declare const DialogShowCommand: import('../../main.js').CommandDirective<"odx-dialog-show">;
|
|
13
|
+
export declare const DialogDismissCommand: import('../../main.js').CommandDirective<"odx-dialog-dismiss">;
|
|
14
|
+
export declare const DialogCloseCommand: import('../../main.js').CommandDirective<"odx-dialog-close">;
|
|
23
15
|
export declare class DialogShowEvent extends Event {
|
|
24
16
|
static readonly eventName = "dialog-show";
|
|
25
17
|
constructor(eventInit?: EventInit);
|
|
@@ -32,7 +24,17 @@ export declare class DialogCloseEvent extends CustomEvent<{
|
|
|
32
24
|
returnValue?: string;
|
|
33
25
|
}>);
|
|
34
26
|
}
|
|
35
|
-
declare const DialogElement_base: import('../../
|
|
27
|
+
declare const DialogElement_base: import('../../main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
28
|
+
/**
|
|
29
|
+
* Base element for dialog components
|
|
30
|
+
*
|
|
31
|
+
* @csspart base
|
|
32
|
+
*
|
|
33
|
+
* @slot - Default slot
|
|
34
|
+
*
|
|
35
|
+
* @event {DialogShowEvent} dialog-show - Emitted when the dialog is requested to be shown. Can be canceled to prevent showing
|
|
36
|
+
* @event {DialogCloseEvent} dialog-close - Emitted when the dialog is requested to be closed. Can be canceled to prevent closing
|
|
37
|
+
*/
|
|
36
38
|
export declare class DialogElement extends DialogElement_base {
|
|
37
39
|
#private;
|
|
38
40
|
static readonly styles: CSSResultGroup;
|
|
@@ -40,7 +42,6 @@ export declare class DialogElement extends DialogElement_base {
|
|
|
40
42
|
dismissible: boolean;
|
|
41
43
|
layer: DialogLayer;
|
|
42
44
|
open: boolean;
|
|
43
|
-
size: DialogSize;
|
|
44
45
|
get canShow(): boolean;
|
|
45
46
|
get canClose(): boolean;
|
|
46
47
|
get canDismiss(): boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Alignment, FormAssociated } from '../../main.js';
|
|
2
1
|
import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { FormAssociated } from './behaviors/form-associated.js';
|
|
3
3
|
import { ControlElement } from './control-element.js';
|
|
4
|
-
|
|
4
|
+
import { Alignment } from './models.js';
|
|
5
|
+
declare const InputControlElement_base: import('../../main.js').Constructor<FormAssociated> & typeof ControlElement;
|
|
5
6
|
/**
|
|
7
|
+
* Base element for input control components
|
|
6
8
|
*
|
|
7
|
-
* @
|
|
8
|
-
* @
|
|
9
|
-
* @slot - Default slot
|
|
9
|
+
* @csspart input
|
|
10
|
+
* @csspart unit
|
|
10
11
|
*/
|
|
11
12
|
export declare class InputControlElement extends InputControlElement_base {
|
|
12
13
|
#private;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { CustomElement } from '../custom-element.js';
|
|
3
|
+
import { CanBeDisabled } from './behaviors/can-be-disabled.js';
|
|
4
|
+
import { FormAssociated } from './behaviors/form-associated.js';
|
|
5
|
+
import { ActiveDescendant, ActiveDescendantsController } from './controllers/active-descendants-controller.js';
|
|
6
6
|
export interface OptionControl extends ActiveDescendant, CanBeDisabled {
|
|
7
7
|
label: string;
|
|
8
8
|
type?: 'checkbox';
|
|
@@ -10,7 +10,7 @@ export interface OptionControl extends ActiveDescendant, CanBeDisabled {
|
|
|
10
10
|
selected: boolean;
|
|
11
11
|
value: string;
|
|
12
12
|
}
|
|
13
|
-
declare const ListboxControlElement_base: import('../../
|
|
13
|
+
declare const ListboxControlElement_base: import('../../main.js').Constructor<FormAssociated> & typeof CustomElement;
|
|
14
14
|
export declare class ListboxControlElement<Option extends OptionControl = OptionControl> extends ListboxControlElement_base {
|
|
15
15
|
#private;
|
|
16
16
|
protected readonly activeDescendants: ActiveDescendantsController<Option>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ValuesOf<T extends object> = T[keyof T];
|
|
2
|
+
export type Alignment = ValuesOf<typeof Alignment>;
|
|
3
|
+
export declare const Alignment: {
|
|
4
|
+
readonly START: "start";
|
|
5
|
+
readonly CENTER: "center";
|
|
6
|
+
readonly END: "end";
|
|
7
|
+
};
|
|
8
|
+
export type Variant = ValuesOf<typeof Variant>;
|
|
9
|
+
export declare const Variant: {
|
|
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 ACCENT_GHOST: "accent-ghost";
|
|
17
|
+
readonly DANGER_GHOST: "danger-ghost";
|
|
18
|
+
readonly SUBTLE: "subtle";
|
|
19
|
+
readonly GHOST: "ghost";
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CustomElement, ExpandableItemManagerHost } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { PropertyValues } from 'lit';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { ExpandableItemManagerHost } from '../abstract/controllers/expandable-controller.js';
|
|
3
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
4
|
+
import { AccordionItemSize, OdxAccordionItem } from '../accordion-item/accordion-item.js';
|
|
5
|
+
import { CustomElement } from '../custom-element.js';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
8
|
'odx-accordion': OdxAccordion;
|
|
@@ -16,21 +16,19 @@ export declare const AccordionIndicatorPlacement: Pick<{
|
|
|
16
16
|
}, "START" | "END">;
|
|
17
17
|
/**
|
|
18
18
|
* @summary A container for grouping a set of accordion items and panels.
|
|
19
|
-
* @status beta
|
|
20
|
-
* @since 1.0.0
|
|
21
19
|
*
|
|
22
20
|
* @dependencies odx-accordion-item
|
|
23
21
|
*
|
|
24
22
|
* @slot - Default slot for accordion items and panels.
|
|
25
23
|
*
|
|
26
|
-
* @event expand -
|
|
24
|
+
* @event expand - @see {OdxAccordionItem}
|
|
27
25
|
* @event collapse - Emitted when an accordion item is collapsed. Can be canceled to prevent collapse.
|
|
28
26
|
*/
|
|
29
27
|
export declare class OdxAccordion extends CustomElement implements ExpandableItemManagerHost<OdxAccordionItem> {
|
|
30
28
|
#private;
|
|
31
29
|
indicatorPlacement: AccordionIndicatorPlacement;
|
|
32
30
|
multiple: boolean;
|
|
33
|
-
size:
|
|
31
|
+
size: AccordionItemSize;
|
|
34
32
|
constructor();
|
|
35
33
|
connectedCallback(): void;
|
|
36
34
|
getItems(): OdxAccordionItem[];
|
|
@@ -1,25 +1,34 @@
|
|
|
1
|
-
import { CanBeExpanded } from '../../main.js';
|
|
2
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
2
|
import { ButtonControlElement } from '../abstract/button-control-element.js';
|
|
3
|
+
import { CanBeExpanded } from '../abstract/controllers/expandable-controller.js';
|
|
4
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
4
5
|
import { OdxAccordionPanel } from '../accordion-panel/accordion-panel.js';
|
|
5
6
|
declare global {
|
|
6
7
|
interface HTMLElementTagNameMap {
|
|
7
8
|
'odx-accordion-item': OdxAccordionItem;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
export type AccordionItemSize = ValuesOf<typeof AccordionItemSize>;
|
|
12
|
+
export declare const AccordionItemSize: Pick<{
|
|
13
|
+
readonly SM: "sm";
|
|
14
|
+
readonly MD: "md";
|
|
15
|
+
readonly LG: "lg";
|
|
16
|
+
}, "MD" | "LG">;
|
|
11
17
|
/**
|
|
12
18
|
* @summary An accordion item component that can be expanded or collapsed to show or hide content.
|
|
13
|
-
* @status beta
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
*
|
|
16
19
|
* @dependencies odx-accordion-panel
|
|
20
|
+
*
|
|
21
|
+
* @event expand - Emitted when an accordion item is expanded. Can be canceled to prevent expansion.
|
|
22
|
+
* @event collapse - Emitted when an accordion item is collapsed. Can be canceled to prevent collapse.
|
|
17
23
|
*/
|
|
18
|
-
export declare class OdxAccordionItem extends
|
|
24
|
+
export declare class OdxAccordionItem extends ButtonControlElement implements CanBeExpanded {
|
|
25
|
+
expanded: boolean;
|
|
26
|
+
size: AccordionItemSize;
|
|
19
27
|
connectedCallback(): void;
|
|
20
28
|
getPanel(): OdxAccordionPanel | null;
|
|
29
|
+
isExpandable(): boolean;
|
|
30
|
+
toggle(state?: boolean, emitEvent?: boolean): void;
|
|
21
31
|
protected renderContent(): TemplateResult;
|
|
22
32
|
protected updated(props: PropertyValues<this>): void;
|
|
23
33
|
}
|
|
24
|
-
export {};
|
|
25
34
|
//# sourceMappingURL=accordion-item.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
2
|
import { ControlSize } from '../abstract/control-element.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-accordion-panel': OdxAccordionPanel;
|
|
@@ -8,9 +8,8 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* @summary A panel component that is used within an accordion to show or hide content.
|
|
11
|
-
* @status beta
|
|
12
|
-
* @since 1.0.0
|
|
13
11
|
*
|
|
12
|
+
* @slot - Default slot for panel content
|
|
14
13
|
*/
|
|
15
14
|
export declare class OdxAccordionPanel extends CustomElement {
|
|
16
15
|
expanded: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
2
|
import { OdxButton } from '../button/button.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-action-group': OdxActionGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SignalWatcher } from '@lit-labs/signals';
|
|
2
|
-
import { CustomElement } from '../../main.js';
|
|
3
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
import { OdxNavigationItem } from '../navigation-item/navigation-item.js';
|
|
5
5
|
declare global {
|
|
6
6
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-area-footer': OdxAreaFooter;
|
|
@@ -13,14 +13,11 @@ export declare const AreaFooterAlignment: Pick<{
|
|
|
13
13
|
readonly END: "end";
|
|
14
14
|
}, "START" | "CENTER" | "END">;
|
|
15
15
|
export type AreaFooterSize = ValuesOf<typeof AreaFooterSize>;
|
|
16
|
-
export declare const AreaFooterSize:
|
|
17
|
-
readonly XS: "xs";
|
|
16
|
+
export declare const AreaFooterSize: {
|
|
18
17
|
readonly SM: "sm";
|
|
19
18
|
readonly MD: "md";
|
|
20
19
|
readonly LG: "lg";
|
|
21
|
-
|
|
22
|
-
readonly XXL: "xxl";
|
|
23
|
-
}, "SM" | "MD" | "LG">;
|
|
20
|
+
};
|
|
24
21
|
export declare class OdxAreaFooter extends CustomElement {
|
|
25
22
|
alignment: AreaFooterAlignment;
|
|
26
23
|
size: AreaFooterSize;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-area-header': OdxAreaHeader;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export type AreaHeaderSize = ValuesOf<typeof AreaHeaderSize>;
|
|
10
|
-
export declare const AreaHeaderSize:
|
|
10
|
+
export declare const AreaHeaderSize: {
|
|
11
11
|
readonly XS: "xs";
|
|
12
12
|
readonly SM: "sm";
|
|
13
13
|
readonly MD: "md";
|
|
14
14
|
readonly LG: "lg";
|
|
15
15
|
readonly XL: "xl";
|
|
16
|
-
|
|
17
|
-
}, "XS" | "SM" | "MD" | "LG" | "XL">;
|
|
16
|
+
};
|
|
18
17
|
export declare class OdxAreaHeader extends CustomElement {
|
|
19
18
|
#private;
|
|
20
19
|
static observeSlots: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ActiveDescendantsController, CustomElement, FormAssociated } from '../../main.js';
|
|
2
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { FormAssociated } from '../abstract/behaviors/form-associated.js';
|
|
3
|
+
import { ActiveDescendantsController } from '../abstract/controllers/active-descendants-controller.js';
|
|
4
|
+
import { CustomElement } from '../custom-element.js';
|
|
3
5
|
import { OdxDropdown } from '../dropdown/dropdown.js';
|
|
4
6
|
import { OdxHighlight } from '../highlight/highlight.js';
|
|
5
7
|
import { OdxOption } from '../option/option.js';
|
|
@@ -8,7 +10,7 @@ declare global {
|
|
|
8
10
|
'odx-autocomplete': OdxAutocomplete;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
|
-
declare const OdxAutocomplete_base: import('../../
|
|
13
|
+
declare const OdxAutocomplete_base: import('../../main.js').Constructor<FormAssociated> & typeof CustomElement;
|
|
12
14
|
export declare class OdxAutocomplete extends OdxAutocomplete_base {
|
|
13
15
|
#private;
|
|
14
16
|
static shadowRootOptions: ShadowRootInit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-avatar': OdxAvatar;
|
|
@@ -12,14 +12,14 @@ export declare const AvatarShape: {
|
|
|
12
12
|
readonly RECTANGLE: "rectangle";
|
|
13
13
|
};
|
|
14
14
|
export type AvatarSize = ValuesOf<typeof AvatarSize>;
|
|
15
|
-
export declare const AvatarSize:
|
|
15
|
+
export declare const AvatarSize: {
|
|
16
16
|
readonly XS: "xs";
|
|
17
17
|
readonly SM: "sm";
|
|
18
18
|
readonly MD: "md";
|
|
19
19
|
readonly LG: "lg";
|
|
20
20
|
readonly XL: "xl";
|
|
21
21
|
readonly XXL: "xxl";
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
export type AvatarVariant = ValuesOf<typeof AvatarVariant>;
|
|
24
24
|
export declare const AvatarVariant: Pick<{
|
|
25
25
|
readonly NEUTRAL: "neutral";
|
|
@@ -35,7 +35,6 @@ export declare const AvatarVariant: Pick<{
|
|
|
35
35
|
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "GHOST">;
|
|
36
36
|
export declare class OdxAvatar extends CustomElement {
|
|
37
37
|
interactive: boolean;
|
|
38
|
-
name: string;
|
|
39
38
|
shape: AvatarShape;
|
|
40
39
|
size: AvatarSize;
|
|
41
40
|
variant: AvatarVariant;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-badge': OdxBadge;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export type BadgeSize = ValuesOf<typeof BadgeSize>;
|
|
10
|
-
export declare const BadgeSize:
|
|
11
|
-
readonly XS: "xs";
|
|
10
|
+
export declare const BadgeSize: {
|
|
12
11
|
readonly SM: "sm";
|
|
13
12
|
readonly MD: "md";
|
|
14
13
|
readonly LG: "lg";
|
|
15
|
-
|
|
16
|
-
readonly XXL: "xxl";
|
|
17
|
-
}, "SM" | "MD" | "LG">;
|
|
14
|
+
};
|
|
18
15
|
export type BadgeVariant = ValuesOf<typeof BadgeVariant>;
|
|
19
16
|
export declare const BadgeVariant: Pick<{
|
|
20
17
|
readonly NEUTRAL: "neutral";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
3
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
4
|
import { OdxLink } from '../link/link.js';
|
|
5
5
|
export interface BreadcrumbsItem {
|
|
6
6
|
href: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
2
1
|
import { TemplateResult } from 'lit';
|
|
3
2
|
import { LinkControlElement } from '../abstract/link-control-element.js';
|
|
3
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-button': OdxButton;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export declare const buttonDirective: import('../../
|
|
9
|
+
export declare const buttonDirective: import('../../main.js').BooleanAttributeDirective<"data-odx-button">;
|
|
10
10
|
export type ButtonBadgePlacement = ValuesOf<typeof ButtonBadgePlacement>;
|
|
11
11
|
export declare const ButtonBadgePlacement: Pick<{
|
|
12
12
|
readonly START: "start";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CustomElement } from '../../main.js';
|
|
2
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
2
|
import { ControlSize } from '../abstract/control-element.js';
|
|
4
3
|
import { ButtonVariant, OdxButton } from '../button/button.js';
|
|
4
|
+
import { CustomElement } from '../custom-element.js';
|
|
5
5
|
declare global {
|
|
6
6
|
interface HTMLElementTagNameMap {
|
|
7
7
|
'odx-button-group': OdxButtonGroup;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '../../main.js';
|
|
2
|
-
import { ValuesOf } from '../../utils/main.js';
|
|
3
1
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { CanBeDisabled } from '../abstract/behaviors/can-be-disabled.js';
|
|
3
|
+
import { ValuesOf } from '../abstract/models.js';
|
|
4
|
+
import { CustomElement } from '../custom-element.js';
|
|
4
5
|
declare global {
|
|
5
6
|
interface HTMLElementTagNameMap {
|
|
6
7
|
'odx-card': OdxCard;
|
|
@@ -19,7 +20,7 @@ export declare const CardVariant: Pick<{
|
|
|
19
20
|
readonly SUBTLE: "subtle";
|
|
20
21
|
readonly GHOST: "ghost";
|
|
21
22
|
}, "NEUTRAL" | "GHOST">;
|
|
22
|
-
declare const OdxCard_base: import('../../
|
|
23
|
+
declare const OdxCard_base: import('../../main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
23
24
|
export declare class OdxCard extends OdxCard_base {
|
|
24
25
|
#private;
|
|
25
26
|
static observeSlots: boolean;
|