@qrvey/utils 1.2.9-19 → 1.2.9-22

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.
Files changed (79) hide show
  1. package/README.md +125 -125
  2. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -1
  3. package/dist/cjs/filters/helpers/ui/getUIValues.js +1 -1
  4. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  5. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -1
  6. package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -3
  7. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +2 -1
  8. package/dist/cjs/format/definition.d.ts +8 -2
  9. package/dist/cjs/format/definition.js +2 -1
  10. package/dist/cjs/format/format.js +1 -1
  11. package/dist/cjs/format/localization.js +7 -7
  12. package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
  13. package/dist/cjs/globalization/interfaces/{IResourceI18n.js → II18nConfig.js} +0 -0
  14. package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +1 -1
  15. package/dist/cjs/globalization/interfaces/II18nResource.js +2 -0
  16. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  17. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  18. package/dist/cjs/globalization/interfaces/index.d.ts +2 -1
  19. package/dist/cjs/globalization/interfaces/index.js +2 -1
  20. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +1 -0
  21. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  22. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  23. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +3 -1
  24. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +1 -0
  25. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
  26. package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
  27. package/dist/cjs/qrvey/helpers/transformValue.js +2 -1
  28. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +2 -1
  29. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -1
  30. package/dist/filters/helpers/ui/getUIValues.js +1 -1
  31. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  32. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -1
  33. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -3
  34. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +2 -1
  35. package/dist/format/definition.d.ts +8 -2
  36. package/dist/format/definition.js +1 -0
  37. package/dist/format/format.js +1 -1
  38. package/dist/format/localization.js +8 -8
  39. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  40. package/dist/globalization/interfaces/{IResourceI18n.js → II18nConfig.js} +0 -0
  41. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +1 -1
  42. package/dist/globalization/interfaces/II18nResource.js +1 -0
  43. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  44. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  45. package/dist/globalization/interfaces/index.d.ts +2 -1
  46. package/dist/globalization/interfaces/index.js +2 -1
  47. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +1 -0
  48. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  49. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  50. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +3 -1
  51. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +1 -0
  52. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  53. package/dist/globalization/service/initI18n.d.ts +2 -2
  54. package/dist/qrvey/helpers/transformValue.js +2 -1
  55. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +2 -1
  56. package/package.json +1 -1
  57. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -1
  58. package/src/filters/helpers/ui/getUIValues.ts +1 -1
  59. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +0 -2
  60. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +3 -1
  61. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -3
  62. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +2 -1
  63. package/src/format/definition.ts +4 -1
  64. package/src/format/format.ts +1 -1
  65. package/src/format/localization.ts +6 -6
  66. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  67. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +1 -1
  68. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  69. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  70. package/src/globalization/interfaces/index.ts +2 -1
  71. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +1 -0
  72. package/src/globalization/labels/I18N_DEFAULT.ts +2 -2
  73. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +2 -0
  74. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +3 -1
  75. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +1 -0
  76. package/src/globalization/service/i18nextBuilder.ts +4 -4
  77. package/src/globalization/service/initI18n.ts +3 -3
  78. package/src/qrvey/helpers/transformValue.ts +1 -1
  79. package/src/qrvey/interfaces/ITransformValueSettings.ts +2 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-19*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-22*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -688,12 +688,12 @@ Output:
688
688
 
689
689
 
690
690
 
691
- ### dist/filters/adapters/FDToFlatUI.js
691
+ ### dist/filters/adapters/FDToLogic.js
692
692
 
693
693
 
694
- #### FDToFlatUI(filterData, datasetsInfo)
694
+ #### FDToLogic(filterData)
695
695
 
696
- Generates a Flattened UI filter structure from Filter Data structure.
696
+ Generates a Filter Logic structure from Filter Data structure.
697
697
 
698
698
 
699
699
 
@@ -703,7 +703,6 @@ Generates a Flattened UI filter structure from Filter Data structure.
703
703
  | Name | Type | Description | |
704
704
  | ---- | ---- | ----------- | -------- |
705
705
  | filterData | | The filter data object. |   |
706
- | datasetsInfo | | Collection of datasets information |   |
707
706
 
708
707
 
709
708
 
@@ -711,13 +710,13 @@ Generates a Flattened UI filter structure from Filter Data structure.
711
710
  ##### Returns
712
711
 
