@qrvey/utils 1.2.4-2 → 1.2.4-20

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 +1159 -773
  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 +33 -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 +11 -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 +14 -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 +19 -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 +120 -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 +14 -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 +60 -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 +33 -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 +11 -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 +14 -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 +19 -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 +117 -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 +14 -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 +57 -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 +33 -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 +11 -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 +14 -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 +20 -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 +119 -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 +14 -0
  821. package/src/globalization/labels/cross_tabs/index.ts +1 -0
  822. package/src/globalization/labels/filters/I18N_FILTER.ts +15 -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 +59 -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-20*
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/getDateFormatByProperty.js
238
224
 
239
225
 
240
- #### replaceNowToken(value, now)
226
+ #### getDateFormatByProperty(property)
241
227
 
242
- Replace '@now' token inside a string
228
+ Gets the date format by the given property
243
229
 
244
230
 
245
231
 
@@ -248,8 +234,7 @@ Replace '@now' token inside a string
248
234
 
249
235
  | Name | Type | Description | |
250
236
  | ---- | ---- | ----------- | -------- |
251
- | value | `string` | |   |
252
- | now | `Date` | |   |
237
+ | property | | The Column Property |   |
253
238
 
254
239
 
255
240
 
@@ -257,60 +242,46 @@ Replace '@now' token inside a string
257
242
  ##### Returns
258
243
 
259
244
 
260
- - `string`
245
+ - The date format
261
246
 
262
247
 
263
248
 
264
- #### convertRelativeToAbsolute(args)
265
249
 
266
- Returns a range object (date) from a group of statement params
250
+ ### dist/dates/helpers/getDateByDateFormat.js
267
251
 
268
252
 
253
+ #### getDateByDateFormat(date, format, time)
269
254
 
255
+ Gets a Date Object instance by a Date format
270
256
 
271
- ##### Parameters
272
257
 
273
- | Name | Type | Description | |
274
- | ---- | ---- | ----------- | -------- |
275
- | args | `RelativeToAbsoluteStruct` | |   |
276
258
 
277
259
 
260
+ ##### Parameters
278
261
 
262
+ | Name | Type | Description | |
263
+ | ---- | ---- | ----------- | -------- |
264
+ | date | | String with a formatted date |   |
265
+ | format | | The date format |   |
266
+ | time | | flag to convert the formatted date to miliseconds |   |
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
+ - a Date object, milisecond time or the same value if date format does not match.
304
275
 
305
276
 
306
277
 
307
278
 
308
- ### dist/dates/relative/relative.js
279
+ ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
309
280
 
310
281
 
311
- #### resolveRelative(statements, clock)
282
+ #### getDateFormatRegularExpressionInArray(dateFormat)
312
283
 
313
- Resolve a list of relative statements according to operator
284
+ Gets an array of regular expressions by the given date format
314
285
 
315
286
 
316
287
 
@@ -319,44 +290,25 @@ Resolve a list of relative statements according to operator
319
290
 
320
291
  | Name | Type | Description | |
321
292
  | ---- | ---- | ----------- | -------- |
322
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
323
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
293
+ | dateFormat | | the date format | &nbsp; |
324
294
 
325
295
 
326
296
 
327
297
 
328
- ##### Examples
329
-
330
- ```javascript
331
- Input:
332
- {
333
- "cursor": "the_next",
334
- "unit": "year",
335
- "number": 1,
336
- "includeCurrent": false,
337
- "isCalendarDate": false,
338
- "anchor": "03/05/2021"
339
- }
340
-
341
- Output:
342
- { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
343
- ```
344
-
345
-
346
298
  ##### Returns
347
299
 
348
300
 
349
- - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
301
+ - an array of regular expressions
350
302
 
351
303
 
352
304
 
353
305
 
354
- ### dist/filters/adapters/FDToFlatUI.js
306
+ ### dist/dates/helpers/getSeparatorByDateFormat.js
355
307
 
356
308
 
357
- #### FDToFlatUI(filterData, datasetsInfo)
309
+ #### getSeparatorByDateFormat(format)
358
310
 
359
- Generates a Flattened UI filter structure from Filter Data structure.
311
+ Gets the separator of the date format
360
312
 
361
313
 
362
314
 
@@ -365,8 +317,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
365
317
 
366
318
  | Name | Type | Description | |
367
319
  | ---- | ---- | ----------- | -------- |
368
- | filterData | | The filter data object. | &nbsp; |
369
- | datasetsInfo | | Collection of datasets information | &nbsp; |
320
+ | format | | the date format | &nbsp; |
370
321
 
371
322
 
372
323
 
@@ -374,13 +325,18 @@ Generates a Flattened UI filter structure from Filter Data structure.
374
325
  ##### Returns
375
326
 
376
327
 
377
- - a flattened UI filters array
328
+ - a separator string
378
329
 
379
330
 
380
331
 
381
- #### FD21ToFlatUI(scopes, datasetsInfo)
382
332
 
383
- Generates a Filter Builder Structure from the Filter Data structure v2.1
333
+ ### dist/dates/helpers/getWeek.js
334
+
335
+
336
+ #### getWeek(date)
337
+
338
+ Gets the week number of the year
339
+ Additionally, the month and the year
384
340
 
385
341
 
386
342
 
@@ -389,8 +345,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
389
345
 
390
346
  | Name | Type | Description | |
391
347
  | ---- | ---- | ----------- | -------- |
392
- | scopes | | The filter scope section | &nbsp; |
393
- | datasetsInfo | | Collection of datasets information | &nbsp; |
348
+ | date | | the date object | &nbsp; |
394
349
 
395
350
 
396
351
 
@@ -398,17 +353,20 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
398
353
  ##### Returns
399
354
 
400
355
 
401
- - a flattened UI filters array
356
+ - an object with the week, month and year.
402
357
 
403
358
 
404
359
 
405
360
 
406
- ### dist/filters/adapters/FDToLogic.js
361
+ ### dist/dates/helpers/validateDate.js
407
362
 
408
363
 
409
- #### FDToLogic(filterData)
364
+ #### validateDate(date, format)
410
365
 
411
- Generates a Filter Logic structure from Filter Data structure.
366
+ Validate a string date depending on giving format
367
+ - If the string is a token label, the function lets it pass.
368
+ - Otherwise depends of the format
369
+ - Some escenarios the string is a mix of token labels and dates
412
370
 
413
371
 
414
372
 
@@ -417,7 +375,8 @@ Generates a Filter Logic structure from Filter Data structure.
417
375
 
418
376
  | Name | Type | Description | |
419
377
  | ---- | ---- | ----------- | -------- |
420
- | filterData | | The filter data object. | &nbsp; |
378
+ | date | | String of date | &nbsp; |
379
+ | format | | String of the format to validate | &nbsp; |
421
380
 
422
381
 
423
382
 
@@ -425,13 +384,17 @@ Generates a Filter Logic structure from Filter Data structure.
425
384
  ##### Returns
426
385
 
427
386
 
428
- - a filter logic array
387
+ - True if it is valid or not. Undefined if date is undefined
429
388
 
430
389
 
431
390
 
432
- #### getLogicBodyFromFD21(filterData)
433
391
 
434
- Gets the logic body
392
+ ### dist/dates/helpers/validateDateByDateFormat.js
393
+
394
+
395
+ #### validateDateByDateFormat(date, dateForma)
396
+
397
+ Validates the given string as Date by its date format.
435
398
 
436
399
 
437
400
 
@@ -440,7 +403,8 @@ Gets the logic body
440
403
 
441
404
  | Name | Type | Description | |
442
405
  | ---- | ---- | ----------- | -------- |
443
- | filterData | | The filter data object | &nbsp; |
406
+ | date | | a string to validate as date form | &nbsp; |
407
+ | dateForma | | the format of the date to validate the string | &nbsp; |
444
408
 
445
409
 
446
410
 
@@ -448,17 +412,17 @@ Gets the logic body
448
412
  ##### Returns
