@libs-ui/services-grid-layout 0.2.357-24 → 0.2.357-26
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/canvas/grid-layout-canvas.component.d.ts +18 -0
- package/esm2022/canvas/grid-layout-canvas.component.mjs +31 -8
- package/esm2022/grid-layout.service.mjs +15 -6
- package/esm2022/interfaces/grid-layout.interface.mjs +1 -1
- package/fesm2022/libs-ui-services-grid-layout.mjs +44 -12
- package/fesm2022/libs-ui-services-grid-layout.mjs.map +1 -1
- package/grid-layout.service.d.ts +6 -2
- package/interfaces/grid-layout.interface.d.ts +15 -0
- package/package.json +3 -3
|
@@ -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?;
|
|
@@ -202,6 +211,15 @@ export declare class LibsUiGridLayoutCanvasComponent implements AfterViewInit, O
|
|
|
202
211
|
private emitToggleType;
|
|
203
212
|
/** khối này có phải container không (có khối con) */
|
|
204
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;
|
|
205
223
|
/** container đã chạm trần lồng thì không cho thêm khối vào trong nữa */
|
|
206
224
|
protected canAddInside(item: T_gridLayout_node): boolean;
|
|
207
225
|
/** khối đơn ở cấp chưa chạm trần mới được chuyển thành container */
|