@jylups/flowable-bpmn-js 0.0.0-stage → 0.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.
Files changed (61) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +282 -2
  3. package/assets/flowable-bpmn-js-touch.css +76 -0
  4. package/assets/flowable-bpmn-js.css +70 -0
  5. package/dist/assets/bpmn-font/css/bpmn-codes.css +110 -0
  6. package/dist/assets/bpmn-font/css/bpmn-embedded.css +168 -0
  7. package/dist/assets/bpmn-font/css/bpmn.css +166 -0
  8. package/dist/assets/bpmn-font/font/bpmn.eot +0 -0
  9. package/dist/assets/bpmn-font/font/bpmn.svg +228 -0
  10. package/dist/assets/bpmn-font/font/bpmn.ttf +0 -0
  11. package/dist/assets/bpmn-font/font/bpmn.woff +0 -0
  12. package/dist/assets/bpmn-font/font/bpmn.woff2 +0 -0
  13. package/dist/assets/bpmn-js-bpmnlint.css +263 -0
  14. package/dist/assets/bpmn-js.css +151 -0
  15. package/dist/assets/diagram-js.css +1325 -0
  16. package/dist/assets/flowable-bpmn-js-touch.css +76 -0
  17. package/dist/assets/flowable-bpmn-js.css +70 -0
  18. package/dist/assets/properties-panel.css +1905 -0
  19. package/dist/flowable-bpmn-modeler.development.js +128087 -0
  20. package/dist/flowable-bpmn-modeler.development.js.map +1 -0
  21. package/dist/flowable-bpmn-modeler.production.min.js +348 -0
  22. package/dist/flowable-bpmn-navigated-viewer.development.js +28092 -0
  23. package/dist/flowable-bpmn-navigated-viewer.development.js.map +1 -0
  24. package/dist/flowable-bpmn-navigated-viewer.production.min.js +2 -0
  25. package/dist/flowable-bpmn-viewer.development.js +26751 -0
  26. package/dist/flowable-bpmn-viewer.development.js.map +1 -0
  27. package/dist/flowable-bpmn-viewer.production.min.js +2 -0
  28. package/index.d.ts +107 -0
  29. package/index.js +32 -0
  30. package/lib/Modeler.js +68 -0
  31. package/lib/NavigatedViewer.js +30 -0
  32. package/lib/NewDiagram.js +69 -0
  33. package/lib/Theme.js +32 -0
  34. package/lib/Viewer.js +32 -0
  35. package/lib/distro/Modeler.js +5 -0
  36. package/lib/distro/NavigatedViewer.js +5 -0
  37. package/lib/distro/Viewer.js +5 -0
  38. package/lib/draw/TypedTaskRenderer.js +81 -0
  39. package/lib/draw/index.js +10 -0
  40. package/lib/features/touch/InputTracker.js +34 -0
  41. package/lib/features/touch/LICENSE +21 -0
  42. package/lib/features/touch/TouchContextPad.js +197 -0
  43. package/lib/features/touch/TouchInteraction.js +1276 -0
  44. package/lib/features/touch/TouchLabelEditing.js +60 -0
  45. package/lib/features/touch/index.js +40 -0
  46. package/lib/features/typed-tasks/ReplaceWithTypedTaskHandler.js +63 -0
  47. package/lib/features/typed-tasks/TypedTaskPaletteProvider.js +76 -0
  48. package/lib/features/typed-tasks/TypedTaskReplaceMenuProvider.js +71 -0
  49. package/lib/features/typed-tasks/TypedTasks.js +127 -0
  50. package/lib/features/typed-tasks/icons.js +99 -0
  51. package/lib/features/typed-tasks/index.js +17 -0
  52. package/lib/lint/FlowableLinting.js +23 -0
  53. package/lib/lint/index.js +44 -0
  54. package/lib/lint/module.js +15 -0
  55. package/lib/lint/rules/called-element.js +19 -0
  56. package/lib/lint/rules/service-task-implementation.js +81 -0
  57. package/lib/lint/rules/valid-durations.js +102 -0
  58. package/lib/lint/values.js +71 -0
  59. package/lib/xml/FlowableXML.js +50 -0
  60. package/lib/xml/index.js +6 -0
  61. package/package.json +80 -4
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Larger targets on touch screens, for the touch module of @jylups/flowable-bpmn-js
3
+ * (lib/features/touch), as in @jylups/cmmn-js. diagram-js sizes them for a mouse:
4
+ * a 15 px band around shapes and along connections, 20 px resize handles,
5
+ * 10 px bendpoints and 22 px context pad entries. Apple and Google ask for
6
+ * about 44 px for a finger.
7
+ *
8
+ * Only for (pointer: coarse), so a Mac keeps the mouse sizes. An iPad with a
9
+ * trackpad is still coarse and gets the larger targets too.
10
+ */
11
+ @media (pointer: coarse) {
12
+
13
+ /* shapes: 13 px around each one instead of 7.5, so a 36 px event is
14
+ about 62 px across to a finger. diagram-js sets the width as an inline
15
+ style, hence !important; its drop target rule (attach-ok) is more
16
+ specific and still wins while dragging. */
17
+ .djs-shape > .djs-hit-all {
18
+ stroke-width: 26px !important;
19
+ }
20
+
21
+ /* connections: a 30 px band instead of 15 */
22
+ .djs-connection > .djs-hit-stroke,
23
+ .djs-connection > .djs-hit-click-stroke {
24
+ stroke-width: 30px !important;
25
+ }
26
+
27
+ /* resize handles, bendpoints and segment draggers: scaled around their
28
+ centre, since their size is set in the drawing code */
29
+ .djs-resizer-hit,
30
+ .djs-resizer-visual,
31
+ .djs-bendpoint > .djs-hit,
32
+ .djs-bendpoint > .djs-visual,
33
+ .djs-segment-dragger > g > .djs-hit,
34
+ .djs-segment-dragger > g > .djs-visual {
35
+ transform-box: fill-box;
36
+ transform-origin: center;
37
+ }
38
+
39
+ /* 20 px to 44 px, and a 12 px handle to see */
40
+ .djs-resizer-hit {
41
+ transform: scale(2.2);
42
+ }
43
+
44
+ .djs-resizer-visual {
45
+ transform: scale(1.5);
46
+ }
47
+
48
+ /* 20 px to 44 px across, and a 12 px dot to see */
49
+ .djs-bendpoint > .djs-hit {
50
+ transform: scale(2.2);
51
+ }
52
+
53
+ .djs-bendpoint > .djs-visual {
54
+ transform: scale(1.5);
55
+ }
56
+
57
+ /* a 17 px band to about 40 px across the segment */
58
+ .djs-segment-dragger > g > .djs-hit {
59
+ transform: scaleY(2.4);
60
+ }
61
+
62
+ .djs-segment-dragger > g > .djs-visual {
63
+ transform: scale(1.5);
64
+ }
65
+
66
+ /* context pad: 36 px entries instead of 22, still three to a row */
67
+ .djs-context-pad {
68
+ width: 114px;
69
+ }
70
+
71
+ .djs-context-pad .entry {
72
+ width: 36px;
73
+ height: 36px;
74
+ font-size: 32px;
75
+ }
76
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * @jylups/flowable-bpmn-js: icons of the typed service tasks in the palette
3
+ * and the replace menu, and the watermark theme hook. Generated by
4
+ * tasks/build-icons-css.js; do not edit.
5
+ */
6
+
7
+ .flowable-icon::before {
8
+ content: '';
9
+ display: inline-block;
10
+ width: 1em;
11
+ height: 1em;
12
+ vertical-align: middle;
13
+ background-color: currentColor;
14
+ -webkit-mask-repeat: no-repeat;
15
+ mask-repeat: no-repeat;
16
+ -webkit-mask-position: center;
17
+ mask-position: center;
18
+ -webkit-mask-size: contain;
19
+ mask-size: contain;
20
+ }
21
+
22
+ .flowable-icon-mail::before {
23
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M3.5%207%20L12%2013%20L20.5%207%22%2F%3E%3C%2Fsvg%3E");
24
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M3.5%207%20L12%2013%20L20.5%207%22%2F%3E%3C%2Fsvg%3E");
25
+ }
26
+
27
+ .flowable-icon-http::before {
28
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M3.5%2012%20H20.5%22%2F%3E%3Cpath%20d%3D%22M12%203.5%20C8.4%207%208.4%2017%2012%2020.5%20C15.6%2017%2015.6%207%2012%203.5%22%2F%3E%3C%2Fsvg%3E");
29
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M3.5%2012%20H20.5%22%2F%3E%3Cpath%20d%3D%22M12%203.5%20C8.4%207%208.4%2017%2012%2020.5%20C15.6%2017%2015.6%207%2012%203.5%22%2F%3E%3C%2Fsvg%3E");
30
+ }
31
+
32
+ .flowable-icon-shell::before {
33
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%209.5%20L10%2012%20L7%2014.5%22%2F%3E%3Cpath%20d%3D%22M12%2015%20H16.5%22%2F%3E%3C%2Fsvg%3E");
34
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%209.5%20L10%2012%20L7%2014.5%22%2F%3E%3Cpath%20d%3D%22M12%2015%20H16.5%22%2F%3E%3C%2Fsvg%3E");
35
+ }
36
+
37
+ .flowable-icon-camel::before {
38
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226.5%22%20r%3D%222.2%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2217.5%22%20r%3D%222.2%22%2F%3E%3Cpath%20d%3D%22M8.2%206.5%20H13%20C16.2%206.5%2016.2%2012%2012%2012%20C7.8%2012%207.8%2017.5%2011%2017.5%20H15.8%22%2F%3E%3C%2Fsvg%3E");
39
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226.5%22%20r%3D%222.2%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2217.5%22%20r%3D%222.2%22%2F%3E%3Cpath%20d%3D%22M8.2%206.5%20H13%20C16.2%206.5%2016.2%2012%2012%2012%20C7.8%2012%207.8%2017.5%2011%2017.5%20H15.8%22%2F%3E%3C%2Fsvg%3E");
40
+ }
41
+
42
+ .flowable-icon-dmn::before {
43
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223.5%22%20y%3D%225%22%20width%3D%2217%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M3.5%209.5%20H20.5%22%2F%3E%3Cpath%20d%3D%22M3.5%2014.25%20H20.5%22%2F%3E%3Cpath%20d%3D%22M9.5%209.5%20V19%22%2F%3E%3C%2Fsvg%3E");
44
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223.5%22%20y%3D%225%22%20width%3D%2217%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M3.5%209.5%20H20.5%22%2F%3E%3Cpath%20d%3D%22M3.5%2014.25%20H20.5%22%2F%3E%3Cpath%20d%3D%22M9.5%209.5%20V19%22%2F%3E%3C%2Fsvg%3E");
45
+ }
46
+
47
+ .flowable-icon-case::before {
48
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223.5%22%20y%3D%228%22%20width%3D%2217%22%20height%3D%2211%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M9%208%20V6.2%20C9%205.5%209.5%205%2010.2%205%20H13.8%20C14.5%205%2015%205.5%2015%206.2%20V8%22%2F%3E%3Cpath%20d%3D%22M3.5%2012.5%20H20.5%22%2F%3E%3C%2Fsvg%3E");
49
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Crect%20x%3D%223.5%22%20y%3D%228%22%20width%3D%2217%22%20height%3D%2211%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M9%208%20V6.2%20C9%205.5%209.5%205%2010.2%205%20H13.8%20C14.5%205%2015%205.5%2015%206.2%20V8%22%2F%3E%3Cpath%20d%3D%22M3.5%2012.5%20H20.5%22%2F%3E%3C%2Fsvg%3E");
50
+ }
51
+
52
+ .flowable-icon-send-event::before {
53
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M8.6%208.6%20C6.7%2010.5%206.7%2013.5%208.6%2015.4%22%2F%3E%3Cpath%20d%3D%22M15.4%208.6%20C17.3%2010.5%2017.3%2013.5%2015.4%2015.4%22%2F%3E%3Cpath%20d%3D%22M5.6%205.6%20C2.1%209.1%202.1%2014.9%205.6%2018.4%22%2F%3E%3Cpath%20d%3D%22M18.4%205.6%20C21.9%209.1%2021.9%2014.9%2018.4%2018.4%22%2F%3E%3C%2Fsvg%3E");
54
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M8.6%208.6%20C6.7%2010.5%206.7%2013.5%208.6%2015.4%22%2F%3E%3Cpath%20d%3D%22M15.4%208.6%20C17.3%2010.5%2017.3%2013.5%2015.4%2015.4%22%2F%3E%3Cpath%20d%3D%22M5.6%205.6%20C2.1%209.1%202.1%2014.9%205.6%2018.4%22%2F%3E%3Cpath%20d%3D%22M18.4%205.6%20C21.9%209.1%2021.9%2014.9%2018.4%2018.4%22%2F%3E%3C%2Fsvg%3E");
55
+ }
56
+
57
+ .flowable-icon-external-worker::before {
58
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Cpath%20d%3D%22M14%204.5%20H19.5%20V10%22%2F%3E%3Cpath%20d%3D%22M19.5%204.5%20L11%2013%22%2F%3E%3Cpath%20d%3D%22M17%2013.5%20V18.5%20C17%2019.1%2016.6%2019.5%2016%2019.5%20H5.5%20C4.9%2019.5%204.5%2019.1%204.5%2018.5%20V8%20C4.5%207.4%204.9%207%205.5%207%20H10.5%22%2F%3E%3C%2Fsvg%3E");
59
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23000%22%3E%3Cpath%20d%3D%22M14%204.5%20H19.5%20V10%22%2F%3E%3Cpath%20d%3D%22M19.5%204.5%20L11%2013%22%2F%3E%3Cpath%20d%3D%22M17%2013.5%20V18.5%20C17%2019.1%2016.6%2019.5%2016%2019.5%20H5.5%20C4.9%2019.5%204.5%2019.1%204.5%2018.5%20V8%20C4.5%207.4%204.9%207%205.5%207%20H10.5%22%2F%3E%3C%2Fsvg%3E");
60
+ }
61
+
62
+ /*
63
+ * Theme hook for the bpmn.io watermark: on a dark canvas, set
64
+ * --flowable-watermark-color to a light color so the watermark stays fully
65
+ * visible, as the bpmn-js licence requires. bpmn-js sets its color inline,
66
+ * hence !important; the fallback is bpmn-js' own color.
67
+ */
68
+ .bjs-container .bjs-powered-by {
69
+ color: var(--flowable-watermark-color, #404040) !important;
70
+ }