hoeditor-web 3.1.43 → 3.1.44
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/hoeditor.umd.js +462 -448
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9491,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9491
9491
|
|
|
9492
9492
|
/***/ }),
|
|
9493
9493
|
|
|
9494
|
-
/***/
|
|
9494
|
+
/***/ 63970:
|
|
9495
9495
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9496
9496
|
|
|
9497
9497
|
"use strict";
|
|
@@ -9511,7 +9511,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9511
9511
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9512
9512
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9513
9513
|
var es_string_replace = __webpack_require__(15306);
|
|
9514
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9514
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=02f5a118&
|
|
9515
9515
|
|
|
9516
9516
|
|
|
9517
9517
|
|
|
@@ -9934,7 +9934,7 @@ var render = function render() {
|
|
|
9934
9934
|
};
|
|
9935
9935
|
var staticRenderFns = [];
|
|
9936
9936
|
|
|
9937
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9937
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=02f5a118&
|
|
9938
9938
|
|
|
9939
9939
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9940
9940
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12832,10 +12832,10 @@ var columns = [{
|
|
|
12832
12832
|
});
|
|
12833
12833
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12834
12834
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12835
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12835
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=02f5a118&prod&lang=less&
|
|
12836
12836
|
// extracted by mini-css-extract-plugin
|
|
12837
12837
|
|
|
12838
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12838
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=02f5a118&prod&lang=less&
|
|
12839
12839
|
|
|
12840
12840
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12841
12841
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40048,69 +40048,69 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
40048
40048
|
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(64465);
|
|
40049
40049
|
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(32629);
|
|
40050
40050
|
/* harmony import */ var _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(27198);
|
|
40051
|
-
/* harmony import */ var
|
|
40052
|
-
/* harmony import */ var
|
|
40053
|
-
/* harmony import */ var
|
|
40054
|
-
/* harmony import */ var
|
|
40055
|
-
/* harmony import */ var
|
|
40056
|
-
/* harmony import */ var
|
|
40057
|
-
/* harmony import */ var
|
|
40058
|
-
/* harmony import */ var
|
|
40059
|
-
/* harmony import */ var
|
|
40060
|
-
/* harmony import */ var
|
|
40061
|
-
/* harmony import */ var
|
|
40062
|
-
/* harmony import */ var
|
|
40063
|
-
/* harmony import */ var
|
|
40064
|
-
/* harmony import */ var
|
|
40065
|
-
/* harmony import */ var
|
|
40066
|
-
/* harmony import */ var
|
|
40067
|
-
/* harmony import */ var
|
|
40068
|
-
/* harmony import */ var
|
|
40069
|
-
/* harmony import */ var
|
|
40070
|
-
/* harmony import */ var
|
|
40071
|
-
/* harmony import */ var
|
|
40072
|
-
/* harmony import */ var
|
|
40073
|
-
/* harmony import */ var
|
|
40074
|
-
/* harmony import */ var
|
|
40075
|
-
/* harmony import */ var
|
|
40076
|
-
/* harmony import */ var
|
|
40077
|
-
/* harmony import */ var
|
|
40078
|
-
/* harmony import */ var
|
|
40079
|
-
/* harmony import */ var
|
|
40080
|
-
/* harmony import */ var
|
|
40081
|
-
/* harmony import */ var
|
|
40082
|
-
/* harmony import */ var
|
|
40083
|
-
/* harmony import */ var
|
|
40084
|
-
/* harmony import */ var
|
|
40085
|
-
/* harmony import */ var
|
|
40086
|
-
/* harmony import */ var
|
|
40087
|
-
/* harmony import */ var
|
|
40088
|
-
/* harmony import */ var
|
|
40089
|
-
/* harmony import */ var
|
|
40090
|
-
/* harmony import */ var
|
|
40091
|
-
/* harmony import */ var
|
|
40092
|
-
/* harmony import */ var
|
|
40093
|
-
/* harmony import */ var
|
|
40094
|
-
/* harmony import */ var
|
|
40095
|
-
/* harmony import */ var
|
|
40096
|
-
/* harmony import */ var
|
|
40097
|
-
/* harmony import */ var
|
|
40098
|
-
/* harmony import */ var
|
|
40099
|
-
/* harmony import */ var
|
|
40100
|
-
/* harmony import */ var
|
|
40101
|
-
/* harmony import */ var
|
|
40102
|
-
/* harmony import */ var
|
|
40103
|
-
/* harmony import */ var
|
|
40104
|
-
/* harmony import */ var
|
|
40105
|
-
/* harmony import */ var
|
|
40106
|
-
/* harmony import */ var
|
|
40107
|
-
/* harmony import */ var
|
|
40108
|
-
/* harmony import */ var
|
|
40109
|
-
/* harmony import */ var
|
|
40110
|
-
/* harmony import */ var
|
|
40111
|
-
/* harmony import */ var
|
|
40112
|
-
/* harmony import */ var
|
|
40113
|
-
/* harmony import */ var
|
|
40051
|
+
/* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(78560);
|
|
40052
|
+
/* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(67945);
|
|
40053
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(94639);
|
|
40054
|
+
/* harmony import */ var _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(1544);
|
|
40055
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(29899);
|
|
40056
|
+
/* harmony import */ var _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(90432);
|
|
40057
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(931);
|
|
40058
|
+
/* harmony import */ var _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(71144);
|
|
40059
|
+
/* harmony import */ var _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(38938);
|
|
40060
|
+
/* harmony import */ var _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(38695);
|
|
40061
|
+
/* harmony import */ var _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(45836);
|
|
40062
|
+
/* harmony import */ var _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(19995);
|
|
40063
|
+
/* harmony import */ var _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(59621);
|
|
40064
|
+
/* harmony import */ var _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(47088);
|
|
40065
|
+
/* harmony import */ var _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(13307);
|
|
40066
|
+
/* harmony import */ var _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(11429);
|
|
40067
|
+
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(80177);
|
|
40068
|
+
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(90161);
|
|
40069
|
+
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(57727);
|
|
40070
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(97186);
|
|
40071
|
+
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(96637);
|
|
40072
|
+
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(12659);
|
|
40073
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(5010);
|
|
40074
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(8277);
|
|
40075
|
+
/* harmony import */ var _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(99152);
|
|
40076
|
+
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(92501);
|
|
40077
|
+
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(45712);
|
|
40078
|
+
/* harmony import */ var _SubDocManger__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(80556);
|
|
40079
|
+
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(68598);
|
|
40080
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(79546);
|
|
40081
|
+
/* harmony import */ var _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(61024);
|
|
40082
|
+
/* harmony import */ var _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(48458);
|
|
40083
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(48988);
|
|
40084
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(34908);
|
|
40085
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(43109);
|
|
40086
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(64180);
|
|
40087
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(24799);
|
|
40088
|
+
/* harmony import */ var _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(36288);
|
|
40089
|
+
/* harmony import */ var _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(92827);
|
|
40090
|
+
/* harmony import */ var _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(2592);
|
|
40091
|
+
/* harmony import */ var _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(10719);
|
|
40092
|
+
/* harmony import */ var _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(66034);
|
|
40093
|
+
/* harmony import */ var _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(90832);
|
|
40094
|
+
/* harmony import */ var _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(14871);
|
|
40095
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(52269);
|
|
40096
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(30589);
|
|
40097
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(2613);
|
|
40098
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(53901);
|
|
40099
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(74089);
|
|
40100
|
+
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(56422);
|
|
40101
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(80437);
|
|
40102
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(96635);
|
|
40103
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(39385);
|
|
40104
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(95089);
|
|
40105
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(42921);
|
|
40106
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(24701);
|
|
40107
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(76830);
|
|
40108
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(73632);
|
|
40109
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(90809);
|
|
40110
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(34910);
|
|
40111
|
+
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(330);
|
|
40112
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(63602);
|
|
40113
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(51760);
|
|
40114
40114
|
|
|
40115
40115
|
|
|
40116
40116
|
|
|
@@ -40261,19 +40261,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40261
40261
|
if (!bNormalized) {
|
|
40262
40262
|
aRange = range.normalize();
|
|
40263
40263
|
}
|
|
40264
|
-
var hoEditorFactory =
|
|
40264
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40265
40265
|
var creatorIndex = -1;
|
|
40266
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40266
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && aRange.npEnd.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
40267
40267
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
40268
40268
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
40269
40269
|
}
|
|
40270
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40270
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && oper !== 'update' && creatorIndex === -1) {
|
|
40271
40271
|
hoEditorFactory.undoService.begin();
|
|
40272
|
-
hoEditorFactory.undoService.add(new
|
|
40272
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p('reviewDelete', 'string')));
|
|
40273
40273
|
hoEditorFactory.undoService.commit();
|
|
40274
40274
|
} else {
|
|
40275
40275
|
hoEditorFactory.undoService.begin();
|
|
40276
|
-
var nodesDeleteUndoUnit = new
|
|
40276
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
40277
40277
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
40278
40278
|
hoEditorFactory.undoService.commit();
|
|
40279
40279
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -40283,10 +40283,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40283
40283
|
}, {
|
|
40284
40284
|
key: "insertNodeByPath",
|
|
40285
40285
|
value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle) {
|
|
40286
|
-
var hoEditorFactory =
|
|
40286
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40287
40287
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40288
40288
|
var parentNode = node.parentNode;
|
|
40289
|
-
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && parentNode instanceof
|
|
40289
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !isHasRelateEle
|
|
40290
40290
|
//&& !parentNode.downListProperty.listItems?.includes("<元素>")
|
|
40291
40291
|
) {
|
|
40292
40292
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
@@ -40314,11 +40314,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40314
40314
|
|
|
40315
40315
|
if (!isError) {
|
|
40316
40316
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40317
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40317
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40318
40318
|
path = curDomRange.endPath;
|
|
40319
40319
|
}
|
|
40320
40320
|
var npNode = curDomRange.npEnd.node;
|
|
40321
|
-
if (npNode && npNode instanceof
|
|
40321
|
+
if (npNode && npNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && npNode.MarkNodeType == 1) {
|
|
40322
40322
|
path = npNode.parentNode.StartMarkNode.getNodePath();
|
|
40323
40323
|
}
|
|
40324
40324
|
hoEditorFactory.undoService.begin();
|
|
@@ -40336,8 +40336,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40336
40336
|
}, {
|
|
40337
40337
|
key: "keyBoardInput",
|
|
40338
40338
|
value: function keyBoardInput(text) {
|
|
40339
|
-
var hoEditorFactory =
|
|
40340
|
-
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus ===
|
|
40339
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40340
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40341
40341
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
40342
40342
|
return;
|
|
40343
40343
|
}
|
|
@@ -40366,7 +40366,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40366
40366
|
// }
|
|
40367
40367
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .OperType */ .y.keyBoardInput);
|
|
40368
40368
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
40369
|
-
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof
|
|
40369
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40370
40370
|
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
40371
40371
|
var cellNode = domRange.npStart.node.parentNode;
|
|
40372
40372
|
var colIndex = cellNode.row.indexOf(cellNode);
|
|
@@ -40397,7 +40397,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40397
40397
|
}, {
|
|
40398
40398
|
key: "insertNodeText",
|
|
40399
40399
|
value: function insertNodeText(node, path, text) {
|
|
40400
|
-
var hoEditorFactory =
|
|
40400
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40401
40401
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40402
40402
|
var isError;
|
|
40403
40403
|
if (!curRange.isEmpty) {
|
|
@@ -40421,7 +40421,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40421
40421
|
if (!isError) {
|
|
40422
40422
|
hoEditorFactory.undoService.begin();
|
|
40423
40423
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
40424
|
-
hoEditorFactory.undoService.add(new
|
|
40424
|
+
hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
|
|
40425
40425
|
hoEditorFactory.undoService.commit();
|
|
40426
40426
|
}
|
|
40427
40427
|
}
|
|
@@ -40494,10 +40494,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40494
40494
|
strPath = res;
|
|
40495
40495
|
if (index === arrSubString.length - 1) {
|
|
40496
40496
|
if (!isEndLine) {
|
|
40497
|
-
var paragraphNode = new
|
|
40497
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40498
40498
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40499
40499
|
} else {
|
|
40500
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40500
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40501
40501
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40502
40502
|
pNode.update();
|
|
40503
40503
|
}
|
|
@@ -40511,27 +40511,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40511
40511
|
} else {
|
|
40512
40512
|
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
40513
40513
|
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
40514
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
40514
|
+
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
|
|
40515
40515
|
var textNode = node;
|
|
40516
40516
|
_this.insertNodeText(textNode, strPath, aText);
|
|
40517
40517
|
//strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40518
40518
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
40519
40519
|
} else {
|
|
40520
40520
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
40521
|
-
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index
|
|
40521
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40522
40522
|
}
|
|
40523
40523
|
} else {
|
|
40524
40524
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40525
|
-
if (pNode instanceof
|
|
40525
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && node === pNode.first() && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40526
40526
|
styleIndex = node.styleIndex;
|
|
40527
40527
|
}
|
|
40528
40528
|
if (aTextArray[0] > 1) {
|
|
40529
40529
|
var newStyle = hoEditorFactory.docTree.styles[styleIndex].clone();
|
|
40530
|
-
newStyle.script = aTextArray[0] == 2 ?
|
|
40530
|
+
newStyle.script = aTextArray[0] == 2 ? _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsup : _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsub;
|
|
40531
40531
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
40532
40532
|
}
|
|
40533
40533
|
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
40534
|
-
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index
|
|
40534
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40535
40535
|
}
|
|
40536
40536
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
40537
40537
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -40539,14 +40539,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40539
40539
|
// }
|
|
40540
40540
|
if (index === arrSubString.length - 1) {
|
|
40541
40541
|
if (!isEndLine) {
|
|
40542
|
-
var paragraphNode = new
|
|
40542
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40543
40543
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40544
40544
|
} else {
|
|
40545
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40545
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40546
40546
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40547
40547
|
pNode.update();
|
|
40548
40548
|
var ppNode = pNode.parentNode;
|
|
40549
|
-
if (ppNode instanceof
|
|
40549
|
+
if (ppNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40550
40550
|
ppNode.drawCell.needUpdate = true;
|
|
40551
40551
|
ppNode.table.update();
|
|
40552
40552
|
}
|
|
@@ -40579,7 +40579,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40579
40579
|
key: "insertPlainTextAfterPath",
|
|
40580
40580
|
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent) {
|
|
40581
40581
|
var _this2 = this;
|
|
40582
|
-
var hoEditorFactory =
|
|
40582
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40583
40583
|
if (text === '') {
|
|
40584
40584
|
return;
|
|
40585
40585
|
}
|
|
@@ -40595,10 +40595,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40595
40595
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40596
40596
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
40597
40597
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
40598
|
-
var nodeStyle = new
|
|
40598
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40599
40599
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
40600
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40601
|
-
var newHistory = new
|
|
40600
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40601
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40602
40602
|
var historyIndex = newHistory.userCompare();
|
|
40603
40603
|
nodeStyle.creatorIndex = historyIndex;
|
|
40604
40604
|
if (nodeStyle.combineStyle.strikeout) {
|
|
@@ -40611,33 +40611,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40611
40611
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
40612
40612
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40613
40613
|
var pNode = node.parentNode;
|
|
40614
|
-
if (pNode instanceof
|
|
40614
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40615
40615
|
curStyleIndex = node.styleIndex;
|
|
40616
40616
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40617
40617
|
}
|
|
40618
40618
|
var slibs = nodePosition.roots;
|
|
40619
|
-
if (pNode && pNode instanceof
|
|
40619
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && node == pNode.last()) {
|
|
40620
40620
|
slibs = pNode.getParentNodes();
|
|
40621
40621
|
pNode = pNode.parentNode;
|
|
40622
40622
|
}
|
|
40623
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40623
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40624
40624
|
if (curTextStyle.strikeout) {
|
|
40625
|
-
var _nodeStyle = new
|
|
40625
|
+
var _nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40626
40626
|
_nodeStyle.copyProperty(curTextStyle, _nodeStyle);
|
|
40627
40627
|
_nodeStyle.strikeout = false;
|
|
40628
40628
|
_nodeStyle.deleterIndex = -1;
|
|
40629
|
-
var _newHistory = new
|
|
40629
|
+
var _newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40630
40630
|
var _historyIndex = _newHistory.userCompare();
|
|
40631
40631
|
_nodeStyle.creatorIndex = _historyIndex;
|
|
40632
40632
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(_nodeStyle);
|
|
40633
40633
|
}
|
|
40634
40634
|
}
|
|
40635
40635
|
var canModifyContent = true;
|
|
40636
|
-
if (pNode instanceof
|
|
40636
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40637
40637
|
canModifyContent = pNode.canModifyContent;
|
|
40638
40638
|
}
|
|
40639
40639
|
var insertParagraph = function insertParagraph(aPath) {
|
|
40640
|
-
var paragraphNode = new
|
|
40640
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this2._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
|
|
40641
40641
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
40642
40642
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
40643
40643
|
};
|
|
@@ -40653,13 +40653,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40653
40653
|
strPath = insertParagraph(strPath);
|
|
40654
40654
|
resolve(strPath);
|
|
40655
40655
|
} else {
|
|
40656
|
-
if (pNode instanceof
|
|
40656
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40657
40657
|
pNode.canModifyContent = canModifyContent;
|
|
40658
40658
|
}
|
|
40659
40659
|
var isUpdate = false;
|
|
40660
40660
|
if (oldCanModifyContent !== undefined) {
|
|
40661
40661
|
isUpdate = true;
|
|
40662
|
-
if (pNode instanceof
|
|
40662
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
40663
40663
|
isUpdate = false;
|
|
40664
40664
|
}
|
|
40665
40665
|
}
|
|
@@ -40683,7 +40683,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40683
40683
|
}, {
|
|
40684
40684
|
key: "directionKey",
|
|
40685
40685
|
value: function directionKey(keyValue) {
|
|
40686
|
-
var hoEditorFactory =
|
|
40686
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40687
40687
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40688
40688
|
var oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
40689
40689
|
var startPath = domRange.startPath;
|
|
@@ -40692,13 +40692,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40692
40692
|
if (!domRange.isEmpty) {
|
|
40693
40693
|
//有选中区域
|
|
40694
40694
|
if (keyValue === 'left' || keyValue === 'up') {
|
|
40695
|
-
newRange = new
|
|
40695
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
40696
40696
|
} else {
|
|
40697
|
-
newRange = new
|
|
40697
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
40698
40698
|
}
|
|
40699
40699
|
} else {
|
|
40700
40700
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
40701
|
-
newRange = new
|
|
40701
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
40702
40702
|
}
|
|
40703
40703
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40704
40704
|
//const cgEvent = new SelectionChangeEvent(oldRange, newRange); //选中范围变化事件
|
|
@@ -40713,11 +40713,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40713
40713
|
value: function keyBoardDelete(keyValue) {
|
|
40714
40714
|
var startPath = '';
|
|
40715
40715
|
var endPath = '';
|
|
40716
|
-
var hoEditorFactory =
|
|
40716
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40717
40717
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
40718
40718
|
if (!domRange.isEmpty) {
|
|
40719
40719
|
domRange = domRange.normalize();
|
|
40720
|
-
} else if (hoEditorFactory.drawTree.paintStatus ===
|
|
40720
|
+
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40721
40721
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
40722
40722
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
40723
40723
|
return;
|
|
@@ -40747,7 +40747,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40747
40747
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
40748
40748
|
while (1) switch (_context.prev = _context.next) {
|
|
40749
40749
|
case 0:
|
|
40750
|
-
hoEditorFactory =
|
|
40750
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40751
40751
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40752
40752
|
if (domRange.isEmpty) {
|
|
40753
40753
|
_context.next = 6;
|
|
@@ -40782,7 +40782,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40782
40782
|
_context.next = 36;
|
|
40783
40783
|
break;
|
|
40784
40784
|
}
|
|
40785
|
-
if (!(node.parentNode instanceof
|
|
40785
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40786
40786
|
_context.next = 16;
|
|
40787
40787
|
break;
|
|
40788
40788
|
}
|
|
@@ -40817,7 +40817,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40817
40817
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
40818
40818
|
return _context.abrupt("return");
|
|
40819
40819
|
case 30:
|
|
40820
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40820
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
40821
40821
|
// hoEditorFactory.undoService.begin();
|
|
40822
40822
|
// hoEditorFactory.undoService.add(
|
|
40823
40823
|
// new NodesDeleteUndoUnit(
|
|
@@ -40828,22 +40828,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40828
40828
|
// )
|
|
40829
40829
|
// );
|
|
40830
40830
|
// hoEditorFactory.undoService.commit();
|
|
40831
|
-
aRange = new
|
|
40831
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
40832
40832
|
this.deleteRange(aRange, true);
|
|
40833
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40833
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
40834
40834
|
_context.next = 123;
|
|
40835
40835
|
break;
|
|
40836
40836
|
case 36:
|
|
40837
|
-
if (!(node instanceof
|
|
40837
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40838
40838
|
_context.next = 56;
|
|
40839
40839
|
break;
|
|
40840
40840
|
}
|
|
40841
40841
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
40842
|
-
if (!(node.parentNode && node.parentNode instanceof
|
|
40842
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re)) {
|
|
40843
40843
|
_context.next = 51;
|
|
40844
40844
|
break;
|
|
40845
40845
|
}
|
|
40846
|
-
if (!(node.parentNode.childNodes[1] instanceof
|
|
40846
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40847
40847
|
_context.next = 44;
|
|
40848
40848
|
break;
|
|
40849
40849
|
}
|
|
@@ -40867,7 +40867,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40867
40867
|
}
|
|
40868
40868
|
return _context.abrupt("return");
|
|
40869
40869
|
case 51:
|
|
40870
|
-
_aRange = new
|
|
40870
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
40871
40871
|
).normalize();
|
|
40872
40872
|
isError = this.deleteRange(_aRange, true);
|
|
40873
40873
|
if (isError) {
|
|
@@ -40886,12 +40886,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40886
40886
|
_context.next = 123;
|
|
40887
40887
|
break;
|
|
40888
40888
|
case 56:
|
|
40889
|
-
if (!(node instanceof
|
|
40889
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
40890
40890
|
_context.next = 82;
|
|
40891
40891
|
break;
|
|
40892
40892
|
}
|
|
40893
40893
|
prevNode = node.prevSibling();
|
|
40894
|
-
if (!(prevNode instanceof
|
|
40894
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh)) {
|
|
40895
40895
|
_context.next = 60;
|
|
40896
40896
|
break;
|
|
40897
40897
|
}
|
|
@@ -40901,7 +40901,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40901
40901
|
_context.next = 82;
|
|
40902
40902
|
break;
|
|
40903
40903
|
}
|
|
40904
|
-
if (!(node.parentNode instanceof
|
|
40904
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40905
40905
|
_context.next = 81;
|
|
40906
40906
|
break;
|
|
40907
40907
|
}
|
|
@@ -40910,7 +40910,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40910
40910
|
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
40911
40911
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
40912
40912
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
40913
|
-
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof
|
|
40913
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
40914
40914
|
_context.next = 78;
|
|
40915
40915
|
break;
|
|
40916
40916
|
}
|
|
@@ -40920,7 +40920,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40920
40920
|
// );
|
|
40921
40921
|
// await hoEditorFactory.undoService.commit();
|
|
40922
40922
|
hoEditorFactory.undoService.begin();
|
|
40923
|
-
hoEditorFactory.undoService.add(new
|
|
40923
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
40924
40924
|
_context.next = 72;
|
|
40925
40925
|
return hoEditorFactory.undoService.commit();
|
|
40926
40926
|
case 72:
|
|
@@ -40936,14 +40936,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40936
40936
|
case 81:
|
|
40937
40937
|
return _context.abrupt("return");
|
|
40938
40938
|
case 82:
|
|
40939
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40939
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
40940
40940
|
_context.next = 87;
|
|
40941
40941
|
break;
|
|
40942
40942
|
}
|
|
40943
40943
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
40944
40944
|
return _context.abrupt("return");
|
|
40945
40945
|
case 87:
|
|
40946
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40946
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40947
40947
|
_context.next = 92;
|
|
40948
40948
|
break;
|
|
40949
40949
|
}
|
|
@@ -40955,21 +40955,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40955
40955
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
40956
40956
|
return _context.abrupt("return");
|
|
40957
40957
|
case 92:
|
|
40958
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40958
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40959
40959
|
_context.next = 95;
|
|
40960
40960
|
break;
|
|
40961
40961
|
}
|
|
40962
40962
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
40963
40963
|
return _context.abrupt("return");
|
|
40964
40964
|
case 95:
|
|
40965
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40965
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
40966
40966
|
_context.next = 98;
|
|
40967
40967
|
break;
|
|
40968
40968
|
}
|
|
40969
40969
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
40970
40970
|
return _context.abrupt("return");
|
|
40971
40971
|
case 98:
|
|
40972
|
-
if (!(node instanceof
|
|
40972
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40973
40973
|
_context.next = 118;
|
|
40974
40974
|
break;
|
|
40975
40975
|
}
|
|
@@ -40982,12 +40982,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40982
40982
|
break;
|
|
40983
40983
|
}
|
|
40984
40984
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
40985
|
-
signNode = new
|
|
40985
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, node.name === '' ? '医师签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, undefined, undefined, node.attribute, node.connectChar, node.otherProperties);
|
|
40986
40986
|
hoEditorFactory.undoService.begin();
|
|
40987
|
-
hoEditorFactory.undoService.add(new
|
|
40987
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40988
40988
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
40989
40989
|
hoEditorFactory.undoService.commit();
|
|
40990
|
-
if (node.parentNode instanceof
|
|
40990
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40991
40991
|
table = node.parentNode.table;
|
|
40992
40992
|
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
40993
40993
|
table.tableProperty.isLock = false;
|
|
@@ -41001,19 +41001,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41001
41001
|
}
|
|
41002
41002
|
return _context.abrupt("return");
|
|
41003
41003
|
case 113:
|
|
41004
|
-
if (node.connectMode == '换行' && preNode instanceof
|
|
41004
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
41005
41005
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
41006
41006
|
}
|
|
41007
41007
|
hoEditorFactory.undoService.begin();
|
|
41008
|
-
hoEditorFactory.undoService.add(new
|
|
41008
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
41009
41009
|
hoEditorFactory.undoService.commit();
|
|
41010
41010
|
return _context.abrupt("return");
|
|
41011
41011
|
case 118:
|
|
41012
41012
|
pNode = node.parentNode;
|
|
41013
41013
|
hoEditorFactory.undoService.begin();
|
|
41014
|
-
hoEditorFactory.undoService.add(new
|
|
41014
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41015
41015
|
hoEditorFactory.undoService.commit();
|
|
41016
|
-
if (pNode && pNode instanceof
|
|
41016
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
41017
41017
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
41018
41018
|
}
|
|
41019
41019
|
case 123:
|
|
@@ -41046,7 +41046,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41046
41046
|
key: "deleteTextAfterPath",
|
|
41047
41047
|
value: function deleteTextAfterPath(path) {
|
|
41048
41048
|
var _this3 = this;
|
|
41049
|
-
var hoEditorFactory =
|
|
41049
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41050
41050
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
41051
41051
|
if (!domRange.isEmpty) {
|
|
41052
41052
|
domRange = domRange.normalize();
|
|
@@ -41073,13 +41073,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41073
41073
|
if (tmp instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41074
41074
|
return hoEditorFactory.docTree.getNodeFirstPath(tmp);
|
|
41075
41075
|
} else if (tmp) {
|
|
41076
|
-
if (tmp instanceof
|
|
41076
|
+
if (tmp instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
41077
41077
|
var nextNode = tmp.nextSibling();
|
|
41078
|
-
if (nextNode instanceof
|
|
41078
|
+
if (nextNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh) {
|
|
41079
41079
|
return;
|
|
41080
41080
|
} else {
|
|
41081
41081
|
hoEditorFactory.undoService.begin();
|
|
41082
|
-
hoEditorFactory.undoService.add(new
|
|
41082
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this3._hoEditorFactoryID, tmp, tmp.getNodePath()));
|
|
41083
41083
|
hoEditorFactory.undoService.commit();
|
|
41084
41084
|
return;
|
|
41085
41085
|
}
|
|
@@ -41112,17 +41112,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41112
41112
|
}, {
|
|
41113
41113
|
key: "KeyBoardEnterEvent",
|
|
41114
41114
|
value: function KeyBoardEnterEvent(strPath) {
|
|
41115
|
-
var hoEditorFactory =
|
|
41115
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41116
41116
|
//判断当前是否有选中
|
|
41117
41117
|
var arange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41118
41118
|
if (!arange.isEmpty) {
|
|
41119
|
-
if (arange.npEnd.node instanceof
|
|
41119
|
+
if (arange.npEnd.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z || arange.npEnd.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF) {
|
|
41120
41120
|
var prevNodePath = hoEditorFactory.docTree.getNodeLastPath(arange.npEnd.node.previousLeaf());
|
|
41121
41121
|
if (prevNodePath === arange.startPath) {
|
|
41122
41122
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
41123
41123
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
41124
41124
|
if (drawArea) {
|
|
41125
|
-
var nodeNeedModifyEvent = new
|
|
41125
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
41126
41126
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
41127
41127
|
return;
|
|
41128
41128
|
} else {
|
|
@@ -41141,34 +41141,34 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41141
41141
|
//处理结尾,如果是在一个复合结点的结尾,插入节点的Parent与复合节点相同,否慢其Parent为复合节点
|
|
41142
41142
|
var parentnode = np.node.parentNode;
|
|
41143
41143
|
if (parentnode) {
|
|
41144
|
-
if (np.node instanceof
|
|
41144
|
+
if (np.node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41145
41145
|
if (parentnode.last() == np.node) {
|
|
41146
41146
|
parentnode = parentnode.parentNode;
|
|
41147
41147
|
}
|
|
41148
|
-
} else if (parentnode instanceof
|
|
41148
|
+
} else if (parentnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41149
41149
|
if (strPath === "".concat(parentnode.getNodePath(), "/0") && parentnode.table.childNodes.indexOf(parentnode) == 0) {
|
|
41150
|
-
var _paraNode = new
|
|
41150
|
+
var _paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, parentnode.table.paragraphNode.rootNodes, parentnode.table.paragraphNode.parentNode, parentnode.table.paragraphNode.paraNo);
|
|
41151
41151
|
_paraNode.styleIndex = parentnode.table.paragraphNode.styleIndex;
|
|
41152
41152
|
_paraNode.node2DrawNode();
|
|
41153
41153
|
hoEditorFactory.undoService.begin();
|
|
41154
|
-
hoEditorFactory.undoService.add(new
|
|
41154
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__/* .TableInsertParagraphUndoUnit */ .r(this._hoEditorFactoryID, parentnode.table, _paraNode));
|
|
41155
41155
|
hoEditorFactory.undoService.commit();
|
|
41156
41156
|
return;
|
|
41157
41157
|
}
|
|
41158
41158
|
}
|
|
41159
41159
|
}
|
|
41160
|
-
var paraNode = new
|
|
41160
|
+
var paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentnode, hoEditorFactory.docTree.curParaNo);
|
|
41161
41161
|
this.insertNodeByPath(strPath, paraNode);
|
|
41162
41162
|
}
|
|
41163
41163
|
}
|
|
41164
41164
|
}, {
|
|
41165
41165
|
key: "selectARange",
|
|
41166
41166
|
value: function selectARange(startPath, endPath) {
|
|
41167
|
-
var hoEditorFactory =
|
|
41167
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41168
41168
|
var oldRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41169
|
-
var newRange = new
|
|
41169
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
41170
41170
|
hoEditorFactory.undoService.begin();
|
|
41171
|
-
hoEditorFactory.undoService.add(new
|
|
41171
|
+
hoEditorFactory.undoService.add(new _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__/* .SelectionUndoUnit */ .t(this._hoEditorFactoryID, oldRange, newRange));
|
|
41172
41172
|
hoEditorFactory.undoService.commit();
|
|
41173
41173
|
}
|
|
41174
41174
|
// /**
|
|
@@ -41200,7 +41200,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41200
41200
|
}, {
|
|
41201
41201
|
key: "fontStyleChange",
|
|
41202
41202
|
value: function fontStyleChange(operateType, curDomRange) {
|
|
41203
|
-
var hoEditorFactory =
|
|
41203
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41204
41204
|
var normalDomRange = curDomRange.normalize();
|
|
41205
41205
|
var astart = normalDomRange.npStart.node;
|
|
41206
41206
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41208,7 +41208,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41208
41208
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41209
41209
|
}
|
|
41210
41210
|
hoEditorFactory.undoService.begin();
|
|
41211
|
-
hoEditorFactory.undoService.add(new
|
|
41211
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType)));
|
|
41212
41212
|
hoEditorFactory.undoService.commit();
|
|
41213
41213
|
}
|
|
41214
41214
|
/**
|
|
@@ -41220,7 +41220,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41220
41220
|
}, {
|
|
41221
41221
|
key: "fontStyleChangeBool",
|
|
41222
41222
|
value: function fontStyleChangeBool(operateType, curDomRange, isSelsected) {
|
|
41223
|
-
var hoEditorFactory =
|
|
41223
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41224
41224
|
var normalDomRange = curDomRange.normalize();
|
|
41225
41225
|
var astart = normalDomRange.npStart.node;
|
|
41226
41226
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41228,7 +41228,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41228
41228
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41229
41229
|
}
|
|
41230
41230
|
hoEditorFactory.undoService.begin();
|
|
41231
|
-
hoEditorFactory.undoService.add(new
|
|
41231
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, operateType === 'fontBold' || operateType === 'fontItalic' ? isSelsected : undefined)));
|
|
41232
41232
|
hoEditorFactory.undoService.commit();
|
|
41233
41233
|
}
|
|
41234
41234
|
/**
|
|
@@ -41240,7 +41240,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41240
41240
|
}, {
|
|
41241
41241
|
key: "fontStyleChangeStr",
|
|
41242
41242
|
value: function fontStyleChangeStr(operateType, curDomRange, changeValue) {
|
|
41243
|
-
var hoEditorFactory =
|
|
41243
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41244
41244
|
var normalDomRange = curDomRange.normalize();
|
|
41245
41245
|
var astart = normalDomRange.npStart.node;
|
|
41246
41246
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41248,7 +41248,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41248
41248
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41249
41249
|
}
|
|
41250
41250
|
hoEditorFactory.undoService.begin();
|
|
41251
|
-
hoEditorFactory.undoService.add(new
|
|
41251
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, changeValue)));
|
|
41252
41252
|
hoEditorFactory.undoService.commit();
|
|
41253
41253
|
}
|
|
41254
41254
|
/**
|
|
@@ -41311,7 +41311,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41311
41311
|
}, {
|
|
41312
41312
|
key: "undoOperate",
|
|
41313
41313
|
value: function undoOperate() {
|
|
41314
|
-
|
|
41314
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
41315
41315
|
return;
|
|
41316
41316
|
}
|
|
41317
41317
|
/**
|
|
@@ -41320,7 +41320,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41320
41320
|
}, {
|
|
41321
41321
|
key: "redoOperate",
|
|
41322
41322
|
value: function redoOperate() {
|
|
41323
|
-
|
|
41323
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
41324
41324
|
return;
|
|
41325
41325
|
}
|
|
41326
41326
|
/**
|
|
@@ -41332,11 +41332,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41332
41332
|
}, {
|
|
41333
41333
|
key: "paraStyleChange",
|
|
41334
41334
|
value: function paraStyleChange(operateType, curDomRange, selectablePara) {
|
|
41335
|
-
var op = new
|
|
41335
|
+
var op = new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, selectablePara);
|
|
41336
41336
|
var currDom = curDomRange;
|
|
41337
|
-
|
|
41338
|
-
|
|
41339
|
-
|
|
41337
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41338
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .LineStyleUndoUnit */ .d(this._hoEditorFactoryID, currDom.startPath, currDom.endPath, op));
|
|
41339
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41340
41340
|
}
|
|
41341
41341
|
}, {
|
|
41342
41342
|
key: "copy",
|
|
@@ -41380,26 +41380,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41380
41380
|
var domRange = curDomRange.normalize();
|
|
41381
41381
|
var startPath = domRange.endPath;
|
|
41382
41382
|
if (operType === 'update') {
|
|
41383
|
-
var np =
|
|
41383
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41384
41384
|
if (np) {
|
|
41385
41385
|
var node = np.node;
|
|
41386
|
-
if (node instanceof
|
|
41387
|
-
|
|
41388
|
-
|
|
41386
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41387
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41388
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41389
41389
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41390
41390
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41391
|
-
startPath =
|
|
41391
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41392
41392
|
}
|
|
41393
41393
|
}
|
|
41394
41394
|
}
|
|
41395
|
-
var parentNode =
|
|
41396
|
-
var menstrualHistoryNode = new
|
|
41395
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41396
|
+
var menstrualHistoryNode = new _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_39__/* .MenstrualHistoryNode */ .n(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
41397
41397
|
//插入该表达式节点
|
|
41398
41398
|
if (operType === 'add') {
|
|
41399
|
-
|
|
41399
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41400
41400
|
}
|
|
41401
|
-
|
|
41402
|
-
|
|
41401
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
41402
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41403
41403
|
}
|
|
41404
41404
|
/**
|
|
41405
41405
|
* 瞳孔图
|
|
@@ -41417,26 +41417,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41417
41417
|
var domRange = curDomRange.normalize();
|
|
41418
41418
|
var startPath = domRange.endPath;
|
|
41419
41419
|
if (operType === 'update') {
|
|
41420
|
-
var np =
|
|
41420
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41421
41421
|
if (np) {
|
|
41422
41422
|
var node = np.node;
|
|
41423
|
-
if (node instanceof
|
|
41424
|
-
|
|
41425
|
-
|
|
41423
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41424
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41425
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41426
41426
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41427
41427
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41428
|
-
startPath =
|
|
41428
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41429
41429
|
}
|
|
41430
41430
|
}
|
|
41431
41431
|
}
|
|
41432
|
-
var parentNode =
|
|
41433
|
-
var pupilMapNode = new
|
|
41432
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41433
|
+
var pupilMapNode = new _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_40__/* .PupilMapNode */ .v(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7);
|
|
41434
41434
|
//插入该表达式节点
|
|
41435
41435
|
if (operType === 'add') {
|
|
41436
|
-
|
|
41436
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41437
41437
|
}
|
|
41438
|
-
|
|
41439
|
-
|
|
41438
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pupilMapNode));
|
|
41439
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41440
41440
|
}
|
|
41441
41441
|
/**
|
|
41442
41442
|
* 光定位图
|
|
@@ -41456,26 +41456,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41456
41456
|
var domRange = curDomRange.normalize();
|
|
41457
41457
|
var startPath = domRange.endPath;
|
|
41458
41458
|
if (operType === 'update') {
|
|
41459
|
-
var np =
|
|
41459
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41460
41460
|
if (np) {
|
|
41461
41461
|
var node = np.node;
|
|
41462
|
-
if (node instanceof
|
|
41463
|
-
|
|
41464
|
-
|
|
41462
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41463
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41464
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41465
41465
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41466
41466
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41467
|
-
startPath =
|
|
41467
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41468
41468
|
}
|
|
41469
41469
|
}
|
|
41470
41470
|
}
|
|
41471
|
-
var parentNode =
|
|
41472
|
-
var lightLocationMapNode = new
|
|
41471
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41472
|
+
var lightLocationMapNode = new _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
41473
41473
|
//插入该表达式节点
|
|
41474
41474
|
if (operType === 'add') {
|
|
41475
|
-
|
|
41475
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41476
41476
|
}
|
|
41477
|
-
|
|
41478
|
-
|
|
41477
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, lightLocationMapNode));
|
|
41478
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41479
41479
|
}
|
|
41480
41480
|
/**
|
|
41481
41481
|
* 胎心图
|
|
@@ -41492,26 +41492,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41492
41492
|
var domRange = curDomRange.normalize();
|
|
41493
41493
|
var startPath = domRange.endPath;
|
|
41494
41494
|
if (operType === 'update') {
|
|
41495
|
-
var np =
|
|
41495
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41496
41496
|
if (np) {
|
|
41497
41497
|
var node = np.node;
|
|
41498
|
-
if (node instanceof
|
|
41499
|
-
|
|
41500
|
-
|
|
41498
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41499
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41500
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41501
41501
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41502
41502
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41503
|
-
startPath =
|
|
41503
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41504
41504
|
}
|
|
41505
41505
|
}
|
|
41506
41506
|
}
|
|
41507
|
-
var parentNode =
|
|
41508
|
-
var fetalHeartMapNode = new
|
|
41507
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41508
|
+
var fetalHeartMapNode = new _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__/* .FetalHeartMapNode */ .t(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6);
|
|
41509
41509
|
//插入该表达式节点
|
|
41510
41510
|
if (operType === 'add') {
|
|
41511
|
-
|
|
41511
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41512
41512
|
}
|
|
41513
|
-
|
|
41514
|
-
|
|
41513
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, fetalHeartMapNode));
|
|
41514
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41515
41515
|
}
|
|
41516
41516
|
/**
|
|
41517
41517
|
* 恒牙牙位图
|
|
@@ -41526,26 +41526,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41526
41526
|
var domRange = curDomRange.normalize();
|
|
41527
41527
|
var startPath = domRange.endPath;
|
|
41528
41528
|
if (operType === 'update') {
|
|
41529
|
-
var np =
|
|
41529
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41530
41530
|
if (np) {
|
|
41531
41531
|
var node = np.node;
|
|
41532
|
-
if (node instanceof
|
|
41533
|
-
|
|
41534
|
-
|
|
41532
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41533
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41534
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41535
41535
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41536
41536
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41537
|
-
startPath =
|
|
41537
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41538
41538
|
}
|
|
41539
41539
|
}
|
|
41540
41540
|
}
|
|
41541
|
-
var parentNode =
|
|
41542
|
-
var permanentTeethMapNode = new
|
|
41541
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41542
|
+
var permanentTeethMapNode = new _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_43__/* .PermanentTeethMapNode */ .f(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark);
|
|
41543
41543
|
//插入该表达式节点
|
|
41544
41544
|
if (operType === 'add') {
|
|
41545
|
-
|
|
41545
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41546
41546
|
}
|
|
41547
|
-
|
|
41548
|
-
|
|
41547
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, permanentTeethMapNode));
|
|
41548
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41549
41549
|
}
|
|
41550
41550
|
/**
|
|
41551
41551
|
* 乳牙牙位图
|
|
@@ -41559,14 +41559,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41559
41559
|
value: function insertPrimaryTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected) {
|
|
41560
41560
|
var domRange = curDomRange.normalize();
|
|
41561
41561
|
var startPath = domRange.endPath;
|
|
41562
|
-
var hoEditorFactory =
|
|
41562
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41563
41563
|
if (operType === 'update') {
|
|
41564
41564
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41565
41565
|
if (np) {
|
|
41566
41566
|
var node = np.node;
|
|
41567
|
-
if (node instanceof
|
|
41567
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41568
41568
|
hoEditorFactory.undoService.begin();
|
|
41569
|
-
hoEditorFactory.undoService.add(new
|
|
41569
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41570
41570
|
//hoEditorFactory.undoService.commit();
|
|
41571
41571
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41572
41572
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41574,7 +41574,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41574
41574
|
}
|
|
41575
41575
|
}
|
|
41576
41576
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41577
|
-
var primaryTeethMapNode = new
|
|
41577
|
+
var primaryTeethMapNode = new _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_44__/* .PrimaryTeethMapNode */ .x(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
41578
41578
|
//插入该表达式节点
|
|
41579
41579
|
if (operType === 'add') {
|
|
41580
41580
|
hoEditorFactory.undoService.begin();
|
|
@@ -41592,17 +41592,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41592
41592
|
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
41593
41593
|
var domRange = curDomRange.normalize();
|
|
41594
41594
|
var startPath = domRange.endPath;
|
|
41595
|
-
var hoEditorFactory =
|
|
41595
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41596
41596
|
var childNodes = [];
|
|
41597
41597
|
if (operType === 'update') {
|
|
41598
41598
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41599
41599
|
if (np && np.node) {
|
|
41600
41600
|
var node;
|
|
41601
|
-
if (np.node instanceof
|
|
41601
|
+
if (np.node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41602
41602
|
node = np.node;
|
|
41603
41603
|
childNodes = node.childNodes;
|
|
41604
41604
|
}
|
|
41605
|
-
if (np.node.parentNode instanceof
|
|
41605
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41606
41606
|
node = np.node.parentNode;
|
|
41607
41607
|
childNodes = np.node.parentNode.childNodes;
|
|
41608
41608
|
}
|
|
@@ -41610,13 +41610,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41610
41610
|
//const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
41611
41611
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41612
41612
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41613
|
-
var changeEvent = new
|
|
41613
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41614
41614
|
changeEvent.oldEndPath = ePath;
|
|
41615
|
-
changeEvent.oldDrawLines = new
|
|
41615
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41616
41616
|
node.setValuesObject(valuesObject);
|
|
41617
41617
|
// const values = eval("(" + valuesObject + ")");
|
|
41618
41618
|
var values = valuesObject;
|
|
41619
|
-
if (node.childNodes.length == 3 && node.childNodes[1] instanceof
|
|
41619
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41620
41620
|
if (node.childNodes2[1].text !== node.name) {
|
|
41621
41621
|
var text = node.childNodes2[1].text;
|
|
41622
41622
|
node.childNodes2[1].clearDrawNodes(0, text.length - 1);
|
|
@@ -41638,7 +41638,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41638
41638
|
var atnode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, atext, hoEditorFactory.docTree.curStyleIndex);
|
|
41639
41639
|
node.childNodes.splice(node.childNodes.length - 1, 0, atnode);
|
|
41640
41640
|
if (i < textArr.length - 1) {
|
|
41641
|
-
var apnode = new
|
|
41641
|
+
var apnode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node, hoEditorFactory.docTree.curParaNo);
|
|
41642
41642
|
node.childNodes.splice(node.childNodes.length - 1, 0, apnode);
|
|
41643
41643
|
}
|
|
41644
41644
|
}
|
|
@@ -41667,11 +41667,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41667
41667
|
if (pnode && pnode.parentNode) {
|
|
41668
41668
|
pnode = pnode.parentNode;
|
|
41669
41669
|
}
|
|
41670
|
-
if (pnode instanceof
|
|
41670
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41671
41671
|
break;
|
|
41672
41672
|
}
|
|
41673
41673
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
41674
|
-
if (pnode instanceof
|
|
41674
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41675
41675
|
if (Number(values['inputFieldType']) === 1) {
|
|
41676
41676
|
pnode.drawCell.needUpdate = true;
|
|
41677
41677
|
pnode.table.update();
|
|
@@ -41694,7 +41694,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41694
41694
|
}
|
|
41695
41695
|
}
|
|
41696
41696
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41697
|
-
var textInputFieldNode = new
|
|
41697
|
+
var textInputFieldNode = new _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntField, valuesObject);
|
|
41698
41698
|
// if (operType === "update") {
|
|
41699
41699
|
// const values = eval("(" + valuesObject + ")");
|
|
41700
41700
|
// if (values["inputFieldType"] === 0) {
|
|
@@ -41714,7 +41714,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41714
41714
|
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
41715
41715
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
41716
41716
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
41717
|
-
if (parentNode instanceof
|
|
41717
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41718
41718
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
41719
41719
|
} else {
|
|
41720
41720
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
@@ -41733,9 +41733,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41733
41733
|
value: function insertImage(curDomRange, imagePath, width, height, options) {
|
|
41734
41734
|
var domRange = curDomRange.normalize();
|
|
41735
41735
|
var startPath = domRange.startPath;
|
|
41736
|
-
var hoEditorFactory =
|
|
41736
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41737
41737
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41738
|
-
var imageNode = new
|
|
41738
|
+
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_48__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), imagePath, width, height, options);
|
|
41739
41739
|
//插入该表达式节点
|
|
41740
41740
|
hoEditorFactory.undoService.begin();
|
|
41741
41741
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
@@ -41759,21 +41759,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41759
41759
|
innerIdentifier) {
|
|
41760
41760
|
var domRange = curDomRange.normalize();
|
|
41761
41761
|
var startPath = domRange.endPath;
|
|
41762
|
-
var hoEditorFactory =
|
|
41762
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41763
41763
|
if (operType === 'update') {
|
|
41764
41764
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41765
41765
|
if (np) {
|
|
41766
41766
|
var node = np.node;
|
|
41767
|
-
if (node instanceof
|
|
41767
|
+
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .BarcodeNode */ .T) {
|
|
41768
41768
|
hoEditorFactory.undoService.begin();
|
|
41769
|
-
hoEditorFactory.undoService.add(new
|
|
41769
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41770
41770
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41771
41771
|
}
|
|
41772
41772
|
}
|
|
41773
41773
|
}
|
|
41774
41774
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41775
41775
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
41776
|
-
var barCodeNode = new
|
|
41776
|
+
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id,
|
|
41777
41777
|
//name,
|
|
41778
41778
|
innerIdentifier, textContent, isDisplayText, imagePath, width, height
|
|
41779
41779
|
//,bandDataSource
|
|
@@ -41805,14 +41805,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41805
41805
|
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
|
|
41806
41806
|
var domRange = curDomRange.normalize();
|
|
41807
41807
|
var startPath = domRange.endPath;
|
|
41808
|
-
var hoEditorFactory =
|
|
41808
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41809
41809
|
if (operType === 'update') {
|
|
41810
41810
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41811
41811
|
if (np) {
|
|
41812
41812
|
var node = np.node;
|
|
41813
|
-
if (node instanceof
|
|
41813
|
+
if (node instanceof _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .QrcodeNode */ .d) {
|
|
41814
41814
|
hoEditorFactory.undoService.begin();
|
|
41815
|
-
hoEditorFactory.undoService.add(new
|
|
41815
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41816
41816
|
//hoEditorFactory.undoService.commit();
|
|
41817
41817
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41818
41818
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41820,7 +41820,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41820
41820
|
}
|
|
41821
41821
|
}
|
|
41822
41822
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41823
|
-
var qrcodeNode = new
|
|
41823
|
+
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
|
|
41824
41824
|
//插入该表达式节点
|
|
41825
41825
|
if (operType === 'add') {
|
|
41826
41826
|
hoEditorFactory.undoService.begin();
|
|
@@ -41831,27 +41831,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41831
41831
|
}, {
|
|
41832
41832
|
key: "updateCodeContent",
|
|
41833
41833
|
value: function updateCodeContent(node, content) {
|
|
41834
|
-
var hoEditorFactory =
|
|
41834
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41835
41835
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41836
41836
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41837
|
-
var changeEvent = new
|
|
41837
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41838
41838
|
changeEvent.oldEndPath = ePath;
|
|
41839
41839
|
changeEvent.afterChangePath = ePath;
|
|
41840
|
-
changeEvent.oldDrawLines = new
|
|
41840
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41841
41841
|
node.textContent = content;
|
|
41842
41842
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41843
41843
|
}
|
|
41844
41844
|
}, {
|
|
41845
41845
|
key: "insertTable",
|
|
41846
41846
|
value: function insertTable(arange, row, col) {
|
|
41847
|
-
var hoEditorFactory =
|
|
41847
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41848
41848
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41849
41849
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41850
|
-
if (parentNode instanceof
|
|
41850
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41851
41851
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
41852
41852
|
return;
|
|
41853
41853
|
}
|
|
41854
|
-
if (parentNode instanceof
|
|
41854
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41855
41855
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
41856
41856
|
return;
|
|
41857
41857
|
}
|
|
@@ -41881,10 +41881,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41881
41881
|
// paraNode
|
|
41882
41882
|
// );
|
|
41883
41883
|
// }
|
|
41884
|
-
var tableProperty = new
|
|
41885
|
-
var tableNode = new
|
|
41884
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE('');
|
|
41885
|
+
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
41886
41886
|
hoEditorFactory.undoService.begin();
|
|
41887
|
-
hoEditorFactory.undoService.add(new
|
|
41887
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
41888
41888
|
hoEditorFactory.undoService.commit();
|
|
41889
41889
|
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
41890
41890
|
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
@@ -41899,7 +41899,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41899
41899
|
}, {
|
|
41900
41900
|
key: "insertTableRowAbove",
|
|
41901
41901
|
value: function insertTableRowAbove(arange, count) {
|
|
41902
|
-
var hoEditorFactory =
|
|
41902
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41903
41903
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41904
41904
|
if (np && np.node) {
|
|
41905
41905
|
// const index = np.childIndex;
|
|
@@ -41907,20 +41907,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41907
41907
|
// }else{
|
|
41908
41908
|
// }
|
|
41909
41909
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
41910
|
-
if (cell && cell instanceof
|
|
41911
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41910
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41911
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
41912
41912
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
41913
41913
|
_cell$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
41914
41914
|
r = _cell$table$getCellIn2[0],
|
|
41915
41915
|
c = _cell$table$getCellIn2[1];
|
|
41916
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41916
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
41917
41917
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41918
41918
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
41919
41919
|
return;
|
|
41920
41920
|
}
|
|
41921
41921
|
}
|
|
41922
41922
|
hoEditorFactory.undoService.begin();
|
|
41923
|
-
hoEditorFactory.undoService.add(new
|
|
41923
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
41924
41924
|
hoEditorFactory.undoService.commit();
|
|
41925
41925
|
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
41926
41926
|
if (newLineWithCellContent) {
|
|
@@ -41931,26 +41931,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41931
41931
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41932
41932
|
var spath = sCell.childNodes[0].getNodePath();
|
|
41933
41933
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41934
|
-
var domRange = new
|
|
41934
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41935
41935
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
41936
41936
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41937
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
41937
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
41938
41938
|
for (var n = 0; n < nodes.length; n++) {
|
|
41939
41939
|
var anode = nodes[n];
|
|
41940
41940
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41941
41941
|
nodes.splice(n, 1);
|
|
41942
|
-
} else if (anode instanceof
|
|
41942
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
41943
41943
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
41944
|
-
var markNode = new
|
|
41944
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
41945
41945
|
anode.childNodes.splice(1, 0, markNode);
|
|
41946
|
-
} else if (anode instanceof
|
|
41946
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
41947
41947
|
anode.text = anode.name;
|
|
41948
41948
|
anode.keyValue = '';
|
|
41949
41949
|
anode.node2DrawNode();
|
|
41950
|
-
} else if (anode instanceof
|
|
41950
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
41951
41951
|
anode.text = anode.labelText;
|
|
41952
41952
|
anode.node2DrawNode();
|
|
41953
|
-
} else if (anode instanceof
|
|
41953
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
41954
41954
|
anode.number = 0;
|
|
41955
41955
|
anode.type = 0;
|
|
41956
41956
|
anode.signor = '';
|
|
@@ -41989,8 +41989,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41989
41989
|
if (sCellNode && eCellNode) {
|
|
41990
41990
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
41991
41991
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
41992
|
-
var newRange = new
|
|
41993
|
-
var cgEvent = new
|
|
41992
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
41993
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
41994
41994
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
41995
41995
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
41996
41996
|
}
|
|
@@ -42021,24 +42021,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42021
42021
|
}, {
|
|
42022
42022
|
key: "insertTableRowBelow",
|
|
42023
42023
|
value: function insertTableRowBelow(arange, count) {
|
|
42024
|
-
var hoEditorFactory =
|
|
42024
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42025
42025
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42026
42026
|
if (np && np.node) {
|
|
42027
42027
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42028
|
-
if (cell && cell instanceof
|
|
42029
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42028
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42029
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
42030
42030
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
42031
42031
|
_cell$table$getCellIn4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
42032
42032
|
r = _cell$table$getCellIn4[0],
|
|
42033
42033
|
c = _cell$table$getCellIn4[1];
|
|
42034
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42034
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42035
42035
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
42036
42036
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
42037
42037
|
return;
|
|
42038
42038
|
}
|
|
42039
42039
|
}
|
|
42040
42040
|
hoEditorFactory.undoService.begin();
|
|
42041
|
-
hoEditorFactory.undoService.add(new
|
|
42041
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
42042
42042
|
hoEditorFactory.undoService.commit();
|
|
42043
42043
|
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
42044
42044
|
if (newLineWithCellContent) {
|
|
@@ -42049,26 +42049,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42049
42049
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
42050
42050
|
var spath = sCell.childNodes[0].getNodePath();
|
|
42051
42051
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
42052
|
-
var domRange = new
|
|
42052
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
42053
42053
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
42054
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
42054
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
42055
42055
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
42056
42056
|
for (var n = 0; n < nodes.length; n++) {
|
|
42057
42057
|
var anode = nodes[n];
|
|
42058
42058
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
42059
42059
|
nodes.splice(n, 1);
|
|
42060
|
-
} else if (anode instanceof
|
|
42060
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
42061
42061
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
42062
|
-
var markNode = new
|
|
42062
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
42063
42063
|
anode.childNodes.splice(1, 0, markNode);
|
|
42064
|
-
} else if (anode instanceof
|
|
42064
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
42065
42065
|
anode.text = anode.name;
|
|
42066
42066
|
anode.keyValue = '';
|
|
42067
42067
|
anode.node2DrawNode();
|
|
42068
|
-
} else if (anode instanceof
|
|
42068
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
42069
42069
|
anode.text = anode.labelText;
|
|
42070
42070
|
anode.node2DrawNode();
|
|
42071
|
-
} else if (anode instanceof
|
|
42071
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
42072
42072
|
anode.number = 0;
|
|
42073
42073
|
anode.type = 0;
|
|
42074
42074
|
anode.signor = '';
|
|
@@ -42107,8 +42107,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42107
42107
|
if (sCellNode && eCellNode) {
|
|
42108
42108
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42109
42109
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42110
|
-
var newRange = new
|
|
42111
|
-
var cgEvent = new
|
|
42110
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42111
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42112
42112
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42113
42113
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42114
42114
|
}
|
|
@@ -42139,19 +42139,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42139
42139
|
}, {
|
|
42140
42140
|
key: "insertTableColLeft",
|
|
42141
42141
|
value: function insertTableColLeft(arange, count) {
|
|
42142
|
-
var hoEditorFactory =
|
|
42142
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42143
42143
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42144
42144
|
if (np && np.node) {
|
|
42145
42145
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42146
|
-
if (cell && cell instanceof
|
|
42146
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42147
42147
|
var status = hoEditorFactory.drawTree.paintStatus;
|
|
42148
|
-
if (status ==
|
|
42148
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42149
42149
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
42150
42150
|
_cell$table$getCellIn6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
42151
42151
|
r = _cell$table$getCellIn6[0],
|
|
42152
42152
|
c = _cell$table$getCellIn6[1];
|
|
42153
42153
|
hoEditorFactory.undoService.begin();
|
|
42154
|
-
hoEditorFactory.undoService.add(new
|
|
42154
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
42155
42155
|
hoEditorFactory.undoService.commit();
|
|
42156
42156
|
var sCellNode = cell.table.rows[0][c];
|
|
42157
42157
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
@@ -42166,8 +42166,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42166
42166
|
if (sCellNode && eCellNode) {
|
|
42167
42167
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42168
42168
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42169
|
-
var newRange = new
|
|
42170
|
-
var cgEvent = new
|
|
42169
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42170
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42171
42171
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42172
42172
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42173
42173
|
}
|
|
@@ -42200,18 +42200,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42200
42200
|
}, {
|
|
42201
42201
|
key: "insertTableColRight",
|
|
42202
42202
|
value: function insertTableColRight(arange, count) {
|
|
42203
|
-
var hoEditorFactory =
|
|
42203
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42204
42204
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42205
42205
|
if (np && np.node) {
|
|
42206
42206
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42207
|
-
if (cell && cell instanceof
|
|
42208
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42207
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42208
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42209
42209
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
42210
42210
|
_cell$table$getCellIn8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
42211
42211
|
r = _cell$table$getCellIn8[0],
|
|
42212
42212
|
c = _cell$table$getCellIn8[1];
|
|
42213
42213
|
hoEditorFactory.undoService.begin();
|
|
42214
|
-
hoEditorFactory.undoService.add(new
|
|
42214
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
42215
42215
|
hoEditorFactory.undoService.commit();
|
|
42216
42216
|
var sCellNode = cell.table.rows[0][c + 1];
|
|
42217
42217
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
@@ -42226,8 +42226,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42226
42226
|
if (sCellNode && eCellNode) {
|
|
42227
42227
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42228
42228
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42229
|
-
var newRange = new
|
|
42230
|
-
var cgEvent = new
|
|
42229
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42230
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42231
42231
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42232
42232
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42233
42233
|
}
|
|
@@ -42258,7 +42258,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42258
42258
|
}, {
|
|
42259
42259
|
key: "tableDeleteRows",
|
|
42260
42260
|
value: function tableDeleteRows(aRange) {
|
|
42261
|
-
var _TableNode$getSelectT =
|
|
42261
|
+
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42262
42262
|
_TableNode$getSelectT2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT, 5),
|
|
42263
42263
|
table = _TableNode$getSelectT2[0],
|
|
42264
42264
|
r1 = _TableNode$getSelectT2[1],
|
|
@@ -42273,8 +42273,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42273
42273
|
// if (eParentNode instanceof CellNode && eParentNode.rowSpan > 1) {
|
|
42274
42274
|
// r2 = r2 + eParentNode.rowSpan - 1;
|
|
42275
42275
|
// }
|
|
42276
|
-
var hoEditorFactory =
|
|
42277
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42276
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42277
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42278
42278
|
for (var i = r1; i <= r2; i++) {
|
|
42279
42279
|
var rowInfo = table.rowInfos[i];
|
|
42280
42280
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -42291,7 +42291,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42291
42291
|
return;
|
|
42292
42292
|
}
|
|
42293
42293
|
hoEditorFactory.undoService.begin();
|
|
42294
|
-
hoEditorFactory.undoService.add(new
|
|
42294
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
42295
42295
|
hoEditorFactory.undoService.commit();
|
|
42296
42296
|
if (table.childNodes.length > 0) {
|
|
42297
42297
|
var path = '';
|
|
@@ -42304,9 +42304,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42304
42304
|
var firstCell = table.childNodes[0];
|
|
42305
42305
|
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42306
42306
|
}
|
|
42307
|
-
var newDomRange = new
|
|
42307
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42308
42308
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42309
|
-
var cgEvent = new
|
|
42309
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42310
42310
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42311
42311
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42312
42312
|
}
|
|
@@ -42329,7 +42329,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42329
42329
|
}, {
|
|
42330
42330
|
key: "tableDeleteCols",
|
|
42331
42331
|
value: function tableDeleteCols(aRange) {
|
|
42332
|
-
var _TableNode$getSelectT3 =
|
|
42332
|
+
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42333
42333
|
_TableNode$getSelectT4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT3, 5),
|
|
42334
42334
|
table = _TableNode$getSelectT4[0],
|
|
42335
42335
|
r1 = _TableNode$getSelectT4[1],
|
|
@@ -42340,9 +42340,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42340
42340
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
42341
42341
|
return;
|
|
42342
42342
|
}
|
|
42343
|
-
var hoEditorFactory =
|
|
42343
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42344
42344
|
var eParentNode = aRange.npEnd.node.parentNode;
|
|
42345
|
-
if (eParentNode instanceof
|
|
42345
|
+
if (eParentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D && eParentNode.colSpan > 1) {
|
|
42346
42346
|
c2 = c2 + eParentNode.colSpan - 1;
|
|
42347
42347
|
}
|
|
42348
42348
|
if (c1 === 0 && c2 == table.colCount - 1) {
|
|
@@ -42353,14 +42353,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42353
42353
|
return;
|
|
42354
42354
|
}
|
|
42355
42355
|
hoEditorFactory.undoService.begin();
|
|
42356
|
-
hoEditorFactory.undoService.add(new
|
|
42356
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__/* .TableDeleteColUndoUnit */ .u(this._hoEditorFactoryID, table, c1, c2 - c1 + 1));
|
|
42357
42357
|
hoEditorFactory.undoService.commit();
|
|
42358
42358
|
if (table.childNodes.length > 0) {
|
|
42359
42359
|
var firstCell = table.childNodes[0];
|
|
42360
42360
|
var path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42361
|
-
var newDomRange = new
|
|
42361
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42362
42362
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42363
|
-
var cgEvent = new
|
|
42363
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42364
42364
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42365
42365
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42366
42366
|
}
|
|
@@ -42383,13 +42383,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42383
42383
|
}, {
|
|
42384
42384
|
key: "tableMergerCells",
|
|
42385
42385
|
value: function tableMergerCells(aRange) {
|
|
42386
|
-
var hoEditorFactory =
|
|
42386
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42387
42387
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42388
42388
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42389
42389
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42390
42390
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42391
42391
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42392
|
-
if (!(cell1 instanceof
|
|
42392
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
42393
42393
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
42394
42394
|
return;
|
|
42395
42395
|
}
|
|
@@ -42412,7 +42412,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42412
42412
|
aColSpan = _cell1$table$canMerge2[2];
|
|
42413
42413
|
if (ret) {
|
|
42414
42414
|
hoEditorFactory.undoService.begin();
|
|
42415
|
-
hoEditorFactory.undoService.add(new
|
|
42415
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell1.table, r1, c1, aRowSpan, aColSpan));
|
|
42416
42416
|
hoEditorFactory.undoService.commit();
|
|
42417
42417
|
// cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
42418
42418
|
// const endPath = (cell1 as CellNode).table.getNodePath();
|
|
@@ -42435,13 +42435,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42435
42435
|
}, {
|
|
42436
42436
|
key: "tableUnMergerCells",
|
|
42437
42437
|
value: function tableUnMergerCells(aRange) {
|
|
42438
|
-
var hoEditorFactory =
|
|
42438
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42439
42439
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42440
42440
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42441
42441
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42442
42442
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42443
42443
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42444
|
-
if (!(cell1 instanceof
|
|
42444
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
42445
42445
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
42446
42446
|
return;
|
|
42447
42447
|
}
|
|
@@ -42469,7 +42469,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42469
42469
|
var cell = cell1.table.rows[r][c];
|
|
42470
42470
|
if (cell && (cell.rowSpan > 1 || cell.colSpan > 1)) {
|
|
42471
42471
|
hoEditorFactory.undoService.begin();
|
|
42472
|
-
hoEditorFactory.undoService.add(new
|
|
42472
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__/* .TableUnMergeCellUndoUnit */ .u(this._hoEditorFactoryID, cell1.table, r, c));
|
|
42473
42473
|
hoEditorFactory.undoService.commit();
|
|
42474
42474
|
}
|
|
42475
42475
|
}
|
|
@@ -42494,7 +42494,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42494
42494
|
}, {
|
|
42495
42495
|
key: "setTableProperty",
|
|
42496
42496
|
value: function setTableProperty(objectValues, tableNode) {
|
|
42497
|
-
var tableProperty = new
|
|
42497
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE(objectValues);
|
|
42498
42498
|
tableNode.tableProperty = tableProperty;
|
|
42499
42499
|
}
|
|
42500
42500
|
/**
|
|
@@ -42506,9 +42506,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42506
42506
|
key: "setRowProperty",
|
|
42507
42507
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
42508
42508
|
var _this4 = this;
|
|
42509
|
-
var hoEditorFactory =
|
|
42509
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42510
42510
|
var setRowProps = function setRowProps(rowInfo) {
|
|
42511
|
-
var rowProperty = new
|
|
42511
|
+
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .RowProperty */ .Nr(objectValues);
|
|
42512
42512
|
var oldRowProperty = rowInfo.rowProperty;
|
|
42513
42513
|
rowInfo.rowProperty = rowProperty;
|
|
42514
42514
|
if (rowProperty.isSpecifyHeight && rowProperty.rowHeight !== oldRowProperty.rowHeight) {
|
|
@@ -42517,7 +42517,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42517
42517
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
42518
42518
|
if (r >= 0) {
|
|
42519
42519
|
hoEditorFactory.undoService.begin();
|
|
42520
|
-
hoEditorFactory.undoService.add(new
|
|
42520
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableResizeRowUndoUnit */ .w(_this4._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
42521
42521
|
hoEditorFactory.undoService.commit();
|
|
42522
42522
|
}
|
|
42523
42523
|
}
|
|
@@ -42526,7 +42526,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42526
42526
|
setRowProps(rowInfo);
|
|
42527
42527
|
} else {
|
|
42528
42528
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42529
|
-
var rowscols =
|
|
42529
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42530
42530
|
if (rowscols[0]) {
|
|
42531
42531
|
var startRowNo = rowscols[1];
|
|
42532
42532
|
var endRowNo = rowscols[3];
|
|
@@ -42544,7 +42544,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42544
42544
|
}
|
|
42545
42545
|
}
|
|
42546
42546
|
rowInfo.table.update();
|
|
42547
|
-
var cgEvent = new
|
|
42547
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42548
42548
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42549
42549
|
}
|
|
42550
42550
|
/**
|
|
@@ -42556,9 +42556,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42556
42556
|
key: "setColProperty",
|
|
42557
42557
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
42558
42558
|
var _this5 = this;
|
|
42559
|
-
var hoEditorFactory =
|
|
42559
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42560
42560
|
var setColProps = function setColProps(colInfo) {
|
|
42561
|
-
var colProperty = new
|
|
42561
|
+
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .ColProperty */ .Ti(objectValues);
|
|
42562
42562
|
var oldColProperty = colInfo.colProperty;
|
|
42563
42563
|
colInfo.colProperty = colProperty;
|
|
42564
42564
|
if (colProperty.isSpecifyWidth && colProperty.width !== oldColProperty.width) {
|
|
@@ -42566,7 +42566,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42566
42566
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
42567
42567
|
if (c >= 0) {
|
|
42568
42568
|
hoEditorFactory.undoService.begin();
|
|
42569
|
-
hoEditorFactory.undoService.add(new
|
|
42569
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__/* .TableResizeColUndoUnit */ .D(_this5._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
42570
42570
|
hoEditorFactory.undoService.commit();
|
|
42571
42571
|
}
|
|
42572
42572
|
}
|
|
@@ -42586,7 +42586,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42586
42586
|
setColProps(colInfo);
|
|
42587
42587
|
} else {
|
|
42588
42588
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42589
|
-
var rowscols =
|
|
42589
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42590
42590
|
if (rowscols[0]) {
|
|
42591
42591
|
var startColNo = rowscols[2];
|
|
42592
42592
|
var endColNo = rowscols[4];
|
|
@@ -42604,7 +42604,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42604
42604
|
}
|
|
42605
42605
|
}
|
|
42606
42606
|
colInfo.table.update();
|
|
42607
|
-
var cgEvent = new
|
|
42607
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42608
42608
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42609
42609
|
}
|
|
42610
42610
|
/**
|
|
@@ -42615,7 +42615,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42615
42615
|
}, {
|
|
42616
42616
|
key: "setCellProperty",
|
|
42617
42617
|
value: function setCellProperty(objectValues, cellNode) {
|
|
42618
|
-
var cellProperty = new
|
|
42618
|
+
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
42619
42619
|
cellNode.cellProperty = cellProperty;
|
|
42620
42620
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
42621
42621
|
pcell.valignTop = pcell.calcValignTop(pcell.dHeight)[0];
|
|
@@ -42627,12 +42627,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42627
42627
|
}, {
|
|
42628
42628
|
key: "addHeader",
|
|
42629
42629
|
value: function addHeader(arange) {
|
|
42630
|
-
var hoEditorFactory =
|
|
42630
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42631
42631
|
//切换路径
|
|
42632
42632
|
var cpage = hoEditorFactory.drawTree.activePage;
|
|
42633
|
-
if (!cpage) throw
|
|
42633
|
+
if (!cpage) throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.LineNotDefined();
|
|
42634
42634
|
//切换当前页面页眉
|
|
42635
|
-
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex,
|
|
42635
|
+
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex, _SubDocManger__WEBPACK_IMPORTED_MODULE_56__/* .HeaderFooterType */ .pi.hftHead);
|
|
42636
42636
|
// const index = hoEditorFactory.drawTree.headerDNodes.length;
|
|
42637
42637
|
// const newPath = `${gHeaderPath}/${index}`;
|
|
42638
42638
|
// cpage?.drawDomLevel?.drawHeader.DeletePage(cpage);
|
|
@@ -42677,15 +42677,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42677
42677
|
value: function insertRadioAndCheckBox(operType, curDomRange, valuesObject, styleIndex) {
|
|
42678
42678
|
var domRange = curDomRange.normalize();
|
|
42679
42679
|
var startPath = domRange.endPath;
|
|
42680
|
-
var hoEditorFactory =
|
|
42680
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42681
42681
|
var oldIsTransToText = false;
|
|
42682
42682
|
if (operType === 'update') {
|
|
42683
42683
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
42684
42684
|
if (np) {
|
|
42685
42685
|
var node = np.node;
|
|
42686
|
-
if (node instanceof
|
|
42686
|
+
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42687
42687
|
hoEditorFactory.undoService.begin();
|
|
42688
|
-
hoEditorFactory.undoService.add(new
|
|
42688
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42689
42689
|
oldIsTransToText = node.isTransToText;
|
|
42690
42690
|
//hoEditorFactory.undoService.commit();
|
|
42691
42691
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42701,7 +42701,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42701
42701
|
//valuesObj["text"] = "";
|
|
42702
42702
|
//valuesObject = JSON.stringify(valuesObj);
|
|
42703
42703
|
//}
|
|
42704
|
-
var radioAndCheckBoxNode = new
|
|
42704
|
+
var radioAndCheckBoxNode = new _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__/* .RadioAndCheckBoxNode */ .Yh(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex);
|
|
42705
42705
|
//插入该表达式节点
|
|
42706
42706
|
if (operType === 'add') {
|
|
42707
42707
|
hoEditorFactory.undoService.begin();
|
|
@@ -42725,7 +42725,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42725
42725
|
}, {
|
|
42726
42726
|
key: "find",
|
|
42727
42727
|
value: function find(curDomRange, findContent, direction, matchCase) {
|
|
42728
|
-
var hoEditorFactory =
|
|
42728
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42729
42729
|
if (this._findContent.length === 0) {
|
|
42730
42730
|
this._findContent = findContent;
|
|
42731
42731
|
this._count++;
|
|
@@ -42778,8 +42778,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42778
42778
|
}
|
|
42779
42779
|
}
|
|
42780
42780
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
42781
|
-
var newRange = new
|
|
42782
|
-
var cgEvent = new
|
|
42781
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, returnPath, path);
|
|
42782
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42783
42783
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42784
42784
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42785
42785
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
@@ -42797,7 +42797,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42797
42797
|
}, {
|
|
42798
42798
|
key: "replace",
|
|
42799
42799
|
value: function replace(curDomRange, findContent, replaceContent, path, type, direction, matchCase) {
|
|
42800
|
-
var hoEditorFactory =
|
|
42800
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42801
42801
|
var domRange = curDomRange.normalize();
|
|
42802
42802
|
var startNode = domRange.npStart.node;
|
|
42803
42803
|
var sNode = startNode;
|
|
@@ -42851,7 +42851,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42851
42851
|
var endPath1 = getArr1[1];
|
|
42852
42852
|
var newTextNode1 = getArr1[2];
|
|
42853
42853
|
hoEditorFactory.undoService.begin();
|
|
42854
|
-
hoEditorFactory.undoService.add(new
|
|
42854
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
42855
42855
|
if (replaceContent !== '') {
|
|
42856
42856
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
42857
42857
|
}
|
|
@@ -42875,7 +42875,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42875
42875
|
var endPath2 = getArr2[0];
|
|
42876
42876
|
var newTextNode2 = getArr2[1];
|
|
42877
42877
|
hoEditorFactory.undoService.begin();
|
|
42878
|
-
hoEditorFactory.undoService.add(new
|
|
42878
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
42879
42879
|
if (replaceContent !== '') {
|
|
42880
42880
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
42881
42881
|
}
|
|
@@ -42885,8 +42885,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42885
42885
|
if (replaceContent !== '') {
|
|
42886
42886
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
42887
42887
|
}
|
|
42888
|
-
var newRange = new
|
|
42889
|
-
var cgEvent = new
|
|
42888
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
42889
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42890
42890
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42891
42891
|
}
|
|
42892
42892
|
}
|
|
@@ -42909,7 +42909,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42909
42909
|
oldDataID = '';
|
|
42910
42910
|
oldId = '';
|
|
42911
42911
|
domRange = curDomRange.normalize();
|
|
42912
|
-
hoEditorFactory =
|
|
42912
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42913
42913
|
startPath = domRange.endPath;
|
|
42914
42914
|
if (!(operType === 'update')) {
|
|
42915
42915
|
_context2.next = 16;
|
|
@@ -42921,7 +42921,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42921
42921
|
break;
|
|
42922
42922
|
}
|
|
42923
42923
|
node = np.node;
|
|
42924
|
-
if (!(node instanceof
|
|
42924
|
+
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z)) {
|
|
42925
42925
|
_context2.next = 16;
|
|
42926
42926
|
break;
|
|
42927
42927
|
}
|
|
@@ -42929,14 +42929,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42929
42929
|
oldId = node.id;
|
|
42930
42930
|
hoEditorFactory.undoService.begin();
|
|
42931
42931
|
_context2.next = 15;
|
|
42932
|
-
return hoEditorFactory.undoService.add(new
|
|
42932
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42933
42933
|
case 15:
|
|
42934
42934
|
//hoEditorFactory.undoService.commit();
|
|
42935
42935
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
42936
42936
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42937
42937
|
case 16:
|
|
42938
42938
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42939
|
-
dateTimeNode = new
|
|
42939
|
+
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex); //插入该表达式节点
|
|
42940
42940
|
if (operType === 'add') {
|
|
42941
42941
|
hoEditorFactory.undoService.begin();
|
|
42942
42942
|
} else {
|
|
@@ -42976,7 +42976,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42976
42976
|
startPath = domRange.endPath;
|
|
42977
42977
|
oldDataID = '';
|
|
42978
42978
|
oldId = '';
|
|
42979
|
-
hoEditorFactory =
|
|
42979
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42980
42980
|
if (!(operType === 'update')) {
|
|
42981
42981
|
_context3.next = 16;
|
|
42982
42982
|
break;
|
|
@@ -42987,7 +42987,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42987
42987
|
break;
|
|
42988
42988
|
}
|
|
42989
42989
|
node = np.node;
|
|
42990
|
-
if (!(node instanceof
|
|
42990
|
+
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF)) {
|
|
42991
42991
|
_context3.next = 16;
|
|
42992
42992
|
break;
|
|
42993
42993
|
}
|
|
@@ -42995,14 +42995,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42995
42995
|
oldId = node.id;
|
|
42996
42996
|
hoEditorFactory.undoService.begin();
|
|
42997
42997
|
_context3.next = 15;
|
|
42998
|
-
return hoEditorFactory.undoService.add(new
|
|
42998
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42999
42999
|
case 15:
|
|
43000
43000
|
//hoEditorFactory.undoService.commit();
|
|
43001
43001
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
43002
43002
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43003
43003
|
case 16:
|
|
43004
43004
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43005
|
-
downListNode = new
|
|
43005
|
+
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex); //插入该表达式节点
|
|
43006
43006
|
if (operType === 'add') {
|
|
43007
43007
|
hoEditorFactory.undoService.begin();
|
|
43008
43008
|
} else {
|
|
@@ -43012,7 +43012,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43012
43012
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
43013
43013
|
hoEditorFactory.undoService.commit();
|
|
43014
43014
|
if (operType === 'add') {
|
|
43015
|
-
if (parentNode instanceof
|
|
43015
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43016
43016
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
43017
43017
|
} else {
|
|
43018
43018
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
@@ -43046,9 +43046,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43046
43046
|
value: function insertSpecialChars(operType, curDomRange, specialChars, styleIndex) {
|
|
43047
43047
|
var domRange = curDomRange.normalize();
|
|
43048
43048
|
var startPath = domRange.endPath;
|
|
43049
|
-
var hoEditorFactory =
|
|
43049
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43050
43050
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43051
|
-
var specialCharsNode = new
|
|
43051
|
+
var specialCharsNode = new _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_59__/* .SpecialCharsNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSpecialChar, specialChars, styleIndex);
|
|
43052
43052
|
//插入该表达式节点
|
|
43053
43053
|
hoEditorFactory.undoService.begin();
|
|
43054
43054
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
@@ -43066,9 +43066,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43066
43066
|
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
43067
43067
|
var domRange = curDomRange.normalize();
|
|
43068
43068
|
var startPath = domRange.endPath;
|
|
43069
|
-
var hoEditorFactory =
|
|
43069
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43070
43070
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43071
|
-
var rareCharNode = new
|
|
43071
|
+
var rareCharNode = new _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_88__/* .RareCharNode */ .Q(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntRareChar, text, styleIndex);
|
|
43072
43072
|
//插入该表达式节点
|
|
43073
43073
|
hoEditorFactory.undoService.begin();
|
|
43074
43074
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
@@ -43083,21 +43083,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43083
43083
|
}, {
|
|
43084
43084
|
key: "insertJumpButton",
|
|
43085
43085
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
43086
|
-
var hoEditorFactory =
|
|
43086
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43087
43087
|
var startPath = curDomRange.endPath;
|
|
43088
43088
|
if (operType === 'update') {
|
|
43089
43089
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43090
43090
|
if (np) {
|
|
43091
43091
|
var node = np.node;
|
|
43092
|
-
if (node instanceof
|
|
43092
|
+
if (node instanceof _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__/* .JumpButtonNode */ .a) {
|
|
43093
43093
|
hoEditorFactory.undoService.begin();
|
|
43094
|
-
hoEditorFactory.undoService.add(new
|
|
43094
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
43095
43095
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43096
43096
|
}
|
|
43097
43097
|
}
|
|
43098
43098
|
}
|
|
43099
43099
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43100
|
-
var jumpButtonNode = new
|
|
43100
|
+
var jumpButtonNode = new _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__/* .JumpButtonNode */ .a(this._hoEditorFactoryID, curDomRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntJumpButton, name, fileId, hoEditorFactory.docTree.curStyleIndex);
|
|
43101
43101
|
if (operType === 'add') {
|
|
43102
43102
|
hoEditorFactory.undoService.begin();
|
|
43103
43103
|
}
|
|
@@ -43111,7 +43111,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43111
43111
|
}, {
|
|
43112
43112
|
key: "setPageProperty",
|
|
43113
43113
|
value: function setPageProperty(objectValues) {
|
|
43114
|
-
var hoEditorFactory =
|
|
43114
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43115
43115
|
hoEditorFactory.pageProperty.setPageProperty(objectValues);
|
|
43116
43116
|
}
|
|
43117
43117
|
/**
|
|
@@ -43124,12 +43124,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43124
43124
|
value: function insertComment(text, curDomRange, source) {
|
|
43125
43125
|
var domRange = curDomRange.normalize();
|
|
43126
43126
|
if (!domRange.npStart.node) {
|
|
43127
|
-
throw
|
|
43127
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43128
43128
|
}
|
|
43129
43129
|
if (!domRange.npEnd.node) {
|
|
43130
|
-
throw
|
|
43130
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43131
43131
|
}
|
|
43132
|
-
var hoEditorFactory =
|
|
43132
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43133
43133
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
43134
43134
|
var startPath = domRange.startPath;
|
|
43135
43135
|
var endPath = domRange.endPath;
|
|
@@ -43138,13 +43138,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43138
43138
|
// domRange.npEnd.node instanceof TextNode
|
|
43139
43139
|
// ? domRange.npEnd.node.styleIndex
|
|
43140
43140
|
// : 0;
|
|
43141
|
-
var endNode = new
|
|
43142
|
-
endNode.MarkNodeType =
|
|
43141
|
+
var endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd);
|
|
43142
|
+
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd;
|
|
43143
43143
|
endNode.isReadOnly = true;
|
|
43144
43144
|
hoEditorFactory.undoService.begin();
|
|
43145
43145
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, endPath, endNode));
|
|
43146
43146
|
hoEditorFactory.undoService.commit();
|
|
43147
|
-
var comment = new
|
|
43147
|
+
var comment = new _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__/* .Comment */ .s(this._hoEditorFactoryID, commentID, text, endNode, source);
|
|
43148
43148
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(endNode.drawNodes[0]);
|
|
43149
43149
|
if (!curArea) {
|
|
43150
43150
|
return;
|
|
@@ -43154,7 +43154,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43154
43154
|
// 2023-05-23注释 25临时放开
|
|
43155
43155
|
curArea.drawComments();
|
|
43156
43156
|
hoEditorFactory.undoService.begin();
|
|
43157
|
-
hoEditorFactory.undoService.add(new
|
|
43157
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p('insertComment', commentID)));
|
|
43158
43158
|
hoEditorFactory.undoService.commit();
|
|
43159
43159
|
// const newEndpath = endNode.getNodePath();
|
|
43160
43160
|
// const newRange = new DomRange(
|
|
@@ -43174,7 +43174,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43174
43174
|
key: "deleteComment",
|
|
43175
43175
|
value: function deleteComment(type, commentID) {
|
|
43176
43176
|
var _this6 = this;
|
|
43177
|
-
var hoEditorFactory =
|
|
43177
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43178
43178
|
var delStyleComment = function delStyleComment(commentID) {
|
|
43179
43179
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
43180
43180
|
if (value.commentID === commentID) {
|
|
@@ -43192,7 +43192,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43192
43192
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
43193
43193
|
var endPath = comment.eNode.getNodePath();
|
|
43194
43194
|
hoEditorFactory.undoService.begin();
|
|
43195
|
-
hoEditorFactory.undoService.add(new
|
|
43195
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this6._hoEditorFactoryID, comment.eNode, endPath));
|
|
43196
43196
|
hoEditorFactory.undoService.commit();
|
|
43197
43197
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
43198
43198
|
};
|
|
@@ -43253,7 +43253,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43253
43253
|
key: "insertPageNum",
|
|
43254
43254
|
value: function insertPageNum(operType, domRange, contentType, formatType, autoSetHeight) {
|
|
43255
43255
|
var startPath = domRange.normalize().endPath;
|
|
43256
|
-
var hoEditorFactory =
|
|
43256
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43257
43257
|
// if (operType === "update") {
|
|
43258
43258
|
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
43259
43259
|
// startPath
|
|
@@ -43276,14 +43276,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43276
43276
|
//插入页码
|
|
43277
43277
|
// const pageNum = hoEditorFactory.drawTree.activePage
|
|
43278
43278
|
// ?.pageIndex as number;
|
|
43279
|
-
var pageNumNode = new
|
|
43279
|
+
var pageNumNode = new _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_69__/* .PageNumNode */ .h(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntPageNum,
|
|
43280
43280
|
//pageNum + 1,
|
|
43281
43281
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43282
43282
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageNumNode));
|
|
43283
43283
|
} else {
|
|
43284
43284
|
//插入页数
|
|
43285
43285
|
//const pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
43286
|
-
var pageCountNode = new
|
|
43286
|
+
var pageCountNode = new _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_70__/* .PageCountNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntPageCount,
|
|
43287
43287
|
//pageCount,
|
|
43288
43288
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43289
43289
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageCountNode));
|
|
@@ -43296,15 +43296,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43296
43296
|
}, {
|
|
43297
43297
|
key: "selectAll",
|
|
43298
43298
|
value: function selectAll() {
|
|
43299
|
-
var hoEditorFactory =
|
|
43299
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43300
43300
|
var curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
43301
43301
|
var path = curDomRange.normalize().startPath;
|
|
43302
43302
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(path);
|
|
43303
43303
|
if (rootNodes) {
|
|
43304
43304
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(rootNodes[0]);
|
|
43305
43305
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(rootNodes[rootNodes.length - 1]);
|
|
43306
|
-
var newRange = new
|
|
43307
|
-
var cgEvent = new
|
|
43306
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43307
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, newRange); //选中范围变化事件
|
|
43308
43308
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
43309
43309
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
43310
43310
|
}
|
|
@@ -43317,7 +43317,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43317
43317
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee4$(_context4) {
|
|
43318
43318
|
while (1) switch (_context4.prev = _context4.next) {
|
|
43319
43319
|
case 0:
|
|
43320
|
-
hoEditorFactory =
|
|
43320
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43321
43321
|
_context4.next = 3;
|
|
43322
43322
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
43323
43323
|
case 3:
|
|
@@ -43371,7 +43371,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43371
43371
|
}, {
|
|
43372
43372
|
key: "editComment",
|
|
43373
43373
|
value: function editComment(commentID, text, source) {
|
|
43374
|
-
var hoEditorFactory =
|
|
43374
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43375
43375
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
43376
43376
|
var markNode;
|
|
43377
43377
|
if (curComment) {
|
|
@@ -43489,16 +43489,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43489
43489
|
}, {
|
|
43490
43490
|
key: "insertTableFormula",
|
|
43491
43491
|
value: function insertTableFormula(domRange, formulaStr, isHideZero, formulaType) {
|
|
43492
|
-
var hoEditorFactory =
|
|
43492
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43493
43493
|
var startPath = domRange.normalize().endPath;
|
|
43494
43494
|
var pNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43495
43495
|
hoEditorFactory.undoService.begin();
|
|
43496
|
-
if (domRange.npEnd.node instanceof
|
|
43496
|
+
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N) {
|
|
43497
43497
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
43498
|
-
hoEditorFactory.undoService.add(new
|
|
43498
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
43499
43499
|
startPath = prePath;
|
|
43500
43500
|
}
|
|
43501
|
-
var tableFormula = new
|
|
43501
|
+
var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
|
|
43502
43502
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
|
|
43503
43503
|
hoEditorFactory.undoService.commit();
|
|
43504
43504
|
}
|
|
@@ -43522,8 +43522,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43522
43522
|
}, {
|
|
43523
43523
|
key: "setUserLoginInfo",
|
|
43524
43524
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
43525
|
-
var hoEditorFactory =
|
|
43526
|
-
var userLogin = new
|
|
43525
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43526
|
+
var userLogin = new _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__/* .UserInfo */ .a(this._hoEditorFactoryID);
|
|
43527
43527
|
userLogin.setUserInfo(id, name, permissionLevel, clientIP);
|
|
43528
43528
|
hoEditorFactory.userInfo = userLogin;
|
|
43529
43529
|
}
|
|
@@ -43531,10 +43531,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43531
43531
|
key: "parseNodeData",
|
|
43532
43532
|
value: function parseNodeData(nodes) {
|
|
43533
43533
|
if (nodes && nodes.length > 0) {
|
|
43534
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
43534
|
+
if (nodes.length === 1 && nodes[0] instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
43535
43535
|
return;
|
|
43536
43536
|
}
|
|
43537
|
-
var hoeditorfactory =
|
|
43537
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43538
43538
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
43539
43539
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
43540
43540
|
var parentNode = curNode.parentNode;
|
|
@@ -43551,21 +43551,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43551
43551
|
// nodes.splice(0, 1);
|
|
43552
43552
|
// }
|
|
43553
43553
|
var isChange = false;
|
|
43554
|
-
if (parentNode instanceof
|
|
43554
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43555
43555
|
parentNode.childNodes.forEach(function (value) {
|
|
43556
|
-
if (value instanceof
|
|
43556
|
+
if (value instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && value.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtContent) {
|
|
43557
43557
|
parentNode.removeChild(value);
|
|
43558
43558
|
isChange = true;
|
|
43559
43559
|
}
|
|
43560
43560
|
});
|
|
43561
43561
|
if (isChange) {
|
|
43562
|
-
var sMarkNodePath =
|
|
43563
|
-
hoeditorfactory.docTree.curDomRange = new
|
|
43562
|
+
var sMarkNodePath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
43563
|
+
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
43564
43564
|
}
|
|
43565
43565
|
}
|
|
43566
43566
|
// this._pasteNodes.splice(0, 0, nodes);
|
|
43567
43567
|
hoeditorfactory.undoService.begin();
|
|
43568
|
-
hoeditorfactory.undoService.add(new
|
|
43568
|
+
hoeditorfactory.undoService.add(new _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__/* .ParseUndoUnit */ .e(this._hoEditorFactoryID, hoeditorfactory.docTree.curDomRange.startPath, hoeditorfactory.docTree.curDomRange.endPath, nodes));
|
|
43569
43569
|
hoeditorfactory.undoService.commit();
|
|
43570
43570
|
}
|
|
43571
43571
|
}
|
|
@@ -43576,7 +43576,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43576
43576
|
}, {
|
|
43577
43577
|
key: "insertHtmlText",
|
|
43578
43578
|
value: function insertHtmlText(strHtml) {
|
|
43579
|
-
var hoEditorFactory =
|
|
43579
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43580
43580
|
var nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
43581
43581
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
43582
43582
|
}
|
|
@@ -43590,14 +43590,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43590
43590
|
}, {
|
|
43591
43591
|
key: "getRedrawObject",
|
|
43592
43592
|
value: function getRedrawObject(startPath, endPath, action) {
|
|
43593
|
-
var domRange = new
|
|
43594
|
-
var cgEvent = new
|
|
43593
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43594
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, domRange.startPath, domRange.endPath);
|
|
43595
43595
|
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daUndoInsert || action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daDelete) {
|
|
43596
43596
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43597
|
-
cgEvent.oldDrawTreeLines = new
|
|
43597
|
+
cgEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(domRange.startPath, domRange.endPath);
|
|
43598
43598
|
} else if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daParaStyleChange) {
|
|
43599
43599
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43600
|
-
cgEvent.oldDrawLines = new
|
|
43600
|
+
cgEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(domRange.startPath, domRange.endPath, false);
|
|
43601
43601
|
}
|
|
43602
43602
|
return cgEvent;
|
|
43603
43603
|
}
|
|
@@ -43609,7 +43609,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43609
43609
|
}, {
|
|
43610
43610
|
key: "modifyRedraw",
|
|
43611
43611
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
43612
|
-
var hoeditorfactory =
|
|
43612
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43613
43613
|
var endPath;
|
|
43614
43614
|
if (endModifyNode instanceof _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .BaseNode */ .Hd) endPath = hoeditorfactory.docTree.getNodeLastPath(endModifyNode);else endPath = endModifyNode;
|
|
43615
43615
|
cgEvent.afterChangePath = endPath;
|
|
@@ -43618,7 +43618,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43618
43618
|
}, {
|
|
43619
43619
|
key: "deleteRedraw",
|
|
43620
43620
|
value: function deleteRedraw(cgEvent) {
|
|
43621
|
-
var hoeditorfactory =
|
|
43621
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43622
43622
|
cgEvent.afterChangePath = cgEvent.beforeChangePath;
|
|
43623
43623
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43624
43624
|
}
|
|
@@ -43630,9 +43630,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43630
43630
|
}, {
|
|
43631
43631
|
key: "insertRedraw",
|
|
43632
43632
|
value: function insertRedraw(startPath, endPath) {
|
|
43633
|
-
var hoeditorfactory =
|
|
43634
|
-
var domRange = new
|
|
43635
|
-
var cgEvent = new
|
|
43633
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43634
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43635
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, domRange.startPath, domRange.endPath);
|
|
43636
43636
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43637
43637
|
}
|
|
43638
43638
|
/**
|
|
@@ -43643,7 +43643,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43643
43643
|
}, {
|
|
43644
43644
|
key: "insertSeparateChar",
|
|
43645
43645
|
value: function insertSeparateChar(range, width, color, line) {
|
|
43646
|
-
var hoeditorfactory =
|
|
43646
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43647
43647
|
var np = range.normalize().npStart;
|
|
43648
43648
|
if (np && np.node) {
|
|
43649
43649
|
var curLine = hoeditorfactory.drawTree.getDlineByPath(np.path);
|
|
@@ -43654,7 +43654,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43654
43654
|
var paraNode;
|
|
43655
43655
|
if (!isNullLine) {
|
|
43656
43656
|
hoeditorfactory.undoService.begin();
|
|
43657
|
-
paraNode = new
|
|
43657
|
+
paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentNode, 0);
|
|
43658
43658
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, paraLastPath, paraNode));
|
|
43659
43659
|
hoeditorfactory.undoService.commit();
|
|
43660
43660
|
} else {
|
|
@@ -43665,7 +43665,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43665
43665
|
}
|
|
43666
43666
|
hoeditorfactory.undoService.begin();
|
|
43667
43667
|
var newParaPath = paraNode.getNodePath();
|
|
43668
|
-
var separateCharNode = new
|
|
43668
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSeparateChar, width, color, line);
|
|
43669
43669
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
43670
43670
|
hoeditorfactory.undoService.commit();
|
|
43671
43671
|
}
|
|
@@ -43680,20 +43680,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43680
43680
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
43681
43681
|
var domRange = range.normalize();
|
|
43682
43682
|
var startPath = domRange.endPath;
|
|
43683
|
-
var hoEditorFactory =
|
|
43683
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43684
43684
|
if (operType === 'update') {
|
|
43685
43685
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43686
43686
|
if (np) {
|
|
43687
43687
|
var node = np.node;
|
|
43688
|
-
if (node instanceof
|
|
43688
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G) {
|
|
43689
43689
|
hoEditorFactory.undoService.begin();
|
|
43690
|
-
hoEditorFactory.undoService.add(new
|
|
43690
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
43691
43691
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43692
43692
|
}
|
|
43693
43693
|
}
|
|
43694
43694
|
}
|
|
43695
43695
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43696
|
-
var gestationNode = new
|
|
43696
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex);
|
|
43697
43697
|
//插入节点
|
|
43698
43698
|
if (operType === 'add') {
|
|
43699
43699
|
hoEditorFactory.undoService.begin();
|
|
@@ -43709,7 +43709,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43709
43709
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee5$(_context5) {
|
|
43710
43710
|
while (1) switch (_context5.prev = _context5.next) {
|
|
43711
43711
|
case 0:
|
|
43712
|
-
hoeditorfactory =
|
|
43712
|
+
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43713
43713
|
astart = range.npStart.node;
|
|
43714
43714
|
aend = range.npEnd.node;
|
|
43715
43715
|
sChildIndex = range.npStart.childIndex;
|
|
@@ -43776,8 +43776,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43776
43776
|
endPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43777
43777
|
}
|
|
43778
43778
|
}
|
|
43779
|
-
labelNode = new
|
|
43780
|
-
delRange = new
|
|
43779
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntLabel, text, anode.styleIndex, associatedElement);
|
|
43780
|
+
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43781
43781
|
_context5.next = 28;
|
|
43782
43782
|
return this.deleteRange(delRange, true);
|
|
43783
43783
|
case 28:
|
|
@@ -43789,7 +43789,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43789
43789
|
anode = anode.previousLeaf();
|
|
43790
43790
|
if (anode) {
|
|
43791
43791
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43792
|
-
result =
|
|
43792
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_83__/* .NodePosition */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
43793
43793
|
if (result <= 0) {
|
|
43794
43794
|
anode = null;
|
|
43795
43795
|
}
|
|
@@ -43817,14 +43817,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43817
43817
|
}, {
|
|
43818
43818
|
key: "labelToText",
|
|
43819
43819
|
value: function labelToText(node) {
|
|
43820
|
-
var hoeditorfactory =
|
|
43820
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43821
43821
|
node.isAllowDelete = true;
|
|
43822
43822
|
var text = node.text;
|
|
43823
43823
|
var styleIndex = node.styleIndex;
|
|
43824
43824
|
var parentNode = node.parentNode;
|
|
43825
43825
|
var prevNodePath = hoeditorfactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43826
43826
|
var lastPath = hoeditorfactory.docTree.getNodeLastPath(node);
|
|
43827
|
-
var range = new
|
|
43827
|
+
var range = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, prevNodePath, lastPath);
|
|
43828
43828
|
this.deleteRange(range, true);
|
|
43829
43829
|
hoeditorfactory.undoService.begin();
|
|
43830
43830
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
@@ -43842,7 +43842,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43842
43842
|
var loopCell = function loopCell() {
|
|
43843
43843
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43844
43844
|
var anode = cell.childNodes[j];
|
|
43845
|
-
if (anode instanceof
|
|
43845
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
43846
43846
|
mark = false;
|
|
43847
43847
|
break;
|
|
43848
43848
|
}
|
|
@@ -43887,10 +43887,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43887
43887
|
}, {
|
|
43888
43888
|
key: "insertEmptySignNode",
|
|
43889
43889
|
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties) {
|
|
43890
|
-
var hoEditorFactory =
|
|
43890
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43891
43891
|
var startPath = domRange.startPath;
|
|
43892
43892
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43893
|
-
var signNode = new
|
|
43893
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, name, signType, signFormat, '', '', signTimeFormat, '', 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar, otherProperties);
|
|
43894
43894
|
//插入该表达式节点
|
|
43895
43895
|
hoEditorFactory.undoService.begin();
|
|
43896
43896
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -43908,15 +43908,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43908
43908
|
}, {
|
|
43909
43909
|
key: "insertSignNode",
|
|
43910
43910
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
43911
|
-
var hoEditorFactory =
|
|
43911
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43912
43912
|
var startPath = domRange.startPath;
|
|
43913
43913
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43914
|
-
var signNode = new
|
|
43914
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition);
|
|
43915
43915
|
//插入该表达式节点
|
|
43916
43916
|
hoEditorFactory.undoService.begin();
|
|
43917
43917
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
43918
43918
|
hoEditorFactory.undoService.commit();
|
|
43919
|
-
if (parentNode instanceof
|
|
43919
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43920
43920
|
this.signLockCheck(parentNode);
|
|
43921
43921
|
}
|
|
43922
43922
|
}
|
|
@@ -43933,15 +43933,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43933
43933
|
}, {
|
|
43934
43934
|
key: "updateSignNode",
|
|
43935
43935
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
43936
|
-
var hoEditorFactory =
|
|
43936
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43937
43937
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43938
43938
|
if (node.imgSrc === '') {
|
|
43939
43939
|
//第一次更新签名
|
|
43940
43940
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43941
|
-
var changeEvent = new
|
|
43941
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
43942
43942
|
changeEvent.oldEndPath = ePath;
|
|
43943
43943
|
changeEvent.afterChangePath = ePath;
|
|
43944
|
-
changeEvent.oldDrawLines = new
|
|
43944
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
43945
43945
|
node.type = type;
|
|
43946
43946
|
node.name = name;
|
|
43947
43947
|
node.number = 1;
|
|
@@ -43959,7 +43959,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43959
43959
|
// }
|
|
43960
43960
|
//node.connectMode = "/";
|
|
43961
43961
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43962
|
-
if (node.parentNode instanceof
|
|
43962
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43963
43963
|
this.signLockCheck(node.parentNode);
|
|
43964
43964
|
}
|
|
43965
43965
|
} else {
|
|
@@ -43968,7 +43968,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43968
43968
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43969
43969
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
43970
43970
|
var curParaNode = dline.paragraphNode;
|
|
43971
|
-
var newPara = new
|
|
43971
|
+
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
43972
43972
|
hoEditorFactory.undoService.begin();
|
|
43973
43973
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
43974
43974
|
hoEditorFactory.undoService.commit();
|
|
@@ -43978,7 +43978,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43978
43978
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43979
43979
|
}
|
|
43980
43980
|
}
|
|
43981
|
-
var newSignNode = new
|
|
43981
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties ? otherProperties : node.otherProperties);
|
|
43982
43982
|
//插入该表达式节点
|
|
43983
43983
|
hoEditorFactory.undoService.begin();
|
|
43984
43984
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -44002,13 +44002,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44002
44002
|
}, {
|
|
44003
44003
|
key: "updateEmptySignNode",
|
|
44004
44004
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront) {
|
|
44005
|
-
var hoEditorFactory =
|
|
44005
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44006
44006
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44007
44007
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44008
|
-
var changeEvent = new
|
|
44008
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44009
44009
|
changeEvent.oldEndPath = ePath;
|
|
44010
44010
|
changeEvent.afterChangePath = ePath;
|
|
44011
|
-
changeEvent.oldDrawLines = new
|
|
44011
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44012
44012
|
node.name = name;
|
|
44013
44013
|
node.connectChar = connectChar;
|
|
44014
44014
|
node.signType = signType;
|
|
@@ -44030,13 +44030,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44030
44030
|
}, {
|
|
44031
44031
|
key: "updateSignTime",
|
|
44032
44032
|
value: function updateSignTime(node, signText) {
|
|
44033
|
-
var hoEditorFactory =
|
|
44033
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44034
44034
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44035
44035
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44036
|
-
var changeEvent = new
|
|
44036
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44037
44037
|
changeEvent.oldEndPath = ePath;
|
|
44038
44038
|
changeEvent.afterChangePath = ePath;
|
|
44039
|
-
changeEvent.oldDrawLines = new
|
|
44039
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44040
44040
|
node.imgSrc = signText;
|
|
44041
44041
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44042
44042
|
}
|
|
@@ -44049,13 +44049,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44049
44049
|
}, {
|
|
44050
44050
|
key: "updateSignType",
|
|
44051
44051
|
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
44052
|
-
var hoEditorFactory =
|
|
44052
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44053
44053
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44054
44054
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44055
|
-
var changeEvent = new
|
|
44055
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44056
44056
|
changeEvent.oldEndPath = ePath;
|
|
44057
44057
|
changeEvent.afterChangePath = ePath;
|
|
44058
|
-
changeEvent.oldDrawLines = new
|
|
44058
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44059
44059
|
node.type = type;
|
|
44060
44060
|
node.imgWidth = imgWidth;
|
|
44061
44061
|
node.imgHeight = imgHeight;
|
|
@@ -44070,13 +44070,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44070
44070
|
}, {
|
|
44071
44071
|
key: "updateSignCustomProp",
|
|
44072
44072
|
value: function updateSignCustomProp(node, customProperty) {
|
|
44073
|
-
var hoEditorFactory =
|
|
44073
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44074
44074
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44075
44075
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44076
|
-
var changeEvent = new
|
|
44076
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44077
44077
|
changeEvent.oldEndPath = ePath;
|
|
44078
44078
|
changeEvent.afterChangePath = ePath;
|
|
44079
|
-
changeEvent.oldDrawLines = new
|
|
44079
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44080
44080
|
node.customProperty = customProperty;
|
|
44081
44081
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44082
44082
|
}
|
|
@@ -44087,7 +44087,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44087
44087
|
}, {
|
|
44088
44088
|
key: "getLogs",
|
|
44089
44089
|
value: function getLogs() {
|
|
44090
|
-
var hoEditorFactory =
|
|
44090
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44091
44091
|
return hoEditorFactory.undoService.getModifyHistory();
|
|
44092
44092
|
}
|
|
44093
44093
|
/**
|
|
@@ -44097,7 +44097,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44097
44097
|
key: "tabToNextElement",
|
|
44098
44098
|
value: function tabToNextElement() {
|
|
44099
44099
|
var _this7 = this;
|
|
44100
|
-
var hoEditorFactory =
|
|
44100
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44101
44101
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
44102
44102
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
44103
44103
|
var endPath = domRange.endPath;
|
|
@@ -44105,7 +44105,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44105
44105
|
var curNode = domRange.npEnd.node;
|
|
44106
44106
|
var nextNode = curNode.nextLeaf();
|
|
44107
44107
|
do {
|
|
44108
|
-
if (nextNode instanceof
|
|
44108
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && nextNode.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && nextNode.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtStart && nextNode.parentNode.canModifyContent || nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z) {
|
|
44109
44109
|
break;
|
|
44110
44110
|
}
|
|
44111
44111
|
if (nextNode) {
|
|
@@ -44127,16 +44127,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44127
44127
|
}
|
|
44128
44128
|
} while (1);
|
|
44129
44129
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
44130
|
-
var newRange = new
|
|
44131
|
-
var cgEvent = new
|
|
44130
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(_this7._hoEditorFactoryID, sPath, ePath);
|
|
44131
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
44132
44132
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
44133
44133
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
44134
44134
|
};
|
|
44135
44135
|
var toPath = '';
|
|
44136
|
-
if (nextNode instanceof
|
|
44136
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
44137
44137
|
toPath = nextNode.getNodePath();
|
|
44138
44138
|
setSelectRange(toPath, toPath);
|
|
44139
|
-
} else if (nextNode instanceof
|
|
44139
|
+
} else if (nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z) {
|
|
44140
44140
|
toPath = nextNode.getNodePath();
|
|
44141
44141
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(nextNode.previousLeaf());
|
|
44142
44142
|
setSelectRange(sPath, toPath);
|
|
@@ -44148,7 +44148,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44148
44148
|
}, {
|
|
44149
44149
|
key: "mergeCells",
|
|
44150
44150
|
value: function mergeCells(cell, r, c, rowSpan, colSpan) {
|
|
44151
|
-
var hoEditorFactory =
|
|
44151
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44152
44152
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
44153
44153
|
_cell$table$canMergeC2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$canMergeC, 3),
|
|
44154
44154
|
ret = _cell$table$canMergeC2[0],
|
|
@@ -44156,7 +44156,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44156
44156
|
aColSpan = _cell$table$canMergeC2[2];
|
|
44157
44157
|
if (ret) {
|
|
44158
44158
|
hoEditorFactory.undoService.begin();
|
|
44159
|
-
hoEditorFactory.undoService.add(new
|
|
44159
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell.table, r, c, aRowSpan, aColSpan));
|
|
44160
44160
|
hoEditorFactory.undoService.commit();
|
|
44161
44161
|
}
|
|
44162
44162
|
}
|
|
@@ -69439,6 +69439,20 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
69439
69439
|
if (iend < this.text.length - 1) {
|
|
69440
69440
|
dline.fitLines();
|
|
69441
69441
|
dline = dline.paragraphNode.getNextDline(dline);
|
|
69442
|
+
if (dline.paragraphNode.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_29__/* .TextInputFieldNode */ .re) {
|
|
69443
|
+
var index = dline.paragraphNode.drawlines.indexOf(dline);
|
|
69444
|
+
var prevLine = dline.paragraphNode.drawlines[index - 1];
|
|
69445
|
+
if (prevLine && prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__/* .DrawLine */ .a) {
|
|
69446
|
+
var _dline$paragraphNode$ = dline.paragraphNode.parentNode.getLeftWidth(),
|
|
69447
|
+
_dline$paragraphNode$2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_dline$paragraphNode$, 3),
|
|
69448
|
+
ileft = _dline$paragraphNode$2[0],
|
|
69449
|
+
paragraphWidth = _dline$paragraphNode$2[1],
|
|
69450
|
+
bAlignWithRect = _dline$paragraphNode$2[2];
|
|
69451
|
+
prevLine.x = dline.paragraphNode.combineParagraph.leftMarginPixes + ileft;
|
|
69452
|
+
prevLine.dWidth = paragraphWidth - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
|
|
69453
|
+
prevLine.updateLineStyle();
|
|
69454
|
+
}
|
|
69455
|
+
}
|
|
69442
69456
|
this.adjustRectAlignLine(dline);
|
|
69443
69457
|
}
|
|
69444
69458
|
istart = iend + 1;
|
|
@@ -178061,7 +178075,7 @@ var map = {
|
|
|
178061
178075
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
178062
178076
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
178063
178077
|
"./poperSelect/PoperMark.vue": 20734,
|
|
178064
|
-
"./poperSelect/PoperSelect.vue":
|
|
178078
|
+
"./poperSelect/PoperSelect.vue": 63970,
|
|
178065
178079
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
178066
178080
|
"./popers/Poper.vue": 57937,
|
|
178067
178081
|
"./popers/Title.vue": 85516,
|
|
@@ -215516,8 +215530,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
215516
215530
|
var es_number_constructor = __webpack_require__(9653);
|
|
215517
215531
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
215518
215532
|
var es_json_stringify = __webpack_require__(38862);
|
|
215519
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
215520
|
-
var
|
|
215533
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=beccc54c&
|
|
215534
|
+
var HoDocvue_type_template_id_beccc54c_render = function render() {
|
|
215521
215535
|
var _vm = this,
|
|
215522
215536
|
_c = _vm._self._c;
|
|
215523
215537
|
return _c('div', {
|
|
@@ -215701,7 +215715,7 @@ var HoDocvue_type_template_id_0793442a_render = function render() {
|
|
|
215701
215715
|
}
|
|
215702
215716
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
215703
215717
|
};
|
|
215704
|
-
var
|
|
215718
|
+
var HoDocvue_type_template_id_beccc54c_staticRenderFns = [];
|
|
215705
215719
|
|
|
215706
215720
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
215707
215721
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217301,7 +217315,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
217301
217315
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
217302
217316
|
var plugins_util = __webpack_require__(62783);
|
|
217303
217317
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
217304
|
-
var PoperSelect = __webpack_require__(
|
|
217318
|
+
var PoperSelect = __webpack_require__(63970);
|
|
217305
217319
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
217306
217320
|
var PoperMark = __webpack_require__(20734);
|
|
217307
217321
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218706,7 +218720,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218706
218720
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218707
218721
|
var ParagraphNode = __webpack_require__(67945);
|
|
218708
218722
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218709
|
-
/* harmony default export */ var version = ('3.1.
|
|
218723
|
+
/* harmony default export */ var version = ('3.1.44');
|
|
218710
218724
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218711
218725
|
var PoperTipText = __webpack_require__(50987);
|
|
218712
218726
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219016,7 +219030,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219016
219030
|
// intersectionRatio <= 0 代表目标页不在文档可视区内
|
|
219017
219031
|
// isIntersecting = true 代表目标页进入可视区 false代表离开可视区
|
|
219018
219032
|
if (v.isIntersecting && v.intersectionRatio == 0) {
|
|
219019
|
-
console.warn('
|
|
219033
|
+
console.warn('进入可视区但是重合区域=0');
|
|
219020
219034
|
}
|
|
219021
219035
|
if (v.intersectionRatio <= 0 && !v.isIntersecting) {
|
|
219022
219036
|
inViewPages = inViewPages.filter(function (m) {
|
|
@@ -219598,10 +219612,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219598
219612
|
});
|
|
219599
219613
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
219600
219614
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
219601
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219615
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=beccc54c&prod&lang=less&
|
|
219602
219616
|
// extracted by mini-css-extract-plugin
|
|
219603
219617
|
|
|
219604
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219618
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=beccc54c&prod&lang=less&
|
|
219605
219619
|
|
|
219606
219620
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
219607
219621
|
|
|
@@ -219614,8 +219628,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219614
219628
|
|
|
219615
219629
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219616
219630
|
components_HoDocvue_type_script_lang_js_,
|
|
219617
|
-
|
|
219618
|
-
|
|
219631
|
+
HoDocvue_type_template_id_beccc54c_render,
|
|
219632
|
+
HoDocvue_type_template_id_beccc54c_staticRenderFns,
|
|
219619
219633
|
false,
|
|
219620
219634
|
null,
|
|
219621
219635
|
null,
|