touchstudy-core 0.1.154 → 0.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Tables/configs/interfaces.d.ts +1 -1
- package/dist/components/TinyMCE/TinyEditor.d.ts +1 -2
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +1 -0
- package/dist/index.js +100 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +100 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
@@ -8,7 +8,7 @@ export interface VirtualTableViewProps {
|
|
8
8
|
columnCount: number;
|
9
9
|
listHeight?: number;
|
10
10
|
listWidth?: number;
|
11
|
-
containerRef
|
11
|
+
containerRef: RefObject<HTMLDivElement>;
|
12
12
|
multiGridRef?: RefObject<MultiGrid>;
|
13
13
|
overscanRowCount?: number;
|
14
14
|
overscanColumnCount?: number;
|
@@ -5,7 +5,6 @@ declare type Props = {
|
|
5
5
|
initValue: string;
|
6
6
|
onChange: any;
|
7
7
|
disabled?: boolean;
|
8
|
-
ref?: any;
|
9
8
|
};
|
10
|
-
declare const TinyEditor: ({
|
9
|
+
declare const TinyEditor: ({ disabled, onChange, initValue, config }: Props) => React.JSX.Element;
|
11
10
|
export default TinyEditor;
|
@@ -2,6 +2,7 @@ import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { FormikProps } from "formik";
|
3
3
|
import { ArticleRequest, TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends PropsWithChildren, FormikProps<TextbookRequest> {
|
5
|
+
isMath: boolean;
|
5
6
|
expandedIndex: number;
|
6
7
|
data: ArticleRequest;
|
7
8
|
path: string;
|
package/dist/index.js
CHANGED
@@ -426,6 +426,8 @@ var answer_count = "답변 수";
|
|
426
426
|
var question_count = "문제 갯수";
|
427
427
|
var multi_choice = "여러 개임";
|
428
428
|
var category = "문항 카테고리";
|
429
|
+
var korean_category = "지문 영역";
|
430
|
+
var korean_subcateogry = "지문 세부 영역";
|
429
431
|
var _category = "카테고리";
|
430
432
|
var score = "점수";
|
431
433
|
var enter_score = "점수 입력";
|
@@ -576,13 +578,14 @@ var go_to_attendance_list = "출석부로 이동";
|
|
576
578
|
var new_subject = "새로운 주제";
|
577
579
|
var subjects = "과목";
|
578
580
|
var subject = "주제";
|
581
|
+
var korean_subject = "키워드";
|
579
582
|
var textbooks = "교과서";
|
580
583
|
var exam_list = "시험 목록";
|
581
584
|
var textbook_title = "교과서 제목";
|
582
|
-
var textbook_subject = "
|
585
|
+
var textbook_subject = "과목";
|
583
586
|
var total_chapters = "총 장";
|
584
587
|
var enter_student_name_to_search = "검색할 학생 이름을 입력하세요";
|
585
|
-
var create_textbook = "
|
588
|
+
var create_textbook = "새 교재 만들기";
|
586
589
|
var view_textbook = "교과서 보기";
|
587
590
|
var add_chapter = "장 추가";
|
588
591
|
var add_subchapter = "하위 장 추가";
|
@@ -840,6 +843,7 @@ var hint = "힌트";
|
|
840
843
|
var save_and_add_next_question = "저장하고 다음 질문 추가";
|
841
844
|
var question_text = "질문 텍스트";
|
842
845
|
var article = "기사";
|
846
|
+
var korean_article = "지문/작품 추가";
|
843
847
|
var notifications = "알림";
|
844
848
|
var exams = "시험";
|
845
849
|
var questions = "질문";
|
@@ -1241,6 +1245,7 @@ var page_to_start_with = "시작할 페이지";
|
|
1241
1245
|
var posted_on = "게시일";
|
1242
1246
|
var number_of_participants = "참가자 수";
|
1243
1247
|
var chapter = "챕터";
|
1248
|
+
var korean_chapter = "대단원 추가";
|
1244
1249
|
var published = "Published";
|
1245
1250
|
var privated = "Privated";
|
1246
1251
|
var solution_results = "풀이 결과";
|
@@ -1391,9 +1396,11 @@ var textbook = {
|
|
1391
1396
|
information: "교과서 정보"
|
1392
1397
|
};
|
1393
1398
|
var question_group = "질문 그룹";
|
1399
|
+
var korean_question_group = "지문/작품 추가";
|
1394
1400
|
var group_n = "그룹 {{n}}";
|
1395
1401
|
var sub_category = "하위 카테고리";
|
1396
1402
|
var article_n = "문항 {{n}}";
|
1403
|
+
var korean_article_n = "지문 {{n}}";
|
1397
1404
|
var math = "수학";
|
1398
1405
|
var korea = "한국";
|
1399
1406
|
var fix_this_information_for_this_book = "이 책에 대한 정보 수정";
|
@@ -1453,7 +1460,7 @@ var today_class = "오늘 수업";
|
|
1453
1460
|
var unit_number = "대단원 {{number}}";
|
1454
1461
|
var sub_unit_number = "소단원 {{number}}";
|
1455
1462
|
var text_group_n = "지문 그룹 {{n}}";
|
1456
|
-
var text_detail_n = "
|
1463
|
+
var text_detail_n = "{{n}}번";
|
1457
1464
|
var question_group_n = "문제 그룹 {{n}}";
|
1458
1465
|
var placeholder_teacher_selector = "선생님을 검색하려면 최소 2글자를 입력하세요.";
|
1459
1466
|
var teacher_personal_textbook = "교사의 개인 교과서";
|
@@ -1461,7 +1468,7 @@ var textbook_owner_email_is_required = "교재 소유자의 이메일은 필수
|
|
1461
1468
|
var invalid_textbook_owner_email_address = "유효하지 않은 교재 소유자 이메일 주소입니다";
|
1462
1469
|
var textbook_owner_academy_is_required = "교재 소유자의 학원은 필수입니다";
|
1463
1470
|
var textbook_owner_course_is_required = "교재 소유자의 수업은 필수입니다";
|
1464
|
-
var start_order = "
|
1471
|
+
var start_order = "새 지문 시작 번호";
|
1465
1472
|
var student_notice_notes = "학생 공지/노트";
|
1466
1473
|
var note = "메모";
|
1467
1474
|
var student_parents = "학생/학부모";
|
@@ -1473,6 +1480,8 @@ var order_matters = "순서 상관 있음";
|
|
1473
1480
|
var order_does_not_matter = "순서 상관 없음";
|
1474
1481
|
var synonym_processing = "답 이음동의어 처리";
|
1475
1482
|
var compare_type = "비교 유형";
|
1483
|
+
var textbook_name = "교재 이름";
|
1484
|
+
var korean_language = "국어";
|
1476
1485
|
var answer_cannot_be_empty = "답변은 비워둘 수 없습니다";
|
1477
1486
|
var lang_ko = {
|
1478
1487
|
problem_solving: problem_solving,
|
@@ -1559,6 +1568,8 @@ var lang_ko = {
|
|
1559
1568
|
question_count: question_count,
|
1560
1569
|
multi_choice: multi_choice,
|
1561
1570
|
category: category,
|
1571
|
+
korean_category: korean_category,
|
1572
|
+
korean_subcateogry: korean_subcateogry,
|
1562
1573
|
_category: _category,
|
1563
1574
|
score: score,
|
1564
1575
|
enter_score: enter_score,
|
@@ -1711,6 +1722,7 @@ var lang_ko = {
|
|
1711
1722
|
new_subject: new_subject,
|
1712
1723
|
subjects: subjects,
|
1713
1724
|
subject: subject,
|
1725
|
+
korean_subject: korean_subject,
|
1714
1726
|
textbooks: textbooks,
|
1715
1727
|
exam_list: exam_list,
|
1716
1728
|
textbook_title: textbook_title,
|
@@ -1964,6 +1976,7 @@ var lang_ko = {
|
|
1964
1976
|
save_and_add_next_question: save_and_add_next_question,
|
1965
1977
|
question_text: question_text,
|
1966
1978
|
article: article,
|
1979
|
+
korean_article: korean_article,
|
1967
1980
|
notifications: notifications,
|
1968
1981
|
exams: exams,
|
1969
1982
|
questions: questions,
|
@@ -2319,7 +2332,7 @@ var lang_ko = {
|
|
2319
2332
|
chapter_number: chapter_number,
|
2320
2333
|
category_required: category_required,
|
2321
2334
|
subject_required: subject_required,
|
2322
|
-
"public": "
|
2335
|
+
"public": "기출 문제",
|
2323
2336
|
max_is_12: max_is_12,
|
2324
2337
|
textbook_owners: textbook_owners,
|
2325
2338
|
author: author,
|
@@ -2356,6 +2369,7 @@ var lang_ko = {
|
|
2356
2369
|
posted_on: posted_on,
|
2357
2370
|
number_of_participants: number_of_participants,
|
2358
2371
|
chapter: chapter,
|
2372
|
+
korean_chapter: korean_chapter,
|
2359
2373
|
published: published,
|
2360
2374
|
privated: privated,
|
2361
2375
|
solution_results: solution_results,
|
@@ -2503,9 +2517,11 @@ var lang_ko = {
|
|
2503
2517
|
are_you_sure_you_want_to_delete_the_question_group: are_you_sure_you_want_to_delete_the_question_group,
|
2504
2518
|
textbook: textbook,
|
2505
2519
|
question_group: question_group,
|
2520
|
+
korean_question_group: korean_question_group,
|
2506
2521
|
group_n: group_n,
|
2507
2522
|
sub_category: sub_category,
|
2508
2523
|
article_n: article_n,
|
2524
|
+
korean_article_n: korean_article_n,
|
2509
2525
|
math: math,
|
2510
2526
|
korea: korea,
|
2511
2527
|
fix_this_information_for_this_book: fix_this_information_for_this_book,
|
@@ -2585,6 +2601,8 @@ var lang_ko = {
|
|
2585
2601
|
order_does_not_matter: order_does_not_matter,
|
2586
2602
|
synonym_processing: synonym_processing,
|
2587
2603
|
compare_type: compare_type,
|
2604
|
+
textbook_name: textbook_name,
|
2605
|
+
korean_language: korean_language,
|
2588
2606
|
answer_cannot_be_empty: answer_cannot_be_empty
|
2589
2607
|
};
|
2590
2608
|
|
@@ -2680,6 +2698,7 @@ var easy$1 = "Easy";
|
|
2680
2698
|
var intermediate$1 = "Intermediate";
|
2681
2699
|
var difficult$1 = "Difficult";
|
2682
2700
|
var article$1 = "Article";
|
2701
|
+
var korean_article$1 = "Article";
|
2683
2702
|
var correct_answer$1 = "Correct answer";
|
2684
2703
|
var mark$1 = "Mark";
|
2685
2704
|
var answer$1 = "Answer";
|
@@ -2690,6 +2709,8 @@ var update_question_success$1 = "Question is updated successfully";
|
|
2690
2709
|
var number_of_answers$1 = "Number of answers";
|
2691
2710
|
var correct_answers$1 = "Correct answers";
|
2692
2711
|
var category$1 = "Category";
|
2712
|
+
var korean_category$1 = "Category";
|
2713
|
+
var korean_subcateogry$1 = "Subcategory";
|
2693
2714
|
var _category$1 = "Category";
|
2694
2715
|
var score$1 = "Score";
|
2695
2716
|
var enter_title$1 = "Enter title";
|
@@ -2845,6 +2866,7 @@ var go_to_attendance_list$1 = "Go to attendance list";
|
|
2845
2866
|
var new_subject$1 = "New Subject";
|
2846
2867
|
var subjects$1 = "Subjects";
|
2847
2868
|
var subject$1 = "Subject";
|
2869
|
+
var korean_subject$1 = "Subject";
|
2848
2870
|
var textbooks$1 = "Textbooks";
|
2849
2871
|
var exam_list$1 = "Exam List";
|
2850
2872
|
var textbook_title$1 = "Textbook title";
|
@@ -3496,6 +3518,7 @@ var page_from_required$1 = "Page from is required";
|
|
3496
3518
|
var page_to_required$1 = "Page to is required";
|
3497
3519
|
var page_to_must_be_greater_than_or_equal_to_page_from$1 = "Page To must be greater than or equal to Page From";
|
3498
3520
|
var chapter$1 = "Chapter";
|
3521
|
+
var korean_chapter$1 = "Chapter";
|
3499
3522
|
var chapter_number$1 = "Chapter {{number}}";
|
3500
3523
|
var category_required$1 = "Category is required";
|
3501
3524
|
var subject_required$1 = "Subject is required";
|
@@ -3637,9 +3660,11 @@ var textbook$1 = {
|
|
3637
3660
|
information: "Textbook information"
|
3638
3661
|
};
|
3639
3662
|
var question_group$1 = "Question group";
|
3663
|
+
var korean_question_group$1 = "Question group";
|
3640
3664
|
var group_n$1 = "Group {{n}}";
|
3641
3665
|
var sub_category$1 = "Sub category";
|
3642
3666
|
var article_n$1 = "Article {{n}}";
|
3667
|
+
var korean_article_n$1 = "Article {{n}}";
|
3643
3668
|
var math$1 = "Math";
|
3644
3669
|
var korea$1 = "Korea";
|
3645
3670
|
var fix_this_information_for_this_book$1 = "Fix this information for this book";
|
@@ -3719,6 +3744,8 @@ var order_matters$1 = "Order matters";
|
|
3719
3744
|
var order_does_not_matter$1 = "Order doesn't matter";
|
3720
3745
|
var synonym_processing$1 = "Answer Synonym processing";
|
3721
3746
|
var compare_type$1 = "Compare Type";
|
3747
|
+
var textbook_name$1 = "Textbook name";
|
3748
|
+
var korean_language$1 = "Korean";
|
3722
3749
|
var answer_cannot_be_empty$1 = "Answer cannot be empty";
|
3723
3750
|
var lang_en = {
|
3724
3751
|
problem_solving: problem_solving$1,
|
@@ -3816,6 +3843,7 @@ var lang_en = {
|
|
3816
3843
|
intermediate: intermediate$1,
|
3817
3844
|
difficult: difficult$1,
|
3818
3845
|
article: article$1,
|
3846
|
+
korean_article: korean_article$1,
|
3819
3847
|
correct_answer: correct_answer$1,
|
3820
3848
|
mark: mark$1,
|
3821
3849
|
answer: answer$1,
|
@@ -3826,6 +3854,8 @@ var lang_en = {
|
|
3826
3854
|
number_of_answers: number_of_answers$1,
|
3827
3855
|
correct_answers: correct_answers$1,
|
3828
3856
|
category: category$1,
|
3857
|
+
korean_category: korean_category$1,
|
3858
|
+
korean_subcateogry: korean_subcateogry$1,
|
3829
3859
|
_category: _category$1,
|
3830
3860
|
score: score$1,
|
3831
3861
|
enter_title: enter_title$1,
|
@@ -3982,6 +4012,7 @@ var lang_en = {
|
|
3982
4012
|
new_subject: new_subject$1,
|
3983
4013
|
subjects: subjects$1,
|
3984
4014
|
subject: subject$1,
|
4015
|
+
korean_subject: korean_subject$1,
|
3985
4016
|
textbooks: textbooks$1,
|
3986
4017
|
exam_list: exam_list$1,
|
3987
4018
|
textbook_title: textbook_title$1,
|
@@ -4612,6 +4643,7 @@ var lang_en = {
|
|
4612
4643
|
page_to_required: page_to_required$1,
|
4613
4644
|
page_to_must_be_greater_than_or_equal_to_page_from: page_to_must_be_greater_than_or_equal_to_page_from$1,
|
4614
4645
|
chapter: chapter$1,
|
4646
|
+
korean_chapter: korean_chapter$1,
|
4615
4647
|
chapter_number: chapter_number$1,
|
4616
4648
|
category_required: category_required$1,
|
4617
4649
|
subject_required: subject_required$1,
|
@@ -4751,9 +4783,11 @@ var lang_en = {
|
|
4751
4783
|
are_you_sure_you_want_to_delete_the_question_group: are_you_sure_you_want_to_delete_the_question_group$1,
|
4752
4784
|
textbook: textbook$1,
|
4753
4785
|
question_group: question_group$1,
|
4786
|
+
korean_question_group: korean_question_group$1,
|
4754
4787
|
group_n: group_n$1,
|
4755
4788
|
sub_category: sub_category$1,
|
4756
4789
|
article_n: article_n$1,
|
4790
|
+
korean_article_n: korean_article_n$1,
|
4757
4791
|
math: math$1,
|
4758
4792
|
korea: korea$1,
|
4759
4793
|
fix_this_information_for_this_book: fix_this_information_for_this_book$1,
|
@@ -4833,6 +4867,8 @@ var lang_en = {
|
|
4833
4867
|
order_does_not_matter: order_does_not_matter$1,
|
4834
4868
|
synonym_processing: synonym_processing$1,
|
4835
4869
|
compare_type: compare_type$1,
|
4870
|
+
textbook_name: textbook_name$1,
|
4871
|
+
korean_language: korean_language$1,
|
4836
4872
|
answer_cannot_be_empty: answer_cannot_be_empty$1
|
4837
4873
|
};
|
4838
4874
|
|
@@ -10191,12 +10227,12 @@ var MathTinyEditor = function MathTinyEditor(_ref) {
|
|
10191
10227
|
};
|
10192
10228
|
|
10193
10229
|
var TinyEditor = function TinyEditor(_ref) {
|
10194
|
-
var
|
10195
|
-
_ref$disabled = _ref.disabled,
|
10230
|
+
var _ref$disabled = _ref.disabled,
|
10196
10231
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
10197
10232
|
onChange = _ref.onChange,
|
10198
10233
|
initValue = _ref.initValue,
|
10199
10234
|
config = _ref.config;
|
10235
|
+
var isFirstChange = React.useRef(true);
|
10200
10236
|
React.useEffect(function () {
|
10201
10237
|
if (window.tinymce) {
|
10202
10238
|
window.tinymce = tinymce;
|
@@ -10205,20 +10241,24 @@ var TinyEditor = function TinyEditor(_ref) {
|
|
10205
10241
|
var options = {
|
10206
10242
|
height: 150,
|
10207
10243
|
menubar: false,
|
10208
|
-
|
10209
|
-
|
10210
|
-
|
10211
|
-
plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'visualblocks', 'wordcount', 'checklist', 'mediaembed', 'casechange', 'export', 'formatpainter', 'pageembed', 'a11ychecker', 'tinymcespellchecker', 'permanentpen', 'powerpaste', 'advtable', 'advcode', 'editimage', 'advtemplate', 'ai', 'mentions', 'tinycomments', 'tableofcontents', 'footnotes', 'mergetags', 'autocorrect', 'typography', 'inlinecss', 'markdown', 'importword', 'exportword', 'exportpdf'],
|
10212
|
-
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat tiny_mce_wiris_formulaEditor tiny_mce_wiris_formulaEditorChemistry',
|
10244
|
+
readonly: false,
|
10245
|
+
plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'visualblocks', 'wordcount'],
|
10246
|
+
toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck typography | align lineheight | checklist numlist bullist indent outdent | emoticons charmap | removeformat',
|
10213
10247
|
branding: false,
|
10214
10248
|
extended_valid_elements: '*[.*]'
|
10215
10249
|
};
|
10250
|
+
var handleChange = function handleChange(value, _) {
|
10251
|
+
if (isFirstChange.current) {
|
10252
|
+
isFirstChange.current = false;
|
10253
|
+
return;
|
10254
|
+
}
|
10255
|
+
onChange(value);
|
10256
|
+
};
|
10216
10257
|
return React__default.createElement(tinymceReact.Editor, {
|
10217
|
-
ref: ref,
|
10218
10258
|
disabled: disabled,
|
10219
10259
|
init: config || options,
|
10220
10260
|
initialValue: initValue,
|
10221
|
-
|
10261
|
+
onEditorChange: handleChange
|
10222
10262
|
});
|
10223
10263
|
};
|
10224
10264
|
|
@@ -24435,6 +24475,7 @@ var AttendanceCourseTable = function AttendanceCourseTable(_ref) {
|
|
24435
24475
|
return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
|
24436
24476
|
});
|
24437
24477
|
var dataString = JSON.stringify(data);
|
24478
|
+
var containerRef = React.useRef(null);
|
24438
24479
|
var handleCheckInLesson = function handleCheckInLesson(lesson, studentId) {
|
24439
24480
|
if (isAdmin) return;
|
24440
24481
|
onCheckInLesson(lesson, studentId);
|
@@ -24492,15 +24533,43 @@ var AttendanceCourseTable = function AttendanceCourseTable(_ref) {
|
|
24492
24533
|
}, (attendance === null || attendance === void 0 ? void 0 : attendance.status) === StudentAttendanceStatus.Late ? React__default.createElement(AlertCircleFill, null) : (attendance === null || attendance === void 0 ? void 0 : attendance.status) === StudentAttendanceStatus.Attended ? React__default.createElement(CheckCircleFill, null) : React__default.createElement(CloseCircleFill, null))));
|
24493
24534
|
};
|
24494
24535
|
var columnCount = data.length;
|
24536
|
+
var multiGridRef = React.useRef(null);
|
24537
|
+
React.useEffect(function () {
|
24538
|
+
var handleResize = function handleResize() {
|
24539
|
+
var _multiGridRef$current;
|
24540
|
+
(_multiGridRef$current = multiGridRef.current) === null || _multiGridRef$current === void 0 ? void 0 : _multiGridRef$current.invalidateCellSizeAfterRender();
|
24541
|
+
};
|
24542
|
+
window.addEventListener("resize", handleResize);
|
24543
|
+
return function () {
|
24544
|
+
window.removeEventListener("resize", handleResize);
|
24545
|
+
};
|
24546
|
+
}, []);
|
24547
|
+
var columnWidth = function columnWidth(params, cache) {
|
24548
|
+
if (!containerRef.current || params.index < columnCount - 1) return cache.columnWidth(params);
|
24549
|
+
var containerWidth = containerRef.current.clientWidth;
|
24550
|
+
var currentWidth = cache.columnWidth(params);
|
24551
|
+
var totalWidth = 0;
|
24552
|
+
for (var index = 0; index < params.index; index++) {
|
24553
|
+
var elementWidth = cache.columnWidth({
|
24554
|
+
index: index
|
24555
|
+
});
|
24556
|
+
totalWidth += elementWidth;
|
24557
|
+
}
|
24558
|
+
if (totalWidth + currentWidth < containerWidth) return containerWidth - totalWidth;
|
24559
|
+
return currentWidth;
|
24560
|
+
};
|
24495
24561
|
return React__default.createElement(VirtualTableView, {
|
24496
24562
|
loading: false,
|
24563
|
+
multiGridRef: multiGridRef,
|
24564
|
+
containerRef: containerRef,
|
24497
24565
|
containerProps: containerProps,
|
24498
24566
|
listHeight: listHeight,
|
24499
24567
|
listWidth: listWidth,
|
24500
24568
|
renderItem: renderItem,
|
24501
24569
|
columnCount: columnCount,
|
24502
24570
|
itemsCount: 2,
|
24503
|
-
dataString: dataString
|
24571
|
+
dataString: dataString,
|
24572
|
+
columnWidth: columnWidth
|
24504
24573
|
});
|
24505
24574
|
};
|
24506
24575
|
|
@@ -32479,9 +32548,8 @@ var NotificationForm = function NotificationForm(_ref) {
|
|
32479
32548
|
var handleChangeType = function handleChangeType(e) {
|
32480
32549
|
formikProp.setFieldValue("type", e === null || e === void 0 ? void 0 : e.value);
|
32481
32550
|
};
|
32482
|
-
var onChangeTextEditor = function onChangeTextEditor(
|
32483
|
-
|
32484
|
-
formikProp.setFieldValue("content", content);
|
32551
|
+
var onChangeTextEditor = function onChangeTextEditor(value) {
|
32552
|
+
formikProp.setFieldValue("content", value);
|
32485
32553
|
};
|
32486
32554
|
var onchangeClass = function onchangeClass(e) {
|
32487
32555
|
setClassOptions(e);
|
@@ -33688,7 +33756,8 @@ var isSequentialQuestionGroups = function isSequentialQuestionGroups(questionGro
|
|
33688
33756
|
|
33689
33757
|
var _ = _$8;
|
33690
33758
|
var ArticleBlock = function ArticleBlock(_ref) {
|
33691
|
-
var
|
33759
|
+
var isMath = _ref.isMath,
|
33760
|
+
errors = _ref.errors,
|
33692
33761
|
expandedIndex = _ref.expandedIndex,
|
33693
33762
|
data = _ref.data,
|
33694
33763
|
categories = _ref.categories,
|
@@ -33704,7 +33773,7 @@ var ArticleBlock = function ArticleBlock(_ref) {
|
|
33704
33773
|
onCloseCategoryMenu = _ref.onCloseCategoryMenu;
|
33705
33774
|
var _useTranslation = reactI18next.useTranslation(),
|
33706
33775
|
t = _useTranslation.t;
|
33707
|
-
var title = t("article_n", {
|
33776
|
+
var title = t(isMath ? "article_n" : "korean_article_n", {
|
33708
33777
|
n: expandedIndex + 1
|
33709
33778
|
});
|
33710
33779
|
var handleClickDeleteArticle = function handleClickDeleteArticle(e) {
|
@@ -33787,7 +33856,7 @@ var ArticleBlock = function ArticleBlock(_ref) {
|
|
33787
33856
|
}, React__default.createElement(material.FormLabel, {
|
33788
33857
|
htmlFor: "category",
|
33789
33858
|
className: "form-label"
|
33790
|
-
}, t("category")), React__default.createElement(formik.Field, {
|
33859
|
+
}, t(isMath ? "category" : "korean_category")), React__default.createElement(formik.Field, {
|
33791
33860
|
name: path + ".categories[0]",
|
33792
33861
|
render: function render() {
|
33793
33862
|
var _data$categoryOptions2;
|
@@ -33830,7 +33899,7 @@ var ArticleBlock = function ArticleBlock(_ref) {
|
|
33830
33899
|
}, React__default.createElement(material.FormLabel, {
|
33831
33900
|
htmlFor: "category",
|
33832
33901
|
className: "form-label"
|
33833
|
-
}, t("sub_category")), React__default.createElement(formik.Field, {
|
33902
|
+
}, t(isMath ? "sub_category" : "korean_subcategory")), React__default.createElement(formik.Field, {
|
33834
33903
|
name: path + ".categories[1]",
|
33835
33904
|
render: function render() {
|
33836
33905
|
var _data$categoryOptions3;
|
@@ -33908,7 +33977,7 @@ var ArticleBlock = function ArticleBlock(_ref) {
|
|
33908
33977
|
}, React__default.createElement(material.FormLabel, {
|
33909
33978
|
htmlFor: "tag",
|
33910
33979
|
className: "form-label"
|
33911
|
-
}, t("subject")), React__default.createElement(formik.Field, {
|
33980
|
+
}, t(isMath ? "subject" : "korean_subject")), React__default.createElement(formik.Field, {
|
33912
33981
|
name: path + ".tag",
|
33913
33982
|
render: function render(_ref4) {
|
33914
33983
|
var field = _ref4.field;
|
@@ -33948,7 +34017,7 @@ var isEqual = function isEqual(prev, next) {
|
|
33948
34017
|
var nextCategories = isNextMatched ? next.categories : undefined;
|
33949
34018
|
var prevCategoryError = _.get(prev.errors, prev.path + ".categories");
|
33950
34019
|
var nextCategoryError = _.get(next.errors, next.path + ".categories");
|
33951
|
-
return prevOptionKey === nextOptionKey && prevIsLoadingCategories === nextIsLoadingCategories && JSON.stringify(prev.data) === JSON.stringify(next.data) && JSON.stringify(prevCategories) === JSON.stringify(nextCategories) && prev.path === next.path && prev.expandedIndex == next.expandedIndex && prev.disabled === next.disabled && prev.onOpenCategoryMenu == next.onOpenCategoryMenu && prev.onOpenSubCategoryMenu == next.onOpenSubCategoryMenu && prevCategoryError === nextCategoryError;
|
34020
|
+
return prevOptionKey === nextOptionKey && prevIsLoadingCategories === nextIsLoadingCategories && JSON.stringify(prev.data) === JSON.stringify(next.data) && JSON.stringify(prevCategories) === JSON.stringify(nextCategories) && prev.path === next.path && prev.expandedIndex == next.expandedIndex && prev.disabled === next.disabled && prev.isMath === next.isMath && prev.onOpenCategoryMenu == next.onOpenCategoryMenu && prev.onOpenSubCategoryMenu == next.onOpenSubCategoryMenu && prevCategoryError === nextCategoryError;
|
33952
34021
|
};
|
33953
34022
|
var ArticleBlock$1 = React.memo(ArticleBlock, isEqual);
|
33954
34023
|
|
@@ -34528,6 +34597,7 @@ var QuestionGroupBlockBody = function QuestionGroupBlockBody(_ref) {
|
|
34528
34597
|
render: function render(article, index) {
|
34529
34598
|
return React__default.createElement(ArticleBlock$1, Object.assign({
|
34530
34599
|
key: index,
|
34600
|
+
isMath: isMath,
|
34531
34601
|
expandedIndex: index,
|
34532
34602
|
data: article,
|
34533
34603
|
path: path + ".articles[" + index + "]",
|
@@ -34552,7 +34622,7 @@ var QuestionGroupBlockBody = function QuestionGroupBlockBody(_ref) {
|
|
34552
34622
|
onClick: function onClick() {
|
34553
34623
|
arrayHelpers.push(DEFAULT_ARTICLE);
|
34554
34624
|
}
|
34555
|
-
}, i18n.t("article")))), React__default.createElement(material.Stack, {
|
34625
|
+
}, i18n.t(isMath ? "article" : "korean_article")))), React__default.createElement(material.Stack, {
|
34556
34626
|
gap: 1,
|
34557
34627
|
direction: "column"
|
34558
34628
|
}, React__default.createElement(material.Box, null, React__default.createElement(material.FormControl, {
|
@@ -35302,7 +35372,7 @@ var ChapterBlockBody = function ChapterBlockBody(_ref) {
|
|
35302
35372
|
arrayHelpers.push(addedGroup);
|
35303
35373
|
handleToggle(length);
|
35304
35374
|
}
|
35305
|
-
}, t("question_group"))));
|
35375
|
+
}, t(isMath ? "question_group" : "korean_question_group"))));
|
35306
35376
|
}
|
35307
35377
|
}));
|
35308
35378
|
};
|
@@ -36009,7 +36079,7 @@ var TextbookContentsTab = function TextbookContentsTab(props) {
|
|
36009
36079
|
arrayHelpers.push(DEFAULT_CHAPTER);
|
36010
36080
|
handleToggleBlock(length);
|
36011
36081
|
}
|
36012
|
-
}, t("chapter"))));
|
36082
|
+
}, t(isMath ? "chapter" : "korean_chapter"))));
|
36013
36083
|
}
|
36014
36084
|
}), (openConfirmDelete === null || openConfirmDelete === void 0 ? void 0 : openConfirmDelete.text) && React__default.createElement(ConfirmDialog, {
|
36015
36085
|
open: !!openConfirmDelete,
|
@@ -36723,12 +36793,12 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
|
36723
36793
|
gap: 1
|
36724
36794
|
}, React__default.createElement("label", {
|
36725
36795
|
htmlFor: "name"
|
36726
|
-
}, i18n.t("
|
36796
|
+
}, i18n.t("textbook_name")), React__default.createElement(formik.Field, {
|
36727
36797
|
name: "name",
|
36728
36798
|
render: function render(_ref2) {
|
36729
36799
|
var field = _ref2.field;
|
36730
36800
|
return React__default.createElement(material.TextField, Object.assign({
|
36731
|
-
placeholder: i18n.t("
|
36801
|
+
placeholder: i18n.t("textbook_name")
|
36732
36802
|
}, field, {
|
36733
36803
|
size: "small",
|
36734
36804
|
disabled: disabled,
|
@@ -36746,7 +36816,7 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
|
36746
36816
|
minWidth: "240px"
|
36747
36817
|
}, React__default.createElement("label", {
|
36748
36818
|
htmlFor: "subjectId"
|
36749
|
-
}, i18n.t("
|
36819
|
+
}, i18n.t("textbook_subject")), React__default.createElement(formik.Field, {
|
36750
36820
|
name: "subjectId",
|
36751
36821
|
render: function render(_ref3) {
|
36752
36822
|
var field = _ref3.field;
|