@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
@@ -395,7 +395,9 @@ class BaseListItem extends BaseComponent {
395
395
  * Show navigation for single list
396
396
  */
397
397
  ngOnInit() {
398
- this.id = `fdp-list-item-${nextListItemId++}`;
398
+ if (!this.id || this.id === this.defaultId) {
399
+ this.id = `fdp-list-item-${nextListItemId++}`;
400
+ }
399
401
  }
400
402
  /** @hidden */
401
403
  ngOnDestroy() {
@@ -1039,10 +1041,17 @@ class ListComponent extends CollectionBaseInput {
1039
1041
  this._multiSelect = false;
1040
1042
  }
1041
1043
  this._selectionModel = new SelectionModel(this._multiSelect, this.selectedItems);
1042
- this._selectionModel.changed.pipe(takeUntil(this._destroyed)).subscribe(() => {
1044
+ this._selectionModel.changed.pipe(takeUntil(this._destroyed)).subscribe((selection) => {
1045
+ var _a, _b;
1043
1046
  this.selectedItems = this._selectionModel.selected;
1044
1047
  const event = new SelectionChangeEvent();
1045
1048
  event.selectedItems = this.selectedItems;
1049
+ if ((_a = selection.added) === null || _a === void 0 ? void 0 : _a.length) {
1050
+ event.added = selection.added[0];
1051
+ }
1052
+ if ((_b = selection.removed) === null || _b === void 0 ? void 0 : _b.length) {
1053
+ event.removed = selection.removed[0];
1054
+ }
1046
1055
  this.stateChanges.next(event);
1047
1056
  this.selectedItemChange.emit(event);
1048
1057
  });
@@ -1166,6 +1175,10 @@ class ListComponent extends CollectionBaseInput {
1166
1175
  this.stateChanges.next(item);
1167
1176
  }
1168
1177
  /** @hidden */
1178
+ _clearSelection() {
1179
+ this._selectionModel.clear();
1180
+ }
1181
+ /** @hidden */
1169
1182
  _setItems() {
1170
1183
  if (this._dsItems.length !== null && this.itemSize !== 0) {
1171
1184
  this._startIndex = 0;