@fundamental-ngx/platform 0.43.37 → 0.43.38
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/approval-flow/approval-flow-user-list/approval-flow-user-list.component.d.ts +10 -0
- package/esm2020/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +2 -4
- package/esm2020/approval-flow/approval-flow-user-list/approval-flow-user-list.component.mjs +50 -14
- package/esm2020/list/base-list-item.mjs +4 -2
- package/esm2020/list/list.component.mjs +12 -2
- package/esm2020/table/components/table-row/table-row.component.mjs +3 -3
- package/esm2020/table-helpers/directives/table-virtual-scroll.directive.mjs +8 -2
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +52 -20
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-list.mjs +15 -2
- package/fesm2015/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +7 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +50 -18
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-list.mjs +14 -2
- package/fesm2020/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +7 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.38.tgz +0 -0
- package/list/list.component.d.ts +6 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/fundamental-ngx-platform-v0.43.37.tgz +0 -0
|
@@ -389,7 +389,9 @@ class BaseListItem extends BaseComponent {
|
|
|
389
389
|
* Show navigation for single list
|
|
390
390
|
*/
|
|
391
391
|
ngOnInit() {
|
|
392
|
-
this.id
|
|
392
|
+
if (!this.id || this.id === this.defaultId) {
|
|
393
|
+
this.id = `fdp-list-item-${nextListItemId++}`;
|
|
394
|
+
}
|
|
393
395
|
}
|
|
394
396
|
/** @hidden */
|
|
395
397
|
ngOnDestroy() {
|
|
@@ -1028,10 +1030,16 @@ class ListComponent extends CollectionBaseInput {
|
|
|
1028
1030
|
this._multiSelect = false;
|
|
1029
1031
|
}
|
|
1030
1032
|
this._selectionModel = new SelectionModel(this._multiSelect, this.selectedItems);
|
|
1031
|
-
this._selectionModel.changed.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
1033
|
+
this._selectionModel.changed.pipe(takeUntil(this._destroyed)).subscribe((selection) => {
|
|
1032
1034
|
this.selectedItems = this._selectionModel.selected;
|
|
1033
1035
|
const event = new SelectionChangeEvent();
|
|
1034
1036
|
event.selectedItems = this.selectedItems;
|
|
1037
|
+
if (selection.added?.length) {
|
|
1038
|
+
event.added = selection.added[0];
|
|
1039
|
+
}
|
|
1040
|
+
if (selection.removed?.length) {
|
|
1041
|
+
event.removed = selection.removed[0];
|
|
1042
|
+
}
|
|
1035
1043
|
this.stateChanges.next(event);
|
|
1036
1044
|
this.selectedItemChange.emit(event);
|
|
1037
1045
|
});
|
|
@@ -1152,6 +1160,10 @@ class ListComponent extends CollectionBaseInput {
|
|
|
1152
1160
|
this.stateChanges.next(item);
|
|
1153
1161
|
}
|
|
1154
1162
|
/** @hidden */
|
|
1163
|
+
_clearSelection() {
|
|
1164
|
+
this._selectionModel.clear();
|
|
1165
|
+
}
|
|
1166
|
+
/** @hidden */
|
|
1155
1167
|
_setItems() {
|
|
1156
1168
|
if (this._dsItems.length !== null && this.itemSize !== 0) {
|
|
1157
1169
|
this._startIndex = 0;
|