@smartbit4all/ng-client 1.1.46 → 1.2.0

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.
Files changed (44) hide show
  1. package/esm2020/lib/smart-client/smart-component-api-client.mjs +1 -34
  2. package/esm2020/lib/smart-ng-client.module.mjs +6 -24
  3. package/esm2020/projects.mjs +1 -3
  4. package/fesm2015/smartbit4all-ng-client.mjs +45 -551
  5. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  6. package/fesm2020/smartbit4all-ng-client.mjs +45 -541
  7. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  8. package/lib/smart-client/smart-component-api-client.d.ts +0 -4
  9. package/lib/smart-ng-client.module.d.ts +7 -10
  10. package/package.json +1 -4
  11. package/projects.d.ts +0 -2
  12. package/smartbit4all-ng-client-1.2.0.tgz +0 -0
  13. package/esm2020/lib/smart-client/api/api/api.mjs +0 -4
  14. package/esm2020/lib/smart-client/api/api/default.service.mjs +0 -133
  15. package/esm2020/lib/smart-client/api/api.module.mjs +0 -40
  16. package/esm2020/lib/smart-client/api/configuration.mjs +0 -91
  17. package/esm2020/lib/smart-client/api/encoder.mjs +0 -19
  18. package/esm2020/lib/smart-client/api/index.mjs +0 -7
  19. package/esm2020/lib/smart-client/api/model/componentType.mjs +0 -17
  20. package/esm2020/lib/smart-client/api/model/componentWidgetType.mjs +0 -17
  21. package/esm2020/lib/smart-client/api/model/layoutDirection.mjs +0 -16
  22. package/esm2020/lib/smart-client/api/model/models.mjs +0 -6
  23. package/esm2020/lib/smart-client/api/model/smartComponentLayoutDefinition.mjs +0 -2
  24. package/esm2020/lib/smart-client/api/model/smartComponentWidgetDefinition.mjs +0 -2
  25. package/esm2020/lib/smart-client/api/param.mjs +0 -2
  26. package/esm2020/lib/smart-client/api/variables.mjs +0 -9
  27. package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.component.mjs +0 -126
  28. package/lib/smart-client/api/api/api.d.ts +0 -3
  29. package/lib/smart-client/api/api/default.service.d.ts +0 -33
  30. package/lib/smart-client/api/api.module.d.ts +0 -11
  31. package/lib/smart-client/api/configuration.d.ts +0 -104
  32. package/lib/smart-client/api/encoder.d.ts +0 -11
  33. package/lib/smart-client/api/index.d.ts +0 -6
  34. package/lib/smart-client/api/model/componentType.d.ts +0 -17
  35. package/lib/smart-client/api/model/componentWidgetType.d.ts +0 -17
  36. package/lib/smart-client/api/model/layoutDirection.d.ts +0 -16
  37. package/lib/smart-client/api/model/models.d.ts +0 -5
  38. package/lib/smart-client/api/model/smartComponentLayoutDefinition.d.ts +0 -29
  39. package/lib/smart-client/api/model/smartComponentWidgetDefinition.d.ts +0 -20
  40. package/lib/smart-client/api/param.d.ts +0 -37
  41. package/lib/smart-client/api/variables.d.ts +0 -8
  42. package/lib/smart-client/smart-component-layout/smart-component-layout.component.d.ts +0 -32
  43. package/smartbit4all-ng-client-1.1.46.tgz +0 -0
  44. package/src/lib/smart-client/api/README.md +0 -226
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, Input, ViewChild } from '@angular/core';
2
+ import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, ViewChild, Input } from '@angular/core';
3
3
  import { Subject, takeUntil, map, catchError, throwError, from } from 'rxjs';
4
4
  import { SmartSubject } from '@smartbit4all/subject';
5
5
  import * as i1 from '@angular/common/http';
@@ -15,14 +15,9 @@ import * as i4$1 from '@smartbit4all/dialog';
15
15
  import { SmartdialogService, SmartdialogModule } from '@smartbit4all/dialog';
16
16
  import { MatCommonModule } from '@angular/material/core';
17
17
  import { BrowserModule } from '@angular/platform-browser';
18
- import * as i2$2 from '@smartbit4all/expandable-section';
19
18
  import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
20
- import * as i1$2 from '@smartbit4all/form';
21
- import { SmartFormWidgetDirection, SmartFormWidgetType, SmartValidatorName, SmartformModule } from '@smartbit4all/form';
22
- import * as i3$2 from '@smartbit4all/grid';
23
- import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
24
- import * as i4$4 from '@smartbit4all/tree';
25
- import { SmarttreeModule, SmarttreeGenericService } from '@smartbit4all/tree';
19
+ import * as i5 from '@smartbit4all/form';
20
+ import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
26
21
  import * as i4$3 from '@angular/material/expansion';
