@qrvey/utils 1.2.9-8 → 1.2.10-1

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 +2275 -743
  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/{interfaces/general/IGeneralWidgetConfig.js → columns/interfaces/IBColumnAnswerGeneral.js} +0 -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 +3 -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 +7 -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/IWidgetConfig.d.ts +10 -0
  281. package/dist/cjs/interfaces/general/IWidgetConfig.js +2 -0
  282. package/dist/cjs/interfaces/general/index.d.ts +1 -1
  283. package/dist/cjs/interfaces/general/index.js +1 -1
  284. package/dist/cjs/interfaces/index.d.ts +1 -0
  285. package/dist/cjs/interfaces/index.js +1 -0
  286. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  287. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.js +16 -0
  288. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  289. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.js +14 -0
  290. package/dist/cjs/qrvey/constants/APP_STATUS.d.ts +5 -0
  291. package/dist/cjs/qrvey/constants/APP_STATUS.js +9 -0
  292. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  293. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.js +13 -0
  294. package/dist/cjs/qrvey/constants/APP_TYPE.d.ts +16 -0
  295. package/dist/cjs/qrvey/constants/APP_TYPE.js +20 -0
  296. package/dist/cjs/qrvey/constants/index.d.ts +6 -0
  297. package/dist/cjs/qrvey/constants/index.js +6 -0
  298. package/dist/cjs/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  299. package/dist/cjs/qrvey/helpers/areStaticColumnValues.js +17 -0
  300. package/dist/cjs/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  301. package/dist/cjs/qrvey/helpers/getCategorizableExpression.js +22 -0
  302. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  303. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.js +54 -0
  304. package/dist/cjs/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  305. package/dist/cjs/qrvey/helpers/getDropdownAnswers.js +14 -0
  306. package/dist/cjs/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  307. package/dist/cjs/qrvey/helpers/getExpressionAnswers.js +22 -0
  308. package/dist/cjs/qrvey/helpers/getImageAnswers.d.ts +8 -0
  309. package/dist/cjs/qrvey/helpers/getImageAnswers.js +17 -0
  310. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  311. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.js +23 -0
  312. package/dist/cjs/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  313. package/dist/cjs/qrvey/helpers/getLookupAnswers.js +16 -0
  314. package/dist/cjs/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  315. package/dist/cjs/qrvey/helpers/getLookupDisplays.js +9 -0
  316. package/dist/cjs/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  317. package/dist/cjs/qrvey/helpers/getRatingAnswers.js +12 -0
  318. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  319. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.js +18 -0
  320. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  321. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.js +17 -0
  322. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  323. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
  324. package/dist/cjs/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  325. package/dist/cjs/qrvey/helpers/getYesNoAnswers.js +13 -0
  326. package/dist/cjs/qrvey/helpers/index.d.ts +17 -1
  327. package/dist/cjs/qrvey/helpers/index.js +17 -1
  328. package/dist/cjs/qrvey/helpers/isDataset.d.ts +2 -0
  329. package/dist/cjs/qrvey/helpers/isDataset.js +8 -0
  330. package/dist/cjs/qrvey/helpers/isForm.d.ts +2 -0
  331. package/dist/cjs/qrvey/helpers/isForm.js +8 -0
  332. package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
  333. package/dist/cjs/qrvey/helpers/transformValue.js +49 -0
  334. package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +2 -0
  335. package/dist/cjs/qrvey/interfaces/IAppStatus.js +2 -0
  336. package/dist/cjs/qrvey/interfaces/IAppType.d.ts +2 -0
  337. package/dist/cjs/qrvey/interfaces/IAppType.js +2 -0
  338. package/dist/cjs/qrvey/interfaces/IBModel.d.ts +19 -0
  339. package/dist/cjs/qrvey/interfaces/IBModel.js +2 -0
  340. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  341. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.js +2 -0
  342. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  343. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.js +2 -0
  344. package/dist/cjs/qrvey/interfaces/IBModelData.d.ts +4 -0
  345. package/dist/cjs/qrvey/interfaces/IBModelData.js +2 -0
  346. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  347. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +2 -0
  348. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  349. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +2 -0
  350. package/dist/cjs/qrvey/interfaces/IModel.d.ts +10 -0
  351. package/dist/cjs/qrvey/interfaces/IModel.js +2 -0
  352. package/dist/cjs/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  353. package/dist/cjs/qrvey/interfaces/IModelAnswer.js +2 -0
  354. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  355. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.js +2 -0
  356. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  357. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.js +2 -0
  358. package/dist/cjs/qrvey/interfaces/IModelColumn.d.ts +23 -0
  359. package/dist/cjs/qrvey/interfaces/IModelColumn.js +2 -0
  360. package/dist/cjs/qrvey/interfaces/IModelDataset.d.ts +7 -0
  361. package/dist/cjs/qrvey/interfaces/IModelDataset.js +2 -0
  362. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  363. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
  364. package/dist/cjs/qrvey/interfaces/index.d.ts +13 -0
  365. package/dist/cjs/qrvey/interfaces/index.js +13 -0
  366. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  367. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +21 -0
  368. package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  369. package/dist/cjs/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  370. package/dist/cjs/services/adapters/BModelToUIModel.adapter.js +26 -0
  371. package/dist/cjs/services/adapters/index.d.ts +1 -0
  372. package/dist/cjs/services/adapters/index.js +1 -0
  373. package/dist/cjs/services/api/Charts.api.d.ts +15 -0
  374. package/dist/cjs/services/api/Charts.api.js +37 -0
  375. package/dist/cjs/services/api/getAllDatasets.api.d.ts +9 -4
  376. package/dist/cjs/services/api/getAllDatasets.api.js +24 -15
  377. package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
  378. package/dist/cjs/services/api/getAllQrveys.api.js +1 -1
  379. package/dist/cjs/services/api/getDatasetColumns.api.d.ts +3 -3
  380. package/dist/cjs/services/api/getDatasetColumns.api.js +6 -3
  381. package/dist/cjs/services/api/getDatasetsByIds.api.d.ts +8 -0
  382. package/dist/cjs/services/api/getDatasetsByIds.api.js +30 -0
  383. package/dist/cjs/services/api/getModel.api.d.ts +1 -0
  384. package/dist/cjs/services/api/getModel.api.js +16 -0
  385. package/dist/cjs/services/api/index.d.ts +2 -0
  386. package/dist/cjs/services/api/index.js +2 -0
  387. package/dist/cjs/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  388. package/dist/cjs/services/constants/MODEL_ENDPOINT.js +7 -0
  389. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  390. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +7 -0
  391. package/dist/cjs/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  392. package/dist/cjs/services/constants/UCHART_ENDPOINT.js +7 -0
  393. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  394. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.js +7 -0
  395. package/dist/cjs/services/constants/index.d.ts +4 -0
  396. package/dist/cjs/services/constants/index.js +4 -0
  397. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  398. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +28 -0
  399. package/dist/cjs/services/helpers/index.d.ts +1 -0
  400. package/dist/cjs/services/helpers/index.js +1 -0
  401. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
  402. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +6 -0
  403. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
  404. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +6 -0
  405. package/dist/columns/constants/index.d.ts +4 -0
  406. package/dist/columns/constants/index.js +4 -0
  407. package/dist/{cjs/qrvey → columns}/helpers/getColumnsLabel.d.ts +1 -1
  408. package/dist/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
  409. package/dist/columns/helpers/getDatasetByColumn.d.ts +3 -0
  410. package/dist/columns/helpers/getDatasetByColumn.js +6 -0
  411. package/dist/columns/helpers/getDatasetColumn.d.ts +3 -0
  412. package/dist/columns/helpers/getDatasetColumn.js +12 -0
  413. package/dist/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
  414. package/dist/columns/helpers/getDatasetColumnyDatasets.js +8 -0
  415. package/dist/columns/helpers/getModelColumn.d.ts +9 -0
  416. package/dist/columns/helpers/getModelColumn.js +26 -0
  417. package/dist/columns/helpers/index.d.ts +5 -0
  418. package/dist/columns/helpers/index.js +5 -0
  419. package/dist/columns/interfaces/IBColumAnswer.d.ts +6 -0
  420. package/dist/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
  421. package/dist/columns/interfaces/IBColumn.d.ts +10 -3
  422. package/dist/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
  423. package/dist/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
  424. package/dist/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
  425. package/dist/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
  426. package/dist/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
  427. package/dist/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
  428. package/dist/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
  429. package/dist/{interfaces/general/IGeneralWidgetConfig.js → columns/interfaces/IBColumnAnswerGeneral.js} +0 -0
  430. package/dist/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
  431. package/dist/columns/interfaces/IBColumnAnswerImages.js +1 -0
  432. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
  433. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.js +1 -0
  434. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
  435. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +1 -0
  436. package/dist/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
  437. package/dist/columns/interfaces/IBColumnAnswerLookupValue.js +1 -0
  438. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
  439. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.js +1 -0
  440. package/dist/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
  441. package/dist/columns/interfaces/IBColumnAnswerSlidebar.js +1 -0
  442. package/dist/columns/interfaces/IColumn.d.ts +9 -3
  443. package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
  444. package/dist/columns/interfaces/IColumnImageUploadOption.js +1 -0
  445. package/dist/columns/interfaces/index.d.ts +11 -0
  446. package/dist/columns/interfaces/index.js +11 -0
  447. package/dist/dates/adapters/index.d.ts +5 -0
  448. package/dist/dates/adapters/index.js +5 -0
  449. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  450. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  451. package/dist/dates/constants/index.d.ts +2 -0
  452. package/dist/dates/constants/index.js +2 -0
  453. package/dist/dates/helpers/index.d.ts +1 -0
  454. package/dist/dates/helpers/index.js +1 -0
  455. package/dist/dates/index.d.ts +1 -0
  456. package/dist/dates/index.js +1 -0
  457. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
  458. package/dist/filters/adapters/FDToFlatUI.js +2 -1
  459. package/dist/filters/adapters/FDToUI.js +2 -4
  460. package/dist/filters/adapters/UIToFlatUI.js +1 -0
  461. package/dist/filters/adapters/UIToOldLogic.js +5 -3
  462. package/dist/filters/adapters/adaptFilterValues.js +2 -2
  463. package/dist/filters/adapters/flatUIToFD.js +1 -0
  464. package/dist/filters/adapters/flatUIToOldLogic.js +41 -25
  465. package/dist/filters/adapters/flatUIToUI.js +1 -0
  466. package/dist/filters/adapters/index.d.ts +2 -0
  467. package/dist/filters/adapters/index.js +2 -0
  468. package/dist/filters/adapters/logicToFlatUI.js +9 -8
  469. package/dist/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
  470. package/dist/filters/adapters/modelAnswerToFilterValue.js +12 -0
  471. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +1 -1
  472. package/dist/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
  473. package/dist/filters/constants/builder/index.d.ts +1 -0
  474. package/dist/filters/constants/builder/index.js +1 -0
  475. package/dist/filters/helpers/OLD_getAggFilters.d.ts +9 -0
  476. package/dist/filters/helpers/OLD_getAggFilters.js +84 -0
  477. package/dist/filters/helpers/backend/buildExpression.js +3 -2
  478. package/dist/filters/helpers/backend/getBackendValidator.d.ts +2 -2
  479. package/dist/filters/helpers/backend/getBackendValidator.js +4 -4
  480. package/dist/filters/helpers/backend/getBackendValues.js +13 -12
  481. package/dist/filters/helpers/backend/index.d.ts +1 -1
  482. package/dist/filters/helpers/backend/index.js +2 -1
  483. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
  484. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  485. package/dist/filters/helpers/common/excludeFiltersByParams.js +4 -4
  486. package/dist/filters/helpers/common/getFiltersByParams.d.ts +2 -2
  487. package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
  488. package/dist/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
  489. package/dist/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
  490. package/dist/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
  491. package/dist/filters/helpers/common/getValuesFromDataset.js +16 -0
  492. package/dist/filters/helpers/common/getValuesFromModel.d.ts +8 -0
  493. package/dist/filters/helpers/common/getValuesFromModel.js +16 -0
  494. package/dist/filters/helpers/common/index.d.ts +3 -1
  495. package/dist/filters/helpers/common/index.js +4 -1
  496. package/dist/filters/helpers/common/mergeFilters.d.ts +2 -2
  497. package/dist/filters/helpers/common/mergeFilters.js +15 -13
  498. package/dist/filters/helpers/index.d.ts +1 -0
  499. package/dist/filters/helpers/index.js +2 -0
  500. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  501. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
  502. package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
  503. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
  504. package/dist/filters/helpers/ui/getUIValues.js +21 -14
  505. package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  506. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +34 -0
  507. package/dist/filters/helpers/ui/index.d.ts +4 -0
  508. package/dist/filters/helpers/ui/index.js +4 -0
  509. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
  510. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +1 -1
  511. package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  512. package/dist/filters/helpers/ui/transformFilterValues.js +19 -0
  513. package/dist/filters/index.d.ts +1 -0
  514. package/dist/filters/index.js +1 -0
  515. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
  516. package/dist/filters/interfaces/backend/IFBData.d.ts +5 -0
  517. package/dist/filters/interfaces/backend/IFBData.js +1 -0
  518. package/dist/filters/interfaces/backend/index.d.ts +1 -0
  519. package/dist/filters/interfaces/backend/index.js +1 -0
  520. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
  521. package/dist/filters/interfaces/builder/index.d.ts +0 -1
  522. package/dist/filters/interfaces/builder/index.js +0 -1
  523. package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
  524. package/dist/filters/interfaces/common/IFSFilter.d.ts +2 -1
  525. package/dist/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
  526. package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
  527. package/dist/filters/interfaces/common/IFSGetDataValues.js +1 -0
  528. package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  529. package/dist/filters/interfaces/common/IFilterConfig.d.ts +2 -0
  530. package/dist/filters/interfaces/common/IFilterConfig.js +1 -0
  531. package/dist/filters/interfaces/common/index.d.ts +2 -2
  532. package/dist/filters/interfaces/common/index.js +2 -2
  533. package/dist/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
  534. package/dist/filters/interfaces/functions/IFFiltersGetData.js +1 -0
  535. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
  536. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +1 -0
  537. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
  538. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +1 -0
  539. package/dist/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +1 -1
  540. package/dist/filters/interfaces/functions/IFFiltersMergeFilters.js +1 -0
  541. package/dist/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
  542. package/dist/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +1 -0
  543. package/dist/filters/interfaces/functions/index.d.ts +5 -0
  544. package/dist/filters/interfaces/functions/index.js +5 -0
  545. package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  546. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  547. package/dist/filters/interfaces/ui/IFUColumn.d.ts +2 -2
  548. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  549. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
  550. package/dist/filters/interfaces/ui/index.d.ts +4 -3
  551. package/dist/filters/interfaces/ui/index.js +4 -3
  552. package/dist/filters/services/Filters.api.d.ts +52 -0
  553. package/dist/filters/services/Filters.api.js +128 -0
  554. package/dist/filters/services/UChartApi.d.ts +86 -0
  555. package/dist/filters/services/UChartApi.js +244 -0
  556. package/dist/filters/services/UChartPaginationApi.d.ts +114 -0
  557. package/dist/filters/services/UChartPaginationApi.js +289 -0
  558. package/dist/filters/services/index.d.ts +3 -0
  559. package/dist/filters/services/index.js +3 -0
  560. package/dist/format/definition.d.ts +31 -0
  561. package/dist/format/definition.js +32 -0
  562. package/dist/format/format.d.ts +2 -1
  563. package/dist/format/format.js +6 -3
  564. package/dist/format/index.d.ts +1 -0
  565. package/dist/format/index.js +1 -0
  566. package/dist/format/localization.d.ts +4 -0
  567. package/dist/format/localization.js +73 -0
  568. package/dist/general/array/getArrayByProperty.d.ts +7 -0
  569. package/dist/general/array/getArrayByProperty.js +15 -0
  570. package/dist/general/array/getUniqueArray.d.ts +9 -0
  571. package/dist/general/array/getUniqueArray.js +11 -0
  572. package/dist/general/array/index.d.ts +1 -0
  573. package/dist/general/array/index.js +1 -0
  574. package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
  575. package/dist/globalization/helpers/getI18nCalendar.js +65 -0
  576. package/dist/globalization/helpers/index.d.ts +1 -0
  577. package/dist/globalization/helpers/index.js +1 -0
  578. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  579. package/dist/globalization/interfaces/II18nConfig.js +1 -0
  580. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  581. package/dist/globalization/interfaces/II18nResource.js +1 -0
  582. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  583. package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  584. package/dist/globalization/interfaces/calendar/II18nCalendar.js +1 -0
  585. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  586. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.js +1 -0
  587. package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
  588. package/dist/globalization/interfaces/calendar/index.js +2 -0
  589. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  590. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  591. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  592. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
  593. package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  594. package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  595. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +3 -0
  596. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  597. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
  598. package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
  599. package/dist/globalization/interfaces/dashboard/index.js +1 -0
  600. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
  601. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
  602. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.js +1 -0
  603. package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
  604. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
  605. package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  606. package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
  607. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
  608. package/dist/globalization/interfaces/filters/index.d.ts +1 -0
  609. package/dist/globalization/interfaces/filters/index.js +1 -0
  610. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  611. package/dist/globalization/interfaces/index.d.ts +7 -2
  612. package/dist/globalization/interfaces/index.js +7 -2
  613. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  614. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
  615. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  616. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
  617. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  618. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
  619. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  620. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
  621. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  622. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
  623. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  624. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
  625. package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
  626. package/dist/globalization/interfaces/style_themes/index.js +6 -0
  627. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  628. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  629. package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
  630. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  631. package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  632. package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
  633. package/dist/globalization/labels/calendar/index.d.ts +1 -0
  634. package/dist/globalization/labels/calendar/index.js +1 -0
  635. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
  636. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
  637. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  638. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
  639. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  640. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
  641. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  642. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  643. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  644. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
  645. package/dist/globalization/labels/common/I18N_COMMON.js +2 -0
  646. package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  647. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +7 -0
  648. package/dist/globalization/labels/filters/I18N_FILTER.js +10 -0
  649. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
  650. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
  651. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
  652. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
  653. package/dist/globalization/labels/index.d.ts +6 -3
  654. package/dist/globalization/labels/index.js +6 -3
  655. package/dist/globalization/labels/panel/I18N_PANEL.js +1 -1
  656. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  657. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
  658. package/dist/globalization/labels/style_themes/index.d.ts +1 -0
  659. package/dist/globalization/labels/style_themes/index.js +1 -0
  660. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  661. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  662. package/dist/globalization/service/initI18n.d.ts +2 -2
  663. package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  664. package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
  665. package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  666. package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
  667. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
  668. package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
  669. package/dist/interfaces/format/index.d.ts +3 -0
  670. package/dist/interfaces/format/index.js +3 -0
  671. package/dist/interfaces/general/IWidgetConfig.d.ts +10 -0
  672. package/dist/interfaces/general/IWidgetConfig.js +1 -0
  673. package/dist/interfaces/general/index.d.ts +1 -1
  674. package/dist/interfaces/general/index.js +1 -1
  675. package/dist/interfaces/index.d.ts +1 -0
  676. package/dist/interfaces/index.js +1 -0
  677. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  678. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.js +13 -0
  679. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  680. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.js +11 -0
  681. package/dist/qrvey/constants/APP_STATUS.d.ts +5 -0
  682. package/dist/qrvey/constants/APP_STATUS.js +6 -0
  683. package/dist/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  684. package/dist/qrvey/constants/APP_STATUS_LIST.js +10 -0
  685. package/dist/qrvey/constants/APP_TYPE.d.ts +16 -0
  686. package/dist/qrvey/constants/APP_TYPE.js +17 -0
  687. package/dist/qrvey/constants/index.d.ts +6 -0
  688. package/dist/qrvey/constants/index.js +6 -0
  689. package/dist/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  690. package/dist/qrvey/helpers/areStaticColumnValues.js +13 -0
  691. package/dist/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  692. package/dist/qrvey/helpers/getCategorizableExpression.js +18 -0
  693. package/dist/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  694. package/dist/qrvey/helpers/getDataAnswersByColumn.js +50 -0
  695. package/dist/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  696. package/dist/qrvey/helpers/getDropdownAnswers.js +10 -0
  697. package/dist/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  698. package/dist/qrvey/helpers/getExpressionAnswers.js +18 -0
  699. package/dist/qrvey/helpers/getImageAnswers.d.ts +8 -0
  700. package/dist/qrvey/helpers/getImageAnswers.js +13 -0
  701. package/dist/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  702. package/dist/qrvey/helpers/getImageUploadHasAnalysis.js +19 -0
  703. package/dist/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  704. package/dist/qrvey/helpers/getLookupAnswers.js +12 -0
  705. package/dist/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  706. package/dist/qrvey/helpers/getLookupDisplays.js +5 -0
  707. package/dist/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  708. package/dist/qrvey/helpers/getRatingAnswers.js +8 -0
  709. package/dist/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  710. package/dist/qrvey/helpers/getSlidebarAnswers.js +14 -0
  711. package/dist/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  712. package/dist/qrvey/helpers/getSuffixTranslateByColumn.js +13 -0
  713. package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  714. package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
  715. package/dist/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  716. package/dist/qrvey/helpers/getYesNoAnswers.js +9 -0
  717. package/dist/qrvey/helpers/index.d.ts +17 -1
  718. package/dist/qrvey/helpers/index.js +17 -1
  719. package/dist/qrvey/helpers/isDataset.d.ts +2 -0
  720. package/dist/qrvey/helpers/isDataset.js +4 -0
  721. package/dist/qrvey/helpers/isForm.d.ts +2 -0
  722. package/dist/qrvey/helpers/isForm.js +4 -0
  723. package/dist/qrvey/helpers/transformValue.d.ts +8 -0
  724. package/dist/qrvey/helpers/transformValue.js +45 -0
  725. package/dist/qrvey/interfaces/IAppStatus.d.ts +2 -0
  726. package/dist/qrvey/interfaces/IAppStatus.js +1 -0
  727. package/dist/qrvey/interfaces/IAppType.d.ts +2 -0
  728. package/dist/qrvey/interfaces/IAppType.js +1 -0
  729. package/dist/qrvey/interfaces/IBModel.d.ts +19 -0
  730. package/dist/qrvey/interfaces/IBModel.js +1 -0
  731. package/dist/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  732. package/dist/qrvey/interfaces/IBModelBranchesMap.js +1 -0
  733. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  734. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.js +1 -0
  735. package/dist/qrvey/interfaces/IBModelData.d.ts +4 -0
  736. package/dist/qrvey/interfaces/IBModelData.js +1 -0
  737. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  738. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +1 -0
  739. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  740. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +1 -0
  741. package/dist/qrvey/interfaces/IModel.d.ts +10 -0
  742. package/dist/qrvey/interfaces/IModel.js +1 -0
  743. package/dist/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  744. package/dist/qrvey/interfaces/IModelAnswer.js +1 -0
  745. package/dist/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  746. package/dist/qrvey/interfaces/IModelBranchesMap.js +1 -0
  747. package/dist/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  748. package/dist/qrvey/interfaces/IModelBranchesMapBranch.js +1 -0
  749. package/dist/qrvey/interfaces/IModelColumn.d.ts +23 -0
  750. package/dist/qrvey/interfaces/IModelColumn.js +1 -0
  751. package/dist/qrvey/interfaces/IModelDataset.d.ts +7 -0
  752. package/dist/qrvey/interfaces/IModelDataset.js +1 -0
  753. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  754. package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
  755. package/dist/qrvey/interfaces/index.d.ts +13 -0
  756. package/dist/qrvey/interfaces/index.js +13 -0
  757. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  758. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +17 -0
  759. package/dist/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  760. package/dist/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  761. package/dist/services/adapters/BModelToUIModel.adapter.js +22 -0
  762. package/dist/services/adapters/index.d.ts +1 -0
  763. package/dist/services/adapters/index.js +1 -0
  764. package/dist/services/api/Charts.api.d.ts +15 -0
  765. package/dist/services/api/Charts.api.js +31 -0
  766. package/dist/services/api/getAllDatasets.api.d.ts +9 -4
  767. package/dist/services/api/getAllDatasets.api.js +24 -15
  768. package/dist/services/api/getAllQrveys.api.d.ts +1 -1
  769. package/dist/services/api/getAllQrveys.api.js +1 -1
  770. package/dist/services/api/getDatasetColumns.api.d.ts +3 -3
  771. package/dist/services/api/getDatasetColumns.api.js +9 -6
  772. package/dist/services/api/getDatasetsByIds.api.d.ts +8 -0
  773. package/dist/services/api/getDatasetsByIds.api.js +23 -0
  774. package/dist/services/api/getModel.api.d.ts +1 -0
  775. package/dist/services/api/getModel.api.js +9 -0
  776. package/dist/services/api/index.d.ts +2 -0
  777. package/dist/services/api/index.js +2 -0
  778. package/dist/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  779. package/dist/services/constants/MODEL_ENDPOINT.js +4 -0
  780. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  781. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +4 -0
  782. package/dist/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  783. package/dist/services/constants/UCHART_ENDPOINT.js +4 -0
  784. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  785. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.js +4 -0
  786. package/dist/services/constants/index.d.ts +4 -0
  787. package/dist/services/constants/index.js +4 -0
  788. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  789. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +24 -0
  790. package/dist/services/helpers/index.d.ts +1 -0
  791. package/dist/services/helpers/index.js +1 -0
  792. package/package.json +4 -7
  793. package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
  794. package/src/charts/constants/index.ts +1 -0
  795. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.ts +5 -0
  796. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.ts +7 -0
  797. package/src/columns/constants/index.ts +5 -0
  798. package/src/{qrvey → columns}/helpers/getColumnsLabel.ts +2 -1
  799. package/src/columns/helpers/getDatasetByColumn.ts +9 -0
  800. package/src/columns/helpers/getDatasetColumn.ts +15 -0
  801. package/src/columns/helpers/getDatasetColumnyDatasets.ts +11 -0
  802. package/src/columns/helpers/getModelColumn.ts +29 -0
  803. package/src/columns/helpers/index.ts +5 -0
  804. package/src/columns/interfaces/IBColumAnswer.ts +7 -0
  805. package/src/columns/interfaces/IBColumn.ts +10 -3
  806. package/src/columns/interfaces/IBColumnAnswerExpression.ts +6 -0
  807. package/src/columns/interfaces/IBColumnAnswerExpressionCategory.ts +7 -0
  808. package/src/columns/interfaces/IBColumnAnswerExpressionWord.ts +3 -0
  809. package/src/columns/interfaces/IBColumnAnswerGeneral.ts +4 -0
  810. package/src/columns/interfaces/IBColumnAnswerImages.ts +6 -0
  811. package/src/columns/interfaces/IBColumnAnswerLookupAnswer.ts +6 -0
  812. package/src/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.ts +6 -0
  813. package/src/columns/interfaces/IBColumnAnswerLookupValue.ts +5 -0
  814. package/src/columns/interfaces/IBColumnAnswerLookupValueValue.ts +8 -0
  815. package/src/columns/interfaces/IBColumnAnswerSlidebar.ts +3 -0
  816. package/src/columns/interfaces/IColumn.ts +9 -3
  817. package/src/columns/interfaces/IColumnImageUploadOption.ts +3 -0
  818. package/src/columns/interfaces/index.ts +12 -0
  819. package/src/dates/adapters/index.ts +5 -0
  820. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  821. package/src/dates/constants/index.ts +2 -0
  822. package/src/dates/helpers/index.ts +1 -0
  823. package/src/dates/index.ts +1 -0
  824. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +1 -1
  825. package/src/filters/adapters/FDToFlatUI.ts +2 -1
  826. package/src/filters/adapters/FDToUI.ts +2 -3
  827. package/src/filters/adapters/UIToFlatUI.ts +1 -0
  828. package/src/filters/adapters/UIToOldLogic.ts +4 -3
  829. package/src/filters/adapters/adaptFilterValues.ts +2 -2
  830. package/src/filters/adapters/flatUIToFD.ts +1 -0
  831. package/src/filters/adapters/flatUIToOldLogic.ts +36 -32
  832. package/src/filters/adapters/flatUIToUI.ts +1 -0
  833. package/src/filters/adapters/index.ts +4 -0
  834. package/src/filters/adapters/logicToFlatUI.ts +3 -2
  835. package/src/filters/adapters/modelAnswerToFilterValue.ts +15 -0
  836. package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +1 -1
  837. package/src/filters/constants/builder/STATIC_OPTION_COLUMNS.ts +2 -1
  838. package/src/filters/constants/builder/index.ts +1 -0
  839. package/src/filters/helpers/OLD_getAggFilters.ts +90 -0
  840. package/src/filters/helpers/backend/buildExpression.ts +2 -2
  841. package/src/filters/helpers/backend/getBackendValidator.ts +5 -5
  842. package/src/filters/helpers/backend/getBackendValues.ts +14 -12
  843. package/src/filters/helpers/backend/index.ts +2 -1
  844. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +3 -2
  845. package/src/filters/helpers/common/excludeFiltersByParams.ts +3 -3
  846. package/src/filters/helpers/common/getFiltersByParams.ts +4 -4
  847. package/src/filters/helpers/common/getMergeFiltersSettings.ts +2 -2
  848. package/src/filters/helpers/common/getParamsToGetFilterSettings.ts +2 -2
  849. package/src/filters/helpers/common/getValuesFromDataset.ts +19 -0
  850. package/src/filters/helpers/common/getValuesFromModel.ts +19 -0
  851. package/src/filters/helpers/common/index.ts +6 -1
  852. package/src/filters/helpers/common/mergeFilters.ts +20 -18
  853. package/src/filters/helpers/index.ts +3 -0
  854. package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
  855. package/src/filters/helpers/ui/getUIFlatFilterByParams.ts +1 -1
  856. package/src/filters/helpers/ui/getUIFlatFiltersByParams.ts +1 -1
  857. package/src/filters/helpers/ui/getUIValues.ts +23 -15
  858. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +36 -0
  859. package/src/filters/helpers/ui/index.ts +4 -0
  860. package/src/filters/helpers/ui/{resolveUIFlatFiltersByParams.ts → resolveUIFlatFilterByParams.ts} +3 -2
  861. package/src/filters/helpers/ui/transformFilterValues.ts +30 -0
  862. package/src/filters/index.ts +1 -0
  863. package/src/filters/interfaces/OLD_IFilterDetail.ts +3 -1
  864. package/src/filters/interfaces/backend/IFBData.ts +6 -0
  865. package/src/filters/interfaces/backend/index.ts +2 -0
  866. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +3 -5
  867. package/src/filters/interfaces/builder/index.ts +0 -1
  868. package/src/filters/interfaces/common/IFSColumn.ts +1 -1
  869. package/src/filters/interfaces/common/IFSFilter.ts +2 -1
  870. package/src/filters/interfaces/common/IFSFilterExtras.ts +2 -0
  871. package/src/filters/interfaces/common/IFSGetDataValues.ts +3 -0
  872. package/src/filters/interfaces/common/IFSParamsToGetFilter.ts +2 -0
  873. package/src/filters/interfaces/common/IFilterConfig.ts +3 -0
  874. package/src/filters/interfaces/common/index.ts +2 -2
  875. package/src/filters/interfaces/functions/IFFiltersGetData.ts +18 -0
  876. package/src/filters/interfaces/functions/IFFiltersGetValuesFromDataset.ts +11 -0
  877. package/src/filters/interfaces/functions/IFFiltersGetValuesFromModel.ts +11 -0
  878. package/src/filters/interfaces/{common/IFSMergeFiltersSettings.ts → functions/IFFiltersMergeFilters.ts} +1 -1
  879. package/src/filters/interfaces/{common/IFSParamsToGetFilterSettings.ts → functions/IFFiltersParamsToGetFilter.ts} +1 -1
  880. package/src/filters/interfaces/functions/index.ts +5 -0
  881. package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
  882. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
  883. package/src/filters/interfaces/ui/IFUColumn.ts +2 -2
  884. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
  885. package/src/filters/interfaces/ui/index.ts +4 -3
  886. package/src/filters/services/Filters.api.ts +151 -0
  887. package/src/filters/services/UChartApi.ts +265 -0
  888. package/src/filters/services/UChartPaginationApi.ts +328 -0
  889. package/src/filters/services/index.ts +3 -0
  890. package/src/format/definition.ts +50 -0
  891. package/src/format/format.ts +19 -15
  892. package/src/format/index.ts +1 -0
  893. package/src/format/localization.ts +75 -0
  894. package/src/general/array/getArrayByProperty.ts +14 -0
  895. package/src/general/array/getUniqueArray.ts +11 -0
  896. package/src/general/array/index.ts +1 -0
  897. package/src/globalization/helpers/getI18nCalendar.ts +68 -0
  898. package/src/globalization/helpers/index.ts +1 -0
  899. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  900. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
  901. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  902. package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
  903. package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
  904. package/src/globalization/interfaces/calendar/index.ts +2 -0
  905. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  906. package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
  907. package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
  908. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -0
  909. package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
  910. package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
  911. package/src/globalization/interfaces/dashboard/II18nDashboard.ts +3 -0
  912. package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
  913. package/src/globalization/interfaces/dashboard/index.ts +1 -0
  914. package/src/globalization/interfaces/filters/II18nFilter.ts +4 -0
  915. package/src/globalization/interfaces/filters/II18nFilterExtraInfo.ts +4 -0
  916. package/src/globalization/interfaces/filters/II18nFilterPanel.ts +2 -0
  917. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
  918. package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
  919. package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -1
  920. package/src/globalization/interfaces/filters/index.ts +1 -0
  921. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  922. package/src/globalization/interfaces/index.ts +7 -2
  923. package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
  924. package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
  925. package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
  926. package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
  927. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
  928. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
  929. package/src/globalization/interfaces/style_themes/index.ts +6 -0
  930. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
  931. package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
  932. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +2 -0
  933. package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
  934. package/src/globalization/labels/calendar/index.ts +1 -0
  935. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER.ts +1 -1
  936. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +1 -1
  937. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.ts +1 -1
  938. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +3 -2
  939. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +4 -2
  940. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +4 -3
  941. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +10 -8
  942. package/src/globalization/labels/common/I18N_COMMON.ts +2 -0
  943. package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
  944. package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +7 -0
  945. package/src/globalization/labels/filters/I18N_FILTER.ts +10 -0
  946. package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +2 -0
  947. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
  948. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +1 -1
  949. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +5 -3
  950. package/src/globalization/labels/index.ts +6 -3
  951. package/src/globalization/labels/panel/I18N_PANEL.ts +1 -1
  952. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
  953. package/src/globalization/labels/style_themes/index.ts +1 -0
  954. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
  955. package/src/globalization/service/i18nextBuilder.ts +4 -4
  956. package/src/globalization/service/initI18n.ts +3 -3
  957. package/src/interfaces/Qrvey.Interface.ts +1 -27
  958. package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
  959. package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
  960. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +10 -0
  961. package/src/interfaces/format/index.ts +3 -0
  962. package/src/interfaces/general/IWidgetConfig.ts +11 -0
  963. package/src/interfaces/general/index.ts +1 -1
  964. package/src/interfaces/index.ts +1 -0
  965. package/src/qrvey/constants/APP_DATASET_TYPE_LIST.ts +14 -0
  966. package/src/qrvey/constants/APP_FORM_TYPE_LIST.ts +12 -0
  967. package/src/qrvey/constants/APP_STATUS.ts +6 -0
  968. package/src/qrvey/constants/APP_STATUS_LIST.ts +11 -0
  969. package/src/qrvey/constants/APP_TYPE.ts +17 -0
  970. package/src/qrvey/constants/index.ts +6 -0
  971. package/src/qrvey/helpers/areStaticColumnValues.ts +15 -0
  972. package/src/qrvey/helpers/getCategorizableExpression.ts +20 -0
  973. package/src/qrvey/helpers/getDataAnswersByColumn.ts +56 -0
  974. package/src/qrvey/helpers/getDropdownAnswers.ts +13 -0
  975. package/src/qrvey/helpers/getExpressionAnswers.ts +21 -0
  976. package/src/qrvey/helpers/getImageAnswers.ts +16 -0
  977. package/src/qrvey/helpers/getImageUploadHasAnalysis.ts +23 -0
  978. package/src/qrvey/helpers/getLookupAnswers.ts +17 -0
  979. package/src/qrvey/helpers/getLookupDisplays.ts +9 -0
  980. package/src/qrvey/helpers/getRatingAnswers.ts +10 -0
  981. package/src/qrvey/helpers/getSlidebarAnswers.ts +16 -0
  982. package/src/qrvey/helpers/getSuffixTranslateByColumn.ts +13 -0
  983. package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
  984. package/src/qrvey/helpers/getYesNoAnswers.ts +12 -0
  985. package/src/qrvey/helpers/index.ts +17 -1
  986. package/src/qrvey/helpers/isDataset.ts +6 -0
  987. package/src/qrvey/helpers/isForm.ts +6 -0
  988. package/src/qrvey/helpers/transformValue.ts +49 -0
  989. package/src/qrvey/interfaces/IAppStatus.ts +3 -0
  990. package/src/qrvey/interfaces/IAppType.ts +3 -0
  991. package/src/qrvey/interfaces/IBModel.ts +20 -0
  992. package/src/qrvey/interfaces/IBModelBranchesMap.ts +6 -0
  993. package/src/qrvey/interfaces/IBModelBranchesMapBranch.ts +5 -0
  994. package/src/qrvey/interfaces/IBModelData.ts +5 -0
  995. package/src/qrvey/interfaces/IDataset.ts +1 -1
  996. package/src/qrvey/interfaces/IFunctionGetDataAnswersByColumn.ts +12 -0
  997. package/src/qrvey/interfaces/IFunctionGetValueWithSuffixes.ts +12 -0
  998. package/src/qrvey/interfaces/IModel.ts +11 -0
  999. package/src/qrvey/interfaces/IModelAnswer.ts +5 -0
  1000. package/src/qrvey/interfaces/IModelBranchesMap.ts +6 -0
  1001. package/src/qrvey/interfaces/IModelBranchesMapBranch.ts +5 -0
  1002. package/src/qrvey/interfaces/IModelColumn.ts +25 -0
  1003. package/src/qrvey/interfaces/IModelDataset.ts +7 -0
  1004. package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
  1005. package/src/qrvey/interfaces/index.ts +20 -0
  1006. package/src/services/adapters/BBranchesMapToUIBranchesMap.adapter.ts +20 -0
  1007. package/src/services/adapters/BColumnsToUIColumns.adapter.ts +9 -1
  1008. package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +4 -4
  1009. package/src/services/adapters/BModelToUIModel.adapter.ts +25 -0
  1010. package/src/services/adapters/index.ts +1 -0
  1011. package/src/services/api/Charts.api.ts +44 -0
  1012. package/src/services/api/getAllDatasets.api.ts +23 -16
  1013. package/src/services/api/getAllQrveys.api.ts +1 -1
  1014. package/src/services/api/getDatasetColumns.api.ts +12 -9
  1015. package/src/services/api/getDatasetsByIds.api.ts +26 -0
  1016. package/src/services/api/getModel.api.ts +10 -0
  1017. package/src/services/api/index.ts +2 -0
  1018. package/src/services/constants/MODEL_ENDPOINT.ts +6 -0
  1019. package/src/services/constants/QUESTION_LIST_BULK_ENDPOINT.ts +6 -0
  1020. package/src/services/constants/UCHART_ENDPOINT.ts +6 -0
  1021. package/src/services/constants/UCHART_PAGINATION_ENDPOINT.ts +6 -0
  1022. package/src/services/constants/index.ts +6 -0
  1023. package/src/services/helpers/getDefaultQuestionListOptionsAttributes.ts +24 -0
  1024. package/src/services/helpers/index.ts +1 -0
  1025. package/test/columns/isNumericalColumn.test.js +154 -0
  1026. package/test/format.test.js +11 -11
  1027. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1028. package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +0 -10
  1029. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1030. package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +0 -10
  1031. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +0 -11
  1032. package/src/interfaces/general/IGeneralWidgetConfig.ts +0 -10
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-8*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.10-1*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -80,6 +80,85 @@ Get a text and evaluate if it matchs with a token box label.
80
80
 
