@libs-ui/services-grid-layout 0.2.357-23 → 0.2.357-25

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.
@@ -92,6 +92,15 @@ export declare class LibsUiGridLayoutCanvasComponent implements AfterViewInit, O
92
92
  private readonly zoomDockRef;
93
93
  /** mỗi ô một chỗ gắn riêng — cùng thứ tự với `children()` */
94
94
  private readonly itemHosts;
95
+ /**
96
+ * Khuôn mặt phẳng LỒNG của từng khối container, để đưa vào component vỏ khi khối đó tự khai
97
+ * `getComponentOutlet`.
98
+ *
99
+ * 🔴 Danh sách này KHÔNG cùng thứ tự với `children()`: `ng-template #childCanvasTpl` chỉ tồn tại
100
+ * cho khối CÓ CON. Ghép theo index là gán nhầm khuôn của khối này cho khối khác — phải lọc lại
101
+ * đúng cùng điều kiện mà template dùng (xem `childCanvasTemplateOf`).
102
+ */
103
+ private readonly childCanvasTemplates;
95
104
  /** Khung xem trước vị trí thả thẻ từ bên ngoài (snapped ghost preview) */
96
105
  protected readonly dropGhost: import("@angular/core").WritableSignal<T_gridLayout_dropGhost | undefined>;
97
106
  private activeHoveredEl?;
@@ -128,6 +137,11 @@ export declare class LibsUiGridLayoutCanvasComponent implements AfterViewInit, O
128
137
  */
129
138
  protected readonly toolbarContexts: import("@angular/core").Signal<T_gridLayout_toolbarContext[]>;
130
139
  protected readonly isNestedCanvas: import("@angular/core").Signal<boolean>;
140
+ /**
141
+ * Khe nhìn thấy giữa các khối CẤP GỐC. Mặt phẳng lồng trả 0 — khối con là các dòng của cùng một
142
+ * thẻ, tách chúng ra làm chúng trông như thẻ rời.
143
+ */
144
+ protected readonly visualGap: import("@angular/core").Signal<number>;
131
145
  /** trần lồng container — khối đã chạm trần thì không cho chuyển thành container */
132
146
  protected readonly maxContainerDepth: import("@angular/core").Signal<number>;
133
147
  /**
@@ -197,6 +211,15 @@ export declare class LibsUiGridLayoutCanvasComponent implements AfterViewInit, O
197
211
  private emitToggleType;
198
212
  /** khối này có phải container không (có khối con) */
199
213
  protected isContainer(item: T_gridLayout_node): boolean;
214
+ /**
215
+ * Lấy đúng khuôn mặt phẳng lồng của MỘT khối.
216
+ *
217
+ * 🔴 `viewChildren('childCanvasTpl')` chỉ chứa khuôn của khối CÓ CON, còn `children()` chứa mọi
218
+ * khối — hai danh sách lệch nhau. Phải lọc `children()` theo cùng điều kiện mà template dùng rồi
219
+ * mới tra theo vị trí trong danh sách đã lọc; ghép thẳng theo index của `children()` là gán khuôn
220
+ * của khối này cho khối khác, và thẻ con hiện sai chỗ.
221
+ */
222
+ private childCanvasTemplateOf;
200
223
  /** container đã chạm trần lồng thì không cho thêm khối vào trong nữa */
201
224
  protected canAddInside(item: T_gridLayout_node): boolean;
202
225
  /** khối đơn ở cấp chưa chạm trần mới được chuyển thành container */
@@ -27,7 +27,7 @@ export declare const findHoveredGroup: (elements: Element[], canvasContainer: HT
27
27
  /**
28
28
  * Calculates snapped spatial coordinates and pixel dimensions for drop ghost preview box.
29
29
  */
30
- export declare const calculateDropGhost: (event: DragEvent, canvasContainer: HTMLElement, root: T_gridLayout_node, payload: T_gridLayout_externalDragPayload, totalCols?: number) => T_gridLayout_dropGhost | undefined;
30
+ export declare const calculateDropGhost: (event: DragEvent, canvasContainer: HTMLElement, root: T_gridLayout_node, payload: T_gridLayout_externalDragPayload, totalCols?: number, rowStep?: number) => T_gridLayout_dropGhost | undefined;
31
31
  /** Tìm khối theo id trong cây, đi sâu vào mọi container. */
32
32
  export declare const findNodeRecursive: (root: T_gridLayout_node, id: string) => T_gridLayout_node | undefined;
33
33
  /** Tìm khối CHA trực tiếp của một khối, đi sâu vào mọi container. */
@@ -28,7 +28,7 @@ export declare class LibsUiGridLayoutDragController {
28
28
  * Gọi ở `dragover` của khung chứa mặt phẳng. Trả ghost để nơi dùng vẽ khung xem trước, đồng thời
29
29
  * tự bật ô li của lưới đang được kéo tới.
30
30
  */
31
- onDragOver(event: DragEvent, container: HTMLElement | undefined, root: T_gridLayout_node | undefined, totalCols?: number): T_gridLayout_dropGhost | undefined;
31
+ onDragOver(event: DragEvent, container: HTMLElement | undefined, root: T_gridLayout_node | undefined, totalCols?: number, rowStep?: number): T_gridLayout_dropGhost | undefined;
32
32
  /** Bật ô li của lưới CẤP TRANG trong suốt lượt kéo, tắt lưới cũ nếu khung chứa đã đổi. */
33
33
  private showRootGrid;
34
34
  }