@smartbit4all/ng-client 3.1.35 → 3.1.37
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-filter-editor/api/api/filter.service.mjs +225 -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-form/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-form/api/index.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/param.mjs +1 -1
- package/esm2020/lib/smart-form/api/variables.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
- package/esm2020/lib/smart-ng-client.module.mjs +6 -2
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uploadedFile.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewEventHandler.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
- package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/value-api/index.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionData.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionKind.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetExpression.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetOperation.mjs +1 -1
- package/esm2020/lib/view-context/value-api/param.mjs +1 -1
- package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
- package/esm2020/projects.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +818 -78
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +800 -78
- 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.37.tgz +0 -0
- package/src/lib/smart-filter-editor/api/README.md +226 -0
- package/src/lib/smart-form/api/README.md +226 -226
- package/src/lib/smart-grid/api/grid-api/README.md +226 -226
- package/src/lib/view-context/value-api/README.md +226 -226
- package/smartbit4all-ng-client-3.1.35.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,
|
|
@@ -509,8 +509,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
509
509
|
type: Optional
|
|
510
510
|
}, {
|
|
511
511
|
type: Inject,
|
|
512
|
-
args: [BASE_PATH$
|
|
513
|
-
}] }, { type: Configuration$
|
|
512
|
+
args: [BASE_PATH$6]
|
|
513
|
+
}] }, { type: Configuration$6, decorators: [{
|
|
514
514
|
type: Optional
|
|
515
515
|
}] }];
|
|
516
516
|
} });
|
|
@@ -981,7 +981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
981
981
|
* Custom HttpParameterCodec
|
|
982
982
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
983
983
|
*/
|
|
984
|
-
class CustomHttpParameterCodec$
|
|
984
|
+
class CustomHttpParameterCodec$5 {
|
|
985
985
|
encodeKey(k) {
|
|
986
986
|
return encodeURIComponent(k);
|
|
987
987
|
}
|
|
@@ -996,15 +996,15 @@ class CustomHttpParameterCodec$4 {
|
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
const BASE_PATH$
|
|
1000
|
-
const COLLECTION_FORMATS$
|
|
999
|
+
const BASE_PATH$5 = new InjectionToken('basePath');
|
|
1000
|
+
const COLLECTION_FORMATS$5 = {
|
|
1001
1001
|
'csv': ',',
|
|
1002
1002
|
'tsv': ' ',
|
|
1003
1003
|
'ssv': ' ',
|
|
1004
1004
|
'pipes': '|'
|
|
1005
1005
|
};
|
|
1006
1006
|
|
|
1007
|
-
class Configuration$
|
|
1007
|
+
class Configuration$5 {
|
|
1008
1008
|
constructor(configurationParameters = {}) {
|
|
1009
1009
|
this.apiKeys = configurationParameters.apiKeys;
|
|
1010
1010
|
this.username = configurationParameters.username;
|
|
@@ -1111,7 +1111,7 @@ class ViewService {
|
|
|
1111
1111
|
this.httpClient = httpClient;
|
|
1112
1112
|
this.basePath = 'http://localhost';
|
|
1113
1113
|
this.defaultHeaders = new HttpHeaders();
|
|
1114
|
-
this.configuration = new Configuration$
|
|
1114
|
+
this.configuration = new Configuration$5();
|
|
1115
1115
|
if (configuration) {
|
|
1116
1116
|
this.configuration = configuration;
|
|
1117
1117
|
}
|
|
@@ -1124,7 +1124,7 @@ class ViewService {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
this.configuration.basePath = basePath;
|
|
1126
1126
|
}
|
|
1127
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
1127
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$5();
|
|
1128
1128
|
}
|
|
1129
1129
|
/**
|
|
1130
1130
|
* @param consumes string[] mime-types
|
|
@@ -1943,7 +1943,7 @@ class ViewService {
|
|
|
1943
1943
|
});
|
|
1944
1944
|
}
|
|
1945
1945
|
else {
|
|
1946
|
-
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$
|
|
1946
|
+
localVarFormParams = localVarFormParams.append('contents', [...contents].join(COLLECTION_FORMATS$5['csv'])) || localVarFormParams;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
1949
|
let responseType_ = 'json';
|
|
@@ -1970,7 +1970,7 @@ class ViewService {
|
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
|
-
ViewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
1973
|
+
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 });
|
|
1974
1974
|
ViewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, providedIn: 'root' });
|
|
1975
1975
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ViewService, decorators: [{
|
|
1976
1976
|
type: Injectable,
|
|
@@ -1982,8 +1982,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
1982
1982
|
type: Optional
|
|
1983
1983
|
}, {
|
|
1984
1984
|
type: Inject,
|
|
1985
|
-
args: [BASE_PATH$
|
|
1986
|
-
}] }, { type: Configuration$
|
|
1985
|
+
args: [BASE_PATH$5]
|
|
1986
|
+
}] }, { type: Configuration$5, decorators: [{
|
|
1987
1987
|
type: Optional
|
|
1988
1988
|
}] }];
|
|
1989
1989
|
} });
|
|
@@ -2245,7 +2245,7 @@ class ApiModule$3 {
|
|
|
2245
2245
|
static forRoot(configurationFactory) {
|
|
2246
2246
|
return {
|
|
2247
2247
|
ngModule: ApiModule$3,
|
|
2248
|
-
providers: [{ provide: Configuration$
|
|
2248
|
+
providers: [{ provide: Configuration$5, useFactory: configurationFactory }]
|
|
2249
2249
|
};
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
@@ -3207,7 +3207,7 @@ class SmartdialogService {
|
|
|
3207
3207
|
* Custom HttpParameterCodec
|
|
3208
3208
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
3209
3209
|
*/
|
|
3210
|
-
class CustomHttpParameterCodec$
|
|
3210
|
+
class CustomHttpParameterCodec$4 {
|
|
3211
3211
|
encodeKey(k) {
|
|
3212
3212
|
return encodeURIComponent(k);
|
|
3213
3213
|
}
|
|
@@ -3222,15 +3222,15 @@ class CustomHttpParameterCodec$3 {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
3224
|
|
|
3225
|
-
const BASE_PATH$
|
|
3226
|
-
const COLLECTION_FORMATS$
|
|
3225
|
+
const BASE_PATH$4 = new InjectionToken('basePath');
|
|
3226
|
+
const COLLECTION_FORMATS$4 = {
|
|
3227
3227
|
'csv': ',',
|
|
3228
3228
|
'tsv': ' ',
|
|
3229
3229
|
'ssv': ' ',
|
|
3230
3230
|
'pipes': '|'
|
|
3231
3231
|
};
|
|
3232
3232
|
|
|
3233
|
-
class Configuration$
|
|
3233
|
+
class Configuration$4 {
|
|
3234
3234
|
constructor(configurationParameters = {}) {
|
|
3235
3235
|
this.apiKeys = configurationParameters.apiKeys;
|
|
3236
3236
|
this.username = configurationParameters.username;
|
|
@@ -3337,7 +3337,7 @@ class DefaultService$1 {
|
|
|
3337
3337
|
this.httpClient = httpClient;
|
|
3338
3338
|
this.basePath = 'http://localhost';
|
|
3339
3339
|
this.defaultHeaders = new HttpHeaders();
|
|
3340
|
-
this.configuration = new Configuration$
|
|
3340
|
+
this.configuration = new Configuration$4();
|
|
3341
3341
|
if (configuration) {
|
|
3342
3342
|
this.configuration = configuration;
|
|
3343
3343
|
}
|
|
@@ -3350,7 +3350,7 @@ class DefaultService$1 {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
this.configuration.basePath = basePath;
|
|
3352
3352
|
}
|
|
3353
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
3353
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$4();
|
|
3354
3354
|
}
|
|
3355
3355
|
// @ts-ignore
|
|
3356
3356
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -3428,7 +3428,7 @@ class DefaultService$1 {
|
|
|
3428
3428
|
});
|
|
3429
3429
|
}
|
|
3430
3430
|
}
|
|
3431
|
-
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$
|
|
3431
|
+
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 });
|
|
3432
3432
|
DefaultService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, providedIn: 'root' });
|
|
3433
3433
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService$1, decorators: [{
|
|
3434
3434
|
type: Injectable,
|
|
@@ -3440,8 +3440,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
3440
3440
|
type: Optional
|
|
3441
3441
|
}, {
|
|
3442
3442
|
type: Inject,
|
|
3443
|
-
args: [BASE_PATH$
|
|
3444
|
-
}] }, { type: Configuration$
|
|
3443
|
+
args: [BASE_PATH$4]
|
|
3444
|
+
}] }, { type: Configuration$4, decorators: [{
|
|
3445
3445
|
type: Optional
|
|
3446
3446
|
}] }];
|
|
3447
3447
|
} });
|
|
@@ -3529,7 +3529,7 @@ class ApiModule$2 {
|
|
|
3529
3529
|
static forRoot(configurationFactory) {
|
|
3530
3530
|
return {
|
|
3531
3531
|
ngModule: ApiModule$2,
|
|
3532
|
-
providers: [{ provide: Configuration$
|
|
3532
|
+
providers: [{ provide: Configuration$4, useFactory: configurationFactory }]
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
@@ -8141,7 +8141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
8141
8141
|
* Custom HttpParameterCodec
|
|
8142
8142
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
8143
8143
|
*/
|
|
8144
|
-
class CustomHttpParameterCodec$
|
|
8144
|
+
class CustomHttpParameterCodec$3 {
|
|
8145
8145
|
encodeKey(k) {
|
|
8146
8146
|
return encodeURIComponent(k);
|
|
8147
8147
|
}
|
|
@@ -8156,15 +8156,15 @@ class CustomHttpParameterCodec$2 {
|
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
8158
|
|
|
8159
|
-
const BASE_PATH$
|
|
8160
|
-
const COLLECTION_FORMATS$
|
|
8159
|
+
const BASE_PATH$3 = new InjectionToken('basePath');
|
|
8160
|
+
const COLLECTION_FORMATS$3 = {
|
|
8161
8161
|
'csv': ',',
|
|
8162
8162
|
'tsv': ' ',
|
|
8163
8163
|
'ssv': ' ',
|
|
8164
8164
|
'pipes': '|'
|
|
8165
8165
|
};
|
|
8166
8166
|
|
|
8167
|
-
class Configuration$
|
|
8167
|
+
class Configuration$3 {
|
|
8168
8168
|
constructor(configurationParameters = {}) {
|
|
8169
8169
|
this.apiKeys = configurationParameters.apiKeys;
|
|
8170
8170
|
this.username = configurationParameters.username;
|
|
@@ -8271,7 +8271,7 @@ class TreeService {
|
|
|
8271
8271
|
this.httpClient = httpClient;
|
|
8272
8272
|
this.basePath = 'http://localhost';
|
|
8273
8273
|
this.defaultHeaders = new HttpHeaders();
|
|
8274
|
-
this.configuration = new Configuration$
|
|
8274
|
+
this.configuration = new Configuration$3();
|
|
8275
8275
|
if (configuration) {
|
|
8276
8276
|
this.configuration = configuration;
|
|
8277
8277
|
}
|
|
@@ -8284,7 +8284,7 @@ class TreeService {
|
|
|
8284
8284
|
}
|
|
8285
8285
|
this.configuration.basePath = basePath;
|
|
8286
8286
|
}
|
|
8287
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
8287
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$3();
|
|
8288
8288
|
}
|
|
8289
8289
|
// @ts-ignore
|
|
8290
8290
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -8872,7 +8872,7 @@ class TreeService {
|
|
|
8872
8872
|
});
|
|
8873
8873
|
}
|
|
8874
8874
|
}
|
|
8875
|
-
TreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
8875
|
+
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 });
|
|
8876
8876
|
TreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, providedIn: 'root' });
|
|
8877
8877
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, decorators: [{
|
|
8878
8878
|
type: Injectable,
|
|
@@ -8884,8 +8884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
8884
8884
|
type: Optional
|
|
8885
8885
|
}, {
|
|
8886
8886
|
type: Inject,
|
|
8887
|
-
args: [BASE_PATH$
|
|
8888
|
-
}] }, { type: Configuration$
|
|
8887
|
+
args: [BASE_PATH$3]
|
|
8888
|
+
}] }, { type: Configuration$3, decorators: [{
|
|
8889
8889
|
type: Optional
|
|
8890
8890
|
}] }];
|
|
8891
8891
|
} });
|
|
@@ -9693,7 +9693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
9693
9693
|
* Custom HttpParameterCodec
|
|
9694
9694
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
9695
9695
|
*/
|
|
9696
|
-
class CustomHttpParameterCodec$
|
|
9696
|
+
class CustomHttpParameterCodec$2 {
|
|
9697
9697
|
encodeKey(k) {
|
|
9698
9698
|
return encodeURIComponent(k);
|
|
9699
9699
|
}
|
|
@@ -9708,15 +9708,15 @@ class CustomHttpParameterCodec$1 {
|
|
|
9708
9708
|
}
|
|
9709
9709
|
}
|
|
9710
9710
|
|
|
9711
|
-
const BASE_PATH$
|
|
9712
|
-
const COLLECTION_FORMATS$
|
|
9711
|
+
const BASE_PATH$2 = new InjectionToken('basePath');
|
|
9712
|
+
const COLLECTION_FORMATS$2 = {
|
|
9713
9713
|
'csv': ',',
|
|
9714
9714
|
'tsv': ' ',
|
|
9715
9715
|
'ssv': ' ',
|
|
9716
9716
|
'pipes': '|'
|
|
9717
9717
|
};
|
|
9718
9718
|
|
|
9719
|
-
class Configuration$
|
|
9719
|
+
class Configuration$2 {
|
|
9720
9720
|
constructor(configurationParameters = {}) {
|
|
9721
9721
|
this.apiKeys = configurationParameters.apiKeys;
|
|
9722
9722
|
this.username = configurationParameters.username;
|
|
@@ -9823,7 +9823,7 @@ class GridService {
|
|
|
9823
9823
|
this.httpClient = httpClient;
|
|
9824
9824
|
this.basePath = 'http://localhost';
|
|
9825
9825
|
this.defaultHeaders = new HttpHeaders();
|
|
9826
|
-
this.configuration = new Configuration$
|
|
9826
|
+
this.configuration = new Configuration$2();
|
|
9827
9827
|
if (configuration) {
|
|
9828
9828
|
this.configuration = configuration;
|
|
9829
9829
|
}
|
|
@@ -9836,7 +9836,7 @@ class GridService {
|
|
|
9836
9836
|
}
|
|
9837
9837
|
this.configuration.basePath = basePath;
|
|
9838
9838
|
}
|
|
9839
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
9839
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
|
|
9840
9840
|
}
|
|
9841
9841
|
// @ts-ignore
|
|
9842
9842
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -10175,7 +10175,7 @@ class GridService {
|
|
|
10175
10175
|
});
|
|
10176
10176
|
}
|
|
10177
10177
|
}
|
|
10178
|
-
GridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$
|
|
10178
|
+
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 });
|
|
10179
10179
|
GridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, providedIn: 'root' });
|
|
10180
10180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, decorators: [{
|
|
10181
10181
|
type: Injectable,
|
|
@@ -10187,8 +10187,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
10187
10187
|
type: Optional
|
|
10188
10188
|
}, {
|
|
10189
10189
|
type: Inject,
|
|
10190
|
-
args: [BASE_PATH$
|
|
10191
|
-
}] }, { type: Configuration$
|
|
10190
|
+
args: [BASE_PATH$2]
|
|
10191
|
+
}] }, { type: Configuration$2, decorators: [{
|
|
10192
10192
|
type: Optional
|
|
10193
10193
|
}] }];
|
|
10194
10194
|
} });
|
|
@@ -10286,7 +10286,7 @@ class ApiModule$1 {
|
|
|
10286
10286
|
static forRoot(configurationFactory) {
|
|
10287
10287
|
return {
|
|
10288
10288
|
ngModule: ApiModule$1,
|
|
10289
|
-
providers: [{ provide: Configuration$
|
|
10289
|
+
providers: [{ provide: Configuration$2, useFactory: configurationFactory }]
|
|
10290
10290
|
};
|
|
10291
10291
|
}
|
|
10292
10292
|
}
|
|
@@ -11526,7 +11526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
11526
11526
|
* Custom HttpParameterCodec
|
|
11527
11527
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
11528
11528
|
*/
|
|
11529
|
-
class CustomHttpParameterCodec {
|
|
11529
|
+
class CustomHttpParameterCodec$1 {
|
|
11530
11530
|
encodeKey(k) {
|
|
11531
11531
|
return encodeURIComponent(k);
|
|
11532
11532
|
}
|
|
@@ -11541,15 +11541,15 @@ class CustomHttpParameterCodec {
|
|
|
11541
11541
|
}
|
|
11542
11542
|
}
|
|
11543
11543
|
|
|
11544
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
11545
|
-
const COLLECTION_FORMATS = {
|
|
11544
|
+
const BASE_PATH$1 = new InjectionToken('basePath');
|
|
11545
|
+
const COLLECTION_FORMATS$1 = {
|
|
11546
11546
|
'csv': ',',
|
|
11547
11547
|
'tsv': ' ',
|
|
11548
11548
|
'ssv': ' ',
|
|
11549
11549
|
'pipes': '|'
|
|
11550
11550
|
};
|
|
11551
11551
|
|
|
11552
|
-
class Configuration {
|
|
11552
|
+
class Configuration$1 {
|
|
11553
11553
|
constructor(configurationParameters = {}) {
|
|
11554
11554
|
this.apiKeys = configurationParameters.apiKeys;
|
|
11555
11555
|
this.username = configurationParameters.username;
|
|
@@ -11656,7 +11656,7 @@ class DefaultService {
|
|
|
11656
11656
|
this.httpClient = httpClient;
|
|
11657
11657
|
this.basePath = 'http://localhost';
|
|
11658
11658
|
this.defaultHeaders = new HttpHeaders();
|
|
11659
|
-
this.configuration = new Configuration();
|
|
11659
|
+
this.configuration = new Configuration$1();
|
|
11660
11660
|
if (configuration) {
|
|
11661
11661
|
this.configuration = configuration;
|
|
11662
11662
|
}
|
|
@@ -11669,7 +11669,7 @@ class DefaultService {
|
|
|
11669
11669
|
}
|
|
11670
11670
|
this.configuration.basePath = basePath;
|
|
11671
11671
|
}
|
|
11672
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
11672
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
|
|
11673
11673
|
}
|
|
11674
11674
|
// @ts-ignore
|
|
11675
11675
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -11747,7 +11747,7 @@ class DefaultService {
|
|
|
11747
11747
|
});
|
|
11748
11748
|
}
|
|
11749
11749
|
}
|
|
11750
|
-
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 });
|
|
11750
|
+
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 });
|
|
11751
11751
|
DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, providedIn: 'root' });
|
|
11752
11752
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, decorators: [{
|
|
11753
11753
|
type: Injectable,
|
|
@@ -11759,8 +11759,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
11759
11759
|
type: Optional
|
|
11760
11760
|
}, {
|
|
11761
11761
|
type: Inject,
|
|
11762
|
-
args: [BASE_PATH]
|
|
11763
|
-
}] }, { type: Configuration, decorators: [{
|
|
11762
|
+
args: [BASE_PATH$1]
|
|
11763
|
+
}] }, { type: Configuration$1, decorators: [{
|
|
11764
11764
|
type: Optional
|
|
11765
11765
|
}] }];
|
|
11766
11766
|
} });
|
|
@@ -11830,7 +11830,7 @@ class ApiModule {
|
|
|
11830
11830
|
static forRoot(configurationFactory) {
|
|
11831
11831
|
return {
|
|
11832
11832
|
ngModule: ApiModule,
|
|
11833
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
11833
|
+
providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
|
|
11834
11834
|
};
|
|
11835
11835
|
}
|
|
11836
11836
|
}
|
|
@@ -12264,24 +12264,762 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12264
12264
|
}]
|
|
12265
12265
|
}] });
|
|
12266
12266
|
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12267
|
+
/**
|
|
12268
|
+
* Custom HttpParameterCodec
|
|
12269
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
12270
|
+
*/
|
|
12271
|
+
class CustomHttpParameterCodec {
|
|
12272
|
+
encodeKey(k) {
|
|
12273
|
+
return encodeURIComponent(k);
|
|
12274
|
+
}
|
|
12275
|
+
encodeValue(v) {
|
|
12276
|
+
return encodeURIComponent(v);
|
|
12277
|
+
}
|
|
12278
|
+
decodeKey(k) {
|
|
12279
|
+
return decodeURIComponent(k);
|
|
12280
|
+
}
|
|
12281
|
+
decodeValue(v) {
|
|
12282
|
+
return decodeURIComponent(v);
|
|
12283
|
+
}
|
|
12284
|
+
}
|
|
12285
|
+
|
|
12286
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
12287
|
+
const COLLECTION_FORMATS = {
|
|
12288
|
+
'csv': ',',
|
|
12289
|
+
'tsv': ' ',
|
|
12290
|
+
'ssv': ' ',
|
|
12291
|
+
'pipes': '|'
|
|
12292
|
+
};
|
|
12293
|
+
|
|
12294
|
+
class Configuration {
|
|
12295
|
+
constructor(configurationParameters = {}) {
|
|
12296
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
12297
|
+
this.username = configurationParameters.username;
|
|
12298
|
+
this.password = configurationParameters.password;
|
|
12299
|
+
this.accessToken = configurationParameters.accessToken;
|
|
12300
|
+
this.basePath = configurationParameters.basePath;
|
|
12301
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
12302
|
+
this.encoder = configurationParameters.encoder;
|
|
12303
|
+
if (configurationParameters.encodeParam) {
|
|
12304
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
12305
|
+
}
|
|
12306
|
+
else {
|
|
12307
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
12308
|
+
}
|
|
12309
|
+
if (configurationParameters.credentials) {
|
|
12310
|
+
this.credentials = configurationParameters.credentials;
|
|
12311
|
+
}
|
|
12312
|
+
else {
|
|
12313
|
+
this.credentials = {};
|
|
12314
|
+
}
|
|
12315
|
+
}
|
|
12316
|
+
/**
|
|
12317
|
+
* Select the correct content-type to use for a request.
|
|
12318
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
12319
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
12320
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
12321
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
12322
|
+
*/
|
|
12323
|
+
selectHeaderContentType(contentTypes) {
|
|
12324
|
+
if (contentTypes.length === 0) {
|
|
12325
|
+
return undefined;
|
|
12326
|
+
}
|
|
12327
|
+
const type = contentTypes.find((x) => this.isJsonMime(x));
|
|
12328
|
+
if (type === undefined) {
|
|
12329
|
+
return contentTypes[0];
|
|
12330
|
+
}
|
|
12331
|
+
return type;
|
|
12332
|
+
}
|
|
12333
|
+
/**
|
|
12334
|
+
* Select the correct accept content-type to use for a request.
|
|
12335
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
12336
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
12337
|
+
* @param accepts - the array of content types that are available for selection.
|
|
12338
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
12339
|
+
*/
|
|
12340
|
+
selectHeaderAccept(accepts) {
|
|
12341
|
+
if (accepts.length === 0) {
|
|
12342
|
+
return undefined;
|
|
12343
|
+
}
|
|
12344
|
+
const type = accepts.find((x) => this.isJsonMime(x));
|
|
12345
|
+
if (type === undefined) {
|
|
12346
|
+
return accepts[0];
|
|
12347
|
+
}
|
|
12348
|
+
return type;
|
|
12349
|
+
}
|
|
12350
|
+
/**
|
|
12351
|
+
* Check if the given MIME is a JSON MIME.
|
|
12352
|
+
* JSON MIME examples:
|
|
12353
|
+
* application/json
|
|
12354
|
+
* application/json; charset=UTF8
|
|
12355
|
+
* APPLICATION/JSON
|
|
12356
|
+
* application/vnd.company+json
|
|
12357
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
12358
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
12359
|
+
*/
|
|
12360
|
+
isJsonMime(mime) {
|
|
12361
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
12362
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
12363
|
+
}
|
|
12364
|
+
lookupCredential(key) {
|
|
12365
|
+
const value = this.credentials[key];
|
|
12366
|
+
return typeof value === 'function'
|
|
12367
|
+
? value()
|
|
12368
|
+
: value;
|
|
12369
|
+
}
|
|
12370
|
+
defaultEncodeParam(param) {
|
|
12371
|
+
// This implementation exists as fallback for missing configuration
|
|
12372
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
12373
|
+
// It only works for the 'simple' parameter style.
|
|
12374
|
+
// Date-handling only works for the 'date-time' format.
|
|
12375
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
12376
|
+
//
|
|
12377
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
12378
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
12379
|
+
? param.value.toISOString()
|
|
12380
|
+
: param.value;
|
|
12381
|
+
return encodeURIComponent(String(value));
|
|
12382
|
+
}
|
|
12383
|
+
}
|
|
12384
|
+
|
|
12385
|
+
/**
|
|
12386
|
+
* Filter API 2
|
|
12387
|
+
* Filter API 2
|
|
12388
|
+
*
|
|
12389
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12390
|
+
* Contact: info@it4all.hu
|
|
12391
|
+
*
|
|
12392
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12393
|
+
* https://openapi-generator.tech
|
|
12394
|
+
* Do not edit the class manually.
|
|
12395
|
+
*/
|
|
12396
|
+
class FilterService {
|
|
12397
|
+
constructor(httpClient, basePath, configuration) {
|
|
12398
|
+
this.httpClient = httpClient;
|
|
12399
|
+
this.basePath = 'http://localhost';
|
|
12400
|
+
this.defaultHeaders = new HttpHeaders();
|
|
12401
|
+
this.configuration = new Configuration();
|
|
12402
|
+
if (configuration) {
|
|
12403
|
+
this.configuration = configuration;
|
|
12404
|
+
}
|
|
12405
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
12406
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
12407
|
+
basePath = basePath[0];
|
|
12408
|
+
}
|
|
12409
|
+
if (typeof basePath !== 'string') {
|
|
12410
|
+
basePath = this.basePath;
|
|
12411
|
+
}
|
|
12412
|
+
this.configuration.basePath = basePath;
|
|
12413
|
+
}
|
|
12414
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
12415
|
+
}
|
|
12416
|
+
// @ts-ignore
|
|
12417
|
+
addToHttpParams(httpParams, value, key) {
|
|
12418
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
12419
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
12420
|
+
}
|
|
12421
|
+
else {
|
|
12422
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
12423
|
+
}
|
|
12424
|
+
return httpParams;
|
|
12425
|
+
}
|
|
12426
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
12427
|
+
if (value == null) {
|
|
12428
|
+
return httpParams;
|
|
12429
|
+
}
|
|
12430
|
+
if (typeof value === 'object') {
|
|
12431
|
+
if (Array.isArray(value)) {
|
|
12432
|
+
value.forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
12433
|
+
}
|
|
12434
|
+
else if (value instanceof Date) {
|
|
12435
|
+
if (key != null) {
|
|
12436
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
12437
|
+
}
|
|
12438
|
+
else {
|
|
12439
|
+
throw Error('key may not be null if value is Date');
|
|
12440
|
+
}
|
|
12441
|
+
}
|
|
12442
|
+
else {
|
|
12443
|
+
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
12444
|
+
}
|
|
12445
|
+
}
|
|
12446
|
+
else if (key != null) {
|
|
12447
|
+
httpParams = httpParams.append(key, value);
|
|
12448
|
+
}
|
|
12449
|
+
else {
|
|
12450
|
+
throw Error('key may not be null if value is not object or array');
|
|
12451
|
+
}
|
|
12452
|
+
return httpParams;
|
|
12453
|
+
}
|
|
12454
|
+
load(uuid, filterIdentifier, observe = 'body', reportProgress = false, options) {
|
|
12455
|
+
if (uuid === null || uuid === undefined) {
|
|
12456
|
+
throw new Error('Required parameter uuid was null or undefined when calling load.');
|
|
12457
|
+
}
|
|
12458
|
+
if (filterIdentifier === null || filterIdentifier === undefined) {
|
|
12459
|
+
throw new Error('Required parameter filterIdentifier was null or undefined when calling load.');
|
|
12460
|
+
}
|
|
12461
|
+
let localVarHeaders = this.defaultHeaders;
|
|
12462
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12463
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12464
|
+
// to determine the Accept header
|
|
12465
|
+
const httpHeaderAccepts = ['application/json'];
|
|
12466
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12467
|
+
}
|
|
12468
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
12469
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
12470
|
+
}
|
|
12471
|
+
let localVarHttpContext = options && options.context;
|
|
12472
|
+
if (localVarHttpContext === undefined) {
|
|
12473
|
+
localVarHttpContext = new HttpContext();
|
|
12474
|
+
}
|
|
12475
|
+
let responseType_ = 'json';
|
|
12476
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
12477
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
12478
|
+
responseType_ = 'text';
|
|
12479
|
+
}
|
|
12480
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
12481
|
+
responseType_ = 'json';
|
|
12482
|
+
}
|
|
12483
|
+
else {
|
|
12484
|
+
responseType_ = 'blob';
|
|
12485
|
+
}
|
|
12486
|
+
}
|
|
12487
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12488
|
+
name: 'uuid',
|
|
12489
|
+
value: uuid,
|
|
12490
|
+
in: 'path',
|
|
12491
|
+
style: 'simple',
|
|
12492
|
+
explode: false,
|
|
12493
|
+
dataType: 'string',
|
|
12494
|
+
dataFormat: 'uuid',
|
|
12495
|
+
})}/${this.configuration.encodeParam({
|
|
12496
|
+
name: 'filterIdentifier',
|
|
12497
|
+
value: filterIdentifier,
|
|
12498
|
+
in: 'path',
|
|
12499
|
+
style: 'simple',
|
|
12500
|
+
explode: false,
|
|
12501
|
+
dataType: 'string',
|
|
12502
|
+
dataFormat: undefined,
|
|
12503
|
+
})}/load`;
|
|
12504
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
12505
|
+
context: localVarHttpContext,
|
|
12506
|
+
responseType: responseType_,
|
|
12507
|
+
withCredentials: this.configuration.withCredentials,
|
|
12508
|
+
headers: localVarHeaders,
|
|
12509
|
+
observe: observe,
|
|
12510
|
+
reportProgress: reportProgress,
|
|
12511
|
+
});
|
|
12512
|
+
}
|
|
12513
|
+
performWidgetAction(uuid, filterIdentifier, body, observe = 'body', reportProgress = false, options) {
|
|
12514
|
+
if (uuid === null || uuid === undefined) {
|
|
12515
|
+
throw new Error('Required parameter uuid was null or undefined when calling performWidgetAction.');
|
|
12516
|
+
}
|
|
12517
|
+
if (filterIdentifier === null || filterIdentifier === undefined) {
|
|
12518
|
+
throw new Error('Required parameter filterIdentifier was null or undefined when calling performWidgetAction.');
|
|
12519
|
+
}
|
|
12520
|
+
if (body === null || body === undefined) {
|
|
12521
|
+
throw new Error('Required parameter body was null or undefined when calling performWidgetAction.');
|
|
12522
|
+
}
|
|
12523
|
+
let localVarHeaders = this.defaultHeaders;
|
|
12524
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
12525
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
12526
|
+
// to determine the Accept header
|
|
12527
|
+
const httpHeaderAccepts = ['application/json'];
|
|
12528
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
12529
|
+
}
|
|
12530
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
12531
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
12532
|
+
}
|
|
12533
|
+
let localVarHttpContext = options && options.context;
|
|
12534
|
+
if (localVarHttpContext === undefined) {
|
|
12535
|
+
localVarHttpContext = new HttpContext();
|
|
12536
|
+
}
|
|
12537
|
+
// to determine the Content-Type header
|
|
12538
|
+
const consumes = ['application/json'];
|
|
12539
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
12540
|
+
if (httpContentTypeSelected !== undefined) {
|
|
12541
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
12542
|
+
}
|
|
12543
|
+
let responseType_ = 'json';
|
|
12544
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
12545
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
12546
|
+
responseType_ = 'text';
|
|
12547
|
+
}
|
|
12548
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
12549
|
+
responseType_ = 'json';
|
|
12550
|
+
}
|
|
12551
|
+
else {
|
|
12552
|
+
responseType_ = 'blob';
|
|
12553
|
+
}
|
|
12554
|
+
}
|
|
12555
|
+
let localVarPath = `/filter/${this.configuration.encodeParam({
|
|
12556
|
+
name: 'uuid',
|
|
12557
|
+
value: uuid,
|
|
12558
|
+
in: 'path',
|
|
12559
|
+
style: 'simple',
|
|
12560
|
+
explode: false,
|
|
12561
|
+
dataType: 'string',
|
|
12562
|
+
dataFormat: 'uuid',
|
|
12563
|
+
})}/${this.configuration.encodeParam({
|
|
12564
|
+
name: 'filterIdentifier',
|
|
12565
|
+
value: filterIdentifier,
|
|
12566
|
+
in: 'path',
|
|
12567
|
+
style: 'simple',
|
|
12568
|
+
explode: false,
|
|
12569
|
+
dataType: 'string',
|
|
12570
|
+
dataFormat: undefined,
|
|
12571
|
+
})}/performWidgetAction`;
|
|
12572
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
12573
|
+
context: localVarHttpContext,
|
|
12574
|
+
body: body,
|
|
12575
|
+
responseType: responseType_,
|
|
12576
|
+
withCredentials: this.configuration.withCredentials,
|
|
12577
|
+
headers: localVarHeaders,
|
|
12578
|
+
observe: observe,
|
|
12579
|
+
reportProgress: reportProgress,
|
|
12580
|
+
});
|
|
12581
|
+
}
|
|
12582
|
+
}
|
|
12583
|
+
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 });
|
|
12584
|
+
FilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, providedIn: 'root' });
|
|
12585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, decorators: [{
|
|
12586
|
+
type: Injectable,
|
|
12587
|
+
args: [{
|
|
12588
|
+
providedIn: 'root',
|
|
12589
|
+
}]
|
|
12590
|
+
}], ctorParameters: function () {
|
|
12591
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
12592
|
+
type: Optional
|
|
12593
|
+
}, {
|
|
12594
|
+
type: Inject,
|
|
12595
|
+
args: [BASE_PATH]
|
|
12596
|
+
}] }, { type: Configuration, decorators: [{
|
|
12597
|
+
type: Optional
|
|
12598
|
+
}] }];
|
|
12599
|
+
} });
|
|
12600
|
+
|
|
12601
|
+
class SmartFilterEditorService {
|
|
12602
|
+
constructor(service) {
|
|
12603
|
+
this.service = service;
|
|
12604
|
+
this.modelChanged = new Subject();
|
|
12605
|
+
this.submit = new Subject();
|
|
12606
|
+
this.reSubscribeToChange = new Subject();
|
|
12607
|
+
}
|
|
12608
|
+
load() {
|
|
12609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12610
|
+
this.model = yield this.service.load(this.config.uuid, this.config.identifier).toPromise();
|
|
12611
|
+
this.modelChanged.next();
|
|
12612
|
+
});
|
|
12613
|
+
}
|
|
12614
|
+
peformWidgetAction(request) {
|
|
12615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12616
|
+
this.model = yield this.service
|
|
12617
|
+
.performWidgetAction(this.config.uuid, this.config.identifier, request)
|
|
12618
|
+
.toPromise();
|
|
12619
|
+
this.modelChanged.next();
|
|
12620
|
+
});
|
|
12621
|
+
}
|
|
12622
|
+
getModel() {
|
|
12623
|
+
return this.model;
|
|
12624
|
+
}
|
|
12625
|
+
performUiActionRequest(uiActionRequest, widgetId, nodeId) {
|
|
12626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12627
|
+
yield this.peformWidgetAction(uiActionRequest);
|
|
12628
|
+
});
|
|
12629
|
+
}
|
|
12630
|
+
handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
|
|
12631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12632
|
+
return {
|
|
12633
|
+
shouldPerformAction: true,
|
|
12634
|
+
uiActionRequest: uiActionRequest,
|
|
12635
|
+
};
|
|
12636
|
+
});
|
|
12637
|
+
}
|
|
12638
|
+
getAdditionalParams(uiAction) {
|
|
12639
|
+
throw new Error('Method not implemented.');
|
|
12640
|
+
}
|
|
12641
|
+
}
|
|
12642
|
+
SmartFilterEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, deps: [{ token: FilterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12643
|
+
SmartFilterEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService });
|
|
12644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, decorators: [{
|
|
12645
|
+
type: Injectable
|
|
12646
|
+
}], ctorParameters: function () { return [{ type: FilterService }]; } });
|
|
12647
|
+
|
|
12648
|
+
class SmartFilterParamComponent {
|
|
12649
|
+
constructor(service) {
|
|
12650
|
+
this.service = service;
|
|
12651
|
+
}
|
|
12652
|
+
ngOnInit() { }
|
|
12653
|
+
onItemClick(item) {
|
|
12654
|
+
this.data.serviceToUse.peformWidgetAction({
|
|
12655
|
+
code: 'ADD_FILTER_EXPRESSION',
|
|
12656
|
+
params: {
|
|
12657
|
+
model: item,
|
|
12658
|
+
},
|
|
12659
|
+
});
|
|
12660
|
+
}
|
|
12661
|
+
}
|
|
12662
|
+
SmartFilterParamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12663
|
+
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"] }] });
|
|
12664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, decorators: [{
|
|
12665
|
+
type: Component,
|
|
12666
|
+
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"] }]
|
|
12667
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { data: [{
|
|
12668
|
+
type: Input
|
|
12669
|
+
}] } });
|
|
12670
|
+
|
|
12671
|
+
class SmartFilterParamsComponent {
|
|
12672
|
+
// filterComponentRef?: ComponentRef<SmartFilterComponent>;
|
|
12673
|
+
// filter?: SmartFilter;
|
|
12674
|
+
constructor(cfService) {
|
|
12675
|
+
this.cfService = cfService;
|
|
12676
|
+
this._destroy$ = new Subject();
|
|
12677
|
+
this.expandableSections = [];
|
|
12678
|
+
}
|
|
12679
|
+
ngOnInit() {
|
|
12680
|
+
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
12681
|
+
this.setUp(this.service.model);
|
|
12682
|
+
});
|
|
12683
|
+
}
|
|
12684
|
+
ngOnDestroy() {
|
|
12685
|
+
this._destroy$.next();
|
|
12686
|
+
this._destroy$.complete();
|
|
12687
|
+
}
|
|
12688
|
+
setUp(model) {
|
|
12689
|
+
this.filterBuilder = model.model;
|
|
12690
|
+
// this.constructFilter();
|
|
12691
|
+
this.constructExpandableSections();
|
|
12692
|
+
}
|
|
12693
|
+
constructExpandableSections() {
|
|
12694
|
+
if (this.filterBuilder.groups) {
|
|
12695
|
+
this.expandableSections = this.filterBuilder.groups.map((filterExpressionBuilderGroup) => {
|
|
12696
|
+
return {
|
|
12697
|
+
title: filterExpressionBuilderGroup.label,
|
|
12698
|
+
cssClass: 'filterExpressionBuilderGroup',
|
|
12699
|
+
customComponent: SmartFilterParamComponent,
|
|
12700
|
+
data: {
|
|
12701
|
+
group: filterExpressionBuilderGroup.fields,
|
|
12702
|
+
serviceToUse: this.service,
|
|
12703
|
+
},
|
|
12704
|
+
inputName: 'data',
|
|
12705
|
+
isExpanded: true,
|
|
12706
|
+
};
|
|
12707
|
+
});
|
|
12708
|
+
}
|
|
12709
|
+
// if (this.service.model?.externalFilterGroup) {
|
|
12710
|
+
// this.expandableSectionsFromExcel = {
|
|
12711
|
+
// title: this.service.model.externalFilterGroup.label!,
|
|
12712
|
+
// cssClass: 'filterExpressionBuilderGroup',
|
|
12713
|
+
// customComponent: SmartFilterParamComponent,
|
|
12714
|
+
// data: {
|
|
12715
|
+
// group: this.service.model.externalFilterGroup.fields,
|
|
12716
|
+
// },
|
|
12717
|
+
// inputName: 'data',
|
|
12718
|
+
// isExpanded: true,
|
|
12719
|
+
// };
|
|
12720
|
+
// }
|
|
12721
|
+
}
|
|
12722
|
+
// constructFilter(): void {
|
|
12723
|
+
// if (this.filter && this.filterComponentRef) {
|
|
12724
|
+
// return;
|
|
12725
|
+
// }
|
|
12726
|
+
// // this.filter = {
|
|
12727
|
+
// // data: this.service.model?.groupFilter?.filters! as FilterExpressionField[],
|
|
12728
|
+
// // type: SmartFilterType.Simple,
|
|
12729
|
+
// // showPossibleActions: false,
|
|
12730
|
+
// // };
|
|
12731
|
+
// this.filterVcRef?.clear();
|
|
12732
|
+
// this.filterComponentRef = this.cfService.createComponent(
|
|
12733
|
+
// this.filterVcRef!,
|
|
12734
|
+
// SmartFilterComponent,
|
|
12735
|
+
// new Map<string, any>([['filter', this.filter]])
|
|
12736
|
+
// );
|
|
12737
|
+
// this.filterComponentRef.instance?.service.change
|
|
12738
|
+
// .pipe(takeUntil(this._destroy$))
|
|
12739
|
+
// .subscribe(() => {
|
|
12740
|
+
// let uiAction: UiAction = this.service.model?.filterGroupsAction!;
|
|
12741
|
+
// uiAction.params = {
|
|
12742
|
+
// filter: {
|
|
12743
|
+
// filters: this.filterComponentRef?.instance.service.filter?.data,
|
|
12744
|
+
// },
|
|
12745
|
+
// };
|
|
12746
|
+
// // let uiActionModel: UiActionModel = {
|
|
12747
|
+
// // serviceToUse: this.service,
|
|
12748
|
+
// // uiAction,
|
|
12749
|
+
// // };
|
|
12750
|
+
// // this.uiActionService.uiActionModel = uiActionModel;
|
|
12751
|
+
// // this.uiActionService.execute(uiAction);
|
|
12752
|
+
// });
|
|
12753
|
+
// }
|
|
12754
|
+
addDataSource() {
|
|
12755
|
+
// this.service.addDataSource();
|
|
12756
|
+
}
|
|
12757
|
+
}
|
|
12758
|
+
SmartFilterParamsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, deps: [{ token: ComponentFactoryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12759
|
+
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"] }] });
|
|
12760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, decorators: [{
|
|
12761
|
+
type: Component,
|
|
12762
|
+
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"] }]
|
|
12763
|
+
}], ctorParameters: function () { return [{ type: ComponentFactoryService }]; }, propDecorators: { service: [{
|
|
12764
|
+
type: Input
|
|
12765
|
+
}], filterVcRef: [{
|
|
12766
|
+
type: ViewChild,
|
|
12767
|
+
args: ['smartFilter', { read: ViewContainerRef }]
|
|
12768
|
+
}] } });
|
|
12769
|
+
|
|
12770
|
+
class SmartFilterExpressionItemComponent {
|
|
12771
|
+
constructor(service) {
|
|
12772
|
+
this.service = service;
|
|
12773
|
+
this.isSelected = false;
|
|
12774
|
+
}
|
|
12775
|
+
ngOnInit() {
|
|
12776
|
+
var _a;
|
|
12777
|
+
this.isSelected =
|
|
12778
|
+
JSON.stringify((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === JSON.stringify(this.item);
|
|
12779
|
+
}
|
|
12780
|
+
setOperatorTo(event, operationType) {
|
|
12781
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
12782
|
+
this.item.expressionData.boolOperator = operationType;
|
|
12783
|
+
this.service.peformWidgetAction({
|
|
12784
|
+
code: 'UPDATE_FILTER_EXPRESSION',
|
|
12785
|
+
params: {
|
|
12786
|
+
model: this.item,
|
|
12787
|
+
},
|
|
12788
|
+
});
|
|
12789
|
+
}
|
|
12790
|
+
select(event, item) {
|
|
12791
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
12792
|
+
if (!this.isSelected) {
|
|
12793
|
+
this.service.peformWidgetAction({
|
|
12794
|
+
code: 'SELECT_FIELD',
|
|
12795
|
+
params: {
|
|
12796
|
+
model: this.item,
|
|
12797
|
+
},
|
|
12798
|
+
});
|
|
12799
|
+
}
|
|
12800
|
+
else {
|
|
12801
|
+
this.service.peformWidgetAction({
|
|
12802
|
+
code: 'SELECT_FIELD',
|
|
12803
|
+
params: {
|
|
12804
|
+
model: this.item,
|
|
12805
|
+
},
|
|
12806
|
+
});
|
|
12807
|
+
}
|
|
12808
|
+
}
|
|
12809
|
+
}
|
|
12810
|
+
SmartFilterExpressionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12811
|
+
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"] }] });
|
|
12812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, decorators: [{
|
|
12813
|
+
type: Component,
|
|
12814
|
+
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"] }]
|
|
12815
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { item: [{
|
|
12816
|
+
type: Input
|
|
12817
|
+
}], hasNext: [{
|
|
12818
|
+
type: Input
|
|
12819
|
+
}] } });
|
|
12820
|
+
|
|
12821
|
+
class SmartFilterExpressionItemsComponent {
|
|
12822
|
+
constructor(service) {
|
|
12823
|
+
var _a;
|
|
12824
|
+
this.service = service;
|
|
12825
|
+
this._destroy$ = new Subject();
|
|
12826
|
+
this.isSelected = false;
|
|
12827
|
+
this.service.modelChanged.subscribe(() => {
|
|
12828
|
+
var _a;
|
|
12829
|
+
console.log(this.service.model);
|
|
12830
|
+
this.isSelected = ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === null;
|
|
12831
|
+
});
|
|
12832
|
+
this.isSelected = ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === null;
|
|
12833
|
+
}
|
|
12834
|
+
ngOnChanges(changes) {
|
|
12835
|
+
console.log(changes);
|
|
12836
|
+
}
|
|
12837
|
+
ngOnInit() { }
|
|
12838
|
+
ngOnDestroy() {
|
|
12839
|
+
this._destroy$.next();
|
|
12840
|
+
this._destroy$.complete();
|
|
12841
|
+
}
|
|
12842
|
+
select() {
|
|
12843
|
+
// this.service.selectFilterExpressionField(undefined);
|
|
12844
|
+
}
|
|
12845
|
+
drop(event) {
|
|
12846
|
+
moveItemInArray(this.items, event.previousIndex, event.currentIndex);
|
|
12847
|
+
}
|
|
12848
|
+
}
|
|
12849
|
+
SmartFilterExpressionItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12850
|
+
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"] }] });
|
|
12851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, decorators: [{
|
|
12852
|
+
type: Component,
|
|
12853
|
+
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"] }]
|
|
12854
|
+
}], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { items: [{
|
|
12855
|
+
type: Input
|
|
12856
|
+
}] } });
|
|
12857
|
+
|
|
12858
|
+
class SmartFilterEditorContentComponent {
|
|
12859
|
+
constructor(layoutService) {
|
|
12860
|
+
this.layoutService = layoutService;
|
|
12861
|
+
this._destroy$ = new Subject();
|
|
12862
|
+
this.uiActionModels = [];
|
|
12863
|
+
this.expressionUiActionModels = [];
|
|
12864
|
+
}
|
|
12865
|
+
ngOnInit() {
|
|
12866
|
+
this.service.load();
|
|
12867
|
+
this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
12868
|
+
this.setUp();
|
|
12869
|
+
});
|
|
12870
|
+
}
|
|
12871
|
+
ngOnDestroy() {
|
|
12872
|
+
this._destroy$.next();
|
|
12873
|
+
this._destroy$.complete();
|
|
12874
|
+
}
|
|
12875
|
+
setUp() {
|
|
12876
|
+
this.constructUiActionModels();
|
|
12877
|
+
if (this.service.model.selectedFieldEditor) {
|
|
12878
|
+
this.constructForm();
|
|
12879
|
+
}
|
|
12880
|
+
else {
|
|
12881
|
+
this.smartForm = undefined;
|
|
12882
|
+
}
|
|
12883
|
+
}
|
|
12884
|
+
constructUiActionModels() {
|
|
12885
|
+
var _a, _b, _c, _d;
|
|
12886
|
+
if ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.possibleActions) {
|
|
12887
|
+
this.uiActionModels = this.service.model.possibleActions.map((action) => {
|
|
12888
|
+
return {
|
|
12889
|
+
serviceToUse: this.service,
|
|
12890
|
+
uiAction: action,
|
|
12891
|
+
};
|
|
12892
|
+
});
|
|
12893
|
+
}
|
|
12894
|
+
if ((_c = (_b = this.service.model) === null || _b === void 0 ? void 0 : _b.selectedFieldEditor) === null || _c === void 0 ? void 0 : _c.possibleActions) {
|
|
12895
|
+
this.expressionUiActionModels = (_d = this.service.model) === null || _d === void 0 ? void 0 : _d.selectedFieldEditor.possibleActions.map((uiAction) => {
|
|
12896
|
+
var _a;
|
|
12897
|
+
let copiedUiAction = {};
|
|
12898
|
+
Object.keys(uiAction).map((key) => {
|
|
12899
|
+
copiedUiAction[key] = uiAction[key];
|
|
12900
|
+
});
|
|
12901
|
+
copiedUiAction.params = {
|
|
12902
|
+
field: (_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField,
|
|
12903
|
+
};
|
|
12904
|
+
return {
|
|
12905
|
+
serviceToUse: this.service,
|
|
12906
|
+
uiAction: copiedUiAction,
|
|
12907
|
+
};
|
|
12908
|
+
});
|
|
12909
|
+
}
|
|
12910
|
+
}
|
|
12911
|
+
constructForm() {
|
|
12912
|
+
var _a, _b, _c, _d;
|
|
12913
|
+
let generatedWidgets = this.layoutService.render({
|
|
12914
|
+
layoutDefinitions: (_c = (_b = (_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedFieldEditor) === null || _b === void 0 ? void 0 : _b.layoutDef) === null || _c === void 0 ? void 0 : _c.widgets,
|
|
12915
|
+
});
|
|
12916
|
+
this.smartForm = {
|
|
12917
|
+
direction: SmartFormWidgetDirection.ROW,
|
|
12918
|
+
componentModel: { data: (_d = this.service.model) === null || _d === void 0 ? void 0 : _d.selectedField },
|
|
12919
|
+
widgets: generatedWidgets,
|
|
12920
|
+
};
|
|
12921
|
+
}
|
|
12922
|
+
save() {
|
|
12923
|
+
var _a, _b;
|
|
12924
|
+
(_a = this.formChild) === null || _a === void 0 ? void 0 : _a.submitForm(false);
|
|
12925
|
+
this.service.peformWidgetAction({
|
|
12926
|
+
code: 'UPDATE_FILTER_EXPRESSION',
|
|
12927
|
+
params: {
|
|
12928
|
+
model: (_b = this.service.model) === null || _b === void 0 ? void 0 : _b.selectedField,
|
|
12929
|
+
},
|
|
12930
|
+
});
|
|
12931
|
+
}
|
|
12932
|
+
remove() {
|
|
12933
|
+
var _a;
|
|
12934
|
+
this.service.peformWidgetAction({
|
|
12935
|
+
code: 'REMOVE_FILTER_EXPRESSION',
|
|
12936
|
+
params: {
|
|
12937
|
+
model: (_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField,
|
|
12938
|
+
},
|
|
12939
|
+
});
|
|
12940
|
+
}
|
|
12941
|
+
getFilteredUiActionModels(filterPredicate) {
|
|
12942
|
+
// return this.service.model!.possibleActions!.filter(filterPredicate).map((uiAction: UiAction) => {
|
|
12943
|
+
// return {
|
|
12944
|
+
// serviceToUse: this.service,
|
|
12945
|
+
// uiAction,
|
|
12946
|
+
// };
|
|
12947
|
+
// });
|
|
12948
|
+
return [];
|
|
12949
|
+
}
|
|
12950
|
+
}
|
|
12951
|
+
SmartFilterEditorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, deps: [{ token: SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12952
|
+
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"] }] });
|
|
12953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, decorators: [{
|
|
12954
|
+
type: Component,
|
|
12955
|
+
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"] }]
|
|
12956
|
+
}], ctorParameters: function () { return [{ type: SmartformLayoutDefinitionService }]; }, propDecorators: { service: [{
|
|
12957
|
+
type: Input
|
|
12958
|
+
}], formChild: [{
|
|
12959
|
+
type: ViewChild,
|
|
12960
|
+
args: ['form']
|
|
12961
|
+
}] } });
|
|
12962
|
+
|
|
12963
|
+
class SmartFilterEditorModule {
|
|
12964
|
+
}
|
|
12965
|
+
SmartFilterEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12966
|
+
SmartFilterEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, declarations: [SmartFilterParamsComponent,
|
|
12967
|
+
SmartFilterParamComponent,
|
|
12968
|
+
SmartFilterEditorContentComponent,
|
|
12969
|
+
SmartFilterExpressionItemsComponent,
|
|
12970
|
+
SmartFilterExpressionItemComponent], imports: [CommonModule,
|
|
12971
|
+
SmartIconModule,
|
|
12972
|
+
SmartExpandableSectionModule,
|
|
12973
|
+
SmartViewContextModule,
|
|
12974
|
+
SmartformModule] });
|
|
12975
|
+
SmartFilterEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, providers: [], imports: [[
|
|
12976
|
+
CommonModule,
|
|
12977
|
+
SmartIconModule,
|
|
12978
|
+
SmartExpandableSectionModule,
|
|
12979
|
+
SmartViewContextModule,
|
|
12980
|
+
SmartformModule,
|
|
12981
|
+
]] });
|
|
12982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, decorators: [{
|
|
12983
|
+
type: NgModule,
|
|
12984
|
+
args: [{
|
|
12985
|
+
declarations: [
|
|
12986
|
+
SmartFilterParamsComponent,
|
|
12987
|
+
SmartFilterParamComponent,
|
|
12988
|
+
SmartFilterEditorContentComponent,
|
|
12989
|
+
SmartFilterExpressionItemsComponent,
|
|
12990
|
+
SmartFilterExpressionItemComponent,
|
|
12991
|
+
],
|
|
12992
|
+
imports: [
|
|
12993
|
+
CommonModule,
|
|
12994
|
+
SmartIconModule,
|
|
12995
|
+
SmartExpandableSectionModule,
|
|
12996
|
+
SmartViewContextModule,
|
|
12997
|
+
SmartformModule,
|
|
12998
|
+
],
|
|
12999
|
+
exports: [],
|
|
13000
|
+
providers: [],
|
|
13001
|
+
}]
|
|
13002
|
+
}] });
|
|
13003
|
+
|
|
13004
|
+
class SmartNgClientModule {
|
|
13005
|
+
}
|
|
13006
|
+
SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13007
|
+
SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
|
|
13008
|
+
MatCommonModule,
|
|
13009
|
+
ComponentFactoryServiceModule,
|
|
13010
|
+
SmartViewContextModule,
|
|
13011
|
+
SmartdialogModule,
|
|
13012
|
+
SmartFilterModule,
|
|
13013
|
+
SmartformModule,
|
|
13014
|
+
SmartGridModule,
|
|
13015
|
+
SmartIconModule,
|
|
13016
|
+
SmartNavbarModule,
|
|
13017
|
+
SmartSessionModule,
|
|
13018
|
+
SmartTabGroupModule,
|
|
13019
|
+
SmarttableModule,
|
|
13020
|
+
SmartExpandableSectionModule,
|
|
13021
|
+
SmartComponentLayoutModule,
|
|
13022
|
+
SmartFilterEditorModule], exports: [ComponentFactoryServiceModule,
|
|
12285
13023
|
SmartComponentLayoutModule,
|
|
12286
13024
|
SmartdialogModule,
|
|
12287
13025
|
SmartExpandableSectionModule,
|
|
@@ -12312,6 +13050,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
12312
13050
|
SmarttableModule,
|
|
12313
13051
|
SmartExpandableSectionModule,
|
|
12314
13052
|
SmartComponentLayoutModule,
|
|
13053
|
+
SmartFilterEditorModule,
|
|
12315
13054
|
], ComponentFactoryServiceModule,
|
|
12316
13055
|
SmartComponentLayoutModule,
|
|
12317
13056
|
SmartdialogModule,
|
|
@@ -12346,6 +13085,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12346
13085
|
SmarttableModule,
|
|
12347
13086
|
SmartExpandableSectionModule,
|
|
12348
13087
|
SmartComponentLayoutModule,
|
|
13088
|
+
SmartFilterEditorModule,
|
|
12349
13089
|
],
|
|
12350
13090
|
exports: [
|
|
12351
13091
|
ComponentFactoryServiceModule,
|
|
@@ -12915,5 +13655,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12915
13655
|
* Generated bundle index. Do not edit.
|
|
12916
13656
|
*/
|
|
12917
13657
|
|
|
12918
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$
|
|
13658
|
+
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 };
|
|
12919
13659
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|