81
81
 
82
82
 
83
+ ### dist/columns/helpers/getColumnsLabel.js
84
+
85
+
86
+ #### getColumnLabels(column)
87
+
88
+ Get an string of the properties of the given column.
89
+
90
+
91
+
92
+
93
+ ##### Parameters
94
+
95
+ | Name | Type | Description | |
96
+ | ---- | ---- | ----------- | -------- |
97
+ | column | | The column |   |
98
+
99
+
100
+
101
+
102
+ ##### Returns
103
+
104
+
105
+ - an string with the property, aggregate or calculation label.
106
+
107
+
108
+
109
+
110
+ ### dist/columns/helpers/getModelColumn.js
111
+
112
+
113
+ #### getModelColumn(column, model)
114
+
115
+ Get a model question by column id.
116
+
117
+
118
+
119
+
120
+ ##### Parameters
121
+
122
+ | Name | Type | Description | |
123
+ | ---- | ---- | ----------- | -------- |
124
+ | column | | The column with info |   |
125
+ | model | | The model object |   |
126
+
127
+
128
+
129
+
130
+ ##### Returns
131
+
132
+
133
+ - the model question
134
+
135
+
136
+
137
+ #### getQuestionData(model)
138
+
139
+ [TODO: Change the question.data access path. IModel structure is different]
140
+ Get the question data array from model object
141
+
142
+
143
+
144
+
145
+ ##### Parameters
146
+
147
+ | Name | Type | Description | |
148
+ | ---- | ---- | ----------- | -------- |
149
+ | model | | The model object |   |
150
+
151
+
152
+
153
+
154
+ ##### Returns
155
+
156
+
157
+ - the question data array from model object
158
+
159
+
160
+
161
+
83
162
  ### dist/dates/adapters/mdyDateToDate.js
84
163
 
85
164
 
@@ -1459,6 +1538,33 @@ Generates a UI filter structure from the old logic structure (v2.0).
1459
1538
 
1460
1539
 
1461
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 |   |
1556
+
1557
+
1558
+
1559
+
1560
+ ##### Returns
1561
+
1562
+
1563
+ - Array of values
1564
+
1565
+
1566
+
1567
+
1462
1568
  ### dist/filters/adapters/transformFilters.js
1463
1569
 
1464
1570
 
@@ -1558,6 +1664,58 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1558
1664
 
1559
1665
 
1560
1666
 
1667
+ ### dist/filters/helpers/OLD_getAggFilters.js
1668
+
1669
+
1670
+ #### getAggFilters(logics, summaries)
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+ ##### Parameters
1678
+
1679
+ | Name | Type | Description | |
1680
+ | ---- | ---- | ----------- | -------- |
1681
+ | logics | | |   |
1682
+ | summaries | | |   |
1683
+
1684
+
1685
+
1686
+
1687
+ ##### Returns
1688
+
1689
+
1690
+ -
1691
+
1692
+
1693
+
1694
+ #### getAggregateFilters(logics, formatToFilters)
1695
+
1696
+ Filters and gets the filters used for aggregate values.
1697
+
1698
+
1699
+
1700
+
1701
+ ##### Parameters
1702
+
1703
+ | Name | Type | Description | |
1704
+ | ---- | ---- | ----------- | -------- |
1705
+ | logics | | The filter logic structure |   |
1706
+ | formatToFilters | | Flag to change de way of returning the filter structure. |   |
1707
+
1708
+
1709
+
1710
+
1711
+ ##### Returns
1712
+
1713
+
1714
+ - the aggregate filters in the IFilterFilters way or as logic structure.
1715
+
1716
+
1717
+
1718
+
1561
1719
  ### dist/filters/helpers/applyHierarchyForAggFilters.js
1562
1720
 
1563
1721
 
@@ -1669,12 +1827,12 @@ Gets the Scopes IDS for the Available Scope function by any config
1669
1827
 
1670
1828
 
1671
1829
 
1672
- ### dist/general/array/delete.js
1830
+ ### dist/filters/services/Filters.api.js
1673
1831
 
1674
1832
 
1675
- #### ArrayDelete(array, index)
1833
+ #### getModel(qrveyid)
1676
1834
 
1677
- Inmutable Array Item deletion
1835
+ Get the model by Qrvey ID
1678
1836
 
1679
1837
 
1680
1838
 
@@ -1683,8 +1841,7 @@ Inmutable Array Item deletion
1683
1841
 
1684
1842
  | Name | Type | Description | |
1685
1843
  | ---- | ---- | ----------- | -------- |
1686
- | array | `Array` | a collection of items to delete |   |
1687
- | index | `Number` | the position of the item to delete |   |
1844
+ | qrveyid | | The Qrvey ID |   |
1688
1845
 
1689
1846
 
1690
1847
 
@@ -1692,20 +1849,13 @@ Inmutable Array Item deletion
1692
1849
  ##### Returns
1693
1850
 
1694
1851
 
1695
- - a new Array or the given parameter when is empty or not an array
1696
-
1697
-
1698
-
1852
+ - a promise with the resulting model
1699
1853
 
1700
- ### dist/general/array/filterNestedTree.js
1701
1854
 
1702
1855
 
1703
- #### filterNestedTree(arr, childArrKey, condition)
1856
+ #### getDatasets(qrveyids)
1704
1857
 
1705
- Filters a nested tree array by a custom condition on the last child node
1706
- - If the given arguments are not valid, the function returns the first argument.
1707
- - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1708
- - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1858
+ Get a dataset list from a collection of Qrvey IDs
1709
1859
 
1710
1860
 
1711
1861
 
@@ -1714,9 +1864,7 @@ Filters a nested tree array by a custom condition on the last child node
1714
1864
 
1715
1865
  | Name | Type | Description | |
1716
1866
  | ---- | ---- | ----------- | -------- |
1717
- | arr | | nested tree array |   |
1718
- | childArrKey | | property representing the children array on the nested tree |   |
1719
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree |   |
1867
+ | qrveyids | | Collection of Qrvey IDs |   |
1720
1868
 
1721
1869
 
1722
1870
 
@@ -1724,17 +1872,13 @@ Filters a nested tree array by a custom condition on the last child node
1724
1872
  ##### Returns
1725
1873
 
1726
1874
 
1727
- - array filtered
1728
-
1729
-
1730
-
1875
+ - a promise
1731
1876
 
1732
- ### dist/general/array/flattenDeep.js
1733
1877
 
1734
1878
 
1735
- #### flattenDeep(arr)
1879
+ #### getDataValues(uFilter, filterLogic, chartSettings, resetApi)
1736
1880
 
