@qrvey/utils 1.2.9-2 → 1.2.9-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (533) hide show
  1. package/README.md +779 -619
  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/columns/interfaces/IColumn.d.ts +0 -2
  10. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
  11. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.js +11 -0
  12. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
  13. package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +14 -0
  14. package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
  15. package/dist/cjs/dates/relative/constants/index.js +2 -0
  16. package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
  17. package/dist/cjs/{globalization/interfaces/IResourceI18n.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
  18. package/dist/cjs/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
  19. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
  20. package/dist/cjs/dates/relative/interfaces/index.d.ts +2 -0
  21. package/dist/cjs/dates/relative/interfaces/index.js +2 -0
  22. package/dist/cjs/filters/adapters/FDToFlatUI.js +1 -3
  23. package/dist/cjs/filters/adapters/FDToUI.js +2 -4
  24. package/dist/cjs/filters/adapters/UIToFD.js +0 -1
  25. package/dist/cjs/filters/adapters/UIToFlatUI.js +0 -2
  26. package/dist/cjs/filters/adapters/UIToOldLogic.js +1 -1
  27. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +1 -1
  28. package/dist/cjs/filters/adapters/flatUIToUI.js +0 -2
  29. package/dist/cjs/filters/adapters/logicToFlatUI.js +3 -5
  30. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  31. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  32. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
  33. package/dist/cjs/filters/helpers/ui/getUIValues.d.ts +2 -1
  34. package/dist/cjs/filters/helpers/ui/getUIValues.js +37 -18
  35. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  36. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +36 -0
  37. package/dist/cjs/filters/helpers/ui/index.d.ts +3 -0
  38. package/dist/cjs/filters/helpers/ui/index.js +3 -0
  39. package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  40. package/dist/cjs/filters/helpers/ui/transformFilterValues.js +22 -0
  41. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  42. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  43. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -0
  44. package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  45. package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  46. package/dist/cjs/filters/interfaces/ui/IFUFilter.d.ts +1 -1
  47. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  48. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → filters/interfaces/ui/IFUTransformFilterValuesSettings.js} +0 -0
  49. package/dist/cjs/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
  50. package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
  51. package/dist/cjs/filters/interfaces/ui/index.d.ts +3 -1
  52. package/dist/cjs/filters/interfaces/ui/index.js +3 -1
  53. package/dist/cjs/format/definition.d.ts +23 -0
  54. package/dist/cjs/format/definition.js +32 -1
  55. package/dist/cjs/format/format.d.ts +2 -1
  56. package/dist/cjs/format/format.js +8 -5
  57. package/dist/cjs/format/index.d.ts +1 -0
  58. package/dist/cjs/format/index.js +1 -0
  59. package/dist/cjs/format/localization.d.ts +4 -0
  60. package/dist/cjs/format/localization.js +71 -0
  61. package/dist/cjs/globalization/helpers/getI18nCalendar.d.ts +4 -0
  62. package/dist/cjs/globalization/helpers/getI18nCalendar.js +69 -0
  63. package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +2 -0
  64. package/dist/cjs/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
  65. package/dist/cjs/globalization/helpers/index.d.ts +1 -0
  66. package/dist/cjs/globalization/helpers/index.js +1 -0
  67. package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
  68. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImage.js → II18nConfig.js} +0 -0
  69. package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  70. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → II18nResource.js} +0 -0
  71. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
  72. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  73. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  74. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → calendar/II18nCalendar.js} +0 -0
  75. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  76. package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → calendar/II18nCalendarProperties.js} +0 -0
  77. package/dist/cjs/globalization/interfaces/calendar/index.d.ts +2 -0
  78. package/dist/cjs/globalization/interfaces/calendar/index.js +14 -0
  79. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
  80. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
  81. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.d.ts → cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts} +1 -1
  82. package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderComplexUsaAddress.js → II18nChartBuilderChartLabels.js} +0 -0
  83. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
  84. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
  85. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
  86. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
  87. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  88. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
  89. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  90. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
  91. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
  92. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
  93. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
  94. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
  95. package/dist/cjs/globalization/interfaces/chart_builder/index.d.ts +1 -8
  96. package/dist/cjs/globalization/interfaces/chart_builder/index.js +1 -8
  97. package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
  98. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +4 -0
  99. package/dist/cjs/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  100. package/dist/cjs/globalization/interfaces/common/II18nUnits.d.ts +7 -0
  101. package/dist/cjs/globalization/interfaces/common/II18nUnits.js +2 -0
  102. package/dist/cjs/globalization/interfaces/common/index.d.ts +2 -0
  103. package/dist/cjs/globalization/interfaces/common/index.js +2 -0
  104. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +3 -0
  105. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  106. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
  107. package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
  108. package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
  109. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +2 -0
  110. package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
  111. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
  112. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  113. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.js +2 -0
  114. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
  115. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  116. package/dist/cjs/globalization/interfaces/index.d.ts +7 -2
  117. package/dist/cjs/globalization/interfaces/index.js +7 -2
  118. package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
  119. package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
  120. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  121. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
  122. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  123. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
  124. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  125. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
  126. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  127. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
  128. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  129. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
  130. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  131. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
  132. package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
  133. package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
  134. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  135. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  136. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
  137. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +5 -2
  138. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  139. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
  140. package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
  141. package/dist/cjs/globalization/labels/calendar/index.js +13 -0
  142. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
  143. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  144. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
  145. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
  146. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  147. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +50 -43
  148. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
  149. package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
  150. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +10 -0
  151. package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  152. package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +7 -0
  153. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +6 -0
  154. package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
  155. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
  156. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
  157. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +6 -4
  158. package/dist/cjs/globalization/labels/index.d.ts +6 -3
  159. package/dist/cjs/globalization/labels/index.js +6 -3
  160. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +32 -20
  161. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  162. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +58 -0
  163. package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
  164. package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
  165. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  166. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
  167. package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
  168. package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  169. package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
  170. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  171. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
  172. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
  173. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
  174. package/dist/cjs/interfaces/format/index.d.ts +3 -0
  175. package/dist/cjs/interfaces/format/index.js +15 -0
  176. package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
  177. package/dist/cjs/interfaces/index.d.ts +1 -0
  178. package/dist/cjs/interfaces/index.js +1 -0
  179. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  180. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
  181. package/dist/cjs/qrvey/helpers/index.d.ts +2 -0
  182. package/dist/cjs/qrvey/helpers/index.js +2 -0
  183. package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
  184. package/dist/cjs/qrvey/helpers/transformValue.js +47 -0
  185. package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
  186. package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.js +2 -0
  187. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  188. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
  189. package/dist/cjs/qrvey/interfaces/index.d.ts +2 -0
  190. package/dist/cjs/qrvey/interfaces/index.js +2 -0
  191. package/dist/cjs/services/api/getAllDatasets.api.d.ts +2 -1
  192. package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
  193. package/dist/cjs/services/api/getDatasetColumns.api.js +3 -1
  194. package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
  195. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
  196. package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
  197. package/dist/columns/interfaces/IColumn.d.ts +0 -2
  198. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
  199. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.js +8 -0
  200. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
  201. package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +11 -0
  202. package/dist/dates/relative/constants/index.d.ts +2 -0
  203. package/dist/dates/relative/constants/index.js +2 -0
  204. package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
  205. package/dist/{globalization/interfaces/IResourceI18n.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
  206. package/dist/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
  207. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
  208. package/dist/dates/relative/interfaces/index.d.ts +2 -0
  209. package/dist/dates/relative/interfaces/index.js +2 -0
  210. package/dist/filters/adapters/FDToFlatUI.js +1 -3
  211. package/dist/filters/adapters/FDToUI.js +2 -4
  212. package/dist/filters/adapters/UIToFD.js +0 -1
  213. package/dist/filters/adapters/UIToFlatUI.js +0 -2
  214. package/dist/filters/adapters/UIToOldLogic.js +1 -1
  215. package/dist/filters/adapters/flatUIToOldLogic.js +1 -1
  216. package/dist/filters/adapters/flatUIToUI.js +0 -2
  217. package/dist/filters/adapters/logicToFlatUI.js +3 -5
  218. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  219. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  220. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
  221. package/dist/filters/helpers/ui/getUIValues.d.ts +2 -1
  222. package/dist/filters/helpers/ui/getUIValues.js +37 -18
  223. package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  224. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +32 -0
  225. package/dist/filters/helpers/ui/index.d.ts +3 -0
  226. package/dist/filters/helpers/ui/index.js +3 -0
  227. package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  228. package/dist/filters/helpers/ui/transformFilterValues.js +18 -0
  229. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +4 -1
  230. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +0 -2
  231. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +2 -0
  232. package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  233. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  234. package/dist/filters/interfaces/ui/IFUFilter.d.ts +1 -1
  235. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  236. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → filters/interfaces/ui/IFUTransformFilterValuesSettings.js} +0 -0
  237. package/dist/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
  238. package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
  239. package/dist/filters/interfaces/ui/index.d.ts +3 -1
  240. package/dist/filters/interfaces/ui/index.js +3 -1
  241. package/dist/format/definition.d.ts +23 -0
  242. package/dist/format/definition.js +31 -0
  243. package/dist/format/format.d.ts +2 -1
  244. package/dist/format/format.js +6 -3
  245. package/dist/format/index.d.ts +1 -0
  246. package/dist/format/index.js +1 -0
  247. package/dist/format/localization.d.ts +4 -0
  248. package/dist/format/localization.js +65 -0
  249. package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
  250. package/dist/globalization/helpers/getI18nCalendar.js +65 -0
  251. package/dist/globalization/helpers/getI18nDateGroupLabel.js +2 -0
  252. package/dist/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
  253. package/dist/globalization/helpers/index.d.ts +1 -0
  254. package/dist/globalization/helpers/index.js +1 -0
  255. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  256. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImage.js → II18nConfig.js} +0 -0
  257. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  258. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → II18nResource.js} +0 -0
  259. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
  260. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  261. package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  262. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → calendar/II18nCalendar.js} +0 -0
  263. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  264. package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → calendar/II18nCalendarProperties.js} +0 -0
  265. package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
  266. package/dist/globalization/interfaces/calendar/index.js +2 -0
  267. package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
  268. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
  269. package/dist/{cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.d.ts → globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts} +1 -1
  270. package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderComplexUsaAddress.js → II18nChartBuilderChartLabels.js} +0 -0
  271. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
  272. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
  273. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
  274. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
  275. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  276. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
  277. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  278. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +3 -1
  279. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
  280. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
  281. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
  282. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
  283. package/dist/globalization/interfaces/chart_builder/index.d.ts +1 -8
  284. package/dist/globalization/interfaces/chart_builder/index.js +1 -8
  285. package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
  286. package/dist/globalization/interfaces/common/II18nCommon.d.ts +4 -0
  287. package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  288. package/dist/globalization/interfaces/common/II18nUnits.d.ts +7 -0
  289. package/dist/globalization/interfaces/common/II18nUnits.js +1 -0
  290. package/dist/globalization/interfaces/common/index.d.ts +2 -0
  291. package/dist/globalization/interfaces/common/index.js +2 -0
  292. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +3 -0
  293. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  294. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
  295. package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
  296. package/dist/globalization/interfaces/dashboard/index.js +1 -0
  297. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +2 -0
  298. package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
  299. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
  300. package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  301. package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
  302. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
  303. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  304. package/dist/globalization/interfaces/index.d.ts +7 -2
  305. package/dist/globalization/interfaces/index.js +7 -2
  306. package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
  307. package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
  308. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  309. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
  310. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  311. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
  312. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  313. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
  314. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  315. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
  316. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  317. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
  318. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  319. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
  320. package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
  321. package/dist/globalization/interfaces/style_themes/index.js +6 -0
  322. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  323. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  324. package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
  325. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +5 -2
  326. package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  327. package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
  328. package/dist/globalization/labels/calendar/index.d.ts +1 -0
  329. package/dist/globalization/labels/calendar/index.js +1 -0
  330. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
  331. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
  332. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
  333. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +21 -15
  334. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  335. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +50 -43
  336. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
  337. package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
  338. package/dist/globalization/labels/common/I18N_COMMON.js +10 -0
  339. package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  340. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +7 -0
  341. package/dist/globalization/labels/filters/I18N_FILTER.js +6 -0
  342. package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
  343. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
  344. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
  345. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +6 -4
  346. package/dist/globalization/labels/index.d.ts +6 -3
  347. package/dist/globalization/labels/index.js +6 -3
  348. package/dist/globalization/labels/panel/I18N_PANEL.js +32 -20
  349. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  350. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
  351. package/dist/globalization/labels/style_themes/index.d.ts +1 -0
  352. package/dist/globalization/labels/style_themes/index.js +1 -0
  353. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  354. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  355. package/dist/globalization/service/initI18n.d.ts +2 -2
  356. package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  357. package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
  358. package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  359. package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
  360. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
  361. package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
  362. package/dist/interfaces/format/index.d.ts +3 -0
  363. package/dist/interfaces/format/index.js +3 -0
  364. package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
  365. package/dist/interfaces/index.d.ts +1 -0
  366. package/dist/interfaces/index.js +1 -0
  367. package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  368. package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
  369. package/dist/qrvey/helpers/index.d.ts +2 -0
  370. package/dist/qrvey/helpers/index.js +2 -0
  371. package/dist/qrvey/helpers/transformValue.d.ts +8 -0
  372. package/dist/qrvey/helpers/transformValue.js +43 -0
  373. package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
  374. package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.js +1 -0
  375. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  376. package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
  377. package/dist/qrvey/interfaces/index.d.ts +2 -0
  378. package/dist/qrvey/interfaces/index.js +2 -0
  379. package/dist/services/api/getAllDatasets.api.d.ts +2 -1
  380. package/dist/services/api/getAllDatasets.api.js +2 -1
  381. package/dist/services/api/getDatasetColumns.api.js +3 -1
  382. package/package.json +1 -1
  383. package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
  384. package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +1 -0
  385. package/src/columns/interfaces/IColumn.ts +0 -2
  386. package/src/dates/relative/constants/RELATIVE_UNIT_INFO.ts +11 -0
  387. package/src/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.ts +13 -0
  388. package/src/dates/relative/constants/index.ts +2 -0
  389. package/src/dates/relative/interfaces/IRelativeUnit.ts +3 -0
  390. package/src/dates/relative/interfaces/IRelativeUnitInfo.ts +7 -0
  391. package/src/dates/relative/interfaces/index.ts +2 -0
  392. package/src/filters/adapters/FDToFlatUI.ts +1 -3
  393. package/src/filters/adapters/FDToUI.ts +1 -3
  394. package/src/filters/adapters/UIToFD.ts +0 -1
  395. package/src/filters/adapters/UIToFlatUI.ts +0 -2
  396. package/src/filters/adapters/UIToOldLogic.ts +1 -1
  397. package/src/filters/adapters/flatUIToOldLogic.ts +1 -1
  398. package/src/filters/adapters/flatUIToUI.ts +0 -2
  399. package/src/filters/adapters/logicToFlatUI.ts +2 -4
  400. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
  401. package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
  402. package/src/filters/helpers/ui/getUIValues.ts +40 -19
  403. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +34 -0
  404. package/src/filters/helpers/ui/index.ts +3 -0
  405. package/src/filters/helpers/ui/transformFilterValues.ts +29 -0
  406. package/src/filters/interfaces/OLD_IFilterDetail.ts +2 -1
  407. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +0 -2
  408. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +4 -1
  409. package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
  410. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
  411. package/src/filters/interfaces/ui/IFUFilter.ts +1 -1
  412. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
  413. package/src/filters/interfaces/ui/IFUUIValueSettings.ts +7 -0
  414. package/src/filters/interfaces/ui/index.ts +3 -1
  415. package/src/format/definition.ts +48 -0
  416. package/src/format/format.ts +19 -15
  417. package/src/format/index.ts +1 -0
  418. package/src/format/localization.ts +68 -0
  419. package/src/globalization/helpers/getI18nCalendar.ts +68 -0
  420. package/src/globalization/helpers/getI18nDateGroupLabel.ts +2 -0
  421. package/src/globalization/helpers/getReverseI18nGroupLabel.ts +2 -0
  422. package/src/globalization/helpers/index.ts +1 -0
  423. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  424. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
  425. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +2 -1
  426. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  427. package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
  428. package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
  429. package/src/globalization/interfaces/calendar/index.ts +2 -0
  430. package/src/globalization/interfaces/chart_builder/II18nChartBuilder.ts +2 -16
  431. package/src/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.ts +19 -18
  432. package/src/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.ts → II18nChartBuilderChartLabels.ts} +1 -1
  433. package/src/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.ts +5 -4
  434. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.ts +15 -11
  435. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.ts +16 -15
  436. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +12 -11
  437. package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
  438. package/src/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.ts +16 -12
  439. package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
  440. package/src/globalization/interfaces/chart_builder/II18nChartBuilderSorting.ts +3 -1
  441. package/src/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.ts +19 -16
  442. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -1
  443. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.ts +1 -1
  444. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.ts +15 -3
  445. package/src/globalization/interfaces/chart_builder/index.ts +1 -8
  446. package/src/globalization/interfaces/common/II18nColumnProperties.ts +1 -0
  447. package/src/globalization/interfaces/common/II18nCommon.ts +4 -0
  448. package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
  449. package/src/globalization/interfaces/common/II18nUnits.ts +7 -0
  450. package/src/globalization/interfaces/common/index.ts +3 -0
  451. package/src/globalization/interfaces/dashboard/II18nDashboard.ts +3 -0
  452. package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
  453. package/src/globalization/interfaces/dashboard/index.ts +1 -0
  454. package/src/globalization/interfaces/filters/II18nFilter.ts +2 -0
  455. package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +1 -0
  456. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +5 -2
  457. package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
  458. package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -0
  459. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  460. package/src/globalization/interfaces/index.ts +7 -2
  461. package/src/globalization/interfaces/panel/II18nPanelErrors.ts +11 -9
  462. package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +21 -11
  463. package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
  464. package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
  465. package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
  466. package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
  467. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
  468. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
  469. package/src/globalization/interfaces/style_themes/index.ts +6 -0
  470. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
  471. package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
  472. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +5 -2
  473. package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
  474. package/src/globalization/labels/calendar/index.ts +1 -0
  475. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +15 -11
  476. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +52 -76
  477. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +22 -17
  478. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +3 -2
  479. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +51 -44
  480. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.ts +1 -1
  481. package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +1 -0
  482. package/src/globalization/labels/common/I18N_COMMON.ts +10 -0
  483. package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
  484. package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +7 -0
  485. package/src/globalization/labels/filters/I18N_FILTER.ts +6 -0
  486. package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +3 -2
  487. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +5 -2
  488. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +3 -2
  489. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +6 -4
  490. package/src/globalization/labels/index.ts +6 -3
  491. package/src/globalization/labels/panel/I18N_PANEL.ts +32 -20
  492. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
  493. package/src/globalization/labels/style_themes/index.ts +1 -0
  494. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
  495. package/src/globalization/service/i18nextBuilder.ts +4 -4
  496. package/src/globalization/service/initI18n.ts +3 -3
  497. package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
  498. package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
  499. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +9 -0
  500. package/src/interfaces/format/index.ts +3 -0
  501. package/src/interfaces/general/IGeneralWidgetConfig.ts +2 -0
  502. package/src/interfaces/index.ts +1 -0
  503. package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
  504. package/src/qrvey/helpers/index.ts +2 -0
  505. package/src/qrvey/helpers/transformValue.ts +47 -0
  506. package/src/qrvey/interfaces/IGetValueWithSuffixesSettings.ts +12 -0
  507. package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
  508. package/src/qrvey/interfaces/index.ts +2 -0
  509. package/src/services/api/getAllDatasets.api.ts +3 -2
  510. package/src/services/api/getDatasetColumns.api.ts +3 -1
  511. package/test/columns/isNumericalColumn.test.js +154 -0
  512. package/test/format.test.js +11 -11
  513. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
  514. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
  515. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
  516. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
  517. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
  518. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
  519. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
  520. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
  521. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
  522. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
  523. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
  524. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
  525. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
  526. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
  527. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.ts +0 -6
  528. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.ts +0 -4
  529. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.ts +0 -4
  530. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.ts +0 -4
  531. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.ts +0 -4
  532. package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.ts +0 -6
  533. 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-23*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -80,12 +80,12 @@ Get a text and evaluate if it matchs with a token box label.
