@qrvey/utils 1.2.9-9 → 1.2.10-0

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 (1032) hide show
  1. package/README.md +2299 -767
  2. package/dist/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
  3. package/dist/charts/constants/AGGREGATE_LABEL.js +1 -1
  4. package/dist/charts/constants/index.d.ts +1 -0
  5. package/dist/charts/constants/index.js +1 -0
  6. package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
  7. package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +1 -1
  8. package/dist/cjs/charts/constants/index.d.ts +1 -0
  9. package/dist/cjs/charts/constants/index.js +1 -0
  10. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
  11. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +9 -0
  12. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
  13. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +9 -0
  14. package/dist/cjs/columns/constants/index.d.ts +4 -0
  15. package/dist/cjs/columns/constants/index.js +4 -0
  16. package/dist/{qrvey → cjs/columns}/helpers/getColumnsLabel.d.ts +1 -1
  17. package/dist/cjs/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
  18. package/dist/cjs/columns/helpers/getDatasetByColumn.d.ts +3 -0
  19. package/dist/cjs/columns/helpers/getDatasetByColumn.js +10 -0
  20. package/dist/cjs/columns/helpers/getDatasetColumn.d.ts +3 -0
  21. package/dist/cjs/columns/helpers/getDatasetColumn.js +16 -0
  22. package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
  23. package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.js +12 -0
  24. package/dist/cjs/columns/helpers/getModelColumn.d.ts +9 -0
  25. package/dist/cjs/columns/helpers/getModelColumn.js +30 -0
  26. package/dist/cjs/columns/helpers/index.d.ts +5 -0
  27. package/dist/cjs/columns/helpers/index.js +5 -0
  28. package/dist/cjs/columns/interfaces/IBColumAnswer.d.ts +6 -0
  29. package/dist/cjs/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
  30. package/dist/cjs/columns/interfaces/IBColumn.d.ts +10 -3
  31. package/dist/cjs/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
  32. package/dist/cjs/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
  33. package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
  34. package/dist/cjs/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
  35. package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
  36. package/dist/cjs/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
  37. package/dist/cjs/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
  38. package/dist/cjs/columns/interfaces/IBColumnAnswerGeneral.js +2 -0
  39. package/dist/cjs/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
  40. package/dist/cjs/columns/interfaces/IBColumnAnswerImages.js +2 -0
  41. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
  42. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.js +2 -0
  43. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
  44. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +2 -0
  45. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
  46. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.js +2 -0
  47. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
  48. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.js +2 -0
  49. package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
  50. package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.js +2 -0
  51. package/dist/cjs/columns/interfaces/IColumn.d.ts +9 -3
  52. package/dist/cjs/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
  53. package/dist/cjs/columns/interfaces/IColumnImageUploadOption.js +2 -0
  54. package/dist/cjs/columns/interfaces/index.d.ts +11 -0
  55. package/dist/cjs/columns/interfaces/index.js +11 -0
  56. package/dist/cjs/dates/adapters/index.d.ts +5 -0
  57. package/dist/cjs/dates/adapters/index.js +17 -0
  58. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  59. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
  60. package/dist/cjs/dates/constants/index.d.ts +2 -0
  61. package/dist/cjs/dates/constants/index.js +2 -0
  62. package/dist/cjs/dates/helpers/index.d.ts +1 -0
  63. package/dist/cjs/dates/helpers/index.js +1 -0
  64. package/dist/cjs/dates/index.d.ts +1 -0
  65. package/dist/cjs/dates/index.js +1 -0
  66. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
  67. package/dist/cjs/filters/adapters/FDToFlatUI.js +2 -1
  68. package/dist/cjs/filters/adapters/FDToUI.js +2 -4
  69. package/dist/cjs/filters/adapters/UIToFlatUI.js +1 -0
  70. package/dist/cjs/filters/adapters/UIToOldLogic.js +5 -3
  71. package/dist/cjs/filters/adapters/adaptFilterValues.js +2 -2
  72. package/dist/cjs/filters/adapters/flatUIToFD.js +1 -0
  73. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +41 -25
  74. package/dist/cjs/filters/adapters/flatUIToUI.js +1 -0
  75. package/dist/cjs/filters/adapters/index.d.ts +2 -0
  76. package/dist/cjs/filters/adapters/index.js +2 -0
  77. package/dist/cjs/filters/adapters/logicToFlatUI.js +9 -8
  78. package/dist/cjs/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
  79. package/dist/cjs/filters/adapters/modelAnswerToFilterValue.js +16 -0
  80. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +4 -4
  81. package/dist/cjs/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
  82. package/dist/cjs/filters/constants/builder/index.d.ts +1 -0
  83. package/dist/cjs/filters/constants/builder/index.js +1 -0
  84. package/dist/cjs/filters/helpers/OLD_getAggFilters.d.ts +9 -0
  85. package/dist/cjs/filters/helpers/OLD_getAggFilters.js +88 -0
  86. package/dist/cjs/filters/helpers/backend/buildExpression.js +3 -2
  87. package/dist/cjs/filters/helpers/backend/getBackendValidator.d.ts +2 -2
  88. package/dist/cjs/filters/helpers/backend/getBackendValidator.js +4 -4
  89. package/dist/cjs/filters/helpers/backend/getBackendValues.js +13 -12
  90. package/dist/cjs/filters/helpers/backend/index.d.ts +1 -1
  91. package/dist/cjs/filters/helpers/backend/index.js +2 -1
  92. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
  93. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  94. package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +4 -4
  95. package/dist/cjs/filters/helpers/common/getFiltersByParams.d.ts +2 -2
  96. package/dist/cjs/filters/helpers/common/getFiltersByParams.js +2 -2
  97. package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
  98. package/dist/cjs/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
  99. package/dist/cjs/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
  100. package/dist/cjs/filters/helpers/common/getValuesFromDataset.js +20 -0
  101. package/dist/cjs/filters/helpers/common/getValuesFromModel.d.ts +8 -0
  102. package/dist/cjs/filters/helpers/common/getValuesFromModel.js +20 -0
  103. package/dist/cjs/filters/helpers/common/index.d.ts +3 -1
  104. package/dist/cjs/filters/helpers/common/index.js +4 -1
  105. package/dist/cjs/filters/helpers/common/mergeFilters.d.ts +2 -2
  106. package/dist/cjs/filters/helpers/common/mergeFilters.js +15 -13
  107. package/dist/cjs/filters/helpers/index.d.ts +1 -0
  108. package/dist/cjs/filters/helpers/index.js +2 -0
  109. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  110. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
  111. package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
  112. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
  113. package/dist/cjs/filters/helpers/ui/getUIValues.js +22 -15
  114. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  115. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +38 -0
  116. package/dist/cjs/filters/helpers/ui/index.d.ts +4 -0
  117. package/dist/cjs/filters/helpers/ui/index.js +4 -0
  118. package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
  119. package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +7 -7
  120. package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  121. package/dist/cjs/filters/helpers/ui/transformFilterValues.js +23 -0
  122. package/dist/cjs/filters/index.d.ts +1 -0
  123. package/dist/cjs/filters/index.js +1 -0
  124. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
  125. package/dist/cjs/filters/interfaces/backend/IFBData.d.ts +5 -0
  126. package/dist/cjs/filters/interfaces/backend/IFBData.js +2 -0
  127. package/dist/cjs/filters/interfaces/backend/index.d.ts +1 -0
  128. package/dist/cjs/filters/interfaces/backend/index.js +1 -0
  129. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
  130. package/dist/cjs/filters/interfaces/builder/index.d.ts +0 -1
  131. package/dist/cjs/filters/interfaces/builder/index.js +0 -1
  132. package/dist/cjs/filters/interfaces/common/IFSColumn.d.ts +1 -1
  133. package/dist/cjs/filters/interfaces/common/IFSFilter.d.ts +2 -1
  134. package/dist/cjs/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
  135. package/dist/cjs/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
  136. package/dist/cjs/filters/interfaces/common/IFSGetDataValues.js +2 -0
  137. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  138. package/dist/cjs/filters/interfaces/common/IFilterConfig.d.ts +2 -0
  139. package/dist/cjs/filters/interfaces/common/IFilterConfig.js +2 -0
  140. package/dist/cjs/filters/interfaces/common/index.d.ts +2 -2
  141. package/dist/cjs/filters/interfaces/common/index.js +2 -2
  142. package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
  143. package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.js +2 -0
  144. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
  145. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +2 -0
  146. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
  147. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +2 -0
  148. package/dist/cjs/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +1 -1
  149. package/dist/cjs/filters/interfaces/functions/IFFiltersMergeFilters.js +2 -0
  150. package/dist/cjs/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
  151. package/dist/cjs/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +2 -0
  152. package/dist/cjs/filters/interfaces/functions/index.d.ts +5 -0
  153. package/dist/cjs/filters/interfaces/functions/index.js +17 -0
  154. package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  155. package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  156. package/dist/cjs/filters/interfaces/ui/IFUColumn.d.ts +2 -2
  157. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  158. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +2 -0
  159. package/dist/cjs/filters/interfaces/ui/index.d.ts +4 -3
  160. package/dist/cjs/filters/interfaces/ui/index.js +4 -3
  161. package/dist/cjs/filters/services/Filters.api.d.ts +52 -0
  162. package/dist/cjs/filters/services/Filters.api.js +135 -0
  163. package/dist/cjs/filters/services/UChartApi.d.ts +86 -0
  164. package/dist/cjs/filters/services/UChartApi.js +250 -0
  165. package/dist/cjs/filters/services/UChartPaginationApi.d.ts +114 -0
  166. package/dist/cjs/filters/services/UChartPaginationApi.js +295 -0
  167. package/dist/cjs/filters/services/index.d.ts +3 -0
  168. package/dist/cjs/filters/services/index.js +15 -0
  169. package/dist/cjs/format/definition.d.ts +31 -0
  170. package/dist/cjs/format/definition.js +33 -1
  171. package/dist/cjs/format/format.d.ts +2 -1
  172. package/dist/cjs/format/format.js +8 -5
  173. package/dist/cjs/format/index.d.ts +1 -0
  174. package/dist/cjs/format/index.js +1 -0
  175. package/dist/cjs/format/localization.d.ts +4 -0
  176. package/dist/cjs/format/localization.js +79 -0
  177. package/dist/cjs/general/array/getArrayByProperty.d.ts +7 -0
  178. package/dist/cjs/general/array/getArrayByProperty.js +19 -0
  179. package/dist/cjs/general/array/getUniqueArray.d.ts +9 -0
  180. package/dist/cjs/general/array/getUniqueArray.js +15 -0
  181. package/dist/cjs/general/array/index.d.ts +1 -0
  182. package/dist/cjs/general/array/index.js +1 -0
  183. package/dist/cjs/globalization/helpers/getI18nCalendar.d.ts +4 -0
  184. package/dist/cjs/globalization/helpers/getI18nCalendar.js +69 -0
  185. package/dist/cjs/globalization/helpers/index.d.ts +1 -0
  186. package/dist/cjs/globalization/helpers/index.js +1 -0
  187. package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
  188. package/dist/cjs/globalization/interfaces/II18nConfig.js +2 -0
  189. package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  190. package/dist/cjs/globalization/interfaces/II18nResource.js +2 -0
  191. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  192. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  193. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.js +2 -0
  194. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  195. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.js +2 -0
  196. package/dist/cjs/globalization/interfaces/calendar/index.d.ts +2 -0
  197. package/dist/cjs/globalization/interfaces/calendar/index.js +14 -0
  198. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  199. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  200. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  201. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
  202. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  203. package/dist/cjs/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  204. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
  205. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  206. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
  207. package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
  208. package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
  209. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
  210. package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
  211. package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.js +2 -0
  212. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
  213. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
  214. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  215. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.js +2 -0
  216. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
  217. package/dist/cjs/globalization/interfaces/filters/index.d.ts +1 -0
  218. package/dist/cjs/globalization/interfaces/filters/index.js +1 -0
  219. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  220. package/dist/cjs/globalization/interfaces/index.d.ts +7 -2
  221. package/dist/cjs/globalization/interfaces/index.js +7 -2
  222. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  223. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
  224. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  225. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
  226. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  227. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
  228. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  229. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
  230. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  231. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
  232. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  233. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
  234. package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
  235. package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
  236. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  237. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  238. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
  239. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  240. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  241. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
  242. package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
  243. package/dist/cjs/globalization/labels/calendar/index.js +13 -0
  244. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
  245. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
  246. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  247. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
  248. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  249. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
  250. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  251. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  252. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  253. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
  254. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +2 -0
  255. package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  256. package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
  257. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +10 -0
  258. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
  259. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
  260. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
  261. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
  262. package/dist/cjs/globalization/labels/index.d.ts +6 -3
  263. package/dist/cjs/globalization/labels/index.js +6 -3
  264. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +1 -1
  265. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  266. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +58 -0
  267. package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
  268. package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
  269. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  270. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
  271. package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
  272. package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  273. package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
  274. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  275. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
  276. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
  277. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
  278. package/dist/cjs/interfaces/format/index.d.ts +3 -0
  279. package/dist/cjs/interfaces/format/index.js +15 -0
  280. package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +5 -3
  281. package/dist/cjs/interfaces/general/IWidgetConfig.d.ts +10 -0
  282. package/dist/cjs/interfaces/general/IWidgetConfig.js +2 -0
  283. package/dist/cjs/interfaces/general/index.d.ts +1 -0
  284. package/dist/cjs/interfaces/general/index.js +1 -0
  285. package/dist/cjs/interfaces/index.d.ts +1 -0
  286. package/dist/cjs/interfaces/index.js +1 -0
  287. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  288. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.js +16 -0
  289. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  290. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.js +14 -0
  291. package/dist/cjs/qrvey/constants/APP_STATUS.d.ts +5 -0
  292. package/dist/cjs/qrvey/constants/APP_STATUS.js +9 -0
  293. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  294. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.js +13 -0
  295. package/dist/cjs/qrvey/constants/APP_TYPE.d.ts +16 -0
  296. package/dist/cjs/qrvey/constants/APP_TYPE.js +20 -0
  297. package/dist/cjs/qrvey/constants/index.d.ts +6 -0
  298. package/dist/cjs/qrvey/constants/index.js +6 -0
  299. package/dist/cjs/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  300. package/dist/cjs/qrvey/helpers/areStaticColumnValues.js +17 -0
  301. package/dist/cjs/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  302. package/dist/cjs/qrvey/helpers/getCategorizableExpression.js +22 -0
  303. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  304. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.js +54 -0
  305. package/dist/cjs/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  306. package/dist/cjs/qrvey/helpers/getDropdownAnswers.js +14 -0
  307. package/dist/cjs/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  308. package/dist/cjs/qrvey/helpers/getExpressionAnswers.js +22 -0
  309. package/dist/cjs/qrvey/helpers/getImageAnswers.d.ts +8 -0
  310. package/dist/cjs/qrvey/helpers/getImageAnswers.js +17 -0
  311. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  312. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.js +23 -0
  313. package/dist/cjs/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  314. package/dist/cjs/qrvey/helpers/getLookupAnswers.js +16 -0
  315. package/dist/cjs/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  316. package/dist/cjs/qrvey/helpers/getLookupDisplays.js +9 -0
  317. package/dist/cjs/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  318. package/dist/cjs/qrvey/helpers/getRatingAnswers.js +12 -0
  319. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  320. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.js +18 -0
  321. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  322. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.js +17 -0
  323. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  324. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
  325. package/dist/cjs/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  326. package/dist/cjs/qrvey/helpers/getYesNoAnswers.js +13 -0
  327. package/dist/cjs/qrvey/helpers/index.d.ts +17 -1
  328. package/dist/cjs/qrvey/helpers/index.js +17 -1
  329. package/dist/cjs/qrvey/helpers/isDataset.d.ts +2 -0
  330. package/dist/cjs/qrvey/helpers/isDataset.js +8 -0
  331. package/dist/cjs/qrvey/helpers/isForm.d.ts +2 -0
  332. package/dist/cjs/qrvey/helpers/isForm.js +8 -0
  333. package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
  334. package/dist/cjs/qrvey/helpers/transformValue.js +49 -0
  335. package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +2 -0
  336. package/dist/cjs/qrvey/interfaces/IAppStatus.js +2 -0
  337. package/dist/cjs/qrvey/interfaces/IAppType.d.ts +2 -0
  338. package/dist/cjs/qrvey/interfaces/IAppType.js +2 -0
  339. package/dist/cjs/qrvey/interfaces/IBModel.d.ts +19 -0
  340. package/dist/cjs/qrvey/interfaces/IBModel.js +2 -0
  341. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  342. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.js +2 -0
  343. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  344. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.js +2 -0
  345. package/dist/cjs/qrvey/interfaces/IBModelData.d.ts +4 -0
  346. package/dist/cjs/qrvey/interfaces/IBModelData.js +2 -0
  347. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  348. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +2 -0
  349. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  350. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +2 -0
  351. package/dist/cjs/qrvey/interfaces/IModel.d.ts +10 -0
  352. package/dist/cjs/qrvey/interfaces/IModel.js +2 -0
  353. package/dist/cjs/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  354. package/dist/cjs/qrvey/interfaces/IModelAnswer.js +2 -0
  355. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  356. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.js +2 -0
  357. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  358. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.js +2 -0
  359. package/dist/cjs/qrvey/interfaces/IModelColumn.d.ts +23 -0
  360. package/dist/cjs/qrvey/interfaces/IModelColumn.js +2 -0
  361. package/dist/cjs/qrvey/interfaces/IModelDataset.d.ts +7 -0
  362. package/dist/cjs/qrvey/interfaces/IModelDataset.js +2 -0
  363. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  364. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
  365. package/dist/cjs/qrvey/interfaces/index.d.ts +13 -0
  366. package/dist/cjs/qrvey/interfaces/index.js +13 -0
  367. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  368. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +21 -0
  369. package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  370. package/dist/cjs/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  371. package/dist/cjs/services/adapters/BModelToUIModel.adapter.js +26 -0
  372. package/dist/cjs/services/adapters/index.d.ts +1 -0
  373. package/dist/cjs/services/adapters/index.js +1 -0
  374. package/dist/cjs/services/api/Charts.api.d.ts +15 -0
  375. package/dist/cjs/services/api/Charts.api.js +37 -0
  376. package/dist/cjs/services/api/getAllDatasets.api.d.ts +8 -3
  377. package/dist/cjs/services/api/getAllDatasets.api.js +24 -15
  378. package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
  379. package/dist/cjs/services/api/getAllQrveys.api.js +1 -1
  380. package/dist/cjs/services/api/getDatasetColumns.api.d.ts +2 -2
  381. package/dist/cjs/services/api/getDatasetColumns.api.js +6 -3
  382. package/dist/cjs/services/api/getDatasetsByIds.api.d.ts +8 -0
  383. package/dist/cjs/services/api/getDatasetsByIds.api.js +30 -0
  384. package/dist/cjs/services/api/getModel.api.d.ts +1 -0
  385. package/dist/cjs/services/api/getModel.api.js +16 -0
  386. package/dist/cjs/services/api/index.d.ts +2 -0
  387. package/dist/cjs/services/api/index.js +2 -0
  388. package/dist/cjs/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  389. package/dist/cjs/services/constants/MODEL_ENDPOINT.js +7 -0
  390. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  391. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +7 -0
  392. package/dist/cjs/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  393. package/dist/cjs/services/constants/UCHART_ENDPOINT.js +7 -0
  394. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  395. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.js +7 -0
  396. package/dist/cjs/services/constants/index.d.ts +4 -0
  397. package/dist/cjs/services/constants/index.js +4 -0
  398. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  399. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +28 -0
  400. package/dist/cjs/services/helpers/index.d.ts +1 -0
  401. package/dist/cjs/services/helpers/index.js +1 -0
  402. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
  403. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +6 -0
  404. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
  405. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +6 -0
  406. package/dist/columns/constants/index.d.ts +4 -0
  407. package/dist/columns/constants/index.js +4 -0
  408. package/dist/{cjs/qrvey → columns}/helpers/getColumnsLabel.d.ts +1 -1
  409. package/dist/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
  410. package/dist/columns/helpers/getDatasetByColumn.d.ts +3 -0
  411. package/dist/columns/helpers/getDatasetByColumn.js +6 -0
  412. package/dist/columns/helpers/getDatasetColumn.d.ts +3 -0
  413. package/dist/columns/helpers/getDatasetColumn.js +12 -0
  414. package/dist/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
  415. package/dist/columns/helpers/getDatasetColumnyDatasets.js +8 -0
  416. package/dist/columns/helpers/getModelColumn.d.ts +9 -0
  417. package/dist/columns/helpers/getModelColumn.js +26 -0
  418. package/dist/columns/helpers/index.d.ts +5 -0
  419. package/dist/columns/helpers/index.js +5 -0
  420. package/dist/columns/interfaces/IBColumAnswer.d.ts +6 -0
  421. package/dist/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
  422. package/dist/columns/interfaces/IBColumn.d.ts +10 -3
  423. package/dist/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
  424. package/dist/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
  425. package/dist/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
  426. package/dist/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
  427. package/dist/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
  428. package/dist/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
  429. package/dist/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
  430. package/dist/columns/interfaces/IBColumnAnswerGeneral.js +1 -0
  431. package/dist/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
  432. package/dist/columns/interfaces/IBColumnAnswerImages.js +1 -0
  433. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
  434. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.js +1 -0
  435. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
  436. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +1 -0
  437. package/dist/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
  438. package/dist/columns/interfaces/IBColumnAnswerLookupValue.js +1 -0
  439. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
  440. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.js +1 -0
  441. package/dist/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
  442. package/dist/columns/interfaces/IBColumnAnswerSlidebar.js +1 -0
  443. package/dist/columns/interfaces/IColumn.d.ts +9 -3
  444. package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
  445. package/dist/columns/interfaces/IColumnImageUploadOption.js +1 -0
  446. package/dist/columns/interfaces/index.d.ts +11 -0
  447. package/dist/columns/interfaces/index.js +11 -0
  448. package/dist/dates/adapters/index.d.ts +5 -0
  449. package/dist/dates/adapters/index.js +5 -0
  450. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  451. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  452. package/dist/dates/constants/index.d.ts +2 -0
  453. package/dist/dates/constants/index.js +2 -0
  454. package/dist/dates/helpers/index.d.ts +1 -0
  455. package/dist/dates/helpers/index.js +1 -0
  456. package/dist/dates/index.d.ts +1 -0
  457. package/dist/dates/index.js +1 -0
  458. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
  459. package/dist/filters/adapters/FDToFlatUI.js +2 -1
  460. package/dist/filters/adapters/FDToUI.js +2 -4
  461. package/dist/filters/adapters/UIToFlatUI.js +1 -0
  462. package/dist/filters/adapters/UIToOldLogic.js +5 -3
  463. package/dist/filters/adapters/adaptFilterValues.js +2 -2
  464. package/dist/filters/adapters/flatUIToFD.js +1 -0
  465. package/dist/filters/adapters/flatUIToOldLogic.js +41 -25
  466. package/dist/filters/adapters/flatUIToUI.js +1 -0
  467. package/dist/filters/adapters/index.d.ts +2 -0
  468. package/dist/filters/adapters/index.js +2 -0
  469. package/dist/filters/adapters/logicToFlatUI.js +9 -8
  470. package/dist/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
  471. package/dist/filters/adapters/modelAnswerToFilterValue.js +12 -0
  472. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +1 -1
  473. package/dist/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
  474. package/dist/filters/constants/builder/index.d.ts +1 -0
  475. package/dist/filters/constants/builder/index.js +1 -0
  476. package/dist/filters/helpers/OLD_getAggFilters.d.ts +9 -0
  477. package/dist/filters/helpers/OLD_getAggFilters.js +84 -0
  478. package/dist/filters/helpers/backend/buildExpression.js +3 -2
  479. package/dist/filters/helpers/backend/getBackendValidator.d.ts +2 -2
  480. package/dist/filters/helpers/backend/getBackendValidator.js +4 -4
  481. package/dist/filters/helpers/backend/getBackendValues.js +13 -12
  482. package/dist/filters/helpers/backend/index.d.ts +1 -1
  483. package/dist/filters/helpers/backend/index.js +2 -1
  484. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
  485. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  486. package/dist/filters/helpers/common/excludeFiltersByParams.js +4 -4
  487. package/dist/filters/helpers/common/getFiltersByParams.d.ts +2 -2
  488. package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
  489. package/dist/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
  490. package/dist/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
  491. package/dist/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
  492. package/dist/filters/helpers/common/getValuesFromDataset.js +16 -0
  493. package/dist/filters/helpers/common/getValuesFromModel.d.ts +8 -0
  494. package/dist/filters/helpers/common/getValuesFromModel.js +16 -0
  495. package/dist/filters/helpers/common/index.d.ts +3 -1
  496. package/dist/filters/helpers/common/index.js +4 -1
  497. package/dist/filters/helpers/common/mergeFilters.d.ts +2 -2
  498. package/dist/filters/helpers/common/mergeFilters.js +15 -13
  499. package/dist/filters/helpers/index.d.ts +1 -0
  500. package/dist/filters/helpers/index.js +2 -0
  501. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  502. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
  503. package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
  504. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
  505. package/dist/filters/helpers/ui/getUIValues.js +21 -14
  506. package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  507. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +34 -0
  508. package/dist/filters/helpers/ui/index.d.ts +4 -0
  509. package/dist/filters/helpers/ui/index.js +4 -0
  510. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
  511. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +1 -1
  512. package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  513. package/dist/filters/helpers/ui/transformFilterValues.js +19 -0
  514. package/dist/filters/index.d.ts +1 -0
  515. package/dist/filters/index.js +1 -0
  516. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
  517. package/dist/filters/interfaces/backend/IFBData.d.ts +5 -0
  518. package/dist/filters/interfaces/backend/IFBData.js +1 -0
  519. package/dist/filters/interfaces/backend/index.d.ts +1 -0
  520. package/dist/filters/interfaces/backend/index.js +1 -0
  521. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
  522. package/dist/filters/interfaces/builder/index.d.ts +0 -1
  523. package/dist/filters/interfaces/builder/index.js +0 -1
  524. package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
  525. package/dist/filters/interfaces/common/IFSFilter.d.ts +2 -1
  526. package/dist/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
  527. package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
  528. package/dist/filters/interfaces/common/IFSGetDataValues.js +1 -0
  529. package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  530. package/dist/filters/interfaces/common/IFilterConfig.d.ts +2 -0
  531. package/dist/filters/interfaces/common/IFilterConfig.js +1 -0
  532. package/dist/filters/interfaces/common/index.d.ts +2 -2
  533. package/dist/filters/interfaces/common/index.js +2 -2
  534. package/dist/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
  535. package/dist/filters/interfaces/functions/IFFiltersGetData.js +1 -0
  536. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
  537. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +1 -0
  538. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
  539. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +1 -0
  540. package/dist/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +1 -1
  541. package/dist/filters/interfaces/functions/IFFiltersMergeFilters.js +1 -0
  542. package/dist/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
  543. package/dist/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +1 -0
  544. package/dist/filters/interfaces/functions/index.d.ts +5 -0
  545. package/dist/filters/interfaces/functions/index.js +5 -0
  546. package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  547. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  548. package/dist/filters/interfaces/ui/IFUColumn.d.ts +2 -2
  549. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  550. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
  551. package/dist/filters/interfaces/ui/index.d.ts +4 -3
  552. package/dist/filters/interfaces/ui/index.js +4 -3
  553. package/dist/filters/services/Filters.api.d.ts +52 -0
  554. package/dist/filters/services/Filters.api.js +128 -0
  555. package/dist/filters/services/UChartApi.d.ts +86 -0
  556. package/dist/filters/services/UChartApi.js +244 -0
  557. package/dist/filters/services/UChartPaginationApi.d.ts +114 -0
  558. package/dist/filters/services/UChartPaginationApi.js +289 -0
  559. package/dist/filters/services/index.d.ts +3 -0
  560. package/dist/filters/services/index.js +3 -0
  561. package/dist/format/definition.d.ts +31 -0
  562. package/dist/format/definition.js +32 -0
  563. package/dist/format/format.d.ts +2 -1
  564. package/dist/format/format.js +6 -3
  565. package/dist/format/index.d.ts +1 -0
  566. package/dist/format/index.js +1 -0
  567. package/dist/format/localization.d.ts +4 -0
  568. package/dist/format/localization.js +73 -0
  569. package/dist/general/array/getArrayByProperty.d.ts +7 -0
  570. package/dist/general/array/getArrayByProperty.js +15 -0
  571. package/dist/general/array/getUniqueArray.d.ts +9 -0
  572. package/dist/general/array/getUniqueArray.js +11 -0
  573. package/dist/general/array/index.d.ts +1 -0
  574. package/dist/general/array/index.js +1 -0
  575. package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
  576. package/dist/globalization/helpers/getI18nCalendar.js +65 -0
  577. package/dist/globalization/helpers/index.d.ts +1 -0
  578. package/dist/globalization/helpers/index.js +1 -0
  579. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  580. package/dist/globalization/interfaces/II18nConfig.js +1 -0
  581. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  582. package/dist/globalization/interfaces/II18nResource.js +1 -0
  583. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  584. package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  585. package/dist/globalization/interfaces/calendar/II18nCalendar.js +1 -0
  586. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  587. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.js +1 -0
  588. package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
  589. package/dist/globalization/interfaces/calendar/index.js +2 -0
  590. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  591. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  592. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  593. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
  594. package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  595. package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  596. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
  597. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  598. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
  599. package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
  600. package/dist/globalization/interfaces/dashboard/index.js +1 -0
  601. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
  602. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
  603. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.js +1 -0
  604. package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
  605. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
  606. package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  607. package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
  608. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
  609. package/dist/globalization/interfaces/filters/index.d.ts +1 -0
  610. package/dist/globalization/interfaces/filters/index.js +1 -0
  611. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  612. package/dist/globalization/interfaces/index.d.ts +7 -2
  613. package/dist/globalization/interfaces/index.js +7 -2
  614. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  615. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
  616. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  617. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
  618. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  619. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
  620. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  621. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
  622. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  623. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
  624. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  625. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
  626. package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
  627. package/dist/globalization/interfaces/style_themes/index.js +6 -0
  628. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  629. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  630. package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
  631. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  632. package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  633. package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
  634. package/dist/globalization/labels/calendar/index.d.ts +1 -0
  635. package/dist/globalization/labels/calendar/index.js +1 -0
  636. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
  637. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
  638. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  639. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
  640. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  641. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
  642. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  643. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  644. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  645. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
  646. package/dist/globalization/labels/common/I18N_COMMON.js +2 -0
  647. package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  648. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
  649. package/dist/globalization/labels/filters/I18N_FILTER.js +10 -0
  650. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
  651. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
  652. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
  653. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
  654. package/dist/globalization/labels/index.d.ts +6 -3
  655. package/dist/globalization/labels/index.js +6 -3
  656. package/dist/globalization/labels/panel/I18N_PANEL.js +1 -1
  657. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  658. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
  659. package/dist/globalization/labels/style_themes/index.d.ts +1 -0
  660. package/dist/globalization/labels/style_themes/index.js +1 -0
  661. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  662. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  663. package/dist/globalization/service/initI18n.d.ts +2 -2
  664. package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  665. package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
  666. package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  667. package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
  668. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
  669. package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
  670. package/dist/interfaces/format/index.d.ts +3 -0
  671. package/dist/interfaces/format/index.js +3 -0
  672. package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +5 -3
  673. package/dist/interfaces/general/IWidgetConfig.d.ts +10 -0
  674. package/dist/interfaces/general/IWidgetConfig.js +1 -0
  675. package/dist/interfaces/general/index.d.ts +1 -0
  676. package/dist/interfaces/general/index.js +1 -0
  677. package/dist/interfaces/index.d.ts +1 -0
  678. package/dist/interfaces/index.js +1 -0
  679. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  680. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.js +13 -0
  681. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  682. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.js +11 -0
  683. package/dist/qrvey/constants/APP_STATUS.d.ts +5 -0
  684. package/dist/qrvey/constants/APP_STATUS.js +6 -0
  685. package/dist/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  686. package/dist/qrvey/constants/APP_STATUS_LIST.js +10 -0
  687. package/dist/qrvey/constants/APP_TYPE.d.ts +16 -0
  688. package/dist/qrvey/constants/APP_TYPE.js +17 -0
  689. package/dist/qrvey/constants/index.d.ts +6 -0
  690. package/dist/qrvey/constants/index.js +6 -0
  691. package/dist/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  692. package/dist/qrvey/helpers/areStaticColumnValues.js +13 -0
  693. package/dist/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  694. package/dist/qrvey/helpers/getCategorizableExpression.js +18 -0
  695. package/dist/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  696. package/dist/qrvey/helpers/getDataAnswersByColumn.js +50 -0
  697. package/dist/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  698. package/dist/qrvey/helpers/getDropdownAnswers.js +10 -0
  699. package/dist/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  700. package/dist/qrvey/helpers/getExpressionAnswers.js +18 -0
  701. package/dist/qrvey/helpers/getImageAnswers.d.ts +8 -0
  702. package/dist/qrvey/helpers/getImageAnswers.js +13 -0
  703. package/dist/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  704. package/dist/qrvey/helpers/getImageUploadHasAnalysis.js +19 -0
  705. package/dist/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  706. package/dist/qrvey/helpers/getLookupAnswers.js +12 -0
  707. package/dist/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  708. package/dist/qrvey/helpers/getLookupDisplays.js +5 -0
  709. package/dist/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  710. package/dist/qrvey/helpers/getRatingAnswers.js +8 -0
  711. package/dist/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  712. package/dist/qrvey/helpers/getSlidebarAnswers.js +14 -0
  713. package/dist/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  714. package/dist/qrvey/helpers/getSuffixTranslateByColumn.js +13 -0
  715. package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  716. package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
  717. package/dist/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  718. package/dist/qrvey/helpers/getYesNoAnswers.js +9 -0
  719. package/dist/qrvey/helpers/index.d.ts +17 -1
  720. package/dist/qrvey/helpers/index.js +17 -1
  721. package/dist/qrvey/helpers/isDataset.d.ts +2 -0
  722. package/dist/qrvey/helpers/isDataset.js +4 -0
  723. package/dist/qrvey/helpers/isForm.d.ts +2 -0
  724. package/dist/qrvey/helpers/isForm.js +4 -0
  725. package/dist/qrvey/helpers/transformValue.d.ts +8 -0
  726. package/dist/qrvey/helpers/transformValue.js +45 -0
  727. package/dist/qrvey/interfaces/IAppStatus.d.ts +2 -0
  728. package/dist/qrvey/interfaces/IAppStatus.js +1 -0
  729. package/dist/qrvey/interfaces/IAppType.d.ts +2 -0
  730. package/dist/qrvey/interfaces/IAppType.js +1 -0
  731. package/dist/qrvey/interfaces/IBModel.d.ts +19 -0
  732. package/dist/qrvey/interfaces/IBModel.js +1 -0
  733. package/dist/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  734. package/dist/qrvey/interfaces/IBModelBranchesMap.js +1 -0
  735. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  736. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.js +1 -0
  737. package/dist/qrvey/interfaces/IBModelData.d.ts +4 -0
  738. package/dist/qrvey/interfaces/IBModelData.js +1 -0
  739. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  740. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +1 -0
  741. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  742. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +1 -0
  743. package/dist/qrvey/interfaces/IModel.d.ts +10 -0
  744. package/dist/qrvey/interfaces/IModel.js +1 -0
  745. package/dist/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  746. package/dist/qrvey/interfaces/IModelAnswer.js +1 -0
  747. package/dist/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  748. package/dist/qrvey/interfaces/IModelBranchesMap.js +1 -0
  749. package/dist/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  750. package/dist/qrvey/interfaces/IModelBranchesMapBranch.js +1 -0
  751. package/dist/qrvey/interfaces/IModelColumn.d.ts +23 -0
  752. package/dist/qrvey/interfaces/IModelColumn.js +1 -0
  753. package/dist/qrvey/interfaces/IModelDataset.d.ts +7 -0
  754. package/dist/qrvey/interfaces/IModelDataset.js +1 -0
  755. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  756. package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
  757. package/dist/qrvey/interfaces/index.d.ts +13 -0
  758. package/dist/qrvey/interfaces/index.js +13 -0
  759. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  760. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +17 -0
  761. package/dist/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  762. package/dist/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  763. package/dist/services/adapters/BModelToUIModel.adapter.js +22 -0
  764. package/dist/services/adapters/index.d.ts +1 -0
  765. package/dist/services/adapters/index.js +1 -0
  766. package/dist/services/api/Charts.api.d.ts +15 -0
  767. package/dist/services/api/Charts.api.js +31 -0
  768. package/dist/services/api/getAllDatasets.api.d.ts +8 -3
  769. package/dist/services/api/getAllDatasets.api.js +24 -15
  770. package/dist/services/api/getAllQrveys.api.d.ts +1 -1
  771. package/dist/services/api/getAllQrveys.api.js +1 -1
  772. package/dist/services/api/getDatasetColumns.api.d.ts +2 -2
  773. package/dist/services/api/getDatasetColumns.api.js +9 -6
  774. package/dist/services/api/getDatasetsByIds.api.d.ts +8 -0
  775. package/dist/services/api/getDatasetsByIds.api.js +23 -0
  776. package/dist/services/api/getModel.api.d.ts +1 -0
  777. package/dist/services/api/getModel.api.js +9 -0
  778. package/dist/services/api/index.d.ts +2 -0
  779. package/dist/services/api/index.js +2 -0
  780. package/dist/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  781. package/dist/services/constants/MODEL_ENDPOINT.js +4 -0
  782. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  783. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +4 -0
  784. package/dist/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  785. package/dist/services/constants/UCHART_ENDPOINT.js +4 -0
  786. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  787. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.js +4 -0
  788. package/dist/services/constants/index.d.ts +4 -0
  789. package/dist/services/constants/index.js +4 -0
  790. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  791. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +24 -0
  792. package/dist/services/helpers/index.d.ts +1 -0
  793. package/dist/services/helpers/index.js +1 -0
  794. package/package.json +4 -7
  795. package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
  796. package/src/charts/constants/index.ts +1 -0
  797. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.ts +5 -0
  798. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.ts +7 -0
  799. package/src/columns/constants/index.ts +5 -0
  800. package/src/{qrvey → columns}/helpers/getColumnsLabel.ts +2 -1
  801. package/src/columns/helpers/getDatasetByColumn.ts +9 -0
  802. package/src/columns/helpers/getDatasetColumn.ts +15 -0
  803. package/src/columns/helpers/getDatasetColumnyDatasets.ts +11 -0
  804. package/src/columns/helpers/getModelColumn.ts +29 -0
  805. package/src/columns/helpers/index.ts +5 -0
  806. package/src/columns/interfaces/IBColumAnswer.ts +7 -0
  807. package/src/columns/interfaces/IBColumn.ts +10 -3
  808. package/src/columns/interfaces/IBColumnAnswerExpression.ts +6 -0
  809. package/src/columns/interfaces/IBColumnAnswerExpressionCategory.ts +7 -0
  810. package/src/columns/interfaces/IBColumnAnswerExpressionWord.ts +3 -0
  811. package/src/columns/interfaces/IBColumnAnswerGeneral.ts +4 -0
  812. package/src/columns/interfaces/IBColumnAnswerImages.ts +6 -0
  813. package/src/columns/interfaces/IBColumnAnswerLookupAnswer.ts +6 -0
  814. package/src/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.ts +6 -0
  815. package/src/columns/interfaces/IBColumnAnswerLookupValue.ts +5 -0
  816. package/src/columns/interfaces/IBColumnAnswerLookupValueValue.ts +8 -0
  817. package/src/columns/interfaces/IBColumnAnswerSlidebar.ts +3 -0
  818. package/src/columns/interfaces/IColumn.ts +9 -3
  819. package/src/columns/interfaces/IColumnImageUploadOption.ts +3 -0
  820. package/src/columns/interfaces/index.ts +12 -0
  821. package/src/dates/adapters/index.ts +5 -0
  822. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  823. package/src/dates/constants/index.ts +2 -0
  824. package/src/dates/helpers/index.ts +1 -0
  825. package/src/dates/index.ts +1 -0
  826. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +1 -1
  827. package/src/filters/adapters/FDToFlatUI.ts +2 -1
  828. package/src/filters/adapters/FDToUI.ts +2 -3
  829. package/src/filters/adapters/UIToFlatUI.ts +1 -0
  830. package/src/filters/adapters/UIToOldLogic.ts +4 -3
  831. package/src/filters/adapters/adaptFilterValues.ts +2 -2
  832. package/src/filters/adapters/flatUIToFD.ts +1 -0
  833. package/src/filters/adapters/flatUIToOldLogic.ts +36 -32
  834. package/src/filters/adapters/flatUIToUI.ts +1 -0
  835. package/src/filters/adapters/index.ts +4 -0
  836. package/src/filters/adapters/logicToFlatUI.ts +3 -2
  837. package/src/filters/adapters/modelAnswerToFilterValue.ts +15 -0
  838. package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +1 -1
  839. package/src/filters/constants/builder/STATIC_OPTION_COLUMNS.ts +2 -1
  840. package/src/filters/constants/builder/index.ts +1 -0
  841. package/src/filters/helpers/OLD_getAggFilters.ts +90 -0
  842. package/src/filters/helpers/backend/buildExpression.ts +2 -2
  843. package/src/filters/helpers/backend/getBackendValidator.ts +5 -5
  844. package/src/filters/helpers/backend/getBackendValues.ts +14 -12
  845. package/src/filters/helpers/backend/index.ts +2 -1
  846. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +3 -2
  847. package/src/filters/helpers/common/excludeFiltersByParams.ts +3 -3
  848. package/src/filters/helpers/common/getFiltersByParams.ts +4 -4
  849. package/src/filters/helpers/common/getMergeFiltersSettings.ts +2 -2
  850. package/src/filters/helpers/common/getParamsToGetFilterSettings.ts +2 -2
  851. package/src/filters/helpers/common/getValuesFromDataset.ts +19 -0
  852. package/src/filters/helpers/common/getValuesFromModel.ts +19 -0
  853. package/src/filters/helpers/common/index.ts +6 -1
  854. package/src/filters/helpers/common/mergeFilters.ts +20 -18
  855. package/src/filters/helpers/index.ts +3 -0
  856. package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
  857. package/src/filters/helpers/ui/getUIFlatFilterByParams.ts +1 -1
  858. package/src/filters/helpers/ui/getUIFlatFiltersByParams.ts +1 -1
  859. package/src/filters/helpers/ui/getUIValues.ts +23 -15
  860. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +36 -0
  861. package/src/filters/helpers/ui/index.ts +4 -0
  862. package/src/filters/helpers/ui/{resolveUIFlatFiltersByParams.ts → resolveUIFlatFilterByParams.ts} +3 -2
  863. package/src/filters/helpers/ui/transformFilterValues.ts +30 -0
  864. package/src/filters/index.ts +1 -0
  865. package/src/filters/interfaces/OLD_IFilterDetail.ts +3 -1
  866. package/src/filters/interfaces/backend/IFBData.ts +6 -0
  867. package/src/filters/interfaces/backend/index.ts +2 -0
  868. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +3 -5
  869. package/src/filters/interfaces/builder/index.ts +0 -1
  870. package/src/filters/interfaces/common/IFSColumn.ts +1 -1
  871. package/src/filters/interfaces/common/IFSFilter.ts +2 -1
  872. package/src/filters/interfaces/common/IFSFilterExtras.ts +2 -0
  873. package/src/filters/interfaces/common/IFSGetDataValues.ts +3 -0
  874. package/src/filters/interfaces/common/IFSParamsToGetFilter.ts +2 -0
  875. package/src/filters/interfaces/common/IFilterConfig.ts +3 -0
  876. package/src/filters/interfaces/common/index.ts +2 -2
  877. package/src/filters/interfaces/functions/IFFiltersGetData.ts +18 -0
  878. package/src/filters/interfaces/functions/IFFiltersGetValuesFromDataset.ts +11 -0
  879. package/src/filters/interfaces/functions/IFFiltersGetValuesFromModel.ts +11 -0
  880. package/src/filters/interfaces/{common/IFSMergeFiltersSettings.ts → functions/IFFiltersMergeFilters.ts} +1 -1
  881. package/src/filters/interfaces/{common/IFSParamsToGetFilterSettings.ts → functions/IFFiltersParamsToGetFilter.ts} +1 -1
  882. package/src/filters/interfaces/functions/index.ts +5 -0
  883. package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
  884. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
  885. package/src/filters/interfaces/ui/IFUColumn.ts +2 -2
  886. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
  887. package/src/filters/interfaces/ui/index.ts +4 -3
  888. package/src/filters/services/Filters.api.ts +151 -0
  889. package/src/filters/services/UChartApi.ts +265 -0
  890. package/src/filters/services/UChartPaginationApi.ts +328 -0
  891. package/src/filters/services/index.ts +3 -0
  892. package/src/format/definition.ts +50 -0
  893. package/src/format/format.ts +19 -15
  894. package/src/format/index.ts +1 -0
  895. package/src/format/localization.ts +75 -0
  896. package/src/general/array/getArrayByProperty.ts +14 -0
  897. package/src/general/array/getUniqueArray.ts +11 -0
  898. package/src/general/array/index.ts +1 -0
  899. package/src/globalization/helpers/getI18nCalendar.ts +68 -0
  900. package/src/globalization/helpers/index.ts +1 -0
  901. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  902. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
  903. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  904. package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
  905. package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
  906. package/src/globalization/interfaces/calendar/index.ts +2 -0
  907. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  908. package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
  909. package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
  910. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -0
  911. package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
  912. package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
  913. package/src/globalization/interfaces/dashboard/II18nDashboard.ts +2 -0
  914. package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
  915. package/src/globalization/interfaces/dashboard/index.ts +1 -0
  916. package/src/globalization/interfaces/filters/II18nFilter.ts +4 -0
  917. package/src/globalization/interfaces/filters/II18nFilterExtraInfo.ts +4 -0
  918. package/src/globalization/interfaces/filters/II18nFilterPanel.ts +2 -0
  919. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
  920. package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
  921. package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -1
  922. package/src/globalization/interfaces/filters/index.ts +1 -0
  923. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  924. package/src/globalization/interfaces/index.ts +7 -2
  925. package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
  926. package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
  927. package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
  928. package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
  929. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
  930. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
  931. package/src/globalization/interfaces/style_themes/index.ts +6 -0
  932. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
  933. package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
  934. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +2 -0
  935. package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
  936. package/src/globalization/labels/calendar/index.ts +1 -0
  937. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER.ts +1 -1
  938. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +1 -1
  939. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.ts +1 -1
  940. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +3 -2
  941. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +3 -1
  942. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +4 -3
  943. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +10 -8
  944. package/src/globalization/labels/common/I18N_COMMON.ts +2 -0
  945. package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
  946. package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +6 -0
  947. package/src/globalization/labels/filters/I18N_FILTER.ts +10 -0
  948. package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +2 -0
  949. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
  950. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +1 -1
  951. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +5 -3
  952. package/src/globalization/labels/index.ts +6 -3
  953. package/src/globalization/labels/panel/I18N_PANEL.ts +1 -1
  954. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
  955. package/src/globalization/labels/style_themes/index.ts +1 -0
  956. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
  957. package/src/globalization/service/i18nextBuilder.ts +4 -4
  958. package/src/globalization/service/initI18n.ts +3 -3
  959. package/src/interfaces/Qrvey.Interface.ts +1 -27
  960. package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
  961. package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
  962. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +10 -0
  963. package/src/interfaces/format/index.ts +3 -0
  964. package/src/interfaces/general/IGeneralWidgetConfig.ts +5 -3
  965. package/src/interfaces/general/IWidgetConfig.ts +11 -0
  966. package/src/interfaces/general/index.ts +1 -0
  967. package/src/interfaces/index.ts +1 -0
  968. package/src/qrvey/constants/APP_DATASET_TYPE_LIST.ts +14 -0
  969. package/src/qrvey/constants/APP_FORM_TYPE_LIST.ts +12 -0
  970. package/src/qrvey/constants/APP_STATUS.ts +6 -0
  971. package/src/qrvey/constants/APP_STATUS_LIST.ts +11 -0
  972. package/src/qrvey/constants/APP_TYPE.ts +17 -0
  973. package/src/qrvey/constants/index.ts +6 -0
  974. package/src/qrvey/helpers/areStaticColumnValues.ts +15 -0
  975. package/src/qrvey/helpers/getCategorizableExpression.ts +20 -0
  976. package/src/qrvey/helpers/getDataAnswersByColumn.ts +56 -0
  977. package/src/qrvey/helpers/getDropdownAnswers.ts +13 -0
  978. package/src/qrvey/helpers/getExpressionAnswers.ts +21 -0
  979. package/src/qrvey/helpers/getImageAnswers.ts +16 -0
  980. package/src/qrvey/helpers/getImageUploadHasAnalysis.ts +23 -0
  981. package/src/qrvey/helpers/getLookupAnswers.ts +17 -0
  982. package/src/qrvey/helpers/getLookupDisplays.ts +9 -0
  983. package/src/qrvey/helpers/getRatingAnswers.ts +10 -0
  984. package/src/qrvey/helpers/getSlidebarAnswers.ts +16 -0
  985. package/src/qrvey/helpers/getSuffixTranslateByColumn.ts +13 -0
  986. package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
  987. package/src/qrvey/helpers/getYesNoAnswers.ts +12 -0
  988. package/src/qrvey/helpers/index.ts +17 -1
  989. package/src/qrvey/helpers/isDataset.ts +6 -0
  990. package/src/qrvey/helpers/isForm.ts +6 -0
  991. package/src/qrvey/helpers/transformValue.ts +49 -0
  992. package/src/qrvey/interfaces/IAppStatus.ts +3 -0
  993. package/src/qrvey/interfaces/IAppType.ts +3 -0
  994. package/src/qrvey/interfaces/IBModel.ts +20 -0
  995. package/src/qrvey/interfaces/IBModelBranchesMap.ts +6 -0
  996. package/src/qrvey/interfaces/IBModelBranchesMapBranch.ts +5 -0
  997. package/src/qrvey/interfaces/IBModelData.ts +5 -0
  998. package/src/qrvey/interfaces/IDataset.ts +1 -1
  999. package/src/qrvey/interfaces/IFunctionGetDataAnswersByColumn.ts +12 -0
  1000. package/src/qrvey/interfaces/IFunctionGetValueWithSuffixes.ts +12 -0
  1001. package/src/qrvey/interfaces/IModel.ts +11 -0
  1002. package/src/qrvey/interfaces/IModelAnswer.ts +5 -0
  1003. package/src/qrvey/interfaces/IModelBranchesMap.ts +6 -0
  1004. package/src/qrvey/interfaces/IModelBranchesMapBranch.ts +5 -0
  1005. package/src/qrvey/interfaces/IModelColumn.ts +25 -0
  1006. package/src/qrvey/interfaces/IModelDataset.ts +7 -0
  1007. package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
  1008. package/src/qrvey/interfaces/index.ts +20 -0
  1009. package/src/services/adapters/BBranchesMapToUIBranchesMap.adapter.ts +20 -0
  1010. package/src/services/adapters/BColumnsToUIColumns.adapter.ts +9 -1
  1011. package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +4 -4
  1012. package/src/services/adapters/BModelToUIModel.adapter.ts +25 -0
  1013. package/src/services/adapters/index.ts +1 -0
  1014. package/src/services/api/Charts.api.ts +44 -0
  1015. package/src/services/api/getAllDatasets.api.ts +22 -15
  1016. package/src/services/api/getAllQrveys.api.ts +1 -1
  1017. package/src/services/api/getDatasetColumns.api.ts +11 -8
  1018. package/src/services/api/getDatasetsByIds.api.ts +26 -0
  1019. package/src/services/api/getModel.api.ts +10 -0
  1020. package/src/services/api/index.ts +2 -0
  1021. package/src/services/constants/MODEL_ENDPOINT.ts +6 -0
  1022. package/src/services/constants/QUESTION_LIST_BULK_ENDPOINT.ts +6 -0
  1023. package/src/services/constants/UCHART_ENDPOINT.ts +6 -0
  1024. package/src/services/constants/UCHART_PAGINATION_ENDPOINT.ts +6 -0
  1025. package/src/services/constants/index.ts +6 -0
  1026. package/src/services/helpers/getDefaultQuestionListOptionsAttributes.ts +24 -0
  1027. package/src/services/helpers/index.ts +1 -0
  1028. package/test/columns/isNumericalColumn.test.js +154 -0
  1029. package/test/format.test.js +11 -11
  1030. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1031. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1032. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +0 -11
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-9*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.10-0*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -80,6 +80,1570 @@ Get a text and evaluate if it matchs with a token box label.
80
80
 