1737
- Flat deeply an array
1881
+ Get a promise with a preview of resulting data. Depending on the validator, the endpoint will change.
1738
1882
 
1739
1883
 
1740
1884
 
@@ -1743,7 +1887,10 @@ Flat deeply an array
1743
1887
 
1744
1888
  | Name | Type | Description | |
1745
1889
  | ---- | ---- | ----------- | -------- |
1746
- | arr | | Array to flat deeply |   |
1890
+ | uFilter | | The Filter Builder Filter |   |
1891
+ | filterLogic | | Additional filter logic to apply in the preview |   |
1892
+ | chartSettings | | |   |
1893
+ | resetApi | | flag to determine when the api should be reseted. |   |
1747
1894
 
1748
1895
 
1749
1896
 
@@ -1751,17 +1898,29 @@ Flat deeply an array
1751
1898
  ##### Returns
1752
1899
 
1753
1900
 
1754
- - flatten array
1901
+ - a promise with a preview of resulting data.
1755
1902
 
1756
1903
 
1757
1904
 
1905
+ #### getAvailableScopeIds()
1758
1906
 
1759
- ### dist/general/array/getFirstIndexFromArray.js
1907
+ Gets the available scopes and scope IDs
1760
1908
 
1761
1909
 
1762
- #### getFirstIndexFromArray(array, callback)
1763
1910
 
1764
- Gets the first index from the array by a callback condition
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
1765
1924
 
1766
1925
 
1767
1926
 
@@ -1770,8 +1929,7 @@ Gets the first index from the array by a callback condition
1770
1929
 
1771
1930
  | Name | Type | Description | |
1772
1931
  | ---- | ---- | ----------- | -------- |
1773
- | array | | |   |
1774
- | callback | | function callback |   |
1932
+ | config | | the config. |   |
1775
1933
 
1776
1934
 
1777
1935
 
@@ -1779,17 +1937,17 @@ Gets the first index from the array by a callback condition
1779
1937
  ##### Returns
1780
1938
 
1781
1939
 
1782
- - the first index of the array. -1 when the condition is not satisfied
1940
+ - `Void`
1783
1941
 
1784
1942
 
1785
1943
 
1786
1944
 
1787
- ### dist/general/array/getLastIndexFromArray.js
1945
+ ### dist/filters/services/UChartApi.js
1788
1946
 
1789
1947
 
1790
- #### getLastIndexFromArray(array, callback)
1948
+ #### this.getChartResult(config, uFilter, filterLogic, chartSettings)
1791
1949
 
1792
- Gets the last index from the array by a callback condition
1950
+ Gets a promise with a resulting data
1793
1951
 
1794
1952
 
1795
1953
 
@@ -1798,8 +1956,10 @@ Gets the last index from the array by a callback condition
1798
1956
 
1799
1957
  | Name | Type | Description | |
1800
1958
  | ---- | ---- | ----------- | -------- |
1801
- | array | | |   |
1802
- | callback | | function callback |   |
1959
+ | config | | the config |   |
1960
+ | uFilter | | The filter Builder filter |   |
1961
+ | filterLogic | | Additional filter logic to apply in the preview |   |
1962
+ | chartSettings | | The settings of the chart. For Aggregate Columns. |   |
1803
1963
 
1804
1964
 
1805
1965
 
@@ -1807,17 +1967,13 @@ Gets the last index from the array by a callback condition
1807
1967
  ##### Returns
1808
1968
 
1809
1969
 
1810
- - the last index of the array. -1 when the condition is not satisfied
1811
-
1812
-
1970
+ - a promise with a resulting data
1813
1971
 
1814
1972
 
1815
- ### dist/general/function/debounce.js
1816
-
1817
1973
 
1818
- #### debounce(fn, time)
1974
+ #### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
1819
1975
 
1820
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1976
+ Gets request body structure
1821
1977
 
1822
1978
 
1823
1979
 
@@ -1826,8 +1982,9 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1826
1982
 
1827
1983
  | Name | Type | Description | |
1828
1984
  | ---- | ---- | ----------- | -------- |
1829
- | fn | `Function` | original Function |   |
1830
- | time | `Number` | default 500ms |   |
1985
+ | uFilter | | The filter Builder filter |   |
1986
+ | filterLogic | | Additional filter logic to apply in the preview |   |
1987
+ | chartSettings | | The settings of the chart. For Aggregate Columns. |   |
1831
1988
 
1832
1989
 
1833
1990
 
@@ -1835,17 +1992,13 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
1835
1992
  ##### Returns
1836
1993
 
1837
1994
 
1838
- - `Function` debounced functions
1839
-
1840
-
1841
-
1995
+ - the request body structure
1842
1996
 
1843
- ### dist/general/function/throttled.js
1844
1997
 
1845
1998
 
1846
- #### throttled(fn, time)
1999
+ #### this._getChartBody(uFilter, chartSettings)
1847
2000
 
1848
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
2001
+ Gets chart body structure
1849
2002
 
1850
2003
 
1851
2004
 
@@ -1854,8 +2007,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1854
2007
 
1855
2008
  | Name | Type | Description | |
1856
2009
  | ---- | ---- | ----------- | -------- |
1857
- | fn | `Function` | original Function |   |
1858
- | time | `Number` | default 500ms |   |
2010
+ | uFilter | | The filter Builder filter |   |
2011
+ | chartSettings | | The settings of the chart. For Aggregate Columns. |   |
1859
2012
 
1860
2013
 
1861
2014
 
@@ -1863,18 +2016,13 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1863
2016
  ##### Returns
1864
2017
 
1865
2018
 
1866
- - `Function` throttled function
1867
-
1868
-
2019
+ - the chart body structure
1869
2020
 
1870
2021
 
1871
- ### dist/general/mix/compareDeep.js
1872
-
1873
2022
 
1874
- #### compareDeep(object1, object2)
2023
+ #### this._getDimensionsBody(uFilter, chartSettings)
1875
2024
 
1876
- Compares two objects to know if they are equals. Go across nested objects.
1877
- Includes arrays in the comparison.
2025
+ Gets dimension body structure
1878
2026
 
1879
2027
 
1880
2028
 
@@ -1883,8 +2031,8 @@ Includes arrays in the comparison.
1883
2031
 
1884
2032
  | Name | Type | Description | |
1885
2033
  | ---- | ---- | ----------- | -------- |
1886
- | object1 | | First Object to compare |   |
1887
- | object2 | | Second Object to compare |   |
2034
+ | uFilter | | The filter Builder filter |   |
2035
+ | chartSettings | | The settings of the chart. For Aggregate Columns. |   |
1888
2036
 
1889
2037
 
1890
2038
 
@@ -1892,17 +2040,13 @@ Includes arrays in the comparison.
1892
2040
  ##### Returns
1893
2041
 
1894
2042
 
1895
- - True: objects are equal. False: Objects are not equal. Undefined: invalid
1896
-
1897
-
2043
+ - the dimension body structure
1898
2044
 
1899
2045
 
1900
- ### dist/general/mix/getTag.js
1901
-
1902
2046
 
1903
- #### getTag(value)
2047
+ #### this._getMaxDataPoints(column, chartSettings)
1904
2048
 
1905
- Gets the `toStringTag` of `value`.
2049
+ Gets max data point number
1906
2050
 
1907
2051
 
1908
2052
 
@@ -1911,7 +2055,8 @@ Gets the `toStringTag` of `value`.
1911
2055
 
1912
2056
  | Name | Type | Description | |
1913
2057
  | ---- | ---- | ----------- | -------- |
1914
- | value | | The value to query. |   |
2058
+ | column | | The column to filter |   |
2059
+ | chartSettings | | The settings of the chart. For Aggregate Columns. |   |
1915
2060
 
1916
2061
 
1917
2062
 
@@ -1919,17 +2064,13 @@ Gets the `toStringTag` of `value`.
1919
2064
  ##### Returns
1920
2065
 
1921
2066
 
1922
- - `string` Returns the `toStringTag`.
1923
-
1924
-
2067
+ - max data point number
1925
2068
 
1926
2069
 
1927
- ### dist/general/mix/importScripts.js
1928
-
1929
2070
 
1930
- #### importScripts(scripts)
2071
+ #### this._getSortOption(column)
1931
2072
 
1932
- Import a set of external Scripts given the URL in both serie and cascade way
2073
+ Gets sort option structure
1933
2074
 
1934
2075
 
1935
2076
 
@@ -1938,54 +2079,21 @@ Import a set of external Scripts given the URL in both serie and cascade way
1938
2079
 
1939
2080
  | Name | Type | Description | |
1940
2081
  | ---- | ---- | ----------- | -------- |
1941
- | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1942
- | scripts.url | `String` | CDN URL | &nbsp; |
1943
- | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
1944
- | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1945
- | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1946
- | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
2082
+ | column | | The column to filter | &nbsp; |
1947
2083
 
1948
2084
 
1949
2085
 
1950
2086
 
1951
- ##### Examples
2087
+ ##### Returns
1952
2088
 
1953
- ```javascript
1954
- // 1) Simple script (paralell loading)
1955
- importScripts(['http://myscript.js', 'http://another.js']);
1956
2089
 
1957
- // 2) Loading `.js` and `.esm.js` script (parallel loading)
1958
- importScripts([
1959
- { url: 'http://myscript.esm.js', type: 'module' },
1960
- { url: 'http://myscript.js', noModule: true }
1961
- ]);
2090
+ - sort option structure
1962
2091
 
1963
- // 3) import dependent scripts (cascade)
1964
- importScripts([
1965
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
1966
- ]);
1967
2092
 
1968
- // 4) mix
1969
- importScripts([
1970
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
1971
- { url: 'http://another.esm.js', type: 'module' },
1972
- { url: 'http://another.js', noModule: true },
1973
- 'http://simplescript.js'
1974
- ]);
1975
- ```
1976
2093
 
2094
+ #### this._getSummariesBody(uFilter)
1977
2095
 
1978
- ##### Returns
1979
-
1980
-
1981
- - `Promise` Promise when all script have been loaded
1982
-
1983
-
1984
-
1985
- #### loadScript(url, type, noModule)
1986
-
1987
- Creates the script element and appends to document.head
1988
- return a Promise that is resolved when the script is loaded
2096
+ Gets summaries body structure
1989
2097
 
1990
2098
 
1991
2099
 
@@ -1994,9 +2102,7 @@ return a Promise that is resolved when the script is loaded
1994
2102
 
1995
2103
  | Name | Type | Description | |
1996
2104
  | ---- | ---- | ----------- | -------- |
1997
- | url | `String` | Cdn Url | &nbsp; |
1998
- | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1999
- | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2105
+ | uFilter | | The filter Builder filter | &nbsp; |
2000
2106
 
2001
2107
 
2002
2108
 
@@ -2004,17 +2110,13 @@ return a Promise that is resolved when the script is loaded
2004
2110
  ##### Returns
2005
2111
 
2006
2112
 
2007
- - `Void`
2008
-
2009
-
2010
-
2113
+ - summaries body structure
2011
2114
 
2012
- ### dist/general/mix/isEmpty.js
2013
2115
 
2014
2116
 
2015
- #### isEmpty(variable, includeFalsy)
2117
+ #### this._refineBodies(bodies, uFilter)
2016
2118
 
2017
- Validates if the given argument is empty
2119
+ Refines the body structure
2018
2120
 
2019
2121
 
2020
2122
 
@@ -2023,8 +2125,8 @@ Validates if the given argument is empty
2023
2125
 
2024
2126
  | Name | Type | Description | |
2025
2127
  | ---- | ---- | ----------- | -------- |
2026
- | variable | | the given variable | &nbsp; |
2027
- | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
2128
+ | bodies | | The body structure | &nbsp; |
2129
+ | uFilter | | The filter Builder filter | &nbsp; |
2028
2130
 
2029
2131
 
2030
2132
 
@@ -2032,19 +2134,13 @@ Validates if the given argument is empty
2032
2134
  ##### Returns
2033
2135
 
2034
2136
 
2035
- - true: the given argument is empty; false: is not.
2036
-
2037
-
2137
+ - the body structure
2038
2138
 
2039
2139
 
2040
- ### dist/general/mix/isNaNV2.js
2041
-
2042
2140
 
2043
- #### isNaNV2(variable)
2141
+ #### this._getValidationType(column, vaildator)
2044
2142
 
2045
- Validates if the recieved number is NaN type.
2046
- This function recieves any variable but will return false.
2047
- Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
2143
+ Gets the validation type for the preview request
2048
2144
 
2049
2145
 
2050
2146
 
@@ -2053,7 +2149,8 @@ Validates if variable is null, undefined, or an empty string, also, the function
2053
2149
 
2054
2150
  | Name | Type | Description | |
2055
2151
  | ---- | ---- | ----------- | -------- |
2056
- | variable | | the variable to validate | &nbsp; |
2152
+ | column | | The column to filter | &nbsp; |
2153
+ | vaildator | | Validator Type | &nbsp; |
2057
2154
 
2058
2155
 
2059
2156
 
@@ -2061,18 +2158,13 @@ Validates if variable is null, undefined, or an empty string, also, the function
2061
2158
  ##### Returns
2062
2159
 
2063
2160
 
2064
- - True if variable is a NaN or false otherwise
2065
-
2066
-
2161
+ - the validator type for the preview request
2067
2162
 
2068
2163
 
2069
- ### dist/general/mix/isNull.js
2070
-
2071
2164
 
2072
- #### isNull(arg)
2165
+ #### this._getDataFromResponse(response, uFilter)
2073
2166
 
2074
- return if a given variable is either `null` or `undefined`
2075
- useful to avoid falsify validating Number Zero (0)
2167
+ Gets the Data from preview Response
2076
2168
 
2077
2169
 
2078
2170
 
@@ -2081,7 +2173,8 @@ useful to avoid falsify validating Number Zero (0)
2081
2173
 
2082
2174
  | Name | Type | Description | |
2083
2175
  | ---- | ---- | ----------- | -------- |
2084
- | arg | `any` | | &nbsp; |
2176
+ | response | | The preview presponse | &nbsp; |
2177
+ | uFilter | | The filter Builder filter | &nbsp; |
2085
2178
 
2086
2179
 
2087
2180
 
@@ -2089,19 +2182,13 @@ useful to avoid falsify validating Number Zero (0)
2089
2182
  ##### Returns
2090
2183
 
2091
2184
 
2092
- - `Boolean`
2093
-
2094
-
2095
-
2185
+ - The resulting data
2096
2186
 
2097
- ### dist/general/mix/randomId.js
2098
2187
 
2099
2188
 
2100
- #### randomId(length, exclude)
2189
+ #### this._getResponseSummaries(records, values)
2101
2190
 
2102
- Creates a random string
2103
- - If the first given argument is different than a length number, the variable is replaced by a default number
2104
- - If the optional second given argument is passed the random string is permutated.
2191
+ Gets summaries from preview response
2105
2192
 
2106
2193
 
2107
2194
 
@@ -2110,8 +2197,8 @@ Creates a random string
2110
2197
 
2111
2198
  | Name | Type | Description | |
2112
2199
  | ---- | ---- | ----------- | -------- |
2113
- | length | `Number` | size of the generated string. Default 8 | &nbsp; |
2114
- | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
2200
+ | records | | The data from preview response | &nbsp; |
2201
+ | values | | The values from the preview response | &nbsp; |
2115
2202
 
2116
2203
 
2117
2204
 
@@ -2119,28 +2206,19 @@ Creates a random string
2119
2206
  ##### Returns
2120
2207
 
2121
2208
 
2122
- - `String` Random string
2123
-
2124
-
2209
+ - the sumaries
2125
2210
 
2126
2211
 
2127
- ### dist/general/mix/size.js
2128
-
2129
2212
 
2130
- #### size(obj)
2131
2213
 
2132
- Gets the length of the given array.
2133
- - Useful for Object, Array and string type.
2134
- - For `null` or `undefined` or else argument the returned value will be 0.
2214
+ ### dist/filters/services/UChartPaginationApi.js
2135
2215
 
2136
2216
 
2217
+ #### this.getAfterKey()
2137
2218
 
2219
+ Gets afterKey object
2138
2220
 
2139
- ##### Parameters
2140
2221
 
2141
- | Name | Type | Description | |
2142
- | ---- | ---- | ----------- | -------- |
2143
- | obj | `Any` | Any object-type variable | &nbsp; |
2144
2222
 
2145
2223
 
2146
2224
 
@@ -2148,18 +2226,13 @@ Gets the length of the given array.
2148
2226
  ##### Returns
2149
2227
 
2150
2228
 
2151
- - `Number` the size of the given variable
2152
-
2153
-
2154
-
2229
+ -
2155
2230
 
2156
- ### dist/general/object/cloneDeep.js
2157
2231
 
2158
2232
 
2159
- #### cloneDeep(obj)
2233
+ #### this.getChartResult(config, uFilter, filterLogic, chartSettings)
2160
2234
 
2161
- A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
2162
- Not to use this function with inner objects and functions
2235
+ Gets a promise with a resulting data
2163
2236
 
2164
2237
 
2165
2238
 
@@ -2168,7 +2241,10 @@ Not to use this function with inner objects and functions
2168
2241
 
2169
2242
  | Name | Type | Description | |
2170
2243
  | ---- | ---- | ----------- | -------- |
2171
- | obj | | The object | &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; |
2172
2248
 
2173
2249
 
2174
2250
 
@@ -2176,21 +2252,13 @@ Not to use this function with inner objects and functions
2176
2252
  ##### Returns
2177
2253
 
2178
2254
 
2179
- - The new reference object or the given object if the parsing is incorrect or empty
2180
-
2181
-
2182
-
2183
-
2184
- ### dist/general/object/get.js
2255
+ - a promise with a resulting data
2185
2256
 
2186
2257
 
2187
- #### _get(baseObject, path, defaultValue)
2188
2258
 
2189
- Like lodash _.get.
2190
- Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
2259
+ #### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
2191
2260
 
2192
- Empty arrays and empty objects are returned but the defaultValue is not
2193
- Undefined and null values will return the defaultValue.
2261
+ Gets request body structure
2194
2262
 
2195
2263
 
2196
2264
 
@@ -2199,59 +2267,23 @@ Undefined and null values will return the defaultValue.
2199
2267
 
2200
2268
  | Name | Type | Description | |
2201
2269
  | ---- | ---- | ----------- | -------- |
2202
- | baseObject | | The object to query | &nbsp; |
2203
- | path | | The string path or collection of string paths of the property to get. | &nbsp; |
2204
- | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
2205
-
2206
-
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; |
2207
2273
 
2208
2274
 
2209
- ##### Examples
2210
-
2211
- ```javascript
2212
- // returns 'Hello'
2213
- _get({ item1: 'Hello', item2: 'World' }, 'item1')
2214
- ```
2215
- ```javascript
2216
- // returns 'A simple Hello'
2217
- _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
2218
- ```
2219
- ```javascript
2220
- // returns 'Hello Again'
2221
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
2222
- ```
2223
- ```javascript
2224
- // returns 'Hello 2'
2225
- _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
2226
- ```
2227
- ```javascript
2228
- // returns 'Hello Again'
2229
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
2230
- ```
2231
2275
 
2232
2276
 
2233
2277
  ##### Returns
2234
2278
 
2235
2279
 
2236
- - the resolved value.
2237
-
2238
-
2239
-
2280
+ - the request body structure
2240
2281
 
2241
- ### dist/general/object/getAttribute.js
2242
2282
 
2243
2283
 
2244
- #### getAttribute(obj, key)
2284
+ #### this._getDimensionsBody(uFilter)
2245
2285
 
2246
- Searchs for properties in different case styles such as: lower, upper, camel and pascal
2247
- - To optimize the searching, it is required a key in a snake_case style
2248
- - List of cases that do not match
2249
- -- From lower to snake case
2250
- -- From upper to snake case
2251
- -- From lower to camel case
2252
- -- From upper to camel case
2253
- -- From lower to pascal case
2254
- -- From upper to pascal case
2286
+ Gets dimension body structure
2255
2287
 
2256
2288
 
2257
2289
 
@@ -2260,33 +2292,21 @@ Searchs for properties in different case styles such as: lower, upper, camel and
2260
2292
 
2261
2293
  | Name | Type | Description | |
2262
2294
  | ---- | ---- | ----------- | -------- |
2263
- | obj | `object` | object to look for | &nbsp; |
2264
- | key | `string` | String attribute in snake_case style | &nbsp; |
2265
-
2295
+ | uFilter | | The filter Builder filter | &nbsp; |
2266
2296
 
2267
2297
 
2268
2298
 
2269
- ##### Examples
2270
-
2271
- ```javascript
2272
- getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2273
- ```
2274
-
2275
2299
 
2276
2300
  ##### Returns
2277
2301
 
2278
2302
 
2279
- - `Void`
2280
-
2281
-
2282
-
2303
+ - the dimension body structure
2283
2304
 
2284
- ### dist/general/object/hasProperty.js
2285
2305
 
2286
2306
 
2287
- #### _hasProperty(obj, property)
2307
+ #### this._getDimensionsBodyAdapter(dimensions)
2288
2308
 
2289
- Use the hasOwnProperty in order to verify if the given property exists in the object.
2309
+ Get a dimension body structure foor pagination endpoint
2290
2310
 
2291
2311
 
2292
2312
 
@@ -2295,38 +2315,21 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
2295
2315
 
2296
2316
  | Name | Type | Description | |
2297
2317
  | ---- | ---- | ----------- | -------- |
2298
- | obj | `object` | an object | &nbsp; |
2299
- | property | `string` | String to verify if exists in the object as property | &nbsp; |
2300
-
2301
-
2302
-
2303
-
2304
- ##### Examples
2318
+ | dimensions | | | &nbsp; |
2305
2319
 
2306
- ```javascript
2307
- const prop = 'prop2'
2308
- const obj1 = { prop1: 'hello', prop2: 'world'}
2309
- _hasProperty(ob1, prop1) // true
2310
2320
 
2311
- const obj2 = { prop1: 'hello world' }
2312
- _hasProperty(ob1, prop2) // false
2313
- ```
2314
2321
 
2315
2322
 
2316
2323
  ##### Returns
2317
2324
 
2318
2325
 
2319
- - True if the object has the given property; otherwise, false.
2320
-
2321
-
2322
-
2326
+ -
2323
2327
 
2324
- ### dist/general/object/isObject.js
2325
2328
 
2326
2329
 
2327
- #### isObject(obj)
2330
+ #### this._getMaxDataPoints(column, chartSettings)
2328
2331
 
2329
- Checks if the given argument is an object type
2332
+ Gets max data point number
2330
2333
 
2331
2334
 
2332
2335
 
@@ -2335,7 +2338,8 @@ Checks if the given argument is an object type
2335
2338
 
2336
2339
  | Name | Type | Description | |
2337
2340
  | ---- | ---- | ----------- | -------- |
2338
- | obj | | the variable to check | &nbsp; |
2341
+ | column | | The column to filter | &nbsp; |
2342
+ | chartSettings | | The settings of the chart. For Aggregate Columns. | &nbsp; |
2339
2343
 
2340
2344
 
2341
2345
 
@@ -2343,18 +2347,13 @@ Checks if the given argument is an object type
2343
2347
  ##### Returns
2344
2348
 
2345
2349
 
2346
- - True: It is an object; False: It is not.
2347
-
2348
-
2349
-
2350
+ - max data point number
2350
2351
 
