@airalogy/aimd-recorder 1.14.1
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 +240 -0
- package/README.zh-CN.md +224 -0
- package/dist/AimdCodeField-DC3DPvgc.js +172 -0
- package/dist/AimdDnaSequenceField-__jdnFS9.js +59466 -0
- package/dist/AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js +28370 -0
- package/dist/AimdMarkdownField-98ImHGbc.js +66 -0
- package/dist/AimdMarkdownNoteField-CuUJZkgT.js +185 -0
- package/dist/_.contribution-IP0cDNhs.js +38 -0
- package/dist/_commonjsHelpers-CZXJ37nu.js +40 -0
- package/dist/abap-Bs8kvjsq.js +1398 -0
- package/dist/aimd-recorder.css +1 -0
- package/dist/apex-Dspwrl5m.js +326 -0
- package/dist/assets/css.worker-Dmf38jDD.js +79 -0
- package/dist/assets/editor.worker-CpuX8TSY.js +12 -0
- package/dist/assets/html.worker-DotaEs7v.js +456 -0
- package/dist/assets/json.worker-B4VHhH6h.js +44 -0
- package/dist/assets/ts.worker-sl17zBDo.js +51316 -0
- package/dist/azcli-k1BiOau1.js +68 -0
- package/dist/bat-BIP72KWc.js +100 -0
- package/dist/bicep-VhQeYhS3.js +102 -0
- package/dist/cameligo-DnuAXtHg.js +174 -0
- package/dist/clojure-BAuDPsal.js +761 -0
- package/dist/coffee-BV06qSnj.js +232 -0
- package/dist/components.js +3595 -0
- package/dist/composables.js +72 -0
- package/dist/cpp-Cz8Jeyrf.js +389 -0
- package/dist/csharp-F6hhlXFb.js +326 -0
- package/dist/csp-KzlEHCyI.js +53 -0
- package/dist/css-e4FKntZ3.js +187 -0
- package/dist/cssMode-uz9U6SUU.js +1571 -0
- package/dist/cypher-CpvDGKRr.js +263 -0
- package/dist/dart-DdHeFWR0.js +281 -0
- package/dist/dockerfile-aoNXDcio.js +130 -0
- package/dist/ecl-C4Q0DYuA.js +456 -0
- package/dist/editor.api-CgD9w0gG.js +77091 -0
- package/dist/editor.main-Du02abDl.js +33783 -0
- package/dist/elixir-C9X42b0T.js +569 -0
- package/dist/flow9-Bff42pfB.js +142 -0
- package/dist/freemarker2-DFLX4iQ-.js +989 -0
- package/dist/fsharp-C6vPAsHG.js +217 -0
- package/dist/go-DEr8zx9f.js +218 -0
- package/dist/graphql-BiNBBRFh.js +151 -0
- package/dist/handlebars-aiZbIuWY.js +419 -0
- package/dist/hcl-2T9lKuFg.js +183 -0
- package/dist/html-phzTMObN.js +308 -0
- package/dist/htmlMode-BF7wMi3N.js +1581 -0
- package/dist/index.js +89 -0
- package/dist/ini-CZGtssYM.js +71 -0
- package/dist/ini.contribution-DyWtiacL.js +8 -0
- package/dist/java-B260NeH3.js +232 -0
- package/dist/javascript-BKKOItMi.js +70 -0
- package/dist/jsonMode-CDYK4B5l.js +1996 -0
- package/dist/julia-kuNLM9c5.js +511 -0
- package/dist/kotlin-Bz6kAefA.js +253 -0
- package/dist/less-AZUtS89I.js +162 -0
- package/dist/lexon-BcmgnyRb.js +157 -0
- package/dist/liquid-B2eRz5SA.js +240 -0
- package/dist/lua-Dz1RbATg.js +162 -0
- package/dist/m3-CIMooLFn.js +210 -0
- package/dist/markdown-C1BsCK9P.js +229 -0
- package/dist/markdown.contribution-DYYk6zUU.js +7 -0
- package/dist/mdx-BfV1HDRG.js +165 -0
- package/dist/mips-BovsnfLQ.js +198 -0
- package/dist/monaco.contribution-C-bQhUTI.js +114 -0
- package/dist/monaco.contribution-CCVvl3Jx.js +72 -0
- package/dist/monaco.contribution-Col-f0XR.js +164 -0
- package/dist/monaco.contribution-b5xkgQ-s.js +112 -0
- package/dist/msdax-CiRB2ZB-.js +375 -0
- package/dist/mysql-BwdpPE19.js +878 -0
- package/dist/objective-c-D4nfHfso.js +183 -0
- package/dist/pascal--j5-PYtz.js +251 -0
- package/dist/pascaligo-C7TcJxNL.js +164 -0
- package/dist/perl-BzEWqUb5.js +626 -0
- package/dist/pgsql-B_KZ0mGX.js +851 -0
- package/dist/php-A19QHzQV.js +500 -0
- package/dist/pla-COeKY1hA.js +137 -0
- package/dist/postiats-BfMp7zJL.js +907 -0
- package/dist/powerquery-B0TS_5Gb.js +890 -0
- package/dist/powershell-5jSbKdYB.js +239 -0
- package/dist/protobuf-YgnOutn3.js +420 -0
- package/dist/pug-DLej6kn5.js +402 -0
- package/dist/python-CQrZx9mR.js +301 -0
- package/dist/python.contribution-CcKs2Ktm.js +8 -0
- package/dist/qsharp-AhjqtSHB.js +301 -0
- package/dist/r-D-F4P80w.js +243 -0
- package/dist/razor-DWmpHMcx.js +550 -0
- package/dist/redis-hwwIlMnV.js +302 -0
- package/dist/redshift-Bcm_kjEG.js +809 -0
- package/dist/restructuredtext-CrdzfPP-.js +174 -0
- package/dist/ruby-QC2UNm1s.js +511 -0
- package/dist/rust-5aqiQ3L5.js +343 -0
- package/dist/sb-B1g1ZfLJ.js +115 -0
- package/dist/scala-C2U4R5Gb.js +370 -0
- package/dist/scheme-DeFRbslr.js +108 -0
- package/dist/scss-RSTCiCmI.js +262 -0
- package/dist/shell-BpF-iNu8.js +221 -0
- package/dist/shell.contribution-B80NZ3iO.js +7 -0
- package/dist/solidity-C00r2mbQ.js +1367 -0
- package/dist/sophia-DVW5ZKDB.js +199 -0
- package/dist/sparql-B0nmpxeX.js +201 -0
- package/dist/sql-CJwKPERn.js +853 -0
- package/dist/sql.contribution-DQy36aE5.js +7 -0
- package/dist/st-DPlKG5DT.js +416 -0
- package/dist/swift-YZBAbVHV.js +309 -0
- package/dist/systemverilog-CDQSaH63.js +576 -0
- package/dist/tcl-Dlu8sp6Q.js +232 -0
- package/dist/tsMode-Bh-v12OL.js +887 -0
- package/dist/twig-C5TO7-kw.js +392 -0
- package/dist/typescript-c7y6IZVP.js +343 -0
- package/dist/typespec-BsmjDEu7.js +117 -0
- package/dist/useFieldRendering-BIqeE3qo.js +6083 -0
- package/dist/vb-ChHvIDrk.js +372 -0
- package/dist/wgsl-XEp1ju8c.js +439 -0
- package/dist/xml-MAEprTnF.js +95 -0
- package/dist/xml.contribution-XMOaon8i.js +27 -0
- package/dist/yaml-C1p8rXG7.js +206 -0
- package/dist/yaml.contribution-DRRVhJmJ.js +8 -0
- package/package.json +88 -0
- package/src/__tests__/client-assigner.test.ts +341 -0
- package/src/__tests__/code-types.test.ts +30 -0
- package/src/__tests__/markdown-field.test.ts +34 -0
- package/src/__tests__/markdown-note-field.test.ts +135 -0
- package/src/__tests__/quiz-recorder.test.ts +195 -0
- package/src/__tests__/recorder-editor-content-sync.test.ts +172 -0
- package/src/__tests__/recorder-editor.test.ts +143 -0
- package/src/__tests__/recorder-render.test.ts +57 -0
- package/src/__tests__/recorder-wysiwyg-field-host.test.ts +33 -0
- package/src/__tests__/step-field.test.ts +270 -0
- package/src/__tests__/type-plugins.test.ts +59 -0
- package/src/__tests__/var-field-render.test.ts +26 -0
- package/src/client-assigner.ts +269 -0
- package/src/code-types.ts +94 -0
- package/src/components/AimdCodeField.vue +228 -0
- package/src/components/AimdDnaSequenceField.vue +983 -0
- package/src/components/AimdMarkdownField.vue +168 -0
- package/src/components/AimdMarkdownNoteField.vue +457 -0
- package/src/components/AimdQuizRecorder.vue +792 -0
- package/src/components/AimdRecorder.vue +1959 -0
- package/src/components/AimdRecorderEditor.vue +2281 -0
- package/src/components/AimdRecorderWysiwygFieldHost.vue +93 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +487 -0
- package/src/components/AimdSeqVizViewer.vue +122 -0
- package/src/components/AimdStepCheckField.vue +453 -0
- package/src/components/AimdVarField.vue +213 -0
- package/src/components/AimdVarTableField.vue +516 -0
- package/src/components/DnaAnnotationEditor.vue +477 -0
- package/src/components/DnaSequenceEditor.vue +44 -0
- package/src/components/DnaSequenceToolbar.vue +98 -0
- package/src/components/DnaSequenceViewer.vue +162 -0
- package/src/components/index.ts +21 -0
- package/src/components/recorderMilkdownPlugin.ts +632 -0
- package/src/composables/__tests__/useDnaSequence.test.ts +467 -0
- package/src/composables/__tests__/useFieldAdapters.test.ts +115 -0
- package/src/composables/__tests__/useFocusManagement.test.ts +66 -0
- package/src/composables/__tests__/useRecordState.test.ts +586 -0
- package/src/composables/__tests__/useStepTimers.test.ts +64 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +424 -0
- package/src/composables/__tests__/workbenchFieldEditing.test.ts +97 -0
- package/src/composables/index.ts +94 -0
- package/src/composables/useClientAssignerRunner.ts +74 -0
- package/src/composables/useDnaSequence.ts +400 -0
- package/src/composables/useDnaSequenceField.ts +316 -0
- package/src/composables/useFieldAdapters.ts +61 -0
- package/src/composables/useFieldRendering.ts +269 -0
- package/src/composables/useFocusManagement.ts +144 -0
- package/src/composables/useRecordState.ts +429 -0
- package/src/composables/useStepTimers.ts +243 -0
- package/src/composables/useVarHelpers.ts +545 -0
- package/src/composables/useVarTableDragDrop.ts +236 -0
- package/src/composables/workbenchFieldEditing.ts +705 -0
- package/src/css.d.ts +9 -0
- package/src/index.ts +65 -0
- package/src/locales.ts +559 -0
- package/src/monaco-code.ts +75 -0
- package/src/styles/aimd.css +994 -0
- package/src/type-plugins.ts +132 -0
- package/src/type-utils.ts +3 -0
- package/src/types.ts +191 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as p, ref as m, watch as h, openBlock as v, createElementBlock as g, normalizeClass as k, createElementVNode as d, toDisplayString as c, unref as u, createVNode as w } from "vue";
|
|
2
|
+
import { g as V, _ as y } from "./AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js";
|
|
3
|
+
import "@airalogy/aimd-core";
|
|
4
|
+
import "@airalogy/aimd-renderer";
|
|
5
|
+
import { _ as x } from "./_commonjsHelpers-CZXJ37nu.js";
|
|
6
|
+
const R = { class: "aimd-field aimd-field--no-style aimd-field__label" }, B = { class: "aimd-field__scope aimd-field__scope--var" }, F = { class: "aimd-field__id" }, I = { class: "aimd-markdown-field__editor-shell" }, M = /* @__PURE__ */ p({
|
|
7
|
+
__name: "AimdMarkdownField",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { default: void 0 },
|
|
10
|
+
varId: {},
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
locale: { default: void 0 },
|
|
13
|
+
messages: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue", "blur"],
|
|
16
|
+
setup(a, { emit: f }) {
|
|
17
|
+
const i = a, t = f;
|
|
18
|
+
function n(e) {
|
|
19
|
+
return typeof e == "string" ? e : e == null ? "" : String(e);
|
|
20
|
+
}
|
|
21
|
+
const r = m(null), o = m(n(i.modelValue));
|
|
22
|
+
function b(e) {
|
|
23
|
+
e !== o.value && (o.value = e, t("update:modelValue", e));
|
|
24
|
+
}
|
|
25
|
+
function _(e) {
|
|
26
|
+
const l = r.value, s = e.relatedTarget;
|
|
27
|
+
!l || s && l.contains(s) || t("blur");
|
|
28
|
+
}
|
|
29
|
+
return h(() => i.modelValue, (e) => {
|
|
30
|
+
const l = n(e);
|
|
31
|
+
l !== o.value && (o.value = l);
|
|
32
|
+
}), (e, l) => (v(), g("div", {
|
|
33
|
+
ref_key: "fieldRootRef",
|
|
34
|
+
ref: r,
|
|
35
|
+
class: k(["aimd-rec-inline aimd-rec-inline--var-stacked aimd-rec-inline--var-markdown aimd-field-wrapper aimd-markdown-field", { "aimd-markdown-field--disabled": a.disabled }]),
|
|
36
|
+
onFocusout: _
|
|
37
|
+
}, [
|
|
38
|
+
d("span", R, [
|
|
39
|
+
d("span", B, c(u(V)("var", a.messages)), 1),
|
|
40
|
+
d("span", F, c(a.varId), 1)
|
|
41
|
+
]),
|
|
42
|
+
d("div", I, [
|
|
43
|
+
w(u(y), {
|
|
44
|
+
class: "aimd-markdown-field__editor",
|
|
45
|
+
"model-value": o.value,
|
|
46
|
+
locale: a.locale,
|
|
47
|
+
mode: "source",
|
|
48
|
+
theme: "aimd-light",
|
|
49
|
+
"show-top-bar": !0,
|
|
50
|
+
"show-toolbar": !a.disabled,
|
|
51
|
+
"show-md-toolbar": !0,
|
|
52
|
+
"show-aimd-toolbar": !0,
|
|
53
|
+
"enable-block-handle": !a.disabled,
|
|
54
|
+
"keep-inactive-editors-mounted": !1,
|
|
55
|
+
"min-height": 360,
|
|
56
|
+
readonly: a.disabled,
|
|
57
|
+
"monaco-options": { minimap: { enabled: !1 } },
|
|
58
|
+
"onUpdate:modelValue": b
|
|
59
|
+
}, null, 8, ["model-value", "locale", "show-toolbar", "enable-block-handle", "readonly"])
|
|
60
|
+
])
|
|
61
|
+
], 34));
|
|
62
|
+
}
|
|
63
|
+
}), D = /* @__PURE__ */ x(M, [["__scopeId", "data-v-7fbda7f4"]]);
|
|
64
|
+
export {
|
|
65
|
+
D as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { defineComponent as T, ref as u, shallowRef as Z, computed as i, watch as E, onBeforeUnmount as $, openBlock as d, createElementBlock as r, normalizeClass as B, createElementVNode as k, toDisplayString as h, createCommentVNode as j, createBlock as G, unref as P, createVNode as J, nextTick as Q } from "vue";
|
|
2
|
+
import { _ as X } from "./AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js";
|
|
3
|
+
import "@airalogy/aimd-core";
|
|
4
|
+
import { renderToVue as Y } from "@airalogy/aimd-renderer";
|
|
5
|
+
import { _ as ee } from "./_commonjsHelpers-CZXJ37nu.js";
|
|
6
|
+
const te = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "aimd-markdown-note-field__preview-shell"
|
|
9
|
+
}, oe = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "aimd-markdown-note-field__preview-actions"
|
|
12
|
+
}, ae = ["tabindex", "role"], le = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "aimd-markdown-note-field__preview-fallback"
|
|
15
|
+
}, ne = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "aimd-markdown-note-field__editor-shell"
|
|
18
|
+
}, ie = { class: "aimd-markdown-note-field__editor-actions" }, de = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "aimd-markdown-note-field__empty"
|
|
21
|
+
}, re = /* @__PURE__ */ T({
|
|
22
|
+
__name: "AimdMarkdownNoteField",
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: { default: void 0 },
|
|
25
|
+
disabled: { type: Boolean, default: !1 },
|
|
26
|
+
locale: { default: void 0 },
|
|
27
|
+
minHeight: { default: 220 }
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelValue", "blur", "close"],
|
|
30
|
+
setup(o, { emit: L }) {
|
|
31
|
+
const t = o, c = L;
|
|
32
|
+
function C(e) {
|
|
33
|
+
return typeof e == "string" ? e : e == null ? "" : String(e);
|
|
34
|
+
}
|
|
35
|
+
function _(e) {
|
|
36
|
+
return e?.toLowerCase().startsWith("zh") ?? !1;
|
|
37
|
+
}
|
|
38
|
+
const R = u(null), x = u(null), l = u(C(t.modelValue)), n = u(!1), m = Z([]), f = u(!1);
|
|
39
|
+
let y = 0, s = null;
|
|
40
|
+
const v = i(() => !!l.value.trim()), p = i(() => v.value && !n.value), g = i(() => !t.disabled && (!v.value || n.value)), M = i(() => !p.value && !g.value), I = i(() => _(t.locale) ? "编辑备注" : "Edit note"), A = i(() => _(t.locale) ? "关闭备注" : "Close note"), O = i(() => _(t.locale) ? "暂无备注" : "No notes"), S = T({
|
|
41
|
+
name: "AimdMarkdownNotePreviewOutlet",
|
|
42
|
+
props: {
|
|
43
|
+
nodes: {
|
|
44
|
+
type: Array,
|
|
45
|
+
required: !0
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
setup(e) {
|
|
49
|
+
return () => e.nodes;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function N() {
|
|
53
|
+
if (t.disabled) {
|
|
54
|
+
n.value = !1;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
v.value || (n.value = !0);
|
|
58
|
+
}
|
|
59
|
+
function q(e) {
|
|
60
|
+
e !== l.value && (l.value = e, c("update:modelValue", e));
|
|
61
|
+
}
|
|
62
|
+
async function z() {
|
|
63
|
+
const e = l.value.trim(), a = ++y;
|
|
64
|
+
if (!e) {
|
|
65
|
+
m.value = [], f.value = !1;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
const b = await Y(e, {
|
|
70
|
+
locale: t.locale
|
|
71
|
+
});
|
|
72
|
+
if (a !== y)
|
|
73
|
+
return;
|
|
74
|
+
m.value = b.nodes, f.value = !1;
|
|
75
|
+
} catch {
|
|
76
|
+
if (a !== y)
|
|
77
|
+
return;
|
|
78
|
+
m.value = [], f.value = !0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async function V() {
|
|
82
|
+
t.disabled || (n.value = !0, await Q(), x.value?.getMonacoEditor?.()?.focus?.());
|
|
83
|
+
}
|
|
84
|
+
function D() {
|
|
85
|
+
w(), n.value = !1, c("close"), c("blur");
|
|
86
|
+
}
|
|
87
|
+
function H(e) {
|
|
88
|
+
t.disabled || e.target instanceof Element && e.target.closest("a, button, input, textarea, select, summary, details") || V();
|
|
89
|
+
}
|
|
90
|
+
function K(e) {
|
|
91
|
+
t.disabled || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), V());
|
|
92
|
+
}
|
|
93
|
+
function w() {
|
|
94
|
+
s && (clearTimeout(s), s = null);
|
|
95
|
+
}
|
|
96
|
+
function U() {
|
|
97
|
+
w();
|
|
98
|
+
}
|
|
99
|
+
function W(e) {
|
|
100
|
+
const a = R.value, b = e.relatedTarget;
|
|
101
|
+
!a || b && a.contains(b) || (w(), s = setTimeout(() => {
|
|
102
|
+
s = null;
|
|
103
|
+
const F = typeof document < "u" ? document.activeElement : null;
|
|
104
|
+
F instanceof Node && a.contains(F) || (v.value && (n.value = !1), c("blur"));
|
|
105
|
+
}, 0));
|
|
106
|
+
}
|
|
107
|
+
return E(() => t.modelValue, (e) => {
|
|
108
|
+
const a = C(e);
|
|
109
|
+
a !== l.value && (l.value = a);
|
|
110
|
+
}), E(
|
|
111
|
+
() => [l.value, t.locale],
|
|
112
|
+
() => {
|
|
113
|
+
N(), z();
|
|
114
|
+
},
|
|
115
|
+
{ immediate: !0 }
|
|
116
|
+
), E(() => t.disabled, () => {
|
|
117
|
+
N();
|
|
118
|
+
}), $(() => {
|
|
119
|
+
w();
|
|
120
|
+
}), (e, a) => (d(), r("div", {
|
|
121
|
+
ref_key: "fieldRootRef",
|
|
122
|
+
ref: R,
|
|
123
|
+
class: B(["aimd-markdown-note-field", {
|
|
124
|
+
"aimd-markdown-note-field--disabled": o.disabled,
|
|
125
|
+
"aimd-markdown-note-field--preview": p.value,
|
|
126
|
+
"aimd-markdown-note-field--editor": g.value,
|
|
127
|
+
"aimd-markdown-note-field--empty": M.value
|
|
128
|
+
}]),
|
|
129
|
+
onFocusin: U,
|
|
130
|
+
onFocusout: W
|
|
131
|
+
}, [
|
|
132
|
+
p.value ? (d(), r("div", te, [
|
|
133
|
+
o.disabled ? j("", !0) : (d(), r("div", oe, [
|
|
134
|
+
k("button", {
|
|
135
|
+
type: "button",
|
|
136
|
+
class: "aimd-markdown-note-field__preview-edit",
|
|
137
|
+
onClick: V
|
|
138
|
+
}, h(I.value), 1)
|
|
139
|
+
])),
|
|
140
|
+
k("div", {
|
|
141
|
+
class: B(["aimd-markdown-note-field__preview", { "aimd-markdown-note-field__preview--interactive": !o.disabled }]),
|
|
142
|
+
tabindex: o.disabled ? void 0 : 0,
|
|
143
|
+
role: o.disabled ? void 0 : "button",
|
|
144
|
+
onClick: H,
|
|
145
|
+
onKeydown: K
|
|
146
|
+
}, [
|
|
147
|
+
f.value ? (d(), r("pre", le, h(l.value), 1)) : (d(), G(P(S), {
|
|
148
|
+
key: 1,
|
|
149
|
+
nodes: m.value
|
|
150
|
+
}, null, 8, ["nodes"]))
|
|
151
|
+
], 42, ae)
|
|
152
|
+
])) : g.value ? (d(), r("div", ne, [
|
|
153
|
+
k("div", ie, [
|
|
154
|
+
k("button", {
|
|
155
|
+
type: "button",
|
|
156
|
+
class: "aimd-markdown-note-field__editor-close",
|
|
157
|
+
onClick: D
|
|
158
|
+
}, h(A.value), 1)
|
|
159
|
+
]),
|
|
160
|
+
J(P(X), {
|
|
161
|
+
ref_key: "editorRef",
|
|
162
|
+
ref: x,
|
|
163
|
+
class: "aimd-markdown-note-field__editor",
|
|
164
|
+
"model-value": l.value,
|
|
165
|
+
locale: o.locale,
|
|
166
|
+
mode: "source",
|
|
167
|
+
theme: "aimd-light",
|
|
168
|
+
"show-top-bar": !0,
|
|
169
|
+
"show-toolbar": !o.disabled,
|
|
170
|
+
"show-md-toolbar": !0,
|
|
171
|
+
"show-aimd-toolbar": !0,
|
|
172
|
+
"enable-block-handle": !o.disabled,
|
|
173
|
+
"keep-inactive-editors-mounted": !1,
|
|
174
|
+
"min-height": o.minHeight,
|
|
175
|
+
readonly: o.disabled,
|
|
176
|
+
"monaco-options": { minimap: { enabled: !1 } },
|
|
177
|
+
"onUpdate:modelValue": q
|
|
178
|
+
}, null, 8, ["model-value", "locale", "show-toolbar", "enable-block-handle", "min-height", "readonly"])
|
|
179
|
+
])) : (d(), r("div", de, h(O.value), 1))
|
|
180
|
+
], 34));
|
|
181
|
+
}
|
|
182
|
+
}), ve = /* @__PURE__ */ ee(re, [["__scopeId", "data-v-0c80b790"]]);
|
|
183
|
+
export {
|
|
184
|
+
ve as default
|
|
185
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { m as l } from "./editor.api-CgD9w0gG.js";
|
|
2
|
+
var c = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, y = (a, e, r, o) => {
|
|
3
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
4
|
+
for (let t of d(e))
|
|
5
|
+
!u.call(a, t) && t !== r && c(a, t, { get: () => e[t], enumerable: !(o = _(e, t)) || o.enumerable });
|
|
6
|
+
return a;
|
|
7
|
+
}, p = (a, e, r) => (y(a, e, "default"), r), n = {};
|
|
8
|
+
p(n, l);
|
|
9
|
+
var i = {}, s = {}, L = class g {
|
|
10
|
+
static getOrCreate(e) {
|
|
11
|
+
return s[e] || (s[e] = new g(e)), s[e];
|
|
12
|
+
}
|
|
13
|
+
constructor(e) {
|
|
14
|
+
this._languageId = e, this._loadingTriggered = !1, this._lazyLoadPromise = new Promise((r, o) => {
|
|
15
|
+
this._lazyLoadPromiseResolve = r, this._lazyLoadPromiseReject = o;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
load() {
|
|
19
|
+
return this._loadingTriggered || (this._loadingTriggered = !0, i[this._languageId].loader().then(
|
|
20
|
+
(e) => this._lazyLoadPromiseResolve(e),
|
|
21
|
+
(e) => this._lazyLoadPromiseReject(e)
|
|
22
|
+
)), this._lazyLoadPromise;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function h(a) {
|
|
26
|
+
const e = a.id;
|
|
27
|
+
i[e] = a, n.languages.register(a);
|
|
28
|
+
const r = L.getOrCreate(e);
|
|
29
|
+
n.languages.registerTokensProviderFactory(e, {
|
|
30
|
+
create: async () => (await r.load()).language
|
|
31
|
+
}), n.languages.onLanguageEncountered(e, async () => {
|
|
32
|
+
const o = await r.load();
|
|
33
|
+
n.languages.setLanguageConfiguration(e, o.conf);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
h as r
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const a = (e, n) => {
|
|
2
|
+
const t = e.__vccOpts || e;
|
|
3
|
+
for (const [o, r] of n)
|
|
4
|
+
t[o] = r;
|
|
5
|
+
return t;
|
|
6
|
+
};
|
|
7
|
+
var s = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
+
function c(e) {
|
|
9
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
|
+
}
|
|
11
|
+
function f(e) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
13
|
+
var n = e.default;
|
|
14
|
+
if (typeof n == "function") {
|
|
15
|
+
var t = function o() {
|
|
16
|
+
var r = !1;
|
|
17
|
+
try {
|
|
18
|
+
r = this instanceof o;
|
|
19
|
+
} catch {
|
|
20
|
+
}
|
|
21
|
+
return r ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
22
|
+
};
|
|
23
|
+
t.prototype = n.prototype;
|
|
24
|
+
} else t = {};
|
|
25
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
26
|
+
var r = Object.getOwnPropertyDescriptor(e, o);
|
|
27
|
+
Object.defineProperty(t, o, r.get ? r : {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
get: function() {
|
|
30
|
+
return e[o];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}), t;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
a as _,
|
|
37
|
+
c as a,
|
|
38
|
+
s as c,
|
|
39
|
+
f as g
|
|
40
|
+
};
|