@elice/material-assignment 1.240723.0 → 1.240802.0-alt.0

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.
Files changed (21) hide show
  1. package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.d.ts +4 -2
  2. package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.js +7 -6
  3. package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContent.js +185 -58
  4. package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +110 -33
  5. package/cjs/components/material-assignment-admin/locales/en.json.js +7 -0
  6. package/cjs/components/material-assignment-admin/locales/index.d.ts +4 -0
  7. package/cjs/components/material-assignment-admin/locales/index.js +13 -0
  8. package/cjs/components/material-assignment-admin/locales/ja.json.js +7 -0
  9. package/cjs/components/material-assignment-admin/locales/ko.json.js +7 -0
  10. package/cjs/components/material-assignment-admin/locales/th.json.js +7 -0
  11. package/es/components/material-assignment-admin/MaterialAssignmentAdmin.d.ts +4 -2
  12. package/es/components/material-assignment-admin/MaterialAssignmentAdmin.js +8 -7
  13. package/es/components/material-assignment-admin/MaterialAssignmentAdminContent.js +186 -59
  14. package/es/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +111 -34
  15. package/es/components/material-assignment-admin/locales/en.json.js +3 -0
  16. package/es/components/material-assignment-admin/locales/index.d.ts +4 -0
  17. package/es/components/material-assignment-admin/locales/index.js +4 -0
  18. package/es/components/material-assignment-admin/locales/ja.json.js +3 -0
  19. package/es/components/material-assignment-admin/locales/ko.json.js +3 -0
  20. package/es/components/material-assignment-admin/locales/th.json.js +3 -0
  21. package/package.json +3 -3