713
712
 
714
- - a flattened UI filters array
713
+ - a filter logic array
715
714
 
716
715
 
717
716
 
718
- #### FD21ToFlatUI(scopes, datasetsInfo)
717
+ #### getLogicBodyFromFD21(filterData)
719
718
 
720
- Generates a Filter Builder Structure from the Filter Data structure v2.1
719
+ Gets the logic body
721
720
 
722
721
 
723
722
 
@@ -726,8 +725,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
726
725
 
727
726
  | Name | Type | Description | |
728
727
  | ---- | ---- | ----------- | -------- |
729
- | scopes | | The filter scope section |   |
730
- | datasetsInfo | | Collection of datasets information |   |
728
+ | filterData | | The filter data object |   |
731
729
 
732
730
 
733
731
 
@@ -735,17 +733,17 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
735
733
  ##### Returns
736
734
 
737
735
 
738
- - a flattened UI filters array
736
+ - a filter logic array
739
737
 
740
738
 
741
739
 
742
740
 
743
- ### dist/filters/adapters/FDToLogic.js
741
+ ### dist/filters/adapters/FDToFlatUI.js
744
742
 
745
743
 
746
- #### FDToLogic(filterData)
744
+ #### FDToFlatUI(filterData, datasetsInfo)
747
745
 
748
- Generates a Filter Logic structure from Filter Data structure.
746
+ Generates a Flattened UI filter structure from Filter Data structure.
749
747
 
750
748
 
751
749
 
@@ -755,6 +753,7 @@ Generates a Filter Logic structure from Filter Data structure.
755
753
  | Name | Type | Description | |
756
754
  | ---- | ---- | ----------- | -------- |
757
755
  | filterData | | The filter data object. |   |
756
+ | datasetsInfo | | Collection of datasets information |   |
758
757
 
759
758
 
760
759
 
@@ -762,13 +761,13 @@ Generates a Filter Logic structure from Filter Data structure.
762
761
  ##### Returns
763
762
 
764
763
 
765
- - a filter logic array
764
+ - a flattened UI filters array
766
765
 
767
766
 
768
767
 
769
- #### getLogicBodyFromFD21(filterData)
768
+ #### FD21ToFlatUI(scopes, datasetsInfo)
770
769
 
771
- Gets the logic body
770
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
772
771
 
773
772
 
774
773
 
@@ -777,7 +776,8 @@ Gets the logic body
777
776
 
778
777
  | Name | Type | Description | |
779
778
  | ---- | ---- | ----------- | -------- |
780
- | filterData | | The filter data object |   |
779
+ | scopes | | The filter scope section |   |
780
+ | datasetsInfo | | Collection of datasets information |   |
781
781
 
782
782
 
783
783
 
@@ -785,7 +785,7 @@ Gets the logic body
785
785
  ##### Returns
786
786
 
787
787
 
788
- - a filter logic array
788
+ - a flattened UI filters array
789
789
 
790
790
 
791
791
 
@@ -2722,69 +2722,68 @@ Gets the format config
2722
2722
 
2723
2723
 
2724
2724
 
2725
- ### dist/stencil/decorators/Config.js
2726
-
2725
+ ### dist/services/api/getAllDatasets.api.js
2727
2726
 
2728
- #### Config()
2729
2727
 
2730
- Stencil.js - Prop Decorator
2731
- 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
2732
- But for this, is required ask for a property in `snake_case` style
2728
+ #### getAllDatasets(config, pickDatasets)
2733
2729
 
2730
+ Get a dataset list from a collection of Qrvey IDs
2734
2731
 
2735
2732
 
2736
2733
 
2737
2734
 
2735
+ ##### Parameters
2738
2736
 
2739
- ##### Examples
2737
+ | Name | Type | Description | |
2738
+ | ---- | ---- | ----------- | -------- |
2739
+ | config | | the widget config. Includes the appid and others configuration properties |   |
2740
+ | pickDatasets | | Collection of Qrvey IDs for filtering the request |   |
2740
2741
 
2741
- ```javascript
2742
- \ @Config() @Prop() settings;
2743
2742
 
2744
- someMethod() {
2745
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2746
- }
2747
- ```
2748
2743
 
2749
2744
 
2750
2745
  ##### Returns
2751
2746
 
2752
2747
 
2753
- - `Void`
2748
+ - a promise
2754
2749
 
