@qrvey/utils 1.2.4-2 → 1.2.4-23

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 (896) hide show
  1. package/README.md +1099 -713
  2. package/dist/{cjs/qrvey → charts}/constants/AGGREGATE.d.ts +0 -0
  3. package/dist/{qrvey → charts}/constants/AGGREGATE.js +0 -0
  4. package/dist/{cjs/qrvey → charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
  5. package/dist/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
  6. package/dist/charts/constants/AGGREGATE_INFO.d.ts +5 -0
  7. package/dist/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
  8. package/dist/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
  9. package/dist/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
  10. package/dist/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
  11. package/dist/charts/constants/AGGREGATE_LABEL.js +12 -0
  12. package/dist/charts/constants/index.d.ts +5 -0
  13. package/dist/charts/constants/index.js +5 -0
  14. package/dist/charts/index.d.ts +2 -0
  15. package/dist/charts/index.js +2 -0
  16. package/dist/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
  17. package/dist/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
  18. package/dist/charts/interfaces/IAggregateInfo.d.ts +9 -0
  19. package/dist/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
  20. package/dist/charts/interfaces/IAggregateLabel.d.ts +2 -0
  21. package/dist/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
  22. package/dist/{cjs/qrvey/interfaces/IAggregate.d.ts → charts/interfaces/IAggregateType.d.ts} +1 -1
  23. package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesCrosstab.js → charts/interfaces/IAggregateType.js} +0 -0
  24. package/dist/charts/interfaces/index.d.ts +4 -0
  25. package/dist/charts/interfaces/index.js +4 -0
  26. package/dist/{qrvey → cjs/charts}/constants/AGGREGATE.d.ts +0 -0
  27. package/dist/cjs/{qrvey → charts}/constants/AGGREGATE.js +0 -0
  28. package/dist/{qrvey → cjs/charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
  29. package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
  30. package/dist/cjs/charts/constants/AGGREGATE_INFO.d.ts +5 -0
  31. package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
  32. package/dist/cjs/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
  33. package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
  34. package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
  35. package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +15 -0
  36. package/dist/cjs/charts/constants/index.d.ts +5 -0
  37. package/dist/cjs/{globalization/interfaces/q → charts/constants}/index.js +5 -5
  38. package/dist/cjs/charts/index.d.ts +2 -0
  39. package/dist/cjs/{globalization/labels/q → charts}/index.js +2 -2
  40. package/dist/cjs/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
  41. package/dist/cjs/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
  42. package/dist/cjs/charts/interfaces/IAggregateInfo.d.ts +9 -0
  43. package/dist/cjs/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
  44. package/dist/cjs/charts/interfaces/IAggregateLabel.d.ts +2 -0
  45. package/dist/cjs/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
  46. package/dist/{qrvey/interfaces/IAggregate.d.ts → cjs/charts/interfaces/IAggregateType.d.ts} +1 -1
  47. package/dist/cjs/{globalization/interfaces/common/II18nCommonChartInfoMessagesCrosstab.js → charts/interfaces/IAggregateType.js} +0 -0
  48. package/dist/cjs/charts/interfaces/index.d.ts +4 -0
  49. package/dist/cjs/charts/interfaces/index.js +16 -0
  50. package/dist/cjs/columns/constants/COLUMN.d.ts +6 -6
  51. package/dist/cjs/columns/constants/COLUMN.js +8 -8
  52. package/dist/cjs/columns/constants/COLUMN_INFO.js +3 -1
  53. package/dist/cjs/columns/constants/COLUMN_INFO_LIST.js +2 -6
  54. package/dist/cjs/columns/constants/COLUMN_LABEL.d.ts +7 -6
  55. package/dist/cjs/columns/constants/COLUMN_LABEL.js +2 -1
  56. package/dist/cjs/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
  57. package/dist/cjs/columns/constants/COLUMN_PROPERTY.js +4 -4
  58. package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
  59. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
  60. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
  61. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
  62. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
  63. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
  64. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
  65. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
  66. package/dist/cjs/columns/constants/NUMERICAL_COLUMN.js +12 -0
  67. package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
  68. package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.js +15 -0
  69. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
  70. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.js +16 -0
  71. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
  72. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +16 -0
  73. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
  74. package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.js +12 -0
  75. package/dist/cjs/columns/constants/index.d.ts +5 -0
  76. package/dist/cjs/columns/constants/index.js +5 -0
  77. package/dist/cjs/columns/helpers/index.d.ts +1 -0
  78. package/dist/cjs/columns/helpers/index.js +1 -0
  79. package/dist/cjs/columns/helpers/isNumericalColumn.d.ts +2 -0
  80. package/dist/cjs/columns/helpers/isNumericalColumn.js +8 -0
  81. package/dist/cjs/columns/interfaces/IColumn.d.ts +3 -3
  82. package/dist/cjs/columns/interfaces/IColumnType.d.ts +2 -1
  83. package/dist/cjs/columns/interfaces/INumericalColumnType.d.ts +2 -0
  84. package/dist/cjs/{globalization/interfaces/common/II18nCommonChartInfoMessagesDefault.js → columns/interfaces/INumericalColumnType.js} +0 -0
  85. package/dist/cjs/columns/interfaces/index.d.ts +3 -2
  86. package/dist/cjs/columns/interfaces/index.js +3 -2
  87. package/dist/cjs/dates/adapters/mdyDateToDate.d.ts +7 -0
  88. package/dist/cjs/dates/adapters/mdyDateToDate.js +21 -0
  89. package/dist/cjs/dates/adapters/monthYearToDate.d.ts +7 -0
  90. package/dist/cjs/dates/adapters/monthYearToDate.js +24 -0
  91. package/dist/cjs/dates/adapters/quarterYearToDate.d.ts +7 -0
  92. package/dist/cjs/dates/adapters/quarterYearToDate.js +24 -0
  93. package/dist/cjs/dates/adapters/weekYearToDate.d.ts +7 -0
  94. package/dist/cjs/dates/adapters/weekYearToDate.js +32 -0
  95. package/dist/cjs/dates/adapters/yearToDate.d.ts +7 -0
  96. package/dist/cjs/dates/adapters/yearToDate.js +22 -0
  97. package/dist/cjs/dates/constants/DATE_FORMAT.d.ts +16 -14
  98. package/dist/cjs/dates/constants/DATE_FORMAT.js +23 -18
  99. package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
  100. package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
  101. package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
  102. package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +21 -0
  103. package/dist/cjs/dates/constants/index.d.ts +1 -0
  104. package/dist/cjs/dates/constants/index.js +1 -0
  105. package/dist/cjs/dates/helpers/getDateByDateFormat.d.ts +9 -0
  106. package/dist/cjs/dates/helpers/getDateByDateFormat.js +36 -0
  107. package/dist/cjs/dates/helpers/getDateFormatByProperty.d.ts +8 -0
  108. package/dist/cjs/dates/helpers/getDateFormatByProperty.js +27 -0
  109. package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
  110. package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.js +47 -0
  111. package/dist/cjs/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
  112. package/dist/cjs/dates/helpers/getSeparatorByDateFormat.js +15 -0
  113. package/dist/cjs/dates/helpers/getWeek.d.ts +11 -0
  114. package/dist/cjs/dates/helpers/getWeek.js +25 -0
  115. package/dist/cjs/dates/helpers/index.d.ts +6 -0
  116. package/dist/cjs/dates/helpers/index.js +18 -0
  117. package/dist/cjs/dates/helpers/validateDate.d.ts +11 -0
  118. package/dist/cjs/dates/helpers/validateDate.js +24 -0
  119. package/dist/cjs/dates/helpers/validateDateByDateFormat.d.ts +8 -0
  120. package/dist/cjs/dates/helpers/validateDateByDateFormat.js +26 -0
  121. package/dist/cjs/dates/index.d.ts +1 -0
  122. package/dist/cjs/dates/index.js +1 -0
  123. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.d.ts +3 -12
  124. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
  125. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
  126. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +13 -0
  127. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
  128. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +9 -0
  129. package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
  130. package/dist/cjs/dates/relative/constants/index.js +2 -0
  131. package/dist/cjs/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
  132. package/dist/cjs/{globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
  133. package/dist/cjs/dates/relative/interfaces/index.d.ts +1 -0
  134. package/dist/cjs/dates/relative/interfaces/index.js +1 -0
  135. package/dist/cjs/filters/classes/FilterInputErrorHandler.d.ts +27 -0
  136. package/dist/cjs/filters/classes/FilterInputErrorHandler.js +15 -0
  137. package/dist/cjs/filters/classes/index.d.ts +1 -0
  138. package/dist/cjs/filters/classes/index.js +13 -0
  139. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
  140. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +9 -0
  141. package/dist/cjs/filters/helpers/common/getFilterColumnLabel.js +1 -1
  142. package/dist/cjs/filters/index.d.ts +1 -0
  143. package/dist/cjs/filters/index.js +1 -0
  144. package/dist/cjs/general/mix/index.d.ts +1 -0
  145. package/dist/cjs/general/mix/index.js +1 -0
  146. package/dist/cjs/general/mix/isNaNV2.d.ts +8 -0
  147. package/dist/cjs/general/mix/isNaNV2.js +15 -0
  148. package/dist/cjs/general/object/mergeDeep.js +6 -7
  149. package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
  150. package/dist/cjs/globalization/interfaces/{filters/II18nFilterBuilderInfoContainerSelection.js → II18nServiceTranslateOption.js} +0 -0
  151. package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +18 -14
  152. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
  153. package/dist/cjs/globalization/interfaces/{panel/II18nPanelSizeSubMenu.js → bucket_builder/II18nBucketBuilder.js} +0 -0
  154. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
  155. package/dist/cjs/globalization/interfaces/{q/II18nSlidebar.js → bucket_builder/II18nBucketBuilderBasicBucket.js} +0 -0
  156. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +29 -0
  157. package/dist/cjs/globalization/interfaces/{q/II18nSlidebarValueContainer.js → bucket_builder/II18nBucketBuilderCreateBucket.js} +0 -0
  158. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
  159. package/dist/cjs/globalization/interfaces/{q/II18nValueContainer.js → bucket_builder/II18nBucketBuilderCustomBucket.js} +0 -0
  160. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
  161. package/dist/cjs/globalization/interfaces/{q/II18nValueContainerSearchInput.js → bucket_builder/II18nBucketBuilderDeleteDialog.js} +0 -0
  162. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
  163. package/dist/cjs/globalization/interfaces/{q/II18nValueContainerSearchInputEnterValue.js → bucket_builder/II18nBucketBuilderEditDialog.js} +0 -0
  164. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
  165. package/dist/cjs/{qrvey/interfaces/IAggregate.js → globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js} +0 -0
  166. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
  167. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +2 -0
  168. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
  169. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +2 -0
  170. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
  171. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +2 -0
  172. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +12 -0
  173. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +2 -0
  174. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
  175. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +2 -0
  176. package/dist/cjs/globalization/interfaces/bucket_builder/index.d.ts +12 -0
  177. package/dist/cjs/globalization/interfaces/bucket_builder/index.js +24 -0
  178. package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.d.ts +11 -0
  179. package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.js +2 -0
  180. package/dist/cjs/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.d.ts → II18nChartInfoMessagesCrosstab.d.ts} +1 -1
  181. package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +2 -0
  182. package/dist/cjs/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.d.ts → II18nChartInfoMessagesDefault.d.ts} +1 -1
  183. package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +2 -0
  184. package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.d.ts → cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts} +1 -1
  185. package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +2 -0
  186. package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
  187. package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.js +2 -0
  188. package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
  189. package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.js +2 -0
  190. package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
  191. package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.js +2 -0
  192. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +14 -6
  193. package/dist/cjs/globalization/interfaces/common/index.d.ts +8 -0
  194. package/dist/cjs/globalization/interfaces/common/index.js +20 -0
  195. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
  196. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.js +2 -0
  197. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
  198. package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +2 -0
  199. package/dist/cjs/globalization/interfaces/cross_tabs/index.d.ts +1 -0
  200. package/dist/cjs/globalization/interfaces/cross_tabs/index.js +13 -0
  201. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +16 -4
  202. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
  203. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
  204. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +2 -0
  205. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
  206. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
  207. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.js +2 -0
  208. package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
  209. package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.js +2 -0
  210. package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
  211. package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.js +2 -0
  212. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
  213. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.js +2 -0
  214. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
  215. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.js +2 -0
  216. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
  217. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +2 -0
  218. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
  219. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +2 -0
  220. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
  221. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +2 -0
  222. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTitle.d.ts +10 -0
  223. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTitle.js +2 -0
  224. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
  225. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +2 -0
  226. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
  227. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +2 -0
  228. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
  229. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +2 -0
  230. package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
  231. package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.js +2 -0
  232. package/dist/cjs/globalization/interfaces/filters/II18nFilterValidator.d.ts +23 -0
  233. package/dist/cjs/globalization/interfaces/filters/II18nFilterValidator.js +2 -0
  234. package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
  235. package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.js +2 -0
  236. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
  237. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.js +2 -0
  238. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
  239. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.js +2 -0
  240. package/dist/cjs/globalization/interfaces/filters/II18nSlidebar.d.ts +7 -0
  241. package/dist/cjs/globalization/interfaces/filters/II18nSlidebar.js +2 -0
  242. package/dist/{globalization/interfaces/q → cjs/globalization/interfaces/filters}/II18nValueContainer.d.ts +2 -0
  243. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.js +2 -0
  244. package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +6 -0
  245. package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.js +2 -0
  246. package/dist/cjs/globalization/interfaces/filters/index.d.ts +22 -2
  247. package/dist/cjs/globalization/interfaces/filters/index.js +22 -2
  248. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilder.d.ts +12 -0
  249. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilder.js +2 -0
  250. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +28 -0
  251. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.js +2 -0
  252. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +7 -0
  253. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.js +2 -0
  254. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.d.ts +7 -0
  255. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.js +2 -0
  256. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +5 -0
  257. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.js +2 -0
  258. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +9 -0
  259. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.js +2 -0
  260. package/dist/cjs/globalization/interfaces/formula_builder/index.d.ts +6 -0
  261. package/dist/cjs/globalization/interfaces/formula_builder/index.js +18 -0
  262. package/dist/cjs/globalization/interfaces/index.d.ts +6 -1
  263. package/dist/cjs/globalization/interfaces/index.js +6 -1
  264. package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +16 -2
  265. package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
  266. package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.js +2 -0
  267. package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +9 -0
  268. package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.js +2 -0
  269. package/dist/cjs/globalization/interfaces/panel/II18nPanelMenu.d.ts +7 -0
  270. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
  271. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +2 -0
  272. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
  273. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.js +2 -0
  274. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
  275. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.js +2 -0
  276. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummarySorting.d.ts +12 -0
  277. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummarySorting.js +2 -0
  278. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +19 -0
  279. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.js +2 -0
  280. package/dist/cjs/globalization/interfaces/panel/index.d.ts +7 -1
  281. package/dist/cjs/globalization/interfaces/panel/index.js +7 -1
  282. package/dist/cjs/globalization/interfaces/table_charts/II18nTableCharts.d.ts +6 -2
  283. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
  284. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +2 -0
  285. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +5 -0
  286. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.js +2 -0
  287. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +3 -0
  288. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +1 -0
  289. package/dist/cjs/globalization/interfaces/table_charts/index.d.ts +6 -0
  290. package/dist/cjs/globalization/interfaces/table_charts/index.js +18 -0
  291. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +12 -2
  292. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
  293. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +117 -0
  294. package/dist/cjs/globalization/labels/bucket_builder/index.d.ts +1 -0
  295. package/dist/cjs/globalization/labels/bucket_builder/index.js +13 -0
  296. package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +2 -0
  297. package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.js +15 -0
  298. package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
  299. package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.js +42 -0
  300. package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +2 -0
  301. package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +50 -0
  302. package/dist/cjs/globalization/labels/common/I18N_COMMON.d.ts +2 -24
  303. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +13 -1
  304. package/dist/cjs/globalization/labels/common/index.d.ts +2 -0
  305. package/dist/cjs/globalization/labels/common/index.js +2 -0
  306. package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
  307. package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +14 -0
  308. package/dist/cjs/globalization/labels/cross_tabs/index.d.ts +1 -0
  309. package/dist/cjs/globalization/labels/cross_tabs/index.js +13 -0
  310. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +24 -2
  311. package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -12
  312. package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
  313. package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.js +9 -0
  314. package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
  315. package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.js +7 -0
  316. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
  317. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +50 -0
  318. package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
  319. package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +14 -0
  320. package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +2 -0
  321. package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +27 -0
  322. package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
  323. package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.js +7 -0
  324. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
  325. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +13 -0
  326. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
  327. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +9 -0
  328. package/dist/cjs/globalization/labels/filters/I18N_SLIDEBAR.d.ts +2 -0
  329. package/dist/cjs/globalization/labels/{q → filters}/I18N_SLIDEBAR.js +2 -3
  330. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
  331. package/dist/cjs/globalization/labels/{q → filters}/I18N_VALUE_CONTAINER.js +5 -5
  332. package/dist/cjs/globalization/labels/filters/index.d.ts +9 -0
  333. package/dist/cjs/globalization/labels/filters/index.js +9 -0
  334. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +2 -0
  335. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +61 -0
  336. package/dist/cjs/globalization/labels/formula_builder/index.d.ts +1 -0
  337. package/dist/cjs/globalization/labels/formula_builder/index.js +13 -0
  338. package/dist/cjs/globalization/labels/index.d.ts +8 -6
  339. package/dist/cjs/globalization/labels/index.js +8 -6
  340. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +72 -4
  341. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -18
  342. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +25 -8
  343. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +2 -1
  344. package/dist/cjs/globalization/service/i18nextBuilder.js +4 -3
  345. package/dist/cjs/index.d.ts +1 -0
  346. package/dist/cjs/index.js +1 -0
  347. package/dist/cjs/interfaces/Qrvey.Interface.d.ts +0 -10
  348. package/dist/cjs/interfaces/index.d.ts +1 -1
  349. package/dist/cjs/interfaces/index.js +1 -1
  350. package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
  351. package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.js +2 -2
  352. package/dist/cjs/qrvey/constants/index.d.ts +1 -4
  353. package/dist/cjs/qrvey/constants/index.js +1 -4
  354. package/dist/{columns/interfaces/IColumnCalculationType.d.ts → cjs/qrvey/interfaces/ICalculationType.d.ts} +1 -1
  355. package/dist/cjs/qrvey/interfaces/ICalculationType.js +2 -0
  356. package/dist/cjs/qrvey/interfaces/index.d.ts +4 -0
  357. package/dist/cjs/qrvey/interfaces/index.js +4 -0
  358. package/dist/cjs/services/helpers/Request.js +1 -1
  359. package/dist/columns/constants/COLUMN.d.ts +6 -6
  360. package/dist/columns/constants/COLUMN.js +8 -8
  361. package/dist/columns/constants/COLUMN_INFO.js +3 -1
  362. package/dist/columns/constants/COLUMN_INFO_LIST.js +2 -6
  363. package/dist/columns/constants/COLUMN_LABEL.d.ts +7 -6
  364. package/dist/columns/constants/COLUMN_LABEL.js +2 -1
  365. package/dist/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
  366. package/dist/columns/constants/COLUMN_PROPERTY.js +4 -4
  367. package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
  368. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
  369. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
  370. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
  371. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
  372. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
  373. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
  374. package/dist/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
  375. package/dist/columns/constants/NUMERICAL_COLUMN.js +9 -0
  376. package/dist/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
  377. package/dist/columns/constants/NUMERICAL_COLUMNS.js +12 -0
  378. package/dist/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
  379. package/dist/columns/constants/NUMERICAL_COLUMN_INFO.js +13 -0
  380. package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
  381. package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +13 -0
  382. package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
  383. package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.js +9 -0
  384. package/dist/columns/constants/index.d.ts +5 -0
  385. package/dist/columns/constants/index.js +5 -0
  386. package/dist/columns/helpers/index.d.ts +1 -0
  387. package/dist/columns/helpers/index.js +1 -0
  388. package/dist/columns/helpers/isNumericalColumn.d.ts +2 -0
  389. package/dist/columns/helpers/isNumericalColumn.js +4 -0
  390. package/dist/columns/interfaces/IColumn.d.ts +3 -3
  391. package/dist/columns/interfaces/IColumnType.d.ts +2 -1
  392. package/dist/columns/interfaces/INumericalColumnType.d.ts +2 -0
  393. package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesDefault.js → columns/interfaces/INumericalColumnType.js} +0 -0
  394. package/dist/columns/interfaces/index.d.ts +3 -2
  395. package/dist/columns/interfaces/index.js +3 -2
  396. package/dist/dates/adapters/mdyDateToDate.d.ts +7 -0
  397. package/dist/dates/adapters/mdyDateToDate.js +17 -0
  398. package/dist/dates/adapters/monthYearToDate.d.ts +7 -0
  399. package/dist/dates/adapters/monthYearToDate.js +20 -0
  400. package/dist/dates/adapters/quarterYearToDate.d.ts +7 -0
  401. package/dist/dates/adapters/quarterYearToDate.js +20 -0
  402. package/dist/dates/adapters/weekYearToDate.d.ts +7 -0
  403. package/dist/dates/adapters/weekYearToDate.js +28 -0
  404. package/dist/dates/adapters/yearToDate.d.ts +7 -0
  405. package/dist/dates/adapters/yearToDate.js +18 -0
  406. package/dist/dates/constants/DATE_FORMAT.d.ts +16 -14
  407. package/dist/dates/constants/DATE_FORMAT.js +23 -18
  408. package/dist/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
  409. package/dist/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
  410. package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
  411. package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +18 -0
  412. package/dist/dates/constants/index.d.ts +1 -0
  413. package/dist/dates/constants/index.js +1 -0
  414. package/dist/dates/helpers/getDateByDateFormat.d.ts +9 -0
  415. package/dist/dates/helpers/getDateByDateFormat.js +32 -0
  416. package/dist/dates/helpers/getDateFormatByProperty.d.ts +8 -0
  417. package/dist/dates/helpers/getDateFormatByProperty.js +23 -0
  418. package/dist/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
  419. package/dist/dates/helpers/getDateFormatRegularExpressionInArray.js +43 -0
  420. package/dist/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
  421. package/dist/dates/helpers/getSeparatorByDateFormat.js +11 -0
  422. package/dist/dates/helpers/getWeek.d.ts +11 -0
  423. package/dist/dates/helpers/getWeek.js +21 -0
  424. package/dist/dates/helpers/index.d.ts +6 -0
  425. package/dist/dates/helpers/index.js +6 -0
  426. package/dist/dates/helpers/validateDate.d.ts +11 -0
  427. package/dist/dates/helpers/validateDate.js +20 -0
  428. package/dist/dates/helpers/validateDateByDateFormat.d.ts +8 -0
  429. package/dist/dates/helpers/validateDateByDateFormat.js +22 -0
  430. package/dist/dates/index.d.ts +1 -0
  431. package/dist/dates/index.js +1 -0
  432. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.d.ts +3 -12
  433. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
  434. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
  435. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +10 -0
  436. package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
  437. package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +6 -0
  438. package/dist/dates/relative/constants/index.d.ts +2 -0
  439. package/dist/dates/relative/constants/index.js +2 -0
  440. package/dist/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
  441. package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
  442. package/dist/dates/relative/interfaces/index.d.ts +1 -0
  443. package/dist/dates/relative/interfaces/index.js +1 -0
  444. package/dist/filters/classes/FilterInputErrorHandler.d.ts +27 -0
  445. package/dist/filters/classes/FilterInputErrorHandler.js +11 -0
  446. package/dist/filters/classes/index.d.ts +1 -0
  447. package/dist/filters/classes/index.js +1 -0
  448. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
  449. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +6 -0
  450. package/dist/filters/helpers/common/getFilterColumnLabel.js +1 -1
  451. package/dist/filters/index.d.ts +1 -0
  452. package/dist/filters/index.js +1 -0
  453. package/dist/general/mix/index.d.ts +1 -0
  454. package/dist/general/mix/index.js +1 -0
  455. package/dist/general/mix/isNaNV2.d.ts +8 -0
  456. package/dist/general/mix/isNaNV2.js +11 -0
  457. package/dist/general/object/mergeDeep.js +6 -7
  458. package/dist/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
  459. package/dist/globalization/interfaces/{filters/II18nFilterBuilderInfoContainerSelection.js → II18nServiceTranslateOption.js} +0 -0
  460. package/dist/globalization/interfaces/IResourceI18n.d.ts +18 -14
  461. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
  462. package/dist/globalization/interfaces/{panel/II18nPanelSizeSubMenu.js → bucket_builder/II18nBucketBuilder.js} +0 -0
  463. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
  464. package/dist/globalization/interfaces/{q/II18nSlidebar.js → bucket_builder/II18nBucketBuilderBasicBucket.js} +0 -0
  465. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +29 -0
  466. package/dist/globalization/interfaces/{q/II18nSlidebarValueContainer.js → bucket_builder/II18nBucketBuilderCreateBucket.js} +0 -0
  467. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
  468. package/dist/globalization/interfaces/{q/II18nValueContainer.js → bucket_builder/II18nBucketBuilderCustomBucket.js} +0 -0
  469. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
  470. package/dist/globalization/interfaces/{q/II18nValueContainerSearchInput.js → bucket_builder/II18nBucketBuilderDeleteDialog.js} +0 -0
  471. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
  472. package/dist/globalization/interfaces/{q/II18nValueContainerSearchInputEnterValue.js → bucket_builder/II18nBucketBuilderEditDialog.js} +0 -0
  473. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
  474. package/dist/{qrvey/interfaces/IAggregate.js → globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js} +0 -0
  475. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
  476. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +1 -0
  477. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
  478. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +1 -0
  479. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
  480. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +1 -0
  481. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +12 -0
  482. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +1 -0
  483. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
  484. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +1 -0
  485. package/dist/globalization/interfaces/bucket_builder/index.d.ts +12 -0
  486. package/dist/globalization/interfaces/bucket_builder/index.js +12 -0
  487. package/dist/globalization/interfaces/common/II18nAgreggateLabels.d.ts +11 -0
  488. package/dist/globalization/interfaces/common/II18nAgreggateLabels.js +1 -0
  489. package/dist/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.d.ts → II18nChartInfoMessagesCrosstab.d.ts} +1 -1
  490. package/dist/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +1 -0
  491. package/dist/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.d.ts → II18nChartInfoMessagesDefault.d.ts} +1 -1
  492. package/dist/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +1 -0
  493. package/dist/{cjs/globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.d.ts → globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts} +1 -1
  494. package/dist/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +1 -0
  495. package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
  496. package/dist/globalization/interfaces/common/II18nColumnProperties.js +1 -0
  497. package/dist/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
  498. package/dist/globalization/interfaces/common/II18nColumnTypes.js +1 -0
  499. package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
  500. package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.js +1 -0
  501. package/dist/globalization/interfaces/common/II18nCommon.d.ts +14 -6
  502. package/dist/globalization/interfaces/common/index.d.ts +8 -0
  503. package/dist/globalization/interfaces/common/index.js +8 -0
  504. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
  505. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.js +1 -0
  506. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
  507. package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +1 -0
  508. package/dist/globalization/interfaces/cross_tabs/index.d.ts +1 -0
  509. package/dist/globalization/interfaces/cross_tabs/index.js +1 -0
  510. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +16 -4
  511. package/dist/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
  512. package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
  513. package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +1 -0
  514. package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
  515. package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
  516. package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.js +1 -0
  517. package/dist/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
  518. package/dist/globalization/interfaces/filters/II18nFilterDisplay.js +1 -0
  519. package/dist/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
  520. package/dist/globalization/interfaces/filters/II18nFilterOperator.js +1 -0
  521. package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
  522. package/dist/globalization/interfaces/filters/II18nFilterPanel.js +1 -0
  523. package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
  524. package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.js +1 -0
  525. package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
  526. package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +1 -0
  527. package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
  528. package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +1 -0
  529. package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
  530. package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +1 -0
  531. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTitle.d.ts +10 -0
  532. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTitle.js +1 -0
  533. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
  534. package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +1 -0
  535. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
  536. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +1 -0
  537. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
  538. package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +1 -0
  539. package/dist/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
  540. package/dist/globalization/interfaces/filters/II18nFilterScopes.js +1 -0
  541. package/dist/globalization/interfaces/filters/II18nFilterValidator.d.ts +23 -0
  542. package/dist/globalization/interfaces/filters/II18nFilterValidator.js +1 -0
  543. package/dist/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
  544. package/dist/globalization/interfaces/filters/II18nRankingContainer.js +1 -0
  545. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
  546. package/dist/globalization/interfaces/filters/II18nRelativeContainer.js +1 -0
  547. package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
  548. package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.js +1 -0
  549. package/dist/globalization/interfaces/filters/II18nSlidebar.d.ts +7 -0
  550. package/dist/globalization/interfaces/filters/II18nSlidebar.js +1 -0
  551. package/dist/{cjs/globalization/interfaces/q → globalization/interfaces/filters}/II18nValueContainer.d.ts +2 -0
  552. package/dist/globalization/interfaces/filters/II18nValueContainer.js +1 -0
  553. package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +6 -0
  554. package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.js +1 -0
  555. package/dist/globalization/interfaces/filters/index.d.ts +22 -2
  556. package/dist/globalization/interfaces/filters/index.js +22 -2
  557. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilder.d.ts +12 -0
  558. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilder.js +1 -0
  559. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +28 -0
  560. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.js +1 -0
  561. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +7 -0
  562. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.js +1 -0
  563. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.d.ts +7 -0
  564. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.js +1 -0
  565. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +5 -0
  566. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.js +1 -0
  567. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +9 -0
  568. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.js +1 -0
  569. package/dist/globalization/interfaces/formula_builder/index.d.ts +6 -0
  570. package/dist/globalization/interfaces/formula_builder/index.js +6 -0
  571. package/dist/globalization/interfaces/index.d.ts +6 -1
  572. package/dist/globalization/interfaces/index.js +6 -1
  573. package/dist/globalization/interfaces/panel/II18nPanel.d.ts +16 -2
  574. package/dist/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
  575. package/dist/globalization/interfaces/panel/II18nPanelEmbed.js +1 -0
  576. package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +9 -0
  577. package/dist/globalization/interfaces/panel/II18nPanelErrors.js +1 -0
  578. package/dist/globalization/interfaces/panel/II18nPanelMenu.d.ts +7 -0
  579. package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
  580. package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +1 -0
  581. package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
  582. package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.js +1 -0
  583. package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
  584. package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.js +1 -0
  585. package/dist/globalization/interfaces/panel/II18nPanelSummarySorting.d.ts +12 -0
  586. package/dist/globalization/interfaces/panel/II18nPanelSummarySorting.js +1 -0
  587. package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +19 -0
  588. package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.js +1 -0
  589. package/dist/globalization/interfaces/panel/index.d.ts +7 -1
  590. package/dist/globalization/interfaces/panel/index.js +7 -1
  591. package/dist/globalization/interfaces/table_charts/II18nTableCharts.d.ts +6 -2
  592. package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
  593. package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +1 -0
  594. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +5 -0
  595. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.js +1 -0
  596. package/dist/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +3 -0
  597. package/dist/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +1 -0
  598. package/dist/globalization/interfaces/table_charts/index.d.ts +6 -0
  599. package/dist/globalization/interfaces/table_charts/index.js +6 -0
  600. package/dist/globalization/labels/I18N_DEFAULT.js +12 -2
  601. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
  602. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +114 -0
  603. package/dist/globalization/labels/bucket_builder/index.d.ts +1 -0
  604. package/dist/globalization/labels/bucket_builder/index.js +1 -0
  605. package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +2 -0
  606. package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.js +12 -0
  607. package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
  608. package/dist/globalization/labels/common/I18N_COLUMN_LABEL.js +39 -0
  609. package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +2 -0
  610. package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +47 -0
  611. package/dist/globalization/labels/common/I18N_COMMON.d.ts +2 -24
  612. package/dist/globalization/labels/common/I18N_COMMON.js +13 -1
  613. package/dist/globalization/labels/common/index.d.ts +2 -0
  614. package/dist/globalization/labels/common/index.js +2 -0
  615. package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
  616. package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +11 -0
  617. package/dist/globalization/labels/cross_tabs/index.d.ts +1 -0
  618. package/dist/globalization/labels/cross_tabs/index.js +1 -0
  619. package/dist/globalization/labels/filters/I18N_FILTER.js +24 -2
  620. package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -12
  621. package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
  622. package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.js +6 -0
  623. package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
  624. package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.js +4 -0
  625. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
  626. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +47 -0
  627. package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
  628. package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +11 -0
  629. package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +2 -0
  630. package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +24 -0
  631. package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
  632. package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.js +4 -0
  633. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
  634. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +10 -0
  635. package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
  636. package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +6 -0
  637. package/dist/globalization/labels/filters/I18N_SLIDEBAR.d.ts +2 -0
  638. package/dist/globalization/labels/{q → filters}/I18N_SLIDEBAR.js +2 -3
  639. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
  640. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +10 -0
  641. package/dist/globalization/labels/filters/index.d.ts +9 -0
  642. package/dist/globalization/labels/filters/index.js +9 -0
  643. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +2 -0
  644. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +58 -0
  645. package/dist/globalization/labels/formula_builder/index.d.ts +1 -0
  646. package/dist/globalization/labels/formula_builder/index.js +1 -0
  647. package/dist/globalization/labels/index.d.ts +8 -6
  648. package/dist/globalization/labels/index.js +8 -6
  649. package/dist/globalization/labels/panel/I18N_PANEL.js +72 -4
  650. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -18
  651. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +25 -8
  652. package/dist/globalization/service/i18nextBuilder.d.ts +2 -1
  653. package/dist/globalization/service/i18nextBuilder.js +4 -3
  654. package/dist/index.d.ts +1 -0
  655. package/dist/index.js +1 -0
  656. package/dist/interfaces/Qrvey.Interface.d.ts +0 -10
  657. package/dist/interfaces/index.d.ts +1 -1
  658. package/dist/interfaces/index.js +1 -1
  659. package/dist/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
  660. package/dist/qrvey/constants/CALCULATION_INFO_LIST.js +1 -1
  661. package/dist/qrvey/constants/index.d.ts +1 -4
  662. package/dist/qrvey/constants/index.js +1 -4
  663. package/dist/{cjs/columns/interfaces/IColumnCalculationType.d.ts → qrvey/interfaces/ICalculationType.d.ts} +1 -1
  664. package/dist/qrvey/interfaces/ICalculationType.js +1 -0
  665. package/dist/qrvey/interfaces/index.d.ts +4 -0
  666. package/dist/qrvey/interfaces/index.js +4 -0
  667. package/dist/services/helpers/Request.js +1 -1
  668. package/package.json +5 -5
  669. package/src/{qrvey → charts}/constants/AGGREGATE.ts +0 -0
  670. package/src/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.ts +0 -0
  671. package/src/{qrvey → charts}/constants/AGGREGATE_INFO.ts +2 -2
  672. package/src/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.ts +0 -0
  673. package/src/charts/constants/AGGREGATE_LABEL.ts +11 -0
  674. package/src/charts/constants/index.ts +5 -0
  675. package/src/charts/index.ts +2 -0
  676. package/src/charts/interfaces/IAggregateAbbreviation.ts +3 -0
  677. package/src/charts/interfaces/IAggregateInfo.ts +11 -0
  678. package/src/charts/interfaces/IAggregateLabel.ts +3 -0
  679. package/src/{qrvey/interfaces/IAggregate.ts → charts/interfaces/IAggregateType.ts} +1 -1
  680. package/src/charts/interfaces/index.ts +4 -0
  681. package/src/columns/constants/COLUMN.ts +9 -9
  682. package/src/columns/constants/COLUMN_INFO.ts +25 -28
  683. package/src/columns/constants/COLUMN_INFO_LIST.ts +2 -6
  684. package/src/columns/constants/COLUMN_LABEL.ts +3 -7
  685. package/src/columns/constants/COLUMN_PROPERTY.ts +4 -4
  686. package/src/columns/constants/COMPLEX_COLUMN_PROPERTIES.ts +4 -4
  687. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY.ts +4 -4
  688. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.ts +4 -4
  689. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +4 -4
  690. package/src/columns/constants/NUMERICAL_COLUMN.ts +8 -0
  691. package/src/columns/constants/NUMERICAL_COLUMNS.ts +13 -0
  692. package/src/columns/constants/NUMERICAL_COLUMN_INFO.ts +16 -0
  693. package/src/columns/constants/NUMERICAL_COLUMN_INFO_LIST.ts +15 -0
  694. package/src/columns/constants/NUMERICAL_COLUMN_LABEL.ts +8 -0
  695. package/src/columns/constants/index.ts +6 -0
  696. package/src/columns/helpers/index.ts +1 -0
  697. package/src/columns/helpers/isNumericalColumn.ts +7 -0
  698. package/src/columns/interfaces/IColumn.ts +3 -3
  699. package/src/columns/interfaces/IColumnType.ts +2 -1
  700. package/src/columns/interfaces/INumericalColumnType.ts +4 -0
  701. package/src/columns/interfaces/index.ts +4 -2
  702. package/src/dates/adapters/mdyDateToDate.ts +18 -0
  703. package/src/dates/adapters/monthYearToDate.ts +21 -0
  704. package/src/dates/adapters/quarterYearToDate.ts +21 -0
  705. package/src/dates/adapters/weekYearToDate.ts +28 -0
  706. package/src/dates/adapters/yearToDate.ts +20 -0
  707. package/src/dates/constants/DATE_FORMAT.ts +23 -18
  708. package/src/dates/constants/DATE_REGULAR_EXPRESSION.ts +32 -5
  709. package/src/dates/constants/DATE_YEAR_QUARTERS_RANGE.ts +18 -0
  710. package/src/dates/constants/index.ts +1 -0
  711. package/src/dates/helpers/getDateByDateFormat.ts +34 -0
  712. package/src/dates/helpers/getDateFormatByProperty.ts +26 -0
  713. package/src/dates/helpers/getDateFormatRegularExpressionInArray.ts +45 -0
  714. package/src/dates/helpers/getSeparatorByDateFormat.ts +13 -0
  715. package/src/dates/helpers/getWeek.ts +21 -0
  716. package/src/dates/helpers/index.ts +6 -0
  717. package/src/dates/helpers/validateDate.ts +22 -0
  718. package/src/dates/helpers/validateDateByDateFormat.ts +25 -0
  719. package/src/dates/index.ts +1 -0
  720. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO.ts +7 -4
  721. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +11 -0
  722. package/src/dates/relative/constants/RELATIVE_CURSOR_LABEL.ts +5 -0
  723. package/src/dates/relative/constants/index.ts +2 -0
  724. package/src/dates/relative/interfaces/IRelativeCursorInfo.ts +6 -0
  725. package/src/dates/relative/interfaces/index.ts +1 -0
  726. package/src/filters/classes/FilterInputErrorHandler.ts +213 -0
  727. package/src/filters/classes/index.ts +1 -0
  728. package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +7 -0
  729. package/src/filters/helpers/common/getFilterColumnLabel.ts +1 -1
  730. package/src/filters/index.ts +1 -0
  731. package/src/general/mix/index.ts +1 -0
  732. package/src/general/mix/isNaNV2.ts +12 -0
  733. package/src/general/object/mergeDeep.ts +7 -8
  734. package/src/globalization/interfaces/II18nServiceTranslateOption.ts +4 -0
  735. package/src/globalization/interfaces/IResourceI18n.ts +18 -15
  736. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilder.ts +25 -0
  737. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.ts +15 -0
  738. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.ts +29 -0
  739. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.ts +15 -0
  740. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.ts +6 -0
  741. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.ts +6 -0
  742. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.ts +6 -0
  743. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.ts +5 -0
  744. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +7 -0
  745. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +5 -0
  746. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.ts +12 -0
  747. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.ts +6 -0
  748. package/src/globalization/interfaces/bucket_builder/index.ts +12 -0
  749. package/src/globalization/interfaces/common/II18nAgreggateLabels.ts +11 -0
  750. package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.ts → II18nChartInfoMessagesCrosstab.ts} +2 -2
  751. package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.ts → II18nChartInfoMessagesDefault.ts} +2 -2
  752. package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesTableChart.ts → II18nChartInfoMessagesTableChart.ts} +2 -2
  753. package/src/globalization/interfaces/common/II18nColumnProperties.ts +52 -0
  754. package/src/globalization/interfaces/common/II18nColumnTypes.ts +42 -0
  755. package/src/globalization/interfaces/common/II18nColumnTypesSuffixes.ts +6 -0
  756. package/src/globalization/interfaces/common/II18nCommon.ts +14 -6
  757. package/src/globalization/interfaces/common/index.ts +10 -0
  758. package/src/globalization/interfaces/cross_tabs/II18nCrossTabs.ts +9 -0
  759. package/src/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.ts +5 -0
  760. package/src/globalization/interfaces/cross_tabs/index.ts +1 -0
  761. package/src/globalization/interfaces/filters/II18nFilter.ts +16 -2
  762. package/src/globalization/interfaces/filters/II18nFilterBuilder.ts +4 -6
  763. package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +0 -1
  764. package/src/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.ts +14 -0
  765. package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.ts +2 -3
  766. package/src/globalization/interfaces/filters/II18nFilterBuilderScopes.ts +10 -0
  767. package/src/globalization/interfaces/filters/II18nFilterDisplay.ts +6 -0
  768. package/src/globalization/interfaces/filters/II18nFilterOperator.ts +4 -0
  769. package/src/globalization/interfaces/filters/II18nFilterPanel.ts +18 -0
  770. package/src/globalization/interfaces/filters/II18nFilterPanelCardAction.ts +6 -0
  771. package/src/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.ts +6 -0
  772. package/src/globalization/interfaces/filters/II18nFilterPanelEmptyState.ts +4 -0
  773. package/src/globalization/interfaces/filters/II18nFilterPanelHeaderSection.ts +9 -0
  774. package/src/globalization/interfaces/filters/II18nFilterPanelScopeTitle.ts +10 -0
  775. package/src/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.ts +7 -0
  776. package/src/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.ts +5 -0
  777. package/src/globalization/interfaces/filters/II18nFilterPanelSettingsSection.ts +10 -0
  778. package/src/globalization/interfaces/filters/II18nFilterScopes.ts +10 -0
  779. package/src/globalization/interfaces/filters/II18nFilterValidator.ts +23 -0
  780. package/src/globalization/interfaces/filters/II18nRankingContainer.ts +4 -0
  781. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +11 -0
  782. package/src/globalization/interfaces/filters/II18nRelativeContainerCursor.ts +5 -0
  783. package/src/globalization/interfaces/filters/II18nSlidebar.ts +7 -0
  784. package/src/globalization/interfaces/{q → filters}/II18nValueContainer.ts +2 -0
  785. package/src/globalization/interfaces/filters/II18nValueContainerSearchInput.ts +6 -0
  786. package/src/globalization/interfaces/filters/index.ts +25 -2
  787. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilder.ts +13 -0
  788. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.ts +28 -0
  789. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.ts +7 -0
  790. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.ts +7 -0
  791. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +5 -0
  792. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.ts +9 -0
  793. package/src/globalization/interfaces/formula_builder/index.ts +6 -0
  794. package/src/globalization/interfaces/index.ts +6 -1
  795. package/src/globalization/interfaces/panel/II18nPanel.ts +16 -3
  796. package/src/globalization/interfaces/panel/II18nPanelEmbed.ts +7 -0
  797. package/src/globalization/interfaces/panel/II18nPanelErrors.ts +9 -0
  798. package/src/globalization/interfaces/panel/II18nPanelMenu.ts +7 -0
  799. package/src/globalization/interfaces/panel/II18nPanelSummaryDisplay.ts +5 -0
  800. package/src/globalization/interfaces/panel/II18nPanelSummaryFilter.ts +5 -0
  801. package/src/globalization/interfaces/panel/II18nPanelSummaryGroup.ts +7 -0
  802. package/src/globalization/interfaces/panel/II18nPanelSummarySorting.ts +12 -0
  803. package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +19 -0
  804. package/src/globalization/interfaces/panel/index.ts +7 -1
  805. package/src/globalization/interfaces/table_charts/II18nTableCharts.ts +7 -3
  806. package/src/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.ts +8 -0
  807. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +5 -0
  808. package/src/globalization/interfaces/table_charts/II18nTableChartsSort.ts +3 -0
  809. package/src/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.ts +1 -0
  810. package/src/globalization/interfaces/table_charts/index.ts +6 -0
  811. package/src/globalization/labels/I18N_DEFAULT.ts +12 -2
  812. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +116 -0
  813. package/src/globalization/labels/bucket_builder/index.ts +1 -0
  814. package/src/globalization/labels/columns/I18N_COLUMN.ts +1 -1
  815. package/src/globalization/labels/common/I18N_AGGREGATE_LABEL.ts +14 -0
  816. package/src/globalization/labels/common/I18N_COLUMN_LABEL.ts +43 -0
  817. package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +57 -0
  818. package/src/globalization/labels/common/I18N_COMMON.ts +16 -2
  819. package/src/globalization/labels/common/index.ts +4 -0
  820. package/src/globalization/labels/cross_tabs/I18N_CROSS_TABS.ts +13 -0
  821. package/src/globalization/labels/cross_tabs/index.ts +1 -0
  822. package/src/globalization/labels/filters/I18N_FILTER.ts +25 -3
  823. package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +23 -12
  824. package/src/globalization/labels/filters/I18N_FILTER_DISPLAY.ts +8 -0
  825. package/src/globalization/labels/filters/I18N_FILTER_OPERATOR.ts +6 -0
  826. package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +49 -0
  827. package/src/globalization/labels/filters/I18N_FILTER_SCOPE.ts +13 -0
  828. package/src/globalization/labels/filters/I18N_FILTER_VALIDATOR.ts +27 -0
  829. package/src/globalization/labels/filters/I18N_RANKING_CONTAINER.ts +6 -0
  830. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +12 -0
  831. package/src/globalization/labels/filters/I18N_RELATIVE_CURSOR.ts +7 -0
  832. package/src/globalization/labels/filters/I18N_SLIDEBAR.ts +9 -0
  833. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +12 -0
  834. package/src/globalization/labels/filters/index.ts +10 -0
  835. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +60 -0
  836. package/src/globalization/labels/formula_builder/index.ts +1 -0
  837. package/src/globalization/labels/index.ts +8 -7
  838. package/src/globalization/labels/panel/I18N_PANEL.ts +72 -4
  839. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +28 -9
  840. package/src/globalization/service/i18nextBuilder.ts +6 -4
  841. package/src/index.ts +1 -0
  842. package/src/interfaces/Qrvey.Interface.ts +0 -11
  843. package/src/interfaces/index.ts +1 -1
  844. package/src/qrvey/constants/CALCULATION_INFO_LIST.ts +1 -1
  845. package/src/qrvey/constants/index.ts +1 -4
  846. package/src/{columns/interfaces/IColumnCalculationType.ts → qrvey/interfaces/ICalculationType.ts} +1 -1
  847. package/src/qrvey/interfaces/index.ts +5 -1
  848. package/src/services/helpers/Request.ts +1 -1
  849. package/dist/cjs/columns/interfaces/IColumnAggregateType.d.ts +0 -2
  850. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
  851. package/dist/cjs/globalization/interfaces/panel/II18nPanelSizeSubMenu.d.ts +0 -5
  852. package/dist/cjs/globalization/interfaces/q/II18nSlidebar.d.ts +0 -7
  853. package/dist/cjs/globalization/interfaces/q/II18nSlidebarValueContainer.d.ts +0 -3
  854. package/dist/cjs/globalization/interfaces/q/II18nValueContainerSearchInput.d.ts +0 -5
  855. package/dist/cjs/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
  856. package/dist/cjs/globalization/interfaces/q/index.d.ts +0 -5
  857. package/dist/cjs/globalization/labels/q/I18N_SLIDEBAR.d.ts +0 -2
  858. package/dist/cjs/globalization/labels/q/I18N_VALUE_CONTAINER.d.ts +0 -2
  859. package/dist/cjs/globalization/labels/q/index.d.ts +0 -2
  860. package/dist/cjs/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
  861. package/dist/cjs/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
  862. package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
  863. package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.js +0 -15
  864. package/dist/cjs/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
  865. package/dist/columns/interfaces/IColumnAggregateType.d.ts +0 -2
  866. package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
  867. package/dist/globalization/interfaces/panel/II18nPanelSizeSubMenu.d.ts +0 -5
  868. package/dist/globalization/interfaces/q/II18nSlidebar.d.ts +0 -7
  869. package/dist/globalization/interfaces/q/II18nSlidebarValueContainer.d.ts +0 -3
  870. package/dist/globalization/interfaces/q/II18nValueContainerSearchInput.d.ts +0 -5
  871. package/dist/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
  872. package/dist/globalization/interfaces/q/index.d.ts +0 -5
  873. package/dist/globalization/interfaces/q/index.js +0 -5
  874. package/dist/globalization/labels/q/I18N_SLIDEBAR.d.ts +0 -2
  875. package/dist/globalization/labels/q/I18N_VALUE_CONTAINER.d.ts +0 -2
  876. package/dist/globalization/labels/q/I18N_VALUE_CONTAINER.js +0 -10
  877. package/dist/globalization/labels/q/index.d.ts +0 -2
  878. package/dist/globalization/labels/q/index.js +0 -2
  879. package/dist/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
  880. package/dist/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
  881. package/dist/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
  882. package/dist/qrvey/constants/AGGREGATE_LABEL.js +0 -12
  883. package/dist/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
  884. package/src/columns/interfaces/IColumnAggregateType.ts +0 -3
  885. package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.ts +0 -4
  886. package/src/globalization/interfaces/panel/II18nPanelSizeSubMenu.ts +0 -5
  887. package/src/globalization/interfaces/q/II18nSlidebar.ts +0 -8
  888. package/src/globalization/interfaces/q/II18nSlidebarValueContainer.ts +0 -3
  889. package/src/globalization/interfaces/q/II18nValueContainerSearchInput.ts +0 -6
  890. package/src/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.ts +0 -5
  891. package/src/globalization/interfaces/q/index.ts +0 -5
  892. package/src/globalization/labels/q/I18N_SLIDEBAR.ts +0 -10
  893. package/src/globalization/labels/q/I18N_VALUE_CONTAINER.ts +0 -12
  894. package/src/globalization/labels/q/index.ts +0 -2
  895. package/src/qrvey/constants/AGGREGATE_LABEL.ts +0 -11
  896. package/src/qrvey/interfaces/IAggregateInfo.ts +0 -7
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-2*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-23*
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/getDateFormatRegularExpressionInArray.js
267
253
 
