@qrvey/utils 1.2.9-12 → 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 +473 -313
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +36 -0
- package/dist/cjs/filters/helpers/ui/index.d.ts +3 -0
- package/dist/cjs/filters/helpers/ui/index.js +3 -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/IFPSettingsGeneral.d.ts +2 -1
- 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/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- package/dist/cjs/globalization/interfaces/index.d.ts +4 -1
- package/dist/cjs/globalization/interfaces/index.js +4 -1
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +7 -5
- package/dist/cjs/globalization/labels/index.d.ts +5 -3
- package/dist/cjs/globalization/labels/index.js +5 -3
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +57 -0
- package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -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/getAllDatasets.api.d.ts +2 -1
- package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
- package/dist/cjs/services/api/getDatasetColumns.api.js +1 -0
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
- package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/filters/helpers/ui/getUpdatedUIFilters.js +32 -0
- package/dist/filters/helpers/ui/index.d.ts +3 -0
- package/dist/filters/helpers/ui/index.js +3 -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/IFPSettingsGeneral.d.ts +2 -1
- 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/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- package/dist/globalization/interfaces/index.d.ts +4 -1
- package/dist/globalization/interfaces/index.js +4 -1
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +3 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
- package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/index.js +6 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +7 -5
- package/dist/globalization/labels/index.d.ts +5 -3
- package/dist/globalization/labels/index.js +5 -3
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +54 -0
- package/dist/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/globalization/labels/style_themes/index.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -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/getAllDatasets.api.d.ts +2 -1
- package/dist/services/api/getAllDatasets.api.js +2 -1
- package/dist/services/api/getDatasetColumns.api.js +1 -0
- package/package.json +1 -1
- package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
- package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
- package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
- package/src/filters/helpers/ui/getUpdatedUIFilters.ts +34 -0
- package/src/filters/helpers/ui/index.ts +3 -0
- package/src/filters/helpers/ui/transformFilterValues.ts +29 -0
- package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +2 -1
- package/src/filters/interfaces/panel/IFPSettingsGeneral.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/globalization/interfaces/IResourceI18n.ts +2 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
- package/src/globalization/interfaces/index.ts +4 -1
- package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +3 -0
- package/src/globalization/interfaces/style_themes/index.ts +6 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +2 -0
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +8 -6
- package/src/globalization/labels/index.ts +5 -3
- package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +56 -0
- package/src/globalization/labels/style_themes/index.ts +1 -0
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -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/getAllDatasets.api.ts +3 -2
- 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,7 +2643,81 @@ Get an string of the properties of the given column.
|
|
|
2614
2643
|
##### Returns
|
|
2615
2644
|
|
|
2616
2645
|
|
|
2617
|
-
-
|
|
2646
|
+
- a string value with suffix
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
### dist/qrvey/helpers/transformValue.js
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
#### transformValue(value, settings)
|
|
2655
|
+
|
|
2656
|
+
Transforms a value depending of localization/globalization and extras settings.
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
##### Parameters
|
|
2662
|
+
|
|
2663
|
+
| Name | Type | Description | |
|
|
2664
|
+
| ---- | ---- | ----------- | -------- |
|
|
2665
|
+
| value | | A value to transform | |
|
|
2666
|
+
| settings | | The settings of the transformValue function | |
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
##### Returns
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
- A transformed value
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
#### getOutputFormat(settings)
|
|
2679
|
+
|
|
2680
|
+
Gets the outputformat settings
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
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
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
##### Parameters
|
|
2709
|
+
|
|
2710
|
+
| Name | Type | Description | |
|
|
2711
|
+
| ---- | ---- | ----------- | -------- |
|
|
2712
|
+
| settings | | The settings of the transformValue function | |
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
##### Returns
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
- the format config
|
|
2618
2721
|
|
|
2619
2722
|
|
|
2620
2723
|
|
|
@@ -2622,7 +2725,7 @@ Get an string of the properties of the given column.
|
|
|
2622
2725
|
### dist/services/api/getAllDatasets.api.js
|
|
2623
2726
|
|
|
2624
2727
|
|
|
2625
|
-
#### getAllDatasets(
|
|
2728
|
+
#### getAllDatasets(config, pickDatasets)
|
|
2626
2729
|
|
|
2627
2730
|
Get a dataset list from a collection of Qrvey IDs
|
|
2628
2731
|
|
|
@@ -2633,7 +2736,8 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2633
2736
|
|
|
2634
2737
|
| Name | Type | Description | |
|
|
2635
2738
|
| ---- | ---- | ----------- | -------- |
|
|
2636
|
-
|
|
|
2739
|
+
| config | | the widget config. Includes the appid and others configuration properties | |
|
|
2740
|
+
| pickDatasets | | Collection of Qrvey IDs for filtering the request | |
|
|
2637
2741
|
|
|
2638
2742
|
|
|
2639
2743
|
|
|
@@ -3244,12 +3348,21 @@ Returns a filter builder config object by a any given config
|
|
|
3244
3348
|
|
|
3245
3349
|
|
|
3246
3350
|
|
|
3247
|
-
### dist/filters/helpers/
|
|
3351
|
+
### dist/filters/helpers/common/excludeFiltersByParams.js
|
|
3248
3352
|
|
|
3249
3353
|
|
|
3250
|
-
####
|
|
3354
|
+
#### excludeFiltersByParams(filterData, params)
|
|
3251
3355
|
|
|
3252
|
-
Excludes
|
|
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
|
|
3253
3366
|
|
|
3254
3367
|
|
|
3255
3368
|
|
|
@@ -3258,7 +3371,8 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
3258
3371
|
|
|
3259
3372
|
| Name | Type | Description | |
|
|
3260
3373
|
| ---- | ---- | ----------- | -------- |
|
|
3261
|
-
|
|
|
3374
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3375
|
+
| params | | given parameters to validate the filter data | |
|
|
3262
3376
|
|
|
3263
3377
|
|
|
3264
3378
|
|
|
@@ -3266,17 +3380,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
|
|
|
3266
3380
|
##### Returns
|
|
3267
3381
|
|
|
3268
3382
|
|
|
3269
|
-
- a new
|
|
3383
|
+
- a new Filter object structure
|
|
3270
3384
|
|
|
3271
3385
|
|
|
3272
3386
|
|
|
3273
3387
|
|
|
3274
|
-
### dist/filters/helpers/
|
|
3388
|
+
### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
|
|
3275
3389
|
|
|
3276
3390
|
|
|
3277
|
-
####
|
|
3391
|
+
#### excludeFiltersByAggregateColumn(filterData)
|
|
3278
3392
|
|
|
3279
|
-
Excludes
|
|
3393
|
+
Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
3280
3394
|
|
|
3281
3395
|
|
|
3282
3396
|
|
|
@@ -3285,8 +3399,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
3285
3399
|
|
|
3286
3400
|
| Name | Type | Description | |
|
|
3287
3401
|
| ---- | ---- | ----------- | -------- |
|
|
3288
|
-
|
|
|
3289
|
-
| scopes | | collection of scopes types | |
|
|
3402
|
+
| filterData | | The filter data object | |
|
|
3290
3403
|
|
|
3291
3404
|
|
|
3292
3405
|
|
|
@@ -3294,17 +3407,17 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
|
3294
3407
|
##### Returns
|
|
3295
3408
|
|
|
3296
3409
|
|
|
3297
|
-
- The new
|
|
3410
|
+
- The new filter data object that were excluded the aggregate filters
|
|
3298
3411
|
|
|
3299
3412
|
|
|
3300
3413
|
|
|
3301
3414
|
|
|
3302
|
-
### dist/filters/helpers/
|
|
3415
|
+
### dist/filters/helpers/common/excludeFiltersByScopes.js
|
|
3303
3416
|
|
|
3304
3417
|
|
|
3305
|
-
####
|
|
3418
|
+
#### excludeFiltersByScopes(filterData, scopes)
|
|
3306
3419
|
|
|
3307
|
-
|
|
3420
|
+
Excludes and returns a filter data without filters by the given scopes
|
|
3308
3421
|
|
|
3309
3422
|
|
|
3310
3423
|
|
|
@@ -3313,7 +3426,8 @@ Gets the label of the filter property
|
|
|
3313
3426
|
|
|
3314
3427
|
| Name | Type | Description | |
|
|
3315
3428
|
| ---- | ---- | ----------- | -------- |
|
|
3316
|
-
|
|
|
3429
|
+
| filterData | | The Filter Data | |
|
|
3430
|
+
| scopes | | collection of scopes to be as filtering parameters | |
|
|
3317
3431
|
|
|
3318
3432
|
|
|
3319
3433
|
|
|
@@ -3321,17 +3435,17 @@ Gets the label of the filter property
|
|
|
3321
3435
|
##### Returns
|
|
3322
3436
|
|
|
3323
3437
|
|
|
3324
|
-
-
|
|
3438
|
+
- The new Filter Data without filters by the given scopes.
|
|
3325
3439
|
|
|
3326
3440
|
|
|
3327
3441
|
|
|
3328
3442
|
|
|
3329
|
-
### dist/filters/helpers/
|
|
3443
|
+
### dist/filters/helpers/common/getFilterColumnLabel.js
|
|
3330
3444
|
|
|
3331
3445
|
|
|
3332
|
-
####
|
|
3446
|
+
#### getFilterColumnLabel(column)
|
|
3333
3447
|
|
|
3334
|
-
|
|
3448
|
+
Get an string of the properties of the given filter column.
|
|
3335
3449
|
|
|
3336
3450
|
|
|
3337
3451
|
|
|
@@ -3340,8 +3454,7 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
3340
3454
|
|
|
3341
3455
|
| Name | Type | Description | |
|
|
3342
3456
|
| ---- | ---- | ----------- | -------- |
|
|
3343
|
-
| column | | The column | |
|
|
3344
|
-
| datasets | | array of datasets | |
|
|
3457
|
+
| column | | The filter column | |
|
|
3345
3458
|
|
|
3346
3459
|
|
|
3347
3460
|
|
|
@@ -3349,56 +3462,26 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
3349
3462
|
##### Returns
|
|
3350
3463
|
|
|
3351
3464
|
|
|
3352
|
-
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
#### getUIFlatFilterByParams()
|
|
3361
|
-
|
|
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
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3465
|
+
- an string with the property, aggregate or calculation label.
|
|
3376
3466
|
|
|
3377
|
-
##### Returns
|
|
3378
3467
|
|
|
3379
3468
|
|
|
3380
|
-
- The index of the uFilter array or the Filter object s
|
|
3381
3469
|
|
|
3470
|
+
### dist/filters/helpers/common/getFilterLabel.js
|
|
3382
3471
|
|
|
3383
3472
|
|
|
3473
|
+
#### getFilterLabel(filter)
|
|
3384
3474
|
|
|
3385
|
-
|
|
3475
|
+
Gets the Filter Label + Column label
|
|
3386
3476
|
|
|
3387
3477
|
|
|
3388
|
-
#### getUIFlatFiltersByParams()
|
|
3389
3478
|
|
|
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
|
|
3400
3479
|
|
|
3480
|
+
##### Parameters
|
|
3401
3481
|
|
|
3482
|
+
| Name | Type | Description | |
|
|
3483
|
+
| ---- | ---- | ----------- | -------- |
|
|
3484
|
+
| filter | | the UI filter | |
|
|
3402
3485
|
|
|
3403
3486
|
|
|
3404
3487
|
|
|
@@ -3406,17 +3489,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3406
3489
|
##### Returns
|
|
3407
3490
|
|
|
3408
3491
|
|
|
3409
|
-
-
|
|
3492
|
+
- a sring label
|
|
3410
3493
|
|
|
3411
3494
|
|
|
3412
3495
|
|
|
3413
3496
|
|
|
3414
|
-
### dist/filters/helpers/
|
|
3497
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3415
3498
|
|
|
3416
3499
|
|
|
3417
|
-
####
|
|
3500
|
+
#### areFiltersEquals(filter1, filter2)
|
|
3418
3501
|
|
|
3419
|
-
|
|
3502
|
+
Validates if both filters are the same
|
|
3420
3503
|
|
|
3421
3504
|
|
|
3422
3505
|
|
|
@@ -3425,8 +3508,8 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3425
3508
|
|
|
3426
3509
|
| Name | Type | Description | |
|
|
3427
3510
|
| ---- | ---- | ----------- | -------- |
|
|
3428
|
-
|
|
|
3429
|
-
|
|
|
3511
|
+
| filter1 | | filter 1 | |
|
|
3512
|
+
| filter2 | | filter 2 | |
|
|
3430
3513
|
|
|
3431
3514
|
|
|
3432
3515
|
|
|
@@ -3434,17 +3517,28 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3434
3517
|
##### Returns
|
|
3435
3518
|
|
|
3436
3519
|
|
|
3437
|
-
-
|
|
3520
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
3438
3521
|
|
|
3439
3522
|
|
|
3440
3523
|
|
|
3441
3524
|
|
|
3442
|
-
### dist/filters/helpers/
|
|
3525
|
+
### dist/filters/helpers/common/getFilterid.js
|
|
3443
3526
|
|
|
3444
3527
|
|
|
3445
|
-
####
|
|
3446
|
-
|
|
3528
|
+
#### getFilterid(filter)
|
|
3447
3529
|
|
|
3530
|
+
Get the Filter ID by the filter structure
|
|
3531
|
+
The order of the epression ID is:
|
|
3532
|
+
- Scope Type
|
|
3533
|
+
- scopeid
|
|
3534
|
+
- qrveyid
|
|
3535
|
+
- panelid
|
|
3536
|
+
- columnid
|
|
3537
|
+
- validator
|
|
3538
|
+
- property
|
|
3539
|
+
- Column Aggregate
|
|
3540
|
+
- Column Calculation
|
|
3541
|
+
- Optional Index
|
|
3448
3542
|
|
|
3449
3543
|
|
|
3450
3544
|
|
|
@@ -3453,9 +3547,7 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3453
3547
|
|
|
3454
3548
|
| Name | Type | Description | |
|
|
3455
3549
|
| ---- | ---- | ----------- | -------- |
|
|
3456
|
-
| filter | |
|
|
3457
|
-
| addEnableds | | | |
|
|
3458
|
-
| rankingGroupIndex | | | |
|
|
3550
|
+
| filter | | the filter structure | |
|
|
3459
3551
|
|
|
3460
3552
|
|
|
3461
3553
|
|
|
@@ -3463,17 +3555,17 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
3463
3555
|
##### Returns
|
|
3464
3556
|
|
|
3465
3557
|
|
|
3466
|
-
-
|
|
3558
|
+
- a text to identify the filter
|
|
3467
3559
|
|
|
3468
3560
|
|
|
3469
3561
|
|
|
3470
3562
|
|
|
3471
|
-
### dist/filters/helpers/
|
|
3563
|
+
### dist/filters/helpers/common/getFiltersByAggregateColumn.js
|
|
3472
3564
|
|
|
3473
3565
|
|
|
3474
|
-
####
|
|
3566
|
+
#### getFiltersByAggregateColumn(filterData)
|
|
3475
3567
|
|
|
3476
|
-
|
|
3568
|
+
Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
3477
3569
|
|
|
3478
3570
|
|
|
3479
3571
|
|
|
@@ -3482,8 +3574,7 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
3482
3574
|
|
|
3483
3575
|
| Name | Type | Description | |
|
|
3484
3576
|
| ---- | ---- | ----------- | -------- |
|
|
3485
|
-
|
|
|
3486
|
-
| params | | Parameters to validate | |
|
|
3577
|
+
| filterData | | The filter data object | |
|
|
3487
3578
|
|
|
3488
3579
|
|
|
3489
3580
|
|
|
@@ -3491,17 +3582,26 @@ Resolves conditions between UI flattened filter and given parameters
|
|
|
3491
3582
|
##### Returns
|
|
3492
3583
|
|
|
3493
3584
|
|
|
3494
|
-
-
|
|
3585
|
+
- The new filter data object that were get the aggregate filters
|
|
3495
3586
|
|
|
3496
3587
|
|
|
3497
3588
|
|
|
3498
3589
|
|
|
3499
|
-
### dist/filters/helpers/common/
|
|
3590
|
+
### dist/filters/helpers/common/getFiltersByParams.js
|
|
3500
3591
|
|
|
3501
3592
|
|
|
3502
|
-
####
|
|
3593
|
+
#### getFiltersByParams(filterData, params)
|
|
3503
3594
|
|
|
3504
|
-
|
|
3595
|
+
Gets filters from the given params.
|
|
3596
|
+
The validation to filter the stored filter is depending on:
|
|
3597
|
+
- Column
|
|
3598
|
+
- Qrvey ID
|
|
3599
|
+
- Scope type
|
|
3600
|
+
- Scope ID
|
|
3601
|
+
- Panel ID
|
|
3602
|
+
- Validator type
|
|
3603
|
+
- Property type
|
|
3604
|
+
- Enabled flags
|
|
3505
3605
|
|
|
3506
3606
|
|
|
3507
3607
|
|
|
@@ -3510,8 +3610,8 @@ Validates if both filters are the same
|
|
|
3510
3610
|
|
|
3511
3611
|
| Name | Type | Description | |
|
|
3512
3612
|
| ---- | ---- | ----------- | -------- |
|
|
3513
|
-
|
|
|
3514
|
-
|
|
|
3613
|
+
| filterData | | The Filter Data or the UI Filter Data | |
|
|
3614
|
+
| params | | given parameters to validate the dataset | |
|
|
3515
3615
|
|
|
3516
3616
|
|
|
3517
3617
|
|
|
@@ -3519,17 +3619,17 @@ Validates if both filters are the same
|
|
|
3519
3619
|
##### Returns
|
|
3520
3620
|
|
|
3521
3621
|
|
|
3522
|
-
-
|
|
3622
|
+
- a new Filter object structure
|
|
3523
3623
|
|
|
3524
3624
|
|
|
3525
3625
|
|
|
3526
3626
|
|
|
3527
|
-
### dist/filters/helpers/common/
|
|
3627
|
+
### dist/filters/helpers/common/getFiltersByScopes.js
|
|
3528
3628
|
|
|
3529
3629
|
|
|
3530
|
-
####
|
|
3630
|
+
#### getFiltersByScopes(filterData, scopes)
|
|
3531
3631
|
|
|
3532
|
-
|
|
3632
|
+
Filters and gets a Filter Data by the given scopes
|
|
3533
3633
|
|
|
3534
3634
|
|
|
3535
3635
|
|
|
@@ -3538,7 +3638,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3538
3638
|
|
|
3539
3639
|
| Name | Type | Description | |
|
|
3540
3640
|
| ---- | ---- | ----------- | -------- |
|
|
3541
|
-
| filterData | | The
|
|
3641
|
+
| filterData | | The Filter Data | |
|
|
3642
|
+
| scopes | | collection of scopes types | |
|
|
3542
3643
|
|
|
3543
3644
|
|
|
3544
3645
|
|
|
@@ -3546,26 +3647,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3546
3647
|
##### Returns
|
|
3547
3648
|
|
|
3548
3649
|
|
|
3549
|
-
- The new
|
|
3650
|
+
- The new Filter Data
|
|
3550
3651
|
|
|
3551
3652
|
|
|
3552
3653
|
|
|
3553
3654
|
|
|
3554
|
-
### dist/filters/helpers/common/
|
|
3655
|
+
### dist/filters/helpers/common/getFiltersByScopesIds.js
|
|
3555
3656
|
|
|
3556
3657
|
|
|
3557
|
-
####
|
|
3658
|
+
#### getFiltersByScopesIds(filterData, scopes)
|
|
3558
3659
|
|
|
3559
|
-
|
|
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
|
|
3660
|
+
Gets filters from Filter Data by Scopes/Scope IDs.
|
|
3569
3661
|
|
|
3570
3662
|
|
|
3571
3663
|
|
|
@@ -3574,8 +3666,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3574
3666
|
|
|
3575
3667
|
| Name | Type | Description | |
|
|
3576
3668
|
| ---- | ---- | ----------- | -------- |
|
|
3577
|
-
| filterData | | The
|
|
3578
|
-
|
|
|
3669
|
+
| filterData | | The filter data | |
|
|
3670
|
+
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3579
3671
|
|
|
3580
3672
|
|
|
3581
3673
|
|
|
@@ -3583,17 +3675,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3583
3675
|
##### Returns
|
|
3584
3676
|
|
|
3585
3677
|
|
|
3586
|
-
- a new Filter
|
|
3678
|
+
- a new Filter Data
|
|
3587
3679
|
|
|
3588
3680
|
|
|
3589
3681
|
|
|
3590
3682
|
|
|
3591
|
-
### dist/filters/helpers/common/
|
|
3683
|
+
### dist/filters/helpers/common/getFiltersByVisibility.js
|
|
3592
3684
|
|
|
3593
3685
|
|
|
3594
|
-
####
|
|
3686
|
+
#### getFiltersByVisibility(filterData, scopes)
|
|
3595
3687
|
|
|
3596
|
-
|
|
3688
|
+
Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
3597
3689
|
|
|
3598
3690
|
|
|
3599
3691
|
|
|
@@ -3602,8 +3694,8 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3602
3694
|
|
|
3603
3695
|
| Name | Type | Description | |
|
|
3604
3696
|
| ---- | ---- | ----------- | -------- |
|
|
3605
|
-
| filterData | |
|
|
3606
|
-
| scopes | |
|
|
3697
|
+
| filterData | | a Filter Data or UI Filter Data | |
|
|
3698
|
+
| scopes | | a Scopes/Scope IDs array | |
|
|
3607
3699
|
|
|
3608
3700
|
|
|
3609
3701
|
|
|
@@ -3611,17 +3703,17 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3611
3703
|
##### Returns
|
|
3612
3704
|
|
|
3613
3705
|
|
|
3614
|
-
-
|
|
3706
|
+
- a new Filter Data
|
|
3615
3707
|
|
|
3616
3708
|
|
|
3617
3709
|
|
|
3618
3710
|
|
|
3619
|
-
### dist/filters/helpers/common/
|
|
3711
|
+
### dist/filters/helpers/common/getMergeFiltersSettings.js
|
|
3620
3712
|
|
|
3621
3713
|
|
|
3622
|
-
####
|
|
3714
|
+
#### getMergeFiltersSettings(settings)
|
|
3623
3715
|
|
|
3624
|
-
|
|
3716
|
+
Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
|
|
3625
3717
|
|
|
3626
3718
|
|
|
3627
3719
|
|
|
@@ -3630,7 +3722,7 @@ Get an string of the properties of the given filter column.
|
|
|
3630
3722
|
|
|
3631
3723
|
| Name | Type | Description | |
|
|
3632
3724
|
| ---- | ---- | ----------- | -------- |
|
|
3633
|
-
|
|
|
3725
|
+
| settings | | an object to the MergeFilters settings | |
|
|
3634
3726
|
|
|
3635
3727
|
|
|
3636
3728
|
|
|
@@ -3638,17 +3730,17 @@ Get an string of the properties of the given filter column.
|
|
|
3638
3730
|
##### Returns
|
|
3639
3731
|
|
|
3640
3732
|
|
|
3641
|
-
-
|
|
3733
|
+
- a new MergeFilters settings object.
|
|
3642
3734
|
|
|
3643
3735
|
|
|
3644
3736
|
|
|
3645
3737
|
|
|
3646
|
-
### dist/filters/helpers/common/
|
|
3738
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3647
3739
|
|
|
3648
3740
|
|
|
3649
|
-
####
|
|
3741
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3650
3742
|
|
|
3651
|
-
|
|
3743
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3652
3744
|
|
|
3653
3745
|
|
|
3654
3746
|
|
|
@@ -3657,7 +3749,7 @@ Gets the Filter Label + Column label
|
|
|
3657
3749
|
|
|
3658
3750
|
| Name | Type | Description | |
|
|
3659
3751
|
| ---- | ---- | ----------- | -------- |
|
|
3660
|
-
|
|
|
3752
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3661
3753
|
|
|
3662
3754
|
|
|
3663
3755
|
|
|
@@ -3665,28 +3757,17 @@ Gets the Filter Label + Column label
|
|
|
3665
3757
|
##### Returns
|
|
3666
3758
|
|
|
3667
3759
|
|
|
3668
|
-
- a
|
|
3760
|
+
- a new ParamsToGetFilter settings object.
|
|
3669
3761
|
|
|
3670
3762
|
|
|
3671
3763
|
|
|
3672
3764
|
|
|
3673
|
-
### dist/filters/helpers/common/
|
|
3765
|
+
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3674
3766
|
|
|
3675
3767
|
|
|
3676
|
-
####
|
|
3768
|
+
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3677
3769
|
|
|
3678
|
-
|
|
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
|
|
3770
|
+
Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
3690
3771
|
|
|
3691
3772
|
|
|
3692
3773
|
|
|
@@ -3695,7 +3776,8 @@ The order of the epression ID is:
|
|
|
3695
3776
|
|
|
3696
3777
|
| Name | Type | Description | |
|
|
3697
3778
|
| ---- | ---- | ----------- | -------- |
|
|
3698
|
-
|
|
|
3779
|
+
| filterData | | the filter data or the UI filter data. | |
|
|
3780
|
+
| qrveyid | | The Qrvey ID | |
|
|
3699
3781
|
|
|
3700
3782
|
|
|
3701
3783
|
|
|
@@ -3703,17 +3785,17 @@ The order of the epression ID is:
|
|
|
3703
3785
|
##### Returns
|
|
3704
3786
|
|
|
3705
3787
|
|
|
3706
|
-
-
|
|
3788
|
+
- true: the filter data has filters by the Qrvey ID
|
|
3707
3789
|
|
|
3708
3790
|
|
|
3709
3791
|
|
|
3710
3792
|
|
|
3711
|
-
### dist/filters/helpers/common/
|
|
3793
|
+
### dist/filters/helpers/common/isBetweenValidator.js
|
|
3712
3794
|
|
|
3713
3795
|
|
|
3714
|
-
####
|
|
3796
|
+
#### isBetweenValidator(validator)
|
|
3715
3797
|
|
|
3716
|
-
|
|
3798
|
+
Validates if the given validator is a Between type
|
|
3717
3799
|
|
|
3718
3800
|
|
|
3719
3801
|
|
|
@@ -3722,7 +3804,7 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3722
3804
|
|
|
3723
3805
|
| Name | Type | Description | |
|
|
3724
3806
|
| ---- | ---- | ----------- | -------- |
|
|
3725
|
-
|
|
|
3807
|
+
| validator | | The validator | |
|
|
3726
3808
|
|
|
3727
3809
|
|
|
3728
3810
|
|
|
@@ -3730,26 +3812,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
|
|
|
3730
3812
|
##### Returns
|
|
3731
3813
|
|
|
3732
3814
|
|
|
3733
|
-
-
|
|
3815
|
+
- true: it is a between validator; false: it is not a between validator
|
|
3734
3816
|
|
|
3735
3817
|
|
|
3736
3818
|
|
|
3737
3819
|
|
|
3738
|
-
### dist/filters/helpers/common/
|
|
3820
|
+
### dist/filters/helpers/common/isDateDistinctProperty.js
|
|
3739
3821
|
|
|
3740
3822
|
|
|
3741
|
-
####
|
|
3823
|
+
#### isDateDistinctProperty(column, property)
|
|
3742
3824
|
|
|
3743
|
-
|
|
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
|
|
3825
|
+
Determines if the filter column and property is a distinct group dates type
|
|
3753
3826
|
|
|
3754
3827
|
|
|
3755
3828
|
|
|
@@ -3758,8 +3831,8 @@ The validation to filter the stored filter is depending on:
|
|
|
3758
3831
|
|
|
3759
3832
|
| Name | Type | Description | |
|
|
3760
3833
|
| ---- | ---- | ----------- | -------- |
|
|
3761
|
-
|
|
|
3762
|
-
|
|
|
3834
|
+
| column | | The filter column | |
|
|
3835
|
+
| property | | The filter property | |
|
|
3763
3836
|
|
|
3764
3837
|
|
|
3765
3838
|
|
|
@@ -3767,17 +3840,17 @@ The validation to filter the stored filter is depending on:
|
|
|
3767
3840
|
##### Returns
|
|
3768
3841
|
|
|
3769
3842
|
|
|
3770
|
-
-
|
|
3843
|
+
- True if the given property is included from distinct group dates type
|
|
3771
3844
|
|
|
3772
3845
|
|
|
3773
3846
|
|
|
3774
3847
|
|
|
3775
|
-
### dist/filters/helpers/common/
|
|
3848
|
+
### dist/filters/helpers/common/isInValidator.js
|
|
3776
3849
|
|
|
3777
3850
|
|
|
3778
|
-
####
|
|
3851
|
+
#### isInValidator(validator)
|
|
3779
3852
|
|
|
3780
|
-
|
|
3853
|
+
Validates if the given validator is a In type
|
|
3781
3854
|
|
|
3782
3855
|
|
|
3783
3856
|
|
|
@@ -3786,8 +3859,7 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3786
3859
|
|
|
3787
3860
|
| Name | Type | Description | |
|
|
3788
3861
|
| ---- | ---- | ----------- | -------- |
|
|
3789
|
-
|
|
|
3790
|
-
| scopes | | collection of scopes types | |
|
|
3862
|
+
| validator | | The validator | |
|
|
3791
3863
|
|
|
3792
3864
|
|
|
3793
3865
|
|
|
@@ -3795,17 +3867,17 @@ Filters and gets a Filter Data by the given scopes
|
|
|
3795
3867
|
##### Returns
|
|
3796
3868
|
|
|
3797
3869
|
|
|
3798
|
-
-
|
|
3870
|
+
- true: it is a In validator; false: it is not a In validator
|
|
3799
3871
|
|
|
3800
3872
|
|
|
3801
3873
|
|
|
3802
3874
|
|
|
3803
|
-
### dist/filters/helpers/common/
|
|
3875
|
+
### dist/filters/helpers/common/isNullValidator.js
|
|
3804
3876
|
|
|
3805
3877
|
|
|
3806
|
-
####
|
|
3878
|
+
#### isNullValidator(validator)
|
|
3807
3879
|
|
|
3808
|
-
|
|
3880
|
+
Checks if the given validator is a Null type.
|
|
3809
3881
|
|
|
3810
3882
|
|
|
3811
3883
|
|
|
@@ -3814,8 +3886,7 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3814
3886
|
|
|
3815
3887
|
| Name | Type | Description | |
|
|
3816
3888
|
| ---- | ---- | ----------- | -------- |
|
|
3817
|
-
|
|
|
3818
|
-
| scopes | | The collection of Scopes/Scope IDs | |
|
|
3889
|
+
| validator | | The Filter Validator | |
|
|
3819
3890
|
|
|
3820
3891
|
|
|
3821
3892
|
|
|
@@ -3823,17 +3894,17 @@ Gets filters from Filter Data by Scopes/Scope IDs.
|
|
|
3823
3894
|
##### Returns
|
|
3824
3895
|
|
|
3825
3896
|
|
|
3826
|
-
- a
|
|
3897
|
+
- True: It is a Null Validator; False: It is not a Null Validator.
|
|
3827
3898
|
|
|
3828
3899
|
|
|
3829
3900
|
|
|
3830
3901
|
|
|
3831
|
-
### dist/filters/helpers/common/
|
|
3902
|
+
### dist/filters/helpers/common/isRangeValidator.js
|
|
3832
3903
|
|
|
3833
3904
|
|
|
3834
|
-
####
|
|
3905
|
+
#### isRangeValidator(validator)
|
|
3835
3906
|
|
|
3836
|
-
|
|
3907
|
+
Validates if the given validator is a Range type. Range type means the value has min and max values to filter
|
|
3837
3908
|
|
|
3838
3909
|
|
|
3839
3910
|
|
|
@@ -3842,8 +3913,7 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3842
3913
|
|
|
3843
3914
|
| Name | Type | Description | |
|
|
3844
3915
|
| ---- | ---- | ----------- | -------- |
|
|
3845
|
-
|
|
|
3846
|
-
| scopes | | a Scopes/Scope IDs array | |
|
|
3916
|
+
| validator | | The filter validator | |
|
|
3847
3917
|
|
|
3848
3918
|
|
|
3849
3919
|
|
|
@@ -3851,17 +3921,17 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3851
3921
|
##### Returns
|
|
3852
3922
|
|
|
3853
3923
|
|
|
3854
|
-
- a
|
|
3924
|
+
- true: it is a range validator
|
|
3855
3925
|
|
|
3856
3926
|
|
|
3857
3927
|
|
|
3858
3928
|
|
|
3859
|
-
### dist/filters/helpers/common/
|
|
3929
|
+
### dist/filters/helpers/common/isRegularValidator.js
|
|
3860
3930
|
|
|
3861
3931
|
|
|
3862
|
-
####
|
|
3932
|
+
#### isRegularValidator(validator)
|
|
3863
3933
|
|
|
3864
|
-
|
|
3934
|
+
Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
|
|
3865
3935
|
|
|
3866
3936
|
|
|
3867
3937
|
|
|
@@ -3870,7 +3940,7 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3870
3940
|
|
|
3871
3941
|
| Name | Type | Description | |
|
|
3872
3942
|
| ---- | ---- | ----------- | -------- |
|
|
3873
|
-
|
|
|
3943
|
+
| validator | | The filter validator | |
|
|
3874
3944
|
|
|
3875
3945
|
|
|
3876
3946
|
|
|
@@ -3878,17 +3948,17 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3878
3948
|
##### Returns
|
|
3879
3949
|
|
|
3880
3950
|
|
|
3881
|
-
-
|
|
3951
|
+
- true: it is a range validator
|
|
3882
3952
|
|
|
3883
3953
|
|
|
3884
3954
|
|
|
3885
3955
|
|
|
3886
|
-
### dist/filters/helpers/common/
|
|
3956
|
+
### dist/filters/helpers/common/mergeFilters.js
|
|
3887
3957
|
|
|
3888
3958
|
|
|
3889
|
-
####
|
|
3959
|
+
#### mergeFilters(filterData1, filterData2, overwriteValues)
|
|
3890
3960
|
|
|
3891
|
-
|
|
3961
|
+
Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
|
|
3892
3962
|
|
|
3893
3963
|
|
|
3894
3964
|
|
|
@@ -3897,7 +3967,9 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3897
3967
|
|
|
3898
3968
|
| Name | Type | Description | |
|
|
3899
3969
|
| ---- | ---- | ----------- | -------- |
|
|
3900
|
-
|
|
|
3970
|
+
| filterData1 | | The target filter data | |
|
|
3971
|
+
| filterData2 | | the filter data to be merged | |
|
|
3972
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3901
3973
|
|
|
3902
3974
|
|
|
3903
3975
|
|
|
@@ -3905,17 +3977,38 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3905
3977
|
##### Returns
|
|
3906
3978
|
|
|
3907
3979
|
|
|
3908
|
-
- a new
|
|
3980
|
+
- a new filter data structure
|
|
3909
3981
|
|
|
3910
3982
|
|
|
3911
3983
|
|
|
3984
|
+
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
3912
3985
|
|
|
3913
|
-
|
|
3986
|
+
Gets a new scope structure array by merging two scope structures
|
|
3914
3987
|
|
|
3915
3988
|
|
|
3916
|
-
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3917
3989
|
|
|
3918
|
-
|
|
3990
|
+
|
|
3991
|
+
##### Parameters
|
|
3992
|
+
|
|
3993
|
+
| Name | Type | Description | |
|
|
3994
|
+
| ---- | ---- | ----------- | -------- |
|
|
3995
|
+
| scopes1 | | the target scope structure | |
|
|
3996
|
+
| scopes2 | | the scope to be merged | |
|
|
3997
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3998
|
+
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
##### Returns
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
- a new scope structure array
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
|
|
4009
|
+
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
4010
|
+
|
|
4011
|
+
Gets a new dataset structure array by merging two dataset structures
|
|
3919
4012
|
|
|
3920
4013
|
|
|
3921
4014
|
|
|
@@ -3924,8 +4017,9 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3924
4017
|
|
|
3925
4018
|
| Name | Type | Description | |
|
|
3926
4019
|
| ---- | ---- | ----------- | -------- |
|
|
3927
|
-
|
|
|
3928
|
-
|
|
|
4020
|
+
| datasets1 | | the target dataset structure | |
|
|
4021
|
+
| datasets2 | | the dataset to be merged | |
|
|
4022
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
3929
4023
|
|
|
3930
4024
|
|
|
3931
4025
|
|
|
@@ -3933,17 +4027,38 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3933
4027
|
##### Returns
|
|
3934
4028
|
|
|
3935
4029
|
|
|
3936
|
-
-
|
|
4030
|
+
- a new dataset structure array
|
|
3937
4031
|
|
|
3938
4032
|
|
|
3939
4033
|
|
|
4034
|
+
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
3940
4035
|
|
|
3941
|
-
|
|
4036
|
+
Gets a new filter structure array by merging two filter structures
|
|
3942
4037
|
|
|
3943
4038
|
|
|
3944
|
-
#### isBetweenValidator(validator)
|
|
3945
4039
|
|
|
3946
|
-
|
|
4040
|
+
|
|
4041
|
+
##### Parameters
|
|
4042
|
+
|
|
4043
|
+
| Name | Type | Description | |
|
|
4044
|
+
| ---- | ---- | ----------- | -------- |
|
|
4045
|
+
| filters1 | | the target filter structure | |
|
|
4046
|
+
| filters2 | | the filter to be merged | |
|
|
4047
|
+
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
##### Returns
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
- a new filter structure array
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
#### mergeValues(filter1, filter2, overwrite)
|
|
4060
|
+
|
|
4061
|
+
Gets a new value structure array by merging two value structures
|
|
3947
4062
|
|
|
3948
4063
|
|
|
3949
4064
|
|
|
@@ -3952,7 +4067,9 @@ Validates if the given validator is a Between type
|
|
|
3952
4067
|
|
|
3953
4068
|
| Name | Type | Description | |
|
|
3954
4069
|
| ---- | ---- | ----------- | -------- |
|
|
3955
|
-
|
|
|
4070
|
+
| filter1 | | the target filter structure | |
|
|
4071
|
+
| filter2 | | the filter to be used to merge the values | |
|
|
4072
|
+
| overwrite | | Flag to overwrite or not the filter values | |
|
|
3956
4073
|
|
|
3957
4074
|
|
|
3958
4075
|
|
|
@@ -3960,17 +4077,17 @@ Validates if the given validator is a Between type
|
|
|
3960
4077
|
##### Returns
|
|
3961
4078
|
|
|
3962
4079
|
|
|
3963
|
-
-
|
|
4080
|
+
- a new value structure array
|
|
3964
4081
|
|
|
3965
4082
|
|
|
3966
4083
|
|
|
3967
4084
|
|
|
3968
|
-
### dist/filters/helpers/common/
|
|
4085
|
+
### dist/filters/helpers/common/resolveDatasetConditions.js
|
|
3969
4086
|
|
|
3970
4087
|
|
|
3971
|
-
####
|
|
4088
|
+
#### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
3972
4089
|
|
|
3973
|
-
|
|
4090
|
+
Resolves the conditions by given params
|
|
3974
4091
|
|
|
3975
4092
|
|
|
3976
4093
|
|
|
@@ -3979,8 +4096,10 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3979
4096
|
|
|
3980
4097
|
| Name | Type | Description | |
|
|
3981
4098
|
| ---- | ---- | ----------- | -------- |
|
|
3982
|
-
|
|
|
3983
|
-
|
|
|
4099
|
+
| filter | | The dataset structure | |
|
|
4100
|
+
| params | | given parameters to validate the dataset | |
|
|
4101
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4102
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
3984
4103
|
|
|
3985
4104
|
|
|
3986
4105
|
|
|
@@ -3988,17 +4107,17 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3988
4107
|
##### Returns
|
|
3989
4108
|
|
|
3990
4109
|
|
|
3991
|
-
-
|
|
4110
|
+
- true: the condition is satisfied
|
|
3992
4111
|
|
|
3993
4112
|
|
|
3994
4113
|
|
|
3995
4114
|
|
|
3996
|
-
### dist/filters/helpers/common/
|
|
4115
|
+
### dist/filters/helpers/common/resolveFilterConditions.js
|
|
3997
4116
|
|
|
3998
4117
|
|
|
3999
|
-
####
|
|
4118
|
+
#### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
4000
4119
|
|
|
4001
|
-
|
|
4120
|
+
Resolves the conditions by given params
|
|
4002
4121
|
|
|
4003
4122
|
|
|
4004
4123
|
|
|
@@ -4007,7 +4126,10 @@ Validates if the given validator is a In type
|
|
|
4007
4126
|
|
|
4008
4127
|
| Name | Type | Description | |
|
|
4009
4128
|
| ---- | ---- | ----------- | -------- |
|
|
4010
|
-
|
|
|
4129
|
+
| filter | | The filter | |
|
|
4130
|
+
| params | | given parameters to validate the filter | |
|
|
4131
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4132
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4011
4133
|
|
|
4012
4134
|
|
|
4013
4135
|
|
|
@@ -4015,17 +4137,17 @@ Validates if the given validator is a In type
|
|
|
4015
4137
|
##### Returns
|
|
4016
4138
|
|
|
4017
4139
|
|
|
4018
|
-
- true:
|
|
4140
|
+
- true: the condition is satisfied
|
|
4019
4141
|
|
|
4020
4142
|
|
|
4021
4143
|
|
|
4022
4144
|
|
|
4023
|
-
### dist/filters/helpers/common/
|
|
4145
|
+
### dist/filters/helpers/common/resolveScopeConditions.js
|
|
4024
4146
|
|
|
4025
4147
|
|
|
4026
|
-
####
|
|
4148
|
+
#### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
|
|
4027
4149
|
|
|
4028
|
-
|
|
4150
|
+
Resolves the conditions by given params
|
|
4029
4151
|
|
|
4030
4152
|
|
|
4031
4153
|
|
|
@@ -4034,7 +4156,10 @@ Checks if the given validator is a Null type.
|
|
|
4034
4156
|
|
|
4035
4157
|
| Name | Type | Description | |
|
|
4036
4158
|
| ---- | ---- | ----------- | -------- |
|
|
4037
|
-
|
|
|
4159
|
+
| filter | | The filter scope structure | |
|
|
4160
|
+
| params | | given parameters to validate the filter | |
|
|
4161
|
+
| letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | |
|
|
4162
|
+
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4038
4163
|
|
|
4039
4164
|
|
|
4040
4165
|
|
|
@@ -4042,17 +4167,17 @@ Checks if the given validator is a Null type.
|
|
|
4042
4167
|
##### Returns
|
|
4043
4168
|
|
|
4044
4169
|
|
|
4045
|
-
-
|
|
4170
|
+
- true: the condition is satisfied
|
|
4046
4171
|
|
|
4047
4172
|
|
|
4048
4173
|
|
|
4049
4174
|
|
|
4050
|
-
### dist/filters/helpers/
|
|
4175
|
+
### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
|
|
4051
4176
|
|
|
4052
4177
|
|
|
4053
|
-
####
|
|
4178
|
+
#### excludeUIFiltersByAggregate(uFilters)
|
|
4054
4179
|
|
|
4055
|
-
|
|
4180
|
+
Excludes Aggregate Filters in the Flattened UI Filters array
|
|
4056
4181
|
|
|
4057
4182
|
|
|
4058
4183
|
|
|
@@ -4061,7 +4186,7 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
4061
4186
|
|
|
4062
4187
|
| Name | Type | Description | |
|
|
4063
4188
|
| ---- | ---- | ----------- | -------- |
|
|
4064
|
-
|
|
|
4189
|
+
| uFilters | | Collection of Flat UI Filters | |
|
|
4065
4190
|
|
|
4066
4191
|
|
|
4067
4192
|
|
|
@@ -4069,17 +4194,17 @@ Validates if the given validator is a Range type. Range type means the value has
|
|
|
4069
4194
|
##### Returns
|
|
4070
4195
|
|
|
4071
4196
|
|
|
4072
|
-
-
|
|
4197
|
+
- a new Flat UI Filters that were excluded the aggregate filters
|
|
4073
4198
|
|
|
4074
4199
|
|
|
4075
4200
|
|
|
4076
4201
|
|
|
4077
|
-
### dist/filters/helpers/
|
|
4202
|
+
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
4078
4203
|
|
|
4079
4204
|
|
|
4080
|
-
####
|
|
4205
|
+
#### getFilterPropertyLabel(filter)
|
|
4081
4206
|
|
|
4082
|
-
|
|
4207
|
+
Gets the label of the filter property
|
|
4083
4208
|
|
|
4084
4209
|
|
|
4085
4210
|
|
|
@@ -4088,7 +4213,7 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
4088
4213
|
|
|
4089
4214
|
| Name | Type | Description | |
|
|
4090
4215
|
| ---- | ---- | ----------- | -------- |
|
|
4091
|
-
|
|
|
4216
|
+
| filter | | The UI Filter | |
|
|
4092
4217
|
|
|
4093
4218
|
|
|
4094
4219
|
|
|
@@ -4096,17 +4221,17 @@ Validates if the given validator is a regular type. Regular type means the filte
|
|
|
4096
4221
|
##### Returns
|
|
4097
4222
|
|
|
4098
4223
|
|
|
4099
|
-
-
|
|
4224
|
+
- a string of the filter property label
|
|
4100
4225
|
|
|
4101
4226
|
|
|
4102
4227
|
|
|
4103
4228
|
|
|
4104
|
-
### dist/filters/helpers/
|
|
4229
|
+
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
4105
4230
|
|
|
4106
4231
|
|
|
4107
|
-
####
|
|
4232
|
+
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
4108
4233
|
|
|
4109
|
-
|
|
4234
|
+
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
4110
4235
|
|
|
4111
4236
|
|
|
4112
4237
|
|
|
@@ -4115,9 +4240,8 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
4115
4240
|
|
|
4116
4241
|
| Name | Type | Description | |
|
|
4117
4242
|
| ---- | ---- | ----------- | -------- |
|
|
4118
|
-
|
|
|
4119
|
-
|
|
|
4120
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4243
|
+
| uFilters | | The Flatten UI Filters | |
|
|
4244
|
+
| scopes | | collection of scopes types | |
|
|
4121
4245
|
|
|
4122
4246
|
|
|
4123
4247
|
|
|
@@ -4125,13 +4249,17 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
|
|
|
4125
4249
|
##### Returns
|
|
4126
4250
|
|
|
4127
4251
|
|
|
4128
|
-
-
|
|
4252
|
+
- The new array of UI Flattened filters
|
|
4129
4253
|
|
|
4130
4254
|
|
|
4131
4255
|
|
|
4132
|
-
#### mergeScopes(scopes1, scopes2, overwriteValues)
|
|
4133
4256
|
|
|
4134
|
-
|
|
4257
|
+
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
4258
|
+
|
|
4259
|
+
|
|
4260
|
+
#### getOutputFormatByColumn(column, datasets)
|
|
4261
|
+
|
|
4262
|
+
Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
|
|
4135
4263
|
|
|
4136
4264
|
|
|
4137
4265
|
|
|
@@ -4140,9 +4268,8 @@ Gets a new scope structure array by merging two scope structures
|
|
|
4140
4268
|
|
|
4141
4269
|
| Name | Type | Description | |
|
|
4142
4270
|
| ---- | ---- | ----------- | -------- |
|
|
4143
|
-
|
|
|
4144
|
-
|
|
|
4145
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4271
|
+
| column | | The column | |
|
|
4272
|
+
| datasets | | array of datasets | |
|
|
4146
4273
|
|
|
4147
4274
|
|
|
4148
4275
|
|
|
@@ -4150,13 +4277,18 @@ Gets a new scope structure array by merging two scope structures
|
|
|
4150
4277
|
##### Returns
|
|
4151
4278
|
|
|
4152
4279
|
|
|
4153
|
-
-
|
|
4280
|
+
- The output format object
|
|
4154
4281
|
|
|
4155
4282
|
|
|
4156
4283
|
|
|
4157
|
-
#### mergeDatasets(datasets1, datasets2, overwriteValues)
|
|
4158
4284
|
|
|
4159
|
-
|
|
4285
|
+
### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
|
|
4286
|
+
|
|
4287
|
+
|
|
4288
|
+
#### getQrveyIdsByUIFilters(uiFilter)
|
|
4289
|
+
|
|
4290
|
+
Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
4291
|
+
Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
4160
4292
|
|
|
4161
4293
|
|
|
4162
4294
|
|
|
@@ -4165,9 +4297,7 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
4165
4297
|
|
|
4166
4298
|
| Name | Type | Description | |
|
|
4167
4299
|
| ---- | ---- | ----------- | -------- |
|
|
4168
|
-
|
|
|
4169
|
-
| datasets2 | | the dataset to be merged | |
|
|
4170
|
-
| overwriteValues | | Flag to overwrite or not the filter values | |
|
|
4300
|
+
| uiFilter | | | |
|
|
4171
4301
|
|
|
4172
4302
|
|
|
4173
4303
|
|
|
@@ -4175,24 +4305,27 @@ Gets a new dataset structure array by merging two dataset structures
|
|
|
4175
4305
|
##### Returns
|
|
4176
4306
|
|
|
4177
4307
|
|
|
4178
|
-
-
|
|
4308
|
+
- `Void`
|
|
4179
4309
|
|
|
4180
4310
|
|
|
4181
4311
|
|
|
4182
|
-
#### mergeFilterss(filters1, filters2, overwriteValues)
|
|
4183
4312
|
|
|
4184
|
-
|
|
4313
|
+
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
4185
4314
|
|
|
4186
4315
|
|
|
4316
|
+
#### getUIFlatFilterByParams()
|
|
4187
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
|
|
4188
4327
|
|
|
4189
|
-
##### Parameters
|
|
4190
4328
|
|
|
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 | |
|
|
4196
4329
|
|
|
4197
4330
|
|
|
4198
4331
|
|
|
@@ -4200,13 +4333,46 @@ Gets a new filter structure array by merging two filter structures
|
|
|
4200
4333
|
##### Returns
|
|
4201
4334
|
|
|
4202
4335
|
|
|
4203
|
-
-
|
|
4336
|
+
- The index of the uFilter array or the Filter object s
|
|
4204
4337
|
|
|
4205
4338
|
|
|
4206
4339
|
|
|
4207
|
-
#### mergeValues(filter1, filter2, overwrite)
|
|
4208
4340
|
|
|
4209
|
-
|
|
4341
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
#### getUIFlatFiltersByParams()
|
|
4345
|
+
|
|
4346
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4347
|
+
The validation to filter the stored filter is depending on:
|
|
4348
|
+
- Column
|
|
4349
|
+
- Qrvey ID,
|
|
4350
|
+
- Scope type
|
|
4351
|
+
- Scope ID
|
|
4352
|
+
- Panel ID
|
|
4353
|
+
- Validator type
|
|
4354
|
+
- Property type
|
|
4355
|
+
- Enabled flags
|
|
4356
|
+
|
|
4357
|
+
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
|
|
4361
|
+
|
|
4362
|
+
##### Returns
|
|
4363
|
+
|
|
4364
|
+
|
|
4365
|
+
- The index of the uFilter array or the Filter object s
|
|
4366
|
+
|
|
4367
|
+
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
4371
|
+
|
|
4372
|
+
|
|
4373
|
+
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
4374
|
+
|
|
4375
|
+
Filters and gets a UI Flatten Filters by the given scopes
|
|
4210
4376
|
|
|
4211
4377
|
|
|
4212
4378
|
|
|
@@ -4215,9 +4381,8 @@ Gets a new value structure array by merging two value structures
|
|
|
4215
4381
|
|
|
4216
4382
|
| Name | Type | Description | |
|
|
4217
4383
|
| ---- | ---- | ----------- | -------- |
|
|
4218
|
-
|
|
|
4219
|
-
|
|
|
4220
|
-
| overwrite | | Flag to overwrite or not the filter values | |
|
|
4384
|
+
| uFilters | | The Flatten UI Filters | |
|
|
4385
|
+
| scopes | | collection of scopes types | |
|
|
4221
4386
|
|
|
4222
4387
|
|
|
4223
4388
|
|
|
@@ -4225,17 +4390,17 @@ Gets a new value structure array by merging two value structures
|
|
|
4225
4390
|
##### Returns
|
|
4226
4391
|
|
|
4227
4392
|
|
|
4228
|
-
-
|
|
4393
|
+
- The new array of UI Flattened filters
|
|
4229
4394
|
|
|
4230
4395
|
|
|
4231
4396
|
|
|
4232
4397
|
|
|
4233
|
-
### dist/filters/helpers/
|
|
4398
|
+
### dist/filters/helpers/ui/getUIValues.js
|
|
4234
4399
|
|
|
4235
4400
|
|
|
4236
|
-
####
|
|
4401
|
+
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
4402
|
+
|
|
4237
4403
|
|
|
4238
|
-
Resolves the conditions by given params
|
|
4239
4404
|
|
|
4240
4405
|
|
|
4241
4406
|
|
|
@@ -4244,10 +4409,9 @@ Resolves the conditions by given params
|
|
|
4244
4409
|
|
|
4245
4410
|
| Name | Type | Description | |
|
|
4246
4411
|
| ---- | ---- | ----------- | -------- |
|
|
4247
|
-
| filter | |
|
|
4248
|
-
|
|
|
4249
|
-
|
|
|
4250
|
-
| letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | |
|
|
4412
|
+
| filter | | | |
|
|
4413
|
+
| addEnableds | | | |
|
|
4414
|
+
| rankingGroupIndex | | | |
|
|
4251
4415
|
|
|
4252
4416
|
|
|
4253
4417
|
|
|
@@ -4255,17 +4419,17 @@ Resolves the conditions by given params
|
|
|
4255
4419
|
##### Returns
|
|
4256
4420
|
|
|
4257
4421
|
|
|
4258
|
-
-
|
|
4422
|
+
-
|
|
4259
4423
|
|
|
4260
4424
|
|
|
4261
4425
|
|
|
4262
4426
|
|
|
4263
|
-
### dist/filters/helpers/
|
|
4427
|
+
### dist/filters/helpers/ui/getUpdatedUIFilters.js
|
|
4264
4428
|
|
|
4265
4429
|
|
|
4266
|
-
####
|
|
4430
|
+
#### getUpdatedUIFilters(data, datasets)
|
|
4267
4431
|
|
|
4268
|
-
|
|
4432
|
+
Gets a new UI Filter structure with a datasets/columns info updates
|
|
4269
4433
|
|
|
4270
4434
|
|
|
4271
4435
|
|
|
@@ -4274,10 +4438,8 @@ Resolves the conditions by given params
|
|
|
4274
4438
|
|
|
4275
4439
|
| Name | Type | Description | |
|
|
4276
4440
|
| ---- | ---- | ----------- | -------- |
|
|
4277
|
-
|
|
|
4278
|
-
|
|
|
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. | |
|
|
4441
|
+
| data | | The UI Filter structure | |
|
|
4442
|
+
| datasets | | An array of datasets/column info used for updating the data | |
|
|
4281
4443
|
|
|
4282
4444
|
|
|
4283
4445
|
|
|
@@ -4285,17 +4447,17 @@ Resolves the conditions by given params
|
|
|
4285
4447
|
##### Returns
|
|
4286
4448
|
|
|
4287
4449
|
|
|
4288
|
-
-
|
|
4450
|
+
- A new UI FIlter structure
|
|
4289
4451
|
|
|
4290
4452
|
|
|
4291
4453
|
|
|
4292
4454
|
|
|
4293
|
-
### dist/filters/helpers/
|
|
4455
|
+
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
4294
4456
|
|
|
4295
4457
|
|
|
4296
|
-
####
|
|
4458
|
+
#### resolveUIFlatFilterByParams(filter, params)
|
|
4297
4459
|
|
|
4298
|
-
Resolves
|
|
4460
|
+
Resolves conditions between UI flattened filter and given parameters
|
|
4299
4461
|
|
|
4300
4462
|
|
|
4301
4463
|
|
|
@@ -4304,10 +4466,8 @@ Resolves the conditions by given params
|
|
|
4304
4466
|
|
|
4305
4467
|
| Name | Type | Description | |
|
|
4306
4468
|
| ---- | ---- | ----------- | -------- |
|
|
4307
|
-
| filter | |
|
|
4308
|
-
| params | |
|
|
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. | |
|
|
4469
|
+
| filter | | UI Flatten Filter | |
|
|
4470
|
+
| params | | Parameters to validate | |
|
|
4311
4471
|
|
|
4312
4472
|
|
|
4313
4473
|
|
|
@@ -4315,7 +4475,7 @@ Resolves the conditions by given params
|
|
|
4315
4475
|
##### Returns
|
|
4316
4476
|
|
|
4317
4477
|
|
|
4318
|
-
- true: the
|
|
4478
|
+
- true: the conditions are satisfied.
|
|
4319
4479
|
|
|
4320
4480
|
|
|
4321
4481
|
|