mario-education 2.4.575-feedback → 2.4.576-feedback
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/Table/TableCells.d.ts +5 -1
- package/dist/components/selector/CustomFilterComponent.d.ts +3 -1
- package/dist/containers/SurveyDashboard/apiClient/surveyService.d.ts +1 -0
- package/dist/containers/SurveyDashboard/components/ConfirmDeleteSelectedModal.d.ts +9 -0
- package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +7 -0
- package/dist/index.css +110 -0
- package/dist/index.js +226 -29
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +226 -29
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,10 @@ interface PROPS_TABLE {
|
|
|
10
10
|
listTableCell: TABLE_CELL[];
|
|
11
11
|
filters: FILTER_SURVEY;
|
|
12
12
|
handleSort?: Function;
|
|
13
|
+
hasCheckbox?: boolean;
|
|
14
|
+
dataSelect?: any[];
|
|
15
|
+
selectedIds?: number[];
|
|
16
|
+
handleSelectAll?: any;
|
|
13
17
|
}
|
|
14
|
-
declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
|
|
18
|
+
declare const TableCells: ({ listTableCell, filters, handleSort, hasCheckbox, dataSelect, selectedIds, handleSelectAll }: PROPS_TABLE) => JSX.Element;
|
|
15
19
|
export default TableCells;
|
|
@@ -33,6 +33,8 @@ interface PROPS_FILTER {
|
|
|
33
33
|
onChangeOptionDate?: Function;
|
|
34
34
|
renderOption?: string;
|
|
35
35
|
isSelectMulti?: boolean;
|
|
36
|
+
handleOpenModalDelete?: any;
|
|
37
|
+
selectedIds?: number[];
|
|
36
38
|
}
|
|
37
|
-
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, }: PROPS_FILTER) => JSX.Element;
|
|
39
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, handleOpenModalDelete, selectedIds }: PROPS_FILTER) => JSX.Element;
|
|
38
40
|
export default CustomFilterComponent;
|
|
@@ -32,3 +32,4 @@ export declare const getResponsesDistribution: (surveyId: number, params: any) =
|
|
|
32
32
|
export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
33
33
|
export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
34
34
|
export declare const getAnswerChart: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
35
|
+
export declare const deleteSelectedSurveyApi: (ids: number[]) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -53,5 +53,12 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
|
|
|
53
53
|
handleChangeStudent: (studentId?: number | undefined) => void;
|
|
54
54
|
onEditSurvey: (id: number) => void;
|
|
55
55
|
handlePublishSurvey: (surveyId: any) => Promise<void>;
|
|
56
|
+
selectedIds: number[];
|
|
57
|
+
handleToggleSelect: (id: number) => void;
|
|
58
|
+
handleSelectAll: (checked: boolean) => void;
|
|
59
|
+
handleDeleteSelected: () => Promise<void>;
|
|
60
|
+
handleOpenModalDelete: () => void;
|
|
61
|
+
openSelectedModal: boolean;
|
|
62
|
+
handleCloseModalDelete: () => void;
|
|
56
63
|
};
|
|
57
64
|
export default useListSurvey;
|
package/dist/index.css
CHANGED
|
@@ -532,6 +532,32 @@ tbody._b-AXV tr {
|
|
|
532
532
|
margin-right: 16px;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
+
._1vl0q {
|
|
536
|
+
display: flex;
|
|
537
|
+
align-items: center;
|
|
538
|
+
gap: 32px;
|
|
539
|
+
justify-content: space-between;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
._3BKxE {
|
|
543
|
+
display: flex;
|
|
544
|
+
justify-content: center;
|
|
545
|
+
align-items: center;
|
|
546
|
+
gap: 8px;
|
|
547
|
+
background: #fc3636;
|
|
548
|
+
border: none;
|
|
549
|
+
outline: none;
|
|
550
|
+
border-radius: 999px;
|
|
551
|
+
padding: 12px 16px;
|
|
552
|
+
color: #fff;
|
|
553
|
+
font-size: 16px;
|
|
554
|
+
font-weight: 500;
|
|
555
|
+
|
|
556
|
+
&:hover {
|
|
557
|
+
box-shadow: 0 0 10px #fc3636;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
535
561
|
._1z_ef {
|
|
536
562
|
padding: 8px 16px !important;
|
|
537
563
|
}
|
|
@@ -12111,6 +12137,90 @@ tfoot tr td {
|
|
|
12111
12137
|
line-height: 24px;
|
|
12112
12138
|
text-align: center; }
|
|
12113
12139
|
|
|
12140
|
+
._2_xof {
|
|
12141
|
+
display: flex;
|
|
12142
|
+
justify-content: center;
|
|
12143
|
+
align-items: center;
|
|
12144
|
+
padding: 48px;
|
|
12145
|
+
flex-direction: column; }
|
|
12146
|
+
._2IYUC {
|
|
12147
|
+
width: 100%;
|
|
12148
|
+
margin-top: 24px;
|
|
12149
|
+
margin-bottom: 8px;
|
|
12150
|
+
font-family: "Montserrat-Bold" !important;
|
|
12151
|
+
font-weight: 700;
|
|
12152
|
+
font-size: 36px;
|
|
12153
|
+
line-height: 44px;
|
|
12154
|
+
letter-spacing: 0px;
|
|
12155
|
+
text-align: center; }
|
|
12156
|
+
._Dm6Kc {
|
|
12157
|
+
width: 100%;
|
|
12158
|
+
font-weight: 400;
|
|
12159
|
+
font-size: 18px;
|
|
12160
|
+
line-height: 27px;
|
|
12161
|
+
letter-spacing: 0px;
|
|
12162
|
+
text-align: center;
|
|
12163
|
+
margin-bottom: 32px; }
|
|
12164
|
+
._r9NMX {
|
|
12165
|
+
display: flex;
|
|
12166
|
+
width: 100%;
|
|
12167
|
+
justify-content: center;
|
|
12168
|
+
align-items: center;
|
|
12169
|
+
gap: 24px; }
|
|
12170
|
+
._92MjQ {
|
|
12171
|
+
display: flex;
|
|
12172
|
+
justify-content: center;
|
|
12173
|
+
align-items: center;
|
|
12174
|
+
gap: 8px;
|
|
12175
|
+
border: none;
|
|
12176
|
+
cursor: pointer;
|
|
12177
|
+
background: #316CD9;
|
|
12178
|
+
border-radius: 32px;
|
|
12179
|
+
color: #fff;
|
|
12180
|
+
padding: 14px 24px;
|
|
12181
|
+
font-weight: 700;
|
|
12182
|
+
font-size: 18px;
|
|
12183
|
+
line-height: 27px;
|
|
12184
|
+
letter-spacing: 0px;
|
|
12185
|
+
text-transform: uppercase;
|
|
12186
|
+
width: -webkit-fit-content;
|
|
12187
|
+
width: -moz-fit-content;
|
|
12188
|
+
width: fit-content;
|
|
12189
|
+
transition: 0.3s ease-in-out; }
|
|
12190
|
+
._92MjQ:hover {
|
|
12191
|
+
box-shadow: #316CD9 0 0 10px; }
|
|
12192
|
+
._33vda {
|
|
12193
|
+
display: flex;
|
|
12194
|
+
justify-content: center;
|
|
12195
|
+
align-items: center;
|
|
12196
|
+
border: none;
|
|
12197
|
+
cursor: pointer;
|
|
12198
|
+
background: transparent;
|
|
12199
|
+
color: #24242450;
|
|
12200
|
+
font-weight: 700;
|
|
12201
|
+
font-size: 18px;
|
|
12202
|
+
line-height: 27px;
|
|
12203
|
+
letter-spacing: 0px;
|
|
12204
|
+
text-transform: uppercase;
|
|
12205
|
+
width: -webkit-fit-content;
|
|
12206
|
+
width: -moz-fit-content;
|
|
12207
|
+
width: fit-content;
|
|
12208
|
+
transition: 0.3s ease-in-out; }
|
|
12209
|
+
._33vda:hover {
|
|
12210
|
+
color: red; }
|
|
12211
|
+
|
|
12212
|
+
._2_xof > svg {
|
|
12213
|
+
width: 56px;
|
|
12214
|
+
height: 56px;
|
|
12215
|
+
-webkit-animation: _3fubD 1.2s infinite;
|
|
12216
|
+
animation: _3fubD 1.2s infinite; }
|
|
12217
|
+
|
|
12218
|
+
._92MjQ {
|
|
12219
|
+
background: #ff0000;
|
|
12220
|
+
padding: 12px 24px; }
|
|
12221
|
+
._92MjQ:hover {
|
|
12222
|
+
box-shadow: #ff0000 0 0 10px; }
|
|
12223
|
+
|
|
12114
12224
|
:root {
|
|
12115
12225
|
--green-dark: #006E60;
|
|
12116
12226
|
}
|
package/dist/index.js
CHANGED
|
@@ -1503,7 +1503,7 @@ var ConferenceRubricList = function ConferenceRubricList() {
|
|
|
1503
1503
|
}))));
|
|
1504
1504
|
};
|
|
1505
1505
|
|
|
1506
|
-
var styles = {"test":"_3ybTi","body-question-right":"_1H0W8","body-question":"_b-AXV","badge-icon":"_1fgfO","input-color-picker":"_2YR4l","question-list-session-template":"_114IY","delete-column-question-list-sesstion-template":"_qE7J0","conference-rubric-skill-column":"_2BV3o","conference-rubric-additional-row":"_1P4F2","conference-rubric-row-test":"_1SRmg","emotional-response":"_ZDINp","star-rating":"_Kzkzd","list-teacher-compare":"_Q0sF1","teacher-item":"_gu_yD","teacher-item-selected":"_33tYy","btn-filter":"_2VZin","color-filter":"_2M0vR","block-filter-component":"_1d6uY","tooltip-answer":"_26Dpb","input-filter":"_1cx7c","select-filter-component":"_1XSIo","hidden":"_3o8gR","box-select":"_3ru37","radio-btn":"_1tQvL","box-select-label":"_3VNX5","date-picker":"_I8kqz","filter-box-learning":"_3xuSa","search-box-learning":"_15ep6","template-left":"_1WxAe","template-box-left":"_3_Ed7","template-box":"_3uUiv","active":"_3sodH","template-header-top":"_Az5Kt","template-header-body":"_1Jrg_","form-question-text":"_1Y5i2","tox-notifications-container":"_ejcrg","custom-header":"_2xKIv","custom-header-right":"_aiooI","custom-header-title":"_1HVg5","custom-header-large-title":"_2W1Yg","custom-header-button":"_2Woz2","custom-button-content":"_b2B7P","disable-button":"_2FxZU","grey-background":"_vYzeJ","border-none":"_23ppV","status-default":"_3LaqR","block-btn-header":"_2u4hp","custom-preview-button":"_1iLFp","total-card-box":"_3xXbV","total-card-box-0":"_g_4b-","total-card-box--hover":"_1MUz_","total-card-title":"_15UYs","total-card-value":"_ZkA4P","total-card-box__content":"_2_XfM","time-Date":"_1F31y","time-Hours-Minute":"_3RwI5","box-filter":"_37Lm-","block-total":"_1M33n","filter-select":"_3g7uY","box-filter-left":"_2p59U","filter-item":"_1dh4B","filter-select-list":"_1SJi8","box-filter-right":"_3QFAQ","search-input-icon":"_uctPq","inputInput":"_3Zg5b","btn-favorite-text":"_1wT59","block-right":"_2zDaG","download-btn":"_1z_ef","box-show-filter-mobile":"_3FOMn","icon-show-all-filter":"_1xIXl","filter-item-collapse":"_2A1DF","space-item":"_1YwgI","table-cell":"_3M-67","table-cell--pointer":"_1ejqJ","arrow-icon":"_irUXz","header-left":"_Hacp0","header-icon":"_2_COy","header-right":"_ClCRS","btn-conduct-session":"_Bj2dA","btn-conduct-checkIn":"_36_5e","btn-conduct-session-disabled":"_3khUJ","send-icon":"_1JXJr","question-block":"_2FuVl","question-text":"_rScEi","question-slider":"_3M4zG","question-block-mobile":"_1YNCv","question-today":"_cFymD","input-survey":"_1T9Fy","font-description":"_HrltY","font-question":"_OaGRJ","font-question--all-bold":"_13HHM","answer--never":"_1QUbk","answer--rarely":"_3hLyh","answer--sometimes":"_3JlEj","answer--often":"_3tMCy","answer--almost-always":"_2MH-2","answer--all-the-time":"_1bbNe","box-title-question":"_fxQxk","tooltip-question":"_1QOF8","icon-info":"_pshKx","icon-warning":"_2NAZC","pointer":"_1MFti","talk-conduct":"_2hTrw","box-talk":"_2hYiu","box-p":"_1O96o","slider-avatar":"_2q9fR","box-slider":"_1ymYy","icon-text":"_RykFp","icon-left":"_3sqFO","margin-right":"_3oNcf","slider-text":"_3uC79","up-color-background":"_3Zg01","down-color-background":"_1UGuk","chip-slider":"_2Ng4N","up-color-icon":"_1cbf_","up-color":"_2n5kU","down-color-icon":"_2jAhL","down-color":"_QujPQ","rotate":"_3MLtR","value":"_3r9SC","compare-avr":"_3mFKa","content":"_2jwZj","percent":"_300a_","arrow":"_35l6Q","block-button":"_t-JRi","emotion-list":"_2Bp8v","emotion-item":"_2lIqc","emotion-active":"_2n2uB","label-single-choice":"_2pts6","radio-choice":"_ffUTh","pointer-page-result":"_29a5o","btn-choice":"_2PymV","yes-active":"_nvsDm","no-active":"_1ceeg","checkbox-control":"_EdwGx","answer-text":"_1gPxU","block-card-name":"_3HBIv","block-card-title":"_3zHtB","block-card-btn":"_1vH5y","block-card-btn-title":"_1VPBS","block-card-btn-icon":"_2HZ2W","header-component":"_29Wmk","btn-start":"_1ysA0","timer-start":"_Mg6qB","btn-timer":"_3fcdK","timer-text":"_3i-J4","timer-session":"_2Jv8D","play-icon-pause":"_5_zm5","play-icon":"_dOX4f","header-student":"_2ZYZ6","btn-duplicate-survey":"_3fJxX","btn-conduct-icon":"_1-BB2","total-card-box-3":"_w-iFN","total-card-box-4":"_1F6ea","box-select-session":"_3O8RG","btn-session":"_3jG8_","header-right-student":"_20rLn","full-width":"_1vrLT","total-card-box-5":"_30kwe","custom-input":"_3m2ZU","browserdata":"_3AR-2","box-component-search":"_3gbz0","search-icon":"_G7wNn","search-item":"_R8oRS","no-data":"_3Qo6X"};
|
|
1506
|
+
var styles = {"test":"_3ybTi","body-question-right":"_1H0W8","body-question":"_b-AXV","badge-icon":"_1fgfO","input-color-picker":"_2YR4l","question-list-session-template":"_114IY","delete-column-question-list-sesstion-template":"_qE7J0","conference-rubric-skill-column":"_2BV3o","conference-rubric-additional-row":"_1P4F2","conference-rubric-row-test":"_1SRmg","emotional-response":"_ZDINp","star-rating":"_Kzkzd","list-teacher-compare":"_Q0sF1","teacher-item":"_gu_yD","teacher-item-selected":"_33tYy","btn-filter":"_2VZin","color-filter":"_2M0vR","block-filter-component":"_1d6uY","tooltip-answer":"_26Dpb","input-filter":"_1cx7c","select-filter-component":"_1XSIo","hidden":"_3o8gR","box-select":"_3ru37","radio-btn":"_1tQvL","box-select-label":"_3VNX5","date-picker":"_I8kqz","filter-box-learning":"_3xuSa","search-box-learning":"_15ep6","template-left":"_1WxAe","template-box-left":"_3_Ed7","template-box":"_3uUiv","active":"_3sodH","template-header-top":"_Az5Kt","template-header-body":"_1Jrg_","form-question-text":"_1Y5i2","tox-notifications-container":"_ejcrg","custom-header":"_2xKIv","custom-header-right":"_aiooI","custom-header-title":"_1HVg5","custom-header-large-title":"_2W1Yg","custom-header-button":"_2Woz2","custom-button-content":"_b2B7P","disable-button":"_2FxZU","grey-background":"_vYzeJ","border-none":"_23ppV","status-default":"_3LaqR","block-btn-header":"_2u4hp","custom-preview-button":"_1iLFp","total-card-box":"_3xXbV","total-card-box-0":"_g_4b-","total-card-box--hover":"_1MUz_","total-card-title":"_15UYs","total-card-value":"_ZkA4P","total-card-box__content":"_2_XfM","time-Date":"_1F31y","time-Hours-Minute":"_3RwI5","box-filter":"_37Lm-","block-total":"_1M33n","filter-select":"_3g7uY","box-filter-left":"_2p59U","filter-item":"_1dh4B","filter-select-list":"_1SJi8","box-filter-right":"_3QFAQ","search-input-icon":"_uctPq","inputInput":"_3Zg5b","btn-favorite-text":"_1wT59","block-right":"_2zDaG","block-right-container":"_1vl0q","delete-bulk":"_3BKxE","download-btn":"_1z_ef","box-show-filter-mobile":"_3FOMn","icon-show-all-filter":"_1xIXl","filter-item-collapse":"_2A1DF","space-item":"_1YwgI","table-cell":"_3M-67","table-cell--pointer":"_1ejqJ","arrow-icon":"_irUXz","header-left":"_Hacp0","header-icon":"_2_COy","header-right":"_ClCRS","btn-conduct-session":"_Bj2dA","btn-conduct-checkIn":"_36_5e","btn-conduct-session-disabled":"_3khUJ","send-icon":"_1JXJr","question-block":"_2FuVl","question-text":"_rScEi","question-slider":"_3M4zG","question-block-mobile":"_1YNCv","question-today":"_cFymD","input-survey":"_1T9Fy","font-description":"_HrltY","font-question":"_OaGRJ","font-question--all-bold":"_13HHM","answer--never":"_1QUbk","answer--rarely":"_3hLyh","answer--sometimes":"_3JlEj","answer--often":"_3tMCy","answer--almost-always":"_2MH-2","answer--all-the-time":"_1bbNe","box-title-question":"_fxQxk","tooltip-question":"_1QOF8","icon-info":"_pshKx","icon-warning":"_2NAZC","pointer":"_1MFti","talk-conduct":"_2hTrw","box-talk":"_2hYiu","box-p":"_1O96o","slider-avatar":"_2q9fR","box-slider":"_1ymYy","icon-text":"_RykFp","icon-left":"_3sqFO","margin-right":"_3oNcf","slider-text":"_3uC79","up-color-background":"_3Zg01","down-color-background":"_1UGuk","chip-slider":"_2Ng4N","up-color-icon":"_1cbf_","up-color":"_2n5kU","down-color-icon":"_2jAhL","down-color":"_QujPQ","rotate":"_3MLtR","value":"_3r9SC","compare-avr":"_3mFKa","content":"_2jwZj","percent":"_300a_","arrow":"_35l6Q","block-button":"_t-JRi","emotion-list":"_2Bp8v","emotion-item":"_2lIqc","emotion-active":"_2n2uB","label-single-choice":"_2pts6","radio-choice":"_ffUTh","pointer-page-result":"_29a5o","btn-choice":"_2PymV","yes-active":"_nvsDm","no-active":"_1ceeg","checkbox-control":"_EdwGx","answer-text":"_1gPxU","block-card-name":"_3HBIv","block-card-title":"_3zHtB","block-card-btn":"_1vH5y","block-card-btn-title":"_1VPBS","block-card-btn-icon":"_2HZ2W","header-component":"_29Wmk","btn-start":"_1ysA0","timer-start":"_Mg6qB","btn-timer":"_3fcdK","timer-text":"_3i-J4","timer-session":"_2Jv8D","play-icon-pause":"_5_zm5","play-icon":"_dOX4f","header-student":"_2ZYZ6","btn-duplicate-survey":"_3fJxX","btn-conduct-icon":"_1-BB2","total-card-box-3":"_w-iFN","total-card-box-4":"_1F6ea","box-select-session":"_3O8RG","btn-session":"_3jG8_","header-right-student":"_20rLn","full-width":"_1vrLT","total-card-box-5":"_30kwe","custom-input":"_3m2ZU","browserdata":"_3AR-2","box-component-search":"_3gbz0","search-icon":"_G7wNn","search-item":"_R8oRS","no-data":"_3Qo6X"};
|
|
1507
1507
|
|
|
1508
1508
|
var ToggleInput = function ToggleInput(_ref) {
|
|
1509
1509
|
var value = _ref.value,
|
|
@@ -31475,6 +31475,11 @@ var getAnswerChart = function getAnswerChart(surveyId, params) {
|
|
|
31475
31475
|
params: params
|
|
31476
31476
|
});
|
|
31477
31477
|
};
|
|
31478
|
+
var deleteSelectedSurveyApi = function deleteSelectedSurveyApi(ids) {
|
|
31479
|
+
return marioCore.api["delete"](SURVEY_API + "/delete-selected-survey", {
|
|
31480
|
+
data: ids
|
|
31481
|
+
});
|
|
31482
|
+
};
|
|
31478
31483
|
|
|
31479
31484
|
var TeacherSelector$1 = function TeacherSelector(_ref) {
|
|
31480
31485
|
var isShowDropDownIcon = _ref.isShowDropDownIcon,
|
|
@@ -51089,7 +51094,15 @@ var useListSurvey = function useListSurvey(pageSize) {
|
|
|
51089
51094
|
dataStudents = _useState10[0],
|
|
51090
51095
|
setDataStudents = _useState10[1];
|
|
51091
51096
|
|
|
51092
|
-
var _useState11 = React.useState(
|
|
51097
|
+
var _useState11 = React.useState([]),
|
|
51098
|
+
selectedIds = _useState11[0],
|
|
51099
|
+
setSelectedIds = _useState11[1];
|
|
51100
|
+
|
|
51101
|
+
var _useState12 = React.useState(false),
|
|
51102
|
+
openSelectedModal = _useState12[0],
|
|
51103
|
+
setOpenSelectedModal = _useState12[1];
|
|
51104
|
+
|
|
51105
|
+
var _useState13 = React.useState({
|
|
51093
51106
|
isAdmin: true,
|
|
51094
51107
|
currentPage: 1,
|
|
51095
51108
|
pageSize: pageSize ? pageSize : 10,
|
|
@@ -51106,8 +51119,8 @@ var useListSurvey = function useListSurvey(pageSize) {
|
|
|
51106
51119
|
optionDate: "",
|
|
51107
51120
|
studentId: 0
|
|
51108
51121
|
}),
|
|
51109
|
-
filters =
|
|
51110
|
-
setFilters =
|
|
51122
|
+
filters = _useState13[0],
|
|
51123
|
+
setFilters = _useState13[1];
|
|
51111
51124
|
|
|
51112
51125
|
var _useSurveyExportCsv = useSurveyExportCsv(),
|
|
51113
51126
|
exportSurveys = _useSurveyExportCsv.exportSurveys,
|
|
@@ -51564,6 +51577,87 @@ var useListSurvey = function useListSurvey(pageSize) {
|
|
|
51564
51577
|
|
|
51565
51578
|
var openPopover = Boolean(anchorEl);
|
|
51566
51579
|
var popoverId = openPopover ? 'simple-popover' : undefined;
|
|
51580
|
+
|
|
51581
|
+
var handleToggleSelect = function handleToggleSelect(id) {
|
|
51582
|
+
setSelectedIds(function (prev) {
|
|
51583
|
+
return prev.includes(id) ? prev.filter(function (x) {
|
|
51584
|
+
return x !== id;
|
|
51585
|
+
}) : [].concat(prev, [id]);
|
|
51586
|
+
});
|
|
51587
|
+
};
|
|
51588
|
+
|
|
51589
|
+
var handleSelectAll = function handleSelectAll(checked) {
|
|
51590
|
+
if (checked) {
|
|
51591
|
+
var _listSurvey$items$map, _listSurvey$items2;
|
|
51592
|
+
|
|
51593
|
+
var currentPageIds = (_listSurvey$items$map = listSurvey === null || listSurvey === void 0 ? void 0 : (_listSurvey$items2 = listSurvey.items) === null || _listSurvey$items2 === void 0 ? void 0 : _listSurvey$items2.map(function (i) {
|
|
51594
|
+
return i.id;
|
|
51595
|
+
})) != null ? _listSurvey$items$map : [];
|
|
51596
|
+
setSelectedIds(function (prev) {
|
|
51597
|
+
return Array.from(new Set([].concat(prev, currentPageIds)));
|
|
51598
|
+
});
|
|
51599
|
+
} else {
|
|
51600
|
+
var _listSurvey$items$map2, _listSurvey$items3;
|
|
51601
|
+
|
|
51602
|
+
var _currentPageIds = (_listSurvey$items$map2 = listSurvey === null || listSurvey === void 0 ? void 0 : (_listSurvey$items3 = listSurvey.items) === null || _listSurvey$items3 === void 0 ? void 0 : _listSurvey$items3.map(function (i) {
|
|
51603
|
+
return i.id;
|
|
51604
|
+
})) != null ? _listSurvey$items$map2 : [];
|
|
51605
|
+
|
|
51606
|
+
setSelectedIds(function (prev) {
|
|
51607
|
+
return prev.filter(function (id) {
|
|
51608
|
+
return !_currentPageIds.includes(id);
|
|
51609
|
+
});
|
|
51610
|
+
});
|
|
51611
|
+
}
|
|
51612
|
+
};
|
|
51613
|
+
|
|
51614
|
+
var handleOpenModalDelete = function handleOpenModalDelete() {
|
|
51615
|
+
setOpenSelectedModal(true);
|
|
51616
|
+
};
|
|
51617
|
+
|
|
51618
|
+
var handleCloseModalDelete = function handleCloseModalDelete() {
|
|
51619
|
+
setOpenSelectedModal(false);
|
|
51620
|
+
};
|
|
51621
|
+
|
|
51622
|
+
var handleDeleteSelected = function handleDeleteSelected() {
|
|
51623
|
+
try {
|
|
51624
|
+
var _temp23 = function _temp23() {
|
|
51625
|
+
setOpenSelectedModal(false);
|
|
51626
|
+
dispatch(marioCore.setLoading(false));
|
|
51627
|
+
};
|
|
51628
|
+
|
|
51629
|
+
dispatch(marioCore.setLoading(true));
|
|
51630
|
+
|
|
51631
|
+
var _temp24 = _catch(function () {
|
|
51632
|
+
return Promise.resolve(deleteSelectedSurveyApi(selectedIds)).then(function () {
|
|
51633
|
+
var _filters$grade4;
|
|
51634
|
+
|
|
51635
|
+
return Promise.resolve(getAllSurvey(_extends({}, filters, {
|
|
51636
|
+
grade: (_filters$grade4 = filters.grade) !== null && _filters$grade4 !== void 0 && _filters$grade4.includes('All') ? [] : filters.grade
|
|
51637
|
+
}))).then(function (res) {
|
|
51638
|
+
setListSurvey(res.data);
|
|
51639
|
+
dispatch(marioCore.setAlert({
|
|
51640
|
+
type: "success",
|
|
51641
|
+
message: selectedIds.length + " surveys deleted successfully!"
|
|
51642
|
+
}));
|
|
51643
|
+
setSelectedIds([]);
|
|
51644
|
+
});
|
|
51645
|
+
});
|
|
51646
|
+
}, function (error) {
|
|
51647
|
+
var _error$response2, _error$response2$data;
|
|
51648
|
+
|
|
51649
|
+
dispatch(marioCore.setAlert({
|
|
51650
|
+
type: "danger",
|
|
51651
|
+
message: ((_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.title) || error.message
|
|
51652
|
+
}));
|
|
51653
|
+
});
|
|
51654
|
+
|
|
51655
|
+
return Promise.resolve(_temp24 && _temp24.then ? _temp24.then(_temp23) : _temp23(_temp24));
|
|
51656
|
+
} catch (e) {
|
|
51657
|
+
return Promise.reject(e);
|
|
51658
|
+
}
|
|
51659
|
+
};
|
|
51660
|
+
|
|
51567
51661
|
return {
|
|
51568
51662
|
itemSelected: itemSelected,
|
|
51569
51663
|
itemSelectedStudentId: itemSelectedStudentId,
|
|
@@ -51614,7 +51708,14 @@ var useListSurvey = function useListSurvey(pageSize) {
|
|
|
51614
51708
|
dataStudents: dataStudents,
|
|
51615
51709
|
handleChangeStudent: handleChangeStudent,
|
|
51616
51710
|
onEditSurvey: onEditSurvey,
|
|
51617
|
-
handlePublishSurvey: handlePublishSurvey
|
|
51711
|
+
handlePublishSurvey: handlePublishSurvey,
|
|
51712
|
+
selectedIds: selectedIds,
|
|
51713
|
+
handleToggleSelect: handleToggleSelect,
|
|
51714
|
+
handleSelectAll: handleSelectAll,
|
|
51715
|
+
handleDeleteSelected: handleDeleteSelected,
|
|
51716
|
+
handleOpenModalDelete: handleOpenModalDelete,
|
|
51717
|
+
openSelectedModal: openSelectedModal,
|
|
51718
|
+
handleCloseModalDelete: handleCloseModalDelete
|
|
51618
51719
|
};
|
|
51619
51720
|
};
|
|
51620
51721
|
|
|
@@ -51755,7 +51856,10 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
51755
51856
|
onChangeGrade = _ref.onChangeGrade,
|
|
51756
51857
|
onChangeOptionDate = _ref.onChangeOptionDate,
|
|
51757
51858
|
_renderOption = _ref.renderOption,
|
|
51758
|
-
isSelectMulti = _ref.isSelectMulti
|
|
51859
|
+
isSelectMulti = _ref.isSelectMulti,
|
|
51860
|
+
handleOpenModalDelete = _ref.handleOpenModalDelete,
|
|
51861
|
+
_ref$selectedIds = _ref.selectedIds,
|
|
51862
|
+
selectedIds = _ref$selectedIds === void 0 ? [] : _ref$selectedIds;
|
|
51759
51863
|
|
|
51760
51864
|
var _useTranslation = marioCore.useTranslation(),
|
|
51761
51865
|
t = _useTranslation.t;
|
|
@@ -52036,6 +52140,8 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
52036
52140
|
}), React__default.createElement("div", {
|
|
52037
52141
|
className: "" + styles["btn-favorite-text"]
|
|
52038
52142
|
}, t(toggleContentCustom))))), React__default.createElement(core$1.Grid, {
|
|
52143
|
+
className: "" + styles["block-right-container"]
|
|
52144
|
+
}, React__default.createElement(core$1.Grid, {
|
|
52039
52145
|
className: "" + styles["block-right"]
|
|
52040
52146
|
}, !!isShowSelectRight && React__default.createElement(Autocomplete, {
|
|
52041
52147
|
fullWidth: true,
|
|
@@ -52101,7 +52207,14 @@ var CustomFilterComponent = function CustomFilterComponent(_ref) {
|
|
|
52101
52207
|
flexBasis: "content"
|
|
52102
52208
|
},
|
|
52103
52209
|
onClick: handleDownloadCsv
|
|
52104
|
-
}, t("download.csv")))
|
|
52210
|
+
}, t("download.csv"))), handleOpenModalDelete && React__default.createElement("button", {
|
|
52211
|
+
type: "button",
|
|
52212
|
+
className: styles['delete-bulk'],
|
|
52213
|
+
onClick: function onClick() {
|
|
52214
|
+
return handleOpenModalDelete();
|
|
52215
|
+
},
|
|
52216
|
+
disabled: !selectedIds.length
|
|
52217
|
+
}, t('delete_bulk') + " " + (selectedIds.length > 0 ? "(" + selectedIds.length + ")" : ''), " ", React__default.createElement(fa.FaTrashAlt, null)))));
|
|
52105
52218
|
};
|
|
52106
52219
|
|
|
52107
52220
|
var ColorButton$1 = core$1.styled(core$1.Button)(function () {
|
|
@@ -52604,12 +52717,30 @@ var tableResponseSurvey = [{
|
|
|
52604
52717
|
var TableCells = function TableCells(_ref) {
|
|
52605
52718
|
var listTableCell = _ref.listTableCell,
|
|
52606
52719
|
filters = _ref.filters,
|
|
52607
|
-
handleSort = _ref.handleSort
|
|
52720
|
+
handleSort = _ref.handleSort,
|
|
52721
|
+
hasCheckbox = _ref.hasCheckbox,
|
|
52722
|
+
dataSelect = _ref.dataSelect,
|
|
52723
|
+
selectedIds = _ref.selectedIds,
|
|
52724
|
+
handleSelectAll = _ref.handleSelectAll;
|
|
52608
52725
|
|
|
52609
52726
|
var _useTranslation = marioCore.useTranslation(),
|
|
52610
52727
|
t = _useTranslation.t;
|
|
52611
52728
|
|
|
52612
|
-
return React__default.createElement(core$1.TableRow, null,
|
|
52729
|
+
return React__default.createElement(core$1.TableRow, null, hasCheckbox && dataSelect && selectedIds && handleSelectAll && React__default.createElement(core$1.TableCell, {
|
|
52730
|
+
padding: "checkbox"
|
|
52731
|
+
}, React__default.createElement(core$1.Checkbox, {
|
|
52732
|
+
checked: (dataSelect === null || dataSelect === void 0 ? void 0 : dataSelect.length) > 0 && dataSelect.every(function (i) {
|
|
52733
|
+
return selectedIds.includes(i.id);
|
|
52734
|
+
}),
|
|
52735
|
+
indeterminate: dataSelect.some(function (i) {
|
|
52736
|
+
return selectedIds.includes(i.id);
|
|
52737
|
+
}) && !dataSelect.every(function (i) {
|
|
52738
|
+
return selectedIds.includes(i.id);
|
|
52739
|
+
}),
|
|
52740
|
+
onChange: function onChange(e) {
|
|
52741
|
+
return handleSelectAll(e.target.checked);
|
|
52742
|
+
}
|
|
52743
|
+
})), listTableCell.map(function (r) {
|
|
52613
52744
|
return React__default.createElement(core$1.TableCell, {
|
|
52614
52745
|
key: r.name,
|
|
52615
52746
|
align: r.align || "left",
|
|
@@ -52703,6 +52834,64 @@ var ModelLinkSurvey = function ModelLinkSurvey(_ref) {
|
|
|
52703
52834
|
}, React__default.createElement(FileCopyIcon, null)))));
|
|
52704
52835
|
};
|
|
52705
52836
|
|
|
52837
|
+
var styled = {"font-large":"_356Xx","table-border":"_3rVdM","Close":"_2Vs6W","Active":"_fISYg","row_name":"_2-4H1","bg-red":"_1G8nL","bg-green":"_ATqes","bg-yellow":"_U2Fov","row-status":"_2mAty","table-class-type":"_2KRfC","box-form-input":"_3bgU2","box-content":"_4h5aW","confirm_btn_title":"_3vU-q","content":"_2eddN","btn-favorite-text":"_3bpqI","description-template-left":"_3BhUP","name-template-left":"_2CA9Q","data-grid-content":"_697ao","select-right":"_1J-bu","content-confirm-model":"_2pqFa","input-title":"_1Dfbh","total-card-title":"_2-hXf","title-filter":"_36snY","form-input-title":"_1FINV","list-favorite":"_3EcML","title":"_2sFa5","title-block":"_18vbq","box-additional-title":"_NUXao","dialog-title":"_1oyCk","title-chart":"_2Yhd1","btn-send-survey":"_1xze5","btn-cancel":"_1bqU6","chip-email-default":"_2xKhD","chip-email-checked":"_ouqj6","title-content":"_2O3Tp","create-btn":"_3Cux8","general-chart-title":"_2Lxtl","action-wrapper":"_rEUU_","action-item":"_2n3hL","survey-detail":"_3vJ-g","header-survey-detail":"_Ri4lG","content-header":"_M7dFA","survey-title":"_2APad","responses-distribution":"_1I0XZ","description":"_1hw5e","list-check-question":"_1Ejsc","select-question":"_2t6cX","question":"_2cNmh","ratings-of-questions":"_3225G","show-result":"_3KDFH","chart-result-for-question":"_N5fxX","parameter":"_1NNB0","percent":"_-Fj2n","chart":"_1Qyn4","legend":"_1tBch","avr":"_2TsdE","legend-item":"_3YpJk","name":"_2W9F-","action":"_Ldh2m","header-conduct":"_1npo6","student-detail":"_1pKV2","student-name":"_1GBNs","survey-name":"_2qlBy","conduct-body":"_1dxHK","response-question":"_3IlYT","title-model":"_1UBEA","total-cards":"_38gNv","card":"_C2FoT","response-body":"_3XFlg","student":"_2fuBW","date":"_QH_aS","answer":"_3Rool","none-answer":"_l65o6","font-small":"_1mTdj","option-select":"_32CPv","icon-add-header":"_2tltH","sup-require":"_3IAjJ","span-title":"_2vOMh","checked-favorite":"_JL458","flag":"_1jRbU","filter-desktop":"_1ByZl","h-75":"_2bC49","filter-mobile":"_39EFp","d-flex":"_3ILHs","flex-between":"_1Dy7M","pointer":"_1G7Oj","ml-10":"_3pvOS","mt-20":"_3QSsx","select-type":"_1zeZ3","student-survey-questions":"_24uRc","student-survey-questions-title":"_52eJU","student-survey-questions-categories":"_evlgo","all-student-survey":"_2rp1M","question-student-survey":"_1mIVS","question-student-survey-number":"_1MHBI","question-student-survey-content":"_28Xa9","box-input-csv":"_HGXSI","icon":"_2jqP8","model-confirm-publish":"_1DLAE","box-email-content":"_3aA8I","input-mail-content":"_3HfSn","list-chip-email":"_2mJew","box-chip-email":"_2fwdD","table-desktop":"_3_y0a","table-container":"_DFKYF","data-grid":"_3EcnW","MuiDataGrid-columnSeparator":"_3P0hc","table-mobile":"_1iMfJ","block-list-survey":"_EuZ8_","box-filter":"_3utMA","block-total":"_qlUFF","list-card-right":"_Epdgt","filter-select":"_20eFs","box-filter-left":"_MtBqD","filter-item":"_1WJAo","box-filter-right":"_2VDGv","search-input-icon":"_1FexU","inputInput":"_2JzR2","external-item":"_2iP6U","action-view":"_6y3DH","time-Date":"_17nC2","time-Hours-Minute":"_1vEXB","table-row":"_1jd05","arrow-icon":"_3Urdb","table-cell":"_qPEQy","btn-function":"_2xh2d","btn-action-text":"_2KfG4","avatar_user":"_2mUU4","innerHtml":"_2fgAa","btn-open":"_fLtnC","date-schedule":"_1amhM","pending":"_38Q73","replied":"_2mi_L","actionneeded":"_3qg29","actionneed":"_3XKeC","noscheduled":"_salNB","scheduled":"_3vFP4","completed":"_FoXPx","notstartyet":"_3bhI6","flex-item":"_36RRe","mr-10":"_2A5LB","session":"_33gcZ","schedule-now":"_2BiiZ","block-filter":"_3qVjM","block-filter-right":"_1C7WS","create-survey-container":"_2_bhv","box-create-survey":"_1h2_-","box-list-favorite":"_2Np-n","check-box-btn":"_2KGDK","stepper":"_AHiUZ","step-label":"_6O2vy","dialog-select-template":"_Vb5G5","icon-btn":"_1aD3k","icon-remove":"_rxvBN","title-btn":"_3BDjW","title-box-model":"_3V3hO","box-content-select":"_1p5SM","title-content-select":"_1wY14","description-content-select":"_3AYvl","box-function":"_1yo2i","cancel_btn":"_2q0h5","confirm_btn":"_1wniK","confirm_btn_icon":"_3rnyp","remove_btn":"_3WkIH","remove_btn_title":"_14_xL","remove_btn_icon":"_3VptO","mid_btn":"_Psdg4","box-function-flex":"_2K1MV","box-collapse":"_2-Sse","box-collapse-top":"_miLBv","box-collapse-right":"_2xNTI","collapse-chip":"_13im8","collapse-left-title":"_aft4S","box-collapse-content-item":"_26SCl","block-review-detail":"_1d4Lf","block-content-review":"_12S3I","block-template-review":"_36gKq","block-template-left":"_lw5Ox","additional-box":"_3_5ab","header-item":"_1Q3h9","header-title":"_1WGNT","space-content":"_36P3O","table-title":"_1FCFx","table-status":"_L_uPM","box-header-select":"_1k-yH","header-select-name":"_32KLh","header-select-icon":"_28PLI","header-select-detail":"_ZI06k","list-question-select":"_2EaBh","new-survey":"_SLI97","box-survey":"_dVgqi","avt-user":"_2oBnh","infor":"_3HNaN","content-text":"_SIfgw","time":"_1Sje8","card-item-mobile":"_UEtvP","card-item-left":"_1IKvD","item-name":"_2vyTL","item-detail":"_1bzAB","item-date":"_vw-CP","item-date-content":"_3tsha","table-status-mobile":"_2yS_O","button-mobile":"_1WcRD","box-detail":"_2Mctt","btn-duplicate":"_3Gz-M","box-input":"_3VFOh","item-answer":"_1zSJi","box-favorite":"_2o2b0","overview-survey":"_2sVJR","chart-view-dashboard":"_1doPS","block-chart-wrapper":"_1lkE3","block-chart-title":"_9mzcE","block-chart-top":"_QLUQO","chart-left":"_2c6UE","chart-right":"_1Pmw_","block-header-chart":"_14hBc","column-chart-percent":"_1Ml_a","chart-background":"_2AO5K","custom-marker":"_21lNI","item-legend":"_3BpNG","mark-custom":"_tnwFd","label-legend-custom":"_2juK0","mark-legend":"_13l-r","label-chart":"_3KJlm","listItem":"_1sU--","item":"_397kU","item-checkbox":"_33URL","check-box":"_X-D1i","pie-chart":"_2-TOd","box-chart-title":"_Gijux","box-chart":"_3G2tI","legend-pie-custom":"_sm5jY","color-box":"_3LqNl","generate-flag":"_24iDw","flag-item":"_V8630","count":"_39_gg","red":"_1Qdq3","yellow":"_1ukSp","green":"_Aj1d4","select-filter-top":"_3vD8W","filter-box":"_2WhAK","accordion":"_QOqG1","expanded-summary":"_oa9O2","expanded-title":"_1gxS6","expanded-detail":"_1Uklu","oveview-style":"_DU0s_","item-container":"_17V8B","note-external":"_1Mvjg","icon-back-page":"_3ckSJ","dot":"_1vzYS","table-wrapper":"_z0mjD","pagination":"_kn_xp","dot-response":"_2Nrxx","dot-not-response":"_6GUzQ","middle":"_2gw2z","table-dropdown":"_13mck","table-header":"_nxpHH","tbody-table":"_34MIA","total-student-head":"_aYRpI","item-static":"_1oDeK","item-static-icon":"_1g_wu","item-static-icon-sent":"_R4ydA","item-static-content":"_3YQVJ","free-field-list-container":"_1CGJu","free-field-list":"_2ohw9","question-text":"_3pVqy","number-index":"_2AkUX","bottom-collapse":"_3-xGL","avr-comparison-container":"_UuSO2","avr-comparison-list":"_kQ5Pg","avr-comparison":"_3VMEs","avr-comparison-content":"_1hYtD","delete-survey-modal":"_2_xof","delete-survey-modal__title":"_2IYUC","delete-survey-modal__description":"_Dm6Kc","delete-survey-modal__group-btn":"_r9NMX","delete-survey-modal__action":"_92MjQ","delete-survey-modal__cancel":"_33vda","heartbeat":"_3fubD"};
|
|
52838
|
+
|
|
52839
|
+
var DoneCheckInIcon = function DoneCheckInIcon(_ref) {
|
|
52840
|
+
var _ref$color = _ref.color,
|
|
52841
|
+
color = _ref$color === void 0 ? '#0F9655' : _ref$color;
|
|
52842
|
+
return React__default.createElement("svg", {
|
|
52843
|
+
width: "24",
|
|
52844
|
+
height: "24",
|
|
52845
|
+
viewBox: "0 0 24 24",
|
|
52846
|
+
fill: "none",
|
|
52847
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
52848
|
+
}, React__default.createElement("path", {
|
|
52849
|
+
d: "M9.5501 18L3.8501 12.3L5.2751 10.875L9.5501 15.15L18.7251 5.97498L20.1501 7.39998L9.5501 18Z",
|
|
52850
|
+
fill: color
|
|
52851
|
+
}));
|
|
52852
|
+
};
|
|
52853
|
+
|
|
52854
|
+
var ConfirmDeleteSelectedModal = function ConfirmDeleteSelectedModal(_ref) {
|
|
52855
|
+
var isOpen = _ref.isOpen,
|
|
52856
|
+
onClose = _ref.onClose,
|
|
52857
|
+
handleDelete = _ref.handleDelete,
|
|
52858
|
+
selectedIds = _ref.selectedIds;
|
|
52859
|
+
|
|
52860
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
52861
|
+
t = _useTranslation.t;
|
|
52862
|
+
|
|
52863
|
+
return React__default.createElement(SimpleDialog, {
|
|
52864
|
+
open: isOpen,
|
|
52865
|
+
onClose: onClose,
|
|
52866
|
+
scroll: "body",
|
|
52867
|
+
maxWidth: "sm"
|
|
52868
|
+
}, React__default.createElement("div", {
|
|
52869
|
+
className: styled['delete-survey-modal']
|
|
52870
|
+
}, React__default.createElement("h2", {
|
|
52871
|
+
className: styled['delete-survey-modal__title']
|
|
52872
|
+
}, "Delete survey"), React__default.createElement("div", {
|
|
52873
|
+
className: styled['delete-survey-modal__description']
|
|
52874
|
+
}, "Are you sure to delete ", selectedIds.length, " survey(s)?"), React__default.createElement("div", {
|
|
52875
|
+
className: styled['delete-survey-modal__group-btn']
|
|
52876
|
+
}, React__default.createElement("button", {
|
|
52877
|
+
type: 'button',
|
|
52878
|
+
className: styled['delete-survey-modal__cancel'],
|
|
52879
|
+
onClick: function onClick() {
|
|
52880
|
+
onClose && onClose();
|
|
52881
|
+
}
|
|
52882
|
+
}, t('cancel')), React__default.createElement("button", {
|
|
52883
|
+
type: 'button',
|
|
52884
|
+
className: styled['delete-survey-modal__action'],
|
|
52885
|
+
onClick: function onClick() {
|
|
52886
|
+
return handleDelete();
|
|
52887
|
+
}
|
|
52888
|
+
}, React__default.createElement(DoneCheckInIcon, {
|
|
52889
|
+
color: '#fff'
|
|
52890
|
+
}), "yes, i'm sure!"))));
|
|
52891
|
+
};
|
|
52892
|
+
|
|
52893
|
+
var ConfirmDeleteSelectedModal$1 = React.memo(ConfirmDeleteSelectedModal);
|
|
52894
|
+
|
|
52706
52895
|
var PopoverCustom = core$1.styled(core$1.Popover)(function () {
|
|
52707
52896
|
return {
|
|
52708
52897
|
"& .MuiPopover-paper": {
|
|
@@ -52764,7 +52953,14 @@ var ListSurveys = function ListSurveys() {
|
|
|
52764
52953
|
dataStudents = _useListSurvey.dataStudents,
|
|
52765
52954
|
handleChangeStudent = _useListSurvey.handleChangeStudent,
|
|
52766
52955
|
onEditSurvey = _useListSurvey.onEditSurvey,
|
|
52767
|
-
handlePublishSurvey = _useListSurvey.handlePublishSurvey
|
|
52956
|
+
handlePublishSurvey = _useListSurvey.handlePublishSurvey,
|
|
52957
|
+
selectedIds = _useListSurvey.selectedIds,
|
|
52958
|
+
handleToggleSelect = _useListSurvey.handleToggleSelect,
|
|
52959
|
+
handleSelectAll = _useListSurvey.handleSelectAll,
|
|
52960
|
+
handleDeleteSelected = _useListSurvey.handleDeleteSelected,
|
|
52961
|
+
openSelectedModal = _useListSurvey.openSelectedModal,
|
|
52962
|
+
handleCloseModalDelete = _useListSurvey.handleCloseModalDelete,
|
|
52963
|
+
handleOpenModalDelete = _useListSurvey.handleOpenModalDelete;
|
|
52768
52964
|
|
|
52769
52965
|
var _useFontStyles = useFontStyles(),
|
|
52770
52966
|
classFontSize = _useFontStyles.classFontSize,
|
|
@@ -52818,7 +53014,9 @@ var ListSurveys = function ListSurveys() {
|
|
|
52818
53014
|
onChangeOptionDate: onChangeOptionDate,
|
|
52819
53015
|
isSelectMulti: true,
|
|
52820
53016
|
studentList: dataStudents,
|
|
52821
|
-
onSelectStudent: handleChangeStudent
|
|
53017
|
+
onSelectStudent: handleChangeStudent,
|
|
53018
|
+
handleOpenModalDelete: handleOpenModalDelete,
|
|
53019
|
+
selectedIds: selectedIds
|
|
52822
53020
|
})), React__default.createElement(core$1.Grid, {
|
|
52823
53021
|
className: "" + styles$a["filter-mobile"]
|
|
52824
53022
|
}, React__default.createElement(CustomFilterMobile, {
|
|
@@ -52855,11 +53053,22 @@ var ListSurveys = function ListSurveys() {
|
|
|
52855
53053
|
}, React__default.createElement(core$1.TableHead, null, React__default.createElement(TableCells, {
|
|
52856
53054
|
listTableCell: tableListSurvey,
|
|
52857
53055
|
filters: filters,
|
|
52858
|
-
handleSort: handleSort
|
|
53056
|
+
handleSort: handleSort,
|
|
53057
|
+
hasCheckbox: true,
|
|
53058
|
+
dataSelect: (listSurvey === null || listSurvey === void 0 ? void 0 : listSurvey.items) || [],
|
|
53059
|
+
selectedIds: selectedIds,
|
|
53060
|
+
handleSelectAll: handleSelectAll
|
|
52859
53061
|
})), React__default.createElement(core$1.TableBody, null, listSurvey === null || listSurvey === void 0 ? void 0 : (_listSurvey$items = listSurvey.items) === null || _listSurvey$items === void 0 ? void 0 : _listSurvey$items.map(function (e) {
|
|
52860
53062
|
return React__default.createElement(core$1.TableRow, {
|
|
52861
53063
|
key: e.id
|
|
52862
53064
|
}, React__default.createElement(core$1.TableCell, {
|
|
53065
|
+
padding: "checkbox"
|
|
53066
|
+
}, React__default.createElement(core$1.Checkbox, {
|
|
53067
|
+
checked: selectedIds.includes(e.id),
|
|
53068
|
+
onChange: function onChange() {
|
|
53069
|
+
return handleToggleSelect(e.id);
|
|
53070
|
+
}
|
|
53071
|
+
})), React__default.createElement(core$1.TableCell, {
|
|
52863
53072
|
component: "th",
|
|
52864
53073
|
scope: "row",
|
|
52865
53074
|
height: 80,
|
|
@@ -53035,6 +53244,11 @@ var ListSurveys = function ListSurveys() {
|
|
|
53035
53244
|
handleDelete: handleDeleteSurvey,
|
|
53036
53245
|
selectedId: (itemSelected === null || itemSelected === void 0 ? void 0 : itemSelected.id) || 0,
|
|
53037
53246
|
content: t('this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it')
|
|
53247
|
+
}), React__default.createElement(ConfirmDeleteSelectedModal$1, {
|
|
53248
|
+
handleDelete: handleDeleteSelected,
|
|
53249
|
+
isOpen: openSelectedModal,
|
|
53250
|
+
onClose: handleCloseModalDelete,
|
|
53251
|
+
selectedIds: selectedIds
|
|
53038
53252
|
}), React__default.createElement(ModelLinkSurvey, {
|
|
53039
53253
|
open: !!anonymousKey,
|
|
53040
53254
|
onClose: handleCloseModelLink,
|
|
@@ -54502,8 +54716,6 @@ var ResponseQuestionModel = function ResponseQuestionModel(_ref) {
|
|
|
54502
54716
|
}))));
|
|
54503
54717
|
};
|
|
54504
54718
|
|
|
54505
|
-
var styled = {"font-large":"_356Xx","table-border":"_3rVdM","Close":"_2Vs6W","Active":"_fISYg","row_name":"_2-4H1","bg-red":"_1G8nL","bg-green":"_ATqes","bg-yellow":"_U2Fov","row-status":"_2mAty","table-class-type":"_2KRfC","box-form-input":"_3bgU2","box-content":"_4h5aW","confirm_btn_title":"_3vU-q","content":"_2eddN","btn-favorite-text":"_3bpqI","description-template-left":"_3BhUP","name-template-left":"_2CA9Q","data-grid-content":"_697ao","select-right":"_1J-bu","content-confirm-model":"_2pqFa","input-title":"_1Dfbh","total-card-title":"_2-hXf","title-filter":"_36snY","form-input-title":"_1FINV","list-favorite":"_3EcML","title":"_2sFa5","title-block":"_18vbq","box-additional-title":"_NUXao","dialog-title":"_1oyCk","title-chart":"_2Yhd1","btn-send-survey":"_1xze5","btn-cancel":"_1bqU6","chip-email-default":"_2xKhD","chip-email-checked":"_ouqj6","title-content":"_2O3Tp","create-btn":"_3Cux8","general-chart-title":"_2Lxtl","action-wrapper":"_rEUU_","action-item":"_2n3hL","survey-detail":"_3vJ-g","header-survey-detail":"_Ri4lG","content-header":"_M7dFA","survey-title":"_2APad","responses-distribution":"_1I0XZ","description":"_1hw5e","list-check-question":"_1Ejsc","select-question":"_2t6cX","question":"_2cNmh","ratings-of-questions":"_3225G","show-result":"_3KDFH","chart-result-for-question":"_N5fxX","parameter":"_1NNB0","percent":"_-Fj2n","chart":"_1Qyn4","legend":"_1tBch","avr":"_2TsdE","legend-item":"_3YpJk","name":"_2W9F-","action":"_Ldh2m","header-conduct":"_1npo6","student-detail":"_1pKV2","student-name":"_1GBNs","survey-name":"_2qlBy","conduct-body":"_1dxHK","response-question":"_3IlYT","title-model":"_1UBEA","total-cards":"_38gNv","card":"_C2FoT","response-body":"_3XFlg","student":"_2fuBW","date":"_QH_aS","answer":"_3Rool","none-answer":"_l65o6","font-small":"_1mTdj","option-select":"_32CPv","icon-add-header":"_2tltH","sup-require":"_3IAjJ","span-title":"_2vOMh","checked-favorite":"_JL458","flag":"_1jRbU","filter-desktop":"_1ByZl","h-75":"_2bC49","filter-mobile":"_39EFp","d-flex":"_3ILHs","flex-between":"_1Dy7M","pointer":"_1G7Oj","ml-10":"_3pvOS","mt-20":"_3QSsx","select-type":"_1zeZ3","student-survey-questions":"_24uRc","student-survey-questions-title":"_52eJU","student-survey-questions-categories":"_evlgo","all-student-survey":"_2rp1M","question-student-survey":"_1mIVS","question-student-survey-number":"_1MHBI","question-student-survey-content":"_28Xa9","box-input-csv":"_HGXSI","icon":"_2jqP8","model-confirm-publish":"_1DLAE","box-email-content":"_3aA8I","input-mail-content":"_3HfSn","list-chip-email":"_2mJew","box-chip-email":"_2fwdD","table-desktop":"_3_y0a","table-container":"_DFKYF","data-grid":"_3EcnW","MuiDataGrid-columnSeparator":"_3P0hc","table-mobile":"_1iMfJ","block-list-survey":"_EuZ8_","box-filter":"_3utMA","block-total":"_qlUFF","list-card-right":"_Epdgt","filter-select":"_20eFs","box-filter-left":"_MtBqD","filter-item":"_1WJAo","box-filter-right":"_2VDGv","search-input-icon":"_1FexU","inputInput":"_2JzR2","external-item":"_2iP6U","action-view":"_6y3DH","time-Date":"_17nC2","time-Hours-Minute":"_1vEXB","table-row":"_1jd05","arrow-icon":"_3Urdb","table-cell":"_qPEQy","btn-function":"_2xh2d","btn-action-text":"_2KfG4","avatar_user":"_2mUU4","innerHtml":"_2fgAa","btn-open":"_fLtnC","date-schedule":"_1amhM","pending":"_38Q73","replied":"_2mi_L","actionneeded":"_3qg29","actionneed":"_3XKeC","noscheduled":"_salNB","scheduled":"_3vFP4","completed":"_FoXPx","notstartyet":"_3bhI6","flex-item":"_36RRe","mr-10":"_2A5LB","session":"_33gcZ","schedule-now":"_2BiiZ","block-filter":"_3qVjM","block-filter-right":"_1C7WS","create-survey-container":"_2_bhv","box-create-survey":"_1h2_-","box-list-favorite":"_2Np-n","check-box-btn":"_2KGDK","stepper":"_AHiUZ","step-label":"_6O2vy","dialog-select-template":"_Vb5G5","icon-btn":"_1aD3k","icon-remove":"_rxvBN","title-btn":"_3BDjW","title-box-model":"_3V3hO","box-content-select":"_1p5SM","title-content-select":"_1wY14","description-content-select":"_3AYvl","box-function":"_1yo2i","cancel_btn":"_2q0h5","confirm_btn":"_1wniK","confirm_btn_icon":"_3rnyp","remove_btn":"_3WkIH","remove_btn_title":"_14_xL","remove_btn_icon":"_3VptO","mid_btn":"_Psdg4","box-function-flex":"_2K1MV","box-collapse":"_2-Sse","box-collapse-top":"_miLBv","box-collapse-right":"_2xNTI","collapse-chip":"_13im8","collapse-left-title":"_aft4S","box-collapse-content-item":"_26SCl","block-review-detail":"_1d4Lf","block-content-review":"_12S3I","block-template-review":"_36gKq","block-template-left":"_lw5Ox","additional-box":"_3_5ab","header-item":"_1Q3h9","header-title":"_1WGNT","space-content":"_36P3O","table-title":"_1FCFx","table-status":"_L_uPM","box-header-select":"_1k-yH","header-select-name":"_32KLh","header-select-icon":"_28PLI","header-select-detail":"_ZI06k","list-question-select":"_2EaBh","new-survey":"_SLI97","box-survey":"_dVgqi","avt-user":"_2oBnh","infor":"_3HNaN","content-text":"_SIfgw","time":"_1Sje8","card-item-mobile":"_UEtvP","card-item-left":"_1IKvD","item-name":"_2vyTL","item-detail":"_1bzAB","item-date":"_vw-CP","item-date-content":"_3tsha","table-status-mobile":"_2yS_O","button-mobile":"_1WcRD","box-detail":"_2Mctt","btn-duplicate":"_3Gz-M","box-input":"_3VFOh","item-answer":"_1zSJi","box-favorite":"_2o2b0","overview-survey":"_2sVJR","chart-view-dashboard":"_1doPS","block-chart-wrapper":"_1lkE3","block-chart-title":"_9mzcE","block-chart-top":"_QLUQO","chart-left":"_2c6UE","chart-right":"_1Pmw_","block-header-chart":"_14hBc","column-chart-percent":"_1Ml_a","chart-background":"_2AO5K","custom-marker":"_21lNI","item-legend":"_3BpNG","mark-custom":"_tnwFd","label-legend-custom":"_2juK0","mark-legend":"_13l-r","label-chart":"_3KJlm","listItem":"_1sU--","item":"_397kU","item-checkbox":"_33URL","check-box":"_X-D1i","pie-chart":"_2-TOd","box-chart-title":"_Gijux","box-chart":"_3G2tI","legend-pie-custom":"_sm5jY","color-box":"_3LqNl","generate-flag":"_24iDw","flag-item":"_V8630","count":"_39_gg","red":"_1Qdq3","yellow":"_1ukSp","green":"_Aj1d4","select-filter-top":"_3vD8W","filter-box":"_2WhAK","accordion":"_QOqG1","expanded-summary":"_oa9O2","expanded-title":"_1gxS6","expanded-detail":"_1Uklu","oveview-style":"_DU0s_","item-container":"_17V8B","note-external":"_1Mvjg","icon-back-page":"_3ckSJ","dot":"_1vzYS","table-wrapper":"_z0mjD","pagination":"_kn_xp","dot-response":"_2Nrxx","dot-not-response":"_6GUzQ","middle":"_2gw2z","table-dropdown":"_13mck","table-header":"_nxpHH","tbody-table":"_34MIA","total-student-head":"_aYRpI","item-static":"_1oDeK","item-static-icon":"_1g_wu","item-static-icon-sent":"_R4ydA","item-static-content":"_3YQVJ","free-field-list-container":"_1CGJu","free-field-list":"_2ohw9","question-text":"_3pVqy","number-index":"_2AkUX","bottom-collapse":"_3-xGL","avr-comparison-container":"_UuSO2","avr-comparison-list":"_kQ5Pg","avr-comparison":"_3VMEs","avr-comparison-content":"_1hYtD"};
|
|
54506
|
-
|
|
54507
54719
|
var useListQuestionSurvey = function useListQuestionSurvey() {
|
|
54508
54720
|
var _useState = React.useState([]),
|
|
54509
54721
|
questionSurvey = _useState[0],
|
|
@@ -81263,21 +81475,6 @@ var schema$l = yup.object({
|
|
|
81263
81475
|
email: yup.string().email('Invalid email').trim().required("Email is required")
|
|
81264
81476
|
});
|
|
81265
81477
|
|
|
81266
|
-
var DoneCheckInIcon = function DoneCheckInIcon(_ref) {
|
|
81267
|
-
var _ref$color = _ref.color,
|
|
81268
|
-
color = _ref$color === void 0 ? '#0F9655' : _ref$color;
|
|
81269
|
-
return React__default.createElement("svg", {
|
|
81270
|
-
width: "24",
|
|
81271
|
-
height: "24",
|
|
81272
|
-
viewBox: "0 0 24 24",
|
|
81273
|
-
fill: "none",
|
|
81274
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
81275
|
-
}, React__default.createElement("path", {
|
|
81276
|
-
d: "M9.5501 18L3.8501 12.3L5.2751 10.875L9.5501 15.15L18.7251 5.97498L20.1501 7.39998L9.5501 18Z",
|
|
81277
|
-
fill: color
|
|
81278
|
-
}));
|
|
81279
|
-
};
|
|
81280
|
-
|
|
81281
81478
|
var Profile = function Profile(_ref) {
|
|
81282
81479
|
var dataProfile = _ref.dataProfile,
|
|
81283
81480
|
updateProfile = _ref.updateProfile,
|