268
254
 
255
+ #### getDateFormatRegularExpressionInArray(dateFormat)
269
256
 
257
+ Gets an array of regular expressions by the given date format
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
+ | dateFormat | | the date format |   |
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
+ - an array of regular expressions
304
275
 
305
276
 
306
277
 
307
278
 
308
- ### dist/dates/relative/relative.js
279
+ ### dist/dates/helpers/getSeparatorByDateFormat.js
309
280
 
310
281
 
311
- #### resolveRelative(statements, clock)
282
+ #### getSeparatorByDateFormat(format)
312
283
 
313
- Resolve a list of relative statements according to operator
284
+ Gets the separator of the 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
+ | format | | 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
+ - a separator string
350
302
 
351
303
 
352
304
 
353
305
 
354
- ### dist/filters/adapters/FDToFlatUI.js
306
+ ### dist/dates/helpers/getDateFormatByProperty.js
355
307
 
356
308
 
357
- #### FDToFlatUI(filterData, datasetsInfo)
309
+ #### getDateFormatByProperty(property)
358
310
 
359
- Generates a Flattened UI filter structure from Filter Data structure.
311
+ Gets the date format by the given property
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
+ | property | | The Column Property | &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
+ - The date format
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,18 +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/adaptFilterValues.js
641
599
 
