eli-video-interview 1.8.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/esm/components/Charts/ReportPie.js +27 -10
  2. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  3. package/esm/modules/ai-question/Root.js +11 -5
  4. package/esm/modules/ai-question/components/GlobalDimensions/Dialog.d.ts +9 -0
  5. package/esm/modules/ai-question/components/GlobalDimensions/Dialog.js +158 -0
  6. package/esm/modules/ai-question/components/GlobalDimensions/index.d.ts +3 -0
  7. package/esm/modules/ai-question/components/GlobalDimensions/index.js +57 -0
  8. package/esm/modules/ai-question/components/QuestionModel/index.js +2 -1
  9. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +12 -0
  10. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  11. package/esm/modules/ai-question/utils/weight.d.ts +17 -0
  12. package/esm/modules/ai-question/utils/weight.js +38 -0
  13. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  14. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
  15. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
  16. package/esm/modules/ai-report/interface.d.ts +16 -0
  17. package/esm/modules/ai-report-v2/Root.js +2 -1
  18. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +2 -0
  19. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +57 -6
  20. package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +1 -0
  21. package/esm/modules/ai-report-v2/components/GlobalDimensions/index.d.ts +3 -0
  22. package/esm/modules/ai-report-v2/components/GlobalDimensions/index.js +84 -0
  23. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +3 -2
  24. package/esm/modules/ai-report-v2/components/ScoreReport/styled.d.ts +3 -3
  25. package/esm/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +2 -2
  26. package/esm/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +2 -2
  27. package/esm/modules/ai-report-v2/components/styled.d.ts +3 -0
  28. package/esm/modules/ai-report-v2/components/styled.js +10 -0
  29. package/esm/modules/ai-report-v2/interface.d.ts +16 -0
  30. package/esm/modules/ai-report-v3/Root.js +2 -1
  31. package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +2 -0
  32. package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.js +75 -48
  33. package/esm/modules/ai-report-v3/components/AIEvaluate/index.js +1 -0
  34. package/esm/modules/ai-report-v3/components/GlobalDimensions/index.d.ts +3 -0
  35. package/esm/modules/ai-report-v3/components/GlobalDimensions/index.js +82 -0
  36. package/esm/modules/ai-report-v3/components/ModuleTitle.d.ts +1 -1
  37. package/esm/modules/ai-report-v3/components/ModuleTitle.js +3 -1
  38. package/esm/modules/ai-report-v3/components/ScoreReport/styled.d.ts +3 -3
  39. package/esm/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +2 -2
  40. package/esm/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +2 -2
  41. package/esm/modules/ai-report-v3/interface.d.ts +16 -0
  42. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  43. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  44. package/esm/store/ai-question/question-model-store.d.ts +4 -1
  45. package/esm/store/ai-question/question-model-store.js +41 -5
  46. package/lib/components/Charts/ReportPie.js +27 -10
  47. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  48. package/lib/modules/ai-question/Root.js +11 -5
  49. package/lib/modules/ai-question/components/GlobalDimensions/Dialog.d.ts +9 -0
  50. package/lib/modules/ai-question/components/GlobalDimensions/Dialog.js +160 -0
  51. package/lib/modules/ai-question/components/GlobalDimensions/index.d.ts +3 -0
  52. package/lib/modules/ai-question/components/GlobalDimensions/index.js +62 -0
  53. package/lib/modules/ai-question/components/QuestionModel/index.js +2 -1
  54. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +12 -0
  55. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  56. package/lib/modules/ai-question/utils/weight.d.ts +17 -0
  57. package/lib/modules/ai-question/utils/weight.js +43 -0
  58. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  59. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
  60. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
  61. package/lib/modules/ai-report/interface.d.ts +16 -0
  62. package/lib/modules/ai-report-v2/Root.js +2 -1
  63. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +2 -0
  64. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +57 -6
  65. package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +1 -0
  66. package/lib/modules/ai-report-v2/components/GlobalDimensions/index.d.ts +3 -0
  67. package/lib/modules/ai-report-v2/components/GlobalDimensions/index.js +89 -0
  68. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +2 -1
  69. package/lib/modules/ai-report-v2/components/ScoreReport/styled.d.ts +3 -3
  70. package/lib/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +2 -2
  71. package/lib/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +2 -2
  72. package/lib/modules/ai-report-v2/components/styled.d.ts +3 -0
  73. package/lib/modules/ai-report-v2/components/styled.js +11 -1
  74. package/lib/modules/ai-report-v2/interface.d.ts +16 -0
  75. package/lib/modules/ai-report-v3/Root.js +2 -1
  76. package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +2 -0
  77. package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.js +75 -48
  78. package/lib/modules/ai-report-v3/components/AIEvaluate/index.js +1 -0
  79. package/lib/modules/ai-report-v3/components/GlobalDimensions/index.d.ts +3 -0
  80. package/lib/modules/ai-report-v3/components/GlobalDimensions/index.js +87 -0
  81. package/lib/modules/ai-report-v3/components/ModuleTitle.d.ts +1 -1
  82. package/lib/modules/ai-report-v3/components/ModuleTitle.js +3 -1
  83. package/lib/modules/ai-report-v3/components/ScoreReport/styled.d.ts +3 -3
  84. package/lib/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +2 -2
  85. package/lib/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +2 -2
  86. package/lib/modules/ai-report-v3/interface.d.ts +16 -0
  87. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  88. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  89. package/lib/store/ai-question/question-model-store.d.ts +4 -1
  90. package/lib/store/ai-question/question-model-store.js +41 -5
  91. package/package.json +1 -1
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  var __values = (this && this.__values) || function(o) {
2
13
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3
14
  if (m) return m.call(o);
@@ -43,9 +54,9 @@ function setupCanvas(canvas) {
43
54
  // }
44
55
  var MAX_WIDTH = 354;
45
56
  var MAX_HEIGHT = 18;
46
- // 底部"更多考核维度"提示胶囊(设计稿「容器 14851」,画进 canvas 而非 HTML)
47
- var CAPTION_TEXT = '更多考核维度请展开上方综合评价查看详情';
48
- var CAPTION_HEIGHT = 20;
57
+ // 题目维度与全局维度之间的分隔线 + 说明(方案③:不逐条打标)
58
+ var DIVIDER_TEXT = '以下为全局维度(不按题目评价)';
59
+ var DIVIDER_HEIGHT = 20;
49
60
  // 粗略估算文本像素宽(与下方绘制所用 sans-serif 接近;中文宽、拉丁/数字窄)
50
61
  var estimateTextWidth = function (s, cjkW, latinW) {
51
62
  var e_1, _a;
@@ -194,6 +205,14 @@ export function getLevel(score) {
194
205
  return levelConf.Best;
195
206
  }
196
207
  }
208
+ // 全局维度(只绑试卷、不绑题目)用浅绿条区分来源(来源说明靠分组分隔线,不逐条打标)
209
+ var globalLevelConf = {
210
+ backgroundColor: 'rgba(78, 201, 83, 0.14)',
211
+ scoreGradient: ['#4EC953', '#D9FBE3'],
212
+ shadowColor: 'rgba(78, 201, 83, 0.35)',
213
+ textColor: '#33A853',
214
+ tagColor: '#33A853',
215
+ };
197
216
  var drawScore = function (layout, ctx, config, rect, score) {
198
217
  var text = "".concat(score);
199
218
  ctx.save();
@@ -220,20 +239,54 @@ var drawScore = function (layout, ctx, config, rect, score) {
220
239
  ctx.restore();
221
240
  return textW;
222
241
  };
242
+ // 组间分隔线:左右各一段细线,中间是说明文字
243
+ var drawGroupDivider = function (layout, ctx, y) {
244
+ ctx.save();
245
+ ctx.font = '10px sans-serif';
246
+ var textWidth = measureTextWidth(ctx, DIVIDER_TEXT);
247
+ var centerX = layout.leftLableWidth + MAX_WIDTH / 2;
248
+ var right = layout.leftLableWidth + MAX_WIDTH;
249
+ ctx.fillStyle = 'rgba(0, 0, 0, 0.4)';
250
+ ctx.textAlign = 'center';
251
+ ctx.textBaseline = 'middle';
252
+ ctx.fillText(DIVIDER_TEXT, centerX, y);
253
+ ctx.strokeStyle = 'rgba(0, 0, 0, 0.08)';
254
+ ctx.lineWidth = 1;
255
+ ctx.beginPath();
256
+ ctx.moveTo(0, y);
257
+ ctx.lineTo(centerX - textWidth / 2 - 8, y);
258
+ ctx.moveTo(centerX + textWidth / 2 + 8, y);
259
+ ctx.lineTo(right, y);
260
+ ctx.stroke();
261
+ ctx.restore();
262
+ };
223
263
  var draw = function (layout, dimensions, pathRef, ctx) {
224
264
  ctx.font = '14px sans-serif';
225
265
  ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
226
266
  var shiftY = layout.shiftY;
227
267
  dimensions.forEach(function (v, i) {
228
- var config = getLevel(v.score);
268
+ var config = v.isGlobal ? __assign(__assign({}, getLevel(v.score)), globalLevelConf) : getLevel(v.score);
229
269
  var x = layout.leftLableWidth;
230
- var y = shiftY + 46 + layout.itemSpacing * i;
270
+ var extraOffset = layout.dividerIndex > 0 && i >= layout.dividerIndex ? layout.dividerHeight : 0;
271
+ var y = shiftY + 46 + layout.itemSpacing * i + extraOffset;
231
272
  // 轨道胶囊背景(设计稿「条状图*条背景」:本档淡色 + 全圆角)
232
273
  ctx.fillStyle = config.backgroundColor;
233
274
  drawRoundedRect(x, y, MAX_WIDTH, MAX_HEIGHT, MAX_HEIGHT / 2, true, false, ctx);
234
- var endPointY = shiftY + 46 + 14 + layout.itemSpacing * i; // TOP_OFFSET是顶部偏移,14是文字相对矩形的偏移
275
+ var endPointY = y + 14; // 14 是文字相对条形的偏移;必须跟着 y(含分隔线偏移),否则全局维度那几行标签会和条形错位
235
276
  drawLable(v.name, 0, endPointY, ctx);
236
- pathRef.push({ x: 0, y: y, width: layout.leftLableWidth, height: 22, tips: "".concat(v.name, ": ").concat(v.score) });
277
+ if (v.isGlobal && i === layout.dividerIndex) {
278
+ // 方案③:不逐条打标,改用一条分隔线 + 一行说明区分来源
279
+ // 位置取「上一组最后一条条底」与「本组第一条条顶」的正中
280
+ var dividerY = y - Math.round(layout.itemSpacing / 2 - MAX_HEIGHT / 2 + layout.dividerHeight / 2);
281
+ drawGroupDivider(layout, ctx, dividerY);
282
+ }
283
+ pathRef.push({
284
+ x: 0,
285
+ y: y,
286
+ width: layout.leftLableWidth,
287
+ height: 22,
288
+ tips: "".concat(v.name).concat(v.isGlobal ? '(全局维度)' : '', ": ").concat(v.score),
289
+ });
237
290
  var score = v.score === 0 ? 0 : Math.max(v.score, 4);
238
291
  drawScore(layout, ctx, config, {
239
292
  x: layout.leftLableWidth,
@@ -244,23 +297,6 @@ var draw = function (layout, dimensions, pathRef, ctx) {
244
297
  });
245
298
  drawTop(layout, ctx);
246
299
  };
247
- // 底部提示胶囊:浅绿圆角胶囊(#EBFCF7, 淡青描边) + 居中青色(#0087B4)文字(y 为胶囊顶)
248
- var drawCaption = function (ctx, canvasWidth, y) {
249
- var width = Math.min(440, canvasWidth - 24);
250
- var height = CAPTION_HEIGHT;
251
- var x = (canvasWidth - width) / 2;
252
- ctx.save();
253
- ctx.fillStyle = '#EBFCF7';
254
- ctx.strokeStyle = 'rgba(0,135,180,0.1)';
255
- ctx.lineWidth = 1;
256
- drawRoundedRect(x, y, width, height, height / 2, true, true, ctx);
257
- ctx.font = '12px sans-serif';
258
- ctx.textAlign = 'center';
259
- ctx.textBaseline = 'middle';
260
- ctx.fillStyle = '#0087B4';
261
- ctx.fillText(CAPTION_TEXT, canvasWidth / 2, y + height / 2);
262
- ctx.restore();
263
- };
264
300
  // 刻度值:欠佳|适中 分界=60、适中|优秀 分界=80、优秀满格(右端线)=100
265
301
  var drawScaleTicks = function (ctx, opts) {
266
302
  var y = opts.y, x60 = opts.x60, x80 = opts.x80, xRight = opts.xRight;
@@ -280,24 +316,26 @@ var Graph = function (_a) {
280
316
  var ref = useRef(null);
281
317
  var pathRef = useRef([]);
282
318
  var _c = __read(useState(), 2), ctx = _c[0], setCtx = _c[1];
283
- // ---- 垂直布局常量(条图 → 刻度 → 胶囊 的紧凑垂直流)----
319
+ // ---- 垂直布局常量(条图 → 刻度的紧凑垂直流)----
284
320
  var ITEM_SPACING = 28; // 相邻条间距
285
321
  var TOP_OFFSET = 46; // 条顶相对内容顶 shiftY 的偏移
286
322
  var CANVAS_HEIGHT = 300; // 与右侧饼图等高(内容不足时保持,超出按流增高)
287
323
  var DASH_TAIL = 8; // 刻度虚线超出最后一条条底的长度
288
324
  var TICK_LINE = 14; // 刻度数值行高
289
- var GAP_CAPTION = 8; // 刻度数 → 提示胶囊间距
290
- var CAPTION_PAD_BOTTOM = 12; // 胶囊下方留白
291
- // 条形区域高度(shiftY 内容顶 → 最后一条条底)
325
+ var PAD_BOTTOM = 12; // 刻度下方留白
326
+ // 题目维度与全局维度之间插一条分隔线(方案③)
327
+ var dividerIndex = useMemo(function () { return items.findIndex(function (item) { return item.isGlobal; }); }, [items]);
328
+ var dividerHeight = dividerIndex > 0 ? DIVIDER_HEIGHT : 0;
329
+ // 条形区域高度(shiftY 内容顶 → 最后一条条底),含分隔线占位
292
330
  var contentHeight = useMemo(function () {
293
331
  if (items.length === 0)
294
332
  return 0;
295
- return TOP_OFFSET + (items.length - 1) * ITEM_SPACING + MAX_HEIGHT;
296
- }, [items]);
297
- // 可见内容块高度(条图 → 刻度 → 胶囊),不含外留白
298
- var bodyHeight = contentHeight + DASH_TAIL + TICK_LINE + GAP_CAPTION + CAPTION_HEIGHT;
299
- // 画布高:≥300,且内容上下各保留 ≥CAPTION_PAD_BOTTOM 的对称留白
300
- var canvasHeight = useMemo(function () { return Math.max(CANVAS_HEIGHT, bodyHeight + 2 * CAPTION_PAD_BOTTOM); }, [bodyHeight]);
333
+ return TOP_OFFSET + (items.length - 1) * ITEM_SPACING + MAX_HEIGHT + dividerHeight;
334
+ }, [items, dividerHeight]);
335
+ // 可见内容块高度(条图 → 刻度),不含外留白
336
+ var bodyHeight = contentHeight + DASH_TAIL + TICK_LINE;
337
+ // 画布高:≥300,且内容上下各保留 ≥PAD_BOTTOM 的对称留白
338
+ var canvasHeight = useMemo(function () { return Math.max(CANVAS_HEIGHT, bodyHeight + 2 * PAD_BOTTOM); }, [bodyHeight]);
301
339
  // 内容块在画布内垂直居中 → 上留白 = 下留白
302
340
  var shiftY = useMemo(function () {
303
341
  if (bodyHeight <= 0)
@@ -306,7 +344,6 @@ var Graph = function (_a) {
306
344
  }, [bodyHeight, canvasHeight]);
307
345
  var dashEndY = shiftY + contentHeight + DASH_TAIL; // 虚线终点 = 末条条底 + DASH_TAIL
308
346
  var tickMidY = shiftY + contentHeight + DASH_TAIL + Math.round(TICK_LINE / 2);
309
- var captionY = shiftY + contentHeight + DASH_TAIL + TICK_LINE + GAP_CAPTION; // 胶囊顶
310
347
  // 左标签列宽度贴合最长维度名,压缩文字与条形之间留白
311
348
  var leftLabelWidth = useMemo(function () {
312
349
  if (items.length === 0)
@@ -359,6 +396,8 @@ var Graph = function (_a) {
359
396
  height: contentHeight,
360
397
  shiftY: shiftY,
361
398
  dashEndY: dashEndY,
399
+ dividerIndex: dividerIndex,
400
+ dividerHeight: dividerHeight,
362
401
  };
363
402
  pathRef.current = [];
364
403
  draw(layout, items, pathRef.current, ctx);
@@ -368,20 +407,8 @@ var Graph = function (_a) {
368
407
  x80: leftLabelWidth + LEVEL_WIDTHS.Bad + LEVEL_WIDTHS.Good,
369
408
  xRight: leftLabelWidth + MAX_WIDTH,
370
409
  });
371
- drawCaption(ctx, canvasWidth, captionY);
372
410
  }
373
- }, [
374
- ctx,
375
- items,
376
- contentHeight,
377
- shiftY,
378
- leftLabelWidth,
379
- canvasWidth,
380
- ITEM_SPACING,
381
- dashEndY,
382
- tickMidY,
383
- captionY,
384
- ]);
411
+ }, [ctx, items, contentHeight, shiftY, leftLabelWidth, canvasWidth, ITEM_SPACING, dashEndY, tickMidY, dividerIndex, dividerHeight]);
385
412
  var handleMouseMove = useCallback(function (e) {
386
413
  if (ctx) {
387
414
  var p = pathRef.current.find(function (p) { return isInPath(e.nativeEvent.offsetX, e.nativeEvent.offsetY, p, ctx); });
@@ -23,6 +23,7 @@ var Index = function () {
23
23
  return collection.map(function (item) { return ({
24
24
  name: item.name,
25
25
  score: item.avgScore,
26
+ isGlobal: item.source === 2,
26
27
  }); });
27
28
  }, [collection]);
28
29
  if (!showAiDimension)
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").MemoExoticComponent<() => JSX.Element | null>;
3
+ export default _default;
@@ -0,0 +1,82 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
28
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
+ import { ModuleTitle } from '../ModuleTitle';
30
+ import ScoreSlider from '../WorkPlaces/ScoreSlider';
31
+ import WorkPlace from '../WorkPlaces/WorkPlace';
32
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
33
+ import { Chip, EditIcon, IconButton, Typography } from 'fbm-ui';
34
+ import { Box, Collapse, Stack } from 'fbm-ui/lib/mui';
35
+ import { memo, useCallback, useState } from 'react';
36
+ var BORDER = '1px solid rgba(0, 0, 0, 0.08)';
37
+ var TEXT_MUTED = 'rgba(0, 0, 0, 0.56)';
38
+ // 得分颜色与题目维度保持一致(优秀 / 适中 / 欠佳)
39
+ var SCORE_COLOR = {
40
+ 1: '#4CAF50',
41
+ 2: 'rgba(0, 0, 0, 0.86)',
42
+ 3: '#FF6C6C',
43
+ };
44
+ var scoreLevelOf = function (score) { return (score >= 80 ? 1 : score >= 60 ? 2 : 3); };
45
+ var scoreTextOf = function (score) { return (score >= 80 ? '优秀' : score >= 60 ? '适中' : '欠佳'); };
46
+ var thStyle = {
47
+ textAlign: 'left',
48
+ padding: '10px 12px',
49
+ fontWeight: 500,
50
+ color: TEXT_MUTED,
51
+ whiteSpace: 'nowrap',
52
+ };
53
+ var tdStyle = {
54
+ padding: '12px',
55
+ verticalAlign: 'middle',
56
+ };
57
+ /**
58
+ * 全局维度(只绑试卷、不绑题目):紧凑表格展示,行内展开可改分 / 改评价。
59
+ * 没有配置全局维度时不渲染(老报告行为不变)。
60
+ */
61
+ var Index = function () {
62
+ var _a = useAiReportStore(function (store) { return [
63
+ store.reportResult,
64
+ store.operableButtons,
65
+ ]; }), reportResult = _a.reportResult, showAiDimension = _a.showAiDimension, canEditAiDimension = _a.canEditAiDimension, updateReportResult = _a.updateReportResult, onScoreChange = _a.onScoreChange;
66
+ var _b = reportResult || {}, _c = _b.orderToken, orderToken = _c === void 0 ? '' : _c, _d = _b.globalDimensions, globalDimensions = _d === void 0 ? [] : _d;
67
+ var _e = __read(useState(-1), 2), expandedIndex = _e[0], setExpandedIndex = _e[1];
68
+ var handleScoreChange = useCallback(function (index, score) {
69
+ var _a;
70
+ var list = ((reportResult === null || reportResult === void 0 ? void 0 : reportResult.globalDimensions) || []).map(function (item, i) {
71
+ return i === index ? __assign(__assign({}, item), { score: score, scoreText: scoreTextOf(score), scoreLevel: scoreLevelOf(score) }) : item;
72
+ });
73
+ // 先乐观更新当前展示,再交给宿主持久化(与题目维度同一套回调)
74
+ updateReportResult(__assign(__assign({}, reportResult), { globalDimensions: list }));
75
+ onScoreChange === null || onScoreChange === void 0 ? void 0 : onScoreChange({ flowStepToken: (_a = list[index]) === null || _a === void 0 ? void 0 : _a.token, type: 1, score: score });
76
+ }, [onScoreChange, reportResult, updateReportResult]);
77
+ if (!showAiDimension || globalDimensions.length === 0) {
78
+ return null;
79
+ }
80
+ return (_jsxs(Box, __assign({ id: "report-global-dimension", px: 2, mt: 3 }, { children: [_jsx(Box, __assign({ mb: 1.5 }, { children: _jsx(ModuleTitle, { title: "\u5168\u5C40\u7EF4\u5EA6", iconVariant: "dimension" }) })), _jsx(Box, __assign({ sx: { border: BORDER, borderRadius: 2, overflow: 'hidden' } }, { children: _jsxs("table", __assign({ style: { width: '100%', borderCollapse: 'collapse', fontSize: 13, color: 'rgba(0, 0, 0, 0.86)' } }, { children: [_jsx("thead", { children: _jsxs("tr", __assign({ style: { background: 'rgba(0, 0, 0, 0.02)' } }, { children: [_jsx("th", __assign({ style: thStyle }, { children: "\u7EF4\u5EA6" })), _jsx("th", __assign({ style: thStyle }, { children: "\u6765\u6E90" })), _jsx("th", __assign({ style: thStyle }, { children: "\u6743\u91CD" })), _jsx("th", __assign({ style: thStyle }, { children: "\u5F97\u5206" })), _jsx("th", __assign({ style: thStyle }, { children: "\u4E00\u53E5\u8BDD\u8BC4\u4EF7" })), _jsx("th", __assign({ style: __assign(__assign({}, thStyle), { width: 56, textAlign: 'center' }) }, { children: "\u64CD\u4F5C" }))] })) }), globalDimensions.map(function (v, index) { return (_jsxs("tbody", { children: [_jsxs("tr", __assign({ style: { borderTop: BORDER } }, { children: [_jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { fontWeight: 500 }) }, { children: v.name })), _jsx("td", __assign({ style: tdStyle }, { children: _jsx(Chip, { color: "success", label: "\u5168\u5C40", size: "small" }) })), _jsxs("td", __assign({ style: __assign(__assign({}, tdStyle), { color: TEXT_MUTED }) }, { children: [v.weight, "%"] })), _jsxs("td", __assign({ style: tdStyle }, { children: [_jsx(Box, __assign({ component: "span", sx: { color: SCORE_COLOR[v.scoreLevel] || 'rgba(0, 0, 0, 0.86)', fontWeight: 600 } }, { children: v.score })), _jsx(Box, __assign({ component: "span", sx: { color: TEXT_MUTED, ml: 0.5, fontSize: 12 } }, { children: v.scoreText }))] })), _jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { color: 'rgba(0, 0, 0, 0.6)' }) }, { children: v.answer })), _jsx("td", __assign({ style: __assign(__assign({}, tdStyle), { textAlign: 'center' }) }, { children: canEditAiDimension && (_jsx(IconButton, __assign({ size: "small", onClick: function () { return setExpandedIndex(expandedIndex === index ? -1 : index); } }, { children: _jsx(EditIcon, {}) }))) }))] })), _jsx("tr", { children: _jsx("td", __assign({ colSpan: 6, style: { padding: 0 } }, { children: _jsx(Collapse, __assign({ in: expandedIndex === index }, { children: _jsxs(Box, __assign({ sx: { px: 2, pt: 1.5, pb: 2, bgcolor: '#FAFBFA', borderTop: BORDER } }, { children: [_jsxs(Typography, __assign({ variant: "caption", color: "textSecondary", display: "block", mb: 1 }, { children: ["\u8BC4\u4EF7\u6807\u51C6\uFF1A", v.define || '—'] })), _jsx(ScoreSlider, { width: "100%", isShowLabel: true, score: v.score, scoreText: v.scoreText, scoreLevel: v.scoreLevel, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleScoreChange(index, score); } }), _jsx(Stack, __assign({ mt: 1.5 }, { children: _jsx(WorkPlace, { thirdOrderID: orderToken, token: v.token, canEdit: canEditAiDimension, answer: v.answer, mode: "show" }) }))] })) })) })) })] }, v.token || v.name)); })] })) }))] })));
81
+ };
82
+ export default memo(Index);
@@ -3,5 +3,5 @@ export declare const ModuleTitle: ({ title, action, icon, iconVariant, }: {
3
3
  title: React.ReactNode;
4
4
  action?: React.ReactNode;
5
5
  icon?: string | undefined;
6
- iconVariant?: "doc" | "person" | "shield" | undefined;
6
+ iconVariant?: "doc" | "person" | "shield" | "dimension" | undefined;
7
7
  }) => JSX.Element;
