nuxeo-development-framework 5.3.0 → 5.3.2

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 (245) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +3143 -604
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/reports/charts/chart.const.js +3 -0
  4. package/esm2015/lib/components/reports/charts/chart.token.js +3 -0
  5. package/esm2015/lib/components/reports/charts/charts.module.js +19 -0
  6. package/esm2015/lib/components/reports/charts/components/base-chart.component.js +41 -0
  7. package/esm2015/lib/components/reports/charts/components/chart.component.js +127 -0
  8. package/esm2015/lib/components/reports/charts/components/data-chart.component.js +167 -0
  9. package/esm2015/lib/components/reports/charts/components/index.js +4 -0
  10. package/esm2015/lib/components/reports/charts/defaults/bar.js +18 -0
  11. package/esm2015/lib/components/reports/charts/defaults/doughnut.js +15 -0
  12. package/esm2015/lib/components/reports/charts/defaults/index.js +5 -0
  13. package/esm2015/lib/components/reports/charts/defaults/line.js +25 -0
  14. package/esm2015/lib/components/reports/charts/defaults/pie.js +15 -0
  15. package/esm2015/lib/components/reports/charts/index.js +2 -0
  16. package/esm2015/lib/components/reports/charts/models/index.js +5 -0
  17. package/esm2015/lib/components/reports/charts/models/options.js +2 -0
  18. package/esm2015/lib/components/reports/charts/models/plugins-options.js +2 -0
  19. package/esm2015/lib/components/reports/charts/models/response.js +2 -0
  20. package/esm2015/lib/components/reports/charts/models/statistic-request-config.js +2 -0
  21. package/esm2015/lib/components/reports/charts/plugins/data-labels.js +144 -0
  22. package/esm2015/lib/components/reports/charts/plugins/doughnut-center-text.js +25 -0
  23. package/esm2015/lib/components/reports/charts/plugins/doughnut-empty-state.js +34 -0
  24. package/esm2015/lib/components/reports/charts/plugins/index.js +6 -0
  25. package/esm2015/lib/components/reports/charts/plugins/legend-margin.js +16 -0
  26. package/esm2015/lib/components/reports/charts/plugins/scrollable-legends.js +67 -0
  27. package/esm2015/lib/components/reports/charts/public-api.js +10 -0
  28. package/esm2015/lib/components/reports/charts/services/index.js +2 -0
  29. package/esm2015/lib/components/reports/charts/services/statistic.service.js +75 -0
  30. package/esm2015/lib/components/reports/charts/utility/colors.js +74 -0
  31. package/esm2015/lib/components/reports/charts/utility/common.js +7 -0
  32. package/esm2015/lib/components/reports/charts/utility/css.js +132 -0
  33. package/esm2015/lib/components/reports/charts/utility/index.js +4 -0
  34. package/esm2015/lib/components/reports/ndf-reports/base/base-chart.js +53 -0
  35. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +37 -0
  36. package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +68 -0
  37. package/esm2015/lib/components/reports/ndf-reports/charts-components/digit-chart/digit-chart.component.js +36 -0
  38. package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +65 -0
  39. package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.service.js +14 -0
  40. package/esm2015/lib/components/reports/ndf-reports/charts-components/index.js +3 -0
  41. package/esm2015/lib/components/reports/ndf-reports/components/_parts/chart-type-selector/chart-type-selector.component.js +71 -0
  42. package/esm2015/lib/components/reports/ndf-reports/components/_parts/graph-dialog/graph-dialog.component.js +66 -0
  43. package/esm2015/lib/components/reports/ndf-reports/components/_parts/index.js +5 -0
  44. package/esm2015/lib/components/reports/ndf-reports/components/_parts/time-group-selector/time-group-selector.component.js +55 -0
  45. package/esm2015/lib/components/reports/ndf-reports/components/_parts/timeline-dialog/timeline-dialog.component.js +47 -0
  46. package/esm2015/lib/components/reports/ndf-reports/components/chart-panel.component.js +61 -0
  47. package/esm2015/lib/components/reports/ndf-reports/components/digit-report/digit-report.component.js +25 -0
  48. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +73 -0
  49. package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +61 -0
  50. package/esm2015/lib/components/reports/ndf-reports/components/index.js +6 -0
  51. package/esm2015/lib/components/reports/ndf-reports/constants/charts-types.js +13 -0
  52. package/esm2015/lib/components/reports/ndf-reports/constants/index.js +3 -0
  53. package/esm2015/lib/components/reports/ndf-reports/constants/time-group.js +7 -0
  54. package/esm2015/lib/components/reports/ndf-reports/containers/index.js +3 -0
  55. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +42 -0
  56. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +245 -0
  57. package/esm2015/lib/components/reports/ndf-reports/directives/index.js +2 -0
  58. package/esm2015/lib/components/reports/ndf-reports/directives/scrollable-div.directive.js +35 -0
  59. package/esm2015/lib/components/reports/ndf-reports/index.js +2 -0
  60. package/esm2015/lib/components/reports/ndf-reports/models/base.js +2 -0
  61. package/esm2015/lib/components/reports/ndf-reports/models/common.js +2 -0
  62. package/esm2015/lib/components/reports/ndf-reports/models/details.js +2 -0
  63. package/esm2015/lib/components/reports/ndf-reports/models/dialog-data.js +2 -0
  64. package/esm2015/lib/components/reports/ndf-reports/models/digit.js +2 -0
  65. package/esm2015/lib/components/reports/ndf-reports/models/dynamic-line.js +2 -0
  66. package/esm2015/lib/components/reports/ndf-reports/models/graph.js +2 -0
  67. package/esm2015/lib/components/reports/ndf-reports/models/index.js +13 -0
  68. package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +2 -0
  69. package/esm2015/lib/components/reports/ndf-reports/models/report-config.js +2 -0
  70. package/esm2015/lib/components/reports/ndf-reports/models/report-data-source.js +2 -0
  71. package/esm2015/lib/components/reports/ndf-reports/models/report-response.model.js +2 -0
  72. package/esm2015/lib/components/reports/ndf-reports/models/request.js +2 -0
  73. package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +101 -0
  74. package/esm2015/lib/components/reports/ndf-reports/options/doughnut.js +29 -0
  75. package/esm2015/lib/components/reports/ndf-reports/options/horizontal-bar.js +48 -0
  76. package/esm2015/lib/components/reports/ndf-reports/options/index.js +7 -0
  77. package/esm2015/lib/components/reports/ndf-reports/options/line.js +41 -0
  78. package/esm2015/lib/components/reports/ndf-reports/options/options.js +15 -0
  79. package/esm2015/lib/components/reports/ndf-reports/options/pie.js +28 -0
  80. package/esm2015/lib/components/reports/ndf-reports/options/vertical-bar.js +41 -0
  81. package/esm2015/lib/components/reports/ndf-reports/public-api.js +6 -0
  82. package/esm2015/lib/components/reports/ndf-reports/services/base-chart-builder.service.js +103 -0
  83. package/esm2015/lib/components/reports/ndf-reports/services/chart-data-transformers.service.js +97 -0
  84. package/esm2015/lib/components/reports/ndf-reports/services/chart-manager.service.js +131 -0
  85. package/esm2015/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.js +49 -0
  86. package/esm2015/lib/components/reports/ndf-reports/services/digit-chart.service.js +42 -0
  87. package/esm2015/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.js +72 -0
  88. package/esm2015/lib/components/reports/ndf-reports/services/index.js +11 -0
  89. package/esm2015/lib/components/reports/ndf-reports/services/ndf-reports.service.js +49 -0
  90. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +82 -0
  91. package/esm2015/lib/components/reports/ndf-reports/services/report-transform.service.js +98 -0
  92. package/esm2015/lib/components/reports/ndf-reports/services/reports-state.service.js +19 -0
  93. package/esm2015/lib/components/reports/ndf-reports/utilities/index.js +2 -0
  94. package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +44 -0
  95. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
  96. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +81 -33
  97. package/esm2015/lib/components/tables/ndf-table/filters-panel/index.js +1 -2
  98. package/esm2015/lib/components/tables/ndf-table/filters-panel/models/types-helper.js +1 -1
  99. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.js +2 -2
  100. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/index.js +1 -2
  101. package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +2 -2
  102. package/esm2015/lib/components/tables/ndf-table/services/index.js +2 -1
  103. package/esm2015/lib/components/tables/ndf-table/services/ndf-table-configuration.service.js +28 -0
  104. package/esm2015/lib/core/env/env-manager.js +1 -1
  105. package/esm2015/lib/core/services/index.js +2 -1
  106. package/esm2015/lib/core/services/ndf-transform.service.js +80 -0
  107. package/esm2015/lib/shared/components/index.js +3 -3
  108. package/esm2015/lib/shared/services/index.js +2 -2
  109. package/esm2015/public-api.js +8 -6
  110. package/fesm2015/nuxeo-development-framework.js +2778 -437
  111. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  112. package/lib/components/{charts → reports/charts}/components/base-chart.component.d.ts +1 -1
  113. package/lib/components/reports/charts/index.d.ts +1 -0
  114. package/lib/components/reports/charts/plugins/data-labels.d.ts +3 -0
  115. package/lib/components/{charts → reports/charts}/plugins/index.d.ts +2 -0
  116. package/lib/components/reports/charts/plugins/scrollable-legends.d.ts +6 -0
  117. package/lib/components/{charts → reports/charts}/services/statistic.service.d.ts +2 -2
  118. package/lib/components/reports/charts/utility/css.d.ts +45 -0
  119. package/lib/components/{charts → reports/charts}/utility/index.d.ts +1 -0
  120. package/lib/components/reports/ndf-reports/base/base-chart.d.ts +27 -0
  121. package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +19 -0
  122. package/lib/components/reports/ndf-reports/base/base-report.d.ts +58 -0
  123. package/lib/components/reports/ndf-reports/charts-components/digit-chart/digit-chart.component.d.ts +14 -0
  124. package/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.d.ts +23 -0
  125. package/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.service.d.ts +6 -0
  126. package/lib/components/reports/ndf-reports/charts-components/index.d.ts +2 -0
  127. package/lib/components/reports/ndf-reports/components/_parts/chart-type-selector/chart-type-selector.component.d.ts +23 -0
  128. package/lib/components/reports/ndf-reports/components/_parts/graph-dialog/graph-dialog.component.d.ts +17 -0
  129. package/lib/components/reports/ndf-reports/components/_parts/index.d.ts +4 -0
  130. package/lib/components/reports/ndf-reports/components/_parts/time-group-selector/time-group-selector.component.d.ts +21 -0
  131. package/lib/components/reports/ndf-reports/components/_parts/timeline-dialog/timeline-dialog.component.d.ts +19 -0
  132. package/lib/components/reports/ndf-reports/components/chart-panel.component.d.ts +13 -0
  133. package/lib/components/reports/ndf-reports/components/digit-report/digit-report.component.d.ts +7 -0
  134. package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +20 -0
  135. package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +12 -0
  136. package/lib/components/reports/ndf-reports/components/index.d.ts +5 -0
  137. package/lib/components/reports/ndf-reports/constants/charts-types.d.ts +12 -0
  138. package/lib/components/reports/ndf-reports/constants/index.d.ts +2 -0
  139. package/lib/components/reports/ndf-reports/constants/time-group.d.ts +6 -0
  140. package/lib/components/reports/ndf-reports/containers/index.d.ts +2 -0
  141. package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +32 -0
  142. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +92 -0
  143. package/lib/components/reports/ndf-reports/directives/index.d.ts +1 -0
  144. package/lib/components/reports/ndf-reports/directives/scrollable-div.directive.d.ts +14 -0
  145. package/lib/components/reports/ndf-reports/index.d.ts +1 -0
  146. package/lib/components/reports/ndf-reports/models/base.d.ts +18 -0
  147. package/lib/components/reports/ndf-reports/models/common.d.ts +20 -0
  148. package/lib/components/reports/ndf-reports/models/details.d.ts +16 -0
  149. package/lib/components/reports/ndf-reports/models/dialog-data.d.ts +12 -0
  150. package/lib/components/reports/ndf-reports/models/digit.d.ts +17 -0
  151. package/lib/components/reports/ndf-reports/models/dynamic-line.d.ts +52 -0
  152. package/lib/components/reports/ndf-reports/models/graph.d.ts +56 -0
  153. package/lib/components/reports/ndf-reports/models/index.d.ts +12 -0
  154. package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +22 -0
  155. package/lib/components/reports/ndf-reports/models/report-config.d.ts +5 -0
  156. package/lib/components/reports/ndf-reports/models/report-data-source.d.ts +7 -0
  157. package/lib/components/reports/ndf-reports/models/report-response.model.d.ts +4 -0
  158. package/lib/components/reports/ndf-reports/models/request.d.ts +10 -0
  159. package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +34 -0
  160. package/lib/components/reports/ndf-reports/options/doughnut.d.ts +7 -0
  161. package/lib/components/reports/ndf-reports/options/horizontal-bar.d.ts +7 -0
  162. package/lib/components/reports/ndf-reports/options/index.d.ts +6 -0
  163. package/lib/components/reports/ndf-reports/options/line.d.ts +7 -0
  164. package/lib/components/reports/ndf-reports/options/options.d.ts +2 -0
  165. package/lib/components/reports/ndf-reports/options/pie.d.ts +7 -0
  166. package/lib/components/reports/ndf-reports/options/vertical-bar.d.ts +7 -0
  167. package/lib/components/reports/ndf-reports/public-api.d.ts +5 -0
  168. package/lib/components/reports/ndf-reports/services/base-chart-builder.service.d.ts +59 -0
  169. package/lib/components/reports/ndf-reports/services/chart-data-transformers.service.d.ts +68 -0
  170. package/lib/components/reports/ndf-reports/services/chart-manager.service.d.ts +18 -0
  171. package/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.d.ts +34 -0
  172. package/lib/components/reports/ndf-reports/services/digit-chart.service.d.ts +11 -0
  173. package/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.d.ts +32 -0
  174. package/lib/components/reports/ndf-reports/services/index.d.ts +10 -0
  175. package/lib/components/reports/ndf-reports/services/ndf-reports.service.d.ts +19 -0
  176. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +34 -0
  177. package/lib/components/reports/ndf-reports/services/report-transform.service.d.ts +18 -0
  178. package/lib/components/reports/ndf-reports/services/reports-state.service.d.ts +7 -0
  179. package/lib/components/reports/ndf-reports/utilities/index.d.ts +1 -0
  180. package/lib/components/reports/ndf-reports/utilities/reports-table.mapper.d.ts +3 -0
  181. package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +33 -14
  182. package/lib/components/tables/ndf-table/filters-panel/index.d.ts +0 -1
  183. package/lib/components/tables/ndf-table/filters-panel/models/types-helper.d.ts +1 -9
  184. package/lib/components/tables/ndf-table/filters-panel/services/aggregation-field.service.d.ts +1 -1
  185. package/lib/components/tables/ndf-table/filters-panel/services/index.d.ts +0 -1
  186. package/lib/components/tables/ndf-table/services/index.d.ts +1 -0
  187. package/lib/components/tables/ndf-table/services/ndf-table-configuration.service.d.ts +14 -0
  188. package/lib/core/env/env-manager.d.ts +1 -0
  189. package/lib/core/services/index.d.ts +1 -0
  190. package/lib/{components/tables/ndf-table/filters-panel → core}/services/ndf-transform.service.d.ts +7 -1
  191. package/lib/shared/components/index.d.ts +2 -2
  192. package/lib/shared/services/index.d.ts +1 -1
  193. package/package.json +1 -1
  194. package/public-api.d.ts +7 -5
  195. package/esm2015/lib/components/charts/chart.const.js +0 -3
  196. package/esm2015/lib/components/charts/chart.token.js +0 -3
  197. package/esm2015/lib/components/charts/charts.module.js +0 -19
  198. package/esm2015/lib/components/charts/components/base-chart.component.js +0 -41
  199. package/esm2015/lib/components/charts/components/chart.component.js +0 -127
  200. package/esm2015/lib/components/charts/components/data-chart.component.js +0 -167
  201. package/esm2015/lib/components/charts/components/index.js +0 -4
  202. package/esm2015/lib/components/charts/defaults/bar.js +0 -18
  203. package/esm2015/lib/components/charts/defaults/doughnut.js +0 -15
  204. package/esm2015/lib/components/charts/defaults/index.js +0 -5
  205. package/esm2015/lib/components/charts/defaults/line.js +0 -25
  206. package/esm2015/lib/components/charts/defaults/pie.js +0 -15
  207. package/esm2015/lib/components/charts/index.js +0 -10
  208. package/esm2015/lib/components/charts/models/index.js +0 -5
  209. package/esm2015/lib/components/charts/models/options.js +0 -2
  210. package/esm2015/lib/components/charts/models/plugins-options.js +0 -2
  211. package/esm2015/lib/components/charts/models/response.js +0 -2
  212. package/esm2015/lib/components/charts/models/statistic-request-config.js +0 -2
  213. package/esm2015/lib/components/charts/plugins/doughnut-center-text.js +0 -25
  214. package/esm2015/lib/components/charts/plugins/doughnut-empty-state.js +0 -34
  215. package/esm2015/lib/components/charts/plugins/index.js +0 -4
  216. package/esm2015/lib/components/charts/plugins/legend-margin.js +0 -16
  217. package/esm2015/lib/components/charts/services/index.js +0 -2
  218. package/esm2015/lib/components/charts/services/statistic.service.js +0 -75
  219. package/esm2015/lib/components/charts/utility/colors.js +0 -79
  220. package/esm2015/lib/components/charts/utility/common.js +0 -7
  221. package/esm2015/lib/components/charts/utility/index.js +0 -3
  222. package/esm2015/lib/components/tables/ndf-table/filters-panel/services/ndf-transform.service.js +0 -80
  223. /package/lib/components/{charts → reports/charts}/chart.const.d.ts +0 -0
  224. /package/lib/components/{charts → reports/charts}/chart.token.d.ts +0 -0
  225. /package/lib/components/{charts → reports/charts}/charts.module.d.ts +0 -0
  226. /package/lib/components/{charts → reports/charts}/components/chart.component.d.ts +0 -0
  227. /package/lib/components/{charts → reports/charts}/components/data-chart.component.d.ts +0 -0
  228. /package/lib/components/{charts → reports/charts}/components/index.d.ts +0 -0
  229. /package/lib/components/{charts → reports/charts}/defaults/bar.d.ts +0 -0
  230. /package/lib/components/{charts → reports/charts}/defaults/doughnut.d.ts +0 -0
  231. /package/lib/components/{charts → reports/charts}/defaults/index.d.ts +0 -0
  232. /package/lib/components/{charts → reports/charts}/defaults/line.d.ts +0 -0
  233. /package/lib/components/{charts → reports/charts}/defaults/pie.d.ts +0 -0
  234. /package/lib/components/{charts → reports/charts}/models/index.d.ts +0 -0
  235. /package/lib/components/{charts → reports/charts}/models/options.d.ts +0 -0
  236. /package/lib/components/{charts → reports/charts}/models/plugins-options.d.ts +0 -0
  237. /package/lib/components/{charts → reports/charts}/models/response.d.ts +0 -0
  238. /package/lib/components/{charts → reports/charts}/models/statistic-request-config.d.ts +0 -0
  239. /package/lib/components/{charts → reports/charts}/plugins/doughnut-center-text.d.ts +0 -0
  240. /package/lib/components/{charts → reports/charts}/plugins/doughnut-empty-state.d.ts +0 -0
  241. /package/lib/components/{charts → reports/charts}/plugins/legend-margin.d.ts +0 -0
  242. /package/lib/components/{charts/index.d.ts → reports/charts/public-api.d.ts} +0 -0
  243. /package/lib/components/{charts → reports/charts}/services/index.d.ts +0 -0
  244. /package/lib/components/{charts → reports/charts}/utility/colors.d.ts +0 -0
  245. /package/lib/components/{charts → reports/charts}/utility/common.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { ChartType, Plugin } from 'chart.js';
