@titaui/pc 1.16.42 → 1.16.43-beta.10

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 (66) hide show
  1. package/lib/components/communication/index.js +98 -54
  2. package/lib/components/date-picker/BodyItem.js +3 -3
  3. package/lib/components/date-picker/CalendarHeader.js +3 -3
  4. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  5. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  6. package/lib/components/emotions-selector/selector-pop.js +3 -3
  7. package/lib/components/ereport-list/index.js +3 -3
  8. package/lib/components/mblog/components/MblogAction.js +3 -3
  9. package/lib/components/mblog/components/MblogContent.js +2 -0
  10. package/lib/components/mblog/index.js +3 -1
  11. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  12. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  13. package/lib/components/picker/components/panels/date-panel/date-body.js +27 -101
  14. package/lib/components/picker/components/panels/date-panel/date-head.js +8 -16
  15. package/lib/components/picker/components/panels/date-panel/date-rows.js +145 -0
  16. package/lib/components/picker/components/panels/date-panel/index.css +26 -7
  17. package/lib/components/picker/components/panels/date-panel/index.js +46 -11
  18. package/lib/components/picker/components/panels/date-panel/useRowsData.js +77 -0
  19. package/lib/components/picker/components/panels/month-panel/index.css +19 -9
  20. package/lib/components/picker/components/panels/month-panel/month-body.js +14 -56
  21. package/lib/components/picker/components/panels/month-panel/month-head.js +19 -2
  22. package/lib/components/picker/components/panels/month-panel/useRowsData.js +61 -0
  23. package/lib/components/picker/components/panels/panel-head/index.js +4 -0
  24. package/lib/components/picker/components/panels/week-panel/index.css +1 -1
  25. package/lib/components/picker/components/panels/year-panel/index.css +28 -6
  26. package/lib/components/picker/components/panels/year-panel/useRowsData.js +63 -0
  27. package/lib/components/picker/components/panels/year-panel/year-body.js +19 -48
  28. package/lib/components/picker/components/panels/year-panel/year-head.js +20 -1
  29. package/lib/components/picker/components/picker-trigger/index.js +1 -1
  30. package/lib/components/picker/context.js +19 -9
  31. package/lib/components/picker/index.css +16 -2
  32. package/lib/components/picker/picker-panels.js +14 -26
  33. package/lib/components/picker/picker.js +27 -28
  34. package/lib/components/picker/range-picker/components/picker-trigger/index.js +3 -3
  35. package/lib/components/picker/range-picker/components/select-input/index.js +3 -9
  36. package/lib/components/picker/range-picker/index.js +13 -18
  37. package/lib/components/picker/utils.js +11 -5
  38. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  39. package/lib/components/rich-editor/models/schema.js +6 -6
  40. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  41. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  42. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  43. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  44. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  45. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  46. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  47. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  48. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  49. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  50. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  51. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  52. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  53. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  54. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  55. package/lib/components/select/Option.js +3 -3
  56. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  57. package/lib/components-v1/animate/AnimateChild.js +3 -3
  58. package/lib/components-v1/avatar/index.js +3 -3
  59. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  60. package/lib/components-v1/progress/CircleProgress.js +3 -3
  61. package/lib/components-v1/select/Option.js +3 -3
  62. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  63. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  64. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  65. package/lib/utils/editor.js +7 -4
  66. package/package.json +2 -1
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
+ var _moment = _interopRequireDefault(require("moment"));
15
+
14
16
  var _getLocale = require("../../../../../utils/getLocale");
15
17
 
16
18
  var _context = require("../../../context");
@@ -19,8 +21,6 @@ var _utils = require("../../../utils");
19
21
 
20
22
  require("./index.css");
21
23
 