80
80
 
81
81
 
82
82
 
83
- ### dist/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; |
661
+
662
+
617
663
 
618
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
+ ```
619
681
 
620
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,77 +933,26 @@ 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; |
870
-
871
-
872
-
873
-
874
- ##### Examples
875
-
876
- ```javascript
936
+ | scopes | | The filter scope section | &nbsp; |
877
937
 
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
- };
920
938
 
921
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
922
- ```
923
939
 
924
940
 
925
941
  ##### Returns
926
942
 
927
943
 
928
- - `Object` an object with the new filters structure
944
+ - a flattened UI filters array
929
945
 
930
946
 
931
947
 
932
948
 
933
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
949
+ ### dist/filters/adapters/adaptDateGroupingProperty.js
934
950
 
935
951
 
936
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
952
+ #### adaptDateGroupingProperty(property)
937
953
 
938
- [TODO: Make a proper description for this function]
954
+ [TODO: For 2022, eliminate this adapter]
955
+ Get the new property base on the old date grouping properties
939
956
 
940
957
 
941
958
 
@@ -944,9 +961,7 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
944
961
 
945
962
  | Name | Type | Description | |
946
963
  | ---- | ---- | ----------- | -------- |
947
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
948
- | scopes | | | &nbsp; |
949
- | currentScope | | | &nbsp; |
964
+ | property | | | &nbsp; |
950
965
 
951
966
 
952
967
 
@@ -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,36 @@ 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
1104
+ - an scope structure
1105
+
1106
+
1107
+
1108
+ #### buildDataset(uFilter)
1109
+
1110
+ Gets an dataset structure for the filter data
1111
+
1112
+
1113
+
1114
+
1115
+ ##### Parameters
1116
+
1117
+ | Name | Type | Description | |
1118
+ | ---- | ---- | ----------- | -------- |
1119
+ | uFilter | | a UI structure filter | &nbsp; |
1120
+
1121
+
1122
+
1088
1123
 
1124
+ ##### Returns
1089
1125
 
1090
1126
 
1127
+ - an dataset structure
1091
1128
 
1092
- ### dist/dates/adapters/monthYearToDate.js
1093
1129
 
1094
1130
 
1095
- #### monthYearToDate(monthYearDate, time)
1131
+ #### buildFilter(uFilter)
1096
1132
 
1097
- Transforms String Date from a [Month Year] format to Date object.
1133
+ Gets an filter structure for the filter data
1098
1134
 
1099
1135
 
1100
1136
 
@@ -1103,8 +1139,7 @@ Transforms String Date from a [Month Year] format to Date object.
1103
1139
 
1104
1140
  | Name | Type | Description | |
1105
1141
  | ---- | ---- | ----------- | -------- |
1106
- | monthYearDate | | String of [Month Year] date | &nbsp; |
1107
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1142
+ | uFilter | | a UI structure filter | &nbsp; |
1108
1143
 
1109
1144
 
1110
1145
 
@@ -1112,17 +1147,17 @@ Transforms String Date from a [Month Year] format to Date object.
1112
1147
  ##### Returns
1113
1148
 
1114
1149
 
1115
- - The date object or the date in milliseconds
1150
+ - an filter structure
1116
1151
 
1117
1152
 
1118
1153
 
1119
1154
 
1120
- ### dist/dates/adapters/quarterYearToDate.js
1155
+ ### dist/filters/adapters/flatUIToLogic.js
1121
1156
 
1122
1157
 
1123
- #### quarterYearToDate(quarterYearDate, time)
1158
+ #### flatUIToLogic(uFilter)
1124
1159
 
1125
- Transforms String Date from a [Quarter Year] format to Date object.
1160
+ Generates a Logic structure from flattened UI filters
1126
1161
 
1127
1162
 
1128
1163
 
@@ -1131,8 +1166,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
1131
1166
 
1132
1167
  | Name | Type | Description | |
1133
1168
  | ---- | ---- | ----------- | -------- |
1134
- | quarterYearDate | | String of [Quarter Year] date | &nbsp; |
1135
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1169
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1136
1170
 
1137
1171
 
1138
1172
 
@@ -1140,17 +1174,17 @@ Transforms String Date from a [Quarter Year] format to Date object.
1140
1174
  ##### Returns
1141
1175
 
1142
1176
 
1143
- - The date object or the date in milliseconds
1177
+ - The logic structure
1144
1178
 
1145
1179
 
1146
1180
 
1147
1181
 
1148
- ### dist/dates/adapters/weekYearToDate.js
1182
+ ### dist/filters/adapters/flatUIToOldLogic.js
1149
1183
 
1150
1184
 
1151
- #### weekYearToDate(date, time)
1185
+ #### flatUIToOldLogic(uFilters)
1152
1186
 
1153
- Transforms String Date from a [Week Year] format to Date object.
1187
+ Generates a Logic structure from flattened UI filters
1154
1188
 
1155
1189
 
1156
1190
 
@@ -1159,8 +1193,7 @@ Transforms String Date from a [Week Year] format to Date object.
1159
1193
 
1160
1194
  | Name | Type | Description | |
1161
1195
  | ---- | ---- | ----------- | -------- |
1162
- | date | | String of [Week Year] date | &nbsp; |
1163
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1196
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1164
1197
 
1165
1198
 
1166
1199
 
@@ -1168,17 +1201,17 @@ Transforms String Date from a [Week Year] format to Date object.
1168
1201
  ##### Returns
1169
1202
 
1170
1203
 
1171
- - The date object or the date in milliseconds
1204
+ - The logic structure
1172
1205
 
1173
1206
 
1174
1207
 
1175
1208
 
1176
- ### dist/dates/adapters/yearToDate.js
1209
+ ### dist/filters/adapters/flatUIToUI.js
1177
1210
 
1178
1211
 
1179
- #### yearToDate(yearDate, time)
1212
+ #### flatUIToUI(uFilters, version)
1180
1213
 
1181
- Transforms String Date from a [Year] format to Date object.
1214
+ Generates a UI filter data structure from the flatttened UI filters.
1182
1215
 
1183
1216
 
1184
1217
 
@@ -1187,8 +1220,8 @@ Transforms String Date from a [Year] format to Date object.
1187
1220
 
1188
1221
  | Name | Type | Description | |
1189
1222
  | ---- | ---- | ----------- | -------- |
1190
- | yearDate | | String of [Year] date | &nbsp; |
1191
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
1223
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1224
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1192
1225
 
1193
1226
 
1194
1227
 
@@ -1196,17 +1229,14 @@ Transforms String Date from a [Year] format to Date object.
1196
1229
  ##### Returns
1197
1230
 
1198
1231
 
1199
- - The date object or the date in milliseconds
1200
-
1201
-
1202
-
1232
+ - a UI Filter Data.
1203
1233
 
1204
- ### dist/dates/helpers/getDateByDateFormat.js
1205
1234
 
1206
1235
 
1207
- #### getDateByDateFormat(date, format, time)
1236
+ #### buildScopes(fbFilters)
1208
1237
 
1209
- Gets a Date Object instance by a Date format
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
1210
1240
 
1211
1241
 
1212
1242
 
@@ -1215,9 +1245,7 @@ Gets a Date Object instance by a Date format
1215
1245
 
1216
1246
  | Name | Type | Description | |
1217
1247
  | ---- | ---- | ----------- | -------- |
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; |
1248
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1221
1249
 
1222
1250
 
1223
1251
 
@@ -1225,17 +1253,13 @@ Gets a Date Object instance by a Date format
1225
1253
  ##### Returns
1226
1254
 
1227
1255
 
1228
- - a Date object, milisecond time or the same value if date format does not match.
1229
-
1230
-
1231
-
1256
+ - an array of scopes structure.
1232
1257
 
1233
- ### dist/dates/helpers/getDateFormatByProperty.js
1234
1258
 
1235
1259
 
1236
- #### getDateFormatByProperty(property)
1260
+ #### buildScope(uFilter)
1237
1261
 
1238
- Gets the date format by the given property
1262
+ Gets an scope structure for the UI filter data
1239
1263
 
1240
1264
 
1241
1265
 
@@ -1244,7 +1268,7 @@ Gets the date format by the given property
1244
1268
 
1245
1269
  | Name | Type | Description | |
1246
1270
  | ---- | ---- | ----------- | -------- |
1247
- | property | | The Column Property | &nbsp; |
1271
+ | uFilter | | UI structure filter | &nbsp; |
1248
1272
 
1249
1273
 
1250
1274
 
@@ -1252,17 +1276,13 @@ Gets the date format by the given property
1252
1276
  ##### Returns
1253
1277
 
1254
1278
 
1255
- - The date format
1256
-
1257
-
1258
-
1279
+ - an scope structure
1259
1280
 
1260
- ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
1261
1281
 
1262
1282
 
1263
- #### getDateFormatRegularExpressionInArray(dateFormat)
1283
+ #### buildDataset(uFilter)
1264
1284
 
1265
- Gets an array of regular expressions by the given date format
1285
+ Gets an dataset structure for the UI filter data
1266
1286
 
1267
1287
 
1268
1288
 
@@ -1271,7 +1291,7 @@ Gets an array of regular expressions by the given date format
1271
1291
 
1272
1292
  | Name | Type | Description | |
1273
1293
  | ---- | ---- | ----------- | -------- |
1274
- | dateFormat | | the date format | &nbsp; |
1294
+ | uFilter | | a UI structure filter | &nbsp; |
1275
1295
 
1276
1296
 
1277
1297
 
@@ -1279,17 +1299,13 @@ Gets an array of regular expressions by the given date format
1279
1299
  ##### Returns
1280
1300
 
1281
1301
 
1282
- - an array of regular expressions
1283
-
1284
-
1285
-
1302
+ - an dataset structure
1286
1303
 
1287
- ### dist/dates/helpers/getSeparatorByDateFormat.js
1288
1304
 
1289
1305
 
1290
- #### getSeparatorByDateFormat(format)
1306
+ #### buildFilter(uFilter)
1291
1307
 
1292
- Gets the separator of the date format
1308
+ Gets an filter structure for the UI filter data
1293
1309
 
1294
1310
 
1295
1311
 
@@ -1298,7 +1314,7 @@ Gets the separator of the date format
1298
1314
 
1299
1315
  | Name | Type | Description | |
1300
1316
  | ---- | ---- | ----------- | -------- |
1301
- | format | | the date format | &nbsp; |
1317
+ | uFilter | | a UI structure filter | &nbsp; |
1302
1318
 
1303
1319
 
1304
1320
 
@@ -1306,18 +1322,17 @@ Gets the separator of the date format
1306
1322
  ##### Returns
1307
1323
 
1308
1324
 
1309
- - a separator string
1325
+ - an filter structure
1310
1326
 
1311
1327
 
1312
1328
 
1313
1329
 
1314
- ### dist/dates/helpers/getWeek.js
1330
+ ### dist/filters/adapters/logicToFD.js
1315
1331
 
1316
1332
 
1317
- #### getWeek(date)
1333
+ #### logicToFD(filterData, version)
1318
1334
 
1319
- Gets the week number of the year
1320
- Additionally, the month and the year
1335
+ Generates a filter data structure from the old logic structure (v2.0).
1321
1336
 
1322
1337
 
1323
1338
 
@@ -1326,7 +1341,8 @@ Additionally, the month and the year
1326
1341
 
1327
1342
  | Name | Type | Description | |
1328
1343
  | ---- | ---- | ----------- | -------- |
1329
- | date | | the date object | &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; |
1330
1346
 
1331
1347
 
1332
1348
 
@@ -1334,20 +1350,17 @@ Additionally, the month and the year
1334
1350
  ##### Returns
1335
1351
 
1336
1352
 
1337
- - an object with the week, month and year.
1353
+ - a Filter Data.
1338
1354
 
1339
1355
 
1340
1356
 
1341
1357
 
1342
- ### dist/dates/helpers/validateDate.js
1358
+ ### dist/filters/adapters/logicToFlatUI.js
1343
1359
 
1344
1360
 
1345
- #### validateDate(date, format)
1361
+ #### logicToFlatUI(logics)
1346
1362
 
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
1363
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1351
1364
 
1352
1365
 
1353
1366
 
@@ -1356,8 +1369,7 @@ Validate a string date depending on giving format
1356
1369
 
1357
1370
  | Name | Type | Description | |
1358
1371
  | ---- | ---- | ----------- | -------- |
1359
- | date | | String of date | &nbsp; |
1360
- | format | | String of the format to validate | &nbsp; |
1372
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1361
1373
 
1362
1374
 
1363
1375
 
@@ -1365,17 +1377,13 @@ Validate a string date depending on giving format
1365
1377
  ##### Returns
1366
1378
 
1367
1379
 
1368
- - True if it is valid or not. Undefined if date is undefined
1369
-
1370
-
1371
-
1380
+ - The Flattened UI Filters array
1372
1381
 
1373
- ### dist/dates/helpers/validateDateByDateFormat.js
1374
1382
 
1375
1383
 
1376
- #### validateDateByDateFormat(date, dateForma)
1384
+ #### getFilter(filters, filter, getIndex)
1377
1385
 
1378
- Validates the given string as Date by its date format.
1386
+ Get the filter or the index of the given array, validating an old filter structure.
1379
1387
 
1380
1388
 
1381
1389
 
@@ -1384,8 +1392,9 @@ Validates the given string as Date by its date format.
1384
1392
 
1385
1393
  | Name | Type | Description | |
1386
1394
  | ---- | ---- | ----------- | -------- |
1387
- | date | | a string to validate as date form | &nbsp; |
1388
- | dateForma | | the format of the date to validate the string | &nbsp; |
1395
+ | filters | | The array of UI filters | &nbsp; |
1396
+ | filter | | The old logic structure filter | &nbsp; |
1397
+ | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
1389
1398
 
1390
1399
 
1391
1400
 
@@ -1393,17 +1402,13 @@ Validates the given string as Date by its date format.
1393
1402
  ##### Returns
1394
1403
 
1395
1404
 
1396
- - true: the string is a valida date
1397
-
1398
-
1399
-
1405
+ - the index or the UI filter object
1400
1406
 
1401
- ### dist/dates/range/getDateRange.js
1402
1407
 
1403
1408
 
1404
- #### getDateRange(value, dateGroupLabel, withTime)
1409
+ #### refineRankingValues(values, uiValues)
1405
1410
 
1406
- Get date range object from a string date value
1411
+ Refines the values of the Ranking column type.
1407
1412
 
1408
1413
 
1409
1414
 
@@ -1412,58 +1417,36 @@ Get date range object from a string date value
1412
1417
 
1413
1418
  | Name | Type | Description | |
1414
1419
  | ---- | ---- | ----------- | -------- |
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
+ | values | | the Array of Ranking values | &nbsp; |
1421
+ | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1420
1422
 
1421
1423
 
1422
- ##### Examples
1423
1424
 
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
1425
 
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
- }
1426
+ ##### Returns
1440
1427
 
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
1428
 
1429
+ - the array of Ranking values
1450
1430
 
1451
- ##### Returns
1452
1431
 
1453
1432
 
1454
- - `Object` an object with the date range with two string date properties: from and to
1455
1433
 
1434
+ ### dist/filters/adapters/logicToUI.js
1456
1435
 
1457
1436
 
1437
+ #### logicToUI(uFilters, datasetsInfo)
1458
1438
 
1459
- ### dist/dates/relative/Adapter.js
1439
+ Generates a UI filter structure from the old logic structure (v2.0).
1460
1440
 
1461
1441
 
1462
- #### value()
1463
1442
 
1464
- Resolves statement and returns statement value
1465
1443
 
1444
+ ##### Parameters
1466
1445
 
1446
+ | Name | Type | Description | |
1447
+ | ---- | ---- | ----------- | -------- |
1448
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1449
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1467
1450
 
1468
1451
 
1469
1452
 
@@ -1471,93 +1454,145 @@ Resolves statement and returns statement value
1471
1454
  ##### Returns
1472
1455
 
1473
1456
 
1474
- - `AbsoluteRange` `string`
1475
-
1457
+ - a UI Filter Data.
1476
1458
 
1477
1459
 
1478
- #### valueAsAnchor()
1479
1460
 
1480
- Resolves statement as an anchor
1481
1461
 
1462
+ ### dist/filters/adapters/transformFilters.js
1482
1463
 
1483
1464
 
1465
+ #### transformFilters(oldFiltersObj, section)
1484
1466
 
1467
+ Transform the old filters structure into the new one
1485
1468
 
1486
1469
 
1487
- ##### Returns
1488
1470
 
1489
1471
 
1490
- - `string`
1472
+ ##### Parameters
1491
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; |
1492
1478
 
1493
1479
 
1494
- #### _statementToRange() *private method*
1495
1480
 
1496
- Convert verbal statement to range value
1497
1481
 
1482
+ ##### Examples
1498
1483
 
1484
+ ```javascript
1499
1485
 
