@qrvey/utils 1.3.0-7 → 1.3.0

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 (141) hide show
  1. package/.eslintrc.json +2 -0
  2. package/README.md +503 -49
  3. package/bitbucket-pipelines.yml +24 -16
  4. package/dist/cjs/column_format/helpers/columnTypeByChart.d.ts +1 -1
  5. package/dist/cjs/column_format/helpers/defineXYChartFormat.js +4 -3
  6. package/dist/cjs/columns/helpers/getDatasetColumnByDatasets.d.ts +10 -0
  7. package/dist/cjs/columns/helpers/{getDatasetColumnyDatasets.js → getDatasetColumnByDatasets.js} +8 -1
  8. package/dist/cjs/columns/helpers/index.d.ts +1 -2
  9. package/dist/cjs/columns/helpers/index.js +1 -2
  10. package/dist/cjs/dates/adapters/index.d.ts +6 -0
  11. package/dist/cjs/dates/adapters/index.js +6 -0
  12. package/dist/cjs/filters/adapters/FDToLogic.js +3 -3
  13. package/dist/cjs/filters/helpers/backend/getLogicByDatasets.d.ts +11 -0
  14. package/dist/cjs/filters/helpers/backend/getLogicByDatasets.js +34 -0
  15. package/dist/cjs/filters/helpers/backend/getLogicByDatasetsColumns.d.ts +12 -0
  16. package/dist/cjs/filters/helpers/backend/getLogicByDatasetsColumns.js +47 -0
  17. package/dist/cjs/filters/helpers/backend/index.d.ts +2 -0
  18. package/dist/cjs/filters/helpers/backend/index.js +2 -0
  19. package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +1 -1
  20. package/dist/cjs/filters/helpers/common/getFiltersByDatasetsColumns.d.ts +10 -0
  21. package/dist/cjs/filters/helpers/common/getFiltersByDatasetsColumns.js +32 -0
  22. package/dist/cjs/filters/helpers/common/index.d.ts +1 -0
  23. package/dist/cjs/filters/helpers/common/index.js +1 -0
  24. package/dist/cjs/filters/helpers/getAvailableScopes.js +5 -5
  25. package/dist/cjs/filters/interfaces/backend/IFBExpression.d.ts +1 -0
  26. package/dist/cjs/filters/interfaces/common/IFSAvailableScope.d.ts +1 -0
  27. package/dist/cjs/filters/interfaces/functions/IFFGetLogicByDatasets.d.ts +6 -0
  28. package/dist/cjs/filters/interfaces/functions/IFFGetLogicByDatasets.js +2 -0
  29. package/dist/cjs/filters/interfaces/functions/IFFGetLogicByDatasetsColumns.d.ts +7 -0
  30. package/dist/cjs/filters/interfaces/functions/IFFGetLogicByDatasetsColumns.js +2 -0
  31. package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.d.ts +1 -1
  32. package/dist/cjs/filters/interfaces/functions/index.d.ts +2 -0
  33. package/dist/cjs/filters/interfaces/functions/index.js +2 -0
  34. package/dist/cjs/filters/interfaces/index.d.ts +1 -0
  35. package/dist/cjs/filters/interfaces/index.js +1 -0
  36. package/dist/cjs/filters/services/Filters.api.js +11 -6
  37. package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +1 -1
  38. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +10 -0
  39. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +1 -0
  40. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
  41. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +10 -0
  42. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +1 -0
  43. package/dist/cjs/qrvey/helpers/getDatasetByColumn.d.ts +9 -0
  44. package/dist/cjs/{columns → qrvey}/helpers/getDatasetByColumn.js +8 -2
  45. package/dist/cjs/qrvey/helpers/index.d.ts +1 -0
  46. package/dist/cjs/qrvey/helpers/index.js +1 -0
  47. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +3 -3
  48. package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +5 -4
  49. package/dist/cjs/services/adapters/BDatasetsToUIDatasets.adapter.js +3 -2
  50. package/dist/cjs/services/adapters/BModelToUIModel.adapter.js +1 -1
  51. package/dist/column_format/helpers/defineXYChartFormat.js +4 -3
  52. package/dist/columns/helpers/getDatasetColumnByDatasets.d.ts +10 -0
  53. package/dist/columns/helpers/getDatasetColumnByDatasets.js +15 -0
  54. package/dist/columns/helpers/index.d.ts +1 -2
  55. package/dist/columns/helpers/index.js +1 -2
  56. package/dist/dates/adapters/index.d.ts +6 -0
  57. package/dist/dates/adapters/index.js +6 -0
  58. package/dist/filters/adapters/FDToLogic.js +3 -3
  59. package/dist/filters/helpers/backend/getLogicByDatasets.d.ts +11 -0
  60. package/dist/filters/helpers/backend/getLogicByDatasets.js +30 -0
  61. package/dist/filters/helpers/backend/getLogicByDatasetsColumns.d.ts +12 -0
  62. package/dist/filters/helpers/backend/getLogicByDatasetsColumns.js +43 -0
  63. package/dist/filters/helpers/backend/index.d.ts +2 -0
  64. package/dist/filters/helpers/backend/index.js +2 -0
  65. package/dist/filters/helpers/common/excludeFiltersByParams.js +1 -1
  66. package/dist/filters/helpers/common/getFiltersByDatasetsColumns.d.ts +10 -0
  67. package/dist/filters/helpers/common/getFiltersByDatasetsColumns.js +28 -0
  68. package/dist/filters/helpers/common/index.d.ts +1 -0
  69. package/dist/filters/helpers/common/index.js +1 -0
  70. package/dist/filters/helpers/getAvailableScopes.js +5 -5
  71. package/dist/filters/interfaces/backend/IFBExpression.d.ts +1 -0
  72. package/dist/filters/interfaces/common/IFSAvailableScope.d.ts +1 -0
  73. package/dist/filters/interfaces/functions/IFFGetLogicByDatasets.d.ts +6 -0
  74. package/dist/filters/interfaces/functions/IFFGetLogicByDatasets.js +1 -0
  75. package/dist/filters/interfaces/functions/IFFGetLogicByDatasetsColumns.d.ts +7 -0
  76. package/dist/filters/interfaces/functions/IFFGetLogicByDatasetsColumns.js +1 -0
  77. package/dist/filters/interfaces/functions/IFFiltersGetData.d.ts +1 -1
  78. package/dist/filters/interfaces/functions/index.d.ts +2 -0
  79. package/dist/filters/interfaces/functions/index.js +2 -0
  80. package/dist/filters/interfaces/index.d.ts +1 -0
  81. package/dist/filters/interfaces/index.js +1 -0
  82. package/dist/filters/services/Filters.api.js +11 -6
  83. package/dist/globalization/helpers/getI18nDateGroupLabel.js +1 -1
  84. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +10 -0
  85. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +1 -0
  86. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
  87. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +10 -0
  88. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +1 -0
  89. package/dist/qrvey/helpers/getDatasetByColumn.d.ts +9 -0
  90. package/dist/qrvey/helpers/getDatasetByColumn.js +12 -0
  91. package/dist/qrvey/helpers/index.d.ts +1 -0
  92. package/dist/qrvey/helpers/index.js +1 -0
  93. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +3 -3
  94. package/dist/services/adapters/BColumnsToUIColumns.adapter.js +5 -4
  95. package/dist/services/adapters/BDatasetsToUIDatasets.adapter.js +3 -2
  96. package/dist/services/adapters/BModelToUIModel.adapter.js +1 -1
  97. package/jest.config.js +1 -1
  98. package/package.json +5 -4
  99. package/src/column_format/helpers/defineXYChartFormat.ts +4 -5
  100. package/src/columns/helpers/{getDatasetColumnyDatasets.ts → getDatasetColumnByDatasets.ts} +9 -1
  101. package/src/columns/helpers/index.ts +1 -2
  102. package/src/dates/adapters/index.ts +6 -0
  103. package/src/filters/adapters/FDToLogic.ts +5 -5
  104. package/src/filters/helpers/backend/getLogicByDatasets.ts +37 -0
  105. package/src/filters/helpers/backend/getLogicByDatasetsColumns.ts +52 -0
  106. package/src/filters/helpers/backend/index.ts +2 -0
  107. package/src/filters/helpers/common/excludeFiltersByParams.ts +1 -1
  108. package/src/filters/helpers/common/getFiltersByDatasetsColumns.ts +40 -0
  109. package/src/filters/helpers/common/index.ts +1 -0
  110. package/src/filters/helpers/getAvailableScopes.ts +4 -4
  111. package/src/filters/interfaces/backend/IFBExpression.ts +1 -0
  112. package/src/filters/interfaces/common/IFSAvailableScope.ts +1 -0
  113. package/src/filters/interfaces/functions/IFFGetLogicByDatasets.ts +6 -0
  114. package/src/filters/interfaces/functions/IFFGetLogicByDatasetsColumns.ts +7 -0
  115. package/src/filters/interfaces/functions/IFFiltersGetData.ts +1 -1
  116. package/src/filters/interfaces/functions/index.ts +2 -0
  117. package/src/filters/interfaces/index.ts +1 -0
  118. package/src/filters/services/Filters.api.ts +11 -3
  119. package/src/globalization/helpers/getI18nDateGroupLabel.ts +1 -1
  120. package/src/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.ts +10 -0
  121. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +1 -0
  122. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +1 -1
  123. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +10 -0
  124. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +1 -0
  125. package/src/qrvey/helpers/getDatasetByColumn.ts +15 -0
  126. package/src/qrvey/helpers/index.ts +1 -0
  127. package/src/services/adapters/BBranchesMapToUIBranchesMap.adapter.ts +3 -3
  128. package/src/services/adapters/BColumnsToUIColumns.adapter.ts +5 -4
  129. package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +3 -2
  130. package/src/services/adapters/BModelToUIModel.adapter.ts +1 -1
  131. package/test/filters/backend/getLogicByDatasetsColumns.test.js +312 -0
  132. package/test/tokens/isTokenLabel.test.js +259 -0
  133. package/tsconfig.json +1 -4
  134. package/dist/cjs/columns/helpers/getDatasetByColumn.d.ts +0 -3
  135. package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.d.ts +0 -3
  136. package/dist/columns/helpers/getDatasetByColumn.d.ts +0 -3
  137. package/dist/columns/helpers/getDatasetByColumn.js +0 -6
  138. package/dist/columns/helpers/getDatasetColumnyDatasets.d.ts +0 -3
  139. package/dist/columns/helpers/getDatasetColumnyDatasets.js +0 -8
  140. package/src/columns/helpers/getDatasetByColumn.ts +0 -9
  141. package/test/tokens/isTokenLabel.test.ts +0 -129
