@coreui/angular-pro 4.4.3 → 4.4.4
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/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +4 -2
- package/esm2020/lib/multi-select/multi-select.service.mjs +2 -2
- package/esm2020/lib/smart-table/smart-table.type.mjs +1 -1
- package/fesm2015/coreui-angular-pro.mjs +4 -2
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +4 -2
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/smart-table/smart-table-head/smart-table-head.component.d.ts +3 -1
- package/lib/smart-table/smart-table.type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8390,7 +8390,7 @@ class MultiSelectService {
|
|
|
8390
8390
|
__classPrivateFieldGet(this, _MultiSelectService_destroy$, "f").next(true);
|
|
8391
8391
|
}
|
|
8392
8392
|
setSelectionModel(multiple = true, initiallySelectedValues = []) {
|
|
8393
|
-
this.selectionModel = new SelectionModel(multiple
|
|
8393
|
+
this.selectionModel = new SelectionModel(multiple);
|
|
8394
8394
|
this.selectionModel.changed.pipe(takeUntil(__classPrivateFieldGet(this, _MultiSelectService_destroy$, "f"))
|
|
8395
8395
|
// tap( change => {
|
|
8396
8396
|
// console.log('value selected', this.selectionModel.selected);
|
|
@@ -9390,7 +9390,7 @@ class MultiSelectComponent {
|
|
|
9390
9390
|
return !!origin;
|
|
9391
9391
|
}
|
|
9392
9392
|
ngOnInit() {
|
|
9393
|
-
this.multiSelectService.setSelectionModel(this.multiple
|
|
9393
|
+
this.multiSelectService.setSelectionModel(this.multiple);
|
|
9394
9394
|
this.multiSelectService.selectionModel.changed
|
|
9395
9395
|
.pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")), filter(() => !this.multiple), delay(0), tap(change => {
|
|
9396
9396
|
if (change.added.length) {
|
|
@@ -9426,6 +9426,8 @@ class MultiSelectComponent {
|
|
|
9426
9426
|
this.updateNativeSelect();
|
|
9427
9427
|
}))
|
|
9428
9428
|
.subscribe();
|
|
9429
|
+
// set initial values
|
|
9430
|
+
this.multiSelectService.selectionModel.select(...__classPrivateFieldGet(this, _MultiSelectComponent_value, "f"));
|
|
9429
9431
|
this.value$
|
|
9430
9432
|
.pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")))
|
|
9431
9433
|
.subscribe(value => {
|