81
81
 
82
82
 
83
+ ### dist/dates/adapters/mdyDateToDate.js
84
+
85
+
86
+ #### mdyDateToDate(monthYearDate, time)
87
+
88
+ Transforms String Date from a [mm/dd/yyyy] format to Date object.
89
+
90
+
91
+
92
+
93
+ ##### Parameters
94
+
95
+ | Name | Type | Description | |
96
+ | ---- | ---- | ----------- | -------- |
97
+ | monthYearDate | | String of [mm/dd/yyyy] date |   |
98
+ | time | | Flag to parse the object date to milliseconds. |   |
99
+
100
+
101
+
102
+
103
+ ##### Returns
104
+
105
+
106
+ - The date object or the date in milliseconds
107
+
108
+
109
+
110
+
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.
117
+
118
+
119
+
120
+
121
+ ##### Parameters
122
+
123
+ | Name | Type | Description | |
124
+ | ---- | ---- | ----------- | -------- |
125
+ | monthYearDate | | String of [Month Year] date |   |
126
+ | time | | Flag to parse the object date to milliseconds. |   |
127
+
128
+
129
+
130
+
131
+ ##### Returns
132
+
133
+
134
+ - The date object or the date in milliseconds
135
+
136
+
137
+
138
+
139
+ ### dist/dates/adapters/quarterYearToDate.js
140
+
141
+
142
+ #### quarterYearToDate(quarterYearDate, time)
143
+
144
+ Transforms String Date from a [Quarter Year] format to Date object.
145
+
146
+
147
+
148
+
149
+ ##### Parameters
150
+
151
+ | Name | Type | Description | |
152
+ | ---- | ---- | ----------- | -------- |
153
+ | quarterYearDate | | String of [Quarter Year] date |   |
154
+ | time | | Flag to parse the object date to milliseconds. |   |
155
+
156
+
157
+
158
+
159
+ ##### Returns
160
+
161
+
162
+ - The date object or the date in milliseconds
163
+
164
+
165
+
166
+
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.
173
+
174
+
175
+
176
+
177
+ ##### Parameters
178
+
179
+ | Name | Type | Description | |
180
+ | ---- | ---- | ----------- | -------- |
181
+ | date | | String of [Week Year] date |   |
182
+ | time | | Flag to parse the object date to milliseconds. |   |
183
+
184
+
185
+
186
+
187
+ ##### Returns
188
+
189
+
190
+ - The date object or the date in milliseconds
191
+
192
+
193
+
194
+
195
+ ### dist/dates/adapters/yearToDate.js
196
+
197
+
198
+ #### yearToDate(yearDate, time)
199
+
200
+ Transforms String Date from a [Year] format to Date object.
201
+
202
+
203
+
204
+
205
+ ##### Parameters
206
+
207
+ | Name | Type | Description | |
208
+ | ---- | ---- | ----------- | -------- |
209
+ | yearDate | | String of [Year] date |   |
210
+ | time | | Flag to parse the object date to milliseconds. |   |
211
+
212
+
213
+
214
+
215
+ ##### Returns
216
+
217
+
218
+ - The date object or the date in milliseconds
219
+
220
+
221
+
222
+
223
+ ### dist/dates/helpers/getDateByDateFormat.js
224
+
225
+
226
+ #### getDateByDateFormat(date, format, time)
227
+
228
+ Gets a Date Object instance by a Date format
229
+
230
+
231
+
232
+
233
+ ##### Parameters
234
+
235
+ | Name | Type | Description | |
236
+ | ---- | ---- | ----------- | -------- |
237
+ | date | | String with a formatted date |   |
238
+ | format | | The date format |   |
239
+ | time | | flag to convert the formatted date to miliseconds |   |
240
+
241
+
242
+
243
+
244
+ ##### Returns
245
+
246
+
247
+ - a Date object, milisecond time or the same value if date format does not match.
248
+
249
+
250
+
251
+
252
+ ### dist/dates/helpers/getDateFormatByProperty.js
253
+
254
+
255
+ #### getDateFormatByProperty(property)
256
+
257
+ Gets the date format by the given property
258
+
259
+
260
+
261
+
262
+ ##### Parameters
263
+
264
+ | Name | Type | Description | |
265
+ | ---- | ---- | ----------- | -------- |
266
+ | property | | The Column Property |   |
267
+
268
+
269
+
270
+
271
+ ##### Returns
272
+
273
+
274
+ - The date format
275
+
276
+
277
+
278
+
279
+ ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
280
+
281
+
282
+ #### getDateFormatRegularExpressionInArray(dateFormat)
283
+
284
+ Gets an array of regular expressions by the given date format
285
+
286
+
287
+
288
+
289
+ ##### Parameters
290
+
291
+ | Name | Type | Description | |
292
+ | ---- | ---- | ----------- | -------- |
293
+ | dateFormat | | the date format |   |
294
+
295
+
296
+
297
+
298
+ ##### Returns
299
+
300
+
301
+ - an array of regular expressions
302
+
303
+
304
+
305
+
306
+ ### dist/dates/helpers/getSeparatorByDateFormat.js
307
+
308
+
309
+ #### getSeparatorByDateFormat(format)
310
+
311
+ Gets the separator of the date format
312
+
313
+
314
+
315
+
316
+ ##### Parameters
317
+
318
+ | Name | Type | Description | |
319
+ | ---- | ---- | ----------- | -------- |
320
+ | format | | the date format |   |
321
+
322
+
323
+
324
+
325
+ ##### Returns
326
+
327
+
328
+ - a separator string
329
+
330
+
331
+
332
+
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
340
+
341
+
342
+
343
+
344
+ ##### Parameters
345
+
346
+ | Name | Type | Description | |
347
+ | ---- | ---- | ----------- | -------- |
348
+ | date | | the date object |   |
349
+
350
+
351
+
352
+
353
+ ##### Returns
354
+
355
+
356
+ - an object with the week, month and year.
357
+
358
+
359
+
360
+
361
+ ### dist/dates/helpers/validateDate.js
362
+
363
+
364
+ #### validateDate(date, format)
365
+
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
370
+
371
+
372
+
373
+
374
+ ##### Parameters
375
+
376
+ | Name | Type | Description | |
377
+ | ---- | ---- | ----------- | -------- |
378
+ | date | | String of date |   |
379
+ | format | | String of the format to validate |   |
380
+
381
+
382
+
383
+
384
+ ##### Returns
385
+
386
+
387
+ - True if it is valid or not. Undefined if date is undefined
388
+
389
+
390
+
391
+
392
+ ### dist/dates/helpers/validateDateByDateFormat.js
393
+
394
+
395
+ #### validateDateByDateFormat(date, dateForma)
396
+
397
+ Validates the given string as Date by its date format.
398
+
399
+
400
+
401
+
402
+ ##### Parameters
403
+
404
+ | Name | Type | Description | |
405
+ | ---- | ---- | ----------- | -------- |
406
+ | date | | a string to validate as date form |   |
407
+ | dateForma | | the format of the date to validate the string |   |
408
+
409
+
410
+
411
+
412
+ ##### Returns
413
+
414
+
415
+ - true: the string is a valida date
416
+
417
+
418
+
419
+
420
+ ### dist/dates/range/getDateRange.js
421
+
422
+
423
+ #### getDateRange(value, dateGroupLabel, withTime)
424
+
425
+ Get date range object from a string date value
426
+
427
+
428
+
429
+
430
+ ##### Parameters
431
+
432
+ | Name | Type | Description | |
433
+ | ---- | ---- | ----------- | -------- |
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 |   |
437
+
438
+
439
+
440
+
441
+ ##### Examples
442
+
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
+ }
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
+ }
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
+ ```
468
+
469
+
470
+ ##### Returns
471
+
472
+
473
+ - `Object` an object with the date range with two string date properties: from and to
474
+
475
+
476
+
477
+
478
+ ### dist/dates/relative/Adapter.js
479
+
480
+
481
+ #### value()
482
+
483
+ Resolves statement and returns statement value
484
+
485
+
486
+
487
+
488
+
489
+
490
+ ##### Returns
491
+
492
+
493
+ - `AbsoluteRange` `string`
494
+
495
+
496
+
497
+ #### valueAsAnchor()
498
+
499
+ Resolves statement as an anchor
500
+
501
+
502
+
503
+
504
+
505
+
506
+ ##### Returns
507
+
508
+
509
+ - `string`
510
+
511
+
512
+
513
+ #### _statementToRange() *private method*
514
+
515
+ Convert verbal statement to range value
516
+
517
+
518
+
519
+
520
+
521
+
522
+ ##### Returns
523
+
524
+
525
+ - `AbsoluteRange`
526
+
527
+
528
+
529
+ #### _resolveAsThis() *private method*
530
+
531
+ Apply 'this' cursor logic to statement
532
+
533
+
534
+
535
+
536
+
537
+
538
+ ##### Returns
539
+
540
+
541
+ - `AbsoluteStatement`
542
+
543
+
544
+
545
+ #### _resolveAsTheLast() *private method*
546
+
547
+ Apply 'the last' cursor logic to statement
548
+
549
+
550
+
551
+
552
+
553
+
554
+ ##### Returns
555
+
556
+
557
+ - `AbsoluteStatement`
558
+
559
+
560
+
561
+ #### _resolveAsTheNext() *private method*
562
+
563
+ Apply 'the next' cursor logic to statement
564
+
565
+
566
+
567
+
568
+
569
+
570
+ ##### Returns
571
+
572
+
573
+ - `AbsoluteStatement`
574
+
575
+
576
+
577
+ #### replaceNowToken(value, now)
578
+
579
+ Replace '@now' token inside a string
580
+
581
+
582
+
583
+
584
+ ##### Parameters
585
+
586
+ | Name | Type | Description | |
587
+ | ---- | ---- | ----------- | -------- |
588
+ | value | `string` | |   |
589
+ | now | `Date` | |   |
590
+
591
+
592
+
593
+
594
+ ##### Returns
595
+
596
+
597
+ - `string`
598
+
599
+
600
+
601
+ #### convertRelativeToAbsolute(args)
602
+
603
+ Returns a range object (date) from a group of statement params
604
+
605
+
606
+
607
+
608
+ ##### Parameters
609
+
610
+ | Name | Type | Description | |
611
+ | ---- | ---- | ----------- | -------- |
612
+ | args | `RelativeToAbsoluteStruct` | |   |
613
+
614
+
615
+
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
+
637
+ ##### Returns
638
+
639
+
640
+ - `string`
641
+
642
+
643
+
644
+
645
+ ### dist/dates/relative/relative.js
646
+
647
+
648
+ #### resolveRelative(statements, clock)
649
+
650
+ Resolve a list of relative statements according to operator
651
+
652
+
653
+
654
+
655
+ ##### Parameters
656
+
657
+ | Name | Type | Description | |
658
+ | ---- | ---- | ----------- | -------- |
659
+ | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
660
+ | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
661
+
662
+
663
+
664
+
665
+ ##### Examples
666
+
667
+ ```javascript
668
+ Input:
669
+ {
670
+ "cursor": "the_next",
671
+ "unit": "year",
672
+ "number": 1,
673
+ "includeCurrent": false,
674
+ "isCalendarDate": false,
675
+ "anchor": "03/05/2021"
676
+ }
677
+
678
+ Output:
679
+ { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
680
+ ```
681
+
682
+
683
+ ##### Returns
684
+
685
+
686
+ - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
687
+
688
+
689
+
690
+
691
+ ### dist/columns/helpers/getColumnsLabel.js
692
+
693
+
694
+ #### getColumnLabels(column)
695
+
696
+ Get an string of the properties of the given column.
697
+
698
+
699
+
700
+
701
+ ##### Parameters
702
+
703
+ | Name | Type | Description | |
704
+ | ---- | ---- | ----------- | -------- |
705
+ | column | | The column | &nbsp; |
706
+
707
+
708
+
709
+
710
+ ##### Returns
711
+
712
+
713
+ - an string with the property, aggregate or calculation label.
714
+
715
+
716
+
717
+
718
+ ### dist/columns/helpers/getModelColumn.js
719
+
720
+
721
+ #### getModelColumn(column, model)
722
+
723
+ Get a model question by column id.
724
+
725
+
726
+
727
+
728
+ ##### Parameters
729
+
730
+ | Name | Type | Description | |
731
+ | ---- | ---- | ----------- | -------- |
732
+ | column | | The column with info | &nbsp; |
733
+ | model | | The model object | &nbsp; |
734
+
735
+
736
+
737
+
738
+ ##### Returns
739
+
740
+
741
+ - the model question
742
+
743
+
744
+
745
+ #### getQuestionData(model)
746
+
747
+ [TODO: Change the question.data access path. IModel structure is different]
748
+ Get the question data array from model object
749
+
750
+
751
+
752
+
753
+ ##### Parameters
754
+
755
+ | Name | Type | Description | |
756
+ | ---- | ---- | ----------- | -------- |
757
+ | model | | The model object | &nbsp; |
758
+
759
+
760
+
761
+
762
+ ##### Returns
763
+
764
+
765
+ - the question data array from model object
766
+
767
+
768
+
769
+
770
+ ### dist/filters/adapters/FDToFlatUI.js
771
+
772
+
773
+ #### FDToFlatUI(filterData, datasetsInfo)
774
+
775
+ Generates a Flattened UI filter structure from Filter Data structure.
776
+
777
+
778
+
779
+
780
+ ##### Parameters
781
+
782
+ | Name | Type | Description | |
783
+ | ---- | ---- | ----------- | -------- |
784
+ | filterData | | The filter data object. | &nbsp; |
785
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
786
+
787
+
788
+
789
+
790
+ ##### Returns
791
+
792
+
793
+ - a flattened UI filters array
794
+
795
+
796
+
797
+ #### FD21ToFlatUI(scopes, datasetsInfo)
798
+
799
+ Generates a Filter Builder Structure from the Filter Data structure v2.1
800
+
801
+
802
+
803
+
804
+ ##### Parameters
805
+
806
+ | Name | Type | Description | |
807
+ | ---- | ---- | ----------- | -------- |
808
+ | scopes | | The filter scope section | &nbsp; |
809
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
810
+
811
+
812
+
813
+
814
+ ##### Returns
815
+
816
+
817
+ - a flattened UI filters array
818
+
819
+
820
+
821
+
822
+ ### dist/filters/adapters/FDToLogic.js
823
+
824
+
825
+ #### FDToLogic(filterData)
826
+
827
+ Generates a Filter Logic structure from Filter Data structure.
828
+
829
+
830
+
831
+
832
+ ##### Parameters
833
+
834
+ | Name | Type | Description | |
835
+ | ---- | ---- | ----------- | -------- |
836
+ | filterData | | The filter data object. | &nbsp; |
837
+
838
+
839
+
840
+
841
+ ##### Returns
842
+
843
+
844
+ - a filter logic array
845
+
846
+
847
+
848
+ #### getLogicBodyFromFD21(filterData)
849
+
850
+ Gets the logic body
851
+
852
+
853
+
854
+
855
+ ##### Parameters
856
+
857
+ | Name | Type | Description | |
858
+ | ---- | ---- | ----------- | -------- |
859
+ | filterData | | The filter data object | &nbsp; |
860
+
861
+
862
+
863
+
864
+ ##### Returns
865
+
866
+
867
+ - a filter logic array
868
+
869
+
870
+
871
+
872
+ ### dist/filters/adapters/FDToUI.js
873
+
874
+
875
+ #### FDToUI(filterData, datasetsInfo)
876
+
877
+ Generates a UI filter structure from Filter Data structure.
878
+
879
+
880
+
881
+
882
+ ##### Parameters
883
+
884
+ | Name | Type | Description | |
885
+ | ---- | ---- | ----------- | -------- |
886
+ | filterData | | The filter data object. | &nbsp; |
887
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
888
+
889
+
890
+
891
+
892
+ ##### Returns
893
+
894
+
895
+ - a UI Filters structure
896
+
897
+
898
+
899
+ #### FD21ToUI(scopes, section, version, datasetsInfo)
900
+
901
+ Generates a UI filter Structure from the Filter Data structure v2.1
902
+
903
+
904
+
905
+
906
+ ##### Parameters
907
+
908
+ | Name | Type | Description | |
909
+ | ---- | ---- | ----------- | -------- |
910
+ | scopes | | The filter scope section | &nbsp; |
911
+ | section | | The filter section. | &nbsp; |
912
+ | version | | The version of the filter structure | &nbsp; |
913
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
914
+
915
+
916
+
917
+
918
+ ##### Returns
919
+
920
+
921
+ - a UI filter Structure
922
+
923
+
924
+
925
+
926
+ ### dist/filters/adapters/UIToFD.js
927
+
928
+
929
+ #### UIToFD(filterData)
930
+
931
+ Generates a Filter Data Structure structure from UI Filter Data structure.
932
+
933
+
934
+
935
+
936
+ ##### Parameters
937
+
938
+ | Name | Type | Description | |
939
+ | ---- | ---- | ----------- | -------- |
940
+ | filterData | | The UI filter data object. | &nbsp; |
941
+
942
+
943
+
944
+
945
+ ##### Returns
946
+
947
+
948
+ - a Filter Data structure
949
+
950
+
951
+
952
+ #### UI21ToFD(uFilterData, version)
953
+
954
+ Builds the Fitler Data structure from UI filter data
955
+
956
+
957
+
958
+
959
+ ##### Parameters
960
+
961
+ | Name | Type | Description | |
962
+ | ---- | ---- | ----------- | -------- |
963
+ | uFilterData | | The UI filter Data object | &nbsp; |
964
+ | version | | the version of the structure | &nbsp; |
965
+
966
+
967
+
968
+
969
+ ##### Returns
970
+
971
+
972
+ -
973
+
974
+
975
+
976
+
977
+ ### dist/filters/adapters/UIToFlatUI.js
978
+
979
+
980
+ #### UIToFlatUI(filterData, datasetsInfo)
981
+
982
+ Generates a Flattened UI filter structure from UI Filter Data structure.
983
+
984
+
985
+
986
+
987
+ ##### Parameters
988
+
989
+ | Name | Type | Description | |
990
+ | ---- | ---- | ----------- | -------- |
991
+ | filterData | | The UI filter data object. | &nbsp; |
992
+ | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
993
+
994
+
995
+
996
+
997
+ ##### Returns
998
+
999
+
1000
+ - a flattened UI filters array
1001
+
1002
+
1003
+
1004
+ #### UI21ToFlatUI(scopes)
1005
+
1006
+ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
1007
+
1008
+
1009
+
1010
+
1011
+ ##### Parameters
1012
+
1013
+ | Name | Type | Description | |
1014
+ | ---- | ---- | ----------- | -------- |
1015
+ | scopes | | The filter scope section | &nbsp; |
1016
+
1017
+
1018
+
1019
+
1020
+ ##### Returns
1021
+
1022
+
1023
+ - a flattened UI filters array
1024
+
1025
+
1026
+
1027
+
1028
+ ### dist/filters/adapters/adaptDateGroupingProperty.js
1029
+
1030
+
1031
+ #### adaptDateGroupingProperty(property)
1032
+
1033
+ [TODO: For 2022, eliminate this adapter]
1034
+ Get the new property base on the old date grouping properties
1035
+
1036
+
1037
+
1038
+
1039
+ ##### Parameters
1040
+
1041
+ | Name | Type | Description | |
1042
+ | ---- | ---- | ----------- | -------- |
1043
+ | property | | | &nbsp; |
1044
+
1045
+
1046
+
1047
+
1048
+ ##### Returns
1049
+
1050
+
1051
+ -
1052
+
1053
+
1054
+
1055
+
1056
+ ### dist/filters/adapters/adaptFilterData.js
1057
+
1058
+
1059
+ #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
1060
+
1061
+ Checks and adapts the v2.0 Filter Data Structure to the v2.1
1062
+
1063
+
1064
+
1065
+
1066
+ ##### Parameters
1067
+
1068
+ | Name | Type | Description | |
1069
+ | ---- | ---- | ----------- | -------- |
1070
+ | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
1071
+ | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
1072
+ | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
1073
+
1074
+
1075
+
1076
+
1077
+ ##### Returns
1078
+
1079
+
1080
+ - A new filter data structure v2.1
1081
+
1082
+
1083
+
1084
+
1085
+ ### dist/filters/adapters/adaptFilterValues.js
1086
+
1087
+
1088
+ #### adaptFilterValues(filter)
1089
+
1090
+ [TODO: For 2022, eliminate this adapter]
1091
+ Gets an adapted filter value array. Validates the enabled property and sets
1092
+
1093
+
1094
+
1095
+
1096
+ ##### Parameters
1097
+
1098
+ | Name | Type | Description | |
1099
+ | ---- | ---- | ----------- | -------- |
1100
+ | filter | | The filter | &nbsp; |
1101
+
1102
+
1103
+
1104
+
1105
+ ##### Returns
1106
+
1107
+
1108
+ - A new value array with the filled properties.
1109
+
1110
+
1111
+
1112
+
1113
+ ### dist/filters/adapters/flatUIToFD.js
1114
+
1115
+
1116
+ #### flatUIToFD(uFilters, version)
1117
+
1118
+ Generates a filter data structure from the flatttened UI filters.
1119
+
1120
+
1121
+
1122
+
1123
+ ##### Parameters
1124
+
1125
+ | Name | Type | Description | |
1126
+ | ---- | ---- | ----------- | -------- |
1127
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1128
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1129
+
1130
+
1131
+
1132
+
1133
+ ##### Returns
1134
+
1135
+
1136
+ - a Filter Data.
1137
+
1138
+
1139
+
1140
+ #### buildScopes(fbFilters)
1141
+
1142
+ Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
1143
+ Also, adds and organizes filters by datasets
1144
+
1145
+
1146
+
1147
+
1148
+ ##### Parameters
1149
+
1150
+ | Name | Type | Description | |
1151
+ | ---- | ---- | ----------- | -------- |
1152
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1153
+
1154
+
1155
+
1156
+
1157
+ ##### Returns
1158
+
1159
+
1160
+ - an array of scopes structure.
1161
+
1162
+
1163
+
1164
+ #### buildScope(uFilter)
1165
+
1166
+ Gets an scope structure for the filter data
1167
+
1168
+
1169
+
1170
+
1171
+ ##### Parameters
1172
+
1173
+ | Name | Type | Description | |
1174
+ | ---- | ---- | ----------- | -------- |
1175
+ | uFilter | | UI structure filter | &nbsp; |
1176
+
1177
+
1178
+
1179
+
1180
+ ##### Returns
1181
+
1182
+
1183
+ - an scope structure
1184
+
1185
+
1186
+
1187
+ #### buildDataset(uFilter)
1188
+
1189
+ Gets an dataset structure for the filter data
1190
+
1191
+
1192
+
1193
+
1194
+ ##### Parameters
1195
+
1196
+ | Name | Type | Description | |
1197
+ | ---- | ---- | ----------- | -------- |
1198
+ | uFilter | | a UI structure filter | &nbsp; |
1199
+
1200
+
1201
+
1202
+
1203
+ ##### Returns
1204
+
1205
+
1206
+ - an dataset structure
1207
+
1208
+
1209
+
1210
+ #### buildFilter(uFilter)
1211
+
1212
+ Gets an filter structure for the filter data
1213
+
1214
+
1215
+
1216
+
1217
+ ##### Parameters
1218
+
1219
+ | Name | Type | Description | |
1220
+ | ---- | ---- | ----------- | -------- |
1221
+ | uFilter | | a UI structure filter | &nbsp; |
1222
+
1223
+
1224
+
1225
+
1226
+ ##### Returns
1227
+
1228
+
1229
+ - an filter structure
1230
+
1231
+
1232
+
1233
+
1234
+ ### dist/filters/adapters/flatUIToLogic.js
1235
+
1236
+
1237
+ #### flatUIToLogic(uFilter)
1238
+
1239
+ Generates a Logic structure from flattened UI filters
1240
+
1241
+
1242
+
1243
+
1244
+ ##### Parameters
1245
+
1246
+ | Name | Type | Description | |
1247
+ | ---- | ---- | ----------- | -------- |
1248
+ | uFilter | | Array of flat filters from UI | &nbsp; |
1249
+
1250
+
1251
+
1252
+
1253
+ ##### Returns
1254
+
1255
+
1256
+ - The logic structure
1257
+
1258
+
1259
+
1260
+
1261
+ ### dist/filters/adapters/flatUIToOldLogic.js
1262
+
1263
+
1264
+ #### flatUIToOldLogic(uFilters)
1265
+
1266
+ Generates a Logic structure from flattened UI filters
1267
+
1268
+
1269
+
1270
+
1271
+ ##### Parameters
1272
+
1273
+ | Name | Type | Description | |
1274
+ | ---- | ---- | ----------- | -------- |
1275
+ | uFilters | | Array of flat filters from UI | &nbsp; |
1276
+
1277
+
1278
+
1279
+
1280
+ ##### Returns
1281
+
1282
+
1283
+ - The logic structure
1284
+
1285
+
1286
+
1287
+
1288
+ ### dist/filters/adapters/flatUIToUI.js
1289
+
1290
+
1291
+ #### flatUIToUI(uFilters, version)
1292
+
1293
+ Generates a UI filter data structure from the flatttened UI filters.
1294
+
1295
+
1296
+
1297
+
1298
+ ##### Parameters
1299
+
1300
+ | Name | Type | Description | |
1301
+ | ---- | ---- | ----------- | -------- |
1302
+ | uFilters | | Array of flattened filters from UI | &nbsp; |
1303
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1304
+
1305
+
1306
+
1307
+
1308
+ ##### Returns
1309
+
1310
+
1311
+ - a UI Filter Data.
1312
+
1313
+
1314
+
1315
+ #### buildScopes(fbFilters)
1316
+
1317
+ Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
1318
+ Also, adds and organizes filters by datasets
1319
+
1320
+
1321
+
1322
+
1323
+ ##### Parameters
1324
+
1325
+ | Name | Type | Description | |
1326
+ | ---- | ---- | ----------- | -------- |
1327
+ | fbFilters | | Array of flat filters from UI | &nbsp; |
1328
+
1329
+
1330
+
1331
+
1332
+ ##### Returns
1333
+
1334
+
1335
+ - an array of scopes structure.
1336
+
1337
+
1338
+
1339
+ #### buildScope(uFilter)
1340
+
1341
+ Gets an scope structure for the UI filter data
1342
+
1343
+
1344
+
1345
+
1346
+ ##### Parameters
1347
+
1348
+ | Name | Type | Description | |
1349
+ | ---- | ---- | ----------- | -------- |
1350
+ | uFilter | | UI structure filter | &nbsp; |
1351
+
1352
+
1353
+
1354
+
1355
+ ##### Returns
1356
+
1357
+
1358
+ - an scope structure
1359
+
1360
+
1361
+
1362
+ #### buildDataset(uFilter)
1363
+
1364
+ Gets an dataset structure for the UI filter data
1365
+
1366
+
1367
+
1368
+
1369
+ ##### Parameters
1370
+
1371
+ | Name | Type | Description | |
1372
+ | ---- | ---- | ----------- | -------- |
1373
+ | uFilter | | a UI structure filter | &nbsp; |
1374
+
1375
+
1376
+
1377
+
1378
+ ##### Returns
1379
+
1380
+
1381
+ - an dataset structure
1382
+
1383
+
1384
+
1385
+ #### buildFilter(uFilter)
1386
+
1387
+ Gets an filter structure for the UI filter data
1388
+
1389
+
1390
+
1391
+
1392
+ ##### Parameters
1393
+
1394
+ | Name | Type | Description | |
1395
+ | ---- | ---- | ----------- | -------- |
1396
+ | uFilter | | a UI structure filter | &nbsp; |
1397
+
1398
+
1399
+
1400
+
1401
+ ##### Returns
1402
+
1403
+
1404
+ - an filter structure
1405
+
1406
+
1407
+
1408
+
1409
+ ### dist/filters/adapters/logicToFD.js
1410
+
1411
+
1412
+ #### logicToFD(filterData, version)
1413
+
1414
+ Generates a filter data structure from the old logic structure (v2.0).
1415
+
1416
+
1417
+
1418
+
1419
+ ##### Parameters
1420
+
1421
+ | Name | Type | Description | |
1422
+ | ---- | ---- | ----------- | -------- |
1423
+ | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
1424
+ | version | | Tag for the version of the filter data structure | &nbsp; |
1425
+
1426
+
1427
+
1428
+
1429
+ ##### Returns
1430
+
1431
+
1432
+ - a Filter Data.
1433
+
1434
+
1435
+
1436
+
1437
+ ### dist/filters/adapters/logicToFlatUI.js
1438
+
1439
+
1440
+ #### logicToFlatUI(logics)
1441
+
1442
+ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
1443
+
1444
+
1445
+
1446
+
1447
+ ##### Parameters
1448
+
1449
+ | Name | Type | Description | |
1450
+ | ---- | ---- | ----------- | -------- |
1451
+ | logics | | The old logic structure (v2.0) | &nbsp; |
1452
+
1453
+
1454
+
1455
+
1456
+ ##### Returns
1457
+
1458
+
1459
+ - The Flattened UI Filters array
1460
+
1461
+
1462
+
1463
+ #### getFilter(filters, filter, getIndex)
1464
+
1465
+ Get the filter or the index of the given array, validating an old filter structure.
1466
+
1467
+
1468
+
1469
+
1470
+ ##### Parameters
1471
+
1472
+ | Name | Type | Description | |
1473
+ | ---- | ---- | ----------- | -------- |
1474
+ | filters | | The array of UI filters | &nbsp; |
1475
+ | filter | | The old logic structure filter | &nbsp; |
1476
+ | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
1477
+
1478
+
1479
+
1480
+
1481
+ ##### Returns
1482
+
1483
+
1484
+ - the index or the UI filter object
1485
+
1486
+
1487
+
1488
+ #### refineRankingValues(values, uiValues)
1489
+
1490
+ Refines the values of the Ranking column type.
1491
+
1492
+
1493
+
1494
+
1495
+ ##### Parameters
1496
+
1497
+ | Name | Type | Description | |
1498
+ | ---- | ---- | ----------- | -------- |
1499
+ | values | | the Array of Ranking values | &nbsp; |
1500
+ | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
1501
+
1502
+
1503
+
1504
+
1505
+ ##### Returns
1506
+
1507
+
1508
+ - the array of Ranking values
1509
+
1510
+
1511
+
1512
+
1513
+ ### dist/filters/adapters/logicToUI.js
1514
+
1515
+
1516
+ #### logicToUI(uFilters, datasetsInfo)
1517
+
1518
+ Generates a UI filter structure from the old logic structure (v2.0).
1519
+
1520
+
1521
+
1522
+
1523
+ ##### Parameters
1524
+
1525
+ | Name | Type | Description | |
1526
+ | ---- | ---- | ----------- | -------- |
1527
+ | uFilters | | Array of filters from old logic structure | &nbsp; |
1528
+ | datasetsInfo | | Collection of datasets information | &nbsp; |
1529
+
1530
+
1531
+
1532
+
1533
+ ##### Returns
1534
+
1535
+
1536
+ - a UI Filter Data.
1537
+
1538
+
1539
+
1540
+
1541
+ ### dist/filters/adapters/modelAnswerToFilterValue.js
1542
+
1543
+
1544
+ #### modelAnswerToFilterValue(answers)
1545
+
1546
+ Adapter for model answer to convert to recognizable values for Filter Builder
1547
+
1548
+
1549
+
1550
+
1551
+ ##### Parameters
1552
+
1553
+ | Name | Type | Description | |
1554
+ | ---- | ---- | ----------- | -------- |
1555
+ | answers | | Array of the qrvey model answers | &nbsp; |
1556
+
1557
+
1558
+
1559
+
1560
+ ##### Returns
1561
+
1562
+
1563
+ - Array of values
1564
+
1565
+
1566
+
1567
+
1568
+ ### dist/filters/adapters/transformFilters.js
1569
+
1570
+
1571
+ #### transformFilters(oldFiltersObj, section)
1572
+
1573
+ Transform the old filters structure into the new one
1574
+
1575
+
1576
+
1577
+
1578
+ ##### Parameters
1579
+
1580
+ | Name | Type | Description | |
1581
+ | ---- | ---- | ----------- | -------- |
1582
+ | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
1583
+ | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
1584
+
1585
+
1586
+
1587
+
1588
+ ##### Examples
1589
+
1590
+ ```javascript
1591
+
1592
+ const oldPreferenceFilters = {
1593
+ "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
1594
+ "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
1595
+ "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
1596
+ "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
1597
+ "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
1598
+ "formulaId": null,
1599
+ "panelId": null,
1600
+ "values": [
1601
+ {
1602
+ "EQUALS": [
1603
+ {
1604
+ "id": "AK4M8UV2a0",
1605
+ "value": "A",
1606
+ "enabled": true,
1607
+ "imageUrl": null
1608
+ },
1609
+ {
1610
+ "id": "AK4M8UV2a1",
1611
+ "value": "B",
1612
+ "enabled": true,
1613
+ "imageUrl": null
1614
+ }
1615
+ ]
1616
+ }
1617
+ ],
1618
+ "bucketId": null,
1619
+ "text": "MC",
1620
+ "title": "MC",
1621
+ "type": "SINGLE_CHOICE",
1622
+ "qid": "AK4M8UV2",
1623
+ "dataset": {
1624
+ "sourceid": "xYOQAdpqT",
1625
+ "name": "Form All Questions",
1626
+ "qrveyid": "xYOQAdpqT",
1627
+ "text": "Form All Questions",
1628
+ "linkid": 0
1629
+ },
1630
+ "enabled": true,
1631
+ "linked": null
1632
+ }
1633
+ };
1634
+
1635
+ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1636
+ ```
1637
+
1638
+
1639
+ ##### Returns
1640
+
1641
+
1642
+ - `Object` an object with the new filters structure
1643
+
1644
+
1645
+
1646
+
83
1647
  ### dist/filters/classes/FilterInputErrorHandler.js
84
1648
 
85
1649
 
@@ -100,12 +1664,12 @@ Get a text and evaluate if it matchs with a token box label.
100
1664
 
101
1665
 
102
1666
 
103
- ### dist/filters/adapters/FDToLogic.js
1667
+ ### dist/filters/helpers/OLD_getAggFilters.js
104
1668
 
105
1669
 
106
- #### FDToLogic(filterData)
1670
+ #### getAggFilters(logics, summaries)
1671
+
107
1672
 
108
- Generates a Filter Logic structure from Filter Data structure.
109
1673
 
110
1674
 
111
1675
 
@@ -114,7 +1678,8 @@ Generates a Filter Logic structure from Filter Data structure.
114
1678
 
115
1679
  | Name | Type | Description | |
116
1680
  | ---- | ---- | ----------- | -------- |
117
- | filterData | | The filter data object. | &nbsp; |
1681
+ | logics | | | &nbsp; |
1682
+ | summaries | | | &nbsp; |
118
1683
 
119
1684
 
120
1685
 
@@ -122,13 +1687,13 @@ Generates a Filter Logic structure from Filter Data structure.
122
1687
  ##### Returns
123
1688
 
124
1689
 
125
- - a filter logic array
1690
+ -
126
1691
 
127
1692
 
128
1693
 
129
- #### getLogicBodyFromFD21(filterData)
1694
+ #### getAggregateFilters(logics, formatToFilters)
130
1695
 
131
- Gets the logic body
1696
+ Filters and gets the filters used for aggregate values.
132
1697
 
133
1698
 
134
1699
 
@@ -137,7 +1702,8 @@ Gets the logic body
137
1702
 
138
1703
  | Name | Type | Description | |
139
1704
  | ---- | ---- | ----------- | -------- |
140
- | filterData | | The filter data object | &nbsp; |
1705
+ | logics | | The filter logic structure | &nbsp; |
1706
+ | formatToFilters | | Flag to change de way of returning the filter structure. | &nbsp; |
141
1707
 
142
1708
 
143
1709
 
@@ -145,17 +1711,17 @@ Gets the logic body
145
1711
  ##### Returns
146
1712
 
147
1713
 
148
- - a filter logic array
1714
+ - the aggregate filters in the IFilterFilters way or as logic structure.
149
1715
 
150
1716
 
151
1717
 
152
1718
 
153
- ### dist/filters/adapters/FDToUI.js
1719
+ ### dist/filters/helpers/applyHierarchyForAggFilters.js
154
1720
 
155
1721
 
156
- #### FDToUI(filterData, datasetsInfo)
1722
+ #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
157
1723
 
158
- Generates a UI filter structure from Filter Data structure.
1724
+ [TODO: Make a proper description for this function]
159
1725
 
160
1726
 
161
1727
 
@@ -164,8 +1730,9 @@ Generates a UI filter structure from Filter Data structure.
164
1730
 
165
1731
  | Name | Type | Description | |
166
1732
  | ---- | ---- | ----------- | -------- |
167
- | filterData | | The filter data object. | &nbsp; |
168
- | datasetsInfo | | Collection of datasets information | &nbsp; |
1733
+ | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
1734
+ | scopes | | | &nbsp; |
1735
+ | currentScope | | | &nbsp; |
169
1736
 
170
1737
 
171
1738
 
@@ -173,13 +1740,17 @@ Generates a UI filter structure from Filter Data structure.
173
1740
  ##### Returns
174
1741
 
175
1742
 
176
- - a UI Filters structure
1743
+ -
177
1744
 
178
1745
 
179
1746
 
180
- #### FD21ToUI(scopes, section, version, datasetsInfo)
181
1747
 
182
- Generates a UI filter Structure from the Filter Data structure v2.1
1748
+ ### dist/filters/helpers/getAvailableScopes.js
1749
+
1750
+
1751
+ #### getAvailableScopes(config)
1752
+
1753
+ Gets Scopes/Scope IDs by given IDs
183
1754
 
184
1755
 
185
1756
 
@@ -188,10 +1759,7 @@ Generates a UI filter Structure from the Filter Data structure v2.1
188
1759
 
189
1760
  | Name | Type | Description | |
190
1761
  | ---- | ---- | ----------- | -------- |
191
- | scopes | | The filter scope section | &nbsp; |
192
- | section | | The filter section. | &nbsp; |
193
- | version | | The version of the filter structure | &nbsp; |
194
- | datasetsInfo | | Collection of datasets information | &nbsp; |
1762
+ | config | | given Differnts IDs in order set a available scope | &nbsp; |
195
1763
 
196
1764
 
197
1765
 
@@ -199,17 +1767,17 @@ Generates a UI filter Structure from the Filter Data structure v2.1
199
1767
  ##### Returns
200
1768
 
201
1769
 
202
- - a UI filter Structure
1770
+ - a Scopes/Scope IDs array
203
1771
 
204
1772
 
205
1773
 
206
1774
 
207
- ### dist/filters/adapters/UIToFD.js
1775
+ ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
208
1776
 
209
1777
 
210
- #### UIToFD(filterData)
1778
+ #### getAvailableScopesIDsByConfig(config)
211
1779
 
212
- Generates a Filter Data Structure structure from UI Filter Data structure.
1780
+ Gets the Scopes IDS for the Available Scope function by any config
213
1781
 
214
1782
 
215
1783
 
@@ -218,7 +1786,7 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
218
1786
 
219
1787
  | Name | Type | Description | |
220
1788
  | ---- | ---- | ----------- | -------- |
221
- | filterData | | The UI filter data object. | &nbsp; |
1789
+ | config | | any config | &nbsp; |
222
1790
 
223
1791
 
224
1792
 
@@ -226,13 +1794,17 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
226
1794
  ##### Returns
227
1795
 
228
1796
 
229
- - a Filter Data structure
1797
+ - a Available Scope IDS config
230
1798
 
231
1799
 
232
1800
 
233
- #### UI21ToFD(uFilterData, version)
234
1801
 
235
- Builds the Fitler Data structure from UI filter data
1802
+ ### dist/filters/helpers/getScopesByHierarchy.js
1803
+
1804
+
1805
+ #### getScopesByHierarchy(scopes, currentScope)
1806
+
1807
+ [TODO: Make a description for this]
236
1808
 
237
1809
 
238
1810
 
@@ -241,8 +1813,8 @@ Builds the Fitler Data structure from UI filter data
241
1813
 
242
1814
  | Name | Type | Description | |
243
1815
  | ---- | ---- | ----------- | -------- |
244
- | uFilterData | | The UI filter Data object | &nbsp; |
245
- | version | | the version of the structure | &nbsp; |
1816
+ | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1817
+ | currentScope | | Current scope type | &nbsp; |
246
1818
 
247
1819
 
248
1820
 
@@ -250,17 +1822,17 @@ Builds the Fitler Data structure from UI filter data
250
1822
  ##### Returns
251
1823
 
252
1824
 
253
- -
1825
+ - A new array of Scopes/Scope IDs
254
1826
 
255
1827
 
256
1828
 
257
1829
 
258
- ### dist/filters/adapters/UIToFlatUI.js
1830
+ ### dist/filters/services/Filters.api.js
259
1831
 
260
1832
 
261
- #### UIToFlatUI(filterData, datasetsInfo)
1833
+ #### getModel(qrveyid)
262
1834
 
263
- Generates a Flattened UI filter structure from UI Filter Data structure.
1835
+ Get the model by Qrvey ID
264
1836
 
265
1837
 
266
1838
 
@@ -269,8 +1841,7 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
269
1841
 
270
1842
  | Name | Type | Description | |
271
1843
  | ---- | ---- | ----------- | -------- |
272
- | filterData | | The UI filter data object. | &nbsp; |
273
- | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | &nbsp; |
1844
+ | qrveyid | | The Qrvey ID | &nbsp; |
274
1845
 
275
1846
 
276
1847
 
@@ -278,13 +1849,13 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
278
1849
  ##### Returns
279
1850
 
280
1851
 
281
- - a flattened UI filters array
1852
+ - a promise with the resulting model
282
1853
 
283
1854
 
284
1855
 
285
- #### UI21ToFlatUI(scopes)
1856
+ #### getDatasets(qrveyids)
286
1857
 
287
- Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
1858
+ Get a dataset list from a collection of Qrvey IDs
288
1859
 
289
1860
 
290
1861
 
@@ -293,7 +1864,7 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
293
1864
 
294
1865
  | Name | Type | Description | |
295
1866
  | ---- | ---- | ----------- | -------- |
296
- | scopes | | The filter scope section | &nbsp; |
1867
+ | qrveyids | | Collection of Qrvey IDs | &nbsp; |
297
1868
 
298
1869
 
299
1870
 
@@ -301,18 +1872,55 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
301
1872
  ##### Returns
302
1873
 
303
1874
 
304
- - a flattened UI filters array
1875
+ - a promise
305
1876
 
306
1877
 
307
1878
 
1879
+ #### getDataValues(uFilter, filterLogic, chartSettings, resetApi)
308
1880
 
309
- ### dist/filters/adapters/adaptDateGroupingProperty.js
1881
+ Get a promise with a preview of resulting data. Depending on the validator, the endpoint will change.
310
1882
 
311
1883
 
312
- #### adaptDateGroupingProperty(property)
313
1884
 
314
- [TODO: For 2022, eliminate this adapter]
315
- Get the new property base on the old date grouping properties
1885
+
1886
+ ##### Parameters
1887
+
1888
+ | Name | Type | Description | |
1889
+ | ---- | ---- | ----------- | -------- |
1890
+ | uFilter | | The Filter Builder Filter | &nbsp; |
1891
+ | filterLogic | | Additional filter logic to apply in the preview | &nbsp; |
1892
+ | chartSettings | | | &nbsp; |
1893
+ | resetApi | | flag to determine when the api should be reseted. | &nbsp; |
1894
+
1895
+
1896
+
1897
+
1898
+ ##### Returns
1899
+
1900
+
1901
+ - a promise with a preview of resulting data.
1902
+
1903
+
1904
+
1905
+ #### getAvailableScopeIds()
1906
+
1907
+ Gets the available scopes and scope IDs
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+ ##### Returns
1915
+
1916
+
1917
+ - a collection of the pair Scopes and Scope IDs
1918
+
1919
+
1920
+
1921
+ #### setConfig(config)
1922
+
1923
+ Set the config into the Filter Builder Api class
316
1924
 
317
1925
 
318
1926
 
@@ -321,7 +1929,7 @@ Get the new property base on the old date grouping properties
321
1929
 
322
1930
  | Name | Type | Description | |
323
1931
  | ---- | ---- | ----------- | -------- |
324
- | property | | | &nbsp; |
1932
+ | config | | the config. | &nbsp; |
325
1933
 
326
1934
 
327
1935
 
@@ -329,17 +1937,17 @@ Get the new property base on the old date grouping properties
329
1937
  ##### Returns
330
1938
 
331
1939
 
332
- -
1940
+ - `Void`
333
1941
 
334
1942
 
335
1943
 
336
1944
 
337
- ### dist/filters/adapters/adaptFilterData.js
1945
+ ### dist/filters/services/UChartApi.js
338
1946
 
339
1947
 
340
- #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
1948
+ #### this.getChartResult(config, uFilter, filterLogic, chartSettings)
341
1949
 
342
- Checks and adapts the v2.0 Filter Data Structure to the v2.1
1950
+ Gets a promise with a resulting data
343
1951
 
344
1952
 
345
1953
 
@@ -348,9 +1956,10 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
348
1956
 
349
1957
  | Name | Type | Description | |
350
1958
  | ---- | ---- | ----------- | -------- |
351
- | filterData | | The filter data structure. Accepts both v2.1 or v2.0 | &nbsp; |
352
- | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | &nbsp; |
353
- | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | &nbsp; |
1959
+ | config | | the config | &nbsp; |
1960
+ | uFilter | | The filter Builder filter | &nbsp; |
1961
+ | filterLogic | | Additional filter logic to apply in the preview | &nbsp; |
1962
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
354
1963
 
355
1964
 
356
1965
 
@@ -358,18 +1967,86 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
358
1967
  ##### Returns
359
1968
 
360
1969
 
361
- - A new filter data structure v2.1
1970
+ - a promise with a resulting data
362
1971
 
363
1972
 
364
1973
 
1974
+ #### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
365
1975
 
366
- ### dist/filters/adapters/adaptFilterValues.js
1976
+ Gets request body structure
367
1977
 
368
1978
 
369
- #### adaptFilterValues(filter)
370
1979
 
371
- [TODO: For 2022, eliminate this adapter]
372
- Gets an adapted filter value array. Validates the enabled property and sets
1980
+
1981
+ ##### Parameters
1982
+
1983
+ | Name | Type | Description | |
1984
+ | ---- | ---- | ----------- | -------- |
1985
+ | uFilter | | The filter Builder filter | &nbsp; |
1986
+ | filterLogic | | Additional filter logic to apply in the preview | &nbsp; |
1987
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
1988
+
1989
+
1990
+
1991
+
1992
+ ##### Returns
1993
+
1994
+
1995
+ - the request body structure
1996
+
1997
+
1998
+
1999
+ #### this._getChartBody(uFilter, chartSettings)
2000
+
2001
+ Gets chart body structure
2002
+
2003
+
2004
+
2005
+
2006
+ ##### Parameters
2007
+
2008
+ | Name | Type | Description | |
2009
+ | ---- | ---- | ----------- | -------- |
2010
+ | uFilter | | The filter Builder filter | &nbsp; |
2011
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
2012
+
2013
+
2014
+
2015
+
2016
+ ##### Returns
2017
+
2018
+
2019
+ - the chart body structure
2020
+
2021
+
2022
+
2023
+ #### this._getDimensionsBody(uFilter, chartSettings)
2024
+
2025
+ Gets dimension body structure
2026
+
2027
+
2028
+
2029
+
2030
+ ##### Parameters
2031
+
2032
+ | Name | Type | Description | |
2033
+ | ---- | ---- | ----------- | -------- |
2034
+ | uFilter | | The filter Builder filter | &nbsp; |
2035
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
2036
+
2037
+
2038
+
2039
+
2040
+ ##### Returns
2041
+
2042
+
2043
+ - the dimension body structure
2044
+
2045
+
2046
+
2047
+ #### this._getMaxDataPoints(column, chartSettings)
2048
+
2049
+ Gets max data point number
373
2050
 
374
2051
 
375
2052
 
@@ -378,7 +2055,8 @@ Gets an adapted filter value array. Validates the enabled property and sets
378
2055
 
379
2056
  | Name | Type | Description | |
380
2057
  | ---- | ---- | ----------- | -------- |
381
- | filter | | The filter | &nbsp; |
2058
+ | column | | The column to filter | &nbsp; |
2059
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
382
2060
 
383
2061
 
384
2062
 
@@ -386,17 +2064,13 @@ Gets an adapted filter value array. Validates the enabled property and sets
386
2064
  ##### Returns
387
2065
 
388
2066
 
389
- - A new value array with the filled properties.
390
-
391
-
2067
+ - max data point number
392
2068
 
393
2069
 
394
- ### dist/filters/adapters/FDToFlatUI.js
395
-
396
2070
 
397
- #### FDToFlatUI(filterData, datasetsInfo)
2071
+ #### this._getSortOption(column)
398
2072
 
399
- Generates a Flattened UI filter structure from Filter Data structure.
2073
+ Gets sort option structure
400
2074
 
401
2075
 
402
2076
 
@@ -405,8 +2079,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
405
2079
 
406
2080
  | Name | Type | Description | |
407
2081
  | ---- | ---- | ----------- | -------- |
408
- | filterData | | The filter data object. | &nbsp; |
409
- | datasetsInfo | | Collection of datasets information | &nbsp; |
2082
+ | column | | The column to filter | &nbsp; |
410
2083
 
411
2084
 
412
2085
 
@@ -414,13 +2087,13 @@ Generates a Flattened UI filter structure from Filter Data structure.
414
2087
  ##### Returns
415
2088
 
416
2089
 
417
- - a flattened UI filters array
2090
+ - sort option structure
418
2091
 
419
2092
 
420
2093
 
421
- #### FD21ToFlatUI(scopes, datasetsInfo)
2094
+ #### this._getSummariesBody(uFilter)
422
2095
 
423
- Generates a Filter Builder Structure from the Filter Data structure v2.1
2096
+ Gets summaries body structure
424
2097
 
425
2098
 
426
2099
 
@@ -429,8 +2102,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
429
2102
 
430
2103
  | Name | Type | Description | |
431
2104
  | ---- | ---- | ----------- | -------- |
432
- | scopes | | The filter scope section | &nbsp; |
433
- | datasetsInfo | | Collection of datasets information | &nbsp; |
2105
+ | uFilter | | The filter Builder filter | &nbsp; |
434
2106
 
435
2107
 
436
2108
 
@@ -438,17 +2110,13 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
438
2110
  ##### Returns
439
2111
 
440
2112
 
441
- - a flattened UI filters array
442
-
443
-
2113
+ - summaries body structure
444
2114
 
445
2115
 
446
- ### dist/filters/adapters/flatUIToFD.js
447
-
448
2116
 
449
- #### flatUIToFD(uFilters, version)
2117
+ #### this._refineBodies(bodies, uFilter)
450
2118
 
451
- Generates a filter data structure from the flatttened UI filters.
2119
+ Refines the body structure
452
2120
 
453
2121
 
454
2122
 
@@ -457,8 +2125,8 @@ Generates a filter data structure from the flatttened UI filters.
457
2125
 
458
2126
  | Name | Type | Description | |
459
2127
  | ---- | ---- | ----------- | -------- |
460
- | uFilters | | Array of flattened filters from UI | &nbsp; |
461
- | version | | Tag for the version of the filter data structure | &nbsp; |
2128
+ | bodies | | The body structure | &nbsp; |
2129
+ | uFilter | | The filter Builder filter | &nbsp; |
462
2130
 
463
2131
 
464
2132
 
@@ -466,14 +2134,13 @@ Generates a filter data structure from the flatttened UI filters.
466
2134
  ##### Returns
467
2135
 
468
2136
 
469
- - a Filter Data.
2137
+ - the body structure
470
2138
 
471
2139
 
472
2140
 
473
- #### buildScopes(fbFilters)
2141
+ #### this._getValidationType(column, vaildator)
474
2142
 
475
- Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
476
- Also, adds and organizes filters by datasets
2143
+ Gets the validation type for the preview request
477
2144
 
478
2145
 
479
2146
 
@@ -482,7 +2149,8 @@ Also, adds and organizes filters by datasets
482
2149
 
483
2150
  | Name | Type | Description | |
484
2151
  | ---- | ---- | ----------- | -------- |
485
- | fbFilters | | Array of flat filters from UI | &nbsp; |
2152
+ | column | | The column to filter | &nbsp; |
2153
+ | vaildator | | Validator Type | &nbsp; |
486
2154
 
487
2155
 
488
2156
 
@@ -490,13 +2158,13 @@ Also, adds and organizes filters by datasets
490
2158
  ##### Returns
491
2159
 
492
2160
 
493
- - an array of scopes structure.
2161
+ - the validator type for the preview request
494
2162
 
495
2163
 
496
2164
 
497
- #### buildScope(uFilter)
2165
+ #### this._getDataFromResponse(response, uFilter)
498
2166
 
499
- Gets an scope structure for the filter data
2167
+ Gets the Data from preview Response
500
2168
 
501
2169
 
502
2170
 
@@ -505,7 +2173,8 @@ Gets an scope structure for the filter data
505
2173
 
506
2174
  | Name | Type | Description | |
507
2175
  | ---- | ---- | ----------- | -------- |
508
- | uFilter | | UI structure filter | &nbsp; |
2176
+ | response | | The preview presponse | &nbsp; |
2177
+ | uFilter | | The filter Builder filter | &nbsp; |
509
2178
 
510
2179
 
511
2180
 
@@ -513,13 +2182,13 @@ Gets an scope structure for the filter data
513
2182
  ##### Returns
514
2183
 
515
2184
 
516
- - an scope structure
2185
+ - The resulting data
517
2186
 
518
2187
 
519
2188
 
520
- #### buildDataset(uFilter)
2189
+ #### this._getResponseSummaries(records, values)
521
2190
 
522
- Gets an dataset structure for the filter data
2191
+ Gets summaries from preview response
523
2192
 
524
2193
 
525
2194
 
@@ -528,7 +2197,8 @@ Gets an dataset structure for the filter data
528
2197
 
529
2198
  | Name | Type | Description | |
530
2199
  | ---- | ---- | ----------- | -------- |
531
- | uFilter | | a UI structure filter | &nbsp; |
2200
+ | records | | The data from preview response | &nbsp; |
2201
+ | values | | The values from the preview response | &nbsp; |
532
2202
 
533
2203
 
534
2204
 
@@ -536,22 +2206,19 @@ Gets an dataset structure for the filter data
536
2206
  ##### Returns
537
2207
 
538
2208
 
539
- - an dataset structure
2209
+ - the sumaries
540
2210
 
541
2211
 
542
2212
 
543
- #### buildFilter(uFilter)
544
2213
 
545
- Gets an filter structure for the filter data
2214
+ ### dist/filters/services/UChartPaginationApi.js
546
2215
 
547
2216
 
2217
+ #### this.getAfterKey()
548
2218
 
2219
+ Gets afterKey object
549
2220
 
550
- ##### Parameters
551
2221
 
552
- | Name | Type | Description | |
553
- | ---- | ---- | ----------- | -------- |
554
- | uFilter | | a UI structure filter | &nbsp; |
555
2222
 
556
2223
 
557
2224
 
@@ -559,17 +2226,13 @@ Gets an filter structure for the filter data
559
2226
  ##### Returns
560
2227
 
561
2228
 
562
- - an filter structure
563
-
564
-
565
-
2229
+ -
566
2230
 
567
- ### dist/filters/adapters/flatUIToLogic.js
568
2231
 
569
2232
 
570
- #### flatUIToLogic(uFilter)
2233
+ #### this.getChartResult(config, uFilter, filterLogic, chartSettings)
571
2234
 
572
- Generates a Logic structure from flattened UI filters
2235
+ Gets a promise with a resulting data
573
2236
 
574
2237
 
575
2238
 
@@ -578,7 +2241,10 @@ Generates a Logic structure from flattened UI filters
578
2241
 
579
2242
  | Name | Type | Description | |
580
2243
  | ---- | ---- | ----------- | -------- |
581
- | uFilter | | Array of flat filters from UI | &nbsp; |
2244
+ | config | | the config | &nbsp; |
2245
+ | uFilter | | The filter Builder filter | &nbsp; |
2246
+ | filterLogic | | Additional filter logic to apply in the preview | &nbsp; |
2247
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
582
2248
 
583
2249
 
584
2250
 
@@ -586,17 +2252,13 @@ Generates a Logic structure from flattened UI filters
586
2252
  ##### Returns
587
2253
 
588
2254
 
589
- - The logic structure
590
-
591
-
2255
+ - a promise with a resulting data
592
2256
 
593
2257
 
594
- ### dist/filters/adapters/flatUIToOldLogic.js
595
-
596
2258
 
597
- #### flatUIToOldLogic(uFilters)
2259
+ #### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
598
2260
 
599
- Generates a Logic structure from flattened UI filters
2261
+ Gets request body structure
600
2262
 
601
2263
 
602
2264
 
@@ -605,7 +2267,9 @@ Generates a Logic structure from flattened UI filters
605
2267
 
606
2268
  | Name | Type | Description | |
607
2269
  | ---- | ---- | ----------- | -------- |
608
- | uFilters | | Array of flat filters from UI | &nbsp; |
2270
+ | uFilter | | The filter Builder filter | &nbsp; |
2271
+ | filterLogic | | Additional filter logic to apply in the preview | &nbsp; |
2272
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
609
2273
 
610
2274
 
611
2275
 
@@ -613,17 +2277,13 @@ Generates a Logic structure from flattened UI filters
613
2277
  ##### Returns
614
2278
 
615
2279
 
616
- - The logic structure
617
-
618
-
2280
+ - the request body structure
619
2281
 
620
2282
 
621
- ### dist/filters/adapters/flatUIToUI.js
622
-
623
2283
 
624
- #### flatUIToUI(uFilters, version)
2284
+ #### this._getDimensionsBody(uFilter)
625
2285
 
626
- Generates a UI filter data structure from the flatttened UI filters.
2286
+ Gets dimension body structure
627
2287
 
628
2288
 
629
2289
 
@@ -632,8 +2292,7 @@ Generates a UI filter data structure from the flatttened UI filters.
632
2292
 
633
2293
  | Name | Type | Description | |
634
2294
  | ---- | ---- | ----------- | -------- |
635
- | uFilters | | Array of flattened filters from UI | &nbsp; |
636
- | version | | Tag for the version of the filter data structure | &nbsp; |
2295
+ | uFilter | | The filter Builder filter | &nbsp; |
637
2296
 
638
2297
 
639
2298
 
@@ -641,14 +2300,13 @@ Generates a UI filter data structure from the flatttened UI filters.
641
2300
  ##### Returns
642
2301
 
643
2302
 
644
- - a UI Filter Data.
2303
+ - the dimension body structure
645
2304
 
646
2305
 
647
2306
 
648
- #### buildScopes(fbFilters)
2307
+ #### this._getDimensionsBodyAdapter(dimensions)
649
2308
 
650
- Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
651
- Also, adds and organizes filters by datasets
2309
+ Get a dimension body structure foor pagination endpoint
652
2310
 
653
2311
 
654
2312
 
@@ -657,7 +2315,7 @@ Also, adds and organizes filters by datasets
657
2315
 
658
2316
  | Name | Type | Description | |
659
2317
  | ---- | ---- | ----------- | -------- |
660
- | fbFilters | | Array of flat filters from UI | &nbsp; |
2318
+ | dimensions | | | &nbsp; |
661
2319
 
662
2320
 
663
2321
 
@@ -665,13 +2323,13 @@ Also, adds and organizes filters by datasets
665
2323
  ##### Returns
666
2324
 
667
2325
 
668
- - an array of scopes structure.
2326
+ -
669
2327
 
670
2328
 
671
2329
 
672
- #### buildScope(uFilter)
2330
+ #### this._getMaxDataPoints(column, chartSettings)
673
2331
 
674
- Gets an scope structure for the UI filter data
2332
+ Gets max data point number
675
2333
 
676
2334
 
677
2335
 
@@ -680,7 +2338,8 @@ Gets an scope structure for the UI filter data
680
2338
 
681
2339
  | Name | Type | Description | |
682
2340
  | ---- | ---- | ----------- | -------- |
683
- | uFilter | | UI structure filter | &nbsp; |
2341
+ | column | | The column to filter | &nbsp; |
2342
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
684
2343
 
685
2344
 
686
2345
 
@@ -688,13 +2347,13 @@ Gets an scope structure for the UI filter data
688
2347
  ##### Returns
689
2348
 
690
2349
 
691
- - an scope structure
2350
+ - max data point number
692
2351
 
693
2352
 
694
2353
 
695
- #### buildDataset(uFilter)
2354
+ #### this._getSortOption(column)
696
2355
 
697
- Gets an dataset structure for the UI filter data
2356
+ Gets sort option structure
698
2357
 
699
2358
 
700
2359
 
@@ -703,7 +2362,7 @@ Gets an dataset structure for the UI filter data
703
2362
 
704
2363
  | Name | Type | Description | |
705
2364
  | ---- | ---- | ----------- | -------- |
706
- | uFilter | | a UI structure filter | &nbsp; |
2365
+ | column | | The column to filter | &nbsp; |
707
2366
 
708
2367
 
709
2368
 
@@ -711,13 +2370,13 @@ Gets an dataset structure for the UI filter data
711
2370
  ##### Returns
712
2371
 
713
2372
 
714
- - an dataset structure
2373
+ - sort option structure
715
2374
 
716
2375
 
717
2376
 
718
- #### buildFilter(uFilter)
2377
+ #### this._getSummariesBody(uFilter)
719
2378
 
720
- Gets an filter structure for the UI filter data
2379
+ Gets summaries body structure
721
2380
 
722
2381
 
723
2382
 
@@ -726,7 +2385,7 @@ Gets an filter structure for the UI filter data
726
2385
 
727
2386
  | Name | Type | Description | |
728
2387
  | ---- | ---- | ----------- | -------- |
729
- | uFilter | | a UI structure filter | &nbsp; |
2388
+ | uFilter | | The filter Builder filter | &nbsp; |
730
2389
 
731
2390
 
732
2391
 
@@ -734,17 +2393,13 @@ Gets an filter structure for the UI filter data
734
2393
  ##### Returns
735
2394
 
736
2395
 
737
- - an filter structure
738
-
739
-
740
-
2396
+ - summaries body structure
741
2397
 
742
- ### dist/filters/adapters/logicToFD.js
743
2398
 
744
2399
 
745
- #### logicToFD(filterData, version)
2400
+ #### this._refineBodies(bodies, uFilter)
746
2401
 
747
- Generates a filter data structure from the old logic structure (v2.0).
2402
+ Refines the body structure
748
2403
 
749
2404
 
750
2405
 
@@ -753,8 +2408,8 @@ Generates a filter data structure from the old logic structure (v2.0).
753
2408
 
754
2409
  | Name | Type | Description | |
755
2410
  | ---- | ---- | ----------- | -------- |
756
- | filterData | | The old filter data structure with logic (v2.0) | &nbsp; |
757
- | version | | Tag for the version of the filter data structure | &nbsp; |
2411
+ | bodies | | The body structure | &nbsp; |
2412
+ | uFilter | | The filter Builder filter | &nbsp; |
758
2413
 
759
2414
 
760
2415
 
@@ -762,17 +2417,13 @@ Generates a filter data structure from the old logic structure (v2.0).
762
2417
  ##### Returns
763
2418
 
764
2419
 
765
- - a Filter Data.
766
-
767
-
2420
+ - the body structure
768
2421
 
769
2422
 
770
- ### dist/filters/adapters/logicToFlatUI.js
771
-
772
2423
 
773
- #### logicToFlatUI(logics)
2424
+ #### this._getValidationType(column, vaildator)
774
2425
 
775
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
2426
+ Gets the validation type for the preview request
776
2427
 
777
2428
 
778
2429
 
@@ -781,7 +2432,8 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
781
2432
 
782
2433
  | Name | Type | Description | |
783
2434
  | ---- | ---- | ----------- | -------- |
784
- | logics | | The old logic structure (v2.0) | &nbsp; |
2435
+ | column | | The column to filter | &nbsp; |
2436
+ | vaildator | | Validator Type | &nbsp; |
785
2437
 
786
2438
 
787
2439
 
@@ -789,13 +2441,13 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
789
2441
  ##### Returns
790
2442
 
791
2443
 
792
- - The Flattened UI Filters array
2444
+ - the validator type for the preview request
793
2445
 
794
2446
 
795
2447
 
796
- #### getFilter(filters, filter, getIndex)
2448
+ #### this._getDataFromResponse(response, uFilter)
797
2449
 
798
- Get the filter or the index of the given array, validating an old filter structure.
2450
+ Gets the Data from preview Response
799
2451
 
800
2452
 
801
2453
 
@@ -804,9 +2456,8 @@ Get the filter or the index of the given array, validating an old filter structu
804
2456
 
805
2457
  | Name | Type | Description | |
806
2458
  | ---- | ---- | ----------- | -------- |
807
- | filters | | The array of UI filters | &nbsp; |
808
- | filter | | The old logic structure filter | &nbsp; |
809
- | getIndex | | Determines if the index or returns the UI filter object | &nbsp; |
2459
+ | response | | The preview presponse | &nbsp; |
2460
+ | uFilter | | The filter Builder filter | &nbsp; |
810
2461
 
811
2462
 
812
2463
 
@@ -814,13 +2465,13 @@ Get the filter or the index of the given array, validating an old filter structu
814
2465
  ##### Returns
815
2466
 
816
2467
 
817
- - the index or the UI filter object
2468
+ - The resulting data
818
2469
 
819
2470
 
820
2471
 
821
- #### refineRankingValues(values, uiValues)
2472
+ #### this._getResponseSummaries(records, values)
822
2473
 
823
- Refines the values of the Ranking column type.
2474
+ Gets summaries from preview response
824
2475
 
825
2476
 
826
2477
 
@@ -829,8 +2480,8 @@ Refines the values of the Ranking column type.
829
2480
 
830
2481
  | Name | Type | Description | |
831
2482
  | ---- | ---- | ----------- | -------- |
832
- | values | | the Array of Ranking values | &nbsp; |
833
- | uiValues | | Object with additional info about the values of the filter. | &nbsp; |
2483
+ | records | | The data from preview response | &nbsp; |
2484
+ | values | | The values from the preview response | &nbsp; |
834
2485
 
835
2486
 
836
2487
 
@@ -838,17 +2489,13 @@ Refines the values of the Ranking column type.
838
2489
  ##### Returns
839
2490
 
840
2491
 
841
- - the array of Ranking values
842
-
843
-
844
-
2492
+ - the sumaries
845
2493
 
846
- ### dist/filters/adapters/logicToUI.js
847
2494
 
848
2495
 
849
- #### logicToUI(uFilters, datasetsInfo)
2496
+ #### this.refineAfterkey(props)
850
2497
 
851
- Generates a UI filter structure from the old logic structure (v2.0).
2498
+ Refines the afterKey object
852
2499
 
853
2500
 
854
2501
 
@@ -857,8 +2504,7 @@ Generates a UI filter structure from the old logic structure (v2.0).
857
2504
 
858
2505
  | Name | Type | Description | |
859
2506
  | ---- | ---- | ----------- | -------- |
860
- | uFilters | | Array of filters from old logic structure | &nbsp; |
861
- | datasetsInfo | | Collection of datasets information | &nbsp; |
2507
+ | props | | | &nbsp; |
862
2508
 
863
2509
 
864
2510
 
@@ -866,17 +2512,13 @@ Generates a UI filter structure from the old logic structure (v2.0).
866
2512
  ##### Returns
867
2513
 
868
2514
 
869
- - a UI Filter Data.
870
-
871
-
872
-
2515
+ - `Void`
873
2516
 
874
- ### dist/filters/adapters/transformFilters.js
875
2517
 
876
2518
 
877
- #### transformFilters(oldFiltersObj, section)
2519
+ #### this.setAfterKey(afterKey)
878
2520
 
879
- Transform the old filters structure into the new one
2521
+ Sets the afterKey object
880
2522
 
881
2523
 
882
2524
 
@@ -885,77 +2527,44 @@ Transform the old filters structure into the new one
885
2527
 
886
2528
  | Name | Type | Description | |
887
2529
  | ---- | ---- | ----------- | -------- |
888
- | oldFiltersObj | `Object` | an object with the old filters structure | &nbsp; |
889
- | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | &nbsp; |
2530
+ | afterKey | | the afterKey object | &nbsp; |
890
2531
 
891
2532
 
892
2533
 
893
2534
 
894
- ##### Examples
2535
+ ##### Returns
895
2536
 
896
- ```javascript
897
2537
 