@@ -29,7 +29,9 @@ export var ModuleTitle = function (_a) {
29
29
  // 资料收集:人形剪影
30
30
  _jsxs("svg", __assign({ width: "16", height: "16", viewBox: "0 0 24 24", fill: "none" }, { children: [_jsx("circle", { cx: "12", cy: "8", r: "3.6", fill: "#fff" }), _jsx("path", { d: "M4 20c.8-4 4-6 8-6s7.2 2 8 6", stroke: "#fff", strokeWidth: "2", strokeLinecap: "round" })] }))) : iconVariant === 'shield' ? (
31
31
  // 作弊风险:盾牌 + 感叹号
32
- _jsxs("svg", __assign({ width: "16", height: "16", viewBox: "0 0 24 24", fill: "none" }, { children: [_jsx("path", { d: "M12 2.5 5 5v6c0 4.5 3 8 7 9.5 4-1.5 7-5 7-9.5V5l-7-2.5Z", fill: "#fff" }), _jsx("rect", { x: "11", y: "6.6", width: "2", height: "5.4", rx: "1", fill: "#41C446" }), _jsx("rect", { x: "11", y: "13.6", width: "2", height: "2.4", rx: "1", fill: "#41C446" })] }))) : (
32
+ _jsxs("svg", __assign({ width: "16", height: "16", viewBox: "0 0 24 24", fill: "none" }, { children: [_jsx("path", { d: "M12 2.5 5 5v6c0 4.5 3 8 7 9.5 4-1.5 7-5 7-9.5V5l-7-2.5Z", fill: "#fff" }), _jsx("rect", { x: "11", y: "6.6", width: "2", height: "5.4", rx: "1", fill: "#41C446" }), _jsx("rect", { x: "11", y: "13.6", width: "2", height: "2.4", rx: "1", fill: "#41C446" })] }))) : iconVariant === 'dimension' ? (
33
+ // 全局维度:三块维度格子
34
+ _jsxs("svg", __assign({ width: "14", height: "14", viewBox: "0 0 24 24", fill: "none" }, { children: [_jsx("rect", { x: "3.5", y: "3.5", width: "7.5", height: "7.5", rx: "2", fill: "#fff" }), _jsx("rect", { x: "13", y: "3.5", width: "7.5", height: "7.5", rx: "2", fill: "#fff", opacity: "0.75" }), _jsx("rect", { x: "3.5", y: "13", width: "17", height: "7.5", rx: "2", fill: "#fff" })] }))) : (
33
35
  // 默认/面试详情:文档 + 双横线
34
36
  _jsxs("svg", __assign({ width: "16", height: "16", viewBox: "0 0 24 24", fill: "none" }, { children: [_jsx("rect", { x: "5", y: "3", width: "14", height: "18", rx: "2.5", fill: "#fff" }), _jsx("rect", { x: "8.5", y: "7", width: "7", height: "1.8", rx: "0.9", fill: "#41C446" }), _jsx("rect", { x: "8.5", y: "11", width: "7", height: "1.8", rx: "0.9", fill: "#41C446" }), _jsx("rect", { x: "8.5", y: "15", width: "4.5", height: "1.8", rx: "0.9", fill: "#41C446" })] }))) }))), _jsx(Typography, __assign({ fontWeight: 700, sx: { color: 'rgba(0,0,0,0.86)', fontSize: 18, lineHeight: '24px' } }, { children: title }))] })), action && _jsx(Box, __assign({ sx: { position: 'absolute', top: 0, right: 0 } }, { children: action }))] })) }));
