@fundamental-ngx/platform 0.62.0-rc.2 → 0.62.0-rc.21
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/fesm2022/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-form.mjs +4 -4
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +3 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-list.mjs +37 -3
- package/fesm2022/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs +24 -38
- package/fesm2022/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table.mjs +51 -30
- package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/types/fundamental-ngx-platform-icon-tab-bar.d.ts +1 -1
- package/types/fundamental-ngx-platform-list.d.ts +11 -0
- package/types/fundamental-ngx-platform-table-helpers.d.ts +0 -4
- package/types/fundamental-ngx-platform-table.d.ts +30 -12
|
@@ -2823,8 +2823,6 @@ class TableDraggableDirective extends TableDraggable {
|
|
|
2823
2823
|
/** @hidden */
|
|
2824
2824
|
this.dragDropInProgress = false;
|
|
2825
2825
|
/** @hidden */
|
|
2826
|
-
this._ngZone = inject(NgZone);
|
|
2827
|
-
/** @hidden */
|
|
2828
2826
|
this._cdr = inject(ChangeDetectorRef, {
|
|
2829
2827
|
host: true
|
|
2830
2828
|
});
|
|
@@ -2872,41 +2870,35 @@ class TableDraggableDirective extends TableDraggable {
|
|
|
2872
2870
|
/** Method called when drag&drop event being cancelled. */
|
|
2873
2871
|
dropCancelled() {
|
|
2874
2872
|
/** After timeout to make click event handled first */
|
|
2875
|
-
|
|
2876
|
-
setTimeout(() => this._setDragInProgress(false));
|
|
2877
|
-
});
|
|
2873
|
+
setTimeout(() => this._setDragInProgress(false));
|
|
2878
2874
|
}
|
|
2879
2875
|
/** Method called when dragged item being dropped. */
|
|
2880
2876
|
dragDropItemDrop(event) {
|
|
2881
2877
|
/** After timeout to make click event handled first */
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
this._setDragInProgress(false);
|
|
2885
|
-
});
|
|
2878
|
+
setTimeout(() => {
|
|
2879
|
+
this._setDragInProgress(false);
|
|
2886
2880
|
});
|
|
2887
|
-
this.
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
return;
|
|
2895
|
-
}
|
|
2896
|
-
this._dragDropUpdateDragParentRowAttributes(dragRow);
|
|
2897
|
-
this._dragDropRearrangeTreeRows(dragRow, dropRow, event);
|
|
2898
|
-
this._dragDropUpdateDropRowAttributes(dragRow, dropRow, event.mode);
|
|
2899
|
-
if (!dropRow.expanded && event.mode === 'group') {
|
|
2900
|
-
this._table.toggleExpandableTableRow(dropRow, true);
|
|
2901
|
-
}
|
|
2902
|
-
else {
|
|
2903
|
-
this._table.onTableRowsChanged();
|
|
2904
|
-
}
|
|
2905
|
-
this._cdr.detectChanges();
|
|
2906
|
-
this._emitRowsRearrangeEvent(dragRow, dropRow, event);
|
|
2907
|
-
this._table.refreshDndList();
|
|
2881
|
+
if (this.isTreeTable && event.draggedItemIndex !== event.replacedItemIndex) {
|
|
2882
|
+
event.draggedItemIndex = this._table._tableCurrentlyRenderedRowsPlaceholder[event.draggedItemIndex];
|
|
2883
|
+
event.replacedItemIndex = this._table._tableCurrentlyRenderedRowsPlaceholder[event.replacedItemIndex];
|
|
2884
|
+
const dragRow = this._table._tableRows.find((row) => row === this._table._tableRowsVisible[event.draggedItemIndex]);
|
|
2885
|
+
const dropRow = this._table._tableRows.find((row) => row === this._table._tableRowsVisible[event.replacedItemIndex]);
|
|
2886
|
+
if (!dragRow || !dropRow || this._isDroppedInsideItself(dropRow, dragRow)) {
|
|
2887
|
+
return;
|
|
2908
2888
|
}
|
|
2909
|
-
|
|
2889
|
+
this._dragDropUpdateDragParentRowAttributes(dragRow);
|
|
2890
|
+
this._dragDropRearrangeTreeRows(dragRow, dropRow, event);
|
|
2891
|
+
this._dragDropUpdateDropRowAttributes(dragRow, dropRow, event.mode);
|
|
2892
|
+
if (!dropRow.expanded && event.mode === 'group') {
|
|
2893
|
+
this._table.toggleExpandableTableRow(dropRow, true);
|
|
2894
|
+
}
|
|
2895
|
+
else {
|
|
2896
|
+
this._table.onTableRowsChanged();
|
|
2897
|
+
}
|
|
2898
|
+
this._cdr.detectChanges();
|
|
2899
|
+
this._emitRowsRearrangeEvent(dragRow, dropRow, event);
|
|
2900
|
+
this._table.refreshDndList();
|
|
2901
|
+
}
|
|
2910
2902
|
}
|
|
2911
2903
|
/**
|
|
2912
2904
|
* @hidden
|
|
@@ -3013,12 +3005,6 @@ class TableDraggableDirective extends TableDraggable {
|
|
|
3013
3005
|
this._table._tableRows = [...allRows, ...dropRowItems, ...rowsToMove, ...rowsAfterDropRow];
|
|
3014
3006
|
}
|
|
3015
3007
|
/** @hidden */
|
|
3016
|
-
_onZoneFree(callback) {
|
|
3017
|
-
this._ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {
|
|
3018
|
-
callback();
|
|
3019
|
-
});
|
|
3020
|
-
}
|
|
3021
|
-
/** @hidden */
|
|
3022
3008
|
_blockScrolling() {
|
|
3023
3009
|
this._table._focusableGrid._preventKeydown = true;
|
|
3024
3010
|
this._table.tableContainer.nativeElement.addEventListener('DOMMouseScroll', preventDefault, false);
|
|
@@ -3664,7 +3650,7 @@ class TableVirtualScrollDirective extends TableVirtualScroll {
|
|
|
3664
3650
|
.pipe(filter$1(() => this.virtualScroll && !!this.bodyHeight), takeUntilDestroyed(this._destroyRef))
|
|
3665
3651
|
.subscribe((scrollable) => {
|
|
3666
3652
|
this.calculateVirtualScrollRows();
|
|
3667
|
-
this.
|
|
3653
|
+
this._tableService.setTableState({
|
|
3668
3654
|
...this._table.getTableState(),
|
|
3669
3655
|
scrollTopPosition: scrollable.getScrollTop()
|
|
3670
3656
|
});
|