mario-education 2.4.186-level → 2.4.188-level
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/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/OverallDonutChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +2 -2
- package/dist/index.css +36 -0
- package/dist/index.js +709 -166
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +709 -166
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12,10 +12,10 @@ var reactRouterDom = require('react-router-dom');
|
|
|
12
12
|
var ai = require('react-icons/ai');
|
|
13
13
|
var DatePicker = _interopDefault(require('react-datepicker'));
|
|
14
14
|
var format = _interopDefault(require('date-fns/format'));
|
|
15
|
+
var fa = require('react-icons/fa');
|
|
15
16
|
var react = require('@ag-grid-community/react');
|
|
16
17
|
var masterDetail = require('@ag-grid-enterprise/master-detail');
|
|
17
18
|
var clientSideRowModel = require('@ag-grid-community/client-side-row-model');
|
|
18
|
-
var fa = require('react-icons/fa');
|
|
19
19
|
var dateFns = require('date-fns');
|
|
20
20
|
var tinymceReact = require('@tinymce/tinymce-react');
|
|
21
21
|
var fi = require('react-icons/fi');
|
|
@@ -12294,6 +12294,505 @@ var SwitchSecondaryTeacherList = function SwitchSecondaryTeacherList() {
|
|
|
12294
12294
|
}));
|
|
12295
12295
|
};
|
|
12296
12296
|
|
|
12297
|
+
var RosterConfigForm = function RosterConfigForm(_ref) {
|
|
12298
|
+
var rosterConfig = _ref.rosterConfig,
|
|
12299
|
+
updateData = _ref.updateData;
|
|
12300
|
+
|
|
12301
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
12302
|
+
t = _useTranslation.t;
|
|
12303
|
+
|
|
12304
|
+
return React__default.createElement(formik.Formik, {
|
|
12305
|
+
initialValues: rosterConfig,
|
|
12306
|
+
enableReinitialize: true,
|
|
12307
|
+
onSubmit: function onSubmit(values) {
|
|
12308
|
+
updateData(values);
|
|
12309
|
+
}
|
|
12310
|
+
}, function (formikProps) {
|
|
12311
|
+
var values = formikProps.values,
|
|
12312
|
+
handleChange = formikProps.handleChange,
|
|
12313
|
+
handleBlur = formikProps.handleBlur,
|
|
12314
|
+
handleSubmit = formikProps.handleSubmit;
|
|
12315
|
+
return React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
12316
|
+
md: 12
|
|
12317
|
+
}, React__default.createElement("h6", {
|
|
12318
|
+
className: "mt-4",
|
|
12319
|
+
style: {
|
|
12320
|
+
fontWeight: 700
|
|
12321
|
+
}
|
|
12322
|
+
}, "Roster Config")), React__default.createElement(reactstrap.Col, {
|
|
12323
|
+
md: 12,
|
|
12324
|
+
className: "my-4 mt-2"
|
|
12325
|
+
}, React__default.createElement(reactstrap.Label, {
|
|
12326
|
+
style: {
|
|
12327
|
+
fontWeight: 700
|
|
12328
|
+
}
|
|
12329
|
+
}, "Client Id:"), React__default.createElement(reactstrap.Input, {
|
|
12330
|
+
name: "clientId",
|
|
12331
|
+
placeholder: "Client Id",
|
|
12332
|
+
value: values.clientId,
|
|
12333
|
+
onChange: function onChange(e) {
|
|
12334
|
+
handleChange(e);
|
|
12335
|
+
},
|
|
12336
|
+
onBlur: handleBlur("clientId")
|
|
12337
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
12338
|
+
md: 12,
|
|
12339
|
+
className: "mb-4"
|
|
12340
|
+
}, React__default.createElement(reactstrap.Label, {
|
|
12341
|
+
style: {
|
|
12342
|
+
fontWeight: 700
|
|
12343
|
+
}
|
|
12344
|
+
}, "Client Secret:"), React__default.createElement(reactstrap.Input, {
|
|
12345
|
+
name: "clientSecret",
|
|
12346
|
+
placeholder: "Client Secret",
|
|
12347
|
+
value: values.clientSecret,
|
|
12348
|
+
onChange: function onChange(e) {
|
|
12349
|
+
handleChange(e);
|
|
12350
|
+
},
|
|
12351
|
+
onBlur: handleBlur("clientSecret")
|
|
12352
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
12353
|
+
md: 12,
|
|
12354
|
+
className: "d-flex justify-content-end"
|
|
12355
|
+
}, React__default.createElement(reactstrap.Button, {
|
|
12356
|
+
onClick: function onClick() {
|
|
12357
|
+
return handleSubmit();
|
|
12358
|
+
},
|
|
12359
|
+
color: "success"
|
|
12360
|
+
}, t("save"))));
|
|
12361
|
+
});
|
|
12362
|
+
};
|
|
12363
|
+
|
|
12364
|
+
var ROSTER_URL = marioCore.BASE_URL + "/api/oneRoster";
|
|
12365
|
+
var IMPORT_ZIP_ROSTER_URL = marioCore.BASE_URL + "/api/ImportOneRoster/file";
|
|
12366
|
+
var IMPORT_RESTFUL_API_ROSTER_URL = marioCore.BASE_URL + "/api/ImportRestApiRoster/rest";
|
|
12367
|
+
var getRosterConfig = function getRosterConfig() {
|
|
12368
|
+
return marioCore.api.get(ROSTER_URL);
|
|
12369
|
+
};
|
|
12370
|
+
var updateRosterConfig = function updateRosterConfig(data) {
|
|
12371
|
+
return marioCore.api.put("" + ROSTER_URL, data);
|
|
12372
|
+
};
|
|
12373
|
+
var importRosterFromFile = function importRosterFromFile(body, cb) {
|
|
12374
|
+
return marioCore.api.post(IMPORT_ZIP_ROSTER_URL, body, {
|
|
12375
|
+
onUploadProgress: cb
|
|
12376
|
+
});
|
|
12377
|
+
};
|
|
12378
|
+
var importRosterFromRestfulApi = function importRosterFromRestfulApi(fileName) {
|
|
12379
|
+
return marioCore.api.post(IMPORT_RESTFUL_API_ROSTER_URL + "?name=" + fileName);
|
|
12380
|
+
};
|
|
12381
|
+
|
|
12382
|
+
var styles$1 = {"spinner":"_2r0G1","spin":"_2fufb","success-block":"_3gvpw","middle-block":"_u47jo","list-block":"_3OiL8"};
|
|
12383
|
+
|
|
12384
|
+
var CSV_FILE_NAMES = ["academicSession", "classes", "resources", "courses", "orgs", "categories", "lineItems", "results", "users", "enrollments", "demographics"];
|
|
12385
|
+
var INVALID_CLIENT_ROSTER_CONFIG = "Response status code does not indicate success: 403 ().";
|
|
12386
|
+
|
|
12387
|
+
var useImportOneRoster = function useImportOneRoster() {
|
|
12388
|
+
var dispatch = reactRedux.useDispatch();
|
|
12389
|
+
var inputRef = React.useRef(null);
|
|
12390
|
+
|
|
12391
|
+
var _useState = React.useState(0),
|
|
12392
|
+
fileProgress = _useState[0],
|
|
12393
|
+
setFileProgress = _useState[1];
|
|
12394
|
+
|
|
12395
|
+
var _useState2 = React.useState(),
|
|
12396
|
+
uploadInfo = _useState2[0],
|
|
12397
|
+
setUploadInfo = _useState2[1];
|
|
12398
|
+
|
|
12399
|
+
var _useState3 = React.useState(),
|
|
12400
|
+
restApiInfo = _useState3[0],
|
|
12401
|
+
setRestApiInfo = _useState3[1];
|
|
12402
|
+
|
|
12403
|
+
var importRosterRestApi = React.useCallback(function (fileName) {
|
|
12404
|
+
try {
|
|
12405
|
+
var _temp2 = _catch(function () {
|
|
12406
|
+
return Promise.resolve(importRosterFromRestfulApi(fileName)).then(function () {
|
|
12407
|
+
setRestApiInfo(function (state) {
|
|
12408
|
+
var _extends2;
|
|
12409
|
+
|
|
12410
|
+
return _extends({}, state, (_extends2 = {}, _extends2[fileName] = true, _extends2));
|
|
12411
|
+
});
|
|
12412
|
+
});
|
|
12413
|
+
}, function (err) {
|
|
12414
|
+
setRestApiInfo(function (state) {
|
|
12415
|
+
var _err$response, _err$response$data, _extends3;
|
|
12416
|
+
|
|
12417
|
+
return _extends({}, state, (_extends3 = {}, _extends3[fileName] = ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message, _extends3));
|
|
12418
|
+
});
|
|
12419
|
+
});
|
|
12420
|
+
|
|
12421
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
12422
|
+
} catch (e) {
|
|
12423
|
+
return Promise.reject(e);
|
|
12424
|
+
}
|
|
12425
|
+
}, [JSON.stringify(restApiInfo)]);
|
|
12426
|
+
|
|
12427
|
+
var handleImportFromRestfulApi = function handleImportFromRestfulApi() {
|
|
12428
|
+
try {
|
|
12429
|
+
setRestApiInfo({});
|
|
12430
|
+
dispatch(marioCore.setLoading(true));
|
|
12431
|
+
return Promise.resolve(Promise.all(CSV_FILE_NAMES.map(function (fileName) {
|
|
12432
|
+
return importRosterRestApi(fileName);
|
|
12433
|
+
}))).then(function () {
|
|
12434
|
+
dispatch(marioCore.setLoading(false));
|
|
12435
|
+
});
|
|
12436
|
+
} catch (e) {
|
|
12437
|
+
return Promise.reject(e);
|
|
12438
|
+
}
|
|
12439
|
+
};
|
|
12440
|
+
|
|
12441
|
+
var importRosterZipFile = React.useCallback(function (file) {
|
|
12442
|
+
try {
|
|
12443
|
+
var _temp5 = function _temp5() {
|
|
12444
|
+
var _inputRef$current;
|
|
12445
|
+
|
|
12446
|
+
if ((_inputRef$current = inputRef.current) !== null && _inputRef$current !== void 0 && _inputRef$current.value) inputRef.current.value = "";
|
|
12447
|
+
setUploadInfo(function (state) {
|
|
12448
|
+
return _extends({}, state, {
|
|
12449
|
+
isUploading: false
|
|
12450
|
+
});
|
|
12451
|
+
});
|
|
12452
|
+
dispatch(marioCore.setLoading(false));
|
|
12453
|
+
};
|
|
12454
|
+
|
|
12455
|
+
setUploadInfo({
|
|
12456
|
+
error: "",
|
|
12457
|
+
success: false,
|
|
12458
|
+
isUploading: true,
|
|
12459
|
+
importedFiles: "",
|
|
12460
|
+
rejectedFiles: "",
|
|
12461
|
+
comment: ""
|
|
12462
|
+
});
|
|
12463
|
+
dispatch(marioCore.setLoading(true));
|
|
12464
|
+
|
|
12465
|
+
var _temp6 = _catch(function () {
|
|
12466
|
+
var formData = new FormData();
|
|
12467
|
+
formData.append("file", file);
|
|
12468
|
+
return Promise.resolve(importRosterFromFile(formData, handleProgressFile)).then(function (res) {
|
|
12469
|
+
setUploadInfo(function (state) {
|
|
12470
|
+
return _extends({}, state, {
|
|
12471
|
+
success: true,
|
|
12472
|
+
importedFiles: res.data.csvFilesImported || "",
|
|
12473
|
+
rejectedFiles: res.data.cSVFilesRejected || "",
|
|
12474
|
+
comment: res.data.comment || ""
|
|
12475
|
+
});
|
|
12476
|
+
});
|
|
12477
|
+
});
|
|
12478
|
+
}, function (err) {
|
|
12479
|
+
setUploadInfo(function (state) {
|
|
12480
|
+
var _err$response2, _err$response2$data;
|
|
12481
|
+
|
|
12482
|
+
return _extends({}, state, {
|
|
12483
|
+
error: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
12484
|
+
});
|
|
12485
|
+
});
|
|
12486
|
+
});
|
|
12487
|
+
|
|
12488
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
|
|
12489
|
+
} catch (e) {
|
|
12490
|
+
return Promise.reject(e);
|
|
12491
|
+
}
|
|
12492
|
+
}, [JSON.stringify(uploadInfo)]);
|
|
12493
|
+
|
|
12494
|
+
var handleChooseZipFile = function handleChooseZipFile() {
|
|
12495
|
+
var _inputRef$current2;
|
|
12496
|
+
|
|
12497
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.click();
|
|
12498
|
+
};
|
|
12499
|
+
|
|
12500
|
+
var handleProgressFile = function handleProgressFile(progressEvent) {
|
|
12501
|
+
var percent = Math.round(progressEvent.loaded / progressEvent.total * 100);
|
|
12502
|
+
setFileProgress(percent);
|
|
12503
|
+
};
|
|
12504
|
+
|
|
12505
|
+
var handleFileChange = React.useCallback(function () {
|
|
12506
|
+
try {
|
|
12507
|
+
var _inputRef$current3, _inputRef$current3$fi;
|
|
12508
|
+
|
|
12509
|
+
setUploadInfo(undefined);
|
|
12510
|
+
setFileProgress(0);
|
|
12511
|
+
var file = (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : (_inputRef$current3$fi = _inputRef$current3.files) === null || _inputRef$current3$fi === void 0 ? void 0 : _inputRef$current3$fi[0];
|
|
12512
|
+
if (!file) return Promise.resolve();
|
|
12513
|
+
return Promise.resolve(importRosterZipFile(file)).then(function () {});
|
|
12514
|
+
} catch (e) {
|
|
12515
|
+
return Promise.reject(e);
|
|
12516
|
+
}
|
|
12517
|
+
}, []);
|
|
12518
|
+
var uploadIcon = React.useMemo(function () {
|
|
12519
|
+
if (!uploadInfo) return;
|
|
12520
|
+
return uploadInfo.isUploading && fileProgress < 100 ? React__default.createElement(fa.FaSpinner, {
|
|
12521
|
+
color: "#999999",
|
|
12522
|
+
className: "mr-2 " + styles$1["spinner"]
|
|
12523
|
+
}) : !!uploadInfo.success || fileProgress === 100 ? React__default.createElement(fa.FaCheckCircle, {
|
|
12524
|
+
color: "#28a745",
|
|
12525
|
+
className: "mr-2"
|
|
12526
|
+
}) : React__default.createElement(fa.FaTimesCircle, {
|
|
12527
|
+
color: "#dc3545",
|
|
12528
|
+
className: "mr-2"
|
|
12529
|
+
});
|
|
12530
|
+
}, [JSON.stringify(uploadInfo), fileProgress]);
|
|
12531
|
+
var restApiProgress = React.useMemo(function () {
|
|
12532
|
+
if (restApiInfo === undefined) return;
|
|
12533
|
+
var info = CSV_FILE_NAMES.map(function (fileName) {
|
|
12534
|
+
return {
|
|
12535
|
+
name: fileName,
|
|
12536
|
+
status: restApiInfo === null || restApiInfo === void 0 ? void 0 : restApiInfo[fileName]
|
|
12537
|
+
};
|
|
12538
|
+
});
|
|
12539
|
+
return info.map(function (i) {
|
|
12540
|
+
return React__default.createElement("div", null, !i.status ? React__default.createElement(fa.FaSpinner, {
|
|
12541
|
+
color: "#999999",
|
|
12542
|
+
className: "mr-2 " + styles$1["spinner"]
|
|
12543
|
+
}) : i.status == true ? React__default.createElement(fa.FaCheckCircle, {
|
|
12544
|
+
color: "#28a745",
|
|
12545
|
+
className: "mr-2"
|
|
12546
|
+
}) : React__default.createElement(fa.FaTimesCircle, {
|
|
12547
|
+
color: "#dc3545",
|
|
12548
|
+
className: "mr-2"
|
|
12549
|
+
}), React__default.createElement("b", null, i.name + ": "), !i.status ? "Importing..." : i.status == true ? "Import successful" : React__default.createElement("span", null, i.status === INVALID_CLIENT_ROSTER_CONFIG ? "Invalid Client Id and Client Secret" : i.status));
|
|
12550
|
+
});
|
|
12551
|
+
}, [JSON.stringify(restApiInfo)]);
|
|
12552
|
+
var uploadMessage = React.useMemo(function () {
|
|
12553
|
+
if (!uploadInfo) return;
|
|
12554
|
+
return uploadInfo.isUploading && fileProgress < 100 ? React__default.createElement(React__default.Fragment, null, React__default.createElement("b", null, "Uploading: "), " ", fileProgress, "%") : React__default.createElement("b", null, !!uploadInfo.success || fileProgress === 100 ? "Upload success" : "Upload fail");
|
|
12555
|
+
}, [JSON.stringify(uploadInfo), fileProgress]);
|
|
12556
|
+
var importIcon = React.useMemo(function () {
|
|
12557
|
+
if (!uploadInfo) return;
|
|
12558
|
+
return uploadInfo.isUploading ? React__default.createElement(fa.FaSpinner, {
|
|
12559
|
+
color: "#999999",
|
|
12560
|
+
className: "mr-2 " + styles$1["spinner"]
|
|
12561
|
+
}) : !!uploadInfo.success ? React__default.createElement(fa.FaCheckCircle, {
|
|
12562
|
+
color: "#28a745",
|
|
12563
|
+
className: "mr-2"
|
|
12564
|
+
}) : React__default.createElement(fa.FaTimesCircle, {
|
|
12565
|
+
color: "#dc3545",
|
|
12566
|
+
className: "mr-2"
|
|
12567
|
+
});
|
|
12568
|
+
}, [JSON.stringify(uploadInfo)]);
|
|
12569
|
+
var importMessage = React.useMemo(function () {
|
|
12570
|
+
var _uploadInfo$importedF, _uploadInfo$importedF2, _uploadInfo$rejectedF, _uploadInfo$rejectedF2;
|
|
12571
|
+
|
|
12572
|
+
if (!uploadInfo) return;
|
|
12573
|
+
var comment = uploadInfo.comment;
|
|
12574
|
+
var importedFiles = ((_uploadInfo$importedF = uploadInfo.importedFiles) === null || _uploadInfo$importedF === void 0 ? void 0 : (_uploadInfo$importedF2 = _uploadInfo$importedF.split(",")) === null || _uploadInfo$importedF2 === void 0 ? void 0 : _uploadInfo$importedF2.filter(function (i) {
|
|
12575
|
+
var _i$trim;
|
|
12576
|
+
|
|
12577
|
+
return i === null || i === void 0 ? void 0 : (_i$trim = i.trim()) === null || _i$trim === void 0 ? void 0 : _i$trim.length;
|
|
12578
|
+
})) || [];
|
|
12579
|
+
var rejectedFiles = ((_uploadInfo$rejectedF = uploadInfo.rejectedFiles) === null || _uploadInfo$rejectedF === void 0 ? void 0 : (_uploadInfo$rejectedF2 = _uploadInfo$rejectedF.split(",")) === null || _uploadInfo$rejectedF2 === void 0 ? void 0 : _uploadInfo$rejectedF2.filter(function (i) {
|
|
12580
|
+
var _i$trim2;
|
|
12581
|
+
|
|
12582
|
+
return i === null || i === void 0 ? void 0 : (_i$trim2 = i.trim()) === null || _i$trim2 === void 0 ? void 0 : _i$trim2.length;
|
|
12583
|
+
})) || [];
|
|
12584
|
+
return uploadInfo.isUploading ? React__default.createElement("b", null, "Importing to database...") : uploadInfo.success ? React__default.createElement(React__default.Fragment, null, React__default.createElement("b", null, "Import to database successful"), React__default.createElement("div", {
|
|
12585
|
+
className: "" + styles$1["success-block"]
|
|
12586
|
+
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
12587
|
+
className: "mt-1"
|
|
12588
|
+
}, React__default.createElement("b", null, "List imported csv file: "), importedFiles.length === 0 && React__default.createElement("span", null, "No File")), React__default.createElement("ul", {
|
|
12589
|
+
className: "pl-4 " + styles$1["list-block"]
|
|
12590
|
+
}, importedFiles.map(function (file) {
|
|
12591
|
+
return React__default.createElement("li", null, React__default.createElement(fa.FaCheckCircle, {
|
|
12592
|
+
color: "#28a745",
|
|
12593
|
+
className: "mr-2"
|
|
12594
|
+
}), React__default.createElement("span", null, file));
|
|
12595
|
+
}))), React__default.createElement("div", {
|
|
12596
|
+
className: "" + styles$1["middle-block"]
|
|
12597
|
+
}, React__default.createElement("div", null, React__default.createElement("b", null, "List rejected csv file: "), rejectedFiles.length === 0 && React__default.createElement("span", null, "No File")), React__default.createElement("ul", {
|
|
12598
|
+
className: "pl-4 " + styles$1["list-block"]
|
|
12599
|
+
}, rejectedFiles.map(function (file) {
|
|
12600
|
+
return React__default.createElement("li", null, React__default.createElement(fa.FaTimesCircle, {
|
|
12601
|
+
color: "#dc3545",
|
|
12602
|
+
className: "mr-2"
|
|
12603
|
+
}), React__default.createElement("span", null, file));
|
|
12604
|
+
}))), comment && React__default.createElement("div", null, React__default.createElement("b", null, "Comment: "), React__default.createElement("span", null, comment)))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("b", null, "Import to database fail", !!uploadInfo.error && ": "), uploadInfo.error);
|
|
12605
|
+
}, [JSON.stringify(uploadInfo)]);
|
|
12606
|
+
return {
|
|
12607
|
+
inputRef: inputRef,
|
|
12608
|
+
fileProgress: fileProgress,
|
|
12609
|
+
uploadInfo: uploadInfo,
|
|
12610
|
+
uploadIcon: uploadIcon,
|
|
12611
|
+
uploadMessage: uploadMessage,
|
|
12612
|
+
importIcon: importIcon,
|
|
12613
|
+
importMessage: importMessage,
|
|
12614
|
+
restApiInfo: restApiInfo,
|
|
12615
|
+
restApiProgress: restApiProgress,
|
|
12616
|
+
setFileProgress: setFileProgress,
|
|
12617
|
+
handleFileChange: handleFileChange,
|
|
12618
|
+
importRosterZipFile: importRosterZipFile,
|
|
12619
|
+
handleChooseZipFile: handleChooseZipFile,
|
|
12620
|
+
handleImportFromRestfulApi: handleImportFromRestfulApi
|
|
12621
|
+
};
|
|
12622
|
+
};
|
|
12623
|
+
|
|
12624
|
+
var ImportOneRoster = function ImportOneRoster(_ref) {
|
|
12625
|
+
var disabledImportRest = _ref.disabledImportRest;
|
|
12626
|
+
|
|
12627
|
+
var _useImportOneRoster = useImportOneRoster(),
|
|
12628
|
+
inputRef = _useImportOneRoster.inputRef,
|
|
12629
|
+
fileProgress = _useImportOneRoster.fileProgress,
|
|
12630
|
+
uploadInfo = _useImportOneRoster.uploadInfo,
|
|
12631
|
+
importIcon = _useImportOneRoster.importIcon,
|
|
12632
|
+
importMessage = _useImportOneRoster.importMessage,
|
|
12633
|
+
uploadIcon = _useImportOneRoster.uploadIcon,
|
|
12634
|
+
uploadMessage = _useImportOneRoster.uploadMessage,
|
|
12635
|
+
restApiProgress = _useImportOneRoster.restApiProgress,
|
|
12636
|
+
handleImportFromRestfulApi = _useImportOneRoster.handleImportFromRestfulApi,
|
|
12637
|
+
handleChooseZipFile = _useImportOneRoster.handleChooseZipFile,
|
|
12638
|
+
handleFileChange = _useImportOneRoster.handleFileChange;
|
|
12639
|
+
|
|
12640
|
+
return React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
12641
|
+
md: 12
|
|
12642
|
+
}, React__default.createElement("h6", {
|
|
12643
|
+
className: "mt-4",
|
|
12644
|
+
style: {
|
|
12645
|
+
fontWeight: 700
|
|
12646
|
+
}
|
|
12647
|
+
}, "Import One Roster")), React__default.createElement(reactstrap.Col, {
|
|
12648
|
+
md: 6
|
|
12649
|
+
}, React__default.createElement("input", {
|
|
12650
|
+
type: "file",
|
|
12651
|
+
onChange: handleFileChange,
|
|
12652
|
+
ref: inputRef,
|
|
12653
|
+
accept: "zip,application/octet-stream,application/zip,application/x-zip,application/x-zip-compressed",
|
|
12654
|
+
hidden: true
|
|
12655
|
+
}), React__default.createElement(reactstrap.Button, {
|
|
12656
|
+
color: "success",
|
|
12657
|
+
className: "w-100 my-4",
|
|
12658
|
+
onClick: handleChooseZipFile
|
|
12659
|
+
}, "Import from Zip file"), !!uploadInfo && React__default.createElement("div", null, React__default.createElement(reactstrap.Label, {
|
|
12660
|
+
className: "d-block"
|
|
12661
|
+
}, uploadIcon, React__default.createElement("span", {
|
|
12662
|
+
className: "text-wrap"
|
|
12663
|
+
}, uploadMessage)), fileProgress === 100 && React__default.createElement(reactstrap.Label, {
|
|
12664
|
+
className: "d-block mb-0"
|
|
12665
|
+
}, importIcon, React__default.createElement("span", {
|
|
12666
|
+
className: "text-wrap"
|
|
12667
|
+
}, importMessage)), uploadInfo.isUploading && fileProgress < 100 && React__default.createElement(React__default.Fragment, null, React__default.createElement(reactstrap.Label, {
|
|
12668
|
+
className: "w-100 text-right"
|
|
12669
|
+
}, fileProgress, "%"), React__default.createElement(reactstrap.Progress, {
|
|
12670
|
+
value: fileProgress
|
|
12671
|
+
})))), React__default.createElement(reactstrap.Col, {
|
|
12672
|
+
md: 6
|
|
12673
|
+
}, React__default.createElement(reactstrap.Button, {
|
|
12674
|
+
color: "primary",
|
|
12675
|
+
className: "w-100 mt-4 mb-1",
|
|
12676
|
+
disabled: disabledImportRest,
|
|
12677
|
+
onClick: handleImportFromRestfulApi
|
|
12678
|
+
}, "Import from Restful api"), disabledImportRest && React__default.createElement("span", {
|
|
12679
|
+
className: "text-danger"
|
|
12680
|
+
}, "Client Id and Client Secret are required"), React__default.createElement("div", {
|
|
12681
|
+
className: "mt-2"
|
|
12682
|
+
}, restApiProgress)));
|
|
12683
|
+
};
|
|
12684
|
+
|
|
12685
|
+
var initValue$d = {
|
|
12686
|
+
clientId: "",
|
|
12687
|
+
clientSecret: ""
|
|
12688
|
+
};
|
|
12689
|
+
|
|
12690
|
+
var useRosterConfigForm = function useRosterConfigForm() {
|
|
12691
|
+
var dispatch = reactRedux.useDispatch();
|
|
12692
|
+
|
|
12693
|
+
var _useState = React.useState(initValue$d),
|
|
12694
|
+
rosterConfig = _useState[0],
|
|
12695
|
+
setRosterConfig = _useState[1];
|
|
12696
|
+
|
|
12697
|
+
var getData = React.useCallback(function (loading) {
|
|
12698
|
+
if (loading === void 0) {
|
|
12699
|
+
loading = true;
|
|
12700
|
+
}
|
|
12701
|
+
|
|
12702
|
+
try {
|
|
12703
|
+
var _temp3 = function _temp3() {
|
|
12704
|
+
if (loading) dispatch(marioCore.setLoading(false));
|
|
12705
|
+
};
|
|
12706
|
+
|
|
12707
|
+
if (loading) dispatch(marioCore.setLoading(true));
|
|
12708
|
+
|
|
12709
|
+
var _temp4 = _catch(function () {
|
|
12710
|
+
return Promise.resolve(getRosterConfig()).then(function (res) {
|
|
12711
|
+
setRosterConfig(res.data);
|
|
12712
|
+
});
|
|
12713
|
+
}, function (err) {
|
|
12714
|
+
var _err$response, _err$response$data;
|
|
12715
|
+
|
|
12716
|
+
if (loading) dispatch(marioCore.setAlert({
|
|
12717
|
+
type: "danger",
|
|
12718
|
+
message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
|
|
12719
|
+
}));
|
|
12720
|
+
});
|
|
12721
|
+
|
|
12722
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
12723
|
+
} catch (e) {
|
|
12724
|
+
return Promise.reject(e);
|
|
12725
|
+
}
|
|
12726
|
+
}, []);
|
|
12727
|
+
var updateData = React.useCallback(function (values) {
|
|
12728
|
+
try {
|
|
12729
|
+
var _temp7 = function _temp7() {
|
|
12730
|
+
dispatch(marioCore.setLoading(false));
|
|
12731
|
+
};
|
|
12732
|
+
|
|
12733
|
+
dispatch(marioCore.setLoading(true));
|
|
12734
|
+
|
|
12735
|
+
var _temp8 = _catch(function () {
|
|
12736
|
+
return Promise.resolve(updateRosterConfig(values)).then(function (res) {
|
|
12737
|
+
setRosterConfig(res.data);
|
|
12738
|
+
return Promise.resolve(getData(false)).then(function () {
|
|
12739
|
+
dispatch(marioCore.setAlert({
|
|
12740
|
+
type: "success",
|
|
12741
|
+
message: "Update Roster config successfully"
|
|
12742
|
+
}));
|
|
12743
|
+
});
|
|
12744
|
+
});
|
|
12745
|
+
}, function (err) {
|
|
12746
|
+
var _err$response2, _err$response2$data;
|
|
12747
|
+
|
|
12748
|
+
dispatch(marioCore.setAlert({
|
|
12749
|
+
type: "danger",
|
|
12750
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
12751
|
+
}));
|
|
12752
|
+
});
|
|
12753
|
+
|
|
12754
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
|
|
12755
|
+
} catch (e) {
|
|
12756
|
+
return Promise.reject(e);
|
|
12757
|
+
}
|
|
12758
|
+
}, []);
|
|
12759
|
+
var disabledImportRest = React.useMemo(function () {
|
|
12760
|
+
return !rosterConfig.clientId.trim().length || !rosterConfig.clientSecret.trim().length;
|
|
12761
|
+
}, [JSON.stringify(rosterConfig)]);
|
|
12762
|
+
React.useEffect(function () {
|
|
12763
|
+
getData();
|
|
12764
|
+
}, []);
|
|
12765
|
+
return {
|
|
12766
|
+
rosterConfig: rosterConfig,
|
|
12767
|
+
disabledImportRest: disabledImportRest,
|
|
12768
|
+
updateData: updateData
|
|
12769
|
+
};
|
|
12770
|
+
};
|
|
12771
|
+
|
|
12772
|
+
var OneRoster = function OneRoster() {
|
|
12773
|
+
var _useRosterConfigForm = useRosterConfigForm(),
|
|
12774
|
+
rosterConfig = _useRosterConfigForm.rosterConfig,
|
|
12775
|
+
disabledImportRest = _useRosterConfigForm.disabledImportRest,
|
|
12776
|
+
updateData = _useRosterConfigForm.updateData;
|
|
12777
|
+
|
|
12778
|
+
return React__default.createElement("div", {
|
|
12779
|
+
className: "fadeIn animated"
|
|
12780
|
+
}, React__default.createElement("h5", {
|
|
12781
|
+
className: "mt-4 mb-2 font-weight-bold"
|
|
12782
|
+
}, "One Roster"), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
12783
|
+
md: 7
|
|
12784
|
+
}, React__default.createElement(RosterConfigForm, {
|
|
12785
|
+
rosterConfig: rosterConfig,
|
|
12786
|
+
updateData: updateData
|
|
12787
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
12788
|
+
md: 5
|
|
12789
|
+
}), React__default.createElement(reactstrap.Col, {
|
|
12790
|
+
md: 7
|
|
12791
|
+
}, React__default.createElement(ImportOneRoster, {
|
|
12792
|
+
disabledImportRest: disabledImportRest
|
|
12793
|
+
}))));
|
|
12794
|
+
};
|
|
12795
|
+
|
|
12297
12796
|
var tabs = [{
|
|
12298
12797
|
path: "/admin/set-up/skill",
|
|
12299
12798
|
title: "Skills",
|
|
@@ -12386,6 +12885,10 @@ var tabs = [{
|
|
|
12386
12885
|
path: "/admin/set-up/destination",
|
|
12387
12886
|
title: "Designations",
|
|
12388
12887
|
component: Destinations
|
|
12888
|
+
}, {
|
|
12889
|
+
path: "/admin/set-up/one-roster",
|
|
12890
|
+
title: "One Roster",
|
|
12891
|
+
component: OneRoster
|
|
12389
12892
|
}];
|
|
12390
12893
|
var title$1 = "set_up";
|
|
12391
12894
|
|
|
@@ -13213,7 +13716,7 @@ var remove$d = function remove(id) {
|
|
|
13213
13716
|
return marioCore.api["delete"](REFLECTION_URL + "/" + id);
|
|
13214
13717
|
};
|
|
13215
13718
|
|
|
13216
|
-
var initValue$
|
|
13719
|
+
var initValue$e = {
|
|
13217
13720
|
id: 0,
|
|
13218
13721
|
name: "",
|
|
13219
13722
|
category: "",
|
|
@@ -13228,7 +13731,7 @@ var useReflectionFormDetail = function useReflectionFormDetail() {
|
|
|
13228
13731
|
id = _useState[0],
|
|
13229
13732
|
setId = _useState[1];
|
|
13230
13733
|
|
|
13231
|
-
var _useState2 = React.useState(initValue$
|
|
13734
|
+
var _useState2 = React.useState(initValue$e),
|
|
13232
13735
|
reflectionformDetail = _useState2[0],
|
|
13233
13736
|
setReflectionformDetail = _useState2[1];
|
|
13234
13737
|
|
|
@@ -13257,14 +13760,14 @@ var useReflectionFormDetail = function useReflectionFormDetail() {
|
|
|
13257
13760
|
};
|
|
13258
13761
|
|
|
13259
13762
|
React.useEffect(function () {
|
|
13260
|
-
!!id ? getData() : setReflectionformDetail(initValue$
|
|
13763
|
+
!!id ? getData() : setReflectionformDetail(initValue$e);
|
|
13261
13764
|
}, [id]);
|
|
13262
13765
|
React.useEffect(function () {
|
|
13263
13766
|
setEditedFalse();
|
|
13264
13767
|
}, []);
|
|
13265
13768
|
|
|
13266
13769
|
var reset = function reset() {
|
|
13267
|
-
setReflectionformDetail(initValue$
|
|
13770
|
+
setReflectionformDetail(initValue$e);
|
|
13268
13771
|
setId(0);
|
|
13269
13772
|
};
|
|
13270
13773
|
|
|
@@ -13344,7 +13847,7 @@ var useReflectionFormDetail = function useReflectionFormDetail() {
|
|
|
13344
13847
|
setId: setId,
|
|
13345
13848
|
reflectionformDetail: reflectionformDetail,
|
|
13346
13849
|
confirmData: confirmData,
|
|
13347
|
-
initValue: initValue$
|
|
13850
|
+
initValue: initValue$e,
|
|
13348
13851
|
reset: reset,
|
|
13349
13852
|
edited: edited,
|
|
13350
13853
|
setEdited: setEdited,
|
|
@@ -13694,7 +14197,7 @@ var useReflectionResultList = function useReflectionResultList() {
|
|
|
13694
14197
|
};
|
|
13695
14198
|
};
|
|
13696
14199
|
|
|
13697
|
-
var initValue$
|
|
14200
|
+
var initValue$f = {
|
|
13698
14201
|
questionResponses: [],
|
|
13699
14202
|
answerTexts: []
|
|
13700
14203
|
};
|
|
@@ -13706,7 +14209,7 @@ var useReflectionResultDetail = function useReflectionResultDetail() {
|
|
|
13706
14209
|
id = _useState[0],
|
|
13707
14210
|
setId = _useState[1];
|
|
13708
14211
|
|
|
13709
|
-
var _useState2 = React.useState(initValue$
|
|
14212
|
+
var _useState2 = React.useState(initValue$f),
|
|
13710
14213
|
reflectionResultDetail = _useState2[0],
|
|
13711
14214
|
setReflectionResultDetail = _useState2[1];
|
|
13712
14215
|
|
|
@@ -14524,7 +15027,7 @@ var removeSurvey = function removeSurvey(id) {
|
|
|
14524
15027
|
return marioCore.api["delete"](CATE_SURVEY_URL + "/" + id);
|
|
14525
15028
|
};
|
|
14526
15029
|
|
|
14527
|
-
var initValue$
|
|
15030
|
+
var initValue$g = {
|
|
14528
15031
|
type: "",
|
|
14529
15032
|
text: "",
|
|
14530
15033
|
isDefaultQuestion: false,
|
|
@@ -14552,7 +15055,7 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
14552
15055
|
var dispatch = reactRedux.useDispatch();
|
|
14553
15056
|
var history = reactRouterDom.useHistory();
|
|
14554
15057
|
|
|
14555
|
-
var _useState = React.useState(initValue$
|
|
15058
|
+
var _useState = React.useState(initValue$g),
|
|
14556
15059
|
questionDetail = _useState[0],
|
|
14557
15060
|
setQuestionDetail = _useState[1];
|
|
14558
15061
|
|
|
@@ -15160,7 +15663,7 @@ var remove$f = function remove(id) {
|
|
|
15160
15663
|
return marioCore.api["delete"](ASSESSMENT_URL + "/" + id);
|
|
15161
15664
|
};
|
|
15162
15665
|
|
|
15163
|
-
var initValue$
|
|
15666
|
+
var initValue$h = {
|
|
15164
15667
|
name: "",
|
|
15165
15668
|
beginDate: "",
|
|
15166
15669
|
endDate: "",
|
|
@@ -15177,7 +15680,7 @@ var useAssessmentDetail = function useAssessmentDetail() {
|
|
|
15177
15680
|
id = _useState[0],
|
|
15178
15681
|
setId = _useState[1];
|
|
15179
15682
|
|
|
15180
|
-
var _useState2 = React.useState(initValue$
|
|
15683
|
+
var _useState2 = React.useState(initValue$h),
|
|
15181
15684
|
assessmentDetail = _useState2[0],
|
|
15182
15685
|
setAssessmentDetail = _useState2[1];
|
|
15183
15686
|
|
|
@@ -15206,14 +15709,14 @@ var useAssessmentDetail = function useAssessmentDetail() {
|
|
|
15206
15709
|
};
|
|
15207
15710
|
|
|
15208
15711
|
React.useEffect(function () {
|
|
15209
|
-
!!id ? getData() : setAssessmentDetail(initValue$
|
|
15712
|
+
!!id ? getData() : setAssessmentDetail(initValue$h);
|
|
15210
15713
|
}, [id]);
|
|
15211
15714
|
React.useEffect(function () {
|
|
15212
15715
|
setEditedFalse();
|
|
15213
15716
|
}, []);
|
|
15214
15717
|
|
|
15215
15718
|
var reset = function reset() {
|
|
15216
|
-
setAssessmentDetail(initValue$
|
|
15719
|
+
setAssessmentDetail(initValue$h);
|
|
15217
15720
|
setId(0);
|
|
15218
15721
|
};
|
|
15219
15722
|
|
|
@@ -15293,7 +15796,7 @@ var useAssessmentDetail = function useAssessmentDetail() {
|
|
|
15293
15796
|
assessmentDetail: assessmentDetail,
|
|
15294
15797
|
setAssessmentDetail: setAssessmentDetail,
|
|
15295
15798
|
confirmData: confirmData,
|
|
15296
|
-
initValue: initValue$
|
|
15799
|
+
initValue: initValue$h,
|
|
15297
15800
|
reset: reset,
|
|
15298
15801
|
edited: edited,
|
|
15299
15802
|
setEdited: setEdited,
|
|
@@ -15785,7 +16288,7 @@ var getById$g = function getById(id) {
|
|
|
15785
16288
|
return marioCore.api.get(FEEDBACK_URL + "/" + id);
|
|
15786
16289
|
};
|
|
15787
16290
|
|
|
15788
|
-
var initValue$
|
|
16291
|
+
var initValue$i = {
|
|
15789
16292
|
description: ""
|
|
15790
16293
|
};
|
|
15791
16294
|
|
|
@@ -15796,12 +16299,12 @@ var useFeedbackDetail = function useFeedbackDetail() {
|
|
|
15796
16299
|
id = _useState[0],
|
|
15797
16300
|
setId = _useState[1];
|
|
15798
16301
|
|
|
15799
|
-
var _useState2 = React.useState(initValue$
|
|
16302
|
+
var _useState2 = React.useState(initValue$i),
|
|
15800
16303
|
feedbackDetail = _useState2[0],
|
|
15801
16304
|
setFeedbackDetail = _useState2[1];
|
|
15802
16305
|
|
|
15803
16306
|
React.useEffect(function () {
|
|
15804
|
-
!!id ? getData() : setFeedbackDetail(initValue$
|
|
16307
|
+
!!id ? getData() : setFeedbackDetail(initValue$i);
|
|
15805
16308
|
}, [id]);
|
|
15806
16309
|
var getData = React.useCallback(function () {
|
|
15807
16310
|
try {
|
|
@@ -15833,7 +16336,7 @@ var useFeedbackDetail = function useFeedbackDetail() {
|
|
|
15833
16336
|
id: id,
|
|
15834
16337
|
setId: setId,
|
|
15835
16338
|
feedbackDetail: feedbackDetail,
|
|
15836
|
-
initValue: initValue$
|
|
16339
|
+
initValue: initValue$i
|
|
15837
16340
|
};
|
|
15838
16341
|
};
|
|
15839
16342
|
|
|
@@ -16099,7 +16602,7 @@ var TutorialScreenType;
|
|
|
16099
16602
|
|
|
16100
16603
|
var TutorialScreenType$1 = TutorialScreenType;
|
|
16101
16604
|
|
|
16102
|
-
var initValue$
|
|
16605
|
+
var initValue$j = {
|
|
16103
16606
|
name: "",
|
|
16104
16607
|
description: "",
|
|
16105
16608
|
typeRole: TutorialScreenType$1.Default
|
|
@@ -16112,7 +16615,7 @@ var useTutorialScreenDetail = function useTutorialScreenDetail(typeRole) {
|
|
|
16112
16615
|
id = _useState[0],
|
|
16113
16616
|
setId = _useState[1];
|
|
16114
16617
|
|
|
16115
|
-
var _useState2 = React.useState(_extends({}, initValue$
|
|
16618
|
+
var _useState2 = React.useState(_extends({}, initValue$j, {
|
|
16116
16619
|
typeRole: typeRole
|
|
16117
16620
|
})),
|
|
16118
16621
|
tutorialScreenDetail = _useState2[0],
|
|
@@ -16143,7 +16646,7 @@ var useTutorialScreenDetail = function useTutorialScreenDetail(typeRole) {
|
|
|
16143
16646
|
};
|
|
16144
16647
|
|
|
16145
16648
|
React.useEffect(function () {
|
|
16146
|
-
!!id ? getData() : setTutorialScreenDetail(_extends({}, initValue$
|
|
16649
|
+
!!id ? getData() : setTutorialScreenDetail(_extends({}, initValue$j, {
|
|
16147
16650
|
typeRole: typeRole
|
|
16148
16651
|
}));
|
|
16149
16652
|
}, [id]);
|
|
@@ -16152,7 +16655,7 @@ var useTutorialScreenDetail = function useTutorialScreenDetail(typeRole) {
|
|
|
16152
16655
|
}, []);
|
|
16153
16656
|
|
|
16154
16657
|
var reset = function reset() {
|
|
16155
|
-
setTutorialScreenDetail(_extends({}, initValue$
|
|
16658
|
+
setTutorialScreenDetail(_extends({}, initValue$j, {
|
|
16156
16659
|
typeRole: typeRole
|
|
16157
16660
|
}));
|
|
16158
16661
|
setId(0);
|
|
@@ -16221,7 +16724,7 @@ var useTutorialScreenDetail = function useTutorialScreenDetail(typeRole) {
|
|
|
16221
16724
|
setId: setId,
|
|
16222
16725
|
tutorialScreenDetail: tutorialScreenDetail,
|
|
16223
16726
|
confirmData: confirmData,
|
|
16224
|
-
initValue: initValue$
|
|
16727
|
+
initValue: initValue$j,
|
|
16225
16728
|
reset: reset,
|
|
16226
16729
|
edited: edited,
|
|
16227
16730
|
setEdited: setEdited,
|
|
@@ -16608,7 +17111,7 @@ var QuestionCateModal = function QuestionCateModal(props, ref) {
|
|
|
16608
17111
|
|
|
16609
17112
|
var QuestionCateModal$1 = React.forwardRef(QuestionCateModal);
|
|
16610
17113
|
|
|
16611
|
-
var initValue$
|
|
17114
|
+
var initValue$k = {
|
|
16612
17115
|
name: "",
|
|
16613
17116
|
parentCategoryId: null
|
|
16614
17117
|
};
|
|
@@ -16620,7 +17123,7 @@ var useQuestionCateDetail = function useQuestionCateDetail() {
|
|
|
16620
17123
|
id = _useState[0],
|
|
16621
17124
|
setId = _useState[1];
|
|
16622
17125
|
|
|
16623
|
-
var _useState2 = React.useState(initValue$
|
|
17126
|
+
var _useState2 = React.useState(initValue$k),
|
|
16624
17127
|
questionCateDetail = _useState2[0],
|
|
16625
17128
|
setQuestionCateDetail = _useState2[1];
|
|
16626
17129
|
|
|
@@ -16649,14 +17152,14 @@ var useQuestionCateDetail = function useQuestionCateDetail() {
|
|
|
16649
17152
|
};
|
|
16650
17153
|
|
|
16651
17154
|
React.useEffect(function () {
|
|
16652
|
-
!!id ? getData() : setQuestionCateDetail(initValue$
|
|
17155
|
+
!!id ? getData() : setQuestionCateDetail(initValue$k);
|
|
16653
17156
|
}, [id]);
|
|
16654
17157
|
React.useEffect(function () {
|
|
16655
17158
|
setEditedFalse();
|
|
16656
17159
|
}, []);
|
|
16657
17160
|
|
|
16658
17161
|
var reset = function reset() {
|
|
16659
|
-
setQuestionCateDetail(initValue$
|
|
17162
|
+
setQuestionCateDetail(initValue$k);
|
|
16660
17163
|
setId(0);
|
|
16661
17164
|
};
|
|
16662
17165
|
|
|
@@ -16723,7 +17226,7 @@ var useQuestionCateDetail = function useQuestionCateDetail() {
|
|
|
16723
17226
|
setId: setId,
|
|
16724
17227
|
questionCateDetail: questionCateDetail,
|
|
16725
17228
|
confirmData: confirmData,
|
|
16726
|
-
initValue: initValue$
|
|
17229
|
+
initValue: initValue$k,
|
|
16727
17230
|
reset: reset,
|
|
16728
17231
|
edited: edited,
|
|
16729
17232
|
setEdited: setEdited,
|
|
@@ -17154,7 +17657,7 @@ var QuestionCateModal$2 = function QuestionCateModal(props, ref) {
|
|
|
17154
17657
|
|
|
17155
17658
|
var TemplateCateModal = React.forwardRef(QuestionCateModal$2);
|
|
17156
17659
|
|
|
17157
|
-
var initValue$
|
|
17660
|
+
var initValue$l = {
|
|
17158
17661
|
name: "",
|
|
17159
17662
|
questionIds: []
|
|
17160
17663
|
};
|
|
@@ -17166,7 +17669,7 @@ var useTemplateCateDetail = function useTemplateCateDetail() {
|
|
|
17166
17669
|
id = _useState[0],
|
|
17167
17670
|
setId = _useState[1];
|
|
17168
17671
|
|
|
17169
|
-
var _useState2 = React.useState(initValue$
|
|
17672
|
+
var _useState2 = React.useState(initValue$l),
|
|
17170
17673
|
questionCateDetail = _useState2[0],
|
|
17171
17674
|
setQuestionCateDetail = _useState2[1];
|
|
17172
17675
|
|
|
@@ -17207,14 +17710,14 @@ var useTemplateCateDetail = function useTemplateCateDetail() {
|
|
|
17207
17710
|
};
|
|
17208
17711
|
|
|
17209
17712
|
React.useEffect(function () {
|
|
17210
|
-
!!id ? getData() : setQuestionCateDetail(initValue$
|
|
17713
|
+
!!id ? getData() : setQuestionCateDetail(initValue$l);
|
|
17211
17714
|
}, [id]);
|
|
17212
17715
|
React.useEffect(function () {
|
|
17213
17716
|
setEditedFalse();
|
|
17214
17717
|
}, []);
|
|
17215
17718
|
|
|
17216
17719
|
var reset = function reset() {
|
|
17217
|
-
setQuestionCateDetail(initValue$
|
|
17720
|
+
setQuestionCateDetail(initValue$l);
|
|
17218
17721
|
setId(0);
|
|
17219
17722
|
};
|
|
17220
17723
|
|
|
@@ -17326,7 +17829,7 @@ var useTemplateCateDetail = function useTemplateCateDetail() {
|
|
|
17326
17829
|
setId: setId,
|
|
17327
17830
|
questionCateDetail: questionCateDetail,
|
|
17328
17831
|
confirmData: confirmData,
|
|
17329
|
-
initValue: initValue$
|
|
17832
|
+
initValue: initValue$l,
|
|
17330
17833
|
reset: reset,
|
|
17331
17834
|
edited: edited,
|
|
17332
17835
|
setEdited: setEdited,
|
|
@@ -18042,7 +18545,7 @@ var getAllSemesters = function getAllSemesters() {
|
|
|
18042
18545
|
return marioCore.api.get(marioCore.BASE_URL + "/api/Semester/all");
|
|
18043
18546
|
};
|
|
18044
18547
|
|
|
18045
|
-
var initValue$
|
|
18548
|
+
var initValue$m = {
|
|
18046
18549
|
assessmentId: 0,
|
|
18047
18550
|
assessment: null,
|
|
18048
18551
|
studentIds: [],
|
|
@@ -18062,7 +18565,7 @@ var useAssignmentDetail = function useAssignmentDetail() {
|
|
|
18062
18565
|
id = _useState[0],
|
|
18063
18566
|
setId = _useState[1];
|
|
18064
18567
|
|
|
18065
|
-
var _useState2 = React.useState(initValue$
|
|
18568
|
+
var _useState2 = React.useState(initValue$m),
|
|
18066
18569
|
assignmentDetail = _useState2[0],
|
|
18067
18570
|
setAssignmentDetail = _useState2[1];
|
|
18068
18571
|
|
|
@@ -18091,14 +18594,14 @@ var useAssignmentDetail = function useAssignmentDetail() {
|
|
|
18091
18594
|
};
|
|
18092
18595
|
|
|
18093
18596
|
React.useEffect(function () {
|
|
18094
|
-
!!id ? getData() : setAssignmentDetail(initValue$
|
|
18597
|
+
!!id ? getData() : setAssignmentDetail(initValue$m);
|
|
18095
18598
|
}, [id]);
|
|
18096
18599
|
React.useEffect(function () {
|
|
18097
18600
|
setEditedFalse();
|
|
18098
18601
|
}, []);
|
|
18099
18602
|
|
|
18100
18603
|
var reset = function reset() {
|
|
18101
|
-
setAssignmentDetail(initValue$
|
|
18604
|
+
setAssignmentDetail(initValue$m);
|
|
18102
18605
|
setId(0);
|
|
18103
18606
|
};
|
|
18104
18607
|
|
|
@@ -18213,7 +18716,7 @@ var useAssignmentDetail = function useAssignmentDetail() {
|
|
|
18213
18716
|
assignmentDetail: assignmentDetail,
|
|
18214
18717
|
confirmData: confirmData,
|
|
18215
18718
|
onRemoveStudent: onRemoveStudent,
|
|
18216
|
-
initValue: initValue$
|
|
18719
|
+
initValue: initValue$m,
|
|
18217
18720
|
reset: reset,
|
|
18218
18721
|
edited: edited,
|
|
18219
18722
|
setEdited: setEdited,
|
|
@@ -18556,7 +19059,7 @@ var useAssignmentResultList = function useAssignmentResultList() {
|
|
|
18556
19059
|
};
|
|
18557
19060
|
};
|
|
18558
19061
|
|
|
18559
|
-
var initValue$
|
|
19062
|
+
var initValue$n = {
|
|
18560
19063
|
questionResponses: [],
|
|
18561
19064
|
answerTexts: []
|
|
18562
19065
|
};
|
|
@@ -18568,7 +19071,7 @@ var useReflectionResultDetail$1 = function useReflectionResultDetail() {
|
|
|
18568
19071
|
id = _useState[0],
|
|
18569
19072
|
setId = _useState[1];
|
|
18570
19073
|
|
|
18571
|
-
var _useState2 = React.useState(initValue$
|
|
19074
|
+
var _useState2 = React.useState(initValue$n),
|
|
18572
19075
|
assignmentResultDetail = _useState2[0],
|
|
18573
19076
|
setAssignmentResultDetail = _useState2[1];
|
|
18574
19077
|
|
|
@@ -19543,7 +20046,7 @@ var useAddQuestion = function useAddQuestion() {
|
|
|
19543
20046
|
};
|
|
19544
20047
|
};
|
|
19545
20048
|
|
|
19546
|
-
var initValue$
|
|
20049
|
+
var initValue$o = {
|
|
19547
20050
|
name: "",
|
|
19548
20051
|
isConference: false,
|
|
19549
20052
|
conferenceRubricId: null,
|
|
@@ -19593,7 +20096,7 @@ var useSessionTemplateDetail = function useSessionTemplateDetail(id) {
|
|
|
19593
20096
|
isTeacherQuestion = _useState7[0],
|
|
19594
20097
|
setIsTeacherQuestion = _useState7[1];
|
|
19595
20098
|
|
|
19596
|
-
var _useState8 = React.useState(initValue$
|
|
20099
|
+
var _useState8 = React.useState(initValue$o),
|
|
19597
20100
|
sessionTemplateDetail = _useState8[0],
|
|
19598
20101
|
setSessionTemplateDetail = _useState8[1];
|
|
19599
20102
|
|
|
@@ -20184,7 +20687,7 @@ var SubjectSelector = function SubjectSelector(_ref) {
|
|
|
20184
20687
|
});
|
|
20185
20688
|
};
|
|
20186
20689
|
|
|
20187
|
-
var initValue$
|
|
20690
|
+
var initValue$p = {
|
|
20188
20691
|
name: "",
|
|
20189
20692
|
subjectId: 0,
|
|
20190
20693
|
questionTeacherIds: [],
|
|
@@ -20235,7 +20738,7 @@ var useSessionTemplateGeneralClassDetail = function useSessionTemplateGeneralCla
|
|
|
20235
20738
|
extraStudentMandatory = _useState9[0],
|
|
20236
20739
|
setExtraStudentMandatory = _useState9[1];
|
|
20237
20740
|
|
|
20238
|
-
var _useState10 = React.useState(initValue$
|
|
20741
|
+
var _useState10 = React.useState(initValue$p),
|
|
20239
20742
|
sessionTemplateGeneralClassDetail = _useState10[0],
|
|
20240
20743
|
setSessionTemplateGeneralClassDetail = _useState10[1];
|
|
20241
20744
|
|
|
@@ -20935,7 +21438,7 @@ var removeStudent$1 = function removeStudent(customAlertStudentId) {
|
|
|
20935
21438
|
return marioCore.api["delete"](CUSTOM_ALERT_URL + "/customAlertStudents/" + customAlertStudentId);
|
|
20936
21439
|
};
|
|
20937
21440
|
|
|
20938
|
-
var initValue$
|
|
21441
|
+
var initValue$q = {
|
|
20939
21442
|
learningSupportCategoryId: 0,
|
|
20940
21443
|
numberOfSessions: 0,
|
|
20941
21444
|
beginDate: "",
|
|
@@ -20950,7 +21453,7 @@ var useCustomAlertDetail = function useCustomAlertDetail() {
|
|
|
20950
21453
|
id = _useState[0],
|
|
20951
21454
|
setId = _useState[1];
|
|
20952
21455
|
|
|
20953
|
-
var _useState2 = React.useState(initValue$
|
|
21456
|
+
var _useState2 = React.useState(initValue$q),
|
|
20954
21457
|
customAlertDetail = _useState2[0],
|
|
20955
21458
|
setCustomAlertDetail = _useState2[1];
|
|
20956
21459
|
|
|
@@ -20979,14 +21482,14 @@ var useCustomAlertDetail = function useCustomAlertDetail() {
|
|
|
20979
21482
|
};
|
|
20980
21483
|
|
|
20981
21484
|
React.useEffect(function () {
|
|
20982
|
-
!!id ? getData() : setCustomAlertDetail(initValue$
|
|
21485
|
+
!!id ? getData() : setCustomAlertDetail(initValue$q);
|
|
20983
21486
|
}, [id]);
|
|
20984
21487
|
React.useEffect(function () {
|
|
20985
21488
|
setEditedFalse();
|
|
20986
21489
|
}, []);
|
|
20987
21490
|
|
|
20988
21491
|
var reset = function reset() {
|
|
20989
|
-
setCustomAlertDetail(initValue$
|
|
21492
|
+
setCustomAlertDetail(initValue$q);
|
|
20990
21493
|
setId(0);
|
|
20991
21494
|
};
|
|
20992
21495
|
|
|
@@ -21094,7 +21597,7 @@ var useCustomAlertDetail = function useCustomAlertDetail() {
|
|
|
21094
21597
|
customAlertDetail: customAlertDetail,
|
|
21095
21598
|
confirmData: confirmData,
|
|
21096
21599
|
onRemoveStudent: onRemoveStudent,
|
|
21097
|
-
initValue: initValue$
|
|
21600
|
+
initValue: initValue$q,
|
|
21098
21601
|
reset: reset,
|
|
21099
21602
|
edited: edited,
|
|
21100
21603
|
setEdited: setEdited,
|
|
@@ -21688,7 +22191,7 @@ var initItemValue = {
|
|
|
21688
22191
|
text: "",
|
|
21689
22192
|
breakPointCertification: []
|
|
21690
22193
|
};
|
|
21691
|
-
var initValue$
|
|
22194
|
+
var initValue$r = {
|
|
21692
22195
|
name: "",
|
|
21693
22196
|
description: "",
|
|
21694
22197
|
imageUrl: "",
|
|
@@ -21710,7 +22213,7 @@ var useCertificateDetail = function useCertificateDetail() {
|
|
|
21710
22213
|
file = _useState2[0],
|
|
21711
22214
|
setFile = _useState2[1];
|
|
21712
22215
|
|
|
21713
|
-
var _useState3 = React.useState(initValue$
|
|
22216
|
+
var _useState3 = React.useState(initValue$r),
|
|
21714
22217
|
certificateDetail = _useState3[0],
|
|
21715
22218
|
setCertificateDetail = _useState3[1];
|
|
21716
22219
|
|
|
@@ -21739,7 +22242,7 @@ var useCertificateDetail = function useCertificateDetail() {
|
|
|
21739
22242
|
};
|
|
21740
22243
|
|
|
21741
22244
|
React.useEffect(function () {
|
|
21742
|
-
!!id ? getData() : setCertificateDetail(initValue$
|
|
22245
|
+
!!id ? getData() : setCertificateDetail(initValue$r);
|
|
21743
22246
|
}, [id]);
|
|
21744
22247
|
React.useEffect(function () {
|
|
21745
22248
|
setEditedFalse();
|
|
@@ -21827,7 +22330,7 @@ var useCertificateDetail = function useCertificateDetail() {
|
|
|
21827
22330
|
certificateDetail: certificateDetail,
|
|
21828
22331
|
initItemValue: initItemValue,
|
|
21829
22332
|
confirmData: confirmData,
|
|
21830
|
-
initValue: initValue$
|
|
22333
|
+
initValue: initValue$r,
|
|
21831
22334
|
setFile: setFile,
|
|
21832
22335
|
edited: edited,
|
|
21833
22336
|
setEdited: setEdited,
|
|
@@ -22543,7 +23046,7 @@ var TYPECHART;
|
|
|
22543
23046
|
TYPECHART[TYPECHART["DONUT"] = 4] = "DONUT";
|
|
22544
23047
|
})(TYPECHART || (TYPECHART = {}));
|
|
22545
23048
|
|
|
22546
|
-
var styles$
|
|
23049
|
+
var styles$2 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk","shadow-lg":"_2eMbe","chart-header-wrapper":"_6ZvFg","devide-component":"_24CNV","header-chart":"_2vtSi","header-left":"_IpsVf","icon-chart":"_gzxWe","header-right":"_37IcR","header-title":"_2G6Wz","button-export":"_3xpNv","button-content":"_3H5Ly","button-icon":"_J_n-D","icon-config":"_3AALV","cursor-pointer":"_11Xjn","btn-show-chart":"_2htKu","rotate-180":"_q1nUO","header-chart-generate":"_s8xMf","block-header-chart":"_tHUJ_","name-chart":"_3xKHX","title-chart":"_pFFg9","description-chart":"_3hqV3","title-chart-generate":"_3rdqX","expand-icon":"_nwv00","custom-tooltip":"_29aQo","custom-tooltip-month":"_2SJIY","tooltip-data-cursor":"_2lZv_","tooltip-data-box":"_8NzTd","tooltip-data":"_1EP1I","name":"_1J69a","data":"_3-8OW","checkbox-chart":"_1qXAT","column-chart-percent":"_3NgrB","chart-background":"_32fu3","custom-marker":"_DmMzw","mark-custom":"_1eUXn","item-legend":"_3hrrC","label-legend-custom":"_Q-iiW","mark-legend":"_cD4ey","percent":"_2HWhv","listItem":"_2Hdbu","item":"_3RJ2T","item-checkbox":"_3dK0P","box-checkbox":"_1bHgZ","check-box":"_QwDVv","item-detail":"_1QgWc","question":"_348ls","avr-question":"_1VfnR","volatility":"_3eW34","arr":"_1bljF","month-text":"_30y0h","arrow":"_1HtM3","arrow-up":"_3qqQU","percent-text":"_2Fgfn","arrow-down":"_1yXO7","point-custom":"_2JNm-","student-by-age":"_38ikt","total-student":"_1TnWs","pie-chart":"_3BTJi","options-gender":"_1Ws0m","legend":"_2HnO_","text-lengend":"_2BFJw","student-by-grade":"_2az-l","bubble-chart-custom":"_2j8fp","x-axis-custom-wrap":"_1BN5z","axis-content":"_1rYav","chart-buddle":"_TPa6x","legend-wrap":"_3-zAs","label-chart":"_24PRg","list-percent":"_1PPhv","description-chart-dashboard":"_2ZL2A","percent-item":"_1rjWR","chart-custom":"_f-Ti4","title-grade":"_1hZ_V","title-modal":"_3L9WC","header-desc-modal":"_1TFtP","form-checkbox":"_37aqf","checkbox-content":"_1iabV","btn-export":"_1eQAg","image-logo":"_1eqkj","chart-to-canvas":"_2IQ8b","chart-pdf":"_sQ21k","box-top-5-most":"_3Eas5","filter-mobile-block":"_1tKnn","filter-wrapper-mobile":"_1Zuq3","total-card-wrapper":"_1i0El"};
|
|
22547
23050
|
|
|
22548
23051
|
var CheckboxCustom = function CheckboxCustom(_ref) {
|
|
22549
23052
|
var _ref$background = _ref.background,
|
|
@@ -22613,19 +23116,19 @@ var HeaderChart = function HeaderChart(_ref) {
|
|
|
22613
23116
|
onClick: function onClick() {
|
|
22614
23117
|
return onToggle(index != null ? index : 0);
|
|
22615
23118
|
},
|
|
22616
|
-
className: "d-flex justify-content-between align-items-center " + (styles$
|
|
23119
|
+
className: "d-flex justify-content-between align-items-center " + (styles$2["header-chart"] + " " + styles$2["cursor-pointer"])
|
|
22617
23120
|
}, React__default.createElement("div", {
|
|
22618
|
-
className: "" + styles$
|
|
23121
|
+
className: "" + styles$2["header-left"]
|
|
22619
23122
|
}, React__default.createElement("span", {
|
|
22620
|
-
className: styles$
|
|
23123
|
+
className: styles$2["header-title"] + " pr-2"
|
|
22621
23124
|
}, title), !!description && isOpen && React__default.createElement("p", {
|
|
22622
|
-
className: "" + styles$
|
|
23125
|
+
className: "" + styles$2["description-chart-dashboard"]
|
|
22623
23126
|
}, description)), React__default.createElement("div", {
|
|
22624
|
-
className: "" + styles$
|
|
23127
|
+
className: "" + styles$2["header-right"]
|
|
22625
23128
|
}, isOpen && isShowChangeChart && (options === null || options === void 0 ? void 0 : options.length) && React__default.createElement("div", {
|
|
22626
23129
|
className: "d-flex align-items-center d-inline-block pr-4"
|
|
22627
23130
|
}, React__default.createElement("div", {
|
|
22628
|
-
className: "d-flex align-items-center px-2 " + styles$
|
|
23131
|
+
className: "d-flex align-items-center px-2 " + styles$2["checkbox-chart"]
|
|
22629
23132
|
}, React__default.createElement("div", {
|
|
22630
23133
|
className: "pr-4 d-flex",
|
|
22631
23134
|
onClick: function onClick() {
|
|
@@ -22640,14 +23143,14 @@ var HeaderChart = function HeaderChart(_ref) {
|
|
|
22640
23143
|
isActive: typeChart === options[0].value || typeChart === TYPECHART.BOTH,
|
|
22641
23144
|
className: "pr-2"
|
|
22642
23145
|
}), React__default.createElement("label", {
|
|
22643
|
-
className: "" + styles$
|
|
23146
|
+
className: "" + styles$2["label-chart"],
|
|
22644
23147
|
style: {
|
|
22645
23148
|
color: "#252733",
|
|
22646
23149
|
marginBottom: 0,
|
|
22647
23150
|
cursor: "pointer"
|
|
22648
23151
|
}
|
|
22649
23152
|
}, "Ridge charts"))), React__default.createElement("div", {
|
|
22650
|
-
className: "d-inline-block px-2 " + styles$
|
|
23153
|
+
className: "d-inline-block px-2 " + styles$2["checkbox-chart"]
|
|
22651
23154
|
}, React__default.createElement("div", {
|
|
22652
23155
|
className: "pr-4 d-flex",
|
|
22653
23156
|
onClick: function onClick() {
|
|
@@ -22662,20 +23165,20 @@ var HeaderChart = function HeaderChart(_ref) {
|
|
|
22662
23165
|
isActive: typeChart === options[1].value || typeChart === TYPECHART.BOTH,
|
|
22663
23166
|
className: "pr-2"
|
|
22664
23167
|
}), React__default.createElement("label", {
|
|
22665
|
-
className: "" + styles$
|
|
23168
|
+
className: "" + styles$2["label-chart"],
|
|
22666
23169
|
style: {
|
|
22667
23170
|
color: "#252733",
|
|
22668
23171
|
marginBottom: 0,
|
|
22669
23172
|
cursor: "pointer"
|
|
22670
23173
|
}
|
|
22671
23174
|
}, options[1].value === TYPECHART.BAR ? "Bar charts" : "Line charts")))), !!onClickOptions && React__default.createElement("i", {
|
|
22672
|
-
className: "fas fa-ellipsis-v pr-4 " + styles$
|
|
23175
|
+
className: "fas fa-ellipsis-v pr-4 " + styles$2["icon-config"] + " " + styles$2["cursor-pointer"],
|
|
22673
23176
|
onClick: function onClick() {
|
|
22674
23177
|
return onClickOptions === null || onClickOptions === void 0 ? void 0 : onClickOptions();
|
|
22675
23178
|
}
|
|
22676
23179
|
}), React__default.createElement("img", {
|
|
22677
23180
|
src: "images/arrow-up.png",
|
|
22678
|
-
className: styles$
|
|
23181
|
+
className: styles$2["btn-show-chart"] + " " + (!isOpen && styles$2["rotate-180"])
|
|
22679
23182
|
})));
|
|
22680
23183
|
};
|
|
22681
23184
|
|
|
@@ -28767,7 +29270,7 @@ var convertDataToSeriesBullderChart = function convertDataToSeriesBullderChart(d
|
|
|
28767
29270
|
};
|
|
28768
29271
|
});
|
|
28769
29272
|
};
|
|
28770
|
-
var optionColumnChartAndPercents = function optionColumnChartAndPercents(months, activeData, isRidgeCharts, colors, dayOfWeek) {
|
|
29273
|
+
var optionColumnChartAndPercents = function optionColumnChartAndPercents(months, activeData, isRidgeCharts, colors, maxSeries, dayOfWeek, isCountSeries) {
|
|
28771
29274
|
return {
|
|
28772
29275
|
chart: {
|
|
28773
29276
|
height: 350,
|
|
@@ -28831,7 +29334,7 @@ var optionColumnChartAndPercents = function optionColumnChartAndPercents(months,
|
|
|
28831
29334
|
yaxis: {
|
|
28832
29335
|
tickAmount: 5,
|
|
28833
29336
|
min: 0,
|
|
28834
|
-
max: 100,
|
|
29337
|
+
max: maxSeries > 100 ? maxSeries + 20 : 100,
|
|
28835
29338
|
axisBorder: {
|
|
28836
29339
|
show: true
|
|
28837
29340
|
},
|
|
@@ -28848,7 +29351,8 @@ var optionColumnChartAndPercents = function optionColumnChartAndPercents(months,
|
|
|
28848
29351
|
cssClass: "apexcharts-yaxis-label"
|
|
28849
29352
|
},
|
|
28850
29353
|
formatter: function formatter(value) {
|
|
28851
|
-
|
|
29354
|
+
var roundedValue = Math.round(value);
|
|
29355
|
+
return !isCountSeries ? roundedValue + "%" : roundedValue.toString();
|
|
28852
29356
|
},
|
|
28853
29357
|
offsetX: 0,
|
|
28854
29358
|
offsetY: 0,
|
|
@@ -28980,7 +29484,7 @@ var optionLineChart = function optionLineChart(months, activeData, colors, dayOf
|
|
|
28980
29484
|
}
|
|
28981
29485
|
};
|
|
28982
29486
|
};
|
|
28983
|
-
var overallDonutCHartOptions = function overallDonutCHartOptions(labelNames, colors, textColors) {
|
|
29487
|
+
var overallDonutCHartOptions = function overallDonutCHartOptions(labelNames, colors, isCountSeries, textColors) {
|
|
28984
29488
|
return {
|
|
28985
29489
|
legend: {
|
|
28986
29490
|
show: false,
|
|
@@ -29008,13 +29512,18 @@ var overallDonutCHartOptions = function overallDonutCHartOptions(labelNames, col
|
|
|
29008
29512
|
theme: "palette5",
|
|
29009
29513
|
y: {
|
|
29010
29514
|
formatter: function formatter(value) {
|
|
29011
|
-
return value.toFixed(1).toString() + "%";
|
|
29515
|
+
return !isCountSeries ? value.toFixed(1).toString() + "%" : value.toString();
|
|
29012
29516
|
}
|
|
29013
29517
|
}
|
|
29014
29518
|
},
|
|
29015
29519
|
colors: colors,
|
|
29016
29520
|
dataLabels: {
|
|
29017
29521
|
enabled: true,
|
|
29522
|
+
formatter: function formatter(val, opt) {
|
|
29523
|
+
var _opt$w, _opt$w$globals, _opt$w$globals$series;
|
|
29524
|
+
|
|
29525
|
+
return !isCountSeries ? val.toFixed(1) + "%" : opt === null || opt === void 0 ? void 0 : (_opt$w = opt.w) === null || _opt$w === void 0 ? void 0 : (_opt$w$globals = _opt$w.globals) === null || _opt$w$globals === void 0 ? void 0 : (_opt$w$globals$series = _opt$w$globals.series) === null || _opt$w$globals$series === void 0 ? void 0 : _opt$w$globals$series[opt === null || opt === void 0 ? void 0 : opt.seriesIndex];
|
|
29526
|
+
},
|
|
29018
29527
|
style: {
|
|
29019
29528
|
colors: textColors || ["#242424", "#242424"],
|
|
29020
29529
|
fontSize: "12px",
|
|
@@ -29657,7 +30166,9 @@ var useChartDatas = function useChartDatas() {
|
|
|
29657
30166
|
topLearningStrategies = _useDashboard.topLearningStrategies,
|
|
29658
30167
|
readinessToLearning = _useDashboard.readinessToLearning,
|
|
29659
30168
|
handleChangeFilters = _useDashboard.handleChangeFilters,
|
|
30169
|
+
handleChangeAcademicYearFilters = _useDashboard.handleChangeAcademicYearFilters,
|
|
29660
30170
|
bandScore = _useDashboard.bandScore,
|
|
30171
|
+
academicYear = _useDashboard.academicYear,
|
|
29661
30172
|
user = _useDashboard.user,
|
|
29662
30173
|
studentDefault = _useDashboard.studentDefault,
|
|
29663
30174
|
handleFilterStudent = _useDashboard.handleFilterStudent,
|
|
@@ -29732,6 +30243,21 @@ var useChartDatas = function useChartDatas() {
|
|
|
29732
30243
|
setSelectedToPrint(updateSelectToPrint);
|
|
29733
30244
|
};
|
|
29734
30245
|
|
|
30246
|
+
var academicYearItem = React.useMemo(function () {
|
|
30247
|
+
if ((academicYear === null || academicYear === void 0 ? void 0 : academicYear.length) > 0) {
|
|
30248
|
+
return academicYear.map(function (item) {
|
|
30249
|
+
return {
|
|
30250
|
+
value: item.id,
|
|
30251
|
+
label: moment(item.startTime).year() + " - " + moment(item.endTime).year(),
|
|
30252
|
+
startTime: item.startTime,
|
|
30253
|
+
endTime: item.endTime,
|
|
30254
|
+
isCurrent: item.isCurrent
|
|
30255
|
+
};
|
|
30256
|
+
});
|
|
30257
|
+
}
|
|
30258
|
+
|
|
30259
|
+
return [];
|
|
30260
|
+
}, [academicYear]);
|
|
29735
30261
|
var LIST_FILTERS_LEFT = [{
|
|
29736
30262
|
name: FILTER_NAME.Calendar,
|
|
29737
30263
|
icon: "/images/calendar.svg",
|
|
@@ -29778,6 +30304,13 @@ var useChartDatas = function useChartDatas() {
|
|
|
29778
30304
|
value: -1,
|
|
29779
30305
|
label: "All"
|
|
29780
30306
|
}].concat(bandScore)
|
|
30307
|
+
}, {
|
|
30308
|
+
name: FILTER_NAME.AcademicYear,
|
|
30309
|
+
icon: "/images/student-icon.svg",
|
|
30310
|
+
handleChangeFilters: handleChangeAcademicYearFilters,
|
|
30311
|
+
option: [].concat(academicYearItem),
|
|
30312
|
+
labelBox: labelBox,
|
|
30313
|
+
setLabelBox: setLabelBox
|
|
29781
30314
|
}];
|
|
29782
30315
|
var LIST_FILTERS_RIGHT = [{
|
|
29783
30316
|
name: FILTER_NAME.StudentName,
|
|
@@ -30677,17 +31210,17 @@ var TotalCard = function TotalCard(_ref) {
|
|
|
30677
31210
|
title = _ref.title,
|
|
30678
31211
|
value = _ref.value;
|
|
30679
31212
|
return React__default.createElement("div", {
|
|
30680
|
-
className: styles$
|
|
31213
|
+
className: styles$2["title-card-box"] + " " + styles$2["box-item"] + " p-4 mb-2 mb-sm-0 mb-lg-2 shadow-md"
|
|
30681
31214
|
}, React__default.createElement("div", {
|
|
30682
31215
|
className: "d-flex align-items-center justify-content-center"
|
|
30683
31216
|
}, React__default.createElement("img", {
|
|
30684
31217
|
src: icon
|
|
30685
31218
|
}), React__default.createElement("p", {
|
|
30686
|
-
className: styles$
|
|
31219
|
+
className: styles$2["title-card"] + " m-0 mx-2"
|
|
30687
31220
|
}, title, ":")), React__default.createElement("div", {
|
|
30688
31221
|
className: "d-flex align-items-center justify-content-center mt-3"
|
|
30689
31222
|
}, React__default.createElement("p", {
|
|
30690
|
-
className: "" + styles$
|
|
31223
|
+
className: "" + styles$2["value-card"]
|
|
30691
31224
|
}, value)));
|
|
30692
31225
|
};
|
|
30693
31226
|
|
|
@@ -30696,18 +31229,22 @@ var AreaChart = function AreaChart(_ref) {
|
|
|
30696
31229
|
months = _ref.months,
|
|
30697
31230
|
activeColumn = _ref.activeColumn,
|
|
30698
31231
|
colors = _ref.colors,
|
|
30699
|
-
dayOfWeek = _ref.dayOfWeek
|
|
30700
|
-
|
|
31232
|
+
dayOfWeek = _ref.dayOfWeek,
|
|
31233
|
+
isCountSeries = _ref.isCountSeries;
|
|
31234
|
+
var maxSeries = series.reduce(function (max, item) {
|
|
31235
|
+
return Math.max.apply(Math, [max].concat(item.data));
|
|
31236
|
+
}, -Infinity) || 0;
|
|
31237
|
+
var options = optionColumnChartAndPercents(months, activeColumn, true, colors, maxSeries, dayOfWeek, isCountSeries);
|
|
30701
31238
|
options.tooltip = {
|
|
30702
31239
|
custom: function custom(_ref2) {
|
|
30703
31240
|
var dataPointIndex = _ref2.dataPointIndex,
|
|
30704
31241
|
w = _ref2.w;
|
|
30705
31242
|
var colorsItem = w.config.colors;
|
|
30706
31243
|
var seriesItem = w.config.series;
|
|
30707
|
-
return "<div class=" + styles$
|
|
31244
|
+
return "<div class=" + styles$2["custom-tooltip"] + "> \n <p class=" + styles$2["custom-tooltip-month"] + "> " + dayOfWeek[dataPointIndex] + " </p>\n " + seriesItem.map(function (r, index) {
|
|
30708
31245
|
var _r$data$dataPointInde;
|
|
30709
31246
|
|
|
30710
|
-
return "<div key={" + index + "} class=" + styles$
|
|
31247
|
+
return "<div key={" + index + "} class=" + styles$2["tooltip-data-box"] + ">\n <div class=" + styles$2["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$2["tooltip-data"] + ">\n <p class=" + styles$2["name"] + ">" + r.name + ":</p>\n <p class=" + styles$2["data"] + ">" + (!isCountSeries ? ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%" : r.data[dataPointIndex]) + "</p>\n </div>\n </div>";
|
|
30711
31248
|
}) + "\n </div>";
|
|
30712
31249
|
}
|
|
30713
31250
|
};
|
|
@@ -30726,8 +31263,11 @@ var BarChart = function BarChart(_ref) {
|
|
|
30726
31263
|
activeColumn = _ref.activeColumn,
|
|
30727
31264
|
colors = _ref.colors,
|
|
30728
31265
|
dayOfWeek = _ref.dayOfWeek;
|
|
31266
|
+
var maxSeries = series.reduce(function (max, item) {
|
|
31267
|
+
return Math.max.apply(Math, [max].concat(item.data));
|
|
31268
|
+
}, -Infinity) || 0;
|
|
30729
31269
|
return React__default.createElement(Chart, {
|
|
30730
|
-
options: optionColumnChartAndPercents(months, activeColumn, false, colors, dayOfWeek),
|
|
31270
|
+
options: optionColumnChartAndPercents(months, activeColumn, false, colors, maxSeries, dayOfWeek),
|
|
30731
31271
|
type: "bar",
|
|
30732
31272
|
series: series,
|
|
30733
31273
|
width: "100%",
|
|
@@ -30748,10 +31288,10 @@ var LineChart = function LineChart(_ref) {
|
|
|
30748
31288
|
w = _ref2.w;
|
|
30749
31289
|
var colorsItem = w.config.colors;
|
|
30750
31290
|
var seriesItem = w.config.series;
|
|
30751
|
-
return "<div class=" + styles$
|
|
31291
|
+
return "<div class=" + styles$2["custom-tooltip"] + "> \n <p class=" + styles$2["custom-tooltip-month"] + "> " + dayOfWeek[dataPointIndex] + " </p>\n " + seriesItem.map(function (r, index) {
|
|
30752
31292
|
var _r$data$dataPointInde;
|
|
30753
31293
|
|
|
30754
|
-
return "<div class=" + styles$
|
|
31294
|
+
return "<div class=" + styles$2["tooltip-data-box"] + ">\n <div class=" + styles$2["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$2["tooltip-data"] + ">\n <p class=" + styles$2["name"] + ">" + r.name + ":</p>\n <p class=" + styles$2["data"] + ">" + ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%</p>\n </div>\n </div>";
|
|
30755
31295
|
}) + "\n </div>";
|
|
30756
31296
|
}
|
|
30757
31297
|
};
|
|
@@ -30772,9 +31312,10 @@ var OverallDonutChart = function OverallDonutChart(_ref) {
|
|
|
30772
31312
|
width = _ref$width === void 0 ? "100%" : _ref$width,
|
|
30773
31313
|
_ref$height = _ref.height,
|
|
30774
31314
|
height = _ref$height === void 0 ? 250 : _ref$height,
|
|
31315
|
+
isCountSeries = _ref.isCountSeries,
|
|
30775
31316
|
textColors = _ref.textColors;
|
|
30776
31317
|
return React__default.createElement(Chart, {
|
|
30777
|
-
options: overallDonutCHartOptions(label, colors, textColors),
|
|
31318
|
+
options: overallDonutCHartOptions(label, colors, isCountSeries, textColors),
|
|
30778
31319
|
series: series,
|
|
30779
31320
|
type: "donut",
|
|
30780
31321
|
width: width,
|
|
@@ -30836,20 +31377,20 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
30836
31377
|
}) || [];
|
|
30837
31378
|
return React__default.createElement("div", {
|
|
30838
31379
|
key: name,
|
|
30839
|
-
className: "w-100 h-100 " + styles$
|
|
31380
|
+
className: "w-100 h-100 " + styles$2["column-chart-percent"]
|
|
30840
31381
|
}, !isPrint && React__default.createElement("div", {
|
|
30841
|
-
className: "" + styles$
|
|
31382
|
+
className: "" + styles$2["header-chart-generate"]
|
|
30842
31383
|
}, React__default.createElement("p", {
|
|
30843
|
-
className: "" + styles$
|
|
31384
|
+
className: "" + styles$2["title-chart-generate"]
|
|
30844
31385
|
}, name), !!isShowExpandIcon && React__default.createElement("img", {
|
|
30845
|
-
className: "" + styles$
|
|
31386
|
+
className: "" + styles$2["expand-icon"],
|
|
30846
31387
|
onClick: function onClick() {
|
|
30847
31388
|
return onExpand === null || onExpand === void 0 ? void 0 : onExpand();
|
|
30848
31389
|
},
|
|
30849
31390
|
src: "/images/expand.svg",
|
|
30850
31391
|
alt: "expand"
|
|
30851
31392
|
})), React__default.createElement("div", {
|
|
30852
|
-
className: styles$
|
|
31393
|
+
className: styles$2["listItem"] + " " + (!onActiveColumn && styles$2["ml-10"])
|
|
30853
31394
|
}, series.map(function (item, index) {
|
|
30854
31395
|
var _handleGenerateAvgQue, _Math$abs, _Math$abs2;
|
|
30855
31396
|
|
|
@@ -30859,59 +31400,60 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
30859
31400
|
if (isPrint && !activeColumn[index]) return null;
|
|
30860
31401
|
return React__default.createElement("div", {
|
|
30861
31402
|
hidden: !item.name,
|
|
30862
|
-
className: "" + styles$
|
|
31403
|
+
className: "" + styles$2["item-checkbox"],
|
|
30863
31404
|
key: index
|
|
30864
31405
|
}, !!onActiveColumn && React__default.createElement("div", {
|
|
30865
|
-
className: "" + styles$
|
|
31406
|
+
className: "" + styles$2["box-checkbox"]
|
|
30866
31407
|
}, React__default.createElement(CheckboxCustom, {
|
|
30867
31408
|
isActive: !!activeColumn[index],
|
|
30868
31409
|
onClick: function onClick() {
|
|
30869
31410
|
return onActiveColumn === null || onActiveColumn === void 0 ? void 0 : onActiveColumn(index, name);
|
|
30870
31411
|
}
|
|
30871
31412
|
})), React__default.createElement("div", {
|
|
30872
|
-
className: "" + styles$
|
|
31413
|
+
className: "" + styles$2["item-detail"]
|
|
30873
31414
|
}, React__default.createElement("div", {
|
|
30874
|
-
className: "" + styles$
|
|
31415
|
+
className: "" + styles$2["question"]
|
|
30875
31416
|
}, React__default.createElement("div", {
|
|
30876
|
-
className: "" + styles$
|
|
31417
|
+
className: "" + styles$2["point-custom"],
|
|
30877
31418
|
style: {
|
|
30878
31419
|
backgroundColor: colors[index]
|
|
30879
31420
|
}
|
|
30880
31421
|
}), React__default.createElement("label", {
|
|
30881
|
-
className: "" + styles$
|
|
31422
|
+
className: "" + styles$2["label-chart"]
|
|
30882
31423
|
}, item.name)), React__default.createElement("p", {
|
|
30883
|
-
className: "" + styles$
|
|
31424
|
+
className: "" + styles$2["avr-question"]
|
|
30884
31425
|
}, "" + ((_handleGenerateAvgQue = handleGenerateAvgQuestion(item.data, avgContent)) != null ? _handleGenerateAvgQue : 0)), React__default.createElement("div", {
|
|
30885
31426
|
hidden: avgs.length == 0 || !timeOfDay,
|
|
30886
|
-
className: "" + styles$
|
|
31427
|
+
className: "" + styles$2["volatility"]
|
|
30887
31428
|
}, avgs[index] < 0 ? React__default.createElement("div", {
|
|
30888
|
-
className: "" + styles$
|
|
31429
|
+
className: "" + styles$2["arr"]
|
|
30889
31430
|
}, React__default.createElement("svg", {
|
|
30890
31431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30891
31432
|
height: "1em",
|
|
30892
31433
|
viewBox: "0 0 384 512",
|
|
30893
|
-
className: styles$
|
|
31434
|
+
className: styles$2[classArrowDown] + " " + styles$2["arrow"]
|
|
30894
31435
|
}, React__default.createElement("path", {
|
|
30895
31436
|
d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"
|
|
30896
31437
|
})), React__default.createElement("p", {
|
|
30897
|
-
className: styles$
|
|
31438
|
+
className: styles$2["percent-text"] + " " + styles$2[classArrowDown]
|
|
30898
31439
|
}, ((_Math$abs = Math.abs(avgs[index] || 0)) === null || _Math$abs === void 0 ? void 0 : _Math$abs.toFixed(2)) + "%")) : React__default.createElement("div", {
|
|
30899
|
-
className: "" + styles$
|
|
31440
|
+
className: "" + styles$2["arr"]
|
|
30900
31441
|
}, React__default.createElement("svg", {
|
|
30901
31442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30902
31443
|
height: "1em",
|
|
30903
31444
|
viewBox: "0 0 384 512",
|
|
30904
|
-
className: " " + styles$
|
|
31445
|
+
className: " " + styles$2["rotate-180"] + " " + styles$2[classArrowUp] + " " + styles$2["arrow"]
|
|
30905
31446
|
}, React__default.createElement("path", {
|
|
30906
31447
|
d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"
|
|
30907
31448
|
})), React__default.createElement("p", {
|
|
30908
|
-
className: styles$
|
|
31449
|
+
className: styles$2["percent-text"] + " " + styles$2[classArrowUp]
|
|
30909
31450
|
}, ((_Math$abs2 = Math.abs(avgs[index] || 0)) === null || _Math$abs2 === void 0 ? void 0 : _Math$abs2.toFixed(2)) + "%")), React__default.createElement("p", {
|
|
30910
|
-
className: "" + styles$
|
|
31451
|
+
className: "" + styles$2["month-text"]
|
|
30911
31452
|
}, "vs last " + timeOfDay))));
|
|
30912
31453
|
})), React__default.createElement("div", {
|
|
30913
31454
|
className: "w-100 " + (isPrint && typeChart === TYPECHART.DONUT ? "d-flex justify-content-center" : "")
|
|
30914
31455
|
}, typeChart === TYPECHART.AREA && React__default.createElement(AreaChart, {
|
|
31456
|
+
isCountSeries: !!avgContent,
|
|
30915
31457
|
months: months,
|
|
30916
31458
|
activeColumn: activeColumn,
|
|
30917
31459
|
series: newSeries,
|
|
@@ -30930,6 +31472,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
30930
31472
|
dayOfWeek: dayOfWeek,
|
|
30931
31473
|
colors: colors
|
|
30932
31474
|
}), typeChart === TYPECHART.DONUT && React__default.createElement(OverallDonutChart, {
|
|
31475
|
+
isCountSeries: !!avgContent,
|
|
30933
31476
|
series: seriesDonut,
|
|
30934
31477
|
colors: colors,
|
|
30935
31478
|
label: label,
|
|
@@ -31137,19 +31680,19 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
|
|
|
31137
31680
|
left: 110
|
|
31138
31681
|
};
|
|
31139
31682
|
return React__default.createElement("div", {
|
|
31140
|
-
className: "h-100 w-100 " + styles$
|
|
31683
|
+
className: "h-100 w-100 " + styles$2["chart-background"] + " pl-4"
|
|
31141
31684
|
}, React__default.createElement(reactstrap.Row, {
|
|
31142
31685
|
className: "d-flex"
|
|
31143
31686
|
}, (!isPrint || isPrint && learningStrategyId) && React__default.createElement(reactstrap.Col, {
|
|
31144
31687
|
md: isPrint ? 12 : 7
|
|
31145
31688
|
}, React__default.createElement("div", {
|
|
31146
|
-
className: "" + styles$
|
|
31689
|
+
className: "" + styles$2["block-header-chart"]
|
|
31147
31690
|
}, React__default.createElement("div", {
|
|
31148
|
-
className: "" + styles$
|
|
31691
|
+
className: "" + styles$2["block-header-name"]
|
|
31149
31692
|
}, React__default.createElement("p", {
|
|
31150
|
-
className: "" + styles$
|
|
31693
|
+
className: "" + styles$2["title-chart"]
|
|
31151
31694
|
}, t(topLearningStrategyName)), React__default.createElement("p", {
|
|
31152
|
-
className: "" + styles$
|
|
31695
|
+
className: "" + styles$2["description-chart"]
|
|
31153
31696
|
}, "The Effectiveness of Learning Strategies by Student's feedback"))), React__default.createElement("div", {
|
|
31154
31697
|
className: "w-100 h-100",
|
|
31155
31698
|
id: learningStrategyId
|
|
@@ -31166,21 +31709,21 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
|
|
|
31166
31709
|
width: !isMobileScreen ? "100%" : screenWidth + 370,
|
|
31167
31710
|
height: !isMobileScreen ? 500 : 700
|
|
31168
31711
|
})) : React__default.createElement("img", {
|
|
31169
|
-
className: styles$
|
|
31712
|
+
className: styles$2["image-no-data"] + " " + styles$2["image-custom"],
|
|
31170
31713
|
src: "images/chart-top-learning.png"
|
|
31171
31714
|
}), React__default.createElement("p", {
|
|
31172
|
-
className: "" + styles$
|
|
31715
|
+
className: "" + styles$2["name-chart"]
|
|
31173
31716
|
}, "Perceived Usefulness"))), (!isPrint || isPrint && topLearningStrategyId) && React__default.createElement(reactstrap.Col, {
|
|
31174
31717
|
md: isPrint ? 12 : 5,
|
|
31175
|
-
className: "" + styles$
|
|
31718
|
+
className: "" + styles$2["box-top-5-most"]
|
|
31176
31719
|
}, React__default.createElement("div", {
|
|
31177
|
-
className: "" + styles$
|
|
31720
|
+
className: "" + styles$2["block-header-chart"]
|
|
31178
31721
|
}, React__default.createElement("div", {
|
|
31179
|
-
className: "" + styles$
|
|
31722
|
+
className: "" + styles$2["block-header-name"]
|
|
31180
31723
|
}, React__default.createElement("p", {
|
|
31181
|
-
className: "" + styles$
|
|
31724
|
+
className: "" + styles$2["title-chart"]
|
|
31182
31725
|
}, t(topMostUsedStrategiesName)), React__default.createElement("p", {
|
|
31183
|
-
className: "" + styles$
|
|
31726
|
+
className: "" + styles$2["description-chart"]
|
|
31184
31727
|
}, "How many times a strategy has been chosen"))), React__default.createElement("div", {
|
|
31185
31728
|
className: "w-100 h-100",
|
|
31186
31729
|
id: topLearningStrategyId
|
|
@@ -31223,38 +31766,38 @@ var BubbleChartCustom = function BubbleChartCustom(_ref) {
|
|
|
31223
31766
|
}, React__default.createElement("div", null, "No Data"));
|
|
31224
31767
|
var seriesName = seriesNameBubbleChartCustom(data);
|
|
31225
31768
|
return React__default.createElement("div", {
|
|
31226
|
-
className: "" + styles$
|
|
31769
|
+
className: "" + styles$2["size-100"]
|
|
31227
31770
|
}, !isPrint && React__default.createElement("div", {
|
|
31228
|
-
className: "" + styles$
|
|
31771
|
+
className: "" + styles$2["block-header-chart"]
|
|
31229
31772
|
}, React__default.createElement("p", {
|
|
31230
|
-
className: styles$
|
|
31773
|
+
className: styles$2["title-chart"] + " " + styles$2["ml-10"]
|
|
31231
31774
|
}, t(studentDistribution))), React__default.createElement("div", {
|
|
31232
|
-
className: "" + styles$
|
|
31775
|
+
className: "" + styles$2["bubble-chart-custom"]
|
|
31233
31776
|
}, React__default.createElement("div", {
|
|
31234
|
-
className: styles$
|
|
31777
|
+
className: styles$2["chart-custom"]
|
|
31235
31778
|
}, React__default.createElement("div", {
|
|
31236
|
-
className: styles$
|
|
31779
|
+
className: styles$2["list-percent"]
|
|
31237
31780
|
}, PERCENT.map(function (i, index) {
|
|
31238
31781
|
return React__default.createElement("div", {
|
|
31239
|
-
className: "" + styles$
|
|
31782
|
+
className: "" + styles$2["percent-item"],
|
|
31240
31783
|
key: index
|
|
31241
31784
|
}, i, "%");
|
|
31242
31785
|
})), React__default.createElement("div", {
|
|
31243
|
-
className: styles$
|
|
31786
|
+
className: styles$2["legend-wrap"]
|
|
31244
31787
|
}, seriesName.map(function (i, index) {
|
|
31245
31788
|
return React__default.createElement("div", {
|
|
31246
|
-
className: "" + styles$
|
|
31789
|
+
className: "" + styles$2["item"],
|
|
31247
31790
|
key: index
|
|
31248
31791
|
}, React__default.createElement("div", {
|
|
31249
|
-
className: "" + styles$
|
|
31792
|
+
className: "" + styles$2["mark-custom"],
|
|
31250
31793
|
style: {
|
|
31251
31794
|
backgroundColor: COLOR_CHART_BUBBLE[index]
|
|
31252
31795
|
}
|
|
31253
31796
|
}), React__default.createElement("label", {
|
|
31254
|
-
className: "" + styles$
|
|
31797
|
+
className: "" + styles$2["label-legend-custom"]
|
|
31255
31798
|
}, i));
|
|
31256
31799
|
})), React__default.createElement("div", {
|
|
31257
|
-
className: styles$
|
|
31800
|
+
className: styles$2["chart-buddle"]
|
|
31258
31801
|
}, React__default.createElement("div", null, React__default.createElement(Chart, {
|
|
31259
31802
|
options: readinesToLearnoptions(seriesName, data),
|
|
31260
31803
|
type: "scatter",
|
|
@@ -32403,7 +32946,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
32403
32946
|
};
|
|
32404
32947
|
|
|
32405
32948
|
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
32406
|
-
className: "" + styles$
|
|
32949
|
+
className: "" + styles$2["chart-to-canvas"]
|
|
32407
32950
|
}, React__default.createElement("div", {
|
|
32408
32951
|
id: "safety"
|
|
32409
32952
|
}, React__default.createElement(GenerateChartData, {
|
|
@@ -32504,7 +33047,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
32504
33047
|
width: 800,
|
|
32505
33048
|
isPrint: true
|
|
32506
33049
|
}))), React__default.createElement("div", {
|
|
32507
|
-
className: "" + styles$
|
|
33050
|
+
className: "" + styles$2["image-logo"],
|
|
32508
33051
|
id: "header-logo"
|
|
32509
33052
|
}, React__default.createElement("img", {
|
|
32510
33053
|
src: headerLogo,
|
|
@@ -32563,7 +33106,7 @@ var useExportSessionCsv = function useExportSessionCsv() {
|
|
|
32563
33106
|
var headers = "Student Name,ID/Email,Question,Answer,Teacher,Start Time";
|
|
32564
33107
|
|
|
32565
33108
|
if (startDate || endDate) {
|
|
32566
|
-
headers = "" + (moment(startDate).isValid() ? moment(startDate).format("DD/MM/YYYY") : '') + (moment(startDate).isValid() && moment(endDate).isValid() ? '-' : '') + moment(endDate).format("DD/MM/YYYY") + "\n" + headers;
|
|
33109
|
+
headers = "\"" + (moment(startDate).isValid() ? 'From: ' + moment(startDate).format("DD/MM/YYYY") : '') + (moment(startDate).isValid() && moment(endDate).isValid() ? ' - ' : '') + (moment(endDate).isValid() ? 'To: ' + moment(endDate).format("DD/MM/YYYY") : '') + "\"\n" + headers;
|
|
32567
33110
|
}
|
|
32568
33111
|
|
|
32569
33112
|
var questions = data.questions,
|
|
@@ -32727,7 +33270,7 @@ var Dashboard = function Dashboard() {
|
|
|
32727
33270
|
|
|
32728
33271
|
var layoutReadinessToLearn = !isExpandChart ? 6 : 12;
|
|
32729
33272
|
return React__default.createElement("div", {
|
|
32730
|
-
className: "" + styles$
|
|
33273
|
+
className: "" + styles$2["block-dashboard"]
|
|
32731
33274
|
}, React__default.createElement(reactstrap.Modal, {
|
|
32732
33275
|
isOpen: modal,
|
|
32733
33276
|
toggle: toggle,
|
|
@@ -32736,15 +33279,15 @@ var Dashboard = function Dashboard() {
|
|
|
32736
33279
|
},
|
|
32737
33280
|
centered: true
|
|
32738
33281
|
}, React__default.createElement(reactstrap.ModalHeader, null, React__default.createElement("p", {
|
|
32739
|
-
className: "" + styles$
|
|
33282
|
+
className: "" + styles$2["title-modal"]
|
|
32740
33283
|
}, t("export_to_pdf")), React__default.createElement("p", {
|
|
32741
|
-
className: "" + styles$
|
|
33284
|
+
className: "" + styles$2["header-desc-modal"]
|
|
32742
33285
|
}, t("the_data_is_taken_from_the_home_screen"), "."), React__default.createElement("p", {
|
|
32743
|
-
className: "" + styles$
|
|
33286
|
+
className: "" + styles$2["header-desc-modal"]
|
|
32744
33287
|
}, t("make_sure_everything_is_set_correctly_before_exporting"))), React__default.createElement(reactstrap.ModalBody, null, chartNames === null || chartNames === void 0 ? void 0 : chartNames.map(function (item) {
|
|
32745
33288
|
return React__default.createElement(reactstrap.FormGroup, {
|
|
32746
33289
|
check: true,
|
|
32747
|
-
className: "" + styles$
|
|
33290
|
+
className: "" + styles$2["form-checkbox"]
|
|
32748
33291
|
}, React__default.createElement(reactstrap.Input, {
|
|
32749
33292
|
type: "checkbox",
|
|
32750
33293
|
checked: selectedToPrint.includes(item),
|
|
@@ -32753,7 +33296,7 @@ var Dashboard = function Dashboard() {
|
|
|
32753
33296
|
}
|
|
32754
33297
|
}), React__default.createElement(reactstrap.Label, {
|
|
32755
33298
|
check: true,
|
|
32756
|
-
className: "" + styles$
|
|
33299
|
+
className: "" + styles$2["checkbox-content"]
|
|
32757
33300
|
}, t("" + item)));
|
|
32758
33301
|
})), React__default.createElement(reactstrap.ModalFooter, null, React__default.createElement(reactstrap.Button, {
|
|
32759
33302
|
color: "light",
|
|
@@ -32787,7 +33330,7 @@ var Dashboard = function Dashboard() {
|
|
|
32787
33330
|
}, React__default.createElement("div", {
|
|
32788
33331
|
className: "d-flex align-items-center mx-3"
|
|
32789
33332
|
}, React__default.createElement("h4", {
|
|
32790
|
-
className: styles$
|
|
33333
|
+
className: styles$2["title-dashboard"] + " m-0"
|
|
32791
33334
|
}, t("hey"), " ", user.firstName, "!"), React__default.createElement("img", {
|
|
32792
33335
|
className: "mx-2",
|
|
32793
33336
|
src: "images/waving-hand.png",
|
|
@@ -32795,29 +33338,29 @@ var Dashboard = function Dashboard() {
|
|
|
32795
33338
|
})), React__default.createElement("div", {
|
|
32796
33339
|
className: "d-flex mt-2 mt-sm-0"
|
|
32797
33340
|
}, React__default.createElement("button", {
|
|
32798
|
-
className: styles$
|
|
33341
|
+
className: styles$2["button-export"] + " d-flex align-items-center border-0 p-0 mr-2",
|
|
32799
33342
|
onClick: function onClick() {
|
|
32800
33343
|
return exportSessionsCsv(filter);
|
|
32801
33344
|
}
|
|
32802
33345
|
}, React__default.createElement("div", {
|
|
32803
|
-
className: "" + styles$
|
|
33346
|
+
className: "" + styles$2["button-icon"]
|
|
32804
33347
|
}, React__default.createElement("img", {
|
|
32805
33348
|
src: "images/export-icon.svg",
|
|
32806
33349
|
alt: ""
|
|
32807
33350
|
})), React__default.createElement("p", {
|
|
32808
|
-
className: styles$
|
|
33351
|
+
className: styles$2["button-content"] + " mb-0"
|
|
32809
33352
|
}, "Export Check-ins to CSV")), React__default.createElement("button", {
|
|
32810
|
-
className: styles$
|
|
33353
|
+
className: styles$2["button-export"] + " d-flex align-items-center border-0 p-0",
|
|
32811
33354
|
onClick: toggle
|
|
32812
33355
|
}, React__default.createElement("div", {
|
|
32813
|
-
className: "" + styles$
|
|
33356
|
+
className: "" + styles$2["button-icon"]
|
|
32814
33357
|
}, React__default.createElement("img", {
|
|
32815
33358
|
src: "images/export-icon.svg",
|
|
32816
33359
|
alt: ""
|
|
32817
33360
|
})), React__default.createElement("p", {
|
|
32818
|
-
className: styles$
|
|
33361
|
+
className: styles$2["button-content"] + " mb-0"
|
|
32819
33362
|
}, t("export_to_pdf"))))), React__default.createElement("div", {
|
|
32820
|
-
className: styles$
|
|
33363
|
+
className: styles$2['filter-mobile-block'] + " p-3 my-4"
|
|
32821
33364
|
}, React__default.createElement("div", {
|
|
32822
33365
|
onClick: function onClick() {
|
|
32823
33366
|
return setIsShowFilterMobile(!isShowFilterMobile);
|
|
@@ -32830,9 +33373,9 @@ var Dashboard = function Dashboard() {
|
|
|
32830
33373
|
}) : React__default.createElement(fi.FiChevronDown, {
|
|
32831
33374
|
size: "1.5rem"
|
|
32832
33375
|
})), isShowFilterMobile ? React__default.createElement("div", {
|
|
32833
|
-
className: "d-flex flex-column " + styles$
|
|
33376
|
+
className: "d-flex flex-column " + styles$2["filter-wrapper-mobile"]
|
|
32834
33377
|
}, React__default.createElement("div", {
|
|
32835
|
-
className: "d-flex flex-column mt-3 " + styles$
|
|
33378
|
+
className: "d-flex flex-column mt-3 " + styles$2["filter-wrapper-mobile"]
|
|
32836
33379
|
}, LIST_FILTERS_LEFT.map(function (e) {
|
|
32837
33380
|
return React__default.createElement(SelectFilter, {
|
|
32838
33381
|
name: e.name,
|
|
@@ -32845,7 +33388,7 @@ var Dashboard = function Dashboard() {
|
|
|
32845
33388
|
setLabelBox: e.setLabelBox
|
|
32846
33389
|
});
|
|
32847
33390
|
})), React__default.createElement("div", {
|
|
32848
|
-
className: "d-flex flex-column " + styles$
|
|
33391
|
+
className: "d-flex flex-column " + styles$2["filter-wrapper-mobile"]
|
|
32849
33392
|
}, LIST_FILTERS_RIGHT.map(function (e) {
|
|
32850
33393
|
return React__default.createElement(SelectFilter, {
|
|
32851
33394
|
name: e.name,
|
|
@@ -32900,7 +33443,7 @@ var Dashboard = function Dashboard() {
|
|
|
32900
33443
|
} : {}
|
|
32901
33444
|
});
|
|
32902
33445
|
}))), React__default.createElement("div", {
|
|
32903
|
-
className: styles$
|
|
33446
|
+
className: styles$2["total-card-wrapper"] + " d-flex align-items-center justify-content-center justify-content-lg-between flex-wrap mb-3"
|
|
32904
33447
|
}, totalCardData.map(function (item) {
|
|
32905
33448
|
return React__default.createElement(TotalCard, {
|
|
32906
33449
|
icon: item.icon,
|
|
@@ -32911,7 +33454,7 @@ var Dashboard = function Dashboard() {
|
|
|
32911
33454
|
filter: item.filter
|
|
32912
33455
|
});
|
|
32913
33456
|
})), React__default.createElement("div", {
|
|
32914
|
-
className: "shadow-lg mb-3 " + styles$
|
|
33457
|
+
className: "shadow-lg mb-3 " + styles$2["chart-header-wrapper"]
|
|
32915
33458
|
}, React__default.createElement(HeaderChart, {
|
|
32916
33459
|
title: t(readinessToLearnName),
|
|
32917
33460
|
onToggle: function onToggle() {
|
|
@@ -32996,15 +33539,15 @@ var Dashboard = function Dashboard() {
|
|
|
32996
33539
|
}))), React__default.createElement(BubbleChartCustom$1, {
|
|
32997
33540
|
data: readinessToLearning
|
|
32998
33541
|
}), React__default.createElement("div", {
|
|
32999
|
-
className: "" + styles$
|
|
33542
|
+
className: "" + styles$2["mt-15"]
|
|
33000
33543
|
}, React__default.createElement("p", {
|
|
33001
|
-
className: "" + styles$
|
|
33544
|
+
className: "" + styles$2["title-chart"]
|
|
33002
33545
|
}, t(studentStressByZone)), React__default.createElement("div", {
|
|
33003
|
-
className: "" + styles$
|
|
33546
|
+
className: "" + styles$2["box-chart-pressure"]
|
|
33004
33547
|
}, React__default.createElement(StudentPressureChart, {
|
|
33005
33548
|
studentPressure: studentPressure
|
|
33006
33549
|
}))))), React__default.createElement("div", {
|
|
33007
|
-
className: "shadow-lg mb-3 " + styles$
|
|
33550
|
+
className: "shadow-lg mb-3 " + styles$2["chart-header-wrapper"]
|
|
33008
33551
|
}, React__default.createElement(HeaderChart, {
|
|
33009
33552
|
title: "Learning Progress",
|
|
33010
33553
|
onToggle: function onToggle() {
|
|
@@ -34246,7 +34789,7 @@ var AdminTraining = function AdminTraining() {
|
|
|
34246
34789
|
})));
|
|
34247
34790
|
};
|
|
34248
34791
|
|
|
34249
|
-
var styles$
|
|
34792
|
+
var styles$3 = {"dashboard-card":"_3U9cF","quantity-table":"_3lYP4","label-chart":"_EIKHR","size-icon":"_3waCS","survey-dashboard-chart":"_Dr0mP","survey-donut-chart":"_2aFDQ","size-arrow":"_36sKX","color-down":"_1TjNf","color-up":"_i4rwq","box-filter":"_BlYR7","title-card":"_3fBK1","value-card":"_2w6yc","deviant-card":"_1aq6C","filter-card":"_2lX51","box-skill-item":"_jGO7A","numerical-order":"_2dXys","backoround-top-skill":"_3-8WB","color-filter":"_5QHKk","btn-filter":"_2UyJG","block-collapse":"_1SL-6","form-date-picker":"_pKQ8e","bock-filter-left":"_2eZGm","bock-filter-right":"_dz04Q","form-filter-right":"_OhjkA","form-filter-left":"_-q4tF","bock-filter-wrap":"_nukn6","title-card-box":"_2ysrj","box-item":"_37HdU","image-no-data":"_-jYtE","image-grade":"_2FOHk","chart-data":"_38Xgv","apexcharts-datalabels":"_3m9ET","apexcharts-pie-label":"_3QJAM","image-custom":"_11W3J","image-special-need":"_2-frJ","title-dashboard":"_1_YyD","box-chart":"_xbK6p","block-filter-right":"_11sYZ","shadow-lg":"_rFfwe","chart-header-wrapper":"_zLI7s","devide-component":"_OoZLR","header-chart":"_3mzht","header-left":"_2gXQT","icon-chart":"_3XABq","header-right":"_1FHsv","header-title":"_2JBD5","button-export":"_2OEd7","button-content":"_2nyRe","button-icon":"_31EdD","icon-config":"_TmymT","cursor-pointer":"_3X_ow","btn-show-chart":"_1qdL4","checkbox-chart":"_PghQI","column-chart-percent":"_12jqi","chart-background":"_2rwg5","custom-marker":"_3iwnG","mark-custom":"_rKYWD","item-legend":"_n_lnI","label-legend-custom":"_3hlTa","mark-legend":"_1LGIl","percent":"_1mr1m","listItem":"_E_ciE","item":"_27ojF","student-by-age":"_2KJYt","total-student":"_hEgnv","pie-chart":"_34-k0","options-gender":"_119UL","legend":"_tlvnI","text-lengend":"_2Ehxf","student-by-grade":"_L1RnZ","bubble-chart-custom":"_18zab","x-axis-custom-wrap":"_1NRsG","axis-content":"_1jDpB","legend-wrap":"_93MRp","list-percent":"_3ipHU","percent-item":"_35mGN","chart-custom":"_1769M","chart-buddle":"_ton1p","title-grade":"_2LTMk","title-modal":"_3f2-D","header-desc-modal":"_19k86","form-checkbox":"_2ZpLB","checkbox-content":"_jLDZ4","btn-export":"_2sMK7","title-chart":"_1E7vX","image-logo":"_3Xggx","chart-to-canvas":"_3zQW_","box-chart-title":"_2HMn5","chart-view-dashboard":"_1qtzK","chart-left":"_g4q-z","chart-right":"_9ibzA","block-header-chart":"_1s7DG","item-checkbox":"_5wSJP","check-box":"_1h1ro","legend-pie-custom":"_2MTrM","legend-item":"_2kriq","color-box":"_jOIdn","filter-mobile-block":"_1bZCU","block-dashboard":"_2n_zv","filter-wrapper-mobile":"_FjhpG","gap-8px":"_4SQcs"};
|
|
34250
34793
|
|
|
34251
34794
|
var LegalGenderType$1;
|
|
34252
34795
|
|
|
@@ -34325,17 +34868,17 @@ var TotalCard$1 = function TotalCard(_ref) {
|
|
|
34325
34868
|
title = _ref.title,
|
|
34326
34869
|
value = _ref.value;
|
|
34327
34870
|
return React__default.createElement("div", {
|
|
34328
|
-
className: styles$
|
|
34871
|
+
className: styles$3["title-card-box"] + " " + styles$3["box-item"] + " p-4 mb-2 shadow-md mr-0 mr-sm-3"
|
|
34329
34872
|
}, React__default.createElement("div", {
|
|
34330
34873
|
className: "d-flex align-items-center justify-content-center"
|
|
34331
34874
|
}, React__default.createElement("img", {
|
|
34332
34875
|
src: icon
|
|
34333
34876
|
}), React__default.createElement("p", {
|
|
34334
|
-
className: styles$
|
|
34877
|
+
className: styles$3["title-card"] + " m-0 mx-2"
|
|
34335
34878
|
}, title, ":")), React__default.createElement("div", {
|
|
34336
34879
|
className: "d-flex align-items-center justify-content-center mt-3"
|
|
34337
34880
|
}, React__default.createElement("p", {
|
|
34338
|
-
className: "" + styles$
|
|
34881
|
+
className: "" + styles$3["value-card"]
|
|
34339
34882
|
}, value)));
|
|
34340
34883
|
};
|
|
34341
34884
|
|
|
@@ -35003,7 +35546,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35003
35546
|
monthsSeriesTotal = _useChartDatas.monthsSeriesTotal;
|
|
35004
35547
|
|
|
35005
35548
|
return React__default.createElement("div", {
|
|
35006
|
-
className: styles$
|
|
35549
|
+
className: styles$3["block-dashboard"] + " mb-5"
|
|
35007
35550
|
}, React__default.createElement("style", {
|
|
35008
35551
|
dangerouslySetInnerHTML: {
|
|
35009
35552
|
__html: [".survey-donut-chart .apexcharts-tooltip{", "color: #FFFFFF!important;", "}"].join('')
|
|
@@ -35013,9 +35556,9 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35013
35556
|
}, React__default.createElement("div", {
|
|
35014
35557
|
className: "d-flex align-items-center mx-3"
|
|
35015
35558
|
}, React__default.createElement("h4", {
|
|
35016
|
-
className: styles$
|
|
35559
|
+
className: styles$3["title-dashboard"] + " m-0"
|
|
35017
35560
|
}, t('survey_dashboard')))), React__default.createElement("div", {
|
|
35018
|
-
className: styles$
|
|
35561
|
+
className: styles$3['filter-mobile-block'] + " p-3 my-4"
|
|
35019
35562
|
}, React__default.createElement("div", {
|
|
35020
35563
|
onClick: function onClick() {
|
|
35021
35564
|
return setIsShowFilterMobile(!isShowFilterMobile);
|
|
@@ -35028,9 +35571,9 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35028
35571
|
}) : React__default.createElement(fi.FiChevronDown, {
|
|
35029
35572
|
size: "1.5rem"
|
|
35030
35573
|
})), isShowFilterMobile ? React__default.createElement("div", {
|
|
35031
|
-
className: "d-flex flex-column " + styles$
|
|
35574
|
+
className: "d-flex flex-column " + styles$3["filter-wrapper-mobile"]
|
|
35032
35575
|
}, React__default.createElement("div", {
|
|
35033
|
-
className: "d-flex flex-column mt-3 " + styles$
|
|
35576
|
+
className: "d-flex flex-column mt-3 " + styles$3["filter-wrapper-mobile"]
|
|
35034
35577
|
}, LIST_FILTERS_LEFT.map(function (e) {
|
|
35035
35578
|
return React__default.createElement(SelectFilter, {
|
|
35036
35579
|
name: e.name,
|
|
@@ -35043,7 +35586,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35043
35586
|
setLabelBox: e.setLabelBox
|
|
35044
35587
|
});
|
|
35045
35588
|
})), React__default.createElement("div", {
|
|
35046
|
-
className: "d-flex flex-column " + styles$
|
|
35589
|
+
className: "d-flex flex-column " + styles$3["filter-wrapper-mobile"]
|
|
35047
35590
|
}, LIST_FILTERS_RIGHT.map(function (e) {
|
|
35048
35591
|
return React__default.createElement(SelectFilter, {
|
|
35049
35592
|
name: e.name,
|
|
@@ -35096,7 +35639,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35096
35639
|
} : {}
|
|
35097
35640
|
});
|
|
35098
35641
|
}))), React__default.createElement("div", {
|
|
35099
|
-
className: "d-flex align-items-center justify-content-center justify-content-sm-start " + styles$
|
|
35642
|
+
className: "d-flex align-items-center justify-content-center justify-content-sm-start " + styles$3['gap-8px'] + " flex-wrap mb-3"
|
|
35100
35643
|
}, totalCardData.map(function (item) {
|
|
35101
35644
|
return React__default.createElement(TotalCard$1, {
|
|
35102
35645
|
icon: item.icon,
|
|
@@ -35107,7 +35650,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35107
35650
|
filter: item.filter
|
|
35108
35651
|
});
|
|
35109
35652
|
})), React__default.createElement("div", {
|
|
35110
|
-
className: "shadow-lg mb-3 py-3 " + styles$
|
|
35653
|
+
className: "shadow-lg mb-3 py-3 " + styles$3["chart-header-wrapper"] + " " + styles$3["survey-dashboard-chart"] + " survey-dashboard-chart"
|
|
35111
35654
|
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
35112
35655
|
xs: 12,
|
|
35113
35656
|
sm: 12,
|
|
@@ -35126,7 +35669,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35126
35669
|
xs: 12,
|
|
35127
35670
|
sm: 12,
|
|
35128
35671
|
md: 5,
|
|
35129
|
-
className: "survey-donut-chart " + styles$
|
|
35672
|
+
className: "survey-donut-chart " + styles$3["survey-donut-chart"]
|
|
35130
35673
|
}, React__default.createElement(GenerateChartData, {
|
|
35131
35674
|
avgContent: "FLAGS",
|
|
35132
35675
|
colors: ["#C44140", "#FFB04F", "#0F9655"],
|
|
@@ -35143,7 +35686,7 @@ var SurveyDashboard = function SurveyDashboard() {
|
|
|
35143
35686
|
})), React__default.createElement(reactstrap.Col, {
|
|
35144
35687
|
md: 12
|
|
35145
35688
|
}, React__default.createElement(GenerateChartData, {
|
|
35146
|
-
colors: ["#73C8E5", "#
|
|
35689
|
+
colors: ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#169490", "#D3D3D3", "#316CD9"],
|
|
35147
35690
|
name: "Survey Results",
|
|
35148
35691
|
typeChart: TYPECHART$2.AREA,
|
|
35149
35692
|
activeColumn: activeColumnResult,
|