@smartbit4all/ng-client 1.1.45 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +1 -34
- package/esm2020/lib/smart-ng-client.module.mjs +6 -24
- package/esm2020/projects.mjs +1 -3
- package/fesm2015/smartbit4all-ng-client.mjs +45 -551
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +45 -541
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +0 -4
- package/lib/smart-ng-client.module.d.ts +7 -10
- package/package.json +1 -4
- package/projects.d.ts +0 -2
- package/smartbit4all-ng-client-1.2.0.tgz +0 -0
- package/esm2020/lib/smart-client/api/api/api.mjs +0 -4
- package/esm2020/lib/smart-client/api/api/default.service.mjs +0 -133
- package/esm2020/lib/smart-client/api/api.module.mjs +0 -40
- package/esm2020/lib/smart-client/api/configuration.mjs +0 -91
- package/esm2020/lib/smart-client/api/encoder.mjs +0 -19
- package/esm2020/lib/smart-client/api/index.mjs +0 -7
- package/esm2020/lib/smart-client/api/model/componentType.mjs +0 -17
- package/esm2020/lib/smart-client/api/model/componentWidgetType.mjs +0 -17
- package/esm2020/lib/smart-client/api/model/layoutDirection.mjs +0 -16
- package/esm2020/lib/smart-client/api/model/models.mjs +0 -6
- package/esm2020/lib/smart-client/api/model/smartComponentLayoutDefinition.mjs +0 -2
- package/esm2020/lib/smart-client/api/model/smartComponentWidgetDefinition.mjs +0 -2
- package/esm2020/lib/smart-client/api/param.mjs +0 -2
- package/esm2020/lib/smart-client/api/variables.mjs +0 -9
- package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.component.mjs +0 -126
- package/lib/smart-client/api/api/api.d.ts +0 -3
- package/lib/smart-client/api/api/default.service.d.ts +0 -33
- package/lib/smart-client/api/api.module.d.ts +0 -11
- package/lib/smart-client/api/configuration.d.ts +0 -104
- package/lib/smart-client/api/encoder.d.ts +0 -11
- package/lib/smart-client/api/index.d.ts +0 -6
- package/lib/smart-client/api/model/componentType.d.ts +0 -17
- package/lib/smart-client/api/model/componentWidgetType.d.ts +0 -17
- package/lib/smart-client/api/model/layoutDirection.d.ts +0 -16
- package/lib/smart-client/api/model/models.d.ts +0 -5
- package/lib/smart-client/api/model/smartComponentLayoutDefinition.d.ts +0 -29
- package/lib/smart-client/api/model/smartComponentWidgetDefinition.d.ts +0 -20
- package/lib/smart-client/api/param.d.ts +0 -37
- package/lib/smart-client/api/variables.d.ts +0 -8
- package/lib/smart-client/smart-component-layout/smart-component-layout.component.d.ts +0 -32
- package/smartbit4all-ng-client-1.1.45.tgz +0 -0
- package/src/lib/smart-client/api/README.md +0 -226
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA,
|
|
2
|
+
import { InjectionToken, Injectable, Optional, Inject, PLATFORM_ID, NgModule, SkipSelf, Component, Pipe, CUSTOM_ELEMENTS_SCHEMA, ViewChild, Input } from '@angular/core';
|
|
3
3
|
import { __awaiter, __decorate, __param } from 'tslib';
|
|
4
4
|
import { Subject, takeUntil, map, catchError, throwError, from } from 'rxjs';
|
|
5
5
|
import { SmartSubject } from '@smartbit4all/subject';
|
|
@@ -16,14 +16,9 @@ import * as i4$1 from '@smartbit4all/dialog';
|
|
|
16
16
|
import { SmartdialogService, SmartdialogModule } from '@smartbit4all/dialog';
|
|
17
17
|
import { MatCommonModule } from '@angular/material/core';
|
|
18
18
|
import { BrowserModule } from '@angular/platform-browser';
|
|
19
|
-
import * as i2$2 from '@smartbit4all/expandable-section';
|
|
20
19
|
import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
|
|
21
|
-
import * as
|
|
22
|
-
import {
|
|
23
|
-
import * as i3$2 from '@smartbit4all/grid';
|
|
24
|
-
import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
|
|
25
|
-
import * as i4$4 from '@smartbit4all/tree';
|
|
26
|
-
import { SmarttreeModule, SmarttreeGenericService } from '@smartbit4all/tree';
|
|
20
|
+
import * as i5 from '@smartbit4all/form';
|
|
21
|
+
import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
|
|
27
22
|
import * as i4$3 from '@angular/material/expansion';
|
|
28
23
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
29
24
|
import * as i4$2 from '@smartbit4all/icon';
|
|
@@ -31,15 +26,17 @@ import { SmartIconModule } from '@smartbit4all/icon';
|
|
|
31
26
|
import * as i1$1 from '@angular/material/dialog';
|
|
32
27
|
import * as i2$1 from '@angular/router';
|
|
33
28
|
import { catchError as catchError$1, switchMap } from 'rxjs/operators';
|
|
34
|
-
import * as i4$
|
|
29
|
+
import * as i4$4 from '@angular/material/snack-bar';
|
|
35
30
|
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
36
31
|
import { Validators } from '@angular/forms';
|
|
32
|
+
import { SmartGridComponent } from '@smartbit4all/grid';
|
|
33
|
+
import { SmarttreeGenericService } from '@smartbit4all/tree';
|
|
37
34
|
|
|
38
35
|
/**
|
|
39
36
|
* Custom HttpParameterCodec
|
|
40
37
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
41
38
|
*/
|
|
42
|
-
class CustomHttpParameterCodec$
|
|
39
|
+
class CustomHttpParameterCodec$1 {
|
|
43
40
|
encodeKey(k) {
|
|
44
41
|
return encodeURIComponent(k);
|
|
45
42
|
}
|
|
@@ -54,15 +51,15 @@ class CustomHttpParameterCodec$2 {
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
const BASE_PATH$
|
|
58
|
-
const COLLECTION_FORMATS$
|
|
54
|
+
const BASE_PATH$1 = new InjectionToken('basePath');
|
|
55
|
+
const COLLECTION_FORMATS$1 = {
|
|
59
56
|
'csv': ',',
|
|
60
57
|
'tsv': ' ',
|
|
61
58
|
'ssv': ' ',
|
|
62
59
|
'pipes': '|'
|
|
63
60
|
};
|
|
64
61
|
|
|
65
|
-
class Configuration$
|
|
62
|
+
class Configuration$1 {
|
|
66
63
|
constructor(configurationParameters = {}) {
|
|
67
64
|
this.apiKeys = configurationParameters.apiKeys;
|
|
68
65
|
this.username = configurationParameters.username;
|
|
@@ -169,7 +166,7 @@ class SessionService {
|
|
|
169
166
|
this.httpClient = httpClient;
|
|
170
167
|
this.basePath = 'http://localhost';
|
|
171
168
|
this.defaultHeaders = new HttpHeaders();
|
|
172
|
-
this.configuration = new Configuration$
|
|
169
|
+
this.configuration = new Configuration$1();
|
|
173
170
|
if (configuration) {
|
|
174
171
|
this.configuration = configuration;
|
|
175
172
|
}
|
|
@@ -182,7 +179,7 @@ class SessionService {
|
|
|
182
179
|
}
|
|
183
180
|
this.configuration.basePath = basePath;
|
|
184
181
|
}
|
|
185
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
182
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
|
|
186
183
|
}
|
|
187
184
|
// @ts-ignore
|
|
188
185
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -433,7 +430,7 @@ class SessionService {
|
|
|
433
430
|
});
|
|
434
431
|
}
|
|
435
432
|
}
|
|
436
|
-
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
433
|
+
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$1, optional: true }, { token: Configuration$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
437
434
|
SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, providedIn: 'root' });
|
|
438
435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SessionService, decorators: [{
|
|
439
436
|
type: Injectable,
|
|
@@ -445,8 +442,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
445
442
|
type: Optional
|
|
446
443
|
}, {
|
|
447
444
|
type: Inject,
|
|
448
|
-
args: [BASE_PATH$
|
|
449
|
-
}] }, { type: Configuration$
|
|
445
|
+
args: [BASE_PATH$1]
|
|
446
|
+
}] }, { type: Configuration$1, decorators: [{
|
|
450
447
|
type: Optional
|
|
451
448
|
}] }];
|
|
452
449
|
} });
|
|
@@ -917,7 +914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
917
914
|
* Custom HttpParameterCodec
|
|
918
915
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
919
916
|
*/
|
|
920
|
-
class CustomHttpParameterCodec
|
|
917
|
+
class CustomHttpParameterCodec {
|
|
921
918
|
encodeKey(k) {
|
|
922
919
|
return encodeURIComponent(k);
|
|
923
920
|
}
|
|
@@ -932,15 +929,15 @@ class CustomHttpParameterCodec$1 {
|
|
|
932
929
|
}
|
|
933
930
|
}
|
|
934
931
|
|
|
935
|
-
const BASE_PATH
|
|
936
|
-
const COLLECTION_FORMATS
|
|
932
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
933
|
+
const COLLECTION_FORMATS = {
|
|
937
934
|
'csv': ',',
|
|
938
935
|
'tsv': ' ',
|
|
939
936
|
'ssv': ' ',
|
|
940
937
|
'pipes': '|'
|
|
941
938
|
};
|
|
942
939
|
|
|
943
|
-
class Configuration
|
|
940
|
+
class Configuration {
|
|
944
941
|
constructor(configurationParameters = {}) {
|
|
945
942
|
this.apiKeys = configurationParameters.apiKeys;
|
|
946
943
|
this.username = configurationParameters.username;
|
|
@@ -1047,7 +1044,7 @@ class ViewService {
|
|
|
1047
1044
|
this.httpClient = httpClient;
|
|
1048
1045
|
this.basePath = 'http://localhost';
|
|
1049
1046
|
this.defaultHeaders = new HttpHeaders();
|
|
1050
|
-
this.configuration = new Configuration
|
|
1047
|
+
this.configuration = new Configuration();
|
|
1051
1048
|
if (configuration) {
|
|
1052
1049
|
this.configuration = configuration;
|
|
1053
1050
|
}
|
|
@@ -1060,7 +1057,7 @@ class ViewService {
|
|
|
1060
1057
|
}
|
|
1061
1058
|
this.configuration.basePath = basePath;
|
|
1062
1059
|
}
|
|
1063
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec
|
|
1060
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1064
1061
|
}
|
|
1065
1062
|
/**
|
|
1066
1063
|
* @param consumes string[] mime-types
|
|
@@ -1837,7 +1834,7 @@ class ViewService {
|
|
|
1837
1834
|
});
|
|
1838
1835
|
}
|
|
1839
1836
|
else {
|
|
1840
|
-
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS
|
|
1837
|
+
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS['csv'])) || localVarFormParams;
|
|
1841
1838
|
}
|
|
1842
1839
|
}
|
|
1843
1840
|
let responseType_ = 'json';
|
|
@@ -1864,7 +1861,7 @@ class ViewService {
|
|
|
1864
1861
|
});
|
|
1865
1862
|
}
|
|
1866
1863
|
}
|
|
1867
|
-
ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH
|
|
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 });
|
|
1868
1865
|
ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, providedIn: 'root' });
|
|
1869
1866
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ViewService, decorators: [{
|
|
1870
1867
|
type: Injectable,
|
|
@@ -1876,13 +1873,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1876
1873
|
type: Optional
|
|
1877
1874
|
}, {
|
|
1878
1875
|
type: Inject,
|
|
1879
|
-
args: [BASE_PATH
|
|
1880
|
-
}] }, { type: Configuration
|
|
1876
|
+
args: [BASE_PATH]
|
|
1877
|
+
}] }, { type: Configuration, decorators: [{
|
|
1881
1878
|
type: Optional
|
|
1882
1879
|
}] }];
|
|
1883
1880
|
} });
|
|
1884
1881
|
|
|
1885
|
-
const APIS
|
|
1882
|
+
const APIS = [ViewService];
|
|
1886
1883
|
|
|
1887
1884
|
/**
|
|
1888
1885
|
* View API
|
|
@@ -2084,7 +2081,7 @@ const ViewType = {
|
|
|
2084
2081
|
Embedded: 'embedded'
|
|
2085
2082
|
};
|
|
2086
2083
|
|
|
2087
|
-
class ApiModule
|
|
2084
|
+
class ApiModule {
|
|
2088
2085
|
constructor(parentModule, http) {
|
|
2089
2086
|
if (parentModule) {
|
|
2090
2087
|
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
@@ -2096,15 +2093,15 @@ class ApiModule$1 {
|
|
|
2096
2093
|
}
|
|
2097
2094
|
static forRoot(configurationFactory) {
|
|
2098
2095
|
return {
|
|
2099
|
-
ngModule: ApiModule
|
|
2100
|
-
providers: [{ provide: Configuration
|
|
2096
|
+
ngModule: ApiModule,
|
|
2097
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
2101
2098
|
};
|
|
2102
2099
|
}
|
|
2103
2100
|
}
|
|
2104
|
-
ApiModule
|
|
2105
|
-
ApiModule
|
|
2106
|
-
ApiModule
|
|
2107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule
|
|
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: [{
|
|
2108
2105
|
type: NgModule,
|
|
2109
2106
|
args: [{
|
|
2110
2107
|
imports: [],
|
|
@@ -2113,7 +2110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2113
2110
|
providers: []
|
|
2114
2111
|
}]
|
|
2115
2112
|
}], ctorParameters: function () {
|
|
2116
|
-
return [{ type: ApiModule
|
|
2113
|
+
return [{ type: ApiModule, decorators: [{
|
|
2117
2114
|
type: Optional
|
|
2118
2115
|
}, {
|
|
2119
2116
|
type: SkipSelf
|
|
@@ -3389,460 +3386,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3389
3386
|
}]
|
|
3390
3387
|
}] });
|
|
3391
3388
|
|
|
3392
|
-
/**
|
|
3393
|
-
* Custom HttpParameterCodec
|
|
3394
|
-
* Workaround for https://github.com/angular/angular/issues/18261
|
|
3395
|
-
*/
|
|
3396
|
-
class CustomHttpParameterCodec {
|
|
3397
|
-
encodeKey(k) {
|
|
3398
|
-
return encodeURIComponent(k);
|
|
3399
|
-
}
|
|
3400
|
-
encodeValue(v) {
|
|
3401
|
-
return encodeURIComponent(v);
|
|
3402
|
-
}
|
|
3403
|
-
decodeKey(k) {
|
|
3404
|
-
return decodeURIComponent(k);
|
|
3405
|
-
}
|
|
3406
|
-
decodeValue(v) {
|
|
3407
|
-
return decodeURIComponent(v);
|
|
3408
|
-
}
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
3412
|
-
const COLLECTION_FORMATS = {
|
|
3413
|
-
'csv': ',',
|
|
3414
|
-
'tsv': ' ',
|
|
3415
|
-
'ssv': ' ',
|
|
3416
|
-
'pipes': '|'
|
|
3417
|
-
};
|
|
3418
|
-
|
|
3419
|
-
class Configuration {
|
|
3420
|
-
constructor(configurationParameters = {}) {
|
|
3421
|
-
this.apiKeys = configurationParameters.apiKeys;
|
|
3422
|
-
this.username = configurationParameters.username;
|
|
3423
|
-
this.password = configurationParameters.password;
|
|
3424
|
-
this.accessToken = configurationParameters.accessToken;
|
|
3425
|
-
this.basePath = configurationParameters.basePath;
|
|
3426
|
-
this.withCredentials = configurationParameters.withCredentials;
|
|
3427
|
-
this.encoder = configurationParameters.encoder;
|
|
3428
|
-
if (configurationParameters.encodeParam) {
|
|
3429
|
-
this.encodeParam = configurationParameters.encodeParam;
|
|
3430
|
-
}
|
|
3431
|
-
else {
|
|
3432
|
-
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
3433
|
-
}
|
|
3434
|
-
if (configurationParameters.credentials) {
|
|
3435
|
-
this.credentials = configurationParameters.credentials;
|
|
3436
|
-
}
|
|
3437
|
-
else {
|
|
3438
|
-
this.credentials = {};
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
/**
|
|
3442
|
-
* Select the correct content-type to use for a request.
|
|
3443
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
3444
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
3445
|
-
* @param contentTypes - the array of content types that are available for selection
|
|
3446
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
3447
|
-
*/
|
|
3448
|
-
selectHeaderContentType(contentTypes) {
|
|
3449
|
-
if (contentTypes.length === 0) {
|
|
3450
|
-
return undefined;
|
|
3451
|
-
}
|
|
3452
|
-
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
3453
|
-
if (type === undefined) {
|
|
3454
|
-
return contentTypes[0];
|
|
3455
|
-
}
|
|
3456
|
-
return type;
|
|
3457
|
-
}
|
|
3458
|
-
/**
|
|
3459
|
-
* Select the correct accept content-type to use for a request.
|
|
3460
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
3461
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
3462
|
-
* @param accepts - the array of content types that are available for selection.
|
|
3463
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
3464
|
-
*/
|
|
3465
|
-
selectHeaderAccept(accepts) {
|
|
3466
|
-
if (accepts.length === 0) {
|
|
3467
|
-
return undefined;
|
|
3468
|
-
}
|
|
3469
|
-
const type = accepts.find((x) => this.isJsonMime(x));
|
|
3470
|
-
if (type === undefined) {
|
|
3471
|
-
return accepts[0];
|
|
3472
|
-
}
|
|
3473
|
-
return type;
|
|
3474
|
-
}
|
|
3475
|
-
/**
|
|
3476
|
-
* Check if the given MIME is a JSON MIME.
|
|
3477
|
-
* JSON MIME examples:
|
|
3478
|
-
* application/json
|
|
3479
|
-
* application/json; charset=UTF8
|
|
3480
|
-
* APPLICATION/JSON
|
|
3481
|
-
* application/vnd.company+json
|
|
3482
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
3483
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
3484
|
-
*/
|
|
3485
|
-
isJsonMime(mime) {
|
|
3486
|
-
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
3487
|
-
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
3488
|
-
}
|
|
3489
|
-
lookupCredential(key) {
|
|
3490
|
-
const value = this.credentials[key];
|
|
3491
|
-
return typeof value === 'function'
|
|
3492
|
-
? value()
|
|
3493
|
-
: value;
|
|
3494
|
-
}
|
|
3495
|
-
defaultEncodeParam(param) {
|
|
3496
|
-
// This implementation exists as fallback for missing configuration
|
|
3497
|
-
// and for backwards compatibility to older typescript-angular generator versions.
|
|
3498
|
-
// It only works for the 'simple' parameter style.
|
|
3499
|
-
// Date-handling only works for the 'date-time' format.
|
|
3500
|
-
// All other styles and Date-formats are probably handled incorrectly.
|
|
3501
|
-
//
|
|
3502
|
-
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
3503
|
-
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
3504
|
-
? param.value.toISOString()
|
|
3505
|
-
: param.value;
|
|
3506
|
-
return encodeURIComponent(String(value));
|
|
3507
|
-
}
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
|
-
/**
|
|
3511
|
-
* Form layout definition
|
|
3512
|
-
* Contains form layout definition objects.
|
|
3513
|
-
*
|
|
3514
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3515
|
-
* Contact: info@it4all.hu
|
|
3516
|
-
*
|
|
3517
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3518
|
-
* https://openapi-generator.tech
|
|
3519
|
-
* Do not edit the class manually.
|
|
3520
|
-
*/
|
|
3521
|
-
class DefaultService {
|
|
3522
|
-
constructor(httpClient, basePath, configuration) {
|
|
3523
|
-
this.httpClient = httpClient;
|
|
3524
|
-
this.basePath = 'http://localhost';
|
|
3525
|
-
this.defaultHeaders = new HttpHeaders();
|
|
3526
|
-
this.configuration = new Configuration();
|
|
3527
|
-
if (configuration) {
|
|
3528
|
-
this.configuration = configuration;
|
|
3529
|
-
}
|
|
3530
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
3531
|
-
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
3532
|
-
basePath = basePath[0];
|
|
3533
|
-
}
|
|
3534
|
-
if (typeof basePath !== 'string') {
|
|
3535
|
-
basePath = this.basePath;
|
|
3536
|
-
}
|
|
3537
|
-
this.configuration.basePath = basePath;
|
|
3538
|
-
}
|
|
3539
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
3540
|
-
}
|
|
3541
|
-
// @ts-ignore
|
|
3542
|
-
addToHttpParams(httpParams, value, key) {
|
|
3543
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
3544
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
3545
|
-
}
|
|
3546
|
-
else {
|
|
3547
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
3548
|
-
}
|
|
3549
|
-
return httpParams;
|
|
3550
|
-
}
|
|
3551
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
3552
|
-
if (value == null) {
|
|
3553
|
-
return httpParams;
|
|
3554
|
-
}
|
|
3555
|
-
if (typeof value === "object") {
|
|
3556
|
-
if (Array.isArray(value)) {
|
|
3557
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
3558
|
-
}
|
|
3559
|
-
else if (value instanceof Date) {
|
|
3560
|
-
if (key != null) {
|
|
3561
|
-
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
3562
|
-
}
|
|
3563
|
-
else {
|
|
3564
|
-
throw Error("key may not be null if value is Date");
|
|
3565
|
-
}
|
|
3566
|
-
}
|
|
3567
|
-
else {
|
|
3568
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
else if (key != null) {
|
|
3572
|
-
httpParams = httpParams.append(key, value);
|
|
3573
|
-
}
|
|
3574
|
-
else {
|
|
3575
|
-
throw Error("key may not be null if value is not object or array");
|
|
3576
|
-
}
|
|
3577
|
-
return httpParams;
|
|
3578
|
-
}
|
|
3579
|
-
nopePost(observe = 'body', reportProgress = false, options) {
|
|
3580
|
-
let localVarHeaders = this.defaultHeaders;
|
|
3581
|
-
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3582
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3583
|
-
// to determine the Accept header
|
|
3584
|
-
const httpHeaderAccepts = [];
|
|
3585
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3586
|
-
}
|
|
3587
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3588
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3589
|
-
}
|
|
3590
|
-
let localVarHttpContext = options && options.context;
|
|
3591
|
-
if (localVarHttpContext === undefined) {
|
|
3592
|
-
localVarHttpContext = new HttpContext();
|
|
3593
|
-
}
|
|
3594
|
-
let responseType_ = 'json';
|
|
3595
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
3596
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3597
|
-
responseType_ = 'text';
|
|
3598
|
-
}
|
|
3599
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3600
|
-
responseType_ = 'json';
|
|
3601
|
-
}
|
|
3602
|
-
else {
|
|
3603
|
-
responseType_ = 'blob';
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
let localVarPath = `/nope`;
|
|
3607
|
-
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
3608
|
-
context: localVarHttpContext,
|
|
3609
|
-
responseType: responseType_,
|
|
3610
|
-
withCredentials: this.configuration.withCredentials,
|
|
3611
|
-
headers: localVarHeaders,
|
|
3612
|
-
observe: observe,
|
|
3613
|
-
reportProgress: reportProgress
|
|
3614
|
-
});
|
|
3615
|
-
}
|
|
3616
|
-
}
|
|
3617
|
-
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 });
|
|
3618
|
-
DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
|
|
3619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
|
|
3620
|
-
type: Injectable,
|
|
3621
|
-
args: [{
|
|
3622
|
-
providedIn: 'root'
|
|
3623
|
-
}]
|
|
3624
|
-
}], ctorParameters: function () {
|
|
3625
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3626
|
-
type: Optional
|
|
3627
|
-
}, {
|
|
3628
|
-
type: Inject,
|
|
3629
|
-
args: [BASE_PATH]
|
|
3630
|
-
}] }, { type: Configuration, decorators: [{
|
|
3631
|
-
type: Optional
|
|
3632
|
-
}] }];
|
|
3633
|
-
} });
|
|
3634
|
-
|
|
3635
|
-
const APIS = [DefaultService];
|
|
3636
|
-
|
|
3637
|
-
/**
|
|
3638
|
-
* Form layout definition
|
|
3639
|
-
* Contains form layout definition objects.
|
|
3640
|
-
*
|
|
3641
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3642
|
-
* Contact: info@it4all.hu
|
|
3643
|
-
*
|
|
3644
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3645
|
-
* https://openapi-generator.tech
|
|
3646
|
-
* Do not edit the class manually.
|
|
3647
|
-
*/
|
|
3648
|
-
const ComponentType = {
|
|
3649
|
-
Container: 'container',
|
|
3650
|
-
Form: 'form',
|
|
3651
|
-
Widget: 'widget'
|
|
3652
|
-
};
|
|
3653
|
-
|
|
3654
|
-
/**
|
|
3655
|
-
* Form layout definition
|
|
3656
|
-
* Contains form layout definition objects.
|
|
3657
|
-
*
|
|
3658
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3659
|
-
* Contact: info@it4all.hu
|
|
3660
|
-
*
|
|
3661
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3662
|
-
* https://openapi-generator.tech
|
|
3663
|
-
* Do not edit the class manually.
|
|
3664
|
-
*/
|
|
3665
|
-
const ComponentWidgetType = {
|
|
3666
|
-
Grid: 'grid',
|
|
3667
|
-
Filter: 'filter',
|
|
3668
|
-
Tree: 'tree'
|
|
3669
|
-
};
|
|
3670
|
-
|
|
3671
|
-
/**
|
|
3672
|
-
* Form layout definition
|
|
3673
|
-
* Contains form layout definition objects.
|
|
3674
|
-
*
|
|
3675
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3676
|
-
* Contact: info@it4all.hu
|
|
3677
|
-
*
|
|
3678
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3679
|
-
* https://openapi-generator.tech
|
|
3680
|
-
* Do not edit the class manually.
|
|
3681
|
-
*/
|
|
3682
|
-
const LayoutDirection = {
|
|
3683
|
-
Horizontal: 'horizontal',
|
|
3684
|
-
Vertical: 'vertical'
|
|
3685
|
-
};
|
|
3686
|
-
|
|
3687
|
-
class ApiModule {
|
|
3688
|
-
constructor(parentModule, http) {
|
|
3689
|
-
if (parentModule) {
|
|
3690
|
-
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
3691
|
-
}
|
|
3692
|
-
if (!http) {
|
|
3693
|
-
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
3694
|
-
'See also https://github.com/angular/angular/issues/20575');
|
|
3695
|
-
}
|
|
3696
|
-
}
|
|
3697
|
-
static forRoot(configurationFactory) {
|
|
3698
|
-
return {
|
|
3699
|
-
ngModule: ApiModule,
|
|
3700
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
3701
|
-
};
|
|
3702
|
-
}
|
|
3703
|
-
}
|
|
3704
|
-
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 });
|
|
3705
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule });
|
|
3706
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, providers: [], imports: [[]] });
|
|
3707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ApiModule, decorators: [{
|
|
3708
|
-
type: NgModule,
|
|
3709
|
-
args: [{
|
|
3710
|
-
imports: [],
|
|
3711
|
-
declarations: [],
|
|
3712
|
-
exports: [],
|
|
3713
|
-
providers: []
|
|
3714
|
-
}]
|
|
3715
|
-
}], ctorParameters: function () {
|
|
3716
|
-
return [{ type: ApiModule, decorators: [{
|
|
3717
|
-
type: Optional
|
|
3718
|
-
}, {
|
|
3719
|
-
type: SkipSelf
|
|
3720
|
-
}] }, { type: i1.HttpClient, decorators: [{
|
|
3721
|
-
type: Optional
|
|
3722
|
-
}] }];
|
|
3723
|
-
} });
|
|
3724
|
-
|
|
3725
|
-
// import { SmartFilter, SmartFilterComponent } from '@smartbit4all/filter';
|
|
3726
|
-
class SmartComponentLayoutComponent {
|
|
3727
|
-
constructor(layoutService) {
|
|
3728
|
-
this.layoutService = layoutService;
|
|
3729
|
-
}
|
|
3730
|
-
ngOnInit() {
|
|
3731
|
-
if (this.smartComponentLayout) {
|
|
3732
|
-
this.setUp();
|
|
3733
|
-
}
|
|
3734
|
-
}
|
|
3735
|
-
ngOnChanges(changes) {
|
|
3736
|
-
this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
|
|
3737
|
-
if (this.smartComponentLayout) {
|
|
3738
|
-
this.setUp();
|
|
3739
|
-
}
|
|
3740
|
-
}
|
|
3741
|
-
setUp() {
|
|
3742
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3743
|
-
this.parent = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.parentComponent;
|
|
3744
|
-
this.uuid = this.parent.uuid;
|
|
3745
|
-
this.treeService = this.parent.smartTreeService;
|
|
3746
|
-
if ((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.expandable) {
|
|
3747
|
-
this.constructExpandableSection();
|
|
3748
|
-
}
|
|
3749
|
-
else if (((_c = this.smartComponentLayout) === null || _c === void 0 ? void 0 : _c.type) === ComponentType.Form) {
|
|
3750
|
-
this.constructForm();
|
|
3751
|
-
}
|
|
3752
|
-
else if (((_d = this.smartComponentLayout) === null || _d === void 0 ? void 0 : _d.type) === ComponentType.Widget) {
|
|
3753
|
-
if (((_e = this.smartComponentLayout.widget) === null || _e === void 0 ? void 0 : _e.type) === ComponentWidgetType.Grid) {
|
|
3754
|
-
this.constructGrid();
|
|
3755
|
-
}
|
|
3756
|
-
else if (((_f = this.smartComponentLayout.widget) === null || _f === void 0 ? void 0 : _f.type) === ComponentWidgetType.Filter) {
|
|
3757
|
-
this.constructFilter();
|
|
3758
|
-
}
|
|
3759
|
-
else if (((_g = this.smartComponentLayout.widget) === null || _g === void 0 ? void 0 : _g.type) === ComponentWidgetType.Tree) {
|
|
3760
|
-
this.constructTree();
|
|
3761
|
-
}
|
|
3762
|
-
}
|
|
3763
|
-
}
|
|
3764
|
-
type() {
|
|
3765
|
-
return ComponentType;
|
|
3766
|
-
}
|
|
3767
|
-
constructExpandableSection() {
|
|
3768
|
-
var _a, _b;
|
|
3769
|
-
let data = Object.assign({}, this.smartComponentLayout);
|
|
3770
|
-
data.expandable = false;
|
|
3771
|
-
this.expandableSection = {
|
|
3772
|
-
title: (_b = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.expandableSectionLabel) !== null && _b !== void 0 ? _b : '',
|
|
3773
|
-
data,
|
|
3774
|
-
inputName: 'smartComponentLayout',
|
|
3775
|
-
customComponent: SmartComponentLayoutComponent,
|
|
3776
|
-
};
|
|
3777
|
-
}
|
|
3778
|
-
constructForm() {
|
|
3779
|
-
var _a, _b, _c, _d, _e;
|
|
3780
|
-
const widgets = this.layoutService.render({
|
|
3781
|
-
layoutDefinitions: (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.form,
|
|
3782
|
-
});
|
|
3783
|
-
this.smartForm = {
|
|
3784
|
-
direction: SmartFormWidgetDirection.COL,
|
|
3785
|
-
model: (_b = this.parent) === null || _b === void 0 ? void 0 : _b.model,
|
|
3786
|
-
constraints: (_d = (_c = this.parent) === null || _c === void 0 ? void 0 : _c.model) === null || _d === void 0 ? void 0 : _d.constraints,
|
|
3787
|
-
widgets,
|
|
3788
|
-
};
|
|
3789
|
-
(_e = this.parent) === null || _e === void 0 ? void 0 : _e.addForm(
|
|
3790
|
-
// unique identifier for the form
|
|
3791
|
-
`form_${this.makeid(5)}`, this.smartForm, this.formChild);
|
|
3792
|
-
}
|
|
3793
|
-
makeid(length) {
|
|
3794
|
-
let result = '';
|
|
3795
|
-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
3796
|
-
const charactersLength = characters.length;
|
|
3797
|
-
let counter = 0;
|
|
3798
|
-
while (counter < length) {
|
|
3799
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
3800
|
-
counter += 1;
|
|
3801
|
-
}
|
|
3802
|
-
return result;
|
|
3803
|
-
}
|
|
3804
|
-
constructGrid() {
|
|
3805
|
-
var _a, _b, _c;
|
|
3806
|
-
this.smartGrid = {
|
|
3807
|
-
gridIdentifier: (_b = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.widget) === null || _b === void 0 ? void 0 : _b.gridIdentifier,
|
|
3808
|
-
gridModel: {
|
|
3809
|
-
page: {},
|
|
3810
|
-
},
|
|
3811
|
-
layoutDef: SmartLayoutDef.TABLE,
|
|
3812
|
-
};
|
|
3813
|
-
this.smartGrid = (_c = this.parent) === null || _c === void 0 ? void 0 : _c.addGrid(this.smartGrid, {
|
|
3814
|
-
rowUiActionType: GridUiActionType.POPUP_MENU,
|
|
3815
|
-
}, false, this.gridChild);
|
|
3816
|
-
}
|
|
3817
|
-
constructFilter() {
|
|
3818
|
-
// this.smartFilter = (this.smartComponentLayout!.parentComponent as any).addFilter(
|
|
3819
|
-
// `filter_${this.makeid(5)}`,
|
|
3820
|
-
// this.smartComponentLayout?.widget?.filterExpressionFieldList,
|
|
3821
|
-
// this.smartComponentLayout?.widget?.filterType,
|
|
3822
|
-
// this.filterChild
|
|
3823
|
-
// );
|
|
3824
|
-
}
|
|
3825
|
-
constructTree() {
|
|
3826
|
-
var _a, _b, _c;
|
|
3827
|
-
this.parent.setUpDefaultTree((_b = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.widget) === null || _b === void 0 ? void 0 : _b.treeIdentifier);
|
|
3828
|
-
(_c = this.treeService) === null || _c === void 0 ? void 0 : _c.initialize();
|
|
3829
|
-
}
|
|
3830
|
-
}
|
|
3831
|
-
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 });
|
|
3832
|
-
SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "formChild", first: true, predicate: ["form"], descendants: true }, { propertyName: "gridChild", first: true, predicate: ["grid"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n [smartComponentLayout]=\"layout\"\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"], components: [{ type: i2$2.ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout"] }, { type: i1$2.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: i3$2.SmartGridComponent, selector: "smart-grid", inputs: ["smartGrid", "uuid", "dev"] }, { type: i4$4.SmartTreeComponent, selector: "smart-tree", inputs: ["treeStyle", "treeService"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
3834
|
-
type: Component,
|
|
3835
|
-
args: [{ selector: 'smart-component-layout', template: "<div *ngIf=\"smartComponentLayout?.expandable; then expandable; else normal\"> </div>\r\n\r\n<ng-template #expandable>\r\n <smart-expandable-section\r\n *ngIf=\"expandableSection\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n</ng-template>\r\n\r\n<ng-template #normal>\r\n <div\r\n *ngIf=\"smartComponentLayout?.type === type().Container\"\r\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\r\n >\r\n <smart-component-layout\r\n [smartComponentLayout]=\"layout\"\r\n *ngFor=\"let layout of smartComponentLayout?.components\"\r\n ></smart-component-layout>\r\n </div>\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\r\n <!-- <smart-filter #filter [filter]=\"smartFilter\"></smart-filter> -->\r\n <smart-tree [treeService]=\"treeService!\"></smart-tree>\r\n</ng-template>\r\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
|
|
3836
|
-
}], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
3837
|
-
type: Input
|
|
3838
|
-
}], formChild: [{
|
|
3839
|
-
type: ViewChild,
|
|
3840
|
-
args: ['form']
|
|
3841
|
-
}], gridChild: [{
|
|
3842
|
-
type: ViewChild,
|
|
3843
|
-
args: ['grid']
|
|
3844
|
-
}] } });
|
|
3845
|
-
|
|
3846
3389
|
class SmartViewContextErrorDialogService extends SmartdialogService {
|
|
3847
3390
|
constructor(dialog, router, viewContext) {
|
|
3848
3391
|
super(dialog, router);
|
|
@@ -4338,7 +3881,7 @@ class UiActionInputDialogComponent {
|
|
|
4338
3881
|
}
|
|
4339
3882
|
}
|
|
4340
3883
|
UiActionInputDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionInputDialogComponent, deps: [{ token: UiActionInputDialogService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4341
|
-
UiActionInputDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionInputDialogComponent, selector: "smart-ui-action-input-dialog", viewQueries: [{ propertyName: "folderFormChild", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type:
|
|
3884
|
+
UiActionInputDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionInputDialogComponent, selector: "smart-ui-action-input-dialog", viewQueries: [{ propertyName: "folderFormChild", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i5.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }] });
|
|
4342
3885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionInputDialogComponent, decorators: [{
|
|
4343
3886
|
type: Component,
|
|
4344
3887
|
args: [{ selector: 'smart-ui-action-input-dialog', template: "<div class=\"folderNameDialogContainer\">\r\n\t<div class=\"headerContainer\">\r\n\t\t<h3 class=\"color-accent-700\">\r\n\t\t\t{{ getTitle() }}\r\n\t\t</h3>\r\n\t\t<button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n\t\t\t<smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n\t\t</button>\r\n\t</div>\r\n\t<p>\r\n\t\t{{ getText() }}\r\n\t</p>\r\n\t<smartform #form [smartForm]=\"folderForm\"></smartform>\r\n\t<div class=\"folderNameDialogButtonsContainer\">\r\n\t\t<button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n\t\t\t{{ getCancelButtonLabel() }}\r\n\t\t</button>\r\n\t\t<button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"save()\">\r\n\t\t\t{{ getActionButtonLabel() }}\r\n\t\t</button>\r\n\t</div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"] }]
|
|
@@ -4452,7 +3995,7 @@ class UiActionFileUploadDialogComponent {
|
|
|
4452
3995
|
}
|
|
4453
3996
|
}
|
|
4454
3997
|
UiActionFileUploadDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionFileUploadDialogComponent, deps: [{ token: UiActionFileUploadDialogService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4455
|
-
UiActionFileUploadDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionFileUploadDialogComponent, selector: "lib-ui-action-file-upload-dialog", ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type:
|
|
3998
|
+
UiActionFileUploadDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UiActionFileUploadDialogComponent, selector: "lib-ui-action-file-upload-dialog", ngImport: i0, template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$2.SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: i5.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }] });
|
|
4456
3999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionFileUploadDialogComponent, decorators: [{
|
|
4457
4000
|
type: Component,
|
|
4458
4001
|
args: [{ selector: 'lib-ui-action-file-upload-dialog', template: "<div class=\"folderNameDialogContainer\">\r\n <div class=\"headerContainer\">\r\n <h3 class=\"color-accent-700\">\r\n {{ getTitle() }}\r\n </h3>\r\n <button mat-icon-button title=\"close\" (click)=\"cancel()\">\r\n <smart-icon [color]=\"'primary'\" [icon]=\"'X'\"></smart-icon>\r\n </button>\r\n </div>\r\n <p>\r\n {{ getText() }}\r\n </p>\r\n <smartfileuploader\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"fileFormats\"\r\n [maxSizeMb]=\"maxSizeMb\"\r\n [uploadCallback]=\"upload.bind(this)\"\r\n [isMultiple]=\"isMultiple\"\r\n ></smartfileuploader>\r\n <div class=\"folderNameDialogButtonsContainer\">\r\n <button mat-button color=\"accent\" [color]=\"getCancelButtonColor()\" (click)=\"cancel()\">\r\n {{ getCancelButtonLabel() }}\r\n </button>\r\n <!-- <button mat-raised-button [color]=\"getActionButtonColor()\" (click)=\"upload()\">\r\n {{ getActionButtonLabel() }}\r\n </button> -->\r\n </div>\r\n</div>\r\n", styles: [".folderNameDialogContainer{width:25rem;display:flex;flex-direction:column;gap:1rem}.headerContainer{display:flex;flex-direction:row;justify-content:space-between}.headerContainer h3{margin:0}.folderNameDialogButtonsContainer{display:flex;flex-direction:row;justify-content:flex-end;gap:.5rem}\n"] }]
|
|
@@ -4674,14 +4217,14 @@ class UiActionService {
|
|
|
4674
4217
|
});
|
|
4675
4218
|
}
|
|
4676
4219
|
}
|
|
4677
|
-
UiActionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, deps: [{ token: UiActionConfirmDialogService }, { token: UiActionInputDialogService }, { token: UiActionFileUploadDialogService }, { token: i4$
|
|
4220
|
+
UiActionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, deps: [{ token: UiActionConfirmDialogService }, { token: UiActionInputDialogService }, { token: UiActionFileUploadDialogService }, { token: i4$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4678
4221
|
UiActionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, providedIn: 'root' });
|
|
4679
4222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UiActionService, decorators: [{
|
|
4680
4223
|
type: Injectable,
|
|
4681
4224
|
args: [{
|
|
4682
4225
|
providedIn: 'root',
|
|
4683
4226
|
}]
|
|
4684
|
-
}], ctorParameters: function () { return [{ type: UiActionConfirmDialogService }, { type: UiActionInputDialogService }, { type: UiActionFileUploadDialogService }, { type: i4$
|
|
4227
|
+
}], ctorParameters: function () { return [{ type: UiActionConfirmDialogService }, { type: UiActionInputDialogService }, { type: UiActionFileUploadDialogService }, { type: i4$4.MatSnackBar }]; } });
|
|
4685
4228
|
|
|
4686
4229
|
class UiActionToolbarComponent {
|
|
4687
4230
|
constructor(service, inject) {
|
|
@@ -4905,7 +4448,7 @@ class SmartFileUploaderComponent {
|
|
|
4905
4448
|
}
|
|
4906
4449
|
}
|
|
4907
4450
|
SmartFileUploaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartFileUploaderComponent, deps: [{ token: UiActionService }, { token: UiActionDescriptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4908
|
-
SmartFileUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartFileUploaderComponent, selector: "smart-file-uploader4sc", inputs: { config: "config" }, usesOnChanges: true, ngImport: i0, template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""], components: [{ type:
|
|
4451
|
+
SmartFileUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartFileUploaderComponent, selector: "smart-file-uploader4sc", inputs: { config: "config" }, usesOnChanges: true, ngImport: i0, template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""], components: [{ type: i5.SmartfileuploaderComponent, selector: "smartfileuploader", inputs: ["uploadCallback", "fileFormats", "maxSizeMb", "i18n", "useIconButton", "isMultiple"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4909
4452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartFileUploaderComponent, decorators: [{
|
|
4910
4453
|
type: Component,
|
|
4911
4454
|
args: [{ selector: 'smart-file-uploader4sc', template: "<smartfileuploader\r\n *ngIf=\"i18n\"\r\n [i18n]=\"i18n\"\r\n [fileFormats]=\"config?.fileFormats\"\r\n [isMultiple]=\"config?.isMultiple\"\r\n [maxSizeMb]=\"config?.maxSizeMb\"\r\n [uploadCallback]=\"executeUpload.bind(this)\"\r\n></smartfileuploader>\r\n", styles: [""] }]
|
|
@@ -4916,48 +4459,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4916
4459
|
class SmartNgClientModule {
|
|
4917
4460
|
}
|
|
4918
4461
|
SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4919
|
-
SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent
|
|
4462
|
+
SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
|
|
4920
4463
|
MatCommonModule,
|
|
4921
4464
|
SmartSessionModule,
|
|
4922
4465
|
SmartViewContextModule,
|
|
4923
4466
|
SmartformModule,
|
|
4924
|
-
|
|
4925
|
-
SmartExpandableSectionModule,
|
|
4926
|
-
SmarttreeModule], exports: [SmartSessionModule,
|
|
4927
|
-
SmartViewContextModule,
|
|
4928
|
-
SmartFileUploaderComponent,
|
|
4929
|
-
SmartComponentLayoutComponent] });
|
|
4467
|
+
SmartExpandableSectionModule], exports: [SmartSessionModule, SmartViewContextModule, SmartFileUploaderComponent] });
|
|
4930
4468
|
SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, providers: [SmartNgClientService], imports: [[
|
|
4931
4469
|
BrowserModule,
|
|
4932
4470
|
MatCommonModule,
|
|
4933
4471
|
SmartSessionModule,
|
|
4934
4472
|
SmartViewContextModule,
|
|
4935
4473
|
SmartformModule,
|
|
4936
|
-
SmartGridModule,
|
|
4937
4474
|
SmartExpandableSectionModule,
|
|
4938
|
-
|
|
4939
|
-
], SmartSessionModule,
|
|
4940
|
-
SmartViewContextModule] });
|
|
4475
|
+
], SmartSessionModule, SmartViewContextModule] });
|
|
4941
4476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
|
|
4942
4477
|
type: NgModule,
|
|
4943
4478
|
args: [{
|
|
4944
|
-
declarations: [SmartFileUploaderComponent
|
|
4479
|
+
declarations: [SmartFileUploaderComponent],
|
|
4945
4480
|
imports: [
|
|
4946
4481
|
BrowserModule,
|
|
4947
4482
|
MatCommonModule,
|
|
4948
4483
|
SmartSessionModule,
|
|
4949
4484
|
SmartViewContextModule,
|
|
4950
4485
|
SmartformModule,
|
|
4951
|
-
SmartGridModule,
|
|
4952
4486
|
SmartExpandableSectionModule,
|
|
4953
|
-
SmarttreeModule,
|
|
4954
|
-
],
|
|
4955
|
-
exports: [
|
|
4956
|
-
SmartSessionModule,
|
|
4957
|
-
SmartViewContextModule,
|
|
4958
|
-
SmartFileUploaderComponent,
|
|
4959
|
-
SmartComponentLayoutComponent,
|
|
4960
4487
|
],
|
|
4488
|
+
exports: [SmartSessionModule, SmartViewContextModule, SmartFileUploaderComponent],
|
|
4961
4489
|
providers: [SmartNgClientService],
|
|
4962
4490
|
}]
|
|
4963
4491
|
}] });
|
|
@@ -4979,12 +4507,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4979
4507
|
type: Injectable
|
|
4980
4508
|
}] });
|
|
4981
4509
|
|
|
4982
|
-
// import {
|
|
4983
|
-
// FilterExpressionFieldList,
|
|
4984
|
-
// SmartFilter,
|
|
4985
|
-
// SmartFilterComponent,
|
|
4986
|
-
// SmartFilterType,
|
|
4987
|
-
// } from '@smartbit4all/filter';
|
|
4988
4510
|
let SmartComponentApiClient = class SmartComponentApiClient {
|
|
4989
4511
|
constructor(inject, auth, pageName) {
|
|
4990
4512
|
this.inject = inject;
|
|
@@ -5159,15 +4681,6 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
5159
4681
|
throw new Error('handleSpecificDemandsAsynchronously method not implemented.');
|
|
5160
4682
|
}
|
|
5161
4683
|
//#endregion
|
|
5162
|
-
addSmartLayout(layout) {
|
|
5163
|
-
this.smartComponentLayoutDefinition = this.setParentComponent(layout);
|
|
5164
|
-
}
|
|
5165
|
-
setParentComponent(layout) {
|
|
5166
|
-
var _a;
|
|
5167
|
-
layout.parentComponent = this;
|
|
5168
|
-
layout.components = (_a = layout.components) === null || _a === void 0 ? void 0 : _a.map((l) => this.setParentComponent(l));
|
|
5169
|
-
return layout;
|
|
5170
|
-
}
|
|
5171
4684
|
/**
|
|
5172
4685
|
* Submits all the registered forms in the SmartComponent
|
|
5173
4686
|
*/
|
|
@@ -5220,25 +4733,6 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
5220
4733
|
maxSizeMb,
|
|
5221
4734
|
};
|
|
5222
4735
|
}
|
|
5223
|
-
// public addFilter(
|
|
5224
|
-
// smartFilterId: string,
|
|
5225
|
-
// filter: FilterExpressionFieldList,
|
|
5226
|
-
// type: SmartFilterType,
|
|
5227
|
-
// smartFilterComponent: SmartFilterComponent,
|
|
5228
|
-
// isDefault?: boolean
|
|
5229
|
-
// ): SmartFilter {
|
|
5230
|
-
// const smartFilter: SmartFilter = {
|
|
5231
|
-
// data: filter.filters,
|
|
5232
|
-
// type,
|
|
5233
|
-
// translateService: this.translate,
|
|
5234
|
-
// };
|
|
5235
|
-
// this.widgets.addWidget(smartFilterId, smartFilterComponent);
|
|
5236
|
-
// if (isDefault) {
|
|
5237
|
-
// this.smartFilter = smartFilter;
|
|
5238
|
-
// return this.smartFilter!;
|
|
5239
|
-
// }
|
|
5240
|
-
// return smartFilter;
|
|
5241
|
-
// }
|
|
5242
4736
|
// #region handle changes
|
|
5243
4737
|
handleValueChanges(valueChange) {
|
|
5244
4738
|
let dataChange;
|
|
@@ -5447,5 +4941,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5447
4941
|
* Generated bundle index. Do not edit.
|
|
5448
4942
|
*/
|
|
5449
4943
|
|
|
5450
|
-
export { APIS
|
|
4944
|
+
export { APIS, ApiModule, ApiQueueService, BASE_PATH, COLLECTION_FORMATS, CloseResult, Configuration, DataChangeKind, IS_ASYNC_PARAM_NAME, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartFileUploaderComponent, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
5451
4945
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|