nuxeo-development-framework 4.3.1 → 4.3.3

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 (214) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +4365 -3037
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/charts/chart.const.js +3 -0
  4. package/esm2015/lib/components/charts/chart.token.js +3 -0
  5. package/esm2015/lib/components/charts/charts.module.js +19 -0
  6. package/esm2015/lib/components/charts/components/base-chart.component.js +44 -0
  7. package/esm2015/lib/components/charts/components/chart.component.js +135 -0
  8. package/esm2015/lib/components/charts/components/data-chart.component.js +169 -0
  9. package/esm2015/lib/components/charts/components/index.js +4 -0
  10. package/esm2015/lib/components/charts/defaults/bar.js +18 -0
  11. package/esm2015/lib/components/charts/defaults/doughnut.js +18 -0
  12. package/esm2015/lib/components/charts/defaults/index.js +5 -0
  13. package/esm2015/lib/components/charts/defaults/line.js +36 -0
  14. package/esm2015/lib/components/charts/defaults/pie.js +20 -0
  15. package/esm2015/lib/components/charts/index.js +10 -0
  16. package/esm2015/lib/components/charts/models/index.js +5 -0
  17. package/esm2015/lib/components/charts/models/options.js +2 -0
  18. package/esm2015/lib/components/charts/models/plugins-options.js +2 -0
  19. package/esm2015/lib/components/charts/models/response.js +2 -0
  20. package/esm2015/lib/components/charts/models/statistic-request-config.js +2 -0
  21. package/esm2015/lib/components/charts/plugins/doughnut-center-text.js +25 -0
  22. package/esm2015/lib/components/charts/plugins/doughnut-empty-state.js +34 -0
  23. package/esm2015/lib/components/charts/plugins/index.js +4 -0
  24. package/esm2015/lib/components/charts/plugins/legend-margin.js +16 -0
  25. package/esm2015/lib/components/charts/services/index.js +2 -0
  26. package/esm2015/lib/components/charts/services/statistic.service.js +75 -0
  27. package/esm2015/lib/components/charts/utility/colors.js +79 -0
  28. package/esm2015/lib/components/charts/utility/common.js +7 -0
  29. package/esm2015/lib/components/charts/utility/index.js +3 -0
  30. package/esm2015/lib/components/comments/comments.module.js +9 -5
  31. package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +30 -23
  32. package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +28 -34
  33. package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +22 -22
  34. package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +16 -18
  35. package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +6 -6
  36. package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +3 -2
  37. package/esm2015/lib/components/correspondence-relation/correspondence-relation.module.js +33 -29
  38. package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +32 -24
  39. package/esm2015/lib/components/diagrams/components/connection-label.component.js +1 -1
  40. package/esm2015/lib/components/diagrams/directive/diagram.directive.js +2 -3
  41. package/esm2015/lib/components/diagrams/editor/customize.js +11 -14
  42. package/esm2015/lib/components/diagrams/editor/overrides/connection-path.transformers.js +21 -34
  43. package/esm2015/lib/components/diagrams/editor/path-plugin.js +11 -10
  44. package/esm2015/lib/components/diagrams/models/base-node.model.js +2 -1
  45. package/esm2015/lib/components/diagrams/models/connection.model.js +1 -1
  46. package/esm2015/lib/components/diagrams/types/common.type.js +1 -1
  47. package/esm2015/lib/components/diagrams/types/diagram-config.type.js +1 -1
  48. package/esm2015/lib/components/diagrams/types/node-definition.js +1 -1
  49. package/esm2015/lib/components/diagrams/utilities/random.js +9 -3
  50. package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +9 -11
  51. package/esm2015/lib/components/documents/components/document-upload/document-upload.component.js +17 -7
  52. package/esm2015/lib/components/documents/components/documents/documents.component.js +1 -1
  53. package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +45 -40
  54. package/esm2015/lib/components/dynamic-chart/dynamic-chart.module.js +21 -17
  55. package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +98 -92
  56. package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.js +22 -10
  57. package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.js +8 -4
  58. package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js +28 -29
  59. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +16 -3
  60. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +26 -18
  61. package/esm2015/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.js +2 -2
  62. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +4 -2
  63. package/esm2015/lib/components/dynamic-form/dynamic-form.module.js +13 -10
  64. package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +3 -3
  65. package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +68 -29
  66. package/esm2015/lib/components/file-manger/components/add-to-collection/add-to-collection.component.js +60 -42
  67. package/esm2015/lib/components/file-manger/components/copy/copy.component.js +66 -36
  68. package/esm2015/lib/components/file-manger/components/create-directory/create-directory.component.js +40 -13
  69. package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +238 -200
  70. package/esm2015/lib/components/file-manger/components/creation-type/creation-type.component.js +14 -12
  71. package/esm2015/lib/components/file-manger/components/delete/delete.component.js +49 -20
  72. package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +45 -43
  73. package/esm2015/lib/components/file-manger/components/loan-request/loan-request.component.js +63 -36
  74. package/esm2015/lib/components/file-manger/components/move/move.component.js +61 -31
  75. package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +81 -81
  76. package/esm2015/lib/components/file-manger/components/rename/rename.component.js +58 -30
  77. package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +99 -66
  78. package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +95 -75
  79. package/esm2015/lib/components/file-manger/components/template-modal/template-modal.component.js +15 -11
  80. package/esm2015/lib/components/file-manger/components/transfer-doc/transfer-doc.component.js +54 -23
  81. package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +24 -24
  82. package/esm2015/lib/components/file-manger/file-manager.abstract.js +266 -264
  83. package/esm2015/lib/components/file-manger/file-manger.module.js +39 -35
  84. package/esm2015/lib/components/filter/filter/filter.component.js +1 -1
  85. package/esm2015/lib/components/notifications/components/base-notifications.component.js +2 -16
  86. package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +3 -3
  87. package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +24 -4
  88. package/esm2015/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.js +3 -2
  89. package/esm2015/lib/components/notifications/models/notification-message.mode.js +1 -1
  90. package/esm2015/lib/components/notifications/models/notifications-list-options.js +1 -1
  91. package/esm2015/lib/components/notifications/services/notifications.service.js +23 -17
  92. package/esm2015/lib/components/notifications/services/socket.service.js +13 -5
  93. package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +107 -90
  94. package/esm2015/lib/components/permissions/permissions/permissions.component.js +100 -57
  95. package/esm2015/lib/components/permissions/permissions-template/permissions-template.component.js +36 -52
  96. package/esm2015/lib/components/permissions/permissions.module.js +23 -7
  97. package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +1 -1
  98. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +37 -0
  99. package/esm2015/lib/components/spell-checker-field/spell-checker-text-field/spell-checker-text-field.component.js +88 -0
  100. package/esm2015/lib/components/table/dynamic-component.js +59 -0
  101. package/esm2015/lib/components/table/page-sizes-list/page-sizes-list.component.js +38 -0
  102. package/esm2015/lib/components/table/table/table.component.js +39 -21
  103. package/esm2015/lib/components/table/table.module.js +22 -18
  104. package/esm2015/lib/components/vocabulary/services/vocabulary-api.service.js +11 -6
  105. package/esm2015/lib/core/services/callApi/call-api.service.js +23 -6
  106. package/esm2015/lib/shared/components/base/base-selector.component.js +1 -1
  107. package/esm2015/lib/shared/components/base/base.component.js +5 -5
  108. package/esm2015/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.js +1 -1
  109. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.js +8 -4
  110. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +11 -7
  111. package/esm2015/lib/shared/services/base/http-base.service.js +10 -19
  112. package/esm2015/lib/shared-services/dialog-mangment.service.js +66 -21
  113. package/esm2015/lib/shared-services/shared-docs.service.js +20 -26
  114. package/esm2015/public-api.js +8 -2
  115. package/fesm2015/nuxeo-development-framework.js +3555 -2277
  116. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  117. package/lib/components/charts/chart.const.d.ts +2 -0
  118. package/lib/components/charts/chart.token.d.ts +8 -0
  119. package/lib/components/charts/charts.module.d.ts +9 -0
  120. package/lib/components/charts/components/base-chart.component.d.ts +21 -0
  121. package/lib/components/charts/components/chart.component.d.ts +28 -0
  122. package/lib/components/charts/components/data-chart.component.d.ts +39 -0
  123. package/lib/components/charts/components/index.d.ts +3 -0
  124. package/lib/components/charts/defaults/bar.d.ts +2 -0
  125. package/lib/components/charts/defaults/doughnut.d.ts +2 -0
  126. package/lib/components/charts/defaults/index.d.ts +4 -0
  127. package/lib/components/charts/defaults/line.d.ts +2 -0
  128. package/lib/components/charts/defaults/pie.d.ts +2 -0
  129. package/lib/components/charts/index.d.ts +9 -0
  130. package/lib/components/charts/models/index.d.ts +4 -0
  131. package/lib/components/charts/models/options.d.ts +12 -0
  132. package/lib/components/charts/models/plugins-options.d.ts +18 -0
  133. package/lib/components/charts/models/response.d.ts +5 -0
  134. package/lib/components/charts/models/statistic-request-config.d.ts +30 -0
  135. package/lib/components/charts/plugins/doughnut-center-text.d.ts +2 -0
  136. package/lib/components/charts/plugins/doughnut-empty-state.d.ts +2 -0
  137. package/lib/components/charts/plugins/index.d.ts +3 -0
  138. package/lib/components/charts/plugins/legend-margin.d.ts +2 -0
  139. package/lib/components/charts/services/index.d.ts +1 -0
  140. package/lib/components/charts/services/statistic.service.d.ts +23 -0
  141. package/lib/components/charts/utility/colors.d.ts +11 -0
  142. package/lib/components/charts/utility/common.d.ts +4 -0
  143. package/lib/components/charts/utility/index.d.ts +2 -0
  144. package/lib/components/comments/comments.module.d.ts +2 -1
  145. package/lib/components/comments/components/comment-item/comment-item.component.d.ts +3 -1
  146. package/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.d.ts +8 -5
  147. package/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.d.ts +8 -8
  148. package/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.d.ts +5 -5
  149. package/lib/components/correspondence-relation/correspondence-relation.module.d.ts +3 -2
  150. package/lib/components/diagrams/editor/customize.d.ts +7 -7
  151. package/lib/components/diagrams/editor/overrides/connection-path.transformers.d.ts +2 -5
  152. package/lib/components/diagrams/models/base-node.model.d.ts +1 -1
  153. package/lib/components/diagrams/models/connection.model.d.ts +2 -1
  154. package/lib/components/diagrams/types/common.type.d.ts +4 -0
  155. package/lib/components/diagrams/types/diagram-config.type.d.ts +7 -7
  156. package/lib/components/diagrams/types/node-definition.d.ts +1 -0
  157. package/lib/components/diagrams/utilities/random.d.ts +1 -1
  158. package/lib/components/documents/components/document-upload/document-upload.component.d.ts +3 -1
  159. package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +11 -10
  160. package/lib/components/dynamic-chart/dynamic-chart.module.d.ts +5 -6
  161. package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.d.ts +6 -2
  162. package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.d.ts +2 -1
  163. package/lib/components/dynamic-form/components/department-form/department-form.component.d.ts +4 -4
  164. package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +5 -1
  165. package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +3 -1
  166. package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +5 -1
  167. package/lib/components/dynamic-form/dynamic-form.module.d.ts +2 -1
  168. package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +29 -11
  169. package/lib/components/file-manger/components/add-to-collection/add-to-collection.component.d.ts +11 -5
  170. package/lib/components/file-manger/components/copy/copy.component.d.ts +11 -4
  171. package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts +9 -4
  172. package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +13 -19
  173. package/lib/components/file-manger/components/creation-type/creation-type.component.d.ts +6 -4
  174. package/lib/components/file-manger/components/delete/delete.component.d.ts +11 -4
  175. package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +9 -11
  176. package/lib/components/file-manger/components/loan-request/loan-request.component.d.ts +11 -5
  177. package/lib/components/file-manger/components/move/move.component.d.ts +11 -4
  178. package/lib/components/file-manger/components/publish-dialog/publish-dialog.component.d.ts +12 -10
  179. package/lib/components/file-manger/components/rename/rename.component.d.ts +11 -5
  180. package/lib/components/file-manger/components/scan-modal/scan-modal.component.d.ts +9 -8
  181. package/lib/components/file-manger/components/share-dialog/share-dialog.component.d.ts +6 -7
  182. package/lib/components/file-manger/components/template-modal/template-modal.component.d.ts +4 -3
  183. package/lib/components/file-manger/components/transfer-doc/transfer-doc.component.d.ts +11 -4
  184. package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +9 -8
  185. package/lib/components/file-manger/file-manager.abstract.d.ts +24 -22
  186. package/lib/components/file-manger/file-manger.module.d.ts +2 -1
  187. package/lib/components/notifications/components/base-notifications.component.d.ts +2 -8
  188. package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +1 -1
  189. package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +4 -1
  190. package/lib/components/notifications/models/notification-message.mode.d.ts +1 -0
  191. package/lib/components/notifications/models/notifications-list-options.d.ts +4 -0
  192. package/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.d.ts +8 -6
  193. package/lib/components/permissions/permissions/permissions.component.d.ts +3 -1
  194. package/lib/components/permissions/permissions-template/permissions-template.component.d.ts +3 -3
  195. package/lib/components/permissions/permissions.module.d.ts +2 -1
  196. package/lib/components/spell-checker-field/spell-checker-field.module.d.ts +10 -0
  197. package/lib/components/spell-checker-field/spell-checker-text-field/spell-checker-text-field.component.d.ts +24 -0
  198. package/lib/components/table/dynamic-component.d.ts +20 -0
  199. package/lib/components/table/page-sizes-list/page-sizes-list.component.d.ts +15 -0
  200. package/lib/components/table/table/table.component.d.ts +15 -6
  201. package/lib/components/table/table.module.d.ts +14 -10
  202. package/lib/components/vocabulary/services/vocabulary-api.service.d.ts +2 -2
  203. package/lib/core/services/callApi/call-api.service.d.ts +8 -1
  204. package/lib/shared/components/base/base-selector.component.d.ts +4 -4
  205. package/lib/shared/components/base/base.component.d.ts +5 -5
  206. package/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.d.ts +2 -1
  207. package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +2 -1
  208. package/lib/shared/services/base/http-base.service.d.ts +3 -1
  209. package/lib/shared-services/dialog-mangment.service.d.ts +5 -1
  210. package/lib/shared-services/shared-docs.service.d.ts +3 -1
  211. package/package.json +3 -4
  212. package/public-api.d.ts +7 -1
  213. package/esm2015/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.js +0 -164
  214. package/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.d.ts +0 -33
