@qrvey/utils 1.2.9-9 → 1.2.10-2

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 (1095) hide show
  1. package/README.md +0 -4323
  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 +6 -1
  10. package/dist/cjs/charts/helpers/index.js +5 -1
  11. package/dist/cjs/charts/index.js +5 -1
  12. package/dist/cjs/charts/interfaces/index.js +5 -1
  13. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
  14. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +9 -0
  15. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
  16. package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +9 -0
  17. package/dist/cjs/columns/constants/index.d.ts +4 -0
  18. package/dist/cjs/columns/constants/index.js +9 -1
  19. package/dist/{qrvey → cjs/columns}/helpers/getColumnsLabel.d.ts +1 -1
  20. package/dist/cjs/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
  21. package/dist/cjs/columns/helpers/getDatasetByColumn.d.ts +3 -0
  22. package/dist/cjs/columns/helpers/getDatasetByColumn.js +10 -0
  23. package/dist/cjs/columns/helpers/getDatasetColumn.d.ts +3 -0
  24. package/dist/cjs/columns/helpers/getDatasetColumn.js +16 -0
  25. package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
  26. package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.js +12 -0
  27. package/dist/cjs/columns/helpers/getModelColumn.d.ts +9 -0
  28. package/dist/cjs/columns/helpers/getModelColumn.js +30 -0
  29. package/dist/cjs/columns/helpers/index.d.ts +5 -0
  30. package/dist/cjs/columns/helpers/index.js +10 -1
  31. package/dist/cjs/columns/index.js +5 -1
  32. package/dist/cjs/columns/interfaces/IBColumAnswer.d.ts +6 -0
  33. package/dist/cjs/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
  34. package/dist/cjs/columns/interfaces/IBColumn.d.ts +10 -3
  35. package/dist/cjs/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
  36. package/dist/cjs/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
  37. package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
  38. package/dist/cjs/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
  39. package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
  40. package/dist/cjs/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
  41. package/dist/cjs/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
  42. package/dist/cjs/{interfaces/general/IGeneralWidgetConfig.js → columns/interfaces/IBColumnAnswerGeneral.js} +0 -0
  43. package/dist/cjs/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
  44. package/dist/cjs/columns/interfaces/IBColumnAnswerImages.js +2 -0
  45. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
  46. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.js +2 -0
  47. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
  48. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +2 -0
  49. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
  50. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.js +2 -0
  51. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
  52. package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.js +2 -0
  53. package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
  54. package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.js +2 -0
  55. package/dist/cjs/columns/interfaces/IColumn.d.ts +9 -3
  56. package/dist/cjs/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
  57. package/dist/cjs/columns/interfaces/IColumnImageUploadOption.js +2 -0
  58. package/dist/cjs/columns/interfaces/index.d.ts +11 -0
  59. package/dist/cjs/columns/interfaces/index.js +16 -1
  60. package/dist/cjs/constants/index.js +5 -1
  61. package/dist/cjs/dates/adapters/index.d.ts +5 -0
  62. package/dist/cjs/dates/adapters/index.js +21 -0
  63. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  64. package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
  65. package/dist/cjs/dates/constants/index.d.ts +2 -0
  66. package/dist/cjs/dates/constants/index.js +7 -1
  67. package/dist/cjs/dates/helpers/index.d.ts +1 -0
  68. package/dist/cjs/dates/helpers/index.js +6 -1
  69. package/dist/cjs/dates/index.d.ts +1 -0
  70. package/dist/cjs/dates/index.js +6 -1
  71. package/dist/cjs/dates/interfaces/index.js +5 -1
  72. package/dist/cjs/dates/range/index.js +5 -1
  73. package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
  74. package/dist/cjs/dates/relative/constants/index.js +5 -1
  75. package/dist/cjs/dates/relative/constants/ui/index.js +5 -1
  76. package/dist/cjs/dates/relative/helpers/dayjs-module.js +5 -1
  77. package/dist/cjs/dates/relative/helpers/index.js +5 -1
  78. package/dist/cjs/dates/relative/index.js +5 -1
  79. package/dist/cjs/dates/relative/interfaces/index.js +5 -1
  80. package/dist/cjs/dates/relative/interfaces/ui/index.js +5 -1
  81. package/dist/cjs/filters/adapters/FDToFlatUI.js +2 -1
  82. package/dist/cjs/filters/adapters/FDToUI.js +2 -4
  83. package/dist/cjs/filters/adapters/UIToFlatUI.js +1 -0
  84. package/dist/cjs/filters/adapters/UIToOldLogic.js +5 -3
  85. package/dist/cjs/filters/adapters/adaptFilterValues.js +2 -2
  86. package/dist/cjs/filters/adapters/flatUIToFD.js +1 -0
  87. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +41 -25
  88. package/dist/cjs/filters/adapters/flatUIToUI.js +1 -0
  89. package/dist/cjs/filters/adapters/index.d.ts +2 -0
  90. package/dist/cjs/filters/adapters/index.js +7 -1
  91. package/dist/cjs/filters/adapters/logicToFlatUI.js +9 -8
  92. package/dist/cjs/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
  93. package/dist/cjs/filters/adapters/modelAnswerToFilterValue.js +16 -0
  94. package/dist/cjs/filters/classes/index.js +5 -1
  95. package/dist/cjs/filters/constants/backend/index.js +5 -1
  96. package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +4 -4
  97. package/dist/cjs/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
  98. package/dist/cjs/filters/constants/builder/index.d.ts +1 -0
  99. package/dist/cjs/filters/constants/builder/index.js +6 -1
  100. package/dist/cjs/filters/constants/common/index.js +5 -1
  101. package/dist/cjs/filters/constants/index.js +5 -1
  102. package/dist/cjs/filters/constants/panel/index.js +5 -1
  103. package/dist/cjs/filters/helpers/OLD_getAggFilters.d.ts +9 -0
  104. package/dist/cjs/filters/helpers/OLD_getAggFilters.js +88 -0
  105. package/dist/cjs/filters/helpers/backend/buildExpression.js +3 -2
  106. package/dist/cjs/filters/helpers/backend/getBackendValidator.d.ts +2 -2
  107. package/dist/cjs/filters/helpers/backend/getBackendValidator.js +4 -4
  108. package/dist/cjs/filters/helpers/backend/getBackendValues.js +13 -12
  109. package/dist/cjs/filters/helpers/backend/index.d.ts +1 -1
  110. package/dist/cjs/filters/helpers/backend/index.js +7 -2
  111. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
  112. package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  113. package/dist/cjs/filters/helpers/builder/index.js +5 -1
  114. package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +4 -4
  115. package/dist/cjs/filters/helpers/common/getFiltersByParams.d.ts +2 -2
  116. package/dist/cjs/filters/helpers/common/getFiltersByParams.js +2 -2
  117. package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
  118. package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.js +4 -3
  119. package/dist/cjs/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
  120. package/dist/cjs/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
  121. package/dist/cjs/filters/helpers/common/getValuesFromDataset.js +20 -0
  122. package/dist/cjs/filters/helpers/common/getValuesFromModel.d.ts +8 -0
  123. package/dist/cjs/filters/helpers/common/getValuesFromModel.js +20 -0
  124. package/dist/cjs/filters/helpers/common/index.d.ts +3 -1
  125. package/dist/cjs/filters/helpers/common/index.js +9 -2
  126. package/dist/cjs/filters/helpers/common/mergeFilters.d.ts +3 -3
  127. package/dist/cjs/filters/helpers/common/mergeFilters.js +39 -21
  128. package/dist/cjs/filters/helpers/index.d.ts +1 -0
  129. package/dist/cjs/filters/helpers/index.js +7 -1
  130. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  131. package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
  132. package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
  133. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
  134. package/dist/cjs/filters/helpers/ui/getUIValues.js +22 -15
  135. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  136. package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +38 -0
  137. package/dist/cjs/filters/helpers/ui/index.d.ts +4 -0
  138. package/dist/cjs/filters/helpers/ui/index.js +9 -1
  139. package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
  140. package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +7 -7
  141. package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  142. package/dist/cjs/filters/helpers/ui/transformFilterValues.js +23 -0
  143. package/dist/cjs/filters/index.d.ts +1 -0
  144. package/dist/cjs/filters/index.js +6 -1
  145. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
  146. package/dist/cjs/filters/interfaces/backend/IFBData.d.ts +5 -0
  147. package/dist/cjs/filters/interfaces/backend/IFBData.js +2 -0
  148. package/dist/cjs/filters/interfaces/backend/index.d.ts +1 -0
  149. package/dist/cjs/filters/interfaces/backend/index.js +6 -1
  150. package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
  151. package/dist/cjs/filters/interfaces/builder/index.d.ts +0 -1
  152. package/dist/cjs/filters/interfaces/builder/index.js +5 -2
  153. package/dist/cjs/filters/interfaces/common/IFSColumn.d.ts +1 -1
  154. package/dist/cjs/filters/interfaces/common/IFSFilter.d.ts +2 -1
  155. package/dist/cjs/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
  156. package/dist/cjs/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
  157. package/dist/cjs/filters/interfaces/common/IFSGetDataValues.js +2 -0
  158. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  159. package/dist/cjs/filters/interfaces/common/IFilterConfig.d.ts +2 -0
  160. package/dist/cjs/filters/interfaces/common/IFilterConfig.js +2 -0
  161. package/dist/cjs/filters/interfaces/common/index.d.ts +2 -2
  162. package/dist/cjs/filters/interfaces/common/index.js +7 -3
  163. package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
  164. package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.js +2 -0
  165. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
  166. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +2 -0
  167. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
  168. package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +2 -0
  169. package/dist/cjs/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +2 -1
  170. package/dist/cjs/filters/interfaces/functions/IFFiltersMergeFilters.js +2 -0
  171. package/dist/cjs/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
  172. package/dist/cjs/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +2 -0
  173. package/dist/cjs/filters/interfaces/functions/index.d.ts +5 -0
  174. package/dist/cjs/filters/interfaces/functions/index.js +21 -0
  175. package/dist/cjs/filters/interfaces/index.js +5 -1
  176. package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  177. package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  178. package/dist/cjs/filters/interfaces/panel/index.js +5 -1
  179. package/dist/cjs/filters/interfaces/ui/IFUColumn.d.ts +2 -2
  180. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  181. package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +2 -0
  182. package/dist/cjs/filters/interfaces/ui/index.d.ts +4 -3
  183. package/dist/cjs/filters/interfaces/ui/index.js +9 -4
  184. package/dist/cjs/filters/services/Filters.api.d.ts +52 -0
  185. package/dist/cjs/filters/services/Filters.api.js +135 -0
  186. package/dist/cjs/filters/services/UChartApi.d.ts +86 -0
  187. package/dist/cjs/filters/services/UChartApi.js +250 -0
  188. package/dist/cjs/filters/services/UChartPaginationApi.d.ts +114 -0
  189. package/dist/cjs/filters/services/UChartPaginationApi.js +295 -0
  190. package/dist/cjs/filters/services/index.d.ts +3 -0
  191. package/dist/cjs/filters/services/index.js +19 -0
  192. package/dist/cjs/format/definition.d.ts +31 -0
  193. package/dist/cjs/format/definition.js +33 -1
  194. package/dist/cjs/format/format.d.ts +2 -1
  195. package/dist/cjs/format/format.js +8 -5
  196. package/dist/cjs/format/index.d.ts +1 -0
  197. package/dist/cjs/format/index.js +6 -1
  198. package/dist/cjs/format/localization.d.ts +4 -0
  199. package/dist/cjs/format/localization.js +79 -0
  200. package/dist/cjs/formulas/constants/index.js +5 -1
  201. package/dist/cjs/formulas/index.js +5 -1
  202. package/dist/cjs/formulas/interfaces/index.js +5 -1
  203. package/dist/cjs/general/array/getArrayByProperty.d.ts +7 -0
  204. package/dist/cjs/general/array/getArrayByProperty.js +19 -0
  205. package/dist/cjs/general/array/getUniqueArray.d.ts +9 -0
  206. package/dist/cjs/general/array/getUniqueArray.js +15 -0
  207. package/dist/cjs/general/array/index.d.ts +1 -0
  208. package/dist/cjs/general/array/index.js +6 -1
  209. package/dist/cjs/general/function/index.js +5 -1
  210. package/dist/cjs/general/index.js +5 -1
  211. package/dist/cjs/general/mix/index.js +5 -1
  212. package/dist/cjs/general/object/index.js +5 -1
  213. package/dist/cjs/general/string/index.js +5 -1
  214. package/dist/cjs/globalization/helpers/getI18nCalendar.d.ts +4 -0
  215. package/dist/cjs/globalization/helpers/getI18nCalendar.js +69 -0
  216. package/dist/cjs/globalization/helpers/index.d.ts +1 -0
  217. package/dist/cjs/globalization/helpers/index.js +6 -1
  218. package/dist/cjs/globalization/index.js +5 -1
  219. package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
  220. package/dist/cjs/globalization/interfaces/II18nConfig.js +2 -0
  221. package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  222. package/dist/cjs/globalization/interfaces/II18nResource.js +2 -0
  223. package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  224. package/dist/cjs/globalization/interfaces/bucket_builder/index.js +5 -1
  225. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  226. package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.js +2 -0
  227. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  228. package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.js +2 -0
  229. package/dist/cjs/globalization/interfaces/calendar/index.d.ts +2 -0
  230. package/dist/cjs/globalization/interfaces/calendar/index.js +18 -0
  231. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  232. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  233. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  234. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
  235. package/dist/cjs/globalization/interfaces/chart_builder/index.js +5 -1
  236. package/dist/cjs/globalization/interfaces/columns/index.js +5 -1
  237. package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  238. package/dist/cjs/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  239. package/dist/cjs/globalization/interfaces/common/index.js +5 -1
  240. package/dist/cjs/globalization/interfaces/cross_tabs/index.js +5 -1
  241. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
  242. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  243. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
  244. package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
  245. package/dist/cjs/globalization/interfaces/dashboard/index.js +6 -1
  246. package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
  247. package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
  248. package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.js +2 -0
  249. package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
  250. package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
  251. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  252. package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.js +2 -0
  253. package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
  254. package/dist/cjs/globalization/interfaces/filters/index.d.ts +1 -0
  255. package/dist/cjs/globalization/interfaces/filters/index.js +6 -1
  256. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  257. package/dist/cjs/globalization/interfaces/formula_builder/index.js +5 -1
  258. package/dist/cjs/globalization/interfaces/index.d.ts +7 -2
  259. package/dist/cjs/globalization/interfaces/index.js +12 -3
  260. package/dist/cjs/globalization/interfaces/panel/index.js +5 -1
  261. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  262. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
  263. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  264. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
  265. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  266. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
  267. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  268. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
  269. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  270. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
  271. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  272. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
  273. package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
  274. package/dist/cjs/globalization/interfaces/style_themes/index.js +22 -0
  275. package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  276. package/dist/cjs/globalization/interfaces/table_charts/index.js +5 -1
  277. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  278. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
  279. package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  280. package/dist/cjs/globalization/labels/bucket_builder/index.js +5 -1
  281. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  282. package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
  283. package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
  284. package/dist/cjs/globalization/labels/calendar/index.js +17 -0
  285. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
  286. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
  287. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  288. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
  289. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  290. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
  291. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  292. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  293. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  294. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
  295. package/dist/cjs/globalization/labels/chart_builder/index.js +5 -1
  296. package/dist/cjs/globalization/labels/columns/index.js +5 -1
  297. package/dist/cjs/globalization/labels/common/I18N_COMMON.js +2 -0
  298. package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  299. package/dist/cjs/globalization/labels/common/index.js +5 -1
  300. package/dist/cjs/globalization/labels/cross_tabs/index.js +5 -1
  301. package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
  302. package/dist/cjs/globalization/labels/dashboard/index.js +5 -1
  303. package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +10 -0
  304. package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
  305. package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
  306. package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
  307. package/dist/cjs/globalization/labels/filters/index.js +5 -1
  308. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
  309. package/dist/cjs/globalization/labels/formula_builder/index.js +5 -1
  310. package/dist/cjs/globalization/labels/index.d.ts +6 -3
  311. package/dist/cjs/globalization/labels/index.js +11 -4
  312. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +1 -1
  313. package/dist/cjs/globalization/labels/panel/index.js +5 -1
  314. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  315. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +58 -0
  316. package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
  317. package/dist/cjs/globalization/labels/style_themes/index.js +17 -0
  318. package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  319. package/dist/cjs/globalization/labels/table_charts/index.js +5 -1
  320. package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
  321. package/dist/cjs/globalization/service/index.js +5 -1
  322. package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
  323. package/dist/cjs/index.js +5 -1
  324. package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  325. package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
  326. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  327. package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
  328. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
  329. package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
  330. package/dist/cjs/interfaces/format/index.d.ts +3 -0
  331. package/dist/cjs/interfaces/format/index.js +19 -0
  332. package/dist/cjs/interfaces/general/IWidgetConfig.d.ts +10 -0
  333. package/dist/cjs/interfaces/general/IWidgetConfig.js +2 -0
  334. package/dist/cjs/interfaces/general/index.d.ts +1 -1
  335. package/dist/cjs/interfaces/general/index.js +6 -2
  336. package/dist/cjs/interfaces/index.d.ts +1 -0
  337. package/dist/cjs/interfaces/index.js +6 -1
  338. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  339. package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.js +16 -0
  340. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  341. package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.js +14 -0
  342. package/dist/cjs/qrvey/constants/APP_STATUS.d.ts +5 -0
  343. package/dist/cjs/qrvey/constants/APP_STATUS.js +9 -0
  344. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  345. package/dist/cjs/qrvey/constants/APP_STATUS_LIST.js +13 -0
  346. package/dist/cjs/qrvey/constants/APP_TYPE.d.ts +16 -0
  347. package/dist/cjs/qrvey/constants/APP_TYPE.js +20 -0
  348. package/dist/cjs/qrvey/constants/index.d.ts +6 -0
  349. package/dist/cjs/qrvey/constants/index.js +11 -1
  350. package/dist/cjs/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  351. package/dist/cjs/qrvey/helpers/areStaticColumnValues.js +17 -0
  352. package/dist/cjs/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  353. package/dist/cjs/qrvey/helpers/getCategorizableExpression.js +22 -0
  354. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  355. package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.js +54 -0
  356. package/dist/cjs/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  357. package/dist/cjs/qrvey/helpers/getDropdownAnswers.js +14 -0
  358. package/dist/cjs/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  359. package/dist/cjs/qrvey/helpers/getExpressionAnswers.js +22 -0
  360. package/dist/cjs/qrvey/helpers/getImageAnswers.d.ts +8 -0
  361. package/dist/cjs/qrvey/helpers/getImageAnswers.js +17 -0
  362. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  363. package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.js +23 -0
  364. package/dist/cjs/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  365. package/dist/cjs/qrvey/helpers/getLookupAnswers.js +15 -0
  366. package/dist/cjs/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  367. package/dist/cjs/qrvey/helpers/getLookupDisplays.js +9 -0
  368. package/dist/cjs/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  369. package/dist/cjs/qrvey/helpers/getRatingAnswers.js +12 -0
  370. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  371. package/dist/cjs/qrvey/helpers/getSlidebarAnswers.js +18 -0
  372. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  373. package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.js +17 -0
  374. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  375. package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
  376. package/dist/cjs/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  377. package/dist/cjs/qrvey/helpers/getYesNoAnswers.js +13 -0
  378. package/dist/cjs/qrvey/helpers/index.d.ts +17 -1
  379. package/dist/cjs/qrvey/helpers/index.js +22 -2
  380. package/dist/cjs/qrvey/helpers/isDataset.d.ts +2 -0
  381. package/dist/cjs/qrvey/helpers/isDataset.js +8 -0
  382. package/dist/cjs/qrvey/helpers/isForm.d.ts +2 -0
  383. package/dist/cjs/qrvey/helpers/isForm.js +8 -0
  384. package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
  385. package/dist/cjs/qrvey/helpers/transformValue.js +49 -0
  386. package/dist/cjs/qrvey/index.js +5 -1
  387. package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +2 -0
  388. package/dist/cjs/qrvey/interfaces/IAppStatus.js +2 -0
  389. package/dist/cjs/qrvey/interfaces/IAppType.d.ts +2 -0
  390. package/dist/cjs/qrvey/interfaces/IAppType.js +2 -0
  391. package/dist/cjs/qrvey/interfaces/IBModel.d.ts +19 -0
  392. package/dist/cjs/qrvey/interfaces/IBModel.js +2 -0
  393. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  394. package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.js +2 -0
  395. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  396. package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.js +2 -0
  397. package/dist/cjs/qrvey/interfaces/IBModelData.d.ts +4 -0
  398. package/dist/cjs/qrvey/interfaces/IBModelData.js +2 -0
  399. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  400. package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +2 -0
  401. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  402. package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +2 -0
  403. package/dist/cjs/qrvey/interfaces/IModel.d.ts +10 -0
  404. package/dist/cjs/qrvey/interfaces/IModel.js +2 -0
  405. package/dist/cjs/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  406. package/dist/cjs/qrvey/interfaces/IModelAnswer.js +2 -0
  407. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  408. package/dist/cjs/qrvey/interfaces/IModelBranchesMap.js +2 -0
  409. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  410. package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.js +2 -0
  411. package/dist/cjs/qrvey/interfaces/IModelColumn.d.ts +23 -0
  412. package/dist/cjs/qrvey/interfaces/IModelColumn.js +2 -0
  413. package/dist/cjs/qrvey/interfaces/IModelDataset.d.ts +7 -0
  414. package/dist/cjs/qrvey/interfaces/IModelDataset.js +2 -0
  415. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  416. package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
  417. package/dist/cjs/qrvey/interfaces/index.d.ts +13 -0
  418. package/dist/cjs/qrvey/interfaces/index.js +18 -1
  419. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  420. package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +21 -0
  421. package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  422. package/dist/cjs/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  423. package/dist/cjs/services/adapters/BModelToUIModel.adapter.js +26 -0
  424. package/dist/cjs/services/adapters/index.d.ts +1 -0
  425. package/dist/cjs/services/adapters/index.js +6 -1
  426. package/dist/cjs/services/api/Charts.api.d.ts +15 -0
  427. package/dist/cjs/services/api/Charts.api.js +37 -0
  428. package/dist/cjs/services/api/getAllDatasets.api.d.ts +9 -4
  429. package/dist/cjs/services/api/getAllDatasets.api.js +24 -15
  430. package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
  431. package/dist/cjs/services/api/getAllQrveys.api.js +1 -1
  432. package/dist/cjs/services/api/getDatasetColumns.api.d.ts +3 -3
  433. package/dist/cjs/services/api/getDatasetColumns.api.js +6 -3
  434. package/dist/cjs/services/api/getDatasetsByIds.api.d.ts +8 -0
  435. package/dist/cjs/services/api/getDatasetsByIds.api.js +30 -0
  436. package/dist/cjs/services/api/getModel.api.d.ts +1 -0
  437. package/dist/cjs/services/api/getModel.api.js +16 -0
  438. package/dist/cjs/services/api/index.d.ts +2 -0
  439. package/dist/cjs/services/api/index.js +7 -1
  440. package/dist/cjs/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  441. package/dist/cjs/services/constants/MODEL_ENDPOINT.js +7 -0
  442. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  443. package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +7 -0
  444. package/dist/cjs/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  445. package/dist/cjs/services/constants/UCHART_ENDPOINT.js +7 -0
  446. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  447. package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.js +7 -0
  448. package/dist/cjs/services/constants/index.d.ts +4 -0
  449. package/dist/cjs/services/constants/index.js +9 -1
  450. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  451. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +28 -0
  452. package/dist/cjs/services/helpers/index.d.ts +1 -0
  453. package/dist/cjs/services/helpers/index.js +6 -1
  454. package/dist/cjs/services/index.js +5 -1
  455. package/dist/cjs/services/interfaces/index.js +5 -1
  456. package/dist/cjs/stencil/decorators/index.js +5 -1
  457. package/dist/cjs/stencil/index.js +5 -1
  458. package/dist/cjs/stencil/util/index.js +5 -1
  459. package/dist/cjs/tokens/index.js +5 -1
  460. package/dist/cjs/typescript/decorators/index.js +5 -1
  461. package/dist/cjs/typescript/index.js +5 -1
  462. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
  463. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +6 -0
  464. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
  465. package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +6 -0
  466. package/dist/columns/constants/index.d.ts +4 -0
  467. package/dist/columns/constants/index.js +4 -0
  468. package/dist/{cjs/qrvey → columns}/helpers/getColumnsLabel.d.ts +1 -1
  469. package/dist/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
  470. package/dist/columns/helpers/getDatasetByColumn.d.ts +3 -0
  471. package/dist/columns/helpers/getDatasetByColumn.js +6 -0
  472. package/dist/columns/helpers/getDatasetColumn.d.ts +3 -0
  473. package/dist/columns/helpers/getDatasetColumn.js +12 -0
  474. package/dist/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
  475. package/dist/columns/helpers/getDatasetColumnyDatasets.js +8 -0
  476. package/dist/columns/helpers/getModelColumn.d.ts +9 -0
  477. package/dist/columns/helpers/getModelColumn.js +26 -0
  478. package/dist/columns/helpers/index.d.ts +5 -0
  479. package/dist/columns/helpers/index.js +5 -0
  480. package/dist/columns/interfaces/IBColumAnswer.d.ts +6 -0
  481. package/dist/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
  482. package/dist/columns/interfaces/IBColumn.d.ts +10 -3
  483. package/dist/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
  484. package/dist/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
  485. package/dist/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
  486. package/dist/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
  487. package/dist/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
  488. package/dist/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
  489. package/dist/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
  490. package/dist/{interfaces/general/IGeneralWidgetConfig.js → columns/interfaces/IBColumnAnswerGeneral.js} +0 -0
  491. package/dist/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
  492. package/dist/columns/interfaces/IBColumnAnswerImages.js +1 -0
  493. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
  494. package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.js +1 -0
  495. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
  496. package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +1 -0
  497. package/dist/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
  498. package/dist/columns/interfaces/IBColumnAnswerLookupValue.js +1 -0
  499. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
  500. package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.js +1 -0
  501. package/dist/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
  502. package/dist/columns/interfaces/IBColumnAnswerSlidebar.js +1 -0
  503. package/dist/columns/interfaces/IColumn.d.ts +9 -3
  504. package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
  505. package/dist/columns/interfaces/IColumnImageUploadOption.js +1 -0
  506. package/dist/columns/interfaces/index.d.ts +11 -0
  507. package/dist/columns/interfaces/index.js +11 -0
  508. package/dist/dates/adapters/index.d.ts +5 -0
  509. package/dist/dates/adapters/index.js +5 -0
  510. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
  511. package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
  512. package/dist/dates/constants/index.d.ts +2 -0
  513. package/dist/dates/constants/index.js +2 -0
  514. package/dist/dates/helpers/index.d.ts +1 -0
  515. package/dist/dates/helpers/index.js +1 -0
  516. package/dist/dates/index.d.ts +1 -0
  517. package/dist/dates/index.js +1 -0
  518. package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
  519. package/dist/filters/adapters/FDToFlatUI.js +2 -1
  520. package/dist/filters/adapters/FDToUI.js +2 -4
  521. package/dist/filters/adapters/UIToFlatUI.js +1 -0
  522. package/dist/filters/adapters/UIToOldLogic.js +5 -3
  523. package/dist/filters/adapters/adaptFilterValues.js +2 -2
  524. package/dist/filters/adapters/flatUIToFD.js +1 -0
  525. package/dist/filters/adapters/flatUIToOldLogic.js +41 -25
  526. package/dist/filters/adapters/flatUIToUI.js +1 -0
  527. package/dist/filters/adapters/index.d.ts +2 -0
  528. package/dist/filters/adapters/index.js +2 -0
  529. package/dist/filters/adapters/logicToFlatUI.js +9 -8
  530. package/dist/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
  531. package/dist/filters/adapters/modelAnswerToFilterValue.js +12 -0
  532. package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +1 -1
  533. package/dist/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
  534. package/dist/filters/constants/builder/index.d.ts +1 -0
  535. package/dist/filters/constants/builder/index.js +1 -0
  536. package/dist/filters/helpers/OLD_getAggFilters.d.ts +9 -0
  537. package/dist/filters/helpers/OLD_getAggFilters.js +84 -0
  538. package/dist/filters/helpers/backend/buildExpression.js +3 -2
  539. package/dist/filters/helpers/backend/getBackendValidator.d.ts +2 -2
  540. package/dist/filters/helpers/backend/getBackendValidator.js +4 -4
  541. package/dist/filters/helpers/backend/getBackendValues.js +13 -12
  542. package/dist/filters/helpers/backend/index.d.ts +1 -1
  543. package/dist/filters/helpers/backend/index.js +2 -1
  544. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
  545. package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
  546. package/dist/filters/helpers/common/excludeFiltersByParams.js +4 -4
  547. package/dist/filters/helpers/common/getFiltersByParams.d.ts +2 -2
  548. package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
  549. package/dist/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
  550. package/dist/filters/helpers/common/getMergeFiltersSettings.js +4 -3
  551. package/dist/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
  552. package/dist/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
  553. package/dist/filters/helpers/common/getValuesFromDataset.js +16 -0
  554. package/dist/filters/helpers/common/getValuesFromModel.d.ts +8 -0
  555. package/dist/filters/helpers/common/getValuesFromModel.js +16 -0
  556. package/dist/filters/helpers/common/index.d.ts +3 -1
  557. package/dist/filters/helpers/common/index.js +4 -1
  558. package/dist/filters/helpers/common/mergeFilters.d.ts +3 -3
  559. package/dist/filters/helpers/common/mergeFilters.js +39 -21
  560. package/dist/filters/helpers/index.d.ts +1 -0
  561. package/dist/filters/helpers/index.js +2 -0
  562. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
  563. package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
  564. package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
  565. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
  566. package/dist/filters/helpers/ui/getUIValues.js +21 -14
  567. package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
  568. package/dist/filters/helpers/ui/getUpdatedUIFilters.js +34 -0
  569. package/dist/filters/helpers/ui/index.d.ts +4 -0
  570. package/dist/filters/helpers/ui/index.js +4 -0
  571. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
  572. package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +1 -1
  573. package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
  574. package/dist/filters/helpers/ui/transformFilterValues.js +19 -0
  575. package/dist/filters/index.d.ts +1 -0
  576. package/dist/filters/index.js +1 -0
  577. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
  578. package/dist/filters/interfaces/backend/IFBData.d.ts +5 -0
  579. package/dist/filters/interfaces/backend/IFBData.js +1 -0
  580. package/dist/filters/interfaces/backend/index.d.ts +1 -0
  581. package/dist/filters/interfaces/backend/index.js +1 -0
  582. package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
  583. package/dist/filters/interfaces/builder/index.d.ts +0 -1
  584. package/dist/filters/interfaces/builder/index.js +0 -1
  585. package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
  586. package/dist/filters/interfaces/common/IFSFilter.d.ts +2 -1
  587. package/dist/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
  588. package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
  589. package/dist/filters/interfaces/common/IFSGetDataValues.js +1 -0
  590. package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
  591. package/dist/filters/interfaces/common/IFilterConfig.d.ts +2 -0
  592. package/dist/filters/interfaces/common/IFilterConfig.js +1 -0
  593. package/dist/filters/interfaces/common/index.d.ts +2 -2
  594. package/dist/filters/interfaces/common/index.js +2 -2
  595. package/dist/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
  596. package/dist/filters/interfaces/functions/IFFiltersGetData.js +1 -0
  597. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
  598. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +1 -0
  599. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
  600. package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +1 -0
  601. package/dist/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +2 -1
  602. package/dist/filters/interfaces/functions/IFFiltersMergeFilters.js +1 -0
  603. package/dist/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
  604. package/dist/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +1 -0
  605. package/dist/filters/interfaces/functions/index.d.ts +5 -0
  606. package/dist/filters/interfaces/functions/index.js +5 -0
  607. package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
  608. package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
  609. package/dist/filters/interfaces/ui/IFUColumn.d.ts +2 -2
  610. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
  611. package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
  612. package/dist/filters/interfaces/ui/index.d.ts +4 -3
  613. package/dist/filters/interfaces/ui/index.js +4 -3
  614. package/dist/filters/services/Filters.api.d.ts +52 -0
  615. package/dist/filters/services/Filters.api.js +128 -0
  616. package/dist/filters/services/UChartApi.d.ts +86 -0
  617. package/dist/filters/services/UChartApi.js +244 -0
  618. package/dist/filters/services/UChartPaginationApi.d.ts +114 -0
  619. package/dist/filters/services/UChartPaginationApi.js +289 -0
  620. package/dist/filters/services/index.d.ts +3 -0
  621. package/dist/filters/services/index.js +3 -0
  622. package/dist/format/definition.d.ts +31 -0
  623. package/dist/format/definition.js +32 -0
  624. package/dist/format/format.d.ts +2 -1
  625. package/dist/format/format.js +6 -3
  626. package/dist/format/index.d.ts +1 -0
  627. package/dist/format/index.js +1 -0
  628. package/dist/format/localization.d.ts +4 -0
  629. package/dist/format/localization.js +73 -0
  630. package/dist/general/array/getArrayByProperty.d.ts +7 -0
  631. package/dist/general/array/getArrayByProperty.js +15 -0
  632. package/dist/general/array/getUniqueArray.d.ts +9 -0
  633. package/dist/general/array/getUniqueArray.js +11 -0
  634. package/dist/general/array/index.d.ts +1 -0
  635. package/dist/general/array/index.js +1 -0
  636. package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
  637. package/dist/globalization/helpers/getI18nCalendar.js +65 -0
  638. package/dist/globalization/helpers/index.d.ts +1 -0
  639. package/dist/globalization/helpers/index.js +1 -0
  640. package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
  641. package/dist/globalization/interfaces/II18nConfig.js +1 -0
  642. package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
  643. package/dist/globalization/interfaces/II18nResource.js +1 -0
  644. package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
  645. package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
  646. package/dist/globalization/interfaces/calendar/II18nCalendar.js +1 -0
  647. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
  648. package/dist/globalization/interfaces/calendar/II18nCalendarProperties.js +1 -0
  649. package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
  650. package/dist/globalization/interfaces/calendar/index.js +2 -0
  651. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
  652. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
  653. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
  654. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
  655. package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
  656. package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
  657. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
  658. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
  659. package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
  660. package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
  661. package/dist/globalization/interfaces/dashboard/index.js +1 -0
  662. package/dist/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
  663. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
  664. package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.js +1 -0
  665. package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
  666. package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
  667. package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
  668. package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
  669. package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
  670. package/dist/globalization/interfaces/filters/index.d.ts +1 -0
  671. package/dist/globalization/interfaces/filters/index.js +1 -0
  672. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
  673. package/dist/globalization/interfaces/index.d.ts +7 -2
  674. package/dist/globalization/interfaces/index.js +7 -2
  675. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
  676. package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
  677. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
  678. package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
  679. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
  680. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
  681. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
  682. package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
  683. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
  684. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
  685. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
  686. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
  687. package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
  688. package/dist/globalization/interfaces/style_themes/index.js +6 -0
  689. package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
  690. package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
  691. package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
  692. package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
  693. package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
  694. package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
  695. package/dist/globalization/labels/calendar/index.d.ts +1 -0
  696. package/dist/globalization/labels/calendar/index.js +1 -0
  697. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
  698. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
  699. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
  700. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
  701. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
  702. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
  703. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
  704. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
  705. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
  706. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
  707. package/dist/globalization/labels/common/I18N_COMMON.js +2 -0
  708. package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
  709. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
  710. package/dist/globalization/labels/filters/I18N_FILTER.js +10 -0
  711. package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
  712. package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
  713. package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
  714. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
  715. package/dist/globalization/labels/index.d.ts +6 -3
  716. package/dist/globalization/labels/index.js +6 -3
  717. package/dist/globalization/labels/panel/I18N_PANEL.js +1 -1
  718. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
  719. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
  720. package/dist/globalization/labels/style_themes/index.d.ts +1 -0
  721. package/dist/globalization/labels/style_themes/index.js +1 -0
  722. package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
  723. package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
  724. package/dist/globalization/service/initI18n.d.ts +2 -2
  725. package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
  726. package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
  727. package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
  728. package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
  729. package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
  730. package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
  731. package/dist/interfaces/format/index.d.ts +3 -0
  732. package/dist/interfaces/format/index.js +3 -0
  733. package/dist/interfaces/general/IWidgetConfig.d.ts +10 -0
  734. package/dist/interfaces/general/IWidgetConfig.js +1 -0
  735. package/dist/interfaces/general/index.d.ts +1 -1
  736. package/dist/interfaces/general/index.js +1 -1
  737. package/dist/interfaces/index.d.ts +1 -0
  738. package/dist/interfaces/index.js +1 -0
  739. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
  740. package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.js +13 -0
  741. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
  742. package/dist/qrvey/constants/APP_FORM_TYPE_LIST.js +11 -0
  743. package/dist/qrvey/constants/APP_STATUS.d.ts +5 -0
  744. package/dist/qrvey/constants/APP_STATUS.js +6 -0
  745. package/dist/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
  746. package/dist/qrvey/constants/APP_STATUS_LIST.js +10 -0
  747. package/dist/qrvey/constants/APP_TYPE.d.ts +16 -0
  748. package/dist/qrvey/constants/APP_TYPE.js +17 -0
  749. package/dist/qrvey/constants/index.d.ts +6 -0
  750. package/dist/qrvey/constants/index.js +6 -0
  751. package/dist/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
  752. package/dist/qrvey/helpers/areStaticColumnValues.js +13 -0
  753. package/dist/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
  754. package/dist/qrvey/helpers/getCategorizableExpression.js +18 -0
  755. package/dist/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
  756. package/dist/qrvey/helpers/getDataAnswersByColumn.js +50 -0
  757. package/dist/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
  758. package/dist/qrvey/helpers/getDropdownAnswers.js +10 -0
  759. package/dist/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
  760. package/dist/qrvey/helpers/getExpressionAnswers.js +18 -0
  761. package/dist/qrvey/helpers/getImageAnswers.d.ts +8 -0
  762. package/dist/qrvey/helpers/getImageAnswers.js +13 -0
  763. package/dist/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
  764. package/dist/qrvey/helpers/getImageUploadHasAnalysis.js +19 -0
  765. package/dist/qrvey/helpers/getLookupAnswers.d.ts +4 -0
  766. package/dist/qrvey/helpers/getLookupAnswers.js +11 -0
  767. package/dist/qrvey/helpers/getLookupDisplays.d.ts +4 -0
  768. package/dist/qrvey/helpers/getLookupDisplays.js +5 -0
  769. package/dist/qrvey/helpers/getRatingAnswers.d.ts +7 -0
  770. package/dist/qrvey/helpers/getRatingAnswers.js +8 -0
  771. package/dist/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
  772. package/dist/qrvey/helpers/getSlidebarAnswers.js +14 -0
  773. package/dist/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
  774. package/dist/qrvey/helpers/getSuffixTranslateByColumn.js +13 -0
  775. package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
  776. package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
  777. package/dist/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
  778. package/dist/qrvey/helpers/getYesNoAnswers.js +9 -0
  779. package/dist/qrvey/helpers/index.d.ts +17 -1
  780. package/dist/qrvey/helpers/index.js +17 -1
  781. package/dist/qrvey/helpers/isDataset.d.ts +2 -0
  782. package/dist/qrvey/helpers/isDataset.js +4 -0
  783. package/dist/qrvey/helpers/isForm.d.ts +2 -0
  784. package/dist/qrvey/helpers/isForm.js +4 -0
  785. package/dist/qrvey/helpers/transformValue.d.ts +8 -0
  786. package/dist/qrvey/helpers/transformValue.js +45 -0
  787. package/dist/qrvey/interfaces/IAppStatus.d.ts +2 -0
  788. package/dist/qrvey/interfaces/IAppStatus.js +1 -0
  789. package/dist/qrvey/interfaces/IAppType.d.ts +2 -0
  790. package/dist/qrvey/interfaces/IAppType.js +1 -0
  791. package/dist/qrvey/interfaces/IBModel.d.ts +19 -0
  792. package/dist/qrvey/interfaces/IBModel.js +1 -0
  793. package/dist/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
  794. package/dist/qrvey/interfaces/IBModelBranchesMap.js +1 -0
  795. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
  796. package/dist/qrvey/interfaces/IBModelBranchesMapBranch.js +1 -0
  797. package/dist/qrvey/interfaces/IBModelData.d.ts +4 -0
  798. package/dist/qrvey/interfaces/IBModelData.js +1 -0
  799. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
  800. package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +1 -0
  801. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
  802. package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +1 -0
  803. package/dist/qrvey/interfaces/IModel.d.ts +10 -0
  804. package/dist/qrvey/interfaces/IModel.js +1 -0
  805. package/dist/qrvey/interfaces/IModelAnswer.d.ts +5 -0
  806. package/dist/qrvey/interfaces/IModelAnswer.js +1 -0
  807. package/dist/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
  808. package/dist/qrvey/interfaces/IModelBranchesMap.js +1 -0
  809. package/dist/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
  810. package/dist/qrvey/interfaces/IModelBranchesMapBranch.js +1 -0
  811. package/dist/qrvey/interfaces/IModelColumn.d.ts +23 -0
  812. package/dist/qrvey/interfaces/IModelColumn.js +1 -0
  813. package/dist/qrvey/interfaces/IModelDataset.d.ts +7 -0
  814. package/dist/qrvey/interfaces/IModelDataset.js +1 -0
  815. package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
  816. package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
  817. package/dist/qrvey/interfaces/index.d.ts +13 -0
  818. package/dist/qrvey/interfaces/index.js +13 -0
  819. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
  820. package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +17 -0
  821. package/dist/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
  822. package/dist/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
  823. package/dist/services/adapters/BModelToUIModel.adapter.js +22 -0
  824. package/dist/services/adapters/index.d.ts +1 -0
  825. package/dist/services/adapters/index.js +1 -0
  826. package/dist/services/api/Charts.api.d.ts +15 -0
  827. package/dist/services/api/Charts.api.js +31 -0
  828. package/dist/services/api/getAllDatasets.api.d.ts +9 -4
  829. package/dist/services/api/getAllDatasets.api.js +24 -15
  830. package/dist/services/api/getAllQrveys.api.d.ts +1 -1
  831. package/dist/services/api/getAllQrveys.api.js +1 -1
  832. package/dist/services/api/getDatasetColumns.api.d.ts +3 -3
  833. package/dist/services/api/getDatasetColumns.api.js +9 -6
  834. package/dist/services/api/getDatasetsByIds.api.d.ts +8 -0
  835. package/dist/services/api/getDatasetsByIds.api.js +23 -0
  836. package/dist/services/api/getModel.api.d.ts +1 -0
  837. package/dist/services/api/getModel.api.js +9 -0
  838. package/dist/services/api/index.d.ts +2 -0
  839. package/dist/services/api/index.js +2 -0
  840. package/dist/services/constants/MODEL_ENDPOINT.d.ts +2 -0
  841. package/dist/services/constants/MODEL_ENDPOINT.js +4 -0
  842. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
  843. package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +4 -0
  844. package/dist/services/constants/UCHART_ENDPOINT.d.ts +2 -0
  845. package/dist/services/constants/UCHART_ENDPOINT.js +4 -0
  846. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
  847. package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.js +4 -0
  848. package/dist/services/constants/index.d.ts +4 -0
  849. package/dist/services/constants/index.js +4 -0
  850. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
  851. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +24 -0
  852. package/dist/services/helpers/index.d.ts +1 -0
  853. package/dist/services/helpers/index.js +1 -0
  854. package/package.json +14 -17
  855. package/prepareToPublish.js +2 -1
  856. package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
  857. package/src/charts/constants/index.ts +1 -0
  858. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.ts +5 -0
  859. package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.ts +7 -0
  860. package/src/columns/constants/index.ts +5 -0
  861. package/src/{qrvey → columns}/helpers/getColumnsLabel.ts +2 -1
  862. package/src/columns/helpers/getDatasetByColumn.ts +9 -0
  863. package/src/columns/helpers/getDatasetColumn.ts +15 -0
  864. package/src/columns/helpers/getDatasetColumnyDatasets.ts +11 -0
  865. package/src/columns/helpers/getModelColumn.ts +29 -0
  866. package/src/columns/helpers/index.ts +5 -0
  867. package/src/columns/interfaces/IBColumAnswer.ts +7 -0
  868. package/src/columns/interfaces/IBColumn.ts +10 -3
  869. package/src/columns/interfaces/IBColumnAnswerExpression.ts +6 -0
  870. package/src/columns/interfaces/IBColumnAnswerExpressionCategory.ts +7 -0
  871. package/src/columns/interfaces/IBColumnAnswerExpressionWord.ts +3 -0
  872. package/src/columns/interfaces/IBColumnAnswerGeneral.ts +4 -0
  873. package/src/columns/interfaces/IBColumnAnswerImages.ts +6 -0
  874. package/src/columns/interfaces/IBColumnAnswerLookupAnswer.ts +6 -0
  875. package/src/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.ts +6 -0
  876. package/src/columns/interfaces/IBColumnAnswerLookupValue.ts +5 -0
  877. package/src/columns/interfaces/IBColumnAnswerLookupValueValue.ts +8 -0
  878. package/src/columns/interfaces/IBColumnAnswerSlidebar.ts +3 -0
  879. package/src/columns/interfaces/IColumn.ts +9 -3
  880. package/src/columns/interfaces/IColumnImageUploadOption.ts +3 -0
  881. package/src/columns/interfaces/index.ts +12 -0
  882. package/src/dates/adapters/index.ts +5 -0
  883. package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
  884. package/src/dates/constants/index.ts +2 -0
  885. package/src/dates/helpers/index.ts +1 -0
  886. package/src/dates/index.ts +1 -0
  887. package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +1 -1
  888. package/src/filters/adapters/FDToFlatUI.ts +2 -1
  889. package/src/filters/adapters/FDToUI.ts +2 -3
  890. package/src/filters/adapters/UIToFlatUI.ts +1 -0
  891. package/src/filters/adapters/UIToOldLogic.ts +4 -3
  892. package/src/filters/adapters/adaptFilterValues.ts +2 -2
  893. package/src/filters/adapters/flatUIToFD.ts +1 -0
  894. package/src/filters/adapters/flatUIToOldLogic.ts +36 -32
  895. package/src/filters/adapters/flatUIToUI.ts +1 -0
  896. package/src/filters/adapters/index.ts +4 -0
  897. package/src/filters/adapters/logicToFlatUI.ts +3 -2
  898. package/src/filters/adapters/modelAnswerToFilterValue.ts +15 -0
  899. package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +1 -1
  900. package/src/filters/constants/builder/STATIC_OPTION_COLUMNS.ts +2 -1
  901. package/src/filters/constants/builder/index.ts +1 -0
  902. package/src/filters/helpers/OLD_getAggFilters.ts +90 -0
  903. package/src/filters/helpers/backend/buildExpression.ts +2 -2
  904. package/src/filters/helpers/backend/getBackendValidator.ts +5 -5
  905. package/src/filters/helpers/backend/getBackendValues.ts +14 -12
  906. package/src/filters/helpers/backend/index.ts +2 -1
  907. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +3 -2
  908. package/src/filters/helpers/common/excludeFiltersByParams.ts +3 -3
  909. package/src/filters/helpers/common/getFiltersByParams.ts +4 -4
  910. package/src/filters/helpers/common/getMergeFiltersSettings.ts +3 -2
  911. package/src/filters/helpers/common/getParamsToGetFilterSettings.ts +2 -2
  912. package/src/filters/helpers/common/getValuesFromDataset.ts +19 -0
  913. package/src/filters/helpers/common/getValuesFromModel.ts +19 -0
  914. package/src/filters/helpers/common/index.ts +6 -1
  915. package/src/filters/helpers/common/mergeFilters.ts +53 -26
  916. package/src/filters/helpers/index.ts +3 -0
  917. package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
  918. package/src/filters/helpers/ui/getUIFlatFilterByParams.ts +1 -1
  919. package/src/filters/helpers/ui/getUIFlatFiltersByParams.ts +1 -1
  920. package/src/filters/helpers/ui/getUIValues.ts +23 -15
  921. package/src/filters/helpers/ui/getUpdatedUIFilters.ts +36 -0
  922. package/src/filters/helpers/ui/index.ts +4 -0
  923. package/src/filters/helpers/ui/{resolveUIFlatFiltersByParams.ts → resolveUIFlatFilterByParams.ts} +3 -2
  924. package/src/filters/helpers/ui/transformFilterValues.ts +30 -0
  925. package/src/filters/index.ts +1 -0
  926. package/src/filters/interfaces/OLD_IFilterDetail.ts +3 -1
  927. package/src/filters/interfaces/backend/IFBData.ts +6 -0
  928. package/src/filters/interfaces/backend/index.ts +2 -0
  929. package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +3 -5
  930. package/src/filters/interfaces/builder/index.ts +0 -1
  931. package/src/filters/interfaces/common/IFSColumn.ts +1 -1
  932. package/src/filters/interfaces/common/IFSFilter.ts +2 -1
  933. package/src/filters/interfaces/common/IFSFilterExtras.ts +2 -0
  934. package/src/filters/interfaces/common/IFSGetDataValues.ts +3 -0
  935. package/src/filters/interfaces/common/IFSParamsToGetFilter.ts +2 -0
  936. package/src/filters/interfaces/common/IFilterConfig.ts +3 -0
  937. package/src/filters/interfaces/common/index.ts +2 -2
  938. package/src/filters/interfaces/functions/IFFiltersGetData.ts +18 -0
  939. package/src/filters/interfaces/functions/IFFiltersGetValuesFromDataset.ts +11 -0
  940. package/src/filters/interfaces/functions/IFFiltersGetValuesFromModel.ts +11 -0
  941. package/src/filters/interfaces/{common/IFSMergeFiltersSettings.ts → functions/IFFiltersMergeFilters.ts} +2 -1
  942. package/src/filters/interfaces/{common/IFSParamsToGetFilterSettings.ts → functions/IFFiltersParamsToGetFilter.ts} +1 -1
  943. package/src/filters/interfaces/functions/index.ts +5 -0
  944. package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
  945. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
  946. package/src/filters/interfaces/ui/IFUColumn.ts +2 -2
  947. package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
  948. package/src/filters/interfaces/ui/index.ts +4 -3
  949. package/src/filters/services/Filters.api.ts +151 -0
  950. package/src/filters/services/UChartApi.ts +265 -0
  951. package/src/filters/services/UChartPaginationApi.ts +328 -0
  952. package/src/filters/services/index.ts +3 -0
  953. package/src/format/definition.ts +50 -0
  954. package/src/format/format.ts +19 -15
  955. package/src/format/index.ts +1 -0
  956. package/src/format/localization.ts +75 -0
  957. package/src/general/array/getArrayByProperty.ts +14 -0
  958. package/src/general/array/getUniqueArray.ts +11 -0
  959. package/src/general/array/index.ts +1 -0
  960. package/src/globalization/helpers/getI18nCalendar.ts +68 -0
  961. package/src/globalization/helpers/index.ts +1 -0
  962. package/src/globalization/interfaces/II18nConfig.ts +7 -0
  963. package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
  964. package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
  965. package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
  966. package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
  967. package/src/globalization/interfaces/calendar/index.ts +2 -0
  968. package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
  969. package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
  970. package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
  971. package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -0
  972. package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
  973. package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
  974. package/src/globalization/interfaces/dashboard/II18nDashboard.ts +2 -0
  975. package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
  976. package/src/globalization/interfaces/dashboard/index.ts +1 -0
  977. package/src/globalization/interfaces/filters/II18nFilter.ts +4 -0
  978. package/src/globalization/interfaces/filters/II18nFilterExtraInfo.ts +4 -0
  979. package/src/globalization/interfaces/filters/II18nFilterPanel.ts +2 -0
  980. package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
  981. package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
  982. package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -1
  983. package/src/globalization/interfaces/filters/index.ts +1 -0
  984. package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
  985. package/src/globalization/interfaces/index.ts +7 -2
  986. package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
  987. package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
  988. package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
  989. package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
  990. package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
  991. package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
  992. package/src/globalization/interfaces/style_themes/index.ts +6 -0
  993. package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
  994. package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
  995. package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +2 -0
  996. package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
  997. package/src/globalization/labels/calendar/index.ts +1 -0
  998. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER.ts +1 -1
  999. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +1 -1
  1000. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.ts +1 -1
  1001. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +3 -2
  1002. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +3 -1
  1003. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +4 -3
  1004. package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +10 -8
  1005. package/src/globalization/labels/common/I18N_COMMON.ts +2 -0
  1006. package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
  1007. package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +6 -0
  1008. package/src/globalization/labels/filters/I18N_FILTER.ts +10 -0
  1009. package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +2 -0
  1010. package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
  1011. package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +1 -1
  1012. package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +5 -3
  1013. package/src/globalization/labels/index.ts +6 -3
  1014. package/src/globalization/labels/panel/I18N_PANEL.ts +1 -1
  1015. package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
  1016. package/src/globalization/labels/style_themes/index.ts +1 -0
  1017. package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
  1018. package/src/globalization/service/i18nextBuilder.ts +4 -4
  1019. package/src/globalization/service/initI18n.ts +3 -3
  1020. package/src/interfaces/Qrvey.Interface.ts +1 -27
  1021. package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
  1022. package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
  1023. package/src/interfaces/format/IFormatOutputFormat.Interface.ts +10 -0
  1024. package/src/interfaces/format/index.ts +3 -0
  1025. package/src/interfaces/general/IWidgetConfig.ts +11 -0
  1026. package/src/interfaces/general/index.ts +1 -1
  1027. package/src/interfaces/index.ts +1 -0
  1028. package/src/qrvey/constants/APP_DATASET_TYPE_LIST.ts +14 -0
  1029. package/src/qrvey/constants/APP_FORM_TYPE_LIST.ts +12 -0
  1030. package/src/qrvey/constants/APP_STATUS.ts +6 -0
  1031. package/src/qrvey/constants/APP_STATUS_LIST.ts +11 -0
  1032. package/src/qrvey/constants/APP_TYPE.ts +17 -0
  1033. package/src/qrvey/constants/index.ts +6 -0
  1034. package/src/qrvey/helpers/areStaticColumnValues.ts +15 -0
  1035. package/src/qrvey/helpers/getCategorizableExpression.ts +20 -0
  1036. package/src/qrvey/helpers/getDataAnswersByColumn.ts +56 -0
  1037. package/src/qrvey/helpers/getDropdownAnswers.ts +13 -0
  1038. package/src/qrvey/helpers/getExpressionAnswers.ts +21 -0
  1039. package/src/qrvey/helpers/getImageAnswers.ts +16 -0
  1040. package/src/qrvey/helpers/getImageUploadHasAnalysis.ts +23 -0
  1041. package/src/qrvey/helpers/getLookupAnswers.ts +17 -0
  1042. package/src/qrvey/helpers/getLookupDisplays.ts +9 -0
  1043. package/src/qrvey/helpers/getRatingAnswers.ts +10 -0
  1044. package/src/qrvey/helpers/getSlidebarAnswers.ts +16 -0
  1045. package/src/qrvey/helpers/getSuffixTranslateByColumn.ts +13 -0
  1046. package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
  1047. package/src/qrvey/helpers/getYesNoAnswers.ts +12 -0
  1048. package/src/qrvey/helpers/index.ts +17 -1
  1049. package/src/qrvey/helpers/isDataset.ts +6 -0
  1050. package/src/qrvey/helpers/isForm.ts +6 -0
  1051. package/src/qrvey/helpers/transformValue.ts +49 -0
  1052. package/src/qrvey/interfaces/IAppStatus.ts +3 -0
  1053. package/src/qrvey/interfaces/IAppType.ts +3 -0
  1054. package/src/qrvey/interfaces/IBModel.ts +20 -0
  1055. package/src/qrvey/interfaces/IBModelBranchesMap.ts +6 -0
  1056. package/src/qrvey/interfaces/IBModelBranchesMapBranch.ts +5 -0
  1057. package/src/qrvey/interfaces/IBModelData.ts +5 -0
  1058. package/src/qrvey/interfaces/IDataset.ts +1 -1
  1059. package/src/qrvey/interfaces/IFunctionGetDataAnswersByColumn.ts +12 -0
  1060. package/src/qrvey/interfaces/IFunctionGetValueWithSuffixes.ts +12 -0
  1061. package/src/qrvey/interfaces/IModel.ts +11 -0
  1062. package/src/qrvey/interfaces/IModelAnswer.ts +5 -0
  1063. package/src/qrvey/interfaces/IModelBranchesMap.ts +6 -0
  1064. package/src/qrvey/interfaces/IModelBranchesMapBranch.ts +5 -0
  1065. package/src/qrvey/interfaces/IModelColumn.ts +25 -0
  1066. package/src/qrvey/interfaces/IModelDataset.ts +7 -0
  1067. package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
  1068. package/src/qrvey/interfaces/index.ts +20 -0
  1069. package/src/services/adapters/BBranchesMapToUIBranchesMap.adapter.ts +20 -0
  1070. package/src/services/adapters/BColumnsToUIColumns.adapter.ts +9 -1
  1071. package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +4 -4
  1072. package/src/services/adapters/BModelToUIModel.adapter.ts +25 -0
  1073. package/src/services/adapters/index.ts +1 -0
  1074. package/src/services/api/Charts.api.ts +44 -0
  1075. package/src/services/api/getAllDatasets.api.ts +23 -16
  1076. package/src/services/api/getAllQrveys.api.ts +1 -1
  1077. package/src/services/api/getDatasetColumns.api.ts +12 -9
  1078. package/src/services/api/getDatasetsByIds.api.ts +26 -0
  1079. package/src/services/api/getModel.api.ts +10 -0
  1080. package/src/services/api/index.ts +2 -0
  1081. package/src/services/constants/MODEL_ENDPOINT.ts +6 -0
  1082. package/src/services/constants/QUESTION_LIST_BULK_ENDPOINT.ts +6 -0
  1083. package/src/services/constants/UCHART_ENDPOINT.ts +6 -0
  1084. package/src/services/constants/UCHART_PAGINATION_ENDPOINT.ts +6 -0
  1085. package/src/services/constants/index.ts +6 -0
  1086. package/src/services/helpers/getDefaultQuestionListOptionsAttributes.ts +24 -0
  1087. package/src/services/helpers/index.ts +1 -0
  1088. package/test/columns/isNumericalColumn.test.js +154 -0
  1089. package/test/format.test.js +11 -11
  1090. package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1091. package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +0 -10
  1092. package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
  1093. package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +0 -10
  1094. package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +0 -11
  1095. package/src/interfaces/general/IGeneralWidgetConfig.ts +0 -10