22
- var _moment = _interopRequireDefault(require("moment"));
23
-
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
26
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -51,7 +51,7 @@ var RangePickerTrigger = function RangePickerTrigger(props) {
51
51
 
52
52
  switch (picker) {
53
53
  case 'date':
54
- currFormat = 'YYYY/MM/DD';
54
+ currFormat = _utils.PickerFormat;
55
55
  break;
56
56
 
57
57
  case 'month':
@@ -34,20 +34,14 @@ var RangeSelectInput = function RangeSelectInput(props, ref) {
34
34
  var onClearHandler = function onClearHandler(e) {
35
35
  e.stopPropagation();
36
36
  e.nativeEvent.stopImmediatePropagation();
37
-
38
- if (onFocus) {
39
- onFocus();
40
- }
41
-
42
- if (onClear) {
43
- onClear();
44
- }
37
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus();
38
+ onClear === null || onClear === void 0 ? void 0 : onClear();
45
39
  };
46
40
 
47
41
  var focus = function focus() {
48
42
  timerRef.current = setTimeout(function () {
49
- clearTimeout(timerRef.current);
50
43
  inputRef.current.focus();
44
+ clearTimeout(timerRef.current);
51
45
  }, 0);
52
46
  };
53
47
 
@@ -61,12 +61,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
61
61
 
62
62
  var RangePicker = function RangePicker(props) {
63
63
  var onChange = props.onChange,
64
- format = props.format,
65
- values = props.values,
66
- picker = props.picker,
64
+ _props$format = props.format,
65
+ format = _props$format === void 0 ? _utils.PickerFormat : _props$format,
66
+ _props$values = props.values,
67
+ values = _props$values === void 0 ? [] : _props$values,
68
+ _props$picker = props.picker,
69
+ picker = _props$picker === void 0 ? 'date' : _props$picker,
67
70
  children = props.children,
68
- popupPlacement = props.popupPlacement,
69
- direction = props.direction,
71
+ _props$popupPlacement = props.popupPlacement,
72
+ popupPlacement = _props$popupPlacement === void 0 ? 'bottomLeft' : _props$popupPlacement,
73
+ _props$direction = props.direction,
74
+ direction = _props$direction === void 0 ? 'ltr' : _props$direction,
70
75
  onPopupVisibleChange = props.onPopupVisibleChange,
71
76
  _props$visible = props.visible,
72
77
  visible = _props$visible === void 0 ? false : _props$visible,
@@ -185,7 +190,7 @@ var RangePicker = function RangePicker(props) {
185
190
  return setPopupVisible(false);
186
191
  };
187
192
 
188
- var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
193
+ var onPopupVisibleChangeHandler = function onPopupVisibleChangeHandler(visible) {
189
194
  setPopupVisible(visible);
190
195
  onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
191
196
  };
@@ -243,7 +248,7 @@ var RangePicker = function RangePicker(props) {
243
248
  size: "small",
244
249
  type: "primary"
245
250
  }, (0, _getLocale.getLocale)('Mod_Determiness')))));
246
- }, [viewDate, canEmpty]);
251
+ }, [canEmpty, settingType, viewDate]);
247
252
  return /*#__PURE__*/_react["default"].createElement(_context.RangePickerContext.Provider, {
248
253
  value: {
249
254
  values: values,
@@ -256,7 +261,7 @@ var RangePicker = function RangePicker(props) {
256
261
  popup: popContent,
257
262
  popupVisible: popupVisible,
258
263
  popupPlacement: getPopupPlacement(),
259
- onPopupVisibleChange: handlePopupVisibleChange
264
+ onPopupVisibleChange: onPopupVisibleChangeHandler
260
265
  }, restProps), /*#__PURE__*/_react["default"].createElement(_pickerTrigger["default"], _extends({
261
266
  focused: popupVisible,
262
267
  placeholder: (0, _getLocale.getLocale)('Rep_NewS_All'),
@@ -267,15 +272,5 @@ var RangePicker = function RangePicker(props) {
267
272
  }, restProps), children)));
268
273
  };
269
274
 
270
- RangePicker.defaultProps = {
271
- children: null,
272
- values: [],
273
- picker: 'date',
274
- format: 'YYYY/MM/DD',
275
- popupStyle: {},
276
- popupPlacement: 'bottomLeft',
277
- direction: 'ltr',
278
- visible: false
279
- };
280
275
  var _default = RangePicker;
