@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,1959 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, defineComponent, h, nextTick, onBeforeUnmount, reactive, ref, watch, type PropType, type VNode, type VNodeChild } from "vue"
|
|
3
|
+
import type {
|
|
4
|
+
AimdCheckNode,
|
|
5
|
+
AimdClientAssignerField,
|
|
6
|
+
AimdQuizField,
|
|
7
|
+
AimdQuizGradeResult,
|
|
8
|
+
AimdQuizNode,
|
|
9
|
+
AimdStepNode,
|
|
10
|
+
AimdVarNode,
|
|
11
|
+
AimdVarTableNode,
|
|
12
|
+
ExtractedAimdFields,
|
|
13
|
+
} from "@airalogy/aimd-core/types"
|
|
14
|
+
import { parseAndExtract, renderToVue } from "@airalogy/aimd-renderer"
|
|
15
|
+
import type { AimdComponentRenderer } from "@airalogy/aimd-renderer"
|
|
16
|
+
import type { AimdRecorderMessagesInput } from "../locales"
|
|
17
|
+
import {
|
|
18
|
+
createAimdRecorderMessages,
|
|
19
|
+
resolveAimdRecorderLocale,
|
|
20
|
+
} from "../locales"
|
|
21
|
+
import type {
|
|
22
|
+
AimdChoiceOptionExplanationMode,
|
|
23
|
+
AimdFieldMeta,
|
|
24
|
+
AimdFieldState,
|
|
25
|
+
AimdRecorderFieldAdapters,
|
|
26
|
+
AimdScaleGradeDisplayMode,
|
|
27
|
+
AimdTypePlugin,
|
|
28
|
+
AimdProtocolRecordData,
|
|
29
|
+
AimdStepDetailDisplay,
|
|
30
|
+
AimdStepRecordItem,
|
|
31
|
+
FieldEventPayload,
|
|
32
|
+
TableEventPayload,
|
|
33
|
+
} from "../types"
|
|
34
|
+
import { createEmptyProtocolRecordData } from "../types"
|
|
35
|
+
import {
|
|
36
|
+
applyIncomingRecord,
|
|
37
|
+
applyPastedVarTableGrid,
|
|
38
|
+
cloneRecordData,
|
|
39
|
+
ensureDefaultsFromFields,
|
|
40
|
+
getRecordDataSignature,
|
|
41
|
+
getQuizDefaultValue,
|
|
42
|
+
parsePastedVarTableText,
|
|
43
|
+
} from "../composables/useRecordState"
|
|
44
|
+
import {
|
|
45
|
+
getVarInputKind,
|
|
46
|
+
normalizeVarTypeName,
|
|
47
|
+
normalizeDateTimeValueWithTimezone,
|
|
48
|
+
} from "../composables/useVarHelpers"
|
|
49
|
+
import {
|
|
50
|
+
captureFocusSnapshot,
|
|
51
|
+
restoreFocusSnapshot,
|
|
52
|
+
} from "../composables/useFocusManagement"
|
|
53
|
+
import type { FocusSnapshot } from "../composables/useFocusManagement"
|
|
54
|
+
import { useClientAssignerRunner } from "../composables/useClientAssignerRunner"
|
|
55
|
+
import { resolveAimdRecorderFieldVNode } from "../composables/useFieldAdapters"
|
|
56
|
+
import { useVarTableDragDrop, getVarTableColumns } from "../composables/useVarTableDragDrop"
|
|
57
|
+
import { useFieldRendering } from "../composables/useFieldRendering"
|
|
58
|
+
import {
|
|
59
|
+
createEmptyCheckRecordItem,
|
|
60
|
+
createEmptyStepRecordItem,
|
|
61
|
+
formatStepDuration,
|
|
62
|
+
getProtocolEstimatedDurationMs,
|
|
63
|
+
getProtocolRecordedDurationMs,
|
|
64
|
+
isStepTimerRunning,
|
|
65
|
+
pauseStepTimer,
|
|
66
|
+
resetStepTimer,
|
|
67
|
+
setStepChecked,
|
|
68
|
+
startStepTimer,
|
|
69
|
+
} from "../composables/useStepTimers"
|
|
70
|
+
import { createAimdTypePlugins } from "../type-plugins"
|
|
71
|
+
import AimdVarField from "./AimdVarField.vue"
|
|
72
|
+
import AimdVarTableField from "./AimdVarTableField.vue"
|
|
73
|
+
import { AimdStepField, AimdCheckField } from "./AimdStepCheckField.vue"
|
|
74
|
+
import AimdQuizRecorder from "./AimdQuizRecorder.vue"
|
|
75
|
+
|
|
76
|
+
// ---------------------------------------------------------------------------
|
|
77
|
+
// Props & emits
|
|
78
|
+
// ---------------------------------------------------------------------------
|
|
79
|
+
|
|
80
|
+
const props = withDefaults(defineProps<{
|
|
81
|
+
/** AIMD markdown content to render */
|
|
82
|
+
content: string
|
|
83
|
+
/** Current record data (v-model) */
|
|
84
|
+
modelValue?: Partial<AimdProtocolRecordData>
|
|
85
|
+
/** When true all inputs are read-only */
|
|
86
|
+
readonly?: boolean
|
|
87
|
+
/** Used to pre-fill currenttime / username fields */
|
|
88
|
+
currentUserName?: string
|
|
89
|
+
now?: Date | string | number
|
|
90
|
+
locale?: string
|
|
91
|
+
messages?: AimdRecorderMessagesInput
|
|
92
|
+
quizGrades?: Record<string, AimdQuizGradeResult | null | undefined>
|
|
93
|
+
submitted?: boolean
|
|
94
|
+
choiceOptionExplanationMode?: AimdChoiceOptionExplanationMode
|
|
95
|
+
scaleGradeDisplayMode?: AimdScaleGradeDisplayMode
|
|
96
|
+
/** Controls whether step timer / note details stay expanded */
|
|
97
|
+
stepDetailDisplay?: AimdStepDetailDisplay
|
|
98
|
+
|
|
99
|
+
// ── Extension props ──────────────────────────────────────────────────────
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Per-field metadata keyed by "section:fieldName" (e.g. "var:temp").
|
|
103
|
+
* Controls inputType overrides, assigner mode, enum options, etc.
|
|
104
|
+
*/
|
|
105
|
+
fieldMeta?: Record<string, AimdFieldMeta>
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Per-field runtime state keyed by "section:fieldName".
|
|
109
|
+
* Drives loading / error / validationError styling.
|
|
110
|
+
*/
|
|
111
|
+
fieldState?: Record<string, AimdFieldState>
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Optional wrapper applied to every rendered field VNode.
|
|
115
|
+
* Receives (fieldKey, fieldType, defaultVNode) and should return a VNode.
|
|
116
|
+
* Use to inject assigner buttons, dependency tags, validation errors, etc.
|
|
117
|
+
*/
|
|
118
|
+
wrapField?: (fieldKey: string, fieldType: string, defaultVNode: VNode) => VNode
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Renderer overrides keyed by AIMD field type ("var", "step", …).
|
|
122
|
+
* Return null/undefined to fall through to the built-in renderer.
|
|
123
|
+
*/
|
|
124
|
+
customRenderers?: Partial<Record<string, AimdComponentRenderer>>
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Host-level field adapters with full recorder context.
|
|
128
|
+
* Prefer this over `customRenderers` for new integrations.
|
|
129
|
+
*/
|
|
130
|
+
fieldAdapters?: AimdRecorderFieldAdapters
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Resolves relative paths / Airalogy file IDs to displayable URLs.
|
|
134
|
+
* Reserved for future file-type field support.
|
|
135
|
+
*/
|
|
136
|
+
resolveFile?: (src: string) => string | null
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Type-level plugins for custom var types.
|
|
140
|
+
* Plugins can define initialization, normalization, display, parsing, and full custom field widgets.
|
|
141
|
+
*/
|
|
142
|
+
typePlugins?: AimdTypePlugin[]
|
|
143
|
+
}>(), {
|
|
144
|
+
modelValue: undefined,
|
|
145
|
+
readonly: false,
|
|
146
|
+
currentUserName: undefined,
|
|
147
|
+
now: undefined,
|
|
148
|
+
locale: undefined,
|
|
149
|
+
messages: undefined,
|
|
150
|
+
quizGrades: undefined,
|
|
151
|
+
submitted: false,
|
|
152
|
+
choiceOptionExplanationMode: "hidden",
|
|
153
|
+
scaleGradeDisplayMode: "hidden",
|
|
154
|
+
stepDetailDisplay: "auto",
|
|
155
|
+
fieldMeta: undefined,
|
|
156
|
+
fieldState: undefined,
|
|
157
|
+
wrapField: undefined,
|
|
158
|
+
customRenderers: undefined,
|
|
159
|
+
fieldAdapters: undefined,
|
|
160
|
+
resolveFile: undefined,
|
|
161
|
+
typePlugins: undefined,
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
const emit = defineEmits<{
|
|
165
|
+
/** Full record updated (v-model) */
|
|
166
|
+
(e: "update:modelValue", value: AimdProtocolRecordData): void
|
|
167
|
+
/** Extracted field list changed (content reparsed) */
|
|
168
|
+
(e: "fields-change", fields: ExtractedAimdFields): void
|
|
169
|
+
/** Parse / render error */
|
|
170
|
+
(e: "error", message: string): void
|
|
171
|
+
|
|
172
|
+
// ── Granular field events ─────────────────────────────────────────────────
|
|
173
|
+
/** A single field value changed */
|
|
174
|
+
(e: "field-change", payload: FieldEventPayload): void
|
|
175
|
+
/** A field lost focus — use to trigger external validation */
|
|
176
|
+
(e: "field-blur", payload: FieldEventPayload): void
|
|
177
|
+
|
|
178
|
+
// ── Assigner events ───────────────────────────────────────────────────────
|
|
179
|
+
/** Host app should run assigner calculation for the given field */
|
|
180
|
+
(e: "assigner-request", payload: FieldEventPayload): void
|
|
181
|
+
/** Host app should cancel an in-flight assigner for the given field */
|
|
182
|
+
(e: "assigner-cancel", payload: FieldEventPayload): void
|
|
183
|
+
|
|
184
|
+
// ── Table events ──────────────────────────────────────────────────────────
|
|
185
|
+
/** A table row was added */
|
|
186
|
+
(e: "table-add-row", payload: TableEventPayload): void
|
|
187
|
+
/** A table row was removed */
|
|
188
|
+
(e: "table-remove-row", payload: TableEventPayload): void
|
|
189
|
+
}>()
|
|
190
|
+
|
|
191
|
+
// ---------------------------------------------------------------------------
|
|
192
|
+
// Internal state
|
|
193
|
+
// ---------------------------------------------------------------------------
|
|
194
|
+
|
|
195
|
+
const inlineNodes = ref<VNode[]>([])
|
|
196
|
+
const renderError = ref("")
|
|
197
|
+
const contentRoot = ref<HTMLElement | null>(null)
|
|
198
|
+
const localRecord = reactive<AimdProtocolRecordData>(createEmptyProtocolRecordData())
|
|
199
|
+
let buildRequestId = 0
|
|
200
|
+
let inlineBuildRequestId = 0
|
|
201
|
+
let syncingFromExternal = false
|
|
202
|
+
let renderScheduled = false
|
|
203
|
+
let recordInitializedDuringRender = false
|
|
204
|
+
let pendingFocusSnapshot: FocusSnapshot | null = null
|
|
205
|
+
let pendingInlineBuildRequestId: number | null = null
|
|
206
|
+
const timerNowMs = ref(Date.now())
|
|
207
|
+
let protocolTimerTicker: ReturnType<typeof setInterval> | null = null
|
|
208
|
+
|
|
209
|
+
const resolvedLocale = computed(() => resolveAimdRecorderLocale(props.locale))
|
|
210
|
+
const resolvedMessages = computed(() => createAimdRecorderMessages(resolvedLocale.value, props.messages))
|
|
211
|
+
const resolvedTypePlugins = computed(() => createAimdTypePlugins(props.typePlugins))
|
|
212
|
+
|
|
213
|
+
const InlineNodesOutlet = defineComponent({
|
|
214
|
+
name: "AimdRecorderInlineNodesOutlet",
|
|
215
|
+
props: {
|
|
216
|
+
nodes: {
|
|
217
|
+
type: Array as PropType<VNode[]>,
|
|
218
|
+
required: true,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
setup(outletProps) {
|
|
222
|
+
return () => outletProps.nodes
|
|
223
|
+
},
|
|
224
|
+
})
|
|
225
|
+
|
|
226
|
+
function applyFieldAdapter<TFieldType extends "var" | "var_table" | "step" | "check" | "quiz">(
|
|
227
|
+
fieldType: TFieldType,
|
|
228
|
+
fieldKey: string,
|
|
229
|
+
node: any,
|
|
230
|
+
value: unknown,
|
|
231
|
+
defaultVNode: VNode,
|
|
232
|
+
): VNode {
|
|
233
|
+
return resolveAimdRecorderFieldVNode(fieldType, fieldKey, node, value, defaultVNode, {
|
|
234
|
+
fieldAdapters: props.fieldAdapters,
|
|
235
|
+
wrapField: props.wrapField,
|
|
236
|
+
readonly: props.readonly,
|
|
237
|
+
locale: resolvedLocale.value,
|
|
238
|
+
messages: resolvedMessages.value,
|
|
239
|
+
record: localRecord,
|
|
240
|
+
fieldMeta: props.fieldMeta,
|
|
241
|
+
fieldState: props.fieldState,
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const EMPTY_FIELDS: ExtractedAimdFields = {
|
|
246
|
+
var: [],
|
|
247
|
+
var_table: [],
|
|
248
|
+
client_assigner: [],
|
|
249
|
+
quiz: [],
|
|
250
|
+
step: [],
|
|
251
|
+
check: [],
|
|
252
|
+
ref_step: [],
|
|
253
|
+
ref_var: [],
|
|
254
|
+
ref_fig: [],
|
|
255
|
+
cite: [],
|
|
256
|
+
fig: [],
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const extractedFields = ref<ExtractedAimdFields>(EMPTY_FIELDS)
|
|
260
|
+
const clientAssigners = ref<AimdClientAssignerField[]>([])
|
|
261
|
+
const protocolEstimatedDurationMs = computed(() => getProtocolEstimatedDurationMs(extractedFields.value.step_hierarchy ?? []))
|
|
262
|
+
const protocolRecordedDurationMs = computed(() => getProtocolRecordedDurationMs(localRecord.step, timerNowMs.value))
|
|
263
|
+
const showProtocolTimingSummary = computed(() => protocolEstimatedDurationMs.value > 0 || protocolRecordedDurationMs.value > 0)
|
|
264
|
+
const protocolEstimatedDurationLabel = computed(() => formatStepDuration(protocolEstimatedDurationMs.value, resolvedLocale.value))
|
|
265
|
+
const protocolRecordedDurationLabel = computed(() => formatStepDuration(protocolRecordedDurationMs.value, resolvedLocale.value))
|
|
266
|
+
const hasRunningStepTimer = computed(() => Object.values(localRecord.step).some(step => isStepTimerRunning(step)))
|
|
267
|
+
|
|
268
|
+
function syncProtocolTimerTicker() {
|
|
269
|
+
if (protocolTimerTicker) {
|
|
270
|
+
clearInterval(protocolTimerTicker)
|
|
271
|
+
protocolTimerTicker = null
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (!hasRunningStepTimer.value) {
|
|
275
|
+
return
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
protocolTimerTicker = setInterval(() => {
|
|
279
|
+
timerNowMs.value = Date.now()
|
|
280
|
+
}, 1000)
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function getStepTimerPayload(step: AimdStepRecordItem) {
|
|
284
|
+
return {
|
|
285
|
+
elapsed_ms: step.elapsed_ms,
|
|
286
|
+
timer_started_at_ms: step.timer_started_at_ms,
|
|
287
|
+
started_at_ms: step.started_at_ms,
|
|
288
|
+
ended_at_ms: step.ended_at_ms,
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function emitRecordUpdate() {
|
|
293
|
+
if (syncingFromExternal) return
|
|
294
|
+
emit("update:modelValue", cloneRecordData(localRecord))
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function scheduleInlineRebuild() {
|
|
298
|
+
pendingFocusSnapshot = captureFocusSnapshot(contentRoot.value) ?? pendingFocusSnapshot
|
|
299
|
+
pendingInlineBuildRequestId = ++inlineBuildRequestId
|
|
300
|
+
if (renderScheduled) {
|
|
301
|
+
return
|
|
302
|
+
}
|
|
303
|
+
renderScheduled = true
|
|
304
|
+
Promise.resolve().then(() => {
|
|
305
|
+
renderScheduled = false
|
|
306
|
+
const focusSnapshot = pendingFocusSnapshot
|
|
307
|
+
const inlineRequestId = pendingInlineBuildRequestId ?? inlineBuildRequestId
|
|
308
|
+
pendingFocusSnapshot = null
|
|
309
|
+
pendingInlineBuildRequestId = null
|
|
310
|
+
void rebuildInlineNodes(undefined, focusSnapshot, inlineRequestId)
|
|
311
|
+
})
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function markRecordChanged(options?: { rebuild?: boolean, runClientAssigners?: boolean }) {
|
|
315
|
+
const assignerChanged = options?.runClientAssigners ? assignerRunner.applyCurrentClientAssigners() : false
|
|
316
|
+
emitRecordUpdate()
|
|
317
|
+
if (options?.rebuild || assignerChanged) {
|
|
318
|
+
scheduleInlineRebuild()
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// ---------------------------------------------------------------------------
|
|
323
|
+
// Composables
|
|
324
|
+
// ---------------------------------------------------------------------------
|
|
325
|
+
|
|
326
|
+
const assignerRunner = useClientAssignerRunner({
|
|
327
|
+
readonly: () => props.readonly,
|
|
328
|
+
clientAssigners,
|
|
329
|
+
localRecord,
|
|
330
|
+
onError: (message) => emit("error", message),
|
|
331
|
+
emitRecordUpdate,
|
|
332
|
+
scheduleInlineRebuild,
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
const tableDragDrop = useVarTableDragDrop({
|
|
336
|
+
readonly: () => props.readonly,
|
|
337
|
+
localRecord,
|
|
338
|
+
markRecordChanged,
|
|
339
|
+
scheduleInlineRebuild,
|
|
340
|
+
emitTableAddRow: (payload) => emit("table-add-row", payload),
|
|
341
|
+
emitTableRemoveRow: (payload) => emit("table-remove-row", payload),
|
|
342
|
+
})
|
|
343
|
+
|
|
344
|
+
const fieldRendering = useFieldRendering({
|
|
345
|
+
readonly: () => props.readonly,
|
|
346
|
+
currentUserName: () => props.currentUserName,
|
|
347
|
+
now: () => props.now,
|
|
348
|
+
fieldMeta: () => props.fieldMeta,
|
|
349
|
+
fieldState: () => props.fieldState,
|
|
350
|
+
typePlugins: () => resolvedTypePlugins.value,
|
|
351
|
+
wrapField: () => props.wrapField,
|
|
352
|
+
})
|
|
353
|
+
|
|
354
|
+
// ---------------------------------------------------------------------------
|
|
355
|
+
// Inline field renderers
|
|
356
|
+
// ---------------------------------------------------------------------------
|
|
357
|
+
|
|
358
|
+
function renderInlineVar(node: AimdVarNode): VNode {
|
|
359
|
+
const id = node.id
|
|
360
|
+
const fieldKey = `var:${id}`
|
|
361
|
+
const meta = props.fieldMeta?.[fieldKey]
|
|
362
|
+
|
|
363
|
+
// 1. Custom renderer override
|
|
364
|
+
if (props.customRenderers?.var) {
|
|
365
|
+
const custom = props.customRenderers.var(node, {} as any, [])
|
|
366
|
+
if (custom) return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], custom as VNode)
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
const type = node.definition?.type || "str"
|
|
370
|
+
const typePlugin = fieldRendering.getTypePlugin(fieldKey, type)
|
|
371
|
+
const inputKind = getVarInputKind(type, {
|
|
372
|
+
inputType: meta?.inputType,
|
|
373
|
+
codeLanguage: meta?.codeLanguage,
|
|
374
|
+
typePlugin,
|
|
375
|
+
})
|
|
376
|
+
const placeholder = meta?.placeholder ?? fieldRendering.getVarPlaceholder(node)
|
|
377
|
+
|
|
378
|
+
function emitVarChange(value: unknown) {
|
|
379
|
+
fieldRendering.clearVarInputDisplayOverride(id)
|
|
380
|
+
localRecord.var[id] = value
|
|
381
|
+
markRecordChanged({ runClientAssigners: true })
|
|
382
|
+
emit("field-change", { section: "var", fieldKey: id, value })
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function emitVarBlur() {
|
|
386
|
+
emit("field-blur", { section: "var", fieldKey: id })
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
// 2. Initialise value
|
|
390
|
+
if (!(id in localRecord.var)) {
|
|
391
|
+
localRecord.var[id] = fieldRendering.getVarInitialValue(node, type, fieldKey)
|
|
392
|
+
const initialDisplayOverride = fieldRendering.getVarInitialDisplayOverride(node, type, fieldKey)
|
|
393
|
+
if (initialDisplayOverride) {
|
|
394
|
+
fieldRendering.setVarInputDisplayOverride(id, initialDisplayOverride)
|
|
395
|
+
}
|
|
396
|
+
recordInitializedDuringRender = true
|
|
397
|
+
}
|
|
398
|
+
if (inputKind === "datetime") {
|
|
399
|
+
const norm = normalizeDateTimeValueWithTimezone(localRecord.var[id])
|
|
400
|
+
if (norm !== localRecord.var[id]) {
|
|
401
|
+
localRecord.var[id] = norm
|
|
402
|
+
recordInitializedDuringRender = true
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
const normalizedValue = fieldRendering.normalizeVarValue(
|
|
406
|
+
node,
|
|
407
|
+
type,
|
|
408
|
+
fieldKey,
|
|
409
|
+
localRecord.var[id],
|
|
410
|
+
inputKind,
|
|
411
|
+
)
|
|
412
|
+
if (JSON.stringify(normalizedValue) !== JSON.stringify(localRecord.var[id])) {
|
|
413
|
+
localRecord.var[id] = normalizedValue
|
|
414
|
+
recordInitializedDuringRender = true
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
const displayValue = fieldRendering.getVarDisplayValue(
|
|
418
|
+
id,
|
|
419
|
+
node,
|
|
420
|
+
type,
|
|
421
|
+
localRecord.var[id],
|
|
422
|
+
inputKind,
|
|
423
|
+
fieldKey,
|
|
424
|
+
)
|
|
425
|
+
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
426
|
+
const extraClasses = fieldRendering.fieldStateClasses(fieldKey)
|
|
427
|
+
|
|
428
|
+
if (typePlugin?.renderField) {
|
|
429
|
+
const pluginVNode = typePlugin.renderField({
|
|
430
|
+
type,
|
|
431
|
+
normalizedType: normalizeVarTypeName(type),
|
|
432
|
+
fieldKey,
|
|
433
|
+
node,
|
|
434
|
+
value: localRecord.var[id],
|
|
435
|
+
inputKind,
|
|
436
|
+
fieldMeta: meta,
|
|
437
|
+
currentUserName: props.currentUserName,
|
|
438
|
+
now: props.now,
|
|
439
|
+
readonly: props.readonly,
|
|
440
|
+
disabled,
|
|
441
|
+
locale: resolvedLocale.value,
|
|
442
|
+
messages: resolvedMessages.value,
|
|
443
|
+
record: localRecord,
|
|
444
|
+
displayValue,
|
|
445
|
+
extraClasses,
|
|
446
|
+
placeholder,
|
|
447
|
+
fieldState: props.fieldState?.[fieldKey],
|
|
448
|
+
emitChange: emitVarChange,
|
|
449
|
+
emitBlur: emitVarBlur,
|
|
450
|
+
})
|
|
451
|
+
|
|
452
|
+
if (pluginVNode) {
|
|
453
|
+
return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], pluginVNode)
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
const vnode = h(AimdVarField, {
|
|
458
|
+
node,
|
|
459
|
+
value: localRecord.var[id] as any,
|
|
460
|
+
disabled,
|
|
461
|
+
extraClasses,
|
|
462
|
+
messages: resolvedMessages.value,
|
|
463
|
+
fieldMeta: meta,
|
|
464
|
+
displayValue,
|
|
465
|
+
inputKind,
|
|
466
|
+
typePlugin,
|
|
467
|
+
initialized: id in localRecord.var,
|
|
468
|
+
onChange: (payload: { id: string, value: unknown, type: string, inputKind: string }) => {
|
|
469
|
+
emitVarChange(payload.value)
|
|
470
|
+
},
|
|
471
|
+
onBlur: () => emitVarBlur(),
|
|
472
|
+
})
|
|
473
|
+
|
|
474
|
+
return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], vnode)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function renderInlineVarTable(node: AimdVarTableNode): VNode {
|
|
478
|
+
const tableName = node.id
|
|
479
|
+
const fieldKey = `var_table:${tableName}`
|
|
480
|
+
const columns = getVarTableColumns(node)
|
|
481
|
+
const rows = tableDragDrop.ensureVarTableRows(tableName, columns)
|
|
482
|
+
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
483
|
+
const disabledColumns = columns.filter(column => !!props.fieldMeta?.[`var_table:${tableName}:${column}`]?.disabled)
|
|
484
|
+
|
|
485
|
+
const vnode = h(AimdVarTableField, {
|
|
486
|
+
node,
|
|
487
|
+
rows,
|
|
488
|
+
columns,
|
|
489
|
+
disabled,
|
|
490
|
+
readonly: props.readonly,
|
|
491
|
+
settlingRowKey: tableDragDrop.getSettlingVarTableRowKey(),
|
|
492
|
+
messages: resolvedMessages.value,
|
|
493
|
+
fieldMeta: props.fieldMeta,
|
|
494
|
+
fieldState: props.fieldState,
|
|
495
|
+
onCellInput: (payload: { tableName: string, column: string, rowIndex: number, value: string, row: Record<string, string> }) => {
|
|
496
|
+
payload.row[payload.column] = payload.value
|
|
497
|
+
markRecordChanged({ runClientAssigners: true })
|
|
498
|
+
emit("field-change", {
|
|
499
|
+
section: "var_table",
|
|
500
|
+
fieldKey: `${payload.tableName}:${payload.column}`,
|
|
501
|
+
value: payload.value,
|
|
502
|
+
})
|
|
503
|
+
},
|
|
504
|
+
onCellPaste: (payload: { tableName: string, column: string, rowIndex: number, text: string }) => {
|
|
505
|
+
const startColumnIndex = columns.indexOf(payload.column)
|
|
506
|
+
if (startColumnIndex < 0) {
|
|
507
|
+
return
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
const pastedGrid = parsePastedVarTableText(payload.text)
|
|
511
|
+
const result = applyPastedVarTableGrid(
|
|
512
|
+
rows,
|
|
513
|
+
columns,
|
|
514
|
+
payload.rowIndex,
|
|
515
|
+
startColumnIndex,
|
|
516
|
+
pastedGrid,
|
|
517
|
+
{ disabledColumns },
|
|
518
|
+
)
|
|
519
|
+
|
|
520
|
+
if (result.rowsAdded === 0 && result.changedCells.length === 0) {
|
|
521
|
+
return
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// Var tables are rendered through rebuilt inline VNodes, so pasted updates
|
|
525
|
+
// need a refresh even when they only overwrite existing cells.
|
|
526
|
+
markRecordChanged({ rebuild: true, runClientAssigners: true })
|
|
527
|
+
for (let index = 0; index < result.rowsAdded; index += 1) {
|
|
528
|
+
emit("table-add-row", { tableName: payload.tableName, columns })
|
|
529
|
+
}
|
|
530
|
+
for (const cell of result.changedCells) {
|
|
531
|
+
emit("field-change", {
|
|
532
|
+
section: "var_table",
|
|
533
|
+
fieldKey: `${payload.tableName}:${cell.column}`,
|
|
534
|
+
value: cell.value,
|
|
535
|
+
})
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
onCellBlur: (payload: { tableName: string, column: string }) => {
|
|
539
|
+
emit("field-blur", { section: "var_table", fieldKey: `${payload.tableName}:${payload.column}` })
|
|
540
|
+
},
|
|
541
|
+
onAddRow: (payload: { tableName: string, columns: string[] }) => {
|
|
542
|
+
tableDragDrop.addVarTableRow(payload.tableName, payload.columns)
|
|
543
|
+
},
|
|
544
|
+
onRemoveRow: (payload: { tableName: string, rowIndex: number, columns: string[] }) => {
|
|
545
|
+
tableDragDrop.removeVarTableRow(payload.tableName, payload.rowIndex, payload.columns)
|
|
546
|
+
},
|
|
547
|
+
onDragStart: (payload: { tableName: string, rowIndex: number, event: DragEvent }) => {
|
|
548
|
+
tableDragDrop.startVarTableRowDrag(payload.tableName, payload.rowIndex, payload.event)
|
|
549
|
+
},
|
|
550
|
+
onDragOver: (payload: { tableName: string, rowIndex: number, event: DragEvent }) => {
|
|
551
|
+
tableDragDrop.handleVarTableRowDragOver(payload.tableName, payload.rowIndex, payload.event)
|
|
552
|
+
},
|
|
553
|
+
onDragDrop: (payload: { tableName: string, rowIndex: number, columns: string[], event: DragEvent }) => {
|
|
554
|
+
tableDragDrop.handleVarTableRowDrop(payload.tableName, payload.rowIndex, payload.columns, payload.event)
|
|
555
|
+
},
|
|
556
|
+
onDragEnd: () => {
|
|
557
|
+
tableDragDrop.endVarTableRowDrag()
|
|
558
|
+
},
|
|
559
|
+
})
|
|
560
|
+
|
|
561
|
+
return applyFieldAdapter("var_table", fieldKey, node, rows, vnode)
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
function isGroupedStepBodyNode(node: unknown): node is VNode {
|
|
565
|
+
if (!node || typeof node !== "object") {
|
|
566
|
+
return false
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
const props = (node as VNode).props as Record<string, unknown> | null | undefined
|
|
570
|
+
if (!props) {
|
|
571
|
+
return false
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
const classValue = props.class
|
|
575
|
+
const classNames = Array.isArray(classValue)
|
|
576
|
+
? classValue
|
|
577
|
+
: typeof classValue === "string"
|
|
578
|
+
? [classValue]
|
|
579
|
+
: []
|
|
580
|
+
|
|
581
|
+
return props["data-aimd-step-body"] === "true"
|
|
582
|
+
|| props["data-aimd-step-body"] === true
|
|
583
|
+
|| props.dataAimdStepBody === "true"
|
|
584
|
+
|| props.dataAimdStepBody === true
|
|
585
|
+
|| classNames.some((className) => typeof className === "string" && className.includes("aimd-step-body"))
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
function normalizeStepBodyNodes(bodyNodes: VNodeChild[] = []): VNodeChild[] {
|
|
589
|
+
if (bodyNodes.length === 0) {
|
|
590
|
+
return []
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const groupedBody = bodyNodes.find((child) => isGroupedStepBodyNode(child))
|
|
594
|
+
if (!groupedBody || typeof groupedBody !== "object" || groupedBody === null) {
|
|
595
|
+
return bodyNodes
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
const groupedChildren = (groupedBody as VNode).children
|
|
599
|
+
if (Array.isArray(groupedChildren)) {
|
|
600
|
+
return groupedChildren as VNodeChild[]
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
if (groupedChildren == null) {
|
|
604
|
+
return []
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
return [groupedChildren as VNodeChild]
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function isGroupedCheckBodyNode(node: unknown): node is VNode {
|
|
611
|
+
if (!node || typeof node !== "object" || !("props" in node)) {
|
|
612
|
+
return false
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
const props = (node as VNode).props as Record<string, unknown> | null | undefined
|
|
616
|
+
if (!props) {
|
|
617
|
+
return false
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const classValue = props.class
|
|
621
|
+
const classNames = Array.isArray(classValue)
|
|
622
|
+
? classValue
|
|
623
|
+
: typeof classValue === "string"
|
|
624
|
+
? [classValue]
|
|
625
|
+
: []
|
|
626
|
+
|
|
627
|
+
return props["data-aimd-check-body"] === "true"
|
|
628
|
+
|| props["data-aimd-check-body"] === true
|
|
629
|
+
|| props.dataAimdCheckBody === "true"
|
|
630
|
+
|| props.dataAimdCheckBody === true
|
|
631
|
+
|| classNames.some((className) => typeof className === "string" && className.includes("aimd-check-body"))
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
function normalizeCheckBodyNodes(bodyNodes: VNodeChild[] = []): VNodeChild[] {
|
|
635
|
+
if (bodyNodes.length === 0) {
|
|
636
|
+
return []
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
const groupedBody = bodyNodes.find((child) => isGroupedCheckBodyNode(child))
|
|
640
|
+
if (!groupedBody || typeof groupedBody !== "object" || groupedBody === null) {
|
|
641
|
+
return bodyNodes
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
const groupedChildren = (groupedBody as VNode).children
|
|
645
|
+
if (Array.isArray(groupedChildren)) {
|
|
646
|
+
return groupedChildren as VNodeChild[]
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
if (groupedChildren == null) {
|
|
650
|
+
return []
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
return [groupedChildren as VNodeChild]
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
function renderInlineStep(node: AimdStepNode, bodyNodes: VNodeChild[] = []): VNode {
|
|
657
|
+
const id = node.id
|
|
658
|
+
const fieldKey = `step:${id}`
|
|
659
|
+
if (!(id in localRecord.step)) {
|
|
660
|
+
localRecord.step[id] = createEmptyStepRecordItem()
|
|
661
|
+
recordInitializedDuringRender = true
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
const state = localRecord.step[id]
|
|
665
|
+
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
666
|
+
const extraClasses = fieldRendering.fieldStateClasses(fieldKey)
|
|
667
|
+
const normalizedBodyNodes = normalizeStepBodyNodes(bodyNodes)
|
|
668
|
+
|
|
669
|
+
const vnode = h(AimdStepField, {
|
|
670
|
+
node,
|
|
671
|
+
state,
|
|
672
|
+
bodyNodes: normalizedBodyNodes,
|
|
673
|
+
disabled,
|
|
674
|
+
extraClasses,
|
|
675
|
+
detailDisplay: props.stepDetailDisplay,
|
|
676
|
+
locale: resolvedLocale.value,
|
|
677
|
+
messages: resolvedMessages.value,
|
|
678
|
+
onCheckChange: (payload: { id: string, value: boolean }) => {
|
|
679
|
+
const wasRunning = isStepTimerRunning(state)
|
|
680
|
+
setStepChecked(state, payload.value, Date.now())
|
|
681
|
+
timerNowMs.value = Date.now()
|
|
682
|
+
markRecordChanged()
|
|
683
|
+
emit("field-change", { section: "step", fieldKey: payload.id, value: payload.value })
|
|
684
|
+
if (wasRunning) {
|
|
685
|
+
emit("field-change", { section: "step", fieldKey: `${payload.id}:timer`, value: getStepTimerPayload(state) })
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
onAnnotationChange: (payload: { id: string, value: string }) => {
|
|
689
|
+
state.annotation = payload.value
|
|
690
|
+
markRecordChanged()
|
|
691
|
+
emit("field-change", { section: "step", fieldKey: `${payload.id}:annotation`, value: payload.value })
|
|
692
|
+
},
|
|
693
|
+
onTimerStart: (payload: { id: string }) => {
|
|
694
|
+
if (!startStepTimer(state, Date.now())) {
|
|
695
|
+
return
|
|
696
|
+
}
|
|
697
|
+
timerNowMs.value = Date.now()
|
|
698
|
+
markRecordChanged()
|
|
699
|
+
emit("field-change", { section: "step", fieldKey: `${payload.id}:timer`, value: getStepTimerPayload(state) })
|
|
700
|
+
},
|
|
701
|
+
onTimerPause: (payload: { id: string }) => {
|
|
702
|
+
if (!pauseStepTimer(state, Date.now())) {
|
|
703
|
+
return
|
|
704
|
+
}
|
|
705
|
+
timerNowMs.value = Date.now()
|
|
706
|
+
markRecordChanged()
|
|
707
|
+
emit("field-change", { section: "step", fieldKey: `${payload.id}:timer`, value: getStepTimerPayload(state) })
|
|
708
|
+
},
|
|
709
|
+
onTimerReset: (payload: { id: string }) => {
|
|
710
|
+
if (!resetStepTimer(state)) {
|
|
711
|
+
return
|
|
712
|
+
}
|
|
713
|
+
timerNowMs.value = Date.now()
|
|
714
|
+
markRecordChanged()
|
|
715
|
+
emit("field-change", { section: "step", fieldKey: `${payload.id}:timer`, value: getStepTimerPayload(state) })
|
|
716
|
+
},
|
|
717
|
+
onBlur: (payload: { id: string }) => {
|
|
718
|
+
emit("field-blur", { section: "step", fieldKey: payload.id })
|
|
719
|
+
},
|
|
720
|
+
})
|
|
721
|
+
|
|
722
|
+
return applyFieldAdapter("step", fieldKey, node, state, vnode)
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
function renderInlineCheck(node: AimdCheckNode, bodyNodes: VNodeChild[] = []): VNode {
|
|
726
|
+
const id = node.id
|
|
727
|
+
const fieldKey = `check:${id}`
|
|
728
|
+
if (!(id in localRecord.check)) {
|
|
729
|
+
localRecord.check[id] = createEmptyCheckRecordItem()
|
|
730
|
+
recordInitializedDuringRender = true
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
const state = localRecord.check[id]
|
|
734
|
+
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
735
|
+
const extraClasses = fieldRendering.fieldStateClasses(fieldKey)
|
|
736
|
+
const normalizedBodyNodes = normalizeCheckBodyNodes(bodyNodes)
|
|
737
|
+
|
|
738
|
+
const vnode = h(AimdCheckField, {
|
|
739
|
+
node,
|
|
740
|
+
state,
|
|
741
|
+
bodyNodes: normalizedBodyNodes,
|
|
742
|
+
disabled,
|
|
743
|
+
extraClasses,
|
|
744
|
+
messages: resolvedMessages.value,
|
|
745
|
+
onCheckChange: (payload: { id: string, value: boolean }) => {
|
|
746
|
+
state.checked = payload.value
|
|
747
|
+
markRecordChanged()
|
|
748
|
+
emit("field-change", { section: "check", fieldKey: payload.id, value: payload.value })
|
|
749
|
+
},
|
|
750
|
+
onAnnotationChange: (payload: { id: string, value: string }) => {
|
|
751
|
+
state.annotation = payload.value
|
|
752
|
+
markRecordChanged()
|
|
753
|
+
emit("field-change", { section: "check", fieldKey: `${payload.id}:annotation`, value: payload.value })
|
|
754
|
+
},
|
|
755
|
+
onBlur: (payload: { id: string }) => {
|
|
756
|
+
emit("field-blur", { section: "check", fieldKey: payload.id })
|
|
757
|
+
},
|
|
758
|
+
})
|
|
759
|
+
|
|
760
|
+
return applyFieldAdapter("check", fieldKey, node, state, vnode)
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
function renderInlineQuiz(node: AimdQuizNode): VNode {
|
|
764
|
+
const quizId = node.id
|
|
765
|
+
const fieldKey = `quiz:${quizId}`
|
|
766
|
+
const quizField = {
|
|
767
|
+
id: quizId,
|
|
768
|
+
type: node.quizType,
|
|
769
|
+
stem: node.stem,
|
|
770
|
+
title: node.title,
|
|
771
|
+
description: node.description,
|
|
772
|
+
mode: node.mode,
|
|
773
|
+
display: node.display,
|
|
774
|
+
options: node.options,
|
|
775
|
+
blanks: node.blanks,
|
|
776
|
+
items: node.items,
|
|
777
|
+
grading: node.grading,
|
|
778
|
+
default: node.default,
|
|
779
|
+
rubric: node.rubric,
|
|
780
|
+
score: node.score,
|
|
781
|
+
extra: node.extra,
|
|
782
|
+
} as AimdQuizField
|
|
783
|
+
|
|
784
|
+
if (!(quizId in localRecord.quiz)) {
|
|
785
|
+
localRecord.quiz[quizId] = getQuizDefaultValue(quizField)
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
const vnode = h(AimdQuizRecorder, {
|
|
789
|
+
class: "aimd-rec-inline aimd-rec-inline--quiz",
|
|
790
|
+
quiz: quizField,
|
|
791
|
+
modelValue: localRecord.quiz[quizId],
|
|
792
|
+
grade: props.quizGrades?.[quizId] ?? null,
|
|
793
|
+
submitted: props.submitted,
|
|
794
|
+
readonly: props.readonly,
|
|
795
|
+
focusKeyPrefix: `quiz:${quizId}`,
|
|
796
|
+
locale: resolvedLocale.value,
|
|
797
|
+
messages: props.messages,
|
|
798
|
+
choiceOptionExplanationMode: props.choiceOptionExplanationMode,
|
|
799
|
+
scaleGradeDisplayMode: props.scaleGradeDisplayMode,
|
|
800
|
+
"onUpdate:modelValue": (value: unknown) => {
|
|
801
|
+
localRecord.quiz[quizId] = value
|
|
802
|
+
markRecordChanged()
|
|
803
|
+
emit("field-change", { section: "quiz", fieldKey: quizId, value })
|
|
804
|
+
},
|
|
805
|
+
})
|
|
806
|
+
|
|
807
|
+
return applyFieldAdapter("quiz", fieldKey, node, localRecord.quiz[quizId], vnode)
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
// ---------------------------------------------------------------------------
|
|
811
|
+
// Rebuild pipeline
|
|
812
|
+
// ---------------------------------------------------------------------------
|
|
813
|
+
|
|
814
|
+
async function rebuildInlineNodes(
|
|
815
|
+
expectedRequestId?: number,
|
|
816
|
+
focusSnapshot?: FocusSnapshot | null,
|
|
817
|
+
expectedInlineRequestId?: number,
|
|
818
|
+
) {
|
|
819
|
+
recordInitializedDuringRender = false
|
|
820
|
+
const rendered = await renderToVue(props.content || "", {
|
|
821
|
+
locale: resolvedLocale.value,
|
|
822
|
+
groupStepBodies: true,
|
|
823
|
+
groupCheckBodies: true,
|
|
824
|
+
context: {
|
|
825
|
+
mode: "edit",
|
|
826
|
+
readonly: props.readonly,
|
|
827
|
+
value: localRecord as Record<string, Record<string, unknown>>,
|
|
828
|
+
},
|
|
829
|
+
blockVarTypes: ["AiralogyMarkdown"],
|
|
830
|
+
aimdRenderers: {
|
|
831
|
+
var: node => renderInlineVar(node as AimdVarNode),
|
|
832
|
+
var_table: node => renderInlineVarTable(node as AimdVarTableNode),
|
|
833
|
+
step: (node, _ctx, children) => renderInlineStep(node as AimdStepNode, children),
|
|
834
|
+
check: (node, _ctx, children) => renderInlineCheck(node as AimdCheckNode, children),
|
|
835
|
+
quiz: node => renderInlineQuiz(node as AimdQuizNode),
|
|
836
|
+
},
|
|
837
|
+
})
|
|
838
|
+
|
|
839
|
+
if (
|
|
840
|
+
(expectedRequestId !== undefined && expectedRequestId !== buildRequestId)
|
|
841
|
+
|| (expectedInlineRequestId !== undefined && expectedInlineRequestId !== inlineBuildRequestId)
|
|
842
|
+
) {
|
|
843
|
+
return
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
inlineNodes.value = rendered.nodes
|
|
847
|
+
await nextTick()
|
|
848
|
+
restoreFocusSnapshot(contentRoot.value, focusSnapshot ?? null)
|
|
849
|
+
|
|
850
|
+
if (recordInitializedDuringRender) emitRecordUpdate()
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
async function parseAndBuild() {
|
|
854
|
+
const currentRequestId = ++buildRequestId
|
|
855
|
+
const currentInlineRequestId = ++inlineBuildRequestId
|
|
856
|
+
try {
|
|
857
|
+
renderError.value = ""
|
|
858
|
+
const extracted = parseAndExtract(props.content || "")
|
|
859
|
+
if (currentRequestId !== buildRequestId) return
|
|
860
|
+
|
|
861
|
+
extractedFields.value = extracted
|
|
862
|
+
clientAssigners.value = extracted.client_assigner || []
|
|
863
|
+
emit("fields-change", extracted)
|
|
864
|
+
|
|
865
|
+
const defaultsChanged = ensureDefaultsFromFields(localRecord, extracted)
|
|
866
|
+
const assignerChanged = assignerRunner.applyCurrentClientAssigners()
|
|
867
|
+
if (defaultsChanged || assignerChanged) {
|
|
868
|
+
emitRecordUpdate()
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
await rebuildInlineNodes(currentRequestId, undefined, currentInlineRequestId)
|
|
872
|
+
} catch (error) {
|
|
873
|
+
if (currentRequestId !== buildRequestId) {
|
|
874
|
+
return
|
|
875
|
+
}
|
|
876
|
+
const message = error instanceof Error ? error.message : String(error)
|
|
877
|
+
renderError.value = message
|
|
878
|
+
inlineNodes.value = []
|
|
879
|
+
extractedFields.value = EMPTY_FIELDS
|
|
880
|
+
clientAssigners.value = []
|
|
881
|
+
emit("fields-change", EMPTY_FIELDS)
|
|
882
|
+
emit("error", message)
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// ---------------------------------------------------------------------------
|
|
887
|
+
// Watchers
|
|
888
|
+
// ---------------------------------------------------------------------------
|
|
889
|
+
|
|
890
|
+
watch(
|
|
891
|
+
() => props.modelValue,
|
|
892
|
+
(value) => {
|
|
893
|
+
const shouldRebuild = getRecordDataSignature(value) !== getRecordDataSignature(localRecord)
|
|
894
|
+
if (!shouldRebuild) {
|
|
895
|
+
return
|
|
896
|
+
}
|
|
897
|
+
syncingFromExternal = true
|
|
898
|
+
applyIncomingRecord(localRecord, value)
|
|
899
|
+
syncingFromExternal = false
|
|
900
|
+
const assignerChanged = assignerRunner.applyCurrentClientAssigners()
|
|
901
|
+
if (assignerChanged) {
|
|
902
|
+
emitRecordUpdate()
|
|
903
|
+
}
|
|
904
|
+
if (shouldRebuild || assignerChanged) {
|
|
905
|
+
scheduleInlineRebuild()
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
{ deep: true, immediate: true },
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
watch(hasRunningStepTimer, () => {
|
|
912
|
+
timerNowMs.value = Date.now()
|
|
913
|
+
syncProtocolTimerTicker()
|
|
914
|
+
}, { immediate: true })
|
|
915
|
+
|
|
916
|
+
watch(
|
|
917
|
+
() => ({
|
|
918
|
+
content: props.content,
|
|
919
|
+
locale: props.locale,
|
|
920
|
+
messages: props.messages,
|
|
921
|
+
}),
|
|
922
|
+
() => {
|
|
923
|
+
void parseAndBuild()
|
|
924
|
+
},
|
|
925
|
+
{ immediate: true, deep: true },
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
watch(
|
|
929
|
+
() => props.quizGrades,
|
|
930
|
+
() => {
|
|
931
|
+
scheduleInlineRebuild()
|
|
932
|
+
},
|
|
933
|
+
{ deep: true },
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
watch(
|
|
937
|
+
() => props.choiceOptionExplanationMode,
|
|
938
|
+
() => {
|
|
939
|
+
scheduleInlineRebuild()
|
|
940
|
+
},
|
|
941
|
+
)
|
|
942
|
+
|
|
943
|
+
watch(
|
|
944
|
+
() => props.scaleGradeDisplayMode,
|
|
945
|
+
() => {
|
|
946
|
+
scheduleInlineRebuild()
|
|
947
|
+
},
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
watch(
|
|
951
|
+
() => props.submitted,
|
|
952
|
+
() => {
|
|
953
|
+
scheduleInlineRebuild()
|
|
954
|
+
},
|
|
955
|
+
)
|
|
956
|
+
|
|
957
|
+
onBeforeUnmount(() => {
|
|
958
|
+
if (protocolTimerTicker) {
|
|
959
|
+
clearInterval(protocolTimerTicker)
|
|
960
|
+
}
|
|
961
|
+
})
|
|
962
|
+
|
|
963
|
+
defineExpose({
|
|
964
|
+
runClientAssigner: assignerRunner.triggerClientAssigner,
|
|
965
|
+
runManualClientAssigners: assignerRunner.triggerManualClientAssigners,
|
|
966
|
+
})
|
|
967
|
+
</script>
|
|
968
|
+
|
|
969
|
+
<template>
|
|
970
|
+
<div class="aimd-protocol-recorder">
|
|
971
|
+
<div v-if="renderError" class="aimd-protocol-recorder__error">{{ renderError }}</div>
|
|
972
|
+
|
|
973
|
+
<template v-else>
|
|
974
|
+
<div v-if="showProtocolTimingSummary" class="aimd-protocol-recorder__timing">
|
|
975
|
+
<span
|
|
976
|
+
v-if="protocolEstimatedDurationMs > 0"
|
|
977
|
+
class="aimd-protocol-recorder__timing-pill aimd-protocol-recorder__timing-pill--estimate"
|
|
978
|
+
>
|
|
979
|
+
{{ resolvedMessages.step.protocolEstimatedTotal(protocolEstimatedDurationLabel) }}
|
|
980
|
+
</span>
|
|
981
|
+
<span
|
|
982
|
+
v-if="protocolRecordedDurationMs > 0"
|
|
983
|
+
class="aimd-protocol-recorder__timing-pill"
|
|
984
|
+
>
|
|
985
|
+
{{ resolvedMessages.step.protocolRecordedTotal(protocolRecordedDurationLabel) }}
|
|
986
|
+
</span>
|
|
987
|
+
</div>
|
|
988
|
+
|
|
989
|
+
<div v-if="inlineNodes.length" ref="contentRoot" class="aimd-protocol-recorder__content">
|
|
990
|
+
<InlineNodesOutlet :nodes="inlineNodes" />
|
|
991
|
+
</div>
|
|
992
|
+
|
|
993
|
+
<div v-else class="aimd-protocol-recorder__empty">{{ resolvedMessages.common.emptyContent }}</div>
|
|
994
|
+
</template>
|
|
995
|
+
</div>
|
|
996
|
+
</template>
|
|
997
|
+
|
|
998
|
+
<style scoped>
|
|
999
|
+
.aimd-protocol-recorder {
|
|
1000
|
+
--rec-text: #253041;
|
|
1001
|
+
--rec-muted: #667085;
|
|
1002
|
+
--rec-border: #e3e8ef;
|
|
1003
|
+
--rec-focus: #2f6fed;
|
|
1004
|
+
--rec-error: #e03050;
|
|
1005
|
+
--rec-var-control-height: 30px;
|
|
1006
|
+
--rec-var-single-line-height: 1.2;
|
|
1007
|
+
--rec-var-text-wrap-line-height: 1.35;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.aimd-protocol-recorder__error {
|
|
1011
|
+
margin-bottom: 12px;
|
|
1012
|
+
padding: 10px 12px;
|
|
1013
|
+
border-radius: 8px;
|
|
1014
|
+
border: 1px solid #f4b3c1;
|
|
1015
|
+
background: #fff3f6;
|
|
1016
|
+
color: #b4234d;
|
|
1017
|
+
font-size: 13px;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.aimd-protocol-recorder__timing {
|
|
1021
|
+
display: flex;
|
|
1022
|
+
flex-wrap: wrap;
|
|
1023
|
+
gap: 8px;
|
|
1024
|
+
margin-bottom: 12px;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.aimd-protocol-recorder__timing-pill {
|
|
1028
|
+
display: inline-flex;
|
|
1029
|
+
align-items: center;
|
|
1030
|
+
min-height: 30px;
|
|
1031
|
+
padding: 0 12px;
|
|
1032
|
+
border: 1px solid #d5dde8;
|
|
1033
|
+
border-radius: 999px;
|
|
1034
|
+
background: #f8fafc;
|
|
1035
|
+
color: #334155;
|
|
1036
|
+
font-size: 12px;
|
|
1037
|
+
font-weight: 600;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.aimd-protocol-recorder__timing-pill--estimate {
|
|
1041
|
+
border-color: #f1d39a;
|
|
1042
|
+
background: #fff8ea;
|
|
1043
|
+
color: #9a5800;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.aimd-protocol-recorder__content {
|
|
1047
|
+
padding: 18px 20px;
|
|
1048
|
+
border: 1px solid var(--rec-border);
|
|
1049
|
+
border-radius: 14px;
|
|
1050
|
+
background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
|
|
1051
|
+
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
1052
|
+
color: var(--rec-text);
|
|
1053
|
+
line-height: 1.7;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.aimd-protocol-recorder__empty {
|
|
1057
|
+
padding: 24px;
|
|
1058
|
+
border: 1px dashed #d7dbe3;
|
|
1059
|
+
border-radius: 8px;
|
|
1060
|
+
color: #7b8595;
|
|
1061
|
+
text-align: center;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/* ── Typography ─────────────────────────────────────────────────────────── */
|
|
1065
|
+
.aimd-protocol-recorder__content :deep(h1) { margin: 0.45em 0 0.5em; font-size: 1.7em; line-height: 1.25; }
|
|
1066
|
+
.aimd-protocol-recorder__content :deep(h2) { margin: 0.8em 0 0.45em; font-size: 1.35em; line-height: 1.3; }
|
|
1067
|
+
.aimd-protocol-recorder__content :deep(h3) { margin: 0.7em 0 0.4em; font-size: 1.15em; }
|
|
1068
|
+
.aimd-protocol-recorder__content :deep(p) { margin: 0.45em 0; color: var(--rec-text); }
|
|
1069
|
+
.aimd-protocol-recorder__content :deep(ul),
|
|
1070
|
+
.aimd-protocol-recorder__content :deep(ol) { margin: 0.35em 0; padding-left: 22px; }
|
|
1071
|
+
.aimd-protocol-recorder__content :deep(table) { border-collapse: collapse; margin: 10px 0; font-size: 14px; }
|
|
1072
|
+
.aimd-protocol-recorder__content :deep(th),
|
|
1073
|
+
.aimd-protocol-recorder__content :deep(td) { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
|
|
1074
|
+
.aimd-protocol-recorder__content :deep(th) { background: #f8fafc; }
|
|
1075
|
+
.aimd-protocol-recorder__content :deep(blockquote) { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #d8dee8; color: #666; background: #fafbfc; }
|
|
1076
|
+
.aimd-protocol-recorder__content :deep(code) { background: #f0f2f5; border-radius: 4px; padding: 2px 5px; }
|
|
1077
|
+
|
|
1078
|
+
/* ── Field base ─────────────────────────────────────────────────────────── */
|
|
1079
|
+
.aimd-protocol-recorder__content :deep(.aimd-field) {
|
|
1080
|
+
border-radius: 10px;
|
|
1081
|
+
margin: 6px 0;
|
|
1082
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
|
|
1083
|
+
}
|
|
1084
|
+
.aimd-protocol-recorder__content :deep(.aimd-field__scope) {
|
|
1085
|
+
border-radius: 6px;
|
|
1086
|
+
padding: 1px 7px;
|
|
1087
|
+
font-size: 11px;
|
|
1088
|
+
font-weight: 700;
|
|
1089
|
+
letter-spacing: 0.01em;
|
|
1090
|
+
text-transform: lowercase;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* ── Field colours ──────────────────────────────────────────────────────── */
|
|
1094
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var) { background: #f3f8ff; border-color: #c9dcff; color: #1c4e90; }
|
|
1095
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var .aimd-field__scope) { background: #dceaff; color: #255eab; }
|
|
1096
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--step) { background: #fff9ef; border-color: #f4d9a8; color: #9a5800; }
|
|
1097
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--step > .aimd-step-field__main .aimd-rec-inline__check-wrap > .aimd-field__scope) { background: #ffe8bf; color: #9a5800; }
|
|
1098
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check) { background: #f8fafc; border-color: #d8dfe8; color: #2b3443; padding: 3px 8px; }
|
|
1099
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check .aimd-field__scope) { background: #e7ecf3; color: #4f5f77; }
|
|
1100
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table) {
|
|
1101
|
+
display: block;
|
|
1102
|
+
width: 100%;
|
|
1103
|
+
max-width: 100%;
|
|
1104
|
+
box-sizing: border-box;
|
|
1105
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 252, 251, 0.98) 100%);
|
|
1106
|
+
border: 1px solid #dee7df;
|
|
1107
|
+
color: #334155;
|
|
1108
|
+
border-radius: 16px;
|
|
1109
|
+
padding: 12px 14px;
|
|
1110
|
+
box-shadow:
|
|
1111
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.92),
|
|
1112
|
+
0 8px 24px rgba(15, 23, 42, 0.025);
|
|
1113
|
+
}
|
|
1114
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__scope) {
|
|
1115
|
+
background: #edf6ee;
|
|
1116
|
+
color: #446a4f;
|
|
1117
|
+
}
|
|
1118
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__name) {
|
|
1119
|
+
color: #1f2937;
|
|
1120
|
+
}
|
|
1121
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__header) {
|
|
1122
|
+
display: inline-flex;
|
|
1123
|
+
flex-wrap: wrap;
|
|
1124
|
+
max-width: 100%;
|
|
1125
|
+
}
|
|
1126
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__table-preview),
|
|
1127
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-rec-card-list) {
|
|
1128
|
+
width: 100%;
|
|
1129
|
+
max-width: 100%;
|
|
1130
|
+
}
|
|
1131
|
+
/* ── Error & loading ────────────────────────────────────────────────────── */
|
|
1132
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--error) { border-color: var(--rec-error) !important; }
|
|
1133
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--error:focus-within) { box-shadow: 0 0 0 2px rgba(224, 48, 80, 0.12); }
|
|
1134
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--loading) { opacity: 0.6; pointer-events: none; }
|
|
1135
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input--error) { border-color: var(--rec-error) !important; }
|
|
1136
|
+
|
|
1137
|
+
/* ── Inline layout ──────────────────────────────────────────────────────── */
|
|
1138
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline) {
|
|
1139
|
+
display: inline-flex;
|
|
1140
|
+
align-items: center;
|
|
1141
|
+
gap: 8px;
|
|
1142
|
+
margin: 5px 3px;
|
|
1143
|
+
vertical-align: middle;
|
|
1144
|
+
}
|
|
1145
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-multiline) { align-items: flex-start; }
|
|
1146
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked) {
|
|
1147
|
+
flex-direction: column;
|
|
1148
|
+
align-items: stretch;
|
|
1149
|
+
gap: 0;
|
|
1150
|
+
margin: 5px 3px;
|
|
1151
|
+
width: fit-content;
|
|
1152
|
+
min-width: 0;
|
|
1153
|
+
max-width: 100%;
|
|
1154
|
+
border: 1px solid var(--aimd-border-color, #90caf9);
|
|
1155
|
+
border-radius: 8px;
|
|
1156
|
+
overflow: hidden;
|
|
1157
|
+
box-shadow: none;
|
|
1158
|
+
background: #f7fbff;
|
|
1159
|
+
}
|
|
1160
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--textarea) { min-width: 0; }
|
|
1161
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--checkbox) { width: fit-content; min-width: 0; }
|
|
1162
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked:focus-within) {
|
|
1163
|
+
border-color: var(--aimd-border-color-focus, #4181fd);
|
|
1164
|
+
box-shadow: 0 0 0 2px rgba(65, 129, 253, 0.14);
|
|
1165
|
+
}
|
|
1166
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field) { margin: 0; box-shadow: none; }
|
|
1167
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field--no-style.aimd-field__label) { min-height: 30px; border-radius: 6px 6px 0 0; }
|
|
1168
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__scope) { align-self: center; height: 22px; margin-left: 3px; padding: 0 7px; border-radius: 6px; }
|
|
1169
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__id) { display: flex; flex: 1; align-items: center; padding: 0 10px 0 6px; font-size: 13px; font-weight: 500; color: #1565c0; white-space: nowrap; }
|
|
1170
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-markdown) {
|
|
1171
|
+
display: flex;
|
|
1172
|
+
flex-direction: column;
|
|
1173
|
+
align-items: stretch;
|
|
1174
|
+
gap: 0;
|
|
1175
|
+
width: min(100%, 1040px);
|
|
1176
|
+
max-width: 100%;
|
|
1177
|
+
margin: 12px 0;
|
|
1178
|
+
vertical-align: top;
|
|
1179
|
+
}
|
|
1180
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--code) {
|
|
1181
|
+
width: min(100%, 980px);
|
|
1182
|
+
min-width: min(420px, 100%);
|
|
1183
|
+
max-width: 100%;
|
|
1184
|
+
margin: 12px 0;
|
|
1185
|
+
vertical-align: top;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/* ── Stacked input controls ─────────────────────────────────────────────── */
|
|
1189
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input--stacked) {
|
|
1190
|
+
width: 100%;
|
|
1191
|
+
min-width: 0;
|
|
1192
|
+
height: var(--rec-var-control-height);
|
|
1193
|
+
font-family: inherit;
|
|
1194
|
+
font-size: inherit;
|
|
1195
|
+
line-height: var(--rec-var-single-line-height);
|
|
1196
|
+
border: 0 none;
|
|
1197
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1198
|
+
border-radius: 0 0 6px 6px;
|
|
1199
|
+
margin: 0;
|
|
1200
|
+
box-shadow: none;
|
|
1201
|
+
padding: 0 10px;
|
|
1202
|
+
background: #fff;
|
|
1203
|
+
}
|
|
1204
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input--stacked:focus) { border-color: var(--aimd-border-color, #90caf9); box-shadow: none; }
|
|
1205
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea--stacked:not(.aimd-rec-inline__textarea--stacked-text)) {
|
|
1206
|
+
width: 100%;
|
|
1207
|
+
min-width: 0;
|
|
1208
|
+
min-height: 82px;
|
|
1209
|
+
font-family: inherit;
|
|
1210
|
+
font-size: inherit;
|
|
1211
|
+
line-height: inherit;
|
|
1212
|
+
border: 0 none;
|
|
1213
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1214
|
+
border-radius: 0 0 6px 6px;
|
|
1215
|
+
margin: 0;
|
|
1216
|
+
box-shadow: none;
|
|
1217
|
+
padding: 8px 10px;
|
|
1218
|
+
background: #fff;
|
|
1219
|
+
}
|
|
1220
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea--stacked-text) {
|
|
1221
|
+
display: block;
|
|
1222
|
+
width: 100%;
|
|
1223
|
+
min-width: 0;
|
|
1224
|
+
min-height: var(--rec-var-control-height);
|
|
1225
|
+
font-family: inherit;
|
|
1226
|
+
font-size: inherit;
|
|
1227
|
+
line-height: var(--rec-var-text-wrap-line-height);
|
|
1228
|
+
border: 0 none;
|
|
1229
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1230
|
+
border-radius: 0 0 6px 6px;
|
|
1231
|
+
margin: 0;
|
|
1232
|
+
box-shadow: none;
|
|
1233
|
+
padding: 5px 10px;
|
|
1234
|
+
background: #fff;
|
|
1235
|
+
box-sizing: border-box;
|
|
1236
|
+
resize: none;
|
|
1237
|
+
overflow: hidden;
|
|
1238
|
+
}
|
|
1239
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea--stacked:focus) { border-color: var(--aimd-border-color, #90caf9); box-shadow: none; }
|
|
1240
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__checkbox-row) {
|
|
1241
|
+
display: flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
min-height: 38px;
|
|
1244
|
+
padding: 0 10px;
|
|
1245
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1246
|
+
background: #fff;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/* ── Select ─────────────────────────────────────────────────────────────── */
|
|
1250
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__select) { appearance: auto; cursor: pointer; height: var(--rec-var-control-height); padding: 0 8px; background: #fff; }
|
|
1251
|
+
|
|
1252
|
+
/* ── Step / check ───────────────────────────────────────────────────────── */
|
|
1253
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--step),
|
|
1254
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check) { gap: 8px; }
|
|
1255
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check) {
|
|
1256
|
+
display: flex;
|
|
1257
|
+
flex-direction: column;
|
|
1258
|
+
align-items: stretch;
|
|
1259
|
+
gap: 10px;
|
|
1260
|
+
width: min(100%, 1040px);
|
|
1261
|
+
max-width: 100%;
|
|
1262
|
+
margin: 10px 0;
|
|
1263
|
+
padding: 10px 12px;
|
|
1264
|
+
border: 1px solid #d8dfe8;
|
|
1265
|
+
border-radius: 14px;
|
|
1266
|
+
background: #f8fafc;
|
|
1267
|
+
box-sizing: border-box;
|
|
1268
|
+
}
|
|
1269
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__main) {
|
|
1270
|
+
display: flex;
|
|
1271
|
+
flex-direction: column;
|
|
1272
|
+
gap: 8px;
|
|
1273
|
+
min-width: 0;
|
|
1274
|
+
}
|
|
1275
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check > .aimd-rec-inline__input--annotation) {
|
|
1276
|
+
min-width: 0;
|
|
1277
|
+
width: 100%;
|
|
1278
|
+
}
|
|
1279
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check > .aimd-rec-inline__check-wrap) {
|
|
1280
|
+
display: inline-flex;
|
|
1281
|
+
align-items: center;
|
|
1282
|
+
flex-wrap: wrap;
|
|
1283
|
+
min-width: 0;
|
|
1284
|
+
}
|
|
1285
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__toggle) {
|
|
1286
|
+
gap: 8px;
|
|
1287
|
+
}
|
|
1288
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__key) {
|
|
1289
|
+
font-size: 12px;
|
|
1290
|
+
font-weight: 600;
|
|
1291
|
+
color: #4f5f77;
|
|
1292
|
+
}
|
|
1293
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__body) {
|
|
1294
|
+
min-width: 0;
|
|
1295
|
+
color: var(--rec-text);
|
|
1296
|
+
font-size: 14px;
|
|
1297
|
+
line-height: 1.65;
|
|
1298
|
+
transition: color 0.2s ease, opacity 0.2s ease, text-decoration-color 0.2s ease;
|
|
1299
|
+
}
|
|
1300
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__body p) {
|
|
1301
|
+
margin: 0;
|
|
1302
|
+
}
|
|
1303
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__body--checked) {
|
|
1304
|
+
color: #667085;
|
|
1305
|
+
opacity: 0.92;
|
|
1306
|
+
text-decoration: line-through;
|
|
1307
|
+
text-decoration-thickness: 1.5px;
|
|
1308
|
+
text-decoration-color: rgba(102, 112, 133, 0.55);
|
|
1309
|
+
}
|
|
1310
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check > .aimd-rec-inline__check-wrap > .aimd-field__name),
|
|
1311
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__body) {
|
|
1312
|
+
min-width: 0;
|
|
1313
|
+
overflow-wrap: anywhere;
|
|
1314
|
+
}
|
|
1315
|
+
.aimd-protocol-recorder__content :deep(.aimd-check-field__banner) {
|
|
1316
|
+
padding: 8px 10px;
|
|
1317
|
+
border: 1px solid rgba(22, 101, 52, 0.16);
|
|
1318
|
+
border-radius: 10px;
|
|
1319
|
+
background: rgba(236, 253, 245, 0.92);
|
|
1320
|
+
color: #166534;
|
|
1321
|
+
font-size: 13px;
|
|
1322
|
+
font-weight: 600;
|
|
1323
|
+
line-height: 1.5;
|
|
1324
|
+
}
|
|
1325
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--step) {
|
|
1326
|
+
display: flex;
|
|
1327
|
+
flex-direction: column;
|
|
1328
|
+
align-items: stretch;
|
|
1329
|
+
gap: 12px;
|
|
1330
|
+
width: min(100%, 1040px);
|
|
1331
|
+
max-width: 100%;
|
|
1332
|
+
margin: 16px 0;
|
|
1333
|
+
padding: 14px 16px 16px;
|
|
1334
|
+
border: 1px solid #f1d6a1;
|
|
1335
|
+
border-radius: 18px;
|
|
1336
|
+
background: #fff;
|
|
1337
|
+
box-shadow: none;
|
|
1338
|
+
color: var(--rec-text);
|
|
1339
|
+
}
|
|
1340
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__main) {
|
|
1341
|
+
display: flex;
|
|
1342
|
+
align-items: flex-start;
|
|
1343
|
+
justify-content: space-between;
|
|
1344
|
+
gap: 10px 14px;
|
|
1345
|
+
min-width: 0;
|
|
1346
|
+
}
|
|
1347
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__main-meta) {
|
|
1348
|
+
display: flex;
|
|
1349
|
+
flex: 1 1 auto;
|
|
1350
|
+
flex-wrap: wrap;
|
|
1351
|
+
align-items: center;
|
|
1352
|
+
gap: 8px;
|
|
1353
|
+
min-width: 0;
|
|
1354
|
+
}
|
|
1355
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__main-actions) {
|
|
1356
|
+
display: flex;
|
|
1357
|
+
flex: 0 0 auto;
|
|
1358
|
+
flex-wrap: wrap;
|
|
1359
|
+
justify-content: flex-end;
|
|
1360
|
+
gap: 8px;
|
|
1361
|
+
}
|
|
1362
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body) {
|
|
1363
|
+
min-width: 0;
|
|
1364
|
+
color: var(--rec-text);
|
|
1365
|
+
font-size: 15px;
|
|
1366
|
+
line-height: 1.72;
|
|
1367
|
+
}
|
|
1368
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body .aimd-step-body) {
|
|
1369
|
+
display: flex;
|
|
1370
|
+
flex-direction: column;
|
|
1371
|
+
gap: 8px;
|
|
1372
|
+
}
|
|
1373
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body p) {
|
|
1374
|
+
margin: 0;
|
|
1375
|
+
}
|
|
1376
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__details) {
|
|
1377
|
+
display: flex;
|
|
1378
|
+
flex-direction: column;
|
|
1379
|
+
gap: 10px;
|
|
1380
|
+
min-width: 0;
|
|
1381
|
+
padding-top: 12px;
|
|
1382
|
+
border-top: 1px solid rgba(154, 88, 0, 0.12);
|
|
1383
|
+
}
|
|
1384
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__detail--timer) {
|
|
1385
|
+
display: flex;
|
|
1386
|
+
flex-wrap: wrap;
|
|
1387
|
+
align-items: center;
|
|
1388
|
+
gap: 8px;
|
|
1389
|
+
min-width: 0;
|
|
1390
|
+
}
|
|
1391
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__detail--annotation) {
|
|
1392
|
+
display: flex;
|
|
1393
|
+
width: 100%;
|
|
1394
|
+
min-width: 0;
|
|
1395
|
+
}
|
|
1396
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--quiz) { display: block; margin: 12px 0; padding: 0; border: none; background: transparent; }
|
|
1397
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--quiz.aimd-field--quiz) { border-radius: 12px; border-color: #f6ddb0; background: #fffdf6; padding: 10px 12px; }
|
|
1398
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__check-wrap) {
|
|
1399
|
+
display: inline-flex;
|
|
1400
|
+
align-items: center;
|
|
1401
|
+
flex-wrap: wrap;
|
|
1402
|
+
gap: 8px;
|
|
1403
|
+
min-width: 0;
|
|
1404
|
+
}
|
|
1405
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__step-num) { font-weight: 600; color: #9a5800; }
|
|
1406
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--step > .aimd-step-field__main .aimd-rec-inline__check-wrap > .aimd-field__name) {
|
|
1407
|
+
font-size: 1.02rem;
|
|
1408
|
+
font-weight: 700;
|
|
1409
|
+
line-height: 1.3;
|
|
1410
|
+
color: #7b4300;
|
|
1411
|
+
overflow-wrap: anywhere;
|
|
1412
|
+
}
|
|
1413
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__pill) {
|
|
1414
|
+
display: inline-flex;
|
|
1415
|
+
align-items: center;
|
|
1416
|
+
min-height: 28px;
|
|
1417
|
+
padding: 0 10px;
|
|
1418
|
+
border: 1px solid rgba(154, 88, 0, 0.18);
|
|
1419
|
+
border-radius: 999px;
|
|
1420
|
+
background: rgba(255, 255, 255, 0.82);
|
|
1421
|
+
color: #8a5a12;
|
|
1422
|
+
font-size: 12px;
|
|
1423
|
+
font-weight: 600;
|
|
1424
|
+
white-space: nowrap;
|
|
1425
|
+
}
|
|
1426
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__pill--estimate) {
|
|
1427
|
+
background: rgba(255, 244, 222, 0.95);
|
|
1428
|
+
}
|
|
1429
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__pill--actual) {
|
|
1430
|
+
color: #6b7280;
|
|
1431
|
+
border-color: rgba(107, 114, 128, 0.16);
|
|
1432
|
+
}
|
|
1433
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__pill--running) {
|
|
1434
|
+
color: #14532d;
|
|
1435
|
+
border-color: rgba(22, 101, 52, 0.2);
|
|
1436
|
+
background: rgba(236, 253, 245, 0.96);
|
|
1437
|
+
}
|
|
1438
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__hero) {
|
|
1439
|
+
display: inline-flex;
|
|
1440
|
+
align-items: center;
|
|
1441
|
+
min-height: 36px;
|
|
1442
|
+
padding: 0 14px;
|
|
1443
|
+
border: 1px solid rgba(154, 88, 0, 0.18);
|
|
1444
|
+
border-radius: 999px;
|
|
1445
|
+
background: rgba(255, 247, 237, 0.96);
|
|
1446
|
+
color: #9a5800;
|
|
1447
|
+
font-size: 16px;
|
|
1448
|
+
font-weight: 700;
|
|
1449
|
+
line-height: 1;
|
|
1450
|
+
white-space: nowrap;
|
|
1451
|
+
}
|
|
1452
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__hero--countdown) {
|
|
1453
|
+
border-color: rgba(154, 88, 0, 0.18);
|
|
1454
|
+
background: rgba(255, 247, 237, 0.96);
|
|
1455
|
+
color: #9a5800;
|
|
1456
|
+
}
|
|
1457
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__hero--warning) {
|
|
1458
|
+
border-color: rgba(180, 83, 9, 0.26);
|
|
1459
|
+
background: rgba(255, 251, 235, 0.98);
|
|
1460
|
+
color: #b45309;
|
|
1461
|
+
}
|
|
1462
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__hero--overtime) {
|
|
1463
|
+
border-color: rgba(185, 28, 28, 0.24);
|
|
1464
|
+
background: rgba(254, 242, 242, 0.98);
|
|
1465
|
+
color: #b91c1c;
|
|
1466
|
+
}
|
|
1467
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__controls) {
|
|
1468
|
+
display: inline-flex;
|
|
1469
|
+
flex-wrap: wrap;
|
|
1470
|
+
gap: 6px;
|
|
1471
|
+
}
|
|
1472
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__btn) {
|
|
1473
|
+
border: 1px solid #d1d9e6;
|
|
1474
|
+
border-radius: 999px;
|
|
1475
|
+
min-height: 28px;
|
|
1476
|
+
padding: 0 10px;
|
|
1477
|
+
background: #fff;
|
|
1478
|
+
color: #334155;
|
|
1479
|
+
font-size: 12px;
|
|
1480
|
+
font-weight: 600;
|
|
1481
|
+
cursor: pointer;
|
|
1482
|
+
transition: border-color 0.2s, background-color 0.2s, color 0.2s;
|
|
1483
|
+
}
|
|
1484
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__btn:hover:not(:disabled)) {
|
|
1485
|
+
border-color: #9db1cc;
|
|
1486
|
+
background: #f7faff;
|
|
1487
|
+
color: #1f4f8f;
|
|
1488
|
+
}
|
|
1489
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__btn:disabled) {
|
|
1490
|
+
opacity: 0.45;
|
|
1491
|
+
cursor: not-allowed;
|
|
1492
|
+
}
|
|
1493
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-timer__btn--ghost) {
|
|
1494
|
+
background: transparent;
|
|
1495
|
+
}
|
|
1496
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__toggle) {
|
|
1497
|
+
color: #8a5a12;
|
|
1498
|
+
border-color: rgba(154, 88, 0, 0.18);
|
|
1499
|
+
background: rgba(255, 255, 255, 0.82);
|
|
1500
|
+
}
|
|
1501
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__toggle:hover:not(:disabled)) {
|
|
1502
|
+
border-color: rgba(154, 88, 0, 0.34);
|
|
1503
|
+
background: rgba(255, 248, 235, 0.98);
|
|
1504
|
+
color: #7b4300;
|
|
1505
|
+
}
|
|
1506
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline input[type="checkbox"]),
|
|
1507
|
+
.aimd-protocol-recorder__content :deep(.aimd-checkbox) { width: 16px; height: 16px; accent-color: var(--rec-focus); }
|
|
1508
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input) {
|
|
1509
|
+
height: 30px;
|
|
1510
|
+
min-width: 94px;
|
|
1511
|
+
padding: 0 10px;
|
|
1512
|
+
border: 1px solid #c8d3e1;
|
|
1513
|
+
border-radius: 8px;
|
|
1514
|
+
font-size: 13px;
|
|
1515
|
+
outline: none;
|
|
1516
|
+
background: #fff;
|
|
1517
|
+
color: var(--rec-text);
|
|
1518
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
1519
|
+
}
|
|
1520
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input::placeholder) { color: #98a2b3; }
|
|
1521
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input:focus) { border-color: var(--rec-focus); box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.12); }
|
|
1522
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var .aimd-rec-inline__input) { width: clamp(120px, 28vw, 280px); }
|
|
1523
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__annotation-editor) {
|
|
1524
|
+
width: 100%;
|
|
1525
|
+
min-width: 0;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
@media (max-width: 640px) {
|
|
1529
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__details) {
|
|
1530
|
+
padding-top: 10px;
|
|
1531
|
+
}
|
|
1532
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__main) {
|
|
1533
|
+
flex-direction: column;
|
|
1534
|
+
}
|
|
1535
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__main-actions) {
|
|
1536
|
+
justify-content: flex-start;
|
|
1537
|
+
}
|
|
1538
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--check) {
|
|
1539
|
+
gap: 10px;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input.aimd-rec-inline__input--stacked),
|
|
1543
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea.aimd-rec-inline__textarea--stacked) { font-family: inherit; outline: none; }
|
|
1544
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table td) {
|
|
1545
|
+
vertical-align: middle;
|
|
1546
|
+
transition:
|
|
1547
|
+
background-color 0.2s ease,
|
|
1548
|
+
box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
|
|
1549
|
+
transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
|
|
1550
|
+
opacity 0.2s ease;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table th) {
|
|
1554
|
+
vertical-align: middle;
|
|
1555
|
+
padding-top: 8px;
|
|
1556
|
+
padding-bottom: 8px;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table) {
|
|
1560
|
+
width: max-content;
|
|
1561
|
+
min-width: 100%;
|
|
1562
|
+
table-layout: auto;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table col) {
|
|
1566
|
+
transition: width 0.18s ease;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head) {
|
|
1570
|
+
color: #64748b;
|
|
1571
|
+
font-size: 11px;
|
|
1572
|
+
font-weight: 700;
|
|
1573
|
+
letter-spacing: 0.08em;
|
|
1574
|
+
text-transform: uppercase;
|
|
1575
|
+
white-space: nowrap;
|
|
1576
|
+
padding-left: 6px;
|
|
1577
|
+
padding-right: 6px;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head--compact) {
|
|
1581
|
+
text-align: center;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head--wide) {
|
|
1585
|
+
letter-spacing: 0.06em;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-col) {
|
|
1589
|
+
width: 44px;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-col) {
|
|
1593
|
+
width: 56px;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-head),
|
|
1597
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-cell) {
|
|
1598
|
+
width: 34px;
|
|
1599
|
+
text-align: center;
|
|
1600
|
+
vertical-align: middle;
|
|
1601
|
+
padding-left: 0;
|
|
1602
|
+
padding-right: 0;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-head),
|
|
1606
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-cell) {
|
|
1607
|
+
width: 40px;
|
|
1608
|
+
text-align: center;
|
|
1609
|
+
padding-left: 0;
|
|
1610
|
+
padding-right: 0;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row--alt .aimd-rec-inline-table__value-cell) {
|
|
1614
|
+
background: rgba(248, 250, 252, 0.2);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell) {
|
|
1618
|
+
position: relative;
|
|
1619
|
+
min-width: 0;
|
|
1620
|
+
padding-top: 6px;
|
|
1621
|
+
padding-bottom: 6px;
|
|
1622
|
+
padding-left: 6px;
|
|
1623
|
+
padding-right: 6px;
|
|
1624
|
+
transition: background-color 0.18s ease, box-shadow 0.18s ease;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell--compact) {
|
|
1628
|
+
text-align: center;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell:hover) {
|
|
1632
|
+
background: rgba(248, 250, 252, 0.58);
|
|
1633
|
+
box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.26);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell:focus-within) {
|
|
1637
|
+
background: rgba(239, 246, 255, 0.96);
|
|
1638
|
+
box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.14);
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table--dragging) {
|
|
1642
|
+
cursor: grabbing;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row--dragging-source td) {
|
|
1646
|
+
opacity: 0.5;
|
|
1647
|
+
transform: scale(0.985);
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row--drag-over td) {
|
|
1651
|
+
background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
|
|
1652
|
+
box-shadow:
|
|
1653
|
+
inset 0 0 0 1px rgba(47, 111, 237, 0.18),
|
|
1654
|
+
0 10px 24px rgba(47, 111, 237, 0.08);
|
|
1655
|
+
transform: translateY(-2px);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row--settling td) {
|
|
1659
|
+
animation: aimd-rec-inline-table-row-settle 0.48s cubic-bezier(0.22, 1, 0.36, 1);
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__actions) {
|
|
1663
|
+
display: flex;
|
|
1664
|
+
justify-content: flex-start;
|
|
1665
|
+
margin-top: 12px;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__add-btn) {
|
|
1669
|
+
border: 1px solid #c8d3e1;
|
|
1670
|
+
border-radius: 999px;
|
|
1671
|
+
padding: 6px 12px;
|
|
1672
|
+
background: #fff;
|
|
1673
|
+
color: #334155;
|
|
1674
|
+
font-size: 12px;
|
|
1675
|
+
cursor: pointer;
|
|
1676
|
+
transition: border-color 0.2s, background-color 0.2s, color 0.2s;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__add-btn:hover) {
|
|
1680
|
+
border-color: #9db1cc;
|
|
1681
|
+
background: #f7faff;
|
|
1682
|
+
color: #1f4f8f;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__add-btn:disabled) {
|
|
1686
|
+
opacity: 0.5;
|
|
1687
|
+
cursor: not-allowed;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn) {
|
|
1691
|
+
display: inline-flex;
|
|
1692
|
+
align-items: center;
|
|
1693
|
+
justify-content: center;
|
|
1694
|
+
width: 24px;
|
|
1695
|
+
height: 24px;
|
|
1696
|
+
border: 0;
|
|
1697
|
+
border-radius: 999px;
|
|
1698
|
+
background: transparent;
|
|
1699
|
+
color: #b0bccb;
|
|
1700
|
+
cursor: pointer;
|
|
1701
|
+
opacity: 0.08;
|
|
1702
|
+
transition:
|
|
1703
|
+
opacity 0.18s ease,
|
|
1704
|
+
color 0.18s ease,
|
|
1705
|
+
background-color 0.18s ease,
|
|
1706
|
+
transform 0.18s ease;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row:hover .aimd-rec-inline-table__icon-btn),
|
|
1710
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn:focus-visible) {
|
|
1711
|
+
opacity: 1;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn:hover:not(:disabled)) {
|
|
1715
|
+
background: rgba(239, 68, 68, 0.08);
|
|
1716
|
+
color: #dc2626;
|
|
1717
|
+
transform: translateY(-1px);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn svg) {
|
|
1721
|
+
width: 14px;
|
|
1722
|
+
height: 14px;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn:disabled) {
|
|
1726
|
+
opacity: 0.36;
|
|
1727
|
+
cursor: not-allowed;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__icon-btn--visible) {
|
|
1731
|
+
opacity: 1;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle) {
|
|
1735
|
+
display: inline-grid;
|
|
1736
|
+
grid-template-columns: repeat(2, 3px);
|
|
1737
|
+
grid-auto-rows: 3px;
|
|
1738
|
+
gap: 3px 3px;
|
|
1739
|
+
padding: 4px 6px;
|
|
1740
|
+
align-items: center;
|
|
1741
|
+
justify-content: center;
|
|
1742
|
+
vertical-align: middle;
|
|
1743
|
+
border-radius: 999px;
|
|
1744
|
+
color: #bcc6d3;
|
|
1745
|
+
cursor: grab;
|
|
1746
|
+
user-select: none;
|
|
1747
|
+
opacity: 0.35;
|
|
1748
|
+
transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s ease;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-dot) {
|
|
1752
|
+
width: 3px;
|
|
1753
|
+
height: 3px;
|
|
1754
|
+
border-radius: 999px;
|
|
1755
|
+
background: currentColor;
|
|
1756
|
+
opacity: 0.82;
|
|
1757
|
+
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle:hover) {
|
|
1761
|
+
background: rgba(148, 163, 184, 0.12);
|
|
1762
|
+
color: #7c8ea5;
|
|
1763
|
+
opacity: 1;
|
|
1764
|
+
transform: translateY(-1px);
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row:hover .aimd-rec-inline-table__drag-handle),
|
|
1768
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle:focus-visible) {
|
|
1769
|
+
opacity: 0.92;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle:hover .aimd-rec-inline-table__drag-dot) {
|
|
1773
|
+
opacity: 1;
|
|
1774
|
+
transform: scale(1.08);
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle--disabled) {
|
|
1778
|
+
opacity: 0.45;
|
|
1779
|
+
cursor: not-allowed;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle--disabled:hover) {
|
|
1783
|
+
background: transparent;
|
|
1784
|
+
color: #b6c2d1;
|
|
1785
|
+
transform: none;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle--dragging),
|
|
1789
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle:active) {
|
|
1790
|
+
cursor: grabbing;
|
|
1791
|
+
color: #5d7699;
|
|
1792
|
+
transform: scale(0.96);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle--dragging .aimd-rec-inline-table__drag-dot),
|
|
1796
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-handle:active .aimd-rec-inline-table__drag-dot) {
|
|
1797
|
+
transform: scale(0.92);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input) {
|
|
1801
|
+
width: 100%;
|
|
1802
|
+
height: 34px;
|
|
1803
|
+
padding: 0 6px;
|
|
1804
|
+
border: 0;
|
|
1805
|
+
border-radius: 0;
|
|
1806
|
+
font-size: 13px;
|
|
1807
|
+
line-height: 1.35;
|
|
1808
|
+
outline: none;
|
|
1809
|
+
box-sizing: border-box;
|
|
1810
|
+
color: var(--rec-text);
|
|
1811
|
+
background: transparent;
|
|
1812
|
+
box-shadow: none;
|
|
1813
|
+
min-width: 8ch;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell--compact .aimd-rec-table-cell-input) {
|
|
1817
|
+
min-width: 6ch;
|
|
1818
|
+
text-align: center;
|
|
1819
|
+
font-variant-numeric: tabular-nums;
|
|
1820
|
+
letter-spacing: 0.01em;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__value-cell--wide .aimd-rec-table-cell-input) {
|
|
1824
|
+
min-width: 14ch;
|
|
1825
|
+
padding-left: 6px;
|
|
1826
|
+
padding-right: 6px;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-head),
|
|
1830
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-head) {
|
|
1831
|
+
color: transparent;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row:hover .aimd-rec-inline-table__drag-cell),
|
|
1835
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row:hover .aimd-rec-inline-table__action-cell) {
|
|
1836
|
+
background: transparent;
|
|
1837
|
+
box-shadow: none;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input--compact) {
|
|
1841
|
+
font-variant-numeric: tabular-nums;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input--wide) {
|
|
1845
|
+
line-height: 1.42;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input:focus) {
|
|
1849
|
+
box-shadow: none;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input::placeholder) {
|
|
1853
|
+
color: #94a3b8;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card-list) {
|
|
1857
|
+
display: grid;
|
|
1858
|
+
gap: 12px;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card) {
|
|
1862
|
+
position: relative;
|
|
1863
|
+
padding: 10px 12px 12px;
|
|
1864
|
+
border: 1px solid #dbe4ec;
|
|
1865
|
+
border-radius: 14px;
|
|
1866
|
+
background: rgba(255, 255, 255, 0.94);
|
|
1867
|
+
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__toolbar) {
|
|
1871
|
+
display: flex;
|
|
1872
|
+
align-items: center;
|
|
1873
|
+
justify-content: space-between;
|
|
1874
|
+
gap: 10px;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__field) {
|
|
1878
|
+
display: grid;
|
|
1879
|
+
gap: 6px;
|
|
1880
|
+
min-width: 0;
|
|
1881
|
+
padding-top: 10px;
|
|
1882
|
+
margin-top: 10px;
|
|
1883
|
+
border-top: 1px solid #eef2f7;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__field--title) {
|
|
1887
|
+
margin-top: 0;
|
|
1888
|
+
border-top: 0;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__body) {
|
|
1892
|
+
display: grid;
|
|
1893
|
+
gap: 0;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__label) {
|
|
1897
|
+
color: #64748b;
|
|
1898
|
+
font-size: 11px;
|
|
1899
|
+
font-weight: 700;
|
|
1900
|
+
letter-spacing: 0.08em;
|
|
1901
|
+
text-transform: uppercase;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input) {
|
|
1905
|
+
width: 100%;
|
|
1906
|
+
height: 36px;
|
|
1907
|
+
padding: 0 10px;
|
|
1908
|
+
border: 1px solid #d7e0ea;
|
|
1909
|
+
border-radius: 10px;
|
|
1910
|
+
background: #f8fafc;
|
|
1911
|
+
color: var(--rec-text);
|
|
1912
|
+
font-size: 13px;
|
|
1913
|
+
outline: none;
|
|
1914
|
+
box-sizing: border-box;
|
|
1915
|
+
transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input:hover) {
|
|
1919
|
+
background: #ffffff;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input:focus) {
|
|
1923
|
+
border-color: var(--rec-focus);
|
|
1924
|
+
box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.1);
|
|
1925
|
+
background: #ffffff;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input::placeholder) {
|
|
1929
|
+
color: #94a3b8;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input--error) {
|
|
1933
|
+
border-color: var(--rec-error);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
@keyframes aimd-rec-inline-table-row-settle {
|
|
1937
|
+
0% {
|
|
1938
|
+
background-color: #deebff;
|
|
1939
|
+
box-shadow:
|
|
1940
|
+
inset 0 0 0 1px rgba(47, 111, 237, 0.22),
|
|
1941
|
+
0 14px 28px rgba(47, 111, 237, 0.14);
|
|
1942
|
+
transform: translateY(8px) scale(0.985);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
60% {
|
|
1946
|
+
background-color: #edf4ff;
|
|
1947
|
+
box-shadow:
|
|
1948
|
+
inset 0 0 0 1px rgba(47, 111, 237, 0.12),
|
|
1949
|
+
0 8px 18px rgba(47, 111, 237, 0.08);
|
|
1950
|
+
transform: translateY(-1px) scale(1);
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
100% {
|
|
1954
|
+
background-color: transparent;
|
|
1955
|
+
box-shadow: none;
|
|
1956
|
+
transform: none;
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
</style>
|