@smartbit4all/ng-client 3.1.34 → 3.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/esm2020/lib/smart-client/smart-component-api-client.mjs +13 -1
  2. package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +198 -0
  3. package/esm2020/lib/smart-filter-editor/api/configuration.mjs +91 -0
  4. package/esm2020/lib/smart-filter-editor/api/encoder.mjs +19 -0
  5. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +16 -0
  6. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +13 -0
  7. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +9 -0
  8. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +13 -0
  9. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +2 -0
  10. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +19 -0
  11. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +2 -0
  12. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +13 -0
  13. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +13 -0
  14. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +25 -0
  15. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +2 -0
  16. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +2 -0
  17. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +31 -0
  18. package/esm2020/lib/smart-filter-editor/api/param.mjs +2 -0
  19. package/esm2020/lib/smart-filter-editor/api/variables.mjs +9 -0
  20. package/esm2020/lib/smart-filter-editor/project.mjs +4 -0
  21. package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-item/smart-filter-expression-item.component.mjs +54 -0
  22. package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-items/smart-filter-expression-items.component.mjs +42 -0
  23. package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +109 -0
  24. package/esm2020/lib/smart-filter-editor/smart-filter-editor.model.mjs +2 -0
  25. package/esm2020/lib/smart-filter-editor/smart-filter-editor.module.mjs +53 -0
  26. package/esm2020/lib/smart-filter-editor/smart-filter-editor.service.mjs +43 -0
  27. package/esm2020/lib/smart-filter-editor/smart-filter-params/components/smart-filter-param/smart-filter-param.component.mjs +28 -0
  28. package/esm2020/lib/smart-filter-editor/smart-filter-params/smart-filter-params.component.mjs +107 -0
  29. package/esm2020/lib/smart-ng-client.module.mjs +6 -2
  30. package/esm2020/lib/smart-table/components/default-actions-popup/default-actions-popup.component.mjs +2 -2
  31. package/esm2020/lib/smart-table/tables/table.mjs +7 -1
  32. package/esm2020/projects.mjs +2 -1
  33. package/fesm2015/smartbit4all-ng-client.mjs +811 -79
  34. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  35. package/fesm2020/smartbit4all-ng-client.mjs +793 -79
  36. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  37. package/lib/smart-filter-editor/api/api/filter.service.d.ts +57 -0
  38. package/lib/smart-filter-editor/api/configuration.d.ts +104 -0
  39. package/lib/smart-filter-editor/api/encoder.d.ts +11 -0
  40. package/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.d.ts +16 -0
  41. package/lib/smart-filter-editor/api/model/filterExpressionBuilderField.d.ts +27 -0
  42. package/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.d.ts +39 -0
  43. package/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.d.ts +29 -0
  44. package/lib/smart-filter-editor/api/model/filterExpressionData.d.ts +29 -0
  45. package/lib/smart-filter-editor/api/model/filterExpressionDataType.d.ts +19 -0
  46. package/lib/smart-filter-editor/api/model/filterExpressionField.d.ts +38 -0
  47. package/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.d.ts +17 -0
  48. package/lib/smart-filter-editor/api/model/filterExpressionFieldList.d.ts +21 -0
  49. package/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.d.ts +25 -0
  50. package/lib/smart-filter-editor/api/model/filterExpressionList.d.ts +18 -0
  51. package/lib/smart-filter-editor/api/model/filterExpressionOperandData.d.ts +26 -0
  52. package/lib/smart-filter-editor/api/model/filterExpressionOperation.d.ts +31 -0
  53. package/lib/smart-filter-editor/api/param.d.ts +37 -0
  54. package/lib/smart-filter-editor/api/variables.d.ts +8 -0
  55. package/lib/smart-filter-editor/project.d.ts +3 -0
  56. package/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-item/smart-filter-expression-item.component.d.ts +17 -0
  57. package/lib/smart-filter-editor/smart-filter-editor-content/components/smart-filter-expression-items/smart-filter-expression-items.component.d.ts +18 -0
  58. package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +28 -0
  59. package/lib/smart-filter-editor/smart-filter-editor.model.d.ts +4 -0
  60. package/lib/smart-filter-editor/smart-filter-editor.module.d.ts +16 -0
  61. package/lib/smart-filter-editor/smart-filter-editor.service.d.ts +25 -0
  62. package/lib/smart-filter-editor/smart-filter-params/components/smart-filter-param/smart-filter-param.component.d.ts +13 -0
  63. package/lib/smart-filter-editor/smart-filter-params/smart-filter-params.component.d.ts +24 -0
  64. package/lib/smart-ng-client.module.d.ts +3 -2
  65. package/package.json +1 -1
  66. package/projects.d.ts +1 -0
  67. package/smartbit4all-ng-client-3.1.36.tgz +0 -0
  68. package/src/lib/smart-filter-editor/api/README.md +226 -0
  69. package/smartbit4all-ng-client-3.1.34.tgz +0 -0