27
22
  import { MatExpansionModule } from '@angular/material/expansion';
28
23
  import * as i4$2 from '@smartbit4all/icon';
@@ -30,16 +25,18 @@ import { SmartIconModule } from '@smartbit4all/icon';
30
25
  import * as i1$1 from '@angular/material/dialog';
31
26
  import * as i2$1 from '@angular/router';
32
27
  import { catchError as catchError$1, switchMap } from 'rxjs/operators';
33
- import * as i4$5 from '@angular/material/snack-bar';
28
+ import * as i4$4 from '@angular/material/snack-bar';
34
29
  import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
35
30
  import { Validators } from '@angular/forms';
36
31
  import { __decorate, __param } from 'tslib';
32
+ import { SmartGridComponent } from '@smartbit4all/grid';
33
+ import { SmarttreeGenericService } from '@smartbit4all/tree';
37
34
 
38
35
  /**
39
36
  * Custom HttpParameterCodec
40
37
  * Workaround for https://github.com/angular/angular/issues/18261
41
38
  */
42
- class CustomHttpParameterCodec$2 {
39
+ class CustomHttpParameterCodec$1 {
43
40
  encodeKey(k) {
44
41
  return encodeURIComponent(k);
45
42
  }
@@ -54,15 +51,15 @@ class CustomHttpParameterCodec$2 {
54
51
  }
55
52
  }
56
53
 
57
- const BASE_PATH$2 = new InjectionToken('basePath');
58
- const COLLECTION_FORMATS$2 = {
54
+ const BASE_PATH$1 = new InjectionToken('basePath');
55
+ const COLLECTION_FORMATS$1 = {
59
56
  'csv': ',',
60
57
  'tsv': ' ',
61
58
  'ssv': ' ',
62
59
  'pipes': '|'
63
60
  };
64
61
 
65
- class Configuration$2 {
62
+ class Configuration$1 {
66
63
  constructor(configurationParameters = {}) {
67
64
  this.apiKeys = configurationParameters.apiKeys;
68
65
  this.username = configurationParameters.username;
@@ -169,7 +166,7 @@ class SessionService {
169
166
  this.httpClient = httpClient;
170
167
  this.basePath = 'http://localhost';
171
168
  this.defaultHeaders = new HttpHeaders();
172
- this.configuration = new Configuration$2();
169
+ this.configuration = new Configuration$1();
173
170
  if (configuration) {
174
171
  this.configuration = configuration;
175
172
  }
@@ -182,7 +179,7 @@ class SessionService {
182
179
  }
183
180
  this.configuration.basePath = basePath;
184
181
  }
185
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
182
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
186
183
  }
187
184
  // @ts-ignore
188
185
  addToHttpParams(httpParams, value, key) {
@@ -433,7 +430,7 @@ class SessionService {
433
430
  });
434
431
  }
435
432
  }
436
- SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$2, optional: true }, { token: Configuration$2, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
433
+ SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$1, optional: true }, { token: Configuration$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
437
434
  SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, providedIn: 'root' });
438
435
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, decorators: [{
439
436
  type: Injectable,
@@ -444,8 +441,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
444
441
  type: Optional
445
442
  }, {
446
443
  type: Inject,
447
- args: [BASE_PATH$2]
448
- }] }, { type: Configuration$2, decorators: [{
444
+ args: [BASE_PATH$1]
445
+ }] }, { type: Configuration$1, decorators: [{
449
446
  type: Optional
450
447
  }] }]; } });
451
448
 
@@ -954,7 +951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
954
951
  * Custom HttpParameterCodec
955
952
  * Workaround for https://github.com/angular/angular/issues/18261
956
953
  */
