@smartbit4all/ng-client 3.1.34 → 3.1.36
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 +13 -1
- package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +198 -0
- package/esm2020/lib/smart-filter-editor/api/configuration.mjs +91 -0
- package/esm2020/lib/smart-filter-editor/api/encoder.mjs +19 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +16 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +13 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +9 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +13 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +19 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +13 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +13 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +25 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +31 -0
- package/esm2020/lib/smart-filter-editor/api/param.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/api/variables.mjs +9 -0
- package/esm2020/lib/smart-filter-editor/project.mjs +4 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-item/smart-filter-expression-item.component.mjs +54 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-items/smart-filter-expression-items.component.mjs +42 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +109 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor.model.mjs +2 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor.module.mjs +53 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-editor.service.mjs +43 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-params/components/smart-filter-param/smart-filter-param.component.mjs +28 -0
- package/esm2020/lib/smart-filter-editor/smart-filter-params/smart-filter-params.component.mjs +107 -0
- package/esm2020/lib/smart-ng-client.module.mjs +6 -2
- package/esm2020/lib/smart-table/components/default-actions-popup/default-actions-popup.component.mjs +2 -2
- package/esm2020/lib/smart-table/tables/table.mjs +7 -1
- package/esm2020/projects.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +811 -79
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +793 -79
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-filter-editor/api/api/filter.service.d.ts +57 -0
- package/lib/smart-filter-editor/api/configuration.d.ts +104 -0
- package/lib/smart-filter-editor/api/encoder.d.ts +11 -0
- package/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.d.ts +16 -0
- package/lib/smart-filter-editor/api/model/filterExpressionBuilderField.d.ts +27 -0
- package/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.d.ts +39 -0
- package/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.d.ts +29 -0
- package/lib/smart-filter-editor/api/model/filterExpressionData.d.ts +29 -0
- package/lib/smart-filter-editor/api/model/filterExpressionDataType.d.ts +19 -0
- package/lib/smart-filter-editor/api/model/filterExpressionField.d.ts +38 -0
- package/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.d.ts +17 -0
- package/lib/smart-filter-editor/api/model/filterExpressionFieldList.d.ts +21 -0
- package/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.d.ts +25 -0
- package/lib/smart-filter-editor/api/model/filterExpressionList.d.ts +18 -0
- package/lib/smart-filter-editor/api/model/filterExpressionOperandData.d.ts +26 -0
- package/lib/smart-filter-editor/api/model/filterExpressionOperation.d.ts +31 -0
- package/lib/smart-filter-editor/api/param.d.ts +37 -0
- package/lib/smart-filter-editor/api/variables.d.ts +8 -0
- package/lib/smart-filter-editor/project.d.ts +3 -0
- package/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-item/smart-filter-expression-item.component.d.ts +17 -0
- package/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-items/smart-filter-expression-items.component.d.ts +18 -0
- package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +28 -0
- package/lib/smart-filter-editor/smart-filter-editor.model.d.ts +4 -0
- package/lib/smart-filter-editor/smart-filter-editor.module.d.ts +16 -0
- package/lib/smart-filter-editor/smart-filter-editor.service.d.ts +25 -0
- package/lib/smart-filter-editor/smart-filter-params/components/smart-filter-param/smart-filter-param.component.d.ts +13 -0
- package/lib/smart-filter-editor/smart-filter-params/smart-filter-params.component.d.ts +24 -0
- package/lib/smart-ng-client.module.d.ts +3 -2
- package/package.json +1 -1
- package/projects.d.ts +1 -0
- package/smartbit4all-ng-client-3.1.36.tgz +0 -0
- package/src/lib/smart-filter-editor/api/README.md +226 -0
- package/smartbit4all-ng-client-3.1.34.tgz +0 -0
|
@@ -103,7 +103,7 @@ class SmartSubject extends Subject {
|
|
|
103
103
|
* Custom HttpParameterCodec
|
|
104
104
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
105
105
|
*/
|
|
106
|
-
class CustomHttpParameterCodec$
|
|
106
|
+
class CustomHttpParameterCodec$6 {
|
|
107
107
|
encodeKey(k) {
|
|
108
108
|
return encodeURIComponent(k);
|
|
109
109
|
}
|
|
@@ -118,15 +118,15 @@ class CustomHttpParameterCodec$5 {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const BASE_PATH$
|
|
122
|
-
const COLLECTION_FORMATS$
|
|
121
|
+
const BASE_PATH$6 = new InjectionToken('basePath');
|
|
122
|
+
const COLLECTION_FORMATS$6 = {
|
|
123
123
|
'csv': ',',
|
|
124
124
|
'tsv': ' ',
|
|
125
125
|
'ssv': ' ',
|
|
126
126
|
'pipes': '|'
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
class Configuration$
|
|
129
|
+
class Configuration$6 {
|
|
130
130
|
constructor(configurationParameters = {}) {
|
|
131
131
|
this.apiKeys = configurationParameters.apiKeys;
|
|
132
132
|
this.username = configurationParameters.username;
|
|
@@ -233,7 +233,7 @@ class SessionService {
|
|
|
233
233
|
this.httpClient = httpClient;
|
|
234
234
|
this.basePath = 'http://localhost';
|
|
235
235
|
this.defaultHeaders = new HttpHeaders();
|
|
236
|
-
this.configuration = new Configuration$
|
|
236
|
+
this.configuration = new Configuration$6();
|
|
237
237
|
if (configuration) {
|
|
238
238
|
this.configuration = configuration;
|
|
239
239
|
}
|
|
@@ -246,7 +246,7 @@ class SessionService {
|
|
|
246
246
|
}
|
|
247
247
|
this.configuration.basePath = basePath;
|
|
248
248
|
}
|
|
249
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
249
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$6();
|
|
250
250
|
}
|
|
251
251
|
// @ts-ignore
|
|
252
252
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -497,7 +497,7 @@ class SessionService {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
500
|
+
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SessionService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$6, optional: true }, { token: Configuration$6, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
501
501
|
SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SessionService, providedIn: 'root' });
|
|
502
502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SessionService, decorators: [{
|
|
503
503
|
type: Injectable,
|
|
@@ -508,8 +508,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
508
508
|
type: Optional
|
|
509
509
|
}, {
|
|
510
510
|
type: Inject,
|
|
511
|
-
args: [BASE_PATH$
|
|
512
|
-
}] }, { type: Configuration$
|
|
511
|
+
args: [BASE_PATH$6]
|
|
512
|
+
}] }, { type: Configuration$6, decorators: [{
|
|
513
513
|
type: Optional
|
|
514
514
|
}] }]; } });
|
|
515
515
|
|
|
@@ -1018,7 +1018,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
1018
1018
|
* Custom HttpParameterCodec
|
|
1019
1019
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
1020
1020
|
*/
|
|
1021
|
-
class CustomHttpParameterCodec$
|
|
1021
|
+
class CustomHttpParameterCodec$5 {
|
|
1022
1022
|
encodeKey(k) {
|
|
1023
1023
|
return encodeURIComponent(k);
|
|
1024
1024
|
}
|
|
@@ -1033,15 +1033,15 @@ class CustomHttpParameterCodec$4 {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
const BASE_PATH$
|
|
1037
|
-
const COLLECTION_FORMATS$
|
|
1036
|
+
const BASE_PATH$5 = new InjectionToken('basePath');
|
|
1037
|
+
const COLLECTION_FORMATS$5 = {
|
|
1038
1038
|
'csv': ',',
|
|
1039
1039
|
'tsv': ' ',
|
|
1040
1040
|
'ssv': ' ',
|
|
1041
1041
|
'pipes': '|'
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
|
-
class Configuration$
|
|
1044
|
+
class Configuration$5 {
|
|
1045
1045
|
constructor(configurationParameters = {}) {
|
|
1046
1046
|
this.apiKeys = configurationParameters.apiKeys;
|
|
1047
1047
|
this.username = configurationParameters.username;
|
|
@@ -1148,7 +1148,7 @@ class ViewService {
|
|
|
1148
1148
|
this.httpClient = httpClient;
|
|
1149
1149
|
this.basePath = 'http://localhost';
|
|
1150
1150
|
this.defaultHeaders = new HttpHeaders();
|
|
1151
|
-
this.configuration = new Configuration$
|
|
1151
|
+
this.configuration = new Configuration$5();
|
|
1152
1152
|
if (configuration) {
|
|
1153
1153
|
this.configuration = configuration;
|
|
1154
1154
|
}
|
|
@@ -1161,7 +1161,7 @@ class ViewService {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
this.configuration.basePath = basePath;
|
|
1163
1163
|
}
|
|
1164
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
1164
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$5();
|
|
1165
1165
|
}
|
|
1166
1166
|
/**
|
|
1167
1167
|
* @param consumes string[] mime-types
|
|
@@ -1980,7 +1980,7 @@ class ViewService {
|
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
1982
|
else {
|
|
1983
|
-
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$
|
|
1983
|
+
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$5['csv'])) || localVarFormParams;
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
let responseType_ = 'json';
|
|
@@ -2007,7 +2007,7 @@ class ViewService {
|
|
|
2007
2007
|
});
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
|
-
ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
2010
|
+
ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$5, optional: true }, { token: Configuration$5, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2011
2011
|
ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, providedIn: 'root' });
|
|
2012
2012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, decorators: [{
|
|
2013
2013
|
type: Injectable,
|
|
@@ -2018,8 +2018,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
2018
2018
|
type: Optional
|
|
2019
2019
|
}, {
|
|
2020
2020
|
type: Inject,
|
|
2021
|
-
args: [BASE_PATH$
|
|
2022
|
-
}] }, { type: Configuration$
|
|
2021
|
+
args: [BASE_PATH$5]
|
|
2022
|
+
}] }, { type: Configuration$5, decorators: [{
|
|
2023
2023
|
type: Optional
|
|
2024
2024
|
}] }]; } });
|
|
2025
2025
|
|
|
@@ -2376,7 +2376,7 @@ class ApiModule$3 {
|
|
|
2376
2376
|
static forRoot(configurationFactory) {
|
|
2377
2377
|
return {
|
|
2378
2378
|
ngModule: ApiModule$3,
|
|
2379
|
-
providers: [{ provide: Configuration$
|
|
2379
|
+
providers: [{ provide: Configuration$5, useFactory: configurationFactory }]
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
@@ -3266,7 +3266,7 @@ class SmartdialogService {
|
|
|
3266
3266
|
* Custom HttpParameterCodec
|
|
3267
3267
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
3268
3268
|
*/
|
|
3269
|
-
class CustomHttpParameterCodec$
|
|
3269
|
+
class CustomHttpParameterCodec$4 {
|
|
3270
3270
|
encodeKey(k) {
|
|
3271
3271
|
return encodeURIComponent(k);
|
|
3272
3272
|
}
|
|
@@ -3281,15 +3281,15 @@ class CustomHttpParameterCodec$3 {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
|
|
3284
|
-
const BASE_PATH$
|
|
3285
|
-
const COLLECTION_FORMATS$
|
|
3284
|
+
const BASE_PATH$4 = new InjectionToken('basePath');
|
|
3285
|
+
const COLLECTION_FORMATS$4 = {
|
|
3286
3286
|
'csv': ',',
|
|
3287
3287
|
'tsv': ' ',
|
|
3288
3288
|
'ssv': ' ',
|
|
3289
3289
|
'pipes': '|'
|
|
3290
3290
|
};
|
|
3291
3291
|
|
|
3292
|
-
class Configuration$
|
|
3292
|
+
class Configuration$4 {
|
|
3293
3293
|
constructor(configurationParameters = {}) {
|
|
3294
3294
|
this.apiKeys = configurationParameters.apiKeys;
|
|
3295
3295
|
this.username = configurationParameters.username;
|
|
@@ -3396,7 +3396,7 @@ class DefaultService$1 {
|
|
|
3396
3396
|
this.httpClient = httpClient;
|
|
3397
3397
|
this.basePath = 'http://localhost';
|
|
3398
3398
|
this.defaultHeaders = new HttpHeaders();
|
|
3399
|
-
this.configuration = new Configuration$
|
|
3399
|
+
this.configuration = new Configuration$4();
|
|
3400
3400
|
if (configuration) {
|
|
3401
3401
|
this.configuration = configuration;
|
|
3402
3402
|
}
|
|
@@ -3409,7 +3409,7 @@ class DefaultService$1 {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
this.configuration.basePath = basePath;
|
|
3411
3411
|
}
|
|
3412
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
3412
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$4();
|
|
3413
3413
|
}
|
|
3414
3414
|
// @ts-ignore
|
|
3415
3415
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -3487,7 +3487,7 @@ class DefaultService$1 {
|
|
|
3487
3487
|
});
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
|
-
DefaultService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
3490
|
+
DefaultService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$4, optional: true }, { token: Configuration$4, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3491
3491
|
DefaultService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, providedIn: 'root' });
|
|
3492
3492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, decorators: [{
|
|
3493
3493
|
type: Injectable,
|
|
@@ -3498,8 +3498,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
3498
3498
|
type: Optional
|
|
3499
3499
|
}, {
|
|
3500
3500
|
type: Inject,
|
|
3501
|
-
args: [BASE_PATH$
|
|
3502
|
-
}] }, { type: Configuration$
|
|
3501
|
+
args: [BASE_PATH$4]
|
|
3502
|
+
}] }, { type: Configuration$4, decorators: [{
|
|
3503
3503
|
type: Optional
|
|
3504
3504
|
}] }]; } });
|
|
3505
3505
|
|
|
@@ -3598,7 +3598,7 @@ class ApiModule$2 {
|
|
|
3598
3598
|
static forRoot(configurationFactory) {
|
|
3599
3599
|
return {
|
|
3600
3600
|
ngModule: ApiModule$2,
|
|
3601
|
-
providers: [{ provide: Configuration$
|
|
3601
|
+
providers: [{ provide: Configuration$4, useFactory: configurationFactory }]
|
|
3602
3602
|
};
|
|
3603
3603
|
}
|
|
3604
3604
|
}
|
|
@@ -5427,7 +5427,7 @@ class DefaultActionsPopupComponent {
|
|
|
5427
5427
|
defaultActionButtonClicked(button) {
|
|
5428
5428
|
let actionsOfRow = this.row?.actions;
|
|
5429
5429
|
if (actionsOfRow) {
|
|
5430
|
-
let uiAction = actionsOfRow.
|
|
5430
|
+
let uiAction = actionsOfRow.find((action) => action.code === button.args[0].code);
|
|
5431
5431
|
if (button.callback) {
|
|
5432
5432
|
button.callback(button.args, this.row, uiAction);
|
|
5433
5433
|
}
|
|
@@ -5860,6 +5860,12 @@ class Table {
|
|
|
5860
5860
|
let actionCodesFromRow = row?.actions.map((action) => action.code);
|
|
5861
5861
|
let filteredActions = this.smartTable.defaultActions?.filter((action) => actionCodesFromRow.includes(action.code));
|
|
5862
5862
|
if (filteredActions && filteredActions.length > 0) {
|
|
5863
|
+
if (filteredActions.length === 1) {
|
|
5864
|
+
if (this.smartTable.onRowDoubleClick) {
|
|
5865
|
+
this.smartTable.onRowDoubleClick(row);
|
|
5866
|
+
return;
|
|
5867
|
+
}
|
|
5868
|
+
}
|
|
5863
5869
|
this.defaultActionMenuComponents
|
|
5864
5870
|
.toArray()
|
|
5865
5871
|
.find((comp) => comp.row.id === row.id)
|
|
@@ -8106,7 +8112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
8106
8112
|
* Custom HttpParameterCodec
|
|
8107
8113
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
8108
8114
|
*/
|
|
8109
|
-
class CustomHttpParameterCodec$
|
|
8115
|
+
class CustomHttpParameterCodec$3 {
|
|
8110
8116
|
encodeKey(k) {
|
|
8111
8117
|
return encodeURIComponent(k);
|
|
8112
8118
|
}
|
|
@@ -8121,15 +8127,15 @@ class CustomHttpParameterCodec$2 {
|
|
|
8121
8127
|
}
|
|
8122
8128
|
}
|
|
8123
8129
|
|
|
8124
|
-
const BASE_PATH$
|
|
8125
|
-
const COLLECTION_FORMATS$
|
|
8130
|
+
const BASE_PATH$3 = new InjectionToken('basePath');
|
|
8131
|
+
const COLLECTION_FORMATS$3 = {
|
|
8126
8132
|
'csv': ',',
|
|
8127
8133
|
'tsv': ' ',
|
|
8128
8134
|
'ssv': ' ',
|
|
8129
8135
|
'pipes': '|'
|
|
8130
8136
|
};
|
|
8131
8137
|
|
|
8132
|
-
class Configuration$
|
|
8138
|
+
class Configuration$3 {
|
|
8133
8139
|
constructor(configurationParameters = {}) {
|
|
8134
8140
|
this.apiKeys = configurationParameters.apiKeys;
|
|
8135
8141
|
this.username = configurationParameters.username;
|
|
@@ -8236,7 +8242,7 @@ class TreeService {
|
|
|
8236
8242
|
this.httpClient = httpClient;
|
|
8237
8243
|
this.basePath = 'http://localhost';
|
|
8238
8244
|
this.defaultHeaders = new HttpHeaders();
|
|
8239
|
-
this.configuration = new Configuration$
|
|
8245
|
+
this.configuration = new Configuration$3();
|
|
8240
8246
|
if (configuration) {
|
|
8241
8247
|
this.configuration = configuration;
|
|
8242
8248
|
}
|
|
@@ -8249,7 +8255,7 @@ class TreeService {
|
|
|
8249
8255
|
}
|
|
8250
8256
|
this.configuration.basePath = basePath;
|
|
8251
8257
|
}
|
|
8252
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
8258
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$3();
|
|
8253
8259
|
}
|
|
8254
8260
|
// @ts-ignore
|
|
8255
8261
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -8837,7 +8843,7 @@ class TreeService {
|
|
|
8837
8843
|
});
|
|
8838
8844
|
}
|
|
8839
8845
|
}
|
|
8840
|
-
TreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
8846
|
+
TreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$3, optional: true }, { token: Configuration$3, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8841
8847
|
TreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, providedIn: 'root' });
|
|
8842
8848
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, decorators: [{
|
|
8843
8849
|
type: Injectable,
|
|
@@ -8848,8 +8854,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
8848
8854
|
type: Optional
|
|
8849
8855
|
}, {
|
|
8850
8856
|
type: Inject,
|
|
8851
|
-
args: [BASE_PATH$
|
|
8852
|
-
}] }, { type: Configuration$
|
|
8857
|
+
args: [BASE_PATH$3]
|
|
8858
|
+
}] }, { type: Configuration$3, decorators: [{
|
|
8853
8859
|
type: Optional
|
|
8854
8860
|
}] }]; } });
|
|
8855
8861
|
|
|
@@ -9620,7 +9626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
9620
9626
|
* Custom HttpParameterCodec
|
|
9621
9627
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
9622
9628
|
*/
|
|
9623
|
-
class CustomHttpParameterCodec$
|
|
9629
|
+
class CustomHttpParameterCodec$2 {
|
|
9624
9630
|
encodeKey(k) {
|
|
9625
9631
|
return encodeURIComponent(k);
|
|
9626
9632
|
}
|
|
@@ -9635,15 +9641,15 @@ class CustomHttpParameterCodec$1 {
|
|
|
9635
9641
|
}
|
|
9636
9642
|
}
|
|
9637
9643
|
|
|
9638
|
-
const BASE_PATH$
|
|
9639
|
-
const COLLECTION_FORMATS$
|
|
9644
|
+
const BASE_PATH$2 = new InjectionToken('basePath');
|
|
9645
|
+
const COLLECTION_FORMATS$2 = {
|
|
9640
9646
|
'csv': ',',
|
|
9641
9647
|
'tsv': ' ',
|
|
9642
9648
|
'ssv': ' ',
|
|
9643
9649
|
'pipes': '|'
|
|
9644
9650
|
};
|
|
9645
9651
|
|
|
9646
|
-
class Configuration$
|
|
9652
|
+
class Configuration$2 {
|
|
9647
9653
|
constructor(configurationParameters = {}) {
|
|
9648
9654
|
this.apiKeys = configurationParameters.apiKeys;
|
|
9649
9655
|
this.username = configurationParameters.username;
|
|
@@ -9750,7 +9756,7 @@ class GridService {
|
|
|
9750
9756
|
this.httpClient = httpClient;
|
|
9751
9757
|
this.basePath = 'http://localhost';
|
|
9752
9758
|
this.defaultHeaders = new HttpHeaders();
|
|
9753
|
-
this.configuration = new Configuration$
|
|
9759
|
+
this.configuration = new Configuration$2();
|
|
9754
9760
|
if (configuration) {
|
|
9755
9761
|
this.configuration = configuration;
|
|
9756
9762
|
}
|
|
@@ -9763,7 +9769,7 @@ class GridService {
|
|
|
9763
9769
|
}
|
|
9764
9770
|
this.configuration.basePath = basePath;
|
|
9765
9771
|
}
|
|
9766
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
9772
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
|
|
9767
9773
|
}
|
|
9768
9774
|
// @ts-ignore
|
|
9769
9775
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -10102,7 +10108,7 @@ class GridService {
|
|
|
10102
10108
|
});
|
|
10103
10109
|
}
|
|
10104
10110
|
}
|
|
10105
|
-
GridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
10111
|
+
GridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$2, optional: true }, { token: Configuration$2, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10106
10112
|
GridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, providedIn: 'root' });
|
|
10107
10113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, decorators: [{
|
|
10108
10114
|
type: Injectable,
|
|
@@ -10113,8 +10119,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
10113
10119
|
type: Optional
|
|
10114
10120
|
}, {
|
|
10115
10121
|
type: Inject,
|
|
10116
|
-
args: [BASE_PATH$
|
|
10117
|
-
}] }, { type: Configuration$
|
|
10122
|
+
args: [BASE_PATH$2]
|
|
10123
|
+
}] }, { type: Configuration$2, decorators: [{
|
|
10118
10124
|
type: Optional
|
|
10119
10125
|
}] }]; } });
|
|
10120
10126
|
|
|
@@ -10211,7 +10217,7 @@ class ApiModule$1 {
|
|
|
10211
10217
|
static forRoot(configurationFactory) {
|
|
10212
10218
|
return {
|
|
10213
10219
|
ngModule: ApiModule$1,
|
|
10214
|
-
providers: [{ provide: Configuration$
|
|
10220
|
+
providers: [{ provide: Configuration$2, useFactory: configurationFactory }]
|
|
10215
10221
|
};
|
|
10216
10222
|
}
|
|
10217
10223
|
}
|
|
@@ -11423,7 +11429,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
11423
11429
|
* Custom HttpParameterCodec
|
|
11424
11430
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
11425
11431
|
*/
|
|
11426
|
-
class CustomHttpParameterCodec {
|
|
11432
|
+
class CustomHttpParameterCodec$1 {
|
|
11427
11433
|
encodeKey(k) {
|
|
11428
11434
|
return encodeURIComponent(k);
|
|
11429
11435
|
}
|
|
@@ -11438,15 +11444,15 @@ class CustomHttpParameterCodec {
|
|
|
11438
11444
|
}
|
|
11439
11445
|
}
|
|
11440
11446
|
|
|
11441
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
11442
|
-
const COLLECTION_FORMATS = {
|
|
11447
|
+
const BASE_PATH$1 = new InjectionToken('basePath');
|
|
11448
|
+
const COLLECTION_FORMATS$1 = {
|
|
11443
11449
|
'csv': ',',
|
|
11444
11450
|
'tsv': ' ',
|
|
11445
11451
|
'ssv': ' ',
|
|
11446
11452
|
'pipes': '|'
|
|
11447
11453
|
};
|
|
11448
11454
|
|
|
11449
|
-
class Configuration {
|
|
11455
|
+
class Configuration$1 {
|
|
11450
11456
|
constructor(configurationParameters = {}) {
|
|
11451
11457
|
this.apiKeys = configurationParameters.apiKeys;
|
|
11452
11458
|
this.username = configurationParameters.username;
|
|
@@ -11553,7 +11559,7 @@ class DefaultService {
|
|
|
11553
11559
|
this.httpClient = httpClient;
|
|
11554
11560
|
this.basePath = 'http://localhost';
|
|
11555
11561
|
this.defaultHeaders = new HttpHeaders();
|
|
11556
|
-
this.configuration = new Configuration();
|
|
11562
|
+
this.configuration = new Configuration$1();
|
|
11557
11563
|
if (configuration) {
|
|
11558
11564
|
this.configuration = configuration;
|
|
11559
11565
|
}
|
|
@@ -11566,7 +11572,7 @@ class DefaultService {
|
|
|
11566
11572
|
}
|
|
11567
11573
|
this.configuration.basePath = basePath;
|
|
11568
11574
|
}
|
|
11569
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
11575
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
|
|
11570
11576
|
}
|
|
11571
11577
|
// @ts-ignore
|
|
11572
11578
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -11644,7 +11650,7 @@ class DefaultService {
|
|
|
11644
11650
|
});
|
|
11645
11651
|
}
|
|
11646
11652
|
}
|
|
11647
|
-
DefaultService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11653
|
+
DefaultService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$1, optional: true }, { token: Configuration$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11648
11654
|
DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, providedIn: 'root' });
|
|
11649
11655
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, decorators: [{
|
|
11650
11656
|
type: Injectable,
|
|
@@ -11655,8 +11661,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
11655
11661
|
type: Optional
|
|
11656
11662
|
}, {
|
|
11657
11663
|
type: Inject,
|
|
11658
|
-
args: [BASE_PATH]
|
|
11659
|
-
}] }, { type: Configuration, decorators: [{
|
|
11664
|
+
args: [BASE_PATH$1]
|
|
11665
|
+
}] }, { type: Configuration$1, decorators: [{
|
|
11660
11666
|
type: Optional
|
|
11661
11667
|
}] }]; } });
|
|
11662
11668
|
|
|
@@ -11725,7 +11731,7 @@ class ApiModule {
|
|
|
11725
11731
|
static forRoot(configurationFactory) {
|
|
11726
11732
|
return {
|
|
11727
11733
|
ngModule: ApiModule,
|
|
11728
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
11734
|
+
providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
|
|
11729
11735
|
};
|
|
11730
11736
|
}
|
|
11731
11737
|
}
|
|
@@ -12144,24 +12150,718 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12144
12150
|
}]
|
|
12145
12151
|
}] });
|
|
12146
12152
|
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12153
|
+
/**
|
|
12154
|
+
* Custom HttpParameterCodec
|
|
12155
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
12156
|
+
*/
|
|
12157
|
+
class CustomHttpParameterCodec {
|
|
12158
|
+
encodeKey(k) {
|
|
12159
|
+
return encodeURIComponent(k);
|
|
12160
|
+
}
|
|
12161
|
+
encodeValue(v) {
|
|
12162
|
+
return encodeURIComponent(v);
|
|
12163
|
+
}
|
|
12164
|
+
decodeKey(k) {
|
|
12165
|
+
return decodeURIComponent(k);
|
|
12166
|
+
}
|
|
12167
|
+
decodeValue(v) {
|
|
12168
|
+
return decodeURIComponent(v);
|
|
12169
|
+
}
|
|
12170
|
+
}
|
|
12171
|
+
|
|
12172
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
12173
|
+
const COLLECTION_FORMATS = {
|
|
12174
|
+
'csv': ',',
|
|
12175
|
+
'tsv': ' ',
|
|
12176
|
+
'ssv': ' ',
|
|
12177
|
+
'pipes': '|'
|
|
12178
|
+
};
|
|
12179
|
+
|
|
12180
|
+
class Configuration {
|
|
12181
|
+
constructor(configurationParameters = {}) {
|
|
12182
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
12183
|
+
this.username = configurationParameters.username;
|
|
12184
|
+
this.password = configurationParameters.password;
|
|
12185
|
+
this.accessToken = configurationParameters.accessToken;
|
|
12186
|
+
this.basePath = configurationParameters.basePath;
|
|
12187
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
12188
|
+
this.encoder = configurationParameters.encoder;
|
|
12189
|
+
if (configurationParameters.encodeParam) {
|
|
12190
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
12191
|
+
}
|
|
12192
|
+
else {
|
|
12193
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
12194
|
+
}
|
|
12195
|
+
if (configurationParameters.credentials) {
|
|
12196
|
+
this.credentials = configurationParameters.credentials;
|
|
12197
|
+
}
|
|
12198
|
+
else {
|
|
12199
|
+
this.credentials = {};
|
|
12200
|
+
}
|
|
12201
|
+
}
|
|
12202
|
+
/**
|
|
12203
|
+
* Select the correct content-type to use for a request.
|
|
12204
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
12205
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
12206
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
12207
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
12208
|
+
*/
|
|
12209
|
+
selectHeaderContentType(contentTypes) {
|
|
12210
|
+
if (contentTypes.length === 0) {
|
|
12211
|
+
return undefined;
|
|
12212
|
+
}
|
|
12213
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
12214
|
+
if (type === undefined) {
|
|
12215
|
+
return contentTypes[0];
|
|
12216
|
+
}
|
|
12217
|
+
return type;
|
|
12218
|
+
}
|
|
12219
|
+
/**
|
|
12220
|
+
* Select the correct accept content-type to use for a request.
|
|
12221
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
12222
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
12223
|
+
* @param accepts - the array of content types that are available for selection.
|
|
12224
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
12225
|
+
*/
|
|
12226
|
+
selectHeaderAccept(accepts) {
|
|
12227
|
+
if (accepts.length === 0) {
|
|
12228
|
+
return undefined;
|
|
12229
|
+
}
|
|
12230
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
12231
|
+
if (type === undefined) {
|
|
12232
|
+
return accepts[0];
|
|
12233
|
+
}
|
|
12234
|
+
return type;
|
|
12235
|
+
}
|
|
12236
|
+
/**
|
|
12237
|
+
* Check if the given MIME is a JSON MIME.
|
|
12238
|
+
* JSON MIME examples:
|
|
12239
|
+
* application/json
|
|
12240
|
+
* application/json; charset=UTF8
|
|
12241
|
+
* APPLICATION/JSON
|
|
12242
|
+
* application/vnd.company+json
|
|
12243
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
12244
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
12245
|
+
*/
|
|
12246
|
+
isJsonMime(mime) {
|
|
12247
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
12248
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
12249
|
+
}
|
|
12250
|
+
lookupCredential(key) {
|
|
12251
|
+
const value = this.credentials[key];
|
|
12252
|
+
return typeof value === 'function'
|
|
12253
|
+
? value()
|
|
12254
|
+
: value;
|
|
12255
|
+
}
|
|
12256
|
+
defaultEncodeParam(param) {
|
|
12257
|
+
// This implementation exists as fallback for missing configuration
|
|
12258
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
12259
|
+
// It only works for the 'simple' parameter style.
|
|
12260
|
+
// Date-handling only works for the 'date-time' format.
|
|
12261
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
12262
|
+
//
|
|
12263
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
12264
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
12265
|
+
? param.value.toISOString()
|
|
12266
|
+
: param.value;
|
|
12267
|
+
return encodeURIComponent(String(value));
|
|
12268
|
+
}
|
|
12269
|
+
}
|
|
12270
|
+
|
|
12271
|
+
/**
|
|
12272
|
+
* Filter API 2
|
|
12273
|
+
* Filter API 2
|
|
12274
|
+
*
|
|
12275
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12276
|
+
* Contact: info@it4all.hu
|
|
12277
|
+
*
|
|
12278
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12279
|
+
* https://openapi-generator.tech
|
|
12280
|
+
* Do not edit the class manually.
|
|
12281
|
+
*/
|
|
12282
|
+
class FilterService {
|
|
12283
|
+
constructor(httpClient, basePath, configuration) {
|
|
12284
|
+
this.httpClient = httpClient;
|
|
12285
|
+
this.basePath = 'http://localhost';
|
|
12286
|
+
this.defaultHeaders = new HttpHeaders();
|
|
12287
|
+
this.configuration = new Configuration();
|
|
12288
|
+
if (configuration) {
|
|
12289
|
+
this.configuration = configuration;
|
|
12290
|
+
}
|
|
12291
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
12292
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
12293
|
+
basePath = basePath[0];
|
|
12294
|
+
}
|
|
12295
|
+
if (typeof basePath !== 'string') {
|
|
12296
|
+
basePath = this.basePath;
|
|
12297
|
+
}
|
|
12298
|
+
this.configuration.basePath = basePath;
|
|
12299
|
+
}
|
|
12300
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
12301
|
+
}
|
|
12302
|
+
// @ts-ignore
|
|
12303
|
+
addToHttpParams(httpParams, value, key) {
|
|
12304
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
12305
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
12306
|
+
}
|
|
12307
|
+
else {
|
|
12308
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
12309
|
+
}
|
|
12310
|
+
return httpParams;
|
|
12311
|
+
}
|
|
12312
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
12313
|
+
if (value == null) {
|
|
12314
|
+
return httpParams;
|
|
12315
|
+
}
|
|
12316
|
+
if (typeof value === "object") {
|
|
12317
|
+
if (Array.isArray(value)) {
|
|
12318
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
12319
|
+
}
|
|
12320
|
+
else if (value instanceof Date) {
|
|
12321
|
+
if (key != null) {
|
|
12322
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
12323
|
+
}
|
|
12324
|
+
else {
|
|
12325
|
+
throw Error("key may not be null if value is Date");
|
|
12326
|
+
}
|
|
12327
|
+
}
|
|
12328
|
+
else {
|
|
12329
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
12330
|
+
}
|
|
12331
|
+
}
|
|
12332
|
+
else if (key != null) {
|
|
12333
|
+
httpParams = httpParams.append(key, value);
|
|
12334
|
+
}
|
|
12335
|
+
else {
|
|
12336
|
+
throw Error("key may not be null if value is not object or array");
|
|
12337
|
+
}
|
|
12338
|
+
return httpParams;
|
|
12339
|
+
}
|
|
12340
|
+
load(uuid, filterIdentifier, observe = 'body', reportProgress = false, options) {
|
|
12341
|
+
if (uuid === null || uuid === undefined) {
|
|
12342
|
+
throw new Error('Required parameter uuid was null or undefined when calling load.');
|
|
12343
|
+
}
|
|
12344
|
+
if (filterIdentifier === null || filterIdentifier === undefined) {
|
|
12345
|
+
throw new Error('Required parameter filterIdentifier was null or undefined when calling load.');
|
|
12346
|
+
}
|
|
12347
|
+
let localVarHeaders = this.defaultHeaders;
|
|
12348
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12349
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12350
|
+
// to determine the Accept header
|
|
12351
|
+
const httpHeaderAccepts = [
|
|
12352
|
+
'application/json'
|
|
12353
|
+
];
|
|
12354
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12355
|
+
}
|
|
12356
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
12357
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
12358
|
+
}
|
|
12359
|
+
let localVarHttpContext = options && options.context;
|
|
12360
|
+
if (localVarHttpContext === undefined) {
|
|
12361
|
+
localVarHttpContext = new HttpContext();
|
|
12362
|
+
}
|
|
12363
|
+
let responseType_ = 'json';
|
|
12364
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
12365
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
12366
|
+
responseType_ = 'text';
|
|
12367
|
+
}
|
|
12368
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
12369
|
+
responseType_ = 'json';
|
|
12370
|
+
}
|
|
12371
|
+
else {
|
|
12372
|
+
responseType_ = 'blob';
|
|
12373
|
+
}
|
|
12374
|
+
}
|
|
12375
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "filterIdentifier", value: filterIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/load`;
|
|
12376
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
12377
|
+
context: localVarHttpContext,
|
|
12378
|
+
responseType: responseType_,
|
|
12379
|
+
withCredentials: this.configuration.withCredentials,
|
|
12380
|
+
headers: localVarHeaders,
|
|
12381
|
+
observe: observe,
|
|
12382
|
+
reportProgress: reportProgress
|
|
12383
|
+
});
|
|
12384
|
+
}
|
|
12385
|
+
performWidgetAction(uuid, filterIdentifier, body, observe = 'body', reportProgress = false, options) {
|
|
12386
|
+
if (uuid === null || uuid === undefined) {
|
|
12387
|
+
throw new Error('Required parameter uuid was null or undefined when calling performWidgetAction.');
|
|
12388
|
+
}
|
|
12389
|
+
if (filterIdentifier === null || filterIdentifier === undefined) {
|
|
12390
|
+
throw new Error('Required parameter filterIdentifier was null or undefined when calling performWidgetAction.');
|
|
12391
|
+
}
|
|
12392
|
+
if (body === null || body === undefined) {
|
|
12393
|
+
throw new Error('Required parameter body was null or undefined when calling performWidgetAction.');
|
|
12394
|
+
}
|
|
12395
|
+
let localVarHeaders = this.defaultHeaders;
|
|
12396
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12397
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12398
|
+
// to determine the Accept header
|
|
12399
|
+
const httpHeaderAccepts = [
|
|
12400
|
+
'application/json'
|
|
12401
|
+
];
|
|
12402
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12403
|
+
}
|
|
12404
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
12405
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
12406
|
+
}
|
|
12407
|
+
let localVarHttpContext = options && options.context;
|
|
12408
|
+
if (localVarHttpContext === undefined) {
|
|
12409
|
+
localVarHttpContext = new HttpContext();
|
|
12410
|
+
}
|
|
12411
|
+
// to determine the Content-Type header
|
|
12412
|
+
const consumes = [
|
|
12413
|
+
'application/json'
|
|
12414
|
+
];
|
|
12415
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
12416
|
+
if (httpContentTypeSelected !== undefined) {
|
|
12417
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
12418
|
+
}
|
|
12419
|
+
let responseType_ = 'json';
|
|
12420
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
12421
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
12422
|
+
responseType_ = 'text';
|
|
12423
|
+
}
|
|
12424
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
12425
|
+
responseType_ = 'json';
|
|
12426
|
+
}
|
|
12427
|
+
else {
|
|
12428
|
+
responseType_ = 'blob';
|
|
12429
|
+
}
|
|
12430
|
+
}
|
|
12431
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "filterIdentifier", value: filterIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/performWidgetAction`;
|
|
12432
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
12433
|
+
context: localVarHttpContext,
|
|
12434
|
+
body: body,
|
|
12435
|
+
responseType: responseType_,
|
|
12436
|
+
withCredentials: this.configuration.withCredentials,
|
|
12437
|
+
headers: localVarHeaders,
|
|
12438
|
+
observe: observe,
|
|
12439
|
+
reportProgress: reportProgress
|
|
12440
|
+
});
|
|
12441
|
+
}
|
|
12442
|
+
}
|
|
12443
|
+
FilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12444
|
+
FilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, providedIn: 'root' });
|
|
12445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, decorators: [{
|
|
12446
|
+
type: Injectable,
|
|
12447
|
+
args: [{
|
|
12448
|
+
providedIn: 'root'
|
|
12449
|
+
}]
|
|
12450
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
12451
|
+
type: Optional
|
|
12452
|
+
}, {
|
|
12453
|
+
type: Inject,
|
|
12454
|
+
args: [BASE_PATH]
|
|
12455
|
+
}] }, { type: Configuration, decorators: [{
|
|
12456
|
+
type: Optional
|
|
12457
|
+
}] }]; } });
|
|
12458
|
+
|
|
12459
|
+
class SmartFilterEditorService {
|
|
12460
|
+
constructor(service) {
|
|
12461
|
+
this.service = service;
|
|
12462
|
+
this.modelChanged = new Subject();
|
|
12463
|
+
this.submit = new Subject();
|
|
12464
|
+
this.reSubscribeToChange = new Subject();
|
|
12465
|
+
}
|
|
12466
|
+
async load() {
|
|
12467
|
+
this.model = await this.service.load(this.config.uuid, this.config.identifier).toPromise();
|
|
12468
|
+
this.modelChanged.next();
|
|
12469
|
+
}
|
|
12470
|
+
async peformWidgetAction(request) {
|
|
12471
|
+
this.model = await this.service
|
|
12472
|
+
.performWidgetAction(this.config.uuid, this.config.identifier, request)
|
|
12473
|
+
.toPromise();
|
|
12474
|
+
this.modelChanged.next();
|
|
12475
|
+
}
|
|
12476
|
+
getModel() {
|
|
12477
|
+
return this.model;
|
|
12478
|
+
}
|
|
12479
|
+
async performUiActionRequest(uiActionRequest, widgetId, nodeId) {
|
|
12480
|
+
await this.peformWidgetAction(uiActionRequest);
|
|
12481
|
+
}
|
|
12482
|
+
async handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
|
|
12483
|
+
return {
|
|
12484
|
+
shouldPerformAction: true,
|
|
12485
|
+
uiActionRequest: uiActionRequest,
|
|
12486
|
+
};
|
|
12487
|
+
}
|
|
12488
|
+
getAdditionalParams(uiAction) {
|
|
12489
|
+
throw new Error('Method not implemented.');
|
|
12490
|
+
}
|
|
12491
|
+
}
|
|
12492
|
+
SmartFilterEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, deps: [{ token: FilterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12493
|
+
SmartFilterEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService });
|
|
12494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, decorators: [{
|
|
12495
|
+
type: Injectable
|
|
12496
|
+
}], ctorParameters: function () { return [{ type: FilterService }]; } });
|
|
12497
|
+
|
|
12498
|
+
class SmartFilterParamComponent {
|
|
12499
|
+
constructor(service) {
|
|
12500
|
+
this.service = service;
|
|
12501
|
+
}
|
|
12502
|
+
ngOnInit() { }
|
|
12503
|
+
onItemClick(item) {
|
|
12504
|
+
this.data.serviceToUse.peformWidgetAction({
|
|
12505
|
+
code: 'ADD_FILTER_EXPRESSION',
|
|
12506
|
+
params: {
|
|
12507
|
+
model: item,
|
|
12508
|
+
},
|
|
12509
|
+
});
|
|
12510
|
+
}
|
|
12511
|
+
}
|
|
12512
|
+
SmartFilterParamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12513
|
+
SmartFilterParamComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterParamComponent, selector: "app-target-group-filter-param", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"targetGroupFilterParamContainer\">\r\n <div\r\n class=\"targetGroupFilterItem\"\r\n *ngFor=\"let data of data?.group\"\r\n (click)=\"onItemClick(data)\"\r\n >\r\n <smart-icon icon=\"Ic24_Chevron_Right\" color=\"gray\"></smart-icon>\r\n <div class=\"mat-caption\">\r\n {{ data.label }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".targetGroupFilterParamContainer{display:flex;flex-direction:column;gap:.25rem}.targetGroupFilterItem{padding:.75rem;border-radius:.25rem;display:flex;flex-direction:row;gap:.5rem;cursor:pointer}.targetGroupFilterItem .mat-caption{margin:auto 0}\n"], components: [{ type: SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }], directives: [{ type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, decorators: [{
|
|
12515
|
+
type: Component,
|
|
12516
|
+
args: [{ selector: 'app-target-group-filter-param', template: "<div class=\"targetGroupFilterParamContainer\">\r\n <div\r\n class=\"targetGroupFilterItem\"\r\n *ngFor=\"let data of data?.group\"\r\n (click)=\"onItemClick(data)\"\r\n >\r\n <smart-icon icon=\"Ic24_Chevron_Right\" color=\"gray\"></smart-icon>\r\n <div class=\"mat-caption\">\r\n {{ data.label }}\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".targetGroupFilterParamContainer{display:flex;flex-direction:column;gap:.25rem}.targetGroupFilterItem{padding:.75rem;border-radius:.25rem;display:flex;flex-direction:row;gap:.5rem;cursor:pointer}.targetGroupFilterItem .mat-caption{margin:auto 0}\n"] }]
|
|
12517
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { data: [{
|
|
12518
|
+
type: Input
|
|
12519
|
+
}] } });
|
|
12520
|
+
|
|
12521
|
+
class SmartFilterParamsComponent {
|
|
12522
|
+
// filterComponentRef?: ComponentRef<SmartFilterComponent>;
|
|
12523
|
+
// filter?: SmartFilter;
|
|
12524
|
+
constructor(cfService) {
|
|
12525
|
+
this.cfService = cfService;
|
|
12526
|
+
this._destroy$ = new Subject();
|
|
12527
|
+
this.expandableSections = [];
|
|
12528
|
+
}
|
|
12529
|
+
ngOnInit() {
|
|
12530
|
+
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
12531
|
+
this.setUp(this.service.model);
|
|
12532
|
+
});
|
|
12533
|
+
}
|
|
12534
|
+
ngOnDestroy() {
|
|
12535
|
+
this._destroy$.next();
|
|
12536
|
+
this._destroy$.complete();
|
|
12537
|
+
}
|
|
12538
|
+
setUp(model) {
|
|
12539
|
+
this.filterBuilder = model.model;
|
|
12540
|
+
// this.constructFilter();
|
|
12541
|
+
this.constructExpandableSections();
|
|
12542
|
+
}
|
|
12543
|
+
constructExpandableSections() {
|
|
12544
|
+
if (this.filterBuilder.groups) {
|
|
12545
|
+
this.expandableSections = this.filterBuilder.groups.map((filterExpressionBuilderGroup) => {
|
|
12546
|
+
return {
|
|
12547
|
+
title: filterExpressionBuilderGroup.label,
|
|
12548
|
+
cssClass: 'filterExpressionBuilderGroup',
|
|
12549
|
+
customComponent: SmartFilterParamComponent,
|
|
12550
|
+
data: {
|
|
12551
|
+
group: filterExpressionBuilderGroup.fields,
|
|
12552
|
+
serviceToUse: this.service,
|
|
12553
|
+
},
|
|
12554
|
+
inputName: 'data',
|
|
12555
|
+
isExpanded: true,
|
|
12556
|
+
};
|
|
12557
|
+
});
|
|
12558
|
+
}
|
|
12559
|
+
// if (this.service.model?.externalFilterGroup) {
|
|
12560
|
+
// this.expandableSectionsFromExcel = {
|
|
12561
|
+
// title: this.service.model.externalFilterGroup.label!,
|
|
12562
|
+
// cssClass: 'filterExpressionBuilderGroup',
|
|
12563
|
+
// customComponent: SmartFilterParamComponent,
|
|
12564
|
+
// data: {
|
|
12565
|
+
// group: this.service.model.externalFilterGroup.fields,
|
|
12566
|
+
// },
|
|
12567
|
+
// inputName: 'data',
|
|
12568
|
+
// isExpanded: true,
|
|
12569
|
+
// };
|
|
12570
|
+
// }
|
|
12571
|
+
}
|
|
12572
|
+
// constructFilter(): void {
|
|
12573
|
+
// if (this.filter && this.filterComponentRef) {
|
|
12574
|
+
// return;
|
|
12575
|
+
// }
|
|
12576
|
+
// // this.filter = {
|
|
12577
|
+
// // data: this.service.model?.groupFilter?.filters! as FilterExpressionField[],
|
|
12578
|
+
// // type: SmartFilterType.Simple,
|
|
12579
|
+
// // showPossibleActions: false,
|
|
12580
|
+
// // };
|
|
12581
|
+
// this.filterVcRef?.clear();
|
|
12582
|
+
// this.filterComponentRef = this.cfService.createComponent(
|
|
12583
|
+
// this.filterVcRef!,
|
|
12584
|
+
// SmartFilterComponent,
|
|
12585
|
+
// new Map<string, any>([['filter', this.filter]])
|
|
12586
|
+
// );
|
|
12587
|
+
// this.filterComponentRef.instance?.service.change
|
|
12588
|
+
// .pipe(takeUntil(this._destroy$))
|
|
12589
|
+
// .subscribe(() => {
|
|
12590
|
+
// let uiAction: UiAction = this.service.model?.filterGroupsAction!;
|
|
12591
|
+
// uiAction.params = {
|
|
12592
|
+
// filter: {
|
|
12593
|
+
// filters: this.filterComponentRef?.instance.service.filter?.data,
|
|
12594
|
+
// },
|
|
12595
|
+
// };
|
|
12596
|
+
// // let uiActionModel: UiActionModel = {
|
|
12597
|
+
// // serviceToUse: this.service,
|
|
12598
|
+
// // uiAction,
|
|
12599
|
+
// // };
|
|
12600
|
+
// // this.uiActionService.uiActionModel = uiActionModel;
|
|
12601
|
+
// // this.uiActionService.execute(uiAction);
|
|
12602
|
+
// });
|
|
12603
|
+
// }
|
|
12604
|
+
addDataSource() {
|
|
12605
|
+
// this.service.addDataSource();
|
|
12606
|
+
}
|
|
12607
|
+
}
|
|
12608
|
+
SmartFilterParamsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, deps: [{ token: ComponentFactoryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12609
|
+
SmartFilterParamsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterParamsComponent, selector: "smart-filter-group-params", inputs: { service: "service" }, viewQueries: [{ propertyName: "filterVcRef", first: true, predicate: ["smartFilter"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div class=\"targetGroupFilterParamsContainer\">\r\n <ng-template #smartFilter></ng-template>\r\n <div class=\"dataSource-options\">\r\n <div class=\"dataSource-btns\">\r\n <div class=\"dataSource-btn\">K\u00FCls\u0151 adatb\u00E1zis</div>\r\n <div class=\"dataSource-btn dataSource-btn-disabled\">Bels\u0151 adatb\u00E1zis</div>\r\n </div>\r\n <div class=\"dataSource-add-database\">\r\n <div class=\"dataSource-add-database-title\">\r\n <smart-icon icon=\"Ic24_View_Table\" color=\"sucess\"></smart-icon>\r\n Adatb\u00E1zis\r\n </div>\r\n <button title=\"add\" mat-icon-button (click)=\"addDataSource()\">\r\n <smart-icon icon=\"Ic24_Plus_Circle\" color=\"success\"></smart-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"sections\">\r\n <smart-expandable-section\r\n class=\"excel\"\r\n *ngIf=\"expandableSectionsFromExcel\"\r\n [data]=\"expandableSectionsFromExcel!\"\r\n ></smart-expandable-section>\r\n <smart-expandable-section\r\n [data]=\"data\"\r\n *ngFor=\"let data of expandableSections\"\r\n ></smart-expandable-section>\r\n </div>\r\n</div>\r\n", styles: [".targetGroupFilterParamsContainer{padding:1.5rem;display:flex;flex-direction:column;gap:2.5rem;height:calc(100% - 3rem);overflow:auto;border-right:2px solid var(--primary-dark-color)}.sections{display:flex;flex-direction:column;gap:.25rem}.targetGroupFilterParamsContainer .excel::ng-deep .mat-expansion-panel-body{background-color:var(--success-lighter-color)}.targetGroupFilterParamsContainer .excel::ng-deep .mat-expansion-panel-header.mat-expanded{background-color:var(--success-color)!important}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-body{padding:0 0 0 1rem!important;background-color:var(--light-blue-color)}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header{background-color:var(--primary-light-color);padding:.75rem;height:auto}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header-title{color:var(--primary-lighter-color);font-weight:600}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header.mat-expanded{background-color:var(--accent-color)!important;padding:.75rem;height:auto}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header.mat-expanded .mat-expansion-panel-header-title{color:#fff}.dataSource-btns{display:flex;flex-direction:row;justify-content:space-around;background-color:var(--success-lighter-color);height:44px;padding:8px 12px;align-items:center;border:1.5px solid var(--success-color);border-left:6px solid var(--success-color);border-radius:4px}.dataSource-btn{display:flex;padding:1rem 2rem;justify-content:center;align-items:center;background-color:var(--success-color);border-radius:4px;cursor:pointer}.dataSource-btn-disabled{background-color:var(--success-lighter-color);cursor:auto}.dataSource-add-database{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--success-lighter-color);padding:8px;border-radius:4px}.dataSource-add-database-title{display:flex;flex-direction:row;gap:1rem;align-items:center}.dataSource-options{display:flex;flex-direction:column;gap:1rem}\n"], components: [{ type: SmartIconComponent, selector: "smart-icon", inputs: ["icon", "color"] }, { type: ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, decorators: [{
|
|
12611
|
+
type: Component,
|
|
12612
|
+
args: [{ selector: 'smart-filter-group-params', template: "<div class=\"targetGroupFilterParamsContainer\">\r\n <ng-template #smartFilter></ng-template>\r\n <div class=\"dataSource-options\">\r\n <div class=\"dataSource-btns\">\r\n <div class=\"dataSource-btn\">K\u00FCls\u0151 adatb\u00E1zis</div>\r\n <div class=\"dataSource-btn dataSource-btn-disabled\">Bels\u0151 adatb\u00E1zis</div>\r\n </div>\r\n <div class=\"dataSource-add-database\">\r\n <div class=\"dataSource-add-database-title\">\r\n <smart-icon icon=\"Ic24_View_Table\" color=\"sucess\"></smart-icon>\r\n Adatb\u00E1zis\r\n </div>\r\n <button title=\"add\" mat-icon-button (click)=\"addDataSource()\">\r\n <smart-icon icon=\"Ic24_Plus_Circle\" color=\"success\"></smart-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"sections\">\r\n <smart-expandable-section\r\n class=\"excel\"\r\n *ngIf=\"expandableSectionsFromExcel\"\r\n [data]=\"expandableSectionsFromExcel!\"\r\n ></smart-expandable-section>\r\n <smart-expandable-section\r\n [data]=\"data\"\r\n *ngFor=\"let data of expandableSections\"\r\n ></smart-expandable-section>\r\n </div>\r\n</div>\r\n", styles: [".targetGroupFilterParamsContainer{padding:1.5rem;display:flex;flex-direction:column;gap:2.5rem;height:calc(100% - 3rem);overflow:auto;border-right:2px solid var(--primary-dark-color)}.sections{display:flex;flex-direction:column;gap:.25rem}.targetGroupFilterParamsContainer .excel::ng-deep .mat-expansion-panel-body{background-color:var(--success-lighter-color)}.targetGroupFilterParamsContainer .excel::ng-deep .mat-expansion-panel-header.mat-expanded{background-color:var(--success-color)!important}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-body{padding:0 0 0 1rem!important;background-color:var(--light-blue-color)}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header{background-color:var(--primary-light-color);padding:.75rem;height:auto}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header-title{color:var(--primary-lighter-color);font-weight:600}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header.mat-expanded{background-color:var(--accent-color)!important;padding:.75rem;height:auto}.targetGroupFilterParamsContainer::ng-deep .mat-expansion-panel-header.mat-expanded .mat-expansion-panel-header-title{color:#fff}.dataSource-btns{display:flex;flex-direction:row;justify-content:space-around;background-color:var(--success-lighter-color);height:44px;padding:8px 12px;align-items:center;border:1.5px solid var(--success-color);border-left:6px solid var(--success-color);border-radius:4px}.dataSource-btn{display:flex;padding:1rem 2rem;justify-content:center;align-items:center;background-color:var(--success-color);border-radius:4px;cursor:pointer}.dataSource-btn-disabled{background-color:var(--success-lighter-color);cursor:auto}.dataSource-add-database{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--success-lighter-color);padding:8px;border-radius:4px}.dataSource-add-database-title{display:flex;flex-direction:row;gap:1rem;align-items:center}.dataSource-options{display:flex;flex-direction:column;gap:1rem}\n"] }]
|
|
12613
|
+
}], ctorParameters: function () { return [{ type: ComponentFactoryService }]; }, propDecorators: { service: [{
|
|
12614
|
+
type: Input
|
|
12615
|
+
}], filterVcRef: [{
|
|
12616
|
+
type: ViewChild,
|
|
12617
|
+
args: ['smartFilter', { read: ViewContainerRef }]
|
|
12618
|
+
}] } });
|
|
12619
|
+
|
|
12620
|
+
class SmartFilterExpressionItemComponent {
|
|
12621
|
+
constructor(service) {
|
|
12622
|
+
this.service = service;
|
|
12623
|
+
this.isSelected = false;
|
|
12624
|
+
}
|
|
12625
|
+
ngOnInit() {
|
|
12626
|
+
this.isSelected =
|
|
12627
|
+
JSON.stringify(this.service.model?.selectedField) === JSON.stringify(this.item);
|
|
12628
|
+
}
|
|
12629
|
+
setOperatorTo(event, operationType) {
|
|
12630
|
+
event?.stopPropagation();
|
|
12631
|
+
this.item.expressionData.boolOperator = operationType;
|
|
12632
|
+
this.service.peformWidgetAction({
|
|
12633
|
+
code: 'UPDATE_FILTER_EXPRESSION',
|
|
12634
|
+
params: {
|
|
12635
|
+
model: this.item,
|
|
12636
|
+
},
|
|
12637
|
+
});
|
|
12638
|
+
}
|
|
12639
|
+
select(event, item) {
|
|
12640
|
+
event?.stopPropagation();
|
|
12641
|
+
if (!this.isSelected) {
|
|
12642
|
+
this.service.peformWidgetAction({
|
|
12643
|
+
code: 'SELECT_FIELD',
|
|
12644
|
+
params: {
|
|
12645
|
+
model: this.item,
|
|
12646
|
+
},
|
|
12647
|
+
});
|
|
12648
|
+
}
|
|
12649
|
+
else {
|
|
12650
|
+
this.service.peformWidgetAction({
|
|
12651
|
+
code: 'SELECT_FIELD',
|
|
12652
|
+
params: {
|
|
12653
|
+
model: this.item,
|
|
12654
|
+
},
|
|
12655
|
+
});
|
|
12656
|
+
}
|
|
12657
|
+
}
|
|
12658
|
+
}
|
|
12659
|
+
SmartFilterExpressionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12660
|
+
SmartFilterExpressionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterExpressionItemComponent, selector: "app-expression-item", inputs: { item: "item", hasNext: "hasNext" }, ngImport: i0, template: "<div class=\"expressionItemContainer\">\r\n <div\r\n class=\"expressionItemInnerContainer\"\r\n [ngClass]=\"\r\n item.expressionData?.currentOperation === 'EXPRESSION'\r\n ? isSelected\r\n ? 'selectedExpressionContainer'\r\n : 'expressionContainer'\r\n : ''\r\n \"\r\n (click)=\"select($event, item)\"\r\n >\r\n <div\r\n *ngIf=\"\r\n item.expressionData?.currentOperation === 'EXPRESSION';\r\n then expression;\r\n else simpleItem\r\n \"\r\n ></div>\r\n <ng-template #expression>\r\n <div class=\"expressionItemBubble expression\">[</div>\r\n <app-expression-item\r\n [item]=\"subItem\"\r\n [hasNext]=\"i < (item.subFieldList?.filters)!.length - 1\"\r\n *ngFor=\"let subItem of item.subFieldList?.filters; let i = index\"\r\n ></app-expression-item>\r\n <div class=\"expressionItemBubble expression\">]</div>\r\n </ng-template>\r\n <ng-template #simpleItem>\r\n <div\r\n class=\"expressionItemBubble simpleItem\"\r\n [ngClass]=\"isSelected ? 'selectedSimpleItem' : ''\"\r\n >\r\n {{ item.label\r\n }}{{ item.expressionData?.operand2?.valueAsString ? \": \" : \"\" }}\r\n <b>\r\n {{ item.expressionData?.operand2?.valueAsString }}\r\n </b>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div *ngIf=\"hasNext\" class=\"relationItemBubble\">\r\n <button\r\n mat-button\r\n (click)=\"setOperatorTo($event, 'AND')\"\r\n [ngClass]=\"\r\n item.expressionData?.boolOperator === 'AND' ? 'mat-raised-button' : ''\r\n \"\r\n color=\"black\"\r\n >\r\n \u00C9S\r\n </button>\r\n <button\r\n mat-button\r\n (click)=\"setOperatorTo($event, 'OR')\"\r\n [ngClass]=\"\r\n item.expressionData?.boolOperator === 'OR' ? 'mat-raised-button' : ''\r\n \"\r\n color=\"black\"\r\n >\r\n VAGY\r\n </button>\r\n </div>\r\n <!-- <button mat-mini-fab color=\"gray\">\r\n\t\t<smart-icon icon=\"X\" color=\"gray\"></smart-icon>\r\n\t</button> -->\r\n</div>\r\n", styles: [".expressionItemContainer{display:flex;flex-direction:row;gap:.75rem}.expressionItemInnerContainer{display:flex;flex-direction:row;grid-area:.75rem;padding:.25rem;border-radius:.25rem}.expressionContainer{border:1px dashed var(--primary-lighter-gray-color);cursor:pointer}.selectedExpressionContainer{border:2px dashed var(--primary-darker-color)}.expressionItemBubble,.relationItemBubble{display:flex;flex-direction:row;border-radius:1.5rem}.expressionItemBubble{padding:.75rem}.expression{background-color:var(--inner-container);font-weight:600;margin:auto 0}.simpleItem{background-color:#c6ddff;cursor:pointer}.selectedSimpleItem{border:2px solid var(--primary-color)}.relationItemBubble{border:1px solid #cdcdcd;padding:.25rem}.relationItemBubble .mat-button{border-radius:1.5rem;height:100%;margin:auto 0}\n"], components: [{ type: SmartFilterExpressionItemComponent, selector: "app-expression-item", inputs: ["item", "hasNext"] }], directives: [{ type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, decorators: [{
|
|
12662
|
+
type: Component,
|
|
12663
|
+
args: [{ selector: 'app-expression-item', template: "<div class=\"expressionItemContainer\">\r\n <div\r\n class=\"expressionItemInnerContainer\"\r\n [ngClass]=\"\r\n item.expressionData?.currentOperation === 'EXPRESSION'\r\n ? isSelected\r\n ? 'selectedExpressionContainer'\r\n : 'expressionContainer'\r\n : ''\r\n \"\r\n (click)=\"select($event, item)\"\r\n >\r\n <div\r\n *ngIf=\"\r\n item.expressionData?.currentOperation === 'EXPRESSION';\r\n then expression;\r\n else simpleItem\r\n \"\r\n ></div>\r\n <ng-template #expression>\r\n <div class=\"expressionItemBubble expression\">[</div>\r\n <app-expression-item\r\n [item]=\"subItem\"\r\n [hasNext]=\"i < (item.subFieldList?.filters)!.length - 1\"\r\n *ngFor=\"let subItem of item.subFieldList?.filters; let i = index\"\r\n ></app-expression-item>\r\n <div class=\"expressionItemBubble expression\">]</div>\r\n </ng-template>\r\n <ng-template #simpleItem>\r\n <div\r\n class=\"expressionItemBubble simpleItem\"\r\n [ngClass]=\"isSelected ? 'selectedSimpleItem' : ''\"\r\n >\r\n {{ item.label\r\n }}{{ item.expressionData?.operand2?.valueAsString ? \": \" : \"\" }}\r\n <b>\r\n {{ item.expressionData?.operand2?.valueAsString }}\r\n </b>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div *ngIf=\"hasNext\" class=\"relationItemBubble\">\r\n <button\r\n mat-button\r\n (click)=\"setOperatorTo($event, 'AND')\"\r\n [ngClass]=\"\r\n item.expressionData?.boolOperator === 'AND' ? 'mat-raised-button' : ''\r\n \"\r\n color=\"black\"\r\n >\r\n \u00C9S\r\n </button>\r\n <button\r\n mat-button\r\n (click)=\"setOperatorTo($event, 'OR')\"\r\n [ngClass]=\"\r\n item.expressionData?.boolOperator === 'OR' ? 'mat-raised-button' : ''\r\n \"\r\n color=\"black\"\r\n >\r\n VAGY\r\n </button>\r\n </div>\r\n <!-- <button mat-mini-fab color=\"gray\">\r\n\t\t<smart-icon icon=\"X\" color=\"gray\"></smart-icon>\r\n\t</button> -->\r\n</div>\r\n", styles: [".expressionItemContainer{display:flex;flex-direction:row;gap:.75rem}.expressionItemInnerContainer{display:flex;flex-direction:row;grid-area:.75rem;padding:.25rem;border-radius:.25rem}.expressionContainer{border:1px dashed var(--primary-lighter-gray-color);cursor:pointer}.selectedExpressionContainer{border:2px dashed var(--primary-darker-color)}.expressionItemBubble,.relationItemBubble{display:flex;flex-direction:row;border-radius:1.5rem}.expressionItemBubble{padding:.75rem}.expression{background-color:var(--inner-container);font-weight:600;margin:auto 0}.simpleItem{background-color:#c6ddff;cursor:pointer}.selectedSimpleItem{border:2px solid var(--primary-color)}.relationItemBubble{border:1px solid #cdcdcd;padding:.25rem}.relationItemBubble .mat-button{border-radius:1.5rem;height:100%;margin:auto 0}\n"] }]
|
|
12664
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { item: [{
|
|
12665
|
+
type: Input
|
|
12666
|
+
}], hasNext: [{
|
|
12667
|
+
type: Input
|
|
12668
|
+
}] } });
|
|
12669
|
+
|
|
12670
|
+
class SmartFilterExpressionItemsComponent {
|
|
12671
|
+
constructor(service) {
|
|
12672
|
+
this.service = service;
|
|
12673
|
+
this._destroy$ = new Subject();
|
|
12674
|
+
this.isSelected = false;
|
|
12675
|
+
this.service.modelChanged.subscribe(() => {
|
|
12676
|
+
console.log(this.service.model);
|
|
12677
|
+
this.isSelected = this.service.model?.selectedField === null;
|
|
12678
|
+
});
|
|
12679
|
+
this.isSelected = this.service.model?.selectedField === null;
|
|
12680
|
+
}
|
|
12681
|
+
ngOnChanges(changes) {
|
|
12682
|
+
console.log(changes);
|
|
12683
|
+
}
|
|
12684
|
+
ngOnInit() { }
|
|
12685
|
+
ngOnDestroy() {
|
|
12686
|
+
this._destroy$.next();
|
|
12687
|
+
this._destroy$.complete();
|
|
12688
|
+
}
|
|
12689
|
+
select() {
|
|
12690
|
+
// this.service.selectFilterExpressionField(undefined);
|
|
12691
|
+
}
|
|
12692
|
+
drop(event) {
|
|
12693
|
+
moveItemInArray(this.items, event.previousIndex, event.currentIndex);
|
|
12694
|
+
}
|
|
12695
|
+
}
|
|
12696
|
+
SmartFilterExpressionItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12697
|
+
SmartFilterExpressionItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterExpressionItemsComponent, selector: "app-expression-items", inputs: { items: "items" }, usesOnChanges: true, ngImport: i0, template: "<div\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n (cdkDropListDropped)=\"drop($event)\"\r\n class=\"expressionsContainer example-list\"\r\n [ngClass]=\"isSelected ? 'selected' : ''\"\r\n>\r\n <div cdkDrag class=\"expressionItem\" *ngFor=\"let item of items; let i = index\">\r\n <app-expression-item\r\n [item]=\"item\"\r\n [hasNext]=\"i < items.length - 1\"\r\n ></app-expression-item>\r\n </div>\r\n</div>\r\n", styles: [".expressionsContainer{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem;border:1px dashed var(--primary-lighter-gray-color);padding:.25rem;border-radius:.25rem}.selected{border:2px dashed var(--primary-darker-color)}.expressionItem{margin:auto 0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.example-custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], components: [{ type: SmartFilterExpressionItemComponent, selector: "app-expression-item", inputs: ["item", "hasNext"] }], directives: [{ type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, decorators: [{
|
|
12699
|
+
type: Component,
|
|
12700
|
+
args: [{ selector: 'app-expression-items', template: "<div\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n (cdkDropListDropped)=\"drop($event)\"\r\n class=\"expressionsContainer example-list\"\r\n [ngClass]=\"isSelected ? 'selected' : ''\"\r\n>\r\n <div cdkDrag class=\"expressionItem\" *ngFor=\"let item of items; let i = index\">\r\n <app-expression-item\r\n [item]=\"item\"\r\n [hasNext]=\"i < items.length - 1\"\r\n ></app-expression-item>\r\n </div>\r\n</div>\r\n", styles: [".expressionsContainer{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem;border:1px dashed var(--primary-lighter-gray-color);padding:.25rem;border-radius:.25rem}.selected{border:2px dashed var(--primary-darker-color)}.expressionItem{margin:auto 0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.example-custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
12701
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { items: [{
|
|
12702
|
+
type: Input
|
|
12703
|
+
}] } });
|
|
12704
|
+
|
|
12705
|
+
class SmartFilterEditorContentComponent {
|
|
12706
|
+
constructor(layoutService) {
|
|
12707
|
+
this.layoutService = layoutService;
|
|
12708
|
+
this._destroy$ = new Subject();
|
|
12709
|
+
this.uiActionModels = [];
|
|
12710
|
+
this.expressionUiActionModels = [];
|
|
12711
|
+
}
|
|
12712
|
+
ngOnInit() {
|
|
12713
|
+
this.service.load();
|
|
12714
|
+
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
12715
|
+
this.setUp();
|
|
12716
|
+
});
|
|
12717
|
+
}
|
|
12718
|
+
ngOnDestroy() {
|
|
12719
|
+
this._destroy$.next();
|
|
12720
|
+
this._destroy$.complete();
|
|
12721
|
+
}
|
|
12722
|
+
setUp() {
|
|
12723
|
+
this.constructUiActionModels();
|
|
12724
|
+
if (this.service.model.selectedFieldEditor) {
|
|
12725
|
+
this.constructForm();
|
|
12726
|
+
}
|
|
12727
|
+
else {
|
|
12728
|
+
this.smartForm = undefined;
|
|
12729
|
+
}
|
|
12730
|
+
}
|
|
12731
|
+
constructUiActionModels() {
|
|
12732
|
+
if (this.service.model?.possibleActions) {
|
|
12733
|
+
this.uiActionModels = this.service.model.possibleActions.map((action) => {
|
|
12734
|
+
return {
|
|
12735
|
+
serviceToUse: this.service,
|
|
12736
|
+
uiAction: action,
|
|
12737
|
+
};
|
|
12738
|
+
});
|
|
12739
|
+
}
|
|
12740
|
+
if (this.service.model?.selectedFieldEditor?.possibleActions) {
|
|
12741
|
+
this.expressionUiActionModels = this.service.model?.selectedFieldEditor.possibleActions.map((uiAction) => {
|
|
12742
|
+
let copiedUiAction = {};
|
|
12743
|
+
Object.keys(uiAction).map((key) => {
|
|
12744
|
+
copiedUiAction[key] = uiAction[key];
|
|
12745
|
+
});
|
|
12746
|
+
copiedUiAction.params = {
|
|
12747
|
+
field: this.service.model?.selectedField,
|
|
12748
|
+
};
|
|
12749
|
+
return {
|
|
12750
|
+
serviceToUse: this.service,
|
|
12751
|
+
uiAction: copiedUiAction,
|
|
12752
|
+
};
|
|
12753
|
+
});
|
|
12754
|
+
}
|
|
12755
|
+
}
|
|
12756
|
+
constructForm() {
|
|
12757
|
+
let generatedWidgets = this.layoutService.render({
|
|
12758
|
+
layoutDefinitions: this.service.model?.selectedFieldEditor?.layoutDef?.widgets,
|
|
12759
|
+
});
|
|
12760
|
+
this.smartForm = {
|
|
12761
|
+
direction: SmartFormWidgetDirection.ROW,
|
|
12762
|
+
componentModel: { data: this.service.model?.selectedField },
|
|
12763
|
+
widgets: generatedWidgets,
|
|
12764
|
+
};
|
|
12765
|
+
}
|
|
12766
|
+
save() {
|
|
12767
|
+
this.formChild?.submitForm(false);
|
|
12768
|
+
this.service.peformWidgetAction({
|
|
12769
|
+
code: 'UPDATE_FILTER_EXPRESSION',
|
|
12770
|
+
params: {
|
|
12771
|
+
model: this.service.model?.selectedField,
|
|
12772
|
+
},
|
|
12773
|
+
});
|
|
12774
|
+
}
|
|
12775
|
+
remove() {
|
|
12776
|
+
this.service.peformWidgetAction({
|
|
12777
|
+
code: 'REMOVE_FILTER_EXPRESSION',
|
|
12778
|
+
params: {
|
|
12779
|
+
model: this.service.model?.selectedField,
|
|
12780
|
+
},
|
|
12781
|
+
});
|
|
12782
|
+
}
|
|
12783
|
+
getFilteredUiActionModels(filterPredicate) {
|
|
12784
|
+
// return this.service.model!.possibleActions!.filter(filterPredicate).map((uiAction: UiAction) => {
|
|
12785
|
+
// return {
|
|
12786
|
+
// serviceToUse: this.service,
|
|
12787
|
+
// uiAction,
|
|
12788
|
+
// };
|
|
12789
|
+
// });
|
|
12790
|
+
return [];
|
|
12791
|
+
}
|
|
12792
|
+
}
|
|
12793
|
+
SmartFilterEditorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, deps: [{ token: SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12794
|
+
SmartFilterEditorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartFilterEditorContentComponent, selector: "smart-filter-expression-editor", inputs: { service: "service" }, viewQueries: [{ propertyName: "formChild", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<div class=\"targetGroupContentContainer\">\r\n <h3>C\u00E9lcsoport meghat\u00E1roz\u00E1sa</h3>\r\n\r\n <div class=\"uiActionsBar\">\r\n <div class=\"uiActionsInsideOfBar\">\r\n <smart-ui-action-toolbar [uiActionModels]=\"uiActionModels\"></smart-ui-action-toolbar>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"\r\n service?.model?.model?.workplaceList?.filters?.length;\r\n then withParameters;\r\n else withoutParameters\r\n \"\r\n ></div>\r\n <ng-template #withoutParameters>\r\n <div class=\"withoutParametersContainer\">\r\n <span class=\"mat-body\"> M\u00E9g nincs megadva param\u00E9ter </span>\r\n </div>\r\n </ng-template>\r\n <ng-template #withParameters>\r\n <div class=\"withParametersContainer\">\r\n <div\r\n class=\"expressionsContainer\"\r\n *ngIf=\"service?.model?.model?.workplaceList?.filters?.length\"\r\n >\r\n <app-expression-items\r\n [items]=\"(service.model?.model?.workplaceList)!.filters\"\r\n ></app-expression-items>\r\n </div>\r\n <div class=\"expressionEditorContainer\">\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <div *ngIf=\"smartForm\">\r\n <button (click)=\"save()\" mat-raised-button color=\"primary\">Ment\u00E9s</button>\r\n <button (click)=\"remove()\" mat-button color=\"accent\">T\u00F6rl\u00E9s</button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n", styles: [".targetGroupContentContainer{padding:1.5rem;display:flex;flex-direction:column;gap:2.5rem;height:calc(100% - 3rem);overflow:auto;position:relative}.targetGroupContentContainer h3{margin:0;font-weight:600}.uiActionsBar{padding:1.5rem;border-radius:.25rem;background-color:var(--container-color)}.uiActionsBar,.uiActionsInsideOfBar{display:flex;flex-direction:row;gap:1rem}.uiActionsInsideOfBar{position:relative;left:-3rem}.section,.notSection{display:flex;flex-direction:row;gap:1rem}.section:before{content:\"\";border:1px solid #d9d9d9;align-self:stretch}.withoutParametersContainer{display:flex;flex-direction:column;padding:2rem;background-color:var(--container-color);border-radius:.25rem}.withoutParametersContainer .mat-body{font-weight:600;text-align:center}.withParametersContainer{display:flex;flex-direction:column;padding:1.5rem;background-color:var(--container-color);border-radius:.25rem;gap:.75rem}.expressionsContainer{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem;margin-bottom:1px solid #cdcdcd}.expressionEditorContainer{display:flex;flex-direction:column;gap:.75rem}\n"], components: [{ type: UiActionToolbarComponent, selector: "smart-ui-action-toolbar", inputs: ["uiActionModels", "uiActionDescriptorService"] }, { type: SmartFilterExpressionItemsComponent, selector: "app-expression-items", inputs: ["items"] }, { type: SmartformComponent, selector: "smartform", inputs: ["smartForm"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, decorators: [{
|
|
12796
|
+
type: Component,
|
|
12797
|
+
args: [{ selector: 'smart-filter-expression-editor', template: "<div class=\"targetGroupContentContainer\">\r\n <h3>C\u00E9lcsoport meghat\u00E1roz\u00E1sa</h3>\r\n\r\n <div class=\"uiActionsBar\">\r\n <div class=\"uiActionsInsideOfBar\">\r\n <smart-ui-action-toolbar [uiActionModels]=\"uiActionModels\"></smart-ui-action-toolbar>\r\n </div>\r\n </div>\r\n <div\r\n *ngIf=\"\r\n service?.model?.model?.workplaceList?.filters?.length;\r\n then withParameters;\r\n else withoutParameters\r\n \"\r\n ></div>\r\n <ng-template #withoutParameters>\r\n <div class=\"withoutParametersContainer\">\r\n <span class=\"mat-body\"> M\u00E9g nincs megadva param\u00E9ter </span>\r\n </div>\r\n </ng-template>\r\n <ng-template #withParameters>\r\n <div class=\"withParametersContainer\">\r\n <div\r\n class=\"expressionsContainer\"\r\n *ngIf=\"service?.model?.model?.workplaceList?.filters?.length\"\r\n >\r\n <app-expression-items\r\n [items]=\"(service.model?.model?.workplaceList)!.filters\"\r\n ></app-expression-items>\r\n </div>\r\n <div class=\"expressionEditorContainer\">\r\n <smartform #form [smartForm]=\"smartForm\"></smartform>\r\n <div *ngIf=\"smartForm\">\r\n <button (click)=\"save()\" mat-raised-button color=\"primary\">Ment\u00E9s</button>\r\n <button (click)=\"remove()\" mat-button color=\"accent\">T\u00F6rl\u00E9s</button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n", styles: [".targetGroupContentContainer{padding:1.5rem;display:flex;flex-direction:column;gap:2.5rem;height:calc(100% - 3rem);overflow:auto;position:relative}.targetGroupContentContainer h3{margin:0;font-weight:600}.uiActionsBar{padding:1.5rem;border-radius:.25rem;background-color:var(--container-color)}.uiActionsBar,.uiActionsInsideOfBar{display:flex;flex-direction:row;gap:1rem}.uiActionsInsideOfBar{position:relative;left:-3rem}.section,.notSection{display:flex;flex-direction:row;gap:1rem}.section:before{content:\"\";border:1px solid #d9d9d9;align-self:stretch}.withoutParametersContainer{display:flex;flex-direction:column;padding:2rem;background-color:var(--container-color);border-radius:.25rem}.withoutParametersContainer .mat-body{font-weight:600;text-align:center}.withParametersContainer{display:flex;flex-direction:column;padding:1.5rem;background-color:var(--container-color);border-radius:.25rem;gap:.75rem}.expressionsContainer{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem;margin-bottom:1px solid #cdcdcd}.expressionEditorContainer{display:flex;flex-direction:column;gap:.75rem}\n"] }]
|
|
12798
|
+
}], ctorParameters: function () { return [{ type: SmartformLayoutDefinitionService }]; }, propDecorators: { service: [{
|
|
12799
|
+
type: Input
|
|
12800
|
+
}], formChild: [{
|
|
12801
|
+
type: ViewChild,
|
|
12802
|
+
args: ['form']
|
|
12803
|
+
}] } });
|
|
12804
|
+
|
|
12805
|
+
class SmartFilterEditorModule {
|
|
12806
|
+
}
|
|
12807
|
+
SmartFilterEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12808
|
+
SmartFilterEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, declarations: [SmartFilterParamsComponent,
|
|
12809
|
+
SmartFilterParamComponent,
|
|
12810
|
+
SmartFilterEditorContentComponent,
|
|
12811
|
+
SmartFilterExpressionItemsComponent,
|
|
12812
|
+
SmartFilterExpressionItemComponent], imports: [CommonModule,
|
|
12813
|
+
SmartIconModule,
|
|
12814
|
+
SmartExpandableSectionModule,
|
|
12815
|
+
SmartViewContextModule,
|
|
12816
|
+
SmartformModule] });
|
|
12817
|
+
SmartFilterEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, providers: [], imports: [[
|
|
12818
|
+
CommonModule,
|
|
12819
|
+
SmartIconModule,
|
|
12820
|
+
SmartExpandableSectionModule,
|
|
12821
|
+
SmartViewContextModule,
|
|
12822
|
+
SmartformModule,
|
|
12823
|
+
]] });
|
|
12824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, decorators: [{
|
|
12825
|
+
type: NgModule,
|
|
12826
|
+
args: [{
|
|
12827
|
+
declarations: [
|
|
12828
|
+
SmartFilterParamsComponent,
|
|
12829
|
+
SmartFilterParamComponent,
|
|
12830
|
+
SmartFilterEditorContentComponent,
|
|
12831
|
+
SmartFilterExpressionItemsComponent,
|
|
12832
|
+
SmartFilterExpressionItemComponent,
|
|
12833
|
+
],
|
|
12834
|
+
imports: [
|
|
12835
|
+
CommonModule,
|
|
12836
|
+
SmartIconModule,
|
|
12837
|
+
SmartExpandableSectionModule,
|
|
12838
|
+
SmartViewContextModule,
|
|
12839
|
+
SmartformModule,
|
|
12840
|
+
],
|
|
12841
|
+
exports: [],
|
|
12842
|
+
providers: [],
|
|
12843
|
+
}]
|
|
12844
|
+
}] });
|
|
12845
|
+
|
|
12846
|
+
class SmartNgClientModule {
|
|
12847
|
+
}
|
|
12848
|
+
SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12849
|
+
SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
|
|
12850
|
+
MatCommonModule,
|
|
12851
|
+
ComponentFactoryServiceModule,
|
|
12852
|
+
SmartViewContextModule,
|
|
12853
|
+
SmartdialogModule,
|
|
12854
|
+
SmartFilterModule,
|
|
12855
|
+
SmartformModule,
|
|
12856
|
+
SmartGridModule,
|
|
12857
|
+
SmartIconModule,
|
|
12858
|
+
SmartNavbarModule,
|
|
12859
|
+
SmartSessionModule,
|
|
12860
|
+
SmartTabGroupModule,
|
|
12861
|
+
SmarttableModule,
|
|
12862
|
+
SmartExpandableSectionModule,
|
|
12863
|
+
SmartComponentLayoutModule,
|
|
12864
|
+
SmartFilterEditorModule], exports: [ComponentFactoryServiceModule,
|
|
12165
12865
|
SmartComponentLayoutModule,
|
|
12166
12866
|
SmartdialogModule,
|
|
12167
12867
|
SmartExpandableSectionModule,
|
|
@@ -12192,6 +12892,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
12192
12892
|
SmarttableModule,
|
|
12193
12893
|
SmartExpandableSectionModule,
|
|
12194
12894
|
SmartComponentLayoutModule,
|
|
12895
|
+
SmartFilterEditorModule,
|
|
12195
12896
|
], ComponentFactoryServiceModule,
|
|
12196
12897
|
SmartComponentLayoutModule,
|
|
12197
12898
|
SmartdialogModule,
|
|
@@ -12226,6 +12927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12226
12927
|
SmarttableModule,
|
|
12227
12928
|
SmartExpandableSectionModule,
|
|
12228
12929
|
SmartComponentLayoutModule,
|
|
12930
|
+
SmartFilterEditorModule,
|
|
12229
12931
|
],
|
|
12230
12932
|
exports: [
|
|
12231
12933
|
ComponentFactoryServiceModule,
|
|
@@ -12431,6 +13133,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
12431
13133
|
delete uiActionRequest.params['param'];
|
|
12432
13134
|
delete uiActionRequest.params['_files'];
|
|
12433
13135
|
delete uiActionRequest.params['isMultiple'];
|
|
13136
|
+
// await this.sendModelToServer();
|
|
12434
13137
|
if (!isMultiple) {
|
|
12435
13138
|
await this.viewContext.performUploadAction(this.uuid, uiActionRequest, param, files[0]);
|
|
12436
13139
|
}
|
|
@@ -12439,15 +13142,26 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
12439
13142
|
}
|
|
12440
13143
|
}
|
|
12441
13144
|
else if (widgetId && nodeId) {
|
|
13145
|
+
// await this.sendModelToServer();
|
|
12442
13146
|
await this.viewContext.performWidgetAction(this.uuid, widgetId, nodeId, uiActionRequest);
|
|
12443
13147
|
}
|
|
12444
13148
|
else if (widgetId) {
|
|
13149
|
+
// await this.sendModelToServer();
|
|
12445
13150
|
await this.viewContext.performWidgetMainAction(this.uuid, widgetId, uiActionRequest);
|
|
12446
13151
|
}
|
|
12447
13152
|
else {
|
|
12448
13153
|
await this.viewContext.performAction(this.uuid, uiActionRequest);
|
|
12449
13154
|
}
|
|
12450
13155
|
}
|
|
13156
|
+
// private async sendModelToServer() {
|
|
13157
|
+
// this.submitForms(false);
|
|
13158
|
+
// let dataChange = {
|
|
13159
|
+
// kind: DataChangeKind.Widget,
|
|
13160
|
+
// source: '',
|
|
13161
|
+
// values: [['', this.getModel()]],
|
|
13162
|
+
// };
|
|
13163
|
+
// await this.viewContext.dataChanged(this.uuid!, dataChange);
|
|
13164
|
+
// }
|
|
12451
13165
|
handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
|
|
12452
13166
|
throw new Error('handleSpecificDemandsAsynchronously method not implemented.');
|
|
12453
13167
|
}
|
|
@@ -12767,5 +13481,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12767
13481
|
* Generated bundle index. Do not edit.
|
|
12768
13482
|
*/
|
|
12769
13483
|
|
|
12770
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$
|
|
13484
|
+
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$5 as BASE_PATH, COLLECTION_FORMATS$5 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$5 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, DefaultUiActionCode_CLOSE, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator, FilterExpressionBuilderGroup, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderBy, GridColumnContentType, GridDataAccessConfig, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptor, IS_ASYNC_PARAM_NAME, ImageResource, LayoutDirection, Link, MessageOptionType, MessageType, SelectionDefinition, SessionAPIS, SessionErrorBehaviour, SessionService, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterEditorContentComponent, SmartFilterEditorService, SmartFilterModule, SmartFilterParamsComponent, SmartFilterPosition, SmartFilterType, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformModule, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
12771
13485
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|