fabrikantencore 2.0.8 → 2.0.9
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 +9 -17
- package/esm2020/src/app/modules/fabrikantencore/components/fab-header/fab-header.component.mjs +25 -14
- package/fesm2015/fabrikantencore.mjs +24 -22
- package/fesm2015/fabrikantencore.mjs.map +1 -1
- package/fesm2020/fabrikantencore.mjs +24 -22
- 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 +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "../../services/mobile.service";
|
|
4
4
|
import * as i2 from "../../services/fabrikanten.service";
|
|
@@ -16,9 +16,6 @@ export class FabBreadcrumbComponent {
|
|
|
16
16
|
ngOnInit() {
|
|
17
17
|
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
18
18
|
}
|
|
19
|
-
onResize(event) {
|
|
20
|
-
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
21
|
-
}
|
|
22
19
|
Back() {
|
|
23
20
|
if (this.FabrikantenService.FabrikantenViewModel.selectedProduct != null) {
|
|
24
21
|
this.FabrikantenService.RemoveProductSelection(this.ChangeDetectorRef);
|
|
@@ -34,26 +31,21 @@ export class FabBreadcrumbComponent {
|
|
|
34
31
|
this.FabrikantenService.ResetSelectionCategory(category, this.ChangeDetectorRef);
|
|
35
32
|
}
|
|
36
33
|
ShowBack() {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
}
|
|
34
|
+
if (this.FabrikantenService.FabrikantenViewModel?.selectedProduct != null) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (this.FabrikantenService.GetSteps().length == 0) {
|
|
38
|
+
return false;
|
|
44
39
|
}
|
|
45
40
|
return true;
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
43
|
FabBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabBreadcrumbComponent, deps: [{ token: i1.MobileService }, { token: i2.FabrikantenService }, { token: i3.TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
-
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" },
|
|
44
|
+
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" }, ngImport: i0, template: "<div class=\"header\">\n <div *ngIf=\"ShowBack()\">\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: i5.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
50
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabBreadcrumbComponent, decorators: [{
|
|
51
46
|
type: Component,
|
|
52
|
-
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n
|
|
47
|
+
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\">\n <div *ngIf=\"ShowBack()\">\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"] }]
|
|
53
48
|
}], ctorParameters: function () { return [{ type: i1.MobileService }, { type: i2.FabrikantenService }, { type: i3.TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
54
49
|
type: Input
|
|
55
|
-
}], onResize: [{
|
|
56
|
-
type: HostListener,
|
|
57
|
-
args: ['window:resize', ['$event']]
|
|
58
50
|
}] } });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFiLWJyZWFkY3J1bWIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL2ZhYnJpa2FudGVuY29yZS9jb21wb25lbnRzL2ZhYi1icmVhZGNydW1iL2ZhYi1icmVhZGNydW1iLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9mYWJyaWthbnRlbmNvcmUvY29tcG9uZW50cy9mYWItYnJlYWRjcnVtYi9mYWItYnJlYWRjcnVtYi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXFCLFNBQVMsRUFBZ0IsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVcxRixNQUFNLE9BQU8sc0JBQXNCO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kubGVuZ3RoID09IDBcIj5Qcm9kdWN0Y29uZmlndXJhdGllOiA8L3NwYW4+e3sgVHJhbnNsYXRlU2VydmljZS5HZXRBY3RpdmVWYWx1ZVByb2R1Y3QoRmFicmlrYW50ZW5TZXJ2aWNlLkZhYnJpa2FudGVuVmlld01vZGVsPy5zZWxlY3RlZFByb2R1Y3Q/LmlkKSB9fVxuICAgICAgPC9kaXY+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIDwvbmctY29udGFpbmVyPlxuICA8bmctY29udGFpbmVyICpuZ0lmPVwiTW9iaWxlU2VydmljZS5Nb2JpbGVJbnRlcmZhY2UgJiYgc2hvd2ZpbHRlcm1lbnVidXR0b25cIj5cbiAgICA8YnV0dG9uIGNsYXNzPVwib3Blbi1maWx0ZXJzLWJ1dHRvbiBidXR0b25zaXplXCIgbWF0LXN0cm9rZWQtYnV0dG9uIChjbGljayk9XCJNb2JpbGVTZXJ2aWNlLk9wZW5OYXYoKVwiPlxuICAgICAgPGRpdiBjbGFzcz1cImhlYWRlclwiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiaGVhZGVyLWJhY2tcIj5cbiAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJpY29uXCI+bWVudTwvbWF0LWljb24+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiaGVhZGVyLXRpdGxlXCI+XG4gICAgICAgICAgRmlsdGVybWVudVxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvYnV0dG9uPlxuICA8L25nLWNvbnRhaW5lcj5cbjwvZGl2PlxuIl19
|
package/esm2020/src/app/modules/fabrikantencore/components/fab-header/fab-header.component.mjs
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
1
|
+
import { Component, HostListener, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../services/
|
|
4
|
-
import * as i2 from "../../services/
|
|
5
|
-
import * as i3 from "
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "../fab-
|
|
3
|
+
import * as i1 from "../../services/mobile.service";
|
|
4
|
+
import * as i2 from "../../services/fabrikanten.service";
|
|
5
|
+
import * as i3 from "../../services/translate.service";
|
|
6
|
+
import * as i4 from "@angular/common";
|
|
7
|
+
import * as i5 from "../fab-breadcrumb/fab-breadcrumb.component";
|
|
8
|
+
import * as i6 from "../fab-language-select/fab-language-select.component";
|
|
8
9
|
export class FabHeaderComponent {
|
|
9
|
-
constructor(FabrikantenService, TranslateService, ChangeDetectorRef) {
|
|
10
|
+
constructor(MobileService, FabrikantenService, TranslateService, ChangeDetectorRef) {
|
|
11
|
+
this.MobileService = MobileService;
|
|
10
12
|
this.FabrikantenService = FabrikantenService;
|
|
11
13
|
this.TranslateService = TranslateService;
|
|
12
14
|
this.ChangeDetectorRef = ChangeDetectorRef;
|
|
13
15
|
}
|
|
14
16
|
ngOnInit() {
|
|
15
17
|
this.TranslateService.LoadTranslations(this.ChangeDetectorRef);
|
|
18
|
+
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
19
|
+
}
|
|
20
|
+
onResize(event) {
|
|
21
|
+
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
16
22
|
}
|
|
17
23
|
ShowHeader() {
|
|
18
24
|
return this.ShowBreadcrumb() || this.ShowLanguageSelect();
|
|
19
25
|
}
|
|
20
26
|
ShowBreadcrumb() {
|
|
21
|
-
if (this.
|
|
22
|
-
if (this.FabrikantenService.
|
|
23
|
-
|
|
27
|
+
if (!this.MobileService.MobileInterface) {
|
|
28
|
+
if (this.FabrikantenService.FabrikantenViewModel?.selectedProduct == null) {
|
|
29
|
+
if (this.FabrikantenService.GetSteps().length == 0) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
24
32
|
}
|
|
25
33
|
}
|
|
26
34
|
return true;
|
|
@@ -29,12 +37,15 @@ export class FabHeaderComponent {
|
|
|
29
37
|
return this.TranslateService.Show();
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
FabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, deps: [{ token: i1.
|
|
33
|
-
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:
|
|
40
|
+
FabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, deps: [{ token: i1.MobileService }, { token: i2.FabrikantenService }, { token: i3.TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
FabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabHeaderComponent, selector: "app-fab-header", inputs: { showfiltermenubutton: "showfiltermenubutton" }, host: { listeners: { "window:resize": "onResize($event)" } }, 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: i5.FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: ["showfiltermenubutton"] }, { kind: "component", type: i6.FabLanguageSelectComponent, selector: "app-fab-language-select" }] });
|
|
34
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, decorators: [{
|
|
35
43
|
type: Component,
|
|
36
44
|
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"] }]
|
|
37
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.MobileService }, { type: i2.FabrikantenService }, { type: i3.TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
38
46
|
type: Input
|
|
47
|
+
}], onResize: [{
|
|
48
|
+
type: HostListener,
|
|
49
|
+
args: ['window:resize', ['$event']]
|
|
39
50
|
}] } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFiLWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi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YWRjcnVtYigpXCIgW3Nob3dmaWx0ZXJtZW51YnV0dG9uXT1cInNob3dmaWx0ZXJtZW51YnV0dG9uXCI+PC9hcHAtZmFiLWJyZWFkY3J1bWI+XHJcbiAgPGFwcC1mYWItbGFuZ3VhZ2Utc2VsZWN0ICpuZ0lmPVwiU2hvd0xhbmd1YWdlU2VsZWN0KClcIj48L2FwcC1mYWItbGFuZ3VhZ2Utc2VsZWN0PlxyXG48L2Rpdj5cclxuXHJcblxyXG4iXX0=
|
|
@@ -9712,9 +9712,6 @@ class FabBreadcrumbComponent {
|
|
|
9712
9712
|
ngOnInit() {
|
|
9713
9713
|
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
9714
9714
|
}
|
|
9715
|
-
onResize(event) {
|
|
9716
|
-
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
9717
|
-
}
|
|
9718
9715
|
Back() {
|
|
9719
9716
|
if (this.FabrikantenService.FabrikantenViewModel.selectedProduct != null) {
|
|
9720
9717
|
this.FabrikantenService.RemoveProductSelection(this.ChangeDetectorRef);
|
|
@@ -9731,27 +9728,22 @@ class FabBreadcrumbComponent {
|
|
|
9731
9728
|
}
|
|
9732
9729
|
ShowBack() {
|
|
9733
9730
|
var _a;
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
}
|
|
9740
|
-
}
|
|
9731
|
+
if (((_a = this.FabrikantenService.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
9732
|
+
return true;
|
|
9733
|
+
}
|
|
9734
|
+
if (this.FabrikantenService.GetSteps().length == 0) {
|
|
9735
|
+
return false;
|
|
9741
9736
|
}
|
|
9742
9737
|
return true;
|
|
9743
9738
|
}
|
|
9744
9739
|
}
|
|
9745
9740
|
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 });
|
|
9746
|
-
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" },
|
|
9741
|
+
FabBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabBreadcrumbComponent, selector: "app-fab-breadcrumb", inputs: { showfiltermenubutton: "showfiltermenubutton" }, ngImport: i0, template: "<div class=\"header\">\n <div *ngIf=\"ShowBack()\">\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"] }] });
|
|
9747
9742
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabBreadcrumbComponent, decorators: [{
|
|
9748
9743
|
type: Component,
|
|
9749
|
-
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\" *ngIf=\"ShowBack()\">\n
|
|
9744
|
+
args: [{ selector: 'app-fab-breadcrumb', template: "<div class=\"header\">\n <div *ngIf=\"ShowBack()\">\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"] }]
|
|
9750
9745
|
}], ctorParameters: function () { return [{ type: MobileService }, { type: FabrikantenService }, { type: TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
9751
9746
|
type: Input
|
|
9752
|
-
}], onResize: [{
|
|
9753
|
-
type: HostListener,
|
|
9754
|
-
args: ['window:resize', ['$event']]
|
|
9755
9747
|
}] } });
|
|
9756
9748
|
|
|
9757
9749
|
class FabFlagComponent {
|
|
@@ -9788,22 +9780,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
9788
9780
|
}], ctorParameters: function () { return [{ type: TranslateService }, { type: i0.ChangeDetectorRef }]; } });
|
|
9789
9781
|
|
|
9790
9782
|
class FabHeaderComponent {
|
|
9791
|
-
constructor(FabrikantenService, TranslateService, ChangeDetectorRef) {
|
|
9783
|
+
constructor(MobileService, FabrikantenService, TranslateService, ChangeDetectorRef) {
|
|
9784
|
+
this.MobileService = MobileService;
|
|
9792
9785
|
this.FabrikantenService = FabrikantenService;
|
|
9793
9786
|
this.TranslateService = TranslateService;
|
|
9794
9787
|
this.ChangeDetectorRef = ChangeDetectorRef;
|
|
9795
9788
|
}
|
|
9796
9789
|
ngOnInit() {
|
|
9797
9790
|
this.TranslateService.LoadTranslations(this.ChangeDetectorRef);
|
|
9791
|
+
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
9792
|
+
}
|
|
9793
|
+
onResize(event) {
|
|
9794
|
+
this.MobileService.UpdateScreenSize(window.innerWidth, window.innerHeight, this.ChangeDetectorRef);
|
|
9798
9795
|
}
|
|
9799
9796
|
ShowHeader() {
|
|
9800
9797
|
return this.ShowBreadcrumb() || this.ShowLanguageSelect();
|
|
9801
9798
|
}
|
|
9802
9799
|
ShowBreadcrumb() {
|
|
9803
9800
|
var _a;
|
|
9804
|
-
if (
|
|
9805
|
-
if (this.FabrikantenService.
|
|
9806
|
-
|
|
9801
|
+
if (!this.MobileService.MobileInterface) {
|
|
9802
|
+
if (((_a = this.FabrikantenService.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) == null) {
|
|
9803
|
+
if (this.FabrikantenService.GetSteps().length == 0) {
|
|
9804
|
+
return false;
|
|
9805
|
+
}
|
|
9807
9806
|
}
|
|
9808
9807
|
}
|
|
9809
9808
|
return true;
|
|
@@ -9812,13 +9811,16 @@ class FabHeaderComponent {
|
|
|
9812
9811
|
return this.TranslateService.Show();
|
|
9813
9812
|
}
|
|
9814
9813
|
}
|
|
9815
|
-
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 });
|
|
9816
|
-
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" }] });
|
|
9814
|
+
FabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, deps: [{ token: MobileService }, { token: FabrikantenService }, { token: TranslateService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9815
|
+
FabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: FabHeaderComponent, selector: "app-fab-header", inputs: { showfiltermenubutton: "showfiltermenubutton" }, host: { listeners: { "window:resize": "onResize($event)" } }, 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" }] });
|
|
9817
9816
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: FabHeaderComponent, decorators: [{
|
|
9818
9817
|
type: Component,
|
|
9819
9818
|
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"] }]
|
|
9820
|
-
}], ctorParameters: function () { return [{ type: FabrikantenService }, { type: TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
9819
|
+
}], ctorParameters: function () { return [{ type: MobileService }, { type: FabrikantenService }, { type: TranslateService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { showfiltermenubutton: [{
|
|
9821
9820
|
type: Input
|
|
9821
|
+
}], onResize: [{
|
|
9822
|
+
type: HostListener,
|
|
9823
|
+
args: ['window:resize', ['$event']]
|
|
9822
9824
|
}] } });
|
|
9823
9825
|
|
|
9824
9826
|
class FabWebglViewerComponent {
|