@qrvey/utils 1.2.9-2 → 1.2.9-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 (527) hide show
  1. package/README.md +830 -670
  2. package/dist/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
  3. package/dist/charts/constants/AGGREGATE_LABEL.js +1 -1
  4. package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
  5. package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +1 -1
  6. package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
  7. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
  8. package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
  9. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
  10. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.js +11 -0
  11. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
  12. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +14 -0
  13. package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
  14. package/dist/cjs/dates/relative/constants/index.js +2 -0
  15. package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
  16. package/dist/cjs/{globalization/interfaces/IResourceI18n.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
  17. package/dist/cjs/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
  18. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
  19. package/dist/cjs/dates/relative/interfaces/index.d.ts +2 -0
  20. package/dist/cjs/dates/relative/interfaces/index.js +2 -0
  21. package/dist/cjs/filters/adapters/FDToFlatUI.js +0 -2
  22. package/dist/cjs/filters/adapters/FDToUI.js +1 -2
  23. package/dist/cjs/filters/adapters/UIToFD.js +0 -1
  24. package/dist/cjs/filters/adapters/UIToFlatUI.js +0 -2
  25. package/dist/cjs/filters/adapters/UIToOldLogic.js +1 -1
  26. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +1 -1
  27. package/dist/cjs/filters/adapters/flatUIToUI.js +0 -2
  28. package/dist/cjs/filters/adapters/logicToFlatUI.js +0 -2
  29. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  30. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  31. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
  32. package/dist/cjs/filters/helpers/ui/getUIValues.d.ts +2 -1
  33. package/dist/cjs/filters/helpers/ui/getUIValues.js +37 -18
  34. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  35. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +36 -0
  36. package/dist/cjs/filters/helpers/ui/index.d.ts +3 -0
  37. package/dist/cjs/filters/helpers/ui/index.js +3 -0
  38. package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  39. package/dist/cjs/filters/helpers/ui/transformFilterValues.js +22 -0
  40. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  41. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -0
  42. package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  43. package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  44. package/dist/cjs/filters/interfaces/ui/IFUFilter.d.ts +1 -1
  45. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  46. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → filters/interfaces/ui/IFUTransformFilterValuesSettings.js} +0 -0
  47. package/dist/cjs/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
  48. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
  49. package/dist/cjs/filters/interfaces/ui/index.d.ts +3 -1
  50. package/dist/cjs/filters/interfaces/ui/index.js +3 -1
  51. package/dist/cjs/format/definition.d.ts +17 -0
  52. package/dist/cjs/format/definition.js +31 -1
  53. package/dist/cjs/format/format.d.ts +2 -1
  54. package/dist/cjs/format/format.js +8 -5
  55. package/dist/cjs/format/index.d.ts +1 -0
  56. package/dist/cjs/format/index.js +1 -0
  57. package/dist/cjs/format/localization.d.ts +4 -0
  58. package/dist/cjs/format/localization.js +65 -0
  59. package/dist/cjs/globalization/helpers/getI18nCalendar.d.ts +4 -0
  60. package/dist/cjs/globalization/helpers/getI18nCalendar.js +69 -0
  61. package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +2 -0
  62. package/dist/cjs/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
  63. package/dist/cjs/globalization/helpers/index.d.ts +1 -0
  64. package/dist/cjs/globalization/helpers/index.js +1 -0
  65. package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
  66. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImage.js → II18nConfig.js} +0 -0
  67. package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  68. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → II18nResource.js} +0 -0
  69. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
  70. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  71. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  72. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → calendar/II18nCalendar.js} +0 -0
  73. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  74. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → calendar/II18nCalendarProperties.js} +0 -0
  75. package/dist/cjs/globalization/interfaces/calendar/index.d.ts +2 -0
  76. package/dist/cjs/globalization/interfaces/calendar/index.js +14 -0
  77. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
  78. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
  79. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.d.ts → cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts} +1 -1
  80. package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderComplexUsaAddress.js → II18nChartBuilderChartLabels.js} +0 -0
  81. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
  82. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
  83. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
  84. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
  85. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  86. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
  87. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  88. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
  89. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
  90. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
  91. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
  92. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
  93. package/dist/cjs/globalization/interfaces/chart_builder/index.d.ts +1 -8
  94. package/dist/cjs/globalization/interfaces/chart_builder/index.js +1 -8
  95. package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
  96. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +4 -0
  97. package/dist/cjs/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  98. package/dist/cjs/globalization/interfaces/common/II18nUnits.d.ts +7 -0
  99. package/dist/cjs/globalization/interfaces/common/II18nUnits.js +2 -0
  100. package/dist/cjs/globalization/interfaces/common/index.d.ts +2 -0
  101. package/dist/cjs/globalization/interfaces/common/index.js +2 -0
  102. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +3 -0
  103. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  104. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
  105. package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
  106. package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
  107. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +2 -0
  108. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
  109. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
  110. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  111. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.js +2 -0
  112. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
  113. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  114. package/dist/cjs/globalization/interfaces/index.d.ts +7 -2
  115. package/dist/cjs/globalization/interfaces/index.js +7 -2
  116. package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
  117. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
  118. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  119. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
  120. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  121. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
  122. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  123. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
  124. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  125. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
  126. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  127. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
  128. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  129. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
  130. package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
  131. package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
  132. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  133. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  134. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
  135. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +5 -2
  136. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  137. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
  138. package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
  139. package/dist/cjs/globalization/labels/calendar/index.js +13 -0
  140. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
  141. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  142. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
  143. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
  144. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  145. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +50 -43
  146. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
  147. package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
  148. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +10 -0
  149. package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  150. package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +7 -0
  151. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +6 -0
  152. package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
  153. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
  154. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
  155. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +6 -4
  156. package/dist/cjs/globalization/labels/index.d.ts +6 -3
  157. package/dist/cjs/globalization/labels/index.js +6 -3
  158. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +32 -20
  159. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  160. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +58 -0
  161. package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
  162. package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
  163. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  164. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
  165. package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
  166. package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  167. package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
  168. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  169. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
  170. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
  171. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
  172. package/dist/cjs/interfaces/format/index.d.ts +3 -0
  173. package/dist/cjs/interfaces/format/index.js +15 -0
  174. package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
  175. package/dist/cjs/interfaces/index.d.ts +1 -0
  176. package/dist/cjs/interfaces/index.js +1 -0
  177. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  178. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
  179. package/dist/cjs/qrvey/helpers/index.d.ts +2 -0
  180. package/dist/cjs/qrvey/helpers/index.js +2 -0
  181. package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
  182. package/dist/cjs/qrvey/helpers/transformValue.js +47 -0
  183. package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
  184. package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.js +2 -0
  185. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  186. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
  187. package/dist/cjs/qrvey/interfaces/index.d.ts +2 -0
  188. package/dist/cjs/qrvey/interfaces/index.js +2 -0
  189. package/dist/cjs/services/api/getAllDatasets.api.d.ts +2 -1
  190. package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
  191. package/dist/cjs/services/api/getDatasetColumns.api.js +3 -1
  192. package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
  193. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
  194. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
  195. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
  196. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.js +8 -0
  197. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
  198. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +11 -0
  199. package/dist/dates/relative/constants/index.d.ts +2 -0
  200. package/dist/dates/relative/constants/index.js +2 -0
  201. package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
  202. package/dist/{globalization/interfaces/IResourceI18n.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
  203. package/dist/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
  204. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
  205. package/dist/dates/relative/interfaces/index.d.ts +2 -0
  206. package/dist/dates/relative/interfaces/index.js +2 -0
  207. package/dist/filters/adapters/FDToFlatUI.js +0 -2
  208. package/dist/filters/adapters/FDToUI.js +1 -2
  209. package/dist/filters/adapters/UIToFD.js +0 -1
  210. package/dist/filters/adapters/UIToFlatUI.js +0 -2
  211. package/dist/filters/adapters/UIToOldLogic.js +1 -1
  212. package/dist/filters/adapters/flatUIToOldLogic.js +1 -1
  213. package/dist/filters/adapters/flatUIToUI.js +0 -2
  214. package/dist/filters/adapters/logicToFlatUI.js +0 -2
  215. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  216. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  217. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
  218. package/dist/filters/helpers/ui/getUIValues.d.ts +2 -1
  219. package/dist/filters/helpers/ui/getUIValues.js +37 -18
  220. package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  221. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +32 -0
  222. package/dist/filters/helpers/ui/index.d.ts +3 -0
  223. package/dist/filters/helpers/ui/index.js +3 -0
  224. package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  225. package/dist/filters/helpers/ui/transformFilterValues.js +18 -0
  226. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  227. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -0
  228. package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  229. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  230. package/dist/filters/interfaces/ui/IFUFilter.d.ts +1 -1
  231. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  232. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → filters/interfaces/ui/IFUTransformFilterValuesSettings.js} +0 -0
  233. package/dist/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
  234. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
  235. package/dist/filters/interfaces/ui/index.d.ts +3 -1
  236. package/dist/filters/interfaces/ui/index.js +3 -1
  237. package/dist/format/definition.d.ts +17 -0
  238. package/dist/format/definition.js +30 -0
  239. package/dist/format/format.d.ts +2 -1
  240. package/dist/format/format.js +6 -3
  241. package/dist/format/index.d.ts +1 -0
  242. package/dist/format/index.js +1 -0
  243. package/dist/format/localization.d.ts +4 -0
  244. package/dist/format/localization.js +59 -0
  245. package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
  246. package/dist/globalization/helpers/getI18nCalendar.js +65 -0
  247. package/dist/globalization/helpers/getI18nDateGroupLabel.js +2 -0
  248. package/dist/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
  249. package/dist/globalization/helpers/index.d.ts +1 -0
  250. package/dist/globalization/helpers/index.js +1 -0
  251. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  252. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImage.js → II18nConfig.js} +0 -0
  253. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  254. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → II18nResource.js} +0 -0
  255. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
  256. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  257. package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  258. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → calendar/II18nCalendar.js} +0 -0
  259. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  260. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → calendar/II18nCalendarProperties.js} +0 -0
  261. package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
  262. package/dist/globalization/interfaces/calendar/index.js +2 -0
  263. package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
  264. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
  265. package/dist/{cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.d.ts → globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts} +1 -1
  266. package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderComplexUsaAddress.js → II18nChartBuilderChartLabels.js} +0 -0
  267. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
  268. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
  269. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
  270. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
  271. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  272. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
  273. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  274. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
  275. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
  276. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
  277. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
  278. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
  279. package/dist/globalization/interfaces/chart_builder/index.d.ts +1 -8
  280. package/dist/globalization/interfaces/chart_builder/index.js +1 -8
  281. package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
  282. package/dist/globalization/interfaces/common/II18nCommon.d.ts +4 -0
  283. package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  284. package/dist/globalization/interfaces/common/II18nUnits.d.ts +7 -0
  285. package/dist/globalization/interfaces/common/II18nUnits.js +1 -0
  286. package/dist/globalization/interfaces/common/index.d.ts +2 -0
  287. package/dist/globalization/interfaces/common/index.js +2 -0
  288. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +3 -0
  289. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  290. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
  291. package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
  292. package/dist/globalization/interfaces/dashboard/index.js +1 -0
  293. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +2 -0
  294. package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
  295. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
  296. package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  297. package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
  298. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
  299. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  300. package/dist/globalization/interfaces/index.d.ts +7 -2
  301. package/dist/globalization/interfaces/index.js +7 -2
  302. package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
  303. package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
  304. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  305. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
  306. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  307. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
  308. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  309. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
  310. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  311. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
  312. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  313. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
  314. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  315. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
  316. package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
  317. package/dist/globalization/interfaces/style_themes/index.js +6 -0
  318. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  319. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  320. package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
  321. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +5 -2
  322. package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  323. package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
  324. package/dist/globalization/labels/calendar/index.d.ts +1 -0
  325. package/dist/globalization/labels/calendar/index.js +1 -0
  326. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
  327. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  328. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
  329. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
  330. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  331. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +50 -43
  332. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
  333. package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
  334. package/dist/globalization/labels/common/I18N_COMMON.js +10 -0
  335. package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  336. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +7 -0
  337. package/dist/globalization/labels/filters/I18N_FILTER.js +6 -0
  338. package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
  339. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
  340. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
  341. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +6 -4
  342. package/dist/globalization/labels/index.d.ts +6 -3
  343. package/dist/globalization/labels/index.js +6 -3
  344. package/dist/globalization/labels/panel/I18N_PANEL.js +32 -20
  345. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  346. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
  347. package/dist/globalization/labels/style_themes/index.d.ts +1 -0
  348. package/dist/globalization/labels/style_themes/index.js +1 -0
  349. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  350. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  351. package/dist/globalization/service/initI18n.d.ts +2 -2
  352. package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  353. package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
  354. package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  355. package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
  356. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
  357. package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
  358. package/dist/interfaces/format/index.d.ts +3 -0
  359. package/dist/interfaces/format/index.js +3 -0
  360. package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
  361. package/dist/interfaces/index.d.ts +1 -0
  362. package/dist/interfaces/index.js +1 -0
  363. package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  364. package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
  365. package/dist/qrvey/helpers/index.d.ts +2 -0
  366. package/dist/qrvey/helpers/index.js +2 -0
  367. package/dist/qrvey/helpers/transformValue.d.ts +8 -0
  368. package/dist/qrvey/helpers/transformValue.js +43 -0
  369. package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
  370. package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.js +1 -0
  371. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  372. package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
  373. package/dist/qrvey/interfaces/index.d.ts +2 -0
  374. package/dist/qrvey/interfaces/index.js +2 -0
  375. package/dist/services/api/getAllDatasets.api.d.ts +2 -1
  376. package/dist/services/api/getAllDatasets.api.js +2 -1
  377. package/dist/services/api/getDatasetColumns.api.js +3 -1
  378. package/package.json +1 -1
  379. package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
  380. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +1 -0
  381. package/src/dates/relative/constants/RELATIVE_UNIT_INFO.ts +11 -0
  382. package/src/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.ts +13 -0
  383. package/src/dates/relative/constants/index.ts +2 -0
  384. package/src/dates/relative/interfaces/IRelativeUnit.ts +3 -0
  385. package/src/dates/relative/interfaces/IRelativeUnitInfo.ts +7 -0
  386. package/src/dates/relative/interfaces/index.ts +2 -0
  387. package/src/filters/adapters/FDToFlatUI.ts +0 -2
  388. package/src/filters/adapters/FDToUI.ts +0 -2
  389. package/src/filters/adapters/UIToFD.ts +0 -1
  390. package/src/filters/adapters/UIToFlatUI.ts +0 -2
  391. package/src/filters/adapters/UIToOldLogic.ts +1 -1
  392. package/src/filters/adapters/flatUIToOldLogic.ts +1 -1
  393. package/src/filters/adapters/flatUIToUI.ts +0 -2
  394. package/src/filters/adapters/logicToFlatUI.ts +1 -3
  395. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
  396. package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
  397. package/src/filters/helpers/ui/getUIValues.ts +40 -19
  398. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +34 -0
  399. package/src/filters/helpers/ui/index.ts +3 -0
  400. package/src/filters/helpers/ui/transformFilterValues.ts +29 -0
  401. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +0 -2
  402. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +4 -1
  403. package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
  404. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
  405. package/src/filters/interfaces/ui/IFUFilter.ts +1 -1
  406. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
  407. package/src/filters/interfaces/ui/IFUUIValueSettings.ts +7 -0
  408. package/src/filters/interfaces/ui/index.ts +3 -1
  409. package/src/format/definition.ts +45 -0
  410. package/src/format/format.ts +19 -15
  411. package/src/format/index.ts +1 -0
  412. package/src/format/localization.ts +62 -0
  413. package/src/globalization/helpers/getI18nCalendar.ts +68 -0
  414. package/src/globalization/helpers/getI18nDateGroupLabel.ts +2 -0
  415. package/src/globalization/helpers/getReverseI18nGroupLabel.ts +2 -0
  416. package/src/globalization/helpers/index.ts +1 -0
  417. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  418. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
  419. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +2 -1
  420. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  421. package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
  422. package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
  423. package/src/globalization/interfaces/calendar/index.ts +2 -0
  424. package/src/globalization/interfaces/chart_builder/II18nChartBuilder.ts +2 -16
  425. package/src/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.ts +19 -18
  426. package/src/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.ts → II18nChartBuilderChartLabels.ts} +1 -1
  427. package/src/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.ts +5 -4
  428. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.ts +15 -11
  429. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.ts +16 -15
  430. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +12 -11
  431. package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
  432. package/src/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.ts +16 -12
  433. package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
  434. package/src/globalization/interfaces/chart_builder/II18nChartBuilderSorting.ts +3 -1
  435. package/src/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.ts +19 -16
  436. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -1
  437. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.ts +1 -1
  438. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.ts +15 -3
  439. package/src/globalization/interfaces/chart_builder/index.ts +1 -8
  440. package/src/globalization/interfaces/common/II18nColumnProperties.ts +1 -0
  441. package/src/globalization/interfaces/common/II18nCommon.ts +4 -0
  442. package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
  443. package/src/globalization/interfaces/common/II18nUnits.ts +7 -0
  444. package/src/globalization/interfaces/common/index.ts +3 -0
  445. package/src/globalization/interfaces/dashboard/II18nDashboard.ts +3 -0
  446. package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
  447. package/src/globalization/interfaces/dashboard/index.ts +1 -0
  448. package/src/globalization/interfaces/filters/II18nFilter.ts +2 -0
  449. package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +1 -0
  450. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +5 -2
  451. package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
  452. package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -0
  453. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  454. package/src/globalization/interfaces/index.ts +7 -2
  455. package/src/globalization/interfaces/panel/II18nPanelErrors.ts +11 -9
  456. package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +21 -11
  457. package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
  458. package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
  459. package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
  460. package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
  461. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
  462. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
  463. package/src/globalization/interfaces/style_themes/index.ts +6 -0
  464. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
  465. package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
  466. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +5 -2
  467. package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
  468. package/src/globalization/labels/calendar/index.ts +1 -0
  469. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +15 -11
  470. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +52 -76
  471. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +22 -17
  472. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +3 -2
  473. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +51 -44
  474. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.ts +1 -1
  475. package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +1 -0
  476. package/src/globalization/labels/common/I18N_COMMON.ts +10 -0
  477. package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
  478. package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +7 -0
  479. package/src/globalization/labels/filters/I18N_FILTER.ts +6 -0
  480. package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +3 -2
  481. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +5 -2
  482. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +3 -2
  483. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +6 -4
  484. package/src/globalization/labels/index.ts +6 -3
  485. package/src/globalization/labels/panel/I18N_PANEL.ts +32 -20
  486. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
  487. package/src/globalization/labels/style_themes/index.ts +1 -0
  488. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
  489. package/src/globalization/service/i18nextBuilder.ts +4 -4
  490. package/src/globalization/service/initI18n.ts +3 -3
  491. package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
  492. package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
  493. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +9 -0
  494. package/src/interfaces/format/index.ts +3 -0
  495. package/src/interfaces/general/IGeneralWidgetConfig.ts +2 -0
  496. package/src/interfaces/index.ts +1 -0
  497. package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
  498. package/src/qrvey/helpers/index.ts +2 -0
  499. package/src/qrvey/helpers/transformValue.ts +47 -0
  500. package/src/qrvey/interfaces/IGetValueWithSuffixesSettings.ts +12 -0
  501. package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
  502. package/src/qrvey/interfaces/index.ts +2 -0
  503. package/src/services/api/getAllDatasets.api.ts +3 -2
  504. package/src/services/api/getDatasetColumns.api.ts +3 -1
  505. package/test/columns/isNumericalColumn.test.js +154 -0
  506. package/test/format.test.js +11 -11
  507. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
  508. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
  509. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
  510. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
  511. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
  512. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
  513. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
  514. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
  515. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
  516. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
  517. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
  518. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
  519. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
  520. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
  521. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.ts +0 -6
  522. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.ts +0 -4
  523. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.ts +0 -4
  524. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.ts +0 -4
  525. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.ts +0 -4
  526. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.ts +0 -6
  527. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.ts +0 -6
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-2*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-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/filters/adapters/FDToFlatUI.js
83
+ ### dist/dates/adapters/mdyDateToDate.js
84
84
 
