@airalogy/aimd-recorder 1.17.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -10
- package/README.zh-CN.md +42 -10
- package/dist/AimdCodeField-BQUuM-EF.js +182 -0
- package/dist/{AimdDnaSequenceField-D6ZgCDpp.js → AimdDnaSequenceField-TBKunqU_.js} +2 -2
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-B5Tq4zPV.js → AimdEditor.vue_vue_type_style_index_0_lang-tdh0dJNa.js} +3922 -3829
- package/dist/AimdMarkdownField-DmNX2g4j.js +254 -0
- package/dist/AimdMarkdownNoteField-B5ruzmwS.js +259 -0
- package/dist/{_commonjsHelpers-CZXJ37nu.js → _commonjsHelpers-B5RozER-.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/arc-B-vsgEXF.js +83 -0
- package/dist/architectureDiagram-3BPJPVTR-BwPNOtNH.js +4692 -0
- package/dist/blockDiagram-GPEHLZMM-CMUI4kKc.js +2425 -0
- package/dist/c4Diagram-AAUBKEIU-Cpmfsy_s.js +1577 -0
- package/dist/channel-DlMAXHQK.js +5 -0
- package/dist/chunk-2J33WTMH-DP9BS2ux.js +19 -0
- package/dist/chunk-4BX2VUAB-ncsOeLMb.js +8 -0
- package/dist/chunk-55IACEB6-C7wHk4B7.js +8 -0
- package/dist/chunk-727SXJPM-Caa5aVUO.js +1528 -0
- package/dist/chunk-AQP2D5EJ-CL8egKqD.js +1387 -0
- package/dist/chunk-FMBD7UC4-heVR6BSA.js +19 -0
- package/dist/chunk-ND2GUHAM-BYH-wC2J.js +68 -0
- package/dist/chunk-QZHKN3VN-Bx2K7vkq.js +15 -0
- package/dist/classDiagram-4FO5ZUOK-BLLfLYy0.js +16 -0
- package/dist/classDiagram-v2-Q7XG4LA2-BLLfLYy0.js +16 -0
- package/dist/components.js +3776 -2247
- package/dist/composables.js +96 -70
- package/dist/cose-bilkent-S5V4N54A-E1YmM_xr.js +2609 -0
- package/dist/cytoscape.esm-r59gEWFs.js +18710 -0
- package/dist/dagre-BM42HDAG-BsXpQirH.js +445 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/diagram-2AECGRRQ-CamqbWlY.js +217 -0
- package/dist/diagram-5GNKFQAL-DZyRFcOC.js +123 -0
- package/dist/diagram-KO2AKTUF-CmkGcy7R.js +461 -0
- package/dist/diagram-LMA3HP47-IdDwQPZ-.js +142 -0
- package/dist/diagram-OG6HWLK6-t0LBcUIU.js +528 -0
- package/dist/erDiagram-TEJ5UH35-DJBY2iZG.js +899 -0
- package/dist/flowDiagram-I6XJVG4X-DE4MzPPk.js +1628 -0
- package/dist/ganttDiagram-6RSMTGT7-CmAc35Yw.js +2707 -0
- package/dist/gitGraphDiagram-PVQCEYII-DDQZ5flw.js +815 -0
- package/dist/graph-BsJ8-1Pq.js +1510 -0
- package/dist/index.js +110 -83
- package/dist/infoDiagram-5YYISTIA-DSZjFR5g.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-YF4QCWOH-DCO9dx2L.js +621 -0
- package/dist/journeyDiagram-JHISSGLW-b-PpuBqg.js +834 -0
- package/dist/kanban-definition-UN3LZRKU-BjclDuJZ.js +724 -0
- package/dist/katex-DNob3HGn.js +11690 -0
- package/dist/layout-D4wqKu72.js +1703 -0
- package/dist/linear-Voc3BJib.js +259 -0
- package/dist/mermaid.core-Dt_VbeGP.js +15940 -0
- package/dist/mindmap-definition-RKZ34NQL-B3vrXRVY.js +827 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/pieDiagram-4H26LBE5-DFpWxSxk.js +163 -0
- package/dist/quadrantDiagram-W4KKPZXB-BYHcrGoB.js +1024 -0
- package/dist/record.js +1199 -0
- package/dist/requirementDiagram-4Y6WPE33-C-FgWrRz.js +882 -0
- package/dist/sankeyDiagram-5OEKKPKP-IwN0Evji.js +847 -0
- package/dist/sequenceDiagram-3UESZ5HK-_OnqhBO2.js +2891 -0
- package/dist/stateDiagram-AJRCARHV-BRLv0Zcw.js +263 -0
- package/dist/stateDiagram-v2-BHNVJYJU-BofX0AdS.js +16 -0
- package/dist/timeline-definition-PNZ67QCA-C-DpPLpw.js +1055 -0
- package/dist/{useFieldRendering-xLajJhyA.js → useCodeBlockRendering-DoTZaJTW.js} +1528 -1725
- package/dist/useMonacoAutoHeight-D4T-El3J.js +66 -0
- package/dist/vennDiagram-CIIHVFJN-zTHQR9Oq.js +1557 -0
- package/dist/wardley-L42UT6IY-D7b2ujEZ.js +22512 -0
- package/dist/wardleyDiagram-YWT4CUSO-au5koizO.js +675 -0
- package/dist/xychartDiagram-2RQKCTM6-BNf12P8z.js +1342 -0
- package/package.json +13 -8
- package/src/__tests__/assigner-graph.test.ts +82 -0
- package/src/__tests__/assigner-runner-dependent-data.test.ts +32 -0
- package/src/__tests__/markdown-field.test.ts +150 -1
- package/src/__tests__/markdown-note-field.test.ts +86 -3
- package/src/__tests__/recorder-assigner-control.test.ts +993 -0
- package/src/__tests__/recorder-editor.test.ts +17 -0
- package/src/__tests__/recorder-markdown-assigner-integration.test.ts +49 -0
- package/src/__tests__/step-field.test.ts +47 -1
- package/src/__tests__/type-plugins.test.ts +1 -0
- package/src/__tests__/var-field-render.test.ts +806 -1
- package/src/components/AimdAssignerGraph.vue +816 -0
- package/src/components/AimdCodeField.vue +24 -5
- package/src/components/AimdMarkdownField.vue +556 -11
- package/src/components/AimdMarkdownNoteField.vue +241 -30
- package/src/components/AimdRecorder.vue +1619 -99
- package/src/components/AimdRecorderEditor.vue +276 -8
- package/src/components/AimdRecorderWysiwygFieldHost.vue +6 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +32 -0
- package/src/components/AimdStepCheckField.vue +82 -18
- package/src/components/AimdVarField.vue +694 -25
- package/src/components/AimdVarTableField.vue +325 -138
- package/src/components/icons/AimdAssignerCalculatorIcon.vue +18 -0
- package/src/components/icons/AimdAssignerCloudStatusIcon.vue +22 -0
- package/src/components/index.ts +9 -1
- package/src/components/recorderMilkdownPlugin.ts +14 -0
- package/src/composables/__tests__/useRecordState.test.ts +86 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +175 -0
- package/src/composables/index.ts +28 -1
- package/src/composables/useAssignerRunner.ts +376 -0
- package/src/composables/useCodeBlockRendering.ts +51 -0
- package/src/composables/useFieldRendering.ts +32 -4
- package/src/composables/useMonacoAutoHeight.ts +127 -0
- package/src/composables/useRecordState.ts +22 -3
- package/src/composables/useVarHelpers.ts +237 -32
- package/src/index.ts +20 -1
- package/src/locales.ts +45 -0
- package/src/record/index.ts +120 -0
- package/src/styles/aimd.css +216 -1
- package/src/type-plugins.ts +7 -0
- package/src/type-utils.ts +1 -3
- package/src/types.ts +130 -2
- package/dist/AimdCodeField-DC3DPvgc.js +0 -172
- package/dist/AimdMarkdownField-BJ20QtO8.js +0 -67
- package/dist/AimdMarkdownNoteField-DwAQhoyk.js +0 -186
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
AimdVarTableNode,
|
|
12
12
|
ExtractedAimdFields,
|
|
13
13
|
} from "@airalogy/aimd-core/types"
|
|
14
|
+
import { getAimdFieldEnumValues } from "@airalogy/aimd-core/utils"
|
|
14
15
|
import { parseAndExtract, renderToVue } from "@airalogy/aimd-renderer"
|
|
15
16
|
import type { AimdComponentRenderer } from "@airalogy/aimd-renderer"
|
|
16
17
|
import type { AimdRecorderMessagesInput } from "../locales"
|
|
@@ -20,9 +21,16 @@ import {
|
|
|
20
21
|
} from "../locales"
|
|
21
22
|
import type {
|
|
22
23
|
AimdChoiceOptionExplanationMode,
|
|
24
|
+
AimdAssignerMap,
|
|
25
|
+
AimdAssignerRunner,
|
|
26
|
+
AimdServerAssignerMap,
|
|
27
|
+
AimdServerAssignerRunner,
|
|
28
|
+
AimdFileInfoResolver,
|
|
29
|
+
AimdFileUploadHandler,
|
|
23
30
|
AimdFieldMeta,
|
|
24
31
|
AimdFieldState,
|
|
25
32
|
AimdRecorderFieldAdapters,
|
|
33
|
+
AimdRecorderFieldType,
|
|
26
34
|
AimdScaleGradeDisplayMode,
|
|
27
35
|
AimdTypePlugin,
|
|
28
36
|
AimdProtocolRecordData,
|
|
@@ -46,6 +54,17 @@ import {
|
|
|
46
54
|
normalizeVarTypeName,
|
|
47
55
|
normalizeDateTimeValueWithTimezone,
|
|
48
56
|
} from "../composables/useVarHelpers"
|
|
57
|
+
import {
|
|
58
|
+
applyAimdAssignedFieldsToRecord,
|
|
59
|
+
buildAimdAssignerDependentData,
|
|
60
|
+
extractAimdAssignerErrorMessage,
|
|
61
|
+
extractAimdAssignedFields,
|
|
62
|
+
getAimdAssignerPayloadFieldKey,
|
|
63
|
+
isReadonlyAimdAssignerMode,
|
|
64
|
+
normalizeAimdAssignerMode,
|
|
65
|
+
resolveAimdAssigners,
|
|
66
|
+
type AimdResolvedAssigner,
|
|
67
|
+
} from "../composables/useAssignerRunner"
|
|
49
68
|
import {
|
|
50
69
|
captureFocusSnapshot,
|
|
51
70
|
restoreFocusSnapshot,
|
|
@@ -56,6 +75,7 @@ import type { ClientAssignerFieldDefinitions } from "../client-assigner"
|
|
|
56
75
|
import { resolveAimdRecorderFieldVNode } from "../composables/useFieldAdapters"
|
|
57
76
|
import { useVarTableDragDrop, getVarTableColumns } from "../composables/useVarTableDragDrop"
|
|
58
77
|
import { useFieldRendering } from "../composables/useFieldRendering"
|
|
78
|
+
import { useCodeBlockRendering } from "../composables/useCodeBlockRendering"
|
|
59
79
|
import {
|
|
60
80
|
createEmptyCheckRecordItem,
|
|
61
81
|
createEmptyStepRecordItem,
|
|
@@ -73,6 +93,8 @@ import AimdVarField from "./AimdVarField.vue"
|
|
|
73
93
|
import AimdVarTableField from "./AimdVarTableField.vue"
|
|
74
94
|
import { AimdStepField, AimdCheckField } from "./AimdStepCheckField.vue"
|
|
75
95
|
import AimdQuizRecorder from "./AimdQuizRecorder.vue"
|
|
96
|
+
import AimdAssignerCalculatorIcon from "./icons/AimdAssignerCalculatorIcon.vue"
|
|
97
|
+
import AimdAssignerCloudStatusIcon from "./icons/AimdAssignerCloudStatusIcon.vue"
|
|
76
98
|
|
|
77
99
|
// ---------------------------------------------------------------------------
|
|
78
100
|
// Props & emits
|
|
@@ -105,6 +127,15 @@ const props = withDefaults(defineProps<{
|
|
|
105
127
|
*/
|
|
106
128
|
fieldMeta?: Record<string, AimdFieldMeta>
|
|
107
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Parsed protocol assigners keyed by assigned field name.
|
|
132
|
+
* The recorder turns these into buttons, dependency payloads, runtime states,
|
|
133
|
+
* and record writes while the host supplies the execution hook.
|
|
134
|
+
*/
|
|
135
|
+
serverAssigners?: AimdServerAssignerMap
|
|
136
|
+
/** @deprecated Use `serverAssigners` instead. */
|
|
137
|
+
assigners?: AimdAssignerMap
|
|
138
|
+
|
|
108
139
|
/**
|
|
109
140
|
* Per-field runtime state keyed by "section:fieldName".
|
|
110
141
|
* Drives loading / error / validationError styling.
|
|
@@ -132,9 +163,23 @@ const props = withDefaults(defineProps<{
|
|
|
132
163
|
|
|
133
164
|
/**
|
|
134
165
|
* Resolves relative paths / Airalogy file IDs to displayable URLs.
|
|
135
|
-
* Reserved for future file-type field support.
|
|
136
166
|
*/
|
|
137
167
|
resolveFile?: (src: string) => string | null
|
|
168
|
+
resolveFileInfo?: AimdFileInfoResolver
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Uploads file-like var selections. Return the record value to store,
|
|
172
|
+
* typically an Airalogy file ID or a structured file descriptor.
|
|
173
|
+
*/
|
|
174
|
+
uploadFile?: AimdFileUploadHandler
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Runs host-specific assigner execution. The recorder prepares dependencies
|
|
178
|
+
* and applies returned `assigned_fields`; this hook only performs the call.
|
|
179
|
+
*/
|
|
180
|
+
runServerAssigner?: AimdServerAssignerRunner
|
|
181
|
+
/** @deprecated Use `runServerAssigner` instead. */
|
|
182
|
+
assignerRunner?: AimdAssignerRunner
|
|
138
183
|
|
|
139
184
|
/**
|
|
140
185
|
* Type-level plugins for custom var types.
|
|
@@ -154,11 +199,17 @@ const props = withDefaults(defineProps<{
|
|
|
154
199
|
scaleGradeDisplayMode: "hidden",
|
|
155
200
|
stepDetailDisplay: "auto",
|
|
156
201
|
fieldMeta: undefined,
|
|
202
|
+
serverAssigners: undefined,
|
|
203
|
+
assigners: undefined,
|
|
157
204
|
fieldState: undefined,
|
|
158
205
|
wrapField: undefined,
|
|
159
206
|
customRenderers: undefined,
|
|
160
207
|
fieldAdapters: undefined,
|
|
161
208
|
resolveFile: undefined,
|
|
209
|
+
resolveFileInfo: undefined,
|
|
210
|
+
uploadFile: undefined,
|
|
211
|
+
runServerAssigner: undefined,
|
|
212
|
+
assignerRunner: undefined,
|
|
162
213
|
typePlugins: undefined,
|
|
163
214
|
})
|
|
164
215
|
|
|
@@ -206,10 +257,15 @@ let pendingFocusSnapshot: FocusSnapshot | null = null
|
|
|
206
257
|
let pendingInlineBuildRequestId: number | null = null
|
|
207
258
|
const timerNowMs = ref(Date.now())
|
|
208
259
|
let protocolTimerTicker: ReturnType<typeof setInterval> | null = null
|
|
260
|
+
const serverAssignerAbortControllers = new Map<string, AbortController>()
|
|
261
|
+
const autoServerAssignerSignatures = new Map<string, string>()
|
|
262
|
+
let autoServerAssignerScheduled = false
|
|
209
263
|
|
|
210
264
|
const resolvedLocale = computed(() => resolveAimdRecorderLocale(props.locale))
|
|
211
265
|
const resolvedMessages = computed(() => createAimdRecorderMessages(resolvedLocale.value, props.messages))
|
|
212
266
|
const resolvedTypePlugins = computed(() => createAimdTypePlugins(props.typePlugins))
|
|
267
|
+
const resolvedServerAssigners = computed(() => props.serverAssigners ?? props.assigners)
|
|
268
|
+
const resolvedRunServerAssigner = computed(() => props.runServerAssigner ?? props.assignerRunner)
|
|
213
269
|
|
|
214
270
|
const InlineNodesOutlet = defineComponent({
|
|
215
271
|
name: "AimdRecorderInlineNodesOutlet",
|
|
@@ -224,6 +280,8 @@ const InlineNodesOutlet = defineComponent({
|
|
|
224
280
|
},
|
|
225
281
|
})
|
|
226
282
|
|
|
283
|
+
type AssignableRecorderFieldType = Exclude<AimdRecorderFieldType, "quiz">
|
|
284
|
+
|
|
227
285
|
function applyFieldAdapter<TFieldType extends "var" | "var_table" | "step" | "check" | "quiz">(
|
|
228
286
|
fieldType: TFieldType,
|
|
229
287
|
fieldKey: string,
|
|
@@ -238,11 +296,194 @@ function applyFieldAdapter<TFieldType extends "var" | "var_table" | "step" | "ch
|
|
|
238
296
|
locale: resolvedLocale.value,
|
|
239
297
|
messages: resolvedMessages.value,
|
|
240
298
|
record: localRecord,
|
|
241
|
-
fieldMeta:
|
|
242
|
-
fieldState:
|
|
299
|
+
fieldMeta: effectiveFieldMeta.value,
|
|
300
|
+
fieldState: effectiveFieldState.value,
|
|
243
301
|
})
|
|
244
302
|
}
|
|
245
303
|
|
|
304
|
+
function getAssignerPayloadFieldKey(fieldType: AssignableRecorderFieldType, fieldKey: string): string {
|
|
305
|
+
return getAimdAssignerPayloadFieldKey(fieldType, fieldKey)
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function getManualClientAssignerForField(
|
|
309
|
+
fieldType: AssignableRecorderFieldType,
|
|
310
|
+
payloadFieldKey: string,
|
|
311
|
+
): AimdClientAssignerField | undefined {
|
|
312
|
+
if (fieldType !== "var") {
|
|
313
|
+
return undefined
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return clientAssigners.value.find(assigner => (
|
|
317
|
+
assigner.mode === "manual" && assigner.assigned_fields.includes(payloadFieldKey)
|
|
318
|
+
))
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface ResolvedAssignerControl {
|
|
322
|
+
fieldType: AssignableRecorderFieldType
|
|
323
|
+
fieldKey: string
|
|
324
|
+
payloadFieldKey: string
|
|
325
|
+
clientAssigner?: AimdClientAssignerField
|
|
326
|
+
serverAssigner?: AimdResolvedAssigner
|
|
327
|
+
serverRunKey?: string
|
|
328
|
+
state?: AimdFieldState
|
|
329
|
+
loading: boolean
|
|
330
|
+
disabled: boolean
|
|
331
|
+
label: string
|
|
332
|
+
titleTarget: string
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function resolveAssignerControl(
|
|
336
|
+
fieldType: AssignableRecorderFieldType,
|
|
337
|
+
fieldKey: string,
|
|
338
|
+
): ResolvedAssignerControl | null {
|
|
339
|
+
const meta = effectiveFieldMeta.value[fieldKey]
|
|
340
|
+
const payloadFieldKey = getAssignerPayloadFieldKey(fieldType, fieldKey)
|
|
341
|
+
const serverAssigner = serverAssignerByFieldKey.value[fieldKey]
|
|
342
|
+
?? serverAssignerByAssignedField.value[payloadFieldKey]
|
|
343
|
+
const clientAssigner = meta?.assigner || serverAssigner
|
|
344
|
+
? undefined
|
|
345
|
+
: getManualClientAssignerForField(fieldType, payloadFieldKey)
|
|
346
|
+
if ((!meta?.assigner && !clientAssigner && !serverAssigner) || props.readonly) {
|
|
347
|
+
return null
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
const state = effectiveFieldState.value[fieldKey]
|
|
351
|
+
const serverRunKey = serverAssigner ? getServerAssignerRunKey(serverAssigner) : undefined
|
|
352
|
+
const serverGroupLoading = Boolean(serverRunKey && serverAssignerAbortControllers.has(serverRunKey))
|
|
353
|
+
const loading = state?.loading === true || serverGroupLoading
|
|
354
|
+
const canCancelServerRun = Boolean(
|
|
355
|
+
serverAssigner
|
|
356
|
+
&& resolvedRunServerAssigner.value
|
|
357
|
+
&& serverRunKey
|
|
358
|
+
&& serverAssignerAbortControllers.has(serverRunKey),
|
|
359
|
+
)
|
|
360
|
+
const disabled = (loading && !canCancelServerRun) || state?.disabled === true
|
|
361
|
+
const label = canCancelServerRun
|
|
362
|
+
? resolvedMessages.value.assigner.cancel
|
|
363
|
+
: loading
|
|
364
|
+
? resolvedMessages.value.assigner.running
|
|
365
|
+
: resolvedMessages.value.assigner.run
|
|
366
|
+
const titleTarget = clientAssigner?.id ?? serverAssigner?.assignedField ?? payloadFieldKey
|
|
367
|
+
|
|
368
|
+
return {
|
|
369
|
+
fieldType,
|
|
370
|
+
fieldKey,
|
|
371
|
+
payloadFieldKey,
|
|
372
|
+
clientAssigner,
|
|
373
|
+
serverAssigner,
|
|
374
|
+
serverRunKey,
|
|
375
|
+
state,
|
|
376
|
+
loading,
|
|
377
|
+
disabled,
|
|
378
|
+
label,
|
|
379
|
+
titleTarget,
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function renderAssignerButton(control: ResolvedAssignerControl, value: unknown): VNode {
|
|
384
|
+
return h("button", {
|
|
385
|
+
type: "button",
|
|
386
|
+
class: "aimd-rec-assigner-field__button",
|
|
387
|
+
disabled: control.disabled,
|
|
388
|
+
"aria-label": `${control.label}: ${control.titleTarget}`,
|
|
389
|
+
onClick: (event: MouseEvent) => {
|
|
390
|
+
event.preventDefault()
|
|
391
|
+
event.stopPropagation()
|
|
392
|
+
if (control.loading) {
|
|
393
|
+
if (control.serverAssigner && resolvedRunServerAssigner.value) {
|
|
394
|
+
cancelServerAssigner(control.serverRunKey ?? control.fieldKey)
|
|
395
|
+
} else {
|
|
396
|
+
emit("assigner-cancel", {
|
|
397
|
+
section: control.fieldType,
|
|
398
|
+
fieldKey: control.payloadFieldKey,
|
|
399
|
+
value,
|
|
400
|
+
})
|
|
401
|
+
}
|
|
402
|
+
return
|
|
403
|
+
}
|
|
404
|
+
if (control.clientAssigner) {
|
|
405
|
+
clientAssignerRunner.triggerClientAssigner(control.clientAssigner.id)
|
|
406
|
+
return
|
|
407
|
+
}
|
|
408
|
+
if (control.serverAssigner && resolvedRunServerAssigner.value) {
|
|
409
|
+
void runServerAssigner(control.serverAssigner, control.fieldType, control.fieldKey)
|
|
410
|
+
return
|
|
411
|
+
}
|
|
412
|
+
emit("assigner-request", {
|
|
413
|
+
section: control.fieldType,
|
|
414
|
+
fieldKey: control.payloadFieldKey,
|
|
415
|
+
value,
|
|
416
|
+
})
|
|
417
|
+
},
|
|
418
|
+
title: `${resolvedMessages.value.assigner.run}: ${control.titleTarget}`,
|
|
419
|
+
}, [
|
|
420
|
+
control.loading
|
|
421
|
+
? h("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" })
|
|
422
|
+
: h(AimdAssignerCalculatorIcon),
|
|
423
|
+
h("span", { class: "aimd-rec-assigner-field__label" }, control.label),
|
|
424
|
+
])
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function renderAssignerCloudStatusIcon(control: ResolvedAssignerControl): VNode {
|
|
428
|
+
const statusClass = control.loading
|
|
429
|
+
? "loading"
|
|
430
|
+
: control.state?.error
|
|
431
|
+
? "error"
|
|
432
|
+
: control.state && control.state.loading === false
|
|
433
|
+
? "done"
|
|
434
|
+
: "idle"
|
|
435
|
+
|
|
436
|
+
if (statusClass === "loading") {
|
|
437
|
+
return h("span", {
|
|
438
|
+
class: ["aimd-rec-assigner-field__status", "aimd-rec-assigner-field__status--loading"],
|
|
439
|
+
title: control.label,
|
|
440
|
+
}, [
|
|
441
|
+
h("span", { class: "aimd-rec-assigner-field__status-spinner", "aria-hidden": "true" }),
|
|
442
|
+
])
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return h("span", {
|
|
446
|
+
class: ["aimd-rec-assigner-field__status", `aimd-rec-assigner-field__status--${statusClass}`],
|
|
447
|
+
title: statusClass === "done"
|
|
448
|
+
? control.titleTarget
|
|
449
|
+
: (control.state?.error || control.titleTarget),
|
|
450
|
+
}, [
|
|
451
|
+
h(AimdAssignerCloudStatusIcon, {
|
|
452
|
+
variant: statusClass === "done" ? "done" : "idle",
|
|
453
|
+
}),
|
|
454
|
+
])
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function withAssignerControl(
|
|
458
|
+
fieldType: AssignableRecorderFieldType,
|
|
459
|
+
fieldKey: string,
|
|
460
|
+
value: unknown,
|
|
461
|
+
defaultVNode: VNode,
|
|
462
|
+
): VNode {
|
|
463
|
+
const control = resolveAssignerControl(fieldType, fieldKey)
|
|
464
|
+
if (!control) {
|
|
465
|
+
return defaultVNode
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
const tag = fieldType === "var" ? "span" : "div"
|
|
469
|
+
|
|
470
|
+
return h(tag, {
|
|
471
|
+
class: [
|
|
472
|
+
"aimd-rec-assigner-field",
|
|
473
|
+
`aimd-rec-assigner-field--${fieldType}`,
|
|
474
|
+
control.loading ? "aimd-rec-assigner-field--loading" : undefined,
|
|
475
|
+
control.state?.error ? "aimd-rec-assigner-field--error" : undefined,
|
|
476
|
+
],
|
|
477
|
+
"data-rec-assigner-key": fieldKey,
|
|
478
|
+
}, [
|
|
479
|
+
renderAssignerButton(control, value),
|
|
480
|
+
h("span", { class: "aimd-rec-assigner-field__control" }, [defaultVNode]),
|
|
481
|
+
control.state?.error
|
|
482
|
+
? h("span", { class: "aimd-rec-assigner-field__error" }, control.state.error)
|
|
483
|
+
: null,
|
|
484
|
+
])
|
|
485
|
+
}
|
|
486
|
+
|
|
246
487
|
const EMPTY_FIELDS: ExtractedAimdFields = {
|
|
247
488
|
var: [],
|
|
248
489
|
var_definitions: [],
|
|
@@ -260,6 +501,7 @@ const EMPTY_FIELDS: ExtractedAimdFields = {
|
|
|
260
501
|
|
|
261
502
|
const extractedFields = ref<ExtractedAimdFields>(EMPTY_FIELDS)
|
|
262
503
|
const clientAssigners = ref<AimdClientAssignerField[]>([])
|
|
504
|
+
const internalAssignerFieldState = ref<Record<string, AimdFieldState>>({})
|
|
263
505
|
const clientAssignerFieldDefinitions = computed<ClientAssignerFieldDefinitions>(() => {
|
|
264
506
|
const definitions: ClientAssignerFieldDefinitions = {}
|
|
265
507
|
for (const field of extractedFields.value.var_definitions ?? []) {
|
|
@@ -270,6 +512,103 @@ const clientAssignerFieldDefinitions = computed<ClientAssignerFieldDefinitions>(
|
|
|
270
512
|
}
|
|
271
513
|
return definitions
|
|
272
514
|
})
|
|
515
|
+
const protocolAssignerEntries = computed(() => resolveAimdAssigners(resolvedServerAssigners.value, extractedFields.value))
|
|
516
|
+
const serverAssignerByFieldKey = computed(() => (
|
|
517
|
+
Object.fromEntries(protocolAssignerEntries.value.map(entry => [entry.fieldKey, entry]))
|
|
518
|
+
))
|
|
519
|
+
const serverAssignerByAssignedField = computed(() => (
|
|
520
|
+
Object.fromEntries(protocolAssignerEntries.value.map(entry => [entry.assignedField, entry]))
|
|
521
|
+
))
|
|
522
|
+
|
|
523
|
+
function createEnumOptions(values: unknown[]): NonNullable<AimdFieldMeta["enumOptions"]> {
|
|
524
|
+
return values.map(value => ({
|
|
525
|
+
label: String(value),
|
|
526
|
+
value,
|
|
527
|
+
}))
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
function mergeFieldMeta(
|
|
531
|
+
target: Record<string, AimdFieldMeta>,
|
|
532
|
+
fieldKey: string,
|
|
533
|
+
meta: AimdFieldMeta,
|
|
534
|
+
) {
|
|
535
|
+
target[fieldKey] = {
|
|
536
|
+
...target[fieldKey],
|
|
537
|
+
...meta,
|
|
538
|
+
assigner: meta.assigner ?? target[fieldKey]?.assigner,
|
|
539
|
+
disabled: meta.disabled ?? target[fieldKey]?.disabled,
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
const generatedEnumFieldMeta = computed<Record<string, AimdFieldMeta>>(() => {
|
|
544
|
+
const meta: Record<string, AimdFieldMeta> = {}
|
|
545
|
+
|
|
546
|
+
for (const field of extractedFields.value.var_definitions ?? []) {
|
|
547
|
+
const enumValues = getAimdFieldEnumValues(field)
|
|
548
|
+
if (enumValues.length > 0) {
|
|
549
|
+
mergeFieldMeta(meta, `var:${field.id}`, {
|
|
550
|
+
enumOptions: createEnumOptions(enumValues),
|
|
551
|
+
})
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
for (const table of extractedFields.value.var_table ?? []) {
|
|
556
|
+
for (const subvar of table.subvars ?? []) {
|
|
557
|
+
const enumValues = getAimdFieldEnumValues(subvar)
|
|
558
|
+
if (enumValues.length > 0) {
|
|
559
|
+
mergeFieldMeta(meta, `var_table:${table.id}:${subvar.id}`, {
|
|
560
|
+
enumOptions: createEnumOptions(enumValues),
|
|
561
|
+
})
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return meta
|
|
567
|
+
})
|
|
568
|
+
|
|
569
|
+
const generatedAssignerFieldMeta = computed<Record<string, AimdFieldMeta>>(() => {
|
|
570
|
+
const meta: Record<string, AimdFieldMeta> = {}
|
|
571
|
+
for (const entry of protocolAssignerEntries.value) {
|
|
572
|
+
meta[entry.fieldKey] = {
|
|
573
|
+
assigner: { mode: normalizeAimdAssignerMode(entry.mode) },
|
|
574
|
+
disabled: isReadonlyAimdAssignerMode(entry.mode) || undefined,
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
return meta
|
|
578
|
+
})
|
|
579
|
+
const effectiveFieldMeta = computed<Record<string, AimdFieldMeta>>(() => {
|
|
580
|
+
const next: Record<string, AimdFieldMeta> = {}
|
|
581
|
+
for (const [fieldKey, meta] of Object.entries(generatedEnumFieldMeta.value)) {
|
|
582
|
+
mergeFieldMeta(next, fieldKey, meta)
|
|
583
|
+
}
|
|
584
|
+
for (const [fieldKey, meta] of Object.entries(generatedAssignerFieldMeta.value)) {
|
|
585
|
+
mergeFieldMeta(next, fieldKey, meta)
|
|
586
|
+
}
|
|
587
|
+
for (const [fieldKey, meta] of Object.entries(props.fieldMeta ?? {})) {
|
|
588
|
+
mergeFieldMeta(next, fieldKey, meta)
|
|
589
|
+
}
|
|
590
|
+
return next
|
|
591
|
+
})
|
|
592
|
+
const effectiveFieldState = computed<Record<string, AimdFieldState>>(() => {
|
|
593
|
+
const keys = new Set([
|
|
594
|
+
...Object.keys(internalAssignerFieldState.value),
|
|
595
|
+
...Object.keys(props.fieldState ?? {}),
|
|
596
|
+
])
|
|
597
|
+
const next: Record<string, AimdFieldState> = {}
|
|
598
|
+
|
|
599
|
+
for (const key of keys) {
|
|
600
|
+
const internalState = internalAssignerFieldState.value[key]
|
|
601
|
+
const externalState = props.fieldState?.[key]
|
|
602
|
+
next[key] = {
|
|
603
|
+
...internalState,
|
|
604
|
+
...externalState,
|
|
605
|
+
loading: externalState?.loading ?? internalState?.loading,
|
|
606
|
+
error: externalState?.error ?? internalState?.error,
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
return next
|
|
611
|
+
})
|
|
273
612
|
const protocolEstimatedDurationMs = computed(() => getProtocolEstimatedDurationMs(extractedFields.value.step_hierarchy ?? []))
|
|
274
613
|
const protocolRecordedDurationMs = computed(() => getProtocolRecordedDurationMs(localRecord.step, timerNowMs.value))
|
|
275
614
|
const showProtocolTimingSummary = computed(() => protocolEstimatedDurationMs.value > 0 || protocolRecordedDurationMs.value > 0)
|
|
@@ -323,19 +662,288 @@ function scheduleInlineRebuild() {
|
|
|
323
662
|
})
|
|
324
663
|
}
|
|
325
664
|
|
|
665
|
+
const { preRenderer: codeBlockPreRenderer } = useCodeBlockRendering(scheduleInlineRebuild)
|
|
666
|
+
|
|
326
667
|
function markRecordChanged(options?: { rebuild?: boolean, runClientAssigners?: boolean }) {
|
|
327
|
-
const assignerChanged = options?.runClientAssigners ?
|
|
668
|
+
const assignerChanged = options?.runClientAssigners ? clientAssignerRunner.applyCurrentClientAssigners() : false
|
|
328
669
|
emitRecordUpdate()
|
|
329
670
|
if (options?.rebuild || assignerChanged) {
|
|
330
671
|
scheduleInlineRebuild()
|
|
331
672
|
}
|
|
673
|
+
scheduleAutoServerAssigners()
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
function setInternalAssignerStates(fieldKeys: Iterable<string>, patch: AimdFieldState) {
|
|
677
|
+
const nextState = { ...internalAssignerFieldState.value }
|
|
678
|
+
let changed = false
|
|
679
|
+
|
|
680
|
+
for (const fieldKey of fieldKeys) {
|
|
681
|
+
if (!fieldKey) continue
|
|
682
|
+
nextState[fieldKey] = {
|
|
683
|
+
...nextState[fieldKey],
|
|
684
|
+
...patch,
|
|
685
|
+
}
|
|
686
|
+
changed = true
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
if (!changed) {
|
|
690
|
+
return
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
internalAssignerFieldState.value = nextState
|
|
694
|
+
scheduleInlineRebuild()
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
function setInternalAssignerState(fieldKey: string, patch: AimdFieldState) {
|
|
698
|
+
setInternalAssignerStates([fieldKey], patch)
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
function cancelServerAssigner(fieldKey: string) {
|
|
702
|
+
serverAssignerAbortControllers.get(fieldKey)?.abort()
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
function getAssignableFieldTypeFromKey(fieldKey: string): AssignableRecorderFieldType {
|
|
706
|
+
if (fieldKey.startsWith("var_table:")) return "var_table"
|
|
707
|
+
if (fieldKey.startsWith("step:")) return "step"
|
|
708
|
+
if (fieldKey.startsWith("check:")) return "check"
|
|
709
|
+
return "var"
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function isAutoServerAssignerMode(mode: string): boolean {
|
|
713
|
+
const normalized = normalizeAimdAssignerMode(mode)
|
|
714
|
+
return normalized === "auto"
|
|
715
|
+
|| normalized === "auto_first"
|
|
716
|
+
|| normalized === "auto_force"
|
|
717
|
+
|| normalized === "auto_readonly"
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function getRecordValueForFieldKey(fieldKey: string): unknown {
|
|
721
|
+
if (fieldKey.startsWith("var_table:")) {
|
|
722
|
+
const [, tableName, ...columnParts] = fieldKey.split(":")
|
|
723
|
+
const rows = localRecord.var[tableName]
|
|
724
|
+
if (!Array.isArray(rows)) return rows
|
|
725
|
+
const columnName = columnParts.join(":")
|
|
726
|
+
return columnName
|
|
727
|
+
? rows.map(row => (row && typeof row === "object" && !Array.isArray(row) ? (row as Record<string, unknown>)[columnName] : undefined))
|
|
728
|
+
: rows
|
|
729
|
+
}
|
|
730
|
+
if (fieldKey.startsWith("step:")) return localRecord.step[fieldKey.slice("step:".length)]
|
|
731
|
+
if (fieldKey.startsWith("check:")) return localRecord.check[fieldKey.slice("check:".length)]
|
|
732
|
+
return localRecord.var[fieldKey.startsWith("var:") ? fieldKey.slice("var:".length) : fieldKey]
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
function isAutoServerValueReady(value: unknown): boolean {
|
|
736
|
+
return value !== undefined
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
function areAutoServerDependenciesReady(assigner: AimdResolvedAssigner, dependentData: Record<string, unknown>): boolean {
|
|
740
|
+
if (assigner.dependentFields.length === 0) {
|
|
741
|
+
return false
|
|
742
|
+
}
|
|
743
|
+
return assigner.dependentFields.every(field => (
|
|
744
|
+
Object.prototype.hasOwnProperty.call(dependentData, field)
|
|
745
|
+
&& isAutoServerValueReady(dependentData[field])
|
|
746
|
+
))
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
function shouldRunAutoFirstServerAssigner(assigner: AimdResolvedAssigner): boolean {
|
|
750
|
+
if (normalizeAimdAssignerMode(assigner.mode) !== "auto_first") {
|
|
751
|
+
return true
|
|
752
|
+
}
|
|
753
|
+
const currentValue = getRecordValueForFieldKey(assigner.fieldKey)
|
|
754
|
+
return currentValue === undefined || currentValue === ""
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
function getAutoServerAssignerGroupKey(assigner: AimdResolvedAssigner): string {
|
|
758
|
+
return JSON.stringify({
|
|
759
|
+
mode: normalizeAimdAssignerMode(assigner.mode),
|
|
760
|
+
dependentFields: assigner.dependentFields,
|
|
761
|
+
assigner: assigner.assigner,
|
|
762
|
+
})
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function getServerAssignerRunKey(assigner: AimdResolvedAssigner): string {
|
|
766
|
+
return getAutoServerAssignerGroupKey(assigner)
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function scheduleAutoServerAssigners() {
|
|
770
|
+
if (autoServerAssignerScheduled) {
|
|
771
|
+
return
|
|
772
|
+
}
|
|
773
|
+
autoServerAssignerScheduled = true
|
|
774
|
+
Promise.resolve().then(() => {
|
|
775
|
+
autoServerAssignerScheduled = false
|
|
776
|
+
void runAutoServerAssigners()
|
|
777
|
+
})
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
async function runAutoServerAssigners() {
|
|
781
|
+
if (props.readonly || !resolvedRunServerAssigner.value) {
|
|
782
|
+
return
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
const visitedGroups = new Set<string>()
|
|
786
|
+
for (const assigner of protocolAssignerEntries.value) {
|
|
787
|
+
if (!isAutoServerAssignerMode(assigner.mode)) {
|
|
788
|
+
continue
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
const groupKey = getServerAssignerRunKey(assigner)
|
|
792
|
+
if (visitedGroups.has(groupKey)) {
|
|
793
|
+
continue
|
|
794
|
+
}
|
|
795
|
+
visitedGroups.add(groupKey)
|
|
796
|
+
if (serverAssignerAbortControllers.has(groupKey)) {
|
|
797
|
+
continue
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
if (!shouldRunAutoFirstServerAssigner(assigner)) {
|
|
801
|
+
continue
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
const dependentData = buildAimdAssignerDependentData(localRecord, assigner)
|
|
805
|
+
if (!areAutoServerDependenciesReady(assigner, dependentData)) {
|
|
806
|
+
continue
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
const signature = JSON.stringify(dependentData)
|
|
810
|
+
if (autoServerAssignerSignatures.get(groupKey) === signature) {
|
|
811
|
+
continue
|
|
812
|
+
}
|
|
813
|
+
autoServerAssignerSignatures.set(groupKey, signature)
|
|
814
|
+
|
|
815
|
+
await runServerAssigner(
|
|
816
|
+
assigner,
|
|
817
|
+
getAssignableFieldTypeFromKey(assigner.fieldKey),
|
|
818
|
+
assigner.fieldKey,
|
|
819
|
+
)
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
function getAssignedFieldStateKey(assignedField: string): string {
|
|
824
|
+
const normalizedField = assignedField.trim()
|
|
825
|
+
if (!normalizedField) {
|
|
826
|
+
return ""
|
|
827
|
+
}
|
|
828
|
+
const mappedAssigner = serverAssignerByAssignedField.value[normalizedField]
|
|
829
|
+
if (mappedAssigner) {
|
|
830
|
+
return mappedAssigner.fieldKey
|
|
831
|
+
}
|
|
832
|
+
if (normalizedField.includes(".")) {
|
|
833
|
+
const [tableName, ...columnParts] = normalizedField.split(".")
|
|
834
|
+
return `var_table:${tableName}:${columnParts.join(".")}`
|
|
835
|
+
}
|
|
836
|
+
return `var:${normalizedField}`
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
function getDeclaredServerAssignerStateKeys(assigner: AimdResolvedAssigner, fallbackFieldKey: string): string[] {
|
|
840
|
+
const declaredFields = Array.isArray(assigner.assigner.assigned_fields)
|
|
841
|
+
? assigner.assigner.assigned_fields
|
|
842
|
+
: Array.isArray((assigner.assigner as { assignedFields?: unknown }).assignedFields)
|
|
843
|
+
? (assigner.assigner as { assignedFields: unknown[] }).assignedFields
|
|
844
|
+
: []
|
|
845
|
+
const stateKeys = new Set<string>([fallbackFieldKey])
|
|
846
|
+
for (const field of declaredFields) {
|
|
847
|
+
if (typeof field !== "string") continue
|
|
848
|
+
const stateKey = getAssignedFieldStateKey(field)
|
|
849
|
+
if (stateKey) {
|
|
850
|
+
stateKeys.add(stateKey)
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return [...stateKeys]
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
function getServerAssignerGroupStateKeys(assigner: AimdResolvedAssigner, fallbackFieldKey: string): string[] {
|
|
857
|
+
const groupKey = getServerAssignerRunKey(assigner)
|
|
858
|
+
const stateKeys = new Set<string>(getDeclaredServerAssignerStateKeys(assigner, fallbackFieldKey))
|
|
859
|
+
for (const entry of protocolAssignerEntries.value) {
|
|
860
|
+
if (getServerAssignerRunKey(entry) !== groupKey) {
|
|
861
|
+
continue
|
|
862
|
+
}
|
|
863
|
+
stateKeys.add(entry.fieldKey)
|
|
864
|
+
for (const stateKey of getDeclaredServerAssignerStateKeys(entry, entry.fieldKey)) {
|
|
865
|
+
stateKeys.add(stateKey)
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return [...stateKeys]
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
function getReturnedServerAssignerStateKeys(
|
|
872
|
+
assignedFields: Record<string, unknown>,
|
|
873
|
+
fallbackFieldKey: string,
|
|
874
|
+
): string[] {
|
|
875
|
+
const stateKeys = new Set<string>([fallbackFieldKey])
|
|
876
|
+
for (const field of Object.keys(assignedFields)) {
|
|
877
|
+
const stateKey = getAssignedFieldStateKey(field)
|
|
878
|
+
if (stateKey) {
|
|
879
|
+
stateKeys.add(stateKey)
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
return [...stateKeys]
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
async function runServerAssigner(
|
|
886
|
+
assigner: AimdResolvedAssigner,
|
|
887
|
+
fieldType: AssignableRecorderFieldType,
|
|
888
|
+
fieldKey: string,
|
|
889
|
+
) {
|
|
890
|
+
const runner = resolvedRunServerAssigner.value
|
|
891
|
+
if (!runner) return
|
|
892
|
+
|
|
893
|
+
const runKey = getServerAssignerRunKey(assigner)
|
|
894
|
+
const groupStateKeys = getServerAssignerGroupStateKeys(assigner, fieldKey)
|
|
895
|
+
serverAssignerAbortControllers.get(runKey)?.abort()
|
|
896
|
+
const abortController = new AbortController()
|
|
897
|
+
serverAssignerAbortControllers.set(runKey, abortController)
|
|
898
|
+
setInternalAssignerStates(groupStateKeys, { loading: true, error: undefined })
|
|
899
|
+
|
|
900
|
+
try {
|
|
901
|
+
const result = await runner({
|
|
902
|
+
section: fieldType,
|
|
903
|
+
fieldKey,
|
|
904
|
+
assignedField: assigner.assignedField,
|
|
905
|
+
dependentData: buildAimdAssignerDependentData(localRecord, assigner),
|
|
906
|
+
record: cloneRecordData(localRecord),
|
|
907
|
+
assigner: assigner.assigner,
|
|
908
|
+
signal: abortController.signal,
|
|
909
|
+
})
|
|
910
|
+
const errorMessage = extractAimdAssignerErrorMessage(result)
|
|
911
|
+
if (errorMessage) {
|
|
912
|
+
throw new Error(errorMessage)
|
|
913
|
+
}
|
|
914
|
+
const assignedFields = extractAimdAssignedFields(result)
|
|
915
|
+
const returnedStateKeys = getReturnedServerAssignerStateKeys(assignedFields, fieldKey)
|
|
916
|
+
const completedStateKeys = [...new Set([...groupStateKeys, ...returnedStateKeys])]
|
|
917
|
+
if (Object.keys(assignedFields).length > 0) {
|
|
918
|
+
applyAimdAssignedFieldsToRecord(localRecord, assignedFields)
|
|
919
|
+
markRecordChanged({ rebuild: true, runClientAssigners: true })
|
|
920
|
+
} else {
|
|
921
|
+
emitRecordUpdate()
|
|
922
|
+
}
|
|
923
|
+
if (serverAssignerAbortControllers.get(runKey) === abortController) {
|
|
924
|
+
setInternalAssignerStates(completedStateKeys, { loading: false, error: undefined })
|
|
925
|
+
}
|
|
926
|
+
} catch (error) {
|
|
927
|
+
if (abortController.signal.aborted) {
|
|
928
|
+
if (serverAssignerAbortControllers.get(runKey) === abortController) {
|
|
929
|
+
setInternalAssignerStates(groupStateKeys, { loading: false, error: undefined })
|
|
930
|
+
}
|
|
931
|
+
return
|
|
932
|
+
}
|
|
933
|
+
const message = error instanceof Error ? error.message : String(error)
|
|
934
|
+
setInternalAssignerStates(groupStateKeys, { loading: false, error: message })
|
|
935
|
+
} finally {
|
|
936
|
+
if (serverAssignerAbortControllers.get(runKey) === abortController) {
|
|
937
|
+
serverAssignerAbortControllers.delete(runKey)
|
|
938
|
+
}
|
|
939
|
+
}
|
|
332
940
|
}
|
|
333
941
|
|
|
334
942
|
// ---------------------------------------------------------------------------
|
|
335
943
|
// Composables
|
|
336
944
|
// ---------------------------------------------------------------------------
|
|
337
945
|
|
|
338
|
-
const
|
|
946
|
+
const clientAssignerRunner = useClientAssignerRunner({
|
|
339
947
|
readonly: () => props.readonly,
|
|
340
948
|
clientAssigners,
|
|
341
949
|
fieldDefinitions: () => clientAssignerFieldDefinitions.value,
|
|
@@ -358,8 +966,8 @@ const fieldRendering = useFieldRendering({
|
|
|
358
966
|
readonly: () => props.readonly,
|
|
359
967
|
currentUserName: () => props.currentUserName,
|
|
360
968
|
now: () => props.now,
|
|
361
|
-
fieldMeta: () =>
|
|
362
|
-
fieldState: () =>
|
|
969
|
+
fieldMeta: () => effectiveFieldMeta.value,
|
|
970
|
+
fieldState: () => effectiveFieldState.value,
|
|
363
971
|
typePlugins: () => resolvedTypePlugins.value,
|
|
364
972
|
wrapField: () => props.wrapField,
|
|
365
973
|
})
|
|
@@ -371,12 +979,22 @@ const fieldRendering = useFieldRendering({
|
|
|
371
979
|
function renderInlineVar(node: AimdVarNode): VNode {
|
|
372
980
|
const id = node.id
|
|
373
981
|
const fieldKey = `var:${id}`
|
|
374
|
-
const
|
|
982
|
+
const baseMeta = effectiveFieldMeta.value[fieldKey]
|
|
983
|
+
const nodeEnumValues = getAimdFieldEnumValues(node.definition)
|
|
984
|
+
const meta = nodeEnumValues.length > 0 && !baseMeta?.enumOptions
|
|
985
|
+
? {
|
|
986
|
+
...(baseMeta ?? {}),
|
|
987
|
+
enumOptions: createEnumOptions(nodeEnumValues),
|
|
988
|
+
}
|
|
989
|
+
: baseMeta
|
|
375
990
|
|
|
376
991
|
// 1. Custom renderer override
|
|
377
992
|
if (props.customRenderers?.var) {
|
|
378
993
|
const custom = props.customRenderers.var(node, {} as any, [])
|
|
379
|
-
if (custom)
|
|
994
|
+
if (custom) {
|
|
995
|
+
const assignerVNode = withAssignerControl("var", fieldKey, localRecord.var[id], custom as VNode)
|
|
996
|
+
return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], assignerVNode)
|
|
997
|
+
}
|
|
380
998
|
}
|
|
381
999
|
|
|
382
1000
|
const type = node.definition?.type || "str"
|
|
@@ -384,14 +1002,16 @@ function renderInlineVar(node: AimdVarNode): VNode {
|
|
|
384
1002
|
const inputKind = getVarInputKind(type, {
|
|
385
1003
|
inputType: meta?.inputType,
|
|
386
1004
|
codeLanguage: meta?.codeLanguage,
|
|
1005
|
+
kwargs: node.definition?.kwargs,
|
|
1006
|
+
fieldMeta: meta,
|
|
387
1007
|
typePlugin,
|
|
388
1008
|
})
|
|
389
|
-
const placeholder = meta?.placeholder ?? fieldRendering.getVarPlaceholder(node)
|
|
1009
|
+
const placeholder = meta?.placeholder ?? fieldRendering.getVarPlaceholder(node, meta)
|
|
390
1010
|
|
|
391
1011
|
function emitVarChange(value: unknown) {
|
|
392
1012
|
fieldRendering.clearVarInputDisplayOverride(id)
|
|
393
1013
|
localRecord.var[id] = value
|
|
394
|
-
markRecordChanged({ runClientAssigners: true })
|
|
1014
|
+
markRecordChanged({ rebuild: inputKind === "file", runClientAssigners: true })
|
|
395
1015
|
emit("field-change", { section: "var", fieldKey: id, value })
|
|
396
1016
|
}
|
|
397
1017
|
|
|
@@ -437,8 +1057,14 @@ function renderInlineVar(node: AimdVarNode): VNode {
|
|
|
437
1057
|
)
|
|
438
1058
|
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
439
1059
|
const extraClasses = fieldRendering.fieldStateClasses(fieldKey)
|
|
1060
|
+
const canUseInternalAssignerControl = Boolean(meta?.enumOptions?.length)
|
|
1061
|
+
|| ["number", "date", "datetime", "time", "text", "textarea", "checkbox", "file", "code"].includes(inputKind)
|
|
1062
|
+
const fieldAssignerControl = resolveAssignerControl("var", fieldKey)
|
|
1063
|
+
const internalAssignerControl = canUseInternalAssignerControl ? fieldAssignerControl : null
|
|
440
1064
|
|
|
441
1065
|
if (typePlugin?.renderField) {
|
|
1066
|
+
const pluginSupportsInternalAssignerControl = typePlugin.supportsInlineAssignerControl === true
|
|
1067
|
+
const pluginAssignerControl = pluginSupportsInternalAssignerControl ? fieldAssignerControl : null
|
|
442
1068
|
const pluginVNode = typePlugin.renderField({
|
|
443
1069
|
type,
|
|
444
1070
|
normalizedType: normalizeVarTypeName(type),
|
|
@@ -457,13 +1083,26 @@ function renderInlineVar(node: AimdVarNode): VNode {
|
|
|
457
1083
|
displayValue,
|
|
458
1084
|
extraClasses,
|
|
459
1085
|
placeholder,
|
|
460
|
-
fieldState:
|
|
1086
|
+
fieldState: effectiveFieldState.value[fieldKey],
|
|
1087
|
+
assignerControl: pluginAssignerControl
|
|
1088
|
+
? renderAssignerButton(pluginAssignerControl, localRecord.var[id])
|
|
1089
|
+
: undefined,
|
|
1090
|
+
assignerStatus: pluginAssignerControl
|
|
1091
|
+
? renderAssignerCloudStatusIcon(pluginAssignerControl)
|
|
1092
|
+
: undefined,
|
|
1093
|
+
assignerError: pluginAssignerControl?.state?.error,
|
|
1094
|
+
uploadFile: props.uploadFile,
|
|
1095
|
+
resolveFile: props.resolveFile,
|
|
1096
|
+
resolveFileInfo: props.resolveFileInfo,
|
|
461
1097
|
emitChange: emitVarChange,
|
|
462
1098
|
emitBlur: emitVarBlur,
|
|
463
1099
|
})
|
|
464
1100
|
|
|
465
1101
|
if (pluginVNode) {
|
|
466
|
-
|
|
1102
|
+
const assignerVNode = pluginAssignerControl
|
|
1103
|
+
? pluginVNode
|
|
1104
|
+
: withAssignerControl("var", fieldKey, localRecord.var[id], pluginVNode)
|
|
1105
|
+
return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], assignerVNode)
|
|
467
1106
|
}
|
|
468
1107
|
}
|
|
469
1108
|
|
|
@@ -478,13 +1117,26 @@ function renderInlineVar(node: AimdVarNode): VNode {
|
|
|
478
1117
|
inputKind,
|
|
479
1118
|
typePlugin,
|
|
480
1119
|
initialized: id in localRecord.var,
|
|
1120
|
+
assignerControl: internalAssignerControl
|
|
1121
|
+
? renderAssignerButton(internalAssignerControl, localRecord.var[id])
|
|
1122
|
+
: undefined,
|
|
1123
|
+
assignerStatus: internalAssignerControl
|
|
1124
|
+
? renderAssignerCloudStatusIcon(internalAssignerControl)
|
|
1125
|
+
: undefined,
|
|
1126
|
+
assignerError: internalAssignerControl?.state?.error,
|
|
1127
|
+
uploadFile: props.uploadFile,
|
|
1128
|
+
resolveFile: props.resolveFile,
|
|
1129
|
+
resolveFileInfo: props.resolveFileInfo,
|
|
481
1130
|
onChange: (payload: { id: string, value: unknown, type: string, inputKind: string }) => {
|
|
482
1131
|
emitVarChange(payload.value)
|
|
483
1132
|
},
|
|
484
1133
|
onBlur: () => emitVarBlur(),
|
|
485
1134
|
})
|
|
486
1135
|
|
|
487
|
-
|
|
1136
|
+
const assignerVNode = internalAssignerControl
|
|
1137
|
+
? vnode
|
|
1138
|
+
: withAssignerControl("var", fieldKey, localRecord.var[id], vnode)
|
|
1139
|
+
return applyFieldAdapter("var", fieldKey, node, localRecord.var[id], assignerVNode)
|
|
488
1140
|
}
|
|
489
1141
|
|
|
490
1142
|
function renderInlineVarTable(node: AimdVarTableNode): VNode {
|
|
@@ -493,7 +1145,8 @@ function renderInlineVarTable(node: AimdVarTableNode): VNode {
|
|
|
493
1145
|
const columns = getVarTableColumns(node)
|
|
494
1146
|
const rows = tableDragDrop.ensureVarTableRows(tableName, columns)
|
|
495
1147
|
const disabled = fieldRendering.isFieldDisabled(fieldKey)
|
|
496
|
-
const disabledColumns = columns.filter(column => !!
|
|
1148
|
+
const disabledColumns = columns.filter(column => !!effectiveFieldMeta.value[`var_table:${tableName}:${column}`]?.disabled)
|
|
1149
|
+
const tableAssignerControl = resolveAssignerControl("var_table", fieldKey)
|
|
497
1150
|
|
|
498
1151
|
const vnode = h(AimdVarTableField, {
|
|
499
1152
|
node,
|
|
@@ -503,8 +1156,15 @@ function renderInlineVarTable(node: AimdVarTableNode): VNode {
|
|
|
503
1156
|
readonly: props.readonly,
|
|
504
1157
|
settlingRowKey: tableDragDrop.getSettlingVarTableRowKey(),
|
|
505
1158
|
messages: resolvedMessages.value,
|
|
506
|
-
fieldMeta:
|
|
507
|
-
fieldState:
|
|
1159
|
+
fieldMeta: effectiveFieldMeta.value,
|
|
1160
|
+
fieldState: effectiveFieldState.value,
|
|
1161
|
+
assignerControl: tableAssignerControl
|
|
1162
|
+
? renderAssignerButton(tableAssignerControl, rows)
|
|
1163
|
+
: undefined,
|
|
1164
|
+
assignerStatus: tableAssignerControl
|
|
1165
|
+
? renderAssignerCloudStatusIcon(tableAssignerControl)
|
|
1166
|
+
: undefined,
|
|
1167
|
+
assignerError: tableAssignerControl?.state?.error,
|
|
508
1168
|
onCellInput: (payload: { tableName: string, column: string, rowIndex: number, value: string, row: Record<string, string> }) => {
|
|
509
1169
|
payload.row[payload.column] = payload.value
|
|
510
1170
|
markRecordChanged({ runClientAssigners: true })
|
|
@@ -571,7 +1231,10 @@ function renderInlineVarTable(node: AimdVarTableNode): VNode {
|
|
|
571
1231
|
},
|
|
572
1232
|
})
|
|
573
1233
|
|
|
574
|
-
|
|
1234
|
+
const assignerVNode = tableAssignerControl
|
|
1235
|
+
? vnode
|
|
1236
|
+
: withAssignerControl("var_table", fieldKey, rows, vnode)
|
|
1237
|
+
return applyFieldAdapter("var_table", fieldKey, node, rows, assignerVNode)
|
|
575
1238
|
}
|
|
576
1239
|
|
|
577
1240
|
function isGroupedStepBodyNode(node: unknown): node is VNode {
|
|
@@ -773,7 +1436,8 @@ function renderInlineStep(node: AimdStepNode, bodyNodes: VNodeChild[] = []): VNo
|
|
|
773
1436
|
},
|
|
774
1437
|
})
|
|
775
1438
|
|
|
776
|
-
|
|
1439
|
+
const assignerVNode = withAssignerControl("step", fieldKey, state, vnode)
|
|
1440
|
+
return applyFieldAdapter("step", fieldKey, node, state, assignerVNode)
|
|
777
1441
|
}
|
|
778
1442
|
|
|
779
1443
|
function renderInlineCheck(node: AimdCheckNode, bodyNodes: VNodeChild[] = []): VNode {
|
|
@@ -812,7 +1476,8 @@ function renderInlineCheck(node: AimdCheckNode, bodyNodes: VNodeChild[] = []): V
|
|
|
812
1476
|
},
|
|
813
1477
|
})
|
|
814
1478
|
|
|
815
|
-
|
|
1479
|
+
const assignerVNode = withAssignerControl("check", fieldKey, state, vnode)
|
|
1480
|
+
return applyFieldAdapter("check", fieldKey, node, state, assignerVNode)
|
|
816
1481
|
}
|
|
817
1482
|
|
|
818
1483
|
function renderInlineQuiz(node: AimdQuizNode): VNode {
|
|
@@ -882,6 +1547,9 @@ async function rebuildInlineNodes(
|
|
|
882
1547
|
value: localRecord as Record<string, Record<string, unknown>>,
|
|
883
1548
|
},
|
|
884
1549
|
blockVarTypes: ["AiralogyMarkdown"],
|
|
1550
|
+
elementRenderers: {
|
|
1551
|
+
pre: codeBlockPreRenderer,
|
|
1552
|
+
},
|
|
885
1553
|
aimdRenderers: {
|
|
886
1554
|
var: node => renderInlineVar(node as AimdVarNode),
|
|
887
1555
|
var_table: node => renderInlineVarTable(node as AimdVarTableNode),
|
|
@@ -908,6 +1576,7 @@ async function rebuildInlineNodes(
|
|
|
908
1576
|
async function parseAndBuild() {
|
|
909
1577
|
const currentRequestId = ++buildRequestId
|
|
910
1578
|
const currentInlineRequestId = ++inlineBuildRequestId
|
|
1579
|
+
autoServerAssignerSignatures.clear()
|
|
911
1580
|
try {
|
|
912
1581
|
renderError.value = ""
|
|
913
1582
|
const extracted = parseAndExtract(props.content || "")
|
|
@@ -918,12 +1587,13 @@ async function parseAndBuild() {
|
|
|
918
1587
|
emit("fields-change", extracted)
|
|
919
1588
|
|
|
920
1589
|
const defaultsChanged = ensureDefaultsFromFields(localRecord, extracted)
|
|
921
|
-
const assignerChanged =
|
|
1590
|
+
const assignerChanged = clientAssignerRunner.applyCurrentClientAssigners()
|
|
922
1591
|
if (defaultsChanged || assignerChanged) {
|
|
923
1592
|
emitRecordUpdate()
|
|
924
1593
|
}
|
|
925
1594
|
|
|
926
1595
|
await rebuildInlineNodes(currentRequestId, undefined, currentInlineRequestId)
|
|
1596
|
+
scheduleAutoServerAssigners()
|
|
927
1597
|
} catch (error) {
|
|
928
1598
|
if (currentRequestId !== buildRequestId) {
|
|
929
1599
|
return
|
|
@@ -952,13 +1622,14 @@ watch(
|
|
|
952
1622
|
syncingFromExternal = true
|
|
953
1623
|
applyIncomingRecord(localRecord, value)
|
|
954
1624
|
syncingFromExternal = false
|
|
955
|
-
const assignerChanged =
|
|
1625
|
+
const assignerChanged = clientAssignerRunner.applyCurrentClientAssigners()
|
|
956
1626
|
if (assignerChanged) {
|
|
957
1627
|
emitRecordUpdate()
|
|
958
1628
|
}
|
|
959
1629
|
if (shouldRebuild || assignerChanged) {
|
|
960
1630
|
scheduleInlineRebuild()
|
|
961
1631
|
}
|
|
1632
|
+
scheduleAutoServerAssigners()
|
|
962
1633
|
},
|
|
963
1634
|
{ deep: true, immediate: true },
|
|
964
1635
|
)
|
|
@@ -980,6 +1651,29 @@ watch(
|
|
|
980
1651
|
{ immediate: true, deep: true },
|
|
981
1652
|
)
|
|
982
1653
|
|
|
1654
|
+
watch(
|
|
1655
|
+
() => ({
|
|
1656
|
+
readonly: props.readonly,
|
|
1657
|
+
currentUserName: props.currentUserName,
|
|
1658
|
+
now: props.now,
|
|
1659
|
+
fieldMeta: props.fieldMeta,
|
|
1660
|
+
fieldState: props.fieldState,
|
|
1661
|
+
serverAssigners: props.serverAssigners,
|
|
1662
|
+
assigners: props.assigners,
|
|
1663
|
+
runServerAssigner: props.runServerAssigner,
|
|
1664
|
+
assignerRunner: props.assignerRunner,
|
|
1665
|
+
stepDetailDisplay: props.stepDetailDisplay,
|
|
1666
|
+
customRenderers: props.customRenderers,
|
|
1667
|
+
fieldAdapters: props.fieldAdapters,
|
|
1668
|
+
typePlugins: props.typePlugins,
|
|
1669
|
+
}),
|
|
1670
|
+
() => {
|
|
1671
|
+
scheduleInlineRebuild()
|
|
1672
|
+
scheduleAutoServerAssigners()
|
|
1673
|
+
},
|
|
1674
|
+
{ deep: true },
|
|
1675
|
+
)
|
|
1676
|
+
|
|
983
1677
|
watch(
|
|
984
1678
|
() => props.quizGrades,
|
|
985
1679
|
() => {
|
|
@@ -1010,14 +1704,18 @@ watch(
|
|
|
1010
1704
|
)
|
|
1011
1705
|
|
|
1012
1706
|
onBeforeUnmount(() => {
|
|
1707
|
+
for (const controller of serverAssignerAbortControllers.values()) {
|
|
1708
|
+
controller.abort()
|
|
1709
|
+
}
|
|
1710
|
+
serverAssignerAbortControllers.clear()
|
|
1013
1711
|
if (protocolTimerTicker) {
|
|
1014
1712
|
clearInterval(protocolTimerTicker)
|
|
1015
1713
|
}
|
|
1016
1714
|
})
|
|
1017
1715
|
|
|
1018
1716
|
defineExpose({
|
|
1019
|
-
runClientAssigner:
|
|
1020
|
-
runManualClientAssigners:
|
|
1717
|
+
runClientAssigner: clientAssignerRunner.triggerClientAssigner,
|
|
1718
|
+
runManualClientAssigners: clientAssignerRunner.triggerManualClientAssigners,
|
|
1021
1719
|
})
|
|
1022
1720
|
</script>
|
|
1023
1721
|
|
|
@@ -1057,9 +1755,11 @@ defineExpose({
|
|
|
1057
1755
|
--rec-border: #e3e8ef;
|
|
1058
1756
|
--rec-focus: #2f6fed;
|
|
1059
1757
|
--rec-error: #e03050;
|
|
1758
|
+
--rec-body-font-size: 14px;
|
|
1060
1759
|
--rec-var-control-height: 30px;
|
|
1061
|
-
--rec-var-
|
|
1062
|
-
--rec-var-
|
|
1760
|
+
--rec-var-value-font-size: var(--rec-body-font-size);
|
|
1761
|
+
--rec-var-single-line-height: 1.4;
|
|
1762
|
+
--rec-var-text-wrap-line-height: 1.4;
|
|
1063
1763
|
}
|
|
1064
1764
|
|
|
1065
1765
|
.aimd-protocol-recorder__error {
|
|
@@ -1105,6 +1805,7 @@ defineExpose({
|
|
|
1105
1805
|
background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
|
|
1106
1806
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
1107
1807
|
color: var(--rec-text);
|
|
1808
|
+
font-size: var(--rec-body-font-size);
|
|
1108
1809
|
line-height: 1.7;
|
|
1109
1810
|
}
|
|
1110
1811
|
|
|
@@ -1128,7 +1829,49 @@ defineExpose({
|
|
|
1128
1829
|
.aimd-protocol-recorder__content :deep(td) { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
|
|
1129
1830
|
.aimd-protocol-recorder__content :deep(th) { background: #f8fafc; }
|
|
1130
1831
|
.aimd-protocol-recorder__content :deep(blockquote) { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #d8dee8; color: #666; background: #fafbfc; }
|
|
1131
|
-
.aimd-protocol-recorder__content :deep(code) { background: #f0f2f5; border-radius: 4px; padding: 2px 5px; }
|
|
1832
|
+
.aimd-protocol-recorder__content :deep(:not(pre) > code) { background: #f0f2f5; border-radius: 4px; padding: 2px 5px; }
|
|
1833
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block) {
|
|
1834
|
+
max-width: 100%;
|
|
1835
|
+
overflow: hidden;
|
|
1836
|
+
margin: 12px 0;
|
|
1837
|
+
padding: 0;
|
|
1838
|
+
border: 1px solid #d8e1ee;
|
|
1839
|
+
border-radius: 8px;
|
|
1840
|
+
background: #f8fafc;
|
|
1841
|
+
color: #0f172a;
|
|
1842
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
1843
|
+
font-size: 13px;
|
|
1844
|
+
line-height: 1.58;
|
|
1845
|
+
white-space: normal;
|
|
1846
|
+
}
|
|
1847
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block__code) {
|
|
1848
|
+
display: block;
|
|
1849
|
+
padding: 10px 0;
|
|
1850
|
+
border-radius: 0;
|
|
1851
|
+
background: transparent;
|
|
1852
|
+
}
|
|
1853
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block__line) {
|
|
1854
|
+
display: grid;
|
|
1855
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1856
|
+
column-gap: 12px;
|
|
1857
|
+
padding-right: 12px;
|
|
1858
|
+
}
|
|
1859
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block__line-number) {
|
|
1860
|
+
min-width: 3ch;
|
|
1861
|
+
padding-left: 12px;
|
|
1862
|
+
color: #94a3b8;
|
|
1863
|
+
text-align: right;
|
|
1864
|
+
user-select: none;
|
|
1865
|
+
}
|
|
1866
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block__line-code) {
|
|
1867
|
+
min-width: 0;
|
|
1868
|
+
white-space: pre-wrap;
|
|
1869
|
+
overflow-wrap: anywhere;
|
|
1870
|
+
}
|
|
1871
|
+
.aimd-protocol-recorder__content :deep(.aimd-code-block--wrap .aimd-code-block__line-code) {
|
|
1872
|
+
padding-left: var(--aimd-code-wrap-indent, 0ch);
|
|
1873
|
+
text-indent: calc(-1 * var(--aimd-code-wrap-indent, 0ch));
|
|
1874
|
+
}
|
|
1132
1875
|
|
|
1133
1876
|
/* ── Field base ─────────────────────────────────────────────────────────── */
|
|
1134
1877
|
.aimd-protocol-recorder__content :deep(.aimd-field) {
|
|
@@ -1145,46 +1888,195 @@ defineExpose({
|
|
|
1145
1888
|
text-transform: lowercase;
|
|
1146
1889
|
}
|
|
1147
1890
|
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--var .aimd-field__scope) { background: #dceaff; color: #255eab; }
|
|
1151
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--step) { background: #fff9ef; border-color: #f4d9a8; color: #9a5800; }
|
|
1152
|
-
.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; }
|
|
1153
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--check) { background: #fffafa; border-color: rgba(185, 28, 28, 0.2); color: #2b3443; padding: 3px 8px; }
|
|
1154
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--check .aimd-field__scope) { background: #fee2e2; color: #991b1b; }
|
|
1155
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--check.aimd-rec-inline--check-passed) { background: #f6fdf9; border-color: rgba(22, 101, 52, 0.22); color: #1f3d2a; }
|
|
1156
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--check.aimd-rec-inline--check-passed .aimd-field__scope) { background: #dcfce7; color: #166534; }
|
|
1157
|
-
.aimd-protocol-recorder__content :deep(.aimd-field--var-table) {
|
|
1158
|
-
display: block;
|
|
1159
|
-
width: 100%;
|
|
1891
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field) {
|
|
1892
|
+
display: inline-flex;
|
|
1160
1893
|
max-width: 100%;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
color: #334155;
|
|
1165
|
-
border-radius: 16px;
|
|
1166
|
-
padding: 12px 14px;
|
|
1167
|
-
box-shadow:
|
|
1168
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.92),
|
|
1169
|
-
0 8px 24px rgba(15, 23, 42, 0.025);
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
gap: 0;
|
|
1896
|
+
vertical-align: middle;
|
|
1170
1897
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1898
|
+
|
|
1899
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field--var) {
|
|
1900
|
+
align-items: flex-end;
|
|
1174
1901
|
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1902
|
+
|
|
1903
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field--var_table),
|
|
1904
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field--step),
|
|
1905
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field--check) {
|
|
1906
|
+
display: flex;
|
|
1907
|
+
align-items: flex-start;
|
|
1177
1908
|
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1909
|
+
|
|
1910
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__control) {
|
|
1911
|
+
min-width: 0;
|
|
1912
|
+
flex: 1 1 auto;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field--var .aimd-rec-assigner-field__control) {
|
|
1916
|
+
flex: 0 1 auto;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__button) {
|
|
1920
|
+
display: inline-flex;
|
|
1921
|
+
flex: 0 0 auto;
|
|
1922
|
+
width: 30px;
|
|
1923
|
+
min-width: 30px;
|
|
1924
|
+
height: 34px;
|
|
1925
|
+
min-height: 34px;
|
|
1926
|
+
align-items: center;
|
|
1927
|
+
justify-content: center;
|
|
1928
|
+
padding: 0;
|
|
1929
|
+
border: 1px solid #2563eb;
|
|
1930
|
+
border-radius: 7px 0 0 7px;
|
|
1931
|
+
margin-right: -1px;
|
|
1932
|
+
background: #2563eb;
|
|
1933
|
+
color: #ffffff;
|
|
1934
|
+
cursor: pointer;
|
|
1935
|
+
font-size: 17px;
|
|
1936
|
+
line-height: 1;
|
|
1937
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
|
1938
|
+
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__button:hover:not(:disabled)) {
|
|
1942
|
+
border-color: #1d4ed8;
|
|
1943
|
+
background: #1d4ed8;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__button:focus-visible) {
|
|
1947
|
+
outline: 2px solid rgba(37, 99, 235, 0.35);
|
|
1948
|
+
outline-offset: 2px;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__button:disabled) {
|
|
1952
|
+
cursor: not-allowed;
|
|
1953
|
+
opacity: 0.7;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__icon) {
|
|
1957
|
+
display: block;
|
|
1958
|
+
width: 1em;
|
|
1959
|
+
height: 1em;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__label) {
|
|
1963
|
+
position: absolute;
|
|
1964
|
+
width: 1px;
|
|
1965
|
+
height: 1px;
|
|
1966
|
+
margin: -1px;
|
|
1967
|
+
padding: 0;
|
|
1968
|
+
overflow: hidden;
|
|
1969
|
+
clip: rect(0, 0, 0, 0);
|
|
1970
|
+
white-space: nowrap;
|
|
1971
|
+
border: 0;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__spinner) {
|
|
1975
|
+
width: 15px;
|
|
1976
|
+
height: 15px;
|
|
1977
|
+
border: 2px solid rgba(255, 255, 255, 0.38);
|
|
1978
|
+
border-top-color: #ffffff;
|
|
1979
|
+
border-radius: 999px;
|
|
1980
|
+
animation: aimd-rec-assigner-spin 0.75s linear infinite;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__error) {
|
|
1984
|
+
min-width: 0;
|
|
1985
|
+
margin-left: 8px;
|
|
1986
|
+
color: #b42318;
|
|
1987
|
+
font-size: 12px;
|
|
1988
|
+
line-height: 1.35;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
@keyframes aimd-rec-assigner-spin {
|
|
1992
|
+
to {
|
|
1993
|
+
transform: rotate(360deg);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
/* ── Field colours ──────────────────────────────────────────────────────── */
|
|
1998
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var) { background: #f3f8ff; border-color: #c9dcff; color: #1c4e90; }
|
|
1999
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var .aimd-field__scope) { background: #dceaff; color: #255eab; }
|
|
2000
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--step) { background: #fff9ef; border-color: #f4d9a8; color: #9a5800; }
|
|
2001
|
+
.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; }
|
|
2002
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check) { background: #fffafa; border-color: rgba(185, 28, 28, 0.2); color: #2b3443; padding: 3px 8px; }
|
|
2003
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check .aimd-field__scope) { background: #fee2e2; color: #991b1b; }
|
|
2004
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check.aimd-rec-inline--check-passed) { background: #f6fdf9; border-color: rgba(22, 101, 52, 0.22); color: #1f3d2a; }
|
|
2005
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--check.aimd-rec-inline--check-passed .aimd-field__scope) { background: #dcfce7; color: #166534; }
|
|
2006
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table) {
|
|
2007
|
+
display: block;
|
|
2008
|
+
width: 100%;
|
|
2009
|
+
max-width: 100%;
|
|
2010
|
+
box-sizing: border-box;
|
|
2011
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 252, 251, 0.98) 100%);
|
|
2012
|
+
border: 1px solid #dee7df;
|
|
2013
|
+
color: #334155;
|
|
2014
|
+
border-radius: 16px;
|
|
2015
|
+
padding: 12px 14px;
|
|
2016
|
+
box-shadow:
|
|
2017
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.92),
|
|
2018
|
+
0 8px 24px rgba(15, 23, 42, 0.025);
|
|
2019
|
+
}
|
|
2020
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__scope) {
|
|
2021
|
+
background: #edf6ee;
|
|
2022
|
+
color: #446a4f;
|
|
2023
|
+
}
|
|
2024
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__name) {
|
|
2025
|
+
color: #1f2937;
|
|
2026
|
+
}
|
|
2027
|
+
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__header) {
|
|
2028
|
+
display: flex;
|
|
2029
|
+
align-items: center;
|
|
2030
|
+
gap: 8px;
|
|
2031
|
+
flex-wrap: wrap;
|
|
2032
|
+
width: 100%;
|
|
2033
|
+
max-width: 100%;
|
|
1182
2034
|
}
|
|
1183
2035
|
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-field__table-preview),
|
|
1184
2036
|
.aimd-protocol-recorder__content :deep(.aimd-field--var-table .aimd-rec-card-list) {
|
|
1185
2037
|
width: 100%;
|
|
1186
2038
|
max-width: 100%;
|
|
1187
2039
|
}
|
|
2040
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-actions) {
|
|
2041
|
+
display: inline-flex;
|
|
2042
|
+
flex: 0 0 auto;
|
|
2043
|
+
align-items: center;
|
|
2044
|
+
gap: 4px;
|
|
2045
|
+
margin-left: auto;
|
|
2046
|
+
}
|
|
2047
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-action),
|
|
2048
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-state) {
|
|
2049
|
+
display: inline-flex;
|
|
2050
|
+
align-items: center;
|
|
2051
|
+
justify-content: center;
|
|
2052
|
+
}
|
|
2053
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-action .aimd-rec-assigner-field__button) {
|
|
2054
|
+
width: 30px;
|
|
2055
|
+
min-width: 30px;
|
|
2056
|
+
height: 26px;
|
|
2057
|
+
min-height: 26px;
|
|
2058
|
+
border: 0 none;
|
|
2059
|
+
border-radius: 6px;
|
|
2060
|
+
margin: 0;
|
|
2061
|
+
background: #edf6ff;
|
|
2062
|
+
color: #1976d2;
|
|
2063
|
+
box-shadow: none;
|
|
2064
|
+
font-size: 16px;
|
|
2065
|
+
}
|
|
2066
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-action .aimd-rec-assigner-field__button:hover:not(:disabled)) {
|
|
2067
|
+
background: #dbeafe;
|
|
2068
|
+
color: #1565c0;
|
|
2069
|
+
}
|
|
2070
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-action .aimd-rec-assigner-field__spinner) {
|
|
2071
|
+
border-color: rgba(25, 118, 210, 0.25);
|
|
2072
|
+
border-top-color: #1976d2;
|
|
2073
|
+
}
|
|
2074
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__header-state .aimd-rec-assigner-field__status) {
|
|
2075
|
+
font-size: 16px;
|
|
2076
|
+
}
|
|
2077
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__assigner-error) {
|
|
2078
|
+
margin: 6px 0 8px;
|
|
2079
|
+
}
|
|
1188
2080
|
/* ── Error & loading ────────────────────────────────────────────────────── */
|
|
1189
2081
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--error) { border-color: var(--rec-error) !important; }
|
|
1190
2082
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--error:focus-within) { box-shadow: 0 0 0 2px rgba(224, 48, 80, 0.12); }
|
|
@@ -1214,32 +2106,106 @@ defineExpose({
|
|
|
1214
2106
|
box-shadow: none;
|
|
1215
2107
|
background: #f7fbff;
|
|
1216
2108
|
}
|
|
2109
|
+
/* Metadata popovers need to escape the compact field; plain fields clip child backgrounds so corners stay clean. */
|
|
2110
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked:has(.aimd-field__metadata-host)) {
|
|
2111
|
+
overflow: visible;
|
|
2112
|
+
}
|
|
1217
2113
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--textarea) { min-width: 0; }
|
|
1218
2114
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--checkbox) { width: fit-content; min-width: 0; }
|
|
1219
2115
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked:focus-within) {
|
|
1220
2116
|
border-color: var(--aimd-border-color-focus, #4181fd);
|
|
1221
2117
|
box-shadow: 0 0 0 2px rgba(65, 129, 253, 0.14);
|
|
1222
2118
|
}
|
|
1223
|
-
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field) { margin: 0; box-shadow: none; }
|
|
1224
|
-
.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; }
|
|
1225
|
-
.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; }
|
|
1226
|
-
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-
|
|
2119
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field) { margin: 0; box-shadow: none; }
|
|
2120
|
+
.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; }
|
|
2121
|
+
.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; }
|
|
2122
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__name) {
|
|
2123
|
+
display: flex;
|
|
2124
|
+
flex: 1;
|
|
2125
|
+
align-items: center;
|
|
2126
|
+
min-width: 0;
|
|
2127
|
+
padding: 4px 10px 4px 6px;
|
|
2128
|
+
font-size: 13px;
|
|
2129
|
+
font-weight: 600;
|
|
2130
|
+
color: #1565c0;
|
|
2131
|
+
white-space: nowrap;
|
|
2132
|
+
}
|
|
2133
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-field__name--with-metadata) {
|
|
2134
|
+
align-items: flex-start;
|
|
2135
|
+
justify-content: center;
|
|
2136
|
+
gap: 2px;
|
|
2137
|
+
min-height: 34px;
|
|
2138
|
+
white-space: normal;
|
|
2139
|
+
}
|
|
2140
|
+
.aimd-protocol-recorder__content :deep(.aimd-field__key) {
|
|
2141
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
2142
|
+
font-size: 11px;
|
|
2143
|
+
font-weight: 500;
|
|
2144
|
+
line-height: 1.2;
|
|
2145
|
+
color: #64748b;
|
|
2146
|
+
}
|
|
2147
|
+
.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; }
|
|
2148
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-actions) {
|
|
2149
|
+
display: inline-flex;
|
|
2150
|
+
flex: 0 0 auto;
|
|
2151
|
+
align-items: center;
|
|
2152
|
+
gap: 4px;
|
|
2153
|
+
margin-left: auto;
|
|
2154
|
+
padding-right: 6px;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-action),
|
|
2158
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-state) {
|
|
2159
|
+
display: inline-flex;
|
|
2160
|
+
align-items: center;
|
|
2161
|
+
justify-content: center;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-action .aimd-rec-assigner-field__button) {
|
|
2165
|
+
width: 30px;
|
|
2166
|
+
min-width: 30px;
|
|
2167
|
+
height: 26px;
|
|
2168
|
+
min-height: 26px;
|
|
2169
|
+
border: 0 none;
|
|
2170
|
+
border-radius: 6px;
|
|
2171
|
+
margin: 0;
|
|
2172
|
+
background: #eaf4ff;
|
|
2173
|
+
color: #1976d2;
|
|
2174
|
+
box-shadow: none;
|
|
2175
|
+
font-size: 16px;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-action .aimd-rec-assigner-field__button:hover:not(:disabled)) {
|
|
2179
|
+
background: #dbeafe;
|
|
2180
|
+
color: #1565c0;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-action .aimd-rec-assigner-field__spinner) {
|
|
2184
|
+
border-color: rgba(25, 118, 210, 0.25);
|
|
2185
|
+
border-top-color: #1976d2;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__header-assigner-state .aimd-rec-assigner-field__status) {
|
|
2189
|
+
font-size: 16px;
|
|
2190
|
+
}
|
|
1227
2191
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-markdown) {
|
|
1228
2192
|
display: flex;
|
|
1229
2193
|
flex-direction: column;
|
|
1230
2194
|
align-items: stretch;
|
|
1231
2195
|
gap: 0;
|
|
1232
|
-
width:
|
|
2196
|
+
width: 100%;
|
|
1233
2197
|
max-width: 100%;
|
|
1234
2198
|
margin: 12px 0;
|
|
1235
2199
|
vertical-align: top;
|
|
2200
|
+
box-sizing: border-box;
|
|
1236
2201
|
}
|
|
1237
2202
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--code) {
|
|
1238
|
-
width:
|
|
2203
|
+
width: 100%;
|
|
1239
2204
|
min-width: min(420px, 100%);
|
|
1240
2205
|
max-width: 100%;
|
|
1241
2206
|
margin: 12px 0;
|
|
1242
2207
|
vertical-align: top;
|
|
2208
|
+
box-sizing: border-box;
|
|
1243
2209
|
}
|
|
1244
2210
|
|
|
1245
2211
|
/* ── Stacked input controls ─────────────────────────────────────────────── */
|
|
@@ -1247,9 +2213,11 @@ defineExpose({
|
|
|
1247
2213
|
width: 100%;
|
|
1248
2214
|
min-width: 0;
|
|
1249
2215
|
height: var(--rec-var-control-height);
|
|
1250
|
-
font
|
|
1251
|
-
font-size:
|
|
2216
|
+
font: inherit;
|
|
2217
|
+
font-size: var(--rec-var-value-font-size);
|
|
2218
|
+
font-weight: 400;
|
|
1252
2219
|
line-height: var(--rec-var-single-line-height);
|
|
2220
|
+
color: var(--rec-text);
|
|
1253
2221
|
border: 0 none;
|
|
1254
2222
|
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1255
2223
|
border-radius: 0 0 6px 6px;
|
|
@@ -1263,9 +2231,11 @@ defineExpose({
|
|
|
1263
2231
|
width: 100%;
|
|
1264
2232
|
min-width: 0;
|
|
1265
2233
|
min-height: 82px;
|
|
1266
|
-
font
|
|
1267
|
-
font-size:
|
|
1268
|
-
|
|
2234
|
+
font: inherit;
|
|
2235
|
+
font-size: var(--rec-var-value-font-size);
|
|
2236
|
+
font-weight: 400;
|
|
2237
|
+
line-height: var(--rec-var-text-wrap-line-height);
|
|
2238
|
+
color: var(--rec-text);
|
|
1269
2239
|
border: 0 none;
|
|
1270
2240
|
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1271
2241
|
border-radius: 0 0 6px 6px;
|
|
@@ -1279,9 +2249,11 @@ defineExpose({
|
|
|
1279
2249
|
width: 100%;
|
|
1280
2250
|
min-width: 0;
|
|
1281
2251
|
min-height: var(--rec-var-control-height);
|
|
1282
|
-
font
|
|
1283
|
-
font-size:
|
|
2252
|
+
font: inherit;
|
|
2253
|
+
font-size: var(--rec-var-value-font-size);
|
|
2254
|
+
font-weight: 400;
|
|
1284
2255
|
line-height: var(--rec-var-text-wrap-line-height);
|
|
2256
|
+
color: var(--rec-text);
|
|
1285
2257
|
border: 0 none;
|
|
1286
2258
|
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
1287
2259
|
border-radius: 0 0 6px 6px;
|
|
@@ -1303,8 +2275,415 @@ defineExpose({
|
|
|
1303
2275
|
background: #fff;
|
|
1304
2276
|
}
|
|
1305
2277
|
|
|
2278
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__file-control) {
|
|
2279
|
+
display: flex;
|
|
2280
|
+
flex-direction: column;
|
|
2281
|
+
align-items: stretch;
|
|
2282
|
+
gap: 8px;
|
|
2283
|
+
width: 100%;
|
|
2284
|
+
min-width: 0;
|
|
2285
|
+
min-height: var(--rec-var-control-height);
|
|
2286
|
+
padding: 8px;
|
|
2287
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
2288
|
+
border-radius: 0 0 6px 6px;
|
|
2289
|
+
box-sizing: border-box;
|
|
2290
|
+
background: #fff;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__trigger) {
|
|
2294
|
+
position: relative;
|
|
2295
|
+
display: flex;
|
|
2296
|
+
flex: 1 1 auto;
|
|
2297
|
+
min-width: 0;
|
|
2298
|
+
min-height: var(--rec-var-control-height);
|
|
2299
|
+
align-items: center;
|
|
2300
|
+
gap: 8px;
|
|
2301
|
+
padding: 0 8px;
|
|
2302
|
+
border: 1px dashed #cbd5e1;
|
|
2303
|
+
border-radius: 6px;
|
|
2304
|
+
background: #f8fafc;
|
|
2305
|
+
cursor: pointer;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__trigger--disabled) {
|
|
2309
|
+
cursor: not-allowed;
|
|
2310
|
+
opacity: 0.72;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__input) {
|
|
2314
|
+
position: absolute;
|
|
2315
|
+
width: 1px;
|
|
2316
|
+
height: 1px;
|
|
2317
|
+
opacity: 0;
|
|
2318
|
+
pointer-events: none;
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge) {
|
|
2322
|
+
display: inline-flex;
|
|
2323
|
+
flex: 0 0 auto;
|
|
2324
|
+
min-width: 38px;
|
|
2325
|
+
height: 22px;
|
|
2326
|
+
align-items: center;
|
|
2327
|
+
justify-content: center;
|
|
2328
|
+
padding: 0 7px;
|
|
2329
|
+
border-radius: 6px;
|
|
2330
|
+
background: #e3f2fd;
|
|
2331
|
+
color: #1565c0;
|
|
2332
|
+
font-size: 10px;
|
|
2333
|
+
font-weight: 700;
|
|
2334
|
+
line-height: 1;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--csv),
|
|
2338
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--text) {
|
|
2339
|
+
background: #e0f2fe;
|
|
2340
|
+
color: #0369a1;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--image) {
|
|
2344
|
+
background: #dcfce7;
|
|
2345
|
+
color: #15803d;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--audio),
|
|
2349
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--video) {
|
|
2350
|
+
background: #fef3c7;
|
|
2351
|
+
color: #a16207;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__badge--document) {
|
|
2355
|
+
background: #ede9fe;
|
|
2356
|
+
color: #6d28d9;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__name) {
|
|
2360
|
+
min-width: 0;
|
|
2361
|
+
overflow: hidden;
|
|
2362
|
+
color: var(--rec-text);
|
|
2363
|
+
font-size: 14px;
|
|
2364
|
+
font-weight: 600;
|
|
2365
|
+
line-height: 1.35;
|
|
2366
|
+
text-overflow: ellipsis;
|
|
2367
|
+
white-space: nowrap;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__name--placeholder) {
|
|
2371
|
+
color: #94a3b8;
|
|
2372
|
+
font-weight: 500;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card) {
|
|
2376
|
+
display: flex;
|
|
2377
|
+
flex-direction: column;
|
|
2378
|
+
gap: 8px;
|
|
2379
|
+
width: 100%;
|
|
2380
|
+
min-width: 0;
|
|
2381
|
+
padding: 10px;
|
|
2382
|
+
border: 1px solid #e2e8f0;
|
|
2383
|
+
border-radius: 6px;
|
|
2384
|
+
background: #f8fafc;
|
|
2385
|
+
box-sizing: border-box;
|
|
2386
|
+
transition: border-color 0.16s ease, background-color 0.16s ease;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card:hover) {
|
|
2390
|
+
border-color: #cbd5e1;
|
|
2391
|
+
background: #f1f5f9;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__header) {
|
|
2395
|
+
display: flex;
|
|
2396
|
+
min-width: 0;
|
|
2397
|
+
align-items: center;
|
|
2398
|
+
gap: 10px;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__identity) {
|
|
2402
|
+
display: flex;
|
|
2403
|
+
min-width: 0;
|
|
2404
|
+
flex: 1 1 auto;
|
|
2405
|
+
align-items: center;
|
|
2406
|
+
gap: 8px;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__text) {
|
|
2410
|
+
display: flex;
|
|
2411
|
+
min-width: 0;
|
|
2412
|
+
flex: 1 1 auto;
|
|
2413
|
+
flex-direction: column;
|
|
2414
|
+
gap: 2px;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__meta) {
|
|
2418
|
+
overflow: hidden;
|
|
2419
|
+
color: #64748b;
|
|
2420
|
+
font-size: 11px;
|
|
2421
|
+
line-height: 1.25;
|
|
2422
|
+
text-overflow: ellipsis;
|
|
2423
|
+
white-space: nowrap;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__actions) {
|
|
2427
|
+
display: flex;
|
|
2428
|
+
flex: 0 0 auto;
|
|
2429
|
+
align-items: center;
|
|
2430
|
+
gap: 4px;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__action) {
|
|
2434
|
+
position: relative;
|
|
2435
|
+
display: inline-flex;
|
|
2436
|
+
width: 26px;
|
|
2437
|
+
height: 26px;
|
|
2438
|
+
align-items: center;
|
|
2439
|
+
justify-content: center;
|
|
2440
|
+
padding: 0;
|
|
2441
|
+
border: 0;
|
|
2442
|
+
border-radius: 6px;
|
|
2443
|
+
background: transparent;
|
|
2444
|
+
color: #64748b;
|
|
2445
|
+
cursor: pointer;
|
|
2446
|
+
font-size: 15px;
|
|
2447
|
+
line-height: 1;
|
|
2448
|
+
text-decoration: none;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__replace input) {
|
|
2452
|
+
position: absolute;
|
|
2453
|
+
width: 1px;
|
|
2454
|
+
height: 1px;
|
|
2455
|
+
opacity: 0;
|
|
2456
|
+
pointer-events: none;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__action:hover) {
|
|
2460
|
+
background: #e2e8f0;
|
|
2461
|
+
color: #1f2937;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__action--danger:hover) {
|
|
2465
|
+
background: #fee2e2;
|
|
2466
|
+
color: #b91c1c;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-card__action-label) {
|
|
2470
|
+
position: absolute;
|
|
2471
|
+
width: 1px;
|
|
2472
|
+
height: 1px;
|
|
2473
|
+
overflow: hidden;
|
|
2474
|
+
clip: rect(0 0 0 0);
|
|
2475
|
+
white-space: nowrap;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__preview) {
|
|
2479
|
+
display: flex;
|
|
2480
|
+
width: 100%;
|
|
2481
|
+
min-height: 120px;
|
|
2482
|
+
max-height: 280px;
|
|
2483
|
+
align-items: center;
|
|
2484
|
+
justify-content: center;
|
|
2485
|
+
overflow: hidden;
|
|
2486
|
+
border: 1px solid #e2e8f0;
|
|
2487
|
+
border-radius: 6px;
|
|
2488
|
+
background: #fff;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__file-control[data-file-kind="image"] .aimd-rec-file-field__preview) {
|
|
2492
|
+
min-height: 190px;
|
|
2493
|
+
max-height: 420px;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__preview img) {
|
|
2497
|
+
display: block;
|
|
2498
|
+
width: auto;
|
|
2499
|
+
height: auto;
|
|
2500
|
+
max-width: 100%;
|
|
2501
|
+
max-height: 260px;
|
|
2502
|
+
object-fit: contain;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__file-control[data-file-kind="image"] .aimd-rec-file-field__preview img) {
|
|
2506
|
+
max-height: 390px;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-preview) {
|
|
2510
|
+
display: block;
|
|
2511
|
+
min-width: 0;
|
|
2512
|
+
overflow: hidden;
|
|
2513
|
+
border: 1px solid #e2e8f0;
|
|
2514
|
+
border-radius: 6px;
|
|
2515
|
+
background: #fff;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-grid) {
|
|
2519
|
+
display: table;
|
|
2520
|
+
width: 100%;
|
|
2521
|
+
border-collapse: collapse;
|
|
2522
|
+
table-layout: fixed;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-row) {
|
|
2526
|
+
display: table-row;
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-row--head) {
|
|
2530
|
+
color: #0369a1;
|
|
2531
|
+
font-weight: 700;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-cell) {
|
|
2535
|
+
display: table-cell;
|
|
2536
|
+
max-width: 12ch;
|
|
2537
|
+
overflow: hidden;
|
|
2538
|
+
padding: 2px 6px;
|
|
2539
|
+
border-top: 1px solid #e0f2fe;
|
|
2540
|
+
color: #334155;
|
|
2541
|
+
font-size: 11px;
|
|
2542
|
+
line-height: 1.4;
|
|
2543
|
+
text-overflow: ellipsis;
|
|
2544
|
+
white-space: nowrap;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__csv-row:first-child .aimd-rec-file-field__csv-cell) {
|
|
2548
|
+
border-top: 0;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-file-field__error) {
|
|
2552
|
+
flex: 0 0 auto;
|
|
2553
|
+
color: #dc2626;
|
|
2554
|
+
font-size: 12px;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--has-assigner-control) {
|
|
2558
|
+
overflow: hidden;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked--file.aimd-rec-inline--has-assigner-control:has(.aimd-field__metadata-host)) {
|
|
2562
|
+
overflow: visible;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row) {
|
|
2566
|
+
display: flex;
|
|
2567
|
+
width: 100%;
|
|
2568
|
+
min-width: 0;
|
|
2569
|
+
min-height: var(--rec-var-control-height);
|
|
2570
|
+
align-items: stretch;
|
|
2571
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
2572
|
+
border-radius: 0 0 6px 6px;
|
|
2573
|
+
overflow: hidden;
|
|
2574
|
+
background: #fff;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-prefix) {
|
|
2578
|
+
display: flex;
|
|
2579
|
+
flex: 0 0 36px;
|
|
2580
|
+
align-items: stretch;
|
|
2581
|
+
justify-content: stretch;
|
|
2582
|
+
border-right: 1px solid #e2e8f0;
|
|
2583
|
+
background: #f8fafc;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-main) {
|
|
2587
|
+
display: flex;
|
|
2588
|
+
min-width: 0;
|
|
2589
|
+
flex: 1 1 auto;
|
|
2590
|
+
align-items: stretch;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-status) {
|
|
2594
|
+
display: flex;
|
|
2595
|
+
flex: 0 0 30px;
|
|
2596
|
+
align-items: center;
|
|
2597
|
+
justify-content: center;
|
|
2598
|
+
border-left: 1px solid #e2e8f0;
|
|
2599
|
+
background: #fff;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__input--stacked),
|
|
2603
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__textarea--stacked),
|
|
2604
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__checkbox-row),
|
|
2605
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__file-control) {
|
|
2606
|
+
width: 100%;
|
|
2607
|
+
height: auto;
|
|
2608
|
+
min-height: var(--rec-var-control-height);
|
|
2609
|
+
flex: 1 1 auto;
|
|
2610
|
+
border-top: 0;
|
|
2611
|
+
border-radius: 0;
|
|
2612
|
+
background: transparent;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__checkbox-row) {
|
|
2616
|
+
padding: 0 10px;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-prefix .aimd-rec-assigner-field__button) {
|
|
2620
|
+
width: 100%;
|
|
2621
|
+
min-width: 0;
|
|
2622
|
+
height: auto;
|
|
2623
|
+
min-height: var(--rec-var-control-height);
|
|
2624
|
+
border: 0;
|
|
2625
|
+
border-radius: 0;
|
|
2626
|
+
margin: 0;
|
|
2627
|
+
background: transparent;
|
|
2628
|
+
color: #1976d2;
|
|
2629
|
+
font-size: 17px;
|
|
2630
|
+
box-shadow: none;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-prefix .aimd-rec-assigner-field__button:hover:not(:disabled)) {
|
|
2634
|
+
background: #eff6ff;
|
|
2635
|
+
color: #1565c0;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-prefix .aimd-rec-assigner-field__button:disabled) {
|
|
2639
|
+
opacity: 0.68;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-prefix .aimd-rec-assigner-field__spinner) {
|
|
2643
|
+
border-color: rgba(25, 118, 210, 0.25);
|
|
2644
|
+
border-top-color: #1976d2;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__status) {
|
|
2648
|
+
display: inline-flex;
|
|
2649
|
+
align-items: center;
|
|
2650
|
+
justify-content: center;
|
|
2651
|
+
color: #94a3b8;
|
|
2652
|
+
font-size: 17px;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__status--done) {
|
|
2656
|
+
color: #16a34a;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__status--error) {
|
|
2660
|
+
color: #dc2626;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-assigner-field__status-spinner) {
|
|
2664
|
+
width: 15px;
|
|
2665
|
+
height: 15px;
|
|
2666
|
+
border: 2px solid rgba(25, 118, 210, 0.2);
|
|
2667
|
+
border-top-color: #1976d2;
|
|
2668
|
+
border-radius: 999px;
|
|
2669
|
+
animation: aimd-rec-assigner-spin 0.75s linear infinite;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__assigner-error) {
|
|
2673
|
+
display: block;
|
|
2674
|
+
width: 100%;
|
|
2675
|
+
box-sizing: border-box;
|
|
2676
|
+
padding: 4px 8px;
|
|
2677
|
+
border-top: 1px solid #fecaca;
|
|
2678
|
+
background: #fff7f7;
|
|
2679
|
+
color: #b42318;
|
|
2680
|
+
font-size: 12px;
|
|
2681
|
+
line-height: 1.35;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
1306
2684
|
/* ── Select ─────────────────────────────────────────────────────────────── */
|
|
1307
2685
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__select) { appearance: auto; cursor: pointer; height: var(--rec-var-control-height); padding: 0 8px; background: #fff; }
|
|
2686
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-enum-select) { appearance: auto; cursor: pointer; }
|
|
1308
2687
|
|
|
1309
2688
|
/* ── Step / check ───────────────────────────────────────────────────────── */
|
|
1310
2689
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--step),
|
|
@@ -1314,7 +2693,7 @@ defineExpose({
|
|
|
1314
2693
|
flex-direction: column;
|
|
1315
2694
|
align-items: stretch;
|
|
1316
2695
|
gap: 10px;
|
|
1317
|
-
width:
|
|
2696
|
+
width: 100%;
|
|
1318
2697
|
max-width: 100%;
|
|
1319
2698
|
margin: 10px 0;
|
|
1320
2699
|
padding: 10px 12px;
|
|
@@ -1434,7 +2813,7 @@ defineExpose({
|
|
|
1434
2813
|
flex-direction: column;
|
|
1435
2814
|
align-items: stretch;
|
|
1436
2815
|
gap: 12px;
|
|
1437
|
-
width:
|
|
2816
|
+
width: 100%;
|
|
1438
2817
|
max-width: 100%;
|
|
1439
2818
|
margin: 16px 0;
|
|
1440
2819
|
padding: 14px 16px 16px;
|
|
@@ -1443,6 +2822,7 @@ defineExpose({
|
|
|
1443
2822
|
background: #fff;
|
|
1444
2823
|
box-shadow: none;
|
|
1445
2824
|
color: var(--rec-text);
|
|
2825
|
+
box-sizing: border-box;
|
|
1446
2826
|
}
|
|
1447
2827
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__main) {
|
|
1448
2828
|
display: flex;
|
|
@@ -1464,7 +2844,7 @@ defineExpose({
|
|
|
1464
2844
|
flex: 0 0 auto;
|
|
1465
2845
|
flex-wrap: wrap;
|
|
1466
2846
|
justify-content: flex-end;
|
|
1467
|
-
gap:
|
|
2847
|
+
gap: 6px;
|
|
1468
2848
|
}
|
|
1469
2849
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body) {
|
|
1470
2850
|
min-width: 0;
|
|
@@ -1480,6 +2860,19 @@ defineExpose({
|
|
|
1480
2860
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__body p) {
|
|
1481
2861
|
margin: 0;
|
|
1482
2862
|
}
|
|
2863
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body-actions) {
|
|
2864
|
+
display: flex;
|
|
2865
|
+
justify-content: flex-end;
|
|
2866
|
+
min-width: 0;
|
|
2867
|
+
margin-top: -8px;
|
|
2868
|
+
}
|
|
2869
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body-action) {
|
|
2870
|
+
opacity: 0.86;
|
|
2871
|
+
}
|
|
2872
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body-action:hover:not(:disabled)),
|
|
2873
|
+
.aimd-protocol-recorder__content :deep(.aimd-step-field__body-action:focus-visible) {
|
|
2874
|
+
opacity: 1;
|
|
2875
|
+
}
|
|
1483
2876
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__details) {
|
|
1484
2877
|
display: flex;
|
|
1485
2878
|
flex-direction: column;
|
|
@@ -1601,9 +2994,13 @@ defineExpose({
|
|
|
1601
2994
|
background: transparent;
|
|
1602
2995
|
}
|
|
1603
2996
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__toggle) {
|
|
2997
|
+
min-height: 22px;
|
|
2998
|
+
padding: 0 8px;
|
|
1604
2999
|
color: #8a5a12;
|
|
1605
3000
|
border-color: rgba(154, 88, 0, 0.18);
|
|
1606
3001
|
background: rgba(255, 255, 255, 0.82);
|
|
3002
|
+
font-size: 11px;
|
|
3003
|
+
line-height: 1;
|
|
1607
3004
|
}
|
|
1608
3005
|
.aimd-protocol-recorder__content :deep(.aimd-step-field__toggle:hover:not(:disabled)) {
|
|
1609
3006
|
border-color: rgba(154, 88, 0, 0.34);
|
|
@@ -1649,7 +3046,46 @@ defineExpose({
|
|
|
1649
3046
|
}
|
|
1650
3047
|
}
|
|
1651
3048
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__input.aimd-rec-inline__input--stacked),
|
|
1652
|
-
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea.aimd-rec-inline__textarea--stacked) {
|
|
3049
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__textarea.aimd-rec-inline__textarea--stacked) {
|
|
3050
|
+
border: 0 none;
|
|
3051
|
+
border-top: 1px solid var(--aimd-border-color, #90caf9);
|
|
3052
|
+
border-radius: 0 0 6px 6px;
|
|
3053
|
+
box-shadow: none;
|
|
3054
|
+
font-family: inherit;
|
|
3055
|
+
outline: none;
|
|
3056
|
+
}
|
|
3057
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline--var-stacked .aimd-rec-inline__value-control) {
|
|
3058
|
+
font: inherit;
|
|
3059
|
+
font-size: var(--rec-var-value-font-size);
|
|
3060
|
+
font-weight: 400;
|
|
3061
|
+
color: var(--rec-text);
|
|
3062
|
+
letter-spacing: 0;
|
|
3063
|
+
}
|
|
3064
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit),
|
|
3065
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-fields-wrapper),
|
|
3066
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-text),
|
|
3067
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-year-field),
|
|
3068
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-month-field),
|
|
3069
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-day-field),
|
|
3070
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-hour-field),
|
|
3071
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-minute-field),
|
|
3072
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-second-field),
|
|
3073
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__value-control::-webkit-datetime-edit-ampm-field) {
|
|
3074
|
+
font: inherit;
|
|
3075
|
+
line-height: inherit;
|
|
3076
|
+
}
|
|
3077
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__input.aimd-rec-inline__input--stacked),
|
|
3078
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__textarea.aimd-rec-inline__textarea--stacked) {
|
|
3079
|
+
border: 0 none;
|
|
3080
|
+
border-radius: 0;
|
|
3081
|
+
box-shadow: none;
|
|
3082
|
+
}
|
|
3083
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__input.aimd-rec-inline__input--stacked:focus),
|
|
3084
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline__control-row .aimd-rec-inline__textarea.aimd-rec-inline__textarea--stacked:focus) {
|
|
3085
|
+
border: 0 none;
|
|
3086
|
+
box-shadow: none;
|
|
3087
|
+
outline: none;
|
|
3088
|
+
}
|
|
1653
3089
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__table td) {
|
|
1654
3090
|
vertical-align: middle;
|
|
1655
3091
|
transition:
|
|
@@ -1675,16 +3111,31 @@ defineExpose({
|
|
|
1675
3111
|
transition: width 0.18s ease;
|
|
1676
3112
|
}
|
|
1677
3113
|
|
|
1678
|
-
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head) {
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
}
|
|
3114
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head) {
|
|
3115
|
+
color: #64748b;
|
|
3116
|
+
font-size: 11px;
|
|
3117
|
+
font-weight: 700;
|
|
3118
|
+
letter-spacing: 0;
|
|
3119
|
+
text-transform: none;
|
|
3120
|
+
white-space: nowrap;
|
|
3121
|
+
padding-left: 6px;
|
|
3122
|
+
padding-right: 6px;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-label) {
|
|
3126
|
+
display: inline-flex;
|
|
3127
|
+
flex-direction: column;
|
|
3128
|
+
align-items: flex-start;
|
|
3129
|
+
gap: 2px;
|
|
3130
|
+
max-width: 100%;
|
|
3131
|
+
line-height: 1.25;
|
|
3132
|
+
white-space: normal;
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-label .aimd-field__title) {
|
|
3136
|
+
font-weight: 700;
|
|
3137
|
+
color: #475569;
|
|
3138
|
+
}
|
|
1688
3139
|
|
|
1689
3140
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__column-head--compact) {
|
|
1690
3141
|
text-align: center;
|
|
@@ -1695,7 +3146,7 @@ defineExpose({
|
|
|
1695
3146
|
}
|
|
1696
3147
|
|
|
1697
3148
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-col) {
|
|
1698
|
-
width:
|
|
3149
|
+
width: 58px;
|
|
1699
3150
|
}
|
|
1700
3151
|
|
|
1701
3152
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-col) {
|
|
@@ -1704,13 +3155,19 @@ defineExpose({
|
|
|
1704
3155
|
|
|
1705
3156
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-head),
|
|
1706
3157
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__drag-cell) {
|
|
1707
|
-
width:
|
|
3158
|
+
width: 50px;
|
|
1708
3159
|
text-align: center;
|
|
1709
3160
|
vertical-align: middle;
|
|
1710
3161
|
padding-left: 0;
|
|
1711
3162
|
padding-right: 0;
|
|
1712
3163
|
}
|
|
1713
3164
|
|
|
3165
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row-head-label) {
|
|
3166
|
+
color: #94a3b8;
|
|
3167
|
+
font-size: 11px;
|
|
3168
|
+
font-weight: 700;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
1714
3171
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-head),
|
|
1715
3172
|
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__action-cell) {
|
|
1716
3173
|
width: 40px;
|
|
@@ -1906,6 +3363,32 @@ defineExpose({
|
|
|
1906
3363
|
transform: scale(0.92);
|
|
1907
3364
|
}
|
|
1908
3365
|
|
|
3366
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row-control),
|
|
3367
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card__row-meta) {
|
|
3368
|
+
display: inline-flex;
|
|
3369
|
+
align-items: center;
|
|
3370
|
+
gap: 5px;
|
|
3371
|
+
min-width: 0;
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3374
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-inline-table__row-number) {
|
|
3375
|
+
display: inline-flex;
|
|
3376
|
+
align-items: center;
|
|
3377
|
+
justify-content: center;
|
|
3378
|
+
min-width: 16px;
|
|
3379
|
+
height: 16px;
|
|
3380
|
+
padding: 0 2px;
|
|
3381
|
+
border-radius: 0;
|
|
3382
|
+
background: transparent;
|
|
3383
|
+
color: #94a3b8;
|
|
3384
|
+
font-size: 11px;
|
|
3385
|
+
font-style: normal;
|
|
3386
|
+
font-weight: 600;
|
|
3387
|
+
line-height: 1;
|
|
3388
|
+
font-variant-numeric: tabular-nums;
|
|
3389
|
+
box-sizing: border-box;
|
|
3390
|
+
}
|
|
3391
|
+
|
|
1909
3392
|
.aimd-protocol-recorder__content :deep(.aimd-rec-table-cell-input) {
|
|
1910
3393
|
width: 100%;
|
|
1911
3394
|
height: 34px;
|
|
@@ -1913,6 +3396,7 @@ defineExpose({
|
|
|
1913
3396
|
border: 0;
|
|
1914
3397
|
border-radius: 0;
|
|
1915
3398
|
font-size: 13px;
|
|
3399
|
+
font-style: normal;
|
|
1916
3400
|
line-height: 1.35;
|
|
1917
3401
|
outline: none;
|
|
1918
3402
|
box-sizing: border-box;
|
|
@@ -1964,36 +3448,39 @@ defineExpose({
|
|
|
1964
3448
|
|
|
1965
3449
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card-list) {
|
|
1966
3450
|
display: grid;
|
|
1967
|
-
gap:
|
|
3451
|
+
gap: 8px;
|
|
1968
3452
|
}
|
|
1969
3453
|
|
|
1970
3454
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card) {
|
|
1971
3455
|
position: relative;
|
|
1972
|
-
padding: 10px
|
|
3456
|
+
padding: 7px 10px 9px;
|
|
1973
3457
|
border: 1px solid #dbe4ec;
|
|
1974
|
-
border-radius:
|
|
3458
|
+
border-radius: 10px;
|
|
1975
3459
|
background: rgba(255, 255, 255, 0.94);
|
|
1976
|
-
box-shadow: 0
|
|
3460
|
+
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
|
|
1977
3461
|
}
|
|
1978
3462
|
|
|
1979
3463
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card__toolbar) {
|
|
1980
3464
|
display: flex;
|
|
1981
3465
|
align-items: center;
|
|
1982
3466
|
justify-content: space-between;
|
|
1983
|
-
gap:
|
|
3467
|
+
gap: 6px;
|
|
3468
|
+
min-height: 20px;
|
|
3469
|
+
margin-bottom: -2px;
|
|
1984
3470
|
}
|
|
1985
3471
|
|
|
1986
3472
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card__field) {
|
|
1987
3473
|
display: grid;
|
|
1988
|
-
gap:
|
|
3474
|
+
gap: 3px;
|
|
1989
3475
|
min-width: 0;
|
|
1990
|
-
padding-top:
|
|
1991
|
-
margin-top:
|
|
3476
|
+
padding-top: 6px;
|
|
3477
|
+
margin-top: 6px;
|
|
1992
3478
|
border-top: 1px solid #eef2f7;
|
|
1993
3479
|
}
|
|
1994
3480
|
|
|
1995
3481
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card__field--title) {
|
|
1996
3482
|
margin-top: 0;
|
|
3483
|
+
padding-top: 4px;
|
|
1997
3484
|
border-top: 0;
|
|
1998
3485
|
}
|
|
1999
3486
|
|
|
@@ -2003,19 +3490,24 @@ defineExpose({
|
|
|
2003
3490
|
}
|
|
2004
3491
|
|
|
2005
3492
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card__label) {
|
|
3493
|
+
display: inline-flex;
|
|
3494
|
+
flex-direction: column;
|
|
3495
|
+
align-items: flex-start;
|
|
3496
|
+
gap: 1px;
|
|
2006
3497
|
color: #64748b;
|
|
2007
3498
|
font-size: 11px;
|
|
2008
3499
|
font-weight: 700;
|
|
2009
|
-
letter-spacing: 0
|
|
2010
|
-
|
|
3500
|
+
letter-spacing: 0;
|
|
3501
|
+
line-height: 1.15;
|
|
3502
|
+
text-transform: none;
|
|
2011
3503
|
}
|
|
2012
3504
|
|
|
2013
3505
|
.aimd-protocol-recorder__content :deep(.aimd-rec-card__input) {
|
|
2014
3506
|
width: 100%;
|
|
2015
|
-
height:
|
|
2016
|
-
padding: 0
|
|
3507
|
+
height: 30px;
|
|
3508
|
+
padding: 0 8px;
|
|
2017
3509
|
border: 1px solid #d7e0ea;
|
|
2018
|
-
border-radius:
|
|
3510
|
+
border-radius: 8px;
|
|
2019
3511
|
background: #f8fafc;
|
|
2020
3512
|
color: var(--rec-text);
|
|
2021
3513
|
font-size: 13px;
|
|
@@ -2042,6 +3534,34 @@ defineExpose({
|
|
|
2042
3534
|
border-color: var(--rec-error);
|
|
2043
3535
|
}
|
|
2044
3536
|
|
|
3537
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card .aimd-rec-inline-table__drag-handle) {
|
|
3538
|
+
grid-template-columns: repeat(2, 2.5px);
|
|
3539
|
+
grid-auto-rows: 2.5px;
|
|
3540
|
+
gap: 2px;
|
|
3541
|
+
padding: 3px 5px;
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card .aimd-rec-inline-table__row-number) {
|
|
3545
|
+
min-width: 18px;
|
|
3546
|
+
height: 18px;
|
|
3547
|
+
color: #8aa193;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card .aimd-rec-inline-table__drag-dot) {
|
|
3551
|
+
width: 2.5px;
|
|
3552
|
+
height: 2.5px;
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card .aimd-rec-inline-table__icon-btn) {
|
|
3556
|
+
width: 20px;
|
|
3557
|
+
height: 20px;
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
.aimd-protocol-recorder__content :deep(.aimd-rec-card .aimd-rec-inline-table__icon-btn svg) {
|
|
3561
|
+
width: 12px;
|
|
3562
|
+
height: 12px;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
2045
3565
|
@keyframes aimd-rec-inline-table-row-settle {
|
|
2046
3566
|
0% {
|
|
2047
3567
|
background-color: #deebff;
|