@@ -0,0 +1,2 @@
1
+ export declare const COLORS_COUNT = 10;
2
+ export declare const CHART_MAIN_COLOR = "#184e77";
@@ -0,0 +1,8 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Plugin } from 'chart.js';
3
+ export declare type ChartDefaultsOptions = {
4
+ globalPlugins?: Plugin[];
5
+ fontFamily?: string;
6
+ fontSize?: number;
7
+ };
8
+ export declare const CHART_DEFAULTS_OPTIONS: InjectionToken<ChartDefaultsOptions>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/chart.component";
3
+ import * as i2 from "./components/data-chart.component";
4
+ import * as i3 from "@angular/common";
5
+ export declare class ChartsModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartsModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ChartsModule, [typeof i1.ChartComponent, typeof i2.DataChartComponent], [typeof i3.CommonModule], [typeof i1.ChartComponent, typeof i2.DataChartComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ChartsModule>;
9
+ }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ChartType, Plugin } from 'chart.js';
3
+ import Chart from 'chart.js/auto';
4
+ import { DestroySubject } from '../../../shared/components';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class BaseChartComponent<TType extends ChartType = ChartType> extends DestroySubject {
7
+ type: TType;
8
+ plugins: Plugin<TType>[];
9
+ width: string | undefined;
10
+ height: string | undefined;
11
+ responsive: boolean;
12
+ legend: boolean;
13
+ fontFamily: string;
14
+ fontSize: number;
15
+ onReady: EventEmitter<Chart>;
16
+ protected _chart: Chart;
17
+ getChart(): Chart<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint)[], unknown>;
18
+ protected refresh(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseChartComponent<any>, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChartComponent<any>, never, never, { "type": "type"; "plugins": "plugins"; "width": "width"; "height": "height"; "responsive": "responsive"; "legend": "legend"; "fontFamily": "fontFamily"; "fontSize": "fontSize"; }, { "onReady": "onReady"; }, never>;
21
+ }
@@ -0,0 +1,28 @@
1
+ import { AfterViewInit, ElementRef, NgZone } from '@angular/core';
2
+ import { ChartData, ChartType } from 'chart.js/auto';
3
+ import { ChartDefaultsOptions } from '../chart.token';
4
+ import { CustomChartOptions } from '../models';
5
+ import { BaseChartComponent } from './base-chart.component';
6
+ import 'chartjs-adapter-moment';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ChartComponent<TType extends ChartType = ChartType> extends BaseChartComponent<TType> implements AfterViewInit {
9
+ element: ElementRef;
10
+ protected _ngZone: NgZone;
11
+ protected _options: CustomChartOptions<TType>;
12
+ protected _data: ChartData<TType>;
13
+ get data(): ChartData<TType>;
14
+ set data(val: ChartData<TType>);
15
+ get options(): CustomChartOptions<TType>;
16
+ set options(val: CustomChartOptions<TType>);
17
+ constructor(element: ElementRef, _ngZone: NgZone, defaults: ChartDefaultsOptions);
18
+ getCanvas(): HTMLCanvasElement;
19
+ ngAfterViewInit(): void;
20
+ protected listenToWindowResize(): void;
21
+ protected initChart(): void;
22
+ protected reinitialize(): void;
23
+ ngOnDestroy(): void;
24
+ private _setFontDefaults;
25
+ private _registerGlobalPlugins;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent<any>, [null, null, { optional: true; }]>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent<any>, "app-chart", never, { "data": "data"; "options": "options"; }, {}, never, never>;
28
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { ChartData, ChartDataset, ChartType, Color } from 'chart.js';
4
+ import { Observable } from 'rxjs';
5
+ import { CustomChartOptions, DataSourceConfig, DataSourceResult } from '../models';
6
+ import { StatisticService } from '../services';
7
+ import { BaseChartComponent } from './base-chart.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class DataChartComponent<TType extends ChartType> extends BaseChartComponent<TType> implements OnInit {
10
+ private _translateService;
11
+ private _statisticService;
12
+ private _dataSource;
13
+ set dataSource(obj: DataSourceConfig<TType>);
14
+ get dataSource(): DataSourceConfig<TType>;
15
+ options: CustomChartOptions<TType>;
16
+ dataset: Omit<ChartDataset<TType>, 'data'>;
17
+ translatePrefix: string;
18
+ bindValue: string;
19
+ colors: Color[];
20
+ updateOnLangChange: boolean;
21
+ set updateData(params: Record<string, any>);
22
+ transformData: (data: DataSourceResult<TType>[]) => ChartData<TType>;
23
+ onDataReady: EventEmitter<DataSourceResult<TType>[]>;
24
+ chartData$: Observable<ChartData>;
25
+ private _rebuildDataSub;
26
+ private _rebuildTrigger$;
27
+ private _isInitialized;
28
+ private readonly _defaultParams;
29
+ constructor(_translateService: TranslateService, _statisticService: StatisticService);
30
+ ngOnInit(): void;
31
+ private _subscribeToLanguage;
32
+ private _preparedData;
33
+ private _prepareChartData;
34
+ private _fetchStatistic;
35
+ private _generateColors;
36
+ private _getMainColor;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataChartComponent<any>, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataChartComponent<any>, "app-data-chart", never, { "dataSource": "dataSource"; "options": "options"; "dataset": "dataset"; "translatePrefix": "translatePrefix"; "bindValue": "bindValue"; "colors": "colors"; "updateOnLangChange": "updateOnLangChange"; "updateData": "updateData"; "transformData": "transformData"; }, { "onDataReady": "onDataReady"; }, never, never>;
39
+ }
@@ -0,0 +1,3 @@
1
+ export * from './base-chart.component';
2
+ export * from './chart.component';
3
+ export * from './data-chart.component';
@@ -0,0 +1,2 @@
1
+ import { ChartOptions } from 'chart.js';
2
+ export declare const BAR_OPTIONS: ChartOptions<'bar'>;
@@ -0,0 +1,2 @@
1
+ import { ChartOptions } from 'chart.js';
2
+ export declare const DOUGHNUT_OPTIONS: ChartOptions<'doughnut'>;
@@ -0,0 +1,4 @@
1
+ export * from './bar';
2
+ export * from './doughnut';
3
+ export * from './line';
4
+ export * from './pie';
@@ -0,0 +1,2 @@
1
+ import { ChartOptions } from 'chart.js';
2
+ export declare const LINE_OPTIONS: ChartOptions<'line'>;
@@ -0,0 +1,2 @@
1
+ import { ChartOptions } from 'chart.js';
2
+ export declare const PIE_OPTIONS: ChartOptions<'pie'>;
@@ -0,0 +1,9 @@
1
+ export * from './chart.const';
2
+ export * from './chart.token';
3
+ export * from './charts.module';
4
+ export * from './components';
5
+ export * as ChartDefaults from './defaults';
6
+ export * from './models';
7
+ export * as ChartPlugins from './plugins';
8
+ export * from './services';
9
+ export * as ChartUtils from './utility';
@@ -0,0 +1,4 @@
1
+ export * from './options';
2
+ export * from './plugins-options';
3
+ export * from './response';
4
+ export * from './statistic-request-config';
@@ -0,0 +1,12 @@
1
+ import { ChartOptions, ChartType, PluginOptionsByType } from 'chart.js';
2
+ import { DeepPartial } from 'chart.js/dist/types/utils';
3
+ import { EmptyDoughnutOptions, LegendMargin, TextCenterOptions } from './plugins-options';
4
+ export declare type ChartPluginsOptions<TType extends ChartType> = PluginOptionsByType<TType> & {
5
+ centerText: TextCenterOptions;
6
+ emptyDoughnut: EmptyDoughnutOptions;
7
+ legendMargin: LegendMargin;
8
+ };
9
+ export interface CustomPluginChartOptions<TType extends ChartType> {
10
+ plugins: ChartPluginsOptions<TType>;
11
+ }
12
+ export declare type CustomChartOptions<TType extends ChartType = ChartType> = ChartOptions<TType> & DeepPartial<CustomPluginChartOptions<TType>>;
@@ -0,0 +1,18 @@
1
+ export declare type TextCenterOptions = {
2
+ font?: string;
3
+ color?: string;
4
+ text?: string;
5
+ };
6
+ export declare type EmptyDoughnutOptions = {
7
+ radiusDecrease?: number;
8
+ lineWidth?: number;
9
+ color?: string;
10
+ backgroundColor?: string;
11
+ text?: string;
12
+ font?: string;
13
+ fontColor?: string;
14
+ showMessage?: boolean;
15
+ };
16
+ export declare type LegendMargin = {
17
+ margin: number;
18
+ };
@@ -0,0 +1,5 @@
1
+ export declare type StatisticBucket = {
2
+ key: string;
3
+ docCount: number;
4
+ [k: string]: any;
5
+ };
@@ -0,0 +1,30 @@
1
+ import { ChartDataset, ChartType } from 'chart.js';
2
+ import { CustomChartOptions } from './options';
3
+ import { StatisticBucket } from './response';
4
+ export interface StatisticRequestConfig {
5
+ pageProvider: string;
6
+ headers?: Record<string, any>;
7
+ params?: Record<string, any>;
8
+ propertyPath: string;
9
+ bindLabel?: string;
10
+ bindValue?: string;
11
+ retryCount?: number;
12
+ ignoreCache?: boolean;
13
+ onQuery?: (data: Record<string, any>) => Record<string, any>;
14
+ transformData?: (data: any, response?: any) => StatisticBucket[];
15
+ onError?: (error: Error) => void;
16
+ }
17
+ export declare type DataSourceConfig<T extends ChartType> = Array<{
18
+ label?: string;
19
+ colors?: string[];
20
+ config: StatisticRequestConfig[];
21
+ dataset?: Omit<ChartDataset<T>, 'data'>;
22
+ }>;
23
+ export declare type DataSourceResult<T extends ChartType> = {
24
+ results: StatisticBucket[];
25
+ meta: {
26
+ label: string;
27
+ colors?: string[];
28
+ dataset: CustomChartOptions<T>;
29
+ };
30
+ };
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'chart.js';
2
+ export declare const centerText: Plugin<'doughnut' | 'pie'>;
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'chart.js';
2
+ export declare const doughnutEmptyState: Plugin<'doughnut' | 'pie'>;
@@ -0,0 +1,3 @@
1
+ export * from './doughnut-center-text';
2
+ export * from './doughnut-empty-state';
3
+ export * from './legend-margin';
@@ -0,0 +1,2 @@
1
+ import { ChartType, Plugin } from 'chart.js';
2
+ export declare const legendMargin: Plugin<ChartType>;
@@ -0,0 +1 @@
1
+ export * from './statistic.service';
@@ -0,0 +1,23 @@
1
+ import { Observable } from 'rxjs';
2
+ import { NuxeoPagination } from '../../../shared/models';
3
+ import { BaseService } from '../../../shared/services';
4
+ import { StatisticBucket, StatisticRequestConfig } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ declare type QueryParams = Pick<StatisticRequestConfig, 'pageProvider' | 'headers' | 'params' | 'ignoreCache'>;
7
+ export declare class StatisticService extends BaseService {
8
+ private _cache;
9
+ private translatePrefix;
10
+ private bindValue;
11
+ prepareConfig(data: {
12
+ translatePrefix?: string;
13
+ bindValue?: string;
14
+ }): void;
15
+ getStatistic({ pageProvider, headers, params, ignoreCache }: QueryParams): Observable<NuxeoPagination<any>>;
16
+ prepareStatistic(config: StatisticRequestConfig, params?: Record<string, any>): Observable<StatisticBucket[]>;
17
+ private _generateKey;
18
+ private _getLabel;
19
+ private _getValue;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatisticService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<StatisticService>;
22
+ }
23
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare function transparentize(value: string, opacity: number): string;
2
+ export declare function colorToHex(color: any): any;
3
+ export declare function hexToRgb(hex: string): {
4
+ r: number;
5
+ g: number;
6
+ b: number;
7
+ };
8
+ export declare function rgbToHex(r: number, g: number, b: number): string;
9
+ export declare function createTint(color: string, amount: number): string;
10
+ export declare function createShade(color: string, amount: number): string;
11
+ export declare function createColorVariants(color: string, length: number, type?: 'tint' | 'shade', amount?: number): string[];
@@ -0,0 +1,4 @@
1
+ import { ChartDataset, ChartType } from 'chart.js';
2
+ import { StatisticBucket } from '../models';
3
+ export declare function flatArray<T = StatisticBucket>(data: T[][]): T[];
4
+ export declare function isObject<T extends ChartType>(obj: any): obj is Partial<ChartDataset<T>>;
@@ -0,0 +1,2 @@
1
+ export * from './colors';
2
+ export * from './common';
@@ -14,6 +14,7 @@ import * as i12 from "@angular/material/icon";
14
14
  import * as i13 from "@angular/material/progress-spinner";
