@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.
- 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/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +3 -1
- 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 +4 -3
- package/esm2020/table/table.component.mjs +43 -10
- package/esm2020/table-helpers/directives/table-virtual-scroll.directive.mjs +241 -37
- package/esm2020/table-helpers/models/directives.mjs +1 -1
- package/esm2020/table-helpers/services/table-column-resize.service.mjs +26 -5
- package/esm2020/table-helpers/table.mjs +1 -1
- 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-form.mjs +2 -0
- package/fesm2015/fundamental-ngx-platform-form.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 +369 -147
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +165 -131
- 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-form.mjs +2 -0
- package/fesm2020/fundamental-ngx-platform-form.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 +370 -148
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +164 -131
- 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/table/table.component.d.ts +9 -0
- package/table-helpers/directives/table-virtual-scroll.directive.d.ts +64 -5
- package/table-helpers/models/directives.d.ts +1 -0
- package/table-helpers/services/table-column-resize.service.d.ts +4 -0
- package/table-helpers/table.d.ts +10 -2
- 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
|
|
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;
|