@5minds/processcube_app_sdk 7.0.0-feature-7b919e-md8tab3m → 7.0.0-feature-2aad08-mdfodevl
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/build/client/components/BPMNHeatmap.css +1 -0
- package/build/client/components/BPMNViewer.d.ts +3 -0
- package/build/client/components/DiagramDocumentationInspector.d.ts +7 -0
- package/build/client/components/HeatmapInspector.d.ts +15 -0
- package/build/client/components/ProcessModelInspector.d.ts +12 -0
- package/build/client/index.cjs +15 -15
- package/build/client/index.css +1 -1
- package/build/client/index.d.ts +1 -0
- package/build/client/index.mjs +12 -12
- package/build/client/services/HeatmapService.d.ts +58 -0
- package/build/client/services/ProcessCostsService.d.ts +38 -0
- package/build/client/services/RuntimeService.d.ts +15 -0
- package/build/client/services/index.d.ts +3 -0
- package/build/client/utils/calculations.d.ts +4 -0
- package/build/client/utils/formatInstances.d.ts +1 -0
- package/build/common/types/HeatmapTypes.d.ts +10 -0
- package/build/common/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flow-shadow{filter:drop-shadow(0 0 10px rgb(128,171,188)) drop-shadow(0 0 10px rgb(128,171,188)) drop-shadow(0 0 10px rgb(128,171,188))}.heatmap-critical{filter:drop-shadow(0 0 2px rgb(255,0,0)) drop-shadow(0 0 4px rgb(255,0,0)) drop-shadow(0 0 6px rgb(255,0,0)) drop-shadow(0 0 14px rgb(255,0,0))}.heatmap-warning{filter:drop-shadow(0 0 2px rgb(255,220,0)) drop-shadow(0 0 4px rgb(255,220,0)) drop-shadow(0 0 6px rgb(255,220,0)) drop-shadow(0 0 10px rgb(255,220,0))}.heatmap-stable{filter:drop-shadow(0 0 4px rgb(50,205,50)) drop-shadow(0 0 6px rgb(50,205,50))}
|
|
@@ -3,6 +3,7 @@ import type Overlays from 'diagram-js/lib/features/overlays/Overlays';
|
|
|
3
3
|
import type { ElementLike } from 'diagram-js/lib/model/Types';
|
|
4
4
|
import { ForwardedRef } from 'react';
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import './BPMNHeatmap.css';
|
|
6
7
|
export type BPMNViewerProps = {
|
|
7
8
|
xml: string;
|
|
8
9
|
className?: string;
|
|
@@ -16,6 +17,8 @@ export type BPMNViewerFunctions = {
|
|
|
16
17
|
addMarker(elementId: string, className: string): void;
|
|
17
18
|
removeMarker(elementId: string, className: string): void;
|
|
18
19
|
hasMarker(elementId: string, className: string): boolean | undefined;
|
|
20
|
+
showHeatmap(data: Record<string, string>): void;
|
|
21
|
+
clearHeatmap(data: string[]): void;
|
|
19
22
|
};
|
|
20
23
|
export declare const BPMNViewer: React.ForwardRefExoticComponent<BPMNViewerProps & React.RefAttributes<BPMNViewerFunctions>>;
|
|
21
24
|
export type BPMNViewerNextJSProps = BPMNViewerProps & {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React, { ForwardedRef } from 'react';
|
|
2
|
+
import { HeatmapService } from '../services';
|
|
3
|
+
import { RuntimeService } from '../services';
|
|
2
4
|
import { BPMNViewerFunctions } from './BPMNViewer';
|
|
3
5
|
export type DiagramDocumentationInspectorRef = {
|
|
4
6
|
bpmnViewerRef: BPMNViewerFunctions & {
|
|
@@ -8,6 +10,11 @@ export type DiagramDocumentationInspectorRef = {
|
|
|
8
10
|
type DiagramDocumentationInspectorProps = {
|
|
9
11
|
xml: string;
|
|
10
12
|
setSelectedElementIds?: (elementIds: string[]) => void;
|
|
13
|
+
showHeatmap?: boolean;
|
|
14
|
+
runtimeService?: RuntimeService;
|
|
15
|
+
heatmapService?: HeatmapService;
|
|
16
|
+
processModel?: any;
|
|
17
|
+
heatmapType?: string;
|
|
11
18
|
};
|
|
12
19
|
export declare const DiagramDocumentationInspector: React.ForwardRefExoticComponent<DiagramDocumentationInspectorProps & React.RefAttributes<DiagramDocumentationInspectorRef>>;
|
|
13
20
|
export type DiagramDocumentationInspectorNextJSProps = DiagramDocumentationInspectorProps & {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FilterOptions } from '../../common/types';
|
|
2
|
+
import { HeatmapService } from '../services/HeatmapService';
|
|
3
|
+
import { ProcessCostsService } from '../services/ProcessCostsService';
|
|
4
|
+
import { RuntimeService } from '../services/RuntimeService';
|
|
5
|
+
type HeatmapInspectorProps = {
|
|
6
|
+
processModel: any;
|
|
7
|
+
processCostsService?: ProcessCostsService;
|
|
8
|
+
runtimeService?: RuntimeService;
|
|
9
|
+
heatmapService?: HeatmapService;
|
|
10
|
+
onChange: (filters: FilterOptions) => void;
|
|
11
|
+
heatmapType: string;
|
|
12
|
+
setHeatmapType: (type: string) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function HeatmapInspector({ processModel, processCostsService, runtimeService, heatmapService, onChange, heatmapType, setHeatmapType, }: HeatmapInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TimeRange } from '../../common/types';
|
|
3
|
+
type ProcessModelInspectorProps = {
|
|
4
|
+
processModel?: any;
|
|
5
|
+
getInstancesFromDatabase?: (processModelId: string, hash: string, options?: {
|
|
6
|
+
timeRange?: TimeRange;
|
|
7
|
+
startDate?: string;
|
|
8
|
+
endDate?: string;
|
|
9
|
+
}) => Promise<any[]>;
|
|
10
|
+
};
|
|
11
|
+
export declare const ProcessModelInspectorNextJS: React.ComponentType<ProcessModelInspectorProps>;
|
|
12
|
+
export {};
|