85
85
 
86
- #### FDToFlatUI(filterData, datasetsInfo)
86
+ #### mdyDateToDate(monthYearDate, time)
87
87
 
88
- Generates a Flattened UI filter structure from Filter Data structure.
88
+ Transforms String Date from a [mm/dd/yyyy] format to Date object.
89
89
 
90
90
 
91
91
 
@@ -94,8 +94,8 @@ Generates a Flattened UI filter structure from Filter Data structure.
94
94
 
95
95
  | Name | Type | Description | |
96
96
  | ---- | ---- | ----------- | -------- |
97
- | filterData | | The filter data object. |   |
98
- | datasetsInfo | | Collection of datasets information |   |
97
+ | monthYearDate | | String of [mm/dd/yyyy] date |   |
98
+ | time | | Flag to parse the object date to milliseconds. |   |
99
99
 
100
100
 
101
101
 
@@ -103,13 +103,17 @@ Generates a Flattened UI filter structure from Filter Data structure.
103
103
  ##### Returns
104
104
 
105
105
 
106
- - a flattened UI filters array
106
+ - The date object or the date in milliseconds
107
107
 
108
108
 
109
109
 
110
- #### FD21ToFlatUI(scopes, datasetsInfo)
111
110
 
112
- Generates a Filter Builder Structure from the Filter Data structure v2.1
111
+ ### dist/dates/adapters/monthYearToDate.js
112
+
113
+
114
+ #### monthYearToDate(monthYearDate, time)
115
+
116
+ Transforms String Date from a [Month Year] format to Date object.
113
117
 
114
118
 
115
119
 
@@ -118,8 +122,8 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
118
122
 
119
123
  | Name | Type | Description | |
120
124
  | ---- | ---- | ----------- | -------- |
121
- | scopes | | The filter scope section |   |
122
- | datasetsInfo | | Collection of datasets information |   |
125
+ | monthYearDate | | String of [Month Year] date |   |
126
+ | time | | Flag to parse the object date to milliseconds. |   |
123
127
 
124
128
 
125
129
 
@@ -127,17 +131,17 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
127
131
  ##### Returns
128
132
 
129
133
 
130
- - a flattened UI filters array
134
+ - The date object or the date in milliseconds
131
135
 
132
136
 
133
137
 
134
138
 
135
- ### dist/filters/adapters/FDToLogic.js
139
+ ### dist/dates/adapters/quarterYearToDate.js
136
140
 
137
141
 
138
- #### FDToLogic(filterData)
142
+ #### quarterYearToDate(quarterYearDate, time)
139
143
 
140
- Generates a Filter Logic structure from Filter Data structure.
144
+ Transforms String Date from a [Quarter Year] format to Date object.
141
145
 
142
146
 
143
147
 
@@ -146,7 +150,8 @@ Generates a Filter Logic structure from Filter Data structure.
146
150
 
147
151
  | Name | Type | Description | |
148
152
  | ---- | ---- | ----------- | -------- |
149
- | filterData | | The filter data object. |   |
153
+ | quarterYearDate | | String of [Quarter Year] date |   |
154
+ | time | | Flag to parse the object date to milliseconds. |   |
150
155
 
151
156
 
152
157
 
@@ -154,13 +159,17 @@ Generates a Filter Logic structure from Filter Data structure.
154
159
  ##### Returns
155
160
 
156
161
 
157
- - a filter logic array
162
+ - The date object or the date in milliseconds
158
163
 
159
164
 
160
165
 
161
- #### getLogicBodyFromFD21(filterData)
162
166
 
163
- Gets the logic body
167
+ ### dist/dates/adapters/weekYearToDate.js
168
+
169
+
170
+ #### weekYearToDate(date, time)
171
+
172
+ Transforms String Date from a [Week Year] format to Date object.
164
173
 
165
174
 
166
175
 
@@ -169,7 +178,8 @@ Gets the logic body
169
178
 
170
179
  | Name | Type | Description | |
171
180
  | ---- | ---- | ----------- | -------- |
172
- | filterData | | The filter data object |   |
181
+ | date | | String of [Week Year] date |   |
182
+ | time | | Flag to parse the object date to milliseconds. |   |
173
183
 
174
184
 
175
185
 
@@ -177,17 +187,17 @@ Gets the logic body
177
187
  ##### Returns
178
188
 
179
189
 
180
- - a filter logic array
190
+ - The date object or the date in milliseconds
181
191
 
182
192
 
183
193
 
184
194
 
185
- ### dist/filters/adapters/FDToUI.js
195
+ ### dist/dates/adapters/yearToDate.js
186
196
 
187
197
 
188
- #### FDToUI(filterData, datasetsInfo)
198
+ #### yearToDate(yearDate, time)
189
199
 
190
- Generates a UI filter structure from Filter Data structure.
200
+ Transforms String Date from a [Year] format to Date object.
191
201
 
192
202
 
193
203
 
@@ -196,8 +206,8 @@ Generates a UI filter structure from Filter Data structure.
196
206
 
197
207
  | Name | Type | Description | |
198
208
  | ---- | ---- | ----------- | -------- |
199
- | filterData | | The filter data object. |   |
200
- | datasetsInfo | | Collection of datasets information |   |
209
+ | yearDate | | String of [Year] date |   |
210
+ | time | | Flag to parse the object date to milliseconds. |   |
201
211
 
202
212
 
203
213
 
@@ -205,13 +215,17 @@ Generates a UI filter structure from Filter Data structure.
205
215
  ##### Returns
206
216
 
207
217
 
208
- - a UI Filters structure
218
+ - The date object or the date in milliseconds
209
219
 
210
220
 
211
221
 
212
- #### FD21ToUI(scopes, section, version, datasetsInfo)
213
222
 
214
- Generates a UI filter Structure from the Filter Data structure v2.1
223
+ ### dist/dates/helpers/getDateByDateFormat.js
224
+
225
+
226
+ #### getDateByDateFormat(date, format, time)
227
+
228
+ Gets a Date Object instance by a Date format
215
229
 
216
230
 
217
231
 
@@ -220,10 +234,9 @@ Generates a UI filter Structure from the Filter Data structure v2.1
220
234
 
221
235
  | Name | Type | Description | |
222
236
  | ---- | ---- | ----------- | -------- |
223
- | scopes | | The filter scope section |   |
224
- | section | | The filter section. |   |
225
- | version | | The version of the filter structure |   |
226
- | datasetsInfo | | Collection of datasets information |   |
237
+ | date | | String with a formatted date |   |
238
+ | format | | The date format |   |
239
+ | time | | flag to convert the formatted date to miliseconds |   |
227
240
 
228
241
 
229
242
 
@@ -231,17 +244,17 @@ Generates a UI filter Structure from the Filter Data structure v2.1
231
244
  ##### Returns
232
245
 
233
246
 
234
- - a UI filter Structure
247
+ - a Date object, milisecond time or the same value if date format does not match.
235
248
 
236
249
 
237
250
 
238
251
 
239
- ### dist/filters/adapters/UIToFD.js
252
+ ### dist/dates/helpers/getDateFormatByProperty.js
240
253
 
241
254
 
242
- #### UIToFD(filterData)
255
+ #### getDateFormatByProperty(property)
243
256
 
244
- Generates a Filter Data Structure structure from UI Filter Data structure.
257
+ Gets the date format by the given property
245
258
 
246
259
 
247
260
 
@@ -250,7 +263,7 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
250
263
 
