@miragon/dmn-modeler 0.6.0 → 0.7.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 +23 -0
- package/README.md +5 -0
- package/dist/darkTheme.css +1 -1
- package/dist/dmn-modeler.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +28 -28
- package/dist/lightTheme.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare interface DmnOperationResult {
|
|
|
131
131
|
* (VS Code `<body>` classes) maps that signal to a forced mode in its adapter —
|
|
132
132
|
* the package does not read host chrome.
|
|
133
133
|
*/
|
|
134
|
-
export declare type DmnThemeMode =
|
|
134
|
+
export declare type DmnThemeMode = SurfaceThemeMode;
|
|
135
135
|
|
|
136
136
|
/** A view returned by {@link DmnModelerHandle.getViews}. */
|
|
137
137
|
export declare interface DmnView {
|
|
@@ -176,6 +176,12 @@ export declare class NoModelerError extends Error {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Theme selection for one modeler instance. `"automatic"` follows the
|
|
181
|
+
* OS/browser `prefers-color-scheme` live; `"light"`/`"dark"` force a fixed kind.
|
|
182
|
+
*/
|
|
183
|
+
declare type SurfaceThemeMode = "light" | "dark" | "automatic";
|
|
184
|
+
|
|
179
185
|
export { }
|
|
180
186
|
|
|
181
187
|
declare module "diagram-js/lib/core/EventBus" {
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TranslateModule as e, i18n as t } from "@miragon/bpmn-modeler-i18n";
|
|
2
|
-
import n from "
|
|
3
|
-
import
|
|
4
|
-
import o from "
|
|
5
|
-
import s from "
|
|
6
|
-
import c from "
|
|
2
|
+
import n from "lodash/debounce.js";
|
|
3
|
+
import r from "dmn-js/lib/Modeler";
|
|
4
|
+
import { CamundaPropertiesProviderModule as i, DmnPropertiesPanelModule as a, DmnPropertiesProviderModule as o } from "dmn-js-properties-panel";
|
|
5
|
+
import s from "@emaarco/dmn-js-simulation";
|
|
6
|
+
import c from "camunda-dmn-moddle/resources/camunda.json";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region ../../libs/bpmn-i18n-extras/src/languages/index.ts
|
|
9
9
|
var l = {
|
|
@@ -2686,22 +2686,22 @@ var l = {
|
|
|
2686
2686
|
}, u = 10;
|
|
2687
2687
|
function d(e) {
|
|
2688
2688
|
let t = /* @__PURE__ */ new Set();
|
|
2689
|
-
function
|
|
2690
|
-
let
|
|
2691
|
-
t.delete(
|
|
2692
|
-
}, e),
|
|
2693
|
-
t.add(
|
|
2689
|
+
function r(r) {
|
|
2690
|
+
let i = n((...e) => {
|
|
2691
|
+
t.delete(a), r(...e);
|
|
2692
|
+
}, e), a = Object.assign((...e) => {
|
|
2693
|
+
t.add(a), i(...e);
|
|
2694
2694
|
}, {
|
|
2695
2695
|
flush: () => {
|
|
2696
|
-
|
|
2696
|
+
i.flush();
|
|
2697
2697
|
},
|
|
2698
2698
|
cancel: () => {
|
|
2699
|
-
t.delete(
|
|
2699
|
+
t.delete(a), i.cancel();
|
|
2700
2700
|
}
|
|
2701
2701
|
});
|
|
2702
|
-
return
|
|
2702
|
+
return a;
|
|
2703
2703
|
}
|
|
2704
|
-
return Object.assign(
|
|
2704
|
+
return Object.assign(r, {
|
|
2705
2705
|
hasPending: () => t.size > 0,
|
|
2706
2706
|
flush: () => {
|
|
2707
2707
|
let e = [];
|
|
@@ -2894,33 +2894,33 @@ var E = {
|
|
|
2894
2894
|
"double",
|
|
2895
2895
|
"date"
|
|
2896
2896
|
], k = 600, A = 300, j = class {
|
|
2897
|
-
constructor(t,
|
|
2897
|
+
constructor(t, n) {
|
|
2898
2898
|
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) => {
|
|
2899
2899
|
this.store.isDisposed || (this.bindActiveViewer(), this.options.onViewChanged?.(e));
|
|
2900
2900
|
}), T(this, "handleContentChanged", () => {
|
|
2901
2901
|
this.store.isDisposed || this.options.onContentChanged?.();
|
|
2902
|
-
}), this.container = t, this.options =
|
|
2903
|
-
let l =
|
|
2904
|
-
this.modeler = new
|
|
2902
|
+
}), this.container = t, this.options = n;
|
|
2903
|
+
let l = n.additionalModules ?? {};
|
|
2904
|
+
this.modeler = new r({
|
|
2905
2905
|
container: t,
|
|
2906
2906
|
drd: {
|
|
2907
2907
|
propertiesPanel: {
|
|
2908
|
-
...
|
|
2908
|
+
...n.propertiesPanel,
|
|
2909
2909
|
feelPopupContainer: t
|
|
2910
2910
|
},
|
|
2911
2911
|
additionalModules: [
|
|
2912
2912
|
e,
|
|
2913
|
-
i,
|
|
2914
2913
|
a,
|
|
2915
|
-
|
|
2916
|
-
|
|
2914
|
+
o,
|
|
2915
|
+
i,
|
|
2916
|
+
s.decisionRequirementsDiagram,
|
|
2917
2917
|
M(this.propertiesPanelInput),
|
|
2918
2918
|
...l.drd ?? []
|
|
2919
2919
|
]
|
|
2920
2920
|
},
|
|
2921
2921
|
decisionTable: { additionalModules: [
|
|
2922
2922
|
e,
|
|
2923
|
-
|
|
2923
|
+
s.decisionTable,
|
|
2924
2924
|
M(this.viewEditorInput),
|
|
2925
2925
|
...l.decisionTable ?? []
|
|
2926
2926
|
] },
|
|
@@ -2935,13 +2935,13 @@ var E = {
|
|
|
2935
2935
|
...l.boxedExpression ?? []
|
|
2936
2936
|
] },
|
|
2937
2937
|
common: {
|
|
2938
|
-
expressionLanguages:
|
|
2939
|
-
dataTypes:
|
|
2940
|
-
keyboard:
|
|
2938
|
+
expressionLanguages: n.expressionLanguages ?? E,
|
|
2939
|
+
dataTypes: n.dataTypes ?? O,
|
|
2940
|
+
keyboard: n.keyboard
|
|
2941
2941
|
},
|
|
2942
2942
|
moddleExtensions: {
|
|
2943
|
-
camunda:
|
|
2944
|
-
...
|
|
2943
|
+
camunda: c,
|
|
2944
|
+
...n.moddleExtensions
|
|
2945
2945
|
}
|
|
2946
2946
|
}), 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: () => {
|
|
2947
2947
|
this.store.isDisposed || this.getActiveCanvas()?.resized();
|