@odx/foundation 1.0.0-beta.2 → 1.0.0-beta.200
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 +51 -9
- package/dist/_virtual_class-decorator-runtime.js +13 -0
- package/dist/components/accordion/accordion.d.ts +10 -5
- package/dist/components/accordion-item/accordion-item.d.ts +25 -0
- package/dist/components/{accordion → accordion-panel}/accordion-panel.d.ts +4 -2
- package/dist/components/action-button/action-button.d.ts +28 -0
- package/dist/components/action-group/action-group.d.ts +6 -13
- package/dist/components/anchor-navigation/anchor-navigation.d.ts +8 -6
- package/dist/components/anchor-navigation/index.d.ts +0 -1
- package/dist/components/area-footer/area-footer.d.ts +29 -0
- package/dist/components/area-header/area-header.d.ts +20 -4
- package/dist/components/autocomplete/autocomplete.d.ts +26 -0
- package/dist/components/avatar/avatar.d.ts +37 -5
- package/dist/components/badge/badge.d.ts +35 -5
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +3 -7
- package/dist/components/button/button.d.ts +30 -25
- package/dist/components/button-group/button-group.d.ts +8 -11
- package/dist/components/card/card.d.ts +22 -3
- package/dist/components/checkbox/checkbox.d.ts +6 -6
- package/dist/components/checkbox-group/checkbox-group.d.ts +10 -5
- package/dist/components/chip/chip.d.ts +20 -7
- package/dist/components/drawer/drawer.d.ts +17 -0
- package/dist/components/dropdown/dropdown.d.ts +25 -10
- package/dist/components/empty-state/empty-state.d.ts +46 -0
- package/dist/components/form-field/form-field.d.ts +3 -4
- package/dist/components/format/base-format.d.ts +2 -2
- 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/gradient-overlay/gradient-overlay.d.ts +23 -0
- package/dist/components/header/header.d.ts +12 -2
- package/dist/components/header/index.d.ts +0 -1
- package/dist/components/highlight/highlight.d.ts +32 -5
- package/dist/components/icon-button/icon-button.d.ts +15 -16
- package/dist/components/image/image.d.ts +5 -5
- package/dist/components/inline-message/inline-message.d.ts +21 -6
- package/dist/components/input/input.d.ts +17 -7
- package/dist/components/key-value/key-value.d.ts +53 -0
- package/dist/components/key-value-list/key-value-list.d.ts +15 -0
- package/dist/components/label/label.d.ts +11 -0
- package/dist/components/line-clamp/line-clamp.d.ts +3 -3
- package/dist/components/link/link.d.ts +15 -3
- package/dist/components/list/list.d.ts +12 -2
- package/dist/components/list-item/list-item.d.ts +24 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +3 -5
- package/dist/components/loading-spinner/loading-spinner.d.ts +9 -3
- package/dist/components/logo/logo.d.ts +12 -3
- package/dist/components/main-menu/index.d.ts +1 -4
- package/dist/components/main-menu/main-menu-button.d.ts +3 -2
- package/dist/components/main-menu/main-menu.d.ts +1 -7
- package/dist/components/main.d.ts +75 -57
- package/dist/components/menu/menu.d.ts +5 -8
- package/dist/components/menu-item/menu-item.d.ts +22 -6
- package/dist/components/modal/modal.d.ts +10 -27
- package/dist/components/navigation/navigation.d.ts +18 -0
- package/dist/components/navigation-item/navigation-item.d.ts +11 -7
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +20 -0
- package/dist/components/option/option.d.ts +3 -5
- package/dist/components/page/page.d.ts +20 -6
- package/dist/components/page-layout/page-layout.d.ts +9 -1
- package/dist/components/pagination/pagination.d.ts +3 -2
- package/dist/components/popover/compute-popover-placement.d.ts +13 -0
- package/dist/components/popover/popover-host.d.ts +43 -0
- package/dist/components/popover/popover-observer.d.ts +11 -0
- package/dist/{cdk → components}/popover/popover.d.ts +3 -2
- package/dist/components/progress-bar/base-progress.d.ts +14 -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 +5 -3
- package/dist/components/radio-group/radio-group.d.ts +10 -4
- package/dist/components/rail-navigation/rail-navigation.d.ts +5 -7
- package/dist/components/scroll-container/scroll-container.d.ts +34 -0
- package/dist/components/search-bar/search-bar.d.ts +18 -4
- package/dist/components/select/select.d.ts +15 -8
- package/dist/components/separator/separator.d.ts +10 -4
- package/dist/components/sidebar/sidebar.d.ts +30 -0
- package/dist/components/skeleton/skeleton.d.ts +13 -6
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/slider-handle.d.ts +6 -6
- package/dist/components/slider/slider-marks.d.ts +2 -2
- package/dist/components/slider/slider.d.ts +2 -3
- package/dist/components/slider/slider.models.d.ts +4 -3
- package/dist/components/spinbox/spinbox.d.ts +15 -10
- package/dist/components/status/status.d.ts +28 -0
- package/dist/components/switch/switch.d.ts +12 -2
- package/dist/components/tab-bar/tab-bar.d.ts +36 -0
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/table-body.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-checkbox-cell.d.ts +2 -2
- package/dist/components/table/table-header-cell.d.ts +1 -1
- package/dist/components/table/table-header.d.ts +5 -3
- package/dist/components/table/table-row.d.ts +4 -4
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/text/text.d.ts +27 -3
- package/dist/components/textarea/textarea.d.ts +23 -0
- package/dist/components/tile/tile.d.ts +37 -0
- package/dist/components/title/title.d.ts +19 -5
- package/dist/components/toast/toast.d.ts +19 -3
- package/dist/components/toggle-button/toggle-button.d.ts +40 -6
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +19 -0
- package/dist/components/toggle-content/toggle-content.d.ts +3 -4
- package/dist/components/toolbar/toolbar.d.ts +14 -0
- package/dist/components/tooltip/tooltip.d.ts +55 -7
- package/dist/components/translate/translate.d.ts +2 -2
- package/dist/components-loader.js +3 -0
- package/dist/components.js +3870 -4201
- package/dist/en.js +6 -0
- package/dist/i18n/{lib/config.d.ts → config.d.ts} +4 -3
- package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +3 -2
- package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +0 -1
- package/dist/i18n/main.d.ts +7 -6
- package/dist/i18n/translate.d.ts +6 -0
- package/dist/i18n/translations/en.json.d.ts +19 -0
- package/dist/i18n/types.d.ts +30 -0
- package/dist/i18n.js +61 -63
- package/dist/lib/behaviors/can-be-collapsed.d.ts +10 -0
- package/dist/lib/behaviors/can-be-disabled.d.ts +7 -0
- package/dist/lib/behaviors/can-be-expanded.d.ts +11 -0
- package/dist/lib/behaviors/checkbox-control-group.d.ts +22 -0
- package/dist/lib/behaviors/checkbox-control.d.ts +15 -0
- package/dist/lib/behaviors/form-associated.d.ts +22 -0
- package/dist/lib/behaviors/is-draggable.d.ts +23 -0
- package/dist/lib/behaviors/number-form-control.d.ts +11 -0
- package/dist/lib/control-element.d.ts +41 -0
- package/dist/lib/controllers/active-descendants-controller.d.ts +29 -0
- package/dist/{cdk/drag-drop → lib/controllers}/drag.controller.d.ts +3 -1
- package/dist/lib/controllers/expandable-controller.d.ts +14 -0
- package/dist/lib/custom-element.d.ts +11 -6
- package/dist/lib/dialog-element.d.ts +183 -0
- package/dist/lib/interactive-control-element.d.ts +19 -0
- package/dist/lib/link-control-element.d.ts +20 -0
- package/dist/lib/listbox-control-element.d.ts +30 -0
- package/dist/lib/models/layout.d.ts +48 -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 +24 -0
- package/dist/lib/option-control-element.d.ts +23 -0
- package/dist/lib/radio-group-control-element.d.ts +17 -0
- package/dist/main.d.ts +30 -0
- package/dist/main.js +1153 -941
- package/dist/styles-native.css +1 -0
- package/dist/styles.css +1 -1
- package/dist/utils/attribute-directive.d.ts +20 -0
- package/dist/utils/command-directive.d.ts +22 -0
- package/dist/utils/dom-events.d.ts +49 -0
- package/dist/{lib/utils/a11y.d.ts → utils/dom-types.d.ts} +1 -23
- package/dist/utils/dom.d.ts +16 -0
- package/dist/utils/lit.d.ts +4 -0
- package/dist/utils/main.d.ts +11 -0
- package/dist/utils/shared-event-listener.d.ts +3 -0
- package/dist/utils/shared-resize-observer.d.ts +7 -0
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/unique-id.d.ts +20 -0
- package/dist/utils.js +301 -0
- package/dist/vendor.js +1968 -0
- package/package.json +57 -34
- package/dist/cdk/drag-drop/drag-events.d.ts +0 -9
- 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 -19
- 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 -356
- package/dist/components/accordion/accordion-header.d.ts +0 -19
- package/dist/components/accordion/index.d.ts +0 -4
- package/dist/components/action-group/index.d.ts +0 -2
- package/dist/components/anchor-navigation/anchor-observer.d.ts +0 -11
- 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/breadcrumbs-item.d.ts +0 -17
- package/dist/components/breadcrumbs/index.d.ts +0 -3
- package/dist/components/button/base-button.d.ts +0 -27
- package/dist/components/button/button.models.d.ts +0 -15
- 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.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/content-box/content-box.d.ts +0 -11
- 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/header/header-actions.d.ts +0 -10
- 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/list/list-item.d.ts +0 -25
- 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/main-menu/main-menu-subtitle.d.ts +0 -12
- package/dist/components/main-menu/main-menu-title.d.ts +0 -12
- 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.d.ts +0 -13
- 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 -17
- 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/components/visually-hidden/visually-hidden.d.ts +0 -11
- package/dist/i18n/lib/translate.d.ts +0 -11
- package/dist/lib/controllers/focus-trap.controller.d.ts +0 -13
- package/dist/lib/decorators/request-update-on-aria-change.d.ts +0 -4
- package/dist/lib/directives/optional-attr.d.ts +0 -2
- package/dist/lib/directives/optional-slot.d.ts +0 -3
- package/dist/lib/directives/slot-fallback.d.ts +0 -8
- package/dist/lib/facade/checkbox-form-control.d.ts +0 -15
- 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/main.d.ts +0 -34
- package/dist/lib/mixins/can-be-disabled.d.ts +0 -15
- package/dist/lib/mixins/can-be-expanded.d.ts +0 -12
- 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/dedupe-mixin.d.ts +0 -3
- 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/dom.d.ts +0 -17
- package/dist/lib/utils/get-unique-id.d.ts +0 -36
- package/dist/lib/utils/keyboard-events.d.ts +0 -43
- package/dist/lib/utils/object.d.ts +0 -2
- 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/shared-resize-observer.d.ts +0 -18
- package/dist/loader/main.d.ts +0 -2
- package/dist/loader.js +0 -12
- package/dist/vendor-C_WVAD3D.js +0 -3680
- package/dist/vite.config.d.ts +0 -3
- /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,13 +0,0 @@
|
|
|
1
|
-
export type SkeletonSize = (typeof SkeletonSize)[keyof typeof SkeletonSize];
|
|
2
|
-
export declare const SkeletonSize: {
|
|
3
|
-
readonly SM: "sm";
|
|
4
|
-
readonly LG: "lg";
|
|
5
|
-
readonly XL: "xl";
|
|
6
|
-
};
|
|
7
|
-
export type SkeletonShape = (typeof SkeletonShape)[keyof typeof SkeletonShape];
|
|
8
|
-
export declare const SkeletonShape: {
|
|
9
|
-
readonly BUTTON: "button";
|
|
10
|
-
readonly CIRCLE: "circle";
|
|
11
|
-
readonly RECTANGLE: "rectangle";
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=skeleton.models.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'odx-spacer': OdxSpacer;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare class OdxSpacer extends CustomElement {
|
|
8
|
-
horizontal: boolean;
|
|
9
|
-
dynamic: boolean;
|
|
10
|
-
fill: boolean;
|
|
11
|
-
protected render(): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=spacer.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type SpacerPushDirection = (typeof SpacerPushDirection)[keyof typeof SpacerPushDirection];
|
|
2
|
-
export declare const SpacerPushDirection: {
|
|
3
|
-
readonly START: "start";
|
|
4
|
-
readonly END: "end";
|
|
5
|
-
readonly BOTH: "both";
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=spacer.models.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
import { StackAlign, StackGap, StackJustify } from './stack.models.js';
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLElementTagNameMap {
|
|
6
|
-
'odx-stack': OdxStack;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare class OdxStack extends CustomElement {
|
|
10
|
-
align?: StackAlign;
|
|
11
|
-
justify?: StackJustify;
|
|
12
|
-
gap?: StackGap | null;
|
|
13
|
-
vertical: boolean;
|
|
14
|
-
wrap: boolean;
|
|
15
|
-
protected render(): TemplateResult;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type StackAlign = (typeof StackAlign)[keyof typeof StackAlign];
|
|
2
|
-
export declare const StackAlign: {
|
|
3
|
-
readonly START: "start";
|
|
4
|
-
readonly END: "end";
|
|
5
|
-
readonly CENTER: "center";
|
|
6
|
-
};
|
|
7
|
-
export type StackGap = (typeof StackGap)[keyof typeof StackGap];
|
|
8
|
-
export declare const StackGap: {
|
|
9
|
-
readonly NONE: "none";
|
|
10
|
-
readonly XS: "xs";
|
|
11
|
-
readonly SM: "sm";
|
|
12
|
-
readonly MD: "md";
|
|
13
|
-
readonly LG: "lg";
|
|
14
|
-
readonly XL: "xl";
|
|
15
|
-
};
|
|
16
|
-
export type StackJustify = (typeof StackJustify)[keyof typeof StackJustify];
|
|
17
|
-
export declare const StackJustify: {
|
|
18
|
-
readonly START: "start";
|
|
19
|
-
readonly END: "end";
|
|
20
|
-
readonly CENTER: "center";
|
|
21
|
-
readonly SPACE_BETWEEN: "space-between";
|
|
22
|
-
readonly SPACE_AROUND: "space-around";
|
|
23
|
-
readonly SPACE_EVENLY: "space-evenly";
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=stack.models.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type TextSize = (typeof TextSize)[keyof typeof TextSize];
|
|
2
|
-
export declare const TextSize: {
|
|
3
|
-
readonly XS: "xs";
|
|
4
|
-
readonly SM: "sm";
|
|
5
|
-
readonly MD: "md";
|
|
6
|
-
readonly LG: "lg";
|
|
7
|
-
};
|
|
8
|
-
export type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];
|
|
9
|
-
export declare const TextVariant: {
|
|
10
|
-
readonly HINT: "hint";
|
|
11
|
-
readonly ACCENT: "info";
|
|
12
|
-
readonly DANGER: "danger";
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=text.models.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type TitleSize = (typeof TitleSize)[keyof typeof TitleSize];
|
|
2
|
-
export declare const TitleSize: {
|
|
3
|
-
readonly XS: "xs";
|
|
4
|
-
readonly SM: "sm";
|
|
5
|
-
readonly MD: "md";
|
|
6
|
-
readonly LG: "lg";
|
|
7
|
-
readonly XL: "xl";
|
|
8
|
-
readonly XXL: "xxl";
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=title.models.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type TooltipPlacement = (typeof TooltipPlacement)[keyof typeof TooltipPlacement];
|
|
2
|
-
export declare const TooltipPlacement: {
|
|
3
|
-
readonly TOP: "top";
|
|
4
|
-
readonly RIGHT: "right";
|
|
5
|
-
readonly BOTTOM: "bottom";
|
|
6
|
-
readonly LEFT: "left";
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=tooltip.models.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../../lib/main.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
declare global {
|
|
4
|
-
interface HTMLElementTagNameMap {
|
|
5
|
-
'odx-visually-hidden': OdxVisuallyHidden;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export declare class OdxVisuallyHidden extends CustomElement {
|
|
9
|
-
protected render(): TemplateResult;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=visually-hidden.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReadonlySignal } from '@lit-labs/preact-signals';
|
|
2
|
-
import { LocaleInput } from './models.js';
|
|
3
|
-
type Translation = {
|
|
4
|
-
[key: string]: Translation | string;
|
|
5
|
-
};
|
|
6
|
-
export type TranslateContext = Record<string, string | number | boolean> | string | number | boolean | null;
|
|
7
|
-
export declare function interpolate(value: string, context: Record<string, string | number>): string;
|
|
8
|
-
export declare function setTranslation(locale: LocaleInput, translation: Translation): void;
|
|
9
|
-
export declare function translate(key: string, contextInput?: TranslateContext, locale?: LocaleInput | null): ReadonlySignal<string>;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Options } from 'focus-trap';
|
|
2
|
-
import { ReactiveController, ReactiveElement } from 'lit';
|
|
3
|
-
export type FocusTrapControllerOptions = Options;
|
|
4
|
-
export declare class FocusTrapController implements ReactiveController {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(host: ReactiveElement, options?: FocusTrapControllerOptions);
|
|
7
|
-
activate(): Promise<void>;
|
|
8
|
-
deactivate(): Promise<void>;
|
|
9
|
-
toggle(state?: boolean): Promise<void>;
|
|
10
|
-
hostConnected(): Promise<void>;
|
|
11
|
-
hostDisconnected(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=focus-trap.controller.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ReactiveElement } from 'lit';
|
|
2
|
-
import { ARIAProperty } from '../utils/a11y.js';
|
|
3
|
-
export declare function requestUpdateOnAriaChange(ariaProperties: ARIAProperty[]): (ctor: typeof ReactiveElement) => void;
|
|
4
|
-
//# sourceMappingURL=request-update-on-aria-change.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementPart } from 'lit/directive.js';
|
|
2
|
-
declare class SlotFallbackDirective extends Directive {
|
|
3
|
-
update({ options, element }: ElementPart): void;
|
|
4
|
-
render(): void;
|
|
5
|
-
}
|
|
6
|
-
export declare const emptySlotFallbackFix: () => import('lit-html/directive.js').DirectiveResult<typeof SlotFallbackDirective>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=slot-fallback.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
declare const CheckboxFormControl_base: import('../main.js').Constructor<import('../mixins/form-control.js').IsFormControl<string>> & typeof CustomElement;
|
|
3
|
-
export declare abstract class CheckboxFormControl extends CheckboxFormControl_base {
|
|
4
|
-
#private;
|
|
5
|
-
static shadowRootOptions: ShadowRootInit;
|
|
6
|
-
role: 'checkbox' | 'menuitemcheckbox' | 'menuitemradio' | 'option' | 'radio' | 'switch' | null;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
constructor();
|
|
9
|
-
toFormValue(): string | File | FormData | null;
|
|
10
|
-
toggle(state?: boolean, emitEvent?: boolean): void;
|
|
11
|
-
connectedCallback(): void;
|
|
12
|
-
updateAriaAttributes(): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=checkbox-form-control.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { CustomElement } from '../custom-element.js';
|
|
3
|
-
import { CheckboxFormControl } from './checkbox-form-control.js';
|
|
4
|
-
declare const CheckboxGroupFormControl_base: import('../main.js').Constructor<import('../mixins/form-control.js').IsFormControl<string[]>> & typeof CustomElement;
|
|
5
|
-
export declare abstract class CheckboxGroupFormControl extends CheckboxGroupFormControl_base {
|
|
6
|
-
#private;
|
|
7
|
-
private elements;
|
|
8
|
-
protected get childGroups(): CheckboxGroupFormControl[];
|
|
9
|
-
get controls(): CheckboxFormControl[];
|
|
10
|
-
get groupControls(): CheckboxFormControl[];
|
|
11
|
-
value: string[];
|
|
12
|
-
constructor();
|
|
13
|
-
toFormValue(): FormData;
|
|
14
|
-
protected isIndeterminate(): boolean;
|
|
15
|
-
protected isControl(element: unknown): element is CheckboxFormControl;
|
|
16
|
-
protected updated(props: PropertyValues<this>): void;
|
|
17
|
-
protected updateCheckboxControls(updateFn: (control: CheckboxFormControl, index: number) => void): void;
|
|
18
|
-
protected updateValue(value: string[], dispatchEvent?: boolean): void;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=checkbox-group-form-control.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PropertyValueMap } from 'lit';
|
|
2
|
-
import { CustomElement } from '../custom-element.js';
|
|
3
|
-
import { CanBeDisabled } from '../mixins/can-be-disabled.js';
|
|
4
|
-
declare const OptionControl_base: import('../main.js').Constructor<CanBeDisabled> & typeof CustomElement;
|
|
5
|
-
export declare abstract class OptionControl extends OptionControl_base {
|
|
6
|
-
role: 'option' | 'gridcell' | 'row' | 'tab' | null;
|
|
7
|
-
selected: boolean;
|
|
8
|
-
value: string;
|
|
9
|
-
getTextLabel(): string;
|
|
10
|
-
setActive(): void;
|
|
11
|
-
setInactive(): void;
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
protected willUpdate(changes: PropertyValueMap<this>): void;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=option-control.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { CustomElement } from '../custom-element.js';
|
|
3
|
-
import { CheckboxFormControl } from './checkbox-form-control.js';
|
|
4
|
-
declare const RadioGroupFormControl_base: import('../main.js').Constructor<import('../mixins/form-control.js').IsFormControl<string>> & typeof CustomElement;
|
|
5
|
-
export declare abstract class RadioGroupFormControl extends RadioGroupFormControl_base {
|
|
6
|
-
#private;
|
|
7
|
-
static shadowRootOptions: {
|
|
8
|
-
delegatesFocus: boolean;
|
|
9
|
-
mode: ShadowRootMode;
|
|
10
|
-
serializable?: boolean;
|
|
11
|
-
slotAssignment?: SlotAssignmentMode;
|
|
12
|
-
};
|
|
13
|
-
private elements;
|
|
14
|
-
constructor();
|
|
15
|
-
getControls(): CheckboxFormControl[];
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
protected isControl(element: unknown): element is CheckboxFormControl;
|
|
18
|
-
protected update(changes: PropertyValues<this>): void;
|
|
19
|
-
protected updateCheckboxControls(updateFn: (control: CheckboxFormControl, index: number) => void): Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=radio-group-form-control.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { CustomElement } from '../custom-element.js';
|
|
3
|
-
import { OptionControl } from './option-control.js';
|
|
4
|
-
declare const SelectFormControl_base: import('../main.js').Constructor<import('../mixins/form-control.js').IsFormControl<string | string[]>> & typeof CustomElement;
|
|
5
|
-
export declare abstract class SelectFormControl<Option extends OptionControl = OptionControl> extends SelectFormControl_base {
|
|
6
|
-
#private;
|
|
7
|
-
protected abstract options: Option[];
|
|
8
|
-
multiple: boolean;
|
|
9
|
-
value: string[] | string;
|
|
10
|
-
get selectedOptions(): MapIterator<Option>;
|
|
11
|
-
constructor();
|
|
12
|
-
toggle(option: OptionControl, state?: boolean, emitEvent?: boolean): void;
|
|
13
|
-
protected updateValue(option: OptionControl): void;
|
|
14
|
-
protected willUpdate(changes: PropertyValues<this>): void;
|
|
15
|
-
protected updateSelection(): Promise<void>;
|
|
16
|
-
protected handleKeyboardEvent: (event: KeyboardEvent) => void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=select-form-control.d.ts.map
|
package/dist/lib/main.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ExtractAssetName } from '@odx/assets-utils';
|
|
2
|
-
export * from './controllers/focus-trap.controller.js';
|
|
3
|
-
export * from './decorators/request-update-on-aria-change.js';
|
|
4
|
-
export * from './directives/optional-attr.js';
|
|
5
|
-
export * from './directives/optional-slot.js';
|
|
6
|
-
export * from './directives/slot-fallback.js';
|
|
7
|
-
export * from './facade/checkbox-form-control.js';
|
|
8
|
-
export * from './facade/checkbox-group-form-control.js';
|
|
9
|
-
export * from './facade/option-control.js';
|
|
10
|
-
export * from './facade/radio-group-form-control.js';
|
|
11
|
-
export * from './facade/select-form-control.js';
|
|
12
|
-
export * from './mixins/can-be-disabled.js';
|
|
13
|
-
export * from './mixins/can-be-expanded.js';
|
|
14
|
-
export * from './mixins/can-be-readonly.js';
|
|
15
|
-
export * from './mixins/can-be-required.js';
|
|
16
|
-
export * from './mixins/can-be-selected.js';
|
|
17
|
-
export * from './mixins/can-be-validated.js';
|
|
18
|
-
export * from './mixins/dedupe-mixin.js';
|
|
19
|
-
export * from './mixins/form-control.js';
|
|
20
|
-
export * from './mixins/number-control.js';
|
|
21
|
-
export * from './mixins/with-loading-state.js';
|
|
22
|
-
export * from './utils/a11y.js';
|
|
23
|
-
export * from './utils/date.js';
|
|
24
|
-
export * from './utils/dom.js';
|
|
25
|
-
export * from './utils/get-unique-id.js';
|
|
26
|
-
export * from './utils/keyboard-events.js';
|
|
27
|
-
export * from './utils/object.js';
|
|
28
|
-
export * from './utils/search-text-content.js';
|
|
29
|
-
export * from './utils/shared-intersection-observer.js';
|
|
30
|
-
export * from './utils/shared-resize-observer.js';
|
|
31
|
-
export * from './custom-element.js';
|
|
32
|
-
export { effect } from '@lit-labs/preact-signals';
|
|
33
|
-
export type AvailableIcons = keyof _OdxIcon | ExtractAssetName<keyof _OdxIcon>;
|
|
34
|
-
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ContextProvider } from '@lit/context';
|
|
2
|
-
import { CustomElement } from '../custom-element.js';
|
|
3
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
4
|
-
export interface CanBeDisabled {
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const DisabledContext: {
|
|
8
|
-
__context__: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare class DisabledContextProvider extends ContextProvider<typeof DisabledContext, CanBeDisabled & CustomElement> {
|
|
11
|
-
constructor(host: CanBeDisabled & CustomElement);
|
|
12
|
-
hostUpdated(): void;
|
|
13
|
-
}
|
|
14
|
-
export declare const CanBeDisabled: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeDisabled> & T;
|
|
15
|
-
//# sourceMappingURL=can-be-disabled.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { CanBeDisabled } from './can-be-disabled.js';
|
|
3
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
4
|
-
export interface CanBeExpanded extends CanBeDisabled {
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
collapse(emitEvent?: boolean): void;
|
|
7
|
-
expand(emitEvent?: boolean): void;
|
|
8
|
-
toggle(force?: boolean, emitEvent?: boolean): void;
|
|
9
|
-
}
|
|
10
|
-
export type WithAriaControlsElement = CanBeExpanded & CanBeDisabled & HTMLElement;
|
|
11
|
-
export declare const CanBeExpanded: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeExpanded> & T;
|
|
12
|
-
//# sourceMappingURL=can-be-expanded.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
3
|
-
export interface CanBeReadonly {
|
|
4
|
-
readonly: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const CanBeReadonly: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeReadonly> & T;
|
|
7
|
-
//# sourceMappingURL=can-be-readonly.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
3
|
-
export interface CanBeRequired {
|
|
4
|
-
required: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const CanBeRequired: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeRequired> & T;
|
|
7
|
-
//# sourceMappingURL=can-be-required.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { ARIAMixinStrict } from '../utils/a11y.js';
|
|
3
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
4
|
-
export interface CanBeSelected {
|
|
5
|
-
selected: boolean;
|
|
6
|
-
ariaSelectedValue: ARIAMixinStrict['ariaCurrent'];
|
|
7
|
-
}
|
|
8
|
-
export declare const CanBeSelected: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeSelected> & T;
|
|
9
|
-
//# sourceMappingURL=can-be-selected.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
3
|
-
export interface CanBeValidated {
|
|
4
|
-
readonly internals: ElementInternals;
|
|
5
|
-
get validity(): ValidityState;
|
|
6
|
-
get validationMessage(): string;
|
|
7
|
-
checkValidity(): boolean;
|
|
8
|
-
reportValidity(): void;
|
|
9
|
-
setValidity(flags?: ValidityStateFlags, target?: HTMLElement): void;
|
|
10
|
-
}
|
|
11
|
-
export declare const CanBeValidated: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<CanBeValidated> & T;
|
|
12
|
-
//# sourceMappingURL=can-be-validated.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { CanBeDisabled } from './can-be-disabled.js';
|
|
3
|
-
import { CanBeReadonly } from './can-be-readonly.js';
|
|
4
|
-
import { CanBeRequired } from './can-be-required.js';
|
|
5
|
-
import { CanBeValidated } from './can-be-validated.js';
|
|
6
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
7
|
-
type ValueType = string | number | boolean | string[] | number[] | boolean[];
|
|
8
|
-
export interface IsFormControl<V extends ValueType = string> extends CanBeDisabled, CanBeReadonly, CanBeRequired, CanBeValidated {
|
|
9
|
-
form: HTMLFormElement | null;
|
|
10
|
-
name: string;
|
|
11
|
-
value: V;
|
|
12
|
-
toFormValue(): string | File | FormData | null;
|
|
13
|
-
updateAriaAttributes?(): void;
|
|
14
|
-
}
|
|
15
|
-
export declare const FormControl: <T extends Constructor<CustomElement>, V extends ValueType = string>(superClass: T) => Constructor<IsFormControl<V>> & T;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=form-control.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
3
|
-
import { IsFormControl } from './form-control.js';
|
|
4
|
-
export interface IsNumberControl extends Omit<IsFormControl, 'value'> {
|
|
5
|
-
min: number;
|
|
6
|
-
max: number;
|
|
7
|
-
step: number;
|
|
8
|
-
value: number;
|
|
9
|
-
getValueText(): string;
|
|
10
|
-
}
|
|
11
|
-
export declare const NumberControl: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<IsNumberControl> & T;
|
|
12
|
-
//# sourceMappingURL=number-control.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element.js';
|
|
2
|
-
import { Constructor } from './dedupe-mixin.js';
|
|
3
|
-
export interface HasLoadingState {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
get loadingContainer(): HTMLElement;
|
|
6
|
-
}
|
|
7
|
-
export declare const WithLoadingState: <T extends Constructor<CustomElement>>(superClass: T) => Constructor<HasLoadingState> & T;
|
|
8
|
-
//# sourceMappingURL=with-loading-state.d.ts.map
|
package/dist/lib/utils/date.d.ts
DELETED
package/dist/lib/utils/dom.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type CSSDimensionUnit = 'px' | 'em' | 'rem' | 'vh' | 'vw' | 'vmin' | 'vmax' | '%' | 'fr' | 'auto' | 'inherit' | 'initial' | 'unset';
|
|
2
|
-
export type CSSDimensionValue = `${number}${CSSDimensionUnit}`;
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new MutationObserver instance.
|
|
5
|
-
*
|
|
6
|
-
* @param {MutationCallback} callback - The callback to execute when a mutation occurs.
|
|
7
|
-
* @returns {MutationObserver} A MutationObserver instance or a dummy object with no-op methods if unsupported.
|
|
8
|
-
*/
|
|
9
|
-
export declare function createMutationObserver(callback: MutationCallback): MutationObserver;
|
|
10
|
-
export declare function toggleAttribute(element: Element | null | undefined, name: string, value?: string | number | boolean | null): void;
|
|
11
|
-
export declare function getElementFromEvent<T>(event: Event, filterFn: (node: Element) => boolean): T;
|
|
12
|
-
export declare function findClosestDocument(node: Node): ShadowRoot | Document | null;
|
|
13
|
-
export declare function toPx(value?: string | number | null): string | null;
|
|
14
|
-
export declare function getAssignedElements<T extends HTMLElement = HTMLElement>(host: HTMLElement, ...slots: string[]): T[];
|
|
15
|
-
export declare function waitForAnimations(element?: Element | null, subtree?: boolean): Promise<Animation[]>;
|
|
16
|
-
export declare function forwardEvent(target: HTMLElement, eventInit?: EventInit): EventListener;
|
|
17
|
-
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generates a unique identifier for a given key. If the key has previously been used,
|
|
3
|
-
* the function increments a counter associated with that key to ensure uniqueness.
|
|
4
|
-
* The generated ID is in the format of `${key}-${counter}`.
|
|
5
|
-
*
|
|
6
|
-
* @param {string} key - The key for which to generate a unique identifier.
|
|
7
|
-
* @returns {string} A unique identifier string based on the provided key.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const id1 = getUniqueId('component');
|
|
12
|
-
* console.log(id1); // Outputs: "component-1"
|
|
13
|
-
*
|
|
14
|
-
* const id2 = getUniqueId('component');
|
|
15
|
-
* console.log(id2); // Outputs: "component-2"
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function getUniqueId(key: string): string;
|
|
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;
|
|
36
|
-
//# sourceMappingURL=get-unique-id.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare const KeyboardKey: {
|
|
2
|
-
readonly ARROW_UP: "ArrowUp";
|
|
3
|
-
readonly ARROW_DOWN: "ArrowDown";
|
|
4
|
-
readonly ARROW_LEFT: "ArrowLeft";
|
|
5
|
-
readonly ARROW_RIGHT: "ArrowRight";
|
|
6
|
-
readonly ENTER: "Enter";
|
|
7
|
-
readonly ESCAPE: "Escape";
|
|
8
|
-
readonly SPACE: " ";
|
|
9
|
-
readonly TAB: "Tab";
|
|
10
|
-
readonly BACKSPACE: "Backspace";
|
|
11
|
-
readonly DELETE: "Delete";
|
|
12
|
-
readonly END: "End";
|
|
13
|
-
readonly HOME: "Home";
|
|
14
|
-
readonly PAGE_UP: "PageUp";
|
|
15
|
-
readonly PAGE_DOWN: "PageDown";
|
|
16
|
-
readonly SHIFT: "Shift";
|
|
17
|
-
readonly CONTROL: "Control";
|
|
18
|
-
readonly ALT: "Alt";
|
|
19
|
-
readonly META: "Meta";
|
|
20
|
-
};
|
|
21
|
-
export interface KeyboardEventInfo {
|
|
22
|
-
actions: {
|
|
23
|
-
enter: boolean;
|
|
24
|
-
space: boolean;
|
|
25
|
-
escape: boolean;
|
|
26
|
-
tab: boolean;
|
|
27
|
-
backTab: boolean;
|
|
28
|
-
start: boolean;
|
|
29
|
-
end: boolean;
|
|
30
|
-
};
|
|
31
|
-
axis: {
|
|
32
|
-
x: boolean;
|
|
33
|
-
y: boolean;
|
|
34
|
-
};
|
|
35
|
-
direction: {
|
|
36
|
-
up: boolean;
|
|
37
|
-
right: boolean;
|
|
38
|
-
down: boolean;
|
|
39
|
-
left: boolean;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export declare function getKeyboardEventInfo(event: KeyboardEvent): KeyboardEventInfo;
|
|
43
|
-
//# sourceMappingURL=keyboard-events.d.ts.map
|