281
276
  exports["default"] = _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.setPickerDateBySettingType = exports.isCurrentDateInRanges = exports.getPreviousValues = exports.getPickerDateBySettingType = exports.getNextValues = exports.getCurrentWeekDay = exports.getCurrentValues = exports.YEAR_DECADE_COUNT = exports.WEEK_DAYS_COUNT = exports.SHORTCUTS = exports.RangeWeekPickerShortcutsKeysMapping = exports.RangeSettingTypes = exports.RangePickerShortcutsKeysMapping = exports.PickerTriggerClass = exports.PickerRangesClass = exports.PickerRangeTriggerClass = exports.PickerPanelClass = exports.PickerHeadClass = exports.PickerDropdownClass = exports.PickerClass = exports.PickerCellClass = exports.PickerBodyClass = exports.MONTHDATAMAPEN = exports.MONTHDATAMAP = void 0;
6
+ exports.setPickerDateBySettingType = exports.isCurrentDateInRanges = exports.getPreviousValues = exports.getPickerDateBySettingType = exports.getNextValues = exports.getCurrentWeekDay = exports.getCurrentValues = exports.YEAR_DECADE_COUNT = exports.WEEK_DAYS_COUNT = exports.SHORTCUTS = exports.RangeWeekPickerShortcutsKeysMapping = exports.RangeSettingTypes = exports.RangePickerShortcutsKeysMapping = exports.PickerTriggerClass = exports.PickerRangesClass = exports.PickerRangeTriggerClass = exports.PickerPanelClass = exports.PickerMinDate = exports.PickerMaxDate = exports.PickerHeadClass = exports.PickerFormat = exports.PickerDropdownClass = exports.PickerClass = exports.PickerCellClass = exports.PickerBodyClass = exports.MONTHDATAMAPEN = exports.MONTHDATAMAP = void 0;
7
7
 
8
8
  var _moment = _interopRequireDefault(require("moment"));
9
9
 
@@ -37,6 +37,12 @@ var WEEK_DAYS_COUNT = 7;
37
37
  exports.WEEK_DAYS_COUNT = WEEK_DAYS_COUNT;
38
38
  var YEAR_DECADE_COUNT = 10;
39
39
  exports.YEAR_DECADE_COUNT = YEAR_DECADE_COUNT;
40
+ var PickerFormat = 'YYYY/MM/DD';
41
+ exports.PickerFormat = PickerFormat;
42
+ var PickerMaxDate = (0, _moment["default"])().add(YEAR_DECADE_COUNT, 'years').format(PickerFormat);
43
+ exports.PickerMaxDate = PickerMaxDate;
44
+ var PickerMinDate = '2018/01/01';
45
+ exports.PickerMinDate = PickerMinDate;
40
46
  var SHORTCUTS;
41
47
  exports.SHORTCUTS = SHORTCUTS;
42
48
 
