@septkit/ui 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/code/code-block.js +7 -0
  2. package/dist/code/code-block.vue_vue_type_script_setup_true_lang.js +63 -0
  3. package/dist/code/diff.js +35 -0
  4. package/dist/code/highlight.js +30 -0
  5. package/dist/code/index.js +5 -0
  6. package/dist/code/xml-diff.js +5 -0
  7. package/dist/code/xml-diff.vue_vue_type_script_setup_true_lang.js +33 -0
  8. package/dist/dialecte/composables/index.js +2 -1
  9. package/dist/dialecte/composables/use-active-document.js +24 -0
  10. package/dist/dialecte/create-document-store.js +3 -3
  11. package/dist/dialecte/index.js +2 -1
  12. package/dist/dialog/dialog-host.js +5 -0
  13. package/dist/dialog/dialog-host.vue_vue_type_script_setup_true_lang.js +33 -0
  14. package/dist/dialog/dialog.js +5 -0
  15. package/dist/dialog/dialog.vue_vue_type_script_setup_true_lang.js +72 -0
  16. package/dist/dialog/index.js +4 -0
  17. package/dist/dialog/use-dialog-host.js +32 -0
  18. package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/helpers.js +142 -0
  19. package/dist/external/.pnpm/@dialecte_core@0.4.6/node_modules/@dialecte/core/dist/index.js +3 -0
  20. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/project-E32sEthh.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/project-wohrish5.js} +3352 -1170
  21. package/dist/external/.pnpm/{@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/utils-DgKwrT2n.js → @dialecte_core@0.4.6/node_modules/@dialecte/core/dist/utils-C5_11hqg.js} +73 -3
  22. package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js +25264 -0
  23. package/dist/external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
  24. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +11 -0
  25. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/copy.js +16 -0
  26. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/text-wrap.js +22 -0
  27. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/x.js +11 -0
  28. package/dist/external/.pnpm/@shikijs_core@3.23.0/node_modules/@shikijs/core/dist/index.js +1299 -0
  29. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.js +34 -0
  30. package/dist/external/.pnpm/@shikijs_engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.js +66 -0
  31. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/java.js +3 -0
  32. package/dist/external/.pnpm/@shikijs_langs@3.23.0/node_modules/@shikijs/langs/dist/xml.js +5 -0
  33. package/dist/external/.pnpm/@shikijs_themes@3.23.0/node_modules/@shikijs/themes/dist/github-dark.js +4 -0
  34. package/dist/external/.pnpm/@shikijs_types@3.23.0/node_modules/@shikijs/types/dist/index.js +8 -0
  35. package/dist/external/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js +1576 -0
  36. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +126 -43
  37. package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +84 -55
  38. package/dist/external/.pnpm/ccount@2.0.1/node_modules/ccount/index.js +10 -0
  39. package/dist/external/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js +257 -0
  40. package/dist/external/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js +4 -0
  41. package/dist/external/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +7 -0
  42. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js +11 -0
  43. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js +6 -0
  44. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +49 -0
  45. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js +28 -0
  46. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js +7 -0
  47. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js +6 -0
  48. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js +8 -0
  49. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +48 -0
  50. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js +86 -0
  51. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js +10 -0
  52. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js +39 -0
  53. package/dist/external/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js +13 -0
  54. package/dist/external/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js +10 -0
  55. package/dist/external/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
  56. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js +23 -0
  57. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js +419 -0
  58. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +487 -0
  59. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js +84 -0
  60. package/dist/external/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js +30 -0
  61. package/dist/external/.pnpm/oniguruma-to-es@4.3.6/node_modules/oniguruma-to-es/dist/esm/index.js +970 -0
  62. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/index.js +25 -0
  63. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/aria.js +61 -0
  64. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/find.js +31 -0
  65. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/html.js +326 -0
  66. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/normalize.js +6 -0
  67. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +564 -0
  68. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  69. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  70. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/create.js +14 -0
  71. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/defined-info.js +18 -0
  72. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/info.js +9 -0
  73. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/merge.js +9 -0
  74. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/schema.js +9 -0
  75. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/util/types.js +16 -0
  76. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xlink.js +19 -0
  77. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xml.js +15 -0
  78. package/dist/external/.pnpm/property-information@7.2.0/node_modules/property-information/lib/xmlns.js +14 -0
  79. package/dist/external/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js +110 -0
  80. package/dist/external/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.js +56 -0
  81. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js +94 -0
  82. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/internals.js +2 -0
  83. package/dist/external/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js +10 -0
  84. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContent.js +72 -0
  85. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentImpl.js +101 -0
  86. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentModal.js +83 -0
  87. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogContentNonModal.js +74 -0
  88. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlay.js +48 -0
  89. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js +47 -0
  90. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogPortal.js +33 -0
  91. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js +61 -0
  92. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/DialogTitle.js +28 -0
  93. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Dialog/utils.js +17 -0
  94. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Menu/utils.js +16 -0
  95. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterGroup.js +384 -0
  96. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterPanel.js +136 -0
  97. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Splitter/SplitterResizeHandle.js +119 -0
  98. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +27 -0
  99. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +67 -0
  100. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +136 -0
  101. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +28 -0
  102. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterBehavior.js +37 -0
  103. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/composables/useWindowSplitterPanelGroupBehavior.js +82 -0
  104. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +7 -2
  105. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/browser.js +4 -0
  106. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/assert.js +6 -0
  107. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/calculate.js +73 -0
  108. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/callPanelCallbacks.js +19 -0
  109. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/compare.js +11 -0
  110. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/debounce.js +11 -0
  111. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/dom.js +20 -0
  112. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/events.js +33 -0
  113. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/layout.js +103 -0
  114. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/pivot.js +8 -0
  115. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/rects.js +6 -0
  116. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/registry.js +106 -0
  117. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/resizePanel.js +15 -0
  118. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/stackingOrder.js +57 -0
  119. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/storage.js +50 -0
  120. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/style.js +35 -0
  121. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/units.js +57 -0
  122. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/utils/validation.js +39 -0
  123. package/dist/external/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
  124. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.js +13 -0
  125. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js +23 -0
  126. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js +8 -0
  127. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js +14 -0
  128. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js +8 -0
  129. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js +8 -0
  130. package/dist/external/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.js +17 -0
  131. package/dist/external/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +16 -0
  132. package/dist/index.d.ts +396 -21
  133. package/dist/index.js +24 -8
  134. package/dist/merge/build-view-model.js +168 -0
  135. package/dist/merge/decision-toggle.js +5 -0
  136. package/dist/merge/decision-toggle.vue_vue_type_script_setup_true_lang.js +40 -0
  137. package/dist/merge/element-detail.js +5 -0
  138. package/dist/merge/element-detail.vue_vue_type_script_setup_true_lang.js +53 -0
  139. package/dist/merge/index.js +6 -0
  140. package/dist/merge/merge-progress.js +5 -0
  141. package/dist/merge/merge-progress.vue_vue_type_script_setup_true_lang.js +31 -0
  142. package/dist/merge/merge-review.js +5 -0
  143. package/dist/merge/merge-review.vue_vue_type_script_setup_true_lang.js +305 -0
  144. package/dist/merge/merge-summary.js +5 -0
  145. package/dist/merge/merge-summary.vue_vue_type_script_setup_true_lang.js +76 -0
  146. package/dist/merge/merge-tree.js +5 -0
  147. package/dist/merge/merge-tree.vue_vue_type_script_setup_true_lang.js +86 -0
  148. package/dist/merge/merge.service.js +69 -0
  149. package/dist/merge/use-document-progress.js +27 -0
  150. package/dist/merge/use-merge-session.js +151 -0
  151. package/dist/ui.css +1 -1
  152. package/package.json +4 -2
  153. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/helpers.js +0 -13
  154. package/dist/external/.pnpm/@dialecte_core@0.4.2/node_modules/@dialecte/core/dist/index.js +0 -3
