@formicoidea/labre-framework-bpmn 3.4.0 → 3.5.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.
@@ -15,52 +15,52 @@ export class EdgelessBpmnSeniorButton extends EdgelessToolbarToolMixin(SignalWat
15
15
  this.enableActiveBackground = true;
16
16
  this.type = EmptyTool;
17
17
  }
18
- static { this.styles = css `
19
- :host,
20
- .bpmn-button {
21
- display: block;
22
- width: 100%;
23
- height: 100%;
24
- }
25
- .bpmn-root {
26
- width: 100%;
27
- height: 64px;
28
- position: relative;
29
- overflow: hidden;
30
- cursor: pointer;
31
- /* no double-tap-zoom / 300ms tap delay on touch screens */
32
- touch-action: manipulation;
33
- display: flex;
34
- align-items: flex-end;
35
- justify-content: center;
36
- }
37
- .bpmn-card {
38
- --y: -4px;
39
- --s: 1;
40
- position: absolute;
41
- bottom: 0;
42
- width: 54px;
43
- height: 54px;
44
- transform: translateY(var(--y)) scale(var(--s));
45
- translate: var(--active-x, 0) var(--active-y, 0);
46
- rotate: var(--active-r, -2deg);
47
- scale: var(--active-s, 1);
48
- transition:
49
- transform 0.3s ease,
50
- translate 0.3s ease,
51
- rotate 0.3s ease,
52
- scale 0.3s ease;
53
- }
54
- .bpmn-card svg {
55
- display: block;
56
- width: 100%;
57
- height: 100%;
58
- }
59
- .bpmn-root:hover .bpmn-card,
60
- .bpmn-root:active .bpmn-card {
61
- --y: -10px;
62
- --s: 1.07;
63
- }
18
+ static { this.styles = css `
19
+ :host,
20
+ .bpmn-button {
21
+ display: block;
22
+ width: 100%;
23
+ height: 100%;
24
+ }
25
+ .bpmn-root {
26
+ width: 100%;
27
+ height: 64px;
28
+ position: relative;
29
+ overflow: hidden;
30
+ cursor: pointer;
31
+ /* no double-tap-zoom / 300ms tap delay on touch screens */
32
+ touch-action: manipulation;
33
+ display: flex;
34
+ align-items: flex-end;
35
+ justify-content: center;
36
+ }
37
+ .bpmn-card {
38
+ --y: -4px;
39
+ --s: 1;
40
+ position: absolute;
41
+ bottom: 0;
42
+ width: 54px;
43
+ height: 54px;
44
+ transform: translateY(var(--y)) scale(var(--s));
45
+ translate: var(--active-x, 0) var(--active-y, 0);
46
+ rotate: var(--active-r, -2deg);
47
+ scale: var(--active-s, 1);
48
+ transition:
49
+ transform 0.3s ease,
50
+ translate 0.3s ease,
51
+ rotate 0.3s ease,
52
+ scale 0.3s ease;
53
+ }
54
+ .bpmn-card svg {
55
+ display: block;
56
+ width: 100%;
57
+ height: 100%;
58
+ }
59
+ .bpmn-root:hover .bpmn-card,
60
+ .bpmn-root:active .bpmn-card {
61
+ --y: -10px;
62
+ --s: 1.07;
63
+ }
64
64
  `; }
65
65
  _toggleMenu() {
66
66
  if (this.popper) {
@@ -77,18 +77,18 @@ export class EdgelessBpmnSeniorButton extends EdgelessToolbarToolMixin(SignalWat
77
77
  return armedArtefact(this.gfx)?.owner === 'bpmn';
78
78
  }
79
79
  render() {
80
- return html `<edgeless-toolbar-button
81
- class="bpmn-button"
80
+ return html `<edgeless-toolbar-button
81
+ class="bpmn-button"
82
82
  .tooltip=${this.popper
83
83
  ? ''
84
- : translateKey(this.edgeless.std, 'com.labre.framework.bpmn', 'BPMN')}
85
- .tooltipOffset=${4}
86
- .active=${!!this.popper || this._armed}
87
- @click=${this._toggleMenu}
88
- >
89
- <div class="bpmn-root">
90
- <div class="bpmn-card">${bpmnToolbarIcon}</div>
91
- </div>
84
+ : translateKey(this.edgeless.std, 'com.labre.framework.bpmn', 'BPMN')}
85
+ .tooltipOffset=${4}
86
+ .active=${!!this.popper || this._armed}
87
+ @click=${this._toggleMenu}
88
+ >
89
+ <div class="bpmn-root">
90
+ <div class="bpmn-card">${bpmnToolbarIcon}</div>
91
+ </div>
92
92
  </edgeless-toolbar-button>`;
93
93
  }