642
600
 
643
- #### adaptFilterValues(filter)
601
+ #### convertRelativeToAbsolute(args)
644
602
 
645
- [TODO: For 2022, eliminate this adapter]
646
- Gets an adapted filter value array. Validates the enabled property and sets
603
+ Returns a range object (date) from a group of statement params
647
604
 
648
605
 
649
606
 
@@ -652,25 +609,45 @@ Gets an adapted filter value array. Validates the enabled property and sets
652
609
 
653
610
  | Name | Type | Description | |
654
611
  | ---- | ---- | ----------- | -------- |
655
- | filter | | The filter | &nbsp; |
612
+ | args | `RelativeToAbsoluteStruct` | | &nbsp; |
613
+
614
+
656
615
 
657
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
+ ```
658
635
 
659
636
 
660
637
  ##### Returns
661
638
 
662
639
 
663
- - A new value array with the filled properties.
640
+ - `string`
664
641
 
665
642
 
666
643
 
667
644
 
668
- ### dist/filters/adapters/adaptFilterData.js
645
+ ### dist/dates/relative/relative.js
669
646
 
670
647
 
671
- #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
648
+ #### resolveRelative(statements, clock)
672
649
 
673
- Checks and adapts the v2.0 Filter Data Structure to the v2.1
650
+ Resolve a list of relative statements according to operator
674
651
 
675
652
 
676
653
 
@@ -679,27 +656,44 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
679
656
 
680
657
  | Name | Type | Description | |
681
658
  | ---- | ---- | ----------- | -------- |
682
- | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
683
- | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
684
- | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
659
+ | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
660
+ | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
661
+
662
+
663
+
664
+
665
+ ##### Examples
685
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
+ }
686
677
 
678
+ Output:
679
+ { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
680
+ ```
687
681
 
