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
@@ -0,0 +1,16 @@
1
+ import { TableColumnConfig, TableExportConfig, TableSortConfig, TableSortOptions } from '../../../tables/ndf-table';
2
+ import { NdfReportsRequest } from './request';
3
+ export declare type ReportDetailsConfig = {
4
+ request?: Partial<NdfReportsRequest>;
5
+ enabled: boolean;
6
+ columns?: TableColumnConfig[];
7
+ fields?: Record<string, string>;
8
+ prefix?: string;
9
+ quickFilters?: string;
10
+ columnsOptions?: {
11
+ toggle?: boolean;
12
+ sortable?: TableSortConfig;
13
+ };
14
+ sortingBy?: TableSortOptions;
15
+ export?: TableExportConfig;
16
+ };
@@ -0,0 +1,12 @@
1
+ import { ReportResponseModel } from './report-response.model';
2
+ import { Direction } from '@angular/cdk/bidi';
3
+ import { CriteriaModel } from './common';
4
+ import { GraphChart } from './graph';
5
+ import { DynamicLineChart } from './dynamic-line';
6
+ export declare type GraphDialogData = {
7
+ config: GraphChart | DynamicLineChart;
8
+ data?: ReportResponseModel;
9
+ title?: string;
10
+ direction: Direction;
11
+ criteria?: CriteriaModel;
12
+ };
@@ -0,0 +1,17 @@
1
+ import { BaseReportConfig } from './base';
2
+ /**
3
+ * Definition of a digit chart (used in configuration)
4
+ */
5
+ export declare type DigitChartDefinition = BaseReportConfig & {
6
+ mode: 'digit';
7
+ datasource: {
8
+ propertyPath: string;
9
+ transformer?: string;
10
+ bindValue?: string;
11
+ };
12
+ };
13
+ /**
14
+ * Implementation of a digit chart (used in application)
15
+ * Currently identical to DigitChartDefinition as no transformation is needed
16
+ */
17
+ export declare type DigitChart = DigitChartDefinition;
@@ -0,0 +1,52 @@
1
+ import { ChartDataset, Plugin } from 'chart.js';
2
+ import { BaseReportConfig } from './base';
3
+ import { GraphDialogConfig } from './graph';
4
+ import { NdfReportsRequest } from './request';
5
+ import { ReportDataSource } from './report-data-source';
6
+ import { TimeGroups } from './common';
7
+ import { CustomChartOptions } from '../../charts';
8
+ /**
9
+ * Base configuration for chart reports that include dialog options
10
+ */
11
+ declare type ReportChartConfig = BaseReportConfig & GraphDialogConfig;
12
+ /**
13
+ * Definition of dynamic line chart options with plugins as strings (used in configuration)
14
+ */
15
+ export declare type DynamicLineChartOptionsDefinition = {
16
+ type: 'line';
17
+ options?: CustomChartOptions<'line'>;
18
+ datasets?: Omit<ChartDataset<'line'>, 'data'>[];
19
+ plugins?: string[];
20
+ colors?: string[];
21
+ };
22
+ /**
23
+ * Dynamic line chart options with plugins as Plugin objects (used in implementation)
24
+ */
25
+ export declare type DynamicLineChartOptions = Omit<DynamicLineChartOptionsDefinition, 'plugins'> & {
26
+ plugins?: Plugin<'line'>[];
27
+ };
28
+ /**
29
+ * Complete definition of a dynamic line chart (used in configuration)
30
+ */
31
+ export declare type DynamicLineChartDefinition = ReportChartConfig & {
32
+ mode: 'dynamicLine';
33
+ prefix?: string;
34
+ colors?: string[];
35
+ print?: boolean;
36
+ request: NdfReportsRequest;
37
+ datasource: ({
38
+ aggregation: string;
39
+ } & ReportDataSource)[];
40
+ group?: {
41
+ active: boolean;
42
+ selected?: TimeGroups;
43
+ };
44
+ chart: DynamicLineChartOptionsDefinition;
45
+ };
46
+ /**
47
+ * Complete dynamic line chart with processed plugins (used in implementation)
48
+ */
49
+ export declare type DynamicLineChart = Omit<DynamicLineChartDefinition, 'chart'> & {
50
+ chart: DynamicLineChartOptions;
51
+ };
52
+ export {};
@@ -0,0 +1,56 @@
1
+ import { DialogPosition } from '@angular/material/dialog';
2
+ import { ChartDataset, ChartType, Plugin } from 'chart.js';
3
+ import { CustomChartOptions } from '../../charts';
4
+ import { BaseReportConfig } from './base';
5
+ import { ChartOptionsByType } from './common';
6
+ import { ReportDataSource } from './report-data-source';
7
+ /**
8
+ * Configuration for dialog display in graph reports
9
+ */
10
+ export declare type GraphDialogConfig = {
11
+ dialog?: {
12
+ active: boolean;
13
+ panelClass?: string | string[];
14
+ width?: string;
15
+ height?: string;
16
+ minWidth?: number | string;
17
+ minHeight?: number | string;
18
+ maxWidth?: number | string;
19
+ maxHeight?: number | string;
20
+ position?: DialogPosition;
21
+ };
22
+ };
23
+ /**
24
+ * Definition of chart options with plugins as strings (used in configuration)
25
+ */
26
+ export declare type GraphChartOptionsDefinition<TType extends ChartType = ChartType> = {
27
+ type: TType;
28
+ options?: CustomChartOptions<TType>;
29
+ datasets?: Omit<ChartDataset<TType>, 'data'>[];
30
+ overrides?: ChartOptionsByType;
31
+ plugins?: string[];
32
+ colors?: string[];
33
+ direction?: 'horizontal' | 'vertical';
34
+ };
35
+ /**
36
+ * Chart options with plugins as Plugin objects (used in implementation)
37
+ */
38
+ export declare type GraphChartOptions<TType extends ChartType = ChartType> = Omit<GraphChartOptionsDefinition<TType>, 'plugins'> & {
39
+ plugins?: Plugin<TType>[];
40
+ };
41
+ /**
42
+ * Complete definition of a graph chart (used in configuration)
43
+ */
44
+ export declare type GraphChartDefinition<TType extends ChartType = ChartType> = BaseReportConfig & GraphDialogConfig & {
45
+ mode: 'graph';
46
+ datasource: ReportDataSource[];
47
+ chart: GraphChartOptionsDefinition<TType>;
48
+ prefix?: string;
49
+ print?: boolean;
50
+ };
51
+ /**
52
+ * Complete graph chart with processed plugins (used in implementation)
53
+ */
54
+ export declare type GraphChart<TType extends ChartType = ChartType> = Omit<GraphChartDefinition<TType>, 'chart'> & {
55
+ chart: GraphChartOptions<TType>;
56
+ };
@@ -0,0 +1,12 @@
1
+ export * from './common';
2
+ export * from './ndf-reports.config';
3
+ export * from './report-config';
4
+ export * from './report-response.model';
5
+ export * from './dialog-data';
6
+ export * from './base';
7
+ export * from './details';
8
+ export * from './digit';
9
+ export * from './dynamic-line';
10
+ export * from './report-data-source';
11
+ export * from './request';
12
+ export * from './graph';
@@ -0,0 +1,22 @@
1
+ import { FieldConfigModel } from '../../../tables/ndf-table';
2
+ import { ReportDetailsConfig } from './details';
3
+ import { NdfReportsRequest } from './request';
4
+ import { ReportDefinitionModel } from './report-config';
5
+ declare type NdfReportsFilters = {
6
+ mode: 'payload' | 'params';
7
+ payload?: Record<string, any>;
8
+ params?: Record<string, any>;
9
+ fields: FieldConfigModel[];
10
+ visible?: boolean;
11
+ togglePanel?: boolean;
12
+ };
13
+ export declare type NdfReportsConfig = {
14
+ request: NdfReportsRequest;
15
+ filters?: NdfReportsFilters;
16
+ reports: {
17
+ details?: ReportDetailsConfig;
18
+ items: ReportDefinitionModel[];
19
+ };
20
+ activeQuery?: Record<string, any>;
21
+ };
22
+ export {};
@@ -0,0 +1,5 @@
1
+ import { DigitChart, DigitChartDefinition } from './digit';
2
+ import { GraphChart, GraphChartDefinition } from './graph';
3
+ import { DynamicLineChart, DynamicLineChartDefinition } from './dynamic-line';
4
+ export declare type ReportConfigModel = DigitChart | GraphChart | DynamicLineChart;
5
+ export declare type ReportDefinitionModel = DigitChartDefinition | GraphChartDefinition | DynamicLineChartDefinition;
@@ -0,0 +1,7 @@
1
+ export declare type ReportDataSource = {
2
+ propertyPath: string;
3
+ bindLabel?: string;
4
+ bindValue?: string;
5
+ dataFormat?: string;
6
+ transformer?: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ import { ApiResponseModel } from '../../../../core/models';
2
+ export interface ReportResponseModel extends ApiResponseModel {
3
+ aggregations: Record<string, any>;
4
+ }
@@ -0,0 +1,10 @@
1
+ export declare type NdfReportsRequest = {
2
+ pageProvider: string;
3
+ customUrl?: {
4
+ url: string;
5
+ method: 'post' | 'get';
6
+ };
7
+ payload?: Record<string, any>;
8
+ params?: Record<string, any>;
9
+ headers?: Record<string, any>;
10
+ };
@@ -0,0 +1,34 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./containers/ndf-reports/ndf-reports.component";
3
+ import * as i2 from "./containers/ndf-report/ndf-report.component";
4
+ import * as i3 from "./components/_parts/chart-type-selector/chart-type-selector.component";
5
+ import * as i4 from "./components/digit-report/digit-report.component";
6
+ import * as i5 from "./components/graph-report/graph-report.component";
7
+ import * as i6 from "./components/dynamic-timeline-report/dynamic-timeline-report.component";
8
+ import * as i7 from "./components/_parts/time-group-selector/time-group-selector.component";
9
+ import * as i8 from "./components/_parts/graph-dialog/graph-dialog.component";
10
+ import * as i9 from "./components/_parts/timeline-dialog/timeline-dialog.component";
11
+ import * as i10 from "./components/chart-panel.component";
12
+ import * as i11 from "./directives/scrollable-div.directive";
13
+ import * as i12 from "./charts-components/graph-chart/graph-chart.component";
14
+ import * as i13 from "./charts-components/digit-chart/digit-chart.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "@ngx-translate/core";
17
+ import * as i16 from "@angular/material/menu";
18
+ import * as i17 from "@angular/material/icon";
19
+ import * as i18 from "@angular/material/button";
20
+ import * as i19 from "../charts/charts.module";
21
+ import * as i20 from "../../dynamic-form/dynamic-form.module";
22
+ import * as i21 from "@angular/forms";
23
+ import * as i22 from "@ng-select/ng-select";
24
+ import * as i23 from "@angular/material/tooltip";
25
+ import * as i24 from "../../tables/ndf-table/directives/fluid-height.directive";
26
+ import * as i25 from "../../tables/ndf-table/filters-panel/filters-panel.module";
27
+ import * as i26 from "@angular/material/progress-spinner";
28
+ import * as i27 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
29
+ import * as i28 from "../../tables/ndf-table/ndf-table.module";
30
+ export declare class NdfReportsModule {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsModule, never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ChartPanelComponent, typeof i10.ChartPanelHeaderComponent, typeof i10.ChartPanelFooterComponent, typeof i11.ScrollableDivDirective, typeof i12.GraphChartComponent, typeof i13.DigitChartComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.FiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
33
+ static ɵinj: i0.ɵɵInjectorDeclaration<NdfReportsModule>;
34
+ }
@@ -0,0 +1,7 @@
1
+ import { CustomChartOptions } from '../../charts';
2
+ /**
3
+ * Doughnut Options
4
+ * @param override
5
+ * @returns
6
+ */
7
+ export declare function getDoughnutOptions(override?: CustomChartOptions<'doughnut'>): CustomChartOptions<'doughnut'>;
@@ -0,0 +1,7 @@
1
+ import { CustomChartOptions } from '../../charts';
2
+ /**
3
+ * Horizontal Bar Options
4
+ * @param override
5
+ * @returns
6
+ */
7
+ export declare function getHorizontalBarOptions(override?: CustomChartOptions<'bar'>): CustomChartOptions<'bar'>;
@@ -0,0 +1,6 @@
1
+ export * from './horizontal-bar';
2
+ export * from './options';
3
+ export * from './pie';
4
+ export * from './line';
5
+ export * from './doughnut';
6
+ export * from './vertical-bar';
@@ -0,0 +1,7 @@
1
+ import { CustomChartOptions } from '../../charts';
2
+ /**
3
+ * Line Options
4
+ * @param override
5
+ * @returns
6
+ */
7
+ export declare function getLineOptions(override?: CustomChartOptions<'line'>): CustomChartOptions<'line'>;
@@ -0,0 +1,2 @@
1
+ import { ChartOptionsByType } from '../models';
2
+ export declare function getChartsOptions(overrides?: ChartOptionsByType): ChartOptionsByType;
@@ -0,0 +1,7 @@
1
+ import { CustomChartOptions } from '../../charts';
2
+ /**
3
+ * Pie Options
4
+ * @param override
5
+ * @returns
6
+ */
7
+ export declare function getPieOptions(override?: CustomChartOptions<'pie'>): CustomChartOptions<'pie'>;
@@ -0,0 +1,7 @@
1
+ import { CustomChartOptions } from '../../charts';
2
+ /**
3
+ * Vertical Bar Options
4
+ * @param override
5
+ * @returns
6
+ */
7
+ export declare function getVerticalBarOptions(override?: CustomChartOptions<'bar'>): CustomChartOptions<'bar'>;
@@ -0,0 +1,5 @@
1
+ export * from './ndf-reports.module';
2
+ export * from './models';
3
+ export * from './services';
4
+ export * from './containers';
5
+ export * from './options';
@@ -0,0 +1,59 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ChartDataset } from 'chart.js';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { DynamicLineChart, DynamicLineChartOptions, GraphChart, GraphChartOptions, ReportDataSource, ReportResponseModel } from '../models';
5
+ import { StatisticBucket } from '../../charts';
6
+ import { ChartDataTransformers } from './chart-data-transformers.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class BaseChartBuilderService<TConfig extends DynamicLineChart | GraphChart = GraphChart> {
9
+ protected readonly _translateService: TranslateService;
10
+ private readonly _dataTransformers;
11
+ protected _translatePrefix: string;
12
+ constructor(_translateService: TranslateService, _dataTransformers: ChartDataTransformers);
13
+ prepareChart(response: ReportResponseModel, config: TConfig): Observable<{
14
+ data: any;
15
+ config: GraphChartOptions | DynamicLineChartOptions;
16
+ }>;
17
+ protected _prepareDataSource(sourceConfig: ReportDataSource, response: ReportResponseModel): Observable<any>;
18
+ protected _getLabel(item: StatisticBucket, config: ReportDataSource): string;
19
+ protected _getValue(item: StatisticBucket, source: ReportDataSource): number;
20
+ protected _prepareChartData(results: StatisticBucket[][], config: TConfig): {
21
+ labels: string[];
22
+ datasets: (ChartDataset<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint)[]> | (ChartDataset<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint)[]> & {
23
+ label: any;
24
+ hidden?: boolean;
25
+ type?: "line" | "bar" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar";
26
+ order?: number;
27
+ indexAxis?: "y" | "x";
28
+ clip?: number | false | import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").ChartArea>;
29
+ backgroundColor?: string | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern> | readonly (string | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern>)[] | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color);
30
+ hoverBackgroundColor?: string | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern> | readonly (string | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern>)[] | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color);
31
+ borderColor?: string | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern> | readonly (string | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern>)[] | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color);
32
+ hoverBorderColor?: string | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern> | readonly (string | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasGradient> | import("chart.js/dist/types/utils")._DeepPartialObject<CanvasPattern>)[] | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color) | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => import("chart.js").Color);
33
+ parsing?: false | import("chart.js/dist/types/utils")._DeepPartialObject<{
34
+ [key: string]: string;
35
+ }>;
36
+ normalized?: boolean;
37
+ borderWidth?: number | readonly number[] | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => number | {
38
+ top?: number;
39
+ right?: number;
40
+ bottom?: number;
41
+ left?: number;
42
+ }) | import("chart.js/dist/types/utils")._DeepPartialObject<{
43
+ top?: number;
44
+ right?: number;
45
+ bottom?: number;
46
+ left?: number;
47
+ }> | readonly (number | import("chart.js/dist/types/utils")._DeepPartialObject<{
48
+ top?: number;
49
+ right?: number;
50
+ bottom?: number;
51
+ left?: number;
52
+ }>)[] | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => number);
53
+ hoverBorderWidth?: number | readonly number[] | ((ctx: import("chart.js").ScriptableContext<"doughnut">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"radar">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"line">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"bubble">, options: import("chart.js/dist/types/basic").AnyObject) => number) | ((ctx: import("chart.js").ScriptableContext<"bar">, options: import("chart.js/dist/types/basic").AnyObject) => number);
54
+ stack?: string;
55
+ }))[];
56
+ };
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseChartBuilderService<any>, never>;
58
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseChartBuilderService<any>>;
59
+ }
@@ -0,0 +1,68 @@
1
+ import { StatisticBucket } from '../../charts';
2
+ import * as i0 from "@angular/core";
3
+ export declare type GraphTransformer = (data: any, response?: any, currentLanguage?: string) => StatisticBucket[];
4
+ export declare type DigitTransformer = (data: any, response?: any) => number;
5
+ export declare class ChartDataTransformers {
6
+ private readonly graphTransformers;
7
+ private readonly digitsTransformers;
8
+ /**
9
+ * Registers a graph Transformer function with the specified key
10
+ * @param key The unique identifier for the Transformer
11
+ * @param Transformer The Transformer function that transforms data into StatisticBucket[]
12
+ */
13
+ registerGraphTransformer(key: string, Transformer: GraphTransformer): void;
14
+ /**
15
+ * Gets a graph Transformer function by its key
16
+ * @param key The unique identifier for the Transformer
17
+ * @returns The Transformer function or undefined if not found
18
+ */
19
+ getGraphTransformer(key: string): GraphTransformer | undefined;
20
+ /**
21
+ * Registers a digits Transformer function with the specified key
22
+ * @param key The unique identifier for the Transformer
23
+ * @param Transformer The Transformer function that transforms data into a number
24
+ */
25
+ registerDigitsTransformer(key: string, Transformer: DigitTransformer): void;
26
+ /**
27
+ * Gets a digits Transformer function by its key
28
+ * @param key The unique identifier for the Transformer
29
+ * @returns The Transformer function or undefined if not found
30
+ */
31
+ getDigitsTransformer(key: string): DigitTransformer | undefined;
32
+ /**
33
+ * Registers multiple graph Transformers at once using a key-value object
34
+ * @param Transformers An object containing key-Transformer pairs to register
35
+ */
36
+ registerGraphTransformers(Transformers: Record<string, GraphTransformer>): void;
37
+ /**
38
+ * Registers multiple digits Transformers at once using a key-value object
39
+ * @param Transformers An object containing key-Transformer pairs to register
40
+ */
41
+ registerDigitsTransformers(Transformers: Record<string, DigitTransformer>): void;
42
+ /**
43
+ * Checks if a graph Transformer exists with the specified key
44
+ * @param key The unique identifier for the Transformer
45
+ * @returns True if the Transformer exists, false otherwise
46
+ */
47
+ hasGraphTransformer(key: string): boolean;
48
+ /**
49
+ * Checks if a digits Transformer exists with the specified key
50
+ * @param key The unique identifier for the Transformer
51
+ * @returns True if the Transformer exists, false otherwise
52
+ */
53
+ hasDigitsTransformer(key: string): boolean;
54
+ /**
55
+ * Deletes a graph Transformer with the specified key
56
+ * @param key The unique identifier for the Transformer to delete
57
+ * @returns True if the Transformer was deleted, false if it didn't exist
58
+ */
59
+ deleteGraphTransformer(key: string): boolean;
60
+ /**
61
+ * Deletes a digits Transformer with the specified key
62
+ * @param key The unique identifier for the Transformer to delete
63
+ * @returns True if the Transformer was deleted, false if it didn't exist
64
+ */
65
+ deleteDigitsTransformer(key: string): boolean;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartDataTransformers, never>;
67
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartDataTransformers>;
68
+ }
@@ -0,0 +1,18 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { Chart } from 'chart.js/auto';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ChartManagerService {
5
+ private _translateService;
6
+ private _document;
7
+ private _charts;
8
+ constructor(_translateService: TranslateService, _document: Document);
9
+ setChart(chart: Chart): void;
10
+ getChart(id: string | number): Chart;
11
+ resizeCharts(): void;
12
+ destroy(id: string | number): void;
13
+ destroyAll(): void;
14
+ printChart(id: string | number, label: string): Promise<void>;
15
+ private _createHiddenCanvasForExport;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartManagerService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartManagerService>;
18
+ }
@@ -0,0 +1,34 @@
1
+ import { ChartType, Plugin } from 'chart.js';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ChartPluginsRegistry {
4
+ private readonly _plugins;
5
+ /**
6
+ * Register a plugin or multiple plugins.
7
+ *
8
+ * @param {string | Record<string, Plugin<ChartType>>} key - The key of the plugin to register or an object containing multiple plugins.
9
+ * @param {Plugin<ChartType>} [plugin] - The plugin instance to register (if `key` is a string).
10
+ * @returns {void}
11
+ */
12
+ register(key: string, plugin: Plugin<ChartType>): void;
13
+ register(plugins: Record<string, Plugin<ChartType>>): void;
14
+ /**
15
+ * Check if a plugin exists with the given key
16
+ * @param key The plugin key to check
17
+ * @returns True if the plugin exists, false otherwise
18
+ */
19
+ has(key: string): boolean;
20
+ /**
21
+ * Get a plugin by its key
22
+ * @param key The key of the plugin to retrieve
23
+ * @returns The plugin instance or undefined if not found
24
+ */
25
+ get(key: string): Plugin<ChartType> | undefined;
26
+ /**
27
+ * Remove a plugin by its key
28
+ * @param key The key of the plugin to remove
29
+ * @returns True if the plugin was removed, false if it didn't exist
30
+ */
31
+ delete(key: string): boolean;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartPluginsRegistry, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChartPluginsRegistry>;
34
+ }
@@ -0,0 +1,11 @@
1
+ import { DigitChart, ReportResponseModel } from '../models';
2
+ import { Observable } from 'rxjs';
3
+ import { ChartDataTransformers } from './chart-data-transformers.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DigitChartService {
6
+ private readonly _dataTransformers;
7
+ constructor(_dataTransformers: ChartDataTransformers);
8
+ prepareChart(response: ReportResponseModel, config: DigitChart): Observable<any>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DigitChartService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<DigitChartService>;
11
+ }
@@ -0,0 +1,32 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { CriteriaModel, DynamicLineChart, TimeGroups } from '../models';
3
+ import { NdfReportsService } from './index';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DynamicTimelineReportService {
6
+ private _ndfReportsService;
7
+ readonly _rebuildTriggerSub: BehaviorSubject<boolean>;
8
+ readonly rebuild$: import("rxjs").Observable<boolean>;
9
+ _isInitialized: boolean;
10
+ isLoadingResult: boolean;
11
+ constructor(_ndfReportsService: NdfReportsService);
12
+ private _selectedGroupSub;
13
+ private _selectedGroup;
14
+ selectedGroup$: import("rxjs").Observable<TimeGroups>;
15
+ payload: CriteriaModel;
16
+ updateSelectedGroup(selected?: TimeGroups): void;
17
+ changeGroup(group: TimeGroups): void;
18
+ rebuild(): void;
19
+ prepareData(): import("rxjs").UnaryFunction<import("rxjs").Observable<[DynamicLineChart, {
20
+ params?: Record<string, any>;
21
+ payload?: {
22
+ predicateList: import("nuxeo-development-framework").OperatorReturn[];
23
+ aggregationNames?: {
24
+ name: string;
25
+ interval: TimeGroups;
26
+ }[];
27
+ } & Record<string, any>;
28
+ }, boolean]>, import("rxjs").Observable<any>>;
29
+ private _prepareSelectedGroups;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTimelineReportService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicTimelineReportService>;
32
+ }
@@ -0,0 +1,10 @@
1
+ export * from './ndf-reports.service';
2
+ export * from './chart-manager.service';
3
+ export * from './report-transform.service';
4
+ export * from './dynamic-timeline-report.service';
5
+ export * from './reports-state.service';
6
+ export * from './digit-chart.service';
7
+ export * from './base-chart-builder.service';
8
+ export * from './chart-data-transformers.service';
9
+ export * from './chart-plugins-registry.service';
10
+ export * from './report-config-mapper.service';
@@ -0,0 +1,19 @@
1
+ import { ApiResponseModel } from '../../../../core/models';
2
+ import { BaseService } from '../../../../shared/services';
3
+ import { NdfReportsRequest } from '../models';
4
+ import * as i0 from "@angular/core";
5
+ declare type CriteriaType = {
6
+ params?: Record<string, any>;
7
+ payload?: {
8
+ predicateList: any[];
9
+ } & Record<string, any>;
10
+ };
11
+ export declare class NdfReportsService extends BaseService {
12
+ getData(request: NdfReportsRequest, criteria?: CriteriaType): import("rxjs").Observable<ApiResponseModel<import("../../../../core/models").EntryModel>>;
13
+ private _query;
14
+ private _customQuery;
15
+ private _prepareRequest;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<NdfReportsService>;
18
+ }
19
+ export {};
@@ -0,0 +1,34 @@
1
+ import { DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
2
+ import { ChartPluginsRegistry } from './chart-plugins-registry.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ReportConfigMapperService {
5
+ private readonly _chartPluginsRegistry;
6
+ constructor(_chartPluginsRegistry: ChartPluginsRegistry);
7
+ /**
8
+ * Prepares a graph chart configuration by converting plugin names to actual plugin objects
9
+ * @param config The graph chart definition
10
+ * @returns The prepared graph chart with plugin objects
11
+ */
12
+ prepareGraphConfig(config: GraphChartDefinition): GraphChart;
13
+ /**
14
+ * Prepares a dynamic line chart configuration by converting plugin names to actual plugin objects
15
+ * @param config The dynamic line chart definition
16
+ * @returns The prepared dynamic line chart with plugin objects
17
+ */
18
+ prepareGraphLineConfig(config: DynamicLineChartDefinition): DynamicLineChart;
19
+ /**
20
+ * Prepares a digit chart configuration
21
+ * @param config The digit chart definition
22
+ * @returns The prepared digit chart (currently just returns the input as is)
23
+ */
24
+ prepareDigitConfig(config: DigitChartDefinition): DigitChart;
25
+ /**
26
+ * Converts an array of plugin names to an array of plugin objects
27
+ * @param plugins Array of plugin names
28
+ * @returns Array of plugin objects or undefined if no plugins
29
+ */
30
+ private _preparePlugins;
31
+ private _getChartOptions;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportConfigMapperService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReportConfigMapperService>;
34
+ }