2351
- ### dist/general/object/mapValues.js
2352
2352
 
2353
2353
 
2354
- #### mapValues(baseObject, iteratee)
2354
+ #### this._getSortOption(column)
2355
2355
 
2356
- Invoke iteratee (function) for each object key-value pair
2357
- and return a mapped object
2356
+ Gets sort option structure
2358
2357
 
2359
2358
 
2360
2359
 
@@ -2363,8 +2362,7 @@ and return a mapped object
2363
2362
 
2364
2363
  | Name | Type | Description | |
2365
2364
  | ---- | ---- | ----------- | -------- |
2366
- | baseObject | `Object` | Base object. | &nbsp; |
2367
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
2365
+ | column | | The column to filter | &nbsp; |
2368
2366
 
2369
2367
 
2370
2368
 
@@ -2372,18 +2370,13 @@ and return a mapped object
2372
2370
  ##### Returns
2373
2371
 
2374
2372
 
2375
- - `Object` New mapped object.
2376
-
2377
-
2378
-
2373
+ - sort option structure
2379
2374
 
2380
- ### dist/general/object/mergeDeep.js
2381
2375
 
2382
2376
 
2383
- #### mergeDeep(obj1, obj2, settings)
2377
+ #### this._getSummariesBody(uFilter)
2384
2378
 
2385
- Merges two objects into a new one.
2386
- The second given argument to the first given argument.
2379
+ Gets summaries body structure
2387
2380
 
2388
2381
 
2389
2382
 
@@ -2392,9 +2385,7 @@ The second given argument to the first given argument.
2392
2385
 
2393
2386
  | Name | Type | Description | |
2394
2387
  | ---- | ---- | ----------- | -------- |
2395
- | obj1 | | The target object | &nbsp; |
2396
- | obj2 | | The object to be merged | &nbsp; |
2397
- | settings | | Object settings for this function | &nbsp; |
2388
+ | uFilter | | The filter Builder filter | &nbsp; |
2398
2389
 
2399
2390
 
2400
2391
 
@@ -2402,13 +2393,13 @@ The second given argument to the first given argument.
2402
2393
  ##### Returns
2403
2394
 
2404
2395
 
2405
- - a new merged object
2396
+ - summaries body structure
2406
2397
 
2407
2398
 
2408
2399
 
2409
- #### isValid(obj1, obj2)
2400
+ #### this._refineBodies(bodies, uFilter)
2410
2401
 
2411
- Validates if the two arguments are objects
2402
+ Refines the body structure
2412
2403
 
2413
2404
 
2414
2405
 
@@ -2417,8 +2408,8 @@ Validates if the two arguments are objects
2417
2408
 
2418
2409
  | Name | Type | Description | |
2419
2410
  | ---- | ---- | ----------- | -------- |
2420
- | obj1 | | The target object | &nbsp; |
2421
- | obj2 | | The object to be merged | &nbsp; |
2411
+ | bodies | | The body structure | &nbsp; |
2412
+ | uFilter | | The filter Builder filter | &nbsp; |
2422
2413
 
2423
2414
 
2424
2415
 
@@ -2426,13 +2417,13 @@ Validates if the two arguments are objects
2426
2417
  ##### Returns
2427
2418
 
2428
2419
 
2429
- - true: they are valid; false: they are not
2420
+ - the body structure
2430
2421
 
2431
2422
 
2432
2423
 
2433
- #### getParamsToMergeDeep(settings)
2424
+ #### this._getValidationType(column, vaildator)
2434
2425
 
2435
- Validates and gets the settings with all set parameters.
2426
+ Gets the validation type for the preview request
2436
2427
 
2437
2428
 
2438
2429
 
@@ -2441,7 +2432,8 @@ Validates and gets the settings with all set parameters.
2441
2432
 
2442
2433
  | Name | Type | Description | |
2443
2434
  | ---- | ---- | ----------- | -------- |
2444
- | settings | | the settings object | &nbsp; |
2435
+ | column | | The column to filter | &nbsp; |
2436
+ | vaildator | | Validator Type | &nbsp; |
2445
2437
 
2446
2438
 
2447
2439
 
@@ -2449,17 +2441,13 @@ Validates and gets the settings with all set parameters.
2449
2441
  ##### Returns
2450
2442
 
2451
2443
 
2452
- - a new settings object with all set parameters.
2453
-
2454
-
2455
-
2444
+ - the validator type for the preview request
2456
2445
 
2457
- ### dist/general/object/objectCopy.js
2458
2446
 
2459
2447
 
2460
- #### objectCopy(entity, cache)
2448
+ #### this._getDataFromResponse(response, uFilter)
2461
2449
 
2462
- Created a new reference of the given argument
2450
+ Gets the Data from preview Response
2463
2451
 
2464
2452
 
2465
2453
 
@@ -2468,8 +2456,8 @@ Created a new reference of the given argument
2468
2456
 
2469
2457
  | Name | Type | Description | |
2470
2458
  | ---- | ---- | ----------- | -------- |
2471
- | entity | | The variable to be copied | &nbsp; |
2472
- | cache | | | &nbsp; |
2459
+ | response | | The preview presponse | &nbsp; |
2460
+ | uFilter | | The filter Builder filter | &nbsp; |
2473
2461
 
2474
2462
 
2475
2463
 
@@ -2477,17 +2465,13 @@ Created a new reference of the given argument
2477
2465
  ##### Returns
2478
2466
 
2479
2467
 
2480
- - A new reference of the given argument
2481
-
2482
-
2468
+ - The resulting data
2483
2469
 
2484
2470
 
2485
- ### dist/general/object/omit.js
2486
-
2487
2471
 
2488
- #### omit(obj, props)
2472
+ #### this._getResponseSummaries(records, values)
2489
2473
 
2490
- return a new Object excluding attributes in _props_ list
2474
+ Gets summaries from preview response
2491
2475
 
2492
2476
 
2493
2477
 
@@ -2496,8 +2480,8 @@ return a new Object excluding attributes in _props_ list
2496
2480
 
2497
2481
  | Name | Type | Description | |
2498
2482
  | ---- | ---- | ----------- | -------- |
2499
- | obj | `Object` | base object | &nbsp; |
2500
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
2483
+ | records | | The data from preview response | &nbsp; |
2484
+ | values | | The values from the preview response | &nbsp; |
2501
2485
 
2502
2486
 
2503
2487
 
@@ -2505,17 +2489,13 @@ return a new Object excluding attributes in _props_ list
2505
2489
  ##### Returns
2506
2490
 
2507
2491
 
2508
- - `Object` clean object
2509
-
2510
-
2511
-
2492
+ - the sumaries
2512
2493
 
2513
- ### dist/general/object/pick.js
2514
2494
 
2515
2495
 
2516
- #### pick(baseObject, keys)
2496
+ #### this.refineAfterkey(props)
2517
2497
 
2518
- return a new object just with attributes in _keys_ list
2498
+ Refines the afterKey object
2519
2499
 
2520
2500
 
2521
2501
 
@@ -2524,8 +2504,7 @@ return a new object just with attributes in _keys_ list
2524
2504
 
2525
2505
  | Name | Type | Description | |
2526
2506
  | ---- | ---- | ----------- | -------- |
2527
- | baseObject | `Object` | base object | &nbsp; |
2528
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
2507
+ | props | | | &nbsp; |
2529
2508
 
2530
2509
 
2531
2510
 
@@ -2533,17 +2512,13 @@ return a new object just with attributes in _keys_ list
2533
2512
  ##### Returns
2534
2513
 
2535
2514
 
2536
- - `Object` new object just with desired attributes
2537
-
2538
-
2539
-
2515
+ - `Void`
2540
2516
 
2541
- ### dist/general/object/serialize.js
2542
2517
 
2543
2518
 
2544
- #### serialize(obj)
2519
+ #### this.setAfterKey(afterKey)
2545
2520
 
2546
- serialize object to url param
2521
+ Sets the afterKey object
2547
2522
 
2548
2523
 
2549
2524
 
@@ -2552,7 +2527,7 @@ serialize object to url param
2552
2527
 
2553
2528
  | Name | Type | Description | |
2554
2529
  | ---- | ---- | ----------- | -------- |
2555
- | obj | | - Object to be serialized | &nbsp; |
2530
+ | afterKey | | the afterKey object | &nbsp; |
2556
2531
 
2557
2532
 
2558
2533
 
@@ -2564,13 +2539,9 @@ serialize object to url param
2564
2539
 
2565
2540
 
2566
2541
 
2542
+ #### this.setProps(uFilter)
2567
2543
 
2568
- ### dist/general/string/capitalize.js
2569
-
2570
-
2571
- #### capitalize(text)
2572
-
2573
- Upper case the first letter of a given text
2544
+ Sets the Filter Builder Filter
2574
2545
 
2575
2546
 
2576
2547
 
@@ -2579,7 +2550,7 @@ Upper case the first letter of a given text
2579
2550
 
2580
2551
  | Name | Type | Description | |
2581
2552
  | ---- | ---- | ----------- | -------- |
2582
- | text | `String` | | &nbsp; |
2553
+ | uFilter | | | &nbsp; |
2583
2554
 
2584
2555
 
2585
2556
 
@@ -2587,17 +2558,13 @@ Upper case the first letter of a given text
2587
2558
  ##### Returns
2588
2559
 
2589
2560
 
2590
- - `String` a capitalized text
2591
-
2592
-
2593
-
2561
+ - `Void`
2594
2562
 
2595
- ### dist/qrvey/helpers/getColumnsLabel.js
2596
2563
 
2597
2564
 
2598
- #### getColumnLabels(column)
2565
+ #### this.areColumnsEquals(column1, column2)
2599
2566
 
2600
- Get an string of the properties of the given column.
2567
+ Checks if two filter columns are the same.
2601
2568
 
2602
2569
 
2603
2570
 
@@ -2606,7 +2573,8 @@ Get an string of the properties of the given column.
2606
2573
 
2607
2574
  | Name | Type | Description | |
2608
2575
  | ---- | ---- | ----------- | -------- |
2609
- | column | | The column | &nbsp; |
2576
+ | column1 | | | &nbsp; |
2577
+ | column2 | | | &nbsp; |
2610
2578
 
2611
2579
 
2612
2580
 
@@ -2614,17 +2582,17 @@ Get an string of the properties of the given column.
2614
2582
  ##### Returns
2615
2583
 
2616
2584
 
2617
- - an string with the property, aggregate or calculation label.
2585
+ - True: Columns are equal; False: Columns are not equal
2618
2586
 
2619
2587
 
2620
2588
 
2621
2589
 
2622
- ### dist/services/api/getAllDatasets.api.js
2590
+ ### dist/general/array/delete.js
2623
2591
 
2624
2592
 
2625
- #### getAllDatasets(qrveyids)
2593
+ #### ArrayDelete(array, index)
2626
2594
 
2627
- Get a dataset list from a collection of Qrvey IDs
2595
+ Inmutable Array Item deletion
2628
2596
 
2629
2597
 
2630
2598
 
@@ -2633,7 +2601,8 @@ Get a dataset list from a collection of Qrvey IDs
2633
2601
 
2634
2602
  | Name | Type | Description | |
2635
2603
  | ---- | ---- | ----------- | -------- |
2636
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2604
+ | array | `Array` | a collection of items to delete | &nbsp; |
2605
+ | index | `Number` | the position of the item to delete | &nbsp; |
2637
2606
 
2638
2607
 
2639
2608
 
@@ -2641,17 +2610,20 @@ Get a dataset list from a collection of Qrvey IDs
2641
2610
  ##### Returns
2642
2611
 
2643
2612
 
2644
- - a promise
2613
+ - a new Array or the given parameter when is empty or not an array
2645
2614
 
2646
2615
 
2647
2616
 
2648
2617
 
2649
- ### dist/services/api/getAllQrveys.api.js
2618
+ ### dist/general/array/filterNestedTree.js
2650
2619
 
2651
2620
 
2652
- #### getAllQrveys(config, params)
2621
+ #### filterNestedTree(arr, childArrKey, condition)
2653
2622
 
2654
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
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
2655
2627
 
2656
2628
 
2657
2629
 
@@ -2660,8 +2632,9 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2660
2632
 
2661
2633
  | Name | Type | Description | |
2662
2634
  | ---- | ---- | ----------- | -------- |
2663
- | config | | Configuration | &nbsp; |
2664
- | params | | Object for getting precise data | &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; |
2665
2638
 
2666
2639
 
2667
2640
 
@@ -2669,17 +2642,17 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
2669
2642
  ##### Returns
2670
2643
 
2671
2644
 
2672
- - `Void`
2645
+ - array filtered
2673
2646
 
2674
2647
 
2675
2648
 
2676
2649
 
2677
- ### dist/services/api/getDatasetColumns.api.js
2650
+ ### dist/general/array/flattenDeep.js
2678
2651
 
2679
2652
 
2680
- #### getDatasetColumns(qrveyid)
2653
+ #### flattenDeep(arr)
2681
2654
 
2682
- Get a dataset by Qrvey ID
2655
+ Flat deeply an array
2683
2656
 
2684
2657
 
2685
2658
 
@@ -2688,7 +2661,7 @@ Get a dataset by Qrvey ID
2688
2661
 
2689
2662
  | Name | Type | Description | |
2690
2663
  | ---- | ---- | ----------- | -------- |
2691
- | qrveyid | | The Qrvey ID | &nbsp; |
2664
+ | arr | | Array to flat deeply | &nbsp; |
2692
2665
 
2693
2666
 
2694
2667
 
@@ -2696,74 +2669,73 @@ Get a dataset by Qrvey ID
2696
2669
  ##### Returns
2697
2670
 
2698
2671
 
2699
- - a promise
2700
-
2672
+ - flatten array
2701
2673
 
2702
2674
 
2703
2675
 
2704
- ### dist/stencil/decorators/Config.js
2705
2676
 
2677
+ ### dist/general/array/getFirstIndexFromArray.js
2706
2678
 
2707
- #### Config()
2708
2679
 
2709
- Stencil.js - Prop Decorator
2710
- 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
2711
- But for this, is required ask for a property in `snake_case` style
2680
+ #### getFirstIndexFromArray(array, callback)
2712
2681
 
2682
+ Gets the first index from the array by a callback condition
2713
2683
 
2714
2684
 
2715
2685
 
2716
2686
 
2687
+ ##### Parameters
2717
2688
 
2718
- ##### Examples
2689
+ | Name | Type | Description | |
2690
+ | ---- | ---- | ----------- | -------- |
2691
+ | array | | | &nbsp; |
2692
+ | callback | | function callback | &nbsp; |
2719
2693
 
2720
- ```javascript
2721
- \ @Config() @Prop() settings;
2722
2694
 
2723
- someMethod() {
2724
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2725
- }
2726
- ```
2727
2695
 
2728
2696
 
2729
2697
  ##### Returns
2730
2698
 
2731
2699
 
2732
- - `Void`
2700
+ - the first index of the array. -1 when the condition is not satisfied
2733
2701
 
2734
2702
 
2735
2703
 
2736
2704
 
2737
- ### dist/stencil/util/createRef.js
2705
+ ### dist/general/array/getArrayByProperty.js
2738
2706
 
2739
2707
 
2740
- #### createRef()
2708
+ #### getArrayByProperty(arr, property)
2709
+
2710
+ Gets a collection of object values by the given property
2741
2711
 
2742
- lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2743
2712
 
2744
2713
 
2745
2714
 
2715
+ ##### Parameters
2716
+
2717
+ | Name | Type | Description | |
2718
+ | ---- | ---- | ----------- | -------- |
2719
+ | arr | | An array | &nbsp; |
2720
+ | property | | the property to get the value collection | &nbsp; |
2721
+
2746
2722
 
2747
2723
 
2748
2724
 
2749
2725
  ##### Returns
2750
2726
 
2751
2727
 
2752
- - function - Function to use in ref prop in html elements
2728
+ - a collection of values by property
2753
2729
 
2754
2730
 
2755
2731
 
2756
2732
 
2757
- ### dist/stencil/util/getConfig.js
2733
+ ### dist/general/array/getLastIndexFromArray.js
2758
2734
 
2759
2735
 
2760
- #### getConfig(cfg)
2736
+ #### getLastIndexFromArray(array, callback)
2761
2737
 
2762
- verify the Config object type and try to return a parsed Object
2763
- - In case _cfg_ is a string, first try to make a JSON parse in other case
2764
- try to find this string as a variable on Windows object
2765
- - If _cfg_ is a fuction, tis is invoked and parsed
2766
- - Finally, if is an object, _cfg_ is inmediatly returned
2738
+ Gets the last index from the array by a callback condition
2767
2739
 
2768
2740
 
2769
2741
 
@@ -2772,7 +2744,8 @@ try to find this string as a variable on Windows object
2772
2744
 
2773
2745
  | Name | Type | Description | |
2774
2746
  | ---- | ---- | ----------- | -------- |
2775
- | cfg | | | &nbsp; |
2747
+ | array | | | &nbsp; |
2748
+ | callback | | function callback | &nbsp; |
2776
2749
 
2777
2750
 
2778
2751
 
@@ -2780,17 +2753,19 @@ try to find this string as a variable on Windows object
2780
2753
  ##### Returns
2781
2754
 
2782
2755
 
2783
- - `Void`
2756
+ - the last index of the array. -1 when the condition is not satisfied
2784
2757
 
2785
2758
 
2786
2759
 
2787
2760
 
2788
- ### dist/typescript/decorators/Debounce.js
2761
+ ### dist/general/array/getUniqueArray.js
2789
2762
 
2790
2763
 
2791
- #### Debounce(time)
2764
+ #### getUniqueArray(arr, prop)
2792
2765
 
2793
- (Method Decorator) Debounce Class Method
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
2794
2769
 
2795
2770
 
2796
2771
 
@@ -2799,7 +2774,8 @@ try to find this string as a variable on Windows object
2799
2774
 
2800
2775
  | Name | Type | Description | |
2801
2776
  | ---- | ---- | ----------- | -------- |
2802
- | time | | (optional) deafult 500 | &nbsp; |
2777
+ | arr | | The array | &nbsp; |
2778
+ | prop | | Property name to search duplicated values | &nbsp; |
2803
2779
 
2804
2780
 
2805
2781
 
@@ -2807,17 +2783,17 @@ try to find this string as a variable on Windows object
2807
2783
  ##### Returns
2808
2784
 
2809
2785
 
2810
- - `Void`
2786
+ - Array without duplicated items.
2811
2787
 
2812
2788
 
2813
2789
 
2814
2790
 
2815
- ### dist/typescript/decorators/Throttled.js
2791
+ ### dist/general/function/debounce.js
2816
2792
 
2817
2793
 
2818
- #### Throttled(time)
2794
+ #### debounce(fn, time)
2819
2795
 
2820
- (Method Decorator) Throttled Class Method
2796
+ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
2821
2797
 
2822
2798
 
2823
2799
 
@@ -2826,7 +2802,8 @@ try to find this string as a variable on Windows object
2826
2802
 
2827
2803
  | Name | Type | Description | |
2828
2804
  | ---- | ---- | ----------- | -------- |
2829
- | time | | (optional) deafult 500 | &nbsp; |
2805
+ | fn | `Function` | original Function | &nbsp; |
2806
+ | time | `Number` | default 500ms | &nbsp; |
2830
2807
 
2831
2808
 
2832
2809
 
@@ -2834,17 +2811,17 @@ try to find this string as a variable on Windows object
2834
2811
  ##### Returns
2835
2812
 
2836
2813
 
2837
- - `Void`
2814
+ - `Function` debounced functions
2838
2815
 
2839
2816
 
2840
2817
 
2841
2818
 
2842
- ### dist/dates/relative/helpers/formatStatement.js
2819
+ ### dist/general/function/throttled.js
2843
2820
 
2844
2821
 
2845
- #### formatStatement(statement)
2822
+ #### throttled(fn, time)
2846
2823
 
2847
- Build a proper relative date statement type
2824
+ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
2848
2825
 
2849
2826
 
2850
2827
 
@@ -2853,7 +2830,8 @@ Build a proper relative date statement type
2853
2830
 
2854
2831
  | Name | Type | Description | |
2855
2832
  | ---- | ---- | ----------- | -------- |
2856
- | statement | `RelativeStatement` | | &nbsp; |
2833
+ | fn | `Function` | original Function | &nbsp; |
2834
+ | time | `Number` | default 500ms | &nbsp; |
2857
2835
 
2858
2836
 
2859
2837
 
@@ -2861,17 +2839,18 @@ Build a proper relative date statement type
2861
2839
  ##### Returns
2862
2840
 
2863
2841
 
2864
- - `RelativeStatement`
2842
+ - `Function` throttled function
2865
2843
 
2866
2844
 
2867
2845
 
2868
2846
 
2869
- ### dist/dates/relative/helpers/getStatementCase.js
2847
+ ### dist/general/mix/compareDeep.js
2870
2848
 
2871
2849
 
2872
- #### getStatementCase(includeCurrent, isCalendarDate)
2850
+ #### compareDeep(object1, object2)
2873
2851
 
2874
- Returns a number/constant that identifies a relative date case
2852
+ Compares two objects to know if they are equals. Go across nested objects.
2853
+ Includes arrays in the comparison.
2875
2854
 
2876
2855
 
2877
2856
 
@@ -2880,8 +2859,8 @@ Returns a number/constant that identifies a relative date case
2880
2859
 
2881
2860
  | Name | Type | Description | |
2882
2861
  | ---- | ---- | ----------- | -------- |
2883
- | includeCurrent | `boolean` | | &nbsp; |
2884
- | isCalendarDate | `boolean` | | &nbsp; |
2862
+ | object1 | | First Object to compare | &nbsp; |
2863
+ | object2 | | Second Object to compare | &nbsp; |
2885
2864
 
2886
2865
 
2887
2866
 
@@ -2889,17 +2868,17 @@ Returns a number/constant that identifies a relative date case
2889
2868
  ##### Returns
2890
2869
 
2891
2870
 
2892
- - `number`
2871
+ - True: objects are equal. False: Objects are not equal. Undefined: invalid
2893
2872
 
2894
2873
 
2895
2874
 
2896
2875
 
2897
- ### dist/dates/relative/helpers/parseDate.js
2876
+ ### dist/general/mix/getTag.js
2898
2877
 
2899
2878
 
2900
- #### parseDate(date)
2879
+ #### getTag(value)
2901
2880
 
2902
- Parses a string date and returns a dayjs date
2881
+ Gets the `toStringTag` of `value`.
2903
2882
 
2904
2883
 
2905
2884
 
@@ -2908,7 +2887,7 @@ Parses a string date and returns a dayjs date
2908
2887
 
2909
2888
  | Name | Type | Description | |
2910
2889
  | ---- | ---- | ----------- | -------- |
2911
- | date | `string` `Dayjs` `Date` | | &nbsp; |
2890
+ | value | | The value to query. | &nbsp; |
2912
2891
 
2913
2892
 
2914
2893
 
@@ -2916,18 +2895,17 @@ Parses a string date and returns a dayjs date
2916
2895
  ##### Returns
2917
2896
 
2918
2897
 
2919
- - `Dayjs` A dayjs date
2898
+ - `string` Returns the `toStringTag`.
2920
2899
 
2921
2900
 
2922
2901
 
2923
2902
 
2924
- ### dist/filters/helpers/backend/buildExpression.js
2903
+ ### dist/general/mix/importScripts.js
2925
2904
 
2926
2905
 