2755
2750
 
2756
2751
 
2757
2752
 
2758
- ### dist/stencil/util/createRef.js
2753
+ ### dist/services/api/getAllQrveys.api.js
2759
2754
 
2760
2755
 
2761
- #### createRef()
2756
+ #### getAllQrveys(config, params)
2757
+
2758
+ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2762
2759
 
2763
- lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2764
2760
 
2765
2761
 
2766
2762
 
2763
+ ##### Parameters
2764
+
2765
+ | Name | Type | Description | |
2766
+ | ---- | ---- | ----------- | -------- |
2767
+ | config | | Configuration |   |
2768
+ | params | | Object for getting precise data |   |
2769
+
2767
2770
 
2768
2771
 
2769
2772
 
2770
2773
  ##### Returns
2771
2774
 
2772
2775
 
2773
- - function - Function to use in ref prop in html elements
2776
+ - `Void`
2774
2777
 
2775
2778
 
2776
2779
 
2777
2780
 
2778
- ### dist/stencil/util/getConfig.js
2781
+ ### dist/services/api/getDatasetColumns.api.js
2779
2782
 
2780
2783
 
2781
- #### getConfig(cfg)
2784
+ #### getDatasetColumns(qrveyid)
2782
2785
 
2783
- verify the Config object type and try to return a parsed Object
2784
- - In case _cfg_ is a string, first try to make a JSON parse in other case
2785
- try to find this string as a variable on Windows object
2786
- - If _cfg_ is a fuction, tis is invoked and parsed
2787
- - Finally, if is an object, _cfg_ is inmediatly returned
2786
+ Get a dataset by Qrvey ID
2788
2787
 
2789
2788
 
2790
2789
 
@@ -2793,7 +2792,7 @@ try to find this string as a variable on Windows object
2793
2792
 
2794
2793
  | Name | Type | Description | |
2795
2794
  | ---- | ---- | ----------- | -------- |
2796
- | cfg | | |   |
2795
+ | qrveyid | | The Qrvey ID |   |
2797
2796
 
2798
2797
 
2799
2798
 
@@ -2801,45 +2800,74 @@ try to find this string as a variable on Windows object
2801
2800
  ##### Returns
2802
2801
 
2803
2802
 
2804
- - `Void`
2803
+ - a promise
2805
2804
 
2806
2805
 
2807
2806
 
2808
2807
 
2809
- ### dist/services/api/getAllDatasets.api.js
2808
+ ### dist/stencil/decorators/Config.js
2810
2809
 
2811
2810
 
2812
- #### getAllDatasets(config, pickDatasets)
2811
+ #### Config()
2813
2812
 
2814
- Get a dataset list from a collection of Qrvey IDs
2813
+ Stencil.js - Prop Decorator
2814
+ 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
2815
+ But for this, is required ask for a property in `snake_case` style
2815
2816
 
2816
2817
 
2817
2818
 
2818
2819
 
2819
- ##### Parameters
2820
2820
 
2821
- | Name | Type | Description | |
2822
- | ---- | ---- | ----------- | -------- |
2823
- | config | | the widget config. Includes the appid and others configuration properties |   |
2824
- | pickDatasets | | Collection of Qrvey IDs for filtering the request |   |
2825
2821
 
2822
+ ##### Examples
2826
2823
 
2824
+ ```javascript
2825
+ \ @Config() @Prop() settings;
2826
+
2827
+ someMethod() {
2828
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2829
+ }
2830
+ ```
2827
2831
 
2828
2832
 
2829
2833
  ##### Returns
2830
2834
 
2831
2835
 
2832
- - a promise
2836
+ - `Void`
2833
2837
 
2834
2838
 
2835
2839
 
2836
2840
 
2837
- ### dist/services/api/getAllQrveys.api.js
2841
+ ### dist/stencil/util/createRef.js
2838
2842
 
2839
2843
 
2840
- #### getAllQrveys(config, params)
2844
+ #### createRef()
2845
+
2846
+ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+ ##### Returns
2854
+
2855
+
2856
+ - function - Function to use in ref prop in html elements
2857
+
2858
+
2859
+
2860
+
2861
+ ### dist/stencil/util/getConfig.js
2841
2862
 
