@miragon/dmn-modeler 0.4.0 → 0.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.
- package/CHANGELOG.md +42 -0
- package/README.md +16 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.js +275 -103
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/Miragon/bpmn-modeler/compare/dmn-modeler-v0.4.0...dmn-modeler-v0.5.0) (2026-11-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🎉 New Features
|
|
7
|
+
|
|
8
|
+
* **bpmn-modeler:** translate popup-menu search keywords ([#1781](https://github.com/Miragon/bpmn-modeler/issues/1781)) [sync cae0009] ([432bbd7](https://github.com/Miragon/bpmn-modeler/commit/432bbd773e762ffa383631020639f90004f1b8e5))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 🐞 Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **bpmn-modeler:** flush panel input on save and read the bound engine ([#2064](https://github.com/Miragon/bpmn-modeler/issues/2064)) [sync 33c466b] ([66e60bb](https://github.com/Miragon/bpmn-modeler/commit/66e60bb7c28f0bd7e6b0dfe5b4ff367edf83d4ec))
|
|
14
|
+
* **bpmn-modeler:** keep theme in step across destroy and mode switches ([#1734](https://github.com/Miragon/bpmn-modeler/issues/1734)) ([6fb3ba9](https://github.com/Miragon/bpmn-modeler/commit/6fb3ba91f490f0c7e065cdf63d585a2d7d7971bd))
|
|
15
|
+
* **element-template-chooser:** show "1 property" for a single template property ([#1794](https://github.com/Miragon/bpmn-modeler/issues/1794)) [sync abfa4ee] ([965a8e8](https://github.com/Miragon/bpmn-modeler/commit/965a8e8ad927a1c07ca32b94fa2cff4899b799d4))
|
|
16
|
+
* **i18n:** offer every shipped language in the language settings ([#2006](https://github.com/Miragon/bpmn-modeler/issues/2006)) [sync bf9de92] ([fa0344d](https://github.com/Miragon/bpmn-modeler/commit/fa0344df48c474092b5f094b4d2461bdd90ee297))
|
|
17
|
+
* **modeler-core:** read the executable process id under any bpmn prefix ([#1949](https://github.com/Miragon/bpmn-modeler/issues/1949)) [sync db53e2e] ([52b0e3f](https://github.com/Miragon/bpmn-modeler/commit/52b0e3ff93e954fa59447237cc37a82d7b41cf6f))
|
|
18
|
+
* **modeler-core:** stop migration from stamping duplicate execution-platform attributes ([#1862](https://github.com/Miragon/bpmn-modeler/issues/1862)) [sync 18c157a] ([6aab597](https://github.com/Miragon/bpmn-modeler/commit/6aab5979a4576ee7190b6239f273a68c480931c6))
|
|
19
|
+
* **modeler-types:** flush pending edits before a save or a mode switch ([#2114](https://github.com/Miragon/bpmn-modeler/issues/2114)) ([a7eb551](https://github.com/Miragon/bpmn-modeler/commit/a7eb55170672bec09ab03dc7386a3b20eccb95b2))
|
|
20
|
+
* **modeler-types:** scan xml comments and cdata in document order ([#1970](https://github.com/Miragon/bpmn-modeler/issues/1970)) [sync 249398c] ([7d61046](https://github.com/Miragon/bpmn-modeler/commit/7d610469dd8abdf246f37f26ca9643a180dd385e))
|
|
21
|
+
* **shared:** hold a quickly narrowed properties panel at its minimum width ([#1698](https://github.com/Miragon/bpmn-modeler/issues/1698)) [sync f92e122] ([74417fa](https://github.com/Miragon/bpmn-modeler/commit/74417fac1d705768bac5a2fce16e30ca200f8e23))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### 🔨 Refactoring
|
|
25
|
+
|
|
26
|
+
* **modeler-core:** share document sync and surface lifecycles ([#1776](https://github.com/Miragon/bpmn-modeler/issues/1776)) ([f4c099f](https://github.com/Miragon/bpmn-modeler/commit/f4c099fbeef9c8ab0bc09338ad959569bf55614f))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### 📔 Documentation
|
|
30
|
+
|
|
31
|
+
* **bpmn-modeler:** document yarn berry resolutions for upstream carets ([#1782](https://github.com/Miragon/bpmn-modeler/issues/1782)) ([0246c4d](https://github.com/Miragon/bpmn-modeler/commit/0246c4d2595866a8cb86197ab3ad5e405295267e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### 🛠️ Misc
|
|
35
|
+
|
|
36
|
+
* **architecture-testing:** keep the architecture spec under the test timeout on CI ([#2122](https://github.com/Miragon/bpmn-modeler/issues/2122)) ([2f8e905](https://github.com/Miragon/bpmn-modeler/commit/2f8e905b61eea0179f037257e7811747cb372731))
|
|
37
|
+
* **architecture-testing:** run the modeler package specs on the engine ([#2085](https://github.com/Miragon/bpmn-modeler/issues/2085)) ([286c9e0](https://github.com/Miragon/bpmn-modeler/commit/286c9e0302f5068bb1bb0e1eed7b02f8236aca02))
|
|
38
|
+
* **ci:** gate coverage reports on code changes and enforce thresholds ([#1682](https://github.com/Miragon/bpmn-modeler/issues/1682)) ([e2bf365](https://github.com/Miragon/bpmn-modeler/commit/e2bf3650949daf8d445466ace1eb769a89a87b4f))
|
|
39
|
+
* **ci:** raise drifted coverage floors and type-check spec files ([#1796](https://github.com/Miragon/bpmn-modeler/issues/1796)) ([88359d4](https://github.com/Miragon/bpmn-modeler/commit/88359d4ef080929e369a6736134e1cd282f0e17b))
|
|
40
|
+
* **ci:** run every vitest workspace from one target registry ([#1687](https://github.com/Miragon/bpmn-modeler/issues/1687)) ([b0c1940](https://github.com/Miragon/bpmn-modeler/commit/b0c19402c84b2a1f496fa20728e97f9a254b8885))
|
|
41
|
+
* **deps:** bump @bpmn-io/properties-panel from 3.56.1 to 3.57.0 in the bpmn-io group ([#1665](https://github.com/Miragon/bpmn-modeler/issues/1665)) ([00808c7](https://github.com/Miragon/bpmn-modeler/commit/00808c70f667d6eb6848e943ead9d7a2577105ca))
|
|
42
|
+
* **deps:** bump the npm-minor-patch group across 1 directory with 10 updates ([#1667](https://github.com/Miragon/bpmn-modeler/issues/1667)) ([4fb5db5](https://github.com/Miragon/bpmn-modeler/commit/4fb5db55c3e1f5891598189d720ed292691634ca))
|
|
43
|
+
* **deps:** bump the npm-minor-patch group across 1 directory with 8 updates ([#1758](https://github.com/Miragon/bpmn-modeler/issues/1758)) ([c1a1cd3](https://github.com/Miragon/bpmn-modeler/commit/c1a1cd3279cbf9137b337422ed71f05d416c9347))
|
|
44
|
+
|
|
3
45
|
## [0.4.0](https://github.com/Miragon/bpmn-modeler/compare/dmn-modeler-v0.3.1...dmn-modeler-v0.4.0) (2026-10-16)
|
|
4
46
|
|
|
5
47
|
|
package/README.md
CHANGED
|
@@ -112,6 +112,22 @@ const eventBus = modeler.getService( "eventBus" );
|
|
|
112
112
|
- **Locale is page-global** in this release (the i18n instance is a singleton); theming is
|
|
113
113
|
per-instance via the `data-dmn-theme` attribute (see
|
|
114
114
|
[Theming](#theming)).
|
|
115
|
+
- **Yarn Berry installs.** This package pins `diagram-js` exactly, but the dmn-js packages
|
|
116
|
+
declare it with caret ranges. Yarn 2+ resolves each range to the newest matching version, so
|
|
117
|
+
once diagram-js publishes a release newer than this package's pin, a second copy is nested
|
|
118
|
+
under dmn-js and the modeler splits across two versions. npm and pnpm reuse the pinned
|
|
119
|
+
version. With Yarn, pin it in your root `package.json` to the version that
|
|
120
|
+
`node_modules/@miragon/dmn-modeler/package.json` declares, and update it whenever you upgrade
|
|
121
|
+
`@miragon/dmn-modeler`:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"resolutions": {
|
|
126
|
+
"diagram-js": "<pin from @miragon/dmn-modeler>"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
115
131
|
- **Bundler dedupe.** The modeler and its plugins must share single copies of
|
|
116
132
|
`inferno` and the properties-panel / CodeMirror stack. If you build with Vite, add these to
|
|
117
133
|
`resolve.dedupe`:
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,8 @@ export declare interface DmnModelerHandle {
|
|
|
46
46
|
isCanvasFocused(): boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Switch the colour theme live. Toggles this instance's `data-dmn-theme`
|
|
49
|
-
* attribute and mirrors it to a legacy `#theme-link` when present.
|
|
49
|
+
* attribute and mirrors it to a legacy `#theme-link` when present. A no-op
|
|
50
|
+
* once the instance is destroyed.
|
|
50
51
|
*/
|
|
51
52
|
setTheme(theme: DmnThemeMode): void;
|
|
52
53
|
/**
|
|
@@ -57,7 +58,11 @@ export declare interface DmnModelerHandle {
|
|
|
57
58
|
* re-import; the DRD viewbox is preserved.
|
|
58
59
|
*/
|
|
59
60
|
setLocale(locale: string): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Tear down this instance and all of its listeners and observers. Idempotent.
|
|
63
|
+
* Afterwards every other member except the no-op `setTheme` throws
|
|
64
|
+
* `NoModelerError` (async members reject with it).
|
|
65
|
+
*/
|
|
61
66
|
destroy(): void;
|
|
62
67
|
/**
|
|
63
68
|
* Unstable escape hatch into the active dmn-js viewer's DI graph. The
|
|
@@ -113,6 +118,8 @@ export declare interface DmnOperationResult {
|
|
|
113
118
|
readonly warnings: DmnWarning[];
|
|
114
119
|
}
|
|
115
120
|
|
|
121
|
+
/* Excluded from this release type: DmnPendingInputHandle */
|
|
122
|
+
|
|
116
123
|
/**
|
|
117
124
|
* Theme selection for a single instance. The modeler toggles a
|
|
118
125
|
* `data-dmn-theme` attribute on its container + panel parent (the authoritative
|
|
@@ -163,6 +170,12 @@ export declare interface DmnWarningError {
|
|
|
163
170
|
readonly stack?: string;
|
|
164
171
|
}
|
|
165
172
|
|
|
173
|
+
export declare class NoModelerError extends Error {
|
|
174
|
+
constructor() {
|
|
175
|
+
super("Modeler is not initialized!");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
166
179
|
export { }
|
|
167
180
|
|
|
168
181
|
declare module "diagram-js/lib/core/EventBus" {
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,17 @@ import n from "dmn-js/lib/Modeler";
|
|
|
3
3
|
import { CamundaPropertiesProviderModule as r, DmnPropertiesPanelModule as i, DmnPropertiesProviderModule as a } from "dmn-js-properties-panel";
|
|
4
4
|
import o from "@emaarco/dmn-js-simulation";
|
|
5
5
|
import s from "camunda-dmn-moddle/resources/camunda.json";
|
|
6
|
-
import "lodash/debounce.js";
|
|
6
|
+
import c from "lodash/debounce.js";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region ../../libs/bpmn-i18n-extras/src/languages/index.ts
|
|
9
|
-
var
|
|
9
|
+
var l = {
|
|
10
10
|
de: {
|
|
11
11
|
"Apply Template": "Vorlage anwenden",
|
|
12
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Automatisierte Arbeit, ausgeführt von einem Java Delegate, einem Ausdruck oder einem externen Task",
|
|
13
|
+
"Automated work carried out by a system": "Automatisierte Arbeit, ausgeführt von einem System",
|
|
12
14
|
"Being edited in": "Wird bearbeitet in",
|
|
13
15
|
"Camunda properties, templates and lint": "Camunda-Eigenschaften, Vorlagen und Linting",
|
|
16
|
+
"Child process": "Kindprozess",
|
|
14
17
|
"Clear search": "Suche zurücksetzen",
|
|
15
18
|
Close: "Schließen",
|
|
16
19
|
Collapse: "Einklappen",
|
|
@@ -21,8 +24,10 @@ var c = {
|
|
|
21
24
|
"Engine-neutral modeling": "Engine-neutrale Modellierung",
|
|
22
25
|
Expand: "Ausklappen",
|
|
23
26
|
Favourites: "Favoriten",
|
|
27
|
+
Human: "Mensch",
|
|
24
28
|
Implement: "Implementieren",
|
|
25
29
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Für „Implementieren“ wird eine Camunda-Ausführungsplattform benötigt – dieses Modell hat keine. Weisen Sie eine zu, um es zu aktivieren.",
|
|
30
|
+
"Java delegate": "Java Delegate",
|
|
26
31
|
Mode: "Modus",
|
|
27
32
|
"Mode: {mode}": "Modus: {mode}",
|
|
28
33
|
"Name or code": "Name oder Code",
|
|
@@ -48,12 +53,16 @@ var c = {
|
|
|
48
53
|
"read-only": "schreibgeschützt",
|
|
49
54
|
required: "erforderlich",
|
|
50
55
|
"thrown by {elements}": "ausgelöst von {elements}",
|
|
51
|
-
"{count} properties": "{count} Eigenschaften"
|
|
56
|
+
"{count} properties": "{count} Eigenschaften",
|
|
57
|
+
"{count} property": "{count} Eigenschaft"
|
|
52
58
|
},
|
|
53
59
|
en: {
|
|
54
60
|
"Apply Template": "Apply Template",
|
|
61
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Automated work carried out by a Java delegate, expression, or external task",
|
|
62
|
+
"Automated work carried out by a system": "Automated work carried out by a system",
|
|
55
63
|
"Being edited in": "Being edited in",
|
|
56
64
|
"Camunda properties, templates and lint": "Camunda properties, templates and lint",
|
|
65
|
+
"Child process": "Child process",
|
|
57
66
|
"Clear search": "Clear search",
|
|
58
67
|
Close: "Close",
|
|
59
68
|
Collapse: "Collapse",
|
|
@@ -64,8 +73,10 @@ var c = {
|
|
|
64
73
|
"Engine-neutral modeling": "Engine-neutral modeling",
|
|
65
74
|
Expand: "Expand",
|
|
66
75
|
Favourites: "Favourites",
|
|
76
|
+
Human: "Human",
|
|
67
77
|
Implement: "Implement",
|
|
68
78
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Implement needs a Camunda execution platform — this model has none. Assign one to enable it.",
|
|
79
|
+
"Java delegate": "Java delegate",
|
|
69
80
|
Mode: "Mode",
|
|
70
81
|
"Mode: {mode}": "Mode: {mode}",
|
|
71
82
|
"Name or code": "Name or code",
|
|
@@ -91,12 +102,16 @@ var c = {
|
|
|
91
102
|
"read-only": "read-only",
|
|
92
103
|
required: "required",
|
|
93
104
|
"thrown by {elements}": "thrown by {elements}",
|
|
94
|
-
"{count} properties": "{count} properties"
|
|
105
|
+
"{count} properties": "{count} properties",
|
|
106
|
+
"{count} property": "{count} property"
|
|
95
107
|
},
|
|
96
108
|
es: {
|
|
97
109
|
"Apply Template": "Aplicar plantilla",
|
|
110
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Trabajo automatizado realizado por un Java delegate, una expresión o una tarea externa",
|
|
111
|
+
"Automated work carried out by a system": "Trabajo automatizado realizado por un sistema",
|
|
98
112
|
"Being edited in": "Se está editando en",
|
|
99
113
|
"Camunda properties, templates and lint": "Propiedades de Camunda, plantillas y linting",
|
|
114
|
+
"Child process": "Proceso hijo",
|
|
100
115
|
"Clear search": "Borrar búsqueda",
|
|
101
116
|
Close: "Cerrar",
|
|
102
117
|
Collapse: "Contraer",
|
|
@@ -107,8 +122,10 @@ var c = {
|
|
|
107
122
|
"Engine-neutral modeling": "Modelado independiente del motor",
|
|
108
123
|
Expand: "Expandir",
|
|
109
124
|
Favourites: "Favoritos",
|
|
125
|
+
Human: "Humano",
|
|
110
126
|
Implement: "Implementar",
|
|
111
127
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Implementar necesita una plataforma de ejecución de Camunda; este modelo no tiene ninguna. Asigne una para habilitarlo.",
|
|
128
|
+
"Java delegate": "Java delegate",
|
|
112
129
|
Mode: "Modo",
|
|
113
130
|
"Mode: {mode}": "Modo: {mode}",
|
|
114
131
|
"Name or code": "Nombre o código",
|
|
@@ -134,12 +151,16 @@ var c = {
|
|
|
134
151
|
"read-only": "solo lectura",
|
|
135
152
|
required: "obligatorio",
|
|
136
153
|
"thrown by {elements}": "lanzado por {elements}",
|
|
137
|
-
"{count} properties": "{count} propiedades"
|
|
154
|
+
"{count} properties": "{count} propiedades",
|
|
155
|
+
"{count} property": "{count} propiedad"
|
|
138
156
|
},
|
|
139
157
|
fr: {
|
|
140
158
|
"Apply Template": "Appliquer le modèle",
|
|
159
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Un travail automatisé réalisé par un Java delegate, une expression ou une tâche externe",
|
|
160
|
+
"Automated work carried out by a system": "Un travail automatisé réalisé par un système",
|
|
141
161
|
"Being edited in": "En cours d'édition dans",
|
|
142
162
|
"Camunda properties, templates and lint": "Propriétés Camunda, modèles et linting",
|
|
163
|
+
"Child process": "Processus enfant",
|
|
143
164
|
"Clear search": "Effacer la recherche",
|
|
144
165
|
Close: "Fermer",
|
|
145
166
|
Collapse: "Réduire",
|
|
@@ -150,8 +171,10 @@ var c = {
|
|
|
150
171
|
"Engine-neutral modeling": "Modélisation indépendante du moteur",
|
|
151
172
|
Expand: "Développer",
|
|
152
173
|
Favourites: "Favoris",
|
|
174
|
+
Human: "Humain",
|
|
153
175
|
Implement: "Implémenter",
|
|
154
176
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "« Implémenter » nécessite une plateforme d'exécution Camunda ; ce modèle n'en a aucune. Attribuez-en une pour l'activer.",
|
|
177
|
+
"Java delegate": "Java delegate",
|
|
155
178
|
Mode: "Mode",
|
|
156
179
|
"Mode: {mode}": "Mode : {mode}",
|
|
157
180
|
"Name or code": "Nom ou code",
|
|
@@ -177,12 +200,16 @@ var c = {
|
|
|
177
200
|
"read-only": "lecture seule",
|
|
178
201
|
required: "obligatoire",
|
|
179
202
|
"thrown by {elements}": "déclenché par {elements}",
|
|
180
|
-
"{count} properties": "{count} propriétés"
|
|
203
|
+
"{count} properties": "{count} propriétés",
|
|
204
|
+
"{count} property": "{count} propriété"
|
|
181
205
|
},
|
|
182
206
|
it: {
|
|
183
207
|
"Apply Template": "Applica modello",
|
|
208
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Lavoro automatizzato svolto da un Java delegate, un'espressione o un'attività esterna",
|
|
209
|
+
"Automated work carried out by a system": "Lavoro automatizzato svolto da un sistema",
|
|
184
210
|
"Being edited in": "In modifica in",
|
|
185
211
|
"Camunda properties, templates and lint": "Proprietà Camunda, modelli e linting",
|
|
212
|
+
"Child process": "Processo figlio",
|
|
186
213
|
"Clear search": "Cancella ricerca",
|
|
187
214
|
Close: "Chiudi",
|
|
188
215
|
Collapse: "Comprimi",
|
|
@@ -193,8 +220,10 @@ var c = {
|
|
|
193
220
|
"Engine-neutral modeling": "Modellazione indipendente dal motore",
|
|
194
221
|
Expand: "Espandi",
|
|
195
222
|
Favourites: "Preferiti",
|
|
223
|
+
Human: "Umano",
|
|
196
224
|
Implement: "Implementa",
|
|
197
225
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "«Implementa» richiede una piattaforma di esecuzione Camunda; questo modello non ne ha una. Assegnane una per abilitarla.",
|
|
226
|
+
"Java delegate": "Java delegate",
|
|
198
227
|
Mode: "Modalità",
|
|
199
228
|
"Mode: {mode}": "Modalità: {mode}",
|
|
200
229
|
"Name or code": "Nome o codice",
|
|
@@ -220,12 +249,16 @@ var c = {
|
|
|
220
249
|
"read-only": "sola lettura",
|
|
221
250
|
required: "obbligatorio",
|
|
222
251
|
"thrown by {elements}": "generato da {elements}",
|
|
223
|
-
"{count} properties": "{count} proprietà"
|
|
252
|
+
"{count} properties": "{count} proprietà",
|
|
253
|
+
"{count} property": "{count} proprietà"
|
|
224
254
|
},
|
|
225
255
|
ja: {
|
|
226
256
|
"Apply Template": "テンプレートを適用",
|
|
257
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Java デリゲート、式、または外部タスクが実行する自動化された作業です",
|
|
258
|
+
"Automated work carried out by a system": "システムが実行する自動化された作業です",
|
|
227
259
|
"Being edited in": "編集中:",
|
|
228
260
|
"Camunda properties, templates and lint": "Camunda のプロパティ、テンプレート、リント",
|
|
261
|
+
"Child process": "子プロセス",
|
|
229
262
|
"Clear search": "検索をクリア",
|
|
230
263
|
Close: "閉じる",
|
|
231
264
|
Collapse: "折りたたむ",
|
|
@@ -236,8 +269,10 @@ var c = {
|
|
|
236
269
|
"Engine-neutral modeling": "エンジン非依存のモデリング",
|
|
237
270
|
Expand: "展開",
|
|
238
271
|
Favourites: "お気に入り",
|
|
272
|
+
Human: "人",
|
|
239
273
|
Implement: "実装",
|
|
240
274
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "実装には Camunda 実行プラットフォームが必要ですが、このモデルにはありません。有効にするには割り当ててください。",
|
|
275
|
+
"Java delegate": "Java デリゲート",
|
|
241
276
|
Mode: "モード",
|
|
242
277
|
"Mode: {mode}": "モード: {mode}",
|
|
243
278
|
"Name or code": "名前またはコード",
|
|
@@ -263,12 +298,16 @@ var c = {
|
|
|
263
298
|
"read-only": "読み取り専用",
|
|
264
299
|
required: "必須",
|
|
265
300
|
"thrown by {elements}": "スロー元: {elements}",
|
|
266
|
-
"{count} properties": "{count} 個のプロパティ"
|
|
301
|
+
"{count} properties": "{count} 個のプロパティ",
|
|
302
|
+
"{count} property": "{count} 個のプロパティ"
|
|
267
303
|
},
|
|
268
304
|
ko: {
|
|
269
305
|
"Apply Template": "템플릿 적용",
|
|
306
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Java 델리게이트, 표현식 또는 외부 작업이 수행하는 자동화된 작업입니다",
|
|
307
|
+
"Automated work carried out by a system": "시스템이 수행하는 자동화된 작업입니다",
|
|
270
308
|
"Being edited in": "편집 중:",
|
|
271
309
|
"Camunda properties, templates and lint": "Camunda 속성, 템플릿 및 린트",
|
|
310
|
+
"Child process": "자식 프로세스",
|
|
272
311
|
"Clear search": "검색 지우기",
|
|
273
312
|
Close: "닫기",
|
|
274
313
|
Collapse: "접기",
|
|
@@ -279,8 +318,10 @@ var c = {
|
|
|
279
318
|
"Engine-neutral modeling": "엔진 중립적 모델링",
|
|
280
319
|
Expand: "펼치기",
|
|
281
320
|
Favourites: "즐겨찾기",
|
|
321
|
+
Human: "사람",
|
|
282
322
|
Implement: "구현",
|
|
283
323
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "구현하려면 Camunda 실행 플랫폼이 필요하지만 이 모델에는 없습니다. 사용하려면 하나를 지정하세요.",
|
|
324
|
+
"Java delegate": "Java 델리게이트",
|
|
284
325
|
Mode: "모드",
|
|
285
326
|
"Mode: {mode}": "모드: {mode}",
|
|
286
327
|
"Name or code": "이름 또는 코드",
|
|
@@ -306,12 +347,16 @@ var c = {
|
|
|
306
347
|
"read-only": "읽기 전용",
|
|
307
348
|
required: "필수",
|
|
308
349
|
"thrown by {elements}": "발생: {elements}",
|
|
309
|
-
"{count} properties": "{count}개 속성"
|
|
350
|
+
"{count} properties": "{count}개 속성",
|
|
351
|
+
"{count} property": "{count}개 속성"
|
|
310
352
|
},
|
|
311
353
|
"nl-nl": {
|
|
312
354
|
"Apply Template": "Sjabloon toepassen",
|
|
355
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Geautomatiseerd werk dat door een Java delegate, expressie of external task wordt uitgevoerd",
|
|
356
|
+
"Automated work carried out by a system": "Geautomatiseerd werk dat door een systeem wordt uitgevoerd",
|
|
313
357
|
"Being edited in": "Wordt bewerkt in",
|
|
314
358
|
"Camunda properties, templates and lint": "Camunda-eigenschappen, sjablonen en linting",
|
|
359
|
+
"Child process": "Kindproces",
|
|
315
360
|
"Clear search": "Zoekopdracht wissen",
|
|
316
361
|
Close: "Sluiten",
|
|
317
362
|
Collapse: "Samenvouwen",
|
|
@@ -322,8 +367,10 @@ var c = {
|
|
|
322
367
|
"Engine-neutral modeling": "Engine-neutraal modelleren",
|
|
323
368
|
Expand: "Uitvouwen",
|
|
324
369
|
Favourites: "Favorieten",
|
|
370
|
+
Human: "Mens",
|
|
325
371
|
Implement: "Implementeren",
|
|
326
372
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Voor Implementeren is een Camunda-uitvoeringsplatform nodig; dit model heeft er geen. Wijs er een toe om het in te schakelen.",
|
|
373
|
+
"Java delegate": "Java delegate",
|
|
327
374
|
Mode: "Modus",
|
|
328
375
|
"Mode: {mode}": "Modus: {mode}",
|
|
329
376
|
"Name or code": "Naam of code",
|
|
@@ -349,12 +396,16 @@ var c = {
|
|
|
349
396
|
"read-only": "alleen-lezen",
|
|
350
397
|
required: "verplicht",
|
|
351
398
|
"thrown by {elements}": "gegooid door {elements}",
|
|
352
|
-
"{count} properties": "{count} eigenschappen"
|
|
399
|
+
"{count} properties": "{count} eigenschappen",
|
|
400
|
+
"{count} property": "{count} eigenschap"
|
|
353
401
|
},
|
|
354
402
|
"pt-br": {
|
|
355
403
|
"Apply Template": "Aplicar modelo",
|
|
404
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Trabalho automatizado executado por um Java delegate, uma expressão ou uma tarefa externa",
|
|
405
|
+
"Automated work carried out by a system": "Trabalho automatizado executado por um sistema",
|
|
356
406
|
"Being edited in": "Sendo editado em",
|
|
357
407
|
"Camunda properties, templates and lint": "Propriedades do Camunda, modelos e linting",
|
|
408
|
+
"Child process": "Processo filho",
|
|
358
409
|
"Clear search": "Limpar pesquisa",
|
|
359
410
|
Close: "Fechar",
|
|
360
411
|
Collapse: "Recolher",
|
|
@@ -365,8 +416,10 @@ var c = {
|
|
|
365
416
|
"Engine-neutral modeling": "Modelagem independente do motor",
|
|
366
417
|
Expand: "Expandir",
|
|
367
418
|
Favourites: "Favoritos",
|
|
419
|
+
Human: "Humano",
|
|
368
420
|
Implement: "Implementar",
|
|
369
421
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Implementar precisa de uma plataforma de execução Camunda; este modelo não tem nenhuma. Atribua uma para habilitá-la.",
|
|
422
|
+
"Java delegate": "Java delegate",
|
|
370
423
|
Mode: "Modo",
|
|
371
424
|
"Mode: {mode}": "Modo: {mode}",
|
|
372
425
|
"Name or code": "Nome ou código",
|
|
@@ -392,12 +445,16 @@ var c = {
|
|
|
392
445
|
"read-only": "somente leitura",
|
|
393
446
|
required: "obrigatório",
|
|
394
447
|
"thrown by {elements}": "lançado por {elements}",
|
|
395
|
-
"{count} properties": "{count} propriedades"
|
|
448
|
+
"{count} properties": "{count} propriedades",
|
|
449
|
+
"{count} property": "{count} propriedade"
|
|
396
450
|
},
|
|
397
451
|
ru: {
|
|
398
452
|
"Apply Template": "Применить шаблон",
|
|
453
|
+
"Automated work carried out by a Java delegate, expression, or external task": "Автоматизированная работа, выполняемая Java delegate, выражением или внешней задачей",
|
|
454
|
+
"Automated work carried out by a system": "Автоматизированная работа, выполняемая системой",
|
|
399
455
|
"Being edited in": "Редактируется в",
|
|
400
456
|
"Camunda properties, templates and lint": "Свойства Camunda, шаблоны и линтинг",
|
|
457
|
+
"Child process": "Дочерний процесс",
|
|
401
458
|
"Clear search": "Очистить поиск",
|
|
402
459
|
Close: "Закрыть",
|
|
403
460
|
Collapse: "Свернуть",
|
|
@@ -408,8 +465,10 @@ var c = {
|
|
|
408
465
|
"Engine-neutral modeling": "Моделирование без привязки к движку",
|
|
409
466
|
Expand: "Развернуть",
|
|
410
467
|
Favourites: "Избранное",
|
|
468
|
+
Human: "Человек",
|
|
411
469
|
Implement: "Реализация",
|
|
412
470
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "Для «Реализации» нужна платформа исполнения Camunda, но у этой модели её нет. Назначьте её, чтобы включить.",
|
|
471
|
+
"Java delegate": "Java delegate",
|
|
413
472
|
Mode: "Режим",
|
|
414
473
|
"Mode: {mode}": "Режим: {mode}",
|
|
415
474
|
"Name or code": "Имя или код",
|
|
@@ -435,12 +494,16 @@ var c = {
|
|
|
435
494
|
"read-only": "только для чтения",
|
|
436
495
|
required: "обязательно",
|
|
437
496
|
"thrown by {elements}": "генерирует: {elements}",
|
|
438
|
-
"{count} properties": "Свойств: {count}"
|
|
497
|
+
"{count} properties": "Свойств: {count}",
|
|
498
|
+
"{count} property": "Свойств: {count}"
|
|
439
499
|
},
|
|
440
500
|
"zh-Hans": {
|
|
441
501
|
"Apply Template": "应用模板",
|
|
502
|
+
"Automated work carried out by a Java delegate, expression, or external task": "由 Java delegate、表达式或外部任务执行的自动化工作",
|
|
503
|
+
"Automated work carried out by a system": "由系统执行的自动化工作",
|
|
442
504
|
"Being edited in": "正在编辑于",
|
|
443
505
|
"Camunda properties, templates and lint": "Camunda 属性、模板和校验",
|
|
506
|
+
"Child process": "子流程",
|
|
444
507
|
"Clear search": "清除搜索",
|
|
445
508
|
Close: "关闭",
|
|
446
509
|
Collapse: "折叠",
|
|
@@ -451,8 +514,10 @@ var c = {
|
|
|
451
514
|
"Engine-neutral modeling": "与引擎无关的建模",
|
|
452
515
|
Expand: "展开",
|
|
453
516
|
Favourites: "收藏夹",
|
|
517
|
+
Human: "人工",
|
|
454
518
|
Implement: "实现",
|
|
455
519
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "“实现”需要 Camunda 执行平台,但此模型没有。请分配一个以启用。",
|
|
520
|
+
"Java delegate": "Java delegate",
|
|
456
521
|
Mode: "模式",
|
|
457
522
|
"Mode: {mode}": "模式:{mode}",
|
|
458
523
|
"Name or code": "名称或代码",
|
|
@@ -478,12 +543,16 @@ var c = {
|
|
|
478
543
|
"read-only": "只读",
|
|
479
544
|
required: "必填",
|
|
480
545
|
"thrown by {elements}": "抛出方:{elements}",
|
|
481
|
-
"{count} properties": "{count} 个属性"
|
|
546
|
+
"{count} properties": "{count} 个属性",
|
|
547
|
+
"{count} property": "{count} 个属性"
|
|
482
548
|
},
|
|
483
549
|
"zh-Hant": {
|
|
484
550
|
"Apply Template": "套用範本",
|
|
551
|
+
"Automated work carried out by a Java delegate, expression, or external task": "由 Java delegate、表達式或外部任務執行的自動化工作",
|
|
552
|
+
"Automated work carried out by a system": "由系統執行的自動化工作",
|
|
485
553
|
"Being edited in": "正在編輯於",
|
|
486
554
|
"Camunda properties, templates and lint": "Camunda 屬性、範本與檢查",
|
|
555
|
+
"Child process": "子流程",
|
|
487
556
|
"Clear search": "清除搜尋",
|
|
488
557
|
Close: "關閉",
|
|
489
558
|
Collapse: "收合",
|
|
@@ -494,8 +563,10 @@ var c = {
|
|
|
494
563
|
"Engine-neutral modeling": "與引擎無關的建模",
|
|
495
564
|
Expand: "展開",
|
|
496
565
|
Favourites: "我的最愛",
|
|
566
|
+
Human: "人工",
|
|
497
567
|
Implement: "實作",
|
|
498
568
|
"Implement needs a Camunda execution platform — this model has none. Assign one to enable it.": "「實作」需要 Camunda 執行平台,但此模型沒有。請指派一個以啟用。",
|
|
569
|
+
"Java delegate": "Java delegate",
|
|
499
570
|
Mode: "模式",
|
|
500
571
|
"Mode: {mode}": "模式:{mode}",
|
|
501
572
|
"Name or code": "名稱或代碼",
|
|
@@ -521,29 +592,102 @@ var c = {
|
|
|
521
592
|
"read-only": "唯讀",
|
|
522
593
|
required: "必填",
|
|
523
594
|
"thrown by {elements}": "拋出方:{elements}",
|
|
524
|
-
"{count} properties": "{count} 個屬性"
|
|
595
|
+
"{count} properties": "{count} 個屬性",
|
|
596
|
+
"{count} property": "{count} 個屬性"
|
|
597
|
+
}
|
|
598
|
+
}, u = 10;
|
|
599
|
+
function d(e) {
|
|
600
|
+
let t = /* @__PURE__ */ new Set();
|
|
601
|
+
function n(n) {
|
|
602
|
+
let r = c((...e) => {
|
|
603
|
+
t.delete(i), n(...e);
|
|
604
|
+
}, e), i = Object.assign((...e) => {
|
|
605
|
+
t.add(i), r(...e);
|
|
606
|
+
}, {
|
|
607
|
+
flush: () => {
|
|
608
|
+
r.flush();
|
|
609
|
+
},
|
|
610
|
+
cancel: () => {
|
|
611
|
+
t.delete(i), r.cancel();
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
return i;
|
|
615
|
+
}
|
|
616
|
+
return Object.assign(n, {
|
|
617
|
+
hasPending: () => t.size > 0,
|
|
618
|
+
flush: () => {
|
|
619
|
+
let e = [];
|
|
620
|
+
for (let n = 0; n < u && t.size > 0; n++) for (let n of [...t]) try {
|
|
621
|
+
n.flush();
|
|
622
|
+
} catch (t) {
|
|
623
|
+
e.push(t);
|
|
624
|
+
}
|
|
625
|
+
if (e.length > 0) throw e[0];
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
//#endregion
|
|
630
|
+
//#region ../../libs/modeler-types/src/errors.ts
|
|
631
|
+
var f = class extends Error {
|
|
632
|
+
constructor() {
|
|
633
|
+
super("Modeler is not initialized!");
|
|
525
634
|
}
|
|
526
635
|
};
|
|
527
636
|
//#endregion
|
|
528
637
|
//#region ../../libs/modeler-types/src/canvasResize.ts
|
|
529
|
-
function
|
|
530
|
-
let r = n.createObserver ??
|
|
638
|
+
function p(e, t, n = {}) {
|
|
639
|
+
let r = n.createObserver ?? m();
|
|
531
640
|
if (!r) return () => void 0;
|
|
532
641
|
let i = n.applyInitialViewport === void 0, a = r(() => {
|
|
533
642
|
e.resized(), i ||= n.applyInitialViewport();
|
|
534
643
|
});
|
|
535
644
|
return a.observe(t), () => a.disconnect();
|
|
536
645
|
}
|
|
537
|
-
function
|
|
646
|
+
function m() {
|
|
538
647
|
let e = globalThis.ResizeObserver;
|
|
539
648
|
return e ? (t) => new e(t) : void 0;
|
|
540
649
|
}
|
|
541
650
|
//#endregion
|
|
542
|
-
//#region ../../libs/modeler-types/src/
|
|
543
|
-
var
|
|
544
|
-
|
|
651
|
+
//#region ../../libs/modeler-types/src/disposableStore.ts
|
|
652
|
+
var h = class {
|
|
653
|
+
constructor() {
|
|
654
|
+
this.disposers = [], this.disposed = !1;
|
|
655
|
+
}
|
|
656
|
+
get isDisposed() {
|
|
657
|
+
return this.disposed;
|
|
658
|
+
}
|
|
659
|
+
add(...e) {
|
|
660
|
+
if (this.disposed) for (let t = e.length - 1; t >= 0; t--) e[t]();
|
|
661
|
+
else this.disposers.push(...e);
|
|
662
|
+
}
|
|
663
|
+
dispose() {
|
|
664
|
+
if (this.disposed) return;
|
|
665
|
+
this.disposed = !0;
|
|
666
|
+
let e = this.disposers.splice(0).reverse(), t, n = !1;
|
|
667
|
+
for (let r of e) try {
|
|
668
|
+
r();
|
|
669
|
+
} catch (e) {
|
|
670
|
+
n || (n = !0, t = e);
|
|
671
|
+
}
|
|
672
|
+
if (n) throw t;
|
|
673
|
+
}
|
|
674
|
+
}, g = class {
|
|
675
|
+
constructor() {
|
|
676
|
+
this.disposed = !1;
|
|
677
|
+
}
|
|
678
|
+
set(e) {
|
|
679
|
+
let t = this.current;
|
|
680
|
+
this.current = void 0, t?.(), e !== void 0 && (this.disposed ? e() : this.current = e);
|
|
681
|
+
}
|
|
682
|
+
dispose() {
|
|
683
|
+
this.disposed = !0;
|
|
684
|
+
let e = this.current;
|
|
685
|
+
this.current = void 0, e?.();
|
|
686
|
+
}
|
|
687
|
+
}, _ = "<svg class=\"canvas-focus-indicator__off\" viewBox=\"0 -960 960 960\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M367-367q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47Zm169.5-56.5Q560-447 560-480t-23.5-56.5Q513-560 480-560t-56.5 23.5Q400-513 400-480t23.5 56.5Q447-400 480-400t56.5-23.5ZM480-480ZM200-120q-33 0-56.5-23.5T120-200v-160h80v160h160v80H200Zm400 0v-80h160v-160h80v160q0 33-23.5 56.5T760-120H600ZM120-600v-160q0-33 23.5-56.5T200-840h160v80H200v160h-80Zm640 0v-160H600v-80h160q33 0 56.5 23.5T840-760v160h-80Z\"/></svg>", v = "<svg class=\"canvas-focus-indicator__on\" viewBox=\"0 -960 960 960\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M200-120q-33 0-56.5-23.5T120-200v-160h80v160h160v80H200Zm400 0v-80h160v-160h80v160q0 33-23.5 56.5T760-120H600ZM120-600v-160q0-33 23.5-56.5T200-840h160v80H200v160h-80Zm640 0v-160H600v-80h160q33 0 56.5 23.5T840-760v160h-80ZM338.5-338.5Q280-397 280-480t58.5-141.5Q397-680 480-680t141.5 58.5Q680-563 680-480t-58.5 141.5Q563-280 480-280t-141.5-58.5Z\"/></svg>";
|
|
688
|
+
function y(e) {
|
|
545
689
|
let t = document.createElement("div");
|
|
546
|
-
t.className = "canvas-focus-indicator", t.setAttribute("aria-hidden", "true"), t.innerHTML =
|
|
690
|
+
t.className = "canvas-focus-indicator", t.setAttribute("aria-hidden", "true"), t.innerHTML = _ + v;
|
|
547
691
|
let n = e.isFocused(), r = e.hasSelection(), i = () => {
|
|
548
692
|
t.classList.toggle("is-focused", n && !r);
|
|
549
693
|
};
|
|
@@ -554,37 +698,70 @@ function p(e) {
|
|
|
554
698
|
}), e.parent.append(t), () => t.remove();
|
|
555
699
|
}
|
|
556
700
|
//#endregion
|
|
701
|
+
//#region ../../libs/modeler-types/src/surfaceTheme.ts
|
|
702
|
+
var b = class {
|
|
703
|
+
constructor(e, t) {
|
|
704
|
+
this.scopeRoots = e, this.attribute = t, this.disposed = !1;
|
|
705
|
+
}
|
|
706
|
+
setMode(e) {
|
|
707
|
+
this.disposed || e === this.mode || (this.mode = e, e === "automatic" ? this.startFollowingPreferredScheme() : (this.stopFollowingPreferredScheme(), this.apply(e)));
|
|
708
|
+
}
|
|
709
|
+
dispose() {
|
|
710
|
+
this.disposed = !0, this.stopFollowingPreferredScheme();
|
|
711
|
+
for (let e of this.scopeRoots) e.removeAttribute(this.attribute);
|
|
712
|
+
}
|
|
713
|
+
apply(e) {
|
|
714
|
+
for (let t of this.scopeRoots) t.setAttribute(this.attribute, e);
|
|
715
|
+
x(e);
|
|
716
|
+
}
|
|
717
|
+
startFollowingPreferredScheme() {
|
|
718
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
719
|
+
this.apply(e.matches ? "dark" : "light"), !this.mediaListener && (this.mediaQuery = e, this.mediaListener = (e) => {
|
|
720
|
+
this.mode === "automatic" && this.apply(e.matches ? "dark" : "light");
|
|
721
|
+
}, this.mediaQuery.addEventListener("change", this.mediaListener));
|
|
722
|
+
}
|
|
723
|
+
stopFollowingPreferredScheme() {
|
|
724
|
+
this.mediaQuery && this.mediaListener && this.mediaQuery.removeEventListener("change", this.mediaListener), this.mediaQuery = void 0, this.mediaListener = void 0;
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
function x(e) {
|
|
728
|
+
let t = document.querySelector("#theme-link");
|
|
729
|
+
if (!t) return;
|
|
730
|
+
let n = t.href, r = n.split("/").pop();
|
|
731
|
+
e === "dark" && r === "lightTheme.css" ? t.href = n.replace(/lightTheme\.css$/, "darkTheme.css") : e === "light" && r === "darkTheme.css" && (t.href = n.replace(/darkTheme\.css$/, "lightTheme.css"));
|
|
732
|
+
}
|
|
733
|
+
//#endregion
|
|
557
734
|
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
558
|
-
function
|
|
735
|
+
function S(e) {
|
|
559
736
|
"@babel/helpers - typeof";
|
|
560
|
-
return
|
|
737
|
+
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
561
738
|
return typeof e;
|
|
562
739
|
} : function(e) {
|
|
563
740
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
564
|
-
},
|
|
741
|
+
}, S(e);
|
|
565
742
|
}
|
|
566
743
|
//#endregion
|
|
567
744
|
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
568
|
-
function
|
|
569
|
-
if (
|
|
745
|
+
function C(e, t) {
|
|
746
|
+
if (S(e) != "object" || !e) return e;
|
|
570
747
|
var n = e[Symbol.toPrimitive];
|
|
571
748
|
if (n !== void 0) {
|
|
572
749
|
var r = n.call(e, t || "default");
|
|
573
|
-
if (
|
|
750
|
+
if (S(r) != "object") return r;
|
|
574
751
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
575
752
|
}
|
|
576
753
|
return (t === "string" ? String : Number)(e);
|
|
577
754
|
}
|
|
578
755
|
//#endregion
|
|
579
756
|
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
580
|
-
function
|
|
581
|
-
var t =
|
|
582
|
-
return
|
|
757
|
+
function w(e) {
|
|
758
|
+
var t = C(e, "string");
|
|
759
|
+
return S(t) == "symbol" ? t : t + "";
|
|
583
760
|
}
|
|
584
761
|
//#endregion
|
|
585
762
|
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
586
|
-
function
|
|
587
|
-
return (t =
|
|
763
|
+
function T(e, t, n) {
|
|
764
|
+
return (t = w(t)) in e ? Object.defineProperty(e, t, {
|
|
588
765
|
value: n,
|
|
589
766
|
enumerable: !0,
|
|
590
767
|
configurable: !0,
|
|
@@ -592,41 +769,8 @@ function _(e, t, n) {
|
|
|
592
769
|
}) : e[t] = n, e;
|
|
593
770
|
}
|
|
594
771
|
//#endregion
|
|
595
|
-
//#region src/theme.ts
|
|
596
|
-
var v = "data-dmn-theme", y = class {
|
|
597
|
-
constructor(e) {
|
|
598
|
-
_(this, "scopeRoots", void 0), _(this, "mode", void 0), _(this, "mediaQuery", void 0), _(this, "mediaListener", void 0), this.scopeRoots = e;
|
|
599
|
-
}
|
|
600
|
-
setMode(e) {
|
|
601
|
-
e !== this.mode && (this.mode = e, e === "automatic" ? this.startFollowingPreferredScheme() : (this.stopFollowingPreferredScheme(), this.apply(e)));
|
|
602
|
-
}
|
|
603
|
-
dispose() {
|
|
604
|
-
this.stopFollowingPreferredScheme();
|
|
605
|
-
for (let e of this.scopeRoots) e.removeAttribute(v);
|
|
606
|
-
}
|
|
607
|
-
apply(e) {
|
|
608
|
-
for (let t of this.scopeRoots) t.setAttribute(v, e);
|
|
609
|
-
b(e);
|
|
610
|
-
}
|
|
611
|
-
startFollowingPreferredScheme() {
|
|
612
|
-
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
613
|
-
this.apply(e.matches ? "dark" : "light"), !this.mediaListener && (this.mediaQuery = e, this.mediaListener = (e) => {
|
|
614
|
-
this.mode === "automatic" && this.apply(e.matches ? "dark" : "light");
|
|
615
|
-
}, this.mediaQuery.addEventListener("change", this.mediaListener));
|
|
616
|
-
}
|
|
617
|
-
stopFollowingPreferredScheme() {
|
|
618
|
-
this.mediaQuery && this.mediaListener && this.mediaQuery.removeEventListener("change", this.mediaListener), this.mediaQuery = void 0, this.mediaListener = void 0;
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
function b(e) {
|
|
622
|
-
let t = document.querySelector("#theme-link");
|
|
623
|
-
if (!t) return;
|
|
624
|
-
let n = t.href, r = n.split("/").pop();
|
|
625
|
-
e === "dark" && r === "lightTheme.css" ? t.href = n.replace(/lightTheme\.css$/, "darkTheme.css") : e === "light" && r === "darkTheme.css" && (t.href = n.replace(/darkTheme\.css$/, "lightTheme.css"));
|
|
626
|
-
}
|
|
627
|
-
//#endregion
|
|
628
772
|
//#region src/modeler.ts
|
|
629
|
-
var
|
|
773
|
+
var E = {
|
|
630
774
|
options: [
|
|
631
775
|
{
|
|
632
776
|
value: "feel",
|
|
@@ -654,21 +798,21 @@ var x = {
|
|
|
654
798
|
}
|
|
655
799
|
],
|
|
656
800
|
defaults: { editor: "feel" }
|
|
657
|
-
},
|
|
801
|
+
}, D = "data-dmn-theme", O = [
|
|
658
802
|
"string",
|
|
659
803
|
"boolean",
|
|
660
804
|
"integer",
|
|
661
805
|
"long",
|
|
662
806
|
"double",
|
|
663
807
|
"date"
|
|
664
|
-
],
|
|
808
|
+
], k = 600, A = 300, j = class {
|
|
665
809
|
constructor(t, c) {
|
|
666
|
-
|
|
667
|
-
this.
|
|
668
|
-
}),
|
|
669
|
-
this.
|
|
810
|
+
T(this, "container", void 0), T(this, "options", void 0), T(this, "modeler", void 0), T(this, "store", new h()), T(this, "focusIndicator", new g()), T(this, "commandStackBinding", new g()), T(this, "propertiesPanelInput", d(k)), T(this, "viewEditorInput", d(A)), T(this, "activeEventBus", void 0), T(this, "themeController", void 0), T(this, "handleViewsChanged", (e) => {
|
|
811
|
+
this.store.isDisposed || (this.bindActiveViewer(), this.options.onViewChanged?.(e));
|
|
812
|
+
}), T(this, "handleContentChanged", () => {
|
|
813
|
+
this.store.isDisposed || this.options.onContentChanged?.();
|
|
670
814
|
}), this.container = t, this.options = c;
|
|
671
|
-
let
|
|
815
|
+
let l = c.additionalModules ?? {};
|
|
672
816
|
this.modeler = new n({
|
|
673
817
|
container: t,
|
|
674
818
|
drd: {
|
|
@@ -682,28 +826,40 @@ var x = {
|
|
|
682
826
|
a,
|
|
683
827
|
r,
|
|
684
828
|
o.decisionRequirementsDiagram,
|
|
685
|
-
|
|
829
|
+
M(this.propertiesPanelInput),
|
|
830
|
+
...l.drd ?? []
|
|
686
831
|
]
|
|
687
832
|
},
|
|
688
833
|
decisionTable: { additionalModules: [
|
|
689
834
|
e,
|
|
690
835
|
o.decisionTable,
|
|
691
|
-
|
|
836
|
+
M(this.viewEditorInput),
|
|
837
|
+
...l.decisionTable ?? []
|
|
838
|
+
] },
|
|
839
|
+
literalExpression: { additionalModules: [
|
|
840
|
+
e,
|
|
841
|
+
M(this.viewEditorInput),
|
|
842
|
+
...l.literalExpression ?? []
|
|
843
|
+
] },
|
|
844
|
+
boxedExpression: { additionalModules: [
|
|
845
|
+
e,
|
|
846
|
+
M(this.viewEditorInput),
|
|
847
|
+
...l.boxedExpression ?? []
|
|
692
848
|
] },
|
|
693
|
-
literalExpression: { additionalModules: [e, ...u.literalExpression ?? []] },
|
|
694
|
-
boxedExpression: { additionalModules: [e, ...u.boxedExpression ?? []] },
|
|
695
849
|
common: {
|
|
696
|
-
expressionLanguages: c.expressionLanguages ??
|
|
697
|
-
dataTypes: c.dataTypes ??
|
|
850
|
+
expressionLanguages: c.expressionLanguages ?? E,
|
|
851
|
+
dataTypes: c.dataTypes ?? O,
|
|
698
852
|
keyboard: c.keyboard
|
|
699
853
|
},
|
|
700
854
|
moddleExtensions: {
|
|
701
855
|
camunda: s,
|
|
702
856
|
...c.moddleExtensions
|
|
703
857
|
}
|
|
704
|
-
}), this.modeler.on("views.changed", this.handleViewsChanged), this.
|
|
705
|
-
this.
|
|
706
|
-
} }, t)
|
|
858
|
+
}), this.store.add(() => this.modeler.destroy()), this.modeler.on("views.changed", this.handleViewsChanged), this.store.add(() => this.modeler.off("views.changed", this.handleViewsChanged)), this.store.add(p({ resized: () => {
|
|
859
|
+
this.store.isDisposed || this.getActiveCanvas()?.resized();
|
|
860
|
+
} }, t)), this.store.add(() => {
|
|
861
|
+
this.commandStackBinding.dispose(), this.activeEventBus = void 0;
|
|
862
|
+
}, () => this.focusIndicator.dispose());
|
|
707
863
|
}
|
|
708
864
|
async loadDiagram(e) {
|
|
709
865
|
this.assertLive();
|
|
@@ -711,7 +867,7 @@ var x = {
|
|
|
711
867
|
let t = await this.modeler.importXML(e);
|
|
712
868
|
return this.bindActiveViewer(), this.reportWarnings(t.warnings), t;
|
|
713
869
|
} catch (e) {
|
|
714
|
-
throw
|
|
870
|
+
throw N("Unable to import DMN", e);
|
|
715
871
|
}
|
|
716
872
|
}
|
|
717
873
|
async exportDiagram() {
|
|
@@ -732,7 +888,7 @@ var x = {
|
|
|
732
888
|
let t = await this.modeler.open(e);
|
|
733
889
|
return this.bindActiveViewer(), this.reportWarnings(t.warnings), t;
|
|
734
890
|
} catch (t) {
|
|
735
|
-
throw
|
|
891
|
+
throw N(`Unable to open DMN view <${e.id}>`, t);
|
|
736
892
|
}
|
|
737
893
|
}
|
|
738
894
|
isDrdViewActive() {
|
|
@@ -754,7 +910,13 @@ var x = {
|
|
|
754
910
|
await this.openView(r), i && this.getActiveViewboxCanvas()?.viewbox(i);
|
|
755
911
|
}
|
|
756
912
|
setTheme(e) {
|
|
757
|
-
|
|
913
|
+
if (!this.store.isDisposed) {
|
|
914
|
+
if (!this.themeController) {
|
|
915
|
+
let e = new b([this.container, this.options.propertiesPanel.parent], D);
|
|
916
|
+
this.themeController = e, this.store.add(() => e.dispose());
|
|
917
|
+
}
|
|
918
|
+
this.themeController.setMode(e);
|
|
919
|
+
}
|
|
758
920
|
}
|
|
759
921
|
getService(e) {
|
|
760
922
|
this.assertLive();
|
|
@@ -762,18 +924,28 @@ var x = {
|
|
|
762
924
|
if (!t) throw Error("No active DMN view is available");
|
|
763
925
|
return t.get(e);
|
|
764
926
|
}
|
|
927
|
+
hasPendingInput() {
|
|
928
|
+
return !this.store.isDisposed && (this.propertiesPanelInput.hasPending() || this.viewEditorInput.hasPending());
|
|
929
|
+
}
|
|
930
|
+
flushPendingInput() {
|
|
931
|
+
if (!this.store.isDisposed) try {
|
|
932
|
+
this.propertiesPanelInput.flush();
|
|
933
|
+
} finally {
|
|
934
|
+
this.viewEditorInput.flush();
|
|
935
|
+
}
|
|
936
|
+
}
|
|
765
937
|
destroy() {
|
|
766
|
-
this.
|
|
938
|
+
this.store.dispose();
|
|
767
939
|
}
|
|
768
940
|
bindActiveViewer() {
|
|
769
|
-
if (this.
|
|
941
|
+
if (this.store.isDisposed) return;
|
|
770
942
|
let e = this.getActiveViewer()?.get("eventBus");
|
|
771
|
-
e !== this.activeEventBus && (this.
|
|
943
|
+
e !== this.activeEventBus && (this.activeEventBus = e, e?.on("commandStack.changed", this.handleContentChanged), this.commandStackBinding.set(e && (() => e.off("commandStack.changed", this.handleContentChanged))), this.syncCanvasFocusIndicator());
|
|
772
944
|
}
|
|
773
945
|
syncCanvasFocusIndicator() {
|
|
774
|
-
if (this.
|
|
946
|
+
if (this.focusIndicator.set(void 0), this.modeler.getActiveView()?.type !== "drd") return;
|
|
775
947
|
let e = this.getActiveViewer(), t = e?.get("canvas", !1), n = e?.get("selection", !1), r = e?.get("eventBus", !1);
|
|
776
|
-
t && n && r &&
|
|
948
|
+
t && n && r && this.focusIndicator.set(y({
|
|
777
949
|
parent: t.getContainer(),
|
|
778
950
|
isFocused: () => t.isFocused(),
|
|
779
951
|
onFocusChanged: (e) => r.on("canvas.focus.changed", (t) => e(t.focused)),
|
|
@@ -781,11 +953,8 @@ var x = {
|
|
|
781
953
|
onSelectionChanged: (e) => r.on("selection.changed", (t) => e(t.newSelection.length > 0))
|
|
782
954
|
}));
|
|
783
955
|
}
|
|
784
|
-
unbindCommandStack() {
|
|
785
|
-
this.activeEventBus?.off("commandStack.changed", this.handleContentChanged), this.activeEventBus = void 0;
|
|
786
|
-
}
|
|
787
956
|
reportWarnings(e) {
|
|
788
|
-
if (!this.
|
|
957
|
+
if (!this.store.isDisposed) for (let t of e) this.options.onWarning?.(F(t));
|
|
789
958
|
}
|
|
790
959
|
getActiveViewer() {
|
|
791
960
|
return this.modeler.getActiveViewer();
|
|
@@ -800,19 +969,22 @@ var x = {
|
|
|
800
969
|
if (this.modeler.getActiveView()?.type === "drd") return this.getActiveViewer()?.get("canvas", !1);
|
|
801
970
|
}
|
|
802
971
|
assertLive() {
|
|
803
|
-
if (this.
|
|
972
|
+
if (this.store.isDisposed) throw new f();
|
|
804
973
|
}
|
|
805
974
|
};
|
|
806
|
-
function
|
|
807
|
-
|
|
975
|
+
function M(e) {
|
|
976
|
+
return { debounceInput: ["value", e] };
|
|
977
|
+
}
|
|
978
|
+
function N(e, t) {
|
|
979
|
+
let n = t instanceof Error ? t.message : String(t), r = P(t).map(F).filter(Boolean), i = r.length > 0 ? `\n${r.join("\n")}` : "";
|
|
808
980
|
return Error(`${e}: ${n}${i}`, { cause: t });
|
|
809
981
|
}
|
|
810
|
-
function
|
|
982
|
+
function P(e) {
|
|
811
983
|
if (typeof e != "object" || !e || !("warnings" in e)) return [];
|
|
812
984
|
let t = e.warnings;
|
|
813
985
|
return Array.isArray(t) ? t : [];
|
|
814
986
|
}
|
|
815
|
-
function
|
|
987
|
+
function F(e) {
|
|
816
988
|
return [
|
|
817
989
|
e.message,
|
|
818
990
|
e.error?.message,
|
|
@@ -821,9 +993,9 @@ function E(e) {
|
|
|
821
993
|
}
|
|
822
994
|
//#endregion
|
|
823
995
|
//#region src/createModeler.ts
|
|
824
|
-
async function
|
|
825
|
-
t.extend(
|
|
826
|
-
let r = new
|
|
996
|
+
async function I(e, n) {
|
|
997
|
+
t.extend(l);
|
|
998
|
+
let r = new j(e, n);
|
|
827
999
|
try {
|
|
828
1000
|
r.setTheme(n.theme ?? "automatic"), n.locale && t.setLanguage(n.locale);
|
|
829
1001
|
} catch (e) {
|
|
@@ -835,4 +1007,4 @@ async function D(e, n) {
|
|
|
835
1007
|
return r;
|
|
836
1008
|
}
|
|
837
1009
|
//#endregion
|
|
838
|
-
export {
|
|
1010
|
+
export { f as NoModelerError, I as createModeler };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miragon/dmn-modeler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Host-free, embeddable DMN modeler (Camunda) built on dmn-js.",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@bpmn-io/cm-theme": "0.2.2",
|
|
56
|
-
"@bpmn-io/properties-panel": "3.
|
|
56
|
+
"@bpmn-io/properties-panel": "3.57.0",
|
|
57
57
|
"@emaarco/dmn-js-simulation": "0.3.2",
|
|
58
58
|
"@miragon/bpmn-modeler-i18n": "0.2.0",
|
|
59
59
|
"camunda-dmn-moddle": "1.3.1",
|
|
@@ -65,19 +65,20 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@microsoft/api-extractor": "7.59.4",
|
|
68
|
+
"@miragon/architecture-testing": "0.0.1",
|
|
68
69
|
"@miragon/bpmn-modeler-i18n-extras": "0.0.1",
|
|
69
70
|
"@miragon/bpmn-modeler-types": "0.0.1",
|
|
70
71
|
"@types/node": "26.6.5",
|
|
71
72
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
72
|
-
"@vitest/coverage-v8": "5.0.
|
|
73
|
-
"jsdom": "30.1.
|
|
73
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
74
|
+
"jsdom": "30.1.3",
|
|
74
75
|
"npm-run-all": "4.1.5",
|
|
75
|
-
"postcss": "8.5.
|
|
76
|
-
"postcss-selector-parser": "7.1.
|
|
76
|
+
"postcss": "8.5.31",
|
|
77
|
+
"postcss-selector-parser": "7.1.7",
|
|
77
78
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
78
79
|
"unplugin-dts": "1.1.2",
|
|
79
80
|
"vite": "8.3.4",
|
|
80
81
|
"vite-tsconfig-paths": "6.1.1",
|
|
81
|
-
"vitest": "5.0.
|
|
82
|
+
"vitest": "5.0.5"
|
|
82
83
|
}
|
|
83
84
|
}
|