109 Commits

Author SHA1 Message Date
8e81aaa0f4 style: adjust code style to latest configuration 2024-10-16 17:17:28 +02:00
a1eea14a4b docs(context-pad): correct argument type (#2204) 2024-09-09 14:44:52 +02:00
7e928d9b6c chore: remove side effect from helper function 2024-07-04 12:28:30 +02:00
99431dc71b chore: extract adding delete action to helper function 2024-07-04 12:28:30 +02:00
08b657a598 fix: show delete action for labels
Closes #2163
2024-07-04 12:28:30 +02:00
4d0c0f4f65 chore: merge main to develop 2024-04-29 14:08:57 +00:00
407a191f7e fix(context-pad): remove append preview on context pad close
Closes #2150
2024-04-29 16:08:43 +02:00
829989ed88 fix: error info use tagged template 2024-04-29 09:06:03 +02:00
e263bbbfd4 feat: handle splitting vertical lanes 2024-02-12 15:13:06 +01:00
12d8cb4f31 chore: remove redundant code
Related https://github.com/bpmn-io/bpmn-js/pull/2071/files#r1447244262
2024-01-30 18:15:59 +01:00
b9d0ce3e10 feat: support modeling of gateway without marker
Closes #2063

Co-authored-by: Maciej Barelkowski <maciejbarel@gmail.com>
2024-01-15 13:39:58 +01:00
aa158e2d5a chore(context-pad): user friendly tooltip text 2024-01-10 16:07:28 +01:00
1c49a1e8d3 feat(context-pad): sentence case titles 2023-12-01 14:11:10 +01:00
18b10b22c8 feat(context-pad): preview append on hover 2023-10-30 14:52:52 +01:00
732895554a feat: translate Append TextAnnotation context pad action 2023-07-31 11:39:18 +02:00
3ea2852221 chore: simplify element type names 2023-04-19 12:18:42 +02:00
614163e96c chore: use @return instead of @returns 2023-04-19 12:18:42 +02:00
0974a196da chore: fix more JSDocs 2023-04-19 12:18:42 +02:00
3ee8667ca0 feat(append-anything): move to dedicated module 2023-01-23 20:44:37 +01:00
67083cd287 feat(context-pad): add append entry
Closes #1801
2023-01-18 13:10:08 +01:00
93b5f23dcb feat: adjust replace/align menu position 2022-11-24 13:41:03 +01:00
eaa42c94db feat(context-pad): add popup menu config options
Closes #1775
2022-11-24 13:41:03 +01:00
3d193b2933 feat: add multi-element delete action 2022-05-25 09:03:08 +02:00
82c117b982 feat: allow TextAnnotation for SequenceFlows 2022-05-20 10:00:48 +00:00
769bcbeeff chore: adjust features to new DI structure
Related to https://github.com/bpmn-io/bpmn-js/issues/1472
2021-09-03 15:14:00 +02:00
40f1d3af52 feat: enable connection tool for text annotation
fixes upstream camunda/camunda-modeler#2042
2021-04-07 11:51:22 +02:00
b7ad57e348 feat(context-pad): append text annotations on groups
Related to #1327
2020-06-05 08:52:46 +00:00
7a67ff95b2 chore(documentation): fix JSDoc string types 2020-04-07 06:52:55 +00:00
5a1b7f7117 feat(context-pad): Translate append ReceiveTask action title 2020-01-03 09:18:08 +00:00
8efb20c03e fix(context-pad): do not open replace menu if context pad not open
Related to camunda/camunda-modeler#1613
2019-12-16 09:49:37 +00:00
aea527775e chore(context-pad): update spelling 2019-09-09 14:45:41 +02:00
33156e43be chore(project): fix linting errors 2019-08-19 14:27:33 +00:00
14bf3a32ee feat(create): create multiple elements
* add <elements.create> rule for creating multiple elements
* handle creating multiple elements in CreateParticipantBehavior
* create sub process with start event through palette
2019-08-07 16:03:55 +00:00
65216cbdd5 feat(translations): add new keywords 2019-06-25 07:20:25 +00:00
350a5ab75e feat(contextPad): Adjustments for IntermediateCatchEvents
adjust tooltip titles
i18n support
2018-10-02 09:09:19 +02:00
6b0a73145d feat(contextPad): improve tooltip titles for IntermediateCatchEvents 2018-10-01 12:38:19 +00:00
17896df65c chore(contextPadProvider): adjust popupMenu method calls
Since breaking changes were introduced in diagram-js
popupMenu methos calls need to be adjusted

* call popupMenu#open with element, id and position as params
* call popupMenu#isEmpty with element and providerId as params
* remove popupMenu#create call
2018-05-14 15:13:29 +02:00
365522a49c chore(context-pad): change gateway icon to GATEWAY_NONE
This is related to the recent palette change that dropped the marker
from the Gateway icon.

Related to 9edd462880
2018-04-09 14:42:51 +02:00
9be61259bd chore(project): drop 'use strict'
We use ES modules, so 'use strict' is not necessary anymore.
2018-04-03 18:09:53 +02:00
d3449ca87c chore(project): es6ify source code
* use ES6 import / export
* UTILS: export individual utilities
* TESTS: localize TestHelper includes

BREAKING CHANGE:

* all utilities export independent functions
* library sources got ported to ES6. You must now use
  a ES module bundler such as Browserify + babelify or
  Webpack to consume this library (or parts of it).
2018-04-03 16:32:14 +02:00
245d1d6a96 chore(project): upgrade lodash to min-dash 2018-03-22 11:59:39 +01:00
b03014fc2c chore(project): update to new lint style 2018-02-27 10:08:31 +01:00
d32da90013 chore(lint): bump eslint
...and fix lint errors
2018-01-28 20:35:04 +01:00
562674e74b chore(project): bump diagram-js dependency
Fixes text sometimes being selected during dragging.

* makes a ContextPad hack obsolete, too.
2017-12-22 15:49:00 +01:00
ae96f3714d feat(modeling): add auto placement from context menu
Elements will automatically be created at appropriate
positions when context menu create entries are being
clicked (rather than dragged).

This marks a major step forward for mobile modeling,
too as dragging, especially dragging out from very small
controls is very cumbersome to do.

Things we take into account:

* for bpmn:FlowNodes, we try to compute the current
  distance between elements on the flow based on
  connections going in and out of the flow nodes
  source element
* for bpmn:TextAnnotation we assume placement of the
  element top right of the source shape
* for bpmn:DataObject and friends we assume a
  placement bottom right of the source shape
* for all elements, we try not to place elements on
  top of each other; i.e. new elements will be pushed
  up or down accordingly, if an element at a chosen
  position does already exist

Integration into other services:

* context pad provider works with autoPlace, if
  available and defaults to drag start without
* auto placed elements are selected and direct editing
  may conditionally be activated based on element type
  (LabelEditingProvider knows the rules)

Users can out out of autoPlace by specifying the configuration
property `config.contextPad.autoPlace = false`.

Closes #563

BREAKING CHANGE:

* This breaks the default interaction from the context
  pad; if you rely on clicking to start the drag
  you can opt out of autoPlace:

  ```
  new BpmnJS({ contextPad: { autoPlace: false } });
  ```
2017-12-22 10:30:44 +01:00
2b37cebeb6 chore(context-pad): remove unused argument 2017-12-08 11:40:55 +01:00
029c3d76aa chore(context-pad): minor connect / remove tweek
* remove does not activate on dragstart
* connect does not trigger default drag behavior
2017-12-06 23:30:43 +01:00
38c81146a3 fix(context-pad): use current context shape
Relates to camunda/camunda-modeler#415
2016-09-19 12:29:20 +02:00
7575af4c0f feat(replace-menu): rework opening after element creation
Closes camunda/camunda-modeler#327
2016-08-31 11:02:19 +02:00
810a107262 feat(context-pad): open the replace menu after creating a shape
Closes camunda/camunda-modeler#327
2016-08-19 16:36:14 +02:00