@@ -114,7 +120,7 @@ var getPickerDateBySettingType = function getPickerDateBySettingType(params) {
114
120
  var _params$defaultValue = params.defaultValue,
115
121
  defaultValue = _params$defaultValue === void 0 ? (0, _moment["default"])() : _params$defaultValue,
116
122
  _params$format = params.format,
117
- format = _params$format === void 0 ? 'YYYY/MM/DD' : _params$format,
123
+ format = _params$format === void 0 ? PickerFormat : _params$format,
118
124
  settingType = params.settingType,
119
125
  values = params.values;
120
126
 
@@ -141,11 +147,11 @@ var setPickerDateBySettingType = function setPickerDateBySettingType(params) {
141
147
  var updateIndex = isSettingStart ? 0 : 1;
142
148
  valuesClone.splice(updateIndex, 1, (0, _moment["default"])(newDate));
143
149
 
144
- if (isSettingStart && (0, _moment["default"])(newDate, 'YYYY/MM/DD').isAfter((0, _moment["default"])(valuesClone[1]).format('YYYY/MM/DD'), 'date')) {
150
+ if (isSettingStart && (0, _moment["default"])(newDate, PickerFormat).isAfter((0, _moment["default"])(valuesClone[1]).format(PickerFormat), 'date')) {
145
151
  valuesClone[1] = (0, _moment["default"])(newDate);
146
152
  }
147
153
 
148
- if (!isSettingStart && (0, _moment["default"])(newDate, 'YYYY/MM/DD').isBefore((0, _moment["default"])(valuesClone[0]).format('YYYY/MM/DD'), 'date')) {
154
+ if (!isSettingStart && (0, _moment["default"])(newDate, PickerFormat).isBefore((0, _moment["default"])(valuesClone[0]).format(PickerFormat), 'date')) {
149
155
  valuesClone[0] = (0, _moment["default"])(newDate);
150
156
  }
151
157
 
@@ -159,7 +165,7 @@ exports.setPickerDateBySettingType = setPickerDateBySettingType;
159
165
 
160
166
  var isCurrentDateInRanges = function isCurrentDateInRanges(params) {
161
167
  var _params$format2 = params.format,
162
- format = _params$format2 === void 0 ? 'YYYY/MM/DD' : _params$format2,
168
+ format = _params$format2 === void 0 ? PickerFormat : _params$format2,
163
169
  nowDate = params.nowDate,
164
170
  values = params.values;
165
171
  var date = typeof nowDate === 'string' ? nowDate : nowDate.format(format);
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
45
45
  var _super = _createSuper(RangeSelectorPop);
46
46
 
47
47
  function RangeSelectorPop() {
48
- var _this;
48
+ var _temp, _this;
49
49
 
50
50
  _classCallCheck(this, RangeSelectorPop);
51
51
 
@@ -53,7 +53,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
53
53
  args[_key] = arguments[_key];
54
54
  }
55
55
 
56
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
56
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
57
57
  var isDisabled = _this.props.isDisabled;
58
58
  if (isDisabled) return; // @ts-ignore
59
59
 
@@ -61,7 +61,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
61
61
  }, _this.handleHide = function () {
62
62
  // @ts-ignore
63
63
  _this.refs.pop.hide();
64
- }, _assertThisInitialized(_this)));
64
+ }, _temp));
65
65
  }
66
66
 
67
67
  _createClass(RangeSelectorPop, [{
@@ -46,7 +46,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
46
46
  var _super = _createSuper(BlockSchema);
47
47
 
48
48
  function BlockSchema() {
49
- var _this;
49
+ var _temp, _this;
50
50
 
51
51
  _classCallCheck(this, BlockSchema);
52
52
 
@@ -54,7 +54,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
54
54
  args[_key] = arguments[_key];
55
55
  }
56
56
 
57
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _assertThisInitialized(_this)));
57
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _temp));
58
58
  }
59
59
 
60
60
  _createClass(BlockSchema, [{
@@ -75,7 +75,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
75
75
  var _super2 = _createSuper(InlineSchema);
76
76
 
77
77
  function InlineSchema() {
78
- var _this2;
78
+ var _temp2, _this2;
79
79
 
80
80
  _classCallCheck(this, InlineSchema);
81
81
 
@@ -83,7 +83,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
83
83
  args[_key2] = arguments[_key2];
84
84
  }
85
85
 
86
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _assertThisInitialized(_this2)));
86
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _temp2));
87
87
  }
88
88
 
89
89
  _createClass(InlineSchema, [{
@@ -104,7 +104,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
104
104
  var _super3 = _createSuper(AtomSchema);
105
105
 
106
106
  function AtomSchema() {
107
- var _this3;
107
+ var _temp3, _this3;
108
108
 
109
109
  _classCallCheck(this, AtomSchema);
110
110
 
@@ -112,7 +112,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
112
112
  args[_key3] = arguments[_key3];
113
113
  }
114
114
 
115
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _assertThisInitialized(_this3)));
115
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _temp3));
116
116
  }
117
117
 
118
118
  return _createClass(AtomSchema);
@@ -49,7 +49,7 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  var _super = _createSuper(BlockquoteSchema);
50
50
 
51
51
  function BlockquoteSchema() {
52
- var _this;
52
+ var _temp, _this;
53
53
 
54
54
  _classCallCheck(this, BlockquoteSchema);
55
55
 
@@ -57,9 +57,9 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
57
57
  args[_key] = arguments[_key];
58
58
  }
59
59
 
60
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
60
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
61
61
  tag: "blockquote"
62
- }], _assertThisInitialized(_this)));
62
+ }], _temp));
63
63
  }
