matcha-components 20.200.0 → 20.201.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.
|
@@ -9081,27 +9081,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
9081
9081
|
}] });
|
|
9082
9082
|
|
|
9083
9083
|
class MatchaStepperControllerComponent {
|
|
9084
|
-
constructor(stepperState) {
|
|
9084
|
+
constructor(stepperState, cdr) {
|
|
9085
9085
|
this.stepperState = stepperState;
|
|
9086
|
+
this.cdr = cdr;
|
|
9086
9087
|
this.steps = [];
|
|
9087
9088
|
this.activeStep = 0;
|
|
9088
9089
|
}
|
|
9089
9090
|
ngOnInit() {
|
|
9090
|
-
this.stepperState.steps$.subscribe((steps) =>
|
|
9091
|
-
|
|
9091
|
+
this.stepperState.steps$.subscribe((steps) => {
|
|
9092
|
+
this.steps = steps;
|
|
9093
|
+
this.cdr.detectChanges();
|
|
9094
|
+
});
|
|
9095
|
+
this.stepperState.activeStep$.subscribe(step => {
|
|
9096
|
+
this.activeStep = step;
|
|
9097
|
+
this.cdr.detectChanges();
|
|
9098
|
+
});
|
|
9092
9099
|
}
|
|
9093
9100
|
goToStep(index) {
|
|
9094
9101
|
if (this.disableNext && this.activeStep < index)
|
|
9095
9102
|
return;
|
|
9096
9103
|
this.stepperState.setActiveStep(index);
|
|
9097
9104
|
}
|
|
9098
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperControllerComponent, deps: [{ token: MatchaStepperStateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperControllerComponent, deps: [{ token: MatchaStepperStateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9099
9106
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaStepperControllerComponent, isStandalone: false, selector: "matcha-stepper-controller", inputs: { disableNext: "disableNext" }, providers: [], ngImport: i0, template: "<div class=\"flex-column flex-align-end gap-16\">\n <span class=\"fw-900 fs-12 lh-12\">{{steps[activeStep]}}</span>\n <div class=\"d-flex align-center gap-8\">\n <ng-container *ngFor=\"let step of steps; let i = index\">\n <div (click)=\"goToStep(i)\" class=\"cursor-pointer w-32 h-8 radius-8\" [class.background-accent]=\"i <= activeStep\" [class.background-disabled]=\"i > activeStep\"></div> \n </ng-container>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
9100
9107
|
}
|
|
9101
9108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperControllerComponent, decorators: [{
|
|
9102
9109
|
type: Component,
|
|
9103
9110
|
args: [{ selector: 'matcha-stepper-controller', providers: [], standalone: false, template: "<div class=\"flex-column flex-align-end gap-16\">\n <span class=\"fw-900 fs-12 lh-12\">{{steps[activeStep]}}</span>\n <div class=\"d-flex align-center gap-8\">\n <ng-container *ngFor=\"let step of steps; let i = index\">\n <div (click)=\"goToStep(i)\" class=\"cursor-pointer w-32 h-8 radius-8\" [class.background-accent]=\"i <= activeStep\" [class.background-disabled]=\"i > activeStep\"></div> \n </ng-container>\n </div>\n</div>\n" }]
|
|
9104
|
-
}], ctorParameters: () => [{ type: MatchaStepperStateService }], propDecorators: { disableNext: [{
|
|
9111
|
+
}], ctorParameters: () => [{ type: MatchaStepperStateService }, { type: i0.ChangeDetectorRef }], propDecorators: { disableNext: [{
|
|
9105
9112
|
type: Input
|
|
9106
9113
|
}] } });
|
|
9107
9114
|
|
|
@@ -9150,8 +9157,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
9150
9157
|
}] } });
|
|
9151
9158
|
|
|
9152
9159
|
class MatchaStepperContentComponent {
|
|
9153
|
-
constructor(stepperState) {
|
|
9160
|
+
constructor(stepperState, cdr) {
|
|
9154
9161
|
this.stepperState = stepperState;
|
|
9162
|
+
this.cdr = cdr;
|
|
9155
9163
|
this.stepsArray = [];
|
|
9156
9164
|
this.activeStep = 0;
|
|
9157
9165
|
}
|
|
@@ -9160,7 +9168,10 @@ class MatchaStepperContentComponent {
|
|
|
9160
9168
|
this.stepsSubscription = this.steps.changes.subscribe(() => {
|
|
9161
9169
|
this.updateSteps();
|
|
9162
9170
|
});
|
|
9163
|
-
this.stepperState.activeStep$.subscribe(step =>
|
|
9171
|
+
this.stepperState.activeStep$.subscribe(step => {
|
|
9172
|
+
this.activeStep = step;
|
|
9173
|
+
this.cdr.detectChanges();
|
|
9174
|
+
});
|
|
9164
9175
|
}
|
|
9165
9176
|
ngOnDestroy() {
|
|
9166
9177
|
if (this.stepsSubscription) {
|
|
@@ -9181,7 +9192,7 @@ class MatchaStepperContentComponent {
|
|
|
9181
9192
|
prevStep() {
|
|
9182
9193
|
this.stepperState.prevStep();
|
|
9183
9194
|
}
|
|
9184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperContentComponent, deps: [{ token: MatchaStepperStateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MatchaStepperContentComponent, deps: [{ token: MatchaStepperStateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9185
9196
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: MatchaStepperContentComponent, isStandalone: false, selector: "matcha-stepper-content", queries: [{ propertyName: "steps", predicate: StepComponent }], ngImport: i0, template: `
|
|
9186
9197
|
<ng-container *ngIf="stepsArray.length">
|
|
9187
9198
|
<ng-container *ngTemplateOutlet="stepsArray[activeStep]?.template || null"></ng-container>
|
|
@@ -9199,7 +9210,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
9199
9210
|
`,
|
|
9200
9211
|
standalone: false
|
|
9201
9212
|
}]
|
|
9202
|
-
}], ctorParameters: () => [{ type: MatchaStepperStateService }], propDecorators: { steps: [{
|
|
9213
|
+
}], ctorParameters: () => [{ type: MatchaStepperStateService }, { type: i0.ChangeDetectorRef }], propDecorators: { steps: [{
|
|
9203
9214
|
type: ContentChildren,
|
|
9204
9215
|
args: [StepComponent]
|
|
9205
9216
|
}] } });
|