688
682
 
689
683
  ##### Returns
690
684
 
691
685
 
692
- - A new filter data structure v2.1
686
+ - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
693
687
 
694
688
 
695
689
 
696
690
 
697
- ### dist/filters/adapters/flatUIToFD.js
691
+ ### dist/filters/adapters/FDToFlatUI.js
698
692
 
699
693
 
700
- #### flatUIToFD(uFilters, version)
694
+ #### FDToFlatUI(filterData, datasetsInfo)
701
695
 
702
- Generates a filter data structure from the flatttened UI filters.
696
+ Generates a Flattened UI filter structure from Filter Data structure.
703
697
 
704
698
 
705
699
 
@@ -708,8 +702,8 @@ Generates a filter data structure from the flatttened UI filters.
708
702
 
709
703
  | Name | Type | Description | |
710
704
  | ---- | ---- | ----------- | -------- |
711
- | uFilters | | Array of flattened filters from UI | &nbsp; |
712
- | version | | Tag for the version of the filter data structure | &nbsp; |
705
+ | filterData | | The filter data object. | &nbsp; |
706
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
713
707
 
714
708
 
715
709
 
@@ -717,14 +711,13 @@ Generates a filter data structure from the flatttened UI filters.
717
711
  ##### Returns
718
712
 
719
713
 
720
- - a Filter Data.
714
+ - a flattened UI filters array
721
715
 
722
716
 
723
717
 
724
- #### buildScopes(fbFilters)
718
+ #### FD21ToFlatUI(scopes, datasetsInfo)
725
719
 
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
720
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
728
721
 
729
722
 
730
723
 
@@ -733,7 +726,8 @@ Also, adds and organizes filters by datasets
733
726
 
734
727
  | Name | Type | Description | |
735
728
  | ---- | ---- | ----------- | -------- |
736
- | fbFilters | | Array of flat filters from UI | &nbsp; |
729
+ | scopes | | The filter scope section | &nbsp; |
730
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
737
731
 
738
732
 
739
733
 
@@ -741,13 +735,17 @@ Also, adds and organizes filters by datasets
741
735
  ##### Returns
742
736
 
743
737
 
744
- - an array of scopes structure.
738
+ - a flattened UI filters array
745
739
 
746
740
 
747
741
 
748
- #### buildScope(uFilter)
749
742
 
750
- Gets an scope structure for the filter data
743
+ ### dist/filters/adapters/FDToLogic.js
744
+
745
+
746
+ #### FDToLogic(filterData)
747
+
748
+ Generates a Filter Logic structure from Filter Data structure.
751
749
 
752
750
 
753
751
 
@@ -756,7 +754,7 @@ Gets an scope structure for the filter data
756
754
 
757
755
  | Name | Type | Description | |
758
756
  | ---- | ---- | ----------- | -------- |
759
- | uFilter | | UI structure filter | &nbsp; |
757
+ | filterData | | The filter data object. | &nbsp; |
760
758
 
761
759
 
762
760
 
@@ -764,13 +762,13 @@ Gets an scope structure for the filter data
764
762
  ##### Returns
765
763
 
766
764
 
767
- - an scope structure
765
+ - a filter logic array
768
766
 
769
767
 
770
768
 
771
- #### buildDataset(uFilter)
769
+ #### getLogicBodyFromFD21(filterData)
772
770
 
773
- Gets an dataset structure for the filter data
771
+ Gets the logic body
774
772
 
775
773
 
776
774
 
@@ -779,7 +777,7 @@ Gets an dataset structure for the filter data
779
777
 
780
778
  | Name | Type | Description | |
781
779
  | ---- | ---- | ----------- | -------- |
782
- | uFilter | | a UI structure filter | &nbsp; |
780
+ | filterData | | The filter data object | &nbsp; |
783
781
 
784
782
 
785
783
 
@@ -787,13 +785,17 @@ Gets an dataset structure for the filter data
787
785
  ##### Returns
788
786
 
789
787
 
790
- - an dataset structure
788
+ - a filter logic array
791
789
 
792
790
 
793
791
 
794
- #### buildFilter(uFilter)
795
792
 
796
- Gets an filter structure for the filter data
793
+ ### dist/filters/adapters/FDToUI.js
794
+
795
+
796
+ #### FDToUI(filterData, datasetsInfo)
797
+
798
+ Generates a UI filter structure from Filter Data structure.
797
799
 
798
800
 
799
801
 
@@ -802,7 +804,8 @@ Gets an filter structure for the filter data
802
804
 
803
805
  | Name | Type | Description | |
804
806
  | ---- | ---- | ----------- | -------- |
805
- | uFilter | | a UI structure filter | &nbsp; |
807
+ | filterData | | The filter data object. | &nbsp; |
808
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
806
809
 
807
810
 
808
811
 
@@ -810,17 +813,13 @@ Gets an filter structure for the filter data
810
813
  ##### Returns
811
814
 
812
815
 
813
- - an filter structure
814
-
815
-
816
-
816
+ - a UI Filters structure
817
817
 
818
- ### dist/filters/adapters/flatUIToLogic.js
819
818
 
820
819
 
821
- #### flatUIToLogic(uFilter)
820
+ #### FD21ToUI(scopes, section, version, datasetsInfo)
822
821
 
823
- Generates a Logic structure from flattened UI filters
822
+ Generates a UI filter Structure from the Filter Data structure v2.1
824
823
 
825
824
 
826
825
 
@@ -829,7 +828,10 @@ Generates a Logic structure from flattened UI filters
829
828
 
830
829
  | Name | Type | Description | |
831
830
  | ---- | ---- | ----------- | -------- |
832
- | uFilter | | Array of flat filters from UI | &nbsp; |
831
+ | scopes | | The filter scope section | &nbsp; |
832
+ | section | | The filter section. | &nbsp; |
833
+ | version | | The version of the filter structure | &nbsp; |
834
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
833
835
 
834
836
 
835
837
 
@@ -837,17 +839,17 @@ Generates a Logic structure from flattened UI filters
837
839
  ##### Returns
838
840
 
839
841
 
840
- - The logic structure
842
+ - a UI filter Structure
841
843
 
842
844
 
843
845
 
844
846
 
845
- ### dist/filters/adapters/flatUIToOldLogic.js
847
+ ### dist/filters/adapters/UIToFD.js
846
848
 
847
849
 
848
- #### flatUIToOldLogic(uFilters)
850
+ #### UIToFD(filterData)
849
851
 
850
- Generates a Logic structure from flattened UI filters
852
+ Generates a Filter Data Structure structure from UI Filter Data structure.
851
853
 
852
854
 
853
855
 
@@ -856,7 +858,7 @@ Generates a Logic structure from flattened UI filters
856
858
 
857
859
  | Name | Type | Description | |
858
860
  | ---- | ---- | ----------- | -------- |
859
- | uFilters | | Array of flat filters from UI | &nbsp; |
861
+ | filterData | | The UI filter data object. | &nbsp; |
860
862
 
861
863
 
862
864
 
@@ -864,17 +866,13 @@ Generates a Logic structure from flattened UI filters
864
866
  ##### Returns
865
867
 
866
868
 
867
- - The logic structure
868
-
869
-
870
-
869
+ - a Filter Data structure
871
870
 
872
- ### dist/filters/adapters/flatUIToUI.js
873
871
 
874
872
 
875
- #### flatUIToUI(uFilters, version)
873
+ #### UI21ToFD(uFilterData, version)
876
874
 
877
- Generates a UI filter data structure from the flatttened UI filters.
875
+ Builds the Fitler Data structure from UI filter data
878
876
 
879
877
 
880
878
 
@@ -883,8 +881,8 @@ Generates a UI filter data structure from the flatttened UI filters.
883
881
 
884
882
  | Name | Type | Description | |
885
883
  | ---- | ---- | ----------- | -------- |
886
- | uFilters | | Array of flattened filters from UI | &nbsp; |
887
- | version | | Tag for the version of the filter data structure | &nbsp; |
884
+ | uFilterData | | The UI filter Data object | &nbsp; |
885
+ | version | | the version of the structure | &nbsp; |
888
886
 
889
887
 
890
888
 
@@ -892,14 +890,17 @@ Generates a UI filter data structure from the flatttened UI filters.
892
890
  ##### Returns
893
891
 
894
892
 
895
- - a UI Filter Data.
893
+ -
896
894
 
897
895
 
898
896
 
899
- #### buildScopes(fbFilters)
900
897
 
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
898
+ ### dist/filters/adapters/UIToFlatUI.js
899
+
900
+
901
+ #### UIToFlatUI(filterData, datasetsInfo)
902
+
903
+ Generates a Flattened UI filter structure from UI Filter Data structure.
903
904
 
904
905
 
905
906
 
@@ -908,7 +909,8 @@ Also, adds and organizes filters by datasets
908
909
 
909
910
  | Name | Type | Description | |
910
911
  | ---- | ---- | ----------- | -------- |
911
- | fbFilters | | Array of flat filters from UI | &nbsp; |
912
+ | filterData | | The UI filter data object. | &nbsp; |
913
+ | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
912
914
 
913
915
 
914
916
 
@@ -916,13 +918,13 @@ Also, adds and organizes filters by datasets
916
918
  ##### Returns
917
919
 
918
920
 
919
- - an array of scopes structure.
921
+ - a flattened UI filters array
920
922
 
921
923
 
922
924
 
923
- #### buildScope(uFilter)
925
+ #### UI21ToFlatUI(scopes)
924
926
 
925
- Gets an scope structure for the UI filter data
927
+ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
926
928
 
927
929
 
928
930
 
@@ -931,7 +933,7 @@ Gets an scope structure for the UI filter data
931
933
 
932
934
  | Name | Type | Description | |
933
935
  | ---- | ---- | ----------- | -------- |
934
- | uFilter | | UI structure filter | &nbsp; |
936
+ | scopes | | The filter scope section | &nbsp; |
935
937
 
936
938
 
937
939
 
@@ -939,13 +941,18 @@ Gets an scope structure for the UI filter data
939
941
  ##### Returns
940
942
 
941
943
 
942
- - an scope structure
944
+ - a flattened UI filters array
943
945
 
944
946
 
945
947
 
946
- #### buildDataset(uFilter)
947
948
 
948
- Gets an dataset structure for the UI filter data
949
+ ### dist/filters/adapters/adaptDateGroupingProperty.js
950
+
951
+
952
+ #### adaptDateGroupingProperty(property)
953
+
954
+ [TODO: For 2022, eliminate this adapter]
955
+ Get the new property base on the old date grouping properties
949
956
 
950
957
 
951
958
 
@@ -954,7 +961,7 @@ Gets an dataset structure for the UI filter data
954
961
 
955
962
  | Name | Type | Description | |
956
963
  | ---- | ---- | ----------- | -------- |
957
- | uFilter | | a UI structure filter | &nbsp; |
964
+ | property | | | &nbsp; |
958
965
 
959
966
 
960
967
 
@@ -962,13 +969,17 @@ Gets an dataset structure for the UI filter data
962
969
  ##### Returns
963
970
 
964
971
 
965
- - an dataset structure
972
+ -
966
973
 
967
974
 
968
975
 
969
- #### buildFilter(uFilter)
970
976
 
971
- Gets an filter structure for the UI filter data
977
+ ### dist/filters/adapters/adaptFilterData.js
978
+
979
+
980
+ #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
981
+
982
+ Checks and adapts the v2.0 Filter Data Structure to the v2.1
972
983
 
973
984
 
974
985
 
@@ -977,7 +988,9 @@ Gets an filter structure for the UI filter data
977
988
 
978
989
  | Name | Type | Description | |
979
990
  | ---- | ---- | ----------- | -------- |
980
- | uFilter | | a UI structure filter | &nbsp; |
991
+ | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
992
+ | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
993
+ | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
981
994
 
982
995
 
983
996
 
@@ -985,17 +998,17 @@ Gets an filter structure for the UI filter data
985
998
  ##### Returns
986
999
 
987
1000
 
988
- - an filter structure
1001
+ - A new filter data structure v2.1
989
1002
 
990
1003
 
991
1004
 
992
1005
 
993
- ### dist/filters/adapters/logicToFD.js
1006
+ ### dist/filters/adapters/flatUIToFD.js
994
1007
 
995
1008
 
996
- #### logicToFD(filterData, version)
1009
+ #### flatUIToFD(uFilters, version)
997
1010
 
998
- Generates a filter data structure from the old logic structure (v2.0).
1011
+ Generates a filter data structure from the flatttened UI filters.
999
1012
 
1000
1013
 
1001
1014
 
@@ -1004,7 +1017,7 @@ Generates a filter data structure from the old logic structure (v2.0).
1004
1017
 
1005
1018
  | Name | Type | Description | |
1006
1019
  | ---- | ---- | ----------- | -------- |
1007
- | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1020
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1008
1021
  | version | | Tag for the version of the filter data structure | &nbsp; |
1009
1022
 
1010
1023
 