94
94
  }
@@ -7,18 +7,18 @@ import { signal } from '@preact/signals-core';
7
7
  import { html } from 'lit';
8
8
  import { BPMN_LANE_TITLE_SIZE, BPMN_POOL_TITLE_SIZE, POOL_LANE_NAME_FONT_SIZE, POOL_LANE_NAME_FONT_SIZES, POOL_NAME_FONT_SIZE, POOL_NAME_FONT_SIZES, } from '../consts.js';
9
9
  import { bpmnExportXmlIcon, bpmnLaneAddIcon, bpmnLaneDownIcon, bpmnLaneRemoveIcon, bpmnLaneUpIcon, } from './icons.js';
10
- const ResizeIcon = html `<svg
11
- width="24"
12
- height="24"
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- stroke="currentColor"
16
- stroke-width="1.6"
17
- stroke-linecap="round"
18
- stroke-linejoin="round"
19
- >
20
- <path d="M9 5H5v4M15 19h4v-4" />
21
- <path d="M5 5l6 6M19 19l-6-6" />
10
+ const ResizeIcon = html `<svg
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ fill="none"
15
+ stroke="currentColor"
16
+ stroke-width="1.6"
17
+ stroke-linecap="round"
18
+ stroke-linejoin="round"
19
+ >
20
+ <path d="M9 5H5v4M15 19h4v-4" />
21
+ <path d="M5 5l6 6M19 19l-6-6" />
22
22
  </svg>`;
23
23
  /**
24
24
  * Build a toolbar toggle that flips a boolean flag on every selected pool:
@@ -138,13 +138,13 @@ function titleSizeAction(id, prop, label, sizes, when) {
138
138
  e.stopPropagation();
139
139
  setBpmnPoolTitleSize(ctx, models, prop, e.detail);
140
140
  };
141
- return html `<affine-size-dropdown-menu
142
- @select=${onPick}
143
- .label=${translateKey(ctx.std, ...label)}
144
- .sizes=${items}
145
- .minSize=${sizes[0]}
146
- .maxSize=${sizes[sizes.length - 1]}
147
- .size$=${size$}
141
+ return html `<affine-size-dropdown-menu
142
+ @select=${onPick}
143
+ .label=${translateKey(ctx.std, ...label)}
144
+ .sizes=${items}
145
+ .minSize=${sizes[0]}
146
+ .maxSize=${sizes[sizes.length - 1]}
147
+ .size$=${size$}
148
148
  ></affine-size-dropdown-menu>`;
149
149
  },
150
150
  };
@@ -2,17 +2,17 @@ import { svg } from 'lit';
2
2
  import { NEUTRAL_STROKE, NODE_FILL, POOL_CARD_FILL, POOL_FRAME_COLOR, } from '../consts.js';
3
3
  /** Colored BPMN glyph for the main toolbar button: a pool (green name band) with
4
4
  * a single activity inside. */
5
- export const bpmnToolbarIcon = svg `<svg width="100%" height="100%" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
6
- <rect x="4" y="13" width="48" height="30" rx="3" fill="${POOL_CARD_FILL}" stroke="${POOL_FRAME_COLOR}" stroke-width="2.2"/>
7
- <path d="M6 14 h5 v28 h-5 z" fill="#43a06b"/>
8
- <line x1="11" y1="13" x2="11" y2="43" stroke="${POOL_FRAME_COLOR}" stroke-width="1.8"/>
9
- <rect x="20" y="20" width="24" height="16" rx="3.5" fill="${NODE_FILL}" stroke="${NEUTRAL_STROKE}" stroke-width="2.2"/>
5
+ export const bpmnToolbarIcon = svg `<svg width="100%" height="100%" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
6
+ <rect x="4" y="13" width="48" height="30" rx="3" fill="${POOL_CARD_FILL}" stroke="${POOL_FRAME_COLOR}" stroke-width="2.2"/>
7
+ <path d="M6 14 h5 v28 h-5 z" fill="#43a06b"/>
8
+ <line x1="11" y1="13" x2="11" y2="43" stroke="${POOL_FRAME_COLOR}" stroke-width="1.8"/>
9
+ <rect x="20" y="20" width="24" height="16" rx="3.5" fill="${NODE_FILL}" stroke="${NEUTRAL_STROKE}" stroke-width="2.2"/>
10
10
  </svg>`;
11
11
  /** Export BPMN XML — a document with an arrow leaving it. */
12
- export const bpmnExportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
13
- <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
14
- <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
15
- <path d="M16 20.5v-6M13.5 18l2.5 2.5 2.5-2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
12
+ export const bpmnExportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
13
+ <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
14
+ <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
15
+ <path d="M16 20.5v-6M13.5 18l2.5 2.5 2.5-2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
16
16
  </svg>`;