64
64
 
65
65
  _createClass(BlockquoteSchema, [{
@@ -80,7 +80,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
80
80
  var _super2 = _createSuper(BlockquoteController);
81
81
 
82
82
  function BlockquoteController() {
83
- var _this2;
83
+ var _temp2, _this2;
84
84
 
85
85
  _classCallCheck(this, BlockquoteController);
86
86
 
@@ -88,7 +88,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
88
88
  args[_key2] = arguments[_key2];
89
89
  }
90
90
 
91
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
91
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
92
92
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Quote'),
93
93
  icon: 'tu-icon-text-quotel',
94
94
  handler: function handler(editor) {
@@ -97,7 +97,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
97
97
  active: function active(state) {
98
98
  return (0, _util.isBlockActive)(state, PLUGIN_NAME);
99
99
  }
100
- }, _assertThisInitialized(_this2)));
100
+ }, _temp2));
101
101
  }
102
102
 
103
103
  return _createClass(BlockquoteController);
@@ -111,7 +111,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
111
111
  var _super3 = _createSuper(BlockquotePlugin);
112
112
 
113
113
  function BlockquotePlugin() {
114
- var _this3;
114
+ var _temp3, _this3;
115
115
 
116
116
  _classCallCheck(this, BlockquotePlugin);
117
117
 
@@ -119,7 +119,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
119
119
  args[_key3] = arguments[_key3];
120
120
  }
121
121
 
122
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _assertThisInitialized(_this3)));
122
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _temp3));
123
123
  }
124
124
 
125
125
  return _createClass(BlockquotePlugin);
@@ -49,7 +49,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  var _super = _createSuper(HeadingSchema);
50
50
 
51
51
  function HeadingSchema() {
52
- var _this;
52
+ var _temp, _this;
53
53
 
54
54
  _classCallCheck(this, HeadingSchema);
55
55
 
@@ -57,7 +57,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
57
57
  args[_key] = arguments[_key];
58
58
  }
59
59
 
60
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
60
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
61
61
  level: {
62
62
  "default": 1
63
63
  },
@@ -94,7 +94,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
94
94
  attrs: {
95
95
  level: 6
96
96
  }
97
- }], _assertThisInitialized(_this)));
97
+ }], _temp));
98
98
  }
99
99
 
100
100
  _createClass(HeadingSchema, [{
@@ -117,7 +117,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
117
117
  var _super2 = _createSuper(HeadingController);
118
118
 
119
119
  function HeadingController() {
120
- var _this2;
120
+ var _temp2, _this2;
121
121
 
122
122
  _classCallCheck(this, HeadingController);
123
123
 
@@ -125,7 +125,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
125
125
  args[_key2] = arguments[_key2];
126
126
  }
127
127
 
128
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
128
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
129
129
  title: (0, _getLocale.getLocale)('Rtx_HeadingONE'),
130
130
  icon: 'tu-icon-text-H1',
131
131
  handler: function handler(editor) {
@@ -161,7 +161,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
161
161
  level: 3
162
162
  });
163
163
  }
164
- }], _assertThisInitialized(_this2)));
164
+ }], _temp2));
165
165
  }
166
166
 
167
167
  return _createClass(HeadingController);
@@ -173,7 +173,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
173
173
  var _super3 = _createSuper(HeadingPlugin);
174
174
 
175
175
  function HeadingPlugin() {
176
- var _this3;
176
+ var _temp3, _this3;
177
177
 
178
178
  _classCallCheck(this, HeadingPlugin);
179
179
 
@@ -181,7 +181,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
181
181
  args[_key3] = arguments[_key3];
182
182
  }
183
183
 
184
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _assertThisInitialized(_this3)));
184
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _temp3));
185
185
  }
186
186
 
187
187
  return _createClass(HeadingPlugin);
