@airalogy/aimd-recorder 1.25.1 → 1.26.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/README.md +16 -0
- package/README.zh-CN.md +16 -0
- package/dist/{AimdDnaSequenceField-WZF4SAj2.js → AimdDnaSequenceField-CKfd3-_9.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-COQDWC8R.js → AimdEditor.vue_vue_type_style_index_0_lang-C1XlvrNT.js} +8311 -7173
- package/dist/{AimdEntityRefField-CWVj0vPF.js → AimdEntityRefField-CX67car3.js} +1 -1
- package/dist/{AimdEntityRefField.vue_vue_type_script_setup_true_lang-CaKfY8iu.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-JISqbfKY.js} +1 -1
- package/dist/{AimdMarkdownField-BeDCefoQ.js → AimdMarkdownField-BuRsjOB5.js} +9 -9
- package/dist/{AimdMarkdownNoteField-BKrlgUYP.js → AimdMarkdownNoteField-NRA9ut3_.js} +6 -6
- package/dist/{AimdResourceRefField-DUlNcU3q.js → AimdResourceRefField-B71MVFFK.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-DYnxKzGE.js → arc-2NNDEUZL.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-CjOI8IqA.js → architectureDiagram-3BPJPVTR-BGU_a_9z.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-B8xNjZYk.js → blockDiagram-GPEHLZMM-ChLqLSJn.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-TpIYY3Qn.js → c4Diagram-AAUBKEIU-BXt823OA.js} +2 -2
- package/dist/{channel-BYLaVK3q.js → channel-D1EuKFn5.js} +1 -1
- package/dist/{chunk-2J33WTMH-YwB0nZYk.js → chunk-2J33WTMH-XJPmqQtr.js} +1 -1
- package/dist/{chunk-4BX2VUAB-6QDBanOQ.js → chunk-4BX2VUAB-CbV5jCeG.js} +1 -1
- package/dist/{chunk-55IACEB6-7rwKJBSZ.js → chunk-55IACEB6-C8gv1Mc0.js} +1 -1
- package/dist/{chunk-727SXJPM-Ba_FZJwp.js → chunk-727SXJPM-Bs2EpCWN.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-reuQpvqF.js → chunk-AQP2D5EJ-CngahRo6.js} +3 -3
- package/dist/{chunk-FMBD7UC4-D35dlx01.js → chunk-FMBD7UC4-DPBfEP1E.js} +1 -1
- package/dist/{chunk-ND2GUHAM-D7604ZCl.js → chunk-ND2GUHAM-BlEzeiST.js} +1 -1
- package/dist/{chunk-QZHKN3VN-CKYkktao.js → chunk-QZHKN3VN-DGOFj8Bc.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BNKRYoAB.js → classDiagram-4FO5ZUOK-BUQqoFF9.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BNKRYoAB.js → classDiagram-v2-Q7XG4LA2-BUQqoFF9.js} +2 -2
- package/dist/components.js +3885 -3650
- package/dist/composables.js +3 -3
- package/dist/{cose-bilkent-S5V4N54A-Dq12egzW.js → cose-bilkent-S5V4N54A-Qxs9suxa.js} +1 -1
- package/dist/{dagre-BM42HDAG-CRwAbNsB.js → dagre-BM42HDAG-CqV8IXIy.js} +3 -3
- package/dist/{diagram-2AECGRRQ--WYmW1Cd.js → diagram-2AECGRRQ-D0mYOaE1.js} +2 -2
- package/dist/{diagram-5GNKFQAL-C7KgsBJW.js → diagram-5GNKFQAL-Dvjcs9SL.js} +3 -3
- package/dist/{diagram-KO2AKTUF-B_6YtDZt.js → diagram-KO2AKTUF-rSovr72L.js} +2 -2
- package/dist/{diagram-LMA3HP47-DARH_IPq.js → diagram-LMA3HP47-CirCeq88.js} +2 -2
- package/dist/{diagram-OG6HWLK6-CRdh6xnM.js → diagram-OG6HWLK6-rk46c1hT.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-CoC8CHnh.js → erDiagram-TEJ5UH35--_m5yDSV.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-BvOa5j4A.js → flowDiagram-I6XJVG4X-DU-TlDfY.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-CVXhLTr6.js → ganttDiagram-6RSMTGT7-CrMwQSQi.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-DFhjJRYR.js → gitGraphDiagram-PVQCEYII-Q-bwtX2H.js} +3 -3
- package/dist/{graph-DEn_dxZa.js → graph-CvyYQarK.js} +58 -58
- package/dist/index.js +124 -123
- package/dist/{infoDiagram-5YYISTIA-uEUHa5YE.js → infoDiagram-5YYISTIA-BejjAcMI.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-BqGYvdVJ.js → ishikawaDiagram-YF4QCWOH-CbRBA5Ak.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-BkKJZduM.js → journeyDiagram-JHISSGLW-D_6-qOB8.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-CEsZIhW3.js → kanban-definition-UN3LZRKU-DyGjEqu5.js} +2 -2
- package/dist/{layout-Dk4utAZD.js → layout-Z5g42JDg.js} +93 -93
- package/dist/{linear-pw3I09nb.js → linear-DSunMwcT.js} +1 -1
- package/dist/{mermaid.core-iJ2XgYy9.js → mermaid.core-B-O2uDZ3.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-ChQ5---t.js → mindmap-definition-RKZ34NQL-CC_NhwV9.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-DRIV2FNb.js → pieDiagram-4H26LBE5-CHlBAazu.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-C57biOpe.js → quadrantDiagram-W4KKPZXB-BM6pMzVZ.js} +2 -2
- package/dist/record.js +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-KjKJuN09.js → requirementDiagram-4Y6WPE33-CNkZDYpb.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-BFubJDRS.js → sankeyDiagram-5OEKKPKP-Cq6DjItn.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-B7vg6NfP.js → sequenceDiagram-3UESZ5HK-BIzn9dmF.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-BRs_mbra.js → stateDiagram-AJRCARHV-DbSpH-v9.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-4w8m6dxi.js → stateDiagram-v2-BHNVJYJU-Cnv8BTgy.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-vrEAExRb.js → timeline-definition-PNZ67QCA-Bhs5_-8Z.js} +2 -2
- package/dist/useCodeBlockRendering-IjoDTQ64.js +35 -0
- package/dist/{useFieldRendering-B3Vm2XT8.js → useFieldRendering-r1bAnHjk.js} +239 -240
- package/dist/useVarHelpers-xrbf4f60.js +7008 -0
- package/dist/{validation-IAiGnEKX.js → validation-ZmPcMCY0.js} +991 -989
- package/dist/{vennDiagram-CIIHVFJN-CFtQv4Ta.js → vennDiagram-CIIHVFJN-DJSLUotN.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-BxzaCMou.js → wardleyDiagram-YWT4CUSO-Bk66hVLg.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-DhTuG8MO.js → xychartDiagram-2RQKCTM6-Bss5MLVp.js} +2 -2
- package/package.json +4 -4
- package/src/__tests__/check-field-render.test.ts +65 -0
- package/src/__tests__/compact-field-types.test.ts +181 -0
- package/src/__tests__/compact-fields.test.ts +31 -0
- package/src/__tests__/multi-select-field.test.ts +54 -0
- package/src/__tests__/quoted-check-wysiwyg.test.ts +56 -0
- package/src/__tests__/recorder-field-authoring.test.ts +92 -0
- package/src/__tests__/recorder-wysiwyg-field-host.test.ts +115 -1
- package/src/__tests__/step-field.test.ts +54 -1
- package/src/components/AimdMultiSelectField.vue +56 -0
- package/src/components/AimdRecorder.vue +21 -4
- package/src/components/AimdRecorderEditor.vue +4 -0
- package/src/components/AimdRecorderWysiwygFieldHost.vue +8 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +220 -8
- package/src/components/AimdStepCheckField.vue +36 -7
- package/src/components/AimdVarField.vue +48 -4
- package/src/components/AimdVarTableField.vue +3 -0
- package/src/components/index.ts +2 -0
- package/src/components/recorderMilkdownPlugin.ts +36 -6
- package/src/composables/__tests__/useVarHelpers.test.ts +15 -0
- package/src/composables/__tests__/workbenchFieldEditing.test.ts +10 -0
- package/src/composables/useFieldPresentation.ts +7 -0
- package/src/composables/useFieldRendering.ts +1 -0
- package/src/composables/useVarHelpers.ts +20 -101
- package/src/composables/workbenchFieldEditing.ts +5 -7
- package/src/index.ts +1 -0
- package/src/record/validation.ts +6 -0
- package/src/styles/recorder-compact.css +45 -0
- package/src/styles/recorder-surface.css +14 -5
- package/src/styles/recorder.css +4 -0
- package/src/type-utils.ts +5 -1
- package/src/types.ts +1 -1
- package/dist/useCodeBlockRendering-D2viVPtA.js +0 -3158
- package/dist/useVarHelpers-DzhBBFdk.js +0 -3525
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as P, ref as w, computed as p, watch as Q, openBlock as a, createElementBlock as r, Fragment as N, renderList as x, createElementVNode as y, toDisplayString as l, createCommentVNode as f, withDirectives as j, withKeys as U, withModifiers as G, vModelText as H } from "vue";
|
|
2
|
-
import { a6 as J } from "./useVarHelpers-
|
|
2
|
+
import { a6 as J } from "./useVarHelpers-xrbf4f60.js";
|
|
3
3
|
const O = { class: "aimd-rec-entity-ref" }, W = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "aimd-rec-entity-ref__selected"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p, ref as m, watch as V, h as x, computed as l, shallowRef as ie, onBeforeUnmount as oe, openBlock as r, createElementBlock as n, normalizeStyle as re, normalizeClass as C, createElementVNode as s, toDisplayString as c, unref as v, createBlock as F, createCommentVNode as w, createVNode as E } from "vue";
|
|
2
|
-
import { g as ne, _ as de } from "./AimdEditor.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import "./useVarHelpers-
|
|
4
|
-
import {
|
|
2
|
+
import { g as ne, _ as de } from "./AimdEditor.vue_vue_type_style_index_0_lang-C1XlvrNT.js";
|
|
3
|
+
import "./useVarHelpers-xrbf4f60.js";
|
|
4
|
+
import { renderToVue as le, createMermaidRenderer as se } from "@airalogy/aimd-renderer";
|
|
5
5
|
import "@airalogy/aimd-core";
|
|
6
|
-
import {
|
|
6
|
+
import { u as ce, c as ue } from "./useCodeBlockRendering-IjoDTQ64.js";
|
|
7
7
|
import { c as me } from "./useMonacoAutoHeight-D4T-El3J.js";
|
|
8
8
|
import { _ as ve, a as fe } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
|
|
9
9
|
const we = { class: "aimd-field aimd-field--no-style aimd-field__label" }, he = { class: "aimd-field__scope aimd-field__scope--var" }, ke = { class: "aimd-field__id" }, _e = { class: "aimd-markdown-field__header-actions" }, ge = ["aria-label"], pe = ["aria-pressed"], be = ["aria-pressed"], ye = {
|
|
@@ -68,7 +68,7 @@ const we = { class: "aimd-field aimd-field--no-style aimd-field__label" }, he =
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
try {
|
|
71
|
-
const T = (await import("./mermaid.core-
|
|
71
|
+
const T = (await import("./mermaid.core-B-O2uDZ3.js").then((te) => te.bm)).default;
|
|
72
72
|
T.initialize({
|
|
73
73
|
startOnLoad: !1,
|
|
74
74
|
securityLevel: "strict"
|
|
@@ -90,7 +90,7 @@ const we = { class: "aimd-field aimd-field--no-style aimd-field__label" }, he =
|
|
|
90
90
|
innerHTML: t.value
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
}), { preRenderer: O } =
|
|
93
|
+
}), { preRenderer: O } = ce(() => {
|
|
94
94
|
R();
|
|
95
95
|
}), b = m(null), i = m(q(d.modelValue)), k = m(i.value.trim() ? "preview" : "source"), u = me({
|
|
96
96
|
getInitialValue: () => i.value,
|
|
@@ -132,12 +132,12 @@ const we = { class: "aimd-field aimd-field--no-style aimd-field__label" }, he =
|
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
try {
|
|
135
|
-
const o = await
|
|
135
|
+
const o = await le(e, {
|
|
136
136
|
locale: d.locale,
|
|
137
137
|
mode: "preview",
|
|
138
138
|
elementRenderers: {
|
|
139
|
-
pre:
|
|
140
|
-
|
|
139
|
+
pre: ue(
|
|
140
|
+
se(P),
|
|
141
141
|
O
|
|
142
142
|
)
|
|
143
143
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as K, ref as h, computed as a, shallowRef as re, watch as R, onBeforeUnmount as se, openBlock as r, createElementBlock as m, normalizeStyle as ue, normalizeClass as U, createElementVNode as l, toDisplayString as s, createCommentVNode as ce, createBlock as me, unref as M, createVNode as fe, nextTick as ve } from "vue";
|
|
2
|
-
import { _ as we } from "./AimdEditor.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import "./useVarHelpers-
|
|
4
|
-
import {
|
|
2
|
+
import { _ as we } from "./AimdEditor.vue_vue_type_style_index_0_lang-C1XlvrNT.js";
|
|
3
|
+
import "./useVarHelpers-xrbf4f60.js";
|
|
4
|
+
import { renderToVue as he } from "@airalogy/aimd-renderer";
|
|
5
5
|
import "@airalogy/aimd-core";
|
|
6
|
-
import {
|
|
6
|
+
import { u as be } from "./useCodeBlockRendering-IjoDTQ64.js";
|
|
7
7
|
import { c as _e } from "./useMonacoAutoHeight-D4T-El3J.js";
|
|
8
8
|
import { a as pe } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
|
|
9
9
|
const ke = {
|
|
@@ -55,7 +55,7 @@ const ke = {
|
|
|
55
55
|
"--aimd-markdown-note-editor-height": `${B.value}px`
|
|
56
56
|
})), d = h(!1), _ = re([]), p = h(!1);
|
|
57
57
|
let C = 0, v = null, w = null, k = !1, F = !1;
|
|
58
|
-
const { preRenderer: Z } =
|
|
58
|
+
const { preRenderer: Z } = be(() => {
|
|
59
59
|
H();
|
|
60
60
|
}), c = a(() => !!n.value.trim()), S = a(() => c.value && !d.value), y = a(() => !t.disabled && (!c.value || d.value)), j = a(() => !S.value && !y.value), J = a(() => f(t.locale) ? "关闭备注" : "Close note"), Q = a(() => f(t.locale) ? "暂无备注" : "No notes"), L = a(() => f(t.locale) ? "预览" : "Preview"), A = a(() => f(t.locale) ? "源码" : "Source"), I = a(() => f(t.locale) ? "备注显示模式" : "Note view mode"), X = a(() => ({
|
|
61
61
|
minimap: { enabled: !1 },
|
|
@@ -91,7 +91,7 @@ const ke = {
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
|
-
const E = await
|
|
94
|
+
const E = await he(e, {
|
|
95
95
|
locale: t.locale,
|
|
96
96
|
elementRenderers: {
|
|
97
97
|
pre: Z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as L, ref as B, computed as _, watch as T, openBlock as l, createElementBlock as a, createVNode as z, toDisplayString as o, createCommentVNode as c, createElementVNode as d, Fragment as b, renderList as $, createTextVNode as R } from "vue";
|
|
2
|
-
import { a6 as S } from "./useVarHelpers-
|
|
3
|
-
import { _ as j } from "./AimdEntityRefField.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a6 as S } from "./useVarHelpers-xrbf4f60.js";
|
|
3
|
+
import { _ as j } from "./AimdEntityRefField.vue_vue_type_script_setup_true_lang-JISqbfKY.js";
|
|
4
4
|
import { a as D } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
|
|
5
5
|
const K = { class: "aimd-rec-resource-ref" }, P = {
|
|
6
6
|
key: 0,
|