2927
- #### buildExpression(filter)
2906
+ #### importScripts(scripts)
2928
2907
 
2929
- Builds filter expression by the filter data.
2930
- - If the resulting value array is empty the enabled property will be false.
2908
+ Import a set of external Scripts given the URL in both serie and cascade way
2931
2909
 
2932
2910
 
2933
2911
 
@@ -2936,25 +2914,54 @@ Builds filter expression by the filter data.
2936
2914
 
2937
2915
  | Name | Type | Description | |
2938
2916
  | ---- | ---- | ----------- | -------- |
2939
- | filter | | The filter to transform | &nbsp; |
2917
+ | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
2918
+ | scripts.url | `String` | CDN URL | &nbsp; |
2919
+ | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
2920
+ | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
2921
+ | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2922
+ | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
2940
2923
 
2941
2924
 
2942
2925
 
2943
2926
 
2944
- ##### Returns
2927
+ ##### Examples
2928
+
2929
+ ```javascript
2930
+ // 1) Simple script (paralell loading)
2931
+ importScripts(['http://myscript.js', 'http://another.js']);
2932
+
2933
+ // 2) Loading `.js` and `.esm.js` script (parallel loading)
2934
+ importScripts([
2935
+ { url: 'http://myscript.esm.js', type: 'module' },
2936
+ { url: 'http://myscript.js', noModule: true }
2937
+ ]);
2945
2938
 
2939
+ // 3) import dependent scripts (cascade)
2940
+ importScripts([
2941
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
2942
+ ]);
2946
2943
 
2947
- - a filter expression
2944
+ // 4) mix
2945
+ importScripts([
2946
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
2947
+ { url: 'http://another.esm.js', type: 'module' },
2948
+ { url: 'http://another.js', noModule: true },
2949
+ 'http://simplescript.js'
2950
+ ]);
2951
+ ```
2948
2952
 
2949
2953
 
2954
+ ##### Returns
2950
2955
 
2951
2956
 
2952
- ### dist/filters/helpers/backend/buildUserFilters.js
2957
+ - `Promise` Promise when all script have been loaded
2953
2958
 
2954
2959
 
2955
- #### buildUserFilters(userFilters)
2956
2960
 
2957
- Transform user Filters array into Filter Logic structure
2961
+ #### loadScript(url, type, noModule)
2962
+
2963
+ Creates the script element and appends to document.head
2964
+ return a Promise that is resolved when the script is loaded
2958
2965
 
2959
2966
 
2960
2967
 
@@ -2963,7 +2970,9 @@ Transform user Filters array into Filter Logic structure
2963
2970
 
2964
2971
  | Name | Type | Description | |
2965
2972
  | ---- | ---- | ----------- | -------- |
2966
- | userFilters | | The filters that the user defined. | &nbsp; |
2973
+ | url | `String` | Cdn Url | &nbsp; |
2974
+ | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
2975
+ | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
2967
2976
 
2968
2977
 
2969
2978
 
@@ -2971,17 +2980,17 @@ Transform user Filters array into Filter Logic structure
2971
2980
  ##### Returns
2972
2981
 
2973
2982
 
2974
- - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
2975
-
2983
+ - `Void`
2976
2984
 
2977
2985
 
2978
2986
 
2979
- ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
2980
2987
 
2988
+ ### dist/general/mix/isEmpty.js
2981
2989
 
2982
- #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
2983
2990
 
2991
+ #### isEmpty(variable, includeFalsy)
2984
2992
 
2993
+ Validates if the given argument is empty
2985
2994
 
2986
2995
 
2987
2996
 
@@ -2990,8 +2999,8 @@ Transform user Filters array into Filter Logic structure
2990
2999
 
2991
3000
  | Name | Type | Description | |
2992
3001
  | ---- | ---- | ----------- | -------- |
2993
- | aggFilters | | | &nbsp; |
2994
- | summaryIndex | | | &nbsp; |
3002
+ | variable | | the given variable | &nbsp; |
3003
+ | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
2995
3004
 
2996
3005
 
2997
3006
 
@@ -2999,17 +3008,19 @@ Transform user Filters array into Filter Logic structure
2999
3008
  ##### Returns
3000
3009
 
3001
3010
 
3002
- -
3011
+ - true: the given argument is empty; false: is not.
3003
3012
 
3004
3013
 
3005
3014
 
3006
3015
 
3007
- ### dist/filters/helpers/backend/getBackendGroupValue.js
3016
+ ### dist/general/mix/isNaNV2.js
3008
3017
 
3009
3018
 
3010
- #### getBackendGroupValue(filter)
3019
+ #### isNaNV2(variable)
3011
3020
 
3012
- Gets a group value for the backend logic structure
3021
+ Validates if the recieved number is NaN type.
3022
+ This function recieves any variable but will return false.
3023
+ Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
3013
3024
 
3014
3025
 
3015
3026
 
@@ -3018,7 +3029,7 @@ Gets a group value for the backend logic structure
3018
3029
 
3019
3030
  | Name | Type | Description | |
3020
3031
  | ---- | ---- | ----------- | -------- |
3021
- | filter | | The filter | &nbsp; |
3032
+ | variable | | the variable to validate | &nbsp; |
3022
3033
 
3023
3034
 
3024
3035
 
@@ -3026,17 +3037,18 @@ Gets a group value for the backend logic structure
3026
3037
  ##### Returns
3027
3038
 
3028
3039
 
3029
- - a property
3040
+ - True if variable is a NaN or false otherwise
3030
3041
 
3031
3042
 
3032
3043
 
3033
3044
 
3034
- ### dist/filters/helpers/backend/getBackendProperty.js
3045
+ ### dist/general/mix/isNull.js
3035
3046
 
3036
3047
 
3037
- #### getBackendProperty(filter)
3048
+ #### isNull(arg)
3038
3049
 
3039
- Gets a property for the logic structure
3050
+ return if a given variable is either `null` or `undefined`
3051
+ useful to avoid falsify validating Number Zero (0)
3040
3052
 
3041
3053
 
3042
3054
 
@@ -3045,7 +3057,7 @@ Gets a property for the logic structure
3045
3057
 
3046
3058
  | Name | Type | Description | |
3047
3059
  | ---- | ---- | ----------- | -------- |
3048
- | filter | | The filter | &nbsp; |
3060
+ | arg | `any` | | &nbsp; |
3049
3061
 
3050
3062
 
3051
3063
 
@@ -3053,17 +3065,19 @@ Gets a property for the logic structure
3053
3065
  ##### Returns
3054
3066
 
3055
3067
 
3056
- - a property
3068
+ - `Boolean`
3057
3069
 
3058
3070
 
3059
3071
 
3060
3072
 
3061
- ### dist/filters/helpers/backend/getBackendValidator.js
3073
+ ### dist/general/mix/randomId.js
3062
3074
 
3063
3075
 
3064
- #### getBackendValidator(validator)
3076
+ #### randomId(length, exclude)
3065
3077
 
3066
- Gets the Validator that is used in requests
3078
+ Creates a random string
3079
+ - If the first given argument is different than a length number, the variable is replaced by a default number
3080
+ - If the optional second given argument is passed the random string is permutated.
3067
3081
 
3068
3082
 
3069
3083
 
@@ -3072,7 +3086,8 @@ Gets the Validator that is used in requests
3072
3086
 
3073
3087
  | Name | Type | Description | |
3074
3088
  | ---- | ---- | ----------- | -------- |
3075
- | validator | | Filter Validator used in UI | &nbsp; |
3089
+ | length | `Number` | size of the generated string. Default 8 | &nbsp; |
3090
+ | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
3076
3091
 
3077
3092
 
3078
3093
 
@@ -3080,17 +3095,19 @@ Gets the Validator that is used in requests
3080
3095
  ##### Returns
3081
3096
 
3082
3097
 
3083
- - Filter Validator used in Backend
3098
+ - `String` Random string
3084
3099
 
3085
3100
 
3086
3101
 
3087
3102
 
3088
- ### dist/filters/helpers/backend/getBackendValues.js
3103
+ ### dist/general/mix/size.js
3089
3104
 
3090
3105
 
3091
- #### getBackendValues(filter)
3106
+ #### size(obj)
3092
3107
 
3093
- Gets the expresion values in the logic format
3108
+ Gets the length of the given array.
3109
+ - Useful for Object, Array and string type.
3110
+ - For `null` or `undefined` or else argument the returned value will be 0.
3094
3111
 
3095
3112
 
3096
3113
 
@@ -3099,7 +3116,7 @@ Gets the expresion values in the logic format
3099
3116
 
3100
3117
  | Name | Type | Description | |
3101
3118
  | ---- | ---- | ----------- | -------- |
3102
- | filter | | The filter structure | &nbsp; |
3119
+ | obj | `Any` | Any object-type variable | &nbsp; |
3103
3120
 
3104
3121
 
3105
3122
 
@@ -3107,13 +3124,18 @@ Gets the expresion values in the logic format
3107
3124
  ##### Returns
3108
3125
 
3109
3126
 
3110
- - A collection of backend expression value
3127
+ - `Number` the size of the given variable
3111
3128
 
3112
3129
 
3113
3130
 
3114
- #### getResultValues(values, filter)
3115
3131
 
3116
- Gets the expression values. Depending on the column type
3132
+ ### dist/general/object/cloneDeep.js
3133
+
3134
+
3135
+ #### cloneDeep(obj)
3136
+
3137
+ A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
3138
+ Not to use this function with inner objects and functions
3117
3139
 
3118
3140
 
3119
3141
 
@@ -3122,8 +3144,7 @@ Gets the expression values. Depending on the column type
3122
3144
 
3123
3145
  | Name | Type | Description | |
3124
3146
  | ---- | ---- | ----------- | -------- |
3125
- | values | | a collection of filter values | &nbsp; |
3126
- | filter | | The filter structure | &nbsp; |
3147
+ | obj | | The object | &nbsp; |
3127
3148
 
3128
3149
 
3129
3150
 
@@ -3131,11 +3152,1412 @@ Gets the expression values. Depending on the column type
3131
3152
  ##### Returns
3132
3153
 
3133
3154
 
3134
- -
3155
+ - The new reference object or the given object if the parsing is incorrect or empty
3135
3156
 
3136
3157
 
3137
3158
 