2842
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2863
+
2864
+ #### getConfig(cfg)
2865
+
2866
+ verify the Config object type and try to return a parsed Object
2867
+ - In case _cfg_ is a string, first try to make a JSON parse in other case
2868
+ try to find this string as a variable on Windows object
2869
+ - If _cfg_ is a fuction, tis is invoked and parsed
2870
+ - Finally, if is an object, _cfg_ is inmediatly returned
2843
2871
 
2844
2872
 
2845
2873
 
@@ -2848,8 +2876,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2848
2876
 
2849
2877
  | Name | Type | Description | |
2850
2878
  | ---- | ---- | ----------- | -------- |
2851
- | config | | Configuration |   |
2852
- | params | | Object for getting precise data |   |
2879
+ | cfg | | |   |
2853
2880
 
2854
2881
 
2855
2882
 
@@ -2862,12 +2889,12 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2862
2889
 
2863
2890
 
2864
2891
 
2865
- ### dist/services/api/getDatasetColumns.api.js
2892
+ ### dist/typescript/decorators/Throttled.js
2866
2893
 
2867
2894
 
2868
- #### getDatasetColumns(qrveyid)
2895
+ #### Throttled(time)
2869
2896
 
2870
- Get a dataset by Qrvey ID
2897
+ (Method Decorator) Throttled Class Method
2871
2898
 
2872
2899
 
2873
2900
 
@@ -2876,7 +2903,7 @@ Get a dataset by Qrvey ID
2876
2903
 
2877
2904
  | Name | Type | Description | |
2878
2905
  | ---- | ---- | ----------- | -------- |
2879
- | qrveyid | | The Qrvey ID |   |
2906
+ | time | | (optional) deafult 500 |   |
2880
2907
 
2881
2908
 
2882
2909
 
@@ -2884,7 +2911,7 @@ Get a dataset by Qrvey ID
2884
2911
  ##### Returns
2885
2912
 
2886
2913
 
2887
- - a promise
2914
+ - `Void`
2888
2915
 
2889
2916
 
2890
2917
 
@@ -2916,12 +2943,12 @@ Get a dataset by Qrvey ID
2916
2943
 
2917
2944
 
2918
2945
 
2919
- ### dist/typescript/decorators/Throttled.js
2946
+ ### dist/dates/relative/helpers/getStatementCase.js
2920
2947
 
2921
2948
 
2922
- #### Throttled(time)
2949
+ #### getStatementCase(includeCurrent, isCalendarDate)
2923
2950
 
2924
- (Method Decorator) Throttled Class Method
2951
+ Returns a number/constant that identifies a relative date case
2925
2952
 
2926
2953
 
2927
2954
 
@@ -2930,7 +2957,8 @@ Get a dataset by Qrvey ID
2930
2957
 
2931
2958
  | Name | Type | Description | |
2932
2959
  | ---- | ---- | ----------- | -------- |
2933
- | time | | (optional) deafult 500 |   |
2960
+ | includeCurrent | `boolean` | |   |
2961
+ | isCalendarDate | `boolean` | |   |
2934
2962
 
2935
2963
 
2936
2964
 
@@ -2938,7 +2966,7 @@ Get a dataset by Qrvey ID
2938
2966
  ##### Returns
2939
2967
 
2940
2968
 
2941
- - `Void`
2969
+ - `number`
2942
2970
 
2943
2971
 
2944
2972
 
@@ -2970,12 +2998,12 @@ Build a proper relative date statement type
2970
2998
 
2971
2999
 
2972
3000
 
2973
- ### dist/dates/relative/helpers/getStatementCase.js
3001
+ ### dist/dates/relative/helpers/parseDate.js
2974
3002
 
2975
3003
 
2976
- #### getStatementCase(includeCurrent, isCalendarDate)
3004
+ #### parseDate(date)
2977
3005
 
2978
- Returns a number/constant that identifies a relative date case
3006
+ Parses a string date and returns a dayjs date
2979
3007
 
2980
3008
 
2981
3009
 
@@ -2984,8 +3012,7 @@ Returns a number/constant that identifies a relative date case
2984
3012
 
2985
3013
  | Name | Type | Description | |
2986
3014
  | ---- | ---- | ----------- | -------- |
2987
- | includeCurrent | `boolean` | |   |
2988
- | isCalendarDate | `boolean` | |   |
3015
+ | date | `string` `Dayjs` `Date` | |   |
2989
3016
 
