@qrvey/utils 1.2.9-22 → 1.2.9-25

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 (50) hide show
  1. package/README.md +320 -320
  2. package/dist/cjs/columns/interfaces/IColumn.d.ts +0 -2
  3. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  4. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
  5. package/dist/cjs/dates/constants/index.d.ts +1 -0
  6. package/dist/cjs/dates/constants/index.js +1 -0
  7. package/dist/cjs/filters/adapters/FDToFlatUI.js +1 -1
  8. package/dist/cjs/filters/adapters/FDToUI.js +1 -2
  9. package/dist/cjs/filters/adapters/logicToFlatUI.js +3 -3
  10. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +1 -1
  11. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  12. package/dist/cjs/format/definition.d.ts +8 -0
  13. package/dist/cjs/format/definition.js +2 -1
  14. package/dist/cjs/format/localization.js +23 -10
  15. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  16. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  17. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  18. package/dist/cjs/qrvey/helpers/transformValue.js +3 -2
  19. package/dist/columns/interfaces/IColumn.d.ts +0 -2
  20. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  21. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  22. package/dist/dates/constants/index.d.ts +1 -0
  23. package/dist/dates/constants/index.js +1 -0
  24. package/dist/filters/adapters/FDToFlatUI.js +1 -1
  25. package/dist/filters/adapters/FDToUI.js +1 -2
  26. package/dist/filters/adapters/logicToFlatUI.js +3 -3
  27. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +1 -1
  28. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  29. package/dist/format/definition.d.ts +8 -0
  30. package/dist/format/definition.js +1 -0
  31. package/dist/format/localization.js +24 -11
  32. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  33. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  34. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +1 -0
  35. package/dist/qrvey/helpers/transformValue.js +3 -2
  36. package/package.json +1 -1
  37. package/src/columns/interfaces/IColumn.ts +0 -2
  38. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  39. package/src/dates/constants/index.ts +1 -0
  40. package/src/filters/adapters/FDToFlatUI.ts +1 -1
  41. package/src/filters/adapters/FDToUI.ts +1 -1
  42. package/src/filters/adapters/logicToFlatUI.ts +1 -1
  43. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +1 -1
  44. package/src/filters/interfaces/OLD_IFilterDetail.ts +2 -1
  45. package/src/format/definition.ts +2 -0
  46. package/src/format/localization.ts +23 -11
  47. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  48. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +1 -0
  49. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +2 -1
  50. package/src/qrvey/helpers/transformValue.ts +3 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-22*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-25*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -688,12 +688,12 @@ Output:
688
688
 
689
689
 
690
690
 
691
- ### dist/filters/adapters/FDToLogic.js
691
+ ### dist/filters/adapters/FDToFlatUI.js
692
692
 
693
693
 
694
- #### FDToLogic(filterData)
694
+ #### FDToFlatUI(filterData, datasetsInfo)
695
695
 
696
- Generates a Filter Logic structure from Filter Data structure.
696
+ Generates a Flattened UI filter structure from Filter Data structure.
697
697
 
698
698
 
699
699
 
@@ -703,6 +703,7 @@ Generates a Filter Logic structure from Filter Data structure.
703
703
  | Name | Type | Description | |
704
704
  | ---- | ---- | ----------- | -------- |
705
705
  | filterData | | The filter data object. |   |
706
+ | datasetsInfo | | Collection of datasets information |   |
706
707
 
707
708
 
708
709
 
@@ -710,13 +711,13 @@ Generates a Filter Logic structure from Filter Data structure.
710
711
  ##### Returns
711
712
 
712
713
 
713
- - a filter logic array
714
+ - a flattened UI filters array
714
715
 
715
716
 
716
717
 
717
- #### getLogicBodyFromFD21(filterData)
718
+ #### FD21ToFlatUI(scopes, datasetsInfo)
718
719
 
719
- Gets the logic body
720
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
720
721
 
721
722
 
722
723
 
@@ -725,7 +726,8 @@ Gets the logic body
725
726
 
726
727
  | Name | Type | Description | |
727
728
  | ---- | ---- | ----------- | -------- |
728
- | filterData | | The filter data object |   |
729
+ | scopes | | The filter scope section |   |
730
+ | datasetsInfo | | Collection of datasets information |   |
729
731
 
730
732
 
731
733
 
@@ -733,17 +735,17 @@ Gets the logic body
733
735
  ##### Returns
734
736
 
735
737
 
736
- - a filter logic array
738
+ - a flattened UI filters array
737
739
 
738
740
 
739
741
 
740
742
 
741
- ### dist/filters/adapters/FDToFlatUI.js
743
+ ### dist/filters/adapters/FDToLogic.js
742
744
 
743
745
 
744
- #### FDToFlatUI(filterData, datasetsInfo)
746
+ #### FDToLogic(filterData)
745
747
 
746
- Generates a Flattened UI filter structure from Filter Data structure.
748
+ Generates a Filter Logic structure from Filter Data structure.
747
749
 
748
750
 
749
751
 
@@ -753,7 +755,6 @@ Generates a Flattened UI filter structure from Filter Data structure.
753
755
  | Name | Type | Description | |
754
756
  | ---- | ---- | ----------- | -------- |
755
757
  | filterData | | The filter data object. |   |
756
- | datasetsInfo | | Collection of datasets information |   |
757
758
 
758
759
 
759
760
 
@@ -761,13 +762,13 @@ Generates a Flattened UI filter structure from Filter Data structure.
761
762
  ##### Returns
762
763
 
763
764
 
764
- - a flattened UI filters array
765
+ - a filter logic array
765
766
 
766
767
 
767
768
 
768
- #### FD21ToFlatUI(scopes, datasetsInfo)
769
+ #### getLogicBodyFromFD21(filterData)
769
770
 
770
- Generates a Filter Builder Structure from the Filter Data structure v2.1
771
+ Gets the logic body
771
772
 
772
773
 
773
774
 
@@ -776,8 +777,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
776
777
 
777
778
  | Name | Type | Description | |
778
779
  | ---- | ---- | ----------- | -------- |
779
- | scopes | | The filter scope section |   |
780
- | datasetsInfo | | Collection of datasets information |   |
780
+ | filterData | | The filter data object |   |
781
781
 
782
782
 
783
783
 
@@ -785,7 +785,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
785
785
  ##### Returns
786
786
 
787
787
 
788
- - a flattened UI filters array
788
+ - a filter logic array
789
789
 
790
790
 
791
791
 
@@ -2889,12 +2889,12 @@ try to find this string as a variable on Windows object
2889
2889
 
2890
2890
 
2891
2891
 
2892
- ### dist/typescript/decorators/Throttled.js
2892
+ ### dist/typescript/decorators/Debounce.js
2893
2893
 
2894
2894
 
2895
- #### Throttled(time)
2895
+ #### Debounce(time)
2896
2896
 
2897
- (Method Decorator) Throttled Class Method
2897
+ (Method Decorator) Debounce Class Method
2898
2898
 
2899
2899
 
2900
2900
 
@@ -2916,12 +2916,12 @@ try to find this string as a variable on Windows object
2916
2916
 
2917
2917
 
2918
2918
 
2919
- ### dist/typescript/decorators/Debounce.js
2919
+ ### dist/typescript/decorators/Throttled.js
2920
2920
 
2921
2921
 
2922
- #### Debounce(time)
2922
+ #### Throttled(time)
2923
2923
 
2924
- (Method Decorator) Debounce Class Method
2924
+ (Method Decorator) Throttled Class Method
2925
2925
 
2926
2926
 
2927
2927
 
@@ -2943,12 +2943,12 @@ try to find this string as a variable on Windows object
2943
2943
 
2944
2944
 