3138
- #### getRankingValues(values, rankingGroupIndex)
3159
+
3160
+ ### dist/general/object/get.js
3161
+
3162
+
3163
+ #### _get(baseObject, path, defaultValue)
3164
+
3165
+ Like lodash _.get.
3166
+ Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
3167
+
3168
+ Empty arrays and empty objects are returned but the defaultValue is not
3169
+ Undefined and null values will return the defaultValue.
3170
+
3171
+
3172
+
3173
+
3174
+ ##### Parameters
3175
+
3176
+ | Name | Type | Description | |
3177
+ | ---- | ---- | ----------- | -------- |
3178
+ | baseObject | | The object to query | &nbsp; |
3179
+ | path | | The string path or collection of string paths of the property to get. | &nbsp; |
3180
+ | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
3181
+
3182
+
3183
+
3184
+
3185
+ ##### Examples
3186
+
3187
+ ```javascript
3188
+ // returns 'Hello'
3189
+ _get({ item1: 'Hello', item2: 'World' }, 'item1')
3190
+ ```
3191
+ ```javascript
3192
+ // returns 'A simple Hello'
3193
+ _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
3194
+ ```
3195
+ ```javascript
3196
+ // returns 'Hello Again'
3197
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
3198
+ ```
3199
+ ```javascript
3200
+ // returns 'Hello 2'
3201
+ _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
3202
+ ```
3203
+ ```javascript
3204
+ // returns 'Hello Again'
3205
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
3206
+ ```
3207
+
3208
+
3209
+ ##### Returns
3210
+
3211
+
3212
+ - the resolved value.
3213
+
3214
+
3215
+
3216
+
3217
+ ### dist/general/object/getAttribute.js
3218
+
3219
+
3220
+ #### getAttribute(obj, key)
3221
+
3222
+ Searchs for properties in different case styles such as: lower, upper, camel and pascal
3223
+ - To optimize the searching, it is required a key in a snake_case style
3224
+ - List of cases that do not match
3225
+ -- From lower to snake case
3226
+ -- From upper to snake case
3227
+ -- From lower to camel case
3228
+ -- From upper to camel case
3229
+ -- From lower to pascal case
3230
+ -- From upper to pascal case
3231
+
3232
+
3233
+
3234
+
3235
+ ##### Parameters
3236
+
3237
+ | Name | Type | Description | |
3238
+ | ---- | ---- | ----------- | -------- |
3239
+ | obj | `object` | object to look for | &nbsp; |
3240
+ | key | `string` | String attribute in snake_case style | &nbsp; |
3241
+
3242
+
3243
+
3244
+
3245
+ ##### Examples
3246
+
3247
+ ```javascript
3248
+ getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
3249
+ ```
3250
+
3251
+
3252
+ ##### Returns
3253
+
3254
+
3255
+ - `Void`
3256
+
3257
+
3258
+
3259
+
3260
+ ### dist/general/object/hasProperty.js
3261
+
3262
+
3263
+ #### _hasProperty(obj, property)
3264
+
3265
+ Use the hasOwnProperty in order to verify if the given property exists in the object.
3266
+
3267
+
3268
+
3269
+
3270
+ ##### Parameters
3271
+
3272
+ | Name | Type | Description | |
3273
+ | ---- | ---- | ----------- | -------- |
3274
+ | obj | `object` | an object | &nbsp; |
3275
+ | property | `string` | String to verify if exists in the object as property | &nbsp; |
3276
+
3277
+
3278
+
3279
+
3280
+ ##### Examples
3281
+
3282
+ ```javascript
3283
+ const prop = 'prop2'
3284
+ const obj1 = { prop1: 'hello', prop2: 'world'}
3285
+ _hasProperty(ob1, prop1) // true
3286
+
3287
+ const obj2 = { prop1: 'hello world' }
3288
+ _hasProperty(ob1, prop2) // false
3289
+ ```
3290
+
3291
+
3292
+ ##### Returns
3293
+
3294
+
3295
+ - True if the object has the given property; otherwise, false.
3296
+
3297
+
3298
+
3299
+
3300
+ ### dist/general/object/isObject.js
3301
+
3302
+
3303
+ #### isObject(obj)
3304
+
3305
+ Checks if the given argument is an object type
3306
+
3307
+
3308
+
3309
+
3310
+ ##### Parameters
3311
+
3312
+ | Name | Type | Description | |
3313
+ | ---- | ---- | ----------- | -------- |
3314
+ | obj | | the variable to check | &nbsp; |
3315
+
3316
+
3317
+
3318
+
3319
+ ##### Returns
3320
+
3321
+
3322
+ - True: It is an object; False: It is not.
3323
+
3324
+
3325
+
3326
+
3327
+ ### dist/general/object/mapValues.js
3328
+
3329
+
3330
+ #### mapValues(baseObject, iteratee)
3331
+
3332
+ Invoke iteratee (function) for each object key-value pair
3333
+ and return a mapped object
3334
+
3335
+
3336
+
3337
+
3338
+ ##### Parameters
3339
+
3340
+ | Name | Type | Description | |
3341
+ | ---- | ---- | ----------- | -------- |
3342
+ | baseObject | `Object` | Base object. | &nbsp; |
3343
+ | iteratee | `Function` | The executed per iteration. | &nbsp; |
3344
+
3345
+
3346
+
3347
+
3348
+ ##### Returns
3349
+
3350
+
3351
+ - `Object` New mapped object.
3352
+
3353
+
3354
+
3355
+
3356
+ ### dist/general/object/mergeDeep.js
3357
+
3358
+
3359
+ #### mergeDeep(obj1, obj2, settings)
3360
+
3361
+ Merges two objects into a new one.
3362
+ The second given argument to the first given argument.
3363
+
3364
+
3365
+
3366
+
3367
+ ##### Parameters
3368
+
3369
+ | Name | Type | Description | |
3370
+ | ---- | ---- | ----------- | -------- |
3371
+ | obj1 | | The target object | &nbsp; |
3372
+ | obj2 | | The object to be merged | &nbsp; |
3373
+ | settings | | Object settings for this function | &nbsp; |
3374
+
3375
+
3376
+
3377
+
3378
+ ##### Returns
3379
+
3380
+
3381
+ - a new merged object
3382
+
3383
+
3384
+
3385
+ #### isValid(obj1, obj2)
3386
+
3387
+ Validates if the two arguments are objects
3388
+
3389
+
3390
+
3391
+
3392
+ ##### Parameters
3393
+
3394
+ | Name | Type | Description | |
3395
+ | ---- | ---- | ----------- | -------- |
3396
+ | obj1 | | The target object | &nbsp; |
3397
+ | obj2 | | The object to be merged | &nbsp; |
3398
+
3399
+
3400
+
3401
+
3402
+ ##### Returns
3403
+
3404
+
3405
+ - true: they are valid; false: they are not
3406
+
3407
+
3408
+
3409
+ #### getParamsToMergeDeep(settings)
3410
+
3411
+ Validates and gets the settings with all set parameters.
3412
+
3413
+
3414
+
3415
+
3416
+ ##### Parameters
3417
+
3418
+ | Name | Type | Description | |
3419
+ | ---- | ---- | ----------- | -------- |
3420
+ | settings | | the settings object | &nbsp; |
3421
+
3422
+
3423
+
3424
+
3425
+ ##### Returns
3426
+
3427
+
3428
+ - a new settings object with all set parameters.
3429
+
3430
+
3431
+
3432
+
3433
+ ### dist/general/object/objectCopy.js
3434
+
3435
+
3436
+ #### objectCopy(entity, cache)
3437
+
3438
+ Created a new reference of the given argument
3439
+
3440
+
3441
+
3442
+
3443
+ ##### Parameters
3444
+
3445
+ | Name | Type | Description | |
3446
+ | ---- | ---- | ----------- | -------- |
3447
+ | entity | | The variable to be copied | &nbsp; |
3448
+ | cache | | | &nbsp; |
3449
+
3450
+
3451
+
3452
+
3453
+ ##### Returns
3454
+
3455
+
3456
+ - A new reference of the given argument
3457
+
3458
+
3459
+
3460
+
3461
+ ### dist/general/object/omit.js
3462
+
3463
+
3464
+ #### omit(obj, props)
3465
+
3466
+ return a new Object excluding attributes in _props_ list
3467
+
3468
+
3469
+
3470
+
3471
+ ##### Parameters
3472
+
3473
+ | Name | Type | Description | |
3474
+ | ---- | ---- | ----------- | -------- |
3475
+ | obj | `Object` | base object | &nbsp; |
3476
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
3477
+
3478
+
3479
+
3480
+
3481
+ ##### Returns
3482
+
3483
+
3484
+ - `Object` clean object
3485
+
3486
+
3487
+
3488
+
3489
+ ### dist/general/object/pick.js
3490
+
3491
+
3492
+ #### pick(baseObject, keys)
3493
+
3494
+ return a new object just with attributes in _keys_ list
3495
+
3496
+
3497
+
3498
+
3499
+ ##### Parameters
3500
+
3501
+ | Name | Type | Description | |
3502
+ | ---- | ---- | ----------- | -------- |
3503
+ | baseObject | `Object` | base object | &nbsp; |
3504
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
3505
+
3506
+
3507
+
3508
+
3509
+ ##### Returns
3510
+
3511
+
3512
+ - `Object` new object just with desired attributes
3513
+
3514
+
3515
+
3516
+
3517
+ ### dist/general/object/serialize.js
3518
+
3519
+
3520
+ #### serialize(obj)
3521
+
3522
+ serialize object to url param
3523
+
3524
+
3525
+
3526
+
3527
+ ##### Parameters
3528
+
3529
+ | Name | Type | Description | |
3530
+ | ---- | ---- | ----------- | -------- |
3531
+ | obj | | - Object to be serialized | &nbsp; |
3532
+
3533
+
3534
+
3535
+
3536
+ ##### Returns
3537
+
3538
+
3539
+ - `Void`
3540
+
3541
+
3542
+
3543
+
3544
+ ### dist/general/string/capitalize.js
3545
+
3546
+
3547
+ #### capitalize(text)
3548
+
3549
+ Upper case the first letter of a given text
3550
+
3551
+
3552
+
3553
+
3554
+ ##### Parameters
3555
+
3556
+ | Name | Type | Description | |
3557
+ | ---- | ---- | ----------- | -------- |
3558
+ | text | `String` | | &nbsp; |
3559
+
3560
+
3561
+
3562
+
3563
+ ##### Returns
3564
+
3565
+
3566
+ - `String` a capitalized text
3567
+
3568
+
3569
+
3570
+
3571
+ ### dist/qrvey/helpers/areStaticColumnValues.js
3572
+
3573
+
3574
+ #### areStaticColumnValues(column)
3575
+
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.
3578
+
3579
+
3580
+
3581
+
3582
+ ##### Parameters
3583
+
3584
+ | Name | Type | Description | |
3585
+ | ---- | ---- | ----------- | -------- |
3586
+ | column | | The question column | &nbsp; |
3587
+
3588
+
3589
+
3590
+
3591
+ ##### Returns
3592
+
3593
+
3594
+ - true if the column belongs to a static values question; otherwise, false
3595
+
3596
+
3597
+
3598
+
3599
+ ### dist/qrvey/helpers/getCategorizableExpression.js
3600
+
3601
+
3602
+ #### getCategorizableExpression(column, dataset)
3603
+
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.
3607
+
3608
+
3609
+
3610
+
3611
+ ##### Parameters
3612
+
3613
+ | Name | Type | Description | |
3614
+ | ---- | ---- | ----------- | -------- |
3615
+ | column | | The column with info | &nbsp; |
3616
+ | dataset | | the dataset object to search the column | &nbsp; |
3617
+
3618
+
3619
+
3620
+
3621
+ ##### Returns
3622
+
3623
+
3624
+ - true if expression column is categorizable; otherwise not. If does not exist, undefined is sent.
3625
+
3626
+
3627
+
3628
+
3629
+ ### dist/qrvey/helpers/getDataAnswersByColumn.js
3630
+
3631
+
3632
+ #### getDataAnswersByColumn(column, model, property)
3633
+
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.
3638
+
3639
+
3640
+
3641
+
3642
+ ##### Parameters
3643
+
3644
+ | Name | Type | Description | |
3645
+ | ---- | ---- | ----------- | -------- |
3646
+ | column | | Info of the column | &nbsp; |
3647
+ | model | | The model object | &nbsp; |
3648
+ | property | | Optional Attribute, especially for expression columns. | &nbsp; |
3649
+
3650
+
3651
+
3652
+
3653
+ ##### Returns
3654
+
3655
+
3656
+ - Formatted answers inside of answer property.
3657
+
3658
+
3659
+
3660
+
3661
+ ### dist/qrvey/helpers/getDropdownAnswers.js
3662
+
3663
+
3664
+ #### getDropdownAnswers(question)
3665
+
3666
+ Get the answers of dropdown columns.
3667
+ Answers is a direct array of strings so it is necessary to format them.
3668
+
3669
+
3670
+
3671
+
3672
+ ##### Parameters
3673
+
3674
+ | Name | Type | Description | |
3675
+ | ---- | ---- | ----------- | -------- |
3676
+ | question | | The column located inside the model object. | &nbsp; |
3677
+
3678
+
3679
+
3680
+
3681
+ ##### Returns
3682
+
3683
+
3684
+ - Formatted answers inside of an answer property.
3685
+
3686
+
3687
+
3688
+
3689
+ ### dist/qrvey/helpers/getExpressionAnswers.js
3690
+
3691
+
3692
+ #### getExpressionAnswers(column, property)
3693
+
3694
+ Get the answers of expression columns. Depends of the property attribute and if the column is categorizable.
3695
+
3696
+
3697
+
3698
+
3699
+ ##### Parameters
3700
+
3701
+ | Name | Type | Description | |
3702
+ | ---- | ---- | ----------- | -------- |
3703
+ | column | | The column located inside the model object. | &nbsp; |
3704
+ | property | | Optional Attribute, especially for expression columns. | &nbsp; |
3705
+
3706
+
3707
+
3708
+
3709
+ ##### Returns
3710
+
3711
+
3712
+ - Formatted answers inside of an answer property.
3713
+
3714
+
3715
+
3716
+
3717
+ ### dist/qrvey/helpers/getImageAnswers.js
3718
+
3719
+
3720
+ #### getImageAnswers(column)
3721
+
3722
+ Get the answers of image columns.
3723
+
3724
+
3725
+
3726
+
3727
+ ##### Parameters
3728
+
3729
+ | Name | Type | Description | |
3730
+ | ---- | ---- | ----------- | -------- |
3731
+ | column | | The column located inside the model object. | &nbsp; |
3732
+
3733
+
3734
+
3735
+
3736
+ ##### Returns
3737
+
3738
+
3739
+ - Formatted answers inside of an answer property.
3740
+
3741
+
3742
+
3743
+
3744
+ ### dist/qrvey/helpers/getImageUploadHasAnalysis.js
3745
+
3746
+
3747
+ #### getImageUploadHasAnalysis(column, model)
3748
+
3749
+ Special function for Image Upload
3750
+ This function returns if the current column has object or text analysis as property.
3751
+
3752
+
3753
+
3754
+
3755
+ ##### Parameters
3756
+
3757
+ | Name | Type | Description | |
3758
+ | ---- | ---- | ----------- | -------- |
3759
+ | column | | The column with info | &nbsp; |
3760
+ | model | | The model object | &nbsp; |
3761
+
3762
+
3763
+
3764
+
3765
+ ##### Returns
3766
+
3767
+
3768
+ - true if this column has analysis. Otherwise false.
3769
+
3770
+
3771
+
3772
+
3773
+ ### dist/qrvey/helpers/getRatingAnswers.js
3774
+
3775
+
3776
+ #### getRatingAnswers(_question)
3777
+
3778
+ Get the answers of rating columns.
3779
+
3780
+
3781
+
3782
+
3783
+ ##### Parameters
3784
+
3785
+ | Name | Type | Description | |
3786
+ | ---- | ---- | ----------- | -------- |
3787
+ | _question | | The column located inside the model object. | &nbsp; |
3788
+
3789
+
3790
+
3791
+
3792
+ ##### Returns
3793
+
3794
+
3795
+ - Formatted answers inside of an answer property
3796
+
3797
+
3798
+
3799
+
3800
+ ### dist/qrvey/helpers/getSlidebarAnswers.js
3801
+
3802
+
3803
+ #### getSlidebarAnswers(_question)
3804
+
3805
+ Get the answers of slidebar columns. The quantity of answers depend on the steps chosen in maker.
3806
+
3807
+
3808
+
3809
+
3810
+ ##### Parameters
3811
+
3812
+ | Name | Type | Description | |
3813
+ | ---- | ---- | ----------- | -------- |
3814
+ | _question | | The column located inside the model object. | &nbsp; |
3815
+
3816
+
3817
+
3818
+
3819
+ ##### Returns
3820
+
3821
+
3822
+ - Formatted answers inside of an answer property
3823
+
3824
+
3825
+
3826
+
3827
+ ### dist/qrvey/helpers/getSuffixTranslateByColumn.js
3828
+
3829
+
3830
+ #### getSuffixTranslateByColumn(column)
3831
+
3832
+ Gets a string of the translate structure by the given column
3833
+
3834
+
3835
+
3836
+
3837
+ ##### Parameters
3838
+
3839
+ | Name | Type | Description | |
3840
+ | ---- | ---- | ----------- | -------- |
3841
+ | column | | the Info of the column | &nbsp; |
3842
+
3843
+
3844
+
3845
+
3846
+ ##### Returns
3847
+
3848
+
3849
+ - a string of the translation structure where the label is located.
3850
+
3851
+
3852
+
3853
+
3854
+ ### dist/qrvey/helpers/getValueWithSuffixes.js
3855
+
3856
+
3857
+ #### getValueWithSuffixes(value, suffixes)
3858
+
3859
+ Get a string value with suffixes if available.
3860
+ Add suffix into the value string. Prioritized for numeric values.
3861
+
3862
+
3863
+
3864
+
3865
+ ##### Parameters
3866
+
3867
+ | Name | Type | Description | |
3868
+ | ---- | ---- | ----------- | -------- |
3869
+ | value | | a number or string | &nbsp; |
3870
+ | suffixes | | An object with singular or plural suffix string. | &nbsp; |
3871
+
3872
+
3873
+
3874
+
3875
+ ##### Returns
3876
+
3877
+
3878
+ - a string value with suffix
3879
+
3880
+
3881
+
3882
+
3883
+ ### dist/qrvey/helpers/getYesNoAnswers.js
3884
+
3885
+
3886
+ #### getYesNoAnswers(column)
3887
+
3888
+ Get the answers of Yes/No columns.
3889
+ Yes/No answers from model object are capitalized but the filters need values in lowercase.
3890
+
3891
+
3892
+
3893
+
3894
+ ##### Parameters
3895
+
3896
+ | Name | Type | Description | |
3897
+ | ---- | ---- | ----------- | -------- |
3898
+ | column | | The column located inside the model object. | &nbsp; |
3899
+
3900
+
3901
+
3902
+
3903
+ ##### Returns
3904
+
3905
+
3906
+ - Formatted answers inside of an answer property
3907
+
3908
+
3909
+
3910
+
3911
+ ### dist/qrvey/helpers/transformValue.js
3912
+
3913
+
3914
+ #### transformValue(value, settings)
3915
+
3916
+ Transforms a value depending of localization/globalization and extras settings.
3917
+
3918
+
3919
+
3920
+
3921
+ ##### Parameters
3922
+
3923
+ | Name | Type | Description | |
3924
+ | ---- | ---- | ----------- | -------- |
3925
+ | value | | A value to transform | &nbsp; |
3926
+ | settings | | The settings of the transformValue function | &nbsp; |
3927
+
3928
+
3929
+
3930
+
3931
+ ##### Returns
3932
+
3933
+
3934
+ - A transformed value
3935
+
3936
+
3937
+
3938
+ #### getOutputFormat(settings)
3939
+
3940
+ Gets the outputformat settings
3941
+
3942
+
3943
+
3944
+
3945
+ ##### Parameters
3946
+
3947
+ | Name | Type | Description | |
3948
+ | ---- | ---- | ----------- | -------- |
3949
+ | settings | | The settings of the transformValue function | &nbsp; |
3950
+
3951
+
3952
+
3953
+
3954
+ ##### Returns
3955
+
3956
+
3957
+ - the outputformat settings
3958
+
3959
+
3960
+
3961
+ #### getFormatConfig(settings)
3962
+
3963
+ Gets the format config
3964
+
3965
+
3966
+
3967
+
3968
+ ##### Parameters
3969
+
3970
+ | Name | Type | Description | |
3971
+ | ---- | ---- | ----------- | -------- |
3972
+ | settings | | The settings of the transformValue function | &nbsp; |
3973
+
3974
+
3975
+
3976
+
3977
+ ##### Returns
3978
+
3979
+
3980
+ - the format config
3981
+
3982
+
3983
+
3984
+
3985
+ ### dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js
3986
+
3987
+
3988
+ #### BBranchesMapToUIBranchesMap(branchesMap)
3989
+
3990
+
3991
+
3992
+
3993
+
3994
+
3995
+ ##### Parameters
3996
+
3997
+ | Name | Type | Description | |
3998
+ | ---- | ---- | ----------- | -------- |
3999
+ | branchesMap | | | &nbsp; |
4000
+
4001
+
4002
+
4003
+
4004
+ ##### Returns
4005
+
4006
+
4007
+ -
4008
+
4009
+
4010
+
4011
+
4012
+ ### dist/services/api/getAllDatasets.api.js
4013
+
4014
+
4015
+ #### getAllDatasets(config, qrveyids)
4016
+
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
4022
+
4023
+
4024
+
4025
+
4026
+ ##### Parameters
4027
+
4028
+ | Name | Type | Description | |
4029
+ | ---- | ---- | ----------- | -------- |
4030
+ | config | | the widget config. Includes general configuration properties | &nbsp; |
4031
+ | qrveyids | | Collection of Qrvey IDs for returning a set of available datasets | &nbsp; |
4032
+
4033
+
4034
+
4035
+
4036
+ ##### Returns
4037
+
4038
+
4039
+ - a promise that if it is resolved displays a collection of dataset info.
4040
+
4041
+
4042
+
4043
+
4044
+ ### dist/services/api/getAllQrveys.api.js
4045
+
4046
+
4047
+ #### getAllQrveys(config, params)
4048
+
4049
+ Request function for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
4050
+
4051
+
4052
+
4053
+
4054
+ ##### Parameters
4055
+
4056
+ | Name | Type | Description | |
4057
+ | ---- | ---- | ----------- | -------- |
4058
+ | config | | Configuration | &nbsp; |
4059
+ | params | | Object for getting precise data | &nbsp; |
4060
+
4061
+
4062
+
4063
+
4064
+ ##### Returns
4065
+
4066
+
4067
+ - `Void`
4068
+
4069
+
4070
+
4071
+
4072
+ ### dist/services/api/getDatasetColumns.api.js
4073
+
4074
+
4075
+ #### getDatasetColumns(qrveyid)
4076
+
4077
+ Get a dataset by Qrvey ID
4078
+
4079
+
4080
+
4081
+
4082
+ ##### Parameters
4083
+
4084
+ | Name | Type | Description | |
4085
+ | ---- | ---- | ----------- | -------- |
4086
+ | qrveyid | | The Qrvey ID | &nbsp; |
4087
+
4088
+
4089
+
4090
+
4091
+ ##### Returns
4092
+
4093
+
4094
+ - a promise
4095
+
4096
+
4097
+
4098
+
4099
+ ### dist/services/api/getDatasetsByIds.api.js
4100
+
4101
+
4102
+ #### getDatasetsByIds(qrveyid)
4103
+
4104
+ Get a dataset by Qrvey ID
4105
+
4106
+
4107
+
4108
+
4109
+ ##### Parameters
4110
+
4111
+ | Name | Type | Description | |
4112
+ | ---- | ---- | ----------- | -------- |
4113
+ | qrveyid | | The Qrvey ID | &nbsp; |
4114
+
4115
+
4116
+
4117
+
4118
+ ##### Returns
4119
+
4120
+
4121
+ - a promise
4122
+
4123
+
4124
+
4125
+
4126
+ ### dist/stencil/decorators/Config.js
4127
+
4128
+
4129
+ #### Config()
4130
+
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
4134
+
4135
+
4136
+
4137
+
4138
+
4139
+
4140
+ ##### Examples
4141
+
4142
+ ```javascript
4143
+ \ @Config() @Prop() settings;
4144
+
4145
+ someMethod() {
4146
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
4147
+ }
4148
+ ```
4149
+
4150
+
4151
+ ##### Returns
4152
+
4153
+
4154
+ - `Void`
4155
+
4156
+
4157
+
4158
+
4159
+ ### dist/stencil/util/createRef.js
4160
+
4161
+
4162
+ #### createRef()
4163
+
4164
+ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
4165
+
4166
+
4167
+
4168
+
4169
+
4170
+
4171
+ ##### Returns
4172
+
4173
+
4174
+ - function - Function to use in ref prop in html elements
4175
+
4176
+
4177
+
4178
+
4179
+ ### dist/stencil/util/getConfig.js
4180
+
4181
+
4182
+ #### getConfig(cfg)
4183
+
4184
+ verify the Config object type and try to return a parsed Object
4185
+ - In case _cfg_ is a string, first try to make a JSON parse in other case
4186
+ try to find this string as a variable on Windows object
4187
+ - If _cfg_ is a fuction, tis is invoked and parsed
4188
+ - Finally, if is an object, _cfg_ is inmediatly returned
4189
+
4190
+
4191
+
4192
+
4193
+ ##### Parameters
4194
+
4195
+ | Name | Type | Description | |
4196
+ | ---- | ---- | ----------- | -------- |
4197
+ | cfg | | | &nbsp; |
4198
+
4199
+
4200
+
4201
+
4202
+ ##### Returns
4203
+
4204
+
4205
+ - `Void`
4206
+
4207
+
4208
+
4209
+
4210
+ ### dist/typescript/decorators/Debounce.js
4211
+
4212
+
4213
+ #### Debounce(time)
4214
+
4215
+ (Method Decorator) Debounce Class Method
4216
+
4217
+
4218
+
4219
+
4220
+ ##### Parameters
4221
+
4222
+ | Name | Type | Description | |
4223
+ | ---- | ---- | ----------- | -------- |
4224
+ | time | | (optional) deafult 500 | &nbsp; |
4225
+
4226
+
4227
+
4228
+
4229
+ ##### Returns
4230
+
4231
+
4232
+ - `Void`
4233
+
4234
+
4235
+
4236
+
4237
+ ### dist/typescript/decorators/Throttled.js
4238
+
4239
+
4240
+ #### Throttled(time)
4241
+
4242
+ (Method Decorator) Throttled Class Method
4243
+
4244
+
4245
+
4246
+
4247
+ ##### Parameters
4248
+
4249
+ | Name | Type | Description | |
4250
+ | ---- | ---- | ----------- | -------- |
4251
+ | time | | (optional) deafult 500 | &nbsp; |
4252
+
4253
+
4254
+
4255
+
4256
+ ##### Returns
4257
+
4258
+
4259
+ - `Void`
4260
+
4261
+
4262
+
4263
+
4264
+ ### dist/dates/relative/helpers/formatStatement.js
4265
+
4266
+
4267
+ #### formatStatement(statement)
4268
+
4269
+ Build a proper relative date statement type
4270
+
4271
+
4272
+
4273
+
4274
+ ##### Parameters
4275
+
4276
+ | Name | Type | Description | |
4277
+ | ---- | ---- | ----------- | -------- |
4278
+ | statement | `RelativeStatement` | | &nbsp; |
4279
+
4280
+
4281
+
4282
+
4283
+ ##### Returns
4284
+
4285
+
4286
+ - `RelativeStatement`
4287
+
4288
+
4289
+
4290
+
4291
+ ### dist/dates/relative/helpers/getStatementCase.js
4292
+
4293
+
4294
+ #### getStatementCase(includeCurrent, isCalendarDate)
4295
+
4296
+ Returns a number/constant that identifies a relative date case
4297
+
4298
+
4299
+
4300
+
4301
+ ##### Parameters
4302
+
4303
+ | Name | Type | Description | |
4304
+ | ---- | ---- | ----------- | -------- |
4305
+ | includeCurrent | `boolean` | | &nbsp; |
4306
+ | isCalendarDate | `boolean` | | &nbsp; |
4307
+
4308
+
4309
+
4310
+
4311
+ ##### Returns
4312
+
4313
+
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
4342
+
4343
+
4344
+
4345
+
4346
+ ### dist/filters/helpers/backend/buildExpression.js
4347
+
4348
+
4349
+ #### buildExpression(filter)
4350
+
4351
+ Builds filter expression by the filter data.
4352
+ - If the resulting value array is empty the enabled property will be false.
4353
+
4354
+
4355
+
4356
+
4357
+ ##### Parameters
4358
+
4359
+ | Name | Type | Description | |
4360
+ | ---- | ---- | ----------- | -------- |
4361
+ | filter | | The filter to transform | &nbsp; |
4362
+
4363
+
4364
+
4365
+
4366
+ ##### Returns
4367
+
4368
+
4369
+ - a filter expression
4370
+
4371
+
4372
+
4373
+
4374
+ ### dist/filters/helpers/backend/buildUserFilters.js
4375
+
4376
+
4377
+ #### buildUserFilters(userFilters)
4378
+
4379
+ Transform user Filters array into Filter Logic structure
4380
+
4381
+
4382
+
4383
+
4384
+ ##### Parameters
4385
+
4386
+ | Name | Type | Description | |
4387
+ | ---- | ---- | ----------- | -------- |
4388
+ | userFilters | | The filters that the user defined. | &nbsp; |
4389
+
4390
+
4391
+
4392
+
4393
+ ##### Returns
4394
+
4395
+
4396
+ - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
4397
+
4398
+
4399
+
4400
+
4401
+ ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
4402
+
4403
+
4404
+ #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
4405
+
4406
+
4407
+
4408
+
4409
+
4410
+
4411
+ ##### Parameters
4412
+
4413
+ | Name | Type | Description | |
4414
+ | ---- | ---- | ----------- | -------- |
4415
+ | aggFilters | | | &nbsp; |
4416
+ | summaryIndex | | | &nbsp; |
4417
+
4418
+
4419
+
4420
+
4421
+ ##### Returns
4422
+
4423
+
4424
+ -
4425
+
4426
+
4427
+
4428
+
4429
+ ### dist/filters/helpers/backend/getBackendGroupValue.js
4430
+
4431
+
4432
+ #### getBackendGroupValue(filter)
4433
+
4434
+ Gets a group value for the backend logic structure
4435
+
4436
+
4437
+
4438
+
4439
+ ##### Parameters
4440
+
4441
+ | Name | Type | Description | |
4442
+ | ---- | ---- | ----------- | -------- |
4443
+ | filter | | The filter | &nbsp; |
4444
+
4445
+
4446
+
4447
+
4448
+ ##### Returns
4449
+
4450
+
4451
+ - a property
4452
+
4453
+
4454
+
4455
+
4456
+ ### dist/filters/helpers/backend/getBackendProperty.js
4457
+
4458
+
4459
+ #### getBackendProperty(filter)
4460
+
4461
+ Gets a property for the logic structure
4462
+
4463
+
4464
+
4465
+
4466
+ ##### Parameters
4467
+
4468
+ | Name | Type | Description | |
4469
+ | ---- | ---- | ----------- | -------- |
4470
+ | filter | | The filter | &nbsp; |
4471
+
4472
+
4473
+
4474
+
4475
+ ##### Returns
4476
+
4477
+
4478
+ - a property
4479
+
4480
+
4481
+
4482
+
4483
+ ### dist/filters/helpers/backend/getBackendValidator.js
4484
+
4485
+
4486
+ #### getBackendValidator(validator)
4487
+
4488
+ Gets the Validator that is used in requests
4489
+
4490
+
4491
+
4492
+
4493
+ ##### Parameters
4494
+
4495
+ | Name | Type | Description | |
4496
+ | ---- | ---- | ----------- | -------- |
4497
+ | validator | | Filter Validator used in UI | &nbsp; |
4498
+
4499
+
4500
+
4501
+
4502
+ ##### Returns
4503
+
4504
+
4505
+ - Filter Validator used in Backend
4506
+
4507
+
4508
+
4509
+
4510
+ ### dist/filters/helpers/backend/getBackendValues.js
4511
+
4512
+
4513
+ #### getBackendValues(filter)
4514
+
4515
+ Gets the expresion values in the logic format
4516
+
4517
+
4518
+
4519
+
4520
+ ##### Parameters
4521
+
4522
+ | Name | Type | Description | |
4523
+ | ---- | ---- | ----------- | -------- |
4524
+ | filter | | The filter structure | &nbsp; |
4525
+
4526
+
4527
+
4528
+
4529
+ ##### Returns
4530
+
4531
+
4532
+ - A collection of backend expression value
4533
+
4534
+
4535
+
4536
+ #### getResultValues(values, filter)
4537
+
4538
+ Gets the expression values. Depending on the column type
4539
+
4540
+
4541
+
4542
+
4543
+ ##### Parameters
4544
+
4545
+ | Name | Type | Description | |
4546
+ | ---- | ---- | ----------- | -------- |
4547
+ | values | | a collection of filter values | &nbsp; |
4548
+ | filter | | The filter structure | &nbsp; |
4549
+
4550
+
4551
+
4552
+
4553
+ ##### Returns
4554
+
4555
+
4556
+ -
4557
+
4558
+
4559
+
4560
+ #### getRankingValues(values, rankingGroupIndex)
3139
4561
 
3140
4562
  Gets the Ranking values.
3141
4563
 
@@ -3244,12 +4666,132 @@ Returns a filter builder config object by a any given config
3244
4666
 
3245
4667
 
3246
4668
 
3247
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
4669
+ ### dist/filters/helpers/common/areFiltersEquals.js
3248
4670
 
3249
4671
 
3250
- #### excludeUIFiltersByAggregate(uFilters)
4672
+ #### areFiltersEquals(filter1, filter2)
4673
+
4674
+ Validates if both filters are the same
4675
+
4676
+
4677
+
4678
+
4679
+ ##### Parameters
4680
+
4681
+ | Name | Type | Description | |
4682
+ | ---- | ---- | ----------- | -------- |
4683
+ | filter1 | | filter 1 | &nbsp; |
4684
+ | filter2 | | filter 2 | &nbsp; |
4685
+
4686
+
4687
+
4688
+
4689
+ ##### Returns
4690
+
4691
+
4692
+ - true: the filters are equal; false: the filters are NOT equal
4693
+
4694
+
4695
+
4696
+
4697
+ ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
4698
+
4699
+
4700
+ #### excludeFiltersByAggregateColumn(filterData)
4701
+
4702
+ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
4703
+
4704
+
4705
+
4706
+
4707
+ ##### Parameters
4708
+
4709
+ | Name | Type | Description | |
4710
+ | ---- | ---- | ----------- | -------- |
4711
+ | filterData | | The filter data object | &nbsp; |
4712
+
4713
+
4714
+
4715
+
4716
+ ##### Returns
4717
+
4718
+
4719
+ - The new filter data object that were excluded the aggregate filters
4720
+
4721
+
4722
+
4723
+
4724
+ ### dist/filters/helpers/common/excludeFiltersByParams.js
4725
+
4726
+
4727
+ #### excludeFiltersByParams(filterData, params)
4728
+
4729
+ Excludes filters from the given Filters.
4730
+ The validation to filter the stored filter is depending on:
4731
+ - Column
4732
+ - Qrvey ID
4733
+ - Scope type
4734
+ - Scope ID
4735
+ - Panel ID
4736
+ - Validator type
4737
+ - Property type
4738
+ - Enabled flags
4739
+
4740
+
4741
+
4742
+
4743
+ ##### Parameters
4744
+
4745
+ | Name | Type | Description | |
4746
+ | ---- | ---- | ----------- | -------- |
4747
+ | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
4748
+ | params | | given parameters to validate the filter data | &nbsp; |
4749
+
4750
+
4751
+
4752
+
4753
+ ##### Returns
4754
+
4755
+
4756
+ - a new Filter object structure
4757
+
4758
+
4759
+
4760
+
4761
+ ### dist/filters/helpers/common/excludeFiltersByScopes.js
4762
+
4763
+
4764
+ #### excludeFiltersByScopes(filterData, scopes)
4765
+
4766
+ Excludes and returns a filter data without filters by the given scopes
4767
+
4768
+
4769
+
4770
+
4771
+ ##### Parameters
4772
+
4773
+ | Name | Type | Description | |
4774
+ | ---- | ---- | ----------- | -------- |
4775
+ | filterData | | The Filter Data | &nbsp; |
4776
+ | scopes | | collection of scopes to be as filtering parameters | &nbsp; |
4777
+
4778
+
4779
+
4780
+
4781
+ ##### Returns
4782
+
4783
+
4784
+ - The new Filter Data without filters by the given scopes.
4785
+
4786
+
4787
+
4788
+
4789
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
4790
+
4791
+
4792
+ #### getFilterColumnLabel(column)
3251
4793
 