898
- const oldPreferenceFilters = {
899
- "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
900
- "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
901
- "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
902
- "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
903
- "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
904
- "formulaId": null,
905
- "panelId": null,
906
- "values": [
907
- {
908
- "EQUALS": [
909
- {
910
- "id": "AK4M8UV2a0",
911
- "value": "A",
912
- "enabled": true,
913
- "imageUrl": null
914
- },
915
- {
916
- "id": "AK4M8UV2a1",
917
- "value": "B",
918
- "enabled": true,
919
- "imageUrl": null
920
- }
921
- ]
922
- }
923
- ],
924
- "bucketId": null,
925
- "text": "MC",
926
- "title": "MC",
927
- "type": "SINGLE_CHOICE",
928
- "qid": "AK4M8UV2",
929
- "dataset": {
930
- "sourceid": "xYOQAdpqT",
931
- "name": "Form All Questions",
932
- "qrveyid": "xYOQAdpqT",
933
- "text": "Form All Questions",
934
- "linkid": 0
935
- },
936
- "enabled": true,
937
- "linked": null
938
- }
939
- };
2538
+ - `Void`
940
2539
 
941
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
942
- ```
943
2540
 
944
2541
 
945
- ##### Returns
2542
+ #### this.setProps(uFilter)
946
2543
 
2544
+ Sets the Filter Builder Filter
947
2545
 
948
- - `Object` an object with the new filters structure
949
2546
 
950
2547
 
951
2548
 
2549
+ ##### Parameters
952
2550
 
953
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
2551
+ | Name | Type | Description | |
2552
+ | ---- | ---- | ----------- | -------- |
2553
+ | uFilter | | | &nbsp; |
954
2554
 
955
2555
 
956
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
957
2556
 
958
- [TODO: Make a proper description for this function]
2557
+
2558
+ ##### Returns
2559
+
2560
+
2561
+ - `Void`
2562
+
2563
+
2564
+
2565
+ #### this.areColumnsEquals(column1, column2)
2566
+
2567
+ Checks if two filter columns are the same.
959
2568
 
960
2569
 
961
2570
 
@@ -964,9 +2573,8 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
964
2573
 
965
2574
  | Name | Type | Description | |
966
2575
  | ---- | ---- | ----------- | -------- |
967
- | chartSettings | | Chart Settings for the Filter Builder | &nbsp; |
968
- | scopes | | | &nbsp; |
969
- | currentScope | | | &nbsp; |
2576
+ | column1 | | | &nbsp; |
2577
+ | column2 | | | &nbsp; |
970
2578
 
971
2579
 
972
2580
 
@@ -974,17 +2582,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
974
2582
  ##### Returns
975
2583
 
976
2584
 
977
- -
2585
+ - True: Columns are equal; False: Columns are not equal
978
2586
 
979
2587
 
980
2588
 
981
2589
 
982
- ### dist/filters/helpers/getAvailableScopes.js
2590
+ ### dist/general/array/delete.js
983
2591
 
984
2592
 
985
- #### getAvailableScopes(config)
2593
+ #### ArrayDelete(array, index)
986
2594
 
987
- Gets Scopes/Scope IDs by given IDs
2595
+ Inmutable Array Item deletion
988
2596
 
989
2597
 
990
2598
 
@@ -993,7 +2601,8 @@ Gets Scopes/Scope IDs by given IDs
993
2601
 
994
2602
  | Name | Type | Description | |
995
2603
  | ---- | ---- | ----------- | -------- |
996
- | config | | given Differnts IDs in order set a available scope | &nbsp; |
2604
+ | array | `Array` | a collection of items to delete | &nbsp; |
2605
+ | index | `Number` | the position of the item to delete | &nbsp; |
997
2606
 
998
2607
 
999
2608
 
@@ -1001,17 +2610,20 @@ Gets Scopes/Scope IDs by given IDs
1001
2610
  ##### Returns
1002
2611
 
1003
2612
 
1004
- - a Scopes/Scope IDs array
2613
+ - a new Array or the given parameter when is empty or not an array
1005
2614
 
1006
2615
 
1007
2616
 
1008
2617
 
1009
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
2618
+ ### dist/general/array/filterNestedTree.js
1010
2619
 
1011
2620
 
1012
- #### getAvailableScopesIDsByConfig(config)
2621
+ #### filterNestedTree(arr, childArrKey, condition)
1013
2622
 
1014
- Gets the Scopes IDS for the Available Scope function by any config
2623
+ Filters a nested tree array by a custom condition on the last child node
2624
+ - If the given arguments are not valid, the function returns the first argument.
2625
+ - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
2626
+ - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1015
2627
 
1016
2628
 
1017
2629
 
@@ -1020,7 +2632,9 @@ Gets the Scopes IDS for the Available Scope function by any config
1020
2632
 
1021
2633
  | Name | Type | Description | |
1022
2634
  | ---- | ---- | ----------- | -------- |
1023
- | config | | any config | &nbsp; |
2635
+ | arr | | nested tree array | &nbsp; |
2636
+ | childArrKey | | property representing the children array on the nested tree | &nbsp; |
2637
+ | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
1024
2638
 
1025
2639
 
1026
2640
 
@@ -1028,17 +2642,17 @@ Gets the Scopes IDS for the Available Scope function by any config
1028
2642
  ##### Returns
1029
2643
 
1030
2644
 
1031
- - a Available Scope IDS config
2645
+ - array filtered
1032
2646
 
1033
2647
 
1034
2648
 
1035
2649
 
1036
- ### dist/filters/helpers/getScopesByHierarchy.js
2650
+ ### dist/general/array/flattenDeep.js
1037
2651
 
1038
2652
 
1039
- #### getScopesByHierarchy(scopes, currentScope)
2653
+ #### flattenDeep(arr)
1040
2654
 
1041
- [TODO: Make a description for this]
2655
+ Flat deeply an array
1042
2656
 
1043
2657
 
1044
2658
 
@@ -1047,8 +2661,7 @@ Gets the Scopes IDS for the Available Scope function by any config
1047
2661
 
1048
2662
  | Name | Type | Description | |
1049
2663
  | ---- | ---- | ----------- | -------- |
1050
- | scopes | | the collection of Scopes/Scope IDs | &nbsp; |
1051
- | currentScope | | Current scope type | &nbsp; |
2664
+ | arr | | Array to flat deeply | &nbsp; |
1052
2665
 
1053
2666
 
1054
2667
 
@@ -1056,17 +2669,17 @@ Gets the Scopes IDS for the Available Scope function by any config
1056
2669
  ##### Returns
1057
2670
 
1058
2671
 
1059
- - A new array of Scopes/Scope IDs
2672
+ - flatten array
1060
2673
 
1061
2674
 
1062
2675
 
1063
2676
 
1064
- ### dist/general/function/debounce.js
2677
+ ### dist/general/array/getArrayByProperty.js
1065
2678
 
1066
2679
 
1067
- #### debounce(fn, time)
2680
+ #### getArrayByProperty(arr, property)
1068
2681
 
1069
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
2682
+ Gets a collection of object values by the given property
1070
2683
 
1071
2684
 
1072
2685
 
@@ -1075,8 +2688,8 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1075
2688
 
1076
2689
  | Name | Type | Description | |
1077
2690
  | ---- | ---- | ----------- | -------- |
1078
- | fn | `Function` | original Function | &nbsp; |
1079
- | time | `Number` | default 500ms | &nbsp; |
2691
+ | arr | | An array | &nbsp; |
2692
+ | property | | the property to get the value collection | &nbsp; |
1080
2693
 
1081
2694
 
1082
2695
 
@@ -1084,17 +2697,17 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1084
2697
  ##### Returns
1085
2698
 
1086
2699
 
1087
- - `Function` debounced functions
2700
+ - a collection of values by property
1088
2701
 
1089
2702
 
1090
2703
 
1091
2704
 
1092
- ### dist/general/function/throttled.js
2705
+ ### dist/general/array/getFirstIndexFromArray.js
1093
2706
 
1094
2707
 
1095
- #### throttled(fn, time)
2708
+ #### getFirstIndexFromArray(array, callback)
1096
2709
 
1097
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
2710
+ Gets the first index from the array by a callback condition
1098
2711
 
1099
2712
 
1100
2713
 
@@ -1103,8 +2716,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1103
2716
 
1104
2717
  | Name | Type | Description | |
1105
2718
  | ---- | ---- | ----------- | -------- |
1106
- | fn | `Function` | original Function | &nbsp; |
1107
- | time | `Number` | default 500ms | &nbsp; |
2719
+ | array | | | &nbsp; |
2720
+ | callback | | function callback | &nbsp; |
1108
2721
 
1109
2722
 
1110
2723
 
@@ -1112,17 +2725,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1112
2725
  ##### Returns
1113
2726
 
1114
2727
 
1115
- - `Function` throttled function
2728
+ - the first index of the array. -1 when the condition is not satisfied
1116
2729
 
1117
2730
 
1118
2731
 
1119
2732
 
1120
- ### dist/general/array/delete.js
2733
+ ### dist/general/array/getLastIndexFromArray.js
1121
2734
 
1122
2735
 
1123
- #### ArrayDelete(array, index)
2736
+ #### getLastIndexFromArray(array, callback)
1124
2737
 
1125
- Inmutable Array Item deletion
2738
+ Gets the last index from the array by a callback condition
1126
2739
 
1127
2740
 
1128
2741
 
@@ -1131,8 +2744,8 @@ Inmutable Array Item deletion
1131
2744
 
1132
2745
  | Name | Type | Description | |
1133
2746
  | ---- | ---- | ----------- | -------- |
1134
- | array | `Array` | a collection of items to delete | &nbsp; |
1135
- | index | `Number` | the position of the item to delete | &nbsp; |
2747
+ | array | | | &nbsp; |
2748
+ | callback | | function callback | &nbsp; |
1136
2749
 
1137
2750
 
1138
2751
 
@@ -1140,17 +2753,19 @@ Inmutable Array Item deletion
1140
2753
  ##### Returns
1141
2754
 
1142
2755
 
1143
- - a new Array or the given parameter when is empty or not an array
2756
+ - the last index of the array. -1 when the condition is not satisfied
1144
2757
 
1145
2758
 
1146
2759
 
1147
2760
 
1148
- ### dist/general/array/flattenDeep.js
2761
+ ### dist/general/array/getUniqueArray.js
1149
2762
 
1150
2763
 
1151
- #### flattenDeep(arr)
2764
+ #### getUniqueArray(arr, prop)
1152
2765
 
1153
- Flat deeply an array
2766
+ Remove duplicated items from a given array by property name
2767
+ // 1. Store the keys of the unique objects
2768
+ // 2. Eliminate the dead keys & store unique objects
1154
2769
 
1155
2770
 
1156
2771
 
@@ -1159,7 +2774,8 @@ Flat deeply an array
1159
2774
 
1160
2775
  | Name | Type | Description | |
1161
2776
  | ---- | ---- | ----------- | -------- |
1162
- | arr | | Array to flat deeply | &nbsp; |
2777
+ | arr | | The array | &nbsp; |
2778
+ | prop | | Property name to search duplicated values | &nbsp; |
1163
2779
 
1164
2780
 
1165
2781
 
@@ -1167,17 +2783,17 @@ Flat deeply an array
1167
2783
  ##### Returns
1168
2784
 
1169
2785
 
1170
- - flatten array
2786
+ - Array without duplicated items.
1171
2787
 
1172
2788
 
1173
2789
 
1174
2790
 
1175
- ### dist/general/array/getFirstIndexFromArray.js
2791
+ ### dist/general/function/debounce.js
1176
2792
 
1177
2793
 
1178
- #### getFirstIndexFromArray(array, callback)
2794
+ #### debounce(fn, time)
1179
2795
 
1180
- Gets the first index from the array by a callback condition
2796
+ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1181
2797
 
1182
2798
 
1183
2799
 
@@ -1186,8 +2802,8 @@ Gets the first index from the array by a callback condition
1186
2802
 
1187
2803
  | Name | Type | Description | |
1188
2804
  | ---- | ---- | ----------- | -------- |
1189
- | array | | | &nbsp; |
1190
- | callback | | function callback | &nbsp; |
2805
+ | fn | `Function` | original Function | &nbsp; |
2806
+ | time | `Number` | default 500ms | &nbsp; |
1191
2807
 
1192
2808
 
1193
2809
 
@@ -1195,17 +2811,17 @@ Gets the first index from the array by a callback condition
1195
2811
  ##### Returns
1196
2812
 
1197
2813
 
1198
- - the first index of the array. -1 when the condition is not satisfied
2814
+ - `Function` debounced functions
1199
2815
 
1200
2816
 
1201
2817
 
1202
2818
 
1203
- ### dist/general/array/getLastIndexFromArray.js
2819
+ ### dist/general/function/throttled.js
1204
2820
 
1205
2821
 
1206
- #### getLastIndexFromArray(array, callback)
2822
+ #### throttled(fn, time)
1207
2823
 
1208
- Gets the last index from the array by a callback condition
2824
+ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1209
2825
 
1210
2826
 
1211
2827
 
@@ -1214,8 +2830,8 @@ Gets the last index from the array by a callback condition
1214
2830
 
1215
2831
  | Name | Type | Description | |
1216
2832
  | ---- | ---- | ----------- | -------- |
1217
- | array | | | &nbsp; |
1218
- | callback | | function callback | &nbsp; |
2833
+ | fn | `Function` | original Function | &nbsp; |
2834
+ | time | `Number` | default 500ms | &nbsp; |
1219
2835
 
1220
2836
 
1221
2837
 
@@ -1223,20 +2839,18 @@ Gets the last index from the array by a callback condition
1223
2839
  ##### Returns
1224
2840
 
1225
2841
 
1226
- - the last index of the array. -1 when the condition is not satisfied
2842
+ - `Function` throttled function
1227
2843
 
1228
2844
 
1229
2845
 
1230
2846
 
1231
- ### dist/general/array/filterNestedTree.js
2847
+ ### dist/general/mix/compareDeep.js
1232
2848
 
1233
2849
 
1234
- #### filterNestedTree(arr, childArrKey, condition)
2850
+ #### compareDeep(object1, object2)
1235
2851
 
1236
- Filters a nested tree array by a custom condition on the last child node
1237
- - If the given arguments are not valid, the function returns the first argument.
1238
- - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1239
- - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
2852
+ Compares two objects to know if they are equals. Go across nested objects.
2853
+ Includes arrays in the comparison.
1240
2854
 
1241
2855
 
1242
2856
 
@@ -1245,9 +2859,8 @@ Filters a nested tree array by a custom condition on the last child node
1245
2859
 
1246
2860
  | Name | Type | Description | |
1247
2861
  | ---- | ---- | ----------- | -------- |
1248
- | arr | | nested tree array | &nbsp; |
1249
- | childArrKey | | property representing the children array on the nested tree | &nbsp; |
1250
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree | &nbsp; |
2862
+ | object1 | | First Object to compare | &nbsp; |
2863
+ | object2 | | Second Object to compare | &nbsp; |
1251
2864
 
1252
2865
 
1253
2866
 
@@ -1255,18 +2868,17 @@ Filters a nested tree array by a custom condition on the last child node
1255
2868
  ##### Returns
1256
2869
 
1257
2870
 
1258
- - array filtered
2871
+ - True: objects are equal. False: Objects are not equal. Undefined: invalid
1259
2872
 
1260
2873
 
1261
2874
 
1262
2875
 
1263
- ### dist/general/mix/compareDeep.js
2876
+ ### dist/general/mix/getTag.js
1264
2877
 
1265
2878
 
1266
- #### compareDeep(object1, object2)
2879
+ #### getTag(value)
1267
2880
 
1268
- Compares two objects to know if they are equals. Go across nested objects.
1269
- Includes arrays in the comparison.
2881
+ Gets the `toStringTag` of `value`.
1270
2882
 
1271
2883
 
1272
2884
 
@@ -1275,8 +2887,7 @@ Includes arrays in the comparison.
1275
2887
 
1276
2888
  | Name | Type | Description | |
1277
2889
  | ---- | ---- | ----------- | -------- |
1278
- | object1 | | First Object to compare | &nbsp; |
1279
- | object2 | | Second Object to compare | &nbsp; |
2890
+ | value | | The value to query. | &nbsp; |
1280
2891
 
1281
2892
 
1282
2893
 
@@ -1284,7 +2895,7 @@ Includes arrays in the comparison.
1284
2895
  ##### Returns
1285
2896
 
1286
2897
 
1287
- - True: objects are equal. False: Objects are not equal. Undefined: invalid
2898
+ - `string` Returns the `toStringTag`.
1288
2899
 
1289
2900
 
1290
2901
 
@@ -1374,33 +2985,6 @@ return a Promise that is resolved when the script is loaded
1374
2985
 
1375
2986
 
1376
2987
 
1377
- ### dist/general/mix/getTag.js
1378
-
1379
-
1380
- #### getTag(value)
1381
-
1382
- Gets the `toStringTag` of `value`.
1383
-
1384
-
1385
-
1386
-
1387
- ##### Parameters
1388
-
1389
- | Name | Type | Description | |
1390
- | ---- | ---- | ----------- | -------- |
1391
- | value | | The value to query. | &nbsp; |
1392
-
1393
-
1394
-
1395
-
1396
- ##### Returns
1397
-
1398
-
1399
- - `string` Returns the `toStringTag`.
1400
-
1401
-
1402
-
1403
-
1404
2988
  ### dist/general/mix/isEmpty.js
1405
2989
 
1406
2990
 
@@ -1545,6 +3129,33 @@ Gets the length of the given array.
1545
3129
 
1546
3130
 
1547
3131
 
3132
+ ### dist/general/string/capitalize.js
3133
+
3134
+
3135
+ #### capitalize(text)
3136
+
3137
+ Upper case the first letter of a given text
3138
+
3139
+
3140
+
3141
+
3142
+ ##### Parameters
3143
+
3144
+ | Name | Type | Description | |
3145
+ | ---- | ---- | ----------- | -------- |
3146
+ | text | `String` | | &nbsp; |
3147
+
3148
+
3149
+
3150
+
3151
+ ##### Returns
3152
+
3153
+
3154
+ - `String` a capitalized text
3155
+
3156
+
3157
+
3158
+
1548
3159
  ### dist/general/object/cloneDeep.js
1549
3160
 
1550
3161
 
@@ -1769,83 +3380,6 @@ and return a mapped object
1769
3380
 
1770
3381
 
1771
3382
 
1772
- ### dist/general/object/mergeDeep.js
1773
-
1774
-
1775
- #### mergeDeep(obj1, obj2, settings)
1776
-
1777
- Merges two objects into a new one.
1778
- The second given argument to the first given argument.
1779
-
1780
-
1781
-
1782
-
1783
- ##### Parameters
1784
-
1785
- | Name | Type | Description | |
1786
- | ---- | ---- | ----------- | -------- |
1787
- | obj1 | | The target object | &nbsp; |
1788
- | obj2 | | The object to be merged | &nbsp; |
1789
- | settings | | Object settings for this function | &nbsp; |
1790
-
1791
-
1792
-
1793
-
1794
- ##### Returns
1795
-
1796
-
1797
- - a new merged object
1798
-
1799
-
1800
-
1801
- #### isValid(obj1, obj2)
1802
-
1803
- Validates if the two arguments are objects
1804
-
1805
-
1806
-
1807
-
1808
- ##### Parameters
1809
-
1810
- | Name | Type | Description | |
1811
- | ---- | ---- | ----------- | -------- |
1812
- | obj1 | | The target object | &nbsp; |
1813
- | obj2 | | The object to be merged | &nbsp; |
1814
-
1815
-
1816
-
1817
-
1818
- ##### Returns
1819
-
1820
-
1821
- - true: they are valid; false: they are not
1822
-
1823
-
1824
-
1825
- #### getParamsToMergeDeep(settings)
1826
-
1827
- Validates and gets the settings with all set parameters.
1828
-
1829
-
1830
-
1831
-
1832
- ##### Parameters
1833
-
1834
- | Name | Type | Description | |
1835
- | ---- | ---- | ----------- | -------- |
1836
- | settings | | the settings object | &nbsp; |
1837
-
1838
-
1839
-
1840
-
1841
- ##### Returns
1842
-
1843
-
1844
- - a new settings object with all set parameters.
1845
-
1846
-
1847
-
1848
-
1849
3383
  ### dist/general/object/objectCopy.js
1850
3384
 
1851
3385
 
@@ -1902,40 +3436,13 @@ return a new Object excluding attributes in _props_ list
1902
3436
 
1903
3437
 
1904
3438
 
1905
- ### dist/general/object/pick.js
1906
-
1907
-
1908
- #### pick(baseObject, keys)
1909
-
1910
- return a new object just with attributes in _keys_ list
1911
-
1912
-
1913
-
1914
-
1915
- ##### Parameters
1916
-
1917
- | Name | Type | Description | |
1918
- | ---- | ---- | ----------- | -------- |
1919
- | baseObject | `Object` | base object | &nbsp; |
1920
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1921
-
1922
-
1923
-
1924
-
1925
- ##### Returns
1926
-
1927
-
1928
- - `Object` new object just with desired attributes
1929
-
1930
-
1931
-
1932
-
1933
- ### dist/general/object/serialize.js
3439
+ ### dist/general/object/mergeDeep.js
1934
3440
 
1935
3441
 
1936
- #### serialize(obj)
3442
+ #### mergeDeep(obj1, obj2, settings)
1937
3443
 
1938
- serialize object to url param
3444
+ Merges two objects into a new one.
3445
+ The second given argument to the first given argument.
1939
3446
 
1940
3447
 
1941
3448
 
@@ -1944,7 +3451,9 @@ serialize object to url param
1944
3451
 
1945
3452
  | Name | Type | Description | |
1946
3453
  | ---- | ---- | ----------- | -------- |
1947
- | obj | | - Object to be serialized | &nbsp; |
3454
+ | obj1 | | The target object | &nbsp; |
3455
+ | obj2 | | The object to be merged | &nbsp; |
3456
+ | settings | | Object settings for this function | &nbsp; |
1948
3457
 
1949
3458
 
1950
3459
 
@@ -1952,17 +3461,13 @@ serialize object to url param
1952
3461
  ##### Returns
1953
3462
 
1954
3463
 
1955
- - `Void`
1956
-
1957
-
1958
-
3464
+ - a new merged object
1959
3465
 
1960
- ### dist/general/string/capitalize.js
1961
3466
 
1962
3467
 
1963
- #### capitalize(text)
3468
+ #### isValid(obj1, obj2)
1964
3469
 
1965
- Upper case the first letter of a given text
3470
+ Validates if the two arguments are objects
1966
3471
 
1967
3472
 
1968
3473
 
@@ -1971,7 +3476,8 @@ Upper case the first letter of a given text
1971
3476
 
1972
3477
  | Name | Type | Description | |
1973
3478
  | ---- | ---- | ----------- | -------- |
1974
- | text | `String` | | &nbsp; |
3479
+ | obj1 | | The target object | &nbsp; |
3480
+ | obj2 | | The object to be merged | &nbsp; |
1975
3481
 
1976
3482
 
1977
3483
 
@@ -1979,17 +3485,13 @@ Upper case the first letter of a given text
1979
3485
  ##### Returns
1980
3486
 
1981
3487
 
1982
- - `String` a capitalized text
1983
-
1984
-
1985
-
3488
+ - true: they are valid; false: they are not
1986
3489
 
1987
- ### dist/dates/helpers/getDateByDateFormat.js
1988
3490
 
1989
3491
 
1990
- #### getDateByDateFormat(date, format, time)
3492
+ #### getParamsToMergeDeep(settings)
1991
3493
 
1992
- Gets a Date Object instance by a Date format
3494
+ Validates and gets the settings with all set parameters.
1993
3495
 
1994
3496
 
1995
3497
 
@@ -1998,9 +3500,7 @@ Gets a Date Object instance by a Date format
1998
3500
 
1999
3501
  | Name | Type | Description | |
2000
3502
  | ---- | ---- | ----------- | -------- |
2001
- | date | | String with a formatted date | &nbsp; |
2002
- | format | | The date format | &nbsp; |
2003
- | time | | flag to convert the formatted date to miliseconds | &nbsp; |
3503
+ | settings | | the settings object | &nbsp; |
2004
3504
 
2005
3505
 
2006
3506
 
@@ -2008,17 +3508,17 @@ Gets a Date Object instance by a Date format
2008
3508
  ##### Returns
2009
3509
 
2010
3510
 
2011
- - a Date object, milisecond time or the same value if date format does not match.
3511
+ - a new settings object with all set parameters.
2012
3512
 
2013
3513
 
2014
3514
 
2015
3515
 
2016
- ### dist/dates/helpers/getDateFormatByProperty.js
3516
+ ### dist/general/object/pick.js
2017
3517
 
2018
3518
 
2019
- #### getDateFormatByProperty(property)
3519
+ #### pick(baseObject, keys)
2020
3520
 
2021
- Gets the date format by the given property
3521
+ return a new object just with attributes in _keys_ list
2022
3522
 
2023
3523
 
2024
3524
 
@@ -2027,7 +3527,8 @@ Gets the date format by the given property
2027
3527
 
2028
3528
  | Name | Type | Description | |
2029
3529
  | ---- | ---- | ----------- | -------- |
2030
- | property | | The Column Property | &nbsp; |
3530
+ | baseObject | `Object` | base object | &nbsp; |
3531
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2031
3532
 
2032
3533
 
2033
3534
 
@@ -2035,17 +3536,17 @@ Gets the date format by the given property
2035
3536
  ##### Returns
2036
3537
 
2037
3538
 
2038
- - The date format
3539
+ - `Object` new object just with desired attributes
2039
3540
 
2040
3541
 
2041
3542
 
2042
3543
 
2043
- ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
3544
+ ### dist/general/object/serialize.js
2044
3545
 
2045
3546
 
2046
- #### getDateFormatRegularExpressionInArray(dateFormat)
3547
+ #### serialize(obj)
2047
3548
 
2048
- Gets an array of regular expressions by the given date format
3549
+ serialize object to url param
2049
3550
 
2050
3551
 
2051
3552
 
@@ -2054,7 +3555,7 @@ Gets an array of regular expressions by the given date format
2054
3555
 
2055
3556
  | Name | Type | Description | |
2056
3557
  | ---- | ---- | ----------- | -------- |
2057
- | dateFormat | | the date format | &nbsp; |
3558
+ | obj | | - Object to be serialized | &nbsp; |
2058
3559
 
2059
3560
 
2060
3561
 
@@ -2062,17 +3563,18 @@ Gets an array of regular expressions by the given date format
2062
3563
  ##### Returns
2063
3564
 
2064
3565
 
2065
- - an array of regular expressions
3566
+ - `Void`
2066
3567
 
2067
3568
 
2068
3569
 
2069
3570
 
2070
- ### dist/dates/helpers/getSeparatorByDateFormat.js
3571
+ ### dist/qrvey/helpers/areStaticColumnValues.js
2071
3572
 
2072
3573
 
2073
- #### getSeparatorByDateFormat(format)
3574
+ #### areStaticColumnValues(column)
2074
3575
 
2075
- Gets the separator of the date format
3576
+ Determines if the given column is belonging to static values questions.
3577
+ Static values questions are questions that do not need request an info from backend, instead the info is got from Model, Question/List object.
2076
3578
 
2077
3579
 
2078
3580
 
@@ -2081,7 +3583,7 @@ Gets the separator of the date format
2081
3583
 
2082
3584
  | Name | Type | Description | |
2083
3585
  | ---- | ---- | ----------- | -------- |
2084
- | format | | the date format | &nbsp; |
3586
+ | column | | The question column | &nbsp; |
2085
3587
 
2086
3588
 
2087
3589
 
@@ -2089,18 +3591,19 @@ Gets the separator of the date format
2089
3591
  ##### Returns
2090
3592
 
2091
3593
 
2092
- - a separator string
3594
+ - true if the column belongs to a static values question; otherwise, false
2093
3595
 
2094
3596
 
2095
3597
 
2096
3598
 
2097
- ### dist/dates/helpers/getWeek.js
3599
+ ### dist/qrvey/helpers/getCategorizableExpression.js
2098
3600
 
2099
3601
 
2100
- #### getWeek(date)
3602
+ #### getCategorizableExpression(column, dataset)
2101
3603
 
2102
- Gets the week number of the year
2103
- Additionally, the month and the year
3604
+ Special function for Expression Columns.
3605
+ This function allows validating if expression columns have active category option.
3606
+ This is esential in order to display the asigned property for expression.
2104
3607
 
2105
3608
 
2106
3609
 
@@ -2109,7 +3612,8 @@ Additionally, the month and the year
2109
3612
 
2110
3613
  | Name | Type | Description | |
2111
3614
  | ---- | ---- | ----------- | -------- |
2112
- | date | | the date object | &nbsp; |
3615
+ | column | | The column with info | &nbsp; |
3616
+ | dataset | | the dataset object to search the column | &nbsp; |
2113
3617
 
2114
3618
 
2115
3619
 
@@ -2117,20 +3621,20 @@ Additionally, the month and the year
2117
3621
  ##### Returns
2118
3622
 
2119
3623
 
2120
- - an object with the week, month and year.
3624
+ - true if expression column is categorizable; otherwise not. If does not exist, undefined is sent.
2121
3625
 
2122
3626
 
2123
3627
 
2124
3628
 
2125
- ### dist/dates/helpers/validateDate.js
3629
+ ### dist/qrvey/helpers/getDataAnswersByColumn.js
2126
3630
 
2127
3631
 
2128
- #### validateDate(date, format)
3632
+ #### getDataAnswersByColumn(column, model, property)
2129
3633
 
2130
- Validate a string date depending on giving format
2131
- - If the string is a token label, the function lets it pass.
2132
- - Otherwise depends of the format
2133
- - Some escenarios the string is a mix of token labels and dates
3634
+ Get answers located in model object. If column exists in the model, answers will be gotten depending on column type.
3635
+ For Rating columns, needs a number sequence (From 1 to 5).
3636
+ For Expression columns, needs a property type attribute for categorizable ones; for non-categorizable expressions is not required this attribute.
3637
+ For the others columns, answers is located in the property of the same name.
2134
3638
 
2135
3639
 
2136
3640
 
@@ -2139,8 +3643,9 @@ Validate a string date depending on giving format
2139
3643
 
2140
3644
  | Name | Type | Description | |
2141
3645
  | ---- | ---- | ----------- | -------- |
2142
- | date | | String of date | &nbsp; |
2143
- | format | | String of the format to validate | &nbsp; |
3646
+ | column | | Info of the column | &nbsp; |
3647
+ | model | | The model object | &nbsp; |
3648
+ | property | | Optional Attribute, especially for expression columns. | &nbsp; |
2144
3649
 
2145
3650
 
2146
3651
 
@@ -2148,17 +3653,17 @@ Validate a string date depending on giving format
2148
3653
  ##### Returns
2149
3654
 
2150
3655
 
2151
- - True if it is valid or not. Undefined if date is undefined
3656
+ - Formatted answers inside of answer property.
2152
3657
 
2153
3658
 
2154
3659
 
2155
3660
 
2156
- ### dist/dates/helpers/validateDateByDateFormat.js
3661
+ ### dist/qrvey/helpers/getExpressionAnswers.js
2157
3662
 
2158
3663
 
2159
- #### validateDateByDateFormat(date, dateForma)
3664
+ #### getExpressionAnswers(column, property)
2160
3665
 
2161
- Validates the given string as Date by its date format.
3666
+ Get the answers of expression columns. Depends of the property attribute and if the column is categorizable.
2162
3667
 
2163
3668
 
2164
3669
 
@@ -2167,8 +3672,8 @@ Validates the given string as Date by its date format.
2167
3672
 
2168
3673
  | Name | Type | Description | |
2169
3674
  | ---- | ---- | ----------- | -------- |
2170
- | date | | a string to validate as date form | &nbsp; |
2171
- | dateForma | | the format of the date to validate the string | &nbsp; |
3675
+ | column | | The column located inside the model object. | &nbsp; |
3676
+ | property | | Optional Attribute, especially for expression columns. | &nbsp; |
2172
3677
 
2173
3678
 
2174
3679
 
@@ -2176,17 +3681,18 @@ Validates the given string as Date by its date format.
2176
3681
  ##### Returns
2177
3682
 
2178
3683
 
2179
- - true: the string is a valida date
3684
+ - Formatted answers inside of an answer property.
2180
3685
 
2181
3686
 
2182
3687
 
2183
3688
 
2184
- ### dist/dates/relative/relative.js
3689
+ ### dist/qrvey/helpers/getDropdownAnswers.js
2185
3690
 
2186
3691
 
2187
- #### resolveRelative(statements, clock)
3692
+ #### getDropdownAnswers(question)
2188
3693
 
2189
- Resolve a list of relative statements according to operator
3694
+ Get the answers of dropdown columns.
3695
+ Answers is a direct array of strings so it is necessary to format them.
2190
3696
 
2191
3697
 
2192
3698
 
@@ -2195,46 +3701,34 @@ Resolve a list of relative statements according to operator
2195
3701
 
2196
3702
  | Name | Type | Description | |
2197
3703
  | ---- | ---- | ----------- | -------- |
2198
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
2199
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
3704
+ | question | | The column located inside the model object. | &nbsp; |
2200
3705
 
2201
3706
 
2202
3707
 
2203
3708
 
2204
- ##### Examples
2205
-
2206
- ```javascript
2207
- Input:
2208
- {
2209
- "cursor": "the_next",
2210
- "unit": "year",
2211
- "number": 1,
2212
- "includeCurrent": false,
2213
- "isCalendarDate": false,
2214
- "anchor": "03/05/2021"
2215
- }
3709
+ ##### Returns
2216
3710
 