package/README.md CHANGED
@@ -1,4323 +0,0 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.9-9*
2
-
3
- > Helper, Utils for all Qrvey Projects
4
-
5
-
6
- ### dist/format/format.js
7
-
8
-
9
- #### isValidDateString(bytes)
10
-
11
- Apply to the given date format to a date value
12
-
13
-
14
-
15
-
16
- ##### Parameters
17
-
18
- | Name | Type | Description | |
19
- | ---- | ---- | ----------- | -------- |
20
- | bytes | | type number |   |
21
-
22
-
23
-
24
-
25
- ##### Returns
26
-
27
-
28
- - `Void`
29
-
30
-
31
-
32
- #### formatFileSize(bytes)
33
-
34
- Set convert Bytes into MB
35
-
36
-
37
-
38
-
39
- ##### Parameters
40
-
41
- | Name | Type | Description | |
42
- | ---- | ---- | ----------- | -------- |
43
- | bytes | | type number |   |
44
-
45
-
46
-
47
-
48
- ##### Returns
49
-
50
-
51
- - `Void`
52
-
53
-
54
-
55
-
56
- ### dist/tokens/isTokenLabel.js
57
-
58
-
59
- #### isTokenLabel(label)
60
-
61
- Get a text and evaluate if it matchs with a token box label.
62
-
63
-
64
-
65
-
66
- ##### Parameters
67
-
68
- | Name | Type | Description | |
69
- | ---- | ---- | ----------- | -------- |
70
- | label | | string to evaluate |   |
71
-
72
-
73
-
74
-
75
- ##### Returns
76
-
77
-
78
- - True is label matchs; otherwise false
79
-
80
-
81
-
82
-
83
- ### dist/filters/classes/FilterInputErrorHandler.js
84
-
85
-
86
- #### new FilterInputErrorHandler()
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- ##### Returns
96
-
97
-
98
- - `Void`
99
-
100
-
101
-
102
-
103
- ### dist/filters/adapters/FDToLogic.js
104
-
105
-
106
- #### FDToLogic(filterData)
107
-
108
- Generates a Filter Logic structure from Filter Data structure.
109
-
110
-
111
-
112
-
113
- ##### Parameters
114
-
115
- | Name | Type | Description | |
116
- | ---- | ---- | ----------- | -------- |
117
- | filterData | | The filter data object. |   |
118
-
119
-
120
-
121
-
122
- ##### Returns
123
-
124
-
125
- - a filter logic array
126
-
127
-
128
-
129
- #### getLogicBodyFromFD21(filterData)
130
-
131
- Gets the logic body
132
-
133
-
134
-
135
-
136
- ##### Parameters
137
-
138
- | Name | Type | Description | |
139
- | ---- | ---- | ----------- | -------- |
140
- | filterData | | The filter data object |   |
141
-
142
-
143
-
144
-
145
- ##### Returns
146
-
147
-
148
- - a filter logic array
149
-
150
-
151
-
152
-
153
- ### dist/filters/adapters/FDToUI.js
154
-
155
-
156
- #### FDToUI(filterData, datasetsInfo)
157
-
158
- Generates a UI filter structure from Filter Data structure.
159
-
160
-
161
-
162
-
163
- ##### Parameters
164
-
165
- | Name | Type | Description | |
166
- | ---- | ---- | ----------- | -------- |
167
- | filterData | | The filter data object. |   |
168
- | datasetsInfo | | Collection of datasets information |   |
169
-
170
-
171
-
172
-
173
- ##### Returns
174
-
175
-
176
- - a UI Filters structure
177
-
178
-
179
-
180
- #### FD21ToUI(scopes, section, version, datasetsInfo)
181
-
182
- Generates a UI filter Structure from the Filter Data structure v2.1
183
-
184
-
185
-
186
-
187
- ##### Parameters
188
-
189
- | Name | Type | Description | |
190
- | ---- | ---- | ----------- | -------- |
191
- | scopes | | The filter scope section |   |
192
- | section | | The filter section. |   |
193
- | version | | The version of the filter structure |   |
194
- | datasetsInfo | | Collection of datasets information |   |
195
-
196
-
197
-
198
-
199
- ##### Returns
200
-
201
-
202
- - a UI filter Structure
203
-
204
-
205
-
206
-
207
- ### dist/filters/adapters/UIToFD.js
208
-
209
-
210
- #### UIToFD(filterData)
211
-
212
- Generates a Filter Data Structure structure from UI Filter Data structure.
213
-
214
-
215
-
216
-
217
- ##### Parameters
218
-
219
- | Name | Type | Description | |
220
- | ---- | ---- | ----------- | -------- |
221
- | filterData | | The UI filter data object. |   |
222
-
223
-
224
-
225
-
226
- ##### Returns
227
-
228
-
229
- - a Filter Data structure
230
-
231
-
232
-
233
- #### UI21ToFD(uFilterData, version)
234
-
235
- Builds the Fitler Data structure from UI filter data
236
-
237
-
238
-
239
-
240
- ##### Parameters
241
-
242
- | Name | Type | Description | |
243
- | ---- | ---- | ----------- | -------- |
244
- | uFilterData | | The UI filter Data object |   |
245
- | version | | the version of the structure |   |
246
-
247
-
248
-
249
-
250
- ##### Returns
251
-
252
-
253
- -
254
-
255
-
256
-
257
-
258
- ### dist/filters/adapters/UIToFlatUI.js
259
-
260
-
261
- #### UIToFlatUI(filterData, datasetsInfo)
262
-
263
- Generates a Flattened UI filter structure from UI Filter Data structure.
264
-
265
-
266
-
267
-
268
- ##### Parameters
269
-
270
- | Name | Type | Description | |
271
- | ---- | ---- | ----------- | -------- |
272
- | filterData | | The UI filter data object. |   |
273
- | datasetsInfo | | Collection of datasets information. Optional for updating the datasets info |   |
274
-
275
-
276
-
277
-
278
- ##### Returns
279
-
280
-
281
- - a flattened UI filters array
282
-
283
-
284
-
285
- #### UI21ToFlatUI(scopes)
286
-
287
- Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
288
-
289
-
290
-
291
-
292
- ##### Parameters
293
-
294
- | Name | Type | Description | |
295
- | ---- | ---- | ----------- | -------- |
296
- | scopes | | The filter scope section |   |
297
-
298
-
299
-
300
-
301
- ##### Returns
302
-
303
-
304
- - a flattened UI filters array
305
-
306
-
307
-
308
-
309
- ### dist/filters/adapters/adaptDateGroupingProperty.js
310
-
311
-
312
- #### adaptDateGroupingProperty(property)
313
-
314
- [TODO: For 2022, eliminate this adapter]
315
- Get the new property base on the old date grouping properties
316
-
317
-
318
-
319
-
320
- ##### Parameters
321
-
322
- | Name | Type | Description | |
323
- | ---- | ---- | ----------- | -------- |
324
- | property | | |   |
325
-
326
-
327
-
328
-
329
- ##### Returns
330
-
331
-
332
- -
333
-
334
-
335
-
336
-
337
- ### dist/filters/adapters/adaptFilterData.js
338
-
339
-
340
- #### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
341
-
342
- Checks and adapts the v2.0 Filter Data Structure to the v2.1
343
-
344
-
345
-
346
-
347
- ##### Parameters
348
-
349
- | Name | Type | Description | |
350
- | ---- | ---- | ----------- | -------- |
351
- | filterData | | The filter data structure. Accepts both v2.1 or v2.0 |   |
352
- | getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) |   |
353
- | datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory |   |
354
-
355
-
356
-
357
-
358
- ##### Returns
359
-
360
-
361
- - A new filter data structure v2.1
362
-
363
-
364
-
365
-
366
- ### dist/filters/adapters/adaptFilterValues.js
367
-
368
-
369
- #### adaptFilterValues(filter)
370
-
371
- [TODO: For 2022, eliminate this adapter]
372
- Gets an adapted filter value array. Validates the enabled property and sets
373
-
374
-
375
-
376
-
377
- ##### Parameters
378
-
379
- | Name | Type | Description | |
380
- | ---- | ---- | ----------- | -------- |
381
- | filter | | The filter |   |
382
-
383
-
384
-
385
-
386
- ##### Returns
387
-
388
-
389
- - A new value array with the filled properties.
390
-
391
-
392
-
393
-
394
- ### dist/filters/adapters/FDToFlatUI.js
395
-
396
-
397
- #### FDToFlatUI(filterData, datasetsInfo)
398
-
399
- Generates a Flattened UI filter structure from Filter Data structure.
400
-
401
-
402
-
403
-
404
- ##### Parameters
405
-
406
- | Name | Type | Description | |
407
- | ---- | ---- | ----------- | -------- |
408
- | filterData | | The filter data object. |   |
409
- | datasetsInfo | | Collection of datasets information |   |
410
-
411
-
412
-
413
-
414
- ##### Returns
415
-
416
-
417
- - a flattened UI filters array
418
-
419
-
420
-
421
- #### FD21ToFlatUI(scopes, datasetsInfo)
422
-
423
- Generates a Filter Builder Structure from the Filter Data structure v2.1
424
-
425
-
426
-
427
-
428
- ##### Parameters
429
-
430
- | Name | Type | Description | |
431
- | ---- | ---- | ----------- | -------- |
432
- | scopes | | The filter scope section |   |
433
- | datasetsInfo | | Collection of datasets information |   |
434
-
435
-
436
-
437
-
438
- ##### Returns
439
-
440
-
441
- - a flattened UI filters array
442
-
443
-
444
-
445
-
446
- ### dist/filters/adapters/flatUIToFD.js
447
-
448
-
449
- #### flatUIToFD(uFilters, version)
450
-
451
- Generates a filter data structure from the flatttened UI filters.
452
-
453
-
454
-
455
-
456
- ##### Parameters
457
-
458
- | Name | Type | Description | |
459
- | ---- | ---- | ----------- | -------- |
460
- | uFilters | | Array of flattened filters from UI |   |
461
- | version | | Tag for the version of the filter data structure |   |
462
-
463
-
464
-
465
-
466
- ##### Returns
467
-
468
-
469
- - a Filter Data.
470
-
471
-
472
-
473
- #### buildScopes(fbFilters)
474
-
475
- Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
476
- Also, adds and organizes filters by datasets
477
-
478
-
479
-
480
-
481
- ##### Parameters
482
-
483
- | Name | Type | Description | |
484
- | ---- | ---- | ----------- | -------- |
485
- | fbFilters | | Array of flat filters from UI |   |
486
-
487
-
488
-
489
-
490
- ##### Returns
491
-
492
-
493
- - an array of scopes structure.
494
-
495
-
496
-
497
- #### buildScope(uFilter)
498
-
499
- Gets an scope structure for the filter data
500
-
501
-
502
-
503
-
504
- ##### Parameters
505
-
506
- | Name | Type | Description | |
507
- | ---- | ---- | ----------- | -------- |
508
- | uFilter | | UI structure filter |   |
509
-
510
-
511
-
512
-
513
- ##### Returns
514
-
515
-
516
- - an scope structure
517
-
518
-
519
-
520
- #### buildDataset(uFilter)
521
-
522
- Gets an dataset structure for the filter data
523
-
524
-
525
-
526
-
527
- ##### Parameters
528
-
529
- | Name | Type | Description | |
530
- | ---- | ---- | ----------- | -------- |
531
- | uFilter | | a UI structure filter |   |
532
-
533
-
534
-
535
-
536
- ##### Returns
537
-
538
-
539
- - an dataset structure
540
-
541
-
542
-
543
- #### buildFilter(uFilter)
544
-
545
- Gets an filter structure for the filter data
546
-
547
-
548
-
549
-
550
- ##### Parameters
551
-
552
- | Name | Type | Description | |
553
- | ---- | ---- | ----------- | -------- |
554
- | uFilter | | a UI structure filter |   |
555
-
556
-
557
-
558
-
559
- ##### Returns
560
-
561
-
562
- - an filter structure
563
-
564
-
565
-
566
-
567
- ### dist/filters/adapters/flatUIToLogic.js
568
-
569
-
570
- #### flatUIToLogic(uFilter)
571
-
572
- Generates a Logic structure from flattened UI filters
573
-
574
-
575
-
576
-
577
- ##### Parameters
578
-
579
- | Name | Type | Description | |
580
- | ---- | ---- | ----------- | -------- |
581
- | uFilter | | Array of flat filters from UI |   |
582
-
583
-
584
-
585
-
586
- ##### Returns
587
-
588
-
589
- - The logic structure
590
-
591
-
592
-
593
-
594
- ### dist/filters/adapters/flatUIToOldLogic.js
595
-
596
-
597
- #### flatUIToOldLogic(uFilters)
598
-
599
- Generates a Logic structure from flattened UI filters
600
-
601
-
602
-
603
-
604
- ##### Parameters
605
-
606
- | Name | Type | Description | |
607
- | ---- | ---- | ----------- | -------- |
608
- | uFilters | | Array of flat filters from UI |   |
609
-
610
-
611
-
612
-
613
- ##### Returns
614
-
615
-
616
- - The logic structure
617
-
618
-
619
-
620
-
621
- ### dist/filters/adapters/flatUIToUI.js
622
-
623
-
624
- #### flatUIToUI(uFilters, version)
625
-
626
- Generates a UI filter data structure from the flatttened UI filters.
627
-
628
-
629
-
630
-
631
- ##### Parameters
632
-
633
- | Name | Type | Description | |
634
- | ---- | ---- | ----------- | -------- |
635
- | uFilters | | Array of flattened filters from UI |   |
636
- | version | | Tag for the version of the filter data structure |   |
637
-
638
-
639
-
640
-
641
- ##### Returns
642
-
643
-
644
- - a UI Filter Data.
645
-
646
-
647
-
648
- #### buildScopes(fbFilters)
649
-
650
- Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
651
- Also, adds and organizes filters by datasets
652
-
653
-
654
-
655
-
656
- ##### Parameters
657
-
658
- | Name | Type | Description | |
659
- | ---- | ---- | ----------- | -------- |
660
- | fbFilters | | Array of flat filters from UI |   |
661
-
662
-
663
-
664
-
665
- ##### Returns
666
-
667
-
668
- - an array of scopes structure.
669
-
670
-
671
-
672
- #### buildScope(uFilter)
673
-
674
- Gets an scope structure for the UI filter data
675
-
676
-
677
-
678
-
679
- ##### Parameters
680
-
681
- | Name | Type | Description | |
682
- | ---- | ---- | ----------- | -------- |
683
- | uFilter | | UI structure filter |   |
684
-
685
-
686
-
687
-
688
- ##### Returns
689
-
690
-
691
- - an scope structure
692
-
693
-
694
-
695
- #### buildDataset(uFilter)
696
-
697
- Gets an dataset structure for the UI filter data
698
-
699
-
700
-
701
-
702
- ##### Parameters
703
-
704
- | Name | Type | Description | |
705
- | ---- | ---- | ----------- | -------- |
706
- | uFilter | | a UI structure filter |   |
707
-
708
-
709
-
710
-
711
- ##### Returns
712
-
713
-
714
- - an dataset structure
715
-
716
-
717
-
718
- #### buildFilter(uFilter)
719
-
720
- Gets an filter structure for the UI filter data
721
-
722
-
723
-
724
-
725
- ##### Parameters
726
-
727
- | Name | Type | Description | |
728
- | ---- | ---- | ----------- | -------- |
729
- | uFilter | | a UI structure filter |   |
730
-
731
-
732
-
733
-
734
- ##### Returns
735
-
736
-
737
- - an filter structure
738
-
739
-
740
-
741
-
742
- ### dist/filters/adapters/logicToFD.js
743
-
744
-
745
- #### logicToFD(filterData, version)
746
-
747
- Generates a filter data structure from the old logic structure (v2.0).
748
-
749
-
750
-
751
-
752
- ##### Parameters
753
-
754
- | Name | Type | Description | |
755
- | ---- | ---- | ----------- | -------- |
756
- | filterData | | The old filter data structure with logic (v2.0) |   |
757
- | version | | Tag for the version of the filter data structure |   |
758
-
759
-
760
-
761
-
762
- ##### Returns
763
-
764
-
765
- - a Filter Data.
766
-
767
-
768
-
769
-
770
- ### dist/filters/adapters/logicToFlatUI.js
771
-
772
-
773
- #### logicToFlatUI(logics)
774
-
775
- Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
776
-
777
-
778
-
779
-
780
- ##### Parameters
781
-
782
- | Name | Type | Description | |
783
- | ---- | ---- | ----------- | -------- |
784
- | logics | | The old logic structure (v2.0) |   |
785
-
786
-
787
-
788
-
789
- ##### Returns
790
-
791
-
792
- - The Flattened UI Filters array
793
-
794
-
795
-
796
- #### getFilter(filters, filter, getIndex)
797
-
798
- Get the filter or the index of the given array, validating an old filter structure.
799
-
800
-
801
-
802
-
803
- ##### Parameters
804
-
805
- | Name | Type | Description | |
806
- | ---- | ---- | ----------- | -------- |
807
- | filters | | The array of UI filters |   |
808
- | filter | | The old logic structure filter |   |
809
- | getIndex | | Determines if the index or returns the UI filter object |   |
810
-
811
-
812
-
813
-
814
- ##### Returns
815
-
816
-
817
- - the index or the UI filter object
818
-
819
-
820
-
821
- #### refineRankingValues(values, uiValues)
822
-
823
- Refines the values of the Ranking column type.
824
-
825
-
826
-
827
-
828
- ##### Parameters
829
-
830
- | Name | Type | Description | |
831
- | ---- | ---- | ----------- | -------- |
832
- | values | | the Array of Ranking values |   |
833
- | uiValues | | Object with additional info about the values of the filter. |   |
834
-
835
-
836
-
837
-
838
- ##### Returns
839
-
840
-
841
- - the array of Ranking values
842
-
843
-
844
-
845
-
846
- ### dist/filters/adapters/logicToUI.js
847
-
848
-
849
- #### logicToUI(uFilters, datasetsInfo)
850
-
851
- Generates a UI filter structure from the old logic structure (v2.0).
852
-
853
-
854
-
855
-
856
- ##### Parameters
857
-
858
- | Name | Type | Description | |
859
- | ---- | ---- | ----------- | -------- |
860
- | uFilters | | Array of filters from old logic structure |   |
861
- | datasetsInfo | | Collection of datasets information |   |
862
-
863
-
864
-
865
-
866
- ##### Returns
867
-
868
-
869
- - a UI Filter Data.
870
-
871
-
872
-
873
-
874
- ### dist/filters/adapters/transformFilters.js
875
-
876
-
877
- #### transformFilters(oldFiltersObj, section)
878
-
879
- Transform the old filters structure into the new one
880
-
881
-
882
-
883
-
884
- ##### Parameters
885
-
886
- | Name | Type | Description | |
887
- | ---- | ---- | ----------- | -------- |
888
- | oldFiltersObj | `Object` | an object with the old filters structure |   |
889
- | section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' |   |
890
-
891
-
892
-
893
-
894
- ##### Examples
895
-
896
- ```javascript
897
-
898
- const oldPreferenceFilters = {
899
- "WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
900
- "WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
901
- "WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
902
- "WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
903
- "WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
904
- "formulaId": null,
905
- "panelId": null,
906
- "values": [
907
- {
908
- "EQUALS": [
909
- {
910
- "id": "AK4M8UV2a0",
911
- "value": "A",
912
- "enabled": true,
913
- "imageUrl": null
914
- },
915
- {
916
- "id": "AK4M8UV2a1",
917
- "value": "B",
918
- "enabled": true,
919
- "imageUrl": null
920
- }
921
- ]
922
- }
923
- ],
924
- "bucketId": null,
925
- "text": "MC",
926
- "title": "MC",
927
- "type": "SINGLE_CHOICE",
928
- "qid": "AK4M8UV2",
929
- "dataset": {
930
- "sourceid": "xYOQAdpqT",
931
- "name": "Form All Questions",
932
- "qrveyid": "xYOQAdpqT",
933
- "text": "Form All Questions",
934
- "linkid": 0
935
- },
936
- "enabled": true,
937
- "linked": null
938
- }
939
- };
940
-
941
- const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
942
- ```
943
-
944
-
945
- ##### Returns
946
-
947
-
948
- - `Object` an object with the new filters structure
949
-
950
-
951
-
952
-
953
- ### dist/filters/helpers/applyHierarchyForAggFilters.js
954
-
955
-
956
- #### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
957
-
958
- [TODO: Make a proper description for this function]
959
-
960
-
961
-
962
-
963
- ##### Parameters
964
-
965
- | Name | Type | Description | |
966
- | ---- | ---- | ----------- | -------- |
967
- | chartSettings | | Chart Settings for the Filter Builder |   |
968
- | scopes | | |   |
969
- | currentScope | | |   |
970
-
971
-
972
-
973
-
974
- ##### Returns
975
-
976
-
977
- -
978
-
979
-
980
-
981
-
982
- ### dist/filters/helpers/getAvailableScopes.js
983
-
984
-
985
- #### getAvailableScopes(config)
986
-
987
- Gets Scopes/Scope IDs by given IDs
988
-
989
-
990
-
991
-
992
- ##### Parameters
993
-
994
- | Name | Type | Description | |
995
- | ---- | ---- | ----------- | -------- |
996
- | config | | given Differnts IDs in order set a available scope |   |
997
-
998
-
999
-
1000
-
1001
- ##### Returns
1002
-
1003
-
1004
- - a Scopes/Scope IDs array
1005
-
1006
-
1007
-
1008
-
1009
- ### dist/filters/helpers/getAvailableScopesIDsByConfig.js
1010
-
1011
-
1012
- #### getAvailableScopesIDsByConfig(config)
1013
-
1014
- Gets the Scopes IDS for the Available Scope function by any config
1015
-
1016
-
1017
-
1018
-
1019
- ##### Parameters
1020
-
1021
- | Name | Type | Description | |
1022
- | ---- | ---- | ----------- | -------- |
1023
- | config | | any config |   |
1024
-
1025
-
1026
-
1027
-
1028
- ##### Returns
1029
-
1030
-
1031
- - a Available Scope IDS config
1032
-
1033
-
1034
-
1035
-
1036
- ### dist/filters/helpers/getScopesByHierarchy.js
1037
-
1038
-
1039
- #### getScopesByHierarchy(scopes, currentScope)
1040
-
1041
- [TODO: Make a description for this]
1042
-
1043
-
1044
-
1045
-
1046
- ##### Parameters
1047
-
1048
- | Name | Type | Description | |
1049
- | ---- | ---- | ----------- | -------- |
1050
- | scopes | | the collection of Scopes/Scope IDs |   |
1051
- | currentScope | | Current scope type |   |
1052
-
1053
-
1054
-
1055
-
1056
- ##### Returns
1057
-
1058
-
1059
- - A new array of Scopes/Scope IDs
1060
-
1061
-
1062
-
1063
-
1064
- ### dist/general/function/debounce.js
1065
-
1066
-
1067
- #### debounce(fn, time)
1068
-
1069
- Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
1070
-
1071
-
1072
-
1073
-
1074
- ##### Parameters
1075
-
1076
- | Name | Type | Description | |
1077
- | ---- | ---- | ----------- | -------- |
1078
- | fn | `Function` | original Function |   |
1079
- | time | `Number` | default 500ms |   |
1080
-
1081
-
1082
-
1083
-
1084
- ##### Returns
1085
-
1086
-
1087
- - `Function` debounced functions
1088
-
1089
-
1090
-
1091
-
1092
- ### dist/general/function/throttled.js
1093
-
1094
-
1095
- #### throttled(fn, time)
1096
-
1097
- Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1098
-
1099
-
1100
-
1101
-
1102
- ##### Parameters
1103
-
1104
- | Name | Type | Description | |
1105
- | ---- | ---- | ----------- | -------- |
1106
- | fn | `Function` | original Function |   |
1107
- | time | `Number` | default 500ms |   |
1108
-
1109
-
1110
-
1111
-
1112
- ##### Returns
1113
-
1114
-
1115
- - `Function` throttled function
1116
-
1117
-
1118
-
1119
-
1120
- ### dist/general/array/delete.js
1121
-
1122
-
1123
- #### ArrayDelete(array, index)
1124
-
1125
- Inmutable Array Item deletion
1126
-
1127
-
1128
-
1129
-
1130
- ##### Parameters
1131
-
1132
- | Name | Type | Description | |
1133
- | ---- | ---- | ----------- | -------- |
1134
- | array | `Array` | a collection of items to delete |   |
1135
- | index | `Number` | the position of the item to delete |   |
1136
-
1137
-
1138
-
1139
-
1140
- ##### Returns
1141
-
1142
-
1143
- - a new Array or the given parameter when is empty or not an array
1144
-
1145
-
1146
-
1147
-
1148
- ### dist/general/array/flattenDeep.js
1149
-
1150
-
1151
- #### flattenDeep(arr)
1152
-
1153
- Flat deeply an array
1154
-
1155
-
1156
-
1157
-
1158
- ##### Parameters
1159
-
1160
- | Name | Type | Description | |
1161
- | ---- | ---- | ----------- | -------- |
1162
- | arr | | Array to flat deeply |   |
1163
-
1164
-
1165
-
1166
-
1167
- ##### Returns
1168
-
1169
-
1170
- - flatten array
1171
-
1172
-
1173
-
1174
-
1175
- ### dist/general/array/getFirstIndexFromArray.js
1176
-
1177
-
1178
- #### getFirstIndexFromArray(array, callback)
1179
-
1180
- Gets the first index from the array by a callback condition
1181
-
1182
-
1183
-
1184
-
1185
- ##### Parameters
1186
-
1187
- | Name | Type | Description | |
1188
- | ---- | ---- | ----------- | -------- |
1189
- | array | | |   |
1190
- | callback | | function callback |   |
1191
-
1192
-
1193
-
1194
-
1195
- ##### Returns
1196
-
1197
-
1198
- - the first index of the array. -1 when the condition is not satisfied
1199
-
1200
-
1201
-
1202
-
1203
- ### dist/general/array/getLastIndexFromArray.js
1204
-
1205
-
1206
- #### getLastIndexFromArray(array, callback)
1207
-
1208
- Gets the last index from the array by a callback condition
1209
-
1210
-
1211
-
1212
-
1213
- ##### Parameters
1214
-
1215
- | Name | Type | Description | |
1216
- | ---- | ---- | ----------- | -------- |
1217
- | array | | |   |
1218
- | callback | | function callback |   |
1219
-
1220
-
1221
-
1222
-
1223
- ##### Returns
1224
-
1225
-
1226
- - the last index of the array. -1 when the condition is not satisfied
1227
-
1228
-
1229
-
1230
-
1231
- ### dist/general/array/filterNestedTree.js
1232
-
1233
-
1234
- #### filterNestedTree(arr, childArrKey, condition)
1235
-
1236
- Filters a nested tree array by a custom condition on the last child node
1237
- - If the given arguments are not valid, the function returns the first argument.
1238
- - If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
1239
- - If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
1240
-
1241
-
1242
-
1243
-
1244
- ##### Parameters
1245
-
1246
- | Name | Type | Description | |
1247
- | ---- | ---- | ----------- | -------- |
1248
- | arr | | nested tree array |   |
1249
- | childArrKey | | property representing the children array on the nested tree |   |
1250
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree |   |
1251
-
1252
-
1253
-
1254
-
1255
- ##### Returns
1256
-
1257
-
1258
- - array filtered
1259
-
1260
-
1261
-
1262
-
1263
- ### dist/general/mix/compareDeep.js
1264
-
1265
-
1266
- #### compareDeep(object1, object2)
1267
-
1268
- Compares two objects to know if they are equals. Go across nested objects.
1269
- Includes arrays in the comparison.
1270
-
1271
-
1272
-
1273
-
1274
- ##### Parameters
1275
-
1276
- | Name | Type | Description | |
1277
- | ---- | ---- | ----------- | -------- |
1278
- | object1 | | First Object to compare |   |
1279
- | object2 | | Second Object to compare |   |
1280
-
1281
-
1282
-
1283
-
1284
- ##### Returns
1285
-
1286
-
1287
- - True: objects are equal. False: Objects are not equal. Undefined: invalid
1288
-
1289
-
1290
-
1291
-
1292
- ### dist/general/mix/importScripts.js
1293
-
1294
-
1295
- #### importScripts(scripts)
1296
-
1297
- Import a set of external Scripts given the URL in both serie and cascade way
1298
-
1299
-
1300
-
1301
-
1302
- ##### Parameters
1303
-
1304
- | Name | Type | Description | |
1305
- | ---- | ---- | ----------- | -------- |
1306
- | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1307
- | scripts.url | `String` | CDN URL | &nbsp; |
1308
- | 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; |
1309
- | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1310
- | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1311
- | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
1312
-
1313
-
1314
-
1315
-
1316
- ##### Examples
1317
-
1318
- ```javascript
1319
- // 1) Simple script (paralell loading)
1320
- importScripts(['http://myscript.js', 'http://another.js']);
1321
-
1322
- // 2) Loading `.js` and `.esm.js` script (parallel loading)
1323
- importScripts([
1324
- { url: 'http://myscript.esm.js', type: 'module' },
1325
- { url: 'http://myscript.js', noModule: true }
1326
- ]);
1327
-
1328
- // 3) import dependent scripts (cascade)
1329
- importScripts([
1330
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
1331
- ]);
1332
-
1333
- // 4) mix
1334
- importScripts([
1335
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
1336
- { url: 'http://another.esm.js', type: 'module' },
1337
- { url: 'http://another.js', noModule: true },
1338
- 'http://simplescript.js'
1339
- ]);
1340
- ```
1341
-
1342
-
1343
- ##### Returns
1344
-
1345
-
1346
- - `Promise` Promise when all script have been loaded
1347
-
1348
-
1349
-
1350
- #### loadScript(url, type, noModule)
1351
-
1352
- Creates the script element and appends to document.head
1353
- return a Promise that is resolved when the script is loaded
1354
-
1355
-
1356
-
1357
-
1358
- ##### Parameters
1359
-
1360
- | Name | Type | Description | |
1361
- | ---- | ---- | ----------- | -------- |
1362
- | url | `String` | Cdn Url | &nbsp; |
1363
- | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1364
- | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1365
-
1366
-
1367
-
1368
-
1369
- ##### Returns
1370
-
1371
-
1372
- - `Void`
1373
-
1374
-
1375
-
1376
-
1377
- ### dist/general/mix/getTag.js
1378
-
1379
-
1380
- #### getTag(value)
1381
-
1382
- Gets the `toStringTag` of `value`.
1383
-
1384
-
1385
-
1386
-
1387
- ##### Parameters
1388
-
1389
- | Name | Type | Description | |
1390
- | ---- | ---- | ----------- | -------- |
1391
- | value | | The value to query. | &nbsp; |
1392
-
1393
-
1394
-
1395
-
1396
- ##### Returns
1397
-
1398
-
1399
- - `string` Returns the `toStringTag`.
1400
-
1401
-
1402
-
1403
-
1404
- ### dist/general/mix/isEmpty.js
1405
-
1406
-
1407
- #### isEmpty(variable, includeFalsy)
1408
-
1409
- Validates if the given argument is empty
1410
-
1411
-
1412
-
1413
-
1414
- ##### Parameters
1415
-
1416
- | Name | Type | Description | |
1417
- | ---- | ---- | ----------- | -------- |
1418
- | variable | | the given variable | &nbsp; |
1419
- | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
1420
-
1421
-
1422
-
1423
-
1424
- ##### Returns
1425
-
1426
-
1427
- - true: the given argument is empty; false: is not.
1428
-
1429
-
1430
-
1431
-
1432
- ### dist/general/mix/isNaNV2.js
1433
-
1434
-
1435
- #### isNaNV2(variable)
1436
-
1437
- Validates if the recieved number is NaN type.
1438
- This function recieves any variable but will return false.
1439
- Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
1440
-
1441
-
1442
-
1443
-
1444
- ##### Parameters
1445
-
1446
- | Name | Type | Description | |
1447
- | ---- | ---- | ----------- | -------- |
1448
- | variable | | the variable to validate | &nbsp; |
1449
-
1450
-
1451
-
1452
-
1453
- ##### Returns
1454
-
1455
-
1456
- - True if variable is a NaN or false otherwise
1457
-
1458
-
1459
-
1460
-
1461
- ### dist/general/mix/isNull.js
1462
-
1463
-
1464
- #### isNull(arg)
1465
-
1466
- return if a given variable is either `null` or `undefined`
1467
- useful to avoid falsify validating Number Zero (0)
1468
-
1469
-
1470
-
1471
-
1472
- ##### Parameters
1473
-
1474
- | Name | Type | Description | |
1475
- | ---- | ---- | ----------- | -------- |
1476
- | arg | `any` | | &nbsp; |
1477
-
1478
-
1479
-
1480
-
1481
- ##### Returns
1482
-
1483
-
1484
- - `Boolean`
1485
-
1486
-
1487
-
1488
-
1489
- ### dist/general/mix/randomId.js
1490
-
1491
-
1492
- #### randomId(length, exclude)
1493
-
1494
- Creates a random string
1495
- - If the first given argument is different than a length number, the variable is replaced by a default number
1496
- - If the optional second given argument is passed the random string is permutated.
1497
-
1498
-
1499
-
1500
-
1501
- ##### Parameters
1502
-
1503
- | Name | Type | Description | |
1504
- | ---- | ---- | ----------- | -------- |
1505
- | length | `Number` | size of the generated string. Default 8 | &nbsp; |
1506
- | exclude | `Array` | collection of strings that is going to be excluded of the random string. | &nbsp; |
1507
-
1508
-
1509
-
1510
-
1511
- ##### Returns
1512
-
1513
-
1514
- - `String` Random string
1515
-
1516
-
1517
-
1518
-
1519
- ### dist/general/mix/size.js
1520
-
1521
-
1522
- #### size(obj)
1523
-
1524
- Gets the length of the given array.
1525
- - Useful for Object, Array and string type.
1526
- - For `null` or `undefined` or else argument the returned value will be 0.
1527
-
1528
-
1529
-
1530
-
1531
- ##### Parameters
1532
-
1533
- | Name | Type | Description | |
1534
- | ---- | ---- | ----------- | -------- |
1535
- | obj | `Any` | Any object-type variable | &nbsp; |
1536
-
1537
-
1538
-
1539
-
1540
- ##### Returns
1541
-
1542
-
1543
- - `Number` the size of the given variable
1544
-
1545
-
1546
-
1547
-
1548
- ### dist/general/object/cloneDeep.js
1549
-
1550
-
1551
- #### cloneDeep(obj)
1552
-
1553
- A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
1554
- Not to use this function with inner objects and functions
1555
-
1556
-
1557
-
1558
-
1559
- ##### Parameters
1560
-
1561
- | Name | Type | Description | |
1562
- | ---- | ---- | ----------- | -------- |
1563
- | obj | | The object | &nbsp; |
1564
-
1565
-
1566
-
1567
-
1568
- ##### Returns
1569
-
1570
-
1571
- - The new reference object or the given object if the parsing is incorrect or empty
1572
-
1573
-
1574
-
1575
-
1576
- ### dist/general/object/get.js
1577
-
1578
-
1579
- #### _get(baseObject, path, defaultValue)
1580
-
1581
- Like lodash _.get.
1582
- Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
1583
-
1584
- Empty arrays and empty objects are returned but the defaultValue is not
1585
- Undefined and null values will return the defaultValue.
1586
-
1587
-
1588
-
1589
-
1590
- ##### Parameters
1591
-
1592
- | Name | Type | Description | |
1593
- | ---- | ---- | ----------- | -------- |
1594
- | baseObject | | The object to query | &nbsp; |
1595
- | path | | The string path or collection of string paths of the property to get. | &nbsp; |
1596
- | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
1597
-
1598
-
1599
-
1600
-
1601
- ##### Examples
1602
-
1603
- ```javascript
1604
- // returns 'Hello'
1605
- _get({ item1: 'Hello', item2: 'World' }, 'item1')
1606
- ```
1607
- ```javascript
1608
- // returns 'A simple Hello'
1609
- _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
1610
- ```
1611
- ```javascript
1612
- // returns 'Hello Again'
1613
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
1614
- ```
1615
- ```javascript
1616
- // returns 'Hello 2'
1617
- _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
1618
- ```
1619
- ```javascript
1620
- // returns 'Hello Again'
1621
- _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
1622
- ```
1623
-
1624
-
1625
- ##### Returns
1626
-
1627
-
1628
- - the resolved value.
1629
-
1630
-
1631
-
1632
-
1633
- ### dist/general/object/getAttribute.js
1634
-
1635
-
1636
- #### getAttribute(obj, key)
1637
-
1638
- Searchs for properties in different case styles such as: lower, upper, camel and pascal
1639
- - To optimize the searching, it is required a key in a snake_case style
1640
- - List of cases that do not match
1641
- -- From lower to snake case
1642
- -- From upper to snake case
1643
- -- From lower to camel case
1644
- -- From upper to camel case
1645
- -- From lower to pascal case
1646
- -- From upper to pascal case
1647
-
1648
-
1649
-
1650
-
1651
- ##### Parameters
1652
-
1653
- | Name | Type | Description | |
1654
- | ---- | ---- | ----------- | -------- |
1655
- | obj | `object` | object to look for | &nbsp; |
1656
- | key | `string` | String attribute in snake_case style | &nbsp; |
1657
-
1658
-
1659
-
1660
-
1661
- ##### Examples
1662
-
1663
- ```javascript
1664
- getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1665
- ```
1666
-
1667
-
1668
- ##### Returns
1669
-
1670
-
1671
- - `Void`
1672
-
1673
-
1674
-
1675
-
1676
- ### dist/general/object/hasProperty.js
1677
-
1678
-
1679
- #### _hasProperty(obj, property)
1680
-
1681
- Use the hasOwnProperty in order to verify if the given property exists in the object.
1682
-
1683
-
1684
-
1685
-
1686
- ##### Parameters
1687
-
1688
- | Name | Type | Description | |
1689
- | ---- | ---- | ----------- | -------- |
1690
- | obj | `object` | an object | &nbsp; |
1691
- | property | `string` | String to verify if exists in the object as property | &nbsp; |
1692
-
1693
-
1694
-
1695
-
1696
- ##### Examples
1697
-
1698
- ```javascript
1699
- const prop = 'prop2'
1700
- const obj1 = { prop1: 'hello', prop2: 'world'}
1701
- _hasProperty(ob1, prop1) // true
1702
-
1703
- const obj2 = { prop1: 'hello world' }
1704
- _hasProperty(ob1, prop2) // false
1705
- ```
1706
-
1707
-
1708
- ##### Returns
1709
-
1710
-
1711
- - True if the object has the given property; otherwise, false.
1712
-
1713
-
1714
-
1715
-
1716
- ### dist/general/object/isObject.js
1717
-
1718
-
1719
- #### isObject(obj)
1720
-
1721
- Checks if the given argument is an object type
1722
-
1723
-
1724
-
1725
-
1726
- ##### Parameters
1727
-
1728
- | Name | Type | Description | |
1729
- | ---- | ---- | ----------- | -------- |
1730
- | obj | | the variable to check | &nbsp; |
1731
-
1732
-
1733
-
1734
-
1735
- ##### Returns
1736
-
1737
-
1738
- - True: It is an object; False: It is not.
1739
-
1740
-
1741
-
1742
-
1743
- ### dist/general/object/mapValues.js
1744
-
1745
-
1746
- #### mapValues(baseObject, iteratee)
1747
-
1748
- Invoke iteratee (function) for each object key-value pair
1749
- and return a mapped object
1750
-
1751
-
1752
-
1753
-
1754
- ##### Parameters
1755
-
1756
- | Name | Type | Description | |
1757
- | ---- | ---- | ----------- | -------- |
1758
- | baseObject | `Object` | Base object. | &nbsp; |
1759
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
1760
-
1761
-
1762
-
1763
-
1764
- ##### Returns
1765
-
1766
-
1767
- - `Object` New mapped object.
1768
-
1769
-
1770
-
1771
-
1772
- ### dist/general/object/mergeDeep.js
1773
-
1774
-
1775
- #### mergeDeep(obj1, obj2, settings)
1776
-
1777
- Merges two objects into a new one.
1778
- The second given argument to the first given argument.
1779
-
1780
-
1781
-
1782
-
1783
- ##### Parameters
1784
-
1785
- | Name | Type | Description | |
1786
- | ---- | ---- | ----------- | -------- |
1787
- | obj1 | | The target object | &nbsp; |
1788
- | obj2 | | The object to be merged | &nbsp; |
1789
- | settings | | Object settings for this function | &nbsp; |
1790
-
1791
-
1792
-
1793
-
1794
- ##### Returns
1795
-
1796
-
1797
- - a new merged object
1798
-
1799
-
1800
-
1801
- #### isValid(obj1, obj2)
1802
-
1803
- Validates if the two arguments are objects
1804
-
1805
-
1806
-
1807
-
1808
- ##### Parameters
1809
-
1810
- | Name | Type | Description | |
1811
- | ---- | ---- | ----------- | -------- |
1812
- | obj1 | | The target object | &nbsp; |
1813
- | obj2 | | The object to be merged | &nbsp; |
1814
-
1815
-
1816
-
1817
-
1818
- ##### Returns
1819
-
1820
-
1821
- - true: they are valid; false: they are not
1822
-
1823
-
1824
-
1825
- #### getParamsToMergeDeep(settings)
1826
-
1827
- Validates and gets the settings with all set parameters.
1828
-
1829
-
1830
-
1831
-
1832
- ##### Parameters
1833
-
1834
- | Name | Type | Description | |
1835
- | ---- | ---- | ----------- | -------- |
1836
- | settings | | the settings object | &nbsp; |
1837
-
1838
-
1839
-
1840
-
1841
- ##### Returns
1842
-
1843
-
1844
- - a new settings object with all set parameters.
1845
-
1846
-
1847
-
1848
-
1849
- ### dist/general/object/objectCopy.js
1850
-
1851
-
1852
- #### objectCopy(entity, cache)
1853
-
1854
- Created a new reference of the given argument
1855
-
1856
-
1857
-
1858
-
1859
- ##### Parameters
1860
-
1861
- | Name | Type | Description | |
1862
- | ---- | ---- | ----------- | -------- |
1863
- | entity | | The variable to be copied | &nbsp; |
1864
- | cache | | | &nbsp; |
1865
-
1866
-
1867
-
1868
-
1869
- ##### Returns
1870
-
1871
-
1872
- - A new reference of the given argument
1873
-
1874
-
1875
-
1876
-
1877
- ### dist/general/object/omit.js
1878
-
1879
-
1880
- #### omit(obj, props)
1881
-
1882
- return a new Object excluding attributes in _props_ list
1883
-
1884
-
1885
-
1886
-
1887
- ##### Parameters
1888
-
1889
- | Name | Type | Description | |
1890
- | ---- | ---- | ----------- | -------- |
1891
- | obj | `Object` | base object | &nbsp; |
1892
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1893
-
1894
-
1895
-
1896
-
1897
- ##### Returns
1898
-
1899
-
1900
- - `Object` clean object
1901
-
1902
-
1903
-
1904
-
1905
- ### dist/general/object/pick.js
1906
-
1907
-
1908
- #### pick(baseObject, keys)
1909
-
1910
- return a new object just with attributes in _keys_ list
1911
-
1912
-
1913
-
1914
-
1915
- ##### Parameters
1916
-
1917
- | Name | Type | Description | |
1918
- | ---- | ---- | ----------- | -------- |
1919
- | baseObject | `Object` | base object | &nbsp; |
1920
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1921
-
1922
-
1923
-
1924
-
1925
- ##### Returns
1926
-
1927
-
1928
- - `Object` new object just with desired attributes
1929
-
1930
-
1931
-
1932
-
1933
- ### dist/general/object/serialize.js
1934
-
1935
-
1936
- #### serialize(obj)
1937
-
1938
- serialize object to url param
1939
-
1940
-
1941
-
1942
-
1943
- ##### Parameters
1944
-
1945
- | Name | Type | Description | |
1946
- | ---- | ---- | ----------- | -------- |
1947
- | obj | | - Object to be serialized | &nbsp; |
1948
-
1949
-
1950
-
1951
-
1952
- ##### Returns
1953
-
1954
-
1955
- - `Void`
1956
-
1957
-
1958
-
1959
-
1960
- ### dist/general/string/capitalize.js
1961
-
1962
-
1963
- #### capitalize(text)
1964
-
1965
- Upper case the first letter of a given text
1966
-
1967
-
1968
-
1969
-
1970
- ##### Parameters
1971
-
1972
- | Name | Type | Description | |
1973
- | ---- | ---- | ----------- | -------- |
1974
- | text | `String` | | &nbsp; |
1975
-
1976
-
1977
-
1978
-
1979
- ##### Returns
1980
-
1981
-
1982
- - `String` a capitalized text
1983
-
1984
-
1985
-
1986
-
1987
- ### dist/dates/helpers/getDateByDateFormat.js
1988
-
1989
-
1990
- #### getDateByDateFormat(date, format, time)
1991
-
1992
- Gets a Date Object instance by a Date format
1993
-
1994
-
1995
-
1996
-
1997
- ##### Parameters
1998
-
1999
- | Name | Type | Description | |
2000
- | ---- | ---- | ----------- | -------- |
2001
- | date | | String with a formatted date | &nbsp; |
2002
- | format | | The date format | &nbsp; |
2003
- | time | | flag to convert the formatted date to miliseconds | &nbsp; |
2004
-
2005
-
2006
-
2007
-
2008
- ##### Returns
2009
-
2010
-
2011
- - a Date object, milisecond time or the same value if date format does not match.
2012
-
2013
-
2014
-
2015
-
2016
- ### dist/dates/helpers/getDateFormatByProperty.js
2017
-
2018
-
2019
- #### getDateFormatByProperty(property)
2020
-
2021
- Gets the date format by the given property
2022
-
2023
-
2024
-
2025
-
2026
- ##### Parameters
2027
-
2028
- | Name | Type | Description | |
2029
- | ---- | ---- | ----------- | -------- |
2030
- | property | | The Column Property | &nbsp; |
2031
-
2032
-
2033
-
2034
-
2035
- ##### Returns
2036
-
2037
-
2038
- - The date format
2039
-
2040
-
2041
-
2042
-
2043
- ### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
2044
-
2045
-
2046
- #### getDateFormatRegularExpressionInArray(dateFormat)
2047
-
2048
- Gets an array of regular expressions by the given date format
2049
-
2050
-
2051
-
2052
-
2053
- ##### Parameters
2054
-
2055
- | Name | Type | Description | |
2056
- | ---- | ---- | ----------- | -------- |
2057
- | dateFormat | | the date format | &nbsp; |
2058
-
2059
-
2060
-
2061
-
2062
- ##### Returns
2063
-
2064
-
2065
- - an array of regular expressions
2066
-
2067
-
2068
-
2069
-
2070
- ### dist/dates/helpers/getSeparatorByDateFormat.js
2071
-
2072
-
2073
- #### getSeparatorByDateFormat(format)
2074
-
2075
- Gets the separator of the date format
2076
-
2077
-
2078
-
2079
-
2080
- ##### Parameters
2081
-
2082
- | Name | Type | Description | |
2083
- | ---- | ---- | ----------- | -------- |
2084
- | format | | the date format | &nbsp; |
2085
-
2086
-
2087
-
2088
-
2089
- ##### Returns
2090
-
2091
-
2092
- - a separator string
2093
-
2094
-
2095
-
2096
-
2097
- ### dist/dates/helpers/getWeek.js
2098
-
2099
-
2100
- #### getWeek(date)
2101
-
2102
- Gets the week number of the year
2103
- Additionally, the month and the year
2104
-
2105
-
2106
-
2107
-
2108
- ##### Parameters
2109
-
2110
- | Name | Type | Description | |
2111
- | ---- | ---- | ----------- | -------- |
2112
- | date | | the date object | &nbsp; |
2113
-
2114
-
2115
-
2116
-
2117
- ##### Returns
2118
-
2119
-
2120
- - an object with the week, month and year.
2121
-
2122
-
2123
-
2124
-
2125
- ### dist/dates/helpers/validateDate.js
2126
-
2127
-
2128
- #### validateDate(date, format)
2129
-
2130
- Validate a string date depending on giving format
2131
- - If the string is a token label, the function lets it pass.
2132
- - Otherwise depends of the format
2133
- - Some escenarios the string is a mix of token labels and dates
2134
-
2135
-
2136
-
2137
-
2138
- ##### Parameters
2139
-
2140
- | Name | Type | Description | |
2141
- | ---- | ---- | ----------- | -------- |
2142
- | date | | String of date | &nbsp; |
2143
- | format | | String of the format to validate | &nbsp; |
2144
-
2145
-
2146
-
2147
-
2148
- ##### Returns
2149
-
2150
-
2151
- - True if it is valid or not. Undefined if date is undefined
2152
-
2153
-
2154
-
2155
-
2156
- ### dist/dates/helpers/validateDateByDateFormat.js
2157
-
2158
-
2159
- #### validateDateByDateFormat(date, dateForma)
2160
-
2161
- Validates the given string as Date by its date format.
2162
-
2163
-
2164
-
2165
-
2166
- ##### Parameters
2167
-
2168
- | Name | Type | Description | |
2169
- | ---- | ---- | ----------- | -------- |
2170
- | date | | a string to validate as date form | &nbsp; |
2171
- | dateForma | | the format of the date to validate the string | &nbsp; |
2172
-
2173
-
2174
-
2175
-
2176
- ##### Returns
2177
-
2178
-
2179
- - true: the string is a valida date
2180
-
2181
-
2182
-
2183
-
2184
- ### dist/dates/relative/relative.js
2185
-
2186
-
2187
- #### resolveRelative(statements, clock)
2188
-
2189
- Resolve a list of relative statements according to operator
2190
-
2191
-
2192
-
2193
-
2194
- ##### Parameters
2195
-
2196
- | Name | Type | Description | |
2197
- | ---- | ---- | ----------- | -------- |
2198
- | statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | &nbsp; |
2199
- | clock | `Date` | - Clock/time reference for relative date resolution | &nbsp; |
2200
-
2201
-
2202
-
2203
-
2204
- ##### Examples
2205
-
2206
- ```javascript
2207
- Input:
2208
- {
2209
- "cursor": "the_next",
2210
- "unit": "year",
2211
- "number": 1,
2212
- "includeCurrent": false,
2213
- "isCalendarDate": false,
2214
- "anchor": "03/05/2021"
2215
- }
2216
-
2217
- Output:
2218
- { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
2219
- ```
2220
-
2221
-
2222
- ##### Returns
2223
-
2224
-
2225
- - `Array.&lt;AbsoluteRange&gt;` `Array.&lt;string&gt;`
2226
-
2227
-
2228
-
2229
-
2230
- ### dist/dates/relative/Adapter.js
2231
-
2232
-
2233
- #### value()
2234
-
2235
- Resolves statement and returns statement value
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
- ##### Returns
2243
-
2244
-
2245
- - `AbsoluteRange` `string`
2246
-
2247
-
2248
-
2249
- #### valueAsAnchor()
2250
-
2251
- Resolves statement as an anchor
2252
-
2253
-
2254
-
2255
-
2256
-
2257
-
2258
- ##### Returns
2259
-
2260
-
2261
- - `string`
2262
-
2263
-
2264
-
2265
- #### _statementToRange() *private method*
2266
-
2267
- Convert verbal statement to range value
2268
-
2269
-
2270
-
2271
-
2272
-
2273
-
2274
- ##### Returns
2275
-
2276
-
2277
- - `AbsoluteRange`
2278
-
2279
-
2280
-
2281
- #### _resolveAsThis() *private method*
2282
-
2283
- Apply 'this' cursor logic to statement
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
- ##### Returns
2291
-
2292
-
2293
- - `AbsoluteStatement`
2294
-
2295
-
2296
-
2297
- #### _resolveAsTheLast() *private method*
2298
-
2299
- Apply 'the last' cursor logic to statement
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
- ##### Returns
2307
-
2308
-
2309
- - `AbsoluteStatement`
2310
-
2311
-
2312
-
2313
- #### _resolveAsTheNext() *private method*
2314
-
2315
- Apply 'the next' cursor logic to statement
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
- ##### Returns
2323
-
2324
-
2325
- - `AbsoluteStatement`
2326
-
2327
-
2328
-
2329
- #### replaceNowToken(value, now)
2330
-
2331
- Replace '@now' token inside a string
2332
-
2333
-
2334
-
2335
-
2336
- ##### Parameters
2337
-
2338
- | Name | Type | Description | |
2339
- | ---- | ---- | ----------- | -------- |
2340
- | value | `string` | | &nbsp; |
2341
- | now | `Date` | | &nbsp; |
2342
-
2343
-
2344
-
2345
-
2346
- ##### Returns
2347
-
2348
-
2349
- - `string`
2350
-
2351
-
2352
-
2353
- #### convertRelativeToAbsolute(args)
2354
-
2355
- Returns a range object (date) from a group of statement params
2356
-
2357
-
2358
-
2359
-
2360
- ##### Parameters
2361
-
2362
- | Name | Type | Description | |
2363
- | ---- | ---- | ----------- | -------- |
2364
- | args | `RelativeToAbsoluteStruct` | | &nbsp; |
2365
-
2366
-
2367
-
2368
-
2369
- ##### Examples
2370
-
2371
- ```javascript
2372
- pivot = '2021-03-03T12:30:40'
2373
- unit = month
2374
- steps = 2
2375
- setTo = END
2376
- resolverAsCalendar: true
2377
- => Returns '2021-05-31T23:59:59'
2378
- ```
2379
- ```javascript
2380
- pivot = '2021-03-03T12:30:40'
2381
- unit = month
2382
- steps = -2
2383
- setTo = START
2384
- resolverAsCalendar: false
2385
- => Returns '2021-01-03T00:00:00'
2386
- ```
2387
-
2388
-
2389
- ##### Returns
2390
-
2391
-
2392
- - `string`
2393
-
2394
-
2395
-
2396
-
2397
- ### dist/dates/range/getDateRange.js
2398
-
2399
-
2400
- #### getDateRange(value, dateGroupLabel, withTime)
2401
-
2402
- Get date range object from a string date value
2403
-
2404
-
2405
-
2406
-
2407
- ##### Parameters
2408
-
2409
- | Name | Type | Description | |
2410
- | ---- | ---- | ----------- | -------- |
2411
- | value | `String` | string date value | &nbsp; |
2412
- | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | &nbsp; |
2413
- | withTime | `Boolean` | determines if the date range will include time. Default is true | &nbsp; |
2414
-
2415
-
2416
-
2417
-
2418
- ##### Examples
2419
-
2420
- ```javascript
2421
- // 1) Year:
2422
- getDateRange('2020', 'YEAR');
2423
- // Will return:
2424
- {
2425
- from: '01/01/2020 00:00:00',
2426
- to: '12/31/2020 23:59:59'
2427
- }
2428
-
2429
- // 2) Quarter:
2430
- getDateRange('Q3 2020', 'QUARTER');
2431
- // Will return:
2432
- {
2433
- from: '07/01/2020 00:00:00',
2434
- to: '09/30/2020 23:59:59'
2435
- }
2436
-
2437
- // 3) Month:
2438
- getDateRange('Oct 2020', 'MONTH');
2439
- // Will return:
2440
- {
2441
- from: '10/01/2020 00:00:00',
2442
- to: '10/31/2020 23:59:59'
2443
- }
2444
- ```
2445
-
2446
-
2447
- ##### Returns
2448
-
2449
-
2450
- - `Object` an object with the date range with two string date properties: from and to
2451
-
2452
-
2453
-
2454
-
2455
- ### dist/dates/adapters/monthYearToDate.js
2456
-
2457
-
2458
- #### monthYearToDate(monthYearDate, time)
2459
-
2460
- Transforms String Date from a [Month Year] format to Date object.
2461
-
2462
-
2463
-
2464
-
2465
- ##### Parameters
2466
-
2467
- | Name | Type | Description | |
2468
- | ---- | ---- | ----------- | -------- |
2469
- | monthYearDate | | String of [Month Year] date | &nbsp; |
2470
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
2471
-
2472
-
2473
-
2474
-
2475
- ##### Returns
2476
-
2477
-
2478
- - The date object or the date in milliseconds
2479
-
2480
-
2481
-
2482
-
2483
- ### dist/dates/adapters/quarterYearToDate.js
2484
-
2485
-
2486
- #### quarterYearToDate(quarterYearDate, time)
2487
-
2488
- Transforms String Date from a [Quarter Year] format to Date object.
2489
-
2490
-
2491
-
2492
-
2493
- ##### Parameters
2494
-
2495
- | Name | Type | Description | |
2496
- | ---- | ---- | ----------- | -------- |
2497
- | quarterYearDate | | String of [Quarter Year] date | &nbsp; |
2498
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
2499
-
2500
-
2501
-
2502
-
2503
- ##### Returns
2504
-
2505
-
2506
- - The date object or the date in milliseconds
2507
-
2508
-
2509
-
2510
-
2511
- ### dist/dates/adapters/weekYearToDate.js
2512
-
2513
-
2514
- #### weekYearToDate(date, time)
2515
-
2516
- Transforms String Date from a [Week Year] format to Date object.
2517
-
2518
-
2519
-
2520
-
2521
- ##### Parameters
2522
-
2523
- | Name | Type | Description | |
2524
- | ---- | ---- | ----------- | -------- |
2525
- | date | | String of [Week Year] date | &nbsp; |
2526
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
2527
-
2528
-
2529
-
2530
-
2531
- ##### Returns
2532
-
2533
-
2534
- - The date object or the date in milliseconds
2535
-
2536
-
2537
-
2538
-
2539
- ### dist/dates/adapters/mdyDateToDate.js
2540
-
2541
-
2542
- #### mdyDateToDate(monthYearDate, time)
2543
-
2544
- Transforms String Date from a [mm/dd/yyyy] format to Date object.
2545
-
2546
-
2547
-
2548
-
2549
- ##### Parameters
2550
-
2551
- | Name | Type | Description | |
2552
- | ---- | ---- | ----------- | -------- |
2553
- | monthYearDate | | String of [mm/dd/yyyy] date | &nbsp; |
2554
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
2555
-
2556
-
2557
-
2558
-
2559
- ##### Returns
2560
-
2561
-
2562
- - The date object or the date in milliseconds
2563
-
2564
-
2565
-
2566
-
2567
- ### dist/dates/adapters/yearToDate.js
2568
-
2569
-
2570
- #### yearToDate(yearDate, time)
2571
-
2572
- Transforms String Date from a [Year] format to Date object.
2573
-
2574
-
2575
-
2576
-
2577
- ##### Parameters
2578
-
2579
- | Name | Type | Description | |
2580
- | ---- | ---- | ----------- | -------- |
2581
- | yearDate | | String of [Year] date | &nbsp; |
2582
- | time | | Flag to parse the object date to milliseconds. | &nbsp; |
2583
-
2584
-
2585
-
2586
-
2587
- ##### Returns
2588
-
2589
-
2590
- - The date object or the date in milliseconds
2591
-
2592
-
2593
-
2594
-
2595
- ### dist/qrvey/helpers/getColumnsLabel.js
2596
-
2597
-
2598
- #### getColumnLabels(column)
2599
-
2600
- Get an string of the properties of the given column.
2601
-
2602
-
2603
-
2604
-
2605
- ##### Parameters
2606
-
2607
- | Name | Type | Description | |
2608
- | ---- | ---- | ----------- | -------- |
2609
- | column | | The column | &nbsp; |
2610
-
2611
-
2612
-
2613
-
2614
- ##### Returns
2615
-
2616
-
2617
- - an string with the property, aggregate or calculation label.
2618
-
2619
-
2620
-
2621
-
2622
- ### dist/services/api/getAllDatasets.api.js
2623
-
2624
-
2625
- #### getAllDatasets(qrveyids)
2626
-
2627
- Get a dataset list from a collection of Qrvey IDs
2628
-
2629
-
2630
-
2631
-
2632
- ##### Parameters
2633
-
2634
- | Name | Type | Description | |
2635
- | ---- | ---- | ----------- | -------- |
2636
- | qrveyids | | Collection of Qrvey IDs | &nbsp; |
2637
-
2638
-
2639
-
2640
-
2641
- ##### Returns
2642
-
2643
-
2644
- - a promise
2645
-
2646
-
2647
-
2648
-
2649
- ### dist/services/api/getAllQrveys.api.js
2650
-
2651
-
2652
- #### getAllQrveys(config, params)
2653
-
2654
- POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
2655
-
2656
-
2657
-
2658
-
2659
- ##### Parameters
2660
-
2661
- | Name | Type | Description | |
2662
- | ---- | ---- | ----------- | -------- |
2663
- | config | | Configuration | &nbsp; |
2664
- | params | | Object for getting precise data | &nbsp; |
2665
-
2666
-
2667
-
2668
-
2669
- ##### Returns
2670
-
2671
-
2672
- - `Void`
2673
-
2674
-
2675
-
2676
-
2677
- ### dist/services/api/getDatasetColumns.api.js
2678
-
2679
-
2680
- #### getDatasetColumns(qrveyid)
2681
-
2682
- Get a dataset by Qrvey ID
2683
-
2684
-
2685
-
2686
-
2687
- ##### Parameters
2688
-
2689
- | Name | Type | Description | |
2690
- | ---- | ---- | ----------- | -------- |
2691
- | qrveyid | | The Qrvey ID | &nbsp; |
2692
-
2693
-
2694
-
2695
-
2696
- ##### Returns
2697
-
2698
-
2699
- - a promise
2700
-
2701
-
2702
-
2703
-
2704
- ### dist/stencil/util/createRef.js
2705
-
2706
-
2707
- #### createRef()
2708
-
2709
- lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
2710
-
2711
-
2712
-
2713
-
2714
-
2715
-
2716
- ##### Returns
2717
-
2718
-
2719
- - function - Function to use in ref prop in html elements
2720
-
2721
-
2722
-
2723
-
2724
- ### dist/stencil/util/getConfig.js
2725
-
2726
-
2727
- #### getConfig(cfg)
2728
-
2729
- verify the Config object type and try to return a parsed Object
2730
- - In case _cfg_ is a string, first try to make a JSON parse in other case
2731
- try to find this string as a variable on Windows object
2732
- - If _cfg_ is a fuction, tis is invoked and parsed
2733
- - Finally, if is an object, _cfg_ is inmediatly returned
2734
-
2735
-
2736
-
2737
-
2738
- ##### Parameters
2739
-
2740
- | Name | Type | Description | |
2741
- | ---- | ---- | ----------- | -------- |
2742
- | cfg | | | &nbsp; |
2743
-
2744
-
2745
-
2746
-
2747
- ##### Returns
2748
-
2749
-
2750
- - `Void`
2751
-
2752
-
2753
-
2754
-
2755
- ### dist/stencil/decorators/Config.js
2756
-
2757
-
2758
- #### Config()
2759
-
2760
- Stencil.js - Prop Decorator
2761
- Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
2762
- But for this, is required ask for a property in `snake_case` style
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
- ##### Examples
2770
-
2771
- ```javascript
2772
- \ @Config() @Prop() settings;
2773
-
2774
- someMethod() {
2775
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2776
- }
2777
- ```
2778
-
2779
-
2780
- ##### Returns
2781
-
2782
-
2783
- - `Void`
2784
-
2785
-
2786
-
2787
-
2788
- ### dist/typescript/decorators/Debounce.js
2789
-
2790
-
2791
- #### Debounce(time)
2792
-
2793
- (Method Decorator) Debounce Class Method
2794
-
2795
-
2796
-
2797
-
2798
- ##### Parameters
2799
-
2800
- | Name | Type | Description | |
2801
- | ---- | ---- | ----------- | -------- |
2802
- | time | | (optional) deafult 500 | &nbsp; |
2803
-
2804
-
2805
-
2806
-
2807
- ##### Returns
2808
-
2809
-
2810
- - `Void`
2811
-
2812
-
2813
-
2814
-
2815
- ### dist/typescript/decorators/Throttled.js
2816
-
2817
-
2818
- #### Throttled(time)
2819
-
2820
- (Method Decorator) Throttled Class Method
2821
-
2822
-
2823
-
2824
-
2825
- ##### Parameters
2826
-
2827
- | Name | Type | Description | |
2828
- | ---- | ---- | ----------- | -------- |
2829
- | time | | (optional) deafult 500 | &nbsp; |
2830
-
2831
-
2832
-
2833
-
2834
- ##### Returns
2835
-
2836
-
2837
- - `Void`
2838
-
2839
-
2840
-
2841
-
2842
- ### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
2843
-
2844
-
2845
- #### getFilterBuilderGeneralConfig(config)
2846
-
2847
- Returns a filter builder config object by a any given config
2848
-
2849
-
2850
-
2851
-
2852
- ##### Parameters
2853
-
2854
- | Name | Type | Description | |
2855
- | ---- | ---- | ----------- | -------- |
2856
- | config | | any config object | &nbsp; |
2857
-
2858
-
2859
-
2860
-
2861
- ##### Returns
2862
-
2863
-
2864
- - The filter builder config object
2865
-
2866
-
2867
-
2868
-
2869
- ### dist/filters/helpers/backend/buildExpression.js
2870
-
2871
-
2872
- #### buildExpression(filter)
2873
-
2874
- Builds filter expression by the filter data.
2875
- - If the resulting value array is empty the enabled property will be false.
2876
-
2877
-
2878
-
2879
-
2880
- ##### Parameters
2881
-
2882
- | Name | Type | Description | |
2883
- | ---- | ---- | ----------- | -------- |
2884
- | filter | | The filter to transform | &nbsp; |
2885
-
2886
-
2887
-
2888
-
2889
- ##### Returns
2890
-
2891
-
2892
- - a filter expression
2893
-
2894
-
2895
-
2896
-
2897
- ### dist/filters/helpers/backend/buildUserFilters.js
2898
-
2899
-
2900
- #### buildUserFilters(userFilters)
2901
-
2902
- Transform user Filters array into Filter Logic structure
2903
-
2904
-
2905
-
2906
-
2907
- ##### Parameters
2908
-
2909
- | Name | Type | Description | |
2910
- | ---- | ---- | ----------- | -------- |
2911
- | userFilters | | The filters that the user defined. | &nbsp; |
2912
-
2913
-
2914
-
2915
-
2916
- ##### Returns
2917
-
2918
-
2919
- - The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
2920
-
2921
-
2922
-
2923
-
2924
- ### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
2925
-
2926
-
2927
- #### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
2928
-
2929
-
2930
-
2931
-
2932
-
2933
-
2934
- ##### Parameters
2935
-
2936
- | Name | Type | Description | |
2937
- | ---- | ---- | ----------- | -------- |
2938
- | aggFilters | | | &nbsp; |
2939
- | summaryIndex | | | &nbsp; |
2940
-
2941
-
2942
-
2943
-
2944
- ##### Returns
2945
-
2946
-
2947
- -
2948
-
2949
-
2950
-
2951
-
2952
- ### dist/filters/helpers/backend/getBackendGroupValue.js
2953
-
2954
-
2955
- #### getBackendGroupValue(filter)
2956
-
2957
- Gets a group value for the backend logic structure
2958
-
2959
-
2960
-
2961
-
2962
- ##### Parameters
2963
-
2964
- | Name | Type | Description | |
2965
- | ---- | ---- | ----------- | -------- |
2966
- | filter | | The filter | &nbsp; |
2967
-
2968
-
2969
-
2970
-
2971
- ##### Returns
2972
-
2973
-
2974
- - a property
2975
-
2976
-
2977
-
2978
-
2979
- ### dist/filters/helpers/backend/getBackendProperty.js
2980
-
2981
-
2982
- #### getBackendProperty(filter)
2983
-
2984
- Gets a property for the logic structure
2985
-
2986
-
2987
-
2988
-
2989
- ##### Parameters
2990
-
2991
- | Name | Type | Description | |
2992
- | ---- | ---- | ----------- | -------- |
2993
- | filter | | The filter | &nbsp; |
2994
-
2995
-
2996
-
2997
-
2998
- ##### Returns
2999
-
3000
-
3001
- - a property
3002
-
3003
-
3004
-
3005
-
3006
- ### dist/filters/helpers/backend/getBackendValidator.js
3007
-
3008
-
3009
- #### getBackendValidator(validator)
3010
-
3011
- Gets the Validator that is used in requests
3012
-
3013
-
3014
-
3015
-
3016
- ##### Parameters
3017
-
3018
- | Name | Type | Description | |
3019
- | ---- | ---- | ----------- | -------- |
3020
- | validator | | Filter Validator used in UI | &nbsp; |
3021
-
3022
-
3023
-
3024
-
3025
- ##### Returns
3026
-
3027
-
3028
- - Filter Validator used in Backend
3029
-
3030
-
3031
-
3032
-
3033
- ### dist/filters/helpers/backend/getBackendValues.js
3034
-
3035
-
3036
- #### getBackendValues(filter)
3037
-
3038
- Gets the expresion values in the logic format
3039
-
3040
-
3041
-
3042
-
3043
- ##### Parameters
3044
-
3045
- | Name | Type | Description | |
3046
- | ---- | ---- | ----------- | -------- |
3047
- | filter | | The filter structure | &nbsp; |
3048
-
3049
-
3050
-
3051
-
3052
- ##### Returns
3053
-
3054
-
3055
- - A collection of backend expression value
3056
-
3057
-
3058
-
3059
- #### getResultValues(values, filter)
3060
-
3061
- Gets the expression values. Depending on the column type
3062
-
3063
-
3064
-
3065
-
3066
- ##### Parameters
3067
-
3068
- | Name | Type | Description | |
3069
- | ---- | ---- | ----------- | -------- |
3070
- | values | | a collection of filter values | &nbsp; |
3071
- | filter | | The filter structure | &nbsp; |
3072
-
3073
-
3074
-
3075
-
3076
- ##### Returns
3077
-
3078
-
3079
- -
3080
-
3081
-
3082
-
3083
- #### getRankingValues(values, rankingGroupIndex)
3084
-
3085
- Gets the Ranking values.
3086
-
3087
-
3088
-
3089
-
3090
- ##### Parameters
3091
-
3092
- | Name | Type | Description | |
3093
- | ---- | ---- | ----------- | -------- |
3094
- | values | | a collection of filter values in the ranking structure | &nbsp; |
3095
- | rankingGroupIndex | | determine the value by this index to build and return it | &nbsp; |
3096
-
3097
-
3098
-
3099
-
3100
- ##### Returns
3101
-
3102
-
3103
- - Expression values for ranking
3104
-
3105
-
3106
-
3107
-
3108
- ### dist/filters/helpers/backend/getLogicByScopes.js
3109
-
3110
-
3111
- #### getLogicByScopes(logics, scopes)
3112
-
3113
- Gets the filters from logic data by Scopes/Scope IDs.
3114
-
3115
-
3116
-
3117
-
3118
- ##### Parameters
3119
-
3120
- | Name | Type | Description | |
3121
- | ---- | ---- | ----------- | -------- |
3122
- | logics | | The logic array | &nbsp; |
3123
- | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
3124
-
3125
-
3126
-
3127
-
3128
- ##### Returns
3129
-
3130
-
3131
- - a new Logic array
3132
-
3133
-
3134
-
3135
-
3136
- ### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
3137
-
3138
-
3139
- #### getLogicByScopesHierarchy(filterData, scopes, currentScope)
3140
-
3141
- Gets filters from the logic by the scopes hierarchy.
3142
-
3143
-
3144
-
3145
-
3146
- ##### Parameters
3147
-
3148
- | Name | Type | Description | |
3149
- | ---- | ---- | ----------- | -------- |
3150
- | filterData | | | &nbsp; |
3151
- | scopes | | | &nbsp; |
3152
- | currentScope | | | &nbsp; |
3153
-
3154
-
3155
-
3156
-
3157
- ##### Returns
3158
-
3159
-
3160
- - a new array of Logic
3161
-
3162
-
3163
-
3164
-
3165
- ### dist/filters/helpers/common/areFiltersEquals.js
3166
-
3167
-
3168
- #### areFiltersEquals(filter1, filter2)
3169
-
3170
- Validates if both filters are the same
3171
-
3172
-
3173
-
3174
-
3175
- ##### Parameters
3176
-
3177
- | Name | Type | Description | |
3178
- | ---- | ---- | ----------- | -------- |
3179
- | filter1 | | filter 1 | &nbsp; |
3180
- | filter2 | | filter 2 | &nbsp; |
3181
-
3182
-
3183
-
3184
-
3185
- ##### Returns
3186
-
3187
-
3188
- - true: the filters are equal; false: the filters are NOT equal
3189
-
3190
-
3191
-
3192
-
3193
- ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
3194
-
3195
-
3196
- #### excludeFiltersByAggregateColumn(filterData)
3197
-
3198
- Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
3199
-
3200
-
3201
-
3202
-
3203
- ##### Parameters
3204
-
3205
- | Name | Type | Description | |
3206
- | ---- | ---- | ----------- | -------- |
3207
- | filterData | | The filter data object | &nbsp; |
3208
-
3209
-
3210
-
3211
-
3212
- ##### Returns
3213
-
3214
-
3215
- - The new filter data object that were excluded the aggregate filters
3216
-
3217
-
3218
-
3219
-
3220
- ### dist/filters/helpers/common/excludeFiltersByParams.js
3221
-
3222
-
3223
- #### excludeFiltersByParams(filterData, params)
3224
-
3225
- Excludes filters from the given Filters.
3226
- The validation to filter the stored filter is depending on:
3227
- - Column
3228
- - Qrvey ID
3229
- - Scope type
3230
- - Scope ID
3231
- - Panel ID
3232
- - Validator type
3233
- - Property type
3234
- - Enabled flags
3235
-
3236
-
3237
-
3238
-
3239
- ##### Parameters
3240
-
3241
- | Name | Type | Description | |
3242
- | ---- | ---- | ----------- | -------- |
3243
- | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
3244
- | params | | given parameters to validate the filter data | &nbsp; |
3245
-
3246
-
3247
-
3248
-
3249
- ##### Returns
3250
-
3251
-
3252
- - a new Filter object structure
3253
-
3254
-
3255
-
3256
-
3257
- ### dist/filters/helpers/common/excludeFiltersByScopes.js
3258
-
3259
-
3260
- #### excludeFiltersByScopes(filterData, scopes)
3261
-
3262
- Excludes and returns a filter data without filters by the given scopes
3263
-
3264
-
3265
-
3266
-
3267
- ##### Parameters
3268
-
3269
- | Name | Type | Description | |
3270
- | ---- | ---- | ----------- | -------- |
3271
- | filterData | | The Filter Data | &nbsp; |
3272
- | scopes | | collection of scopes to be as filtering parameters | &nbsp; |
3273
-
3274
-
3275
-
3276
-
3277
- ##### Returns
3278
-
3279
-
3280
- - The new Filter Data without filters by the given scopes.
3281
-
3282
-
3283
-
3284
-
3285
- ### dist/filters/helpers/common/getFilterColumnLabel.js
3286
-
3287
-
3288
- #### getFilterColumnLabel(column)
3289
-
3290
- Get an string of the properties of the given filter column.
3291
-
3292
-
3293
-
3294
-
3295
- ##### Parameters
3296
-
3297
- | Name | Type | Description | |
3298
- | ---- | ---- | ----------- | -------- |
3299
- | column | | The filter column | &nbsp; |
3300
-
3301
-
3302
-
3303
-
3304
- ##### Returns
3305
-
3306
-
3307
- - an string with the property, aggregate or calculation label.
3308
-
3309
-
3310
-
3311
-
3312
- ### dist/filters/helpers/common/getFilterLabel.js
3313
-
3314
-
3315
- #### getFilterLabel(filter)
3316
-
3317
- Gets the Filter Label + Column label
3318
-
3319
-
3320
-
3321
-
3322
- ##### Parameters
3323
-
3324
- | Name | Type | Description | |
3325
- | ---- | ---- | ----------- | -------- |
3326
- | filter | | the UI filter | &nbsp; |
3327
-
3328
-
3329
-
3330
-
3331
- ##### Returns
3332
-
3333
-
3334
- - a sring label
3335
-
3336
-
3337
-
3338
-
3339
- ### dist/filters/helpers/common/getFilterid.js
3340
-
3341
-
3342
- #### getFilterid(filter)
3343
-
3344
- Get the Filter ID by the filter structure
3345
- The order of the epression ID is:
3346
- - Scope Type
3347
- - scopeid
3348
- - qrveyid
3349
- - panelid
3350
- - columnid
3351
- - validator
3352
- - property
3353
- - Column Aggregate
3354
- - Column Calculation
3355
- - Optional Index
3356
-
3357
-
3358
-
3359
-
3360
- ##### Parameters
3361
-
3362
- | Name | Type | Description | |
3363
- | ---- | ---- | ----------- | -------- |
3364
- | filter | | the filter structure | &nbsp; |
3365
-
3366
-
3367
-
3368
-
3369
- ##### Returns
3370
-
3371
-
3372
- - a text to identify the filter
3373
-
3374
-
3375
-
3376
-
3377
- ### dist/filters/helpers/common/getFiltersByAggregateColumn.js
3378
-
3379
-
3380
- #### getFiltersByAggregateColumn(filterData)
3381
-
3382
- Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
3383
-
3384
-
3385
-
3386
-
3387
- ##### Parameters
3388
-
3389
- | Name | Type | Description | |
3390
- | ---- | ---- | ----------- | -------- |
3391
- | filterData | | The filter data object | &nbsp; |
3392
-
3393
-
3394
-
3395
-
3396
- ##### Returns
3397
-
3398
-
3399
- - The new filter data object that were get the aggregate filters
3400
-
3401
-
3402
-
3403
-
3404
- ### dist/filters/helpers/common/getFiltersByParams.js
3405
-
3406
-
3407
- #### getFiltersByParams(filterData, params)
3408
-
3409
- Gets filters from the given params.
3410
- The validation to filter the stored filter is depending on:
3411
- - Column
3412
- - Qrvey ID
3413
- - Scope type
3414
- - Scope ID
3415
- - Panel ID
3416
- - Validator type
3417
- - Property type
3418
- - Enabled flags
3419
-
3420
-
3421
-
3422
-
3423
- ##### Parameters
3424
-
3425
- | Name | Type | Description | |
3426
- | ---- | ---- | ----------- | -------- |
3427
- | filterData | | The Filter Data or the UI Filter Data | &nbsp; |
3428
- | params | | given parameters to validate the dataset | &nbsp; |
3429
-
3430
-
3431
-
3432
-
3433
- ##### Returns
3434
-
3435
-
3436
- - a new Filter object structure
3437
-
3438
-
3439
-
3440
-
3441
- ### dist/filters/helpers/common/getFiltersByScopes.js
3442
-
3443
-
3444
- #### getFiltersByScopes(filterData, scopes)
3445
-
3446
- Filters and gets a Filter Data by the given scopes
3447
-
3448
-
3449
-
3450
-
3451
- ##### Parameters
3452
-
3453
- | Name | Type | Description | |
3454
- | ---- | ---- | ----------- | -------- |
3455
- | filterData | | The Filter Data | &nbsp; |
3456
- | scopes | | collection of scopes types | &nbsp; |
3457
-
3458
-
3459
-
3460
-
3461
- ##### Returns
3462
-
3463
-
3464
- - The new Filter Data
3465
-
3466
-
3467
-
3468
-
3469
- ### dist/filters/helpers/common/getFiltersByScopesIds.js
3470
-
3471
-
3472
- #### getFiltersByScopesIds(filterData, scopes)
3473
-
3474
- Gets filters from Filter Data by Scopes/Scope IDs.
3475
-
3476
-
3477
-
3478
-
3479
- ##### Parameters
3480
-
3481
- | Name | Type | Description | |
3482
- | ---- | ---- | ----------- | -------- |
3483
- | filterData | | The filter data | &nbsp; |
3484
- | scopes | | The collection of Scopes/Scope IDs | &nbsp; |
3485
-
3486
-
3487
-
3488
-
3489
- ##### Returns
3490
-
3491
-
3492
- - a new Filter Data
3493
-
3494
-
3495
-
3496
-
3497
- ### dist/filters/helpers/common/getFiltersByVisibility.js
3498
-
3499
-
3500
- #### getFiltersByVisibility(filterData, scopes)
3501
-
3502
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
3503
-
3504
-
3505
-
3506
-
3507
- ##### Parameters
3508
-
3509
- | Name | Type | Description | |
3510
- | ---- | ---- | ----------- | -------- |
3511
- | filterData | | a Filter Data or UI Filter Data | &nbsp; |
3512
- | scopes | | a Scopes/Scope IDs array | &nbsp; |
3513
-
3514
-
3515
-
3516
-
3517
- ##### Returns
3518
-
3519
-
3520
- - a new Filter Data
3521
-
3522
-
3523
-
3524
-
3525
- ### dist/filters/helpers/common/getMergeFiltersSettings.js
3526
-
3527
-
3528
- #### getMergeFiltersSettings(settings)
3529
-
3530
- Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
3531
-
3532
-
3533
-
3534
-
3535
- ##### Parameters
3536
-
3537
- | Name | Type | Description | |
3538
- | ---- | ---- | ----------- | -------- |
3539
- | settings | | an object to the MergeFilters settings | &nbsp; |
3540
-
3541
-
3542
-
3543
-
3544
- ##### Returns
3545
-
3546
-
3547
- - a new MergeFilters settings object.
3548
-
3549
-
3550
-
3551
-
3552
- ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
3553
-
3554
-
3555
- #### getParamsToGetFilterSettings(settings)
3556
-
3557
- Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
3558
-
3559
-
3560
-
3561
-
3562
- ##### Parameters
3563
-
3564
- | Name | Type | Description | |
3565
- | ---- | ---- | ----------- | -------- |
3566
- | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
3567
-
3568
-
3569
-
3570
-
3571
- ##### Returns
3572
-
3573
-
3574
- - a new ParamsToGetFilter settings object.
3575
-
3576
-
3577
-
3578
-
3579
- ### dist/filters/helpers/common/haveFiltersByDataset.js
3580
-
3581
-
3582
- #### haveFiltersByDataset(filterData, qrveyid)
3583
-
3584
- Validates if the filter data has filters by a dataset ID (Qrvey ID).
3585
-
3586
-
3587
-
3588
-
3589
- ##### Parameters
3590
-
3591
- | Name | Type | Description | |
3592
- | ---- | ---- | ----------- | -------- |
3593
- | filterData | | the filter data or the UI filter data. | &nbsp; |
3594
- | qrveyid | | The Qrvey ID | &nbsp; |
3595
-
3596
-
3597
-
3598
-
3599
- ##### Returns
3600
-
3601
-
3602
- - true: the filter data has filters by the Qrvey ID
3603
-
3604
-
3605
-
3606
-
3607
- ### dist/filters/helpers/common/isBetweenValidator.js
3608
-
3609
-
3610
- #### isBetweenValidator(validator)
3611
-
3612
- Validates if the given validator is a Between type
3613
-
3614
-
3615
-
3616
-
3617
- ##### Parameters
3618
-
3619
- | Name | Type | Description | |
3620
- | ---- | ---- | ----------- | -------- |
3621
- | validator | | The validator | &nbsp; |
3622
-
3623
-
3624
-
3625
-
3626
- ##### Returns
3627
-
3628
-
3629
- - true: it is a between validator; false: it is not a between validator
3630
-
3631
-
3632
-
3633
-
3634
- ### dist/filters/helpers/common/isDateDistinctProperty.js
3635
-
3636
-
3637
- #### isDateDistinctProperty(column, property)
3638
-
3639
- Determines if the filter column and property is a distinct group dates type
3640
-
3641
-
3642
-
3643
-
3644
- ##### Parameters
3645
-
3646
- | Name | Type | Description | |
3647
- | ---- | ---- | ----------- | -------- |
3648
- | column | | The filter column | &nbsp; |
3649
- | property | | The filter property | &nbsp; |
3650
-
3651
-
3652
-
3653
-
3654
- ##### Returns
3655
-
3656
-
3657
- - True if the given property is included from distinct group dates type
3658
-
3659
-
3660
-
3661
-
3662
- ### dist/filters/helpers/common/isInValidator.js
3663
-
3664
-
3665
- #### isInValidator(validator)
3666
-
3667
- Validates if the given validator is a In type
3668
-
3669
-
3670
-
3671
-
3672
- ##### Parameters
3673
-
3674
- | Name | Type | Description | |
3675
- | ---- | ---- | ----------- | -------- |
3676
- | validator | | The validator | &nbsp; |
3677
-
3678
-
3679
-
3680
-
3681
- ##### Returns
3682
-
3683
-
3684
- - true: it is a In validator; false: it is not a In validator
3685
-
3686
-
3687
-
3688
-
3689
- ### dist/filters/helpers/common/isNullValidator.js
3690
-
3691
-
3692
- #### isNullValidator(validator)
3693
-
3694
- Checks if the given validator is a Null type.
3695
-
3696
-
3697
-
3698
-
3699
- ##### Parameters
3700
-
3701
- | Name | Type | Description | |
3702
- | ---- | ---- | ----------- | -------- |
3703
- | validator | | The Filter Validator | &nbsp; |
3704
-
3705
-
3706
-
3707
-
3708
- ##### Returns
3709
-
3710
-
3711
- - True: It is a Null Validator; False: It is not a Null Validator.
3712
-
3713
-
3714
-
3715
-
3716
- ### dist/filters/helpers/common/isRangeValidator.js
3717
-
3718
-
3719
- #### isRangeValidator(validator)
3720
-
3721
- Validates if the given validator is a Range type. Range type means the value has min and max values to filter
3722
-
3723
-
3724
-
3725
-
3726
- ##### Parameters
3727
-
3728
- | Name | Type | Description | |
3729
- | ---- | ---- | ----------- | -------- |
3730
- | validator | | The filter validator | &nbsp; |
3731
-
3732
-
3733
-
3734
-
3735
- ##### Returns
3736
-
3737
-
3738
- - true: it is a range validator
3739
-
3740
-
3741
-
3742
-
3743
- ### dist/filters/helpers/common/isRegularValidator.js
3744
-
3745
-
3746
- #### isRegularValidator(validator)
3747
-
3748
- Validates if the given validator is a regular type. Regular type means the filter object has a value as string to filter
3749
-
3750
-
3751
-
3752
-
3753
- ##### Parameters
3754
-
3755
- | Name | Type | Description | |
3756
- | ---- | ---- | ----------- | -------- |
3757
- | validator | | The filter validator | &nbsp; |
3758
-
3759
-
3760
-
3761
-
3762
- ##### Returns
3763
-
3764
-
3765
- - true: it is a range validator
3766
-
3767
-
3768
-
3769
-
3770
- ### dist/filters/helpers/common/mergeFilters.js
3771
-
3772
-
3773
- #### mergeFilters(filterData1, filterData2, overwriteValues)
3774
-
3775
- Merge filter data structures in a new one. The first Filter Data passed in the argument has the priority
3776
-
3777
-
3778
-
3779
-
3780
- ##### Parameters
3781
-
3782
- | Name | Type | Description | |
3783
- | ---- | ---- | ----------- | -------- |
3784
- | filterData1 | | The target filter data | &nbsp; |
3785
- | filterData2 | | the filter data to be merged | &nbsp; |
3786
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3787
-
3788
-
3789
-
3790
-
3791
- ##### Returns
3792
-
3793
-
3794
- - a new filter data structure
3795
-
3796
-
3797
-
3798
- #### mergeScopes(scopes1, scopes2, overwriteValues)
3799
-
3800
- Gets a new scope structure array by merging two scope structures
3801
-
3802
-
3803
-
3804
-
3805
- ##### Parameters
3806
-
3807
- | Name | Type | Description | |
3808
- | ---- | ---- | ----------- | -------- |
3809
- | scopes1 | | the target scope structure | &nbsp; |
3810
- | scopes2 | | the scope to be merged | &nbsp; |
3811
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3812
-
3813
-
3814
-
3815
-
3816
- ##### Returns
3817
-
3818
-
3819
- - a new scope structure array
3820
-
3821
-
3822
-
3823
- #### mergeDatasets(datasets1, datasets2, overwriteValues)
3824
-
3825
- Gets a new dataset structure array by merging two dataset structures
3826
-
3827
-
3828
-
3829
-
3830
- ##### Parameters
3831
-
3832
- | Name | Type | Description | |
3833
- | ---- | ---- | ----------- | -------- |
3834
- | datasets1 | | the target dataset structure | &nbsp; |
3835
- | datasets2 | | the dataset to be merged | &nbsp; |
3836
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3837
-
3838
-
3839
-
3840
-
3841
- ##### Returns
3842
-
3843
-
3844
- - a new dataset structure array
3845
-
3846
-
3847
-
3848
- #### mergeFilterss(filters1, filters2, overwriteValues)
3849
-
3850
- Gets a new filter structure array by merging two filter structures
3851
-
3852
-
3853
-
3854
-
3855
- ##### Parameters
3856
-
3857
- | Name | Type | Description | |
3858
- | ---- | ---- | ----------- | -------- |
3859
- | filters1 | | the target filter structure | &nbsp; |
3860
- | filters2 | | the filter to be merged | &nbsp; |
3861
- | overwriteValues | | Flag to overwrite or not the filter values | &nbsp; |
3862
-
3863
-
3864
-
3865
-
3866
- ##### Returns
3867
-
3868
-
3869
- - a new filter structure array
3870
-
3871
-
3872
-
3873
- #### mergeValues(filter1, filter2, overwrite)
3874
-
3875
- Gets a new value structure array by merging two value structures
3876
-
3877
-
3878
-
3879
-
3880
- ##### Parameters
3881
-
3882
- | Name | Type | Description | |
3883
- | ---- | ---- | ----------- | -------- |
3884
- | filter1 | | the target filter structure | &nbsp; |
3885
- | filter2 | | the filter to be used to merge the values | &nbsp; |
3886
- | overwrite | | Flag to overwrite or not the filter values | &nbsp; |
3887
-
3888
-
3889
-
3890
-
3891
- ##### Returns
3892
-
3893
-
3894
- - a new value structure array
3895
-
3896
-
3897
-
3898
-
3899
- ### dist/filters/helpers/common/resolveDatasetConditions.js
3900
-
3901
-
3902
- #### resolveDatasetConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3903
-
3904
- Resolves the conditions by given params
3905
-
3906
-
3907
-
3908
-
3909
- ##### Parameters
3910
-
3911
- | Name | Type | Description | |
3912
- | ---- | ---- | ----------- | -------- |
3913
- | filter | | The dataset structure | &nbsp; |
3914
- | params | | given parameters to validate the dataset | &nbsp; |
3915
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
3916
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
3917
-
3918
-
3919
-
3920
-
3921
- ##### Returns
3922
-
3923
-
3924
- - true: the condition is satisfied
3925
-
3926
-
3927
-
3928
-
3929
- ### dist/filters/helpers/common/resolveFilterConditions.js
3930
-
3931
-
3932
- #### resolveFilterConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3933
-
3934
- Resolves the conditions by given params
3935
-
3936
-
3937
-
3938
-
3939
- ##### Parameters
3940
-
3941
- | Name | Type | Description | |
3942
- | ---- | ---- | ----------- | -------- |
3943
- | filter | | The filter | &nbsp; |
3944
- | params | | given parameters to validate the filter | &nbsp; |
3945
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
3946
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
3947
-
3948
-
3949
-
3950
-
3951
- ##### Returns
3952
-
3953
-
3954
- - true: the condition is satisfied
3955
-
3956
-
3957
-
3958
-
3959
- ### dist/filters/helpers/common/resolveScopeConditions.js
3960
-
3961
-
3962
- #### resolveScopeConditions(filter, params, letPassUndefinedProperties, letPassUndefinedParams)
3963
-
3964
- Resolves the conditions by given params
3965
-
3966
-
3967
-
3968
-
3969
- ##### Parameters
3970
-
3971
- | Name | Type | Description | |
3972
- | ---- | ---- | ----------- | -------- |
3973
- | filter | | The filter scope structure | &nbsp; |
3974
- | params | | given parameters to validate the filter | &nbsp; |
3975
- | letPassUndefinedProperties | | Flag to avoid applying the condition when the filter properties are undefined | &nbsp; |
3976
- | letPassUndefinedParams | | Flag to avoid applying the condition when the param properties are explicit undefined. | &nbsp; |
3977
-
3978
-
3979
-
3980
-
3981
- ##### Returns
3982
-
3983
-
3984
- - true: the condition is satisfied
3985
-
3986
-
3987
-
3988
-
3989
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
3990
-
3991
-
3992
- #### excludeUIFiltersByAggregate(uFilters)
3993
-
3994
- Excludes Aggregate Filters in the Flattened UI Filters array
3995
-
3996
-
3997
-
3998
-
3999
- ##### Parameters
4000
-
4001
- | Name | Type | Description | |
4002
- | ---- | ---- | ----------- | -------- |
4003
- | uFilters | | Collection of Flat UI Filters | &nbsp; |
4004
-
4005
-
4006
-
4007
-
4008
- ##### Returns
4009
-
4010
-
4011
- - a new Flat UI Filters that were excluded the aggregate filters
4012
-
4013
-
4014
-
4015
-
4016
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
4017
-
4018
-
4019
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
4020
-
4021
- Excludes and returns a UI Flat Filters without filters by the given scopes
4022
-
4023
-
4024
-
4025
-
4026
- ##### Parameters
4027
-
4028
- | Name | Type | Description | |
4029
- | ---- | ---- | ----------- | -------- |
4030
- | uFilters | | The Flatten UI Filters | &nbsp; |
4031
- | scopes | | collection of scopes types | &nbsp; |
4032
-
4033
-
4034
-
4035
-
4036
- ##### Returns
4037
-
4038
-
4039
- - The new array of UI Flattened filters
4040
-
4041
-
4042
-
4043
-
4044
- ### dist/filters/helpers/ui/getFilterPropertyLabel.js
4045
-
4046
-
4047
- #### getFilterPropertyLabel(filter)
4048
-
4049
- Gets the label of the filter property
4050
-
4051
-
4052
-
4053
-
4054
- ##### Parameters
4055
-
4056
- | Name | Type | Description | |
4057
- | ---- | ---- | ----------- | -------- |
4058
- | filter | | The UI Filter | &nbsp; |
4059
-
4060
-
4061
-
4062
-
4063
- ##### Returns
4064
-
4065
-
4066
- - a string of the filter property label
4067
-
4068
-
4069
-
4070
-
4071
- ### dist/filters/helpers/ui/getOutputFormatByColumn.js
4072
-
4073
-
4074
- #### getOutputFormatByColumn(column, datasets)
4075
-
4076
- Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
4077
-
4078
-
4079
-
4080
-
4081
- ##### Parameters
4082
-
4083
- | Name | Type | Description | |
4084
- | ---- | ---- | ----------- | -------- |
4085
- | column | | The column | &nbsp; |
4086
- | datasets | | array of datasets | &nbsp; |
4087
-
4088
-
4089
-
4090
-
4091
- ##### Returns
4092
-
4093
-
4094
- - The output format object
4095
-
4096
-
4097
-
4098
-
4099
- ### dist/filters/helpers/ui/getUIFlatFilterByParams.js
4100
-
4101
-
4102
- #### getUIFlatFilterByParams()
4103
-
4104
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4105
- The validation to filter the stored filter is depending on:
4106
- - Column
4107
- - Qrvey ID,
4108
- - Scope type
4109
- - Scope ID
4110
- - Panel ID
4111
- - Validator type
4112
- - Property type
4113
-
4114
-
4115
-
4116
-
4117
-
4118
-
4119
- ##### Returns
4120
-
4121
-
4122
- - The index of the uFilter array or the Filter object s
4123
-
4124
-
4125
-
4126
-
4127
- ### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
4128
-
4129
-
4130
- #### getUIFlatFiltersByParams()
4131
-
4132
- Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
4133
- The validation to filter the stored filter is depending on:
4134
- - Column
4135
- - Qrvey ID,
4136
- - Scope type
4137
- - Scope ID
4138
- - Panel ID
4139
- - Validator type
4140
- - Property type
4141
- - Enabled flags
4142
-
4143
-
4144
-
4145
-
4146
-
4147
-
4148
- ##### Returns
4149
-
4150
-
4151
- - The index of the uFilter array or the Filter object s
4152
-
4153
-
4154
-
4155
-
4156
- ### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
4157
-
4158
-
4159
- #### getUIFlatFiltersByScopes(uFilters, scopes)
4160
-
4161
- Filters and gets a UI Flatten Filters by the given scopes
4162
-
4163
-
4164
-
4165
-
4166
- ##### Parameters
4167
-
4168
- | Name | Type | Description | |
4169
- | ---- | ---- | ----------- | -------- |
4170
- | uFilters | | The Flatten UI Filters | &nbsp; |
4171
- | scopes | | collection of scopes types | &nbsp; |
4172
-
4173
-
4174
-
4175
-
4176
- ##### Returns
4177
-
4178
-
4179
- - The new array of UI Flattened filters
4180
-
4181
-
4182
-
4183
-
4184
- ### dist/filters/helpers/ui/getUIValues.js
4185
-
4186
-
4187
- #### getUIValues(filter, addEnableds, rankingGroupIndex)
4188
-
4189
-
4190
-
4191
-
4192
-
4193
-
4194
- ##### Parameters
4195
-
4196
- | Name | Type | Description | |
4197
- | ---- | ---- | ----------- | -------- |
4198
- | filter | | | &nbsp; |
4199
- | addEnableds | | | &nbsp; |
4200
- | rankingGroupIndex | | | &nbsp; |
4201
-
4202
-
4203
-
4204
-
4205
- ##### Returns
4206
-
4207
-
4208
- -
4209
-
4210
-
4211
-
4212
-
4213
- ### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
4214
-
4215
-
4216
- #### resolveUIFlatFilterByParams(filter, params)
4217
-
4218
- Resolves conditions between UI flattened filter and given parameters
4219
-
4220
-
4221
-
4222
-
4223
- ##### Parameters
4224
-
4225
- | Name | Type | Description | |
4226
- | ---- | ---- | ----------- | -------- |
4227
- | filter | | UI Flatten Filter | &nbsp; |
4228
- | params | | Parameters to validate | &nbsp; |
4229
-
4230
-
4231
-
4232
-
4233
- ##### Returns
4234
-
4235
-
4236
- - true: the conditions are satisfied.
4237
-
4238
-
4239
-
4240
-
4241
- ### dist/dates/relative/helpers/formatStatement.js
4242
-
4243
-
4244
- #### formatStatement(statement)
4245
-
4246
- Build a proper relative date statement type
4247
-
4248
-
4249
-
4250
-
4251
- ##### Parameters
4252
-
4253
- | Name | Type | Description | |
4254
- | ---- | ---- | ----------- | -------- |
4255
- | statement | `RelativeStatement` | | &nbsp; |
4256
-
4257
-
4258
-
4259
-
4260
- ##### Returns
4261
-
4262
-
4263
- - `RelativeStatement`
4264
-
4265
-
4266
-
4267
-
4268
- ### dist/dates/relative/helpers/parseDate.js
4269
-
4270
-
4271
- #### parseDate(date)
4272
-
4273
- Parses a string date and returns a dayjs date
4274
-
4275
-
4276
-
4277
-
4278
- ##### Parameters
4279
-
4280
- | Name | Type | Description | |
4281
- | ---- | ---- | ----------- | -------- |
4282
- | date | `string` `Dayjs` `Date` | | &nbsp; |
4283
-
4284
-
4285
-
4286
-
4287
- ##### Returns
4288
-
4289
-
4290
- - `Dayjs` A dayjs date
4291
-
4292
-
4293
-
4294
-
4295
- ### dist/dates/relative/helpers/getStatementCase.js
4296
-
4297
-
4298
- #### getStatementCase(includeCurrent, isCalendarDate)
4299
-
4300
- Returns a number/constant that identifies a relative date case
4301
-
4302
-
4303
-
4304
-
4305
- ##### Parameters
4306
-
4307
- | Name | Type | Description | |
4308
- | ---- | ---- | ----------- | -------- |
4309
- | includeCurrent | `boolean` | | &nbsp; |
4310
- | isCalendarDate | `boolean` | | &nbsp; |
4311
-
4312
-
4313
-
4314
-
4315
- ##### Returns
4316
-
4317
-
4318
- - `number`
4319
-
4320
-
4321
-
4322
-
4323
- *Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*