251
264
  | Name | Type | Description | |
252
265
  | ---- | ---- | ----------- | -------- |
253
- | filterData | | The UI filter data object. |   |
266
+ | property | | The Column Property |   |
254
267
 
255
268
 
256
269
 
@@ -258,13 +271,17 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
258
271
  ##### Returns
259
272
 
260
273
 
261
- - a Filter Data structure
274
+ - The date format
262
275
 
263
276
 
264
277
 
265
- #### UI21ToFD(uFilterData, version)
266
278
 
267
- Builds the Fitler Data structure from UI filter data
279
+ ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
280
+
281
+
282
+ #### getDateFormatRegularExpressionInArray(dateFormat)
283
+
284
+ Gets an array of regular expressions by the given date format
268
285
 
269
286
 
270
287
 
@@ -273,8 +290,7 @@ Builds the Fitler Data structure from UI filter data
273
290
 
274
291
  | Name | Type | Description | |
275
292
  | ---- | ---- | ----------- | -------- |
276
- | uFilterData | | The UI filter Data object |   |
277
- | version | | the version of the structure |   |
293
+ | dateFormat | | the date format |   |
278
294
 
279
295
 
280
296
 
@@ -282,17 +298,17 @@ Builds the Fitler Data structure from UI filter data
282
298
  ##### Returns
283
299
 
284
300
 
285
- -
301
+ - an array of regular expressions
286
302
 
287
303
 
288
304
 
289
305
 
290
- ### dist/filters/adapters/UIToFlatUI.js
306
+ ### dist/dates/helpers/getSeparatorByDateFormat.js
291
307
 
292
308
 
293
- #### UIToFlatUI(filterData, datasetsInfo)
309
+ #### getSeparatorByDateFormat(format)
294
310
 
295
- Generates a Flattened UI filter structure from UI Filter Data structure.
311
+ Gets the separator of the date format
296
312
 
297
313
 
298
314
 
@@ -301,8 +317,7 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
301
317
 
302
318
  | Name | Type | Description | |
303
319
  | ---- | ---- | ----------- | -------- |
304
- | filterData | | The UI filter data object. |   |
305
- | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info |   |
320
+ | format | | the date format |   |
306
321
 
307
322
 
308
323
 
@@ -310,13 +325,18 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
310
325
  ##### Returns
311
326
 
312
327
 
313
- - a flattened UI filters array
328
+ - a separator string
314
329
 
315
330
 
316
331
 
317
- #### UI21ToFlatUI(scopes)
318
332
 
319
- Generates a Flattened UI Filter Structure from the UI 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
320
340
 
321
341
 
322
342
 
@@ -325,7 +345,7 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
325
345
 
326
346
  | Name | Type | Description | |
327
347
  | ---- | ---- | ----------- | -------- |
328
- | scopes | | The filter scope section |   |
348
+ | date | | the date object |   |
329
349
 
330
350
 
331
351
 
@@ -333,18 +353,20 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
333
353
  ##### Returns
334
354
 
335
355
 
336
- - a flattened UI filters array
356
+ - an object with the week, month and year.
337
357
 
338
358
 
339
359
 
340
360
 
341
- ### dist/filters/adapters/adaptDateGroupingProperty.js
361
+ ### dist/dates/helpers/validateDate.js
342
362
 
343
363
 
344
- #### adaptDateGroupingProperty(property)
364
+ #### validateDate(date, format)
345
365
 
346
- [TODO: For 2022, eliminate this adapter]
347
- Get the new property base on the old date grouping properties
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
348
370
 
349
371
 
350
372
 
@@ -353,7 +375,8 @@ Get the new property base on the old date grouping properties
353
375
 
354
376
  | Name | Type | Description | |
355
377
  | ---- | ---- | ----------- | -------- |
356
- | property | | |   |
378
+ | date | | String of date |   |
379
+ | format | | String of the format to validate |   |
357
380
 
358
381
 
359
382
 
@@ -361,18 +384,17 @@ Get the new property base on the old date grouping properties
361
384
  ##### Returns
362
385
 
363
386
 
364
- -
387
+ - True if it is valid or not. Undefined if date is undefined
365
388
 
366
389
 
367
390
 
368
391
 
369
- ### dist/filters/adapters/adaptFilterValues.js
392
+ ### dist/dates/helpers/validateDateByDateFormat.js
370
393
 
371
394
 
372
- #### adaptFilterValues(filter)
395
+ #### validateDateByDateFormat(date, dateForma)
373
396
 
374
- [TODO: For 2022, eliminate this adapter]
375
- Gets an adapted filter value array. Validates the enabled property and sets
397
+ Validates the given string as Date by its date format.
376
398
 
377
399
 
378
400
 
@@ -381,7 +403,8 @@ Gets an adapted filter value array. Validates the enabled property and sets
381
403
 
382
404
  | Name | Type | Description | |
383
405
  | ---- | ---- | ----------- | -------- |
384
- | filter | | The filter |   |
406
+ | date | | a string to validate as date form |   |
407
+ | dateForma | | the format of the date to validate the string |   |
385
408
 
386
409
 
387
410
 
@@ -389,17 +412,17 @@ Gets an adapted filter value array. Validates the enabled property and sets
389
412
  ##### Returns
390
413
 
391
414
 
392
- - A new value array with the filled properties.
415
+ - true: the string is a valida date
393
416
 
394
417
 
395
418
 
396
419
 
397
- ### dist/filters/adapters/flatUIToFD.js
420
+ ### dist/dates/range/getDateRange.js
398
421
 
399
422
 
400
- #### flatUIToFD(uFilters, version)
423
+ #### getDateRange(value, dateGroupLabel, withTime)
401
424
 
402
- Generates a filter data structure from the flatttened UI filters.
425
+ Get date range object from a string date value
403
426
 
404
427
 
405
428
 
@@ -408,78 +431,90 @@ Generates a filter data structure from the flatttened UI filters.
408
431
 
409
432
  | Name | Type | Description | |
410
433
  | ---- | ---- | ----------- | -------- |
411
- | uFilters | | Array of flattened filters from UI |   |
412
- | version | | Tag for the version of the filter data structure |   |
413
-
434
+ | value | `String` | string date value |   |
435
+ | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' |   |
436
+ | withTime | `Boolean` | determines if the date range will include time. Default is true |   |
414
437
 
415
438
 
416
439
 
417
- ##### Returns
418
440
 
441
+ ##### Examples
419
442
 
420
- - a Filter Data.
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
+ }
421
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
+ }
422
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
+ ```
423
468
 
424
- #### buildScopes(fbFilters)
425
469
 
426
- Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
427
- Also, adds and organizes filters by datasets
470
+ ##### Returns
428
471
 
429
472
 
473
+ - `Object` an object with the date range with two string date properties: from and to
430
474
 
431
475
 
432
- ##### Parameters
433
476
 
434
- | Name | Type | Description | |
435
- | ---- | ---- | ----------- | -------- |
436
- | fbFilters | | Array of flat filters from UI |   |
437
477
 
478
+ ### dist/dates/relative/Adapter.js
438
479
 
439
480
 
481
+ #### value()
440
482
 
441
- ##### Returns
483
+ Resolves statement and returns statement value
442
484
 
443
485
 
444
- - an array of scopes structure.
445
486
 
446
487
 
447
488
 
448
- #### buildScope(uFilter)
449
489
 
450
- Gets an scope structure for the filter data
490
+ ##### Returns
451
491
 
452
492
 
493
+ - `AbsoluteRange` `string`
453
494
 
454
495
 
455
- ##### Parameters
456
496
 
457
- | Name | Type | Description | |
458
- | ---- | ---- | ----------- | -------- |
459
- | uFilter | | UI structure filter |   |
497
+ #### valueAsAnchor()
460
498
 
499
+ Resolves statement as an anchor
461
500
 
462
501
 
463
502
 
464
- ##### Returns
465
503
 
466
504
 
467
- - an scope structure
468
505
 
506
+ ##### Returns
469
507
 
470
508
 
471
- #### buildDataset(uFilter)
509
+ - `string`
472
510
 
473
- Gets an dataset structure for the filter data
474
511
 
475
512
 
513
+ #### _statementToRange() *private method*
476
514
 
515
+ Convert verbal statement to range value
477
516
 
478
- ##### Parameters
479
517
 
480
- | Name | Type | Description | |
481
- | ---- | ---- | ----------- | -------- |
482
- | uFilter | | a UI structure filter |   |
483
518
 
484
519
 
485
520
 
@@ -487,69 +522,61 @@ Gets an dataset structure for the filter data
487
522
  ##### Returns
488
523
 
489
524
 
490
- - an dataset structure
525
+ - `AbsoluteRange`
491
526
 
492
527
 
493
528
 
494
- #### buildFilter(uFilter)
529
+ #### _resolveAsThis() *private method*
495
530
 
496
- Gets an filter structure for the filter data
531
+ Apply 'this' cursor logic to statement
497
532
 
498
533
 
499
534
 
500
535
 
501
- ##### Parameters
502
536
 
503
- | Name | Type | Description | |
504
- | ---- | ---- | ----------- | -------- |
505
- | uFilter | | a UI structure filter |   |
506
537
 
538
+ ##### Returns
507
539
 
508
540
 
541
+ - `AbsoluteStatement`
509
542
 
510
- ##### Returns
511
543
 
512
544
 
513
- - an filter structure
545
+ #### _resolveAsTheLast() *private method*
514
546
 
547
+ Apply 'the last' cursor logic to statement
515
548
 
516
549
 
517
550
 
518
- ### dist/filters/adapters/adaptFilterData.js
519
551
 
520
552
 
521
- #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
522
553
 
523
- Checks and adapts the v2.0 Filter Data Structure to the v2.1
554
+ ##### Returns
524
555
 
525
556
 
557
+ - `AbsoluteStatement`
526
558
 
527
559
 
528
- ##### Parameters
529
560
 
530
- | Name | Type | Description | |
531
- | ---- | ---- | ----------- | -------- |
532
- | filterData | | The filter data structure. Accepts both v2.1 or v2.0 |   |
533
- | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) |   |
534
- | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory |   |
561
+ #### _resolveAsTheNext() *private method*
535
562
 
563
+ Apply 'the next' cursor logic to statement
536
564
 
537
565
 
538
566
 
539
- ##### Returns
540
567
 
541
568
 
542
- - A new filter data structure v2.1
543
569
 
570
+ ##### Returns
544
571
 
545
572
 
573
+ - `AbsoluteStatement`
546
574
 
547
- ### dist/filters/adapters/flatUIToLogic.js
548
575
 
549
576
 
550
- #### flatUIToLogic(uFilter)
577
+ #### replaceNowToken(value, now)
551
578
 
552
- Generates a Logic structure from flattened UI filters
579
+ Replace '@now' token inside a string
553
580
 
554
581
 
555
582
 
@@ -558,7 +585,8 @@ Generates a Logic structure from flattened UI filters
558
585
 
559
586
  | Name | Type | Description | |
560
587
  | ---- | ---- | ----------- | -------- |
561
- | uFilter | | Array of flat filters from UI |   |
588
+ | value | `string` | |   |
589
+ | now | `Date` | |   |
562
590
 
563
591
 
564
592
 
@@ -566,17 +594,13 @@ Generates a Logic structure from flattened UI filters
566
594
  ##### Returns
567
595
 
568
596
 
569
- - The logic structure
570
-
571
-
572
-
597
+ - `string`
573
598
 
574
- ### dist/filters/adapters/flatUIToOldLogic.js
575
599
 
576
600
 
577
- #### flatUIToOldLogic(uFilters)
601
+ #### convertRelativeToAbsolute(args)
578
602
 
579
- Generates a Logic structure from flattened UI filters
603
+ Returns a range object (date) from a group of statement params
580
604
 
581
605
 
582
606
 
@@ -585,25 +609,45 @@ Generates a Logic structure from flattened UI filters
585
609
 
586
610
  | Name | Type | Description | |
587
611
  | ---- | ---- | ----------- | -------- |
588
- | uFilters | | Array of flat filters from UI |   |
612
+ | args | `RelativeToAbsoluteStruct` | |   |
589
613
 
590
614
 
591
615
 
592
616
 
617
+ ##### Examples
618
+
619
+ ```javascript
620
+ pivot = '2021-03-03T12:30:40'
621
+ unit = month
622
+ steps = 2
623
+ setTo = END
624
+ resolverAsCalendar: true
625
+ => Returns '2021-05-31T23:59:59'
626
+ ```
627
+ ```javascript
628
+ pivot = '2021-03-03T12:30:40'
629
+ unit = month
630
+ steps = -2
631
+ setTo = START
632
+ resolverAsCalendar: false
633
+ => Returns '2021-01-03T00:00:00'
634
+ ```
635
+
636
+
593
637
  ##### Returns
594
638
 
595
639
 
596
- - The logic structure
640
+ - `string`
597
641
 
598
642
 
599
643
 
600
644
 
601
- ### dist/filters/adapters/flatUIToUI.js
645
+ ### dist/dates/relative/relative.js
602
646
 
603
647
 
604
- #### flatUIToUI(uFilters, version)
648
+ #### resolveRelative(statements, clock)
605
649
 
606
- Generates a UI filter data structure from the flatttened UI filters.
650
+ Resolve a list of relative statements according to operator
607
651
 
608
652
 
609
653
 
@@ -612,23 +656,44 @@ Generates a UI filter data structure from the flatttened UI filters.
612
656
 
613
657
  | Name | Type | Description | |
614
658
  | ---- | ---- | ----------- | -------- |
615
- | uFilters | | Array of flattened filters from UI |   |
616
- | version | | Tag for the version of the filter data structure |   |
659
+ | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
660
+ | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
617
661
 
618
662
 
619
663
 
620
664
 
665
+ ##### Examples
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
+ }
677
+
678
+ Output:
679
+ { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
680
+ ```
681
+
682
+
621
683
  ##### Returns