@@ -1017,13 +1030,10 @@ Generates a filter data structure from the old logic structure (v2.0).
1017
1030
 
1018
1031
 
1019
1032
 
1033
+ #### buildScopes(fbFilters)
1020
1034
 
1021
- ### dist/filters/adapters/logicToFlatUI.js
1022
-
1023
-
1024
- #### logicToFlatUI(logics)
1025
-
1026
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1035
+ Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
1036
+ Also, adds and organizes filters by datasets
1027
1037
 
1028
1038
 
1029
1039
 
@@ -1032,7 +1042,7 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1032
1042
 
1033
1043
  | Name | Type | Description | |
1034
1044
  | ---- | ---- | ----------- | -------- |
1035
- | logics | | The old logic structure (v2.0) | &nbsp; |
1045
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1036
1046
 
1037
1047
 
1038
1048
 
@@ -1040,13 +1050,13 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1040
1050
  ##### Returns
1041
1051
 
1042
1052
 
1043
- - The Flattened UI Filters array
1053
+ - an array of scopes structure.
1044
1054
 
1045
1055
 
1046
1056
 
1047
- #### getFilter(filters, filter, getIndex)
1057
+ #### buildScope(uFilter)
1048
1058
 
1049
- Get the filter or the index of the given array, validating an old filter structure.
1059
+ Gets an scope structure for the filter data
1050
1060
 
1051
1061
 
1052
1062
 
@@ -1055,9 +1065,7 @@ 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
+ | uFilter | | UI structure filter | &nbsp; |
1061
1069
 
1062
1070
 
1063
1071
 
@@ -1065,13 +1073,13 @@ Get the filter or the index of the given array, validating an old filter structu
1065
1073
  ##### Returns
1066
1074
 
1067
1075
 
1068
- - the index or the UI filter object
1076
+ - an scope structure
1069
1077
 
1070
1078
 
1071
1079
 
1072
- #### refineRankingValues(values, uiValues)
1080
+ #### buildDataset(uFilter)
1073
1081
 
1074
- Refines the values of the Ranking column type.
1082
+ Gets an dataset structure for the filter data
1075
1083
 
1076
1084
 
1077
1085
 
@@ -1080,8 +1088,7 @@ Refines the values of the Ranking column type.
1080
1088
 
1081
1089
  | Name | Type | Description | |
1082
1090
  | ---- | ---- | ----------- | -------- |
1083
- | values | | the Array of Ranking values | &nbsp; |
1084
- | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1091
+ | uFilter | | a UI structure filter | &nbsp; |
1085
1092
 
1086
1093
 
1087
1094
 
@@ -1089,17 +1096,13 @@ Refines the values of the Ranking column type.
1089
1096
  ##### Returns
1090
1097
 
1091
1098
 
1092
- - the array of Ranking values
1093
-
1094
-
1095
-
1099
+ - an dataset structure
1096
1100
 
1097
- ### dist/filters/adapters/logicToUI.js
1098
1101
 
1099
1102
 
1100
- #### logicToUI(uFilters, datasetsInfo)
1103
+ #### buildFilter(uFilter)
1101
1104
 
1102
- Generates a UI filter structure from the old logic structure (v2.0).
1105
+ Gets an filter structure for the filter data
1103
1106
 
1104
1107
 
1105
1108
 
@@ -1108,8 +1111,7 @@ Generates a UI filter structure from the old logic structure (v2.0).
1108
1111
 
1109
1112
  | Name | Type | Description | |
1110
1113
  | ---- | ---- | ----------- | -------- |
1111
- | uFilters | | Array of filters from old logic structure | &nbsp; |
1112
- | datasetsInfo | | Collection of datasets information | &nbsp; |
1114
+ | uFilter | | a UI structure filter | &nbsp; |
1113
1115
 
1114
1116
 
1115
1117
 
@@ -1117,17 +1119,18 @@ Generates a UI filter structure from the old logic structure (v2.0).
1117
1119
  ##### Returns
1118
1120
 
1119
1121
 
1120
- - a UI Filter Data.
1122
+ - an filter structure
1121
1123
 
1122
1124
 
1123
1125
 
1124
1126
 
1125
- ### dist/filters/adapters/transformFilters.js
1127
+ ### dist/filters/adapters/adaptFilterValues.js
1126
1128
 
1127
1129
 
1128
- #### transformFilters(oldFiltersObj, section)
1130
+ #### adaptFilterValues(filter)
1129
1131
 
1130
- Transform the old filters structure into the new one
1132
+ [TODO: For 2022, eliminate this adapter]
1133
+ Gets an adapted filter value array. Validates the enabled property and sets
1131
1134
 
1132
1135
 
1133
1136
 
@@ -1136,77 +1139,25 @@ Transform the old filters structure into the new one
1136
1139
 
1137
1140
  | Name | Type | Description | |
1138
1141
  | ---- | ---- | ----------- | -------- |
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; |
1141
-
1142
-
1143
-
1144
-
1145
- ##### Examples
1146
-
1147
- ```javascript
1142
+ | filter | | The filter | &nbsp; |
1148
1143
 
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
- };
1191
1144
 
1192
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1193
- ```
1194
1145
 
1195
1146
 
1196
1147
  ##### Returns
1197
1148
 
1198
1149
 
1199
- - `Object` an object with the new filters structure
1150
+ - A new value array with the filled properties.
1200
1151
 
1201
1152
 
1202
1153
 
1203
1154
 
1204
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
1155
+ ### dist/filters/adapters/flatUIToLogic.js
1205
1156
 
1206
1157
 
1207
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1158
+ #### flatUIToLogic(uFilter)
1208
1159
 
1209
- [TODO: Make a proper description for this function]
1160
+ Generates a Logic structure from flattened UI filters
1210
1161
 
1211
1162
 
1212
1163
 
@@ -1215,9 +1166,7 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1215
1166
 
1216
1167
  | Name | Type | Description | |
1217
1168
  | ---- | ---- | ----------- | -------- |
1218
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1219
- | scopes | | | &nbsp; |
1220
- | currentScope | | | &nbsp; |
1169
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1221
1170
 
1222
1171
 
1223
1172
 
@@ -1225,17 +1174,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1225
1174
  ##### Returns
1226
1175
 
1227
1176
 
1228
- -
1177
+ - The logic structure
1229
1178
 
1230
1179
 
1231
1180
 
1232
1181
 
1233
- ### dist/filters/helpers/getAvailableScopes.js
1182
+ ### dist/filters/adapters/flatUIToOldLogic.js
1234
1183
 
1235
1184
 
1236
- #### getAvailableScopes(config)
1185
+ #### flatUIToOldLogic(uFilters)
1237
1186
 
1238
- Gets Scopes/Scope IDs by given IDs
1187
+ Generates a Logic structure from flattened UI filters
1239
1188
 
1240
1189
 
1241
1190
 
@@ -1244,7 +1193,7 @@ Gets Scopes/Scope IDs by given IDs
1244
1193
 
1245
1194
  | Name | Type | Description | |
1246
1195
  | ---- | ---- | ----------- | -------- |
1247
- | config | | given Differnts IDs in order set a available scope | &nbsp; |
1196
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1248
1197
 
1249
1198
 
1250
1199
 
@@ -1252,17 +1201,17 @@ Gets Scopes/Scope IDs by given IDs
1252
1201
  ##### Returns
1253
1202
 
1254
1203
 
1255
- - a Scopes/Scope IDs array
1204
+ - The logic structure
1256
1205
 
1257
1206
 
1258
1207
 
1259
1208
 
1260
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1209
+ ### dist/filters/adapters/flatUIToUI.js
1261
1210
 
1262
1211
 
1263
- #### getAvailableScopesIDsByConfig(config)
1212
+ #### flatUIToUI(uFilters, version)
1264
1213
 
1265
- Gets the Scopes IDS for the Available Scope function by any config
1214
+ Generates a UI filter data structure from the flatttened UI filters.
1266
1215
 
1267
1216
 
1268
1217
 
@@ -1271,7 +1220,8 @@ Gets the Scopes IDS for the Available Scope function by any config
1271
1220
 
1272
1221
  | Name | Type | Description | |
1273
1222
  | ---- | ---- | ----------- | -------- |
1274
- | config | | any config | &nbsp; |
1223
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1224
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1275
1225
 
1276
1226
 
1277
1227
 
@@ -1279,17 +1229,14 @@ Gets the Scopes IDS for the Available Scope function by any config
1279
1229
  ##### Returns
1280
1230
 
1281
1231
 
1282
- - a Available Scope IDS config
1283
-
1284
-
1285
-
1232
+ - a UI Filter Data.
1286
1233
 
1287
- ### dist/filters/helpers/getScopesByHierarchy.js
1288
1234
 
1289
1235
 
1290
- #### getScopesByHierarchy(scopes, currentScope)
1236
+ #### buildScopes(fbFilters)
1291
1237
 
1292
- [TODO: Make a description for this]
1238
+ Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
1239
+ Also, adds and organizes filters by datasets
1293
1240
 
1294
1241
 
1295
1242
 
@@ -1298,8 +1245,7 @@ Gets the Scopes IDS for the Available Scope function by any config
1298
1245
 
1299
1246
  | Name | Type | Description | |
1300
1247
  | ---- | ---- | ----------- | -------- |
1301
- | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1302
- | currentScope | | Current scope type | &nbsp; |
1248
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1303
1249
 
1304
1250
 
1305
1251
 
@@ -1307,17 +1253,13 @@ Gets the Scopes IDS for the Available Scope function by any config
1307
1253
  ##### Returns
1308
1254
 
1309
1255
 
1310
- - A new array of Scopes/Scope IDs
1311
-
1312
-
1313
-
1256
+ - an array of scopes structure.
1314
1257
 
1315
- ### dist/general/array/delete.js
1316
1258
 
1317
1259
 
1318
- #### ArrayDelete(array, index)
1260
+ #### buildScope(uFilter)
1319
1261
 
1320
- Inmutable Array Item deletion
1262
+ Gets an scope structure for the UI filter data
1321
1263
 
1322
1264
 
1323
1265
 
@@ -1326,8 +1268,7 @@ Inmutable Array Item deletion
1326
1268
 
1327
1269
  | Name | Type | Description | |
1328
1270
  | ---- | ---- | ----------- | -------- |
1329
- | array | `Array` | a collection of items to delete | &nbsp; |
1330
- | index | `Number` | the position of the item to delete | &nbsp; |
1271
+ | uFilter | | UI structure filter | &nbsp; |
1331
1272
 
1332
1273
 
1333
1274
 
@@ -1335,20 +1276,13 @@ Inmutable Array Item deletion
1335
1276
  ##### Returns
1336
1277
 
1337
1278
 
1338
- - a new Array or the given parameter when is empty or not an array
1339
-
1340
-
1341
-
1279
+ - an scope structure
1342
1280
 
1343
- ### dist/general/array/filterNestedTree.js
1344
1281
 
1345
1282
 
1346
- #### filterNestedTree(arr, childArrKey, condition)
1283
+ #### buildDataset(uFilter)
1347
1284
 
1348
- Filters a nested tree array by a custom condition on the last child node
1349
- - If the given arguments are not valid, the function returns the first argument.
1350
- - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1351
- - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1285
+ Gets an dataset structure for the UI filter data
1352
1286
 
1353
1287
 
1354
1288
 
@@ -1357,9 +1291,7 @@ Filters a nested tree array by a custom condition on the last child node
1357
1291
 
1358
1292
  | Name | Type | Description | |
1359
1293
  | ---- | ---- | ----------- | -------- |
1360
- | arr | | nested tree array | &nbsp; |
1361
- | childArrKey | | property representing the children array on the nested tree | &nbsp; |
1362
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
1294
+ | uFilter | | a UI structure filter | &nbsp; |
1363
1295
 
1364
1296
 
1365
1297
 
@@ -1367,17 +1299,13 @@ Filters a nested tree array by a custom condition on the last child node
1367
1299
  ##### Returns
1368
1300
 
1369
1301
 
1370
- - array filtered
1371
-
1372
-
1373
-
1302
+ - an dataset structure
1374
1303
 
1375
- ### dist/general/array/flattenDeep.js
1376
1304
 
1377
1305
 
1378
- #### flattenDeep(arr)
1306
+ #### buildFilter(uFilter)
1379
1307
 
1380
- Flat deeply an array
1308
+ Gets an filter structure for the UI filter data
1381
1309
 
1382
1310
 
1383
1311
 
@@ -1386,7 +1314,7 @@ Flat deeply an array
1386
1314
 
1387
1315
  | Name | Type | Description | |
1388
1316
  | ---- | ---- | ----------- | -------- |
1389
- | arr | | Array to flat deeply | &nbsp; |
1317
+ | uFilter | | a UI structure filter | &nbsp; |
1390
1318
 
1391
1319
 
1392
1320
 
@@ -1394,17 +1322,17 @@ Flat deeply an array
1394
1322
  ##### Returns
1395
1323
 
1396
1324
 
1397
- - flatten array
1325
+ - an filter structure
1398
1326
 
1399
1327
 
1400
1328
 
1401
1329
 
1402
- ### dist/general/array/getFirstIndexFromArray.js
1330
+ ### dist/filters/adapters/logicToFD.js
1403
1331
 
1404
1332
 
1405
- #### getFirstIndexFromArray(array, callback)
1333
+ #### logicToFD(filterData, version)
1406
1334
 
1407
- Gets the first index from the array by a callback condition
1335
+ Generates a filter data structure from the old logic structure (v2.0).
1408
1336
 
1409
1337
 
1410
1338
 
@@ -1413,8 +1341,8 @@ Gets the first index from the array by a callback condition
1413
1341
 
1414
1342
  | Name | Type | Description | |
1415
1343
  | ---- | ---- | ----------- | -------- |
1416
- | array | | | &nbsp; |
1417
- | callback | | function callback | &nbsp; |
1344
+ | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1345
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1418
1346
 
1419
1347
 
1420
1348
 
@@ -1422,17 +1350,17 @@ Gets the first index from the array by a callback condition
1422
1350
  ##### Returns
1423
1351
 
1424
1352
 
1425
- - the first index of the array. -1 when the condition is not satisfied
1353
+ - a Filter Data.
1426
1354
 
1427
1355
 
1428
1356
 
1429
1357
 
1430
- ### dist/general/array/getLastIndexFromArray.js
1358
+ ### dist/filters/adapters/logicToFlatUI.js
1431
1359
 
1432
1360
 
1433
- #### getLastIndexFromArray(array, callback)
1361
+ #### logicToFlatUI(logics)
1434
1362
 
1435
- Gets the last index from the array by a callback condition
1363
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1436
1364
 
1437
1365
 
1438
1366
 
@@ -1441,8 +1369,7 @@ Gets the last index from the array by a callback condition
1441
1369
 
1442
1370
  | Name | Type | Description | |
1443
1371
  | ---- | ---- | ----------- | -------- |
1444
- | array | | | &nbsp; |
1445
- | callback | | function callback | &nbsp; |
1372
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1446
1373
 
1447
1374
 
1448
1375
 
@@ -1450,17 +1377,13 @@ Gets the last index from the array by a callback condition
1450
1377
  ##### Returns
1451
1378
 
1452
1379
 
1453
- - the last index of the array. -1 when the condition is not satisfied
1454
-
1455
-
1456
-
1380
+ - The Flattened UI Filters array
1457
1381
 
1458
- ### dist/general/function/debounce.js
1459
1382
 
1460
1383
 
1461
- #### debounce(fn, time)
1384
+ #### getFilter(filters, filter, getIndex)
1462
1385
 
1463
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1386
+ Get the filter or the index of the given array, validating an old filter structure.
1464
1387
 
1465
1388
 
1466
1389
 
@@ -1469,8 +1392,9 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1469
1392
 
1470
1393
  | Name | Type | Description | |
1471
1394
  | ---- | ---- | ----------- | -------- |
1472
- | fn | `Function` | original Function | &nbsp; |
1473
- | time | `Number` | default 500ms | &nbsp; |
1395
+ | filters | | The array of UI filters | &nbsp; |
1396
+ | filter | | The old logic structure filter | &nbsp; |
1397
+ | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
1474
1398
 
1475
1399
 
1476
1400
 
@@ -1478,17 +1402,13 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1478
1402
  ##### Returns
1479
1403
 
1480
1404
 
1481
- - `Function` debounced functions
1482
-
1483
-
1484
-
1405
+ - the index or the UI filter object
1485
1406
 
1486
- ### dist/general/function/throttled.js
1487
1407
 
1488
1408
 
1489
- #### throttled(fn, time)
1409
+ #### refineRankingValues(values, uiValues)
1490
1410
 
1491
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1411
+ Refines the values of the Ranking column type.
1492
1412
 
1493
1413
 
1494
1414
 
@@ -1497,8 +1417,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1497
1417
 
1498
1418
  | Name | Type | Description | |
