@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
|
@@ -8315,7 +8315,7 @@ class MultiSelectService {
|
|
|
8315
8315
|
__classPrivateFieldGet(this, _MultiSelectService_destroy$, "f").next(true);
|
|
8316
8316
|
}
|
|
8317
8317
|
setSelectionModel(multiple = true, initiallySelectedValues = []) {
|
|
8318
|
-
this.selectionModel = new SelectionModel(multiple
|
|
8318
|
+
this.selectionModel = new SelectionModel(multiple);
|
|
8319
8319
|
this.selectionModel.changed.pipe(takeUntil(__classPrivateFieldGet(this, _MultiSelectService_destroy$, "f"))
|
|
8320
8320
|
// tap( change => {
|
|
8321
8321
|
// console.log('value selected', this.selectionModel.selected);
|
|
@@ -9304,7 +9304,7 @@ class MultiSelectComponent {
|
|
|
9304
9304
|
return !!origin;
|
|
9305
9305
|
}
|
|
9306
9306
|
ngOnInit() {
|
|
9307
|
-
this.multiSelectService.setSelectionModel(this.multiple
|
|
9307
|
+
this.multiSelectService.setSelectionModel(this.multiple);
|
|
9308
9308
|
this.multiSelectService.selectionModel.changed
|
|
9309
9309
|
.pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")), filter(() => !this.multiple), delay(0), tap(change => {
|
|
9310
9310
|
if (change.added.length) {
|
|
@@ -9340,6 +9340,8 @@ class MultiSelectComponent {
|
|
|
9340
9340
|
this.updateNativeSelect();
|
|
9341
9341
|
}))
|
|
9342
9342
|
.subscribe();
|
|
9343
|
+
// set initial values
|
|
9344
|
+
this.multiSelectService.selectionModel.select(...__classPrivateFieldGet(this, _MultiSelectComponent_value, "f"));
|
|
9343
9345
|
this.value$
|
|
9344
9346
|
.pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")))
|
|
9345
9347
|
.subscribe(value => {
|