@smartbit4all/ng-client 1.1.37 → 1.1.39

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 (46) hide show
  1. package/esm2020/lib/smart-client/api/api/api.mjs +4 -0
  2. package/esm2020/lib/smart-client/api/api/default.service.mjs +133 -0
  3. package/esm2020/lib/smart-client/api/api.module.mjs +40 -0
  4. package/esm2020/lib/smart-client/api/configuration.mjs +91 -0
  5. package/esm2020/lib/smart-client/api/encoder.mjs +19 -0
  6. package/esm2020/lib/smart-client/api/index.mjs +7 -0
  7. package/esm2020/lib/smart-client/api/model/componentType.mjs +17 -0
  8. package/esm2020/lib/smart-client/api/model/componentWidgetType.mjs +15 -0
  9. package/esm2020/lib/smart-client/api/model/layoutDirection.mjs +16 -0
  10. package/esm2020/lib/smart-client/api/model/models.mjs +6 -0
  11. package/esm2020/lib/smart-client/api/model/smartComponentLayoutDefinition.mjs +2 -0
  12. package/esm2020/lib/smart-client/api/model/smartComponentWidgetDefinition.mjs +2 -0
  13. package/esm2020/lib/smart-client/api/param.mjs +2 -0
  14. package/esm2020/lib/smart-client/api/variables.mjs +9 -0
  15. package/esm2020/lib/smart-client/smart-component-api-client.mjs +1 -1
  16. package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.component.mjs +22 -7
  17. package/esm2020/lib/smart-ng-client.module.mjs +6 -2
  18. package/esm2020/projects.mjs +2 -2
  19. package/fesm2015/smartbit4all-ng-client.mjs +380 -42
  20. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  21. package/fesm2020/smartbit4all-ng-client.mjs +372 -39
  22. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  23. package/lib/smart-client/api/api/api.d.ts +3 -0
  24. package/lib/smart-client/api/api/default.service.d.ts +33 -0
  25. package/lib/smart-client/api/api.module.d.ts +11 -0
  26. package/lib/smart-client/api/configuration.d.ts +104 -0
  27. package/lib/smart-client/api/encoder.d.ts +11 -0
  28. package/lib/smart-client/api/index.d.ts +6 -0
  29. package/lib/smart-client/api/model/componentType.d.ts +17 -0
  30. package/lib/smart-client/api/model/componentWidgetType.d.ts +15 -0
  31. package/lib/smart-client/api/model/layoutDirection.d.ts +16 -0
  32. package/lib/smart-client/api/model/models.d.ts +5 -0
  33. package/lib/smart-client/api/model/smartComponentLayoutDefinition.d.ts +29 -0
  34. package/lib/smart-client/api/model/smartComponentWidgetDefinition.d.ts +18 -0
  35. package/lib/smart-client/api/param.d.ts +37 -0
  36. package/lib/smart-client/api/variables.d.ts +8 -0
  37. package/lib/smart-client/smart-component-api-client.d.ts +1 -1
  38. package/lib/smart-client/smart-component-layout/smart-component-layout.component.d.ts +5 -1
  39. package/lib/smart-ng-client.module.d.ts +2 -1
  40. package/package.json +1 -1
  41. package/projects.d.ts +1 -1
  42. package/smartbit4all-ng-client-1.1.39.tgz +0 -0
  43. package/src/lib/smart-client/api/README.md +226 -0
  44. package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.model.mjs +0 -13
  45. package/lib/smart-client/smart-component-layout/smart-component-layout.model.d.ts +0 -30
  46. package/smartbit4all-ng-client-1.1.37.tgz +0 -0
@@ -28,15 +28,17 @@ import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-b
28
28
  import { Validators } from '@angular/forms';
29
29
  import * as i1$2 from '@smartbit4all/form';
30
30
  import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
31
- import * as i2$2 from '@smartbit4all/grid';
31
+ import * as i3$2 from '@smartbit4all/grid';
32
32
  import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
33
+ import * as i2$2 from '@smartbit4all/expandable-section';
34
+ import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
33
35
  import { SmarttreeGenericService } from '@smartbit4all/tree';