449
413
 
450
414
 
451
- - a filter logic array
415
+ - true: the string is a valida date
452
416
 
453
417
 
454
418
 
455
419
 
456
- ### dist/filters/adapters/FDToUI.js
420
+ ### dist/dates/range/getDateRange.js
457
421
 
458
422
 
459
- #### FDToUI(filterData, datasetsInfo)
423
+ #### getDateRange(value, dateGroupLabel, withTime)
460
424
 
461
- Generates a UI filter structure from Filter Data structure.
425
+ Get date range object from a string date value
462
426
 
463
427
 
464
428
 
@@ -467,61 +431,74 @@ Generates a UI filter structure from Filter Data structure.
467
431
 
468
432
  | Name | Type | Description | |
469
433
  | ---- | ---- | ----------- | -------- |
470
- | filterData | | The filter data object. | &nbsp; |
471
- | datasetsInfo | | Collection of datasets information | &nbsp; |
472
-
434
+ | value | `String` | string date value | &nbsp; |
435
+ | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | &nbsp; |
436
+ | withTime | `Boolean` | determines if the date range will include time. Default is true | &nbsp; |
473
437
 
474
438
 
475
439
 
476
- ##### Returns
477
440
 
441
+ ##### Examples
478
442
 
479
- - a UI Filters structure
443
+ ```javascript
444
+ // 1) Year:
445
+ getDateRange('2020', 'YEAR');
446
+ // Will return:
447
+ {
448
+ from: '01/01/2020 00:00:00',
449
+ to: '12/31/2020 23:59:59'
450
+ }
480
451
 
452
+ // 2) Quarter:
453
+ getDateRange('Q3 2020', 'QUARTER');
454
+ // Will return:
455
+ {
456
+ from: '07/01/2020 00:00:00',
457
+ to: '09/30/2020 23:59:59'
458
+ }
481
459
 
460
+ // 3) Month:
461
+ getDateRange('Oct 2020', 'MONTH');
462
+ // Will return:
463
+ {
464
+ from: '10/01/2020 00:00:00',
465
+ to: '10/31/2020 23:59:59'
466
+ }
467
+ ```
482
468
 
483
- #### FD21ToUI(scopes, section, version, datasetsInfo)
484
469
 
485
- Generates a UI filter Structure from the Filter Data structure v2.1
470
+ ##### Returns
486
471
 
487
472
 
473
+ - `Object` an object with the date range with two string date properties: from and to
488
474
 
489
475
 
490
- ##### Parameters
491
476
 
492
- | Name | Type | Description | |
493
- | ---- | ---- | ----------- | -------- |
494
- | scopes | | The filter scope section | &nbsp; |
495
- | section | | The filter section. | &nbsp; |
496
- | version | | The version of the filter structure | &nbsp; |
497
- | datasetsInfo | | Collection of datasets information | &nbsp; |
498
477
 
478
+ ### dist/dates/relative/Adapter.js
499
479
 
500
480
 
481
+ #### value()
501
482
 
502
- ##### Returns
483
+ Resolves statement and returns statement value
503
484
 
504
485
 
505
- - a UI filter Structure
506
486
 
507
487
 
508
488
 
509
489
 
510
- ### dist/filters/adapters/UIToFD.js
490
+ ##### Returns
511
491
 
512
492
 
513
- #### UIToFD(filterData)
493
+ - `AbsoluteRange` `string`
514
494
 
515
- Generates a Filter Data Structure structure from UI Filter Data structure.
516
495
 
517
496
 
497
+ #### valueAsAnchor()
518
498
 
499
+ Resolves statement as an anchor
519
500
 
520
- ##### Parameters
521
501
 
522
- | Name | Type | Description | |
523
- | ---- | ---- | ----------- | -------- |
524
- | filterData | | The UI filter data object. | &nbsp; |
525
502
 
526
503
 
527
504
 
@@ -529,74 +506,63 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
529
506
  ##### Returns
530
507
 
531
508
 
532
- - a Filter Data structure
509
+ - `string`
533
510
 
534
511
 
535
512
 
536
- #### UI21ToFD(uFilterData, version)
513
+ #### _statementToRange() *private method*
537
514
 
538
- Builds the Fitler Data structure from UI filter data
515
+ Convert verbal statement to range value
539
516
 
540
517
 
541
518
 
542
519
 
543
- ##### Parameters
544
520
 
545
- | Name | Type | Description | |
546
- | ---- | ---- | ----------- | -------- |
547
- | uFilterData | | The UI filter Data object | &nbsp; |
548
- | version | | the version of the structure | &nbsp; |
549
521
 
522
+ ##### Returns
550
523
 
551
524
 
525
+ - `AbsoluteRange`
552
526
 
553
- ##### Returns
554
527
 
555
528
 
556
- -
529
+ #### _resolveAsThis() *private method*
557
530
 
531
+ Apply 'this' cursor logic to statement
558
532
 
559
533
 
560
534
 
561
- ### dist/filters/adapters/UIToFlatUI.js
562
535
 
563
536
 
564
- #### UIToFlatUI(filterData, datasetsInfo)
565
537
 
566
- Generates a Flattened UI filter structure from UI Filter Data structure.
538
+ ##### Returns
567
539
 
568
540
 
541
+ - `AbsoluteStatement`
569
542
 
570
543
 
571
- ##### Parameters
572
544
 
573
- | Name | Type | Description | |
574
- | ---- | ---- | ----------- | -------- |
575
- | filterData | | The UI filter data object. | &nbsp; |
576
- | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
545
+ #### _resolveAsTheLast() *private method*
577
546
 
547
+ Apply 'the last' cursor logic to statement
578
548
 
579
549
 
580
550
 
581
- ##### Returns
582
551
 
583
552
 
584
- - a flattened UI filters array
585
553
 
554
+ ##### Returns
586
555
 
587
556
 
588
- #### UI21ToFlatUI(scopes)
557
+ - `AbsoluteStatement`
589
558
 
590
- Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
591
559
 
592
560
 
561
+ #### _resolveAsTheNext() *private method*
593
562
 
563
+ Apply 'the next' cursor logic to statement
594
564
 
595
- ##### Parameters
596
565
 
597
- | Name | Type | Description | |
598
- | ---- | ---- | ----------- | -------- |
599
- | scopes | | The filter scope section | &nbsp; |
600
566
 
601
567
 
602
568
 
@@ -604,18 +570,13 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
604
570
  ##### Returns
605
571
 
606
572
 
607
- - a flattened UI filters array
608
-
609
-
610
-
573
+ - `AbsoluteStatement`
611
574
 
612
- ### dist/filters/adapters/adaptDateGroupingProperty.js
613
575
 
614
576
 
615
- #### adaptDateGroupingProperty(property)
577
+ #### replaceNowToken(value, now)
616
578
 
617
- [TODO: For 2022, eliminate this adapter]
618
- Get the new property base on the old date grouping properties
579
+ Replace '@now' token inside a string
619
580
 
620
581
 
621
582
 
@@ -624,7 +585,8 @@ Get the new property base on the old date grouping properties
624
585
 
625
586
  | Name | Type | Description | |
626
587
  | ---- | ---- | ----------- | -------- |
627
- | property | | | &nbsp; |
588
+ | value | `string` | | &nbsp; |
589
+ | now | `Date` | | &nbsp; |
628
590
 
629
591
 
630
592
 
@@ -632,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,18 @@ 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/adaptFilterValues.js
994
1007
 
995
1008
 
996
- #### logicToFD(filterData, version)
1009
+ #### adaptFilterValues(filter)
997
1010
 
998
- Generates a filter data structure from the old logic structure (v2.0).
1011
+ [TODO: For 2022, eliminate this adapter]
1012
+ Gets an adapted filter value array. Validates the enabled property and sets
999
1013
 
1000
1014
 
1001
1015
 
@@ -1004,8 +1018,7 @@ Generates a filter data structure from the old logic structure (v2.0).
1004
1018
 
