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
|
@@ -2151,6 +2151,55 @@ class ProductsApiClient {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
return of(null);
|
|
2153
2153
|
}
|
|
2154
|
+
ignoreBCBEigenschapOptieFilterOption(pConnectEigenschapOptieRequest) {
|
|
2155
|
+
let url_ = this.baseUrl + "/api/products/ignorebcbeigenschapoptiefilteroption";
|
|
2156
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2157
|
+
const content_ = JSON.stringify(pConnectEigenschapOptieRequest);
|
|
2158
|
+
let options_ = {
|
|
2159
|
+
body: content_,
|
|
2160
|
+
observe: "response",
|
|
2161
|
+
responseType: "blob",
|
|
2162
|
+
headers: new HttpHeaders({
|
|
2163
|
+
"Content-Type": "application/json",
|
|
2164
|
+
})
|
|
2165
|
+
};
|
|
2166
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
2167
|
+
return this.processIgnoreBCBEigenschapOptieFilterOption(response_);
|
|
2168
|
+
})).pipe(catchError((response_) => {
|
|
2169
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2170
|
+
try {
|
|
2171
|
+
return this.processIgnoreBCBEigenschapOptieFilterOption(response_);
|
|
2172
|
+
}
|
|
2173
|
+
catch (e) {
|
|
2174
|
+
return throwError(e);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
else
|
|
2178
|
+
return throwError(response_);
|
|
2179
|
+
}));
|
|
2180
|
+
}
|
|
2181
|
+
processIgnoreBCBEigenschapOptieFilterOption(response) {
|
|
2182
|
+
const status = response.status;
|
|
2183
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2184
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2185
|
+
let _headers = {};
|
|
2186
|
+
if (response.headers) {
|
|
2187
|
+
for (let key of response.headers.keys()) {
|
|
2188
|
+
_headers[key] = response.headers.get(key);
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
if (status === 200) {
|
|
2192
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
2193
|
+
return of(null);
|
|
2194
|
+
}));
|
|
2195
|
+
}
|
|
2196
|
+
else if (status !== 200 && status !== 204) {
|
|
2197
|
+
return blobToText(responseBlob).pipe(mergeMap((_responseText) => {
|
|
2198
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2199
|
+
}));
|
|
2200
|
+
}
|
|
2201
|
+
return of(null);
|
|
2202
|
+
}
|
|
2154
2203
|
connectBCBOpbouwOptieFilterOption(pConnectOpbouwOptieRequest) {
|
|
2155
2204
|
let url_ = this.baseUrl + "/api/products/connectbcbopbouwoptiefilteroption";
|
|
2156
2205
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -3945,6 +3994,7 @@ class BCBEigenschapOptieViewModel {
|
|
|
3945
3994
|
if (_data) {
|
|
3946
3995
|
this.id = _data["id"];
|
|
3947
3996
|
this.name = _data["name"];
|
|
3997
|
+
this.ignore = _data["ignore"];
|
|
3948
3998
|
this.connected = _data["connected"];
|
|
3949
3999
|
if (Array.isArray(_data["bcbEigenschapOptieFilterOptionViewModels"])) {
|
|
3950
4000
|
this.bcbEigenschapOptieFilterOptionViewModels = [];
|
|
@@ -3968,6 +4018,7 @@ class BCBEigenschapOptieViewModel {
|
|
|
3968
4018
|
data = typeof data === 'object' ? data : {};
|
|
3969
4019
|
data["id"] = this.id;
|
|
3970
4020
|
data["name"] = this.name;
|
|
4021
|
+
data["ignore"] = this.ignore;
|
|
3971
4022
|
data["connected"] = this.connected;
|
|
3972
4023
|
if (Array.isArray(this.bcbEigenschapOptieFilterOptionViewModels)) {
|
|
3973
4024
|
data["bcbEigenschapOptieFilterOptionViewModels"] = [];
|
|
@@ -11084,6 +11135,20 @@ class BeheerProductsEigenschapComponent {
|
|
|
11084
11135
|
}
|
|
11085
11136
|
});
|
|
11086
11137
|
}
|
|
11138
|
+
Ignore(id) {
|
|
11139
|
+
if (this.ProductsService.BCBProductViewModel != null) {
|
|
11140
|
+
var request = new ConnectEigenschapOptieRequest();
|
|
11141
|
+
request.bcbEigenschapOptieId = id;
|
|
11142
|
+
request.filterOptionId = -1;
|
|
11143
|
+
request.bcbProductId = this.ProductsService.BCBProductViewModel.id;
|
|
11144
|
+
request.location = this.eigenschap.location;
|
|
11145
|
+
this.ProductsApiClient.ignoreBCBEigenschapOptieFilterOption(request).subscribe(() => {
|
|
11146
|
+
this.ProductsService.LoadProduct();
|
|
11147
|
+
}, (error) => {
|
|
11148
|
+
alert(error);
|
|
11149
|
+
});
|
|
11150
|
+
}
|
|
11151
|
+
}
|
|
11087
11152
|
ConnectRange() {
|
|
11088
11153
|
var dialogRef = this.dialog.open(BeheerProductsConnectRangeinputComponent, {
|
|
11089
11154
|
data: {
|
|
@@ -11126,10 +11191,10 @@ class BeheerProductsEigenschapComponent {
|
|
|
11126
11191
|
}
|
|
11127
11192
|
}
|
|
11128
11193
|
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 });
|
|
11129
|
-
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
|
|
11194
|
+
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"] }] });
|
|
11130
11195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BeheerProductsEigenschapComponent, decorators: [{
|
|
11131
11196
|
type: Component,
|
|
11132
|
-
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
|
|
11197
|
+
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"] }]
|
|
11133
11198
|
}], ctorParameters: function () { return [{ type: ProductsService }, { type: i1$3.MatDialog }, { type: ProductsApiClient }]; }, propDecorators: { eigenschap: [{
|
|
11134
11199
|
type: Input
|
|
11135
11200
|
}] } });
|