@airalogy/aimd-recorder 1.19.1 → 1.19.2
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/dist/{AimdEditor.vue_vue_type_style_index_0_lang-tdh0dJNa.js → AimdEditor.vue_vue_type_style_index_0_lang-gTySIxvX.js} +3446 -3351
- package/dist/{AimdMarkdownField-DmNX2g4j.js → AimdMarkdownField-DGV5KFUs.js} +5 -5
- package/dist/{AimdMarkdownNoteField-B5ruzmwS.js → AimdMarkdownNoteField-C78KHCBA.js} +4 -4
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-B-vsgEXF.js → arc-BMhAnOm7.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-BwPNOtNH.js → architectureDiagram-3BPJPVTR-DXuPTBR3.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-CMUI4kKc.js → blockDiagram-GPEHLZMM-HKz9kQ49.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-Cpmfsy_s.js → c4Diagram-AAUBKEIU-B2a8Aupm.js} +2 -2
- package/dist/{channel-DlMAXHQK.js → channel-CQnbPm6T.js} +1 -1
- package/dist/{chunk-2J33WTMH-DP9BS2ux.js → chunk-2J33WTMH-CPwhDANL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-ncsOeLMb.js → chunk-4BX2VUAB-BJV0R8-Z.js} +1 -1
- package/dist/{chunk-55IACEB6-C7wHk4B7.js → chunk-55IACEB6-CSqUgTVA.js} +1 -1
- package/dist/{chunk-727SXJPM-Caa5aVUO.js → chunk-727SXJPM-C3LCZWaC.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-CL8egKqD.js → chunk-AQP2D5EJ-BC5kHyik.js} +3 -3
- package/dist/{chunk-FMBD7UC4-heVR6BSA.js → chunk-FMBD7UC4-lv-SQuSa.js} +1 -1
- package/dist/{chunk-ND2GUHAM-BYH-wC2J.js → chunk-ND2GUHAM-BnnHbOOp.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Bx2K7vkq.js → chunk-QZHKN3VN-DE1_5lrn.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BLLfLYy0.js → classDiagram-4FO5ZUOK-32SrXsR3.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BLLfLYy0.js → classDiagram-v2-Q7XG4LA2-32SrXsR3.js} +2 -2
- package/dist/components.js +6 -6
- package/dist/composables.js +1 -1
- package/dist/{cose-bilkent-S5V4N54A-E1YmM_xr.js → cose-bilkent-S5V4N54A-BKyR6PrF.js} +1 -1
- package/dist/{dagre-BM42HDAG-BsXpQirH.js → dagre-BM42HDAG-D8Nwouf2.js} +3 -3
- package/dist/{diagram-2AECGRRQ-CamqbWlY.js → diagram-2AECGRRQ-DfoNEchZ.js} +2 -2
- package/dist/{diagram-5GNKFQAL-DZyRFcOC.js → diagram-5GNKFQAL-Dlpl3XO8.js} +3 -3
- package/dist/{diagram-KO2AKTUF-CmkGcy7R.js → diagram-KO2AKTUF-CgwROod_.js} +2 -2
- package/dist/{diagram-LMA3HP47-IdDwQPZ-.js → diagram-LMA3HP47-UiiviX43.js} +2 -2
- package/dist/{diagram-OG6HWLK6-t0LBcUIU.js → diagram-OG6HWLK6-BPuH-4Wa.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-DJBY2iZG.js → erDiagram-TEJ5UH35-B19WKSiS.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-DE4MzPPk.js → flowDiagram-I6XJVG4X-SsfO1IYz.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-CmAc35Yw.js → ganttDiagram-6RSMTGT7-8BCxW9SC.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-DDQZ5flw.js → gitGraphDiagram-PVQCEYII-D-jzaXKg.js} +3 -3
- package/dist/{graph-BsJ8-1Pq.js → graph-Dd8Vx0lj.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{infoDiagram-5YYISTIA-DSZjFR5g.js → infoDiagram-5YYISTIA-B_XwkyXw.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-DCO9dx2L.js → ishikawaDiagram-YF4QCWOH-nevqOMkV.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-b-PpuBqg.js → journeyDiagram-JHISSGLW-DKQOkZNx.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-BjclDuJZ.js → kanban-definition-UN3LZRKU-BYvizbN0.js} +2 -2
- package/dist/{layout-D4wqKu72.js → layout-BiHDh2wu.js} +2 -2
- package/dist/{linear-Voc3BJib.js → linear-BcUgIsNC.js} +1 -1
- package/dist/{mermaid.core-Dt_VbeGP.js → mermaid.core-DPv1ut6K.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-B3vrXRVY.js → mindmap-definition-RKZ34NQL-CiT97EC2.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-DFpWxSxk.js → pieDiagram-4H26LBE5-BHcFVpCC.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BYHcrGoB.js → quadrantDiagram-W4KKPZXB-BFBAb3Zx.js} +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-C-FgWrRz.js → requirementDiagram-4Y6WPE33-CUS2OOyE.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-IwN0Evji.js → sankeyDiagram-5OEKKPKP-IuhX4tCb.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-_OnqhBO2.js → sequenceDiagram-3UESZ5HK-DWHcFiUF.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-BRLv0Zcw.js → stateDiagram-AJRCARHV-J49Kafj_.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-BofX0AdS.js → stateDiagram-v2-BHNVJYJU-DL2VCR5X.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-C-DpPLpw.js → timeline-definition-PNZ67QCA-l9xSQ_pX.js} +2 -2
- package/dist/{useCodeBlockRendering-DoTZaJTW.js → useCodeBlockRendering-CY70U0Xm.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-zTHQR9Oq.js → vennDiagram-CIIHVFJN-BQjdmOkd.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-au5koizO.js → wardleyDiagram-YWT4CUSO-CmVdsV9b.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-BNf12P8z.js → xychartDiagram-2RQKCTM6-F-cC_Igm.js} +2 -2
- package/package.json +6 -6
- package/src/__tests__/markdown-field.test.ts +1 -0
- package/src/__tests__/markdown-note-field.test.ts +1 -0
- package/src/__tests__/var-field-render.test.ts +55 -20
- package/src/components/AimdMarkdownField.vue +1 -19
- package/src/components/AimdMarkdownNoteField.vue +1 -2
- package/src/components/AimdRecorder.vue +55 -16
- package/src/composables/__tests__/useVarHelpers.test.ts +41 -0
- package/src/index.ts +1 -1
- package/src/styles/{aimd.css → recorder.css} +6 -782
|
@@ -361,7 +361,7 @@ onBeforeUnmount(() => {
|
|
|
361
361
|
</span>
|
|
362
362
|
</div>
|
|
363
363
|
<div
|
|
364
|
-
class="aimd-markdown-note-field__preview"
|
|
364
|
+
class="aimd-markdown-note-field__preview aimd-renderer"
|
|
365
365
|
:class="{ 'aimd-markdown-note-field__preview--interactive': !disabled }"
|
|
366
366
|
:tabindex="disabled ? undefined : 0"
|
|
367
367
|
:role="disabled ? undefined : 'button'"
|
|
@@ -534,7 +534,6 @@ onBeforeUnmount(() => {
|
|
|
534
534
|
min-width: 0;
|
|
535
535
|
padding: 6px 14px 14px;
|
|
536
536
|
color: #334155;
|
|
537
|
-
line-height: 1.65;
|
|
538
537
|
}
|
|
539
538
|
|
|
540
539
|
.aimd-markdown-note-field__preview--interactive {
|
|
@@ -1740,7 +1740,7 @@ defineExpose({
|
|
|
1740
1740
|
</span>
|
|
1741
1741
|
</div>
|
|
1742
1742
|
|
|
1743
|
-
<div v-if="inlineNodes.length" ref="contentRoot" class="aimd-protocol-recorder__content">
|
|
1743
|
+
<div v-if="inlineNodes.length" ref="contentRoot" class="aimd-protocol-recorder__content aimd-renderer">
|
|
1744
1744
|
<InlineNodesOutlet :nodes="inlineNodes" />
|
|
1745
1745
|
</div>
|
|
1746
1746
|
|
|
@@ -1807,7 +1807,6 @@ defineExpose({
|
|
|
1807
1807
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
1808
1808
|
color: var(--rec-text);
|
|
1809
1809
|
font-size: var(--rec-body-font-size);
|
|
1810
|
-
line-height: 1.7;
|
|
1811
1810
|
}
|
|
1812
1811
|
|
|
1813
1812
|
.aimd-protocol-recorder__empty {
|
|
@@ -1818,13 +1817,6 @@ defineExpose({
|
|
|
1818
1817
|
text-align: center;
|
|
1819
1818
|
}
|
|
1820
1819
|
|
|
1821
|
-
/* ── Typography ─────────────────────────────────────────────────────────── */
|
|
1822
|
-
.aimd-protocol-recorder__content :deep(h1) { margin: 0.45em 0 0.5em; font-size: 1.7em; line-height: 1.25; }
|
|
1823
|
-
.aimd-protocol-recorder__content :deep(h2) { margin: 0.8em 0 0.45em; font-size: 1.35em; line-height: 1.3; }
|
|
1824
|
-
.aimd-protocol-recorder__content :deep(h3) { margin: 0.7em 0 0.4em; font-size: 1.15em; }
|
|
1825
|
-
.aimd-protocol-recorder__content :deep(p) { margin: 0.45em 0; color: var(--rec-text); }
|
|
1826
|
-
.aimd-protocol-recorder__content :deep(ul),
|
|
1827
|
-
.aimd-protocol-recorder__content :deep(ol) { margin: 0.35em 0; padding-left: 22px; }
|
|
1828
1820
|
.aimd-protocol-recorder__content :deep(table) { border-collapse: collapse; margin: 10px 0; font-size: 14px; }
|
|
1829
1821
|
.aimd-protocol-recorder__content :deep(th),
|
|
1830
1822
|
.aimd-protocol-recorder__content :deep(td) { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
|
|
@@ -2098,7 +2090,7 @@ defineExpose({
|
|
|
2098
2090
|
align-items: stretch;
|
|
2099
2091
|
gap: 0;
|
|
2100
2092
|
margin: 5px 3px;
|
|
2101
|
-
width:
|
|
2093
|
+
width: max-content;
|
|
2102
2094
|
min-width: 0;
|
|
2103
2095
|
max-width: 100%;
|
|
2104
2096
|
border: 1px solid var(--aimd-border-color, #90caf9);
|
|
@@ -2118,13 +2110,28 @@ defineExpose({
|
|
|
2118
2110
|
box-shadow: 0 0 0 2px rgba(65, 129, 253, 0.14);
|
|
2119
2111
|
}
|
|
2120
2112
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field) { margin: 0; box-shadow: none; }
|
|
2121
|
-
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field--no-style.aimd-field__label) {
|
|
2122
|
-
|
|
2113
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field--no-style.aimd-field__label) {
|
|
2114
|
+
flex-wrap: nowrap;
|
|
2115
|
+
min-height: 30px;
|
|
2116
|
+
border-radius: 6px 6px 0 0;
|
|
2117
|
+
}
|
|
2118
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__scope) {
|
|
2119
|
+
flex: 0 0 auto;
|
|
2120
|
+
align-self: center;
|
|
2121
|
+
min-width: max-content;
|
|
2122
|
+
height: 22px;
|
|
2123
|
+
margin-left: 3px;
|
|
2124
|
+
padding: 0 7px;
|
|
2125
|
+
border-radius: 6px;
|
|
2126
|
+
overflow-wrap: normal;
|
|
2127
|
+
white-space: nowrap;
|
|
2128
|
+
word-break: normal;
|
|
2129
|
+
}
|
|
2123
2130
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__name) {
|
|
2124
2131
|
display: flex;
|
|
2125
|
-
flex:
|
|
2132
|
+
flex: 0 0 auto;
|
|
2126
2133
|
align-items: center;
|
|
2127
|
-
min-width:
|
|
2134
|
+
min-width: max-content;
|
|
2128
2135
|
padding: 4px 10px 4px 6px;
|
|
2129
2136
|
font-size: 13px;
|
|
2130
2137
|
font-weight: 600;
|
|
@@ -2136,7 +2143,14 @@ defineExpose({
|
|
|
2136
2143
|
justify-content: center;
|
|
2137
2144
|
gap: 2px;
|
|
2138
2145
|
min-height: 34px;
|
|
2139
|
-
white-space:
|
|
2146
|
+
white-space: nowrap;
|
|
2147
|
+
}
|
|
2148
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__title),
|
|
2149
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__key) {
|
|
2150
|
+
overflow: visible;
|
|
2151
|
+
overflow-wrap: normal;
|
|
2152
|
+
white-space: nowrap;
|
|
2153
|
+
word-break: normal;
|
|
2140
2154
|
}
|
|
2141
2155
|
.aimd-protocol-recorder__content :deep(.aimd-field__key) {
|
|
2142
2156
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
@@ -2848,18 +2862,43 @@ defineExpose({
|
|
|
2848
2862
|
gap: 6px;
|
|
2849
2863
|
}
|
|
2850
2864
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body) {
|
|
2865
|
+
width: 100%;
|
|
2851
2866
|
min-width: 0;
|
|
2867
|
+
max-width: 100%;
|
|
2852
2868
|
color: var(--rec-text);
|
|
2853
2869
|
font-size: 15px;
|
|
2854
|
-
|
|
2870
|
+
box-sizing: border-box;
|
|
2871
|
+
overflow-wrap: anywhere;
|
|
2855
2872
|
}
|
|
2856
2873
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-step-body) {
|
|
2857
2874
|
display: flex;
|
|
2858
2875
|
flex-direction: column;
|
|
2859
2876
|
gap: 8px;
|
|
2877
|
+
width: 100%;
|
|
2878
|
+
min-width: 0;
|
|
2879
|
+
max-width: 100%;
|
|
2880
|
+
box-sizing: border-box;
|
|
2881
|
+
}
|
|
2882
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-step-body > *) {
|
|
2883
|
+
min-width: 0;
|
|
2884
|
+
max-width: 100%;
|
|
2885
|
+
box-sizing: border-box;
|
|
2886
|
+
overflow-wrap: anywhere;
|
|
2860
2887
|
}
|
|
2861
2888
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body p) {
|
|
2862
2889
|
margin: 0;
|
|
2890
|
+
min-width: 0;
|
|
2891
|
+
max-width: 100%;
|
|
2892
|
+
overflow-wrap: anywhere;
|
|
2893
|
+
}
|
|
2894
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-rec-inline--var-markdown),
|
|
2895
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-field--var-table) {
|
|
2896
|
+
width: 100%;
|
|
2897
|
+
min-width: 0;
|
|
2898
|
+
max-width: 100%;
|
|
2899
|
+
}
|
|
2900
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-field--var-table) {
|
|
2901
|
+
overflow-x: auto;
|
|
2863
2902
|
}
|
|
2864
2903
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body-actions) {
|
|
2865
2904
|
display: flex;
|
|
@@ -587,6 +587,47 @@ describe('measureVarLabelWidth', () => {
|
|
|
587
587
|
|
|
588
588
|
expect(measureVarLabelWidth(wrapper)).toBeLessThan(240)
|
|
589
589
|
})
|
|
590
|
+
|
|
591
|
+
it('includes long metadata keys when sizing stacked var labels', () => {
|
|
592
|
+
vi.spyOn(HTMLCanvasElement.prototype, 'getContext').mockImplementation(() => ({
|
|
593
|
+
measureText: (text: string) => ({ width: text.length * 8 }),
|
|
594
|
+
} as unknown as CanvasRenderingContext2D))
|
|
595
|
+
vi.spyOn(window, 'getComputedStyle').mockImplementation((element: Element) => {
|
|
596
|
+
const classList = (element as HTMLElement).classList
|
|
597
|
+
const horizontalPadding = classList.contains('aimd-field__name')
|
|
598
|
+
? '16px'
|
|
599
|
+
: classList.contains('aimd-field__scope--var')
|
|
600
|
+
? '14px'
|
|
601
|
+
: '0px'
|
|
602
|
+
return {
|
|
603
|
+
fontSize: '14px',
|
|
604
|
+
fontFamily: 'sans-serif',
|
|
605
|
+
fontWeight: '500',
|
|
606
|
+
fontStyle: 'normal',
|
|
607
|
+
paddingLeft: horizontalPadding,
|
|
608
|
+
paddingRight: '0px',
|
|
609
|
+
borderLeftWidth: '0px',
|
|
610
|
+
borderRightWidth: '0px',
|
|
611
|
+
marginLeft: '0px',
|
|
612
|
+
marginRight: '0px',
|
|
613
|
+
} as CSSStyleDeclaration
|
|
614
|
+
})
|
|
615
|
+
|
|
616
|
+
const wrapper = document.createElement('span')
|
|
617
|
+
wrapper.className = 'aimd-rec-inline--var-stacked'
|
|
618
|
+
wrapper.innerHTML = `
|
|
619
|
+
<span class="aimd-field__label">
|
|
620
|
+
<span class="aimd-field__scope aimd-field__scope--var">var</span>
|
|
621
|
+
<span class="aimd-field__name">
|
|
622
|
+
<span class="aimd-field__title">岸带完整性评分</span>
|
|
623
|
+
<span class="aimd-field__key">riparian_integrity_score</span>
|
|
624
|
+
</span>
|
|
625
|
+
</span>
|
|
626
|
+
`
|
|
627
|
+
document.body.appendChild(wrapper)
|
|
628
|
+
|
|
629
|
+
expect(measureVarLabelWidth(wrapper)).toBeGreaterThan(220)
|
|
630
|
+
})
|
|
590
631
|
})
|
|
591
632
|
|
|
592
633
|
// ---------------------------------------------------------------------------
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
// Re-export styles
|
|
10
|
-
import './styles/
|
|
10
|
+
import './styles/recorder.css'
|
|
11
11
|
import { AimdProtocolRecorder as DeprecatedAimdProtocolRecorder } from './components'
|
|
12
12
|
|
|
13
13
|
export { AimdAssignerGraph, AimdRecorder, AimdRecorderEditor, AimdQuizRecorder } from './components'
|