@@ -56,7 +56,7 @@ var BulletListSchema = /*#__PURE__*/function (_BlockSchema) {
56
56
  var _super = _createSuper(BulletListSchema);
57
57
 
58
58
  function BulletListSchema() {
59
- var _this;
59
+ var _temp, _this;
60
60
 
61
61
  _classCallCheck(this, BulletListSchema);
62
62
 
@@ -64,9 +64,9 @@ var BulletListSchema = /*#__PURE__*/function (_BlockSchema) {
64
64
  args[_key] = arguments[_key];
65
65
  }
66
66
 
67
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = 'bulletList', _this.content = 'listItem+', _this.parseDOM = [{
67
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = 'bulletList', _this.content = 'listItem+', _this.parseDOM = [{
68
68
  tag: "ul"
69
- }], _assertThisInitialized(_this)));
69
+ }], _temp));
70
70
  }
71
71
 
72
72
  _createClass(BulletListSchema, [{
@@ -89,7 +89,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
89
89
  var _super2 = _createSuper(OrderedListSchema);
90
90
 
91
91
  function OrderedListSchema() {
92
- var _this2;
92
+ var _temp2, _this2;
93
93
 
94
94
  _classCallCheck(this, OrderedListSchema);
95
95
 
@@ -97,7 +97,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
97
97
  args[_key2] = arguments[_key2];
98
98
  }
99
99
 
100
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = 'orderedList', _this2.content = 'listItem+', _this2.attrs = {
100
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = 'orderedList', _this2.content = 'listItem+', _this2.attrs = {
101
101
  order: {
102
102
  "default": 1
103
103
  }
@@ -112,7 +112,7 @@ var OrderedListSchema = /*#__PURE__*/function (_BlockSchema2) {
112
112
  return node.attrs.order == 1 ? ["ol", 0] : ["ol", {
113
113
  start: node.attrs.order
114
114
  }, 0];
115
- }, _assertThisInitialized(_this2)));
115
+ }, _temp2));
116
116
  }
117
117
 
118
118
  return _createClass(OrderedListSchema);
@@ -126,7 +126,7 @@ var ListItemSchema = /*#__PURE__*/function (_BlockSchema3) {
126
126
  var _super3 = _createSuper(ListItemSchema);
127
127
 
128
128
  function ListItemSchema() {
129
- var _this3;
129
+ var _temp3, _this3;
130
130
 
131
131
  _classCallCheck(this, ListItemSchema);
132
132
 
@@ -134,9 +134,9 @@ var ListItemSchema = /*#__PURE__*/function (_BlockSchema3) {
134
134
  args[_key3] = arguments[_key3];
135
135
  }
136
136
 
137
- return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = 'listItem', _this3.group = 'listItem', _this3.content = 'paragraph block*', _this3.parseDOM = [{
137
+ return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = 'listItem', _this3.group = 'listItem', _this3.content = 'paragraph block*', _this3.parseDOM = [{
138
138
  tag: "li"
139
- }], _assertThisInitialized(_this3)));
139
+ }], _temp3));
140
140
  }
141
141
 
