fabrikantencore 2.2.11 → 2.2.13
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/fabrikantencore.module.mjs +6 -12
- package/esm2020/src/app/modules/fabrikantencore/services/fabrikanten.service.mjs +69 -5
- package/esm2020/src/app/modules/fabrikantencore/services/navigate.service.mjs +9 -7
- package/esm2020/src/app/modules/fabrikantencore/services/statistics.service.mjs +70 -0
- package/esm2020/src/app/modules/fabrikantencore/swagger/SwaggerClient.mjs +3 -1
- package/fesm2015/fabrikantencore.mjs +134 -24
- package/fesm2015/fabrikantencore.mjs.map +1 -1
- package/fesm2020/fabrikantencore.mjs +125 -24
- package/fesm2020/fabrikantencore.mjs.map +1 -1
- package/package.json +2 -3
- package/src/app/modules/fabrikantencore/services/fabrikanten.service.d.ts +3 -1
- package/src/app/modules/fabrikantencore/services/navigate.service.d.ts +3 -3
- package/src/app/modules/fabrikantencore/services/statistics.service.d.ts +17 -0
- package/src/app/modules/fabrikantencore/swagger/SwaggerClient.d.ts +2 -0
- package/esm2020/src/app/modules/fabrikantencore/services/google.analytics.service.mjs +0 -32
- package/src/app/modules/fabrikantencore/services/google.analytics.service.d.ts +0 -9
|
@@ -6293,6 +6293,7 @@ class FabrikantenFileViewModel {
|
|
|
6293
6293
|
if (_data) {
|
|
6294
6294
|
this.file = _data["file"];
|
|
6295
6295
|
this.customRFAZip = _data["customRFAZip"];
|
|
6296
|
+
this.rvtExtension = _data["rvtExtension"];
|
|
6296
6297
|
}
|
|
6297
6298
|
}
|
|
6298
6299
|
static fromJS(data) {
|
|
@@ -6305,6 +6306,7 @@ class FabrikantenFileViewModel {
|
|
|
6305
6306
|
data = typeof data === 'object' ? data : {};
|
|
6306
6307
|
data["file"] = this.file;
|
|
6307
6308
|
data["customRFAZip"] = this.customRFAZip;
|
|
6309
|
+
data["rvtExtension"] = this.rvtExtension;
|
|
6308
6310
|
return data;
|
|
6309
6311
|
}
|
|
6310
6312
|
}
|
|
@@ -9776,13 +9778,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
9776
9778
|
args: [{ providedIn: 'root' }]
|
|
9777
9779
|
}], ctorParameters: function () { return [{ type: i1$3.Clipboard }, { type: FabrikantenApiClient }]; } });
|
|
9778
9780
|
|
|
9779
|
-
class
|
|
9781
|
+
class StatisticsService {
|
|
9780
9782
|
constructor() {
|
|
9783
|
+
this.Active = true;
|
|
9781
9784
|
this.analytics = null;
|
|
9785
|
+
this.AnalyticsCode = "G-WZHRFJ55QY";
|
|
9786
|
+
this.LastPageView = "";
|
|
9787
|
+
}
|
|
9788
|
+
PageView(name) {
|
|
9789
|
+
if (this.LastPageView != name) {
|
|
9790
|
+
gtag('config', this.AnalyticsCode);
|
|
9791
|
+
gtag('event', 'pageview', {
|
|
9792
|
+
'name': name
|
|
9793
|
+
});
|
|
9794
|
+
this.LastPageView = name;
|
|
9795
|
+
}
|
|
9796
|
+
}
|
|
9797
|
+
SelectCategory(name) {
|
|
9798
|
+
gtag('config', this.AnalyticsCode);
|
|
9799
|
+
gtag('event', "SelectCategory", {
|
|
9800
|
+
category: name
|
|
9801
|
+
});
|
|
9802
|
+
}
|
|
9803
|
+
SelectFilterOption(name) {
|
|
9804
|
+
gtag('config', this.AnalyticsCode);
|
|
9805
|
+
gtag('event', "SelectFilterOption", {
|
|
9806
|
+
filteroption: name
|
|
9807
|
+
});
|
|
9782
9808
|
}
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9809
|
+
SelectRangeValue(name) {
|
|
9810
|
+
gtag('config', this.AnalyticsCode);
|
|
9811
|
+
gtag('event', "SelectRangeValue", {
|
|
9812
|
+
range: name
|
|
9813
|
+
});
|
|
9814
|
+
}
|
|
9815
|
+
SelectProduct(name) {
|
|
9816
|
+
gtag('config', this.AnalyticsCode);
|
|
9817
|
+
gtag('event', "SelectProduct", {
|
|
9818
|
+
product: name
|
|
9819
|
+
});
|
|
9820
|
+
}
|
|
9821
|
+
DownloadFile(filetype, productname) {
|
|
9822
|
+
gtag('config', this.AnalyticsCode);
|
|
9823
|
+
gtag('event', "Download " + filetype, {
|
|
9824
|
+
product: productname
|
|
9825
|
+
});
|
|
9786
9826
|
}
|
|
9787
9827
|
Init() {
|
|
9788
9828
|
//if (this.analytics == null) {
|
|
@@ -9797,9 +9837,9 @@ class GoogleAnalyticsService {
|
|
|
9797
9837
|
//}
|
|
9798
9838
|
}
|
|
9799
9839
|
}
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type:
|
|
9840
|
+
StatisticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9841
|
+
StatisticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, providedIn: 'root' });
|
|
9842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: StatisticsService, decorators: [{
|
|
9803
9843
|
type: Injectable,
|
|
9804
9844
|
args: [{
|
|
9805
9845
|
providedIn: 'root'
|
|
@@ -9807,9 +9847,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
9807
9847
|
}], ctorParameters: function () { return []; } });
|
|
9808
9848
|
|
|
9809
9849
|
class NavigateService {
|
|
9810
|
-
constructor(Router,
|
|
9850
|
+
constructor(Router, StatisticsService) {
|
|
9811
9851
|
this.Router = Router;
|
|
9812
|
-
this.
|
|
9852
|
+
this.StatisticsService = StatisticsService;
|
|
9813
9853
|
this.FabrikantenService = null;
|
|
9814
9854
|
this.TranslateService = null;
|
|
9815
9855
|
}
|
|
@@ -9818,24 +9858,26 @@ class NavigateService {
|
|
|
9818
9858
|
if (this.TranslateService.ActiveLanguage != null && this.FabrikantenService.FabrikantenViewModel != null) {
|
|
9819
9859
|
if (this.FabrikantenService.ShowCategories()) {
|
|
9820
9860
|
this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'categories']);
|
|
9821
|
-
this.
|
|
9861
|
+
this.StatisticsService.PageView("categories");
|
|
9822
9862
|
}
|
|
9823
9863
|
else if (this.FabrikantenService.FabrikantenViewModel.selectedProduct != null) {
|
|
9824
9864
|
this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'product', this.FabrikantenService.FabrikantenViewModel.selectedProduct.urlName]);
|
|
9865
|
+
this.StatisticsService.PageView("product");
|
|
9825
9866
|
}
|
|
9826
9867
|
else {
|
|
9827
9868
|
this.Router.navigate(['/', this.TranslateService.ActiveLanguage.countryCode, 'products']);
|
|
9869
|
+
this.StatisticsService.PageView("products");
|
|
9828
9870
|
}
|
|
9829
9871
|
}
|
|
9830
9872
|
}
|
|
9831
9873
|
}
|
|
9832
9874
|
}
|
|
9833
|
-
NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1$1.Router }, { token:
|
|
9875
|
+
NavigateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, deps: [{ token: i1$1.Router }, { token: StatisticsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9834
9876
|
NavigateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, providedIn: 'root' });
|
|
9835
9877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NavigateService, decorators: [{
|
|
9836
9878
|
type: Injectable,
|
|
9837
9879
|
args: [{ providedIn: 'root' }]
|
|
9838
|
-
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type:
|
|
9880
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: StatisticsService }]; } });
|
|
9839
9881
|
|
|
9840
9882
|
class TranslateService {
|
|
9841
9883
|
constructor(TranslateApiClient, NavigateService) {
|
|
@@ -10319,7 +10361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
10319
10361
|
}], ctorParameters: function () { return [{ type: FabrikantenApiClient }]; } });
|
|
10320
10362
|
|
|
10321
10363
|
class FabrikantenService {
|
|
10322
|
-
constructor(FabrikantenApiClient, BestekService, TranslateService, WebGLService, SVGService, TextureService, NavigateService) {
|
|
10364
|
+
constructor(FabrikantenApiClient, BestekService, TranslateService, WebGLService, SVGService, TextureService, NavigateService, StatisticsService) {
|
|
10323
10365
|
this.FabrikantenApiClient = FabrikantenApiClient;
|
|
10324
10366
|
this.BestekService = BestekService;
|
|
10325
10367
|
this.TranslateService = TranslateService;
|
|
@@ -10327,6 +10369,7 @@ class FabrikantenService {
|
|
|
10327
10369
|
this.SVGService = SVGService;
|
|
10328
10370
|
this.TextureService = TextureService;
|
|
10329
10371
|
this.NavigateService = NavigateService;
|
|
10372
|
+
this.StatisticsService = StatisticsService;
|
|
10330
10373
|
this.Init = false;
|
|
10331
10374
|
this.Loading = true;
|
|
10332
10375
|
this.DownloadARKEYAdomiLoading = false;
|
|
@@ -10371,6 +10414,9 @@ class FabrikantenService {
|
|
|
10371
10414
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10372
10415
|
request.filterOptionId = filteroptionid;
|
|
10373
10416
|
request.filterId = filterid;
|
|
10417
|
+
if (this.StatisticsService.Active) {
|
|
10418
|
+
this.StatisticsService.SelectFilterOption(this.TranslateService.GetActiveValueFilter(filterid) + ": " + this.TranslateService.GetActiveValueFilterOption(filteroptionid));
|
|
10419
|
+
}
|
|
10374
10420
|
this.FabrikantenApiClient.selectFilterOption(request).subscribe(() => {
|
|
10375
10421
|
this.ReloadModel(ChangeDetectorRef);
|
|
10376
10422
|
}, (error) => {
|
|
@@ -10411,6 +10457,9 @@ class FabrikantenService {
|
|
|
10411
10457
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10412
10458
|
request.rangeInputId = rangeinputid;
|
|
10413
10459
|
request.value = value;
|
|
10460
|
+
if (this.StatisticsService.Active) {
|
|
10461
|
+
this.StatisticsService.SelectRangeValue(this.TranslateService.GetActiveValueRangeInput(rangeinputid) + ": " + value);
|
|
10462
|
+
}
|
|
10414
10463
|
this.FabrikantenApiClient.setRangeInput(request).subscribe(() => {
|
|
10415
10464
|
this.ReloadModel(ChangeDetectorRef);
|
|
10416
10465
|
}, (error) => {
|
|
@@ -10465,6 +10514,9 @@ class FabrikantenService {
|
|
|
10465
10514
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10466
10515
|
request.categoryId = category.id;
|
|
10467
10516
|
request.categoryLayer = category.layer;
|
|
10517
|
+
if (this.StatisticsService.Active) {
|
|
10518
|
+
this.StatisticsService.SelectCategory(this.TranslateService.GetActiveValueCategory(category.id));
|
|
10519
|
+
}
|
|
10468
10520
|
this.FabrikantenApiClient.selectCategory(request).subscribe(() => {
|
|
10469
10521
|
this.ReloadModel(ChangeDetectorRef);
|
|
10470
10522
|
}, (error) => {
|
|
@@ -10484,6 +10536,9 @@ class FabrikantenService {
|
|
|
10484
10536
|
var request = new SelectProductRequest();
|
|
10485
10537
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10486
10538
|
request.productId = product.id;
|
|
10539
|
+
if (this.StatisticsService.Active) {
|
|
10540
|
+
this.StatisticsService.SelectProduct(this.TranslateService.GetActiveValueProduct(product.id));
|
|
10541
|
+
}
|
|
10487
10542
|
this.FabrikantenApiClient.selectProduct(request).subscribe(() => {
|
|
10488
10543
|
this.SelectedToebehoren = null;
|
|
10489
10544
|
this.ResetTabs();
|
|
@@ -10896,12 +10951,18 @@ class FabrikantenService {
|
|
|
10896
10951
|
}
|
|
10897
10952
|
// Downloads
|
|
10898
10953
|
DownloadARKEYAdomi(custombcbeboid) {
|
|
10954
|
+
var _a;
|
|
10899
10955
|
this.DownloadARKEYAdomiLoading = true;
|
|
10900
10956
|
var request = new FabrikantenFileRequestModel();
|
|
10901
10957
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10902
10958
|
request.fileType = "dhg";
|
|
10903
10959
|
request.model3D = true;
|
|
10904
10960
|
request.customBCBEBOId = custombcbeboid;
|
|
10961
|
+
if (this.StatisticsService.Active) {
|
|
10962
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
10963
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
10964
|
+
}
|
|
10965
|
+
}
|
|
10905
10966
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
10906
10967
|
this.StartDownload(model.file + "", ".dhg");
|
|
10907
10968
|
this.DownloadARKEYAdomiLoading = false;
|
|
@@ -10915,12 +10976,18 @@ class FabrikantenService {
|
|
|
10915
10976
|
});
|
|
10916
10977
|
}
|
|
10917
10978
|
DownloadIFC(custombcbeboid) {
|
|
10979
|
+
var _a;
|
|
10918
10980
|
this.DownloadIFCLoading = true;
|
|
10919
10981
|
var request = new FabrikantenFileRequestModel();
|
|
10920
10982
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10921
10983
|
request.fileType = "ifc";
|
|
10922
10984
|
request.model3D = true;
|
|
10923
10985
|
request.customBCBEBOId = custombcbeboid;
|
|
10986
|
+
if (this.StatisticsService.Active) {
|
|
10987
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
10988
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
10989
|
+
}
|
|
10990
|
+
}
|
|
10924
10991
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
10925
10992
|
this.StartDownload(model.file + "", ".ifc");
|
|
10926
10993
|
this.DownloadIFCLoading = false;
|
|
@@ -10934,12 +11001,18 @@ class FabrikantenService {
|
|
|
10934
11001
|
});
|
|
10935
11002
|
}
|
|
10936
11003
|
DownloadRevitPlugin(custombcbeboid) {
|
|
11004
|
+
var _a;
|
|
10937
11005
|
this.DownloadRevitPluginLoading = false;
|
|
10938
11006
|
var request = new FabrikantenFileRequestModel();
|
|
10939
11007
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10940
11008
|
request.fileType = "hdhRevit";
|
|
10941
11009
|
request.model3D = true;
|
|
10942
11010
|
request.customBCBEBOId = custombcbeboid;
|
|
11011
|
+
if (this.StatisticsService.Active) {
|
|
11012
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11013
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11014
|
+
}
|
|
11015
|
+
}
|
|
10943
11016
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
10944
11017
|
window.location.href = model.file + "";
|
|
10945
11018
|
this.DownloadRevitPluginLoading = false;
|
|
@@ -10953,12 +11026,18 @@ class FabrikantenService {
|
|
|
10953
11026
|
});
|
|
10954
11027
|
}
|
|
10955
11028
|
Download3DAutoCADDwg(custombcbeboid) {
|
|
11029
|
+
var _a;
|
|
10956
11030
|
this.Download3DAutoCADDwgLoading = true;
|
|
10957
11031
|
var request = new FabrikantenFileRequestModel();
|
|
10958
11032
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10959
11033
|
request.fileType = "dwg";
|
|
10960
11034
|
request.model3D = true;
|
|
10961
11035
|
request.customBCBEBOId = custombcbeboid;
|
|
11036
|
+
if (this.StatisticsService.Active) {
|
|
11037
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11038
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11039
|
+
}
|
|
11040
|
+
}
|
|
10962
11041
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
10963
11042
|
this.StartDownload(model.file + "", ".dwg");
|
|
10964
11043
|
this.Download3DAutoCADDwgLoading = false;
|
|
@@ -10972,12 +11051,18 @@ class FabrikantenService {
|
|
|
10972
11051
|
});
|
|
10973
11052
|
}
|
|
10974
11053
|
Download3DDxf(custombcbeboid) {
|
|
11054
|
+
var _a;
|
|
10975
11055
|
this.Download3DDxfLoading = true;
|
|
10976
11056
|
var request = new FabrikantenFileRequestModel();
|
|
10977
11057
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10978
11058
|
request.fileType = "dxf";
|
|
10979
11059
|
request.model3D = true;
|
|
10980
11060
|
request.customBCBEBOId = custombcbeboid;
|
|
11061
|
+
if (this.StatisticsService.Active) {
|
|
11062
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11063
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11064
|
+
}
|
|
11065
|
+
}
|
|
10981
11066
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
10982
11067
|
this.StartDownload(model.file + "", ".dxf");
|
|
10983
11068
|
this.Download3DDxfLoading = false;
|
|
@@ -10991,12 +11076,18 @@ class FabrikantenService {
|
|
|
10991
11076
|
});
|
|
10992
11077
|
}
|
|
10993
11078
|
Download2DAutoCADDwg(custombcbeboid) {
|
|
11079
|
+
var _a;
|
|
10994
11080
|
this.Download2DAutoCADDwgLoading = true;
|
|
10995
11081
|
var request = new FabrikantenFileRequestModel();
|
|
10996
11082
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
10997
11083
|
request.fileType = "dwg";
|
|
10998
11084
|
request.model3D = false;
|
|
10999
11085
|
request.customBCBEBOId = custombcbeboid;
|
|
11086
|
+
if (this.StatisticsService.Active) {
|
|
11087
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11088
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11089
|
+
}
|
|
11090
|
+
}
|
|
11000
11091
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
11001
11092
|
this.StartDownload(model.file + "", ".dwg");
|
|
11002
11093
|
this.Download2DAutoCADDwgLoading = false;
|
|
@@ -11010,12 +11101,18 @@ class FabrikantenService {
|
|
|
11010
11101
|
});
|
|
11011
11102
|
}
|
|
11012
11103
|
Download2DDxf(custombcbeboid) {
|
|
11104
|
+
var _a;
|
|
11013
11105
|
this.Download2DDxfLoading = true;
|
|
11014
11106
|
var request = new FabrikantenFileRequestModel();
|
|
11015
11107
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
11016
11108
|
request.fileType = "dxf";
|
|
11017
11109
|
request.model3D = false;
|
|
11018
11110
|
request.customBCBEBOId = custombcbeboid;
|
|
11111
|
+
if (this.StatisticsService.Active) {
|
|
11112
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11113
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11114
|
+
}
|
|
11115
|
+
}
|
|
11019
11116
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
11020
11117
|
this.StartDownload(model.file + "", ".dxf");
|
|
11021
11118
|
this.Download2DDxfLoading = false;
|
|
@@ -11029,18 +11126,29 @@ class FabrikantenService {
|
|
|
11029
11126
|
});
|
|
11030
11127
|
}
|
|
11031
11128
|
DownloadRFA(custombcbeboid) {
|
|
11129
|
+
var _a;
|
|
11032
11130
|
this.DownloadRFALoading = true;
|
|
11033
11131
|
var request = new FabrikantenFileRequestModel();
|
|
11034
11132
|
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
11035
11133
|
request.fileType = "rfa";
|
|
11036
11134
|
request.model3D = false;
|
|
11037
11135
|
request.customBCBEBOId = custombcbeboid;
|
|
11136
|
+
if (this.StatisticsService.Active) {
|
|
11137
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11138
|
+
this.StatisticsService.DownloadFile(request.fileType, this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11139
|
+
}
|
|
11140
|
+
}
|
|
11038
11141
|
this.FabrikantenApiClient.getFabrikantenFileViewModel(request).subscribe((model) => {
|
|
11039
11142
|
if (model.customRFAZip) {
|
|
11040
11143
|
this.StartDownload(model.file + "", ".zip");
|
|
11041
11144
|
}
|
|
11042
11145
|
else {
|
|
11043
|
-
|
|
11146
|
+
if (model.rvtExtension) {
|
|
11147
|
+
this.StartDownload(model.file + "", ".rvt");
|
|
11148
|
+
}
|
|
11149
|
+
else {
|
|
11150
|
+
this.StartDownload(model.file + "", ".rfa");
|
|
11151
|
+
}
|
|
11044
11152
|
}
|
|
11045
11153
|
this.DownloadRFALoading = false;
|
|
11046
11154
|
}, (error) => {
|
|
@@ -11063,6 +11171,7 @@ class FabrikantenService {
|
|
|
11063
11171
|
}
|
|
11064
11172
|
}
|
|
11065
11173
|
DownloadBestek(data) {
|
|
11174
|
+
var _a;
|
|
11066
11175
|
if (this.BestekService.TypeBestek == "STABU") {
|
|
11067
11176
|
this.DownloadBestekInner(data, ".S01");
|
|
11068
11177
|
}
|
|
@@ -11072,6 +11181,11 @@ class FabrikantenService {
|
|
|
11072
11181
|
if (this.BestekService.TypeBestek == "Vrij") {
|
|
11073
11182
|
this.DownloadBestekInner(data, ".txt");
|
|
11074
11183
|
}
|
|
11184
|
+
if (this.StatisticsService.Active) {
|
|
11185
|
+
if (((_a = this.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.selectedProduct) != null) {
|
|
11186
|
+
this.StatisticsService.DownloadFile("bestek", this.TranslateService.GetActiveValueProduct(this.FabrikantenViewModel.selectedProduct.id));
|
|
11187
|
+
}
|
|
11188
|
+
}
|
|
11075
11189
|
}
|
|
11076
11190
|
DownloadBestekInner(data, extension) {
|
|
11077
11191
|
var c = document.createElement("a");
|
|
@@ -11182,12 +11296,12 @@ class FabrikantenService {
|
|
|
11182
11296
|
return toebehoren;
|
|
11183
11297
|
}
|
|
11184
11298
|
}
|
|
11185
|
-
FabrikantenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, deps: [{ token: FabrikantenApiClient }, { token: BestekService }, { token: TranslateService }, { token: WebGLService }, { token: SVGService }, { token: TextureService }, { token: NavigateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11299
|
+
FabrikantenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, deps: [{ token: FabrikantenApiClient }, { token: BestekService }, { token: TranslateService }, { token: WebGLService }, { token: SVGService }, { token: TextureService }, { token: NavigateService }, { token: StatisticsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11186
11300
|
FabrikantenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, providedIn: 'root' });
|
|
11187
11301
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: FabrikantenService, decorators: [{
|
|
11188
11302
|
type: Injectable,
|
|
11189
11303
|
args: [{ providedIn: 'root' }]
|
|
11190
|
-
}], ctorParameters: function () { return [{ type: FabrikantenApiClient }, { type: BestekService }, { type: TranslateService }, { type: WebGLService }, { type: SVGService }, { type: TextureService }, { type: NavigateService }]; } });
|
|
11304
|
+
}], ctorParameters: function () { return [{ type: FabrikantenApiClient }, { type: BestekService }, { type: TranslateService }, { type: WebGLService }, { type: SVGService }, { type: TextureService }, { type: NavigateService }, { type: StatisticsService }]; } });
|
|
11191
11305
|
|
|
11192
11306
|
class FabFiltersComponent {
|
|
11193
11307
|
constructor(MobileService, FabrikantenService, BestekService, TranslateService, ActivatedRoute, ChangeDetectorRef) {
|
|
@@ -15637,7 +15751,7 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
15637
15751
|
ToebehorenService,
|
|
15638
15752
|
TextureService,
|
|
15639
15753
|
SVGService,
|
|
15640
|
-
|
|
15754
|
+
StatisticsService,
|
|
15641
15755
|
MobileService,
|
|
15642
15756
|
TranslateService,
|
|
15643
15757
|
FabrikantenService,
|
|
@@ -15653,8 +15767,7 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
15653
15767
|
ProductsApiClient,
|
|
15654
15768
|
ProjectSettingApiClient,
|
|
15655
15769
|
{ provide: HTTP_INTERCEPTORS, useClass: BasicAuthInterceptor, multi: true },
|
|
15656
|
-
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
15657
|
-
{ provide: 'googleTagManagerId', useValue: "G-XK4L5JFYTN" }
|
|
15770
|
+
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
15658
15771
|
], imports: [CommonModule,
|
|
15659
15772
|
HttpClientModule,
|
|
15660
15773
|
MatInputModule,
|
|
@@ -15680,7 +15793,6 @@ FabrikantenCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
15680
15793
|
MatProgressSpinnerModule,
|
|
15681
15794
|
MatSelectModule,
|
|
15682
15795
|
MatSnackBarModule,
|
|
15683
|
-
//GoogleTagManagerModule.forRoot(),
|
|
15684
15796
|
RouterModule.forRoot(routes, {
|
|
15685
15797
|
scrollPositionRestoration: 'enabled',
|
|
15686
15798
|
anchorScrolling: 'enabled',
|
|
@@ -15714,7 +15826,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
15714
15826
|
MatProgressSpinnerModule,
|
|
15715
15827
|
MatSelectModule,
|
|
15716
15828
|
MatSnackBarModule,
|
|
15717
|
-
//GoogleTagManagerModule.forRoot(),
|
|
15718
15829
|
RouterModule.forRoot(routes, {
|
|
15719
15830
|
scrollPositionRestoration: 'enabled',
|
|
15720
15831
|
anchorScrolling: 'enabled',
|
|
@@ -15802,7 +15913,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
15802
15913
|
ToebehorenService,
|
|
15803
15914
|
TextureService,
|
|
15804
15915
|
SVGService,
|
|
15805
|
-
|
|
15916
|
+
StatisticsService,
|
|
15806
15917
|
MobileService,
|
|
15807
15918
|
TranslateService,
|
|
15808
15919
|
FabrikantenService,
|
|
@@ -15818,8 +15929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
15818
15929
|
ProductsApiClient,
|
|
15819
15930
|
ProjectSettingApiClient,
|
|
15820
15931
|
{ provide: HTTP_INTERCEPTORS, useClass: BasicAuthInterceptor, multi: true },
|
|
15821
|
-
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
15822
|
-
{ provide: 'googleTagManagerId', useValue: "G-XK4L5JFYTN" }
|
|
15932
|
+
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
15823
15933
|
],
|
|
15824
15934
|
exports: [
|
|
15825
15935
|
FabFiltersComponent,
|