1499
1419
  | ---- | ---- | ----------- | -------- |
1500
- | fn | `Function` | original Function | &nbsp; |
1501
- | time | `Number` | default 500ms | &nbsp; |
1420
+ | values | | the Array of Ranking values | &nbsp; |
1421
+ | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1502
1422
 
1503
1423
 
1504
1424
 
@@ -1506,18 +1426,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1506
1426
  ##### Returns
1507
1427
 
1508
1428
 
1509
- - `Function` throttled function
1429
+ - the array of Ranking values
1510
1430
 
1511
1431
 
1512
1432
 
1513
1433
 
1514
- ### dist/general/object/cloneDeep.js
1434
+ ### dist/filters/adapters/logicToUI.js
1515
1435
 
1516
1436
 
1517
- #### cloneDeep(obj)
1437
+ #### logicToUI(uFilters, datasetsInfo)
1518
1438
 
1519
- A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
1520
- Not to use this function with inner objects and functions
1439
+ Generates a UI filter structure from the old logic structure (v2.0).
1521
1440
 
1522
1441
 
1523
1442
 
@@ -1526,7 +1445,8 @@ Not to use this function with inner objects and functions
1526
1445
 
1527
1446
  | Name | Type | Description | |
1528
1447
  | ---- | ---- | ----------- | -------- |
1529
- | obj | | The object | &nbsp; |
1448
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1449
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1530
1450
 
1531
1451
 
1532
1452
 
@@ -1534,21 +1454,17 @@ Not to use this function with inner objects and functions
1534
1454
  ##### Returns
1535
1455
 
1536
1456
 
1537
- - The new reference object or the given object if the parsing is incorrect or empty
1538
-
1457
+ - a UI Filter Data.
1539
1458
 
1540
1459
 
1541
1460
 
1542
- ### dist/general/object/get.js
1543
1461
 
1462
+ ### dist/filters/adapters/transformFilters.js
1544
1463
 
1545
- #### _get(baseObject, path, defaultValue)
1546
1464
 
1547
- Like lodash _.get.
1548
- Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
1465
+ #### transformFilters(oldFiltersObj, section)
1549
1466
 
1550
- Empty arrays and empty objects are returned but the defaultValue is not
1551
- Undefined and null values will return the defaultValue.
1467
+ Transform the old filters structure into the new one
1552
1468
 
1553
1469
 
1554
1470
 
@@ -1557,9 +1473,8 @@ Undefined and null values will return the defaultValue.
1557
1473
 
1558
1474
  | Name | Type | Description | |
1559
1475
  | ---- | ---- | ----------- | -------- |
1560
- | baseObject | | The object to query | &nbsp; |
1561
- | path | | The string path or collection of string paths of the property to get. | &nbsp; |
1562
- | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
1476
+ | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
1477
+ | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
1563
1478
 
1564
1479
 
1565
1480
 
@@ -1567,84 +1482,117 @@ Undefined and null values will return the defaultValue.
1567
1482
  ##### Examples
1568
1483
 
1569
1484
  ```javascript
1570
- // returns 'Hello'
1571
- _get({ item1: 'Hello', item2: 'World' }, 'item1')
1572
- ```
1573
- ```javascript
1574
- // returns 'A simple Hello'
1575
- _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
1576
- ```
1577
- ```javascript
1578
- // returns 'Hello Again'
1579
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
1580
- ```
1581
- ```javascript
1582
- // returns 'Hello 2'
1583
- _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
1584
- ```
1585
- ```javascript
1586
- // returns 'Hello Again'
1587
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
1485
+
1486
+ const oldPreferenceFilters = {
1487
+ "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
1488
+ "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
1489
+ "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
1490
+ "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
1491
+ "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
1492
+ "formulaId": null,
1493
+ "panelId": null,
1494
+ "values": [
1495
+ {
1496
+ "EQUALS": [
1497
+ {
1498
+ "id": "AK4M8UV2a0",
1499
+ "value": "A",
1500
+ "enabled": true,
1501
+ "imageUrl": null
1502
+ },
1503
+ {
1504
+ "id": "AK4M8UV2a1",
1505
+ "value": "B",
1506
+ "enabled": true,
1507
+ "imageUrl": null
1508
+ }
1509
+ ]
1510
+ }
1511
+ ],
1512
+ "bucketId": null,
1513
+ "text": "MC",
1514
+ "title": "MC",
1515
+ "type": "SINGLE_CHOICE",
1516
+ "qid": "AK4M8UV2",
1517
+ "dataset": {
1518
+ "sourceid": "xYOQAdpqT",
1519
+ "name": "Form All Questions",
1520
+ "qrveyid": "xYOQAdpqT",
1521
+ "text": "Form All Questions",
1522
+ "linkid": 0
1523
+ },
1524
+ "enabled": true,
1525
+ "linked": null
1526
+ }
1527
+ };
1528
+
1529
+ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1588
1530
  ```
1589
1531
 
1590
1532
 
1591
1533
  ##### Returns
1592
1534
 
1593
1535
 
1594
- - the resolved value.
1536
+ - `Object` an object with the new filters structure
1595
1537
 
1596
1538
 
1597
1539
 
1598
1540
 
1599
- ### dist/general/object/getAttribute.js
1541
+ ### dist/filters/classes/FilterInputErrorHandler.js
1600
1542
 
1601
1543
 
1602
- #### getAttribute(obj, key)
1544
+ #### new FilterInputErrorHandler()
1603
1545
 
1604
- Searchs for properties in different case styles such as: lower, upper, camel and pascal
1605
- - To optimize the searching, it is required a key in a snake_case style
1606
- - List of cases that do not match
1607
- -- From lower to snake case
1608
- -- From upper to snake case
1609
- -- From lower to camel case
1610
- -- From upper to camel case
1611
- -- From lower to pascal case
1612
- -- From upper to pascal case
1613
1546
 
1614
1547
 
1615
1548
 
1616
1549
 
1617
- ##### Parameters
1618
1550
 
1619
- | Name | Type | Description | |
1620
- | ---- | ---- | ----------- | -------- |
1621
- | obj | `object` | object to look for | &nbsp; |
1622
- | key | `string` | String attribute in snake_case style | &nbsp; |
1623
1551
 
1624
1552
 
1553
+ ##### Returns
1625
1554
 
1626
1555
 
1627
- ##### Examples
1556
+ - `Void`
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
+
1628
1579
 
1629
- ```javascript
1630
- getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1631
- ```
1632
1580
 
1633
1581
 
1634
1582
  ##### Returns
1635
1583
 
1636
1584
 
1637
- - `Void`
1585
+ -
1638
1586
 
1639
1587
 
1640
1588
 
1641
1589
 
1642
- ### dist/general/object/hasProperty.js
1590
+ ### dist/filters/helpers/getAvailableScopes.js
1643
1591
 
1644
1592
 
1645
- #### _hasProperty(obj, property)
1593
+ #### getAvailableScopes(config)
1646
1594
 
1647
- Use the hasOwnProperty in order to verify if the given property exists in the object.
1595
+ Gets Scopes/Scope IDs by given IDs
1648
1596
 
1649
1597
 
1650
1598
 
@@ -1653,38 +1601,52 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
1653
1601
 
1654
1602
  | Name | Type | Description | |
1655
1603
  | ---- | ---- | ----------- | -------- |
1656
- | obj | `object` | an object | &nbsp; |
1657
- | property | `string` | String to verify if exists in the object as property | &nbsp; |
1604
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
1658
1605
 
1659
1606
 
1660
1607
 
1661
1608
 
1662
- ##### Examples
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; |
1663
1632
 
1664
- ```javascript
1665
- const prop = 'prop2'
1666
- const obj1 = { prop1: 'hello', prop2: 'world'}
1667
- _hasProperty(ob1, prop1) // true
1668
1633
 
1669
- const obj2 = { prop1: 'hello world' }
1670
- _hasProperty(ob1, prop2) // false
1671
- ```
1672
1634
 
1673
1635
 
1674
1636
  ##### Returns
1675
1637
 
1676
1638
 
1677
- - True if the object has the given property; otherwise, false.
1639
+ - a Available Scope IDS config
1678
1640
 
1679
1641
 
1680
1642
 
1681
1643
 
1682
- ### dist/general/object/isObject.js
1644
+ ### dist/filters/helpers/getScopesByHierarchy.js
1683
1645
 
1684
1646
 
1685
- #### isObject(obj)
1647
+ #### getScopesByHierarchy(scopes, currentScope)
1686
1648
 
1687
- Checks if the given argument is an object type
1649
+ [TODO: Make a description for this]
1688
1650
 
1689
1651
 
1690
1652
 
@@ -1693,7 +1655,8 @@ Checks if the given argument is an object type
1693
1655
 
1694
1656
  | Name | Type | Description | |
1695
1657
  | ---- | ---- | ----------- | -------- |
1696
- | obj | | the variable to check | &nbsp; |
1658
+ | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1659
+ | currentScope | | Current scope type | &nbsp; |
1697
1660
 
1698
1661
 
1699
1662
 
@@ -1701,18 +1664,17 @@ Checks if the given argument is an object type
1701
1664
  ##### Returns
1702
1665
 
1703
1666
 
1704
- - True: It is an object; False: It is not.
1667
+ - A new array of Scopes/Scope IDs
1705
1668
 
1706
1669
 
1707
1670
 
1708
1671
 
1709
- ### dist/general/object/mapValues.js
1672
+ ### dist/general/array/delete.js
1710
1673
 
1711
1674
 
1712
- #### mapValues(baseObject, iteratee)
1675
+ #### ArrayDelete(array, index)
1713
1676
 
1714
- Invoke iteratee (function) for each object key-value pair
1715
- and return a mapped object
1677
+ Inmutable Array Item deletion
1716
1678
 
1717
1679
 
1718
1680
 
@@ -1721,8 +1683,8 @@ and return a mapped object
1721
1683
 
1722
1684
  | Name | Type | Description | |
1723
1685
  | ---- | ---- | ----------- | -------- |
1724
- | baseObject | `Object` | Base object. | &nbsp; |
1725
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
1686
+ | array | `Array` | a collection of items to delete | &nbsp; |
1687
+ | index | `Number` | the position of the item to delete | &nbsp; |
1726
1688
 
1727
1689
 
1728
1690
 
@@ -1730,18 +1692,20 @@ and return a mapped object
1730
1692
  ##### Returns
1731
1693
 
1732
1694
 
1733
- - `Object` New mapped object.
1695
+ - a new Array or the given parameter when is empty or not an array
1734
1696
 
1735
1697
 
1736
1698
 
1737
1699
 
1738
- ### dist/general/object/mergeDeep.js
1700
+ ### dist/general/array/filterNestedTree.js
1739
1701
 
1740
1702
 
1741
- #### mergeDeep(obj1, obj2, settings)
1703
+ #### filterNestedTree(arr, childArrKey, condition)
1742
1704
 
1743
- Merges two objects into a new one.
1744
- The second given argument to the first given argument.
1705
+ Filters a nested tree array by a custom condition on the last child node
1706
+ - If the given arguments are not valid, the function returns the first argument.
1707
+ - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1708
+ - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1745
1709
 
1746
1710
 
1747
1711
 
@@ -1750,9 +1714,9 @@ The second given argument to the first given argument.
1750
1714
 
1751
1715
  | Name | Type | Description | |
1752
1716
  | ---- | ---- | ----------- | -------- |
1753
- | obj1 | | The target object | &nbsp; |
1754
- | obj2 | | The object to be merged | &nbsp; |
1755
- | settings | | Object settings for this function | &nbsp; |
1717
+ | arr | | nested tree array | &nbsp; |
1718
+ | childArrKey | | property representing the children array on the nested tree | &nbsp; |
1719
+ | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
1756
1720
 
1757
1721
 
1758
1722
 
@@ -1760,13 +1724,17 @@ The second given argument to the first given argument.
1760
1724
  ##### Returns
1761
1725
 
1762
1726
 
1763
- - a new merged object
1727
+ - array filtered
1764
1728
 
1765
1729
 
1766
1730
 
1767
- #### isValid(obj1, obj2)
1768
1731
 
1769
- Validates if the two arguments are objects
1732
+ ### dist/general/array/flattenDeep.js
1733
+
1734
+
1735
+ #### flattenDeep(arr)
1736
+
1737
+ Flat deeply an array
1770
1738
 
1771
1739
 
1772
1740
 
@@ -1775,8 +1743,7 @@ Validates if the two arguments are objects
1775
1743
 
1776
1744
  | Name | Type | Description | |
1777
1745
  | ---- | ---- | ----------- | -------- |
1778
- | obj1 | | The target object | &nbsp; |
1779
- | obj2 | | The object to be merged | &nbsp; |
1746
+ | arr | | Array to flat deeply | &nbsp; |
1780
1747
 
1781
1748
 
1782
1749
 
@@ -1784,13 +1751,17 @@ Validates if the two arguments are objects
1784
1751
  ##### Returns
1785
1752
 
1786
1753
 
1787
- - true: they are valid; false: they are not
1754
+ - flatten array
1788
1755
 
1789
1756
 
1790
1757
 
1791
- #### getParamsToMergeDeep(settings)
1792
1758
 
1793
- Validates and gets the settings with all set parameters.
1759
+ ### dist/general/array/getFirstIndexFromArray.js
1760
+
1761
+
1762
+ #### getFirstIndexFromArray(array, callback)
1763
+
1764
+ Gets the first index from the array by a callback condition
1794
1765
 
1795
1766
 
1796
1767
 
@@ -1799,7 +1770,8 @@ Validates and gets the settings with all set parameters.
1799
1770
 
1800
1771
  | Name | Type | Description | |
1801
1772
  | ---- | ---- | ----------- | -------- |
1802
- | settings | | the settings object | &nbsp; |
1773
+ | array | | | &nbsp; |
1774
+ | callback | | function callback | &nbsp; |
1803
1775
 
1804
1776
 
1805
1777
 
@@ -1807,17 +1779,17 @@ Validates and gets the settings with all set parameters.
1807
1779
  ##### Returns
1808
1780
 
1809
1781
 
1810
- - a new settings object with all set parameters.
1782
+ - the first index of the array. -1 when the condition is not satisfied
1811
1783
 
1812
1784
 
1813
1785
 
1814
1786
 
1815
- ### dist/general/object/objectCopy.js
1787
+ ### dist/general/array/getLastIndexFromArray.js
1816
1788
 
1817
1789
 
1818
- #### objectCopy(entity, cache)
1790
+ #### getLastIndexFromArray(array, callback)
1819
1791
 
1820
- Created a new reference of the given argument
1792
+ Gets the last index from the array by a callback condition
1821
1793
 
1822
1794
 
1823
1795
 
@@ -1826,8 +1798,8 @@ Created a new reference of the given argument
1826
1798
 
1827
1799
  | Name | Type | Description | |
1828
1800
  | ---- | ---- | ----------- | -------- |
1829
- | entity | | The variable to be copied | &nbsp; |
1830
- | cache | | | &nbsp; |
1801
+ | array | | | &nbsp; |
1802
+ | callback | | function callback | &nbsp; |
1831
1803
 
1832
1804
 
1833
1805
 
@@ -1835,17 +1807,17 @@ Created a new reference of the given argument
1835
1807
  ##### Returns
1836
1808
 
1837
1809
 
1838
- - A new reference of the given argument
1810
+ - the last index of the array. -1 when the condition is not satisfied
1839
1811
 
1840
1812
 
1841
1813
 
1842
1814
 
1843
- ### dist/general/object/omit.js
1815
+ ### dist/general/function/debounce.js
1844
1816
 
1845
1817
 
1846
- #### omit(obj, props)
1818
+ #### debounce(fn, time)
1847
1819
 
1848
- return a new Object excluding attributes in _props_ list
1820
+ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1849
1821
 
1850
1822
 
1851
1823
 
@@ -1854,8 +1826,8 @@ return a new Object excluding attributes in _props_ list
1854
1826
 
1855
1827
  | Name | Type | Description | |
1856
1828
  | ---- | ---- | ----------- | -------- |
1857
- | obj | `Object` | base object | &nbsp; |
1858
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1829
+ | fn | `Function` | original Function | &nbsp; |
1830
+ | time | `Number` | default 500ms | &nbsp; |
1859
1831
 
1860
1832
 
1861
1833
 
@@ -1863,17 +1835,17 @@ return a new Object excluding attributes in _props_ list
1863
1835
  ##### Returns
1864
1836
 
1865
1837
 
1866
- - `Object` clean object
1838
+ - `Function` debounced functions
1867
1839
 
1868
1840
 
1869
1841
 
1870
1842
 
1871
- ### dist/general/object/pick.js
1843
+ ### dist/general/function/throttled.js
1872
1844
 
1873
1845
 