@@ -103,7 +103,7 @@ class SmartSubject extends Subject {
103
103
  * Custom HttpParameterCodec
104
104
  * Workaround for https://github.com/angular/angular/issues/18261
105
105
  */
106
- class CustomHttpParameterCodec$5 {
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$5 = new InjectionToken('basePath');
122
- const COLLECTION_FORMATS$5 = {
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$5 {
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$5();
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$5();
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$5, optional: true }, { token: Configuration$5, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
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$5]
513
- }] }, { type: Configuration$5, decorators: [{
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$4 {
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$4 = new InjectionToken('basePath');
1000
- const COLLECTION_FORMATS$4 = {
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$4 {
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$4();
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$4();
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$4['csv'])) || localVarFormParams;
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$4, optional: true }, { token: Configuration$4, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
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$4]
1986
- }] }, { type: Configuration$4, decorators: [{
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$4, useFactory: configurationFactory }]
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$3 {
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$3 = new InjectionToken('basePath');
3226
- const COLLECTION_FORMATS$3 = {
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$3 {
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$3();
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$3();
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$3, optional: true }, { token: Configuration$3, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
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$3]
3444
- }] }, { type: Configuration$3, decorators: [{
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$3, useFactory: configurationFactory }]
3532
+ providers: [{ provide: Configuration$4, useFactory: configurationFactory }]
3533
3533
  };
3534
3534
  }
3535
3535
  }
@@ -5396,7 +5396,7 @@ class DefaultActionsPopupComponent {
5396
5396
  var _a;
5397
5397
  let actionsOfRow = (_a = this.row) === null || _a === void 0 ? void 0 : _a.actions;
5398
5398
  if (actionsOfRow) {
5399
- let uiAction = actionsOfRow.filter((action) => action.code === button.args[0].code);
5399
+ let uiAction = actionsOfRow.find((action) => action.code === button.args[0].code);
5400
5400
  if (button.callback) {
5401
5401
  button.callback(button.args, this.row, uiAction);
5402
5402
  }
@@ -5839,6 +5839,12 @@ class Table {
5839
5839
  let actionCodesFromRow = row === null || row === void 0 ? void 0 : row.actions.map((action) => action.code);
5840
5840
  let filteredActions = (_a = this.smartTable.defaultActions) === null || _a === void 0 ? void 0 : _a.filter((action) => actionCodesFromRow.includes(action.code));
5841
5841
  if (filteredActions && filteredActions.length > 0) {
5842
+ if (filteredActions.length === 1) {
5843
+ if (this.smartTable.onRowDoubleClick) {
5844
+ this.smartTable.onRowDoubleClick(row);
5845
+ return;
5846
+ }
5847
+ }
5842
5848
  (_b = this.defaultActionMenuComponents
5843
5849
  .toArray()
5844
5850
  .find((comp) => comp.row.id === row.id)) === null || _b === void 0 ? void 0 : _b.openDefaultActionsMenu();
@@ -8135,7 +8141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
8135
8141
  * Custom HttpParameterCodec
8136
8142
  * Workaround for https://github.com/angular/angular/issues/18261
8137
8143
  */
8138
- class CustomHttpParameterCodec$2 {
8144
+ class CustomHttpParameterCodec$3 {
8139
8145
  encodeKey(k) {
8140
8146
  return encodeURIComponent(k);
8141
8147
  }
@@ -8150,15 +8156,15 @@ class CustomHttpParameterCodec$2 {
8150
8156
  }
8151
8157
  }
8152
8158
 
8153
- const BASE_PATH$2 = new InjectionToken('basePath');
8154
- const COLLECTION_FORMATS$2 = {
8159
+ const BASE_PATH$3 = new InjectionToken('basePath');
8160
+ const COLLECTION_FORMATS$3 = {
8155
8161
  'csv': ',',
8156
8162
  'tsv': ' ',
8157
8163
  'ssv': ' ',
8158
8164
  'pipes': '|'
8159
8165
  };
8160
8166
 
8161
- class Configuration$2 {
8167
+ class Configuration$3 {
8162
8168
  constructor(configurationParameters = {}) {
8163
8169
  this.apiKeys = configurationParameters.apiKeys;
8164
8170
  this.username = configurationParameters.username;
@@ -8265,7 +8271,7 @@ class TreeService {
8265
8271
  this.httpClient = httpClient;
8266
8272
  this.basePath = 'http://localhost';
8267
8273
  this.defaultHeaders = new HttpHeaders();
8268
- this.configuration = new Configuration$2();
8274
+ this.configuration = new Configuration$3();
8269
8275
  if (configuration) {
8270
8276
  this.configuration = configuration;
8271
8277
  }
@@ -8278,7 +8284,7 @@ class TreeService {
8278
8284
  }
8279
8285
  this.configuration.basePath = basePath;
8280
8286
  }
8281
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
8287
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$3();
8282
8288
  }
8283
8289
  // @ts-ignore
8284
8290
  addToHttpParams(httpParams, value, key) {
@@ -8866,7 +8872,7 @@ class TreeService {
8866
8872
  });
8867
8873
  }
8868
8874
  }
8869
- TreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$2, optional: true }, { token: Configuration$2, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
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 });
8870
8876
  TreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, providedIn: 'root' });
8871
8877
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TreeService, decorators: [{
8872
8878
  type: Injectable,
@@ -8878,8 +8884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
8878
8884
  type: Optional
8879
8885
  }, {
8880
8886
  type: Inject,
8881
- args: [BASE_PATH$2]
8882
- }] }, { type: Configuration$2, decorators: [{
8887
+ args: [BASE_PATH$3]
8888
+ }] }, { type: Configuration$3, decorators: [{
8883
8889
  type: Optional
8884
8890
  }] }];