1005
1019
  | Name | Type | Description | |
1006
1020
  | ---- | ---- | ----------- | -------- |
1007
- | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1008
- | version | | Tag for the version of the filter data structure | &nbsp; |
1021
+ | filter | | The filter | &nbsp; |
1009
1022
 
1010
1023
 
1011
1024
 
@@ -1013,17 +1026,17 @@ Generates a filter data structure from the old logic structure (v2.0).
1013
1026
  ##### Returns
1014
1027
 
1015
1028
 
1016
- - a Filter Data.
1029
+ - A new value array with the filled properties.
1017
1030
 
1018
1031
 
1019
1032
 
1020
1033
 
1021
- ### dist/filters/adapters/logicToFlatUI.js
1034
+ ### dist/filters/adapters/flatUIToFD.js
1022
1035
 
1023
1036
 
1024
- #### logicToFlatUI(logics)
1037
+ #### flatUIToFD(uFilters, version)
1025
1038
 
1026
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1039
+ Generates a filter data structure from the flatttened UI filters.
1027
1040
 
1028
1041
 
1029
1042
 
@@ -1032,7 +1045,8 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1032
1045
 
1033
1046
  | Name | Type | Description | |
1034
1047
  | ---- | ---- | ----------- | -------- |
1035
- | logics | | The old logic structure (v2.0) | &nbsp; |
1048
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1049
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1036
1050
 
1037
1051
 
1038
1052
 
@@ -1040,13 +1054,599 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1040
1054
  ##### Returns
1041
1055
 
1042
1056
 
1043
- - The Flattened UI Filters array
1057
+ - a Filter Data.
1044
1058
 
1045
1059
 
1046
1060
 
1047
- #### getFilter(filters, filter, getIndex)
1061
+ #### buildScopes(fbFilters)
1062
+
1063
+ Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
1064
+ Also, adds and organizes filters by datasets
1065
+
1066
+
1067
+
1068
+
1069
+ ##### Parameters
1070
+
1071
+ | Name | Type | Description | |
1072
+ | ---- | ---- | ----------- | -------- |
1073
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1074
+
1075
+
1076
+
1077
+
1078
+ ##### Returns
1079
+
1080
+
1081
+ - an array of scopes structure.
1082
+
1083
+
1084
+
1085
+ #### buildScope(uFilter)
1086
+
1087
+ Gets an scope structure for the filter data
1088
+
1089
+
1090
+
1091
+
1092
+ ##### Parameters
1093
+
1094
+ | Name | Type | Description | |
1095
+ | ---- | ---- | ----------- | -------- |
1096
+ | uFilter | | UI structure filter | &nbsp; |
1097
+
1098
+
1099
+
1100
+
1101
+ ##### Returns
1102
+
1103
+
1104
+ - an scope structure
1105
+
1106
+
1107
+
1108
+ #### buildDataset(uFilter)
1109
+
1110
+ Gets an dataset structure for the filter data
1111
+
1112
+
1113
+
1114
+
1115
+ ##### Parameters
1116
+
1117
+ | Name | Type | Description | |
1118
+ | ---- | ---- | ----------- | -------- |
1119
+ | uFilter | | a UI structure filter | &nbsp; |
1120
+
1121
+
1122
+
1123
+
1124
+ ##### Returns
1125
+
1126
+
1127
+ - an dataset structure
1128
+
1129
+
1130
+
1131
+ #### buildFilter(uFilter)
1132
+
1133
+ Gets an filter structure for the filter data
1134
+
1135
+
1136
+
1137
+
1138
+ ##### Parameters
1139
+
1140
+ | Name | Type | Description | |
1141
+ | ---- | ---- | ----------- | -------- |
1142
+ | uFilter | | a UI structure filter | &nbsp; |
1143
+
1144
+
1145
+
1146
+
1147
+ ##### Returns
1148
+
1149
+
1150
+ - an filter structure
1151
+
1152
+
1153
+
1154
+
1155
+ ### dist/filters/adapters/flatUIToLogic.js
1156
+
1157
+
1158
+ #### flatUIToLogic(uFilter)
1159
+
1160
+ Generates a Logic structure from flattened UI filters
1161
+
1162
+
1163
+
1164
+
1165
+ ##### Parameters
1166
+
1167
+ | Name | Type | Description | |
1168
+ | ---- | ---- | ----------- | -------- |
1169
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1170
+
1171
+
1172
+
1173
+
1174
+ ##### Returns
1175
+
1176
+
1177
+ - The logic structure
1178
+
1179
+
1180
+
1181
+
1182
+ ### dist/filters/adapters/flatUIToOldLogic.js
1183
+
1184
+
1185
+ #### flatUIToOldLogic(uFilters)
1186
+
1187
+ Generates a Logic structure from flattened UI filters
1188
+
1189
+
1190
+
1191
+
1192
+ ##### Parameters
1193
+
1194
+ | Name | Type | Description | |
1195
+ | ---- | ---- | ----------- | -------- |
1196
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1197
+
1198
+
1199
+
1200
+
1201
+ ##### Returns
1202
+
1203
+
1204
+ - The logic structure
1205
+
1206
+
1207
+
1208
+
1209
+ ### dist/filters/adapters/flatUIToUI.js
1210
+
1211
+
1212
+ #### flatUIToUI(uFilters, version)
1213
+
1214
+ Generates a UI filter data structure from the flatttened UI filters.
1215
+
1216
+
1217
+
1218
+
1219
+ ##### Parameters
1220
+
1221
+ | Name | Type | Description | |
1222
+ | ---- | ---- | ----------- | -------- |
1223
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1224
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1225
+
1226
+
1227
+
1228
+
1229
+ ##### Returns
1230
+
1231
+
1232
+ - a UI Filter Data.
1233
+
1234
+
1235
+
1236
+ #### buildScopes(fbFilters)
1237
+
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
1240
+
1241
+
1242
+
1243
+
1244
+ ##### Parameters
1245
+
1246
+ | Name | Type | Description | |
1247
+ | ---- | ---- | ----------- | -------- |
1248
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1249
+
1250
+
1251
+
1252
+
1253
+ ##### Returns
1254
+
1255
+
1256
+ - an array of scopes structure.
1257
+
1258
+
1259
+
1260
+ #### buildScope(uFilter)
1261
+
1262
+ Gets an scope structure for the UI filter data
1263
+
1264
+
1265
+
1266
+
1267
+ ##### Parameters
1268
+
1269
+ | Name | Type | Description | |
1270
+ | ---- | ---- | ----------- | -------- |
1271
+ | uFilter | | UI structure filter | &nbsp; |
1272
+
1273
+
1274
+
1275
+
1276
+ ##### Returns
1277
+
1278
+
1279
+ - an scope structure
1280
+
1281
+
1282
+
1283
+ #### buildDataset(uFilter)
1284
+
1285
+ Gets an dataset structure for the UI filter data
1286
+
1287
+
1288
+
1289
+
1290
+ ##### Parameters
1291
+
1292
+ | Name | Type | Description | |
1293
+ | ---- | ---- | ----------- | -------- |
1294
+ | uFilter | | a UI structure filter | &nbsp; |
1295
+
1296
+
1297
+
1298
+
1299
+ ##### Returns
1300
+
1301
+
1302
+ - an dataset structure
1303
+
1304
+
1305
+
1306
+ #### buildFilter(uFilter)
1307
+
1308
+ Gets an filter structure for the UI filter data
1309
+
1310
+
1311
+
1312
+
1313
+ ##### Parameters
1314
+
1315
+ | Name | Type | Description | |
1316
+ | ---- | ---- | ----------- | -------- |
1317
+ | uFilter | | a UI structure filter | &nbsp; |
1318
+
1319
+
1320
+
1321
+
1322
+ ##### Returns
1323
+
1324
+
1325
+ - an filter structure
1326
+
1327
+
1328
+
1329
+
1330
+ ### dist/filters/adapters/logicToFD.js
1331
+
1332
+
1333
+ #### logicToFD(filterData, version)
1334
+
1335
+ Generates a filter data structure from the old logic structure (v2.0).
1336
+
1337
+
1338
+
1339
+
1340
+ ##### Parameters
1341
+
1342
+ | Name | Type | Description | |
1343
+ | ---- | ---- | ----------- | -------- |
1344
+ | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1345
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1346
+
1347
+
1348
+
1349
+
1350
+ ##### Returns
1351
+
1352
+
1353
+ - a Filter Data.
1354
+
1355
+
1356
+
1357
+
1358
+ ### dist/filters/adapters/logicToFlatUI.js
1359
+
1360
+
1361
+ #### logicToFlatUI(logics)
1362
+
1363
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1364
+
1365
+
1366
+
1367
+
1368
+ ##### Parameters
1369
+
1370
+ | Name | Type | Description | |
1371
+ | ---- | ---- | ----------- | -------- |
1372
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1373
+
1374
+
1375
+
1376
+
1377
+ ##### Returns
1378
+
1379
+
1380
+ - The Flattened UI Filters array
1381
+
1382
+
1383
+
1384
+ #### getFilter(filters, filter, getIndex)
1385
+
1386
+ Get the filter or the index of the given array, validating an old filter structure.
1387
+
1388
+
1389
+
1390
+
1391
+ ##### Parameters
1392
+
1393
+ | Name | Type | Description | |
1394
+ | ---- | ---- | ----------- | -------- |
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; |
1398
+
1399
+
1400
+
1401
+
1402
+ ##### Returns
1403
+
1404
+
1405
+ - the index or the UI filter object
1406
+
1407
+
1408
+
1409
+ #### refineRankingValues(values, uiValues)
1410
+
1411
+ Refines the values of the Ranking column type.
1412
+
1413
+
1414
+
1415
+
1416
+ ##### Parameters
1417
+
1418
+ | Name | Type | Description | |
1419
+ | ---- | ---- | ----------- | -------- |
1420
+ | values | | the Array of Ranking values | &nbsp; |
1421
+ | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1422
+
1423
+
1424
+
1425
+
1426
+ ##### Returns
1427
+
1428
+
1429
+ - the array of Ranking values
1430
+
1431
+
1432
+
1433
+
1434
+ ### dist/filters/adapters/logicToUI.js
1435
+
1436
+
1437
+ #### logicToUI(uFilters, datasetsInfo)
1438
+
1439
+ Generates a UI filter structure from the old logic structure (v2.0).
1440
+
1441
+
1442
+
1443
+
1444
+ ##### Parameters
1445
+
1446
+ | Name | Type | Description | |
1447
+ | ---- | ---- | ----------- | -------- |
1448
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1449
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1450
+
1451
+
1452
+
1453
+
1454
+ ##### Returns
1455
+
1456
+
1457
+ - a UI Filter Data.
1458
+
1459
+
1460
+
1461
+
1462
+ ### dist/filters/adapters/transformFilters.js
1463
+
1464
+
1465
+ #### transformFilters(oldFiltersObj, section)
1466
+
1467
+ Transform the old filters structure into the new one
1468
+
1469
+
1470
+
1471
+
1472
+ ##### Parameters
1473
+
1474
+ | Name | Type | Description | |
1475
+ | ---- | ---- | ----------- | -------- |
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; |
1478
+
1479
+
1480
+
1481
+
1482
+ ##### Examples
1483
+
1484
+ ```javascript
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');
1530
+ ```
1531
+
1532
+
1533
+ ##### Returns
1534
+
1535
+
1536
+ - `Object` an object with the new filters structure
1537
+
1538
+
1539
+
1540
+
1541
+ ### dist/filters/classes/FilterInputErrorHandler.js
1542
+
1543
+
1544
+ #### new FilterInputErrorHandler()
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+ ##### Returns
1554
+
1555
+
1556
+ - `Void`
1557
+
1558
+
1559
+
1560
+
1561
+ ### dist/filters/helpers/applyHierarchyForAggFilters.js
1562
+
1563
+
1564
+ #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1565
+
1566
+ [TODO: Make a proper description for this function]
1567
+
1568
+
1569
+
1570
+
1571
+ ##### Parameters
1572
+
1573
+ | Name | Type | Description | |
1574
+ | ---- | ---- | ----------- | -------- |
1575
+ | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1576
+ | scopes | | | &nbsp; |
1577
+ | currentScope | | | &nbsp; |
1578
+
1579
+
1580
+
1581
+
1582
+ ##### Returns
1583
+
1584
+
1585
+ -
1586
+
1587
+
1588
+
1589
+
1590
+ ### dist/filters/helpers/getAvailableScopes.js
1591
+
1592
+
1593
+ #### getAvailableScopes(config)
1594
+
1595
+ Gets Scopes/Scope IDs by given IDs
1596
+
1597
+
1598
+
1599
+
1600
+ ##### Parameters
1601
+
1602
+ | Name | Type | Description | |
1603
+ | ---- | ---- | ----------- | -------- |
1604
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
1605
+
1606
+
1607
+
1608
+
1609
+ ##### Returns
1610
+
1611
+
1612
+ - a Scopes/Scope IDs array
1613
+
1614
+
1615
+
1616
+
1617
+ ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1618
+
1619
+
1620
+ #### getAvailableScopesIDsByConfig(config)
1621
+
1622
+ Gets the Scopes IDS for the Available Scope function by any config
1623
+
1624
+
1625
+
1626
+
1627
+ ##### Parameters
1628
+
1629
+ | Name | Type | Description | |
1630
+ | ---- | ---- | ----------- | -------- |
1631
+ | config | | any config | &nbsp; |
1048
1632
 
