info-library 2.10.36 → 2.10.37
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/bundles/info-library.umd.js +31 -4
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/controls/autocomplete/autocomplete.component.js +20 -3
- package/esm2015/controls/multi-select/multi-select.component.js +5 -2
- package/esm2015/controls/select/select.component.js +5 -2
- package/fesm2015/info-library.js +27 -4
- package/fesm2015/info-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -2520,7 +2520,18 @@
|
|
|
2520
2520
|
*/function (/**
|
|
2521
2521
|
* @param {?} a
|
|
2522
2522
|
* @return {?}
|
|
2523
|
-
*/ a) {
|
|
2523
|
+
*/ a) {
|
|
2524
|
+
_this.data = a.data;
|
|
2525
|
+
_this.loading = false;
|
|
2526
|
+
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2527
|
+
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2528
|
+
* @param {?} r
|
|
2529
|
+
* @return {?}
|
|
2530
|
+
*/function (/**
|
|
2531
|
+
* @param {?} r
|
|
2532
|
+
* @return {?}
|
|
2533
|
+
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2534
|
+
}));
|
|
2524
2535
|
this.control.valueChanges.subscribe(( /**
|
|
2525
2536
|
* @param {?} value
|
|
2526
2537
|
* @return {?}
|
|
@@ -2542,7 +2553,17 @@
|
|
|
2542
2553
|
*/function (/**
|
|
2543
2554
|
* @param {?} a
|
|
2544
2555
|
* @return {?}
|
|
2545
|
-
*/ a) {
|
|
2556
|
+
*/ a) {
|
|
2557
|
+
_this.data = _this.options = a.data;
|
|
2558
|
+
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2559
|
+
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2560
|
+
* @param {?} r
|
|
2561
|
+
* @return {?}
|
|
2562
|
+
*/function (/**
|
|
2563
|
+
* @param {?} r
|
|
2564
|
+
* @return {?}
|
|
2565
|
+
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2566
|
+
}));
|
|
2546
2567
|
}
|
|
2547
2568
|
};
|
|
2548
2569
|
/**
|
|
@@ -5814,8 +5835,11 @@
|
|
|
5814
5835
|
* @param {?} r
|
|
5815
5836
|
* @return {?}
|
|
5816
5837
|
*/ r) {
|
|
5817
|
-
if (r.success)
|
|
5838
|
+
if (r.success) {
|
|
5818
5839
|
_this.data = r.data;
|
|
5840
|
+
if (_this.selectedValue)
|
|
5841
|
+
_this.onChangeValue();
|
|
5842
|
+
}
|
|
5819
5843
|
_this.loading = false;
|
|
5820
5844
|
}));
|
|
5821
5845
|
};
|
|
@@ -6360,8 +6384,11 @@
|
|
|
6360
6384
|
* @param {?} r
|
|
6361
6385
|
* @return {?}
|
|
6362
6386
|
*/ r) {
|
|
6363
|
-
if (r.success)
|
|
6387
|
+
if (r.success) {
|
|
6364
6388
|
_this.data = r.data;
|
|
6389
|
+
if ((_this.selectedValues || []).length > 0)
|
|
6390
|
+
_this.onChangeValue();
|
|
6391
|
+
}
|
|
6365
6392
|
_this.loading = false;
|
|
6366
6393
|
}));
|
|
6367
6394
|
};
|