8885
8891
  } });
@@ -9687,7 +9693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
9687
9693
  * Custom HttpParameterCodec
9688
9694
  * Workaround for https://github.com/angular/angular/issues/18261
9689
9695
  */
9690
- class CustomHttpParameterCodec$1 {
9696
+ class CustomHttpParameterCodec$2 {
9691
9697
  encodeKey(k) {
9692
9698
  return encodeURIComponent(k);
9693
9699
  }
@@ -9702,15 +9708,15 @@ class CustomHttpParameterCodec$1 {
9702
9708
  }
9703
9709
  }
9704
9710
 
9705
- const BASE_PATH$1 = new InjectionToken('basePath');
9706
- const COLLECTION_FORMATS$1 = {
9711
+ const BASE_PATH$2 = new InjectionToken('basePath');
9712
+ const COLLECTION_FORMATS$2 = {
9707
9713
  'csv': ',',
9708
9714
  'tsv': ' ',
9709
9715
  'ssv': ' ',
9710
9716
  'pipes': '|'
9711
9717
  };
9712
9718
 
9713
- class Configuration$1 {
9719
+ class Configuration$2 {
9714
9720
  constructor(configurationParameters = {}) {
9715
9721
  this.apiKeys = configurationParameters.apiKeys;
9716
9722
  this.username = configurationParameters.username;
@@ -9817,7 +9823,7 @@ class GridService {
9817
9823
  this.httpClient = httpClient;
9818
9824
  this.basePath = 'http://localhost';
9819
9825
  this.defaultHeaders = new HttpHeaders();
9820
- this.configuration = new Configuration$1();
9826
+ this.configuration = new Configuration$2();
9821
9827
  if (configuration) {
9822
9828
  this.configuration = configuration;
9823
9829
  }
@@ -9830,7 +9836,7 @@ class GridService {
9830
9836
  }
9831
9837
  this.configuration.basePath = basePath;
9832
9838
  }
9833
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
9839
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
9834
9840
  }
9835
9841
  // @ts-ignore
9836
9842
  addToHttpParams(httpParams, value, key) {
@@ -10169,7 +10175,7 @@ class GridService {
10169
10175
  });
10170
10176
  }
10171
10177
  }
10172
- GridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH$1, optional: true }, { token: Configuration$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
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 });
10173
10179
  GridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, providedIn: 'root' });
10174
10180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, decorators: [{
10175
10181
  type: Injectable,
@@ -10181,8 +10187,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
10181
10187
  type: Optional
10182
10188
  }, {
10183
10189
  type: Inject,
10184
- args: [BASE_PATH$1]
10185
- }] }, { type: Configuration$1, decorators: [{
10190
+ args: [BASE_PATH$2]
10191
+ }] }, { type: Configuration$2, decorators: [{
10186
10192
  type: Optional
10187
10193
  }] }];
10188
10194
  } });
@@ -10280,7 +10286,7 @@ class ApiModule$1 {
10280
10286
  static forRoot(configurationFactory) {
10281
10287
  return {
10282
10288
  ngModule: ApiModule$1,
10283
- providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
10289
+ providers: [{ provide: Configuration$2, useFactory: configurationFactory }]
10284
10290
  };
10285
10291
  }
10286
10292
  }
@@ -11520,7 +11526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
11520
11526
  * Custom HttpParameterCodec
11521
11527
  * Workaround for https://github.com/angular/angular/issues/18261
11522
11528
  */
11523
- class CustomHttpParameterCodec {
11529
+ class CustomHttpParameterCodec$1 {
11524
11530
  encodeKey(k) {
11525
11531
  return encodeURIComponent(k);
11526
11532
  }
@@ -11535,15 +11541,15 @@ class CustomHttpParameterCodec {
11535
11541
  }
11536
11542
  }
11537
11543
 
11538
- const BASE_PATH = new InjectionToken('basePath');
11539
- const COLLECTION_FORMATS = {
11544
+ const BASE_PATH$1 = new InjectionToken('basePath');
11545
+ const COLLECTION_FORMATS$1 = {
11540
11546
  'csv': ',',
11541
11547
  'tsv': ' ',
11542
11548
  'ssv': ' ',
11543
11549
  'pipes': '|'
11544
11550
  };
11545
11551
 
11546
- class Configuration {
11552
+ class Configuration$1 {
11547
11553
  constructor(configurationParameters = {}) {
11548
11554
  this.apiKeys = configurationParameters.apiKeys;
11549
11555
  this.username = configurationParameters.username;
@@ -11650,7 +11656,7 @@ class DefaultService {
11650
11656
  this.httpClient = httpClient;
11651
11657
  this.basePath = 'http://localhost';
11652
11658
  this.defaultHeaders = new HttpHeaders();
11653
- this.configuration = new Configuration();
11659
+ this.configuration = new Configuration$1();
11654
11660
  if (configuration) {
11655
11661
  this.configuration = configuration;
11656
11662
  }
@@ -11663,7 +11669,7 @@ class DefaultService {
11663
11669
  }
11664
11670
  this.configuration.basePath = basePath;
11665
11671
  }
11666
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
11672
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
11667
11673
  }
11668
11674
  // @ts-ignore
11669
11675
  addToHttpParams(httpParams, value, key) {
@@ -11741,7 +11747,7 @@ class DefaultService {
11741
11747
  });
11742
11748
  }
11743
11749
  }
11744
- 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 });
11745
11751
  DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, providedIn: 'root' });