17
17
  /**
18
18
  * Import BPMN XML — the export's document, with the arrow coming back IN.
@@ -21,10 +21,10 @@ export const bpmnExportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 2
21
21
  * one subject in two directions, and a reader who has met one should recognise
22
22
  * the other without reading its label.
23
23
  */
24
- export const bpmnImportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
25
- <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
26
- <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
27
- <path d="M16 14.5v6M13.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
24
+ export const bpmnImportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
25
+ <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
26
+ <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
27
+ <path d="M16 14.5v6M13.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
28
28
  </svg>`;
29
29
  /**
30
30
  * Import an SVG sketch — the import page again, with the picture frame that
@@ -34,58 +34,58 @@ export const bpmnImportXmlIcon = svg `<svg width="24" height="24" viewBox="0 0 2
34
34
  * gesture (a file becomes a board) and the difference between them is the TIER,
35
35
  * which is what the mountain-in-a-frame glyph is for.
36
36
  */
37
- export const bpmnImportSvgIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
38
- <rect x="3" y="5" width="14" height="11" rx="1.5" stroke="currentColor" stroke-width="1.5"/>
39
- <path d="M3.5 13 7 9.5l3 3 2-2 3.5 3.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
40
- <path d="M19 14.5v6M16.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
37
+ export const bpmnImportSvgIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
38
+ <rect x="3" y="5" width="14" height="11" rx="1.5" stroke="currentColor" stroke-width="1.5"/>
39
+ <path d="M3.5 13 7 9.5l3 3 2-2 3.5 3.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
40
+ <path d="M19 14.5v6M16.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
41
41
  </svg>`;
42
42
  /** Start event — thin green ring. */
43
- export const bpmnStartIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
44
- <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
43
+ export const bpmnStartIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
44
+ <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
45
45
  </svg>`;
46
46
  /** End event — thick red ring. */
47
- export const bpmnEndIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
48
- <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
47
+ export const bpmnEndIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
48
+ <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
49
49
  </svg>`;
50
50
  /** Message start event — thin green ring, envelope inside. */
51
- export const bpmnStartMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
52
- <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
53
- <rect x="8" y="9.5" width="8" height="5.5" stroke="currentColor" stroke-width="1.1"/>
54
- <path d="M8 9.5 L12 13 L16 9.5" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>
51
+ export const bpmnStartMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
52
+ <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
53
+ <rect x="8" y="9.5" width="8" height="5.5" stroke="currentColor" stroke-width="1.1"/>
54
+ <path d="M8 9.5 L12 13 L16 9.5" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>
55
55
  </svg>`;
56
56
  /** Timer start event — thin green ring, clock inside (rim + two hands). */
57
- export const bpmnStartTimerIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
58
- <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
59
- <circle cx="12" cy="12" r="4.2" stroke="currentColor" stroke-width="1.1"/>
60
- <path d="M12 12 V8.8 M12 12 L14.2 13.6" stroke="currentColor" stroke-width="1.1" stroke-linecap="round"/>
57
+ export const bpmnStartTimerIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
58
+ <circle cx="12" cy="12" r="8" stroke="#43a06b" stroke-width="2"/>
59
+ <circle cx="12" cy="12" r="4.2" stroke="currentColor" stroke-width="1.1"/>
60
+ <path d="M12 12 V8.8 M12 12 L14.2 13.6" stroke="currentColor" stroke-width="1.1" stroke-linecap="round"/>
61
61
  </svg>`;
62
62
  /** Message end event — thick red ring, envelope inside. */
63
- export const bpmnEndMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
64
- <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
65
- <rect x="8.5" y="9.8" width="7" height="4.8" stroke="currentColor" stroke-width="1.1"/>
66
- <path d="M8.5 9.8 L12 12.8 L15.5 9.8" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>
63
+ export const bpmnEndMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
64
+ <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
65
+ <rect x="8.5" y="9.8" width="7" height="4.8" stroke="currentColor" stroke-width="1.1"/>
66
+ <path d="M8.5 9.8 L12 12.8 L15.5 9.8" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>
67
67
  </svg>`;
