@odx/foundation 1.0.0-beta.13 → 1.0.0-beta.131
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 +7 -8
- package/dist/_virtual_class-decorator-runtime.js +13 -0
- package/dist/components/accordion/accordion.d.ts +14 -2
- package/dist/components/accordion-item/accordion-item.d.ts +25 -0
- package/dist/components/{accordion → accordion-panel}/accordion-panel.d.ts +0 -1
- package/dist/components/action-button/action-button.d.ts +26 -0
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +3 -4
- package/dist/components/anchor-navigation/anchor-observer.d.ts +9 -7
- package/dist/components/anchor-navigation/index.d.ts +0 -1
- package/dist/components/area-header/area-header.d.ts +11 -5
- package/dist/components/auto-grid/auto-grid.d.ts +16 -0
- package/dist/components/avatar/avatar.d.ts +32 -7
- package/dist/components/badge/badge.d.ts +18 -6
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +2 -5
- package/dist/components/{breadcrumbs → breadcrumbs-item}/breadcrumbs-item.d.ts +1 -4
- package/dist/components/button/button.d.ts +29 -24
- package/dist/components/button-group/button-group.d.ts +7 -1
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/checkbox/checkbox.d.ts +3 -4
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -4
- package/dist/components/chip/chip.d.ts +16 -4
- package/dist/components/combobox/autocomplete.d.ts +24 -0
- package/dist/components/content-box/content-box.d.ts +0 -1
- package/dist/components/dropdown/dropdown.d.ts +9 -13
- package/dist/components/empty-state/empty-state.d.ts +37 -0
- package/dist/components/form-field/form-field.d.ts +4 -4
- package/dist/components/format/base-format.d.ts +0 -1
- package/dist/components/format/format-bytes.d.ts +1 -2
- package/dist/components/format/format-date.d.ts +0 -1
- package/dist/components/format/format-number.d.ts +1 -2
- package/dist/components/format/index.d.ts +0 -1
- package/dist/components/format/relative-time.d.ts +2 -3
- package/dist/components/gradient-overlay/gradient-overlay.d.ts +21 -0
- package/dist/components/header/header-actions.d.ts +0 -1
- package/dist/components/header/header.d.ts +0 -1
- package/dist/components/header/index.d.ts +1 -2
- package/dist/components/highlight/highlight.d.ts +27 -8
- package/dist/components/icon-button/icon-button.d.ts +12 -17
- package/dist/components/image/image.d.ts +4 -5
- package/dist/components/inline-message/inline-message.d.ts +19 -6
- package/dist/components/input/input.d.ts +17 -10
- package/dist/components/kpi/kpi.d.ts +39 -0
- package/dist/components/label/label.d.ts +10 -0
- package/dist/components/line-clamp/line-clamp.d.ts +2 -3
- package/dist/components/link/link.d.ts +3 -4
- package/dist/components/list/list.d.ts +3 -1
- package/dist/components/{list → list-item}/list-item.d.ts +7 -6
- package/dist/components/loader.d.ts +1 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +2 -4
- package/dist/components/loading-spinner/loading-spinner.d.ts +1 -3
- package/dist/components/logo/logo.d.ts +11 -4
- package/dist/components/main-menu/index.d.ts +1 -3
- package/dist/components/main-menu/main-menu-button.d.ts +0 -1
- package/dist/components/main-menu/main-menu-subtitle.d.ts +0 -1
- package/dist/components/main-menu/main-menu-title.d.ts +0 -1
- package/dist/components/main-menu/main-menu.d.ts +4 -5
- package/dist/components/main.d.ts +68 -59
- package/dist/components/menu/menu.d.ts +3 -4
- package/dist/components/menu-item/menu-item.d.ts +5 -4
- package/dist/components/modal/modal.d.ts +8 -7
- package/dist/components/navigation-item/navigation-item.d.ts +15 -8
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +20 -0
- package/dist/components/option/option.d.ts +1 -2
- package/dist/components/page/page.d.ts +16 -7
- package/dist/components/page-layout/page-layout.d.ts +0 -1
- package/dist/components/pagination/pagination.d.ts +0 -1
- package/dist/components/popover/popover-host.d.ts +34 -0
- package/dist/components/popover/popover-observer.d.ts +10 -0
- package/dist/{cdk → components}/popover/popover.d.ts +1 -1
- package/dist/components/progress-bar/base-progress.d.ts +13 -0
- package/dist/components/progress-bar/progress-bar.d.ts +2 -14
- package/dist/components/progress-ring/progress-ring.d.ts +33 -0
- package/dist/components/radio-button/radio-button.d.ts +1 -2
- package/dist/components/radio-group/radio-group.d.ts +8 -4
- package/dist/components/rail-navigation/rail-navigation.d.ts +6 -4
- package/dist/components/search-bar/search-bar.d.ts +16 -4
- package/dist/components/select/select.d.ts +14 -6
- package/dist/components/separator/separator.d.ts +9 -5
- package/dist/components/skeleton/skeleton.d.ts +21 -7
- package/dist/components/slider/index.d.ts +2 -3
- package/dist/components/slider/slider-handle.d.ts +7 -7
- package/dist/components/slider/slider-marks.d.ts +1 -2
- package/dist/components/slider/slider.d.ts +2 -4
- package/dist/components/slider/slider.models.d.ts +3 -3
- package/dist/components/spacer/spacer.d.ts +0 -1
- package/dist/components/spinbox/spinbox.d.ts +15 -13
- package/dist/components/status/status.d.ts +26 -0
- package/dist/components/switch/switch.d.ts +1 -2
- package/dist/components/table/index.d.ts +3 -4
- package/dist/components/table/table-body.d.ts +0 -3
- package/dist/components/table/table-cell.d.ts +0 -3
- package/dist/components/table/table-checkbox-cell.d.ts +0 -1
- package/dist/components/table/table-header-cell.d.ts +0 -1
- package/dist/components/table/table-header.d.ts +2 -3
- package/dist/components/table/table-row.d.ts +0 -1
- package/dist/components/table/table.d.ts +0 -1
- package/dist/components/table/table.models.d.ts +0 -1
- package/dist/components/text/text.d.ts +27 -5
- package/dist/components/title/title.d.ts +18 -6
- package/dist/components/toast/toast.d.ts +18 -4
- package/dist/components/toggle-button/toggle-button.d.ts +2 -6
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +11 -0
- package/dist/components/toggle-content/toggle-content.d.ts +2 -3
- package/dist/components/tooltip/tooltip.d.ts +36 -4
- package/dist/components/translate/translate.d.ts +0 -1
- package/dist/components/visually-hidden/visually-hidden.d.ts +0 -3
- package/dist/components.js +3216 -3757
- package/dist/i18n/{lib/config.d.ts → config.d.ts} +0 -1
- package/dist/i18n/{lib/format.d.ts → format.d.ts} +0 -1
- package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +2 -3
- package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +0 -2
- package/dist/i18n/main.d.ts +6 -7
- package/dist/i18n/{lib/models.d.ts → models.d.ts} +0 -1
- package/dist/i18n/{lib/translate.d.ts → translate.d.ts} +1 -3
- package/dist/i18n.js +15 -28
- package/dist/lib/control/checkbox-form-control.d.ts +13 -0
- package/dist/lib/control/checkbox-group-form-control.d.ts +22 -0
- package/dist/lib/control/form-control.d.ts +28 -0
- package/dist/lib/control/listbox-form-control.d.ts +25 -0
- package/dist/lib/control/number-form-control.d.ts +12 -0
- package/dist/lib/control/option-control.d.ts +23 -0
- package/dist/lib/control/radio-group-form-control.d.ts +15 -0
- package/dist/lib/controllers/active-descendants-controller.d.ts +28 -0
- package/dist/{cdk/drag-drop → lib/controllers}/drag.controller.d.ts +2 -2
- package/dist/lib/controllers/expandable-controller.d.ts +1 -3
- package/dist/lib/custom-element.d.ts +10 -6
- package/dist/lib/interactive/interactive-element.d.ts +29 -0
- package/dist/{cdk → lib}/interactive/interactive-link.d.ts +9 -4
- package/dist/lib/main.d.ts +27 -24
- package/dist/lib/mixins/can-be-disabled.d.ts +1 -10
- package/dist/lib/mixins/can-be-expanded.d.ts +5 -8
- package/dist/lib/mixins/is-draggable.d.ts +15 -0
- package/dist/{cdk/drag-drop/drag-events.d.ts → lib/models/drag-event.d.ts} +0 -1
- package/dist/lib/models/layout.d.ts +30 -0
- package/dist/lib/models/placement.d.ts +16 -0
- package/dist/lib/models/shape.d.ts +6 -0
- package/dist/lib/models/size.d.ts +10 -0
- package/dist/lib/models/variant.d.ts +23 -0
- package/dist/lib/utils/compute-popover-placement.d.ts +12 -0
- package/dist/lib/utils/dom.d.ts +26 -16
- package/dist/lib/utils/get-unique-id.d.ts +6 -24
- package/dist/lib/utils/lit.d.ts +2 -5
- package/dist/lib/utils/shared-resize-observer.d.ts +0 -8
- package/dist/lib/utils/{a11y.d.ts → types.d.ts} +2 -6
- package/dist/loader.js +6 -11
- package/dist/main.js +1112 -732
- package/dist/styles.css +1 -1
- package/dist/vendor.js +1986 -0
- package/package.json +49 -27
- package/dist/cdk/control/checkbox-form-control.d.ts +0 -15
- package/dist/cdk/control/checkbox-group-form-control.d.ts +0 -21
- package/dist/cdk/control/listbox-form-control.d.ts +0 -22
- package/dist/cdk/control/option-control.d.ts +0 -24
- package/dist/cdk/control/radio-group-form-control.d.ts +0 -22
- package/dist/cdk/drag-drop/is-draggable.d.ts +0 -18
- package/dist/cdk/interactive/interactive-element.d.ts +0 -28
- package/dist/cdk/main.d.ts +0 -14
- package/dist/cdk/popover/popover-host.d.ts +0 -25
- package/dist/cdk/popover/popover.models.d.ts +0 -34
- package/dist/cdk/popover/popover.utils.d.ts +0 -5
- package/dist/cdk.js +0 -948
- package/dist/components/accordion/accordion-header.d.ts +0 -18
- package/dist/components/accordion/index.d.ts +0 -4
- 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/avatar-group.d.ts +0 -15
- 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/breadcrumbs/index.d.ts +0 -3
- package/dist/components/button/button.models.d.ts +0 -26
- package/dist/components/button/index.d.ts +0 -3
- 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.d.ts +0 -42
- 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/combobox/combobox.d.ts +0 -20
- package/dist/components/combobox/index.d.ts +0 -2
- 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.d.ts +0 -13
- 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/list/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/main-menu/main-menu-link.d.ts +0 -9
- package/dist/components/menu/index.d.ts +0 -3
- package/dist/components/menu/menu-label.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/index.d.ts +0 -4
- package/dist/components/search-bar/search-bar.events.d.ts +0 -7
- 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/stack/stack.d.ts +0 -18
- package/dist/components/stack/stack.models.d.ts +0 -25
- 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/controllers/active-desendants-controller.d.ts +0 -25
- package/dist/lib/controllers/focus-trap.controller.d.ts +0 -14
- package/dist/lib/mixins/can-be-highlighted.d.ts +0 -8
- 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-selected.d.ts +0 -9
- package/dist/lib/mixins/can-be-validated.d.ts +0 -12
- package/dist/lib/mixins/form-control.d.ts +0 -17
- package/dist/lib/mixins/number-control.d.ts +0 -12
- package/dist/lib/mixins/with-loading-state.d.ts +0 -8
- package/dist/lib/utils/date.d.ts +0 -2
- package/dist/lib/utils/dedupe-mixin.d.ts +0 -3
- package/dist/lib/utils/empty-slot-fallback-fix.d.ts +0 -8
- package/dist/lib/utils/keyboard-events.d.ts +0 -43
- package/dist/lib/utils/query-assigned-element.d.ts +0 -16
- package/dist/lib/utils/search-text-content.d.ts +0 -8
- package/dist/lib/utils/shared-intersection-observer.d.ts +0 -18
- package/dist/lib/utils/transformers.d.ts +0 -5
- package/dist/loader/main.d.ts +0 -2
- package/dist/vendor-dJxQG085.js +0 -138
package/README.md
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
# @odx/foundation
|
|
3
3
|
|
|
4
|
-
The `@odx/foundation` package is
|
|
4
|
+
The `@odx/foundation` package is a core part of the ODX Design System, providing essential building blocks for creating consistent and cohesive user interfaces. This package includes foundational components, styles, and utilities to ensure a unified design across all ODX projects.
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **Global Styles**: Comprehensive global styles
|
|
11
|
-
|
|
12
|
-
### Prequisites
|
|
8
|
+
- **Components**: Reusable web components, including buttons, tables, headers, and more.
|
|
9
|
+
- **i18n**: Internationalization utilities for building multilingual applications, with support for locale changes and translations.
|
|
10
|
+
- **Global Styles**: Comprehensive global styles, including colors, spacing, and themes.
|
|
13
11
|
|
|
12
|
+
### Prerequisites
|
|
14
13
|
|
|
15
14
|
### Install
|
|
16
15
|
|
|
17
16
|
[<img alt="NPM Version (with dist tag)" src="https://img.shields.io/npm/v/%40odx%2Ffoundation/latest?style=flat-square">](https://npmjs.org/package/@odx/foundation)
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
To install `@odx/foundation` in your project, run the following command:
|
|
19
|
+
To install `@odx/foundation` and it's peer dependencies in your project, run the following command:
|
|
21
20
|
|
|
22
21
|
```bash
|
|
23
|
-
npm install @odx/foundation @odx/icons@next --save
|
|
22
|
+
npm install @odx/design-tokens @odx/foundation @odx/icons@next --save
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
> We depend on the <a href="https://lit.dev" target="_blank" rel="noopener">**Lit package**</a> for building web elements because it offers a lightweight, efficient framework with a simple syntax for creating fast, reusable elements. Its powerful templating system ensures high performance and seamless user experience. Lit is also highly interoperable, making it easy to integrate with other frameworks and libraries.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
|
|
4
|
+
const __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
6
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
+
if (decorator = decorators[i])
|
|
8
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9
|
+
if (kind && result) __defProp(target, key, result);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { __decorateClass as _ };
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { AccordionItemSize, OdxAccordionItem } from '../accordion-item/accordion-item.js';
|
|
2
4
|
declare global {
|
|
3
5
|
interface HTMLElementTagNameMap {
|
|
4
6
|
'odx-accordion': OdxAccordion;
|
|
5
7
|
}
|
|
6
8
|
}
|
|
9
|
+
export type AccordionIndicatorPosition = ValuesOf<typeof AccordionIndicatorPosition>;
|
|
10
|
+
export declare const AccordionIndicatorPosition: {
|
|
11
|
+
readonly START: "start";
|
|
12
|
+
readonly END: "end";
|
|
13
|
+
};
|
|
7
14
|
export declare class OdxAccordion extends CustomElement {
|
|
15
|
+
/** @internal */
|
|
16
|
+
items: OdxAccordionItem[];
|
|
17
|
+
indicatorPosition: AccordionIndicatorPosition;
|
|
8
18
|
multiple: boolean;
|
|
19
|
+
size?: AccordionItemSize;
|
|
9
20
|
constructor();
|
|
21
|
+
protected updated(props: PropertyValues<this>): void;
|
|
22
|
+
toggleAll(state?: boolean, emitEvent?: boolean): void;
|
|
10
23
|
}
|
|
11
|
-
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CanBeExpanded, InteractiveElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-accordion-item': OdxAccordionItem;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type AccordionItemSize = ValuesOf<typeof AccordionItemSize>;
|
|
9
|
+
export declare const AccordionItemSize: 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
|
+
declare const OdxAccordionItem_base: import('../../lib/main.js').Constructor<CanBeExpanded> & typeof InteractiveElement;
|
|
18
|
+
export declare class OdxAccordionItem extends OdxAccordionItem_base {
|
|
19
|
+
#private;
|
|
20
|
+
size: AccordionItemSize;
|
|
21
|
+
get panel(): HTMLElement | null;
|
|
22
|
+
protected renderContent(): TemplateResult;
|
|
23
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OdxIconName } from '@odx/icons';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { OdxButton } from '../button/button.js';
|
|
4
|
+
import { OdxTooltip } from '../tooltip/tooltip.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'odx-action-button': OdxActionButton;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class OdxActionButton extends OdxButton {
|
|
11
|
+
#private;
|
|
12
|
+
protected tooltip?: OdxTooltip;
|
|
13
|
+
/** @internal */
|
|
14
|
+
protected isStatusMessageShown: boolean;
|
|
15
|
+
done: boolean;
|
|
16
|
+
icon: OdxIconName | undefined;
|
|
17
|
+
statusIcon: OdxIconName;
|
|
18
|
+
statusMessage: string;
|
|
19
|
+
statusTimeout: number;
|
|
20
|
+
statusMessageTimeout: number;
|
|
21
|
+
replaceContent: boolean;
|
|
22
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
23
|
+
protected render(): TemplateResult;
|
|
24
|
+
protected renderContent(): TemplateResult;
|
|
25
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import {
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-anchor-navigation': OdxAnchorNavigation;
|
|
@@ -8,14 +8,13 @@ declare global {
|
|
|
8
8
|
declare const OdxAnchorNavigation_base: typeof CustomElement;
|
|
9
9
|
export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
|
|
10
10
|
#private;
|
|
11
|
+
private navigationItems;
|
|
11
12
|
container?: string;
|
|
12
13
|
vertical: boolean;
|
|
13
14
|
constructor();
|
|
14
15
|
connectedCallback(): void;
|
|
15
16
|
disconnectedCallback(): void;
|
|
16
|
-
renderAnchorLink(anchor: Element, isActive?: boolean): unknown;
|
|
17
17
|
protected render(): TemplateResult;
|
|
18
|
-
protected updated(props:
|
|
18
|
+
protected updated(props: PropertyValues<this>): void;
|
|
19
19
|
}
|
|
20
20
|
export {};
|
|
21
|
-
//# sourceMappingURL=anchor-navigation.d.ts.map
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { InteractiveLink } from '../../lib/main.js';
|
|
2
|
+
export interface AnchorObserverOptions {
|
|
3
|
+
threshold?: number;
|
|
4
|
+
}
|
|
1
5
|
export declare class AnchorObserver {
|
|
2
6
|
#private;
|
|
3
|
-
readonly root:
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
constructor(root?: Element | null);
|
|
7
|
-
observe(): void;
|
|
7
|
+
readonly root: Document | Element;
|
|
8
|
+
readonly activeAnchors: import('@preact/signals-core').ReadonlySignal<InteractiveLink[]>;
|
|
9
|
+
constructor(root: Document | Element, options?: AnchorObserverOptions);
|
|
8
10
|
disconnect(): void;
|
|
9
|
-
|
|
11
|
+
isAnchorActive(anchor: InteractiveLink): boolean;
|
|
12
|
+
updateAnchors(anchors?: InteractiveLink[]): void;
|
|
10
13
|
}
|
|
11
|
-
//# sourceMappingURL=anchor-observer.d.ts.map
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, ValuesOf } 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 = ValuesOf<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
|
-
size
|
|
11
|
-
variant?: AreaHeaderVariant;
|
|
18
|
+
size: AreaHeaderSize;
|
|
12
19
|
protected render(): TemplateResult;
|
|
13
20
|
}
|
|
14
|
-
//# sourceMappingURL=area-header.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-auto-grid': OdxAutoGrid;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type AutoGridMode = ValuesOf<typeof AutoGridMode>;
|
|
9
|
+
export declare const AutoGridMode: {
|
|
10
|
+
readonly FIT: "fit";
|
|
11
|
+
readonly FILL: "fill";
|
|
12
|
+
};
|
|
13
|
+
export declare class OdxAutoGrid extends CustomElement {
|
|
14
|
+
mode: AutoGridMode;
|
|
15
|
+
protected render(): TemplateResult;
|
|
16
|
+
}
|
|
@@ -1,14 +1,39 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
import { AvatarSize, AvatarVariant } from './avatar.models.js';
|
|
1
|
+
import { CustomElement, ValuesOf } 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 = ValuesOf<typeof AvatarShape>;
|
|
8
|
+
export declare const AvatarShape: Pick<{
|
|
9
|
+
readonly CIRCLE: "circle";
|
|
10
|
+
readonly RECTANGLE: "rectangle";
|
|
11
|
+
}, "CIRCLE" | "RECTANGLE">;
|
|
12
|
+
export type AvatarSize = ValuesOf<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" | "XXL">;
|
|
21
|
+
export type AvatarVariant = ValuesOf<typeof AvatarVariant>;
|
|
22
|
+
export declare const AvatarVariant: Pick<{
|
|
23
|
+
readonly NEUTRAL: "neutral";
|
|
24
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
25
|
+
readonly PRIMARY: "primary";
|
|
26
|
+
readonly PRIMARY_SUBTLE: "primary-subtle";
|
|
27
|
+
readonly ACCENT: "accent";
|
|
28
|
+
readonly ACCENT_SUBTLE: "accent-subtle";
|
|
29
|
+
readonly SUCCESS: "success";
|
|
30
|
+
readonly WARNING: "warning";
|
|
31
|
+
readonly DANGER: "danger";
|
|
32
|
+
readonly DANGER_SUBTLE: "danger-subtle";
|
|
33
|
+
readonly GHOST: "ghost";
|
|
34
|
+
}, "NEUTRAL" | "PRIMARY" | "PRIMARY_SUBTLE" | "ACCENT" | "ACCENT_SUBTLE">;
|
|
9
35
|
export declare class OdxAvatar extends CustomElement {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
36
|
+
shape: AvatarShape;
|
|
37
|
+
size: AvatarSize;
|
|
38
|
+
variant: AvatarVariant;
|
|
13
39
|
}
|
|
14
|
-
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CustomElement, ValuesOf } 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 = ValuesOf<typeof BadgeVariant>;
|
|
9
|
+
export declare const BadgeVariant: 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" | "PRIMARY" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
|
|
9
22
|
export declare class OdxBadge extends CustomElement {
|
|
10
|
-
compact
|
|
11
|
-
pulse
|
|
12
|
-
variant
|
|
23
|
+
compact: boolean;
|
|
24
|
+
pulse: boolean;
|
|
25
|
+
variant: BadgeVariant;
|
|
13
26
|
protected render(): TemplateResult;
|
|
14
27
|
}
|
|
15
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomElement } from '../../lib/main.js';
|
|
2
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
interface BreadcrumbsItem {
|
|
3
|
+
export interface BreadcrumbsItem {
|
|
4
4
|
href: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
@@ -12,12 +12,9 @@ declare global {
|
|
|
12
12
|
export declare class OdxBreadcrumbs extends CustomElement {
|
|
13
13
|
#private;
|
|
14
14
|
private itemElements;
|
|
15
|
-
private renderedItemElements;
|
|
16
15
|
max: number;
|
|
17
|
-
items?: BreadcrumbsItem[]
|
|
16
|
+
items?: BreadcrumbsItem[];
|
|
18
17
|
protected firstUpdated(props: PropertyValues<this>): void;
|
|
19
18
|
protected render(): TemplateResult;
|
|
20
19
|
protected updated(props: PropertyValues<this>): void;
|
|
21
20
|
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -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;
|
|
@@ -8,10 +8,7 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class OdxBreadcrumbsItem extends CustomElement {
|
|
10
10
|
private linkElements;
|
|
11
|
-
fallback: boolean;
|
|
12
|
-
isLast(): boolean;
|
|
13
11
|
protected get interactiveElement(): OdxLink | null;
|
|
14
12
|
protected render(): TemplateResult;
|
|
15
13
|
protected updated(props: PropertyValues<this>): void;
|
|
16
14
|
}
|
|
17
|
-
//# sourceMappingURL=breadcrumbs-item.d.ts.map
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import { InteractiveElement } from '../../
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
import { ButtonBadgeAlign, ButtonSize, ButtonVariant } from './button.models.js';
|
|
1
|
+
import { InteractiveElement, ValuesOf } from '../../lib/main.js';
|
|
4
2
|
declare global {
|
|
5
3
|
interface HTMLElementTagNameMap {
|
|
6
4
|
'odx-button': OdxButton;
|
|
7
5
|
}
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
export type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
8
|
+
export declare const ButtonSize: Pick<{
|
|
9
|
+
readonly XS: "xs";
|
|
10
|
+
readonly SM: "sm";
|
|
11
|
+
readonly MD: "md";
|
|
12
|
+
readonly LG: "lg";
|
|
13
|
+
readonly XL: "xl";
|
|
14
|
+
readonly XXL: "xxl";
|
|
15
|
+
}, "XS" | "SM" | "MD" | "LG">;
|
|
16
|
+
export type ButtonVariant = ValuesOf<typeof ButtonVariant>;
|
|
17
|
+
export declare const ButtonVariant: Pick<{
|
|
18
|
+
readonly NEUTRAL: "neutral";
|
|
19
|
+
readonly NEUTRAL_SUBTLE: "neutral-subtle";
|
|
20
|
+
readonly PRIMARY: "primary";
|
|
21
|
+
readonly PRIMARY_SUBTLE: "primary-subtle";
|
|
22
|
+
readonly ACCENT: "accent";
|
|
23
|
+
readonly ACCENT_SUBTLE: "accent-subtle";
|
|
24
|
+
readonly SUCCESS: "success";
|
|
25
|
+
readonly WARNING: "warning";
|
|
26
|
+
readonly DANGER: "danger";
|
|
27
|
+
readonly DANGER_SUBTLE: "danger-subtle";
|
|
28
|
+
readonly GHOST: "ghost";
|
|
29
|
+
}, "NEUTRAL" | "PRIMARY" | "ACCENT" | "DANGER" | "GHOST">;
|
|
30
|
+
export declare class OdxButton extends InteractiveElement {
|
|
23
31
|
#private;
|
|
32
|
+
/** @internal */
|
|
24
33
|
static readonly formAssociated = true;
|
|
25
|
-
alignBadge?: ButtonBadgeAlign;
|
|
26
|
-
block: boolean;
|
|
27
34
|
/**
|
|
28
35
|
* The type of the button.
|
|
29
36
|
*/
|
|
@@ -31,13 +38,11 @@ export declare class OdxButton extends OdxButton_base {
|
|
|
31
38
|
/**
|
|
32
39
|
* The size of the button.
|
|
33
40
|
*/
|
|
34
|
-
size
|
|
41
|
+
size: ButtonSize;
|
|
35
42
|
/**
|
|
36
43
|
* The variant of the button.
|
|
37
44
|
*/
|
|
38
|
-
variant
|
|
45
|
+
variant: ButtonVariant;
|
|
39
46
|
constructor();
|
|
40
|
-
|
|
47
|
+
connectedCallback(): void;
|
|
41
48
|
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { ButtonVariant } from '../button/button.js';
|
|
2
4
|
declare global {
|
|
3
5
|
interface HTMLElementTagNameMap {
|
|
4
6
|
'odx-button-group': OdxButtonGroup;
|
|
@@ -6,8 +8,12 @@ declare global {
|
|
|
6
8
|
}
|
|
7
9
|
declare const OdxButtonGroup_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
8
10
|
export declare class OdxButtonGroup extends OdxButtonGroup_base {
|
|
11
|
+
#private;
|
|
12
|
+
private buttons;
|
|
9
13
|
block: boolean;
|
|
10
14
|
vertical: boolean;
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
protected render(): TemplateResult;
|
|
17
|
+
protected updated(props: PropertyValues<this>): void;
|
|
11
18
|
}
|
|
12
19
|
export {};
|
|
13
|
-
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-card': OdxCard;
|
|
@@ -7,7 +7,8 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
declare const OdxCard_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
9
|
export declare class OdxCard extends OdxCard_base {
|
|
10
|
+
interactive: boolean;
|
|
11
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
10
12
|
protected render(): TemplateResult;
|
|
11
13
|
}
|
|
12
14
|
export {};
|
|
13
|
-
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckboxFormControl } from '../../
|
|
2
|
-
import {
|
|
1
|
+
import { CheckboxFormControl } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-checkbox': OdxCheckbox;
|
|
@@ -8,7 +8,6 @@ declare global {
|
|
|
8
8
|
export declare class OdxCheckbox extends CheckboxFormControl {
|
|
9
9
|
indeterminate: boolean;
|
|
10
10
|
protected render(): TemplateResult;
|
|
11
|
-
protected willUpdate(props:
|
|
11
|
+
protected willUpdate(props: PropertyValues<this>): void;
|
|
12
12
|
toggle(state?: boolean, dispatchEvent?: boolean): void;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { CheckboxGroupFormControl } from '../../
|
|
1
|
+
import { ValuesOf, 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 = ValuesOf<typeof CheckboxGroupLayout>;
|
|
9
|
+
export declare const CheckboxGroupLayout: {
|
|
10
|
+
readonly VERTICAL: "vertical";
|
|
11
|
+
readonly HORIZONTAL: "horizontal";
|
|
12
|
+
readonly LIST: "list";
|
|
13
|
+
};
|
|
9
14
|
export declare class OdxCheckboxGroup extends CheckboxGroupFormControl {
|
|
10
15
|
#private;
|
|
11
|
-
|
|
16
|
+
layout: CheckboxGroupLayout;
|
|
12
17
|
protected render(): TemplateResult;
|
|
13
18
|
}
|
|
14
|
-
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
import { CanBeDisabled, CustomElement } from '../../lib/main.js';
|
|
1
|
+
import { CanBeDisabled, CustomElement, ValuesOf } 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 = ValuesOf<typeof ChipVariant>;
|
|
9
|
+
export declare const ChipVariant: 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" | "PRIMARY" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
|
|
9
22
|
declare const OdxChip_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
23
|
export declare class OdxChip extends OdxChip_base {
|
|
11
24
|
#private;
|
|
12
25
|
protected actionElement?: HTMLElement;
|
|
13
26
|
removable: boolean;
|
|
14
27
|
interactive: boolean;
|
|
15
|
-
variant
|
|
28
|
+
variant: ChipVariant;
|
|
16
29
|
protected render(): TemplateResult;
|
|
17
30
|
protected renderAction(): TemplateResult;
|
|
18
31
|
protected willUpdate(props: PropertyValues<this>): void;
|
|
19
32
|
protected updated(props: PropertyValues<this>): void;
|
|
20
33
|
}
|
|
21
34
|
export {};
|
|
22
|
-
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ActiveDescendantsController, FormControl, 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
|
+
export declare class OdxAutocomplete extends FormControl {
|
|
11
|
+
#private;
|
|
12
|
+
/** @internal */
|
|
13
|
+
static shadowRootOptions: ShadowRootInit;
|
|
14
|
+
protected readonly activeDescendants: ActiveDescendantsController<OptionControl>;
|
|
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 control(): HTMLInputElement | undefined;
|
|
21
|
+
get controlValue(): string;
|
|
22
|
+
protected firstUpdated(props: PropertyValues<this>): void;
|
|
23
|
+
protected render(): TemplateResult;
|
|
24
|
+
}
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OdxPopover, PopoverHost, PopoverPlacementOptions } from '../../cdk/main.js';
|
|
1
|
+
import { PopoverPlacementOptions, ValuesOf } from '../../lib/main.js';
|
|
3
2
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
|
-
import {
|
|
3
|
+
import { PopoverHost } from '../popover/popover-host.js';
|
|
5
4
|
declare global {
|
|
6
5
|
interface HTMLElementTagNameMap {
|
|
7
6
|
'odx-dropdown': OdxDropdown;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
export declare
|
|
9
|
+
export type DropdownPlacement = ValuesOf<typeof DropdownPlacement>;
|
|
10
|
+
export declare const DropdownPlacement: {
|
|
11
|
+
readonly TOP: "top";
|
|
12
|
+
readonly BOTTOM: "bottom";
|
|
13
|
+
};
|
|
14
|
+
export declare class OdxDropdown extends PopoverHost {
|
|
12
15
|
#private;
|
|
13
|
-
popoverElement: OdxPopover;
|
|
14
16
|
matchReferenceWidth: boolean;
|
|
15
17
|
placement: DropdownPlacement;
|
|
16
18
|
get options(): PopoverPlacementOptions;
|
|
17
19
|
connectedCallback(): void;
|
|
18
|
-
mountPopover(referenceElement
|
|
20
|
+
mountPopover(referenceElement: HTMLElement | null): void;
|
|
19
21
|
unmountPopover(referenceElement: HTMLElement): void;
|
|
20
|
-
onBeforePopoverShow(): void;
|
|
21
|
-
onPopoverShow(): void;
|
|
22
|
-
onBeforePopoverHide(): void;
|
|
23
|
-
onPopoverHide(): void;
|
|
24
22
|
protected render(): TemplateResult;
|
|
25
23
|
protected willUpdate(props: PropertyValues<this>): void;
|
|
26
24
|
}
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=dropdown.d.ts.map
|