2990
3017
 
2991
3018
 
@@ -2993,17 +3020,17 @@ Returns a number/constant that identifies a relative date case
2993
3020
  ##### Returns
2994
3021
 
2995
3022
 
2996
- - `number`
3023
+ - `Dayjs` A dayjs date
2997
3024
 
2998
3025
 
2999
3026
 
3000
3027
 
3001
- ### dist/dates/relative/helpers/parseDate.js
3028
+ ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
3002
3029
 
3003
3030
 
3004
- #### parseDate(date)
3031
+ #### getFilterBuilderGeneralConfig(config)
3005
3032
 
3006
- Parses a string date and returns a dayjs date
3033
+ Returns a filter builder config object by a any given config
3007
3034
 
3008
3035
 
3009
3036
 
@@ -3012,7 +3039,7 @@ Parses a string date and returns a dayjs date
3012
3039
 
3013
3040
  | Name | Type | Description | |
3014
3041
  | ---- | ---- | ----------- | -------- |
3015
- | date | `string` `Dayjs` `Date` | |   |
3042
+ | config | | any config object |   |
3016
3043
 
3017
3044
 
3018
3045
 
@@ -3020,7 +3047,7 @@ Parses a string date and returns a dayjs date
3020
3047
  ##### Returns
3021
3048
 
3022
3049
 
3023
- - `Dayjs` A dayjs date
3050
+ - The filter builder config object
3024
3051
 
3025
3052
 
3026
3053
 
@@ -3321,12 +3348,12 @@ Gets filters from the logic by the scopes hierarchy.
3321
3348
 
3322
3349
 
3323
3350
 
3324
- ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
3351
+ ### dist/filters/helpers/common/areFiltersEquals.js
3325
3352
 
3326
3353
 
3327
- #### getFilterBuilderGeneralConfig(config)
3354
+ #### areFiltersEquals(filter1, filter2)
3328
3355
 
3329
- Returns a filter builder config object by a any given config
3356
+ Validates if both filters are the same
3330
3357
 
3331
3358
 
3332
3359
 
@@ -3335,7 +3362,8 @@ Returns a filter builder config object by a any given config
3335
3362
 
3336
3363
  | Name | Type | Description | |
3337
3364
  | ---- | ---- | ----------- | -------- |
3338
- | config | | any config object |   |
3365
+ | filter1 | | filter 1 |   |
3366
+ | filter2 | | filter 2 |   |
3339
3367
 
3340
3368
 
3341
3369
 
@@ -3343,17 +3371,17 @@ Returns a filter builder config object by a any given config
3343
3371
  ##### Returns
3344
3372
 
3345
3373
 
3346
- - The filter builder config object
3374
+ - true: the filters are equal; false: the filters are NOT equal
3347
3375
 
3348
3376
 
3349
3377
 
3350
3378
 
3351
- ### dist/filters/helpers/common/areFiltersEquals.js
3379
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3352
3380
 
3353
3381
 
3354
- #### areFiltersEquals(filter1, filter2)
3382
+ #### excludeFiltersByAggregateColumn(filterData)
3355
3383
 
3356
- Validates if both filters are the same
3384
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3357
3385
 
3358
3386
 
3359
3387
 
@@ -3362,8 +3390,7 @@ Validates if both filters are the same
3362
3390
 
3363
3391
  | Name | Type | Description | |
3364
3392
  | ---- | ---- | ----------- | -------- |
3365
- | filter1 | | filter 1 |   |
3366
- | filter2 | | filter 2 |   |
3393
+ | filterData | | The filter data object |   |
3367
3394
 
3368
3395
 
3369
3396
 
@@ -3371,17 +3398,17 @@ Validates if both filters are the same
3371
3398
  ##### Returns
3372
3399
 
3373
3400
 
3374
- - true: the filters are equal; false: the filters are NOT equal
3401
+ - The new filter data object that were excluded the aggregate filters
3375
3402
 
3376
3403
 
3377
3404
 
3378
3405
 
3379
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3406
+ ### dist/filters/helpers/common/excludeFiltersByScopes.js
3380
3407
 
3381
3408
 
3382
- #### excludeFiltersByAggregateColumn(filterData)
3409
+ #### excludeFiltersByScopes(filterData, scopes)
3383
3410
 