957
- class CustomHttpParameterCodec$1 {
954
+ class CustomHttpParameterCodec {
958
955
  encodeKey(k) {
959
956
  return encodeURIComponent(k);
960
957
  }
@@ -969,15 +966,15 @@ class CustomHttpParameterCodec$1 {
969
966
  }
970
967
  }
971
968
 
972
- const BASE_PATH$1 = new InjectionToken('basePath');
973
- const COLLECTION_FORMATS$1 = {
969
+ const BASE_PATH = new InjectionToken('basePath');
970
+ const COLLECTION_FORMATS = {
974
971
  'csv': ',',
975
972
  'tsv': ' ',
976
973
  'ssv': ' ',
977
974
  'pipes': '|'
978
975
  };
979
976
 
980
- class Configuration$1 {
977
+ class Configuration {
981
978
  constructor(configurationParameters = {}) {
982
979
  this.apiKeys = configurationParameters.apiKeys;
983
980
  this.username = configurationParameters.username;
@@ -1084,7 +1081,7 @@ class ViewService {
1084
1081
  this.httpClient = httpClient;
1085
1082
  this.basePath = 'http://localhost';
1086
1083
  this.defaultHeaders = new HttpHeaders();
1087
- this.configuration = new Configuration$1();
1084
+ this.configuration = new Configuration();
1088
1085
  if (configuration) {
1089
1086
  this.configuration = configuration;
1090
1087
  }
@@ -1097,7 +1094,7 @@ class ViewService {
1097
1094
  }
1098
1095
  this.configuration.basePath = basePath;
1099
1096
  }
1100
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
1097
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1101
1098
  }
1102
1099
  /**
1103
1100
  * @param consumes string[] mime-types
@@ -1874,7 +1871,7 @@ class ViewService {
1874
1871
  });
1875
1872
  }
1876
1873
  else {
1877
- localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$1['csv'])) || localVarFormParams;
1874
+ localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS['csv'])) || localVarFormParams;
1878
1875
  }
1879
1876
  }
1880
1877
  let responseType_ = 'json';
@@ -1901,7 +1898,7 @@ class ViewService {
1901
1898
  });
1902
1899
  }
1903
1900
  }
1904
- ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$1, optional: true }, { token: Configuration$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1901
+ ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1905
1902
  ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, providedIn: 'root' });
1906
1903
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, decorators: [{
1907
1904
  type: Injectable,
@@ -1912,12 +1909,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1912
1909
  type: Optional
1913
1910
  }, {
1914
1911
  type: Inject,
1915
- args: [BASE_PATH$1]
1916
- }] }, { type: Configuration$1, decorators: [{
1912
+ args: [BASE_PATH]
1913
+ }] }, { type: Configuration, decorators: [{
1917
1914
  type: Optional
1918
1915
  }] }]; } });
1919
1916
 
1920
- const APIS$1 = [ViewService];
1917
+ const APIS = [ViewService];
1921
1918
 
1922
1919
  /**
1923
1920
  * View API
@@ -2203,7 +2200,7 @@ const ViewType = {
2203
2200
  Embedded: 'embedded'
2204
2201
  };
2205
2202
 
2206
- class ApiModule$1 {
2203
+ class ApiModule {
2207
2204
  constructor(parentModule, http) {
2208
2205
  if (parentModule) {
2209
2206
  throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
@@ -2215,15 +2212,15 @@ class ApiModule$1 {
2215
2212
  }
2216
2213
  static forRoot(configurationFactory) {
2217
2214
  return {
2218
- ngModule: ApiModule$1,
2219
- providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
2215
+ ngModule: ApiModule,
2216
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
2220
2217
  };
2221
2218
  }
2222
2219
  }
2223
- ApiModule$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, deps: [{ token: ApiModule$1, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
2224
- ApiModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1 });
2225
- ApiModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, providers: [], imports: [[]] });
2226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, decorators: [{
2220
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
2221
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
2222
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
2223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
2227
2224
  type: NgModule,
2228
2225
  args: [{
2229
2226
  imports: [],
@@ -2231,7 +2228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2231
2228
  exports: [],
2232
2229
  providers: []
2233
2230
  }]
2234
- }], ctorParameters: function () { return [{ type: ApiModule$1, decorators: [{
2231
+ }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
2235
2232
  type: Optional
2236
2233
  }, {
2237
2234
  type: SkipSelf
@@ -3442,451 +3439,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
3442
3439
  }]
3443
3440
  }] });
3444
3441
 
3445
- /**
3446
- * Custom HttpParameterCodec
3447
- * Workaround for https://github.com/angular/angular/issues/18261
3448
- */
3449
- class CustomHttpParameterCodec {
3450
- encodeKey(k) {
3451
- return encodeURIComponent(k);
3452
- }
3453
- encodeValue(v) {
3454
- return encodeURIComponent(v);
3455
- }
3456
- decodeKey(k) {
3457
- return decodeURIComponent(k);
3458
- }
3459
- decodeValue(v) {
3460
- return decodeURIComponent(v);
3461
- }
3462
- }
3463
-
3464
- const BASE_PATH = new InjectionToken('basePath');
3465
- const COLLECTION_FORMATS = {
3466
- 'csv': ',',
3467
- 'tsv': ' ',
3468
- 'ssv': ' ',
3469
- 'pipes': '|'
3470
- };
3471
-
3472
- class Configuration {
3473
- constructor(configurationParameters = {}) {
3474
- this.apiKeys = configurationParameters.apiKeys;
3475
- this.username = configurationParameters.username;
3476
- this.password = configurationParameters.password;
3477
- this.accessToken = configurationParameters.accessToken;
3478
- this.basePath = configurationParameters.basePath;
3479
- this.withCredentials = configurationParameters.withCredentials;
3480
- this.encoder = configurationParameters.encoder;
3481
- if (configurationParameters.encodeParam) {
3482
- this.encodeParam = configurationParameters.encodeParam;
3483
- }
3484
- else {
3485
- this.encodeParam = param => this.defaultEncodeParam(param);
3486
- }
3487
- if (configurationParameters.credentials) {
3488
- this.credentials = configurationParameters.credentials;
3489
- }
3490
- else {
3491
- this.credentials = {};
3492
- }
3493
- }
3494
- /**
3495
- * Select the correct content-type to use for a request.
3496
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
3497
- * If no content type is found return the first found type if the contentTypes is not empty
3498
- * @param contentTypes - the array of content types that are available for selection
3499
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
3500
- */
3501
- selectHeaderContentType(contentTypes) {
3502
- if (contentTypes.length === 0) {
3503
- return undefined;
3504
- }
3505
- const type = contentTypes.find((x) => this.isJsonMime(x));
3506
- if (type === undefined) {
3507
- return contentTypes[0];
3508
- }
3509
- return type;
3510
- }
3511
- /**
3512
- * Select the correct accept content-type to use for a request.
3513
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
3514
- * If no content type is found return the first found type if the contentTypes is not empty
3515
- * @param accepts - the array of content types that are available for selection.
3516
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
3517
- */
3518
- selectHeaderAccept(accepts) {
3519
- if (accepts.length === 0) {
3520
- return undefined;
3521
- }
3522
- const type = accepts.find((x) => this.isJsonMime(x));
3523
- if (type === undefined) {
3524
- return accepts[0];
3525
- }
3526
- return type;
3527
- }
3528
- /**
3529
- * Check if the given MIME is a JSON MIME.
3530
- * JSON MIME examples:
3531
- * application/json
3532
- * application/json; charset=UTF8
3533
- * APPLICATION/JSON
3534
- * application/vnd.company+json
3535
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
3536
- * @return True if the given MIME is JSON, false otherwise.
3537
- */
3538
- isJsonMime(mime) {
3539
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
3540
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
3541
- }
3542
- lookupCredential(key) {
3543
- const value = this.credentials[key];
3544
- return typeof value === 'function'
3545
- ? value()
3546
- : value;
3547
- }
3548
- defaultEncodeParam(param) {
3549
- // This implementation exists as fallback for missing configuration
3550
- // and for backwards compatibility to older typescript-angular generator versions.
3551
- // It only works for the 'simple' parameter style.
3552
- // Date-handling only works for the 'date-time' format.
3553
- // All other styles and Date-formats are probably handled incorrectly.
3554
- //
3555
- // But: if that's all you need (i.e.: the most common use-case): no need for customization!
3556
- const value = param.dataFormat === 'date-time' && param.value instanceof Date
3557
- ? param.value.toISOString()
3558
- : param.value;
3559
- return encodeURIComponent(String(value));
3560
- }
3561
- }
3562
-
3563
- /**
3564
- * Form layout definition
3565
- * Contains form layout definition objects.
3566
- *
3567
- * The version of the OpenAPI document: 1.0.0
3568
- * Contact: info@it4all.hu
3569
- *
3570
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3571
- * https://openapi-generator.tech
3572
- * Do not edit the class manually.
3573
- */
3574
- class DefaultService {
3575
- constructor(httpClient, basePath, configuration) {
3576
- this.httpClient = httpClient;
3577
- this.basePath = 'http://localhost';
3578
- this.defaultHeaders = new HttpHeaders();
3579
- this.configuration = new Configuration();
3580
- if (configuration) {
3581
- this.configuration = configuration;
3582
- }
3583
- if (typeof this.configuration.basePath !== 'string') {
3584
- if (Array.isArray(basePath) && basePath.length > 0) {
3585
- basePath = basePath[0];
3586
- }
3587
- if (typeof basePath !== 'string') {
3588
- basePath = this.basePath;
3589
- }
3590
- this.configuration.basePath = basePath;
3591
- }
3592
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
3593
- }
3594
- // @ts-ignore
3595
- addToHttpParams(httpParams, value, key) {
3596
- if (typeof value === "object" && value instanceof Date === false) {
3597
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
3598
- }
3599
- else {
3600
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
3601
- }
3602
- return httpParams;
3603
- }
3604
- addToHttpParamsRecursive(httpParams, value, key) {
3605
- if (value == null) {
3606
- return httpParams;
3607
- }
3608
- if (typeof value === "object") {
3609
- if (Array.isArray(value)) {
3610
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
3611
- }
3612
- else if (value instanceof Date) {
3613
- if (key != null) {
3614
- httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
3615
- }
3616
- else {
3617
- throw Error("key may not be null if value is Date");
3618
- }
3619
- }
3620
- else {
3621
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
3622
- }
3623
- }
3624
- else if (key != null) {
3625
- httpParams = httpParams.append(key, value);
3626
- }
3627
- else {
3628
- throw Error("key may not be null if value is not object or array");
3629
- }
3630
- return httpParams;
3631
- }
3632
- nopePost(observe = 'body', reportProgress = false, options) {
3633
- let localVarHeaders = this.defaultHeaders;
3634
- let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
3635
- if (localVarHttpHeaderAcceptSelected === undefined) {
3636
- // to determine the Accept header
3637
- const httpHeaderAccepts = [];
3638
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
3639
- }
3640
- if (localVarHttpHeaderAcceptSelected !== undefined) {
3641
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3642
- }
3643
- let localVarHttpContext = options && options.context;
3644
- if (localVarHttpContext === undefined) {
3645
- localVarHttpContext = new HttpContext();
3646
- }
3647
- let responseType_ = 'json';
3648
- if (localVarHttpHeaderAcceptSelected) {
3649
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3650
- responseType_ = 'text';
3651
- }
3652
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3653
- responseType_ = 'json';
3654
- }
3655
- else {
3656
- responseType_ = 'blob';
3657
- }
3658
- }
3659
- let localVarPath = `/nope`;
3660
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
3661
- context: localVarHttpContext,
3662
- responseType: responseType_,
3663
- withCredentials: this.configuration.withCredentials,
3664
- headers: localVarHeaders,
3665
- observe: observe,
3666
- reportProgress: reportProgress
3667
- });
3668
- }
3669
- }
3670
- DefaultService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3671
- DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
3672
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
3673
- type: Injectable,
3674
- args: [{
3675
- providedIn: 'root'
3676
- }]
3677
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3678
- type: Optional
3679
- }, {
3680
- type: Inject,
3681
- args: [BASE_PATH]
3682
- }] }, { type: Configuration, decorators: [{
3683
- type: Optional
3684
- }] }]; } });
3685
-
3686
- const APIS = [DefaultService];
3687
-
3688
- /**
3689
- * Form layout definition
3690
- * Contains form layout definition objects.
3691
- *
3692
- * The version of the OpenAPI document: 1.0.0
3693
- * Contact: info@it4all.hu
3694
- *
3695
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3696
- * https://openapi-generator.tech
3697
- * Do not edit the class manually.
3698
- */
3699
- const ComponentType = {
3700
- Container: 'container',
3701
- Form: 'form',
3702
- Widget: 'widget'
3703
- };
3704
-
3705
- /**
3706
- * Form layout definition
3707
- * Contains form layout definition objects.
3708
- *
3709
- * The version of the OpenAPI document: 1.0.0
3710
- * Contact: info@it4all.hu
3711
- *
3712
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3713
- * https://openapi-generator.tech
3714
- * Do not edit the class manually.
3715
- */
3716
- const ComponentWidgetType = {
3717
- Grid: 'grid',
3718
- Filter: 'filter',
3719
- Tree: 'tree'
3720
- };
3721
-
3722
- /**
3723
- * Form layout definition
3724
- * Contains form layout definition objects.
3725
- *
3726
- * The version of the OpenAPI document: 1.0.0
3727
- * Contact: info@it4all.hu
3728
- *
3729
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3730
- * https://openapi-generator.tech
3731
- * Do not edit the class manually.
3732
- */
3733
- const LayoutDirection = {
3734
- Horizontal: 'horizontal',
3735
- Vertical: 'vertical'
3736
- };
3737
-
3738
- class ApiModule {
3739
- constructor(parentModule, http) {
3740
- if (parentModule) {
3741
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
3742
- }
3743
- if (!http) {
3744
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
3745
- 'See also https://github.com/angular/angular/issues/20575');
3746
- }
3747
- }
3748
- static forRoot(configurationFactory) {
3749
- return {
3750
- ngModule: ApiModule,
3751
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
3752
- };
3753
- }
3754
- }
3755
- ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
3756
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
3757
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
3758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
3759
- type: NgModule,
3760
- args: [{
3761
- imports: [],
3762
- declarations: [],
3763
- exports: [],
3764
- providers: []
3765
- }]
3766
- }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
3767
- type: Optional
3768
- }, {
3769
- type: SkipSelf
3770
- }] }, { type: i1.HttpClient, decorators: [{
3771
- type: Optional
3772
- }] }]; } });
3773
-
3774
- // import { SmartFilter, SmartFilterComponent } from '@smartbit4all/filter';
3775
- class SmartComponentLayoutComponent {
3776
- constructor(layoutService) {
3777
- this.layoutService = layoutService;
3778
- }
3779
- ngOnInit() {
3780
- if (this.smartComponentLayout) {
3781
- this.setUp();
3782
- }
3783
- }
3784
- ngOnChanges(changes) {
3785
- this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
3786
- if (this.smartComponentLayout) {
3787
- this.setUp();
3788
- }
3789
- }
3790
- setUp() {
3791
- this.parent = this.smartComponentLayout?.parentComponent;
3792
- this.uuid = this.parent.uuid;
3793
- this.treeService = this.parent.smartTreeService;
3794
- if (this.smartComponentLayout?.expandable) {
3795
- this.constructExpandableSection();
3796
- }
3797
- else if (this.smartComponentLayout?.type === ComponentType.Form) {
3798
- this.constructForm();
3799
- }
3800
- else if (this.smartComponentLayout?.type === ComponentType.Widget) {
3801
- if (this.smartComponentLayout.widget?.type === ComponentWidgetType.Grid) {
3802
- this.constructGrid();
3803
- }
3804
- else if (this.smartComponentLayout.widget?.type === ComponentWidgetType.Filter) {
3805
- this.constructFilter();
3806
- }
3807
- else if (this.smartComponentLayout.widget?.type === ComponentWidgetType.Tree) {
3808
- this.constructTree();
3809
- }
3810
- }
3811
- }
3812
- type() {
3813
- return ComponentType;
3814
- }
3815
- constructExpandableSection() {
3816
- let data = { ...this.smartComponentLayout };
3817
- data.expandable = false;
3818
- this.expandableSection = {
3819
- title: this.smartComponentLayout?.expandableSectionLabel ?? '',
3820
- data,
3821
- inputName: 'smartComponentLayout',
3822
- customComponent: SmartComponentLayoutComponent,
3823
- };
3824
- }
3825
- constructForm() {
3826
- const widgets = this.layoutService.render({
3827
- layoutDefinitions: this.smartComponentLayout?.form,
3828
- });
3829
- this.smartForm = {
3830
- direction: SmartFormWidgetDirection.COL,
3831
- model: this.parent?.model,
3832
- constraints: this.parent?.model?.constraints,
3833
- widgets,
3834
- };
3835
- this.parent?.addForm(
3836
- // unique identifier for the form
3837
- `form_${this.makeid(5)}`, this.smartForm, this.formChild);
3838
- }
3839
- makeid(length) {
3840
- let result = '';
3841
- const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
3842
- const charactersLength = characters.length;
3843
- let counter = 0;
3844
- while (counter < length) {
3845
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
3846
- counter += 1;
3847
- }
3848
- return result;
3849
- }
3850
- constructGrid() {
3851
- this.smartGrid = {
3852
- gridIdentifier: this.smartComponentLayout?.widget?.gridIdentifier,
3853
- gridModel: {
3854
- page: {},
3855
- },
3856
- layoutDef: SmartLayoutDef.TABLE,
3857
- };
3858
- this.smartGrid = this.parent?.addGrid(this.smartGrid, {
3859
- rowUiActionType: GridUiActionType.POPUP_MENU,
3860
- }, false, this.gridChild);
3861
- }
3862
- constructFilter() {
3863
- // this.smartFilter = (this.smartComponentLayout!.parentComponent as any).addFilter(
3864
- // `filter_${this.makeid(5)}`,
3865
- // this.smartComponentLayout?.widget?.filterExpressionFieldList,
3866
- // this.smartComponentLayout?.widget?.filterType,
3867
- // this.filterChild
3868
- // );
3869
- }
3870
- constructTree() {
3871
- this.parent.setUpDefaultTree(this.smartComponentLayout?.widget?.treeIdentifier);
3872
- this.treeService?.initialize();
3873
- }
3874
- }
3875
- SmartComponentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, deps: [{ token: i1$2.SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
3876
- SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "formChild", first: true, predicate: ["form"], descendants: true }, { propertyName: "gridChild", first: true, predicate: ["grid"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n [smartComponentLayout]=\"layout\"\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"], components: [{ type: i2$2.ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout"] }, { type: i1$2.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: i3$2.SmartGridComponent, selector: "smart-grid", inputs: ["smartGrid", "uuid", "dev"] }, { type: i4$4.SmartTreeComponent, selector: "smart-tree", inputs: ["treeStyle", "treeService"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
3877
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
3878
- type: Component,
3879
- args: [{ selector: 'smart-component-layout', template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n [smartComponentLayout]=\"layout\"\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
3880
- }], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
3881
- type: Input
3882
- }], formChild: [{
3883
- type: ViewChild,
3884
- args: ['form']
3885
- }], gridChild: [{
3886
- type: ViewChild,
3887
- args: ['grid']
3888
- }] } });
3889
-
3890
3442
  class SmartViewContextErrorDialogService extends SmartdialogService {
3891
3443
  constructor(dialog, router, viewContext) {
3892
3444
  super(dialog, router);
@@ -4359,7 +3911,7 @@ class UiActionInputDialogComponent {
4359
3911
  }
4360
3912
  }
4361
3913
  UiActionInputDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionInputDialogComponent, deps: [{ token: UiActionInputDialogService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
4362
- UiActionInputDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionInputDialogComponent, selector: "smart-ui-action-input-dialog", viewQueries: [{ propertyName: "folderFormChild", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.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: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i1$2.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }] });
3914
+ UiActionInputDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionInputDialogComponent, selector: "smart-ui-action-input-dialog", viewQueries: [{ propertyName: "folderFormChild", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.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: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i5.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }] });
4363
3915
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionInputDialogComponent, decorators: [{
4364
3916
  type: Component,
4365
3917
  args: [{ selector: 'smart-ui-action-input-dialog', template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"] }]
@@ -4467,7 +4019,7 @@ class UiActionFileUploadDialogComponent {
4467
4019
  }
4468
4020
  }
4469
4021
  UiActionFileUploadDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionFileUploadDialogComponent, deps: [{ token: UiActionFileUploadDialogService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
4470
- UiActionFileUploadDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionFileUploadDialogComponent, selector: "lib-ui-action-file-upload-dialog", ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.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: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i1$2.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }] });
4022
+ UiActionFileUploadDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionFileUploadDialogComponent, selector: "lib-ui-action-file-upload-dialog", ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.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: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i5.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }] });
4471
4023
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionFileUploadDialogComponent, decorators: [{
4472
4024
  type: Component,
4473
4025
  args: [{ selector: 'lib-ui-action-file-upload-dialog', template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"] }]
@@ -4681,14 +4233,14 @@ class UiActionService {
4681
4233
  });
4682
4234
  }
4683
4235
  }
4684
- UiActionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, deps: [{ token: UiActionConfirmDialogService }, { token: UiActionInputDialogService }, { token: UiActionFileUploadDialogService }, { token: i4$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
4236
+ UiActionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, deps: [{ token: UiActionConfirmDialogService }, { token: UiActionInputDialogService }, { token: UiActionFileUploadDialogService }, { token: i4$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
4685
4237
  UiActionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, providedIn: 'root' });
4686
4238
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, decorators: [{
4687
4239
  type: Injectable,
4688
4240
  args: [{
4689
4241
  providedIn: 'root',
4690
4242
  }]
4691
- }], ctorParameters: function () { return [{ type: UiActionConfirmDialogService }, { type: UiActionInputDialogService }, { type: UiActionFileUploadDialogService }, { type: i4$5.MatSnackBar }]; } });
4243
+ }], ctorParameters: function () { return [{ type: UiActionConfirmDialogService }, { type: UiActionInputDialogService }, { type: UiActionFileUploadDialogService }, { type: i4$4.MatSnackBar }]; } });
4692
4244
 
