@odx/foundation 1.0.0-alpha.6 → 1.0.0-alpha.7
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 -7
- package/dist/cdk.js +345 -0
- package/dist/components/accordion/accordion-header.component.d.ts +1 -1
- package/dist/components/button/base-button.d.ts +1 -1
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/button-group/button-group.component.d.ts +1 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/chip/chip.component.d.ts +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +2 -2
- package/dist/components/format/format-date.component.d.ts +1 -1
- package/dist/components/format/format-number.component.d.ts +1 -1
- package/dist/components/format/format.component.d.ts +2 -2
- package/dist/components/format/relative-time.component.d.ts +1 -1
- package/dist/components/input/input.component.d.ts +1 -1
- package/dist/components/link/base-link.d.ts +1 -1
- package/dist/components/loading-overlay/loading-overlay.component.d.ts +1 -1
- package/dist/components/menu/menu.component.d.ts +2 -2
- package/dist/components/slider/slider-handle.component.d.ts +2 -2
- package/dist/components/slider/slider.component.d.ts +1 -1
- package/dist/components/spinbox/spinbox.component.d.ts +1 -1
- package/dist/components/tooltip/tooltip.element.d.ts +2 -2
- package/dist/components.js +4284 -0
- package/dist/i18n/lib/translate.d.ts +5 -1
- package/dist/i18n.js +140 -0
- package/dist/main.js +1448 -0
- package/dist/vendor.js +3660 -0
- package/package.json +13 -22
- package/dist/cdk/drag-drop/drag.controller.js +0 -90
- package/dist/cdk/drag-drop/is-draggable.js +0 -42
- package/dist/cdk/main.js +0 -5
- package/dist/cdk/popover/popover-host.mixin.css.js +0 -3
- package/dist/cdk/popover/popover-host.mixin.js +0 -115
- package/dist/cdk/popover/popover.component.css.js +0 -3
- package/dist/cdk/popover/popover.component.js +0 -38
- package/dist/cdk/popover/popover.models.js +0 -32
- package/dist/cdk/popover/popover.utils.js +0 -48
- package/dist/components/accordion/accordion-header.component.css.js +0 -3
- package/dist/components/accordion/accordion-header.component.js +0 -69
- package/dist/components/accordion/accordion-panel.component.css.js +0 -3
- package/dist/components/accordion/accordion-panel.component.js +0 -29
- package/dist/components/accordion/accordion.component.css.js +0 -3
- package/dist/components/accordion/accordion.component.js +0 -83
- package/dist/components/area-header/area-header.component.css.js +0 -3
- package/dist/components/area-header/area-header.component.js +0 -37
- package/dist/components/area-header/area-header.models.js +0 -11
- package/dist/components/avatar/avatar.component.css.js +0 -3
- package/dist/components/avatar/avatar.component.js +0 -31
- package/dist/components/avatar/avatar.models.js +0 -12
- package/dist/components/avatar-group/avatar-group.component.css.js +0 -3
- package/dist/components/avatar-group/avatar-group.component.js +0 -31
- package/dist/components/badge/badge.component.css.js +0 -3
- package/dist/components/badge/badge.component.js +0 -32
- package/dist/components/badge/badge.models.js +0 -10
- package/dist/components/breadcrumbs/breadcrumbs-item.component.css.js +0 -3
- package/dist/components/breadcrumbs/breadcrumbs-item.component.js +0 -56
- package/dist/components/breadcrumbs/breadcrumbs.component.css.js +0 -3
- package/dist/components/breadcrumbs/breadcrumbs.component.js +0 -88
- package/dist/components/button/base-button.css.js +0 -3
- package/dist/components/button/base-button.js +0 -72
- package/dist/components/button/button.component.css.js +0 -3
- package/dist/components/button/button.component.js +0 -66
- package/dist/components/button/button.models.js +0 -16
- package/dist/components/button-group/button-group.component.css.js +0 -3
- package/dist/components/button-group/button-group.component.js +0 -47
- package/dist/components/card/card.component.css.js +0 -3
- package/dist/components/card/card.component.js +0 -30
- package/dist/components/checkbox/checkbox.component.css.js +0 -3
- package/dist/components/checkbox/checkbox.component.js +0 -57
- package/dist/components/checkbox-group/checkbox-group.component.css.js +0 -3
- package/dist/components/checkbox-group/checkbox-group.component.js +0 -54
- package/dist/components/checkbox-group/checkbox-group.models.js +0 -5
- package/dist/components/chip/chip.component.css.js +0 -3
- package/dist/components/chip/chip.component.js +0 -94
- package/dist/components/chip/chip.models.js +0 -10
- package/dist/components/circular-progress-bar/circular-progress-bar.component.css.js +0 -3
- package/dist/components/circular-progress-bar/circular-progress-bar.component.js +0 -123
- package/dist/components/circular-progress-bar/circular-progress-bar.models.js +0 -7
- package/dist/components/content-box/content-box.component.css.js +0 -3
- package/dist/components/content-box/content-box.component.js +0 -26
- package/dist/components/dropdown/dropdown.component.css.js +0 -3
- package/dist/components/dropdown/dropdown.component.js +0 -121
- package/dist/components/dropdown/dropdown.models.js +0 -8
- package/dist/components/form-field/form-field.element.css.js +0 -3
- package/dist/components/form-field/form-field.element.js +0 -62
- package/dist/components/format/format-bytes.component.js +0 -46
- package/dist/components/format/format-date.component.js +0 -36
- package/dist/components/format/format-number.component.js +0 -59
- package/dist/components/format/format.component.js +0 -34
- package/dist/components/format/relative-time.component.js +0 -80
- package/dist/components/header/header-actions.component.css.js +0 -3
- package/dist/components/header/header-actions.component.js +0 -22
- package/dist/components/header/header.component.css.js +0 -3
- package/dist/components/header/header.component.js +0 -58
- package/dist/components/headline/headline.component.css.js +0 -3
- package/dist/components/headline/headline.component.js +0 -31
- package/dist/components/headline/headline.models.js +0 -8
- package/dist/components/icon-button/icon-button.component.js +0 -34
- package/dist/components/inline-message/inline-message.component.css.js +0 -3
- package/dist/components/inline-message/inline-message.component.js +0 -39
- package/dist/components/inline-message/inline-message.models.js +0 -9
- package/dist/components/input/input.component.css.js +0 -3
- package/dist/components/input/input.component.js +0 -72
- package/dist/components/input/input.models.js +0 -7
- package/dist/components/line-clamp/line-clamp.component.css.js +0 -3
- package/dist/components/line-clamp/line-clamp.component.js +0 -37
- package/dist/components/link/base-link.js +0 -70
- package/dist/components/link/link.component.css.js +0 -3
- package/dist/components/link/link.component.js +0 -33
- package/dist/components/list/list-item.component.css.js +0 -3
- package/dist/components/list/list-item.component.js +0 -33
- package/dist/components/list/list.component.css.js +0 -3
- package/dist/components/list/list.component.js +0 -25
- package/dist/components/loading-overlay/loading-overlay.component.css.js +0 -3
- package/dist/components/loading-overlay/loading-overlay.component.js +0 -78
- package/dist/components/loading-spinner/loading-spinner.component.css.js +0 -3
- package/dist/components/loading-spinner/loading-spinner.component.js +0 -58
- package/dist/components/logo/logo.component.css.js +0 -3
- package/dist/components/logo/logo.component.js +0 -38
- package/dist/components/logo/logo.models.js +0 -9
- package/dist/components/main-menu/main-menu-button.component.js +0 -38
- package/dist/components/main-menu/main-menu-link.component.css.js +0 -3
- package/dist/components/main-menu/main-menu-link.component.js +0 -20
- package/dist/components/main-menu/main-menu-subtitle.component.js +0 -29
- package/dist/components/main-menu/main-menu-title.component.js +0 -29
- package/dist/components/main-menu/main-menu.component.css.js +0 -3
- package/dist/components/main-menu/main-menu.component.js +0 -82
- package/dist/components/main.js +0 -102
- package/dist/components/menu/menu-label.component.css.js +0 -3
- package/dist/components/menu/menu-label.component.js +0 -18
- package/dist/components/menu/menu.component.css.js +0 -3
- package/dist/components/menu/menu.component.js +0 -111
- package/dist/components/menu-item/menu-item.component.css.js +0 -3
- package/dist/components/menu-item/menu-item.component.js +0 -45
- package/dist/components/navigation-item/navigation-item.component.css.js +0 -3
- package/dist/components/navigation-item/navigation-item.component.js +0 -43
- package/dist/components/navigation-item/navigation-item.models.js +0 -6
- package/dist/components/option/option.component.css.js +0 -3
- package/dist/components/option/option.component.js +0 -37
- package/dist/components/page/page.component.css.js +0 -3
- package/dist/components/page/page.component.js +0 -53
- package/dist/components/page/page.models.js +0 -9
- package/dist/components/page-layout/page-layout.component.css.js +0 -3
- package/dist/components/page-layout/page-layout.component.js +0 -28
- package/dist/components/progress-bar/progress-bar.component.css.js +0 -3
- package/dist/components/progress-bar/progress-bar.component.js +0 -89
- package/dist/components/progress-bar/progress-bar.models.js +0 -7
- package/dist/components/radio-button/radio-button.component.css.js +0 -3
- package/dist/components/radio-button/radio-button.component.js +0 -39
- package/dist/components/radio-group/radio-group.component.css.js +0 -3
- package/dist/components/radio-group/radio-group.component.js +0 -24
- package/dist/components/radio-group/radio-group.models.js +0 -5
- package/dist/components/rail-navigation/rail-navigation.component.css.js +0 -3
- package/dist/components/rail-navigation/rail-navigation.component.js +0 -65
- package/dist/components/search-bar/search-bar.component.css.js +0 -3
- package/dist/components/search-bar/search-bar.component.js +0 -100
- package/dist/components/search-bar/search-bar.events.js +0 -7
- package/dist/components/search-bar/search-bar.models.js +0 -6
- package/dist/components/select/select.component.css.js +0 -3
- package/dist/components/select/select.component.js +0 -101
- package/dist/components/separator/separator.component.css.js +0 -3
- package/dist/components/separator/separator.component.js +0 -49
- package/dist/components/skeleton/skeleton.component.css.js +0 -3
- package/dist/components/skeleton/skeleton.component.js +0 -32
- package/dist/components/slider/slider-handle.component.css.js +0 -3
- package/dist/components/slider/slider-handle.component.js +0 -168
- package/dist/components/slider/slider-marks.component.css.js +0 -3
- package/dist/components/slider/slider-marks.component.js +0 -61
- package/dist/components/slider/slider.component.css.js +0 -3
- package/dist/components/slider/slider.component.js +0 -119
- package/dist/components/slider/slider.models.js +0 -17
- package/dist/components/spacer/spacer.component.css.js +0 -3
- package/dist/components/spacer/spacer.component.js +0 -39
- package/dist/components/spinbox/spinbox.component.css.js +0 -3
- package/dist/components/spinbox/spinbox.component.js +0 -94
- package/dist/components/stack/stack.component.css.js +0 -3
- package/dist/components/stack/stack.component.js +0 -45
- package/dist/components/stack/stack.models.js +0 -23
- package/dist/components/switch/switch.component.css.js +0 -3
- package/dist/components/switch/switch.component.js +0 -36
- package/dist/components/table/table-body.element.css.js +0 -3
- package/dist/components/table/table-body.element.js +0 -26
- package/dist/components/table/table-cell.element.css.js +0 -3
- package/dist/components/table/table-cell.element.js +0 -26
- package/dist/components/table/table-checkbox-cell.element.css.js +0 -3
- package/dist/components/table/table-checkbox-cell.element.js +0 -66
- package/dist/components/table/table-header-cell.element.css.js +0 -3
- package/dist/components/table/table-header-cell.element.js +0 -40
- package/dist/components/table/table-header.element.css.js +0 -3
- package/dist/components/table/table-header.element.js +0 -52
- package/dist/components/table/table-row.element.css.js +0 -3
- package/dist/components/table/table-row.element.js +0 -111
- package/dist/components/table/table.element.css.js +0 -3
- package/dist/components/table/table.element.js +0 -97
- package/dist/components/text/text.component.css.js +0 -3
- package/dist/components/text/text.component.js +0 -34
- package/dist/components/text/text.models.js +0 -13
- package/dist/components/title/title.component.css.js +0 -3
- package/dist/components/title/title.component.js +0 -31
- package/dist/components/title/title.models.js +0 -10
- package/dist/components/toast/toast.element.css.js +0 -3
- package/dist/components/toast/toast.element.js +0 -31
- package/dist/components/toast/toast.models.js +0 -5
- package/dist/components/toggle-button/toggle-button.component.css.js +0 -3
- package/dist/components/toggle-button/toggle-button.component.js +0 -52
- package/dist/components/tooltip/tooltip.element.css.js +0 -3
- package/dist/components/tooltip/tooltip.element.js +0 -120
- package/dist/components/tooltip/tooltip.models.js +0 -10
- package/dist/components/visually-hidden/visually-hidden.component.css.js +0 -3
- package/dist/components/visually-hidden/visually-hidden.component.js +0 -22
- package/dist/i18n/lib/config.js +0 -16
- package/dist/i18n/lib/format.js +0 -55
- package/dist/i18n/lib/is-localized.mixin.js +0 -41
- package/dist/i18n/lib/localization.js +0 -28
- package/dist/i18n/lib/translate.js +0 -18
- package/dist/i18n/main.js +0 -5
- package/dist/lib/controllers/focus-trap.controller.js +0 -55
- package/dist/lib/custom-element.css.js +0 -3
- package/dist/lib/custom-element.js +0 -27
- package/dist/lib/decorators/request-update-on-aria-change.js +0 -15
- package/dist/lib/directives/aria-boolean-attr.js +0 -9
- package/dist/lib/directives/optional-attr.js +0 -8
- package/dist/lib/directives/optional-slot.js +0 -14
- package/dist/lib/directives/slot-fallback.js +0 -16
- package/dist/lib/external/roving-tabindex.js +0 -386
- package/dist/lib/facade/checkbox-form-control.js +0 -78
- package/dist/lib/facade/checkbox-group-form-control.js +0 -109
- package/dist/lib/facade/option-control.js +0 -49
- package/dist/lib/facade/radio-group-form-control.js +0 -87
- package/dist/lib/facade/select-form-control.js +0 -108
- package/dist/lib/main.js +0 -30
- package/dist/lib/mixins/can-be-disabled.js +0 -60
- package/dist/lib/mixins/can-be-readonly.js +0 -33
- package/dist/lib/mixins/can-be-required.js +0 -33
- package/dist/lib/mixins/can-be-validated.js +0 -32
- package/dist/lib/mixins/dedupe-mixin.js +0 -23
- package/dist/lib/mixins/form-control.js +0 -61
- package/dist/lib/mixins/number-control.js +0 -63
- package/dist/lib/mixins/with-aria-controls.js +0 -43
- package/dist/lib/mixins/with-loading-state.js +0 -33
- package/dist/lib/utils/date.js +0 -10
- package/dist/lib/utils/dom.js +0 -48
- package/dist/lib/utils/get-unique-id.js +0 -15
- package/dist/lib/utils/keyboard-events.js +0 -42
- package/dist/lib/utils/object.js +0 -7
- package/dist/lib/utils/shared-intersection-observer.js +0 -37
- package/dist/lib/utils/shared-resize-observer.js +0 -38
- package/dist/lib/utils/string.js +0 -7
- /package/dist/{lib/main.css → styles.css} +0 -0
package/README.md
CHANGED
|
@@ -30,12 +30,6 @@ import '@odx/icons';
|
|
|
30
30
|
import '@odx/icons/core';
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
### Install all components
|
|
34
|
-
```js
|
|
35
|
-
// JS
|
|
36
|
-
import '@odx/foundation/components';
|
|
37
|
-
```
|
|
38
|
-
|
|
39
33
|
### Fonts and styles
|
|
40
34
|
|
|
41
35
|
```js
|
|
@@ -44,10 +38,16 @@ import '@odx/foundation/fonts';
|
|
|
44
38
|
import '@odx/foundation/styles';
|
|
45
39
|
|
|
46
40
|
// CSS
|
|
47
|
-
@import '@odx/foundation/fonts.css';
|
|
41
|
+
@import '@odx/foundation/assets/fonts.css';
|
|
48
42
|
@import '@odx/foundation/styles.css';
|
|
49
43
|
```
|
|
50
44
|
|
|
45
|
+
### Install all components
|
|
46
|
+
```js
|
|
47
|
+
// JS
|
|
48
|
+
import '@odx/foundation/components';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
51
|
## Documentation
|
|
52
52
|
|
|
53
53
|
For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://odx.draeger.com" target="_blank" rel="noopener">**documentation**</a>.
|
package/dist/cdk.js
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { dedupeMixin, createOptions, toPx, waitForAnimations, findClosestDocument, createMutationObserver, customElement, CustomElement } from '@odx/foundation';
|
|
2
|
+
import { property, state } from 'lit/decorators.js';
|
|
3
|
+
import { m as minBy, a as computePosition, o as offset, s as shift, f as flip, b as size, d as arrow, h as hide, e as autoUpdate } from './vendor.js';
|
|
4
|
+
import { isServer, unsafeCSS, html } from 'lit';
|
|
5
|
+
import { when } from 'lit/directives/when.js';
|
|
6
|
+
|
|
7
|
+
var __defProp$2 = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
const IS_DRAG_ACTIVE_ATTRIBUTE = "odx-drag-active";
|
|
18
|
+
function isDraggableElement(element) {
|
|
19
|
+
if (element instanceof HTMLElement) {
|
|
20
|
+
return "isDragActive" in element;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
const IsDraggable = dedupeMixin((superClass) => {
|
|
25
|
+
class IsDraggableElement extends superClass {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.dragDisabled = false;
|
|
29
|
+
}
|
|
30
|
+
get isDragActive() {
|
|
31
|
+
return this.hasAttribute(IS_DRAG_ACTIVE_ATTRIBUTE);
|
|
32
|
+
}
|
|
33
|
+
dragStart() {
|
|
34
|
+
this.toggleAttribute(IS_DRAG_ACTIVE_ATTRIBUTE, true);
|
|
35
|
+
}
|
|
36
|
+
afterDragEnd() {
|
|
37
|
+
this.toggleAttribute(IS_DRAG_ACTIVE_ATTRIBUTE, false);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
__decorateClass$2([
|
|
41
|
+
property({ type: Boolean })
|
|
42
|
+
], IsDraggableElement.prototype, "dragDisabled", 2);
|
|
43
|
+
return IsDraggableElement;
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const DragControllerOptions = createOptions({
|
|
47
|
+
getDraggableElements: () => []
|
|
48
|
+
});
|
|
49
|
+
class DragController {
|
|
50
|
+
#host;
|
|
51
|
+
#options;
|
|
52
|
+
#dragTargets = /* @__PURE__ */ new WeakSet();
|
|
53
|
+
#listeners = /* @__PURE__ */ new Map();
|
|
54
|
+
get draggableElements() {
|
|
55
|
+
return this.#options.getDraggableElements().filter((element) => !element.dragDisabled);
|
|
56
|
+
}
|
|
57
|
+
get container() {
|
|
58
|
+
return this.#options.getContainer?.() ?? this.#host;
|
|
59
|
+
}
|
|
60
|
+
constructor(host, options) {
|
|
61
|
+
this.#host = host;
|
|
62
|
+
this.#options = DragControllerOptions(options);
|
|
63
|
+
this.#host.addController(this);
|
|
64
|
+
}
|
|
65
|
+
hostConnected() {
|
|
66
|
+
this.#host.style.touchAction = "none";
|
|
67
|
+
}
|
|
68
|
+
hostDisconnected() {
|
|
69
|
+
this.#host.style.touchAction = "";
|
|
70
|
+
for (const removeListener of this.#listeners.values()) {
|
|
71
|
+
removeListener();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
hostUpdated() {
|
|
75
|
+
this.#dragTargets = new WeakSet(this.draggableElements);
|
|
76
|
+
this.#host.removeEventListener("pointerdown", this.#handleDragStart);
|
|
77
|
+
this.#host.addEventListener("pointerdown", this.#handleDragStart);
|
|
78
|
+
}
|
|
79
|
+
isDraggable(element) {
|
|
80
|
+
return isDraggableElement(element) && this.#dragTargets.has(element);
|
|
81
|
+
}
|
|
82
|
+
#handleDragStart = async (event) => {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
event.stopPropagation();
|
|
85
|
+
const target = this.#getDragTarget(event);
|
|
86
|
+
if (!target) return;
|
|
87
|
+
const onPointerMove = (event2) => this.#handleDragMove(event2, target);
|
|
88
|
+
const onPointerUp = (event2) => this.#handleDragEnd(event2, target);
|
|
89
|
+
target.beforeDragStart?.({ event, position: this.#calculatePosition(event) });
|
|
90
|
+
this.#host.setPointerCapture(event.pointerId);
|
|
91
|
+
this.#host.addEventListener("pointermove", onPointerMove);
|
|
92
|
+
this.#host.addEventListener("pointerup", onPointerUp, { once: true });
|
|
93
|
+
this.#listeners.set(target, () => {
|
|
94
|
+
this.#host.removeEventListener("pointermove", onPointerMove);
|
|
95
|
+
this.#host.removeEventListener("pointerup", onPointerUp);
|
|
96
|
+
});
|
|
97
|
+
await 0;
|
|
98
|
+
target.dragStart?.({ event, position: this.#calculatePosition(event) });
|
|
99
|
+
};
|
|
100
|
+
#handleDragMove = (event, target) => {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
event.stopPropagation();
|
|
103
|
+
target.dragMove?.({ event, position: this.#calculatePosition(event) });
|
|
104
|
+
};
|
|
105
|
+
#handleDragEnd = async (event, target) => {
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
event.stopPropagation();
|
|
108
|
+
target.dragEnd?.({ event, position: this.#calculatePosition(event) });
|
|
109
|
+
this.#host.releasePointerCapture(event.pointerId);
|
|
110
|
+
this.#listeners.get(target)?.();
|
|
111
|
+
this.#listeners.delete(target);
|
|
112
|
+
this.#host.requestUpdate();
|
|
113
|
+
await this.#host.updateComplete;
|
|
114
|
+
target.afterDragEnd?.({ event, position: this.#calculatePosition(event) });
|
|
115
|
+
};
|
|
116
|
+
#calculatePosition(event) {
|
|
117
|
+
const { left, top, width } = this.container.getBoundingClientRect();
|
|
118
|
+
return { x: (event.clientX - left) / width * 100, y: (event.clientY - top) / width * 100 };
|
|
119
|
+
}
|
|
120
|
+
#getDragTarget(event) {
|
|
121
|
+
if (event.target === this.#host) {
|
|
122
|
+
return minBy(this.draggableElements, (element) => element.getDistance?.(this.container, event) ?? Number.MAX_SAFE_INTEGER) ?? null;
|
|
123
|
+
}
|
|
124
|
+
if (this.isDraggable(event.target)) {
|
|
125
|
+
return event.target;
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const styles$1 = ":host{--_popover-transition: var(--odx-popover-transition, var(--odx-motion-duration-default));--_popover-offset: var(--odx-size-50);background-color:transparent;opacity:0;padding:var(--_popover-offset);position-try:flip-block,flip-inline,flip-inline flip-block;transform:translate(var(--_popover-transition-offset-x),var(--_popover-transition-offset-y));transition:opacity var(--_popover-transition),transform var(--_popover-transition) allow-discrete,overlay var(--_popover-transition) allow-discrete,display var(--_popover-transition) allow-discrete;max-block-size:var(--_popover-max-block-size, 100%);max-inline-size:var(--_popover-max-inline-size, 100%);margin:0;top:var(--_popover-position-y);left:var(--_popover-position-x)}:host(:popover-open){display:flex;opacity:1;transform:translate(0);@starting-style{opacity:0;transform:translate(var(--_popover-transition-offset-x),var(--_popover-transition-offset-y))}}:host,:host([placement^=\"top\"]){--_popover-transition-offset-x: 0;--_popover-transition-offset-y: calc(-1 * var(--_popover-offset))}:host([placement^=\"right\"]){--_popover-transition-offset-x: var(--_popover-offset);--_popover-transition-offset-y: 0}:host([placement^=\"bottom\"]){--_popover-transition-offset-x: 0;--_popover-transition-offset-y: var(--_popover-offset)}:host([placement^=\"left\"]){--_popover-transition-offset-x: calc(-1 * var(--_popover-offset));--_popover-transition-offset-y: 0}";
|
|
132
|
+
|
|
133
|
+
const PopoverPlacement = {
|
|
134
|
+
TOP: "top",
|
|
135
|
+
TOP_START: "top-start",
|
|
136
|
+
TOP_END: "top-end",
|
|
137
|
+
RIGHT: "right",
|
|
138
|
+
RIGHT_START: "right-start",
|
|
139
|
+
RIGHT_END: "right-end",
|
|
140
|
+
BOTTOM: "bottom",
|
|
141
|
+
BOTTOM_START: "bottom-start",
|
|
142
|
+
BOTTOM_END: "bottom-end",
|
|
143
|
+
LEFT: "left",
|
|
144
|
+
LEFT_START: "left-start",
|
|
145
|
+
LEFT_END: "left-end"
|
|
146
|
+
};
|
|
147
|
+
const PopoverPlacementOptions = createOptions({
|
|
148
|
+
placement: PopoverPlacement.BOTTOM,
|
|
149
|
+
enableFallback: true,
|
|
150
|
+
fallbackAxisSideDirection: "end",
|
|
151
|
+
matchReferenceWidth: false,
|
|
152
|
+
offset: 0,
|
|
153
|
+
outerPadding: 24
|
|
154
|
+
});
|
|
155
|
+
const PopoverSide = {
|
|
156
|
+
TOP: PopoverPlacement.TOP,
|
|
157
|
+
RIGHT: PopoverPlacement.RIGHT,
|
|
158
|
+
BOTTOM: PopoverPlacement.BOTTOM,
|
|
159
|
+
LEFT: PopoverPlacement.LEFT
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
function getPopoverSide(placement) {
|
|
163
|
+
return placement.split("-")[0];
|
|
164
|
+
}
|
|
165
|
+
async function computePopoverPlacement(referenceElement, floatingElement, options) {
|
|
166
|
+
const { arrowElement, placement, offset: offset$1, matchReferenceWidth, enableFallback, fallbackAxisSideDirection, minHeight, outerPadding } = options;
|
|
167
|
+
const arrowSize = arrowElement?.offsetWidth ?? 0;
|
|
168
|
+
const arrowMiddleware = arrowElement ? arrow({ element: arrowElement, padding: arrowSize * 3 }) : void 0;
|
|
169
|
+
const flipMiddleWare = enableFallback ? flip({ fallbackAxisSideDirection }) : void 0;
|
|
170
|
+
const result = await computePosition(referenceElement, floatingElement, {
|
|
171
|
+
placement,
|
|
172
|
+
middleware: [
|
|
173
|
+
offset(offset$1 + arrowSize / 2),
|
|
174
|
+
shift({ padding: 0 }),
|
|
175
|
+
flipMiddleWare,
|
|
176
|
+
size({
|
|
177
|
+
padding: 0,
|
|
178
|
+
apply: ({ availableHeight, availableWidth, rects }) => {
|
|
179
|
+
floatingElement.style.setProperty("--_popover-min-inline-size", matchReferenceWidth ? toPx(rects.reference.width) : null);
|
|
180
|
+
floatingElement.style.setProperty("--_popover-max-inline-size", toPx(availableWidth));
|
|
181
|
+
floatingElement.style.setProperty("--_popover-min-block-size", minHeight ? toPx(Math.min(availableHeight, minHeight)) : null);
|
|
182
|
+
floatingElement.style.setProperty("--_popover-max-block-size", toPx(availableHeight));
|
|
183
|
+
}
|
|
184
|
+
}),
|
|
185
|
+
arrowMiddleware,
|
|
186
|
+
hide()
|
|
187
|
+
]
|
|
188
|
+
});
|
|
189
|
+
let arrowPositionX = null;
|
|
190
|
+
let arrowPositionY = null;
|
|
191
|
+
if (arrowElement && result.middlewareData.arrow) {
|
|
192
|
+
const popoverSide = getPopoverSide(result.placement);
|
|
193
|
+
const { arrow: arrow2 } = result.middlewareData;
|
|
194
|
+
const arrowOffsetX = popoverSide === PopoverSide.LEFT ? floatingElement.offsetWidth - outerPadding - 0.5 * arrowSize : outerPadding - 0.5 * arrowSize;
|
|
195
|
+
const arrowOffsetY = popoverSide === PopoverSide.TOP ? floatingElement.offsetHeight - outerPadding - 0.5 * arrowSize : outerPadding - 0.5 * arrowSize;
|
|
196
|
+
arrowPositionX = arrow2.x ?? arrowOffsetX;
|
|
197
|
+
arrowPositionY = arrow2.y ?? arrowOffsetY;
|
|
198
|
+
}
|
|
199
|
+
floatingElement.style.setProperty("--_popover-position-x", toPx(result.x));
|
|
200
|
+
floatingElement.style.setProperty("--_popover-position-y", toPx(result.y));
|
|
201
|
+
floatingElement.style.setProperty("--_popover-arrow-position-x", toPx(arrowPositionX));
|
|
202
|
+
floatingElement.style.setProperty("--_popover-arrow-position-y", toPx(arrowPositionY));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
var __defProp$1 = Object.defineProperty;
|
|
206
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
207
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
208
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
209
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
210
|
+
if (decorator = decorators[i])
|
|
211
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
212
|
+
if (kind && result) __defProp$1(target, key, result);
|
|
213
|
+
return result;
|
|
214
|
+
};
|
|
215
|
+
const PopoverHost = dedupeMixin((superClass) => {
|
|
216
|
+
class PopoverHostClass extends superClass {
|
|
217
|
+
// biome-ignore lint/suspicious/noExplicitAny: This is a mixin
|
|
218
|
+
constructor(...args) {
|
|
219
|
+
super(...args);
|
|
220
|
+
this.isOpen = false;
|
|
221
|
+
this.referenceElement = null;
|
|
222
|
+
this.anchor = "";
|
|
223
|
+
this.#handleToggle = async ({ newState }) => {
|
|
224
|
+
this.isOpen = newState === "open";
|
|
225
|
+
if (this.isOpen) {
|
|
226
|
+
this.onBeforePopoverShow?.();
|
|
227
|
+
await waitForAnimations(this);
|
|
228
|
+
this.onPopoverShow?.();
|
|
229
|
+
} else {
|
|
230
|
+
this.onBeforePopoverHide?.();
|
|
231
|
+
await waitForAnimations(this);
|
|
232
|
+
this.onPopoverHide?.();
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
if (!isServer) {
|
|
236
|
+
this.addEventListener("toggle", this.#handleToggle);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
static {
|
|
240
|
+
this.styles = [superClass.styles ?? [], unsafeCSS(styles$1)];
|
|
241
|
+
}
|
|
242
|
+
#observer;
|
|
243
|
+
connectedCallback() {
|
|
244
|
+
super.connectedCallback?.();
|
|
245
|
+
this.popover ??= "auto";
|
|
246
|
+
this.#connectObserver();
|
|
247
|
+
}
|
|
248
|
+
disconnectedCallback() {
|
|
249
|
+
super.disconnectedCallback?.();
|
|
250
|
+
this.#disconnectObserver();
|
|
251
|
+
}
|
|
252
|
+
mountPopover(referenceElement) {
|
|
253
|
+
if (this.referenceElement && this.referenceElement !== referenceElement) {
|
|
254
|
+
this.unmountPopover(this.referenceElement);
|
|
255
|
+
}
|
|
256
|
+
if (!referenceElement) {
|
|
257
|
+
this.referenceElement = null;
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
this.referenceElement = referenceElement;
|
|
261
|
+
autoUpdate(this.referenceElement, this, () => computePopoverPlacement(this.referenceElement, this, PopoverPlacementOptions()));
|
|
262
|
+
}
|
|
263
|
+
unmountPopover(referenceElement) {
|
|
264
|
+
this.hidePopover();
|
|
265
|
+
}
|
|
266
|
+
isPopoverOpen() {
|
|
267
|
+
return this.isOpen || this.matches(":popover-open");
|
|
268
|
+
}
|
|
269
|
+
togglePopover(force) {
|
|
270
|
+
const isOpen = force ?? !this.isPopoverOpen();
|
|
271
|
+
if (isOpen) {
|
|
272
|
+
this.showPopover();
|
|
273
|
+
} else {
|
|
274
|
+
this.hidePopover();
|
|
275
|
+
}
|
|
276
|
+
return isOpen;
|
|
277
|
+
}
|
|
278
|
+
#findReferenceElement(anchor) {
|
|
279
|
+
return findClosestDocument(this)?.getElementById(anchor);
|
|
280
|
+
}
|
|
281
|
+
#connectObserver() {
|
|
282
|
+
this.#disconnectObserver();
|
|
283
|
+
this.mountPopover(this.#findReferenceElement(this.anchor));
|
|
284
|
+
this.#observer = createMutationObserver(() => {
|
|
285
|
+
const referenceElement = this.anchor ? this.#findReferenceElement(this.anchor) : null;
|
|
286
|
+
if (this.referenceElement === referenceElement) return;
|
|
287
|
+
this.mountPopover(referenceElement);
|
|
288
|
+
});
|
|
289
|
+
this.#observer.observe(document.documentElement, { subtree: true, attributeFilter: ["id", "anchor"] });
|
|
290
|
+
}
|
|
291
|
+
#disconnectObserver() {
|
|
292
|
+
this.#observer?.disconnect();
|
|
293
|
+
this.#observer = void 0;
|
|
294
|
+
}
|
|
295
|
+
#handleToggle;
|
|
296
|
+
}
|
|
297
|
+
__decorateClass$1([
|
|
298
|
+
state()
|
|
299
|
+
], PopoverHostClass.prototype, "isOpen", 2);
|
|
300
|
+
__decorateClass$1([
|
|
301
|
+
state()
|
|
302
|
+
], PopoverHostClass.prototype, "referenceElement", 2);
|
|
303
|
+
__decorateClass$1([
|
|
304
|
+
property({ reflect: true })
|
|
305
|
+
], PopoverHostClass.prototype, "anchor", 2);
|
|
306
|
+
__decorateClass$1([
|
|
307
|
+
property({ reflect: true })
|
|
308
|
+
], PopoverHostClass.prototype, "placement", 2);
|
|
309
|
+
return PopoverHostClass;
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
const styles = ":host{--color-background: transparent;--color-foreground: inherit;--min-block-size: inherit;--max-block-size: 100%;--min-inline-size: inherit;--max-inline-size: inherit;--_arrow-size: var(--odx-size-50);--_outer-padding: var(--odx-size-75);--_shadow: var(--odx-popover-shadow, var(--odx-shadow-level-1));--_border-radius: var(--odx-popover-border-radius, var(--odx-border-radius-controls));display:flex;background-color:transparent}:host::part(arrow),:host::part(content){background-color:var(--color-background)}:host::part(content){display:flex;flex-direction:column;position:relative;inset-block-start:0!important;inset-inline-start:0!important;block-size:fit-content;min-block-size:var(--min-block-size);max-block-size:var(--max-block-size);min-inline-size:var(--min-inline-size);max-inline-size:var(--max-inline-size);box-shadow:var(--_shadow);color:var(--color-foreground);padding:var(--_outer-padding);border-radius:var(--_border-radius);z-index:2;overflow:auto}:host::part(arrow){border-radius:var(--odx-border-radius-sm);position:absolute;inline-size:var(--_arrow-size);block-size:var(--_arrow-size);z-index:3;inset:0;transform:translate3d(var(--_popover-arrow-position-x),var(--_popover-arrow-position-y),0) rotate(45deg)}";
|
|
313
|
+
|
|
314
|
+
var __defProp = Object.defineProperty;
|
|
315
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
316
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
317
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
318
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
319
|
+
if (decorator = decorators[i])
|
|
320
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
321
|
+
if (kind && result) __defProp(target, key, result);
|
|
322
|
+
return result;
|
|
323
|
+
};
|
|
324
|
+
let OdxPopoverComponent = class extends CustomElement {
|
|
325
|
+
constructor() {
|
|
326
|
+
super(...arguments);
|
|
327
|
+
this.showArrow = false;
|
|
328
|
+
}
|
|
329
|
+
render() {
|
|
330
|
+
return html`
|
|
331
|
+
<div part="content">
|
|
332
|
+
<slot></slot>
|
|
333
|
+
</div>
|
|
334
|
+
${when(this.showArrow, () => html`<div part="arrow"></div>`)}
|
|
335
|
+
`;
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
__decorateClass([
|
|
339
|
+
property({ type: Boolean, reflect: true })
|
|
340
|
+
], OdxPopoverComponent.prototype, "showArrow", 2);
|
|
341
|
+
OdxPopoverComponent = __decorateClass([
|
|
342
|
+
customElement("odx-popover", [styles])
|
|
343
|
+
], OdxPopoverComponent);
|
|
344
|
+
|
|
345
|
+
export { DragController, IS_DRAG_ACTIVE_ATTRIBUTE, IsDraggable, OdxPopoverComponent, PopoverHost, PopoverPlacement, PopoverPlacementOptions, PopoverSide, isDraggableElement };
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
'odx-accordion-header': OdxAccordionHeaderComponent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
declare const OdxAccordionHeaderComponent_base: import('
|
|
8
|
+
declare const OdxAccordionHeaderComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<WithAriaControls> & typeof CustomElement;
|
|
9
9
|
export declare class OdxAccordionHeaderComponent extends OdxAccordionHeaderComponent_base {
|
|
10
10
|
set expanded(value: boolean);
|
|
11
11
|
get expanded(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateResult, nothing } from 'lit';
|
|
2
2
|
import { BaseLink } from '../link/index.js';
|
|
3
|
-
declare const BaseButtonComponent_base: import('
|
|
3
|
+
declare const BaseButtonComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).HasLoadingState> & typeof BaseLink;
|
|
4
4
|
/**
|
|
5
5
|
* A button is clickable text or an icon that triggers an action on the page or in the background.
|
|
6
6
|
* Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
'odx-button': OdxButtonComponent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
declare const OdxButtonComponent_base: import('
|
|
8
|
+
declare const OdxButtonComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).HasLoadingState> & typeof BaseButtonComponent;
|
|
9
9
|
/**
|
|
10
10
|
* A button is clickable text or an icon that triggers an action on the page or in the background.
|
|
11
11
|
* Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
'odx-button-group': OdxButtonGroupComponent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
declare const OdxButtonGroupComponent_base: import('
|
|
8
|
+
declare const OdxButtonGroupComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
9
|
export declare class OdxButtonGroupComponent extends OdxButtonGroupComponent_base {
|
|
10
10
|
block: boolean;
|
|
11
11
|
connected: boolean;
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
'odx-card': OdxCardComponent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
declare const OdxCardComponent_base: import('
|
|
8
|
+
declare const OdxCardComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
9
|
export declare class OdxCardComponent extends OdxCardComponent_base {
|
|
10
10
|
protected render(): TemplateResult;
|
|
11
11
|
}
|
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
'odx-chip': OdxChipComponent;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
declare const OdxChipComponent_base: import('
|
|
9
|
+
declare const OdxChipComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
10
10
|
export declare class OdxChipComponent extends OdxChipComponent_base {
|
|
11
11
|
#private;
|
|
12
12
|
protected actionElement?: HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanBeDisabled, CustomElement } from '@odx/foundation';
|
|
2
|
-
import { OdxPopoverComponent, PopoverHost } from '
|
|
2
|
+
import { OdxPopoverComponent, PopoverHost } from '../../cdk/main.js';
|
|
3
3
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
4
|
import { DropdownPlacement } from './dropdown.models.js';
|
|
5
5
|
declare global {
|
|
@@ -7,7 +7,7 @@ declare global {
|
|
|
7
7
|
'odx-dropdown': OdxDropdownComponent;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
declare const OdxDropdownComponent_base: import('
|
|
10
|
+
declare const OdxDropdownComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<PopoverHost> & import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
11
11
|
export declare class OdxDropdownComponent extends OdxDropdownComponent_base {
|
|
12
12
|
#private;
|
|
13
13
|
protected popoverElement: OdxPopoverComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormatComponent } from './format.component.js';
|
|
2
|
-
import { NumberFormatOptions, SingleUnitIdentifier } from '
|
|
2
|
+
import { NumberFormatOptions, SingleUnitIdentifier } from '../../i18n/main.js';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-format-number': OdxFormatNumberComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { IsLocalized } from '
|
|
2
|
+
import { IsLocalized } from '../../i18n/main.js';
|
|
3
3
|
import { TemplateResult } from 'lit';
|
|
4
|
-
declare const FormatComponent_base: import('
|
|
4
|
+
declare const FormatComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<IsLocalized> & typeof CustomElement;
|
|
5
5
|
export declare abstract class FormatComponent<T> extends FormatComponent_base {
|
|
6
6
|
static styles: import('lit', { with: { "resolution-mode": "import" } }).CSSResult[];
|
|
7
7
|
abstract value?: T | null;
|
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
'odx-input': OdxInputComponent;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
declare const OdxInputComponent_base: import('
|
|
9
|
+
declare const OdxInputComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).IsFormControl<string>> & typeof CustomElement;
|
|
10
10
|
export declare class OdxInputComponent extends OdxInputComponent_base {
|
|
11
11
|
#private;
|
|
12
12
|
static readonly formAssociated = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ARIARole, CanBeDisabled, CustomElement } from '@odx/foundation';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
|
-
declare const BaseLink_base: import('
|
|
3
|
+
declare const BaseLink_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
4
4
|
export declare class BaseLink extends BaseLink_base {
|
|
5
5
|
static shadowRootOptions: ShadowRootInit;
|
|
6
6
|
readonly interactiveElement: HTMLButtonElement | HTMLAnchorElement;
|
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export declare const LOADING_OVERLAY_HOST_DIRECTIVE = "odx-loading-overlay-host";
|
|
9
|
-
declare const OdxLoadingOverlayComponent_base: import('
|
|
9
|
+
declare const OdxLoadingOverlayComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).HasLoadingState> & typeof CustomElement;
|
|
10
10
|
export declare class OdxLoadingOverlayComponent extends OdxLoadingOverlayComponent_base {
|
|
11
11
|
#private;
|
|
12
12
|
private readonly overlay;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { PopoverHost } from '
|
|
2
|
+
import { PopoverHost } from '../../cdk/main.js';
|
|
3
3
|
import { TemplateResult } from 'lit';
|
|
4
4
|
import { OdxMenuItemComponent } from '../menu-item/index.js';
|
|
5
5
|
declare global {
|
|
@@ -7,7 +7,7 @@ declare global {
|
|
|
7
7
|
'odx-menu': OdxMenuComponent;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
declare const OdxMenuComponent_base: import('
|
|
10
|
+
declare const OdxMenuComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<PopoverHost> & typeof CustomElement;
|
|
11
11
|
export declare class OdxMenuComponent extends OdxMenuComponent_base {
|
|
12
12
|
#private;
|
|
13
13
|
getItems(): OdxMenuItemComponent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { DragEvent } from '
|
|
2
|
+
import { DragEvent } from '../../cdk/main.js';
|
|
3
3
|
import { PropertyValueMap, TemplateResult } from 'lit';
|
|
4
4
|
import { SliderTrackVisibility } from './slider.models.js';
|
|
5
5
|
declare global {
|
|
@@ -7,7 +7,7 @@ declare global {
|
|
|
7
7
|
'odx-slider-handle': OdxSliderHandleComponent;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
declare const OdxSliderHandleComponent_base: import('
|
|
10
|
+
declare const OdxSliderHandleComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../cdk/main.js').DraggableElement> & import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).IsNumberControl> & typeof CustomElement;
|
|
11
11
|
export declare class OdxSliderHandleComponent extends OdxSliderHandleComponent_base {
|
|
12
12
|
#private;
|
|
13
13
|
private context;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { DragController } from '
|
|
2
|
+
import { DragController } from '../../cdk/main.js';
|
|
3
3
|
import { TemplateResult } from 'lit';
|
|
4
4
|
import { OdxSliderHandleComponent } from './slider-handle.component.js';
|
|
5
5
|
import { SliderLabelVisibility } from './slider.models.js';
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
'odx-spinbox': OdxSpinboxComponent;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
declare const OdxSpinboxComponent_base: import('
|
|
8
|
+
declare const OdxSpinboxComponent_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<CanBeDisabled> & typeof CustomElement;
|
|
9
9
|
export declare class OdxSpinboxComponent extends OdxSpinboxComponent_base {
|
|
10
10
|
#private;
|
|
11
11
|
static shadowRootOptions: ShadowRootInit;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CustomElement } from '@odx/foundation';
|
|
2
|
-
import { PopoverHost } from '
|
|
2
|
+
import { PopoverHost } from '../../cdk/main.js';
|
|
3
3
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
6
|
'odx-tooltip': OdxTooltipElement;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
declare const OdxTooltipElement_base: import('
|
|
9
|
+
declare const OdxTooltipElement_base: import('../../dist/lib/main.js', { with: { "resolution-mode": "import" } }).Constructor<PopoverHost> & typeof CustomElement;
|
|
10
10
|
export declare class OdxTooltipElement extends OdxTooltipElement_base {
|
|
11
11
|
#private;
|
|
12
12
|
placement: "top";
|