3384
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3411
+ Excludes and returns a filter data without filters by the given scopes
3385
3412
 
3386
3413
 
3387
3414
 
@@ -3390,7 +3417,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3390
3417
 
3391
3418
  | Name | Type | Description | |
3392
3419
  | ---- | ---- | ----------- | -------- |
3393
- | filterData | | The filter data object |   |
3420
+ | filterData | | The Filter Data |   |
3421
+ | scopes | | collection of scopes to be as filtering parameters |   |
3394
3422
 
3395
3423
 
3396
3424
 
@@ -3398,7 +3426,7 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3398
3426
  ##### Returns
3399
3427
 
3400
3428
 
3401
- - The new filter data object that were excluded the aggregate filters
3429
+ - The new Filter Data without filters by the given scopes.
3402
3430
 
3403
3431
 
3404
3432
 
@@ -3440,34 +3468,6 @@ The validation to filter the stored filter is depending on:
3440
3468
 
3441
3469
 
3442
3470
 
3443
- ### dist/filters/helpers/common/excludeFiltersByScopes.js
3444
-
3445
-
3446
- #### excludeFiltersByScopes(filterData, scopes)
3447
-
3448
- Excludes and returns a filter data without filters by the given scopes
3449
-
3450
-
3451
-
3452
-
3453
- ##### Parameters
3454
-
3455
- | Name | Type | Description | |
3456
- | ---- | ---- | ----------- | -------- |
3457
- | filterData | | The Filter Data |   |
3458
- | scopes | | collection of scopes to be as filtering parameters |   |
3459
-
3460
-
3461
-
3462
-
3463
- ##### Returns
3464
-
3465
-
3466
- - The new Filter Data without filters by the given scopes.
3467
-
3468
-
3469
-
3470
-
3471
3471
  ### dist/filters/helpers/common/getFilterColumnLabel.js
3472
3472
 
3473
3473
 
