@alauda/ui 6.0.1-beta → 6.0.1-beta.0
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/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +8 -2
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/steps/steps.component.js +11 -4
- package/esm2015/steps/steps.component.ngfactory.js +1 -1
- package/esm2015/steps/steps.component.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +8 -2
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/steps/steps.component.d.ts +4 -2
package/bundles/alauda-ui.umd.js
CHANGED
|
@@ -12700,6 +12700,7 @@
|
|
|
12700
12700
|
this.selectedIndexChange = new i0.EventEmitter();
|
|
12701
12701
|
this.currentIndexChange$$ = new rxjs.BehaviorSubject(0);
|
|
12702
12702
|
this.stepsChange$$ = new rxjs.BehaviorSubject([]);
|
|
12703
|
+
this.destroy$$ = new rxjs.Subject();
|
|
12703
12704
|
}
|
|
12704
12705
|
Object.defineProperty(StepsComponent.prototype, "steps", {
|
|
12705
12706
|
get: function () {
|
|
@@ -12724,12 +12725,14 @@
|
|
|
12724
12725
|
});
|
|
12725
12726
|
StepsComponent.prototype.ngOnInit = function () {
|
|
12726
12727
|
var _this = this;
|
|
12727
|
-
this.currentIndexChange
|
|
12728
|
+
this.currentIndexChange$$
|
|
12729
|
+
.pipe(operators.takeUntil(this.destroy$$))
|
|
12730
|
+
.subscribe(function (index) {
|
|
12728
12731
|
if (_this.type === 'step') {
|
|
12729
12732
|
_this.setCurrentIndex(index);
|
|
12730
12733
|
}
|
|
12731
12734
|
});
|
|
12732
|
-
this.stepsChange$$.subscribe(function (steps) {
|
|
12735
|
+
this.stepsChange$$.pipe(operators.takeUntil(this.destroy$$)).subscribe(function (steps) {
|
|
12733
12736
|
if (_this.type === 'progress') {
|
|
12734
12737
|
_this.getProgressCurrentIndex(steps);
|
|
12735
12738
|
}
|
|
@@ -12829,6 +12832,9 @@
|
|
|
12829
12832
|
? false
|
|
12830
12833
|
: firstDefaultIndex === i;
|
|
12831
12834
|
};
|
|
12835
|
+
StepsComponent.prototype.ngOnDestroy = function () {
|
|
12836
|
+
this.destroy$$.next();
|
|
12837
|
+
};
|
|
12832
12838
|
return StepsComponent;
|
|
12833
12839
|
}());
|
|
12834
12840
|
StepsComponent.decorators = [
|