2945
2945
 
2946
- ### dist/dates/relative/helpers/getStatementCase.js
2946
+ ### dist/dates/relative/helpers/formatStatement.js
2947
2947
 
2948
2948
 
2949
- #### getStatementCase(includeCurrent, isCalendarDate)
2949
+ #### formatStatement(statement)
2950
2950
 
2951
- Returns a number/constant that identifies a relative date case
2951
+ Build a proper relative date statement type
2952
2952
 
2953
2953
 
2954
2954
 
@@ -2957,8 +2957,7 @@ Returns a number/constant that identifies a relative date case
2957
2957
 
2958
2958
  | Name | Type | Description | |
2959
2959
  | ---- | ---- | ----------- | -------- |
2960
- | includeCurrent | `boolean` | |   |
2961
- | isCalendarDate | `boolean` | |   |
2960
+ | statement | `RelativeStatement` | |   |
2962
2961
 
2963
2962
 
2964
2963
 
@@ -2966,17 +2965,17 @@ Returns a number/constant that identifies a relative date case
2966
2965
  ##### Returns
2967
2966
 
2968
2967
 
2969
- - `number`
2968
+ - `RelativeStatement`
2970
2969
 
2971
2970
 
2972
2971
 
2973
2972
 
2974
- ### dist/dates/relative/helpers/formatStatement.js
2973
+ ### dist/dates/relative/helpers/getStatementCase.js
2975
2974
 
2976
2975
 
2977
- #### formatStatement(statement)
2976
+ #### getStatementCase(includeCurrent, isCalendarDate)
2978
2977
 
2979
- Build a proper relative date statement type
2978
+ Returns a number/constant that identifies a relative date case
2980
2979
 
2981
2980
 
2982
2981
 
@@ -2985,7 +2984,8 @@ Build a proper relative date statement type
2985
2984
 
2986
2985
  | Name | Type | Description | |
2987
2986
  | ---- | ---- | ----------- | -------- |
2988
- | statement | `RelativeStatement` | |   |
2987
+ | includeCurrent | `boolean` | |   |
2988
+ | isCalendarDate | `boolean` | |   |
2989
2989
 
2990
2990
 
2991
2991
 
@@ -2993,7 +2993,7 @@ Build a proper relative date statement type
2993
2993
  ##### Returns
2994
2994
 
2995
2995
 
2996
- - `RelativeStatement`
2996
+ - `number`
2997
2997
 
2998
2998
 
2999
2999
 
@@ -3052,13 +3052,12 @@ Returns a filter builder config object by a any given config
3052
3052
 
3053
3053
 
3054
3054
 
3055
- ### dist/filters/helpers/backend/buildExpression.js
3055
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3056
3056
 
3057
3057
 
3058
- #### buildExpression(filter)
3058
+ #### excludeFiltersByAggregateColumn(filterData)
3059
3059
 
3060
- Builds filter expression by the filter data.
3061
- - If the resulting value array is empty the enabled property will be false.
3060
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3062
3061
 
3063
3062
 
3064
3063
 
@@ -3067,7 +3066,7 @@ Builds filter expression by the filter data.
3067
3066
 
3068
3067
  | Name | Type | Description | |
3069
3068
  | ---- | ---- | ----------- | -------- |
3070
- | filter | | The filter to transform |   |
3069
+ | filterData | | The filter data object |   |
3071
3070
 
3072
3071
 
3073
3072
 
@@ -3075,17 +3074,17 @@ Builds filter expression by the filter data.
3075
3074
  ##### Returns
3076
3075
 
3077
3076
 
3078
- - a filter expression
3077
+ - The new filter data object that were excluded the aggregate filters
3079
3078
 
3080
3079
 
3081
3080
 
3082
3081
 
3083
- ### dist/filters/helpers/backend/buildUserFilters.js
3082
+ ### dist/filters/helpers/common/areFiltersEquals.js
3084
3083
 
3085
3084
 
3086
- #### buildUserFilters(userFilters)
3085
+ #### areFiltersEquals(filter1, filter2)
3087
3086
 
3088
- Transform user Filters array into Filter Logic structure
3087
+ Validates if both filters are the same
3089
3088
 
3090
3089
 
3091
3090
 
@@ -3094,7 +3093,8 @@ Transform user Filters array into Filter Logic structure
3094
3093
 
3095
3094
  | Name | Type | Description | |
3096
3095
  | ---- | ---- | ----------- | -------- |
3097
- | userFilters | | The filters that the user defined. |   |
3096
+ | filter1 | | filter 1 |   |
3097
+ | filter2 | | filter 2 |   |
3098
3098
 
3099
3099
 
3100
3100
 
@@ -3102,17 +3102,26 @@ Transform user Filters array into Filter Logic structure
3102
3102
  ##### Returns
3103
3103
 
3104
3104
 
3105
- - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
3106
-
3105
+ - true: the filters are equal; false: the filters are NOT equal
3107
3106
 
3108
3107
 
3109
3108
 
3110
- ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
3111
3109
 
3110
+ ### dist/filters/helpers/common/excludeFiltersByParams.js
3112
3111
 
3113
- #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
3114
3112
 
3113
+ #### excludeFiltersByParams(filterData, params)
3115
3114
 
3115
+ Excludes filters from the given Filters.
3116
+ The validation to filter the stored filter is depending on:
3117
+ - Column
3118
+ - Qrvey ID
3119
+ - Scope type
3120
+ - Scope ID
3121
+ - Panel ID
3122
+ - Validator type
3123
+ - Property type
3124
+ - Enabled flags
3116
3125
 
3117
3126
 
3118
3127
 
@@ -3121,8 +3130,8 @@ Transform user Filters array into Filter Logic structure
3121
3130
 
3122
3131
  | Name | Type | Description | |
3123
3132
  | ---- | ---- | ----------- | -------- |
3124
- | aggFilters | | |   |
3125
- | summaryIndex | | |   |
3133
+ | filterData | | The Filter Data or the UI Filter Data |   |
3134
+ | params | | given parameters to validate the filter data |   |
3126
3135
 
3127
3136
 
3128
3137
 
@@ -3130,17 +3139,17 @@ Transform user Filters array into Filter Logic structure
3130
3139
  ##### Returns
3131
3140
 
3132
3141
 
3133
- -
3142
+ - a new Filter object structure
3134
3143
 
3135
3144
 
3136
3145
 
3137
3146
 
3138
- ### dist/filters/helpers/backend/getBackendGroupValue.js
3147
+ ### dist/filters/helpers/common/excludeFiltersByScopes.js
3139
3148
 
3140
3149
 
3141
- #### getBackendGroupValue(filter)
3150
+ #### excludeFiltersByScopes(filterData, scopes)
3142
3151
 
3143
- Gets a group value for the backend logic structure
3152
+ Excludes and returns a filter data without filters by the given scopes
3144
3153
 
3145
3154
 
3146
3155
 
@@ -3149,7 +3158,8 @@ Gets a group value for the backend logic structure
3149
3158
 
3150
3159
  | Name | Type | Description | |
3151
3160
  | ---- | ---- | ----------- | -------- |
3152
- | filter | | The filter |   |
3161
+ | filterData | | The Filter Data |   |
3162
+ | scopes | | collection of scopes to be as filtering parameters |   |
3153
3163
 
3154
3164
 
3155
3165
 
@@ -3157,17 +3167,17 @@ Gets a group value for the backend logic structure
3157
3167
  ##### Returns
3158
3168
 
3159
3169
 
3160
- - a property
3170
+ - The new Filter Data without filters by the given scopes.
3161
3171
 
3162
3172
 
3163
3173
 
3164
3174
 