142
142
  _createClass(ListItemSchema, [{
@@ -159,7 +159,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
159
159
  var _super4 = _createSuper(ListController);
160
160
 
161
161
  function ListController() {
162
- var _this4;
162
+ var _temp4, _this4;
163
163
 
164
164
  _classCallCheck(this, ListController);
165
165
 
@@ -167,7 +167,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
167
167
  args[_key4] = arguments[_key4];
168
168
  }
169
169
 
170
- return _possibleConstructorReturn(_this4, (_this4 = _super4.call.apply(_super4, [this].concat(args)), _this4.toolbar = [{
170
+ return _possibleConstructorReturn(_this4, (_temp4 = _this4 = _super4.call.apply(_super4, [this].concat(args)), _this4.toolbar = [{
171
171
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Numberedlist'),
172
172
  icon: 'tu-icon-text-bullet-list',
173
173
  handler: function handler(editor) {
@@ -193,7 +193,7 @@ var ListController = /*#__PURE__*/function (_BaseController) {
193
193
  disabled: function disabled(state) {
194
194
  return _main.pluginKey.getState(state).orderedListDisabled;
195
195
  }
196
- }], _this4.pmPlugins = [_main["default"], _keymap["default"]], _assertThisInitialized(_this4)));
196
+ }], _this4.pmPlugins = [_main["default"], _keymap["default"]], _temp4));
197
197
  }
198
198
 
199
199
  return _createClass(ListController);
@@ -207,7 +207,7 @@ var ListPlugin = /*#__PURE__*/function (_BasePlugin) {
207
207
  var _super5 = _createSuper(ListPlugin);
208
208
 
209
209
  function ListPlugin() {
210
- var _this5;
210
+ var _temp5, _this5;
211
211
 
212
212
  _classCallCheck(this, ListPlugin);
213
213
 
@@ -215,7 +215,7 @@ var ListPlugin = /*#__PURE__*/function (_BasePlugin) {
215
215
  args[_key5] = arguments[_key5];
216
216
  }
217
217
 
218
- return _possibleConstructorReturn(_this5, (_this5 = _super5.call.apply(_super5, [this].concat(args)), _this5.name = PLUGIN_NAME, _this5.schema = [BulletListSchema, OrderedListSchema, ListItemSchema], _this5.controller = ListController, _assertThisInitialized(_this5)));
218
+ return _possibleConstructorReturn(_this5, (_temp5 = _this5 = _super5.call.apply(_super5, [this].concat(args)), _this5.name = PLUGIN_NAME, _this5.schema = [BulletListSchema, OrderedListSchema, ListItemSchema], _this5.controller = ListController, _temp5));
219
219
  }
220
220
 
221
221
  return _createClass(ListPlugin);
@@ -41,7 +41,7 @@ var ParagraphSchema = /*#__PURE__*/function (_BlockSchema) {
41
41
  var _super = _createSuper(ParagraphSchema);
42
42
 
43
43
  function ParagraphSchema() {
44
- var _this;
44
+ var _temp, _this;
45
45
 
46
46
  _classCallCheck(this, ParagraphSchema);
47
47
 
@@ -49,9 +49,9 @@ var ParagraphSchema = /*#__PURE__*/function (_BlockSchema) {
49
49
  args[_key] = arguments[_key];
50
50
  }
51
51
 
52
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "inline*", _this.parseDOM = [{
52
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "inline*", _this.parseDOM = [{
53
53
  tag: "p"
54
- }], _assertThisInitialized(_this)));
54
+ }], _temp));
55
55
  }
56
56
 
57
57
  _createClass(ParagraphSchema, [{
@@ -74,7 +74,7 @@ var ParagraphPlugin = /*#__PURE__*/function (_BasePlugin) {
74
74
  var _super2 = _createSuper(ParagraphPlugin);
75
75
 
76
76
  function ParagraphPlugin() {
77
- var _this2;
77
+ var _temp2, _this2;
78
78
 
79
79
  _classCallCheck(this, ParagraphPlugin);
80
80
 
@@ -82,7 +82,7 @@ var ParagraphPlugin = /*#__PURE__*/function (_BasePlugin) {
82
82
  args[_key2] = arguments[_key2];
83
83
  }
84
84
 
85
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = ParagraphSchema, _assertThisInitialized(_this2)));
85
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = ParagraphSchema, _temp2));
86
86
  }
87
87
 
88
88
  return _createClass(ParagraphPlugin);
@@ -51,7 +51,7 @@ var CorePluginController = /*#__PURE__*/function (_BaseController) {
51
51
  var _super = _createSuper(CorePluginController);
52
52
 
53
53
  function CorePluginController() {
54
- var _this;
54
+ var _temp, _this;
55
55
 
56
56
  _classCallCheck(this, CorePluginController);
57
57
 
@@ -59,7 +59,7 @@ var CorePluginController = /*#__PURE__*/function (_BaseController) {
59
59
  args[_key] = arguments[_key];
60
60
  }
61
61
 
62
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [_focusHandler["default"], (0, _prosemirrorHistory.history)(), (0, _keymap["default"])(), (0, _prosemirrorKeymap.keymap)(_prosemirrorCommands.baseKeymap)], _assertThisInitialized(_this)));
62
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [_focusHandler["default"], (0, _prosemirrorHistory.history)(), (0, _keymap["default"])(), (0, _prosemirrorKeymap.keymap)(_prosemirrorCommands.baseKeymap)], _temp));
63
63
  }
64
64
 
65
65
  return _createClass(CorePluginController);