package/.eslintrc.json CHANGED
@@ -20,7 +20,9 @@
20
20
  "comma-spacing": "off",
21
21
  "semi": "off",
22
22
  "no-unused-vars": "off",
23
+ "no-shadow": "off",
23
24
 
25
+ "@typescript-eslint/no-shadow": ["error"],
24
26
  "@typescript-eslint/no-inferrable-types": "warn",
25
27
  "@typescript-eslint/object-curly-spacing": ["warn", "always"],
26
28
  "@typescript-eslint/no-extra-semi": ["warn"],
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.3.0-0*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.3.0*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -107,6 +107,35 @@ Get an string of the properties of the given column.
107
107
 
108
108
 
109
109
 
110
+ ### dist/columns/helpers/getDatasetColumnByDatasets.js
111
+
112
+
113
+ #### getDatasetColumnByDatasets(column, datasets)
114
+
115
+ Gets a column from a dataset.
116
+ Recieves a partial column object and received a full column object from the Dataset
117
+
118
+
119
+
120
+
121
+ ##### Parameters
122
+
123
+ | Name | Type | Description | |
124
+ | ---- | ---- | ----------- | -------- |
125
+ | column | | a partial column object |   |
126
+ | datasets | | the datasets to look for the colun |   |
127
+
128
+
129
+
130
+
131
+ ##### Returns
132
+
133
+
134
+ - the Column object
135
+
136
+
137
+
138
+
110
139
  ### dist/columns/helpers/getModelColumn.js