11746
11752
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DefaultService, decorators: [{
11747
11753
  type: Injectable,
@@ -11753,8 +11759,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
11753
11759
  type: Optional
11754
11760
  }, {
11755
11761
  type: Inject,
11756
- args: [BASE_PATH]
11757
- }] }, { type: Configuration, decorators: [{
11762
+ args: [BASE_PATH$1]
11763
+ }] }, { type: Configuration$1, decorators: [{
11758
11764
  type: Optional
11759
11765
  }] }];
11760
11766
  } });
@@ -11824,7 +11830,7 @@ class ApiModule {
11824
11830
  static forRoot(configurationFactory) {
11825
11831
  return {
11826
11832
  ngModule: ApiModule,
11827
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
11833
+ providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
11828
11834
  };
11829
11835
  }
11830
11836
  }
@@ -12258,24 +12264,736 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
12258
12264
  }]
12259
12265
  }] });
12260
12266
 
12261
- class SmartNgClientModule {
12262
- }
12263
- SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12264
- SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
12265
- MatCommonModule,
12266
- ComponentFactoryServiceModule,
12267
- SmartViewContextModule,
12268
- SmartdialogModule,
12269
- SmartFilterModule,
12270
- SmartformModule,
12271
- SmartGridModule,
12272
- SmartIconModule,
12273
- SmartNavbarModule,
12274
- SmartSessionModule,
12275
- SmartTabGroupModule,
12276
- SmarttableModule,
12277
- SmartExpandableSectionModule,
12278
- SmartComponentLayoutModule], exports: [ComponentFactoryServiceModule,
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 = [
12466
+ 'application/json'
12467
+ ];
12468
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
12469
+ }
12470
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
12471
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
12472
+ }
12473
+ let localVarHttpContext = options && options.context;
12474
+ if (localVarHttpContext === undefined) {
12475
+ localVarHttpContext = new HttpContext();
12476
+ }
12477
+ let responseType_ = 'json';
12478
+ if (localVarHttpHeaderAcceptSelected) {
12479
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
12480
+ responseType_ = 'text';
12481
+ }
12482
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
12483
+ responseType_ = 'json';
12484
+ }
12485
+ else {
12486
+ responseType_ = 'blob';
12487
+ }
12488
+ }
12489
+ let localVarPath = `/filter/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "filterIdentifier", value: filterIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/load`;
12490
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
12491
+ context: localVarHttpContext,
12492
+ responseType: responseType_,
12493
+ withCredentials: this.configuration.withCredentials,
12494
+ headers: localVarHeaders,
12495
+ observe: observe,
12496
+ reportProgress: reportProgress
12497
+ });
12498
+ }
12499
+ performWidgetAction(uuid, filterIdentifier, body, observe = 'body', reportProgress = false, options) {
12500
+ if (uuid === null || uuid === undefined) {
12501
+ throw new Error('Required parameter uuid was null or undefined when calling performWidgetAction.');
12502
+ }
12503
+ if (filterIdentifier === null || filterIdentifier === undefined) {
12504
+ throw new Error('Required parameter filterIdentifier was null or undefined when calling performWidgetAction.');
12505
+ }
12506
+ if (body === null || body === undefined) {
12507
+ throw new Error('Required parameter body was null or undefined when calling performWidgetAction.');
12508
+ }
12509
+ let localVarHeaders = this.defaultHeaders;
12510
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
12511
+ if (localVarHttpHeaderAcceptSelected === undefined) {
12512
+ // to determine the Accept header
12513
+ const httpHeaderAccepts = [
12514
+ 'application/json'
12515
+ ];
12516
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
12517
+ }
12518
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
12519
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
12520
+ }
12521
+ let localVarHttpContext = options && options.context;
12522
+ if (localVarHttpContext === undefined) {
12523
+ localVarHttpContext = new HttpContext();
12524
+ }
12525
+ // to determine the Content-Type header
12526
+ const consumes = [
12527
+ 'application/json'
12528
+ ];
12529
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
12530
+ if (httpContentTypeSelected !== undefined) {
12531
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
12532
+ }
12533
+ let responseType_ = 'json';
12534
+ if (localVarHttpHeaderAcceptSelected) {
12535
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
12536
+ responseType_ = 'text';
12537
+ }
12538
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
12539
+ responseType_ = 'json';
12540
+ }
12541
+ else {
12542
+ responseType_ = 'blob';
12543
+ }
12544
+ }
12545
+ let localVarPath = `/filter/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "filterIdentifier", value: filterIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/performWidgetAction`;
12546
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
12547
+ context: localVarHttpContext,
12548
+ body: body,
12549
+ responseType: responseType_,
12550
+ withCredentials: this.configuration.withCredentials,
12551
+ headers: localVarHeaders,
12552
+ observe: observe,
12553
+ reportProgress: reportProgress
12554
+ });
12555
+ }
12556
+ }
12557
+ 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 });
12558
+ FilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, providedIn: 'root' });
12559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FilterService, decorators: [{
12560
+ type: Injectable,
12561
+ args: [{
12562
+ providedIn: 'root'
12563
+ }]
12564
+ }], ctorParameters: function () {
12565
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
12566
+ type: Optional
12567
+ }, {
12568
+ type: Inject,
12569
+ args: [BASE_PATH]
12570
+ }] }, { type: Configuration, decorators: [{
12571
+ type: Optional
12572
+ }] }];
12573
+ } });
12574
+
12575
+ class SmartFilterEditorService {
12576
+ constructor(service) {
12577
+ this.service = service;
12578
+ this.modelChanged = new Subject();
12579
+ this.submit = new Subject();
12580
+ this.reSubscribeToChange = new Subject();
12581
+ }
12582
+ load() {
12583
+ return __awaiter(this, void 0, void 0, function* () {
12584
+ this.model = yield this.service.load(this.config.uuid, this.config.identifier).toPromise();
12585
+ this.modelChanged.next();
12586
+ });
12587
+ }
12588
+ peformWidgetAction(request) {
12589
+ return __awaiter(this, void 0, void 0, function* () {
12590
+ this.model = yield this.service
12591
+ .performWidgetAction(this.config.uuid, this.config.identifier, request)
12592
+ .toPromise();
12593
+ this.modelChanged.next();
12594
+ });
12595
+ }
12596
+ getModel() {
12597
+ return this.model;
12598
+ }
12599
+ performUiActionRequest(uiActionRequest, widgetId, nodeId) {
12600
+ return __awaiter(this, void 0, void 0, function* () {
12601
+ yield this.peformWidgetAction(uiActionRequest);
12602
+ });
12603
+ }
12604
+ handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
12605
+ return __awaiter(this, void 0, void 0, function* () {
12606
+ return {
12607
+ shouldPerformAction: true,
12608
+ uiActionRequest: uiActionRequest,
12609
+ };
12610
+ });
12611
+ }
12612
+ getAdditionalParams(uiAction) {
12613
+ throw new Error('Method not implemented.');
12614
+ }
12615
+ }
12616
+ SmartFilterEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, deps: [{ token: FilterService }], target: i0.ɵɵFactoryTarget.Injectable });
12617
+ SmartFilterEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService });
12618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorService, decorators: [{
12619
+ type: Injectable
12620
+ }], ctorParameters: function () { return [{ type: FilterService }]; } });
12621
+
12622
+ class SmartFilterParamComponent {
12623
+ constructor(service) {
12624
+ this.service = service;
12625
+ }
12626
+ ngOnInit() { }
12627
+ onItemClick(item) {
12628
+ this.data.serviceToUse.peformWidgetAction({
12629
+ code: 'ADD_FILTER_EXPRESSION',
12630
+ params: {
12631
+ model: item,
12632
+ },
12633
+ });
12634
+ }
12635
+ }
12636
+ SmartFilterParamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
12637
+ 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"] }] });
12638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamComponent, decorators: [{
12639
+ type: Component,
12640
+ 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"] }]
12641
+ }], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { data: [{
12642
+ type: Input
12643
+ }] } });
12644
+
12645
+ class SmartFilterParamsComponent {
12646
+ // filterComponentRef?: ComponentRef<SmartFilterComponent>;
12647
+ // filter?: SmartFilter;
12648
+ constructor(cfService) {
12649
+ this.cfService = cfService;
12650
+ this._destroy$ = new Subject();
12651
+ this.expandableSections = [];
12652
+ }
12653
+ ngOnInit() {
12654
+ this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
12655
+ this.setUp(this.service.model);
12656
+ });
12657
+ }
12658
+ ngOnDestroy() {
12659
+ this._destroy$.next();
12660
+ this._destroy$.complete();
12661
+ }
12662
+ setUp(model) {
12663
+ this.filterBuilder = model.model;
12664
+ // this.constructFilter();
12665
+ this.constructExpandableSections();
12666
+ }
12667
+ constructExpandableSections() {
12668
+ if (this.filterBuilder.groups) {
12669
+ this.expandableSections = this.filterBuilder.groups.map((filterExpressionBuilderGroup) => {
12670
+ return {
12671
+ title: filterExpressionBuilderGroup.label,
12672
+ cssClass: 'filterExpressionBuilderGroup',
12673
+ customComponent: SmartFilterParamComponent,
12674
+ data: {
12675
+ group: filterExpressionBuilderGroup.fields,
12676
+ serviceToUse: this.service,
12677
+ },
12678
+ inputName: 'data',
12679
+ isExpanded: true,
12680
+ };
12681
+ });
12682
+ }
12683
+ // if (this.service.model?.externalFilterGroup) {
12684
+ // this.expandableSectionsFromExcel = {
12685
+ // title: this.service.model.externalFilterGroup.label!,
12686
+ // cssClass: 'filterExpressionBuilderGroup',
12687
+ // customComponent: SmartFilterParamComponent,
12688
+ // data: {
12689
+ // group: this.service.model.externalFilterGroup.fields,
12690
+ // },
12691
+ // inputName: 'data',
12692
+ // isExpanded: true,
12693
+ // };
12694
+ // }
12695
+ }
12696
+ // constructFilter(): void {
12697
+ // if (this.filter && this.filterComponentRef) {
12698
+ // return;
12699
+ // }
12700
+ // // this.filter = {
12701
+ // // data: this.service.model?.groupFilter?.filters! as FilterExpressionField[],
12702
+ // // type: SmartFilterType.Simple,
12703
+ // // showPossibleActions: false,
12704
+ // // };
12705
+ // this.filterVcRef?.clear();
12706
+ // this.filterComponentRef = this.cfService.createComponent(
12707
+ // this.filterVcRef!,
12708
+ // SmartFilterComponent,
12709
+ // new Map<string, any>([['filter', this.filter]])
12710
+ // );
12711
+ // this.filterComponentRef.instance?.service.change
12712
+ // .pipe(takeUntil(this._destroy$))
12713
+ // .subscribe(() => {
12714
+ // let uiAction: UiAction = this.service.model?.filterGroupsAction!;
12715
+ // uiAction.params = {
12716
+ // filter: {
12717
+ // filters: this.filterComponentRef?.instance.service.filter?.data,
12718
+ // },
12719
+ // };
12720
+ // // let uiActionModel: UiActionModel = {
12721
+ // // serviceToUse: this.service,
12722
+ // // uiAction,
12723
+ // // };
12724
+ // // this.uiActionService.uiActionModel = uiActionModel;
12725
+ // // this.uiActionService.execute(uiAction);
12726
+ // });
12727
+ // }
12728
+ addDataSource() {
12729
+ // this.service.addDataSource();
12730
+ }
12731
+ }
12732
+ SmartFilterParamsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, deps: [{ token: ComponentFactoryService }], target: i0.ɵɵFactoryTarget.Component });
12733
+ 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"] }] });
12734
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterParamsComponent, decorators: [{
12735
+ type: Component,
12736
+ 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"] }]
12737
+ }], ctorParameters: function () { return [{ type: ComponentFactoryService }]; }, propDecorators: { service: [{
12738
+ type: Input
12739
+ }], filterVcRef: [{
12740
+ type: ViewChild,
12741
+ args: ['smartFilter', { read: ViewContainerRef }]
12742
+ }] } });
12743
+
12744
+ class SmartFilterExpressionItemComponent {
12745
+ constructor(service) {
12746
+ this.service = service;
12747
+ this.isSelected = false;
12748
+ }
12749
+ ngOnInit() {
12750
+ var _a;
12751
+ this.isSelected =
12752
+ JSON.stringify((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === JSON.stringify(this.item);
12753
+ }
12754
+ setOperatorTo(event, operationType) {
12755
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
12756
+ this.item.expressionData.boolOperator = operationType;
12757
+ this.service.peformWidgetAction({
12758
+ code: 'UPDATE_FILTER_EXPRESSION',
12759
+ params: {
12760
+ model: this.item,
12761
+ },
12762
+ });
12763
+ }
12764
+ select(event, item) {
12765
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
12766
+ if (!this.isSelected) {
12767
+ this.service.peformWidgetAction({
12768
+ code: 'SELECT_FIELD',
12769
+ params: {
12770
+ model: this.item,
12771
+ },
12772
+ });
12773
+ }
12774
+ else {
12775
+ this.service.peformWidgetAction({
12776
+ code: 'SELECT_FIELD',
12777
+ params: {
12778
+ model: this.item,
12779
+ },
12780
+ });
12781
+ }
12782
+ }
12783
+ }
12784
+ SmartFilterExpressionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
12785
+ 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"] }] });
12786
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemComponent, decorators: [{
12787
+ type: Component,
12788
+ 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"] }]
12789
+ }], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { item: [{
12790
+ type: Input
12791
+ }], hasNext: [{
12792
+ type: Input
12793
+ }] } });
12794
+
12795
+ class SmartFilterExpressionItemsComponent {
12796
+ constructor(service) {
12797
+ var _a;
12798
+ this.service = service;
12799
+ this._destroy$ = new Subject();
12800
+ this.isSelected = false;
12801
+ this.service.modelChanged.subscribe(() => {
12802
+ var _a;
12803
+ console.log(this.service.model);
12804
+ this.isSelected = ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === null;
12805
+ });
12806
+ this.isSelected = ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField) === null;
12807
+ }
12808
+ ngOnChanges(changes) {
12809
+ console.log(changes);
12810
+ }
12811
+ ngOnInit() { }
12812
+ ngOnDestroy() {
12813
+ this._destroy$.next();
12814
+ this._destroy$.complete();
12815
+ }
12816
+ select() {
12817
+ // this.service.selectFilterExpressionField(undefined);
12818
+ }
12819
+ drop(event) {
12820
+ moveItemInArray(this.items, event.previousIndex, event.currentIndex);
12821
+ }
12822
+ }
12823
+ SmartFilterExpressionItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, deps: [{ token: SmartFilterEditorService }], target: i0.ɵɵFactoryTarget.Component });
12824
+ 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"] }] });
12825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterExpressionItemsComponent, decorators: [{
12826
+ type: Component,
12827
+ 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"] }]
12828
+ }], ctorParameters: function () { return [{ type: SmartFilterEditorService }]; }, propDecorators: { items: [{
12829
+ type: Input
12830
+ }] } });
12831
+
12832
+ class SmartFilterEditorContentComponent {
12833
+ constructor(layoutService) {
12834
+ this.layoutService = layoutService;
12835
+ this._destroy$ = new Subject();
12836
+ this.uiActionModels = [];
12837
+ this.expressionUiActionModels = [];
12838
+ }
12839
+ ngOnInit() {
12840
+ this.service.load();
12841
+ this.service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
12842
+ this.setUp();
12843
+ });
12844
+ }
12845
+ ngOnDestroy() {
12846
+ this._destroy$.next();
12847
+ this._destroy$.complete();
12848
+ }
12849
+ setUp() {
12850
+ this.constructUiActionModels();
12851
+ if (this.service.model.selectedFieldEditor) {
12852
+ this.constructForm();
12853
+ }
12854
+ else {
12855
+ this.smartForm = undefined;
12856
+ }
12857
+ }
12858
+ constructUiActionModels() {
12859
+ var _a, _b, _c, _d;
12860
+ if ((_a = this.service.model) === null || _a === void 0 ? void 0 : _a.possibleActions) {
12861
+ this.uiActionModels = this.service.model.possibleActions.map((action) => {
12862
+ return {
12863
+ serviceToUse: this.service,
12864
+ uiAction: action,
12865
+ };
12866
+ });
12867
+ }
12868
+ if ((_c = (_b = this.service.model) === null || _b === void 0 ? void 0 : _b.selectedFieldEditor) === null || _c === void 0 ? void 0 : _c.possibleActions) {
12869
+ this.expressionUiActionModels = (_d = this.service.model) === null || _d === void 0 ? void 0 : _d.selectedFieldEditor.possibleActions.map((uiAction) => {
12870
+ var _a;
12871
+ let copiedUiAction = {};
12872
+ Object.keys(uiAction).map((key) => {
12873
+ copiedUiAction[key] = uiAction[key];
12874
+ });
12875
+ copiedUiAction.params = {
12876
+ field: (_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField,
12877
+ };
12878
+ return {
12879
+ serviceToUse: this.service,
12880
+ uiAction: copiedUiAction,
12881
+ };
12882
+ });
12883
+ }
12884
+ }
12885
+ constructForm() {
12886
+ var _a, _b, _c, _d;
12887
+ let generatedWidgets = this.layoutService.render({
12888
+ 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,
12889
+ });
12890
+ this.smartForm = {
12891
+ direction: SmartFormWidgetDirection.ROW,
12892
+ componentModel: { data: (_d = this.service.model) === null || _d === void 0 ? void 0 : _d.selectedField },
12893
+ widgets: generatedWidgets,
12894
+ };
12895
+ }
12896
+ save() {
12897
+ var _a, _b;
12898
+ (_a = this.formChild) === null || _a === void 0 ? void 0 : _a.submitForm(false);
12899
+ this.service.peformWidgetAction({
12900
+ code: 'UPDATE_FILTER_EXPRESSION',
12901
+ params: {
12902
+ model: (_b = this.service.model) === null || _b === void 0 ? void 0 : _b.selectedField,
12903
+ },
12904
+ });
12905
+ }
12906
+ remove() {
12907
+ var _a;
12908
+ this.service.peformWidgetAction({
12909
+ code: 'REMOVE_FILTER_EXPRESSION',
12910
+ params: {
12911
+ model: (_a = this.service.model) === null || _a === void 0 ? void 0 : _a.selectedField,
12912
+ },
12913
+ });
12914
+ }
12915
+ getFilteredUiActionModels(filterPredicate) {
12916
+ // return this.service.model!.possibleActions!.filter(filterPredicate).map((uiAction: UiAction) => {
12917
+ // return {
12918
+ // serviceToUse: this.service,
12919
+ // uiAction,
12920
+ // };
12921
+ // });
12922
+ return [];
12923
+ }
12924
+ }
12925
+ SmartFilterEditorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, deps: [{ token: SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
12926
+ 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"] }] });
12927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorContentComponent, decorators: [{
12928
+ type: Component,
12929
+ 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"] }]
12930
+ }], ctorParameters: function () { return [{ type: SmartformLayoutDefinitionService }]; }, propDecorators: { service: [{
12931
+ type: Input
12932
+ }], formChild: [{
12933
+ type: ViewChild,
12934
+ args: ['form']
12935
+ }] } });
12936
+
12937
+ class SmartFilterEditorModule {
12938
+ }
12939
+ SmartFilterEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12940
+ SmartFilterEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, declarations: [SmartFilterParamsComponent,
12941
+ SmartFilterParamComponent,
12942
+ SmartFilterEditorContentComponent,
12943
+ SmartFilterExpressionItemsComponent,
12944
+ SmartFilterExpressionItemComponent], imports: [CommonModule,
12945
+ SmartIconModule,
12946
+ SmartExpandableSectionModule,
12947
+ SmartViewContextModule,
12948
+ SmartformModule] });
12949
+ SmartFilterEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, providers: [], imports: [[
12950
+ CommonModule,
12951
+ SmartIconModule,
12952
+ SmartExpandableSectionModule,
12953
+ SmartViewContextModule,
12954
+ SmartformModule,
12955
+ ]] });
12956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartFilterEditorModule, decorators: [{
12957
+ type: NgModule,
12958
+ args: [{
12959
+ declarations: [
12960
+ SmartFilterParamsComponent,
12961
+ SmartFilterParamComponent,
12962
+ SmartFilterEditorContentComponent,
12963
+ SmartFilterExpressionItemsComponent,
12964
+ SmartFilterExpressionItemComponent,
12965
+ ],
12966
+ imports: [
12967
+ CommonModule,
12968
+ SmartIconModule,
12969
+ SmartExpandableSectionModule,
12970
+ SmartViewContextModule,
12971
+ SmartformModule,
12972
+ ],
12973
+ exports: [],
12974
+ providers: [],
12975
+ }]
12976
+ }] });
12977
+
12978
+ class SmartNgClientModule {
12979
+ }
12980
+ SmartNgClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12981
+ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartNgClientModule, declarations: [SmartFileUploaderComponent], imports: [BrowserModule,
12982
+ MatCommonModule,
12983
+ ComponentFactoryServiceModule,
12984
+ SmartViewContextModule,
12985
+ SmartdialogModule,
12986
+ SmartFilterModule,
12987
+ SmartformModule,
12988
+ SmartGridModule,
12989
+ SmartIconModule,
12990
+ SmartNavbarModule,
12991
+ SmartSessionModule,
12992
+ SmartTabGroupModule,
12993
+ SmarttableModule,
12994
+ SmartExpandableSectionModule,
12995
+ SmartComponentLayoutModule,
12996
+ SmartFilterEditorModule], exports: [ComponentFactoryServiceModule,
12279
12997
  SmartComponentLayoutModule,
12280
12998
  SmartdialogModule,
12281
12999
  SmartExpandableSectionModule,
@@ -12306,6 +13024,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
12306
13024
  SmarttableModule,
12307
13025
  SmartExpandableSectionModule,
12308
13026
  SmartComponentLayoutModule,
13027
+ SmartFilterEditorModule,
12309
13028
  ], ComponentFactoryServiceModule,