@@ -0,0 +1,76 @@
1
+ import { Fragment as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, openBlock as o, renderList as s, toDisplayString as c } from "vue";
2
+ //#region lib/merge/merge-summary.vue?vue&type=script&setup=true&lang.ts
3
+ var l = { class: "h-full overflow-auto p-4 text-sm" }, u = { class: "mb-3 opacity-70" }, d = { class: "capitalize" }, f = { class: "uppercase" }, p = { class: "mb-4 flex flex-wrap gap-2" }, m = { class: "badge badge-success badge-sm" }, h = { class: "badge badge-warning badge-sm" }, g = { class: "badge badge-ghost badge-sm" }, _ = {
4
+ key: 0,
5
+ class: "badge badge-info badge-sm"
6
+ }, v = {
7
+ key: 0,
8
+ class: "mb-4"
9
+ }, y = { class: "space-y-1" }, b = { class: "badge badge-ghost badge-xs" }, x = {
10
+ key: 0,
11
+ class: "text-xs opacity-60"
12
+ }, S = {
13
+ key: 1,
14
+ class: "mb-4"
15
+ }, C = { class: "space-y-1" }, w = { class: "badge badge-ghost badge-xs" }, T = {
16
+ key: 0,
17
+ class: "text-xs opacity-60"
18
+ }, E = {
19
+ key: 2,
20
+ class: "mb-4"
21
+ }, D = { class: "space-y-1" }, O = { class: "text-xs opacity-60" }, k = {
22
+ key: 3,
23
+ class: "mb-4"
24
+ }, A = { class: "space-y-1" }, j = { class: "badge badge-ghost badge-xs" }, M = {
25
+ key: 4,
26
+ class: "opacity-60"
27
+ }, N = /*@__PURE__*/ a({
28
+ __name: "merge-summary",
29
+ props: {
30
+ summary: {},
31
+ scenario: {},
32
+ verb: {}
33
+ },
34
+ setup(a) {
35
+ return (N, P) => (o(), n("div", l, [
36
+ r("p", u, [
37
+ r("span", d, c(a.scenario), 1),
38
+ r("span", f, " (" + c(a.verb) + ")", 1),
39
+ P[0] ||= i(" — review before applying. ", -1)
40
+ ]),
41
+ r("div", p, [
42
+ r("span", m, c(a.summary.added.length) + " added", 1),
43
+ r("span", h, c(a.summary.updated.length) + " updated", 1),
44
+ r("span", g, c(a.summary.skipped.length) + " skipped", 1),
45
+ a.summary.renamed.length ? (o(), n("span", _, c(a.summary.renamed.length) + " auto-renamed ", 1)) : t("", !0)
46
+ ]),
47
+ a.summary.added.length ? (o(), n("section", v, [P[1] ||= r("h3", { class: "mb-1 font-medium text-success" }, "Will be added", -1), r("ul", y, [(o(!0), n(e, null, s(a.summary.added, (e, i) => (o(), n("li", {
48
+ key: `a${i}`,
49
+ class: "flex items-center gap-2"
50
+ }, [
51
+ r("span", b, c(e.tag), 1),
52
+ r("span", null, c(e.title), 1),
53
+ e.detail ? (o(), n("span", x, c(e.detail), 1)) : t("", !0)
54
+ ]))), 128))])])) : t("", !0),
55
+ a.summary.updated.length ? (o(), n("section", S, [P[2] ||= r("h3", { class: "mb-1 font-medium text-warning" }, "Will be updated", -1), r("ul", C, [(o(!0), n(e, null, s(a.summary.updated, (e, i) => (o(), n("li", {
56
+ key: `u${i}`,
57
+ class: "flex items-center gap-2"
58
+ }, [
59
+ r("span", w, c(e.tag), 1),
60
+ r("span", null, c(e.title), 1),
61
+ e.detail ? (o(), n("span", T, c(e.detail), 1)) : t("", !0)
62
+ ]))), 128))])])) : t("", !0),
63
+ a.summary.renamed.length ? (o(), n("section", E, [P[3] ||= r("h3", { class: "mb-1 font-medium text-info" }, "Auto-renamed (naming collisions)", -1), r("ul", D, [(o(!0), n(e, null, s(a.summary.renamed, (e, t) => (o(), n("li", {
64
+ key: `r${t}`,
65
+ class: "flex items-center gap-2"
66
+ }, [r("span", null, c(e.title), 1), r("span", O, c(e.field) + " → " + c(e.to), 1)]))), 128))])])) : t("", !0),
67
+ a.summary.skipped.length ? (o(), n("section", k, [P[4] ||= r("h3", { class: "mb-1 font-medium opacity-70" }, "Skipped", -1), r("ul", A, [(o(!0), n(e, null, s(a.summary.skipped, (e, t) => (o(), n("li", {
68
+ key: `s${t}`,
69
+ class: "flex items-center gap-2 line-through opacity-50"
70
+ }, [r("span", j, c(e.tag), 1), r("span", null, c(e.title), 1)]))), 128))])])) : t("", !0),
71
+ !a.summary.added.length && !a.summary.updated.length && !a.summary.skipped.length && !a.summary.renamed.length ? (o(), n("p", M, " Nothing to apply. ")) : t("", !0)
72
+ ]));
73
+ }
74
+ });
75
+ //#endregion
76
+ export { N as default };
@@ -0,0 +1,5 @@
1
+ import e from "./merge-tree.vue_vue_type_script_setup_true_lang.js";
2
+ //#region lib/merge/merge-tree.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,86 @@
1
+ import e from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/link.js";
2
+ import t from "../explorer/explorer.js";
3
+ import "../explorer/index.js";
4
+ import n from "./decision-toggle.js";
5
+ import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, ref as f, toDisplayString as p, unref as m, watch as h, withCtx as g } from "vue";
6
+ //#region lib/merge/merge-tree.vue?vue&type=script&setup=true&lang.ts
7
+ var _ = ["title"], v = { class: "max-w-40 truncate" }, y = /*@__PURE__*/ l({
8
+ __name: "merge-tree",
9
+ props: {
10
+ items: {},
11
+ meta: {},
12
+ decisions: {},
13
+ expandedItems: {}
14
+ },
15
+ emits: ["select", "update:decision"],
16
+ setup(l, { emit: y }) {
17
+ let b = l, x = y, S = f(), C = f({
18
+ scoped: [...b.expandedItems ?? []],
19
+ all: !1
20
+ });
21
+ h(() => b.expandedItems, (e) => {
22
+ let t = new Set(C.value.scoped);
23
+ for (let n of e ?? []) t.add(n);
24
+ C.value = {
25
+ scoped: [...t],
26
+ all: !1
27
+ };
28
+ });
29
+ let w = r(() => {
30
+ if (!S.value) return;
31
+ let e = /* @__PURE__ */ new Set();
32
+ for (let [t, n] of Object.entries(b.meta)) n.groupId === S.value && e.add(t);
33
+ return e;
34
+ }), T = {
35
+ added: "text-success",
36
+ removed: "text-error",
37
+ modified: "text-warning",
38
+ unchanged: "text-base-content/60"
39
+ };
40
+ function E(e) {
41
+ return b.meta[e.id];
42
+ }
43
+ function D(e) {
44
+ let t = w.value;
45
+ return t ? !t.has(e.id) : !1;
46
+ }
47
+ function O(e) {
48
+ let t = E(e);
49
+ return !!t?.groupId && b.decisions[t.groupId] === "skip";
50
+ }
51
+ function k(e) {
52
+ S.value = E(e)?.groupId, x("select", e);
53
+ }
54
+ function A(e, t) {
55
+ x("update:decision", e, t);
56
+ }
57
+ return (r, f) => (d(), i(m(t), {
58
+ items: l.items,
59
+ expanded: C.value,
60
+ "aria-label": "Merge changes",
61
+ onSelect: k,
62
+ "onUpdate:expanded": f[0] ||= (e) => C.value = e
63
+ }, {
64
+ "node-label": g(({ node: e }) => [s("span", { class: u(["truncate pl-2 transition-opacity", [T[E(e)?.change ?? "unchanged"], {
65
+ "opacity-30": D(e),
66
+ "line-through opacity-50": O(e)
67
+ }]]) }, p(e.name), 3)]),
68
+ "node-suffix": g(({ node: t }) => [s("div", { class: u(["flex items-center gap-2 transition-opacity", { "opacity-30": D(t) }]) }, [E(t)?.role === "companion" && E(t)?.path ? (d(), o("span", {
69
+ key: 0,
70
+ class: "flex items-center gap-1 text-xs opacity-60",
71
+ title: E(t)?.path
72
+ }, [c(m(e), { class: "size-3" }), s("span", v, p(E(t)?.path), 1)], 8, _)) : a("", !0), E(t)?.role === "primary" && E(t)?.groupId ? (d(), i(n, {
73
+ key: 1,
74
+ size: "xs",
75
+ "model-value": l.decisions[E(t).groupId] ?? "accept",
76
+ "onUpdate:modelValue": (e) => A(E(t).groupId, e)
77
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : E(t)?.role === "companion" ? (d(), o("span", {
78
+ key: 2,
79
+ class: u(["badge badge-xs", T[E(t)?.change ?? "unchanged"]])
80
+ }, p(E(t)?.change), 3)) : a("", !0)], 2)]),
81
+ _: 1
82
+ }, 8, ["items", "expanded"]));
83
+ }
84
+ });
85
+ //#endregion
86
+ export { y as default };
@@ -0,0 +1,69 @@
1
+ import { i as e } from "../external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/hooks-abaf9148.js";
2
+ import "../external/.pnpm/@dialecte_scl@0.3.5/node_modules/@dialecte/scl/dist/v2019C1/index.js";
3
+ //#region lib/merge/merge.service.ts
4
+ async function t(e, t) {
5
+ return e.query.lifecycle.report(t);
6
+ }
7
+ async function n(e, t, n, r, i) {
8
+ return e.prepare(async (e) => {
9
+ let a = await e.lifecycle.apply({
10
+ ...t,
11
+ report: n,
12
+ decisions: r
13
+ });
14
+ await i?.(e, {
15
+ target: t,
16
+ report: n,
17
+ decisions: r,
18
+ result: a
19
+ });
20
+ });
21
+ }
22
+ async function r(e, t, n, r, i) {
23
+ await e.transaction(async (e) => {
24
+ let a = await e.lifecycle.apply({
25
+ ...t,
26
+ report: n,
27
+ decisions: r
28
+ });
29
+ await i?.(e, {
30
+ target: t,
31
+ report: n,
32
+ decisions: r,
33
+ result: a
34
+ });
35
+ });
36
+ }
37
+ function i(t) {
38
+ return e({ verb: t });
39
+ }
40
+ async function a(e, t, n) {
41
+ if (t.tagName === n) return t;
42
+ let r = (await e.findAncestors(t)).find((e) => e.tagName === n);
43
+ return r ? {
44
+ tagName: r.tagName,
45
+ id: r.id
46
+ } : t;
47
+ }
48
+ async function o(e, t) {
49
+ return await e.getSnapshot({
50
+ ref: t,
51
+ as: "tree"
52
+ });
53
+ }
54
+ async function s(e, t) {
55
+ return e.getSnapshot({
56
+ ref: t,
57
+ as: "xml",
58
+ unwrap: ["Private"],
59
+ declareNamespaces: !1
60
+ });
61
+ }
62
+ async function c(e, t) {
63
+ return await e.getAttributes(t, { defaults: "none" });
64
+ }
65
+ async function l(e, t) {
66
+ return e.presentation.extractElementTitle(t);
67
+ }
68
+ //#endregion
69
+ export { r as commitMerge, l as extractTitle, a as findScopeRoot, c as getAttributes, i as getPresentationScope, n as previewApply, t as reportLifecycle, o as snapshotTree, s as snapshotXml };
@@ -0,0 +1,27 @@
1
+ import { onScopeDispose as e, ref as t } from "vue";
2
+ //#region lib/merge/use-document-progress.ts
3
+ function n(n) {
4
+ let r = t(!1), i = t(null), a = t([]), o;
5
+ function s() {
6
+ let e = n();
7
+ r.value = e.loading, i.value = e.progress ? { ...e.progress } : null, a.value = e.history.slice(-6);
8
+ }
9
+ async function c(e) {
10
+ s(), o = setInterval(s, 80);
11
+ try {
12
+ return await e;
13
+ } finally {
14
+ o && clearInterval(o), o = void 0, s();
15
+ }
16
+ }
17
+ return e(() => {
18
+ o && clearInterval(o);
19
+ }), {
20
+ loading: r,
21
+ progress: i,
22
+ history: a,
23
+ track: c
24
+ };
25
+ }
26
+ //#endregion
27
+ export { n as useDocumentProgress };
@@ -0,0 +1,151 @@
1
+ import { commitMerge as e, findScopeRoot as t, getAttributes as n, getPresentationScope as r, previewApply as i, reportLifecycle as a, snapshotTree as o, snapshotXml as s } from "./merge.service.js";
2
+ import { buildChangeIndex as c, buildStructuralTree as l } from "./build-view-model.js";
3
+ import { reactive as u, shallowRef as d } from "vue";
4
+ //#region lib/merge/use-merge-session.ts
5
+ function f(f) {
6
+ let p = d(), m = u(/* @__PURE__ */ new Map()), h = d(), g = d({
7
+ items: [],
8
+ meta: {},
9
+ index: {},
10
+ expanded: []
11
+ }), _ = d(), v = d(), y = d(!1);
12
+ function b() {
13
+ return {
14
+ verb: f.verb,
15
+ scenario: f.scenario,
16
+ sourceQuery: f.sourceQuery,
17
+ ref: f.sourceRef,
18
+ anchor: f.anchor
19
+ };
20
+ }
21
+ function x(e) {
22
+ return e === void 0 ? "accept" : typeof e == "string" ? e : e.action;
23
+ }
24
+ function S(e) {
25
+ return typeof e == "object" ? e.values : void 0;
26
+ }
27
+ async function C() {
28
+ p.value = await a(f.targetDocument, b()), await F();
29
+ }
30
+ function w(e, t) {
31
+ let n = S(m.get(e));
32
+ m.set(e, n ? {
33
+ action: t,
34
+ values: n
35
+ } : t), P();
36
+ }
37
+ function T(e, t, n) {
38
+ let r = m.get(e), i = {
39
+ ...S(r),
40
+ [t]: n
41
+ };
42
+ m.set(e, {
43
+ action: x(r),
44
+ values: i
45
+ }), P();
46
+ }
47
+ function E(e) {
48
+ return x(m.get(e));
49
+ }
50
+ function D(e, t) {
51
+ return S(m.get(e))?.[t];
52
+ }
53
+ function O() {
54
+ let e = /* @__PURE__ */ new Map();
55
+ for (let [t, n] of m) {
56
+ let r = S(n);
57
+ r && e.set(t, {
58
+ action: "accept",
59
+ values: r
60
+ });
61
+ }
62
+ return e;
63
+ }
64
+ function k(e) {
65
+ h.value = e, L();
66
+ }
67
+ let A, j = /* @__PURE__ */ new Map(), M, N = 0;
68
+ function P() {
69
+ M && clearTimeout(M), M = setTimeout(() => void F(), 150);
70
+ }
71
+ async function F() {
72
+ if (!p.value) return;
73
+ let e = ++N;
74
+ y.value = !0;
75
+ let a = O(), s = await i(f.targetDocument, b(), p.value, a, f.afterApply);
76
+ if (e !== N) {
77
+ s.discard();
78
+ return;
79
+ }
80
+ A?.discard(), A = s, j = /* @__PURE__ */ new Map();
81
+ for (let e of A.operations) {
82
+ if (e.status !== "created") continue;
83
+ let t = {
84
+ tagName: e.newRecord.tagName,
85
+ id: e.newRecord.id
86
+ }, { templateUuid: r } = await n(A.query, t);
87
+ r && j.set(r, t);
88
+ }
89
+ let u = r(f.verb), d = await t(A.query, f.anchor, u.rootTag), m = await o(A.query, d), _ = await c({
90
+ report: p.value,
91
+ createdBySourceUuid: j,
92
+ sourceQuery: f.sourceQuery
93
+ });
94
+ g.value = await l({
95
+ tree: m,
96
+ changeByStagedId: _,
97
+ query: A.query
98
+ }), h.value &&= I(h.value, g.value), y.value = !1, await L();
99
+ }
100
+ function I(e, t) {
101
+ let n = Object.values(t.index);
102
+ if (e.node) {
103
+ let t = n.find((t) => t.node === e.node);
104
+ if (t) return t;
105
+ }
106
+ if (e.groupId) {
107
+ let t = n.find((t) => t.groupId === e.groupId && t.role === e.role);
108
+ if (t) return t;
109
+ }
110
+ return (e.previewRef.id ? t.index[e.previewRef.id] : void 0) ?? e;
111
+ }
112
+ async function L() {
113
+ let e = h.value;
114
+ if (!e || !A) {
115
+ _.value = void 0, v.value = void 0;
116
+ return;
117
+ }
118
+ _.value = await s(A.query, e.previewRef), v.value = e.change === "added" ? "" : await z(e.previewRef);
119
+ }
120
+ async function R(e) {
121
+ return A ? n(A.query, e) : {};
122
+ }
123
+ async function z(e) {
124
+ try {
125
+ return await s(f.targetDocument.query, e);
126
+ } catch {
127
+ return;
128
+ }
129
+ }
130
+ async function B() {
131
+ p.value && (A?.discard(), A = void 0, await e(f.targetDocument, b(), p.value, new Map(m), f.afterApply));
132
+ }
133
+ return {
134
+ report: p,
135
+ decisions: m,
136
+ structuralTree: g,
137
+ previewXml: _,
138
+ previewBeforeXml: v,
139
+ previewLoading: y,
140
+ load: C,
141
+ setDecision: w,
142
+ setValue: T,
143
+ decisionOf: E,
144
+ editedValue: D,
145
+ select: k,
146
+ stagedAttributes: R,
147
+ commit: B
148
+ };
149
+ }
150
+ //#endregion
151
+ export { f as useMergeSession };