@qrvey/utils 1.2.4-20 → 1.2.4-21

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 CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-20*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-21*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -108,12 +108,12 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
108
108
 
109
109
 
110
110
 
111
- ### dist/dates/adapters/monthYearToDate.js
111
+ ### dist/dates/adapters/quarterYearToDate.js
112
112
 
113
113
 
114
- #### monthYearToDate(monthYearDate, time)
114
+ #### quarterYearToDate(quarterYearDate, time)
115
115
 
116
- Transforms String Date from a [Month Year] format to Date object.
116
+ Transforms String Date from a [Quarter Year] format to Date object.
117
117
 
118
118
 
119
119
 
@@ -122,7 +122,7 @@ Transforms String Date from a [Month Year] format to Date object.
122
122
 
123
123
  | Name | Type | Description | |
124
124
  | ---- | ---- | ----------- | -------- |
125
- | monthYearDate | | String of [Month Year] date |   |
125
+ | quarterYearDate | | String of [Quarter Year] date |   |
126
126
  | time | | Flag to parse the object date to milliseconds. |   |
127
127
 
128
128
 
@@ -136,12 +136,12 @@ Transforms String Date from a [Month Year] format to Date object.
136
136
 
137
137
 
138
138
 
139
- ### dist/dates/adapters/quarterYearToDate.js
139
+ ### dist/dates/adapters/monthYearToDate.js
140
140
 
141
141
 
142
- #### quarterYearToDate(quarterYearDate, time)
142
+ #### monthYearToDate(monthYearDate, time)
143
143
 
144
- Transforms String Date from a [Quarter Year] format to Date object.
144
+ Transforms String Date from a [Month Year] format to Date object.
145
145
 
146
146
 
147
147
 
@@ -150,7 +150,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
150
150
 
151
151
  | Name | Type | Description | |
152
152
  | ---- | ---- | ----------- | -------- |
153
- | quarterYearDate | | String of [Quarter Year] date |   |
153
+ | monthYearDate | | String of [Month Year] date |   |
154
154
  | time | | Flag to parse the object date to milliseconds. |   |
155
155
 
156
156
 
@@ -220,12 +220,12 @@ Transforms String Date from a [Year] format to Date object.
220
220
 
221
221
 
222
222
 
223
- ### dist/dates/helpers/getDateFormatByProperty.js
223
+ ### dist/dates/helpers/getDateByDateFormat.js
224
224
 
225
225
 
226
- #### getDateFormatByProperty(property)
226
+ #### getDateByDateFormat(date, format, time)
227
227
 
228
- Gets the date format by the given property
228
+ Gets a Date Object instance by a Date format
229
229
 
230
230
 
231
231
 
@@ -234,7 +234,9 @@ Gets the date format by the given property
234
234
 
235
235
  | Name | Type | Description | |
236
236
  | ---- | ---- | ----------- | -------- |
237
- | property | | The Column Property |   |
237
+ | date | | String with a formatted date |   |
238
+ | format | | The date format |   |
239
+ | time | | flag to convert the formatted date to miliseconds |   |
238
240
 
239
241
 
240
242
 
@@ -242,17 +244,17 @@ Gets the date format by the given property
242
244
  ##### Returns
243
245
 
244
246
 
245
- - The date format
247
+ - a Date object, milisecond time or the same value if date format does not match.
246
248
 
247
249
 
248
250
 
249
251
 
250
- ### dist/dates/helpers/getDateByDateFormat.js
252
+ ### dist/dates/helpers/getDateFormatByProperty.js
251
253
 
252
254
 
253
- #### getDateByDateFormat(date, format, time)
255
+ #### getDateFormatByProperty(property)
254
256
 
255
- Gets a Date Object instance by a Date format
257
+ Gets the date format by the given property
256
258
 
257
259
 
258
260
 
@@ -261,9 +263,7 @@ Gets a Date Object instance by a Date format
261
263
 
262
264
  | Name | Type | Description | |
263
265
  | ---- | ---- | ----------- | -------- |
264
- | date | | String with a formatted date |   |
265
- | format | | The date format |   |
266
- | time | | flag to convert the formatted date to miliseconds |   |
266
+ | property | | The Column Property |   |
267
267
 
268
268
 
269
269
 
