@smartbit4all/ng-client 3.1.36 → 3.1.38
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/smart-filter-editor/smart-filter-editor.module.mjs +13 -3
- package/fesm2015/smartbit4all-ng-client.mjs +58 -22
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +58 -22
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-filter-editor/api/api/filter.service.d.ts +1 -1
- package/lib/smart-filter-editor/smart-filter-editor.module.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.38.tgz +0 -0
- package/smartbit4all-ng-client-3.1.36.tgz +0 -0
|
@@ -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
|
|
@@ -12813,7 +12839,11 @@ SmartFilterEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
12813
12839
|
SmartIconModule,
|
|
12814
12840
|
SmartExpandableSectionModule,
|
|
12815
12841
|
SmartViewContextModule,
|
|
12816
|
-
SmartformModule]
|
|
12842
|
+
SmartformModule], exports: [SmartFilterParamsComponent,
|
|
12843
|
+
SmartFilterParamComponent,
|
|
12844
|
+
SmartFilterEditorContentComponent,
|
|
12845
|
+
SmartFilterExpressionItemsComponent,
|
|
12846
|
+
SmartFilterExpressionItemComponent] });
|
|
12817
12847
|
SmartFilterEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, providers: [], imports: [[
|
|
12818
12848
|
CommonModule,
|
|
12819
12849
|
SmartIconModule,
|
|
@@ -12838,7 +12868,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12838
12868
|
SmartViewContextModule,
|
|
12839
12869
|
SmartformModule,
|
|
12840
12870
|
],
|
|
12841
|
-
exports: [
|
|
12871
|
+
exports: [
|
|
12872
|
+
SmartFilterParamsComponent,
|
|
12873
|
+
SmartFilterParamComponent,
|
|
12874
|
+
SmartFilterEditorContentComponent,
|
|
12875
|
+
SmartFilterExpressionItemsComponent,
|
|
12876
|
+
SmartFilterExpressionItemComponent,
|
|
12877
|
+
],
|
|
12842
12878
|
providers: [],
|
|
12843
12879
|
}]
|
|
12844
12880
|
}] });
|