@@ -6,7 +6,7 @@ import { config, getOrgUserGet, getOrgMaterialAssignmentGet, getOrgMaterialAssig
6
6
  import { Flex, Vspace, ProfileImage, Hspace, Text, Tooltip, Icon, InfoTable, Button, TableNext, IconButton, Pagination, Modal, Label, Input, Textarea, Alert, Notification } from '@elice/blocks';
7
7
  import { base } from '@elice/design-tokens';
8
8
  import { eilStatusInfo, eilChat, eilDelete, eilArrowRightwardsBasic } from '@elice/icons';
9
- import { FormattedDate } from '@elice/intl';
9
+ import { useRawEliceIntl, FormattedDate } from '@elice/intl';
10
10
  import { useMaterialConfigApiClientUpdate } from '@elice/material-shared-utils';
11
11
  import dayjs from 'dayjs';
12
12
  import MaterialAssignmentContainer from '../shared/MaterialAssignmentContainer.js';
@@ -19,6 +19,7 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
19
19
  adminUserId = _ref.adminUserId,
20
20
  updateMaterialUserBrowserResponse = _ref.updateMaterialUserBrowserResponse;
21
21
  var _a;
22
+ var intl = useRawEliceIntl();
22
23
  // Form
23
24
  var gradeEditFormMethods = useForm({
24
25
  defaultValues: {
@@ -209,14 +210,18 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
209
210
  if (typeof updateMaterialUserBrowserResponse === 'function') {
210
211
  updateMaterialUserBrowserResponse(userId);
211
212
  }
212
- Notification.success('저장되었습니다');
213
+ Notification.success(intl.formatMessage({
214
+ id: 'materialAssignment.notify.success'
215
+ }));
213
216
  _context.next = 15;
214
217
  break;
215
218
  case 11:
216
219
  _context.prev = 11;
217
220
  _context.t0 = _context["catch"](1);
218
221
  console.error(_context.t0);
219
- Notification.error('오류가 발생했습니다.');
222
+ Notification.error(intl.formatMessage({
223
+ id: 'materialAssignment.notify.error'
224
+ }));
220
225
  case 15:
221
226
  _context.prev = 15;
222
227
  setShowGradeEditModal(false);
@@ -259,7 +264,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
259
264
  if (typeof updateMaterialUserBrowserResponse === 'function') {
260
265
  updateMaterialUserBrowserResponse(userId);
261
266
  }
262
- Notification.success('저장되었습니다');
267
+ Notification.success(intl.formatMessage({
268
+ id: 'materialAssignment.notify.success'
269
+ }));
263
270
  _context2.next = 19;
264
271
  break;
265
272
  case 14:
@@ -267,7 +274,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
267
274
  _context2.t0 = _context2["catch"](2);
268
275
  console.error(_context2.t0);
269
276
  setGradeDeleteStatus('rejected');
270
- Notification.error('오류가 발생했습니다.');
277
+ Notification.error(intl.formatMessage({
278
+ id: 'materialAssignment.notify.error'
279
+ }));
271
280
  case 19:
272
281
  _context2.prev = 19;
273
282
  setSelectedGradeForDelete(null);
@@ -301,14 +310,18 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
301
310
  if (typeof updateMaterialUserBrowserResponse === 'function') {
302
311
  updateMaterialUserBrowserResponse(userId);
303
312
  }
304
- Notification.success('저장되었습니다');
313
+ Notification.success(intl.formatMessage({
314
+ id: 'materialAssignment.notify.success'
315
+ }));
305
316
  _context3.next = 13;
306
317
  break;
307
318
  case 9:
308
319
  _context3.prev = 9;
309
320
  _context3.t0 = _context3["catch"](1);
310
321
  console.error(_context3.t0);
311
- Notification.error('오류가 발생했습니다.');
322
+ Notification.error(intl.formatMessage({
323
+ id: 'materialAssignment.notify.error'
324
+ }));
312
325
  case 13:
313
326
  _context3.prev = 13;
314
327
  setShowManualScoreEditModal(false);
@@ -365,17 +378,25 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
365
378
  children: [jsx(Text, {
366
379
  size: "tiny",
367
380
  role: "gray4",
368
- children: "\uC810\uC218"
381
+ children: intl.formatMessage({
382
+ id: 'materialAssignment.score'
383
+ })
369
384
  }), jsx(Text, {
370
385
  size: "small",
371
386
  role: "white",
372
- children: gradeResult ? "".concat((_c = (_b = gradeResult.manualScore) !== null && _b !== void 0 ? _b : gradeResult.avgCalcScore) !== null && _c !== void 0 ? _c : 0).concat(isScoreFinalized ? '(공개됨)' : '(비공개)') : '--'
387
+ children: gradeResult ? "".concat((_c = (_b = gradeResult.manualScore) !== null && _b !== void 0 ? _b : gradeResult.avgCalcScore) !== null && _c !== void 0 ? _c : 0).concat(isScoreFinalized ? intl.formatMessage({
388
+ id: 'materialAssignment.reveal'
389
+ }) : intl.formatMessage({
390
+ id: 'materialAssignment.private'
391
+ })) : '--'
373
392
  })]
374
393
  }), jsxs(StyledMaterialAssignmentAdminHeaderCell, {
375
394
  children: [jsx(Text, {
376
395
  size: "tiny",
377
396
  role: "gray4",
378
- children: "\uC81C\uCD9C \uC77C\uC2DC"
397
+ children: intl.formatMessage({
398
+ id: 'materialAssignment.table.column.lastSubmitDatetime'
399
+ })
379
400
  }), jsx(Text, {
380
401
  size: "small",
381
402
  role: "white",
@@ -391,7 +412,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
391
412
  var renderManualScoreEditButton = function renderManualScoreEditButton() {
392
413
  return jsx(Tooltip, {
393
414
  placement: "top",
394
- title: isUserSubmitted ? '제출 기한이 지난 이후 조정할 수 있습니다.' : '미제출인 경우 조정할 수 없습니다.',
415
+ title: intl.formatMessage({
416
+ id: isUserSubmitted ? 'materialAssignment.tooltip.manual-score-edit.submit' : 'materialAssignment.tooltip.manual-score-edit.not-submit'
417
+ }),
395
418
  visible: !isAssignmentClosed || !isUserSubmitted ? undefined : false,
396
419
  children: jsx(StyledMaterialAssignmentAdminManualScoreEditButtonWrapper, {
397
420
  disabled: !isAssignmentClosed || !isUserSubmitted,
@@ -401,7 +424,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
401
424
  role: "navy3",
402
425
  size: "tiny",
403
426
  onClick: handleManualScoreEditClick,
404
- children: "\uC810\uC218 \uC870\uC815\uD558\uAE30"
427
+ children: intl.formatMessage({
428
+ id: 'materialAssignment.button.manual-score-edit'
429
+ })
405
430
  })
406
431
  })
407
432
  });
@@ -419,13 +444,17 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
419
444
  role: "navy1",
420
445
  size: "small",
421
446
  lineHeight: "1.375rem",
422
- children: user ? "".concat(user.fullname, " \uB2D8\uC758 \uC810\uC218") : null
447
+ children: user ? "".concat(user.fullname, " ").concat(intl.formatMessage({
448
+ id: 'materialAssignment.username.subfix'
449
+ })) : null
423
450
  }), jsx(Hspace, {
424
451
  width: 0.25
425
452
  }), jsx(Tooltip, {
426
453
  useMaxWidth: true,
427
454
  placement: "top",
428
- title: "모든 채점 점수의 평균값이 반영된 종합 점수입니다. 평균값을 사용하지 않으려면 ‘조정하기'를 클릭해 직접 점수를 입력하세요.",
455
+ title: intl.formatMessage({
456
+ id: 'materialAssignment.tooltip.grade-result-button'
457
+ }),
429
458
  children: jsx(Icon, {
430
459
  icon: eilStatusInfo,
431
460
  color: base.color.navy1
@@ -435,7 +464,11 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
435
464
  }), jsx(Text, {
436
465
  bold: true,
437
466
  role: "white",
438
- children: gradeResult ? "".concat((_b = (_a = gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0).concat(isScoreFinalized ? '(공개됨)' : '(비공개)') : '--'
467
+ children: gradeResult ? "".concat((_b = (_a = gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0).concat(isScoreFinalized ? intl.formatMessage({
468
+ id: 'materialAssignment.reveal'
469
+ }) : intl.formatMessage({
470
+ id: 'materialAssignment.private'
471
+ })) : '--'
439
472
  })]
440
473
  }), renderManualScoreEditButton()]
441
474
  });
@@ -451,28 +484,36 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
451
484
  bold: true,
452
485
  role: "danger",
453
486
  size: "small",
454
- children: "\uC81C\uCD9C \uAE30\uD55C \uB9CC\uB8CC"
487
+ children: intl.formatMessage({
488
+ id: 'materialAssignment.status.deadlineExpired'
489
+ })
455
490
  });
456
491
  case isScoreFinalized:
457
492
  return jsx(Text, {
458
493
  bold: true,
459
494
  role: "lightpurple",
460
495
  size: "small",
461
- children: "\uCC44\uC810 \uC644\uB8CC"
496
+ children: intl.formatMessage({
497
+ id: 'materialAssignment.status.graded'
498
+ })
462
499
  });
463
500
  case isUserSubmitted:
464
501
  return jsx(Text, {
465
502
  bold: true,
466
503
  role: "success",
467
504
  size: "small",
468
- children: "\uC81C\uCD9C\uB428"
505
+ children: intl.formatMessage({
506
+ id: 'materialAssignment.status.submitted'
507
+ })
469
508
  });
470
509
  case !isUserSubmitted:
471
510
  return jsx(Text, {
472
511
  bold: true,
473
512
  role: "warning",
474
513
  size: "small",
475
- children: "\uBBF8\uC81C\uCD9C"
514
+ children: intl.formatMessage({
515
+ id: 'materialAssignment.status.noSubmitted'
516
+ })
476
517
  });
477
518
  }
478
519
  }();