1049
- Get the filter or the index of the given array, validating an old filter structure.
1633
+
1634
+
1635
+
1636
+ ##### Returns
1637
+
1638
+
1639
+ - a Available Scope IDS config
1640
+
1641
+
1642
+
1643
+
1644
+ ### dist/filters/helpers/getScopesByHierarchy.js
1645
+
1646
+
1647
+ #### getScopesByHierarchy(scopes, currentScope)
1648
+
1649
+ [TODO: Make a description for this]
1050
1650
 
1051
1651
 
1052
1652
 
@@ -1055,9 +1655,8 @@ Get the filter or the index of the given array, validating an old filter structu
1055
1655
 
1056
1656
  | Name | Type | Description | |
1057
1657
  | ---- | ---- | ----------- | -------- |
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; |
1658
+ | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1659
+ | currentScope | | Current scope type | &nbsp; |
1061
1660
 
1062
1661
 
1063
1662
 
@@ -1065,13 +1664,17 @@ Get the filter or the index of the given array, validating an old filter structu
1065
1664
  ##### Returns
1066
1665
 
1067
1666
 
1068
- - the index or the UI filter object
1667
+ - A new array of Scopes/Scope IDs
1069
1668
 
1070
1669
 
1071
1670
 
1072
- #### refineRankingValues(values, uiValues)
1073
1671
 
1074
- Refines the values of the Ranking column type.
1672
+ ### dist/general/array/delete.js
1673
+
1674
+
1675
+ #### ArrayDelete(array, index)
1676
+
1677
+ Inmutable Array Item deletion
1075
1678
 
1076
1679
 
1077
1680
 
@@ -1080,8 +1683,8 @@ Refines the values of the Ranking column type.
1080
1683
 
1081
1684
  | Name | Type | Description | |
1082
1685
  | ---- | ---- | ----------- | -------- |
1083
- | values | | the Array of Ranking values | &nbsp; |
1084
- | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1686
+ | array | `Array` | a collection of items to delete | &nbsp; |
1687
+ | index | `Number` | the position of the item to delete | &nbsp; |
1085
1688
 
1086
1689
 
1087
1690
 
@@ -1089,17 +1692,20 @@ Refines the values of the Ranking column type.
1089
1692
  ##### Returns
