ngx-kit 9.0.1 → 9.1.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/package.json
CHANGED
|
@@ -268,6 +268,8 @@ declare class DragRef<T = unknown> {
|
|
|
268
268
|
private sourceDisplay;
|
|
269
269
|
private sourcePointerEvents;
|
|
270
270
|
private sourceTransition;
|
|
271
|
+
private sourceWillChange;
|
|
272
|
+
private sourceTransform;
|
|
271
273
|
/** True while a drop-list drag (body preview + placeholder) is in progress. Free drag: always false. */
|
|
272
274
|
private listDrag;
|
|
273
275
|
private cachedLists;
|
|
@@ -399,7 +401,6 @@ declare class NgxDraggable<T = unknown> implements OnInit, OnDestroy, AfterConte
|
|
|
399
401
|
readonly dragEnd: _angular_core.OutputEmitterRef<IPosition>;
|
|
400
402
|
readonly _ref: DragRef<T>;
|
|
401
403
|
readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
402
|
-
private readonly doc;
|
|
403
404
|
private readonly service;
|
|
404
405
|
private readonly scroller;
|
|
405
406
|
private down;
|
|
@@ -444,7 +445,7 @@ declare class NgxDraggable<T = unknown> implements OnInit, OnDestroy, AfterConte
|
|
|
444
445
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxDraggable<any>, "[NgxDraggable],[ngxDraggable]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "boundary": { "alias": "boundary"; "required": false; "isSignal": true; }; "dragRootElement": { "alias": "dragRootElement"; "required": false; "isSignal": true; }; "dragHandle": { "alias": "dragHandle"; "required": false; "isSignal": true; }; "lockAxis": { "alias": "lockAxis"; "required": false; "isSignal": true; }; "dragThreshold": { "alias": "dragThreshold"; "required": false; "isSignal": true; }; "keyboardStep": { "alias": "keyboardStep"; "required": false; "isSignal": true; }; "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; }; }, { "disabled": "disabledChange"; "dragRootElement": "dragRootElementChange"; "dragHandle": "dragHandleChange"; "dragStart": "dragStart"; "dragMove": "dragMove"; "dragEnd": "dragEnd"; }, ["customPreview"], never, true, never>;
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
declare class NgxResizable {
|
|
448
|
+
declare class NgxResizable implements OnDestroy {
|
|
448
449
|
private readonly el;
|
|
449
450
|
disabled: _angular_core.ModelSignal<boolean>;
|
|
450
451
|
readonly minWidth: _angular_core.ModelSignal<number>;
|
|
@@ -472,11 +473,18 @@ declare class NgxResizable {
|
|
|
472
473
|
private beforeHeight;
|
|
473
474
|
private beforeTransform;
|
|
474
475
|
private pointerId;
|
|
476
|
+
private startWidth;
|
|
477
|
+
private startHeight;
|
|
478
|
+
private removeDocumentListeners;
|
|
479
|
+
private readonly renderer;
|
|
475
480
|
constructor(el: ElementRef<HTMLElement>);
|
|
481
|
+
ngOnDestroy(): void;
|
|
476
482
|
onPointerDown(e: PointerEvent): void;
|
|
477
483
|
onPointerMove(e: PointerEvent): void;
|
|
478
484
|
onPointerUp(e: PointerEvent): void;
|
|
479
485
|
onDocumentKeyDown(e: KeyboardEvent): void;
|
|
486
|
+
private onPointerCancel;
|
|
487
|
+
private restoreBeforeResize;
|
|
480
488
|
onHandleKeyDown(e: KeyboardEvent): void;
|
|
481
489
|
private calculate;
|
|
482
490
|
private apply;
|
|
@@ -597,9 +605,9 @@ declare function clampResizeWithinBoundary(boundaryRect: DOMRect | undefined, st
|
|
|
597
605
|
top: number;
|
|
598
606
|
};
|
|
599
607
|
/** Current page zoom level (1 = 100%). Falls back to devicePixelRatio pre visualViewport. */
|
|
600
|
-
declare function getPageZoom(): number;
|
|
608
|
+
declare function getPageZoom(element?: HTMLElement): number;
|
|
601
609
|
/** Adjusts a raw pointer-derived value for the current page zoom level. */
|
|
602
|
-
declare function adjustForZoom(value: number): number;
|
|
610
|
+
declare function adjustForZoom(value: number, element?: HTMLElement): number;
|
|
603
611
|
|
|
604
612
|
/**
|
|
605
613
|
* Auto-scrolls the nearest scrollable ancestor (or window) while the pointer
|
|
@@ -609,6 +617,7 @@ declare function adjustForZoom(value: number): number;
|
|
|
609
617
|
declare class AutoScroller {
|
|
610
618
|
private raf;
|
|
611
619
|
private container;
|
|
620
|
+
private win?;
|
|
612
621
|
private speed;
|
|
613
622
|
private onTick?;
|
|
614
623
|
private readonly edge;
|