@fundamental-ngx/platform 0.43.36 → 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.
Files changed (42) hide show
  1. package/approval-flow/approval-flow-user-list/approval-flow-user-list.component.d.ts +10 -0
  2. package/esm2020/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +2 -4
  3. package/esm2020/approval-flow/approval-flow-user-list/approval-flow-user-list.component.mjs +50 -14
  4. package/esm2020/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +3 -1
  5. package/esm2020/list/base-list-item.mjs +4 -2
  6. package/esm2020/list/list.component.mjs +12 -2
  7. package/esm2020/table/components/table-row/table-row.component.mjs +4 -3
  8. package/esm2020/table/table.component.mjs +43 -10
  9. package/esm2020/table-helpers/directives/table-virtual-scroll.directive.mjs +241 -37
  10. package/esm2020/table-helpers/models/directives.mjs +1 -1
  11. package/esm2020/table-helpers/services/table-column-resize.service.mjs +26 -5
  12. package/esm2020/table-helpers/table.mjs +1 -1
  13. package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +52 -20
  14. package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  15. package/fesm2015/fundamental-ngx-platform-form.mjs +2 -0
  16. package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
  17. package/fesm2015/fundamental-ngx-platform-list.mjs +15 -2
  18. package/fesm2015/fundamental-ngx-platform-list.mjs.map +1 -1
  19. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +369 -147
  20. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  21. package/fesm2015/fundamental-ngx-platform-table.mjs +165 -131
  22. package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
  23. package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +50 -18
  24. package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  25. package/fesm2020/fundamental-ngx-platform-form.mjs +2 -0
  26. package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
  27. package/fesm2020/fundamental-ngx-platform-list.mjs +14 -2
  28. package/fesm2020/fundamental-ngx-platform-list.mjs.map +1 -1
  29. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +370 -148
  30. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  31. package/fesm2020/fundamental-ngx-platform-table.mjs +164 -131
  32. package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
  33. package/fundamental-ngx-platform-v0.43.38.tgz +0 -0
  34. package/list/list.component.d.ts +6 -0
  35. package/package.json +4 -4
  36. package/schematics/ng-add/index.js +1 -1
  37. package/table/table.component.d.ts +9 -0
  38. package/table-helpers/directives/table-virtual-scroll.directive.d.ts +64 -5
  39. package/table-helpers/models/directives.d.ts +1 -0
  40. package/table-helpers/services/table-column-resize.service.d.ts +4 -0
  41. package/table-helpers/table.d.ts +10 -2
  42. package/fundamental-ngx-platform-v0.43.36.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 = `fdp-list-item-${nextListItemId++}`;
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;