3165
- ### dist/filters/helpers/backend/getBackendProperty.js
3175
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
3166
3176
 
3167
3177
 
3168
- #### getBackendProperty(filter)
3178
+ #### getFilterColumnLabel(column)
3169
3179
 
3170
- Gets a property for the logic structure
3180
+ Get an string of the properties of the given filter column.
3171
3181
 
3172
3182
 
3173
3183
 
@@ -3176,7 +3186,7 @@ Gets a property for the logic structure
3176
3186
 
3177
3187
  | Name | Type | Description | |
3178
3188
  | ---- | ---- | ----------- | -------- |
3179
- | filter | | The filter |   |
3189
+ | column | | The filter column |   |
3180
3190
 
3181
3191
 
3182
3192
 
@@ -3184,17 +3194,17 @@ Gets a property for the logic structure
3184
3194
  ##### Returns
3185
3195
 
3186
3196
 
3187
- - a property
3197
+ - an string with the property, aggregate or calculation label.
3188
3198
 
3189
3199
 
3190
3200
 
3191
3201
 
3192
- ### dist/filters/helpers/backend/getBackendValidator.js
3202
+ ### dist/filters/helpers/common/getFilterLabel.js
3193
3203
 
3194
3204
 
3195
- #### getBackendValidator(validator)
3205
+ #### getFilterLabel(filter)
3196
3206
 
3197
- Gets the Validator that is used in requests
3207
+ Gets the Filter Label + Column label
3198
3208
 
3199
3209
 
3200
3210
 
@@ -3203,7 +3213,7 @@ Gets the Validator that is used in requests
3203
3213
 
3204
3214
  | Name | Type | Description | |
3205
3215
  | ---- | ---- | ----------- | -------- |
3206
- | validator | | Filter Validator used in UI |   |
3216
+ | filter | | the UI filter |   |
3207
3217
 
3208
3218
 
3209
3219
 
@@ -3211,17 +3221,28 @@ Gets the Validator that is used in requests
3211
3221
  ##### Returns
3212
3222
 
3213
3223
 
3214
- - Filter Validator used in Backend
3224
+ - a sring label
3215
3225
 
3216
3226
 
3217
3227
 
3218
3228
 
3219
- ### dist/filters/helpers/backend/getBackendValues.js
3229
+ ### dist/filters/helpers/common/getFilterid.js
3220
3230
 
3221
3231
 
3222
- #### getBackendValues(filter)
3232
+ #### getFilterid(filter)
3223
3233
 
3224
- Gets the expresion values in the logic format
3234
+ Get the Filter ID by the filter structure
3235
+ The order of the epression ID is:
3236
+ - Scope Type
3237
+ - scopeid
3238
+ - qrveyid
3239
+ - panelid
3240
+ - columnid
3241
+ - validator
3242
+ - property
3243
+ - Column Aggregate
3244
+ - Column Calculation
3245
+ - Optional Index
3225
3246
 
3226
3247
 
3227
3248
 
@@ -3230,7 +3251,7 @@ Gets the expresion values in the logic format
3230
3251
 
3231
3252
  | Name | Type | Description | |
3232
3253
  | ---- | ---- | ----------- | -------- |
3233
- | filter | | The filter structure |   |
3254
+ | filter | | the filter structure |   |
3234
3255
 
3235
3256
 
3236
3257
 
@@ -3238,13 +3259,17 @@ Gets the expresion values in the logic format
3238
3259
  ##### Returns
3239
3260
 
3240
3261
 
3241
- - A collection of backend expression value
3262
+ - a text to identify the filter
3242
3263
 
3243
3264
 
3244
3265
 
3245
- #### getResultValues(values, filter)
3246
3266
 
3247
- Gets the expression values. Depending on the column type
3267
+ ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3268
+
3269
+
3270
+ #### getFiltersByAggregateColumn(filterData)
3271
+
3272
+ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3248
3273
 
3249
3274
 
3250
3275
 
@@ -3253,8 +3278,7 @@ Gets the expression values. Depending on the column type
3253
3278
 
3254
3279
  | Name | Type | Description | |
3255
3280
  | ---- | ---- | ----------- | -------- |
3256
- | values | | a collection of filter values |   |
3257
- | filter | | The filter structure |   |
3281
+ | filterData | | The filter data object |   |
3258
3282
 
3259
3283
 
3260
3284
 
@@ -3262,13 +3286,26 @@ Gets the expression values. Depending on the column type
3262
3286
  ##### Returns
3263
3287
 
3264
3288
 
3265
- -
3289
+ - The new filter data object that were get the aggregate filters
3266
3290
 
3267
3291
 
3268
3292
 
3269
- #### getRankingValues(values, rankingGroupIndex)
3270
3293
 
3271
- Gets the Ranking values.
3294
+ ### dist/filters/helpers/common/getFiltersByParams.js
3295
+
3296
+
3297
+ #### getFiltersByParams(filterData, params)
3298
+
3299
+ Gets filters from the given params.
3300
+ The validation to filter the stored filter is depending on:
3301
+ - Column
3302
+ - Qrvey ID
3303
+ - Scope type
3304
+ - Scope ID
3305
+ - Panel ID
3306
+ - Validator type
3307
+ - Property type
3308
+ - Enabled flags
3272
3309
 
3273
3310
 
3274
3311
 
@@ -3277,8 +3314,8 @@ Gets the Ranking values.
3277
3314
 
3278
3315
  | Name | Type | Description | |
3279
3316
  | ---- | ---- | ----------- | -------- |
3280
- | values | | a collection of filter values in the ranking structure |   |
3281
- | rankingGroupIndex | | determine the value by this index to build and return it |   |
3317
+ | filterData | | The Filter Data or the UI Filter Data |   |
3318
+ | params | | given parameters to validate the dataset |   |
3282
3319
 
3283
3320
 
3284
3321
 
@@ -3286,17 +3323,17 @@ Gets the Ranking values.
3286
3323
  ##### Returns
3287
3324
 
3288
3325
 
3289
- - Expression values for ranking
3326
+ - a new Filter object structure
3290
3327
 
3291
3328
 
3292
3329
 
3293
3330
 
3294
- ### dist/filters/helpers/backend/getLogicByScopes.js
3331
+ ### dist/filters/helpers/common/getFiltersByScopes.js
3295
3332
 
3296
3333
 
3297
- #### getLogicByScopes(logics, scopes)
3334
+ #### getFiltersByScopes(filterData, scopes)
3298
3335
 
3299
- Gets the filters from logic data by Scopes/Scope IDs.
3336
+ Filters and gets a Filter Data by the given scopes
3300
3337
 
3301
3338
 
3302
3339
 
@@ -3305,8 +3342,8 @@ Gets the filters from logic data by Scopes/Scope IDs.
3305
3342
 
3306
3343
  | Name | Type | Description | |
3307
3344
  | ---- | ---- | ----------- | -------- |
3308
- | logics | | The logic array |   |
3309
- | scopes | | The collection of Scopes/Scope IDs |   |
3345
+ | filterData | | The Filter Data |   |
3346
+ | scopes | | collection of scopes types |   |
3310
3347
 
3311
3348
 
3312
3349
 
@@ -3314,17 +3351,17 @@ Gets the filters from logic data by Scopes/Scope IDs.
3314
3351
  ##### Returns
3315
3352
 
3316
3353
 
3317
- - a new Logic array
3354
+ - The new Filter Data
3318
3355
 
3319
3356
 
3320
3357
 
3321
3358
 
3322
- ### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
3359
+ ### dist/filters/helpers/common/getFiltersByScopesIds.js
3323
3360
 
3324
3361
 
3325
- #### getLogicByScopesHierarchy(filterData, scopes, currentScope)
3362
+ #### getFiltersByScopesIds(filterData, scopes)
3326
3363
 