68
68
  /** Terminate end event — thick red ring, solid disc inside. */
69
- export const bpmnEndTerminateIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
70
- <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
71
- <circle cx="12" cy="12" r="3.6" fill="currentColor"/>
69
+ export const bpmnEndTerminateIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
70
+ <circle cx="12" cy="12" r="8" stroke="#cf5648" stroke-width="3.5"/>
71
+ <circle cx="12" cy="12" r="3.6" fill="currentColor"/>
72
72
  </svg>`;
73
73
  /** Task — rounded rectangle. */
74
- export const bpmnTaskIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
75
- <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
74
+ export const bpmnTaskIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
75
+ <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
76
76
  </svg>`;
77
77
  /** User task — the rectangle with a person in its top-left corner. */
78
- export const bpmnTaskUserIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
79
- <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
80
- <circle cx="7.4" cy="9.9" r="1.15" stroke="currentColor" stroke-width="1"/>
81
- <path d="M5.7 13.3 A1.7 1.7 0 0 1 9.1 13.3" stroke="currentColor" stroke-width="1"/>
78
+ export const bpmnTaskUserIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
79
+ <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
80
+ <circle cx="7.4" cy="9.9" r="1.15" stroke="currentColor" stroke-width="1"/>
81
+ <path d="M5.7 13.3 A1.7 1.7 0 0 1 9.1 13.3" stroke="currentColor" stroke-width="1"/>
82
82
  </svg>`;
83
83
  /** Service task — the rectangle with a gear in its top-left corner. */
84
- export const bpmnTaskServiceIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
85
- <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
86
- <circle cx="7.6" cy="11" r="1.7" stroke="currentColor" stroke-width="1"/>
87
- <circle cx="7.6" cy="11" r="0.5" stroke="currentColor" stroke-width="0.8"/>
88
- <path d="M7.6 8.9 V9.3 M7.6 12.7 V13.1 M5.5 11 H5.9 M9.3 11 H9.7 M6.1 9.5 L6.4 9.8 M8.8 12.2 L9.1 12.5 M9.1 9.5 L8.8 9.8 M6.4 12.2 L6.1 12.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
84
+ export const bpmnTaskServiceIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
85
+ <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
86
+ <circle cx="7.6" cy="11" r="1.7" stroke="currentColor" stroke-width="1"/>
87
+ <circle cx="7.6" cy="11" r="0.5" stroke="currentColor" stroke-width="0.8"/>
88
+ <path d="M7.6 8.9 V9.3 M7.6 12.7 V13.1 M5.5 11 H5.9 M9.3 11 H9.7 M6.1 9.5 L6.4 9.8 M8.8 12.2 L9.1 12.5 M9.1 9.5 L8.8 9.8 M6.4 12.2 L6.1 12.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
89
89
  </svg>`;
90
90
  /**
91
91
  * Sub-process — the plain rectangle, like the task it is drawn as.
@@ -95,46 +95,46 @@ export const bpmnTaskServiceIcon = svg `<svg width="24" height="24" viewBox="0 0
95
95
  * and opens nothing here. A palette glyph says what lands on the board, so it
96
96
  * has none either, and the menu label is what tells this entry from the task.
97
97
  */
98
- export const bpmnSubProcessIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
99
- <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
98
+ export const bpmnSubProcessIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
99
+ <rect x="3.5" y="6.5" width="17" height="11" rx="2.5" stroke="currentColor" stroke-width="1.6"/>
100
100
  </svg>`;
101
101
  /** Call activity — the same bare rectangle, on the notation's THICKEST border. */
102
- export const bpmnCallActivityIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
103
- <rect x="4" y="7" width="16" height="10" rx="2.5" stroke="currentColor" stroke-width="3"/>
102
+ export const bpmnCallActivityIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
103
+ <rect x="4" y="7" width="16" height="10" rx="2.5" stroke="currentColor" stroke-width="3"/>
104
104
  </svg>`;
105
105
  /** Exclusive gateway — diamond with an X. */