15
15
  import * as i14 from "@angular/material/tooltip";
16
16
  import * as i15 from "../../directive/directive.module";
17
+ import * as i16 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
17
18
  /**
18
19
  * @title
19
20
  * Comments Module
@@ -21,6 +22,6 @@ import * as i15 from "../../directive/directive.module";
21
22
  */
22
23
  export declare class CommentsModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CommentsModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<CommentsModule, [typeof i1.CommentsDashletComponent, typeof i2.CommentsListComponent, typeof i3.CommentItemComponent, typeof i4.EditDeleteModalComponent], [typeof i5.CommonModule, typeof i6.LibrarySharedModule, typeof i7.InfiniteScrollModule, typeof i8.FormsModule, typeof i9.CardModule, typeof i10.PipesModule, typeof i11.TranslateModule, typeof i12.MatIconModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatTooltipModule, typeof i15.DirectiveModule, typeof i14.MatTooltipModule], [typeof i1.CommentsDashletComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CommentsModule, [typeof i1.CommentsDashletComponent, typeof i2.CommentsListComponent, typeof i3.CommentItemComponent, typeof i4.EditDeleteModalComponent], [typeof i5.CommonModule, typeof i6.LibrarySharedModule, typeof i7.InfiniteScrollModule, typeof i8.FormsModule, typeof i9.CardModule, typeof i10.PipesModule, typeof i11.TranslateModule, typeof i12.MatIconModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatTooltipModule, typeof i15.DirectiveModule, typeof i14.MatTooltipModule, typeof i16.NuxeoDialogModule], [typeof i1.CommentsDashletComponent]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<CommentsModule>;
26
27
  }