3327
- Gets filters from the logic by the scopes hierarchy.
3364
+ Gets filters from Filter Data by Scopes/Scope IDs.
3328
3365
 
3329
3366
 
3330
3367
 
@@ -3333,9 +3370,8 @@ Gets filters from the logic by the scopes hierarchy.
3333
3370
 
3334
3371
  | Name | Type | Description | |
3335
3372
  | ---- | ---- | ----------- | -------- |
3336
- | filterData | | |   |
3337
- | scopes | | |   |
3338
- | currentScope | | |   |
3373
+ | filterData | | The filter data |   |
3374
+ | scopes | | The collection of Scopes/Scope IDs |   |
3339
3375
 
3340
3376
 
3341
3377
 
@@ -3343,17 +3379,17 @@ Gets filters from the logic by the scopes hierarchy.
3343
3379
  ##### Returns
3344
3380
 
3345
3381
 
3346
- - a new array of Logic
3382
+ - a new Filter Data
3347
3383
 
3348
3384
 
3349
3385
 
3350
3386
 
3351
- ### dist/filters/helpers/common/areFiltersEquals.js
3387
+ ### dist/filters/helpers/common/getFiltersByVisibility.js
3352
3388
 
3353
3389
 
3354
- #### areFiltersEquals(filter1, filter2)
3390
+ #### getFiltersByVisibility(filterData, scopes)
3355
3391
 
3356
- Validates if both filters are the same
3392
+ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3357
3393
 
3358
3394
 
3359
3395
 
@@ -3362,8 +3398,8 @@ Validates if both filters are the same
3362
3398
 
3363
3399
  | Name | Type | Description | |
3364
3400
  | ---- | ---- | ----------- | -------- |
3365
- | filter1 | | filter 1 |   |
3366
- | filter2 | | filter 2 |   |
3401
+ | filterData | | a Filter Data or UI Filter Data |   |
3402
+ | scopes | | a Scopes/Scope IDs array |   |
3367
3403
 
3368
3404
 
3369
3405
 
@@ -3371,17 +3407,17 @@ Validates if both filters are the same
3371
3407
  ##### Returns
3372
3408
 
3373
3409
 
3374
- - true: the filters are equal; false: the filters are NOT equal
3410
+ - a new Filter Data
3375
3411
 
3376
3412
 
3377
3413
 
3378
3414
 
3379
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3415
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
3380
3416
 
3381
3417
 
3382
- #### excludeFiltersByAggregateColumn(filterData)
3418
+ #### getMergeFiltersSettings(settings)
3383
3419
 
3384
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3420
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3385
3421
 
3386
3422
 
3387
3423
 
@@ -3390,7 +3426,7 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3390
3426
 
3391
3427
  | Name | Type | Description | |
3392
3428
  | ---- | ---- | ----------- | -------- |
3393
- | filterData | | The filter data object |   |
3429
+ | settings | | an object to the MergeFilters settings |   |
3394
3430
 
3395
3431
 
3396
3432
 
@@ -3398,17 +3434,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3398
3434
  ##### Returns
3399
3435
 
3400
3436
 
3401
- - The new filter data object that were excluded the aggregate filters
3437
+ - a new MergeFilters settings object.
3402
3438
 
3403
3439
 
3404
3440
 
3405
3441
 
3406
- ### dist/filters/helpers/common/excludeFiltersByScopes.js
3442
+ ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3407
3443
 
3408
3444
 
3409
- #### excludeFiltersByScopes(filterData, scopes)
3445
+ #### getParamsToGetFilterSettings(settings)
3410
3446
 
3411
- Excludes and returns a filter data without filters by the given scopes
3447
+ Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3412
3448
 
3413
3449
 
3414
3450
 
@@ -3417,8 +3453,7 @@ Excludes and returns a filter data without filters by the given scopes
3417
3453
 
3418
3454
  | Name | Type | Description | |
3419
3455
  | ---- | ---- | ----------- | -------- |
3420
- | filterData | | The Filter Data |   |
3421
- | scopes | | collection of scopes to be as filtering parameters |   |
3456
+ | settings | | an object to the ParamsToGetFilter settings |   |
3422
3457
 
3423
3458
 
3424
3459
 
@@ -3426,26 +3461,17 @@ Excludes and returns a filter data without filters by the given scopes
3426
3461
  ##### Returns
3427
3462
 
3428
3463
 
3429
- - The new Filter Data without filters by the given scopes.
3464
+ - a new ParamsToGetFilter settings object.
3430
3465
 
3431
3466
 
3432
3467
 
3433
3468
 
3434
- ### dist/filters/helpers/common/excludeFiltersByParams.js
3469
+ ### dist/filters/helpers/common/haveFiltersByDataset.js
3435
3470
 
3436
3471
 
3437
- #### excludeFiltersByParams(filterData, params)
3472
+ #### haveFiltersByDataset(filterData, qrveyid)
3438
3473
 
3439
- Excludes filters from the given Filters.
3440
- The validation to filter the stored filter is depending on:
3441
- - Column
3442
- - Qrvey ID
3443
- - Scope type
3444
- - Scope ID
3445
- - Panel ID
3446
- - Validator type
3447
- - Property type
3448
- - Enabled flags
3474
+ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3449
3475
 
3450
3476
 
3451
3477
 
@@ -3454,8 +3480,8 @@ The validation to filter the stored filter is depending on:
3454
3480
 
3455
3481
  | Name | Type | Description | |
3456
3482
  | ---- | ---- | ----------- | -------- |
3457
- | filterData | | The Filter Data or the UI Filter Data |   |
3458
- | params | | given parameters to validate the filter data |   |
3483
+ | filterData | | the filter data or the UI filter data. |   |
3484
+ | qrveyid | | The Qrvey ID |   |
3459
3485
 
3460
3486
 
3461
3487
 
@@ -3463,17 +3489,17 @@ The validation to filter the stored filter is depending on:
3463
3489
  ##### Returns
3464
3490
 
3465
3491
 
3466
- - a new Filter object structure
3492
+ - true: the filter data has filters by the Qrvey ID
3467
3493
 
3468
3494
 
3469
3495
 
3470
3496
 
3471
- ### dist/filters/helpers/common/getFilterColumnLabel.js
3497
+ ### dist/filters/helpers/common/isBetweenValidator.js
3472
3498
 
3473
3499
 
3474
- #### getFilterColumnLabel(column)
3500
+ #### isBetweenValidator(validator)
3475
3501
 
3476
- Get an string of the properties of the given filter column.
3502
+ Validates if the given validator is a Between type
3477
3503
 
3478
3504
 
3479
3505
 
@@ -3482,7 +3508,7 @@ Get an string of the properties of the given filter column.
3482
3508
 
3483
3509
  | Name | Type | Description | |
3484
3510
  | ---- | ---- | ----------- | -------- |
3485
- | column | | The filter column |   |
3511
+ | validator | | The validator |   |
3486
3512
 
3487
3513
 
3488
3514
 
@@ -3490,17 +3516,17 @@ Get an string of the properties of the given filter column.
3490
3516
  ##### Returns
3491
3517
 
3492
3518
 
3493
- - an string with the property, aggregate or calculation label.
3519
+ - true: it is a between validator; false: it is not a between validator
3494
3520
 
3495
3521
 
3496
3522
 
3497
3523
 
3498
- ### dist/filters/helpers/common/getFilterLabel.js
3524
+ ### dist/filters/helpers/common/isDateDistinctProperty.js
3499
3525
 
3500
3526
 
3501
- #### getFilterLabel(filter)
3527
+ #### isDateDistinctProperty(column, property)
3502
3528
 