35
37
  };
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
8
8
  export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
9
9
  children?: import("react").ReactNode;
10
10
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
11
- color?: "inherit" | "disabled" | "action" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
11
+ color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
12
12
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
13
13
  htmlColor?: string | undefined;
14
14
  shapeRendering?: string | undefined;
15
15
  sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
16
16
  titleAccess?: string | undefined;
17
17
  viewBox?: string | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "method" | "d" | "y" | "values" | "end" | "href" | "viewBox" | "max" | "media" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "method" | "d" | "y" | "name" | "type" | "filter" | "fill" | "values" | "style" | "clipPath" | "mask" | "path" | "children" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
19
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "titleAccess" | "viewBox"> & {
20
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
21
21
  children?: import("react").ReactNode;
22
22
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
3
- color?: "primary" | "secondary" | undefined;
3
+ color?: "secondary" | "primary" | undefined;
4
4
  classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
5
5
  colorPrimary?: string | undefined;
6
6
  colorSecondary?: string | undefined;
@@ -56,7 +56,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
56
56
  valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
57
57
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
58
58
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
59
- }, "name" | "classes" | "color" | "scale" | "track" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "step" | "size" | "value" | "max" | "min" | "orientation" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
59
+ }, "name" | "track" | "size" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "value" | "disabled" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
60
60
  export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