622
684
 
623
685
 
624
- - a UI Filter Data.
686
+ - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
625
687
 
626
688
 
627
689
 
628
- #### buildScopes(fbFilters)
629
690
 
630
- Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
631
- Also, adds and organizes filters by datasets
691
+ ### dist/filters/adapters/FDToFlatUI.js
692
+
693
+
694
+ #### FDToFlatUI(filterData, datasetsInfo)
695
+
696
+ Generates a Flattened UI filter structure from Filter Data structure.
632
697
 
633
698
 
634
699
 
@@ -637,7 +702,8 @@ Also, adds and organizes filters by datasets
637
702
 
638
703
  | Name | Type | Description | |
639
704
  | ---- | ---- | ----------- | -------- |
640
- | fbFilters | | Array of flat filters from UI | &nbsp; |
705
+ | filterData | | The filter data object. | &nbsp; |
706
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
641
707
 
642
708
 
643
709
 
@@ -645,13 +711,13 @@ Also, adds and organizes filters by datasets
645
711
  ##### Returns
646
712
 
647
713
 
648
- - an array of scopes structure.
714
+ - a flattened UI filters array
649
715
 
650
716
 
651
717
 
652
- #### buildScope(uFilter)
718
+ #### FD21ToFlatUI(scopes, datasetsInfo)
653
719
 
654
- Gets an scope structure for the UI filter data
720
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
655
721
 
656
722
 
657
723
 
@@ -660,7 +726,8 @@ Gets an scope structure for the UI filter data
660
726
 
661
727
  | Name | Type | Description | |
662
728
  | ---- | ---- | ----------- | -------- |
663
- | uFilter | | UI structure filter | &nbsp; |
729
+ | scopes | | The filter scope section | &nbsp; |
730
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
664
731
 
665
732
 
666
733
 
@@ -668,13 +735,17 @@ Gets an scope structure for the UI filter data
668
735
  ##### Returns
669
736
 
670
737
 
671
- - an scope structure
738
+ - a flattened UI filters array
672
739
 
673
740
 
674
741
 
675
- #### buildDataset(uFilter)
676
742
 
677
- Gets an dataset structure for the UI filter data
743
+ ### dist/filters/adapters/FDToLogic.js
744
+
745
+
746
+ #### FDToLogic(filterData)
747
+
748
+ Generates a Filter Logic structure from Filter Data structure.
678
749
 
679
750
 
680
751
 
@@ -683,7 +754,7 @@ Gets an dataset structure for the UI filter data
683
754
 
684
755
  | Name | Type | Description | |
685
756
  | ---- | ---- | ----------- | -------- |
686
- | uFilter | | a UI structure filter | &nbsp; |
757
+ | filterData | | The filter data object. | &nbsp; |
687
758
 
688
759
 
689
760
 
@@ -691,13 +762,13 @@ Gets an dataset structure for the UI filter data
691
762
  ##### Returns
692
763
 
693
764
 
694
- - an dataset structure
765
+ - a filter logic array
695
766
 
696
767
 
697
768
 
698
- #### buildFilter(uFilter)
769
+ #### getLogicBodyFromFD21(filterData)
699
770
 
700
- Gets an filter structure for the UI filter data
771
+ Gets the logic body
701
772
 
702
773
 
703
774
 
@@ -706,7 +777,7 @@ Gets an filter structure for the UI filter data
706
777
 
707
778
  | Name | Type | Description | |
708
779
  | ---- | ---- | ----------- | -------- |
709
- | uFilter | | a UI structure filter | &nbsp; |
780
+ | filterData | | The filter data object | &nbsp; |
710
781
 
711
782
 
712
783
 
@@ -714,17 +785,17 @@ Gets an filter structure for the UI filter data
714
785
  ##### Returns
715
786
 
716
787
 
717
- - an filter structure
788
+ - a filter logic array
718
789
 
719
790
 
720
791
 
721
792
 
722
- ### dist/filters/adapters/logicToFD.js
793
+ ### dist/filters/adapters/FDToUI.js
723
794
 
724
795
 
725
- #### logicToFD(filterData, version)
796
+ #### FDToUI(filterData, datasetsInfo)
726
797
 
727
- Generates a filter data structure from the old logic structure (v2.0).
798
+ Generates a UI filter structure from Filter Data structure.
728
799
 
729
800
 
730
801
 
@@ -733,8 +804,8 @@ Generates a filter data structure from the old logic structure (v2.0).
733
804
 
734
805
  | Name | Type | Description | |
735
806
  | ---- | ---- | ----------- | -------- |
736
- | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
737
- | version | | Tag for the version of the filter data structure | &nbsp; |
807
+ | filterData | | The filter data object. | &nbsp; |
808
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
738
809
 
739
810
 
740
811
 
@@ -742,17 +813,13 @@ Generates a filter data structure from the old logic structure (v2.0).
742
813
  ##### Returns
743
814
 
744
815
 
745
- - a Filter Data.
746
-
747
-
748
-
816
+ - a UI Filters structure
749
817
 
750
- ### dist/filters/adapters/logicToFlatUI.js
751
818
 
752
819
 
753
- #### logicToFlatUI(logics)
820
+ #### FD21ToUI(scopes, section, version, datasetsInfo)
754
821
 
755
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
822
+ Generates a UI filter Structure from the Filter Data structure v2.1
756
823
 
757
824
 
758
825
 
@@ -761,7 +828,10 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
761
828
 
762
829
  | Name | Type | Description | |
763
830
  | ---- | ---- | ----------- | -------- |
764
- | logics | | The old logic structure (v2.0) | &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; |
765
835
 
766
836
 
767
837
 
@@ -769,13 +839,17 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
769
839
  ##### Returns
770
840
 
771
841
 
772
- - The Flattened UI Filters array
842
+ - a UI filter Structure
773
843
 
774
844
 
775
845
 
776
- #### getFilter(filters, filter, getIndex)
777
846
 
778
- Get the filter or the index of the given array, validating an old filter structure.
847
+ ### dist/filters/adapters/UIToFD.js
848
+
849
+
850
+ #### UIToFD(filterData)
851
+
852
+ Generates a Filter Data Structure structure from UI Filter Data structure.
779
853
 
780
854
 
781
855
 
@@ -784,9 +858,7 @@ Get the filter or the index of the given array, validating an old filter structu
784
858
 
785
859
  | Name | Type | Description | |
786
860
  | ---- | ---- | ----------- | -------- |
787
- | filters | | The array of UI filters | &nbsp; |
788
- | filter | | The old logic structure filter | &nbsp; |
789
- | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
861
+ | filterData | | The UI filter data object. | &nbsp; |
790
862
 
791
863
 
792
864
 
@@ -794,13 +866,13 @@ Get the filter or the index of the given array, validating an old filter structu
794
866
  ##### Returns
795
867
 
796
868
 
797
- - the index or the UI filter object
869
+ - a Filter Data structure
798
870
 
799
871
 
800
872
 
801
- #### refineRankingValues(values, uiValues)
873
+ #### UI21ToFD(uFilterData, version)
802
874
 
803
- Refines the values of the Ranking column type.
875
+ Builds the Fitler Data structure from UI filter data
804
876
 
805
877
 
806
878
 
@@ -809,8 +881,8 @@ Refines the values of the Ranking column type.
809
881
 
810
882
  | Name | Type | Description | |
811
883
  | ---- | ---- | ----------- | -------- |
812
- | values | | the Array of Ranking values | &nbsp; |
813
- | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
884
+ | uFilterData | | The UI filter Data object | &nbsp; |
885
+ | version | | the version of the structure | &nbsp; |
814
886
 
815
887
 
816
888
 
@@ -818,17 +890,17 @@ Refines the values of the Ranking column type.
818
890
  ##### Returns
819
891
 
820
892
 
821
- - the array of Ranking values
893
+ -
822
894
 
823
895
 
824
896
 
825
897
 
826
- ### dist/filters/adapters/logicToUI.js
898
+ ### dist/filters/adapters/UIToFlatUI.js
827
899
 
828
900
 
829
- #### logicToUI(uFilters, datasetsInfo)
901
+ #### UIToFlatUI(filterData, datasetsInfo)
830
902
 
831
- Generates a UI filter structure from the old logic structure (v2.0).
903
+ Generates a Flattened UI filter structure from UI Filter Data structure.
832
904
 
833
905
 
834
906
 
@@ -837,8 +909,8 @@ Generates a UI filter structure from the old logic structure (v2.0).
837
909
 
838
910
  | Name | Type | Description | |
839
911
  | ---- | ---- | ----------- | -------- |
840
- | uFilters | | Array of filters from old logic structure | &nbsp; |
841
- | datasetsInfo | | Collection of datasets information | &nbsp; |
912
+ | filterData | | The UI filter data object. | &nbsp; |
913
+ | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
842
914
 
843
915
 
844
916
 
@@ -846,17 +918,13 @@ Generates a UI filter structure from the old logic structure (v2.0).
846
918
  ##### Returns
847
919
 
848
920
 
849
- - a UI Filter Data.
850
-
851
-
852
-
921
+ - a flattened UI filters array
853
922
 
854
- ### dist/filters/adapters/transformFilters.js
855
923
 
856
924
 
857
- #### transformFilters(oldFiltersObj, section)
925
+ #### UI21ToFlatUI(scopes)
858
926
 
859
- Transform the old filters structure into the new one
927
+ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
860
928
 
861
929
 
862
930
 
@@ -865,93 +933,40 @@ Transform the old filters structure into the new one
865
933
 
866
934
  | Name | Type | Description | |
867
935
  | ---- | ---- | ----------- | -------- |
868
- | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
869
- | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
936
+ | scopes | | The filter scope section | &nbsp; |
870
937
 
871
938
 
872
939
 
873
940
 
874
- ##### Examples
941
+ ##### Returns
875
942
 
876
- ```javascript
877
943
 
878
- const oldPreferenceFilters = {
879
- "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
880
- "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
881
- "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
882
- "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
883
- "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
884
- "formulaId": null,
885
- "panelId": null,
886
- "values": [
887
- {
888
- "EQUALS": [
889
- {
890
- "id": "AK4M8UV2a0",
891
- "value": "A",
892
- "enabled": true,
893
- "imageUrl": null
894
- },
895
- {
896
- "id": "AK4M8UV2a1",
897
- "value": "B",
898
- "enabled": true,
899
- "imageUrl": null
900
- }
901
- ]
902
- }
903
- ],
904
- "bucketId": null,
905
- "text": "MC",
906
- "title": "MC",
907
- "type": "SINGLE_CHOICE",
908
- "qid": "AK4M8UV2",
909
- "dataset": {
910
- "sourceid": "xYOQAdpqT",
911
- "name": "Form All Questions",
912
- "qrveyid": "xYOQAdpqT",
913
- "text": "Form All Questions",
914
- "linkid": 0
915
- },
916
- "enabled": true,
917
- "linked": null
918
- }
919
- };
944
+ - a flattened UI filters array
920
945
 
921
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
922
- ```
923
946
 
924
947
 
925
- ##### Returns
926
948
 
949
+ ### dist/filters/adapters/adaptDateGroupingProperty.js
927
950
 
928
- - `Object` an object with the new filters structure
929
951
 
952
+ #### adaptDateGroupingProperty(property)
930
953
 
954
+ [TODO: For 2022, eliminate this adapter]
955
+ Get the new property base on the old date grouping properties
931
956
 
932
957
 
933
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
934
958
 
935
959
 
936
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
960
+ ##### Parameters
937
961
 
938
- [TODO: Make a proper description for this function]
962
+ | Name | Type | Description | |
963
+ | ---- | ---- | ----------- | -------- |
964
+ | property | | | &nbsp; |
939
965
 
940
966
 
941
967
 
942
968
 
943
- ##### Parameters
944
-
945
- | Name | Type | Description | |
946
- | ---- | ---- | ----------- | -------- |
947
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
948
- | scopes | | | &nbsp; |
949
- | currentScope | | | &nbsp; |
950
-
951
-
952
-
953
-
954
- ##### Returns
969
+ ##### Returns
955
970
 
956
971
 
957
972
  -
@@ -959,12 +974,12 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
959
974
 
960
975
 
961
976
 
962
- ### dist/filters/helpers/getAvailableScopes.js
977
+ ### dist/filters/adapters/adaptFilterData.js
963
978
 
964
979
 
965
- #### getAvailableScopes(config)
980
+ #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
966
981
 
967
- Gets Scopes/Scope IDs by given IDs
982
+ Checks and adapts the v2.0 Filter Data Structure to the v2.1
968
983
 
969
984
 
970
985
 
@@ -973,7 +988,9 @@ Gets Scopes/Scope IDs by given IDs
973
988
 
974
989
  | Name | Type | Description | |
975
990
  | ---- | ---- | ----------- | -------- |
976
- | config | | given Differnts IDs in order set a available scope | &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; |
977
994
 
978
995
 
979
996
 
@@ -981,17 +998,18 @@ Gets Scopes/Scope IDs by given IDs
981
998
  ##### Returns
982
999
 
983
1000
 
984
- - a Scopes/Scope IDs array
1001
+ - A new filter data structure v2.1
985
1002
 
986
1003
 
987
1004
 
988
1005
 
989
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1006
+ ### dist/filters/adapters/adaptFilterValues.js
990
1007
 
991
1008
 
992
- #### getAvailableScopesIDsByConfig(config)
1009
+ #### adaptFilterValues(filter)
993
1010
 
994
- Gets the Scopes IDS for the Available Scope function by any config
1011
+ [TODO: For 2022, eliminate this adapter]
1012
+ Gets an adapted filter value array. Validates the enabled property and sets
995
1013
 
996
1014
 
997
1015
 
@@ -1000,7 +1018,7 @@ Gets the Scopes IDS for the Available Scope function by any config
1000
1018
 
1001
1019
  | Name | Type | Description | |
