@tylertech/forge-core 2.4.0-dev.2 → 3.0.0-next.0
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 +11 -14
- package/{esm → dist}/a11y/a11y.js +1 -0
- package/dist/a11y/a11y.js.map +1 -0
- package/dist/a11y/index.js +2 -0
- package/dist/a11y/index.js.map +1 -0
- package/{esm → dist}/constants/date-constants.js +2 -1
- package/dist/constants/date-constants.js.map +1 -0
- package/{esm → dist}/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -0
- package/{typings → dist}/custom-elements/component-utils.d.ts +16 -11
- package/{esm → dist}/custom-elements/component-utils.js +72 -41
- package/dist/custom-elements/component-utils.js.map +1 -0
- package/dist/custom-elements/constants.d.ts +6 -0
- package/dist/custom-elements/constants.js +10 -0
- package/dist/custom-elements/constants.js.map +1 -0
- package/dist/custom-elements/decorators/core-property.d.ts +27 -0
- package/{esm/custom-elements/decorators/foundation-property.js → dist/custom-elements/decorators/core-property.js} +39 -34
- package/dist/custom-elements/decorators/core-property.js.map +1 -0
- package/{typings → dist}/custom-elements/decorators/custom-element.d.ts +9 -4
- package/{esm → dist}/custom-elements/decorators/custom-element.js +6 -8
- package/dist/custom-elements/decorators/custom-element.js.map +1 -0
- package/dist/custom-elements/decorators/index.d.ts +2 -0
- package/dist/custom-elements/decorators/index.js +3 -0
- package/dist/custom-elements/decorators/index.js.map +1 -0
- package/{typings → dist}/custom-elements/index.d.ts +3 -1
- package/{esm → dist}/custom-elements/index.js +2 -0
- package/dist/custom-elements/index.js.map +1 -0
- package/{esm → dist}/events/event-aware.js +1 -0
- package/dist/events/event-aware.js.map +1 -0
- package/dist/events/index.js +2 -0
- package/dist/events/index.js.map +1 -0
- package/{esm → dist}/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/{esm → dist}/media-observer/index.js +1 -0
- package/dist/media-observer/index.js.map +1 -0
- package/{esm → dist}/media-observer/media-observer-utils.js +1 -0
- package/dist/media-observer/media-observer-utils.js.map +1 -0
- package/{esm → dist}/media-observer/media-observer.js +31 -38
- package/dist/media-observer/media-observer.js.map +1 -0
- package/{typings → dist}/media-observer/types.d.ts +26 -26
- package/{esm → dist}/media-observer/types.js +1 -0
- package/dist/media-observer/types.js.map +1 -0
- package/{esm → dist}/message-list/index.js +1 -0
- package/dist/message-list/index.js.map +1 -0
- package/{esm → dist}/message-list/message-list-entry.js +1 -0
- package/dist/message-list/message-list-entry.js.map +1 -0
- package/{esm → dist}/message-list/message-list.js +6 -5
- package/dist/message-list/message-list.js.map +1 -0
- package/{esm → dist}/observable/index.js +1 -0
- package/dist/observable/index.js.map +1 -0
- package/{esm → dist}/observable/observable.js +10 -10
- package/dist/observable/observable.js.map +1 -0
- package/dist/observable/types.d.ts +1 -0
- package/dist/observable/types.js +2 -0
- package/dist/observable/types.js.map +1 -0
- package/{esm → dist}/resize/index.js +1 -0
- package/dist/resize/index.js.map +1 -0
- package/{esm → dist}/resize/resize-observer.js +5 -7
- package/dist/resize/resize-observer.js.map +1 -0
- package/{typings → dist}/resize/resize-types.d.ts +1 -1
- package/dist/resize/resize-types.js +2 -0
- package/dist/resize/resize-types.js.map +1 -0
- package/{esm → dist}/scroll/index.js +1 -0
- package/dist/scroll/index.js.map +1 -0
- package/{esm → dist}/scroll/scroll-axis-observer.js +1 -0
- package/dist/scroll/scroll-axis-observer.js.map +1 -0
- package/{esm → dist}/scroll/scroll-types.js +1 -0
- package/dist/scroll/scroll-types.js.map +1 -0
- package/{esm → dist}/services/index.js +1 -0
- package/dist/services/index.js.map +1 -0
- package/{esm → dist}/services/service-adapter.js +1 -0
- package/dist/services/service-adapter.js.map +1 -0
- package/{esm → dist}/utils/a11y.js +1 -0
- package/dist/utils/a11y.js.map +1 -0
- package/{esm → dist}/utils/clipboard.js +2 -2
- package/dist/utils/clipboard.js.map +1 -0
- package/{esm → dist}/utils/dom-utils.js +2 -1
- package/dist/utils/dom-utils.js.map +1 -0
- package/{esm → dist}/utils/event-utils.js +1 -0
- package/dist/utils/event-utils.js.map +1 -0
- package/{esm → dist}/utils/http-utils.js +1 -0
- package/dist/utils/http-utils.js.map +1 -0
- package/{typings → dist}/utils/index.d.ts +0 -1
- package/{esm → dist}/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -0
- package/{esm → dist}/utils/item-manager.js +1 -0
- package/dist/utils/item-manager.js.map +1 -0
- package/{typings → dist}/utils/object-utils.d.ts +17 -0
- package/{esm → dist}/utils/object-utils.js +52 -0
- package/dist/utils/object-utils.js.map +1 -0
- package/{esm → dist}/utils/platform.js +1 -0
- package/dist/utils/platform.js.map +1 -0
- package/{esm → dist}/utils/string-utils.js +1 -0
- package/dist/utils/string-utils.js.map +1 -0
- package/{typings → dist}/utils/utils.d.ts +1 -1
- package/{esm → dist}/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -0
- package/package.json +52 -10
- package/esm/a11y/index.js +0 -1
- package/esm/custom-elements/decorators/index.js +0 -2
- package/esm/events/index.js +0 -1
- package/esm/observable/types.js +0 -1
- package/esm/resize/resize-types.js +0 -1
- package/esm/utils/position-utils.js +0 -62
- package/esm/utils/top-layer-middleware.js +0 -43
- package/typings/custom-elements/decorators/foundation-property.d.ts +0 -20
- package/typings/custom-elements/decorators/index.d.ts +0 -2
- package/typings/observable/types.d.ts +0 -1
- package/typings/utils/position-utils.d.ts +0 -58
- package/typings/utils/top-layer-middleware.d.ts +0 -2
- /package/{typings → dist}/a11y/a11y.d.ts +0 -0
- /package/{typings → dist}/a11y/index.d.ts +0 -0
- /package/{typings → dist}/constants/date-constants.d.ts +0 -0
- /package/{typings → dist}/constants/index.d.ts +0 -0
- /package/{typings → dist}/events/event-aware.d.ts +0 -0
- /package/{typings → dist}/events/index.d.ts +0 -0
- /package/{typings → dist}/index.d.ts +0 -0
- /package/{typings → dist}/media-observer/index.d.ts +0 -0
- /package/{typings → dist}/media-observer/media-observer-utils.d.ts +0 -0
- /package/{typings → dist}/media-observer/media-observer.d.ts +0 -0
- /package/{typings → dist}/message-list/index.d.ts +0 -0
- /package/{typings → dist}/message-list/message-list-entry.d.ts +0 -0
- /package/{typings → dist}/message-list/message-list.d.ts +0 -0
- /package/{typings → dist}/observable/index.d.ts +0 -0
- /package/{typings → dist}/observable/observable.d.ts +0 -0
- /package/{typings → dist}/resize/index.d.ts +0 -0
- /package/{typings → dist}/resize/resize-observer.d.ts +0 -0
- /package/{typings → dist}/scroll/index.d.ts +0 -0
- /package/{typings → dist}/scroll/scroll-axis-observer.d.ts +0 -0
- /package/{typings → dist}/scroll/scroll-types.d.ts +0 -0
- /package/{typings → dist}/services/index.d.ts +0 -0
- /package/{typings → dist}/services/service-adapter.d.ts +0 -0
- /package/{typings → dist}/utils/a11y.d.ts +0 -0
- /package/{typings → dist}/utils/clipboard.d.ts +0 -0
- /package/{typings → dist}/utils/dom-utils.d.ts +0 -0
- /package/{typings → dist}/utils/event-utils.d.ts +0 -0
- /package/{typings → dist}/utils/http-utils.d.ts +0 -0
- /package/{typings → dist}/utils/item-manager.d.ts +0 -0
- /package/{typings → dist}/utils/platform.d.ts +0 -0
- /package/{typings → dist}/utils/string-utils.d.ts +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { FlipOptions, ShiftOptions, AutoPlacementOptions, HideOptions, Placement, Strategy, OffsetOptions } from '@floating-ui/dom';
|
|
2
|
-
export declare type PositionPlacement = Placement;
|
|
3
|
-
export declare type PositionStrategy = Strategy;
|
|
4
|
-
export interface IElementPositionResult {
|
|
5
|
-
visibility: 'visible' | 'hidden';
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
}
|
|
9
|
-
export interface IPositionElementConfig {
|
|
10
|
-
/** The element to apply position to. */
|
|
11
|
-
element: HTMLElement;
|
|
12
|
-
/** The target element to position `element` around. */
|
|
13
|
-
targetElement: HTMLElement;
|
|
14
|
-
/** The placement position. */
|
|
15
|
-
placement: PositionPlacement;
|
|
16
|
-
/** Whether the position values should be applied to the `element` or not. Default is `true`. */
|
|
17
|
-
apply?: boolean;
|
|
18
|
-
/** Should the element flip to the opposite placement when not enough room. */
|
|
19
|
-
flip?: boolean;
|
|
20
|
-
/** Options to provide to the flip middleware. */
|
|
21
|
-
flipOptions?: Partial<FlipOptions>;
|
|
22
|
-
/** Should the element stay visible at the same placement when scrolling. */
|
|
23
|
-
shift?: boolean;
|
|
24
|
-
/** Options to provide to the shift middleware. */
|
|
25
|
-
shiftOptions?: Partial<ShiftOptions>;
|
|
26
|
-
/** Should the element hide itself when the target element is out of the view. */
|
|
27
|
-
hide?: boolean;
|
|
28
|
-
/** Options to provide to the hide middleware. */
|
|
29
|
-
hideOptions?: Partial<HideOptions>;
|
|
30
|
-
/** Should the element automatically attempt to locate the best placement, */
|
|
31
|
-
auto?: boolean;
|
|
32
|
-
/** Options to provide to the autoPlacement middleware. */
|
|
33
|
-
autoOptions?: Partial<AutoPlacementOptions>;
|
|
34
|
-
/** Should any offset values be applied to the element. */
|
|
35
|
-
offset?: boolean;
|
|
36
|
-
/** */
|
|
37
|
-
offsetOptions?: Partial<OffsetOptions>;
|
|
38
|
-
/** Should the top-layer middleware be applied or not. */
|
|
39
|
-
topLayer?: boolean;
|
|
40
|
-
/** The positioning strategy. */
|
|
41
|
-
strategy?: PositionStrategy;
|
|
42
|
-
/** Should positioning be applied using a `transform` style. */
|
|
43
|
-
transform?: boolean;
|
|
44
|
-
/** The CSS `translate` function to apply to the `transform`. Only applied when `transform` is `true`. */
|
|
45
|
-
translateFunction?: 'translate3d' | 'translate';
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Calculates an elements position relative to another element.
|
|
49
|
-
* @param {IPositionElementConfig} config Configuration to provide when positioning the element.
|
|
50
|
-
* @returns {IElementPositionResult} The result of the positioning logic.
|
|
51
|
-
*/
|
|
52
|
-
export declare function positionElementAsync({ element, targetElement, placement, offset, offsetOptions, strategy, apply, flip, flipOptions, auto, autoOptions, shift, shiftOptions, hide, hideOptions, topLayer, transform, translateFunction }: IPositionElementConfig): Promise<IElementPositionResult>;
|
|
53
|
-
/**
|
|
54
|
-
* Determines if the provided element is a child of a containment block.
|
|
55
|
-
* @param element The element to check.
|
|
56
|
-
* @returns {boolean} `true` if the element is within a containment block, otherwise `false`.
|
|
57
|
-
*/
|
|
58
|
-
export declare function isWithinContainingBlock(element: Element): boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|