34
36
 
35
37
  /**
36
38
  * Custom HttpParameterCodec
37
39
  * Workaround for https://github.com/angular/angular/issues/18261
38
40
  */
39
- class CustomHttpParameterCodec$1 {
41
+ class CustomHttpParameterCodec$2 {
40
42
  encodeKey(k) {
41
43
  return encodeURIComponent(k);
42
44
  }
@@ -51,15 +53,15 @@ class CustomHttpParameterCodec$1 {
51
53
  }
52
54
  }
53
55
 
54
- const BASE_PATH$1 = new InjectionToken('basePath');
55
- const COLLECTION_FORMATS$1 = {
56
+ const BASE_PATH$2 = new InjectionToken('basePath');
57
+ const COLLECTION_FORMATS$2 = {
56
58
  'csv': ',',
57
59
  'tsv': ' ',
58
60
  'ssv': ' ',
59
61
  'pipes': '|'
60
62
  };
61
63
 
62
- class Configuration$1 {
64
+ class Configuration$2 {
63
65
  constructor(configurationParameters = {}) {
64
66
  this.apiKeys = configurationParameters.apiKeys;
65
67
  this.username = configurationParameters.username;
@@ -166,7 +168,7 @@ class SessionService {
166
168
  this.httpClient = httpClient;
167
169
  this.basePath = 'http://localhost';
168
170
  this.defaultHeaders = new HttpHeaders();
169
- this.configuration = new Configuration$1();
171
+ this.configuration = new Configuration$2();
170
172
  if (configuration) {
171
173
  this.configuration = configuration;
172
174
  }
@@ -179,7 +181,7 @@ class SessionService {
179
181
  }
180
182
  this.configuration.basePath = basePath;
181
183
  }
182
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
184
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
183
185
  }
184
186
  // @ts-ignore
185
187
  addToHttpParams(httpParams, value, key) {
@@ -430,7 +432,7 @@ class SessionService {
430
432
  });
431
433
  }
432
434
  }
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 });
435
+ 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 });
434
436
  SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, providedIn: 'root' });
435
437
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, decorators: [{
436
438
  type: Injectable,
@@ -442,8 +444,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
442
444
  type: Optional
443
445
  }, {
444
446
  type: Inject,
445
- args: [BASE_PATH$1]
446
- }] }, { type: Configuration$1, decorators: [{
447
+ args: [BASE_PATH$2]
448
+ }] }, { type: Configuration$2, decorators: [{
447
449
  type: Optional
448
450
  }] }];
449
451
  } });
@@ -914,7 +916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
914
916
  * Custom HttpParameterCodec
915
917
  * Workaround for https://github.com/angular/angular/issues/18261
916
918
  */
