@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
@@ -27,8 +27,10 @@ import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-b
27
27
  import { Validators } from '@angular/forms';
28
28
  import * as i1$2 from '@smartbit4all/form';
29
29
  import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
30
- import * as i2$2 from '@smartbit4all/grid';
30
+ import * as i3$2 from '@smartbit4all/grid';
31
31
  import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
32
+ import * as i2$2 from '@smartbit4all/expandable-section';
33
+ import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
32
34
  import { __decorate, __param } from 'tslib';
33
35
  import { SmarttreeGenericService } from '@smartbit4all/tree';
34
36
 
@@ -36,7 +38,7 @@ import { SmarttreeGenericService } from '@smartbit4all/tree';
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,
@@ -441,8 +443,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
441
443
  type: Optional
442
444
  }, {
443
445
  type: Inject,
444
- args: [BASE_PATH$1]
445
- }] }, { type: Configuration$1, decorators: [{
446
+ args: [BASE_PATH$2]
447
+ }] }, { type: Configuration$2, decorators: [{
446
448
  type: Optional
447
449
  }] }]; } });
448
450
 
@@ -951,7 +953,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
951
953
  * Custom HttpParameterCodec
952
954
  * Workaround for https://github.com/angular/angular/issues/18261
953
955
  */
954
- class CustomHttpParameterCodec {
956
+ class CustomHttpParameterCodec$1 {
955
957
  encodeKey(k) {
956
958
  return encodeURIComponent(k);
957
959
  }
@@ -966,15 +968,15 @@ class CustomHttpParameterCodec {
966
968
  }
967
969
  }
968
970
 
969
- const BASE_PATH = new InjectionToken('basePath');
970
- const COLLECTION_FORMATS = {
971
+ const BASE_PATH$1 = new InjectionToken('basePath');
972
+ const COLLECTION_FORMATS$1 = {
971
973
  'csv': ',',
972
974
  'tsv': ' ',
973
975
  'ssv': ' ',
974
976
  'pipes': '|'
975
977
  };
976
978
 
977
- class Configuration {
979
+ class Configuration$1 {
978
980
  constructor(configurationParameters = {}) {
979
981
  this.apiKeys = configurationParameters.apiKeys;
980
982
  this.username = configurationParameters.username;
@@ -1081,7 +1083,7 @@ class ViewService {
1081
1083
  this.httpClient = httpClient;
1082
1084
  this.basePath = 'http://localhost';
1083
1085
  this.defaultHeaders = new HttpHeaders();
1084
- this.configuration = new Configuration();
1086
+ this.configuration = new Configuration$1();
1085
1087
  if (configuration) {
1086
1088
  this.configuration = configuration;
1087
1089
  }
@@ -1094,7 +1096,7 @@ class ViewService {
1094
1096
  }
1095
1097
  this.configuration.basePath = basePath;
1096
1098
  }
1097
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1099
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
1098
1100
  }
1099
1101
  /**
1100
1102
  * @param consumes string[] mime-types
@@ -1871,7 +1873,7 @@ class ViewService {
1871
1873
  });
1872
1874
  }
1873
1875
  else {
1874
- localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS['csv'])) || localVarFormParams;
1876
+ localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$1['csv'])) || localVarFormParams;
1875
1877
  }
1876
1878
  }
1877
1879
  let responseType_ = 'json';
@@ -1898,7 +1900,7 @@ class ViewService {
1898
1900
  });
1899
1901
  }
1900
1902
  }
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 });
1903
+ 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 });
1902
1904
  ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, providedIn: 'root' });
1903
1905
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, decorators: [{
1904
1906
  type: Injectable,
@@ -1909,12 +1911,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1909
1911
  type: Optional
1910
1912
  }, {
1911
1913
  type: Inject,
1912
- args: [BASE_PATH]
1913
- }] }, { type: Configuration, decorators: [{
1914
+ args: [BASE_PATH$1]
1915
+ }] }, { type: Configuration$1, decorators: [{
1914
1916
  type: Optional
1915
1917
  }] }]; } });
1916
1918
 
1917
- const APIS = [ViewService];
1919
+ const APIS$1 = [ViewService];
1918
1920
 
1919
1921
  /**
1920
1922
  * View API
@@ -2200,7 +2202,7 @@ const ViewType = {
2200
2202
  Embedded: 'embedded'
2201
2203
  };
2202
2204
 
2203
- class ApiModule {
2205
+ class ApiModule$1 {
2204
2206
  constructor(parentModule, http) {
2205
2207
  if (parentModule) {
2206
2208
  throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
@@ -2212,15 +2214,15 @@ class ApiModule {
2212
2214
  }
2213
2215
  static forRoot(configurationFactory) {
2214
2216
  return {
2215
- ngModule: ApiModule,
2216
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
2217
+ ngModule: ApiModule$1,
2218
+ providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
2217
2219
  };
2218
2220
  }
2219
2221
  }
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: [{
2222
+ 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 });
2223
+ ApiModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1 });
2224
+ ApiModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, providers: [], imports: [[]] });
2225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, decorators: [{
2224
2226
  type: NgModule,
2225
2227
  args: [{
2226
2228
  imports: [],
@@ -2228,7 +2230,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2228
2230
  exports: [],
2229
2231
  providers: []
2230
2232
  }]
2231
- }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
2233
+ }], ctorParameters: function () { return [{ type: ApiModule$1, decorators: [{
2232
2234
  type: Optional
2233
2235
  }, {
2234
2236
  type: SkipSelf
@@ -4466,26 +4468,345 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4466
4468
  type: Input
4467
4469
  }] } });
4468
4470
 
4469
- const LayoutDirection = {
4470
- Horizontal: 'horizontal',
4471
- Vertical: 'vertical',
4471
+ /**
4472
+ * Custom HttpParameterCodec
4473
+ * Workaround for https://github.com/angular/angular/issues/18261
4474
+ */
4475
+ class CustomHttpParameterCodec {
4476
+ encodeKey(k) {
4477
+ return encodeURIComponent(k);
4478
+ }
4479
+ encodeValue(v) {
4480
+ return encodeURIComponent(v);
4481
+ }
4482
+ decodeKey(k) {
4483
+ return decodeURIComponent(k);
4484
+ }
4485
+ decodeValue(v) {
4486
+ return decodeURIComponent(v);
4487
+ }
4488
+ }
4489
+
4490
+ const BASE_PATH = new InjectionToken('basePath');
4491
+ const COLLECTION_FORMATS = {
4492
+ 'csv': ',',
4493
+ 'tsv': ' ',
4494
+ 'ssv': ' ',
4495
+ 'pipes': '|'
4472
4496
  };
4497
+
4498
+ class Configuration {
4499
+ constructor(configurationParameters = {}) {
4500
+ this.apiKeys = configurationParameters.apiKeys;
4501
+ this.username = configurationParameters.username;
4502
+ this.password = configurationParameters.password;
4503
+ this.accessToken = configurationParameters.accessToken;
4504
+ this.basePath = configurationParameters.basePath;
4505
+ this.withCredentials = configurationParameters.withCredentials;
4506
+ this.encoder = configurationParameters.encoder;
4507
+ if (configurationParameters.encodeParam) {
4508
+ this.encodeParam = configurationParameters.encodeParam;
4509
+ }
4510
+ else {
4511
+ this.encodeParam = param => this.defaultEncodeParam(param);
4512
+ }
4513
+ if (configurationParameters.credentials) {
4514
+ this.credentials = configurationParameters.credentials;
4515
+ }
4516
+ else {
4517
+ this.credentials = {};
4518
+ }
4519
+ }
4520
+ /**
4521
+ * Select the correct content-type to use for a request.
4522
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
4523
+ * If no content type is found return the first found type if the contentTypes is not empty
4524
+ * @param contentTypes - the array of content types that are available for selection
4525
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
4526
+ */
4527
+ selectHeaderContentType(contentTypes) {
4528
+ if (contentTypes.length === 0) {
4529
+ return undefined;
4530
+ }
4531
+ const type = contentTypes.find((x) => this.isJsonMime(x));
4532
+ if (type === undefined) {
4533
+ return contentTypes[0];
4534
+ }
4535
+ return type;
4536
+ }
4537
+ /**
4538
+ * Select the correct accept content-type to use for a request.
4539
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
4540
+ * If no content type is found return the first found type if the contentTypes is not empty
4541
+ * @param accepts - the array of content types that are available for selection.
4542
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
4543
+ */
4544
+ selectHeaderAccept(accepts) {
4545
+ if (accepts.length === 0) {
4546
+ return undefined;
4547
+ }
4548
+ const type = accepts.find((x) => this.isJsonMime(x));
4549
+ if (type === undefined) {
4550
+ return accepts[0];
4551
+ }
4552
+ return type;
4553
+ }
4554
+ /**
4555
+ * Check if the given MIME is a JSON MIME.
4556
+ * JSON MIME examples:
4557
+ * application/json
4558
+ * application/json; charset=UTF8
4559
+ * APPLICATION/JSON
4560
+ * application/vnd.company+json
4561
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
4562
+ * @return True if the given MIME is JSON, false otherwise.
4563
+ */
4564
+ isJsonMime(mime) {
4565
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
4566
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
4567
+ }
4568
+ lookupCredential(key) {
4569
+ const value = this.credentials[key];
4570
+ return typeof value === 'function'
4571
+ ? value()
4572
+ : value;
4573
+ }
4574
+ defaultEncodeParam(param) {
4575
+ // This implementation exists as fallback for missing configuration
4576
+ // and for backwards compatibility to older typescript-angular generator versions.
4577
+ // It only works for the 'simple' parameter style.
4578
+ // Date-handling only works for the 'date-time' format.
4579
+ // All other styles and Date-formats are probably handled incorrectly.
4580
+ //
4581
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
4582
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
4583
+ ? param.value.toISOString()
4584
+ : param.value;
4585
+ return encodeURIComponent(String(value));
4586
+ }
4587
+ }
4588
+
4589
+ /**
4590
+ * Form layout definition
4591
+ * Contains form layout definition objects.
4592
+ *
4593
+ * The version of the OpenAPI document: 1.0.0
4594
+ * Contact: info@it4all.hu
4595
+ *
4596
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4597
+ * https://openapi-generator.tech
4598
+ * Do not edit the class manually.
4599
+ */
4600
+ class DefaultService {
4601
+ constructor(httpClient, basePath, configuration) {
4602
+ this.httpClient = httpClient;
4603
+ this.basePath = 'http://localhost';
4604
+ this.defaultHeaders = new HttpHeaders();
4605
+ this.configuration = new Configuration();
4606
+ if (configuration) {
4607
+ this.configuration = configuration;
4608
+ }
4609
+ if (typeof this.configuration.basePath !== 'string') {
4610
+ if (Array.isArray(basePath) && basePath.length > 0) {
4611
+ basePath = basePath[0];
4612
+ }
4613
+ if (typeof basePath !== 'string') {
4614
+ basePath = this.basePath;
4615
+ }
4616
+ this.configuration.basePath = basePath;
4617
+ }
4618
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
4619
+ }
4620
+ // @ts-ignore
4621
+ addToHttpParams(httpParams, value, key) {
4622
+ if (typeof value === "object" && value instanceof Date === false) {
4623
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
4624
+ }
4625
+ else {
4626
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
4627
+ }
4628
+ return httpParams;
4629
+ }
4630
+ addToHttpParamsRecursive(httpParams, value, key) {
4631
+ if (value == null) {
4632
+ return httpParams;
4633
+ }
4634
+ if (typeof value === "object") {
4635
+ if (Array.isArray(value)) {
4636
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
4637
+ }
4638
+ else if (value instanceof Date) {
4639
+ if (key != null) {
4640
+ httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
4641
+ }
4642
+ else {
4643
+ throw Error("key may not be null if value is Date");
4644
+ }
4645
+ }
4646
+ else {
4647
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
4648
+ }
4649
+ }
4650
+ else if (key != null) {
4651
+ httpParams = httpParams.append(key, value);
4652
+ }
4653
+ else {
4654
+ throw Error("key may not be null if value is not object or array");
4655
+ }
4656
+ return httpParams;
4657
+ }
4658
+ nopePost(observe = 'body', reportProgress = false, options) {
4659
+ let localVarHeaders = this.defaultHeaders;
4660
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
4661
+ if (localVarHttpHeaderAcceptSelected === undefined) {
4662
+ // to determine the Accept header
4663
+ const httpHeaderAccepts = [];
4664
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
4665
+ }
4666
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4667
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4668
+ }
4669
+ let localVarHttpContext = options && options.context;
4670
+ if (localVarHttpContext === undefined) {
4671
+ localVarHttpContext = new HttpContext();
4672
+ }
4673
+ let responseType_ = 'json';
4674
+ if (localVarHttpHeaderAcceptSelected) {
4675
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
4676
+ responseType_ = 'text';
4677
+ }
4678
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4679
+ responseType_ = 'json';
4680
+ }
4681
+ else {
4682
+ responseType_ = 'blob';
4683
+ }
4684
+ }
4685
+ let localVarPath = `/nope`;
4686
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
4687
+ context: localVarHttpContext,
4688
+ responseType: responseType_,
4689
+ withCredentials: this.configuration.withCredentials,
4690
+ headers: localVarHeaders,
4691
+ observe: observe,
4692
+ reportProgress: reportProgress
4693
+ });
4694
+ }
4695
+ }
4696
+ 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 });
4697
+ DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
4698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
4699
+ type: Injectable,
4700
+ args: [{
4701
+ providedIn: 'root'
4702
+ }]
4703
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4704
+ type: Optional
4705
+ }, {
4706
+ type: Inject,
4707
+ args: [BASE_PATH]
4708
+ }] }, { type: Configuration, decorators: [{
4709
+ type: Optional
4710
+ }] }]; } });
4711
+
4712
+ const APIS = [DefaultService];
4713
+
4714
+ /**
4715
+ * Form layout definition
4716
+ * Contains form layout definition objects.
4717
+ *
4718
+ * The version of the OpenAPI document: 1.0.0
4719
+ * Contact: info@it4all.hu
4720
+ *
4721
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4722
+ * https://openapi-generator.tech
4723
+ * Do not edit the class manually.
4724
+ */
4473
4725
  const ComponentType = {
4474
4726
  Container: 'container',
4475
4727
  Form: 'form',
4476
- Widget: 'widget',
4728
+ Widget: 'widget'
4477
4729
  };
