69 Commits

Author SHA1 Message Date
8e81aaa0f4 style: adjust code style to latest configuration 2024-10-16 17:17:28 +02:00
90c513c770 fix: keep direction when collapsing pools
Closes #2208
2024-08-05 13:43:04 +02:00
160444eae8 feat: do not translate technical errors
These errors are non-user facing.

You shall be able to find them in public knowledge bases _as is_.
2024-04-24 10:18:42 +02:00
b100cdfa0b fix: support rendering of gateway without marker 2024-02-15 09:38:56 +01:00
6e92713cb9 feat: handle adding vertical lanes
Related to #2086

---------

Co-authored-by: Maciej Barelkowski <maciej.barelkowski@camunda.com>
2024-01-30 18:16:03 +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
2ca4907d5c fix: correct various JSDocs 2023-04-20 16:02:33 +02:00
3ea2852221 chore: simplify element type names 2023-04-19 12:18:42 +02:00
a8bf3192a9 fix(ElementFactory): fix @extend 2023-04-19 12:18:42 +02:00
614163e96c chore: use @return instead of @returns 2023-04-19 12:18:42 +02:00
1d90ae636b fix: fix remaining JSDocs 2023-04-19 12:18:42 +02:00
bc80225030 chore: move model types to dedicated model directory 2023-04-19 12:18:42 +02:00
75b438c157 fix(BpmnUpdater): fix JSDoc 2023-04-19 12:18:42 +02:00
42790fef48 fix(ElementFactory): fix JSDoc 2023-04-19 12:18:42 +02:00
c8463c39fd feat: add type declarations for modeling 2023-04-19 12:18:42 +02:00
39dd936a91 fix(element-factory): add missing attributes 2023-01-18 10:40:00 +01:00
066c07c084 fix(modeling): do not alter attrs passed to ElementFactory#create 2022-08-16 08:00:27 +00:00
7478388070 deps: replace inherits with inherits-browser
This increase the safety of our build; external consumers
do no longer need to account for the `browser` field to
bundle bpmn-js (or otherwise bundle a Node shim, unintentionally).
2022-05-18 10:15:53 +00:00
eed6c3b662 fix(elementFactory): ensure collapsed is set 2021-12-15 10:29:26 +00:00
bb9dc16cac chore(modeling): consistently create DI with attrs
This fixes the existing DI creation methods in `BpmnFactory` and
simplifies the related `ElementFactory` code that relied on it.

In the past args got ignored and passing attrs to the created DI
was not possible, now it is.

BREAKING CHANGE:

With this change the following `BpmnFactory` API methods got reworked to
take (businessObject, attrs) as an input:

  * `BpmnFactory#createDiEdge`
  * `BpmnFactory#createDiShape`
  * `BpmnFactory#createDiPlane`
2021-09-03 15:14:00 +02:00
c4206a4d31 fix(replace): create new di on replace 2021-09-03 15:14:00 +02:00
597c417dce chore: throw error when accessing DI from business object
Related to https://github.com/bpmn-io/bpmn-js/issues/1472
2021-09-03 15:14:00 +02:00
5589439774 feat: make elementFactory._getDefaultSize public
This has the benefit of using the public API method across our 
code base.
2021-09-03 15:14:00 +02: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
7a67ff95b2 chore(documentation): fix JSDoc string types 2020-04-07 06:52:55 +00:00
95b50f08a7 feat(replace): create bpmn:LinkEventDefinition with empty name
Closes https://github.com/bpmn-io/bpmn-js/issues/1296
2020-03-27 07:23:12 +00:00
8722b6e3c2 fix(element-factory): use BPMN factory to ensure IDs
Closes #1162
2019-11-20 14:41:09 +00:00
33156e43be chore(project): fix linting errors 2019-08-19 14:27:33 +00:00
194b963959 chore(copy-paste): rework and base upon diagram-js@5
* use <copyPaste.canCopyProperty> event to copy category value when copying group
* add camunda-bpmn-moddle for integration tests

BREAKING CHANGES

* CopyPaste: remove <property.clone>, add <moddleCopy.canCopyProperties>, <moddleCopy.canCopyProperty>, <moddleCopy.canSetCopiedProperty>
* BpmnRules: removed <elements.paste> rule in favor of <elements.create> rule
* BpmnRules: removed <element.paste> rule
* ElementFactory: use <attrs.di> property instead of <attrs.colors> for fill and stroke when creating element through ElementFactory#createBpmnElement
2019-08-07 16:03:55 +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
c80f29c57f feat(modeling): increase default group size 2019-06-13 16:38:50 +00:00
569ef62f13 chore(element-factory): add default size for group 2019-05-23 15:12:38 +02:00
89886d7c12 feat(ElementFactory): add #isFrame property on group creation
This allows basic support for diagram-js frame elements.

Closes #959
Closes #960
2019-05-07 14:36:32 +02:00
5affe25705 feat(modeling): adjust default collapsed participant height to 60px
This better aligns our collapse behavior with other tools.
2019-04-29 12:04:01 +00: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
19e4e19bb5 chore(project): migrate to new SECTION comments 2018-02-27 09:57:22 +01:00
1f5c69a58b fix(modeling): create ConditionalEventDefinition with condition
This ensures we always create valid BPMN 2.0 XML when
creating conditional start and intermediate events.

Closes #747
2018-01-03 14:19:01 +01:00
c853e88e54 chore(modeling): do not expose ElementFactory helpers
Less API surface => BETTER.
2017-03-21 07:23:57 +01:00
722c86beb2 feat(replace): persist colors when replacing an element
Related to #640
2017-02-13 12:01:42 +01:00
4732dcfc74 feat(modeling): create collapsed pools via morph menu
You are now able to morph between collapsed and expanded pools

* Not possible to drop elements in a collapsed pool
* if a expanded pool collapses, the children are deleted

Closes #365
2016-03-14 16:28:23 +01:00
49173abdad feat(i18n): add localization
* Palette, ContextPad, Errors...

Closes #491
2016-03-11 20:10:10 +01:00
0393d51893 chore(modeling): set minimum height to one line
Closes #402
2016-03-07 09:11:45 +01:00
cc142d8fd5 chore(modeling/ElementFactory): use is helper 2016-01-27 11:56:05 +01:00
d8ace12308 fix(rules): always allow associations from/to TextAnnotation 2016-01-25 16:02:59 +01:00
d7834e9bee feat(replace): add compensation morph options
* compensation boundary
* compensation activity

Related to #291
2016-01-25 16:02:58 +01:00
08c2ebc78f feat(modeling): add data objects
Closes #344
2015-10-07 15:15:57 +02:00
31f0ea1ec0 feat(modeling): add support for custom elements
This commit adds part of the infrastructure that allows
the coexistence between bpmn elements and custom ones.

Closes #348
2015-09-03 09:57:30 +02:00
4e33f524c7 feat(modeling): add lane default width
Related to #316
2015-08-21 17:34:41 +02:00