@miragon/dmn-modeler 0.9.0 → 0.10.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/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import s from "@emaarco/dmn-js-simulation";
6
6
  import c from "camunda-dmn-moddle/resources/camunda.json";
7
7
  import l from "dmn-js/lib/Viewer";
8
8
  import u from "diagram-js/lib/navigation/movecanvas";
9
- import d from "diagram-js/lib/navigation/zoomscroll";
9
+ import ee from "diagram-js/lib/navigation/zoomscroll";
10
10
  // ../../libs/bpmn-i18n-extras/src/languages/index.ts
11
- var f = {
11
+ var d = {
12
12
  de: {
13
13
  "The linked form is missing or invalid. Check the form reference.": "Das verknüpfte Formular fehlt oder ist ungültig. Prüfen Sie den Formularverweis.",
14
14
  "Preview linked form": "Verknüpftes Formular vorschauen",
@@ -26,6 +26,11 @@ var f = {
26
26
  "The saved form is invalid or unsupported. Open it in the form editor.": "Das gespeicherte Formular ist ungültig oder wird nicht unterstützt. Öffnen Sie es im Formulareditor.",
27
27
  "The form preview could not be loaded. Refresh to try again.": "Die Formularvorschau konnte nicht geladen werden. Aktualisieren Sie die Vorschau.",
28
28
  Changes: "Änderungen",
29
+ "No changes": "Keine Änderungen",
30
+ "Show all": "Alle anzeigen",
31
+ "Show XML changes": "XML-Änderungen anzeigen",
32
+ "Old version": "Alte Version",
33
+ "New version": "Neue Version",
29
34
  "Not in this version": "Nicht in dieser Version",
30
35
  "It was removed. The version on the left shows it.": "Es wurde entfernt. Die Version links zeigt es.",
31
36
  "It is new. The version on the right shows it.": "Es ist neu. Die Version rechts zeigt es.",
@@ -254,6 +259,11 @@ var f = {
254
259
  "The saved form is invalid or unsupported. Open it in the form editor.": "The saved form is invalid or unsupported. Open it in the form editor.",
255
260
  "The form preview could not be loaded. Refresh to try again.": "The form preview could not be loaded. Refresh to try again.",
256
261
  Changes: "Changes",
262
+ "No changes": "No changes",
263
+ "Show all": "Show all",
264
+ "Show XML changes": "Show XML changes",
265
+ "Old version": "Old version",
266
+ "New version": "New version",
257
267
  "Not in this version": "Not in this version",
258
268
  "It was removed. The version on the left shows it.": "It was removed. The version on the left shows it.",
259
269
  "It is new. The version on the right shows it.": "It is new. The version on the right shows it.",
@@ -482,6 +492,11 @@ var f = {
482
492
  "The saved form is invalid or unsupported. Open it in the form editor.": "El formulario guardado no es válido o no es compatible. Ábralo en el editor de formularios.",
483
493
  "The form preview could not be loaded. Refresh to try again.": "No se pudo cargar la vista previa. Actualice para reintentar.",
484
494
  Changes: "Cambios",
495
+ "No changes": "Sin cambios",
496
+ "Show all": "Mostrar todo",
497
+ "Show XML changes": "Mostrar cambios en el XML",
498
+ "Old version": "Versión anterior",
499
+ "New version": "Versión nueva",
485
500
  "Not in this version": "No está en esta versión",
486
501
  "It was removed. The version on the left shows it.": "Se eliminó. La versión de la izquierda lo muestra.",
487
502
  "It is new. The version on the right shows it.": "Es nuevo. La versión de la derecha lo muestra.",
@@ -710,6 +725,11 @@ var f = {
710
725
  "The saved form is invalid or unsupported. Open it in the form editor.": "Le formulaire enregistré est invalide ou non pris en charge. Ouvrez-le dans l’éditeur de formulaires.",
711
726
  "The form preview could not be loaded. Refresh to try again.": "Impossible de charger l’aperçu du formulaire. Actualisez pour réessayer.",
712
727
  Changes: "Modifications",
728
+ "No changes": "Aucune modification",
729
+ "Show all": "Tout afficher",
730
+ "Show XML changes": "Afficher les modifications XML",
731
+ "Old version": "Ancienne version",
732
+ "New version": "Nouvelle version",
713
733
  "Not in this version": "Absent de cette version",
714
734
  "It was removed. The version on the left shows it.": "Il a été supprimé. La version de gauche l'affiche.",
715
735
  "It is new. The version on the right shows it.": "Il est nouveau. La version de droite l'affiche.",
@@ -938,6 +958,11 @@ var f = {
938
958
  "The saved form is invalid or unsupported. Open it in the form editor.": "Il modulo salvato non è valido o supportato. Aprilo nell’editor di moduli.",
939
959
  "The form preview could not be loaded. Refresh to try again.": "Impossibile caricare l’anteprima del modulo. Aggiorna per riprovare.",
940
960
  Changes: "Modifiche",
961
+ "No changes": "Nessuna modifica",
962
+ "Show all": "Mostra tutto",
963
+ "Show XML changes": "Mostra modifiche XML",
964
+ "Old version": "Versione precedente",
965
+ "New version": "Nuova versione",
941
966
  "Not in this version": "Non presente in questa versione",
942
967
  "It was removed. The version on the left shows it.": "È stato rimosso. La versione a sinistra lo mostra.",
943
968
  "It is new. The version on the right shows it.": "È nuovo. La versione a destra lo mostra.",
@@ -1166,6 +1191,11 @@ var f = {
1166
1191
  "The saved form is invalid or unsupported. Open it in the form editor.": "保存済みフォームが無効か未対応です。フォームエディターで開いてください。",
1167
1192
  "The form preview could not be loaded. Refresh to try again.": "フォームのプレビューを読み込めませんでした。更新して再試行してください。",
1168
1193
  Changes: "変更",
1194
+ "No changes": "変更なし",
1195
+ "Show all": "すべて表示",
1196
+ "Show XML changes": "XML の変更を表示",
1197
+ "Old version": "旧バージョン",
1198
+ "New version": "新バージョン",
1169
1199
  "Not in this version": "このバージョンにはありません",
1170
1200
  "It was removed. The version on the left shows it.": "削除されました。左側のバージョンに表示されています。",
1171
1201
  "It is new. The version on the right shows it.": "新しく追加されました。右側のバージョンに表示されています。",
@@ -1394,6 +1424,11 @@ var f = {
1394
1424
  "The saved form is invalid or unsupported. Open it in the form editor.": "저장된 양식이 유효하지 않거나 지원되지 않습니다. 양식 편집기에서 여세요.",
1395
1425
  "The form preview could not be loaded. Refresh to try again.": "양식 미리보기를 불러올 수 없습니다. 새로 고침하여 다시 시도하세요.",
1396
1426
  Changes: "변경 사항",
1427
+ "No changes": "변경 사항 없음",
1428
+ "Show all": "모두 표시",
1429
+ "Show XML changes": "XML 변경 사항 표시",
1430
+ "Old version": "이전 버전",
1431
+ "New version": "새 버전",
1397
1432
  "Not in this version": "이 버전에 없음",
1398
1433
  "It was removed. The version on the left shows it.": "제거되었습니다. 왼쪽 버전에 표시됩니다.",
1399
1434
  "It is new. The version on the right shows it.": "새로 추가되었습니다. 오른쪽 버전에 표시됩니다.",
@@ -1622,6 +1657,11 @@ var f = {
1622
1657
  "The saved form is invalid or unsupported. Open it in the form editor.": "Het opgeslagen formulier is ongeldig of niet ondersteund. Open het in de formuliereditor.",
1623
1658
  "The form preview could not be loaded. Refresh to try again.": "Het formuliervoorbeeld kon niet worden geladen. Vernieuw om opnieuw te proberen.",
1624
1659
  Changes: "Wijzigingen",
1660
+ "No changes": "Geen wijzigingen",
1661
+ "Show all": "Alles tonen",
1662
+ "Show XML changes": "XML-wijzigingen tonen",
1663
+ "Old version": "Oude versie",
1664
+ "New version": "Nieuwe versie",
1625
1665
  "Not in this version": "Niet in deze versie",
1626
1666
  "It was removed. The version on the left shows it.": "Het is verwijderd. De versie links toont het.",
1627
1667
  "It is new. The version on the right shows it.": "Het is nieuw. De versie rechts toont het.",
@@ -1850,6 +1890,11 @@ var f = {
1850
1890
  "The saved form is invalid or unsupported. Open it in the form editor.": "O formulário salvo é inválido ou não suportado. Abra-o no editor de formulários.",
1851
1891
  "The form preview could not be loaded. Refresh to try again.": "Não foi possível carregar a prévia do formulário. Atualize para tentar novamente.",
1852
1892
  Changes: "Alterações",
1893
+ "No changes": "Nenhuma alteração",
1894
+ "Show all": "Mostrar tudo",
1895
+ "Show XML changes": "Mostrar alterações no XML",
1896
+ "Old version": "Versão antiga",
1897
+ "New version": "Versão nova",
1853
1898
  "Not in this version": "Não está nesta versão",
1854
1899
  "It was removed. The version on the left shows it.": "Foi removido. A versão à esquerda o mostra.",
1855
1900
  "It is new. The version on the right shows it.": "É novo. A versão à direita o mostra.",
@@ -2078,6 +2123,11 @@ var f = {
2078
2123
  "The saved form is invalid or unsupported. Open it in the form editor.": "Сохранённая форма недопустима или не поддерживается. Откройте её в редакторе форм.",
2079
2124
  "The form preview could not be loaded. Refresh to try again.": "Не удалось загрузить предпросмотр формы. Обновите для повторной попытки.",
2080
2125
  Changes: "Изменения",
2126
+ "No changes": "Нет изменений",
2127
+ "Show all": "Показать все",
2128
+ "Show XML changes": "Показать изменения XML",
2129
+ "Old version": "Старая версия",
2130
+ "New version": "Новая версия",
2081
2131
  "Not in this version": "Нет в этой версии",
2082
2132
  "It was removed. The version on the left shows it.": "Элемент удалён. Он показан в версии слева.",
2083
2133
  "It is new. The version on the right shows it.": "Элемент новый. Он показан в версии справа.",
@@ -2306,6 +2356,11 @@ var f = {
2306
2356
  "The saved form is invalid or unsupported. Open it in the form editor.": "已保存的表单无效或不受支持。请在表单编辑器中打开。",
2307
2357
  "The form preview could not be loaded. Refresh to try again.": "无法加载表单预览。请刷新重试。",
2308
2358
  Changes: "更改",
2359
+ "No changes": "无更改",
2360
+ "Show all": "显示全部",
2361
+ "Show XML changes": "显示 XML 更改",
2362
+ "Old version": "旧版本",
2363
+ "New version": "新版本",
2309
2364
  "Not in this version": "此版本中不存在",
2310
2365
  "It was removed. The version on the left shows it.": "它已被删除。左侧版本中可以看到它。",
2311
2366
  "It is new. The version on the right shows it.": "它是新增的。右侧版本中可以看到它。",
@@ -2534,6 +2589,11 @@ var f = {
2534
2589
  "The saved form is invalid or unsupported. Open it in the form editor.": "已儲存的表單無效或不受支援。請在表單編輯器中開啟。",
2535
2590
  "The form preview could not be loaded. Refresh to try again.": "無法載入表單預覽。請重新整理後再試。",
2536
2591
  Changes: "變更",
2592
+ "No changes": "無變更",
2593
+ "Show all": "顯示全部",
2594
+ "Show XML changes": "顯示 XML 變更",
2595
+ "Old version": "舊版本",
2596
+ "New version": "新版本",
2537
2597
  "Not in this version": "此版本中不存在",
2538
2598
  "It was removed. The version on the left shows it.": "它已被刪除。左側版本中可以看到它。",
2539
2599
  "It is new. The version on the right shows it.": "它是新增的。右側版本中可以看到它。",
@@ -2745,7 +2805,7 @@ var f = {
2745
2805
  "Use the task definition": "使用工作定義",
2746
2806
  "Users cannot enter FEEL into a field they cannot edit.": "使用者無法在不可編輯的欄位中輸入 FEEL。"
2747
2807
  }
2748
- }, ee = 10;
2808
+ }, f = 10;
2749
2809
  function p(e) {
2750
2810
  let t = /* @__PURE__ */ new Set();
2751
2811
  function r(r) {
@@ -2767,7 +2827,7 @@ function p(e) {
2767
2827
  hasPending: () => t.size > 0,
2768
2828
  flush: () => {
2769
2829
  let e = [];
2770
- for (let n = 0; n < ee && t.size > 0; n++) for (let n of [...t]) try {
2830
+ for (let n = 0; n < f && t.size > 0; n++) for (let n of [...t]) try {
2771
2831
  n.flush();
2772
2832
  } catch (t) {
2773
2833
  e.push(t);
@@ -2795,17 +2855,128 @@ var m = [
2795
2855
  moved: "Moved",
2796
2856
  previous: "Prev change",
2797
2857
  next: "Next change",
2798
- swap: "Swap sides"
2858
+ swap: "Swap sides",
2859
+ none: "No changes",
2860
+ showAll: "Show all"
2861
+ }, v = {
2862
+ added: _.added,
2863
+ removed: _.removed,
2864
+ changed: _.changed,
2865
+ layoutChanged: _.moved
2799
2866
  };
2800
- _.added, _.removed, _.changed, _.moved;
2867
+ // ../../libs/modeler-types/src/dom.ts
2868
+ function y(e, t, n) {
2869
+ let r = document.createElement(e);
2870
+ return r.className = t, n !== void 0 && (r.textContent = n), r;
2871
+ }
2872
+ function b(e, t, n) {
2873
+ let r = y("button", e, n);
2874
+ return r.type = "button", r.addEventListener("click", t), r;
2875
+ }
2876
+ // ../../libs/modeler-types/src/diffLegendView.ts
2877
+ var x, S = {
2878
+ added: "added",
2879
+ removed: "removed",
2880
+ changed: "changed",
2881
+ layoutChanged: "layout"
2882
+ };
2883
+ x = class e {
2884
+ constructor(t, n, r) {
2885
+ this.actions = n, this.translator = r, this.element = y("div", "diff-legend"), this.filename = y("div", "diff-legend__filename"), this.countsRow = y("div", "diff-legend__counts"), this.countSlots = m.map((t) => e.countSlot(t)), this.none = y("span", "diff-legend__none"), this.position = y("span", "diff-legend__position"), this.swapGroup = y("div", "diff-legend__swap-group"), this.previousButton = e.iconButton("diff-legend__prev-btn", e.CHEVRON_LEFT, n.onPrevious), this.nextButton = e.iconButton("diff-legend__next-btn", e.CHEVRON_RIGHT, n.onNext), this.showAllButton = b("diff-legend__nav-btn diff-legend__show-all-btn", () => this.actions.onShowAll?.()), this.swapButton = b("diff-legend__nav-btn diff-legend__swap-btn", () => this.actions.onSwap?.(), "⇄"), this.assemble(), t.append(this.element), this.renderWords(), this.stopTranslating = r.onChange(() => this.renderWords());
2886
+ }
2887
+ update(e) {
2888
+ this.state = e, this.element.hidden = !1, this.countsRow.hidden = e.showChanges === !1, this.enableStepping(e.canStep), this.swapGroup.hidden = !(e.showSwap && this.actions.onSwap), this.filename.hidden = !e.filename, this.filename.textContent = e.filename ?? "", this.showStatus(e.status), this.showCounts(e.counts), this.showPosition(e.position), this.renderWords();
2889
+ }
2890
+ reserveRoomOn(e) {
2891
+ typeof ResizeObserver < "u" && (this.sizeObserver?.disconnect(), this.sizeObserver = new ResizeObserver(() => {
2892
+ let t = this.element.offsetHeight;
2893
+ t > 0 && e.style.setProperty("--diff-legend-height", `${t}px`);
2894
+ }), this.sizeObserver.observe(this.element));
2895
+ }
2896
+ destroy() {
2897
+ this.stopTranslating(), this.sizeObserver?.disconnect(), this.element.remove();
2898
+ }
2899
+ assemble() {
2900
+ this.element.setAttribute("role", "toolbar"), this.element.hidden = !0, this.none.hidden = !0, this.position.hidden = !0, this.showAllButton.hidden = !this.actions.onShowAll, this.swapGroup.hidden = !0, this.swapGroup.append(this.swapButton);
2901
+ let e = y("div", "diff-legend__nav");
2902
+ e.append(this.previousButton, this.nextButton, this.position, this.showAllButton), this.countsRow.append(...this.countSlots.map(({ slot: e }) => e), this.none, e, this.swapGroup), this.element.append(this.filename, this.countsRow);
2903
+ }
2904
+ enableStepping(e) {
2905
+ for (let t of [
2906
+ this.previousButton,
2907
+ this.nextButton,
2908
+ this.showAllButton
2909
+ ]) t.disabled = !e;
2910
+ }
2911
+ showStatus(t) {
2912
+ t && (this.status ??= this.prependStatusSlot(), this.status.swatch.className = e.swatchClass(t)), this.status && (this.status.slot.hidden = !t);
2913
+ }
2914
+ showCounts(t) {
2915
+ for (let { category: e, slot: n, count: r } of this.countSlots) {
2916
+ let i = t?.[e] ?? 0;
2917
+ n.hidden = i === 0, r.textContent = String(i);
2918
+ }
2919
+ this.none.hidden = !t || e.hasChanges(t);
2920
+ }
2921
+ showPosition(e) {
2922
+ this.position.hidden = !e, this.position.textContent = e ? `${e.index + 1}/${e.total}` : "";
2923
+ }
2924
+ prependStatusSlot() {
2925
+ let t = e.statusSlot();
2926
+ return this.countsRow.prepend(t.slot), t;
2927
+ }
2928
+ renderWords() {
2929
+ let t = (e) => this.translator.translate(e);
2930
+ this.element.setAttribute("aria-label", t(_.changes));
2931
+ for (let { category: e, label: n } of this.countSlots) n.data = `${t(v[e])} `;
2932
+ let n = this.state?.status;
2933
+ this.status && (this.status.label.data = n ? t(v[n]) : ""), this.none.textContent = t(_.none), this.showAllButton.textContent = t(_.showAll), e.nameIconButton(this.previousButton, t(_.previous)), e.nameIconButton(this.nextButton, t(_.next)), e.nameIconButton(this.swapButton, t(_.swap));
2934
+ }
2935
+ static hasChanges(e) {
2936
+ return m.some((t) => e[t] > 0);
2937
+ }
2938
+ static nameIconButton(e, t) {
2939
+ e.title = t, e.setAttribute("aria-label", t);
2940
+ }
2941
+ static iconButton(t, n, r) {
2942
+ let i = b(`diff-legend__nav-btn ${t}`, r);
2943
+ return i.append(e.chevron(n)), i;
2944
+ }
2945
+ static chevron(e) {
2946
+ let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
2947
+ n.setAttribute("viewBox", "0 0 24 24"), n.setAttribute("aria-hidden", "true"), n.classList.add("diff-legend__icon");
2948
+ let r = document.createElementNS(t, "path");
2949
+ return r.setAttribute("d", e), n.append(r), n;
2950
+ }
2951
+ static countSlot(t) {
2952
+ let n = y("div", `diff-legend__slot diff-legend__slot--${S[t]}`), r = y("span", "diff-legend__label"), i = document.createTextNode(""), a = y("b", "diff-legend__count");
2953
+ return r.append(i, a), n.append(y("span", e.swatchClass(t)), r), {
2954
+ category: t,
2955
+ slot: n,
2956
+ label: i,
2957
+ count: a
2958
+ };
2959
+ }
2960
+ static statusSlot() {
2961
+ let e = y("div", "diff-legend__slot diff-legend__slot--status"), t = y("span", "diff-legend__swatch"), n = y("span", "diff-legend__label"), r = document.createTextNode("");
2962
+ return n.append(r), e.append(t, n), {
2963
+ slot: e,
2964
+ swatch: t,
2965
+ label: r
2966
+ };
2967
+ }
2968
+ static swatchClass(e) {
2969
+ return `diff-legend__swatch diff-legend__swatch--${S[e]}`;
2970
+ }
2971
+ }, x.CHEVRON_LEFT = "m15 18-6-6 6-6", x.CHEVRON_RIGHT = "m9 18 6-6-6-6";
2801
2972
  // ../../libs/modeler-types/src/errors.ts
2802
- var v = class extends Error {
2973
+ var C = class extends Error {
2803
2974
  constructor() {
2804
2975
  super("Modeler is not initialized!");
2805
2976
  }
2806
2977
  };
2807
2978
  // ../../libs/modeler-types/src/canvasResize.ts
2808
- function y(e, t, n = {}) {
2979
+ function w(e, t, n = {}) {
2809
2980
  let r = n.createObserver ?? te();
2810
2981
  if (!r) return () => void 0;
2811
2982
  let i = n.applyInitialViewport === void 0, a = r(() => {
@@ -2818,7 +2989,7 @@ function te() {
2818
2989
  return e ? (t) => new e(t) : void 0;
2819
2990
  }
2820
2991
  // ../../libs/modeler-types/src/disposableStore.ts
2821
- var b = class {
2992
+ var T = class {
2822
2993
  constructor() {
2823
2994
  this.disposers = [], this.disposed = !1;
2824
2995
  }
@@ -2840,7 +3011,7 @@ var b = class {
2840
3011
  }
2841
3012
  if (n) throw t;
2842
3013
  }
2843
- }, x = class {
3014
+ }, E = class {
2844
3015
  constructor() {
2845
3016
  this.disposed = !1;
2846
3017
  }
@@ -2853,20 +3024,20 @@ var b = class {
2853
3024
  let e = this.current;
2854
3025
  this.current = void 0, e?.();
2855
3026
  }
2856
- }, S = 40, C = 30;
2857
- function w(e) {
3027
+ }, D = 40, O = 30;
3028
+ function k(e) {
2858
3029
  let { outer: t } = e.viewbox();
2859
3030
  return t.width >= 40 && t.height >= 40;
2860
3031
  }
2861
- function T(e) {
2862
- if (!w(e)) return !1;
3032
+ function ne(e) {
3033
+ if (!k(e)) return !1;
2863
3034
  let { inner: t, outer: n } = e.viewbox();
2864
3035
  if (!t.width || !t.height) return e.zoom("fit-viewport"), !0;
2865
3036
  let r = n.width / 4, i = n.height / 4, a = {
2866
- top: Math.min(S, i),
2867
- right: Math.min(S, r),
2868
- bottom: Math.min(S, i),
2869
- left: Math.min(E(e.getContainer()) + S, r)
3037
+ top: Math.min(D, i),
3038
+ right: Math.min(D, r),
3039
+ bottom: Math.min(D, i),
3040
+ left: Math.min(re(e.getContainer()) + D, r)
2870
3041
  }, o = n.width - a.left - a.right, s = n.height - a.top - a.bottom, c = Math.min(1, o / t.width, s / t.height), l = a.left + (o - t.width * c) / 2, u = a.top + (s - t.height * c) / 2;
2871
3042
  return e.viewbox({
2872
3043
  x: t.x - l / c,
@@ -2875,22 +3046,22 @@ function T(e) {
2875
3046
  height: n.height / c
2876
3047
  }), !0;
2877
3048
  }
2878
- function E(e) {
3049
+ function re(e) {
2879
3050
  let t = e.querySelector(".djs-palette");
2880
- return t ? t.getBoundingClientRect().right - e.getBoundingClientRect().left : C;
3051
+ return t ? t.getBoundingClientRect().right - e.getBoundingClientRect().left : O;
2881
3052
  }
2882
3053
  // ../../libs/modeler-types/src/fitViewportButton.ts
2883
- var D = "<svg viewBox=\"0 -960 960 960\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M800-600v-120H680v-80h120q33 0 56.5 23.5T880-720v120h-80Zm-720 0v-120q0-33 23.5-56.5T160-800h120v80H160v120H80Zm600 440v-80h120v-120h80v120q0 33-23.5 56.5T800-160H680Zm-520 0q-33 0-56.5-23.5T80-240v-120h80v120h120v80H160Zm80-160v-320h480v320H240Zm80-80h320v-160H320v160Zm0 0v-160 160Z\"/></svg>";
2884
- function O({ parent: e, label: t, fit: n, focusCanvas: r, isCanvasFocused: i, onCanvasFocusChanged: a }) {
3054
+ var ie = "<svg viewBox=\"0 -960 960 960\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M800-600v-120H680v-80h120q33 0 56.5 23.5T880-720v120h-80Zm-720 0v-120q0-33 23.5-56.5T160-800h120v80H160v120H80Zm600 440v-80h120v-120h80v120q0 33-23.5 56.5T800-160H680Zm-520 0q-33 0-56.5-23.5T80-240v-120h80v120h120v80H160Zm80-160v-320h480v320H240Zm80-80h320v-160H320v160Zm0 0v-160 160Z\"/></svg>";
3055
+ function ae({ parent: e, label: t, fit: n, focusCanvas: r, isCanvasFocused: i, onCanvasFocusChanged: a }) {
2885
3056
  let o = document.createElement("button");
2886
- return o.type = "button", o.className = "fit-viewport-button", o.title = t, o.setAttribute("aria-label", t), o.innerHTML = D, o.addEventListener("click", (e) => {
3057
+ return o.type = "button", o.className = "fit-viewport-button", o.title = t, o.setAttribute("aria-label", t), o.innerHTML = ie, o.addEventListener("click", (e) => {
2887
3058
  n(), e.detail > 0 && r();
2888
3059
  }), o.toggleAttribute("data-canvas-focused", i()), a((e) => {
2889
3060
  o.toggleAttribute("data-canvas-focused", e);
2890
3061
  }), e.append(o), () => o.remove();
2891
3062
  }
2892
3063
  // ../../libs/modeler-types/src/surfaceTheme.ts
2893
- var k = class {
3064
+ var A = class {
2894
3065
  constructor(e, t) {
2895
3066
  this.scopeRoots = e, this.attribute = t, this.disposed = !1;
2896
3067
  }
@@ -2903,7 +3074,7 @@ var k = class {
2903
3074
  }
2904
3075
  apply(e) {
2905
3076
  for (let t of this.scopeRoots) t.setAttribute(this.attribute, e);
2906
- ne(e);
3077
+ oe(e);
2907
3078
  }
2908
3079
  startFollowingPreferredScheme() {
2909
3080
  let e = window.matchMedia("(prefers-color-scheme: dark)");
@@ -2915,40 +3086,40 @@ var k = class {
2915
3086
  this.mediaQuery && this.mediaListener && this.mediaQuery.removeEventListener("change", this.mediaListener), this.mediaQuery = void 0, this.mediaListener = void 0;
2916
3087
  }
2917
3088
  };
2918
- function ne(e) {
3089
+ function oe(e) {
2919
3090
  let t = document.querySelector("#theme-link");
2920
3091
  if (!t) return;
2921
3092
  let n = t.href, r = n.split("/").pop();
2922
3093
  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"));
2923
3094
  }
2924
3095
  // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
2925
- function A(e) {
3096
+ function j(e) {
2926
3097
  "@babel/helpers - typeof";
2927
- return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3098
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2928
3099
  return typeof e;
2929
3100
  } : function(e) {
2930
3101
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2931
- }, A(e);
3102
+ }, j(e);
2932
3103
  }
2933
3104
  // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
2934
- function re(e, t) {
2935
- if (A(e) != "object" || !e) return e;
3105
+ function se(e, t) {
3106
+ if (j(e) != "object" || !e) return e;
2936
3107
  var n = e[Symbol.toPrimitive];
2937
3108
  if (n !== void 0) {
2938
3109
  var r = n.call(e, t || "default");
2939
- if (A(r) != "object") return r;
3110
+ if (j(r) != "object") return r;
2940
3111
  throw TypeError("@@toPrimitive must return a primitive value.");
2941
3112
  }
2942
3113
  return (t === "string" ? String : Number)(e);
2943
3114
  }
2944
3115
  // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
2945
- function j(e) {
2946
- var t = re(e, "string");
2947
- return A(t) == "symbol" ? t : t + "";
3116
+ function M(e) {
3117
+ var t = se(e, "string");
3118
+ return j(t) == "symbol" ? t : t + "";
2948
3119
  }
2949
3120
  // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
2950
- function M(e, t, n) {
2951
- return (t = j(t)) in e ? Object.defineProperty(e, t, {
3121
+ function N(e, t, n) {
3122
+ return (t = M(t)) in e ? Object.defineProperty(e, t, {
2952
3123
  value: n,
2953
3124
  enumerable: !0,
2954
3125
  configurable: !0,
@@ -2956,7 +3127,7 @@ function M(e, t, n) {
2956
3127
  }) : e[t] = n, e;
2957
3128
  }
2958
3129
  // src/modeler.ts
2959
- var N = {
3130
+ var P = {
2960
3131
  options: [
2961
3132
  {
2962
3133
  value: "feel",
@@ -2984,18 +3155,18 @@ var N = {
2984
3155
  }
2985
3156
  ],
2986
3157
  defaults: { editor: "feel" }
2987
- }, P = "data-dmn-theme", F = [
3158
+ }, F = "data-dmn-theme", I = [
2988
3159
  "string",
2989
3160
  "boolean",
2990
3161
  "integer",
2991
3162
  "long",
2992
3163
  "double",
2993
3164
  "date"
2994
- ], I = 600, L = 300, R = class {
3165
+ ], L = 600, R = 300, z = class {
2995
3166
  constructor(t, n) {
2996
- M(this, "container", void 0), M(this, "options", void 0), M(this, "modeler", void 0), M(this, "store", new b()), M(this, "canvasOverlays", new x()), M(this, "commandStackBinding", new x()), M(this, "propertiesPanelInput", p(I)), M(this, "viewEditorInput", p(L)), M(this, "activeEventBus", void 0), M(this, "themeController", void 0), M(this, "handleViewsChanged", (e) => {
3167
+ N(this, "container", void 0), N(this, "options", void 0), N(this, "modeler", void 0), N(this, "store", new T()), N(this, "canvasOverlays", new E()), N(this, "commandStackBinding", new E()), N(this, "propertiesPanelInput", p(L)), N(this, "viewEditorInput", p(R)), N(this, "activeEventBus", void 0), N(this, "themeController", void 0), N(this, "handleViewsChanged", (e) => {
2997
3168
  this.store.isDisposed || (this.bindActiveViewer(), this.options.onViewChanged?.(e));
2998
- }), M(this, "handleContentChanged", () => {
3169
+ }), N(this, "handleContentChanged", () => {
2999
3170
  this.store.isDisposed || this.options.onContentChanged?.();
3000
3171
  }), this.container = t, this.options = n;
3001
3172
  let l = n.additionalModules ?? {};
@@ -3012,36 +3183,36 @@ var N = {
3012
3183
  o,
3013
3184
  i,
3014
3185
  s.decisionRequirementsDiagram,
3015
- z(this.propertiesPanelInput),
3186
+ B(this.propertiesPanelInput),
3016
3187
  ...l.drd ?? []
3017
3188
  ]
3018
3189
  },
3019
3190
  decisionTable: { additionalModules: [
3020
3191
  e,
3021
3192
  s.decisionTable,
3022
- z(this.viewEditorInput),
3193
+ B(this.viewEditorInput),
3023
3194
  ...l.decisionTable ?? []
3024
3195
  ] },
3025
3196
  literalExpression: { additionalModules: [
3026
3197
  e,
3027
- z(this.viewEditorInput),
3198
+ B(this.viewEditorInput),
3028
3199
  ...l.literalExpression ?? []
3029
3200
  ] },
3030
3201
  boxedExpression: { additionalModules: [
3031
3202
  e,
3032
- z(this.viewEditorInput),
3203
+ B(this.viewEditorInput),
3033
3204
  ...l.boxedExpression ?? []
3034
3205
  ] },
3035
3206
  common: {
3036
- expressionLanguages: n.expressionLanguages ?? N,
3037
- dataTypes: n.dataTypes ?? F,
3207
+ expressionLanguages: n.expressionLanguages ?? P,
3208
+ dataTypes: n.dataTypes ?? I,
3038
3209
  keyboard: n.keyboard
3039
3210
  },
3040
3211
  moddleExtensions: {
3041
3212
  camunda: c,
3042
3213
  ...n.moddleExtensions
3043
3214
  }
3044
- }), 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(y({ resized: () => {
3215
+ }), 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(w({ resized: () => {
3045
3216
  this.store.isDisposed || this.getActiveCanvas()?.resized();
3046
3217
  } }, t)), this.store.add(() => {
3047
3218
  this.commandStackBinding.dispose(), this.activeEventBus = void 0;
@@ -3053,7 +3224,7 @@ var N = {
3053
3224
  let t = await this.modeler.importXML(e);
3054
3225
  return this.bindActiveViewer(), this.reportWarnings(t.warnings), t;
3055
3226
  } catch (e) {
3056
- throw B("Unable to import DMN", e);
3227
+ throw V("Unable to import DMN", e);
3057
3228
  }
3058
3229
  }
3059
3230
  async exportDiagram() {
@@ -3074,7 +3245,7 @@ var N = {
3074
3245
  let t = await this.modeler.open(e);
3075
3246
  return this.bindActiveViewer(), this.reportWarnings(t.warnings), t;
3076
3247
  } catch (t) {
3077
- throw B(`Unable to open DMN view <${e.id}>`, t);
3248
+ throw V(`Unable to open DMN view <${e.id}>`, t);
3078
3249
  }
3079
3250
  }
3080
3251
  isDrdViewActive() {
@@ -3098,7 +3269,7 @@ var N = {
3098
3269
  setTheme(e) {
3099
3270
  if (!this.store.isDisposed) {
3100
3271
  if (!this.themeController) {
3101
- let e = new k([this.container, this.options.propertiesPanel.parent], P);
3272
+ let e = new A([this.container, this.options.propertiesPanel.parent], F);
3102
3273
  this.themeController = e, this.store.add(() => e.dispose());
3103
3274
  }
3104
3275
  this.themeController.setMode(e);
@@ -3132,18 +3303,18 @@ var N = {
3132
3303
  if (this.canvasOverlays.set(void 0), this.modeler.getActiveView()?.type !== "drd") return;
3133
3304
  let e = this.getActiveViewer(), t = e?.get("canvas", !1), n = e?.get("translate", !1), r = e?.get("eventBus", !1);
3134
3305
  if (!t || !n || !r) return;
3135
- let i = new b();
3136
- i.add(O({
3306
+ let i = new T();
3307
+ i.add(ae({
3137
3308
  parent: t.getContainer(),
3138
3309
  label: n("Fit diagram to view"),
3139
- fit: () => T(t),
3310
+ fit: () => ne(t),
3140
3311
  focusCanvas: () => t.focus(),
3141
3312
  isCanvasFocused: () => t.isFocused(),
3142
3313
  onCanvasFocusChanged: (e) => r.on("canvas.focus.changed", (t) => e(t.focused))
3143
3314
  })), this.canvasOverlays.set(() => i.dispose());
3144
3315
  }
3145
3316
  reportWarnings(e) {
3146
- if (!this.store.isDisposed) for (let t of e) this.options.onWarning?.(H(t));
3317
+ if (!this.store.isDisposed) for (let t of e) this.options.onWarning?.(U(t));
3147
3318
  }
3148
3319
  getActiveViewer() {
3149
3320
  return this.modeler.getActiveViewer();
@@ -3158,22 +3329,22 @@ var N = {
3158
3329
  if (this.modeler.getActiveView()?.type === "drd") return this.getActiveViewer()?.get("canvas", !1);
3159
3330
  }
3160
3331
  assertLive() {
3161
- if (this.store.isDisposed) throw new v();
3332
+ if (this.store.isDisposed) throw new C();
3162
3333
  }
3163
3334
  };
3164
- function z(e) {
3335
+ function B(e) {
3165
3336
  return { debounceInput: ["value", e] };
3166
3337
  }
3167
- function B(e, t) {
3168
- let n = t instanceof Error ? t.message : String(t), r = V(t).map(H).filter(Boolean), i = r.length > 0 ? `\n${r.join("\n")}` : "";
3338
+ function V(e, t) {
3339
+ let n = t instanceof Error ? t.message : String(t), r = H(t).map(U).filter(Boolean), i = r.length > 0 ? `\n${r.join("\n")}` : "";
3169
3340
  return Error(`${e}: ${n}${i}`, { cause: t });
3170
3341
  }
3171
- function V(e) {
3342
+ function H(e) {
3172
3343
  if (typeof e != "object" || !e || !("warnings" in e)) return [];
3173
3344
  let t = e.warnings;
3174
3345
  return Array.isArray(t) ? t : [];
3175
3346
  }
3176
- function H(e) {
3347
+ function U(e) {
3177
3348
  return [
3178
3349
  e.message,
3179
3350
  e.error?.message,
@@ -3181,9 +3352,9 @@ function H(e) {
3181
3352
  ].filter((e) => !!e).join("\n");
3182
3353
  }
3183
3354
  // src/createModeler.ts
3184
- async function U(e, n) {
3185
- t.extend(f);
3186
- let r = new R(e, n);
3355
+ async function W(e, n) {
3356
+ t.extend(d);
3357
+ let r = new z(e, n);
3187
3358
  try {
3188
3359
  r.setTheme(n.theme ?? "automatic"), n.locale && t.setLanguage(n.locale);
3189
3360
  } catch (e) {
@@ -3195,42 +3366,42 @@ async function U(e, n) {
3195
3366
  return r;
3196
3367
  }
3197
3368
  // src/diff/diffMarks.ts
3198
- function W(e, t) {
3369
+ function G(e, t) {
3199
3370
  if (e.added.includes(t)) return "added";
3200
3371
  if (e.removed.includes(t)) return "removed";
3201
3372
  if (e.expressions.includes(t)) return "changed";
3202
3373
  }
3203
- function G(e, t, n) {
3204
- let r = q(e, n), i = (e, t) => `background-color: color-mix(in srgb, var(--dmn-diff-${e}) ${t}%, var(--decision-table-background-color)) !important;`, a = (e) => `box-shadow: inset 4px 0 0 var(--dmn-diff-${e});`, o = (e) => `box-shadow: inset 0 0 0 2px var(--dmn-diff-${e});`, { rules: s, columns: c } = t;
3374
+ function ce(e, t, n) {
3375
+ let r = K(e, n), i = (e, t) => `background-color: color-mix(in srgb, var(--dmn-diff-${e}) ${t}%, var(--decision-table-background-color)) !important;`, a = (e) => `box-shadow: inset 4px 0 0 var(--dmn-diff-${e});`, o = (e) => `box-shadow: inset 0 0 0 2px var(--dmn-diff-${e});`, { rules: s, columns: c } = t;
3205
3376
  return [
3206
- J(r.rows(s.added), i("added", 16)),
3207
- J(r.ruleNumbers(s.added), a("added")),
3208
- J(r.rows(s.removed), i("removed", 14)),
3209
- J(r.ruleNumbers(s.removed), a("removed")),
3210
- J(r.ruleNumbers(s.changed), a("changed")),
3211
- J(r.ruleNumbers(s.moved), "background-image: repeating-linear-gradient(to bottom, var(--dmn-diff-moved) 0 4px, transparent 4px 7px) !important; background-size: 4px 100% !important; background-repeat: no-repeat !important;"),
3212
- J(r.ruleNumbers(s.moved).map((e) => `${e}::after`), "content: \" ↕\"; color: var(--dmn-diff-moved);"),
3213
- J(r.cells(t.cells), `${i("changed", 18)} ${o("changed")}`),
3214
- J(r.annotations(t.annotations), `${i("changed", 18)} ${o("changed")}`),
3215
- J(r.columnCells(c.added), i("added", 10)),
3216
- J(r.headers(c.added), "box-shadow: inset 0 3px 0 var(--dmn-diff-added);"),
3217
- J(r.columnCells(c.removed), i("removed", 10)),
3218
- J(r.headers(c.removed), "box-shadow: inset 0 3px 0 var(--dmn-diff-removed);"),
3219
- J(r.headers(c.changed), `${i("changed", 18)} ${o("changed")}`),
3220
- J(t.properties.length > 0 ? [`${e} .hit-policy`] : [], `${i("changed", 18)} ${o("changed")}`)
3377
+ q(r.rows(s.added), i("added", 16)),
3378
+ q(r.ruleNumbers(s.added), a("added")),
3379
+ q(r.rows(s.removed), i("removed", 14)),
3380
+ q(r.ruleNumbers(s.removed), a("removed")),
3381
+ q(r.ruleNumbers(s.changed), a("changed")),
3382
+ q(r.ruleNumbers(s.moved), "background-image: repeating-linear-gradient(to bottom, var(--dmn-diff-moved) 0 4px, transparent 4px 7px) !important; background-size: 4px 100% !important; background-repeat: no-repeat !important;"),
3383
+ q(r.ruleNumbers(s.moved).map((e) => `${e}::after`), "content: \" ↕\"; color: var(--dmn-diff-moved);"),
3384
+ q(r.cells(t.cells), `${i("changed", 18)} ${o("changed")}`),
3385
+ q(r.annotations(t.annotations), `${i("changed", 18)} ${o("changed")}`),
3386
+ q(r.columnCells(c.added), i("added", 10)),
3387
+ q(r.headers(c.added), "box-shadow: inset 0 3px 0 var(--dmn-diff-added);"),
3388
+ q(r.columnCells(c.removed), i("removed", 10)),
3389
+ q(r.headers(c.removed), "box-shadow: inset 0 3px 0 var(--dmn-diff-removed);"),
3390
+ q(r.headers(c.changed), `${i("changed", 18)} ${o("changed")}`),
3391
+ q(t.properties.length > 0 ? [`${e} .hit-policy`] : [], `${i("changed", 18)} ${o("changed")}`)
3221
3392
  ].join("");
3222
3393
  }
3223
- function K(e, t, n) {
3394
+ function le(e, t, n) {
3224
3395
  if (!t) return "";
3225
- let r = q(e, n), i = {
3226
- rule: [`${e} tr:has(> td[data-row-id="${Y(t.id)}"])`],
3396
+ let r = K(e, n), i = {
3397
+ rule: [`${e} tr:has(> td[data-row-id="${J(t.id)}"])`],
3227
3398
  column: r.columnCells([t.id]),
3228
3399
  table: [`${e} .hit-policy`]
3229
3400
  }[t.kind];
3230
- return J(i, "outline: 2px solid var(--dmn-diff-current); outline-offset: -2px;");
3401
+ return q(i, "outline: 2px solid var(--dmn-diff-current); outline-offset: -2px;");
3231
3402
  }
3232
- function q(e, t) {
3233
- let n = (t) => (n) => n.map((n) => `${e} ${t(Y(n))}`), r = (n) => n.map((e) => t.indexOf(e)).filter((e) => e >= 0).map((t) => `${e} thead th:nth-child(${t + 2}):not([data-col-id])`), i = (e) => [...n((e) => `th[data-col-id="${e}"]`)(e), ...r(e)];
3403
+ function K(e, t) {
3404
+ let n = (t) => (n) => n.map((n) => `${e} ${t(J(n))}`), r = (n) => n.map((e) => t.indexOf(e)).filter((e) => e >= 0).map((t) => `${e} thead th:nth-child(${t + 2}):not([data-col-id])`), i = (e) => [...n((e) => `th[data-col-id="${e}"]`)(e), ...r(e)];
3234
3405
  return {
3235
3406
  rows: n((e) => `td[data-row-id="${e}"]`),
3236
3407
  ruleNumbers: n((e) => `td.rule-index[data-row-id="${e}"]`),
@@ -3240,20 +3411,20 @@ function q(e, t) {
3240
3411
  columnCells: (e) => [...n((e) => `td[data-col-id="${e}"]`)(e), ...i(e)]
3241
3412
  };
3242
3413
  }
3243
- function J(e, t) {
3414
+ function q(e, t) {
3244
3415
  return e.length > 0 ? `${e.join(",\n")} { ${t} }\n` : "";
3245
3416
  }
3246
- function Y(e) {
3417
+ function J(e) {
3247
3418
  return e.replace(/["\\]/g, "\\$&");
3248
3419
  }
3249
3420
  // src/diff/DmnDiffViewer.ts
3250
- var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3421
+ var Y = "dmn-diff-counts", ue = 80, X = 0, de = class {
3251
3422
  constructor(t, n = 0) {
3252
- M(this, "container", void 0), M(this, "topInset", void 0), M(this, "viewer", void 0), M(this, "store", new b()), M(this, "style", void 0), M(this, "scope", void 0), M(this, "viewListeners", /* @__PURE__ */ new Set()), M(this, "viewportListeners", /* @__PURE__ */ new Set()), M(this, "scrollListeners", /* @__PURE__ */ new Set()), M(this, "boundDrdBuses", /* @__PURE__ */ new WeakSet()), M(this, "marks", void 0), M(this, "markOptions", {}), M(this, "focused", void 0), M(this, "selectedOnCanvas", void 0), M(this, "announcedView", null), M(this, "openingView", !1), M(this, "movingViewport", !1), M(this, "expectedScroll", void 0), M(this, "viewportTimer", void 0), M(this, "drdViewport", void 0), M(this, "themeController", void 0), this.container = t, this.topInset = n, Z += 1, this.scope = `[data-dmn-diff="${Z}"]`, t.classList.add("dmn-diff"), t.dataset.dmnDiff = String(Z), this.style = document.createElement("style"), t.append(this.style), this.viewer = new l({
3423
+ N(this, "container", void 0), N(this, "topInset", void 0), N(this, "viewer", void 0), N(this, "store", new T()), N(this, "style", void 0), N(this, "scope", void 0), N(this, "viewListeners", /* @__PURE__ */ new Set()), N(this, "viewportListeners", /* @__PURE__ */ new Set()), N(this, "scrollListeners", /* @__PURE__ */ new Set()), N(this, "boundDrdBuses", /* @__PURE__ */ new WeakSet()), N(this, "marks", void 0), N(this, "markOptions", {}), N(this, "focused", void 0), N(this, "selectedOnCanvas", void 0), N(this, "announcedView", null), N(this, "openingView", !1), N(this, "movingViewport", !1), N(this, "expectedScroll", void 0), N(this, "viewportTimer", void 0), N(this, "drdViewport", void 0), N(this, "themeController", void 0), this.container = t, this.topInset = n, X += 1, this.scope = `[data-dmn-diff="${X}"]`, t.classList.add("dmn-diff"), t.dataset.dmnDiff = String(X), this.style = document.createElement("style"), t.append(this.style), this.viewer = new l({
3253
3424
  container: t,
3254
3425
  drd: { additionalModules: [
3255
3426
  e,
3256
- d,
3427
+ ee,
3257
3428
  u
3258
3429
  ] },
3259
3430
  decisionTable: { additionalModules: [e] },
@@ -3264,7 +3435,7 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3264
3435
  let r = () => {
3265
3436
  this.placeDrd(), this.applyMarks();
3266
3437
  }, i = () => this.notifyViewChanged(), a = (e) => this.onScroll(e);
3267
- this.viewer.on("import.render.complete", r), this.viewer.on("views.changed", i), t.addEventListener("scroll", a, !0), this.store.add(() => this.viewer.off("import.render.complete", r), () => this.viewer.off("views.changed", i), () => t.removeEventListener("scroll", a, !0), () => clearTimeout(this.viewportTimer), () => this.viewer.destroy(), () => this.style.remove(), y({ resized: () => this.drd()?.canvas.resized() }, t));
3438
+ this.viewer.on("import.render.complete", r), this.viewer.on("views.changed", i), t.addEventListener("scroll", a, !0), this.store.add(() => this.viewer.off("import.render.complete", r), () => this.viewer.off("views.changed", i), () => t.removeEventListener("scroll", a, !0), () => clearTimeout(this.viewportTimer), () => this.viewer.destroy(), () => this.style.remove(), w({ resized: () => this.drd()?.canvas.resized() }, t));
3268
3439
  }
3269
3440
  async importXML(e) {
3270
3441
  this.openingView = !0;
@@ -3305,6 +3476,12 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3305
3476
  focus(e) {
3306
3477
  this.focused = e, this.applyMarks(), e !== void 0 && this.reveal(e);
3307
3478
  }
3479
+ showWholeView() {
3480
+ this.focus(void 0), this.drd() ? (this.drdViewport = void 0, this.placeDrd()) : this.setTableScroll({
3481
+ offset: 0,
3482
+ left: 0
3483
+ });
3484
+ }
3308
3485
  reveal(e) {
3309
3486
  let t = this.drd();
3310
3487
  t ? this.centerOn(t, e) : this.scrollTableTo(e);
@@ -3362,7 +3539,7 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3362
3539
  }
3363
3540
  setTheme(e) {
3364
3541
  if (!this.themeController) {
3365
- let e = new k([this.container], "data-dmn-theme");
3542
+ let e = new A([this.container], "data-dmn-theme");
3366
3543
  this.themeController = e, this.store.add(() => e.dispose());
3367
3544
  }
3368
3545
  this.themeController.setMode(e);
@@ -3406,12 +3583,12 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3406
3583
  let t = this.marks;
3407
3584
  if (t) {
3408
3585
  for (let n of m) for (let r of t[n]) e.elementRegistry.get(r) && e.canvas.addMarker(r, h[n]);
3409
- if (this.selectedOnCanvas && e.elementRegistry.get(this.selectedOnCanvas) && e.canvas.removeMarker(this.selectedOnCanvas, g), this.selectedOnCanvas = void 0, this.focused && e.elementRegistry.get(this.focused) && (e.canvas.addMarker(this.focused, g), this.selectedOnCanvas = this.focused), e.overlays.remove({ type: X }), this.markOptions.countBadges) for (let [n, r] of Object.entries(t.tables)) e.elementRegistry.get(n) && e.overlays.add(n, X, {
3586
+ if (this.selectedOnCanvas && e.elementRegistry.get(this.selectedOnCanvas) && e.canvas.removeMarker(this.selectedOnCanvas, g), this.selectedOnCanvas = void 0, this.focused && e.elementRegistry.get(this.focused) && (e.canvas.addMarker(this.focused, g), this.selectedOnCanvas = this.focused), e.overlays.remove({ type: Y }), this.markOptions.countBadges) for (let [n, r] of Object.entries(t.tables)) e.elementRegistry.get(n) && e.overlays.add(n, Y, {
3410
3587
  position: {
3411
3588
  top: -11,
3412
3589
  right: 8
3413
3590
  },
3414
- html: ce(r.counts)
3591
+ html: pe(r.counts)
3415
3592
  });
3416
3593
  }
3417
3594
  }
@@ -3420,11 +3597,11 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3420
3597
  t && (this.container.dataset.dmnDiffView = t);
3421
3598
  let n = this.marks?.tables[e.id];
3422
3599
  if (!n) return;
3423
- let r = se(e);
3424
- this.style.textContent = G(this.scope, n, r) + K(this.scope, this.tableFocus(n), r);
3600
+ let r = fe(e);
3601
+ this.style.textContent = ce(this.scope, n, r) + le(this.scope, this.tableFocus(n), r);
3425
3602
  }
3426
3603
  statusOf(e) {
3427
- return this.marks && W(this.marks, e.id);
3604
+ return this.marks && G(this.marks, e.id);
3428
3605
  }
3429
3606
  tableFocus(e) {
3430
3607
  let t = this.focused;
@@ -3451,7 +3628,7 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3451
3628
  this.movingViewport || this.openingView || (this.drdViewport = this.getViewport(), clearTimeout(this.viewportTimer), this.viewportTimer = setTimeout(() => {
3452
3629
  let e = this.getViewport();
3453
3630
  e && this.viewportListeners.forEach((t) => t(e));
3454
- }, ie));
3631
+ }, ue));
3455
3632
  }));
3456
3633
  }
3457
3634
  placeDrd() {
@@ -3463,10 +3640,10 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3463
3640
  }
3464
3641
  let { inner: t, outer: n } = e.canvas.viewbox();
3465
3642
  if (!n.width || !n.height || !t.width || !t.height) return;
3466
- let r = Math.min(1, (n.width - 48) / t.width, (n.height - this.topInset - 48) / t.height), i = n.width / r;
3643
+ let r = Math.min(1, (n.width - 48) / t.width, (n.height - this.topInset - 48) / t.height), i = n.width / r, a = this.topInset + (n.height - this.topInset) / 2;
3467
3644
  this.setViewport({
3468
3645
  x: t.x + t.width / 2 - i / 2,
3469
- y: t.y - (this.topInset + 24) / r,
3646
+ y: t.y + t.height / 2 - a / r,
3470
3647
  width: i,
3471
3648
  height: n.height / r
3472
3649
  });
@@ -3483,8 +3660,8 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3483
3660
  });
3484
3661
  }
3485
3662
  scrollTableTo(e) {
3486
- let t = (e) => this.container.querySelector(e), n = Y(e);
3487
- ((this.marks?.tables[this.activeElement()?.id ?? ""]?.cells ?? []).map((e) => t(`td[data-element-id="${Y(e)}"]`)).filter((t) => t?.dataset.rowId === e)[0] ?? t(`td.rule-index[data-row-id="${n}"]`) ?? t(`[data-col-id="${n}"]`) ?? t(".hit-policy"))?.scrollIntoView({
3663
+ let t = (e) => this.container.querySelector(e), n = J(e);
3664
+ ((this.marks?.tables[this.activeElement()?.id ?? ""]?.cells ?? []).map((e) => t(`td[data-element-id="${J(e)}"]`)).filter((t) => t?.dataset.rowId === e)[0] ?? t(`td.rule-index[data-row-id="${n}"]`) ?? t(`[data-col-id="${n}"]`) ?? t(".hit-policy"))?.scrollIntoView({
3488
3665
  block: "center",
3489
3666
  inline: "center"
3490
3667
  });
@@ -3515,19 +3692,19 @@ var X = "dmn-diff-counts", ie = 80, Z = 0, ae = class {
3515
3692
  return e ? [...e.rules.added, ...e.rules.removed] : [];
3516
3693
  }
3517
3694
  };
3518
- function oe(e, n = {}) {
3519
- t.extend(f);
3520
- let r = new ae(e, n.topInset);
3695
+ function Z(e, n = {}) {
3696
+ t.extend(d);
3697
+ let r = new de(e, n.topInset);
3521
3698
  return n.theme && r.setTheme(n.theme), r;
3522
3699
  }
3523
- function se(e) {
3700
+ function fe(e) {
3524
3701
  let t = e.decisionLogic;
3525
3702
  return [...t?.input ?? [], ...t?.output ?? []].map((e) => e.id);
3526
3703
  }
3527
3704
  function Q(e, t) {
3528
3705
  return t.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop;
3529
3706
  }
3530
- function ce(e) {
3707
+ function pe(e) {
3531
3708
  let t = document.createElement("div");
3532
3709
  t.className = "dmn-diff-counts";
3533
3710
  for (let n of m) {
@@ -3539,4 +3716,4 @@ function ce(e) {
3539
3716
  function $(e, t) {
3540
3717
  return e.add(t), () => e.delete(t);
3541
3718
  }
3542
- export { v as NoModelerError, oe as createDiffViewer, U as createModeler };
3719
+ export { C as NoModelerError, Z as createDiffViewer, W as createModeler };