nuxeo-development-framework 4.1.1 → 4.1.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.
- package/bundles/nuxeo-development-framework.umd.js +1521 -1053
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- 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/copy/copy.component.js +65 -36
- package/esm2015/lib/components/file-manger/components/create-directory/create-directory.component.js +39 -13
- package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +45 -43
- package/esm2015/lib/components/file-manger/components/move/move.component.js +60 -31
- package/fesm2015/nuxeo-development-framework.js +1269 -675
- 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/copy/copy.component.d.ts +11 -4
- package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts +9 -4
- package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +9 -11
- package/lib/components/file-manger/components/move/move.component.d.ts +11 -4
- 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,12 +1,18 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Injector, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DxFormComponent } from 'devextreme-angular';
|
|
3
3
|
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
4
4
|
import { FileManagerService } from '../../../../shared-services/file-manager.service';
|
|
5
|
+
import { NuxeoDialogService } from '../../../../shared/components/nuxeo-dialog/services/nuxeo-dialog.service';
|
|
6
|
+
import { DialogActionType } from '../../../../shared/components/nuxeo-dialog/models/dialog-option.model';
|
|
7
|
+
import { BaseComponent } from '../../../../shared/components/base/base.component';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CopyComponent implements OnInit {
|
|
9
|
+
export declare class CopyComponent extends BaseComponent implements OnInit {
|
|
7
10
|
private fileManagerService;
|
|
8
11
|
protected customToastrService: CustomToastrService;
|
|
12
|
+
nuxeoDialogService: NuxeoDialogService;
|
|
9
13
|
form: DxFormComponent;
|
|
14
|
+
contentTemplate: TemplateRef<any>;
|
|
15
|
+
actionsTemplate: TemplateRef<any>;
|
|
10
16
|
set visible(value: any);
|
|
11
17
|
get visible(): any;
|
|
12
18
|
visibleChange: EventEmitter<any>;
|
|
@@ -22,12 +28,13 @@ export declare class CopyComponent implements OnInit {
|
|
|
22
28
|
disable: boolean;
|
|
23
29
|
_visible: boolean;
|
|
24
30
|
currentItem: any;
|
|
25
|
-
constructor(fileManagerService: FileManagerService, customToastrService: CustomToastrService);
|
|
31
|
+
constructor(fileManagerService: FileManagerService, customToastrService: CustomToastrService, nuxeoDialogService: NuxeoDialogService, injector: Injector);
|
|
26
32
|
ngOnInit(): void;
|
|
33
|
+
openDialog(): void;
|
|
27
34
|
cancel(): void;
|
|
28
35
|
selectItem(e: any): void;
|
|
29
36
|
createTreeNodeChildren: (parent: any) => any;
|
|
30
|
-
copy
|
|
37
|
+
copy: DialogActionType;
|
|
31
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<CopyComponent, never>;
|
|
32
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<CopyComponent, "app-copy", never, { "visible": "visible"; "rtlEnabled": "rtlEnabled"; "selectedItem": "selectedItem"; "rootFolder": "rootFolder"; "rootEntries": "rootEntries"; "selectedItems": "selectedItems"; "directory": "directory"; "pageConfigurations": "pageConfigurations"; }, { "visibleChange": "visibleChange"; "getSelectedFolder": "getSelectedFolder"; }, never, never>;
|
|
33
40
|
}
|
package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Injector, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FileManagerService } from '../../../../shared-services/file-manager.service';
|
|
3
3
|
import { DxFormComponent } from 'devextreme-angular';
|
|
4
4
|
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
5
|
+
import { NuxeoDialogService } from '../../../../shared/components/nuxeo-dialog/services/nuxeo-dialog.service';
|
|
6
|
+
import { BaseComponent } from '../../../../shared/components/base/base.component';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CreateDirectoryComponent implements OnInit {
|
|
8
|
+
export declare class CreateDirectoryComponent extends BaseComponent implements OnInit {
|
|
7
9
|
private fileManagerService;
|
|
8
10
|
private customToastrService;
|
|
11
|
+
nuxeoDialogService: NuxeoDialogService;
|
|
9
12
|
form: DxFormComponent;
|
|
13
|
+
contentTemplate: TemplateRef<any>;
|
|
14
|
+
actionsTemplate: TemplateRef<any>;
|
|
10
15
|
set visible(value: any);
|
|
11
16
|
get visible(): any;
|
|
12
17
|
visibleChange: EventEmitter<any>;
|
|
@@ -15,9 +20,9 @@ export declare class CreateDirectoryComponent implements OnInit {
|
|
|
15
20
|
selectedItem: any;
|
|
16
21
|
formData: any;
|
|
17
22
|
_visible: boolean;
|
|
18
|
-
|
|
19
|
-
constructor(fileManagerService: FileManagerService, customToastrService: CustomToastrService);
|
|
23
|
+
constructor(fileManagerService: FileManagerService, customToastrService: CustomToastrService, nuxeoDialogService: NuxeoDialogService, injector: Injector);
|
|
20
24
|
ngOnInit(): void;
|
|
25
|
+
openDialog(): void;
|
|
21
26
|
onSubmit(e: any): void;
|
|
22
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateDirectoryComponent, never>;
|
|
23
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<CreateDirectoryComponent, "app-create-directory", never, { "visible": "visible"; "rtlEnabled": "rtlEnabled"; "selectedItem": "selectedItem"; }, { "visibleChange": "visibleChange"; "refresh": "refresh"; }, never, never>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { DynamicFormService } from '../../../../shared-services/dynamic-form.service';
|
|
5
5
|
import { FileManagerService } from '../../../../shared-services/file-manager.service';
|
|
6
|
-
import { TranslationService } from '../../../../core/services/translation/translation.service';
|
|
7
6
|
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
7
|
+
import { BaseDialogComponent } from '../../../../shared/components/base/base-dialog.component';
|
|
8
|
+
import { DialogActionType } from '../../../../shared/components/nuxeo-dialog/models/dialog-option.model';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FolderModalComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
10
|
+
export declare class FolderModalComponent extends BaseDialogComponent<FolderModalComponent, any, any> implements OnInit, AfterViewInit, OnDestroy {
|
|
10
11
|
data: any;
|
|
11
12
|
private dialogRef;
|
|
12
13
|
private fileMangerService;
|
|
13
14
|
private dynamicFormService;
|
|
14
|
-
private translationService;
|
|
15
15
|
private tosterService;
|
|
16
|
-
private formBuilder;
|
|
17
16
|
folderType: any;
|
|
18
17
|
dynamicForm: any;
|
|
19
18
|
temporaryDyanmicData: {};
|
|
@@ -30,26 +29,25 @@ export declare class FolderModalComponent implements OnInit, AfterViewInit, OnDe
|
|
|
30
29
|
parentId: string;
|
|
31
30
|
childId: any;
|
|
32
31
|
testingForm: FormGroup;
|
|
33
|
-
isArabic: boolean;
|
|
34
32
|
private _unsubscribeAll;
|
|
35
33
|
isDmsFolder: boolean;
|
|
36
34
|
creating: boolean;
|
|
37
35
|
folderForm: FormGroup;
|
|
38
36
|
KeyUpEvent(event: KeyboardEvent): void;
|
|
39
|
-
constructor(data: any, dialogRef: MatDialogRef<FolderModalComponent>, fileMangerService: FileManagerService, dynamicFormService: DynamicFormService,
|
|
37
|
+
constructor(data: any, dialogRef: MatDialogRef<FolderModalComponent>, fileMangerService: FileManagerService, dynamicFormService: DynamicFormService, tosterService: CustomToastrService, injector: Injector);
|
|
40
38
|
ngOnInit(): void;
|
|
41
39
|
ngAfterViewInit(): void;
|
|
42
40
|
ngOnDestroy(): void;
|
|
43
41
|
ondynamicFormChange(dynamicData: any): void;
|
|
44
42
|
closeDialog(): void;
|
|
45
|
-
createDocument
|
|
43
|
+
createDocument: DialogActionType;
|
|
46
44
|
constructPayLoad(dynamicValues: any, staticForm: any): {
|
|
47
45
|
document: {
|
|
48
46
|
type: any;
|
|
49
47
|
name: any;
|
|
50
48
|
properties: {
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
'dc:description': any;
|
|
50
|
+
'dc:title': any;
|
|
53
51
|
};
|
|
54
52
|
};
|
|
55
53
|
};
|