hoeditor-web 3.1.43 → 3.1.45
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 +487 -449
- 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
|
+
/***/ 93795:
|
|
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=68100230&
|
|
9515
9515
|
|
|
9516
9516
|
|
|
9517
9517
|
|
|
@@ -9670,7 +9670,31 @@ var render = function render() {
|
|
|
9670
9670
|
}, [_c('span', {
|
|
9671
9671
|
staticClass: "ant-checkbox-texts"
|
|
9672
9672
|
}, [_vm._v(_vm._s(item.showText))])]);
|
|
9673
|
-
})], 2) : _vm._e(), !_vm.insCheckSyncUpdateList &&
|
|
9673
|
+
})], 2) : _vm._e(), !_vm.insCheckSyncUpdateList && _vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0 ? [_c('a-checkbox-group', {
|
|
9674
|
+
on: {
|
|
9675
|
+
"change": _vm.mutexSelectItemsChange
|
|
9676
|
+
},
|
|
9677
|
+
model: {
|
|
9678
|
+
value: _vm.mutexSelectedIds,
|
|
9679
|
+
callback: function callback($$v) {
|
|
9680
|
+
_vm.mutexSelectedIds = $$v;
|
|
9681
|
+
},
|
|
9682
|
+
expression: "mutexSelectedIds"
|
|
9683
|
+
}
|
|
9684
|
+
}, [_vm._l(_vm.currentList, function (item, index) {
|
|
9685
|
+
return [index >= 1 && item.type != _vm.currentList[index - 1].type ? _c('p', {
|
|
9686
|
+
key: index + Math.random(),
|
|
9687
|
+
staticClass: "a-checkbox-mutex-line"
|
|
9688
|
+
}) : _vm._e(), _c('a-checkbox', {
|
|
9689
|
+
key: item.id + Math.random(),
|
|
9690
|
+
attrs: {
|
|
9691
|
+
"value": item.id,
|
|
9692
|
+
"disabled": _vm.mutexType !== '' && _vm.mutexType != item.type
|
|
9693
|
+
}
|
|
9694
|
+
}, [_c('span', {
|
|
9695
|
+
staticClass: "ant-checkbox-texts"
|
|
9696
|
+
}, [_vm._v(_vm._s(item.showText))])])];
|
|
9697
|
+
})], 2)] : _vm._e(), !_vm.insCheckSyncUpdateList && !_vm.isAllowMultiSelect ? _c('a-radio-group', {
|
|
9674
9698
|
model: {
|
|
9675
9699
|
value: _vm.selectedId,
|
|
9676
9700
|
callback: function callback($$v) {
|
|
@@ -9934,7 +9958,7 @@ var render = function render() {
|
|
|
9934
9958
|
};
|
|
9935
9959
|
var staticRenderFns = [];
|
|
9936
9960
|
|
|
9937
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9961
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=68100230&
|
|
9938
9962
|
|
|
9939
9963
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9940
9964
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12832,10 +12856,10 @@ var columns = [{
|
|
|
12832
12856
|
});
|
|
12833
12857
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12834
12858
|
/* 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=
|
|
12859
|
+
;// 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=68100230&prod&lang=less&
|
|
12836
12860
|
// extracted by mini-css-extract-plugin
|
|
12837
12861
|
|
|
12838
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12862
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=68100230&prod&lang=less&
|
|
12839
12863
|
|
|
12840
12864
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12841
12865
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40048,69 +40072,69 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
40048
40072
|
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(64465);
|
|
40049
40073
|
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(32629);
|
|
40050
40074
|
/* 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
|
|
40075
|
+
/* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(78560);
|
|
40076
|
+
/* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(67945);
|
|
40077
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(94639);
|
|
40078
|
+
/* harmony import */ var _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(1544);
|
|
40079
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(29899);
|
|
40080
|
+
/* harmony import */ var _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(90432);
|
|
40081
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(931);
|
|
40082
|
+
/* harmony import */ var _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(71144);
|
|
40083
|
+
/* harmony import */ var _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(38938);
|
|
40084
|
+
/* harmony import */ var _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(38695);
|
|
40085
|
+
/* harmony import */ var _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(45836);
|
|
40086
|
+
/* harmony import */ var _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(19995);
|
|
40087
|
+
/* harmony import */ var _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(59621);
|
|
40088
|
+
/* harmony import */ var _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(47088);
|
|
40089
|
+
/* harmony import */ var _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(13307);
|
|
40090
|
+
/* harmony import */ var _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(11429);
|
|
40091
|
+
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(80177);
|
|
40092
|
+
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(90161);
|
|
40093
|
+
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(57727);
|
|
40094
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(97186);
|
|
40095
|
+
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(96637);
|
|
40096
|
+
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(12659);
|
|
40097
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(5010);
|
|
40098
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(8277);
|
|
40099
|
+
/* harmony import */ var _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(99152);
|
|
40100
|
+
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(92501);
|
|
40101
|
+
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(45712);
|
|
40102
|
+
/* harmony import */ var _SubDocManger__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(80556);
|
|
40103
|
+
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(68598);
|
|
40104
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(79546);
|
|
40105
|
+
/* harmony import */ var _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(61024);
|
|
40106
|
+
/* harmony import */ var _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(48458);
|
|
40107
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(48988);
|
|
40108
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(34908);
|
|
40109
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(43109);
|
|
40110
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(64180);
|
|
40111
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(24799);
|
|
40112
|
+
/* harmony import */ var _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(36288);
|
|
40113
|
+
/* harmony import */ var _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(92827);
|
|
40114
|
+
/* harmony import */ var _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(2592);
|
|
40115
|
+
/* harmony import */ var _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(10719);
|
|
40116
|
+
/* harmony import */ var _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(66034);
|
|
40117
|
+
/* harmony import */ var _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(90832);
|
|
40118
|
+
/* harmony import */ var _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(14871);
|
|
40119
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(52269);
|
|
40120
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(30589);
|
|
40121
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(2613);
|
|
40122
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(53901);
|
|
40123
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(74089);
|
|
40124
|
+
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(56422);
|
|
40125
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(80437);
|
|
40126
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(96635);
|
|
40127
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(39385);
|
|
40128
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(95089);
|
|
40129
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(42921);
|
|
40130
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(24701);
|
|
40131
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(76830);
|
|
40132
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(73632);
|
|
40133
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(90809);
|
|
40134
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(34910);
|
|
40135
|
+
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(330);
|
|
40136
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(63602);
|
|
40137
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(51760);
|
|
40114
40138
|
|
|
40115
40139
|
|
|
40116
40140
|
|
|
@@ -40261,19 +40285,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40261
40285
|
if (!bNormalized) {
|
|
40262
40286
|
aRange = range.normalize();
|
|
40263
40287
|
}
|
|
40264
|
-
var hoEditorFactory =
|
|
40288
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40265
40289
|
var creatorIndex = -1;
|
|
40266
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40290
|
+
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
40291
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
40268
40292
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
40269
40293
|
}
|
|
40270
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40294
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && oper !== 'update' && creatorIndex === -1) {
|
|
40271
40295
|
hoEditorFactory.undoService.begin();
|
|
40272
|
-
hoEditorFactory.undoService.add(new
|
|
40296
|
+
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
40297
|
hoEditorFactory.undoService.commit();
|
|
40274
40298
|
} else {
|
|
40275
40299
|
hoEditorFactory.undoService.begin();
|
|
40276
|
-
var nodesDeleteUndoUnit = new
|
|
40300
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
40277
40301
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
40278
40302
|
hoEditorFactory.undoService.commit();
|
|
40279
40303
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -40283,10 +40307,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40283
40307
|
}, {
|
|
40284
40308
|
key: "insertNodeByPath",
|
|
40285
40309
|
value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle) {
|
|
40286
|
-
var hoEditorFactory =
|
|
40310
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40287
40311
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40288
40312
|
var parentNode = node.parentNode;
|
|
40289
|
-
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && parentNode instanceof
|
|
40313
|
+
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
40314
|
//&& !parentNode.downListProperty.listItems?.includes("<元素>")
|
|
40291
40315
|
) {
|
|
40292
40316
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
@@ -40314,11 +40338,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40314
40338
|
|
|
40315
40339
|
if (!isError) {
|
|
40316
40340
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40317
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40341
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40318
40342
|
path = curDomRange.endPath;
|
|
40319
40343
|
}
|
|
40320
40344
|
var npNode = curDomRange.npEnd.node;
|
|
40321
|
-
if (npNode && npNode instanceof
|
|
40345
|
+
if (npNode && npNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && npNode.MarkNodeType == 1) {
|
|
40322
40346
|
path = npNode.parentNode.StartMarkNode.getNodePath();
|
|
40323
40347
|
}
|
|
40324
40348
|
hoEditorFactory.undoService.begin();
|
|
@@ -40336,8 +40360,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40336
40360
|
}, {
|
|
40337
40361
|
key: "keyBoardInput",
|
|
40338
40362
|
value: function keyBoardInput(text) {
|
|
40339
|
-
var hoEditorFactory =
|
|
40340
|
-
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus ===
|
|
40363
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40364
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40341
40365
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
40342
40366
|
return;
|
|
40343
40367
|
}
|
|
@@ -40366,7 +40390,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40366
40390
|
// }
|
|
40367
40391
|
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
40392
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
40369
|
-
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof
|
|
40393
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40370
40394
|
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
40371
40395
|
var cellNode = domRange.npStart.node.parentNode;
|
|
40372
40396
|
var colIndex = cellNode.row.indexOf(cellNode);
|
|
@@ -40397,7 +40421,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40397
40421
|
}, {
|
|
40398
40422
|
key: "insertNodeText",
|
|
40399
40423
|
value: function insertNodeText(node, path, text) {
|
|
40400
|
-
var hoEditorFactory =
|
|
40424
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40401
40425
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40402
40426
|
var isError;
|
|
40403
40427
|
if (!curRange.isEmpty) {
|
|
@@ -40421,7 +40445,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40421
40445
|
if (!isError) {
|
|
40422
40446
|
hoEditorFactory.undoService.begin();
|
|
40423
40447
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
40424
|
-
hoEditorFactory.undoService.add(new
|
|
40448
|
+
hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
|
|
40425
40449
|
hoEditorFactory.undoService.commit();
|
|
40426
40450
|
}
|
|
40427
40451
|
}
|
|
@@ -40494,10 +40518,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40494
40518
|
strPath = res;
|
|
40495
40519
|
if (index === arrSubString.length - 1) {
|
|
40496
40520
|
if (!isEndLine) {
|
|
40497
|
-
var paragraphNode = new
|
|
40521
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40498
40522
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40499
40523
|
} else {
|
|
40500
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40524
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40501
40525
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40502
40526
|
pNode.update();
|
|
40503
40527
|
}
|
|
@@ -40511,27 +40535,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40511
40535
|
} else {
|
|
40512
40536
|
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
40513
40537
|
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 !==
|
|
40538
|
+
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
40539
|
var textNode = node;
|
|
40516
40540
|
_this.insertNodeText(textNode, strPath, aText);
|
|
40517
40541
|
//strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40518
40542
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
40519
40543
|
} else {
|
|
40520
40544
|
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
|
|
40545
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40522
40546
|
}
|
|
40523
40547
|
} else {
|
|
40524
40548
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40525
|
-
if (pNode instanceof
|
|
40549
|
+
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
40550
|
styleIndex = node.styleIndex;
|
|
40527
40551
|
}
|
|
40528
40552
|
if (aTextArray[0] > 1) {
|
|
40529
40553
|
var newStyle = hoEditorFactory.docTree.styles[styleIndex].clone();
|
|
40530
|
-
newStyle.script = aTextArray[0] == 2 ?
|
|
40554
|
+
newStyle.script = aTextArray[0] == 2 ? _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsup : _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsub;
|
|
40531
40555
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
40532
40556
|
}
|
|
40533
40557
|
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
|
|
40558
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40535
40559
|
}
|
|
40536
40560
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
40537
40561
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -40539,14 +40563,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40539
40563
|
// }
|
|
40540
40564
|
if (index === arrSubString.length - 1) {
|
|
40541
40565
|
if (!isEndLine) {
|
|
40542
|
-
var paragraphNode = new
|
|
40566
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40543
40567
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40544
40568
|
} else {
|
|
40545
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40569
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40546
40570
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40547
40571
|
pNode.update();
|
|
40548
40572
|
var ppNode = pNode.parentNode;
|
|
40549
|
-
if (ppNode instanceof
|
|
40573
|
+
if (ppNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40550
40574
|
ppNode.drawCell.needUpdate = true;
|
|
40551
40575
|
ppNode.table.update();
|
|
40552
40576
|
}
|
|
@@ -40579,7 +40603,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40579
40603
|
key: "insertPlainTextAfterPath",
|
|
40580
40604
|
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent) {
|
|
40581
40605
|
var _this2 = this;
|
|
40582
|
-
var hoEditorFactory =
|
|
40606
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40583
40607
|
if (text === '') {
|
|
40584
40608
|
return;
|
|
40585
40609
|
}
|
|
@@ -40595,10 +40619,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40595
40619
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40596
40620
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
40597
40621
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
40598
|
-
var nodeStyle = new
|
|
40622
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40599
40623
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
40600
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40601
|
-
var newHistory = new
|
|
40624
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40625
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40602
40626
|
var historyIndex = newHistory.userCompare();
|
|
40603
40627
|
nodeStyle.creatorIndex = historyIndex;
|
|
40604
40628
|
if (nodeStyle.combineStyle.strikeout) {
|
|
@@ -40611,33 +40635,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40611
40635
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
40612
40636
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40613
40637
|
var pNode = node.parentNode;
|
|
40614
|
-
if (pNode instanceof
|
|
40638
|
+
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
40639
|
curStyleIndex = node.styleIndex;
|
|
40616
40640
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40617
40641
|
}
|
|
40618
40642
|
var slibs = nodePosition.roots;
|
|
40619
|
-
if (pNode && pNode instanceof
|
|
40643
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && node == pNode.last()) {
|
|
40620
40644
|
slibs = pNode.getParentNodes();
|
|
40621
40645
|
pNode = pNode.parentNode;
|
|
40622
40646
|
}
|
|
40623
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40647
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40624
40648
|
if (curTextStyle.strikeout) {
|
|
40625
|
-
var _nodeStyle = new
|
|
40649
|
+
var _nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40626
40650
|
_nodeStyle.copyProperty(curTextStyle, _nodeStyle);
|
|
40627
40651
|
_nodeStyle.strikeout = false;
|
|
40628
40652
|
_nodeStyle.deleterIndex = -1;
|
|
40629
|
-
var _newHistory = new
|
|
40653
|
+
var _newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40630
40654
|
var _historyIndex = _newHistory.userCompare();
|
|
40631
40655
|
_nodeStyle.creatorIndex = _historyIndex;
|
|
40632
40656
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(_nodeStyle);
|
|
40633
40657
|
}
|
|
40634
40658
|
}
|
|
40635
40659
|
var canModifyContent = true;
|
|
40636
|
-
if (pNode instanceof
|
|
40660
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40637
40661
|
canModifyContent = pNode.canModifyContent;
|
|
40638
40662
|
}
|
|
40639
40663
|
var insertParagraph = function insertParagraph(aPath) {
|
|
40640
|
-
var paragraphNode = new
|
|
40664
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this2._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
|
|
40641
40665
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
40642
40666
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
40643
40667
|
};
|
|
@@ -40653,13 +40677,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40653
40677
|
strPath = insertParagraph(strPath);
|
|
40654
40678
|
resolve(strPath);
|
|
40655
40679
|
} else {
|
|
40656
|
-
if (pNode instanceof
|
|
40680
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40657
40681
|
pNode.canModifyContent = canModifyContent;
|
|
40658
40682
|
}
|
|
40659
40683
|
var isUpdate = false;
|
|
40660
40684
|
if (oldCanModifyContent !== undefined) {
|
|
40661
40685
|
isUpdate = true;
|
|
40662
|
-
if (pNode instanceof
|
|
40686
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
40663
40687
|
isUpdate = false;
|
|
40664
40688
|
}
|
|
40665
40689
|
}
|
|
@@ -40683,7 +40707,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40683
40707
|
}, {
|
|
40684
40708
|
key: "directionKey",
|
|
40685
40709
|
value: function directionKey(keyValue) {
|
|
40686
|
-
var hoEditorFactory =
|
|
40710
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40687
40711
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40688
40712
|
var oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
40689
40713
|
var startPath = domRange.startPath;
|
|
@@ -40692,13 +40716,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40692
40716
|
if (!domRange.isEmpty) {
|
|
40693
40717
|
//有选中区域
|
|
40694
40718
|
if (keyValue === 'left' || keyValue === 'up') {
|
|
40695
|
-
newRange = new
|
|
40719
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
40696
40720
|
} else {
|
|
40697
|
-
newRange = new
|
|
40721
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
40698
40722
|
}
|
|
40699
40723
|
} else {
|
|
40700
40724
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
40701
|
-
newRange = new
|
|
40725
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
40702
40726
|
}
|
|
40703
40727
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40704
40728
|
//const cgEvent = new SelectionChangeEvent(oldRange, newRange); //选中范围变化事件
|
|
@@ -40713,11 +40737,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40713
40737
|
value: function keyBoardDelete(keyValue) {
|
|
40714
40738
|
var startPath = '';
|
|
40715
40739
|
var endPath = '';
|
|
40716
|
-
var hoEditorFactory =
|
|
40740
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40717
40741
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
40718
40742
|
if (!domRange.isEmpty) {
|
|
40719
40743
|
domRange = domRange.normalize();
|
|
40720
|
-
} else if (hoEditorFactory.drawTree.paintStatus ===
|
|
40744
|
+
} 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
40745
|
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
40746
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
40723
40747
|
return;
|
|
@@ -40747,7 +40771,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40747
40771
|
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
40772
|
while (1) switch (_context.prev = _context.next) {
|
|
40749
40773
|
case 0:
|
|
40750
|
-
hoEditorFactory =
|
|
40774
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40751
40775
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40752
40776
|
if (domRange.isEmpty) {
|
|
40753
40777
|
_context.next = 6;
|
|
@@ -40782,7 +40806,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40782
40806
|
_context.next = 36;
|
|
40783
40807
|
break;
|
|
40784
40808
|
}
|
|
40785
|
-
if (!(node.parentNode instanceof
|
|
40809
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40786
40810
|
_context.next = 16;
|
|
40787
40811
|
break;
|
|
40788
40812
|
}
|
|
@@ -40817,7 +40841,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40817
40841
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
40818
40842
|
return _context.abrupt("return");
|
|
40819
40843
|
case 30:
|
|
40820
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40844
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
40821
40845
|
// hoEditorFactory.undoService.begin();
|
|
40822
40846
|
// hoEditorFactory.undoService.add(
|
|
40823
40847
|
// new NodesDeleteUndoUnit(
|
|
@@ -40828,22 +40852,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40828
40852
|
// )
|
|
40829
40853
|
// );
|
|
40830
40854
|
// hoEditorFactory.undoService.commit();
|
|
40831
|
-
aRange = new
|
|
40855
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
40832
40856
|
this.deleteRange(aRange, true);
|
|
40833
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40857
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
40834
40858
|
_context.next = 123;
|
|
40835
40859
|
break;
|
|
40836
40860
|
case 36:
|
|
40837
|
-
if (!(node instanceof
|
|
40861
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40838
40862
|
_context.next = 56;
|
|
40839
40863
|
break;
|
|
40840
40864
|
}
|
|
40841
40865
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
40842
|
-
if (!(node.parentNode && node.parentNode instanceof
|
|
40866
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re)) {
|
|
40843
40867
|
_context.next = 51;
|
|
40844
40868
|
break;
|
|
40845
40869
|
}
|
|
40846
|
-
if (!(node.parentNode.childNodes[1] instanceof
|
|
40870
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40847
40871
|
_context.next = 44;
|
|
40848
40872
|
break;
|
|
40849
40873
|
}
|
|
@@ -40867,7 +40891,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40867
40891
|
}
|
|
40868
40892
|
return _context.abrupt("return");
|
|
40869
40893
|
case 51:
|
|
40870
|
-
_aRange = new
|
|
40894
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
40871
40895
|
).normalize();
|
|
40872
40896
|
isError = this.deleteRange(_aRange, true);
|
|
40873
40897
|
if (isError) {
|
|
@@ -40886,12 +40910,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40886
40910
|
_context.next = 123;
|
|
40887
40911
|
break;
|
|
40888
40912
|
case 56:
|
|
40889
|
-
if (!(node instanceof
|
|
40913
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
40890
40914
|
_context.next = 82;
|
|
40891
40915
|
break;
|
|
40892
40916
|
}
|
|
40893
40917
|
prevNode = node.prevSibling();
|
|
40894
|
-
if (!(prevNode instanceof
|
|
40918
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh)) {
|
|
40895
40919
|
_context.next = 60;
|
|
40896
40920
|
break;
|
|
40897
40921
|
}
|
|
@@ -40901,7 +40925,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40901
40925
|
_context.next = 82;
|
|
40902
40926
|
break;
|
|
40903
40927
|
}
|
|
40904
|
-
if (!(node.parentNode instanceof
|
|
40928
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40905
40929
|
_context.next = 81;
|
|
40906
40930
|
break;
|
|
40907
40931
|
}
|
|
@@ -40910,7 +40934,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40910
40934
|
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
40911
40935
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
40912
40936
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
40913
|
-
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof
|
|
40937
|
+
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
40938
|
_context.next = 78;
|
|
40915
40939
|
break;
|
|
40916
40940
|
}
|
|
@@ -40920,7 +40944,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40920
40944
|
// );
|
|
40921
40945
|
// await hoEditorFactory.undoService.commit();
|
|
40922
40946
|
hoEditorFactory.undoService.begin();
|
|
40923
|
-
hoEditorFactory.undoService.add(new
|
|
40947
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
40924
40948
|
_context.next = 72;
|
|
40925
40949
|
return hoEditorFactory.undoService.commit();
|
|
40926
40950
|
case 72:
|
|
@@ -40936,14 +40960,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40936
40960
|
case 81:
|
|
40937
40961
|
return _context.abrupt("return");
|
|
40938
40962
|
case 82:
|
|
40939
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40963
|
+
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
40964
|
_context.next = 87;
|
|
40941
40965
|
break;
|
|
40942
40966
|
}
|
|
40943
40967
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
40944
40968
|
return _context.abrupt("return");
|
|
40945
40969
|
case 87:
|
|
40946
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40970
|
+
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
40971
|
_context.next = 92;
|
|
40948
40972
|
break;
|
|
40949
40973
|
}
|
|
@@ -40955,21 +40979,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40955
40979
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
40956
40980
|
return _context.abrupt("return");
|
|
40957
40981
|
case 92:
|
|
40958
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40982
|
+
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
40983
|
_context.next = 95;
|
|
40960
40984
|
break;
|
|
40961
40985
|
}
|
|
40962
40986
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
40963
40987
|
return _context.abrupt("return");
|
|
40964
40988
|
case 95:
|
|
40965
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40989
|
+
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
40990
|
_context.next = 98;
|
|
40967
40991
|
break;
|
|
40968
40992
|
}
|
|
40969
40993
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
40970
40994
|
return _context.abrupt("return");
|
|
40971
40995
|
case 98:
|
|
40972
|
-
if (!(node instanceof
|
|
40996
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40973
40997
|
_context.next = 118;
|
|
40974
40998
|
break;
|
|
40975
40999
|
}
|
|
@@ -40982,12 +41006,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40982
41006
|
break;
|
|
40983
41007
|
}
|
|
40984
41008
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
40985
|
-
signNode = new
|
|
41009
|
+
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
41010
|
hoEditorFactory.undoService.begin();
|
|
40987
|
-
hoEditorFactory.undoService.add(new
|
|
41011
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40988
41012
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
40989
41013
|
hoEditorFactory.undoService.commit();
|
|
40990
|
-
if (node.parentNode instanceof
|
|
41014
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40991
41015
|
table = node.parentNode.table;
|
|
40992
41016
|
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
40993
41017
|
table.tableProperty.isLock = false;
|
|
@@ -41001,19 +41025,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41001
41025
|
}
|
|
41002
41026
|
return _context.abrupt("return");
|
|
41003
41027
|
case 113:
|
|
41004
|
-
if (node.connectMode == '换行' && preNode instanceof
|
|
41028
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
41005
41029
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
41006
41030
|
}
|
|
41007
41031
|
hoEditorFactory.undoService.begin();
|
|
41008
|
-
hoEditorFactory.undoService.add(new
|
|
41032
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
41009
41033
|
hoEditorFactory.undoService.commit();
|
|
41010
41034
|
return _context.abrupt("return");
|
|
41011
41035
|
case 118:
|
|
41012
41036
|
pNode = node.parentNode;
|
|
41013
41037
|
hoEditorFactory.undoService.begin();
|
|
41014
|
-
hoEditorFactory.undoService.add(new
|
|
41038
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41015
41039
|
hoEditorFactory.undoService.commit();
|
|
41016
|
-
if (pNode && pNode instanceof
|
|
41040
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
41017
41041
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
41018
41042
|
}
|
|
41019
41043
|
case 123:
|
|
@@ -41046,7 +41070,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41046
41070
|
key: "deleteTextAfterPath",
|
|
41047
41071
|
value: function deleteTextAfterPath(path) {
|
|
41048
41072
|
var _this3 = this;
|
|
41049
|
-
var hoEditorFactory =
|
|
41073
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41050
41074
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
41051
41075
|
if (!domRange.isEmpty) {
|
|
41052
41076
|
domRange = domRange.normalize();
|
|
@@ -41073,13 +41097,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41073
41097
|
if (tmp instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41074
41098
|
return hoEditorFactory.docTree.getNodeFirstPath(tmp);
|
|
41075
41099
|
} else if (tmp) {
|
|
41076
|
-
if (tmp instanceof
|
|
41100
|
+
if (tmp instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
41077
41101
|
var nextNode = tmp.nextSibling();
|
|
41078
|
-
if (nextNode instanceof
|
|
41102
|
+
if (nextNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh) {
|
|
41079
41103
|
return;
|
|
41080
41104
|
} else {
|
|
41081
41105
|
hoEditorFactory.undoService.begin();
|
|
41082
|
-
hoEditorFactory.undoService.add(new
|
|
41106
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this3._hoEditorFactoryID, tmp, tmp.getNodePath()));
|
|
41083
41107
|
hoEditorFactory.undoService.commit();
|
|
41084
41108
|
return;
|
|
41085
41109
|
}
|
|
@@ -41112,17 +41136,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41112
41136
|
}, {
|
|
41113
41137
|
key: "KeyBoardEnterEvent",
|
|
41114
41138
|
value: function KeyBoardEnterEvent(strPath) {
|
|
41115
|
-
var hoEditorFactory =
|
|
41139
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41116
41140
|
//判断当前是否有选中
|
|
41117
41141
|
var arange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41118
41142
|
if (!arange.isEmpty) {
|
|
41119
|
-
if (arange.npEnd.node instanceof
|
|
41143
|
+
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
41144
|
var prevNodePath = hoEditorFactory.docTree.getNodeLastPath(arange.npEnd.node.previousLeaf());
|
|
41121
41145
|
if (prevNodePath === arange.startPath) {
|
|
41122
41146
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
41123
41147
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
41124
41148
|
if (drawArea) {
|
|
41125
|
-
var nodeNeedModifyEvent = new
|
|
41149
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
41126
41150
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
41127
41151
|
return;
|
|
41128
41152
|
} else {
|
|
@@ -41141,34 +41165,34 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41141
41165
|
//处理结尾,如果是在一个复合结点的结尾,插入节点的Parent与复合节点相同,否慢其Parent为复合节点
|
|
41142
41166
|
var parentnode = np.node.parentNode;
|
|
41143
41167
|
if (parentnode) {
|
|
41144
|
-
if (np.node instanceof
|
|
41168
|
+
if (np.node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41145
41169
|
if (parentnode.last() == np.node) {
|
|
41146
41170
|
parentnode = parentnode.parentNode;
|
|
41147
41171
|
}
|
|
41148
|
-
} else if (parentnode instanceof
|
|
41172
|
+
} else if (parentnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41149
41173
|
if (strPath === "".concat(parentnode.getNodePath(), "/0") && parentnode.table.childNodes.indexOf(parentnode) == 0) {
|
|
41150
|
-
var _paraNode = new
|
|
41174
|
+
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
41175
|
_paraNode.styleIndex = parentnode.table.paragraphNode.styleIndex;
|
|
41152
41176
|
_paraNode.node2DrawNode();
|
|
41153
41177
|
hoEditorFactory.undoService.begin();
|
|
41154
|
-
hoEditorFactory.undoService.add(new
|
|
41178
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__/* .TableInsertParagraphUndoUnit */ .r(this._hoEditorFactoryID, parentnode.table, _paraNode));
|
|
41155
41179
|
hoEditorFactory.undoService.commit();
|
|
41156
41180
|
return;
|
|
41157
41181
|
}
|
|
41158
41182
|
}
|
|
41159
41183
|
}
|
|
41160
|
-
var paraNode = new
|
|
41184
|
+
var paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentnode, hoEditorFactory.docTree.curParaNo);
|
|
41161
41185
|
this.insertNodeByPath(strPath, paraNode);
|
|
41162
41186
|
}
|
|
41163
41187
|
}
|
|
41164
41188
|
}, {
|
|
41165
41189
|
key: "selectARange",
|
|
41166
41190
|
value: function selectARange(startPath, endPath) {
|
|
41167
|
-
var hoEditorFactory =
|
|
41191
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41168
41192
|
var oldRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41169
|
-
var newRange = new
|
|
41193
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
41170
41194
|
hoEditorFactory.undoService.begin();
|
|
41171
|
-
hoEditorFactory.undoService.add(new
|
|
41195
|
+
hoEditorFactory.undoService.add(new _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__/* .SelectionUndoUnit */ .t(this._hoEditorFactoryID, oldRange, newRange));
|
|
41172
41196
|
hoEditorFactory.undoService.commit();
|
|
41173
41197
|
}
|
|
41174
41198
|
// /**
|
|
@@ -41200,7 +41224,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41200
41224
|
}, {
|
|
41201
41225
|
key: "fontStyleChange",
|
|
41202
41226
|
value: function fontStyleChange(operateType, curDomRange) {
|
|
41203
|
-
var hoEditorFactory =
|
|
41227
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41204
41228
|
var normalDomRange = curDomRange.normalize();
|
|
41205
41229
|
var astart = normalDomRange.npStart.node;
|
|
41206
41230
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41208,7 +41232,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41208
41232
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41209
41233
|
}
|
|
41210
41234
|
hoEditorFactory.undoService.begin();
|
|
41211
|
-
hoEditorFactory.undoService.add(new
|
|
41235
|
+
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
41236
|
hoEditorFactory.undoService.commit();
|
|
41213
41237
|
}
|
|
41214
41238
|
/**
|
|
@@ -41220,7 +41244,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41220
41244
|
}, {
|
|
41221
41245
|
key: "fontStyleChangeBool",
|
|
41222
41246
|
value: function fontStyleChangeBool(operateType, curDomRange, isSelsected) {
|
|
41223
|
-
var hoEditorFactory =
|
|
41247
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41224
41248
|
var normalDomRange = curDomRange.normalize();
|
|
41225
41249
|
var astart = normalDomRange.npStart.node;
|
|
41226
41250
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41228,7 +41252,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41228
41252
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41229
41253
|
}
|
|
41230
41254
|
hoEditorFactory.undoService.begin();
|
|
41231
|
-
hoEditorFactory.undoService.add(new
|
|
41255
|
+
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
41256
|
hoEditorFactory.undoService.commit();
|
|
41233
41257
|
}
|
|
41234
41258
|
/**
|
|
@@ -41240,7 +41264,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41240
41264
|
}, {
|
|
41241
41265
|
key: "fontStyleChangeStr",
|
|
41242
41266
|
value: function fontStyleChangeStr(operateType, curDomRange, changeValue) {
|
|
41243
|
-
var hoEditorFactory =
|
|
41267
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41244
41268
|
var normalDomRange = curDomRange.normalize();
|
|
41245
41269
|
var astart = normalDomRange.npStart.node;
|
|
41246
41270
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41248,7 +41272,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41248
41272
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41249
41273
|
}
|
|
41250
41274
|
hoEditorFactory.undoService.begin();
|
|
41251
|
-
hoEditorFactory.undoService.add(new
|
|
41275
|
+
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
41276
|
hoEditorFactory.undoService.commit();
|
|
41253
41277
|
}
|
|
41254
41278
|
/**
|
|
@@ -41311,7 +41335,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41311
41335
|
}, {
|
|
41312
41336
|
key: "undoOperate",
|
|
41313
41337
|
value: function undoOperate() {
|
|
41314
|
-
|
|
41338
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
41315
41339
|
return;
|
|
41316
41340
|
}
|
|
41317
41341
|
/**
|
|
@@ -41320,7 +41344,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41320
41344
|
}, {
|
|
41321
41345
|
key: "redoOperate",
|
|
41322
41346
|
value: function redoOperate() {
|
|
41323
|
-
|
|
41347
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
41324
41348
|
return;
|
|
41325
41349
|
}
|
|
41326
41350
|
/**
|
|
@@ -41332,11 +41356,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41332
41356
|
}, {
|
|
41333
41357
|
key: "paraStyleChange",
|
|
41334
41358
|
value: function paraStyleChange(operateType, curDomRange, selectablePara) {
|
|
41335
|
-
var op = new
|
|
41359
|
+
var op = new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, selectablePara);
|
|
41336
41360
|
var currDom = curDomRange;
|
|
41337
|
-
|
|
41338
|
-
|
|
41339
|
-
|
|
41361
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41362
|
+
_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));
|
|
41363
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41340
41364
|
}
|
|
41341
41365
|
}, {
|
|
41342
41366
|
key: "copy",
|
|
@@ -41380,26 +41404,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41380
41404
|
var domRange = curDomRange.normalize();
|
|
41381
41405
|
var startPath = domRange.endPath;
|
|
41382
41406
|
if (operType === 'update') {
|
|
41383
|
-
var np =
|
|
41407
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41384
41408
|
if (np) {
|
|
41385
41409
|
var node = np.node;
|
|
41386
|
-
if (node instanceof
|
|
41387
|
-
|
|
41388
|
-
|
|
41410
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41411
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41412
|
+
_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
41413
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41390
41414
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41391
|
-
startPath =
|
|
41415
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41392
41416
|
}
|
|
41393
41417
|
}
|
|
41394
41418
|
}
|
|
41395
|
-
var parentNode =
|
|
41396
|
-
var menstrualHistoryNode = new
|
|
41419
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41420
|
+
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
41421
|
//插入该表达式节点
|
|
41398
41422
|
if (operType === 'add') {
|
|
41399
|
-
|
|
41423
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41400
41424
|
}
|
|
41401
|
-
|
|
41402
|
-
|
|
41425
|
+
_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));
|
|
41426
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41403
41427
|
}
|
|
41404
41428
|
/**
|
|
41405
41429
|
* 瞳孔图
|
|
@@ -41417,26 +41441,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41417
41441
|
var domRange = curDomRange.normalize();
|
|
41418
41442
|
var startPath = domRange.endPath;
|
|
41419
41443
|
if (operType === 'update') {
|
|
41420
|
-
var np =
|
|
41444
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41421
41445
|
if (np) {
|
|
41422
41446
|
var node = np.node;
|
|
41423
|
-
if (node instanceof
|
|
41424
|
-
|
|
41425
|
-
|
|
41447
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41448
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41449
|
+
_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
41450
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41427
41451
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41428
|
-
startPath =
|
|
41452
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41429
41453
|
}
|
|
41430
41454
|
}
|
|
41431
41455
|
}
|
|
41432
|
-
var parentNode =
|
|
41433
|
-
var pupilMapNode = new
|
|
41456
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41457
|
+
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
41458
|
//插入该表达式节点
|
|
41435
41459
|
if (operType === 'add') {
|
|
41436
|
-
|
|
41460
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41437
41461
|
}
|
|
41438
|
-
|
|
41439
|
-
|
|
41462
|
+
_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));
|
|
41463
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41440
41464
|
}
|
|
41441
41465
|
/**
|
|
41442
41466
|
* 光定位图
|
|
@@ -41456,26 +41480,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41456
41480
|
var domRange = curDomRange.normalize();
|
|
41457
41481
|
var startPath = domRange.endPath;
|
|
41458
41482
|
if (operType === 'update') {
|
|
41459
|
-
var np =
|
|
41483
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41460
41484
|
if (np) {
|
|
41461
41485
|
var node = np.node;
|
|
41462
|
-
if (node instanceof
|
|
41463
|
-
|
|
41464
|
-
|
|
41486
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41487
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41488
|
+
_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
41489
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41466
41490
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41467
|
-
startPath =
|
|
41491
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41468
41492
|
}
|
|
41469
41493
|
}
|
|
41470
41494
|
}
|
|
41471
|
-
var parentNode =
|
|
41472
|
-
var lightLocationMapNode = new
|
|
41495
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41496
|
+
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
41497
|
//插入该表达式节点
|
|
41474
41498
|
if (operType === 'add') {
|
|
41475
|
-
|
|
41499
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41476
41500
|
}
|
|
41477
|
-
|
|
41478
|
-
|
|
41501
|
+
_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));
|
|
41502
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41479
41503
|
}
|
|
41480
41504
|
/**
|
|
41481
41505
|
* 胎心图
|
|
@@ -41492,26 +41516,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41492
41516
|
var domRange = curDomRange.normalize();
|
|
41493
41517
|
var startPath = domRange.endPath;
|
|
41494
41518
|
if (operType === 'update') {
|
|
41495
|
-
var np =
|
|
41519
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41496
41520
|
if (np) {
|
|
41497
41521
|
var node = np.node;
|
|
41498
|
-
if (node instanceof
|
|
41499
|
-
|
|
41500
|
-
|
|
41522
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41523
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41524
|
+
_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
41525
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41502
41526
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41503
|
-
startPath =
|
|
41527
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41504
41528
|
}
|
|
41505
41529
|
}
|
|
41506
41530
|
}
|
|
41507
|
-
var parentNode =
|
|
41508
|
-
var fetalHeartMapNode = new
|
|
41531
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41532
|
+
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
41533
|
//插入该表达式节点
|
|
41510
41534
|
if (operType === 'add') {
|
|
41511
|
-
|
|
41535
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41512
41536
|
}
|
|
41513
|
-
|
|
41514
|
-
|
|
41537
|
+
_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));
|
|
41538
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41515
41539
|
}
|
|
41516
41540
|
/**
|
|
41517
41541
|
* 恒牙牙位图
|
|
@@ -41526,26 +41550,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41526
41550
|
var domRange = curDomRange.normalize();
|
|
41527
41551
|
var startPath = domRange.endPath;
|
|
41528
41552
|
if (operType === 'update') {
|
|
41529
|
-
var np =
|
|
41553
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41530
41554
|
if (np) {
|
|
41531
41555
|
var node = np.node;
|
|
41532
|
-
if (node instanceof
|
|
41533
|
-
|
|
41534
|
-
|
|
41556
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41557
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41558
|
+
_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
41559
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41536
41560
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41537
|
-
startPath =
|
|
41561
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41538
41562
|
}
|
|
41539
41563
|
}
|
|
41540
41564
|
}
|
|
41541
|
-
var parentNode =
|
|
41542
|
-
var permanentTeethMapNode = new
|
|
41565
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41566
|
+
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
41567
|
//插入该表达式节点
|
|
41544
41568
|
if (operType === 'add') {
|
|
41545
|
-
|
|
41569
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41546
41570
|
}
|
|
41547
|
-
|
|
41548
|
-
|
|
41571
|
+
_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));
|
|
41572
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41549
41573
|
}
|
|
41550
41574
|
/**
|
|
41551
41575
|
* 乳牙牙位图
|
|
@@ -41559,14 +41583,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41559
41583
|
value: function insertPrimaryTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected) {
|
|
41560
41584
|
var domRange = curDomRange.normalize();
|
|
41561
41585
|
var startPath = domRange.endPath;
|
|
41562
|
-
var hoEditorFactory =
|
|
41586
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41563
41587
|
if (operType === 'update') {
|
|
41564
41588
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41565
41589
|
if (np) {
|
|
41566
41590
|
var node = np.node;
|
|
41567
|
-
if (node instanceof
|
|
41591
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41568
41592
|
hoEditorFactory.undoService.begin();
|
|
41569
|
-
hoEditorFactory.undoService.add(new
|
|
41593
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41570
41594
|
//hoEditorFactory.undoService.commit();
|
|
41571
41595
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41572
41596
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41574,7 +41598,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41574
41598
|
}
|
|
41575
41599
|
}
|
|
41576
41600
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41577
|
-
var primaryTeethMapNode = new
|
|
41601
|
+
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
41602
|
//插入该表达式节点
|
|
41579
41603
|
if (operType === 'add') {
|
|
41580
41604
|
hoEditorFactory.undoService.begin();
|
|
@@ -41592,17 +41616,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41592
41616
|
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
41593
41617
|
var domRange = curDomRange.normalize();
|
|
41594
41618
|
var startPath = domRange.endPath;
|
|
41595
|
-
var hoEditorFactory =
|
|
41619
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41596
41620
|
var childNodes = [];
|
|
41597
41621
|
if (operType === 'update') {
|
|
41598
41622
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41599
41623
|
if (np && np.node) {
|
|
41600
41624
|
var node;
|
|
41601
|
-
if (np.node instanceof
|
|
41625
|
+
if (np.node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41602
41626
|
node = np.node;
|
|
41603
41627
|
childNodes = node.childNodes;
|
|
41604
41628
|
}
|
|
41605
|
-
if (np.node.parentNode instanceof
|
|
41629
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41606
41630
|
node = np.node.parentNode;
|
|
41607
41631
|
childNodes = np.node.parentNode.childNodes;
|
|
41608
41632
|
}
|
|
@@ -41610,13 +41634,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41610
41634
|
//const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
41611
41635
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41612
41636
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41613
|
-
var changeEvent = new
|
|
41637
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41614
41638
|
changeEvent.oldEndPath = ePath;
|
|
41615
|
-
changeEvent.oldDrawLines = new
|
|
41639
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41616
41640
|
node.setValuesObject(valuesObject);
|
|
41617
41641
|
// const values = eval("(" + valuesObject + ")");
|
|
41618
41642
|
var values = valuesObject;
|
|
41619
|
-
if (node.childNodes.length == 3 && node.childNodes[1] instanceof
|
|
41643
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41620
41644
|
if (node.childNodes2[1].text !== node.name) {
|
|
41621
41645
|
var text = node.childNodes2[1].text;
|
|
41622
41646
|
node.childNodes2[1].clearDrawNodes(0, text.length - 1);
|
|
@@ -41638,7 +41662,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41638
41662
|
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
41663
|
node.childNodes.splice(node.childNodes.length - 1, 0, atnode);
|
|
41640
41664
|
if (i < textArr.length - 1) {
|
|
41641
|
-
var apnode = new
|
|
41665
|
+
var apnode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node, hoEditorFactory.docTree.curParaNo);
|
|
41642
41666
|
node.childNodes.splice(node.childNodes.length - 1, 0, apnode);
|
|
41643
41667
|
}
|
|
41644
41668
|
}
|
|
@@ -41667,11 +41691,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41667
41691
|
if (pnode && pnode.parentNode) {
|
|
41668
41692
|
pnode = pnode.parentNode;
|
|
41669
41693
|
}
|
|
41670
|
-
if (pnode instanceof
|
|
41694
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41671
41695
|
break;
|
|
41672
41696
|
}
|
|
41673
41697
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
41674
|
-
if (pnode instanceof
|
|
41698
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41675
41699
|
if (Number(values['inputFieldType']) === 1) {
|
|
41676
41700
|
pnode.drawCell.needUpdate = true;
|
|
41677
41701
|
pnode.table.update();
|
|
@@ -41694,7 +41718,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41694
41718
|
}
|
|
41695
41719
|
}
|
|
41696
41720
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41697
|
-
var textInputFieldNode = new
|
|
41721
|
+
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
41722
|
// if (operType === "update") {
|
|
41699
41723
|
// const values = eval("(" + valuesObject + ")");
|
|
41700
41724
|
// if (values["inputFieldType"] === 0) {
|
|
@@ -41714,7 +41738,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41714
41738
|
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
41715
41739
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
41716
41740
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
41717
|
-
if (parentNode instanceof
|
|
41741
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41718
41742
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
41719
41743
|
} else {
|
|
41720
41744
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
@@ -41733,9 +41757,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41733
41757
|
value: function insertImage(curDomRange, imagePath, width, height, options) {
|
|
41734
41758
|
var domRange = curDomRange.normalize();
|
|
41735
41759
|
var startPath = domRange.startPath;
|
|
41736
|
-
var hoEditorFactory =
|
|
41760
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41737
41761
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41738
|
-
var imageNode = new
|
|
41762
|
+
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
41763
|
//插入该表达式节点
|
|
41740
41764
|
hoEditorFactory.undoService.begin();
|
|
41741
41765
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
@@ -41759,21 +41783,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41759
41783
|
innerIdentifier) {
|
|
41760
41784
|
var domRange = curDomRange.normalize();
|
|
41761
41785
|
var startPath = domRange.endPath;
|
|
41762
|
-
var hoEditorFactory =
|
|
41786
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41763
41787
|
if (operType === 'update') {
|
|
41764
41788
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41765
41789
|
if (np) {
|
|
41766
41790
|
var node = np.node;
|
|
41767
|
-
if (node instanceof
|
|
41791
|
+
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .BarcodeNode */ .T) {
|
|
41768
41792
|
hoEditorFactory.undoService.begin();
|
|
41769
|
-
hoEditorFactory.undoService.add(new
|
|
41793
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41770
41794
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41771
41795
|
}
|
|
41772
41796
|
}
|
|
41773
41797
|
}
|
|
41774
41798
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41775
41799
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
41776
|
-
var barCodeNode = new
|
|
41800
|
+
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
41801
|
//name,
|
|
41778
41802
|
innerIdentifier, textContent, isDisplayText, imagePath, width, height
|
|
41779
41803
|
//,bandDataSource
|
|
@@ -41805,14 +41829,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41805
41829
|
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
|
|
41806
41830
|
var domRange = curDomRange.normalize();
|
|
41807
41831
|
var startPath = domRange.endPath;
|
|
41808
|
-
var hoEditorFactory =
|
|
41832
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41809
41833
|
if (operType === 'update') {
|
|
41810
41834
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41811
41835
|
if (np) {
|
|
41812
41836
|
var node = np.node;
|
|
41813
|
-
if (node instanceof
|
|
41837
|
+
if (node instanceof _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .QrcodeNode */ .d) {
|
|
41814
41838
|
hoEditorFactory.undoService.begin();
|
|
41815
|
-
hoEditorFactory.undoService.add(new
|
|
41839
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41816
41840
|
//hoEditorFactory.undoService.commit();
|
|
41817
41841
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41818
41842
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41820,7 +41844,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41820
41844
|
}
|
|
41821
41845
|
}
|
|
41822
41846
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41823
|
-
var qrcodeNode = new
|
|
41847
|
+
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
41848
|
//插入该表达式节点
|
|
41825
41849
|
if (operType === 'add') {
|
|
41826
41850
|
hoEditorFactory.undoService.begin();
|
|
@@ -41831,27 +41855,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41831
41855
|
}, {
|
|
41832
41856
|
key: "updateCodeContent",
|
|
41833
41857
|
value: function updateCodeContent(node, content) {
|
|
41834
|
-
var hoEditorFactory =
|
|
41858
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41835
41859
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41836
41860
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41837
|
-
var changeEvent = new
|
|
41861
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41838
41862
|
changeEvent.oldEndPath = ePath;
|
|
41839
41863
|
changeEvent.afterChangePath = ePath;
|
|
41840
|
-
changeEvent.oldDrawLines = new
|
|
41864
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41841
41865
|
node.textContent = content;
|
|
41842
41866
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41843
41867
|
}
|
|
41844
41868
|
}, {
|
|
41845
41869
|
key: "insertTable",
|
|
41846
41870
|
value: function insertTable(arange, row, col) {
|
|
41847
|
-
var hoEditorFactory =
|
|
41871
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41848
41872
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41849
41873
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41850
|
-
if (parentNode instanceof
|
|
41874
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41851
41875
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
41852
41876
|
return;
|
|
41853
41877
|
}
|
|
41854
|
-
if (parentNode instanceof
|
|
41878
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41855
41879
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
41856
41880
|
return;
|
|
41857
41881
|
}
|
|
@@ -41881,10 +41905,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41881
41905
|
// paraNode
|
|
41882
41906
|
// );
|
|
41883
41907
|
// }
|
|
41884
|
-
var tableProperty = new
|
|
41885
|
-
var tableNode = new
|
|
41908
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE('');
|
|
41909
|
+
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
41886
41910
|
hoEditorFactory.undoService.begin();
|
|
41887
|
-
hoEditorFactory.undoService.add(new
|
|
41911
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
41888
41912
|
hoEditorFactory.undoService.commit();
|
|
41889
41913
|
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
41890
41914
|
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
@@ -41899,7 +41923,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41899
41923
|
}, {
|
|
41900
41924
|
key: "insertTableRowAbove",
|
|
41901
41925
|
value: function insertTableRowAbove(arange, count) {
|
|
41902
|
-
var hoEditorFactory =
|
|
41926
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41903
41927
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41904
41928
|
if (np && np.node) {
|
|
41905
41929
|
// const index = np.childIndex;
|
|
@@ -41907,20 +41931,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41907
41931
|
// }else{
|
|
41908
41932
|
// }
|
|
41909
41933
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
41910
|
-
if (cell && cell instanceof
|
|
41911
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41934
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41935
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
41912
41936
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
41913
41937
|
_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
41938
|
r = _cell$table$getCellIn2[0],
|
|
41915
41939
|
c = _cell$table$getCellIn2[1];
|
|
41916
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41940
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
41917
41941
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41918
41942
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
41919
41943
|
return;
|
|
41920
41944
|
}
|
|
41921
41945
|
}
|
|
41922
41946
|
hoEditorFactory.undoService.begin();
|
|
41923
|
-
hoEditorFactory.undoService.add(new
|
|
41947
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
41924
41948
|
hoEditorFactory.undoService.commit();
|
|
41925
41949
|
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
41926
41950
|
if (newLineWithCellContent) {
|
|
@@ -41931,26 +41955,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41931
41955
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41932
41956
|
var spath = sCell.childNodes[0].getNodePath();
|
|
41933
41957
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41934
|
-
var domRange = new
|
|
41958
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41935
41959
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
41936
41960
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41937
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
41961
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
41938
41962
|
for (var n = 0; n < nodes.length; n++) {
|
|
41939
41963
|
var anode = nodes[n];
|
|
41940
41964
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41941
41965
|
nodes.splice(n, 1);
|
|
41942
|
-
} else if (anode instanceof
|
|
41966
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
41943
41967
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
41944
|
-
var markNode = new
|
|
41968
|
+
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
41969
|
anode.childNodes.splice(1, 0, markNode);
|
|
41946
|
-
} else if (anode instanceof
|
|
41970
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
41947
41971
|
anode.text = anode.name;
|
|
41948
41972
|
anode.keyValue = '';
|
|
41949
41973
|
anode.node2DrawNode();
|
|
41950
|
-
} else if (anode instanceof
|
|
41974
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
41951
41975
|
anode.text = anode.labelText;
|
|
41952
41976
|
anode.node2DrawNode();
|
|
41953
|
-
} else if (anode instanceof
|
|
41977
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
41954
41978
|
anode.number = 0;
|
|
41955
41979
|
anode.type = 0;
|
|
41956
41980
|
anode.signor = '';
|
|
@@ -41989,8 +42013,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41989
42013
|
if (sCellNode && eCellNode) {
|
|
41990
42014
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
41991
42015
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
41992
|
-
var newRange = new
|
|
41993
|
-
var cgEvent = new
|
|
42016
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42017
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
41994
42018
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
41995
42019
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
41996
42020
|
}
|
|
@@ -42021,24 +42045,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42021
42045
|
}, {
|
|
42022
42046
|
key: "insertTableRowBelow",
|
|
42023
42047
|
value: function insertTableRowBelow(arange, count) {
|
|
42024
|
-
var hoEditorFactory =
|
|
42048
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42025
42049
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42026
42050
|
if (np && np.node) {
|
|
42027
42051
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42028
|
-
if (cell && cell instanceof
|
|
42029
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42052
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42053
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
42030
42054
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
42031
42055
|
_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
42056
|
r = _cell$table$getCellIn4[0],
|
|
42033
42057
|
c = _cell$table$getCellIn4[1];
|
|
42034
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42058
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42035
42059
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
42036
42060
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
42037
42061
|
return;
|
|
42038
42062
|
}
|
|
42039
42063
|
}
|
|
42040
42064
|
hoEditorFactory.undoService.begin();
|
|
42041
|
-
hoEditorFactory.undoService.add(new
|
|
42065
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
42042
42066
|
hoEditorFactory.undoService.commit();
|
|
42043
42067
|
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
42044
42068
|
if (newLineWithCellContent) {
|
|
@@ -42049,26 +42073,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42049
42073
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
42050
42074
|
var spath = sCell.childNodes[0].getNodePath();
|
|
42051
42075
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
42052
|
-
var domRange = new
|
|
42076
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
42053
42077
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
42054
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
42078
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
42055
42079
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
42056
42080
|
for (var n = 0; n < nodes.length; n++) {
|
|
42057
42081
|
var anode = nodes[n];
|
|
42058
42082
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
42059
42083
|
nodes.splice(n, 1);
|
|
42060
|
-
} else if (anode instanceof
|
|
42084
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
42061
42085
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
42062
|
-
var markNode = new
|
|
42086
|
+
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
42087
|
anode.childNodes.splice(1, 0, markNode);
|
|
42064
|
-
} else if (anode instanceof
|
|
42088
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
42065
42089
|
anode.text = anode.name;
|
|
42066
42090
|
anode.keyValue = '';
|
|
42067
42091
|
anode.node2DrawNode();
|
|
42068
|
-
} else if (anode instanceof
|
|
42092
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
42069
42093
|
anode.text = anode.labelText;
|
|
42070
42094
|
anode.node2DrawNode();
|
|
42071
|
-
} else if (anode instanceof
|
|
42095
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
42072
42096
|
anode.number = 0;
|
|
42073
42097
|
anode.type = 0;
|
|
42074
42098
|
anode.signor = '';
|
|
@@ -42107,8 +42131,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42107
42131
|
if (sCellNode && eCellNode) {
|
|
42108
42132
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42109
42133
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42110
|
-
var newRange = new
|
|
42111
|
-
var cgEvent = new
|
|
42134
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42135
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42112
42136
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42113
42137
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42114
42138
|
}
|
|
@@ -42139,19 +42163,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42139
42163
|
}, {
|
|
42140
42164
|
key: "insertTableColLeft",
|
|
42141
42165
|
value: function insertTableColLeft(arange, count) {
|
|
42142
|
-
var hoEditorFactory =
|
|
42166
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42143
42167
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42144
42168
|
if (np && np.node) {
|
|
42145
42169
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42146
|
-
if (cell && cell instanceof
|
|
42170
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42147
42171
|
var status = hoEditorFactory.drawTree.paintStatus;
|
|
42148
|
-
if (status ==
|
|
42172
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42149
42173
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
42150
42174
|
_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
42175
|
r = _cell$table$getCellIn6[0],
|
|
42152
42176
|
c = _cell$table$getCellIn6[1];
|
|
42153
42177
|
hoEditorFactory.undoService.begin();
|
|
42154
|
-
hoEditorFactory.undoService.add(new
|
|
42178
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
42155
42179
|
hoEditorFactory.undoService.commit();
|
|
42156
42180
|
var sCellNode = cell.table.rows[0][c];
|
|
42157
42181
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
@@ -42166,8 +42190,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42166
42190
|
if (sCellNode && eCellNode) {
|
|
42167
42191
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42168
42192
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42169
|
-
var newRange = new
|
|
42170
|
-
var cgEvent = new
|
|
42193
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42194
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42171
42195
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42172
42196
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42173
42197
|
}
|
|
@@ -42200,18 +42224,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42200
42224
|
}, {
|
|
42201
42225
|
key: "insertTableColRight",
|
|
42202
42226
|
value: function insertTableColRight(arange, count) {
|
|
42203
|
-
var hoEditorFactory =
|
|
42227
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42204
42228
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42205
42229
|
if (np && np.node) {
|
|
42206
42230
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42207
|
-
if (cell && cell instanceof
|
|
42208
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42231
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42232
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42209
42233
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
42210
42234
|
_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
42235
|
r = _cell$table$getCellIn8[0],
|
|
42212
42236
|
c = _cell$table$getCellIn8[1];
|
|
42213
42237
|
hoEditorFactory.undoService.begin();
|
|
42214
|
-
hoEditorFactory.undoService.add(new
|
|
42238
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
42215
42239
|
hoEditorFactory.undoService.commit();
|
|
42216
42240
|
var sCellNode = cell.table.rows[0][c + 1];
|
|
42217
42241
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
@@ -42226,8 +42250,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42226
42250
|
if (sCellNode && eCellNode) {
|
|
42227
42251
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42228
42252
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42229
|
-
var newRange = new
|
|
42230
|
-
var cgEvent = new
|
|
42253
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42254
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42231
42255
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42232
42256
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42233
42257
|
}
|
|
@@ -42258,7 +42282,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42258
42282
|
}, {
|
|
42259
42283
|
key: "tableDeleteRows",
|
|
42260
42284
|
value: function tableDeleteRows(aRange) {
|
|
42261
|
-
var _TableNode$getSelectT =
|
|
42285
|
+
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42262
42286
|
_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
42287
|
table = _TableNode$getSelectT2[0],
|
|
42264
42288
|
r1 = _TableNode$getSelectT2[1],
|
|
@@ -42273,8 +42297,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42273
42297
|
// if (eParentNode instanceof CellNode && eParentNode.rowSpan > 1) {
|
|
42274
42298
|
// r2 = r2 + eParentNode.rowSpan - 1;
|
|
42275
42299
|
// }
|
|
42276
|
-
var hoEditorFactory =
|
|
42277
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42300
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42301
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42278
42302
|
for (var i = r1; i <= r2; i++) {
|
|
42279
42303
|
var rowInfo = table.rowInfos[i];
|
|
42280
42304
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -42291,7 +42315,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42291
42315
|
return;
|
|
42292
42316
|
}
|
|
42293
42317
|
hoEditorFactory.undoService.begin();
|
|
42294
|
-
hoEditorFactory.undoService.add(new
|
|
42318
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
42295
42319
|
hoEditorFactory.undoService.commit();
|
|
42296
42320
|
if (table.childNodes.length > 0) {
|
|
42297
42321
|
var path = '';
|
|
@@ -42304,9 +42328,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42304
42328
|
var firstCell = table.childNodes[0];
|
|
42305
42329
|
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42306
42330
|
}
|
|
42307
|
-
var newDomRange = new
|
|
42331
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42308
42332
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42309
|
-
var cgEvent = new
|
|
42333
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42310
42334
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42311
42335
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42312
42336
|
}
|
|
@@ -42329,7 +42353,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42329
42353
|
}, {
|
|
42330
42354
|
key: "tableDeleteCols",
|
|
42331
42355
|
value: function tableDeleteCols(aRange) {
|
|
42332
|
-
var _TableNode$getSelectT3 =
|
|
42356
|
+
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42333
42357
|
_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
42358
|
table = _TableNode$getSelectT4[0],
|
|
42335
42359
|
r1 = _TableNode$getSelectT4[1],
|
|
@@ -42340,9 +42364,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42340
42364
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
42341
42365
|
return;
|
|
42342
42366
|
}
|
|
42343
|
-
var hoEditorFactory =
|
|
42367
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42344
42368
|
var eParentNode = aRange.npEnd.node.parentNode;
|
|
42345
|
-
if (eParentNode instanceof
|
|
42369
|
+
if (eParentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D && eParentNode.colSpan > 1) {
|
|
42346
42370
|
c2 = c2 + eParentNode.colSpan - 1;
|
|
42347
42371
|
}
|
|
42348
42372
|
if (c1 === 0 && c2 == table.colCount - 1) {
|
|
@@ -42353,14 +42377,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42353
42377
|
return;
|
|
42354
42378
|
}
|
|
42355
42379
|
hoEditorFactory.undoService.begin();
|
|
42356
|
-
hoEditorFactory.undoService.add(new
|
|
42380
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__/* .TableDeleteColUndoUnit */ .u(this._hoEditorFactoryID, table, c1, c2 - c1 + 1));
|
|
42357
42381
|
hoEditorFactory.undoService.commit();
|
|
42358
42382
|
if (table.childNodes.length > 0) {
|
|
42359
42383
|
var firstCell = table.childNodes[0];
|
|
42360
42384
|
var path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42361
|
-
var newDomRange = new
|
|
42385
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42362
42386
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42363
|
-
var cgEvent = new
|
|
42387
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42364
42388
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42365
42389
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42366
42390
|
}
|
|
@@ -42383,13 +42407,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42383
42407
|
}, {
|
|
42384
42408
|
key: "tableMergerCells",
|
|
42385
42409
|
value: function tableMergerCells(aRange) {
|
|
42386
|
-
var hoEditorFactory =
|
|
42410
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42387
42411
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42388
42412
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42389
42413
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42390
42414
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42391
42415
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42392
|
-
if (!(cell1 instanceof
|
|
42416
|
+
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
42417
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
42394
42418
|
return;
|
|
42395
42419
|
}
|
|
@@ -42412,7 +42436,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42412
42436
|
aColSpan = _cell1$table$canMerge2[2];
|
|
42413
42437
|
if (ret) {
|
|
42414
42438
|
hoEditorFactory.undoService.begin();
|
|
42415
|
-
hoEditorFactory.undoService.add(new
|
|
42439
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell1.table, r1, c1, aRowSpan, aColSpan));
|
|
42416
42440
|
hoEditorFactory.undoService.commit();
|
|
42417
42441
|
// cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
42418
42442
|
// const endPath = (cell1 as CellNode).table.getNodePath();
|
|
@@ -42435,13 +42459,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42435
42459
|
}, {
|
|
42436
42460
|
key: "tableUnMergerCells",
|
|
42437
42461
|
value: function tableUnMergerCells(aRange) {
|
|
42438
|
-
var hoEditorFactory =
|
|
42462
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42439
42463
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42440
42464
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42441
42465
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42442
42466
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42443
42467
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42444
|
-
if (!(cell1 instanceof
|
|
42468
|
+
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
42469
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
42446
42470
|
return;
|
|
42447
42471
|
}
|
|
@@ -42469,7 +42493,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42469
42493
|
var cell = cell1.table.rows[r][c];
|
|
42470
42494
|
if (cell && (cell.rowSpan > 1 || cell.colSpan > 1)) {
|
|
42471
42495
|
hoEditorFactory.undoService.begin();
|
|
42472
|
-
hoEditorFactory.undoService.add(new
|
|
42496
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__/* .TableUnMergeCellUndoUnit */ .u(this._hoEditorFactoryID, cell1.table, r, c));
|
|
42473
42497
|
hoEditorFactory.undoService.commit();
|
|
42474
42498
|
}
|
|
42475
42499
|
}
|
|
@@ -42494,7 +42518,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42494
42518
|
}, {
|
|
42495
42519
|
key: "setTableProperty",
|
|
42496
42520
|
value: function setTableProperty(objectValues, tableNode) {
|
|
42497
|
-
var tableProperty = new
|
|
42521
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE(objectValues);
|
|
42498
42522
|
tableNode.tableProperty = tableProperty;
|
|
42499
42523
|
}
|
|
42500
42524
|
/**
|
|
@@ -42506,9 +42530,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42506
42530
|
key: "setRowProperty",
|
|
42507
42531
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
42508
42532
|
var _this4 = this;
|
|
42509
|
-
var hoEditorFactory =
|
|
42533
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42510
42534
|
var setRowProps = function setRowProps(rowInfo) {
|
|
42511
|
-
var rowProperty = new
|
|
42535
|
+
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .RowProperty */ .Nr(objectValues);
|
|
42512
42536
|
var oldRowProperty = rowInfo.rowProperty;
|
|
42513
42537
|
rowInfo.rowProperty = rowProperty;
|
|
42514
42538
|
if (rowProperty.isSpecifyHeight && rowProperty.rowHeight !== oldRowProperty.rowHeight) {
|
|
@@ -42517,7 +42541,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42517
42541
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
42518
42542
|
if (r >= 0) {
|
|
42519
42543
|
hoEditorFactory.undoService.begin();
|
|
42520
|
-
hoEditorFactory.undoService.add(new
|
|
42544
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableResizeRowUndoUnit */ .w(_this4._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
42521
42545
|
hoEditorFactory.undoService.commit();
|
|
42522
42546
|
}
|
|
42523
42547
|
}
|
|
@@ -42526,7 +42550,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42526
42550
|
setRowProps(rowInfo);
|
|
42527
42551
|
} else {
|
|
42528
42552
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42529
|
-
var rowscols =
|
|
42553
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42530
42554
|
if (rowscols[0]) {
|
|
42531
42555
|
var startRowNo = rowscols[1];
|
|
42532
42556
|
var endRowNo = rowscols[3];
|
|
@@ -42544,7 +42568,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42544
42568
|
}
|
|
42545
42569
|
}
|
|
42546
42570
|
rowInfo.table.update();
|
|
42547
|
-
var cgEvent = new
|
|
42571
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42548
42572
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42549
42573
|
}
|
|
42550
42574
|
/**
|
|
@@ -42556,9 +42580,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42556
42580
|
key: "setColProperty",
|
|
42557
42581
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
42558
42582
|
var _this5 = this;
|
|
42559
|
-
var hoEditorFactory =
|
|
42583
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42560
42584
|
var setColProps = function setColProps(colInfo) {
|
|
42561
|
-
var colProperty = new
|
|
42585
|
+
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .ColProperty */ .Ti(objectValues);
|
|
42562
42586
|
var oldColProperty = colInfo.colProperty;
|
|
42563
42587
|
colInfo.colProperty = colProperty;
|
|
42564
42588
|
if (colProperty.isSpecifyWidth && colProperty.width !== oldColProperty.width) {
|
|
@@ -42566,7 +42590,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42566
42590
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
42567
42591
|
if (c >= 0) {
|
|
42568
42592
|
hoEditorFactory.undoService.begin();
|
|
42569
|
-
hoEditorFactory.undoService.add(new
|
|
42593
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__/* .TableResizeColUndoUnit */ .D(_this5._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
42570
42594
|
hoEditorFactory.undoService.commit();
|
|
42571
42595
|
}
|
|
42572
42596
|
}
|
|
@@ -42586,7 +42610,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42586
42610
|
setColProps(colInfo);
|
|
42587
42611
|
} else {
|
|
42588
42612
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42589
|
-
var rowscols =
|
|
42613
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42590
42614
|
if (rowscols[0]) {
|
|
42591
42615
|
var startColNo = rowscols[2];
|
|
42592
42616
|
var endColNo = rowscols[4];
|
|
@@ -42604,7 +42628,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42604
42628
|
}
|
|
42605
42629
|
}
|
|
42606
42630
|
colInfo.table.update();
|
|
42607
|
-
var cgEvent = new
|
|
42631
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42608
42632
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42609
42633
|
}
|
|
42610
42634
|
/**
|
|
@@ -42615,7 +42639,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42615
42639
|
}, {
|
|
42616
42640
|
key: "setCellProperty",
|
|
42617
42641
|
value: function setCellProperty(objectValues, cellNode) {
|
|
42618
|
-
var cellProperty = new
|
|
42642
|
+
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
42619
42643
|
cellNode.cellProperty = cellProperty;
|
|
42620
42644
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
42621
42645
|
pcell.valignTop = pcell.calcValignTop(pcell.dHeight)[0];
|
|
@@ -42627,12 +42651,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42627
42651
|
}, {
|
|
42628
42652
|
key: "addHeader",
|
|
42629
42653
|
value: function addHeader(arange) {
|
|
42630
|
-
var hoEditorFactory =
|
|
42654
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42631
42655
|
//切换路径
|
|
42632
42656
|
var cpage = hoEditorFactory.drawTree.activePage;
|
|
42633
|
-
if (!cpage) throw
|
|
42657
|
+
if (!cpage) throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.LineNotDefined();
|
|
42634
42658
|
//切换当前页面页眉
|
|
42635
|
-
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex,
|
|
42659
|
+
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex, _SubDocManger__WEBPACK_IMPORTED_MODULE_56__/* .HeaderFooterType */ .pi.hftHead);
|
|
42636
42660
|
// const index = hoEditorFactory.drawTree.headerDNodes.length;
|
|
42637
42661
|
// const newPath = `${gHeaderPath}/${index}`;
|
|
42638
42662
|
// cpage?.drawDomLevel?.drawHeader.DeletePage(cpage);
|
|
@@ -42677,15 +42701,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42677
42701
|
value: function insertRadioAndCheckBox(operType, curDomRange, valuesObject, styleIndex) {
|
|
42678
42702
|
var domRange = curDomRange.normalize();
|
|
42679
42703
|
var startPath = domRange.endPath;
|
|
42680
|
-
var hoEditorFactory =
|
|
42704
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42681
42705
|
var oldIsTransToText = false;
|
|
42682
42706
|
if (operType === 'update') {
|
|
42683
42707
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
42684
42708
|
if (np) {
|
|
42685
42709
|
var node = np.node;
|
|
42686
|
-
if (node instanceof
|
|
42710
|
+
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42687
42711
|
hoEditorFactory.undoService.begin();
|
|
42688
|
-
hoEditorFactory.undoService.add(new
|
|
42712
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42689
42713
|
oldIsTransToText = node.isTransToText;
|
|
42690
42714
|
//hoEditorFactory.undoService.commit();
|
|
42691
42715
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42701,7 +42725,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42701
42725
|
//valuesObj["text"] = "";
|
|
42702
42726
|
//valuesObject = JSON.stringify(valuesObj);
|
|
42703
42727
|
//}
|
|
42704
|
-
var radioAndCheckBoxNode = new
|
|
42728
|
+
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
42729
|
//插入该表达式节点
|
|
42706
42730
|
if (operType === 'add') {
|
|
42707
42731
|
hoEditorFactory.undoService.begin();
|
|
@@ -42725,7 +42749,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42725
42749
|
}, {
|
|
42726
42750
|
key: "find",
|
|
42727
42751
|
value: function find(curDomRange, findContent, direction, matchCase) {
|
|
42728
|
-
var hoEditorFactory =
|
|
42752
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42729
42753
|
if (this._findContent.length === 0) {
|
|
42730
42754
|
this._findContent = findContent;
|
|
42731
42755
|
this._count++;
|
|
@@ -42778,8 +42802,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42778
42802
|
}
|
|
42779
42803
|
}
|
|
42780
42804
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
42781
|
-
var newRange = new
|
|
42782
|
-
var cgEvent = new
|
|
42805
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, returnPath, path);
|
|
42806
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42783
42807
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42784
42808
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42785
42809
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
@@ -42797,7 +42821,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42797
42821
|
}, {
|
|
42798
42822
|
key: "replace",
|
|
42799
42823
|
value: function replace(curDomRange, findContent, replaceContent, path, type, direction, matchCase) {
|
|
42800
|
-
var hoEditorFactory =
|
|
42824
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42801
42825
|
var domRange = curDomRange.normalize();
|
|
42802
42826
|
var startNode = domRange.npStart.node;
|
|
42803
42827
|
var sNode = startNode;
|
|
@@ -42851,7 +42875,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42851
42875
|
var endPath1 = getArr1[1];
|
|
42852
42876
|
var newTextNode1 = getArr1[2];
|
|
42853
42877
|
hoEditorFactory.undoService.begin();
|
|
42854
|
-
hoEditorFactory.undoService.add(new
|
|
42878
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
42855
42879
|
if (replaceContent !== '') {
|
|
42856
42880
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
42857
42881
|
}
|
|
@@ -42875,7 +42899,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42875
42899
|
var endPath2 = getArr2[0];
|
|
42876
42900
|
var newTextNode2 = getArr2[1];
|
|
42877
42901
|
hoEditorFactory.undoService.begin();
|
|
42878
|
-
hoEditorFactory.undoService.add(new
|
|
42902
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
42879
42903
|
if (replaceContent !== '') {
|
|
42880
42904
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
42881
42905
|
}
|
|
@@ -42885,8 +42909,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42885
42909
|
if (replaceContent !== '') {
|
|
42886
42910
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
42887
42911
|
}
|
|
42888
|
-
var newRange = new
|
|
42889
|
-
var cgEvent = new
|
|
42912
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
42913
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42890
42914
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42891
42915
|
}
|
|
42892
42916
|
}
|
|
@@ -42909,7 +42933,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42909
42933
|
oldDataID = '';
|
|
42910
42934
|
oldId = '';
|
|
42911
42935
|
domRange = curDomRange.normalize();
|
|
42912
|
-
hoEditorFactory =
|
|
42936
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42913
42937
|
startPath = domRange.endPath;
|
|
42914
42938
|
if (!(operType === 'update')) {
|
|
42915
42939
|
_context2.next = 16;
|
|
@@ -42921,7 +42945,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42921
42945
|
break;
|
|
42922
42946
|
}
|
|
42923
42947
|
node = np.node;
|
|
42924
|
-
if (!(node instanceof
|
|
42948
|
+
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z)) {
|
|
42925
42949
|
_context2.next = 16;
|
|
42926
42950
|
break;
|
|
42927
42951
|
}
|
|
@@ -42929,14 +42953,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42929
42953
|
oldId = node.id;
|
|
42930
42954
|
hoEditorFactory.undoService.begin();
|
|
42931
42955
|
_context2.next = 15;
|
|
42932
|
-
return hoEditorFactory.undoService.add(new
|
|
42956
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42933
42957
|
case 15:
|
|
42934
42958
|
//hoEditorFactory.undoService.commit();
|
|
42935
42959
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
42936
42960
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42937
42961
|
case 16:
|
|
42938
42962
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42939
|
-
dateTimeNode = new
|
|
42963
|
+
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
42964
|
if (operType === 'add') {
|
|
42941
42965
|
hoEditorFactory.undoService.begin();
|
|
42942
42966
|
} else {
|
|
@@ -42976,7 +43000,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42976
43000
|
startPath = domRange.endPath;
|
|
42977
43001
|
oldDataID = '';
|
|
42978
43002
|
oldId = '';
|
|
42979
|
-
hoEditorFactory =
|
|
43003
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42980
43004
|
if (!(operType === 'update')) {
|
|
42981
43005
|
_context3.next = 16;
|
|
42982
43006
|
break;
|
|
@@ -42987,7 +43011,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42987
43011
|
break;
|
|
42988
43012
|
}
|
|
42989
43013
|
node = np.node;
|
|
42990
|
-
if (!(node instanceof
|
|
43014
|
+
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF)) {
|
|
42991
43015
|
_context3.next = 16;
|
|
42992
43016
|
break;
|
|
42993
43017
|
}
|
|
@@ -42995,14 +43019,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42995
43019
|
oldId = node.id;
|
|
42996
43020
|
hoEditorFactory.undoService.begin();
|
|
42997
43021
|
_context3.next = 15;
|
|
42998
|
-
return hoEditorFactory.undoService.add(new
|
|
43022
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42999
43023
|
case 15:
|
|
43000
43024
|
//hoEditorFactory.undoService.commit();
|
|
43001
43025
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
43002
43026
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43003
43027
|
case 16:
|
|
43004
43028
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43005
|
-
downListNode = new
|
|
43029
|
+
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
43030
|
if (operType === 'add') {
|
|
43007
43031
|
hoEditorFactory.undoService.begin();
|
|
43008
43032
|
} else {
|
|
@@ -43012,7 +43036,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43012
43036
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
43013
43037
|
hoEditorFactory.undoService.commit();
|
|
43014
43038
|
if (operType === 'add') {
|
|
43015
|
-
if (parentNode instanceof
|
|
43039
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43016
43040
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
43017
43041
|
} else {
|
|
43018
43042
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
@@ -43046,9 +43070,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43046
43070
|
value: function insertSpecialChars(operType, curDomRange, specialChars, styleIndex) {
|
|
43047
43071
|
var domRange = curDomRange.normalize();
|
|
43048
43072
|
var startPath = domRange.endPath;
|
|
43049
|
-
var hoEditorFactory =
|
|
43073
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43050
43074
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43051
|
-
var specialCharsNode = new
|
|
43075
|
+
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
43076
|
//插入该表达式节点
|
|
43053
43077
|
hoEditorFactory.undoService.begin();
|
|
43054
43078
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
@@ -43066,9 +43090,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43066
43090
|
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
43067
43091
|
var domRange = curDomRange.normalize();
|
|
43068
43092
|
var startPath = domRange.endPath;
|
|
43069
|
-
var hoEditorFactory =
|
|
43093
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43070
43094
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43071
|
-
var rareCharNode = new
|
|
43095
|
+
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
43096
|
//插入该表达式节点
|
|
43073
43097
|
hoEditorFactory.undoService.begin();
|
|
43074
43098
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
@@ -43083,21 +43107,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43083
43107
|
}, {
|
|
43084
43108
|
key: "insertJumpButton",
|
|
43085
43109
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
43086
|
-
var hoEditorFactory =
|
|
43110
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43087
43111
|
var startPath = curDomRange.endPath;
|
|
43088
43112
|
if (operType === 'update') {
|
|
43089
43113
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43090
43114
|
if (np) {
|
|
43091
43115
|
var node = np.node;
|
|
43092
|
-
if (node instanceof
|
|
43116
|
+
if (node instanceof _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__/* .JumpButtonNode */ .a) {
|
|
43093
43117
|
hoEditorFactory.undoService.begin();
|
|
43094
|
-
hoEditorFactory.undoService.add(new
|
|
43118
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
43095
43119
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43096
43120
|
}
|
|
43097
43121
|
}
|
|
43098
43122
|
}
|
|
43099
43123
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43100
|
-
var jumpButtonNode = new
|
|
43124
|
+
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
43125
|
if (operType === 'add') {
|
|
43102
43126
|
hoEditorFactory.undoService.begin();
|
|
43103
43127
|
}
|
|
@@ -43111,7 +43135,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43111
43135
|
}, {
|
|
43112
43136
|
key: "setPageProperty",
|
|
43113
43137
|
value: function setPageProperty(objectValues) {
|
|
43114
|
-
var hoEditorFactory =
|
|
43138
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43115
43139
|
hoEditorFactory.pageProperty.setPageProperty(objectValues);
|
|
43116
43140
|
}
|
|
43117
43141
|
/**
|
|
@@ -43124,12 +43148,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43124
43148
|
value: function insertComment(text, curDomRange, source) {
|
|
43125
43149
|
var domRange = curDomRange.normalize();
|
|
43126
43150
|
if (!domRange.npStart.node) {
|
|
43127
|
-
throw
|
|
43151
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43128
43152
|
}
|
|
43129
43153
|
if (!domRange.npEnd.node) {
|
|
43130
|
-
throw
|
|
43154
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43131
43155
|
}
|
|
43132
|
-
var hoEditorFactory =
|
|
43156
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43133
43157
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
43134
43158
|
var startPath = domRange.startPath;
|
|
43135
43159
|
var endPath = domRange.endPath;
|
|
@@ -43138,13 +43162,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43138
43162
|
// domRange.npEnd.node instanceof TextNode
|
|
43139
43163
|
// ? domRange.npEnd.node.styleIndex
|
|
43140
43164
|
// : 0;
|
|
43141
|
-
var endNode = new
|
|
43142
|
-
endNode.MarkNodeType =
|
|
43165
|
+
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);
|
|
43166
|
+
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd;
|
|
43143
43167
|
endNode.isReadOnly = true;
|
|
43144
43168
|
hoEditorFactory.undoService.begin();
|
|
43145
43169
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, endPath, endNode));
|
|
43146
43170
|
hoEditorFactory.undoService.commit();
|
|
43147
|
-
var comment = new
|
|
43171
|
+
var comment = new _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__/* .Comment */ .s(this._hoEditorFactoryID, commentID, text, endNode, source);
|
|
43148
43172
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(endNode.drawNodes[0]);
|
|
43149
43173
|
if (!curArea) {
|
|
43150
43174
|
return;
|
|
@@ -43154,7 +43178,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43154
43178
|
// 2023-05-23注释 25临时放开
|
|
43155
43179
|
curArea.drawComments();
|
|
43156
43180
|
hoEditorFactory.undoService.begin();
|
|
43157
|
-
hoEditorFactory.undoService.add(new
|
|
43181
|
+
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
43182
|
hoEditorFactory.undoService.commit();
|
|
43159
43183
|
// const newEndpath = endNode.getNodePath();
|
|
43160
43184
|
// const newRange = new DomRange(
|
|
@@ -43174,7 +43198,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43174
43198
|
key: "deleteComment",
|
|
43175
43199
|
value: function deleteComment(type, commentID) {
|
|
43176
43200
|
var _this6 = this;
|
|
43177
|
-
var hoEditorFactory =
|
|
43201
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43178
43202
|
var delStyleComment = function delStyleComment(commentID) {
|
|
43179
43203
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
43180
43204
|
if (value.commentID === commentID) {
|
|
@@ -43192,7 +43216,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43192
43216
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
43193
43217
|
var endPath = comment.eNode.getNodePath();
|
|
43194
43218
|
hoEditorFactory.undoService.begin();
|
|
43195
|
-
hoEditorFactory.undoService.add(new
|
|
43219
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this6._hoEditorFactoryID, comment.eNode, endPath));
|
|
43196
43220
|
hoEditorFactory.undoService.commit();
|
|
43197
43221
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
43198
43222
|
};
|
|
@@ -43253,7 +43277,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43253
43277
|
key: "insertPageNum",
|
|
43254
43278
|
value: function insertPageNum(operType, domRange, contentType, formatType, autoSetHeight) {
|
|
43255
43279
|
var startPath = domRange.normalize().endPath;
|
|
43256
|
-
var hoEditorFactory =
|
|
43280
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43257
43281
|
// if (operType === "update") {
|
|
43258
43282
|
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
43259
43283
|
// startPath
|
|
@@ -43276,14 +43300,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43276
43300
|
//插入页码
|
|
43277
43301
|
// const pageNum = hoEditorFactory.drawTree.activePage
|
|
43278
43302
|
// ?.pageIndex as number;
|
|
43279
|
-
var pageNumNode = new
|
|
43303
|
+
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
43304
|
//pageNum + 1,
|
|
43281
43305
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43282
43306
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageNumNode));
|
|
43283
43307
|
} else {
|
|
43284
43308
|
//插入页数
|
|
43285
43309
|
//const pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
43286
|
-
var pageCountNode = new
|
|
43310
|
+
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
43311
|
//pageCount,
|
|
43288
43312
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43289
43313
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageCountNode));
|
|
@@ -43296,15 +43320,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43296
43320
|
}, {
|
|
43297
43321
|
key: "selectAll",
|
|
43298
43322
|
value: function selectAll() {
|
|
43299
|
-
var hoEditorFactory =
|
|
43323
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43300
43324
|
var curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
43301
43325
|
var path = curDomRange.normalize().startPath;
|
|
43302
43326
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(path);
|
|
43303
43327
|
if (rootNodes) {
|
|
43304
43328
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(rootNodes[0]);
|
|
43305
43329
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(rootNodes[rootNodes.length - 1]);
|
|
43306
|
-
var newRange = new
|
|
43307
|
-
var cgEvent = new
|
|
43330
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43331
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, newRange); //选中范围变化事件
|
|
43308
43332
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
43309
43333
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
43310
43334
|
}
|
|
@@ -43317,7 +43341,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43317
43341
|
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
43342
|
while (1) switch (_context4.prev = _context4.next) {
|
|
43319
43343
|
case 0:
|
|
43320
|
-
hoEditorFactory =
|
|
43344
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43321
43345
|
_context4.next = 3;
|
|
43322
43346
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
43323
43347
|
case 3:
|
|
@@ -43371,7 +43395,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43371
43395
|
}, {
|
|
43372
43396
|
key: "editComment",
|
|
43373
43397
|
value: function editComment(commentID, text, source) {
|
|
43374
|
-
var hoEditorFactory =
|
|
43398
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43375
43399
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
43376
43400
|
var markNode;
|
|
43377
43401
|
if (curComment) {
|
|
@@ -43489,16 +43513,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43489
43513
|
}, {
|
|
43490
43514
|
key: "insertTableFormula",
|
|
43491
43515
|
value: function insertTableFormula(domRange, formulaStr, isHideZero, formulaType) {
|
|
43492
|
-
var hoEditorFactory =
|
|
43516
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43493
43517
|
var startPath = domRange.normalize().endPath;
|
|
43494
43518
|
var pNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43495
43519
|
hoEditorFactory.undoService.begin();
|
|
43496
|
-
if (domRange.npEnd.node instanceof
|
|
43520
|
+
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N) {
|
|
43497
43521
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
43498
|
-
hoEditorFactory.undoService.add(new
|
|
43522
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
43499
43523
|
startPath = prePath;
|
|
43500
43524
|
}
|
|
43501
|
-
var tableFormula = new
|
|
43525
|
+
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
43526
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
|
|
43503
43527
|
hoEditorFactory.undoService.commit();
|
|
43504
43528
|
}
|
|
@@ -43522,8 +43546,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43522
43546
|
}, {
|
|
43523
43547
|
key: "setUserLoginInfo",
|
|
43524
43548
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
43525
|
-
var hoEditorFactory =
|
|
43526
|
-
var userLogin = new
|
|
43549
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43550
|
+
var userLogin = new _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__/* .UserInfo */ .a(this._hoEditorFactoryID);
|
|
43527
43551
|
userLogin.setUserInfo(id, name, permissionLevel, clientIP);
|
|
43528
43552
|
hoEditorFactory.userInfo = userLogin;
|
|
43529
43553
|
}
|
|
@@ -43531,10 +43555,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43531
43555
|
key: "parseNodeData",
|
|
43532
43556
|
value: function parseNodeData(nodes) {
|
|
43533
43557
|
if (nodes && nodes.length > 0) {
|
|
43534
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
43558
|
+
if (nodes.length === 1 && nodes[0] instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
43535
43559
|
return;
|
|
43536
43560
|
}
|
|
43537
|
-
var hoeditorfactory =
|
|
43561
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43538
43562
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
43539
43563
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
43540
43564
|
var parentNode = curNode.parentNode;
|
|
@@ -43551,21 +43575,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43551
43575
|
// nodes.splice(0, 1);
|
|
43552
43576
|
// }
|
|
43553
43577
|
var isChange = false;
|
|
43554
|
-
if (parentNode instanceof
|
|
43578
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43555
43579
|
parentNode.childNodes.forEach(function (value) {
|
|
43556
|
-
if (value instanceof
|
|
43580
|
+
if (value instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && value.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtContent) {
|
|
43557
43581
|
parentNode.removeChild(value);
|
|
43558
43582
|
isChange = true;
|
|
43559
43583
|
}
|
|
43560
43584
|
});
|
|
43561
43585
|
if (isChange) {
|
|
43562
|
-
var sMarkNodePath =
|
|
43563
|
-
hoeditorfactory.docTree.curDomRange = new
|
|
43586
|
+
var sMarkNodePath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
43587
|
+
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
43564
43588
|
}
|
|
43565
43589
|
}
|
|
43566
43590
|
// this._pasteNodes.splice(0, 0, nodes);
|
|
43567
43591
|
hoeditorfactory.undoService.begin();
|
|
43568
|
-
hoeditorfactory.undoService.add(new
|
|
43592
|
+
hoeditorfactory.undoService.add(new _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__/* .ParseUndoUnit */ .e(this._hoEditorFactoryID, hoeditorfactory.docTree.curDomRange.startPath, hoeditorfactory.docTree.curDomRange.endPath, nodes));
|
|
43569
43593
|
hoeditorfactory.undoService.commit();
|
|
43570
43594
|
}
|
|
43571
43595
|
}
|
|
@@ -43576,7 +43600,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43576
43600
|
}, {
|
|
43577
43601
|
key: "insertHtmlText",
|
|
43578
43602
|
value: function insertHtmlText(strHtml) {
|
|
43579
|
-
var hoEditorFactory =
|
|
43603
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43580
43604
|
var nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
43581
43605
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
43582
43606
|
}
|
|
@@ -43590,14 +43614,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43590
43614
|
}, {
|
|
43591
43615
|
key: "getRedrawObject",
|
|
43592
43616
|
value: function getRedrawObject(startPath, endPath, action) {
|
|
43593
|
-
var domRange = new
|
|
43594
|
-
var cgEvent = new
|
|
43617
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43618
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, domRange.startPath, domRange.endPath);
|
|
43595
43619
|
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daUndoInsert || action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daDelete) {
|
|
43596
43620
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43597
|
-
cgEvent.oldDrawTreeLines = new
|
|
43621
|
+
cgEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(domRange.startPath, domRange.endPath);
|
|
43598
43622
|
} else if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daParaStyleChange) {
|
|
43599
43623
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43600
|
-
cgEvent.oldDrawLines = new
|
|
43624
|
+
cgEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(domRange.startPath, domRange.endPath, false);
|
|
43601
43625
|
}
|
|
43602
43626
|
return cgEvent;
|
|
43603
43627
|
}
|
|
@@ -43609,7 +43633,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43609
43633
|
}, {
|
|
43610
43634
|
key: "modifyRedraw",
|
|
43611
43635
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
43612
|
-
var hoeditorfactory =
|
|
43636
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43613
43637
|
var endPath;
|
|
43614
43638
|
if (endModifyNode instanceof _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .BaseNode */ .Hd) endPath = hoeditorfactory.docTree.getNodeLastPath(endModifyNode);else endPath = endModifyNode;
|
|
43615
43639
|
cgEvent.afterChangePath = endPath;
|
|
@@ -43618,7 +43642,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43618
43642
|
}, {
|
|
43619
43643
|
key: "deleteRedraw",
|
|
43620
43644
|
value: function deleteRedraw(cgEvent) {
|
|
43621
|
-
var hoeditorfactory =
|
|
43645
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43622
43646
|
cgEvent.afterChangePath = cgEvent.beforeChangePath;
|
|
43623
43647
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43624
43648
|
}
|
|
@@ -43630,9 +43654,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43630
43654
|
}, {
|
|
43631
43655
|
key: "insertRedraw",
|
|
43632
43656
|
value: function insertRedraw(startPath, endPath) {
|
|
43633
|
-
var hoeditorfactory =
|
|
43634
|
-
var domRange = new
|
|
43635
|
-
var cgEvent = new
|
|
43657
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43658
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43659
|
+
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
43660
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43637
43661
|
}
|
|
43638
43662
|
/**
|
|
@@ -43643,7 +43667,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43643
43667
|
}, {
|
|
43644
43668
|
key: "insertSeparateChar",
|
|
43645
43669
|
value: function insertSeparateChar(range, width, color, line) {
|
|
43646
|
-
var hoeditorfactory =
|
|
43670
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43647
43671
|
var np = range.normalize().npStart;
|
|
43648
43672
|
if (np && np.node) {
|
|
43649
43673
|
var curLine = hoeditorfactory.drawTree.getDlineByPath(np.path);
|
|
@@ -43654,7 +43678,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43654
43678
|
var paraNode;
|
|
43655
43679
|
if (!isNullLine) {
|
|
43656
43680
|
hoeditorfactory.undoService.begin();
|
|
43657
|
-
paraNode = new
|
|
43681
|
+
paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentNode, 0);
|
|
43658
43682
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, paraLastPath, paraNode));
|
|
43659
43683
|
hoeditorfactory.undoService.commit();
|
|
43660
43684
|
} else {
|
|
@@ -43665,7 +43689,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43665
43689
|
}
|
|
43666
43690
|
hoeditorfactory.undoService.begin();
|
|
43667
43691
|
var newParaPath = paraNode.getNodePath();
|
|
43668
|
-
var separateCharNode = new
|
|
43692
|
+
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
43693
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
43670
43694
|
hoeditorfactory.undoService.commit();
|
|
43671
43695
|
}
|
|
@@ -43680,20 +43704,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43680
43704
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
43681
43705
|
var domRange = range.normalize();
|
|
43682
43706
|
var startPath = domRange.endPath;
|
|
43683
|
-
var hoEditorFactory =
|
|
43707
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43684
43708
|
if (operType === 'update') {
|
|
43685
43709
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43686
43710
|
if (np) {
|
|
43687
43711
|
var node = np.node;
|
|
43688
|
-
if (node instanceof
|
|
43712
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G) {
|
|
43689
43713
|
hoEditorFactory.undoService.begin();
|
|
43690
|
-
hoEditorFactory.undoService.add(new
|
|
43714
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
43691
43715
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43692
43716
|
}
|
|
43693
43717
|
}
|
|
43694
43718
|
}
|
|
43695
43719
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43696
|
-
var gestationNode = new
|
|
43720
|
+
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
43721
|
//插入节点
|
|
43698
43722
|
if (operType === 'add') {
|
|
43699
43723
|
hoEditorFactory.undoService.begin();
|
|
@@ -43709,7 +43733,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43709
43733
|
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
43734
|
while (1) switch (_context5.prev = _context5.next) {
|
|
43711
43735
|
case 0:
|
|
43712
|
-
hoeditorfactory =
|
|
43736
|
+
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43713
43737
|
astart = range.npStart.node;
|
|
43714
43738
|
aend = range.npEnd.node;
|
|
43715
43739
|
sChildIndex = range.npStart.childIndex;
|
|
@@ -43776,8 +43800,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43776
43800
|
endPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43777
43801
|
}
|
|
43778
43802
|
}
|
|
43779
|
-
labelNode = new
|
|
43780
|
-
delRange = new
|
|
43803
|
+
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);
|
|
43804
|
+
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43781
43805
|
_context5.next = 28;
|
|
43782
43806
|
return this.deleteRange(delRange, true);
|
|
43783
43807
|
case 28:
|
|
@@ -43789,7 +43813,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43789
43813
|
anode = anode.previousLeaf();
|
|
43790
43814
|
if (anode) {
|
|
43791
43815
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43792
|
-
result =
|
|
43816
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_83__/* .NodePosition */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
43793
43817
|
if (result <= 0) {
|
|
43794
43818
|
anode = null;
|
|
43795
43819
|
}
|
|
@@ -43817,14 +43841,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43817
43841
|
}, {
|
|
43818
43842
|
key: "labelToText",
|
|
43819
43843
|
value: function labelToText(node) {
|
|
43820
|
-
var hoeditorfactory =
|
|
43844
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43821
43845
|
node.isAllowDelete = true;
|
|
43822
43846
|
var text = node.text;
|
|
43823
43847
|
var styleIndex = node.styleIndex;
|
|
43824
43848
|
var parentNode = node.parentNode;
|
|
43825
43849
|
var prevNodePath = hoeditorfactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43826
43850
|
var lastPath = hoeditorfactory.docTree.getNodeLastPath(node);
|
|
43827
|
-
var range = new
|
|
43851
|
+
var range = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, prevNodePath, lastPath);
|
|
43828
43852
|
this.deleteRange(range, true);
|
|
43829
43853
|
hoeditorfactory.undoService.begin();
|
|
43830
43854
|
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 +43866,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43842
43866
|
var loopCell = function loopCell() {
|
|
43843
43867
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43844
43868
|
var anode = cell.childNodes[j];
|
|
43845
|
-
if (anode instanceof
|
|
43869
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
43846
43870
|
mark = false;
|
|
43847
43871
|
break;
|
|
43848
43872
|
}
|
|
@@ -43887,10 +43911,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43887
43911
|
}, {
|
|
43888
43912
|
key: "insertEmptySignNode",
|
|
43889
43913
|
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties) {
|
|
43890
|
-
var hoEditorFactory =
|
|
43914
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43891
43915
|
var startPath = domRange.startPath;
|
|
43892
43916
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43893
|
-
var signNode = new
|
|
43917
|
+
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
43918
|
//插入该表达式节点
|
|
43895
43919
|
hoEditorFactory.undoService.begin();
|
|
43896
43920
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -43908,15 +43932,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43908
43932
|
}, {
|
|
43909
43933
|
key: "insertSignNode",
|
|
43910
43934
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
43911
|
-
var hoEditorFactory =
|
|
43935
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43912
43936
|
var startPath = domRange.startPath;
|
|
43913
43937
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43914
|
-
var signNode = new
|
|
43938
|
+
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
43939
|
//插入该表达式节点
|
|
43916
43940
|
hoEditorFactory.undoService.begin();
|
|
43917
43941
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
43918
43942
|
hoEditorFactory.undoService.commit();
|
|
43919
|
-
if (parentNode instanceof
|
|
43943
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43920
43944
|
this.signLockCheck(parentNode);
|
|
43921
43945
|
}
|
|
43922
43946
|
}
|
|
@@ -43933,15 +43957,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43933
43957
|
}, {
|
|
43934
43958
|
key: "updateSignNode",
|
|
43935
43959
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
43936
|
-
var hoEditorFactory =
|
|
43960
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43937
43961
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43938
43962
|
if (node.imgSrc === '') {
|
|
43939
43963
|
//第一次更新签名
|
|
43940
43964
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43941
|
-
var changeEvent = new
|
|
43965
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
43942
43966
|
changeEvent.oldEndPath = ePath;
|
|
43943
43967
|
changeEvent.afterChangePath = ePath;
|
|
43944
|
-
changeEvent.oldDrawLines = new
|
|
43968
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
43945
43969
|
node.type = type;
|
|
43946
43970
|
node.name = name;
|
|
43947
43971
|
node.number = 1;
|
|
@@ -43959,7 +43983,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43959
43983
|
// }
|
|
43960
43984
|
//node.connectMode = "/";
|
|
43961
43985
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43962
|
-
if (node.parentNode instanceof
|
|
43986
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43963
43987
|
this.signLockCheck(node.parentNode);
|
|
43964
43988
|
}
|
|
43965
43989
|
} else {
|
|
@@ -43968,7 +43992,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43968
43992
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43969
43993
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
43970
43994
|
var curParaNode = dline.paragraphNode;
|
|
43971
|
-
var newPara = new
|
|
43995
|
+
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
43972
43996
|
hoEditorFactory.undoService.begin();
|
|
43973
43997
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
43974
43998
|
hoEditorFactory.undoService.commit();
|
|
@@ -43978,7 +44002,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43978
44002
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43979
44003
|
}
|
|
43980
44004
|
}
|
|
43981
|
-
var newSignNode = new
|
|
44005
|
+
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
44006
|
//插入该表达式节点
|
|
43983
44007
|
hoEditorFactory.undoService.begin();
|
|
43984
44008
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -44002,13 +44026,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44002
44026
|
}, {
|
|
44003
44027
|
key: "updateEmptySignNode",
|
|
44004
44028
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront) {
|
|
44005
|
-
var hoEditorFactory =
|
|
44029
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44006
44030
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44007
44031
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44008
|
-
var changeEvent = new
|
|
44032
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44009
44033
|
changeEvent.oldEndPath = ePath;
|
|
44010
44034
|
changeEvent.afterChangePath = ePath;
|
|
44011
|
-
changeEvent.oldDrawLines = new
|
|
44035
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44012
44036
|
node.name = name;
|
|
44013
44037
|
node.connectChar = connectChar;
|
|
44014
44038
|
node.signType = signType;
|
|
@@ -44030,13 +44054,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44030
44054
|
}, {
|
|
44031
44055
|
key: "updateSignTime",
|
|
44032
44056
|
value: function updateSignTime(node, signText) {
|
|
44033
|
-
var hoEditorFactory =
|
|
44057
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44034
44058
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44035
44059
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44036
|
-
var changeEvent = new
|
|
44060
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44037
44061
|
changeEvent.oldEndPath = ePath;
|
|
44038
44062
|
changeEvent.afterChangePath = ePath;
|
|
44039
|
-
changeEvent.oldDrawLines = new
|
|
44063
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44040
44064
|
node.imgSrc = signText;
|
|
44041
44065
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44042
44066
|
}
|
|
@@ -44049,13 +44073,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44049
44073
|
}, {
|
|
44050
44074
|
key: "updateSignType",
|
|
44051
44075
|
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
44052
|
-
var hoEditorFactory =
|
|
44076
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44053
44077
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44054
44078
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44055
|
-
var changeEvent = new
|
|
44079
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44056
44080
|
changeEvent.oldEndPath = ePath;
|
|
44057
44081
|
changeEvent.afterChangePath = ePath;
|
|
44058
|
-
changeEvent.oldDrawLines = new
|
|
44082
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44059
44083
|
node.type = type;
|
|
44060
44084
|
node.imgWidth = imgWidth;
|
|
44061
44085
|
node.imgHeight = imgHeight;
|
|
@@ -44070,13 +44094,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44070
44094
|
}, {
|
|
44071
44095
|
key: "updateSignCustomProp",
|
|
44072
44096
|
value: function updateSignCustomProp(node, customProperty) {
|
|
44073
|
-
var hoEditorFactory =
|
|
44097
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44074
44098
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44075
44099
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44076
|
-
var changeEvent = new
|
|
44100
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44077
44101
|
changeEvent.oldEndPath = ePath;
|
|
44078
44102
|
changeEvent.afterChangePath = ePath;
|
|
44079
|
-
changeEvent.oldDrawLines = new
|
|
44103
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44080
44104
|
node.customProperty = customProperty;
|
|
44081
44105
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44082
44106
|
}
|
|
@@ -44087,7 +44111,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44087
44111
|
}, {
|
|
44088
44112
|
key: "getLogs",
|
|
44089
44113
|
value: function getLogs() {
|
|
44090
|
-
var hoEditorFactory =
|
|
44114
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44091
44115
|
return hoEditorFactory.undoService.getModifyHistory();
|
|
44092
44116
|
}
|
|
44093
44117
|
/**
|
|
@@ -44097,7 +44121,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44097
44121
|
key: "tabToNextElement",
|
|
44098
44122
|
value: function tabToNextElement() {
|
|
44099
44123
|
var _this7 = this;
|
|
44100
|
-
var hoEditorFactory =
|
|
44124
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44101
44125
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
44102
44126
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
44103
44127
|
var endPath = domRange.endPath;
|
|
@@ -44105,7 +44129,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44105
44129
|
var curNode = domRange.npEnd.node;
|
|
44106
44130
|
var nextNode = curNode.nextLeaf();
|
|
44107
44131
|
do {
|
|
44108
|
-
if (nextNode instanceof
|
|
44132
|
+
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
44133
|
break;
|
|
44110
44134
|
}
|
|
44111
44135
|
if (nextNode) {
|
|
@@ -44127,16 +44151,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44127
44151
|
}
|
|
44128
44152
|
} while (1);
|
|
44129
44153
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
44130
|
-
var newRange = new
|
|
44131
|
-
var cgEvent = new
|
|
44154
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(_this7._hoEditorFactoryID, sPath, ePath);
|
|
44155
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
44132
44156
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
44133
44157
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
44134
44158
|
};
|
|
44135
44159
|
var toPath = '';
|
|
44136
|
-
if (nextNode instanceof
|
|
44160
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
44137
44161
|
toPath = nextNode.getNodePath();
|
|
44138
44162
|
setSelectRange(toPath, toPath);
|
|
44139
|
-
} else if (nextNode instanceof
|
|
44163
|
+
} else if (nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z) {
|
|
44140
44164
|
toPath = nextNode.getNodePath();
|
|
44141
44165
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(nextNode.previousLeaf());
|
|
44142
44166
|
setSelectRange(sPath, toPath);
|
|
@@ -44148,7 +44172,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44148
44172
|
}, {
|
|
44149
44173
|
key: "mergeCells",
|
|
44150
44174
|
value: function mergeCells(cell, r, c, rowSpan, colSpan) {
|
|
44151
|
-
var hoEditorFactory =
|
|
44175
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44152
44176
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
44153
44177
|
_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
44178
|
ret = _cell$table$canMergeC2[0],
|
|
@@ -44156,7 +44180,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44156
44180
|
aColSpan = _cell$table$canMergeC2[2];
|
|
44157
44181
|
if (ret) {
|
|
44158
44182
|
hoEditorFactory.undoService.begin();
|
|
44159
|
-
hoEditorFactory.undoService.add(new
|
|
44183
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell.table, r, c, aRowSpan, aColSpan));
|
|
44160
44184
|
hoEditorFactory.undoService.commit();
|
|
44161
44185
|
}
|
|
44162
44186
|
}
|
|
@@ -69439,6 +69463,20 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
69439
69463
|
if (iend < this.text.length - 1) {
|
|
69440
69464
|
dline.fitLines();
|
|
69441
69465
|
dline = dline.paragraphNode.getNextDline(dline);
|
|
69466
|
+
if (dline.paragraphNode.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_29__/* .TextInputFieldNode */ .re) {
|
|
69467
|
+
var index = dline.paragraphNode.drawlines.indexOf(dline);
|
|
69468
|
+
var prevLine = dline.paragraphNode.drawlines[index - 1];
|
|
69469
|
+
if (prevLine && prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__/* .DrawLine */ .a) {
|
|
69470
|
+
var _dline$paragraphNode$ = dline.paragraphNode.parentNode.getLeftWidth(),
|
|
69471
|
+
_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),
|
|
69472
|
+
ileft = _dline$paragraphNode$2[0],
|
|
69473
|
+
paragraphWidth = _dline$paragraphNode$2[1],
|
|
69474
|
+
bAlignWithRect = _dline$paragraphNode$2[2];
|
|
69475
|
+
prevLine.x = dline.paragraphNode.combineParagraph.leftMarginPixes + ileft;
|
|
69476
|
+
prevLine.dWidth = paragraphWidth - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
|
|
69477
|
+
prevLine.updateLineStyle();
|
|
69478
|
+
}
|
|
69479
|
+
}
|
|
69442
69480
|
this.adjustRectAlignLine(dline);
|
|
69443
69481
|
}
|
|
69444
69482
|
istart = iend + 1;
|
|
@@ -178061,7 +178099,7 @@ var map = {
|
|
|
178061
178099
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
178062
178100
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
178063
178101
|
"./poperSelect/PoperMark.vue": 20734,
|
|
178064
|
-
"./poperSelect/PoperSelect.vue":
|
|
178102
|
+
"./poperSelect/PoperSelect.vue": 93795,
|
|
178065
178103
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
178066
178104
|
"./popers/Poper.vue": 57937,
|
|
178067
178105
|
"./popers/Title.vue": 85516,
|
|
@@ -215516,8 +215554,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
215516
215554
|
var es_number_constructor = __webpack_require__(9653);
|
|
215517
215555
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
215518
215556
|
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
|
|
215557
|
+
;// 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&
|
|
215558
|
+
var HoDocvue_type_template_id_beccc54c_render = function render() {
|
|
215521
215559
|
var _vm = this,
|
|
215522
215560
|
_c = _vm._self._c;
|
|
215523
215561
|
return _c('div', {
|
|
@@ -215701,7 +215739,7 @@ var HoDocvue_type_template_id_0793442a_render = function render() {
|
|
|
215701
215739
|
}
|
|
215702
215740
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
215703
215741
|
};
|
|
215704
|
-
var
|
|
215742
|
+
var HoDocvue_type_template_id_beccc54c_staticRenderFns = [];
|
|
215705
215743
|
|
|
215706
215744
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
215707
215745
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217301,7 +217339,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
217301
217339
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
217302
217340
|
var plugins_util = __webpack_require__(62783);
|
|
217303
217341
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
217304
|
-
var PoperSelect = __webpack_require__(
|
|
217342
|
+
var PoperSelect = __webpack_require__(93795);
|
|
217305
217343
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
217306
217344
|
var PoperMark = __webpack_require__(20734);
|
|
217307
217345
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218706,7 +218744,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218706
218744
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218707
218745
|
var ParagraphNode = __webpack_require__(67945);
|
|
218708
218746
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218709
|
-
/* harmony default export */ var version = ('3.1.
|
|
218747
|
+
/* harmony default export */ var version = ('3.1.45');
|
|
218710
218748
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218711
218749
|
var PoperTipText = __webpack_require__(50987);
|
|
218712
218750
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219016,7 +219054,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219016
219054
|
// intersectionRatio <= 0 代表目标页不在文档可视区内
|
|
219017
219055
|
// isIntersecting = true 代表目标页进入可视区 false代表离开可视区
|
|
219018
219056
|
if (v.isIntersecting && v.intersectionRatio == 0) {
|
|
219019
|
-
console.warn('
|
|
219057
|
+
console.warn('进入可视区但是重合区域=0');
|
|
219020
219058
|
}
|
|
219021
219059
|
if (v.intersectionRatio <= 0 && !v.isIntersecting) {
|
|
219022
219060
|
inViewPages = inViewPages.filter(function (m) {
|
|
@@ -219598,10 +219636,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219598
219636
|
});
|
|
219599
219637
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
219600
219638
|
/* 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=
|
|
219639
|
+
;// 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
219640
|
// extracted by mini-css-extract-plugin
|
|
219603
219641
|
|
|
219604
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219642
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=beccc54c&prod&lang=less&
|
|
219605
219643
|
|
|
219606
219644
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
219607
219645
|
|
|
@@ -219614,8 +219652,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219614
219652
|
|
|
219615
219653
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219616
219654
|
components_HoDocvue_type_script_lang_js_,
|
|
219617
|
-
|
|
219618
|
-
|
|
219655
|
+
HoDocvue_type_template_id_beccc54c_render,
|
|
219656
|
+
HoDocvue_type_template_id_beccc54c_staticRenderFns,
|
|
219619
219657
|
false,
|
|
219620
219658
|
null,
|
|
219621
219659
|
null,
|