4730
+
4731
+ /**
4732
+ * Form layout definition
4733
+ * Contains form layout definition objects.
4734
+ *
4735
+ * The version of the OpenAPI document: 1.0.0
4736
+ * Contact: info@it4all.hu
4737
+ *
4738
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4739
+ * https://openapi-generator.tech
4740
+ * Do not edit the class manually.
4741
+ */
4478
4742
  const ComponentWidgetType = {
4479
- Grid: 'grid',
4743
+ Grid: 'grid'
4744
+ };
4745
+
4746
+ /**
4747
+ * Form layout definition
4748
+ * Contains form layout definition objects.
4749
+ *
4750
+ * The version of the OpenAPI document: 1.0.0
4751
+ * Contact: info@it4all.hu
4752
+ *
4753
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4754
+ * https://openapi-generator.tech
4755
+ * Do not edit the class manually.
4756
+ */
4757
+ const LayoutDirection = {
4758
+ Horizontal: 'horizontal',
4759
+ Vertical: 'vertical'
4480
4760
  };
4481
4761
 
4762
+ class ApiModule {
4763
+ constructor(parentModule, http) {
4764
+ if (parentModule) {
4765
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
4766
+ }
4767
+ if (!http) {
4768
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
4769
+ 'See also https://github.com/angular/angular/issues/20575');
4770
+ }
4771
+ }
4772
+ static forRoot(configurationFactory) {
4773
+ return {
4774
+ ngModule: ApiModule,
4775
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
4776
+ };
4777
+ }
4778
+ }
4779
+ 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 });
4780
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
4781
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
4782
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
4783
+ type: NgModule,
4784
+ args: [{
4785
+ imports: [],
4786
+ declarations: [],
4787
+ exports: [],
4788
+ providers: []
4789
+ }]
4790
+ }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
4791
+ type: Optional
4792
+ }, {
4793
+ type: SkipSelf
4794
+ }] }, { type: i1.HttpClient, decorators: [{
4795
+ type: Optional
4796
+ }] }]; } });
4797
+
4482
4798
  class SmartComponentLayoutComponent {
4483
4799
  constructor(layoutService) {
4484
4800
  this.layoutService = layoutService;
4485
4801
  }
4486
4802
  ngOnChanges(changes) {
4487
4803
  this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
4488
- if (this.smartComponentLayout?.type === ComponentType.Form) {
4804
+ this.uuid = this.smartComponentLayout?.parentComponent.uuid;
4805
+ if (this.smartComponentLayout?.type === ComponentType.Container &&
4806
+ this.smartComponentLayout.expandable) {
4807
+ this.constructExpandableSection();
4808
+ }
4809
+ else if (this.smartComponentLayout?.type === ComponentType.Form) {
4489
4810
  this.constructForm();
4490
4811
  }
4491
4812
  else if (this.smartComponentLayout?.type === ComponentType.Widget) {
@@ -4497,6 +4818,15 @@ class SmartComponentLayoutComponent {
4497
4818
  type() {
4498
4819
  return ComponentType;
4499
4820
  }
4821
+ constructExpandableSection() {
4822
+ let data = { ...this.smartComponentLayout };
4823
+ data.expandable = false;
4824
+ this.expandableSection = {
4825
+ title: this.smartComponentLayout?.expandableSectionLabel ?? '',
4826
+ data,
4827
+ inputName: 'smartComponentLayout',
4828
+ };
4829
+ }
4500
4830
  constructForm() {
4501
4831
  const widgets = this.layoutService.render({
4502
4832
  layoutDefinitions: this.smartComponentLayout?.form,
@@ -4536,10 +4866,10 @@ class SmartComponentLayoutComponent {
4536
4866
  }
4537
4867
  }
4538
4868
  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 });
4539
- 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"] }] });
4869
+ 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"] }] });
4540
4870
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
4541
4871
  type: Component,
4542
- 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"] }]
4872
+ 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"] }]
4543
4873
  }], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
4544
4874
  type: Input
4545
4875
  }], formChild: [{
@@ -4558,7 +4888,8 @@ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
4558
4888
  SmartSessionModule,
4559
4889
  SmartViewContextModule,
4560
4890
  SmartformModule,
4561
- SmartGridModule], exports: [SmartSessionModule,
4891
+ SmartGridModule,
4892
+ SmartExpandableSectionModule], exports: [SmartSessionModule,
4562
4893
  SmartViewContextModule,
4563
4894
  SmartFileUploaderComponent,
4564
4895
  SmartComponentLayoutComponent] });
@@ -4569,6 +4900,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
4569
4900
  SmartViewContextModule,
4570
4901
  SmartformModule,
4571
4902
  SmartGridModule,
4903
+ SmartExpandableSectionModule,
4572
4904
  ], SmartSessionModule,
4573
4905
  SmartViewContextModule] });
4574
4906
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
@@ -4582,6 +4914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4582
4914
  SmartViewContextModule,
4583
4915
  SmartformModule,
4584
4916
  SmartGridModule,
4917
+ SmartExpandableSectionModule,
4585
4918
  ],
4586
4919
  exports: [
4587
4920
  SmartSessionModule,
@@ -5040,5 +5373,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5040
5373
  * Generated bundle index. Do not edit.
5041
5374
  */
5042
5375
 
5043
- 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 };
5376
+ 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 };
5044
5377
  //# sourceMappingURL=smartbit4all-ng-client.mjs.map