917
- class CustomHttpParameterCodec {
919
+ class CustomHttpParameterCodec$1 {
918
920
  encodeKey(k) {
919
921
  return encodeURIComponent(k);
920
922
  }
@@ -929,15 +931,15 @@ class CustomHttpParameterCodec {
929
931
  }
930
932
  }
931
933
 
932
- const BASE_PATH = new InjectionToken('basePath');
933
- const COLLECTION_FORMATS = {
934
+ const BASE_PATH$1 = new InjectionToken('basePath');
935
+ const COLLECTION_FORMATS$1 = {
934
936
  'csv': ',',
935
937
  'tsv': ' ',
936
938
  'ssv': ' ',
937
939
  'pipes': '|'
938
940
  };
939
941
 
940
- class Configuration {
942
+ class Configuration$1 {
941
943
  constructor(configurationParameters = {}) {
942
944
  this.apiKeys = configurationParameters.apiKeys;
943
945
  this.username = configurationParameters.username;
@@ -1044,7 +1046,7 @@ class ViewService {
1044
1046
  this.httpClient = httpClient;
1045
1047
  this.basePath = 'http://localhost';
1046
1048
  this.defaultHeaders = new HttpHeaders();
1047
- this.configuration = new Configuration();
1049
+ this.configuration = new Configuration$1();
1048
1050
  if (configuration) {
1049
1051
  this.configuration = configuration;
1050
1052
  }
@@ -1057,7 +1059,7 @@ class ViewService {
1057
1059
  }
1058
1060
  this.configuration.basePath = basePath;
1059
1061
  }
1060
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1062
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
1061
1063
  }
1062
1064
  /**
1063
1065
  * @param consumes string[] mime-types
@@ -1834,7 +1836,7 @@ class ViewService {
1834
1836
  });
1835
1837
  }
1836
1838
  else {
1837
- localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS['csv'])) || localVarFormParams;
1839
+ localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$1['csv'])) || localVarFormParams;
1838
1840
  }
1839
1841
  }
1840
1842
  let responseType_ = 'json';
@@ -1861,7 +1863,7 @@ class ViewService {
1861
1863
  });
1862
1864
  }
1863
1865
  }
1864
- 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 });
1866
+ 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 });
1865
1867
  ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, providedIn: 'root' });
1866
1868
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, decorators: [{
1867
1869
  type: Injectable,
@@ -1873,13 +1875,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1873
1875
  type: Optional
1874
1876
  }, {
1875
1877
  type: Inject,
1876
- args: [BASE_PATH]
1877
- }] }, { type: Configuration, decorators: [{
1878
+ args: [BASE_PATH$1]
1879
+ }] }, { type: Configuration$1, decorators: [{
1878
1880
  type: Optional
1879
1881
  }] }];
1880
1882
  } });
1881
1883
 
1882
- const APIS = [ViewService];
1884
+ const APIS$1 = [ViewService];
1883
1885
 
1884
1886
  /**
1885
1887
  * View API
@@ -2081,7 +2083,7 @@ const ViewType = {
2081
2083
  Embedded: 'embedded'
2082
2084
  };
2083
2085
 
2084
- class ApiModule {
2086
+ class ApiModule$1 {
2085
2087
  constructor(parentModule, http) {
2086
2088
  if (parentModule) {
2087
2089
  throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
@@ -2093,15 +2095,15 @@ class ApiModule {
2093
2095
  }
2094
2096
  static forRoot(configurationFactory) {
2095
2097
  return {
2096
- ngModule: ApiModule,
2097
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
2098
+ ngModule: ApiModule$1,
2099
+ providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
2098
2100
  };
2099
2101
  }
2100
2102
  }
2101
- 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 });
2102
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
2103
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
2104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
2103
+ 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 });
2104
+ ApiModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1 });
2105
+ ApiModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, providers: [], imports: [[]] });
2106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, decorators: [{
2105
2107
  type: NgModule,
2106
2108
  args: [{
2107
2109
  imports: [],
@@ -2110,7 +2112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2110
2112
  providers: []
2111
2113
  }]
2112
2114
  }], ctorParameters: function () {
2113
- return [{ type: ApiModule, decorators: [{
2115
+ return [{ type: ApiModule$1, decorators: [{
2114
2116
  type: Optional
2115
2117
  }, {
2116
2118
  type: SkipSelf
@@ -4456,31 +4458,354 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4456
4458
  type: Input
4457
4459
  }] } });
4458
4460
 
4459
- const LayoutDirection = {
4460
- Horizontal: 'horizontal',
4461
- Vertical: 'vertical',
4461
+ /**
4462
+ * Custom HttpParameterCodec
4463
+ * Workaround for https://github.com/angular/angular/issues/18261
4464
+ */
4465
+ class CustomHttpParameterCodec {
4466
+ encodeKey(k) {
4467
+ return encodeURIComponent(k);
4468
+ }
4469
+ encodeValue(v) {
4470
+ return encodeURIComponent(v);
4471
+ }
4472
+ decodeKey(k) {
4473
+ return decodeURIComponent(k);
4474
+ }
4475
+ decodeValue(v) {
4476
+ return decodeURIComponent(v);
4477
+ }
4478
+ }
4479
+
4480
+ const BASE_PATH = new InjectionToken('basePath');
4481
+ const COLLECTION_FORMATS = {
4482
+ 'csv': ',',
4483
+ 'tsv': ' ',
4484
+ 'ssv': ' ',
4485
+ 'pipes': '|'
4462
4486
  };
4487
+
4488
+ class Configuration {
4489
+ constructor(configurationParameters = {}) {
4490
+ this.apiKeys = configurationParameters.apiKeys;
4491
+ this.username = configurationParameters.username;
4492
+ this.password = configurationParameters.password;
4493
+ this.accessToken = configurationParameters.accessToken;
4494
+ this.basePath = configurationParameters.basePath;
4495
+ this.withCredentials = configurationParameters.withCredentials;
4496
+ this.encoder = configurationParameters.encoder;
4497
+ if (configurationParameters.encodeParam) {
4498
+ this.encodeParam = configurationParameters.encodeParam;
4499
+ }
4500
+ else {
4501
+ this.encodeParam = param => this.defaultEncodeParam(param);
4502
+ }
4503
+ if (configurationParameters.credentials) {
4504
+ this.credentials = configurationParameters.credentials;
4505
+ }
4506
+ else {
4507
+ this.credentials = {};
4508
+ }
4509
+ }
4510
+ /**
4511
+ * Select the correct content-type to use for a request.
4512
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
4513
+ * If no content type is found return the first found type if the contentTypes is not empty
4514
+ * @param contentTypes - the array of content types that are available for selection
4515
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
4516
+ */
4517
+ selectHeaderContentType(contentTypes) {
4518
+ if (contentTypes.length === 0) {
4519
+ return undefined;
4520
+ }
4521
+ const type = contentTypes.find((x) => this.isJsonMime(x));
4522
+ if (type === undefined) {
4523
+ return contentTypes[0];
4524
+ }
4525
+ return type;
4526
+ }
4527
+ /**
4528
+ * Select the correct accept content-type to use for a request.
4529
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
4530
+ * If no content type is found return the first found type if the contentTypes is not empty
4531
+ * @param accepts - the array of content types that are available for selection.
4532
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
4533
+ */
4534
+ selectHeaderAccept(accepts) {
4535
+ if (accepts.length === 0) {
4536
+ return undefined;
4537
+ }
4538
+ const type = accepts.find((x) => this.isJsonMime(x));
4539
+ if (type === undefined) {
4540
+ return accepts[0];
4541
+ }
4542
+ return type;
4543
+ }
4544
+ /**
4545
+ * Check if the given MIME is a JSON MIME.
4546
+ * JSON MIME examples:
4547
+ * application/json
4548
+ * application/json; charset=UTF8
4549
+ * APPLICATION/JSON
4550
+ * application/vnd.company+json
4551
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
4552
+ * @return True if the given MIME is JSON, false otherwise.
4553
+ */
4554
+ isJsonMime(mime) {
4555
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
4556
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
4557
+ }
4558
+ lookupCredential(key) {
4559
+ const value = this.credentials[key];
4560
+ return typeof value === 'function'
4561
+ ? value()
4562
+ : value;
4563
+ }
4564
+ defaultEncodeParam(param) {
4565
+ // This implementation exists as fallback for missing configuration
4566
+ // and for backwards compatibility to older typescript-angular generator versions.
4567
+ // It only works for the 'simple' parameter style.
4568
+ // Date-handling only works for the 'date-time' format.
4569
+ // All other styles and Date-formats are probably handled incorrectly.
4570
+ //
4571
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
4572
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
4573
+ ? param.value.toISOString()
4574
+ : param.value;
4575
+ return encodeURIComponent(String(value));
4576
+ }
4577
+ }
4578
+
4579
+ /**
4580
+ * Form layout definition
4581
+ * Contains form layout definition objects.
4582
+ *
4583
+ * The version of the OpenAPI document: 1.0.0
4584
+ * Contact: info@it4all.hu
4585
+ *
4586
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4587
+ * https://openapi-generator.tech
4588
+ * Do not edit the class manually.
4589
+ */
4590
+ class DefaultService {
4591
+ constructor(httpClient, basePath, configuration) {
4592
+ this.httpClient = httpClient;
4593
+ this.basePath = 'http://localhost';
4594
+ this.defaultHeaders = new HttpHeaders();
4595
+ this.configuration = new Configuration();
4596
+ if (configuration) {
4597
+ this.configuration = configuration;
4598
+ }
4599
+ if (typeof this.configuration.basePath !== 'string') {
4600
+ if (Array.isArray(basePath) && basePath.length > 0) {
4601
+ basePath = basePath[0];
4602
+ }
4603
+ if (typeof basePath !== 'string') {
4604
+ basePath = this.basePath;
4605
+ }
4606
+ this.configuration.basePath = basePath;
4607
+ }
4608
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
4609
+ }
4610
+ // @ts-ignore
4611
+ addToHttpParams(httpParams, value, key) {
4612
+ if (typeof value === "object" && value instanceof Date === false) {
4613
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
4614
+ }
4615
+ else {
4616
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
4617
+ }
4618
+ return httpParams;
4619
+ }
4620
+ addToHttpParamsRecursive(httpParams, value, key) {
4621
+ if (value == null) {
4622
+ return httpParams;
4623
+ }
4624
+ if (typeof value === "object") {
4625
+ if (Array.isArray(value)) {
4626
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
4627
+ }
4628
+ else if (value instanceof Date) {
4629
+ if (key != null) {
4630
+ httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
4631
+ }
4632
+ else {
4633
+ throw Error("key may not be null if value is Date");
4634
+ }
4635
+ }
4636
+ else {
4637
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
4638
+ }
4639
+ }
4640
+ else if (key != null) {
4641
+ httpParams = httpParams.append(key, value);
4642
+ }
4643
+ else {
4644
+ throw Error("key may not be null if value is not object or array");
4645
+ }
4646
+ return httpParams;
4647
+ }
4648
+ nopePost(observe = 'body', reportProgress = false, options) {
4649
+ let localVarHeaders = this.defaultHeaders;
4650
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4651
+ if (localVarHttpHeaderAcceptSelected === undefined) {
4652
+ // to determine the Accept header
4653
+ const httpHeaderAccepts = [];
4654
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4655
+ }
4656
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4657
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4658
+ }
4659
+ let localVarHttpContext = options && options.context;
4660
+ if (localVarHttpContext === undefined) {
4661
+ localVarHttpContext = new HttpContext();
4662
+ }
4663
+ let responseType_ = 'json';
4664
+ if (localVarHttpHeaderAcceptSelected) {
4665
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
4666
+ responseType_ = 'text';
4667
+ }
4668
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4669
+ responseType_ = 'json';
4670
+ }
4671
+ else {
4672
+ responseType_ = 'blob';
4673
+ }
4674
+ }
4675
+ let localVarPath = `/nope`;
4676
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
4677
+ context: localVarHttpContext,
4678
+ responseType: responseType_,
4679
+ withCredentials: this.configuration.withCredentials,
4680
+ headers: localVarHeaders,
4681
+ observe: observe,
4682
+ reportProgress: reportProgress
4683
+ });
4684
+ }
4685
+ }
4686
+ 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 });
4687
+ DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
4688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
4689
+ type: Injectable,
4690
+ args: [{
4691
+ providedIn: 'root'
4692
+ }]
4693
+ }], ctorParameters: function () {
4694
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4695
+ type: Optional
4696
+ }, {
4697
+ type: Inject,
4698
+ args: [BASE_PATH]
4699
+ }] }, { type: Configuration, decorators: [{
4700
+ type: Optional
4701
+ }] }];
4702
+ } });
4703
+
4704
+ const APIS = [DefaultService];
4705
+
4706
+ /**
4707
+ * Form layout definition
4708
+ * Contains form layout definition objects.
4709
+ *
4710
+ * The version of the OpenAPI document: 1.0.0
4711
+ * Contact: info@it4all.hu
4712
+ *
4713
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4714
+ * https://openapi-generator.tech
4715
+ * Do not edit the class manually.
4716
+ */
4463
4717
  const ComponentType = {
4464
4718
  Container: 'container',
4465
4719
  Form: 'form',
4466
- Widget: 'widget',
4720
+ Widget: 'widget'
4467
4721
  };