@@ -271,7 +271,7 @@ Gets a Date Object instance by a Date format
271
271
  ##### Returns
272
272
 
273
273
 
274
- - a Date object, milisecond time or the same value if date format does not match.
274
+ - The date format
275
275
 
276
276
 
277
277
 
@@ -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
 
@@ -1897,33 +1897,6 @@ Includes arrays in the comparison.
1897
1897
 
1898
1898
 
1899
1899
 
1900
- ### dist/general/mix/getTag.js
1901
-
1902
-
1903
- #### getTag(value)
1904
-
1905
- Gets the `toStringTag` of `value`.
1906
-
1907
-
1908
-
1909
-
1910
- ##### Parameters
1911
-
1912
- | Name | Type | Description | |
1913
- | ---- | ---- | ----------- | -------- |
1914
- | value | | The value to query. |   |
1915
-
1916
-
1917
-
1918
-
1919
- ##### Returns
1920
-
1921
-
1922
- - `string` Returns the `toStringTag`.
1923
-
1924
-
1925
-
1926
-
1927
1900
  ### dist/general/mix/importScripts.js
1928
1901
 
1929
1902
 
@@ -2009,6 +1982,33 @@ return a Promise that is resolved when the script is loaded
2009
1982
 
2010
1983
 
2011
1984
 
1985
+ ### dist/general/mix/getTag.js
1986
+
1987
+
1988
+ #### getTag(value)
1989
+
1990
+ Gets the `toStringTag` of `value`.
1991
+
1992
+
1993
+
1994
+
1995
+ ##### Parameters
1996
+
1997
+ | Name | Type | Description | |
1998
+ | ---- | ---- | ----------- | -------- |
1999
+ | value | | The value to query. |   |
2000
+
2001
+
2002
+
2003
+
2004
+ ##### Returns
2005
+
2006
+
2007
+ - `string` Returns the `toStringTag`.
2008
+
2009
+
2010
+
2011
+
2012
2012
  ### dist/general/mix/isEmpty.js
2013
2013
 
2014
2014
 
@@ -2839,12 +2839,12 @@ try to find this string as a variable on Windows object
2839
2839
 
2840
2840
 
2841
2841
 
2842
- ### dist/dates/relative/helpers/formatStatement.js
2842
+ ### dist/dates/relative/helpers/getStatementCase.js
2843
2843
 
2844
2844
 
2845
- #### formatStatement(statement)
2845
+ #### getStatementCase(includeCurrent, isCalendarDate)
2846
2846
 
2847
- Build a proper relative date statement type
2847
+ Returns a number/constant that identifies a relative date case
2848
2848
 
2849
2849
 
2850
2850
 
@@ -2853,7 +2853,8 @@ Build a proper relative date statement type
2853
2853
 
2854
2854
  | Name | Type | Description | |
2855
2855
  | ---- | ---- | ----------- | -------- |
2856
- | statement | `RelativeStatement` | |   |
2856
+ | includeCurrent | `boolean` | |   |
2857
+ | isCalendarDate | `boolean` | |   |
2857
2858
 
2858
2859
 
2859
2860
 
@@ -2861,17 +2862,17 @@ Build a proper relative date statement type
2861
2862
  ##### Returns
2862
2863
 
2863
2864
 
2864
- - `RelativeStatement`
2865
+ - `number`
2865
2866
 
2866
2867
 
2867
2868
 
2868
2869
 
2869
- ### dist/dates/relative/helpers/getStatementCase.js
2870
+ ### dist/dates/relative/helpers/formatStatement.js
2870
2871
 
2871
2872
 
2872
- #### getStatementCase(includeCurrent, isCalendarDate)
2873
+ #### formatStatement(statement)
2873
2874
 
2874
- Returns a number/constant that identifies a relative date case
2875
+ Build a proper relative date statement type
2875
2876
 
2876
2877
 
2877
2878
 
@@ -2880,8 +2881,7 @@ Returns a number/constant that identifies a relative date case
2880
2881
 
2881
2882
  | Name | Type | Description | |
2882
2883
  | ---- | ---- | ----------- | -------- |
2883
- | includeCurrent | `boolean` | |   |
2884
- | isCalendarDate | `boolean` | |   |
2884
+ | statement | `RelativeStatement` | |   |
2885
2885
 