3503
- Gets the Filter Label + Column label
3529
+ Determines if the filter column and property is a distinct group dates type
3504
3530
 
3505
3531
 
3506
3532
 
@@ -3509,7 +3535,8 @@ Gets the Filter Label + Column label
3509
3535
 
3510
3536
  | Name | Type | Description | |
3511
3537
  | ---- | ---- | ----------- | -------- |
3512
- | filter | | the UI filter |   |
3538
+ | column | | The filter column |   |
3539
+ | property | | The filter property |   |
3513
3540
 
3514
3541
 
3515
3542
 
@@ -3517,28 +3544,17 @@ Gets the Filter Label + Column label
3517
3544
  ##### Returns
3518
3545
 
3519
3546
 
3520
- - a sring label
3547
+ - True if the given property is included from distinct group dates type
3521
3548
 
3522
3549
 
3523
3550
 
3524
3551
 
3525
- ### dist/filters/helpers/common/getFilterid.js
3552
+ ### dist/filters/helpers/common/isInValidator.js
3526
3553
 
3527
3554
 
3528
- #### getFilterid(filter)
3555
+ #### isInValidator(validator)
3529
3556
 
3530
- Get the Filter ID by the filter structure
3531
- The order of the epression ID is:
3532
- - Scope Type
3533
- - scopeid
3534
- - qrveyid
3535
- - panelid
3536
- - columnid
3537
- - validator
3538
- - property
3539
- - Column Aggregate
3540
- - Column Calculation
3541
- - Optional Index
3557
+ Validates if the given validator is a In type
3542
3558
 
3543
3559
 
3544
3560
 
@@ -3547,7 +3563,7 @@ The order of the epression ID is:
3547
3563
 
3548
3564
  | Name | Type | Description | |
3549
3565
  | ---- | ---- | ----------- | -------- |
3550
- | filter | | the filter structure |   |
3566
+ | validator | | The validator |   |
3551
3567
 
3552
3568
 
3553
3569
 
@@ -3555,17 +3571,17 @@ The order of the epression ID is:
3555
3571
  ##### Returns
3556
3572
 
3557
3573
 
3558
- - a text to identify the filter
3574
+ - true: it is a In validator; false: it is not a In validator
3559
3575
 
3560
3576
 
3561
3577
 
3562
3578
 
3563
- ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3579
+ ### dist/filters/helpers/common/isNullValidator.js
3564
3580
 
3565
3581
 
3566
- #### getFiltersByAggregateColumn(filterData)
3582
+ #### isNullValidator(validator)
3567
3583
 
3568
- Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3584
+ Checks if the given validator is a Null type.
3569
3585
 
3570
3586
 
3571
3587
 
@@ -3574,7 +3590,7 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3574
3590
 
3575
3591
  | Name | Type | Description | |
3576
3592
  | ---- | ---- | ----------- | -------- |
3577
- | filterData | | The filter data object |   |
3593
+ | validator | | The Filter Validator |   |
3578
3594
 
3579
3595
 
3580
3596
 
@@ -3582,26 +3598,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3582
3598
  ##### Returns
3583
3599
 
3584
3600
 
3585
- - The new filter data object that were get the aggregate filters
3601
+ - True: It is a Null Validator; False: It is not a Null Validator.
3586
3602
 
3587
3603
 
3588
3604
 
3589
3605
 
3590
- ### dist/filters/helpers/common/getFiltersByParams.js
3606
+ ### dist/filters/helpers/common/isRangeValidator.js
3591
3607
 
3592
3608
 
3593
- #### getFiltersByParams(filterData, params)
3609
+ #### isRangeValidator(validator)
3594
3610
 
3595
- Gets filters from the given params.
3596
- The validation to filter the stored filter is depending on:
3597
- - Column
3598
- - Qrvey ID
3599
- - Scope type
3600
- - Scope ID
3601
- - Panel ID
3602
- - Validator type
3603
- - Property type
3604
- - Enabled flags
3611
+ Validates if the given validator is a Range type. Range type means the value has min and max values to filter
3605
3612
 
3606
3613
 
3607
3614
 
@@ -3610,8 +3617,7 @@ The validation to filter the stored filter is depending on:
3610
3617
 
3611
3618
  | Name | Type | Description | |
3612
3619
  | ---- | ---- | ----------- | -------- |
3613
- | filterData | | The Filter Data or the UI Filter Data |   |
3614
- | params | | given parameters to validate the dataset |   |
3620
+ | validator | | The filter validator |   |
3615
3621
 
3616
3622
 
3617
3623
 
@@ -3619,17 +3625,17 @@ The validation to filter the stored filter is depending on:
3619
3625
  ##### Returns
3620
3626
 
3621
3627
 
3622
- - a new Filter object structure
3628
+ - true: it is a range validator
3623
3629
 
3624
3630
 
3625
3631
 
3626
3632
 
3627
- ### dist/filters/helpers/common/getFiltersByScopes.js
3633
+ ### dist/filters/helpers/common/isRegularValidator.js
3628
3634
 
3629
3635
 
3630
- #### getFiltersByScopes(filterData, scopes)
3636
+ #### isRegularValidator(validator)
3631
3637
 
3632
- Filters and gets a Filter Data by the given scopes
3638
+ Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3633
3639
 
3634
3640
 
3635
3641
 
@@ -3638,8 +3644,7 @@ Filters and gets a Filter Data by the given scopes
3638
3644
 
3639
3645
  | Name | Type | Description | |
3640
3646
  | ---- | ---- | ----------- | -------- |
3641
- | filterData | | The Filter Data |   |
3642
- | scopes | | collection of scopes types |   |
3647
+ | validator | | The filter validator |   |
3643
3648
 
3644
3649
 
3645
3650
 
@@ -3647,17 +3652,17 @@ Filters and gets a Filter Data by the given scopes
3647
3652
  ##### Returns
3648
3653
 
3649
3654
 
3650
- - The new Filter Data
3655
+ - true: it is a range validator
3651
3656
 
3652
3657
 
3653
3658
 
3654
3659
 
3655
- ### dist/filters/helpers/common/getFiltersByScopesIds.js
3660
+ ### dist/filters/helpers/common/mergeFilters.js
3656
3661
 
3657
3662
 
3658
- #### getFiltersByScopesIds(filterData, scopes)
3663
+ #### mergeFilters(filterData1, filterData2, overwriteValues)
3659
3664
 
3660
- Gets filters from Filter Data by Scopes/Scope IDs.
3665
+ Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3661
3666
 
3662
3667
 
3663
3668
 
@@ -3666,8 +3671,9 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3666
3671
 
3667
3672
  | Name | Type | Description | |
3668
3673
  | ---- | ---- | ----------- | -------- |
3669
- | filterData | | The filter data |   |
3670
- | scopes | | The collection of Scopes/Scope IDs |   |
3674
+ | filterData1 | | The target filter data |   |
3675
+ | filterData2 | | the filter data to be merged |   |
3676
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
3671
3677
 
3672
3678
 
3673
3679
 
@@ -3675,17 +3681,13 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3675
3681
  ##### Returns
3676
3682
 
3677
3683
 
3678
- - a new Filter Data
3679
-
3680
-
3681
-
3684
+ - a new filter data structure
3682
3685
 
3683
- ### dist/filters/helpers/common/getFiltersByVisibility.js
3684
3686
 
3685
3687
 
3686
- #### getFiltersByVisibility(filterData, scopes)
3688
+ #### mergeScopes(scopes1, scopes2, overwriteValues)
3687
3689
 
3688
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3690
+ Gets a new scope structure array by merging two scope structures
3689
3691
 
3690
3692
 
3691
3693
 
@@ -3694,8 +3696,9 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3694
3696
 
