eli-video-interview 1.2.29-beta.2 → 1.2.29-beta.3
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/esm/components/BigBallSvg/styled.d.ts +2 -2
- package/esm/components/ScoreBigBall/styled.d.ts +1 -1
- package/esm/components/ScrollDialogContent/index.d.ts +1 -1
- package/esm/components/VideoPreview/styled.d.ts +3 -3
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/modules/ai-ability/Root.js +29 -17
- package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +13 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/index.js +126 -0
- package/esm/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/AddAbility/index.js +178 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +125 -21
- package/esm/modules/ai-ability/index.js +1 -1
- package/esm/modules/ai-ability/interface.d.ts +27 -0
- package/esm/modules/ai-ability/styled.d.ts +4 -1
- package/esm/modules/ai-ability/styled.js +5 -1
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
- package/esm/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +3 -3
- package/esm/modules/ai-report/components/MenuAnchor/index.js +103 -8
- package/esm/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +5 -5
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +7 -7
- package/esm/modules/ai-report/components/WorkPlaces/index.js +2 -3
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +4 -4
- package/esm/modules/ai-report/index.js +1 -0
- package/esm/modules/ai-report/interface.d.ts +10 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +10 -10
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
- package/esm/services/ai-ability.d.ts +12 -3
- package/esm/services/ai-ability.js +5 -2
- package/lib/components/BigBallSvg/styled.d.ts +2 -2
- package/lib/components/ScoreBigBall/styled.d.ts +1 -1
- package/lib/components/ScrollDialogContent/index.d.ts +1 -1
- package/lib/components/VideoPreview/styled.d.ts +3 -3
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -3
- package/lib/modules/ai-ability/Root.js +29 -17
- package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +13 -0
- package/lib/modules/ai-ability/components/AbilityFormItem/index.js +128 -0
- package/lib/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/AddAbility/index.js +183 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +127 -20
- package/lib/modules/ai-ability/index.js +1 -1
- package/lib/modules/ai-ability/interface.d.ts +27 -0
- package/lib/modules/ai-ability/styled.d.ts +4 -1
- package/lib/modules/ai-ability/styled.js +5 -1
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
- package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
- package/lib/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +3 -3
- package/lib/modules/ai-report/components/MenuAnchor/index.js +101 -9
- package/lib/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +5 -5
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +7 -7
- package/lib/modules/ai-report/components/WorkPlaces/index.js +1 -2
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +4 -4
- package/lib/modules/ai-report/index.js +1 -0
- package/lib/modules/ai-report/interface.d.ts +10 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +10 -10
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
- package/lib/services/ai-ability.d.ts +12 -3
- package/lib/services/ai-ability.js +9 -4
- package/package.json +1 -1
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +0 -1
- package/esm/modules/ai-report/components/MenuAnchor/MenuAnchor.d.ts +0 -4
- package/esm/modules/ai-report/components/MenuAnchor/MenuAnchor.js +0 -106
- package/esm/modules/ai-report/components/MenuAnchor/interface.d.ts +0 -10
- package/esm/modules/ai-report/components/MenuAnchor/interface.js +0 -1
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +0 -2
- package/lib/modules/ai-report/components/MenuAnchor/MenuAnchor.d.ts +0 -4
- package/lib/modules/ai-report/components/MenuAnchor/MenuAnchor.js +0 -108
- package/lib/modules/ai-report/components/MenuAnchor/interface.d.ts +0 -10
- package/lib/modules/ai-report/components/MenuAnchor/interface.js +0 -2
|
@@ -45,22 +45,80 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
48
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
+
import AbilityFormItem from '../AbilityFormItem';
|
|
50
|
+
import { GetAbilityDetail, PostQuestionCollectionUpsert } from "../../../../services/ai-ability";
|
|
51
51
|
import { useRequest } from 'ahooks';
|
|
52
|
-
import {
|
|
52
|
+
import { Box, Button, Divider, Drawer, Message, TextField, Typography, useTextField } from 'fbm-ui';
|
|
53
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
54
|
+
var initialValues = {
|
|
55
|
+
workPlaceItems: [
|
|
56
|
+
{
|
|
57
|
+
name: '能力定义',
|
|
58
|
+
type: 1,
|
|
59
|
+
answer: '',
|
|
60
|
+
items: [],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: '次表现-优秀表现',
|
|
64
|
+
type: 2,
|
|
65
|
+
answer: '',
|
|
66
|
+
items: [],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: '优次表现-较差表现',
|
|
70
|
+
type: 3,
|
|
71
|
+
answer: '',
|
|
72
|
+
items: [],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: '考察建议-面试题目',
|
|
76
|
+
type: 4,
|
|
77
|
+
answer: '',
|
|
78
|
+
items: [],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: '考察建议-评分关键点',
|
|
82
|
+
type: 5,
|
|
83
|
+
answer: '',
|
|
84
|
+
items: [],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
53
88
|
var UpdateAbility = function (props) {
|
|
54
|
-
var open = props.open, _a = props.name, name =
|
|
55
|
-
var
|
|
56
|
-
var
|
|
89
|
+
var open = props.open, _a = props.type, type = _a === void 0 ? 1 : _a, isWorkplace = props.isWorkplace, _b = props.name, name = _b === void 0 ? '' : _b, token = props.token, onClose = props.onClose, onSuccess = props.onSuccess;
|
|
90
|
+
var _c = useState(''), value = _c[0], setValue = _c[1];
|
|
91
|
+
var _d = useState(1), step = _d[0], setStep = _d[1];
|
|
92
|
+
var _e = useState('show'), mode = _e[0], setMode = _e[1];
|
|
93
|
+
var firstLoad = useRef(true);
|
|
94
|
+
var _f = useState(false), showAiDefineDetail = _f[0], setShowAiDefineDetail = _f[1];
|
|
95
|
+
// const [submitDisabled, setSubmitDisabled] = useState<boolean>(true);
|
|
96
|
+
var _g = useState(initialValues.workPlaceItems), workPlaceItems = _g[0], setWorkPlaceItems = _g[1];
|
|
97
|
+
var _h = useRequest(PostQuestionCollectionUpsert, {
|
|
57
98
|
manual: true,
|
|
58
99
|
onSuccess: function () {
|
|
59
|
-
Message.success("
|
|
100
|
+
Message.success("\u7F16\u8F91\u80FD\u529B\u6210\u529F");
|
|
60
101
|
onClose();
|
|
61
102
|
onSuccess();
|
|
62
103
|
},
|
|
63
|
-
}), run =
|
|
104
|
+
}), run = _h.run, loading = _h.loading;
|
|
105
|
+
var getAbilityDetail = useRequest(GetAbilityDetail, {
|
|
106
|
+
manual: true,
|
|
107
|
+
onSuccess: function (_a) {
|
|
108
|
+
var _b, _c;
|
|
109
|
+
var list = _a.data.list;
|
|
110
|
+
if (list.length) {
|
|
111
|
+
var res = (_c = (_b = list[0]) === null || _b === void 0 ? void 0 : _b.workPlaceItems) === null || _c === void 0 ? void 0 : _c.map(function (element) {
|
|
112
|
+
return __assign(__assign({}, element), { answer: element.items[0] || '' });
|
|
113
|
+
});
|
|
114
|
+
firstLoad.current = false;
|
|
115
|
+
if (res === null || res === void 0 ? void 0 : res.length) {
|
|
116
|
+
setWorkPlaceItems(res);
|
|
117
|
+
}
|
|
118
|
+
setShowAiDefineDetail(true);
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
}).run;
|
|
64
122
|
var nameTextField = useTextField({
|
|
65
123
|
value: value,
|
|
66
124
|
label: '能力名称',
|
|
@@ -75,41 +133,87 @@ var UpdateAbility = function (props) {
|
|
|
75
133
|
max: 7,
|
|
76
134
|
sx: {
|
|
77
135
|
height: '48px',
|
|
136
|
+
width: '320px',
|
|
137
|
+
marginTop: '16px',
|
|
78
138
|
},
|
|
79
139
|
});
|
|
140
|
+
var handleValue = useCallback(function (v) {
|
|
141
|
+
var index = workPlaceItems.findIndex(function (ele) { return ele.type === v.type; });
|
|
142
|
+
workPlaceItems.splice(index, 1, v);
|
|
143
|
+
var list = workPlaceItems;
|
|
144
|
+
setWorkPlaceItems(list);
|
|
145
|
+
}, [workPlaceItems]);
|
|
80
146
|
var handleOk = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var error, avocadoConfig;
|
|
147
|
+
var error, workPlaceItemsError, avocadoConfig;
|
|
82
148
|
return __generator(this, function (_a) {
|
|
83
149
|
switch (_a.label) {
|
|
84
150
|
case 0: return [4 /*yield*/, nameTextField.handleValidate()];
|
|
85
151
|
case 1:
|
|
86
152
|
error = _a.sent();
|
|
153
|
+
workPlaceItemsError = workPlaceItems.some(function (v) { return v.items.length === 0; });
|
|
87
154
|
if (!error) {
|
|
88
155
|
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
156
|
+
// 旧自定义能力
|
|
157
|
+
if (type === 3 && !isWorkplace) {
|
|
158
|
+
run({
|
|
159
|
+
name: value,
|
|
160
|
+
tag: value,
|
|
161
|
+
token: token,
|
|
162
|
+
mateData: {
|
|
163
|
+
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
164
|
+
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
else if (!workPlaceItemsError) {
|
|
169
|
+
// 职场能力
|
|
170
|
+
run({
|
|
171
|
+
name: value,
|
|
172
|
+
tag: value,
|
|
173
|
+
token: token,
|
|
174
|
+
workPlaceItems: workPlaceItems,
|
|
175
|
+
mateData: {
|
|
176
|
+
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
177
|
+
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
}
|
|
98
181
|
}
|
|
99
182
|
return [2 /*return*/];
|
|
100
183
|
}
|
|
101
184
|
});
|
|
102
|
-
}); }, [nameTextField, run, token, value]);
|
|
185
|
+
}); }, [nameTextField, run, token, value, isWorkplace, type, workPlaceItems]);
|
|
186
|
+
var footer = useCallback(function () {
|
|
187
|
+
return step === 1 ? (_jsx(Box, __assign({ display: "flex", padding: "12px 16px" }, { children: type === 1 ? (_jsx(_Fragment, {})) : (_jsx(Button, __assign({ variant: "outlined", color: "inherit", onClick: function () { return setStep(2); } }, { children: "\u7F16\u8F91" }))) }))) : (_jsxs(Box, __assign({ display: "flex", justifyContent: "flex-end", padding: "12px 16px" }, { children: [_jsx(Button, __assign({ sx: { mr: 1, fontWeight: 400 }, variant: "text", color: "inherit", onClick: onClose }, { children: "\u53D6\u6D88" })), _jsx(Button, __assign({ loading: loading, onClick: handleOk }, { children: "\u4FDD\u5B58" }))] })));
|
|
188
|
+
}, [type, step, loading, setStep, handleOk, onClose]);
|
|
103
189
|
useEffect(function () {
|
|
104
190
|
setValue(name);
|
|
105
191
|
}, [name]);
|
|
106
192
|
useEffect(function () {
|
|
107
193
|
if (!open) {
|
|
108
194
|
setValue('');
|
|
195
|
+
setWorkPlaceItems([]);
|
|
196
|
+
setStep(1);
|
|
109
197
|
nameTextField.setError();
|
|
110
198
|
}
|
|
111
199
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
200
|
}, [open]);
|
|
113
|
-
|
|
201
|
+
useEffect(function () {
|
|
202
|
+
setMode(step === 1 ? 'show' : 'edit');
|
|
203
|
+
}, [step]);
|
|
204
|
+
useEffect(function () {
|
|
205
|
+
if (type === 3 && !isWorkplace)
|
|
206
|
+
return;
|
|
207
|
+
if (token) {
|
|
208
|
+
setShowAiDefineDetail(false);
|
|
209
|
+
getAbilityDetail({ tokens: [token] });
|
|
210
|
+
}
|
|
211
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
212
|
+
}, [token, name]);
|
|
213
|
+
useEffect(function () {
|
|
214
|
+
setWorkPlaceItems(workPlaceItems);
|
|
215
|
+
}, [workPlaceItems, setWorkPlaceItems]);
|
|
216
|
+
return (_jsxs(Drawer, __assign({ className: "abilityDrawer", title: '能力详情', open: open, footer: footer, onClose: onClose }, { children: [_jsx(Box, __assign({ style: { width: '556px' } }, { children: step === 1 ? (_jsxs(Typography, __assign({ variant: "body1", fontWeight: "medium" }, { children: ["\u80FD\u529B\u540D\u79F0\uFF1A", value] }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), _jsx(TextField, __assign({}, nameTextField))] })) })), !(type === 3 && !isWorkplace) && (_jsxs(Box, __assign({ style: { width: '556px' } }, { children: [_jsx(Divider, { style: { margin: '24px 0' } }), _jsx(Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), showAiDefineDetail &&
|
|
217
|
+
workPlaceItems.map(function (v) { return (_jsx(AbilityFormItem, { token: token, name: value, title: v.name, type: v.type, answer: v.answer, mode: mode, canReplace: mode === 'edit' ? true : false, onChange: handleValue }, v.type)); })] })))] })));
|
|
114
218
|
};
|
|
115
219
|
export default UpdateAbility;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import RootProvider from "../../components/RootProvider";
|
|
3
2
|
import AiAbilityRoot from './Root';
|
|
3
|
+
import RootProvider from "../../components/RootProvider";
|
|
4
4
|
var AiAbility = function () {
|
|
5
5
|
return (_jsx(RootProvider, { children: _jsx(AiAbilityRoot, {}) }));
|
|
6
6
|
};
|
|
@@ -5,7 +5,9 @@ export interface QuestionCollectionList {
|
|
|
5
5
|
type: 1 | 3;
|
|
6
6
|
sort: number;
|
|
7
7
|
updatedAt: number;
|
|
8
|
+
used: boolean;
|
|
8
9
|
isWorkplace: boolean;
|
|
10
|
+
workPlaceItems?: AiDefineItem[];
|
|
9
11
|
}
|
|
10
12
|
export interface QuestionCollectionListData {
|
|
11
13
|
list: QuestionCollectionList[];
|
|
@@ -14,3 +16,28 @@ export interface QuestionCollectionListData {
|
|
|
14
16
|
export interface QuestionCollectionListRes {
|
|
15
17
|
data: QuestionCollectionListData;
|
|
16
18
|
}
|
|
19
|
+
export interface AbilityProps {
|
|
20
|
+
open: boolean;
|
|
21
|
+
type: number;
|
|
22
|
+
isWorkplace?: boolean;
|
|
23
|
+
name?: string;
|
|
24
|
+
token?: string;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
onSuccess: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface AiDefineItem {
|
|
29
|
+
name: string;
|
|
30
|
+
type: number;
|
|
31
|
+
answer?: string;
|
|
32
|
+
items: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface AiDefineData {
|
|
35
|
+
total: number;
|
|
36
|
+
list: AiDefineItem[];
|
|
37
|
+
}
|
|
38
|
+
export interface AiDefineRes {
|
|
39
|
+
data: AiDefineData;
|
|
40
|
+
}
|
|
41
|
+
export interface AbilityDetailRes {
|
|
42
|
+
data: AiDefineData;
|
|
43
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const AbilityRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const AbilityDrawer: import("@emotion/styled").StyledComponent<import("fbm-ui").DrawerProps & {
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { Box, styled } from 'fbm-ui';
|
|
1
|
+
import { Box, Drawer, styled } from 'fbm-ui';
|
|
2
2
|
export var AbilityRoot = styled(Box)({
|
|
3
3
|
width: '100%',
|
|
4
4
|
height: '100%',
|
|
5
5
|
overflow: 'auto',
|
|
6
6
|
});
|
|
7
|
+
export var AbilityDrawer = styled(Drawer)({
|
|
8
|
+
boxSizing: 'border-box',
|
|
9
|
+
width: '588px',
|
|
10
|
+
});
|
|
@@ -9,11 +9,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { willOrNotOptions } from './const';
|
|
14
14
|
import MainPoints from './MainPoints';
|
|
15
15
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
16
|
-
import { Box, CloseIcon, IconButton, InfoIcon, Input, Select, Tooltip, Typography } from 'fbm-ui';
|
|
16
|
+
import { Box, Chip, CloseIcon, IconButton, InfoIcon, Input, Select, Tooltip, Typography } from 'fbm-ui';
|
|
17
17
|
import { ListItem, ListItemText } from 'fbm-ui/lib/mui';
|
|
18
18
|
import update from 'immutability-helper';
|
|
19
19
|
import { useCallback } from 'react';
|
|
@@ -39,6 +39,6 @@ var AnalysisItem = function (props) {
|
|
|
39
39
|
var value = _a.target.value;
|
|
40
40
|
updateAiAbilitiesWeight(value, index);
|
|
41
41
|
}, [updateAiAbilitiesWeight, index]);
|
|
42
|
-
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsx(Tooltip, __assign({ title: "".concat(desc) }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))), type === 8 && (_jsx(Select, { sx: { width: 150, ml: 1 }, options: willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && (_jsx(Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && _jsx(MainPoints, { extra: extra, index: index })] }));
|
|
42
|
+
return (_jsxs(Box, { children: [_jsxs(ListItem, __assign({ sx: { pl: 0, pr: 4 }, secondaryAction: _jsx(IconButton, __assign({ sx: { position: 'relative', left: 16 }, onClick: handleRemove }, { children: _jsx(CloseIcon, {}) })) }, { children: [_jsx(ListItemText, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle2" }, { children: name })), abilityType === 2 && !isWorkplace ? (_jsx(Typography, __assign({ variant: "body2", style: { color: 'RGBA(0, 0, 0, 0.26)', fontSize: 12 }, ml: 1 }, { children: desc }))) : (_jsxs(_Fragment, { children: [abilityType === 2 && isWorkplace && _jsx(Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } }), _jsx(Tooltip, __assign({ title: "".concat(desc) }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), type === 8 && (_jsx(Select, { sx: { width: 150, ml: 1 }, options: willOrNotOptions, value: (_a = JSON.parse(extra)) === null || _a === void 0 ? void 0 : _a.expect, size: "small", onChange: handleWillOrNotChange }))] })) }), (abilityType === 1 || (abilityType === 2 && isWorkplace)) && (_jsx(Input, { sx: { width: 84, mr: 1 }, value: weight, disabled: index === aiAbilities.length - 1, size: "small", endAdornment: "%", onChange: handleWeightChange }))] })), type === 6 && _jsx(MainPoints, { extra: extra, index: index })] }));
|
|
43
43
|
};
|
|
44
44
|
export default AnalysisItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ListItem: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const AccordionRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
5
|
export declare const AccordionTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
8
|
export declare const AccordionSubTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const CustomUploadCardRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
5
|
export declare const CustomUploadCardTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
8
|
export declare const CustomUploadButtonRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
11
|
export declare const CustomUploadedImgRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
12
12
|
children?: import("react").ReactNode;
|
|
13
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const QuestionModelRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -4,8 +4,8 @@ export declare const PreviewRoot: import("@emotion/styled").StyledComponent<{
|
|
|
4
4
|
classes?: Partial<import("fbm-ui/lib/mui").PaperClasses> | undefined;
|
|
5
5
|
elevation?: number | undefined;
|
|
6
6
|
square?: boolean | undefined;
|
|
7
|
-
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
7
|
+
sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
8
8
|
variant?: "elevation" | "outlined" | undefined;
|
|
9
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant" | "square"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
11
|
+
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant" | "square"> & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const _default:
|
|
1
|
+
import { MenuAnchorProps } from '../../interface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<MenuAnchorProps & React.RefAttributes<any>>>;
|
|
4
4
|
export default _default;
|
|
@@ -9,12 +9,107 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { REPORT_MODULE_MAP } from "../../../../constants/ai-report";
|
|
14
|
+
import { PostAiInterviewResult } from "../../../../services/ai-report";
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { useRequest } from 'ahooks';
|
|
17
|
+
import { Box, MenuIcon } from 'fbm-ui';
|
|
18
|
+
import { List, ListItem, ListItemButton, ListItemText, Popover } from 'fbm-ui/lib/mui';
|
|
19
|
+
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
20
|
+
var MenuAnchor = forwardRef(function (props) {
|
|
21
|
+
var _a = useState(null), anchorEl = _a[0], setAnchorEl = _a[1];
|
|
22
|
+
var open = Boolean(anchorEl);
|
|
23
|
+
// 接口请求
|
|
24
|
+
var token = props.token, showAiDimension = props.showAiDimension;
|
|
25
|
+
var firstLoad = useRef(true);
|
|
26
|
+
var _b = useState([]), list = _b[0], setList = _b[1];
|
|
27
|
+
var _c = useAiReportStore(), reportResult = _c.reportResult, updateState = _c.updateState, updateReportResult = _c.updateReportResult;
|
|
28
|
+
var postAiInterviewResult = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
29
|
+
manual: true,
|
|
30
|
+
onSuccess: function (_a) {
|
|
31
|
+
var list = _a.data.list;
|
|
32
|
+
var result = list[0];
|
|
33
|
+
updateReportResult(result);
|
|
34
|
+
if (firstLoad.current) {
|
|
35
|
+
firstLoad.current = false;
|
|
36
|
+
handleMenuList(result);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
}).run;
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
firstLoad.current = true;
|
|
42
|
+
postAiInterviewResult();
|
|
43
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
|
+
}, [token]);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
updateState(props);
|
|
47
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
+
}, [props]);
|
|
49
|
+
// 处理菜单数据
|
|
50
|
+
var handleMenuList = function (reportResult) {
|
|
51
|
+
if (!reportResult.status) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var resList = [REPORT_MODULE_MAP['videoQuestion']];
|
|
55
|
+
var _a = reportResult.collection, collection = _a === void 0 ? [] : _a, _b = reportResult.workplaces, workplaces = _b === void 0 ? [] : _b, _c = reportResult.suggestion, suggestion = _c === void 0 ? { show: false } : _c, _d = reportResult.evaluations, evaluations = _d === void 0 ? [] : _d;
|
|
56
|
+
if (showAiDimension) {
|
|
57
|
+
if (suggestion === null || suggestion === void 0 ? void 0 : suggestion.show) {
|
|
58
|
+
resList.unshift(REPORT_MODULE_MAP['suggestion']);
|
|
59
|
+
}
|
|
60
|
+
if (collection.length > 0 && evaluations.length > 0) {
|
|
61
|
+
resList.unshift(REPORT_MODULE_MAP['evaluate']);
|
|
62
|
+
}
|
|
63
|
+
if (workplaces.length > 0) {
|
|
64
|
+
resList.unshift(REPORT_MODULE_MAP['workplace']);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (collection.length > 0) {
|
|
68
|
+
resList.unshift(REPORT_MODULE_MAP['score']);
|
|
69
|
+
}
|
|
70
|
+
console.log(resList);
|
|
71
|
+
setList(resList);
|
|
72
|
+
};
|
|
73
|
+
var handlePopoverOpen = function (event) {
|
|
74
|
+
setAnchorEl(event.currentTarget);
|
|
75
|
+
};
|
|
76
|
+
var handlePopoverClose = function () {
|
|
77
|
+
setAnchorEl(null);
|
|
78
|
+
};
|
|
79
|
+
var scrollToAnchor = useCallback(function (id) {
|
|
80
|
+
if (id) {
|
|
81
|
+
var anchorEle = document.getElementById(id);
|
|
82
|
+
if (anchorEle) {
|
|
83
|
+
anchorEle.scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, []);
|
|
87
|
+
var content = useMemo(function () {
|
|
88
|
+
return (_jsx(List, __assign({ style: { minWidth: 150 }, onMouseLeave: handlePopoverClose }, { children: list.map(function (_a) {
|
|
89
|
+
var name = _a.name, id = _a.id;
|
|
90
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsx(ListItemButton, __assign({ onClick: function () { return scrollToAnchor(id); } }, { children: _jsx(ListItemText, { primary: name }) })) }), id));
|
|
91
|
+
}) })));
|
|
92
|
+
}, [scrollToAnchor, list]);
|
|
93
|
+
return (_jsxs(_Fragment, { children: [(reportResult === null || reportResult === void 0 ? void 0 : reportResult.status) && (_jsx(Box, __assign({ style: {
|
|
94
|
+
display: 'flex',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
justifyContent: 'center',
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
top: 20,
|
|
99
|
+
right: -10,
|
|
100
|
+
zIndex: 999,
|
|
101
|
+
height: 32,
|
|
102
|
+
width: 32,
|
|
103
|
+
backgroundColor: '#fff',
|
|
104
|
+
borderRadius: 4,
|
|
105
|
+
boxShadow: '0px 2px 4px rgba(0,0,0, 0.08)',
|
|
106
|
+
}, "aria-owns": open ? 'menu-anchor-popover' : undefined, "aria-haspopup": "true", onClick: handlePopoverOpen, onMouseEnter: handlePopoverOpen }, { children: _jsx(MenuIcon, {}) }))), _jsx(Popover, __assign({ id: "menu-anchor-popover", open: open, anchorEl: anchorEl, anchorOrigin: {
|
|
107
|
+
vertical: 'bottom',
|
|
108
|
+
horizontal: 'right',
|
|
109
|
+
}, transformOrigin: {
|
|
110
|
+
vertical: -8,
|
|
111
|
+
horizontal: 'right',
|
|
112
|
+
}, onClose: handlePopoverClose }, { children: content }))] }));
|
|
18
113
|
});
|
|
19
|
-
|
|
20
|
-
export default memo(
|
|
114
|
+
MenuAnchor.displayName = 'MenuAnchor';
|
|
115
|
+
export default memo(MenuAnchor);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const RangeInput: import("@emotion/styled").StyledComponent<import("fbm-ui").BaseInputProps & import("@mui/material").OutlinedInputProps & import("@mui/material").InputProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
5
|
export declare const RangeTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ScoreTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
5
|
export declare const ScoreUnitTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
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" | "
|
|
11
|
+
color?: "inherit" | "disabled" | "action" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
12
12
|
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
13
13
|
htmlColor?: string | undefined;
|
|
14
14
|
shapeRendering?: string | undefined;
|
|
15
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
+
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
18
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "d" | "y" | "name" | "type" | "onLoad" | "fill" | "values" | "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" | "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" | "end" | "max" | "media" | "method" | "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" | "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" | "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
20
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
|
+
} & import("@mui/system/createStyled").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?: "
|
|
3
|
+
color?: "primary" | "secondary" | undefined;
|
|
4
4
|
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
thumbSizeSmall?: string | undefined;
|
|
11
11
|
}) | undefined;
|
|
12
12
|
size?: "small" | "medium" | undefined;
|
|
13
|
-
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
13
|
+
sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
'aria-label'?: string | undefined;
|
|
16
16
|
'aria-labelledby'?: string | undefined;
|
|
@@ -56,16 +56,16 @@ 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
|
-
}, "track" | "name" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "max" | "min" | "orientation" | "size" | "step" | "value" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
59
|
+
}, "track" | "name" | "classes" | "color" | "scale" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "max" | "min" | "orientation" | "size" | "step" | "value" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system/createStyled").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
|
-
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
62
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
63
63
|
export declare const QuestionDesc: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
64
64
|
children?: import("react").ReactNode;
|
|
65
|
-
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
65
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
66
66
|
export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
67
67
|
children?: import("react").ReactNode;
|
|
68
|
-
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
68
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
69
69
|
export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
70
70
|
children?: import("react").ReactNode;
|
|
71
|
-
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
71
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|