4693
4245
  class UiActionToolbarComponent {
4694
4246
  constructor(service, inject) {
@@ -4906,7 +4458,7 @@ class SmartFileUploaderComponent {
4906
4458
  }
4907
4459
  }
4908
4460
  SmartFileUploaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartFileUploaderComponent, deps: [{ token: UiActionService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
4909
- SmartFileUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartFileUploaderComponent, selector: "smart-file-uploader4sc", inputs: { config: "config" }, usesOnChanges: true, ngImport: i0, template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""], components: [{ type: i1$2.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4461
+ SmartFileUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartFileUploaderComponent, selector: "smart-file-uploader4sc", inputs: { config: "config" }, usesOnChanges: true, ngImport: i0, template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""], components: [{ type: i5.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4910
4462
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartFileUploaderComponent, decorators: [{
4911
4463
  type: Component,
4912
4464
  args: [{ selector: 'smart-file-uploader4sc', template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""] }]
@@ -4917,48 +4469,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4917
4469
  class SmartNgClientModule {
4918
4470
  }
4919
4471
  SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4920
- SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent, SmartComponentLayoutComponent], imports: [BrowserModule,
4472
+ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
4921
4473
  MatCommonModule,
4922
4474
  SmartSessionModule,
4923
4475
  SmartViewContextModule,
4924
4476
  SmartformModule,
4925
- SmartGridModule,
4926
- SmartExpandableSectionModule,
4927
- SmarttreeModule], exports: [SmartSessionModule,
4928
- SmartViewContextModule,
4929
- SmartFileUploaderComponent,
4930
- SmartComponentLayoutComponent] });
4477
+ SmartExpandableSectionModule], exports: [SmartSessionModule, SmartViewContextModule, SmartFileUploaderComponent] });
4931
4478
  SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, providers: [SmartNgClientService], imports: [[
4932
4479
  BrowserModule,
4933
4480
  MatCommonModule,
4934
4481
  SmartSessionModule,
4935
4482
  SmartViewContextModule,
4936
4483
  SmartformModule,
4937
- SmartGridModule,
4938
4484
  SmartExpandableSectionModule,
4939
- SmarttreeModule,
4940
- ], SmartSessionModule,
4941
- SmartViewContextModule] });
4485
+ ], SmartSessionModule, SmartViewContextModule] });
4942
4486
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
4943
4487
  type: NgModule,