2886
2886
 
2887
2887
 
@@ -2889,7 +2889,7 @@ Returns a number/constant that identifies a relative date case
2889
2889
  ##### Returns
2890
2890
 
2891
2891
 
2892
- - `number`
2892
+ - `RelativeStatement`
2893
2893
 
2894
2894
 
2895
2895
 
@@ -2921,6 +2921,33 @@ Parses a string date and returns a dayjs date
2921
2921
 
2922
2922
 
2923
2923
 
2924
+ ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
2925
+
2926
+
2927
+ #### getFilterBuilderGeneralConfig(config)
2928
+
2929
+ Returns a filter builder config object by a any given config
2930
+
2931
+
2932
+
2933
+
2934
+ ##### Parameters
2935
+
2936
+ | Name | Type | Description | |
2937
+ | ---- | ---- | ----------- | -------- |
2938
+ | config | | any config object |   |
2939
+
2940
+
2941
+
2942
+
2943
+ ##### Returns
2944
+
2945
+
2946
+ - The filter builder config object
2947
+
2948
+
2949
+
2950
+
2924
2951
  ### dist/filters/helpers/backend/buildExpression.js
2925
2952
 
2926
2953
 
@@ -3004,12 +3031,12 @@ Transform user Filters array into Filter Logic structure
3004
3031
 
3005
3032
 
3006
3033
 
3007
- ### dist/filters/helpers/backend/getBackendProperty.js
3034
+ ### dist/filters/helpers/backend/getBackendGroupValue.js
3008
3035
 
3009
3036
 
3010
- #### getBackendProperty(filter)
3037
+ #### getBackendGroupValue(filter)
3011
3038
 
3012
- Gets a property for the logic structure
3039
+ Gets a group value for the backend logic structure
3013
3040
 
3014
3041
 
3015
3042
 
@@ -3031,12 +3058,12 @@ Gets a property for the logic structure
3031
3058
 
3032
3059
 
3033
3060
 
3034
- ### dist/filters/helpers/backend/getBackendGroupValue.js
3061
+ ### dist/filters/helpers/backend/getBackendProperty.js
3035
3062
 
3036
3063
 
3037
- #### getBackendGroupValue(filter)
3064
+ #### getBackendProperty(filter)
3038
3065
 
3039
- Gets a group value for the backend logic structure
3066
+ Gets a property for the logic structure
3040
3067
 
3041
3068
 
3042
3069
 
@@ -3217,12 +3244,12 @@ Gets filters from the logic by the scopes hierarchy.
3217
3244
 
3218
3245
 
3219
3246
 
3220
- ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
3247
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3221
3248
 
3222
3249
 
3223
- #### getFilterBuilderGeneralConfig(config)
3250
+ #### excludeFiltersByAggregateColumn(filterData)
3224
3251
 
3225
- Returns a filter builder config object by a any given config
3252
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3226
3253
 
3227
3254
 
3228
3255
 
@@ -3231,7 +3258,7 @@ Returns a filter builder config object by a any given config
3231
3258
 
3232
3259
  | Name | Type | Description | |
3233
3260
  | ---- | ---- | ----------- | -------- |
3234
- | config | | any config object |   |
3261
+ | filterData | | The filter data object |   |
3235
3262
 
3236
3263
 
3237
3264
 
@@ -3239,7 +3266,7 @@ Returns a filter builder config object by a any given config
3239
3266
  ##### Returns
3240
3267
 
3241
3268
 
3242
- - The filter builder config object
3269
+ - The new filter data object that were excluded the aggregate filters
3243
3270
 
3244
3271
 
3245
3272
 
@@ -3272,33 +3299,6 @@ Validates if both filters are the same
3272
3299
 
3273
3300
 
3274
3301
 
3275
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3276
-
3277
-
3278
- #### excludeFiltersByAggregateColumn(filterData)
3279
-
3280
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3281
-
3282
-
3283
-
3284
-
3285
- ##### Parameters
3286
-
3287
- | Name | Type | Description | |
3288
- | ---- | ---- | ----------- | -------- |
3289
- | filterData | | The filter data object |   |
3290
-
3291
-
3292
-
3293
-
3294
- ##### Returns
3295
-
3296
-
3297
- - The new filter data object that were excluded the aggregate filters
3298
-
3299
-
3300
-
3301
-
3302
3302
  ### dist/filters/helpers/common/excludeFiltersByParams.js
