@emporix/process-diagram 1.0.2 → 1.0.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.
Files changed (61) hide show
  1. package/dist/App.d.ts +4 -0
  2. package/dist/App.d.ts.map +1 -0
  3. package/dist/Condition.d.ts +6 -0
  4. package/dist/Condition.d.ts.map +1 -0
  5. package/dist/Curve.d.ts +6 -0
  6. package/dist/Curve.d.ts.map +1 -0
  7. package/dist/Item.d.ts +7 -0
  8. package/dist/Item.d.ts.map +1 -0
  9. package/dist/Items.d.ts +6 -0
  10. package/dist/Items.d.ts.map +1 -0
  11. package/dist/Row.d.ts +6 -0
  12. package/dist/Row.d.ts.map +1 -0
  13. package/dist/Steps.d.ts +13 -0
  14. package/dist/Steps.d.ts.map +1 -0
  15. package/dist/components/Menu/Menu.d.ts +28 -0
  16. package/dist/components/Menu/Menu.d.ts.map +1 -0
  17. package/dist/components/Menu/Separator.d.ts +3 -0
  18. package/dist/components/Menu/Separator.d.ts.map +1 -0
  19. package/dist/components/Menu/index.d.ts +3 -0
  20. package/dist/components/Menu/index.d.ts.map +1 -0
  21. package/dist/components/ProcessDiagram.d.ts +15 -0
  22. package/dist/components/ProcessDiagram.d.ts.map +1 -0
  23. package/dist/components/common/AlertIcon.d.ts +6 -0
  24. package/dist/components/common/AlertIcon.d.ts.map +1 -0
  25. package/dist/components/common/Line.d.ts +5 -0
  26. package/dist/components/common/Line.d.ts.map +1 -0
  27. package/dist/components/common/icons/MenuFilterIcon.d.ts +9 -0
  28. package/dist/components/common/icons/MenuFilterIcon.d.ts.map +1 -0
  29. package/dist/components/common/icons/index.d.ts +2 -0
  30. package/dist/components/common/icons/index.d.ts.map +1 -0
  31. package/dist/components/common/icons.d.ts +2 -0
  32. package/dist/components/common/icons.d.ts.map +1 -0
  33. package/dist/components/common/menuTemplate.d.ts +6 -0
  34. package/dist/components/common/menuTemplate.d.ts.map +1 -0
  35. package/dist/components/plus-button/PlusButton.d.ts +9 -0
  36. package/dist/components/plus-button/PlusButton.d.ts.map +1 -0
  37. package/dist/components/plus-button/PlusIcon.d.ts +3 -0
  38. package/dist/components/plus-button/PlusIcon.d.ts.map +1 -0
  39. package/dist/components/step/Step.d.ts +20 -0
  40. package/dist/components/step/Step.d.ts.map +1 -0
  41. package/dist/components/triggers/AddTriggerIcon.d.ts +3 -0
  42. package/dist/components/triggers/AddTriggerIcon.d.ts.map +1 -0
  43. package/dist/components/triggers/IfStatement.d.ts +5 -0
  44. package/dist/components/triggers/IfStatement.d.ts.map +1 -0
  45. package/dist/components/triggers/MultipleTriggersIcon.d.ts +3 -0
  46. package/dist/components/triggers/MultipleTriggersIcon.d.ts.map +1 -0
  47. package/dist/components/triggers/Trigger.d.ts +13 -0
  48. package/dist/components/triggers/Trigger.d.ts.map +1 -0
  49. package/dist/context/MenuProvider.context.d.ts +15 -0
  50. package/dist/context/MenuProvider.context.d.ts.map +1 -0
  51. package/dist/helpers/props.d.ts +4 -0
  52. package/dist/helpers/props.d.ts.map +1 -0
  53. package/dist/index.d.ts +9 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/main.d.ts +2 -0
  56. package/dist/main.d.ts.map +1 -0
  57. package/dist/setupTests.d.ts +2 -0
  58. package/dist/setupTests.d.ts.map +1 -0
  59. package/dist/utils.d.ts +16 -0
  60. package/dist/utils.d.ts.map +1 -0
  61. package/package.json +1 -1
