@emporix/process-diagram 2.0.0-beta.9 → 2.0.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/dist/App.d.ts.map +1 -1
- package/dist/components/ProcessDiagram.d.ts +12 -11
- package/dist/components/ProcessDiagram.d.ts.map +1 -1
- package/dist/components/common/AlertIcon.d.ts.map +1 -1
- package/dist/components/common/Line.d.ts +2 -1
- package/dist/components/common/Line.d.ts.map +1 -1
- package/dist/components/common/icons/ConditionIcon.d.ts.map +1 -1
- package/dist/components/common/icons/IteratorIcon.d.ts.map +1 -1
- package/dist/components/common/icons/LoopIcon.d.ts.map +1 -1
- package/dist/components/common/icons/MenuFilterIcon.d.ts.map +1 -1
- package/dist/components/common/icons.d.ts +1 -1
- package/dist/components/common/icons.d.ts.map +1 -1
- package/dist/components/common/menuTemplate.d.ts.map +1 -1
- package/dist/components/condition/Condition.d.ts +4 -1
- package/dist/components/condition/Condition.d.ts.map +1 -1
- package/dist/components/curve/Curve.d.ts +4 -1
- package/dist/components/curve/Curve.d.ts.map +1 -1
- package/dist/components/if-statement/IfStatement.d.ts +12 -3
- package/dist/components/if-statement/IfStatement.d.ts.map +1 -1
- package/dist/components/iterator/Iterator.d.ts +9 -10
- package/dist/components/iterator/Iterator.d.ts.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Separator.d.ts.map +1 -1
- package/dist/components/plus-button/PlusButton.d.ts +8 -6
- package/dist/components/plus-button/PlusButton.d.ts.map +1 -1
- package/dist/components/plus-button/PlusIcon.d.ts.map +1 -1
- package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts +14 -0
- package/dist/components/process-debugger-diagram/DebuggerIterator.d.ts.map +1 -0
- package/dist/components/process-debugger-diagram/DebuggerRow.d.ts +15 -0
- package/dist/components/process-debugger-diagram/DebuggerRow.d.ts.map +1 -0
- package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts +19 -0
- package/dist/components/process-debugger-diagram/DebuggerSteps.d.ts.map +1 -0
- package/dist/components/process-debugger-diagram/ProcessDebuggerContext.d.ts +10 -0
- package/dist/components/process-debugger-diagram/ProcessDebuggerContext.d.ts.map +1 -0
- package/dist/components/process-debugger-diagram/ProcessDebuggerDiagram.d.ts +18 -0
- package/dist/components/process-debugger-diagram/ProcessDebuggerDiagram.d.ts.map +1 -0
- package/dist/components/process-debugger-diagram/StepConnector.d.ts +10 -0
- package/dist/components/process-debugger-diagram/StepConnector.d.ts.map +1 -0
- package/dist/components/processDiagram.storyFixtures.d.ts +19 -0
- package/dist/components/processDiagram.storyFixtures.d.ts.map +1 -0
- package/dist/components/row/Row.d.ts +7 -9
- package/dist/components/row/Row.d.ts.map +1 -1
- package/dist/components/step/Step.d.ts +16 -6
- package/dist/components/step/Step.d.ts.map +1 -1
- package/dist/components/steps/Steps.d.ts +5 -8
- package/dist/components/steps/Steps.d.ts.map +1 -1
- package/dist/components/triggers/AddTriggerIcon.d.ts.map +1 -1
- package/dist/components/triggers/MultipleTriggersIcon.d.ts +3 -1
- package/dist/components/triggers/MultipleTriggersIcon.d.ts.map +1 -1
- package/dist/components/triggers/Trigger.d.ts +16 -5
- package/dist/components/triggers/Trigger.d.ts.map +1 -1
- package/dist/constants/colors.d.ts +23 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/fixtures/one.d.ts +4 -0
- package/dist/fixtures/one.d.ts.map +1 -0
- package/dist/helpers/debuggerConnector.helpers.d.ts +4 -0
- package/dist/helpers/debuggerConnector.helpers.d.ts.map +1 -0
- package/dist/helpers/debuggerStatus.helpers.d.ts +15 -0
- package/dist/helpers/debuggerStatus.helpers.d.ts.map +1 -0
- package/dist/helpers/diagramMenu.helpers.d.ts +5 -0
- package/dist/helpers/diagramMenu.helpers.d.ts.map +1 -0
- package/dist/helpers/finishedSequentialLine.helpers.d.ts +18 -0
- package/dist/helpers/finishedSequentialLine.helpers.d.ts.map +1 -0
- package/dist/helpers/processGraph.helpers.d.ts +8 -0
- package/dist/helpers/processGraph.helpers.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1936 -1059
- package/dist/index.mjs.map +1 -1
- package/dist/setupTests.d.ts +1 -1
- package/dist/setupTests.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +16 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/menu.d.ts +40 -0
- package/dist/types/menu.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/components/iterator/LoopBoxIcon.d.ts +0 -8
- package/dist/components/iterator/LoopBoxIcon.d.ts.map +0 -1
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAWA,OAAO,mBAAmB,CAAA;AAG1B,QAAA,MAAM,GAAG,+CA0aR,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { Process } from '../types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../types/menu';
|
|
3
3
|
export interface ProcessDiagramProps {
|
|
4
4
|
process: Process;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onDeleteTrigger: (id: string) => unknown;
|
|
11
|
-
onDeleteStep: (id: string) => unknown;
|
|
12
|
-
onUpdateFilter: (id: string) => unknown;
|
|
13
|
-
addMultipleTriggers: () => unknown;
|
|
5
|
+
/** All consumer-defined menu items shown across the diagram. */
|
|
6
|
+
menus?: DiagramMenus;
|
|
7
|
+
/** Single dispatcher invoked for any menu item or hub-icon click. */
|
|
8
|
+
onMenuAction?: DiagramMenuActionHandler;
|
|
9
|
+
/** Click on a step body / trigger / iterator / condition icon to select. */
|
|
14
10
|
onSelectStep: (id: string) => unknown;
|
|
11
|
+
/** actionId fired when the multi-trigger hub icon is clicked. */
|
|
12
|
+
hubActionId?: string;
|
|
13
|
+
/** actionId fired when a step's filter flag is clicked. */
|
|
14
|
+
filterFlagActionId?: string;
|
|
15
|
+
onResize?: () => void;
|
|
15
16
|
}
|
|
16
|
-
declare const ProcessDiagram: ({ process,
|
|
17
|
+
declare const ProcessDiagram: ({ process, menus, onMenuAction, onSelectStep, hubActionId, filterFlagActionId, onResize, }: Readonly<ProcessDiagramProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export default ProcessDiagram;
|
|
18
19
|
//# sourceMappingURL=ProcessDiagram.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessDiagram.d.ts","sourceRoot":"","sources":["../../src/components/ProcessDiagram.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGvC,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"ProcessDiagram.d.ts","sourceRoot":"","sources":["../../src/components/ProcessDiagram.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGvC,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,qEAAqE;IACrE,YAAY,CAAC,EAAE,wBAAwB,CAAA;IACvC,4EAA4E;IAC5E,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,QAAA,MAAM,cAAc,GAAI,4FAQrB,QAAQ,CAAC,mBAAmB,CAAC,4CAsC/B,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertIcon.d.ts","sourceRoot":"","sources":["../../../src/components/common/AlertIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlertIcon.d.ts","sourceRoot":"","sources":["../../../src/components/common/AlertIcon.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,SAAS,GAAI,WAA8B,cAAc,4CAsB9D,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/components/common/Line.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/components/common/Line.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI,GAAI,mBAGX,QAAQ,CAAC;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,4CAW3D,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/ConditionIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ConditionIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/ConditionIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6B/C,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IteratorIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/IteratorIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IteratorIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/IteratorIcon.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,YAAY,+CAqBjB,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/LoopIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoopIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/LoopIcon.tsx"],"names":[],"mappings":"AAEA,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,QAAQ,GAAI,2BAIf,aAAa,4CAmBf,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuFilterIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/MenuFilterIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"MenuFilterIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/MenuFilterIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,mBAAmB;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuBjD,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ConditionIcon, MenuFilterIcon } from './icons/index';
|
|
1
|
+
export { ConditionIcon, LoopIcon, MenuFilterIcon } from './icons/index';
|
|
2
2
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/common/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/common/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/common/menuTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGvC,eAAO,MAAM,kBAAkB,SACrB,MAAM,QAAQ,EAAE,SAAS;IAAE,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"menuTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/common/menuTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGvC,eAAO,MAAM,kBAAkB,SACrB,MAAM,QAAQ,EAAE,SAAS;IAAE,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CAAE,4CAgB5E,CAAA"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { StepStatus } from '../../types';
|
|
2
|
+
declare const Condition: ({ expression, style, status, debuggerMode, }: Readonly<{
|
|
2
3
|
expression: string;
|
|
3
4
|
style?: React.CSSProperties;
|
|
5
|
+
status?: StepStatus;
|
|
6
|
+
debuggerMode?: boolean;
|
|
4
7
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
export default Condition;
|
|
6
9
|
//# sourceMappingURL=Condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../src/components/condition/Condition.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,GAAI,
|
|
1
|
+
{"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../src/components/condition/Condition.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,QAAA,MAAM,SAAS,GAAI,8CAKhB,QAAQ,CAAC;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC,4CA8CD,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare const Curve: ({ width, height, }: Readonly<{
|
|
1
|
+
declare const Curve: ({ width, height, strokeColor, fromId, toId, }: Readonly<{
|
|
2
2
|
width: number;
|
|
3
3
|
height: number;
|
|
4
|
+
strokeColor?: string;
|
|
5
|
+
fromId?: string;
|
|
6
|
+
toId?: string;
|
|
4
7
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
export default Curve;
|
|
6
9
|
//# sourceMappingURL=Curve.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../../../src/components/curve/Curve.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../../../src/components/curve/Curve.tsx"],"names":[],"mappings":"AAoBA,QAAA,MAAM,KAAK,GAAI,+CAMZ,QAAQ,CAAC;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC,4CAiCD,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import type { StepStatus } from '../../types';
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenuContext, DiagramMenuEntry } from '../../types/menu';
|
|
1
3
|
export interface IfStatementProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
/** Menu items for the conditional gateway's three-dot menu. */
|
|
5
|
+
items?: DiagramMenuEntry[];
|
|
6
|
+
/** Context forwarded to onAction; typically `{ pathId }`. */
|
|
7
|
+
menuContext?: DiagramMenuContext;
|
|
8
|
+
onAction?: DiagramMenuActionHandler;
|
|
9
|
+
/** Click handler for the condition icon (acts as "select"). */
|
|
4
10
|
onSelect?: () => void;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
debuggerMode?: boolean;
|
|
13
|
+
status?: StepStatus;
|
|
5
14
|
}
|
|
6
|
-
declare const IfStatement: (
|
|
15
|
+
declare const IfStatement: (props: Readonly<IfStatementProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
16
|
export default IfStatement;
|
|
8
17
|
//# sourceMappingURL=IfStatement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IfStatement.d.ts","sourceRoot":"","sources":["../../../src/components/if-statement/IfStatement.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IfStatement.d.ts","sourceRoot":"","sources":["../../../src/components/if-statement/IfStatement.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,MAAM,WAAW,gBAAgB;IAC/B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC1B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,CAAC,gBAAgB,CAAC,4CA6ErD,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { Iterator as IteratorType } from '../../types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
3
3
|
export interface IteratorProps {
|
|
4
|
-
/** Iterator data: must include
|
|
5
|
-
value: Pick<IteratorType, '
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onUpdateFilter?: (id: string) => void;
|
|
4
|
+
/** Iterator data: must include id; limit is optional. */
|
|
5
|
+
value: Pick<IteratorType, 'id'> & Partial<Pick<IteratorType, 'limit' | 'steps' | 'condition' | 'status'>>;
|
|
6
|
+
/** Menus passed-through to inner steps and used for the iterator's own dot menu. */
|
|
7
|
+
menus?: DiagramMenus;
|
|
8
|
+
/** actionId fired when the filter flag on a nested step is clicked. */
|
|
9
|
+
filterFlagActionId?: string;
|
|
10
|
+
onAction?: DiagramMenuActionHandler;
|
|
12
11
|
onSelectStep?: (id: string) => void;
|
|
13
12
|
onResize?: () => void;
|
|
14
13
|
}
|
|
15
|
-
declare const IteratorComponent: ({ value,
|
|
14
|
+
declare const IteratorComponent: ({ value, menus, filterFlagActionId, onAction, onSelectStep, onResize, }: Readonly<IteratorProps>) => import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
export default IteratorComponent;
|
|
17
16
|
//# sourceMappingURL=Iterator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Iterator.d.ts","sourceRoot":"","sources":["../../../src/components/iterator/Iterator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Iterator.d.ts","sourceRoot":"","sources":["../../../src/components/iterator/Iterator.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EACV,wBAAwB,EAExB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAIzB,MAAM,WAAW,aAAa;IAC5B,yDAAyD;IACzD,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAA;IACzE,oFAAoF;IACpF,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,QAAA,MAAM,iBAAiB,GAAI,yEAOxB,QAAQ,CAAC,aAAa,CAAC,4CA0FzB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAItD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,cAAc,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;IAC9E,QAAQ,CAAC,EAAE,CACT,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;KAAE,KAChD,SAAS,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC5C,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC9C;AAED,UAAU,SAAS;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CACxC;AAkBD,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAItD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,cAAc,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;IAC9E,QAAQ,CAAC,EAAE,CACT,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;KAAE,KAChD,SAAS,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC5C,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;CAC9C;AAED,UAAU,SAAS;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;CACxC;AAkBD,QAAA,MAAM,IAAI,2EA6IR,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Separator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Separator.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,+CAWd,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DiagramMenuActionHandler, DiagramMenuEntry } from '../../types/menu';
|
|
2
2
|
export interface PlusButtonProps {
|
|
3
3
|
style?: React.CSSProperties;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
lineColor?: string;
|
|
5
|
+
/** Menu items shown when the plus icon is clicked. */
|
|
6
|
+
items?: DiagramMenuEntry[];
|
|
7
|
+
onAction?: DiagramMenuActionHandler;
|
|
8
|
+
/** Id of the neighbour step (used as anchor for the add operation). */
|
|
8
9
|
stepId?: string;
|
|
10
|
+
/** When > 0 the operation is 'append'; otherwise 'prepend'. */
|
|
9
11
|
index?: number;
|
|
10
12
|
pathId?: string;
|
|
11
13
|
}
|
|
12
|
-
declare const PlusButton: ({
|
|
14
|
+
declare const PlusButton: ({ items, onAction, lineColor, stepId, index, style, pathId, }: PlusButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default PlusButton;
|
|
14
16
|
//# sourceMappingURL=PlusButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlusButton.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlusButton.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,wBAAwB,EAExB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC1B,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,QAAA,MAAM,UAAU,GAAI,+DAQjB,eAAe,4CA+CjB,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusIcon.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ,+CAuBb,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Iterator as IteratorType } from '../../types';
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
3
|
+
export interface DebuggerIteratorProps {
|
|
4
|
+
value: Pick<IteratorType, 'id'> & Partial<Pick<IteratorType, 'limit' | 'steps' | 'condition' | 'status'>>;
|
|
5
|
+
previousId?: string;
|
|
6
|
+
nextId?: string;
|
|
7
|
+
menus?: DiagramMenus;
|
|
8
|
+
onAction?: DiagramMenuActionHandler;
|
|
9
|
+
onSelectStep?: (id: string) => void;
|
|
10
|
+
onResize?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const DebuggerIterator: ({ value, previousId, nextId, menus, onAction, onSelectStep, onResize, }: Readonly<DebuggerIteratorProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default DebuggerIterator;
|
|
14
|
+
//# sourceMappingURL=DebuggerIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebuggerIterator.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/DebuggerIterator.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAWzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAA;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,QAAA,MAAM,gBAAgB,GAAI,yEAQvB,QAAQ,CAAC,qBAAqB,CAAC,4CA6FjC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Path, Step } from '../../types';
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
3
|
+
interface Props {
|
|
4
|
+
items: Path[] | Step[];
|
|
5
|
+
pathId?: string;
|
|
6
|
+
previousId?: string;
|
|
7
|
+
nextId?: string;
|
|
8
|
+
menus?: DiagramMenus;
|
|
9
|
+
onAction?: DiagramMenuActionHandler;
|
|
10
|
+
onSelectStep: (id: string) => void;
|
|
11
|
+
onResize?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const DebuggerRow: (props: Readonly<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default DebuggerRow;
|
|
15
|
+
//# sourceMappingURL=DebuggerRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebuggerRow.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/DebuggerRow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAY,IAAI,EAAE,IAAI,EAAc,MAAM,aAAa,CAAA;AACnE,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAsBzB,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,4CA8T1C,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PropsWithClassName } from '../../helpers/props';
|
|
2
|
+
import type { Step } from '../../types';
|
|
3
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
4
|
+
interface Props extends PropsWithClassName {
|
|
5
|
+
steps: Step[];
|
|
6
|
+
centerY?: number;
|
|
7
|
+
previousId?: string;
|
|
8
|
+
nextId?: string;
|
|
9
|
+
menus?: DiagramMenus;
|
|
10
|
+
onAction?: DiagramMenuActionHandler;
|
|
11
|
+
onSelectStep: (id: string) => void;
|
|
12
|
+
onResize?: () => void;
|
|
13
|
+
isDescendent?: boolean;
|
|
14
|
+
pathId?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const STEP_ROW_HEIGHT = 68;
|
|
17
|
+
declare const DebuggerSteps: ({ pathId, steps, centerY, className, previousId, nextId, menus, onAction, onSelectStep, onResize, isDescendent, }: Readonly<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default DebuggerSteps;
|
|
19
|
+
//# sourceMappingURL=DebuggerSteps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebuggerSteps.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/DebuggerSteps.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D,OAAO,KAAK,EAAkC,IAAI,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAgBzB,UAAU,KAAM,SAAQ,kBAAkB;IACxC,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,eAAe,KAAK,CAAA;AAmBjC,QAAA,MAAM,aAAa,GAAI,mHAYpB,QAAQ,CAAC,KAAK,CAAC,4CAqMjB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Process } from '../../types';
|
|
2
|
+
import type { ProcessDebuggerLineColors } from '../../helpers/debuggerStatus.helpers';
|
|
3
|
+
type ProcessDebuggerContextValue = {
|
|
4
|
+
process: Process;
|
|
5
|
+
lineColors: ProcessDebuggerLineColors;
|
|
6
|
+
};
|
|
7
|
+
export declare const ProcessDebuggerProvider: import("react").Provider<ProcessDebuggerContextValue | null>;
|
|
8
|
+
export declare const useProcessDebuggerContext: () => ProcessDebuggerContextValue;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ProcessDebuggerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessDebuggerContext.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/ProcessDebuggerContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAErF,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAMD,eAAO,MAAM,uBAAuB,8DAAkC,CAAA;AAGtE,eAAO,MAAM,yBAAyB,QAAO,2BAQ5C,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Process, StepStatus } from '../../types';
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
3
|
+
export interface ProcessDebuggerDiagramProps {
|
|
4
|
+
process: Process;
|
|
5
|
+
/** Override stroke colors for specific step statuses (defaults from STEP_STATUS_COLORS). */
|
|
6
|
+
statusLineColors?: Partial<Record<StepStatus, string>>;
|
|
7
|
+
/** Line color when a segment has no status (default NAVY). */
|
|
8
|
+
neutralLineColor?: string;
|
|
9
|
+
/** Consumer-defined menu items (typically only `step` containing Check Scenario). */
|
|
10
|
+
menus?: DiagramMenus;
|
|
11
|
+
/** Dispatcher invoked for any menu item click. */
|
|
12
|
+
onMenuAction?: DiagramMenuActionHandler;
|
|
13
|
+
onResize?: () => void;
|
|
14
|
+
onSelectStep: (id: string) => unknown;
|
|
15
|
+
}
|
|
16
|
+
declare const ProcessDebuggerDiagram: ({ process, statusLineColors, neutralLineColor, menus, onMenuAction, onResize, onSelectStep, }: Readonly<ProcessDebuggerDiagramProps>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default ProcessDebuggerDiagram;
|
|
18
|
+
//# sourceMappingURL=ProcessDebuggerDiagram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessDebuggerDiagram.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/ProcessDebuggerDiagram.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAUzB,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAA;IAChB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAA;IACtD,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qFAAqF;IACrF,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,kDAAkD;IAClD,YAAY,CAAC,EAAE,wBAAwB,CAAA;IACvC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;CACtC;AA4CD,QAAA,MAAM,sBAAsB,GAAI,+FAQ7B,QAAQ,CAAC,2BAA2B,CAAC,4CA8CvC,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export type StepConnectorProps = {
|
|
3
|
+
lineColor: string;
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
fromId?: string;
|
|
6
|
+
toId?: string;
|
|
7
|
+
};
|
|
8
|
+
/** Read-only horizontal link matching debugger-mode PlusButton layout (no menu, no icon). */
|
|
9
|
+
export declare const StepConnector: ({ lineColor, style, fromId, toId, }: Readonly<StepConnectorProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=StepConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepConnector.d.ts","sourceRoot":"","sources":["../../../src/components/process-debugger-diagram/StepConnector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,aAAa,GAAI,qCAK3B,QAAQ,CAAC,kBAAkB,CAAC,4CAsB9B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Process } from '../types';
|
|
2
|
+
export declare const oneTriggerMultipleSteps: Process;
|
|
3
|
+
export declare const multipleTriggersMultipleSteps: Process;
|
|
4
|
+
export declare const multipleTriggersOneStep: Process;
|
|
5
|
+
export declare const oneTriggerOneStep: Process;
|
|
6
|
+
export declare const oneTriggerNoSteps: Process;
|
|
7
|
+
/** One trigger and a linear sequence plus a 3-way branch to exercise all StepStatus line/chip colors in debugger mode. */
|
|
8
|
+
export declare const mixedStepStatusesProcess: Process;
|
|
9
|
+
export declare const multipleTriggersNoSteps: Process;
|
|
10
|
+
export declare const multipleTriggersStepsWithPaths: Process;
|
|
11
|
+
export declare const oneTriggerWithIteratorEmpty: Process;
|
|
12
|
+
export declare const oneTriggerWithIteratorAndSteps: Process;
|
|
13
|
+
export declare const oneTriggerIteratorThenStepThenIterator: Process;
|
|
14
|
+
export declare const purchaseOrderProcess: Process;
|
|
15
|
+
export declare const multipleTriggersNestedPaths: Process;
|
|
16
|
+
export declare const multipleTriggersComplexNestedPaths: Process;
|
|
17
|
+
export declare const oneTriggerSevenPaths: Process;
|
|
18
|
+
export declare const complexProcess: Process;
|
|
19
|
+
//# sourceMappingURL=processDiagram.storyFixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processDiagram.storyFixtures.d.ts","sourceRoot":"","sources":["../../src/components/processDiagram.storyFixtures.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAKvC,eAAO,MAAM,uBAAuB,EAAE,OAgDrC,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,OAW3C,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,OAQrC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAO/B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAK/B,CAAA;AAED,0HAA0H;AAC1H,eAAO,MAAM,wBAAwB,EAAE,OAqHtC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,OAMrC,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,OAyB5C,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,OAazC,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,OAwB5C,CAAA;AAED,eAAO,MAAM,sCAAsC,EAAE,OA+BpD,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,OA4LlC,CAAA;AACD,eAAO,MAAM,2BAA2B,EAAE,OA8GzC,CAAA;AACD,eAAO,MAAM,kCAAkC,EAAE,OA0QhD,CAAA;AACD,eAAO,MAAM,oBAAoB,EAAE,OA8BlC,CAAA;AACD,eAAO,MAAM,cAAc,EAAE,OA4Q5B,CAAA"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import type { Path, Step } from '../../types';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
3
|
+
interface Props {
|
|
4
4
|
items: Path[] | Step[];
|
|
5
5
|
pathId?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onAddLoop?: (stepId?: string, pathId?: string, operation?: AddStepOperation) => void;
|
|
10
|
-
onDeleteStep?: (id: string) => void;
|
|
11
|
-
onUpdateFilter: (id: string) => void;
|
|
6
|
+
menus?: DiagramMenus;
|
|
7
|
+
filterFlagActionId?: string;
|
|
8
|
+
onAction?: DiagramMenuActionHandler;
|
|
12
9
|
onSelectStep: (id: string) => void;
|
|
13
10
|
onResize?: () => void;
|
|
14
|
-
}
|
|
11
|
+
}
|
|
12
|
+
declare const Row: (props: Readonly<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export default Row;
|
|
16
14
|
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/components/row/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/components/row/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAM7C,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAKzB,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAID,QAAA,MAAM,GAAG,GAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,4CAoMlC,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { PropsWithClassName } from '../../helpers/props';
|
|
3
|
-
import {
|
|
3
|
+
import type { StepStatus } from '../../types';
|
|
4
|
+
import type { DiagramMenuActionHandler, DiagramMenuContext, DiagramMenuEntry } from '../../types/menu';
|
|
4
5
|
export interface Props extends PropsWithClassName {
|
|
5
|
-
|
|
6
|
-
idx: number;
|
|
6
|
+
id: string;
|
|
7
7
|
isSet?: boolean;
|
|
8
8
|
isSelected?: boolean;
|
|
9
9
|
isInvalid?: boolean;
|
|
10
10
|
isFilter?: boolean;
|
|
11
|
+
debuggerMode?: boolean;
|
|
12
|
+
status?: StepStatus;
|
|
11
13
|
title: string;
|
|
12
14
|
subtitle?: string;
|
|
13
15
|
icon: ReactNode;
|
|
14
|
-
|
|
16
|
+
/** Menu items shown in the three-dot menu. When empty, the menu is hidden. */
|
|
17
|
+
items?: DiagramMenuEntry[];
|
|
18
|
+
/** Context forwarded to onAction (must at least include stepId for step actions). */
|
|
19
|
+
menuContext?: DiagramMenuContext;
|
|
20
|
+
/** Dispatcher invoked when a menu item or the filter flag is clicked. */
|
|
21
|
+
onAction?: DiagramMenuActionHandler;
|
|
22
|
+
/**
|
|
23
|
+
* actionId emitted when the filter flag/badge is clicked. When undefined, the
|
|
24
|
+
* flag is rendered read-only.
|
|
25
|
+
*/
|
|
26
|
+
filterFlagActionId?: string;
|
|
15
27
|
onSelectStep: (id: string) => void;
|
|
16
|
-
onDeleteStep?: (id: string) => void;
|
|
17
|
-
onUpdateFilter?: (id: string) => void;
|
|
18
28
|
}
|
|
19
29
|
declare const Step: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
30
|
export default Step;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/step/Step.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/step/Step.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAO7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAK7C,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,MAAM,WAAW,KAAM,SAAQ,kBAAkB;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,CAAA;IACf,8EAA8E;IAC9E,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC1B,qFAAqF;IACrF,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,yEAAyE;IACzE,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAED,QAAA,MAAM,IAAI,GAAI,OAAO,KAAK,4CAwJzB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import type { PropsWithClassName } from '../../helpers/props';
|
|
2
2
|
import type { Step } from '../../types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { DiagramMenuActionHandler, DiagramMenus } from '../../types/menu';
|
|
4
4
|
interface Props extends PropsWithClassName {
|
|
5
5
|
steps: Step[];
|
|
6
6
|
centerY?: number;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onAddTrigger?: (id?: string, pathId?: string, operation?: AddStepType) => void;
|
|
11
|
-
onAddCondition: (stepId?: string, pathId?: string, operation?: AddStepOperation) => void;
|
|
12
|
-
onAddLoop?: (stepId?: string, pathId?: string, operation?: AddStepOperation) => void;
|
|
7
|
+
menus?: DiagramMenus;
|
|
8
|
+
filterFlagActionId?: string;
|
|
9
|
+
onAction?: DiagramMenuActionHandler;
|
|
13
10
|
onSelectStep: (id: string) => void;
|
|
14
11
|
onResize?: () => void;
|
|
15
12
|
isDescendent?: boolean;
|
|
16
13
|
pathId?: string;
|
|
17
14
|
}
|
|
18
15
|
export declare const STEP_ROW_HEIGHT = 68;
|
|
19
|
-
declare const Steps: ({ pathId, steps, centerY, className,
|
|
16
|
+
declare const Steps: ({ pathId, steps, centerY, className, menus, filterFlagActionId, onAction, onSelectStep, onResize, isDescendent, }: Readonly<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
20
17
|
export default Steps;
|
|
21
18
|
//# sourceMappingURL=Steps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/steps/Steps.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D,OAAO,KAAK,EAA4B,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/steps/Steps.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D,OAAO,KAAK,EAA4B,IAAI,EAAE,MAAM,aAAa,CAAA;AAIjE,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAEzB,UAAU,KAAM,SAAQ,kBAAkB;IACxC,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,eAAe,KAAK,CAAA;AAGjC,QAAA,MAAM,KAAK,GAAI,mHAWZ,QAAQ,CAAC,KAAK,CAAC,4CAmLjB,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddTriggerIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/AddTriggerIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddTriggerIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/AddTriggerIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc,+CAenB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
declare const MultipleTriggersIcon: (
|
|
1
|
+
declare const MultipleTriggersIcon: ({ color, }: Readonly<{
|
|
2
|
+
color?: string;
|
|
3
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
2
4
|
export default MultipleTriggersIcon;
|
|
3
5
|
//# sourceMappingURL=MultipleTriggersIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleTriggersIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/MultipleTriggersIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultipleTriggersIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/MultipleTriggersIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB,GAAI,YAE3B,QAAQ,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,4CAW9B,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import type { Step } from '../../types';
|
|
1
|
+
import type { Step, StepStatus } from '../../types';
|
|
2
|
+
import type { DiagramMenuActionHandler, DiagramMenuEntry } from '../../types/menu';
|
|
2
3
|
import type { PropsWithClassName } from '../../helpers/props';
|
|
3
4
|
export interface TriggerProps extends PropsWithClassName {
|
|
4
5
|
steps: Step[];
|
|
5
6
|
title?: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
/** Menu items for each trigger step's three-dot menu. */
|
|
8
|
+
items?: DiagramMenuEntry[];
|
|
9
|
+
/** actionId fired when the multi-trigger hub icon is clicked. */
|
|
10
|
+
hubActionId?: string;
|
|
11
|
+
/** actionId fired when a trigger step's filter flag is clicked. */
|
|
12
|
+
filterFlagActionId?: string;
|
|
13
|
+
/** Dispatcher for menu actions and hub icon click. */
|
|
14
|
+
onAction?: DiagramMenuActionHandler;
|
|
8
15
|
onSelectStep: (id: string) => unknown;
|
|
9
|
-
onUpdateFilter?: (id: string) => unknown;
|
|
10
16
|
onCenterYUpdate?: (centralNodeY: number) => void;
|
|
17
|
+
debuggerMode?: boolean;
|
|
18
|
+
/** When set, SVG trigger curves use this color instead of status-based debugger stroke colors. */
|
|
19
|
+
resolveCurveStrokeColor?: (status: StepStatus | undefined) => string;
|
|
20
|
+
/** Status of the first process step after the trigger hub (used to decide hub finished styling). */
|
|
21
|
+
nextStepStatus?: StepStatus;
|
|
11
22
|
}
|
|
12
|
-
declare const Trigger: ({ steps, title, className,
|
|
23
|
+
declare const Trigger: ({ steps, title, className, items, hubActionId, filterFlagActionId, onAction, onSelectStep, onCenterYUpdate, debuggerMode, resolveCurveStrokeColor, nextStepStatus, }: Readonly<TriggerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
24
|
export default Trigger;
|
|
14
25
|
//# sourceMappingURL=Trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/Trigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/Trigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EACV,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAI7D,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yDAAyD;IACzD,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC1B,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,wBAAwB,CAAA;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,kGAAkG;IAClG,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,KAAK,MAAM,CAAA;IACpE,oGAAoG;IACpG,cAAc,CAAC,EAAE,UAAU,CAAA;CAC5B;AAaD,QAAA,MAAM,OAAO,GAAI,sKAad,QAAQ,CAAC,YAAY,CAAC,4CAsQxB,CAAA;AAED,eAAe,OAAO,CAAA"}
|