1090
1693
 
1091
1694
 
1092
- - the array of Ranking values
1695
+ - a new Array or the given parameter when is empty or not an array
1093
1696
 
1094
1697
 
1095
1698
 
1096
1699
 
1097
- ### dist/filters/adapters/logicToUI.js
1700
+ ### dist/general/array/filterNestedTree.js
1098
1701
 
1099
1702
 
1100
- #### logicToUI(uFilters, datasetsInfo)
1703
+ #### filterNestedTree(arr, childArrKey, condition)
1101
1704
 
1102
- Generates a UI filter structure from the old logic structure (v2.0).
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
1103
1709
 
1104
1710
 
1105
1711
 
@@ -1108,8 +1714,9 @@ Generates a UI filter structure from the old logic structure (v2.0).
1108
1714
 
1109
1715
  | Name | Type | Description | |
1110
1716
  | ---- | ---- | ----------- | -------- |
1111
- | uFilters | | Array of filters from old logic structure | &nbsp; |
1112
- | datasetsInfo | | Collection of datasets information | &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; |
1113
1720
 
1114
1721
 
1115
1722
 
@@ -1117,17 +1724,17 @@ Generates a UI filter structure from the old logic structure (v2.0).
1117
1724
  ##### Returns
1118
1725
 
1119
1726
 
1120
- - a UI Filter Data.
1727
+ - array filtered
1121
1728
 
1122
1729
 
1123
1730
 
1124
1731
 
1125
- ### dist/filters/adapters/transformFilters.js
1732
+ ### dist/general/array/flattenDeep.js
1126
1733
 
1127
1734
 
1128
- #### transformFilters(oldFiltersObj, section)
1735
+ #### flattenDeep(arr)
1129
1736
 
1130
- Transform the old filters structure into the new one
1737
+ Flat deeply an array
1131
1738
 
1132
1739
 
1133
1740
 
@@ -1136,77 +1743,53 @@ Transform the old filters structure into the new one
1136
1743
 
1137
1744
  | Name | Type | Description | |
1138
1745
  | ---- | ---- | ----------- | -------- |
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; |
1746
+ | arr | | Array to flat deeply | &nbsp; |
1141
1747
 
1142
1748
 
1143
1749
 
1144
1750
 
1145
- ##### Examples
1751
+ ##### Returns
1146
1752
 
1147
- ```javascript
1148
1753
 
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
- };
1754
+ - flatten array
1755
+
1756
+
1757
+
1758
+
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
1765
+
1766
+
1767
+
1768
+
1769
+ ##### Parameters
1770
+
1771
+ | Name | Type | Description | |
1772
+ | ---- | ---- | ----------- | -------- |
1773
+ | array | | | &nbsp; |
1774
+ | callback | | function callback | &nbsp; |
1775
+
1191
1776
 
1192
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1193
- ```
1194
1777
 
1195
1778
 
1196
1779
  ##### Returns
1197
1780
 
1198
1781
 
1199
- - `Object` an object with the new filters structure
1782
+ - the first index of the array. -1 when the condition is not satisfied
1200
1783
 
1201
1784
 
1202
1785
 
1203
1786
 
1204
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
1787
+ ### dist/general/array/getLastIndexFromArray.js
1205
1788
 
1206
1789
 
1207
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1790
+ #### getLastIndexFromArray(array, callback)
1208
1791
 
1209
- [TODO: Make a proper description for this function]
1792
+ Gets the last index from the array by a callback condition
1210
1793
 
1211
1794
 
1212
1795
 
@@ -1215,9 +1798,8 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1215
1798
 
1216
1799
  | Name | Type | Description | |
1217
1800
  | ---- | ---- | ----------- | -------- |
1218
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1219
- | scopes | | | &nbsp; |
1220
- | currentScope | | | &nbsp; |
1801
+ | array | | | &nbsp; |
1802
+ | callback | | function callback | &nbsp; |
1221
1803
 
1222
1804
 
1223
1805
 
@@ -1225,17 +1807,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1225
1807
  ##### Returns
1226
1808
 
1227
1809
 
1228
- -
1810
+ - the last index of the array. -1 when the condition is not satisfied
1229
1811
 
1230
1812
 
1231
1813
 
1232
1814
 
1233
- ### dist/filters/helpers/getAvailableScopes.js
1815
+ ### dist/general/function/debounce.js
1234
1816
 
1235
1817
 
1236
- #### getAvailableScopes(config)
1818
+ #### debounce(fn, time)
1237
1819
 
1238
- Gets Scopes/Scope IDs by given IDs
1820
+ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1239
1821
 
1240
1822
 
1241
1823
 
@@ -1244,7 +1826,8 @@ Gets Scopes/Scope IDs by given IDs
1244
1826
 
1245
1827
  | Name | Type | Description | |
1246
1828
  | ---- | ---- | ----------- | -------- |
1247
- | config | | given Differnts IDs in order set a available scope | &nbsp; |
1829
+ | fn | `Function` | original Function | &nbsp; |
1830
+ | time | `Number` | default 500ms | &nbsp; |
1248
1831
 
1249
1832
 
1250
1833
 
@@ -1252,17 +1835,17 @@ Gets Scopes/Scope IDs by given IDs
1252
1835
  ##### Returns
1253
1836
 
1254
1837
 
1255
- - a Scopes/Scope IDs array
1838
+ - `Function` debounced functions
1256
1839
 
1257
1840
 
1258
1841
 
1259
1842
 
1260
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1843
+ ### dist/general/function/throttled.js
1261
1844
 
1262
1845
 
1263
- #### getAvailableScopesIDsByConfig(config)
1846
+ #### throttled(fn, time)
1264
1847
 
1265
- Gets the Scopes IDS for the Available Scope function by any config
1848
+ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1266
1849
 
1267
1850
 
1268
1851
 
@@ -1271,7 +1854,8 @@ Gets the Scopes IDS for the Available Scope function by any config
1271
1854
 
1272
1855
  | Name | Type | Description | |
1273
1856
  | ---- | ---- | ----------- | -------- |
1274
- | config | | any config | &nbsp; |
1857
+ | fn | `Function` | original Function | &nbsp; |
1858
+ | time | `Number` | default 500ms | &nbsp; |
1275
1859
 
1276
1860
 
1277
1861
 
@@ -1279,17 +1863,18 @@ Gets the Scopes IDS for the Available Scope function by any config
1279
1863
  ##### Returns
1280
1864
 
1281
1865
 
1282
- - a Available Scope IDS config
1866
+ - `Function` throttled function
1283
1867
 
1284
1868
 
1285
1869
 
1286
1870
 
1287
- ### dist/filters/helpers/getScopesByHierarchy.js
1871
+ ### dist/general/mix/compareDeep.js
1288
1872
 
1289
1873
 
1290
- #### getScopesByHierarchy(scopes, currentScope)
1874
+ #### compareDeep(object1, object2)
1291
1875
 
1292
- [TODO: Make a description for this]
1876
+ Compares two objects to know if they are equals. Go across nested objects.
1877
+ Includes arrays in the comparison.
1293
1878
 
1294
1879
 
1295
1880
 
@@ -1298,8 +1883,8 @@ Gets the Scopes IDS for the Available Scope function by any config
1298
1883
 
1299
1884
  | Name | Type | Description | |
1300
1885
  | ---- | ---- | ----------- | -------- |
1301
- | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1302
- | currentScope | | Current scope type | &nbsp; |
1886
+ | object1 | | First Object to compare | &nbsp; |
1887
+ | object2 | | Second Object to compare | &nbsp; |
1303
1888
 
1304
1889
 
1305
1890
 
@@ -1307,17 +1892,17 @@ Gets the Scopes IDS for the Available Scope function by any config
1307
1892
  ##### Returns
1308
1893
 
1309
1894
 