3252
- Excludes Aggregate Filters in the Flattened UI Filters array
4794
+ Get an string of the properties of the given filter column.
3253
4795
 
3254
4796
 
3255
4797
 
@@ -3258,7 +4800,7 @@ Excludes Aggregate Filters in the Flattened UI Filters array
3258
4800
 
3259
4801
  | Name | Type | Description | |
3260
4802
  | ---- | ---- | ----------- | -------- |
3261
- | uFilters | | Collection of Flat UI Filters | &nbsp; |
4803
+ | column | | The filter column | &nbsp; |
3262
4804
 
3263
4805
 
3264
4806
 
@@ -3266,17 +4808,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
3266
4808
  ##### Returns
3267
4809
 
3268
4810
 
3269
- - a new Flat UI Filters that were excluded the aggregate filters
4811
+ - an string with the property, aggregate or calculation label.
3270
4812
 
3271
4813
 
3272
4814
 
3273
4815
 
3274
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4816
+ ### dist/filters/helpers/common/getFilterLabel.js
3275
4817
 
3276
4818
 
3277
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4819
+ #### getFilterLabel(filter)
3278
4820
 
3279
- Excludes and returns a UI Flat Filters without filters by the given scopes
4821
+ Gets the Filter Label + Column label
3280
4822
 
3281
4823
 
3282
4824
 
@@ -3285,8 +4827,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
3285
4827
 
3286
4828
  | Name | Type | Description | |
3287
4829
  | ---- | ---- | ----------- | -------- |
3288
- | uFilters | | The Flatten UI Filters | &nbsp; |
3289
- | scopes | | collection of scopes types | &nbsp; |
4830
+ | filter | | the UI filter | &nbsp; |
3290
4831
 
3291
4832
 
3292
4833
 
@@ -3294,17 +4835,28 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
3294
4835
  ##### Returns
3295
4836
 
3296
4837
 
3297
- - The new array of UI Flattened filters
4838
+ - a sring label
3298
4839
 
3299
4840
 
3300
4841
 
3301
4842
 
3302
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4843
+ ### dist/filters/helpers/common/getFilterid.js
3303
4844
 
3304
4845
 
3305
- #### getFilterPropertyLabel(filter)
4846
+ #### getFilterid(filter)
3306
4847
 
3307
- Gets the label of the filter property
4848
+ Get the Filter ID by the filter structure
4849
+ The order of the epression ID is:
4850
+ - Scope Type
4851
+ - scopeid
4852
+ - qrveyid
4853
+ - panelid
4854
+ - columnid
4855
+ - validator
4856
+ - property
4857
+ - Column Aggregate
4858
+ - Column Calculation
4859
+ - Optional Index
3308
4860
 
3309
4861
 
3310
4862
 
@@ -3313,7 +4865,7 @@ Gets the label of the filter property
3313
4865
 
3314
4866
  | Name | Type | Description | |
3315
4867
  | ---- | ---- | ----------- | -------- |
3316
- | filter | | The UI Filter | &nbsp; |
4868
+ | filter | | the filter structure | &nbsp; |
3317
4869
 
3318
4870
 
3319
4871
 
@@ -3321,17 +4873,17 @@ Gets the label of the filter property
3321
4873
  ##### Returns
3322
4874
 
3323
4875
 
3324
- - a string of the filter property label
4876
+ - a text to identify the filter
3325
4877
 
3326
4878
 
3327
4879
 
3328
4880
 
3329
- ### dist/filters/helpers/ui/getOutputFormatByColumn.js
4881
+ ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3330
4882
 
3331
4883
 
3332
- #### getOutputFormatByColumn(column, datasets)
4884
+ #### getFiltersByAggregateColumn(filterData)
3333
4885
 
3334
- Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
4886
+ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3335
4887
 
3336
4888
 
3337
4889
 
@@ -3340,8 +4892,7 @@ Gets output format object from Datasets by the given column. Item of the dataset
3340
4892
 
3341
4893
  | Name | Type | Description | |
3342
4894
  | ---- | ---- | ----------- | -------- |
3343
- | column | | The column | &nbsp; |
3344
- | datasets | | array of datasets | &nbsp; |
4895
+ | filterData | | The filter data object | &nbsp; |
3345
4896
 
3346
4897
 
3347
4898
 
@@ -3349,74 +4900,82 @@ Gets output format object from Datasets by the given column. Item of the dataset
3349
4900
  ##### Returns
3350
4901
 
3351
4902
 
3352
- - The output format object
4903
+ - The new filter data object that were get the aggregate filters
3353
4904
 
3354
4905
 
3355
4906
 
3356
4907
 
3357
- ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4908
+ ### dist/filters/helpers/common/getFiltersByParams.js
3358
4909
 
3359
4910
 
3360
- #### getUIFlatFilterByParams()
4911
+ #### getFiltersByParams(filterData, params)
3361
4912
 
3362
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4913
+ Gets filters from the given params.
3363
4914
  The validation to filter the stored filter is depending on:
3364
4915
  - Column
3365
- - Qrvey ID,
4916
+ - Qrvey ID
3366
4917
  - Scope type
3367
4918
  - Scope ID
3368
4919
  - Panel ID
3369
4920
  - Validator type
3370
4921
  - Property type
4922
+ - Enabled flags
4923
+
3371
4924
 
3372
4925
 
3373
4926
 
4927
+ ##### Parameters
4928
+
4929
+ | Name | Type | Description | |
4930
+ | ---- | ---- | ----------- | -------- |
4931
+ | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
4932
+ | params | | given parameters to validate the dataset | &nbsp; |
4933
+
3374
4934
 
3375
4935
 
3376
4936
 
3377
4937
  ##### Returns
3378
4938
 
3379
4939
 
3380
- - The index of the uFilter array or the Filter object s
4940
+ - a new Filter object structure
3381
4941
 
3382
4942
 
3383
4943
 
3384
4944
 
3385
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4945
+ ### dist/filters/helpers/common/getFiltersByScopes.js
3386
4946
 
3387
4947
 
3388
- #### getUIFlatFiltersByParams()
4948
+ #### getFiltersByScopes(filterData, scopes)
3389
4949
 
3390
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
3391
- The validation to filter the stored filter is depending on:
3392
- - Column
3393
- - Qrvey ID,
3394
- - Scope type
3395
- - Scope ID
3396
- - Panel ID
3397
- - Validator type
3398
- - Property type
3399
- - Enabled flags
4950
+ Filters and gets a Filter Data by the given scopes
3400
4951
 
3401
4952
 
3402
4953
 
3403
4954
 
4955
+ ##### Parameters
4956
+
4957
+ | Name | Type | Description | |
4958
+ | ---- | ---- | ----------- | -------- |
4959
+ | filterData | | The Filter Data | &nbsp; |
4960
+ | scopes | | collection of scopes types | &nbsp; |
4961
+
4962
+
3404
4963
 
3405
4964
 
3406
4965
  ##### Returns
3407
4966
 
3408
4967
 
3409
- - The index of the uFilter array or the Filter object s
4968
+ - The new Filter Data
3410
4969
 
3411
4970
 
3412
4971
 
3413
4972
 
3414
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
4973
+ ### dist/filters/helpers/common/getFiltersByScopesIds.js
3415
4974
 
3416
4975
 
3417
- #### getUIFlatFiltersByScopes(uFilters, scopes)
4976
+ #### getFiltersByScopesIds(filterData, scopes)
3418
4977
 
3419
- Filters and gets a UI Flatten Filters by the given scopes
4978
+ Gets filters from Filter Data by Scopes/Scope IDs.
3420
4979
 
3421
4980
 
3422
4981
 
@@ -3425,8 +4984,8 @@ Filters and gets a UI Flatten Filters by the given scopes
3425
4984
 
3426
4985
  | Name | Type | Description | |
3427
4986
  | ---- | ---- | ----------- | -------- |
3428
- | uFilters | | The Flatten UI Filters | &nbsp; |
3429
- | scopes | | collection of scopes types | &nbsp; |
4987
+ | filterData | | The filter data | &nbsp; |
4988
+ | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
3430
4989
 
3431
4990
 
3432
4991
 
@@ -3434,17 +4993,17 @@ Filters and gets a UI Flatten Filters by the given scopes
3434
4993
  ##### Returns
3435
4994
 
3436
4995
 
3437
- - The new array of UI Flattened filters
3438
-
4996
+ - a new Filter Data
3439
4997
 
3440
4998
 
3441
4999
 
3442
- ### dist/filters/helpers/ui/getUIValues.js
3443
5000
 
5001
+ ### dist/filters/helpers/common/getFiltersByVisibility.js
3444
5002
 
3445
- #### getUIValues(filter, addEnableds, rankingGroupIndex)
3446
5003
 
5004
+ #### getFiltersByVisibility(filterData, scopes)
3447
5005
 
5006
+ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3448
5007
 
3449
5008
 
3450
5009
 
@@ -3453,9 +5012,8 @@ Filters and gets a UI Flatten Filters by the given scopes
3453
5012
 
3454
5013
  | Name | Type | Description | |
3455
5014
  | ---- | ---- | ----------- | -------- |
3456
- | filter | | | &nbsp; |
3457
- | addEnableds | | | &nbsp; |
3458
- | rankingGroupIndex | | | &nbsp; |
5015
+ | filterData | | a Filter Data or UI Filter Data | &nbsp; |
5016
+ | scopes | | a Scopes/Scope IDs array | &nbsp; |
3459
5017
 
3460
5018
 
3461
5019
 
@@ -3463,17 +5021,17 @@ Filters and gets a UI Flatten Filters by the given scopes
3463
5021
  ##### Returns
3464
5022
 
3465
5023
 
3466
- -
5024
+ - a new Filter Data
3467
5025
 
3468
5026
 
3469
5027
 
3470
5028
 
3471
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
5029
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
3472
5030
 
3473
5031
 
3474
- #### resolveUIFlatFilterByParams(filter, params)
5032
+ #### getMergeFiltersSettings(settings)
3475
5033
 
3476
- Resolves conditions between UI flattened filter and given parameters
5034
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3477
5035
 
3478
5036
 
3479
5037
 
@@ -3482,8 +5040,7 @@ Resolves conditions between UI flattened filter and given parameters
3482
5040
 
3483
5041
  | Name | Type | Description | |
3484
5042
  | ---- | ---- | ----------- | -------- |
3485
- | filter | | UI Flatten Filter | &nbsp; |
3486
- | params | | Parameters to validate | &nbsp; |
5043
+ | settings | | an object to the MergeFilters settings | &nbsp; |
3487
5044
 
3488
5045
 
3489
5046
 
@@ -3491,17 +5048,17 @@ Resolves conditions between UI flattened filter and given parameters
3491
5048
  ##### Returns
3492
5049
 
3493
5050
 
3494
- - true: the conditions are satisfied.
5051
+ - a new MergeFilters settings object.
3495
5052
 
3496
5053
 
3497
5054
 
3498
5055
 
3499
- ### dist/filters/helpers/common/areFiltersEquals.js
5056
+ ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3500
5057
 
3501
5058
 
3502
- #### areFiltersEquals(filter1, filter2)
5059
+ #### getParamsToGetFilterSettings(settings)
3503
5060
 
3504
- Validates if both filters are the same
5061
+ Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3505
5062
 
3506
5063
 
3507
5064
 
@@ -3510,8 +5067,7 @@ Validates if both filters are the same
3510
5067
 
3511
5068
  | Name | Type | Description | |
3512
5069
  | ---- | ---- | ----------- | -------- |
3513
- | filter1 | | filter 1 | &nbsp; |
3514
- | filter2 | | filter 2 | &nbsp; |
5070
+ | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
3515
5071
 
3516
5072
 
3517
5073
 
@@ -3519,17 +5075,17 @@ Validates if both filters are the same
3519
5075
  ##### Returns
3520
5076
 
3521
5077
 
3522
- - true: the filters are equal; false: the filters are NOT equal
5078
+ - a new ParamsToGetFilter settings object.
3523
5079
 
3524
5080
 
3525
5081
 
3526
5082
 
3527
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
5083
+ ### dist/filters/helpers/common/getValuesFromDataset.js
3528
5084
 
3529
5085
 
3530
- #### excludeFiltersByAggregateColumn(filterData)
5086
+ #### getValuesFromDataset(props)
3531
5087
 
3532
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
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.
3533
5089
 
3534
5090
 
3535
5091
 
@@ -3538,7 +5094,7 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3538
5094
 
3539
5095
  | Name | Type | Description | |
3540
5096
  | ---- | ---- | ----------- | -------- |
3541
- | filterData | | The filter data object | &nbsp; |
5097
+ | props | | Configuration to get static values from the given dataset. | &nbsp; |
3542
5098
 
3543
5099
 
3544
5100
 
@@ -3546,26 +5102,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
3546
5102
  ##### Returns
3547
5103
 
3548
5104
 
3549
- - The new filter data object that were excluded the aggregate filters
5105
+ - The values.
3550
5106
 
3551
5107
 
3552
5108
 
3553
5109
 
3554
- ### dist/filters/helpers/common/excludeFiltersByParams.js
5110
+ ### dist/filters/helpers/common/getValuesFromModel.js
3555
5111
 
3556
5112
 
3557
- #### excludeFiltersByParams(filterData, params)
5113
+ #### getValuesFromModel(props)
3558
5114
 
3559
- Excludes filters from the given Filters.
3560
- The validation to filter the stored filter is depending on:
3561
- - Column
3562
- - Qrvey ID
3563
- - Scope type
3564
- - Scope ID
3565
- - Panel ID
3566
- - Validator type
3567
- - Property type
3568
- - Enabled flags
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.
3569
5116
 
3570
5117
 
3571
5118
 
@@ -3574,8 +5121,7 @@ The validation to filter the stored filter is depending on:
3574
5121
 
3575
5122
  | Name | Type | Description | |
3576
5123
  | ---- | ---- | ----------- | -------- |
3577
- | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
3578
- | params | | given parameters to validate the filter data | &nbsp; |
5124
+ | props | | Configuration to get static values from the given model. | &nbsp; |
3579
5125
 
3580
5126
 
3581
5127
 
@@ -3583,17 +5129,17 @@ The validation to filter the stored filter is depending on:
3583
5129
  ##### Returns
3584
5130
 
3585
5131
 
3586
- - a new Filter object structure
5132
+ - The values.
3587
5133
 
3588
5134
 
3589
5135
 
3590
5136
 
3591
- ### dist/filters/helpers/common/excludeFiltersByScopes.js
5137
+ ### dist/filters/helpers/common/haveFiltersByDataset.js
3592
5138
 
3593
5139
 
3594
- #### excludeFiltersByScopes(filterData, scopes)
5140
+ #### haveFiltersByDataset(filterData, qrveyid)
3595
5141
 
3596
- Excludes and returns a filter data without filters by the given scopes
5142
+ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3597
5143
 
3598
5144
 
3599
5145
 
@@ -3602,8 +5148,8 @@ Excludes and returns a filter data without filters by the given scopes
3602
5148
 
3603
5149
  | Name | Type | Description | |
3604
5150
  | ---- | ---- | ----------- | -------- |
3605
- | filterData | | The Filter Data | &nbsp; |
3606
- | scopes | | collection of scopes to be as filtering parameters | &nbsp; |
5151
+ | filterData | | the filter data or the UI filter data. | &nbsp; |
5152
+ | qrveyid | | The Qrvey ID | &nbsp; |
3607
5153
 
3608
5154
 
3609
5155
 
@@ -3611,17 +5157,17 @@ Excludes and returns a filter data without filters by the given scopes
3611
5157
  ##### Returns
3612
5158
 
3613
5159
 
3614
- - The new Filter Data without filters by the given scopes.
5160
+ - true: the filter data has filters by the Qrvey ID
3615
5161
 
3616
5162
 
3617
5163
 
3618
5164
 
3619
- ### dist/filters/helpers/common/getFilterLabel.js
5165
+ ### dist/filters/helpers/common/isBetweenValidator.js
3620
5166
 
3621
5167
 
3622
- #### getFilterLabel(filter)
5168
+ #### isBetweenValidator(validator)
3623
5169
 
3624
- Gets the Filter Label + Column label
5170
+ Validates if the given validator is a Between type
3625
5171
 
3626
5172
 
3627
5173
 
@@ -3630,7 +5176,7 @@ Gets the Filter Label + Column label
3630
5176
 
3631
5177
  | Name | Type | Description | |
3632
5178
  | ---- | ---- | ----------- | -------- |
3633
- | filter | | the UI filter | &nbsp; |
5179
+ | validator | | The validator | &nbsp; |
3634
5180
 
3635
5181
 
3636
5182
 
@@ -3638,17 +5184,17 @@ Gets the Filter Label + Column label
3638
5184
  ##### Returns
3639
5185
 
3640
5186
 
3641
- - a sring label
5187
+ - true: it is a between validator; false: it is not a between validator
3642
5188
 
3643
5189
 
3644
5190
 
3645
5191
 
3646
- ### dist/filters/helpers/common/getFilterColumnLabel.js
5192
+ ### dist/filters/helpers/common/isDateDistinctProperty.js
3647
5193
 
3648
5194
 
3649
- #### getFilterColumnLabel(column)
5195
+ #### isDateDistinctProperty(column, property)
3650
5196
 
3651
- Get an string of the properties of the given filter column.
5197
+ Determines if the filter column and property is a distinct group dates type
3652
5198
 
3653
5199
 
3654
5200
 
@@ -3658,6 +5204,7 @@ Get an string of the properties of the given filter column.
3658
5204
  | Name | Type | Description | |
3659
5205
  | ---- | ---- | ----------- | -------- |
3660
5206
  | column | | The filter column | &nbsp; |
5207
+ | property | | The filter property | &nbsp; |
3661
5208
 
3662
5209
 
3663
5210
 
@@ -3665,28 +5212,17 @@ Get an string of the properties of the given filter column.
3665
5212
  ##### Returns
3666
5213
 
3667
5214
 
3668
- - an string with the property, aggregate or calculation label.
5215
+ - True if the given property is included from distinct group dates type
3669
5216
 
3670
5217
 
3671
5218
 
3672
5219
 
3673
- ### dist/filters/helpers/common/getFilterid.js
5220
+ ### dist/filters/helpers/common/isInValidator.js
3674
5221
 
3675
5222
 
3676
- #### getFilterid(filter)
5223
+ #### isInValidator(validator)
3677
5224
 
3678
- Get the Filter ID by the filter structure
3679
- The order of the epression ID is:
3680
- - Scope Type
3681
- - scopeid
3682
- - qrveyid
3683
- - panelid
3684
- - columnid
3685
- - validator
3686
- - property
3687
- - Column Aggregate
3688
- - Column Calculation
3689
- - Optional Index
5225
+ Validates if the given validator is a In type
3690
5226
 
3691
5227
 
3692
5228
 
@@ -3695,7 +5231,7 @@ The order of the epression ID is:
3695
5231
 
3696
5232
  | Name | Type | Description | |
3697
5233
  | ---- | ---- | ----------- | -------- |
3698
- | filter | | the filter structure | &nbsp; |
5234
+ | validator | | The validator | &nbsp; |
3699
5235
 
3700
5236
 
3701
5237
 
@@ -3703,17 +5239,17 @@ The order of the epression ID is:
3703
5239
  ##### Returns
3704
5240
 
3705
5241
 
3706
- - a text to identify the filter
5242
+ - true: it is a In validator; false: it is not a In validator
3707
5243
 
3708
5244
 
3709
5245
 
3710
5246
 
3711
- ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
5247
+ ### dist/filters/helpers/common/isNullValidator.js
3712
5248
 
3713
5249
 
3714
- #### getFiltersByAggregateColumn(filterData)
5250
+ #### isNullValidator(validator)
3715
5251
 
3716
- Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
5252
+ Checks if the given validator is a Null type.
3717
5253
 
3718
5254
 
3719
5255
 
@@ -3722,7 +5258,7 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3722
5258
 
3723
5259
  | Name | Type | Description | |
3724
5260
  | ---- | ---- | ----------- | -------- |
3725
- | filterData | | The filter data object | &nbsp; |
5261
+ | validator | | The Filter Validator | &nbsp; |
3726
5262
 
3727
5263
 
3728
5264
 
@@ -3730,26 +5266,17 @@ Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggr
3730
5266
  ##### Returns
3731
5267
 
3732
5268
 
3733
- - The new filter data object that were get the aggregate filters
5269
+ - True: It is a Null Validator; False: It is not a Null Validator.
3734
5270
 
3735
5271
 
3736
5272
 
3737
5273
 
3738
- ### dist/filters/helpers/common/getFiltersByParams.js
5274
+ ### dist/filters/helpers/common/isRangeValidator.js
3739
5275
 
3740
5276
 
3741
- #### getFiltersByParams(filterData, params)
5277
+ #### isRangeValidator(validator)
3742
5278
 
3743
- Gets filters from the given params.
3744
- The validation to filter the stored filter is depending on:
3745
- - Column
3746
- - Qrvey ID
3747
- - Scope type
3748
- - Scope ID
3749
- - Panel ID
3750
- - Validator type
3751
- - Property type
3752
- - Enabled flags
5279
+ Validates if the given validator is a Range type. Range type means the value has min and max values to filter
3753
5280
 
3754
5281
 
3755
5282
 
@@ -3758,8 +5285,7 @@ The validation to filter the stored filter is depending on:
3758
5285
 
3759
5286
  | Name | Type | Description | |
3760
5287
  | ---- | ---- | ----------- | -------- |
3761
- | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
3762
- | params | | given parameters to validate the dataset | &nbsp; |
5288
+ | validator | | The filter validator | &nbsp; |
3763
5289
 
3764
5290
 
3765
5291
 
@@ -3767,17 +5293,17 @@ The validation to filter the stored filter is depending on:
3767
5293
  ##### Returns
3768
5294
 
3769
5295
 
3770
- - a new Filter object structure
5296
+ - true: it is a range validator
3771
5297
 
3772
5298
 
3773
5299
 
3774
5300
 
3775
- ### dist/filters/helpers/common/getFiltersByScopes.js
5301
+ ### dist/filters/helpers/common/isRegularValidator.js
3776
5302
 
3777
5303
 
3778
- #### getFiltersByScopes(filterData, scopes)
5304
+ #### isRegularValidator(validator)
3779
5305
 
3780
- Filters and gets a Filter Data by the given scopes
5306
+ Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3781
5307
 
3782
5308
 
3783
5309
 
@@ -3786,8 +5312,7 @@ Filters and gets a Filter Data by the given scopes
3786
5312
 
3787
5313
  | Name | Type | Description | |
3788
5314
  | ---- | ---- | ----------- | -------- |
3789
- | filterData | | The Filter Data | &nbsp; |
3790
- | scopes | | collection of scopes types | &nbsp; |
5315
+ | validator | | The filter validator | &nbsp; |
3791
5316
 
3792
5317
 
3793
5318
 
