@airalogy/aimd-recorder 1.17.0 → 1.18.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.
Files changed (106) hide show
  1. package/README.md +11 -10
  2. package/README.zh-CN.md +11 -10
  3. package/dist/AimdCodeField-BQUuM-EF.js +182 -0
  4. package/dist/{AimdDnaSequenceField-D6ZgCDpp.js → AimdDnaSequenceField-KZU2Zj3E.js} +2 -2
  5. package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-B5Tq4zPV.js → AimdEditor.vue_vue_type_style_index_0_lang-CzfYPp5r.js} +3922 -3829
  6. package/dist/AimdMarkdownField-t2d8uOeU.js +254 -0
  7. package/dist/AimdMarkdownNoteField-_h1oZSwH.js +259 -0
  8. package/dist/{_commonjsHelpers-CZXJ37nu.js → _commonjsHelpers-B5RozER-.js} +2 -2
  9. package/dist/aimd-recorder.css +1 -1
  10. package/dist/arc-DS_ocYoe.js +83 -0
  11. package/dist/architectureDiagram-3BPJPVTR-Dq2W8_tb.js +4692 -0
  12. package/dist/blockDiagram-GPEHLZMM-B4hnSAF_.js +2425 -0
  13. package/dist/c4Diagram-AAUBKEIU-CbffqNLY.js +1577 -0
  14. package/dist/channel-CtXnYrAk.js +5 -0
  15. package/dist/chunk-2J33WTMH-CROScrt5.js +19 -0
  16. package/dist/chunk-4BX2VUAB-DTmsQu5_.js +8 -0
  17. package/dist/chunk-55IACEB6-B5wDJzeX.js +8 -0
  18. package/dist/chunk-727SXJPM-CfyltY6o.js +1528 -0
  19. package/dist/chunk-AQP2D5EJ-B8274EYy.js +1387 -0
  20. package/dist/chunk-FMBD7UC4-CT_FK-SH.js +19 -0
  21. package/dist/chunk-ND2GUHAM-g9GulPi-.js +68 -0
  22. package/dist/chunk-QZHKN3VN-Di5HEktz.js +15 -0
  23. package/dist/classDiagram-4FO5ZUOK-BVUr246k.js +16 -0
  24. package/dist/classDiagram-v2-Q7XG4LA2-BVUr246k.js +16 -0
  25. package/dist/components.js +3279 -2216
  26. package/dist/composables.js +92 -68
  27. package/dist/cose-bilkent-S5V4N54A-GJ4IOO6v.js +2609 -0
  28. package/dist/cytoscape.esm-r59gEWFs.js +18710 -0
  29. package/dist/dagre-BM42HDAG-oL7Br44o.js +445 -0
  30. package/dist/defaultLocale-BgPVtth8.js +171 -0
  31. package/dist/diagram-2AECGRRQ-DtoCG_N4.js +217 -0
  32. package/dist/diagram-5GNKFQAL-f8QNdS7L.js +123 -0
  33. package/dist/diagram-KO2AKTUF-CsJOW_AX.js +461 -0
  34. package/dist/diagram-LMA3HP47-xmEKNZ7y.js +142 -0
  35. package/dist/diagram-OG6HWLK6-unpC7vo8.js +528 -0
  36. package/dist/erDiagram-TEJ5UH35-BGzFnCJD.js +899 -0
  37. package/dist/flowDiagram-I6XJVG4X-LBFhDnOs.js +1628 -0
  38. package/dist/ganttDiagram-6RSMTGT7-CFBc-jPD.js +2707 -0
  39. package/dist/gitGraphDiagram-PVQCEYII-BLduh-Rb.js +815 -0
  40. package/dist/graph-DdlKE625.js +1510 -0
  41. package/dist/index.js +104 -80
  42. package/dist/infoDiagram-5YYISTIA-CLQQI6zM.js +24 -0
  43. package/dist/init-DjUOC4st.js +16 -0
  44. package/dist/ishikawaDiagram-YF4QCWOH-CStdYBmW.js +621 -0
  45. package/dist/journeyDiagram-JHISSGLW-B6mRTzoE.js +834 -0
  46. package/dist/kanban-definition-UN3LZRKU-C-vnN5v4.js +724 -0
  47. package/dist/katex-DNob3HGn.js +11690 -0
  48. package/dist/layout-DDt0fz-M.js +1703 -0
  49. package/dist/linear-C-IAFdOt.js +259 -0
  50. package/dist/mermaid.core-CuZ3nINf.js +15940 -0
  51. package/dist/mindmap-definition-RKZ34NQL-TSZ1Vb3z.js +827 -0
  52. package/dist/ordinal-B6-f3MAq.js +61 -0
  53. package/dist/pieDiagram-4H26LBE5-DYok-1-k.js +163 -0
  54. package/dist/quadrantDiagram-W4KKPZXB-Cg856sbH.js +1024 -0
  55. package/dist/requirementDiagram-4Y6WPE33-BN9fGdlJ.js +882 -0
  56. package/dist/sankeyDiagram-5OEKKPKP-CDqTgonY.js +847 -0
  57. package/dist/sequenceDiagram-3UESZ5HK-Chjrc0-W.js +2891 -0
  58. package/dist/stateDiagram-AJRCARHV-DRyLHrdr.js +263 -0
  59. package/dist/stateDiagram-v2-BHNVJYJU-CZTIDHid.js +16 -0
  60. package/dist/timeline-definition-PNZ67QCA-Bc3D9AAG.js +1055 -0
  61. package/dist/{useFieldRendering-xLajJhyA.js → useCodeBlockRendering-qA6gj4vz.js} +3035 -2254
  62. package/dist/useMonacoAutoHeight-D4T-El3J.js +66 -0
  63. package/dist/vennDiagram-CIIHVFJN-CYAul48m.js +1557 -0
  64. package/dist/wardley-L42UT6IY-D7b2ujEZ.js +22512 -0
  65. package/dist/wardleyDiagram-YWT4CUSO-B7Tg0MG9.js +675 -0
  66. package/dist/xychartDiagram-2RQKCTM6-xWYVEqth.js +1342 -0
  67. package/package.json +9 -8
  68. package/src/__tests__/assigner-runner-dependent-data.test.ts +32 -0
  69. package/src/__tests__/markdown-field.test.ts +150 -1
  70. package/src/__tests__/markdown-note-field.test.ts +86 -3
  71. package/src/__tests__/recorder-assigner-control.test.ts +844 -0
  72. package/src/__tests__/recorder-editor.test.ts +17 -0
  73. package/src/__tests__/recorder-markdown-assigner-integration.test.ts +49 -0
  74. package/src/__tests__/step-field.test.ts +47 -1
  75. package/src/__tests__/type-plugins.test.ts +1 -0
  76. package/src/__tests__/var-field-render.test.ts +741 -1
  77. package/src/components/AimdCodeField.vue +24 -5
  78. package/src/components/AimdMarkdownField.vue +548 -11
  79. package/src/components/AimdMarkdownNoteField.vue +241 -30
  80. package/src/components/AimdRecorder.vue +1521 -95
  81. package/src/components/AimdRecorderEditor.vue +276 -8
  82. package/src/components/AimdRecorderWysiwygFieldHost.vue +6 -0
  83. package/src/components/AimdRecorderWysiwygSurface.vue +32 -0
  84. package/src/components/AimdStepCheckField.vue +82 -18
  85. package/src/components/AimdVarField.vue +694 -25
  86. package/src/components/AimdVarTableField.vue +283 -110
  87. package/src/components/icons/AimdAssignerCalculatorIcon.vue +18 -0
  88. package/src/components/icons/AimdAssignerCloudStatusIcon.vue +22 -0
  89. package/src/components/recorderMilkdownPlugin.ts +14 -0
  90. package/src/composables/__tests__/useRecordState.test.ts +86 -0
  91. package/src/composables/__tests__/useVarHelpers.test.ts +133 -0
  92. package/src/composables/index.ts +27 -1
  93. package/src/composables/useAssignerRunner.ts +376 -0
  94. package/src/composables/useCodeBlockRendering.ts +51 -0
  95. package/src/composables/useFieldRendering.ts +32 -4
  96. package/src/composables/useMonacoAutoHeight.ts +127 -0
  97. package/src/composables/useRecordState.ts +22 -3
  98. package/src/composables/useVarHelpers.ts +377 -9
  99. package/src/index.ts +13 -0
  100. package/src/locales.ts +45 -0
  101. package/src/styles/aimd.css +151 -1
  102. package/src/type-plugins.ts +7 -0
  103. package/src/types.ts +93 -2
  104. package/dist/AimdCodeField-DC3DPvgc.js +0 -172
  105. package/dist/AimdMarkdownField-BJ20QtO8.js +0 -67
  106. package/dist/AimdMarkdownNoteField-DwAQhoyk.js +0 -186