1310
- - A new array of Scopes/Scope IDs
1895
+ - True: objects are equal. False: Objects are not equal. Undefined: invalid
1311
1896
 
1312
1897
 
1313
1898
 
1314
1899
 
1315
- ### dist/general/array/delete.js
1900
+ ### dist/general/mix/getTag.js
1316
1901
 
1317
1902
 
1318
- #### ArrayDelete(array, index)
1903
+ #### getTag(value)
1319
1904
 
1320
- Inmutable Array Item deletion
1905
+ Gets the `toStringTag` of `value`.
1321
1906
 
1322
1907
 
1323
1908
 
@@ -1326,8 +1911,7 @@ Inmutable Array Item deletion
1326
1911
 
1327
1912
  | Name | Type | Description | |
1328
1913
  | ---- | ---- | ----------- | -------- |
1329
- | array | `Array` | a collection of items to delete | &nbsp; |
1330
- | index | `Number` | the position of the item to delete | &nbsp; |
1914
+ | value | | The value to query. | &nbsp; |
1331
1915
 
1332
1916
 
1333
1917
 
@@ -1335,20 +1919,73 @@ Inmutable Array Item deletion
1335
1919
  ##### Returns
1336
1920
 
1337
1921
 
1338
- - a new Array or the given parameter when is empty or not an array
1922
+ - `string` Returns the `toStringTag`.
1339
1923
 
1340
1924
 
1341
1925
 
1342
1926
 
1343
- ### dist/general/array/filterNestedTree.js
1927
+ ### dist/general/mix/importScripts.js
1344
1928
 
1345
1929
 
1346
- #### filterNestedTree(arr, childArrKey, condition)
1930
+ #### importScripts(scripts)
1347
1931
 
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
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
1352
1989
 
1353
1990
 
1354
1991
 
@@ -1357,9 +1994,9 @@ Filters a nested tree array by a custom condition on the last child node
1357
1994
 
1358
1995
  | Name | Type | Description | |
1359
1996
  | ---- | ---- | ----------- | -------- |
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; |
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; |
1363
2000
 
1364
2001
 
1365
2002
 
@@ -1367,17 +2004,17 @@ Filters a nested tree array by a custom condition on the last child node
1367
2004
  ##### Returns
1368
2005
 
1369
2006
 
1370
- - array filtered
2007
+ - `Void`
1371
2008
 
1372
2009
 
1373
2010
 
1374
2011
 
1375
- ### dist/general/array/flattenDeep.js
2012
+ ### dist/general/mix/isEmpty.js
1376
2013
 
1377
2014
 
1378
- #### flattenDeep(arr)
2015
+ #### isEmpty(variable, includeFalsy)
1379
2016
 
1380
- Flat deeply an array
2017
+ Validates if the given argument is empty
1381
2018
 
1382
2019
 
1383
2020
 
@@ -1386,7 +2023,8 @@ Flat deeply an array
1386
2023
 
1387
2024
  | Name | Type | Description | |
1388
2025
  | ---- | ---- | ----------- | -------- |
1389
- | arr | | Array to flat deeply | &nbsp; |
2026
+ | variable | | the given variable | &nbsp; |
2027
+ | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
1390
2028
 
1391
2029
 
1392
2030
 
@@ -1394,17 +2032,19 @@ Flat deeply an array
1394
2032
  ##### Returns
1395
2033
 
1396
2034
 
1397
- - flatten array
2035
+ - true: the given argument is empty; false: is not.
1398
2036
 
1399
2037
 
1400
2038
 
1401
2039
 
1402
- ### dist/general/array/getFirstIndexFromArray.js
2040
+ ### dist/general/mix/isNaNV2.js
1403
2041
 
1404
2042
 
1405
- #### getFirstIndexFromArray(array, callback)
2043
+ #### isNaNV2(variable)
1406
2044
 
1407
- Gets the first index from the array by a callback condition
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.
1408
2048
 
1409
2049
 
1410
2050
 
@@ -1413,8 +2053,7 @@ Gets the first index from the array by a callback condition
1413
2053
 
1414
2054
  | Name | Type | Description | |
1415
2055
  | ---- | ---- | ----------- | -------- |
1416
- | array | | | &nbsp; |
1417
- | callback | | function callback | &nbsp; |
2056
+ | variable | | the variable to validate | &nbsp; |
1418
2057
 
1419
2058
 
1420
2059
 
@@ -1422,17 +2061,18 @@ Gets the first index from the array by a callback condition
1422
2061
  ##### Returns
1423
2062
 
1424
2063
 
1425
- - the first index of the array. -1 when the condition is not satisfied
2064
+ - True if variable is a NaN or false otherwise
1426
2065
 
1427
2066
 
1428
2067
 
1429
2068
 
1430
- ### dist/general/array/getLastIndexFromArray.js
2069
+ ### dist/general/mix/isNull.js
1431
2070
 
1432
2071
 
1433
- #### getLastIndexFromArray(array, callback)
2072
+ #### isNull(arg)
1434
2073
 
1435
- Gets the last index from the array by a callback condition
2074
+ return if a given variable is either `null` or `undefined`
2075
+ useful to avoid falsify validating Number Zero (0)
1436
2076
 
1437
2077
 
1438
2078
 
@@ -1441,8 +2081,7 @@ Gets the last index from the array by a callback condition
1441
2081
 
1442
2082
  | Name | Type | Description | |
1443
2083
  | ---- | ---- | ----------- | -------- |
1444
- | array | | | &nbsp; |
1445
- | callback | | function callback | &nbsp; |
2084
+ | arg | `any` | | &nbsp; |
1446
2085
 
1447
2086
 
1448
2087
 
@@ -1450,17 +2089,19 @@ Gets the last index from the array by a callback condition
1450
2089
  ##### Returns
1451
2090
 
1452
2091
 
1453
- - the last index of the array. -1 when the condition is not satisfied
2092
+ - `Boolean`
1454
2093
 
1455
2094
 
1456
2095
 
1457
2096
 
1458
- ### dist/general/function/debounce.js
2097
+ ### dist/general/mix/randomId.js
1459
2098
 
1460
2099
 
1461
- #### debounce(fn, time)
2100
+ #### randomId(length, exclude)
1462
2101
 
1463
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
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.
1464
2105
 
1465
2106
 
1466
2107
 
@@ -1469,8 +2110,8 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1469
2110
 
1470
2111
  | Name | Type | Description | |
1471
2112
  | ---- | ---- | ----------- | -------- |
1472
- | fn | `Function` | original Function | &nbsp; |
1473
- | time | `Number` | default 500ms | &nbsp; |
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; |
1474
2115
 
1475
2116
 
1476
2117
 
@@ -1478,17 +2119,19 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1478
2119
  ##### Returns
1479
2120
 
1480
2121
 
1481
- - `Function` debounced functions
2122
+ - `String` Random string
1482
2123
 
1483
2124
 
1484
2125
 
1485
2126
 
1486
- ### dist/general/function/throttled.js
2127
+ ### dist/general/mix/size.js
1487
2128
 
1488
2129
 
1489
- #### throttled(fn, time)
2130
+ #### size(obj)
1490
2131
 
1491
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
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.
1492
2135
 
1493
2136
 
1494
2137
 
@@ -1497,8 +2140,7 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1497
2140
 
1498
2141
  | Name | Type | Description | |
1499
2142
  | ---- | ---- | ----------- | -------- |
1500
- | fn | `Function` | original Function | &nbsp; |
1501
- | time | `Number` | default 500ms | &nbsp; |
2143
+ | obj | `Any` | Any object-type variable | &nbsp; |
1502
2144
 
1503
2145
 
1504
2146
 
@@ -1506,7 +2148,7 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1506
2148
  ##### Returns
1507
2149
 
1508
2150
 
1509
- - `Function` throttled function
2151
+ - `Number` the size of the given variable
1510
2152
 
1511
2153
 
1512
2154
 
@@ -1757,207 +2399,16 @@ The second given argument to the first given argument.
1757
2399
 