106
- export const bpmnGatewayIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
107
- <path d="M12 3 L21 12 L12 21 L3 12 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
108
- <path d="M9 9 L15 15 M15 9 L9 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
106
+ export const bpmnGatewayIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
107
+ <path d="M12 3 L21 12 L12 21 L3 12 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
108
+ <path d="M9 9 L15 15 M15 9 L9 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
109
109
  </svg>`;
110
110
  /** Parallel gateway — diamond with a +. */
111
- export const bpmnGatewayParallelIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
112
- <path d="M12 3 L21 12 L12 21 L3 12 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
113
- <path d="M12 8 V16 M8 12 H16" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
111
+ export const bpmnGatewayParallelIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
112
+ <path d="M12 3 L21 12 L12 21 L3 12 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
113
+ <path d="M12 8 V16 M8 12 H16" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
114
114
  </svg>`;
115
115
  /** Data object — a page with its top-right corner turned down. */
116
- export const bpmnDataObjectIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
- <path d="M6 3.5 H14 L18 7.5 V20.5 H6 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
118
- <path d="M14 3.5 V7.5 H18" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
116
+ export const bpmnDataObjectIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
+ <path d="M6 3.5 H14 L18 7.5 V20.5 H6 Z" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
118
+ <path d="M14 3.5 V7.5 H18" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
119
119
  </svg>`;
120
120
  /** Data store — a cylinder. */
121
- export const bpmnDataStoreIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
122
- <path d="M4.5 7 V17 C4.5 18.4 8 19.5 12 19.5 C16 19.5 19.5 18.4 19.5 17 V7" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
123
- <ellipse cx="12" cy="7" rx="7.5" ry="2.5" stroke="currentColor" stroke-width="1.6"/>
121
+ export const bpmnDataStoreIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
122
+ <path d="M4.5 7 V17 C4.5 18.4 8 19.5 12 19.5 C16 19.5 19.5 18.4 19.5 17 V7" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
123
+ <ellipse cx="12" cy="7" rx="7.5" ry="2.5" stroke="currentColor" stroke-width="1.6"/>
124
124
  </svg>`;
125
125
  /** Text annotation — an open bracket down the leading edge, and a note beside it. */
126
- export const bpmnTextAnnotationIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
127
- <path d="M9 5 H5.5 V19 H9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
128
- <path d="M11.5 9 H18.5 M11.5 12 H18.5 M11.5 15 H16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
126
+ export const bpmnTextAnnotationIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
127
+ <path d="M9 5 H5.5 V19 H9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
128
+ <path d="M11.5 9 H18.5 M11.5 12 H18.5 M11.5 15 H16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
129
129
  </svg>`;
130
130
  /** Sequence flow — solid arrow with a filled head. */
131
- export const bpmnSequenceIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
132
- <path d="M3 12 H17" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
133
- <path d="M15 8 L21 12 L15 16 Z" fill="currentColor"/>
131
+ export const bpmnSequenceIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
132
+ <path d="M3 12 H17" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
133
+ <path d="M15 8 L21 12 L15 16 Z" fill="currentColor"/>
134
134
  </svg>`;
135
135
  /** Group — a dashed, generously rounded rectangle drawn AROUND things. */
136
- export const bpmnGroupIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
137
- <rect x="3.5" y="5.5" width="17" height="13" rx="4" stroke="currentColor" stroke-width="1.6" stroke-dasharray="3.4 2.6"/>
136
+ export const bpmnGroupIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
137
+ <rect x="3.5" y="5.5" width="17" height="13" rx="4" stroke="currentColor" stroke-width="1.6" stroke-dasharray="3.4 2.6"/>
138
138
  </svg>`;
139
139
  /**
140
140
  * Message flow — dashed line, disc at the source, open head at the target.
@@ -145,10 +145,10 @@ export const bpmnGroupIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24
145
145
  * would be fixed; until then an icon promising a ring would be advertising a
146
146
  * shape the tool does not draw.
147
147
  */
148
- export const bpmnMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
149
- <circle cx="4.8" cy="12" r="2.2" fill="currentColor"/>
150
- <path d="M7.4 12 H17.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-dasharray="3 2.6"/>
151
- <path d="M15.6 8.6 L20 12 L15.6 15.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
148
+ export const bpmnMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
149
+ <circle cx="4.8" cy="12" r="2.2" fill="currentColor"/>
150
+ <path d="M7.4 12 H17.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-dasharray="3 2.6"/>
151
+ <path d="M15.6 8.6 L20 12 L15.6 15.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
152
152
  </svg>`;