@@ -2,6 +2,7 @@ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { TranslationService } from '../../../../core/services/translation/translation.service';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { MatDialog } from '@angular/material/dialog';
5
+ import { NuxeoDialogService } from '../../../../shared/components/nuxeo-dialog/services/nuxeo-dialog.service';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
7
8
  * @ignore
@@ -9,6 +10,7 @@ import * as i0 from "@angular/core";
9
10
  export declare class CommentItemComponent implements OnInit {
10
11
  private translationSrvice;
11
12
  private dialog;
13
+ nuxeoDialogService: NuxeoDialogService;
12
14
  comment: any;
13
15
  loaderType: string;
14
16
  showCommentActions: boolean;
@@ -16,7 +18,7 @@ export declare class CommentItemComponent implements OnInit {
16
18
  langSubscription: Subscription;
17
19
  dialogRef: any;
18
20
  refreshCommentList: EventEmitter<any>;
19
- constructor(translationSrvice: TranslationService, dialog: MatDialog);
21
+ constructor(translationSrvice: TranslationService, dialog: MatDialog, nuxeoDialogService: NuxeoDialogService);
20
22
  ngOnInit(): void;
21
23
  executeFunction(type: any): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CommentItemComponent, never>;
@@ -1,10 +1,12 @@
1
- import { OnInit } from '@angular/core';
1
+ import { Injector, OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { ToastrService } from 'ngx-toastr';
4
4
  import { NuxeoService } from '../../../../core/services/nuxeo/nuxeo.service';
5
5
  import { CommentApiService } from '../../services/comment-api.service';
6
+ import { BaseDialogComponent } from '../../../../shared/components/base/base-dialog.component';
7
+ import { DialogActionType } from '../../../../shared/components/nuxeo-dialog/models/dialog-option.model';
6
8
  import * as i0 from "@angular/core";
7
- export declare class EditDeleteModalComponent implements OnInit {
9
+ export declare class EditDeleteModalComponent extends BaseDialogComponent<EditDeleteModalComponent, any, any> implements OnInit {
8
10
  data: any;
9
11
  private toaster;
10
12
  private commentApi;
@@ -12,11 +14,12 @@ export declare class EditDeleteModalComponent implements OnInit {
12
14
  dialogRef: MatDialogRef<EditDeleteModalComponent>;
13
15
  operationType: any;
14
16
  comment: any;
15
- constructor(data: any, toaster: ToastrService, commentApi: CommentApiService, nuxeoService: NuxeoService, dialogRef: MatDialogRef<EditDeleteModalComponent>);
17
+ injector: Injector;
18
+ constructor(data: any, toaster: ToastrService, commentApi: CommentApiService, nuxeoService: NuxeoService, dialogRef: MatDialogRef<EditDeleteModalComponent>, injector: Injector);
16
19
  ngOnInit(): void;
17
- delete(): void;
20
+ delete: DialogActionType;
18
21
  cancel(): void;
19
- update(): void;
22
+ update: DialogActionType;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<EditDeleteModalComponent, never>;
21
24
  static ɵcmp: i0.ɵɵComponentDeclaration<EditDeleteModalComponent, "lib-edit-delete-modal", never, {}, {}, never, never>;
22
25
  }
@@ -1,11 +1,11 @@
1
- import { OnInit } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
- import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
4
- import { CorrespondenceRelationService } from '../../services/correspondence-realation.service';
5
- import { DocumentsService } from '../../../documents/services/documents.service';
6
- import { ViewerFilesService } from '../../services/viewer-files.service';
7
- import { UserPreferencesService } from '../../../../core/services/user/user-preferences.service';
8
- import { NuxeoService } from '../../../../core/services/nuxeo/nuxeo.service';
1
+ import { OnInit } from "@angular/core";
2
+ import { MatDialog } from "@angular/material/dialog";
3
+ import { CustomToastrService } from "../../../custom-toastr/services/custom-toastr.service";
4
+ import { CorrespondenceRelationService } from "../../services/correspondence-realation.service";
5
+ import { DocumentsService } from "../../../documents/services/documents.service";
6
+ import { ViewerFilesService } from "../../services/viewer-files.service";
7
+ import { UserPreferencesService } from "../../../../core/services/user/user-preferences.service";
8
+ import { NuxeoService } from "../../../../core/services/nuxeo/nuxeo.service";
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class CorrespondenceRelationComponent implements OnInit {
11
11
  dialog: MatDialog;
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
3
- import { MatDialogRef } from '@angular/material/dialog';
4
- import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
5
- import { CorrespondenceRelationService } from '../../services/correspondence-realation.service';
1
+ import { OnInit } from "@angular/core";
2
+ import { FormBuilder, FormGroup } from "@angular/forms";
3
+ import { MatDialogRef } from "@angular/material/dialog";
4
+ import { CustomToastrService } from "../../../custom-toastr/services/custom-toastr.service";
5
+ import { CorrespondenceRelationService } from "../../services/correspondence-realation.service";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class CorrespondenceRelationCreateFormComponent implements OnInit {
8
8
  private _formBuilder;
@@ -22,10 +22,11 @@ import * as i20 from "@angular/material/expansion";
22
22
  import * as i21 from "../../shared/libraryShared.module";
23
23
  import * as i22 from "../../directive/directive.module";
24
24
  import * as i23 from "../../pipes/pipes.module";
25
- import * as i24 from "@angular/material/progress-spinner";
25
+ import * as i24 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
26
+ import * as i25 from "@angular/material/progress-spinner";
26
27
  /** @ignore */
27
28
  export declare class CorrespondenceRelationModule {
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CorrespondenceRelationModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<CorrespondenceRelationModule, [typeof i1.CorrespondenceRelationListComponent, typeof i2.CorrespondenceRelationComponent, typeof i3.CorrespondenceRelationCreateFormComponent, typeof i4.CorrespondenceRelationReplyComponent, typeof i5.VersionsComponent], [typeof i6.CommonModule, typeof i7.DynamicFormModule, typeof i8.TranslateModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatDialogModule, typeof i11.DynamicSearchModule, typeof i12.MatIconModule, typeof i13.NgSelectModule, typeof i14.SelectModule, typeof i15.AutocompleteLibModule, typeof i16.LayoutModule, typeof i17.MatChipsModule, typeof i18.MatMenuModule, typeof i19.MatListModule, typeof i12.MatIconModule, typeof i20.MatExpansionModule, typeof i21.LibrarySharedModule, typeof i22.DirectiveModule, typeof i23.PipesModule, typeof i24.MatProgressSpinnerModule], [typeof i2.CorrespondenceRelationComponent, typeof i5.VersionsComponent]>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CorrespondenceRelationModule, [typeof i1.CorrespondenceRelationListComponent, typeof i2.CorrespondenceRelationComponent, typeof i3.CorrespondenceRelationCreateFormComponent, typeof i4.CorrespondenceRelationReplyComponent, typeof i5.VersionsComponent], [typeof i6.CommonModule, typeof i7.DynamicFormModule, typeof i8.TranslateModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatDialogModule, typeof i11.DynamicSearchModule, typeof i12.MatIconModule, typeof i13.NgSelectModule, typeof i14.SelectModule, typeof i15.AutocompleteLibModule, typeof i16.LayoutModule, typeof i17.MatChipsModule, typeof i18.MatMenuModule, typeof i19.MatListModule, typeof i12.MatIconModule, typeof i20.MatExpansionModule, typeof i21.LibrarySharedModule, typeof i22.DirectiveModule, typeof i23.PipesModule, typeof i24.NuxeoDialogModule, typeof i25.MatProgressSpinnerModule], [typeof i2.CorrespondenceRelationComponent, typeof i5.VersionsComponent]>;
30
31
  static ɵinj: i0.ɵɵInjectorDeclaration<CorrespondenceRelationModule>;
31
32
  }
@@ -1,25 +1,25 @@
1
- import { NodeEditor } from 'rete';
2
- import { ExtractPayload } from 'rete-angular-plugin/presets/classic/types';
3
- import { ContentNode } from '../models';
4
- import { AngularComponent, DiagramConfig, NodeDefinitionData, NodeType, Schemes } from '../types';
1
+ import { NodeEditor } from "rete";
2
+ import { ExtractPayload } from "rete-angular-plugin/presets/classic/types";
3
+ import { ContentNode } from "../models";
4
+ import { AngularComponent, DiagramConfig, NodeDefinitionData, NodeType, Schemes } from "../types";
5
5
  /**
6
6
  *
7
7
  * @param config
8
8
  * @returns
9
9
  */
10
- export declare const customizeSocket: (config: DiagramConfig) => (data: ExtractPayload<Schemes, 'socket'>) => AngularComponent | null;
10
+ export declare const customizeSocket: (config: DiagramConfig) => (data: ExtractPayload<Schemes, "socket">) => AngularComponent | null;
11
11
  /**
12
12
  *
13
13
  * @param config
14
14
  * @param editor
15
15
  * @returns
16
16
  */
17
- export declare const customizeNode: (config: DiagramConfig, editor: NodeEditor<Schemes>) => (data: ExtractPayload<Schemes, 'node'>) => AngularComponent | null;
17
+ export declare const customizeNode: (config: DiagramConfig, editor: NodeEditor<Schemes>) => (data: ExtractPayload<Schemes, "node">) => AngularComponent | null;
18
18
  /**
19
19
  *
20
20
  * @param config
21
21
  * @returns
22
22
  */
23
- export declare const customizeConnection: (config: DiagramConfig) => (data: ExtractPayload<Schemes, 'connection'>) => AngularComponent | null;
23
+ export declare const customizeConnection: (config: DiagramConfig) => (data: ExtractPayload<Schemes, "connection">) => AngularComponent | null;
24
24
  export declare const initNodeByType: (type: NodeType, config: NodeDefinitionData) => ContentNode<unknown>;
25
25
  export declare const initAngularComponentByType: (type: NodeType) => AngularComponent;
@@ -1,5 +1,2 @@
1
- import { Position } from 'rete-connection-plugin/_types/types';
2
- import { Connection } from '../../models';
3
- import { PathPluginConfig } from '../../types';
4
- export declare type Transformer = (points: Position[]) => Position[];
5
- export declare const createSegmentedPath: (connection: Connection, options: PathPluginConfig) => Transformer;
1
+ import { TransformerFactory } from '../../types';
2
+ export declare const createSegmentedPath: TransformerFactory;
@@ -15,7 +15,7 @@ export declare abstract class BaseNodeClass<T = unknown> extends ClassicPreset.N
15
15
  config?: Optional<DiagramConfig['node']>;
16
16
  children?: BaseNodeClass<T>[];
17
17
  styleClass?: string;
18
- hasBackConnection?: boolean;
18
+ options?: Record<string, any>;
19
19
  directions: Record<'inputs' | 'outputs', DirectionType>;
20
20
  notify: (eventType: NotifyEventType, payload: Record<string, any>) => void;
21
21
  constructor(config: NodeDefinitionData);
@@ -1,9 +1,10 @@
1
1
  import { CurveFactory } from 'd3-shape';
2
2
  import { ClassicPreset } from 'rete';
3
- import { ConnectionConfigType, ConnectionDirectionType, ConnectionLabelType } from '../types';
3
+ import { ConnectionConfigType, ConnectionDirectionType, ConnectionLabelType, TransformerFactory } from '../types';
4
4
  import { BaseNodeClass } from './base-node.model';
5
5
  export declare class Connection<Source extends BaseNodeClass = BaseNodeClass, Target extends BaseNodeClass = BaseNodeClass> extends ClassicPreset.Connection<Source, Target> {
6
6
  curve?: CurveFactory;
7
+ createSegmentedPath?: TransformerFactory;
7
8
  renderType?: 'default' | 'custom';
8
9
  status?: string;
9
10
  styleClass?: string;
@@ -1,5 +1,9 @@
1
+ import { Position } from 'rete-connection-plugin/_types/types';
1
2
  import { IN_OUT_DIRECTION, MESSAGE_TYPE } from '../constants';
3
+ import { Connection } from '../models/connection.model';
4
+ import { PathPluginConfig } from './path.type';
2
5
  export declare type DirectionType = (typeof IN_OUT_DIRECTION)[keyof typeof IN_OUT_DIRECTION];
3
6
  export declare type Optional<T = unknown> = T | undefined;
4
7
  export declare type MessageType = (typeof MESSAGE_TYPE)[keyof typeof MESSAGE_TYPE];
5
8
  export declare type PortType = 'primary' | 'secondary' | 'tertiary' | 'quaternary';
9
+ export declare type TransformerFactory = (connection: Connection, options: PathPluginConfig) => (points: Position[]) => Position[];
@@ -1,8 +1,8 @@
1
- import { Schemes } from './schemes.type';
2
- import { NodeEditor } from 'rete';
3
- import { Preset as ArrangePreset } from 'rete-auto-arrange-plugin';
4
- import { NodeType } from './node.type';
5
- import { PathPluginConfig } from './path.type';
1
+ import { NodeEditor } from "rete";
2
+ import { Preset as ArrangePreset } from "rete-auto-arrange-plugin";
3
+ import { NodeType } from "./node.type";
4
+ import { PathPluginConfig } from "./path.type";
5
+ import { Schemes } from "./schemes.type";
6
6
  export declare type DiagramConfig = {
7
7
  readonly?: {
8
8
  active: boolean;
@@ -11,9 +11,9 @@ export declare type DiagramConfig = {
11
11
  enableArrange?: boolean;
12
12
  reroute?: boolean;
13
13
  config?: boolean;
14
- socketType?: 'default' | 'custom';
14
+ socketType?: "default" | "custom";
15
15
  nodeType?: NodeType;
16
- connectionType?: 'default' | 'custom';
16
+ connectionType?: "default" | "custom";
17
17
  fitToView?: boolean;
18
18
  path?: PathPluginConfig;
19
19
  minimap?: {
@@ -16,4 +16,5 @@ export declare type NodeDefinitionData<T = any> = {
16
16
  directions?: Record<'inputs' | 'outputs', DirectionType>;
17
17
  template?: TemplateRef<any>;
18
18
  styleClass?: string;
19
+ options?: Record<string, any>;
19
20
  };
@@ -1 +1 @@
1
- export declare function getRandomNumber(step?: number, min?: number, max?: number): number;
1
+ export declare function getRandomNumber(x: number, y: number, step?: number, min?: number, max?: number): number;
@@ -33,6 +33,8 @@ export declare class DocumentUploadComponent {
33
33
  path: any;
34
34
  /** Max allowed upload size */
35
35
  maxSize: number;
36
+ /** min allowed upload size */
37
+ minSize: number;
36
38
  /** Params to be sent with body when creating a document */
37
39
  docParams: {};
38
40
  /** Can upload multiple files at once */
@@ -56,5 +58,5 @@ export declare class DocumentUploadComponent {
56
58
  uploadDocument(files: any): void;
57
59
  getFileExtension(name: any): string;
58
60
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentUploadComponent, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentUploadComponent, "app-document-upload", never, { "allowedTypes": "allowedTypes"; "params": "params"; "path": "path"; "maxSize": "maxSize"; "docParams": "docParams"; "multiple": "multiple"; "createDocument": "createDocument"; "allowedMaxNumberOfFiles": "allowedMaxNumberOfFiles"; "showAllowedTypesInErrorMess": "showAllowedTypesInErrorMess"; }, { "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; }, never, ["*"]>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentUploadComponent, "app-document-upload", never, { "allowedTypes": "allowedTypes"; "params": "params"; "path": "path"; "maxSize": "maxSize"; "minSize": "minSize"; "docParams": "docParams"; "multiple": "multiple"; "createDocument": "createDocument"; "allowedMaxNumberOfFiles": "allowedMaxNumberOfFiles"; "showAllowedTypesInErrorMess": "showAllowedTypesInErrorMess"; }, { "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; }, never, ["*"]>;
60
62
  }
@@ -1,13 +1,12 @@
1
- import { ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges, OnDestroy, OnInit } from "@angular/core";
2
- import { TranslateService } from "@ngx-translate/core";
3
- import { Observable, Subject, Subscription } from "rxjs";
4
- import { CallApiService } from "../../../core/services/callApi/call-api.service";
5
- import { ChartDataService } from "../services/chart-data.service";
1
+ import { ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
6
2
  import { Router } from '@angular/router';
7
- import 'chartjs-plugin-piechart-outlabels';
8
- import 'chartjs-plugin-labels';
9
- import { TranslationService } from "../../../core/services/translation/translation.service";
10
- import { DepartmentApiService } from "../../dynamic-form/components/dynamic-form-department/services/department-api.service";
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import 'chartjs-adapter-moment';
5
+ import { Observable, Subject, Subscription } from 'rxjs';
6
+ import { CallApiService } from '../../../core/services/callApi/call-api.service';
7
+ import { TranslationService } from '../../../core/services/translation/translation.service';
8
+ import { DepartmentApiService } from '../../dynamic-form/components/dynamic-form-department/services/department-api.service';
9
+ import { ChartDataService } from '../services/chart-data.service';
11
10
  import * as i0 from "@angular/core";
12
11
  /** @ignore */
13
12
  export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestroy {
@@ -18,6 +17,7 @@ export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestr
18
17
  chartData: ChartDataService;
19
18
  private translationService;
20
19
  private departmentApiService;
20
+ private ngZone;
21
21
  chart: ElementRef;
22
22
  prefix: string;
23
23
  chartType: any;
@@ -60,7 +60,8 @@ export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestr
60
60
  isInternalActive: boolean;
61
61
  myDataSubscription: Subscription;
62
62
  isArabic: any;
63
- constructor(translate: TranslateService, changeDetector: ChangeDetectorRef, callApi: CallApiService, router: Router, chartData: ChartDataService, translationService: TranslationService, departmentApiService: DepartmentApiService);
63
+ constructor(translate: TranslateService, changeDetector: ChangeDetectorRef, callApi: CallApiService, router: Router, chartData: ChartDataService, translationService: TranslationService, departmentApiService: DepartmentApiService, ngZone: NgZone);
64
+ protected listenToWindowResize(): void;
64
65
  createChart(): void;
65
66
  createChartWithoutPP(): void;
66
67
  updateStats(): void;