@qrvey/utils 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.6*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -1767,33 +1767,6 @@ Gets the length of the given array.
|
|
|
1767
1767
|
|
|
1768
1768
|
|
|
1769
1769
|
|
|
1770
|
-
### dist/general/string/capitalize.js
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
#### capitalize(text)
|
|
1774
|
-
|
|
1775
|
-
Upper case the first letter of a given text
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
##### Parameters
|
|
1781
|
-
|
|
1782
|
-
| Name | Type | Description | |
|
|
1783
|
-
| ---- | ---- | ----------- | -------- |
|
|
1784
|
-
| text | `String` | | |
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
##### Returns
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
- `String` a capitalized text
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
1770
|
### dist/general/object/cloneDeep.js
|
|
1798
1771
|
|
|
1799
1772
|
|
|
@@ -2206,6 +2179,33 @@ serialize object to url param
|
|
|
2206
2179
|
|
|
2207
2180
|
|
|
2208
2181
|
|
|
2182
|
+
### dist/general/string/capitalize.js
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
#### capitalize(text)
|
|
2186
|
+
|
|
2187
|
+
Upper case the first letter of a given text
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
##### Parameters
|
|
2193
|
+
|
|
2194
|
+
| Name | Type | Description | |
|
|
2195
|
+
| ---- | ---- | ----------- | -------- |
|
|
2196
|
+
| text | `String` | | |
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
##### Returns
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
- `String` a capitalized text
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
2209
|
### dist/qrvey/helpers/getColumnsLabel.js
|
|
2210
2210
|
|
|
2211
2211
|
|
|
@@ -2858,12 +2858,12 @@ Returns a filter builder config object by a any given config
|
|
|
2858
2858
|
|
|
2859
2859
|
|
|
2860
2860
|
|
|
2861
|
-
### dist/filters/helpers/
|
|
2861
|
+
### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
|
|
2862
2862
|
|
|
2863
2863
|
|
|
2864
|
-
####
|
|
2864
|
+
#### excludeFiltersByAggregateColumn(filterData)
|
|
2865
2865
|
|
|
2866
|
-
Excludes Aggregate Filters in the
|
|
2866
|
+
Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
2867
2867
|
|
|
2868
2868
|
|
|
2869
2869
|
|
|
@@ -2872,7 +2872,7 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
2872
2872
|
|
|
2873
2873
|
| Name | Type | Description | |
|
|
2874
2874
|
| ---- | ---- | ----------- | -------- |
|
|
2875
|
-
|
|
|
2875
|
+
| filterData | | The filter data object | |
|
|
2876
2876
|
|
|
2877
2877
|
|
|
2878
2878
|
|
|
@@ -2880,17 +2880,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
2880
2880
|
##### Returns
|
|
2881
2881
|
|
|
2882
2882
|
|
|
2883
|
-
-
|
|
2883
|
+
- The new filter data object that were excluded the aggregate filters
|
|
2884
2884
|
|
|
2885
2885
|
|
|
2886
2886
|
|
|
2887
2887
|
|
|
2888
|
-
### dist/filters/helpers/
|
|
2888
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
2889
2889
|
|
|
2890
2890
|
|
|
2891
|
-
####
|
|
2891
|
+
#### areFiltersEquals(filter1, filter2)
|
|
2892
2892
|
|
|
2893
|
-
|
|
2893
|
+
Validates if both filters are the same
|
|
2894
2894
|
|
|
2895
2895
|
|
|
2896
2896
|
|
|
@@ -2899,8 +2899,8 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
2899
2899
|
|
|
2900
2900
|
| Name | Type | Description | |
|
|
2901
2901
|
| ---- | ---- | ----------- | -------- |
|
|
2902
|
-
|
|
|
2903
|
-
|
|
|
2902
|
+
| filter1 | | filter 1 | |
|
|
2903
|
+
| filter2 | | filter 2 | |
|
|
2904
2904
|
|
|
2905
2905
|
|
|
2906
2906
|
|
|
@@ -2908,17 +2908,26 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
2908
2908
|
##### Returns
|
|
2909
2909
|
|
|
2910
2910
|
|
|
2911
|
-
-
|
|
2911
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
2912
2912
|
|
|
2913
2913
|
|
|
2914
2914
|
|
|
2915
2915
|
|
|
2916
|
-
### dist/filters/helpers/
|
|
2916
|
+
### dist/filters/helpers/common/excludeFiltersByParams.js
|
|
2917
2917
|
|
|
2918
2918
|
|
|
2919
|
-
####
|
|
2919
|
+
#### excludeFiltersByParams(filterData, params)
|
|
2920
2920
|
|
|
2921
|
-
|
|
2921
|
+
Excludes filters from the given Filters.
|
|
2922
|
+
The validation to filter the stored filter is depending on:
|
|
2923
|
+
- Column
|
|
2924
|
+
- Qrvey ID
|
|
2925
|
+
- Scope type
|
|
2926
|
+
- Scope ID
|
|
2927
|
+
- Panel ID
|
|
2928
|
+
- Validator type
|
|
2929
|
+
- Property type
|
|
2930
|
+
- Enabled flags
|
|
2922
2931
|
|
|
2923
2932
|
|
|
2924
2933
|
|
|
@@ -2927,7 +2936,8 @@ Gets the label of the filter property
|
|
|
2927
2936
|
|
|
2928
2937
|
| Name | Type | Description | |
|
|
2929
2938
|
| ---- | ---- | ----------- | -------- |
|
|
2930
|
-
|
|
|
2939
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
2940
|
+
| params | | given parameters to validate the filter data | |
|
|
2931
2941
|
|
|
2932
2942
|
|
|
2933
2943
|
|
|
@@ -2935,17 +2945,17 @@ Gets the label of the filter property
|
|
|
2935
2945
|
##### Returns
|
|
2936
2946
|
|
|
2937
2947
|
|
|
2938
|
-
- a
|
|
2948
|
+
- a new Filter object structure
|
|
2939
2949
|
|
|
2940
2950
|
|
|
2941
2951
|
|
|
2942
2952
|
|
|
2943
|
-
### dist/filters/helpers/
|
|
2953
|
+
### dist/filters/helpers/common/excludeFiltersByScopes.js
|
|
2944
2954
|
|
|
2945
2955
|
|
|
2946
|
-
####
|
|
2956
|
+
#### excludeFiltersByScopes(filterData, scopes)
|
|
2947
2957
|
|
|
2948
|
-
|
|
2958
|
+
Excludes and returns a filter data without filters by the given scopes
|
|
2949
2959
|
|
|
2950
2960
|
|
|
2951
2961
|
|
|
@@ -2954,8 +2964,8 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
2954
2964
|
|
|
2955
2965
|
| Name | Type | Description | |
|
|
2956
2966
|
| ---- | ---- | ----------- | -------- |
|
|
2957
|
-
|
|
|
2958
|
-
|
|
|
2967
|
+
| filterData | | The Filter Data | |
|
|
2968
|
+
| scopes | | collection of scopes to be as filtering parameters | |
|
|
2959
2969
|
|
|
2960
2970
|
|
|
2961
2971
|
|
|
@@ -2963,27 +2973,26 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
2963
2973
|
##### Returns
|
|
2964
2974
|
|
|
2965
2975
|
|
|
2966
|
-
- The
|
|
2976
|
+
- The new Filter Data without filters by the given scopes.
|
|
2967
2977
|
|
|
2968
2978
|
|
|
2969
2979
|
|
|
2970
2980
|
|
|
2971
|
-
### dist/filters/helpers/
|
|
2981
|
+
### dist/filters/helpers/common/getFilterColumnLabel.js
|
|
2972
2982
|
|
|
2973
2983
|
|
|
2974
|
-
####
|
|
2984
|
+
#### getFilterColumnLabel(column)
|
|
2985
|
+
|
|
2986
|
+
Get an string of the properties of the given filter column.
|
|
2987
|
+
|
|
2975
2988
|
|
|
2976
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
2977
|
-
The validation to filter the stored filter is depending on:
|
|
2978
|
-
- Column
|
|
2979
|
-
- Qrvey ID,
|
|
2980
|
-
- Scope type
|
|
2981
|
-
- Scope ID
|
|
2982
|
-
- Panel ID
|
|
2983
|
-
- Validator type
|
|
2984
|
-
- Property type
|
|
2985
2989
|
|
|
2986
2990
|
|
|
2991
|
+
##### Parameters
|
|
2992
|
+
|
|
2993
|
+
| Name | Type | Description | |
|
|
2994
|
+
| ---- | ---- | ----------- | -------- |
|
|
2995
|
+
| column | | The filter column | |
|
|
2987
2996
|
|
|
2988
2997
|
|
|
2989
2998
|
|
|
@@ -2991,28 +3000,26 @@ The validation to filter the stored filter is depending on:
|
|
|
2991
3000
|
##### Returns
|
|
2992
3001
|
|
|
2993
3002
|
|
|
2994
|
-
-
|
|
3003
|
+
- an string with the property, aggregate or calculation label.
|
|
2995
3004
|
|
|
2996
3005
|
|
|
2997
3006
|
|
|
2998
3007
|
|
|
2999
|
-
### dist/filters/helpers/
|
|
3008
|
+
### dist/filters/helpers/common/getFilterLabel.js
|
|
3000
3009
|
|
|
3001
3010
|
|
|
3002
|
-
####
|
|
3011
|
+
#### getFilterLabel(filter)
|
|
3012
|
+
|
|
3013
|
+
Gets the Filter Label + Column label
|
|
3014
|
+
|
|
3003
3015
|
|
|
3004
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3005
|
-
The validation to filter the stored filter is depending on:
|
|
3006
|
-
- Column
|
|
3007
|
-
- Qrvey ID,
|
|
3008
|
-
- Scope type
|
|
3009
|
-
- Scope ID
|
|
3010
|
-
- Panel ID
|
|
3011
|
-
- Validator type
|
|
3012
|
-
- Property type
|
|
3013
|
-
- Enabled flags
|
|
3014
3016
|
|
|
3015
3017
|
|
|
3018
|
+
##### Parameters
|
|
3019
|
+
|
|
3020
|
+
| Name | Type | Description | |
|
|
3021
|
+
| ---- | ---- | ----------- | -------- |
|
|
3022
|
+
| filter | | the UI filter | |
|
|
3016
3023
|
|
|
3017
3024
|
|
|
3018
3025
|
|
|
@@ -3020,17 +3027,28 @@ The validation to filter the stored filter is depending on:
|
|
|
3020
3027
|
##### Returns
|
|
3021
3028
|
|
|
3022
3029
|
|
|
3023
|
-
-
|
|
3030
|
+
- a sring label
|
|
3024
3031
|
|
|
3025
3032
|
|
|
3026
3033
|
|
|
3027
3034
|
|
|
3028
|
-
### dist/filters/helpers/
|
|
3035
|
+
### dist/filters/helpers/common/getFilterid.js
|
|
3029
3036
|
|
|
3030
3037
|
|
|
3031
|
-
####
|
|
3038
|
+
#### getFilterid(filter)
|
|
3032
3039
|
|
|
3033
|
-
|
|
3040
|
+
Get the Filter ID by the filter structure
|
|
3041
|
+
The order of the epression ID is:
|
|
3042
|
+
- Scope Type
|
|
3043
|
+
- scopeid
|
|
3044
|
+
- qrveyid
|
|
3045
|
+
- panelid
|
|
3046
|
+
- columnid
|
|
3047
|
+
- validator
|
|
3048
|
+
- property
|
|
3049
|
+
- Column Aggregate
|
|
3050
|
+
- Column Calculation
|
|
3051
|
+
- Optional Index
|
|
3034
3052
|
|
|
3035
3053
|
|
|
3036
3054
|
|
|
@@ -3039,8 +3057,7 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3039
3057
|
|
|
3040
3058
|
| Name | Type | Description | |
|
|
3041
3059
|
| ---- | ---- | ----------- | -------- |
|
|
3042
|
-
|
|
|
3043
|
-
| scopes | | collection of scopes types | |
|
|
3060
|
+
| filter | | the filter structure | |
|
|
3044
3061
|
|
|
3045
3062
|
|
|
3046
3063
|
|
|
@@ -3048,17 +3065,17 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3048
3065
|
##### Returns
|
|
3049
3066
|
|
|
3050
3067
|
|
|
3051
|
-
-
|
|
3052
|
-
|
|
3068
|
+
- a text to identify the filter
|
|
3053
3069
|
|
|
3054
3070
|
|
|
3055
3071
|
|
|
3056
|
-
### dist/filters/helpers/ui/getUIValues.js
|
|
3057
3072
|
|
|
3073
|
+
### dist/filters/helpers/common/getFiltersByAggregateColumn.js
|
|
3058
3074
|
|
|
3059
|
-
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
3060
3075
|
|
|
3076
|
+
#### getFiltersByAggregateColumn(filterData)
|
|
3061
3077
|
|
|
3078
|
+
Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
3062
3079
|
|
|
3063
3080
|
|
|
3064
3081
|
|
|
@@ -3067,9 +3084,7 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3067
3084
|
|
|
3068
3085
|
| Name | Type | Description | |
|
|
3069
3086
|
| ---- | ---- | ----------- | -------- |
|
|
3070
|
-
|
|
|
3071
|
-
| addEnableds | | | |
|
|
3072
|
-
| rankingGroupIndex | | | |
|
|
3087
|
+
| filterData | | The filter data object | |
|
|
3073
3088
|
|
|
3074
3089
|
|
|
3075
3090
|
|
|
@@ -3077,17 +3092,26 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3077
3092
|
##### Returns
|
|
3078
3093
|
|
|
3079
3094
|
|
|
3080
|
-
-
|
|
3095
|
+
- The new filter data object that were get the aggregate filters
|
|
3081
3096
|
|
|
3082
3097
|
|
|
3083
3098
|
|
|
3084
3099
|
|
|
3085
|
-
### dist/filters/helpers/
|
|
3100
|
+
### dist/filters/helpers/common/getFiltersByParams.js
|
|
3086
3101
|
|
|
3087
3102
|
|
|
3088
|
-
####
|
|
3103
|
+
#### getFiltersByParams(filterData, params)
|
|
3089
3104
|
|
|
3090
|
-
|
|
3105
|
+
Gets filters from the given params.
|
|
3106
|
+
The validation to filter the stored filter is depending on:
|
|
3107
|
+
- Column
|
|
3108
|
+
- Qrvey ID
|
|
3109
|
+
- Scope type
|
|
3110
|
+
- Scope ID
|
|
3111
|
+
- Panel ID
|
|
3112
|
+
- Validator type
|
|
3113
|
+
- Property type
|
|
3114
|
+
- Enabled flags
|
|
3091
3115
|
|
|
3092
3116
|
|
|
3093
3117
|
|
|
@@ -3096,8 +3120,8 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
3096
3120
|
|
|
3097
3121
|
| Name | Type | Description | |
|
|
3098
3122
|
| ---- | ---- | ----------- | -------- |
|
|
3099
|
-
|
|
|
3100
|
-
| params | |
|
|
3123
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3124
|
+
| params | | given parameters to validate the dataset | |
|
|
3101
3125
|
|
|
3102
3126
|
|
|
3103
3127
|
|
|
@@ -3105,17 +3129,17 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
3105
3129
|
##### Returns
|
|
3106
3130
|
|
|
3107
3131
|
|
|
3108
|
-
-
|
|
3132
|
+
- a new Filter object structure
|
|
3109
3133
|
|
|
3110
3134
|
|
|
3111
3135
|
|
|
3112
3136
|
|
|
3113
|
-
### dist/filters/helpers/common/
|
|
3137
|
+
### dist/filters/helpers/common/getFiltersByScopes.js
|
|
3114
3138
|
|
|
3115
3139
|
|
|
3116
|
-
####
|
|
3140
|
+
#### getFiltersByScopes(filterData, scopes)
|
|
3117
3141
|
|
|
3118
|
-
|
|
3142
|
+
Filters and gets a Filter Data by the given scopes
|
|
3119
3143
|
|
|
3120
3144
|
|
|
3121
3145
|
|
|
@@ -3124,8 +3148,8 @@ Validates if both filters are the same
|
|
|
3124
3148
|
|
|
3125
3149
|
| Name | Type | Description | |
|
|
3126
3150
|
| ---- | ---- | ----------- | -------- |
|
|
3127
|
-
|
|
|
3128
|
-
|
|
|
3151
|
+
| filterData | | The Filter Data | |
|
|
3152
|
+
| scopes | | collection of scopes types | |
|
|
3129
3153
|
|
|
3130
3154
|
|
|
3131
3155
|
|
|
@@ -3133,17 +3157,17 @@ Validates if both filters are the same
|
|
|
3133
3157
|
##### Returns
|
|
3134
3158
|
|
|
3135
3159
|
|
|
3136
|
-
-
|
|
3160
|
+
- The new Filter Data
|
|
3137
3161
|
|
|
3138
3162
|
|
|
3139
3163
|
|
|
3140
3164
|
|
|
3141
|
-
### dist/filters/helpers/common/
|
|
3165
|
+
### dist/filters/helpers/common/getFiltersByScopesIds.js
|
|
3142
3166
|
|
|
3143
3167
|
|
|
3144
|
-
####
|
|
3168
|
+
#### getFiltersByScopesIds(filterData, scopes)
|
|
3145
3169
|
|
|
3146
|
-
|
|
3170
|
+
Gets filters from Filter Data by Scopes/Scope IDs.
|
|
3147
3171
|
|
|
3148
3172
|
|
|
3149
3173
|
|
|
@@ -3152,7 +3176,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3152
3176
|
|
|
3153
3177
|
| Name | Type | Description | |
|
|
3154
3178
|
| ---- | ---- | ----------- | -------- |
|
|
3155
|
-
| filterData | | The filter data
|
|
3179
|
+
| filterData | | The filter data | |
|
|
3180
|
+
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3156
3181
|
|
|
3157
3182
|
|
|
3158
3183
|
|
|
@@ -3160,26 +3185,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3160
3185
|
##### Returns
|
|
3161
3186
|
|
|
3162
3187
|
|
|
3163
|
-
-
|
|
3188
|
+
- a new Filter Data
|
|
3164
3189
|
|
|
3165
3190
|
|
|
3166
3191
|
|
|
3167
3192
|
|
|
3168
|
-
### dist/filters/helpers/common/
|
|
3193
|
+
### dist/filters/helpers/common/getFiltersByVisibility.js
|
|
3169
3194
|
|
|
3170
3195
|
|
|
3171
|
-
####
|
|
3196
|
+
#### getFiltersByVisibility(filterData, scopes)
|
|
3172
3197
|
|
|
3173
|
-
|
|
3174
|
-
The validation to filter the stored filter is depending on:
|
|
3175
|
-
- Column
|
|
3176
|
-
- Qrvey ID
|
|
3177
|
-
- Scope type
|
|
3178
|
-
- Scope ID
|
|
3179
|
-
- Panel ID
|
|
3180
|
-
- Validator type
|
|
3181
|
-
- Property type
|
|
3182
|
-
- Enabled flags
|
|
3198
|
+
Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
3183
3199
|
|
|
3184
3200
|
|
|
3185
3201
|
|
|
@@ -3188,8 +3204,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3188
3204
|
|
|
3189
3205
|
| Name | Type | Description | |
|
|
3190
3206
|
| ---- | ---- | ----------- | -------- |
|
|
3191
|
-
| filterData | |
|
|
3192
|
-
|
|
|
3207
|
+
| filterData | | a Filter Data or UI Filter Data | |
|
|
3208
|
+
| scopes | | a Scopes/Scope IDs array | |
|
|
3193
3209
|
|
|
3194
3210
|
|
|
3195
3211
|
|
|
@@ -3197,17 +3213,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3197
3213
|
##### Returns
|
|
3198
3214
|
|
|
3199
3215
|
|
|
3200
|
-
- a new Filter
|
|
3216
|
+
- a new Filter Data
|
|
3201
3217
|
|
|
3202
3218
|
|
|
3203
3219
|
|
|
3204
3220
|
|
|
3205
|
-
### dist/filters/helpers/common/
|
|
3221
|
+
### dist/filters/helpers/common/getMergeFiltersSettings.js
|
|
3206
3222
|
|
|
3207
3223
|
|
|
3208
|
-
####
|
|
3224
|
+
#### getMergeFiltersSettings(settings)
|
|
3209
3225
|
|
|
3210
|
-
|
|
3226
|
+
Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
|
|
3211
3227
|
|
|
3212
3228
|
|
|
3213
3229
|
|
|
@@ -3216,8 +3232,7 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3216
3232
|
|
|
3217
3233
|
| Name | Type | Description | |
|
|
3218
3234
|
| ---- | ---- | ----------- | -------- |
|
|
3219
|
-
|
|
|
3220
|
-
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3235
|
+
| settings | | an object to the MergeFilters settings | |
|
|
3221
3236
|
|
|
3222
3237
|
|
|
3223
3238
|
|
|
@@ -3225,17 +3240,17 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3225
3240
|
##### Returns
|
|
3226
3241
|
|
|
3227
3242
|
|
|
3228
|
-
-
|
|
3243
|
+
- a new MergeFilters settings object.
|
|
3229
3244
|
|
|
3230
3245
|
|
|
3231
3246
|
|
|
3232
3247
|
|
|
3233
|
-
### dist/filters/helpers/common/
|
|
3248
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3234
3249
|
|
|
3235
3250
|
|
|
3236
|
-
####
|
|
3251
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3237
3252
|
|
|
3238
|
-
|
|
3253
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3239
3254
|
|
|
3240
3255
|
|
|
3241
3256
|
|
|
@@ -3244,7 +3259,7 @@ Get an string of the properties of the given filter column.
|
|
|
3244
3259
|
|
|
3245
3260
|
| Name | Type | Description | |
|
|
3246
3261
|
| ---- | ---- | ----------- | -------- |
|
|
3247
|
-
|
|
|
3262
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3248
3263
|
|
|
3249
3264
|
|
|
3250
3265
|
|
|
@@ -3252,17 +3267,17 @@ Get an string of the properties of the given filter column.
|
|
|
3252
3267
|
##### Returns
|
|
3253
3268
|
|
|
3254
3269
|
|
|
3255
|
-
-
|
|
3270
|
+
- a new ParamsToGetFilter settings object.
|
|
3256
3271
|
|
|
3257
3272
|
|
|
3258
3273
|
|
|
3259
3274
|
|
|
3260
|
-
### dist/filters/helpers/common/
|
|
3275
|
+
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3261
3276
|
|
|
3262
3277
|
|
|
3263
|
-
####
|
|
3278
|
+
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3264
3279
|
|
|
3265
|
-
|
|
3280
|
+
Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
3266
3281
|
|
|
3267
3282
|
|
|
3268
3283
|
|
|
@@ -3271,7 +3286,8 @@ Gets the Filter Label + Column label
|
|
|
3271
3286
|
|
|
3272
3287
|
| Name | Type | Description | |
|
|
3273
3288
|
| ---- | ---- | ----------- | -------- |
|
|
3274
|
-
|
|
|
3289
|
+
| filterData | | the filter data or the UI filter data. | |
|
|
3290
|
+
| qrveyid | | The Qrvey ID | |
|
|
3275
3291
|
|
|
3276
3292
|
|
|
3277
3293
|
|
|
@@ -3279,28 +3295,17 @@ Gets the Filter Label + Column label
|
|
|
3279
3295
|
##### Returns
|
|
3280
3296
|
|
|
3281
3297
|
|
|
3282
|
-
-
|
|
3298
|
+
- true: the filter data has filters by the Qrvey ID
|
|
3283
3299
|
|
|
3284
3300
|
|
|
3285
3301
|
|
|
3286
3302
|
|
|
3287
|
-
### dist/filters/helpers/common/
|
|
3303
|
+
### dist/filters/helpers/common/isBetweenValidator.js
|
|
3288
3304
|
|
|
3289
3305
|
|
|
3290
|
-
####
|
|
3306
|
+
#### isBetweenValidator(validator)
|
|
3291
3307
|
|
|
3292
|
-
|
|
3293
|
-
The order of the epression ID is:
|
|
3294
|
-
- Scope Type
|
|
3295
|
-
- scopeid
|
|
3296
|
-
- qrveyid
|
|
3297
|
-
- panelid
|
|
3298
|
-
- columnid
|
|
3299
|
-
- validator
|
|
3300
|
-
- property
|
|
3301
|
-
- Column Aggregate
|
|
3302
|
-
- Column Calculation
|
|
3303
|
-
- Optional Index
|
|
3308
|
+
Validates if the given validator is a Between type
|
|
3304
3309
|
|
|
3305
3310
|
|
|
3306
3311
|
|
|
@@ -3309,7 +3314,7 @@ The order of the epression ID is:
|
|
|
3309
3314
|
|
|
3310
3315
|
| Name | Type | Description | |
|
|
3311
3316
|
| ---- | ---- | ----------- | -------- |
|
|
3312
|
-
|
|
|
3317
|
+
| validator | | The validator | |
|
|
3313
3318
|
|
|
3314
3319
|
|
|
3315
3320
|
|
|
@@ -3317,17 +3322,17 @@ The order of the epression ID is:
|
|
|
3317
3322
|
##### Returns
|
|
3318
3323
|
|
|
3319
3324
|
|
|
3320
|
-
- a
|
|
3325
|
+
- true: it is a between validator; false: it is not a between validator
|
|
3321
3326
|
|
|
3322
3327
|
|
|
3323
3328
|
|
|
3324
3329
|
|
|
3325
|
-
### dist/filters/helpers/common/
|
|
3330
|
+
### dist/filters/helpers/common/isDateDistinctProperty.js
|
|
3326
3331
|
|
|
3327
3332
|
|
|
3328
|
-
####
|
|
3333
|
+
#### isDateDistinctProperty(column, property)
|
|
3329
3334
|
|
|
3330
|
-
|
|
3335
|
+
Determines if the filter column and property is a distinct group dates type
|
|
3331
3336
|
|
|
3332
3337
|
|
|
3333
3338
|
|
|
@@ -3336,7 +3341,8 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3336
3341
|
|
|
3337
3342
|
| Name | Type | Description | |
|
|
3338
3343
|
| ---- | ---- | ----------- | -------- |
|
|
3339
|
-
|
|
|
3344
|
+
| column | | The filter column | |
|
|
3345
|
+
| property | | The filter property | |
|
|
3340
3346
|
|
|
3341
3347
|
|
|
3342
3348
|
|
|
@@ -3344,26 +3350,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3344
3350
|
##### Returns
|
|
3345
3351
|
|
|
3346
3352
|
|
|
3347
|
-
-
|
|
3353
|
+
- True if the given property is included from distinct group dates type
|
|
3348
3354
|
|
|
3349
3355
|
|
|
3350
3356
|
|
|
3351
3357
|
|
|
3352
|
-
### dist/filters/helpers/common/
|
|
3358
|
+
### dist/filters/helpers/common/isInValidator.js
|
|
3353
3359
|
|
|
3354
3360
|
|
|
3355
|
-
####
|
|
3361
|
+
#### isInValidator(validator)
|
|
3356
3362
|
|
|
3357
|
-
|
|
3358
|
-
The validation to filter the stored filter is depending on:
|
|
3359
|
-
- Column
|
|
3360
|
-
- Qrvey ID
|
|
3361
|
-
- Scope type
|
|
3362
|
-
- Scope ID
|
|
3363
|
-
- Panel ID
|
|
3364
|
-
- Validator type
|
|
3365
|
-
- Property type
|
|
3366
|
-
- Enabled flags
|
|
3363
|
+
Validates if the given validator is a In type
|
|
3367
3364
|
|
|
3368
3365
|
|
|
3369
3366
|
|
|
@@ -3372,8 +3369,7 @@ The validation to filter the stored filter is depending on:
|
|
|
3372
3369
|
|
|
3373
3370
|
| Name | Type | Description | |
|
|
3374
3371
|
| ---- | ---- | ----------- | -------- |
|
|
3375
|
-
|
|
|
3376
|
-
| params | | given parameters to validate the dataset | |
|
|
3372
|
+
| validator | | The validator | |
|
|
3377
3373
|
|
|
3378
3374
|
|
|
3379
3375
|
|
|
@@ -3381,17 +3377,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3381
3377
|
##### Returns
|
|
3382
3378
|
|
|
3383
3379
|
|
|
3384
|
-
- a
|
|
3380
|
+
- true: it is a In validator; false: it is not a In validator
|
|
3385
3381
|
|
|
3386
3382
|
|
|
3387
3383
|
|
|
3388
3384
|
|
|
3389
|
-
### dist/filters/helpers/common/
|
|
3385
|
+
### dist/filters/helpers/common/isNullValidator.js
|
|
3390
3386
|
|
|
3391
3387
|
|
|
3392
|
-
####
|
|
3388
|
+
#### isNullValidator(validator)
|
|
3393
3389
|
|
|
3394
|
-
|
|
3390
|
+
Checks if the given validator is a Null type.
|
|
3395
3391
|
|
|
3396
3392
|
|
|
3397
3393
|
|
|
@@ -3400,8 +3396,7 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3400
3396
|
|
|
3401
3397
|
| Name | Type | Description | |
|
|
3402
3398
|
| ---- | ---- | ----------- | -------- |
|
|
3403
|
-
|
|
|
3404
|
-
| scopes | | collection of scopes types | |
|
|
3399
|
+
| validator | | The Filter Validator | |
|
|
3405
3400
|
|
|
3406
3401
|
|
|
3407
3402
|
|
|
@@ -3409,17 +3404,17 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3409
3404
|
##### Returns
|
|
3410
3405
|
|
|
3411
3406
|
|
|
3412
|
-
-
|
|
3407
|
+
- True: It is a Null Validator; False: It is not a Null Validator.
|
|
3413
3408
|
|
|
3414
3409
|
|
|
3415
3410
|
|
|
3416
3411
|
|
|
3417
|
-
### dist/filters/helpers/common/
|
|
3412
|
+
### dist/filters/helpers/common/isRangeValidator.js
|
|
3418
3413
|
|
|
3419
3414
|
|
|
3420
|
-
####
|
|
3415
|
+
#### isRangeValidator(validator)
|
|
3421
3416
|
|
|
3422
|
-
|
|
3417
|
+
Validates if the given validator is a Range type. Range type means the value has min and max values to filter
|
|
3423
3418
|
|
|
3424
3419
|
|
|
3425
3420
|
|
|
@@ -3428,8 +3423,7 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3428
3423
|
|
|
3429
3424
|
| Name | Type | Description | |
|
|
3430
3425
|
| ---- | ---- | ----------- | -------- |
|
|
3431
|
-
|
|
|
3432
|
-
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3426
|
+
| validator | | The filter validator | |
|
|
3433
3427
|
|
|
3434
3428
|
|
|
3435
3429
|
|
|
@@ -3437,17 +3431,17 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3437
3431
|
##### Returns
|
|
3438
3432
|
|
|
3439
3433
|
|
|
3440
|
-
- a
|
|
3434
|
+
- true: it is a range validator
|
|
3441
3435
|
|
|
3442
3436
|
|
|
3443
3437
|
|
|
3444
3438
|
|
|
3445
|
-
### dist/filters/helpers/common/
|
|
3439
|
+
### dist/filters/helpers/common/isRegularValidator.js
|
|
3446
3440
|
|
|
3447
3441
|
|
|
3448
|
-
####
|
|
3442
|
+
#### isRegularValidator(validator)
|
|
3449
3443
|
|
|
3450
|
-
|
|
3444
|
+
Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
|
|
3451
3445
|
|
|
3452
3446
|
|
|
3453
3447
|
|
|
@@ -3456,8 +3450,7 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3456
3450
|
|
|
3457
3451
|
| Name | Type | Description | |
|
|
3458
3452
|
| ---- | ---- | ----------- | -------- |
|
|
3459
|
-
|
|
|
3460
|
-
| scopes | | a Scopes/Scope IDs array | |
|
|
3453
|
+
| validator | | The filter validator | |
|
|
3461
3454
|
|
|
3462
3455
|
|
|
3463
3456
|
|
|
@@ -3465,17 +3458,17 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3465
3458
|
##### Returns
|
|
3466
3459
|
|
|
3467
3460
|
|
|
3468
|
-
- a
|
|
3461
|
+
- true: it is a range validator
|
|
3469
3462
|
|
|
3470
3463
|
|
|
3471
3464
|
|
|
3472
3465
|
|
|
3473
|
-
### dist/filters/helpers/common/
|
|
3466
|
+
### dist/filters/helpers/common/mergeFilters.js
|
|
3474
3467
|
|
|
3475
3468
|
|
|
3476
|
-
####
|
|
3469
|
+
#### mergeFilters(filterData1, filterData2, overwriteValues)
|
|
3477
3470
|
|
|
3478
|
-
|
|
3471
|
+
Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
|
|
3479
3472
|
|
|
3480
3473
|
|
|
3481
3474
|
|
|
@@ -3484,7 +3477,9 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3484
3477
|
|
|
3485
3478
|
| Name | Type | Description | |
|
|
3486
3479
|
| ---- | ---- | ----------- | -------- |
|
|
3487
|
-
|
|
|
3480
|
+
| filterData1 | | The target filter data | |
|
|
3481
|
+
| filterData2 | | the filter data to be merged | |
|
|
3482
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3488
3483
|
|
|
3489
3484
|
|
|
3490
3485
|
|
|
@@ -3492,17 +3487,13 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3492
3487
|
##### Returns
|
|
3493
3488
|
|
|
3494
3489
|
|
|
3495
|
-
- a new
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3490
|
+
- a new filter data structure
|
|
3499
3491
|
|
|
3500
|
-
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3501
3492
|
|
|
3502
3493
|
|
|
3503
|
-
####
|
|
3494
|
+
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
3504
3495
|
|
|
3505
|
-
|
|
3496
|
+
Gets a new scope structure array by merging two scope structures
|
|
3506
3497
|
|
|
3507
3498
|
|
|
3508
3499
|
|
|
@@ -3511,7 +3502,9 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3511
3502
|
|
|
3512
3503
|
| Name | Type | Description | |
|
|
3513
3504
|
| ---- | ---- | ----------- | -------- |
|
|
3514
|
-
|
|
|
3505
|
+
| scopes1 | | the target scope structure | |
|
|
3506
|
+
| scopes2 | | the scope to be merged | |
|
|
3507
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3515
3508
|
|
|
3516
3509
|
|
|
3517
3510
|
|
|
@@ -3519,17 +3512,13 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3519
3512
|
##### Returns
|
|
3520
3513
|
|
|
3521
3514
|
|
|
3522
|
-
- a new
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3515
|
+
- a new scope structure array
|
|
3526
3516
|
|
|
3527
|
-
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3528
3517
|
|
|
3529
3518
|
|
|
3530
|
-
####
|
|
3519
|
+
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
3531
3520
|
|
|
3532
|
-
|
|
3521
|
+
Gets a new dataset structure array by merging two dataset structures
|
|
3533
3522
|
|
|
3534
3523
|
|
|
3535
3524
|
|
|
@@ -3538,8 +3527,9 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3538
3527
|
|
|
3539
3528
|
| Name | Type | Description | |
|
|
3540
3529
|
| ---- | ---- | ----------- | -------- |
|
|
3541
|
-
|
|
|
3542
|
-
|
|
|
3530
|
+
| datasets1 | | the target dataset structure | |
|
|
3531
|
+
| datasets2 | | the dataset to be merged | |
|
|
3532
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3543
3533
|
|
|
3544
3534
|
|
|
3545
3535
|
|
|
@@ -3547,17 +3537,13 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3547
3537
|
##### Returns
|
|
3548
3538
|
|
|
3549
3539
|
|
|
3550
|
-
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3540
|
+
- a new dataset structure array
|
|
3553
3541
|
|
|
3554
3542
|
|
|
3555
|
-
### dist/filters/helpers/common/isBetweenValidator.js
|
|
3556
3543
|
|
|
3544
|
+
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
3557
3545
|
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
Validates if the given validator is a Between type
|
|
3546
|
+
Gets a new filter structure array by merging two filter structures
|
|
3561
3547
|
|
|
3562
3548
|
|
|
3563
3549
|
|
|
@@ -3566,7 +3552,9 @@ Validates if the given validator is a Between type
|
|
|
3566
3552
|
|
|
3567
3553
|
| Name | Type | Description | |
|
|
3568
3554
|
| ---- | ---- | ----------- | -------- |
|
|
3569
|
-
|
|
|
3555
|
+
| filters1 | | the target filter structure | |
|
|
3556
|
+
| filters2 | | the filter to be merged | |
|
|
3557
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3570
3558
|
|
|
3571
3559
|
|
|
3572
3560
|
|
|
@@ -3574,17 +3562,13 @@ Validates if the given validator is a Between type
|
|
|
3574
3562
|
##### Returns
|
|
3575
3563
|
|
|
3576
3564
|
|
|
3577
|
-
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3565
|
+
- a new filter structure array
|
|
3581
3566
|
|
|
3582
|
-
### dist/filters/helpers/common/isDateDistinctProperty.js
|
|
3583
3567
|
|
|
3584
3568
|
|
|
3585
|
-
####
|
|
3569
|
+
#### mergeValues(filter1, filter2, overwrite)
|
|
3586
3570
|
|
|
3587
|
-
|
|
3571
|
+
Gets a new value structure array by merging two value structures
|
|
3588
3572
|
|
|
3589
3573
|
|
|
3590
3574
|
|
|
@@ -3593,8 +3577,9 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3593
3577
|
|
|
3594
3578
|
| Name | Type | Description | |
|
|
3595
3579
|
| ---- | ---- | ----------- | -------- |
|
|
3596
|
-
|
|
|
3597
|
-
|
|
|
3580
|
+
| filter1 | | the target filter structure | |
|
|
3581
|
+
| filter2 | | the filter to be used to merge the values | |
|
|
3582
|
+
| overwrite | | Flag to overwrite or not the filter values | |
|
|
3598
3583
|
|
|
3599
3584
|
|
|
3600
3585
|
|
|
@@ -3602,17 +3587,17 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3602
3587
|
##### Returns
|
|
3603
3588
|
|
|
3604
3589
|
|
|
3605
|
-
-
|
|
3590
|
+
- a new value structure array
|
|
3606
3591
|
|
|
3607
3592
|
|
|
3608
3593
|
|
|
3609
3594
|
|
|
3610
|
-
### dist/filters/helpers/common/
|
|
3595
|
+
### dist/filters/helpers/common/resolveDatasetConditions.js
|
|
3611
3596
|
|
|
3612
3597
|
|
|
3613
|
-
####
|
|
3598
|
+
#### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
3614
3599
|
|
|
3615
|
-
|
|
3600
|
+
Resolves the conditions by given params
|
|
3616
3601
|
|
|
3617
3602
|
|
|
3618
3603
|
|
|
@@ -3621,7 +3606,10 @@ Validates if the given validator is a In type
|
|
|
3621
3606
|
|
|
3622
3607
|
| Name | Type | Description | |
|
|
3623
3608
|
| ---- | ---- | ----------- | -------- |
|
|
3624
|
-
|
|
|
3609
|
+
| filter | | The dataset structure | |
|
|
3610
|
+
| params | | given parameters to validate the dataset | |
|
|
3611
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3612
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3625
3613
|
|
|
3626
3614
|
|
|
3627
3615
|
|
|
@@ -3629,17 +3617,17 @@ Validates if the given validator is a In type
|
|
|
3629
3617
|
##### Returns
|
|
3630
3618
|
|
|
3631
3619
|
|
|
3632
|
-
- true:
|
|
3620
|
+
- true: the condition is satisfied
|
|
3633
3621
|
|
|
3634
3622
|
|
|
3635
3623
|
|
|
3636
3624
|
|
|
3637
|
-
### dist/filters/helpers/common/
|
|
3625
|
+
### dist/filters/helpers/common/resolveFilterConditions.js
|
|
3638
3626
|
|
|
3639
3627
|
|
|
3640
|
-
####
|
|
3628
|
+
#### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
3641
3629
|
|
|
3642
|
-
|
|
3630
|
+
Resolves the conditions by given params
|
|
3643
3631
|
|
|
3644
3632
|
|
|
3645
3633
|
|
|
@@ -3648,7 +3636,10 @@ Checks if the given validator is a Null type.
|
|
|
3648
3636
|
|
|
3649
3637
|
| Name | Type | Description | |
|
|
3650
3638
|
| ---- | ---- | ----------- | -------- |
|
|
3651
|
-
|
|
|
3639
|
+
| filter | | The filter | |
|
|
3640
|
+
| params | | given parameters to validate the filter | |
|
|
3641
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3642
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3652
3643
|
|
|
3653
3644
|
|
|
3654
3645
|
|
|
@@ -3656,17 +3647,17 @@ Checks if the given validator is a Null type.
|
|
|
3656
3647
|
##### Returns
|
|
3657
3648
|
|
|
3658
3649
|
|
|
3659
|
-
-
|
|
3650
|
+
- true: the condition is satisfied
|
|
3660
3651
|
|
|
3661
3652
|
|
|
3662
3653
|
|
|
3663
3654
|
|
|
3664
|
-
### dist/filters/helpers/common/
|
|
3655
|
+
### dist/filters/helpers/common/resolveScopeConditions.js
|
|
3665
3656
|
|
|
3666
3657
|
|
|
3667
|
-
####
|
|
3658
|
+
#### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
3668
3659
|
|
|
3669
|
-
|
|
3660
|
+
Resolves the conditions by given params
|
|
3670
3661
|
|
|
3671
3662
|
|
|
3672
3663
|
|
|
@@ -3675,7 +3666,10 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
3675
3666
|
|
|
3676
3667
|
| Name | Type | Description | |
|
|
3677
3668
|
| ---- | ---- | ----------- | -------- |
|
|
3678
|
-
|
|
|
3669
|
+
| filter | | The filter scope structure | |
|
|
3670
|
+
| params | | given parameters to validate the filter | |
|
|
3671
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3672
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3679
3673
|
|
|
3680
3674
|
|
|
3681
3675
|
|
|
@@ -3683,17 +3677,17 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
3683
3677
|
##### Returns
|
|
3684
3678
|
|
|
3685
3679
|
|
|
3686
|
-
- true:
|
|
3680
|
+
- true: the condition is satisfied
|
|
3687
3681
|
|
|
3688
3682
|
|
|
3689
3683
|
|
|
3690
3684
|
|
|
3691
|
-
### dist/filters/helpers/
|
|
3685
|
+
### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
|
|
3692
3686
|
|
|
3693
3687
|
|
|
3694
|
-
####
|
|
3688
|
+
#### excludeUIFiltersByAggregate(uFilters)
|
|
3695
3689
|
|
|
3696
|
-
|
|
3690
|
+
Excludes Aggregate Filters in the Flattened UI Filters array
|
|
3697
3691
|
|
|
3698
3692
|
|
|
3699
3693
|
|
|
@@ -3702,7 +3696,7 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
3702
3696
|
|
|
3703
3697
|
| Name | Type | Description | |
|
|
3704
3698
|
| ---- | ---- | ----------- | -------- |
|
|
3705
|
-
|
|
|
3699
|
+
| uFilters | | Collection of Flat UI Filters | |
|
|
3706
3700
|
|
|
3707
3701
|
|
|
3708
3702
|
|
|
@@ -3710,17 +3704,17 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
3710
3704
|
##### Returns
|
|
3711
3705
|
|
|
3712
3706
|
|
|
3713
|
-
-
|
|
3707
|
+
- a new Flat UI Filters that were excluded the aggregate filters
|
|
3714
3708
|
|
|
3715
3709
|
|
|
3716
3710
|
|
|
3717
3711
|
|
|
3718
|
-
### dist/filters/helpers/
|
|
3712
|
+
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
3719
3713
|
|
|
3720
3714
|
|
|
3721
|
-
####
|
|
3715
|
+
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
3722
3716
|
|
|
3723
|
-
|
|
3717
|
+
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
3724
3718
|
|
|
3725
3719
|
|
|
3726
3720
|
|
|
@@ -3729,9 +3723,8 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
3729
3723
|
|
|
3730
3724
|
| Name | Type | Description | |
|
|
3731
3725
|
| ---- | ---- | ----------- | -------- |
|
|
3732
|
-
|
|
|
3733
|
-
|
|
|
3734
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3726
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3727
|
+
| scopes | | collection of scopes types | |
|
|
3735
3728
|
|
|
3736
3729
|
|
|
3737
3730
|
|
|
@@ -3739,13 +3732,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
3739
3732
|
##### Returns
|
|
3740
3733
|
|
|
3741
3734
|
|
|
3742
|
-
-
|
|
3735
|
+
- The new array of UI Flattened filters
|
|
3743
3736
|
|
|
3744
3737
|
|
|
3745
3738
|
|
|
3746
|
-
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
3747
3739
|
|
|
3748
|
-
|
|
3740
|
+
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
#### getFilterPropertyLabel(filter)
|
|
3744
|
+
|
|
3745
|
+
Gets the label of the filter property
|
|
3749
3746
|
|
|
3750
3747
|
|
|
3751
3748
|
|
|
@@ -3754,9 +3751,7 @@ Gets a new scope structure array by merging two scope structures
|
|
|
3754
3751
|
|
|
3755
3752
|
| Name | Type | Description | |
|
|
3756
3753
|
| ---- | ---- | ----------- | -------- |
|
|
3757
|
-
|
|
|
3758
|
-
| scopes2 | | the scope to be merged | |
|
|
3759
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3754
|
+
| filter | | The UI Filter | |
|
|
3760
3755
|
|
|
3761
3756
|
|
|
3762
3757
|
|
|
@@ -3764,13 +3759,17 @@ Gets a new scope structure array by merging two scope structures
|
|
|
3764
3759
|
##### Returns
|
|
3765
3760
|
|
|
3766
3761
|
|
|
3767
|
-
- a
|
|
3762
|
+
- a string of the filter property label
|
|
3768
3763
|
|
|
3769
3764
|
|
|
3770
3765
|
|
|
3771
|
-
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
3772
3766
|
|
|
3773
|
-
|
|
3767
|
+
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
#### getOutputFormatByColumn(column, datasets)
|
|
3771
|
+
|
|
3772
|
+
Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
|
|
3774
3773
|
|
|
3775
3774
|
|
|
3776
3775
|
|
|
@@ -3779,9 +3778,8 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
3779
3778
|
|
|
3780
3779
|
| Name | Type | Description | |
|
|
3781
3780
|
| ---- | ---- | ----------- | -------- |
|
|
3782
|
-
|
|
|
3783
|
-
|
|
|
3784
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3781
|
+
| column | | The column | |
|
|
3782
|
+
| datasets | | array of datasets | |
|
|
3785
3783
|
|
|
3786
3784
|
|
|
3787
3785
|
|
|
@@ -3789,24 +3787,27 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
3789
3787
|
##### Returns
|
|
3790
3788
|
|
|
3791
3789
|
|
|
3792
|
-
-
|
|
3790
|
+
- The output format object
|
|
3793
3791
|
|
|
3794
3792
|
|
|
3795
3793
|
|
|
3796
|
-
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
3797
3794
|
|
|
3798
|
-
|
|
3795
|
+
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
3799
3796
|
|
|
3800
3797
|
|
|
3798
|
+
#### getUIFlatFilterByParams()
|
|
3801
3799
|
|
|
3800
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3801
|
+
The validation to filter the stored filter is depending on:
|
|
3802
|
+
- Column
|
|
3803
|
+
- Qrvey ID,
|
|
3804
|
+
- Scope type
|
|
3805
|
+
- Scope ID
|
|
3806
|
+
- Panel ID
|
|
3807
|
+
- Validator type
|
|
3808
|
+
- Property type
|
|
3802
3809
|
|
|
3803
|
-
##### Parameters
|
|
3804
3810
|
|
|
3805
|
-
| Name | Type | Description | |
|
|
3806
|
-
| ---- | ---- | ----------- | -------- |
|
|
3807
|
-
| filters1 | | the target filter structure | |
|
|
3808
|
-
| filters2 | | the filter to be merged | |
|
|
3809
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3810
3811
|
|
|
3811
3812
|
|
|
3812
3813
|
|
|
@@ -3814,24 +3815,28 @@ Gets a new filter structure array by merging two filter structures
|
|
|
3814
3815
|
##### Returns
|
|
3815
3816
|
|
|
3816
3817
|
|
|
3817
|
-
-
|
|
3818
|
+
- The index of the uFilter array or the Filter object s
|
|
3818
3819
|
|
|
3819
3820
|
|
|
3820
3821
|
|
|
3821
|
-
#### mergeValues(filter1, filter2, overwrite)
|
|
3822
3822
|
|
|
3823
|
-
|
|
3823
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
3824
3824
|
|
|
3825
3825
|
|
|
3826
|
+
#### getUIFlatFiltersByParams()
|
|
3826
3827
|
|
|
3828
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3829
|
+
The validation to filter the stored filter is depending on:
|
|
3830
|
+
- Column
|
|
3831
|
+
- Qrvey ID,
|
|
3832
|
+
- Scope type
|
|
3833
|
+
- Scope ID
|
|
3834
|
+
- Panel ID
|
|
3835
|
+
- Validator type
|
|
3836
|
+
- Property type
|
|
3837
|
+
- Enabled flags
|
|
3827
3838
|
|
|
3828
|
-
##### Parameters
|
|
3829
3839
|
|
|
3830
|
-
| Name | Type | Description | |
|
|
3831
|
-
| ---- | ---- | ----------- | -------- |
|
|
3832
|
-
| filter1 | | the target filter structure | |
|
|
3833
|
-
| filter2 | | the filter to be used to merge the values | |
|
|
3834
|
-
| overwrite | | Flag to overwrite or not the filter values | |
|
|
3835
3840
|
|
|
3836
3841
|
|
|
3837
3842
|
|
|
@@ -3839,17 +3844,17 @@ Gets a new value structure array by merging two value structures
|
|
|
3839
3844
|
##### Returns
|
|
3840
3845
|
|
|
3841
3846
|
|
|
3842
|
-
-
|
|
3847
|
+
- The index of the uFilter array or the Filter object s
|
|
3843
3848
|
|
|
3844
3849
|
|
|
3845
3850
|
|
|
3846
3851
|
|
|
3847
|
-
### dist/filters/helpers/
|
|
3852
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
3848
3853
|
|
|
3849
3854
|
|
|
3850
|
-
####
|
|
3855
|
+
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
3851
3856
|
|
|
3852
|
-
|
|
3857
|
+
Filters and gets a UI Flatten Filters by the given scopes
|
|
3853
3858
|
|
|
3854
3859
|
|
|
3855
3860
|
|
|
@@ -3858,10 +3863,8 @@ Resolves the conditions by given params
|
|
|
3858
3863
|
|
|
3859
3864
|
| Name | Type | Description | |
|
|
3860
3865
|
| ---- | ---- | ----------- | -------- |
|
|
3861
|
-
|
|
|
3862
|
-
|
|
|
3863
|
-
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3864
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3866
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3867
|
+
| scopes | | collection of scopes types | |
|
|
3865
3868
|
|
|
3866
3869
|
|
|
3867
3870
|
|
|
@@ -3869,17 +3872,17 @@ Resolves the conditions by given params
|
|
|
3869
3872
|
##### Returns
|
|
3870
3873
|
|
|
3871
3874
|
|
|
3872
|
-
-
|
|
3875
|
+
- The new array of UI Flattened filters
|
|
3873
3876
|
|
|
3874
3877
|
|
|
3875
3878
|
|
|
3876
3879
|
|
|
3877
|
-
### dist/filters/helpers/
|
|
3880
|
+
### dist/filters/helpers/ui/getUIValues.js
|
|
3878
3881
|
|
|
3879
3882
|
|
|
3880
|
-
####
|
|
3883
|
+
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
3884
|
+
|
|
3881
3885
|
|
|
3882
|
-
Resolves the conditions by given params
|
|
3883
3886
|
|
|
3884
3887
|
|
|
3885
3888
|
|
|
@@ -3888,10 +3891,9 @@ Resolves the conditions by given params
|
|
|
3888
3891
|
|
|
3889
3892
|
| Name | Type | Description | |
|
|
3890
3893
|
| ---- | ---- | ----------- | -------- |
|
|
3891
|
-
| filter | |
|
|
3892
|
-
|
|
|
3893
|
-
|
|
|
3894
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3894
|
+
| filter | | | |
|
|
3895
|
+
| addEnableds | | | |
|
|
3896
|
+
| rankingGroupIndex | | | |
|
|
3895
3897
|
|
|
3896
3898
|
|
|
3897
3899
|
|
|
@@ -3899,17 +3901,17 @@ Resolves the conditions by given params
|
|
|
3899
3901
|
##### Returns
|
|
3900
3902
|
|
|
3901
3903
|
|
|
3902
|
-
-
|
|
3904
|
+
-
|
|
3903
3905
|
|
|
3904
3906
|
|
|
3905
3907
|
|
|
3906
3908
|
|
|
3907
|
-
### dist/filters/helpers/
|
|
3909
|
+
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
3908
3910
|
|
|
3909
3911
|
|
|
3910
|
-
####
|
|
3912
|
+
#### resolveUIFlatFilterByParams(filter, params)
|
|
3911
3913
|
|
|
3912
|
-
Resolves
|
|
3914
|
+
Resolves conditions between UI flattened filter and given parameters
|
|
3913
3915
|
|
|
3914
3916
|
|
|
3915
3917
|
|
|
@@ -3918,10 +3920,8 @@ Resolves the conditions by given params
|
|
|
3918
3920
|
|
|
3919
3921
|
| Name | Type | Description | |
|
|
3920
3922
|
| ---- | ---- | ----------- | -------- |
|
|
3921
|
-
| filter | |
|
|
3922
|
-
| params | |
|
|
3923
|
-
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3924
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3923
|
+
| filter | | UI Flatten Filter | |
|
|
3924
|
+
| params | | Parameters to validate | |
|
|
3925
3925
|
|
|
3926
3926
|
|
|
3927
3927
|
|
|
@@ -3929,7 +3929,7 @@ Resolves the conditions by given params
|
|
|
3929
3929
|
##### Returns
|
|
3930
3930
|
|
|
3931
3931
|
|
|
3932
|
-
- true: the
|
|
3932
|
+
- true: the conditions are satisfied.
|
|
3933
3933
|
|
|
3934
3934
|
|
|
3935
3935
|
|