1758
2400
 
1759
2401
 
1760
- ##### Returns
1761
-
1762
-
1763
- - a new merged object
1764
-
1765
-
1766
-
1767
- #### isValid(obj1, obj2)
1768
-
1769
- Validates if the two arguments are objects
1770
-
1771
-
1772
-
1773
-
1774
- ##### Parameters
1775
-
1776
- | Name | Type | Description | |
1777
- | ---- | ---- | ----------- | -------- |
1778
- | obj1 | | The target object | &nbsp; |
1779
- | obj2 | | The object to be merged | &nbsp; |
1780
-
1781
-
1782
-
1783
-
1784
- ##### Returns
1785
-
1786
-
1787
- - true: they are valid; false: they are not
1788
-
1789
-
1790
-
1791
- #### getParamsToMergeDeep(settings)
1792
-
1793
- Validates and gets the settings with all set parameters.
1794
-
1795
-
1796
-
1797
-
1798
- ##### Parameters
1799
-
1800
- | Name | Type | Description | |
1801
- | ---- | ---- | ----------- | -------- |
1802
- | settings | | the settings object | &nbsp; |
1803
-
1804
-
1805
-
1806
-
1807
- ##### Returns
1808
-
1809
-
1810
- - a new settings object with all set parameters.
1811
-
1812
-
1813
-
1814
-
1815
- ### dist/general/object/objectCopy.js
1816
-
1817
-
1818
- #### objectCopy(entity, cache)
1819
-
1820
- Created a new reference of the given argument
1821
-
1822
-
1823
-
1824
-
1825
- ##### Parameters
1826
-
1827
- | Name | Type | Description | |
1828
- | ---- | ---- | ----------- | -------- |
1829
- | entity | | The variable to be copied | &nbsp; |
1830
- | cache | | | &nbsp; |
1831
-
1832
-
1833
-
1834
-
1835
- ##### Returns
1836
-
1837
-
1838
- - A new reference of the given argument
1839
-
1840
-
1841
-
1842
-
1843
- ### dist/general/object/omit.js
1844
-
1845
-
1846
- #### omit(obj, props)
1847
-
1848
- return a new Object excluding attributes in _props_ list
1849
-
1850
-
1851
-
1852
-
1853
- ##### Parameters
1854
-
1855
- | Name | Type | Description | |
1856
- | ---- | ---- | ----------- | -------- |
1857
- | obj | `Object` | base object | &nbsp; |
1858
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1859
-
1860
-
1861
-
1862
-
1863
- ##### Returns
1864
-
1865
-
1866
- - `Object` clean object
1867
-
1868
-
1869
-
1870
-
1871
- ### dist/general/object/pick.js
1872
-
1873
-
1874
- #### pick(baseObject, keys)
1875
-
1876
- return a new object just with attributes in _keys_ list
1877
-
1878
-
1879
-
1880
-
1881
- ##### Parameters
1882
-
1883
- | Name | Type | Description | |
1884
- | ---- | ---- | ----------- | -------- |
1885
- | baseObject | `Object` | base object | &nbsp; |
1886
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1887
-
1888
-
1889
-
1890
-
1891
- ##### Returns
1892
-
1893
-
1894
- - `Object` new object just with desired attributes
1895
-
1896
-
1897
-
1898
-
1899
- ### dist/general/object/serialize.js
1900
-
1901
-
1902
- #### serialize(obj)
1903
-
1904
- serialize object to url param
1905
-
1906
-
1907
-
1908
-
1909
- ##### Parameters
1910
-
1911
- | Name | Type | Description | |
1912
- | ---- | ---- | ----------- | -------- |
1913
- | obj | | - Object to be serialized | &nbsp; |
1914
-
1915
-
1916
-
1917
-
1918
- ##### Returns
1919
-
1920
-
1921
- - `Void`
1922
-
1923
-
1924
-
1925
-
1926
- ### dist/general/mix/compareDeep.js
1927
-
1928
-
1929
- #### compareDeep(object1, object2)
1930
-
1931
- Compares two objects to know if they are equals. Go across nested objects.
1932
- Includes arrays in the comparison.
1933
-
1934
-
1935
-
1936
-
1937
- ##### Parameters
1938
-
1939
- | Name | Type | Description | |
1940
- | ---- | ---- | ----------- | -------- |
1941
- | object1 | | First Object to compare | &nbsp; |
1942
- | object2 | | Second Object to compare | &nbsp; |
1943
-
1944
-
1945
-
1946
-
1947
- ##### Returns
1948
-
1949
-
1950
- - True: objects are equal. False: Objects are not equal. Undefined: invalid
1951
-
2402
+ ##### Returns
1952
2403
 
1953
2404
 
2405
+ - a new merged object
1954
2406
 
1955
- ### dist/general/mix/getTag.js
1956
2407
 
1957
2408
 
1958
- #### getTag(value)
2409
+ #### isValid(obj1, obj2)
1959
2410
 
1960
- Gets the `toStringTag` of `value`.
2411
+ Validates if the two arguments are objects
1961
2412
 
1962
2413
 
1963
2414
 
@@ -1966,7 +2417,8 @@ Gets the `toStringTag` of `value`.
1966
2417
 
1967
2418
  | Name | Type | Description | |
1968
2419
  | ---- | ---- | ----------- | -------- |
1969
- | value | | The value to query. | &nbsp; |
2420
+ | obj1 | | The target object | &nbsp; |
2421
+ | obj2 | | The object to be merged | &nbsp; |
1970
2422
 
1971
2423
 
1972
2424
 
@@ -1974,17 +2426,13 @@ Gets the `toStringTag` of `value`.
1974
2426
  ##### Returns
1975
2427
 
1976
2428
 
1977
- - `string` Returns the `toStringTag`.
1978
-
1979
-
1980
-
2429
+ - true: they are valid; false: they are not
1981
2430
 
1982
- ### dist/general/mix/importScripts.js
1983
2431
 
1984
2432
 
1985
- #### importScripts(scripts)
2433
+ #### getParamsToMergeDeep(settings)
1986
2434
 
1987
- Import a set of external Scripts given the URL in both serie and cascade way
2435
+ Validates and gets the settings with all set parameters.
1988
2436
 
1989
2437
 
1990
2438
 
@@ -1993,54 +2441,25 @@ Import a set of external Scripts given the URL in both serie and cascade way
1993
2441
 
1994
2442
  | Name | Type | Description | |
1995
2443
  | ---- | ---- | ----------- | -------- |
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
-
2444
+ | settings | | the settings object | &nbsp; |
2005
2445
 
2006
- ##### Examples
2007
2446
 