package/dist/App.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './App.module.scss';
2
+ declare function App(): import("react/jsx-runtime").JSX.Element;
3
+ export default App;
4
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,CAAA;AAwD1B,iBAAS,GAAG,4CAwNX;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,6 @@
1
+ declare const Condition: ({ expression, style, }: Readonly<{
2
+ expression: string;
3
+ style?: React.CSSProperties;
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
+ export default Condition;
6
+ //# sourceMappingURL=Condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../src/Condition.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,GAAI,wBAGhB,QAAQ,CAAC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAAE,CAAC,4CA0B/D,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ declare const Curve: ({ width, height, }: Readonly<{
2
+ width: number;
3
+ height: number;
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
+ export default Curve;
6
+ //# sourceMappingURL=Curve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../src/Curve.tsx"],"names":[],"mappings":"AAkBA,QAAA,MAAM,KAAK,GAAI,oBAGZ,QAAQ,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,4CAyB7C,CAAA;AAED,eAAe,KAAK,CAAA"}
package/dist/Item.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ declare const Item: ({ title, className, style, }: Readonly<{
2
+ title: string;
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }>) => import("react/jsx-runtime").JSX.Element;
6
+ export default Item;
7
+ //# sourceMappingURL=Item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../src/Item.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI,GAAI,8BAIX,QAAQ,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAAE,CAAC,4CAE9E,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Step } from './types';
2
+ declare const Items: ({ items }: Readonly<{
3
+ items: Step[];
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
+ export default Items;
6
+ //# sourceMappingURL=Items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../src/Items.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAGnC,QAAA,MAAM,KAAK,GAAI,WAAW,QAAQ,CAAC;IAAE,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,4CAuBpD,CAAA;AAED,eAAe,KAAK,CAAA"}
package/dist/Row.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { Path, Step } from './types';
2
+ declare const Row: ({ items }: Readonly<{
3
+ items: Path[] | Step[];
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
+ export default Row;
6
+ //# sourceMappingURL=Row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../src/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAKzC,QAAA,MAAM,GAAG,GAAI,WAAW,QAAQ,CAAC;IAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAA;CAAE,CAAC,4CA0H3D,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { PropsWithClassName } from './helpers/props';
2
+ import type { Step } from './types';
3
+ interface Props extends PropsWithClassName {
4
+ steps: Step[];
5
+ onDeleteStep?: (id: string) => void;
6
+ onUpdateFilter?: (id: string) => void;
7
+ onAddStep?: (index: number) => void;
8
+ onAddTrigger?: (index: number) => void;
9
+ onSelectStep: (id: string) => void;
10
+ }
11
+ declare const Steps: ({ steps, className, onDeleteStep, onUpdateFilter, onAddStep, onAddTrigger, onSelectStep, }: Readonly<Props>) => import("react/jsx-runtime").JSX.Element;
12
+ export default Steps;
13
+ //# sourceMappingURL=Steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../src/Steps.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC,UAAU,KAAM,SAAQ,kBAAkB;IACxC,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAED,QAAA,MAAM,KAAK,GAAI,4FAQZ,QAAQ,CAAC,KAAK,CAAC,4CAqDjB,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import type { ReactNode, SyntheticEvent } from 'react';
3
+ export interface MenuItem {
4
+ label: string;
5
+ icon?: ReactNode;
6
+ command?: (event?: {
7
+ originalEvent?: SyntheticEvent;
8
+ item: MenuItem;
9
+ }) => void;
10
+ template?: (item: MenuItem, options: {
11
+ onClick: (e: React.MouseEvent) => void;
12
+ }) => ReactNode;
13
+ disabled?: boolean;
14
+ }
15
+ export interface MenuRef {
16
+ show: (event: React.SyntheticEvent) => void;
17
+ hide: (event?: React.SyntheticEvent) => void;
18
+ toggle: (event: React.SyntheticEvent) => void;
19
+ }
20
+ interface MenuProps {
21
+ model: MenuItem[];
22
+ popup?: boolean;
23
+ onHide?: () => void;
24
+ onClick?: (e: React.MouseEvent) => void;
25
+ }
26
+ declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuRef>>;
27
+ export default Menu;
28
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +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,2EAoIR,CAAA;AAEF,eAAe,IAAI,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const Separator: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Separator;
3
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Separator.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,+CAWd,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { default as Menu } from './Menu';
2
+ export type { MenuItem, MenuRef } from './Menu';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { Process } from '../types';
2
+ interface ProcessDiagramProps {
3
+ process: Process;
4
+ onAddTrigger: (index: number) => unknown;
5
+ onAddStep: (index: number) => unknown;
6
+ onEditTrigger: (id: string) => unknown;
7
+ onDeleteTrigger: (id: string) => unknown;
8
+ onDeleteStep: (id: string) => unknown;
9
+ onUpdateFilter: (id: string) => unknown;
10
+ addMultipleTriggers: () => unknown;
11
+ onSelectStep: (id: string) => unknown;
12
+ }
13
+ declare const ProcessDiagram: ({ process, onAddTrigger, addMultipleTriggers, onAddStep, onEditTrigger, onDeleteTrigger, onDeleteStep, onUpdateFilter, onSelectStep }: Readonly<ProcessDiagramProps>) => import("react/jsx-runtime").JSX.Element;
14
+ export default ProcessDiagram;
15
+ //# sourceMappingURL=ProcessDiagram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProcessDiagram.d.ts","sourceRoot":"","sources":["../../src/components/ProcessDiagram.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAIvC,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACtC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACxC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACvC,mBAAmB,EAAE,MAAM,OAAO,CAAA;IAClC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;CACtC;AAED,QAAA,MAAM,cAAc,GAAI,uIAAuI,QAAQ,CAAC,mBAAmB,CAAC,4CAiB3L,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ interface AlertIconProps {
2
+ color?: string;
3
+ }
4
+ declare const AlertIcon: ({ color }: AlertIconProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default AlertIcon;
6
+ //# sourceMappingURL=AlertIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertIcon.d.ts","sourceRoot":"","sources":["../../../src/components/common/AlertIcon.tsx"],"names":[],"mappings":"AACA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,SAAS,GAAI,WAAuB,cAAc,4CAsBvD,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,5 @@
1
+ declare const Line: ({ style }: Readonly<{
2
+ style?: React.CSSProperties;
3
+ }>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Line;
5
+ //# sourceMappingURL=Line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/components/common/Line.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,GAAI,WAAW,QAAQ,CAAC;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAAE,CAAC,4CAWjE,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface MenuFilterIconProps {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ }
7
+ declare const MenuFilterIcon: React.FC<MenuFilterIconProps>;
8
+ export default MenuFilterIcon;
9
+ //# sourceMappingURL=MenuFilterIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuFilterIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/MenuFilterIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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"}
@@ -0,0 +1,2 @@
1
+ export { default as MenuFilterIcon } from './MenuFilterIcon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { MenuFilterIcon } from './icons/index';
2
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/common/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { MenuItem } from '../Menu';
3
+ export declare const createMenuTemplate: () => (item: MenuItem, options: {
4
+ onClick: (e: React.MouseEvent) => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=menuTemplate.d.ts.map
@@ -0,0 +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,4CAW5E,CAAA"}
@@ -0,0 +1,9 @@
1
+ interface PlusButtonProps {
2
+ style?: React.CSSProperties;
3
+ onAddStep?: (index: number) => void;
4
+ onAddTrigger?: (index: number) => void;
5
+ index?: number;
6
+ }
7
+ declare const PlusButton: ({ style, onAddStep, onAddTrigger, index }: PlusButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default PlusButton;
9
+ //# sourceMappingURL=PlusButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlusButton.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusButton.tsx"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,UAAU,GAAI,2CAA+C,eAAe,4CAiDjF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const PlusIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PlusIcon;
3
+ //# sourceMappingURL=PlusIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/plus-button/PlusIcon.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,QAAQ,+CAuBb,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { PropsWithClassName } from '../../helpers/props';
3
+ import { type MenuItem } from '../Menu';
4
+ interface Props extends PropsWithClassName {
5
+ idx: number;
6
+ isSet?: boolean;
7
+ isSelected?: boolean;
8
+ isInvalid?: boolean;
9
+ isFilter?: boolean;
10
+ title: string;
11
+ subtitle?: string;
12
+ icon: ReactNode;
13
+ contextMenuItems?: MenuItem[];
14
+ onClick: () => unknown;
15
+ onDeleteStep?: (idx: number) => void;
16
+ onUpdateFilter?: (idx: number) => void;
17
+ }
18
+ declare const Step: (props: Props) => import("react/jsx-runtime").JSX.Element;
19
+ export default Step;
20
+ //# sourceMappingURL=Step.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/step/Step.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG7D,OAAO,EAAQ,KAAK,QAAQ,EAAgB,MAAM,SAAS,CAAA;AAM3D,UAAU,KAAM,SAAQ,kBAAkB;IACxC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,CAAA;IACf,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAA;IAC7B,OAAO,EAAE,MAAM,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAED,QAAA,MAAM,IAAI,GAAI,OAAO,KAAK,4CA8IzB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const AddTriggerIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AddTriggerIcon;
3
+ //# sourceMappingURL=AddTriggerIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddTriggerIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/AddTriggerIcon.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,+CAenB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,5 @@
1
+ declare const IfStatement: ({ expression }: Readonly<{
2
+ expression: string;
3
+ }>) => import("react/jsx-runtime").JSX.Element;
4
+ export default IfStatement;
5
+ //# sourceMappingURL=IfStatement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IfStatement.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/IfStatement.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW,GAAI,gBAAgB,QAAQ,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,4CAgBpE,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const MultipleTriggersIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default MultipleTriggersIcon;
3
+ //# sourceMappingURL=MultipleTriggersIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipleTriggersIcon.d.ts","sourceRoot":"","sources":["../../../src/components/triggers/MultipleTriggersIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB,+CAQzB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { Step } from '../../types';
2
+ import type { PropsWithClassName } from '../../helpers/props';
3
+ interface TriggerProps extends PropsWithClassName {
4
+ steps: Step[];
5
+ title?: string;
6
+ onDeleteTrigger?: (id: string) => unknown;
7
+ onAddTrigger?: () => unknown;
8
+ onEditTrigger?: (id: string) => unknown;
9
+ onSelectStep?: (id: string) => unknown;
10
+ }
11
+ declare const Trigger: ({ steps, title, className, onDeleteTrigger, onAddTrigger, onSelectStep, }: Readonly<TriggerProps>) => import("react/jsx-runtime").JSX.Element;
12
+ export default Trigger;
13
+ //# sourceMappingURL=Trigger.d.ts.map
@@ -0,0 +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;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D,UAAU,YAAa,SAAQ,kBAAkB;IAC/C,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACzC,YAAY,CAAC,EAAE,MAAM,OAAO,CAAA;IAC5B,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACvC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;CACvC;AAaD,QAAA,MAAM,OAAO,GAAI,2EAOd,QAAQ,CAAC,YAAY,CAAC,4CAmPxB,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { MenuRef } from '../components/Menu';
4
+ interface MenuProviderContextType {
5
+ openMenus: React.RefObject<MenuRef | null>[];
6
+ openMenu: (menuRef: React.RefObject<MenuRef | null>, event: React.SyntheticEvent) => void;
7
+ closeMenu: (menuRef: React.RefObject<MenuRef | null>) => void;
8
+ }
9
+ interface MenuProviderProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare const MenuProvider: ({ children }: MenuProviderProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const useMenuProvider: () => MenuProviderContextType;
14
+ export { useMenuProvider };
15
+ //# sourceMappingURL=MenuProvider.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuProvider.context.d.ts","sourceRoot":"","sources":["../../src/context/MenuProvider.context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoE,MAAM,OAAO,CAAA;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,UAAU,uBAAuB;IAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAA;IAC5C,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IACzF,SAAS,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,IAAI,CAAA;CAC9D;AAMD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,cAAc,iBAAiB,4CAuC3D,CAAA;AAED,QAAA,MAAM,eAAe,QAAO,uBAM3B,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface PropsWithClassName {
2
+ className?: string;
3
+ }
4
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/helpers/props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,9 @@
1
+ import './index.css';
2
+ export { default as Trigger } from './components/triggers/Trigger';
3
+ export { default as ProcessStep } from './components/step/Step';
4
+ export { default as ProcessDiagram } from './components/ProcessDiagram';
5
+ export { default as Menu } from './components/Menu/Menu';
6
+ export { MenuProvider, useMenuProvider } from './context/MenuProvider.context';
7
+ export type { MenuItem, MenuRef } from './components/Menu/Menu';
8
+ export type { Step, Path, Process, Trigger as TriggerType } from './types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAC9E,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAC/D,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=setupTests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../src/setupTests.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { Step } from './types';
2
+ /**
3
+ * Recursively counts all descendants of a step
4
+ * - For all leaves: count all direct children
5
+ * - For 2-level nesting: count leaf direct children + grandchildren
6
+ * - For 3+ level deep nesting: count only first-level grandchildren
7
+ */
8
+ export declare function countDescendants(step: Step): number;
9
+ /**
10
+ * Finds a step by title and calculates the number of its descendants
11
+ * @param title - The title of the step to find
12
+ * @param steps - The array of steps to search in
13
+ * @returns The number of descendants, or -1 if the step is not found
14
+ */
15
+ export declare function getDescendantCount(title: string, steps: Step[]): number;
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAiGnD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAevE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emporix/process-diagram",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "description": "Process diagram library",
6
6
  "repository": {