touchstudy-core 0.1.155 → 0.1.157

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.
@@ -10260,8 +10260,11 @@ var TinyEditor = function TinyEditor(_ref) {
10260
10260
  height: 150,
10261
10261
  menubar: false,
10262
10262
  readonly: false,
10263
+ external_plugins: {
10264
+ tiny_mce_wiris: '/editor/wiris-for-tinymce.js'
10265
+ },
10263
10266
  plugins: ['anchor', 'autolink', 'charmap', 'codesample', 'emoticons', 'image', 'link', 'lists', 'media', 'searchreplace', 'table', 'visualblocks', 'wordcount'],
10264
- 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',
10267
+ 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',
10265
10268
  branding: false,
10266
10269
  extended_valid_elements: '*[.*]'
10267
10270
  };
@@ -10275,7 +10278,7 @@ var TinyEditor = function TinyEditor(_ref) {
10275
10278
  return React__default.createElement(Editor, {
10276
10279
  disabled: disabled,
10277
10280
  init: config || options,
10278
- initialValue: initValue,
10281
+ value: initValue,
10279
10282
  onEditorChange: handleChange
10280
10283
  });
10281
10284
  };
@@ -24493,6 +24496,7 @@ var AttendanceCourseTable = function AttendanceCourseTable(_ref) {
24493
24496
  return state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.language;
24494
24497
  });
24495
24498
  var dataString = JSON.stringify(data);
24499
+ var containerRef = useRef(null);
24496
24500
  var handleCheckInLesson = function handleCheckInLesson(lesson, studentId) {
24497
24501
  if (isAdmin) return;
24498
24502
  onCheckInLesson(lesson, studentId);
@@ -24550,15 +24554,43 @@ var AttendanceCourseTable = function AttendanceCourseTable(_ref) {
24550
24554
  }, (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))));
24551
24555
  };
24552
24556
  var columnCount = data.length;
24557
+ var multiGridRef = useRef(null);
24558
+ useEffect(function () {
24559
+ var handleResize = function handleResize() {
24560
+ var _multiGridRef$current;
24561
+ (_multiGridRef$current = multiGridRef.current) === null || _multiGridRef$current === void 0 ? void 0 : _multiGridRef$current.invalidateCellSizeAfterRender();
24562
+ };
24563
+ window.addEventListener("resize", handleResize);
24564
+ return function () {
24565
+ window.removeEventListener("resize", handleResize);
24566
+ };
24567
+ }, []);
24568
+ var columnWidth = function columnWidth(params, cache) {
24569
+ if (!containerRef.current || params.index < columnCount - 1) return cache.columnWidth(params);
24570
+ var containerWidth = containerRef.current.clientWidth;
24571
+ var currentWidth = cache.columnWidth(params);
24572
+ var totalWidth = 0;
24573
+ for (var index = 0; index < params.index; index++) {
24574
+ var elementWidth = cache.columnWidth({
24575
+ index: index
24576
+ });
24577
+ totalWidth += elementWidth;
24578
+ }
24579
+ if (totalWidth + currentWidth < containerWidth) return containerWidth - totalWidth;
24580
+ return currentWidth;
24581
+ };
24553
24582
  return React__default.createElement(VirtualTableView, {
24554
24583
  loading: false,
24584
+ multiGridRef: multiGridRef,
24585
+ containerRef: containerRef,
24555
24586
  containerProps: containerProps,
24556
24587
  listHeight: listHeight,
24557
24588
  listWidth: listWidth,
24558
24589
  renderItem: renderItem,
24559
24590
  columnCount: columnCount,
24560
24591
  itemsCount: 2,
24561
- dataString: dataString
24592
+ dataString: dataString,
24593
+ columnWidth: columnWidth
24562
24594
  });
24563
24595
  };
24564
24596