2008
- ```javascript
2009
- // 1) Simple script (paralell loading)
2010
- importScripts(['http://myscript.js', 'http://another.js']);
2011
2447
 
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
- ]);
2017
2448
 
2018
- // 3) import dependent scripts (cascade)
2019
- importScripts([
2020
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
2021
- ]);
2449
+ ##### Returns
2022
2450
 
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
2451
 
2452
+ - a new settings object with all set parameters.
2032
2453
 
2033
- ##### Returns
2034
2454
 
2035
2455
 
2036
- - `Promise` Promise when all script have been loaded
2037
2456
 
2457
+ ### dist/general/object/objectCopy.js
2038
2458
 
2039
2459
 
2040
- #### loadScript(url, type, noModule)
2460
+ #### objectCopy(entity, cache)
2041
2461
 
2042
- Creates the script element and appends to document.head
2043
- return a Promise that is resolved when the script is loaded
2462
+ Created a new reference of the given argument
2044
2463
 
2045
2464
 
2046
2465
 
@@ -2049,9 +2468,8 @@ return a Promise that is resolved when the script is loaded
2049
2468
 
2050
2469
  | Name | Type | Description | |
2051
2470
  | ---- | ---- | ----------- | -------- |
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; |
2471
+ | entity | | The variable to be copied | &nbsp; |
2472
+ | cache | | | &nbsp; |
2055
2473
 
2056
2474
 
2057
2475
 
@@ -2059,17 +2477,17 @@ return a Promise that is resolved when the script is loaded
2059
2477
  ##### Returns
2060
2478
 
2061
2479
 
2062
- - `Void`
2480
+ - A new reference of the given argument
2063
2481
 
2064
2482
 
2065
2483
 
2066
2484
 
2067
- ### dist/general/mix/isEmpty.js
2485
+ ### dist/general/object/omit.js
2068
2486
 
2069
2487
 
2070
- #### isEmpty(variable, includeFalsy)
2488
+ #### omit(obj, props)
2071
2489
 
2072
- Validates if the given argument is empty
2490
+ return a new Object excluding attributes in _props_ list
2073
2491
 
2074
2492
 
2075
2493
 
@@ -2078,8 +2496,8 @@ Validates if the given argument is empty
2078
2496
 
2079
2497
  | Name | Type | Description | |
2080
2498
  | ---- | ---- | ----------- | -------- |
2081
- | variable | | the given variable | &nbsp; |
2082
- | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
2499
+ | obj | `Object` | base object | &nbsp; |
2500
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2083
2501
 
2084
2502
 
2085
2503
 
@@ -2087,18 +2505,17 @@ Validates if the given argument is empty
2087
2505
  ##### Returns
2088
2506
 
2089
2507
 
2090
- - true: the given argument is empty; false: is not.
2508
+ - `Object` clean object
2091
2509
 
2092
2510
 
2093
2511
 
2094
2512
 
2095
- ### dist/general/mix/isNull.js
2513
+ ### dist/general/object/pick.js
2096
2514
 
2097
2515
 
2098
- #### isNull(arg)
2516
+ #### pick(baseObject, keys)
2099
2517
 
2100
- return if a given variable is either `null` or `undefined`
2101
- useful to avoid falsify validating Number Zero (0)
2518
+ return a new object just with attributes in _keys_ list
2102
2519
 
2103
2520
 
2104
2521
 
@@ -2107,7 +2524,8 @@ useful to avoid falsify validating Number Zero (0)
2107
2524
 
2108
2525
  | Name | Type | Description | |
2109
2526
  | ---- | ---- | ----------- | -------- |
2110
- | arg | `any` | | &nbsp; |
2527
+ | baseObject | `Object` | base object | &nbsp; |
2528
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2111
2529
 
2112
2530
 
2113
2531
 
@@ -2115,19 +2533,17 @@ useful to avoid falsify validating Number Zero (0)
2115
2533
  ##### Returns
2116
2534
 
2117
2535
 
2118
- - `Boolean`
2536
+ - `Object` new object just with desired attributes
2119
2537
 
2120
2538
 
2121
2539
 
2122
2540
 
2123
- ### dist/general/mix/randomId.js
2541
+ ### dist/general/object/serialize.js
2124
2542
 
2125
2543
 
2126
- #### randomId(length, exclude)
2544
+ #### serialize(obj)
2127
2545
 
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.
2546
+ serialize object to url param
2131
2547
 
2132
2548
 
2133
2549
 
@@ -2136,8 +2552,7 @@ Creates a random string
2136
2552
 
2137
2553
  | Name | Type | Description | |
2138
2554
  | ---- | ---- | ----------- | -------- |
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; |
2555
+ | obj | | - Object to be serialized | &nbsp; |
2141
2556
 
2142
2557
 
2143
2558
 
@@ -2145,19 +2560,17 @@ Creates a random string
2145
2560
  ##### Returns
2146
2561
 
2147
2562
 
2148
- - `String` Random string
2563
+ - `Void`
2149
2564
 
2150
2565
 
2151
2566
 
2152
2567
 
2153
- ### dist/general/mix/size.js
2568
+ ### dist/general/string/capitalize.js
2154
2569
 
2155
2570
 
2156
- #### size(obj)
2571
+ #### capitalize(text)
2157
2572
 
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.
2573
+ Upper case the first letter of a given text
2161
2574
 
2162
2575
 
2163
2576
 
@@ -2166,7 +2579,7 @@ Gets the length of the given array.
2166
2579
 
2167
2580
  | Name | Type | Description | |
2168
2581
  | ---- | ---- | ----------- | -------- |
2169
- | obj | `Any` | Any object-type variable | &nbsp; |
2582
+ | text | `String` | | &nbsp; |
2170
2583
 
2171
2584
 
2172
2585
 
@@ -2174,17 +2587,17 @@ Gets the length of the given array.
2174
2587
  ##### Returns
2175
2588
 
2176
2589
 
2177
- - `Number` the size of the given variable
2590
+ - `String` a capitalized text
2178
2591
 
2179
2592
 
2180
2593
 
2181
2594
 
2182
- ### dist/general/string/capitalize.js
2595
+ ### dist/qrvey/helpers/getColumnsLabel.js
2183
2596
 
2184
2597
 
2185
- #### capitalize(text)
2598
+ #### getColumnLabels(column)
2186
2599
 
2187
- Upper case the first letter of a given text
2600
+ Get an string of the properties of the given column.
2188
2601
 
2189
2602
 
2190
2603
 
@@ -2193,7 +2606,7 @@ Upper case the first letter of a given text
2193
2606
 
2194
2607
  | Name | Type | Description | |
2195
2608
  | ---- | ---- | ----------- | -------- |
2196
- | text | `String` | | &nbsp; |
2609
+ | column | | The column | &nbsp; |
2197
2610
 
2198
2611
 
2199
2612
 
@@ -2201,7 +2614,7 @@ Upper case the first letter of a given text
2201
2614
  ##### Returns
2202
2615
 
2203
2616
 
2204
- - `String` a capitalized text
2617
+ - an string with the property, aggregate or calculation label.
2205
2618
 
2206
2619
 
2207
2620
 
@@ -2288,33 +2701,6 @@ Get a dataset by Qrvey ID
2288
2701
 
2289
2702
 
2290
2703
 
2291
- ### dist/qrvey/helpers/getColumnsLabel.js
2292
-
2293
-
2294
- #### getColumnLabels(column)
2295
-
2296
- Get an string of the properties of the given column.
2297
-
2298
-
2299
-
2300
-
2301
- ##### Parameters
2302
-
2303
- | Name | Type | Description | |
2304
- | ---- | ---- | ----------- | -------- |
2305
- | column | | The column | &nbsp; |
2306
-
2307
-
2308
-
2309
-
2310
- ##### Returns
2311
-
2312
-
2313
- - an string with the property, aggregate or calculation label.
2314
-
2315
-
2316
-
2317
-
2318
2704
  ### dist/stencil/decorators/Config.js
2319
2705
 
2320
2706
 
@@ -2618,12 +3004,12 @@ Transform user Filters array into Filter Logic structure
2618
3004
 
2619
3005
 
2620
3006
 
2621
- ### dist/filters/helpers/backend/getBackendGroupValue.js
3007
+ ### dist/filters/helpers/backend/getBackendProperty.js
2622
3008
 
2623
3009
 
2624
- #### getBackendGroupValue(filter)
3010
+ #### getBackendProperty(filter)
2625
3011
 
2626
- Gets a group value for the backend logic structure
3012
+ Gets a property for the logic structure
2627
3013
 
2628
3014
 
2629
3015
 
@@ -2645,12 +3031,12 @@ Gets a group value for the backend logic structure
2645
3031
 
2646
3032
 
2647
3033
 
2648
- ### dist/filters/helpers/backend/getBackendProperty.js
3034
+ ### dist/filters/helpers/backend/getBackendGroupValue.js
2649
3035
 
2650
3036
 
2651
- #### getBackendProperty(filter)
3037
+ #### getBackendGroupValue(filter)
2652
3038
 
2653
- Gets a property for the logic structure
3039
+ Gets a group value for the backend logic structure
2654
3040
 
2655
3041
 
2656
3042
 
@@ -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