@qrvey/utils 1.2.4-13 → 1.2.4-17

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 (580) hide show
  1. package/README.md +1468 -1082
  2. package/dist/cjs/columns/constants/COLUMN.d.ts +6 -6
  3. package/dist/cjs/columns/constants/COLUMN.js +8 -8
  4. package/dist/cjs/columns/constants/COLUMN_INFO.js +2 -1
  5. package/dist/cjs/columns/constants/COLUMN_INFO_LIST.js +2 -6
  6. package/dist/cjs/columns/constants/COLUMN_LABEL.d.ts +7 -6
  7. package/dist/cjs/columns/constants/COLUMN_LABEL.js +2 -1
  8. package/dist/cjs/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
  9. package/dist/cjs/columns/constants/COLUMN_PROPERTY.js +4 -4
  10. package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
  11. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
  12. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
  13. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
  14. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
  15. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
  16. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
  17. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
  18. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.js +12 -0
  19. package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
  20. package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.js +15 -0
  21. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
  22. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.js +16 -0
  23. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
  24. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +16 -0
  25. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
  26. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.js +12 -0
  27. package/dist/cjs/columns/constants/index.d.ts +5 -0
  28. package/dist/cjs/columns/constants/index.js +5 -0
  29. package/dist/cjs/columns/helpers/index.d.ts +1 -0
  30. package/dist/cjs/columns/helpers/index.js +1 -0
  31. package/dist/cjs/columns/helpers/isNumericalColumn.d.ts +2 -0
  32. package/dist/cjs/columns/helpers/isNumericalColumn.js +8 -0
  33. package/dist/cjs/columns/interfaces/IColumnType.d.ts +2 -1
  34. package/dist/cjs/columns/interfaces/INumericalColumnType.d.ts +2 -0
  35. package/dist/cjs/{globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js → columns/interfaces/INumericalColumnType.js} +0 -0
  36. package/dist/cjs/columns/interfaces/index.d.ts +3 -0
  37. package/dist/cjs/columns/interfaces/index.js +3 -0
  38. package/dist/cjs/dates/adapters/mdyDateToDate.d.ts +7 -0
  39. package/dist/cjs/dates/adapters/mdyDateToDate.js +21 -0
  40. package/dist/cjs/dates/adapters/monthYearToDate.d.ts +7 -0
  41. package/dist/cjs/dates/adapters/monthYearToDate.js +24 -0
  42. package/dist/cjs/dates/adapters/quarterYearToDate.d.ts +7 -0
  43. package/dist/cjs/dates/adapters/quarterYearToDate.js +24 -0
  44. package/dist/cjs/dates/adapters/weekYearToDate.d.ts +7 -0
  45. package/dist/cjs/dates/adapters/weekYearToDate.js +32 -0
  46. package/dist/cjs/dates/adapters/yearToDate.d.ts +7 -0
  47. package/dist/cjs/dates/adapters/yearToDate.js +22 -0
  48. package/dist/cjs/dates/constants/DATE_FORMAT.d.ts +16 -14
  49. package/dist/cjs/dates/constants/DATE_FORMAT.js +23 -18
  50. package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
  51. package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
  52. package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
  53. package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +21 -0
  54. package/dist/cjs/dates/constants/index.d.ts +1 -0
  55. package/dist/cjs/dates/constants/index.js +1 -0
  56. package/dist/cjs/dates/helpers/getDateByDateFormat.d.ts +9 -0
  57. package/dist/cjs/dates/helpers/getDateByDateFormat.js +36 -0
  58. package/dist/cjs/dates/helpers/getDateFormatByProperty.d.ts +8 -0
  59. package/dist/cjs/dates/helpers/getDateFormatByProperty.js +27 -0
  60. package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
  61. package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.js +47 -0
  62. package/dist/cjs/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
  63. package/dist/cjs/dates/helpers/getSeparatorByDateFormat.js +15 -0
  64. package/dist/cjs/dates/helpers/getWeek.d.ts +11 -0
  65. package/dist/cjs/dates/helpers/getWeek.js +25 -0
  66. package/dist/cjs/dates/helpers/index.d.ts +6 -0
  67. package/dist/cjs/dates/helpers/index.js +18 -0
  68. package/dist/cjs/dates/helpers/validateDate.d.ts +11 -0
  69. package/dist/cjs/dates/helpers/validateDate.js +24 -0
  70. package/dist/cjs/dates/helpers/validateDateByDateFormat.d.ts +8 -0
  71. package/dist/cjs/dates/helpers/validateDateByDateFormat.js +26 -0
  72. package/dist/cjs/dates/index.d.ts +1 -0
  73. package/dist/cjs/dates/index.js +1 -0
  74. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.d.ts +3 -12
  75. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
  76. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
  77. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +13 -0
  78. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
  79. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +9 -0
  80. package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
  81. package/dist/cjs/dates/relative/constants/index.js +2 -0
  82. package/dist/cjs/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
  83. package/dist/cjs/{globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
  84. package/dist/cjs/dates/relative/interfaces/index.d.ts +1 -0
  85. package/dist/cjs/dates/relative/interfaces/index.js +1 -0
  86. package/dist/cjs/filters/classes/FilterInputErrorHandler.d.ts +27 -0
  87. package/dist/cjs/filters/classes/FilterInputErrorHandler.js +15 -0
  88. package/dist/cjs/filters/classes/index.d.ts +1 -0
  89. package/dist/cjs/filters/classes/index.js +13 -0
  90. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
  91. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +9 -0
  92. package/dist/cjs/filters/index.d.ts +1 -0
  93. package/dist/cjs/filters/index.js +1 -0
  94. package/dist/cjs/general/mix/index.d.ts +1 -0
  95. package/dist/cjs/general/mix/index.js +1 -0
  96. package/dist/cjs/general/mix/isNaNV2.d.ts +8 -0
  97. package/dist/cjs/general/mix/isNaNV2.js +15 -0
  98. package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
  99. package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.js +2 -0
  100. package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +18 -10
  101. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
  102. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.js +2 -0
  103. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
  104. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.js +2 -0
  105. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +33 -0
  106. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.js +2 -0
  107. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
  108. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.js +2 -0
  109. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
  110. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.js +2 -0
  111. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
  112. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.js +2 -0
  113. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
  114. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js +2 -0
  115. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
  116. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +2 -0
  117. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
  118. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +2 -0
  119. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
  120. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +2 -0
  121. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +11 -0
  122. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +2 -0
  123. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
  124. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +2 -0
  125. package/dist/cjs/globalization/interfaces/bucket_builder/index.d.ts +12 -0
  126. package/dist/cjs/globalization/interfaces/bucket_builder/index.js +24 -0
  127. package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +29 -29
  128. package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
  129. package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.js +2 -0
  130. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  131. package/dist/cjs/globalization/interfaces/common/index.d.ts +1 -0
  132. package/dist/cjs/globalization/interfaces/common/index.js +1 -0
  133. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
  134. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.js +2 -0
  135. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
  136. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +2 -0
  137. package/dist/cjs/globalization/interfaces/cross_tabs/index.d.ts +1 -0
  138. package/dist/cjs/globalization/interfaces/cross_tabs/index.js +13 -0
  139. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +9 -0
  140. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
  141. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
  142. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +2 -0
  143. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
  144. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
  145. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.js +2 -0
  146. package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
  147. package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.js +2 -0
  148. package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
  149. package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.js +2 -0
  150. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
  151. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.js +2 -0
  152. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
  153. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.js +2 -0
  154. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
  155. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +2 -0
  156. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
  157. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +2 -0
  158. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
  159. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +2 -0
  160. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
  161. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +2 -0
  162. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
  163. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +2 -0
  164. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
  165. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +2 -0
  166. package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
  167. package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.js +2 -0
  168. package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
  169. package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.js +2 -0
  170. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
  171. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.js +2 -0
  172. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
  173. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.js +2 -0
  174. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +2 -0
  175. package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +3 -2
  176. package/dist/cjs/globalization/interfaces/filters/index.d.ts +16 -2
  177. package/dist/cjs/globalization/interfaces/filters/index.js +16 -2
  178. package/dist/cjs/globalization/interfaces/index.d.ts +8 -3
  179. package/dist/cjs/globalization/interfaces/index.js +8 -3
  180. package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +8 -0
  181. package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
  182. package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.js +2 -0
  183. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
  184. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +2 -0
  185. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
  186. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.js +2 -0
  187. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
  188. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.js +2 -0
  189. package/dist/cjs/globalization/interfaces/panel/index.d.ts +4 -0
  190. package/dist/cjs/globalization/interfaces/panel/index.js +4 -0
  191. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +11 -3
  192. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
  193. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +120 -0
  194. package/dist/cjs/globalization/labels/bucket_builder/index.d.ts +1 -0
  195. package/dist/cjs/globalization/labels/bucket_builder/index.js +13 -0
  196. package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +6 -6
  197. package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +29 -29
  198. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +6 -0
  199. package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
  200. package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +14 -0
  201. package/dist/cjs/globalization/labels/cross_tabs/index.d.ts +1 -0
  202. package/dist/cjs/globalization/labels/cross_tabs/index.js +13 -0
  203. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +10 -1
  204. package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -8
  205. package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
  206. package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.js +9 -0
  207. package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
  208. package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.js +7 -0
  209. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
  210. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +50 -0
  211. package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
  212. package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +14 -0
  213. package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
  214. package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.js +7 -0
  215. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
  216. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +13 -0
  217. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
  218. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +9 -0
  219. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +5 -5
  220. package/dist/cjs/globalization/labels/filters/index.d.ts +6 -0
  221. package/dist/cjs/globalization/labels/filters/index.js +6 -0
  222. package/dist/cjs/globalization/labels/index.d.ts +1 -0
  223. package/dist/cjs/globalization/labels/index.js +1 -0
  224. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +24 -0
  225. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +2 -1
  226. package/dist/cjs/globalization/service/i18nextBuilder.js +2 -2
  227. package/dist/columns/constants/COLUMN.d.ts +6 -6
  228. package/dist/columns/constants/COLUMN.js +8 -8
  229. package/dist/columns/constants/COLUMN_INFO.js +2 -1
  230. package/dist/columns/constants/COLUMN_INFO_LIST.js +2 -6
  231. package/dist/columns/constants/COLUMN_LABEL.d.ts +7 -6
  232. package/dist/columns/constants/COLUMN_LABEL.js +2 -1
  233. package/dist/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
  234. package/dist/columns/constants/COLUMN_PROPERTY.js +4 -4
  235. package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
  236. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
  237. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
  238. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
  239. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
  240. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
  241. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
  242. package/dist/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
  243. package/dist/columns/constants/NUMERICAL_COLUMN.js +9 -0
  244. package/dist/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
  245. package/dist/columns/constants/NUMERICAL_COLUMNS.js +12 -0
  246. package/dist/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
  247. package/dist/columns/constants/NUMERICAL_COLUMN_INFO.js +13 -0
  248. package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
  249. package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +13 -0
  250. package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
  251. package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.js +9 -0
  252. package/dist/columns/constants/index.d.ts +5 -0
  253. package/dist/columns/constants/index.js +5 -0
  254. package/dist/columns/helpers/index.d.ts +1 -0
  255. package/dist/columns/helpers/index.js +1 -0
  256. package/dist/columns/helpers/isNumericalColumn.d.ts +2 -0
  257. package/dist/columns/helpers/isNumericalColumn.js +4 -0
  258. package/dist/columns/interfaces/IColumnType.d.ts +2 -1
  259. package/dist/columns/interfaces/INumericalColumnType.d.ts +2 -0
  260. package/dist/{globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js → columns/interfaces/INumericalColumnType.js} +0 -0
  261. package/dist/columns/interfaces/index.d.ts +3 -0
  262. package/dist/columns/interfaces/index.js +3 -0
  263. package/dist/dates/adapters/mdyDateToDate.d.ts +7 -0
  264. package/dist/dates/adapters/mdyDateToDate.js +17 -0
  265. package/dist/dates/adapters/monthYearToDate.d.ts +7 -0
  266. package/dist/dates/adapters/monthYearToDate.js +20 -0
  267. package/dist/dates/adapters/quarterYearToDate.d.ts +7 -0
  268. package/dist/dates/adapters/quarterYearToDate.js +20 -0
  269. package/dist/dates/adapters/weekYearToDate.d.ts +7 -0
  270. package/dist/dates/adapters/weekYearToDate.js +28 -0
  271. package/dist/dates/adapters/yearToDate.d.ts +7 -0
  272. package/dist/dates/adapters/yearToDate.js +18 -0
  273. package/dist/dates/constants/DATE_FORMAT.d.ts +16 -14
  274. package/dist/dates/constants/DATE_FORMAT.js +23 -18
  275. package/dist/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
  276. package/dist/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
  277. package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
  278. package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +18 -0
  279. package/dist/dates/constants/index.d.ts +1 -0
  280. package/dist/dates/constants/index.js +1 -0
  281. package/dist/dates/helpers/getDateByDateFormat.d.ts +9 -0
  282. package/dist/dates/helpers/getDateByDateFormat.js +32 -0
  283. package/dist/dates/helpers/getDateFormatByProperty.d.ts +8 -0
  284. package/dist/dates/helpers/getDateFormatByProperty.js +23 -0
  285. package/dist/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
  286. package/dist/dates/helpers/getDateFormatRegularExpressionInArray.js +43 -0
  287. package/dist/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
  288. package/dist/dates/helpers/getSeparatorByDateFormat.js +11 -0
  289. package/dist/dates/helpers/getWeek.d.ts +11 -0
  290. package/dist/dates/helpers/getWeek.js +21 -0
  291. package/dist/dates/helpers/index.d.ts +6 -0
  292. package/dist/dates/helpers/index.js +6 -0
  293. package/dist/dates/helpers/validateDate.d.ts +11 -0
  294. package/dist/dates/helpers/validateDate.js +20 -0
  295. package/dist/dates/helpers/validateDateByDateFormat.d.ts +8 -0
  296. package/dist/dates/helpers/validateDateByDateFormat.js +22 -0
  297. package/dist/dates/index.d.ts +1 -0
  298. package/dist/dates/index.js +1 -0
  299. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.d.ts +3 -12
  300. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
  301. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
  302. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +10 -0
  303. package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
  304. package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +6 -0
  305. package/dist/dates/relative/constants/index.d.ts +2 -0
  306. package/dist/dates/relative/constants/index.js +2 -0
  307. package/dist/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
  308. package/dist/{globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
  309. package/dist/dates/relative/interfaces/index.d.ts +1 -0
  310. package/dist/dates/relative/interfaces/index.js +1 -0
  311. package/dist/filters/classes/FilterInputErrorHandler.d.ts +27 -0
  312. package/dist/filters/classes/FilterInputErrorHandler.js +11 -0
  313. package/dist/filters/classes/index.d.ts +1 -0
  314. package/dist/filters/classes/index.js +1 -0
  315. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
  316. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +6 -0
  317. package/dist/filters/index.d.ts +1 -0
  318. package/dist/filters/index.js +1 -0
  319. package/dist/general/mix/index.d.ts +1 -0
  320. package/dist/general/mix/index.js +1 -0
  321. package/dist/general/mix/isNaNV2.d.ts +8 -0
  322. package/dist/general/mix/isNaNV2.js +11 -0
  323. package/dist/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
  324. package/dist/globalization/interfaces/II18nServiceTranslateOption.js +1 -0
  325. package/dist/globalization/interfaces/IResourceI18n.d.ts +18 -10
  326. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
  327. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.js +1 -0
  328. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
  329. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.js +1 -0
  330. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +33 -0
  331. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.js +1 -0
  332. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
  333. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.js +1 -0
  334. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
  335. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.js +1 -0
  336. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
  337. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.js +1 -0
  338. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
  339. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js +1 -0
  340. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
  341. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +1 -0
  342. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
  343. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +1 -0
  344. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
  345. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +1 -0
  346. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +11 -0
  347. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +1 -0
  348. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
  349. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +1 -0
  350. package/dist/globalization/interfaces/bucket_builder/index.d.ts +12 -0
  351. package/dist/globalization/interfaces/bucket_builder/index.js +12 -0
  352. package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +29 -29
  353. package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
  354. package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.js +1 -0
  355. package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  356. package/dist/globalization/interfaces/common/index.d.ts +1 -0
  357. package/dist/globalization/interfaces/common/index.js +1 -0
  358. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
  359. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.js +1 -0
  360. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
  361. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +1 -0
  362. package/dist/globalization/interfaces/cross_tabs/index.d.ts +1 -0
  363. package/dist/globalization/interfaces/cross_tabs/index.js +1 -0
  364. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +9 -0
  365. package/dist/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
  366. package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
  367. package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +1 -0
  368. package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
  369. package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
  370. package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.js +1 -0
  371. package/dist/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
  372. package/dist/globalization/interfaces/filters/II18nFilterDisplay.js +1 -0
  373. package/dist/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
  374. package/dist/globalization/interfaces/filters/II18nFilterOperator.js +1 -0
  375. package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
  376. package/dist/globalization/interfaces/filters/II18nFilterPanel.js +1 -0
  377. package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
  378. package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.js +1 -0
  379. package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
  380. package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +1 -0
  381. package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
  382. package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +1 -0
  383. package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
  384. package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +1 -0
  385. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
  386. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +1 -0
  387. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
  388. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +1 -0
  389. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
  390. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +1 -0
  391. package/dist/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
  392. package/dist/globalization/interfaces/filters/II18nFilterScopes.js +1 -0
  393. package/dist/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
  394. package/dist/globalization/interfaces/filters/II18nRankingContainer.js +1 -0
  395. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
  396. package/dist/globalization/interfaces/filters/II18nRelativeContainer.js +1 -0
  397. package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
  398. package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.js +1 -0
  399. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +2 -0
  400. package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +3 -2
  401. package/dist/globalization/interfaces/filters/index.d.ts +16 -2
  402. package/dist/globalization/interfaces/filters/index.js +16 -2
  403. package/dist/globalization/interfaces/index.d.ts +8 -3
  404. package/dist/globalization/interfaces/index.js +8 -3
  405. package/dist/globalization/interfaces/panel/II18nPanel.d.ts +8 -0
  406. package/dist/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
  407. package/dist/globalization/interfaces/panel/II18nPanelEmbed.js +1 -0
  408. package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
  409. package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +1 -0
  410. package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
  411. package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.js +1 -0
  412. package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
  413. package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.js +1 -0
  414. package/dist/globalization/interfaces/panel/index.d.ts +4 -0
  415. package/dist/globalization/interfaces/panel/index.js +4 -0
  416. package/dist/globalization/labels/I18N_DEFAULT.js +11 -3
  417. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
  418. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +117 -0
  419. package/dist/globalization/labels/bucket_builder/index.d.ts +1 -0
  420. package/dist/globalization/labels/bucket_builder/index.js +1 -0
  421. package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +6 -6
  422. package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +29 -29
  423. package/dist/globalization/labels/common/I18N_COMMON.js +6 -0
  424. package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
  425. package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +11 -0
  426. package/dist/globalization/labels/cross_tabs/index.d.ts +1 -0
  427. package/dist/globalization/labels/cross_tabs/index.js +1 -0
  428. package/dist/globalization/labels/filters/I18N_FILTER.js +10 -1
  429. package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -8
  430. package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
  431. package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.js +6 -0
  432. package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
  433. package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.js +4 -0
  434. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
  435. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +47 -0
  436. package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
  437. package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +11 -0
  438. package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
  439. package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.js +4 -0
  440. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
  441. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +10 -0
  442. package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
  443. package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +6 -0
  444. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +5 -5
  445. package/dist/globalization/labels/filters/index.d.ts +6 -0
  446. package/dist/globalization/labels/filters/index.js +6 -0
  447. package/dist/globalization/labels/index.d.ts +1 -0
  448. package/dist/globalization/labels/index.js +1 -0
  449. package/dist/globalization/labels/panel/I18N_PANEL.js +24 -0
  450. package/dist/globalization/service/i18nextBuilder.d.ts +2 -1
  451. package/dist/globalization/service/i18nextBuilder.js +2 -2
  452. package/package.json +2 -2
  453. package/src/columns/constants/COLUMN.ts +9 -9
  454. package/src/columns/constants/COLUMN_INFO.ts +2 -6
  455. package/src/columns/constants/COLUMN_INFO_LIST.ts +2 -6
  456. package/src/columns/constants/COLUMN_LABEL.ts +3 -7
  457. package/src/columns/constants/COLUMN_PROPERTY.ts +4 -4
  458. package/src/columns/constants/COMPLEX_COLUMN_PROPERTIES.ts +4 -4
  459. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY.ts +4 -4
  460. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.ts +4 -4
  461. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +4 -4
  462. package/src/columns/constants/NUMERICAL_COLUMN.ts +8 -0
  463. package/src/columns/constants/NUMERICAL_COLUMNS.ts +13 -0
  464. package/src/columns/constants/NUMERICAL_COLUMN_INFO.ts +16 -0
  465. package/src/columns/constants/NUMERICAL_COLUMN_INFO_LIST.ts +15 -0
  466. package/src/columns/constants/NUMERICAL_COLUMN_LABEL.ts +8 -0
  467. package/src/columns/constants/index.ts +6 -0
  468. package/src/columns/helpers/index.ts +1 -0
  469. package/src/columns/helpers/isNumericalColumn.ts +7 -0
  470. package/src/columns/interfaces/IColumnType.ts +2 -1
  471. package/src/columns/interfaces/INumericalColumnType.ts +4 -0
  472. package/src/columns/interfaces/index.ts +4 -0
  473. package/src/dates/adapters/mdyDateToDate.ts +18 -0
  474. package/src/dates/adapters/monthYearToDate.ts +21 -0
  475. package/src/dates/adapters/quarterYearToDate.ts +21 -0
  476. package/src/dates/adapters/weekYearToDate.ts +28 -0
  477. package/src/dates/adapters/yearToDate.ts +20 -0
  478. package/src/dates/constants/DATE_FORMAT.ts +23 -18
  479. package/src/dates/constants/DATE_REGULAR_EXPRESSION.ts +32 -5
  480. package/src/dates/constants/DATE_YEAR_QUARTERS_RANGE.ts +18 -0
  481. package/src/dates/constants/index.ts +1 -0
  482. package/src/dates/helpers/getDateByDateFormat.ts +34 -0
  483. package/src/dates/helpers/getDateFormatByProperty.ts +26 -0
  484. package/src/dates/helpers/getDateFormatRegularExpressionInArray.ts +45 -0
  485. package/src/dates/helpers/getSeparatorByDateFormat.ts +13 -0
  486. package/src/dates/helpers/getWeek.ts +21 -0
  487. package/src/dates/helpers/index.ts +6 -0
  488. package/src/dates/helpers/validateDate.ts +22 -0
  489. package/src/dates/helpers/validateDateByDateFormat.ts +25 -0
  490. package/src/dates/index.ts +1 -0
  491. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO.ts +7 -4
  492. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +11 -0
  493. package/src/dates/relative/constants/RELATIVE_CURSOR_LABEL.ts +5 -0
  494. package/src/dates/relative/constants/index.ts +2 -0
  495. package/src/dates/relative/interfaces/IRelativeCursorInfo.ts +6 -0
  496. package/src/dates/relative/interfaces/index.ts +1 -0
  497. package/src/filters/classes/FilterInputErrorHandler.ts +213 -0
  498. package/src/filters/classes/index.ts +1 -0
  499. package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +7 -0
  500. package/src/filters/index.ts +1 -0
  501. package/src/general/mix/index.ts +1 -0
  502. package/src/general/mix/isNaNV2.ts +12 -0
  503. package/src/globalization/interfaces/II18nServiceTranslateOption.ts +4 -0
  504. package/src/globalization/interfaces/IResourceI18n.ts +18 -11
  505. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilder.ts +25 -0
  506. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.ts +15 -0
  507. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.ts +33 -0
  508. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.ts +15 -0
  509. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.ts +6 -0
  510. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.ts +6 -0
  511. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.ts +6 -0
  512. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.ts +5 -0
  513. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +7 -0
  514. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +5 -0
  515. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.ts +11 -0
  516. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.ts +6 -0
  517. package/src/globalization/interfaces/bucket_builder/index.ts +12 -0
  518. package/src/globalization/interfaces/common/II18nColumnProperties.ts +29 -29
  519. package/src/globalization/interfaces/common/II18nColumnTypesSuffixes.ts +6 -0
  520. package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
  521. package/src/globalization/interfaces/common/index.ts +1 -0
  522. package/src/globalization/interfaces/cross_tabs/II18nCrossTabs.ts +9 -0
  523. package/src/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.ts +5 -0
  524. package/src/globalization/interfaces/cross_tabs/index.ts +1 -0
  525. package/src/globalization/interfaces/filters/II18nFilter.ts +9 -0
  526. package/src/globalization/interfaces/filters/II18nFilterBuilder.ts +4 -2
  527. package/src/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.ts +14 -0
  528. package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.ts +2 -3
  529. package/src/globalization/interfaces/filters/II18nFilterBuilderScopes.ts +10 -0
  530. package/src/globalization/interfaces/filters/II18nFilterDisplay.ts +6 -0
  531. package/src/globalization/interfaces/filters/II18nFilterOperator.ts +4 -0
  532. package/src/globalization/interfaces/filters/II18nFilterPanel.ts +18 -0
  533. package/src/globalization/interfaces/filters/II18nFilterPanelCardAction.ts +6 -0
  534. package/src/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.ts +6 -0
  535. package/src/globalization/interfaces/filters/II18nFilterPanelEmptyState.ts +4 -0
  536. package/src/globalization/interfaces/filters/II18nFilterPanelHeaderSection.ts +9 -0
  537. package/src/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.ts +7 -0
  538. package/src/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.ts +5 -0
  539. package/src/globalization/interfaces/filters/II18nFilterPanelSettingsSection.ts +10 -0
  540. package/src/globalization/interfaces/filters/II18nFilterScopes.ts +10 -0
  541. package/src/globalization/interfaces/filters/II18nRankingContainer.ts +4 -0
  542. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +11 -0
  543. package/src/globalization/interfaces/filters/II18nRelativeContainerCursor.ts +5 -0
  544. package/src/globalization/interfaces/filters/II18nValueContainer.ts +2 -0
  545. package/src/globalization/interfaces/filters/II18nValueContainerSearchInput.ts +3 -3
  546. package/src/globalization/interfaces/filters/index.ts +18 -2
  547. package/src/globalization/interfaces/index.ts +9 -3
  548. package/src/globalization/interfaces/panel/II18nPanel.ts +8 -1
  549. package/src/globalization/interfaces/panel/II18nPanelEmbed.ts +7 -0
  550. package/src/globalization/interfaces/panel/II18nPanelSummaryDisplay.ts +5 -0
  551. package/src/globalization/interfaces/panel/II18nPanelSummaryFilter.ts +5 -0
  552. package/src/globalization/interfaces/panel/II18nPanelSummaryGroup.ts +7 -0
  553. package/src/globalization/interfaces/panel/index.ts +4 -0
  554. package/src/globalization/labels/I18N_DEFAULT.ts +11 -3
  555. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +119 -0
  556. package/src/globalization/labels/bucket_builder/index.ts +1 -0
  557. package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +31 -29
  558. package/src/globalization/labels/common/I18N_COMMON.ts +6 -0
  559. package/src/globalization/labels/cross_tabs/I18N_CROSS_TABS.ts +14 -0
  560. package/src/globalization/labels/cross_tabs/index.ts +1 -0
  561. package/src/globalization/labels/filters/I18N_FILTER.ts +10 -1
  562. package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +23 -8
  563. package/src/globalization/labels/filters/I18N_FILTER_DISPLAY.ts +8 -0
  564. package/src/globalization/labels/filters/I18N_FILTER_OPERATOR.ts +6 -0
  565. package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +49 -0
  566. package/src/globalization/labels/filters/I18N_FILTER_SCOPE.ts +13 -0
  567. package/src/globalization/labels/filters/I18N_RANKING_CONTAINER.ts +6 -0
  568. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +12 -0
  569. package/src/globalization/labels/filters/I18N_RELATIVE_CURSOR.ts +7 -0
  570. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +5 -5
  571. package/src/globalization/labels/filters/index.ts +6 -1
  572. package/src/globalization/labels/index.ts +1 -1
  573. package/src/globalization/labels/panel/I18N_PANEL.ts +24 -0
  574. package/src/globalization/service/i18nextBuilder.ts +4 -3
  575. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
  576. package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
  577. package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
  578. package/dist/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
  579. package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.ts +0 -4
  580. package/src/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.ts +0 -5
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-13*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-17*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -80,12 +80,12 @@ Get a text and evaluate if it matchs with a token box label.
80
80
 
81
81
 
82
82
 
83
- ### dist/dates/range/getDateRange.js
83
+ ### dist/dates/adapters/mdyDateToDate.js
84
84
 
85
85
 
86
- #### getDateRange(value, dateGroupLabel, withTime)
86
+ #### mdyDateToDate(monthYearDate, time)
87
87
 
88
- Get date range object from a string date value
88
+ Transforms String Date from a [mm/dd/yyyy] format to Date object.
89
89
 
90
90
 
91
91
 
@@ -94,58 +94,36 @@ Get date range object from a string date value
94
94
 
95
95
  | Name | Type | Description | |
96
96
  | ---- | ---- | ----------- | -------- |
97
- | value | `String` | string date value |   |
98
- | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' |   |
99
- | withTime | `Boolean` | determines if the date range will include time. Default is true |   |
100
-
101
-
97
+ | monthYearDate | | String of [mm/dd/yyyy] date |   |
98
+ | time | | Flag to parse the object date to milliseconds. |   |
102
99
 
103
100
 
104
- ##### Examples
105
101
 
106
- ```javascript
107
- // 1) Year:
108
- getDateRange('2020', 'YEAR');
109
- // Will return:
110
- {
111
- from: '01/01/2020 00:00:00',
112
- to: '12/31/2020 23:59:59'
113
- }
114
102
 
115
- // 2) Quarter:
116
- getDateRange('Q3 2020', 'QUARTER');
117
- // Will return:
118
- {
119
- from: '07/01/2020 00:00:00',
120
- to: '09/30/2020 23:59:59'
121
- }
103
+ ##### Returns
122
104
 
123
- // 3) Month:
124
- getDateRange('Oct 2020', 'MONTH');
125
- // Will return:
126
- {
127
- from: '10/01/2020 00:00:00',
128
- to: '10/31/2020 23:59:59'
129
- }
130
- ```
131
105
 
106
+ - The date object or the date in milliseconds
132
107
 
133
- ##### Returns
134
108
 
135
109
 
136
- - `Object` an object with the date range with two string date properties: from and to
137
110
 
111
+ ### dist/dates/adapters/monthYearToDate.js
138
112
 
139
113
 
114
+ #### monthYearToDate(monthYearDate, time)
140
115
 
141
- ### dist/dates/relative/Adapter.js
116
+ Transforms String Date from a [Month Year] format to Date object.
142
117
 
143
118
 
144
- #### value()
145
119
 
146
- Resolves statement and returns statement value
147
120
 
121
+ ##### Parameters
148
122
 
123
+ | Name | Type | Description | |
124
+ | ---- | ---- | ----------- | -------- |
125
+ | monthYearDate | | String of [Month Year] date |   |
126
+ | time | | Flag to parse the object date to milliseconds. |   |
149
127
 
150
128
 
151
129
 
@@ -153,47 +131,55 @@ Resolves statement and returns statement value
153
131
  ##### Returns
154
132
 
155
133
 
156
- - `AbsoluteRange` `string`
134
+ - The date object or the date in milliseconds
157
135
 
158
136
 
159
137
 
160
- #### valueAsAnchor()
161
138
 
162
- Resolves statement as an anchor
139
+ ### dist/dates/adapters/quarterYearToDate.js
163
140
 
164
141
 
142
+ #### quarterYearToDate(quarterYearDate, time)
165
143
 
144
+ Transforms String Date from a [Quarter Year] format to Date object.
166
145
 
167
146
 
168
147
 
169
- ##### Returns
170
148
 
149
+ ##### Parameters
171
150
 
172
- - `string`
151
+ | Name | Type | Description | |
152
+ | ---- | ---- | ----------- | -------- |
153
+ | quarterYearDate | | String of [Quarter Year] date |   |
154
+ | time | | Flag to parse the object date to milliseconds. |   |
173
155
 
174
156
 
175
157
 
176
- #### _statementToRange() *private method*
177
158
 
178
- Convert verbal statement to range value
159
+ ##### Returns
179
160
 
180
161
 
162
+ - The date object or the date in milliseconds
181
163
 
182
164
 
183
165
 
184
166
 
185
- ##### Returns
167
+ ### dist/dates/adapters/weekYearToDate.js
186
168
 
187
169
 
188
- - `AbsoluteRange`
170
+ #### weekYearToDate(date, time)
189
171
 
172
+ Transforms String Date from a [Week Year] format to Date object.
190
173
 
191
174
 
192
- #### _resolveAsThis() *private method*
193
175
 
194
- Apply 'this' cursor logic to statement
195
176
 
177
+ ##### Parameters
196
178
 
179
+ | Name | Type | Description | |
180
+ | ---- | ---- | ----------- | -------- |
181
+ | date | | String of [Week Year] date |   |
182
+ | time | | Flag to parse the object date to milliseconds. |   |
197
183
 
198
184
 
199
185
 
@@ -201,45 +187,45 @@ Apply 'this' cursor logic to statement
201
187
  ##### Returns
202
188
 
203
189
 
204
- - `AbsoluteStatement`
205
-
206
-
207
-
208
- #### _resolveAsTheLast() *private method*
190
+ - The date object or the date in milliseconds
209
191
 
210
- Apply 'the last' cursor logic to statement
211
192
 
212
193
 
213
194
 
195
+ ### dist/dates/adapters/yearToDate.js
214
196
 
215
197
 
198
+ #### yearToDate(yearDate, time)
216
199
 
217
- ##### Returns
200
+ Transforms String Date from a [Year] format to Date object.
218
201
 
219
202
 
220
- - `AbsoluteStatement`
221
203
 
222
204
 
205
+ ##### Parameters
223
206
 
224
- #### _resolveAsTheNext() *private method*
207
+ | Name | Type | Description | |
208
+ | ---- | ---- | ----------- | -------- |
209
+ | yearDate | | String of [Year] date |   |
210
+ | time | | Flag to parse the object date to milliseconds. |   |
225
211
 
226
- Apply 'the next' cursor logic to statement
227
212
 
228
213
 
229
214
 
215
+ ##### Returns
230
216
 
231
217
 
218
+ - The date object or the date in milliseconds
232
219
 
233
- ##### Returns
234
220
 
235
221
 
236
- - `AbsoluteStatement`
237
222
 
223
+ ### dist/dates/helpers/getDateByDateFormat.js
238
224
 
239
225
 
240
- #### replaceNowToken(value, now)
226
+ #### getDateByDateFormat(date, format, time)
241
227
 
242
- Replace '@now' token inside a string
228
+ Gets a Date Object instance by a Date format
243
229
 
244
230
 
245
231
 
@@ -248,8 +234,9 @@ Replace '@now' token inside a string
248
234
 
249
235
  | Name | Type | Description | |
250
236
  | ---- | ---- | ----------- | -------- |
251
- | value | `string` | |   |
252
- | now | `Date` | |   |
237
+ | date | | String with a formatted date |   |
238
+ | format | | The date format |   |
239
+ | time | | flag to convert the formatted date to miliseconds |   |
253
240
 
254
241
 
255
242
 
@@ -257,60 +244,44 @@ Replace '@now' token inside a string
257
244
  ##### Returns
258
245
 
259
246
 
260
- - `string`
247
+ - a Date object, milisecond time or the same value if date format does not match.
261
248
 
262
249
 
263
250
 
264
- #### convertRelativeToAbsolute(args)
265
251
 
266
- Returns a range object (date) from a group of statement params
252
+ ### dist/dates/helpers/getDateFormatByProperty.js
267
253
 
268
254
 
255
+ #### getDateFormatByProperty(property)
269
256
 
257
+ Gets the date format by the given property
270
258
 
271
- ##### Parameters
272
259
 
273
- | Name | Type | Description | |
274
- | ---- | ---- | ----------- | -------- |
275
- | args | `RelativeToAbsoluteStruct` | |   |
276
260
 
277
261
 
262
+ ##### Parameters
278
263
 
264
+ | Name | Type | Description | |
265
+ | ---- | ---- | ----------- | -------- |
266
+ | property | | The Column Property |   |
279
267
 
280
- ##### Examples
281
268
 
282
- ```javascript
283
- pivot = '2021-03-03T12:30:40'
284
- unit = month
285
- steps = 2
286
- setTo = END
287
- resolverAsCalendar: true
288
- => Returns '2021-05-31T23:59:59'
289
- ```
290
- ```javascript
291
- pivot = '2021-03-03T12:30:40'
292
- unit = month
293
- steps = -2
294
- setTo = START
295
- resolverAsCalendar: false
296
- => Returns '2021-01-03T00:00:00'
297
- ```
298
269
 
299
270
 
300
271
  ##### Returns
301
272
 
302
273
 
303
- - `string`
274
+ - The date format
304
275
 
305
276
 
306
277
 
307
278
 
308
- ### dist/dates/relative/relative.js
279
+ ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
309
280
 
310
281
 
311
- #### resolveRelative(statements, clock)
282
+ #### getDateFormatRegularExpressionInArray(dateFormat)
312
283
 
313
- Resolve a list of relative statements according to operator
284
+ Gets an array of regular expressions by the given date format
314
285
 
315
286
 
316
287
 
@@ -319,44 +290,25 @@ Resolve a list of relative statements according to operator
319
290
 
320
291
  | Name | Type | Description | |
321
292
  | ---- | ---- | ----------- | -------- |
322
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
323
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
293
+ | dateFormat | | the date format | &nbsp; |
324
294
 
325
295
 
326
296
 
327
297
 
328
- ##### Examples
329
-
330
- ```javascript
331
- Input:
332
- {
333
- "cursor": "the_next",
334
- "unit": "year",
335
- "number": 1,
336
- "includeCurrent": false,
337
- "isCalendarDate": false,
338
- "anchor": "03/05/2021"
339
- }
340
-
341
- Output:
342
- { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
343
- ```
344
-
345
-
346
298
  ##### Returns
347
299
 
348
300
 
349
- - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
301
+ - an array of regular expressions
350
302
 
351
303
 
352
304
 
353
305
 
354
- ### dist/filters/adapters/FDToFlatUI.js
306
+ ### dist/dates/helpers/getSeparatorByDateFormat.js
355
307
 
356
308
 
357
- #### FDToFlatUI(filterData, datasetsInfo)
309
+ #### getSeparatorByDateFormat(format)
358
310
 
359
- Generates a Flattened UI filter structure from Filter Data structure.
311
+ Gets the separator of the date format
360
312
 
361
313
 
362
314
 
@@ -365,8 +317,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
365
317
 
366
318
  | Name | Type | Description | |
367
319
  | ---- | ---- | ----------- | -------- |
368
- | filterData | | The filter data object. | &nbsp; |
369
- | datasetsInfo | | Collection of datasets information | &nbsp; |
320
+ | format | | the date format | &nbsp; |
370
321
 
371
322
 
372
323
 
@@ -374,13 +325,18 @@ Generates a Flattened UI filter structure from Filter Data structure.
374
325
  ##### Returns
375
326
 
376
327
 
377
- - a flattened UI filters array
328
+ - a separator string
378
329
 
379
330
 
380
331
 
381
- #### FD21ToFlatUI(scopes, datasetsInfo)
382
332
 
383
- Generates a Filter Builder Structure from the Filter Data structure v2.1
333
+ ### dist/dates/helpers/getWeek.js
334
+
335
+
336
+ #### getWeek(date)
337
+
338
+ Gets the week number of the year
339
+ Additionally, the month and the year
384
340
 
385
341
 
386
342
 
@@ -389,8 +345,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
389
345
 
390
346
  | Name | Type | Description | |
391
347
  | ---- | ---- | ----------- | -------- |
392
- | scopes | | The filter scope section | &nbsp; |
393
- | datasetsInfo | | Collection of datasets information | &nbsp; |
348
+ | date | | the date object | &nbsp; |
394
349
 
395
350
 
396
351
 
@@ -398,17 +353,20 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
398
353
  ##### Returns
399
354
 
400
355
 
401
- - a flattened UI filters array
356
+ - an object with the week, month and year.
402
357
 
403
358
 
404
359
 
405
360
 
406
- ### dist/filters/adapters/FDToLogic.js
361
+ ### dist/dates/helpers/validateDate.js
407
362
 
408
363
 
409
- #### FDToLogic(filterData)
364
+ #### validateDate(date, format)
410
365
 
411
- Generates a Filter Logic structure from Filter Data structure.
366
+ Validate a string date depending on giving format
367
+ - If the string is a token label, the function lets it pass.
368
+ - Otherwise depends of the format
369
+ - Some escenarios the string is a mix of token labels and dates
412
370
 
413
371
 
414
372
 
@@ -417,7 +375,8 @@ Generates a Filter Logic structure from Filter Data structure.
417
375
 
418
376
  | Name | Type | Description | |
419
377
  | ---- | ---- | ----------- | -------- |
420
- | filterData | | The filter data object. | &nbsp; |
378
+ | date | | String of date | &nbsp; |
379
+ | format | | String of the format to validate | &nbsp; |
421
380
 
422
381
 
423
382
 
@@ -425,13 +384,17 @@ Generates a Filter Logic structure from Filter Data structure.
425
384
  ##### Returns
426
385
 
427
386
 
428
- - a filter logic array
387
+ - True if it is valid or not. Undefined if date is undefined
429
388
 
430
389
 
431
390
 
432
- #### getLogicBodyFromFD21(filterData)
433
391
 
434
- Gets the logic body
392
+ ### dist/dates/helpers/validateDateByDateFormat.js
393
+
394
+
395
+ #### validateDateByDateFormat(date, dateForma)
396
+
397
+ Validates the given string as Date by its date format.
435
398
 
436
399
 
437
400
 
@@ -440,7 +403,8 @@ Gets the logic body
440
403
 
441
404
  | Name | Type | Description | |
442
405
  | ---- | ---- | ----------- | -------- |
443
- | filterData | | The filter data object | &nbsp; |
406
+ | date | | a string to validate as date form | &nbsp; |
407
+ | dateForma | | the format of the date to validate the string | &nbsp; |
444
408
 
445
409
 
446
410
 
@@ -448,17 +412,17 @@ Gets the logic body
448
412
  ##### Returns
449
413
 
450
414
 
451
- - a filter logic array
415
+ - true: the string is a valida date
452
416
 
453
417
 
454
418
 
455
419
 
456
- ### dist/filters/adapters/FDToUI.js
420
+ ### dist/dates/range/getDateRange.js
457
421
 
458
422
 
459
- #### FDToUI(filterData, datasetsInfo)
423
+ #### getDateRange(value, dateGroupLabel, withTime)
460
424
 
461
- Generates a UI filter structure from Filter Data structure.
425
+ Get date range object from a string date value
462
426
 
463
427
 
464
428
 
@@ -467,61 +431,74 @@ Generates a UI filter structure from Filter Data structure.
467
431
 
468
432
  | Name | Type | Description | |
469
433
  | ---- | ---- | ----------- | -------- |
470
- | filterData | | The filter data object. | &nbsp; |
471
- | datasetsInfo | | Collection of datasets information | &nbsp; |
472
-
434
+ | value | `String` | string date value | &nbsp; |
435
+ | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | &nbsp; |
436
+ | withTime | `Boolean` | determines if the date range will include time. Default is true | &nbsp; |
473
437
 
474
438
 
475
439
 
476
- ##### Returns
477
440
 
441
+ ##### Examples
478
442
 
479
- - a UI Filters structure
443
+ ```javascript
444
+ // 1) Year:
445
+ getDateRange('2020', 'YEAR');
446
+ // Will return:
447
+ {
448
+ from: '01/01/2020 00:00:00',
449
+ to: '12/31/2020 23:59:59'
450
+ }
480
451
 
452
+ // 2) Quarter:
453
+ getDateRange('Q3 2020', 'QUARTER');
454
+ // Will return:
455
+ {
456
+ from: '07/01/2020 00:00:00',
457
+ to: '09/30/2020 23:59:59'
458
+ }
481
459
 
460
+ // 3) Month:
461
+ getDateRange('Oct 2020', 'MONTH');
462
+ // Will return:
463
+ {
464
+ from: '10/01/2020 00:00:00',
465
+ to: '10/31/2020 23:59:59'
466
+ }
467
+ ```
482
468
 
483
- #### FD21ToUI(scopes, section, version, datasetsInfo)
484
469
 
485
- Generates a UI filter Structure from the Filter Data structure v2.1
470
+ ##### Returns
486
471
 
487
472
 
473
+ - `Object` an object with the date range with two string date properties: from and to
488
474
 
489
475
 
490
- ##### Parameters
491
476
 
492
- | Name | Type | Description | |
493
- | ---- | ---- | ----------- | -------- |
494
- | scopes | | The filter scope section | &nbsp; |
495
- | section | | The filter section. | &nbsp; |
496
- | version | | The version of the filter structure | &nbsp; |
497
- | datasetsInfo | | Collection of datasets information | &nbsp; |
498
477
 
478
+ ### dist/dates/relative/Adapter.js
499
479
 
500
480
 
481
+ #### value()
501
482
 
502
- ##### Returns
483
+ Resolves statement and returns statement value
503
484
 
504
485
 
505
- - a UI filter Structure
506
486
 
507
487
 
508
488
 
509
489
 
510
- ### dist/filters/adapters/UIToFD.js
490
+ ##### Returns
511
491
 
512
492
 
513
- #### UIToFD(filterData)
493
+ - `AbsoluteRange` `string`
514
494
 
515
- Generates a Filter Data Structure structure from UI Filter Data structure.
516
495
 
517
496
 
497
+ #### valueAsAnchor()
518
498
 
499
+ Resolves statement as an anchor
519
500
 
520
- ##### Parameters
521
501
 
522
- | Name | Type | Description | |
523
- | ---- | ---- | ----------- | -------- |
524
- | filterData | | The UI filter data object. | &nbsp; |
525
502
 
526
503
 
527
504
 
@@ -529,74 +506,63 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
529
506
  ##### Returns
530
507
 
531
508
 
532
- - a Filter Data structure
509
+ - `string`
533
510
 
534
511
 
535
512
 
536
- #### UI21ToFD(uFilterData, version)
513
+ #### _statementToRange() *private method*
537
514
 
538
- Builds the Fitler Data structure from UI filter data
515
+ Convert verbal statement to range value
539
516
 
540
517
 
541
518
 
542
519
 
543
- ##### Parameters
544
520
 
545
- | Name | Type | Description | |
546
- | ---- | ---- | ----------- | -------- |
547
- | uFilterData | | The UI filter Data object | &nbsp; |
548
- | version | | the version of the structure | &nbsp; |
549
521
 
522
+ ##### Returns
550
523
 
551
524
 
525
+ - `AbsoluteRange`
552
526
 
553
- ##### Returns
554
527
 
555
528
 
556
- -
529
+ #### _resolveAsThis() *private method*
557
530
 
531
+ Apply 'this' cursor logic to statement
558
532
 
559
533
 
560
534
 
561
- ### dist/filters/adapters/UIToFlatUI.js
562
535
 
563
536
 
564
- #### UIToFlatUI(filterData, datasetsInfo)
565
537
 
566
- Generates a Flattened UI filter structure from UI Filter Data structure.
538
+ ##### Returns
567
539
 
568
540
 
541
+ - `AbsoluteStatement`
569
542
 
570
543
 
571
- ##### Parameters
572
544
 
573
- | Name | Type | Description | |
574
- | ---- | ---- | ----------- | -------- |
575
- | filterData | | The UI filter data object. | &nbsp; |
576
- | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
545
+ #### _resolveAsTheLast() *private method*
577
546
 
547
+ Apply 'the last' cursor logic to statement
578
548
 
579
549
 
580
550
 
581
- ##### Returns
582
551
 
583
552
 
584
- - a flattened UI filters array
585
553
 
554
+ ##### Returns
586
555
 
587
556
 
588
- #### UI21ToFlatUI(scopes)
557
+ - `AbsoluteStatement`
589
558
 
590
- Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
591
559
 
592
560
 
561
+ #### _resolveAsTheNext() *private method*
593
562
 
563
+ Apply 'the next' cursor logic to statement
594
564
 
595
- ##### Parameters
596
565
 
597
- | Name | Type | Description | |
598
- | ---- | ---- | ----------- | -------- |
599
- | scopes | | The filter scope section | &nbsp; |
600
566
 
601
567
 
602
568
 
@@ -604,18 +570,13 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
604
570
  ##### Returns
605
571
 
606
572
 
607
- - a flattened UI filters array
608
-
609
-
610
-
573
+ - `AbsoluteStatement`
611
574
 
612
- ### dist/filters/adapters/adaptDateGroupingProperty.js
613
575
 
614
576
 
615
- #### adaptDateGroupingProperty(property)
577
+ #### replaceNowToken(value, now)
616
578
 
617
- [TODO: For 2022, eliminate this adapter]
618
- Get the new property base on the old date grouping properties
579
+ Replace '@now' token inside a string
619
580
 
620
581
 
621
582
 
@@ -624,7 +585,8 @@ Get the new property base on the old date grouping properties
624
585
 
625
586
  | Name | Type | Description | |
626
587
  | ---- | ---- | ----------- | -------- |
627
- | property | | | &nbsp; |
588
+ | value | `string` | | &nbsp; |
589
+ | now | `Date` | | &nbsp; |
628
590
 
629
591
 
630
592
 
@@ -632,17 +594,13 @@ Get the new property base on the old date grouping properties
632
594
  ##### Returns
633
595
 
634
596
 
635
- -
636
-
637
-
638
-
597
+ - `string`
639
598
 
640
- ### dist/filters/adapters/adaptFilterData.js
641
599
 
642
600
 
643
- #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
601
+ #### convertRelativeToAbsolute(args)
644
602
 
645
- Checks and adapts the v2.0 Filter Data Structure to the v2.1
603
+ Returns a range object (date) from a group of statement params
646
604
 
647
605
 
648
606
 
@@ -651,28 +609,45 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
651
609
 
652
610
  | Name | Type | Description | |
653
611
  | ---- | ---- | ----------- | -------- |
654
- | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
655
- | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
656
- | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
612
+ | args | `RelativeToAbsoluteStruct` | | &nbsp; |
613
+
657
614
 
658
615
 
659
616
 
617
+ ##### Examples
618
+
619
+ ```javascript
620
+ pivot = '2021-03-03T12:30:40'
621
+ unit = month
622
+ steps = 2
623
+ setTo = END
624
+ resolverAsCalendar: true
625
+ => Returns '2021-05-31T23:59:59'
626
+ ```
627
+ ```javascript
628
+ pivot = '2021-03-03T12:30:40'
629
+ unit = month
630
+ steps = -2
631
+ setTo = START
632
+ resolverAsCalendar: false
633
+ => Returns '2021-01-03T00:00:00'
634
+ ```
635
+
660
636
 
661
637
  ##### Returns
662
638
 
663
639
 
664
- - A new filter data structure v2.1
640
+ - `string`
665
641
 
666
642
 
667
643
 
668
644
 
669
- ### dist/filters/adapters/adaptFilterValues.js
645
+ ### dist/dates/relative/relative.js
670
646
 
671
647
 
672
- #### adaptFilterValues(filter)
648
+ #### resolveRelative(statements, clock)
673
649
 
674
- [TODO: For 2022, eliminate this adapter]
675
- Gets an adapted filter value array. Validates the enabled property and sets
650
+ Resolve a list of relative statements according to operator
676
651
 
677
652
 
678
653
 
@@ -681,35 +656,46 @@ Gets an adapted filter value array. Validates the enabled property and sets
681
656
 
682
657
  | Name | Type | Description | |
683
658
  | ---- | ---- | ----------- | -------- |
684
- | filter | | The filter | &nbsp; |
659
+ | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
660
+ | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
685
661
 
686
662
 
687
663
 
688
664
 
689
- ##### Returns
665
+ ##### Examples
690
666
 
667
+ ```javascript
668
+ Input:
669
+ {
670
+ "cursor": "the_next",
671
+ "unit": "year",
672
+ "number": 1,
673
+ "includeCurrent": false,
674
+ "isCalendarDate": false,
675
+ "anchor": "03/05/2021"
676
+ }
691
677
 
692
- - A new value array with the filled properties.
678
+ Output:
679
+ { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
680
+ ```
693
681
 
694
682
 
683
+ ##### Returns
695
684
 
696
685
 
697
- ### dist/filters/adapters/flatUIToFD.js
686
+ - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
698
687
 
699
688
 
700
- #### flatUIToFD(uFilters, version)
701
689
 
702
- Generates a filter data structure from the flatttened UI filters.
703
690
 
691
+ ### dist/filters/classes/FilterInputErrorHandler.js
692
+
693
+
694
+ #### new FilterInputErrorHandler()
704
695
 
705
696
 
706
697
 
707
- ##### Parameters
708
698
 
709
- | Name | Type | Description | |
710
- | ---- | ---- | ----------- | -------- |
711
- | uFilters | | Array of flattened filters from UI | &nbsp; |
712
- | version | | Tag for the version of the filter data structure | &nbsp; |
713
699
 
714
700
 
715
701
 
@@ -717,14 +703,17 @@ Generates a filter data structure from the flatttened UI filters.
717
703
  ##### Returns
718
704
 
719
705
 
720
- - a Filter Data.
706
+ - `Void`
721
707
 
722
708
 
723
709
 
724
- #### buildScopes(fbFilters)
725
710
 
726
- Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
727
- Also, adds and organizes filters by datasets
711
+ ### dist/filters/adapters/FDToFlatUI.js
712
+
713
+
714
+ #### FDToFlatUI(filterData, datasetsInfo)
715
+
716
+ Generates a Flattened UI filter structure from Filter Data structure.
728
717
 
729
718
 
730
719
 
@@ -733,7 +722,8 @@ Also, adds and organizes filters by datasets
733
722
 
734
723
  | Name | Type | Description | |
735
724
  | ---- | ---- | ----------- | -------- |
736
- | fbFilters | | Array of flat filters from UI | &nbsp; |
725
+ | filterData | | The filter data object. | &nbsp; |
726
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
737
727
 
738
728
 
739
729
 
@@ -741,13 +731,13 @@ Also, adds and organizes filters by datasets
741
731
  ##### Returns
742
732
 
743
733
 
744
- - an array of scopes structure.
734
+ - a flattened UI filters array
745
735
 
746
736
 
747
737
 
748
- #### buildScope(uFilter)
738
+ #### FD21ToFlatUI(scopes, datasetsInfo)
749
739
 
750
- Gets an scope structure for the filter data
740
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
751
741
 
752
742
 
753
743
 
@@ -756,7 +746,8 @@ Gets an scope structure for the filter data
756
746
 
757
747
  | Name | Type | Description | |
758
748
  | ---- | ---- | ----------- | -------- |
759
- | uFilter | | UI structure filter | &nbsp; |
749
+ | scopes | | The filter scope section | &nbsp; |
750
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
760
751
 
761
752
 
762
753
 
@@ -764,13 +755,17 @@ Gets an scope structure for the filter data
764
755
  ##### Returns
765
756
 
766
757
 
767
- - an scope structure
758
+ - a flattened UI filters array
768
759
 
769
760
 
770
761
 
771
- #### buildDataset(uFilter)
772
762
 
773
- Gets an dataset structure for the filter data
763
+ ### dist/filters/adapters/FDToLogic.js
764
+
765
+
766
+ #### FDToLogic(filterData)
767
+
768
+ Generates a Filter Logic structure from Filter Data structure.
774
769
 
775
770
 
776
771
 
@@ -779,7 +774,7 @@ Gets an dataset structure for the filter data
779
774
 
780
775
  | Name | Type | Description | |
781
776
  | ---- | ---- | ----------- | -------- |
782
- | uFilter | | a UI structure filter | &nbsp; |
777
+ | filterData | | The filter data object. | &nbsp; |
783
778
 
784
779
 
785
780
 
@@ -787,13 +782,13 @@ Gets an dataset structure for the filter data
787
782
  ##### Returns
788
783
 
789
784
 
790
- - an dataset structure
785
+ - a filter logic array
791
786
 
792
787
 
793
788
 
794
- #### buildFilter(uFilter)
789
+ #### getLogicBodyFromFD21(filterData)
795
790
 
796
- Gets an filter structure for the filter data
791
+ Gets the logic body
797
792
 
798
793
 
799
794
 
@@ -802,7 +797,7 @@ Gets an filter structure for the filter data
802
797
 
803
798
  | Name | Type | Description | |
804
799
  | ---- | ---- | ----------- | -------- |
805
- | uFilter | | a UI structure filter | &nbsp; |
800
+ | filterData | | The filter data object | &nbsp; |
806
801
 
807
802
 
808
803
 
@@ -810,17 +805,17 @@ Gets an filter structure for the filter data
810
805
  ##### Returns
811
806
 
812
807
 
813
- - an filter structure
808
+ - a filter logic array
814
809
 
815
810
 
816
811
 
817
812
 
818
- ### dist/filters/adapters/flatUIToLogic.js
813
+ ### dist/filters/adapters/FDToUI.js
819
814
 
820
815
 
821
- #### flatUIToLogic(uFilter)
816
+ #### FDToUI(filterData, datasetsInfo)
822
817
 
823
- Generates a Logic structure from flattened UI filters
818
+ Generates a UI filter structure from Filter Data structure.
824
819
 
825
820
 
826
821
 
@@ -829,7 +824,8 @@ Generates a Logic structure from flattened UI filters
829
824
 
830
825
  | Name | Type | Description | |
831
826
  | ---- | ---- | ----------- | -------- |
832
- | uFilter | | Array of flat filters from UI | &nbsp; |
827
+ | filterData | | The filter data object. | &nbsp; |
828
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
833
829
 
834
830
 
835
831
 
@@ -837,17 +833,13 @@ Generates a Logic structure from flattened UI filters
837
833
  ##### Returns
838
834
 
839
835
 
840
- - The logic structure
841
-
842
-
843
-
836
+ - a UI Filters structure
844
837
 
845
- ### dist/filters/adapters/flatUIToOldLogic.js
846
838
 
847
839
 
848
- #### flatUIToOldLogic(uFilters)
840
+ #### FD21ToUI(scopes, section, version, datasetsInfo)
849
841
 
850
- Generates a Logic structure from flattened UI filters
842
+ Generates a UI filter Structure from the Filter Data structure v2.1
851
843
 
852
844
 
853
845
 
@@ -856,7 +848,10 @@ Generates a Logic structure from flattened UI filters
856
848
 
857
849
  | Name | Type | Description | |
858
850
  | ---- | ---- | ----------- | -------- |
859
- | uFilters | | Array of flat filters from UI | &nbsp; |
851
+ | scopes | | The filter scope section | &nbsp; |
852
+ | section | | The filter section. | &nbsp; |
853
+ | version | | The version of the filter structure | &nbsp; |
854
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
860
855
 
861
856
 
862
857
 
@@ -864,17 +859,17 @@ Generates a Logic structure from flattened UI filters
864
859
  ##### Returns
865
860
 
866
861
 
867
- - The logic structure
862
+ - a UI filter Structure
868
863
 
869
864
 
870
865
 
871
866
 
872
- ### dist/filters/adapters/flatUIToUI.js
867
+ ### dist/filters/adapters/UIToFD.js
873
868
 
874
869
 
875
- #### flatUIToUI(uFilters, version)
870
+ #### UIToFD(filterData)
876
871
 
877
- Generates a UI filter data structure from the flatttened UI filters.
872
+ Generates a Filter Data Structure structure from UI Filter Data structure.
878
873
 
879
874
 
880
875
 
@@ -883,8 +878,7 @@ Generates a UI filter data structure from the flatttened UI filters.
883
878
 
884
879
  | Name | Type | Description | |
885
880
  | ---- | ---- | ----------- | -------- |
886
- | uFilters | | Array of flattened filters from UI | &nbsp; |
887
- | version | | Tag for the version of the filter data structure | &nbsp; |
881
+ | filterData | | The UI filter data object. | &nbsp; |
888
882
 
889
883
 
890
884
 
@@ -892,14 +886,13 @@ Generates a UI filter data structure from the flatttened UI filters.
892
886
  ##### Returns
893
887
 
894
888
 
895
- - a UI Filter Data.
889
+ - a Filter Data structure
896
890
 
897
891
 
898
892
 
899
- #### buildScopes(fbFilters)
893
+ #### UI21ToFD(uFilterData, version)
900
894
 
901
- Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
902
- Also, adds and organizes filters by datasets
895
+ Builds the Fitler Data structure from UI filter data
903
896
 
904
897
 
905
898
 
@@ -908,7 +901,8 @@ Also, adds and organizes filters by datasets
908
901
 
909
902
  | Name | Type | Description | |
910
903
  | ---- | ---- | ----------- | -------- |
911
- | fbFilters | | Array of flat filters from UI | &nbsp; |
904
+ | uFilterData | | The UI filter Data object | &nbsp; |
905
+ | version | | the version of the structure | &nbsp; |
912
906
 
913
907
 
914
908
 
@@ -916,13 +910,17 @@ Also, adds and organizes filters by datasets
916
910
  ##### Returns
917
911
 
918
912
 
919
- - an array of scopes structure.
913
+ -
920
914
 
921
915
 
922
916
 
923
- #### buildScope(uFilter)
924
917
 
925
- Gets an scope structure for the UI filter data
918
+ ### dist/filters/adapters/UIToFlatUI.js
919
+
920
+
921
+ #### UIToFlatUI(filterData, datasetsInfo)
922
+
923
+ Generates a Flattened UI filter structure from UI Filter Data structure.
926
924
 
927
925
 
928
926
 
@@ -931,7 +929,8 @@ Gets an scope structure for the UI filter data
931
929
 
932
930
  | Name | Type | Description | |
933
931
  | ---- | ---- | ----------- | -------- |
934
- | uFilter | | UI structure filter | &nbsp; |
932
+ | filterData | | The UI filter data object. | &nbsp; |
933
+ | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
935
934
 
936
935
 
937
936
 
@@ -939,13 +938,13 @@ Gets an scope structure for the UI filter data
939
938
  ##### Returns
940
939
 
941
940
 
942
- - an scope structure
941
+ - a flattened UI filters array
943
942
 
944
943
 
945
944
 
946
- #### buildDataset(uFilter)
945
+ #### UI21ToFlatUI(scopes)
947
946
 
948
- Gets an dataset structure for the UI filter data
947
+ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
949
948
 
950
949
 
951
950
 
@@ -954,7 +953,7 @@ Gets an dataset structure for the UI filter data
954
953
 
955
954
  | Name | Type | Description | |
956
955
  | ---- | ---- | ----------- | -------- |
957
- | uFilter | | a UI structure filter | &nbsp; |
956
+ | scopes | | The filter scope section | &nbsp; |
958
957
 
959
958
 
960
959
 
@@ -962,13 +961,18 @@ Gets an dataset structure for the UI filter data
962
961
  ##### Returns
963
962
 
964
963
 
965
- - an dataset structure
964
+ - a flattened UI filters array
966
965
 
967
966
 
968
967
 
969
- #### buildFilter(uFilter)
970
968
 
971
- Gets an filter structure for the UI filter data
969
+ ### dist/filters/adapters/adaptDateGroupingProperty.js
970
+
971
+
972
+ #### adaptDateGroupingProperty(property)
973
+
974
+ [TODO: For 2022, eliminate this adapter]
975
+ Get the new property base on the old date grouping properties
972
976
 
973
977
 
974
978
 
@@ -977,7 +981,7 @@ Gets an filter structure for the UI filter data
977
981
 
978
982
  | Name | Type | Description | |
979
983
  | ---- | ---- | ----------- | -------- |
980
- | uFilter | | a UI structure filter | &nbsp; |
984
+ | property | | | &nbsp; |
981
985
 
982
986
 
983
987
 
@@ -985,17 +989,17 @@ Gets an filter structure for the UI filter data
985
989
  ##### Returns
986
990
 
987
991
 
988
- - an filter structure
992
+ -
989
993
 
990
994
 
991
995
 
992
996
 
993
- ### dist/filters/adapters/logicToFD.js
997
+ ### dist/filters/adapters/adaptFilterData.js
994
998
 
995
999
 
996
- #### logicToFD(filterData, version)
1000
+ #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
997
1001
 
998
- Generates a filter data structure from the old logic structure (v2.0).
1002
+ Checks and adapts the v2.0 Filter Data Structure to the v2.1
999
1003
 
1000
1004
 
1001
1005
 
@@ -1004,8 +1008,9 @@ Generates a filter data structure from the old logic structure (v2.0).
1004
1008
 
1005
1009
  | Name | Type | Description | |
1006
1010
  | ---- | ---- | ----------- | -------- |
1007
- | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1008
- | version | | Tag for the version of the filter data structure | &nbsp; |
1011
+ | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
1012
+ | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
1013
+ | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
1009
1014
 
1010
1015
 
1011
1016
 
@@ -1013,17 +1018,18 @@ Generates a filter data structure from the old logic structure (v2.0).
1013
1018
  ##### Returns
1014
1019
 
1015
1020
 
1016
- - a Filter Data.
1021
+ - A new filter data structure v2.1
1017
1022
 
1018
1023
 
1019
1024
 
1020
1025
 
1021
- ### dist/filters/adapters/logicToFlatUI.js
1026
+ ### dist/filters/adapters/adaptFilterValues.js
1022
1027
 
1023
1028
 
1024
- #### logicToFlatUI(logics)
1029
+ #### adaptFilterValues(filter)
1025
1030
 
1026
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1031
+ [TODO: For 2022, eliminate this adapter]
1032
+ Gets an adapted filter value array. Validates the enabled property and sets
1027
1033
 
1028
1034
 
1029
1035
 
@@ -1032,7 +1038,7 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1032
1038
 
1033
1039
  | Name | Type | Description | |
1034
1040
  | ---- | ---- | ----------- | -------- |
1035
- | logics | | The old logic structure (v2.0) | &nbsp; |
1041
+ | filter | | The filter | &nbsp; |
1036
1042
 
1037
1043
 
1038
1044
 
@@ -1040,13 +1046,17 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1040
1046
  ##### Returns
1041
1047
 
1042
1048
 
1043
- - The Flattened UI Filters array
1049
+ - A new value array with the filled properties.
1044
1050
 
1045
1051
 
1046
1052
 
1047
- #### getFilter(filters, filter, getIndex)
1048
1053
 
1049
- Get the filter or the index of the given array, validating an old filter structure.
1054
+ ### dist/filters/adapters/flatUIToFD.js
1055
+
1056
+
1057
+ #### flatUIToFD(uFilters, version)
1058
+
1059
+ Generates a filter data structure from the flatttened UI filters.
1050
1060
 
1051
1061
 
1052
1062
 
@@ -1055,9 +1065,685 @@ Get the filter or the index of the given array, validating an old filter structu
1055
1065
 
1056
1066
  | Name | Type | Description | |
1057
1067
  | ---- | ---- | ----------- | -------- |
1058
- | filters | | The array of UI filters | &nbsp; |
1059
- | filter | | The old logic structure filter | &nbsp; |
1060
- | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
1068
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1069
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1070
+
1071
+
1072
+
1073
+
1074
+ ##### Returns
1075
+
1076
+
1077
+ - a Filter Data.
1078
+
1079
+
1080
+
1081
+ #### buildScopes(fbFilters)
1082
+
1083
+ Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
1084
+ Also, adds and organizes filters by datasets
1085
+
1086
+
1087
+
1088
+
1089
+ ##### Parameters
1090
+
1091
+ | Name | Type | Description | |
1092
+ | ---- | ---- | ----------- | -------- |
1093
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1094
+
1095
+
1096
+
1097
+
1098
+ ##### Returns
1099
+
1100
+
1101
+ - an array of scopes structure.
1102
+
1103
+
1104
+
1105
+ #### buildScope(uFilter)
1106
+
1107
+ Gets an scope structure for the filter data
1108
+
1109
+
1110
+
1111
+
1112
+ ##### Parameters
1113
+
1114
+ | Name | Type | Description | |
1115
+ | ---- | ---- | ----------- | -------- |
1116
+ | uFilter | | UI structure filter | &nbsp; |
1117
+
1118
+
1119
+
1120
+
1121
+ ##### Returns
1122
+
1123
+
1124
+ - an scope structure
1125
+
1126
+
1127
+
1128
+ #### buildDataset(uFilter)
1129
+
1130
+ Gets an dataset structure for the filter data
1131
+
1132
+
1133
+
1134
+
1135
+ ##### Parameters
1136
+
1137
+ | Name | Type | Description | |
1138
+ | ---- | ---- | ----------- | -------- |
1139
+ | uFilter | | a UI structure filter | &nbsp; |
1140
+
1141
+
1142
+
1143
+
1144
+ ##### Returns
1145
+
1146
+
1147
+ - an dataset structure
1148
+
1149
+
1150
+
1151
+ #### buildFilter(uFilter)
1152
+
1153
+ Gets an filter structure for the filter data
1154
+
1155
+
1156
+
1157
+
1158
+ ##### Parameters
1159
+
1160
+ | Name | Type | Description | |
1161
+ | ---- | ---- | ----------- | -------- |
1162
+ | uFilter | | a UI structure filter | &nbsp; |
1163
+
1164
+
1165
+
1166
+
1167
+ ##### Returns
1168
+
1169
+
1170
+ - an filter structure
1171
+
1172
+
1173
+
1174
+
1175
+ ### dist/filters/adapters/flatUIToLogic.js
1176
+
1177
+
1178
+ #### flatUIToLogic(uFilter)
1179
+
1180
+ Generates a Logic structure from flattened UI filters
1181
+
1182
+
1183
+
1184
+
1185
+ ##### Parameters
1186
+
1187
+ | Name | Type | Description | |
1188
+ | ---- | ---- | ----------- | -------- |
1189
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1190
+
1191
+
1192
+
1193
+
1194
+ ##### Returns
1195
+
1196
+
1197
+ - The logic structure
1198
+
1199
+
1200
+
1201
+
1202
+ ### dist/filters/adapters/flatUIToOldLogic.js
1203
+
1204
+
1205
+ #### flatUIToOldLogic(uFilters)
1206
+
1207
+ Generates a Logic structure from flattened UI filters
1208
+
1209
+
1210
+
1211
+
1212
+ ##### Parameters
1213
+
1214
+ | Name | Type | Description | |
1215
+ | ---- | ---- | ----------- | -------- |
1216
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1217
+
1218
+
1219
+
1220
+
1221
+ ##### Returns
1222
+
1223
+
1224
+ - The logic structure
1225
+
1226
+
1227
+
1228
+
1229
+ ### dist/filters/adapters/flatUIToUI.js
1230
+
1231
+
1232
+ #### flatUIToUI(uFilters, version)
1233
+
1234
+ Generates a UI filter data structure from the flatttened UI filters.
1235
+
1236
+
1237
+
1238
+
1239
+ ##### Parameters
1240
+
1241
+ | Name | Type | Description | |
1242
+ | ---- | ---- | ----------- | -------- |
1243
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1244
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1245
+
1246
+
1247
+
1248
+
1249
+ ##### Returns
1250
+
1251
+
1252
+ - a UI Filter Data.
1253
+
1254
+
1255
+
1256
+ #### buildScopes(fbFilters)
1257
+
1258
+ Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
1259
+ Also, adds and organizes filters by datasets
1260
+
1261
+
1262
+
1263
+
1264
+ ##### Parameters
1265
+
1266
+ | Name | Type | Description | |
1267
+ | ---- | ---- | ----------- | -------- |
1268
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1269
+
1270
+
1271
+
1272
+
1273
+ ##### Returns
1274
+
1275
+
1276
+ - an array of scopes structure.
1277
+
1278
+
1279
+
1280
+ #### buildScope(uFilter)
1281
+
1282
+ Gets an scope structure for the UI filter data
1283
+
1284
+
1285
+
1286
+
1287
+ ##### Parameters
1288
+
1289
+ | Name | Type | Description | |
1290
+ | ---- | ---- | ----------- | -------- |
1291
+ | uFilter | | UI structure filter | &nbsp; |
1292
+
1293
+
1294
+
1295
+
1296
+ ##### Returns
1297
+
1298
+
1299
+ - an scope structure
1300
+
1301
+
1302
+
1303
+ #### buildDataset(uFilter)
1304
+
1305
+ Gets an dataset structure for the UI filter data
1306
+
1307
+
1308
+
1309
+
1310
+ ##### Parameters
1311
+
1312
+ | Name | Type | Description | |
1313
+ | ---- | ---- | ----------- | -------- |
1314
+ | uFilter | | a UI structure filter | &nbsp; |
1315
+
1316
+
1317
+
1318
+
1319
+ ##### Returns
1320
+
1321
+
1322
+ - an dataset structure
1323
+
1324
+
1325
+
1326
+ #### buildFilter(uFilter)
1327
+
1328
+ Gets an filter structure for the UI filter data
1329
+
1330
+
1331
+
1332
+
1333
+ ##### Parameters
1334
+
1335
+ | Name | Type | Description | |
1336
+ | ---- | ---- | ----------- | -------- |
1337
+ | uFilter | | a UI structure filter | &nbsp; |
1338
+
1339
+
1340
+
1341
+
1342
+ ##### Returns
1343
+
1344
+
1345
+ - an filter structure
1346
+
1347
+
1348
+
1349
+
1350
+ ### dist/filters/adapters/logicToFD.js
1351
+
1352
+
1353
+ #### logicToFD(filterData, version)
1354
+
1355
+ Generates a filter data structure from the old logic structure (v2.0).
1356
+
1357
+
1358
+
1359
+
1360
+ ##### Parameters
1361
+
1362
+ | Name | Type | Description | |
1363
+ | ---- | ---- | ----------- | -------- |
1364
+ | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1365
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1366
+
1367
+
1368
+
1369
+
1370
+ ##### Returns
1371
+
1372
+
1373
+ - a Filter Data.
1374
+
1375
+
1376
+
1377
+
1378
+ ### dist/filters/adapters/logicToFlatUI.js
1379
+
1380
+
1381
+ #### logicToFlatUI(logics)
1382
+
1383
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1384
+
1385
+
1386
+
1387
+
1388
+ ##### Parameters
1389
+
1390
+ | Name | Type | Description | |
1391
+ | ---- | ---- | ----------- | -------- |
1392
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1393
+
1394
+
1395
+
1396
+
1397
+ ##### Returns
1398
+
1399
+
1400
+ - The Flattened UI Filters array
1401
+
1402
+
1403
+
1404
+ #### getFilter(filters, filter, getIndex)
1405
+
1406
+ Get the filter or the index of the given array, validating an old filter structure.
1407
+
1408
+
1409
+
1410
+
1411
+ ##### Parameters
1412
+
1413
+ | Name | Type | Description | |
1414
+ | ---- | ---- | ----------- | -------- |
1415
+ | filters | | The array of UI filters | &nbsp; |
1416
+ | filter | | The old logic structure filter | &nbsp; |
1417
+ | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
1418
+
1419
+
1420
+
1421
+
1422
+ ##### Returns
1423
+
1424
+
1425
+ - the index or the UI filter object
1426
+
1427
+
1428
+
1429
+ #### refineRankingValues(values, uiValues)
1430
+
1431
+ Refines the values of the Ranking column type.
1432
+
1433
+
1434
+
1435
+
1436
+ ##### Parameters
1437
+
1438
+ | Name | Type | Description | |
1439
+ | ---- | ---- | ----------- | -------- |
1440
+ | values | | the Array of Ranking values | &nbsp; |
1441
+ | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1442
+
1443
+
1444
+
1445
+
1446
+ ##### Returns
1447
+
1448
+
1449
+ - the array of Ranking values
1450
+
1451
+
1452
+
1453
+
1454
+ ### dist/filters/adapters/logicToUI.js
1455
+
1456
+
1457
+ #### logicToUI(uFilters, datasetsInfo)
1458
+
1459
+ Generates a UI filter structure from the old logic structure (v2.0).
1460
+
1461
+
1462
+
1463
+
1464
+ ##### Parameters
1465
+
1466
+ | Name | Type | Description | |
1467
+ | ---- | ---- | ----------- | -------- |
1468
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1469
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1470
+
1471
+
1472
+
1473
+
1474
+ ##### Returns
1475
+
1476
+
1477
+ - a UI Filter Data.
1478
+
1479
+
1480
+
1481
+
1482
+ ### dist/filters/adapters/transformFilters.js
1483
+
1484
+
1485
+ #### transformFilters(oldFiltersObj, section)
1486
+
1487
+ Transform the old filters structure into the new one
1488
+
1489
+
1490
+
1491
+
1492
+ ##### Parameters
1493
+
1494
+ | Name | Type | Description | |
1495
+ | ---- | ---- | ----------- | -------- |
1496
+ | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
1497
+ | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
1498
+
1499
+
1500
+
1501
+
1502
+ ##### Examples
1503
+
1504
+ ```javascript
1505
+
1506
+ const oldPreferenceFilters = {
1507
+ "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
1508
+ "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
1509
+ "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
1510
+ "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
1511
+ "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
1512
+ "formulaId": null,
1513
+ "panelId": null,
1514
+ "values": [
1515
+ {
1516
+ "EQUALS": [
1517
+ {
1518
+ "id": "AK4M8UV2a0",
1519
+ "value": "A",
1520
+ "enabled": true,
1521
+ "imageUrl": null
1522
+ },
1523
+ {
1524
+ "id": "AK4M8UV2a1",
1525
+ "value": "B",
1526
+ "enabled": true,
1527
+ "imageUrl": null
1528
+ }
1529
+ ]
1530
+ }
1531
+ ],
1532
+ "bucketId": null,
1533
+ "text": "MC",
1534
+ "title": "MC",
1535
+ "type": "SINGLE_CHOICE",
1536
+ "qid": "AK4M8UV2",
1537
+ "dataset": {
1538
+ "sourceid": "xYOQAdpqT",
1539
+ "name": "Form All Questions",
1540
+ "qrveyid": "xYOQAdpqT",
1541
+ "text": "Form All Questions",
1542
+ "linkid": 0
1543
+ },
1544
+ "enabled": true,
1545
+ "linked": null
1546
+ }
1547
+ };
1548
+
1549
+ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1550
+ ```
1551
+
1552
+
1553
+ ##### Returns
1554
+
1555
+
1556
+ - `Object` an object with the new filters structure
1557
+
1558
+
1559
+
1560
+
1561
+ ### dist/filters/helpers/applyHierarchyForAggFilters.js
1562
+
1563
+
1564
+ #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1565
+
1566
+ [TODO: Make a proper description for this function]
1567
+
1568
+
1569
+
1570
+
1571
+ ##### Parameters
1572
+
1573
+ | Name | Type | Description | |
1574
+ | ---- | ---- | ----------- | -------- |
1575
+ | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1576
+ | scopes | | | &nbsp; |
1577
+ | currentScope | | | &nbsp; |
1578
+
1579
+
1580
+
1581
+
1582
+ ##### Returns
1583
+
1584
+
1585
+ -
1586
+
1587
+
1588
+
1589
+
1590
+ ### dist/filters/helpers/getAvailableScopes.js
1591
+
1592
+
1593
+ #### getAvailableScopes(config)
1594
+
1595
+ Gets Scopes/Scope IDs by given IDs
1596
+
1597
+
1598
+
1599
+
1600
+ ##### Parameters
1601
+
1602
+ | Name | Type | Description | |
1603
+ | ---- | ---- | ----------- | -------- |
1604
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
1605
+
1606
+
1607
+
1608
+
1609
+ ##### Returns
1610
+
1611
+
1612
+ - a Scopes/Scope IDs array
1613
+
1614
+
1615
+
1616
+
1617
+ ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1618
+
1619
+
1620
+ #### getAvailableScopesIDsByConfig(config)
1621
+
1622
+ Gets the Scopes IDS for the Available Scope function by any config
1623
+
1624
+
1625
+
1626
+
1627
+ ##### Parameters
1628
+
1629
+ | Name | Type | Description | |
1630
+ | ---- | ---- | ----------- | -------- |
1631
+ | config | | any config | &nbsp; |
1632
+
1633
+
1634
+
1635
+
1636
+ ##### Returns
1637
+
1638
+
1639
+ - a Available Scope IDS config
1640
+
1641
+
1642
+
1643
+
1644
+ ### dist/filters/helpers/getScopesByHierarchy.js
1645
+
1646
+
1647
+ #### getScopesByHierarchy(scopes, currentScope)
1648
+
1649
+ [TODO: Make a description for this]
1650
+
1651
+
1652
+
1653
+
1654
+ ##### Parameters
1655
+
1656
+ | Name | Type | Description | |
1657
+ | ---- | ---- | ----------- | -------- |
1658
+ | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1659
+ | currentScope | | Current scope type | &nbsp; |
1660
+
1661
+
1662
+
1663
+
1664
+ ##### Returns
1665
+
1666
+
1667
+ - A new array of Scopes/Scope IDs
1668
+
1669
+
1670
+
1671
+
1672
+ ### dist/general/array/filterNestedTree.js
1673
+
1674
+
1675
+ #### filterNestedTree(arr, childArrKey, condition)
1676
+
1677
+ Filters a nested tree array by a custom condition on the last child node
1678
+ - If the given arguments are not valid, the function returns the first argument.
1679
+ - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1680
+ - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1681
+
1682
+
1683
+
1684
+
1685
+ ##### Parameters
1686
+
1687
+ | Name | Type | Description | |
1688
+ | ---- | ---- | ----------- | -------- |
1689
+ | arr | | nested tree array | &nbsp; |
1690
+ | childArrKey | | property representing the children array on the nested tree | &nbsp; |
1691
+ | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
1692
+
1693
+
1694
+
1695
+
1696
+ ##### Returns
1697
+
1698
+
1699
+ - array filtered
1700
+
1701
+
1702
+
1703
+
1704
+ ### dist/general/array/getFirstIndexFromArray.js
1705
+
1706
+
1707
+ #### getFirstIndexFromArray(array, callback)
1708
+
1709
+ Gets the first index from the array by a callback condition
1710
+
1711
+
1712
+
1713
+
1714
+ ##### Parameters
1715
+
1716
+ | Name | Type | Description | |
1717
+ | ---- | ---- | ----------- | -------- |
1718
+ | array | | | &nbsp; |
1719
+ | callback | | function callback | &nbsp; |
1720
+
1721
+
1722
+
1723
+
1724
+ ##### Returns
1725
+
1726
+
1727
+ - the first index of the array. -1 when the condition is not satisfied
1728
+
1729
+
1730
+
1731
+
1732
+ ### dist/general/array/flattenDeep.js
1733
+
1734
+
1735
+ #### flattenDeep(arr)
1736
+
1737
+ Flat deeply an array
1738
+
1739
+
1740
+
1741
+
1742
+ ##### Parameters
1743
+
1744
+ | Name | Type | Description | |
1745
+ | ---- | ---- | ----------- | -------- |
1746
+ | arr | | Array to flat deeply | &nbsp; |
1061
1747
 
1062
1748
 
1063
1749
 
@@ -1065,13 +1751,17 @@ Get the filter or the index of the given array, validating an old filter structu
1065
1751
  ##### Returns
1066
1752
 
1067
1753
 
1068
- - the index or the UI filter object
1754
+ - flatten array
1069
1755
 
1070
1756
 
1071
1757
 
1072
- #### refineRankingValues(values, uiValues)
1073
1758
 
1074
- Refines the values of the Ranking column type.
1759
+ ### dist/general/array/getLastIndexFromArray.js
1760
+
1761
+
1762
+ #### getLastIndexFromArray(array, callback)
1763
+
1764
+ Gets the last index from the array by a callback condition
1075
1765
 
1076
1766
 
1077
1767
 
@@ -1080,8 +1770,8 @@ Refines the values of the Ranking column type.
1080
1770
 
1081
1771
  | Name | Type | Description | |
1082
1772
  | ---- | ---- | ----------- | -------- |
1083
- | values | | the Array of Ranking values | &nbsp; |
1084
- | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1773
+ | array | | | &nbsp; |
1774
+ | callback | | function callback | &nbsp; |
1085
1775
 
1086
1776
 
1087
1777
 
@@ -1089,17 +1779,17 @@ Refines the values of the Ranking column type.
1089
1779
  ##### Returns
1090
1780
 
1091
1781
 
1092
- - the array of Ranking values
1782
+ - the last index of the array. -1 when the condition is not satisfied
1093
1783
 
1094
1784
 
1095
1785
 
1096
1786
 
1097
- ### dist/filters/adapters/logicToUI.js
1787
+ ### dist/general/array/delete.js
1098
1788
 
1099
1789
 
1100
- #### logicToUI(uFilters, datasetsInfo)
1790
+ #### ArrayDelete(array, index)
1101
1791
 
1102
- Generates a UI filter structure from the old logic structure (v2.0).
1792
+ Inmutable Array Item deletion
1103
1793
 
1104
1794
 
1105
1795
 
@@ -1108,8 +1798,8 @@ Generates a UI filter structure from the old logic structure (v2.0).
1108
1798
 
1109
1799
  | Name | Type | Description | |
1110
1800
  | ---- | ---- | ----------- | -------- |
1111
- | uFilters | | Array of filters from old logic structure | &nbsp; |
1112
- | datasetsInfo | | Collection of datasets information | &nbsp; |
1801
+ | array | `Array` | a collection of items to delete | &nbsp; |
1802
+ | index | `Number` | the position of the item to delete | &nbsp; |
1113
1803
 
1114
1804
 
1115
1805
 
@@ -1117,17 +1807,17 @@ Generates a UI filter structure from the old logic structure (v2.0).
1117
1807
  ##### Returns
1118
1808
 
1119
1809
 
1120
- - a UI Filter Data.
1810
+ - a new Array or the given parameter when is empty or not an array
1121
1811
 
1122
1812
 
1123
1813
 
1124
1814
 
1125
- ### dist/filters/adapters/transformFilters.js
1815
+ ### dist/general/function/debounce.js
1126
1816
 
1127
1817
 
1128
- #### transformFilters(oldFiltersObj, section)
1818
+ #### debounce(fn, time)
1129
1819
 
1130
- Transform the old filters structure into the new one
1820
+ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1131
1821
 
1132
1822
 
1133
1823
 
@@ -1136,77 +1826,147 @@ Transform the old filters structure into the new one
1136
1826
 
1137
1827
  | Name | Type | Description | |
1138
1828
  | ---- | ---- | ----------- | -------- |
1139
- | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
1140
- | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
1829
+ | fn | `Function` | original Function | &nbsp; |
1830
+ | time | `Number` | default 500ms | &nbsp; |
1141
1831
 
1142
1832
 
1143
1833
 
1144
1834
 
1145
- ##### Examples
1835
+ ##### Returns
1146
1836
 
1147
- ```javascript
1148
1837
 
1149
- const oldPreferenceFilters = {
1150
- "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
1151
- "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
1152
- "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
1153
- "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
1154
- "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
1155
- "formulaId": null,
1156
- "panelId": null,
1157
- "values": [
1158
- {
1159
- "EQUALS": [
1160
- {
1161
- "id": "AK4M8UV2a0",
1162
- "value": "A",
1163
- "enabled": true,
1164
- "imageUrl": null
1165
- },
1166
- {
1167
- "id": "AK4M8UV2a1",
1168
- "value": "B",
1169
- "enabled": true,
1170
- "imageUrl": null
1171
- }
1172
- ]
1173
- }
1174
- ],
1175
- "bucketId": null,
1176
- "text": "MC",
1177
- "title": "MC",
1178
- "type": "SINGLE_CHOICE",
1179
- "qid": "AK4M8UV2",
1180
- "dataset": {
1181
- "sourceid": "xYOQAdpqT",
1182
- "name": "Form All Questions",
1183
- "qrveyid": "xYOQAdpqT",
1184
- "text": "Form All Questions",
1185
- "linkid": 0
1186
- },
1187
- "enabled": true,
1188
- "linked": null
1189
- }
1190
- };
1838
+ - `Function` debounced functions
1191
1839
 
1192
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1840
+
1841
+
1842
+
1843
+ ### dist/general/function/throttled.js
1844
+
1845
+
1846
+ #### throttled(fn, time)
1847
+
1848
+ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1849
+
1850
+
1851
+
1852
+
1853
+ ##### Parameters
1854
+
1855
+ | Name | Type | Description | |
1856
+ | ---- | ---- | ----------- | -------- |
1857
+ | fn | `Function` | original Function | &nbsp; |
1858
+ | time | `Number` | default 500ms | &nbsp; |
1859
+
1860
+
1861
+
1862
+
1863
+ ##### Returns
1864
+
1865
+
1866
+ - `Function` throttled function
1867
+
1868
+
1869
+
1870
+
1871
+ ### dist/general/object/cloneDeep.js
1872
+
1873
+
1874
+ #### cloneDeep(obj)
1875
+
1876
+ A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
1877
+ Not to use this function with inner objects and functions
1878
+
1879
+
1880
+
1881
+
1882
+ ##### Parameters
1883
+
1884
+ | Name | Type | Description | |
1885
+ | ---- | ---- | ----------- | -------- |
1886
+ | obj | | The object | &nbsp; |
1887
+
1888
+
1889
+
1890
+
1891
+ ##### Returns
1892
+
1893
+
1894
+ - The new reference object or the given object if the parsing is incorrect or empty
1895
+
1896
+
1897
+
1898
+
1899
+ ### dist/general/object/get.js
1900
+
1901
+
1902
+ #### _get(baseObject, path, defaultValue)
1903
+
1904
+ Like lodash _.get.
1905
+ Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
1906
+
1907
+ Empty arrays and empty objects are returned but the defaultValue is not
1908
+ Undefined and null values will return the defaultValue.
1909
+
1910
+
1911
+
1912
+
1913
+ ##### Parameters
1914
+
1915
+ | Name | Type | Description | |
1916
+ | ---- | ---- | ----------- | -------- |
1917
+ | baseObject | | The object to query | &nbsp; |
1918
+ | path | | The string path or collection of string paths of the property to get. | &nbsp; |
1919
+ | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
1920
+
1921
+
1922
+
1923
+
1924
+ ##### Examples
1925
+
1926
+ ```javascript
1927
+ // returns 'Hello'
1928
+ _get({ item1: 'Hello', item2: 'World' }, 'item1')
1929
+ ```
1930
+ ```javascript
1931
+ // returns 'A simple Hello'
1932
+ _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
1933
+ ```
1934
+ ```javascript
1935
+ // returns 'Hello Again'
1936
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
1937
+ ```
1938
+ ```javascript
1939
+ // returns 'Hello 2'
1940
+ _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
1941
+ ```
1942
+ ```javascript
1943
+ // returns 'Hello Again'
1944
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
1193
1945
  ```
1194
1946
 
1195
1947
 
1196
1948
  ##### Returns
1197
1949
 
1198
1950
 
1199
- - `Object` an object with the new filters structure
1951
+ - the resolved value.
1200
1952
 
1201
1953
 
1202
1954
 
1203
1955
 
1204
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
1956
+ ### dist/general/object/getAttribute.js
1205
1957
 
1206
1958
 
1207
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1959
+ #### getAttribute(obj, key)
1208
1960
 
1209
- [TODO: Make a proper description for this function]
1961
+ Searchs for properties in different case styles such as: lower, upper, camel and pascal
1962
+ - To optimize the searching, it is required a key in a snake_case style
1963
+ - List of cases that do not match
1964
+ -- From lower to snake case
1965
+ -- From upper to snake case
1966
+ -- From lower to camel case
1967
+ -- From upper to camel case
1968
+ -- From lower to pascal case
1969
+ -- From upper to pascal case
1210
1970
 
1211
1971
 
1212
1972
 
@@ -1215,27 +1975,33 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1215
1975
 
1216
1976
  | Name | Type | Description | |
1217
1977
  | ---- | ---- | ----------- | -------- |
1218
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1219
- | scopes | | | &nbsp; |
1220
- | currentScope | | | &nbsp; |
1978
+ | obj | `object` | object to look for | &nbsp; |
1979
+ | key | `string` | String attribute in snake_case style | &nbsp; |
1221
1980
 
1222
1981
 
1223
1982
 
1224
1983
 
1984
+ ##### Examples
1985
+
1986
+ ```javascript
1987
+ getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1988
+ ```
1989
+
1990
+
1225
1991
  ##### Returns
1226
1992
 
1227
1993
 
1228
- -
1994
+ - `Void`
1229
1995
 
1230
1996
 
1231
1997
 
1232
1998
 
1233
- ### dist/filters/helpers/getAvailableScopes.js
1999
+ ### dist/general/object/hasProperty.js
1234
2000
 
1235
2001
 
1236
- #### getAvailableScopes(config)
2002
+ #### _hasProperty(obj, property)
1237
2003
 
1238
- Gets Scopes/Scope IDs by given IDs
2004
+ Use the hasOwnProperty in order to verify if the given property exists in the object.
1239
2005
 
1240
2006
 
1241
2007
 
@@ -1244,25 +2010,38 @@ Gets Scopes/Scope IDs by given IDs
1244
2010
 
1245
2011
  | Name | Type | Description | |
1246
2012
  | ---- | ---- | ----------- | -------- |
1247
- | config | | given Differnts IDs in order set a available scope | &nbsp; |
2013
+ | obj | `object` | an object | &nbsp; |
2014
+ | property | `string` | String to verify if exists in the object as property | &nbsp; |
2015
+
2016
+
1248
2017
 
1249
2018
 
2019
+ ##### Examples
2020
+
2021
+ ```javascript
2022
+ const prop = 'prop2'
2023
+ const obj1 = { prop1: 'hello', prop2: 'world'}
2024
+ _hasProperty(ob1, prop1) // true
2025
+
2026
+ const obj2 = { prop1: 'hello world' }
2027
+ _hasProperty(ob1, prop2) // false
2028
+ ```
1250
2029
 
1251
2030
 
1252
2031
  ##### Returns
1253
2032
 
1254
2033
 
1255
- - a Scopes/Scope IDs array
2034
+ - True if the object has the given property; otherwise, false.
1256
2035
 
1257
2036
 
1258
2037
 
1259
2038
 
1260
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
2039
+ ### dist/general/object/isObject.js
1261
2040
 
1262
2041
 
1263
- #### getAvailableScopesIDsByConfig(config)
2042
+ #### isObject(obj)
1264
2043
 
1265
- Gets the Scopes IDS for the Available Scope function by any config
2044
+ Checks if the given argument is an object type
1266
2045
 
1267
2046
 
1268
2047
 
@@ -1271,7 +2050,7 @@ Gets the Scopes IDS for the Available Scope function by any config
1271
2050
 
1272
2051
  | Name | Type | Description | |
1273
2052
  | ---- | ---- | ----------- | -------- |
1274
- | config | | any config | &nbsp; |
2053
+ | obj | | the variable to check | &nbsp; |
1275
2054
 
1276
2055
 
1277
2056
 
@@ -1279,17 +2058,18 @@ Gets the Scopes IDS for the Available Scope function by any config
1279
2058
  ##### Returns
1280
2059
 
1281
2060
 
1282
- - a Available Scope IDS config
2061
+ - True: It is an object; False: It is not.
1283
2062
 
1284
2063
 
1285
2064
 
1286
2065
 
1287
- ### dist/filters/helpers/getScopesByHierarchy.js
2066
+ ### dist/general/object/mapValues.js
1288
2067
 
1289
2068
 
1290
- #### getScopesByHierarchy(scopes, currentScope)
2069
+ #### mapValues(baseObject, iteratee)
1291
2070
 
1292
- [TODO: Make a description for this]
2071
+ Invoke iteratee (function) for each object key-value pair
2072
+ and return a mapped object
1293
2073
 
1294
2074
 
1295
2075
 
@@ -1298,8 +2078,8 @@ Gets the Scopes IDS for the Available Scope function by any config
1298
2078
 
1299
2079
  | Name | Type | Description | |
1300
2080
  | ---- | ---- | ----------- | -------- |
1301
- | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1302
- | currentScope | | Current scope type | &nbsp; |
2081
+ | baseObject | `Object` | Base object. | &nbsp; |
2082
+ | iteratee | `Function` | The executed per iteration. | &nbsp; |
1303
2083
 
1304
2084
 
1305
2085
 
@@ -1307,17 +2087,18 @@ Gets the Scopes IDS for the Available Scope function by any config
1307
2087
  ##### Returns
1308
2088
 
1309
2089
 
1310
- - A new array of Scopes/Scope IDs
2090
+ - `Object` New mapped object.
1311
2091
 
1312
2092
 
1313
2093
 
1314
2094
 
1315
- ### dist/general/function/debounce.js
2095
+ ### dist/general/object/mergeDeep.js
1316
2096
 
1317
2097
 
1318
- #### debounce(fn, time)
2098
+ #### mergeDeep(obj1, obj2, settings)
1319
2099
 
1320
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
2100
+ Merges two objects into a new one.
2101
+ The second given argument to the first given argument.
1321
2102
 
1322
2103
 
1323
2104
 
@@ -1326,8 +2107,9 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1326
2107
 
1327
2108
  | Name | Type | Description | |
1328
2109
  | ---- | ---- | ----------- | -------- |
1329
- | fn | `Function` | original Function | &nbsp; |
1330
- | time | `Number` | default 500ms | &nbsp; |
2110
+ | obj1 | | The target object | &nbsp; |
2111
+ | obj2 | | The object to be merged | &nbsp; |
2112
+ | settings | | Object settings for this function | &nbsp; |
1331
2113
 
1332
2114
 
1333
2115
 
@@ -1335,17 +2117,13 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1335
2117
  ##### Returns
1336
2118
 
1337
2119
 
1338
- - `Function` debounced functions
1339
-
1340
-
1341
-
2120
+ - a new merged object
1342
2121
 
1343
- ### dist/general/function/throttled.js
1344
2122
 
1345
2123
 
1346
- #### throttled(fn, time)
2124
+ #### isValid(obj1, obj2)
1347
2125
 
1348
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
2126
+ Validates if the two arguments are objects
1349
2127
 
1350
2128
 
1351
2129
 
@@ -1354,8 +2132,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1354
2132
 
1355
2133
  | Name | Type | Description | |
1356
2134
  | ---- | ---- | ----------- | -------- |
1357
- | fn | `Function` | original Function | &nbsp; |
1358
- | time | `Number` | default 500ms | &nbsp; |
2135
+ | obj1 | | The target object | &nbsp; |
2136
+ | obj2 | | The object to be merged | &nbsp; |
1359
2137
 
1360
2138
 
1361
2139
 
@@ -1363,17 +2141,13 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1363
2141
  ##### Returns
1364
2142
 
1365
2143
 
1366
- - `Function` throttled function
1367
-
1368
-
1369
-
2144
+ - true: they are valid; false: they are not
1370
2145
 
1371
- ### dist/general/array/delete.js
1372
2146
 
1373
2147
 
1374
- #### ArrayDelete(array, index)
2148
+ #### getParamsToMergeDeep(settings)
1375
2149
 
1376
- Inmutable Array Item deletion
2150
+ Validates and gets the settings with all set parameters.
1377
2151
 
1378
2152
 
1379
2153
 
@@ -1382,8 +2156,7 @@ Inmutable Array Item deletion
1382
2156
 
1383
2157
  | Name | Type | Description | |
1384
2158
  | ---- | ---- | ----------- | -------- |
1385
- | array | `Array` | a collection of items to delete | &nbsp; |
1386
- | index | `Number` | the position of the item to delete | &nbsp; |
2159
+ | settings | | the settings object | &nbsp; |
1387
2160
 
1388
2161
 
1389
2162
 
@@ -1391,20 +2164,17 @@ Inmutable Array Item deletion
1391
2164
  ##### Returns
1392
2165
 
1393
2166
 
1394
- - a new Array or the given parameter when is empty or not an array
2167
+ - a new settings object with all set parameters.
1395
2168
 
1396
2169
 
1397
2170
 
1398
2171
 
1399
- ### dist/general/array/filterNestedTree.js
2172
+ ### dist/general/object/objectCopy.js
1400
2173
 
1401
2174
 
1402
- #### filterNestedTree(arr, childArrKey, condition)
2175
+ #### objectCopy(entity, cache)
1403
2176
 
1404
- Filters a nested tree array by a custom condition on the last child node
1405
- - If the given arguments are not valid, the function returns the first argument.
1406
- - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1407
- - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
2177
+ Created a new reference of the given argument
1408
2178
 
1409
2179
 
1410
2180
 
@@ -1413,9 +2183,8 @@ Filters a nested tree array by a custom condition on the last child node
1413
2183
 
1414
2184
  | Name | Type | Description | |
1415
2185
  | ---- | ---- | ----------- | -------- |
1416
- | arr | | nested tree array | &nbsp; |
1417
- | childArrKey | | property representing the children array on the nested tree | &nbsp; |
1418
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
2186
+ | entity | | The variable to be copied | &nbsp; |
2187
+ | cache | | | &nbsp; |
1419
2188
 
1420
2189
 
1421
2190
 
@@ -1423,17 +2192,17 @@ Filters a nested tree array by a custom condition on the last child node
1423
2192
  ##### Returns
1424
2193
 
1425
2194
 
1426
- - array filtered
2195
+ - A new reference of the given argument
1427
2196
 
1428
2197
 
1429
2198
 
1430
2199
 
1431
- ### dist/general/array/flattenDeep.js
2200
+ ### dist/general/object/omit.js
1432
2201
 
1433
2202
 
1434
- #### flattenDeep(arr)
2203
+ #### omit(obj, props)
1435
2204
 
1436
- Flat deeply an array
2205
+ return a new Object excluding attributes in _props_ list
1437
2206
 
1438
2207
 
1439
2208
 
@@ -1442,7 +2211,8 @@ Flat deeply an array
1442
2211
 
1443
2212
  | Name | Type | Description | |
1444
2213
  | ---- | ---- | ----------- | -------- |
1445
- | arr | | Array to flat deeply | &nbsp; |
2214
+ | obj | `Object` | base object | &nbsp; |
2215
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1446
2216
 
1447
2217
 
1448
2218
 
@@ -1450,17 +2220,17 @@ Flat deeply an array
1450
2220
  ##### Returns
1451
2221
 
1452
2222
 
1453
- - flatten array
2223
+ - `Object` clean object
1454
2224
 
1455
2225
 
1456
2226
 
1457
2227
 
1458
- ### dist/general/array/getFirstIndexFromArray.js
2228
+ ### dist/general/object/pick.js
1459
2229
 
1460
2230
 
1461
- #### getFirstIndexFromArray(array, callback)
2231
+ #### pick(baseObject, keys)
1462
2232
 
1463
- Gets the first index from the array by a callback condition
2233
+ return a new object just with attributes in _keys_ list
1464
2234
 
1465
2235
 
1466
2236
 
@@ -1469,8 +2239,8 @@ Gets the first index from the array by a callback condition
1469
2239
 
1470
2240
  | Name | Type | Description | |
1471
2241
  | ---- | ---- | ----------- | -------- |
1472
- | array | | | &nbsp; |
1473
- | callback | | function callback | &nbsp; |
2242
+ | baseObject | `Object` | base object | &nbsp; |
2243
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1474
2244
 
1475
2245
 
1476
2246
 
@@ -1478,17 +2248,17 @@ Gets the first index from the array by a callback condition
1478
2248
  ##### Returns
1479
2249
 
1480
2250
 
1481
- - the first index of the array. -1 when the condition is not satisfied
2251
+ - `Object` new object just with desired attributes
1482
2252
 
1483
2253
 
1484
2254
 
1485
2255
 
1486
- ### dist/general/array/getLastIndexFromArray.js
2256
+ ### dist/general/object/serialize.js
1487
2257
 
1488
2258
 
1489
- #### getLastIndexFromArray(array, callback)
2259
+ #### serialize(obj)
1490
2260
 
1491
- Gets the last index from the array by a callback condition
2261
+ serialize object to url param
1492
2262
 
1493
2263
 
1494
2264
 
@@ -1497,8 +2267,7 @@ Gets the last index from the array by a callback condition
1497
2267
 
1498
2268
  | Name | Type | Description | |
1499
2269
  | ---- | ---- | ----------- | -------- |
1500
- | array | | | &nbsp; |
1501
- | callback | | function callback | &nbsp; |
2270
+ | obj | | - Object to be serialized | &nbsp; |
1502
2271
 
1503
2272
 
1504
2273
 
@@ -1506,7 +2275,7 @@ Gets the last index from the array by a callback condition
1506
2275
  ##### Returns
1507
2276
 
1508
2277
 
1509
- - the last index of the array. -1 when the condition is not satisfied
2278
+ - `Void`
1510
2279
 
1511
2280
 
1512
2281
 
@@ -1680,131 +2449,14 @@ Validates if the given argument is empty
1680
2449
 
1681
2450
 
1682
2451
 
1683
- ### dist/general/mix/isNull.js
1684
-
1685
-
1686
- #### isNull(arg)
1687
-
1688
- return if a given variable is either `null` or `undefined`
1689
- useful to avoid falsify validating Number Zero (0)
1690
-
1691
-
1692
-
1693
-
1694
- ##### Parameters
1695
-
1696
- | Name | Type | Description | |
1697
- | ---- | ---- | ----------- | -------- |
1698
- | arg | `any` | | &nbsp; |
1699
-
1700
-
1701
-
1702
-
1703
- ##### Returns
1704
-
1705
-
1706
- - `Boolean`
1707
-
1708
-
1709
-
1710
-
1711
- ### dist/general/mix/randomId.js
1712
-
1713
-
1714
- #### randomId(length, exclude)
1715
-
1716
- Creates a random string
1717
- - If the first given argument is different than a length number, the variable is replaced by a default number
1718
- - If the optional second given argument is passed the random string is permutated.
1719
-
1720
-
1721
-
1722
-
1723
- ##### Parameters
1724
-
1725
- | Name | Type | Description | |
1726
- | ---- | ---- | ----------- | -------- |
1727
- | length | `Number` | size of the generated string. Default 8 | &nbsp; |
1728
- | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
1729
-
1730
-
1731
-
1732
-
1733
- ##### Returns
1734
-
1735
-
1736
- - `String` Random string
1737
-
1738
-
1739
-
1740
-
1741
- ### dist/general/mix/size.js
1742
-
1743
-
1744
- #### size(obj)
1745
-
1746
- Gets the length of the given array.
1747
- - Useful for Object, Array and string type.
1748
- - For `null` or `undefined` or else argument the returned value will be 0.
1749
-
1750
-
1751
-
1752
-
1753
- ##### Parameters
1754
-
1755
- | Name | Type | Description | |
1756
- | ---- | ---- | ----------- | -------- |
1757
- | obj | `Any` | Any object-type variable | &nbsp; |
1758
-
1759
-
1760
-
1761
-
1762
- ##### Returns
1763
-
1764
-
1765
- - `Number` the size of the given variable
1766
-
1767
-
1768
-
2452
+ ### dist/general/mix/isNaNV2.js
1769
2453
 
1770
- ### dist/general/object/cloneDeep.js
1771
-
1772
-
1773
- #### cloneDeep(obj)
1774
-
1775
- A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
1776
- Not to use this function with inner objects and functions
1777
-
1778
-
1779
-
1780
-
1781
- ##### Parameters
1782
-
1783
- | Name | Type | Description | |
1784
- | ---- | ---- | ----------- | -------- |
1785
- | obj | | The object | &nbsp; |
1786
-
1787
-
1788
-
1789
-
1790
- ##### Returns
1791
-
1792
-
1793
- - The new reference object or the given object if the parsing is incorrect or empty
1794
-
1795
-
1796
-
1797
-
1798
- ### dist/general/object/get.js
1799
-
1800
-
1801
- #### _get(baseObject, path, defaultValue)
1802
2454
 
1803
- Like lodash _.get.
1804
- Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
2455
+ #### isNaNV2(variable)
1805
2456
 
1806
- Empty arrays and empty objects are returned but the defaultValue is not
1807
- Undefined and null values will return the defaultValue.
2457
+ Validates if the recieved number is NaN type.
2458
+ This function recieves any variable but will return false.
2459
+ Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
1808
2460
 
1809
2461
 
1810
2462
 
@@ -1813,59 +2465,26 @@ Undefined and null values will return the defaultValue.
1813
2465
 
1814
2466
  | Name | Type | Description | |
1815
2467
  | ---- | ---- | ----------- | -------- |
1816
- | baseObject | | The object to query | &nbsp; |
1817
- | path | | The string path or collection of string paths of the property to get. | &nbsp; |
1818
- | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
1819
-
2468
+ | variable | | the variable to validate | &nbsp; |
2469
+
1820
2470
 
1821
2471
 
1822
2472
 
1823
- ##### Examples
1824
-
1825
- ```javascript
1826
- // returns 'Hello'
1827
- _get({ item1: 'Hello', item2: 'World' }, 'item1')
1828
- ```
1829
- ```javascript
1830
- // returns 'A simple Hello'
1831
- _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
1832
- ```
1833
- ```javascript
1834
- // returns 'Hello Again'
1835
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
1836
- ```
1837
- ```javascript
1838
- // returns 'Hello 2'
1839
- _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
1840
- ```
1841
- ```javascript
1842
- // returns 'Hello Again'
1843
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
1844
- ```
1845
-
1846
-
1847
2473
  ##### Returns
1848
2474
 
1849
2475
 
1850
- - the resolved value.
2476
+ - True if variable is a NaN or false otherwise
1851
2477
 
1852
2478
 
1853
2479
 
1854
2480
 
1855
- ### dist/general/object/getAttribute.js
2481
+ ### dist/general/mix/isNull.js
1856
2482
 
1857
2483
 
1858
- #### getAttribute(obj, key)
2484
+ #### isNull(arg)
1859
2485
 
1860
- Searchs for properties in different case styles such as: lower, upper, camel and pascal
1861
- - To optimize the searching, it is required a key in a snake_case style
1862
- - List of cases that do not match
1863
- -- From lower to snake case
1864
- -- From upper to snake case
1865
- -- From lower to camel case
1866
- -- From upper to camel case
1867
- -- From lower to pascal case
1868
- -- From upper to pascal case
2486
+ return if a given variable is either `null` or `undefined`
2487
+ useful to avoid falsify validating Number Zero (0)
1869
2488
 
1870
2489
 
1871
2490
 
@@ -1874,33 +2493,27 @@ Searchs for properties in different case styles such as: lower, upper, camel and
1874
2493
 
1875
2494
  | Name | Type | Description | |
1876
2495
  | ---- | ---- | ----------- | -------- |
1877
- | obj | `object` | object to look for | &nbsp; |
1878
- | key | `string` | String attribute in snake_case style | &nbsp; |
1879
-
1880
-
1881
-
2496
+ | arg | `any` | | &nbsp; |
1882
2497
 
1883
- ##### Examples
1884
2498
 
1885
- ```javascript
1886
- getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1887
- ```
1888
2499
 
1889
2500
 
1890
2501
  ##### Returns
1891
2502
 
1892
2503
 
1893
- - `Void`
2504
+ - `Boolean`
1894
2505
 
1895
2506
 
1896
2507
 
1897
2508
 
1898
- ### dist/general/object/hasProperty.js
2509
+ ### dist/general/mix/randomId.js
1899
2510
 
1900
2511
 
1901
- #### _hasProperty(obj, property)
2512
+ #### randomId(length, exclude)
1902
2513
 
1903
- Use the hasOwnProperty in order to verify if the given property exists in the object.
2514
+ Creates a random string
2515
+ - If the first given argument is different than a length number, the variable is replaced by a default number
2516
+ - If the optional second given argument is passed the random string is permutated.
1904
2517
 
1905
2518
 
1906
2519
 
@@ -1909,38 +2522,28 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
1909
2522
 
1910
2523
  | Name | Type | Description | |
1911
2524
  | ---- | ---- | ----------- | -------- |
1912
- | obj | `object` | an object | &nbsp; |
1913
- | property | `string` | String to verify if exists in the object as property | &nbsp; |
1914
-
1915
-
1916
-
1917
-
1918
- ##### Examples
2525
+ | length | `Number` | size of the generated string. Default 8 | &nbsp; |
2526
+ | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
1919
2527
 
1920
- ```javascript
1921
- const prop = 'prop2'
1922
- const obj1 = { prop1: 'hello', prop2: 'world'}
1923
- _hasProperty(ob1, prop1) // true
1924
2528
 
1925
- const obj2 = { prop1: 'hello world' }
1926
- _hasProperty(ob1, prop2) // false
1927
- ```
1928
2529
 
1929
2530
 
1930
2531
  ##### Returns
1931
2532
 
1932
2533
 
1933
- - True if the object has the given property; otherwise, false.
2534
+ - `String` Random string
1934
2535
 
1935
2536
 
1936
2537
 
1937
2538
 
1938
- ### dist/general/object/isObject.js
2539
+ ### dist/general/mix/size.js
1939
2540
 
1940
2541
 
1941
- #### isObject(obj)
2542
+ #### size(obj)
1942
2543
 
1943
- Checks if the given argument is an object type
2544
+ Gets the length of the given array.
2545
+ - Useful for Object, Array and string type.
2546
+ - For `null` or `undefined` or else argument the returned value will be 0.
1944
2547
 
1945
2548
 
1946
2549
 
@@ -1949,7 +2552,7 @@ Checks if the given argument is an object type
1949
2552
 
1950
2553
  | Name | Type | Description | |
1951
2554
  | ---- | ---- | ----------- | -------- |
1952
- | obj | | the variable to check | &nbsp; |
2555
+ | obj | `Any` | Any object-type variable | &nbsp; |
1953
2556
 
1954
2557
 
1955
2558
 
@@ -1957,18 +2560,17 @@ Checks if the given argument is an object type
1957
2560
  ##### Returns
1958
2561
 
1959
2562
 
1960
- - True: It is an object; False: It is not.
2563
+ - `Number` the size of the given variable
1961
2564
 
1962
2565
 
1963
2566
 
1964
2567
 
1965
- ### dist/general/object/mapValues.js
2568
+ ### dist/general/string/capitalize.js
1966
2569
 
1967
2570
 
1968
- #### mapValues(baseObject, iteratee)
2571
+ #### capitalize(text)
1969
2572
 
1970
- Invoke iteratee (function) for each object key-value pair
1971
- and return a mapped object
2573
+ Upper case the first letter of a given text
1972
2574
 
1973
2575
 
1974
2576
 
@@ -1977,8 +2579,7 @@ and return a mapped object
1977
2579
 
1978
2580
  | Name | Type | Description | |
1979
2581
  | ---- | ---- | ----------- | -------- |
1980
- | baseObject | `Object` | Base object. | &nbsp; |
1981
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
2582
+ | text | `String` | | &nbsp; |
1982
2583
 
1983
2584
 
1984
2585
 
@@ -1986,18 +2587,17 @@ and return a mapped object
1986
2587
  ##### Returns
1987
2588
 
1988
2589
 
1989
- - `Object` New mapped object.
2590
+ - `String` a capitalized text
1990
2591
 
1991
2592
 
1992
2593
 
1993
2594
 
1994
- ### dist/general/object/mergeDeep.js
2595
+ ### dist/qrvey/helpers/getColumnsLabel.js
1995
2596
 
1996
2597
 
1997
- #### mergeDeep(obj1, obj2, settings)
2598
+ #### getColumnLabels(column)
1998
2599
 
1999
- Merges two objects into a new one.
2000
- The second given argument to the first given argument.
2600
+ Get an string of the properties of the given column.
2001
2601
 
2002
2602
 
2003
2603
 
@@ -2006,9 +2606,7 @@ The second given argument to the first given argument.
2006
2606
 
2007
2607
  | Name | Type | Description | |
2008
2608
  | ---- | ---- | ----------- | -------- |
2009
- | obj1 | | The target object | &nbsp; |
2010
- | obj2 | | The object to be merged | &nbsp; |
2011
- | settings | | Object settings for this function | &nbsp; |
2609
+ | column | | The column | &nbsp; |
2012
2610
 
2013
2611
 
2014
2612
 
@@ -2016,13 +2614,17 @@ The second given argument to the first given argument.
2016
2614
  ##### Returns
2017
2615
 
2018
2616
 
2019
- - a new merged object
2617
+ - an string with the property, aggregate or calculation label.
2020
2618
 
2021
2619
 
2022
2620
 
2023
- #### isValid(obj1, obj2)
2024
2621
 
2025
- Validates if the two arguments are objects
2622
+ ### dist/services/api/getAllDatasets.api.js
2623
+
2624
+
2625
+ #### getAllDatasets(qrveyids)
2626
+
2627
+ Get a dataset list from a collection of Qrvey IDs
2026
2628
 
2027
2629
 
2028
2630
 
@@ -2031,8 +2633,7 @@ Validates if the two arguments are objects
2031
2633
 
2032
2634
  | Name | Type | Description | |
2033
2635
  | ---- | ---- | ----------- | -------- |
2034
- | obj1 | | The target object | &nbsp; |
2035
- | obj2 | | The object to be merged | &nbsp; |
2636
+ | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2036
2637
 
2037
2638
 
2038
2639
 
@@ -2040,13 +2641,17 @@ Validates if the two arguments are objects
2040
2641
  ##### Returns
2041
2642
 
2042
2643
 
2043
- - true: they are valid; false: they are not
2644
+ - a promise
2044
2645
 
2045
2646
 
2046
2647
 
2047
- #### getParamsToMergeDeep(settings)
2048
2648
 
2049
- Validates and gets the settings with all set parameters.
2649
+ ### dist/services/api/getAllQrveys.api.js
2650
+
2651
+
2652
+ #### getAllQrveys(config, params)
2653
+
2654
+ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2050
2655
 
2051
2656
 
2052
2657
 
@@ -2055,7 +2660,8 @@ Validates and gets the settings with all set parameters.
2055
2660
 
2056
2661
  | Name | Type | Description | |
2057
2662
  | ---- | ---- | ----------- | -------- |
2058
- | settings | | the settings object | &nbsp; |
2663
+ | config | | Configuration | &nbsp; |
2664
+ | params | | Object for getting precise data | &nbsp; |
2059
2665
 
2060
2666
 
2061
2667
 
@@ -2063,17 +2669,17 @@ Validates and gets the settings with all set parameters.
2063
2669
  ##### Returns
2064
2670
 
2065
2671
 
2066
- - a new settings object with all set parameters.
2672
+ - `Void`
2067
2673
 
2068
2674
 
2069
2675
 
2070
2676
 
2071
- ### dist/general/object/objectCopy.js
2677
+ ### dist/services/api/getDatasetColumns.api.js
2072
2678
 
2073
2679
 
2074
- #### objectCopy(entity, cache)
2680
+ #### getDatasetColumns(qrveyid)
2075
2681
 
2076
- Created a new reference of the given argument
2682
+ Get a dataset by Qrvey ID
2077
2683
 
2078
2684
 
2079
2685
 
@@ -2082,8 +2688,7 @@ Created a new reference of the given argument
2082
2688
 
2083
2689
  | Name | Type | Description | |
2084
2690
  | ---- | ---- | ----------- | -------- |
2085
- | entity | | The variable to be copied | &nbsp; |
2086
- | cache | | | &nbsp; |
2691
+ | qrveyid | | The Qrvey ID | &nbsp; |
2087
2692
 
2088
2693
 
2089
2694
 
@@ -2091,45 +2696,50 @@ Created a new reference of the given argument
2091
2696
  ##### Returns
2092
2697
 
2093
2698
 
2094
- - A new reference of the given argument
2699
+ - a promise
2095
2700
 
2096
2701
 
2097
2702
 
2098
2703
 
2099
- ### dist/general/object/omit.js
2704
+ ### dist/stencil/decorators/Config.js
2100
2705
 
2101
2706
 
2102
- #### omit(obj, props)
2707
+ #### Config()
2103
2708
 
2104
- return a new Object excluding attributes in _props_ list
2709
+ Stencil.js - Prop Decorator
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
2105
2712
 
2106
2713
 
2107
2714
 
2108
2715
 
2109
- ##### Parameters
2110
2716
 
2111
- | Name | Type | Description | |
2112
- | ---- | ---- | ----------- | -------- |
2113
- | obj | `Object` | base object | &nbsp; |
2114
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2115
2717
 
2718
+ ##### Examples
2719
+
2720
+ ```javascript
2721
+ \ @Config() @Prop() settings;
2116
2722
 
2723
+ someMethod() {
2724
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2725
+ }
2726
+ ```
2117
2727
 
2118
2728
 
2119
2729
  ##### Returns
2120
2730
 
2121
2731
 
2122
- - `Object` clean object
2732
+ - `Void`
2123
2733
 
2124
2734
 
2125
2735
 
2126
2736
 
2127
- ### dist/general/object/pick.js
2737
+ ### dist/typescript/decorators/Debounce.js
2128
2738
 
2129
2739
 
2130
- #### pick(baseObject, keys)
2740
+ #### Debounce(time)
2131
2741
 
2132
- return a new object just with attributes in _keys_ list
2742
+ (Method Decorator) Debounce Class Method
2133
2743
 
2134
2744
 
2135
2745
 
@@ -2138,8 +2748,7 @@ return a new object just with attributes in _keys_ list
2138
2748
 
2139
2749
  | Name | Type | Description | |
2140
2750
  | ---- | ---- | ----------- | -------- |
2141
- | baseObject | `Object` | base object | &nbsp; |
2142
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2751
+ | time | | (optional) deafult 500 | &nbsp; |
2143
2752
 
2144
2753
 
2145
2754
 
@@ -2147,17 +2756,17 @@ return a new object just with attributes in _keys_ list
2147
2756
  ##### Returns
2148
2757
 
2149
2758
 
2150
- - `Object` new object just with desired attributes
2759
+ - `Void`
2151
2760
 
2152
2761
 
2153
2762
 
2154
2763
 
2155
- ### dist/general/object/serialize.js
2764
+ ### dist/typescript/decorators/Throttled.js
2156
2765
 
2157
2766
 
2158
- #### serialize(obj)
2767
+ #### Throttled(time)
2159
2768
 
2160
- serialize object to url param
2769
+ (Method Decorator) Throttled Class Method
2161
2770
 
2162
2771
 
2163
2772
 
@@ -2166,7 +2775,7 @@ serialize object to url param
2166
2775
 
2167
2776
  | Name | Type | Description | |
2168
2777
  | ---- | ---- | ----------- | -------- |
2169
- | obj | | - Object to be serialized | &nbsp; |
2778
+ | time | | (optional) deafult 500 | &nbsp; |
2170
2779
 
2171
2780
 
2172
2781
 
@@ -2179,12 +2788,36 @@ serialize object to url param
2179
2788
 
2180
2789
 
2181
2790
 
2182
- ### dist/general/string/capitalize.js
2791
+ ### dist/stencil/util/createRef.js
2183
2792
 
2184
2793
 
2185
- #### capitalize(text)
2794
+ #### createRef()
2186
2795
 
2187
- Upper case the first letter of a given text
2796
+ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+ ##### Returns
2804
+
2805
+
2806
+ - function - Function to use in ref prop in html elements
2807
+
2808
+
2809
+
2810
+
2811
+ ### dist/stencil/util/getConfig.js
2812
+
2813
+
2814
+ #### getConfig(cfg)
2815
+
2816
+ verify the Config object type and try to return a parsed Object
2817
+ - In case _cfg_ is a string, first try to make a JSON parse in other case
2818
+ try to find this string as a variable on Windows object
2819
+ - If _cfg_ is a fuction, tis is invoked and parsed
2820
+ - Finally, if is an object, _cfg_ is inmediatly returned
2188
2821
 
2189
2822
 
2190
2823
 
@@ -2193,7 +2826,7 @@ Upper case the first letter of a given text
2193
2826
 
2194
2827
  | Name | Type | Description | |
2195
2828
  | ---- | ---- | ----------- | -------- |
2196
- | text | `String` | | &nbsp; |
2829
+ | cfg | | | &nbsp; |
2197
2830
 
2198
2831
 
2199
2832
 
@@ -2201,17 +2834,17 @@ Upper case the first letter of a given text
2201
2834
  ##### Returns
2202
2835
 
2203
2836
 
2204
- - `String` a capitalized text
2837
+ - `Void`
2205
2838
 
2206
2839
 
2207
2840
 
2208
2841
 
2209
- ### dist/qrvey/helpers/getColumnsLabel.js
2842
+ ### dist/dates/relative/helpers/formatStatement.js
2210
2843
 
2211
2844
 
2212
- #### getColumnLabels(column)
2845
+ #### formatStatement(statement)
2213
2846
 
2214
- Get an string of the properties of the given column.
2847
+ Build a proper relative date statement type
2215
2848
 
2216
2849
 
2217
2850
 
@@ -2220,7 +2853,7 @@ Get an string of the properties of the given column.
2220
2853
 
2221
2854
  | Name | Type | Description | |
2222
2855
  | ---- | ---- | ----------- | -------- |
2223
- | column | | The column | &nbsp; |
2856
+ | statement | `RelativeStatement` | | &nbsp; |
2224
2857
 
2225
2858
 
2226
2859
 
@@ -2228,17 +2861,17 @@ Get an string of the properties of the given column.
2228
2861
  ##### Returns
2229
2862
 
2230
2863
 
2231
- - an string with the property, aggregate or calculation label.
2864
+ - `RelativeStatement`
2232
2865
 
2233
2866
 
2234
2867
 
2235
2868
 
2236
- ### dist/services/api/getAllDatasets.api.js
2869
+ ### dist/dates/relative/helpers/getStatementCase.js
2237
2870
 
2238
2871
 
2239
- #### getAllDatasets(qrveyids)
2872
+ #### getStatementCase(includeCurrent, isCalendarDate)
2240
2873
 
2241
- Get a dataset list from a collection of Qrvey IDs
2874
+ Returns a number/constant that identifies a relative date case
2242
2875
 
2243
2876
 
2244
2877
 
@@ -2247,7 +2880,8 @@ Get a dataset list from a collection of Qrvey IDs
2247
2880
 
2248
2881
  | Name | Type | Description | |
2249
2882
  | ---- | ---- | ----------- | -------- |
2250
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2883
+ | includeCurrent | `boolean` | | &nbsp; |
2884
+ | isCalendarDate | `boolean` | | &nbsp; |
2251
2885
 
2252
2886
 
2253
2887
 
@@ -2255,17 +2889,17 @@ Get a dataset list from a collection of Qrvey IDs
2255
2889
  ##### Returns
2256
2890
 
2257
2891
 
2258
- - a promise
2892
+ - `number`
2259
2893
 
2260
2894
 
2261
2895
 
2262
2896
 
2263
- ### dist/services/api/getAllQrveys.api.js
2897
+ ### dist/dates/relative/helpers/parseDate.js
2264
2898
 
2265
2899
 
2266
- #### getAllQrveys(config, params)
2900
+ #### parseDate(date)
2267
2901
 
2268
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2902
+ Parses a string date and returns a dayjs date
2269
2903
 
2270
2904
 
2271
2905
 
@@ -2274,8 +2908,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2274
2908
 
2275
2909
  | Name | Type | Description | |
2276
2910
  | ---- | ---- | ----------- | -------- |
2277
- | config | | Configuration | &nbsp; |
2278
- | params | | Object for getting precise data | &nbsp; |
2911
+ | date | `string` `Dayjs` `Date` | | &nbsp; |
2279
2912
 
2280
2913
 
2281
2914
 
@@ -2283,17 +2916,18 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2283
2916
  ##### Returns
2284
2917
 
2285
2918
 
2286
- - `Void`
2919
+ - `Dayjs` A dayjs date
2287
2920
 
2288
2921
 
2289
2922
 
2290
2923
 
2291
- ### dist/services/api/getDatasetColumns.api.js
2924
+ ### dist/filters/helpers/backend/buildExpression.js
2292
2925
 
2293
2926
 
2294
- #### getDatasetColumns(qrveyid)
2927
+ #### buildExpression(filter)
2295
2928
 
2296
- Get a dataset by Qrvey ID
2929
+ Builds filter expression by the filter data.
2930
+ - If the resulting value array is empty the enabled property will be false.
2297
2931
 
2298
2932
 
2299
2933
 
@@ -2302,7 +2936,7 @@ Get a dataset by Qrvey ID
2302
2936
 
2303
2937
  | Name | Type | Description | |
2304
2938
  | ---- | ---- | ----------- | -------- |
2305
- | qrveyid | | The Qrvey ID | &nbsp; |
2939
+ | filter | | The filter to transform | &nbsp; |
2306
2940
 
2307
2941
 
2308
2942
 
@@ -2310,19 +2944,26 @@ Get a dataset by Qrvey ID
2310
2944
  ##### Returns
2311
2945
 
2312
2946
 
2313
- - a promise
2947
+ - a filter expression
2314
2948
 
2315
2949
 
2316
2950
 
2317
2951
 
2318
- ### dist/stencil/util/createRef.js
2952
+ ### dist/filters/helpers/backend/buildUserFilters.js
2953
+
2954
+
2955
+ #### buildUserFilters(userFilters)
2956
+
2957
+ Transform user Filters array into Filter Logic structure
2319
2958
 
2320
2959
 
2321
- #### createRef()
2322
2960
 
2323
- lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2324
2961
 
2962
+ ##### Parameters
2325
2963
 
2964
+ | Name | Type | Description | |
2965
+ | ---- | ---- | ----------- | -------- |
2966
+ | userFilters | | The filters that the user defined. | &nbsp; |
2326
2967
 
2327
2968
 
2328
2969
 
@@ -2330,21 +2971,17 @@ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom
2330
2971
  ##### Returns
2331
2972
 
2332
2973
 
2333
- - function - Function to use in ref prop in html elements
2974
+ - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
2334
2975
 
2335
2976
 
2336
2977
 
2337
2978
 
2338
- ### dist/stencil/util/getConfig.js
2979
+ ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
2339
2980
 
2340
2981
 
2341
- #### getConfig(cfg)
2982
+ #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
2983
+
2342
2984
 
2343
- verify the Config object type and try to return a parsed Object
2344
- - In case _cfg_ is a string, first try to make a JSON parse in other case
2345
- try to find this string as a variable on Windows object
2346
- - If _cfg_ is a fuction, tis is invoked and parsed
2347
- - Finally, if is an object, _cfg_ is inmediatly returned
2348
2985
 
2349
2986
 
2350
2987
 
@@ -2353,7 +2990,8 @@ try to find this string as a variable on Windows object
2353
2990
 
2354
2991
  | Name | Type | Description | |
2355
2992
  | ---- | ---- | ----------- | -------- |
2356
- | cfg | | | &nbsp; |
2993
+ | aggFilters | | | &nbsp; |
2994
+ | summaryIndex | | | &nbsp; |
2357
2995
 
2358
2996
 
2359
2997
 
@@ -2361,50 +2999,44 @@ try to find this string as a variable on Windows object
2361
2999
  ##### Returns
2362
3000
 
2363
3001
 
2364
- - `Void`
2365
-
3002
+ -
2366
3003
 
2367
3004
 
2368
3005
 
2369
- ### dist/stencil/decorators/Config.js
2370
3006
 
3007
+ ### dist/filters/helpers/backend/getBackendGroupValue.js
2371
3008
 
2372
- #### Config()
2373
3009
 
2374
- Stencil.js - Prop Decorator
2375
- 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
2376
- But for this, is required ask for a property in `snake_case` style
3010
+ #### getBackendGroupValue(filter)
2377
3011
 
3012
+ Gets a group value for the backend logic structure
2378
3013
 
2379
3014
 
2380
3015
 
2381
3016
 
3017
+ ##### Parameters
2382
3018
 
2383
- ##### Examples
3019
+ | Name | Type | Description | |
3020
+ | ---- | ---- | ----------- | -------- |
3021
+ | filter | | The filter | &nbsp; |
2384
3022
 
2385
- ```javascript
2386
- \ @Config() @Prop() settings;
2387
3023
 
2388
- someMethod() {
2389
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2390
- }
2391
- ```
2392
3024
 
2393
3025
 
2394
3026
  ##### Returns
2395
3027
 
2396
3028
 
2397
- - `Void`
3029
+ - a property
2398
3030
 
2399
3031
 
2400
3032
 
2401
3033
 
2402
- ### dist/typescript/decorators/Debounce.js
3034
+ ### dist/filters/helpers/backend/getBackendProperty.js
2403
3035
 
2404
3036
 
2405
- #### Debounce(time)
3037
+ #### getBackendProperty(filter)
2406
3038
 
2407
- (Method Decorator) Debounce Class Method
3039
+ Gets a property for the logic structure
2408
3040
 
2409
3041
 
2410
3042
 
@@ -2413,7 +3045,7 @@ someMethod() {
2413
3045
 
2414
3046
  | Name | Type | Description | |
2415
3047
  | ---- | ---- | ----------- | -------- |
2416
- | time | | (optional) deafult 500 | &nbsp; |
3048
+ | filter | | The filter | &nbsp; |
2417
3049
 
2418
3050
 
2419
3051
 
@@ -2421,17 +3053,17 @@ someMethod() {
2421
3053
  ##### Returns
2422
3054
 
2423
3055
 
2424
- - `Void`
3056
+ - a property
2425
3057
 
2426
3058
 
2427
3059
 
2428
3060
 
2429
- ### dist/typescript/decorators/Throttled.js
3061
+ ### dist/filters/helpers/backend/getBackendValidator.js
2430
3062
 
2431
3063
 
2432
- #### Throttled(time)
3064
+ #### getBackendValidator(validator)
2433
3065
 
2434
- (Method Decorator) Throttled Class Method
3066
+ Gets the Validator that is used in requests
2435
3067
 
2436
3068
 
2437
3069
 
@@ -2440,7 +3072,7 @@ someMethod() {
2440
3072
 
2441
3073
  | Name | Type | Description | |
2442
3074
  | ---- | ---- | ----------- | -------- |
2443
- | time | | (optional) deafult 500 | &nbsp; |
3075
+ | validator | | Filter Validator used in UI | &nbsp; |
2444
3076
 
2445
3077
 
2446
3078
 
@@ -2448,17 +3080,17 @@ someMethod() {
2448
3080
  ##### Returns
2449
3081
 
2450
3082
 
2451
- - `Void`
3083
+ - Filter Validator used in Backend
2452
3084
 
2453
3085
 
2454
3086
 
2455
3087
 
2456
- ### dist/dates/relative/helpers/formatStatement.js
3088
+ ### dist/filters/helpers/backend/getBackendValues.js
2457
3089
 
2458
3090
 
2459
- #### formatStatement(statement)
3091
+ #### getBackendValues(filter)
2460
3092
 
2461
- Build a proper relative date statement type
3093
+ Gets the expresion values in the logic format
2462
3094
 
2463
3095
 
2464
3096
 
@@ -2467,7 +3099,7 @@ Build a proper relative date statement type
2467
3099
 
2468
3100
  | Name | Type | Description | |
2469
3101
  | ---- | ---- | ----------- | -------- |
2470
- | statement | `RelativeStatement` | | &nbsp; |
3102
+ | filter | | The filter structure | &nbsp; |
2471
3103
 
2472
3104
 
2473
3105
 
@@ -2475,17 +3107,13 @@ Build a proper relative date statement type
2475
3107
  ##### Returns
2476
3108
 
2477
3109
 
2478
- - `RelativeStatement`
2479
-
2480
-
2481
-
3110
+ - A collection of backend expression value
2482
3111
 
2483
- ### dist/dates/relative/helpers/getStatementCase.js
2484
3112
 
2485
3113
 
2486
- #### getStatementCase(includeCurrent, isCalendarDate)
3114
+ #### getResultValues(values, filter)
2487
3115
 
2488
- Returns a number/constant that identifies a relative date case
3116
+ Gets the expression values. Depending on the column type
2489
3117
 
2490
3118
 
2491
3119
 
@@ -2494,8 +3122,8 @@ Returns a number/constant that identifies a relative date case
2494
3122
 
2495
3123
  | Name | Type | Description | |
2496
3124
  | ---- | ---- | ----------- | -------- |
2497
- | includeCurrent | `boolean` | | &nbsp; |
2498
- | isCalendarDate | `boolean` | | &nbsp; |
3125
+ | values | | a collection of filter values | &nbsp; |
3126
+ | filter | | The filter structure | &nbsp; |
2499
3127
 
2500
3128
 
2501
3129
 
@@ -2503,17 +3131,13 @@ Returns a number/constant that identifies a relative date case
2503
3131
  ##### Returns
2504
3132
 
2505
3133
 
2506
- - `number`
2507
-
2508
-
2509
-
3134
+ -
2510
3135
 
2511
- ### dist/dates/relative/helpers/parseDate.js
2512
3136
 
2513
3137
 
2514
- #### parseDate(date)
3138
+ #### getRankingValues(values, rankingGroupIndex)
2515
3139
 
2516
- Parses a string date and returns a dayjs date
3140
+ Gets the Ranking values.
2517
3141
 
2518
3142
 
2519
3143
 
@@ -2522,7 +3146,8 @@ Parses a string date and returns a dayjs date
2522
3146
 
2523
3147
  | Name | Type | Description | |
2524
3148
  | ---- | ---- | ----------- | -------- |
2525
- | date | `string` `Dayjs` `Date` | | &nbsp; |
3149
+ | values | | a collection of filter values in the ranking structure | &nbsp; |
3150
+ | rankingGroupIndex | | determine the value by this index to build and return it | &nbsp; |
2526
3151
 
2527
3152
 
2528
3153
 
@@ -2530,17 +3155,17 @@ Parses a string date and returns a dayjs date
2530
3155
  ##### Returns
2531
3156
 
2532
3157
 
2533
- - `Dayjs` A dayjs date
3158
+ - Expression values for ranking
2534
3159
 
2535
3160
 
2536
3161
 
2537
3162
 
2538
- ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
3163
+ ### dist/filters/helpers/backend/getLogicByScopes.js
2539
3164
 
2540
3165
 
2541
- #### getFilterBuilderGeneralConfig(config)
3166
+ #### getLogicByScopes(logics, scopes)
2542
3167
 
2543
- Returns a filter builder config object by a any given config
3168
+ Gets the filters from logic data by Scopes/Scope IDs.
2544
3169
 
2545
3170
 
2546
3171
 
@@ -2549,7 +3174,8 @@ Returns a filter builder config object by a any given config
2549
3174
 
2550
3175
  | Name | Type | Description | |
2551
3176
  | ---- | ---- | ----------- | -------- |
2552
- | config | | any config object | &nbsp; |
3177
+ | logics | | The logic array | &nbsp; |
3178
+ | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
2553
3179
 
2554
3180
 
2555
3181
 
@@ -2557,18 +3183,17 @@ Returns a filter builder config object by a any given config
2557
3183
  ##### Returns
2558
3184
 
2559
3185
 
2560
- - The filter builder config object
3186
+ - a new Logic array
2561
3187
 
2562
3188
 
2563
3189
 
2564
3190
 
2565
- ### dist/filters/helpers/backend/buildExpression.js
3191
+ ### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
2566
3192
 
2567
3193
 
2568
- #### buildExpression(filter)
3194
+ #### getLogicByScopesHierarchy(filterData, scopes, currentScope)
2569
3195
 
2570
- Builds filter expression by the filter data.
2571
- - If the resulting value array is empty the enabled property will be false.
3196
+ Gets filters from the logic by the scopes hierarchy.
2572
3197
 
2573
3198
 
2574
3199
 
@@ -2577,7 +3202,9 @@ Builds filter expression by the filter data.
2577
3202
 
2578
3203
  | Name | Type | Description | |
2579
3204
  | ---- | ---- | ----------- | -------- |
2580
- | filter | | The filter to transform | &nbsp; |
3205
+ | filterData | | | &nbsp; |
3206
+ | scopes | | | &nbsp; |
3207
+ | currentScope | | | &nbsp; |
2581
3208
 
2582
3209
 
2583
3210
 
@@ -2585,17 +3212,17 @@ Builds filter expression by the filter data.
2585
3212
  ##### Returns
2586
3213
 
2587
3214
 
2588
- - a filter expression
3215
+ - a new array of Logic
2589
3216
 
2590
3217
 
2591
3218
 
2592
3219
 
2593
- ### dist/filters/helpers/backend/buildUserFilters.js
3220
+ ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
2594
3221
 
2595
3222
 
2596
- #### buildUserFilters(userFilters)
3223
+ #### getFilterBuilderGeneralConfig(config)
2597
3224
 
2598
- Transform user Filters array into Filter Logic structure
3225
+ Returns a filter builder config object by a any given config
2599
3226
 
2600
3227
 
2601
3228
 
@@ -2604,7 +3231,7 @@ Transform user Filters array into Filter Logic structure
2604
3231
 
2605
3232
  | Name | Type | Description | |
2606
3233
  | ---- | ---- | ----------- | -------- |
2607
- | userFilters | | The filters that the user defined. | &nbsp; |
3234
+ | config | | any config object | &nbsp; |
2608
3235
 
2609
3236
 
2610
3237
 
@@ -2612,17 +3239,17 @@ Transform user Filters array into Filter Logic structure
2612
3239
  ##### Returns
2613
3240
 
2614
3241
 
2615
- - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
2616
-
3242
+ - The filter builder config object
2617
3243
 
2618
3244
 
2619
3245
 
2620
- ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
2621
3246
 
3247
+ ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
2622
3248
 
2623
- #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
2624
3249
 
3250
+ #### excludeUIFiltersByAggregate(uFilters)
2625
3251
 
3252
+ Excludes Aggregate Filters in the Flattened UI Filters array
2626
3253
 
2627
3254
 
2628
3255
 
@@ -2631,8 +3258,7 @@ Transform user Filters array into Filter Logic structure
2631
3258
 
2632
3259
  | Name | Type | Description | |
2633
3260
  | ---- | ---- | ----------- | -------- |
2634
- | aggFilters | | | &nbsp; |
2635
- | summaryIndex | | | &nbsp; |
3261
+ | uFilters | | Collection of Flat UI Filters | &nbsp; |
2636
3262
 
2637
3263
 
2638
3264
 
@@ -2640,17 +3266,17 @@ Transform user Filters array into Filter Logic structure
2640
3266
  ##### Returns
2641
3267
 
2642
3268
 
2643
- -
3269
+ - a new Flat UI Filters that were excluded the aggregate filters
2644
3270
 
2645
3271
 
2646
3272
 
2647
3273
 
2648
- ### dist/filters/helpers/backend/getBackendGroupValue.js
3274
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
2649
3275
 
2650
3276
 
2651
- #### getBackendGroupValue(filter)
3277
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
2652
3278
 
2653
- Gets a group value for the backend logic structure
3279
+ Excludes and returns a UI Flat Filters without filters by the given scopes
2654
3280
 
2655
3281
 
2656
3282
 
@@ -2659,7 +3285,8 @@ Gets a group value for the backend logic structure
2659
3285
 
2660
3286
  | Name | Type | Description | |
2661
3287
  | ---- | ---- | ----------- | -------- |
2662
- | filter | | The filter | &nbsp; |
3288
+ | uFilters | | The Flatten UI Filters | &nbsp; |
3289
+ | scopes | | collection of scopes types | &nbsp; |
2663
3290
 
2664
3291
 
2665
3292
 
@@ -2667,17 +3294,17 @@ Gets a group value for the backend logic structure
2667
3294
  ##### Returns
2668
3295
 
2669
3296
 
2670
- - a property
3297
+ - The new array of UI Flattened filters
2671
3298
 
2672
3299
 
2673
3300
 
2674
3301
 
2675
- ### dist/filters/helpers/backend/getBackendProperty.js
3302
+ ### dist/filters/helpers/ui/getFilterPropertyLabel.js
2676
3303
 
2677
3304
 
2678
- #### getBackendProperty(filter)
3305
+ #### getFilterPropertyLabel(filter)
2679
3306
 
2680
- Gets a property for the logic structure
3307
+ Gets the label of the filter property
2681
3308
 
2682
3309
 
2683
3310
 
@@ -2686,7 +3313,7 @@ Gets a property for the logic structure
2686
3313
 
2687
3314
  | Name | Type | Description | |
2688
3315
  | ---- | ---- | ----------- | -------- |
2689
- | filter | | The filter | &nbsp; |
3316
+ | filter | | The UI Filter | &nbsp; |
2690
3317
 
2691
3318
 
2692
3319
 
@@ -2694,17 +3321,17 @@ Gets a property for the logic structure
2694
3321
  ##### Returns
2695
3322
 
2696
3323
 
2697
- - a property
3324
+ - a string of the filter property label
2698
3325
 
2699
3326
 
2700
3327
 
2701
3328
 
2702
- ### dist/filters/helpers/backend/getBackendValidator.js
3329
+ ### dist/filters/helpers/ui/getOutputFormatByColumn.js
2703
3330
 
2704
3331
 
2705
- #### getBackendValidator(validator)
3332
+ #### getOutputFormatByColumn(column, datasets)
2706
3333
 
2707
- Gets the Validator that is used in requests
3334
+ Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
2708
3335
 
2709
3336
 
2710
3337
 
@@ -2713,7 +3340,8 @@ Gets the Validator that is used in requests
2713
3340
 
2714
3341
  | Name | Type | Description | |
2715
3342
  | ---- | ---- | ----------- | -------- |
2716
- | validator | | Filter Validator used in UI | &nbsp; |
3343
+ | column | | The column | &nbsp; |
3344
+ | datasets | | array of datasets | &nbsp; |
2717
3345
 
2718
3346
 
2719
3347
 
@@ -2721,64 +3349,74 @@ Gets the Validator that is used in requests
2721
3349
  ##### Returns
2722
3350
 
2723
3351
 
2724
- - Filter Validator used in Backend
3352
+ - The output format object
2725
3353
 
2726
3354
 
2727
3355
 
2728
3356
 
2729
- ### dist/filters/helpers/backend/getBackendValues.js
3357
+ ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
2730
3358
 
2731
3359
 
2732
- #### getBackendValues(filter)
3360
+ #### getUIFlatFilterByParams()
2733
3361
 
2734
- Gets the expresion values in the logic format
3362
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3363
+ The validation to filter the stored filter is depending on:
3364
+ - Column
3365
+ - Qrvey ID,
3366
+ - Scope type
3367
+ - Scope ID
3368
+ - Panel ID
3369
+ - Validator type
3370
+ - Property type
2735
3371
 
2736
3372
 
2737
3373
 
2738
3374
 
2739
- ##### Parameters
2740
3375
 
2741
- | Name | Type | Description | |
2742
- | ---- | ---- | ----------- | -------- |
2743
- | filter | | The filter structure | &nbsp; |
2744
3376
 
3377
+ ##### Returns
2745
3378
 
2746
3379
 
3380
+ - The index of the uFilter array or the Filter object s
2747
3381
 
2748
- ##### Returns
2749
3382
 
2750
3383
 
2751
- - A collection of backend expression value
2752
3384
 
3385
+ ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
2753
3386
 
2754
3387
 
2755
- #### getResultValues(values, filter)
3388
+ #### getUIFlatFiltersByParams()
2756
3389
 
2757
- Gets the expression values. Depending on the column type
3390
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3391
+ The validation to filter the stored filter is depending on:
3392
+ - Column
3393
+ - Qrvey ID,
3394
+ - Scope type
3395
+ - Scope ID
3396
+ - Panel ID
3397
+ - Validator type
3398
+ - Property type
3399
+ - Enabled flags
2758
3400
 
2759
3401
 
2760
3402
 
2761
3403
 
2762
- ##### Parameters
2763
3404
 
2764
- | Name | Type | Description | |
2765
- | ---- | ---- | ----------- | -------- |
2766
- | values | | a collection of filter values | &nbsp; |
2767
- | filter | | The filter structure | &nbsp; |
2768
3405
 
3406
+ ##### Returns
2769
3407
 
2770
3408
 
3409
+ - The index of the uFilter array or the Filter object s
2771
3410
 
2772
- ##### Returns
2773
3411
 
2774
3412
 
2775
- -
2776
3413
 
3414
+ ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
2777
3415
 
2778
3416
 
2779
- #### getRankingValues(values, rankingGroupIndex)
3417
+ #### getUIFlatFiltersByScopes(uFilters, scopes)
2780
3418
 
2781
- Gets the Ranking values.
3419
+ Filters and gets a UI Flatten Filters by the given scopes
2782
3420
 
2783
3421
 
2784
3422
 
@@ -2787,8 +3425,8 @@ Gets the Ranking values.
2787
3425
 
2788
3426
  | Name | Type | Description | |
2789
3427
  | ---- | ---- | ----------- | -------- |
2790
- | values | | a collection of filter values in the ranking structure | &nbsp; |
2791
- | rankingGroupIndex | | determine the value by this index to build and return it | &nbsp; |
3428
+ | uFilters | | The Flatten UI Filters | &nbsp; |
3429
+ | scopes | | collection of scopes types | &nbsp; |
2792
3430
 
2793
3431
 
2794
3432
 
@@ -2796,17 +3434,17 @@ Gets the Ranking values.
2796
3434
  ##### Returns
2797
3435
 
2798
3436
 
2799
- - Expression values for ranking
3437
+ - The new array of UI Flattened filters
2800
3438
 
2801
3439
 
2802
3440
 
2803
3441
 
2804
- ### dist/filters/helpers/backend/getLogicByScopes.js
3442
+ ### dist/filters/helpers/ui/getUIValues.js
2805
3443
 
2806
3444
 
2807
- #### getLogicByScopes(logics, scopes)
3445
+ #### getUIValues(filter, addEnableds, rankingGroupIndex)
3446
+
2808
3447
 
2809
- Gets the filters from logic data by Scopes/Scope IDs.
2810
3448
 
2811
3449
 
2812
3450
 
@@ -2815,8 +3453,9 @@ Gets the filters from logic data by Scopes/Scope IDs.
2815
3453
 
2816
3454
  | Name | Type | Description | |
2817
3455
  | ---- | ---- | ----------- | -------- |
2818
- | logics | | The logic array | &nbsp; |
2819
- | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
3456
+ | filter | | | &nbsp; |
3457
+ | addEnableds | | | &nbsp; |
3458
+ | rankingGroupIndex | | | &nbsp; |
2820
3459
 
2821
3460
 
2822
3461
 
@@ -2824,17 +3463,17 @@ Gets the filters from logic data by Scopes/Scope IDs.
2824
3463
  ##### Returns
2825
3464
 
2826
3465
 
2827
- - a new Logic array
3466
+ -
2828
3467
 
2829
3468
 
2830
3469
 
2831
3470
 
2832
- ### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
3471
+ ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
2833
3472
 
2834
3473
 
2835
- #### getLogicByScopesHierarchy(filterData, scopes, currentScope)
3474
+ #### resolveUIFlatFilterByParams(filter, params)
2836
3475
 
2837
- Gets filters from the logic by the scopes hierarchy.
3476
+ Resolves conditions between UI flattened filter and given parameters
2838
3477
 
2839
3478
 
2840
3479
 
@@ -2843,9 +3482,8 @@ Gets filters from the logic by the scopes hierarchy.
2843
3482
 
2844
3483
  | Name | Type | Description | |
2845
3484
  | ---- | ---- | ----------- | -------- |
2846
- | filterData | | | &nbsp; |
2847
- | scopes | | | &nbsp; |
2848
- | currentScope | | | &nbsp; |
3485
+ | filter | | UI Flatten Filter | &nbsp; |
3486
+ | params | | Parameters to validate | &nbsp; |
2849
3487
 
2850
3488
 
2851
3489
 
@@ -2853,7 +3491,7 @@ Gets filters from the logic by the scopes hierarchy.
2853
3491
  ##### Returns
2854
3492
 
2855
3493
 
2856
- - a new array of Logic
3494
+ - true: the conditions are satisfied.
2857
3495
 
2858
3496
 
2859
3497
 
@@ -3682,256 +4320,4 @@ Resolves the conditions by given params
3682
4320
 
3683
4321
 
3684
4322
 
3685
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
3686
-
3687
-
3688
- #### excludeUIFiltersByAggregate(uFilters)
3689
-
3690
- Excludes Aggregate Filters in the Flattened UI Filters array
3691
-
3692
-
3693
-
3694
-
3695
- ##### Parameters
3696
-
3697
- | Name | Type | Description | |
3698
- | ---- | ---- | ----------- | -------- |
3699
- | uFilters | | Collection of Flat UI Filters | &nbsp; |
3700
-
3701
-
3702
-
3703
-
3704
- ##### Returns
3705
-
3706
-
3707
- - a new Flat UI Filters that were excluded the aggregate filters
3708
-
3709
-
3710
-
3711
-
3712
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
3713
-
3714
-
3715
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
3716
-
3717
- Excludes and returns a UI Flat Filters without filters by the given scopes
3718
-
3719
-
3720
-
3721
-
3722
- ##### Parameters
3723
-
3724
- | Name | Type | Description | |
3725
- | ---- | ---- | ----------- | -------- |
3726
- | uFilters | | The Flatten UI Filters | &nbsp; |
3727
- | scopes | | collection of scopes types | &nbsp; |
3728
-
3729
-
3730
-
3731
-
3732
- ##### Returns
3733
-
3734
-
3735
- - The new array of UI Flattened filters
3736
-
3737
-
3738
-
3739
-
3740
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
3741
-
3742
-
3743
- #### getFilterPropertyLabel(filter)
3744
-
3745
- Gets the label of the filter property
3746
-
3747
-
3748
-
3749
-
3750
- ##### Parameters
3751
-
3752
- | Name | Type | Description | |
3753
- | ---- | ---- | ----------- | -------- |
3754
- | filter | | The UI Filter | &nbsp; |
3755
-
3756
-
3757
-
3758
-
3759
- ##### Returns
3760
-
3761
-
3762
- - a string of the filter property label
3763
-
3764
-
3765
-
3766
-
3767
- ### dist/filters/helpers/ui/getOutputFormatByColumn.js
3768
-
3769
-
3770
- #### getOutputFormatByColumn(column, datasets)
3771
-
3772
- Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
3773
-
3774
-
3775
-
3776
-
3777
- ##### Parameters
3778
-
3779
- | Name | Type | Description | |
3780
- | ---- | ---- | ----------- | -------- |
3781
- | column | | The column | &nbsp; |
3782
- | datasets | | array of datasets | &nbsp; |
3783
-
3784
-
3785
-
3786
-
3787
- ##### Returns
3788
-
3789
-
3790
- - The output format object
3791
-
3792
-
3793
-
3794
-
3795
- ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
3796
-
3797
-
3798
- #### getUIFlatFilterByParams()
3799
-
3800
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3801
- The validation to filter the stored filter is depending on:
3802
- - Column
3803
- - Qrvey ID,
3804
- - Scope type
3805
- - Scope ID
3806
- - Panel ID
3807
- - Validator type
3808
- - Property type
3809
-
3810
-
3811
-
3812
-
3813
-
3814
-
3815
- ##### Returns
3816
-
3817
-
3818
- - The index of the uFilter array or the Filter object s
3819
-
3820
-
3821
-
3822
-
3823
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
3824
-
3825
-
3826
- #### getUIFlatFiltersByParams()
3827
-
3828
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3829
- The validation to filter the stored filter is depending on:
3830
- - Column
3831
- - Qrvey ID,
3832
- - Scope type
3833
- - Scope ID
3834
- - Panel ID
3835
- - Validator type
3836
- - Property type
3837
- - Enabled flags
3838
-
3839
-
3840
-
3841
-
3842
-
3843
-
3844
- ##### Returns
3845
-
3846
-
3847
- - The index of the uFilter array or the Filter object s
3848
-
3849
-
3850
-
3851
-
3852
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
3853
-
3854
-
3855
- #### getUIFlatFiltersByScopes(uFilters, scopes)
3856
-
3857
- Filters and gets a UI Flatten Filters by the given scopes
3858
-
3859
-
3860
-
3861
-
3862
- ##### Parameters
3863
-
3864
- | Name | Type | Description | |
3865
- | ---- | ---- | ----------- | -------- |
3866
- | uFilters | | The Flatten UI Filters | &nbsp; |
3867
- | scopes | | collection of scopes types | &nbsp; |
3868
-
3869
-
3870
-
3871
-
3872
- ##### Returns
3873
-
3874
-
3875
- - The new array of UI Flattened filters
3876
-
3877
-
3878
-
3879
-
3880
- ### dist/filters/helpers/ui/getUIValues.js
3881
-
3882
-
3883
- #### getUIValues(filter, addEnableds, rankingGroupIndex)
3884
-
3885
-
3886
-
3887
-
3888
-
3889
-
3890
- ##### Parameters
3891
-
3892
- | Name | Type | Description | |
3893
- | ---- | ---- | ----------- | -------- |
3894
- | filter | | | &nbsp; |
3895
- | addEnableds | | | &nbsp; |
3896
- | rankingGroupIndex | | | &nbsp; |
3897
-
3898
-
3899
-
3900
-
3901
- ##### Returns
3902
-
3903
-
3904
- -
3905
-
3906
-
3907
-
3908
-
3909
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
3910
-
3911
-
3912
- #### resolveUIFlatFilterByParams(filter, params)
3913
-
3914
- Resolves conditions between UI flattened filter and given parameters
3915
-
3916
-
3917
-
3918
-
3919
- ##### Parameters
3920
-
3921
- | Name | Type | Description | |
3922
- | ---- | ---- | ----------- | -------- |
3923
- | filter | | UI Flatten Filter | &nbsp; |
3924
- | params | | Parameters to validate | &nbsp; |
3925
-
3926
-
3927
-
3928
-
3929
- ##### Returns
3930
-
3931
-
3932
- - true: the conditions are satisfied.
3933
-
3934
-
3935
-
3936
-
3937
4323
  *Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*