@qrvey/utils 1.12.0-9 → 1.13.0-0

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 (350) hide show
  1. package/README.md +2606 -2130
  2. package/dist/charts/adapters/endpointData.js +4 -5
  3. package/dist/charts/adapters/endpointDataGet.js +3 -3
  4. package/dist/cjs/charts/adapters/endpointData.js +3 -4
  5. package/dist/cjs/charts/adapters/endpointDataGet.js +2 -2
  6. package/dist/cjs/constants/Charts.Const.d.ts +4 -1
  7. package/dist/cjs/constants/Charts.Const.js +3 -0
  8. package/dist/cjs/dates/relative/RelativeStatementAdapter.d.ts +1 -1
  9. package/dist/cjs/dates/relative/RelativeStatementAdapter.js +2 -1
  10. package/dist/cjs/dates/relative/relative.d.ts +3 -4
  11. package/dist/cjs/dates/relative/relative.js +5 -9
  12. package/dist/cjs/filters/adapters/FDToFlatUI.js +2 -2
  13. package/dist/cjs/filters/adapters/FDToUI.js +2 -2
  14. package/dist/cjs/filters/adapters/UIToFD.js +2 -2
  15. package/dist/cjs/filters/adapters/UIToFlatUI.js +2 -2
  16. package/dist/cjs/filters/adapters/UIToOldLogic.js +2 -2
  17. package/dist/cjs/filters/adapters/adaptFilterData.js +2 -2
  18. package/dist/cjs/filters/adapters/flatUIToFD.js +2 -2
  19. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +2 -2
  20. package/dist/cjs/filters/adapters/flatUIToUI.js +2 -2
  21. package/dist/cjs/filters/constants/common/FILTER_SCOPE.d.ts +7 -7
  22. package/dist/cjs/filters/helpers/OLD_getAggFilters.js +2 -2
  23. package/dist/cjs/filters/helpers/backend/getLogicByScopes.js +2 -2
  24. package/dist/cjs/filters/helpers/common/excludeFiltersByAggregateColumn.js +2 -2
  25. package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +2 -2
  26. package/dist/cjs/filters/helpers/common/excludeFiltersByScopes.js +2 -2
  27. package/dist/cjs/filters/helpers/common/getFiltersByAggregateColumn.js +2 -2
  28. package/dist/cjs/filters/helpers/common/getFiltersByParams.js +2 -2
  29. package/dist/cjs/filters/helpers/common/getFiltersByScopes.js +2 -2
  30. package/dist/cjs/filters/helpers/common/getFiltersByScopesIds.js +2 -2
  31. package/dist/cjs/filters/helpers/common/getFiltersByVisibility.js +2 -2
  32. package/dist/cjs/filters/helpers/settings/getFilterSettings.js +4 -4
  33. package/dist/cjs/filters/helpers/ui/excludeUIFiltersByAggregate.js +2 -2
  34. package/dist/cjs/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +2 -2
  35. package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
  36. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
  37. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByScopes.js +2 -2
  38. package/dist/cjs/filters/services/Filters.api.js +4 -7
  39. package/dist/cjs/filters/services/UChartApi.d.ts +1 -1
  40. package/dist/cjs/filters/services/UChartApi.js +4 -3
  41. package/dist/cjs/filters/services/UChartPaginationApi.d.ts +1 -1
  42. package/dist/cjs/filters/services/UChartPaginationApi.js +5 -4
  43. package/dist/cjs/format/format.js +2 -2
  44. package/dist/cjs/general/array/filterNestedTree.js +2 -2
  45. package/dist/cjs/general/object/objectCopy.js +8 -7
  46. package/dist/cjs/globalization/interfaces/II18nResource.d.ts +2 -0
  47. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -0
  48. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +9 -0
  49. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts +1 -0
  50. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartNames.d.ts +2 -0
  51. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +5 -0
  52. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.d.ts +6 -0
  53. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.js +2 -0
  54. package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +9 -0
  55. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
  56. package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
  57. package/dist/cjs/globalization/interfaces/export/II18nExportingModal.d.ts +67 -0
  58. package/dist/cjs/globalization/interfaces/export/II18nExportingModal.js +2 -0
  59. package/dist/cjs/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.d.ts +3 -0
  60. package/dist/cjs/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.js +2 -0
  61. package/dist/cjs/globalization/interfaces/export/II18nExportingModalErrorMessages.d.ts +3 -0
  62. package/dist/cjs/globalization/interfaces/export/II18nExportingModalErrorMessages.js +2 -0
  63. package/dist/cjs/globalization/interfaces/export/II18nExportingModalRecurrence.d.ts +6 -0
  64. package/dist/cjs/globalization/interfaces/export/II18nExportingModalRecurrence.js +2 -0
  65. package/dist/cjs/globalization/interfaces/export/II18nExportingModalTimeStamp.d.ts +7 -0
  66. package/dist/cjs/globalization/interfaces/export/II18nExportingModalTimeStamp.js +2 -0
  67. package/dist/cjs/globalization/interfaces/export/index.d.ts +5 -0
  68. package/dist/cjs/globalization/interfaces/export/index.js +21 -0
  69. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
  70. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
  71. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +2 -0
  72. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
  73. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +2 -0
  74. package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
  75. package/dist/cjs/globalization/interfaces/panel/I18nPanelColumnInteractive.d.ts +5 -0
  76. package/dist/cjs/globalization/interfaces/panel/I18nPanelColumnInteractive.js +2 -0
  77. package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +2 -0
  78. package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
  79. package/dist/cjs/globalization/interfaces/panel/II18nPanelTooltips.d.ts +3 -0
  80. package/dist/cjs/globalization/interfaces/panel/index.d.ts +1 -0
  81. package/dist/cjs/globalization/interfaces/panel/index.js +1 -0
  82. package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
  83. package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +1 -1
  84. package/dist/cjs/globalization/labels/I18N_DEFAULT.js +3 -1
  85. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +7 -0
  86. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  87. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +7 -2
  88. package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +18 -0
  89. package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
  90. package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
  91. package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.js +78 -0
  92. package/dist/cjs/globalization/labels/export/index.d.ts +1 -0
  93. package/dist/cjs/globalization/labels/export/index.js +17 -0
  94. package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +20 -5
  95. package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +9 -0
  96. package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +4 -1
  97. package/dist/cjs/globalization/service/i18nextBuilder.js +2 -3
  98. package/dist/cjs/index.d.ts +1 -0
  99. package/dist/cjs/index.js +1 -0
  100. package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
  101. package/dist/cjs/services/helpers/Request.js +5 -2
  102. package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +7 -7
  103. package/dist/cjs/services/interfaces/IPayloadQrveyAll.d.ts +1 -1
  104. package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.d.ts +6 -0
  105. package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.js +10 -0
  106. package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.d.ts +6 -0
  107. package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.js +10 -0
  108. package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES.d.ts +39 -0
  109. package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES.js +22 -0
  110. package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.d.ts +15 -0
  111. package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.js +19 -0
  112. package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.d.ts +15 -0
  113. package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.js +19 -0
  114. package/dist/cjs/themes/constants/CANVAS_CSS_VARIABLES.d.ts +6 -0
  115. package/dist/cjs/themes/constants/CANVAS_CSS_VARIABLES.js +10 -0
  116. package/dist/cjs/themes/constants/CHANNEL_BLACK_COLOR.d.ts +5 -0
  117. package/dist/cjs/themes/constants/CHANNEL_BLACK_COLOR.js +12 -0
  118. package/dist/cjs/themes/constants/CHANNEL_WHITE_COLOR.d.ts +5 -0
  119. package/dist/cjs/themes/constants/CHANNEL_WHITE_COLOR.js +12 -0
  120. package/dist/cjs/themes/constants/COLOR_NAME.d.ts +154 -0
  121. package/dist/cjs/themes/constants/COLOR_NAME.js +157 -0
  122. package/dist/cjs/themes/constants/COLOR_TYPE.d.ts +7 -0
  123. package/dist/cjs/themes/constants/COLOR_TYPE.js +11 -0
  124. package/dist/cjs/themes/constants/CSS_VARIABLE_DESTINATION.d.ts +7 -0
  125. package/dist/cjs/themes/constants/CSS_VARIABLE_DESTINATION.js +11 -0
  126. package/dist/cjs/themes/constants/GLOBAL_CSS_VARIABLES.d.ts +15 -0
  127. package/dist/cjs/themes/constants/GLOBAL_CSS_VARIABLES.js +19 -0
  128. package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +4 -0
  129. package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +7 -0
  130. package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +4 -0
  131. package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.js +7 -0
  132. package/dist/cjs/themes/constants/index.d.ts +14 -0
  133. package/dist/cjs/themes/constants/index.js +30 -0
  134. package/dist/cjs/themes/helpers/calculateHSP.d.ts +8 -0
  135. package/dist/cjs/themes/helpers/calculateHSP.js +20 -0
  136. package/dist/cjs/themes/helpers/getCSSVariablesByDestination.d.ts +40 -0
  137. package/dist/cjs/themes/helpers/getCSSVariablesByDestination.js +18 -0
  138. package/dist/cjs/themes/helpers/getChannelsByHexadecimalColor.d.ts +8 -0
  139. package/dist/cjs/themes/helpers/getChannelsByHexadecimalColor.js +26 -0
  140. package/dist/cjs/themes/helpers/getChannelsByNameColor.d.ts +8 -0
  141. package/dist/cjs/themes/helpers/getChannelsByNameColor.js +26 -0
  142. package/dist/cjs/themes/helpers/getChannelsByRgbaColor.d.ts +8 -0
  143. package/dist/cjs/themes/helpers/getChannelsByRgbaColor.js +25 -0
  144. package/dist/cjs/themes/helpers/getHexadecimalOpacity.d.ts +7 -0
  145. package/dist/cjs/themes/helpers/getHexadecimalOpacity.js +19 -0
  146. package/dist/cjs/themes/helpers/getRgbaOpacity.d.ts +7 -0
  147. package/dist/cjs/themes/helpers/getRgbaOpacity.js +21 -0
  148. package/dist/cjs/themes/helpers/index.d.ts +12 -0
  149. package/dist/cjs/themes/helpers/index.js +28 -0
  150. package/dist/cjs/themes/helpers/isDarkColor.d.ts +7 -0
  151. package/dist/cjs/themes/helpers/isDarkColor.js +15 -0
  152. package/dist/cjs/themes/helpers/isHexadecimalColor.d.ts +6 -0
  153. package/dist/cjs/themes/helpers/isHexadecimalColor.js +15 -0
  154. package/dist/cjs/themes/helpers/isRGBAColor.d.ts +6 -0
  155. package/dist/cjs/themes/helpers/isRGBAColor.js +15 -0
  156. package/dist/cjs/themes/helpers/lightOrDark.d.ts +9 -0
  157. package/dist/cjs/themes/helpers/lightOrDark.js +40 -0
  158. package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +9 -0
  159. package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.js +43 -0
  160. package/dist/cjs/themes/index.d.ts +3 -0
  161. package/dist/cjs/themes/index.js +19 -0
  162. package/dist/cjs/themes/interfaces/IColorCSSVariableDestination.d.ts +5 -0
  163. package/dist/cjs/themes/interfaces/IColorCSSVariableDestination.js +2 -0
  164. package/dist/cjs/themes/interfaces/IColorChannel.d.ts +9 -0
  165. package/dist/cjs/themes/interfaces/IColorChannel.js +2 -0
  166. package/dist/cjs/themes/interfaces/IColorType.d.ts +5 -0
  167. package/dist/cjs/themes/interfaces/IColorType.js +2 -0
  168. package/dist/cjs/themes/interfaces/index.d.ts +3 -0
  169. package/dist/cjs/themes/interfaces/index.js +19 -0
  170. package/dist/cjs/tokens/getCleanCustomTokens.d.ts +9 -0
  171. package/dist/cjs/tokens/getCleanCustomTokens.js +22 -0
  172. package/dist/cjs/tokens/getCustomtonTokens.d.ts +3 -3
  173. package/dist/cjs/tokens/getCustomtonTokens.js +7 -4
  174. package/dist/cjs/tokens/getCustomtonTokensWithKeys.js +1 -1
  175. package/dist/cjs/tokens/index.d.ts +1 -0
  176. package/dist/cjs/tokens/index.js +1 -0
  177. package/dist/constants/Charts.Const.d.ts +4 -1
  178. package/dist/constants/Charts.Const.js +3 -0
  179. package/dist/dates/relative/RelativeStatementAdapter.d.ts +1 -1
  180. package/dist/dates/relative/RelativeStatementAdapter.js +1 -1
  181. package/dist/dates/relative/relative.d.ts +3 -4
  182. package/dist/dates/relative/relative.js +4 -5
  183. package/dist/filters/adapters/FDToFlatUI.js +2 -2
  184. package/dist/filters/adapters/FDToUI.js +2 -2
  185. package/dist/filters/adapters/UIToFD.js +2 -2
  186. package/dist/filters/adapters/UIToFlatUI.js +2 -2
  187. package/dist/filters/adapters/UIToOldLogic.js +2 -2
  188. package/dist/filters/adapters/adaptFilterData.js +2 -2
  189. package/dist/filters/adapters/flatUIToFD.js +2 -2
  190. package/dist/filters/adapters/flatUIToOldLogic.js +2 -2
  191. package/dist/filters/adapters/flatUIToUI.js +2 -2
  192. package/dist/filters/constants/common/FILTER_SCOPE.d.ts +7 -7
  193. package/dist/filters/helpers/OLD_getAggFilters.js +2 -2
  194. package/dist/filters/helpers/backend/getLogicByScopes.js +2 -2
  195. package/dist/filters/helpers/common/excludeFiltersByAggregateColumn.js +2 -2
  196. package/dist/filters/helpers/common/excludeFiltersByParams.js +2 -2
  197. package/dist/filters/helpers/common/excludeFiltersByScopes.js +2 -2
  198. package/dist/filters/helpers/common/getFiltersByAggregateColumn.js +2 -2
  199. package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
  200. package/dist/filters/helpers/common/getFiltersByScopes.js +2 -2
  201. package/dist/filters/helpers/common/getFiltersByScopesIds.js +2 -2
  202. package/dist/filters/helpers/common/getFiltersByVisibility.js +2 -2
  203. package/dist/filters/helpers/settings/getFilterSettings.js +4 -4
  204. package/dist/filters/helpers/ui/excludeUIFiltersByAggregate.js +2 -2
  205. package/dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +2 -2
  206. package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
  207. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
  208. package/dist/filters/helpers/ui/getUIFlatFiltersByScopes.js +2 -2
  209. package/dist/filters/services/Filters.api.js +2 -2
  210. package/dist/filters/services/UChartApi.d.ts +1 -1
  211. package/dist/filters/services/UChartApi.js +3 -4
  212. package/dist/filters/services/UChartPaginationApi.d.ts +1 -1
  213. package/dist/filters/services/UChartPaginationApi.js +4 -5
  214. package/dist/format/format.js +2 -2
  215. package/dist/general/array/filterNestedTree.js +2 -2
  216. package/dist/general/object/objectCopy.js +8 -7
  217. package/dist/globalization/interfaces/II18nResource.d.ts +2 -0
  218. package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -0
  219. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +9 -0
  220. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts +1 -0
  221. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderChartNames.d.ts +2 -0
  222. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +5 -0
  223. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.d.ts +6 -0
  224. package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +9 -0
  225. package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
  226. package/dist/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
  227. package/dist/globalization/interfaces/export/II18nExportingModal.d.ts +67 -0
  228. package/dist/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.d.ts +3 -0
  229. package/dist/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.js +1 -0
  230. package/dist/globalization/interfaces/export/II18nExportingModalErrorMessages.d.ts +3 -0
  231. package/dist/globalization/interfaces/export/II18nExportingModalErrorMessages.js +1 -0
  232. package/dist/globalization/interfaces/export/II18nExportingModalRecurrence.d.ts +6 -0
  233. package/dist/globalization/interfaces/export/II18nExportingModalRecurrence.js +1 -0
  234. package/dist/globalization/interfaces/export/II18nExportingModalTimeStamp.d.ts +7 -0
  235. package/dist/globalization/interfaces/export/II18nExportingModalTimeStamp.js +1 -0
  236. package/dist/globalization/interfaces/export/index.d.ts +5 -0
  237. package/dist/globalization/interfaces/export/index.js +5 -0
  238. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
  239. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
  240. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +1 -0
  241. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
  242. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +1 -0
  243. package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
  244. package/dist/globalization/interfaces/panel/I18nPanelColumnInteractive.d.ts +5 -0
  245. package/dist/globalization/interfaces/panel/I18nPanelColumnInteractive.js +1 -0
  246. package/dist/globalization/interfaces/panel/II18nPanel.d.ts +2 -0
  247. package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
  248. package/dist/globalization/interfaces/panel/II18nPanelTooltips.d.ts +3 -0
  249. package/dist/globalization/interfaces/panel/index.d.ts +1 -0
  250. package/dist/globalization/interfaces/panel/index.js +1 -0
  251. package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
  252. package/dist/globalization/labels/I18N_DEFAULT.d.ts +1 -1
  253. package/dist/globalization/labels/I18N_DEFAULT.js +3 -1
  254. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +7 -0
  255. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
  256. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +7 -2
  257. package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +18 -0
  258. package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
  259. package/dist/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
  260. package/dist/globalization/labels/export/I18N_EXPORT_MODAL.js +75 -0
  261. package/dist/globalization/labels/export/index.d.ts +1 -0
  262. package/dist/globalization/labels/export/index.js +1 -0
  263. package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +20 -5
  264. package/dist/globalization/labels/panel/I18N_PANEL.js +9 -0
  265. package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +4 -1
  266. package/dist/globalization/service/i18nextBuilder.js +3 -4
  267. package/dist/index.d.ts +1 -0
  268. package/dist/index.js +1 -0
  269. package/dist/services/api/getAllQrveys.api.d.ts +1 -1
  270. package/dist/services/helpers/Request.js +5 -2
  271. package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +7 -7
  272. package/dist/services/interfaces/IPayloadQrveyAll.d.ts +1 -1
  273. package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.d.ts +6 -0
  274. package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.js +7 -0
  275. package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.d.ts +6 -0
  276. package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.js +7 -0
  277. package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES.d.ts +39 -0
  278. package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES.js +19 -0
  279. package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.d.ts +15 -0
  280. package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.js +16 -0
  281. package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.d.ts +15 -0
  282. package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.js +16 -0
  283. package/dist/themes/constants/CANVAS_CSS_VARIABLES.d.ts +6 -0
  284. package/dist/themes/constants/CANVAS_CSS_VARIABLES.js +7 -0
  285. package/dist/themes/constants/CHANNEL_BLACK_COLOR.d.ts +5 -0
  286. package/dist/themes/constants/CHANNEL_BLACK_COLOR.js +9 -0
  287. package/dist/themes/constants/CHANNEL_WHITE_COLOR.d.ts +5 -0
  288. package/dist/themes/constants/CHANNEL_WHITE_COLOR.js +9 -0
  289. package/dist/themes/constants/COLOR_NAME.d.ts +154 -0
  290. package/dist/themes/constants/COLOR_NAME.js +154 -0
  291. package/dist/themes/constants/COLOR_TYPE.d.ts +7 -0
  292. package/dist/themes/constants/COLOR_TYPE.js +8 -0
  293. package/dist/themes/constants/CSS_VARIABLE_DESTINATION.d.ts +7 -0
  294. package/dist/themes/constants/CSS_VARIABLE_DESTINATION.js +8 -0
  295. package/dist/themes/constants/GLOBAL_CSS_VARIABLES.d.ts +15 -0
  296. package/dist/themes/constants/GLOBAL_CSS_VARIABLES.js +16 -0
  297. package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +4 -0
  298. package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +4 -0
  299. package/dist/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +4 -0
  300. package/dist/themes/constants/RGBA_REGULAR_EXPRESION.js +4 -0
  301. package/dist/themes/constants/index.d.ts +14 -0
  302. package/dist/themes/constants/index.js +14 -0
  303. package/dist/themes/helpers/calculateHSP.d.ts +8 -0
  304. package/dist/themes/helpers/calculateHSP.js +16 -0
  305. package/dist/themes/helpers/getCSSVariablesByDestination.d.ts +40 -0
  306. package/dist/themes/helpers/getCSSVariablesByDestination.js +14 -0
  307. package/dist/themes/helpers/getChannelsByHexadecimalColor.d.ts +8 -0
  308. package/dist/themes/helpers/getChannelsByHexadecimalColor.js +22 -0
  309. package/dist/themes/helpers/getChannelsByNameColor.d.ts +8 -0
  310. package/dist/themes/helpers/getChannelsByNameColor.js +22 -0
  311. package/dist/themes/helpers/getChannelsByRgbaColor.d.ts +8 -0
  312. package/dist/themes/helpers/getChannelsByRgbaColor.js +21 -0
  313. package/dist/themes/helpers/getHexadecimalOpacity.d.ts +7 -0
  314. package/dist/themes/helpers/getHexadecimalOpacity.js +15 -0
  315. package/dist/themes/helpers/getRgbaOpacity.d.ts +7 -0
  316. package/dist/themes/helpers/getRgbaOpacity.js +17 -0
  317. package/dist/themes/helpers/index.d.ts +12 -0
  318. package/dist/themes/helpers/index.js +12 -0
  319. package/dist/themes/helpers/isDarkColor.d.ts +7 -0
  320. package/dist/themes/helpers/isDarkColor.js +11 -0
  321. package/dist/themes/helpers/isHexadecimalColor.d.ts +6 -0
  322. package/dist/themes/helpers/isHexadecimalColor.js +11 -0
  323. package/dist/themes/helpers/isRGBAColor.d.ts +6 -0
  324. package/dist/themes/helpers/isRGBAColor.js +11 -0
  325. package/dist/themes/helpers/lightOrDark.d.ts +9 -0
  326. package/dist/themes/helpers/lightOrDark.js +36 -0
  327. package/dist/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +9 -0
  328. package/dist/themes/helpers/setAutomaticCSSVariablesForDark.js +39 -0
  329. package/dist/themes/index.d.ts +3 -0
  330. package/dist/themes/index.js +3 -0
  331. package/dist/themes/interfaces/IColorCSSVariableDestination.d.ts +5 -0
  332. package/dist/themes/interfaces/IColorCSSVariableDestination.js +1 -0
  333. package/dist/themes/interfaces/IColorChannel.d.ts +9 -0
  334. package/dist/themes/interfaces/IColorChannel.js +1 -0
  335. package/dist/themes/interfaces/IColorType.d.ts +5 -0
  336. package/dist/themes/interfaces/IColorType.js +1 -0
  337. package/dist/themes/interfaces/index.d.ts +3 -0
  338. package/dist/themes/interfaces/index.js +3 -0
  339. package/dist/tokens/getCleanCustomTokens.d.ts +9 -0
  340. package/dist/tokens/getCleanCustomTokens.js +18 -0
  341. package/dist/tokens/getCustomtonTokens.d.ts +3 -3
  342. package/dist/tokens/getCustomtonTokens.js +8 -5
  343. package/dist/tokens/getCustomtonTokensWithKeys.js +1 -1
  344. package/dist/tokens/index.d.ts +1 -0
  345. package/dist/tokens/index.js +1 -0
  346. package/package.json +20 -17
  347. package/dist/cjs/tokens/getCustomtonTokensWithKeys.test.js +0 -23
  348. package/dist/tokens/getCustomtonTokensWithKeys.test.js +0 -21
  349. /package/dist/{cjs/tokens/getCustomtonTokensWithKeys.test.d.ts → globalization/interfaces/chart_builder/II18nChartBuilderRadarType.js} +0 -0
  350. /package/dist/{tokens/getCustomtonTokensWithKeys.test.d.ts → globalization/interfaces/export/II18nExportingModal.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { CHART_TYPE } from "../../constants";
2
2
  import { adaptFilterData, excludeFiltersByAggregateColumn, FDToLogic, FILTER_SCOPE, FILTER_STRUCTURE_VERSION, getAvailableScopes, getAvailableScopesIDsByConfig, UIToOldLogic, } from "../../filters";
3
3
  import { chooseLang, getLang } from "../../format";
4
- import { cloneDeep, getAttribute, isEmpty, _get, _hasProperty, } from "../../general";
4
+ import { objectCopy, getAttribute, isEmpty, _get, _hasProperty, } from "../../general";
5
5
  import { getAggFiltersResults, getCategoryBody, getComboBody, getDrilldownId, getLayerBody, getPivotBody, getRefenceBody, getRefenceBodyU, getSmallMultipleBody, getSummariesBody, getTrendBody, getValidSortingType, } from "./endpointDataGet";
6
6
  import { hasMinorVersion, isNotValid, validChartTypeWithEndPoint, } from "./endpointDataValidators";
7
7
  function makeBodyRequest(body, filters = []) {
@@ -196,7 +196,7 @@ function makeBodyRequestU(body, filters, newModel = false) {
196
196
  }
197
197
  export function configSetup(config) {
198
198
  var _a;
199
- const cfg = cloneDeep(config || {});
199
+ const cfg = objectCopy(config || {});
200
200
  cfg.panel = cfg.panel || {};
201
201
  const body = getAttribute(cfg.panel, "body") || {};
202
202
  const header = getAttribute(cfg.panel, "header") || {};
@@ -239,7 +239,7 @@ export function configSetup(config) {
239
239
  custom_tokens: getAttribute(cfg, "custom_tokens"),
240
240
  section: getAttribute(cfg, "section") || "ANYWHERE",
241
241
  panel_view: getAttribute(cfg, "panel_view") || "ANYWHERE",
242
- previewFilters: cfg.previewFilters || [],
242
+ previewFilters: cfg.previewFilters || [], // filters came from Preview, ready to send to backend
243
243
  filterData: !isEmpty(cfg.filterData)
244
244
  ? cfg.filterData
245
245
  : { scopes: [], version: FILTER_STRUCTURE_VERSION },
@@ -379,8 +379,7 @@ function updateDimensionsByChart(data, model) {
379
379
  }
380
380
  return data;
381
381
  }
382
- export function configMetricData(metricObj //
383
- ) {
382
+ export function configMetricData(metricObj) {
384
383
  var _a, _b;
385
384
  const body = {};
386
385
  const data = metricObj.data;
@@ -1,6 +1,6 @@
1
1
  import { COLUMN, isNumericalColumn } from "../../columns";
2
2
  import { FILTER_OPERATOR, } from "../../filters";
3
- import { cloneDeep, isEmpty, _get } from "../../general";
3
+ import { objectCopy, isEmpty, _get } from "../../general";
4
4
  import { isColumnDate } from "./endpointDataValidators";
5
5
  export function getDrilldownId(ctx, data) {
6
6
  return !ctx.config.isFromAN
@@ -158,7 +158,7 @@ export function getAggFiltersResults(logics = [], summaries = []) {
158
158
  }, []);
159
159
  }
160
160
  function getAggregateFilters(logicsData = []) {
161
- const _logicsData = cloneDeep(logicsData);
161
+ const _logicsData = objectCopy(logicsData);
162
162
  return _logicsData.reduce((newLogics, logic) => {
163
163
  if (!logic)
164
164
  return newLogics;
@@ -315,7 +315,7 @@ export function getLayerBody(layer, dateGroup, qrveyid) {
315
315
  questionid: layer.multiserie.serie.id,
316
316
  groupType: _get(layer, "multiserie.type"),
317
317
  questionType: _get(layer, "multiserie.serie.type"),
318
- type: _get(layer, "multiserie.serie.type"),
318
+ type: _get(layer, "multiserie.serie.type"), // for new chart api
319
319
  groupValue: _get(layer, "multiserie.dateGroup.label"),
320
320
  property: _get(layer, "multiserie.serie.property"),
321
321
  qrveyid: _get(layer, "multiserie.serie.qrveyid"),
@@ -199,7 +199,7 @@ function makeBodyRequestU(body, filters, newModel = false) {
199
199
  }
200
200
  function configSetup(config) {
201
201
  var _a;
202
- const cfg = (0, general_1.cloneDeep)(config || {});
202
+ const cfg = (0, general_1.objectCopy)(config || {});
203
203
  cfg.panel = cfg.panel || {};
204
204
  const body = (0, general_1.getAttribute)(cfg.panel, "body") || {};
205
205
  const header = (0, general_1.getAttribute)(cfg.panel, "header") || {};
@@ -242,7 +242,7 @@ function configSetup(config) {
242
242
  custom_tokens: (0, general_1.getAttribute)(cfg, "custom_tokens"),
243
243
  section: (0, general_1.getAttribute)(cfg, "section") || "ANYWHERE",
244
244
  panel_view: (0, general_1.getAttribute)(cfg, "panel_view") || "ANYWHERE",
245
- previewFilters: cfg.previewFilters || [],
245
+ previewFilters: cfg.previewFilters || [], // filters came from Preview, ready to send to backend
246
246
  filterData: !(0, general_1.isEmpty)(cfg.filterData)
247
247
  ? cfg.filterData
248
248
  : { scopes: [], version: filters_1.FILTER_STRUCTURE_VERSION },
@@ -383,8 +383,7 @@ function updateDimensionsByChart(data, model) {
383
383
  }
384
384
  return data;
385
385
  }
386
- function configMetricData(metricObj //
387
- ) {
386
+ function configMetricData(metricObj) {
388
387
  var _a, _b;
389
388
  const body = {};
390
389
  const data = metricObj.data;
@@ -167,7 +167,7 @@ function getAggFiltersResults(logics = [], summaries = []) {
167
167
  }, []);
168
168
  }
169
169
  function getAggregateFilters(logicsData = []) {
170
- const _logicsData = (0, general_1.cloneDeep)(logicsData);
170
+ const _logicsData = (0, general_1.objectCopy)(logicsData);
171
171
  return _logicsData.reduce((newLogics, logic) => {
172
172
  if (!logic)
173
173
  return newLogics;
@@ -328,7 +328,7 @@ function getLayerBody(layer, dateGroup, qrveyid) {
328
328
  questionid: layer.multiserie.serie.id,
329
329
  groupType: (0, general_1._get)(layer, "multiserie.type"),
330
330
  questionType: (0, general_1._get)(layer, "multiserie.serie.type"),
331
- type: (0, general_1._get)(layer, "multiserie.serie.type"),
331
+ type: (0, general_1._get)(layer, "multiserie.serie.type"), // for new chart api
332
332
  groupValue: (0, general_1._get)(layer, "multiserie.dateGroup.label"),
333
333
  property: (0, general_1._get)(layer, "multiserie.serie.property"),
334
334
  qrveyid: (0, general_1._get)(layer, "multiserie.serie.qrveyid"),
@@ -26,7 +26,10 @@ export declare enum CHART_TYPE {
26
26
  BULLET_METRIC = "BULLET",
27
27
  SUMMARY_CHART = "SUMMARY_CHART",
28
28
  MINMAX_CHART = "MINMAX_CHART",
29
- COMBINED_CHART = "COMBINED_CHART"
29
+ COMBINED_CHART = "COMBINED_CHART",
30
+ RADAR_CHART = "RADAR_CHART",
31
+ TREEMAP_CHART = "TREEMAP_CHART",
32
+ AREA_CHART = "AREA_CHART"
30
33
  }
31
34
  export declare enum CHART_DIMENSION {
32
35
  CATEGORIES = "categories",
@@ -31,6 +31,9 @@ var CHART_TYPE;
31
31
  CHART_TYPE["SUMMARY_CHART"] = "SUMMARY_CHART";
32
32
  CHART_TYPE["MINMAX_CHART"] = "MINMAX_CHART";
33
33
  CHART_TYPE["COMBINED_CHART"] = "COMBINED_CHART";
34
+ CHART_TYPE["RADAR_CHART"] = "RADAR_CHART";
35
+ CHART_TYPE["TREEMAP_CHART"] = "TREEMAP_CHART";
36
+ CHART_TYPE["AREA_CHART"] = "AREA_CHART";
34
37
  })(CHART_TYPE || (exports.CHART_TYPE = CHART_TYPE = {}));
35
38
  var CHART_DIMENSION;
36
39
  (function (CHART_DIMENSION) {
@@ -1,7 +1,7 @@
1
1
  import { AbsoluteStatement } from "./interfaces/AbsoluteStatement";
2
2
  import { RelativeInput } from "./interfaces/RelativeInput";
3
3
  import { RelativeToAbsoluteStruct } from "./interfaces/RelativeToAbsoluteStruct";
4
- export default class RelativeStatementAdapter {
4
+ export declare class RelativeStatementAdapter {
5
5
  statement: RelativeInput;
6
6
  now: Date;
7
7
  constructor(statement: RelativeInput, now?: Date);
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RelativeStatementAdapter = void 0;
3
4
  const get_1 = require("../../general/object/get");
4
5
  const RELATIVE_CURSOR_1 = require("./constants/RELATIVE_CURSOR");
5
6
  const formatStatement_1 = require("./helpers/formatStatement");
@@ -206,4 +207,4 @@ class RelativeStatementAdapter {
206
207
  return absoluteDate.format(DATE_FORMATS_1.DATETIME_FORMAT);
207
208
  }
208
209
  }
209
- exports.default = RelativeStatementAdapter;
210
+ exports.RelativeStatementAdapter = RelativeStatementAdapter;
@@ -14,9 +14,8 @@ import { RelativeStatement } from "./interfaces/RelativeStatement";
14
14
  *
15
15
  * Output:
16
16
  * { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
17
- *
18
- * @param {RelativeStatement[]|string[]} statements - Raw statements/values
19
- * @param {Date} clock - Clock/time reference for relative date resolution
20
- * @returns {AbsoluteRange[]|string[]}
17
+ * @param statements - Raw statements/values
18
+ * @param clock - Clock/time reference for relative date resolution
19
+ * @returns
21
20
  */
22
21
  export declare function resolveRelative(statements: RelativeStatement[], clock?: Date): (string | import("./interfaces").AbsoluteStatement)[];
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.resolveRelative = void 0;
7
- const RelativeStatementAdapter_1 = __importDefault(require("./RelativeStatementAdapter"));
4
+ const RelativeStatementAdapter_1 = require("./RelativeStatementAdapter");
8
5
  /**
9
6
  * Resolve a list of relative statements according to operator
10
7
  * @example
@@ -20,12 +17,11 @@ const RelativeStatementAdapter_1 = __importDefault(require("./RelativeStatementA
20
17
  *
21
18
  * Output:
22
19
  * { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
23
- *
24
- * @param {RelativeStatement[]|string[]} statements - Raw statements/values
25
- * @param {Date} clock - Clock/time reference for relative date resolution
26
- * @returns {AbsoluteRange[]|string[]}
20
+ * @param statements - Raw statements/values
21
+ * @param clock - Clock/time reference for relative date resolution
22
+ * @returns
27
23
  */
28
24
  function resolveRelative(statements, clock = new Date()) {
29
- return statements.map((s) => new RelativeStatementAdapter_1.default(s, clock).value());
25
+ return statements.map((s) => new RelativeStatementAdapter_1.RelativeStatementAdapter(s, clock).value());
30
26
  }
31
27
  exports.resolveRelative = resolveRelative;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FDToFlatUI = void 0;
4
4
  const adaptFilterValues_1 = require("./adaptFilterValues");
5
5
  const isEmpty_1 = require("../../general/mix/isEmpty");
6
- const cloneDeep_1 = require("../../general/object/cloneDeep");
6
+ const objectCopy_1 = require("../../general/object/objectCopy");
7
7
  const adaptDateGroupingProperty_1 = require("./adaptDateGroupingProperty");
8
8
  const get_1 = require("../../general/object/get");
9
9
  /**
@@ -18,7 +18,7 @@ function FDToFlatUI(filterData, datasetsInfo = []) {
18
18
  (0, isEmpty_1.isEmpty)(filterData.scopes) ||
19
19
  filterData.scopes.length === 0)
20
20
  return uFilters;
21
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
21
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
22
22
  if (_filterData.version === "2.1") {
23
23
  uFilters = FD21ToFlatUI(_filterData.scopes, datasetsInfo);
24
24
  }
@@ -4,7 +4,7 @@ exports.FDToUI = void 0;
4
4
  const adaptDateGroupingProperty_1 = require("./adaptDateGroupingProperty");
5
5
  const adaptFilterValues_1 = require("./adaptFilterValues");
6
6
  const isEmpty_1 = require("../../general/mix/isEmpty");
7
- const cloneDeep_1 = require("../../general/object/cloneDeep");
7
+ const objectCopy_1 = require("../../general/object/objectCopy");
8
8
  const FILTER_SECTION_1 = require("../constants/common/FILTER_SECTION");
9
9
  const FILTER_STRUCTURE_VERSION_1 = require("../constants/common/FILTER_STRUCTURE_VERSION");
10
10
  /**
@@ -17,7 +17,7 @@ function FDToUI(filterData, datasetsInfo = []) {
17
17
  let ufData;
18
18
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
19
19
  return ufData;
20
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
20
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
21
21
  if (_filterData.version === "2.1") {
22
22
  ufData = FD21ToUI(_filterData.scopes, _filterData.section, _filterData.enabled, datasetsInfo, _filterData.version);
23
23
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UIToFD = void 0;
4
- const cloneDeep_1 = require("../../general/object/cloneDeep");
4
+ const objectCopy_1 = require("../../general/object/objectCopy");
5
5
  const isEmpty_1 = require("../../general/mix/isEmpty");
6
6
  /**
7
7
  * Generates a Filter Data Structure structure from UI Filter Data structure.
@@ -14,7 +14,7 @@ function UIToFD(uFilterData) {
14
14
  (0, isEmpty_1.isEmpty)(uFilterData.scopes) ||
15
15
  !Array.isArray(uFilterData.scopes))
16
16
  return sData;
17
- const _uFilterData = (0, cloneDeep_1.cloneDeep)(uFilterData);
17
+ const _uFilterData = (0, objectCopy_1.objectCopy)(uFilterData);
18
18
  if (_uFilterData.version === "2.1") {
19
19
  sData = UI21ToFD(_uFilterData, _uFilterData.version);
20
20
  }
@@ -4,7 +4,7 @@ exports.UIToFlatUI = void 0;
4
4
  const adaptDateGroupingProperty_1 = require("./adaptDateGroupingProperty");
5
5
  const adaptFilterValues_1 = require("./adaptFilterValues");
6
6
  const isEmpty_1 = require("../../general/mix/isEmpty");
7
- const cloneDeep_1 = require("../../general/object/cloneDeep");
7
+ const objectCopy_1 = require("../../general/object/objectCopy");
8
8
  /**
9
9
  * Generates a Flattened UI filter structure from UI Filter Data structure.
10
10
  * @param filterData The UI filter data object.
@@ -17,7 +17,7 @@ function UIToFlatUI(filterData, datasetsInfo = []) {
17
17
  (0, isEmpty_1.isEmpty)(filterData.scopes) ||
18
18
  filterData.scopes.length === 0)
19
19
  return uFilters;
20
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
20
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
21
21
  if (_filterData.version === "2.1") {
22
22
  uFilters = UI21ToFlatUI(_filterData.scopes, datasetsInfo);
23
23
  }
@@ -7,7 +7,7 @@ const adaptFilterValues_1 = require("./adaptFilterValues");
7
7
  const flatUIToOldLogic_1 = require("./flatUIToOldLogic");
8
8
  const UIToFlatUI_1 = require("./UIToFlatUI");
9
9
  const isEmpty_1 = require("../../general/mix/isEmpty");
10
- const cloneDeep_1 = require("../../general/object/cloneDeep");
10
+ const objectCopy_1 = require("../../general/object/objectCopy");
11
11
  const getBackendGroupValue_1 = require("../helpers/backend/getBackendGroupValue");
12
12
  const getBackendProperty_1 = require("../helpers/backend/getBackendProperty");
13
13
  const getBackendValidator_1 = require("../helpers/backend/getBackendValidator");
@@ -17,7 +17,7 @@ function UIToOldLogic(uFilterData, flattedMethod = true) {
17
17
  let oldFilterData;
18
18
  if ((0, isEmpty_1.isEmpty)(uFilterData) || (0, isEmpty_1.isEmpty)(uFilterData.scopes))
19
19
  return oldFilterData;
20
- const _uFilterData = (0, cloneDeep_1.cloneDeep)(uFilterData);
20
+ const _uFilterData = (0, objectCopy_1.objectCopy)(uFilterData);
21
21
  if (_uFilterData.version === "2.1") {
22
22
  oldFilterData = flattedMethod
23
23
  ? (0, flatUIToOldLogic_1.flatUIToOldLogic)((0, UIToFlatUI_1.UIToFlatUI)(_uFilterData), _uFilterData.section)
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.adaptFilterData = void 0;
4
4
  const isEmpty_1 = require("../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../general/object/objectCopy");
6
6
  const get_1 = require("../../general/object/get");
7
7
  const logicToUI_1 = require("./logicToUI");
8
8
  const FDToUI_1 = require("./FDToUI");
@@ -18,7 +18,7 @@ const logicToFD_1 = require("./logicToFD");
18
18
  function adaptFilterData(filterData, getUIFilterData = true, datasetsInfo = []) {
19
19
  if ((0, isEmpty_1.isEmpty)(filterData))
20
20
  return;
21
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
21
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
22
22
  if (!(0, isEmpty_1.isEmpty)((0, get_1._get)(_filterData, "logic"))) {
23
23
  return getUIFilterData
24
24
  ? (0, logicToUI_1.logicToUI)((0, get_1._get)(_filterData, "logic"), (0, get_1._get)(_filterData, "section"), (0, get_1._get)(_filterData, "enabled"))
@@ -6,7 +6,7 @@ const isEmpty_1 = require("../../general/mix/isEmpty");
6
6
  const adaptFilterValues_1 = require("./adaptFilterValues");
7
7
  const FILTER_SECTION_1 = require("../constants/common/FILTER_SECTION");
8
8
  const FILTER_STRUCTURE_VERSION_1 = require("../constants/common/FILTER_STRUCTURE_VERSION");
9
- const cloneDeep_1 = require("../../general/object/cloneDeep");
9
+ const objectCopy_1 = require("../../general/object/objectCopy");
10
10
  /**
11
11
  * Generates a filter data structure from the flatttened UI filters.
12
12
  * @param uFilters Array of flattened filters from UI
@@ -85,7 +85,7 @@ function buildDataset(uFilter) {
85
85
  * @returns an filter structure
86
86
  */
87
87
  function buildFilter(uFilter) {
88
- const _uFilter = (0, cloneDeep_1.cloneDeep)(uFilter);
88
+ const _uFilter = (0, objectCopy_1.objectCopy)(uFilter);
89
89
  const info = !(0, isEmpty_1.isEmpty)(_uFilter.extras.info)
90
90
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
91
91
  : undefined;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getExpressionId = exports.getLogicBody = exports.flatUIToOldLogic = void 0;
4
4
  const FILTER_SECTION_1 = require("../constants/common/FILTER_SECTION");
5
5
  const isEmpty_1 = require("../../general/mix/isEmpty");
6
- const cloneDeep_1 = require("../../general/object/cloneDeep");
6
+ const objectCopy_1 = require("../../general/object/objectCopy");
7
7
  const getUIValues_1 = require("../helpers/ui/getUIValues");
8
8
  const FILTER_OPERATOR_1 = require("../constants/common/FILTER_OPERATOR");
9
9
  const get_1 = require("../../general/object/get");
@@ -27,7 +27,7 @@ function flatUIToOldLogic(uFilters, section = FILTER_SECTION_1.FILTER_SECTION.AN
27
27
  let oldFilterData;
28
28
  if ((0, isEmpty_1.isEmpty)(uFilters))
29
29
  return oldFilterData;
30
- const uFilterss = (0, cloneDeep_1.cloneDeep)(uFilters);
30
+ const uFilterss = (0, objectCopy_1.objectCopy)(uFilters);
31
31
  const filterDetails = flatUIToOldFilterDetail(uFilterss);
32
32
  return {
33
33
  collapsed: false,
@@ -7,7 +7,7 @@ const FILTER_SECTION_1 = require("../constants/common/FILTER_SECTION");
7
7
  const FILTER_STRUCTURE_VERSION_1 = require("../constants/common/FILTER_STRUCTURE_VERSION");
8
8
  const getLastIndexFromArray_1 = require("../../general/array/getLastIndexFromArray");
9
9
  const isEmpty_1 = require("../../general/mix/isEmpty");
10
- const cloneDeep_1 = require("../../general/object/cloneDeep");
10
+ const objectCopy_1 = require("../../general/object/objectCopy");
11
11
  /**
12
12
  * Generates a UI filter data structure from the flatttened UI filters.
13
13
  * @param uFilters Array of flattened filters from UI
@@ -95,7 +95,7 @@ function buildDataset(uFilter) {
95
95
  * @returns an filter structure
96
96
  */
97
97
  function buildFilter(uFilter) {
98
- const _uFilter = (0, cloneDeep_1.cloneDeep)(uFilter);
98
+ const _uFilter = (0, objectCopy_1.objectCopy)(uFilter);
99
99
  const info = !(0, isEmpty_1.isEmpty)(_uFilter.extras.info)
100
100
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
101
101
  : undefined;
@@ -1,10 +1,10 @@
1
1
  export declare enum FILTER_SCOPE {
2
- ADMIN = "ADMIN",
3
- DATA = "DATA",
4
- GLOBAL = "GLOBAL",
5
- PAGE = "PAGE",
6
- TAB = "TAB",
7
- DEFAULT = "DEFAULT",
8
- CHART = "CHART",
2
+ ADMIN = "ADMIN",// Admin filters (TBD)
3
+ DATA = "DATA",// User Management Filters a.k.a. Super Filters
4
+ GLOBAL = "GLOBAL",// Analyze Filters | Filters for all pages on PB/EU
5
+ PAGE = "PAGE",// PB/EU Filters for a single page
6
+ TAB = "TAB",// PB/EU Filters for a single tab
7
+ DEFAULT = "DEFAULT",// Filters created on Chart Builder
8
+ CHART = "CHART",// PB/EU Filters for panels inside a page/tab
9
9
  ACTION = "ACTION"
10
10
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAggFilters = void 0;
4
4
  const COLUMN_1 = require("../../columns/constants/COLUMN");
5
5
  const isEmpty_1 = require("../../general/mix/isEmpty");
6
- const cloneDeep_1 = require("../../general/object/cloneDeep");
6
+ const objectCopy_1 = require("../../general/object/objectCopy");
7
7
  const get_1 = require("../../general/object/get");
8
8
  const FILTER_OPERATOR_1 = require("../constants/common/FILTER_OPERATOR");
9
9
  /**
@@ -50,7 +50,7 @@ exports.getAggFilters = getAggFilters;
50
50
  * @returns the aggregate filters in the IFilterFilters way or as logic structure.
51
51
  */
52
52
  function getAggregateFilters(logics = []) {
53
- const _logics = (0, cloneDeep_1.cloneDeep)(logics);
53
+ const _logics = (0, objectCopy_1.objectCopy)(logics);
54
54
  return _logics.reduce((newLogics, logic) => {
55
55
  if (!logic)
56
56
  return newLogics;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getLogicByScopes = void 0;
4
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
4
+ const objectCopy_1 = require("../../../general/object/objectCopy");
5
5
  const FILTER_SCOPE_1 = require("../../constants/common/FILTER_SCOPE");
6
6
  /**
7
7
  * Gets the filters from logic data by Scopes/Scope IDs.
@@ -10,7 +10,7 @@ const FILTER_SCOPE_1 = require("../../constants/common/FILTER_SCOPE");
10
10
  * @returns a new Logic array
11
11
  */
12
12
  function getLogicByScopes(logics = [], scopes = []) {
13
- const _logics = (0, cloneDeep_1.cloneDeep)(logics);
13
+ const _logics = (0, objectCopy_1.objectCopy)(logics);
14
14
  return scopes.reduce((newScopes, scope) => {
15
15
  const filteredScopes = _logics.filter((logic) => scope.label === logic.scope &&
16
16
  (scope.id === logic.scopeid ||
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.excludeFiltersByAggregateColumn = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  /**
7
7
  * Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
8
8
  * @param filterData The filter data object
@@ -11,7 +11,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
11
11
  function excludeFiltersByAggregateColumn(filterData) {
12
12
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
13
13
  return;
14
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
14
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
15
15
  _filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
16
16
  if ((0, isEmpty_1.isEmpty)(scope))
17
17
  return scopes;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.excludeFiltersByParams = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  /**
7
7
  * Excludes filters from the given Filters.
8
8
  * The validation to filter the stored filter is depending on:
@@ -23,7 +23,7 @@ function excludeFiltersByParams(filterData, params) {
23
23
  return;
24
24
  if ((0, isEmpty_1.isEmpty)(params))
25
25
  return filterData;
26
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
26
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
27
27
  _filterData.scopes = _filterData.scopes
28
28
  .map((scope) => {
29
29
  if (resolveScopeConditions(scope, params)) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.excludeFiltersByScopes = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  /**
7
7
  * Excludes and returns a filter data without filters by the given scopes
8
8
  * @param filterData The Filter Data
@@ -12,7 +12,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
12
12
  function excludeFiltersByScopes(filterData, scopes) {
13
13
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
14
14
  return;
15
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
15
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
16
16
  _filterData.scopes = _filterData.scopes.filter((scope) => !scopes.includes(scope.scope));
17
17
  return _filterData.scopes.length > 0 ? _filterData : undefined;
18
18
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFiltersByAggregateColumn = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  /**
7
7
  * Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
8
8
  * @param filterData The filter data object
@@ -11,7 +11,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
11
11
  function getFiltersByAggregateColumn(filterData) {
12
12
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
13
13
  return;
14
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
14
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
15
15
  _filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
16
16
  if ((0, isEmpty_1.isEmpty)(scope))
17
17
  return scopes;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFiltersByParams = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  const hasProperty_1 = require("../../../general/object/hasProperty");
7
7
  const getParamsToGetFilterSettings_1 = require("./getParamsToGetFilterSettings");
8
8
  const resolveDatasetConditions_1 = require("./resolveDatasetConditions");
@@ -28,7 +28,7 @@ function getFiltersByParams(filterData, params, settings) {
28
28
  return;
29
29
  if ((0, isEmpty_1.isEmpty)(params))
30
30
  return filterData;
31
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
31
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
32
32
  const defaultSettings = (0, getParamsToGetFilterSettings_1.getParamsToGetFilterSettings)(settings);
33
33
  _filterData.scopes = _filterData.scopes
34
34
  .map((scope) => {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFiltersByScopes = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  /**
7
7
  * Filters and gets a Filter Data by the given scopes
8
8
  * @param filterData The Filter Data
@@ -12,7 +12,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
12
12
  function getFiltersByScopes(filterData, scopes) {
13
13
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
14
14
  return;
15
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
15
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
16
16
  _filterData.scopes = _filterData.scopes.filter((scope) => scopes.includes(scope.scope));
17
17
  return _filterData.scopes.length > 0 ? _filterData : undefined;
18
18
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFiltersByScopesIds = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  const FILTER_SCOPE_1 = require("../../constants/common/FILTER_SCOPE");
7
7
  /**
8
8
  * Gets filters from Filter Data by Scopes/Scope IDs.
@@ -13,7 +13,7 @@ const FILTER_SCOPE_1 = require("../../constants/common/FILTER_SCOPE");
13
13
  function getFiltersByScopesIds(filterData, scopes = []) {
14
14
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
15
15
  return;
16
- const _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
16
+ const _filterData = (0, objectCopy_1.objectCopy)(filterData);
17
17
  _filterData.scopes = scopes.reduce((newScopes, scope) => {
18
18
  const filteredScopes = _filterData.scopes.filter((fScope) => scope.label === fScope.scope &&
19
19
  (scope.id === fScope.scopeid ||
@@ -4,7 +4,7 @@ exports.getFiltersByVisibility = void 0;
4
4
  const getFiltersByScopesIds_1 = require("./getFiltersByScopesIds");
5
5
  const getFiltersByParams_1 = require("./getFiltersByParams");
6
6
  const isEmpty_1 = require("../../../general/mix/isEmpty");
7
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
7
+ const objectCopy_1 = require("../../../general/object/objectCopy");
8
8
  /**
9
9
  * Get a new Filter Data by filtering scopes/scope IDs and enabled flags
10
10
  * @param filterData a Filter Data or UI Filter Data
@@ -14,7 +14,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
14
14
  function getFiltersByVisibility(filterData, scopes) {
15
15
  if ((0, isEmpty_1.isEmpty)(filterData) || (0, isEmpty_1.isEmpty)(filterData.scopes))
16
16
  return;
17
- let _filterData = (0, cloneDeep_1.cloneDeep)(filterData);
17
+ let _filterData = (0, objectCopy_1.objectCopy)(filterData);
18
18
  _filterData = (0, getFiltersByScopesIds_1.getFiltersByScopesIds)(_filterData, scopes);
19
19
  _filterData = (0, getFiltersByParams_1.getFiltersByParams)(_filterData, { enableds: { datasets: true, scopes: true, values: true } }, { filterEmptyArrays: { filter: false } });
20
20
  return _filterData;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFilterSettings = void 0;
4
4
  const isEmpty_1 = require("../../../general/mix/isEmpty");
5
- const cloneDeep_1 = require("../../../general/object/cloneDeep");
5
+ const objectCopy_1 = require("../../../general/object/objectCopy");
6
6
  const mergeDeep_1 = require("../../../general/object/mergeDeep");
7
7
  const FILTER_SCOPE_1 = require("../../constants/common/FILTER_SCOPE");
8
8
  const FILTER_SETTINGS_DEFAULT_1 = require("../../constants/settings/FILTER_SETTINGS_DEFAULT");
@@ -18,7 +18,7 @@ const getScopesToDisplay_1 = require("./getScopesToDisplay");
18
18
  * @returns a new filter settings object
19
19
  */
20
20
  function getFilterSettings(filterSettings, allowedScopes = [], otherSettings) {
21
- let settings = (0, mergeDeep_1.mergeDeep)(FILTER_SETTINGS_DEFAULT_1.FILTER_SETTINGS_DEFAULT, (0, cloneDeep_1.cloneDeep)(filterSettings));
21
+ let settings = (0, mergeDeep_1.mergeDeep)(FILTER_SETTINGS_DEFAULT_1.FILTER_SETTINGS_DEFAULT, (0, objectCopy_1.objectCopy)(filterSettings));
22
22
  settings = (0, mergeDeep_1.mergeDeep)(settings, otherSettings);
23
23
  const scopesSettings = (0, getScopesToDisplay_1.getScopesToDisplay)(settings).filter((scope) => allowedScopes.includes(scope.id));
24
24
  if (scopesSettings.length > 1) {
@@ -122,7 +122,7 @@ function getFilterSettingsByNoScopes(settings) {
122
122
  },
123
123
  },
124
124
  colorized: false,
125
- displayed: false,
125
+ displayed: true,
126
126
  header: {
127
127
  filterButtonDisplayed: false,
128
128
  menu: {
@@ -216,7 +216,7 @@ function getFilterSettingsByOnlyDefaultScope(settings) {
216
216
  readonly: true,
217
217
  },
218
218
  },
219
- displayed: false,
219
+ displayed: true,
220
220
  header: {
221
221
  displayed: false,
222
222
  filterButtonDisplayed: false,