@airalogy/aimd-recorder 1.20.0 → 1.22.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 +5 -0
- package/README.zh-CN.md +5 -0
- package/dist/{AimdCodeField-BQUuM-EF.js → AimdCodeField-BN_0UQMx.js} +34 -32
- package/dist/{AimdDnaSequenceField-Cp0cgBYl.js → AimdDnaSequenceField-Bhj28fP8.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-DTdcoNs1.js → AimdEditor.vue_vue_type_style_index_0_lang-D7c01UqN.js} +1040 -976
- package/dist/{AimdMarkdownField-D4AEz_mB.js → AimdMarkdownField-GS15pv4z.js} +4 -4
- package/dist/{AimdMarkdownNoteField-CSGaShKi.js → AimdMarkdownNoteField-H9WP8tR6.js} +15 -15
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-jL17V0L2.js → arc-B50G9-kH.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-CijadmFI.js → architectureDiagram-3BPJPVTR-D9mBEbpY.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-BPqvb85_.js → blockDiagram-GPEHLZMM-Cs4swgto.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-i4fqlMXu.js → c4Diagram-AAUBKEIU-C12HKS3r.js} +2 -2
- package/dist/{channel-DnnUQTdl.js → channel-D69VnjVz.js} +1 -1
- package/dist/{chunk-2J33WTMH-DKKEpdr1.js → chunk-2J33WTMH-oc-89G5c.js} +1 -1
- package/dist/{chunk-4BX2VUAB-WvuuiYYH.js → chunk-4BX2VUAB-BDJS9G3r.js} +1 -1
- package/dist/{chunk-55IACEB6-B_UkHTnd.js → chunk-55IACEB6-BPl3uHcA.js} +1 -1
- package/dist/{chunk-727SXJPM-CR6Pb04P.js → chunk-727SXJPM-pWe-vDGf.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-B68Ie417.js → chunk-AQP2D5EJ-D-R5sIr1.js} +3 -3
- package/dist/{chunk-FMBD7UC4-CeCGT6rb.js → chunk-FMBD7UC4-bo6Qyom1.js} +1 -1
- package/dist/{chunk-ND2GUHAM-BYN-eC_q.js → chunk-ND2GUHAM-DQMvtYV7.js} +1 -1
- package/dist/{chunk-QZHKN3VN-BNSp120j.js → chunk-QZHKN3VN-DlCn3HON.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-Cgbn4w3f.js → classDiagram-4FO5ZUOK-DzUwWFwr.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-Cgbn4w3f.js → classDiagram-v2-Q7XG4LA2-DzUwWFwr.js} +2 -2
- package/dist/components.js +3757 -2910
- package/dist/composables.js +84 -80
- package/dist/{cose-bilkent-S5V4N54A-TfrsQ2c3.js → cose-bilkent-S5V4N54A-BXLMzfpO.js} +1 -1
- package/dist/{dagre-BM42HDAG-BAyvB_JI.js → dagre-BM42HDAG-DHnofIh9.js} +3 -3
- package/dist/{diagram-2AECGRRQ-Bijq8bHO.js → diagram-2AECGRRQ-BqTTVPsm.js} +2 -2
- package/dist/{diagram-5GNKFQAL-B3ZuTuxm.js → diagram-5GNKFQAL-D5p1UVbw.js} +3 -3
- package/dist/{diagram-KO2AKTUF-DrqLeGCI.js → diagram-KO2AKTUF-Uuoz9cFn.js} +2 -2
- package/dist/{diagram-LMA3HP47-CCSQH8O0.js → diagram-LMA3HP47-W001U31X.js} +2 -2
- package/dist/{diagram-OG6HWLK6-DM5cUEjW.js → diagram-OG6HWLK6-DL516LDr.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-DQhmDdAF.js → erDiagram-TEJ5UH35-CCxgMb67.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-DrqiPSHI.js → flowDiagram-I6XJVG4X-nXGdmC0O.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-DpX_Y2vA.js → ganttDiagram-6RSMTGT7-Bi9Ro7_Z.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-3isOhIyZ.js → gitGraphDiagram-PVQCEYII-w1kNAy4E.js} +3 -3
- package/dist/{graph-C30SJlSk.js → graph-CpOkL_eZ.js} +1 -1
- package/dist/{index-Dtvv88SS.js → index-Dkrf2LJl.js} +51 -51
- package/dist/index.js +62 -58
- package/dist/{infoDiagram-5YYISTIA-Cr_MlPvz.js → infoDiagram-5YYISTIA-Bde_w9T1.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-DydyFn3h.js → ishikawaDiagram-YF4QCWOH-x5M1KR0l.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-V_5MmeOu.js → journeyDiagram-JHISSGLW-CIDQP8Zm.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-C_XXCuvp.js → kanban-definition-UN3LZRKU-CKgO7sG8.js} +2 -2
- package/dist/{layout-85j-z7Lr.js → layout-BZYprqYR.js} +2 -2
- package/dist/{linear-DMtodz-6.js → linear-ClSH2F_v.js} +1 -1
- package/dist/{mermaid.core-CkanUCyS.js → mermaid.core-CcRV6K2R.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-CyikmuF2.js → mindmap-definition-RKZ34NQL-s3h6uszV.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-CesqzEGg.js → pieDiagram-4H26LBE5-CgiazyWv.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BsPKPfNd.js → quadrantDiagram-W4KKPZXB-DCPVgHoW.js} +2 -2
- package/dist/record.js +19 -19
- package/dist/{requirementDiagram-4Y6WPE33-BwB1tQvi.js → requirementDiagram-4Y6WPE33-DE6F9oSB.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-CfSNbWMY.js → sankeyDiagram-5OEKKPKP-DZZoFFr-.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-DZZlUNys.js → sequenceDiagram-3UESZ5HK-DaYEOl60.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-DNJmz_op.js → stateDiagram-AJRCARHV-BmgpHJlH.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-DVfDNM6l.js → stateDiagram-v2-BHNVJYJU-D49CHQD6.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-DEUCAg_N.js → timeline-definition-PNZ67QCA-DdVLoCkC.js} +2 -2
- package/dist/{useCodeBlockRendering-DF6zm7nf.js → useCodeBlockRendering-CCuoP52e.js} +1241 -1074
- package/dist/{vennDiagram-CIIHVFJN-DVDP__od.js → vennDiagram-CIIHVFJN-CCcMKcd7.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-sEtxBd33.js → wardleyDiagram-YWT4CUSO-R4UGgGWY.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-DM8QeR5M.js → xychartDiagram-2RQKCTM6-DyFhCubk.js} +2 -2
- package/package.json +3 -3
- package/src/__tests__/record-search-render.test.ts +108 -0
- package/src/__tests__/recorder-assigner-control.test.ts +4 -1
- package/src/__tests__/var-field-render.test.ts +556 -43
- package/src/components/AimdCodeField.vue +11 -3
- package/src/components/AimdQuizRecorder.vue +3 -1
- package/src/components/AimdRecorder.vue +52 -1882
- package/src/components/AimdRecorderSearchToolbar.vue +258 -0
- package/src/components/AimdVarField.vue +589 -17
- package/src/components/AimdVarTableField.vue +12 -6
- package/src/components/index.ts +1 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +214 -7
- package/src/composables/index.ts +6 -0
- package/src/composables/useFieldRendering.ts +28 -0
- package/src/composables/useRecordSearch.ts +299 -0
- package/src/composables/useVarHelpers.ts +285 -14
- package/src/locales.ts +96 -0
- package/src/styles/recorder-surface.css +2374 -0
- package/src/styles/recorder.css +1 -0
- package/src/types.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, ref as m, watch as V, h as x, computed as l, shallowRef as te, onBeforeUnmount as oe, openBlock as r, createElementBlock as n, normalizeStyle as ie, normalizeClass as C, createElementVNode as s, toDisplayString as c, unref as v, createVNode as E, createCommentVNode as g, createBlock as re } from "vue";
|
|
2
|
-
import { g as ne, _ as de } from "./AimdEditor.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import "./index-
|
|
4
|
-
import {
|
|
2
|
+
import { g as ne, _ as de } from "./AimdEditor.vue_vue_type_style_index_0_lang-D7c01UqN.js";
|
|
3
|
+
import "./index-Dkrf2LJl.js";
|
|
4
|
+
import { V as le, g as se } from "./useCodeBlockRendering-CCuoP52e.js";
|
|
5
5
|
import "@airalogy/aimd-core";
|
|
6
6
|
import { renderToVue as ce, createMermaidRenderer as ue } from "@airalogy/aimd-renderer";
|
|
7
7
|
import { c as me } from "./useMonacoAutoHeight-D4T-El3J.js";
|
|
@@ -67,7 +67,7 @@ const fe = { class: "aimd-field aimd-field--no-style aimd-field__label" }, we =
|
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
try {
|
|
70
|
-
const T = (await import("./mermaid.core-
|
|
70
|
+
const T = (await import("./mermaid.core-CcRV6K2R.js").then((ae) => ae.bm)).default;
|
|
71
71
|
T.initialize({
|
|
72
72
|
startOnLoad: !1,
|
|
73
73
|
securityLevel: "strict"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as K, ref as h, computed as a, shallowRef as re, watch as
|
|
2
|
-
import { _ as we } from "./AimdEditor.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import "./index-
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as K, ref as h, computed as a, shallowRef as re, watch as V, 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-D7c01UqN.js";
|
|
3
|
+
import "./index-Dkrf2LJl.js";
|
|
4
|
+
import { V as he } from "./useCodeBlockRendering-CCuoP52e.js";
|
|
5
5
|
import "@airalogy/aimd-core";
|
|
6
6
|
import { renderToVue as be } from "@airalogy/aimd-renderer";
|
|
7
7
|
import { c as _e } from "./useMonacoAutoHeight-D4T-El3J.js";
|
|
@@ -16,7 +16,7 @@ const ke = {
|
|
|
16
16
|
type: "button",
|
|
17
17
|
class: "aimd-markdown-note-field__view-btn aimd-markdown-note-field__view-btn--active",
|
|
18
18
|
"aria-pressed": "true"
|
|
19
|
-
},
|
|
19
|
+
}, Ve = ["tabindex", "role"], Re = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "aimd-markdown-note-field__preview-fallback"
|
|
22
22
|
}, Ce = {
|
|
@@ -46,9 +46,9 @@ const ke = {
|
|
|
46
46
|
function f(e) {
|
|
47
47
|
return e?.toLowerCase().startsWith("zh") ?? !1;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const R = h(null), P = h(null), n = h(N(t.modelValue)), u = _e({
|
|
50
50
|
getInitialValue: () => n.value,
|
|
51
|
-
getLayoutElement: () =>
|
|
51
|
+
getLayoutElement: () => R.value?.querySelector(".aimd-editor-container"),
|
|
52
52
|
minHeight: t.minHeight,
|
|
53
53
|
maxHeight: 420
|
|
54
54
|
}), B = u.editorHeight, W = a(() => ({
|
|
@@ -146,31 +146,31 @@ const ke = {
|
|
|
146
146
|
g();
|
|
147
147
|
}
|
|
148
148
|
function de(e) {
|
|
149
|
-
const o =
|
|
149
|
+
const o = R.value, E = e.relatedTarget;
|
|
150
150
|
!o || E && o.contains(E) || k || (g(), v = setTimeout(() => {
|
|
151
151
|
v = null;
|
|
152
152
|
const G = typeof document < "u" ? document.activeElement : null;
|
|
153
153
|
G instanceof Node && o.contains(G) || (c.value && (d.value = !1), b("blur"));
|
|
154
154
|
}, 0));
|
|
155
155
|
}
|
|
156
|
-
return
|
|
156
|
+
return V(() => t.modelValue, (e) => {
|
|
157
157
|
const o = N(e);
|
|
158
158
|
o !== n.value && (n.value = o, u.syncEstimatedEditorHeight(o));
|
|
159
|
-
}),
|
|
159
|
+
}), V(
|
|
160
160
|
() => [n.value, t.locale],
|
|
161
161
|
() => {
|
|
162
162
|
z(), H();
|
|
163
163
|
},
|
|
164
164
|
{ immediate: !0 }
|
|
165
|
-
),
|
|
165
|
+
), V(() => t.disabled, () => {
|
|
166
166
|
z();
|
|
167
|
-
}),
|
|
167
|
+
}), V(y, (e) => {
|
|
168
168
|
e && !t.disabled && D();
|
|
169
169
|
}, { immediate: !0 }), se(() => {
|
|
170
170
|
g(), x(), u.dispose();
|
|
171
171
|
}), (e, o) => (r(), m("div", {
|
|
172
172
|
ref_key: "fieldRootRef",
|
|
173
|
-
ref:
|
|
173
|
+
ref: R,
|
|
174
174
|
class: U(["aimd-markdown-note-field", {
|
|
175
175
|
"aimd-markdown-note-field--disabled": i.disabled,
|
|
176
176
|
"aimd-markdown-note-field--preview": S.value,
|
|
@@ -204,11 +204,11 @@ const ke = {
|
|
|
204
204
|
onClick: ae,
|
|
205
205
|
onKeydown: ie
|
|
206
206
|
}, [
|
|
207
|
-
p.value ? (r(), m("pre",
|
|
207
|
+
p.value ? (r(), m("pre", Re, s(n.value), 1)) : (r(), me(M(Y), {
|
|
208
208
|
key: 1,
|
|
209
209
|
nodes: _.value
|
|
210
210
|
}, null, 8, ["nodes"]))
|
|
211
|
-
], 42,
|
|
211
|
+
], 42, Ve)
|
|
212
212
|
])) : y.value ? (r(), m("div", Ce, [
|
|
213
213
|
l("div", Fe, [
|
|
214
214
|
l("span", {
|