package/dist/index.js CHANGED
@@ -1,89 +1,113 @@
1
1
  import { AimdProtocolRecorder as e } from "./components.js";
2
- import { AimdDnaSequenceField as o, AimdMarkdownField as n, AimdQuizRecorder as i, AimdRecorder as l, AimdRecorderEditor as c } from "./components.js";
3
- import { D as d, c as u, r as p } from "./AimdEditor.vue_vue_type_style_index_0_lang-B5Tq4zPV.js";
4
- import { A as D, af as R, a as g, b as A, c as T, d as z, e as V, f as E, g as I, h, i as y, ag as F, j as q, k as f, l as C, m as M, ah as P, n as k, o as L, p as _, q as b, r as x, s as N, t as W, u as Q, v, w, x as U, y as B, z as G, B as O, C as K, D as H, E as Y, F as $, G as j, H as J, I as X, J as Z, K as ee, L as ae, M as re, N as se, O as te, P as oe, Q as ne, R as ie, S as le, T as ce, U as me, V as de, W as ue, X as pe, Y as Se, Z as De, _ as Re, $ as ge, a0 as Ae, a1 as Te, a2 as ze, ai as Ve, a3 as Ee, a4 as Ie, a5 as he, a6 as ye, a7 as Fe, a8 as qe, a9 as fe, aa as Ce, ab as Me, ac as Pe, ad as ke, ae as Le } from "./useFieldRendering-xLajJhyA.js";
5
- const r = e;
2
+ import { AimdDnaSequenceField as i, AimdMarkdownField as n, AimdQuizRecorder as o, AimdRecorder as l, AimdRecorderEditor as d } from "./components.js";
3
+ import { D as c, c as u, r as p } from "./AimdEditor.vue_vue_type_style_index_0_lang-CzfYPp5r.js";
4
+ import { A as g, aA as S, a as D, b as R, c as V, d as T, e as z, f as F, g as y, h as E, i as h, j as I, k as C, aB as M, l as q, m as f, n as k, o as L, p as P, aC as x, q as b, r as N, s as _, t as W, u as v, v as w, w as Q, x as B, y as K, z as U, B as G, C as O, D as H, E as j, F as Y, G as $, H as J, I as X, J as Z, K as ee, L as ae, M as se, N as re, O as te, P as ie, Q as ne, R as oe, S as le, T as de, U as me, V as ce, W as ue, X as pe, Y as Ae, Z as ge, _ as Se, $ as De, a0 as Re, a1 as Ve, a2 as Te, a3 as ze, a4 as Fe, a5 as ye, a6 as Ee, a7 as he, a8 as Ie, a9 as Ce, aa as Me, ab as qe, ac as fe, ad as ke, ae as Le, af as Pe, ag as xe, ah as be, ai as Ne, aj as _e, ak as We, al as ve, am as we, aD as Qe, an as Be, ao as Ke, ap as Ue, aq as Ge, ar as Oe, as as He, at as je, au as Ye, av as $e, aw as Je, ax as Xe, ay as Ze, az as ea } from "./useCodeBlockRendering-qA6gj4vz.js";
5
+ import { c as sa, e as ra } from "./useMonacoAutoHeight-D4T-El3J.js";
6
+ const s = e;
6
7
  export {
7
- D as AIMD_DNA_SEQUENCE_FORMAT,
8
- o as AimdDnaSequenceField,
8
+ g as AIMD_DNA_SEQUENCE_FORMAT,
9
+ i as AimdDnaSequenceField,
9
10
  n as AimdMarkdownField,
10
- r as AimdProtocolRecorder,
11
- i as AimdQuizRecorder,
11
+ s as AimdProtocolRecorder,
12
+ o as AimdQuizRecorder,
12
13
  l as AimdRecorder,
13
- c as AimdRecorderEditor,
14
- R as BUILT_IN_AIMD_TYPE_PLUGINS,
15
- d as DEFAULT_AIMD_RECORDER_LOCALE,
16
- g as applyIncomingRecord,
17
- A as applyNormalizedRecord,
14
+ d as AimdRecorderEditor,
15
+ S as BUILT_IN_AIMD_TYPE_PLUGINS,
16
+ c as DEFAULT_AIMD_RECORDER_LOCALE,
17
+ D as applyAimdAssignedFieldsToRecord,
18
+ R as applyIncomingRecord,
19
+ V as applyNormalizedRecord,
18
20
  T as applyVarStackWidth,
19
- z as buildAimdRecorderFieldAdapterContext,
20
- V as calculateDnaSequenceGcPercent,
21
+ z as buildAimdAssignerDependentData,
22
+ F as buildAimdRecorderFieldAdapterContext,
23
+ y as calculateDnaSequenceGcPercent,
21
24
  E as calculateVarStackWidth,
22
- I as captureFocusSnapshot,
23
- h as cloneRecordData,
24
- y as collectInvalidDnaSequenceCharacters,
25
+ h as captureFocusSnapshot,
26
+ I as cloneRecordData,
27
+ C as collectInvalidDnaSequenceCharacters,
25
28
  u as createAimdRecorderMessages,
26
- F as createAimdTypePlugins,
27
- q as createEmptyCheckRecordItem,
28
- f as createEmptyDnaSequenceAnnotation,
29
- C as createEmptyDnaSequenceQualifier,
30
- M as createEmptyDnaSequenceSegment,
31
- P as createEmptyProtocolRecordData,
32
- k as createEmptyStepRecordItem,
33
- L as createEmptyVarTableRow,
34
- _ as ensureDefaultsFromFields,
35
- b as formatDateForInput,
36
- x as formatDateTimeWithTimezone,
37
- N as formatStepDuration,
38
- W as getDnaSequenceSegmentIssue,
39
- Q as getNextDnaSequenceAnnotationId,
40
- v as getProtocolEstimatedDurationMs,
41
- w as getProtocolRecordedDurationMs,
42
- U as getQuizDefaultValue,
43
- B as getStepElapsedMs,
44
- G as getStepRemainingMs,
45
- O as getVarInputDisplayValue,
46
- K as getVarInputKind,
47
- H as getVarTableColumns,
48
- Y as getVarTableRowKey,
49
- $ as hasRecordedStepDuration,
50
- j as isStepTimerRunning,
51
- J as isStepTimerWarning,
52
- X as measureSingleLineControlWidth,
53
- Z as measureVarLabelWidth,
54
- ee as normalizeCheckFields,
55
- ae as normalizeCheckLike,
56
- re as normalizeDateTimeValueWithTimezone,
57
- se as normalizeDnaSequenceAnnotation,
58
- te as normalizeDnaSequenceQualifier,
59
- oe as normalizeDnaSequenceSegment,
60
- ne as normalizeDnaSequenceText,
61
- ie as normalizeDnaSequenceValue,
62
- le as normalizeIncomingRecord,
63
- ce as normalizeQuizFields,
64
- me as normalizeStepFields,
65
- de as normalizeStepLike,
66
- ue as normalizeStepTimerState,
67
- pe as normalizeVarTableFields,
68
- Se as normalizeVarTableRows,
69
- De as normalizeVarTypeName,
70
- Re as parseVarInputValue,
71
- ge as pauseStepTimer,
72
- Ae as replaceSection,
73
- Te as resetStepTimer,
74
- ze as resolveAimdRecorderFieldVNode,
29
+ M as createAimdTypePlugins,
30
+ q as createChainedElementRenderer,
31
+ f as createEmptyCheckRecordItem,
32
+ k as createEmptyDnaSequenceAnnotation,
33
+ L as createEmptyDnaSequenceQualifier,
34
+ P as createEmptyDnaSequenceSegment,
35
+ x as createEmptyProtocolRecordData,
36
+ b as createEmptyStepRecordItem,
37
+ N as createEmptyVarTableRow,
38
+ sa as createMonacoAutoHeight,
39
+ _ as createSelectedFileValue,
40
+ W as ensureDefaultsFromFields,
41
+ ra as estimateMonacoVisualLineCount,
42
+ v as extractAimdAssignedFields,
43
+ w as formatDateForInput,
44
+ Q as formatDateTimeWithTimezone,
45
+ B as formatStepDuration,
46
+ K as getAimdAssignerDependentFields,
47
+ U as getAimdAssignerFieldKey,
48
+ G as getAimdAssignerFieldNameSets,
49
+ O as getAimdAssignerMode,
50
+ H as getAimdAssignerPayloadFieldKey,
51
+ j as getDnaSequenceSegmentIssue,
52
+ Y as getFileDisplayName,
53
+ $ as getFileInputConfig,
54
+ J as getNextDnaSequenceAnnotationId,
55
+ X as getProtocolEstimatedDurationMs,
56
+ Z as getProtocolRecordedDurationMs,
57
+ ee as getQuizDefaultValue,
58
+ ae as getStepElapsedMs,
59
+ se as getStepRemainingMs,
60
+ re as getVarEnumSelectValue,
61
+ te as getVarEnumValueFromSelectValue,
62
+ ie as getVarInputDisplayValue,
63
+ ne as getVarInputKind,
64
+ oe as getVarTableColumns,
65
+ le as getVarTableRowKey,
66
+ de as hasRecordedStepDuration,
67
+ me as isFileLikeVarType,
68
+ ce as isReadonlyAimdAssignerMode,
69
+ ue as isStepTimerRunning,
70
+ pe as isStepTimerWarning,
71
+ Ae as measureSingleLineControlWidth,
72
+ ge as measureVarLabelWidth,
73
+ Se as normalizeAimdAssignerDependentData,
74
+ De as normalizeAimdAssignerDependentValue,
75
+ Re as normalizeAimdAssignerMode,
76
+ Ve as normalizeCheckFields,
77
+ Te as normalizeCheckLike,
78
+ ze as normalizeDateTimeValueWithTimezone,
79
+ Fe as normalizeDnaSequenceAnnotation,
80
+ ye as normalizeDnaSequenceQualifier,
81
+ Ee as normalizeDnaSequenceSegment,
82
+ he as normalizeDnaSequenceText,
83
+ Ie as normalizeDnaSequenceValue,
84
+ Ce as normalizeIncomingRecord,
85
+ Me as normalizeQuizFields,
86
+ qe as normalizeStepFields,
87
+ fe as normalizeStepLike,
88
+ ke as normalizeStepTimerState,
89
+ Le as normalizeVarTableFields,
90
+ Pe as normalizeVarTableRows,
91
+ xe as normalizeVarTypeName,
92
+ be as parseVarInputValue,
93
+ Ne as pauseStepTimer,
94
+ _e as replaceSection,
95
+ We as resetStepTimer,
96
+ ve as resolveAimdAssigners,
97
+ we as resolveAimdRecorderFieldVNode,
75
98
  p as resolveAimdRecorderLocale,
76
- Ve as resolveAimdTypePlugin,
77
- Ee as resolveStepTimerMode,
78
- Ie as restoreFocusSnapshot,
79
- he as serializeDnaSequenceToGenBank,
80
- ye as setStepChecked,
81
- Fe as startStepTimer,
82
- qe as syncAutoWrapTextareaHeight,
83
- fe as toBooleanValue,
84
- Ce as toDateValue,
85
- Me as unwrapStructuredValue,
86
- Pe as useClientAssignerRunner,
87
- ke as useFieldRendering,
88
- Le as useVarTableDragDrop
99
+ Qe as resolveAimdTypePlugin,
100
+ Be as resolveStepTimerMode,
101
+ Ke as restoreFocusSnapshot,
102
+ Ue as serializeDnaSequenceToGenBank,
103
+ Ge as setStepChecked,
104
+ Oe as startStepTimer,
105
+ He as syncAutoWrapTextareaHeight,
106
+ je as toBooleanValue,
107
+ Ye as toDateValue,
108
+ $e as unwrapStructuredValue,
109
+ Je as useClientAssignerRunner,
110
+ Xe as useCodeBlockRendering,
111
+ Ze as useFieldRendering,
112
+ ea as useVarTableDragDrop
89
113
  };