2217
- Output:
2218
- { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
2219
- ```
2220
3711
 
3712
+ - Formatted answers inside of an answer property.
2221
3713
 
2222
- ##### Returns
2223
3714
 
2224
3715
 
2225
- - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
2226
3716
 
3717
+ ### dist/qrvey/helpers/getImageAnswers.js
2227
3718
 
2228
3719
 
3720
+ #### getImageAnswers(column)
2229
3721
 
2230
- ### dist/dates/relative/Adapter.js
3722
+ Get the answers of image columns.
2231
3723
 
2232
3724
 
2233
- #### value()
2234
3725
 
2235
- Resolves statement and returns statement value
2236
3726
 
3727
+ ##### Parameters
2237
3728
 
3729
+ | Name | Type | Description | |
3730
+ | ---- | ---- | ----------- | -------- |
3731
+ | column | | The column located inside the model object. | &nbsp; |
2238
3732
 
2239
3733
 
2240
3734
 
@@ -2242,47 +3736,55 @@ Resolves statement and returns statement value
2242
3736
  ##### Returns
2243
3737
 
2244
3738
 
2245
- - `AbsoluteRange` `string`
3739
+ - Formatted answers inside of an answer property.
2246
3740
 
2247
3741
 
2248
3742
 
2249
- #### valueAsAnchor()
2250
3743
 
2251
- Resolves statement as an anchor
3744
+ ### dist/qrvey/helpers/getImageUploadHasAnalysis.js
2252
3745
 
2253
3746
 
3747
+ #### getImageUploadHasAnalysis(column, model)
2254
3748
 
3749
+ Special function for Image Upload
3750
+ This function returns if the current column has object or text analysis as property.
2255
3751
 
2256
3752
 
2257
3753
 
2258
- ##### Returns
2259
3754
 
3755
+ ##### Parameters
2260
3756
 
2261
- - `string`
3757
+ | Name | Type | Description | |
3758
+ | ---- | ---- | ----------- | -------- |
3759
+ | column | | The column with info | &nbsp; |
3760
+ | model | | The model object | &nbsp; |
2262
3761
 
2263
3762
 
2264
3763
 
2265
- #### _statementToRange() *private method*
2266
3764
 
2267
- Convert verbal statement to range value
3765
+ ##### Returns
2268
3766
 
2269
3767
 
3768
+ - true if this column has analysis. Otherwise false.
2270
3769
 
2271
3770
 
2272
3771
 
2273
3772
 
2274
- ##### Returns
3773
+ ### dist/qrvey/helpers/getRatingAnswers.js
2275
3774
 
2276
3775
 
2277
- - `AbsoluteRange`
3776
+ #### getRatingAnswers(_question)
2278
3777
 
3778
+ Get the answers of rating columns.
2279
3779
 
2280
3780
 
2281
- #### _resolveAsThis() *private method*
2282
3781
 
2283
- Apply 'this' cursor logic to statement
2284
3782
 
3783
+ ##### Parameters
2285
3784
 
3785
+ | Name | Type | Description | |
3786
+ | ---- | ---- | ----------- | -------- |
3787
+ | _question | | The column located inside the model object. | &nbsp; |
2286
3788
 
2287
3789
 
2288
3790
 
@@ -2290,45 +3792,44 @@ Apply 'this' cursor logic to statement
2290
3792
  ##### Returns
2291
3793
 
2292
3794
 
2293
- - `AbsoluteStatement`
2294
-
2295
-
2296
-
2297
- #### _resolveAsTheLast() *private method*
3795
+ - Formatted answers inside of an answer property
2298
3796
 
2299
- Apply 'the last' cursor logic to statement
2300
3797
 
2301
3798
 
2302
3799
 
3800
+ ### dist/qrvey/helpers/getSlidebarAnswers.js
2303
3801
 
2304
3802
 
3803
+ #### getSlidebarAnswers(_question)
2305
3804
 
2306
- ##### Returns
3805
+ Get the answers of slidebar columns. The quantity of answers depend on the steps chosen in maker.
2307
3806
 
2308
3807
 
2309
- - `AbsoluteStatement`
2310
3808
 
2311
3809
 
3810
+ ##### Parameters
2312
3811
 
2313
- #### _resolveAsTheNext() *private method*
3812
+ | Name | Type | Description | |
3813
+ | ---- | ---- | ----------- | -------- |
3814
+ | _question | | The column located inside the model object. | &nbsp; |
2314
3815
 
2315
- Apply 'the next' cursor logic to statement
2316
3816
 
2317
3817
 
2318
3818
 
3819
+ ##### Returns
2319
3820
 
2320
3821
 
3822
+ - Formatted answers inside of an answer property
2321
3823
 
2322
- ##### Returns
2323
3824
 
2324
3825
 
2325
- - `AbsoluteStatement`
2326
3826
 
3827
+ ### dist/qrvey/helpers/getSuffixTranslateByColumn.js
2327
3828
 
2328
3829
 
2329
- #### replaceNowToken(value, now)
3830
+ #### getSuffixTranslateByColumn(column)
2330
3831
 
2331
- Replace '@now' token inside a string
3832
+ Gets a string of the translate structure by the given column
2332
3833
 
2333
3834
 
2334
3835
 
@@ -2337,8 +3838,7 @@ Replace '@now' token inside a string
2337
3838
 
2338
3839
  | Name | Type | Description | |
2339
3840
  | ---- | ---- | ----------- | -------- |
2340
- | value | `string` | | &nbsp; |
2341
- | now | `Date` | | &nbsp; |
3841
+ | column | | the Info of the column | &nbsp; |
2342
3842
 
2343
3843
 
2344
3844
 
@@ -2346,60 +3846,47 @@ Replace '@now' token inside a string
2346
3846
  ##### Returns
2347
3847
 
2348
3848
 
2349
- - `string`
3849
+ - a string of the translation structure where the label is located.
2350
3850
 
2351
3851
 
2352
3852
 
2353
- #### convertRelativeToAbsolute(args)
2354
3853
 
2355
- Returns a range object (date) from a group of statement params
3854
+ ### dist/qrvey/helpers/getValueWithSuffixes.js
2356
3855
 
2357
3856
 
3857
+ #### getValueWithSuffixes(value, suffixes)
2358
3858
 
3859
+ Get a string value with suffixes if available.
3860
+ Add suffix into the value string. Prioritized for numeric values.
2359
3861
 
2360
- ##### Parameters
2361
3862
 
2362
- | Name | Type | Description | |
2363
- | ---- | ---- | ----------- | -------- |
2364
- | args | `RelativeToAbsoluteStruct` | | &nbsp; |
2365
3863
 
2366
3864
 
3865
+ ##### Parameters
2367
3866
 
3867
+ | Name | Type | Description | |
3868
+ | ---- | ---- | ----------- | -------- |
3869
+ | value | | a number or string | &nbsp; |
3870
+ | suffixes | | An object with singular or plural suffix string. | &nbsp; |
2368
3871
 
2369
- ##### Examples
2370
3872
 
2371
- ```javascript
2372
- pivot = '2021-03-03T12:30:40'
2373
- unit = month
2374
- steps = 2
2375
- setTo = END
2376
- resolverAsCalendar: true
2377
- => Returns '2021-05-31T23:59:59'
2378
- ```
2379
- ```javascript
2380
- pivot = '2021-03-03T12:30:40'
2381
- unit = month
2382
- steps = -2
2383
- setTo = START
2384
- resolverAsCalendar: false
2385
- => Returns '2021-01-03T00:00:00'
2386
- ```
2387
3873
 
2388
3874
 
2389
3875
  ##### Returns
2390
3876
 
2391
3877
 
2392
- - `string`
3878
+ - a string value with suffix
2393
3879
 
2394
3880
 
2395
3881
 
2396
3882
 
2397
- ### dist/dates/range/getDateRange.js
3883
+ ### dist/qrvey/helpers/getYesNoAnswers.js
2398
3884
 
2399
3885
 
2400
- #### getDateRange(value, dateGroupLabel, withTime)
3886
+ #### getYesNoAnswers(column)
2401
3887
 
2402
- Get date range object from a string date value
3888
+ Get the answers of Yes/No columns.
3889
+ Yes/No answers from model object are capitalized but the filters need values in lowercase.
2403
3890
 
2404
3891
 
2405
3892
 
@@ -2408,56 +3895,25 @@ Get date range object from a string date value
2408
3895
 
2409
3896
  | Name | Type | Description | |
2410
3897
  | ---- | ---- | ----------- | -------- |
2411
- | value | `String` | string date value | &nbsp; |
2412
- | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | &nbsp; |
2413
- | withTime | `Boolean` | determines if the date range will include time. Default is true | &nbsp; |
2414
-
2415
-
2416
-
2417
-
2418
- ##### Examples
2419
-
2420
- ```javascript
2421
- // 1) Year:
2422
- getDateRange('2020', 'YEAR');
2423
- // Will return:
2424
- {
2425
- from: '01/01/2020 00:00:00',
2426
- to: '12/31/2020 23:59:59'
2427
- }
3898
+ | column | | The column located inside the model object. | &nbsp; |
2428
3899
 
2429
- // 2) Quarter:
2430
- getDateRange('Q3 2020', 'QUARTER');
2431
- // Will return:
2432
- {
2433
- from: '07/01/2020 00:00:00',
2434
- to: '09/30/2020 23:59:59'
2435
- }
2436
3900
 
2437
- // 3) Month:
2438
- getDateRange('Oct 2020', 'MONTH');
2439
- // Will return:
2440
- {
2441
- from: '10/01/2020 00:00:00',
2442
- to: '10/31/2020 23:59:59'
2443
- }
2444
- ```
2445
3901
 
2446
3902
 
2447
3903
  ##### Returns
2448
3904
 
2449
3905
 
2450
- - `Object` an object with the date range with two string date properties: from and to
3906
+ - Formatted answers inside of an answer property
2451
3907
 
2452
3908
 
2453
3909
 
2454
3910
 
2455
- ### dist/dates/adapters/monthYearToDate.js
3911
+ ### dist/qrvey/helpers/transformValue.js
2456
3912
 
2457
3913
 
2458
- #### monthYearToDate(monthYearDate, time)
3914
+ #### transformValue(value, settings)
2459
3915
 
2460
- Transforms String Date from a [Month Year] format to Date object.
3916
+ Transforms a value depending of localization/globalization and extras settings.
2461
3917
 
2462
3918
 
2463
3919
 
@@ -2466,8 +3922,8 @@ Transforms String Date from a [Month Year] format to Date object.
2466
3922
 
2467
3923
  | Name | Type | Description | |
2468
3924
  | ---- | ---- | ----------- | -------- |
2469
- | monthYearDate | | String of [Month Year] date | &nbsp; |
2470
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
3925
+ | value | | A value to transform | &nbsp; |
3926
+ | settings | | The settings of the transformValue function | &nbsp; |
2471
3927
 
2472
3928
 
2473
3929
 
@@ -2475,17 +3931,13 @@ Transforms String Date from a [Month Year] format to Date object.
2475
3931
  ##### Returns
2476
3932
 
2477
3933
 
2478
- - The date object or the date in milliseconds
2479
-
2480
-
3934
+ - A transformed value
2481
3935
 
2482
3936
 
2483
- ### dist/dates/adapters/quarterYearToDate.js
2484
-
2485
3937
 
2486
- #### quarterYearToDate(quarterYearDate, time)
3938
+ #### getOutputFormat(settings)
2487
3939
 
2488
- Transforms String Date from a [Quarter Year] format to Date object.
3940
+ Gets the outputformat settings
2489
3941
 
2490
3942
 
2491
3943
 
@@ -2494,8 +3946,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
2494
3946
 
2495
3947
  | Name | Type | Description | |
2496
3948
  | ---- | ---- | ----------- | -------- |
2497
- | quarterYearDate | | String of [Quarter Year] date | &nbsp; |
2498
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
3949
+ | settings | | The settings of the transformValue function | &nbsp; |
2499
3950
 
2500
3951
 
2501
3952
 
@@ -2503,17 +3954,13 @@ Transforms String Date from a [Quarter Year] format to Date object.
2503
3954
  ##### Returns
2504
3955
 
2505
3956
 
2506
- - The date object or the date in milliseconds
2507
-
2508
-
2509
-
3957
+ - the outputformat settings
2510
3958
 
2511
- ### dist/dates/adapters/weekYearToDate.js
2512
3959
 
2513
3960
 
2514
- #### weekYearToDate(date, time)
3961
+ #### getFormatConfig(settings)
2515
3962
 
2516
- Transforms String Date from a [Week Year] format to Date object.
3963
+ Gets the format config
2517
3964
 
2518
3965
 
2519
3966
 
@@ -2522,8 +3969,7 @@ Transforms String Date from a [Week Year] format to Date object.
2522
3969
 
2523
3970
  | Name | Type | Description | |
2524
3971
  | ---- | ---- | ----------- | -------- |
2525
- | date | | String of [Week Year] date | &nbsp; |
2526
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
3972
+ | settings | | The settings of the transformValue function | &nbsp; |
2527
3973
 
2528
3974
 
2529
3975
 
@@ -2531,17 +3977,17 @@ Transforms String Date from a [Week Year] format to Date object.
2531
3977
  ##### Returns
2532
3978
 
2533
3979
 
2534
- - The date object or the date in milliseconds
3980
+ - the format config
2535
3981
 
2536
3982
 
2537
3983
 
2538
3984
 
2539
- ### dist/dates/adapters/mdyDateToDate.js
3985
+ ### dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js
2540
3986
 
2541
3987
 
2542
- #### mdyDateToDate(monthYearDate, time)
3988
+ #### BBranchesMapToUIBranchesMap(branchesMap)
3989
+
2543
3990
 
2544
- Transforms String Date from a [mm/dd/yyyy] format to Date object.
2545
3991
 
2546
3992
 
2547
3993
 
@@ -2550,8 +3996,7 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
2550
3996
 
2551
3997
  | Name | Type | Description | |
2552
3998
  | ---- | ---- | ----------- | -------- |
2553
- | monthYearDate | | String of [mm/dd/yyyy] date | &nbsp; |
2554
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
3999
+ | branchesMap | | | &nbsp; |
2555
4000
 
2556
4001
 
2557
4002
 
@@ -2559,17 +4004,21 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
2559
4004
  ##### Returns
2560
4005
 
2561
4006
 
2562
- - The date object or the date in milliseconds
4007
+ -
2563
4008
 
2564
4009
 
2565
4010
 
2566
4011
 
2567
- ### dist/dates/adapters/yearToDate.js
4012
+ ### dist/services/api/getAllDatasets.api.js
2568
4013
 
2569
4014
 
2570
- #### yearToDate(yearDate, time)
4015
+ #### getAllDatasets(config, qrveyids)
2571
4016
 
2572
- Transforms String Date from a [Year] format to Date object.
4017
+ Get a dataset list from a collection of Qrvey IDs
4018
+ Considerations for qrveyids second argument:
4019
+ - If it is a undefined argument, the function will return all available datasets of the app
4020
+ - If it is a empty array argument, the function will return an empty dataset list. (A request will not be executed)
4021
+ - If it is a non-empty array argument, the function will return a set of available datasets
2573
4022
 
2574
4023
 
2575
4024
 
@@ -2578,8 +4027,8 @@ Transforms String Date from a [Year] format to Date object.
2578
4027
 
2579
4028
  | Name | Type | Description | |
2580
4029
  | ---- | ---- | ----------- | -------- |
2581
- | yearDate | | String of [Year] date | &nbsp; |
2582
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
4030
+ | config | | the widget config. Includes general configuration properties | &nbsp; |
4031
+ | qrveyids | | Collection of Qrvey IDs for returning a set of available datasets | &nbsp; |
2583
4032
 
2584
4033
 
2585
4034
 
@@ -2587,17 +4036,17 @@ Transforms String Date from a [Year] format to Date object.
2587
4036
  ##### Returns
2588
4037
 
2589
4038
 
2590
- - The date object or the date in milliseconds
4039
+ - a promise that if it is resolved displays a collection of dataset info.
2591
4040
 
2592
4041
 
2593
4042
 
2594
4043
 
2595
- ### dist/qrvey/helpers/getColumnsLabel.js
4044
+ ### dist/services/api/getAllQrveys.api.js
2596
4045
 
2597
4046
 
2598
- #### getColumnLabels(column)
4047
+ #### getAllQrveys(config, params)
2599
4048
 
2600
- Get an string of the properties of the given column.
4049
+ Request function for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2601
4050
 
2602
4051
 
2603
4052
 
@@ -2606,7 +4055,8 @@ Get an string of the properties of the given column.
2606
4055
 
2607
4056
  | Name | Type | Description | |
2608
4057
  | ---- | ---- | ----------- | -------- |
2609
- | column | | The column | &nbsp; |
4058
+ | config | | Configuration | &nbsp; |
4059
+ | params | | Object for getting precise data | &nbsp; |
2610
4060
 
2611
4061
 
2612
4062
 
@@ -2614,17 +4064,17 @@ Get an string of the properties of the given column.
2614
4064
  ##### Returns
2615
4065
 
2616
4066
 
2617
- - an string with the property, aggregate or calculation label.
4067
+ - `Void`
2618
4068
 
2619
4069
 
2620
4070
 
2621
4071
 
2622
- ### dist/services/api/getAllDatasets.api.js
4072
+ ### dist/services/api/getDatasetColumns.api.js
2623
4073
 
2624
4074
 
2625
- #### getAllDatasets(qrveyids)
4075
+ #### getDatasetColumns(qrveyid)
2626
4076
 
2627
- Get a dataset list from a collection of Qrvey IDs
4077
+ Get a dataset by Qrvey ID
2628
4078
 
2629
4079
 
2630
4080
 
@@ -2633,7 +4083,7 @@ Get a dataset list from a collection of Qrvey IDs
2633
4083
 
2634
4084
  | Name | Type | Description | |
2635
4085
  | ---- | ---- | ----------- | -------- |
2636
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
4086
+ | qrveyid | | The Qrvey ID | &nbsp; |
2637
4087
 
2638
4088
 
2639
4089
 
@@ -2646,12 +4096,12 @@ Get a dataset list from a collection of Qrvey IDs
2646
4096
 
2647
4097
 
2648
4098
 
2649
- ### dist/services/api/getAllQrveys.api.js
4099
+ ### dist/services/api/getDatasetsByIds.api.js
2650
4100
 
2651
4101
 
2652
- #### getAllQrveys(config, params)
4102
+ #### getDatasetsByIds(qrveyid)
2653
4103
 
2654
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
4104
+ Get a dataset by Qrvey ID
2655
4105
 
2656
4106
 
2657
4107
 
@@ -2660,8 +4110,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2660
4110
 
2661
4111
  | Name | Type | Description | |
2662
4112
  | ---- | ---- | ----------- | -------- |
2663
- | config | | Configuration | &nbsp; |
2664
- | params | | Object for getting precise data | &nbsp; |
4113
+ | qrveyid | | The Qrvey ID | &nbsp; |
2665
4114
 
2666
4115
 
2667
4116
 
@@ -2669,34 +4118,40 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2669
4118
  ##### Returns
2670
4119
 
2671
4120
 
2672
- - `Void`
4121
+ - a promise
2673
4122
 
2674
4123
 
2675
4124
 
2676
4125
 
2677
- ### dist/services/api/getDatasetColumns.api.js
4126
+ ### dist/stencil/decorators/Config.js
2678
4127
 
2679
4128
 
2680
- #### getDatasetColumns(qrveyid)
4129
+ #### Config()
2681
4130
 
2682
- Get a dataset by Qrvey ID
4131
+ Stencil.js - Prop Decorator
4132
+ Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
4133
+ But for this, is required ask for a property in `snake_case` style
2683
4134
 
2684
4135
 
2685
4136
 
2686
4137
 
2687
- ##### Parameters
2688
4138
 
2689
- | Name | Type | Description | |
2690
- | ---- | ---- | ----------- | -------- |
2691
- | qrveyid | | The Qrvey ID | &nbsp; |
2692
4139
 
4140
+ ##### Examples
4141
+
4142
+ ```javascript
4143
+ \ @Config() @Prop() settings;
2693
4144
 
4145
+ someMethod() {
4146
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
4147
+ }
4148
+ ```
2694
4149
 
2695
4150
 
2696
4151
  ##### Returns
2697
4152
 
2698
4153
 
2699
- - a promise
4154
+ - `Void`
2700
4155
 
2701
4156
 
2702
4157
 
@@ -2752,29 +4207,23 @@ try to find this string as a variable on Windows object
2752
4207
 
2753
4208
 
2754
4209
 
2755
- ### dist/stencil/decorators/Config.js
2756
-
4210
+ ### dist/typescript/decorators/Throttled.js
2757
4211
 
2758
- #### Config()
2759
4212
 
2760
- Stencil.js - Prop Decorator
2761
- Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
2762
- But for this, is required ask for a property in `snake_case` style
4213
+ #### Throttled(time)
2763
4214
 
4215
+ (Method Decorator) Throttled Class Method
2764
4216
 
2765
4217
 
2766
4218
 
2767
4219
 
4220
+ ##### Parameters
2768
4221
 
2769
- ##### Examples
4222
+ | Name | Type | Description | |
4223
+ | ---- | ---- | ----------- | -------- |
4224
+ | time | | (optional) deafult 500 | &nbsp; |
2770
4225
 
2771
- ```javascript
2772
- \ @Config() @Prop() settings;
2773
4226
 
2774
- someMethod() {
2775
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2776
- }
2777
- ```
2778
4227
 
2779
4228
 
2780
4229
  ##### Returns
@@ -2812,12 +4261,12 @@ someMethod() {
2812
4261
 
2813
4262
 
2814
4263
 
2815
- ### dist/typescript/decorators/Throttled.js
4264
+ ### dist/dates/relative/helpers/formatStatement.js
2816
4265
 
2817
4266
 
2818
- #### Throttled(time)
4267
+ #### formatStatement(statement)
2819
4268
 
2820
- (Method Decorator) Throttled Class Method
4269
+ Build a proper relative date statement type
2821
4270
 
2822
4271
 
2823
4272
 
@@ -2826,7 +4275,7 @@ someMethod() {
2826
4275
 
2827
4276
  | Name | Type | Description | |
2828
4277
  | ---- | ---- | ----------- | -------- |
2829
- | time | | (optional) deafult 500 | &nbsp; |
4278
+ | statement | `RelativeStatement` | | &nbsp; |
2830
4279
 
2831
4280
 
2832
4281
 
@@ -2834,17 +4283,17 @@ someMethod() {
2834
4283
  ##### Returns
2835
4284
 
2836
4285
 
2837
- - `Void`
4286
+ - `RelativeStatement`
2838
4287
 
2839
4288
 
2840
4289
 
2841
4290
 
2842
- ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
4291
+ ### dist/dates/relative/helpers/getStatementCase.js
2843
4292
 
2844
4293
 
2845
- #### getFilterBuilderGeneralConfig(config)
4294
+ #### getStatementCase(includeCurrent, isCalendarDate)
2846
4295
 
2847
- Returns a filter builder config object by a any given config
4296
+ Returns a number/constant that identifies a relative date case
2848
4297
 
2849
4298
 
2850
4299
 
@@ -2853,7 +4302,8 @@ Returns a filter builder config object by a any given config
2853
4302
 
2854
4303
  | Name | Type | Description | |
2855
4304
  | ---- | ---- | ----------- | -------- |
2856
- | config | | any config object | &nbsp; |
4305
+ | includeCurrent | `boolean` | | &nbsp; |
4306
+ | isCalendarDate | `boolean` | | &nbsp; |
2857
4307
 
2858
4308
 
2859
4309
 
@@ -2861,7 +4311,34 @@ Returns a filter builder config object by a any given config
2861
4311
  ##### Returns
2862
4312
 
2863
4313
 
2864
- - The filter builder config object
4314
+ - `number`
4315
+
4316
+
4317
+
4318
+
4319
+ ### dist/dates/relative/helpers/parseDate.js
4320
+
4321
+
4322
+ #### parseDate(date)
4323
+
4324
+ Parses a string date and returns a dayjs date
4325
+
4326
+
4327
+
4328
+
4329
+ ##### Parameters
4330
+
4331
+ | Name | Type | Description | |
4332
+ | ---- | ---- | ----------- | -------- |
4333
+ | date | `string` `Dayjs` `Date` | | &nbsp; |
4334
+
4335
+
4336
+
4337
+
4338
+ ##### Returns
4339
+
4340
+
4341
+ - `Dayjs` A dayjs date
2865
4342
 
2866
4343
 
2867
4344
 
@@ -3162,6 +4639,33 @@ Gets filters from the logic by the scopes hierarchy.
3162
4639
 
3163
4640
 
3164
4641
 
4642
+ ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
4643
+
4644
+
4645
+ #### getFilterBuilderGeneralConfig(config)
4646
+
4647
+ Returns a filter builder config object by a any given config
4648
+
4649
+
4650
+
4651
+
4652
+ ##### Parameters
4653
+
4654
+ | Name | Type | Description | |
4655
+ | ---- | ---- | ----------- | -------- |
4656
+ | config | | any config object | &nbsp; |
4657
+
4658
+
4659
+
4660
+
4661
+ ##### Returns
4662
+
4663
+
4664
+ - The filter builder config object
4665
+
4666
+
4667
+
4668
+
3165
4669
  ### dist/filters/helpers/common/areFiltersEquals.js
3166
4670
 
3167
4671
 
@@ -3576,6 +5080,60 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3576
5080
 
3577
5081
 
3578
5082
 
5083
+ ### dist/filters/helpers/common/getValuesFromDataset.js
5084
+
5085
+
5086
+ #### getValuesFromDataset(props)
5087
+
5088
+ Gets the values from the model object that will be used to filter. Static values are values to belong from static values questions. Static values questions are questions that do not need request an info from backend, instead the info is got from Model object.
5089
+
5090
+
5091
+
5092
+
5093
+ ##### Parameters
5094
+
5095
+ | Name | Type | Description | |
5096
+ | ---- | ---- | ----------- | -------- |
5097
+ | props | | Configuration to get static values from the given dataset. | &nbsp; |
5098
+
5099
+
5100
+
5101
+
5102
+ ##### Returns
5103
+
5104
+
5105
+ - The values.
5106
+
5107
+
5108
+
5109
+
5110
+ ### dist/filters/helpers/common/getValuesFromModel.js
5111
+
5112
+
5113
+ #### getValuesFromModel(props)
5114
+
5115
+ Gets the values from the model object that will be used to filter. Static values are values to belong from static values questions. Static values questions are questions that do not need request an info from backend, instead the info is got from Model object.
5116
+
5117
+
5118
+
5119
+
5120
+ ##### Parameters
5121
+
5122
+ | Name | Type | Description | |
5123
+ | ---- | ---- | ----------- | -------- |
5124
+ | props | | Configuration to get static values from the given model. | &nbsp; |
5125
+
5126
+
5127
+
5128
+
5129
+ ##### Returns
5130
+
5131
+
5132
+ - The values.
5133
+
5134
+
5135
+
5136
+
3579
5137
  ### dist/filters/helpers/common/haveFiltersByDataset.js
3580
5138
 
3581
5139
 
@@ -4096,6 +5654,34 @@ Gets output format object from Datasets by the given column. Item of the dataset
4096
5654
 
4097
5655
 
4098
5656
 
5657
+ ### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
5658
+
5659
+
5660
+ #### getQrveyIdsByUIFilters(uiFilter)
5661
+
5662
+ Gets a collection of Qrvey IDs in the UI Filter structure.
5663
+ Looks around all filter structure finding the qrveyid propertty in each dataset
5664
+
5665
+
5666
+
5667
+
5668
+ ##### Parameters
5669
+
5670
+ | Name | Type | Description | |
5671
+ | ---- | ---- | ----------- | -------- |
5672
+ | uiFilter | | | &nbsp; |
5673
+
5674
+
5675
+
5676
+
5677
+ ##### Returns
5678
+
5679
+
5680
+ - `Void`
5681
+
5682
+
5683
+
5684
+
4099
5685
  ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4100
5686
 
4101
5687
 
@@ -4210,67 +5796,12 @@ Filters and gets a UI Flatten Filters by the given scopes
4210
5796
 
4211
5797
 
4212
5798
 
4213
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4214
-
4215
-
4216
- #### resolveUIFlatFilterByParams(filter, params)
4217
-
4218
- Resolves conditions between UI flattened filter and given parameters
4219
-
4220
-
4221
-
4222
-
4223
- ##### Parameters
4224
-
4225
- | Name | Type | Description | |
4226
- | ---- | ---- | ----------- | -------- |
4227
- | filter | | UI Flatten Filter | &nbsp; |
4228
- | params | | Parameters to validate | &nbsp; |
4229
-
4230
-
4231
-
4232
-
4233
- ##### Returns
4234
-
4235
-
4236
- - true: the conditions are satisfied.
4237
-
4238
-
4239
-
4240
-
4241
- ### dist/dates/relative/helpers/formatStatement.js
4242
-
4243
-
4244
- #### formatStatement(statement)
4245
-
4246
- Build a proper relative date statement type
4247
-
4248
-
4249
-
4250
-
4251
- ##### Parameters
4252
-
4253
- | Name | Type | Description | |
4254
- | ---- | ---- | ----------- | -------- |
4255
- | statement | `RelativeStatement` | | &nbsp; |
4256
-
4257
-
4258
-
4259
-
4260
- ##### Returns
4261
-
4262
-
4263
- - `RelativeStatement`
4264
-
4265
-
4266
-
4267
-
4268
- ### dist/dates/relative/helpers/parseDate.js
5799
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4269
5800
 
4270
5801
 
4271
- #### parseDate(date)
5802
+ #### getUpdatedUIFilters(data, datasets)
4272
5803
 
4273
- Parses a string date and returns a dayjs date
5804
+ Gets a new UI Filter structure with a datasets/columns info updates
4274
5805
 
4275
5806
 
4276
5807
 
@@ -4279,7 +5810,8 @@ Parses a string date and returns a dayjs date
4279
5810
 
4280
5811
  | Name | Type | Description | |
4281
5812
  | ---- | ---- | ----------- | -------- |
4282
- | date | `string` `Dayjs` `Date` | | &nbsp; |
5813
+ | data | | The UI Filter structure | &nbsp; |
5814
+ | datasets | | An array of datasets/column info used for updating the data | &nbsp; |
4283
5815
 
4284
5816
 
4285
5817
 
@@ -4287,17 +5819,17 @@ Parses a string date and returns a dayjs date
4287
5819
  ##### Returns
4288
5820
 
4289
5821
 
4290
- - `Dayjs` A dayjs date
5822
+ - A new UI FIlter structure
4291
5823
 
4292
5824
 
4293
5825
 
4294
5826
 
4295
- ### dist/dates/relative/helpers/getStatementCase.js
5827
+ ### dist/filters/helpers/ui/resolveUIFlatFilterByParams.js
4296
5828
 
4297
5829
 
4298
- #### getStatementCase(includeCurrent, isCalendarDate)
5830
+ #### resolveUIFlatFilterByParams(filter, params)
4299
5831
 
4300
- Returns a number/constant that identifies a relative date case
5832
+ Resolves conditions between UI flattened filter and given parameters
4301
5833
 
4302
5834
 
4303
5835
 
@@ -4306,8 +5838,8 @@ Returns a number/constant that identifies a relative date case
4306
5838
 
4307
5839
  | Name | Type | Description | |
4308
5840
  | ---- | ---- | ----------- | -------- |
4309
- | includeCurrent | `boolean` | | &nbsp; |
4310
- | isCalendarDate | `boolean` | | &nbsp; |
5841
+ | filter | | UI Flatten Filter | &nbsp; |
5842
+ | params | | Parameters to validate | &nbsp; |
4311
5843
 
4312
5844
 
4313
5845
 
@@ -4315,7 +5847,7 @@ Returns a number/constant that identifies a relative date case
4315
5847
  ##### Returns
4316
5848
 
4317
5849
 
4318
- - `number`
5850
+ - true: the conditions are satisfied.
4319
5851
 
4320
5852
 
4321
5853