1486
+ const oldPreferenceFilters = {
1487
+ "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
1488
+ "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
1489
+ "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
1490
+ "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
1491
+ "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
1492
+ "formulaId": null,
1493
+ "panelId": null,
1494
+ "values": [
1495
+ {
1496
+ "EQUALS": [
1497
+ {
1498
+ "id": "AK4M8UV2a0",
1499
+ "value": "A",
1500
+ "enabled": true,
1501
+ "imageUrl": null
1502
+ },
1503
+ {
1504
+ "id": "AK4M8UV2a1",
1505
+ "value": "B",
1506
+ "enabled": true,
1507
+ "imageUrl": null
1508
+ }
1509
+ ]
1510
+ }
1511
+ ],
1512
+ "bucketId": null,
1513
+ "text": "MC",
1514
+ "title": "MC",
1515
+ "type": "SINGLE_CHOICE",
1516
+ "qid": "AK4M8UV2",
1517
+ "dataset": {
1518
+ "sourceid": "xYOQAdpqT",
1519
+ "name": "Form All Questions",
1520
+ "qrveyid": "xYOQAdpqT",
1521
+ "text": "Form All Questions",
1522
+ "linkid": 0
1523
+ },
1524
+ "enabled": true,
1525
+ "linked": null
1526
+ }
1527
+ };
1500
1528
 