3695
3697
  | Name | Type | Description | |
3696
3698
  | ---- | ---- | ----------- | -------- |
3697
- | filterData | | a Filter Data or UI Filter Data |   |
3698
- | scopes | | a Scopes/Scope IDs array |   |
3699
+ | scopes1 | | the target scope structure |   |
3700
+ | scopes2 | | the scope to be merged |   |
3701
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
3699
3702
 
3700
3703
 
3701
3704
 
@@ -3703,17 +3706,13 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3703
3706
  ##### Returns
3704
3707
 
3705
3708
 
3706
- - a new Filter Data
3707
-
3708
-
3709
-
3709
+ - a new scope structure array
3710
3710
 
3711
- ### dist/filters/helpers/common/getMergeFiltersSettings.js
3712
3711
 
3713
3712
 
3714
- #### getMergeFiltersSettings(settings)
3713
+ #### mergeDatasets(datasets1, datasets2, overwriteValues)
3715
3714
 
3716
- Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3715
+ Gets a new dataset structure array by merging two dataset structures
3717
3716
 
3718
3717
 
3719
3718
 
@@ -3722,7 +3721,9 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3722
3721
 
3723
3722
  | Name | Type | Description | |
3724
3723
  | ---- | ---- | ----------- | -------- |
3725
- | settings | | an object to the MergeFilters settings |   |
3724
+ | datasets1 | | the target dataset structure |   |
3725
+ | datasets2 | | the dataset to be merged |   |
3726
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
3726
3727
 
3727
3728
 
3728
3729
 
@@ -3730,17 +3731,13 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3730
3731
  ##### Returns
3731
3732
 
3732
3733
 
3733
- - a new MergeFilters settings object.
3734
-
3735
-
3736
-
3734
+ - a new dataset structure array
3737
3735
 
3738
- ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3739
3736
 
3740
3737
 
3741
- #### getParamsToGetFilterSettings(settings)
3738
+ #### mergeFilterss(filters1, filters2, overwriteValues)
3742
3739
 
3743
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3740
+ Gets a new filter structure array by merging two filter structures
3744
3741
 
3745
3742
 
3746
3743
 
@@ -3749,7 +3746,9 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3749
3746
 
3750
3747
  | Name | Type | Description | |
3751
3748
  | ---- | ---- | ----------- | -------- |
3752
- | settings | | an object to the ParamsToGetFilter settings |   |
3749
+ | filters1 | | the target filter structure |   |
3750
+ | filters2 | | the filter to be merged |   |
3751
+ | overwriteValues | | Flag to overwrite or not the filter values |   |
3753
3752
 
3754
3753
 
3755
3754
 
@@ -3757,17 +3756,13 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3757
3756
  ##### Returns
3758
3757
 
3759
3758
 
3760
- - a new ParamsToGetFilter settings object.
3761
-
3762
-
3763
-
3759
+ - a new filter structure array
3764
3760
 
3765
- ### dist/filters/helpers/common/haveFiltersByDataset.js
3766
3761
 
3767
3762
 
3768
- #### haveFiltersByDataset(filterData, qrveyid)
3763
+ #### mergeValues(filter1, filter2, overwrite)
3769
3764
 
3770
- Validates if the filter data has filters by a dataset ID (Qrvey ID).
3765
+ Gets a new value structure array by merging two value structures
3771
3766
 
3772
3767
 
3773
3768
 
@@ -3776,8 +3771,9 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3776
3771
 
3777
3772
  | Name | Type | Description | |
3778
3773
  | ---- | ---- | ----------- | -------- |
3779
- | filterData | | the filter data or the UI filter data. |   |
3780
- | qrveyid | | The Qrvey ID |   |
3774
+ | filter1 | | the target filter structure |   |
3775
+ | filter2 | | the filter to be used to merge the values |   |
3776
+ | overwrite | | Flag to overwrite or not the filter values |   |
3781
3777
 
3782
3778
 
3783
3779
 
@@ -3785,17 +3781,17 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3785
3781
  ##### Returns
3786
3782
 
3787
3783
 
3788
- - true: the filter data has filters by the Qrvey ID
3784
+ - a new value structure array
3789
3785
 
3790
3786
 
3791
3787
 
3792
3788
 
3793
- ### dist/filters/helpers/common/isBetweenValidator.js
3789
+ ### dist/filters/helpers/common/resolveDatasetConditions.js
3794
3790
 
3795
3791
 
3796
- #### isBetweenValidator(validator)
3792
+ #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3797
3793
 
3798
- Validates if the given validator is a Between type
3794
+ Resolves the conditions by given params
3799
3795
 
3800
3796
 
3801
3797
 
@@ -3804,7 +3800,10 @@ Validates if the given validator is a Between type
3804
3800
 
3805
3801
  | Name | Type | Description | |
3806
3802
  | ---- | ---- | ----------- | -------- |
3807
- | validator | | The validator |   |
3803
+ | filter | | The dataset structure |   |
3804
+ | params | | given parameters to validate the dataset |   |
3805
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
3806
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
3808
3807
 
3809
3808
 
3810
3809
 
@@ -3812,17 +3811,17 @@ Validates if the given validator is a Between type
3812
3811
  ##### Returns
3813
3812
 
3814
3813
 
3815
- - true: it is a between validator; false: it is not a between validator
3814
+ - true: the condition is satisfied
3816
3815
 
3817
3816
 
3818
3817
 
3819
3818
 
3820
- ### dist/filters/helpers/common/isDateDistinctProperty.js
3819
+ ### dist/filters/helpers/common/resolveFilterConditions.js
3821
3820
 
3822
3821
 
3823
- #### isDateDistinctProperty(column, property)
3822
+ #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3824
3823
 
3825
- Determines if the filter column and property is a distinct group dates type
3824
+ Resolves the conditions by given params
3826
3825
 
3827
3826
 
3828
3827
 
@@ -3831,8 +3830,10 @@ Determines if the filter column and property is a distinct group dates type
3831
3830
 
3832
3831
  | Name | Type | Description | |
3833
3832
  | ---- | ---- | ----------- | -------- |
3834
- | column | | The filter column |   |
3835
- | property | | The filter property |   |
3833
+ | filter | | The filter |   |
3834
+ | params | | given parameters to validate the filter |   |
3835
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
3836
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
3836
3837
 
3837
3838
 
3838
3839
 
@@ -3840,17 +3841,17 @@ Determines if the filter column and property is a distinct group dates type
3840
3841
  ##### Returns
3841
3842
 
3842
3843
 
3843
- - True if the given property is included from distinct group dates type
3844
+ - true: the condition is satisfied
3844
3845
 
3845
3846
 
3846
3847
 
3847
3848
 
3848
- ### dist/filters/helpers/common/isInValidator.js
3849
+ ### dist/filters/helpers/common/resolveScopeConditions.js
3849
3850
 
3850
3851
 
3851
- #### isInValidator(validator)
3852
+ #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3852
3853
 
3853
- Validates if the given validator is a In type
3854
+ Resolves the conditions by given params
3854
3855
 
3855
3856
 
3856
3857
 
@@ -3859,7 +3860,10 @@ Validates if the given validator is a In type
3859
3860
 
3860
3861
  | Name | Type | Description | |
3861
3862
  | ---- | ---- | ----------- | -------- |
3862
- | validator | | The validator |   |
3863
+ | filter | | The filter scope structure |   |
3864
+ | params | | given parameters to validate the filter |   |
3865
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
3866
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
3863
3867
 
3864
3868
 
3865
3869
 
@@ -3867,17 +3871,18 @@ Validates if the given validator is a In type
3867
3871
  ##### Returns
3868
3872
 
3869
3873
 