1002
1020
  | ---- | ---- | ----------- | -------- |
1003
- | config | | any config | &nbsp; |
1021
+ | filter | | The filter | &nbsp; |
1004
1022
 
1005
1023
 
1006
1024
 
@@ -1008,17 +1026,17 @@ Gets the Scopes IDS for the Available Scope function by any config
1008
1026
  ##### Returns
1009
1027
 
1010
1028
 
1011
- - a Available Scope IDS config
1029
+ - A new value array with the filled properties.
1012
1030
 
1013
1031
 
1014
1032
 
1015
1033
 
1016
- ### dist/filters/helpers/getScopesByHierarchy.js
1034
+ ### dist/filters/adapters/flatUIToFD.js
1017
1035
 
1018
1036
 
1019
- #### getScopesByHierarchy(scopes, currentScope)
1037
+ #### flatUIToFD(uFilters, version)
1020
1038
 
1021
- [TODO: Make a description for this]
1039
+ Generates a filter data structure from the flatttened UI filters.
1022
1040
 
1023
1041
 
1024
1042
 
@@ -1027,8 +1045,8 @@ Gets the Scopes IDS for the Available Scope function by any config
1027
1045
 
1028
1046
  | Name | Type | Description | |
1029
1047
  | ---- | ---- | ----------- | -------- |
1030
- | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1031
- | currentScope | | Current scope type | &nbsp; |
1048
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1049
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1032
1050
 
1033
1051
 
1034
1052
 
@@ -1036,19 +1054,23 @@ Gets the Scopes IDS for the Available Scope function by any config
1036
1054
  ##### Returns
1037
1055
 
1038
1056
 
1039
- - A new array of Scopes/Scope IDs
1040
-
1057
+ - a Filter Data.
1041
1058
 
1042
1059
 
1043
1060
 
1044
- ### dist/filters/classes/FilterInputErrorHandler.js
1061
+ #### buildScopes(fbFilters)
1045
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
1046
1065
 
1047
- #### new FilterInputErrorHandler()
1048
1066
 
1049
1067
 
1050
1068
 
1069
+ ##### Parameters
1051
1070
 
1071
+ | Name | Type | Description | |
1072
+ | ---- | ---- | ----------- | -------- |
1073
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1052
1074
 
1053
1075
 
1054
1076
 
@@ -1056,17 +1078,13 @@ Gets the Scopes IDS for the Available Scope function by any config
1056
1078
  ##### Returns
1057
1079
 
1058
1080
 
1059
- - `Void`
1060
-
1061
-
1062
-
1081
+ - an array of scopes structure.
1063
1082
 
1064
- ### dist/dates/adapters/mdyDateToDate.js
1065
1083
 
1066
1084
 
1067
- #### mdyDateToDate(monthYearDate, time)
1085
+ #### buildScope(uFilter)
1068
1086
 
1069
- Transforms String Date from a [mm/dd/yyyy] format to Date object.
1087
+ Gets an scope structure for the filter data
1070
1088
 
1071
1089
 
1072
1090
 
@@ -1075,8 +1093,7 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
1075
1093
 
1076
1094
  | Name | Type | Description | |
1077
1095
  | ---- | ---- | ----------- | -------- |
1078
- | monthYearDate | | String of [mm/dd/yyyy] date | &nbsp; |
1079
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1096
+ | uFilter | | UI structure filter | &nbsp; |
1080
1097
 
1081
1098
 
1082
1099
 
@@ -1084,17 +1101,13 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
1084
1101
  ##### Returns
1085
1102
 
1086
1103
 
1087
- - The date object or the date in milliseconds
1088
-
1089
-
1090
-
1104
+ - an scope structure
1091
1105
 
1092
- ### dist/dates/adapters/monthYearToDate.js
1093
1106
 
1094
1107
 
1095
- #### monthYearToDate(monthYearDate, time)
1108
+ #### buildDataset(uFilter)
1096
1109
 
1097
- Transforms String Date from a [Month Year] format to Date object.
1110
+ Gets an dataset structure for the filter data
1098
1111
 
1099
1112
 
1100
1113
 
@@ -1103,8 +1116,7 @@ Transforms String Date from a [Month Year] format to Date object.
1103
1116
 
1104
1117
  | Name | Type | Description | |
1105
1118
  | ---- | ---- | ----------- | -------- |
1106
- | monthYearDate | | String of [Month Year] date | &nbsp; |
1107
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1119
+ | uFilter | | a UI structure filter | &nbsp; |
1108
1120
 
1109
1121
 
1110
1122
 
@@ -1112,17 +1124,13 @@ Transforms String Date from a [Month Year] format to Date object.
1112
1124
  ##### Returns
1113
1125
 
1114
1126
 
1115
- - The date object or the date in milliseconds
1116
-
1117
-
1127
+ - an dataset structure
1118
1128
 
1119
1129
 
1120
- ### dist/dates/adapters/quarterYearToDate.js
1121
1130
 
1131
+ #### buildFilter(uFilter)
1122
1132
 
1123
- #### quarterYearToDate(quarterYearDate, time)
1124
-
1125
- Transforms String Date from a [Quarter Year] format to Date object.
1133
+ Gets an filter structure for the filter data
1126
1134
 
1127
1135
 
1128
1136
 
@@ -1131,8 +1139,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
1131
1139
 
1132
1140
  | Name | Type | Description | |
1133
1141
  | ---- | ---- | ----------- | -------- |
1134
- | quarterYearDate | | String of [Quarter Year] date | &nbsp; |
1135
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1142
+ | uFilter | | a UI structure filter | &nbsp; |
1136
1143
 
1137
1144
 
1138
1145
 
@@ -1140,17 +1147,17 @@ Transforms String Date from a [Quarter Year] format to Date object.
1140
1147
  ##### Returns
1141
1148
 
1142
1149
 
1143
- - The date object or the date in milliseconds
1150
+ - an filter structure
1144
1151
 
1145
1152
 
1146
1153
 
1147
1154
 
1148
- ### dist/dates/adapters/weekYearToDate.js
1155
+ ### dist/filters/adapters/flatUIToLogic.js
1149
1156
 
1150
1157
 
1151
- #### weekYearToDate(date, time)
1158
+ #### flatUIToLogic(uFilter)
1152
1159
 
1153
- Transforms String Date from a [Week Year] format to Date object.
1160
+ Generates a Logic structure from flattened UI filters
1154
1161
 
1155
1162
 
1156
1163
 
@@ -1159,8 +1166,7 @@ Transforms String Date from a [Week Year] format to Date object.
1159
1166
 
1160
1167
  | Name | Type | Description | |
1161
1168
  | ---- | ---- | ----------- | -------- |
1162
- | date | | String of [Week Year] date | &nbsp; |
1163
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1169
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1164
1170
 
1165
1171
 
1166
1172
 
@@ -1168,17 +1174,17 @@ Transforms String Date from a [Week Year] format to Date object.
1168
1174
  ##### Returns
1169
1175
 
1170
1176
 
1171
- - The date object or the date in milliseconds
1177
+ - The logic structure
1172
1178
 
1173
1179
 
1174
1180
 
1175
1181
 
1176
- ### dist/dates/adapters/yearToDate.js
1182
+ ### dist/filters/adapters/flatUIToOldLogic.js
1177
1183
 
1178
1184
 
1179
- #### yearToDate(yearDate, time)
1185
+ #### flatUIToOldLogic(uFilters)
1180
1186
 
1181
- Transforms String Date from a [Year] format to Date object.
1187
+ Generates a Logic structure from flattened UI filters
1182
1188
 
1183
1189
 
1184
1190
 
@@ -1187,8 +1193,7 @@ Transforms String Date from a [Year] format to Date object.
1187
1193
 
1188
1194
  | Name | Type | Description | |
1189
1195
  | ---- | ---- | ----------- | -------- |
1190
- | yearDate | | String of [Year] date | &nbsp; |
1191
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1196
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1192
1197
 
1193
1198
 
1194
1199
 
@@ -1196,17 +1201,17 @@ Transforms String Date from a [Year] format to Date object.
1196
1201
  ##### Returns
1197
1202
 
1198
1203
 
1199
- - The date object or the date in milliseconds
1204
+ - The logic structure
1200
1205
 
1201
1206
 
1202
1207
 
1203
1208
 
1204
- ### dist/dates/helpers/getDateByDateFormat.js
1209
+ ### dist/filters/adapters/flatUIToUI.js
1205
1210
 
1206
1211
 
1207
- #### getDateByDateFormat(date, format, time)
1212
+ #### flatUIToUI(uFilters, version)
1208
1213
 
1209
- Gets a Date Object instance by a Date format
1214
+ Generates a UI filter data structure from the flatttened UI filters.
1210
1215
 
1211
1216
 
1212
1217
 
@@ -1215,9 +1220,8 @@ Gets a Date Object instance by a Date format
1215
1220
 
1216
1221
  | Name | Type | Description | |
1217
1222
  | ---- | ---- | ----------- | -------- |
1218
- | date | | String with a formatted date | &nbsp; |
1219
- | format | | The date format | &nbsp; |
1220
- | time | | flag to convert the formatted date to miliseconds | &nbsp; |
1223
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1224
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1221
1225
 
1222
1226
 
1223
1227
 
@@ -1225,17 +1229,14 @@ Gets a Date Object instance by a Date format
1225
1229
  ##### Returns
1226
1230
 
1227
1231
 
1228
- - a Date object, milisecond time or the same value if date format does not match.
1229
-
1230
-
1232
+ - a UI Filter Data.
1231
1233
 
1232
1234
 
1233
- ### dist/dates/helpers/getDateFormatByProperty.js
1234
1235
 
1236
+ #### buildScopes(fbFilters)
1235
1237
 
1236
- #### getDateFormatByProperty(property)
1237
-
1238
- Gets the date format by the given property
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
1239
1240
 
1240
1241
 
1241
1242
 
@@ -1244,7 +1245,7 @@ Gets the date format by the given property
1244
1245
 
1245
1246
  | Name | Type | Description | |
1246
1247
  | ---- | ---- | ----------- | -------- |
1247
- | property | | The Column Property | &nbsp; |
1248
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1248
1249
 
1249
1250
 
1250
1251
 
@@ -1252,17 +1253,13 @@ Gets the date format by the given property
1252
1253
  ##### Returns
1253
1254
 
1254
1255
 
1255
- - The date format
1256
-
1257
-
1258
-
1256
+ - an array of scopes structure.
1259
1257
 
1260
- ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
1261
1258
 
1262
1259
 
1263
- #### getDateFormatRegularExpressionInArray(dateFormat)
1260
+ #### buildScope(uFilter)
1264
1261
 
1265
- Gets an array of regular expressions by the given date format
1262
+ Gets an scope structure for the UI filter data
1266
1263
 
1267
1264
 
1268
1265
 
@@ -1271,7 +1268,7 @@ Gets an array of regular expressions by the given date format
1271
1268
 
1272
1269
  | Name | Type | Description | |
1273
1270
  | ---- | ---- | ----------- | -------- |
1274
- | dateFormat | | the date format | &nbsp; |
1271
+ | uFilter | | UI structure filter | &nbsp; |
1275
1272
 
1276
1273
 
1277
1274
 
@@ -1279,17 +1276,13 @@ Gets an array of regular expressions by the given date format
1279
1276
  ##### Returns
1280
1277
 
1281
1278
 
1282
- - an array of regular expressions
1283
-
1284
-
1285
-
1279
+ - an scope structure
1286
1280
 
1287
- ### dist/dates/helpers/getSeparatorByDateFormat.js
1288
1281
 
1289
1282
 
1290
- #### getSeparatorByDateFormat(format)
1283
+ #### buildDataset(uFilter)
1291
1284
 
1292
- Gets the separator of the date format
1285
+ Gets an dataset structure for the UI filter data
1293
1286
 
1294
1287
 
1295
1288
 
@@ -1298,7 +1291,7 @@ Gets the separator of the date format
1298
1291
 
1299
1292
  | Name | Type | Description | |
1300
1293
  | ---- | ---- | ----------- | -------- |
1301
- | format | | the date format | &nbsp; |
1294
+ | uFilter | | a UI structure filter | &nbsp; |
1302
1295
 
1303
1296
 
1304
1297
 
@@ -1306,18 +1299,13 @@ Gets the separator of the date format
1306
1299
  ##### Returns
1307
1300
 
1308
1301
 
1309
- - a separator string
1310
-
1311
-
1312
-
1302
+ - an dataset structure
1313
1303
 
1314
- ### dist/dates/helpers/getWeek.js
1315
1304
 
1316
1305
 
1317
- #### getWeek(date)
1306
+ #### buildFilter(uFilter)
1318
1307
 
1319
- Gets the week number of the year
1320
- Additionally, the month and the year
1308
+ Gets an filter structure for the UI filter data
1321
1309
 
1322
1310
 
1323
1311
 
@@ -1326,7 +1314,7 @@ Additionally, the month and the year
1326
1314
 
1327
1315
  | Name | Type | Description | |
1328
1316
  | ---- | ---- | ----------- | -------- |
1329
- | date | | the date object | &nbsp; |
1317
+ | uFilter | | a UI structure filter | &nbsp; |
1330
1318
 
1331
1319
 
1332
1320
 
@@ -1334,20 +1322,17 @@ Additionally, the month and the year
1334
1322
  ##### Returns
1335
1323
 
1336
1324
 
1337
- - an object with the week, month and year.
1325
+ - an filter structure
1338
1326
 
1339
1327
 
1340
1328
 
1341
1329
 
1342
- ### dist/dates/helpers/validateDate.js
1330
+ ### dist/filters/adapters/logicToFD.js
1343
1331
 
1344
1332
 
1345
- #### validateDate(date, format)
1333
+ #### logicToFD(filterData, version)
1346
1334
 
