@odx/foundation 1.0.0-beta.9 → 1.0.0-beta.90
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 +11 -1
- package/dist/components/accordion-item/accordion-item.d.ts +16 -0
- package/dist/components/action-button/action-button.d.ts +27 -0
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +3 -3
- package/dist/components/area-header/area-header.d.ts +11 -4
- package/dist/components/avatar/avatar.d.ts +28 -6
- package/dist/components/avatar-group/avatar-group.d.ts +3 -3
- package/dist/components/badge/badge.d.ts +14 -5
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -2
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/button/button.d.ts +31 -20
- package/dist/components/button-group/button-group.d.ts +7 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -3
- package/dist/components/chip/chip.d.ts +14 -5
- package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +12 -5
- package/dist/components/combobox/autocomplete.d.ts +23 -0
- package/dist/components/dropdown/dropdown.d.ts +10 -9
- package/dist/components/format/format-bytes.d.ts +1 -1
- package/dist/components/format/format-number.d.ts +1 -1
- package/dist/components/format/relative-time.d.ts +2 -2
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/headline/headline.d.ts +14 -5
- package/dist/components/highlight/highlight.d.ts +14 -5
- package/dist/components/icon-button/icon-button.d.ts +4 -15
- package/dist/components/image/image.d.ts +4 -4
- package/dist/components/inline-message/inline-message.d.ts +15 -5
- package/dist/components/input/input.d.ts +15 -8
- package/dist/components/kpi/kpi.d.ts +36 -0
- package/dist/components/line-clamp/line-clamp.d.ts +2 -2
- package/dist/components/link/link.d.ts +3 -3
- package/dist/components/list/list.d.ts +3 -0
- package/dist/components/{list → list-item}/list-item.d.ts +7 -6
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +2 -3
- package/dist/components/loading-spinner/loading-spinner.d.ts +1 -2
- package/dist/components/logo/logo.d.ts +11 -3
- package/dist/components/main-menu/index.d.ts +1 -1
- package/dist/components/main-menu/main-menu-link.d.ts +2 -2
- package/dist/components/main-menu/main-menu.d.ts +0 -1
- package/dist/components/main.d.ts +62 -54
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/menu.d.ts +4 -7
- package/dist/components/menu-item/menu-item.d.ts +5 -6
- package/dist/components/modal/modal.d.ts +8 -6
- package/dist/components/navigation-item/navigation-item.d.ts +15 -7
- package/dist/components/option/option.d.ts +0 -1
- package/dist/components/page/page.d.ts +16 -6
- package/dist/components/popover/popover-host.d.ts +34 -0
- package/dist/components/popover/popover-observer.d.ts +11 -0
- package/dist/{cdk → components}/popover/popover.d.ts +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +12 -6
- package/dist/components/radio-group/radio-group.d.ts +8 -3
- package/dist/components/search-bar/index.d.ts +0 -1
- package/dist/components/search-bar/search-bar.d.ts +9 -3
- package/dist/components/select/select.d.ts +12 -7
- package/dist/components/separator/separator.d.ts +9 -4
- package/dist/components/skeleton/skeleton.d.ts +21 -6
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/slider-handle.d.ts +5 -6
- package/dist/components/slider/slider-marks.d.ts +1 -1
- package/dist/components/slider/slider.d.ts +2 -3
- package/dist/components/slider/slider.models.d.ts +3 -2
- package/dist/components/spinbox/spinbox.d.ts +13 -11
- package/dist/components/stack/stack.d.ts +26 -6
- package/dist/components/status/status.d.ts +23 -0
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/table-header.d.ts +1 -1
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/text/text.d.ts +23 -4
- package/dist/components/title/title.d.ts +14 -5
- package/dist/components/toast/toast.d.ts +14 -3
- package/dist/components/toggle-button/toggle-button.d.ts +1 -4
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +10 -0
- package/dist/components/toggle-content/toggle-content.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +24 -8
- package/dist/components.js +2886 -3631
- package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +2 -2
- package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +1 -1
- package/dist/i18n/main.d.ts +6 -6
- package/dist/i18n/{lib/translate.d.ts → translate.d.ts} +1 -1
- package/dist/i18n.js +11 -18
- package/dist/lib/{facade → control}/checkbox-form-control.d.ts +4 -4
- package/dist/lib/control/checkbox-group-form-control.d.ts +22 -0
- package/dist/lib/control/form-control.d.ts +29 -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 +22 -0
- package/dist/lib/controllers/active-descendants-controller.d.ts +29 -0
- package/dist/{cdk/drag-drop → lib/controllers}/drag.controller.d.ts +2 -1
- package/dist/lib/controllers/expandable-controller.d.ts +1 -2
- package/dist/lib/custom-element.d.ts +12 -5
- package/dist/lib/interactive/interactive-element.d.ts +23 -0
- package/dist/lib/interactive/interactive-link.d.ts +21 -0
- package/dist/lib/main.d.ts +20 -25
- package/dist/lib/mixins/can-be-disabled.d.ts +1 -9
- package/dist/lib/mixins/can-be-expanded.d.ts +5 -7
- package/dist/lib/mixins/is-draggable.d.ts +16 -0
- package/dist/{cdk/drag-drop/drag-events.d.ts → lib/models/drag-event.d.ts} +1 -1
- package/dist/lib/models/placement.d.ts +17 -0
- package/dist/lib/models/shape.d.ts +7 -0
- package/dist/lib/models/size.d.ts +11 -0
- package/dist/lib/models/variant.d.ts +12 -0
- package/dist/lib/utils/compute-popover-placement.d.ts +14 -0
- package/dist/lib/utils/dom.d.ts +25 -15
- package/dist/lib/utils/get-unique-id.d.ts +6 -23
- package/dist/lib/utils/lit.d.ts +1 -3
- package/dist/lib/utils/shared-resize-observer.d.ts +0 -7
- package/dist/lib/utils/{a11y.d.ts → types.d.ts} +3 -6
- package/dist/loader.js +6 -11
- package/dist/main.js +901 -867
- package/dist/styles.css +1 -1
- package/dist/vendor.js +1982 -0
- package/package.json +47 -27
- package/dist/cdk/drag-drop/is-draggable.d.ts +0 -18
- package/dist/cdk/main.d.ts +0 -7
- package/dist/cdk/popover/popover-host.d.ts +0 -20
- 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 -357
- 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/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/button/base-button.d.ts +0 -30
- package/dist/components/button/button.models.d.ts +0 -26
- package/dist/components/button/index.d.ts +0 -4
- 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.models.d.ts +0 -7
- package/dist/components/circular-progress-bar/index.d.ts +0 -3
- 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.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/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/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.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/focus-trap.controller.d.ts +0 -14
- package/dist/lib/facade/checkbox-group-form-control.d.ts +0 -21
- package/dist/lib/facade/option-control.d.ts +0 -16
- package/dist/lib/facade/radio-group-form-control.d.ts +0 -22
- package/dist/lib/facade/select-form-control.d.ts +0 -19
- 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/search-text-content.d.ts +0 -7
- 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/dist/components/{accordion → accordion-panel}/accordion-panel.d.ts +0 -0
- /package/dist/i18n/{lib/config.d.ts → config.d.ts} +0 -0
- /package/dist/i18n/{lib/format.d.ts → format.d.ts} +0 -0
- /package/dist/i18n/{lib/models.d.ts → models.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generates a unique identifier for a given key. If the
|
|
3
|
-
* the function increments a counter associated with that
|
|
4
|
-
* The generated ID is in the format of `${
|
|
2
|
+
* Generates a unique identifier for a given key. If the prefix has previously been used,
|
|
3
|
+
* the function increments a counter associated with that prefix to ensure uniqueness.
|
|
4
|
+
* The generated ID is in the format of `${prefix}-${counter}`.
|
|
5
5
|
*
|
|
6
|
-
* @param {string}
|
|
7
|
-
* @returns {string} A unique identifier string based on the provided
|
|
6
|
+
* @param {string} prefix - The prefix for which to generate a unique identifier.
|
|
7
|
+
* @returns {string} A unique identifier string based on the provided prefix.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
@@ -15,22 +15,5 @@
|
|
|
15
15
|
* console.log(id2); // Outputs: "component-2"
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export declare function getUniqueId(
|
|
19
|
-
/**
|
|
20
|
-
* Clears the cache used by `getUniqueId` to generate unique identifiers. This function
|
|
21
|
-
* resets all counters associated with each key, effectively restarting the generation
|
|
22
|
-
* of unique IDs from their initial state.
|
|
23
|
-
*
|
|
24
|
-
* This can be useful in scenarios such as testing or when starting a new session that
|
|
25
|
-
* requires resetting the state of unique ID generation.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* getUniqueId('component'); // Returns "component-1"
|
|
30
|
-
* getUniqueId('component'); // Returns "component-2"
|
|
31
|
-
* clearUniqueIdCache();
|
|
32
|
-
* getUniqueId('component'); // Returns "component-1" after cache reset
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function clearUniqueIdCache(key?: string): void;
|
|
18
|
+
export declare function getUniqueId(prefix: string): string;
|
|
36
19
|
//# sourceMappingURL=get-unique-id.d.ts.map
|
package/dist/lib/utils/lit.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ReactiveElement, TemplateResult
|
|
2
|
-
import { ARIAProperty } from './a11y.js';
|
|
3
|
-
export declare function requestUpdateOnAriaChange(ariaProperties: ARIAProperty[]): (ctor: typeof ReactiveElement) => void;
|
|
1
|
+
import { nothing, ReactiveElement, TemplateResult } from 'lit';
|
|
4
2
|
export declare const optionalAttr: <T>(value: T) => NonNullable<T>;
|
|
5
3
|
export declare function optionalSlot(host: ReactiveElement, slotName: string): TemplateResult | typeof nothing;
|
|
6
4
|
//# sourceMappingURL=lit.d.ts.map
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a ResizeObserver instance safely, falling back to a dummy if the API is not supported.
|
|
3
|
-
*
|
|
4
|
-
* @param {ResizeObserverCallback} callback - The callback to execute when an observed element's size changes.
|
|
5
|
-
* @returns {ResizeObserver} A ResizeObserver instance or a dummy object with no-op methods if unsupported.
|
|
6
|
-
*/
|
|
7
|
-
export declare function createResizeObserver(callback: ResizeObserverCallback): ResizeObserver;
|
|
8
1
|
export interface SharedResizeObserverOptions extends ResizeObserverOptions {
|
|
9
2
|
fpsLimit: number;
|
|
10
3
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export type
|
|
2
|
-
|
|
3
|
-
* Valid values for `role`.
|
|
4
|
-
*/
|
|
1
|
+
export declare type Constructor<T> = new (...args: any[]) => T;
|
|
2
|
+
export type ValuesOf<T extends object> = T[keyof T];
|
|
5
3
|
export type ARIARole = 'alert' | 'alertdialog' | 'button' | 'checkbox' | 'dialog' | 'gridcell' | 'link' | 'log' | 'marquee' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'option' | 'progressbar' | 'radio' | 'scrollbar' | 'searchbox' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'tabpanel' | 'textbox' | 'timer' | 'tooltip' | 'treeitem' | 'combobox' | 'grid' | 'listbox' | 'menu' | 'menubar' | 'radiogroup' | 'tablist' | 'tree' | 'treegrid' | 'application' | 'article' | 'cell' | 'columnheader' | 'definition' | 'directory' | 'document' | 'feed' | 'figure' | 'group' | 'heading' | 'img' | 'list' | 'listitem' | 'math' | 'none' | 'note' | 'presentation' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'separator' | 'table' | 'term' | 'text' | 'toolbar' | 'banner' | 'complementary' | 'contentinfo' | 'form' | 'main' | 'navigation' | 'region' | 'search' | 'doc-abstract' | 'doc-acknowledgments' | 'doc-afterword' | 'doc-appendix' | 'doc-backlink' | 'doc-biblioentry' | 'doc-bibliography' | 'doc-biblioref' | 'doc-chapter' | 'doc-colophon' | 'doc-conclusion' | 'doc-cover' | 'doc-credit' | 'doc-credits' | 'doc-dedication' | 'doc-endnote' | 'doc-endnotes' | 'doc-epigraph' | 'doc-epilogue' | 'doc-errata' | 'doc-example' | 'doc-footnote' | 'doc-foreword' | 'doc-glossary' | 'doc-glossref' | 'doc-index' | 'doc-introduction' | 'doc-noteref' | 'doc-notice' | 'doc-pagebreak' | 'doc-pagelist' | 'doc-part' | 'doc-preface' | 'doc-prologue' | 'doc-pullquote' | 'doc-qna' | 'doc-subtitle' | 'doc-tip' | 'doc-toc';
|
|
6
4
|
/**
|
|
7
5
|
* An extension of `ARIAMixin` that enforces strict value types for aria
|
|
@@ -59,5 +57,4 @@ export interface ARIAMixinStrict extends ARIAMixin {
|
|
|
59
57
|
ariaValueText: string | null;
|
|
60
58
|
role: ARIARole | null;
|
|
61
59
|
}
|
|
62
|
-
|
|
63
|
-
//# sourceMappingURL=a11y.d.ts.map
|
|
60
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/loader.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (typeof entry !== "function") continue;
|
|
7
|
-
entry.define?.();
|
|
1
|
+
(async function defineCustomElements() {
|
|
2
|
+
const components = Object.values(await import('./components.js'));
|
|
3
|
+
for (const entry of components) {
|
|
4
|
+
if (typeof entry !== "function" || !("define" in entry) || typeof entry.define !== "function") continue;
|
|
5
|
+
entry.define();
|
|
8
6
|
}
|
|
9
|
-
}
|
|
10
|
-
defineCustomElements();
|
|
11
|
-
|
|
12
|
-
export { defineCustomElements };
|
|
7
|
+
})();
|