touchstudy-core 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Selects/partials/index.d.ts +4 -0
- package/dist/components/Selects/styles.d.ts +6 -0
- package/dist/components/Selects/theme/styles.d.ts +6 -0
- package/dist/containers/Login/views/Login.d.ts +1 -1
- package/dist/index.css +6 -4
- package/dist/index.js +69 -68
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +69 -68
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -3216,6 +3216,13 @@ var useSwitchAcademy = function useSwitchAcademy(role, navigate, homeAcademyUrl,
|
|
3216
3216
|
};
|
3217
3217
|
};
|
3218
3218
|
|
3219
|
+
var MenuItemCustom = styled(MenuItem)(function () {
|
3220
|
+
return {
|
3221
|
+
'&.Mui-selected': {
|
3222
|
+
backgroundColor: styles.light
|
3223
|
+
}
|
3224
|
+
};
|
3225
|
+
});
|
3219
3226
|
var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
3220
3227
|
var _user$roles, _selectedAcademy$name, _selectedAcademy$name2;
|
3221
3228
|
var role = _ref.role,
|
@@ -3303,7 +3310,7 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
3303
3310
|
}
|
3304
3311
|
}, academyList.map(function (option) {
|
3305
3312
|
var _option$name$charAt;
|
3306
|
-
return React.createElement(
|
3313
|
+
return React.createElement(MenuItemCustom, {
|
3307
3314
|
key: option.id,
|
3308
3315
|
selected: option.id === (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.id),
|
3309
3316
|
onClick: function onClick() {
|
@@ -3353,27 +3360,20 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3353
3360
|
return true;
|
3354
3361
|
};
|
3355
3362
|
|
3356
|
-
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3357
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
3358
|
-
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3359
|
-
color: styles.darker
|
3360
|
-
}));
|
3361
|
-
};
|
3362
|
-
var CustomOption = function CustomOption(props) {
|
3363
|
-
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
3364
|
-
style: {
|
3365
|
-
fontSize: "14px",
|
3366
|
-
fontWeight: 500
|
3367
|
-
}
|
3368
|
-
}, props.data.label));
|
3369
|
-
};
|
3370
3363
|
var customStyles = {
|
3371
|
-
control: function control(baseStyles) {
|
3364
|
+
control: function control(baseStyles, state) {
|
3372
3365
|
return _extends({}, baseStyles, {
|
3373
3366
|
fontSize: "14px",
|
3374
3367
|
fontWeight: 700,
|
3375
3368
|
color: styles.darker,
|
3376
|
-
borderColor: styles.less_dark
|
3369
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark,
|
3370
|
+
boxShadow: state.isFocused ? "0 0 0 1px " + styles.dark + "4D" : baseStyles.boxShadow,
|
3371
|
+
"&:active": {
|
3372
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3373
|
+
},
|
3374
|
+
"&:hover": {
|
3375
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3376
|
+
}
|
3377
3377
|
});
|
3378
3378
|
},
|
3379
3379
|
input: function input(baseStyles, _) {
|
@@ -3389,8 +3389,32 @@ var customStyles = {
|
|
3389
3389
|
fontWeight: 700,
|
3390
3390
|
color: styles.darker
|
3391
3391
|
});
|
3392
|
+
},
|
3393
|
+
option: function option(baseStyles, state) {
|
3394
|
+
return _extends({}, baseStyles, {
|
3395
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.light : 'white',
|
3396
|
+
"&:active": {
|
3397
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.less_dark : baseStyles.backgroundColor
|
3398
|
+
}
|
3399
|
+
});
|
3392
3400
|
}
|
3393
3401
|
};
|
3402
|
+
|
3403
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
3404
|
+
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
3405
|
+
color: styles.darker
|
3406
|
+
}));
|
3407
|
+
};
|
3408
|
+
var CustomOption = function CustomOption(props) {
|
3409
|
+
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
3410
|
+
style: {
|
3411
|
+
fontSize: "14px",
|
3412
|
+
fontWeight: 500
|
3413
|
+
}
|
3414
|
+
}, props.data.label));
|
3415
|
+
};
|
3416
|
+
|
3417
|
+
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3394
3418
|
var CustomSelect = function CustomSelect(_ref) {
|
3395
3419
|
var isDefault = _ref.isDefault,
|
3396
3420
|
options = _ref.options,
|
@@ -4772,10 +4796,8 @@ var useMessageList = function useMessageList() {
|
|
4772
4796
|
var filter = _extends({}, messageFilter);
|
4773
4797
|
return Promise.resolve(getMessagesByConversation(conversationId, filter)).then(function (res) {
|
4774
4798
|
return Promise.resolve(updateLastTimeReadConversation(conversationId)).then(function () {
|
4775
|
-
|
4776
|
-
|
4777
|
-
return [].concat((_res$data$items = res.data.items) === null || _res$data$items === void 0 ? void 0 : _res$data$items.reverse(), prev);
|
4778
|
-
});
|
4799
|
+
var _res$data$items;
|
4800
|
+
setMessages([].concat((_res$data$items = res.data.items) === null || _res$data$items === void 0 ? void 0 : _res$data$items.reverse()));
|
4779
4801
|
setMessageFilter(function (prev) {
|
4780
4802
|
return _extends({}, prev, {
|
4781
4803
|
totalItems: res.data.totalItems,
|
@@ -5066,6 +5088,9 @@ var useChatContainer = function useChatContainer(props) {
|
|
5066
5088
|
if (!data) return;
|
5067
5089
|
var parsedData = JSON.parse(data);
|
5068
5090
|
if (parsedData.id) setSelectedConversation(JSON.parse(data));
|
5091
|
+
console.log({
|
5092
|
+
data: JSON.parse(data)
|
5093
|
+
});
|
5069
5094
|
};
|
5070
5095
|
var handleLoadMoreMessages = function handleLoadMoreMessages() {
|
5071
5096
|
try {
|
@@ -5298,10 +5323,6 @@ var BpIcon = styled('span')(function (_ref) {
|
|
5298
5323
|
},
|
5299
5324
|
'input:hover ~ &': {
|
5300
5325
|
backgroundColor: theme.palette.mode === 'dark' ? '#30404d' : '#ebf1f5'
|
5301
|
-
},
|
5302
|
-
'input:disabled ~ &': {
|
5303
|
-
boxShadow: 'none',
|
5304
|
-
background: theme.palette.mode === 'dark' ? 'rgba(57,75,89,.5)' : 'rgba(206,217,224,.5)'
|
5305
5326
|
}
|
5306
5327
|
};
|
5307
5328
|
});
|
@@ -7281,43 +7302,6 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7281
7302
|
};
|
7282
7303
|
|
7283
7304
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7284
|
-
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7285
|
-
return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
|
7286
|
-
color: styles.darker
|
7287
|
-
}));
|
7288
|
-
};
|
7289
|
-
var CustomOption$1 = function CustomOption(props) {
|
7290
|
-
return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
|
7291
|
-
style: {
|
7292
|
-
fontSize: "14px",
|
7293
|
-
fontWeight: 500
|
7294
|
-
}
|
7295
|
-
}, props.data.label));
|
7296
|
-
};
|
7297
|
-
var customStyles$1 = {
|
7298
|
-
control: function control(baseStyles, state) {
|
7299
|
-
return _extends({}, baseStyles, {
|
7300
|
-
fontSize: "14px",
|
7301
|
-
fontWeight: 700,
|
7302
|
-
color: styles.darker,
|
7303
|
-
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7304
|
-
});
|
7305
|
-
},
|
7306
|
-
input: function input(baseStyles, _) {
|
7307
|
-
return _extends({}, baseStyles, {
|
7308
|
-
fontSize: "14px",
|
7309
|
-
fontWeight: 700,
|
7310
|
-
color: styles.darker
|
7311
|
-
});
|
7312
|
-
},
|
7313
|
-
singleValue: function singleValue(baseStyles) {
|
7314
|
-
return _extends({}, baseStyles, {
|
7315
|
-
fontSize: "14px",
|
7316
|
-
fontWeight: 700,
|
7317
|
-
color: styles.darker
|
7318
|
-
});
|
7319
|
-
}
|
7320
|
-
};
|
7321
7305
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
7322
7306
|
var defaultValue = _ref.defaultValue,
|
7323
7307
|
options = _ref.options,
|
@@ -7342,10 +7326,10 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7342
7326
|
IndicatorSeparator: function IndicatorSeparator() {
|
7343
7327
|
return null;
|
7344
7328
|
},
|
7345
|
-
DropdownIndicator: DropdownIndicator
|
7346
|
-
Option: CustomOption
|
7329
|
+
DropdownIndicator: DropdownIndicator,
|
7330
|
+
Option: CustomOption
|
7347
7331
|
},
|
7348
|
-
styles: customStyles
|
7332
|
+
styles: customStyles,
|
7349
7333
|
placeholder: t("select_placeholder")
|
7350
7334
|
}, rest));
|
7351
7335
|
};
|
@@ -8530,7 +8514,15 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
8530
8514
|
options: options,
|
8531
8515
|
value: initialValues,
|
8532
8516
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8533
|
-
isMulti: isMulti
|
8517
|
+
isMulti: isMulti,
|
8518
|
+
components: {
|
8519
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8520
|
+
return null;
|
8521
|
+
},
|
8522
|
+
DropdownIndicator: DropdownIndicator,
|
8523
|
+
Option: CustomOption
|
8524
|
+
},
|
8525
|
+
styles: customStyles
|
8534
8526
|
}, rest));
|
8535
8527
|
};
|
8536
8528
|
|
@@ -8556,7 +8548,15 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
8556
8548
|
value: !isDefault ? initialValues : undefined,
|
8557
8549
|
defaultValue: isDefault ? initialValues : undefined,
|
8558
8550
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8559
|
-
isMulti: isMulti
|
8551
|
+
isMulti: isMulti,
|
8552
|
+
components: {
|
8553
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8554
|
+
return null;
|
8555
|
+
},
|
8556
|
+
DropdownIndicator: DropdownIndicator,
|
8557
|
+
Option: CustomOption
|
8558
|
+
},
|
8559
|
+
styles: customStyles
|
8560
8560
|
}, rest));
|
8561
8561
|
};
|
8562
8562
|
|
@@ -10994,7 +10994,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
10994
10994
|
|
10995
10995
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
10996
10996
|
|
10997
|
-
var styles$4 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10997
|
+
var styles$4 = {"lighter":"#F0FFF6","light":"#C8F8DB","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_100":"#F9FAFB","gray_300":"#DFE3E8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10998
10998
|
|
10999
10999
|
var iconStarQuestion = function iconStarQuestion(_ref) {
|
11000
11000
|
var _ref$width = _ref.width,
|
@@ -12884,6 +12884,7 @@ var Header = function Header(_ref) {
|
|
12884
12884
|
className: "fw-bold me-2 text-nowrap",
|
12885
12885
|
sx: {
|
12886
12886
|
minWidth: "60px",
|
12887
|
+
maxWidth: "120px",
|
12887
12888
|
overflow: "hidden",
|
12888
12889
|
textOverflow: "ellipsis"
|
12889
12890
|
}
|