@qrvey/utils 1.2.9-11 → 1.2.9-15
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 +157 -100
- 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/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 +2 -0
- package/dist/cjs/filters/helpers/ui/index.js +2 -0
- package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- 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/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- 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 +8 -6
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -2
- 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/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
- 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 +2 -0
- package/dist/filters/helpers/ui/index.js +2 -0
- package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
- package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- 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 +8 -6
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -2
- 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/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/services/api/getAllDatasets.api.js +2 -1
- package/package.json +1 -1
- package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
- 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 +2 -0
- package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
- package/src/globalization/interfaces/IResourceI18n.ts +2 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
- package/src/globalization/interfaces/dashboard/II18nDashboard.ts +2 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
- package/src/globalization/interfaces/dashboard/index.ts +1 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
- 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 +9 -7
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +6 -0
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +2 -2
- 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/services/api/getAllDatasets.api.ts +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-15*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -2622,7 +2622,7 @@ Get an string of the properties of the given column.
|
|
|
2622
2622
|
### dist/services/api/getAllDatasets.api.js
|
|
2623
2623
|
|
|
2624
2624
|
|
|
2625
|
-
#### getAllDatasets(
|
|
2625
|
+
#### getAllDatasets(config, pickDatasets)
|
|
2626
2626
|
|
|
2627
2627
|
Get a dataset list from a collection of Qrvey IDs
|
|
2628
2628
|
|
|
@@ -2633,7 +2633,8 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2633
2633
|
|
|
2634
2634
|
| Name | Type | Description | |
|
|
2635
2635
|
| ---- | ---- | ----------- | -------- |
|
|
2636
|
-
|
|
|
2636
|
+
| config | | the widget config. Includes the appid and others configuration properties | |
|
|
2637
|
+
| pickDatasets | | Collection of Qrvey IDs for filtering the request | |
|
|
2637
2638
|
|
|
2638
2639
|
|
|
2639
2640
|
|
|
@@ -2701,29 +2702,23 @@ Get a dataset by Qrvey ID
|
|
|
2701
2702
|
|
|
2702
2703
|
|
|
2703
2704
|
|
|
2704
|
-
### dist/
|
|
2705
|
-
|
|
2705
|
+
### dist/typescript/decorators/Throttled.js
|
|
2706
2706
|
|
|
2707
|
-
#### Config()
|
|
2708
2707
|
|
|
2709
|
-
|
|
2710
|
-
Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
|
|
2711
|
-
But for this, is required ask for a property in `snake_case` style
|
|
2708
|
+
#### Throttled(time)
|
|
2712
2709
|
|
|
2710
|
+
(Method Decorator) Throttled Class Method
|
|
2713
2711
|
|
|
2714
2712
|
|
|
2715
2713
|
|
|
2716
2714
|
|
|
2715
|
+
##### Parameters
|
|
2717
2716
|
|
|
2718
|
-
|
|
2717
|
+
| Name | Type | Description | |
|
|
2718
|
+
| ---- | ---- | ----------- | -------- |
|
|
2719
|
+
| time | | (optional) deafult 500 | |
|
|
2719
2720
|
|
|
2720
|
-
```javascript
|
|
2721
|
-
\ @Config() @Prop() settings;
|
|
2722
2721
|
|
|
2723
|
-
someMethod() {
|
|
2724
|
-
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2725
|
-
}
|
|
2726
|
-
```
|
|
2727
2722
|
|
|
2728
2723
|
|
|
2729
2724
|
##### Returns
|
|
@@ -2734,72 +2729,74 @@ someMethod() {
|
|
|
2734
2729
|
|
|
2735
2730
|
|
|
2736
2731
|
|
|
2737
|
-
### dist/
|
|
2732
|
+
### dist/typescript/decorators/Debounce.js
|
|
2738
2733
|
|
|
2739
2734
|
|
|
2740
|
-
####
|
|
2735
|
+
#### Debounce(time)
|
|
2741
2736
|
|
|
2742
|
-
|
|
2737
|
+
(Method Decorator) Debounce Class Method
|
|
2743
2738
|
|
|
2744
2739
|
|
|
2745
2740
|
|
|
2746
2741
|
|
|
2742
|
+
##### Parameters
|
|
2743
|
+
|
|
2744
|
+
| Name | Type | Description | |
|
|
2745
|
+
| ---- | ---- | ----------- | -------- |
|
|
2746
|
+
| time | | (optional) deafult 500 | |
|
|
2747
2747
|
|
|
2748
2748
|
|
|
2749
|
-
##### Returns
|
|
2750
2749
|
|
|
2751
2750
|
|
|
2752
|
-
|
|
2751
|
+
##### Returns
|
|
2753
2752
|
|
|
2754
2753
|
|
|
2754
|
+
- `Void`
|
|
2755
2755
|
|
|
2756
2756
|
|
|
2757
|
-
### dist/stencil/util/getConfig.js
|
|
2758
2757
|
|
|
2759
2758
|
|
|
2760
|
-
|
|
2759
|
+
### dist/stencil/decorators/Config.js
|
|
2761
2760
|
|
|
2762
|
-
verify the Config object type and try to return a parsed Object
|
|
2763
|
-
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2764
|
-
try to find this string as a variable on Windows object
|
|
2765
|
-
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2766
|
-
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2767
2761
|
|
|
2762
|
+
#### Config()
|
|
2768
2763
|
|
|
2764
|
+
Stencil.js - Prop Decorator
|
|
2765
|
+
Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
|
|
2766
|
+
But for this, is required ask for a property in `snake_case` style
|
|
2769
2767
|
|
|
2770
2768
|
|
|
2771
|
-
##### Parameters
|
|
2772
2769
|
|
|
2773
|
-
| Name | Type | Description | |
|
|
2774
|
-
| ---- | ---- | ----------- | -------- |
|
|
2775
|
-
| cfg | | | |
|
|
2776
2770
|
|
|
2777
2771
|
|
|
2778
2772
|
|
|
2773
|
+
##### Examples
|
|
2779
2774
|
|
|
2780
|
-
|
|
2775
|
+
```javascript
|
|
2776
|
+
\ @Config() @Prop() settings;
|
|
2781
2777
|
|
|
2778
|
+
someMethod() {
|
|
2779
|
+
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2780
|
+
}
|
|
2781
|
+
```
|
|
2782
2782
|
|
|
2783
|
-
- `Void`
|
|
2784
2783
|
|
|
2784
|
+
##### Returns
|
|
2785
2785
|
|
|
2786
2786
|
|
|
2787
|
+
- `Void`
|
|
2787
2788
|
|
|
2788
|
-
### dist/typescript/decorators/Debounce.js
|
|
2789
2789
|
|
|
2790
2790
|
|
|
2791
|
-
#### Debounce(time)
|
|
2792
2791
|
|
|
2793
|
-
|
|
2792
|
+
### dist/stencil/util/createRef.js
|
|
2794
2793
|
|
|
2795
2794
|
|
|
2795
|
+
#### createRef()
|
|
2796
2796
|
|
|
2797
|
+
lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
2797
2798
|
|
|
2798
|
-
##### Parameters
|
|
2799
2799
|
|
|
2800
|
-
| Name | Type | Description | |
|
|
2801
|
-
| ---- | ---- | ----------- | -------- |
|
|
2802
|
-
| time | | (optional) deafult 500 | |
|
|
2803
2800
|
|
|
2804
2801
|
|
|
2805
2802
|
|
|
@@ -2807,17 +2804,21 @@ try to find this string as a variable on Windows object
|
|
|
2807
2804
|
##### Returns
|
|
2808
2805
|
|
|
2809
2806
|
|
|
2810
|
-
-
|
|
2807
|
+
- function - Function to use in ref prop in html elements
|
|
2811
2808
|
|
|
2812
2809
|
|
|
2813
2810
|
|
|
2814
2811
|
|
|
2815
|
-
### dist/
|
|
2812
|
+
### dist/stencil/util/getConfig.js
|
|
2816
2813
|
|
|
2817
2814
|
|
|
2818
|
-
####
|
|
2815
|
+
#### getConfig(cfg)
|
|
2819
2816
|
|
|
2820
|
-
|
|
2817
|
+
verify the Config object type and try to return a parsed Object
|
|
2818
|
+
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2819
|
+
try to find this string as a variable on Windows object
|
|
2820
|
+
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2821
|
+
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2821
2822
|
|
|
2822
2823
|
|
|
2823
2824
|
|
|
@@ -2826,7 +2827,7 @@ try to find this string as a variable on Windows object
|
|
|
2826
2827
|
|
|
2827
2828
|
| Name | Type | Description | |
|
|
2828
2829
|
| ---- | ---- | ----------- | -------- |
|
|
2829
|
-
|
|
|
2830
|
+
| cfg | | | |
|
|
2830
2831
|
|
|
2831
2832
|
|
|
2832
2833
|
|
|
@@ -3244,12 +3245,12 @@ Returns a filter builder config object by a any given config
|
|
|
3244
3245
|
|
|
3245
3246
|
|
|
3246
3247
|
|
|
3247
|
-
### dist/filters/helpers/common/
|
|
3248
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3248
3249
|
|
|
3249
3250
|
|
|
3250
|
-
####
|
|
3251
|
+
#### areFiltersEquals(filter1, filter2)
|
|
3251
3252
|
|
|
3252
|
-
|
|
3253
|
+
Validates if both filters are the same
|
|
3253
3254
|
|
|
3254
3255
|
|
|
3255
3256
|
|
|
@@ -3258,7 +3259,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3258
3259
|
|
|
3259
3260
|
| Name | Type | Description | |
|
|
3260
3261
|
| ---- | ---- | ----------- | -------- |
|
|
3261
|
-
|
|
|
3262
|
+
| filter1 | | filter 1 | |
|
|
3263
|
+
| filter2 | | filter 2 | |
|
|
3262
3264
|
|
|
3263
3265
|
|
|
3264
3266
|
|
|
@@ -3266,17 +3268,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
3266
3268
|
##### Returns
|
|
3267
3269
|
|
|
3268
3270
|
|
|
3269
|
-
-
|
|
3271
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
3270
3272
|
|
|
3271
3273
|
|
|
3272
3274
|
|
|
3273
3275
|
|
|
3274
|
-
### dist/filters/helpers/common/
|
|
3276
|
+
### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
|
|
3275
3277
|
|
|
3276
3278
|
|
|
3277
|
-
####
|
|
3279
|
+
#### excludeFiltersByAggregateColumn(filterData)
|
|
3278
3280
|
|
|
3279
|
-
|
|
3281
|
+
Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
3280
3282
|
|
|
3281
3283
|
|
|
3282
3284
|
|
|
@@ -3285,8 +3287,7 @@ Validates if both filters are the same
|
|
|
3285
3287
|
|
|
3286
3288
|
| Name | Type | Description | |
|
|
3287
3289
|
| ---- | ---- | ----------- | -------- |
|
|
3288
|
-
|
|
|
3289
|
-
| filter2 | | filter 2 | |
|
|
3290
|
+
| filterData | | The filter data object | |
|
|
3290
3291
|
|
|
3291
3292
|
|
|
3292
3293
|
|
|
@@ -3294,7 +3295,7 @@ Validates if both filters are the same
|
|
|
3294
3295
|
##### Returns
|
|
3295
3296
|
|
|
3296
3297
|
|
|
3297
|
-
-
|
|
3298
|
+
- The new filter data object that were excluded the aggregate filters
|
|
3298
3299
|
|
|
3299
3300
|
|
|
3300
3301
|
|
|
@@ -3364,12 +3365,12 @@ Excludes and returns a filter data without filters by the given scopes
|
|
|
3364
3365
|
|
|
3365
3366
|
|
|
3366
3367
|
|
|
3367
|
-
### dist/filters/helpers/common/
|
|
3368
|
+
### dist/filters/helpers/common/getFilterLabel.js
|
|
3368
3369
|
|
|
3369
3370
|
|
|
3370
|
-
####
|
|
3371
|
+
#### getFilterLabel(filter)
|
|
3371
3372
|
|
|
3372
|
-
|
|
3373
|
+
Gets the Filter Label + Column label
|
|
3373
3374
|
|
|
3374
3375
|
|
|
3375
3376
|
|
|
@@ -3378,7 +3379,7 @@ Get an string of the properties of the given filter column.
|
|
|
3378
3379
|
|
|
3379
3380
|
| Name | Type | Description | |
|
|
3380
3381
|
| ---- | ---- | ----------- | -------- |
|
|
3381
|
-
|
|
|
3382
|
+
| filter | | the UI filter | |
|
|
3382
3383
|
|
|
3383
3384
|
|
|
3384
3385
|
|
|
@@ -3386,17 +3387,17 @@ Get an string of the properties of the given filter column.
|
|
|
3386
3387
|
##### Returns
|
|
3387
3388
|
|
|
3388
3389
|
|
|
3389
|
-
-
|
|
3390
|
+
- a sring label
|
|
3390
3391
|
|
|
3391
3392
|
|
|
3392
3393
|
|
|
3393
3394
|
|
|
3394
|
-
### dist/filters/helpers/common/
|
|
3395
|
+
### dist/filters/helpers/common/getFilterColumnLabel.js
|
|
3395
3396
|
|
|
3396
3397
|
|
|
3397
|
-
####
|
|
3398
|
+
#### getFilterColumnLabel(column)
|
|
3398
3399
|
|
|
3399
|
-
|
|
3400
|
+
Get an string of the properties of the given filter column.
|
|
3400
3401
|
|
|
3401
3402
|
|
|
3402
3403
|
|
|
@@ -3405,7 +3406,7 @@ Gets the Filter Label + Column label
|
|
|
3405
3406
|
|
|
3406
3407
|
| Name | Type | Description | |
|
|
3407
3408
|
| ---- | ---- | ----------- | -------- |
|
|
3408
|
-
|
|
|
3409
|
+
| column | | The filter column | |
|
|
3409
3410
|
|
|
3410
3411
|
|
|
3411
3412
|
|
|
@@ -3413,7 +3414,7 @@ Gets the Filter Label + Column label
|
|
|
3413
3414
|
##### Returns
|
|
3414
3415
|
|
|
3415
3416
|
|
|
3416
|
-
-
|
|
3417
|
+
- an string with the property, aggregate or calculation label.
|
|
3417
3418
|
|
|
3418
3419
|
|
|
3419
3420
|
|
|
@@ -3631,12 +3632,12 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3631
3632
|
|
|
3632
3633
|
|
|
3633
3634
|
|
|
3634
|
-
### dist/filters/helpers/common/
|
|
3635
|
+
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3635
3636
|
|
|
3636
3637
|
|
|
3637
|
-
####
|
|
3638
|
+
#### haveFiltersByDataset(filterData, qrveyid)
|
|
3638
3639
|
|
|
3639
|
-
|
|
3640
|
+
Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
3640
3641
|
|
|
3641
3642
|
|
|
3642
3643
|
|
|
@@ -3645,7 +3646,8 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3645
3646
|
|
|
3646
3647
|
| Name | Type | Description | |
|
|
3647
3648
|
| ---- | ---- | ----------- | -------- |
|
|
3648
|
-
|
|
|
3649
|
+
| filterData | | the filter data or the UI filter data. | |
|
|
3650
|
+
| qrveyid | | The Qrvey ID | |
|
|
3649
3651
|
|
|
3650
3652
|
|
|
3651
3653
|
|
|
@@ -3653,17 +3655,17 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3653
3655
|
##### Returns
|
|
3654
3656
|
|
|
3655
3657
|
|
|
3656
|
-
-
|
|
3658
|
+
- true: the filter data has filters by the Qrvey ID
|
|
3657
3659
|
|
|
3658
3660
|
|
|
3659
3661
|
|
|
3660
3662
|
|
|
3661
|
-
### dist/filters/helpers/common/
|
|
3663
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3662
3664
|
|
|
3663
3665
|
|
|
3664
|
-
####
|
|
3666
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3665
3667
|
|
|
3666
|
-
|
|
3668
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3667
3669
|
|
|
3668
3670
|
|
|
3669
3671
|
|
|
@@ -3672,8 +3674,7 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3672
3674
|
|
|
3673
3675
|
| Name | Type | Description | |
|
|
3674
3676
|
| ---- | ---- | ----------- | -------- |
|
|
3675
|
-
|
|
|
3676
|
-
| qrveyid | | The Qrvey ID | |
|
|
3677
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3677
3678
|
|
|
3678
3679
|
|
|
3679
3680
|
|
|
@@ -3681,7 +3682,7 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
|
|
|
3681
3682
|
##### Returns
|
|
3682
3683
|
|
|
3683
3684
|
|
|
3684
|
-
-
|
|
3685
|
+
- a new ParamsToGetFilter settings object.
|
|
3685
3686
|
|
|
3686
3687
|
|
|
3687
3688
|
|
|
@@ -3741,12 +3742,12 @@ Determines if the filter column and property is a distinct group dates type
|
|
|
3741
3742
|
|
|
3742
3743
|
|
|
3743
3744
|
|
|
3744
|
-
### dist/filters/helpers/common/
|
|
3745
|
+
### dist/filters/helpers/common/isNullValidator.js
|
|
3745
3746
|
|
|
3746
3747
|
|
|
3747
|
-
####
|
|
3748
|
+
#### isNullValidator(validator)
|
|
3748
3749
|
|
|
3749
|
-
|
|
3750
|
+
Checks if the given validator is a Null type.
|
|
3750
3751
|
|
|
3751
3752
|
|
|
3752
3753
|
|
|
@@ -3755,7 +3756,7 @@ Validates if the given validator is a In type
|
|
|
3755
3756
|
|
|
3756
3757
|
| Name | Type | Description | |
|
|
3757
3758
|
| ---- | ---- | ----------- | -------- |
|
|
3758
|
-
| validator | | The
|
|
3759
|
+
| validator | | The Filter Validator | |
|
|
3759
3760
|
|
|
3760
3761
|
|
|
3761
3762
|
|
|
@@ -3763,17 +3764,17 @@ Validates if the given validator is a In type
|
|
|
3763
3764
|
##### Returns
|
|
3764
3765
|
|
|
3765
3766
|
|
|
3766
|
-
-
|
|
3767
|
+
- True: It is a Null Validator; False: It is not a Null Validator.
|
|
3767
3768
|
|
|
3768
3769
|
|
|
3769
3770
|
|
|
3770
3771
|
|
|
3771
|
-
### dist/filters/helpers/common/
|
|
3772
|
+
### dist/filters/helpers/common/isInValidator.js
|
|
3772
3773
|
|
|
3773
3774
|
|
|
3774
|
-
####
|
|
3775
|
+
#### isInValidator(validator)
|
|
3775
3776
|
|
|
3776
|
-
|
|
3777
|
+
Validates if the given validator is a In type
|
|
3777
3778
|
|
|
3778
3779
|
|
|
3779
3780
|
|
|
@@ -3782,7 +3783,7 @@ Checks if the given validator is a Null type.
|
|
|
3782
3783
|
|
|
3783
3784
|
| Name | Type | Description | |
|
|
3784
3785
|
| ---- | ---- | ----------- | -------- |
|
|
3785
|
-
| validator | | The
|
|
3786
|
+
| validator | | The validator | |
|
|
3786
3787
|
|
|
3787
3788
|
|
|
3788
3789
|
|
|
@@ -3790,7 +3791,7 @@ Checks if the given validator is a Null type.
|
|
|
3790
3791
|
##### Returns
|
|
3791
3792
|
|
|
3792
3793
|
|
|
3793
|
-
-
|
|
3794
|
+
- true: it is a In validator; false: it is not a In validator
|
|
3794
3795
|
|
|
3795
3796
|
|
|
3796
3797
|
|
|
@@ -4150,6 +4151,34 @@ Gets the label of the filter property
|
|
|
4150
4151
|
|
|
4151
4152
|
|
|
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
|
+
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
|
|
4173
|
+
|
|
4174
|
+
##### Returns
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
- The index of the uFilter array or the Filter object s
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
|
|
4153
4182
|
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
4154
4183
|
|
|
4155
4184
|
|
|
@@ -4178,30 +4207,30 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
4178
4207
|
|
|
4179
4208
|
|
|
4180
4209
|
|
|
4181
|
-
### dist/filters/helpers/ui/
|
|
4210
|
+
### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
|
|
4182
4211
|
|
|
4183
4212
|
|
|
4184
|
-
####
|
|
4213
|
+
#### getQrveyIdsByUIFilters(uiFilter)
|
|
4185
4214
|
|
|
4186
|
-
Gets a
|
|
4187
|
-
|
|
4188
|
-
- Column
|
|
4189
|
-
- Qrvey ID,
|
|
4190
|
-
- Scope type
|
|
4191
|
-
- Scope ID
|
|
4192
|
-
- Panel ID
|
|
4193
|
-
- Validator type
|
|
4194
|
-
- Property type
|
|
4215
|
+
Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
4216
|
+
Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
4195
4217
|
|
|
4196
4218
|
|
|
4197
4219
|
|
|
4198
4220
|
|
|
4221
|
+
##### Parameters
|
|
4222
|
+
|
|
4223
|
+
| Name | Type | Description | |
|
|
4224
|
+
| ---- | ---- | ----------- | -------- |
|
|
4225
|
+
| uiFilter | | | |
|
|
4226
|
+
|
|
4227
|
+
|
|
4199
4228
|
|
|
4200
4229
|
|
|
4201
4230
|
##### Returns
|
|
4202
4231
|
|
|
4203
4232
|
|
|
4204
|
-
-
|
|
4233
|
+
- `Void`
|
|
4205
4234
|
|
|
4206
4235
|
|
|
4207
4236
|
|
|
@@ -4292,6 +4321,34 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
4292
4321
|
|
|
4293
4322
|
|
|
4294
4323
|
|
|
4324
|
+
### dist/filters/helpers/ui/getUpdatedUIFilters.js
|
|
4325
|
+
|
|
4326
|
+
|
|
4327
|
+
#### getUpdatedUIFilters(data, datasets)
|
|
4328
|
+
|
|
4329
|
+
Gets a new UI Filter structure with a datasets/columns info updates
|
|
4330
|
+
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
##### Parameters
|
|
4335
|
+
|
|
4336
|
+
| Name | Type | Description | |
|
|
4337
|
+
| ---- | ---- | ----------- | -------- |
|
|
4338
|
+
| data | | The UI Filter structure | |
|
|
4339
|
+
| datasets | | An array of datasets/column info used for updating the data | |
|
|
4340
|
+
|
|
4341
|
+
|
|
4342
|
+
|
|
4343
|
+
|
|
4344
|
+
##### Returns
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
- A new UI FIlter structure
|
|
4348
|
+
|
|
4349
|
+
|
|
4350
|
+
|
|
4351
|
+
|
|
4295
4352
|
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
4296
4353
|
|
|
4297
4354
|
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AGGREGATE_LABEL = void 0;
|
|
4
4
|
var AGGREGATE_LABEL;
|
|
5
5
|
(function (AGGREGATE_LABEL) {
|
|
6
|
-
AGGREGATE_LABEL["NONE"] = "
|
|
6
|
+
AGGREGATE_LABEL["NONE"] = "No Aggregate";
|
|
7
7
|
AGGREGATE_LABEL["AVG"] = "Average";
|
|
8
8
|
AGGREGATE_LABEL["MEDIAN"] = "Median";
|
|
9
9
|
AGGREGATE_LABEL["MIN"] = "Minimum";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IFSData } from "../../interfaces/common/IFSData";
|
|
2
|
+
/**
|
|
3
|
+
* Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
4
|
+
* Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
5
|
+
* @param uiFilter
|
|
6
|
+
*/
|
|
7
|
+
export declare function getQrveyIdsByUIFilters(uiFilter: IFSData): string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQrveyIdsByUIFilters = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
+
/**
|
|
6
|
+
* Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
7
|
+
* Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
8
|
+
* @param uiFilter
|
|
9
|
+
*/
|
|
10
|
+
function getQrveyIdsByUIFilters(uiFilter) {
|
|
11
|
+
const qrveyids = [];
|
|
12
|
+
if ((0, isEmpty_1.isEmpty)(uiFilter))
|
|
13
|
+
return qrveyids;
|
|
14
|
+
uiFilter.scopes.forEach(scope => {
|
|
15
|
+
if (!(0, isEmpty_1.isEmpty)(scope.datasets)) {
|
|
16
|
+
scope.datasets.forEach(dataset => {
|
|
17
|
+
if (!(0, isEmpty_1.isEmpty)(dataset))
|
|
18
|
+
qrveyids.push(dataset.qrveyid);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return qrveyids;
|
|
23
|
+
}
|
|
24
|
+
exports.getQrveyIdsByUIFilters = getQrveyIdsByUIFilters;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDataset } from "../../../qrvey/interfaces/IDataset";
|
|
2
|
+
import { IFUData } from "../../interfaces/ui/IFUData";
|
|
3
|
+
/**
|
|
4
|
+
* Gets a new UI Filter structure with a datasets/columns info updates
|
|
5
|
+
* @param data The UI Filter structure
|
|
6
|
+
* @param datasets An array of datasets/column info used for updating the data
|
|
7
|
+
* @returns A new UI FIlter structure
|
|
8
|
+
*/
|
|
9
|
+
export declare function getUpdatedUIFilters(data: IFUData, datasets?: IDataset[]): IFUData;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUpdatedUIFilters = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
+
/**
|
|
6
|
+
* Gets a new UI Filter structure with a datasets/columns info updates
|
|
7
|
+
* @param data The UI Filter structure
|
|
8
|
+
* @param datasets An array of datasets/column info used for updating the data
|
|
9
|
+
* @returns A new UI FIlter structure
|
|
10
|
+
*/
|
|
11
|
+
function getUpdatedUIFilters(data, datasets = []) {
|
|
12
|
+
if ((0, isEmpty_1.isEmpty)(data) || (0, isEmpty_1.isEmpty)(datasets))
|
|
13
|
+
return data;
|
|
14
|
+
const updatedScopes = data.scopes.map(scopes => {
|
|
15
|
+
scopes.datasets = scopes.datasets.map(dataset => {
|
|
16
|
+
const datasetInfo = datasets.find(dInfo => dInfo.qrveyid === dataset.qrveyid && dInfo.linkid === dataset.linkid);
|
|
17
|
+
if (!(0, isEmpty_1.isEmpty)(datasetInfo))
|
|
18
|
+
dataset.label = datasetInfo.label;
|
|
19
|
+
dataset.filters = dataset.filters.map(filter => {
|
|
20
|
+
let columnInfo;
|
|
21
|
+
if (!(0, isEmpty_1.isEmpty)(datasetInfo))
|
|
22
|
+
columnInfo = datasetInfo.options.find(cInfo => { var _a, _b; return cInfo.id === filter.column.id && ((_a = cInfo.dataset) === null || _a === void 0 ? void 0 : _a.qrveyid) === filter.column.qrveyid && ((_b = cInfo.dataset) === null || _b === void 0 ? void 0 : _b.linkid) === filter.column.linkid; });
|
|
23
|
+
if (!(0, isEmpty_1.isEmpty)(columnInfo)) {
|
|
24
|
+
filter.column.formulaType = columnInfo.formulaType;
|
|
25
|
+
filter.column.label = columnInfo.label;
|
|
26
|
+
filter.column.type = columnInfo.type;
|
|
27
|
+
}
|
|
28
|
+
return filter;
|
|
29
|
+
});
|
|
30
|
+
return dataset;
|
|
31
|
+
});
|
|
32
|
+
return scopes;
|
|
33
|
+
});
|
|
34
|
+
return Object.assign(Object.assign({}, data), { scopes: updatedScopes });
|
|
35
|
+
}
|
|
36
|
+
exports.getUpdatedUIFilters = getUpdatedUIFilters;
|