1874
- #### pick(baseObject, keys)
1846
+ #### throttled(fn, time)
1875
1847
 
1876
- return a new object just with attributes in _keys_ list
1848
+ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1877
1849
 
1878
1850
 
1879
1851
 
@@ -1882,26 +1854,479 @@ return a new object just with attributes in _keys_ list
1882
1854
 
1883
1855
  | Name | Type | Description | |
1884
1856
  | ---- | ---- | ----------- | -------- |
1885
- | baseObject | `Object` | base object | &nbsp; |
1886
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1887
-
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/mix/compareDeep.js
1872
+
1873
+
1874
+ #### compareDeep(object1, object2)
1875
+
1876
+ Compares two objects to know if they are equals. Go across nested objects.
1877
+ Includes arrays in the comparison.
1878
+
1879
+
1880
+
1881
+
1882
+ ##### Parameters
1883
+
1884
+ | Name | Type | Description | |
1885
+ | ---- | ---- | ----------- | -------- |
1886
+ | object1 | | First Object to compare | &nbsp; |
1887
+ | object2 | | Second Object to compare | &nbsp; |
1888
+
1889
+
1890
+
1891
+
1892
+ ##### Returns
1893
+
1894
+
1895
+ - True: objects are equal. False: Objects are not equal. Undefined: invalid
1896
+
1897
+
1898
+
1899
+
1900
+ ### dist/general/mix/getTag.js
1901
+
1902
+
1903
+ #### getTag(value)
1904
+
1905
+ Gets the `toStringTag` of `value`.
1906
+
1907
+
1908
+
1909
+
1910
+ ##### Parameters
1911
+
1912
+ | Name | Type | Description | |
1913
+ | ---- | ---- | ----------- | -------- |
1914
+ | value | | The value to query. | &nbsp; |
1915
+
1916
+
1917
+
1918
+
1919
+ ##### Returns
1920
+
1921
+
1922
+ - `string` Returns the `toStringTag`.
1923
+
1924
+
1925
+
1926
+
1927
+ ### dist/general/mix/importScripts.js
1928
+
1929
+
1930
+ #### importScripts(scripts)
1931
+
1932
+ Import a set of external Scripts given the URL in both serie and cascade way
1933
+
1934
+
1935
+
1936
+
1937
+ ##### Parameters
1938
+
1939
+ | Name | Type | Description | |
1940
+ | ---- | ---- | ----------- | -------- |
1941
+ | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1942
+ | scripts.url | `String` | CDN URL | &nbsp; |
1943
+ | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
1944
+ | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1945
+ | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1946
+ | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
1947
+
1948
+
1949
+
1950
+
1951
+ ##### Examples
1952
+
1953
+ ```javascript
1954
+ // 1) Simple script (paralell loading)
1955
+ importScripts(['http://myscript.js', 'http://another.js']);
1956
+
1957
+ // 2) Loading `.js` and `.esm.js` script (parallel loading)
1958
+ importScripts([
1959
+ { url: 'http://myscript.esm.js', type: 'module' },
1960
+ { url: 'http://myscript.js', noModule: true }
1961
+ ]);
1962
+
1963
+ // 3) import dependent scripts (cascade)
1964
+ importScripts([
1965
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
1966
+ ]);
1967
+
1968
+ // 4) mix
1969
+ importScripts([
1970
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
1971
+ { url: 'http://another.esm.js', type: 'module' },
1972
+ { url: 'http://another.js', noModule: true },
1973
+ 'http://simplescript.js'
1974
+ ]);
1975
+ ```
1976
+
1977
+
1978
+ ##### Returns
1979
+
1980
+
1981
+ - `Promise` Promise when all script have been loaded
1982
+
1983
+
1984
+
1985
+ #### loadScript(url, type, noModule)
1986
+
1987
+ Creates the script element and appends to document.head
1988
+ return a Promise that is resolved when the script is loaded
1989
+
1990
+
1991
+
1992
+
1993
+ ##### Parameters
1994
+
1995
+ | Name | Type | Description | |
1996
+ | ---- | ---- | ----------- | -------- |
1997
+ | url | `String` | Cdn Url | &nbsp; |
1998
+ | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1999
+ | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2000
+
2001
+
2002
+
2003
+
2004
+ ##### Returns
2005
+
2006
+
2007
+ - `Void`
2008
+
2009
+
2010
+
2011
+
2012
+ ### dist/general/mix/isEmpty.js
2013
+
2014
+
2015
+ #### isEmpty(variable, includeFalsy)
2016
+
2017
+ Validates if the given argument is empty
2018
+
2019
+
2020
+
2021
+
2022
+ ##### Parameters
2023
+
2024
+ | Name | Type | Description | |
2025
+ | ---- | ---- | ----------- | -------- |
2026
+ | variable | | the given variable | &nbsp; |
2027
+ | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
2028
+
2029
+
2030
+
2031
+
2032
+ ##### Returns
2033
+
2034
+
2035
+ - true: the given argument is empty; false: is not.
2036
+
2037
+
2038
+
2039
+
2040
+ ### dist/general/mix/isNaNV2.js
2041
+
2042
+
2043
+ #### isNaNV2(variable)
2044
+
2045
+ Validates if the recieved number is NaN type.
2046
+ This function recieves any variable but will return false.
2047
+ Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
2048
+
2049
+
2050
+
2051
+
2052
+ ##### Parameters
2053
+
2054
+ | Name | Type | Description | |
2055
+ | ---- | ---- | ----------- | -------- |
2056
+ | variable | | the variable to validate | &nbsp; |
2057
+
2058
+
2059
+
2060
+
2061
+ ##### Returns
2062
+
2063
+
2064
+ - True if variable is a NaN or false otherwise
2065
+
2066
+
2067
+
2068
+
2069
+ ### dist/general/mix/isNull.js
2070
+
2071
+
2072
+ #### isNull(arg)
2073
+
2074
+ return if a given variable is either `null` or `undefined`
2075
+ useful to avoid falsify validating Number Zero (0)
2076
+
2077
+
2078
+
2079
+
2080
+ ##### Parameters
2081
+
2082
+ | Name | Type | Description | |
2083
+ | ---- | ---- | ----------- | -------- |
2084
+ | arg | `any` | | &nbsp; |
2085
+
2086
+
2087
+
1888
2088
 
2089
+ ##### Returns
2090
+
2091
+
2092
+ - `Boolean`
2093
+
2094
+
2095
+
2096
+
2097
+ ### dist/general/mix/randomId.js
2098
+
2099
+
2100
+ #### randomId(length, exclude)
2101
+
2102
+ Creates a random string
2103
+ - If the first given argument is different than a length number, the variable is replaced by a default number
2104
+ - If the optional second given argument is passed the random string is permutated.
2105
+
2106
+
2107
+
2108
+
2109
+ ##### Parameters
2110
+
2111
+ | Name | Type | Description | |
2112
+ | ---- | ---- | ----------- | -------- |
2113
+ | length | `Number` | size of the generated string. Default 8 | &nbsp; |
2114
+ | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
2115
+
2116
+
2117
+
2118
+
2119
+ ##### Returns
2120
+
2121
+
2122
+ - `String` Random string
2123
+
2124
+
2125
+
2126
+
2127
+ ### dist/general/mix/size.js
2128
+
2129
+
2130
+ #### size(obj)
2131
+
2132
+ Gets the length of the given array.
2133
+ - Useful for Object, Array and string type.
2134
+ - For `null` or `undefined` or else argument the returned value will be 0.
2135
+
2136
+
2137
+
2138
+
2139
+ ##### Parameters
2140
+
2141
+ | Name | Type | Description | |
2142
+ | ---- | ---- | ----------- | -------- |
2143
+ | obj | `Any` | Any object-type variable | &nbsp; |
2144
+
2145
+
2146
+
2147
+
2148
+ ##### Returns
2149
+
2150
+
2151
+ - `Number` the size of the given variable
2152
+
2153
+
2154
+
2155
+
2156
+ ### dist/general/object/cloneDeep.js
2157
+
2158
+
2159
+ #### cloneDeep(obj)
2160
+
2161
+ A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
2162
+ Not to use this function with inner objects and functions
2163
+
2164
+
2165
+
2166
+
2167
+ ##### Parameters
2168
+
2169
+ | Name | Type | Description | |
2170
+ | ---- | ---- | ----------- | -------- |
2171
+ | obj | | The object | &nbsp; |
2172
+
2173
+
2174
+
2175
+
2176
+ ##### Returns
2177
+
2178
+
2179
+ - The new reference object or the given object if the parsing is incorrect or empty
2180
+
2181
+
2182
+
2183
+
2184
+ ### dist/general/object/get.js
2185
+
2186
+
2187
+ #### _get(baseObject, path, defaultValue)
2188
+
2189
+ Like lodash _.get.
2190
+ Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
2191
+
2192
+ Empty arrays and empty objects are returned but the defaultValue is not
2193
+ Undefined and null values will return the defaultValue.
2194
+
2195
+
2196
+
2197
+
2198
+ ##### Parameters
2199
+
2200
+ | Name | Type | Description | |
2201
+ | ---- | ---- | ----------- | -------- |
2202
+ | baseObject | | The object to query | &nbsp; |
2203
+ | path | | The string path or collection of string paths of the property to get. | &nbsp; |
2204
+ | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
2205
+
2206
+
2207
+
2208
+
2209
+ ##### Examples
2210
+
2211
+ ```javascript
2212
+ // returns 'Hello'
2213
+ _get({ item1: 'Hello', item2: 'World' }, 'item1')
2214
+ ```
2215
+ ```javascript
2216
+ // returns 'A simple Hello'
2217
+ _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
2218
+ ```
2219
+ ```javascript
2220
+ // returns 'Hello Again'
2221
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
2222
+ ```
2223
+ ```javascript
2224
+ // returns 'Hello 2'
2225
+ _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
2226
+ ```
2227
+ ```javascript
2228
+ // returns 'Hello Again'
2229
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
2230
+ ```
2231
+
2232
+
2233
+ ##### Returns
2234
+
2235
+
2236
+ - the resolved value.
2237
+
2238
+
2239
+
2240
+
2241
+ ### dist/general/object/getAttribute.js
2242
+
2243
+
2244
+ #### getAttribute(obj, key)
2245
+
2246
+ Searchs for properties in different case styles such as: lower, upper, camel and pascal
2247
+ - To optimize the searching, it is required a key in a snake_case style
2248
+ - List of cases that do not match
2249
+ -- From lower to snake case
2250
+ -- From upper to snake case
2251
+ -- From lower to camel case
2252
+ -- From upper to camel case
2253
+ -- From lower to pascal case
2254
+ -- From upper to pascal case
2255
+
2256
+
2257
+
2258
+
2259
+ ##### Parameters
2260
+
2261
+ | Name | Type | Description | |
2262
+ | ---- | ---- | ----------- | -------- |
2263
+ | obj | `object` | object to look for | &nbsp; |
2264
+ | key | `string` | String attribute in snake_case style | &nbsp; |
2265
+
2266
+
2267
+
2268
+
2269
+ ##### Examples
2270
+
2271
+ ```javascript
2272
+ getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2273
+ ```
2274
+
2275
+
2276
+ ##### Returns
2277
+
2278
+
2279
+ - `Void`
2280
+
2281
+
2282
+
2283
+
2284
+ ### dist/general/object/hasProperty.js
2285
+
2286
+
2287
+ #### _hasProperty(obj, property)
2288
+
2289
+ Use the hasOwnProperty in order to verify if the given property exists in the object.
2290
+
2291
+
2292
+
2293
+
2294
+ ##### Parameters
2295
+
2296
+ | Name | Type | Description | |
2297
+ | ---- | ---- | ----------- | -------- |
2298
+ | obj | `object` | an object | &nbsp; |
2299
+ | property | `string` | String to verify if exists in the object as property | &nbsp; |
2300
+
2301
+
2302
+
2303
+
2304
+ ##### Examples
2305
+
2306
+ ```javascript
2307
+ const prop = 'prop2'
2308
+ const obj1 = { prop1: 'hello', prop2: 'world'}
2309
+ _hasProperty(ob1, prop1) // true
2310
+
2311
+ const obj2 = { prop1: 'hello world' }
2312
+ _hasProperty(ob1, prop2) // false
2313
+ ```
1889
2314
 
1890
2315
 
1891
2316
  ##### Returns
1892
2317
 
1893
2318
 
1894
- - `Object` new object just with desired attributes
2319
+ - True if the object has the given property; otherwise, false.
1895
2320
 
1896
2321
 
1897
2322
 
1898
2323
 
1899
- ### dist/general/object/serialize.js
2324
+ ### dist/general/object/isObject.js
1900
2325
 
1901
2326
 
1902
- #### serialize(obj)
2327
+ #### isObject(obj)
1903
2328
 
1904
- serialize object to url param
2329
+ Checks if the given argument is an object type
1905
2330
 
1906
2331
 
1907
2332
 
@@ -1910,7 +2335,7 @@ serialize object to url param
1910
2335
 
1911
2336
  | Name | Type | Description | |
1912
2337
  | ---- | ---- | ----------- | -------- |
1913
- | obj | | - Object to be serialized | &nbsp; |
2338
+ | obj | | the variable to check | &nbsp; |
1914
2339
 
1915
2340
 
1916
2341
 
@@ -1918,18 +2343,18 @@ serialize object to url param
1918
2343
  ##### Returns
1919
2344
 
1920
2345
 
1921
- - `Void`
2346
+ - True: It is an object; False: It is not.
1922
2347
 
1923
2348
 
1924
2349
 
1925
2350
 
1926
- ### dist/general/mix/compareDeep.js
2351
+ ### dist/general/object/mapValues.js
1927
2352
 
1928
2353
 
1929
- #### compareDeep(object1, object2)
2354
+ #### mapValues(baseObject, iteratee)
1930
2355
 
1931
- Compares two objects to know if they are equals. Go across nested objects.
1932
- Includes arrays in the comparison.
2356
+ Invoke iteratee (function) for each object key-value pair
2357
+ and return a mapped object
1933
2358
 
1934
2359
 
1935
2360
 
@@ -1938,8 +2363,8 @@ Includes arrays in the comparison.
1938
2363
 
1939
2364
  | Name | Type | Description | |
1940
2365
  | ---- | ---- | ----------- | -------- |
1941
- | object1 | | First Object to compare | &nbsp; |
1942
- | object2 | | Second Object to compare | &nbsp; |
2366
+ | baseObject | `Object` | Base object. | &nbsp; |
2367
+ | iteratee | `Function` | The executed per iteration. | &nbsp; |
1943
2368
 
1944
2369
 
1945
2370
 
@@ -1947,17 +2372,18 @@ Includes arrays in the comparison.
1947
2372
  ##### Returns
1948
2373
 
1949
2374
 
1950
- - True: objects are equal. False: Objects are not equal. Undefined: invalid
2375
+ - `Object` New mapped object.
1951
2376
 
1952
2377
 
1953
2378
 
1954
2379
 
1955
- ### dist/general/mix/getTag.js
2380
+ ### dist/general/object/mergeDeep.js
1956
2381
 
1957
2382
 
1958
- #### getTag(value)
2383
+ #### mergeDeep(obj1, obj2, settings)
1959
2384
 
1960
- Gets the `toStringTag` of `value`.
2385
+ Merges two objects into a new one.
2386
+ The second given argument to the first given argument.
1961
2387
 
1962
2388
 
1963
2389
 
@@ -1966,7 +2392,9 @@ Gets the `toStringTag` of `value`.
1966
2392
 
1967
2393
  | Name | Type | Description | |
1968
2394
  | ---- | ---- | ----------- | -------- |
1969
- | value | | The value to query. | &nbsp; |
2395
+ | obj1 | | The target object | &nbsp; |
2396
+ | obj2 | | The object to be merged | &nbsp; |
2397
+ | settings | | Object settings for this function | &nbsp; |
1970
2398
 
1971
2399
 
1972
2400
 
@@ -1974,17 +2402,13 @@ Gets the `toStringTag` of `value`.
1974
2402
  ##### Returns
1975
2403
 
1976
2404
 
1977
- - `string` Returns the `toStringTag`.
1978
-
1979
-
1980
-
2405
+ - a new merged object
1981
2406
 
1982
- ### dist/general/mix/importScripts.js
1983
2407
 
1984
2408
 
1985
- #### importScripts(scripts)
2409
+ #### isValid(obj1, obj2)
1986
2410
 
1987
- Import a set of external Scripts given the URL in both serie and cascade way
2411
+ Validates if the two arguments are objects
1988
2412
 
1989
2413
 
1990
2414
 
@@ -1993,54 +2417,22 @@ Import a set of external Scripts given the URL in both serie and cascade way
1993
2417
 
1994
2418
  | Name | Type | Description | |
1995
2419
  | ---- | ---- | ----------- | -------- |