1529
+ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1530
+ ```
1501
1531
 
1502
1532
 
1503
1533
  ##### Returns
1504
1534
 
1505
1535
 
1506
- - `AbsoluteRange`
1536
+ - `Object` an object with the new filters structure
1537
+
1507
1538
 
1508
1539
 
1509
1540
 
1510
- #### _resolveAsThis() *private method*
1541
+ ### dist/filters/classes/FilterInputErrorHandler.js
1511
1542
 
1512
- Apply 'this' cursor logic to statement
1513
1543
 
1544
+ #### new FilterInputErrorHandler()
1514
1545
 
1515
1546
 
1516
1547
 
1517
1548
 
1518
1549
 
1519
- ##### Returns
1520
1550
 
1521
1551
 
1522
- - `AbsoluteStatement`
1523
1552
 
1553
+ ##### Returns
1524
1554
 
1525
1555
 
1526
- #### _resolveAsTheLast() *private method*
1556
+ - `Void`
1527
1557
 
1528
- Apply 'the last' cursor logic to statement
1529
1558
 
1530
1559
 
1531
1560
 
1561
+ ### dist/filters/helpers/applyHierarchyForAggFilters.js
1532
1562
 
1533
1563
 
1564
+ #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
1534
1565
 
1535
- ##### Returns
1566
+ [TODO: Make a proper description for this function]
1536
1567
 
1537
1568
 
1538
- - `AbsoluteStatement`
1539
1569
 
1540
1570
 
1571
+ ##### Parameters
1541
1572
 
1542
- #### _resolveAsTheNext() *private method*
1573
+ | Name | Type | Description | |
1574
+ | ---- | ---- | ----------- | -------- |
1575
+ | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1576
+ | scopes | | | &nbsp; |
1577
+ | currentScope | | | &nbsp; |
1543
1578
 
1544
- Apply 'the next' cursor logic to statement
1545
1579
 
1546
1580
 
1547
1581
 
1582
+ ##### Returns
1548
1583
 
1549
1584
 
1585
+ -
1550
1586
 
1551
- ##### Returns
1552
1587
 
1553
1588
 
1554
- - `AbsoluteStatement`
1555
1589
 
1590
+ ### dist/filters/helpers/getAvailableScopes.js
1556
1591
 
1557
1592
 
1558
- #### replaceNowToken(value, now)
1593
+ #### getAvailableScopes(config)
1559
1594
 
1560
- Replace '@now' token inside a string
1595
+ Gets Scopes/Scope IDs by given IDs
1561
1596
 
1562
1597
 
1563
1598
 
@@ -1566,8 +1601,7 @@ Replace '@now' token inside a string
1566
1601
 
1567
1602
  | Name | Type | Description | |
1568
1603
  | ---- | ---- | ----------- | -------- |
1569
- | value | `string` | | &nbsp; |
1570
- | now | `Date` | | &nbsp; |
1604
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
1571
1605
 
1572
1606
 
1573
1607
 
@@ -1575,60 +1609,44 @@ Replace '@now' token inside a string
1575
1609
  ##### Returns
1576
1610
 
1577
1611
 
1578
- - `string`
1612
+ - a Scopes/Scope IDs array
1579
1613
 
1580
1614
 
1581
1615
 
1582
- #### convertRelativeToAbsolute(args)
1583
1616
 
1584
- Returns a range object (date) from a group of statement params
1617
+ ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1585
1618
 
1586
1619
 
1620
+ #### getAvailableScopesIDsByConfig(config)
1587
1621
 
1622
+ Gets the Scopes IDS for the Available Scope function by any config
1588
1623
 
1589
- ##### Parameters
1590
1624
 
1591
- | Name | Type | Description | |
1592
- | ---- | ---- | ----------- | -------- |
1593
- | args | `RelativeToAbsoluteStruct` | | &nbsp; |
1594
1625
 
1595
1626
 
1627
+ ##### Parameters
1596
1628
 
1629
+ | Name | Type | Description | |
1630
+ | ---- | ---- | ----------- | -------- |
1631
+ | config | | any config | &nbsp; |
1597
1632
 
1598
- ##### Examples
1599
1633
 
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
1634
 
1617
1635
 
1618
1636
  ##### Returns
1619
1637
 
1620
1638
 
1621
- - `string`
1639
+ - a Available Scope IDS config
1622
1640
 
1623
1641
 
1624
1642
 
1625
1643
 
1626
- ### dist/dates/relative/relative.js
1644
+ ### dist/filters/helpers/getScopesByHierarchy.js
1627
1645
 
1628
1646
 
1629
- #### resolveRelative(statements, clock)
1647
+ #### getScopesByHierarchy(scopes, currentScope)
1630
1648
 
1631
- Resolve a list of relative statements according to operator
1649
+ [TODO: Make a description for this]
1632
1650
 
1633
1651
 
1634
1652
 
@@ -1637,34 +1655,16 @@ Resolve a list of relative statements according to operator
1637
1655
 
1638
1656
  | Name | Type | Description | |
1639
1657
  | ---- | ---- | ----------- | -------- |
1640
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
1641
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
1642
-
1643
-
1644
-
1645
-
1646
- ##### Examples
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
 
@@ -2429,13 +2402,148 @@ The second given argument to the first given argument.
2429
2402
  ##### Returns
2430
2403
 
2431
2404
 
2432
- - a new merged object
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; |
2529
+
2530
+
2531
+
2532
+
2533
+ ##### Returns
2534
+
2535
+
2536
+ - `Object` new object just with desired attributes
2433
2537
 
2434
2538
 
2435
2539
 
2436
- #### isValid(obj1, obj2)
2437
2540
 
2438
- Validates if the two arguments are objects
2541
+ ### dist/general/object/serialize.js
2542
+
2543
+
2544
+ #### serialize(obj)
2545
+
2546
+ serialize object to url param
2439
2547
 
2440
2548
 
2441
2549
 
@@ -2444,8 +2552,7 @@ Validates if the two arguments are objects
2444
2552
 
2445
2553
  | Name | Type | Description | |
2446
2554
  | ---- | ---- | ----------- | -------- |
2447
- | obj1 | | The target object | &nbsp; |
2448
- | obj2 | | The object to be merged | &nbsp; |
2555
+ | obj | | - Object to be serialized | &nbsp; |
2449
2556
 
2450
2557
 
2451
2558
 
@@ -2453,13 +2560,17 @@ Validates if the two arguments are objects
2453
2560
  ##### Returns
2454
2561
 
2455
2562
 
2456
- - true: they are valid; false: they are not
2563
+ - `Void`
2457
2564
 
2458
2565
 
2459
2566
 
2460
- #### getParamsToMergeDeep(settings)
2461
2567
 
2462
- Validates and gets the settings with all set parameters.
2568
+ ### dist/general/string/capitalize.js
2569
+
2570
+
2571
+ #### capitalize(text)
2572
+
2573
+ Upper case the first letter of a given text
2463
2574
 
2464
2575
 
2465
2576
 
@@ -2468,7 +2579,7 @@ Validates and gets the settings with all set parameters.
2468
2579
 
2469
2580
  | Name | Type | Description | |
2470
2581
  | ---- | ---- | ----------- | -------- |
2471
- | settings | | the settings object | &nbsp; |
2582
+ | text | `String` | | &nbsp; |
2472
2583
 
2473
2584
 
2474
2585
 
@@ -2476,17 +2587,17 @@ Validates and gets the settings with all set parameters.
2476
2587
  ##### Returns
2477
2588
 
2478
2589
 
2479
- - a new settings object with all set parameters.
2590
+ - `String` a capitalized text
2480
2591
 
2481
2592
 
2482
2593
 
2483
2594
 
2484
- ### dist/general/object/objectCopy.js
2595
+ ### dist/qrvey/helpers/getColumnsLabel.js
2485
2596
 
2486
2597
 
2487
- #### objectCopy(entity, cache)
2598
+ #### getColumnLabels(column)
2488
2599
 
2489
- Created a new reference of the given argument
2600
+ Get an string of the properties of the given column.
2490
2601
 
2491
2602
 
2492
2603
 
@@ -2495,8 +2606,7 @@ Created a new reference of the given argument
2495
2606
 
2496
2607
  | Name | Type | Description | |
2497
2608
  | ---- | ---- | ----------- | -------- |
2498
- | entity | | The variable to be copied | &nbsp; |
2499
- | cache | | | &nbsp; |
2609
+ | column | | The column | &nbsp; |
2500
2610
 
2501
2611
 
2502
2612
 
@@ -2504,17 +2614,18 @@ Created a new reference of the given argument
2504
2614
  ##### Returns
2505
2615
 
2506
2616
 
2507
- - A new reference of the given argument
2617
+ - an string with the property, aggregate or calculation label.
2508
2618
 
2509
2619
 
2510
2620
 
2511
2621
 
2512
- ### dist/general/object/omit.js
2622
+ ### dist/qrvey/helpers/getValueWithSuffixes.js
2513
2623
 
2514
2624
 
2515
- #### omit(obj, props)
2625
+ #### getValueWithSuffixes(value, suffixes)
2516
2626
 
2517
- return a new Object excluding attributes in _props_ list
2627
+ Get a string value with suffixes if available.
2628
+ Add suffix into the value string. Prioritized for numeric values.
2518
2629
 
2519
2630
 
2520
2631
 
@@ -2523,8 +2634,8 @@ return a new Object excluding attributes in _props_ list
2523
2634
 
2524
2635
  | Name | Type | Description | |
2525
2636
  | ---- | ---- | ----------- | -------- |
2526
- | obj | `Object` | base object | &nbsp; |
2527
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2637
+ | value | | a number or string | &nbsp; |
2638
+ | suffixes | | An object with singular or plural suffix string. | &nbsp; |
2528
2639
 
2529
2640
 
2530
2641
 
@@ -2532,17 +2643,17 @@ return a new Object excluding attributes in _props_ list
2532
2643
  ##### Returns
2533
2644
 
2534
2645
 
2535
- - `Object` clean object
2646
+ - a string value with suffix
2536
2647
 
2537
2648
 
2538
2649
 
2539
2650
 
2540
- ### dist/general/object/pick.js
2651
+ ### dist/qrvey/helpers/transformValue.js
2541
2652
 
2542
2653
 
2543
- #### pick(baseObject, keys)
2654
+ #### transformValue(value, settings)
2544
2655
 
2545
- return a new object just with attributes in _keys_ list
2656
+ Transforms a value depending of localization/globalization and extras settings.
2546
2657
 
2547
2658
 
2548
2659
 
@@ -2551,8 +2662,8 @@ return a new object just with attributes in _keys_ list
2551
2662
 
2552
2663
  | Name | Type | Description | |
2553
2664
  | ---- | ---- | ----------- | -------- |
2554
- | baseObject | `Object` | base object | &nbsp; |
2555
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2665
+ | value | | A value to transform | &nbsp; |
2666
+ | settings | | The settings of the transformValue function | &nbsp; |
2556
2667
 
2557
2668
 
2558
2669
 
@@ -2560,17 +2671,13 @@ return a new object just with attributes in _keys_ list
2560
2671
  ##### Returns
2561
2672
 
2562
2673
 
2563
- - `Object` new object just with desired attributes
2564
-
2565
-
2566
-
2674
+ - A transformed value
2567
2675
 
2568
- ### dist/general/object/serialize.js
2569
2676
 
2570
2677
 
2571
- #### serialize(obj)
2678
+ #### getOutputFormat(settings)
2572
2679
 
2573
- serialize object to url param
2680
+ Gets the outputformat settings
2574
2681
 
2575
2682
 
2576
2683
 
@@ -2579,7 +2686,7 @@ serialize object to url param
2579
2686
 
2580
2687
  | Name | Type | Description | |
2581
2688
  | ---- | ---- | ----------- | -------- |
2582
- | obj | | - Object to be serialized | &nbsp; |
2689
+ | settings | | The settings of the transformValue function | &nbsp; |
2583
2690
 
2584
2691
 
2585
2692
 
@@ -2587,17 +2694,13 @@ serialize object to url param
2587
2694
  ##### Returns
2588
2695
 
2589
2696
 
2590
- - `Void`
2591
-
2592
-
2593
-
2697
+ - the outputformat settings
2594
2698
 
2595
- ### dist/qrvey/helpers/getColumnsLabel.js
2596
2699
 
2597
2700
 
2598
- #### getColumnLabels(column)
2701
+ #### getFormatConfig(settings)
2599
2702
 
2600
- Get an string of the properties of the given column.
2703
+ Gets the format config
2601
2704
 
2602
2705
 
2603
2706
 
@@ -2606,7 +2709,7 @@ Get an string of the properties of the given column.
2606
2709
 
2607
2710
  | Name | Type | Description | |
2608
2711
  | ---- | ---- | ----------- | -------- |
2609
- | column | | The column | &nbsp; |
2712
+ | settings | | The settings of the transformValue function | &nbsp; |
2610
2713
 
2611
2714
 
2612
2715
 
@@ -2614,7 +2717,7 @@ Get an string of the properties of the given column.
2614
2717
  ##### Returns
2615
2718
 
2616
2719
 
2617
- - an string with the property, aggregate or calculation label.
2720
+ - the format config
2618
2721
 
2619
2722
 
2620
2723
 
@@ -2706,7 +2809,7 @@ try to find this string as a variable on Windows object
2706
2809
  ### dist/services/api/getAllDatasets.api.js
2707
2810
 
2708
2811
 
2709
- #### getAllDatasets(qrveyids)
2812
+ #### getAllDatasets(config, pickDatasets)
2710
2813
 
2711
2814
  Get a dataset list from a collection of Qrvey IDs
2712
2815
 
@@ -2717,7 +2820,8 @@ Get a dataset list from a collection of Qrvey IDs
2717
2820
 
2718
2821
  | Name | Type | Description | |
2719
2822
  | ---- | ---- | ----------- | -------- |
2720
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2823
+ | config | | the widget config. Includes the appid and others configuration properties | &nbsp; |
2824
+ | pickDatasets | | Collection of Qrvey IDs for filtering the request | &nbsp; |
2721
2825
 
2722
2826
 
2723
2827
 
@@ -2839,6 +2943,88 @@ Get a dataset by Qrvey ID
2839
2943
 
2840
2944
 
2841
2945
 
2946
+ ### dist/dates/relative/helpers/formatStatement.js
2947
+
2948
+
2949
+ #### formatStatement(statement)
2950
+
2951
+ Build a proper relative date statement type
2952
+
2953
+
2954
+
2955
+
2956
+ ##### Parameters
2957
+
2958
+ | Name | Type | Description | |
2959
+ | ---- | ---- | ----------- | -------- |
2960
+ | statement | `RelativeStatement` | | &nbsp; |
2961
+
2962
+
2963
+
2964
+
2965
+ ##### Returns
2966
+
2967
+
2968
+ - `RelativeStatement`
2969
+
2970
+
2971
+
2972
+
2973
+ ### dist/dates/relative/helpers/getStatementCase.js
2974
+
2975
+
2976
+ #### getStatementCase(includeCurrent, isCalendarDate)
2977
+
2978
+ Returns a number/constant that identifies a relative date case
2979
+
2980
+
2981
+
2982
+
2983
+ ##### Parameters
2984
+
2985
+ | Name | Type | Description | |
2986
+ | ---- | ---- | ----------- | -------- |
2987
+ | includeCurrent | `boolean` | | &nbsp; |
2988
+ | isCalendarDate | `boolean` | | &nbsp; |
2989
+
2990
+
2991
+
2992
+
2993
+ ##### Returns
2994
+
2995
+
2996
+ - `number`
2997
+
2998
+
2999
+
3000
+
3001
+ ### dist/dates/relative/helpers/parseDate.js
3002
+
3003
+
3004
+ #### parseDate(date)
3005
+
3006
+ Parses a string date and returns a dayjs date
3007
+
3008
+
3009
+
3010
+
3011
+ ##### Parameters
3012
+
3013
+ | Name | Type | Description | |
3014
+ | ---- | ---- | ----------- | -------- |
3015
+ | date | `string` `Dayjs` `Date` | | &nbsp; |
3016
+
3017
+
3018
+
3019
+
3020
+ ##### Returns
3021
+
3022
+
3023
+ - `Dayjs` A dayjs date
3024
+
3025
+
3026
+
3027
+
2842
3028
  ### dist/filters/helpers/backend/buildExpression.js
2843
3029
 
2844
3030
 
@@ -3282,33 +3468,6 @@ Excludes and returns a filter data without filters by the given scopes
3282
3468
 
3283
3469
 
3284
3470
 
3285
- ### dist/filters/helpers/common/getFilterColumnLabel.js
3286
-
3287
-
3288
- #### getFilterColumnLabel(column)
3289
-
3290
- Get an string of the properties of the given filter column.
3291
-
3292
-
3293
-
3294
-
3295
- ##### Parameters
3296
-
3297
- | Name | Type | Description | |
3298
- | ---- | ---- | ----------- | -------- |
3299
- | column | | The filter column | &nbsp; |
3300
-
3301
-
3302
-
3303
-
3304
- ##### Returns
3305
-
3306
-
3307
- - an string with the property, aggregate or calculation label.
3308
-
3309
-
3310
-
3311
-
3312
3471
  ### dist/filters/helpers/common/getFilterLabel.js
3313
3472
 
3314
3473
 
@@ -4096,6 +4255,34 @@ Gets output format object from Datasets by the given column. Item of the dataset
4096
4255
 
4097
4256
 
4098
4257
 
4258
+ ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
4259
+
4260
+
4261
+ #### getQrveyIdsByUIFilters(uiFilter)
4262
+
4263
+ Gets a collection of Qrvey IDs in the UI Filter structure.
4264
+ Looks around all filter structure finding the qrveyid propertty in each dataset
4265
+
4266
+
4267
+
4268
+
4269
+ ##### Parameters
4270
+
4271
+ | Name | Type | Description | |
4272
+ | ---- | ---- | ----------- | -------- |
4273
+ | uiFilter | | | &nbsp; |
4274
+
4275
+
4276
+
4277
+
4278
+ ##### Returns
4279
+
4280
+
4281
+ - `Void`
4282
+
4283
+
4284
+
4285
+
4099
4286
  ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4100
4287
 
4101
4288
 
@@ -4210,40 +4397,12 @@ Filters and gets a UI Flatten Filters by the given scopes
4210
4397
 
4211
4398
 
4212
4399
 
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
4400
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4242
4401
 
4243
4402
 
4244
- #### formatStatement(statement)
4403
+ #### getUpdatedUIFilters(data, datasets)
4245
4404
 
4246
- Build a proper relative date statement type
4405
+ Gets a new UI Filter structure with a datasets/columns info updates
4247
4406
 
4248
4407
 
4249
4408
 
@@ -4252,7 +4411,8 @@ Build a proper relative date statement type
4252
4411
 
4253
4412
  | Name | Type | Description | |
4254
4413
  | ---- | ---- | ----------- | -------- |
4255
- | statement | `RelativeStatement` | | &nbsp; |
4414
+ | data | | The UI Filter structure | &nbsp; |
4415
+ | datasets | | An array of datasets/column info used for updating the data | &nbsp; |
4256
4416
 
4257
4417
 
4258
4418
 
@@ -4260,17 +4420,17 @@ Build a proper relative date statement type
4260
4420
  ##### Returns
4261
4421
 
4262
4422
 
4263
- - `RelativeStatement`
4423
+ - A new UI FIlter structure
4264
4424
 
4265
4425
 
4266
4426
 
4267
4427
 
4268
- ### dist/dates/relative/helpers/getStatementCase.js
4428
+ ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4269
4429
 
4270
4430
 
4271
- #### getStatementCase(includeCurrent, isCalendarDate)
4431
+ #### resolveUIFlatFilterByParams(filter, params)
4272
4432
 
4273
- Returns a number/constant that identifies a relative date case
4433
+ Resolves conditions between UI flattened filter and given parameters
4274
4434
 
4275
4435
 
4276
4436
 
@@ -4279,8 +4439,8 @@ Returns a number/constant that identifies a relative date case
4279
4439
 
4280
4440
  | Name | Type | Description | |
4281
4441
  | ---- | ---- | ----------- | -------- |
4282
- | includeCurrent | `boolean` | | &nbsp; |
4283
- | isCalendarDate | `boolean` | | &nbsp; |
4442
+ | filter | | UI Flatten Filter | &nbsp; |
4443
+ | params | | Parameters to validate | &nbsp; |
4284
4444
 
4285
4445
 
4286
4446
 
@@ -4288,17 +4448,17 @@ Returns a number/constant that identifies a relative date case
4288
4448
  ##### Returns
4289
4449
 
4290
4450
 
4291
- - `number`
4451
+ - true: the conditions are satisfied.
4292
4452
 
4293
4453
 
4294
4454
 
4295
4455
 
4296
- ### dist/dates/relative/helpers/parseDate.js
4456
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
4297
4457
 
4298
4458
 
4299
- #### parseDate(date)
4459
+ #### getFilterColumnLabel(column)
4300
4460
 
4301
- Parses a string date and returns a dayjs date
4461
+ Get an string of the properties of the given filter column.
4302
4462
 
4303
4463
 
4304
4464
 
@@ -4307,7 +4467,7 @@ Parses a string date and returns a dayjs date
4307
4467
 
4308
4468
  | Name | Type | Description | |
4309
4469
  | ---- | ---- | ----------- | -------- |
4310
- | date | `string` `Dayjs` `Date` | | &nbsp; |
4470
+ | column | | The filter column | &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
+ - an string with the property, aggregate or calculation label.
4319
4479
 
4320
4480
 
4321
4481