ngx-kit 9.2.2 → 9.2.3
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
|
@@ -529,7 +529,12 @@ declare class NgxResizable implements OnDestroy {
|
|
|
529
529
|
private beforeTransition;
|
|
530
530
|
private beforeWidth;
|
|
531
531
|
private beforeHeight;
|
|
532
|
-
private
|
|
532
|
+
private beforeTranslate;
|
|
533
|
+
private baseComputedTranslate;
|
|
534
|
+
private keyboardBaseTranslate;
|
|
535
|
+
private keyboardBaseInlineTranslate;
|
|
536
|
+
private startMatrix;
|
|
537
|
+
private pointerInverse;
|
|
533
538
|
private pointerId;
|
|
534
539
|
private startWidth;
|
|
535
540
|
private startHeight;
|
|
@@ -538,23 +543,29 @@ declare class NgxResizable implements OnDestroy {
|
|
|
538
543
|
constructor(el: ElementRef<HTMLElement>);
|
|
539
544
|
ngOnDestroy(): void;
|
|
540
545
|
onPointerDown(e: PointerEvent): void;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
546
|
+
/** Entry point used by the typed NgxResizeHandle directive. */
|
|
547
|
+
beginResize(e: PointerEvent, direction: LogicalResizeDirection): void;
|
|
548
|
+
private onPointerMove;
|
|
549
|
+
private onPointerUp;
|
|
550
|
+
private onDocumentKeyDown;
|
|
544
551
|
private onPointerCancel;
|
|
545
552
|
private restoreBeforeResize;
|
|
553
|
+
/**
|
|
554
|
+
* Keyboard resizing respects the configured directions.
|
|
555
|
+
* The arrow keys move the active physical edge:
|
|
556
|
+
* - if only west is enabled, horizontal keys operate on west;
|
|
557
|
+
* - if only east is enabled, horizontal keys operate on east;
|
|
558
|
+
* - north/south follow the same rule vertically.
|
|
559
|
+
* Disabled axes are never modified.
|
|
560
|
+
*/
|
|
546
561
|
onHandleKeyDown(e: KeyboardEvent): void;
|
|
562
|
+
private chooseAxisEdge;
|
|
563
|
+
private keyboardDirection;
|
|
564
|
+
private isEditableTarget;
|
|
547
565
|
private calculate;
|
|
548
566
|
private apply;
|
|
549
|
-
/**
|
|
550
|
-
* `offsetWidth/Height` (what we measure and report) are BORDER-box sizes. The inline
|
|
551
|
-
* `width/height` we write are interpreted according to `box-sizing`: for the CSS default
|
|
552
|
-
* (`content-box`) writing the border-box number would make a padded/bordered block jump by
|
|
553
|
-
* its padding+border the instant a resize starts. Convert so the box is exactly the size
|
|
554
|
-
* reported in `IResizableOutput`.
|
|
555
|
-
*/
|
|
556
567
|
private toStyleSize;
|
|
557
|
-
private
|
|
568
|
+
private clampSize;
|
|
558
569
|
private finish;
|
|
559
570
|
private resolvedDirections;
|
|
560
571
|
private hitDirection;
|
|
@@ -639,6 +650,18 @@ declare class NgxDragPreview {
|
|
|
639
650
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxDragPreview, "[ngxDragPreview]", never, {}, {}, never, never, true, never>;
|
|
640
651
|
}
|
|
641
652
|
|
|
653
|
+
/**
|
|
654
|
+
* Typed handle API. Prefer ngxResizeHandle="se" in templates; the legacy
|
|
655
|
+
* data-ngx-resize-handle attribute remains available for backwards compatibility.
|
|
656
|
+
*/
|
|
657
|
+
declare class NgxResizeHandle {
|
|
658
|
+
readonly ngxResizeHandle: _angular_core.InputSignal<LogicalResizeDirection>;
|
|
659
|
+
private readonly parent;
|
|
660
|
+
onPointerDown(event: PointerEvent): void;
|
|
661
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxResizeHandle, never>;
|
|
662
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgxResizeHandle, "[ngxResizeHandle]", never, { "ngxResizeHandle": { "alias": "ngxResizeHandle"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
663
|
+
}
|
|
664
|
+
|
|
642
665
|
/**
|
|
643
666
|
* True when `element` sits inside a right-to-left context.
|
|
644
667
|
*
|
|
@@ -750,5 +773,5 @@ declare function stripEditorArtifacts(root: Element, options?: StripOptions): vo
|
|
|
750
773
|
/** Serialised, editor-free HTML of `el`'s children (the canvas content). */
|
|
751
774
|
declare function getCleanHtml(el: Element, options?: StripOptions): string;
|
|
752
775
|
|
|
753
|
-
export { AutoScroller, DragDropService, DragRef, DropListGroupRef, DropListRef, NGX_DRAGGABLE, NGX_DRAG_PREVIEW, NGX_DROPLIST, NGX_DROPLIST_GROUP, NGX_PLACEHOLDER, NgxDragPreview, NgxDraggable, NgxDropList, NgxDropListGroup, NgxPlaceholder, NgxResizable, PlaceHolderRef, adjustForZoom, checkBoundX, checkBoundY, clampResizeWithinBoundary, copyArrayItem, findScrollableAncestor, findScrollableAncestorForAxis, getCleanHtml, getPageZoom, getScrollPosition, isRtl, moveItemInArray, resolveLogicalDirection, stripEditorArtifacts, transferArrayItem };
|
|
776
|
+
export { AutoScroller, DragDropService, DragRef, DropListGroupRef, DropListRef, NGX_DRAGGABLE, NGX_DRAG_PREVIEW, NGX_DROPLIST, NGX_DROPLIST_GROUP, NGX_PLACEHOLDER, NgxDragPreview, NgxDraggable, NgxDropList, NgxDropListGroup, NgxPlaceholder, NgxResizable, NgxResizeHandle, PlaceHolderRef, adjustForZoom, checkBoundX, checkBoundY, clampResizeWithinBoundary, copyArrayItem, findScrollableAncestor, findScrollableAncestorForAxis, getCleanHtml, getPageZoom, getScrollPosition, isRtl, moveItemInArray, resolveLogicalDirection, stripEditorArtifacts, transferArrayItem };
|
|
754
777
|
export type { DragAxis, IDropEvent, IPosition, IResizableOutput, LogicalResizeDirection, ResizeDirection, StripOptions };
|