1347
- Validate a string date depending on giving format
1348
- - If the string is a token label, the function lets it pass.
1349
- - Otherwise depends of the format
1350
- - Some escenarios the string is a mix of token labels and dates
1335
+ Generates a filter data structure from the old logic structure (v2.0).
1351
1336
 
1352
1337
 
1353
1338
 
@@ -1356,8 +1341,8 @@ Validate a string date depending on giving format
1356
1341
 
1357
1342
  | Name | Type | Description | |
1358
1343
  | ---- | ---- | ----------- | -------- |
1359
- | date | | String of date | &nbsp; |
1360
- | format | | String of the format to validate | &nbsp; |
1344
+ | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1345
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1361
1346
 
1362
1347
 
1363
1348
 
@@ -1365,17 +1350,17 @@ Validate a string date depending on giving format
1365
1350
  ##### Returns
1366
1351
 
1367
1352
 
1368
- - True if it is valid or not. Undefined if date is undefined
1353
+ - a Filter Data.
1369
1354
 
1370
1355
 
1371
1356
 
1372
1357
 
1373
- ### dist/dates/helpers/validateDateByDateFormat.js
1358
+ ### dist/filters/adapters/logicToFlatUI.js
1374
1359
 
1375
1360
 
1376
- #### validateDateByDateFormat(date, dateForma)
1361
+ #### logicToFlatUI(logics)
1377
1362
 
1378
- Validates the given string as Date by its date format.
1363
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1379
1364
 
1380
1365
 
1381
1366
 
@@ -1384,8 +1369,7 @@ Validates the given string as Date by its date format.
1384
1369
 
1385
1370
  | Name | Type | Description | |
1386
1371
  | ---- | ---- | ----------- | -------- |
1387
- | date | | a string to validate as date form | &nbsp; |
1388
- | dateForma | | the format of the date to validate the string | &nbsp; |
1372
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1389
1373
 
1390
1374
 
1391
1375
 
@@ -1393,17 +1377,13 @@ Validates the given string as Date by its date format.
1393
1377
  ##### Returns
1394
1378
 
1395
1379
 
1396
- - true: the string is a valida date
1397
-
1398
-
1399
-
1380
+ - The Flattened UI Filters array
1400
1381
 
1401
- ### dist/dates/range/getDateRange.js
1402
1382
 
1403
1383
 
1404
- #### getDateRange(value, dateGroupLabel, withTime)
1384
+ #### getFilter(filters, filter, getIndex)
1405
1385
 
1406
- Get date range object from a string date value
1386
+ Get the filter or the index of the given array, validating an old filter structure.
1407
1387
 
1408
1388
 
1409
1389
 
@@ -1412,58 +1392,33 @@ Get date range object from a string date value
1412
1392
 
1413
1393
  | Name | Type | Description | |
1414
1394
  | ---- | ---- | ----------- | -------- |
1415
- | value | `String` | string date value | &nbsp; |
1416
- | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | &nbsp; |
1417
- | withTime | `Boolean` | determines if the date range will include time. Default is true | &nbsp; |
1418
-
1419
-
1420
-
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; |
1421
1398
 
1422
- ##### Examples
1423
1399
 
1424
- ```javascript
1425
- // 1) Year:
1426
- getDateRange('2020', 'YEAR');
1427
- // Will return:
1428
- {
1429
- from: '01/01/2020 00:00:00',
1430
- to: '12/31/2020 23:59:59'
1431
- }
1432
-
1433
- // 2) Quarter:
1434
- getDateRange('Q3 2020', 'QUARTER');
1435
- // Will return:
1436
- {
1437
- from: '07/01/2020 00:00:00',
1438
- to: '09/30/2020 23:59:59'
1439
- }
1440
-
1441
- // 3) Month:
1442
- getDateRange('Oct 2020', 'MONTH');
1443
- // Will return:
1444
- {
1445
- from: '10/01/2020 00:00:00',
1446
- to: '10/31/2020 23:59:59'
1447
- }
1448
- ```
1449
1400
 
1450
1401
 
1451
1402
  ##### Returns
1452
1403
 
1453
1404
 
1454
- - `Object` an object with the date range with two string date properties: from and to
1405
+ - the index or the UI filter object
1455
1406
 
1456
1407
 
1457
1408
 
1409
+ #### refineRankingValues(values, uiValues)
1458
1410
 
1459
- ### dist/dates/relative/Adapter.js
1411
+ Refines the values of the Ranking column type.
1460
1412
 
1461
1413
 
1462
- #### value()
1463
1414
 
1464
- Resolves statement and returns statement value
1465
1415
 
1416
+ ##### Parameters
1466
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; |
1467
1422
 
1468
1423
 
1469
1424
 
@@ -1471,93 +1426,144 @@ Resolves statement and returns statement value
1471
1426
  ##### Returns
1472
1427
 
1473
1428
 
1474
- - `AbsoluteRange` `string`
1429
+ - the array of Ranking values
1475
1430
 
1476
1431
 
1477
1432
 
1478
- #### valueAsAnchor()
1479
1433
 
1480
- Resolves statement as an anchor
1434
+ ### dist/filters/adapters/logicToUI.js
1481
1435
 
1482
1436
 
1437
+ #### logicToUI(uFilters, datasetsInfo)
1483
1438
 
1439
+ Generates a UI filter structure from the old logic structure (v2.0).
1484
1440
 
1485
1441
 
1486
1442
 
1487
- ##### Returns
1488
1443
 
1444
+ ##### Parameters
1489
1445
 
1490
- - `string`
1446
+ | Name | Type | Description | |
1447
+ | ---- | ---- | ----------- | -------- |
1448
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1449
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1491
1450
 
1492
1451
 
1493
1452
 
1494
- #### _statementToRange() *private method*
1495
1453
 
1496
- Convert verbal statement to range value
1454
+ ##### Returns
1497
1455
 
1498
1456
 
1457
+ - a UI Filter Data.
1499
1458
 
1500
1459
 
1501
1460
 
1502
1461
 
1503
- ##### Returns
1462
+ ### dist/filters/adapters/transformFilters.js
1504
1463
 
1505
1464
 
1506
- - `AbsoluteRange`
1465
+ #### transformFilters(oldFiltersObj, section)
1507
1466
 
1467
+ Transform the old filters structure into the new one
1508
1468
 
1509
1469
 
1510
- #### _resolveAsThis() *private method*
1511
1470
 
1512
- Apply 'this' cursor logic to statement
1513
1471
 
1472
+ ##### Parameters
1514
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; |
1515
1478
 
1516
1479
 
1517
1480
 
1518
1481
 
1519
- ##### Returns
1482
+ ##### Examples
1520
1483
 
1484
+ ```javascript
1521
1485
 
1522
- - `AbsoluteStatement`
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
+ };
1523
1528
 
1529
+ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1530
+ ```
1524
1531
 
1525
1532
 
1526
- #### _resolveAsTheLast() *private method*
1533
+ ##### Returns
1527
1534
 
1528
- Apply 'the last' cursor logic to statement
1529
1535
 
1536
+ - `Object` an object with the new filters structure
1530
1537
 
1531
1538
 
1532
1539
 
1533
1540
 
1541
+ ### dist/filters/classes/FilterInputErrorHandler.js
1534
1542
 
1535
- ##### Returns
1536
1543
 
1544
+ #### new FilterInputErrorHandler()
1537
1545
 
1538
- - `AbsoluteStatement`
1539
1546
 
1540
1547
 
1541
1548
 
1542
- #### _resolveAsTheNext() *private method*
1543
1549
 
1544
- Apply 'the next' cursor logic to statement
1545
1550
 
1546
1551
 
1547
1552
 
1553
+ ##### Returns
1548
1554
 
1549
1555
 
1556
+ - `Void`
1550
1557
 
1551
- ##### Returns
1552
1558
 
1553
1559
 
1554
- - `AbsoluteStatement`
1555
1560
 
1561
+ ### dist/filters/helpers/applyHierarchyForAggFilters.js
1556
1562
 
1557
1563
 
1558
- #### replaceNowToken(value, now)
1564
+ #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1559
1565
 
1560
- Replace '@now' token inside a string
1566
+ [TODO: Make a proper description for this function]
1561
1567
 
1562
1568
 
1563
1569
 
@@ -1566,8 +1572,9 @@ Replace '@now' token inside a string
1566
1572
 
1567
1573
  | Name | Type | Description | |
1568
1574
  | ---- | ---- | ----------- | -------- |
1569
- | value | `string` | | &nbsp; |
1570
- | now | `Date` | | &nbsp; |
1575
+ | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1576
+ | scopes | | | &nbsp; |
1577
+ | currentScope | | | &nbsp; |
1571
1578
 
1572
1579
 
1573
1580
 
@@ -1575,13 +1582,17 @@ Replace '@now' token inside a string
1575
1582
  ##### Returns
1576
1583
 
1577
1584
 
1578
- - `string`
1585
+ -
1579
1586
 
1580
1587
 
1581
1588
 
1582
- #### convertRelativeToAbsolute(args)
1583
1589
 
1584
- Returns a range object (date) from a group of statement params
1590
+ ### dist/filters/helpers/getAvailableScopes.js
1591
+
1592
+
1593
+ #### getAvailableScopes(config)
1594
+
1595
+ Gets Scopes/Scope IDs by given IDs
1585
1596
 
1586
1597
 
1587
1598
 
@@ -1590,45 +1601,25 @@ Returns a range object (date) from a group of statement params
1590
1601
 
1591
1602
  | Name | Type | Description | |
1592
1603
  | ---- | ---- | ----------- | -------- |
1593
- | args | `RelativeToAbsoluteStruct` | | &nbsp; |
1594
-
1604
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
1595
1605
 
1596
1606
 
1597
1607
 
1598
- ##### Examples
1599
-
1600
- ```javascript
1601
- pivot = '2021-03-03T12:30:40'
1602
- unit = month
1603
- steps = 2
1604
- setTo = END
1605
- resolverAsCalendar: true
1606
- => Returns '2021-05-31T23:59:59'
1607
- ```
1608
- ```javascript
1609
- pivot = '2021-03-03T12:30:40'
1610
- unit = month
1611
- steps = -2
1612
- setTo = START
1613
- resolverAsCalendar: false
1614
- => Returns '2021-01-03T00:00:00'
1615
- ```
1616
-
1617
1608
 
1618
1609
  ##### Returns
1619
1610
 
1620
1611
 
1621
- - `string`
1612
+ - a Scopes/Scope IDs array
1622
1613
 
1623
1614
 
1624
1615
 
1625
1616
 
1626
- ### dist/dates/relative/relative.js
1617
+ ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1627
1618
 
1628
1619
 
1629
- #### resolveRelative(statements, clock)
1620
+ #### getAvailableScopesIDsByConfig(config)
1630
1621
 
1631
- Resolve a list of relative statements according to operator
1622
+ Gets the Scopes IDS for the Available Scope function by any config
1632
1623
 
1633
1624
 
1634
1625
 
@@ -1637,34 +1628,43 @@ Resolve a list of relative statements according to operator
1637
1628
 
1638
1629
  | Name | Type | Description | |
1639
1630
  | ---- | ---- | ----------- | -------- |
1640
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
1641
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
1631
+ | config | | any config | &nbsp; |
1642
1632
 
1643
1633
 
1644
1634
 
1645
1635
 
1646
- ##### Examples
1636
+ ##### Returns
1637
+
1638
+
1639
+ - a Available Scope IDS config
1640
+
1641
+
1642
+
1643
+
1644
+ ### dist/filters/helpers/getScopesByHierarchy.js
1645
+
1646
+
1647
+ #### getScopesByHierarchy(scopes, currentScope)
1648
+
1649
+ [TODO: Make a description for this]
1650
+
1651
+
1652
+
1653
+
1654
+ ##### Parameters
1655
+
1656
+ | Name | Type | Description | |
1657
+ | ---- | ---- | ----------- | -------- |
1658
+ | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1659
+ | currentScope | | Current scope type | &nbsp; |
1647
1660
 
1648
- ```javascript
1649
- Input:
1650
- {
1651
- "cursor": "the_next",
1652
- "unit": "year",
1653
- "number": 1,
1654
- "includeCurrent": false,
1655
- "isCalendarDate": false,
1656
- "anchor": "03/05/2021"
1657
- }
1658
1661
 
1659
- Output:
1660
- { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
1661
- ```
1662
1662
 
1663
1663
 
1664
1664
  ##### Returns
1665
1665
 
1666
1666
 
1667
- - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
1667
+ - A new array of Scopes/Scope IDs
1668
1668
 
1669
1669
 
1670
1670
 
@@ -2153,33 +2153,6 @@ Gets the length of the given array.
2153
2153
 
2154
2154
 
2155
2155
 
2156
- ### dist/general/string/capitalize.js
2157
-
2158
-
2159
- #### capitalize(text)
2160
-
2161
- Upper case the first letter of a given text
2162
-
2163
-
2164
-
2165
-
2166
- ##### Parameters
2167
-
2168
- | Name | Type | Description | |
2169
- | ---- | ---- | ----------- | -------- |
2170
- | text | `String` | | &nbsp; |
2171
-
2172
-
2173
-
2174
-
2175
- ##### Returns
2176
-
2177
-
2178
- - `String` a capitalized text
2179
-
2180
-
2181
-
2182
-
2183
2156
  ### dist/general/object/cloneDeep.js
2184
2157
 
2185
2158
 
@@ -2328,32 +2301,249 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
2328
2301
 
2329
2302
 
2330
2303
 
