fabrikantencore 2.0.2 → 2.0.3
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/beheer/components/beheer-products/beheer-products-eigenschap/beheer-products-eigenschap.component.mjs +17 -3
- package/esm2020/src/app/modules/fabrikantencore/swagger/SwaggerClient.mjs +52 -1
- package/fesm2015/fabrikantencore.mjs +67 -2
- package/fesm2015/fabrikantencore.mjs.map +1 -1
- package/fesm2020/fabrikantencore.mjs +67 -2
- package/fesm2020/fabrikantencore.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/fabrikantencore/beheer/components/beheer-products/beheer-products-eigenschap/beheer-products-eigenschap.component.d.ts +1 -0
- package/src/app/modules/fabrikantencore/swagger/SwaggerClient.d.ts +4 -0
|
@@ -2141,6 +2141,55 @@ class ProductsApiClient {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
return of(null);
|
|
2143
2143
|
}
|
|
2144
|
+
ignoreBCBEigenschapOptieFilterOption(pConnectEigenschapOptieRequest) {
|
|
2145
|
+
let url_ = this.baseUrl + "/api/products/ignorebcbeigenschapoptiefilteroption";
|
|
2146
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2147
|
+
const content_ = JSON.stringify(pConnectEigenschapOptieRequest);
|
|
2148
|
+
let options_ = {
|
|
2149
|
+
body: content_,
|
|
2150
|
+
observe: "response",
|
|
2151
|
+
responseType: "blob",
|
|
2152
|
+
headers: new HttpHeaders({
|
|
2153
|
+
"Content-Type": "application/json",
|
|
2154
|
+
})
|
|
2155
|
+
};
|
|
2156
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
2157
|
+
return this.processIgnoreBCBEigenschapOptieFilterOption(response_);
|
|
2158
|
+
})).pipe(catchError((response_) => {
|
|
2159
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2160
|
+
try {
|
|
2161
|
+
return this.processIgnoreBCBEigenschapOptieFilterOption(response_);
|
|
2162
|
+
}
|
|
2163
|
+
catch (e) {
|
|
2164
|
+
return throwError(e);
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
else
|
|
2168
|
+
return throwError(response_);
|
|
2169
|
+
}));
|
|
2170
|
+
}
|
|
2171
|
+
processIgnoreBCBEigenschapOptieFilterOption(response) {
|
|
2172
|
+
const status = response.status;
|
|
2173
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2174
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2175
|
+
let _headers = {};
|
|
2176
|
+
if (response.headers) {
|
|
2177
|
+
for (let key of response.headers.keys()) {
|
|
2178
|
+
_headers[key] = response.headers.get(key);
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
if (status === 200) {
|
|
2182
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
2183
|
+
return of(null);
|
|
2184
|
+
}));
|
|
2185
|
+
}
|
|
2186
|
+
else if (status !== 200 && status !== 204) {
|
|
2187
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
2188
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2189
|
+
}));
|
|
2190
|
+
}
|
|
2191
|
+
return of(null);
|
|
2192
|
+
}
|
|
2144
2193
|
connectBCBOpbouwOptieFilterOption(pConnectOpbouwOptieRequest) {
|
|
2145
2194
|
let url_ = this.baseUrl + "/api/products/connectbcbopbouwoptiefilteroption";
|
|
2146
2195
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -3925,6 +3974,7 @@ class BCBEigenschapOptieViewModel {
|
|
|
3925
3974
|
if (_data) {
|
|
3926
3975
|
this.id = _data["id"];
|
|
3927
3976
|
this.name = _data["name"];
|
|
3977
|
+
this.ignore = _data["ignore"];
|
|
3928
3978
|
this.connected = _data["connected"];
|
|
3929
3979
|
if (Array.isArray(_data["bcbEigenschapOptieFilterOptionViewModels"])) {
|
|
3930
3980
|
this.bcbEigenschapOptieFilterOptionViewModels = [];
|
|
@@ -3948,6 +3998,7 @@ class BCBEigenschapOptieViewModel {
|
|
|
3948
3998
|
data = typeof data === 'object' ? data : {};
|
|
3949
3999
|
data["id"] = this.id;
|
|
3950
4000
|
data["name"] = this.name;
|
|
4001
|
+
data["ignore"] = this.ignore;
|
|
3951
4002
|
data["connected"] = this.connected;
|
|
3952
4003
|
if (Array.isArray(this.bcbEigenschapOptieFilterOptionViewModels)) {
|
|
3953
4004
|
data["bcbEigenschapOptieFilterOptionViewModels"] = [];
|
|
@@ -11018,6 +11069,20 @@ class BeheerProductsEigenschapComponent {
|
|
|
11018
11069
|
}
|
|
11019
11070
|
});
|
|
11020
11071
|
}
|
|
11072
|
+
Ignore(id) {
|
|
11073
|
+
if (this.ProductsService.BCBProductViewModel != null) {
|
|
11074
|
+
var request = new ConnectEigenschapOptieRequest();
|
|
11075
|
+
request.bcbEigenschapOptieId = id;
|
|
11076
|
+
request.filterOptionId = -1;
|
|
11077
|
+
request.bcbProductId = this.ProductsService.BCBProductViewModel.id;
|
|
11078
|
+
request.location = this.eigenschap.location;
|
|
11079
|
+
this.ProductsApiClient.ignoreBCBEigenschapOptieFilterOption(request).subscribe(() => {
|
|
11080
|
+
this.ProductsService.LoadProduct();
|
|
11081
|
+
}, (error) => {
|
|
11082
|
+
alert(error);
|
|
11083
|
+
});
|
|
11084
|
+
}
|
|
11085
|
+
}
|
|
11021
11086
|
ConnectRange() {
|
|
11022
11087
|
var dialogRef = this.dialog.open(BeheerProductsConnectRangeinputComponent, {
|
|
11023
11088
|
data: {
|
|
@@ -11059,10 +11124,10 @@ class BeheerProductsEigenschapComponent {
|
|
|
11059
11124
|
}
|
|
11060
11125
|
}
|
|
11061
11126
|
BeheerProductsEigenschapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BeheerProductsEigenschapComponent, deps: [{ token: ProductsService }, { token: i1$3.MatDialog }, { token: ProductsApiClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
11062
|
-
BeheerProductsEigenschapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BeheerProductsEigenschapComponent, selector: "app-beheer-products-eigenschap", inputs: { eigenschap: "eigenschap" }, ngImport: i0, template: "<div class=\"container\" [ngClass]=\"{'warning': !eigenschap.connected, 'normal': eigenschap.connected}\">\r\n <div class=\"row\" (click)=\"Toggle()\">\r\n <div class=\"icon-td\">\r\n <mat-icon *ngIf=\"!eigenschap.open && Show()\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"eigenschap.open && Show()\">expand_less</mat-icon>\r\n </div>\r\n <div class=\"eigenschapcel\" colspan=\"2\">\r\n {{eigenschap?.name}}\r\n </div>\r\n </div>\r\n <div *ngIf=\"eigenschap.open\">\r\n <div *ngFor=\"let bereik of eigenschap.bereiken\" class=\"bereik\">\r\n <app-beheer-products-eigenschap-bereik [bereik]=\"bereik\"></app-beheer-products-eigenschap-bereik>\r\n </div>\r\n <div *ngIf=\"eigenschap.bereiken.length > 0 && eigenschap.rangeInputs != null\">\r\n <div *ngIf=\"eigenschap.rangeInputs.length == 0\">\r\n <button mat-raised-button (click)=\"ConnectRange()\">\r\n Range\r\n </button>\r\n </div>\r\n <div *ngFor=\"let range of eigenschap.rangeInputs\">\r\n {{ range.rangeInputModel.name }}\r\n\r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n </div>\r\n <div *ngFor=\"let optie of eigenschap.opties\" [ngClass]=\"{'warning': !optie.connected}\">\r\n <div class=\"text-div\">{{ optie.name }}</div>\r\n <div>\r\n <div *ngIf=\"!optie.connected\">\r\n <button mat-raised-button (click)=\"Connect(optie.id, eigenschap.name, optie.name)\">\r\n FilterOption\r\n </button>\r\n <!--<button mat-raised-button (click)=\"ConnectMany(optie.id)\">\r\n
|
|
11127
|
+
BeheerProductsEigenschapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BeheerProductsEigenschapComponent, selector: "app-beheer-products-eigenschap", inputs: { eigenschap: "eigenschap" }, ngImport: i0, template: "<div class=\"container\" [ngClass]=\"{'warning': !eigenschap.connected, 'normal': eigenschap.connected}\">\r\n <div class=\"row\" (click)=\"Toggle()\">\r\n <div class=\"icon-td\">\r\n <mat-icon *ngIf=\"!eigenschap.open && Show()\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"eigenschap.open && Show()\">expand_less</mat-icon>\r\n </div>\r\n <div class=\"eigenschapcel\" colspan=\"2\">\r\n {{eigenschap?.name}}\r\n </div>\r\n </div>\r\n <div *ngIf=\"eigenschap.open\">\r\n <div *ngFor=\"let bereik of eigenschap.bereiken\" class=\"bereik\">\r\n <app-beheer-products-eigenschap-bereik [bereik]=\"bereik\"></app-beheer-products-eigenschap-bereik>\r\n </div>\r\n <div *ngIf=\"eigenschap.bereiken.length > 0 && eigenschap.rangeInputs != null\">\r\n <div *ngIf=\"eigenschap.rangeInputs.length == 0\">\r\n <button mat-raised-button (click)=\"ConnectRange()\">\r\n Range\r\n </button>\r\n </div>\r\n <div *ngFor=\"let range of eigenschap.rangeInputs\">\r\n {{ range.rangeInputModel.name }}\r\n\r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n </div>\r\n <div *ngFor=\"let optie of eigenschap.opties\" [ngClass]=\"{'warning': !optie.connected}\">\r\n <div class=\"text-div\">{{ optie.name }}</div>\r\n <div>\r\n <div *ngIf=\"!optie.connected\">\r\n <button mat-raised-button (click)=\"Connect(optie.id, eigenschap.name, optie.name)\">\r\n FilterOption\r\n </button>\r\n <button mat-raised-button (click)=\"Ignore(optie.id)\">\r\n Ignore\r\n </button>\r\n <!--<button mat-raised-button (click)=\"ConnectMany(optie.id)\">\r\n FilterOptionMany\r\n </button>\r\n <button mat-raised-button (click)=\"ConnectCategory(optie.id, eigenschap?.name, optie.name)\">\r\n Category\r\n </button>-->\r\n </div>\r\n <div *ngFor=\"let connect of optie.bcbEigenschapOptieFilterOptionViewModels\">\r\n <b>{{ connect.filterOptionViewModel.filterName }}: {{ connect.filterOptionViewModel.name }}</b> \r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n <div *ngFor=\"let connect of optie.bcbEigenschapOptieCategoryViewModels\">\r\n <b>{{ connect.categoryViewModel.name }}</b> \r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n <div *ngIf=\"optie.ignore\">\r\n <b>Ignore</b> \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".row{cursor:pointer;display:flex}.displayflex{display:flex}.eigenschapcel{flex:auto}.container{margin:5px;padding:5px;border:1px solid #000}.icon-td{width:24px;height:24px}.text-div{flex:auto}.warning{background-color:#f08080}.normal{background-color:#fff}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }, { kind: "component", type: BeheerProductsEigenschapBereikComponent, selector: "app-beheer-products-eigenschap-bereik", inputs: ["bereik"] }] });
|
|
11063
11128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BeheerProductsEigenschapComponent, decorators: [{
|
|
11064
11129
|
type: Component,
|
|
11065
|
-
args: [{ selector: 'app-beheer-products-eigenschap', template: "<div class=\"container\" [ngClass]=\"{'warning': !eigenschap.connected, 'normal': eigenschap.connected}\">\r\n <div class=\"row\" (click)=\"Toggle()\">\r\n <div class=\"icon-td\">\r\n <mat-icon *ngIf=\"!eigenschap.open && Show()\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"eigenschap.open && Show()\">expand_less</mat-icon>\r\n </div>\r\n <div class=\"eigenschapcel\" colspan=\"2\">\r\n {{eigenschap?.name}}\r\n </div>\r\n </div>\r\n <div *ngIf=\"eigenschap.open\">\r\n <div *ngFor=\"let bereik of eigenschap.bereiken\" class=\"bereik\">\r\n <app-beheer-products-eigenschap-bereik [bereik]=\"bereik\"></app-beheer-products-eigenschap-bereik>\r\n </div>\r\n <div *ngIf=\"eigenschap.bereiken.length > 0 && eigenschap.rangeInputs != null\">\r\n <div *ngIf=\"eigenschap.rangeInputs.length == 0\">\r\n <button mat-raised-button (click)=\"ConnectRange()\">\r\n Range\r\n </button>\r\n </div>\r\n <div *ngFor=\"let range of eigenschap.rangeInputs\">\r\n {{ range.rangeInputModel.name }}\r\n\r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n </div>\r\n <div *ngFor=\"let optie of eigenschap.opties\" [ngClass]=\"{'warning': !optie.connected}\">\r\n <div class=\"text-div\">{{ optie.name }}</div>\r\n <div>\r\n <div *ngIf=\"!optie.connected\">\r\n <button mat-raised-button (click)=\"Connect(optie.id, eigenschap.name, optie.name)\">\r\n FilterOption\r\n </button>\r\n <!--<button mat-raised-button (click)=\"ConnectMany(optie.id)\">\r\n
|
|
11130
|
+
args: [{ selector: 'app-beheer-products-eigenschap', template: "<div class=\"container\" [ngClass]=\"{'warning': !eigenschap.connected, 'normal': eigenschap.connected}\">\r\n <div class=\"row\" (click)=\"Toggle()\">\r\n <div class=\"icon-td\">\r\n <mat-icon *ngIf=\"!eigenschap.open && Show()\">expand_more</mat-icon>\r\n <mat-icon *ngIf=\"eigenschap.open && Show()\">expand_less</mat-icon>\r\n </div>\r\n <div class=\"eigenschapcel\" colspan=\"2\">\r\n {{eigenschap?.name}}\r\n </div>\r\n </div>\r\n <div *ngIf=\"eigenschap.open\">\r\n <div *ngFor=\"let bereik of eigenschap.bereiken\" class=\"bereik\">\r\n <app-beheer-products-eigenschap-bereik [bereik]=\"bereik\"></app-beheer-products-eigenschap-bereik>\r\n </div>\r\n <div *ngIf=\"eigenschap.bereiken.length > 0 && eigenschap.rangeInputs != null\">\r\n <div *ngIf=\"eigenschap.rangeInputs.length == 0\">\r\n <button mat-raised-button (click)=\"ConnectRange()\">\r\n Range\r\n </button>\r\n </div>\r\n <div *ngFor=\"let range of eigenschap.rangeInputs\">\r\n {{ range.rangeInputModel.name }}\r\n\r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n </div>\r\n <div *ngFor=\"let optie of eigenschap.opties\" [ngClass]=\"{'warning': !optie.connected}\">\r\n <div class=\"text-div\">{{ optie.name }}</div>\r\n <div>\r\n <div *ngIf=\"!optie.connected\">\r\n <button mat-raised-button (click)=\"Connect(optie.id, eigenschap.name, optie.name)\">\r\n FilterOption\r\n </button>\r\n <button mat-raised-button (click)=\"Ignore(optie.id)\">\r\n Ignore\r\n </button>\r\n <!--<button mat-raised-button (click)=\"ConnectMany(optie.id)\">\r\n FilterOptionMany\r\n </button>\r\n <button mat-raised-button (click)=\"ConnectCategory(optie.id, eigenschap?.name, optie.name)\">\r\n Category\r\n </button>-->\r\n </div>\r\n <div *ngFor=\"let connect of optie.bcbEigenschapOptieFilterOptionViewModels\">\r\n <b>{{ connect.filterOptionViewModel.filterName }}: {{ connect.filterOptionViewModel.name }}</b> \r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n <div *ngFor=\"let connect of optie.bcbEigenschapOptieCategoryViewModels\">\r\n <b>{{ connect.categoryViewModel.name }}</b> \r\n <button mat-raised-button>\r\n Remove\r\n </button>\r\n </div>\r\n <div *ngIf=\"optie.ignore\">\r\n <b>Ignore</b> \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".row{cursor:pointer;display:flex}.displayflex{display:flex}.eigenschapcel{flex:auto}.container{margin:5px;padding:5px;border:1px solid #000}.icon-td{width:24px;height:24px}.text-div{flex:auto}.warning{background-color:#f08080}.normal{background-color:#fff}\n"] }]
|
|
11066
11131
|
}], ctorParameters: function () { return [{ type: ProductsService }, { type: i1$3.MatDialog }, { type: ProductsApiClient }]; }, propDecorators: { eigenschap: [{
|
|
11067
11132
|
type: Input
|
|
11068
11133
|
}] } });
|