61
61
  children?: import("react").ReactNode;
62
62
  } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComponent<{
3
- color?: "primary" | "secondary" | undefined;
3
+ color?: "secondary" | "primary" | undefined;
4
4
  classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
5
5
  colorPrimary?: string | undefined;
6
6
  colorSecondary?: string | undefined;
@@ -56,7 +56,7 @@ export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComp
56
56
  valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
57
57
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
58
58
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
59
- }, "name" | "classes" | "color" | "scale" | "track" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "step" | "size" | "value" | "max" | "min" | "orientation" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
59
+ }, "name" | "track" | "size" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "value" | "disabled" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
60
60
  export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
61
61
  children?: import("react").ReactNode;
62
62
  } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -28,6 +28,8 @@ export interface Collection {
28
28
  rank: number;
29
29
  total: number;
30
30
  avgScore: number;
31
+ /** 维度来源 1=题目维度 2=全局维度(老报告不返回该字段) */
32
+ source?: number;
31
33
  }
32
34
  export interface AnalysisResult {
33
35
  text: string;
@@ -94,6 +96,18 @@ export interface WorkPlaceAbility {
94
96
  scoreText: string;
95
97
  token: string;
96
98
  }
99
+ /** 全局维度(只绑试卷、不绑题目,按整场回答统一评价) */
100
+ export interface GlobalDimensionAbility {
101
+ token: string;
102
+ name: string;
103
+ define: string;
104
+ score: number;
105
+ scoreText: string;
106
+ scoreLevel: number;
107
+ weight: number;
108
+ source: number;
109
+ answer: string;
110
+ }
97
111
  export interface WorkPlaceScoreInfo {
98
112
  score: number;
99
113
  scoreText: string;
@@ -175,6 +189,8 @@ export interface AiInterviewReportList {
175
189
  faceAnalysis: FaceAnalysis;
176
190
  evaluations: Array<any>;
177
191
  workplaces: WorkPlaceAbility[];
192
+ /** 全局维度(只绑试卷、不绑题目);没有配置时后端不返回 */
193
+ globalDimensions?: GlobalDimensionAbility[];
178
194
  suggestion: Suggestion;
179
195
  summaryText: SummaryText;
180
196
  model: 'pro' | 'standard';
@@ -2,16 +2,16 @@
2
2
  export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
3
3
  children?: import("react").ReactNode;
4
4
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
- color?: "inherit" | "disabled" | "action" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
5
+ color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  shapeRendering?: string | undefined;
9
9
  sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
10
10
  titleAccess?: string | undefined;
11
11
  viewBox?: string | undefined;
12
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "method" | "d" | "y" | "values" | "end" | "href" | "viewBox" | "max" | "media" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
12
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "method" | "d" | "y" | "name" | "type" | "filter" | "fill" | "values" | "style" | "clipPath" | "mask" | "path" | "children" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
13
13
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
14
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "titleAccess" | "viewBox"> & {
14
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
15
15
  children?: import("react").ReactNode;
16
16
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
17
  export declare const ListRow: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
@@ -26,4 +26,4 @@ export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent
26
26
  TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
27
27
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
28
28
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
29
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "autoFocus" | "selected" | "divider" | "dense" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
29
+ }, "selected" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "autoFocus" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "divider" | "dense" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { QuestionModelData, QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
2
+ import { GlobalDimension, QuestionModelData, QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
3
3
  export declare const useQuestionModelStore: (depsFn?: import("hox/es/types").DepsFn<{
4
4
  isEdit: boolean;
5
5
  questionModelData: QuestionModelData | undefined;
@@ -8,6 +8,7 @@ export declare const useQuestionModelStore: (depsFn?: import("hox/es/types").Dep
8
8
  removeModel: (index: number) => void;
9
9
  updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
10
10
  updateModelWeight: (value: string, index: number) => void;
11
+ updateGlobalDimensions: (dimensions: GlobalDimension[]) => void;
11
12
  }> | undefined) => {
12
13
  isEdit: boolean;
13
14
  questionModelData: QuestionModelData | undefined;
@@ -16,6 +17,7 @@ export declare const useQuestionModelStore: (depsFn?: import("hox/es/types").Dep
16
17
  removeModel: (index: number) => void;
17
18
  updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
18
19
  updateModelWeight: (value: string, index: number) => void;
20
+ updateGlobalDimensions: (dimensions: GlobalDimension[]) => void;
19
21
  }, getQuestionModelStore: () => {
20
22
  isEdit: boolean;
21
23
  questionModelData: QuestionModelData | undefined;
@@ -24,4 +26,5 @@ export declare const useQuestionModelStore: (depsFn?: import("hox/es/types").Dep
24
26
  removeModel: (index: number) => void;
25
27
  updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
26
28
  updateModelWeight: (value: string, index: number) => void;
29
+ updateGlobalDimensions: (dimensions: GlobalDimension[]) => void;
27
30
  } | undefined;