111
140
 
112
141
 
@@ -159,6 +188,168 @@ Get the question data array from model object
159
188
 
160
189
 
161
190
 
191
+ ### dist/dates/adapters/dateToHms.js
192
+
193
+
194
+ #### dateToHms(date)
195
+
196
+ * Transform a Date to [HH:mm:ss] date format.
197
+
198
+
199
+
200
+
201
+ ##### Parameters
202
+
203
+ | Name | Type | Description | |
204
+ | ---- | ---- | ----------- | -------- |
205
+ | date | | String, object or millisencond number of the date |   |
206
+
207
+
208
+
209
+
210
+ ##### Returns
211
+
212
+
213
+ - string of [HH:mm:ss] date format
214
+
215
+
216
+
217
+
218
+ ### dist/dates/adapters/dateToMdyDate.js
219
+
220
+
221
+ #### dateToMdyDate(date)
222
+
223
+ Transform a Date to [mm/dd/yyyy] date format.
224
+
225
+
226
+
227
+
228
+ ##### Parameters
229
+
230
+ | Name | Type | Description | |
231
+ | ---- | ---- | ----------- | -------- |
232
+ | date | | String, object or millisencond number of the date |   |
233
+
234
+
235
+
236
+
237
+ ##### Returns
238
+
239
+
240
+ - string of [mm/dd/yyyy] date format
241
+
242
+
243
+
244
+
245
+ ### dist/dates/adapters/dateToMonthYear.js
246
+
247
+
248
+ #### dateToMonthYear(date)
249
+
250
+ Transform a Date to [Month Year] date format.
251
+
252
+
253
+
254
+
255
+ ##### Parameters
256
+
257
+ | Name | Type | Description | |
258
+ | ---- | ---- | ----------- | -------- |
259
+ | date | | String, object or millisencond number of the date |   |
260
+
261
+
262
+
263
+
264
+ ##### Returns
265
+
266
+
267
+ - string of [Month Year] date format
268
+
269
+
270
+
271
+
272
+ ### dist/dates/adapters/dateToQuarterYear.js
273
+
274
+
275
+ #### dateToQuarterYear(date)
276
+
277
+ Transform a Date to [Quarter Year] date format.
278
+
279
+
280
+
281
+
282
+ ##### Parameters
283
+
284
+ | Name | Type | Description | |
285
+ | ---- | ---- | ----------- | -------- |
286
+ | date | | String, object or millisencond number of the date |   |
287
+
288
+
289
+
290
+
291
+ ##### Returns
292
+
293
+
294
+ - string of [Quarter Year] date format
295
+
296
+
297
+
298
+
299
+ ### dist/dates/adapters/dateToWeekYear.js
300
+
301
+
302
+ #### dateToWeekYear(date)
303
+
304
+ Transform a Date to [W# Year] date format.
305
+
306
+
307
+
308
+
309
+ ##### Parameters
310
+
311
+ | Name | Type | Description | |
312
+ | ---- | ---- | ----------- | -------- |
313
+ | date | | String, object or millisencond number of the date |   |
314
+
315
+
316
+
317
+
318
+ ##### Returns
319
+
320
+
321
+ - string of [W# Year] date format
322
+
323
+
324
+
325
+
326
+ ### dist/dates/adapters/dateToYear.js
327
+
328
+
329
+ #### dateToYear(date)
330
+
331
+ Transform a Date to [Year] date format.
332
+
333
+
334
+
335
+
336
+ ##### Parameters
337
+
338
+ | Name | Type | Description | |
339
+ | ---- | ---- | ----------- | -------- |
340
+ | date | | String, object or millisencond number of the date |   |
341
+
342
+
343
+
344
+
345
+ ##### Returns
346
+
347
+
348
+ - string of [Year] date format
349
+
350
+
351
+
352
+
162
353
  ### dist/dates/adapters/mdyDateToDate.js
163
354
 
164
355
 
@@ -382,6 +573,61 @@ Gets an array of regular expressions by the given date format
382
573
 
383
574
 
384
575
 
576
+ ### dist/dates/helpers/getDatePickerPickLevel.js
577
+
578
+
579
+ #### getDatePickerPickLevel(format)
580
+
581
+ Gets the pick level number related to the Date picker element
582
+
583
+
584
+
585
+
586
+ ##### Parameters
587
+
588
+ | Name | Type | Description | |
589
+ | ---- | ---- | ----------- | -------- |
590
+ | format | `IDateFormat` | The date format |   |
591
+
592
+
593
+
594
+
595
+ ##### Returns
596
+
597
+
598
+ - `number` A number of the pick level setting
599
+
600
+
601
+
602
+
603
+ ### dist/dates/helpers/getFormattedDateByFormat.js
604
+
605
+
606
+ #### getFormattedDateByFormat(date, format)
607
+
608
+ A Date object, string or millisecond number are gotten in order to convert it in an formatted string date
609
+
610
+
611
+
612
+
613
+ ##### Parameters
614
+
615
+ | Name | Type | Description | |
616
+ | ---- | ---- | ----------- | -------- |
617
+ | date | | String with a formatted date |   |
618
+ | format | | The date format |   |
619
+
620
+
621
+
622
+
623
+ ##### Returns
624
+
625
+
626
+ - a formmatted date or the same value if format does not match
627
+
628
+
629
+
630
+
385
631
  ### dist/dates/helpers/getSeparatorByDateFormat.js
386
632
 
387
633
 
@@ -437,6 +683,35 @@ Additionally, the month and the year
437
683
 
438
684
 
439
685
 
686
+ ### dist/dates/helpers/includeDateTokens.js
687
+
688
+
689
+ #### includeDateTokens(date, format)
690
+
691
+ Determines if the given date has tokens. The date is splitted depending on date format.
692
+ Undefined date is returning false.
693
+
694
+
695
+
696
+
697
+ ##### Parameters
698
+
699
+ | Name | Type | Description | |
700
+ | ---- | ---- | ----------- | -------- |
701
+ | date | | The string of the date. It may contain tokens. |   |
702
+ | format | | The date format |   |
703
+
704
+
705
+
706
+
707
+ ##### Returns
708
+
709
+
710
+ - true: include tokens; false: otherwise
711
+
712
+
713
+
714
+
440
715
  ### dist/dates/helpers/validateDate.js
441
716
 
442
717
 
@@ -767,26 +1042,6 @@ Output:
767
1042
 
768
1043
 
769
1044
 
770
- ### dist/filters/classes/FilterInputErrorHandler.js
771
-
772
-
773
- #### new FilterInputErrorHandler()
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
- ##### Returns
783
-
784
-
785
- - `Void`
786
-
787
-
788
-
789
-
790
1045
  ### dist/filters/adapters/FDToFlatUI.js
791
1046
 
792
1047
 
@@ -2635,6 +2890,47 @@ Checks if two filter columns are the same.
2635
2890
 
2636
2891
 
2637
2892
 
2893
+ ### dist/general/array/addPropertyToArrayOfObjects.js
2894
+
2895
+
2896
+ #### addPropertyToArrayOfObjects(info)
2897
+
2898
+ It takes an array of objects, adds a property to each object, and returns the new array.
2899
+
2900
+
2901
+
2902
+
2903
+ ##### Parameters
2904
+
2905
+ | Name | Type | Description | |
2906
+ | ---- | ---- | ----------- | -------- |
2907
+ | info | `Object` | - Information needed to add property to the array of objects. |   |
2908
+ | info.array | `Array` | - The array of objects you want to add a property to. |   |
2909
+ | info.property | `string` | - The property you want to add to the object. |   |
2910
+ | info.value | `any` | - - The value to be added to the array of objects. ---------------------------------------------------------------------------------------------- |   |
2911
+
2912
+
2913
+
2914
+
2915
+ ##### Examples
2916
+
2917
+ ```javascript
2918
+ <caption>Example usage of addPropertyToArrayOfObjects.</caption> addPropertyToArrayOfObjects({
2919
+ array: [{ name: "John", lastName: "Doe" }, { name: "Chris", lastName: "Musk" }],
2920
+ property: "lastName",
2921
+ value: 'Peck'
2922
+ });
2923
+ ```
2924
+
2925
+
2926
+ ##### Returns
2927
+
2928
+
2929
+ - the new array created.
2930
+
2931
+
2932
+
2933
+
2638
2934
  ### dist/general/array/delete.js
2639
2935
 
2640
2936
 
@@ -3177,33 +3473,6 @@ Gets the length of the given array.
3177
3473
 
3178
3474
 
3179
3475
 
3180
- ### dist/general/string/capitalize.js
3181
-
3182
-
3183
- #### capitalize(text)
3184
-
3185
- Upper case the first letter of a given text
3186
-
3187
-
3188
-
3189
-
3190
- ##### Parameters
3191
-
3192
- | Name | Type | Description | |
3193
- | ---- | ---- | ----------- | -------- |
3194
- | text | `String` | | &nbsp; |
3195
-
3196
-
3197
-
3198
-
3199
- ##### Returns
3200
-
3201
-
3202
- - `String` a capitalized text
3203
-
3204
-
3205
-
3206
-
3207
3476
  ### dist/general/object/cloneDeep.js
3208
3477
 
3209
3478
 
@@ -3608,6 +3877,53 @@ serialize object to url param
3608
3877
 
3609
3878
 
3610
3879
 
3880
+ ##### Returns
3881
+
3882
+
3883
+ - `Void`
3884
+
3885
+
3886
+
3887
+
3888
+ ### dist/general/string/capitalize.js
3889
+
3890
+
3891
+ #### capitalize(text)
3892
+
3893
+ Upper case the first letter of a given text
3894
+
3895
+
3896
+
3897
+
3898
+ ##### Parameters
3899
+
3900
+ | Name | Type | Description | |
3901
+ | ---- | ---- | ----------- | -------- |
3902
+ | text | `String` | | &nbsp; |
3903
+
3904
+
3905
+
3906
+
3907
+ ##### Returns
3908
+
3909
+
3910
+ - `String` a capitalized text
3911
+
3912
+
3913
+
3914
+
3915
+ ### dist/globalization/service/i18nextBuilder.js
3916
+
3917
+
3918
+ #### new I18nService()
3919
+
3920
+ This class allows to use the translation service of the i18next library
3921
+
3922
+
3923
+
3924
+
3925
+
3926
+
3611
3927
  ##### Returns
3612
3928
 
3613
3929
 
@@ -3706,6 +4022,34 @@ For the others columns, answers is located in the property of the same name.
3706
4022
 
3707
4023
 
3708
4024
 
4025
+ ### dist/qrvey/helpers/getDatasetByColumn.js
4026
+
4027
+
4028
+ #### getDatasetByColumn(column, datasets)
4029
+
4030
+ Gets a dataset by a given partial column
4031
+
4032
+
4033
+
4034
+
4035
+ ##### Parameters
4036
+
4037
+ | Name | Type | Description | |
4038
+ | ---- | ---- | ----------- | -------- |
4039
+ | column | | the partial column | &nbsp; |
4040
+ | datasets | | the collection of dataset to look for one. | &nbsp; |
4041
+
4042
+
4043
+
4044
+
4045
+ ##### Returns
4046
+
4047
+
4048
+ - the found dataset or undefined
4049
+
4050
+
4051
+
4052
+
3709
4053
  ### dist/qrvey/helpers/getDropdownAnswers.js
3710
4054
 
3711
4055
 
@@ -4630,6 +4974,87 @@ Gets the Ranking values.
4630
4974
 
4631
4975
 
4632
4976
 
4977
+ ### dist/filters/helpers/backend/getLogicByDatasets.js
4978
+
4979
+
4980
+ #### getLogicByDatasets(logic, datasets)
4981
+
4982
+ [TODO: Add filterEmptyArrays to the filterNestedTree filter condition. Firstly, that function should accept this argument]
4983
+ Filters the logic by a qrveyids array
4984
+ If an qrveyid is not provided in the expression the filter passes normally
4985
+
4986
+
4987
+
4988
+
4989
+ ##### Parameters
4990
+
4991
+ | Name | Type | Description | |
4992
+ | ---- | ---- | ----------- | -------- |
4993
+ | logic | | The logic of the filter | &nbsp; |
4994
+ | datasets | | The collection of qrveyids | &nbsp; |
4995
+
4996
+
4997
+
4998
+
4999
+ ##### Returns
5000
+
5001
+
5002
+ - a new filtered logic
5003
+
5004
+
5005
+
5006
+
5007
+ ### dist/filters/helpers/backend/getLogicByDatasetsColumns.js
5008
+
5009
+
5010
+ #### getLogicByDatasetsColumns(logic, datasets)
5011
+
5012
+
5013
+
5014
+
5015
+
5016
+
5017
+ ##### Parameters
5018
+
5019
+ | Name | Type | Description | |
5020
+ | ---- | ---- | ----------- | -------- |
5021
+ | logic | | The logic of the filter | &nbsp; |
5022
+ | datasets | | The collection of datasets | &nbsp; |
5023
+
5024
+
5025
+
5026
+
5027
+ ##### Returns
5028
+
5029
+
5030
+ - a new filtered logic
5031
+
5032
+
5033
+
5034
+ #### getGetLogicByDatasetsSettings(settings)
5035
+
5036
+ Gets the default settings for the getLogicByDatasetsColumn function
5037
+
5038
+
5039
+
5040
+
5041
+ ##### Parameters
5042
+
5043
+ | Name | Type | Description | |
5044
+ | ---- | ---- | ----------- | -------- |
5045
+ | settings | | the settings given by the implementer | &nbsp; |
5046
+
5047
+
5048
+
5049
+
5050
+ ##### Returns
5051
+
5052
+
5053
+ - an object with all properties set
5054
+
5055
+
5056
+
5057
+
4633
5058
  ### dist/filters/helpers/backend/getLogicByScopes.js
4634
5059
 
4635
5060
 
@@ -4953,6 +5378,35 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
4953
5378
 
4954
5379
 
4955
5380
 
5381
+ ### dist/filters/helpers/common/getFiltersByDatasetsColumns.js
5382
+
5383
+
5384
+ #### getFiltersByDatasetsColumns(data, datasets)
5385
+
5386
+ Filtering the filters by the columns of datasets.
5387
+ Module specially for CLS.
5388
+
5389
+
5390
+
5391
+
5392
+ ##### Parameters
5393
+
5394
+ | Name | Type | Description | |
5395
+ | ---- | ---- | ----------- | -------- |
5396
+ | data | | the filter data | &nbsp; |
5397
+ | datasets | | the collection of datasets and their columns | &nbsp; |
5398
+
5399
+
5400
+
5401
+
5402
+ ##### Returns
5403
+
5404
+
5405
+ - A new filter data with the filtered filters by columns
5406
+
5407
+
5408
+
5409
+
4956
5410
  ### dist/filters/helpers/common/getFiltersByParams.js
4957
5411
 
4958
5412
 
@@ -5894,7 +6348,7 @@ Gets the UI Values generated depending on the validator
5894
6348
  ##### Returns
5895
6349
 
5896
6350
 
5897
- - the UI Values
6351
+ - an array of values
5898
6352
 
5899
6353
 
5900
6354
 
@@ -1,25 +1,33 @@
1
1
  image: node:lts-gallium
2
2
 
3
+ options:
4
+ max-time: 6
5
+
3
6
  pipelines:
4
7
  default:
5
- - step:
6
- name: Building
7
- size: 2x
8
- script:
8
+ - step:
9
+ name: Building
10
+ caches:
11
+ - node
12
+ script:
9
13
  - npm install
10
14
  - npm run build
11
15
  - cd dist/cjs
12
16
  - if [ ! -f "index.js" ]; then exit 1; fi
13
- artifacts:
17
+ artifacts:
14
18
  - dist/**
15
- - node_modules/**
16
- - step:
17
- name: Linting
18
- script:
19
- - npm run lint --quiet --exit-on-fatal-error
20
- - echo "Fanfare!"
21
- - step:
22
- name: Testing
23
- script:
24
- - npm run test --verbose --forceExit
25
- - echo "Fanfare!"
19
+ - parallel:
20
+ - step:
21
+ name: Linting
22
+ caches:
23
+ - node
24
+ script:
25
+ - npm run lint --quiet --exit-on-fatal-error
26
+ - echo "Fanfare!"
27
+ - step:
28
+ name: Testing
29
+ caches:
30
+ - node
31
+ script:
32
+ - npm run test --verbose --forceExit
33
+ - echo "Fanfare!"
@@ -13,4 +13,4 @@ import { IChartShelfType } from "../interfaces/IChartShelfType";
13
13
  * grouped.
14
14
  * @returns The column type of the column.
15
15
  */
16
- export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => "DATE" | "NUMERIC" | "TEXT_LABEL" | import("../..").COMPLEX_COLUMN | import("../..").COMPOUND_COLUMN | NUMERICAL_COLUMN | COLUMN.SINGLE_CHOICE | COLUMN.MULTIPLE_CHOICE | COLUMN.YES_NO | COLUMN.RANKING | COLUMN.DATE | COLUMN.SIGNATURE | COLUMN.DROPDOWN | COLUMN.IMAGE | COLUMN.EMAIL_FORM | COLUMN.PHONE | COLUMN.PASSWORD | COLUMN.CHECKLIST | COLUMN.NPS_SCORE | COLUMN.NPS_FEEDBACK | COLUMN.TEXT_LABEL | COLUMN.TEXT_CATEGORY | COLUMN.LOOKUP | COLUMN.HEADLINE | COLUMN.SECTION | COLUMN.AGGREGATED_FORMULA | COLUMN.BUCKET | COLUMN.SLIDEBAR | COLUMN.NUMERIC | COLUMN.NUMERICC | COLUMN.NUMERICP | COLUMN.NUMERICG | COLUMN.RATING | COLUMN.TEXTFIELD | COLUMN.LONGTEXT | COLUMN.IMAGEUPLOAD | COLUMN.FILEUPLOAD | COLUMN.EXPRESSION | COLUMN.NAME | COLUMN.USADDRESS | COLUMN.ADDRESS;
16
+ export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => import("../..").COMPLEX_COLUMN | import("../..").COMPOUND_COLUMN | NUMERICAL_COLUMN | COLUMN.SINGLE_CHOICE | COLUMN.MULTIPLE_CHOICE | COLUMN.YES_NO | COLUMN.RANKING | COLUMN.DATE | COLUMN.SIGNATURE | COLUMN.DROPDOWN | COLUMN.IMAGE | COLUMN.EMAIL_FORM | COLUMN.PHONE | COLUMN.PASSWORD | COLUMN.CHECKLIST | COLUMN.NPS_SCORE | COLUMN.NPS_FEEDBACK | COLUMN.TEXT_LABEL | COLUMN.TEXT_CATEGORY | COLUMN.LOOKUP | COLUMN.HEADLINE | COLUMN.SECTION | COLUMN.AGGREGATED_FORMULA | COLUMN.BUCKET | COLUMN.SLIDEBAR | COLUMN.NUMERIC | COLUMN.NUMERICC | COLUMN.NUMERICP | COLUMN.NUMERICG | COLUMN.RATING | COLUMN.TEXTFIELD | COLUMN.LONGTEXT | COLUMN.IMAGEUPLOAD | COLUMN.FILEUPLOAD | COLUMN.EXPRESSION | COLUMN.NAME | COLUMN.USADDRESS | COLUMN.ADDRESS | "DATE" | "NUMERIC" | "TEXT_LABEL";