@smartbit4all/ng-client 1.1.37 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/smart-client/api/api.module.mjs +40 -0
- package/esm2020/lib/smart-client/api/configuration.mjs +91 -0
- package/esm2020/lib/smart-client/api/index.mjs +6 -0
- package/esm2020/lib/smart-client/api/model/componentType.mjs +17 -0
- package/esm2020/lib/smart-client/api/model/componentWidgetType.mjs +15 -0
- package/esm2020/lib/smart-client/api/model/layoutDirection.mjs +16 -0
- package/esm2020/lib/smart-client/api/model/models.mjs +6 -0
- package/esm2020/lib/smart-client/api/model/smartComponentLayoutDefinition.mjs +2 -0
- package/esm2020/lib/smart-client/api/model/smartComponentWidgetDefinition.mjs +2 -0
- package/esm2020/lib/smart-client/api/param.mjs +2 -0
- package/esm2020/lib/smart-client/api/variables.mjs +9 -0
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +1 -1
- package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.component.mjs +5 -4
- package/esm2020/projects.mjs +2 -2
- package/fesm2015/smartbit4all-ng-client.mjs +209 -36
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +203 -32
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/api/api.module.d.ts +11 -0
- package/lib/smart-client/api/configuration.d.ts +104 -0
- package/lib/smart-client/api/index.d.ts +5 -0
- package/lib/smart-client/api/model/componentType.d.ts +17 -0
- package/lib/smart-client/api/model/componentWidgetType.d.ts +15 -0
- package/lib/smart-client/api/model/layoutDirection.d.ts +16 -0
- package/lib/smart-client/api/model/models.d.ts +5 -0
- package/lib/smart-client/api/model/smartComponentLayoutDefinition.d.ts +28 -0
- package/lib/smart-client/api/model/smartComponentWidgetDefinition.d.ts +18 -0
- package/lib/smart-client/api/param.d.ts +37 -0
- package/lib/smart-client/api/variables.d.ts +8 -0
- package/lib/smart-client/smart-component-api-client.d.ts +1 -1
- package/lib/smart-client/smart-component-layout/smart-component-layout.component.d.ts +2 -1
- package/package.json +1 -1
- package/projects.d.ts +1 -1
- package/smartbit4all-ng-client-1.1.38.tgz +0 -0
- package/src/lib/smart-client/api/README.md +226 -0
- package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.model.mjs +0 -13
- package/lib/smart-client/smart-component-layout/smart-component-layout.model.d.ts +0 -30
- package/smartbit4all-ng-client-1.1.37.tgz +0 -0
|
@@ -51,15 +51,15 @@ class CustomHttpParameterCodec$1 {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
const BASE_PATH$
|
|
55
|
-
const COLLECTION_FORMATS$
|
|
54
|
+
const BASE_PATH$2 = new InjectionToken('basePath');
|
|
55
|
+
const COLLECTION_FORMATS$2 = {
|
|
56
56
|
'csv': ',',
|
|
57
57
|
'tsv': ' ',
|
|
58
58
|
'ssv': ' ',
|
|
59
59
|
'pipes': '|'
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
class Configuration$
|
|
62
|
+
class Configuration$2 {
|
|
63
63
|
constructor(configurationParameters = {}) {
|
|
64
64
|
this.apiKeys = configurationParameters.apiKeys;
|
|
65
65
|
this.username = configurationParameters.username;
|
|
@@ -166,7 +166,7 @@ class SessionService {
|
|
|
166
166
|
this.httpClient = httpClient;
|
|
167
167
|
this.basePath = 'http://localhost';
|
|
168
168
|
this.defaultHeaders = new HttpHeaders();
|
|
169
|
-
this.configuration = new Configuration$
|
|
169
|
+
this.configuration = new Configuration$2();
|
|
170
170
|
if (configuration) {
|
|
171
171
|
this.configuration = configuration;
|
|
172
172
|
}
|
|
@@ -430,7 +430,7 @@ class SessionService {
|
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
433
|
+
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
434
|
SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, providedIn: 'root' });
|
|
435
435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, decorators: [{
|
|
436
436
|
type: Injectable,
|
|
@@ -442,8 +442,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
442
442
|
type: Optional
|
|
443
443
|
}, {
|
|
444
444
|
type: Inject,
|
|
445
|
-
args: [BASE_PATH$
|
|
446
|
-
}] }, { type: Configuration$
|
|
445
|
+
args: [BASE_PATH$2]
|
|
446
|
+
}] }, { type: Configuration$2, decorators: [{
|
|
447
447
|
type: Optional
|
|
448
448
|
}] }];
|
|
449
449
|
} });
|
|
@@ -929,15 +929,15 @@ class CustomHttpParameterCodec {
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
933
|
-
const COLLECTION_FORMATS = {
|
|
932
|
+
const BASE_PATH$1 = new InjectionToken('basePath');
|
|
933
|
+
const COLLECTION_FORMATS$1 = {
|
|
934
934
|
'csv': ',',
|
|
935
935
|
'tsv': ' ',
|
|
936
936
|
'ssv': ' ',
|
|
937
937
|
'pipes': '|'
|
|
938
938
|
};
|
|
939
939
|
|
|
940
|
-
class Configuration {
|
|
940
|
+
class Configuration$1 {
|
|
941
941
|
constructor(configurationParameters = {}) {
|
|
942
942
|
this.apiKeys = configurationParameters.apiKeys;
|
|
943
943
|
this.username = configurationParameters.username;
|
|
@@ -1044,7 +1044,7 @@ class ViewService {
|
|
|
1044
1044
|
this.httpClient = httpClient;
|
|
1045
1045
|
this.basePath = 'http://localhost';
|
|
1046
1046
|
this.defaultHeaders = new HttpHeaders();
|
|
1047
|
-
this.configuration = new Configuration();
|
|
1047
|
+
this.configuration = new Configuration$1();
|
|
1048
1048
|
if (configuration) {
|
|
1049
1049
|
this.configuration = configuration;
|
|
1050
1050
|
}
|
|
@@ -1834,7 +1834,7 @@ class ViewService {
|
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
else {
|
|
1837
|
-
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS['csv'])) || localVarFormParams;
|
|
1837
|
+
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$1['csv'])) || localVarFormParams;
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
1840
|
let responseType_ = 'json';
|
|
@@ -1861,7 +1861,7 @@ class ViewService {
|
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
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 });
|
|
1864
|
+
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
1865
|
ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, providedIn: 'root' });
|
|
1866
1866
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, decorators: [{
|
|
1867
1867
|
type: Injectable,
|
|
@@ -1873,8 +1873,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1873
1873
|
type: Optional
|
|
1874
1874
|
}, {
|
|
1875
1875
|
type: Inject,
|
|
1876
|
-
args: [BASE_PATH]
|
|
1877
|
-
}] }, { type: Configuration, decorators: [{
|
|
1876
|
+
args: [BASE_PATH$1]
|
|
1877
|
+
}] }, { type: Configuration$1, decorators: [{
|
|
1878
1878
|
type: Optional
|
|
1879
1879
|
}] }];
|
|
1880
1880
|
} });
|
|
@@ -2081,7 +2081,7 @@ const ViewType = {
|
|
|
2081
2081
|
Embedded: 'embedded'
|
|
2082
2082
|
};
|
|
2083
2083
|
|
|
2084
|
-
class ApiModule {
|
|
2084
|
+
class ApiModule$1 {
|
|
2085
2085
|
constructor(parentModule, http) {
|
|
2086
2086
|
if (parentModule) {
|
|
2087
2087
|
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
@@ -2093,15 +2093,15 @@ class ApiModule {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
static forRoot(configurationFactory) {
|
|
2095
2095
|
return {
|
|
2096
|
-
ngModule: ApiModule,
|
|
2097
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
2096
|
+
ngModule: ApiModule$1,
|
|
2097
|
+
providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
|
|
2098
2098
|
};
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
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: [{
|
|
2101
|
+
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 });
|
|
2102
|
+
ApiModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1 });
|
|
2103
|
+
ApiModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, providers: [], imports: [[]] });
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule$1, decorators: [{
|
|
2105
2105
|
type: NgModule,
|
|
2106
2106
|
args: [{
|
|
2107
2107
|
imports: [],
|
|
@@ -2110,7 +2110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2110
2110
|
providers: []
|
|
2111
2111
|
}]
|
|
2112
2112
|
}], ctorParameters: function () {
|
|
2113
|
-
return [{ type: ApiModule, decorators: [{
|
|
2113
|
+
return [{ type: ApiModule$1, decorators: [{
|
|
2114
2114
|
type: Optional
|
|
2115
2115
|
}, {
|
|
2116
2116
|
type: SkipSelf
|
|
@@ -4456,31 +4456,204 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4456
4456
|
type: Input
|
|
4457
4457
|
}] } });
|
|
4458
4458
|
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4459
|
+
/**
|
|
4460
|
+
* Form layout definition
|
|
4461
|
+
* Contains form layout definition objects.
|
|
4462
|
+
*
|
|
4463
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4464
|
+
* Contact: info@it4all.hu
|
|
4465
|
+
*
|
|
4466
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4467
|
+
* https://openapi-generator.tech
|
|
4468
|
+
* Do not edit the class manually.
|
|
4469
|
+
*/
|
|
4463
4470
|
const ComponentType = {
|
|
4464
4471
|
Container: 'container',
|
|
4465
4472
|
Form: 'form',
|
|
4466
|
-
Widget: 'widget'
|
|
4473
|
+
Widget: 'widget'
|
|
4467
4474
|
};
|
|
4475
|
+
|
|
4476
|
+
/**
|
|
4477
|
+
* Form layout definition
|
|
4478
|
+
* Contains form layout definition objects.
|
|
4479
|
+
*
|
|
4480
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4481
|
+
* Contact: info@it4all.hu
|
|
4482
|
+
*
|
|
4483
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4484
|
+
* https://openapi-generator.tech
|
|
4485
|
+
* Do not edit the class manually.
|
|
4486
|
+
*/
|
|
4468
4487
|
const ComponentWidgetType = {
|
|
4469
|
-
Grid: 'grid'
|
|
4488
|
+
Grid: 'grid'
|
|
4489
|
+
};
|
|
4490
|
+
|
|
4491
|
+
/**
|
|
4492
|
+
* Form layout definition
|
|
4493
|
+
* Contains form layout definition objects.
|
|
4494
|
+
*
|
|
4495
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4496
|
+
* Contact: info@it4all.hu
|
|
4497
|
+
*
|
|
4498
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4499
|
+
* https://openapi-generator.tech
|
|
4500
|
+
* Do not edit the class manually.
|
|
4501
|
+
*/
|
|
4502
|
+
const LayoutDirection = {
|
|
4503
|
+
Horizontal: 'horizontal',
|
|
4504
|
+
Vertical: 'vertical'
|
|
4470
4505
|
};
|
|
4471
4506
|
|
|
4507
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
4508
|
+
const COLLECTION_FORMATS = {
|
|
4509
|
+
'csv': ',',
|
|
4510
|
+
'tsv': ' ',
|
|
4511
|
+
'ssv': ' ',
|
|
4512
|
+
'pipes': '|'
|
|
4513
|
+
};
|
|
4514
|
+
|
|
4515
|
+
class Configuration {
|
|
4516
|
+
constructor(configurationParameters = {}) {
|
|
4517
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
4518
|
+
this.username = configurationParameters.username;
|
|
4519
|
+
this.password = configurationParameters.password;
|
|
4520
|
+
this.accessToken = configurationParameters.accessToken;
|
|
4521
|
+
this.basePath = configurationParameters.basePath;
|
|
4522
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
4523
|
+
this.encoder = configurationParameters.encoder;
|
|
4524
|
+
if (configurationParameters.encodeParam) {
|
|
4525
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
4526
|
+
}
|
|
4527
|
+
else {
|
|
4528
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
4529
|
+
}
|
|
4530
|
+
if (configurationParameters.credentials) {
|
|
4531
|
+
this.credentials = configurationParameters.credentials;
|
|
4532
|
+
}
|
|
4533
|
+
else {
|
|
4534
|
+
this.credentials = {};
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
/**
|
|
4538
|
+
* Select the correct content-type to use for a request.
|
|
4539
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
4540
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
4541
|
+
* @param contentTypes - 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
|
+
selectHeaderContentType(contentTypes) {
|
|
4545
|
+
if (contentTypes.length === 0) {
|
|
4546
|
+
return undefined;
|
|
4547
|
+
}
|
|
4548
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
4549
|
+
if (type === undefined) {
|
|
4550
|
+
return contentTypes[0];
|
|
4551
|
+
}
|
|
4552
|
+
return type;
|
|
4553
|
+
}
|
|
4554
|
+
/**
|
|
4555
|
+
* Select the correct accept content-type to use for a request.
|
|
4556
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
4557
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
4558
|
+
* @param accepts - the array of content types that are available for selection.
|
|
4559
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
4560
|
+
*/
|
|
4561
|
+
selectHeaderAccept(accepts) {
|
|
4562
|
+
if (accepts.length === 0) {
|
|
4563
|
+
return undefined;
|
|
4564
|
+
}
|
|
4565
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
4566
|
+
if (type === undefined) {
|
|
4567
|
+
return accepts[0];
|
|
4568
|
+
}
|
|
4569
|
+
return type;
|
|
4570
|
+
}
|
|
4571
|
+
/**
|
|
4572
|
+
* Check if the given MIME is a JSON MIME.
|
|
4573
|
+
* JSON MIME examples:
|
|
4574
|
+
* application/json
|
|
4575
|
+
* application/json; charset=UTF8
|
|
4576
|
+
* APPLICATION/JSON
|
|
4577
|
+
* application/vnd.company+json
|
|
4578
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
4579
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
4580
|
+
*/
|
|
4581
|
+
isJsonMime(mime) {
|
|
4582
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
4583
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
4584
|
+
}
|
|
4585
|
+
lookupCredential(key) {
|
|
4586
|
+
const value = this.credentials[key];
|
|
4587
|
+
return typeof value === 'function'
|
|
4588
|
+
? value()
|
|
4589
|
+
: value;
|
|
4590
|
+
}
|
|
4591
|
+
defaultEncodeParam(param) {
|
|
4592
|
+
// This implementation exists as fallback for missing configuration
|
|
4593
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
4594
|
+
// It only works for the 'simple' parameter style.
|
|
4595
|
+
// Date-handling only works for the 'date-time' format.
|
|
4596
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
4597
|
+
//
|
|
4598
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
4599
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
4600
|
+
? param.value.toISOString()
|
|
4601
|
+
: param.value;
|
|
4602
|
+
return encodeURIComponent(String(value));
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
|
|
4606
|
+
class ApiModule {
|
|
4607
|
+
constructor(parentModule, http) {
|
|
4608
|
+
if (parentModule) {
|
|
4609
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
4610
|
+
}
|
|
4611
|
+
if (!http) {
|
|
4612
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
4613
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
4616
|
+
static forRoot(configurationFactory) {
|
|
4617
|
+
return {
|
|
4618
|
+
ngModule: ApiModule,
|
|
4619
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
4620
|
+
};
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
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 });
|
|
4624
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
|
|
4625
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
|
|
4626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
|
|
4627
|
+
type: NgModule,
|
|
4628
|
+
args: [{
|
|
4629
|
+
imports: [],
|
|
4630
|
+
declarations: [],
|
|
4631
|
+
exports: [],
|
|
4632
|
+
providers: []
|
|
4633
|
+
}]
|
|
4634
|
+
}], ctorParameters: function () {
|
|
4635
|
+
return [{ type: ApiModule, decorators: [{
|
|
4636
|
+
type: Optional
|
|
4637
|
+
}, {
|
|
4638
|
+
type: SkipSelf
|
|
4639
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
4640
|
+
type: Optional
|
|
4641
|
+
}] }];
|
|
4642
|
+
} });
|
|
4643
|
+
|
|
4472
4644
|
class SmartComponentLayoutComponent {
|
|
4473
4645
|
constructor(layoutService) {
|
|
4474
4646
|
this.layoutService = layoutService;
|
|
4475
4647
|
}
|
|
4476
4648
|
ngOnChanges(changes) {
|
|
4477
|
-
var _a, _b, _c;
|
|
4649
|
+
var _a, _b, _c, _d;
|
|
4478
4650
|
this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
|
|
4479
|
-
|
|
4651
|
+
this.uuid = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.parentComponent.uuid;
|
|
4652
|
+
if (((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.type) === ComponentType.Form) {
|
|
4480
4653
|
this.constructForm();
|
|
4481
4654
|
}
|
|
4482
|
-
else if (((
|
|
4483
|
-
if (((
|
|
4655
|
+
else if (((_c = this.smartComponentLayout) === null || _c === void 0 ? void 0 : _c.type) === ComponentType.Widget) {
|
|
4656
|
+
if (((_d = this.smartComponentLayout.widget) === null || _d === void 0 ? void 0 : _d.type) === ComponentWidgetType.Grid) {
|
|
4484
4657
|
this.constructGrid();
|
|
4485
4658
|
}
|
|
4486
4659
|
}
|
|
@@ -4529,10 +4702,10 @@ class SmartComponentLayoutComponent {
|
|
|
4529
4702
|
}
|
|
4530
4703
|
}
|
|
4531
4704
|
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
|
|
4705
|
+
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 #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></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"] }] });
|
|
4533
4706
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
4534
4707
|
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
|
|
4708
|
+
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 #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
|
|
4536
4709
|
}], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
4537
4710
|
type: Input
|
|
4538
4711
|
}], formChild: [{
|
|
@@ -5046,5 +5219,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5046
5219
|
* Generated bundle index. Do not edit.
|
|
5047
5220
|
*/
|
|
5048
5221
|
|
|
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 };
|
|
5222
|
+
export { 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
5223
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|