3870
- - true: it is a In validator; false: it is not a In validator
3874
+ - true: the condition is satisfied
3871
3875
 
3872
3876
 
3873
3877
 
3874
3878
 
3875
- ### dist/filters/helpers/common/isNullValidator.js
3879
+ ### dist/filters/helpers/backend/buildExpression.js
3876
3880
 
3877
3881
 
3878
- #### isNullValidator(validator)
3882
+ #### buildExpression(filter)
3879
3883
 
3880
- Checks if the given validator is a Null type.
3884
+ Builds filter expression by the filter data.
3885
+ - If the resulting value array is empty the enabled property will be false.
3881
3886
 
3882
3887
 
3883
3888
 
@@ -3886,7 +3891,7 @@ Checks if the given validator is a Null type.
3886
3891
 
3887
3892
  | Name | Type | Description | |
3888
3893
  | ---- | ---- | ----------- | -------- |
3889
- | validator | | The Filter Validator |   |
3894
+ | filter | | The filter to transform |   |
3890
3895
 
3891
3896
 
3892
3897
 
@@ -3894,17 +3899,17 @@ Checks if the given validator is a Null type.
3894
3899
  ##### Returns
3895
3900
 
3896
3901
 
3897
- - True: It is a Null Validator; False: It is not a Null Validator.
3902
+ - a filter expression
3898
3903
 
3899
3904
 
3900
3905
 
3901
3906
 
3902
- ### dist/filters/helpers/common/isRangeValidator.js
3907
+ ### dist/filters/helpers/backend/buildUserFilters.js
3903
3908
 
3904
3909
 
3905
- #### isRangeValidator(validator)
3910
+ #### buildUserFilters(userFilters)
3906
3911
 
3907
- Validates if the given validator is a Range type. Range type means the value has min and max values to filter
3912
+ Transform user Filters array into Filter Logic structure
3908
3913
 
3909
3914
 
3910
3915
 
@@ -3913,7 +3918,7 @@ Validates if the given validator is a Range type. Range type means the value has
3913
3918
 
3914
3919
  | Name | Type | Description | |
3915
3920
  | ---- | ---- | ----------- | -------- |
3916
- | validator | | The filter validator |   |
3921
+ | userFilters | | The filters that the user defined. |   |
3917
3922
 
3918
3923
 
3919
3924
 
@@ -3921,17 +3926,17 @@ Validates if the given validator is a Range type. Range type means the value has
3921
3926
  ##### Returns
3922
3927
 
3923
3928
 
3924
- - true: it is a range validator
3929
+ - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
3925
3930
 
3926
3931
 
3927
3932
 
3928
3933
 
3929
- ### dist/filters/helpers/common/isRegularValidator.js
3934
+ ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
3930
3935
 
3931
3936
 
3932
- #### isRegularValidator(validator)
3937
+ #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
3938
+
3933
3939
 
3934
- Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3935
3940
 
3936
3941
 
3937
3942
 
@@ -3940,7 +3945,8 @@ Validates if the given validator is a regular type. Regular type means the filte
3940
3945
 
3941
3946
  | Name | Type | Description | |
3942
3947
  | ---- | ---- | ----------- | -------- |
3943
- | validator | | The filter validator |   |
3948
+ | aggFilters | | |   |
3949
+ | summaryIndex | | |   |
3944
3950
 
3945
3951
 
3946
3952
 
@@ -3948,17 +3954,17 @@ Validates if the given validator is a regular type. Regular type means the filte
3948
3954
  ##### Returns
3949
3955
 
3950
3956
 
3951
- - true: it is a range validator
3957
+ -
3952
3958
 
3953
3959
 
3954
3960
 
3955
3961
 
3956
- ### dist/filters/helpers/common/mergeFilters.js
3962
+ ### dist/filters/helpers/backend/getBackendGroupValue.js
3957
3963
 
3958
3964
 
3959
- #### mergeFilters(filterData1, filterData2, overwriteValues)
3965
+ #### getBackendGroupValue(filter)
3960
3966
 
3961
- Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3967
+ Gets a group value for the backend logic structure
3962
3968
 
3963
3969
 
3964
3970
 
@@ -3967,9 +3973,7 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3967
3973
 
3968
3974
  | Name | Type | Description | |
3969
3975
  | ---- | ---- | ----------- | -------- |
3970
- | filterData1 | | The target filter data |   |
3971
- | filterData2 | | the filter data to be merged |   |
3972
- | overwriteValues | | Flag to overwrite or not the filter values |   |
3976
+ | filter | | The filter |   |
3973
3977
 
3974
3978
 
3975
3979
 
@@ -3977,13 +3981,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
3977
3981
  ##### Returns
3978
3982
 
3979
3983
 
3980
- - a new filter data structure
3984
+ - a property
3981
3985
 
3982
3986
 
3983
3987
 
3984
- #### mergeScopes(scopes1, scopes2, overwriteValues)
3985
3988
 
3986
- Gets a new scope structure array by merging two scope structures
3989
+ ### dist/filters/helpers/backend/getBackendProperty.js
3990
+
3991
+
3992
+ #### getBackendProperty(filter)
3993
+
3994
+ Gets a property for the logic structure
3987
3995
 
3988
3996
 
3989
3997
 
@@ -3992,9 +4000,7 @@ Gets a new scope structure array by merging two scope structures
3992
4000
 
3993
4001
  | Name | Type | Description | |
3994
4002
  | ---- | ---- | ----------- | -------- |
3995
- | scopes1 | | the target scope structure |   |
3996
- | scopes2 | | the scope to be merged |   |
3997
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4003
+ | filter | | The filter |   |
3998
4004
 
3999
4005
 
4000
4006
 
@@ -4002,13 +4008,17 @@ Gets a new scope structure array by merging two scope structures
4002
4008
  ##### Returns
4003
4009
 
4004
4010
 
4005
- - a new scope structure array
4011
+ - a property
4006
4012
 
4007
4013
 
4008
4014
 
4009
- #### mergeDatasets(datasets1, datasets2, overwriteValues)
4010
4015
 
4011
- Gets a new dataset structure array by merging two dataset structures
4016
+ ### dist/filters/helpers/backend/getBackendValidator.js
4017
+
4018
+
4019
+ #### getBackendValidator(validator)
4020
+
4021
+ Gets the Validator that is used in requests
4012
4022
 
4013
4023
 
4014
4024
 
@@ -4017,9 +4027,7 @@ Gets a new dataset structure array by merging two dataset structures
4017
4027
 
4018
4028
  | Name | Type | Description | |
4019
4029
  | ---- | ---- | ----------- | -------- |
4020
- | datasets1 | | the target dataset structure |   |
4021
- | datasets2 | | the dataset to be merged |   |
4022
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4030
+ | validator | | Filter Validator used in UI |   |
4023
4031
 
4024
4032
 
4025
4033
 
@@ -4027,13 +4035,17 @@ Gets a new dataset structure array by merging two dataset structures
4027
4035
  ##### Returns
4028
4036
 
4029
4037
 
4030
- - a new dataset structure array
4038
+ - Filter Validator used in Backend
4031
4039
 
4032
4040
 
4033
4041
 
4034
- #### mergeFilterss(filters1, filters2, overwriteValues)
4035
4042
 
4036
- Gets a new filter structure array by merging two filter structures
4043
+ ### dist/filters/helpers/backend/getBackendValues.js
4044
+
4045
+
4046
+ #### getBackendValues(filter)
4047
+
4048
+ Gets the expresion values in the logic format
4037
4049
 
4038
4050
 
4039
4051
 
@@ -4042,9 +4054,7 @@ Gets a new filter structure array by merging two filter structures
4042
4054
 
4043
4055
  | Name | Type | Description | |