2331
- ##### Examples
2304
+ ##### Examples
2305
+
2306
+ ```javascript
2307
+ const prop = 'prop2'
2308
+ const obj1 = { prop1: 'hello', prop2: 'world'}
2309
+ _hasProperty(ob1, prop1) // true
2310
+
2311
+ const obj2 = { prop1: 'hello world' }
2312
+ _hasProperty(ob1, prop2) // false
2313
+ ```
2314
+
2315
+
2316
+ ##### Returns
2317
+
2318
+
2319
+ - True if the object has the given property; otherwise, false.
2320
+
2321
+
2322
+
2323
+
2324
+ ### dist/general/object/isObject.js
2325
+
2326
+
2327
+ #### isObject(obj)
2328
+
2329
+ Checks if the given argument is an object type
2330
+
2331
+
2332
+
2333
+
2334
+ ##### Parameters
2335
+
2336
+ | Name | Type | Description | |
2337
+ | ---- | ---- | ----------- | -------- |
2338
+ | obj | | the variable to check | &nbsp; |
2339
+
2340
+
2341
+
2342
+
2343
+ ##### Returns
2344
+
2345
+
2346
+ - True: It is an object; False: It is not.
2347
+
2348
+
2349
+
2350
+
2351
+ ### dist/general/object/mapValues.js
2352
+
2353
+
2354
+ #### mapValues(baseObject, iteratee)
2355
+
2356
+ Invoke iteratee (function) for each object key-value pair
2357
+ and return a mapped object
2358
+
2359
+
2360
+
2361
+
2362
+ ##### Parameters
2363
+
2364
+ | Name | Type | Description | |
2365
+ | ---- | ---- | ----------- | -------- |
2366
+ | baseObject | `Object` | Base object. | &nbsp; |
2367
+ | iteratee | `Function` | The executed per iteration. | &nbsp; |
2368
+
2369
+
2370
+
2371
+
2372
+ ##### Returns
2373
+
2374
+
2375
+ - `Object` New mapped object.
2376
+
2377
+
2378
+
2379
+
2380
+ ### dist/general/object/mergeDeep.js
2381
+
2382
+
2383
+ #### mergeDeep(obj1, obj2, settings)
2384
+
2385
+ Merges two objects into a new one.
2386
+ The second given argument to the first given argument.
2387
+
2388
+
2389
+
2390
+
2391
+ ##### Parameters
2392
+
2393
+ | Name | Type | Description | |
2394
+ | ---- | ---- | ----------- | -------- |
2395
+ | obj1 | | The target object | &nbsp; |
2396
+ | obj2 | | The object to be merged | &nbsp; |
2397
+ | settings | | Object settings for this function | &nbsp; |
2398
+
2399
+
2400
+
2401
+
2402
+ ##### Returns
2403
+
2404
+
2405
+ - a new merged object
2406
+
2407
+
2408
+
2409
+ #### isValid(obj1, obj2)
2410
+
2411
+ Validates if the two arguments are objects
2412
+
2413
+
2414
+
2415
+
2416
+ ##### Parameters
2417
+
2418
+ | Name | Type | Description | |
2419
+ | ---- | ---- | ----------- | -------- |
2420
+ | obj1 | | The target object | &nbsp; |
2421
+ | obj2 | | The object to be merged | &nbsp; |
2422
+
2423
+
2424
+
2425
+
2426
+ ##### Returns
2427
+
2428
+
2429
+ - true: they are valid; false: they are not
2430
+
2431
+
2432
+
2433
+ #### getParamsToMergeDeep(settings)
2434
+
2435
+ Validates and gets the settings with all set parameters.
2436
+
2437
+
2438
+
2439
+
2440
+ ##### Parameters
2441
+
2442
+ | Name | Type | Description | |
2443
+ | ---- | ---- | ----------- | -------- |
2444
+ | settings | | the settings object | &nbsp; |
2445
+
2446
+
2447
+
2448
+
2449
+ ##### Returns
2450
+
2451
+
2452
+ - a new settings object with all set parameters.
2453
+
2454
+
2455
+
2456
+
2457
+ ### dist/general/object/objectCopy.js
2458
+
2459
+
2460
+ #### objectCopy(entity, cache)
2461
+
2462
+ Created a new reference of the given argument
2463
+
2464
+
2465
+
2466
+
2467
+ ##### Parameters
2468
+
2469
+ | Name | Type | Description | |
2470
+ | ---- | ---- | ----------- | -------- |
2471
+ | entity | | The variable to be copied | &nbsp; |
2472
+ | cache | | | &nbsp; |
2473
+
2474
+
2475
+
2476
+
2477
+ ##### Returns
2478
+
2479
+
2480
+ - A new reference of the given argument
2481
+
2482
+
2483
+
2484
+
2485
+ ### dist/general/object/omit.js
2486
+
2487
+
2488
+ #### omit(obj, props)
2489
+
2490
+ return a new Object excluding attributes in _props_ list
2491
+
2492
+
2493
+
2494
+
2495
+ ##### Parameters
2496
+
2497
+ | Name | Type | Description | |
2498
+ | ---- | ---- | ----------- | -------- |
2499
+ | obj | `Object` | base object | &nbsp; |
2500
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2501
+
2502
+
2503
+
2504
+
2505
+ ##### Returns
2506
+
2507
+
2508
+ - `Object` clean object
2509
+
2510
+
2511
+
2512
+
2513
+ ### dist/general/object/pick.js
2514
+
2515
+
2516
+ #### pick(baseObject, keys)
2517
+
2518
+ return a new object just with attributes in _keys_ list
2519
+
2520
+
2521
+
2522
+
2523
+ ##### Parameters
2524
+
2525
+ | Name | Type | Description | |
2526
+ | ---- | ---- | ----------- | -------- |
2527
+ | baseObject | `Object` | base object | &nbsp; |
2528
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2332
2529
 
2333
- ```javascript
2334
- const prop = 'prop2'
2335
- const obj1 = { prop1: 'hello', prop2: 'world'}
2336
- _hasProperty(ob1, prop1) // true
2337
2530
 
2338
- const obj2 = { prop1: 'hello world' }
2339
- _hasProperty(ob1, prop2) // false
2340
- ```
2341
2531
 
2342
2532
 
2343
2533
  ##### Returns
2344
2534
 
2345
2535
 
2346
- - True if the object has the given property; otherwise, false.
2536
+ - `Object` new object just with desired attributes
2347
2537
 
2348
2538
 
2349
2539
 
2350
2540
 
2351
- ### dist/general/object/isObject.js
2541
+ ### dist/general/object/serialize.js
2352
2542
 
2353
2543
 
2354
- #### isObject(obj)
2544
+ #### serialize(obj)
2355
2545
 
2356
- Checks if the given argument is an object type
2546
+ serialize object to url param
2357
2547
 
2358
2548
 
2359
2549
 
@@ -2362,7 +2552,7 @@ Checks if the given argument is an object type
2362
2552
 
2363
2553
  | Name | Type | Description | |
2364
2554
  | ---- | ---- | ----------- | -------- |
2365
- | obj | | the variable to check | &nbsp; |
2555
+ | obj | | - Object to be serialized | &nbsp; |
2366
2556
 
2367
2557
 
2368
2558
 
@@ -2370,18 +2560,17 @@ Checks if the given argument is an object type
2370
2560
  ##### Returns
2371
2561
 
2372
2562
 
2373
- - True: It is an object; False: It is not.
2563
+ - `Void`
2374
2564
 
2375
2565
 
2376
2566
 
2377
2567
 
2378
- ### dist/general/object/mapValues.js
2568
+ ### dist/general/string/capitalize.js
2379
2569
 
2380
2570
 
2381
- #### mapValues(baseObject, iteratee)
2571
+ #### capitalize(text)
2382
2572
 
2383
- Invoke iteratee (function) for each object key-value pair
2384
- and return a mapped object
2573
+ Upper case the first letter of a given text
2385
2574
 
2386
2575
 
2387
2576
 
@@ -2390,8 +2579,7 @@ and return a mapped object
2390
2579
 
2391
2580
  | Name | Type | Description | |
2392
2581
  | ---- | ---- | ----------- | -------- |
2393
- | baseObject | `Object` | Base object. | &nbsp; |
2394
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
2582
+ | text | `String` | | &nbsp; |
2395
2583
 
2396
2584
 
2397
2585
 
@@ -2399,18 +2587,17 @@ and return a mapped object
2399
2587
  ##### Returns
2400
2588
 
2401
2589
 
2402
- - `Object` New mapped object.
2590
+ - `String` a capitalized text
2403
2591
 
2404
2592
 
2405
2593
 
2406
2594
 
2407
- ### dist/general/object/mergeDeep.js
2595
+ ### dist/qrvey/helpers/getColumnsLabel.js
2408
2596
 
2409
2597
 
2410
- #### mergeDeep(obj1, obj2, settings)
2598
+ #### getColumnLabels(column)
2411
2599
 
2412
- Merges two objects into a new one.
2413
- The second given argument to the first given argument.
2600
+ Get an string of the properties of the given column.
2414
2601
 
2415
2602
 
2416
2603
 
@@ -2419,9 +2606,7 @@ The second given argument to the first given argument.
2419
2606
 
2420
2607
  | Name | Type | Description | |
2421
2608
  | ---- | ---- | ----------- | -------- |
2422
- | obj1 | | The target object | &nbsp; |
2423
- | obj2 | | The object to be merged | &nbsp; |
2424
- | settings | | Object settings for this function | &nbsp; |
2609
+ | column | | The column | &nbsp; |
2425
2610
 
2426
2611
 
2427
2612
 
@@ -2429,13 +2614,18 @@ The second given argument to the first given argument.
2429
2614
  ##### Returns
2430
2615
 
2431
2616
 
2432
- - a new merged object
2617
+ - an string with the property, aggregate or calculation label.
2433
2618
 
2434
2619
 
2435
2620
 
2436
- #### isValid(obj1, obj2)
2437
2621
 
2438
- Validates if the two arguments are objects
2622
+ ### dist/qrvey/helpers/getValueWithSuffixes.js
2623
+
2624
+
2625
+ #### getValueWithSuffixes(value, suffixes)
2626
+
2627
+ Get a string value with suffixes if available.
2628
+ Add suffix into the value string. Prioritized for numeric values.
2439
2629
 
2440
2630
 
2441
2631
 
@@ -2444,8 +2634,8 @@ Validates if the two arguments are objects
2444
2634
 
2445
2635
  | Name | Type | Description | |
2446
2636
  | ---- | ---- | ----------- | -------- |
2447
- | obj1 | | The target object | &nbsp; |
2448
- | obj2 | | The object to be merged | &nbsp; |
2637
+ | value | | a number or string | &nbsp; |
2638
+ | suffixes | | An object with singular or plural suffix string. | &nbsp; |
2449
2639
 
2450
2640
 
2451
2641
 
@@ -2453,13 +2643,17 @@ Validates if the two arguments are objects
2453
2643
  ##### Returns
2454
2644
 
2455
2645
 
2456
- - true: they are valid; false: they are not
2646
+ - a string value with suffix
2457
2647
 
2458
2648
 
2459
2649
 
2460
- #### getParamsToMergeDeep(settings)
2461
2650
 
2462
- Validates and gets the settings with all set parameters.
2651
+ ### dist/qrvey/helpers/transformValue.js
2652
+
2653
+
2654
+ #### transformValue(value, settings)
2655
+
2656
+ Transforms a value depending of localization/globalization and extras settings.
2463
2657
 
2464
2658
 
2465
2659
 
@@ -2468,7 +2662,8 @@ Validates and gets the settings with all set parameters.
2468
2662
 
2469
2663
  | Name | Type | Description | |
2470
2664
  | ---- | ---- | ----------- | -------- |
2471
- | settings | | the settings object | &nbsp; |
2665
+ | value | | A value to transform | &nbsp; |
2666
+ | settings | | The settings of the transformValue function | &nbsp; |
2472
2667
 
2473
2668
 
2474
2669
 
@@ -2476,17 +2671,13 @@ Validates and gets the settings with all set parameters.
2476
2671
  ##### Returns
2477
2672
 
2478
2673
 
2479
- - a new settings object with all set parameters.
2480
-
2481
-
2482
-
2674
+ - A transformed value
2483
2675
 
2484
- ### dist/general/object/objectCopy.js
2485
2676
 
2486
2677
 
2487
- #### objectCopy(entity, cache)
2678
+ #### getOutputFormat(settings)
2488
2679
 
2489
- Created a new reference of the given argument
2680
+ Gets the outputformat settings
2490
2681
 
2491
2682
 
2492
2683
 
@@ -2495,8 +2686,7 @@ Created a new reference of the given argument
2495
2686
 
2496
2687
  | Name | Type | Description | |
2497
2688
  | ---- | ---- | ----------- | -------- |
2498
- | entity | | The variable to be copied | &nbsp; |
2499
- | cache | | | &nbsp; |
2689
+ | settings | | The settings of the transformValue function | &nbsp; |
2500
2690
 
2501
2691
 
2502
2692
 
@@ -2504,17 +2694,13 @@ Created a new reference of the given argument
2504
2694
  ##### Returns
2505
2695
 
2506
2696
 
2507
- - A new reference of the given argument
2508
-
2509
-
2697
+ - the outputformat settings
2510
2698
 
2511
2699
 
2512
- ### dist/general/object/omit.js
2513
-
2514
2700
 
2515
- #### omit(obj, props)
2701
+ #### getFormatConfig(settings)
2516
2702
 
2517
- return a new Object excluding attributes in _props_ list
2703
+ Gets the format config
2518
2704
 
2519
2705
 
2520
2706
 
@@ -2523,8 +2709,7 @@ return a new Object excluding attributes in _props_ list
2523
2709
 
2524
2710
  | Name | Type | Description | |
2525
2711
  | ---- | ---- | ----------- | -------- |
2526
- | obj | `Object` | base object | &nbsp; |
2527
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2712
+ | settings | | The settings of the transformValue function | &nbsp; |
2528
2713
 
2529
2714
 
2530
2715
 
@@ -2532,17 +2717,17 @@ return a new Object excluding attributes in _props_ list
2532
2717
  ##### Returns
2533
2718
 
2534
2719
 
2535
- - `Object` clean object
2720
+ - the format config
2536
2721
 
2537
2722
 
2538
2723
 
2539
2724
 
