@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 { 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);
@@ -6,7 +6,7 @@ import { getStatementCase } from "./helpers/getStatementCase";
6
6
  import { DATE_GROUPING_PROPERTY } from "../constants/DATE_GROUPING_PROPERTY";
7
7
  import { parseDate } from "./helpers/parseDate";
8
8
  import { DATETIME_FORMAT } from "./constants/DATE_FORMATS";
9
- export default class RelativeStatementAdapter {
9
+ export class RelativeStatementAdapter {
10
10
  constructor(statement, now = new Date()) {
11
11
  this.statement =
12
12
  typeof statement === "string" ? statement : formatStatement(statement);
@@ -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,4 +1,4 @@
1
- import RelativeStatementAdapter from "./RelativeStatementAdapter";
1
+ import { RelativeStatementAdapter } from "./RelativeStatementAdapter";
2
2
  /**
3
3
  * Resolve a list of relative statements according to operator
4
4
  * @example
@@ -14,10 +14,9 @@ import RelativeStatementAdapter from "./RelativeStatementAdapter";
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 function resolveRelative(statements, clock = new Date()) {
23
22
  return statements.map((s) => new RelativeStatementAdapter(s, clock).value());
@@ -1,6 +1,6 @@
1
1
  import { adaptFilterValues } from "./adaptFilterValues";
2
2
  import { isEmpty } from "../../general/mix/isEmpty";
3
- import { cloneDeep } from "../../general/object/cloneDeep";
3
+ import { objectCopy } from "../../general/object/objectCopy";
4
4
  import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
5
5
  import { _get } from "../../general/object/get";
6
6
  /**
@@ -15,7 +15,7 @@ export function FDToFlatUI(filterData, datasetsInfo = []) {
15
15
  isEmpty(filterData.scopes) ||
16
16
  filterData.scopes.length === 0)
17
17
  return uFilters;
18
- const _filterData = cloneDeep(filterData);
18
+ const _filterData = objectCopy(filterData);
19
19
  if (_filterData.version === "2.1") {
20
20
  uFilters = FD21ToFlatUI(_filterData.scopes, datasetsInfo);
21
21
  }
@@ -1,7 +1,7 @@
1
1
  import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
2
2
  import { adaptFilterValues } from "./adaptFilterValues";
3
3
  import { isEmpty } from "../../general/mix/isEmpty";
4
- import { cloneDeep } from "../../general/object/cloneDeep";
4
+ import { objectCopy } from "../../general/object/objectCopy";
5
5
  import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
6
6
  import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
7
7
  /**
@@ -14,7 +14,7 @@ export function FDToUI(filterData, datasetsInfo = []) {
14
14
  let ufData;
15
15
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
16
16
  return ufData;
17
- const _filterData = cloneDeep(filterData);
17
+ const _filterData = objectCopy(filterData);
18
18
  if (_filterData.version === "2.1") {
19
19
  ufData = FD21ToUI(_filterData.scopes, _filterData.section, _filterData.enabled, datasetsInfo, _filterData.version);
20
20
  }
@@ -1,4 +1,4 @@
1
- import { cloneDeep } from "../../general/object/cloneDeep";
1
+ import { objectCopy } from "../../general/object/objectCopy";
2
2
  import { isEmpty } from "../../general/mix/isEmpty";
3
3
  /**
4
4
  * Generates a Filter Data Structure structure from UI Filter Data structure.
@@ -11,7 +11,7 @@ export function UIToFD(uFilterData) {
11
11
  isEmpty(uFilterData.scopes) ||
12
12
  !Array.isArray(uFilterData.scopes))
13
13
  return sData;
14
- const _uFilterData = cloneDeep(uFilterData);
14
+ const _uFilterData = objectCopy(uFilterData);
15
15
  if (_uFilterData.version === "2.1") {
16
16
  sData = UI21ToFD(_uFilterData, _uFilterData.version);
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
2
2
  import { adaptFilterValues } from "./adaptFilterValues";
3
3
  import { isEmpty } from "../../general/mix/isEmpty";
4
- import { cloneDeep } from "../../general/object/cloneDeep";
4
+ import { objectCopy } from "../../general/object/objectCopy";
5
5
  /**
6
6
  * Generates a Flattened UI filter structure from UI Filter Data structure.
7
7
  * @param filterData The UI filter data object.
@@ -14,7 +14,7 @@ export function UIToFlatUI(filterData, datasetsInfo = []) {
14
14
  isEmpty(filterData.scopes) ||
15
15
  filterData.scopes.length === 0)
16
16
  return uFilters;
17
- const _filterData = cloneDeep(filterData);
17
+ const _filterData = objectCopy(filterData);
18
18
  if (_filterData.version === "2.1") {
19
19
  uFilters = UI21ToFlatUI(_filterData.scopes, datasetsInfo);
20
20
  }
@@ -4,7 +4,7 @@ import { adaptFilterValues } from "./adaptFilterValues";
4
4
  import { flatUIToOldLogic } from "./flatUIToOldLogic";
5
5
  import { UIToFlatUI } from "./UIToFlatUI";
6
6
  import { isEmpty } from "../../general/mix/isEmpty";
7
- import { cloneDeep } from "../../general/object/cloneDeep";
7
+ import { objectCopy } from "../../general/object/objectCopy";
8
8
  import { getBackendGroupValue } from "../helpers/backend/getBackendGroupValue";
9
9
  import { getBackendProperty } from "../helpers/backend/getBackendProperty";
10
10
  import { getBackendValidator } from "../helpers/backend/getBackendValidator";
@@ -14,7 +14,7 @@ export function UIToOldLogic(uFilterData, flattedMethod = true) {
14
14
  let oldFilterData;
15
15
  if (isEmpty(uFilterData) || isEmpty(uFilterData.scopes))
16
16
  return oldFilterData;
17
- const _uFilterData = cloneDeep(uFilterData);
17
+ const _uFilterData = objectCopy(uFilterData);
18
18
  if (_uFilterData.version === "2.1") {
19
19
  oldFilterData = flattedMethod
20
20
  ? flatUIToOldLogic(UIToFlatUI(_uFilterData), _uFilterData.section)
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../general/object/objectCopy";
3
3
  import { _get } from "../../general/object/get";
4
4
  import { logicToUI } from "./logicToUI";
5
5
  import { FDToUI } from "./FDToUI";
@@ -15,7 +15,7 @@ import { logicToFD } from "./logicToFD";
15
15
  export function adaptFilterData(filterData, getUIFilterData = true, datasetsInfo = []) {
16
16
  if (isEmpty(filterData))
17
17
  return;
18
- const _filterData = cloneDeep(filterData);
18
+ const _filterData = objectCopy(filterData);
19
19
  if (!isEmpty(_get(_filterData, "logic"))) {
20
20
  return getUIFilterData
21
21
  ? logicToUI(_get(_filterData, "logic"), _get(_filterData, "section"), _get(_filterData, "enabled"))
@@ -3,7 +3,7 @@ import { isEmpty } from "../../general/mix/isEmpty";
3
3
  import { adaptFilterValues } from "./adaptFilterValues";
4
4
  import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
5
5
  import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
6
- import { cloneDeep } from "../../general/object/cloneDeep";
6
+ import { objectCopy } from "../../general/object/objectCopy";
7
7
  /**
8
8
  * Generates a filter data structure from the flatttened UI filters.
9
9
  * @param uFilters Array of flattened filters from UI
@@ -81,7 +81,7 @@ function buildDataset(uFilter) {
81
81
  * @returns an filter structure
82
82
  */
83
83
  function buildFilter(uFilter) {
84
- const _uFilter = cloneDeep(uFilter);
84
+ const _uFilter = objectCopy(uFilter);
85
85
  const info = !isEmpty(_uFilter.extras.info)
86
86
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
87
87
  : undefined;
@@ -1,6 +1,6 @@
1
1
  import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
2
2
  import { isEmpty } from "../../general/mix/isEmpty";
3
- import { cloneDeep } from "../../general/object/cloneDeep";
3
+ import { objectCopy } from "../../general/object/objectCopy";
4
4
  import { getUIValues } from "../helpers/ui/getUIValues";
5
5
  import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
6
6
  import { _get } from "../../general/object/get";
@@ -24,7 +24,7 @@ export function flatUIToOldLogic(uFilters, section = FILTER_SECTION.ANYWHERE) {
24
24
  let oldFilterData;
25
25
  if (isEmpty(uFilters))
26
26
  return oldFilterData;
27
- const uFilterss = cloneDeep(uFilters);
27
+ const uFilterss = objectCopy(uFilters);
28
28
  const filterDetails = flatUIToOldFilterDetail(uFilterss);
29
29
  return {
30
30
  collapsed: false,
@@ -4,7 +4,7 @@ import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
4
4
  import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
5
5
  import { getLastIndexFromArray } from "../../general/array/getLastIndexFromArray";
6
6
  import { isEmpty } from "../../general/mix/isEmpty";
7
- import { cloneDeep } from "../../general/object/cloneDeep";
7
+ import { objectCopy } from "../../general/object/objectCopy";
8
8
  /**
9
9
  * Generates a UI filter data structure from the flatttened UI filters.
10
10
  * @param uFilters Array of flattened filters from UI
@@ -91,7 +91,7 @@ function buildDataset(uFilter) {
91
91
  * @returns an filter structure
92
92
  */
93
93
  function buildFilter(uFilter) {
94
- const _uFilter = cloneDeep(uFilter);
94
+ const _uFilter = objectCopy(uFilter);
95
95
  const info = !isEmpty(_uFilter.extras.info)
96
96
  ? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
97
97
  : 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
  }
@@ -1,6 +1,6 @@
1
1
  import { COLUMN } from "../../columns/constants/COLUMN";
2
2
  import { isEmpty } from "../../general/mix/isEmpty";
3
- import { cloneDeep } from "../../general/object/cloneDeep";
3
+ import { objectCopy } from "../../general/object/objectCopy";
4
4
  import { _get } from "../../general/object/get";
5
5
  import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
6
6
  /**
@@ -46,7 +46,7 @@ export function getAggFilters(logics = [], summaries = []) {
46
46
  * @returns the aggregate filters in the IFilterFilters way or as logic structure.
47
47
  */
48
48
  function getAggregateFilters(logics = []) {
49
- const _logics = cloneDeep(logics);
49
+ const _logics = objectCopy(logics);
50
50
  return _logics.reduce((newLogics, logic) => {
51
51
  if (!logic)
52
52
  return newLogics;
@@ -1,4 +1,4 @@
1
- import { cloneDeep } from "../../../general/object/cloneDeep";
1
+ import { objectCopy } from "../../../general/object/objectCopy";
2
2
  import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
3
3
  /**
4
4
  * Gets the filters from logic data by Scopes/Scope IDs.
@@ -7,7 +7,7 @@ import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
7
7
  * @returns a new Logic array
8
8
  */
9
9
  export function getLogicByScopes(logics = [], scopes = []) {
10
- const _logics = cloneDeep(logics);
10
+ const _logics = objectCopy(logics);
11
11
  return scopes.reduce((newScopes, scope) => {
12
12
  const filteredScopes = _logics.filter((logic) => scope.label === logic.scope &&
13
13
  (scope.id === logic.scopeid ||
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
5
5
  * @param filterData The filter data object
@@ -8,7 +8,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
8
8
  export function excludeFiltersByAggregateColumn(filterData) {
9
9
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
10
10
  return;
11
- const _filterData = cloneDeep(filterData);
11
+ const _filterData = objectCopy(filterData);
12
12
  _filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
13
13
  if (isEmpty(scope))
14
14
  return scopes;
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Excludes filters from the given Filters.
5
5
  * The validation to filter the stored filter is depending on:
@@ -20,7 +20,7 @@ export function excludeFiltersByParams(filterData, params) {
20
20
  return;
21
21
  if (isEmpty(params))
22
22
  return filterData;
23
- const _filterData = cloneDeep(filterData);
23
+ const _filterData = objectCopy(filterData);
24
24
  _filterData.scopes = _filterData.scopes
25
25
  .map((scope) => {
26
26
  if (resolveScopeConditions(scope, params)) {
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Excludes and returns a filter data without filters by the given scopes
5
5
  * @param filterData The Filter Data
@@ -9,7 +9,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
9
9
  export function excludeFiltersByScopes(filterData, scopes) {
10
10
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
11
11
  return;
12
- const _filterData = cloneDeep(filterData);
12
+ const _filterData = objectCopy(filterData);
13
13
  _filterData.scopes = _filterData.scopes.filter((scope) => !scopes.includes(scope.scope));
14
14
  return _filterData.scopes.length > 0 ? _filterData : undefined;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
5
5
  * @param filterData The filter data object
@@ -8,7 +8,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
8
8
  export function getFiltersByAggregateColumn(filterData) {
9
9
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
10
10
  return;
11
- const _filterData = cloneDeep(filterData);
11
+ const _filterData = objectCopy(filterData);
12
12
  _filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
13
13
  if (isEmpty(scope))
14
14
  return scopes;
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  import { _hasProperty } from "../../../general/object/hasProperty";
4
4
  import { getParamsToGetFilterSettings } from "./getParamsToGetFilterSettings";
5
5
  import { resolveDatasetConditions } from "./resolveDatasetConditions";
@@ -25,7 +25,7 @@ export function getFiltersByParams(filterData, params, settings) {
25
25
  return;
26
26
  if (isEmpty(params))
27
27
  return filterData;
28
- const _filterData = cloneDeep(filterData);
28
+ const _filterData = objectCopy(filterData);
29
29
  const defaultSettings = getParamsToGetFilterSettings(settings);
30
30
  _filterData.scopes = _filterData.scopes
31
31
  .map((scope) => {
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Filters and gets a Filter Data by the given scopes
5
5
  * @param filterData The Filter Data
@@ -9,7 +9,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
9
9
  export function getFiltersByScopes(filterData, scopes) {
10
10
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
11
11
  return;
12
- const _filterData = cloneDeep(filterData);
12
+ const _filterData = objectCopy(filterData);
13
13
  _filterData.scopes = _filterData.scopes.filter((scope) => scopes.includes(scope.scope));
14
14
  return _filterData.scopes.length > 0 ? _filterData : undefined;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
4
4
  /**
5
5
  * Gets filters from Filter Data by Scopes/Scope IDs.
@@ -10,7 +10,7 @@ import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
10
10
  export function getFiltersByScopesIds(filterData, scopes = []) {
11
11
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
12
12
  return;
13
- const _filterData = cloneDeep(filterData);
13
+ const _filterData = objectCopy(filterData);
14
14
  _filterData.scopes = scopes.reduce((newScopes, scope) => {
15
15
  const filteredScopes = _filterData.scopes.filter((fScope) => scope.label === fScope.scope &&
16
16
  (scope.id === fScope.scopeid ||
@@ -1,7 +1,7 @@
1
1
  import { getFiltersByScopesIds } from "./getFiltersByScopesIds";
2
2
  import { getFiltersByParams } from "./getFiltersByParams";
3
3
  import { isEmpty } from "../../../general/mix/isEmpty";
4
- import { cloneDeep } from "../../../general/object/cloneDeep";
4
+ import { objectCopy } from "../../../general/object/objectCopy";
5
5
  /**
6
6
  * Get a new Filter Data by filtering scopes/scope IDs and enabled flags
7
7
  * @param filterData a Filter Data or UI Filter Data
@@ -11,7 +11,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
11
11
  export function getFiltersByVisibility(filterData, scopes) {
12
12
  if (isEmpty(filterData) || isEmpty(filterData.scopes))
13
13
  return;
14
- let _filterData = cloneDeep(filterData);
14
+ let _filterData = objectCopy(filterData);
15
15
  _filterData = getFiltersByScopesIds(_filterData, scopes);
16
16
  _filterData = getFiltersByParams(_filterData, { enableds: { datasets: true, scopes: true, values: true } }, { filterEmptyArrays: { filter: false } });
17
17
  return _filterData;
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  import { mergeDeep } from "../../../general/object/mergeDeep";
4
4
  import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
5
5
  import { FILTER_SETTINGS_DEFAULT } from "../../constants/settings/FILTER_SETTINGS_DEFAULT";
@@ -15,7 +15,7 @@ import { getScopesToDisplay } from "./getScopesToDisplay";
15
15
  * @returns a new filter settings object
16
16
  */
17
17
  export function getFilterSettings(filterSettings, allowedScopes = [], otherSettings) {
18
- let settings = mergeDeep(FILTER_SETTINGS_DEFAULT, cloneDeep(filterSettings));
18
+ let settings = mergeDeep(FILTER_SETTINGS_DEFAULT, objectCopy(filterSettings));
19
19
  settings = mergeDeep(settings, otherSettings);
20
20
  const scopesSettings = getScopesToDisplay(settings).filter((scope) => allowedScopes.includes(scope.id));
21
21
  if (scopesSettings.length > 1) {
@@ -118,7 +118,7 @@ function getFilterSettingsByNoScopes(settings) {
118
118
  },
119
119
  },
120
120
  colorized: false,
121
- displayed: false,
121
+ displayed: true,
122
122
  header: {
123
123
  filterButtonDisplayed: false,
124
124
  menu: {
@@ -212,7 +212,7 @@ function getFilterSettingsByOnlyDefaultScope(settings) {
212
212
  readonly: true,
213
213
  },
214
214
  },
215
- displayed: false,
215
+ displayed: true,
216
216
  header: {
217
217
  displayed: false,
218
218
  filterButtonDisplayed: false,
@@ -1,10 +1,10 @@
1
- import { cloneDeep } from "../../../general/object/cloneDeep";
1
+ import { objectCopy } from "../../../general/object/objectCopy";
2
2
  /**
3
3
  * Excludes Aggregate Filters in the Flattened UI Filters array
4
4
  * @param uFilters Collection of Flat UI Filters
5
5
  * @returns a new Flat UI Filters that were excluded the aggregate filters
6
6
  */
7
7
  export function excludeUIFiltersByAggregate(uFilters = []) {
8
- const _uFilters = cloneDeep(uFilters);
8
+ const _uFilters = objectCopy(uFilters);
9
9
  return _uFilters.filter((uFilter) => uFilter.column.aggregate == null);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Excludes and returns a UI Flat Filters without filters by the given scopes
5
5
  * @param uFilters The Flatten UI Filters
@@ -9,6 +9,6 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
9
9
  export function excludeUIFlatFiltersByScopes(uFilters = [], scopes = []) {
10
10
  if (isEmpty(uFilters))
11
11
  return [];
12
- const _uFilters = cloneDeep(uFilters);
12
+ const _uFilters = objectCopy(uFilters);
13
13
  return _uFilters.filter((uFilter) => !scopes.includes(uFilter.extras.scope));
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
4
4
  /**
5
5
  * Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
@@ -16,7 +16,7 @@ import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
16
16
  export function getUIFlatFilterByParams(uFilters = [], params = {}, getIndex = false) {
17
17
  if (isEmpty(params))
18
18
  return;
19
- const _uFilters = cloneDeep(uFilters);
19
+ const _uFilters = objectCopy(uFilters);
20
20
  return getIndex
21
21
  ? _uFilters.findIndex((filter) => resolveUIFlatFilterByParams(filter, params))
22
22
  : _uFilters.find((filter) => resolveUIFlatFilterByParams(filter, params));
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
4
4
  /**
5
5
  * Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
@@ -17,6 +17,6 @@ import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
17
17
  export function getUIFlatFiltersByParams(uFilters = [], params = {}) {
18
18
  if (isEmpty(params))
19
19
  return;
20
- const _uFilters = cloneDeep(uFilters);
20
+ const _uFilters = objectCopy(uFilters);
21
21
  return _uFilters.filter((filter) => resolveUIFlatFilterByParams(filter, params));
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import { isEmpty } from "../../../general/mix/isEmpty";
2
- import { cloneDeep } from "../../../general/object/cloneDeep";
2
+ import { objectCopy } from "../../../general/object/objectCopy";
3
3
  /**
4
4
  * Filters and gets a UI Flatten Filters by the given scopes
5
5
  * @param uFilters The Flatten UI Filters
@@ -9,6 +9,6 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
9
9
  export function getUIFlatFiltersByScopes(uFilters = [], scopes = []) {
10
10
  if (isEmpty(uFilters))
11
11
  return [];
12
- const _uFilters = cloneDeep(uFilters);
12
+ const _uFilters = objectCopy(uFilters);
13
13
  return _uFilters.filter((uFilter) => scopes.includes(uFilter.extras.scope));
14
14
  }
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import UChartPaginationApi from "./UChartPaginationApi";
11
- import UChartApi from "./UChartApi";
10
+ import { UChartPaginationApi } from "./UChartPaginationApi";
11
+ import { UChartApi } from "./UChartApi";
12
12
  import { isRangeValidator } from "../helpers/common/isRangeValidator";
13
13
  import { getFiltersByVisibility } from "../helpers/common/getFiltersByVisibility";
14
14
  import { excludeFiltersByAggregateColumn } from "../helpers/common/excludeFiltersByAggregateColumn";
@@ -3,7 +3,7 @@ import { IFilterConfig } from "../interfaces/common/IFilterConfig";
3
3
  import { IFUFlattenedFilter } from "../interfaces/ui/IFUFlattenedFilter";
4
4
  import { IFBLogic } from "../interfaces/backend/IFBLogic";
5
5
  import { IFUChartSettings } from "../interfaces/ui/IFUChartSettings";
6
- export default class UChartApi {
6
+ export declare class UChartApi {
7
7
  /**
8
8
  * Gets a promise with a resulting data
9
9
  * @param config the config
@@ -1,7 +1,7 @@
1
1
  import { isDateColumn } from "../../columns/helpers/isDateColumn";
2
2
  import { isNumericalColumn } from "../../columns/helpers/isNumericalColumn";
3
3
  import { isRangeValidator } from "../helpers/common/isRangeValidator";
4
- import { cloneDeep } from "../../general/object/cloneDeep";
4
+ import { objectCopy } from "../../general/object/objectCopy";
5
5
  import { isEmpty } from "../../general/mix/isEmpty";
6
6
  import { COLUMN } from "../../columns/constants/COLUMN";
7
7
  import { getAggFiltersBySummaryIndex } from "../helpers/backend/getAggFiltersBySummaryIndex";
@@ -11,7 +11,7 @@ import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
11
11
  import { flatUIToOldLogic } from "../adapters/flatUIToOldLogic";
12
12
  import ChartsApi from "../../services/api/Charts.api";
13
13
  import { getAggFilters } from "../helpers/OLD_getAggFilters";
14
- class UChartApi {
14
+ export class UChartApi {
15
15
  constructor() {
16
16
  /**
17
17
  * Gets a promise with a resulting data
@@ -243,7 +243,7 @@ UChartApi._getSummariesBody = (uFilter) => {
243
243
  * @returns the body structure
244
244
  */
245
245
  UChartApi._refineBodies = (bodies, uFilter) => {
246
- const _bodies = cloneDeep(bodies);
246
+ const _bodies = objectCopy(bodies);
247
247
  if (uFilter.property != null) {
248
248
  _bodies.forEach((body) => {
249
249
  if (isDateColumn(uFilter.column) ||
@@ -294,4 +294,3 @@ UChartApi.isResultEmpty = (resultObject, validateNesteddata = false) => {
294
294
  }
295
295
  return validation;
296
296
  };
297
- export default UChartApi;
@@ -4,7 +4,7 @@ import { IFUFlattenedFilter } from "../interfaces/ui/IFUFlattenedFilter";
4
4
  import { IFBLogic } from "../interfaces/backend/IFBLogic";
5
5
  import { IFUChartSettings } from "../interfaces/ui/IFUChartSettings";
6
6
  import { IFUColumn } from "../interfaces/ui/IFUColumn";
7
- export default class UChartPaginationApi {
7
+ export declare class UChartPaginationApi {
8
8
  afterKey: any;
9
9
  uFilter: IFUFlattenedFilter;
10
10
  /**
@@ -9,10 +9,10 @@ import { getAggFiltersBySummaryIndex } from "../helpers/backend/getAggFiltersByS
9
9
  import { COLUMN } from "../../columns/constants/COLUMN";
10
10
  import { _get } from "../../general/object/get";
11
11
  import { AGGREGATE } from "../../charts/constants/AGGREGATE";
12
- import { cloneDeep } from "../../general/object/cloneDeep";
12
+ import { objectCopy } from "../../general/object/objectCopy";
13
13
  import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
14
14
  import { flatUIToOldLogic } from "../adapters/flatUIToOldLogic";
15
- class UChartPaginationApi {
15
+ export class UChartPaginationApi {
16
16
  constructor() {
17
17
  /**
18
18
  * Gets afterKey object
@@ -85,7 +85,7 @@ class UChartPaginationApi {
85
85
  * @param uFilter
86
86
  */
87
87
  this.setProps = (uFilter) => {
88
- this.uFilter = cloneDeep(uFilter);
88
+ this.uFilter = objectCopy(uFilter);
89
89
  };
90
90
  }
91
91
  /**
@@ -253,7 +253,7 @@ UChartPaginationApi._getSummariesBody = (uFilter) => {
253
253
  * @returns the body structure
254
254
  */
255
255
  UChartPaginationApi._refineBodies = (bodies, uFilter) => {
256
- const _bodies = cloneDeep(bodies);
256
+ const _bodies = objectCopy(bodies);
257
257
  if (uFilter.property != null) {
258
258
  _bodies.forEach((body) => {
259
259
  if (isDateColumn(uFilter.column) ||
@@ -326,4 +326,3 @@ UChartPaginationApi.isResultPaginationEmpty = (resultObject) => {
326
326
  const result = _get(resultObject, "data");
327
327
  return isEmpty(result);
328
328
  };
329
- export default UChartPaginationApi;