nuxeo-development-framework 4.1.0 → 4.1.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.
- package/bundles/nuxeo-development-framework.umd.js +1025 -607
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +2 -2
- package/esm2015/lib/components/diagrams/components/circle-node/circle-node.component.js +6 -7
- package/esm2015/lib/components/diagrams/components/connection-label.component.js +92 -0
- package/esm2015/lib/components/diagrams/components/content-node/content-node.component.js +7 -8
- package/esm2015/lib/components/diagrams/components/custom-connection.component.js +68 -32
- package/esm2015/lib/components/diagrams/components/custom-socket.component.js +22 -19
- package/esm2015/lib/components/diagrams/components/gateway-node/gateway-node.component.js +18 -0
- package/esm2015/lib/components/diagrams/components/gateway-ports.component.js +118 -0
- package/esm2015/lib/components/diagrams/components/index.js +5 -1
- package/esm2015/lib/components/diagrams/components/node-inputs.component.js +34 -35
- package/esm2015/lib/components/diagrams/components/node-outputs.component.js +30 -31
- package/esm2015/lib/components/diagrams/components/node-ports.component.js +98 -0
- package/esm2015/lib/components/diagrams/components/remove-button.component.js +46 -43
- package/esm2015/lib/components/diagrams/components/template-node/template-node.component.js +6 -7
- package/esm2015/lib/components/diagrams/constants/node-type.js +2 -1
- package/esm2015/lib/components/diagrams/constants/sizes.js +2 -1
- package/esm2015/lib/components/diagrams/constants/status.js +4 -1
- package/esm2015/lib/components/diagrams/diagrams.module.js +14 -6
- package/esm2015/lib/components/diagrams/directive/diagram.directive.js +9 -6
- package/esm2015/lib/components/diagrams/editor/customize.js +16 -12
- package/esm2015/lib/components/diagrams/editor/editor.js +21 -19
- package/esm2015/lib/components/diagrams/editor/overrides/connection-path.transformers.js +32 -7
- package/esm2015/lib/components/diagrams/editor/path-plugin.js +10 -9
- package/esm2015/lib/components/diagrams/models/base-node.model.js +3 -2
- package/esm2015/lib/components/diagrams/models/connection.model.js +11 -4
- package/esm2015/lib/components/diagrams/models/gate-way.model.js +11 -0
- package/esm2015/lib/components/diagrams/models/index.js +2 -1
- package/esm2015/lib/components/diagrams/models/ports.model.js +14 -0
- package/esm2015/lib/components/diagrams/models/socket.model.js +5 -4
- package/esm2015/lib/components/diagrams/services/diagram.service.js +77 -29
- package/esm2015/lib/components/diagrams/services/workflow.service.js +14 -19
- package/esm2015/lib/components/diagrams/types/common.type.js +1 -1
- package/esm2015/lib/components/diagrams/types/connection-config.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/connection-label.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/diagram-config.type.js +1 -1
- package/esm2015/lib/components/diagrams/types/diagram-editor.type.js +1 -1
- package/esm2015/lib/components/diagrams/types/index.js +6 -2
- package/esm2015/lib/components/diagrams/types/node-definition.js +1 -1
- package/esm2015/lib/components/diagrams/types/path.type.js +1 -1
- package/esm2015/lib/components/diagrams/types/ports-config.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/socket.type.js +2 -0
- package/esm2015/lib/components/diagrams/utilities/common.js +35 -0
- package/esm2015/lib/components/diagrams/utilities/index.js +3 -1
- package/esm2015/lib/components/diagrams/utilities/random.js +11 -0
- package/esm2015/lib/components/diagrams/utilities/remove.util.js +2 -2
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +238 -200
- package/esm2015/lib/components/file-manger/file-manger.module.js +10 -6
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +2 -2
- package/fesm2015/nuxeo-development-framework.js +1194 -640
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/diagrams/components/base-node.component.d.ts +1 -0
- package/lib/components/diagrams/components/connection-label.component.d.ts +19 -0
- package/lib/components/diagrams/components/custom-connection.component.d.ts +5 -0
- package/lib/components/diagrams/components/gateway-node/gateway-node.component.d.ts +6 -0
- package/lib/components/diagrams/components/gateway-ports.component.d.ts +12 -0
- package/lib/components/diagrams/components/index.d.ts +4 -0
- package/lib/components/diagrams/components/node-ports.component.d.ts +13 -0
- package/lib/components/diagrams/constants/node-type.d.ts +1 -0
- package/lib/components/diagrams/constants/sizes.d.ts +1 -0
- package/lib/components/diagrams/constants/status.d.ts +3 -0
- package/lib/components/diagrams/diagrams.module.d.ts +12 -8
- package/lib/components/diagrams/editor/overrides/connection-path.transformers.d.ts +2 -7
- package/lib/components/diagrams/models/base-node.model.d.ts +3 -2
- package/lib/components/diagrams/models/connection.model.d.ts +9 -1
- package/lib/components/diagrams/models/gate-way.model.d.ts +8 -0
- package/lib/components/diagrams/models/index.d.ts +1 -0
- package/lib/components/diagrams/models/ports.model.d.ts +11 -0
- package/lib/components/diagrams/models/socket.model.d.ts +3 -1
- package/lib/components/diagrams/services/diagram.service.d.ts +20 -9
- package/lib/components/diagrams/services/workflow.service.d.ts +0 -1
- package/lib/components/diagrams/types/common.type.d.ts +5 -0
- package/lib/components/diagrams/types/connection-config.type.d.ts +11 -0
- package/lib/components/diagrams/types/connection-label.type.d.ts +4 -0
- package/lib/components/diagrams/types/diagram-config.type.d.ts +6 -0
- package/lib/components/diagrams/types/diagram-editor.type.d.ts +3 -2
- package/lib/components/diagrams/types/index.d.ts +5 -1
- package/lib/components/diagrams/types/node-definition.d.ts +1 -0
- package/lib/components/diagrams/types/path.type.d.ts +1 -0
- package/lib/components/diagrams/types/ports-config.type.d.ts +11 -0
- package/lib/components/diagrams/types/socket.type.d.ts +5 -0
- package/lib/components/diagrams/utilities/common.d.ts +19 -0
- package/lib/components/diagrams/utilities/index.d.ts +2 -0
- package/lib/components/diagrams/utilities/random.d.ts +1 -0
- package/lib/components/diagrams/utilities/remove.util.d.ts +1 -1
- package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +13 -19
- package/lib/components/file-manger/file-manger.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ConnectionLabelType } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConnectionLabelComponent implements AfterViewInit, OnDestroy {
|
|
5
|
+
private _zone;
|
|
6
|
+
path: SVGPathElement;
|
|
7
|
+
position: ConnectionLabelType['position'];
|
|
8
|
+
text: string;
|
|
9
|
+
observer: MutationObserver;
|
|
10
|
+
transformStyle: string;
|
|
11
|
+
labelContainer: ElementRef<HTMLDivElement>;
|
|
12
|
+
constructor(_zone: NgZone);
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
calculatePosition(): void;
|
|
16
|
+
private _getPositionPoint;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConnectionLabelComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConnectionLabelComponent, "app-connection-label", never, { "path": "path"; "position": "position"; "text": "text"; }, {}, never, never>;
|
|
19
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { ConnectionComponent } from 'rete-angular-plugin';
|
|
2
3
|
import { Connection } from '../models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CustomConnectionComponent extends ConnectionComponent {
|
|
6
|
+
pathElement: ElementRef<SVGPathElement>;
|
|
5
7
|
data: Connection;
|
|
8
|
+
get pathNative(): SVGPathElement;
|
|
9
|
+
get labelText(): string;
|
|
10
|
+
get labelPosition(): "center" | "end" | "start";
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomConnectionComponent, never>;
|
|
7
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomConnectionComponent, "connection", never, { "data": "data"; }, {}, never, never>;
|
|
8
13
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseNodeComponent } from '../base-node.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GatewayNodeComponent extends BaseNodeComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GatewayNodeComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GatewayNodeComponent, "ng-component", never, {}, {}, never, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseNodeClass } from '../models';
|
|
2
|
+
import { DirectionType } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GatewayPortsComponent {
|
|
5
|
+
direction: DirectionType;
|
|
6
|
+
data: BaseNodeClass;
|
|
7
|
+
seed: number;
|
|
8
|
+
emit: (data: any) => void;
|
|
9
|
+
sortByIndex: (a: unknown, b: unknown) => number;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GatewayPortsComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GatewayPortsComponent, "gateway-ports", never, { "direction": "direction"; "data": "data"; "seed": "seed"; "emit": "emit"; "sortByIndex": "sortByIndex"; }, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export * from './circle-node/circle-node.component';
|
|
2
|
+
export * from './connection-label.component';
|
|
2
3
|
export * from './content-node/content-node.component';
|
|
3
4
|
export * from './custom-connection.component';
|
|
4
5
|
export * from './custom-socket.component';
|
|
6
|
+
export * from './gateway-node/gateway-node.component';
|
|
7
|
+
export * from './gateway-ports.component';
|
|
5
8
|
export * from './node-icon.component';
|
|
6
9
|
export * from './node-inputs.component';
|
|
7
10
|
export * from './node-outputs.component';
|
|
11
|
+
export * from './node-ports.component';
|
|
8
12
|
export * from './remove-button.component';
|
|
9
13
|
export * from './status-icon.component';
|
|
10
14
|
export * from './template-node/template-node.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseNodeClass } from '../models';
|
|
2
|
+
import { DirectionType } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NodePortsComponent {
|
|
5
|
+
inputsDirection: DirectionType;
|
|
6
|
+
outputsDirection: DirectionType;
|
|
7
|
+
data: BaseNodeClass;
|
|
8
|
+
seed: number;
|
|
9
|
+
emit: (data: any) => void;
|
|
10
|
+
sortByIndex: (a: unknown, b: unknown) => number;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodePortsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodePortsComponent, "node-ports", never, { "inputsDirection": "inputsDirection"; "outputsDirection": "outputsDirection"; "data": "data"; "seed": "seed"; "emit": "emit"; "sortByIndex": "sortByIndex"; }, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -2,5 +2,6 @@ export declare const NODE_MARGIN = 60;
|
|
|
2
2
|
export declare const NODE_WIDTH = 150;
|
|
3
3
|
export declare const NODE_HEIGHT = 118;
|
|
4
4
|
export declare const NODE_CIRCLE_SIZE = 72;
|
|
5
|
+
export declare const NODE_GATEWAY_SIZE = 60;
|
|
5
6
|
export declare const DIAGRAM_HEIGHT = 600;
|
|
6
7
|
export declare const SOCKET_WIDTH = 8;
|
|
@@ -11,15 +11,19 @@ import * as i9 from "./components/node-icon.component";
|
|
|
11
11
|
import * as i10 from "./components/status-icon.component";
|
|
12
12
|
import * as i11 from "./components/node-inputs.component";
|
|
13
13
|
import * as i12 from "./components/node-outputs.component";
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@angular/
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
14
|
+
import * as i13 from "./components/gateway-node/gateway-node.component";
|
|
15
|
+
import * as i14 from "./components/connection-label.component";
|
|
16
|
+
import * as i15 from "./components/node-ports.component";
|
|
17
|
+
import * as i16 from "./components/gateway-ports.component";
|
|
18
|
+
import * as i17 from "@angular/common";
|
|
19
|
+
import * as i18 from "rete-angular-plugin";
|
|
20
|
+
import * as i19 from "@angular/material/button";
|
|
21
|
+
import * as i20 from "@angular/material/icon";
|
|
22
|
+
import * as i21 from "@angular/forms";
|
|
23
|
+
import * as i22 from "@ngx-translate/core";
|
|
24
|
+
import * as i23 from "@angular/material/tooltip";
|
|
21
25
|
export declare class DiagramsModule {
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiagramsModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DiagramsModule, [typeof i1.CircleNodeComponent, typeof i2.ContentNodeComponent, typeof i3.CustomConnectionComponent, typeof i4.CustomSocketComponent, typeof i5.TemplateNodeComponent, typeof i6.DiagramDirective, typeof i7.RemoveButtonComponent, typeof i8.ZoomControlComponent, typeof i9.NodeIconComponent, typeof i10.StatusIconComponent, typeof i11.NodeInputsComponent, typeof i12.NodeOutputsComponent], [typeof
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DiagramsModule, [typeof i1.CircleNodeComponent, typeof i2.ContentNodeComponent, typeof i3.CustomConnectionComponent, typeof i4.CustomSocketComponent, typeof i5.TemplateNodeComponent, typeof i6.DiagramDirective, typeof i7.RemoveButtonComponent, typeof i8.ZoomControlComponent, typeof i9.NodeIconComponent, typeof i10.StatusIconComponent, typeof i11.NodeInputsComponent, typeof i12.NodeOutputsComponent, typeof i13.GatewayNodeComponent, typeof i14.ConnectionLabelComponent, typeof i15.NodePortsComponent, typeof i16.GatewayPortsComponent], [typeof i17.CommonModule, typeof i18.ReteModule, typeof i19.MatButtonModule, typeof i20.MatIconModule, typeof i21.FormsModule, typeof i22.TranslateModule, typeof i23.MatTooltipModule], [typeof i6.DiagramDirective, typeof i8.ZoomControlComponent]>;
|
|
24
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<DiagramsModule>;
|
|
25
29
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare type Transformer = (points: Position[]) => Position[];
|
|
4
|
-
export declare const createSegmentedPath: (connection: Connection, options: {
|
|
5
|
-
multiPoints?: boolean;
|
|
6
|
-
offset?: number;
|
|
7
|
-
}) => Transformer;
|
|
1
|
+
import { TransformerFactory } from '../../types';
|
|
2
|
+
export declare const createSegmentedPath: TransformerFactory;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { ClassicPreset } from 'rete';
|
|
3
|
-
import { DiagramConfig, DirectionType, NodeContent, NodeDefinitionData, NodeType, NotifyEventType, Optional } from '../types';
|
|
3
|
+
import { DiagramConfig, DirectionType, NodeContent, NodeDefinitionData, NodeStatus, NodeType, NotifyEventType, Optional } from '../types';
|
|
4
4
|
export declare abstract class BaseNodeClass<T = unknown> extends ClassicPreset.Node implements NodeDefinitionData {
|
|
5
5
|
label: string;
|
|
6
6
|
template?: TemplateRef<any>;
|
|
7
7
|
name?: Optional<string>;
|
|
8
8
|
description?: Optional<string>;
|
|
9
9
|
type: NodeType;
|
|
10
|
-
status?: string;
|
|
10
|
+
status?: NodeStatus | string;
|
|
11
11
|
width: number;
|
|
12
12
|
height: number;
|
|
13
13
|
content?: Optional<NodeContent<Record<string, any>>>;
|
|
@@ -15,6 +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
|
+
options?: Record<string, any>;
|
|
18
19
|
directions: Record<'inputs' | 'outputs', DirectionType>;
|
|
19
20
|
notify: (eventType: NotifyEventType, payload: Record<string, any>) => void;
|
|
20
21
|
constructor(config: NodeDefinitionData);
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { CurveFactory } from 'd3-shape';
|
|
2
2
|
import { ClassicPreset } from 'rete';
|
|
3
|
+
import { ConnectionConfigType, ConnectionDirectionType, ConnectionLabelType, TransformerFactory } from '../types';
|
|
3
4
|
import { BaseNodeClass } from './base-node.model';
|
|
4
|
-
export declare class Connection<
|
|
5
|
+
export declare class Connection<Source extends BaseNodeClass = BaseNodeClass, Target extends BaseNodeClass = BaseNodeClass> extends ClassicPreset.Connection<Source, Target> {
|
|
5
6
|
curve?: CurveFactory;
|
|
7
|
+
createSegmentedPath?: TransformerFactory;
|
|
6
8
|
renderType?: 'default' | 'custom';
|
|
7
9
|
status?: string;
|
|
10
|
+
styleClass?: string;
|
|
11
|
+
label?: string | ConnectionLabelType;
|
|
12
|
+
sourceNode: Source;
|
|
13
|
+
targetNode: Target;
|
|
14
|
+
direction: ConnectionDirectionType;
|
|
15
|
+
constructor(source: Source, target: Target, config?: ConnectionConfigType);
|
|
8
16
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NodeDefinitionData } from '../types';
|
|
2
|
+
import { BaseNodeClass } from './base-node.model';
|
|
3
|
+
export declare class GateWayNode<T = unknown> extends BaseNodeClass<T> {
|
|
4
|
+
type: "gateway";
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
constructor(config: NodeDefinitionData);
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClassicPreset } from 'rete';
|
|
2
|
+
import { PortModelConfig } from '../types';
|
|
3
|
+
import { Socket } from './socket.model';
|
|
4
|
+
export declare class OutputPort<S extends Socket> extends ClassicPreset.Output<S> {
|
|
5
|
+
styleClass?: string;
|
|
6
|
+
constructor(config: PortModelConfig<S>);
|
|
7
|
+
}
|
|
8
|
+
export declare class InputPort<S extends Socket> extends ClassicPreset.Input<S> {
|
|
9
|
+
styleClass?: string;
|
|
10
|
+
constructor(config: PortModelConfig<S>);
|
|
11
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ClassicPreset } from 'rete';
|
|
2
|
+
import { SocketConfig } from '../types';
|
|
2
3
|
export declare class Socket extends ClassicPreset.Socket {
|
|
3
4
|
renderType: 'default' | 'custom';
|
|
4
|
-
|
|
5
|
+
styleClass?: string;
|
|
6
|
+
constructor(config: SocketConfig);
|
|
5
7
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { NodeEditor } from 'rete';
|
|
2
|
+
import { Position } from 'rete-area-plugin/_types/types';
|
|
3
|
+
import { BaseNodeClass, Connection, ContentNode, Socket } from '../models';
|
|
4
|
+
import { ConnectionConfigType, DiagramEditorWithPlugins, InputConfigType, NodeDefinitionData, NodeType, NotifyEventType, OutputConfigType, Schemes } from '../types';
|
|
4
5
|
import { DiagramPluginsService } from './diagram-plugins.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DiagramService {
|
|
7
8
|
plugins: DiagramPluginsService;
|
|
8
9
|
private _editorSub;
|
|
9
10
|
editor: NodeEditor<Schemes>;
|
|
10
|
-
socket:
|
|
11
|
+
socket: Socket;
|
|
11
12
|
onReady$: import("rxjs").Observable<DiagramEditorWithPlugins>;
|
|
12
13
|
destroy: () => void;
|
|
13
14
|
fitToZoom: () => void;
|
|
@@ -16,27 +17,37 @@ export declare class DiagramService {
|
|
|
16
17
|
*/
|
|
17
18
|
constructor(plugins: DiagramPluginsService);
|
|
18
19
|
setEditor(editor: DiagramEditorWithPlugins): void;
|
|
20
|
+
diagramClientRect(): DOMRect | undefined;
|
|
19
21
|
getContentNodes(): ContentNode<unknown>[];
|
|
20
22
|
getNodesData(): Record<string, any>[];
|
|
21
23
|
canAddNode(nodeType: NodeType): boolean;
|
|
22
24
|
addNode(node: BaseNodeClass): Promise<void>;
|
|
23
25
|
createNode<T extends BaseNodeClass = ContentNode>(type: NodeType, config: NodeDefinitionData): T;
|
|
24
26
|
shouldAddStart(nodeType: string): boolean;
|
|
27
|
+
getNode(id: string): ContentNode<unknown>;
|
|
28
|
+
getNodes(): ContentNode<unknown>[];
|
|
29
|
+
getConnections(): Connection<ContentNode<unknown>, BaseNodeClass<unknown>>[];
|
|
30
|
+
getConnection(id: string): Connection<ContentNode<unknown>, BaseNodeClass<unknown>>;
|
|
25
31
|
getLastNode(): ContentNode<unknown>;
|
|
26
32
|
getNodesByType(type: NodeType): ContentNode<unknown>[];
|
|
33
|
+
getViewNodes(): import("rete-area-plugin").NodeView[];
|
|
27
34
|
getLastViewNode(): import("rete-area-plugin").NodeView;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
getViewNode(id: string): import("rete-area-plugin").NodeView;
|
|
36
|
+
getViewNodePosition(id: string): Position;
|
|
37
|
+
createInput(node: BaseNodeClass, id?: string, config?: InputConfigType): BaseNodeClass<unknown>;
|
|
38
|
+
createOutput(node: BaseNodeClass, id?: string, config?: OutputConfigType): BaseNodeClass<unknown>;
|
|
39
|
+
addConnection(sourceNode: BaseNodeClass, targetNode: BaseNodeClass, config?: ConnectionConfigType): Promise<void>;
|
|
40
|
+
createConnection(sourceNode: BaseNodeClass, targetNode: BaseNodeClass, config?: ConnectionConfigType): Connection<BaseNodeClass<unknown>, BaseNodeClass<unknown>>;
|
|
32
41
|
appendConnection(connection: Connection): Promise<void>;
|
|
33
42
|
clear(): Promise<boolean>;
|
|
34
43
|
redraw(): void;
|
|
35
44
|
notifyListener(node: BaseNodeClass): (eventType: NotifyEventType, payload: NotifyEventType extends 'remove' ? {
|
|
36
45
|
nodeId: string;
|
|
37
46
|
} : Record<string, any>) => any;
|
|
38
|
-
private _removeNode;
|
|
39
47
|
translateView(): Promise<void>;
|
|
48
|
+
removeEndNode(): Promise<void>;
|
|
49
|
+
private _creteGatewayOutput;
|
|
50
|
+
private _removeNode;
|
|
40
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiagramService, never>;
|
|
41
52
|
static ɵprov: i0.ɵɵInjectableDeclaration<DiagramService>;
|
|
42
53
|
}
|
|
@@ -15,7 +15,6 @@ export declare class WorkflowService {
|
|
|
15
15
|
private _defaultNodeMargin;
|
|
16
16
|
private _offset;
|
|
17
17
|
constructor(_diagram: DiagramService, _plugins: DiagramPluginsService, _message: MessageService);
|
|
18
|
-
private get _diagramClientRect();
|
|
19
18
|
setConfig(_config: DiagramConfig): void;
|
|
20
19
|
addNode<T = any>(nodeType: NodeType, data: NodeContent<T>): Promise<void>;
|
|
21
20
|
removeEndNode(): Promise<void>;
|
|
@@ -1,4 +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];
|
|
8
|
+
export declare type PortType = 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
9
|
+
export declare type TransformerFactory = (connection: Connection, options: PathPluginConfig) => (points: Position[]) => Position[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConnectionLabelType } from './connection-label.type';
|
|
2
|
+
export declare type ConnectionConfigType = {
|
|
3
|
+
renderType?: 'default' | 'custom';
|
|
4
|
+
sourceOutput?: string;
|
|
5
|
+
targetInput?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
styleClass?: string;
|
|
8
|
+
label?: string | ConnectionLabelType;
|
|
9
|
+
direction?: ConnectionDirectionType;
|
|
10
|
+
};
|
|
11
|
+
export declare type ConnectionDirectionType = 'forward' | 'backward' | 'up' | 'down';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { NodeEditor } from 'rete';
|
|
2
|
+
import { Preset as ArrangePreset } from 'rete-auto-arrange-plugin';
|
|
1
3
|
import { NodeType } from './node.type';
|
|
2
4
|
import { PathPluginConfig } from './path.type';
|
|
5
|
+
import { Schemes } from './schemes.type';
|
|
3
6
|
export declare type DiagramConfig = {
|
|
4
7
|
readonly?: {
|
|
5
8
|
active: boolean;
|
|
@@ -33,4 +36,7 @@ export declare type DiagramConfig = {
|
|
|
33
36
|
isLinked?: boolean;
|
|
34
37
|
canRemove?: boolean;
|
|
35
38
|
};
|
|
39
|
+
presets?: {
|
|
40
|
+
arrange?: (editor: NodeEditor<Schemes>) => ArrangePreset;
|
|
41
|
+
};
|
|
36
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeEditor } from 'rete';
|
|
2
2
|
import { AngularArea2D } from 'rete-angular-plugin';
|
|
3
3
|
import { AreaPlugin } from 'rete-area-plugin';
|
|
4
4
|
import { AutoArrangePlugin } from 'rete-auto-arrange-plugin';
|
|
@@ -6,6 +6,7 @@ import { ConnectionPlugin } from 'rete-connection-plugin';
|
|
|
6
6
|
import { RerouteExtra, ReroutePlugin } from 'rete-connection-reroute-plugin';
|
|
7
7
|
import { MinimapExtra } from 'rete-minimap-plugin';
|
|
8
8
|
import { ReadonlyPlugin } from 'rete-readonly-plugin';
|
|
9
|
+
import { Socket } from '../models';
|
|
9
10
|
import { ArrangeProps } from './layout.type';
|
|
10
11
|
import { Schemes } from './schemes.type';
|
|
11
12
|
export declare type DiagramEditorWithPlugins = {
|
|
@@ -13,7 +14,7 @@ export declare type DiagramEditorWithPlugins = {
|
|
|
13
14
|
destroy: () => void;
|
|
14
15
|
layout: (props?: ArrangeProps) => void;
|
|
15
16
|
fitToZoom: () => void;
|
|
16
|
-
socket:
|
|
17
|
+
socket: Socket;
|
|
17
18
|
plugins: {
|
|
18
19
|
area: AreaPlugin<Schemes, AreaExtra>;
|
|
19
20
|
connection: ConnectionPlugin<Schemes, AreaExtra>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './common.type';
|
|
2
|
+
export * from './connection-config.type';
|
|
3
|
+
export * from './connection-label.type';
|
|
2
4
|
export * from './customization.type';
|
|
3
5
|
export * from './diagram-config.type';
|
|
4
6
|
export * from './diagram-editor.type';
|
|
@@ -6,8 +8,10 @@ export * from './emitter-type';
|
|
|
6
8
|
export * from './layout.type';
|
|
7
9
|
export * from './node-content';
|
|
8
10
|
export * from './node-definition';
|
|
11
|
+
export * from './node-status.type';
|
|
9
12
|
export * from './node.type';
|
|
10
13
|
export * from './notify-event.type';
|
|
11
14
|
export * from './path.type';
|
|
15
|
+
export * from './ports-config.type';
|
|
12
16
|
export * from './schemes.type';
|
|
13
|
-
export * from './
|
|
17
|
+
export * from './socket.type';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type PortConfig = {
|
|
2
|
+
label?: string;
|
|
3
|
+
multipleConnections?: boolean;
|
|
4
|
+
styleClass?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type PortModelConfig<S> = {
|
|
7
|
+
socket: S;
|
|
8
|
+
} & PortConfig;
|
|
9
|
+
export declare type InputConfigType = PortConfig;
|
|
10
|
+
export declare type OutputConfigType = PortConfig;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PortType } from '../types';
|
|
2
|
+
export declare class DiagramUtils {
|
|
3
|
+
static createInputId(id: string, type?: PortType): string;
|
|
4
|
+
static createOutputId(id: string, type?: PortType): string;
|
|
5
|
+
static createInputClass(type?: PortType): string;
|
|
6
|
+
static createOutputClass(type?: PortType): string;
|
|
7
|
+
static createOutputsConfig(id: string, types: PortType[]): {
|
|
8
|
+
id: string;
|
|
9
|
+
config: {
|
|
10
|
+
styleClass: string;
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
static createInputsConfig(id: string, types: PortType[]): {
|
|
14
|
+
id: string;
|
|
15
|
+
config: {
|
|
16
|
+
styleClass: string;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRandomNumber(x: number, y: number, step?: number, min?: number, max?: number): number;
|
|
@@ -27,4 +27,4 @@ export declare const removeConnections: (node: BaseNodeClass, editor: NodeEditor
|
|
|
27
27
|
* @param predicate
|
|
28
28
|
* @returns
|
|
29
29
|
*/
|
|
30
|
-
export declare const getConnections: (editor: NodeEditor<Schemes>, predicate: (connection: Connection) => boolean) => Connection<import("../models").ContentNode<unknown>>[];
|
|
30
|
+
export declare const getConnections: (editor: NodeEditor<Schemes>, predicate: (connection: Connection) => boolean) => Connection<import("../models").ContentNode<unknown>, BaseNodeClass<unknown>>[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
3
|
import { UploadManagmentService } from '../../../../shared-services/upload-managment.service';
|
|
5
4
|
import { DialogMangmentService } from '../../../../shared-services/dialog-mangment.service';
|
|
6
5
|
import { DynamicFormService } from '../../../../shared-services/dynamic-form.service';
|
|
@@ -11,24 +10,21 @@ import { CustomToastrService } from '../../../custom-toastr/services/custom-toas
|
|
|
11
10
|
import { DateHelperService } from '../../../hijri-gregorian-datepicker/services/date-helper.service';
|
|
12
11
|
import { AdapterService } from '../../../../core/adapters/adapter.service';
|
|
13
12
|
import { AppConfigService } from '../../../../configuration/app-config.service';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { BaseDialogComponent } from '../../../../shared/components/base/base-dialog.component';
|
|
14
|
+
import { DialogActionType } from '../../../../shared/components/nuxeo-dialog/models/dialog-option.model';
|
|
16
15
|
import * as i0 from "@angular/core";
|
|
17
|
-
export declare class CreateModalComponent implements OnInit, OnDestroy {
|
|
16
|
+
export declare class CreateModalComponent extends BaseDialogComponent<CreateModalComponent, any, any> implements OnInit, OnDestroy {
|
|
18
17
|
data: any;
|
|
19
|
-
dialogRef: MatDialogRef<CreateModalComponent>;
|
|
20
18
|
uploadMangmentService: UploadManagmentService;
|
|
21
19
|
dialogMangmentService: DialogMangmentService;
|
|
22
20
|
private fileMangerService;
|
|
23
21
|
private tosterService;
|
|
24
|
-
|
|
22
|
+
formBuilder: FormBuilder;
|
|
25
23
|
private adapeter;
|
|
26
24
|
private fileManagerService;
|
|
27
25
|
private appConfService;
|
|
28
26
|
private dateHelperService;
|
|
29
|
-
private translationService;
|
|
30
27
|
private userService;
|
|
31
|
-
private nuxeoService;
|
|
32
28
|
private environment;
|
|
33
29
|
private dynamicFormService;
|
|
34
30
|
addingProperties: boolean;
|
|
@@ -50,20 +46,18 @@ export declare class CreateModalComponent implements OnInit, OnDestroy {
|
|
|
50
46
|
staticFormFields: any;
|
|
51
47
|
agencyNameFilter: any;
|
|
52
48
|
countryNameFilter: any;
|
|
53
|
-
isArabic: boolean;
|
|
54
49
|
showStaticForm: boolean;
|
|
55
|
-
langSubscription: Subscription;
|
|
56
50
|
disableCreateWhenFinishBtn: boolean;
|
|
57
51
|
creating: boolean;
|
|
58
52
|
displayNoteMessage: boolean;
|
|
59
53
|
myEnvironment: any;
|
|
60
54
|
KeyUpEvent(event: KeyboardEvent): void;
|
|
61
|
-
constructor(data: any,
|
|
55
|
+
constructor(data: any, uploadMangmentService: UploadManagmentService, dialogMangmentService: DialogMangmentService, fileMangerService: FileManagerService, tosterService: CustomToastrService, formBuilder: FormBuilder, adapeter: AdapterService, fileManagerService: FileManagerService, appConfService: AppConfigService, dateHelperService: DateHelperService, userService: UserService, environment: any, injector: Injector, dynamicFormService: DynamicFormService);
|
|
62
56
|
ngOnInit(): void;
|
|
63
57
|
initiatfileForm(): void;
|
|
64
|
-
createWhenFinish
|
|
65
|
-
|
|
66
|
-
startAddingProperties()
|
|
58
|
+
createWhenFinish: DialogActionType;
|
|
59
|
+
close(): import("rxjs").Observable<any>;
|
|
60
|
+
startAddingProperties: () => void;
|
|
67
61
|
setStaticData(title: any): {
|
|
68
62
|
title: any;
|
|
69
63
|
description: string;
|
|
@@ -93,16 +87,16 @@ export declare class CreateModalComponent implements OnInit, OnDestroy {
|
|
|
93
87
|
countryName?: undefined;
|
|
94
88
|
remarks?: undefined;
|
|
95
89
|
};
|
|
96
|
-
createDocument
|
|
90
|
+
createDocument: DialogActionType;
|
|
97
91
|
constructPayLoadToWorkSpace(files: any): void;
|
|
98
|
-
tryAgainCreateDocument
|
|
92
|
+
tryAgainCreateDocument: DialogActionType;
|
|
99
93
|
constructPayLoad(files: any): void;
|
|
100
94
|
mappingStaticData(data: any): any;
|
|
101
95
|
selectFile(file: any): void;
|
|
102
96
|
ondynamicFormChange(dynamicData: any): void;
|
|
103
|
-
minimizDialog
|
|
97
|
+
minimizDialog: DialogActionType;
|
|
104
98
|
removeItem(item: any, listofFiles: any): void;
|
|
105
|
-
ApplyChangesToAll
|
|
99
|
+
ApplyChangesToAll: DialogActionType;
|
|
106
100
|
checkValidation(): boolean;
|
|
107
101
|
ngOnDestroy(): void;
|
|
108
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateModalComponent, never>;
|
|
@@ -53,8 +53,9 @@ import * as i51 from "../attachment-modal/attachment-modal.module";
|
|
|
53
53
|
import * as i52 from "../display-suitable-icon/display-suitable-icon.module";
|
|
54
54
|
import * as i53 from "@angular/material/progress-bar";
|
|
55
55
|
import * as i54 from "@angular/material/checkbox";
|
|
56
|
+
import * as i55 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
|
|
56
57
|
export declare class FileMangerModule {
|
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileMangerModule, never>;
|
|
58
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FileMangerModule, [typeof i1.SidepanelComponent, typeof i2.CopyComponent, typeof i3.DeleteComponent, typeof i4.MoveComponent, typeof i5.RenameComponent, typeof i6.AddToCollectionComponent, typeof i7.TransferDocComponent, typeof i8.LoanRequestComponent, typeof i9.CreateDirectoryComponent, typeof i10.CreateModalComponent, typeof i11.CreationTypeComponent, typeof i12.FolderModalComponent, typeof i13.PublishDialogComponent, typeof i14.ScanModalComponent, typeof i15.ShareDialogComponent, typeof i16.TemplateModalComponent, typeof i17.UpdateModalComponent, typeof i18.ClipboardComponent, typeof i19.FileGridInfiniteScrollDirective], [typeof i20.CommonModule, typeof i21.MatIconModule, typeof i22.DynamicFormModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.LibrarySharedModule, typeof i25.TranslateModule, typeof i26.DocumentsModule, typeof i27.DirectiveModule, typeof i28.DxPopupModule, typeof i28.DxScrollViewModule, typeof i29.DxiToolbarItemModule, typeof i28.DxButtonModule, typeof i28.DxTemplateModule, typeof i28.DxTextBoxModule, typeof i28.DxFormModule, typeof i30.NgSelectModule, typeof i31.CommentsModule, typeof i32.CardModule, typeof i28.DxTreeViewModule, typeof i33.ViewerLogModule, typeof i34.CtsTagsModule, typeof i35.MatDialogModule, typeof i36.MatTooltipModule, typeof i37.CorrespondenceRelationModule, typeof i38.AvatarModule, typeof i39.DynamicFieldsRendererModule, typeof i40.MatProgressSpinnerModule, typeof i41.SelectUsersByDepartmentModule, typeof i42.PipesModule, typeof i43.DynamicTabsModule, typeof i44.ActivitiesLogModule, typeof i45.SharedServicesModule, typeof i46.ConfirmationDialogModule, typeof i47.PermissionsModule, typeof i48.UserModule, typeof i49.MutipleDynamicFormViewerModule, typeof i50.BrowserTransferStateModule, typeof i51.AttachmentModalModule, typeof i23.FormsModule, typeof i52.DisplaySuitableIconModule, typeof i53.MatProgressBarModule, typeof i54.MatCheckboxModule], [typeof i1.SidepanelComponent, typeof i2.CopyComponent, typeof i3.DeleteComponent, typeof i4.MoveComponent, typeof i5.RenameComponent, typeof i6.AddToCollectionComponent, typeof i7.TransferDocComponent, typeof i8.LoanRequestComponent, typeof i9.CreateDirectoryComponent, typeof i10.CreateModalComponent, typeof i11.CreationTypeComponent, typeof i12.FolderModalComponent, typeof i13.PublishDialogComponent, typeof i14.ScanModalComponent, typeof i15.ShareDialogComponent, typeof i16.TemplateModalComponent, typeof i17.UpdateModalComponent, typeof i28.DxPopupModule, typeof i28.DxScrollViewModule, typeof i29.DxiToolbarItemModule, typeof i28.DxButtonModule, typeof i28.DxTemplateModule, typeof i28.DxTextBoxModule, typeof i28.DxFormModule, typeof i28.DxTreeViewModule, typeof i18.ClipboardComponent, typeof i19.FileGridInfiniteScrollDirective]>;
|
|
59
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FileMangerModule, [typeof i1.SidepanelComponent, typeof i2.CopyComponent, typeof i3.DeleteComponent, typeof i4.MoveComponent, typeof i5.RenameComponent, typeof i6.AddToCollectionComponent, typeof i7.TransferDocComponent, typeof i8.LoanRequestComponent, typeof i9.CreateDirectoryComponent, typeof i10.CreateModalComponent, typeof i11.CreationTypeComponent, typeof i12.FolderModalComponent, typeof i13.PublishDialogComponent, typeof i14.ScanModalComponent, typeof i15.ShareDialogComponent, typeof i16.TemplateModalComponent, typeof i17.UpdateModalComponent, typeof i18.ClipboardComponent, typeof i19.FileGridInfiniteScrollDirective], [typeof i20.CommonModule, typeof i21.MatIconModule, typeof i22.DynamicFormModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.LibrarySharedModule, typeof i25.TranslateModule, typeof i26.DocumentsModule, typeof i27.DirectiveModule, typeof i28.DxPopupModule, typeof i28.DxScrollViewModule, typeof i29.DxiToolbarItemModule, typeof i28.DxButtonModule, typeof i28.DxTemplateModule, typeof i28.DxTextBoxModule, typeof i28.DxFormModule, typeof i30.NgSelectModule, typeof i31.CommentsModule, typeof i32.CardModule, typeof i28.DxTreeViewModule, typeof i33.ViewerLogModule, typeof i34.CtsTagsModule, typeof i35.MatDialogModule, typeof i36.MatTooltipModule, typeof i37.CorrespondenceRelationModule, typeof i38.AvatarModule, typeof i39.DynamicFieldsRendererModule, typeof i40.MatProgressSpinnerModule, typeof i41.SelectUsersByDepartmentModule, typeof i42.PipesModule, typeof i43.DynamicTabsModule, typeof i44.ActivitiesLogModule, typeof i45.SharedServicesModule, typeof i46.ConfirmationDialogModule, typeof i47.PermissionsModule, typeof i48.UserModule, typeof i49.MutipleDynamicFormViewerModule, typeof i50.BrowserTransferStateModule, typeof i51.AttachmentModalModule, typeof i23.FormsModule, typeof i52.DisplaySuitableIconModule, typeof i53.MatProgressBarModule, typeof i54.MatCheckboxModule, typeof i55.NuxeoDialogModule], [typeof i1.SidepanelComponent, typeof i2.CopyComponent, typeof i3.DeleteComponent, typeof i4.MoveComponent, typeof i5.RenameComponent, typeof i6.AddToCollectionComponent, typeof i7.TransferDocComponent, typeof i8.LoanRequestComponent, typeof i9.CreateDirectoryComponent, typeof i10.CreateModalComponent, typeof i11.CreationTypeComponent, typeof i12.FolderModalComponent, typeof i13.PublishDialogComponent, typeof i14.ScanModalComponent, typeof i15.ShareDialogComponent, typeof i16.TemplateModalComponent, typeof i17.UpdateModalComponent, typeof i28.DxPopupModule, typeof i28.DxScrollViewModule, typeof i29.DxiToolbarItemModule, typeof i28.DxButtonModule, typeof i28.DxTemplateModule, typeof i28.DxTextBoxModule, typeof i28.DxFormModule, typeof i28.DxTreeViewModule, typeof i18.ClipboardComponent, typeof i19.FileGridInfiniteScrollDirective]>;
|
|
59
60
|
static ɵinj: i0.ɵɵInjectorDeclaration<FileMangerModule>;
|
|
60
61
|
}
|