@smartbit4all/ng-client 3.1.43 → 3.1.45
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/lib/smart-filter-editor/api/api/filter.service.mjs +49 -22
- package/esm2020/lib/view-context/message-dialog/message-dialog.component.mjs +3 -3
- package/fesm2015/smartbit4all-ng-client.mjs +48 -22
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +48 -22
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-filter-editor/api/api/filter.service.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.45.tgz +0 -0
- package/smartbit4all-ng-client-3.1.43.tgz +0 -0
|
@@ -2449,10 +2449,10 @@ class MessageDialogComponent {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
2451
|
MessageDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MessageDialogComponent, deps: [{ token: SmartViewContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2452
|
-
MessageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: MessageDialogComponent, selector: "app-message-dialog", ngImport: i0, template: "<div class=\"taskDialogContainer\" *ngIf=\"messageData\">\r\n
|
|
2452
|
+
MessageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: MessageDialogComponent, selector: "app-message-dialog", ngImport: i0, template: "<div class=\"taskDialogContainer\" *ngIf=\"messageData\">\r\n <h2 class=\"{{ messageData.type }}\">\r\n {{ messageData.header }}\r\n </h2>\r\n <p class=\"{{ messageData.type }}\">{{ messageData.text }}</p>\r\n <div class=\"buttonsContainer\">\r\n <button\r\n *ngFor=\"let option of messageData.options\"\r\n mat-button\r\n class=\"taskDialogButton\"\r\n [ngClass]=\"getType(option)\"\r\n color=\"{{ getColor(option) }}\"\r\n (click)=\"onClick(option)\"\r\n >\r\n <mat-icon *ngIf=\"option.icon\">\r\n {{ option.icon }}\r\n </mat-icon>\r\n {{ option.label }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".taskDialogContainer{width:400px;display:flex;flex-direction:column;gap:.5rem}.spacer{flex:1}.buttonsContainer{display:flex;flex-direction:row;gap:.5rem;justify-content:flex-end}.taskDialogButton{min-width:100px}h2,p{margin:0!important}\n"], components: [{ type: i3.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"] }, { type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2453
2453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MessageDialogComponent, decorators: [{
|
|
2454
2454
|
type: Component,
|
|
2455
|
-
args: [{ selector: "app-message-dialog", template: "<div class=\"taskDialogContainer\" *ngIf=\"messageData\">\r\n
|
|
2455
|
+
args: [{ selector: "app-message-dialog", template: "<div class=\"taskDialogContainer\" *ngIf=\"messageData\">\r\n <h2 class=\"{{ messageData.type }}\">\r\n {{ messageData.header }}\r\n </h2>\r\n <p class=\"{{ messageData.type }}\">{{ messageData.text }}</p>\r\n <div class=\"buttonsContainer\">\r\n <button\r\n *ngFor=\"let option of messageData.options\"\r\n mat-button\r\n class=\"taskDialogButton\"\r\n [ngClass]=\"getType(option)\"\r\n color=\"{{ getColor(option) }}\"\r\n (click)=\"onClick(option)\"\r\n >\r\n <mat-icon *ngIf=\"option.icon\">\r\n {{ option.icon }}\r\n </mat-icon>\r\n {{ option.label }}\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".taskDialogContainer{width:400px;display:flex;flex-direction:column;gap:.5rem}.spacer{flex:1}.buttonsContainer{display:flex;flex-direction:row;gap:.5rem;justify-content:flex-end}.taskDialogButton{min-width:100px}h2,p{margin:0!important}\n"] }]
|
|
2456
2456
|
}], ctorParameters: function () { return [{ type: SmartViewContextService }]; } });
|
|
2457
2457
|
|
|
2458
2458
|
class SmartNavigationService {
|
|
@@ -12301,7 +12301,7 @@ class FilterService {
|
|
|
12301
12301
|
}
|
|
12302
12302
|
// @ts-ignore
|
|
12303
12303
|
addToHttpParams(httpParams, value, key) {
|
|
12304
|
-
if (typeof value ===
|
|
12304
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
12305
12305
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
12306
12306
|
}
|
|
12307
12307
|
else {
|
|
@@ -12313,27 +12313,27 @@ class FilterService {
|
|
|
12313
12313
|
if (value == null) {
|
|
12314
12314
|
return httpParams;
|
|
12315
12315
|
}
|
|
12316
|
-
if (typeof value ===
|
|
12316
|
+
if (typeof value === 'object') {
|
|
12317
12317
|
if (Array.isArray(value)) {
|
|
12318
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
12318
|
+
value.forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
12319
12319
|
}
|
|
12320
12320
|
else if (value instanceof Date) {
|
|
12321
12321
|
if (key != null) {
|
|
12322
12322
|
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
12323
12323
|
}
|
|
12324
12324
|
else {
|
|
12325
|
-
throw Error(
|
|
12325
|
+
throw Error('key may not be null if value is Date');
|
|
12326
12326
|
}
|
|
12327
12327
|
}
|
|
12328
12328
|
else {
|
|
12329
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
12329
|
+
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
12330
12330
|
}
|
|
12331
12331
|
}
|
|
12332
12332
|
else if (key != null) {
|
|
12333
12333
|
httpParams = httpParams.append(key, value);
|
|
12334
12334
|
}
|
|
12335
12335
|
else {
|
|
12336
|
-
throw Error(
|
|
12336
|
+
throw Error('key may not be null if value is not object or array');
|
|
12337
12337
|
}
|
|
12338
12338
|
return httpParams;
|
|
12339
12339
|
}
|
|
@@ -12348,9 +12348,7 @@ class FilterService {
|
|
|
12348
12348
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12349
12349
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12350
12350
|
// to determine the Accept header
|
|
12351
|
-
const httpHeaderAccepts = [
|
|
12352
|
-
'application/json'
|
|
12353
|
-
];
|
|
12351
|
+
const httpHeaderAccepts = ['application/json'];
|
|
12354
12352
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12355
12353
|
}
|
|
12356
12354
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -12372,14 +12370,30 @@ class FilterService {
|
|
|
12372
12370
|
responseType_ = 'blob';
|
|
12373
12371
|
}
|
|
12374
12372
|
}
|
|
12375
|
-
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12373
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12374
|
+
name: 'uuid',
|
|
12375
|
+
value: uuid,
|
|
12376
|
+
in: 'path',
|
|
12377
|
+
style: 'simple',
|
|
12378
|
+
explode: false,
|
|
12379
|
+
dataType: 'string',
|
|
12380
|
+
dataFormat: 'uuid',
|
|
12381
|
+
})}/${this.configuration.encodeParam({
|
|
12382
|
+
name: 'filterIdentifier',
|
|
12383
|
+
value: filterIdentifier,
|
|
12384
|
+
in: 'path',
|
|
12385
|
+
style: 'simple',
|
|
12386
|
+
explode: false,
|
|
12387
|
+
dataType: 'string',
|
|
12388
|
+
dataFormat: undefined,
|
|
12389
|
+
})}/load`;
|
|
12376
12390
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
12377
12391
|
context: localVarHttpContext,
|
|
12378
12392
|
responseType: responseType_,
|
|
12379
12393
|
withCredentials: this.configuration.withCredentials,
|
|
12380
12394
|
headers: localVarHeaders,
|
|
12381
12395
|
observe: observe,
|
|
12382
|
-
reportProgress: reportProgress
|
|
12396
|
+
reportProgress: reportProgress,
|
|
12383
12397
|
});
|
|
12384
12398
|
}
|
|
12385
12399
|
performWidgetAction(uuid, filterIdentifier, body, observe = 'body', reportProgress = false, options) {
|
|
@@ -12396,9 +12410,7 @@ class FilterService {
|
|
|
12396
12410
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12397
12411
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12398
12412
|
// to determine the Accept header
|
|
12399
|
-
const httpHeaderAccepts = [
|
|
12400
|
-
'application/json'
|
|
12401
|
-
];
|
|
12413
|
+
const httpHeaderAccepts = ['application/json'];
|
|
12402
12414
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12403
12415
|
}
|
|
12404
12416
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -12409,9 +12421,7 @@ class FilterService {
|
|
|
12409
12421
|
localVarHttpContext = new HttpContext();
|
|
12410
12422
|
}
|
|
12411
12423
|
// to determine the Content-Type header
|
|
12412
|
-
const consumes = [
|
|
12413
|
-
'application/json'
|
|
12414
|
-
];
|
|
12424
|
+
const consumes = ['application/json'];
|
|
12415
12425
|
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
12416
12426
|
if (httpContentTypeSelected !== undefined) {
|
|
12417
12427
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
@@ -12428,7 +12438,23 @@ class FilterService {
|
|
|
12428
12438
|
responseType_ = 'blob';
|
|
12429
12439
|
}
|
|
12430
12440
|
}
|
|
12431
|
-
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12441
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12442
|
+
name: 'uuid',
|
|
12443
|
+
value: uuid,
|
|
12444
|
+
in: 'path',
|
|
12445
|
+
style: 'simple',
|
|
12446
|
+
explode: false,
|
|
12447
|
+
dataType: 'string',
|
|
12448
|
+
dataFormat: 'uuid',
|
|
12449
|
+
})}/${this.configuration.encodeParam({
|
|
12450
|
+
name: 'filterIdentifier',
|
|
12451
|
+
value: filterIdentifier,
|
|
12452
|
+
in: 'path',
|
|
12453
|
+
style: 'simple',
|
|
12454
|
+
explode: false,
|
|
12455
|
+
dataType: 'string',
|
|
12456
|
+
dataFormat: undefined,
|
|
12457
|
+
})}/performWidgetAction`;
|
|
12432
12458
|
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
12433
12459
|
context: localVarHttpContext,
|
|
12434
12460
|
body: body,
|
|
@@ -12436,7 +12462,7 @@ class FilterService {
|
|
|
12436
12462
|
withCredentials: this.configuration.withCredentials,
|
|
12437
12463
|
headers: localVarHeaders,
|
|
12438
12464
|
observe: observe,
|
|
12439
|
-
reportProgress: reportProgress
|
|
12465
|
+
reportProgress: reportProgress,
|
|
12440
12466
|
});
|
|
12441
12467
|
}
|
|
12442
12468
|
}
|
|
@@ -12445,7 +12471,7 @@ FilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", versio
|
|
|
12445
12471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, decorators: [{
|
|
12446
12472
|
type: Injectable,
|
|
12447
12473
|
args: [{
|
|
12448
|
-
providedIn: 'root'
|
|
12474
|
+
providedIn: 'root',
|
|
12449
12475
|
}]
|
|
12450
12476
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
12451
12477
|
type: Optional
|