@@ -12,7 +12,7 @@ function getFilterBuilderGeneralConfig(config = {}) {
12
12
  apiKey: (0, getAttribute_1.getAttribute)(config, 'api_key') || config.apiKey,
13
13
  appid: (0, getAttribute_1.getAttribute)(config, 'app_id') || config.appid,
14
14
  domain: config.domain,
15
- locale: config.locale,
15
+ i18n: config.i18n,
16
16
  qv_token: config.qv_token,
17
17
  timezoneControl: (0, getAttribute_1.getAttribute)(config, 'timezone_control') || config.timezoneControl,
18
18
  userid: (0, getAttribute_1.getAttribute)(config, 'user_id') || config.userid,
@@ -45,7 +45,7 @@ function getUIValues(filter, settings) {
45
45
  case FILTER_VALIDATOR_1.FILTER_VALIDATOR.IS_NULL:
46
46
  case FILTER_VALIDATOR_1.FILTER_VALIDATOR.IS_NOT_NULL:
47
47
  return [{
48
- value: FILTER_VALIDATOR_INFO_1.FILTER_VALIDATOR_INFO[filter.validator].label,
48
+ value: (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings.translate('filter.validators.' + filter.validator.toLowerCase() + '_label') : FILTER_VALIDATOR_INFO_1.FILTER_VALIDATOR_INFO[filter.validator].label,
49
49
  enabled: settings.addEnableds ? (_a = filter.values[0]) === null || _a === void 0 ? void 0 : _a.enabled : undefined,
50
50
  }];
51
51
  case FILTER_VALIDATOR_1.FILTER_VALIDATOR.IN:
@@ -1,4 +1,3 @@
1
- import { IResourceI18n } from "../../../globalization/interfaces/IResourceI18n";
2
1
  import { IFBLogic } from "../backend/IFBLogic";
3
2
  import { IFBUserFilters } from "../backend/IFBUserFilters";
4
3
  import { IFSColumn } from "../common/IFSColumn";
@@ -15,7 +14,6 @@ import { IFilterBuilderSettings } from "./IFilterBuilderSettings";
15
14
  * Structure for the configuration of the Filter Builder
16
15
  */
17
16
  export interface IFilterBuilderConfig {
18
- i18n?: IResourceI18n;
19
17
  datasets?: string[];
20
18
  filterData?: IFSData;
21
19
  filterLabel?: string;
@@ -1,3 +1,4 @@
1
+ import { II18nConfig } from "../../../globalization/interfaces/II18nConfig";
1
2
  /**
2
3
  * Structure for the Fiter Builder General config
3
4
  */
@@ -7,6 +8,6 @@ export interface IFilterBuilderGeneralConfig {
7
8
  domain: string;
8
9
  qv_token?: string;
9
10
  timezoneControl?: string;
10
- locale?: string;
11
+ i18n?: II18nConfig;
11
12
  userid: string;
12
13
  }
@@ -1,4 +1,4 @@
1
- import { IResourceI18n } from "../../../globalization";
1
+ import { II18nConfig } from "../../../globalization/interfaces/II18nConfig";
2
2
  import { IFilterBuilderConfig } from "../builder/IFilterBuilderConfig";
3
3
  import { IFUDataStore } from "../ui/IFUDataStore";
4
4
  /**
@@ -6,6 +6,5 @@ import { IFUDataStore } from "../ui/IFUDataStore";
6
6
  */
7
7
  export interface IFilterPanelConfig extends IFUDataStore {
8
8
  filterBuilderConfig?: IFilterBuilderConfig;
9
- i18n?: IResourceI18n;
10
- locale?: string;
9
+ i18n?: II18nConfig;
11
10
  }
@@ -1,6 +1,7 @@
1
+ import { II18nConfig } from "../../../globalization/interfaces/II18nConfig";
1
2
  import { II18nServiceTranslate } from "../../../globalization/interfaces/II18nServiceTranslate";
2
3
  export interface IFUTransformFilterValuesSettings {
3
4
  translate: II18nServiceTranslate;
4
- locale: string;
5
+ i18n: II18nConfig;
5
6
  suffixTranslateLabel?: string;
6
7
  }
@@ -19,12 +19,18 @@ export declare const enum LOCALE_FORMATS {
19
19
  DECIMAL = "Decimal",
20
20
  CURRENCY = "Currency",
21
21
  PERCENTAGE = "Percentage",
22
- SCIENTIFIC = "Scientific"
22
+ SCIENTIFIC = "Scientific",
23
+ ABBREVIATED = "Abbreviated"
23
24
  }
24
25
  export declare const enum LOCALE_STYLES {
25
26
  DECIMAL = "decimal",
26
27
  PERCENT = "percent",
27
28
  CURRENCY = "currency",
28
- SCIENTIFIC = "scientific"
29
+ SCIENTIFIC = "scientific",
30
+ COMPACT = "compact"
29
31
  }
30
32
  export declare const LANG_DEFAULT = "en-US";
33
+ export declare const CURRENCY_DEFAULT: {
34
+ text: string;
35
+ label: string;
36
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LANG_DEFAULT = exports.currencyISO = exports.isTextColumn = exports.supportNumericFormatting = exports.isNumericalColumn = exports.isComplexColumn = exports.hasfileSizeProperty = exports.appliesFormatting = exports.DATEGROUP_FORMATTING_UNSUPPORT = exports.QUESTION_FORMAT_SUPPORT = exports.numericalFields = exports.complexFields = exports.textFields = void 0;
3
+ exports.CURRENCY_DEFAULT = exports.LANG_DEFAULT = exports.currencyISO = exports.isTextColumn = exports.supportNumericFormatting = exports.isNumericalColumn = exports.isComplexColumn = exports.hasfileSizeProperty = exports.appliesFormatting = exports.DATEGROUP_FORMATTING_UNSUPPORT = exports.QUESTION_FORMAT_SUPPORT = exports.numericalFields = exports.complexFields = exports.textFields = void 0;
4
4
  const COLUMN_1 = require("../columns/constants/COLUMN");
5
5
  const Charts_Const_1 = require("../constants/Charts.Const");
6
6
  exports.textFields = [COLUMN_1.COLUMN.TEXTFIELD, COLUMN_1.COLUMN.TEXT_CATEGORY, COLUMN_1.COLUMN.TEXT_LABEL, COLUMN_1.COLUMN.TEXT_CATEGORY];
@@ -82,3 +82,4 @@ exports.currencyISO = [
82
82
  { text: 'RM (MYR)', label: 'MYR' }
83
83
  ];
84
84
  exports.LANG_DEFAULT = 'en-US';
85
+ exports.CURRENCY_DEFAULT = { text: '$ (USD)', label: 'USD' };