@@ -3795,17 +5320,17 @@ Filters and gets a Filter Data by the given scopes
3795
5320
  ##### Returns
3796
5321
 
3797
5322
 
3798
- - The new Filter Data
5323
+ - true: it is a range validator
3799
5324
 
3800
5325
 
3801
5326
 
3802
5327
 
3803
- ### dist/filters/helpers/common/getFiltersByScopesIds.js
5328
+ ### dist/filters/helpers/common/mergeFilters.js
3804
5329
 
3805
5330
 
3806
- #### getFiltersByScopesIds(filterData, scopes)
5331
+ #### mergeFilters(filterData1, filterData2, overwriteValues)
3807
5332
 
3808
- Gets filters from Filter Data by Scopes/Scope IDs.
5333
+ Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3809
5334
 
3810
5335
 
3811
5336
 
@@ -3814,8 +5339,9 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3814
5339
 
3815
5340
  | Name | Type | Description | |
3816
5341
  | ---- | ---- | ----------- | -------- |
3817
- | filterData | | The filter data | &nbsp; |
3818
- | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
5342
+ | filterData1 | | The target filter data | &nbsp; |
5343
+ | filterData2 | | the filter data to be merged | &nbsp; |
5344
+ | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3819
5345
 
3820
5346
 
3821
5347
 
@@ -3823,17 +5349,13 @@ Gets filters from Filter Data by Scopes/Scope IDs.
3823
5349
  ##### Returns
3824
5350
 
3825
5351
 
3826
- - a new Filter Data
3827
-
3828
-
3829
-
5352
+ - a new filter data structure
3830
5353
 
3831
- ### dist/filters/helpers/common/getFiltersByVisibility.js
3832
5354
 
3833
5355
 
3834
- #### getFiltersByVisibility(filterData, scopes)
5356
+ #### mergeScopes(scopes1, scopes2, overwriteValues)
3835
5357
 
3836
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
5358
+ Gets a new scope structure array by merging two scope structures
3837
5359
 
3838
5360
 
3839
5361
 
@@ -3842,8 +5364,9 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3842
5364
 
3843
5365
  | Name | Type | Description | |
3844
5366
  | ---- | ---- | ----------- | -------- |
3845
- | filterData | | a Filter Data or UI Filter Data | &nbsp; |
3846
- | scopes | | a Scopes/Scope IDs array | &nbsp; |
5367
+ | scopes1 | | the target scope structure | &nbsp; |
5368
+ | scopes2 | | the scope to be merged | &nbsp; |
5369
+ | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3847
5370
 
3848
5371
 
3849
5372
 
@@ -3851,17 +5374,13 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3851
5374
  ##### Returns
3852
5375
 
3853
5376
 
3854
- - a new Filter Data
3855
-
3856
-
3857
-
5377
+ - a new scope structure array
3858
5378
 
3859
- ### dist/filters/helpers/common/getMergeFiltersSettings.js
3860
5379
 
3861
5380
 
3862
- #### getMergeFiltersSettings(settings)
5381
+ #### mergeDatasets(datasets1, datasets2, overwriteValues)
3863
5382
 
3864
- Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
5383
+ Gets a new dataset structure array by merging two dataset structures
3865
5384
 
3866
5385
 
3867
5386
 
@@ -3870,7 +5389,9 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3870
5389
 
3871
5390
  | Name | Type | Description | |
3872
5391
  | ---- | ---- | ----------- | -------- |
3873
- | settings | | an object to the MergeFilters settings | &nbsp; |
5392
+ | datasets1 | | the target dataset structure | &nbsp; |
5393
+ | datasets2 | | the dataset to be merged | &nbsp; |
5394
+ | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3874
5395
 
3875
5396
 
3876
5397
 
@@ -3878,17 +5399,13 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
3878
5399
  ##### Returns
3879
5400
 
3880
5401
 
3881
- - a new MergeFilters settings object.
3882
-
3883
-
3884
-
5402
+ - a new dataset structure array
3885
5403
 
3886
- ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3887
5404
 
3888
5405
 
3889
- #### getParamsToGetFilterSettings(settings)
5406
+ #### mergeFilterss(filters1, filters2, overwriteValues)
3890
5407
 
3891
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
5408
+ Gets a new filter structure array by merging two filter structures
3892
5409
 
3893
5410
 
3894
5411
 
@@ -3897,7 +5414,9 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3897
5414
 
3898
5415
  | Name | Type | Description | |
3899
5416
  | ---- | ---- | ----------- | -------- |
3900
- | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
5417
+ | filters1 | | the target filter structure | &nbsp; |
5418
+ | filters2 | | the filter to be merged | &nbsp; |
5419
+ | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3901
5420
 
3902
5421
 
3903
5422
 
@@ -3905,17 +5424,13 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
3905
5424
  ##### Returns
3906
5425
 
3907
5426
 
3908
- - a new ParamsToGetFilter settings object.
3909
-
3910
-
3911
-
5427
+ - a new filter structure array
3912
5428
 
3913
- ### dist/filters/helpers/common/haveFiltersByDataset.js
3914
5429
 
3915
5430
 
3916
- #### haveFiltersByDataset(filterData, qrveyid)
5431
+ #### mergeValues(filter1, filter2, overwrite)
3917
5432
 
3918
- Validates if the filter data has filters by a dataset ID (Qrvey ID).
5433
+ Gets a new value structure array by merging two value structures
3919
5434
 
3920
5435
 
3921
5436
 
@@ -3924,8 +5439,9 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3924
5439
 
3925
5440
  | Name | Type | Description | |
3926
5441
  | ---- | ---- | ----------- | -------- |
3927
- | filterData | | the filter data or the UI filter data. | &nbsp; |
3928
- | qrveyid | | The Qrvey ID | &nbsp; |
5442
+ | filter1 | | the target filter structure | &nbsp; |
5443
+ | filter2 | | the filter to be used to merge the values | &nbsp; |
5444
+ | overwrite | | Flag to overwrite or not the filter values | &nbsp; |
3929
5445
 
3930
5446
 
3931
5447
 
@@ -3933,17 +5449,17 @@ Validates if the filter data has filters by a dataset ID (Qrvey ID).
3933
5449
  ##### Returns
3934
5450
 
3935
5451
 
3936
- - true: the filter data has filters by the Qrvey ID
5452
+ - a new value structure array
3937
5453
 
3938
5454
 
3939
5455
 
3940
5456
 
3941
- ### dist/filters/helpers/common/isBetweenValidator.js
5457
+ ### dist/filters/helpers/common/resolveDatasetConditions.js
3942
5458
 
3943
5459
 
3944
- #### isBetweenValidator(validator)
5460
+ #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3945
5461
 
3946
- Validates if the given validator is a Between type
5462
+ Resolves the conditions by given params
3947
5463
 
3948
5464
 
3949
5465
 
@@ -3952,7 +5468,10 @@ Validates if the given validator is a Between type
3952
5468
 
3953
5469
  | Name | Type | Description | |
3954
5470
  | ---- | ---- | ----------- | -------- |
3955
- | validator | | The validator | &nbsp; |
5471
+ | filter | | The dataset structure | &nbsp; |
5472
+ | params | | given parameters to validate the dataset | &nbsp; |
5473
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
5474
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
3956
5475
 
3957
5476
 
3958
5477
 
@@ -3960,17 +5479,17 @@ Validates if the given validator is a Between type
3960
5479
  ##### Returns
3961
5480
 
3962
5481
 
3963
- - true: it is a between validator; false: it is not a between validator
5482
+ - true: the condition is satisfied
3964
5483
 
3965
5484
 
3966
5485
 
3967
5486
 
3968
- ### dist/filters/helpers/common/isDateDistinctProperty.js
5487
+ ### dist/filters/helpers/common/resolveFilterConditions.js
3969
5488
 
3970
5489
 
3971
- #### isDateDistinctProperty(column, property)
5490
+ #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3972
5491
 
3973
- Determines if the filter column and property is a distinct group dates type
5492
+ Resolves the conditions by given params
3974
5493
 
3975
5494
 
3976
5495
 
@@ -3979,8 +5498,10 @@ Determines if the filter column and property is a distinct group dates type
3979
5498
 
3980
5499
  | Name | Type | Description | |
3981
5500
  | ---- | ---- | ----------- | -------- |
3982
- | column | | The filter column | &nbsp; |
3983
- | property | | The filter property | &nbsp; |
5501
+ | filter | | The filter | &nbsp; |
5502
+ | params | | given parameters to validate the filter | &nbsp; |
5503
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
5504
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
3984
5505
 
3985
5506
 
3986
5507
 
@@ -3988,17 +5509,17 @@ Determines if the filter column and property is a distinct group dates type
3988
5509
  ##### Returns
3989
5510
 
3990
5511
 
3991
- - True if the given property is included from distinct group dates type
5512
+ - true: the condition is satisfied
3992
5513
 
3993
5514
 
3994
5515
 
3995
5516
 
3996
- ### dist/filters/helpers/common/isInValidator.js
5517
+ ### dist/filters/helpers/common/resolveScopeConditions.js
3997
5518
 
3998
5519
 
3999
- #### isInValidator(validator)
5520
+ #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
4000
5521
 
4001
- Validates if the given validator is a In type
5522
+ Resolves the conditions by given params
4002
5523
 
4003
5524
 
4004
5525
 
@@ -4007,7 +5528,10 @@ Validates if the given validator is a In type
4007
5528
 
4008
5529
  | Name | Type | Description | |
4009
5530
  | ---- | ---- | ----------- | -------- |
4010
- | validator | | The validator | &nbsp; |
5531
+ | filter | | The filter scope structure | &nbsp; |
5532
+ | params | | given parameters to validate the filter | &nbsp; |
5533
+ | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
5534
+ | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
4011
5535
 
4012
5536
 
4013
5537
 
@@ -4015,17 +5539,17 @@ Validates if the given validator is a In type
4015
5539
  ##### Returns
4016
5540
 
4017
5541
 
4018
- - true: it is a In validator; false: it is not a In validator
5542
+ - true: the condition is satisfied
4019
5543
 
4020
5544
 
4021
5545
 
4022
5546
 
4023
- ### dist/filters/helpers/common/isNullValidator.js
5547
+ ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
4024
5548
 
4025
5549
 
4026
- #### isNullValidator(validator)
5550
+ #### excludeUIFiltersByAggregate(uFilters)
4027
5551
 
4028
- Checks if the given validator is a Null type.
5552
+ Excludes Aggregate Filters in the Flattened UI Filters array
4029
5553
 
4030
5554
 
4031
5555
 
@@ -4034,7 +5558,7 @@ Checks if the given validator is a Null type.
4034
5558
 
4035
5559
  | Name | Type | Description | |
4036
5560
  | ---- | ---- | ----------- | -------- |
4037
- | validator | | The Filter Validator | &nbsp; |
5561
+ | uFilters | | Collection of Flat UI Filters | &nbsp; |
4038
5562
 
4039
5563
 
4040
5564
 
@@ -4042,17 +5566,17 @@ Checks if the given validator is a Null type.
4042
5566
  ##### Returns
4043
5567
 
4044
5568
 
4045
- - True: It is a Null Validator; False: It is not a Null Validator.
5569
+ - a new Flat UI Filters that were excluded the aggregate filters
4046
5570
 
4047
5571
 
4048
5572
 
4049
5573
 
4050
- ### dist/filters/helpers/common/isRegularValidator.js
5574
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4051
5575
 
4052
5576
 
4053
- #### isRegularValidator(validator)
5577
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4054
5578
 
4055
- Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
5579
+ Excludes and returns a UI Flat Filters without filters by the given scopes
4056
5580
 
4057
5581
 
4058
5582
 
@@ -4061,7 +5585,8 @@ Validates if the given validator is a regular type. Regular type means the filte
4061
5585
 
4062
5586
  | Name | Type | Description | |
4063
5587
  | ---- | ---- | ----------- | -------- |
4064
- | validator | | The filter validator | &nbsp; |
5588
+ | uFilters | | The Flatten UI Filters | &nbsp; |
5589
+ | scopes | | collection of scopes types | &nbsp; |
4065
5590
 
4066
5591
 
4067
5592
 
@@ -4069,17 +5594,17 @@ Validates if the given validator is a regular type. Regular type means the filte
4069
5594
  ##### Returns
4070
5595
 
4071
5596
 
4072
- - true: it is a range validator
5597
+ - The new array of UI Flattened filters
4073
5598
 
4074
5599
 
4075
5600
 
4076
5601
 
4077
- ### dist/filters/helpers/common/isRangeValidator.js
5602
+ ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4078
5603
 
4079
5604
 
4080
- #### isRangeValidator(validator)
5605
+ #### getFilterPropertyLabel(filter)
4081
5606
 
4082
- Validates if the given validator is a Range type. Range type means the value has min and max values to filter
5607
+ Gets the label of the filter property
4083
5608
 
4084
5609
 
4085
5610
 
@@ -4088,7 +5613,7 @@ Validates if the given validator is a Range type. Range type means the value has
4088
5613
 
4089
5614
  | Name | Type | Description | |
4090
5615
  | ---- | ---- | ----------- | -------- |
4091
- | validator | | The filter validator | &nbsp; |
5616
+ | filter | | The UI Filter | &nbsp; |
4092
5617
 
4093
5618
 
4094
5619
 
@@ -4096,17 +5621,17 @@ Validates if the given validator is a Range type. Range type means the value has
4096
5621
  ##### Returns
4097
5622
 
4098
5623
 
4099
- - true: it is a range validator
5624
+ - a string of the filter property label
4100
5625
 
4101
5626
 
4102
5627
 
4103
5628
 
4104
- ### dist/filters/helpers/common/mergeFilters.js
5629
+ ### dist/filters/helpers/ui/getOutputFormatByColumn.js
4105
5630
 
4106
5631
 
4107
- #### mergeFilters(filterData1, filterData2, overwriteValues)
5632
+ #### getOutputFormatByColumn(column, datasets)
4108
5633
 
4109
- Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
5634
+ Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
4110
5635
 
4111
5636
 
4112
5637
 
@@ -4115,9 +5640,8 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
4115
5640
 
4116
5641
  | Name | Type | Description | |
4117
5642
  | ---- | ---- | ----------- | -------- |
4118
- | filterData1 | | The target filter data | &nbsp; |
4119
- | filterData2 | | the filter data to be merged | &nbsp; |
4120
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
5643
+ | column | | The column | &nbsp; |
5644
+ | datasets | | array of datasets | &nbsp; |
4121
5645
 
4122
5646
 
4123
5647
 
@@ -4125,13 +5649,18 @@ Merge filter data structures in a new one. The first Filter Data passed in the a
4125
5649
  ##### Returns
4126
5650
 
4127
5651
 
4128
- - a new filter data structure
5652
+ - The output format object
4129
5653
 
4130
5654
 
4131
5655
 
4132
- #### mergeScopes(scopes1, scopes2, overwriteValues)
4133
5656
 
4134
- Gets a new scope structure array by merging two scope structures
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
4135
5664
 
4136
5665
 
4137
5666
 
@@ -4140,9 +5669,7 @@ Gets a new scope structure array by merging two scope structures
4140
5669
 
4141
5670
  | Name | Type | Description | |
4142
5671
  | ---- | ---- | ----------- | -------- |
4143
- | scopes1 | | the target scope structure | &nbsp; |
4144
- | scopes2 | | the scope to be merged | &nbsp; |
4145
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
5672
+ | uiFilter | | | &nbsp; |
4146
5673
 
4147
5674
 
4148
5675
 
@@ -4150,24 +5677,27 @@ Gets a new scope structure array by merging two scope structures
4150
5677
  ##### Returns
4151
5678
 
4152
5679
 
4153
- - a new scope structure array
5680
+ - `Void`
4154
5681
 
4155
5682
 
4156
5683
 
4157
- #### mergeDatasets(datasets1, datasets2, overwriteValues)
4158
5684
 
4159
- Gets a new dataset structure array by merging two dataset structures
5685
+ ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4160
5686
 
4161
5687
 
5688
+ #### getUIFlatFilterByParams()
4162
5689
 
5690
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
5691
+ The validation to filter the stored filter is depending on:
5692
+ - Column
5693
+ - Qrvey ID,
5694
+ - Scope type
5695
+ - Scope ID
5696
+ - Panel ID
5697
+ - Validator type
5698
+ - Property type
4163
5699
 
4164
- ##### Parameters
4165
5700
 
4166
- | Name | Type | Description | |
4167
- | ---- | ---- | ----------- | -------- |
4168
- | datasets1 | | the target dataset structure | &nbsp; |
4169
- | datasets2 | | the dataset to be merged | &nbsp; |
4170
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
4171
5701
 
4172
5702
 
4173
5703
 
@@ -4175,24 +5705,28 @@ Gets a new dataset structure array by merging two dataset structures
4175
5705
  ##### Returns
4176
5706
 
4177
5707
 
4178
- - a new dataset structure array
5708
+ - The index of the uFilter array or the Filter object s
4179
5709
 
4180
5710
 
4181
5711
 
4182
- #### mergeFilterss(filters1, filters2, overwriteValues)
4183
5712
 
4184
- Gets a new filter structure array by merging two filter structures
5713
+ ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4185
5714
 
4186
5715
 
5716
+ #### getUIFlatFiltersByParams()
4187
5717
 
5718
+ Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
5719
+ The validation to filter the stored filter is depending on:
5720
+ - Column
5721
+ - Qrvey ID,
5722
+ - Scope type
5723
+ - Scope ID
5724
+ - Panel ID
5725
+ - Validator type
5726
+ - Property type
5727
+ - Enabled flags
4188
5728
 
4189
- ##### Parameters
4190
5729
 
4191
- | Name | Type | Description | |
4192
- | ---- | ---- | ----------- | -------- |
4193
- | filters1 | | the target filter structure | &nbsp; |
4194
- | filters2 | | the filter to be merged | &nbsp; |
4195
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
4196
5730
 
4197
5731
 
4198
5732
 
@@ -4200,13 +5734,17 @@ Gets a new filter structure array by merging two filter structures
4200
5734
  ##### Returns
4201
5735
 
4202
5736
 
4203
- - a new filter structure array
5737
+ - The index of the uFilter array or the Filter object s
4204
5738
 
4205
5739
 
4206
5740
 
4207
- #### mergeValues(filter1, filter2, overwrite)
4208
5741
 
4209
- Gets a new value structure array by merging two value structures
5742
+ ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
5743
+
5744
+
5745
+ #### getUIFlatFiltersByScopes(uFilters, scopes)
5746
+
5747
+ Filters and gets a UI Flatten Filters by the given scopes
4210
5748
 
4211
5749
 
4212
5750
 
@@ -4215,9 +5753,8 @@ Gets a new value structure array by merging two value structures
4215
5753
 
4216
5754
  | Name | Type | Description | |
4217
5755
  | ---- | ---- | ----------- | -------- |
4218
- | filter1 | | the target filter structure | &nbsp; |
4219
- | filter2 | | the filter to be used to merge the values | &nbsp; |
4220
- | overwrite | | Flag to overwrite or not the filter values | &nbsp; |
5756
+ | uFilters | | The Flatten UI Filters | &nbsp; |
5757
+ | scopes | | collection of scopes types | &nbsp; |
4221
5758
 
4222
5759
 
4223
5760
 
@@ -4225,17 +5762,17 @@ Gets a new value structure array by merging two value structures
4225
5762
  ##### Returns
4226
5763
 
4227
5764
 
4228
- - a new value structure array
5765
+ - The new array of UI Flattened filters
4229
5766
 
4230
5767
 
4231
5768
 
4232
5769
 
4233
- ### dist/filters/helpers/common/resolveDatasetConditions.js
5770
+ ### dist/filters/helpers/ui/getUIValues.js
4234
5771
 
4235
5772
 
4236
- #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
5773
+ #### getUIValues(filter, addEnableds, rankingGroupIndex)
5774
+
4237
5775
 
4238
- Resolves the conditions by given params
4239
5776
 
4240
5777
 
4241
5778
 
@@ -4244,10 +5781,9 @@ Resolves the conditions by given params
4244
5781
 
4245
5782
  | Name | Type | Description | |
4246
5783
  | ---- | ---- | ----------- | -------- |
4247
- | filter | | The dataset structure | &nbsp; |
4248
- | params | | given parameters to validate the dataset | &nbsp; |
4249
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
4250
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
5784
+ | filter | | | &nbsp; |
5785
+ | addEnableds | | | &nbsp; |
5786
+ | rankingGroupIndex | | | &nbsp; |
4251
5787
 
4252
5788
 
4253
5789
 
@@ -4255,17 +5791,17 @@ Resolves the conditions by given params
4255
5791
  ##### Returns
4256
5792
 
4257
5793
 
4258
- - true: the condition is satisfied
5794
+ -
4259
5795
 
4260
5796
 
4261
5797
 
4262
5798
 
4263
- ### dist/filters/helpers/common/resolveFilterConditions.js
5799
+ ### dist/filters/helpers/ui/getUpdatedUIFilters.js
4264
5800
 
4265
5801
 
4266
- #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
5802
+ #### getUpdatedUIFilters(data, datasets)
4267
5803
 
4268
- Resolves the conditions by given params
5804
+ Gets a new UI Filter structure with a datasets/columns info updates
4269
5805
 
4270
5806
 
4271
5807
 
@@ -4274,10 +5810,8 @@ Resolves the conditions by given params
4274
5810
 
4275
5811
  | Name | Type | Description | |
4276
5812
  | ---- | ---- | ----------- | -------- |
4277
- | filter | | The filter | &nbsp; |
4278
- | params | | given parameters to validate the filter | &nbsp; |
4279
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
4280
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
5813
+ | data | | The UI Filter structure | &nbsp; |
5814
+ | datasets | | An array of datasets/column info used for updating the data | &nbsp; |
4281
5815
 
4282
5816
 
4283
5817
 
@@ -4285,17 +5819,17 @@ Resolves the conditions by given params
4285
5819
  ##### Returns
4286
5820
 
4287
5821
 
4288
- - true: the condition is satisfied
5822
+ - A new UI FIlter structure
4289
5823
 
4290
5824
 
4291
5825
 
4292
5826
 
4293
- ### dist/filters/helpers/common/resolveScopeConditions.js
5827
+ ### dist/filters/helpers/ui/resolveUIFlatFilterByParams.js
4294
5828
 
4295
5829
 
4296
- #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
5830
+ #### resolveUIFlatFilterByParams(filter, params)
4297
5831
 
4298
- Resolves the conditions by given params
5832
+ Resolves conditions between UI flattened filter and given parameters
4299
5833
 
4300
5834
 
4301
5835
 
@@ -4304,10 +5838,8 @@ Resolves the conditions by given params
4304
5838
 
4305
5839
  | Name | Type | Description | |
4306
5840
  | ---- | ---- | ----------- | -------- |
4307
- | filter | | The filter scope structure | &nbsp; |
4308
- | params | | given parameters to validate the filter | &nbsp; |
4309
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
4310
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
5841
+ | filter | | UI Flatten Filter | &nbsp; |
5842
+ | params | | Parameters to validate | &nbsp; |
4311
5843
 
4312
5844
 
4313
5845
 
@@ -4315,7 +5847,7 @@ Resolves the conditions by given params
4315
5847
  ##### Returns
4316
5848
 
4317
5849
 
4318
- - true: the condition is satisfied
5850
+ - true: the conditions are satisfied.
4319
5851
 
4320
5852
 
4321
5853