@vialiq/web-components 0.17.0 → 0.18.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/base/draggable-mixin.d.ts +2 -0
- package/base/draggable-mixin.d.ts.map +1 -1
- package/base/overlay-manager.d.ts +7 -6
- package/base/overlay-manager.d.ts.map +1 -1
- package/base/resizable-mixin.d.ts +28 -0
- package/base/resizable-mixin.d.ts.map +1 -0
- package/index.js +4 -1299
- package/{overlay-manager-CZSDXl6Z.js → overlay-manager-xco6S92C.js} +27 -26
- package/package.json +2 -2
- package/tooltip/vi-tooltip.js +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
type Constructor<T = object> = new (...args: any[]) => T;
|
|
3
|
+
export type DragContainment = 'none' | 'viewport' | 'parent';
|
|
3
4
|
export declare class DraggableInterface {
|
|
4
5
|
draggable: boolean;
|
|
6
|
+
dragContainment: DragContainment;
|
|
5
7
|
protected get _dragTarget(): HTMLElement | null;
|
|
6
8
|
protected get _dragHandle(): HTMLElement | null;
|
|
7
9
|
protected _resetDrag(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable-mixin.d.ts","sourceRoot":"","sources":["../../../../libs/web-components/src/base/draggable-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAItD,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,KAAK,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC;IAChD,SAAS,KAAK,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC;IAChD,SAAS,CAAC,UAAU,IAAI,IAAI;IAC5B,SAAS,CAAC,SAAS,IAAI,IAAI;CAC5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAC9D,IAAI,EAAE,CAAC,GACN,CAAC,GAAG,WAAW,CAAC,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"draggable-mixin.d.ts","sourceRoot":"","sources":["../../../../libs/web-components/src/base/draggable-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAItD,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,KAAK,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC;IAChD,SAAS,KAAK,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC;IAChD,SAAS,CAAC,UAAU,IAAI,IAAI;IAC5B,SAAS,CAAC,SAAS,IAAI,IAAI;CAC5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAC9D,IAAI,EAAE,CAAC,GACN,CAAC,GAAG,WAAW,CAAC,kBAAkB,CAAC,CA0SrC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type OverlayType = 'modal' | 'dropdown' | 'tooltip' | 'toast';
|
|
2
|
+
export type ScrollStrategy = 'block' | 'noop';
|
|
2
3
|
/**
|
|
3
4
|
* OverlayManagerService
|
|
4
5
|
*
|
|
@@ -11,8 +12,7 @@ export type OverlayType = 'modal' | 'dropdown' | 'tooltip' | 'toast';
|
|
|
11
12
|
* when a modal is active.
|
|
12
13
|
*/
|
|
13
14
|
declare class OverlayManagerService {
|
|
14
|
-
private
|
|
15
|
-
private get baseZIndex();
|
|
15
|
+
private getBaseZIndex;
|
|
16
16
|
private overlays;
|
|
17
17
|
private _previousOverflow;
|
|
18
18
|
/**
|
|
@@ -21,9 +21,10 @@ declare class OverlayManagerService {
|
|
|
21
21
|
*
|
|
22
22
|
* @param element The DOM element being registered (e.g., the modal dialog or dropdown listbox)
|
|
23
23
|
* @param type The type of overlay, used to determine behaviors like scroll-locking.
|
|
24
|
+
* @param scrollStrategy How this overlay interacts with background scrolling.
|
|
24
25
|
* @returns The calculated z-index to be applied to the element.
|
|
25
26
|
*/
|
|
26
|
-
register(element: HTMLElement, type?: OverlayType): number;
|
|
27
|
+
register(element: HTMLElement, type?: OverlayType, scrollStrategy?: ScrollStrategy): number;
|
|
27
28
|
/**
|
|
28
29
|
* Unregisters an element, removing it from the overlay stack.
|
|
29
30
|
* Should be called when the overlay is closed or disconnected from the DOM.
|
|
@@ -47,9 +48,9 @@ declare class OverlayManagerService {
|
|
|
47
48
|
*/
|
|
48
49
|
isTopOverlay(element: HTMLElement): boolean;
|
|
49
50
|
/**
|
|
50
|
-
* Locks or unlocks the document.body scroll based on the
|
|
51
|
-
* Modals
|
|
52
|
-
* It applies a utility class `vi-scroll-locked` to the body.
|
|
51
|
+
* Locks or unlocks the document.body scroll based on the active overlays.
|
|
52
|
+
* Modals (and other overlays with scrollStrategy='block') require the body
|
|
53
|
+
* to be unscrollable. It applies a utility class `vi-scroll-locked` to the body.
|
|
53
54
|
*/
|
|
54
55
|
private _updateBodyScroll;
|
|
55
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-manager.d.ts","sourceRoot":"","sources":["../../../../libs/web-components/src/base/overlay-manager.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay-manager.d.ts","sourceRoot":"","sources":["../../../../libs/web-components/src/base/overlay-manager.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAS9C;;;;;;;;;;GAUG;AACH,cAAM,qBAAqB;IACzB,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,iBAAiB,CAAuB;IAEhD;;;;;;;;OAQG;IACI,QAAQ,CACb,OAAO,EAAE,WAAW,EACpB,IAAI,GAAE,WAAwB,EAC9B,cAAc,CAAC,EAAE,cAAc,GAC9B,MAAM;IAkBT;;;;;OAKG;IACI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAK7C;;;;;OAKG;IACI,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI;IAKrD;;;;;;OAMG;IACI,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO;IAQlD;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;CAsB1B;AAGD,eAAO,MAAM,cAAc,uBAA8B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
type Constructor<T = object> = new (...args: any[]) => T;
|
|
3
|
+
export declare class ResizableInterface {
|
|
4
|
+
resizable: boolean;
|
|
5
|
+
minWidth: number;
|
|
6
|
+
minHeight: number;
|
|
7
|
+
maxWidth: number;
|
|
8
|
+
maxHeight: number;
|
|
9
|
+
protected get _resizeTarget(): HTMLElement | null;
|
|
10
|
+
protected _renderResizeHandles(): TemplateResult;
|
|
11
|
+
protected _resetResize(): void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* ResizableMixin
|
|
15
|
+
*
|
|
16
|
+
* Provides native 8-direction resize capabilities using Pointer Events.
|
|
17
|
+
* Applies `width` and `height` inline styles to `_resizeTarget`.
|
|
18
|
+
*
|
|
19
|
+
* **Important**: All private fields use the `_rsz_` prefix to prevent
|
|
20
|
+
* name collisions when composed with other mixins (e.g., DraggableMixin).
|
|
21
|
+
*
|
|
22
|
+
* Subclasses MUST implement:
|
|
23
|
+
* - `_resizeTarget`: The HTML element that resizes (usually the dialog box).
|
|
24
|
+
* - Render `${this._renderResizeHandles()}` inside the component's template.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ResizableMixin<T extends Constructor<LitElement>>(Base: T): T & Constructor<ResizableInterface>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=resizable-mixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable-mixin.d.ts","sourceRoot":"","sources":["../../../../libs/web-components/src/base/resizable-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIjF,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,KAAK,aAAa,IAAI,WAAW,GAAG,IAAI,CAAC;IAClD,SAAS,CAAC,oBAAoB,IAAI,cAAc;IAChD,SAAS,CAAC,YAAY,IAAI,IAAI;CAC/B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAC9D,IAAI,EAAE,CAAC,GACN,CAAC,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAgNrC"}
|