@@ -73,7 +73,7 @@ var CorePlugin = /*#__PURE__*/function (_BasePlugin) {
73
73
  var _super2 = _createSuper(CorePlugin);
74
74
 
75
75
  function CorePlugin() {
76
- var _this2;
76
+ var _temp2, _this2;
77
77
 
78
78
  _classCallCheck(this, CorePlugin);
79
79
 
@@ -81,7 +81,7 @@ var CorePlugin = /*#__PURE__*/function (_BasePlugin) {
81
81
  args[_key2] = arguments[_key2];
82
82
  }
83
83
 
84
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = CorePluginController, _assertThisInitialized(_this2)));
84
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = CorePluginController, _temp2));
85
85
  }
86
86
 
87
87
  return _createClass(CorePlugin);
@@ -47,7 +47,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
47
47
  var _super = _createSuper(AlignmentController);
48
48
 
49
49
  function AlignmentController() {
50
- var _this;
50
+ var _temp, _this;
51
51
 
52
52
  _classCallCheck(this, AlignmentController);
53
53
 
@@ -55,7 +55,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.toolbar = [{
58
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.toolbar = [{
59
59
  title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Alignleft'),
60
60
  icon: 'tu-icon-text-left',
61
61
  handler: function handler(editor) {
@@ -82,7 +82,7 @@ var AlignmentController = /*#__PURE__*/function (_BaseController) {
82
82
  active: function active(state) {
83
83
  return (0, _utils.hasAlignment)(state, 'right');
84
84
  }
85
- }], _assertThisInitialized(_this)));
85
+ }], _temp));
86
86
  }
87
87
 
88
88
  return _createClass(AlignmentController);
@@ -96,7 +96,7 @@ var AlignmentPlugin = /*#__PURE__*/function (_BasePlugin) {
96
96
  var _super2 = _createSuper(AlignmentPlugin);
97
97
 
98
98
  function AlignmentPlugin() {
99
- var _this2;
99
+ var _temp2, _this2;
100
100
 
101
101
  _classCallCheck(this, AlignmentPlugin);
102
102
 
@@ -104,7 +104,7 @@ var AlignmentPlugin = /*#__PURE__*/function (_BasePlugin) {
104
104
  args[_key2] = arguments[_key2];
105
105
  }
106
106
 
107
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = AlignmentController, _assertThisInitialized(_this2)));
107
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = AlignmentController, _temp2));
108
108
  }
109
109
 
110
110
  return _createClass(AlignmentPlugin);
@@ -85,7 +85,7 @@ var PlaceholderController = /*#__PURE__*/function (_BaseController) {
85
85
  var _super = _createSuper(PlaceholderController);
86
86
 
87
87
  function PlaceholderController() {
88
- var _this;
88
+ var _temp, _this;
89
89
 
90
90
  _classCallCheck(this, PlaceholderController);
91
91
 
@@ -93,7 +93,7 @@ var PlaceholderController = /*#__PURE__*/function (_BaseController) {
93
93
  args[_key] = arguments[_key];
94
94
  }
95
95
 
96
- return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [placeHolderPlugin], _assertThisInitialized(_this)));
96
+ return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.pmPlugins = [placeHolderPlugin], _temp));
97
97
  }
98
98
 
99
99
  return _createClass(PlaceholderController);
@@ -107,7 +107,7 @@ var PlaceholderPlugin = /*#__PURE__*/function (_BasePlugin) {
107
107
  var _super2 = _createSuper(PlaceholderPlugin);
108
108
 
109
109
  function PlaceholderPlugin() {
110
- var _this2;
110
+ var _temp2, _this2;
111
111
 
112
112
  _classCallCheck(this, PlaceholderPlugin);
113
113
 
@@ -115,7 +115,7 @@ var PlaceholderPlugin = /*#__PURE__*/function (_BasePlugin) {
115
115
  args[_key2] = arguments[_key2];
116
116
  }
117
117
 
118
- return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = PlaceholderController, _assertThisInitialized(_this2)));
118
+ return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.controller = PlaceholderController, _temp2));
119
119
  }
120
120
 
121
121
  return _createClass(PlaceholderPlugin);