3
3
  import Chart from 'chart.js/auto';
4
- import { DestroySubject } from '../../../shared/components';
4
+ import { DestroySubject } from '../../../../shared/components';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare abstract class BaseChartComponent<TType extends ChartType = ChartType> extends DestroySubject {
7
7
  type: TType;
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'chart.js';
2
+ import { ChartType } from 'chart.js/dist/types';
3
+ export declare const chartDataLabels: Plugin<ChartType>;
@@ -1,3 +1,5 @@
1
1
  export * from './doughnut-center-text';
2
2
  export * from './doughnut-empty-state';
3
3
  export * from './legend-margin';
4
+ export * from './scrollable-legends';
5
+ export * from './data-labels';
@@ -0,0 +1,6 @@
1
+ import { ChartType, Plugin } from 'chart.js';
2
+ export declare type ScrollableLegendsOptions = {
3
+ containerClass?: string;
4
+ active: boolean;
5
+ };
6
+ export declare const scrollableLegends: Plugin<ChartType>;
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
- import { NuxeoPagination } from '../../../shared/models';
3
- import { BaseService } from '../../../shared/services';
2
+ import { NuxeoPagination } from '../../../../shared/models';
3
+ import { BaseService } from '../../../../shared/services';
4
4
  import { StatisticBucket, StatisticRequestConfig } from '../models';
5
5
  import * as i0 from "@angular/core";
6
6
  declare type QueryParams = Pick<StatisticRequestConfig, 'pageProvider' | 'headers' | 'params' | 'ignoreCache'>;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Retrieves the value of a CSS variable or returns a default value if the variable is not defined.
3
+ *
4
+ * @param {string} key - The name of the CSS variable to retrieve (e.g., `--variable-name`).
5
+ * @param {string | number} defaultValue - The default value to return if the CSS variable is not defined.
6
+ * @returns {string | number} - The value of the CSS variable or the provided default value.
7
+ */
8
+ export declare function getCssVariable(key: string, defaultValue?: string | number): string | number;
9
+ /**
10
+ * Retrieves the value of a CSS variable or returns a default color if the variable is not defined.
11
+ *
12
+ * @param {string} key - The name of the CSS variable to retrieve (e.g., `--variable-name`).
13
+ * @param {string} [defaultColor='#444'] - The default color to return if the CSS variable is not defined.
14
+ * @returns {string} - The value of the CSS variable or the provided default color.
15
+ */
16
+ export declare function getColor(key: string, defaultColor?: string): string;
17
+ /**
18
+ * Retrieves the grid color for the specified axis.
19
+ *
20
+ * @param {'x' | 'y'} axis - The axis for which to retrieve the grid color ('x' or 'y').
21
+ * @returns {string} - The grid color as a CSS value.
22
+ */
23
+ export declare const getGridColor: (axis: 'x' | 'y') => string;
24
+ /**
25
+ * Retrieves the ticks color for the specified axis.
26
+ *
27
+ * @param {'x' | 'y'} axis - The axis for which to retrieve the ticks color ('x' or 'y').
28
+ * @returns {string} - The ticks color as a CSS value.
29
+ */
30
+ export declare const getTicksColor: (axis: 'x' | 'y') => string;
31
+ /**
32
+ * Retrieves an array of colors based on CSS variables or fallback to default colors.
33
+ *
34
+ * @param {number} [length=14] - The number of colors to retrieve.
35
+ * @param staticColors
36
+ * @returns {string[]} - An array of color codes.
37
+ */
38
+ export declare const getColors: (length?: number, staticColors?: string[]) => string[];
39
+ /**
40
+ * Determines the appropriate text color (light or dark) based on the luminance of the given background color.
41
+ *
42
+ * @param {string} backgroundColor - The background color in hexadecimal (e.g., `#ffffff`) or RGB format (e.g., `rgb(255, 255, 255)`).
43
+ * @returns {string} - The text color, either the dark color (`--chart-value-dark-color`) or the light color (`--chart-value-light-color`).
44
+ */
45
+ export declare function getTextColor(backgroundColor: string): string;
@@ -1,2 +1,3 @@
1
1
  export * from './colors';
2
2
  export * from './common';
3
+ export * from './css';
@@ -0,0 +1,27 @@
1
+ import { EventEmitter, Injector } from '@angular/core';
2
+ import { DestroySubject } from '../../../../shared/components';
3
+ import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
4
+ import Chart from 'chart.js/auto';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+ import { ReportResponseModel } from '../models';
7
+ import * as i0 from "@angular/core";
8
+ export declare abstract class BaseChart<T> extends DestroySubject {
9
+ injector: Injector;
10
+ abstract report$: Observable<any>;
11
+ protected _translateService: TranslateService;
12
+ protected readonly _rebuildTriggerSub: BehaviorSubject<boolean>;
13
+ protected _dataSub: ReplaySubject<ReportResponseModel>;
14
+ protected _configSub: ReplaySubject<T>;
15
+ protected _isInitialized: boolean;
16
+ private _data;
17
+ set data(data: ReportResponseModel);
18
+ get data(): ReportResponseModel;
19
+ private _config;
20
+ set config(config: T);
21
+ get config(): T;
22
+ onReady: EventEmitter<Chart<keyof import("chart.js/auto").ChartTypeRegistry, (number | [number, number] | import("chart.js/auto").Point | import("chart.js/auto").BubbleDataPoint)[], unknown>>;
23
+ constructor(injector: Injector);
24
+ protected _subscribeToLanguage(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseChart<any>, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChart<any>, never, never, { "data": "data"; "config": "config"; }, { "onReady": "onReady"; }, never>;
27
+ }
@@ -0,0 +1,19 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { CriteriaModel, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition, ReportResponseModel } from '../models';
3
+ import { BaseReport } from './base-report';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { MatDialog } from '@angular/material/dialog';
6
+ import * as i0 from "@angular/core";
7
+ export declare abstract class BaseGraphReport<TDefinition extends GraphChartDefinition | DynamicLineChartDefinition, TConfig extends GraphChart | DynamicLineChart> extends BaseReport<TDefinition, TConfig> {
8
+ protected _translateService: TranslateService;
9
+ protected _cdr: ChangeDetectorRef;
10
+ protected _dialog: MatDialog;
11
+ openGraphDialog(_options?: {
12
+ config?: GraphChart | DynamicLineChart;
13
+ data?: ReportResponseModel;
14
+ component?: any;
15
+ criteria?: CriteriaModel;
16
+ }): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseGraphReport<any, any>, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseGraphReport<any, any>, never, never, {}, {}, never>;
19
+ }
@@ -0,0 +1,58 @@
1
+ import { EventEmitter, Injector } from '@angular/core';
2
+ import { CriteriaModel, ReportConfigModel, ReportDefinitionModel, ReportResponseModel } from '../models';
3
+ import { Direction } from '@angular/cdk/bidi';
4
+ import { DestroySubject } from '../../../../shared/components';
5
+ import { BehaviorSubject, ReplaySubject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare abstract class BaseReport<TDefinition extends ReportDefinitionModel, TConfig extends ReportConfigModel> extends DestroySubject {
8
+ injector: Injector;
9
+ private readonly _configMapperService;
10
+ protected _configSub: BehaviorSubject<TConfig>;
11
+ config$: import("rxjs").Observable<TConfig>;
12
+ set definition(obj: TDefinition);
13
+ get config(): TConfig;
14
+ direction: Direction;
15
+ data: ReportResponseModel;
16
+ protected _criteriaSub: ReplaySubject<{
17
+ params?: Record<string, any>;
18
+ payload?: {
19
+ predicateList: import("nuxeo-development-framework").OperatorReturn[];
20
+ aggregationNames?: {
21
+ name: string;
22
+ interval: import("../models").TimeGroups;
23
+ }[];
24
+ } & Record<string, any>;
25
+ }>;
26
+ criteria$: import("rxjs").Observable<{
27
+ params?: Record<string, any>;
28
+ payload?: {
29
+ predicateList: import("nuxeo-development-framework").OperatorReturn[];
30
+ aggregationNames?: {
31
+ name: string;
32
+ interval: import("../models").TimeGroups;
33
+ }[];
34
+ } & Record<string, any>;
35
+ }>;
36
+ private _criteria;
37
+ set criteria(value: CriteriaModel);
38
+ get criteria(): CriteriaModel;
39
+ onNavigate: EventEmitter<{
40
+ report: TConfig;
41
+ data: ReportResponseModel;
42
+ }>;
43
+ onOpen: EventEmitter<{
44
+ params?: Record<string, any>;
45
+ payload?: {
46
+ predicateList: import("nuxeo-development-framework").OperatorReturn[];
47
+ aggregationNames?: {
48
+ name: string;
49
+ interval: import("../models").TimeGroups;
50
+ }[];
51
+ } & Record<string, any>;
52
+ }>;
53
+ constructor(injector: Injector);
54
+ navigate(): void;
55
+ private _prepareConfig;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseReport<any, any>, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseReport<any, any>, never, never, { "definition": "definition"; "direction": "direction"; "data": "data"; "criteria": "criteria"; }, { "onNavigate": "onNavigate"; "onOpen": "onOpen"; }, never>;
58
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { BaseChart } from '../../base/base-chart';
3
+ import { DigitChart } from '../../models';
4
+ import { Observable } from 'rxjs';
5
+ import { DigitChartService } from '../../services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DigitChartComponent extends BaseChart<DigitChart> implements OnInit {
8
+ protected _digitService: DigitChartService;
9
+ report$: Observable<any>;
10
+ ngOnInit(): void;
11
+ private _prepareChart;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DigitChartComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DigitChartComponent, "app-digit-chart", never, {}, {}, never, never>;
14
+ }
@@ -0,0 +1,23 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { BaseChart } from '../../base/base-chart';
3
+ import { GraphChart } from '../../models';
4
+ import { Observable } from 'rxjs';
5
+ import { GraphChartService } from './graph-chart.service';
6
+ import { ChartManagerService } from '../../services';
7
+ import Chart from 'chart.js/auto';
8
+ import * as i0 from "@angular/core";
9
+ export declare class GraphChartComponent extends BaseChart<GraphChart> implements OnInit, OnDestroy {
10
+ protected _chartHelperService: ChartManagerService;
11
+ protected _graphService: GraphChartService;
12
+ chart: Chart;
13
+ protected _printListener: EventListener;
14
+ report$: Observable<any>;
15
+ ngOnInit(): void;
16
+ chartReady(chart: Chart): void;
17
+ private _prepareChart;
18
+ printChart(): void;
19
+ resizeChart(): void;
20
+ ngOnDestroy(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraphChartComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraphChartComponent, "app-graph-chart", never, {}, {}, never, never>;
23
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseChartBuilderService } from '../../services/base-chart-builder.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GraphChartService extends BaseChartBuilderService {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraphChartService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<GraphChartService>;
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './digit-chart/digit-chart.component';
2
+ export * from './graph-chart/graph-chart.component';
@@ -0,0 +1,23 @@
1
+ import { Direction } from '@angular/cdk/bidi';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { ChartTypes } from '../../../models';
4
+ import * as i0 from "@angular/core";
5
+ declare type ChartTypeItem = {
6
+ icon: string;
7
+ type: ChartTypes;
8
+ label?: string;
9
+ };
10
+ export declare class ChartTypeSelectorComponent {
11
+ types: ChartTypeItem[];
12
+ selectedType: ChartTypeItem;
13
+ direction: Direction;
14
+ set type(type: ChartTypes);
15
+ get type(): ChartTypes;
16
+ typeChange: EventEmitter<ChartTypes>;
17
+ changeType(type: ChartTypeItem): void;
18
+ private _prepareTypes;
19
+ private _getIcon;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartTypeSelectorComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartTypeSelectorComponent, "chart-type-selector", never, { "direction": "direction"; "type": "type"; }, { "typeChange": "typeChange"; }, never, never>;
22
+ }
23
+ export {};
@@ -0,0 +1,17 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { GraphChartComponent } from '../../../charts-components/graph-chart/graph-chart.component';
3
+ import { ChartTypes, GraphDialogData } from '../../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class GraphDialogComponent {
6
+ dialogRef: MatDialogRef<GraphDialogComponent, any>;
7
+ chart: GraphDialogData;
8
+ chartType: ChartTypes;
9
+ graphChartComponent: GraphChartComponent;
10
+ constructor(dialogRef: MatDialogRef<GraphDialogComponent, any>, chart: GraphDialogData);
11
+ getActiveChartType(): ChartTypes;
12
+ close(): void;
13
+ changeChartType(type: ChartTypes): void;
14
+ printChart(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraphDialogComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraphDialogComponent, "app-graph-dialog", never, {}, {}, never, never>;
17
+ }
@@ -0,0 +1,4 @@
1
+ export * from './chart-type-selector/chart-type-selector.component';
2
+ export * from './time-group-selector/time-group-selector.component';
3
+ export * from './graph-dialog/graph-dialog.component';
4
+ export * from './timeline-dialog/timeline-dialog.component';
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Direction } from '@angular/cdk/bidi';
3
+ import { TimeGroups } from '../../../models';
4
+ import * as i0 from "@angular/core";
5
+ declare type ChartGroupItem = {
6
+ group: TimeGroups;
7
+ label: string;
8
+ };
9
+ export declare class TimeGroupSelectorComponent {
10
+ groups: ChartGroupItem[];
11
+ selectedGroup: ChartGroupItem;
12
+ direction: Direction;
13
+ set group(group: TimeGroups);
14
+ get group(): TimeGroups;
15
+ groupChange: EventEmitter<TimeGroups>;
16
+ changeGroup(group: ChartGroupItem): void;
17
+ private _prepareGroups;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeGroupSelectorComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimeGroupSelectorComponent, "time-group-selector", never, { "direction": "direction"; "group": "group"; }, { "groupChange": "groupChange"; }, never, never>;
20
+ }
21
+ export {};
@@ -0,0 +1,19 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { DynamicTimelineReportService } from '../../../services';
3
+ import { Observable } from 'rxjs';
4
+ import { GraphChartComponent } from '../../../charts-components';
5
+ import { GraphDialogData, TimeGroups } from '../../../models';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TimelineDialogComponent {
8
+ dialogRef: MatDialogRef<TimelineDialogComponent, any>;
9
+ chart: GraphDialogData;
10
+ private _timelineService;
11
+ graphChartComponent: GraphChartComponent;
12
+ report$: Observable<any>;
13
+ selectedGroup$: Observable<TimeGroups>;
14
+ constructor(dialogRef: MatDialogRef<TimelineDialogComponent, any>, chart: GraphDialogData, _timelineService: DynamicTimelineReportService);
15
+ changeGroup(group: TimeGroups): void;
16
+ printChart(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDialogComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimelineDialogComponent, "app-timeline-dialog", never, {}, {}, never, never>;
19
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ChartPanelComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartPanelComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartPanelComponent, "chart-panel", never, {}, {}, never, ["*"]>;
5
+ }
6
+ export declare class ChartPanelHeaderComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartPanelHeaderComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartPanelHeaderComponent, "chart-panel-header", never, {}, {}, never, ["*"]>;
9
+ }
10
+ export declare class ChartPanelFooterComponent {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartPanelFooterComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartPanelFooterComponent, "chart-panel-footer", never, {}, {}, never, ["*"]>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseReport } from '../../base/base-report';
2
+ import { DigitChart, DigitChartDefinition } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DigitReportComponent extends BaseReport<DigitChartDefinition, DigitChart> {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DigitReportComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<DigitReportComponent, "app-digit-report", never, {}, {}, never, never>;
7
+ }
@@ -0,0 +1,20 @@
1
+ import { Injector } from '@angular/core';
2
+ import { GraphChartComponent } from '../../charts-components';
3
+ import { BaseGraphReport } from '../../base/base-graph.report';
4
+ import { DynamicLineChart, DynamicLineChartDefinition, TimeGroups } from '../../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DynamicTimelineReportComponent extends BaseGraphReport<DynamicLineChartDefinition, DynamicLineChart> {
7
+ injector: Injector;
8
+ private _timelineService;
9
+ graphChartComponent: GraphChartComponent;
10
+ report$: import("rxjs").Observable<any>;
11
+ selectedGroup$: import("rxjs").Observable<TimeGroups>;
12
+ constructor(injector: Injector);
13
+ _subscribeToLanguage(): void;
14
+ printChart(): void;
15
+ changeGroup(group: TimeGroups): void;
16
+ openTimelineDialog(): void;
17
+ openDetails(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTimelineReportComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTimelineReportComponent, "app-dynamic-timeline-report", never, {}, {}, never, never>;
20
+ }
@@ -0,0 +1,12 @@
1
+ import { GraphChartComponent } from '../../charts-components';
2
+ import { BaseGraphReport } from '../../base/base-graph.report';
3
+ import { ChartTypes, GraphChart, GraphChartDefinition } from '../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> {
6
+ graphChartComponent: GraphChartComponent;
7
+ chartType$: import("rxjs").Observable<"line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | "verticalBar" | "horizontalBar">;
8
+ changeChartType(type: ChartTypes): void;
9
+ printChart(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<GraphReportComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<GraphReportComponent, "app-graph-report", never, {}, {}, never, never>;
12
+ }
@@ -0,0 +1,5 @@
1
+ export * from './digit-report/digit-report.component';
2
+ export * from './graph-report/graph-report.component';
3
+ export * from './dynamic-timeline-report/dynamic-timeline-report.component';
4
+ export * from './chart-panel.component';
5
+ export * from './_parts';
@@ -0,0 +1,12 @@
1
+ export declare const CHARTS_TYPES: {
2
+ readonly verticalBar: "verticalBar";
3
+ readonly horizontalBar: "horizontalBar";
4
+ readonly doughnut: "doughnut";
5
+ readonly line: "line";
6
+ readonly pie: "pie";
7
+ };
8
+ export declare const REPORT_MODE: {
9
+ readonly graph: "graph";
10
+ readonly digit: "digit";
11
+ readonly dynamicLine: "dynamicLine";
12
+ };
@@ -0,0 +1,2 @@
1
+ export * from './charts-types';
2
+ export * from './time-group';
@@ -0,0 +1,6 @@
1
+ export declare const TIME_GROUPS: {
2
+ readonly day: "day";
3
+ readonly week: "week";
4
+ readonly month: "month";
5
+ readonly year: "year";
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ndf-reports/ndf-reports.component';
2
+ export * from './ndf-report/ndf-report.component';
@@ -0,0 +1,32 @@
1
+ import { Direction } from '@angular/cdk/bidi';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { DestroySubject } from '../../../../../shared/components';
4
+ import { CriteriaModel, ReportConfigModel, ReportDefinitionModel, ReportResponseModel } from '../../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NdfReportComponent extends DestroySubject {
7
+ readonly reportModes: {
8
+ readonly graph: "graph";
9
+ readonly digit: "digit";
10
+ readonly dynamicLine: "dynamicLine";
11
+ };
12
+ config: ReportDefinitionModel;
13
+ direction: Direction;
14
+ data: ReportResponseModel;
15
+ criteria: CriteriaModel;
16
+ onNavigate: EventEmitter<{
17
+ report: ReportConfigModel;
18
+ data: ReportResponseModel;
19
+ }>;
20
+ onOpen: EventEmitter<{
21
+ params?: Record<string, any>;
22
+ payload?: {
23
+ predicateList: import("nuxeo-development-framework").OperatorReturn[];
24
+ aggregationNames?: {
25
+ name: string;
26
+ interval: import("../../models").TimeGroups;
27
+ }[];
28
+ } & Record<string, any>;
29
+ }>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportComponent, "app-ndf-report", never, { "config": "config"; "direction": "direction"; "data": "data"; "criteria": "criteria"; }, { "onNavigate": "onNavigate"; "onOpen": "onOpen"; }, never, never>;
32
+ }
@@ -0,0 +1,92 @@
1
+ import { AnimationEvent } from '@angular/animations';
2
+ import { Direction } from '@angular/cdk/bidi';
3
+ import { ChangeDetectorRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
4
+ import { Router } from '@angular/router';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+ import { Observable } from 'rxjs';
7
+ import { DestroySubject } from '../../../../../shared/components';
8
+ import { FieldConfigModel, FilterQueryService, FiltersMapperService, FluidHeightDirective, FormQueryModel, NdfTableConfig } from '../../../../tables';
9
+ import { CriteriaModel, NdfReportsConfig, ReportConfigModel } from '../../models';
10
+ import { ChartManagerService, NdfReportsService, ReportsStateService, ReportTransformService } from '../../services';
11
+ import * as i0 from "@angular/core";
12
+ export declare const slideAnimation: import("@angular/animations").AnimationTriggerMetadata;
13
+ export declare class NdfReportsComponent extends DestroySubject implements OnInit, OnDestroy {
14
+ private _translateService;
15
+ private _filtersMapper;
16
+ private _ndfReportsService;
17
+ private _chartHelperService;
18
+ private _transformService;
19
+ private _cdr;
20
+ private _filterQueryService;
21
+ private _stateService;
22
+ private _router;
23
+ private _ngZone;
24
+ fluidDirective: FluidHeightDirective;
25
+ _isHeightUpdated: boolean;
26
+ direction: Direction;
27
+ isPanelOpened: boolean;
28
+ isLoadingResult: boolean;
29
+ reportsData$: Observable<any>;
30
+ isExpanded: boolean;
31
+ activeQuery: Record<string, any>;
32
+ private readonly _activeFiltersQuerySub;
33
+ readonly activeFiltersQuery$: Observable<FormQueryModel>;
34
+ private readonly _configSubject;
35
+ readonly reportConfig$: Observable<NdfReportsConfig>;
36
+ private readonly _filtersCriteriaSubject;
37
+ readonly filtersParams$: Observable<{
38
+ params?: Record<string, any>;
39
+ payload?: {
40
+ predicateList: import("../../../../tables").OperatorReturn[];
41
+ aggregationNames?: {
42
+ name: string;
43
+ interval: import("../../models").TimeGroups;
44
+ }[];
45
+ } & Record<string, any>;
46
+ }>;
47
+ private _reportDetailsSubject;
48
+ reportDetails$: Observable<{
49
+ label?: string;
50
+ config: NdfTableConfig;
51
+ }>;
52
+ get showDetails(): boolean;
53
+ isDetailsOpened: boolean;
54
+ get config(): NdfReportsConfig;
55
+ get filtersConfig(): {
56
+ mode: "payload" | "params";
57
+ payload?: Record<string, any>;
58
+ params?: Record<string, any>;
59
+ fields: FieldConfigModel[];
60
+ visible?: boolean;
61
+ togglePanel?: boolean;
62
+ };
63
+ get reportConfig(): {
64
+ details?: import("../../models").ReportDetailsConfig;
65
+ items: import("../../models").ReportDefinitionModel[];
66
+ };
67
+ navigateRoute: string[];
68
+ set config(value: NdfReportsConfig);
69
+ onQueryChange: EventEmitter<any>;
70
+ trackByFn: (_: number, report: ReportConfigModel) => string | number;
71
+ constructor(_translateService: TranslateService, _filtersMapper: FiltersMapperService, _ndfReportsService: NdfReportsService, _chartHelperService: ChartManagerService, _transformService: ReportTransformService, _cdr: ChangeDetectorRef, _filterQueryService: FilterQueryService, _stateService: ReportsStateService, _router: Router, _ngZone: NgZone);
72
+ ngOnInit(): void;
73
+ onNavigate(data: {
74
+ report: Record<string, any>;
75
+ data: Record<string, any>;
76
+ }): void;
77
+ togglePanel(): void;
78
+ filterChanged(criteria: Record<any, any>): void;
79
+ onContentScroll(isScrolling: boolean): void;
80
+ openReportDetails(_: CriteriaModel, rConfig: ReportConfigModel): void;
81
+ closeDetailsPanel(): void;
82
+ onDetailsAnimationEnd(event: AnimationEvent): void;
83
+ ngOnDestroy(): void;
84
+ private prepareCriteriaPayload;
85
+ private _stringifyValues;
86
+ private _prepareReports;
87
+ private _handleKeyboardEvent;
88
+ private _prepareMappedQuery;
89
+ private _updateActiveQuery;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsComponent, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
92
+ }
@@ -0,0 +1 @@
1
+ export * from './scrollable-div.directive';
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScrollableDivDirective implements AfterViewInit {
4
+ private elementRef;
5
+ private ngZone;
6
+ scrolled: EventEmitter<any>;
7
+ scrollTop: number;
8
+ private scrollListener;
9
+ constructor(elementRef: ElementRef, ngZone: NgZone);
10
+ ngAfterViewInit(): void;
11
+ ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableDivDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableDivDirective, "[scrolled]", never, { "scrollTop": "scrollTop"; }, { "scrolled": "scrolled"; }, never>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,18 @@
1
+ import { REPORT_MODE } from '../constants';
2
+ import { ReportDetailsConfig } from './details';
3
+ export declare type ReportMode = (typeof REPORT_MODE)[keyof typeof REPORT_MODE];
4
+ export declare type BaseReportConfig = {
5
+ id: string | number;
6
+ label: string;
7
+ mode: ReportMode;
8
+ navigate?: {
9
+ enabled?: boolean;
10
+ route: any[];
11
+ includeParams?: boolean;
12
+ };
13
+ details?: ReportDetailsConfig;
14
+ layout?: {
15
+ width?: 'small' | 'medium' | 'half' | 'wide' | 'extra' | 'full';
16
+ styleClass?: string;
17
+ };
18
+ };
@@ -0,0 +1,20 @@
1
+ import { OperatorReturn } from '../../../tables/ndf-table/models';
2
+ import { CustomChartOptions } from '../../charts/models';
3
+ import { CHARTS_TYPES, TIME_GROUPS } from '../constants';
4
+ export declare type ChartTypes = (typeof CHARTS_TYPES)[keyof typeof CHARTS_TYPES];
5
+ export declare type TimeGroups = (typeof TIME_GROUPS)[keyof typeof TIME_GROUPS];
6
+ declare type BaseChartType<Key extends ChartTypes> = Key extends (typeof CHARTS_TYPES)['verticalBar'] | (typeof CHARTS_TYPES)['horizontalBar'] ? 'bar' : Key;
7
+ export declare type ChartOptionsByType = {
8
+ [Key in ChartTypes]?: CustomChartOptions<BaseChartType<Key>>;
9
+ };
10
+ export declare type CriteriaModel = {
11
+ params?: Record<string, any>;
12
+ payload?: {
13
+ predicateList: OperatorReturn[];
14
+ aggregationNames?: {
15
+ name: string;
16
+ interval: TimeGroups;
17
+ }[];
18
+ } & Record<string, any>;
19
+ } | null;
20
+ export {};