153
153
  /**
154
154
  * Association — a dashed line with no head at either end.
@@ -157,39 +157,39 @@ export const bpmnMessageIcon = svg `<svg width="24" height="24" viewBox="0 0 24
157
157
  * weight: both are `strokeWidth: 2`. A thinner icon would hint at a distinction
158
158
  * the tool cannot draw (`ASSOCIATION_WIDTH` in `../consts.ts` says why).
159
159
  */
160
- export const bpmnAssociationIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
161
- <path d="M3.5 17 L20.5 7" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-dasharray="2.4 2.4"/>
160
+ export const bpmnAssociationIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
161
+ <path d="M3.5 17 L20.5 7" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-dasharray="2.4 2.4"/>
162
162
  </svg>`;
163
163
  /** Pool — rectangle with a left name band. */
164
- export const bpmnPoolIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
165
- <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
166
- <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
164
+ export const bpmnPoolIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
165
+ <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
166
+ <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
167
167
  </svg>`;
168
168
  /** Add lane — the pool, cut in two, with a plus on the new band. */
169
- export const bpmnLaneAddIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
170
- <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
171
- <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
172
- <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
173
- <path d="M14.25 13.25 V17 M12.4 15.1 H16.1" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
169
+ export const bpmnLaneAddIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
170
+ <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
171
+ <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
172
+ <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
173
+ <path d="M14.25 13.25 V17 M12.4 15.1 H16.1" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
174
174
  </svg>`;
175
175
  /** Remove lane — the same pool, with a minus on the band that goes. */
176
- export const bpmnLaneRemoveIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
177
- <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
178
- <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
179
- <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
180
- <path d="M12.4 15.1 H16.1" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
176
+ export const bpmnLaneRemoveIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
177
+ <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
178
+ <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
179
+ <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
180
+ <path d="M12.4 15.1 H16.1" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
181
181
  </svg>`;
182
182
  /** Move lane up — the pool cut in two, with an arrow rising out of the lower band. */
183
- export const bpmnLaneUpIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
184
- <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
185
- <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
186
- <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
187
- <path d="M14.25 16.6 V13.6 M12.6 15 L14.25 13.4 L15.9 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
183
+ export const bpmnLaneUpIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
184
+ <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
185
+ <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
186
+ <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
187
+ <path d="M14.25 16.6 V13.6 M12.6 15 L14.25 13.4 L15.9 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
188
188
  </svg>`;
189
189
  /** Move lane down — the same pool, with an arrow falling out of the upper band. */
190
- export const bpmnLaneDownIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
191
- <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
192
- <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
193
- <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
194
- <path d="M14.25 7.4 V10.4 M12.6 9 L14.25 10.6 L15.9 9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
190
+ export const bpmnLaneDownIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
191
+ <rect x="3.5" y="5.5" width="17" height="13" rx="1.5" stroke="currentColor" stroke-width="1.6"/>
192
+ <path d="M8 5.5 V18.5" stroke="currentColor" stroke-width="1.6"/>
193
+ <path d="M8 12 H20.5" stroke="currentColor" stroke-width="1.6"/>
194
+ <path d="M14.25 7.4 V10.4 M12.6 9 L14.25 10.6 L15.9 9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
195
195
  </svg>`;
@@ -4,8 +4,8 @@ export const bpmnSeniorTool = SeniorToolExtension('bpmn', ({ block }) => {
4
4
  return {
5
5
  name: 'BPMN',
6
6
  labelKey: 'com.labre.framework.bpmn',
7
- content: html `<edgeless-bpmn-senior-button
8
- .edgeless=${block}
7
+ content: html `<edgeless-bpmn-senior-button
8
+ .edgeless=${block}
9
9
  ></edgeless-bpmn-senior-button>`,
10
10
  };
11
11
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formicoidea/labre-framework-bpmn",
3
3
  "description": "Labre bpmn framework for @formicoidea/labre-core.",
4
- "version": "3.4.0",
4
+ "version": "3.5.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "author": "lajola",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@formicoidea/labre-core": "3.4.0",
38
+ "@formicoidea/labre-core": "3.5.0",
39
39
  "@preact/signals-core": "^1.8.0",
40
40
  "lit": "^3.2.0"
41
41
  }