4722
+
4723
+ /**
4724
+ * Form layout definition
4725
+ * Contains form layout definition objects.
4726
+ *
4727
+ * The version of the OpenAPI document: 1.0.0
4728
+ * Contact: info@it4all.hu
4729
+ *
4730
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4731
+ * https://openapi-generator.tech
4732
+ * Do not edit the class manually.
4733
+ */
4468
4734
  const ComponentWidgetType = {
4469
- Grid: 'grid',
4735
+ Grid: 'grid'
4470
4736
  };
4471
4737
 
4738
+ /**
4739
+ * Form layout definition
4740
+ * Contains form layout definition objects.
4741
+ *
4742
+ * The version of the OpenAPI document: 1.0.0
4743
+ * Contact: info@it4all.hu
4744
+ *
4745
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4746
+ * https://openapi-generator.tech
4747
+ * Do not edit the class manually.
4748
+ */
4749
+ const LayoutDirection = {
4750
+ Horizontal: 'horizontal',
4751
+ Vertical: 'vertical'
4752
+ };
4753
+
4754
+ class ApiModule {
4755
+ constructor(parentModule, http) {
4756
+ if (parentModule) {
4757
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
4758
+ }
4759
+ if (!http) {
4760
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
4761
+ 'See also https://github.com/angular/angular/issues/20575');
4762
+ }
4763
+ }
4764
+ static forRoot(configurationFactory) {
4765
+ return {
4766
+ ngModule: ApiModule,
4767
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
4768
+ };
4769
+ }
4770
+ }
4771
+ 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 });
4772
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
4773
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
4774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
4775
+ type: NgModule,
4776
+ args: [{
4777
+ imports: [],
4778
+ declarations: [],
4779
+ exports: [],
4780
+ providers: []
4781
+ }]
4782
+ }], ctorParameters: function () {
4783
+ return [{ type: ApiModule, decorators: [{
4784
+ type: Optional
4785
+ }, {
4786
+ type: SkipSelf
4787
+ }] }, { type: i1.HttpClient, decorators: [{
4788
+ type: Optional
4789
+ }] }];
4790
+ } });
4791
+
4472
4792
  class SmartComponentLayoutComponent {
4473
4793
  constructor(layoutService) {
4474
4794
  this.layoutService = layoutService;
4475
4795
  }
4476
4796
  ngOnChanges(changes) {
4477
- var _a, _b, _c;
4797
+ var _a, _b, _c, _d, _e;
4478
4798
  this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
4479
- if (((_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.type) === ComponentType.Form) {
4799
+ this.uuid = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.parentComponent.uuid;
4800
+ if (((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.type) === ComponentType.Container &&
4801
+ this.smartComponentLayout.expandable) {
4802
+ this.constructExpandableSection();
4803
+ }
4804
+ else if (((_c = this.smartComponentLayout) === null || _c === void 0 ? void 0 : _c.type) === ComponentType.Form) {
4480
4805
  this.constructForm();
4481
4806
  }
4482
- else if (((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.type) === ComponentType.Widget) {
4483
- if (((_c = this.smartComponentLayout.widget) === null || _c === void 0 ? void 0 : _c.type) === ComponentWidgetType.Grid) {
4807
+ else if (((_d = this.smartComponentLayout) === null || _d === void 0 ? void 0 : _d.type) === ComponentType.Widget) {
4808
+ if (((_e = this.smartComponentLayout.widget) === null || _e === void 0 ? void 0 : _e.type) === ComponentWidgetType.Grid) {
4484
4809
  this.constructGrid();
4485
4810
  }
4486
4811
  }
@@ -4488,6 +4813,16 @@ class SmartComponentLayoutComponent {
4488
4813
  type() {
4489
4814
  return ComponentType;
4490
4815
  }
4816
+ constructExpandableSection() {
4817
+ var _a, _b;
4818
+ let data = Object.assign({}, this.smartComponentLayout);
4819
+ data.expandable = false;
4820
+ this.expandableSection = {
4821
+ title: (_b = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.expandableSectionLabel) !== null && _b !== void 0 ? _b : '',
4822
+ data,
4823
+ inputName: 'smartComponentLayout',
4824
+ };
4825
+ }
4491
4826
  constructForm() {
4492
4827
  var _a, _b, _c, _d, _e;
4493
4828
  const widgets = this.layoutService.render({
@@ -4529,10 +4864,10 @@ class SmartComponentLayoutComponent {
4529
4864
  }
4530
4865
  }
4531
4866
  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 });
4532
- 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\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n>\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n</div>\n<smartform #form [smartForm]=\"smartForm\"></smartform>\n<smart-grid\n #grid\n [smartGrid]=\"smartGrid\"\n [uuid]=\"smartComponentLayout?.parentComponent?.uuid!\"\n></smart-grid>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"], components: [{ type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout"] }, { type: i1$2.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: i2$2.SmartGridComponent, selector: "smart-grid", inputs: ["smartGrid", "uuid", "dev"] }], 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"] }] });
4867
+ 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\n *ngIf=\"\n smartComponentLayout?.type === type().Container && smartComponentLayout?.expandable;\n then expandable;\n else normal\n \"\n>\n</div>\n\n<ng-template #expandable>\n <smart-expandable-section\n *ngIf=\"expandableSection\"\n [data]=\"expandableSection\"\n ></smart-expandable-section>\n</ng-template>\n\n<ng-template #normal>\n <div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n >\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n </div>\n <smartform #form [smartForm]=\"smartForm\"></smartform>\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\n</ng-template>\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"] }], 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"] }] });
4533
4868
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
4534
4869
  type: Component,
4535
- args: [{ selector: 'smart-component-layout', template: "<div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n>\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n</div>\n<smartform #form [smartForm]=\"smartForm\"></smartform>\n<smart-grid\n #grid\n [smartGrid]=\"smartGrid\"\n [uuid]=\"smartComponentLayout?.parentComponent?.uuid!\"\n></smart-grid>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
4870
+ args: [{ selector: 'smart-component-layout', template: "<div\n *ngIf=\"\n smartComponentLayout?.type === type().Container && smartComponentLayout?.expandable;\n then expandable;\n else normal\n \"\n>\n</div>\n\n<ng-template #expandable>\n <smart-expandable-section\n *ngIf=\"expandableSection\"\n [data]=\"expandableSection\"\n ></smart-expandable-section>\n</ng-template>\n\n<ng-template #normal>\n <div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n >\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n </div>\n <smartform #form [smartForm]=\"smartForm\"></smartform>\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\n</ng-template>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
4536
4871
  }], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
4537
4872
  type: Input
4538
4873
  }], formChild: [{
@@ -4551,7 +4886,8 @@ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
4551
4886
  SmartSessionModule,
4552
4887
  SmartViewContextModule,
4553
4888
  SmartformModule,
4554
- SmartGridModule], exports: [SmartSessionModule,
4889
+ SmartGridModule,
4890
+ SmartExpandableSectionModule], exports: [SmartSessionModule,
4555
4891
  SmartViewContextModule,
4556
4892
  SmartFileUploaderComponent,
4557
4893
  SmartComponentLayoutComponent] });
@@ -4562,6 +4898,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
4562
4898
  SmartViewContextModule,
4563
4899
  SmartformModule,
4564
4900
  SmartGridModule,
4901
+ SmartExpandableSectionModule,
4565
4902
  ], SmartSessionModule,
4566
4903
  SmartViewContextModule] });
4567
4904
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
@@ -4575,6 +4912,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4575
4912
  SmartViewContextModule,
4576
4913
  SmartformModule,
4577
4914
  SmartGridModule,
4915
+ SmartExpandableSectionModule,
4578
4916
  ],
4579
4917
  exports: [
4580
4918
  SmartSessionModule,
@@ -5046,5 +5384,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5046
5384
  * Generated bundle index. Do not edit.
5047
5385
  */
5048
5386
 
5049
- export { APIS, ApiModule, ApiQueueService, BASE_PATH, COLLECTION_FORMATS, CloseResult, ComponentType, ComponentWidgetType, 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 };
5387
+ 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 };
5050
5388
  //# sourceMappingURL=smartbit4all-ng-client.mjs.map