nuxeo-development-framework 4.0.2 → 4.0.4

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 (204) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +9219 -6454
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/diagrams/components/base-node.component.js +41 -0
  4. package/esm2015/lib/components/diagrams/components/circle-node/circle-node.component.js +20 -0
  5. package/esm2015/lib/components/diagrams/components/content-node/content-node.component.js +21 -0
  6. package/esm2015/lib/components/diagrams/components/custom-connection.component.js +48 -0
  7. package/esm2015/lib/components/diagrams/components/custom-socket.component.js +34 -0
  8. package/esm2015/lib/components/diagrams/components/index.js +12 -0
  9. package/esm2015/lib/components/diagrams/components/node-icon.component.js +35 -0
  10. package/esm2015/lib/components/diagrams/components/node-inputs.component.js +62 -0
  11. package/esm2015/lib/components/diagrams/components/node-outputs.component.js +58 -0
  12. package/esm2015/lib/components/diagrams/components/remove-button.component.js +65 -0
  13. package/esm2015/lib/components/diagrams/components/status-icon.component.js +37 -0
  14. package/esm2015/lib/components/diagrams/components/template-node/template-node.component.js +41 -0
  15. package/esm2015/lib/components/diagrams/components/zoom-control.component.js +62 -0
  16. package/esm2015/lib/components/diagrams/constants/defaults.js +19 -0
  17. package/esm2015/lib/components/diagrams/constants/direction.js +7 -0
  18. package/esm2015/lib/components/diagrams/constants/index.js +8 -0
  19. package/esm2015/lib/components/diagrams/constants/message-type.js +5 -0
  20. package/esm2015/lib/components/diagrams/constants/node-type.js +7 -0
  21. package/esm2015/lib/components/diagrams/constants/notify-events.js +4 -0
  22. package/esm2015/lib/components/diagrams/constants/sizes.js +7 -0
  23. package/esm2015/lib/components/diagrams/constants/status.js +9 -0
  24. package/esm2015/lib/components/diagrams/diagrams.module.js +73 -0
  25. package/esm2015/lib/components/diagrams/directive/diagram.directive.js +83 -0
  26. package/esm2015/lib/components/diagrams/directive/index.js +2 -0
  27. package/esm2015/lib/components/diagrams/editor/customize.js +58 -0
  28. package/esm2015/lib/components/diagrams/editor/editor.js +95 -0
  29. package/esm2015/lib/components/diagrams/editor/index.js +5 -0
  30. package/esm2015/lib/components/diagrams/editor/overrides/connection-path.transformers.js +25 -0
  31. package/esm2015/lib/components/diagrams/editor/overrides/index.js +2 -0
  32. package/esm2015/lib/components/diagrams/editor/path-plugin.js +17 -0
  33. package/esm2015/lib/components/diagrams/editor/socket-position-watcher.js +7 -0
  34. package/esm2015/lib/components/diagrams/index.js +2 -0
  35. package/esm2015/lib/components/diagrams/models/base-node.model.js +25 -0
  36. package/esm2015/lib/components/diagrams/models/circle-node.model.js +10 -0
  37. package/esm2015/lib/components/diagrams/models/connection.model.js +8 -0
  38. package/esm2015/lib/components/diagrams/models/content-node.model.js +7 -0
  39. package/esm2015/lib/components/diagrams/models/index.js +7 -0
  40. package/esm2015/lib/components/diagrams/models/socket.model.js +8 -0
  41. package/esm2015/lib/components/diagrams/models/template-node.model.js +12 -0
  42. package/esm2015/lib/components/diagrams/public-api.js +9 -0
  43. package/esm2015/lib/components/diagrams/services/diagram-plugins.service.js +19 -0
  44. package/esm2015/lib/components/diagrams/services/diagram.service.js +174 -0
  45. package/esm2015/lib/components/diagrams/services/index.js +5 -0
  46. package/esm2015/lib/components/diagrams/services/message.service.js +24 -0
  47. package/esm2015/lib/components/diagrams/services/workflow.service.js +244 -0
  48. package/esm2015/lib/components/diagrams/types/common.type.js +2 -0
  49. package/esm2015/lib/components/diagrams/types/customization.type.js +2 -0
  50. package/esm2015/lib/components/diagrams/types/diagram-config.type.js +2 -0
  51. package/esm2015/lib/components/diagrams/types/diagram-editor.type.js +2 -0
  52. package/esm2015/lib/components/diagrams/types/emitter-type.js +2 -0
  53. package/esm2015/lib/components/diagrams/types/index.js +14 -0
  54. package/esm2015/lib/components/diagrams/types/layout.type.js +2 -0
  55. package/esm2015/lib/components/diagrams/types/node-content.js +2 -0
  56. package/esm2015/lib/components/diagrams/types/node-definition.js +2 -0
  57. package/esm2015/lib/components/diagrams/types/node-status.type.js +2 -0
  58. package/esm2015/lib/components/diagrams/types/node.type.js +2 -0
  59. package/esm2015/lib/components/diagrams/types/notify-event.type.js +2 -0
  60. package/esm2015/lib/components/diagrams/types/path.type.js +2 -0
  61. package/esm2015/lib/components/diagrams/types/schemes.type.js +2 -0
  62. package/esm2015/lib/components/diagrams/utilities/export-graph.js +28 -0
  63. package/esm2015/lib/components/diagrams/utilities/index.js +4 -0
  64. package/esm2015/lib/components/diagrams/utilities/remove.util.js +95 -0
  65. package/esm2015/lib/components/diagrams/utilities/serialize.js +23 -0
  66. package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +2 -1
  67. package/esm2015/lib/core/core.module.js +33 -33
  68. package/esm2015/lib/shared/components/base/base-column.component.js +18 -0
  69. package/esm2015/lib/shared/components/base/base-dialog.component.js +25 -0
  70. package/esm2015/lib/shared/components/base/base-selector.component.js +96 -0
  71. package/esm2015/lib/shared/components/base/base.component.js +59 -0
  72. package/esm2015/lib/shared/components/base/destroy.subject.js +19 -0
  73. package/esm2015/lib/shared/components/base/index.js +6 -0
  74. package/esm2015/lib/shared/components/index.js +3 -0
  75. package/esm2015/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.js +23 -0
  76. package/esm2015/lib/shared/components/nuxeo-dialog/index.js +6 -0
  77. package/esm2015/lib/shared/components/nuxeo-dialog/models/confirm-options.model.js +22 -0
  78. package/esm2015/lib/shared/components/nuxeo-dialog/models/dialog-option.model.js +2 -0
  79. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.js +39 -0
  80. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +82 -0
  81. package/esm2015/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.js +56 -0
  82. package/esm2015/lib/shared/models/index.js +4 -0
  83. package/esm2015/lib/shared/models/mapper/index.js +2 -0
  84. package/esm2015/lib/shared/models/mapper/nuxeo-mapper.js +32 -0
  85. package/esm2015/lib/shared/models/nuxeo-response.model.js +2 -0
  86. package/esm2015/lib/shared/models/task.model.js +2 -0
  87. package/esm2015/lib/shared/services/base/base.service.js +157 -0
  88. package/esm2015/lib/shared/services/base/cache-base.service.js +295 -0
  89. package/esm2015/lib/shared/services/base/config/default-ttl-config.js +9 -0
  90. package/esm2015/lib/shared/services/base/config/index.js +2 -0
  91. package/esm2015/lib/shared/services/base/constants/default-cache-options.js +28 -0
  92. package/esm2015/lib/shared/services/base/constants/index.js +2 -0
  93. package/esm2015/lib/shared/services/base/http-base.service.js +115 -0
  94. package/esm2015/lib/shared/services/base/index.js +3 -0
  95. package/esm2015/lib/shared/services/base/models/cache-info-model.js +12 -0
  96. package/esm2015/lib/shared/services/base/models/http-options.model.js +2 -0
  97. package/esm2015/lib/shared/services/base/models/index.js +6 -0
  98. package/esm2015/lib/shared/services/base/models/operation-options.model.js +2 -0
  99. package/esm2015/lib/shared/services/base/models/query-options.model.js +2 -0
  100. package/esm2015/lib/shared/services/base/models/request-options.model.js +2 -0
  101. package/esm2015/lib/shared/services/index.js +2 -0
  102. package/esm2015/public-api.js +6 -2
  103. package/fesm2015/nuxeo-development-framework.js +25906 -23419
  104. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  105. package/lib/components/diagrams/components/base-node.component.d.ts +29 -0
  106. package/lib/components/diagrams/components/circle-node/circle-node.component.d.ts +7 -0
  107. package/lib/components/diagrams/components/content-node/content-node.component.d.ts +8 -0
  108. package/lib/components/diagrams/components/custom-connection.component.d.ts +8 -0
  109. package/lib/components/diagrams/components/custom-socket.component.d.ts +6 -0
  110. package/lib/components/diagrams/components/index.d.ts +11 -0
  111. package/lib/components/diagrams/components/node-icon.component.d.ts +8 -0
  112. package/lib/components/diagrams/components/node-inputs.component.d.ts +12 -0
  113. package/lib/components/diagrams/components/node-outputs.component.d.ts +12 -0
  114. package/lib/components/diagrams/components/remove-button.component.d.ts +7 -0
  115. package/lib/components/diagrams/components/status-icon.component.d.ts +8 -0
  116. package/lib/components/diagrams/components/template-node/template-node.component.d.ts +17 -0
  117. package/lib/components/diagrams/components/zoom-control.component.d.ts +11 -0
  118. package/lib/components/diagrams/constants/defaults.d.ts +2 -0
  119. package/lib/components/diagrams/constants/direction.d.ts +6 -0
  120. package/lib/components/diagrams/constants/index.d.ts +7 -0
  121. package/lib/components/diagrams/constants/message-type.d.ts +4 -0
  122. package/lib/components/diagrams/constants/node-type.d.ts +6 -0
  123. package/lib/components/diagrams/constants/notify-events.d.ts +3 -0
  124. package/lib/components/diagrams/constants/sizes.d.ts +6 -0
  125. package/lib/components/diagrams/constants/status.d.ts +8 -0
  126. package/lib/components/diagrams/diagrams.module.d.ts +25 -0
  127. package/lib/components/diagrams/directive/diagram.directive.d.ts +27 -0
  128. package/lib/components/diagrams/directive/index.d.ts +1 -0
  129. package/lib/components/diagrams/editor/customize.d.ts +25 -0
  130. package/lib/components/diagrams/editor/editor.d.ts +3 -0
  131. package/lib/components/diagrams/editor/index.d.ts +4 -0
  132. package/lib/components/diagrams/editor/overrides/connection-path.transformers.d.ts +7 -0
  133. package/lib/components/diagrams/editor/overrides/index.d.ts +1 -0
  134. package/lib/components/diagrams/editor/path-plugin.d.ts +4 -0
  135. package/lib/components/diagrams/editor/socket-position-watcher.d.ts +3 -0
  136. package/lib/components/diagrams/index.d.ts +1 -0
  137. package/lib/components/diagrams/models/base-node.model.d.ts +21 -0
  138. package/lib/components/diagrams/models/circle-node.model.d.ts +7 -0
  139. package/lib/components/diagrams/models/connection.model.d.ts +8 -0
  140. package/lib/components/diagrams/models/content-node.model.d.ts +5 -0
  141. package/lib/components/diagrams/models/index.d.ts +6 -0
  142. package/lib/components/diagrams/models/socket.model.d.ts +5 -0
  143. package/lib/components/diagrams/models/template-node.model.d.ts +8 -0
  144. package/lib/components/diagrams/public-api.d.ts +8 -0
  145. package/lib/components/diagrams/services/diagram-plugins.service.d.ts +16 -0
  146. package/lib/components/diagrams/services/diagram.service.d.ts +42 -0
  147. package/lib/components/diagrams/services/index.d.ts +4 -0
  148. package/lib/components/diagrams/services/message.service.d.ts +10 -0
  149. package/lib/components/diagrams/services/workflow.service.d.ts +81 -0
  150. package/lib/components/diagrams/types/common.type.d.ts +4 -0
  151. package/lib/components/diagrams/types/customization.type.d.ts +10 -0
  152. package/lib/components/diagrams/types/diagram-config.type.d.ts +36 -0
  153. package/lib/components/diagrams/types/diagram-editor.type.d.ts +25 -0
  154. package/lib/components/diagrams/types/emitter-type.d.ts +5 -0
  155. package/lib/components/diagrams/types/index.d.ts +13 -0
  156. package/lib/components/diagrams/types/layout.type.d.ts +13 -0
  157. package/lib/components/diagrams/types/node-content.d.ts +9 -0
  158. package/lib/components/diagrams/types/node-definition.d.ts +19 -0
  159. package/lib/components/diagrams/types/node-status.type.d.ts +2 -0
  160. package/lib/components/diagrams/types/node.type.d.ts +2 -0
  161. package/lib/components/diagrams/types/notify-event.type.d.ts +2 -0
  162. package/lib/components/diagrams/types/path.type.d.ts +17 -0
  163. package/lib/components/diagrams/types/schemes.type.d.ts +3 -0
  164. package/lib/components/diagrams/utilities/export-graph.d.ts +3 -0
  165. package/lib/components/diagrams/utilities/index.d.ts +3 -0
  166. package/lib/components/diagrams/utilities/remove.util.d.ts +30 -0
  167. package/lib/components/diagrams/utilities/serialize.d.ts +15 -0
  168. package/lib/core/core.module.d.ts +2 -2
  169. package/lib/shared/components/base/base-column.component.d.ts +10 -0
  170. package/lib/shared/components/base/base-dialog.component.d.ts +12 -0
  171. package/lib/shared/components/base/base-selector.component.d.ts +43 -0
  172. package/lib/shared/components/base/base.component.d.ts +36 -0
  173. package/lib/shared/components/base/destroy.subject.d.ts +9 -0
  174. package/lib/shared/components/base/index.d.ts +5 -0
  175. package/lib/shared/components/index.d.ts +2 -0
  176. package/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.d.ts +9 -0
  177. package/lib/shared/components/nuxeo-dialog/index.d.ts +5 -0
  178. package/lib/shared/components/nuxeo-dialog/models/confirm-options.model.d.ts +22 -0
  179. package/lib/shared/components/nuxeo-dialog/models/dialog-option.model.d.ts +16 -0
  180. package/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.d.ts +13 -0
  181. package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +23 -0
  182. package/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.d.ts +13 -0
  183. package/lib/shared/models/index.d.ts +3 -0
  184. package/lib/shared/models/mapper/index.d.ts +1 -0
  185. package/lib/shared/models/mapper/nuxeo-mapper.d.ts +8 -0
  186. package/lib/shared/models/nuxeo-response.model.d.ts +61 -0
  187. package/lib/shared/models/task.model.d.ts +71 -0
  188. package/lib/shared/services/base/base.service.d.ts +29 -0
  189. package/lib/shared/services/base/cache-base.service.d.ts +17 -0
  190. package/lib/shared/services/base/config/default-ttl-config.d.ts +7 -0
  191. package/lib/shared/services/base/config/index.d.ts +1 -0
  192. package/lib/shared/services/base/constants/default-cache-options.d.ts +16 -0
  193. package/lib/shared/services/base/constants/index.d.ts +1 -0
  194. package/lib/shared/services/base/http-base.service.d.ts +15 -0
  195. package/lib/shared/services/base/index.d.ts +2 -0
  196. package/lib/shared/services/base/models/cache-info-model.d.ts +49 -0
  197. package/lib/shared/services/base/models/http-options.model.d.ts +7 -0
  198. package/lib/shared/services/base/models/index.d.ts +5 -0
  199. package/lib/shared/services/base/models/operation-options.model.d.ts +8 -0
  200. package/lib/shared/services/base/models/query-options.model.d.ts +5 -0
  201. package/lib/shared/services/base/models/request-options.model.d.ts +7 -0
  202. package/lib/shared/services/index.d.ts +1 -0
  203. package/package.json +14 -2
  204. package/public-api.d.ts +5 -1