2540
- ### dist/general/object/pick.js
2725
+ ### dist/services/api/getAllDatasets.api.js
2541
2726
 
2542
2727
 
2543
- #### pick(baseObject, keys)
2728
+ #### getAllDatasets(config, pickDatasets)
2544
2729
 
2545
- return a new object just with attributes in _keys_ list
2730
+ Get a dataset list from a collection of Qrvey IDs
2546
2731
 
2547
2732
 
2548
2733
 
@@ -2551,8 +2736,8 @@ return a new object just with attributes in _keys_ list
2551
2736
 
2552
2737
  | Name | Type | Description | |
2553
2738
  | ---- | ---- | ----------- | -------- |
2554
- | baseObject | `Object` | base object | &nbsp; |
2555
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2739
+ | config | | the widget config. Includes the appid and others configuration properties | &nbsp; |
2740
+ | pickDatasets | | Collection of Qrvey IDs for filtering the request | &nbsp; |
2556
2741
 
2557
2742
 
2558
2743
 
@@ -2560,17 +2745,17 @@ return a new object just with attributes in _keys_ list
2560
2745
  ##### Returns
2561
2746
 
2562
2747
 
2563
- - `Object` new object just with desired attributes
2748
+ - a promise
2564
2749
 
2565
2750
 
2566
2751
 
2567
2752
 
2568
- ### dist/general/object/serialize.js
2753
+ ### dist/services/api/getAllQrveys.api.js
2569
2754
 
2570
2755
 
2571
- #### serialize(obj)
2756
+ #### getAllQrveys(config, params)
2572
2757
 
2573
- serialize object to url param
2758
+ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2574
2759
 
2575
2760
 
2576
2761
 
@@ -2579,7 +2764,8 @@ serialize object to url param
2579
2764
 
2580
2765
  | Name | Type | Description | |
2581
2766
  | ---- | ---- | ----------- | -------- |
2582
- | obj | | - Object to be serialized | &nbsp; |
2767
+ | config | | Configuration | &nbsp; |
2768
+ | params | | Object for getting precise data | &nbsp; |
2583
2769
 
2584
2770
 
2585
2771
 
@@ -2592,12 +2778,12 @@ serialize object to url param
2592
2778
 
2593
2779
 
2594
2780
 
2595
- ### dist/qrvey/helpers/getColumnsLabel.js
2781
+ ### dist/services/api/getDatasetColumns.api.js
2596
2782
 
2597
2783
 
2598
- #### getColumnLabels(column)
2784
+ #### getDatasetColumns(qrveyid)
2599
2785
 
2600
- Get an string of the properties of the given column.
2786
+ Get a dataset by Qrvey ID
2601
2787
 
2602
2788
 
2603
2789
 
@@ -2606,7 +2792,7 @@ Get an string of the properties of the given column.
2606
2792
 
2607
2793
  | Name | Type | Description | |
2608
2794
  | ---- | ---- | ----------- | -------- |
2609
- | column | | The column | &nbsp; |
2795
+ | qrveyid | | The Qrvey ID | &nbsp; |
2610
2796
 
2611
2797
 
2612
2798
 
@@ -2614,7 +2800,7 @@ Get an string of the properties of the given column.
2614
2800
  ##### Returns
2615
2801
 
2616
2802
 
2617
- - an string with the property, aggregate or calculation label.
2803
+ - a promise
2618
2804
 
2619
2805
 
2620
2806
 
@@ -2703,12 +2889,12 @@ try to find this string as a variable on Windows object
2703
2889
 
2704
2890
 
2705
2891
 
2706
- ### dist/services/api/getAllDatasets.api.js
2892
+ ### dist/typescript/decorators/Debounce.js
2707
2893
 
2708
2894
 
2709
- #### getAllDatasets(qrveyids)
2895
+ #### Debounce(time)
2710
2896
 
2711
- Get a dataset list from a collection of Qrvey IDs
2897
+ (Method Decorator) Debounce Class Method
2712
2898
 
2713
2899
 
2714
2900
 
@@ -2717,7 +2903,7 @@ Get a dataset list from a collection of Qrvey IDs
2717
2903
 
2718
2904
  | Name | Type | Description | |
2719
2905
  | ---- | ---- | ----------- | -------- |
2720
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2906
+ | time | | (optional) deafult 500 | &nbsp; |
2721
2907
 
2722
2908
 
2723
2909
 
@@ -2725,17 +2911,17 @@ Get a dataset list from a collection of Qrvey IDs
2725
2911
  ##### Returns
2726
2912
 
2727
2913
 
2728
- - a promise
2914
+ - `Void`
2729
2915
 
2730
2916
 
2731
2917
 
2732
2918
 
2733
- ### dist/services/api/getAllQrveys.api.js
2919
+ ### dist/typescript/decorators/Throttled.js
2734
2920
 
2735
2921
 
2736
- #### getAllQrveys(config, params)
2922
+ #### Throttled(time)
2737
2923
 
2738
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2924
+ (Method Decorator) Throttled Class Method
2739
2925
 
2740
2926
 
2741
2927
 
@@ -2744,8 +2930,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2744
2930
 
2745
2931
  | Name | Type | Description | |
2746
2932
  | ---- | ---- | ----------- | -------- |
2747
- | config | | Configuration | &nbsp; |
2748
- | params | | Object for getting precise data | &nbsp; |
2933
+ | time | | (optional) deafult 500 | &nbsp; |
2749
2934
 
2750
2935
 
2751
2936
 
@@ -2758,12 +2943,12 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2758
2943
 
2759
2944
 
2760
2945
 
2761
- ### dist/services/api/getDatasetColumns.api.js
2946
+ ### dist/dates/relative/helpers/formatStatement.js
2762
2947
 
2763
2948
 
2764
- #### getDatasetColumns(qrveyid)
2949
+ #### formatStatement(statement)
2765
2950
 
2766
- Get a dataset by Qrvey ID
2951
+ Build a proper relative date statement type
2767
2952
 
2768
2953
 
2769
2954
 
@@ -2772,7 +2957,7 @@ Get a dataset by Qrvey ID
2772
2957
 
2773
2958
  | Name | Type | Description | |
2774
2959
  | ---- | ---- | ----------- | -------- |
2775
- | qrveyid | | The Qrvey ID | &nbsp; |
2960
+ | statement | `RelativeStatement` | | &nbsp; |
2776
2961
 
2777
2962
 
2778
2963
 
@@ -2780,17 +2965,17 @@ Get a dataset by Qrvey ID
2780
2965
  ##### Returns
2781
2966
 
2782
2967
 
2783
- - a promise
2968
+ - `RelativeStatement`
2784
2969
 
2785
2970
 
2786
2971
 
2787
2972
 
2788
- ### dist/typescript/decorators/Debounce.js
2973
+ ### dist/dates/relative/helpers/getStatementCase.js
2789
2974
 
2790
2975
 
2791
- #### Debounce(time)
2976
+ #### getStatementCase(includeCurrent, isCalendarDate)
2792
2977
 
2793
- (Method Decorator) Debounce Class Method
2978
+ Returns a number/constant that identifies a relative date case
2794
2979
 
2795
2980
 
2796
2981
 
@@ -2799,7 +2984,8 @@ Get a dataset by Qrvey ID
2799
2984
 
2800
2985
  | Name | Type | Description | |
2801
2986
  | ---- | ---- | ----------- | -------- |
2802
- | time | | (optional) deafult 500 | &nbsp; |
2987
+ | includeCurrent | `boolean` | | &nbsp; |
2988
+ | isCalendarDate | `boolean` | | &nbsp; |
2803
2989
 
2804
2990
 
2805
2991
 
@@ -2807,17 +2993,17 @@ Get a dataset by Qrvey ID
2807
2993
  ##### Returns
2808
2994
 
2809
2995
 
2810
- - `Void`
2996
+ - `number`
2811
2997
 
2812
2998
 
2813
2999
 
2814
3000
 
2815
- ### dist/typescript/decorators/Throttled.js
3001
+ ### dist/dates/relative/helpers/parseDate.js
2816
3002
 
2817
3003
 
2818
- #### Throttled(time)
3004
+ #### parseDate(date)
2819
3005
 
2820
- (Method Decorator) Throttled Class Method
3006
+ Parses a string date and returns a dayjs date
2821
3007
 
2822
3008
 
2823
3009
 
@@ -2826,7 +3012,7 @@ Get a dataset by Qrvey ID
2826
3012
 
2827
3013
  | Name | Type | Description | |
2828
3014
  | ---- | ---- | ----------- | -------- |
2829
- | time | | (optional) deafult 500 | &nbsp; |
3015
+ | date | `string` `Dayjs` `Date` | | &nbsp; |
2830
3016
 
2831
3017
 
2832
3018
 
@@ -2834,7 +3020,7 @@ Get a dataset by Qrvey ID
2834
3020
  ##### Returns
2835
3021
 
2836
3022
 
2837
- - `Void`
3023
+ - `Dayjs` A dayjs date
2838
3024
 
2839
3025
 
2840
3026
 
@@ -4096,6 +4282,34 @@ Gets output format object from Datasets by the given column. Item of the dataset
4096
4282
 
4097
4283
 
4098
4284
 
4285
+ ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
4286
+
4287
+
4288
+ #### getQrveyIdsByUIFilters(uiFilter)
4289
+
4290
+ Gets a collection of Qrvey IDs in the UI Filter structure.
4291
+ Looks around all filter structure finding the qrveyid propertty in each dataset
4292
+
4293
+
4294
+
4295
+
4296
+ ##### Parameters
4297
+
4298
+ | Name | Type | Description | |
4299
+ | ---- | ---- | ----------- | -------- |
4300
+ | uiFilter | | | &nbsp; |
4301
+
4302
+
4303
+
4304
+
4305
+ ##### Returns
4306
+
4307
+
4308
+ - `Void`
4309
+
4310
+
4311
+
4312
+
4099
4313
  ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4100
4314
 
4101
4315
 
@@ -4210,67 +4424,12 @@ Filters and gets a UI Flatten Filters by the given scopes
4210
4424
 
4211
4425
 
4212
4426
 
4213
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4214
-
4215
-
4216
- #### resolveUIFlatFilterByParams(filter, params)
4217
-
4218
- Resolves conditions between UI flattened filter and given parameters
4219
-
4220
-
4221
-
4222
-
4223
- ##### Parameters
4224
-
4225
- | Name | Type | Description | |
4226
- | ---- | ---- | ----------- | -------- |
4227
- | filter | | UI Flatten Filter | &nbsp; |
4228
- | params | | Parameters to validate | &nbsp; |
4229
-
4230
-
4231
-
4232
-
4233
- ##### Returns
4234
-
4235
-
4236
- - true: the conditions are satisfied.
4237
-
4238
-
4239
-
4240
-
4241
- ### dist/dates/relative/helpers/formatStatement.js
4242
-
4243
-
4244
- #### formatStatement(statement)
4245
-
4246
- Build a proper relative date statement type
4247
-
4248
-
4249
-
4250
-
4251
- ##### Parameters
4252
-
4253
- | Name | Type | Description | |
4254
- | ---- | ---- | ----------- | -------- |
4255
- | statement | `RelativeStatement` | | &nbsp; |
4256
-
4257
-
4258
-
4259
-
4260
- ##### Returns
4261
-
4262
-
4263
- - `RelativeStatement`
4264
-
4265
-
4266
-
4267
-
4268
- ### dist/dates/relative/helpers/getStatementCase.js
4427
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4269
4428
 
4270
4429
 
4271
- #### getStatementCase(includeCurrent, isCalendarDate)
4430
+ #### getUpdatedUIFilters(data, datasets)
4272
4431
 
4273
- Returns a number/constant that identifies a relative date case
4432
+ Gets a new UI Filter structure with a datasets/columns info updates
4274
4433
 
4275
4434
 
4276
4435
 
@@ -4279,8 +4438,8 @@ Returns a number/constant that identifies a relative date case
4279
4438
 
4280
4439
  | Name | Type | Description | |
4281
4440
  | ---- | ---- | ----------- | -------- |
4282
- | includeCurrent | `boolean` | | &nbsp; |
4283
- | isCalendarDate | `boolean` | | &nbsp; |
4441
+ | data | | The UI Filter structure | &nbsp; |
4442
+ | datasets | | An array of datasets/column info used for updating the data | &nbsp; |
4284
4443
 
4285
4444
 
4286
4445
 
@@ -4288,17 +4447,17 @@ Returns a number/constant that identifies a relative date case
4288
4447
  ##### Returns
4289
4448
 
4290
4449
 
4291
- - `number`
4450
+ - A new UI FIlter structure
4292
4451
 
4293
4452
 
4294
4453
 
4295
4454
 
4296
- ### dist/dates/relative/helpers/parseDate.js
4455
+ ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4297
4456
 
4298
4457
 
4299
- #### parseDate(date)
4458
+ #### resolveUIFlatFilterByParams(filter, params)
4300
4459
 
4301
- Parses a string date and returns a dayjs date
4460
+ Resolves conditions between UI flattened filter and given parameters
4302
4461
 
4303
4462
 
4304
4463
 
@@ -4307,7 +4466,8 @@ Parses a string date and returns a dayjs date
4307
4466
 
4308
4467
  | Name | Type | Description | |
4309
4468
  | ---- | ---- | ----------- | -------- |
4310
- | date | `string` `Dayjs` `Date` | | &nbsp; |
4469
+ | filter | | UI Flatten Filter | &nbsp; |
4470
+ | params | | Parameters to validate | &nbsp; |
4311
4471
 
4312
4472
 
4313
4473
 
@@ -4315,7 +4475,7 @@ Parses a string date and returns a dayjs date
4315
4475
  ##### Returns
4316
4476
 
4317
4477
 
4318
- - `Dayjs` A dayjs date
4478
+ - true: the conditions are satisfied.
4319
4479
 
4320
4480
 
4321
4481