@qrvey/utils 1.2.4-16 → 1.2.4-17
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 +365 -365
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +16 -14
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +6 -6
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.js +2 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +2 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/index.js +13 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +1 -1
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +7 -5
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +6 -6
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +14 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.js +13 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +1 -1
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +4 -4
- package/dist/globalization/interfaces/IResourceI18n.d.ts +16 -14
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +6 -6
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.js +1 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +1 -0
- package/dist/globalization/interfaces/cross_tabs/index.d.ts +1 -0
- package/dist/globalization/interfaces/cross_tabs/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +1 -1
- package/dist/globalization/labels/I18N_DEFAULT.js +7 -5
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +6 -6
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +11 -0
- package/dist/globalization/labels/cross_tabs/index.d.ts +1 -0
- package/dist/globalization/labels/cross_tabs/index.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -1
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +1 -1
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +1 -1
- package/package.json +1 -1
- package/src/globalization/interfaces/IResourceI18n.ts +16 -15
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +6 -6
- package/src/globalization/interfaces/cross_tabs/II18nCrossTabs.ts +9 -0
- package/src/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.ts +5 -0
- package/src/globalization/interfaces/cross_tabs/index.ts +1 -0
- package/src/globalization/interfaces/filters/II18nFilter.ts +1 -1
- package/src/globalization/labels/I18N_DEFAULT.ts +7 -5
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +6 -6
- package/src/globalization/labels/cross_tabs/I18N_CROSS_TABS.ts +14 -0
- package/src/globalization/labels/cross_tabs/index.ts +1 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +1 -1
- package/src/globalization/labels/filters/I18N_RELATIVE_CURSOR.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-17*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -1669,12 +1669,15 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1669
1669
|
|
|
1670
1670
|
|
|
1671
1671
|
|
|
1672
|
-
### dist/general/array/
|
|
1672
|
+
### dist/general/array/filterNestedTree.js
|
|
1673
1673
|
|
|
1674
1674
|
|
|
1675
|
-
####
|
|
1675
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1676
1676
|
|
|
1677
|
-
|
|
1677
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
1678
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
1679
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1680
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1678
1681
|
|
|
1679
1682
|
|
|
1680
1683
|
|
|
@@ -1683,8 +1686,9 @@ Inmutable Array Item deletion
|
|
|
1683
1686
|
|
|
1684
1687
|
| Name | Type | Description | |
|
|
1685
1688
|
| ---- | ---- | ----------- | -------- |
|
|
1686
|
-
|
|
|
1687
|
-
|
|
|
1689
|
+
| arr | | nested tree array | |
|
|
1690
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
1691
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1688
1692
|
|
|
1689
1693
|
|
|
1690
1694
|
|
|
@@ -1692,20 +1696,17 @@ Inmutable Array Item deletion
|
|
|
1692
1696
|
##### Returns
|
|
1693
1697
|
|
|
1694
1698
|
|
|
1695
|
-
-
|
|
1699
|
+
- array filtered
|
|
1696
1700
|
|
|
1697
1701
|
|
|
1698
1702
|
|
|
1699
1703
|
|
|
1700
|
-
### dist/general/array/
|
|
1704
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1701
1705
|
|
|
1702
1706
|
|
|
1703
|
-
####
|
|
1707
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1704
1708
|
|
|
1705
|
-
|
|
1706
|
-
- If the given arguments are not valid, the function returns the first argument.
|
|
1707
|
-
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1708
|
-
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1709
|
+
Gets the first index from the array by a callback condition
|
|
1709
1710
|
|
|
1710
1711
|
|
|
1711
1712
|
|
|
@@ -1714,9 +1715,8 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1714
1715
|
|
|
1715
1716
|
| Name | Type | Description | |
|
|
1716
1717
|
| ---- | ---- | ----------- | -------- |
|
|
1717
|
-
|
|
|
1718
|
-
|
|
|
1719
|
-
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1718
|
+
| array | | | |
|
|
1719
|
+
| callback | | function callback | |
|
|
1720
1720
|
|
|
1721
1721
|
|
|
1722
1722
|
|
|
@@ -1724,7 +1724,7 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1724
1724
|
##### Returns
|
|
1725
1725
|
|
|
1726
1726
|
|
|
1727
|
-
- array
|
|
1727
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1728
1728
|
|
|
1729
1729
|
|
|
1730
1730
|
|
|
@@ -1756,12 +1756,12 @@ Flat deeply an array
|
|
|
1756
1756
|
|
|
1757
1757
|
|
|
1758
1758
|
|
|
1759
|
-
### dist/general/array/
|
|
1759
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1760
1760
|
|
|
1761
1761
|
|
|
1762
|
-
####
|
|
1762
|
+
#### getLastIndexFromArray(array, callback)
|
|
1763
1763
|
|
|
1764
|
-
Gets the
|
|
1764
|
+
Gets the last index from the array by a callback condition
|
|
1765
1765
|
|
|
1766
1766
|
|
|
1767
1767
|
|
|
@@ -1779,17 +1779,17 @@ Gets the first index from the array by a callback condition
|
|
|
1779
1779
|
##### Returns
|
|
1780
1780
|
|
|
1781
1781
|
|
|
1782
|
-
- the
|
|
1782
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1783
1783
|
|
|
1784
1784
|
|
|
1785
1785
|
|
|
1786
1786
|
|
|
1787
|
-
### dist/general/array/
|
|
1787
|
+
### dist/general/array/delete.js
|
|
1788
1788
|
|
|
1789
1789
|
|
|
1790
|
-
####
|
|
1790
|
+
#### ArrayDelete(array, index)
|
|
1791
1791
|
|
|
1792
|
-
|
|
1792
|
+
Inmutable Array Item deletion
|
|
1793
1793
|
|
|
1794
1794
|
|
|
1795
1795
|
|
|
@@ -1798,8 +1798,8 @@ Gets the last index from the array by a callback condition
|
|
|
1798
1798
|
|
|
1799
1799
|
| Name | Type | Description | |
|
|
1800
1800
|
| ---- | ---- | ----------- | -------- |
|
|
1801
|
-
| array | |
|
|
1802
|
-
|
|
|
1801
|
+
| array | `Array` | a collection of items to delete | |
|
|
1802
|
+
| index | `Number` | the position of the item to delete | |
|
|
1803
1803
|
|
|
1804
1804
|
|
|
1805
1805
|
|
|
@@ -1807,7 +1807,7 @@ Gets the last index from the array by a callback condition
|
|
|
1807
1807
|
##### Returns
|
|
1808
1808
|
|
|
1809
1809
|
|
|
1810
|
-
-
|
|
1810
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1811
1811
|
|
|
1812
1812
|
|
|
1813
1813
|
|
|
@@ -2036,6 +2036,33 @@ _hasProperty(ob1, prop2) // false
|
|
|
2036
2036
|
|
|
2037
2037
|
|
|
2038
2038
|
|
|
2039
|
+
### dist/general/object/isObject.js
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
#### isObject(obj)
|
|
2043
|
+
|
|
2044
|
+
Checks if the given argument is an object type
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
##### Parameters
|
|
2050
|
+
|
|
2051
|
+
| Name | Type | Description | |
|
|
2052
|
+
| ---- | ---- | ----------- | -------- |
|
|
2053
|
+
| obj | | the variable to check | |
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
##### Returns
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
- True: It is an object; False: It is not.
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2039
2066
|
### dist/general/object/mapValues.js
|
|
2040
2067
|
|
|
2041
2068
|
|
|
@@ -2142,33 +2169,6 @@ Validates and gets the settings with all set parameters.
|
|
|
2142
2169
|
|
|
2143
2170
|
|
|
2144
2171
|
|
|
2145
|
-
### dist/general/object/isObject.js
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
#### isObject(obj)
|
|
2149
|
-
|
|
2150
|
-
Checks if the given argument is an object type
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
##### Parameters
|
|
2156
|
-
|
|
2157
|
-
| Name | Type | Description | |
|
|
2158
|
-
| ---- | ---- | ----------- | -------- |
|
|
2159
|
-
| obj | | the variable to check | |
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
##### Returns
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
- True: It is an object; False: It is not.
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
2172
|
### dist/general/object/objectCopy.js
|
|
2173
2173
|
|
|
2174
2174
|
|
|
@@ -2734,36 +2734,39 @@ someMethod() {
|
|
|
2734
2734
|
|
|
2735
2735
|
|
|
2736
2736
|
|
|
2737
|
-
### dist/
|
|
2737
|
+
### dist/typescript/decorators/Debounce.js
|
|
2738
2738
|
|
|
2739
2739
|
|
|
2740
|
-
####
|
|
2740
|
+
#### Debounce(time)
|
|
2741
2741
|
|
|
2742
|
-
|
|
2742
|
+
(Method Decorator) Debounce Class Method
|
|
2743
2743
|
|
|
2744
2744
|
|
|
2745
2745
|
|
|
2746
2746
|
|
|
2747
|
+
##### Parameters
|
|
2748
|
+
|
|
2749
|
+
| Name | Type | Description | |
|
|
2750
|
+
| ---- | ---- | ----------- | -------- |
|
|
2751
|
+
| time | | (optional) deafult 500 | |
|
|
2752
|
+
|
|
2753
|
+
|
|
2747
2754
|
|
|
2748
2755
|
|
|
2749
2756
|
##### Returns
|
|
2750
2757
|
|
|
2751
2758
|
|
|
2752
|
-
-
|
|
2759
|
+
- `Void`
|
|
2753
2760
|
|
|
2754
2761
|
|
|
2755
2762
|
|
|
2756
2763
|
|
|
2757
|
-
### dist/
|
|
2764
|
+
### dist/typescript/decorators/Throttled.js
|
|
2758
2765
|
|
|
2759
2766
|
|
|
2760
|
-
####
|
|
2767
|
+
#### Throttled(time)
|
|
2761
2768
|
|
|
2762
|
-
|
|
2763
|
-
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2764
|
-
try to find this string as a variable on Windows object
|
|
2765
|
-
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2766
|
-
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2769
|
+
(Method Decorator) Throttled Class Method
|
|
2767
2770
|
|
|
2768
2771
|
|
|
2769
2772
|
|
|
@@ -2772,7 +2775,7 @@ try to find this string as a variable on Windows object
|
|
|
2772
2775
|
|
|
2773
2776
|
| Name | Type | Description | |
|
|
2774
2777
|
| ---- | ---- | ----------- | -------- |
|
|
2775
|
-
|
|
|
2778
|
+
| time | | (optional) deafult 500 | |
|
|
2776
2779
|
|
|
2777
2780
|
|
|
2778
2781
|
|
|
@@ -2785,21 +2788,14 @@ try to find this string as a variable on Windows object
|
|
|
2785
2788
|
|
|
2786
2789
|
|
|
2787
2790
|
|
|
2788
|
-
### dist/
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
#### Debounce(time)
|
|
2792
|
-
|
|
2793
|
-
(Method Decorator) Debounce Class Method
|
|
2791
|
+
### dist/stencil/util/createRef.js
|
|
2794
2792
|
|
|
2795
2793
|
|
|
2794
|
+
#### createRef()
|
|
2796
2795
|
|
|
2796
|
+
lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
2797
2797
|
|
|
2798
|
-
##### Parameters
|
|
2799
2798
|
|
|
2800
|
-
| Name | Type | Description | |
|
|
2801
|
-
| ---- | ---- | ----------- | -------- |
|
|
2802
|
-
| time | | (optional) deafult 500 | |
|
|
2803
2799
|
|
|
2804
2800
|
|
|
2805
2801
|
|
|
@@ -2807,17 +2803,21 @@ try to find this string as a variable on Windows object
|
|
|
2807
2803
|
##### Returns
|
|
2808
2804
|
|
|
2809
2805
|
|
|
2810
|
-
-
|
|
2806
|
+
- function - Function to use in ref prop in html elements
|
|
2811
2807
|
|
|
2812
2808
|
|
|
2813
2809
|
|
|
2814
2810
|
|
|
2815
|
-
### dist/
|
|
2811
|
+
### dist/stencil/util/getConfig.js
|
|
2816
2812
|
|
|
2817
2813
|
|
|
2818
|
-
####
|
|
2814
|
+
#### getConfig(cfg)
|
|
2819
2815
|
|
|
2820
|
-
|
|
2816
|
+
verify the Config object type and try to return a parsed Object
|
|
2817
|
+
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2818
|
+
try to find this string as a variable on Windows object
|
|
2819
|
+
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2820
|
+
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2821
2821
|
|
|
2822
2822
|
|
|
2823
2823
|
|
|
@@ -2826,7 +2826,7 @@ try to find this string as a variable on Windows object
|
|
|
2826
2826
|
|
|
2827
2827
|
| Name | Type | Description | |
|
|
2828
2828
|
| ---- | ---- | ----------- | -------- |
|
|
2829
|
-
|
|
|
2829
|
+
| cfg | | | |
|
|
2830
2830
|
|
|
2831
2831
|
|
|
2832
2832
|
|
|
@@ -3244,12 +3244,12 @@ Returns a filter builder config object by a any given config
|
|
|
3244
3244
|
|
|
3245
3245
|
|
|
3246
3246
|
|
|
3247
|
-
### dist/filters/helpers/
|
|
3247
|
+
### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
|
|
3248
3248
|
|
|
3249
3249
|
|
|
3250
|
-
####
|
|
3250
|
+
#### excludeUIFiltersByAggregate(uFilters)
|
|
3251
3251
|
|
|
3252
|
-
Excludes Aggregate Filters in the
|
|
3252
|
+
Excludes Aggregate Filters in the Flattened UI Filters array
|
|
3253
3253
|
|
|
3254
3254
|
|
|
3255
3255
|
|
|
@@ -3258,7 +3258,7 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3258
3258
|
|
|
3259
3259
|
| Name | Type | Description | |
|
|
3260
3260
|
| ---- | ---- | ----------- | -------- |
|
|
3261
|
-
|
|
|
3261
|
+
| uFilters | | Collection of Flat UI Filters | |
|
|
3262
3262
|
|
|
3263
3263
|
|
|
3264
3264
|
|
|
@@ -3266,17 +3266,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3266
3266
|
##### Returns
|
|
3267
3267
|
|
|
3268
3268
|
|
|
3269
|
-
-
|
|
3269
|
+
- a new Flat UI Filters that were excluded the aggregate filters
|
|
3270
3270
|
|
|
3271
3271
|
|
|
3272
3272
|
|
|
3273
3273
|
|
|
3274
|
-
### dist/filters/helpers/
|
|
3274
|
+
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
3275
3275
|
|
|
3276
3276
|
|
|
3277
|
-
####
|
|
3277
|
+
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
3278
3278
|
|
|
3279
|
-
|
|
3279
|
+
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
3280
3280
|
|
|
3281
3281
|
|
|
3282
3282
|
|
|
@@ -3285,8 +3285,8 @@ Validates if both filters are the same
|
|
|
3285
3285
|
|
|
3286
3286
|
| Name | Type | Description | |
|
|
3287
3287
|
| ---- | ---- | ----------- | -------- |
|
|
3288
|
-
|
|
|
3289
|
-
|
|
|
3288
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3289
|
+
| scopes | | collection of scopes types | |
|
|
3290
3290
|
|
|
3291
3291
|
|
|
3292
3292
|
|
|
@@ -3294,17 +3294,17 @@ Validates if both filters are the same
|
|
|
3294
3294
|
##### Returns
|
|
3295
3295
|
|
|
3296
3296
|
|
|
3297
|
-
-
|
|
3297
|
+
- The new array of UI Flattened filters
|
|
3298
3298
|
|
|
3299
3299
|
|
|
3300
3300
|
|
|
3301
3301
|
|
|
3302
|
-
### dist/filters/helpers/
|
|
3302
|
+
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
3303
3303
|
|
|
3304
3304
|
|
|
3305
|
-
####
|
|
3305
|
+
#### getFilterPropertyLabel(filter)
|
|
3306
3306
|
|
|
3307
|
-
|
|
3307
|
+
Gets the label of the filter property
|
|
3308
3308
|
|
|
3309
3309
|
|
|
3310
3310
|
|
|
@@ -3313,8 +3313,7 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3313
3313
|
|
|
3314
3314
|
| Name | Type | Description | |
|
|
3315
3315
|
| ---- | ---- | ----------- | -------- |
|
|
3316
|
-
|
|
|
3317
|
-
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3316
|
+
| filter | | The UI Filter | |
|
|
3318
3317
|
|
|
3319
3318
|
|
|
3320
3319
|
|
|
@@ -3322,26 +3321,17 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3322
3321
|
##### Returns
|
|
3323
3322
|
|
|
3324
3323
|
|
|
3325
|
-
-
|
|
3324
|
+
- a string of the filter property label
|
|
3326
3325
|
|
|
3327
3326
|
|
|
3328
3327
|
|
|
3329
3328
|
|
|
3330
|
-
### dist/filters/helpers/
|
|
3329
|
+
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
3331
3330
|
|
|
3332
3331
|
|
|
3333
|
-
####
|
|
3332
|
+
#### getOutputFormatByColumn(column, datasets)
|
|
3334
3333
|
|
|
3335
|
-
|
|
3336
|
-
The validation to filter the stored filter is depending on:
|
|
3337
|
-
- Column
|
|
3338
|
-
- Qrvey ID
|
|
3339
|
-
- Scope type
|
|
3340
|
-
- Scope ID
|
|
3341
|
-
- Panel ID
|
|
3342
|
-
- Validator type
|
|
3343
|
-
- Property type
|
|
3344
|
-
- Enabled flags
|
|
3334
|
+
Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
|
|
3345
3335
|
|
|
3346
3336
|
|
|
3347
3337
|
|
|
@@ -3350,8 +3340,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3350
3340
|
|
|
3351
3341
|
| Name | Type | Description | |
|
|
3352
3342
|
| ---- | ---- | ----------- | -------- |
|
|
3353
|
-
|
|
|
3354
|
-
|
|
|
3343
|
+
| column | | The column | |
|
|
3344
|
+
| datasets | | array of datasets | |
|
|
3355
3345
|
|
|
3356
3346
|
|
|
3357
3347
|
|
|
@@ -3359,82 +3349,74 @@ The validation to filter the stored filter is depending on:
|
|
|
3359
3349
|
##### Returns
|
|
3360
3350
|
|
|
3361
3351
|
|
|
3362
|
-
-
|
|
3352
|
+
- The output format object
|
|
3363
3353
|
|
|
3364
3354
|
|
|
3365
3355
|
|
|
3366
3356
|
|
|
3367
|
-
### dist/filters/helpers/
|
|
3357
|
+
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
3368
3358
|
|
|
3369
3359
|
|
|
3370
|
-
####
|
|
3360
|
+
#### getUIFlatFilterByParams()
|
|
3371
3361
|
|
|
3372
|
-
|
|
3362
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3363
|
+
The validation to filter the stored filter is depending on:
|
|
3364
|
+
- Column
|
|
3365
|
+
- Qrvey ID,
|
|
3366
|
+
- Scope type
|
|
3367
|
+
- Scope ID
|
|
3368
|
+
- Panel ID
|
|
3369
|
+
- Validator type
|
|
3370
|
+
- Property type
|
|
3373
3371
|
|
|
3374
3372
|
|
|
3375
3373
|
|
|
3376
3374
|
|
|
3377
|
-
##### Parameters
|
|
3378
3375
|
|
|
3379
|
-
| Name | Type | Description | |
|
|
3380
|
-
| ---- | ---- | ----------- | -------- |
|
|
3381
|
-
| column | | The filter column | |
|
|
3382
3376
|
|
|
3377
|
+
##### Returns
|
|
3383
3378
|
|
|
3384
3379
|
|
|
3380
|
+
- The index of the uFilter array or the Filter object s
|
|
3385
3381
|
|
|
3386
|
-
##### Returns
|
|
3387
3382
|
|
|
3388
3383
|
|
|
3389
|
-
- an string with the property, aggregate or calculation label.
|
|
3390
3384
|
|
|
3385
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
3391
3386
|
|
|
3392
3387
|
|
|
3388
|
+
#### getUIFlatFiltersByParams()
|
|
3393
3389
|
|
|
3394
|
-
|
|
3390
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3391
|
+
The validation to filter the stored filter is depending on:
|
|
3392
|
+
- Column
|
|
3393
|
+
- Qrvey ID,
|
|
3394
|
+
- Scope type
|
|
3395
|
+
- Scope ID
|
|
3396
|
+
- Panel ID
|
|
3397
|
+
- Validator type
|
|
3398
|
+
- Property type
|
|
3399
|
+
- Enabled flags
|
|
3395
3400
|
|
|
3396
3401
|
|
|
3397
|
-
#### getFilterLabel(filter)
|
|
3398
3402
|
|
|
3399
|
-
Gets the Filter Label + Column label
|
|
3400
3403
|
|
|
3401
3404
|
|
|
3402
3405
|
|
|
3406
|
+
##### Returns
|
|
3403
3407
|
|
|
3404
|
-
##### Parameters
|
|
3405
3408
|
|
|
3406
|
-
|
|
3407
|
-
| ---- | ---- | ----------- | -------- |
|
|
3408
|
-
| filter | | the UI filter | |
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
##### Returns
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
- a sring label
|
|
3409
|
+
- The index of the uFilter array or the Filter object s
|
|
3417
3410
|
|
|
3418
3411
|
|
|
3419
3412
|
|
|
3420
3413
|
|
|
3421
|
-
### dist/filters/helpers/
|
|
3414
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
3422
3415
|
|
|
3423
3416
|
|
|
3424
|
-
####
|
|
3417
|
+
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
3425
3418
|
|
|
3426
|
-
|
|
3427
|
-
The order of the epression ID is:
|
|
3428
|
-
- Scope Type
|
|
3429
|
-
- scopeid
|
|
3430
|
-
- qrveyid
|
|
3431
|
-
- panelid
|
|
3432
|
-
- columnid
|
|
3433
|
-
- validator
|
|
3434
|
-
- property
|
|
3435
|
-
- Column Aggregate
|
|
3436
|
-
- Column Calculation
|
|
3437
|
-
- Optional Index
|
|
3419
|
+
Filters and gets a UI Flatten Filters by the given scopes
|
|
3438
3420
|
|
|
3439
3421
|
|
|
3440
3422
|
|
|
@@ -3443,7 +3425,8 @@ The order of the epression ID is:
|
|
|
3443
3425
|
|
|
3444
3426
|
| Name | Type | Description | |
|
|
3445
3427
|
| ---- | ---- | ----------- | -------- |
|
|
3446
|
-
|
|
|
3428
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3429
|
+
| scopes | | collection of scopes types | |
|
|
3447
3430
|
|
|
3448
3431
|
|
|
3449
3432
|
|
|
@@ -3451,17 +3434,17 @@ The order of the epression ID is:
|
|
|
3451
3434
|
##### Returns
|
|
3452
3435
|
|
|
3453
3436
|
|
|
3454
|
-
-
|
|
3437
|
+
- The new array of UI Flattened filters
|
|
3455
3438
|
|
|
3456
3439
|
|
|
3457
3440
|
|
|
3458
3441
|
|
|
3459
|
-
### dist/filters/helpers/
|
|
3442
|
+
### dist/filters/helpers/ui/getUIValues.js
|
|
3460
3443
|
|
|
3461
3444
|
|
|
3462
|
-
####
|
|
3445
|
+
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
3446
|
+
|
|
3463
3447
|
|
|
3464
|
-
Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
3465
3448
|
|
|
3466
3449
|
|
|
3467
3450
|
|
|
@@ -3470,7 +3453,9 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3470
3453
|
|
|
3471
3454
|
| Name | Type | Description | |
|
|
3472
3455
|
| ---- | ---- | ----------- | -------- |
|
|
3473
|
-
|
|
|
3456
|
+
| filter | | | |
|
|
3457
|
+
| addEnableds | | | |
|
|
3458
|
+
| rankingGroupIndex | | | |
|
|
3474
3459
|
|
|
3475
3460
|
|
|
3476
3461
|
|
|
@@ -3478,26 +3463,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3478
3463
|
##### Returns
|
|
3479
3464
|
|
|
3480
3465
|
|
|
3481
|
-
-
|
|
3466
|
+
-
|
|
3482
3467
|
|
|
3483
3468
|
|
|
3484
3469
|
|
|
3485
3470
|
|
|
3486
|
-
### dist/filters/helpers/
|
|
3471
|
+
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
3487
3472
|
|
|
3488
3473
|
|
|
3489
|
-
####
|
|
3474
|
+
#### resolveUIFlatFilterByParams(filter, params)
|
|
3490
3475
|
|
|
3491
|
-
|
|
3492
|
-
The validation to filter the stored filter is depending on:
|
|
3493
|
-
- Column
|
|
3494
|
-
- Qrvey ID
|
|
3495
|
-
- Scope type
|
|
3496
|
-
- Scope ID
|
|
3497
|
-
- Panel ID
|
|
3498
|
-
- Validator type
|
|
3499
|
-
- Property type
|
|
3500
|
-
- Enabled flags
|
|
3476
|
+
Resolves conditions between UI flattened filter and given parameters
|
|
3501
3477
|
|
|
3502
3478
|
|
|
3503
3479
|
|
|
@@ -3506,8 +3482,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3506
3482
|
|
|
3507
3483
|
| Name | Type | Description | |
|
|
3508
3484
|
| ---- | ---- | ----------- | -------- |
|
|
3509
|
-
|
|
|
3510
|
-
| params | |
|
|
3485
|
+
| filter | | UI Flatten Filter | |
|
|
3486
|
+
| params | | Parameters to validate | |
|
|
3511
3487
|
|
|
3512
3488
|
|
|
3513
3489
|
|
|
@@ -3515,17 +3491,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3515
3491
|
##### Returns
|
|
3516
3492
|
|
|
3517
3493
|
|
|
3518
|
-
-
|
|
3494
|
+
- true: the conditions are satisfied.
|
|
3519
3495
|
|
|
3520
3496
|
|
|
3521
3497
|
|
|
3522
3498
|
|
|
3523
|
-
### dist/filters/helpers/common/
|
|
3499
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3524
3500
|
|
|
3525
3501
|
|
|
3526
|
-
####
|
|
3502
|
+
#### areFiltersEquals(filter1, filter2)
|
|
3527
3503
|
|
|
3528
|
-
|
|
3504
|
+
Validates if both filters are the same
|
|
3529
3505
|
|
|
3530
3506
|
|
|
3531
3507
|
|
|
@@ -3534,8 +3510,8 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3534
3510
|
|
|
3535
3511
|
| Name | Type | Description | |
|
|
3536
3512
|
| ---- | ---- | ----------- | -------- |
|
|
3537
|
-
|
|
|
3538
|
-
|
|
|
3513
|
+
| filter1 | | filter 1 | |
|
|
3514
|
+
| filter2 | | filter 2 | |
|
|
3539
3515
|
|
|
3540
3516
|
|
|
3541
3517
|
|
|
@@ -3543,17 +3519,17 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3543
3519
|
##### Returns
|
|
3544
3520
|
|
|
3545
3521
|
|
|
3546
|
-
-
|
|
3522
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
3547
3523
|
|
|
3548
3524
|
|
|
3549
3525
|
|
|
3550
3526
|
|
|
3551
|
-
### dist/filters/helpers/common/
|
|
3527
|
+
### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
|
|
3552
3528
|
|
|
3553
3529
|
|
|
3554
|
-
####
|
|
3530
|
+
#### excludeFiltersByAggregateColumn(filterData)
|
|
3555
3531
|
|
|
3556
|
-
|
|
3532
|
+
Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
3557
3533
|
|
|
3558
3534
|
|
|
3559
3535
|
|
|
@@ -3562,8 +3538,7 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3562
3538
|
|
|
3563
3539
|
| Name | Type | Description | |
|
|
3564
3540
|
| ---- | ---- | ----------- | -------- |
|
|
3565
|
-
| filterData | | The filter data | |
|
|
3566
|
-
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3541
|
+
| filterData | | The filter data object | |
|
|
3567
3542
|
|
|
3568
3543
|
|
|
3569
3544
|
|
|
@@ -3571,17 +3546,26 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3571
3546
|
##### Returns
|
|
3572
3547
|
|
|
3573
3548
|
|
|
3574
|
-
-
|
|
3549
|
+
- The new filter data object that were excluded the aggregate filters
|
|
3575
3550
|
|
|
3576
3551
|
|
|
3577
3552
|
|
|
3578
3553
|
|
|
3579
|
-
### dist/filters/helpers/common/
|
|
3554
|
+
### dist/filters/helpers/common/excludeFiltersByParams.js
|
|
3580
3555
|
|
|
3581
3556
|
|
|
3582
|
-
####
|
|
3557
|
+
#### excludeFiltersByParams(filterData, params)
|
|
3583
3558
|
|
|
3584
|
-
|
|
3559
|
+
Excludes filters from the given Filters.
|
|
3560
|
+
The validation to filter the stored filter is depending on:
|
|
3561
|
+
- Column
|
|
3562
|
+
- Qrvey ID
|
|
3563
|
+
- Scope type
|
|
3564
|
+
- Scope ID
|
|
3565
|
+
- Panel ID
|
|
3566
|
+
- Validator type
|
|
3567
|
+
- Property type
|
|
3568
|
+
- Enabled flags
|
|
3585
3569
|
|
|
3586
3570
|
|
|
3587
3571
|
|
|
@@ -3590,8 +3574,8 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3590
3574
|
|
|
3591
3575
|
| Name | Type | Description | |
|
|
3592
3576
|
| ---- | ---- | ----------- | -------- |
|
|
3593
|
-
| filterData | |
|
|
3594
|
-
|
|
|
3577
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3578
|
+
| params | | given parameters to validate the filter data | |
|
|
3595
3579
|
|
|
3596
3580
|
|
|
3597
3581
|
|
|
@@ -3599,17 +3583,17 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3599
3583
|
##### Returns
|
|
3600
3584
|
|
|
3601
3585
|
|
|
3602
|
-
- a new Filter
|
|
3586
|
+
- a new Filter object structure
|
|
3603
3587
|
|
|
3604
3588
|
|
|
3605
3589
|
|
|
3606
3590
|
|
|
3607
|
-
### dist/filters/helpers/common/
|
|
3591
|
+
### dist/filters/helpers/common/excludeFiltersByScopes.js
|
|
3608
3592
|
|
|
3609
3593
|
|
|
3610
|
-
####
|
|
3594
|
+
#### excludeFiltersByScopes(filterData, scopes)
|
|
3611
3595
|
|
|
3612
|
-
|
|
3596
|
+
Excludes and returns a filter data without filters by the given scopes
|
|
3613
3597
|
|
|
3614
3598
|
|
|
3615
3599
|
|
|
@@ -3618,7 +3602,8 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3618
3602
|
|
|
3619
3603
|
| Name | Type | Description | |
|
|
3620
3604
|
| ---- | ---- | ----------- | -------- |
|
|
3621
|
-
|
|
|
3605
|
+
| filterData | | The Filter Data | |
|
|
3606
|
+
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3622
3607
|
|
|
3623
3608
|
|
|
3624
3609
|
|
|
@@ -3626,17 +3611,17 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3626
3611
|
##### Returns
|
|
3627
3612
|
|
|
3628
3613
|
|
|
3629
|
-
-
|
|
3614
|
+
- The new Filter Data without filters by the given scopes.
|
|
3630
3615
|
|
|
3631
3616
|
|
|
3632
3617
|
|
|
3633
3618
|
|
|
3634
|
-
### dist/filters/helpers/common/
|
|
3619
|
+
### dist/filters/helpers/common/getFilterColumnLabel.js
|
|
3635
3620
|
|
|
3636
3621
|
|
|
3637
|
-
####
|
|
3622
|
+
#### getFilterColumnLabel(column)
|
|
3638
3623
|
|
|
3639
|
-
|
|
3624
|
+
Get an string of the properties of the given filter column.
|
|
3640
3625
|
|
|
3641
3626
|
|
|
3642
3627
|
|
|
@@ -3645,7 +3630,7 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3645
3630
|
|
|
3646
3631
|
| Name | Type | Description | |
|
|
3647
3632
|
| ---- | ---- | ----------- | -------- |
|
|
3648
|
-
|
|
|
3633
|
+
| column | | The filter column | |
|
|
3649
3634
|
|
|
3650
3635
|
|
|
3651
3636
|
|
|
@@ -3653,17 +3638,17 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3653
3638
|
##### Returns
|
|
3654
3639
|
|
|
3655
3640
|
|
|
3656
|
-
-
|
|
3641
|
+
- an string with the property, aggregate or calculation label.
|
|
3657
3642
|
|
|
3658
3643
|
|
|
3659
3644
|
|
|
3660
3645
|
|
|
3661
|
-
### dist/filters/helpers/common/
|
|
3646
|
+
### dist/filters/helpers/common/getFilterLabel.js
|
|
3662
3647
|
|
|
3663
3648
|
|
|
3664
|
-
####
|
|
3649
|
+
#### getFilterLabel(filter)
|
|
3665
3650
|
|
|
3666
|
-
|
|
3651
|
+
Gets the Filter Label + Column label
|
|
3667
3652
|
|
|
3668
3653
|
|
|
3669
3654
|
|
|
@@ -3672,8 +3657,7 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3672
3657
|
|
|
3673
3658
|
| Name | Type | Description | |
|
|
3674
3659
|
| ---- | ---- | ----------- | -------- |
|
|
3675
|
-
|
|
|
3676
|
-
| qrveyid | | The Qrvey ID | |
|
|
3660
|
+
| filter | | the UI filter | |
|
|
3677
3661
|
|
|
3678
3662
|
|
|
3679
3663
|
|
|
@@ -3681,17 +3665,28 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3681
3665
|
##### Returns
|
|
3682
3666
|
|
|
3683
3667
|
|
|
3684
|
-
-
|
|
3668
|
+
- a sring label
|
|
3685
3669
|
|
|
3686
3670
|
|
|
3687
3671
|
|
|
3688
3672
|
|
|
3689
|
-
### dist/filters/helpers/common/
|
|
3673
|
+
### dist/filters/helpers/common/getFilterid.js
|
|
3690
3674
|
|
|
3691
3675
|
|
|
3692
|
-
####
|
|
3676
|
+
#### getFilterid(filter)
|
|
3693
3677
|
|
|
3694
|
-
|
|
3678
|
+
Get the Filter ID by the filter structure
|
|
3679
|
+
The order of the epression ID is:
|
|
3680
|
+
- Scope Type
|
|
3681
|
+
- scopeid
|
|
3682
|
+
- qrveyid
|
|
3683
|
+
- panelid
|
|
3684
|
+
- columnid
|
|
3685
|
+
- validator
|
|
3686
|
+
- property
|
|
3687
|
+
- Column Aggregate
|
|
3688
|
+
- Column Calculation
|
|
3689
|
+
- Optional Index
|
|
3695
3690
|
|
|
3696
3691
|
|
|
3697
3692
|
|
|
@@ -3700,7 +3695,7 @@ Validates if the given validator is a Between type
|
|
|
3700
3695
|
|
|
3701
3696
|
| Name | Type | Description | |
|
|
3702
3697
|
| ---- | ---- | ----------- | -------- |
|
|
3703
|
-
|
|
|
3698
|
+
| filter | | the filter structure | |
|
|
3704
3699
|
|
|
3705
3700
|
|
|
3706
3701
|
|
|
@@ -3708,17 +3703,17 @@ Validates if the given validator is a Between type
|
|
|
3708
3703
|
##### Returns
|
|
3709
3704
|
|
|
3710
3705
|
|
|
3711
|
-
-
|
|
3706
|
+
- a text to identify the filter
|
|
3712
3707
|
|
|
3713
3708
|
|
|
3714
3709
|
|
|
3715
3710
|
|
|
3716
|
-
### dist/filters/helpers/common/
|
|
3711
|
+
### dist/filters/helpers/common/getFiltersByAggregateColumn.js
|
|
3717
3712
|
|
|
3718
3713
|
|
|
3719
|
-
####
|
|
3714
|
+
#### getFiltersByAggregateColumn(filterData)
|
|
3720
3715
|
|
|
3721
|
-
|
|
3716
|
+
Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
3722
3717
|
|
|
3723
3718
|
|
|
3724
3719
|
|
|
@@ -3727,8 +3722,7 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3727
3722
|
|
|
3728
3723
|
| Name | Type | Description | |
|
|
3729
3724
|
| ---- | ---- | ----------- | -------- |
|
|
3730
|
-
|
|
|
3731
|
-
| property | | The filter property | |
|
|
3725
|
+
| filterData | | The filter data object | |
|
|
3732
3726
|
|
|
3733
3727
|
|
|
3734
3728
|
|
|
@@ -3736,17 +3730,26 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3736
3730
|
##### Returns
|
|
3737
3731
|
|
|
3738
3732
|
|
|
3739
|
-
-
|
|
3733
|
+
- The new filter data object that were get the aggregate filters
|
|
3740
3734
|
|
|
3741
3735
|
|
|
3742
3736
|
|
|
3743
3737
|
|
|
3744
|
-
### dist/filters/helpers/common/
|
|
3738
|
+
### dist/filters/helpers/common/getFiltersByParams.js
|
|
3745
3739
|
|
|
3746
3740
|
|
|
3747
|
-
####
|
|
3741
|
+
#### getFiltersByParams(filterData, params)
|
|
3748
3742
|
|
|
3749
|
-
|
|
3743
|
+
Gets filters from the given params.
|
|
3744
|
+
The validation to filter the stored filter is depending on:
|
|
3745
|
+
- Column
|
|
3746
|
+
- Qrvey ID
|
|
3747
|
+
- Scope type
|
|
3748
|
+
- Scope ID
|
|
3749
|
+
- Panel ID
|
|
3750
|
+
- Validator type
|
|
3751
|
+
- Property type
|
|
3752
|
+
- Enabled flags
|
|
3750
3753
|
|
|
3751
3754
|
|
|
3752
3755
|
|
|
@@ -3755,7 +3758,8 @@ Validates if the given validator is a In type
|
|
|
3755
3758
|
|
|
3756
3759
|
| Name | Type | Description | |
|
|
3757
3760
|
| ---- | ---- | ----------- | -------- |
|
|
3758
|
-
|
|
|
3761
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3762
|
+
| params | | given parameters to validate the dataset | |
|
|
3759
3763
|
|
|
3760
3764
|
|
|
3761
3765
|
|
|
@@ -3763,17 +3767,17 @@ Validates if the given validator is a In type
|
|
|
3763
3767
|
##### Returns
|
|
3764
3768
|
|
|
3765
3769
|
|
|
3766
|
-
-
|
|
3770
|
+
- a new Filter object structure
|
|
3767
3771
|
|
|
3768
3772
|
|
|
3769
3773
|
|
|
3770
3774
|
|
|
3771
|
-
### dist/filters/helpers/common/
|
|
3775
|
+
### dist/filters/helpers/common/getFiltersByScopes.js
|
|
3772
3776
|
|
|
3773
3777
|
|
|
3774
|
-
####
|
|
3778
|
+
#### getFiltersByScopes(filterData, scopes)
|
|
3775
3779
|
|
|
3776
|
-
|
|
3780
|
+
Filters and gets a Filter Data by the given scopes
|
|
3777
3781
|
|
|
3778
3782
|
|
|
3779
3783
|
|
|
@@ -3782,7 +3786,8 @@ Checks if the given validator is a Null type.
|
|
|
3782
3786
|
|
|
3783
3787
|
| Name | Type | Description | |
|
|
3784
3788
|
| ---- | ---- | ----------- | -------- |
|
|
3785
|
-
|
|
|
3789
|
+
| filterData | | The Filter Data | |
|
|
3790
|
+
| scopes | | collection of scopes types | |
|
|
3786
3791
|
|
|
3787
3792
|
|
|
3788
3793
|
|
|
@@ -3790,17 +3795,17 @@ Checks if the given validator is a Null type.
|
|
|
3790
3795
|
##### Returns
|
|
3791
3796
|
|
|
3792
3797
|
|
|
3793
|
-
-
|
|
3798
|
+
- The new Filter Data
|
|
3794
3799
|
|
|
3795
3800
|
|
|
3796
3801
|
|
|
3797
3802
|
|
|
3798
|
-
### dist/filters/helpers/common/
|
|
3803
|
+
### dist/filters/helpers/common/getFiltersByScopesIds.js
|
|
3799
3804
|
|
|
3800
3805
|
|
|
3801
|
-
####
|
|
3806
|
+
#### getFiltersByScopesIds(filterData, scopes)
|
|
3802
3807
|
|
|
3803
|
-
|
|
3808
|
+
Gets filters from Filter Data by Scopes/Scope IDs.
|
|
3804
3809
|
|
|
3805
3810
|
|
|
3806
3811
|
|
|
@@ -3809,7 +3814,8 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
3809
3814
|
|
|
3810
3815
|
| Name | Type | Description | |
|
|
3811
3816
|
| ---- | ---- | ----------- | -------- |
|
|
3812
|
-
|
|
|
3817
|
+
| filterData | | The filter data | |
|
|
3818
|
+
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3813
3819
|
|
|
3814
3820
|
|
|
3815
3821
|
|
|
@@ -3817,17 +3823,17 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
3817
3823
|
##### Returns
|
|
3818
3824
|
|
|
3819
3825
|
|
|
3820
|
-
-
|
|
3826
|
+
- a new Filter Data
|
|
3821
3827
|
|
|
3822
3828
|
|
|
3823
3829
|
|
|
3824
3830
|
|
|
3825
|
-
### dist/filters/helpers/common/
|
|
3831
|
+
### dist/filters/helpers/common/getFiltersByVisibility.js
|
|
3826
3832
|
|
|
3827
3833
|
|
|
3828
|
-
####
|
|
3834
|
+
#### getFiltersByVisibility(filterData, scopes)
|
|
3829
3835
|
|
|
3830
|
-
|
|
3836
|
+
Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
3831
3837
|
|
|
3832
3838
|
|
|
3833
3839
|
|
|
@@ -3836,7 +3842,8 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
3836
3842
|
|
|
3837
3843
|
| Name | Type | Description | |
|
|
3838
3844
|
| ---- | ---- | ----------- | -------- |
|
|
3839
|
-
|
|
|
3845
|
+
| filterData | | a Filter Data or UI Filter Data | |
|
|
3846
|
+
| scopes | | a Scopes/Scope IDs array | |
|
|
3840
3847
|
|
|
3841
3848
|
|
|
3842
3849
|
|
|
@@ -3844,17 +3851,17 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
3844
3851
|
##### Returns
|
|
3845
3852
|
|
|
3846
3853
|
|
|
3847
|
-
-
|
|
3854
|
+
- a new Filter Data
|
|
3848
3855
|
|
|
3849
3856
|
|
|
3850
3857
|
|
|
3851
3858
|
|
|
3852
|
-
### dist/filters/helpers/common/
|
|
3859
|
+
### dist/filters/helpers/common/getMergeFiltersSettings.js
|
|
3853
3860
|
|
|
3854
3861
|
|
|
3855
|
-
####
|
|
3862
|
+
#### getMergeFiltersSettings(settings)
|
|
3856
3863
|
|
|
3857
|
-
|
|
3864
|
+
Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
|
|
3858
3865
|
|
|
3859
3866
|
|
|
3860
3867
|
|
|
@@ -3863,9 +3870,7 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
3863
3870
|
|
|
3864
3871
|
| Name | Type | Description | |
|
|
3865
3872
|
| ---- | ---- | ----------- | -------- |
|
|
3866
|
-
|
|
|
3867
|
-
| filterData2 | | the filter data to be merged | |
|
|
3868
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3873
|
+
| settings | | an object to the MergeFilters settings | |
|
|
3869
3874
|
|
|
3870
3875
|
|
|
3871
3876
|
|
|
@@ -3873,13 +3878,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
3873
3878
|
##### Returns
|
|
3874
3879
|
|
|
3875
3880
|
|
|
3876
|
-
- a new
|
|
3881
|
+
- a new MergeFilters settings object.
|
|
3877
3882
|
|
|
3878
3883
|
|
|
3879
3884
|
|
|
3880
|
-
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
3881
3885
|
|
|
3882
|
-
|
|
3886
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3890
|
+
|
|
3891
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3883
3892
|
|
|
3884
3893
|
|
|
3885
3894
|
|
|
@@ -3888,9 +3897,7 @@ Gets a new scope structure array by merging two scope structures
|
|
|
3888
3897
|
|
|
3889
3898
|
| Name | Type | Description | |
|
|
3890
3899
|
| ---- | ---- | ----------- | -------- |
|
|
3891
|
-
|
|
|
3892
|
-
| scopes2 | | the scope to be merged | |
|
|
3893
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3900
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3894
3901
|
|
|
3895
3902
|
|
|
3896
3903
|
|
|
@@ -3898,13 +3905,17 @@ Gets a new scope structure array by merging two scope structures
|
|
|
3898
3905
|
##### Returns
|
|
3899
3906
|
|
|
3900
3907
|
|
|
3901
|
-
- a new
|
|
3908
|
+
- a new ParamsToGetFilter settings object.
|
|
3902
3909
|
|
|
3903
3910
|
|
|
3904
3911
|
|
|
3905
|
-
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
3906
3912
|
|
|
3907
|
-
|
|
3913
|
+
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3917
|
+
|
|
3918
|
+
Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
3908
3919
|
|
|
3909
3920
|
|
|
3910
3921
|
|
|
@@ -3913,9 +3924,8 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
3913
3924
|
|
|
3914
3925
|
| Name | Type | Description | |
|
|
3915
3926
|
| ---- | ---- | ----------- | -------- |
|
|
3916
|
-
|
|
|
3917
|
-
|
|
|
3918
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3927
|
+
| filterData | | the filter data or the UI filter data. | |
|
|
3928
|
+
| qrveyid | | The Qrvey ID | |
|
|
3919
3929
|
|
|
3920
3930
|
|
|
3921
3931
|
|
|
@@ -3923,13 +3933,17 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
3923
3933
|
##### Returns
|
|
3924
3934
|
|
|
3925
3935
|
|
|
3926
|
-
-
|
|
3936
|
+
- true: the filter data has filters by the Qrvey ID
|
|
3927
3937
|
|
|
3928
3938
|
|
|
3929
3939
|
|
|
3930
|
-
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
3931
3940
|
|
|
3932
|
-
|
|
3941
|
+
### dist/filters/helpers/common/isBetweenValidator.js
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
#### isBetweenValidator(validator)
|
|
3945
|
+
|
|
3946
|
+
Validates if the given validator is a Between type
|
|
3933
3947
|
|
|
3934
3948
|
|
|
3935
3949
|
|
|
@@ -3938,9 +3952,7 @@ Gets a new filter structure array by merging two filter structures
|
|
|
3938
3952
|
|
|
3939
3953
|
| Name | Type | Description | |
|
|
3940
3954
|
| ---- | ---- | ----------- | -------- |
|
|
3941
|
-
|
|
|
3942
|
-
| filters2 | | the filter to be merged | |
|
|
3943
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3955
|
+
| validator | | The validator | |
|
|
3944
3956
|
|
|
3945
3957
|
|
|
3946
3958
|
|
|
@@ -3948,13 +3960,17 @@ Gets a new filter structure array by merging two filter structures
|
|
|
3948
3960
|
##### Returns
|
|
3949
3961
|
|
|
3950
3962
|
|
|
3951
|
-
- a
|
|
3963
|
+
- true: it is a between validator; false: it is not a between validator
|
|
3952
3964
|
|
|
3953
3965
|
|
|
3954
3966
|
|
|
3955
|
-
#### mergeValues(filter1, filter2, overwrite)
|
|
3956
3967
|
|
|
3957
|
-
|
|
3968
|
+
### dist/filters/helpers/common/isDateDistinctProperty.js
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
#### isDateDistinctProperty(column, property)
|
|
3972
|
+
|
|
3973
|
+
Determines if the filter column and property is a distinct group dates type
|
|
3958
3974
|
|
|
3959
3975
|
|
|
3960
3976
|
|
|
@@ -3963,9 +3979,8 @@ Gets a new value structure array by merging two value structures
|
|
|
3963
3979
|
|
|
3964
3980
|
| Name | Type | Description | |
|
|
3965
3981
|
| ---- | ---- | ----------- | -------- |
|
|
3966
|
-
|
|
|
3967
|
-
|
|
|
3968
|
-
| overwrite | | Flag to overwrite or not the filter values | |
|
|
3982
|
+
| column | | The filter column | |
|
|
3983
|
+
| property | | The filter property | |
|
|
3969
3984
|
|
|
3970
3985
|
|
|
3971
3986
|
|
|
@@ -3973,17 +3988,17 @@ Gets a new value structure array by merging two value structures
|
|
|
3973
3988
|
##### Returns
|
|
3974
3989
|
|
|
3975
3990
|
|
|
3976
|
-
-
|
|
3991
|
+
- True if the given property is included from distinct group dates type
|
|
3977
3992
|
|
|
3978
3993
|
|
|
3979
3994
|
|
|
3980
3995
|
|
|
3981
|
-
### dist/filters/helpers/common/
|
|
3996
|
+
### dist/filters/helpers/common/isInValidator.js
|
|
3982
3997
|
|
|
3983
3998
|
|
|
3984
|
-
####
|
|
3999
|
+
#### isInValidator(validator)
|
|
3985
4000
|
|
|
3986
|
-
|
|
4001
|
+
Validates if the given validator is a In type
|
|
3987
4002
|
|
|
3988
4003
|
|
|
3989
4004
|
|
|
@@ -3992,10 +4007,7 @@ Resolves the conditions by given params
|
|
|
3992
4007
|
|
|
3993
4008
|
| Name | Type | Description | |
|
|
3994
4009
|
| ---- | ---- | ----------- | -------- |
|
|
3995
|
-
|
|
|
3996
|
-
| params | | given parameters to validate the dataset | |
|
|
3997
|
-
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
3998
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4010
|
+
| validator | | The validator | |
|
|
3999
4011
|
|
|
4000
4012
|
|
|
4001
4013
|
|
|
@@ -4003,17 +4015,17 @@ Resolves the conditions by given params
|
|
|
4003
4015
|
##### Returns
|
|
4004
4016
|
|
|
4005
4017
|
|
|
4006
|
-
- true:
|
|
4018
|
+
- true: it is a In validator; false: it is not a In validator
|
|
4007
4019
|
|
|
4008
4020
|
|
|
4009
4021
|
|
|
4010
4022
|
|
|
4011
|
-
### dist/filters/helpers/common/
|
|
4023
|
+
### dist/filters/helpers/common/isNullValidator.js
|
|
4012
4024
|
|
|
4013
4025
|
|
|
4014
|
-
####
|
|
4026
|
+
#### isNullValidator(validator)
|
|
4015
4027
|
|
|
4016
|
-
|
|
4028
|
+
Checks if the given validator is a Null type.
|
|
4017
4029
|
|
|
4018
4030
|
|
|
4019
4031
|
|
|
@@ -4022,10 +4034,7 @@ Resolves the conditions by given params
|
|
|
4022
4034
|
|
|
4023
4035
|
| Name | Type | Description | |
|
|
4024
4036
|
| ---- | ---- | ----------- | -------- |
|
|
4025
|
-
|
|
|
4026
|
-
| params | | given parameters to validate the filter | |
|
|
4027
|
-
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4028
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4037
|
+
| validator | | The Filter Validator | |
|
|
4029
4038
|
|
|
4030
4039
|
|
|
4031
4040
|
|
|
@@ -4033,17 +4042,17 @@ Resolves the conditions by given params
|
|
|
4033
4042
|
##### Returns
|
|
4034
4043
|
|
|
4035
4044
|
|
|
4036
|
-
-
|
|
4045
|
+
- True: It is a Null Validator; False: It is not a Null Validator.
|
|
4037
4046
|
|
|
4038
4047
|
|
|
4039
4048
|
|
|
4040
4049
|
|
|
4041
|
-
### dist/filters/helpers/common/
|
|
4050
|
+
### dist/filters/helpers/common/isRangeValidator.js
|
|
4042
4051
|
|
|
4043
4052
|
|
|
4044
|
-
####
|
|
4053
|
+
#### isRangeValidator(validator)
|
|
4045
4054
|
|
|
4046
|
-
|
|
4055
|
+
Validates if the given validator is a Range type. Range type means the value has min and max values to filter
|
|
4047
4056
|
|
|
4048
4057
|
|
|
4049
4058
|
|
|
@@ -4052,10 +4061,7 @@ Resolves the conditions by given params
|
|
|
4052
4061
|
|
|
4053
4062
|
| Name | Type | Description | |
|
|
4054
4063
|
| ---- | ---- | ----------- | -------- |
|
|
4055
|
-
|
|
|
4056
|
-
| params | | given parameters to validate the filter | |
|
|
4057
|
-
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4058
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4064
|
+
| validator | | The filter validator | |
|
|
4059
4065
|
|
|
4060
4066
|
|
|
4061
4067
|
|
|
@@ -4063,17 +4069,17 @@ Resolves the conditions by given params
|
|
|
4063
4069
|
##### Returns
|
|
4064
4070
|
|
|
4065
4071
|
|
|
4066
|
-
- true:
|
|
4072
|
+
- true: it is a range validator
|
|
4067
4073
|
|
|
4068
4074
|
|
|
4069
4075
|
|
|
4070
4076
|
|
|
4071
|
-
### dist/filters/helpers/
|
|
4077
|
+
### dist/filters/helpers/common/isRegularValidator.js
|
|
4072
4078
|
|
|
4073
4079
|
|
|
4074
|
-
####
|
|
4080
|
+
#### isRegularValidator(validator)
|
|
4075
4081
|
|
|
4076
|
-
|
|
4082
|
+
Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
|
|
4077
4083
|
|
|
4078
4084
|
|
|
4079
4085
|
|
|
@@ -4082,7 +4088,7 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
4082
4088
|
|
|
4083
4089
|
| Name | Type | Description | |
|
|
4084
4090
|
| ---- | ---- | ----------- | -------- |
|
|
4085
|
-
|
|
|
4091
|
+
| validator | | The filter validator | |
|
|
4086
4092
|
|
|
4087
4093
|
|
|
4088
4094
|
|
|
@@ -4090,17 +4096,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
4090
4096
|
##### Returns
|
|
4091
4097
|
|
|
4092
4098
|
|
|
4093
|
-
-
|
|
4099
|
+
- true: it is a range validator
|
|
4094
4100
|
|
|
4095
4101
|
|
|
4096
4102
|
|
|
4097
4103
|
|
|
4098
|
-
### dist/filters/helpers/
|
|
4104
|
+
### dist/filters/helpers/common/mergeFilters.js
|
|
4099
4105
|
|
|
4100
4106
|
|
|
4101
|
-
####
|
|
4107
|
+
#### mergeFilters(filterData1, filterData2, overwriteValues)
|
|
4102
4108
|
|
|
4103
|
-
|
|
4109
|
+
Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
|
|
4104
4110
|
|
|
4105
4111
|
|
|
4106
4112
|
|
|
@@ -4109,8 +4115,9 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
4109
4115
|
|
|
4110
4116
|
| Name | Type | Description | |
|
|
4111
4117
|
| ---- | ---- | ----------- | -------- |
|
|
4112
|
-
|
|
|
4113
|
-
|
|
|
4118
|
+
| filterData1 | | The target filter data | |
|
|
4119
|
+
| filterData2 | | the filter data to be merged | |
|
|
4120
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4114
4121
|
|
|
4115
4122
|
|
|
4116
4123
|
|
|
@@ -4118,17 +4125,13 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
4118
4125
|
##### Returns
|
|
4119
4126
|
|
|
4120
4127
|
|
|
4121
|
-
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4128
|
+
- a new filter data structure
|
|
4125
4129
|
|
|
4126
|
-
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
4127
4130
|
|
|
4128
4131
|
|
|
4129
|
-
####
|
|
4132
|
+
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
4130
4133
|
|
|
4131
|
-
Gets
|
|
4134
|
+
Gets a new scope structure array by merging two scope structures
|
|
4132
4135
|
|
|
4133
4136
|
|
|
4134
4137
|
|
|
@@ -4137,7 +4140,9 @@ Gets the label of the filter property
|
|
|
4137
4140
|
|
|
4138
4141
|
| Name | Type | Description | |
|
|
4139
4142
|
| ---- | ---- | ----------- | -------- |
|
|
4140
|
-
|
|
|
4143
|
+
| scopes1 | | the target scope structure | |
|
|
4144
|
+
| scopes2 | | the scope to be merged | |
|
|
4145
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4141
4146
|
|
|
4142
4147
|
|
|
4143
4148
|
|
|
@@ -4145,17 +4150,13 @@ Gets the label of the filter property
|
|
|
4145
4150
|
##### Returns
|
|
4146
4151
|
|
|
4147
4152
|
|
|
4148
|
-
- a
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4153
|
+
- a new scope structure array
|
|
4152
4154
|
|
|
4153
|
-
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
4154
4155
|
|
|
4155
4156
|
|
|
4156
|
-
####
|
|
4157
|
+
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
4157
4158
|
|
|
4158
|
-
Gets
|
|
4159
|
+
Gets a new dataset structure array by merging two dataset structures
|
|
4159
4160
|
|
|
4160
4161
|
|
|
4161
4162
|
|
|
@@ -4164,8 +4165,9 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
4164
4165
|
|
|
4165
4166
|
| Name | Type | Description | |
|
|
4166
4167
|
| ---- | ---- | ----------- | -------- |
|
|
4167
|
-
|
|
|
4168
|
-
|
|
|
4168
|
+
| datasets1 | | the target dataset structure | |
|
|
4169
|
+
| datasets2 | | the dataset to be merged | |
|
|
4170
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4169
4171
|
|
|
4170
4172
|
|
|
4171
4173
|
|
|
@@ -4173,27 +4175,24 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
4173
4175
|
##### Returns
|
|
4174
4176
|
|
|
4175
4177
|
|
|
4176
|
-
-
|
|
4178
|
+
- a new dataset structure array
|
|
4177
4179
|
|
|
4178
4180
|
|
|
4179
4181
|
|
|
4182
|
+
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
4180
4183
|
|
|
4181
|
-
|
|
4184
|
+
Gets a new filter structure array by merging two filter structures
|
|
4182
4185
|
|
|
4183
4186
|
|
|
4184
|
-
#### getUIFlatFilterByParams()
|
|
4185
4187
|
|
|
4186
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4187
|
-
The validation to filter the stored filter is depending on:
|
|
4188
|
-
- Column
|
|
4189
|
-
- Qrvey ID,
|
|
4190
|
-
- Scope type
|
|
4191
|
-
- Scope ID
|
|
4192
|
-
- Panel ID
|
|
4193
|
-
- Validator type
|
|
4194
|
-
- Property type
|
|
4195
4188
|
|
|
4189
|
+
##### Parameters
|
|
4196
4190
|
|
|
4191
|
+
| Name | Type | Description | |
|
|
4192
|
+
| ---- | ---- | ----------- | -------- |
|
|
4193
|
+
| filters1 | | the target filter structure | |
|
|
4194
|
+
| filters2 | | the filter to be merged | |
|
|
4195
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4197
4196
|
|
|
4198
4197
|
|
|
4199
4198
|
|
|
@@ -4201,28 +4200,24 @@ The validation to filter the stored filter is depending on:
|
|
|
4201
4200
|
##### Returns
|
|
4202
4201
|
|
|
4203
4202
|
|
|
4204
|
-
-
|
|
4203
|
+
- a new filter structure array
|
|
4205
4204
|
|
|
4206
4205
|
|
|
4207
4206
|
|
|
4207
|
+
#### mergeValues(filter1, filter2, overwrite)
|
|
4208
4208
|
|
|
4209
|
-
|
|
4209
|
+
Gets a new value structure array by merging two value structures
|
|
4210
4210
|
|
|
4211
4211
|
|
|
4212
|
-
#### getUIFlatFiltersByParams()
|
|
4213
4212
|
|
|
4214
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4215
|
-
The validation to filter the stored filter is depending on:
|
|
4216
|
-
- Column
|
|
4217
|
-
- Qrvey ID,
|
|
4218
|
-
- Scope type
|
|
4219
|
-
- Scope ID
|
|
4220
|
-
- Panel ID
|
|
4221
|
-
- Validator type
|
|
4222
|
-
- Property type
|
|
4223
|
-
- Enabled flags
|
|
4224
4213
|
|
|
4214
|
+
##### Parameters
|
|
4225
4215
|
|
|
4216
|
+
| Name | Type | Description | |
|
|
4217
|
+
| ---- | ---- | ----------- | -------- |
|
|
4218
|
+
| filter1 | | the target filter structure | |
|
|
4219
|
+
| filter2 | | the filter to be used to merge the values | |
|
|
4220
|
+
| overwrite | | Flag to overwrite or not the filter values | |
|
|
4226
4221
|
|
|
4227
4222
|
|
|
4228
4223
|
|
|
@@ -4230,17 +4225,17 @@ The validation to filter the stored filter is depending on:
|
|
|
4230
4225
|
##### Returns
|
|
4231
4226
|
|
|
4232
4227
|
|
|
4233
|
-
-
|
|
4234
|
-
|
|
4228
|
+
- a new value structure array
|
|
4235
4229
|
|
|
4236
4230
|
|
|
4237
4231
|
|
|
4238
|
-
### dist/filters/helpers/ui/getUIValues.js
|
|
4239
4232
|
|
|
4233
|
+
### dist/filters/helpers/common/resolveDatasetConditions.js
|
|
4240
4234
|
|
|
4241
|
-
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
4242
4235
|
|
|
4236
|
+
#### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
4243
4237
|
|
|
4238
|
+
Resolves the conditions by given params
|
|
4244
4239
|
|
|
4245
4240
|
|
|
4246
4241
|
|
|
@@ -4249,9 +4244,10 @@ The validation to filter the stored filter is depending on:
|
|
|
4249
4244
|
|
|
4250
4245
|
| Name | Type | Description | |
|
|
4251
4246
|
| ---- | ---- | ----------- | -------- |
|
|
4252
|
-
| filter | |
|
|
4253
|
-
|
|
|
4254
|
-
|
|
|
4247
|
+
| filter | | The dataset structure | |
|
|
4248
|
+
| params | | given parameters to validate the dataset | |
|
|
4249
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4250
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4255
4251
|
|
|
4256
4252
|
|
|
4257
4253
|
|
|
@@ -4259,17 +4255,17 @@ The validation to filter the stored filter is depending on:
|
|
|
4259
4255
|
##### Returns
|
|
4260
4256
|
|
|
4261
4257
|
|
|
4262
|
-
-
|
|
4258
|
+
- true: the condition is satisfied
|
|
4263
4259
|
|
|
4264
4260
|
|
|
4265
4261
|
|
|
4266
4262
|
|
|
4267
|
-
### dist/filters/helpers/
|
|
4263
|
+
### dist/filters/helpers/common/resolveFilterConditions.js
|
|
4268
4264
|
|
|
4269
4265
|
|
|
4270
|
-
####
|
|
4266
|
+
#### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
4271
4267
|
|
|
4272
|
-
|
|
4268
|
+
Resolves the conditions by given params
|
|
4273
4269
|
|
|
4274
4270
|
|
|
4275
4271
|
|
|
@@ -4278,8 +4274,10 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
4278
4274
|
|
|
4279
4275
|
| Name | Type | Description | |
|
|
4280
4276
|
| ---- | ---- | ----------- | -------- |
|
|
4281
|
-
|
|
|
4282
|
-
|
|
|
4277
|
+
| filter | | The filter | |
|
|
4278
|
+
| params | | given parameters to validate the filter | |
|
|
4279
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4280
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4283
4281
|
|
|
4284
4282
|
|
|
4285
4283
|
|
|
@@ -4287,17 +4285,17 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
4287
4285
|
##### Returns
|
|
4288
4286
|
|
|
4289
4287
|
|
|
4290
|
-
-
|
|
4288
|
+
- true: the condition is satisfied
|
|
4291
4289
|
|
|
4292
4290
|
|
|
4293
4291
|
|
|
4294
4292
|
|
|
4295
|
-
### dist/filters/helpers/
|
|
4293
|
+
### dist/filters/helpers/common/resolveScopeConditions.js
|
|
4296
4294
|
|
|
4297
4295
|
|
|
4298
|
-
####
|
|
4296
|
+
#### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
4299
4297
|
|
|
4300
|
-
Resolves conditions
|
|
4298
|
+
Resolves the conditions by given params
|
|
4301
4299
|
|
|
4302
4300
|
|
|
4303
4301
|
|
|
@@ -4306,8 +4304,10 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
4306
4304
|
|
|
4307
4305
|
| Name | Type | Description | |
|
|
4308
4306
|
| ---- | ---- | ----------- | -------- |
|
|
4309
|
-
| filter | |
|
|
4310
|
-
| params | |
|
|
4307
|
+
| filter | | The filter scope structure | |
|
|
4308
|
+
| params | | given parameters to validate the filter | |
|
|
4309
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4310
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4311
4311
|
|
|
4312
4312
|
|
|
4313
4313
|
|
|
@@ -4315,7 +4315,7 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
4315
4315
|
##### Returns
|
|
4316
4316
|
|
|
4317
4317
|
|
|
4318
|
-
- true: the
|
|
4318
|
+
- true: the condition is satisfied
|
|
4319
4319
|
|
|
4320
4320
|
|
|
4321
4321
|
|