@unofficialbox/box-open-elements 0.32.0 → 0.33.0
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/README.md +13 -13
- package/dist/native-types.d.ts +37 -0
- package/dist/patterns/process-modeler/bridge.js +1 -0
- package/dist/patterns/process-modeler/design.d.ts +1 -1
- package/dist/patterns/process-modeler/design.js +39 -2
- package/dist/patterns/process-modeler/model.d.ts +91 -1
- package/dist/patterns/process-modeler/process-modeler.d.ts +55 -1
- package/dist/patterns/process-modeler/process-modeler.js +649 -109
- package/package.json +1 -1
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
import { BaseElement } from "../../core/index.js";
|
|
2
2
|
import type { NodePath } from "../flow-builder/model.js";
|
|
3
3
|
import type { ProcessConnection, ProcessVariable, ProcessLoadOptions, ProcessKind, ProcessLastRun, ProcessOutlineItem, ProcessField } from "./model.js";
|
|
4
|
-
import { ProcessHistory, type ProcessBox, type ProcessCheck, type ProcessEdit, type ProcessLayout, type ProcessModel, type ProcessProjection } from "./model.js";
|
|
4
|
+
import { ProcessHistory, type ProcessBox, type ProcessCheck, type ProcessEdit, type ProcessSelectionItem, type ProcessCopyRequest, type ProcessLayout, type ProcessModel, type ProcessProjection } from "./model.js";
|
|
5
|
+
/** Source-owned contracts for notifications forwarded through the acceptance queue. */
|
|
6
|
+
export interface ProcessModelerEventDetails {
|
|
7
|
+
'note-move-request': {
|
|
8
|
+
noteIds: readonly string[];
|
|
9
|
+
notes: readonly NonNullable<ProcessLayout['notes']>[number][];
|
|
10
|
+
};
|
|
11
|
+
'process-copy-request': ProcessCopyRequest;
|
|
12
|
+
'process-selection-copy-request': ProcessCopyRequest;
|
|
13
|
+
'layout-changed': {
|
|
14
|
+
layout: ProcessLayout;
|
|
15
|
+
};
|
|
16
|
+
'positions-changed': {
|
|
17
|
+
positions: readonly import('./model.js').ProcessPositionSnapshot[];
|
|
18
|
+
version: string | number;
|
|
19
|
+
};
|
|
20
|
+
'projection-changed': {
|
|
21
|
+
projection: ProcessProjection;
|
|
22
|
+
version: string | number;
|
|
23
|
+
checks: readonly ProcessCheck[];
|
|
24
|
+
};
|
|
25
|
+
'readable-projection-changed': {
|
|
26
|
+
projection: ProcessProjection;
|
|
27
|
+
version: string | number;
|
|
28
|
+
};
|
|
29
|
+
'selection-changed': {
|
|
30
|
+
selection?: readonly ProcessSelectionItem[];
|
|
31
|
+
box: ProcessBox | null;
|
|
32
|
+
boxes: readonly ProcessBox[];
|
|
33
|
+
path: NodePath | null;
|
|
34
|
+
} | {
|
|
35
|
+
selection?: readonly ProcessSelectionItem[];
|
|
36
|
+
box: null;
|
|
37
|
+
boxes: never[];
|
|
38
|
+
line: import('./model.js').ProcessLine | null;
|
|
39
|
+
path: null;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
5
42
|
/** Projects host documents without owning workflow schemas or persistence. */
|
|
6
43
|
export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends BaseElement {
|
|
7
44
|
static readonly tagName = "box-process-modeler";
|
|
@@ -16,6 +53,9 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
16
53
|
private showLastRunValue;
|
|
17
54
|
private selectedId;
|
|
18
55
|
private selectedLineId;
|
|
56
|
+
private selectedLineIds;
|
|
57
|
+
private selectedNoteIds;
|
|
58
|
+
private graphSelection;
|
|
19
59
|
private connecting;
|
|
20
60
|
private checks;
|
|
21
61
|
private renderer?;
|
|
@@ -23,6 +63,8 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
23
63
|
private inspected?;
|
|
24
64
|
private inspectedId?;
|
|
25
65
|
private inspectedControls;
|
|
66
|
+
private localEchoRevision;
|
|
67
|
+
private pendingLocalRename?;
|
|
26
68
|
private historyValue;
|
|
27
69
|
private viewport;
|
|
28
70
|
private pointers;
|
|
@@ -39,6 +81,11 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
39
81
|
private selectedIds;
|
|
40
82
|
private clipboard;
|
|
41
83
|
private clipboardSession;
|
|
84
|
+
private layoutEditSession;
|
|
85
|
+
private acceptanceNotifications;
|
|
86
|
+
private deferredNotifications;
|
|
87
|
+
private notify;
|
|
88
|
+
private flushAcceptanceNotifications;
|
|
42
89
|
private restoringBoxFocus;
|
|
43
90
|
private selectionToolbarKey;
|
|
44
91
|
private sectionSequence;
|
|
@@ -114,6 +161,10 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
114
161
|
}>;
|
|
115
162
|
load(document: D, options?: ProcessLoadOptions): void;
|
|
116
163
|
selectMany(ids: readonly string[]): void;
|
|
164
|
+
/** Detached mixed selection. Invalid and duplicate IDs are ignored by selectItems. */
|
|
165
|
+
get selection(): readonly ProcessSelectionItem[];
|
|
166
|
+
selectItems(items: readonly ProcessSelectionItem[]): void;
|
|
167
|
+
private clearMixedSelection;
|
|
117
168
|
get headingLevel(): number;
|
|
118
169
|
set headingLevel(value: number);
|
|
119
170
|
get disableConnections(): boolean;
|
|
@@ -158,6 +209,7 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
158
209
|
private editAcceptance;
|
|
159
210
|
undo(): void;
|
|
160
211
|
redo(): void;
|
|
212
|
+
private requestLayoutEdit;
|
|
161
213
|
private commitLayout;
|
|
162
214
|
move(id: string, x: number, y: number): void;
|
|
163
215
|
private emitPositions;
|
|
@@ -237,6 +289,8 @@ export declare class ProcessModeler<D = ProcessProjection, N = unknown> extends
|
|
|
237
289
|
private renderChecks;
|
|
238
290
|
private renderField;
|
|
239
291
|
private renderSelection;
|
|
292
|
+
private renderLocalVariables;
|
|
293
|
+
private requestLocalVariableEdit;
|
|
240
294
|
private renderSelectionToolbar;
|
|
241
295
|
private updateToolbar;
|
|
242
296
|
private paintViewport;
|