@@ -516,13 +557,17 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
516
557
  children: jsxs("tbody", {
517
558
  children: [jsxs("tr", {
518
559
  children: [jsx("td", {
519
- children: "\uC0C1\uD0DC"
560
+ children: intl.formatMessage({
561
+ id: 'materialAssignment.table.column.status'
562
+ })
520
563
  }), jsx("td", {
521
564
  children: statusText
522
565
  })]
523
566
  }), jsxs("tr", {
524
567
  children: [jsx("td", {
525
- children: "\uACFC\uC81C \uC81C\uCD9C \uAE30\uD55C"
568
+ children: intl.formatMessage({
569
+ id: 'materialAssignment.table.column.deadlineDatetime'
570
+ })
526
571
  }), jsx("td", {
527
572
  children: jsx(FormattedDate, {
528
573
  value: materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.closeDatetime,
@@ -532,7 +577,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
532
577
  })]
533
578
  }), jsxs("tr", {
534
579
  children: [jsx("td", {
535
- children: "\uC81C\uCD9C \uC77C\uC2DC"
580
+ children: intl.formatMessage({
581
+ id: 'materialAssignment.table.column.lastSubmitDatetime'
582
+ })
536
583
  }), jsx("td", {
537
584
  children: userSubmission ? jsx(FormattedDate, {
538
585
  value: userSubmission.createdDatetime,
@@ -542,7 +589,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
542
589
  })]
543
590
  }), jsxs("tr", {
544
591
  children: [jsx("td", {
545
- children: "\uC5C5\uB85C\uB4DC\uB41C \uACFC\uC81C"
592
+ children: intl.formatMessage({
593
+ id: 'materialAssignment.table.column.uploadedAssignments'
594
+ })
546
595
  }), jsx("td", {
547
596
  children: submissionAttachment
548
597
  })]
@@ -565,17 +614,23 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
565
614
  bold: true,
566
615
  role: "white",
567
616
  lineHeight: 1.375,
568
- children: "\uCC44\uC810 \uD604\uD669"
617
+ children: intl.formatMessage({
618
+ id: 'materialAssignment.grade-list'
619
+ })
569
620
  }), jsx(Text, {
570
621
  block: true,
571
622
  size: "tiny",
572
623
  role: "navy3",
573
624
  lineHeight: 1.6,
574
- children: "\uCC44\uC810\uC644\uB8CC\uD55C \uCC44\uC810\uC790\uC758 \uC810\uC218\uC640 \uD53C\uB4DC\uBC31\uC744 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4."
625
+ children: intl.formatMessage({
626
+ id: 'materialAssignment.grade-list.description'
627
+ })
575
628
  })]
576
629
  }), jsx(Tooltip, {
577
630
  placement: "top",
578
- title: isUserSubmitted ? '제출 기한이 지난 이후 채점할 수 있습니다.' : '미제출인 경우 채점할 수 없습니다.',
631
+ title: intl.formatMessage({
632
+ id: isUserSubmitted ? 'materialAssignment.grade-list.tooltip.submitted' : 'materialAssignment.grade-list.tooltip.not-submitted'
633
+ }),
579
634
  visible: !isAssignmentClosed || !isUserSubmitted ? undefined : false,
580
635
  children: jsx("span", {
581
636
  children: jsx(Button, {
@@ -583,7 +638,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
583
638
  role: "lightpurple",
584
639
  disabled: !isAssignmentClosed || !isUserSubmitted,
585
640
  onClick: handleGradeEditClick,
586
- children: Boolean(myGrade) ? '내 채점 수정' : '내 채점 시작'
641
+ children: intl.formatMessage({
642
+ id: Boolean(myGrade) ? 'materialAssignment.edit-grading' : 'materialAssignment.start-grading'
643
+ })
587
644
  })
588
645
  })
589
646
  })]
@@ -591,15 +648,23 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
591
648
  height: 0.75
592
649
  }), jsx(TableNext, {
593
650
  dark: true,
594
- emptyMessage: "\uCC44\uC810 \uC644\uB8CC\uD55C \uCC44\uC810\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
651
+ emptyMessage: intl.formatMessage({
652
+ id: 'materialAssignment.table.empty-smg'
653
+ }),
595
654
  columns: [{
596
- Header: '채점자명',
655
+ Header: intl.formatMessage({
656
+ id: 'materialAssignment.table-col.fullname'
657
+ }),
597
658
  accessor: 'fullname'
598
659
  }, {
599
- Header: '과제 점수',
660
+ Header: intl.formatMessage({
661
+ id: 'materialAssignment.table.column.assignmentScore'
662
+ }),
600
663
  accessor: 'grade'
601
664
  }, {
602
- Header: '채점 일시',
665
+ Header: intl.formatMessage({
666
+ id: 'materialAssignment.table-col.grade-datetime'
667
+ }),
603
668
  accessor: 'created',
604
669
  textAlign: 'left'
605
670
  }],
@@ -610,7 +675,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
610
675
  noWrap: true,
611
676
  role: "navy0",
612
677
  size: "small",
613
- children: "".concat(grade.gradeUser.fullname).concat(grade.gradeUser.id === adminUserId ? '(나)' : '')
678
+ children: "".concat(grade.gradeUser.fullname).concat(grade.gradeUser.id === adminUserId ? intl.formatMessage({
679
+ id: 'materialAssignment.me'
680
+ }) : '')
614
681
  }), jsx(Hspace, {
615
682
  width: 0.25
616
683
  }), jsx(Text, {
@@ -674,16 +741,22 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
674
741
  return null;
675
742
  }
676
743
  return jsxs(Modal, {
677
- title: Boolean(myGrade) ? '내 채점 수정' : '과제 채점',
744
+ title: intl.formatMessage({
745
+ id: Boolean(myGrade) ? 'materialAssignment.edit-grading' : 'materialAssignment.grading-assignments'
746
+ }),
678
747
  footerButtons: [{
679
- label: '확인',
748
+ label: intl.formatMessage({
749
+ id: 'materialAssignment.modal.button.confirm'
750
+ }),
680
751
  size: 'small',
681
752
  role: 'primary',
682
753
  loading: gradeEditFormMethods.formState.isSubmitting,
683
754
  disabled: gradeEditFormMethods.formState.isSubmitting || !gradeEditFormMethods.formState.isValid,
684
755
  onClick: handleGradeEditSubmit
685
756
  }, {
686
- label: '취소',
757
+ label: intl.formatMessage({
758
+ id: 'materialAssignment.modal.button.cancel'
759
+ }),
687
760
  size: 'small',
688
761
  role: 'gray1',
689
762
  onClick: function onClick() {
@@ -697,7 +770,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
697
770
  bold: true,
698
771
  block: true,
699
772
  required: true,
700
- children: "\uC810\uC218"
773
+ children: intl.formatMessage({
774
+ id: 'materialAssignment.score'
775
+ })
701
776
  }), jsx(Vspace, {
702
777
  height: 0.5
703
778
  }), jsxs(Flex, {
@@ -726,18 +801,26 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
726
801
  bold: true,
727
802
  role: "gray9",
728
803
  size: "small",
729
- children: "\uC810"
804
+ children: intl.formatMessage({
805
+ id: 'materialAssignment.dot'
806
+ })
730
807
  }), jsx(Text, {
731
808
  role: "gray6",
732
809
  size: "small",
733
- children: ' / 100점 만점'
810
+ children: intl.formatMessage({
811
+ id: 'materialAssignment.table.column.totalPoint'
812
+ }, {
813
+ point: 100
814
+ })
734
815
  })]
735
816
  }), jsx(Vspace, {
736
817
  height: 1.25
737
818
  }), jsx(Label, {
738
819
  bold: true,
739
820
  block: true,
740
- children: "\uD53C\uB4DC\uBC31"
821
+ children: intl.formatMessage({
822
+ id: 'materialAssignment.table.header.feedback'
823
+ })
741
824
  }), jsx(Vspace, {
742
825
  height: 0.5
743
826
  }), jsx(Controller, {
@@ -763,9 +846,13 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
763
846
  return null;
764
847
  }
765
848
  return jsxs(Modal, {
766
- title: "\uCC44\uC810 \uACB0\uACFC \uD655\uC778",
849
+ title: intl.formatMessage({
850
+ id: 'materialAssignment.modal.grade-result.title'
851
+ }),
767
852
  footerButtons: [{
768
- label: '확인',
853
+ label: intl.formatMessage({
854
+ id: 'materialAssignment.modal.button.confirm'
855
+ }),
769
856
  size: 'small',
770
857
  role: 'primary',
771
858
  onClick: function onClick() {
@@ -779,7 +866,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
779
866
  bold: true,
780
867
  block: true,
781
868
  required: true,
782
- children: "\uC810\uC218"
869
+ children: intl.formatMessage({
870
+ id: 'materialAssignment.score'
871
+ })
783
872
  }), jsx(Vspace, {
784
873
  height: 0.5
785
874
  }), jsxs(Flex, {
@@ -796,18 +885,26 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
796
885
  bold: true,
797
886
  role: "gray9",
798
887
  size: "small",
799
- children: "\uC810"
888
+ children: intl.formatMessage({
889
+ id: 'materialAssignment.dot'
890
+ })
800
891
  }), jsx(Text, {
801
892
  role: "gray6",
802
893
  size: "small",
803
- children: ' / 100점 만점'
894
+ children: intl.formatMessage({
895
+ id: 'materialAssignment.table.column.totalPoint'
896
+ }, {
897
+ point: 100
898
+ })
804
899
  })]
805
900
  }), jsx(Vspace, {
806
901
  height: 1.25
807
902
  }), jsx(Label, {
808
903
  bold: true,
809
904
  block: true,
810
- children: "\uD53C\uB4DC\uBC31"
905
+ children: intl.formatMessage({
906
+ id: 'materialAssignment.table.header.feedback'
907
+ })
811
908
  }), jsx(Vspace, {
812
909
  height: 0.5
813
910
  }), jsx(StyledMaterialAssignmentAdminTextareaWrapper, {
@@ -825,17 +922,23 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
825
922
  return null;
826
923
  }
827
924
  return jsxs(Modal, {
828
- title: "\uCC44\uC810 \uC0AD\uC81C",
925
+ title: intl.formatMessage({
926
+ id: 'materialAssignment.modal.delete-grading'
927
+ }),
829
928
  width: "narrow",
830
929
  footerButtons: [{
831
- label: '확인',
930
+ label: intl.formatMessage({
931
+ id: 'materialAssignment.modal.button.confirm'
932
+ }),
832
933
  size: 'small',
833
934
  role: 'primary',
834
935
  loading: gradeDeleteStatus === 'pending',
835
936
  disabled: gradeDeleteStatus === 'pending',
836
937
  onClick: handleGradeDeleteSubmit
837
938
  }, {
838
- label: '취소',
939
+ label: intl.formatMessage({
940
+ id: 'materialAssignment.modal.button.cancel'
941
+ }),
839
942
  size: 'small',
840
943
  role: 'gray1',
841
944
  onClick: function onClick() {
@@ -847,15 +950,21 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
847
950
  },
848
951
  children: [jsx(Text, {
849
952
  role: "gray9",
850
- children: "\uC0AD\uC81C\uB41C \uC810\uC218\uC640 \uD53C\uB4DC\uBC31\uC740 \uB2E4\uC2DC \uBCF5\uAD6C\uB420 \uC218 \uC5C6\uC73C\uBA70 \uD559\uC0DD\uC758 \uD3C9\uADE0 \uC810\uC218\uAC00 \uBCC0\uACBD\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4."
953
+ children: intl.formatMessage({
954
+ id: 'materialAssignment.modal.delete-grading.description'
955
+ })
851
956
  }), jsx(Vspace, {
852
957
  height: 0.75
853
958
  }), jsx(TableNext, {
854
959
  columns: [{
855
- Header: '채점자명',
960
+ Header: intl.formatMessage({
961
+ id: 'materialAssignment.table-col.fullname'
962
+ }),
856
963
  accessor: 'fullname'
857
964
  }, {
858
- Header: '최종 점수',
965
+ Header: intl.formatMessage({
966
+ id: 'materialAssignment.final-score'
967
+ }),
859
968
  accessor: 'score'
860
969
  }],
861
970
  data: [{
@@ -885,17 +994,23 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
885
994
  return null;
886
995
  }
887
996
  return jsxs(Modal, {
888
- title: "\uC810\uC218 \uC870\uC815",
997
+ title: intl.formatMessage({
998
+ id: 'materialAssignment.modal.edit-grading'
999
+ }),
889
1000
  width: "narrow",
890
1001
  footerButtons: [{
891
- label: '확인',
1002
+ label: intl.formatMessage({
1003
+ id: 'materialAssignment.modal.button.confirm'
1004
+ }),
892
1005
  size: 'small',
893
1006
  role: 'primary',
894
1007
  loading: manualScoreEditFormMethods.formState.isSubmitting,
895
1008
  disabled: manualScoreEditFormMethods.formState.isSubmitting || !manualScoreEditFormMethods.formState.isValid,
896
1009
  onClick: handleManualScoreEditSubmit
897
1010
  }, {
898
- label: '취소',
1011
+ label: intl.formatMessage({
1012
+ id: 'materialAssignment.modal.button.cancel'
1013
+ }),
899
1014
  size: 'small',
900
1015
  role: 'gray1',
901
1016
  onClick: function onClick() {
@@ -907,7 +1022,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
907
1022
  },
908
1023
  children: [jsx(Alert, {
909
1024
  role: "warning",
910
- children: "\uC810\uC218 \uC870\uC815 \uC774\uD6C4 \uB2E4\uC2DC \uD3C9\uADE0\uAC12\uC73C\uB85C \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC73C\uB2C8 \uC720\uC758\uD574 \uC8FC\uC138\uC694."
1025
+ children: intl.formatMessage({
1026
+ id: 'materialAssignment.modal.edit-grading.alert'
1027
+ })
911
1028
  }), jsx(Vspace, {
912
1029
  height: 1
913
1030
  }), jsxs(Flex, {
@@ -917,7 +1034,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
917
1034
  size: "small",
918
1035
  width: "xsmall",
919
1036
  type: "number",
920
- label: "\uC774\uC804 \uC810\uC218",
1037
+ label: intl.formatMessage({
1038
+ id: 'materialAssignment.previous-score'
1039
+ }),
921
1040
  value: (_b = (_a = gradeResult === null || gradeResult === void 0 ? void 0 : gradeResult.manualScore) !== null && _a !== void 0 ? _a : gradeResult === null || gradeResult === void 0 ? void 0 : gradeResult.avgCalcScore) !== null && _b !== void 0 ? _b : 0
922
1041
  }), jsx(Hspace, {
923
1042
  width: 1
@@ -941,7 +1060,9 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
941
1060
  size: "small",
942
1061
  width: "xsmall",
943
1062
  type: "number",
944
- label: "\uC870\uC815 \uC810\uC218"
1063
+ label: intl.formatMessage({
1064
+ id: 'materialAssignment.adjusted-score'
1065
+ })
945
1066
  }));
946
1067
  }
947
1068
  }), jsx(Hspace, {
@@ -950,11 +1071,17 @@ var MaterialAssignmentAdminContent = forwardRef(function (_ref, ref) {
950
1071
  bold: true,
951
1072
  role: "gray9",
952
1073
  size: "small",
953
- children: "\uC810"
1074
+ children: intl.formatMessage({
1075
+ id: 'materialAssignment.dot'
1076
+ })
954
1077
  }), jsx(Text, {
955
1078
  role: "gray6",
956
1079
  size: "small",
957
- children: ' / 100점 만점'
1080
+ children: intl.formatMessage({
1081
+ id: 'materialAssignment.table.column.totalPoint'
1082
+ }, {
1083
+ point: 100
1084
+ })
958
1085
  })]
959
1086
  })]
960
1087
  });