@titaui/pc 1.16.40 → 1.16.42
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/lib/components/common-share/publishMblog.js +1 -1
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +1 -1
- package/lib/components/nav-top/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/publishMblog.js +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/select/Option.js +3 -3
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/empty/group.js +1 -5
- package/lib/components/version-change-modal/constant.js +1 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ function PublishMblog(_ref) {
|
|
|
61
61
|
closeModal = _ref.closeModal,
|
|
62
62
|
uid = _ref.uid,
|
|
63
63
|
_ref$defaultContent = _ref.defaultContent,
|
|
64
|
-
defaultContent = _ref$defaultContent === void 0 ?
|
|
64
|
+
defaultContent = _ref$defaultContent === void 0 ? '' : _ref$defaultContent;
|
|
65
65
|
|
|
66
66
|
var _useState = (0, _react.useState)({
|
|
67
67
|
url: "",
|
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var
|
|
58
|
+
var _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: '',
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(EmotionsSelectorPop);
|
|
48
48
|
|
|
49
49
|
function EmotionsSelectorPop() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, EmotionsSelectorPop);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
59
59
|
setTimeout(function () {
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
_this.refs.pop.show(_this.refs.trigger);
|
|
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(EmotionsSelectorPop, [{
|
|
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
var _super = _createSuper(EReportList);
|
|
58
58
|
|
|
59
59
|
function EReportList() {
|
|
60
|
-
var
|
|
60
|
+
var _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, EReportList);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (
|
|
68
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
69
69
|
selectedPeriodValue: "",
|
|
70
70
|
showDatePick: false,
|
|
71
71
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
var _super = _createSuper(MblogAction);
|
|
84
84
|
|
|
85
85
|
function MblogAction() {
|
|
86
|
-
var
|
|
86
|
+
var _this;
|
|
87
87
|
|
|
88
88
|
_classCallCheck(this, MblogAction);
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
91
|
args[_key] = arguments[_key];
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
return _possibleConstructorReturn(_this, (
|
|
94
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
95
95
|
isSendSms: false,
|
|
96
96
|
// 是否短信通知
|
|
97
97
|
isShowConfirmPop: false
|
|
@@ -121,7 +121,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
121
121
|
isSendSms: false
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, _assertThisInitialized(_this)));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
_createClass(MblogAction, [{
|
|
@@ -80,7 +80,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
80
|
commentsTypeKey = _this$props.commentsTypeKey,
|
|
81
81
|
privateValue = _this$props.privateValue,
|
|
82
82
|
defaultContent = _this$props.defaultContent;
|
|
83
|
-
var localStroageKey = "
|
|
83
|
+
var localStroageKey = "mblogLocalStroage1_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(commentsTypeKey); // 根据commentsTypeKey设置localStroageKey
|
|
84
84
|
|
|
85
85
|
var textareaValue = (0, _index.htmlDecodeByRegExp)(localStorage.getItem(localStroageKey) || defaultContent); // 获取本地缓存内容
|
|
86
86
|
|
|
@@ -32,7 +32,7 @@ exports.popupAlignPhoto = popupAlignPhoto;
|
|
|
32
32
|
var getVersionTextMap = function getVersionTextMap() {
|
|
33
33
|
var _ref;
|
|
34
34
|
|
|
35
|
-
return _ref = {}, _defineProperty(_ref, _constant.Versions.Standard, (0, _getLocale.getLocale)("Sw_ProEdit")), _defineProperty(_ref, _constant.Versions.WeixinAssess, (0, _getLocale.getLocale)("Sw_PerEdit")), _defineProperty(_ref, _constant.Versions.Professional, (0, _getLocale.getLocale)("Sw_OKREdit")), _defineProperty(_ref, _constant.Versions.Flagship, (0, _getLocale.getLocale)("Sw_Flagship")), _ref;
|
|
35
|
+
return _ref = {}, _defineProperty(_ref, _constant.Versions.Standard, (0, _getLocale.getLocale)("Sw_ProEdit")), _defineProperty(_ref, _constant.Versions.WeixinAssess, (0, _getLocale.getLocale)("Sw_PerEdit")), _defineProperty(_ref, _constant.Versions.Professional, (0, _getLocale.getLocale)("Sw_OKREdit")), _defineProperty(_ref, _constant.Versions.Flagship, (0, _getLocale.getLocale)("Sw_Flagship")), _defineProperty(_ref, _constant.Versions.Reviews360, (0, _getLocale.getLocale)("360Version")), _ref;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
exports.getVersionTextMap = getVersionTextMap;
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js
CHANGED
|
@@ -81,7 +81,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
81
|
var _super = _createSuper(EditPop);
|
|
82
82
|
|
|
83
83
|
function EditPop() {
|
|
84
|
-
var
|
|
84
|
+
var _this;
|
|
85
85
|
|
|
86
86
|
_classCallCheck(this, EditPop);
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
89
89
|
args[_key] = arguments[_key];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
return _possibleConstructorReturn(_this, (
|
|
92
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
93
93
|
value: _this.props.value,
|
|
94
94
|
showError: false,
|
|
95
95
|
errMsg: "",
|
|
@@ -152,7 +152,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
errMsg: (0, _i18nFrontTranslate.inputWordTrans)(value.length, maxLength),
|
|
153
153
|
disable: !!(maxLength && value.length > maxLength && disable)
|
|
154
154
|
});
|
|
155
|
-
},
|
|
155
|
+
}, _assertThisInitialized(_this)));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createClass(EditPop, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -99,7 +99,7 @@ function PublishMblog(_ref) {
|
|
|
99
99
|
}
|
|
100
100
|
}, /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
101
101
|
autoResizing: false,
|
|
102
|
-
defaultContent: "\u79C0\u4E00\u79C0
|
|
102
|
+
defaultContent: "\u3010\u79C0\u4E00\u79C0 OKR\u3011",
|
|
103
103
|
submitStatus: status,
|
|
104
104
|
commentsTypeKey: "share-okr".concat(loginUserId).concat(okrId),
|
|
105
105
|
autoFocus: true,
|
|
@@ -76,7 +76,7 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
76
76
|
canClose: false
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
localStorage.removeItem("
|
|
79
|
+
localStorage.removeItem("mblogLocalStroage1_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
80
80
|
setVisible(false);
|
|
81
81
|
setSubmitStatus(1);
|
|
82
82
|
|
|
@@ -104,7 +104,7 @@ var PublishDynamicModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
|
|
|
104
104
|
canClose: false
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
localStorage.removeItem("
|
|
107
|
+
localStorage.removeItem("mblogLocalStroage1_".concat((0, _bsGlobal.getUserInfo)().Id, "_commentsTypeKey_").concat(isShare ? "share" : "announcement"));
|
|
108
108
|
setVisible(false);
|
|
109
109
|
setSubmitStatus(1);
|
|
110
110
|
setTimeout(function () {
|
|
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(RangeSelectorPop);
|
|
46
46
|
|
|
47
47
|
function RangeSelectorPop() {
|
|
48
|
-
var
|
|
48
|
+
var _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, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_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
|
-
},
|
|
64
|
+
}, _assertThisInitialized(_this)));
|
|
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
|
|
49
|
+
var _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, (
|
|
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)));
|
|
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
|
|
78
|
+
var _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, (
|
|
86
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _assertThisInitialized(_this2)));
|
|
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
|
|
107
|
+
var _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, (
|
|
115
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _assertThisInitialized(_this3)));
|
|
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
|
|
52
|
+
var _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, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
|
|
61
61
|
tag: "blockquote"
|
|
62
|
-
}],
|
|
62
|
+
}], _assertThisInitialized(_this)));
|
|
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
|
|
83
|
+
var _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, (
|
|
91
|
+
return _possibleConstructorReturn(_this2, (_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
|
-
},
|
|
100
|
+
}, _assertThisInitialized(_this2)));
|
|
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
|
|
114
|
+
var _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, (
|
|
122
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _assertThisInitialized(_this3)));
|
|
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
|
|
52
|
+
var _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, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_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
|
-
}],
|
|
97
|
+
}], _assertThisInitialized(_this)));
|
|
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
|
|
120
|
+
var _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, (
|
|
128
|
+
return _possibleConstructorReturn(_this2, (_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
|
-
}],
|
|
164
|
+
}], _assertThisInitialized(_this2)));
|
|
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
|
|
176
|
+
var _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, (
|
|
184
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _assertThisInitialized(_this3)));
|
|
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
|
|
59
|
+
var _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, (
|
|
67
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = 'bulletList', _this.content = 'listItem+', _this.parseDOM = [{
|
|
68
68
|
tag: "ul"
|
|
69
|
-
}],
|
|
69
|
+
}], _assertThisInitialized(_this)));
|
|
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
|
|
92
|
+
var _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, (
|
|
100
|
+
return _possibleConstructorReturn(_this2, (_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
|
-
},
|
|
115
|
+
}, _assertThisInitialized(_this2)));
|
|
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
|
|
129
|
+
var _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, (
|
|
137
|
+
return _possibleConstructorReturn(_this3, (_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
|
-
}],
|
|
139
|
+
}], _assertThisInitialized(_this3)));
|
|
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
|
|
162
|
+
var _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, (
|
|
170
|
+
return _possibleConstructorReturn(_this4, (_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"]],
|
|
196
|
+
}], _this4.pmPlugins = [_main["default"], _keymap["default"]], _assertThisInitialized(_this4)));
|
|
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
|
|
210
|
+
var _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, (
|
|
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)));
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return _createClass(ListPlugin);
|