@@ -0,0 +1,36 @@
1
+ import { NodeType } from './node.type';
2
+ import { PathPluginConfig } from './path.type';
3
+ export declare type DiagramConfig = {
4
+ readonly?: {
5
+ active: boolean;
6
+ wrapNodes?: boolean;
7
+ };
8
+ enableArrange?: boolean;
9
+ reroute?: boolean;
10
+ config?: boolean;
11
+ socketType?: 'default' | 'custom';
12
+ nodeType?: NodeType;
13
+ connectionType?: 'default' | 'custom';
14
+ fitToView?: boolean;
15
+ path?: PathPluginConfig;
16
+ minimap?: {
17
+ active: boolean;
18
+ size?: number;
19
+ options?: {
20
+ minDistance?: number;
21
+ ratio?: number;
22
+ boundViewport?: boolean;
23
+ } | undefined;
24
+ };
25
+ area?: {
26
+ restrict: boolean;
27
+ scaling?: {
28
+ min: number;
29
+ max: number;
30
+ };
31
+ };
32
+ node?: {
33
+ isLinked?: boolean;
34
+ canRemove?: boolean;
35
+ };
36
+ };
@@ -0,0 +1,25 @@
1
+ import { ClassicPreset, NodeEditor } from 'rete';
2
+ import { AngularArea2D } from 'rete-angular-plugin';
3
+ import { AreaPlugin } from 'rete-area-plugin';
4
+ import { AutoArrangePlugin } from 'rete-auto-arrange-plugin';
5
+ import { ConnectionPlugin } from 'rete-connection-plugin';
6
+ import { RerouteExtra, ReroutePlugin } from 'rete-connection-reroute-plugin';
7
+ import { MinimapExtra } from 'rete-minimap-plugin';
8
+ import { ReadonlyPlugin } from 'rete-readonly-plugin';
9
+ import { ArrangeProps } from './layout.type';
10
+ import { Schemes } from './schemes.type';
11
+ export declare type DiagramEditorWithPlugins = {
12
+ editor: NodeEditor<Schemes>;
13
+ destroy: () => void;
14
+ layout: (props?: ArrangeProps) => void;
15
+ fitToZoom: () => void;
16
+ socket: ClassicPreset.Socket;
17
+ plugins: {
18
+ area: AreaPlugin<Schemes, AreaExtra>;
19
+ connection: ConnectionPlugin<Schemes, AreaExtra>;
20
+ arrange: AutoArrangePlugin<Schemes, never>;
21
+ reroute: ReroutePlugin<Schemes>;
22
+ readonly: ReadonlyPlugin<Schemes>;
23
+ };
24
+ };
25
+ export declare type AreaExtra = AngularArea2D<Schemes> | RerouteExtra | MinimapExtra;
@@ -0,0 +1,5 @@
1
+ import { BaseSchemes, Root } from 'rete';
2
+ export declare type ExtendedRoot<Scheme extends BaseSchemes> = {
3
+ type: 'remove-node-with-connections';
4
+ data: Scheme['Node'];
5
+ } | Root<Scheme>;
@@ -0,0 +1,13 @@
1
+ export * from './common.type';
2
+ export * from './customization.type';
3
+ export * from './diagram-config.type';
4
+ export * from './diagram-editor.type';
5
+ export * from './emitter-type';
6
+ export * from './layout.type';
7
+ export * from './node-content';
8
+ export * from './node-definition';
9
+ export * from './node.type';
10
+ export * from './notify-event.type';
11
+ export * from './path.type';
12
+ export * from './schemes.type';
13
+ export * from './node-status.type';
@@ -0,0 +1,13 @@
1
+ import { LayoutOptions } from 'elkjs';
2
+ import { Applier } from 'rete-auto-arrange-plugin/_types/appliers';
3
+ import { ExpectedSchemes } from 'rete-auto-arrange-plugin';
4
+ import { Schemes } from './schemes.type';
5
+ declare type Context<S extends ExpectedSchemes> = {
6
+ nodes: S['Node'][];
7
+ connections: S['Connection'][];
8
+ };
9
+ export declare type ArrangeProps<TT = never> = {
10
+ options?: LayoutOptions;
11
+ applier?: Applier<Schemes, TT>;
12
+ } & Partial<Context<Schemes>>;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { NodeStatus } from './node-status.type';
3
+ export declare type NodeContent<T = any> = {
4
+ name: string;
5
+ description?: string;
6
+ status?: NodeStatus;
7
+ data: T;
8
+ icon?: string | TemplateRef<any>;
9
+ };
@@ -0,0 +1,19 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { DirectionType } from './common.type';
3
+ import { DiagramConfig } from './diagram-config.type';
4
+ import { NodeContent } from './node-content';
5
+ import { NodeType } from './node.type';
6
+ export declare type NodeDefinitionData<T = any> = {
7
+ label: string;
8
+ name?: string;
9
+ description?: string;
10
+ type: NodeType;
11
+ status?: any;
12
+ width?: number;
13
+ height?: number;
14
+ content?: NodeContent<T>;
15
+ config?: DiagramConfig['node'];
16
+ directions?: Record<'inputs' | 'outputs', DirectionType>;
17
+ template?: TemplateRef<any>;
18
+ styleClass?: string;
19
+ };
@@ -0,0 +1,2 @@
1
+ import { NODE_STATUS } from '../constants';
2
+ export declare type NodeStatus = (typeof NODE_STATUS)[keyof typeof NODE_STATUS];
@@ -0,0 +1,2 @@
1
+ import { NODE_TYPE } from '../constants';
2
+ export declare type NodeType = (typeof NODE_TYPE)[keyof typeof NODE_TYPE];
@@ -0,0 +1,2 @@
1
+ import { NOTIFY_EVENT } from '../constants';
2
+ export declare type NotifyEventType = (typeof NOTIFY_EVENT)[keyof typeof NOTIFY_EVENT];
@@ -0,0 +1,17 @@
1
+ import { CurveFactory } from 'd3-shape';
2
+ export declare type PathPluginConfig = {
3
+ vertical?: boolean;
4
+ curve?: CurveFactory;
5
+ curvature?: number | undefined;
6
+ arrow?: boolean | {
7
+ color?: string;
8
+ marker?: string;
9
+ };
10
+ transform?: {
11
+ active: boolean;
12
+ options?: {
13
+ multiPoints?: boolean;
14
+ offset?: number;
15
+ };
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ import { GetSchemes } from 'rete';
2
+ import { BaseNodeClass, Connection, ContentNode } from '../models';
3
+ export declare type Schemes<NOD extends BaseNodeClass = ContentNode> = GetSchemes<NOD, Connection<NOD>>;
@@ -0,0 +1,3 @@
1
+ import { NodeEditor } from 'rete';
2
+ import { Schemes } from '../types';
3
+ export declare function exportGraph(editor: NodeEditor<Schemes>): Promise<any>;
@@ -0,0 +1,3 @@
1
+ export * from './export-graph';
2
+ export * from './remove.util';
3
+ export * from './serialize';
@@ -0,0 +1,30 @@
1
+ import { NodeEditor } from 'rete';
2
+ import { BaseNodeClass, Connection } from '../models';
3
+ import { Schemes } from '../types';
4
+ /**
5
+ *
6
+ * @param node
7
+ * @returns
8
+ */
9
+ export declare const removeNode: (data: {
10
+ nodeId: string;
11
+ }, editor: NodeEditor<Schemes>) => Promise<void>;
12
+ /**
13
+ *
14
+ * @param node
15
+ * @param editor
16
+ */
17
+ export declare const removeNodeAndConnections: (node: BaseNodeClass, editor: NodeEditor<Schemes>) => Promise<void>;
18
+ /**
19
+ *
20
+ * @param node
21
+ * @param editor
22
+ */
23
+ export declare const removeConnections: (node: BaseNodeClass, editor: NodeEditor<Schemes>) => void;
24
+ /**
25
+ *
26
+ * @param editor
27
+ * @param predicate
28
+ * @returns
29
+ */
30
+ export declare const getConnections: (editor: NodeEditor<Schemes>, predicate: (connection: Connection) => boolean) => Connection<import("../models").ContentNode<unknown>>[];
@@ -0,0 +1,15 @@
1
+ import { ClassicPreset } from 'rete';
2
+ export declare function serializePort(port: ClassicPreset.Input<ClassicPreset.Socket> | ClassicPreset.Output<ClassicPreset.Socket>): {
3
+ id: string;
4
+ label: string;
5
+ socket: {
6
+ name: string;
7
+ };
8
+ };
9
+ export declare function serializeControl(control: ClassicPreset.Control): {
10
+ __type: "ClassicPreset.InputControl";
11
+ id: string;
12
+ readonly: boolean;
13
+ type: any;
14
+ value: any;
15
+ };
@@ -1,5 +1,5 @@
1
- import { ModuleWithProviders } from "@angular/core";
2
- import { Environment } from "./env";
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { Environment } from './env';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "@angular/common";
5
5
  import * as i2 from "ngx-treeview";
@@ -0,0 +1,10 @@
1
+ import { Injector } from '@angular/core';
2
+ import { BaseComponent } from './base.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class BaseColumnComponent extends BaseComponent {
5
+ context: Record<string, any>;
6
+ column: Record<string, any>;
7
+ constructor(injector: Injector);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseColumnComponent, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseColumnComponent, never, never, { "context": "context"; "column": "column"; }, {}, never>;
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Injector } from '@angular/core';
2
+ import { BaseComponent } from './base.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class BaseDialogComponent<TComponent = unknown, TData = unknown, TResult = unknown> extends BaseComponent {
5
+ #private;
6
+ protected _injector: Injector;
7
+ dialogData: TData;
8
+ constructor(_injector: Injector);
9
+ close(result?: TResult): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogComponent<any, any, any>, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseDialogComponent<any, any, any>, never, never, {}, {}, never>;
12
+ }
@@ -0,0 +1,43 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { BaseComponent } from './base.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class BaseSelector<T = any> extends BaseComponent implements ControlValueAccessor, Validator {
7
+ #private;
8
+ static ngAcceptInputType_multiple: BooleanInput;
9
+ static ngAcceptInputType_required: BooleanInput;
10
+ static ngAcceptInputType_hideLabel: BooleanInput;
11
+ static ngAcceptInputType_selectAllOption: BooleanInput;
12
+ options$: Observable<T>;
13
+ onChange: any;
14
+ onTouch: any;
15
+ onValidationChange: any;
16
+ abstract writeValue(obj: T): void;
17
+ abstract validate(control: AbstractControl): ValidationErrors;
18
+ readonly: boolean;
19
+ disabled: boolean;
20
+ disableOptionFn: (option: any) => boolean;
21
+ styleClass: string;
22
+ valueType: 'object' | 'property';
23
+ bindValue: string;
24
+ bindLabel: string;
25
+ label: string;
26
+ selectedFields: string[];
27
+ emptyPlaceholder: string;
28
+ emptyMessage: string;
29
+ get multiple(): boolean;
30
+ set multiple(value: unknown);
31
+ get required(): boolean;
32
+ set required(value: unknown);
33
+ get hideLabel(): boolean;
34
+ set hideLabel(value: unknown);
35
+ get selectAllOption(): boolean;
36
+ set selectAllOption(value: unknown);
37
+ registerOnChange(fn: any): void;
38
+ registerOnTouched(fn: any): void;
39
+ registerOnValidatorChange?(fn: () => void): void;
40
+ setDisabledState?(isDisabled: boolean): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelector<any>, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseSelector<any>, never, never, { "readonly": "readonly"; "disabled": "disabled"; "disableOptionFn": "disableOptionFn"; "styleClass": "styleClass"; "valueType": "valueType"; "bindValue": "bindValue"; "bindLabel": "bindLabel"; "label": "label"; "selectedFields": "selectedFields"; "emptyPlaceholder": "emptyPlaceholder"; "emptyMessage": "emptyMessage"; "multiple": "multiple"; "required": "required"; "hideLabel": "hideLabel"; "selectAllOption": "selectAllOption"; }, {}, never>;
43
+ }
@@ -0,0 +1,36 @@
1
+ import { ChangeDetectorRef, Injector } from "@angular/core";
2
+ import { DestroySubject } from "./destroy.subject";
3
+ import { ActivatedRoute, Router } from "@angular/router";
4
+ import { TranslateService } from "@ngx-translate/core";
5
+ import { Direction } from "@angular/cdk/bidi";
6
+ import { FormBuilder } from "@angular/forms";
7
+ import { CustomToastrService } from "../../../components/custom-toastr/services/custom-toastr.service";
8
+ import { MainfolderService } from "../../../shared-services/mainfolder.service";
9
+ import { UserPreferencesService } from "../../../core/services/user/user-preferences.service";
10
+ import { AppConfigService } from "../../../configuration/app-config.service";
11
+ import { AdapterService } from "../../../core/adapters/adapter.service";
12
+ import { NuxeoDialogService } from "../nuxeo-dialog/services/nuxeo-dialog.service";
13
+ import * as i0 from "@angular/core";
14
+ export declare abstract class BaseComponent extends DestroySubject {
15
+ #private;
16
+ protected cdr: ChangeDetectorRef;
17
+ protected activatedRoute: ActivatedRoute;
18
+ protected routerService: Router;
19
+ protected translateService: TranslateService;
20
+ protected formBuilder: FormBuilder;
21
+ protected toastrService: CustomToastrService;
22
+ protected mainFolderService: MainfolderService;
23
+ protected userPreferencesService: UserPreferencesService;
24
+ protected appConfigService: AppConfigService;
25
+ protected nuxeoDialogService: NuxeoDialogService;
26
+ protected adapter: AdapterService;
27
+ set loading(value: boolean);
28
+ get loading(): boolean;
29
+ constructor(injector: Injector);
30
+ get currentLang(): string;
31
+ get isArabic(): boolean;
32
+ get isArabic$(): import("rxjs").Observable<boolean>;
33
+ get direction(): Direction;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent, never, never, { "loading": "loading"; }, {}, never>;
36
+ }
@@ -0,0 +1,9 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DestroySubject implements OnDestroy {
5
+ protected destroy$: Subject<void>;
6
+ ngOnDestroy(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DestroySubject, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DestroySubject, never, never, {}, {}, never>;
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './base-dialog.component';
2
+ export * from './base-selector.component';
3
+ export * from './base-column.component';
4
+ export * from './base.component';
5
+ export * from './destroy.subject';
@@ -0,0 +1,2 @@
1
+ export * from './base/index';
2
+ export * from './nuxeo-dialog/index';
@@ -0,0 +1,9 @@
1
+ import { Injector } from "@angular/core";
2
+ import { ConfirmationDialogConfig } from "../models/confirm-options.model";
3
+ import { BaseDialogComponent } from "../../base/base-dialog.component";
4
+ import * as i0 from "@angular/core";
5
+ export declare class NdfConfirmationDialogComponent extends BaseDialogComponent<NdfConfirmationDialogComponent, ConfirmationDialogConfig, boolean> {
6
+ constructor(injector: Injector);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfConfirmationDialogComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfConfirmationDialogComponent, "ndf-confirmation-dialog", never, {}, {}, never, never>;
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './nuxeo-dialog.module';
2
+ export * from './nuxeo.dialog';
3
+ export * from './confirmation/ndf-confirmation-dialog.component';
4
+ export * from './models/dialog-option.model';
5
+ export * from './services/nuxeo-dialog.service';
@@ -0,0 +1,22 @@
1
+ import { DialogActionType } from './dialog-option.model';
2
+ interface ConfirmButton {
3
+ show?: boolean;
4
+ label?: string;
5
+ color?: 'primary' | 'accent' | 'warn';
6
+ fn: DialogActionType;
7
+ }
8
+ export interface ConfirmationDialogConfig {
9
+ title?: string;
10
+ message?: string;
11
+ icon?: {
12
+ show?: boolean;
13
+ name?: string;
14
+ color?: 'primary' | 'accent' | 'warn' | 'basic' | 'info' | 'success' | 'warning' | 'error';
15
+ };
16
+ actions?: {
17
+ confirm?: ConfirmButton;
18
+ moreActions?: Array<ConfirmButton>;
19
+ };
20
+ }
21
+ export declare const defaultConfirmConfig: ConfirmationDialogConfig;
22
+ export {};
@@ -0,0 +1,16 @@
1
+ import { TemplateRef, Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export declare type DialogActionType = (...args: any[]) => Observable<any>;
4
+ export interface DialogOptions {
5
+ component: Type<any> | TemplateRef<any>;
6
+ width?: string;
7
+ height?: string;
8
+ panelClass?: string | Array<string>;
9
+ config?: {
10
+ title?: string;
11
+ subTitle?: string;
12
+ contentTemplate?: TemplateRef<any>;
13
+ actionsTemplate?: TemplateRef<any>;
14
+ };
15
+ data?: Record<string, any>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./nuxeo.dialog";
3
+ import * as i2 from "./confirmation/ndf-confirmation-dialog.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@ngx-translate/core";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/dialog";
8
+ import * as i7 from "@angular/material/tooltip";
9
+ export declare class NuxeoDialogModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoDialogModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDialogModule, [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.MatIconModule, typeof i6.MatDialogModule, typeof i7.MatTooltipModule], [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<NuxeoDialogModule>;
13
+ }
@@ -0,0 +1,23 @@
1
+ import { ElementRef, Injector } from "@angular/core";
2
+ import { MatDialogRef } from "@angular/material/dialog";
3
+ import { DialogActionType } from "./models/dialog-option.model";
4
+ import { DestroySubject } from "../base/destroy.subject";
5
+ import * as i0 from "@angular/core";
6
+ export declare class NdfNuxeoDialog<TData = any> extends DestroySubject {
7
+ dialogTitle: string;
8
+ subTitle: string;
9
+ loaderMode: "spinner" | "progressBar";
10
+ contentTemplate: any;
11
+ actionsTemplate: any;
12
+ dialogRef: MatDialogRef<NdfNuxeoDialog>;
13
+ data: TData;
14
+ dialogBody: ElementRef<HTMLDivElement>;
15
+ dialogBodyTopOffset: number;
16
+ loading: boolean;
17
+ constructor(injector: Injector);
18
+ executeAction(action?: DialogActionType, ...params: any[]): void;
19
+ isArrowFunction(fn: Function): boolean;
20
+ onClose(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfNuxeoDialog<any>, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfNuxeoDialog<any>, "ndf-nuxeo-dialog", never, { "dialogTitle": "dialogTitle"; "subTitle": "subTitle"; "loaderMode": "loaderMode"; }, {}, ["contentTemplate", "actionsTemplate"], never>;
23
+ }
@@ -0,0 +1,13 @@
1
+ import { MatDialog } from "@angular/material/dialog";
2
+ import { DialogOptions } from "../models/dialog-option.model";
3
+ import { ConfirmationDialogConfig } from "../models/confirm-options.model";
4
+ import * as i0 from "@angular/core";
5
+ export declare class NuxeoDialogService {
6
+ #private;
7
+ private dialog;
8
+ constructor(dialog: MatDialog);
9
+ open(options: DialogOptions): import("@angular/material/dialog").MatDialogRef<any, any>;
10
+ showConfirm(config: ConfirmationDialogConfig): import("@angular/material/dialog").MatDialogRef<any, any>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoDialogService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<NuxeoDialogService>;
13
+ }
@@ -0,0 +1,3 @@
1
+ export * from './mapper/index';
2
+ export * from './nuxeo-response.model';
3
+ export * from './task.model';
@@ -0,0 +1 @@
1
+ export * from './nuxeo-mapper';
@@ -0,0 +1,8 @@
1
+ export declare class NuxeoMapper {
2
+ static schemaToModel<Schemas extends Record<string, any>>(properties: Record<string, any>): {
3
+ [K in keyof Schemas]: Schemas[K];
4
+ };
5
+ static modelToSchema<Schemas extends Record<string, any>>(model: {
6
+ [K in keyof Schemas]: Schemas[K];
7
+ }): Record<string, any>;
8
+ }
@@ -0,0 +1,61 @@
1
+ export declare const ENTITY_TYPE = "entity-type";
2
+ export interface NuxeoQuickFilter {
3
+ name: string;
4
+ active: boolean;
5
+ }
6
+ export interface NuxeoPagination<T> {
7
+ [ENTITY_TYPE]: string;
8
+ isPaginable: boolean;
9
+ resultsCount: number;
10
+ pageSize: number;
11
+ maxPageSize: number;
12
+ resultsCountLimit: number;
13
+ currentPageSize: number;
14
+ currentPageIndex: number;
15
+ currentPageOffset: number;
16
+ numberOfPages: number;
17
+ isPreviousPageAvailable: boolean;
18
+ isNextPageAvailable: boolean;
19
+ isLastPageAvailable: boolean;
20
+ isSortable: boolean;
21
+ hasError: boolean;
22
+ errorMessage: string | null;
23
+ totalSize: number;
24
+ pageIndex: number;
25
+ pageCount: number;
26
+ quickFilters: NuxeoQuickFilter[];
27
+ aggregations?: Record<string, any>;
28
+ entries: T[];
29
+ }
30
+ export interface NuxeoResponse {
31
+ [ENTITY_TYPE]: string;
32
+ entries: Entity[];
33
+ }
34
+ export declare type Entity = {
35
+ [ENTITY_TYPE]: string;
36
+ repository?: string;
37
+ uid?: string;
38
+ path?: string;
39
+ type?: string;
40
+ state?: string;
41
+ parentRef?: string | null;
42
+ isCheckedOut?: boolean;
43
+ isRecord?: boolean;
44
+ retainUntil?: string | null;
45
+ hasLegalHold?: boolean;
46
+ isUnderRetentionOrLegalHold?: boolean;
47
+ isVersion?: boolean;
48
+ isProxy?: boolean;
49
+ changeToken?: string;
50
+ contextParameters?: Record<string, any>;
51
+ isTrashed?: boolean;
52
+ title?: string;
53
+ lastModified?: string;
54
+ properties?: Record<string, any>;
55
+ facets?: string[];
56
+ schemas?: Schema[];
57
+ };
58
+ export interface Schema {
59
+ name: string;
60
+ prefix: string;
61
+ }
@@ -0,0 +1,71 @@
1
+ import { Entity, ENTITY_TYPE } from './nuxeo-response.model';
2
+ export interface Task {
3
+ [ENTITY_TYPE]?: string;
4
+ id?: string;
5
+ name?: string;
6
+ workflowInstanceId?: string;
7
+ workflowModelName?: string;
8
+ workflowInitiator?: string;
9
+ workflowTitle?: string;
10
+ workflowLifeCycleState?: string;
11
+ graphResource?: string;
12
+ state?: string;
13
+ directive?: any;
14
+ created?: string;
15
+ dueDate?: string;
16
+ nodeName?: string;
17
+ targetDocumentIds?: Entity[];
18
+ actors?: Actor[];
19
+ delegatedActors?: any[];
20
+ comments?: any[];
21
+ variables?: Record<string, any>;
22
+ taskInfo?: TaskInfo;
23
+ workflowInitiatorDetails?: WorkflowInitiatorDetails;
24
+ actorsDetails?: Record<string, any>[];
25
+ customTaskVariables?: Record<string, any>;
26
+ workflowVariables?: Record<string, any>;
27
+ }
28
+ export interface Actor {
29
+ id?: string;
30
+ [ENTITY_TYPE]?: string;
31
+ properties?: BaseProperties;
32
+ extendedGroups?: any[];
33
+ isPartial?: boolean;
34
+ isAdministrator?: boolean;
35
+ isAnonymous?: boolean;
36
+ birthdate?: any;
37
+ phonenumber?: any;
38
+ avatar?: any;
39
+ userGroups?: BaseModel[];
40
+ fullName?: string;
41
+ }
42
+ export interface WorkflowInitiatorDetails {
43
+ properties?: BaseProperties;
44
+ fullName?: string;
45
+ birthdate?: any;
46
+ phonenumber?: any;
47
+ avatar?: any;
48
+ }
49
+ export interface TaskInfo {
50
+ allowTaskReassignment?: boolean;
51
+ taskActions?: BaseModel[];
52
+ layoutResource?: BaseModel;
53
+ schemas?: BaseModel[];
54
+ }
55
+ interface BaseModel {
56
+ name?: string;
57
+ url?: string;
58
+ label?: string;
59
+ validate?: boolean;
60
+ }
61
+ interface BaseProperties {
62
+ firstName?: string;
63
+ lastName?: string;
64
+ jobTitle?: any;
65
+ tenantId?: any;
66
+ groups?: string[];
67
+ company?: any;
68
+ email?: string;
69
+ username?: string;
70
+ }
71
+ export {};