@qrvey/utils 1.2.9-15 → 1.2.9-16
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 +251 -148
- package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/cjs/filters/helpers/ui/index.d.ts +1 -0
- package/dist/cjs/filters/helpers/ui/index.js +1 -0
- package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/cjs/filters/helpers/ui/transformFilterValues.js +22 -0
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +1 -0
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +6 -0
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +2 -0
- package/dist/cjs/filters/interfaces/ui/index.d.ts +3 -2
- package/dist/cjs/filters/interfaces/ui/index.js +3 -2
- package/dist/cjs/format/definition.d.ts +17 -0
- package/dist/cjs/format/definition.js +31 -1
- package/dist/cjs/format/format.d.ts +2 -1
- package/dist/cjs/format/format.js +8 -5
- package/dist/cjs/format/index.d.ts +1 -0
- package/dist/cjs/format/index.js +1 -0
- package/dist/cjs/format/localization.d.ts +3 -0
- package/dist/cjs/format/localization.js +56 -0
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
- package/dist/cjs/interfaces/format/index.d.ts +3 -0
- package/dist/cjs/interfaces/format/index.js +15 -0
- package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +1 -0
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
- package/dist/cjs/qrvey/helpers/index.d.ts +2 -0
- package/dist/cjs/qrvey/helpers/index.js +2 -0
- package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/transformValue.js +45 -0
- package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
- package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.js +2 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +10 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
- package/dist/cjs/qrvey/interfaces/index.d.ts +2 -0
- package/dist/cjs/qrvey/interfaces/index.js +2 -0
- package/dist/cjs/services/api/getDatasetColumns.api.js +1 -0
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/filters/helpers/ui/index.d.ts +1 -0
- package/dist/filters/helpers/ui/index.js +1 -0
- package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/filters/helpers/ui/transformFilterValues.js +18 -0
- package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +1 -0
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +6 -0
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
- package/dist/filters/interfaces/ui/index.d.ts +3 -2
- package/dist/filters/interfaces/ui/index.js +3 -2
- package/dist/format/definition.d.ts +17 -0
- package/dist/format/definition.js +30 -0
- package/dist/format/format.d.ts +2 -1
- package/dist/format/format.js +6 -3
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -0
- package/dist/format/localization.d.ts +3 -0
- package/dist/format/localization.js +51 -0
- package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
- package/dist/interfaces/format/index.d.ts +3 -0
- package/dist/interfaces/format/index.js +3 -0
- package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
- package/dist/qrvey/helpers/index.d.ts +2 -0
- package/dist/qrvey/helpers/index.js +2 -0
- package/dist/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/qrvey/helpers/transformValue.js +41 -0
- package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
- package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.js +1 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +10 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
- package/dist/qrvey/interfaces/index.d.ts +2 -0
- package/dist/qrvey/interfaces/index.js +2 -0
- package/dist/services/api/getDatasetColumns.api.js +1 -0
- package/package.json +1 -1
- package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
- package/src/filters/helpers/ui/index.ts +1 -0
- package/src/filters/helpers/ui/transformFilterValues.ts +29 -0
- package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +2 -1
- package/src/filters/interfaces/panel/IFilterPanelConfig.ts +1 -0
- package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +7 -0
- package/src/filters/interfaces/ui/index.ts +3 -2
- package/src/format/definition.ts +45 -0
- package/src/format/format.ts +19 -15
- package/src/format/index.ts +1 -0
- package/src/format/localization.ts +52 -0
- package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
- package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
- package/src/interfaces/format/IFormatOutputFormat.Interface.ts +9 -0
- package/src/interfaces/format/index.ts +3 -0
- package/src/interfaces/general/IGeneralWidgetConfig.ts +1 -0
- package/src/interfaces/index.ts +1 -0
- package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
- package/src/qrvey/helpers/index.ts +2 -0
- package/src/qrvey/helpers/transformValue.ts +46 -0
- package/src/qrvey/interfaces/IGetValueWithSuffixesSettings.ts +12 -0
- package/src/qrvey/interfaces/ITransformValueSettings.ts +12 -0
- package/src/qrvey/interfaces/index.ts +2 -0
- package/src/services/api/getDatasetColumns.api.ts +1 -0
- package/test/format.test.js +11 -11
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-16*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -1538,26 +1538,6 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1538
1538
|
|
|
1539
1539
|
|
|
1540
1540
|
|
|
1541
|
-
### dist/filters/classes/FilterInputErrorHandler.js
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
#### new FilterInputErrorHandler()
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
##### Returns
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
- `Void`
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
1541
|
### dist/filters/helpers/applyHierarchyForAggFilters.js
|
|
1562
1542
|
|
|
1563
1543
|
|
|
@@ -1669,6 +1649,26 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1669
1649
|
|
|
1670
1650
|
|
|
1671
1651
|
|
|
1652
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
#### new FilterInputErrorHandler()
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
##### Returns
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
- `Void`
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
1672
|
### dist/general/array/delete.js
|
|
1673
1673
|
|
|
1674
1674
|
|
|
@@ -1868,6 +1868,33 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1868
1868
|
|
|
1869
1869
|
|
|
1870
1870
|
|
|
1871
|
+
### dist/general/string/capitalize.js
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
#### capitalize(text)
|
|
1875
|
+
|
|
1876
|
+
Upper case the first letter of a given text
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
##### Parameters
|
|
1882
|
+
|
|
1883
|
+
| Name | Type | Description | |
|
|
1884
|
+
| ---- | ---- | ----------- | -------- |
|
|
1885
|
+
| text | `String` | | |
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
##### Returns
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
- `String` a capitalized text
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1871
1898
|
### dist/general/mix/compareDeep.js
|
|
1872
1899
|
|
|
1873
1900
|
|
|
@@ -2565,12 +2592,12 @@ serialize object to url param
|
|
|
2565
2592
|
|
|
2566
2593
|
|
|
2567
2594
|
|
|
2568
|
-
### dist/
|
|
2595
|
+
### dist/qrvey/helpers/getColumnsLabel.js
|
|
2569
2596
|
|
|
2570
2597
|
|
|
2571
|
-
####
|
|
2598
|
+
#### getColumnLabels(column)
|
|
2572
2599
|
|
|
2573
|
-
|
|
2600
|
+
Get an string of the properties of the given column.
|
|
2574
2601
|
|
|
2575
2602
|
|
|
2576
2603
|
|
|
@@ -2579,7 +2606,7 @@ Upper case the first letter of a given text
|
|
|
2579
2606
|
|
|
2580
2607
|
| Name | Type | Description | |
|
|
2581
2608
|
| ---- | ---- | ----------- | -------- |
|
|
2582
|
-
|
|
|
2609
|
+
| column | | The column | |
|
|
2583
2610
|
|
|
2584
2611
|
|
|
2585
2612
|
|
|
@@ -2587,17 +2614,18 @@ Upper case the first letter of a given text
|
|
|
2587
2614
|
##### Returns
|
|
2588
2615
|
|
|
2589
2616
|
|
|
2590
|
-
-
|
|
2617
|
+
- an string with the property, aggregate or calculation label.
|
|
2591
2618
|
|
|
2592
2619
|
|
|
2593
2620
|
|
|
2594
2621
|
|
|
2595
|
-
### dist/qrvey/helpers/
|
|
2622
|
+
### dist/qrvey/helpers/getValueWithSuffixes.js
|
|
2596
2623
|
|
|
2597
2624
|
|
|
2598
|
-
####
|
|
2625
|
+
#### getValueWithSuffixes(value, suffixes)
|
|
2599
2626
|
|
|
2600
|
-
Get
|
|
2627
|
+
Get a string value with suffixes if available.
|
|
2628
|
+
Add suffix into the value string. Prioritized for numeric values.
|
|
2601
2629
|
|
|
2602
2630
|
|
|
2603
2631
|
|
|
@@ -2606,7 +2634,8 @@ Get an string of the properties of the given column.
|
|
|
2606
2634
|
|
|
2607
2635
|
| Name | Type | Description | |
|
|
2608
2636
|
| ---- | ---- | ----------- | -------- |
|
|
2609
|
-
|
|
|
2637
|
+
| value | | a number or string | |
|
|
2638
|
+
| suffixes | | An object with singular or plural suffix string. | |
|
|
2610
2639
|
|
|
2611
2640
|
|
|
2612
2641
|
|
|
@@ -2614,17 +2643,17 @@ Get an string of the properties of the given column.
|
|
|
2614
2643
|
##### Returns
|
|
2615
2644
|
|
|
2616
2645
|
|
|
2617
|
-
-
|
|
2646
|
+
- a string value with suffix
|
|
2618
2647
|
|
|
2619
2648
|
|
|
2620
2649
|
|
|
2621
2650
|
|
|
2622
|
-
### dist/
|
|
2651
|
+
### dist/qrvey/helpers/transformValue.js
|
|
2623
2652
|
|
|
2624
2653
|
|
|
2625
|
-
####
|
|
2654
|
+
#### transformValue(value, settings)
|
|
2626
2655
|
|
|
2627
|
-
|
|
2656
|
+
Transforms a value depending of localization/globalization and extras settings.
|
|
2628
2657
|
|
|
2629
2658
|
|
|
2630
2659
|
|
|
@@ -2633,8 +2662,8 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2633
2662
|
|
|
2634
2663
|
| Name | Type | Description | |
|
|
2635
2664
|
| ---- | ---- | ----------- | -------- |
|
|
2636
|
-
|
|
|
2637
|
-
|
|
|
2665
|
+
| value | | A value to transform | |
|
|
2666
|
+
| settings | | The settings of the transformValue function | |
|
|
2638
2667
|
|
|
2639
2668
|
|
|
2640
2669
|
|
|
@@ -2642,17 +2671,36 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2642
2671
|
##### Returns
|
|
2643
2672
|
|
|
2644
2673
|
|
|
2645
|
-
-
|
|
2674
|
+
- A transformed value
|
|
2646
2675
|
|
|
2647
2676
|
|
|
2648
2677
|
|
|
2678
|
+
#### getOutputFormat(settings)
|
|
2649
2679
|
|
|
2650
|
-
|
|
2680
|
+
Gets the outputformat settings
|
|
2651
2681
|
|
|
2652
2682
|
|
|
2653
|
-
#### getAllQrveys(config, params)
|
|
2654
2683
|
|
|
2655
|
-
|
|
2684
|
+
|
|
2685
|
+
##### Parameters
|
|
2686
|
+
|
|
2687
|
+
| Name | Type | Description | |
|
|
2688
|
+
| ---- | ---- | ----------- | -------- |
|
|
2689
|
+
| settings | | The settings of the transformValue function | |
|
|
2690
|
+
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
##### Returns
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
- the outputformat settings
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
#### getFormatConfig(settings)
|
|
2702
|
+
|
|
2703
|
+
Gets the format config
|
|
2656
2704
|
|
|
2657
2705
|
|
|
2658
2706
|
|
|
@@ -2661,8 +2709,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2661
2709
|
|
|
2662
2710
|
| Name | Type | Description | |
|
|
2663
2711
|
| ---- | ---- | ----------- | -------- |
|
|
2664
|
-
|
|
|
2665
|
-
| params | | Object for getting precise data | |
|
|
2712
|
+
| settings | | The settings of the transformValue function | |
|
|
2666
2713
|
|
|
2667
2714
|
|
|
2668
2715
|
|
|
@@ -2670,17 +2717,17 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2670
2717
|
##### Returns
|
|
2671
2718
|
|
|
2672
2719
|
|
|
2673
|
-
-
|
|
2720
|
+
- the format config
|
|
2674
2721
|
|
|
2675
2722
|
|
|
2676
2723
|
|
|
2677
2724
|
|
|
2678
|
-
### dist/services/api/
|
|
2725
|
+
### dist/services/api/getAllDatasets.api.js
|
|
2679
2726
|
|
|
2680
2727
|
|
|
2681
|
-
####
|
|
2728
|
+
#### getAllDatasets(config, pickDatasets)
|
|
2682
2729
|
|
|
2683
|
-
Get a dataset
|
|
2730
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
2684
2731
|
|
|
2685
2732
|
|
|
2686
2733
|
|
|
@@ -2689,7 +2736,8 @@ Get a dataset by Qrvey ID
|
|
|
2689
2736
|
|
|
2690
2737
|
| Name | Type | Description | |
|
|
2691
2738
|
| ---- | ---- | ----------- | -------- |
|
|
2692
|
-
|
|
|
2739
|
+
| config | | the widget config. Includes the appid and others configuration properties | |
|
|
2740
|
+
| pickDatasets | | Collection of Qrvey IDs for filtering the request | |
|
|
2693
2741
|
|
|
2694
2742
|
|
|
2695
2743
|
|
|
@@ -2702,12 +2750,12 @@ Get a dataset by Qrvey ID
|
|
|
2702
2750
|
|
|
2703
2751
|
|
|
2704
2752
|
|
|
2705
|
-
### dist/
|
|
2753
|
+
### dist/services/api/getAllQrveys.api.js
|
|
2706
2754
|
|
|
2707
2755
|
|
|
2708
|
-
####
|
|
2756
|
+
#### getAllQrveys(config, params)
|
|
2709
2757
|
|
|
2710
|
-
|
|
2758
|
+
POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
|
|
2711
2759
|
|
|
2712
2760
|
|
|
2713
2761
|
|
|
@@ -2716,7 +2764,8 @@ Get a dataset by Qrvey ID
|
|
|
2716
2764
|
|
|
2717
2765
|
| Name | Type | Description | |
|
|
2718
2766
|
| ---- | ---- | ----------- | -------- |
|
|
2719
|
-
|
|
|
2767
|
+
| config | | Configuration | |
|
|
2768
|
+
| params | | Object for getting precise data | |
|
|
2720
2769
|
|
|
2721
2770
|
|
|
2722
2771
|
|
|
@@ -2729,12 +2778,12 @@ Get a dataset by Qrvey ID
|
|
|
2729
2778
|
|
|
2730
2779
|
|
|
2731
2780
|
|
|
2732
|
-
### dist/
|
|
2781
|
+
### dist/services/api/getDatasetColumns.api.js
|
|
2733
2782
|
|
|
2734
2783
|
|
|
2735
|
-
####
|
|
2784
|
+
#### getDatasetColumns(qrveyid)
|
|
2736
2785
|
|
|
2737
|
-
|
|
2786
|
+
Get a dataset by Qrvey ID
|
|
2738
2787
|
|
|
2739
2788
|
|
|
2740
2789
|
|
|
@@ -2743,7 +2792,7 @@ Get a dataset by Qrvey ID
|
|
|
2743
2792
|
|
|
2744
2793
|
| Name | Type | Description | |
|
|
2745
2794
|
| ---- | ---- | ----------- | -------- |
|
|
2746
|
-
|
|
|
2795
|
+
| qrveyid | | The Qrvey ID | |
|
|
2747
2796
|
|
|
2748
2797
|
|
|
2749
2798
|
|
|
@@ -2751,7 +2800,7 @@ Get a dataset by Qrvey ID
|
|
|
2751
2800
|
##### Returns
|
|
2752
2801
|
|
|
2753
2802
|
|
|
2754
|
-
-
|
|
2803
|
+
- a promise
|
|
2755
2804
|
|
|
2756
2805
|
|
|
2757
2806
|
|
|
@@ -2840,6 +2889,60 @@ try to find this string as a variable on Windows object
|
|
|
2840
2889
|
|
|
2841
2890
|
|
|
2842
2891
|
|
|
2892
|
+
### dist/typescript/decorators/Debounce.js
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
#### Debounce(time)
|
|
2896
|
+
|
|
2897
|
+
(Method Decorator) Debounce Class Method
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
##### Parameters
|
|
2903
|
+
|
|
2904
|
+
| Name | Type | Description | |
|
|
2905
|
+
| ---- | ---- | ----------- | -------- |
|
|
2906
|
+
| time | | (optional) deafult 500 | |
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
##### Returns
|
|
2912
|
+
|
|
2913
|
+
|
|
2914
|
+
- `Void`
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
### dist/typescript/decorators/Throttled.js
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
#### Throttled(time)
|
|
2923
|
+
|
|
2924
|
+
(Method Decorator) Throttled Class Method
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
##### Parameters
|
|
2930
|
+
|
|
2931
|
+
| Name | Type | Description | |
|
|
2932
|
+
| ---- | ---- | ----------- | -------- |
|
|
2933
|
+
| time | | (optional) deafult 500 | |
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
##### Returns
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
- `Void`
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2843
2946
|
### dist/dates/relative/helpers/formatStatement.js
|
|
2844
2947
|
|
|
2845
2948
|
|
|
@@ -3245,12 +3348,21 @@ Returns a filter builder config object by a any given config
|
|
|
3245
3348
|
|
|
3246
3349
|
|
|
3247
3350
|
|
|
3248
|
-
### dist/filters/helpers/common/
|
|
3351
|
+
### dist/filters/helpers/common/excludeFiltersByParams.js
|
|
3249
3352
|
|
|
3250
3353
|
|
|
3251
|
-
####
|
|
3354
|
+
#### excludeFiltersByParams(filterData, params)
|
|
3252
3355
|
|
|
3253
|
-
|
|
3356
|
+
Excludes filters from the given Filters.
|
|
3357
|
+
The validation to filter the stored filter is depending on:
|
|
3358
|
+
- Column
|
|
3359
|
+
- Qrvey ID
|
|
3360
|
+
- Scope type
|
|
3361
|
+
- Scope ID
|
|
3362
|
+
- Panel ID
|
|
3363
|
+
- Validator type
|
|
3364
|
+
- Property type
|
|
3365
|
+
- Enabled flags
|
|
3254
3366
|
|
|
3255
3367
|
|
|
3256
3368
|
|
|
@@ -3259,8 +3371,8 @@ Validates if both filters are the same
|
|
|
3259
3371
|
|
|
3260
3372
|
| Name | Type | Description | |
|
|
3261
3373
|
| ---- | ---- | ----------- | -------- |
|
|
3262
|
-
|
|
|
3263
|
-
|
|
|
3374
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3375
|
+
| params | | given parameters to validate the filter data | |
|
|
3264
3376
|
|
|
3265
3377
|
|
|
3266
3378
|
|
|
@@ -3268,7 +3380,7 @@ Validates if both filters are the same
|
|
|
3268
3380
|
##### Returns
|
|
3269
3381
|
|
|
3270
3382
|
|
|
3271
|
-
-
|
|
3383
|
+
- a new Filter object structure
|
|
3272
3384
|
|
|
3273
3385
|
|
|
3274
3386
|
|
|
@@ -3300,21 +3412,12 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3300
3412
|
|
|
3301
3413
|
|
|
3302
3414
|
|
|
3303
|
-
### dist/filters/helpers/common/
|
|
3415
|
+
### dist/filters/helpers/common/excludeFiltersByScopes.js
|
|
3304
3416
|
|
|
3305
3417
|
|
|
3306
|
-
####
|
|
3418
|
+
#### excludeFiltersByScopes(filterData, scopes)
|
|
3307
3419
|
|
|
3308
|
-
Excludes filters
|
|
3309
|
-
The validation to filter the stored filter is depending on:
|
|
3310
|
-
- Column
|
|
3311
|
-
- Qrvey ID
|
|
3312
|
-
- Scope type
|
|
3313
|
-
- Scope ID
|
|
3314
|
-
- Panel ID
|
|
3315
|
-
- Validator type
|
|
3316
|
-
- Property type
|
|
3317
|
-
- Enabled flags
|
|
3420
|
+
Excludes and returns a filter data without filters by the given scopes
|
|
3318
3421
|
|
|
3319
3422
|
|
|
3320
3423
|
|
|
@@ -3323,8 +3426,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3323
3426
|
|
|
3324
3427
|
| Name | Type | Description | |
|
|
3325
3428
|
| ---- | ---- | ----------- | -------- |
|
|
3326
|
-
| filterData | | The Filter Data
|
|
3327
|
-
|
|
|
3429
|
+
| filterData | | The Filter Data | |
|
|
3430
|
+
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3328
3431
|
|
|
3329
3432
|
|
|
3330
3433
|
|
|
@@ -3332,17 +3435,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3332
3435
|
##### Returns
|
|
3333
3436
|
|
|
3334
3437
|
|
|
3335
|
-
-
|
|
3438
|
+
- The new Filter Data without filters by the given scopes.
|
|
3336
3439
|
|
|
3337
3440
|
|
|
3338
3441
|
|
|
3339
3442
|
|
|
3340
|
-
### dist/filters/helpers/common/
|
|
3443
|
+
### dist/filters/helpers/common/getFilterColumnLabel.js
|
|
3341
3444
|
|
|
3342
3445
|
|
|
3343
|
-
####
|
|
3446
|
+
#### getFilterColumnLabel(column)
|
|
3344
3447
|
|
|
3345
|
-
|
|
3448
|
+
Get an string of the properties of the given filter column.
|
|
3346
3449
|
|
|
3347
3450
|
|
|
3348
3451
|
|
|
@@ -3351,8 +3454,7 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3351
3454
|
|
|
3352
3455
|
| Name | Type | Description | |
|
|
3353
3456
|
| ---- | ---- | ----------- | -------- |
|
|
3354
|
-
|
|
|
3355
|
-
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3457
|
+
| column | | The filter column | |
|
|
3356
3458
|
|
|
3357
3459
|
|
|
3358
3460
|
|
|
@@ -3360,7 +3462,7 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3360
3462
|
##### Returns
|
|
3361
3463
|
|
|
3362
3464
|
|
|
3363
|
-
-
|
|
3465
|
+
- an string with the property, aggregate or calculation label.
|
|
3364
3466
|
|
|
3365
3467
|
|
|
3366
3468
|
|
|
@@ -3392,12 +3494,12 @@ Gets the Filter Label + Column label
|
|
|
3392
3494
|
|
|
3393
3495
|
|
|
3394
3496
|
|
|
3395
|
-
### dist/filters/helpers/common/
|
|
3497
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3396
3498
|
|
|
3397
3499
|
|
|
3398
|
-
####
|
|
3500
|
+
#### areFiltersEquals(filter1, filter2)
|
|
3399
3501
|
|
|
3400
|
-
|
|
3502
|
+
Validates if both filters are the same
|
|
3401
3503
|
|
|
3402
3504
|
|
|
3403
3505
|
|
|
@@ -3406,7 +3508,8 @@ Get an string of the properties of the given filter column.
|
|
|
3406
3508
|
|
|
3407
3509
|
| Name | Type | Description | |
|
|
3408
3510
|
| ---- | ---- | ----------- | -------- |
|
|
3409
|
-
|
|
|
3511
|
+
| filter1 | | filter 1 | |
|
|
3512
|
+
| filter2 | | filter 2 | |
|
|
3410
3513
|
|
|
3411
3514
|
|
|
3412
3515
|
|
|
@@ -3414,7 +3517,7 @@ Get an string of the properties of the given filter column.
|
|
|
3414
3517
|
##### Returns
|
|
3415
3518
|
|
|
3416
3519
|
|
|
3417
|
-
-
|
|
3520
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
3418
3521
|
|
|
3419
3522
|
|
|
3420
3523
|
|
|
@@ -3632,12 +3735,12 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3632
3735
|
|
|
3633
3736
|
|
|
3634
3737
|
|
|
3635
|
-
### dist/filters/helpers/common/
|
|
3738
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3636
3739
|
|
|
3637
3740
|
|
|
3638
|
-
####
|
|
3741
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3639
3742
|
|
|
3640
|
-
|
|
3743
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3641
3744
|
|
|
3642
3745
|
|
|
3643
3746
|
|
|
@@ -3646,8 +3749,7 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3646
3749
|
|
|
3647
3750
|
| Name | Type | Description | |
|
|
3648
3751
|
| ---- | ---- | ----------- | -------- |
|
|
3649
|
-
|
|
|
3650
|
-
| qrveyid | | The Qrvey ID | |
|
|
3752
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3651
3753
|
|
|
3652
3754
|
|
|
3653
3755
|
|
|
@@ -3655,17 +3757,17 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3655
3757
|
##### Returns
|
|
3656
3758
|
|
|
3657
3759
|
|
|
3658
|
-
-
|
|
3760
|
+
- a new ParamsToGetFilter settings object.
|
|
3659
3761
|
|
|
3660
3762
|
|
|
3661
3763
|
|
|
3662
3764
|
|
|
3663
|
-
### dist/filters/helpers/common/
|
|
3765
|
+
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3664
3766
|
|
|
3665
3767
|
|
|
3666
|
-
####
|
|
3768
|
+
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3667
3769
|
|
|
3668
|
-
|
|
3770
|
+
Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
3669
3771
|
|
|
3670
3772
|
|
|
3671
3773
|
|
|
@@ -3674,7 +3776,8 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3674
3776
|
|
|
3675
3777
|
| Name | Type | Description | |
|
|
3676
3778
|
| ---- | ---- | ----------- | -------- |
|
|
3677
|
-
|
|
|
3779
|
+
| filterData | | the filter data or the UI filter data. | |
|
|
3780
|
+
| qrveyid | | The Qrvey ID | |
|
|
3678
3781
|
|
|
3679
3782
|
|
|
3680
3783
|
|
|
@@ -3682,7 +3785,7 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3682
3785
|
##### Returns
|
|
3683
3786
|
|
|
3684
3787
|
|
|
3685
|
-
-
|
|
3788
|
+
- true: the filter data has filters by the Qrvey ID
|
|
3686
3789
|
|
|
3687
3790
|
|
|
3688
3791
|
|
|
@@ -3742,12 +3845,12 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3742
3845
|
|
|
3743
3846
|
|
|
3744
3847
|
|
|
3745
|
-
### dist/filters/helpers/common/
|
|
3848
|
+
### dist/filters/helpers/common/isInValidator.js
|
|
3746
3849
|
|
|
3747
3850
|
|
|
3748
|
-
####
|
|
3851
|
+
#### isInValidator(validator)
|
|
3749
3852
|
|
|
3750
|
-
|
|
3853
|
+
Validates if the given validator is a In type
|
|
3751
3854
|
|
|
3752
3855
|
|
|
3753
3856
|
|
|
@@ -3756,7 +3859,7 @@ Checks if the given validator is a Null type.
|
|
|
3756
3859
|
|
|
3757
3860
|
| Name | Type | Description | |
|
|
3758
3861
|
| ---- | ---- | ----------- | -------- |
|
|
3759
|
-
| validator | | The
|
|
3862
|
+
| validator | | The validator | |
|
|
3760
3863
|
|
|
3761
3864
|
|
|
3762
3865
|
|
|
@@ -3764,17 +3867,17 @@ Checks if the given validator is a Null type.
|
|
|
3764
3867
|
##### Returns
|
|
3765
3868
|
|
|
3766
3869
|
|
|
3767
|
-
-
|
|
3870
|
+
- true: it is a In validator; false: it is not a In validator
|
|
3768
3871
|
|
|
3769
3872
|
|
|
3770
3873
|
|
|
3771
3874
|
|
|
3772
|
-
### dist/filters/helpers/common/
|
|
3875
|
+
### dist/filters/helpers/common/isNullValidator.js
|
|
3773
3876
|
|
|
3774
3877
|
|
|
3775
|
-
####
|
|
3878
|
+
#### isNullValidator(validator)
|
|
3776
3879
|
|
|
3777
|
-
|
|
3880
|
+
Checks if the given validator is a Null type.
|
|
3778
3881
|
|
|
3779
3882
|
|
|
3780
3883
|
|
|
@@ -3783,7 +3886,7 @@ Validates if the given validator is a In type
|
|
|
3783
3886
|
|
|
3784
3887
|
| Name | Type | Description | |
|
|
3785
3888
|
| ---- | ---- | ----------- | -------- |
|
|
3786
|
-
| validator | | The
|
|
3889
|
+
| validator | | The Filter Validator | |
|
|
3787
3890
|
|
|
3788
3891
|
|
|
3789
3892
|
|
|
@@ -3791,7 +3894,7 @@ Validates if the given validator is a In type
|
|
|
3791
3894
|
##### Returns
|
|
3792
3895
|
|
|
3793
3896
|
|
|
3794
|
-
-
|
|
3897
|
+
- True: It is a Null Validator; False: It is not a Null Validator.
|
|
3795
3898
|
|
|
3796
3899
|
|
|
3797
3900
|
|
|
@@ -4096,12 +4199,12 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
4096
4199
|
|
|
4097
4200
|
|
|
4098
4201
|
|
|
4099
|
-
### dist/filters/helpers/ui/
|
|
4202
|
+
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
4100
4203
|
|
|
4101
4204
|
|
|
4102
|
-
####
|
|
4205
|
+
#### getFilterPropertyLabel(filter)
|
|
4103
4206
|
|
|
4104
|
-
|
|
4207
|
+
Gets the label of the filter property
|
|
4105
4208
|
|
|
4106
4209
|
|
|
4107
4210
|
|
|
@@ -4110,8 +4213,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
4110
4213
|
|
|
4111
4214
|
| Name | Type | Description | |
|
|
4112
4215
|
| ---- | ---- | ----------- | -------- |
|
|
4113
|
-
|
|
|
4114
|
-
| scopes | | collection of scopes types | |
|
|
4216
|
+
| filter | | The UI Filter | |
|
|
4115
4217
|
|
|
4116
4218
|
|
|
4117
4219
|
|
|
@@ -4119,17 +4221,17 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
4119
4221
|
##### Returns
|
|
4120
4222
|
|
|
4121
4223
|
|
|
4122
|
-
-
|
|
4224
|
+
- a string of the filter property label
|
|
4123
4225
|
|
|
4124
4226
|
|
|
4125
4227
|
|
|
4126
4228
|
|
|
4127
|
-
### dist/filters/helpers/ui/
|
|
4229
|
+
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
4128
4230
|
|
|
4129
4231
|
|
|
4130
|
-
####
|
|
4232
|
+
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
4131
4233
|
|
|
4132
|
-
|
|
4234
|
+
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
4133
4235
|
|
|
4134
4236
|
|
|
4135
4237
|
|
|
@@ -4138,35 +4240,8 @@ Gets the label of the filter property
|
|
|
4138
4240
|
|
|
4139
4241
|
| Name | Type | Description | |
|
|
4140
4242
|
| ---- | ---- | ----------- | -------- |
|
|
4141
|
-
|
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
##### Returns
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
- a string of the filter property label
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
#### getUIFlatFilterByParams()
|
|
4158
|
-
|
|
4159
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4160
|
-
The validation to filter the stored filter is depending on:
|
|
4161
|
-
- Column
|
|
4162
|
-
- Qrvey ID,
|
|
4163
|
-
- Scope type
|
|
4164
|
-
- Scope ID
|
|
4165
|
-
- Panel ID
|
|
4166
|
-
- Validator type
|
|
4167
|
-
- Property type
|
|
4168
|
-
|
|
4169
|
-
|
|
4243
|
+
| uFilters | | The Flatten UI Filters | |
|
|
4244
|
+
| scopes | | collection of scopes types | |
|
|
4170
4245
|
|
|
4171
4246
|
|
|
4172
4247
|
|
|
@@ -4174,7 +4249,7 @@ The validation to filter the stored filter is depending on:
|
|
|
4174
4249
|
##### Returns
|
|
4175
4250
|
|
|
4176
4251
|
|
|
4177
|
-
- The
|
|
4252
|
+
- The new array of UI Flattened filters
|
|
4178
4253
|
|
|
4179
4254
|
|
|
4180
4255
|
|
|
@@ -4235,6 +4310,34 @@ Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
|
4235
4310
|
|
|
4236
4311
|
|
|
4237
4312
|
|
|
4313
|
+
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
4314
|
+
|
|
4315
|
+
|
|
4316
|
+
#### getUIFlatFilterByParams()
|
|
4317
|
+
|
|
4318
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4319
|
+
The validation to filter the stored filter is depending on:
|
|
4320
|
+
- Column
|
|
4321
|
+
- Qrvey ID,
|
|
4322
|
+
- Scope type
|
|
4323
|
+
- Scope ID
|
|
4324
|
+
- Panel ID
|
|
4325
|
+
- Validator type
|
|
4326
|
+
- Property type
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
|
|
4330
|
+
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
##### Returns
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
- The index of the uFilter array or the Filter object s
|
|
4337
|
+
|
|
4338
|
+
|
|
4339
|
+
|
|
4340
|
+
|
|
4238
4341
|
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
4239
4342
|
|
|
4240
4343
|
|