@qrvey/utils 1.2.4-1 → 1.2.4-10

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