@qrvey/utils 1.2.10-8 → 1.3.0-1

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