mario-education 2.4.470-release → 2.4.471-release
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.
|
@@ -15,4 +15,5 @@ export declare const renderActionsCustom: ({ params, edit, remove }: ActionProps
|
|
|
15
15
|
export declare const renderCategory: (params: any) => JSX.Element;
|
|
16
16
|
export declare const renderType: (params: any) => JSX.Element;
|
|
17
17
|
export declare const renderUserQuestion: (params: any) => JSX.Element;
|
|
18
|
+
export declare const renderTypeSurvey: (params: any) => JSX.Element;
|
|
18
19
|
export {};
|
package/dist/index.css
CHANGED
|
@@ -1804,33 +1804,35 @@ datalist option:focus {
|
|
|
1804
1804
|
align-items: flex-start;
|
|
1805
1805
|
justify-content: space-between;
|
|
1806
1806
|
padding: 0 24px; }
|
|
1807
|
-
._1aeZm ._1fvZN ._22IlD
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1807
|
+
._1aeZm ._1fvZN ._22IlD {
|
|
1808
|
+
max-width: 80%; }
|
|
1809
|
+
._1aeZm ._1fvZN ._22IlD ._1I9Ip {
|
|
1810
|
+
display: flex;
|
|
1811
|
+
justify-content: flex-start;
|
|
1812
|
+
align-items: center; }
|
|
1813
|
+
._1aeZm ._1fvZN ._22IlD ._1I9Ip ._1gL5n {
|
|
1814
|
+
font-size: 20px;
|
|
1815
|
+
font-weight: 600;
|
|
1816
|
+
display: flex;
|
|
1817
|
+
align-items: center;
|
|
1818
|
+
gap: 12px;
|
|
1819
|
+
color: #242424; }
|
|
1820
|
+
._1aeZm ._1fvZN ._22IlD ._1I9Ip ._1gL5n button {
|
|
1821
|
+
background: none;
|
|
1822
|
+
outline: none;
|
|
1823
|
+
border: none;
|
|
1824
|
+
color: #D3D3D3; }
|
|
1825
|
+
._1aeZm ._1fvZN ._22IlD ._VexxF {
|
|
1814
1826
|
display: flex;
|
|
1815
1827
|
align-items: center;
|
|
1816
|
-
gap:
|
|
1817
|
-
color: #
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
color: #
|
|
1823
|
-
|
|
1824
|
-
display: flex;
|
|
1825
|
-
align-items: center;
|
|
1826
|
-
gap: 8px;
|
|
1827
|
-
color: #24242456;
|
|
1828
|
-
font-size: 14px; }
|
|
1829
|
-
._1aeZm ._1fvZN ._22IlD ._VexxF span {
|
|
1830
|
-
margin: 0;
|
|
1831
|
-
font-size: 16px;
|
|
1832
|
-
color: #242424;
|
|
1833
|
-
font-weight: 600; }
|
|
1828
|
+
gap: 8px;
|
|
1829
|
+
color: #24242456;
|
|
1830
|
+
font-size: 14px; }
|
|
1831
|
+
._1aeZm ._1fvZN ._22IlD ._VexxF span {
|
|
1832
|
+
margin: 0;
|
|
1833
|
+
font-size: 16px;
|
|
1834
|
+
color: #242424;
|
|
1835
|
+
font-weight: 600; }
|
|
1834
1836
|
._1aeZm ._hM-Gi {
|
|
1835
1837
|
border: 1px solid #D3D3D3;
|
|
1836
1838
|
border-radius: 20px;
|
package/dist/index.js
CHANGED
|
@@ -13680,20 +13680,21 @@ var useStyles = core$1.makeStyles(function () {
|
|
|
13680
13680
|
}
|
|
13681
13681
|
};
|
|
13682
13682
|
});
|
|
13683
|
+
var style$2 = {
|
|
13684
|
+
whiteSpace: 'normal',
|
|
13685
|
+
overflow: 'hidden',
|
|
13686
|
+
textOverflow: 'ellipsis',
|
|
13687
|
+
display: '-webkit-box',
|
|
13688
|
+
WebkitLineClamp: 2,
|
|
13689
|
+
WebkitBoxOrient: 'vertical',
|
|
13690
|
+
lineHeight: '1.5em',
|
|
13691
|
+
maxHeight: '3em'
|
|
13692
|
+
};
|
|
13683
13693
|
var renderQuestionText = function renderQuestionText(params) {
|
|
13684
13694
|
var _params$data;
|
|
13685
13695
|
|
|
13686
13696
|
return React__default.createElement("div", {
|
|
13687
|
-
style:
|
|
13688
|
-
whiteSpace: 'normal',
|
|
13689
|
-
overflow: 'hidden',
|
|
13690
|
-
textOverflow: 'ellipsis',
|
|
13691
|
-
display: '-webkit-box',
|
|
13692
|
-
WebkitLineClamp: 2,
|
|
13693
|
-
WebkitBoxOrient: 'vertical',
|
|
13694
|
-
lineHeight: '1.5em',
|
|
13695
|
-
maxHeight: '3em'
|
|
13696
|
-
}
|
|
13697
|
+
style: style$2
|
|
13697
13698
|
}, marioCore.getTextFromHTML(params === null || params === void 0 ? void 0 : (_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.text) || "No text");
|
|
13698
13699
|
};
|
|
13699
13700
|
var renderQuestText = function renderQuestText(params) {
|
|
@@ -13812,7 +13813,9 @@ var renderActionsCustom = function renderActionsCustom(_ref2) {
|
|
|
13812
13813
|
var renderCategory = function renderCategory(params) {
|
|
13813
13814
|
var _params$data31, _params$data31$catego;
|
|
13814
13815
|
|
|
13815
|
-
return React__default.createElement("div",
|
|
13816
|
+
return React__default.createElement("div", {
|
|
13817
|
+
style: style$2
|
|
13818
|
+
}, params === null || params === void 0 ? void 0 : (_params$data31 = params.data) === null || _params$data31 === void 0 ? void 0 : (_params$data31$catego = _params$data31.category) === null || _params$data31$catego === void 0 ? void 0 : _params$data31$catego.name);
|
|
13816
13819
|
};
|
|
13817
13820
|
var renderType = function renderType(params) {
|
|
13818
13821
|
var _params$data33;
|
|
@@ -13829,6 +13832,20 @@ var renderUserQuestion = function renderUserQuestion(params) {
|
|
|
13829
13832
|
|
|
13830
13833
|
return React__default.createElement("div", null, params === null || params === void 0 ? void 0 : (_params$data34 = params.data) === null || _params$data34 === void 0 ? void 0 : _params$data34.userForQuestion);
|
|
13831
13834
|
};
|
|
13835
|
+
var renderTypeSurvey = function renderTypeSurvey(params) {
|
|
13836
|
+
var _params$data36;
|
|
13837
|
+
|
|
13838
|
+
var type = marioCore.QUESTION_TYPES_OPTIONS.find(function (option) {
|
|
13839
|
+
var _params$data35;
|
|
13840
|
+
|
|
13841
|
+
return option.value === (params === null || params === void 0 ? void 0 : (_params$data35 = params.data) === null || _params$data35 === void 0 ? void 0 : _params$data35.type);
|
|
13842
|
+
});
|
|
13843
|
+
return type ? React__default.createElement("div", {
|
|
13844
|
+
style: style$2
|
|
13845
|
+
}, type.label) : React__default.createElement("div", {
|
|
13846
|
+
style: style$2
|
|
13847
|
+
}, params === null || params === void 0 ? void 0 : (_params$data36 = params.data) === null || _params$data36 === void 0 ? void 0 : _params$data36.type);
|
|
13848
|
+
};
|
|
13832
13849
|
|
|
13833
13850
|
var QUESTION_URL$1 = "/admin/question-bank";
|
|
13834
13851
|
var CREATE_QUESTION_URL = "/admin/create-question";
|
|
@@ -20253,16 +20270,22 @@ var useQuestionSurveyList = function useQuestionSurveyList(isDefaultQuestion, is
|
|
|
20253
20270
|
cellRendererFramework: function cellRendererFramework(params) {
|
|
20254
20271
|
return renderQuestionText(params);
|
|
20255
20272
|
},
|
|
20256
|
-
|
|
20273
|
+
cellStyle: {
|
|
20274
|
+
paddingRight: '12px'
|
|
20275
|
+
}
|
|
20257
20276
|
}, {
|
|
20258
20277
|
headerName: t('type'),
|
|
20278
|
+
field: 'type-of-survey-question',
|
|
20259
20279
|
sortingOrder: ['asc', 'desc'],
|
|
20260
20280
|
sortable: true,
|
|
20261
20281
|
minWidth: 80,
|
|
20262
20282
|
maxWidth: 120,
|
|
20263
20283
|
suppressSizeToFit: true,
|
|
20264
20284
|
cellRendererFramework: function cellRendererFramework(params) {
|
|
20265
|
-
return
|
|
20285
|
+
return renderTypeSurvey(params);
|
|
20286
|
+
},
|
|
20287
|
+
cellStyle: {
|
|
20288
|
+
paddingLeft: '12px'
|
|
20266
20289
|
}
|
|
20267
20290
|
}, {
|
|
20268
20291
|
headerName: t('category'),
|
|
@@ -20274,7 +20297,7 @@ var useQuestionSurveyList = function useQuestionSurveyList(isDefaultQuestion, is
|
|
|
20274
20297
|
}, {
|
|
20275
20298
|
width: 80,
|
|
20276
20299
|
headerComponentParams: {
|
|
20277
|
-
template: "<div class=\"
|
|
20300
|
+
template: "<div class=\"w-100\">" + t('actions') + "</div>"
|
|
20278
20301
|
},
|
|
20279
20302
|
minWidth: 40,
|
|
20280
20303
|
maxWidth: 120,
|
|
@@ -63696,7 +63719,7 @@ var ANSWER_TYPES$1;
|
|
|
63696
63719
|
ANSWER_TYPES["ALL_THE_TIME"] = "all the time";
|
|
63697
63720
|
})(ANSWER_TYPES$1 || (ANSWER_TYPES$1 = {}));
|
|
63698
63721
|
|
|
63699
|
-
var style$
|
|
63722
|
+
var style$3 = {"btn-show":"_vBj7V","btn-hide":"_2sbai"};
|
|
63700
63723
|
|
|
63701
63724
|
var classNames$1 = function classNames(e) {
|
|
63702
63725
|
return e ? "btn-show" : 'btn-hide';
|
|
@@ -63729,7 +63752,7 @@ var ScrollToTopBtn = function ScrollToTopBtn() {
|
|
|
63729
63752
|
};
|
|
63730
63753
|
}, []);
|
|
63731
63754
|
return React__default.createElement("div", {
|
|
63732
|
-
className: style$
|
|
63755
|
+
className: style$3[classNames$1(isVisible)],
|
|
63733
63756
|
onClick: onScrollTop
|
|
63734
63757
|
}, React__default.createElement("img", {
|
|
63735
63758
|
width: 60,
|
|
@@ -73241,7 +73264,7 @@ var GradeUsage = function GradeUsage(_ref) {
|
|
|
73241
73264
|
}))))));
|
|
73242
73265
|
};
|
|
73243
73266
|
|
|
73244
|
-
var style$
|
|
73267
|
+
var style$4 = {"font-large":"_3Sup6","block-card-title":"_3Qn6F","btn-conduct-checkIn":"_1qNfu","btn-conduct-session":"_2K2FJ","total-card-title":"_3vk3b","total-card-value":"_IHasQ","header-left":"_11kCD","custom-header-title":"_d8RZe","custom-header-large-title":"_3lHAH","block-card-btn-title":"_3svb4","custom-button-content":"_1oCai","show-answers":"_1L_vx","detail-questions":"_3kMDk","detail":"_3TKX7","answers":"_ejtt2","answer-item":"_2SV9m","download-btn":"_oQC64","btn-favorite-text":"_3m4oI","box-slider":"_1bTW5","slider-text":"_1gs0Z","chip-slider":"_xowPU","value":"_3hnI_","compare-avr":"_lL-Yg","content":"_1EgBn","percent":"_3Bs0W","arrow":"_2BhP8","label-single-choice":"_3oSdM","btn-choice":"_hPL_o","font-small":"_2JnMg","reset-the-content":"_1zJw3","btn-duplicate-survey":"_11N79","menu-item-strategories":"_1oZYB","time-Date":"_1Q7w6","time-Hours-Minute":"_3ZcQD","arrow-icon":"_2NJ7E","word-break":"_27YiF","header-icon":"_dqAoB","full-width":"_2DGWF","header-right-student":"_1GQrw","header-right":"_1jTMg","header-student":"_SSISD","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","timer-session":"_26lTc","play-icon-pause":"_d_2HA","play-icon":"_1mIjz","block-right":"_2CN0T","filter-item":"_3jAEH","btn-conduct-session-disabled":"_3ae8F","btn-conduct-icon":"_2msER","animation-btn-conduct":"_3bftL","ring":"_3Jd73","answer-text":"_Vct9B","icon-text":"_1MuMl","icon-left":"_3bBeE","margin-right":"_2T6Ym","up-color-background":"_1cck_","down-color-background":"_2Z76g","grey-background":"_2ryO2","up-color-icon":"_RTrVT","up-color":"_3UMJw","down-color-icon":"_3hZXx","down-color":"_1u1gK","rotate":"_1yp9N","font-question-name":"_13S5D","font-question":"_t-JhH","font-question--all-bold":"_2t1gp","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","input-survey":"_24vPq","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","radio-choice":"_2RwcR","checkbox-control":"_3woGH","block-question":"_3TJl8","question-choice":"_3LiGg","radio-disable":"_1WFdo","pointer-page-result":"_3mfi0","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","custom-header":"_22CX0","custom-header-right":"_3EDTf","custom-header-button":"_2OUSw","disable-button":"_3rQql","border-none":"_3MpEU","block-btn-header":"_25ahZ","custom-preview-button":"_mpfwz","total-card-box":"_1Xx6l","total-card-box--hover":"_2_ntJ","total-card-box-3":"_2eiNE","total-card-box-4":"_3eYTQ","total-card-box-5":"_230Hu","total-card-box__content":"_3ua19","status-default":"_165c9","pending":"_ZcAbu","active":"_3oAH-","close":"_3XmhO","box-filter":"_KT2NK","block-total":"_2GGFc","filter-select":"_3xiAo","box-filter-left":"_1hkQM","filter-select-list":"_3zE9Z","box-filter-right":"_1SOsh","search-input-icon":"_Od6MC","inputInput":"_2st_0","filter-item-collapse":"_2opDJ","box-show-filter-mobile":"_3xvBF","icon-show-all-filter":"_3gNUH","space-item":"_1G-S_","block-card-name":"_2Wl9Z","block-card-btn":"_1Z1H6","block-card-btn-icon":"_2Bg4S","table-cell":"_2uhRa","table-cell--pointer":"_3DnAh","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF","yes-active":"_2AK7h","no-active":"_1UouU","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","box-switch":"_2Nd8Z","title-label":"_XYA0v","title-text":"_88rqO","header-contact":"_EKp5e","logo-home":"_24U3W","hide-in-desktop":"_2LIqK","hamburger-menu":"_2yRc8","collapse-box":"_WX97m","nav-home":"_1TT1q","contact":"_NszFe","active-current":"_19XSx","box-header-user":"_2UxPq","header-user-left":"_2GnfS","user-avatar":"_2voun","user-detail":"_2NSw4","user-name":"_2ncLc","user-chip":"_3MdPs","chip":"_2clqF","grade":"_WSIoQ","date":"_1fNCD","header-user-right":"_Nd4GQ","disable-slider":"_1Vzhe","h-200":"_1xJfb","h-250":"_2IoEF","half-circle-slider":"_CRJ3D","wrapper":"_yak_n","t-125":"_3O6h7","t-180":"_tTvT4","box-slider-text":"_3QJJx","text-right":"_tZ2Y_","icon":"_20YJX","circle-slider-text":"_1LcjC","circle-slider-value":"_3Ch7F","roundy-gradient":"_PnoOX","pointer":"_1gsNz","icon-info":"_37jaA","icon-warning":"_1eWQQ","answer--never":"_1mTcA","answer--rarely":"_Vu1zQ","answer--sometimes":"_X0wca","answer--often":"_2dDxa","answer--almost-always":"_390EV","answer--all-the-time":"_28JDY","block-container":"_1PGSC","the-container":"_mQufI","custom-scrollbar":"_12ysw","p-0-12":"_1sfzz"};
|
|
73245
73268
|
|
|
73246
73269
|
var useStyles$h = core$1.makeStyles(function () {
|
|
73247
73270
|
return core$1.createStyles({
|
|
@@ -73301,7 +73324,7 @@ var HomePage = function HomePage() {
|
|
|
73301
73324
|
classFontSize = _useHome.classFontSize;
|
|
73302
73325
|
|
|
73303
73326
|
return React__default.createElement("div", {
|
|
73304
|
-
className: "w-100 h-100 " + style$
|
|
73327
|
+
className: "w-100 h-100 " + style$4[classFontSize] + " " + (screenWidth <= 767 ? style$4['p-0-12'] : '')
|
|
73305
73328
|
}, React__default.createElement(core$1.Grid, {
|
|
73306
73329
|
container: true,
|
|
73307
73330
|
spacing: 3
|
|
@@ -74920,13 +74943,13 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
|
74920
74943
|
onClose: function onClose() {
|
|
74921
74944
|
return onToggleModel();
|
|
74922
74945
|
},
|
|
74923
|
-
className: "" + style$
|
|
74946
|
+
className: "" + style$4["model-switch-roles"]
|
|
74924
74947
|
}, React__default.createElement(core$1.Typography, {
|
|
74925
|
-
className: "" + style$
|
|
74948
|
+
className: "" + style$4["title"]
|
|
74926
74949
|
}, t('continue_as')), React__default.createElement("div", null, (_handleUserRole = handleUserRole(user === null || user === void 0 ? void 0 : user.userRoles)) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.map(function (r) {
|
|
74927
74950
|
return React__default.createElement("p", {
|
|
74928
74951
|
key: r,
|
|
74929
|
-
className: style$
|
|
74952
|
+
className: style$4["item-select-role"] + " " + style$4[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" || roles.includes(r) ? "item-role-active" : ""],
|
|
74930
74953
|
onClick: function onClick() {
|
|
74931
74954
|
return handleSelectUserRoles([r]);
|
|
74932
74955
|
}
|
|
@@ -75247,13 +75270,13 @@ var MainLayoutAdmin = function MainLayoutAdmin(_ref) {
|
|
|
75247
75270
|
navigations: authNavigations,
|
|
75248
75271
|
onToggleModel: handleToggleModel
|
|
75249
75272
|
}, React__default.createElement("div", {
|
|
75250
|
-
className: "" + style$
|
|
75273
|
+
className: "" + style$4["the-container"]
|
|
75251
75274
|
}, React__default.createElement(marioCore.TheContent, {
|
|
75252
75275
|
routes: authRoutes
|
|
75253
75276
|
}), React__default.createElement(Footer, null))) : React__default.createElement("div", {
|
|
75254
|
-
className: "" + style$
|
|
75277
|
+
className: "" + style$4["reset-the-content"]
|
|
75255
75278
|
}, React__default.createElement("div", {
|
|
75256
|
-
className: "" + style$
|
|
75279
|
+
className: "" + style$4["the-container"]
|
|
75257
75280
|
}, React__default.createElement(marioCore.TheContent, {
|
|
75258
75281
|
routes: authRoutes
|
|
75259
75282
|
}), React__default.createElement(Footer, {
|