4944
4488
  args: [{
4945
- declarations: [SmartFileUploaderComponent, SmartComponentLayoutComponent],
4489
+ declarations: [SmartFileUploaderComponent],
4946
4490
  imports: [
4947
4491
  BrowserModule,
4948
4492
  MatCommonModule,
4949
4493
  SmartSessionModule,
4950
4494
  SmartViewContextModule,
4951
4495
  SmartformModule,
4952
- SmartGridModule,
4953
4496
  SmartExpandableSectionModule,
4954
- SmarttreeModule,
4955
- ],
4956
- exports: [
4957
- SmartSessionModule,
4958
- SmartViewContextModule,
4959
- SmartFileUploaderComponent,
4960
- SmartComponentLayoutComponent,
4961
4497
  ],
4498
+ exports: [SmartSessionModule, SmartViewContextModule, SmartFileUploaderComponent],
4962
4499
  providers: [SmartNgClientService],
4963
4500
  }]
4964
4501
  }] });
@@ -4980,12 +4517,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4980
4517
  type: Injectable
4981
4518
  }] });
4982
4519
 
4983
- // import {
4984
- // FilterExpressionFieldList,
4985
- // SmartFilter,
4986
- // SmartFilterComponent,
4987
- // SmartFilterType,
4988
- // } from '@smartbit4all/filter';
4989
4520
  let SmartComponentApiClient = class SmartComponentApiClient {
4990
4521
  constructor(inject, auth, pageName) {
4991
4522
  this.inject = inject;
@@ -5154,14 +4685,6 @@ let SmartComponentApiClient = class SmartComponentApiClient {
5154
4685
  throw new Error('handleSpecificDemandsAsynchronously method not implemented.');
5155
4686
  }
5156
4687
  //#endregion
5157
- addSmartLayout(layout) {
5158
- this.smartComponentLayoutDefinition = this.setParentComponent(layout);
5159
- }
5160
- setParentComponent(layout) {
5161
- layout.parentComponent = this;
5162
- layout.components = layout.components?.map((l) => this.setParentComponent(l));
5163
- return layout;
5164
- }
5165
4688
  /**
5166
4689
  * Submits all the registered forms in the SmartComponent
5167
4690
  */
@@ -5213,25 +4736,6 @@ let SmartComponentApiClient = class SmartComponentApiClient {
5213
4736
  maxSizeMb,
5214
4737
  };
5215
4738
  }
5216
- // public addFilter(
5217
- // smartFilterId: string,
5218
- // filter: FilterExpressionFieldList,
5219
- // type: SmartFilterType,
5220
- // smartFilterComponent: SmartFilterComponent,
5221
- // isDefault?: boolean
5222
- // ): SmartFilter {
5223
- // const smartFilter: SmartFilter = {
5224
- // data: filter.filters,
5225
- // type,
5226
- // translateService: this.translate,
5227
- // };
5228
- // this.widgets.addWidget(smartFilterId, smartFilterComponent);
5229
- // if (isDefault) {
5230
- // this.smartFilter = smartFilter;
5231
- // return this.smartFilter!;
5232
- // }
5233
- // return smartFilter;
5234
- // }
5235
4739
  // #region handle changes
5236
4740
  handleValueChanges(valueChange) {
5237
4741
  let dataChange;
@@ -5435,5 +4939,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5435
4939
  * Generated bundle index. Do not edit.
5436
4940
  */
5437
4941
 
5438
- export { APIS$1 as APIS, ApiModule$1 as ApiModule, ApiQueueService, BASE_PATH$1 as BASE_PATH, COLLECTION_FORMATS$1 as COLLECTION_FORMATS, CloseResult, ComponentType, ComponentWidgetType, Configuration$1 as Configuration, DataChangeKind, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartFileUploaderComponent, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
4942
+ export { APIS, ApiModule, ApiQueueService, BASE_PATH, COLLECTION_FORMATS, CloseResult, Configuration, DataChangeKind, IS_ASYNC_PARAM_NAME, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartFileUploaderComponent, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
5439
4943
  //# sourceMappingURL=smartbit4all-ng-client.mjs.map