@qrvey/utils 1.2.9-3 → 1.2.9-32

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