4044
4056
  | ---- | ---- | ----------- | -------- |
4045
- | filters1 | | the target filter structure |   |
4046
- | filters2 | | the filter to be merged |   |
4047
- | overwriteValues | | Flag to overwrite or not the filter values |   |
4057
+ | filter | | The filter structure |   |
4048
4058
 
4049
4059
 
4050
4060
 
@@ -4052,13 +4062,13 @@ Gets a new filter structure array by merging two filter structures
4052
4062
  ##### Returns
4053
4063
 
4054
4064
 
4055
- - a new filter structure array
4065
+ - A collection of backend expression value
4056
4066
 
4057
4067
 
4058
4068
 
4059
- #### mergeValues(filter1, filter2, overwrite)
4069
+ #### getResultValues(values, filter)
4060
4070
 
4061
- Gets a new value structure array by merging two value structures
4071
+ Gets the expression values. Depending on the column type
4062
4072
 
4063
4073
 
4064
4074
 
@@ -4067,9 +4077,8 @@ Gets a new value structure array by merging two value structures
4067
4077
 
4068
4078
  | Name | Type | Description | |
4069
4079
  | ---- | ---- | ----------- | -------- |
4070
- | filter1 | | the target filter structure |   |
4071
- | filter2 | | the filter to be used to merge the values |   |
4072
- | overwrite | | Flag to overwrite or not the filter values |   |
4080
+ | values | | a collection of filter values |   |
4081
+ | filter | | The filter structure |   |
4073
4082
 
4074
4083
 
4075
4084
 
@@ -4077,17 +4086,13 @@ Gets a new value structure array by merging two value structures
4077
4086
  ##### Returns
4078
4087
 
4079
4088
 
4080
- - a new value structure array
4081
-
4082
-
4083
-
4089
+ -
4084
4090
 
4085
- ### dist/filters/helpers/common/resolveDatasetConditions.js
4086
4091
 
4087
4092
 
4088
- #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4093
+ #### getRankingValues(values, rankingGroupIndex)
4089
4094
 
4090
- Resolves the conditions by given params
4095
+ Gets the Ranking values.
4091
4096
 
4092
4097
 
4093
4098
 
@@ -4096,10 +4101,8 @@ Resolves the conditions by given params
4096
4101
 
4097
4102
  | Name | Type | Description | |
4098
4103
  | ---- | ---- | ----------- | -------- |
4099
- | filter | | The dataset structure |   |
4100
- | params | | given parameters to validate the dataset |   |
4101
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4102
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4104
+ | values | | a collection of filter values in the ranking structure |   |
4105
+ | rankingGroupIndex | | determine the value by this index to build and return it |   |
4103
4106
 
4104
4107
 
4105
4108
 
@@ -4107,17 +4110,17 @@ Resolves the conditions by given params
4107
4110
  ##### Returns
4108
4111
 
4109
4112
 
4110
- - true: the condition is satisfied
4113
+ - Expression values for ranking
4111
4114
 
4112
4115
 
4113
4116
 
4114
4117
 
4115
- ### dist/filters/helpers/common/resolveFilterConditions.js
4118
+ ### dist/filters/helpers/backend/getLogicByScopes.js
4116
4119
 
4117
4120
 
4118
- #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4121
+ #### getLogicByScopes(logics, scopes)
4119
4122
 
4120
- Resolves the conditions by given params
4123
+ Gets the filters from logic data by Scopes/Scope IDs.
4121
4124
 
4122
4125
 
4123
4126
 
@@ -4126,10 +4129,8 @@ Resolves the conditions by given params
4126
4129
 
4127
4130
  | Name | Type | Description | |
4128
4131
  | ---- | ---- | ----------- | -------- |
4129
- | filter | | The filter |   |
4130
- | params | | given parameters to validate the filter |   |
4131
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4132
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4132
+ | logics | | The logic array |   |
4133
+ | scopes | | The collection of Scopes/Scope IDs |   |
4133
4134
 
4134
4135
 
4135
4136
 
@@ -4137,17 +4138,17 @@ Resolves the conditions by given params
4137
4138
  ##### Returns
4138
4139
 
4139
4140
 
4140
- - true: the condition is satisfied
4141
+ - a new Logic array
4141
4142
 
4142
4143
 
4143
4144
 
4144
4145
 
4145
- ### dist/filters/helpers/common/resolveScopeConditions.js
4146
+ ### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
4146
4147
 
4147
4148
 
4148
- #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4149
+ #### getLogicByScopesHierarchy(filterData, scopes, currentScope)
4149
4150
 
4150
- Resolves the conditions by given params
4151
+ Gets filters from the logic by the scopes hierarchy.
4151
4152
 
4152
4153
 
4153
4154
 
@@ -4156,10 +4157,9 @@ Resolves the conditions by given params
4156
4157
 
4157
4158
  | Name | Type | Description | |
4158
4159
  | ---- | ---- | ----------- | -------- |
4159
- | filter | | The filter scope structure |   |
4160
- | params | | given parameters to validate the filter |   |
4161
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined |   |
4162
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. |   |
4160
+ | filterData | | |   |
4161
+ | scopes | | |   |
4162
+ | currentScope | | |   |
4163
4163
 
4164
4164
 
4165
4165
 
@@ -4167,17 +4167,17 @@ Resolves the conditions by given params
4167
4167
  ##### Returns
4168
4168
 
4169
4169
 
4170
- - true: the condition is satisfied
4170
+ - a new array of Logic
4171
4171
 
4172
4172
 
4173
4173
 
4174
4174
 
4175
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
4175
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4176
4176
 
4177
4177
 
4178
- #### excludeUIFiltersByAggregate(uFilters)
4178
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4179
4179
 
4180
- Excludes Aggregate Filters in the Flattened UI Filters array
4180
+ Excludes and returns a UI Flat Filters without filters by the given scopes
4181
4181
 
4182
4182
 
4183
4183
 
@@ -4186,7 +4186,8 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4186
4186
 
4187
4187
  | Name | Type | Description | |
4188
4188
  | ---- | ---- | ----------- | -------- |
4189
- | uFilters | | Collection of Flat UI Filters |   |
4189
+ | uFilters | | The Flatten UI Filters |   |
4190
+ | scopes | | collection of scopes types |   |
4190
4191
 
4191
4192
 
4192
4193
 
@@ -4194,17 +4195,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4194
4195
  ##### Returns
4195
4196
 
4196
4197
 
4197
- - a new Flat UI Filters that were excluded the aggregate filters
4198
+ - The new array of UI Flattened filters
4198
4199
 
4199
4200
 
4200
4201
 
4201
4202
 
4202
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4203
+ ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
4203
4204
 
4204
4205
 
4205
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4206
+ #### excludeUIFiltersByAggregate(uFilters)
4206
4207
 
4207
- Excludes and returns a UI Flat Filters without filters by the given scopes
4208
+ Excludes Aggregate Filters in the Flattened UI Filters array
4208
4209
 
4209
4210
 
4210
4211
 
@@ -4213,8 +4214,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4213
4214
 
4214
4215
  | Name | Type | Description | |
4215
4216
  | ---- | ---- | ----------- | -------- |
4216
- | uFilters | | The Flatten UI Filters |   |
4217
- | scopes | | collection of scopes types |   |
4217
+ | uFilters | | Collection of Flat UI Filters |   |
4218
4218
 
4219
4219
 
4220
4220
 
@@ -4222,7 +4222,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4222
4222
  ##### Returns
4223
4223
 
4224
4224
 
4225
- - The new array of UI Flattened filters
4225
+ - a new Flat UI Filters that were excluded the aggregate filters
4226
4226
 
4227
4227
 
4228
4228