@porscheinformatik/material-addons 10.2.3 → 10.2.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/bundles/porscheinformatik-material-addons.umd.js +14 -7
- package/bundles/porscheinformatik-material-addons.umd.js.map +1 -1
- package/bundles/porscheinformatik-material-addons.umd.min.js +2 -2
- package/bundles/porscheinformatik-material-addons.umd.min.js.map +1 -1
- package/esm2015/lib/flowbar/flowbar.component.js +7 -3
- package/esm2015/lib/stepper/stepper.component.js +8 -6
- package/fesm2015/porscheinformatik-material-addons.js +13 -7
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/flowbar/flowbar.component.d.ts +1 -0
- package/lib/stepper/stepper.component.d.ts +1 -1
- package/package.json +1 -1
- package/porscheinformatik-material-addons.metadata.json +1 -1
|
@@ -2154,8 +2154,9 @@
|
|
|
2154
2154
|
StepComponent.prototype.ngOnDestroy = function () {
|
|
2155
2155
|
this._isSelected.unsubscribe();
|
|
2156
2156
|
};
|
|
2157
|
-
StepComponent.prototype.next = function () {
|
|
2158
|
-
|
|
2157
|
+
StepComponent.prototype.next = function (markFormAsTouched) {
|
|
2158
|
+
if (markFormAsTouched === void 0) { markFormAsTouched = true; }
|
|
2159
|
+
this.stepValidation(markFormAsTouched);
|
|
2159
2160
|
if (this.onNext.observers.length <= 0) {
|
|
2160
2161
|
this.stepper.next();
|
|
2161
2162
|
}
|
|
@@ -2172,7 +2173,7 @@
|
|
|
2172
2173
|
this.onHeaderClick.emit(index);
|
|
2173
2174
|
};
|
|
2174
2175
|
StepComponent.prototype.completeLast = function () {
|
|
2175
|
-
this.stepValidation();
|
|
2176
|
+
this.stepValidation(true);
|
|
2176
2177
|
this.stepClosed = true;
|
|
2177
2178
|
if (this.onDone.observers.length <= 0) {
|
|
2178
2179
|
this.stepper.next();
|
|
@@ -2184,9 +2185,11 @@
|
|
|
2184
2185
|
this.completed = true;
|
|
2185
2186
|
this.state = stepper.STEP_STATE.DONE;
|
|
2186
2187
|
};
|
|
2187
|
-
StepComponent.prototype.stepValidation = function () {
|
|
2188
|
+
StepComponent.prototype.stepValidation = function (markFormAsTouched) {
|
|
2188
2189
|
var _a, _b;
|
|
2189
|
-
(
|
|
2190
|
+
if (markFormAsTouched) {
|
|
2191
|
+
(_a = this.stepControl) === null || _a === void 0 ? void 0 : _a.markAllAsTouched();
|
|
2192
|
+
}
|
|
2190
2193
|
if ((_b = this.stepControl) === null || _b === void 0 ? void 0 : _b.valid) {
|
|
2191
2194
|
this.hasError = false;
|
|
2192
2195
|
this.completed = true;
|
|
@@ -2445,6 +2448,10 @@
|
|
|
2445
2448
|
FlowbarComponent.prototype.ngAfterViewInit = function () {
|
|
2446
2449
|
this.stepper._getIndicatorType = function () { return 'number'; };
|
|
2447
2450
|
};
|
|
2451
|
+
FlowbarComponent.prototype.getIndexForActiveStep = function () {
|
|
2452
|
+
var selectedIndex = this._steps.indexOf(this._activeStep);
|
|
2453
|
+
return selectedIndex === -1 ? 0 : selectedIndex;
|
|
2454
|
+
};
|
|
2448
2455
|
FlowbarComponent.prototype.changeActiveStep = function (step) {
|
|
2449
2456
|
var previousIndex = this._steps.indexOf(this._activeStep);
|
|
2450
2457
|
this._activeStep = step;
|
|
@@ -2597,8 +2604,8 @@
|
|
|
2597
2604
|
FlowbarComponent.decorators = [
|
|
2598
2605
|
{ type: i0.Component, args: [{
|
|
2599
2606
|
selector: 'mad-flowbar',
|
|
2600
|
-
template: "<div class=\"stepper-container\">\n <mat-horizontal-stepper #stepper (click)=\"triggerClick()\">\n <mat-step *ngFor=\"let step of _steps\" [aria-labelledby]=\"!step.enabled ? 'disabled' : null\">\n <ng-template matStepLabel>\n <div class=\"step-header-overlay\" *ngIf=\"this._headerClick.observers.length > 0\" (click)=\"headerClick($event, step)\"></div>\n <span>{{step.label}}</span>\n </ng-template>\n </mat-step>\n </mat-horizontal-stepper>\n</div>\n",
|
|
2601
|
-
styles: [".stepper-container{display:flex;padding:0 1rem}::ng-deep .mat-stepper-horizontal .mat-horizontal-stepper-header{height:auto;padding:0}::ng-deep .mat-step-header[aria-labelledby=disabled]{cursor:not-allowed;pointer-events:none!important}::ng-deep .mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 10px}::ng-deep .mat-stepper-horizontal .mat-stepper-horizontal-line{border-top-width:4px;margin:0 5px}.step-header-overlay{height:100%;position:absolute;width:100%}"]
|
|
2607
|
+
template: "<div class=\"stepper-container\">\n <mat-horizontal-stepper #stepper [selectedIndex]=\"this.getIndexForActiveStep()\" (click)=\"triggerClick()\">\n <mat-step *ngFor=\"let step of _steps\" [aria-labelledby]=\"!step.enabled ? 'disabled' : null\">\n <ng-template matStepLabel>\n <div class=\"step-header-overlay\" *ngIf=\"this._headerClick.observers.length > 0\" (click)=\"headerClick($event, step)\"></div>\n <span>{{step.label}}</span>\n </ng-template>\n </mat-step>\n </mat-horizontal-stepper>\n</div>\n",
|
|
2608
|
+
styles: [".stepper-container{display:flex;padding:0 1rem}::ng-deep .mat-stepper-horizontal .mat-horizontal-stepper-header{height:auto;padding:0}::ng-deep .mat-step-header[aria-labelledby=disabled]{cursor:not-allowed;pointer-events:none!important}::ng-deep .mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 10px}::ng-deep .mat-stepper-horizontal .mat-stepper-horizontal-line{border-top-width:4px;margin:0 5px}.step-header-overlay{height:100%;position:absolute;right:0;top:0;width:100%}"]
|
|
2602
2609
|
},] }
|
|
2603
2610
|
];
|
|
2604
2611
|
FlowbarComponent.propDecorators = {
|