@@ -0,0 +1,24 @@
1
+ import { _ as a, l as s, L as o, e as i } from "./mermaid.core-CuZ3nINf.js";
2
+ import { p as g } from "./wardley-L42UT6IY-D7b2ujEZ.js";
3
+ var p = {
4
+ parse: /* @__PURE__ */ a(async (r) => {
5
+ const e = await g("info", r);
6
+ s.debug(e);
7
+ }, "parse")
8
+ }, v = {
9
+ version: "11.15.0"
10
+ }, d = /* @__PURE__ */ a(() => v.version, "getVersion"), m = {
11
+ getVersion: d
12
+ }, c = /* @__PURE__ */ a((r, e, n) => {
13
+ s.debug(`rendering info diagram
14
+ ` + r);
15
+ const t = o(e);
16
+ i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`);
17
+ }, "draw"), l = { draw: c }, _ = {
18
+ parser: p,
19
+ db: m,
20
+ renderer: l
21
+ };
22
+ export {
23
+ _ as diagram
24
+ };
@@ -0,0 +1,16 @@
1
+ function t(e, a) {
2
+ switch (arguments.length) {
3
+ case 0:
4
+ break;
5
+ case 1:
6
+ this.range(e);
7
+ break;
8
+ default:
9
+ this.range(a).domain(e);
10
+ break;
11
+ }
12
+ return this;
13
+ }
14
+ export {
15
+ t as i
16
+ };