3303
3303
 
3304
3304
 
@@ -4095,12 +4095,12 @@ Excludes Aggregate Filters in the Flattened UI Filters array
4095
4095
 
4096
4096
 
4097
4097
 
4098
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4098
+ ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4099
4099
 
4100
4100
 
4101
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4101
+ #### getFilterPropertyLabel(filter)
4102
4102
 
4103
- Excludes and returns a UI Flat Filters without filters by the given scopes
4103
+ Gets the label of the filter property
4104
4104
 
4105
4105
 
4106
4106
 
@@ -4109,8 +4109,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4109
4109
 
4110
4110
  | Name | Type | Description | |
4111
4111
  | ---- | ---- | ----------- | -------- |
4112
- | uFilters | | The Flatten UI Filters |   |
4113
- | scopes | | collection of scopes types |   |
4112
+ | filter | | The UI Filter |   |
4114
4113
 
4115
4114
 
4116
4115
 
@@ -4118,17 +4117,17 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
4118
4117
  ##### Returns
4119
4118
 
4120
4119
 
4121
- - The new array of UI Flattened filters
4120
+ - a string of the filter property label
4122
4121
 
4123
4122
 
4124
4123
 
4125
4124
 
4126
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4125
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4127
4126
 
4128
4127
 
4129
- #### getFilterPropertyLabel(filter)
4128
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4130
4129
 
4131
- Gets the label of the filter property
4130
+ Excludes and returns a UI Flat Filters without filters by the given scopes
4132
4131
 
4133
4132
 
4134
4133
 
@@ -4137,7 +4136,8 @@ Gets the label of the filter property
4137
4136
 
4138
4137
  | Name | Type | Description | |
4139
4138
  | ---- | ---- | ----------- | -------- |
4140
- | filter | | The UI Filter |   |
4139
+ | uFilters | | The Flatten UI Filters |   |
4140
+ | scopes | | collection of scopes types |   |
4141
4141
 
4142
4142
 
4143
4143
 
@@ -4145,7 +4145,7 @@ Gets the label of the filter property
4145
4145
  ##### Returns
4146
4146
 
4147
4147
 
4148
- - a string of the filter property label
4148
+ - The new array of UI Flattened filters
4149
4149
 
4150
4150
 
4151
4151
 
@@ -8,4 +8,5 @@ export interface II18nBucketBuilderOperator {
8
8
  month: string;
9
9
  before: string;
10
10
  after: string;
11
+ month_year: string;
11
12
  }
@@ -85,7 +85,8 @@ exports.I18N_BUCKET_BUILDER = {
85
85
  year: 'Year',
86
86
  month: 'Month',
87
87
  before: 'Before',
88
- after: 'After'
88
+ after: 'After',
89
+ month_year: 'Month + Year',
89
90
  },
90
91
  list_buckets: {
91
92
  title: 'Available Buckets',
@@ -8,4 +8,5 @@ export interface II18nBucketBuilderOperator {
8
8
  month: string;
9
9
  before: string;
10
10
  after: string;
11
+ month_year: string;
11
12
  }
@@ -82,7 +82,8 @@ export const I18N_BUCKET_BUILDER = {
82
82
  year: 'Year',
83
83
  month: 'Month',
84
84
  before: 'Before',
85
- after: 'After'
85
+ after: 'After',
86
+ month_year: 'Month + Year',
86
87
  },
87
88
  list_buckets: {
88
89
  title: 'Available Buckets',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.2.4-20",
3
+ "version": "1.2.4-21",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",
@@ -8,4 +8,5 @@ export interface II18nBucketBuilderOperator {
8
8
  month: string;
9
9
  before: string;
10
10
  after: string;
11
+ month_year: string;
11
12
  }
@@ -84,7 +84,8 @@ export const I18N_BUCKET_BUILDER: II18nBucketBuilder = {
84
84
  year: 'Year',
85
85
  month: 'Month',
86
86
  before: 'Before',
87
- after: 'After'
87
+ after: 'After',
88
+ month_year: 'Month + Year',
88
89
  },
89
90
  list_buckets: {
90
91
  title: 'Available Buckets',