12310
13029
  SmartComponentLayoutModule,
12311
13030
  SmartdialogModule,
@@ -12340,6 +13059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
12340
13059
  SmarttableModule,
12341
13060
  SmartExpandableSectionModule,
12342
13061
  SmartComponentLayoutModule,
13062
+ SmartFilterEditorModule,
12343
13063
  ],
12344
13064
  exports: [
12345
13065
  ComponentFactoryServiceModule,
@@ -12553,6 +13273,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12553
13273
  delete uiActionRequest.params['param'];
12554
13274
  delete uiActionRequest.params['_files'];
12555
13275
  delete uiActionRequest.params['isMultiple'];
13276
+ // await this.sendModelToServer();
12556
13277
  if (!isMultiple) {
12557
13278
  yield this.viewContext.performUploadAction(this.uuid, uiActionRequest, param, files[0]);
12558
13279
  }
@@ -12561,9 +13282,11 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12561
13282
  }
12562
13283
  }
12563
13284
  else if (widgetId && nodeId) {
13285
+ // await this.sendModelToServer();
12564
13286
  yield this.viewContext.performWidgetAction(this.uuid, widgetId, nodeId, uiActionRequest);
12565
13287
  }
12566
13288
  else if (widgetId) {
13289
+ // await this.sendModelToServer();
12567
13290
  yield this.viewContext.performWidgetMainAction(this.uuid, widgetId, uiActionRequest);
12568
13291
  }
12569
13292
  else {
@@ -12571,6 +13294,15 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12571
13294
  }
12572
13295
  });
12573
13296
  }
13297
+ // private async sendModelToServer() {
13298
+ // this.submitForms(false);
13299
+ // let dataChange = {
13300
+ // kind: DataChangeKind.Widget,
13301
+ // source: '',
13302
+ // values: [['', this.getModel()]],
13303
+ // };
13304
+ // await this.viewContext.dataChanged(this.uuid!, dataChange);
13305
+ // }
12574
13306
  handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
12575
13307
  throw new Error('handleSpecificDemandsAsynchronously method not implemented.');
12576
13308
  }
@@ -12897,5 +13629,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
12897
13629
  * Generated bundle index. Do not edit.
12898
13630
  */
12899
13631
 
12900
- export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$4 as BASE_PATH, COLLECTION_FORMATS$4 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$4 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, SmartFilterModule, 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 };
13632
+ 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 };
12901
13633
  //# sourceMappingURL=smartbit4all-ng-client.mjs.map