fabrikantencore 2.7.3 → 2.7.5
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/esm2022/src/app/modules/fabrikantencore/components/fab-filter-custom/fab-filter-custom.component.mjs +23 -28
- package/esm2022/src/app/modules/fabrikantencore/components/fab-filter-custom-base/fab-filter-custom-base.component.mjs +12 -0
- package/esm2022/src/app/modules/fabrikantencore/fabrikantencore.module.mjs +6 -30
- package/esm2022/src/app/modules/fabrikantencore/services/fabrikanten.service.mjs +17 -2
- package/esm2022/src/app/modules/fabrikantencore/services/template-component.service.mjs +24 -21
- package/esm2022/src/app/modules/fabrikantencore/swagger/SwaggerClient.mjs +136 -51
- package/fesm2022/fabrikantencore.mjs +207 -122
- package/fesm2022/fabrikantencore.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/fabrikantencore/components/fab-filter-custom/fab-filter-custom.component.d.ts +9 -12
- package/src/app/modules/fabrikantencore/components/fab-filter-custom-base/fab-filter-custom-base.component.d.ts +5 -0
- package/src/app/modules/fabrikantencore/fabrikantencore.module.d.ts +30 -30
- package/src/app/modules/fabrikantencore/services/fabrikanten.service.d.ts +1 -0
- package/src/app/modules/fabrikantencore/services/template-component.service.d.ts +6 -4
- package/src/app/modules/fabrikantencore/swagger/SwaggerClient.d.ts +44 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, Inject, Optional, Component, ViewEncapsulation, HostListener, Input, EventEmitter, Output, ViewChild, NgModule } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Inject, Optional, Component, ViewEncapsulation, HostListener, Input, EventEmitter, Output, ViewChild, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
3
|
import * as i4 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/router';
|
|
@@ -1089,10 +1089,10 @@ class FabrikantenApiClient {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return of(null);
|
|
1091
1091
|
}
|
|
1092
|
-
|
|
1093
|
-
let url_ = this.baseUrl + "/api/fabrikanten/
|
|
1092
|
+
selectCategory(pSelectCategoryRequest) {
|
|
1093
|
+
let url_ = this.baseUrl + "/api/fabrikanten/selectcategory";
|
|
1094
1094
|
url_ = url_.replace(/[?&]$/, "");
|
|
1095
|
-
const content_ = JSON.stringify(
|
|
1095
|
+
const content_ = JSON.stringify(pSelectCategoryRequest);
|
|
1096
1096
|
let options_ = {
|
|
1097
1097
|
body: content_,
|
|
1098
1098
|
observe: "response",
|
|
@@ -1102,11 +1102,11 @@ class FabrikantenApiClient {
|
|
|
1102
1102
|
})
|
|
1103
1103
|
};
|
|
1104
1104
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
1105
|
-
return this.
|
|
1105
|
+
return this.processSelectCategory(response_);
|
|
1106
1106
|
})).pipe(catchError((response_) => {
|
|
1107
1107
|
if (response_ instanceof HttpResponseBase) {
|
|
1108
1108
|
try {
|
|
1109
|
-
return this.
|
|
1109
|
+
return this.processSelectCategory(response_);
|
|
1110
1110
|
}
|
|
1111
1111
|
catch (e) {
|
|
1112
1112
|
return throwError(e);
|
|
@@ -1116,7 +1116,7 @@ class FabrikantenApiClient {
|
|
|
1116
1116
|
return throwError(response_);
|
|
1117
1117
|
}));
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1119
|
+
processSelectCategory(response) {
|
|
1120
1120
|
const status = response.status;
|
|
1121
1121
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1122
1122
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -1138,10 +1138,10 @@ class FabrikantenApiClient {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
return of(null);
|
|
1140
1140
|
}
|
|
1141
|
-
|
|
1142
|
-
let url_ = this.baseUrl + "/api/fabrikanten/
|
|
1141
|
+
selectColour(pSelectColourRequest) {
|
|
1142
|
+
let url_ = this.baseUrl + "/api/fabrikanten/selectcolour";
|
|
1143
1143
|
url_ = url_.replace(/[?&]$/, "");
|
|
1144
|
-
const content_ = JSON.stringify(
|
|
1144
|
+
const content_ = JSON.stringify(pSelectColourRequest);
|
|
1145
1145
|
let options_ = {
|
|
1146
1146
|
body: content_,
|
|
1147
1147
|
observe: "response",
|
|
@@ -1151,11 +1151,11 @@ class FabrikantenApiClient {
|
|
|
1151
1151
|
})
|
|
1152
1152
|
};
|
|
1153
1153
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
1154
|
-
return this.
|
|
1154
|
+
return this.processSelectColour(response_);
|
|
1155
1155
|
})).pipe(catchError((response_) => {
|
|
1156
1156
|
if (response_ instanceof HttpResponseBase) {
|
|
1157
1157
|
try {
|
|
1158
|
-
return this.
|
|
1158
|
+
return this.processSelectColour(response_);
|
|
1159
1159
|
}
|
|
1160
1160
|
catch (e) {
|
|
1161
1161
|
return throwError(e);
|
|
@@ -1165,7 +1165,7 @@ class FabrikantenApiClient {
|
|
|
1165
1165
|
return throwError(response_);
|
|
1166
1166
|
}));
|
|
1167
1167
|
}
|
|
1168
|
-
|
|
1168
|
+
processSelectColour(response) {
|
|
1169
1169
|
const status = response.status;
|
|
1170
1170
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1171
1171
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -1187,10 +1187,10 @@ class FabrikantenApiClient {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
return of(null);
|
|
1189
1189
|
}
|
|
1190
|
-
|
|
1191
|
-
let url_ = this.baseUrl + "/api/fabrikanten/
|
|
1190
|
+
selectFilterCustom(pSelectFilterCustomRequest) {
|
|
1191
|
+
let url_ = this.baseUrl + "/api/fabrikanten/selectfiltercustom";
|
|
1192
1192
|
url_ = url_.replace(/[?&]$/, "");
|
|
1193
|
-
const content_ = JSON.stringify(
|
|
1193
|
+
const content_ = JSON.stringify(pSelectFilterCustomRequest);
|
|
1194
1194
|
let options_ = {
|
|
1195
1195
|
body: content_,
|
|
1196
1196
|
observe: "response",
|
|
@@ -1200,11 +1200,11 @@ class FabrikantenApiClient {
|
|
|
1200
1200
|
})
|
|
1201
1201
|
};
|
|
1202
1202
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
1203
|
-
return this.
|
|
1203
|
+
return this.processSelectFilterCustom(response_);
|
|
1204
1204
|
})).pipe(catchError((response_) => {
|
|
1205
1205
|
if (response_ instanceof HttpResponseBase) {
|
|
1206
1206
|
try {
|
|
1207
|
-
return this.
|
|
1207
|
+
return this.processSelectFilterCustom(response_);
|
|
1208
1208
|
}
|
|
1209
1209
|
catch (e) {
|
|
1210
1210
|
return throwError(e);
|
|
@@ -1214,7 +1214,7 @@ class FabrikantenApiClient {
|
|
|
1214
1214
|
return throwError(response_);
|
|
1215
1215
|
}));
|
|
1216
1216
|
}
|
|
1217
|
-
|
|
1217
|
+
processSelectFilterCustom(response) {
|
|
1218
1218
|
const status = response.status;
|
|
1219
1219
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1220
1220
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -1236,10 +1236,10 @@ class FabrikantenApiClient {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return of(null);
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1240
|
-
let url_ = this.baseUrl + "/api/fabrikanten/
|
|
1239
|
+
selectProduct(pSelectProductRequest) {
|
|
1240
|
+
let url_ = this.baseUrl + "/api/fabrikanten/selectproduct";
|
|
1241
1241
|
url_ = url_.replace(/[?&]$/, "");
|
|
1242
|
-
const content_ = JSON.stringify(
|
|
1242
|
+
const content_ = JSON.stringify(pSelectProductRequest);
|
|
1243
1243
|
let options_ = {
|
|
1244
1244
|
body: content_,
|
|
1245
1245
|
observe: "response",
|
|
@@ -1249,11 +1249,11 @@ class FabrikantenApiClient {
|
|
|
1249
1249
|
})
|
|
1250
1250
|
};
|
|
1251
1251
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
1252
|
-
return this.
|
|
1252
|
+
return this.processSelectProduct(response_);
|
|
1253
1253
|
})).pipe(catchError((response_) => {
|
|
1254
1254
|
if (response_ instanceof HttpResponseBase) {
|
|
1255
1255
|
try {
|
|
1256
|
-
return this.
|
|
1256
|
+
return this.processSelectProduct(response_);
|
|
1257
1257
|
}
|
|
1258
1258
|
catch (e) {
|
|
1259
1259
|
return throwError(e);
|
|
@@ -1263,7 +1263,56 @@ class FabrikantenApiClient {
|
|
|
1263
1263
|
return throwError(response_);
|
|
1264
1264
|
}));
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1266
|
+
processSelectProduct(response) {
|
|
1267
|
+
const status = response.status;
|
|
1268
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1269
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1270
|
+
let _headers = {};
|
|
1271
|
+
if (response.headers) {
|
|
1272
|
+
for (let key of response.headers.keys()) {
|
|
1273
|
+
_headers[key] = response.headers.get(key);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
if (status === 200) {
|
|
1277
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
1278
|
+
return of(null);
|
|
1279
|
+
}));
|
|
1280
|
+
}
|
|
1281
|
+
else if (status !== 200 && status !== 204) {
|
|
1282
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
1283
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1284
|
+
}));
|
|
1285
|
+
}
|
|
1286
|
+
return of(null);
|
|
1287
|
+
}
|
|
1288
|
+
removeProductSelection(pRemoveProductSelectionRequest) {
|
|
1289
|
+
let url_ = this.baseUrl + "/api/fabrikanten/removeproductselection";
|
|
1290
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1291
|
+
const content_ = JSON.stringify(pRemoveProductSelectionRequest);
|
|
1292
|
+
let options_ = {
|
|
1293
|
+
body: content_,
|
|
1294
|
+
observe: "response",
|
|
1295
|
+
responseType: "blob",
|
|
1296
|
+
headers: new HttpHeaders({
|
|
1297
|
+
"Content-Type": "application/json",
|
|
1298
|
+
})
|
|
1299
|
+
};
|
|
1300
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
1301
|
+
return this.processRemoveProductSelection(response_);
|
|
1302
|
+
})).pipe(catchError((response_) => {
|
|
1303
|
+
if (response_ instanceof HttpResponseBase) {
|
|
1304
|
+
try {
|
|
1305
|
+
return this.processRemoveProductSelection(response_);
|
|
1306
|
+
}
|
|
1307
|
+
catch (e) {
|
|
1308
|
+
return throwError(e);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
else
|
|
1312
|
+
return throwError(response_);
|
|
1313
|
+
}));
|
|
1314
|
+
}
|
|
1315
|
+
processRemoveProductSelection(response) {
|
|
1267
1316
|
const status = response.status;
|
|
1268
1317
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1269
1318
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -6344,6 +6393,7 @@ class FabrikantenFilterViewModel {
|
|
|
6344
6393
|
selectedOptions;
|
|
6345
6394
|
selectedColour;
|
|
6346
6395
|
selectedColourValue;
|
|
6396
|
+
selectedFilterCustom;
|
|
6347
6397
|
options;
|
|
6348
6398
|
descriptions;
|
|
6349
6399
|
constructor(data) {
|
|
@@ -6375,6 +6425,7 @@ class FabrikantenFilterViewModel {
|
|
|
6375
6425
|
}
|
|
6376
6426
|
this.selectedColour = _data["selectedColour"];
|
|
6377
6427
|
this.selectedColourValue = _data["selectedColourValue"];
|
|
6428
|
+
this.selectedFilterCustom = _data["selectedFilterCustom"];
|
|
6378
6429
|
if (Array.isArray(_data["options"])) {
|
|
6379
6430
|
this.options = [];
|
|
6380
6431
|
for (let item of _data["options"])
|
|
@@ -6414,6 +6465,7 @@ class FabrikantenFilterViewModel {
|
|
|
6414
6465
|
}
|
|
6415
6466
|
data["selectedColour"] = this.selectedColour;
|
|
6416
6467
|
data["selectedColourValue"] = this.selectedColourValue;
|
|
6468
|
+
data["selectedFilterCustom"] = this.selectedFilterCustom;
|
|
6417
6469
|
if (Array.isArray(this.options)) {
|
|
6418
6470
|
data["options"] = [];
|
|
6419
6471
|
for (let item of this.options)
|
|
@@ -7647,9 +7699,10 @@ class SelectBCBProductRequest {
|
|
|
7647
7699
|
return data;
|
|
7648
7700
|
}
|
|
7649
7701
|
}
|
|
7650
|
-
class
|
|
7702
|
+
class SelectCategoryRequest {
|
|
7651
7703
|
sessionId;
|
|
7652
|
-
|
|
7704
|
+
categoryLayer;
|
|
7705
|
+
categoryId;
|
|
7653
7706
|
constructor(data) {
|
|
7654
7707
|
if (data) {
|
|
7655
7708
|
for (var property in data) {
|
|
@@ -7661,24 +7714,64 @@ class SelectProductRequest {
|
|
|
7661
7714
|
init(_data) {
|
|
7662
7715
|
if (_data) {
|
|
7663
7716
|
this.sessionId = _data["sessionId"];
|
|
7664
|
-
this.
|
|
7717
|
+
this.categoryLayer = _data["categoryLayer"];
|
|
7718
|
+
this.categoryId = _data["categoryId"];
|
|
7665
7719
|
}
|
|
7666
7720
|
}
|
|
7667
7721
|
static fromJS(data) {
|
|
7668
7722
|
data = typeof data === 'object' ? data : {};
|
|
7669
|
-
let result = new
|
|
7723
|
+
let result = new SelectCategoryRequest();
|
|
7670
7724
|
result.init(data);
|
|
7671
7725
|
return result;
|
|
7672
7726
|
}
|
|
7673
7727
|
toJSON(data) {
|
|
7674
7728
|
data = typeof data === 'object' ? data : {};
|
|
7675
7729
|
data["sessionId"] = this.sessionId;
|
|
7676
|
-
data["
|
|
7730
|
+
data["categoryLayer"] = this.categoryLayer;
|
|
7731
|
+
data["categoryId"] = this.categoryId;
|
|
7677
7732
|
return data;
|
|
7678
7733
|
}
|
|
7679
7734
|
}
|
|
7680
|
-
class
|
|
7735
|
+
class SelectColourRequest {
|
|
7736
|
+
sessionId;
|
|
7737
|
+
filterId;
|
|
7738
|
+
colourName;
|
|
7739
|
+
colourValue;
|
|
7740
|
+
constructor(data) {
|
|
7741
|
+
if (data) {
|
|
7742
|
+
for (var property in data) {
|
|
7743
|
+
if (data.hasOwnProperty(property))
|
|
7744
|
+
this[property] = data[property];
|
|
7745
|
+
}
|
|
7746
|
+
}
|
|
7747
|
+
}
|
|
7748
|
+
init(_data) {
|
|
7749
|
+
if (_data) {
|
|
7750
|
+
this.sessionId = _data["sessionId"];
|
|
7751
|
+
this.filterId = _data["filterId"];
|
|
7752
|
+
this.colourName = _data["colourName"];
|
|
7753
|
+
this.colourValue = _data["colourValue"];
|
|
7754
|
+
}
|
|
7755
|
+
}
|
|
7756
|
+
static fromJS(data) {
|
|
7757
|
+
data = typeof data === 'object' ? data : {};
|
|
7758
|
+
let result = new SelectColourRequest();
|
|
7759
|
+
result.init(data);
|
|
7760
|
+
return result;
|
|
7761
|
+
}
|
|
7762
|
+
toJSON(data) {
|
|
7763
|
+
data = typeof data === 'object' ? data : {};
|
|
7764
|
+
data["sessionId"] = this.sessionId;
|
|
7765
|
+
data["filterId"] = this.filterId;
|
|
7766
|
+
data["colourName"] = this.colourName;
|
|
7767
|
+
data["colourValue"] = this.colourValue;
|
|
7768
|
+
return data;
|
|
7769
|
+
}
|
|
7770
|
+
}
|
|
7771
|
+
class SelectFilterCustomRequest {
|
|
7681
7772
|
sessionId;
|
|
7773
|
+
filterId;
|
|
7774
|
+
customValue;
|
|
7682
7775
|
constructor(data) {
|
|
7683
7776
|
if (data) {
|
|
7684
7777
|
for (var property in data) {
|
|
@@ -7690,24 +7783,27 @@ class RemoveProductSelectionRequest {
|
|
|
7690
7783
|
init(_data) {
|
|
7691
7784
|
if (_data) {
|
|
7692
7785
|
this.sessionId = _data["sessionId"];
|
|
7786
|
+
this.filterId = _data["filterId"];
|
|
7787
|
+
this.customValue = _data["customValue"];
|
|
7693
7788
|
}
|
|
7694
7789
|
}
|
|
7695
7790
|
static fromJS(data) {
|
|
7696
7791
|
data = typeof data === 'object' ? data : {};
|
|
7697
|
-
let result = new
|
|
7792
|
+
let result = new SelectFilterCustomRequest();
|
|
7698
7793
|
result.init(data);
|
|
7699
7794
|
return result;
|
|
7700
7795
|
}
|
|
7701
7796
|
toJSON(data) {
|
|
7702
7797
|
data = typeof data === 'object' ? data : {};
|
|
7703
7798
|
data["sessionId"] = this.sessionId;
|
|
7799
|
+
data["filterId"] = this.filterId;
|
|
7800
|
+
data["customValue"] = this.customValue;
|
|
7704
7801
|
return data;
|
|
7705
7802
|
}
|
|
7706
7803
|
}
|
|
7707
|
-
class
|
|
7804
|
+
class SelectProductRequest {
|
|
7708
7805
|
sessionId;
|
|
7709
|
-
|
|
7710
|
-
categoryId;
|
|
7806
|
+
productId;
|
|
7711
7807
|
constructor(data) {
|
|
7712
7808
|
if (data) {
|
|
7713
7809
|
for (var property in data) {
|
|
@@ -7719,29 +7815,24 @@ class SelectCategoryRequest {
|
|
|
7719
7815
|
init(_data) {
|
|
7720
7816
|
if (_data) {
|
|
7721
7817
|
this.sessionId = _data["sessionId"];
|
|
7722
|
-
this.
|
|
7723
|
-
this.categoryId = _data["categoryId"];
|
|
7818
|
+
this.productId = _data["productId"];
|
|
7724
7819
|
}
|
|
7725
7820
|
}
|
|
7726
7821
|
static fromJS(data) {
|
|
7727
7822
|
data = typeof data === 'object' ? data : {};
|
|
7728
|
-
let result = new
|
|
7823
|
+
let result = new SelectProductRequest();
|
|
7729
7824
|
result.init(data);
|
|
7730
7825
|
return result;
|
|
7731
7826
|
}
|
|
7732
7827
|
toJSON(data) {
|
|
7733
7828
|
data = typeof data === 'object' ? data : {};
|
|
7734
7829
|
data["sessionId"] = this.sessionId;
|
|
7735
|
-
data["
|
|
7736
|
-
data["categoryId"] = this.categoryId;
|
|
7830
|
+
data["productId"] = this.productId;
|
|
7737
7831
|
return data;
|
|
7738
7832
|
}
|
|
7739
7833
|
}
|
|
7740
|
-
class
|
|
7834
|
+
class RemoveProductSelectionRequest {
|
|
7741
7835
|
sessionId;
|
|
7742
|
-
filterId;
|
|
7743
|
-
colourName;
|
|
7744
|
-
colourValue;
|
|
7745
7836
|
constructor(data) {
|
|
7746
7837
|
if (data) {
|
|
7747
7838
|
for (var property in data) {
|
|
@@ -7753,23 +7844,17 @@ class SelectColourRequest {
|
|
|
7753
7844
|
init(_data) {
|
|
7754
7845
|
if (_data) {
|
|
7755
7846
|
this.sessionId = _data["sessionId"];
|
|
7756
|
-
this.filterId = _data["filterId"];
|
|
7757
|
-
this.colourName = _data["colourName"];
|
|
7758
|
-
this.colourValue = _data["colourValue"];
|
|
7759
7847
|
}
|
|
7760
7848
|
}
|
|
7761
7849
|
static fromJS(data) {
|
|
7762
7850
|
data = typeof data === 'object' ? data : {};
|
|
7763
|
-
let result = new
|
|
7851
|
+
let result = new RemoveProductSelectionRequest();
|
|
7764
7852
|
result.init(data);
|
|
7765
7853
|
return result;
|
|
7766
7854
|
}
|
|
7767
7855
|
toJSON(data) {
|
|
7768
7856
|
data = typeof data === 'object' ? data : {};
|
|
7769
7857
|
data["sessionId"] = this.sessionId;
|
|
7770
|
-
data["filterId"] = this.filterId;
|
|
7771
|
-
data["colourName"] = this.colourName;
|
|
7772
|
-
data["colourValue"] = this.colourValue;
|
|
7773
7858
|
return data;
|
|
7774
7859
|
}
|
|
7775
7860
|
}
|
|
@@ -12443,6 +12528,21 @@ class FabrikantenService {
|
|
|
12443
12528
|
ChangeDetectorRef.detectChanges();
|
|
12444
12529
|
});
|
|
12445
12530
|
}
|
|
12531
|
+
SelectFilterCustom(filterid, customvalue, ChangeDetectorRef) {
|
|
12532
|
+
this.Loading = true;
|
|
12533
|
+
ChangeDetectorRef.detectChanges();
|
|
12534
|
+
var request = new SelectFilterCustomRequest();
|
|
12535
|
+
request.sessionId = this.FabrikantenViewModel.sessionId;
|
|
12536
|
+
request.customValue = customvalue;
|
|
12537
|
+
request.filterId = filterid;
|
|
12538
|
+
this.FabrikantenApiClient.selectFilterCustom(request).subscribe(() => {
|
|
12539
|
+
this.ReloadModel(ChangeDetectorRef);
|
|
12540
|
+
}, (error) => {
|
|
12541
|
+
alert('An unexpected error occured');
|
|
12542
|
+
this.Loading = false;
|
|
12543
|
+
ChangeDetectorRef.detectChanges();
|
|
12544
|
+
});
|
|
12545
|
+
}
|
|
12446
12546
|
SetRangeInput(rangeinputid, value, ChangeDetectorRef) {
|
|
12447
12547
|
this.Loading = true;
|
|
12448
12548
|
ChangeDetectorRef.detectChanges();
|
|
@@ -17362,29 +17462,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
17362
17462
|
}] } });
|
|
17363
17463
|
|
|
17364
17464
|
class TemplateComponentService {
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17465
|
+
componentFactoryResolver;
|
|
17466
|
+
ComponentInstances = new Array();
|
|
17467
|
+
constructor(componentFactoryResolver) {
|
|
17468
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
17469
|
+
}
|
|
17470
|
+
GetComponentFilterCustom(key) {
|
|
17471
|
+
for (var i = 0; i < this.ComponentInstances.length; i++) {
|
|
17472
|
+
if (this.ComponentInstances[i].Key == key) {
|
|
17473
|
+
return this.componentFactoryResolver.resolveComponentFactory(this.ComponentInstances[i].Component);
|
|
17372
17474
|
}
|
|
17373
17475
|
}
|
|
17374
|
-
|
|
17375
|
-
htmlinstance.Key = key;
|
|
17376
|
-
htmlinstance.HTML = html;
|
|
17377
|
-
this.HTMLInstances.push(htmlinstance);
|
|
17476
|
+
return null;
|
|
17378
17477
|
}
|
|
17379
|
-
|
|
17380
|
-
for (var i = 0; i < this.
|
|
17381
|
-
if (this.
|
|
17382
|
-
|
|
17478
|
+
SetComponentFilterCustom(key, component) {
|
|
17479
|
+
for (var i = 0; i < this.ComponentInstances.length; i++) {
|
|
17480
|
+
if (this.ComponentInstances[i].Key == key) {
|
|
17481
|
+
this.ComponentInstances[i].Component = component;
|
|
17482
|
+
return;
|
|
17383
17483
|
}
|
|
17384
17484
|
}
|
|
17385
|
-
|
|
17485
|
+
var componentinstance = new ComponentInstance();
|
|
17486
|
+
componentinstance.Key = key;
|
|
17487
|
+
componentinstance.Component = component;
|
|
17488
|
+
this.ComponentInstances.push(componentinstance);
|
|
17386
17489
|
}
|
|
17387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TemplateComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17490
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TemplateComponentService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17388
17491
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TemplateComponentService, providedIn: 'root' });
|
|
17389
17492
|
}
|
|
17390
17493
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: TemplateComponentService, decorators: [{
|
|
@@ -17392,17 +17495,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
17392
17495
|
args: [{
|
|
17393
17496
|
providedIn: 'root'
|
|
17394
17497
|
}]
|
|
17395
|
-
}], ctorParameters: function () { return []; } });
|
|
17396
|
-
class
|
|
17498
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; } });
|
|
17499
|
+
class ComponentInstance {
|
|
17397
17500
|
Key;
|
|
17398
|
-
|
|
17501
|
+
Component;
|
|
17399
17502
|
}
|
|
17400
17503
|
|
|
17401
17504
|
class FabFilterCustomComponent {
|
|
17402
|
-
FabrikantenService;
|
|
17403
|
-
TranslateService;
|
|
17404
17505
|
TemplateComponentService;
|
|
17405
|
-
ChangeDetectorRef;
|
|
17406
17506
|
_filter;
|
|
17407
17507
|
get filter() {
|
|
17408
17508
|
return this._filter;
|
|
@@ -17410,34 +17510,35 @@ class FabFilterCustomComponent {
|
|
|
17410
17510
|
set filter(value) {
|
|
17411
17511
|
this._filter = value;
|
|
17412
17512
|
}
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
}
|
|
17419
|
-
constructor(FabrikantenService, TranslateService, TemplateComponentService, ChangeDetectorRef) {
|
|
17420
|
-
this.FabrikantenService = FabrikantenService;
|
|
17421
|
-
this.TranslateService = TranslateService;
|
|
17513
|
+
componentContainer;
|
|
17514
|
+
componentRef;
|
|
17515
|
+
ComponentInjected = false;
|
|
17516
|
+
ComponentName = "";
|
|
17517
|
+
constructor(TemplateComponentService) {
|
|
17422
17518
|
this.TemplateComponentService = TemplateComponentService;
|
|
17423
|
-
this.ChangeDetectorRef = ChangeDetectorRef;
|
|
17424
17519
|
}
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17520
|
+
ngAfterViewInit() {
|
|
17521
|
+
this.ComponentName = "customfilter-" + this.filter.id;
|
|
17522
|
+
var component = this.TemplateComponentService.GetComponentFilterCustom(this.ComponentName);
|
|
17523
|
+
if (component != null) {
|
|
17524
|
+
this.componentContainer.createComponent(component);
|
|
17525
|
+
this.ComponentInjected = true;
|
|
17428
17526
|
}
|
|
17429
17527
|
else {
|
|
17430
|
-
|
|
17528
|
+
console.log("component is null");
|
|
17431
17529
|
}
|
|
17432
17530
|
}
|
|
17433
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FabFilterCustomComponent, deps: [{ token:
|
|
17434
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: FabFilterCustomComponent, selector: "app-fab-filter-custom", inputs: { filter: "filter" }, ngImport: i0, template: "<
|
|
17531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FabFilterCustomComponent, deps: [{ token: TemplateComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
17532
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: FabFilterCustomComponent, selector: "app-fab-filter-custom", inputs: { filter: "filter" }, viewQueries: [{ propertyName: "componentContainer", first: true, predicate: ["componentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<p *ngIf=\"!ComponentInjected\">\n no component injected for '{{ ComponentName }}'\n</p>\n<ng-container #componentContainer></ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
17435
17533
|
}
|
|
17436
17534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FabFilterCustomComponent, decorators: [{
|
|
17437
17535
|
type: Component,
|
|
17438
|
-
args: [{ selector: 'app-fab-filter-custom', template: "<
|
|
17439
|
-
}], ctorParameters: function () { return [{ type:
|
|
17536
|
+
args: [{ selector: 'app-fab-filter-custom', template: "<p *ngIf=\"!ComponentInjected\">\n no component injected for '{{ ComponentName }}'\n</p>\n<ng-container #componentContainer></ng-container>\n" }]
|
|
17537
|
+
}], ctorParameters: function () { return [{ type: TemplateComponentService }]; }, propDecorators: { filter: [{
|
|
17440
17538
|
type: Input
|
|
17539
|
+
}], componentContainer: [{
|
|
17540
|
+
type: ViewChild,
|
|
17541
|
+
args: ['componentContainer', { read: ViewContainerRef }]
|
|
17441
17542
|
}] } });
|
|
17442
17543
|
|
|
17443
17544
|
class FabInputComponent {
|
|
@@ -18922,6 +19023,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
18922
19023
|
args: [{ selector: 'app-fab-category-navigator', template: "<div *ngIf=\"!Loading\">\r\n <div class=\"nav-item\" (click)=\"Home()\" [ngClass]=\"{'active': IsHomeActive()}\">Home</div>\r\n <ng-container *ngFor=\"let category of this.CategoriesViewModel.categories\">\r\n <div class=\"nav-item\" (click)=\"SelectCategory(category)\" [ngClass]=\"{'active': IsCategoryActive(category)}\">{{ TranslateService.GetActiveValue(TranslationCategory.Category, TranslationSubCategory.Name, category.id) }}</div>\r\n </ng-container>\r\n</div>\r\n", styles: [".active{font-weight:700}\n"] }]
|
|
18923
19024
|
}], ctorParameters: function () { return [{ type: CategoriesApiClient }, { type: i0.ChangeDetectorRef }, { type: FabrikantenService }, { type: TranslateService }]; } });
|
|
18924
19025
|
|
|
19026
|
+
class FabFilterCustomBaseComponent {
|
|
19027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FabFilterCustomBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19028
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.1", type: FabFilterCustomBaseComponent, selector: "app-fab-filter-custom-base", ngImport: i0, template: "<p>no component injected!</p>\n", styles: [""] });
|
|
19029
|
+
}
|
|
19030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FabFilterCustomBaseComponent, decorators: [{
|
|
19031
|
+
type: Component,
|
|
19032
|
+
args: [{ selector: 'app-fab-filter-custom-base', template: "<p>no component injected!</p>\n" }]
|
|
19033
|
+
}] });
|
|
19034
|
+
|
|
18925
19035
|
const routes = [
|
|
18926
19036
|
{
|
|
18927
19037
|
path: 'beheer', children: [
|
|
@@ -19033,7 +19143,8 @@ class FabrikantenCoreModule {
|
|
|
19033
19143
|
BeheerFilterComponent,
|
|
19034
19144
|
BeheerRangeinputComponent,
|
|
19035
19145
|
FabFilterDisplayValueComponent,
|
|
19036
|
-
FabFilterCustomComponent
|
|
19146
|
+
FabFilterCustomComponent,
|
|
19147
|
+
FabFilterCustomBaseComponent], imports: [CommonModule,
|
|
19037
19148
|
HttpClientModule,
|
|
19038
19149
|
AngularEditorModule,
|
|
19039
19150
|
MatLegacyInputModule,
|
|
@@ -19239,7 +19350,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
19239
19350
|
BeheerFilterComponent,
|
|
19240
19351
|
BeheerRangeinputComponent,
|
|
19241
19352
|
FabFilterDisplayValueComponent,
|
|
19242
|
-
FabFilterCustomComponent
|
|
19353
|
+
FabFilterCustomComponent,
|
|
19354
|
+
FabFilterCustomBaseComponent
|
|
19243
19355
|
],
|
|
19244
19356
|
providers: [
|
|
19245
19357
|
NavigateService,
|
|
@@ -19283,37 +19395,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
19283
19395
|
]
|
|
19284
19396
|
}]
|
|
19285
19397
|
}] });
|
|
19286
|
-
function CustomModule(annotations) {
|
|
19287
|
-
return function (target) {
|
|
19288
|
-
let parentTarget = Object.getPrototypeOf(target.prototype).constructor;
|
|
19289
|
-
let parentAnnotations = Reflect.getMetadata("annotations", parentTarget);
|
|
19290
|
-
let parentAnnotation = parentAnnotations[0];
|
|
19291
|
-
Object.keys(parentAnnotation).forEach(key => {
|
|
19292
|
-
if (parentAnnotation[key] != null) {
|
|
19293
|
-
if (typeof annotations[key] === "function") {
|
|
19294
|
-
annotations[key] = annotations[key].call(this, parentAnnotation[key]);
|
|
19295
|
-
}
|
|
19296
|
-
else if (typeof Array.isArray(annotations[key])) {
|
|
19297
|
-
let mergedArrayItems = [];
|
|
19298
|
-
for (let item of parentAnnotation[key]) {
|
|
19299
|
-
let childItem = annotations[key].find(i => i.name == item.name);
|
|
19300
|
-
mergedArrayItems.push(childItem ? childItem : item);
|
|
19301
|
-
}
|
|
19302
|
-
annotations[key] = mergedArrayItems;
|
|
19303
|
-
}
|
|
19304
|
-
else if (annotations[key] == null) { // force override in annotation base
|
|
19305
|
-
annotations[key] = parentAnnotation[key];
|
|
19306
|
-
}
|
|
19307
|
-
}
|
|
19308
|
-
});
|
|
19309
|
-
let metadata = new NgModule(annotations);
|
|
19310
|
-
Reflect.defineMetadata("annotations", [metadata], target);
|
|
19311
|
-
};
|
|
19312
|
-
}
|
|
19313
19398
|
|
|
19314
19399
|
/**
|
|
19315
19400
|
* Generated bundle index. Do not edit.
|
|
19316
19401
|
*/
|
|
19317
19402
|
|
|
19318
|
-
export { API_BASE_URL, ApiException, BCBEBODOViewModel, BCBEBOFilterOptionViewModel, BCBEBOViewModel, BCBEigenschapBereikViewModel, BCBEigenschapLocation, BCBEigenschapOptieCategoryViewModel, BCBEigenschapOptieFilterOptionViewModel, BCBEigenschapOptieViewModel, BCBEigenschapRangeInputModel, BCBEigenschapToebehorenViewModel, BCBEigenschapViewModel, BCBImportEigenschap, BCBImportOpbouw, BCBImportOpenRequest, BCBImportOpenResponse, BCBImportOpenTempDORequest, BCBImportOpenTempRequest, BCBImportProductRequest, BCBImportProductResponse, BCBImportSetValueViewModel, BCBImportSetViewModel, BCBImportSetsViewModel, BCBLinkRequestModel, BCBLinkResponseModel, BCBOpbouwViewModel, BCBProductViewModel, BeheerLanguageViewModel, BeheerLanguagesCategoryViewModel, BeheerLanguagesEntryViewModel, BeheerLanguagesFilterViewModel, BeheerLanguagesKeyViewModel, BeheerLanguagesSubCategoryViewModel, BeheerLanguagesViewModel, CategoriesApiClient, CategoriesOverviewCategorieViewModel, CategoriesOverviewViewModel, CategoriesViewModel, CategoryViewModel, ChangeImportSetRequest, ChangeOrderInputsRequest, ClearCategoryRequest, ConnectBCBEBODORequest, ConnectBCBEigenschapRangeInputRequest, ConnectBCBEigenschapRangeInputResponse, ConnectBCBEigenschapRequest, ConnectEBODOCategoryRequest, ConnectEBODOCategoryResponse, ConnectEigenschapOptieRequest, ConnectOpbouwRequest, CreateCategoryRequest, CreateCategoryResponse, CreateExportRequest, CreateExportResponse, CreateFilterOptionRequest, CreateFilterOptionResponse, CreateFilterRequest, CreateFilterResponse, CreateLanguageRequest, CreateUserModel,
|
|
19403
|
+
export { API_BASE_URL, ApiException, BCBEBODOViewModel, BCBEBOFilterOptionViewModel, BCBEBOViewModel, BCBEigenschapBereikViewModel, BCBEigenschapLocation, BCBEigenschapOptieCategoryViewModel, BCBEigenschapOptieFilterOptionViewModel, BCBEigenschapOptieViewModel, BCBEigenschapRangeInputModel, BCBEigenschapToebehorenViewModel, BCBEigenschapViewModel, BCBImportEigenschap, BCBImportOpbouw, BCBImportOpenRequest, BCBImportOpenResponse, BCBImportOpenTempDORequest, BCBImportOpenTempRequest, BCBImportProductRequest, BCBImportProductResponse, BCBImportSetValueViewModel, BCBImportSetViewModel, BCBImportSetsViewModel, BCBLinkRequestModel, BCBLinkResponseModel, BCBOpbouwViewModel, BCBProductViewModel, BeheerLanguageViewModel, BeheerLanguagesCategoryViewModel, BeheerLanguagesEntryViewModel, BeheerLanguagesFilterViewModel, BeheerLanguagesKeyViewModel, BeheerLanguagesSubCategoryViewModel, BeheerLanguagesViewModel, CategoriesApiClient, CategoriesOverviewCategorieViewModel, CategoriesOverviewViewModel, CategoriesViewModel, CategoryViewModel, ChangeImportSetRequest, ChangeOrderInputsRequest, ClearCategoryRequest, ConnectBCBEBODORequest, ConnectBCBEigenschapRangeInputRequest, ConnectBCBEigenschapRangeInputResponse, ConnectBCBEigenschapRequest, ConnectEBODOCategoryRequest, ConnectEBODOCategoryResponse, ConnectEigenschapOptieRequest, ConnectOpbouwRequest, CreateCategoryRequest, CreateCategoryResponse, CreateExportRequest, CreateExportResponse, CreateFilterOptionRequest, CreateFilterOptionResponse, CreateFilterRequest, CreateFilterResponse, CreateLanguageRequest, CreateUserModel, DeeplinkFilterViewModel, DeeplinkProductViewModel, DeeplinkRequest, DeeplinkViewModel, DeleteUserModel, DynamicDisplayValueViewModel, DynamicFilterViewModel, DynamicFiltersViewModel, DynamicRangeInputViewModel, EBOConnectRequestModel, EBOKoppelApiClient, EBOKoppelEBOCategoryViewModel, EBOKoppelEBOFilterOptionViewModel, EBOKoppelEBOViewModel, EBOKoppelNaamViewModel, EBOKoppelTypeViewModel, EBOKoppelViewModel, EditUserModel, FabActionmenuComponent, FabCategoryNavigatorComponent, FabFilterCustomComponent, FabFiltersComponent, FabFiltersInputComponent, FabLoaderComponent, FabProductBestekComponent, FabSelectBcbproductComponent, Fabrikanten3DRequestModel, Fabrikanten3DViewModel, FabrikantenApiClient, FabrikantenBCBProductAfbeeldingViewModel, FabrikantenBCBProductToebehorenViewModel, FabrikantenBCBProductViewModel, FabrikantenBestekRequestModel, FabrikantenBestekViewModel, FabrikantenCategoryLayerViewModel, FabrikantenCategoryViewModel, FabrikantenCoreModule, FabrikantenFileRequestModel, FabrikantenFileViewModel, FabrikantenFilterCategoryViewModel, FabrikantenFilterDescriptionViewModel, FabrikantenFilterOptionViewModel, FabrikantenFilterViewModel, FabrikantenInputViewModel, FabrikantenProductViewModel, FabrikantenRangeInputViewModel, FabrikantenRequestModel, FabrikantenSVGRequestModel, FabrikantenSVGViewModel, FabrikantenService, FabrikantenSettingsViewModel, FabrikantenTextureBaseViewModel, FabrikantenTextureRequestModel, FabrikantenTextureViewModel, FabrikantenViewModel, FilterOptionFilterOptionRequiredViewModel, FilterOptionRequiredType, FilterOptionRequiredViewModel, FilterOptionViewModel, FilterRequiredViewModel, FilterType, FilterViewModel, FiltersApiClient, FiltersViewModel, GetProductRequest, GetProductsViewModel, IgnoreBCBEigenschapRequest, IgnoreOpbouwRequest, ImportApiClient, InputViewModel, InputsViewModel, KoppelProductsRequestModel, LanguageViewModel, LanguagesViewModel, LoginIPResponseModel, LoginRequestModel, LoginResponseModel, NewProductRequestModel, NewProductResponseModel, ProductViewModel, ProductViewModel2, ProductsApiClient, ProductsViewModel, ProductsViewModelRequest, ProjectSettingApiClient, ProjectSettingPipelineStepViewModel, ProjectSettingType, ProjectSettingViewModel, ProjectSettingsCategoryViewModel, ProjectSettingsViewModel, REST3DViewModel, RESTApiClient, RESTBestekViewModel, RESTFileRequestModel, RESTFileViewModel, RESTParameterViewModel, RESTRequestModel, RESTSVGRequestModel, RESTSVGViewModel, RangeInputFilterOptionRequiredViewModel, RangeInputType, RangeInputViewModel, RangeInputsViewModel, ReadExportRequest, RemoveFilterOptionRequest, RemoveProductSelectionRequest, ResetAllCategoriesRequest, ResetAllFiltersRequest, ResetCategoryLayerRequest, ResetFilterRequest, ResetImportRequestModel, SVGService, SaveFilterOptionRequest, SaveFilterRequest, SaveImportSetRequest, SaveProductViewModel, SaveRangeInputRequest, SearchProductsApiClient, SearchProductsRequestModel, SearchProductsResponseModel, SecurityApiClient, SelectBCBProductRequest, SelectCategoryRequest, SelectColourRequest, SelectFilterCustomRequest, SelectFilterOptionRequest, SelectProductRequest, SetFilterOptionRequiredRequest, SetFilterRequiredRequest, SetProjectSettingRequestModel, SetProjectSettingResponseModel, SetRangeInputRequest, SortFilterRequest, TemplateComponentService, TranslateApiClient, TranslateKeyCategoryViewModel, TranslateKeySubCategoryViewModel, TranslateKeyViewModel, TranslateService, TranslationCategory, TranslationSubCategory, UserResponseModel, UserRole, UserViewModel, UsersViewModel, WizardEBODOViewModel, WizardEBOViewModel };
|
|
19319
19404
|
//# sourceMappingURL=fabrikantencore.mjs.map
|