bpmn-js 12.1.0 → 13.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/bpmn-modeler.development.js +5172 -2047
- package/dist/bpmn-modeler.production.min.js +35 -35
- package/dist/bpmn-navigated-viewer.development.js +1547 -589
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +1525 -584
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/BaseModeler.d.ts +12 -5
- package/lib/BaseModeler.js +4 -5
- package/lib/BaseViewer.d.ts +160 -366
- package/lib/BaseViewer.js +136 -57
- package/lib/Modeler.d.ts +76 -15
- package/lib/Modeler.js +6 -4
- package/lib/NavigatedViewer.d.ts +8 -3
- package/lib/Viewer.d.ts +44 -3
- package/lib/core/index.d.ts +10 -0
- package/lib/draw/BpmnRenderUtil.d.ts +76 -0
- package/lib/draw/BpmnRenderUtil.js +73 -21
- package/lib/draw/BpmnRenderer.d.ts +124 -0
- package/lib/draw/BpmnRenderer.js +51 -0
- package/lib/draw/PathMap.d.ts +330 -0
- package/lib/draw/PathMap.js +9 -2
- package/lib/draw/TextRenderer.d.ts +74 -0
- package/lib/draw/TextRenderer.js +32 -11
- package/lib/draw/index.d.ts +10 -0
- package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +32 -0
- package/lib/features/align-elements/AlignElementsContextPadProvider.js +28 -5
- package/lib/features/align-elements/AlignElementsIcons.d.ts +10 -0
- package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +32 -0
- package/lib/features/align-elements/AlignElementsMenuProvider.js +38 -10
- package/lib/features/align-elements/BpmnAlignElements.d.ts +9 -0
- package/lib/features/align-elements/BpmnAlignElements.js +7 -1
- package/lib/features/align-elements/index.d.ts +11 -0
- package/lib/features/auto-place/BpmnAutoPlace.d.ts +13 -0
- package/lib/features/auto-place/BpmnAutoPlace.js +3 -0
- package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +47 -0
- package/lib/features/auto-place/BpmnAutoPlaceUtil.js +39 -11
- package/lib/features/auto-place/index.d.ts +7 -0
- package/lib/features/auto-resize/BpmnAutoResize.d.ts +25 -0
- package/lib/features/auto-resize/BpmnAutoResize.js +15 -7
- package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +26 -0
- package/lib/features/auto-resize/BpmnAutoResizeProvider.js +16 -4
- package/lib/features/auto-resize/index.d.ts +8 -0
- package/lib/features/context-pad/ContextPadProvider.d.ts +60 -0
- package/lib/features/context-pad/ContextPadProvider.js +64 -9
- package/lib/features/context-pad/index.d.ts +7 -0
- package/lib/features/copy-paste/BpmnCopyPaste.d.ts +17 -0
- package/lib/features/copy-paste/BpmnCopyPaste.js +15 -7
- package/lib/features/copy-paste/ModdleCopy.d.ts +45 -0
- package/lib/features/copy-paste/ModdleCopy.js +17 -45
- package/lib/features/copy-paste/index.d.ts +9 -0
- package/lib/features/di-ordering/BpmnDiOrdering.d.ts +11 -0
- package/lib/features/di-ordering/BpmnDiOrdering.js +8 -0
- package/lib/features/di-ordering/index.d.ts +6 -0
- package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +10 -0
- package/lib/features/distribute-elements/BpmnDistributeElements.js +9 -4
- package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +5 -0
- package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +32 -0
- package/lib/features/distribute-elements/DistributeElementsMenuProvider.js +27 -4
- package/lib/features/distribute-elements/index.d.ts +9 -0
- package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +19 -0
- package/lib/features/drilldown/DrilldownBreadcrumbs.js +34 -24
- package/lib/features/drilldown/DrilldownCentering.d.ts +17 -0
- package/lib/features/drilldown/DrilldownCentering.js +7 -2
- package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +18 -0
- package/lib/features/drilldown/DrilldownOverlayBehavior.js +70 -40
- package/lib/features/drilldown/SubprocessCompatibility.d.ts +21 -0
- package/lib/features/drilldown/SubprocessCompatibility.js +80 -30
- package/lib/features/drilldown/index.d.ts +13 -0
- package/lib/features/editor-actions/BpmnEditorActions.d.ts +13 -0
- package/lib/features/editor-actions/BpmnEditorActions.js +4 -0
- package/lib/features/editor-actions/index.d.ts +6 -0
- package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +9 -0
- package/lib/features/grid-snapping/BpmnGridSnapping.js +7 -0
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +12 -0
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.js +16 -1
- package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +27 -0
- package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.js +20 -8
- package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +13 -0
- package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.js +11 -1
- package/lib/features/grid-snapping/behavior/index.d.ts +10 -0
- package/lib/features/grid-snapping/index.d.ts +11 -0
- package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +18 -0
- package/lib/features/interaction-events/BpmnInteractionEvents.js +34 -9
- package/lib/features/interaction-events/index.d.ts +6 -0
- package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +15 -0
- package/lib/features/keyboard/BpmnKeyboardBindings.js +5 -0
- package/lib/features/keyboard/index.d.ts +7 -0
- package/lib/features/label-editing/LabelEditingPreview.d.ts +13 -0
- package/lib/features/label-editing/LabelEditingPreview.js +13 -6
- package/lib/features/label-editing/LabelEditingProvider.d.ts +62 -0
- package/lib/features/label-editing/LabelEditingProvider.js +48 -11
- package/lib/features/label-editing/LabelUtil.d.ts +14 -0
- package/lib/features/label-editing/LabelUtil.js +16 -1
- package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +22 -0
- package/lib/features/label-editing/cmd/UpdateLabelHandler.js +14 -3
- package/lib/features/label-editing/index.d.ts +9 -0
- package/lib/features/modeling/BpmnFactory.d.ts +67 -0
- package/lib/features/modeling/BpmnFactory.js +57 -8
- package/lib/features/modeling/BpmnLayouter.d.ts +26 -0
- package/lib/features/modeling/BpmnLayouter.js +25 -2
- package/lib/features/modeling/BpmnUpdater.d.ts +92 -0
- package/lib/features/modeling/BpmnUpdater.js +90 -29
- package/lib/features/modeling/ElementFactory.d.ts +116 -0
- package/lib/features/modeling/ElementFactory.js +114 -17
- package/lib/features/modeling/ElementFactory.test.ts +133 -0
- package/lib/features/modeling/Modeling.d.ts +150 -0
- package/lib/features/modeling/Modeling.js +124 -19
- package/lib/features/modeling/Modeling.test.ts +148 -0
- package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +20 -0
- package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.js +16 -6
- package/lib/features/modeling/behavior/AppendBehavior.d.ts +6 -0
- package/lib/features/modeling/behavior/AppendBehavior.js +6 -5
- package/lib/features/modeling/behavior/AssociationBehavior.d.ts +11 -0
- package/lib/features/modeling/behavior/AssociationBehavior.js +9 -1
- package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/AttachEventBehavior.js +11 -3
- package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/BoundaryEventBehavior.js +8 -1
- package/lib/features/modeling/behavior/CreateBehavior.d.ts +9 -0
- package/lib/features/modeling/behavior/CreateBehavior.js +6 -0
- package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/CreateDataObjectBehavior.js +10 -4
- package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +19 -0
- package/lib/features/modeling/behavior/CreateParticipantBehavior.js +10 -0
- package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +21 -0
- package/lib/features/modeling/behavior/DataInputAssociationBehavior.js +5 -0
- package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +19 -0
- package/lib/features/modeling/behavior/DataStoreBehavior.js +12 -1
- package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/DeleteLaneBehavior.js +9 -3
- package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/DetachEventBehavior.js +11 -3
- package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +13 -0
- package/lib/features/modeling/behavior/DropOnFlowBehavior.js +11 -1
- package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +11 -0
- package/lib/features/modeling/behavior/EventBasedGatewayBehavior.js +9 -0
- package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +17 -0
- package/lib/features/modeling/behavior/FixHoverBehavior.js +6 -0
- package/lib/features/modeling/behavior/GroupBehavior.d.ts +26 -0
- package/lib/features/modeling/behavior/GroupBehavior.js +35 -13
- package/lib/features/modeling/behavior/ImportDockingFix.d.ts +13 -0
- package/lib/features/modeling/behavior/ImportDockingFix.js +3 -0
- package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +10 -0
- package/lib/features/modeling/behavior/IsHorizontalFix.js +4 -0
- package/lib/features/modeling/behavior/LabelBehavior.d.ts +56 -0
- package/lib/features/modeling/behavior/LabelBehavior.js +22 -10
- package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +16 -0
- package/lib/features/modeling/behavior/LayoutConnectionBehavior.js +6 -2
- package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/MessageFlowBehavior.js +8 -0
- package/lib/features/modeling/behavior/ModelingFeedback.d.ts +13 -0
- package/lib/features/modeling/behavior/ModelingFeedback.js +11 -0
- package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +13 -0
- package/lib/features/modeling/behavior/RemoveElementBehavior.js +11 -1
- package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +16 -0
- package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.js +8 -0
- package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/RemoveParticipantBehavior.js +8 -1
- package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/ReplaceConnectionBehavior.js +13 -1
- package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +23 -0
- package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +19 -4
- package/lib/features/modeling/behavior/ResizeBehavior.d.ts +57 -0
- package/lib/features/modeling/behavior/ResizeBehavior.js +35 -0
- package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +16 -0
- package/lib/features/modeling/behavior/ResizeLaneBehavior.js +10 -3
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +25 -0
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.js +19 -0
- package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +10 -0
- package/lib/features/modeling/behavior/SpaceToolBehavior.js +14 -4
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +28 -0
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +45 -23
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +15 -0
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.js +6 -0
- package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +14 -0
- package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js +14 -1
- package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +13 -0
- package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +11 -3
- package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +19 -0
- package/lib/features/modeling/behavior/UnclaimIdBehavior.js +7 -0
- package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +16 -0
- package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.js +6 -3
- package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +17 -0
- package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.js +13 -10
- package/lib/features/modeling/behavior/index.d.ts +2 -0
- package/lib/features/modeling/behavior/index.js +3 -0
- package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +49 -0
- package/lib/features/modeling/behavior/util/CategoryUtil.js +10 -6
- package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +19 -0
- package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.js +11 -5
- package/lib/features/modeling/behavior/util/GeometricUtil.d.ts +1 -0
- package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +32 -0
- package/lib/features/modeling/behavior/util/LabelLayoutUtil.js +27 -18
- package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +48 -0
- package/lib/features/modeling/behavior/util/LayoutUtil.js +35 -6
- package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +37 -0
- package/lib/features/modeling/behavior/util/LineAttachmentUtil.js +17 -5
- package/lib/features/modeling/behavior/util/LineIntersect.d.ts +13 -0
- package/lib/features/modeling/behavior/util/LineIntersect.js +4 -0
- package/lib/features/modeling/behavior/util/ResizeUtil.d.ts +1 -0
- package/lib/features/modeling/cmd/AddLaneHandler.d.ts +22 -0
- package/lib/features/modeling/cmd/AddLaneHandler.js +8 -0
- package/lib/features/modeling/cmd/IdClaimHandler.d.ts +22 -0
- package/lib/features/modeling/cmd/IdClaimHandler.js +15 -0
- package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +39 -0
- package/lib/features/modeling/cmd/ResizeLaneHandler.js +17 -4
- package/lib/features/modeling/cmd/SetColorHandler.d.ts +18 -0
- package/lib/features/modeling/cmd/SetColorHandler.js +25 -12
- package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +22 -0
- package/lib/features/modeling/cmd/SplitLaneHandler.js +9 -0
- package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +20 -0
- package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +16 -1
- package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +21 -0
- package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.js +29 -4
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +20 -0
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +17 -3
- package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +60 -0
- package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +38 -14
- package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +18 -0
- package/lib/features/modeling/cmd/UpdateSemanticParentHandler.js +15 -0
- package/lib/features/modeling/index.d.ts +27 -0
- package/lib/features/modeling/util/LaneUtil.d.ts +46 -0
- package/lib/features/modeling/util/LaneUtil.js +22 -13
- package/lib/features/modeling/util/ModelingUtil.d.ts +12 -0
- package/lib/features/modeling/util/ModelingUtil.js +10 -4
- package/lib/features/ordering/BpmnOrderingProvider.d.ts +21 -0
- package/lib/features/ordering/BpmnOrderingProvider.js +9 -3
- package/lib/features/ordering/index.d.ts +7 -0
- package/lib/features/palette/PaletteProvider.d.ts +34 -0
- package/lib/features/palette/PaletteProvider.js +26 -2
- package/lib/features/palette/index.d.ts +9 -0
- package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +50 -0
- package/lib/features/popup-menu/ReplaceMenuProvider.js +226 -202
- package/lib/features/popup-menu/index.d.ts +11 -0
- package/lib/features/popup-menu/util/TypeUtil.d.ts +12 -0
- package/lib/features/popup-menu/util/TypeUtil.js +4 -1
- package/lib/features/replace/BpmnReplace.d.ts +47 -0
- package/lib/features/replace/BpmnReplace.js +81 -29
- package/lib/features/replace/ReplaceOptions.d.ts +70 -0
- package/lib/features/replace/ReplaceOptions.js +58 -0
- package/lib/features/replace/index.d.ts +9 -0
- package/lib/features/replace-preview/BpmnReplacePreview.d.ts +17 -0
- package/lib/features/replace-preview/BpmnReplacePreview.js +15 -1
- package/lib/features/replace-preview/index.d.ts +7 -0
- package/lib/features/rules/BpmnRules.d.ts +171 -0
- package/lib/features/rules/BpmnRules.js +295 -46
- package/lib/features/rules/index.d.ts +7 -0
- package/lib/features/search/BpmnSearchProvider.d.ts +29 -0
- package/lib/features/search/BpmnSearchProvider.js +30 -22
- package/lib/features/search/index.d.ts +7 -0
- package/lib/features/snapping/BpmnConnectSnapping.d.ts +17 -0
- package/lib/features/snapping/BpmnConnectSnapping.js +51 -3
- package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +41 -0
- package/lib/features/snapping/BpmnCreateMoveSnapping.js +47 -1
- package/lib/features/snapping/BpmnSnappingUtil.d.ts +11 -0
- package/lib/features/snapping/BpmnSnappingUtil.js +12 -0
- package/lib/features/snapping/index.d.ts +9 -0
- package/lib/features/space-tool/BpmnSpaceTool.d.ts +21 -0
- package/lib/features/space-tool/BpmnSpaceTool.js +20 -1
- package/lib/features/space-tool/index.d.ts +6 -0
- package/lib/import/BpmnImporter.d.ts +49 -0
- package/lib/import/BpmnImporter.js +37 -10
- package/lib/import/BpmnTreeWalker.d.ts +22 -0
- package/lib/import/BpmnTreeWalker.js +25 -22
- package/lib/import/Importer.d.ts +25 -0
- package/lib/import/Importer.js +15 -21
- package/lib/import/Util.d.ts +1 -0
- package/lib/import/index.d.ts +6 -0
- package/lib/model/Types.d.ts +24 -0
- package/lib/model/Types.ts +40 -0
- package/lib/util/CompatibilityUtil.d.ts +22 -0
- package/lib/util/CompatibilityUtil.js +13 -0
- package/lib/util/DiUtil.d.ts +53 -0
- package/lib/util/DiUtil.js +47 -13
- package/lib/util/DrilldownUtil.d.ts +39 -0
- package/lib/util/DrilldownUtil.js +12 -8
- package/lib/util/LabelUtil.d.ts +73 -0
- package/lib/util/LabelUtil.js +40 -16
- package/lib/util/ModelUtil.d.ts +40 -0
- package/lib/util/ModelUtil.js +9 -5
- package/lib/util/PoweredByUtil.d.ts +8 -0
- package/lib/util/Types.js +5 -0
- package/lib/util/Types.ts +4 -0
- package/package.json +10 -5
- package/test/matchers/ConnectionMatchers.js +1 -1
- package/lib/icons/dist/append.svg +0 -1
- package/lib/icons/dist/connect-context-pad.svg +0 -1
- package/lib/icons/dist/connect-palette.svg +0 -1
- package/lib/icons/dist/create.svg +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the parent of the element with any of the given types.
|
|
3
|
+
*
|
|
4
|
+
* @param element
|
|
5
|
+
* @param anyType
|
|
6
|
+
*
|
|
7
|
+
* @return
|
|
8
|
+
*/
|
|
9
|
+
export function getParent(element: Element, anyType: string | string[]): Element | null;
|
|
10
|
+
|
|
11
|
+
type Element = import('../../../model/Types').Element;
|
|
12
|
+
export { is, isAny } from "../../../util/ModelUtil";
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import { isString } from 'min-dash';
|
|
2
|
+
|
|
1
3
|
export { is, isAny } from '../../../util/ModelUtil';
|
|
2
4
|
|
|
3
5
|
import { isAny } from '../../../util/ModelUtil';
|
|
4
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {import('../../../model/Types').Element} Element
|
|
9
|
+
*/
|
|
10
|
+
|
|
5
11
|
/**
|
|
6
12
|
* Return the parent of the element with any of the given types.
|
|
7
13
|
*
|
|
8
|
-
* @param {
|
|
9
|
-
* @param {string|
|
|
14
|
+
* @param {Element} element
|
|
15
|
+
* @param {string|string[]} anyType
|
|
10
16
|
*
|
|
11
|
-
* @return {
|
|
17
|
+
* @return {Element|null}
|
|
12
18
|
*/
|
|
13
19
|
export function getParent(element, anyType) {
|
|
14
20
|
|
|
15
|
-
if (
|
|
21
|
+
if (isString(anyType)) {
|
|
16
22
|
anyType = [ anyType ];
|
|
17
23
|
}
|
|
18
24
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A BPMN-specific ordering provider.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export default class BpmnOrderingProvider extends OrderingProvider {
|
|
6
|
+
/**
|
|
7
|
+
* @param eventBus
|
|
8
|
+
* @param canvas
|
|
9
|
+
* @param translate
|
|
10
|
+
*/
|
|
11
|
+
constructor(eventBus: EventBus, canvas: Canvas, translate: any);
|
|
12
|
+
getOrdering: (element: any, newParent: any) => {
|
|
13
|
+
index: number;
|
|
14
|
+
parent: any;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type Canvas = import('diagram-js/lib/core/Canvas').default;
|
|
19
|
+
type EventBus = import('diagram-js/lib/core/EventBus').default;
|
|
20
|
+
export type Translate = any;
|
|
21
|
+
import OrderingProvider from 'diagram-js/lib/features/ordering/OrderingProvider';
|
|
@@ -11,12 +11,18 @@ import {
|
|
|
11
11
|
find
|
|
12
12
|
} from 'min-dash';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
|
|
16
|
+
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
17
|
+
* @typedef {import('diagram-js/i18n/translate/translate').default} Translate
|
|
18
|
+
*/
|
|
14
19
|
|
|
15
20
|
/**
|
|
16
|
-
*
|
|
21
|
+
* A BPMN-specific ordering provider.
|
|
17
22
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
23
|
+
* @param {EventBus} eventBus
|
|
24
|
+
* @param {Canvas} canvas
|
|
25
|
+
* @param {Translate} translate
|
|
20
26
|
*/
|
|
21
27
|
export default function BpmnOrderingProvider(eventBus, canvas, translate) {
|
|
22
28
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: import("didi").ModuleDeclaration[];
|
|
3
|
+
const __init__: string[];
|
|
4
|
+
const bpmnOrderingProvider: (string | typeof BpmnOrderingProvider)[];
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
import BpmnOrderingProvider from './BpmnOrderingProvider';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A palette provider for BPMN 2.0 elements.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export default class PaletteProvider {
|
|
6
|
+
static $inject: string[];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @param palette
|
|
10
|
+
* @param create
|
|
11
|
+
* @param elementFactory
|
|
12
|
+
* @param spaceTool
|
|
13
|
+
* @param lassoTool
|
|
14
|
+
* @param handTool
|
|
15
|
+
* @param globalConnect
|
|
16
|
+
* @param translate
|
|
17
|
+
*/
|
|
18
|
+
constructor(palette: Palette, create: Create, elementFactory: ElementFactory, spaceTool: SpaceTool, lassoTool: LassoTool, handTool: HandTool, globalConnect: GlobalConnect, translate: Translate);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @return
|
|
22
|
+
*/
|
|
23
|
+
getPaletteEntries(): PaletteEntries;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type Palette = import('diagram-js/lib/features/palette/Palette').default;
|
|
27
|
+
type Create = import('diagram-js/lib/features/create/Create').default;
|
|
28
|
+
type ElementFactory = import('diagram-js/lib/core/ElementFactory').default;
|
|
29
|
+
type SpaceTool = import('../space-tool/BpmnSpaceTool').default;
|
|
30
|
+
type LassoTool = import('diagram-js/lib/features/lasso-tool/LassoTool').default;
|
|
31
|
+
type HandTool = import('diagram-js/lib/features/hand-tool/HandTool').default;
|
|
32
|
+
type GlobalConnect = import('diagram-js/lib/features/global-connect/GlobalConnect').default;
|
|
33
|
+
export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
|
|
34
|
+
type PaletteEntries = import('diagram-js/lib/features/palette/Palette').PaletteEntries;
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assign
|
|
3
3
|
} from 'min-dash';
|
|
4
|
+
|
|
4
5
|
import { getDi } from '../../util/ModelUtil';
|
|
5
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {import('diagram-js/lib/features/palette/Palette').default} Palette
|
|
9
|
+
* @typedef {import('diagram-js/lib/features/create/Create').default} Create
|
|
10
|
+
* @typedef {import('diagram-js/lib/core/ElementFactory').default} ElementFactory
|
|
11
|
+
* @typedef {import('../space-tool/BpmnSpaceTool').default} SpaceTool
|
|
12
|
+
* @typedef {import('diagram-js/lib/features/lasso-tool/LassoTool').default} LassoTool
|
|
13
|
+
* @typedef {import('diagram-js/lib/features/hand-tool/HandTool').default} HandTool
|
|
14
|
+
* @typedef {import('diagram-js/lib/features/global-connect/GlobalConnect').default} GlobalConnect
|
|
15
|
+
* @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
|
|
16
|
+
*
|
|
17
|
+
* @typedef {import('diagram-js/lib/features/palette/Palette').PaletteEntries} PaletteEntries
|
|
18
|
+
*/
|
|
6
19
|
|
|
7
20
|
/**
|
|
8
21
|
* A palette provider for BPMN 2.0 elements.
|
|
22
|
+
*
|
|
23
|
+
* @param {Palette} palette
|
|
24
|
+
* @param {Create} create
|
|
25
|
+
* @param {ElementFactory} elementFactory
|
|
26
|
+
* @param {SpaceTool} spaceTool
|
|
27
|
+
* @param {LassoTool} lassoTool
|
|
28
|
+
* @param {HandTool} handTool
|
|
29
|
+
* @param {GlobalConnect} globalConnect
|
|
30
|
+
* @param {Translate} translate
|
|
9
31
|
*/
|
|
10
32
|
export default function PaletteProvider(
|
|
11
33
|
palette, create, elementFactory,
|
|
@@ -35,8 +57,10 @@ PaletteProvider.$inject = [
|
|
|
35
57
|
'translate'
|
|
36
58
|
];
|
|
37
59
|
|
|
38
|
-
|
|
39
|
-
|
|
60
|
+
/**
|
|
61
|
+
* @return {PaletteEntries}
|
|
62
|
+
*/
|
|
63
|
+
PaletteProvider.prototype.getPaletteEntries = function() {
|
|
40
64
|
|
|
41
65
|
var actions = {},
|
|
42
66
|
create = this._create,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: (import("didi").ModuleDeclaration | {
|
|
3
|
+
spaceTool: (string | typeof import("../space-tool/BpmnSpaceTool").default)[];
|
|
4
|
+
})[];
|
|
5
|
+
const __init__: string[];
|
|
6
|
+
const paletteProvider: (string | typeof PaletteProvider)[];
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
import PaletteProvider from './PaletteProvider';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A BPMN-specific popup menu provider.
|
|
3
|
+
*
|
|
4
|
+
* @implements {PopupMenuProvider}
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export default class ReplaceMenuProvider implements PopupMenuProvider {
|
|
8
|
+
static $inject: string[];
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @param bpmnFactory
|
|
12
|
+
* @param popupMenu
|
|
13
|
+
* @param modeling
|
|
14
|
+
* @param moddle
|
|
15
|
+
* @param bpmnReplace
|
|
16
|
+
* @param rules
|
|
17
|
+
* @param translate
|
|
18
|
+
*/
|
|
19
|
+
constructor(bpmnFactory: any, popupMenu: PopupMenu, modeling: any, moddle: Moddle, bpmnReplace: any, rules: any, translate: Translate);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param target
|
|
23
|
+
*
|
|
24
|
+
* @return
|
|
25
|
+
*/
|
|
26
|
+
getPopupMenuEntries(target: PopupMenuTarget): PopupMenuEntries;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param target
|
|
30
|
+
*
|
|
31
|
+
* @return
|
|
32
|
+
*/
|
|
33
|
+
getPopupMenuHeaderEntries(target: PopupMenuTarget): import("diagram-js/lib/features/popup-menu/PopupMenuProvider").PopupMenuHeaderEntries;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type BpmnFactory = any;
|
|
37
|
+
type PopupMenu = import('diagram-js/lib/features/popup-menu/PopupMenu').default;
|
|
38
|
+
export type Modeling = any;
|
|
39
|
+
export type BpmnReplace = any;
|
|
40
|
+
export type Rules = any;
|
|
41
|
+
export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
|
|
42
|
+
type Element = import('../../model/Types').Element;
|
|
43
|
+
type Moddle = import('../../model/Types').Moddle;
|
|
44
|
+
type PopupMenuEntries = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuEntries;
|
|
45
|
+
type PopupMenuEntry = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuEntry;
|
|
46
|
+
type PopupMenuEntryAction = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuEntryAction;
|
|
47
|
+
type PopupMenuHeaderEntries = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuHeaderEntries;
|
|
48
|
+
type PopupMenuProvider = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').default;
|
|
49
|
+
type PopupMenuTarget = import('diagram-js/lib/features/popup-menu/PopupMenu').PopupMenuTarget;
|
|
50
|
+
export type ReplaceOption = any;
|