fabrikantencore 2.0.3 → 2.0.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/src/app/modules/fabrikantencore/components/fab-breadcrumb/fab-breadcrumb.component.mjs +4 -26
- package/esm2020/src/app/modules/fabrikantencore/components/fab-header/fab-header.component.mjs +30 -8
- package/esm2020/src/app/modules/fabrikantencore/components/fab-language-select/fab-language-select.component.mjs +3 -14
- package/esm2020/src/app/modules/fabrikantencore/services/fabrikanten.service.mjs +24 -1
- package/esm2020/src/app/modules/fabrikantencore/services/translate.service.mjs +12 -1
- package/fesm2015/fabrikantencore.mjs +66 -45
- package/fesm2015/fabrikantencore.mjs.map +1 -1
- package/fesm2020/fabrikantencore.mjs +63 -43
- package/fesm2020/fabrikantencore.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/fabrikantencore/components/fab-breadcrumb/fab-breadcrumb.component.d.ts +0 -1
- package/src/app/modules/fabrikantencore/components/fab-header/fab-header.component.d.ts +10 -2
- package/src/app/modules/fabrikantencore/components/fab-language-select/fab-language-select.component.d.ts +0 -1
- package/src/app/modules/fabrikantencore/services/fabrikanten.service.d.ts +1 -0
- package/src/app/modules/fabrikantencore/services/translate.service.d.ts +1 -0
|
@@ -8437,6 +8437,17 @@ class TranslateService {
|
|
|
8437
8437
|
}
|
|
8438
8438
|
return false;
|
|
8439
8439
|
}
|
|
8440
|
+
Show() {
|
|
8441
|
+
if (this.Loading) {
|
|
8442
|
+
return false;
|
|
8443
|
+
}
|
|
8444
|
+
if (this.LanguagesViewModel?.languages != null) {
|
|
8445
|
+
if (this.LanguagesViewModel.languages.length < 2) {
|
|
8446
|
+
return false;
|
|
8447
|
+
}
|
|
8448
|
+
}
|
|
8449
|
+
return true;
|
|
8450
|
+
}
|
|
8440
8451
|
GetActiveValue(category, key) {
|
|
8441
8452
|
if (this.ActiveLanguage != null) {
|
|
8442
8453
|
return this.GetValue(this.ActiveLanguage, category, key);
|
|
@@ -9204,6 +9215,29 @@ class FabrikantenService {
|
|
|
9204
9215
|
}
|
|
9205
9216
|
}
|
|
9206
9217
|
}
|
|
9218
|
+
// Breadcrumb
|
|
9219
|
+
GetSteps() {
|
|
9220
|
+
var returnarray = new Array();
|
|
9221
|
+
var array = this.FabrikantenViewModel?.categoryLayers;
|
|
9222
|
+
if (array != null) {
|
|
9223
|
+
for (var i = 0; i < array.length; i++) {
|
|
9224
|
+
if (array[i].selectedOption != 0) {
|
|
9225
|
+
var options = array[i].categories;
|
|
9226
|
+
if (options != null) {
|
|
9227
|
+
for (var j = 0; j < options.length; j++) {
|
|
9228
|
+
if (options[j].id === array[i].selectedOption) {
|
|
9229
|
+
returnarray.push(options[j]);
|
|
9230
|
+
}
|
|
9231
|
+
}
|
|
9232
|
+
}
|
|
9233
|
+
}
|
|
9234
|
+
else {
|
|
9235
|
+
break;
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
}
|
|
9239
|
+
return returnarray;
|
|
9240
|
+
}
|
|
9207
9241
|
}
|
|
9208
9242
|
FabrikantenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabrikantenService, deps: [{ token: FabrikantenApiClient }, { token: BestekService }, { token: TranslateService }, { token: WebGLService }, { token: SVGService }, { token: NavigateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9209
9243
|
FabrikantenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabrikantenService, providedIn: 'root' });
|
|
@@ -9570,7 +9604,7 @@ class FabBreadcrumbComponent {
|
|
|
9570
9604
|
this.FabrikantenService.RemoveProductSelection(this.ChangeDetectorRef);
|
|
9571
9605
|
}
|
|
9572
9606
|
else {
|
|
9573
|
-
var array = this.GetSteps();
|
|
9607
|
+
var array = this.FabrikantenService.GetSteps();
|
|
9574
9608
|
if (array.length > 0) {
|
|
9575
9609
|
this.UndoStep(array[array.length - 1]);
|
|
9576
9610
|
}
|
|
@@ -9590,34 +9624,12 @@ class FabBreadcrumbComponent {
|
|
|
9590
9624
|
}
|
|
9591
9625
|
return true;
|
|
9592
9626
|
}
|
|
9593
|
-
GetSteps() {
|
|
9594
|
-
var returnarray = new Array();
|
|
9595
|
-
var array = this.FabrikantenService.FabrikantenViewModel?.categoryLayers;
|
|
9596
|
-
if (array != null) {
|
|
9597
|
-
for (var i = 0; i < array.length; i++) {
|
|
9598
|
-
if (array[i].selectedOption != 0) {
|
|
9599
|
-
var options = array[i].categories;
|
|
9600
|
-
if (options != null) {
|
|
9601
|
-
for (var j = 0; j < options.length; j++) {
|
|
9602
|
-
if (options[j].id === array[i].selectedOption) {
|
|
9603
|
-
returnarray.push(options[j]);
|
|
9604
|
-
}
|
|
9605
|
-
}
|
|
9606
|
-
}
|
|
9607
|
-
}
|
|
9608
|
-
else {
|
|
9609
|
-
break;
|
|
9610
|
-
}
|
|
9611
|
-
}
|
|
9612
|
-
}
|
|
9613
|
-
return returnarray;
|
|
9614
|
-
}
|
|
9615
9627
|
}
|
|
9616
9628
|
FabBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabBreadcrumbComponent, deps: [{ token: MobileService }, { token: FabrikantenService }, { token: TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9617
|
-
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" }, host: { listeners: { "window:resize": "onResize($event)" } }, ngImport: i0, template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n <div>\n <button class=\"buttonsize\" mat-stroked-button (click)=\"Back()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">arrow_back</mat-icon>\n </div>\n <div class=\"header-title\">\n {{ TranslateService.GetActiveValue(\"Common\", \"Back\") }}\n </div>\n </div>\n </button>\n </div>\n <ng-container *ngIf=\"!MobileService.MobileInterface\">\n <ng-container *ngFor=\"let step of GetSteps()\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"UndoStep(step)\">\n {{ TranslateService.GetActiveValueCategory(step.id) }}\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"this.FabrikantenService.FabrikantenViewModel?.selectedProduct != null\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"Back()\">\n <span *ngIf=\"GetSteps().length == 0\">Productconfiguratie: </span>{{ TranslateService.GetActiveValueProduct(FabrikantenService.FabrikantenViewModel?.selectedProduct?.id) }}\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"MobileService.MobileInterface && showfiltermenubutton\">\n <button class=\"open-filters-button buttonsize\" mat-stroked-button (click)=\"MobileService.OpenNav()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">menu</mat-icon>\n </div>\n <div class=\"header-title\">\n Filtermenu\n </div>\n </div>\n </button>\n </ng-container>\n</div>\n", styles: [".header{display:flex;padding:4px}.buttonsize{height:40px;line-height:25px}.header-back{cursor:pointer}.product-conf{padding-left:5px}.open-filters-button{margin-left:5px}.title{line-height:35px;font-size:30px;flex:auto;padding-left:5px}.icon{position:relative;top:2px}.header-title{font-size:16px;position:relative;top:1px;margin-left:3px}.step{font-size:16px;vertical-align:middle;line-height:39px;font-family:Roboto;font-weight:500;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step:first-letter{text-transform:capitalize}.step:hover{text-decoration:underline}.stepicon{padding-top:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
9629
|
+
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" }, host: { listeners: { "window:resize": "onResize($event)" } }, ngImport: i0, template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n <div>\n <button class=\"buttonsize\" mat-stroked-button (click)=\"Back()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">arrow_back</mat-icon>\n </div>\n <div class=\"header-title\">\n {{ TranslateService.GetActiveValue(\"Common\", \"Back\") }}\n </div>\n </div>\n </button>\n </div>\n <ng-container *ngIf=\"!MobileService.MobileInterface\">\n <ng-container *ngFor=\"let step of FabrikantenService.GetSteps()\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"UndoStep(step)\">\n {{ TranslateService.GetActiveValueCategory(step.id) }}\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"this.FabrikantenService.FabrikantenViewModel?.selectedProduct != null\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"Back()\">\n <span *ngIf=\"FabrikantenService.GetSteps().length == 0\">Productconfiguratie: </span>{{ TranslateService.GetActiveValueProduct(FabrikantenService.FabrikantenViewModel?.selectedProduct?.id) }}\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"MobileService.MobileInterface && showfiltermenubutton\">\n <button class=\"open-filters-button buttonsize\" mat-stroked-button (click)=\"MobileService.OpenNav()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">menu</mat-icon>\n </div>\n <div class=\"header-title\">\n Filtermenu\n </div>\n </div>\n </button>\n </ng-container>\n</div>\n", styles: [".header{display:flex;padding:4px}.buttonsize{height:40px;line-height:25px}.header-back{cursor:pointer}.product-conf{padding-left:5px}.open-filters-button{margin-left:5px}.title{line-height:35px;font-size:30px;flex:auto;padding-left:5px}.icon{position:relative;top:2px}.header-title{font-size:16px;position:relative;top:1px;margin-left:3px}.step{font-size:16px;vertical-align:middle;line-height:39px;font-family:Roboto;font-weight:500;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step:first-letter{text-transform:capitalize}.step:hover{text-decoration:underline}.stepicon{padding-top:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
9618
9630
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabBreadcrumbComponent, decorators: [{
|
|
9619
9631
|
type: Component,
|
|
9620
|
-
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n <div>\n <button class=\"buttonsize\" mat-stroked-button (click)=\"Back()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">arrow_back</mat-icon>\n </div>\n <div class=\"header-title\">\n {{ TranslateService.GetActiveValue(\"Common\", \"Back\") }}\n </div>\n </div>\n </button>\n </div>\n <ng-container *ngIf=\"!MobileService.MobileInterface\">\n <ng-container *ngFor=\"let step of GetSteps()\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"UndoStep(step)\">\n {{ TranslateService.GetActiveValueCategory(step.id) }}\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"this.FabrikantenService.FabrikantenViewModel?.selectedProduct != null\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"Back()\">\n <span *ngIf=\"GetSteps().length == 0\">Productconfiguratie: </span>{{ TranslateService.GetActiveValueProduct(FabrikantenService.FabrikantenViewModel?.selectedProduct?.id) }}\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"MobileService.MobileInterface && showfiltermenubutton\">\n <button class=\"open-filters-button buttonsize\" mat-stroked-button (click)=\"MobileService.OpenNav()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">menu</mat-icon>\n </div>\n <div class=\"header-title\">\n Filtermenu\n </div>\n </div>\n </button>\n </ng-container>\n</div>\n", styles: [".header{display:flex;padding:4px}.buttonsize{height:40px;line-height:25px}.header-back{cursor:pointer}.product-conf{padding-left:5px}.open-filters-button{margin-left:5px}.title{line-height:35px;font-size:30px;flex:auto;padding-left:5px}.icon{position:relative;top:2px}.header-title{font-size:16px;position:relative;top:1px;margin-left:3px}.step{font-size:16px;vertical-align:middle;line-height:39px;font-family:Roboto;font-weight:500;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step:first-letter{text-transform:capitalize}.step:hover{text-decoration:underline}.stepicon{padding-top:7px}\n"] }]
|
|
9632
|
+
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n <div>\n <button class=\"buttonsize\" mat-stroked-button (click)=\"Back()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">arrow_back</mat-icon>\n </div>\n <div class=\"header-title\">\n {{ TranslateService.GetActiveValue(\"Common\", \"Back\") }}\n </div>\n </div>\n </button>\n </div>\n <ng-container *ngIf=\"!MobileService.MobileInterface\">\n <ng-container *ngFor=\"let step of FabrikantenService.GetSteps()\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"UndoStep(step)\">\n {{ TranslateService.GetActiveValueCategory(step.id) }}\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"this.FabrikantenService.FabrikantenViewModel?.selectedProduct != null\">\n <div class=\"stepicon\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n <div class=\"step\" (click)=\"Back()\">\n <span *ngIf=\"FabrikantenService.GetSteps().length == 0\">Productconfiguratie: </span>{{ TranslateService.GetActiveValueProduct(FabrikantenService.FabrikantenViewModel?.selectedProduct?.id) }}\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"MobileService.MobileInterface && showfiltermenubutton\">\n <button class=\"open-filters-button buttonsize\" mat-stroked-button (click)=\"MobileService.OpenNav()\">\n <div class=\"header\">\n <div class=\"header-back\">\n <mat-icon class=\"icon\">menu</mat-icon>\n </div>\n <div class=\"header-title\">\n Filtermenu\n </div>\n </div>\n </button>\n </ng-container>\n</div>\n", styles: [".header{display:flex;padding:4px}.buttonsize{height:40px;line-height:25px}.header-back{cursor:pointer}.product-conf{padding-left:5px}.open-filters-button{margin-left:5px}.title{line-height:35px;font-size:30px;flex:auto;padding-left:5px}.icon{position:relative;top:2px}.header-title{font-size:16px;position:relative;top:1px;margin-left:3px}.step{font-size:16px;vertical-align:middle;line-height:39px;font-family:Roboto;font-weight:500;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step:first-letter{text-transform:capitalize}.step:hover{text-decoration:underline}.stepicon{padding-top:7px}\n"] }]
|
|
9621
9633
|
}], ctorParameters: function () { return [{ type: MobileService }, { type: FabrikantenService }, { type: TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
9622
9634
|
type: Input
|
|
9623
9635
|
}], onResize: [{
|
|
@@ -9650,36 +9662,44 @@ class FabLanguageSelectComponent {
|
|
|
9650
9662
|
SelectLanguage(language) {
|
|
9651
9663
|
this.TranslateService.SelectLanguage(language, this.ChangeDetectorRef);
|
|
9652
9664
|
}
|
|
9653
|
-
Show() {
|
|
9654
|
-
if (this.TranslateService.Loading) {
|
|
9655
|
-
return false;
|
|
9656
|
-
}
|
|
9657
|
-
if (this.TranslateService.LanguagesViewModel?.languages != null) {
|
|
9658
|
-
if (this.TranslateService.LanguagesViewModel.languages.length < 2) {
|
|
9659
|
-
return false;
|
|
9660
|
-
}
|
|
9661
|
-
}
|
|
9662
|
-
return true;
|
|
9663
|
-
}
|
|
9664
9665
|
}
|
|
9665
9666
|
FabLanguageSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabLanguageSelectComponent, deps: [{ token: TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9666
|
-
FabLanguageSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabLanguageSelectComponent, selector: "app-fab-language-select", ngImport: i0, template: "<div class=\"row\" *ngIf=\"Show()\">\n <div class=\"item\" (click)=\"SelectLanguage(language)\" *ngFor=\"let language of TranslateService.LanguagesViewModel.languages\">\n <fab-flag [country]=\"language.flag\"></fab-flag>\n </div>\n</div>\n", styles: [".row{display:flex}.item{padding:2px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FabFlagComponent, selector: "fab-flag", inputs: ["country"] }] });
|
|
9667
|
+
FabLanguageSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabLanguageSelectComponent, selector: "app-fab-language-select", ngImport: i0, template: "<div class=\"row\" *ngIf=\"TranslateService.Show()\">\n <div class=\"item\" (click)=\"SelectLanguage(language)\" *ngFor=\"let language of TranslateService.LanguagesViewModel.languages\">\n <fab-flag [country]=\"language.flag\"></fab-flag>\n </div>\n</div>\n", styles: [".row{display:flex}.item{padding:2px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FabFlagComponent, selector: "fab-flag", inputs: ["country"] }] });
|
|
9667
9668
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabLanguageSelectComponent, decorators: [{
|
|
9668
9669
|
type: Component,
|
|
9669
|
-
args: [{ selector: 'app-fab-language-select', template: "<div class=\"row\" *ngIf=\"Show()\">\n <div class=\"item\" (click)=\"SelectLanguage(language)\" *ngFor=\"let language of TranslateService.LanguagesViewModel.languages\">\n <fab-flag [country]=\"language.flag\"></fab-flag>\n </div>\n</div>\n", styles: [".row{display:flex}.item{padding:2px;cursor:pointer}\n"] }]
|
|
9670
|
+
args: [{ selector: 'app-fab-language-select', template: "<div class=\"row\" *ngIf=\"TranslateService.Show()\">\n <div class=\"item\" (click)=\"SelectLanguage(language)\" *ngFor=\"let language of TranslateService.LanguagesViewModel.languages\">\n <fab-flag [country]=\"language.flag\"></fab-flag>\n </div>\n</div>\n", styles: [".row{display:flex}.item{padding:2px;cursor:pointer}\n"] }]
|
|
9670
9671
|
}], ctorParameters: function () { return [{ type: TranslateService }, { type: i0.ChangeDetectorRef }]; } });
|
|
9671
9672
|
|
|
9672
9673
|
class FabHeaderComponent {
|
|
9673
|
-
constructor() {
|
|
9674
|
+
constructor(FabrikantenService, TranslateService, ChangeDetectorRef) {
|
|
9675
|
+
this.FabrikantenService = FabrikantenService;
|
|
9676
|
+
this.TranslateService = TranslateService;
|
|
9677
|
+
this.ChangeDetectorRef = ChangeDetectorRef;
|
|
9678
|
+
}
|
|
9674
9679
|
ngOnInit() {
|
|
9680
|
+
this.TranslateService.LoadTranslations(this.ChangeDetectorRef);
|
|
9681
|
+
}
|
|
9682
|
+
ShowHeader() {
|
|
9683
|
+
return this.ShowBreadcrumb() || this.ShowLanguageSelect();
|
|
9684
|
+
}
|
|
9685
|
+
ShowBreadcrumb() {
|
|
9686
|
+
if (this.FabrikantenService.FabrikantenViewModel?.selectedProduct == null) {
|
|
9687
|
+
if (this.FabrikantenService.GetSteps().length == 0) {
|
|
9688
|
+
return false;
|
|
9689
|
+
}
|
|
9690
|
+
}
|
|
9691
|
+
return true;
|
|
9692
|
+
}
|
|
9693
|
+
ShowLanguageSelect() {
|
|
9694
|
+
return this.TranslateService.Show();
|
|
9675
9695
|
}
|
|
9676
9696
|
}
|
|
9677
|
-
FabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9678
|
-
FabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabHeaderComponent, selector: "app-fab-header", inputs: { showfiltermenubutton: "showfiltermenubutton" }, ngImport: i0, template: "<div class=\"header-row\">\r\n <app-fab-breadcrumb [showfiltermenubutton]=\"showfiltermenubutton\"></app-fab-breadcrumb>\r\n <app-fab-language-select></app-fab-language-select>\r\n</div>\r\n\r\n\r\n", styles: [".header-row{display:flex;height:48px}app-fab-language-select{margin:auto 5px auto auto}app-fab-breadcrumb{width:calc(100% - 50px)}\n"], dependencies: [{ kind: "component", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: ["showfiltermenubutton"] }, { kind: "component", type: FabLanguageSelectComponent, selector: "app-fab-language-select" }] });
|
|
9697
|
+
FabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, deps: [{ token: FabrikantenService }, { token: TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9698
|
+
FabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabHeaderComponent, selector: "app-fab-header", inputs: { showfiltermenubutton: "showfiltermenubutton" }, ngImport: i0, template: "<div class=\"header-row\" *ngIf=\"ShowHeader()\">\r\n <app-fab-breadcrumb *ngIf=\"ShowBreadcrumb()\" [showfiltermenubutton]=\"showfiltermenubutton\"></app-fab-breadcrumb>\r\n <app-fab-language-select *ngIf=\"ShowLanguageSelect()\"></app-fab-language-select>\r\n</div>\r\n\r\n\r\n", styles: [".header-row{display:flex;height:48px}app-fab-language-select{margin:auto 5px auto auto}app-fab-breadcrumb{width:calc(100% - 50px)}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: ["showfiltermenubutton"] }, { kind: "component", type: FabLanguageSelectComponent, selector: "app-fab-language-select" }] });
|
|
9679
9699
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, decorators: [{
|
|
9680
9700
|
type: Component,
|
|
9681
|
-
args: [{ selector: 'app-fab-header', template: "<div class=\"header-row\">\r\n <app-fab-breadcrumb [showfiltermenubutton]=\"showfiltermenubutton\"></app-fab-breadcrumb>\r\n <app-fab-language-select></app-fab-language-select>\r\n</div>\r\n\r\n\r\n", styles: [".header-row{display:flex;height:48px}app-fab-language-select{margin:auto 5px auto auto}app-fab-breadcrumb{width:calc(100% - 50px)}\n"] }]
|
|
9682
|
-
}], ctorParameters: function () { return []; }, propDecorators: { showfiltermenubutton: [{
|
|
9701
|
+
args: [{ selector: 'app-fab-header', template: "<div class=\"header-row\" *ngIf=\"ShowHeader()\">\r\n <app-fab-breadcrumb *ngIf=\"ShowBreadcrumb()\" [showfiltermenubutton]=\"showfiltermenubutton\"></app-fab-breadcrumb>\r\n <app-fab-language-select *ngIf=\"ShowLanguageSelect()\"></app-fab-language-select>\r\n</div>\r\n\r\n\r\n", styles: [".header-row{display:flex;height:48px}app-fab-language-select{margin:auto 5px auto auto}app-fab-breadcrumb{width:calc(100% - 50px)}\n"] }]
|
|
9702
|
+
}], ctorParameters: function () { return [{ type: FabrikantenService }, { type: TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
9683
9703
|
type: Input
|
|
9684
9704
|
}] } });
|
|
9685
9705
|
|