1996
- | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1997
- | scripts.url | `String` | CDN URL | &nbsp; |
1998
- | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
1999
- | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
2000
- | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2001
- | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
2002
-
2003
-
2004
-
2005
-
2006
- ##### Examples
2007
-
2008
- ```javascript
2009
- // 1) Simple script (paralell loading)
2010
- importScripts(['http://myscript.js', 'http://another.js']);
2011
-
2012
- // 2) Loading `.js` and `.esm.js` script (parallel loading)
2013
- importScripts([
2014
- { url: 'http://myscript.esm.js', type: 'module' },
2015
- { url: 'http://myscript.js', noModule: true }
2016
- ]);
2420
+ | obj1 | | The target object | &nbsp; |
2421
+ | obj2 | | The object to be merged | &nbsp; |
2017
2422
 
2018
- // 3) import dependent scripts (cascade)
2019
- importScripts([
2020
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
2021
- ]);
2022
2423
 
2023
- // 4) mix
2024
- importScripts([
2025
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
2026
- { url: 'http://another.esm.js', type: 'module' },
2027
- { url: 'http://another.js', noModule: true },
2028
- 'http://simplescript.js'
2029
- ]);
2030
- ```
2031
2424
 
2032
2425
 
2033
2426
  ##### Returns
2034
2427
 
2035
2428
 
2036
- - `Promise` Promise when all script have been loaded
2429
+ - true: they are valid; false: they are not
2037
2430
 
2038
2431
 
2039
2432
 
2040
- #### loadScript(url, type, noModule)
2433
+ #### getParamsToMergeDeep(settings)
2041
2434
 
2042
- Creates the script element and appends to document.head
2043
- return a Promise that is resolved when the script is loaded
2435
+ Validates and gets the settings with all set parameters.
2044
2436
 
2045
2437
 
2046
2438
 
@@ -2049,9 +2441,7 @@ return a Promise that is resolved when the script is loaded
2049
2441
 
2050
2442
  | Name | Type | Description | |
2051
2443
  | ---- | ---- | ----------- | -------- |
2052
- | url | `String` | Cdn Url | &nbsp; |
2053
- | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
2054
- | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2444
+ | settings | | the settings object | &nbsp; |
2055
2445
 
2056
2446
 
2057
2447
 
@@ -2059,17 +2449,17 @@ return a Promise that is resolved when the script is loaded
2059
2449
  ##### Returns
2060
2450
 
2061
2451
 
2062
- - `Void`
2452
+ - a new settings object with all set parameters.
2063
2453
 
2064
2454
 
2065
2455
 
2066
2456
 
2067
- ### dist/general/mix/isEmpty.js
2457
+ ### dist/general/object/objectCopy.js
2068
2458
 
2069
2459
 
2070
- #### isEmpty(variable, includeFalsy)
2460
+ #### objectCopy(entity, cache)
2071
2461
 
2072
- Validates if the given argument is empty
2462
+ Created a new reference of the given argument
2073
2463
 
2074
2464
 
2075
2465
 
@@ -2078,8 +2468,8 @@ Validates if the given argument is empty
2078
2468
 
2079
2469
  | Name | Type | Description | |
2080
2470
  | ---- | ---- | ----------- | -------- |
2081
- | variable | | the given variable | &nbsp; |
2082
- | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
2471
+ | entity | | The variable to be copied | &nbsp; |
2472
+ | cache | | | &nbsp; |
2083
2473
 
2084
2474
 
2085
2475
 
@@ -2087,18 +2477,17 @@ Validates if the given argument is empty
2087
2477
  ##### Returns
2088
2478
 
2089
2479
 
2090
- - true: the given argument is empty; false: is not.
2480
+ - A new reference of the given argument
2091
2481
 
2092
2482
 
2093
2483
 
2094
2484
 
2095
- ### dist/general/mix/isNull.js
2485
+ ### dist/general/object/omit.js
2096
2486
 
2097
2487
 
2098
- #### isNull(arg)
2488
+ #### omit(obj, props)
2099
2489
 
2100
- return if a given variable is either `null` or `undefined`
2101
- useful to avoid falsify validating Number Zero (0)
2490
+ return a new Object excluding attributes in _props_ list
2102
2491
 
2103
2492
 
2104
2493
 
@@ -2107,7 +2496,8 @@ useful to avoid falsify validating Number Zero (0)
2107
2496
 
2108
2497
  | Name | Type | Description | |
2109
2498
  | ---- | ---- | ----------- | -------- |
2110
- | arg | `any` | | &nbsp; |
2499
+ | obj | `Object` | base object | &nbsp; |
2500
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2111
2501
 
2112
2502
 
2113
2503
 
@@ -2115,19 +2505,17 @@ useful to avoid falsify validating Number Zero (0)
2115
2505
  ##### Returns
2116
2506
 
2117
2507
 
2118
- - `Boolean`
2508
+ - `Object` clean object
2119
2509
 
2120
2510
 
2121
2511
 
2122
2512
 
2123
- ### dist/general/mix/randomId.js
2513
+ ### dist/general/object/pick.js
2124
2514
 
2125
2515
 
2126
- #### randomId(length, exclude)
2516
+ #### pick(baseObject, keys)
2127
2517
 
2128
- Creates a random string
2129
- - If the first given argument is different than a length number, the variable is replaced by a default number
2130
- - If the optional second given argument is passed the random string is permutated.
2518
+ return a new object just with attributes in _keys_ list
2131
2519
 
2132
2520
 
2133
2521
 
@@ -2136,8 +2524,8 @@ Creates a random string
2136
2524
 
2137
2525
  | Name | Type | Description | |
2138
2526
  | ---- | ---- | ----------- | -------- |
2139
- | length | `Number` | size of the generated string. Default 8 | &nbsp; |
2140
- | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
2527
+ | baseObject | `Object` | base object | &nbsp; |
2528
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2141
2529
 
2142
2530
 
2143
2531
 
@@ -2145,19 +2533,17 @@ Creates a random string
2145
2533
  ##### Returns
2146
2534
 
2147
2535
 
2148
- - `String` Random string
2536
+ - `Object` new object just with desired attributes
2149
2537
 
2150
2538
 
2151
2539
 
2152
2540
 
2153
- ### dist/general/mix/size.js
2541
+ ### dist/general/object/serialize.js
2154
2542
 
2155
2543
 
2156
- #### size(obj)
2544
+ #### serialize(obj)
2157
2545
 
2158
- Gets the length of the given array.
2159
- - Useful for Object, Array and string type.
2160
- - For `null` or `undefined` or else argument the returned value will be 0.
2546
+ serialize object to url param
2161
2547
 
2162
2548
 
2163
2549
 
@@ -2166,7 +2552,7 @@ Gets the length of the given array.
2166
2552
 
2167
2553
  | Name | Type | Description | |
2168
2554
  | ---- | ---- | ----------- | -------- |
2169
- | obj | `Any` | Any object-type variable | &nbsp; |
2555
+ | obj | | - Object to be serialized | &nbsp; |
2170
2556
 
2171
2557
 
2172
2558
 
@@ -2174,7 +2560,7 @@ Gets the length of the given array.
2174
2560
  ##### Returns
2175
2561
 
2176
2562
 
2177
- - `Number` the size of the given variable
2563
+ - `Void`
2178
2564
 
2179
2565
 
2180
2566
 
@@ -2453,12 +2839,12 @@ try to find this string as a variable on Windows object
2453
2839
 
2454
2840
 
2455
2841
 
2456
- ### dist/dates/relative/helpers/formatStatement.js
2842
+ ### dist/dates/relative/helpers/getStatementCase.js
2457
2843
 
2458
2844
 
2459
- #### formatStatement(statement)
2845
+ #### getStatementCase(includeCurrent, isCalendarDate)
2460
2846
 
2461
- Build a proper relative date statement type
2847
+ Returns a number/constant that identifies a relative date case
2462
2848
 
2463
2849
 
2464
2850
 
@@ -2467,7 +2853,8 @@ Build a proper relative date statement type
2467
2853
 
2468
2854
  | Name | Type | Description | |
2469
2855
  | ---- | ---- | ----------- | -------- |
2470
- | statement | `RelativeStatement` | | &nbsp; |
2856
+ | includeCurrent | `boolean` | | &nbsp; |
2857
+ | isCalendarDate | `boolean` | | &nbsp; |
2471
2858
 
2472
2859
 
2473
2860
 
@@ -2475,17 +2862,17 @@ Build a proper relative date statement type
2475
2862
  ##### Returns
2476
2863
 
2477
2864
 
2478
- - `RelativeStatement`
2865
+ - `number`
2479
2866
 
2480
2867
 
2481
2868
 
2482
2869
 
2483
- ### dist/dates/relative/helpers/getStatementCase.js
2870
+ ### dist/dates/relative/helpers/formatStatement.js
2484
2871
 
2485
2872
 
2486
- #### getStatementCase(includeCurrent, isCalendarDate)
2873
+ #### formatStatement(statement)
2487
2874
 
2488
- Returns a number/constant that identifies a relative date case
2875
+ Build a proper relative date statement type
2489
2876
 
2490
2877
 
2491
2878
 
@@ -2494,8 +2881,7 @@ Returns a number/constant that identifies a relative date case
2494
2881
 
2495
2882
  | Name | Type | Description | |
2496
2883
  | ---- | ---- | ----------- | -------- |
2497
- | includeCurrent | `boolean` | | &nbsp; |
2498
- | isCalendarDate | `boolean` | | &nbsp; |
2884
+ | statement | `RelativeStatement` | | &nbsp; |
2499
2885
 
2500
2886
 
2501
2887
 
@@ -2503,7 +2889,7 @@ Returns a number/constant that identifies a relative date case
2503
2889
  ##### Returns
2504
2890
 
2505
2891
 
2506
- - `number`
2892
+ - `RelativeStatement`
2507
2893
 
2508
2894
 
2509
2895
 
@@ -2858,12 +3244,12 @@ Returns a filter builder config object by a any given config
2858
3244
 
2859
3245
 
2860
3246
 
2861
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3247
+ ### dist/filters/helpers/common/areFiltersEquals.js
2862
3248
 
2863
3249
 
2864
- #### excludeFiltersByAggregateColumn(filterData)
3250
+ #### areFiltersEquals(filter1, filter2)
2865
3251
 
2866
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3252
+ Validates if both filters are the same
2867
3253
 
2868
3254
 
2869
3255
 
@@ -2872,7 +3258,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
2872
3258
 
2873
3259
  | Name | Type | Description | |
2874
3260
  | ---- | ---- | ----------- | -------- |
2875
- | filterData | | The filter data object | &nbsp; |
3261
+ | filter1 | | filter 1 | &nbsp; |
3262
+ | filter2 | | filter 2 | &nbsp; |
2876
3263
 
2877
3264
 
2878
3265
 
@@ -2880,17 +3267,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
2880
3267
  ##### Returns
2881
3268
 
2882
3269
 
2883
- - The new filter data object that were excluded the aggregate filters
3270
+ - true: the filters are equal; false: the filters are NOT equal
2884
3271
 
2885
3272
 
2886
3273
 
2887
3274
 
2888
- ### dist/filters/helpers/common/areFiltersEquals.js
3275
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
2889
3276
 
2890
3277
 
2891
- #### areFiltersEquals(filter1, filter2)
3278
+ #### excludeFiltersByAggregateColumn(filterData)
2892
3279
 
2893
- Validates if both filters are the same
3280
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
2894
3281
 
2895
3282
 
2896
3283
 
@@ -2899,8 +3286,7 @@ Validates if both filters are the same
2899
3286
 
2900
3287
  | Name | Type | Description | |
2901
3288
  | ---- | ---- | ----------- | -------- |
2902
- | filter1 | | filter 1 | &nbsp; |
2903
- | filter2 | | filter 2 | &nbsp; |
3289
+ | filterData | | The filter data object | &nbsp; |
2904
3290
 
2905
3291
 
2906
3292
 
@@ -2908,7 +3294,7 @@ Validates if both filters are the same
2908
3294
  ##### Returns
2909
3295
 
2910
3296
 
2911
- - true: the filters are equal; false: the filters are NOT equal
3297
+ - The new filter data object that were excluded the aggregate filters
2912
3298
 
2913
3299
 
2914
3300
 
@@ -3218,12 +3604,12 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3218
3604
 
3219
3605
 
3220
3606
 
3221
- ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3607
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
3222
3608
 
3223
3609
 
3224
- #### getParamsToGetFilterSettings(settings)
3610
+ #### getMergeFiltersSettings(settings)
3225
3611
 
3226
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3612
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3227
3613
 
3228
3614
 
3229
3615
 
@@ -3232,7 +3618,7 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3232
3618
 
3233
3619
  | Name | Type | Description | |
3234
3620
  | ---- | ---- | ----------- | -------- |
3235
- | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
3621
+ | settings | | an object to the MergeFilters settings | &nbsp; |
3236
3622
 
3237
3623
 
3238
3624
 
@@ -3240,17 +3626,17 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3240
3626
  ##### Returns
3241
3627
 
3242
3628
 
3243
- - a new ParamsToGetFilter settings object.
3629
+ - a new MergeFilters settings object.
3244
3630
 
3245
3631
 
3246
3632
 
3247
3633
 
3248
- ### dist/filters/helpers/common/getMergeFiltersSettings.js
3634
+ ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3249
3635
 
3250
3636
 
3251
- #### getMergeFiltersSettings(settings)
3637
+ #### getParamsToGetFilterSettings(settings)
3252
3638
 
3253
- Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3639
+ Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3254
3640
 
3255
3641
 
3256
3642
 
@@ -3259,7 +3645,7 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3259
3645
 
3260
3646
  | Name | Type | Description | |
3261
3647
  | ---- | ---- | ----------- | -------- |
3262
- | settings | | an object to the MergeFilters settings | &nbsp; |
3648
+ | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
3263
3649
 
3264
3650
 
3265
3651
 
@@ -3267,7 +3653,7 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3267
3653
  ##### Returns
3268
3654
 
3269
3655
 
3270
- - a new MergeFilters settings object.
3656
+ - a new ParamsToGetFilter settings object.
3271
3657
 
3272
3658
 
3273
3659
 
@@ -3820,51 +4206,51 @@ The validation to filter the stored filter is depending on:
3820
4206
 
3821
4207
 
3822
4208
 
3823
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
4209
+ ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
3824
4210
 
3825
4211
 
3826
- #### getUIFlatFiltersByScopes(uFilters, scopes)
4212
+ #### getUIFlatFiltersByParams()
3827
4213
 
3828
- Filters and gets a UI Flatten Filters by the given scopes
4214
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4215
+ The validation to filter the stored filter is depending on:
4216
+ - Column
4217
+ - Qrvey ID,
4218
+ - Scope type
4219
+ - Scope ID
4220
+ - Panel ID
4221
+ - Validator type
4222
+ - Property type
4223
+ - Enabled flags
3829
4224
 
3830
4225
 
3831
4226
 
3832
4227
 
3833
- ##### Parameters
3834
4228
 
3835
- | Name | Type | Description | |
3836
- | ---- | ---- | ----------- | -------- |
3837
- | uFilters | | The Flatten UI Filters | &nbsp; |
3838
- | scopes | | collection of scopes types | &nbsp; |
3839
4229
 
4230
+ ##### Returns
3840
4231
 
3841
4232
 
4233
+ - The index of the uFilter array or the Filter object s
3842
4234
 
3843
- ##### Returns
3844
4235
 
3845
4236
 
3846
- - The new array of UI Flattened filters
3847
4237
 
4238
+ ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
3848
4239
 
3849
4240
 
4241
+ #### getUIFlatFiltersByScopes(uFilters, scopes)
3850
4242
 
3851
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4243
+ Filters and gets a UI Flatten Filters by the given scopes
3852
4244
 
3853
4245
 
3854
- #### getUIFlatFiltersByParams()
3855
4246
 
3856
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3857
- The validation to filter the stored filter is depending on:
3858
- - Column
3859
- - Qrvey ID,
3860
- - Scope type
3861
- - Scope ID
3862
- - Panel ID
3863
- - Validator type
3864
- - Property type
3865
- - Enabled flags
3866
4247
 
4248
+ ##### Parameters
3867
4249
 
4250
+ | Name | Type | Description | |
4251
+ | ---- | ---- | ----------- | -------- |
4252
+ | uFilters | | The Flatten UI Filters | &nbsp; |
4253
+ | scopes | | collection of scopes types | &nbsp; |
3868
4254
 
3869
4255
 
3870
4256
 
@@ -3872,7 +4258,7 @@ The validation to filter the stored filter is depending on:
3872
4258
  ##### Returns
3873
4259
 
3874
4260
 
3875
- - The index of the uFilter array or the Filter object s
4261
+ - The new array of UI Flattened filters
3876
4262
 
3877
4263
 
3878
4264