hoeditor-web 3.1.42 → 3.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +515 -474
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9491,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9491
9491
|
|
|
9492
9492
|
/***/ }),
|
|
9493
9493
|
|
|
9494
|
-
/***/
|
|
9494
|
+
/***/ 63970:
|
|
9495
9495
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9496
9496
|
|
|
9497
9497
|
"use strict";
|
|
@@ -9511,7 +9511,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9511
9511
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9512
9512
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9513
9513
|
var es_string_replace = __webpack_require__(15306);
|
|
9514
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9514
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=02f5a118&
|
|
9515
9515
|
|
|
9516
9516
|
|
|
9517
9517
|
|
|
@@ -9934,7 +9934,7 @@ var render = function render() {
|
|
|
9934
9934
|
};
|
|
9935
9935
|
var staticRenderFns = [];
|
|
9936
9936
|
|
|
9937
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9937
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=02f5a118&
|
|
9938
9938
|
|
|
9939
9939
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9940
9940
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11983,6 +11983,9 @@ var columns = [{
|
|
|
11983
11983
|
},
|
|
11984
11984
|
hoEditorId: {
|
|
11985
11985
|
required: true
|
|
11986
|
+
},
|
|
11987
|
+
selectMarkStyle: {
|
|
11988
|
+
default: {}
|
|
11986
11989
|
}
|
|
11987
11990
|
},
|
|
11988
11991
|
inject: ['getCustomProperty', "hoEditorProvider"],
|
|
@@ -12178,10 +12181,17 @@ var columns = [{
|
|
|
12178
12181
|
this.poppernIstance = (0,popper/* createPopper */.fi)(cart, this.poperSelectedModal, {
|
|
12179
12182
|
placement: 'auto-end',
|
|
12180
12183
|
strategy: 'fixed',
|
|
12181
|
-
modifiers: [
|
|
12182
|
-
|
|
12184
|
+
modifiers: [
|
|
12185
|
+
// {
|
|
12186
|
+
// name: 'preventOverflow',
|
|
12187
|
+
// options: {
|
|
12188
|
+
// padding: 8,
|
|
12189
|
+
// },
|
|
12190
|
+
// },
|
|
12191
|
+
{
|
|
12192
|
+
name: 'flip',
|
|
12183
12193
|
options: {
|
|
12184
|
-
|
|
12194
|
+
fallbackPlacements: ['top', 'right']
|
|
12185
12195
|
}
|
|
12186
12196
|
}]
|
|
12187
12197
|
});
|
|
@@ -12354,10 +12364,15 @@ var columns = [{
|
|
|
12354
12364
|
// });
|
|
12355
12365
|
},
|
|
12356
12366
|
getCurrentPoperNode: function getCurrentPoperNode() {
|
|
12357
|
-
var _hoEditorFactory$vueC;
|
|
12358
12367
|
var value;
|
|
12359
12368
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
12360
|
-
var node =
|
|
12369
|
+
var node = null;
|
|
12370
|
+
if (this.selectMarkStyle.open && this.selectMarkStyle.dataid) {
|
|
12371
|
+
node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
12372
|
+
} else {
|
|
12373
|
+
var _hoEditorFactory$vueC;
|
|
12374
|
+
node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(this.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
12375
|
+
}
|
|
12361
12376
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
12362
12377
|
var parentNode = node.parentNode;
|
|
12363
12378
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -12817,10 +12832,10 @@ var columns = [{
|
|
|
12817
12832
|
});
|
|
12818
12833
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12819
12834
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12820
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12835
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=02f5a118&prod&lang=less&
|
|
12821
12836
|
// extracted by mini-css-extract-plugin
|
|
12822
12837
|
|
|
12823
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12838
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=02f5a118&prod&lang=less&
|
|
12824
12839
|
|
|
12825
12840
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12826
12841
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40033,69 +40048,69 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
40033
40048
|
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(64465);
|
|
40034
40049
|
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(32629);
|
|
40035
40050
|
/* harmony import */ var _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(27198);
|
|
40036
|
-
/* harmony import */ var
|
|
40037
|
-
/* harmony import */ var
|
|
40038
|
-
/* harmony import */ var
|
|
40039
|
-
/* harmony import */ var
|
|
40040
|
-
/* harmony import */ var
|
|
40041
|
-
/* harmony import */ var
|
|
40042
|
-
/* harmony import */ var
|
|
40043
|
-
/* harmony import */ var
|
|
40044
|
-
/* harmony import */ var
|
|
40045
|
-
/* harmony import */ var
|
|
40046
|
-
/* harmony import */ var
|
|
40047
|
-
/* harmony import */ var
|
|
40048
|
-
/* harmony import */ var
|
|
40049
|
-
/* harmony import */ var
|
|
40050
|
-
/* harmony import */ var
|
|
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
|
|
40051
|
+
/* harmony import */ var _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(78560);
|
|
40052
|
+
/* harmony import */ var _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(67945);
|
|
40053
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(94639);
|
|
40054
|
+
/* harmony import */ var _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(1544);
|
|
40055
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(29899);
|
|
40056
|
+
/* harmony import */ var _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(90432);
|
|
40057
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(931);
|
|
40058
|
+
/* harmony import */ var _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(71144);
|
|
40059
|
+
/* harmony import */ var _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(38938);
|
|
40060
|
+
/* harmony import */ var _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(38695);
|
|
40061
|
+
/* harmony import */ var _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(45836);
|
|
40062
|
+
/* harmony import */ var _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(19995);
|
|
40063
|
+
/* harmony import */ var _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(59621);
|
|
40064
|
+
/* harmony import */ var _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(47088);
|
|
40065
|
+
/* harmony import */ var _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(13307);
|
|
40066
|
+
/* harmony import */ var _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(11429);
|
|
40067
|
+
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(80177);
|
|
40068
|
+
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(90161);
|
|
40069
|
+
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(57727);
|
|
40070
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(97186);
|
|
40071
|
+
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(96637);
|
|
40072
|
+
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(12659);
|
|
40073
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(5010);
|
|
40074
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(8277);
|
|
40075
|
+
/* harmony import */ var _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(99152);
|
|
40076
|
+
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(92501);
|
|
40077
|
+
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(45712);
|
|
40078
|
+
/* harmony import */ var _SubDocManger__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(80556);
|
|
40079
|
+
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(68598);
|
|
40080
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(79546);
|
|
40081
|
+
/* harmony import */ var _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(61024);
|
|
40082
|
+
/* harmony import */ var _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(48458);
|
|
40083
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(48988);
|
|
40084
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(34908);
|
|
40085
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(43109);
|
|
40086
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(64180);
|
|
40087
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(24799);
|
|
40088
|
+
/* harmony import */ var _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(36288);
|
|
40089
|
+
/* harmony import */ var _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(92827);
|
|
40090
|
+
/* harmony import */ var _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(2592);
|
|
40091
|
+
/* harmony import */ var _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(10719);
|
|
40092
|
+
/* harmony import */ var _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(66034);
|
|
40093
|
+
/* harmony import */ var _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(90832);
|
|
40094
|
+
/* harmony import */ var _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(14871);
|
|
40095
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(52269);
|
|
40096
|
+
/* harmony import */ var _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(30589);
|
|
40097
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(2613);
|
|
40098
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(53901);
|
|
40099
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(74089);
|
|
40100
|
+
/* harmony import */ var _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(56422);
|
|
40101
|
+
/* harmony import */ var _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(80437);
|
|
40102
|
+
/* harmony import */ var _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(96635);
|
|
40103
|
+
/* harmony import */ var _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(39385);
|
|
40104
|
+
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(95089);
|
|
40105
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(42921);
|
|
40106
|
+
/* harmony import */ var _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(24701);
|
|
40107
|
+
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(76830);
|
|
40108
|
+
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(73632);
|
|
40109
|
+
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(90809);
|
|
40110
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(34910);
|
|
40111
|
+
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(330);
|
|
40112
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(63602);
|
|
40113
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(51760);
|
|
40099
40114
|
|
|
40100
40115
|
|
|
40101
40116
|
|
|
@@ -40246,19 +40261,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40246
40261
|
if (!bNormalized) {
|
|
40247
40262
|
aRange = range.normalize();
|
|
40248
40263
|
}
|
|
40249
|
-
var hoEditorFactory =
|
|
40264
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40250
40265
|
var creatorIndex = -1;
|
|
40251
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40266
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && aRange.npEnd.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
40252
40267
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
40253
40268
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
40254
40269
|
}
|
|
40255
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40270
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && oper !== 'update' && creatorIndex === -1) {
|
|
40256
40271
|
hoEditorFactory.undoService.begin();
|
|
40257
|
-
hoEditorFactory.undoService.add(new
|
|
40272
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p('reviewDelete', 'string')));
|
|
40258
40273
|
hoEditorFactory.undoService.commit();
|
|
40259
40274
|
} else {
|
|
40260
40275
|
hoEditorFactory.undoService.begin();
|
|
40261
|
-
var nodesDeleteUndoUnit = new
|
|
40276
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
40262
40277
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
40263
40278
|
hoEditorFactory.undoService.commit();
|
|
40264
40279
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -40268,10 +40283,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40268
40283
|
}, {
|
|
40269
40284
|
key: "insertNodeByPath",
|
|
40270
40285
|
value: function insertNodeByPath(path, node, isResetFieldText, isHasRelateEle) {
|
|
40271
|
-
var hoEditorFactory =
|
|
40286
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40272
40287
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40273
40288
|
var parentNode = node.parentNode;
|
|
40274
|
-
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && parentNode instanceof
|
|
40289
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !isHasRelateEle
|
|
40275
40290
|
//&& !parentNode.downListProperty.listItems?.includes("<元素>")
|
|
40276
40291
|
) {
|
|
40277
40292
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
@@ -40299,11 +40314,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40299
40314
|
|
|
40300
40315
|
if (!isError) {
|
|
40301
40316
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40302
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40317
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40303
40318
|
path = curDomRange.endPath;
|
|
40304
40319
|
}
|
|
40305
40320
|
var npNode = curDomRange.npEnd.node;
|
|
40306
|
-
if (npNode && npNode instanceof
|
|
40321
|
+
if (npNode && npNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && npNode.MarkNodeType == 1) {
|
|
40307
40322
|
path = npNode.parentNode.StartMarkNode.getNodePath();
|
|
40308
40323
|
}
|
|
40309
40324
|
hoEditorFactory.undoService.begin();
|
|
@@ -40321,8 +40336,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40321
40336
|
}, {
|
|
40322
40337
|
key: "keyBoardInput",
|
|
40323
40338
|
value: function keyBoardInput(text) {
|
|
40324
|
-
var hoEditorFactory =
|
|
40325
|
-
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus ===
|
|
40339
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40340
|
+
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40326
40341
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
40327
40342
|
return;
|
|
40328
40343
|
}
|
|
@@ -40351,7 +40366,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40351
40366
|
// }
|
|
40352
40367
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .OperType */ .y.keyBoardInput);
|
|
40353
40368
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
40354
|
-
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof
|
|
40369
|
+
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40355
40370
|
//if (hoEditorFactory.docTree.docProperty.type === EmrType.etForm) {
|
|
40356
40371
|
var cellNode = domRange.npStart.node.parentNode;
|
|
40357
40372
|
var colIndex = cellNode.row.indexOf(cellNode);
|
|
@@ -40382,7 +40397,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40382
40397
|
}, {
|
|
40383
40398
|
key: "insertNodeText",
|
|
40384
40399
|
value: function insertNodeText(node, path, text) {
|
|
40385
|
-
var hoEditorFactory =
|
|
40400
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40386
40401
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40387
40402
|
var isError;
|
|
40388
40403
|
if (!curRange.isEmpty) {
|
|
@@ -40406,7 +40421,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40406
40421
|
if (!isError) {
|
|
40407
40422
|
hoEditorFactory.undoService.begin();
|
|
40408
40423
|
// this.insertNodeByPath(textNode,this._curNodePosition.path);
|
|
40409
|
-
hoEditorFactory.undoService.add(new
|
|
40424
|
+
hoEditorFactory.undoService.add(new _undoRedo_TextInsertUndoUnit__WEBPACK_IMPORTED_MODULE_29__/* .TextInsertUndoUnit */ .t(this._hoEditorFactoryID, node, path, text));
|
|
40410
40425
|
hoEditorFactory.undoService.commit();
|
|
40411
40426
|
}
|
|
40412
40427
|
}
|
|
@@ -40479,10 +40494,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40479
40494
|
strPath = res;
|
|
40480
40495
|
if (index === arrSubString.length - 1) {
|
|
40481
40496
|
if (!isEndLine) {
|
|
40482
|
-
var paragraphNode = new
|
|
40497
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40483
40498
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40484
40499
|
} else {
|
|
40485
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40500
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40486
40501
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40487
40502
|
pNode.update();
|
|
40488
40503
|
}
|
|
@@ -40496,27 +40511,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40496
40511
|
} else {
|
|
40497
40512
|
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
40498
40513
|
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
40499
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
40514
|
+
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
|
|
40500
40515
|
var textNode = node;
|
|
40501
40516
|
_this.insertNodeText(textNode, strPath, aText);
|
|
40502
40517
|
//strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40503
40518
|
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
40504
40519
|
} else {
|
|
40505
40520
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
40506
|
-
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index
|
|
40521
|
+
strPath = _this.insertNodeByPath(strPath, _textNode, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40507
40522
|
}
|
|
40508
40523
|
} else {
|
|
40509
40524
|
var styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40510
|
-
if (pNode instanceof
|
|
40525
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && node === pNode.first() && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40511
40526
|
styleIndex = node.styleIndex;
|
|
40512
40527
|
}
|
|
40513
40528
|
if (aTextArray[0] > 1) {
|
|
40514
40529
|
var newStyle = hoEditorFactory.docTree.styles[styleIndex].clone();
|
|
40515
|
-
newStyle.script = aTextArray[0] == 2 ?
|
|
40530
|
+
newStyle.script = aTextArray[0] == 2 ? _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsup : _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .StyleScriptType */ .n$.sstsub;
|
|
40516
40531
|
styleIndex = hoEditorFactory.docTree.styleCompare(newStyle);
|
|
40517
40532
|
}
|
|
40518
40533
|
var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, aText, styleIndex);
|
|
40519
|
-
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index
|
|
40534
|
+
strPath = _this.insertNodeByPath(strPath, _textNode2, isUpdate, isHasRelateEle && index >= 1 ? true : false);
|
|
40520
40535
|
}
|
|
40521
40536
|
// if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
|
|
40522
40537
|
// pNode.canModifyContent = oldCanModifyContent;
|
|
@@ -40524,14 +40539,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40524
40539
|
// }
|
|
40525
40540
|
if (index === arrSubString.length - 1) {
|
|
40526
40541
|
if (!isEndLine) {
|
|
40527
|
-
var paragraphNode = new
|
|
40542
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, roots, pNode, hoEditorFactory.docTree.curParaNo);
|
|
40528
40543
|
strPath = _this.insertNodeByPath(strPath, paragraphNode);
|
|
40529
40544
|
} else {
|
|
40530
|
-
if (oldCanModifyContent !== undefined && pNode instanceof
|
|
40545
|
+
if (oldCanModifyContent !== undefined && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40531
40546
|
pNode.canModifyContent = oldCanModifyContent;
|
|
40532
40547
|
pNode.update();
|
|
40533
40548
|
var ppNode = pNode.parentNode;
|
|
40534
|
-
if (ppNode instanceof
|
|
40549
|
+
if (ppNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40535
40550
|
ppNode.drawCell.needUpdate = true;
|
|
40536
40551
|
ppNode.table.update();
|
|
40537
40552
|
}
|
|
@@ -40564,7 +40579,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40564
40579
|
key: "insertPlainTextAfterPath",
|
|
40565
40580
|
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent) {
|
|
40566
40581
|
var _this2 = this;
|
|
40567
|
-
var hoEditorFactory =
|
|
40582
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40568
40583
|
if (text === '') {
|
|
40569
40584
|
return;
|
|
40570
40585
|
}
|
|
@@ -40580,10 +40595,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40580
40595
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
40581
40596
|
var curParaNo = hoEditorFactory.docTree.curParaNo;
|
|
40582
40597
|
var curTextStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
40583
|
-
var nodeStyle = new
|
|
40598
|
+
var nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40584
40599
|
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
40585
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40586
|
-
var newHistory = new
|
|
40600
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40601
|
+
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40587
40602
|
var historyIndex = newHistory.userCompare();
|
|
40588
40603
|
nodeStyle.creatorIndex = historyIndex;
|
|
40589
40604
|
if (nodeStyle.combineStyle.strikeout) {
|
|
@@ -40596,33 +40611,33 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40596
40611
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
40597
40612
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40598
40613
|
var pNode = node.parentNode;
|
|
40599
|
-
if (pNode instanceof
|
|
40614
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40600
40615
|
curStyleIndex = node.styleIndex;
|
|
40601
40616
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40602
40617
|
}
|
|
40603
40618
|
var slibs = nodePosition.roots;
|
|
40604
|
-
if (pNode && pNode instanceof
|
|
40619
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && node == pNode.last()) {
|
|
40605
40620
|
slibs = pNode.getParentNodes();
|
|
40606
40621
|
pNode = pNode.parentNode;
|
|
40607
40622
|
}
|
|
40608
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
40623
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview) {
|
|
40609
40624
|
if (curTextStyle.strikeout) {
|
|
40610
|
-
var _nodeStyle = new
|
|
40625
|
+
var _nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_33__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40611
40626
|
_nodeStyle.copyProperty(curTextStyle, _nodeStyle);
|
|
40612
40627
|
_nodeStyle.strikeout = false;
|
|
40613
40628
|
_nodeStyle.deleterIndex = -1;
|
|
40614
|
-
var _newHistory = new
|
|
40629
|
+
var _newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType */ .N.hetCreate);
|
|
40615
40630
|
var _historyIndex = _newHistory.userCompare();
|
|
40616
40631
|
_nodeStyle.creatorIndex = _historyIndex;
|
|
40617
40632
|
curStyleIndex = hoEditorFactory.docTree.styleCompare(_nodeStyle);
|
|
40618
40633
|
}
|
|
40619
40634
|
}
|
|
40620
40635
|
var canModifyContent = true;
|
|
40621
|
-
if (pNode instanceof
|
|
40636
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40622
40637
|
canModifyContent = pNode.canModifyContent;
|
|
40623
40638
|
}
|
|
40624
40639
|
var insertParagraph = function insertParagraph(aPath) {
|
|
40625
|
-
var paragraphNode = new
|
|
40640
|
+
var paragraphNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(_this2._hoEditorFactoryID, nodePosition.roots, pNode, curParaNo);
|
|
40626
40641
|
_this2.insertNodeByPath(aPath, paragraphNode);
|
|
40627
40642
|
return hoEditorFactory.docTree.curDomRange.startPath;
|
|
40628
40643
|
};
|
|
@@ -40638,13 +40653,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40638
40653
|
strPath = insertParagraph(strPath);
|
|
40639
40654
|
resolve(strPath);
|
|
40640
40655
|
} else {
|
|
40641
|
-
if (pNode instanceof
|
|
40656
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
40642
40657
|
pNode.canModifyContent = canModifyContent;
|
|
40643
40658
|
}
|
|
40644
40659
|
var isUpdate = false;
|
|
40645
40660
|
if (oldCanModifyContent !== undefined) {
|
|
40646
40661
|
isUpdate = true;
|
|
40647
|
-
if (pNode instanceof
|
|
40662
|
+
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.downListProperty.isMultiLinesDisplay && index > 0) {
|
|
40648
40663
|
isUpdate = false;
|
|
40649
40664
|
}
|
|
40650
40665
|
}
|
|
@@ -40668,7 +40683,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40668
40683
|
}, {
|
|
40669
40684
|
key: "directionKey",
|
|
40670
40685
|
value: function directionKey(keyValue) {
|
|
40671
|
-
var hoEditorFactory =
|
|
40686
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40672
40687
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40673
40688
|
var oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
40674
40689
|
var startPath = domRange.startPath;
|
|
@@ -40677,13 +40692,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40677
40692
|
if (!domRange.isEmpty) {
|
|
40678
40693
|
//有选中区域
|
|
40679
40694
|
if (keyValue === 'left' || keyValue === 'up') {
|
|
40680
|
-
newRange = new
|
|
40695
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
40681
40696
|
} else {
|
|
40682
|
-
newRange = new
|
|
40697
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
40683
40698
|
}
|
|
40684
40699
|
} else {
|
|
40685
40700
|
var toPath = hoEditorFactory.docTree.getToPath(keyValue, startPath);
|
|
40686
|
-
newRange = new
|
|
40701
|
+
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, toPath, toPath);
|
|
40687
40702
|
}
|
|
40688
40703
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
40689
40704
|
//const cgEvent = new SelectionChangeEvent(oldRange, newRange); //选中范围变化事件
|
|
@@ -40698,11 +40713,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40698
40713
|
value: function keyBoardDelete(keyValue) {
|
|
40699
40714
|
var startPath = '';
|
|
40700
40715
|
var endPath = '';
|
|
40701
|
-
var hoEditorFactory =
|
|
40716
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40702
40717
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
40703
40718
|
if (!domRange.isEmpty) {
|
|
40704
40719
|
domRange = domRange.normalize();
|
|
40705
|
-
} else if (hoEditorFactory.drawTree.paintStatus ===
|
|
40720
|
+
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40706
40721
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
40707
40722
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
40708
40723
|
return;
|
|
@@ -40732,7 +40747,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40732
40747
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
40733
40748
|
while (1) switch (_context.prev = _context.next) {
|
|
40734
40749
|
case 0:
|
|
40735
|
-
hoEditorFactory =
|
|
40750
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40736
40751
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40737
40752
|
if (domRange.isEmpty) {
|
|
40738
40753
|
_context.next = 6;
|
|
@@ -40767,7 +40782,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40767
40782
|
_context.next = 36;
|
|
40768
40783
|
break;
|
|
40769
40784
|
}
|
|
40770
|
-
if (!(node.parentNode instanceof
|
|
40785
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40771
40786
|
_context.next = 16;
|
|
40772
40787
|
break;
|
|
40773
40788
|
}
|
|
@@ -40802,7 +40817,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40802
40817
|
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
40803
40818
|
return _context.abrupt("return");
|
|
40804
40819
|
case 30:
|
|
40805
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40820
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
40806
40821
|
// hoEditorFactory.undoService.begin();
|
|
40807
40822
|
// hoEditorFactory.undoService.add(
|
|
40808
40823
|
// new NodesDeleteUndoUnit(
|
|
@@ -40813,22 +40828,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40813
40828
|
// )
|
|
40814
40829
|
// );
|
|
40815
40830
|
// hoEditorFactory.undoService.commit();
|
|
40816
|
-
aRange = new
|
|
40831
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
40817
40832
|
this.deleteRange(aRange, true);
|
|
40818
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
40833
|
+
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
40819
40834
|
_context.next = 123;
|
|
40820
40835
|
break;
|
|
40821
40836
|
case 36:
|
|
40822
|
-
if (!(node instanceof
|
|
40837
|
+
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40823
40838
|
_context.next = 56;
|
|
40824
40839
|
break;
|
|
40825
40840
|
}
|
|
40826
40841
|
endPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
40827
|
-
if (!(node.parentNode && node.parentNode instanceof
|
|
40842
|
+
if (!(node.parentNode && node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re)) {
|
|
40828
40843
|
_context.next = 51;
|
|
40829
40844
|
break;
|
|
40830
40845
|
}
|
|
40831
|
-
if (!(node.parentNode.childNodes[1] instanceof
|
|
40846
|
+
if (!(node.parentNode.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j)) {
|
|
40832
40847
|
_context.next = 44;
|
|
40833
40848
|
break;
|
|
40834
40849
|
}
|
|
@@ -40852,7 +40867,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40852
40867
|
}
|
|
40853
40868
|
return _context.abrupt("return");
|
|
40854
40869
|
case 51:
|
|
40855
|
-
_aRange = new
|
|
40870
|
+
_aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath //hoEditorFactory.docTree.getNodeLastPath(node)
|
|
40856
40871
|
).normalize();
|
|
40857
40872
|
isError = this.deleteRange(_aRange, true);
|
|
40858
40873
|
if (isError) {
|
|
@@ -40871,12 +40886,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40871
40886
|
_context.next = 123;
|
|
40872
40887
|
break;
|
|
40873
40888
|
case 56:
|
|
40874
|
-
if (!(node instanceof
|
|
40889
|
+
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C)) {
|
|
40875
40890
|
_context.next = 82;
|
|
40876
40891
|
break;
|
|
40877
40892
|
}
|
|
40878
40893
|
prevNode = node.prevSibling();
|
|
40879
|
-
if (!(prevNode instanceof
|
|
40894
|
+
if (!(prevNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh)) {
|
|
40880
40895
|
_context.next = 60;
|
|
40881
40896
|
break;
|
|
40882
40897
|
}
|
|
@@ -40886,7 +40901,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40886
40901
|
_context.next = 82;
|
|
40887
40902
|
break;
|
|
40888
40903
|
}
|
|
40889
|
-
if (!(node.parentNode instanceof
|
|
40904
|
+
if (!(node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D)) {
|
|
40890
40905
|
_context.next = 81;
|
|
40891
40906
|
break;
|
|
40892
40907
|
}
|
|
@@ -40895,7 +40910,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40895
40910
|
tIndex = tableNode.childNodes.indexOf(cellNode);
|
|
40896
40911
|
cIndex = cellNode.childNodes.indexOf(node);
|
|
40897
40912
|
preParaNode = hoEditorFactory.docTree.getSameRectPrevParanode(tableNode.paragraphNode);
|
|
40898
|
-
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof
|
|
40913
|
+
if (!(preParaNode && tIndex == 0 && cIndex == 0 && preParaNode.drawlines.length == 1 && preParaNode.drawlines[0] instanceof _draw_DrawLine__WEBPACK_IMPORTED_MODULE_80__/* .DrawLine */ .a && preParaNode.drawlines[0].isEmpty())) {
|
|
40899
40914
|
_context.next = 78;
|
|
40900
40915
|
break;
|
|
40901
40916
|
}
|
|
@@ -40905,7 +40920,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40905
40920
|
// );
|
|
40906
40921
|
// await hoEditorFactory.undoService.commit();
|
|
40907
40922
|
hoEditorFactory.undoService.begin();
|
|
40908
|
-
hoEditorFactory.undoService.add(new
|
|
40923
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_87__/* .TableDeleteParagraphUndoUnit */ .T(this._hoEditorFactoryID, tableNode, tableNode.paragraphNode));
|
|
40909
40924
|
_context.next = 72;
|
|
40910
40925
|
return hoEditorFactory.undoService.commit();
|
|
40911
40926
|
case 72:
|
|
@@ -40921,14 +40936,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40921
40936
|
case 81:
|
|
40922
40937
|
return _context.abrupt("return");
|
|
40923
40938
|
case 82:
|
|
40924
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40939
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && !(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N))) {
|
|
40925
40940
|
_context.next = 87;
|
|
40926
40941
|
break;
|
|
40927
40942
|
}
|
|
40928
40943
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
40929
40944
|
return _context.abrupt("return");
|
|
40930
40945
|
case 87:
|
|
40931
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
40946
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40932
40947
|
_context.next = 92;
|
|
40933
40948
|
break;
|
|
40934
40949
|
}
|
|
@@ -40940,21 +40955,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40940
40955
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
40941
40956
|
return _context.abrupt("return");
|
|
40942
40957
|
case 92:
|
|
40943
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40958
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40944
40959
|
_context.next = 95;
|
|
40945
40960
|
break;
|
|
40946
40961
|
}
|
|
40947
40962
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
40948
40963
|
return _context.abrupt("return");
|
|
40949
40964
|
case 95:
|
|
40950
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
40965
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
40951
40966
|
_context.next = 98;
|
|
40952
40967
|
break;
|
|
40953
40968
|
}
|
|
40954
40969
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
40955
40970
|
return _context.abrupt("return");
|
|
40956
40971
|
case 98:
|
|
40957
|
-
if (!(node instanceof
|
|
40972
|
+
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N)) {
|
|
40958
40973
|
_context.next = 118;
|
|
40959
40974
|
break;
|
|
40960
40975
|
}
|
|
@@ -40967,12 +40982,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40967
40982
|
break;
|
|
40968
40983
|
}
|
|
40969
40984
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
40970
|
-
signNode = new
|
|
40985
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, node.name === '' ? '医师签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, undefined, undefined, node.attribute, node.connectChar, node.otherProperties);
|
|
40971
40986
|
hoEditorFactory.undoService.begin();
|
|
40972
|
-
hoEditorFactory.undoService.add(new
|
|
40987
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40973
40988
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
40974
40989
|
hoEditorFactory.undoService.commit();
|
|
40975
|
-
if (node.parentNode instanceof
|
|
40990
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
40976
40991
|
table = node.parentNode.table;
|
|
40977
40992
|
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
40978
40993
|
table.tableProperty.isLock = false;
|
|
@@ -40986,19 +41001,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40986
41001
|
}
|
|
40987
41002
|
return _context.abrupt("return");
|
|
40988
41003
|
case 113:
|
|
40989
|
-
if (node.connectMode == '换行' && preNode instanceof
|
|
41004
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
40990
41005
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
40991
41006
|
}
|
|
40992
41007
|
hoEditorFactory.undoService.begin();
|
|
40993
|
-
hoEditorFactory.undoService.add(new
|
|
41008
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
|
|
40994
41009
|
hoEditorFactory.undoService.commit();
|
|
40995
41010
|
return _context.abrupt("return");
|
|
40996
41011
|
case 118:
|
|
40997
41012
|
pNode = node.parentNode;
|
|
40998
41013
|
hoEditorFactory.undoService.begin();
|
|
40999
|
-
hoEditorFactory.undoService.add(new
|
|
41014
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41000
41015
|
hoEditorFactory.undoService.commit();
|
|
41001
|
-
if (pNode && pNode instanceof
|
|
41016
|
+
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
41002
41017
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
41003
41018
|
}
|
|
41004
41019
|
case 123:
|
|
@@ -41031,7 +41046,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41031
41046
|
key: "deleteTextAfterPath",
|
|
41032
41047
|
value: function deleteTextAfterPath(path) {
|
|
41033
41048
|
var _this3 = this;
|
|
41034
|
-
var hoEditorFactory =
|
|
41049
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41035
41050
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
41036
41051
|
if (!domRange.isEmpty) {
|
|
41037
41052
|
domRange = domRange.normalize();
|
|
@@ -41058,13 +41073,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41058
41073
|
if (tmp instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41059
41074
|
return hoEditorFactory.docTree.getNodeFirstPath(tmp);
|
|
41060
41075
|
} else if (tmp) {
|
|
41061
|
-
if (tmp instanceof
|
|
41076
|
+
if (tmp instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
41062
41077
|
var nextNode = tmp.nextSibling();
|
|
41063
|
-
if (nextNode instanceof
|
|
41078
|
+
if (nextNode instanceof _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh) {
|
|
41064
41079
|
return;
|
|
41065
41080
|
} else {
|
|
41066
41081
|
hoEditorFactory.undoService.begin();
|
|
41067
|
-
hoEditorFactory.undoService.add(new
|
|
41082
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this3._hoEditorFactoryID, tmp, tmp.getNodePath()));
|
|
41068
41083
|
hoEditorFactory.undoService.commit();
|
|
41069
41084
|
return;
|
|
41070
41085
|
}
|
|
@@ -41097,17 +41112,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41097
41112
|
}, {
|
|
41098
41113
|
key: "KeyBoardEnterEvent",
|
|
41099
41114
|
value: function KeyBoardEnterEvent(strPath) {
|
|
41100
|
-
var hoEditorFactory =
|
|
41115
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41101
41116
|
//判断当前是否有选中
|
|
41102
41117
|
var arange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41103
41118
|
if (!arange.isEmpty) {
|
|
41104
|
-
if (arange.npEnd.node instanceof
|
|
41119
|
+
if (arange.npEnd.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z || arange.npEnd.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF) {
|
|
41105
41120
|
var prevNodePath = hoEditorFactory.docTree.getNodeLastPath(arange.npEnd.node.previousLeaf());
|
|
41106
41121
|
if (prevNodePath === arange.startPath) {
|
|
41107
41122
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
41108
41123
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
41109
41124
|
if (drawArea) {
|
|
41110
|
-
var nodeNeedModifyEvent = new
|
|
41125
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_85__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
41111
41126
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
41112
41127
|
return;
|
|
41113
41128
|
} else {
|
|
@@ -41126,34 +41141,34 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41126
41141
|
//处理结尾,如果是在一个复合结点的结尾,插入节点的Parent与复合节点相同,否慢其Parent为复合节点
|
|
41127
41142
|
var parentnode = np.node.parentNode;
|
|
41128
41143
|
if (parentnode) {
|
|
41129
|
-
if (np.node instanceof
|
|
41144
|
+
if (np.node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41130
41145
|
if (parentnode.last() == np.node) {
|
|
41131
41146
|
parentnode = parentnode.parentNode;
|
|
41132
41147
|
}
|
|
41133
|
-
} else if (parentnode instanceof
|
|
41148
|
+
} else if (parentnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41134
41149
|
if (strPath === "".concat(parentnode.getNodePath(), "/0") && parentnode.table.childNodes.indexOf(parentnode) == 0) {
|
|
41135
|
-
var _paraNode = new
|
|
41150
|
+
var _paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, parentnode.table.paragraphNode.rootNodes, parentnode.table.paragraphNode.parentNode, parentnode.table.paragraphNode.paraNo);
|
|
41136
41151
|
_paraNode.styleIndex = parentnode.table.paragraphNode.styleIndex;
|
|
41137
41152
|
_paraNode.node2DrawNode();
|
|
41138
41153
|
hoEditorFactory.undoService.begin();
|
|
41139
|
-
hoEditorFactory.undoService.add(new
|
|
41154
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_79__/* .TableInsertParagraphUndoUnit */ .r(this._hoEditorFactoryID, parentnode.table, _paraNode));
|
|
41140
41155
|
hoEditorFactory.undoService.commit();
|
|
41141
41156
|
return;
|
|
41142
41157
|
}
|
|
41143
41158
|
}
|
|
41144
41159
|
}
|
|
41145
|
-
var paraNode = new
|
|
41160
|
+
var paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentnode, hoEditorFactory.docTree.curParaNo);
|
|
41146
41161
|
this.insertNodeByPath(strPath, paraNode);
|
|
41147
41162
|
}
|
|
41148
41163
|
}
|
|
41149
41164
|
}, {
|
|
41150
41165
|
key: "selectARange",
|
|
41151
41166
|
value: function selectARange(startPath, endPath) {
|
|
41152
|
-
var hoEditorFactory =
|
|
41167
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41153
41168
|
var oldRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
41154
|
-
var newRange = new
|
|
41169
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
41155
41170
|
hoEditorFactory.undoService.begin();
|
|
41156
|
-
hoEditorFactory.undoService.add(new
|
|
41171
|
+
hoEditorFactory.undoService.add(new _undoRedo_SelectionUndoUnit__WEBPACK_IMPORTED_MODULE_32__/* .SelectionUndoUnit */ .t(this._hoEditorFactoryID, oldRange, newRange));
|
|
41157
41172
|
hoEditorFactory.undoService.commit();
|
|
41158
41173
|
}
|
|
41159
41174
|
// /**
|
|
@@ -41185,7 +41200,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41185
41200
|
}, {
|
|
41186
41201
|
key: "fontStyleChange",
|
|
41187
41202
|
value: function fontStyleChange(operateType, curDomRange) {
|
|
41188
|
-
var hoEditorFactory =
|
|
41203
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41189
41204
|
var normalDomRange = curDomRange.normalize();
|
|
41190
41205
|
var astart = normalDomRange.npStart.node;
|
|
41191
41206
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41193,7 +41208,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41193
41208
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41194
41209
|
}
|
|
41195
41210
|
hoEditorFactory.undoService.begin();
|
|
41196
|
-
hoEditorFactory.undoService.add(new
|
|
41211
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType)));
|
|
41197
41212
|
hoEditorFactory.undoService.commit();
|
|
41198
41213
|
}
|
|
41199
41214
|
/**
|
|
@@ -41205,7 +41220,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41205
41220
|
}, {
|
|
41206
41221
|
key: "fontStyleChangeBool",
|
|
41207
41222
|
value: function fontStyleChangeBool(operateType, curDomRange, isSelsected) {
|
|
41208
|
-
var hoEditorFactory =
|
|
41223
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41209
41224
|
var normalDomRange = curDomRange.normalize();
|
|
41210
41225
|
var astart = normalDomRange.npStart.node;
|
|
41211
41226
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41213,7 +41228,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41213
41228
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41214
41229
|
}
|
|
41215
41230
|
hoEditorFactory.undoService.begin();
|
|
41216
|
-
hoEditorFactory.undoService.add(new
|
|
41231
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, operateType === 'fontBold' || operateType === 'fontItalic' ? isSelsected : undefined)));
|
|
41217
41232
|
hoEditorFactory.undoService.commit();
|
|
41218
41233
|
}
|
|
41219
41234
|
/**
|
|
@@ -41225,7 +41240,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41225
41240
|
}, {
|
|
41226
41241
|
key: "fontStyleChangeStr",
|
|
41227
41242
|
value: function fontStyleChangeStr(operateType, curDomRange, changeValue) {
|
|
41228
|
-
var hoEditorFactory =
|
|
41243
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41229
41244
|
var normalDomRange = curDomRange.normalize();
|
|
41230
41245
|
var astart = normalDomRange.npStart.node;
|
|
41231
41246
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -41233,7 +41248,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41233
41248
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
41234
41249
|
}
|
|
41235
41250
|
hoEditorFactory.undoService.begin();
|
|
41236
|
-
hoEditorFactory.undoService.add(new
|
|
41251
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, changeValue)));
|
|
41237
41252
|
hoEditorFactory.undoService.commit();
|
|
41238
41253
|
}
|
|
41239
41254
|
/**
|
|
@@ -41296,7 +41311,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41296
41311
|
}, {
|
|
41297
41312
|
key: "undoOperate",
|
|
41298
41313
|
value: function undoOperate() {
|
|
41299
|
-
|
|
41314
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.undo();
|
|
41300
41315
|
return;
|
|
41301
41316
|
}
|
|
41302
41317
|
/**
|
|
@@ -41305,7 +41320,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41305
41320
|
}, {
|
|
41306
41321
|
key: "redoOperate",
|
|
41307
41322
|
value: function redoOperate() {
|
|
41308
|
-
|
|
41323
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.redo();
|
|
41309
41324
|
return;
|
|
41310
41325
|
}
|
|
41311
41326
|
/**
|
|
@@ -41317,11 +41332,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41317
41332
|
}, {
|
|
41318
41333
|
key: "paraStyleChange",
|
|
41319
41334
|
value: function paraStyleChange(operateType, curDomRange, selectablePara) {
|
|
41320
|
-
var op = new
|
|
41335
|
+
var op = new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p(operateType, selectablePara);
|
|
41321
41336
|
var currDom = curDomRange;
|
|
41322
|
-
|
|
41323
|
-
|
|
41324
|
-
|
|
41337
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41338
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_LineStyleUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .LineStyleUndoUnit */ .d(this._hoEditorFactoryID, currDom.startPath, currDom.endPath, op));
|
|
41339
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41325
41340
|
}
|
|
41326
41341
|
}, {
|
|
41327
41342
|
key: "copy",
|
|
@@ -41365,26 +41380,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41365
41380
|
var domRange = curDomRange.normalize();
|
|
41366
41381
|
var startPath = domRange.endPath;
|
|
41367
41382
|
if (operType === 'update') {
|
|
41368
|
-
var np =
|
|
41383
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41369
41384
|
if (np) {
|
|
41370
41385
|
var node = np.node;
|
|
41371
|
-
if (node instanceof
|
|
41372
|
-
|
|
41373
|
-
|
|
41386
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41387
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41388
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41374
41389
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41375
41390
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41376
|
-
startPath =
|
|
41391
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41377
41392
|
}
|
|
41378
41393
|
}
|
|
41379
41394
|
}
|
|
41380
|
-
var parentNode =
|
|
41381
|
-
var menstrualHistoryNode = new
|
|
41395
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41396
|
+
var menstrualHistoryNode = new _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_39__/* .MenstrualHistoryNode */ .n(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
41382
41397
|
//插入该表达式节点
|
|
41383
41398
|
if (operType === 'add') {
|
|
41384
|
-
|
|
41399
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41385
41400
|
}
|
|
41386
|
-
|
|
41387
|
-
|
|
41401
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
41402
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41388
41403
|
}
|
|
41389
41404
|
/**
|
|
41390
41405
|
* 瞳孔图
|
|
@@ -41402,26 +41417,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41402
41417
|
var domRange = curDomRange.normalize();
|
|
41403
41418
|
var startPath = domRange.endPath;
|
|
41404
41419
|
if (operType === 'update') {
|
|
41405
|
-
var np =
|
|
41420
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41406
41421
|
if (np) {
|
|
41407
41422
|
var node = np.node;
|
|
41408
|
-
if (node instanceof
|
|
41409
|
-
|
|
41410
|
-
|
|
41423
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41424
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41425
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41411
41426
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41412
41427
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41413
|
-
startPath =
|
|
41428
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41414
41429
|
}
|
|
41415
41430
|
}
|
|
41416
41431
|
}
|
|
41417
|
-
var parentNode =
|
|
41418
|
-
var pupilMapNode = new
|
|
41432
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41433
|
+
var pupilMapNode = new _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_40__/* .PupilMapNode */ .v(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7);
|
|
41419
41434
|
//插入该表达式节点
|
|
41420
41435
|
if (operType === 'add') {
|
|
41421
|
-
|
|
41436
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41422
41437
|
}
|
|
41423
|
-
|
|
41424
|
-
|
|
41438
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pupilMapNode));
|
|
41439
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41425
41440
|
}
|
|
41426
41441
|
/**
|
|
41427
41442
|
* 光定位图
|
|
@@ -41441,26 +41456,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41441
41456
|
var domRange = curDomRange.normalize();
|
|
41442
41457
|
var startPath = domRange.endPath;
|
|
41443
41458
|
if (operType === 'update') {
|
|
41444
|
-
var np =
|
|
41459
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41445
41460
|
if (np) {
|
|
41446
41461
|
var node = np.node;
|
|
41447
|
-
if (node instanceof
|
|
41448
|
-
|
|
41449
|
-
|
|
41462
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41463
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41464
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41450
41465
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41451
41466
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41452
|
-
startPath =
|
|
41467
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41453
41468
|
}
|
|
41454
41469
|
}
|
|
41455
41470
|
}
|
|
41456
|
-
var parentNode =
|
|
41457
|
-
var lightLocationMapNode = new
|
|
41471
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41472
|
+
var lightLocationMapNode = new _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_41__/* .LightLocationMapNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
41458
41473
|
//插入该表达式节点
|
|
41459
41474
|
if (operType === 'add') {
|
|
41460
|
-
|
|
41475
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41461
41476
|
}
|
|
41462
|
-
|
|
41463
|
-
|
|
41477
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, lightLocationMapNode));
|
|
41478
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41464
41479
|
}
|
|
41465
41480
|
/**
|
|
41466
41481
|
* 胎心图
|
|
@@ -41477,26 +41492,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41477
41492
|
var domRange = curDomRange.normalize();
|
|
41478
41493
|
var startPath = domRange.endPath;
|
|
41479
41494
|
if (operType === 'update') {
|
|
41480
|
-
var np =
|
|
41495
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41481
41496
|
if (np) {
|
|
41482
41497
|
var node = np.node;
|
|
41483
|
-
if (node instanceof
|
|
41484
|
-
|
|
41485
|
-
|
|
41498
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41499
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41500
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41486
41501
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41487
41502
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41488
|
-
startPath =
|
|
41503
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41489
41504
|
}
|
|
41490
41505
|
}
|
|
41491
41506
|
}
|
|
41492
|
-
var parentNode =
|
|
41493
|
-
var fetalHeartMapNode = new
|
|
41507
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41508
|
+
var fetalHeartMapNode = new _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__/* .FetalHeartMapNode */ .t(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6);
|
|
41494
41509
|
//插入该表达式节点
|
|
41495
41510
|
if (operType === 'add') {
|
|
41496
|
-
|
|
41511
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41497
41512
|
}
|
|
41498
|
-
|
|
41499
|
-
|
|
41513
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, fetalHeartMapNode));
|
|
41514
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41500
41515
|
}
|
|
41501
41516
|
/**
|
|
41502
41517
|
* 恒牙牙位图
|
|
@@ -41511,26 +41526,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41511
41526
|
var domRange = curDomRange.normalize();
|
|
41512
41527
|
var startPath = domRange.endPath;
|
|
41513
41528
|
if (operType === 'update') {
|
|
41514
|
-
var np =
|
|
41529
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41515
41530
|
if (np) {
|
|
41516
41531
|
var node = np.node;
|
|
41517
|
-
if (node instanceof
|
|
41518
|
-
|
|
41519
|
-
|
|
41532
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41533
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41534
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41520
41535
|
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41521
41536
|
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
41522
|
-
startPath =
|
|
41537
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
41523
41538
|
}
|
|
41524
41539
|
}
|
|
41525
41540
|
}
|
|
41526
|
-
var parentNode =
|
|
41527
|
-
var permanentTeethMapNode = new
|
|
41541
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41542
|
+
var permanentTeethMapNode = new _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_43__/* .PermanentTeethMapNode */ .f(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark);
|
|
41528
41543
|
//插入该表达式节点
|
|
41529
41544
|
if (operType === 'add') {
|
|
41530
|
-
|
|
41545
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41531
41546
|
}
|
|
41532
|
-
|
|
41533
|
-
|
|
41547
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, permanentTeethMapNode));
|
|
41548
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
41534
41549
|
}
|
|
41535
41550
|
/**
|
|
41536
41551
|
* 乳牙牙位图
|
|
@@ -41544,14 +41559,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41544
41559
|
value: function insertPrimaryTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected) {
|
|
41545
41560
|
var domRange = curDomRange.normalize();
|
|
41546
41561
|
var startPath = domRange.endPath;
|
|
41547
|
-
var hoEditorFactory =
|
|
41562
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41548
41563
|
if (operType === 'update') {
|
|
41549
41564
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41550
41565
|
if (np) {
|
|
41551
41566
|
var node = np.node;
|
|
41552
|
-
if (node instanceof
|
|
41567
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
|
|
41553
41568
|
hoEditorFactory.undoService.begin();
|
|
41554
|
-
hoEditorFactory.undoService.add(new
|
|
41569
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41555
41570
|
//hoEditorFactory.undoService.commit();
|
|
41556
41571
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41557
41572
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41559,7 +41574,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41559
41574
|
}
|
|
41560
41575
|
}
|
|
41561
41576
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41562
|
-
var primaryTeethMapNode = new
|
|
41577
|
+
var primaryTeethMapNode = new _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_44__/* .PrimaryTeethMapNode */ .x(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
41563
41578
|
//插入该表达式节点
|
|
41564
41579
|
if (operType === 'add') {
|
|
41565
41580
|
hoEditorFactory.undoService.begin();
|
|
@@ -41577,17 +41592,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41577
41592
|
value: function insertTextInputField(operType, curDomRange, valuesObject, updateProps) {
|
|
41578
41593
|
var domRange = curDomRange.normalize();
|
|
41579
41594
|
var startPath = domRange.endPath;
|
|
41580
|
-
var hoEditorFactory =
|
|
41595
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41581
41596
|
var childNodes = [];
|
|
41582
41597
|
if (operType === 'update') {
|
|
41583
41598
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41584
41599
|
if (np && np.node) {
|
|
41585
41600
|
var node;
|
|
41586
|
-
if (np.node instanceof
|
|
41601
|
+
if (np.node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41587
41602
|
node = np.node;
|
|
41588
41603
|
childNodes = node.childNodes;
|
|
41589
41604
|
}
|
|
41590
|
-
if (np.node.parentNode instanceof
|
|
41605
|
+
if (np.node.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41591
41606
|
node = np.node.parentNode;
|
|
41592
41607
|
childNodes = np.node.parentNode.childNodes;
|
|
41593
41608
|
}
|
|
@@ -41595,13 +41610,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41595
41610
|
//const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
41596
41611
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41597
41612
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41598
|
-
var changeEvent = new
|
|
41613
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41599
41614
|
changeEvent.oldEndPath = ePath;
|
|
41600
|
-
changeEvent.oldDrawLines = new
|
|
41615
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41601
41616
|
node.setValuesObject(valuesObject);
|
|
41602
41617
|
// const values = eval("(" + valuesObject + ")");
|
|
41603
41618
|
var values = valuesObject;
|
|
41604
|
-
if (node.childNodes.length == 3 && node.childNodes[1] instanceof
|
|
41619
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
41605
41620
|
if (node.childNodes2[1].text !== node.name) {
|
|
41606
41621
|
var text = node.childNodes2[1].text;
|
|
41607
41622
|
node.childNodes2[1].clearDrawNodes(0, text.length - 1);
|
|
@@ -41623,7 +41638,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41623
41638
|
var atnode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, atext, hoEditorFactory.docTree.curStyleIndex);
|
|
41624
41639
|
node.childNodes.splice(node.childNodes.length - 1, 0, atnode);
|
|
41625
41640
|
if (i < textArr.length - 1) {
|
|
41626
|
-
var apnode = new
|
|
41641
|
+
var apnode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node, hoEditorFactory.docTree.curParaNo);
|
|
41627
41642
|
node.childNodes.splice(node.childNodes.length - 1, 0, apnode);
|
|
41628
41643
|
}
|
|
41629
41644
|
}
|
|
@@ -41652,11 +41667,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41652
41667
|
if (pnode && pnode.parentNode) {
|
|
41653
41668
|
pnode = pnode.parentNode;
|
|
41654
41669
|
}
|
|
41655
|
-
if (pnode instanceof
|
|
41670
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41656
41671
|
break;
|
|
41657
41672
|
}
|
|
41658
41673
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
41659
|
-
if (pnode instanceof
|
|
41674
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41660
41675
|
if (Number(values['inputFieldType']) === 1) {
|
|
41661
41676
|
pnode.drawCell.needUpdate = true;
|
|
41662
41677
|
pnode.table.update();
|
|
@@ -41679,7 +41694,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41679
41694
|
}
|
|
41680
41695
|
}
|
|
41681
41696
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41682
|
-
var textInputFieldNode = new
|
|
41697
|
+
var textInputFieldNode = new _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntField, valuesObject);
|
|
41683
41698
|
// if (operType === "update") {
|
|
41684
41699
|
// const values = eval("(" + valuesObject + ")");
|
|
41685
41700
|
// if (values["inputFieldType"] === 0) {
|
|
@@ -41699,7 +41714,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41699
41714
|
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
41700
41715
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
41701
41716
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
41702
|
-
if (parentNode instanceof
|
|
41717
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41703
41718
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
41704
41719
|
} else {
|
|
41705
41720
|
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
@@ -41718,9 +41733,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41718
41733
|
value: function insertImage(curDomRange, imagePath, width, height, options) {
|
|
41719
41734
|
var domRange = curDomRange.normalize();
|
|
41720
41735
|
var startPath = domRange.startPath;
|
|
41721
|
-
var hoEditorFactory =
|
|
41736
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41722
41737
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41723
|
-
var imageNode = new
|
|
41738
|
+
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_48__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), imagePath, width, height, options);
|
|
41724
41739
|
//插入该表达式节点
|
|
41725
41740
|
hoEditorFactory.undoService.begin();
|
|
41726
41741
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
@@ -41744,21 +41759,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41744
41759
|
innerIdentifier) {
|
|
41745
41760
|
var domRange = curDomRange.normalize();
|
|
41746
41761
|
var startPath = domRange.endPath;
|
|
41747
|
-
var hoEditorFactory =
|
|
41762
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41748
41763
|
if (operType === 'update') {
|
|
41749
41764
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41750
41765
|
if (np) {
|
|
41751
41766
|
var node = np.node;
|
|
41752
|
-
if (node instanceof
|
|
41767
|
+
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .BarcodeNode */ .T) {
|
|
41753
41768
|
hoEditorFactory.undoService.begin();
|
|
41754
|
-
hoEditorFactory.undoService.add(new
|
|
41769
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41755
41770
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41756
41771
|
}
|
|
41757
41772
|
}
|
|
41758
41773
|
}
|
|
41759
41774
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41760
41775
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
41761
|
-
var barCodeNode = new
|
|
41776
|
+
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id,
|
|
41762
41777
|
//name,
|
|
41763
41778
|
innerIdentifier, textContent, isDisplayText, imagePath, width, height
|
|
41764
41779
|
//,bandDataSource
|
|
@@ -41790,14 +41805,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41790
41805
|
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, width, height, name, innerIdentifier, isFillBack) {
|
|
41791
41806
|
var domRange = curDomRange.normalize();
|
|
41792
41807
|
var startPath = domRange.endPath;
|
|
41793
|
-
var hoEditorFactory =
|
|
41808
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41794
41809
|
if (operType === 'update') {
|
|
41795
41810
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41796
41811
|
if (np) {
|
|
41797
41812
|
var node = np.node;
|
|
41798
|
-
if (node instanceof
|
|
41813
|
+
if (node instanceof _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .QrcodeNode */ .d) {
|
|
41799
41814
|
hoEditorFactory.undoService.begin();
|
|
41800
|
-
hoEditorFactory.undoService.add(new
|
|
41815
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
41801
41816
|
//hoEditorFactory.undoService.commit();
|
|
41802
41817
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
41803
41818
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
@@ -41805,7 +41820,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41805
41820
|
}
|
|
41806
41821
|
}
|
|
41807
41822
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41808
|
-
var qrcodeNode = new
|
|
41823
|
+
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_50__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
|
|
41809
41824
|
//插入该表达式节点
|
|
41810
41825
|
if (operType === 'add') {
|
|
41811
41826
|
hoEditorFactory.undoService.begin();
|
|
@@ -41816,27 +41831,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41816
41831
|
}, {
|
|
41817
41832
|
key: "updateCodeContent",
|
|
41818
41833
|
value: function updateCodeContent(node, content) {
|
|
41819
|
-
var hoEditorFactory =
|
|
41834
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41820
41835
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41821
41836
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41822
|
-
var changeEvent = new
|
|
41837
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
41823
41838
|
changeEvent.oldEndPath = ePath;
|
|
41824
41839
|
changeEvent.afterChangePath = ePath;
|
|
41825
|
-
changeEvent.oldDrawLines = new
|
|
41840
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
41826
41841
|
node.textContent = content;
|
|
41827
41842
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41828
41843
|
}
|
|
41829
41844
|
}, {
|
|
41830
41845
|
key: "insertTable",
|
|
41831
41846
|
value: function insertTable(arange, row, col) {
|
|
41832
|
-
var hoEditorFactory =
|
|
41847
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41833
41848
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41834
41849
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41835
|
-
if (parentNode instanceof
|
|
41850
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
41836
41851
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
41837
41852
|
return;
|
|
41838
41853
|
}
|
|
41839
|
-
if (parentNode instanceof
|
|
41854
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41840
41855
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
41841
41856
|
return;
|
|
41842
41857
|
}
|
|
@@ -41866,10 +41881,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41866
41881
|
// paraNode
|
|
41867
41882
|
// );
|
|
41868
41883
|
// }
|
|
41869
|
-
var tableProperty = new
|
|
41870
|
-
var tableNode = new
|
|
41884
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE('');
|
|
41885
|
+
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
41871
41886
|
hoEditorFactory.undoService.begin();
|
|
41872
|
-
hoEditorFactory.undoService.add(new
|
|
41887
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_61__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
41873
41888
|
hoEditorFactory.undoService.commit();
|
|
41874
41889
|
// hoEditorFactory.docTree.insertNodeAfterPath(tablePath, tableNode);
|
|
41875
41890
|
// hoEditorFactory.docTree.curDomRange.endPath = nextParaNode.getNodePath();
|
|
@@ -41884,7 +41899,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41884
41899
|
}, {
|
|
41885
41900
|
key: "insertTableRowAbove",
|
|
41886
41901
|
value: function insertTableRowAbove(arange, count) {
|
|
41887
|
-
var hoEditorFactory =
|
|
41902
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41888
41903
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41889
41904
|
if (np && np.node) {
|
|
41890
41905
|
// const index = np.childIndex;
|
|
@@ -41892,20 +41907,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41892
41907
|
// }else{
|
|
41893
41908
|
// }
|
|
41894
41909
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
41895
|
-
if (cell && cell instanceof
|
|
41896
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41910
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
41911
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
41897
41912
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
41898
41913
|
_cell$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
41899
41914
|
r = _cell$table$getCellIn2[0],
|
|
41900
41915
|
c = _cell$table$getCellIn2[1];
|
|
41901
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
41916
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
41902
41917
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41903
41918
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
41904
41919
|
return;
|
|
41905
41920
|
}
|
|
41906
41921
|
}
|
|
41907
41922
|
hoEditorFactory.undoService.begin();
|
|
41908
|
-
hoEditorFactory.undoService.add(new
|
|
41923
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
41909
41924
|
hoEditorFactory.undoService.commit();
|
|
41910
41925
|
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
41911
41926
|
if (newLineWithCellContent) {
|
|
@@ -41916,26 +41931,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41916
41931
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41917
41932
|
var spath = sCell.childNodes[0].getNodePath();
|
|
41918
41933
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41919
|
-
var domRange = new
|
|
41934
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41920
41935
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
41921
41936
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41922
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
41937
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
41923
41938
|
for (var n = 0; n < nodes.length; n++) {
|
|
41924
41939
|
var anode = nodes[n];
|
|
41925
41940
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
41926
41941
|
nodes.splice(n, 1);
|
|
41927
|
-
} else if (anode instanceof
|
|
41942
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
41928
41943
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
41929
|
-
var markNode = new
|
|
41944
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
41930
41945
|
anode.childNodes.splice(1, 0, markNode);
|
|
41931
|
-
} else if (anode instanceof
|
|
41946
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
41932
41947
|
anode.text = anode.name;
|
|
41933
41948
|
anode.keyValue = '';
|
|
41934
41949
|
anode.node2DrawNode();
|
|
41935
|
-
} else if (anode instanceof
|
|
41950
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
41936
41951
|
anode.text = anode.labelText;
|
|
41937
41952
|
anode.node2DrawNode();
|
|
41938
|
-
} else if (anode instanceof
|
|
41953
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
41939
41954
|
anode.number = 0;
|
|
41940
41955
|
anode.type = 0;
|
|
41941
41956
|
anode.signor = '';
|
|
@@ -41974,8 +41989,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41974
41989
|
if (sCellNode && eCellNode) {
|
|
41975
41990
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
41976
41991
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
41977
|
-
var newRange = new
|
|
41978
|
-
var cgEvent = new
|
|
41992
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
41993
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
41979
41994
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
41980
41995
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
41981
41996
|
}
|
|
@@ -42006,24 +42021,24 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42006
42021
|
}, {
|
|
42007
42022
|
key: "insertTableRowBelow",
|
|
42008
42023
|
value: function insertTableRowBelow(arange, count) {
|
|
42009
|
-
var hoEditorFactory =
|
|
42024
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42010
42025
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42011
42026
|
if (np && np.node) {
|
|
42012
42027
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42013
|
-
if (cell && cell instanceof
|
|
42014
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42028
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42029
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
42015
42030
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
42016
42031
|
_cell$table$getCellIn4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
42017
42032
|
r = _cell$table$getCellIn4[0],
|
|
42018
42033
|
c = _cell$table$getCellIn4[1];
|
|
42019
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42034
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42020
42035
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
42021
42036
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
42022
42037
|
return;
|
|
42023
42038
|
}
|
|
42024
42039
|
}
|
|
42025
42040
|
hoEditorFactory.undoService.begin();
|
|
42026
|
-
hoEditorFactory.undoService.add(new
|
|
42041
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
42027
42042
|
hoEditorFactory.undoService.commit();
|
|
42028
42043
|
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
42029
42044
|
if (newLineWithCellContent) {
|
|
@@ -42034,26 +42049,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42034
42049
|
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
42035
42050
|
var spath = sCell.childNodes[0].getNodePath();
|
|
42036
42051
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
42037
|
-
var domRange = new
|
|
42052
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
42038
42053
|
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
42039
|
-
var nodes = hoEditorFactory.structureNode.Parse(
|
|
42054
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_90__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
42040
42055
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
42041
42056
|
for (var n = 0; n < nodes.length; n++) {
|
|
42042
42057
|
var anode = nodes[n];
|
|
42043
42058
|
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
42044
42059
|
nodes.splice(n, 1);
|
|
42045
|
-
} else if (anode instanceof
|
|
42060
|
+
} else if (anode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && !anode.isEmpty()) {
|
|
42046
42061
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
42047
|
-
var markNode = new
|
|
42062
|
+
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
42048
42063
|
anode.childNodes.splice(1, 0, markNode);
|
|
42049
|
-
} else if (anode instanceof
|
|
42064
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
42050
42065
|
anode.text = anode.name;
|
|
42051
42066
|
anode.keyValue = '';
|
|
42052
42067
|
anode.node2DrawNode();
|
|
42053
|
-
} else if (anode instanceof
|
|
42068
|
+
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
42054
42069
|
anode.text = anode.labelText;
|
|
42055
42070
|
anode.node2DrawNode();
|
|
42056
|
-
} else if (anode instanceof
|
|
42071
|
+
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.number !== 0) {
|
|
42057
42072
|
anode.number = 0;
|
|
42058
42073
|
anode.type = 0;
|
|
42059
42074
|
anode.signor = '';
|
|
@@ -42092,8 +42107,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42092
42107
|
if (sCellNode && eCellNode) {
|
|
42093
42108
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42094
42109
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42095
|
-
var newRange = new
|
|
42096
|
-
var cgEvent = new
|
|
42110
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42111
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42097
42112
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42098
42113
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42099
42114
|
}
|
|
@@ -42124,19 +42139,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42124
42139
|
}, {
|
|
42125
42140
|
key: "insertTableColLeft",
|
|
42126
42141
|
value: function insertTableColLeft(arange, count) {
|
|
42127
|
-
var hoEditorFactory =
|
|
42142
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42128
42143
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42129
42144
|
if (np && np.node) {
|
|
42130
42145
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42131
|
-
if (cell && cell instanceof
|
|
42146
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42132
42147
|
var status = hoEditorFactory.drawTree.paintStatus;
|
|
42133
|
-
if (status ==
|
|
42148
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42134
42149
|
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
42135
42150
|
_cell$table$getCellIn6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
42136
42151
|
r = _cell$table$getCellIn6[0],
|
|
42137
42152
|
c = _cell$table$getCellIn6[1];
|
|
42138
42153
|
hoEditorFactory.undoService.begin();
|
|
42139
|
-
hoEditorFactory.undoService.add(new
|
|
42154
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
42140
42155
|
hoEditorFactory.undoService.commit();
|
|
42141
42156
|
var sCellNode = cell.table.rows[0][c];
|
|
42142
42157
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
@@ -42151,8 +42166,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42151
42166
|
if (sCellNode && eCellNode) {
|
|
42152
42167
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42153
42168
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42154
|
-
var newRange = new
|
|
42155
|
-
var cgEvent = new
|
|
42169
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42170
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42156
42171
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42157
42172
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42158
42173
|
}
|
|
@@ -42185,18 +42200,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42185
42200
|
}, {
|
|
42186
42201
|
key: "insertTableColRight",
|
|
42187
42202
|
value: function insertTableColRight(arange, count) {
|
|
42188
|
-
var hoEditorFactory =
|
|
42203
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42189
42204
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.endPath);
|
|
42190
42205
|
if (np && np.node) {
|
|
42191
42206
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
42192
|
-
if (cell && cell instanceof
|
|
42193
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42207
|
+
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
42208
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
42194
42209
|
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
42195
42210
|
_cell$table$getCellIn8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
42196
42211
|
r = _cell$table$getCellIn8[0],
|
|
42197
42212
|
c = _cell$table$getCellIn8[1];
|
|
42198
42213
|
hoEditorFactory.undoService.begin();
|
|
42199
|
-
hoEditorFactory.undoService.add(new
|
|
42214
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_65__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
42200
42215
|
hoEditorFactory.undoService.commit();
|
|
42201
42216
|
var sCellNode = cell.table.rows[0][c + 1];
|
|
42202
42217
|
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
@@ -42211,8 +42226,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42211
42226
|
if (sCellNode && eCellNode) {
|
|
42212
42227
|
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
42213
42228
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
42214
|
-
var newRange = new
|
|
42215
|
-
var cgEvent = new
|
|
42229
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
42230
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
42216
42231
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42217
42232
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42218
42233
|
}
|
|
@@ -42243,7 +42258,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42243
42258
|
}, {
|
|
42244
42259
|
key: "tableDeleteRows",
|
|
42245
42260
|
value: function tableDeleteRows(aRange) {
|
|
42246
|
-
var _TableNode$getSelectT =
|
|
42261
|
+
var _TableNode$getSelectT = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42247
42262
|
_TableNode$getSelectT2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT, 5),
|
|
42248
42263
|
table = _TableNode$getSelectT2[0],
|
|
42249
42264
|
r1 = _TableNode$getSelectT2[1],
|
|
@@ -42258,8 +42273,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42258
42273
|
// if (eParentNode instanceof CellNode && eParentNode.rowSpan > 1) {
|
|
42259
42274
|
// r2 = r2 + eParentNode.rowSpan - 1;
|
|
42260
42275
|
// }
|
|
42261
|
-
var hoEditorFactory =
|
|
42262
|
-
if (hoEditorFactory.drawTree.paintStatus ==
|
|
42276
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42277
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_91__/* .PaintState */ .Dh.psEdit) {
|
|
42263
42278
|
for (var i = r1; i <= r2; i++) {
|
|
42264
42279
|
var rowInfo = table.rowInfos[i];
|
|
42265
42280
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
@@ -42276,7 +42291,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42276
42291
|
return;
|
|
42277
42292
|
}
|
|
42278
42293
|
hoEditorFactory.undoService.begin();
|
|
42279
|
-
hoEditorFactory.undoService.add(new
|
|
42294
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
42280
42295
|
hoEditorFactory.undoService.commit();
|
|
42281
42296
|
if (table.childNodes.length > 0) {
|
|
42282
42297
|
var path = '';
|
|
@@ -42289,9 +42304,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42289
42304
|
var firstCell = table.childNodes[0];
|
|
42290
42305
|
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42291
42306
|
}
|
|
42292
|
-
var newDomRange = new
|
|
42307
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42293
42308
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42294
|
-
var cgEvent = new
|
|
42309
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42295
42310
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42296
42311
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42297
42312
|
}
|
|
@@ -42314,7 +42329,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42314
42329
|
}, {
|
|
42315
42330
|
key: "tableDeleteCols",
|
|
42316
42331
|
value: function tableDeleteCols(aRange) {
|
|
42317
|
-
var _TableNode$getSelectT3 =
|
|
42332
|
+
var _TableNode$getSelectT3 = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, aRange),
|
|
42318
42333
|
_TableNode$getSelectT4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_TableNode$getSelectT3, 5),
|
|
42319
42334
|
table = _TableNode$getSelectT4[0],
|
|
42320
42335
|
r1 = _TableNode$getSelectT4[1],
|
|
@@ -42325,9 +42340,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42325
42340
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
42326
42341
|
return;
|
|
42327
42342
|
}
|
|
42328
|
-
var hoEditorFactory =
|
|
42343
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42329
42344
|
var eParentNode = aRange.npEnd.node.parentNode;
|
|
42330
|
-
if (eParentNode instanceof
|
|
42345
|
+
if (eParentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D && eParentNode.colSpan > 1) {
|
|
42331
42346
|
c2 = c2 + eParentNode.colSpan - 1;
|
|
42332
42347
|
}
|
|
42333
42348
|
if (c1 === 0 && c2 == table.colCount - 1) {
|
|
@@ -42338,14 +42353,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42338
42353
|
return;
|
|
42339
42354
|
}
|
|
42340
42355
|
hoEditorFactory.undoService.begin();
|
|
42341
|
-
hoEditorFactory.undoService.add(new
|
|
42356
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteColUndoUnit__WEBPACK_IMPORTED_MODULE_64__/* .TableDeleteColUndoUnit */ .u(this._hoEditorFactoryID, table, c1, c2 - c1 + 1));
|
|
42342
42357
|
hoEditorFactory.undoService.commit();
|
|
42343
42358
|
if (table.childNodes.length > 0) {
|
|
42344
42359
|
var firstCell = table.childNodes[0];
|
|
42345
42360
|
var path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
42346
|
-
var newDomRange = new
|
|
42361
|
+
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
42347
42362
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
42348
|
-
var cgEvent = new
|
|
42363
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
42349
42364
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42350
42365
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
42351
42366
|
}
|
|
@@ -42368,13 +42383,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42368
42383
|
}, {
|
|
42369
42384
|
key: "tableMergerCells",
|
|
42370
42385
|
value: function tableMergerCells(aRange) {
|
|
42371
|
-
var hoEditorFactory =
|
|
42386
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42372
42387
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42373
42388
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42374
42389
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42375
42390
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42376
42391
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42377
|
-
if (!(cell1 instanceof
|
|
42392
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
42378
42393
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
42379
42394
|
return;
|
|
42380
42395
|
}
|
|
@@ -42397,7 +42412,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42397
42412
|
aColSpan = _cell1$table$canMerge2[2];
|
|
42398
42413
|
if (ret) {
|
|
42399
42414
|
hoEditorFactory.undoService.begin();
|
|
42400
|
-
hoEditorFactory.undoService.add(new
|
|
42415
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell1.table, r1, c1, aRowSpan, aColSpan));
|
|
42401
42416
|
hoEditorFactory.undoService.commit();
|
|
42402
42417
|
// cell1.table.mergeCells(r1, c1, rowSpan, colSpan);
|
|
42403
42418
|
// const endPath = (cell1 as CellNode).table.getNodePath();
|
|
@@ -42420,13 +42435,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42420
42435
|
}, {
|
|
42421
42436
|
key: "tableUnMergerCells",
|
|
42422
42437
|
value: function tableUnMergerCells(aRange) {
|
|
42423
|
-
var hoEditorFactory =
|
|
42438
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42424
42439
|
var np1 = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
42425
42440
|
var np2 = hoEditorFactory.docTree.findNodePositionByPath(aRange.endPath);
|
|
42426
42441
|
if (np1 && np1.node && np2 && np2.node) {
|
|
42427
42442
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42428
42443
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42429
|
-
if (!(cell1 instanceof
|
|
42444
|
+
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
42430
42445
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
42431
42446
|
return;
|
|
42432
42447
|
}
|
|
@@ -42454,7 +42469,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42454
42469
|
var cell = cell1.table.rows[r][c];
|
|
42455
42470
|
if (cell && (cell.rowSpan > 1 || cell.colSpan > 1)) {
|
|
42456
42471
|
hoEditorFactory.undoService.begin();
|
|
42457
|
-
hoEditorFactory.undoService.add(new
|
|
42472
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableUnMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_67__/* .TableUnMergeCellUndoUnit */ .u(this._hoEditorFactoryID, cell1.table, r, c));
|
|
42458
42473
|
hoEditorFactory.undoService.commit();
|
|
42459
42474
|
}
|
|
42460
42475
|
}
|
|
@@ -42479,7 +42494,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42479
42494
|
}, {
|
|
42480
42495
|
key: "setTableProperty",
|
|
42481
42496
|
value: function setTableProperty(objectValues, tableNode) {
|
|
42482
|
-
var tableProperty = new
|
|
42497
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .TableProperty */ .vE(objectValues);
|
|
42483
42498
|
tableNode.tableProperty = tableProperty;
|
|
42484
42499
|
}
|
|
42485
42500
|
/**
|
|
@@ -42491,9 +42506,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42491
42506
|
key: "setRowProperty",
|
|
42492
42507
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
42493
42508
|
var _this4 = this;
|
|
42494
|
-
var hoEditorFactory =
|
|
42509
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42495
42510
|
var setRowProps = function setRowProps(rowInfo) {
|
|
42496
|
-
var rowProperty = new
|
|
42511
|
+
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .RowProperty */ .Nr(objectValues);
|
|
42497
42512
|
var oldRowProperty = rowInfo.rowProperty;
|
|
42498
42513
|
rowInfo.rowProperty = rowProperty;
|
|
42499
42514
|
if (rowProperty.isSpecifyHeight && rowProperty.rowHeight !== oldRowProperty.rowHeight) {
|
|
@@ -42502,7 +42517,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42502
42517
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
42503
42518
|
if (r >= 0) {
|
|
42504
42519
|
hoEditorFactory.undoService.begin();
|
|
42505
|
-
hoEditorFactory.undoService.add(new
|
|
42520
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableResizeRowUndoUnit */ .w(_this4._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
42506
42521
|
hoEditorFactory.undoService.commit();
|
|
42507
42522
|
}
|
|
42508
42523
|
}
|
|
@@ -42511,7 +42526,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42511
42526
|
setRowProps(rowInfo);
|
|
42512
42527
|
} else {
|
|
42513
42528
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42514
|
-
var rowscols =
|
|
42529
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42515
42530
|
if (rowscols[0]) {
|
|
42516
42531
|
var startRowNo = rowscols[1];
|
|
42517
42532
|
var endRowNo = rowscols[3];
|
|
@@ -42529,7 +42544,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42529
42544
|
}
|
|
42530
42545
|
}
|
|
42531
42546
|
rowInfo.table.update();
|
|
42532
|
-
var cgEvent = new
|
|
42547
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42533
42548
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42534
42549
|
}
|
|
42535
42550
|
/**
|
|
@@ -42541,9 +42556,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42541
42556
|
key: "setColProperty",
|
|
42542
42557
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
42543
42558
|
var _this5 = this;
|
|
42544
|
-
var hoEditorFactory =
|
|
42559
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42545
42560
|
var setColProps = function setColProps(colInfo) {
|
|
42546
|
-
var colProperty = new
|
|
42561
|
+
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .ColProperty */ .Ti(objectValues);
|
|
42547
42562
|
var oldColProperty = colInfo.colProperty;
|
|
42548
42563
|
colInfo.colProperty = colProperty;
|
|
42549
42564
|
if (colProperty.isSpecifyWidth && colProperty.width !== oldColProperty.width) {
|
|
@@ -42551,7 +42566,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42551
42566
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
42552
42567
|
if (c >= 0) {
|
|
42553
42568
|
hoEditorFactory.undoService.begin();
|
|
42554
|
-
hoEditorFactory.undoService.add(new
|
|
42569
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_73__/* .TableResizeColUndoUnit */ .D(_this5._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
42555
42570
|
hoEditorFactory.undoService.commit();
|
|
42556
42571
|
}
|
|
42557
42572
|
}
|
|
@@ -42571,7 +42586,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42571
42586
|
setColProps(colInfo);
|
|
42572
42587
|
} else {
|
|
42573
42588
|
if (curDomRange.startMainNode && curDomRange.endMainNode) {
|
|
42574
|
-
var rowscols =
|
|
42589
|
+
var rowscols = _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_51__/* .TableNode */ .Fh.getSelectTableRowColInfos(this._hoEditorFactoryID, curDomRange);
|
|
42575
42590
|
if (rowscols[0]) {
|
|
42576
42591
|
var startColNo = rowscols[2];
|
|
42577
42592
|
var endColNo = rowscols[4];
|
|
@@ -42589,7 +42604,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42589
42604
|
}
|
|
42590
42605
|
}
|
|
42591
42606
|
colInfo.table.update();
|
|
42592
|
-
var cgEvent = new
|
|
42607
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, curDomRange); //选中范围变化事件
|
|
42593
42608
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42594
42609
|
}
|
|
42595
42610
|
/**
|
|
@@ -42600,7 +42615,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42600
42615
|
}, {
|
|
42601
42616
|
key: "setCellProperty",
|
|
42602
42617
|
value: function setCellProperty(objectValues, cellNode) {
|
|
42603
|
-
var cellProperty = new
|
|
42618
|
+
var cellProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_58__/* .CellProperty */ .$W(objectValues);
|
|
42604
42619
|
cellNode.cellProperty = cellProperty;
|
|
42605
42620
|
cellNode.drawCell.drawPageCells.forEach(function (pcell) {
|
|
42606
42621
|
pcell.valignTop = pcell.calcValignTop(pcell.dHeight)[0];
|
|
@@ -42612,12 +42627,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42612
42627
|
}, {
|
|
42613
42628
|
key: "addHeader",
|
|
42614
42629
|
value: function addHeader(arange) {
|
|
42615
|
-
var hoEditorFactory =
|
|
42630
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42616
42631
|
//切换路径
|
|
42617
42632
|
var cpage = hoEditorFactory.drawTree.activePage;
|
|
42618
|
-
if (!cpage) throw
|
|
42633
|
+
if (!cpage) throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.LineNotDefined();
|
|
42619
42634
|
//切换当前页面页眉
|
|
42620
|
-
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex,
|
|
42635
|
+
hoEditorFactory.subDocManger.addANewSubDoc(cpage.pageIndex, _SubDocManger__WEBPACK_IMPORTED_MODULE_56__/* .HeaderFooterType */ .pi.hftHead);
|
|
42621
42636
|
// const index = hoEditorFactory.drawTree.headerDNodes.length;
|
|
42622
42637
|
// const newPath = `${gHeaderPath}/${index}`;
|
|
42623
42638
|
// cpage?.drawDomLevel?.drawHeader.DeletePage(cpage);
|
|
@@ -42662,15 +42677,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42662
42677
|
value: function insertRadioAndCheckBox(operType, curDomRange, valuesObject, styleIndex) {
|
|
42663
42678
|
var domRange = curDomRange.normalize();
|
|
42664
42679
|
var startPath = domRange.endPath;
|
|
42665
|
-
var hoEditorFactory =
|
|
42680
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42666
42681
|
var oldIsTransToText = false;
|
|
42667
42682
|
if (operType === 'update') {
|
|
42668
42683
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
42669
42684
|
if (np) {
|
|
42670
42685
|
var node = np.node;
|
|
42671
|
-
if (node instanceof
|
|
42686
|
+
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42672
42687
|
hoEditorFactory.undoService.begin();
|
|
42673
|
-
hoEditorFactory.undoService.add(new
|
|
42688
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42674
42689
|
oldIsTransToText = node.isTransToText;
|
|
42675
42690
|
//hoEditorFactory.undoService.commit();
|
|
42676
42691
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42686,7 +42701,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42686
42701
|
//valuesObj["text"] = "";
|
|
42687
42702
|
//valuesObject = JSON.stringify(valuesObj);
|
|
42688
42703
|
//}
|
|
42689
|
-
var radioAndCheckBoxNode = new
|
|
42704
|
+
var radioAndCheckBoxNode = new _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_53__/* .RadioAndCheckBoxNode */ .Yh(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex);
|
|
42690
42705
|
//插入该表达式节点
|
|
42691
42706
|
if (operType === 'add') {
|
|
42692
42707
|
hoEditorFactory.undoService.begin();
|
|
@@ -42710,7 +42725,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42710
42725
|
}, {
|
|
42711
42726
|
key: "find",
|
|
42712
42727
|
value: function find(curDomRange, findContent, direction, matchCase) {
|
|
42713
|
-
var hoEditorFactory =
|
|
42728
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42714
42729
|
if (this._findContent.length === 0) {
|
|
42715
42730
|
this._findContent = findContent;
|
|
42716
42731
|
this._count++;
|
|
@@ -42763,8 +42778,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42763
42778
|
}
|
|
42764
42779
|
}
|
|
42765
42780
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
42766
|
-
var newRange = new
|
|
42767
|
-
var cgEvent = new
|
|
42781
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, returnPath, path);
|
|
42782
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42768
42783
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42769
42784
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
42770
42785
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
@@ -42782,7 +42797,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42782
42797
|
}, {
|
|
42783
42798
|
key: "replace",
|
|
42784
42799
|
value: function replace(curDomRange, findContent, replaceContent, path, type, direction, matchCase) {
|
|
42785
|
-
var hoEditorFactory =
|
|
42800
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42786
42801
|
var domRange = curDomRange.normalize();
|
|
42787
42802
|
var startNode = domRange.npStart.node;
|
|
42788
42803
|
var sNode = startNode;
|
|
@@ -42836,7 +42851,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42836
42851
|
var endPath1 = getArr1[1];
|
|
42837
42852
|
var newTextNode1 = getArr1[2];
|
|
42838
42853
|
hoEditorFactory.undoService.begin();
|
|
42839
|
-
hoEditorFactory.undoService.add(new
|
|
42854
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
42840
42855
|
if (replaceContent !== '') {
|
|
42841
42856
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
42842
42857
|
}
|
|
@@ -42860,7 +42875,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42860
42875
|
var endPath2 = getArr2[0];
|
|
42861
42876
|
var newTextNode2 = getArr2[1];
|
|
42862
42877
|
hoEditorFactory.undoService.begin();
|
|
42863
|
-
hoEditorFactory.undoService.add(new
|
|
42878
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
42864
42879
|
if (replaceContent !== '') {
|
|
42865
42880
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
42866
42881
|
}
|
|
@@ -42870,8 +42885,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42870
42885
|
if (replaceContent !== '') {
|
|
42871
42886
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
42872
42887
|
}
|
|
42873
|
-
var newRange = new
|
|
42874
|
-
var cgEvent = new
|
|
42888
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
42889
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
42875
42890
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
42876
42891
|
}
|
|
42877
42892
|
}
|
|
@@ -42894,7 +42909,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42894
42909
|
oldDataID = '';
|
|
42895
42910
|
oldId = '';
|
|
42896
42911
|
domRange = curDomRange.normalize();
|
|
42897
|
-
hoEditorFactory =
|
|
42912
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42898
42913
|
startPath = domRange.endPath;
|
|
42899
42914
|
if (!(operType === 'update')) {
|
|
42900
42915
|
_context2.next = 16;
|
|
@@ -42906,7 +42921,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42906
42921
|
break;
|
|
42907
42922
|
}
|
|
42908
42923
|
node = np.node;
|
|
42909
|
-
if (!(node instanceof
|
|
42924
|
+
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z)) {
|
|
42910
42925
|
_context2.next = 16;
|
|
42911
42926
|
break;
|
|
42912
42927
|
}
|
|
@@ -42914,14 +42929,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42914
42929
|
oldId = node.id;
|
|
42915
42930
|
hoEditorFactory.undoService.begin();
|
|
42916
42931
|
_context2.next = 15;
|
|
42917
|
-
return hoEditorFactory.undoService.add(new
|
|
42932
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42918
42933
|
case 15:
|
|
42919
42934
|
//hoEditorFactory.undoService.commit();
|
|
42920
42935
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
42921
42936
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42922
42937
|
case 16:
|
|
42923
42938
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42924
|
-
dateTimeNode = new
|
|
42939
|
+
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex); //插入该表达式节点
|
|
42925
42940
|
if (operType === 'add') {
|
|
42926
42941
|
hoEditorFactory.undoService.begin();
|
|
42927
42942
|
} else {
|
|
@@ -42961,7 +42976,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42961
42976
|
startPath = domRange.endPath;
|
|
42962
42977
|
oldDataID = '';
|
|
42963
42978
|
oldId = '';
|
|
42964
|
-
hoEditorFactory =
|
|
42979
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42965
42980
|
if (!(operType === 'update')) {
|
|
42966
42981
|
_context3.next = 16;
|
|
42967
42982
|
break;
|
|
@@ -42972,7 +42987,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42972
42987
|
break;
|
|
42973
42988
|
}
|
|
42974
42989
|
node = np.node;
|
|
42975
|
-
if (!(node instanceof
|
|
42990
|
+
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF)) {
|
|
42976
42991
|
_context3.next = 16;
|
|
42977
42992
|
break;
|
|
42978
42993
|
}
|
|
@@ -42980,14 +42995,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42980
42995
|
oldId = node.id;
|
|
42981
42996
|
hoEditorFactory.undoService.begin();
|
|
42982
42997
|
_context3.next = 15;
|
|
42983
|
-
return hoEditorFactory.undoService.add(new
|
|
42998
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42984
42999
|
case 15:
|
|
42985
43000
|
//hoEditorFactory.undoService.commit();
|
|
42986
43001
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
42987
43002
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
42988
43003
|
case 16:
|
|
42989
43004
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42990
|
-
downListNode = new
|
|
43005
|
+
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex); //插入该表达式节点
|
|
42991
43006
|
if (operType === 'add') {
|
|
42992
43007
|
hoEditorFactory.undoService.begin();
|
|
42993
43008
|
} else {
|
|
@@ -42997,7 +43012,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42997
43012
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
42998
43013
|
hoEditorFactory.undoService.commit();
|
|
42999
43014
|
if (operType === 'add') {
|
|
43000
|
-
if (parentNode instanceof
|
|
43015
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43001
43016
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
43002
43017
|
} else {
|
|
43003
43018
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
@@ -43031,9 +43046,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43031
43046
|
value: function insertSpecialChars(operType, curDomRange, specialChars, styleIndex) {
|
|
43032
43047
|
var domRange = curDomRange.normalize();
|
|
43033
43048
|
var startPath = domRange.endPath;
|
|
43034
|
-
var hoEditorFactory =
|
|
43049
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43035
43050
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43036
|
-
var specialCharsNode = new
|
|
43051
|
+
var specialCharsNode = new _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_59__/* .SpecialCharsNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSpecialChar, specialChars, styleIndex);
|
|
43037
43052
|
//插入该表达式节点
|
|
43038
43053
|
hoEditorFactory.undoService.begin();
|
|
43039
43054
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
@@ -43051,9 +43066,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43051
43066
|
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
43052
43067
|
var domRange = curDomRange.normalize();
|
|
43053
43068
|
var startPath = domRange.endPath;
|
|
43054
|
-
var hoEditorFactory =
|
|
43069
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43055
43070
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43056
|
-
var rareCharNode = new
|
|
43071
|
+
var rareCharNode = new _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_88__/* .RareCharNode */ .Q(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntRareChar, text, styleIndex);
|
|
43057
43072
|
//插入该表达式节点
|
|
43058
43073
|
hoEditorFactory.undoService.begin();
|
|
43059
43074
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
@@ -43068,21 +43083,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43068
43083
|
}, {
|
|
43069
43084
|
key: "insertJumpButton",
|
|
43070
43085
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
43071
|
-
var hoEditorFactory =
|
|
43086
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43072
43087
|
var startPath = curDomRange.endPath;
|
|
43073
43088
|
if (operType === 'update') {
|
|
43074
43089
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43075
43090
|
if (np) {
|
|
43076
43091
|
var node = np.node;
|
|
43077
|
-
if (node instanceof
|
|
43092
|
+
if (node instanceof _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__/* .JumpButtonNode */ .a) {
|
|
43078
43093
|
hoEditorFactory.undoService.begin();
|
|
43079
|
-
hoEditorFactory.undoService.add(new
|
|
43094
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
43080
43095
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43081
43096
|
}
|
|
43082
43097
|
}
|
|
43083
43098
|
}
|
|
43084
43099
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43085
|
-
var jumpButtonNode = new
|
|
43100
|
+
var jumpButtonNode = new _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_89__/* .JumpButtonNode */ .a(this._hoEditorFactoryID, curDomRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntJumpButton, name, fileId, hoEditorFactory.docTree.curStyleIndex);
|
|
43086
43101
|
if (operType === 'add') {
|
|
43087
43102
|
hoEditorFactory.undoService.begin();
|
|
43088
43103
|
}
|
|
@@ -43096,7 +43111,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43096
43111
|
}, {
|
|
43097
43112
|
key: "setPageProperty",
|
|
43098
43113
|
value: function setPageProperty(objectValues) {
|
|
43099
|
-
var hoEditorFactory =
|
|
43114
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43100
43115
|
hoEditorFactory.pageProperty.setPageProperty(objectValues);
|
|
43101
43116
|
}
|
|
43102
43117
|
/**
|
|
@@ -43109,12 +43124,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43109
43124
|
value: function insertComment(text, curDomRange, source) {
|
|
43110
43125
|
var domRange = curDomRange.normalize();
|
|
43111
43126
|
if (!domRange.npStart.node) {
|
|
43112
|
-
throw
|
|
43127
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43113
43128
|
}
|
|
43114
43129
|
if (!domRange.npEnd.node) {
|
|
43115
|
-
throw
|
|
43130
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_52__/* .Exception */ .P.NodeNotFound();
|
|
43116
43131
|
}
|
|
43117
|
-
var hoEditorFactory =
|
|
43132
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43118
43133
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
43119
43134
|
var startPath = domRange.startPath;
|
|
43120
43135
|
var endPath = domRange.endPath;
|
|
@@ -43123,13 +43138,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43123
43138
|
// domRange.npEnd.node instanceof TextNode
|
|
43124
43139
|
// ? domRange.npEnd.node.styleIndex
|
|
43125
43140
|
// : 0;
|
|
43126
|
-
var endNode = new
|
|
43127
|
-
endNode.MarkNodeType =
|
|
43141
|
+
var endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd);
|
|
43142
|
+
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd;
|
|
43128
43143
|
endNode.isReadOnly = true;
|
|
43129
43144
|
hoEditorFactory.undoService.begin();
|
|
43130
43145
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, endPath, endNode));
|
|
43131
43146
|
hoEditorFactory.undoService.commit();
|
|
43132
|
-
var comment = new
|
|
43147
|
+
var comment = new _domNode_Comment__WEBPACK_IMPORTED_MODULE_68__/* .Comment */ .s(this._hoEditorFactoryID, commentID, text, endNode, source);
|
|
43133
43148
|
var curArea = hoEditorFactory.drawPageTree.getMainRootArea(endNode.drawNodes[0]);
|
|
43134
43149
|
if (!curArea) {
|
|
43135
43150
|
return;
|
|
@@ -43139,7 +43154,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43139
43154
|
// 2023-05-23注释 25临时放开
|
|
43140
43155
|
curArea.drawComments();
|
|
43141
43156
|
hoEditorFactory.undoService.begin();
|
|
43142
|
-
hoEditorFactory.undoService.add(new
|
|
43157
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p('insertComment', commentID)));
|
|
43143
43158
|
hoEditorFactory.undoService.commit();
|
|
43144
43159
|
// const newEndpath = endNode.getNodePath();
|
|
43145
43160
|
// const newRange = new DomRange(
|
|
@@ -43159,7 +43174,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43159
43174
|
key: "deleteComment",
|
|
43160
43175
|
value: function deleteComment(type, commentID) {
|
|
43161
43176
|
var _this6 = this;
|
|
43162
|
-
var hoEditorFactory =
|
|
43177
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43163
43178
|
var delStyleComment = function delStyleComment(commentID) {
|
|
43164
43179
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
43165
43180
|
if (value.commentID === commentID) {
|
|
@@ -43177,7 +43192,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43177
43192
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
43178
43193
|
var endPath = comment.eNode.getNodePath();
|
|
43179
43194
|
hoEditorFactory.undoService.begin();
|
|
43180
|
-
hoEditorFactory.undoService.add(new
|
|
43195
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(_this6._hoEditorFactoryID, comment.eNode, endPath));
|
|
43181
43196
|
hoEditorFactory.undoService.commit();
|
|
43182
43197
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
43183
43198
|
};
|
|
@@ -43238,7 +43253,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43238
43253
|
key: "insertPageNum",
|
|
43239
43254
|
value: function insertPageNum(operType, domRange, contentType, formatType, autoSetHeight) {
|
|
43240
43255
|
var startPath = domRange.normalize().endPath;
|
|
43241
|
-
var hoEditorFactory =
|
|
43256
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43242
43257
|
// if (operType === "update") {
|
|
43243
43258
|
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
43244
43259
|
// startPath
|
|
@@ -43261,14 +43276,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43261
43276
|
//插入页码
|
|
43262
43277
|
// const pageNum = hoEditorFactory.drawTree.activePage
|
|
43263
43278
|
// ?.pageIndex as number;
|
|
43264
|
-
var pageNumNode = new
|
|
43279
|
+
var pageNumNode = new _treeNode_PageNumNode__WEBPACK_IMPORTED_MODULE_69__/* .PageNumNode */ .h(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntPageNum,
|
|
43265
43280
|
//pageNum + 1,
|
|
43266
43281
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43267
43282
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageNumNode));
|
|
43268
43283
|
} else {
|
|
43269
43284
|
//插入页数
|
|
43270
43285
|
//const pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
43271
|
-
var pageCountNode = new
|
|
43286
|
+
var pageCountNode = new _treeNode_PageCountNode__WEBPACK_IMPORTED_MODULE_70__/* .PageCountNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntPageCount,
|
|
43272
43287
|
//pageCount,
|
|
43273
43288
|
formatType, autoSetHeight, hoEditorFactory.docTree.curStyleIndex);
|
|
43274
43289
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pageCountNode));
|
|
@@ -43281,15 +43296,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43281
43296
|
}, {
|
|
43282
43297
|
key: "selectAll",
|
|
43283
43298
|
value: function selectAll() {
|
|
43284
|
-
var hoEditorFactory =
|
|
43299
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43285
43300
|
var curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
43286
43301
|
var path = curDomRange.normalize().startPath;
|
|
43287
43302
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(path);
|
|
43288
43303
|
if (rootNodes) {
|
|
43289
43304
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(rootNodes[0]);
|
|
43290
43305
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(rootNodes[rootNodes.length - 1]);
|
|
43291
|
-
var newRange = new
|
|
43292
|
-
var cgEvent = new
|
|
43306
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43307
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(curDomRange, newRange); //选中范围变化事件
|
|
43293
43308
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
43294
43309
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
43295
43310
|
}
|
|
@@ -43302,7 +43317,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43302
43317
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee4$(_context4) {
|
|
43303
43318
|
while (1) switch (_context4.prev = _context4.next) {
|
|
43304
43319
|
case 0:
|
|
43305
|
-
hoEditorFactory =
|
|
43320
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43306
43321
|
_context4.next = 3;
|
|
43307
43322
|
return hoEditorFactory.drawPageTree.stopPageEvent();
|
|
43308
43323
|
case 3:
|
|
@@ -43356,7 +43371,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43356
43371
|
}, {
|
|
43357
43372
|
key: "editComment",
|
|
43358
43373
|
value: function editComment(commentID, text, source) {
|
|
43359
|
-
var hoEditorFactory =
|
|
43374
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43360
43375
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
43361
43376
|
var markNode;
|
|
43362
43377
|
if (curComment) {
|
|
@@ -43474,16 +43489,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43474
43489
|
}, {
|
|
43475
43490
|
key: "insertTableFormula",
|
|
43476
43491
|
value: function insertTableFormula(domRange, formulaStr, isHideZero, formulaType) {
|
|
43477
|
-
var hoEditorFactory =
|
|
43492
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43478
43493
|
var startPath = domRange.normalize().endPath;
|
|
43479
43494
|
var pNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43480
43495
|
hoEditorFactory.undoService.begin();
|
|
43481
|
-
if (domRange.npEnd.node instanceof
|
|
43496
|
+
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N) {
|
|
43482
43497
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
43483
|
-
hoEditorFactory.undoService.add(new
|
|
43498
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
43484
43499
|
startPath = prePath;
|
|
43485
43500
|
}
|
|
43486
|
-
var tableFormula = new
|
|
43501
|
+
var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_71__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
|
|
43487
43502
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, tableFormula));
|
|
43488
43503
|
hoEditorFactory.undoService.commit();
|
|
43489
43504
|
}
|
|
@@ -43507,8 +43522,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43507
43522
|
}, {
|
|
43508
43523
|
key: "setUserLoginInfo",
|
|
43509
43524
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
43510
|
-
var hoEditorFactory =
|
|
43511
|
-
var userLogin = new
|
|
43525
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43526
|
+
var userLogin = new _runTimeInfo_UserInfo__WEBPACK_IMPORTED_MODULE_72__/* .UserInfo */ .a(this._hoEditorFactoryID);
|
|
43512
43527
|
userLogin.setUserInfo(id, name, permissionLevel, clientIP);
|
|
43513
43528
|
hoEditorFactory.userInfo = userLogin;
|
|
43514
43529
|
}
|
|
@@ -43516,10 +43531,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43516
43531
|
key: "parseNodeData",
|
|
43517
43532
|
value: function parseNodeData(nodes) {
|
|
43518
43533
|
if (nodes && nodes.length > 0) {
|
|
43519
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
43534
|
+
if (nodes.length === 1 && nodes[0] instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C) {
|
|
43520
43535
|
return;
|
|
43521
43536
|
}
|
|
43522
|
-
var hoeditorfactory =
|
|
43537
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43523
43538
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
43524
43539
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
43525
43540
|
var parentNode = curNode.parentNode;
|
|
@@ -43536,21 +43551,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43536
43551
|
// nodes.splice(0, 1);
|
|
43537
43552
|
// }
|
|
43538
43553
|
var isChange = false;
|
|
43539
|
-
if (parentNode instanceof
|
|
43554
|
+
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re) {
|
|
43540
43555
|
parentNode.childNodes.forEach(function (value) {
|
|
43541
|
-
if (value instanceof
|
|
43556
|
+
if (value instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && value.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtContent) {
|
|
43542
43557
|
parentNode.removeChild(value);
|
|
43543
43558
|
isChange = true;
|
|
43544
43559
|
}
|
|
43545
43560
|
});
|
|
43546
43561
|
if (isChange) {
|
|
43547
|
-
var sMarkNodePath =
|
|
43548
|
-
hoeditorfactory.docTree.curDomRange = new
|
|
43562
|
+
var sMarkNodePath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
43563
|
+
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
43549
43564
|
}
|
|
43550
43565
|
}
|
|
43551
43566
|
// this._pasteNodes.splice(0, 0, nodes);
|
|
43552
43567
|
hoeditorfactory.undoService.begin();
|
|
43553
|
-
hoeditorfactory.undoService.add(new
|
|
43568
|
+
hoeditorfactory.undoService.add(new _undoRedo_ParseUndoUnit__WEBPACK_IMPORTED_MODULE_78__/* .ParseUndoUnit */ .e(this._hoEditorFactoryID, hoeditorfactory.docTree.curDomRange.startPath, hoeditorfactory.docTree.curDomRange.endPath, nodes));
|
|
43554
43569
|
hoeditorfactory.undoService.commit();
|
|
43555
43570
|
}
|
|
43556
43571
|
}
|
|
@@ -43561,7 +43576,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43561
43576
|
}, {
|
|
43562
43577
|
key: "insertHtmlText",
|
|
43563
43578
|
value: function insertHtmlText(strHtml) {
|
|
43564
|
-
var hoEditorFactory =
|
|
43579
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43565
43580
|
var nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
|
|
43566
43581
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
43567
43582
|
}
|
|
@@ -43575,14 +43590,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43575
43590
|
}, {
|
|
43576
43591
|
key: "getRedrawObject",
|
|
43577
43592
|
value: function getRedrawObject(startPath, endPath, action) {
|
|
43578
|
-
var domRange = new
|
|
43579
|
-
var cgEvent = new
|
|
43593
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43594
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, domRange.startPath, domRange.endPath);
|
|
43580
43595
|
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daUndoInsert || action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daDelete) {
|
|
43581
43596
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43582
|
-
cgEvent.oldDrawTreeLines = new
|
|
43597
|
+
cgEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(domRange.startPath, domRange.endPath);
|
|
43583
43598
|
} else if (action === _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daParaStyleChange) {
|
|
43584
43599
|
cgEvent.oldEndPath = domRange.endPath;
|
|
43585
|
-
cgEvent.oldDrawLines = new
|
|
43600
|
+
cgEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(domRange.startPath, domRange.endPath, false);
|
|
43586
43601
|
}
|
|
43587
43602
|
return cgEvent;
|
|
43588
43603
|
}
|
|
@@ -43594,7 +43609,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43594
43609
|
}, {
|
|
43595
43610
|
key: "modifyRedraw",
|
|
43596
43611
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
43597
|
-
var hoeditorfactory =
|
|
43612
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43598
43613
|
var endPath;
|
|
43599
43614
|
if (endModifyNode instanceof _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .BaseNode */ .Hd) endPath = hoeditorfactory.docTree.getNodeLastPath(endModifyNode);else endPath = endModifyNode;
|
|
43600
43615
|
cgEvent.afterChangePath = endPath;
|
|
@@ -43603,7 +43618,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43603
43618
|
}, {
|
|
43604
43619
|
key: "deleteRedraw",
|
|
43605
43620
|
value: function deleteRedraw(cgEvent) {
|
|
43606
|
-
var hoeditorfactory =
|
|
43621
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43607
43622
|
cgEvent.afterChangePath = cgEvent.beforeChangePath;
|
|
43608
43623
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43609
43624
|
}
|
|
@@ -43615,9 +43630,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43615
43630
|
}, {
|
|
43616
43631
|
key: "insertRedraw",
|
|
43617
43632
|
value: function insertRedraw(startPath, endPath) {
|
|
43618
|
-
var hoeditorfactory =
|
|
43619
|
-
var domRange = new
|
|
43620
|
-
var cgEvent = new
|
|
43633
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43634
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
43635
|
+
var cgEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, domRange.startPath, domRange.endPath);
|
|
43621
43636
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43622
43637
|
}
|
|
43623
43638
|
/**
|
|
@@ -43628,7 +43643,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43628
43643
|
}, {
|
|
43629
43644
|
key: "insertSeparateChar",
|
|
43630
43645
|
value: function insertSeparateChar(range, width, color, line) {
|
|
43631
|
-
var hoeditorfactory =
|
|
43646
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43632
43647
|
var np = range.normalize().npStart;
|
|
43633
43648
|
if (np && np.node) {
|
|
43634
43649
|
var curLine = hoeditorfactory.drawTree.getDlineByPath(np.path);
|
|
@@ -43639,7 +43654,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43639
43654
|
var paraNode;
|
|
43640
43655
|
if (!isNullLine) {
|
|
43641
43656
|
hoeditorfactory.undoService.begin();
|
|
43642
|
-
paraNode = new
|
|
43657
|
+
paraNode = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, np.roots, parentNode, 0);
|
|
43643
43658
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, paraLastPath, paraNode));
|
|
43644
43659
|
hoeditorfactory.undoService.commit();
|
|
43645
43660
|
} else {
|
|
@@ -43650,7 +43665,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43650
43665
|
}
|
|
43651
43666
|
hoeditorfactory.undoService.begin();
|
|
43652
43667
|
var newParaPath = paraNode.getNodePath();
|
|
43653
|
-
var separateCharNode = new
|
|
43668
|
+
var separateCharNode = new _treeNode_SeparateCharNode__WEBPACK_IMPORTED_MODULE_81__/* .SeparateCharNode */ .O(this._hoEditorFactoryID, np.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSeparateChar, width, color, line);
|
|
43654
43669
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, newParaPath, separateCharNode));
|
|
43655
43670
|
hoeditorfactory.undoService.commit();
|
|
43656
43671
|
}
|
|
@@ -43665,20 +43680,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43665
43680
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
43666
43681
|
var domRange = range.normalize();
|
|
43667
43682
|
var startPath = domRange.endPath;
|
|
43668
|
-
var hoEditorFactory =
|
|
43683
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43669
43684
|
if (operType === 'update') {
|
|
43670
43685
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43671
43686
|
if (np) {
|
|
43672
43687
|
var node = np.node;
|
|
43673
|
-
if (node instanceof
|
|
43688
|
+
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G) {
|
|
43674
43689
|
hoEditorFactory.undoService.begin();
|
|
43675
|
-
hoEditorFactory.undoService.add(new
|
|
43690
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
43676
43691
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43677
43692
|
}
|
|
43678
43693
|
}
|
|
43679
43694
|
}
|
|
43680
43695
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43681
|
-
var gestationNode = new
|
|
43696
|
+
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_86__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex);
|
|
43682
43697
|
//插入节点
|
|
43683
43698
|
if (operType === 'add') {
|
|
43684
43699
|
hoEditorFactory.undoService.begin();
|
|
@@ -43694,7 +43709,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43694
43709
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee5$(_context5) {
|
|
43695
43710
|
while (1) switch (_context5.prev = _context5.next) {
|
|
43696
43711
|
case 0:
|
|
43697
|
-
hoeditorfactory =
|
|
43712
|
+
hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43698
43713
|
astart = range.npStart.node;
|
|
43699
43714
|
aend = range.npEnd.node;
|
|
43700
43715
|
sChildIndex = range.npStart.childIndex;
|
|
@@ -43761,8 +43776,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43761
43776
|
endPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43762
43777
|
}
|
|
43763
43778
|
}
|
|
43764
|
-
labelNode = new
|
|
43765
|
-
delRange = new
|
|
43779
|
+
labelNode = new _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_82__/* .LabelNode */ .P(this._hoEditorFactoryID, range.npStart.roots, anode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntLabel, text, anode.styleIndex, associatedElement);
|
|
43780
|
+
delRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
43766
43781
|
_context5.next = 28;
|
|
43767
43782
|
return this.deleteRange(delRange, true);
|
|
43768
43783
|
case 28:
|
|
@@ -43774,7 +43789,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43774
43789
|
anode = anode.previousLeaf();
|
|
43775
43790
|
if (anode) {
|
|
43776
43791
|
anodeEndPath = hoeditorfactory.docTree.getNodeLastPath(anode);
|
|
43777
|
-
result =
|
|
43792
|
+
result = _NodePosition__WEBPACK_IMPORTED_MODULE_83__/* .NodePosition */ .F.treePathCompare(anodeEndPath, range.startPath);
|
|
43778
43793
|
if (result <= 0) {
|
|
43779
43794
|
anode = null;
|
|
43780
43795
|
}
|
|
@@ -43802,14 +43817,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43802
43817
|
}, {
|
|
43803
43818
|
key: "labelToText",
|
|
43804
43819
|
value: function labelToText(node) {
|
|
43805
|
-
var hoeditorfactory =
|
|
43820
|
+
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43806
43821
|
node.isAllowDelete = true;
|
|
43807
43822
|
var text = node.text;
|
|
43808
43823
|
var styleIndex = node.styleIndex;
|
|
43809
43824
|
var parentNode = node.parentNode;
|
|
43810
43825
|
var prevNodePath = hoeditorfactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43811
43826
|
var lastPath = hoeditorfactory.docTree.getNodeLastPath(node);
|
|
43812
|
-
var range = new
|
|
43827
|
+
var range = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, prevNodePath, lastPath);
|
|
43813
43828
|
this.deleteRange(range, true);
|
|
43814
43829
|
hoeditorfactory.undoService.begin();
|
|
43815
43830
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
@@ -43827,7 +43842,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43827
43842
|
var loopCell = function loopCell() {
|
|
43828
43843
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43829
43844
|
var anode = cell.childNodes[j];
|
|
43830
|
-
if (anode instanceof
|
|
43845
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
43831
43846
|
mark = false;
|
|
43832
43847
|
break;
|
|
43833
43848
|
}
|
|
@@ -43872,10 +43887,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43872
43887
|
}, {
|
|
43873
43888
|
key: "insertEmptySignNode",
|
|
43874
43889
|
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties) {
|
|
43875
|
-
var hoEditorFactory =
|
|
43890
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43876
43891
|
var startPath = domRange.startPath;
|
|
43877
43892
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43878
|
-
var signNode = new
|
|
43893
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, name, signType, signFormat, '', '', signTimeFormat, '', 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar, otherProperties);
|
|
43879
43894
|
//插入该表达式节点
|
|
43880
43895
|
hoEditorFactory.undoService.begin();
|
|
43881
43896
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -43893,15 +43908,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43893
43908
|
}, {
|
|
43894
43909
|
key: "insertSignNode",
|
|
43895
43910
|
value: function insertSignNode(domRange, type, name, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
43896
|
-
var hoEditorFactory =
|
|
43911
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43897
43912
|
var startPath = domRange.startPath;
|
|
43898
43913
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43899
|
-
var signNode = new
|
|
43914
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition);
|
|
43900
43915
|
//插入该表达式节点
|
|
43901
43916
|
hoEditorFactory.undoService.begin();
|
|
43902
43917
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
43903
43918
|
hoEditorFactory.undoService.commit();
|
|
43904
|
-
if (parentNode instanceof
|
|
43919
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43905
43920
|
this.signLockCheck(parentNode);
|
|
43906
43921
|
}
|
|
43907
43922
|
}
|
|
@@ -43918,15 +43933,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43918
43933
|
}, {
|
|
43919
43934
|
key: "updateSignNode",
|
|
43920
43935
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
43921
|
-
var hoEditorFactory =
|
|
43936
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43922
43937
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43923
43938
|
if (node.imgSrc === '') {
|
|
43924
43939
|
//第一次更新签名
|
|
43925
43940
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43926
|
-
var changeEvent = new
|
|
43941
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
43927
43942
|
changeEvent.oldEndPath = ePath;
|
|
43928
43943
|
changeEvent.afterChangePath = ePath;
|
|
43929
|
-
changeEvent.oldDrawLines = new
|
|
43944
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
43930
43945
|
node.type = type;
|
|
43931
43946
|
node.name = name;
|
|
43932
43947
|
node.number = 1;
|
|
@@ -43944,7 +43959,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43944
43959
|
// }
|
|
43945
43960
|
//node.connectMode = "/";
|
|
43946
43961
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43947
|
-
if (node.parentNode instanceof
|
|
43962
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
43948
43963
|
this.signLockCheck(node.parentNode);
|
|
43949
43964
|
}
|
|
43950
43965
|
} else {
|
|
@@ -43953,7 +43968,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43953
43968
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43954
43969
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
43955
43970
|
var curParaNode = dline.paragraphNode;
|
|
43956
|
-
var newPara = new
|
|
43971
|
+
var newPara = new _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_30__/* .ParagraphNode */ .C(this._hoEditorFactoryID, node.rootNodes, node.parentNode, curParaNode.paraNo);
|
|
43957
43972
|
hoEditorFactory.undoService.begin();
|
|
43958
43973
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newPara));
|
|
43959
43974
|
hoEditorFactory.undoService.commit();
|
|
@@ -43963,7 +43978,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43963
43978
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43964
43979
|
}
|
|
43965
43980
|
}
|
|
43966
|
-
var newSignNode = new
|
|
43981
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_84__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties ? otherProperties : node.otherProperties);
|
|
43967
43982
|
//插入该表达式节点
|
|
43968
43983
|
hoEditorFactory.undoService.begin();
|
|
43969
43984
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -43987,13 +44002,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43987
44002
|
}, {
|
|
43988
44003
|
key: "updateEmptySignNode",
|
|
43989
44004
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront) {
|
|
43990
|
-
var hoEditorFactory =
|
|
44005
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43991
44006
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43992
44007
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43993
|
-
var changeEvent = new
|
|
44008
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
43994
44009
|
changeEvent.oldEndPath = ePath;
|
|
43995
44010
|
changeEvent.afterChangePath = ePath;
|
|
43996
|
-
changeEvent.oldDrawLines = new
|
|
44011
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
43997
44012
|
node.name = name;
|
|
43998
44013
|
node.connectChar = connectChar;
|
|
43999
44014
|
node.signType = signType;
|
|
@@ -44015,13 +44030,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44015
44030
|
}, {
|
|
44016
44031
|
key: "updateSignTime",
|
|
44017
44032
|
value: function updateSignTime(node, signText) {
|
|
44018
|
-
var hoEditorFactory =
|
|
44033
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44019
44034
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44020
44035
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44021
|
-
var changeEvent = new
|
|
44036
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44022
44037
|
changeEvent.oldEndPath = ePath;
|
|
44023
44038
|
changeEvent.afterChangePath = ePath;
|
|
44024
|
-
changeEvent.oldDrawLines = new
|
|
44039
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44025
44040
|
node.imgSrc = signText;
|
|
44026
44041
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44027
44042
|
}
|
|
@@ -44034,13 +44049,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44034
44049
|
}, {
|
|
44035
44050
|
key: "updateSignType",
|
|
44036
44051
|
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
44037
|
-
var hoEditorFactory =
|
|
44052
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44038
44053
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44039
44054
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44040
|
-
var changeEvent = new
|
|
44055
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44041
44056
|
changeEvent.oldEndPath = ePath;
|
|
44042
44057
|
changeEvent.afterChangePath = ePath;
|
|
44043
|
-
changeEvent.oldDrawLines = new
|
|
44058
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44044
44059
|
node.type = type;
|
|
44045
44060
|
node.imgWidth = imgWidth;
|
|
44046
44061
|
node.imgHeight = imgHeight;
|
|
@@ -44055,13 +44070,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44055
44070
|
}, {
|
|
44056
44071
|
key: "updateSignCustomProp",
|
|
44057
44072
|
value: function updateSignCustomProp(node, customProperty) {
|
|
44058
|
-
var hoEditorFactory =
|
|
44073
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44059
44074
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
44060
44075
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
44061
|
-
var changeEvent = new
|
|
44076
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
44062
44077
|
changeEvent.oldEndPath = ePath;
|
|
44063
44078
|
changeEvent.afterChangePath = ePath;
|
|
44064
|
-
changeEvent.oldDrawLines = new
|
|
44079
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
44065
44080
|
node.customProperty = customProperty;
|
|
44066
44081
|
hoEditorFactory.docTree.change(changeEvent);
|
|
44067
44082
|
}
|
|
@@ -44072,7 +44087,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44072
44087
|
}, {
|
|
44073
44088
|
key: "getLogs",
|
|
44074
44089
|
value: function getLogs() {
|
|
44075
|
-
var hoEditorFactory =
|
|
44090
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44076
44091
|
return hoEditorFactory.undoService.getModifyHistory();
|
|
44077
44092
|
}
|
|
44078
44093
|
/**
|
|
@@ -44082,7 +44097,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44082
44097
|
key: "tabToNextElement",
|
|
44083
44098
|
value: function tabToNextElement() {
|
|
44084
44099
|
var _this7 = this;
|
|
44085
|
-
var hoEditorFactory =
|
|
44100
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44086
44101
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
44087
44102
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
44088
44103
|
var endPath = domRange.endPath;
|
|
@@ -44090,7 +44105,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44090
44105
|
var curNode = domRange.npEnd.node;
|
|
44091
44106
|
var nextNode = curNode.nextLeaf();
|
|
44092
44107
|
do {
|
|
44093
|
-
if (nextNode instanceof
|
|
44108
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && nextNode.parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && nextNode.MarkNodeType === _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtStart && nextNode.parentNode.canModifyContent || nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z) {
|
|
44094
44109
|
break;
|
|
44095
44110
|
}
|
|
44096
44111
|
if (nextNode) {
|
|
@@ -44112,16 +44127,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44112
44127
|
}
|
|
44113
44128
|
} while (1);
|
|
44114
44129
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
44115
|
-
var newRange = new
|
|
44116
|
-
var cgEvent = new
|
|
44130
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(_this7._hoEditorFactoryID, sPath, ePath);
|
|
44131
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
44117
44132
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
44118
44133
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
44119
44134
|
};
|
|
44120
44135
|
var toPath = '';
|
|
44121
|
-
if (nextNode instanceof
|
|
44136
|
+
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
44122
44137
|
toPath = nextNode.getNodePath();
|
|
44123
44138
|
setSelectRange(toPath, toPath);
|
|
44124
|
-
} else if (nextNode instanceof
|
|
44139
|
+
} else if (nextNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_55__/* .DownListNode */ .yF || nextNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_54__/* .DateTimeNode */ .Z) {
|
|
44125
44140
|
toPath = nextNode.getNodePath();
|
|
44126
44141
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(nextNode.previousLeaf());
|
|
44127
44142
|
setSelectRange(sPath, toPath);
|
|
@@ -44133,7 +44148,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44133
44148
|
}, {
|
|
44134
44149
|
key: "mergeCells",
|
|
44135
44150
|
value: function mergeCells(cell, r, c, rowSpan, colSpan) {
|
|
44136
|
-
var hoEditorFactory =
|
|
44151
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44137
44152
|
var _cell$table$canMergeC = cell.table.canMergeCell(r, c, rowSpan, colSpan),
|
|
44138
44153
|
_cell$table$canMergeC2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$canMergeC, 3),
|
|
44139
44154
|
ret = _cell$table$canMergeC2[0],
|
|
@@ -44141,7 +44156,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
44141
44156
|
aColSpan = _cell$table$canMergeC2[2];
|
|
44142
44157
|
if (ret) {
|
|
44143
44158
|
hoEditorFactory.undoService.begin();
|
|
44144
|
-
hoEditorFactory.undoService.add(new
|
|
44159
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableMergeCellUndoUnit__WEBPACK_IMPORTED_MODULE_66__/* .TableMergeCellUndoUnit */ .A(this._hoEditorFactoryID, cell.table, r, c, aRowSpan, aColSpan));
|
|
44145
44160
|
hoEditorFactory.undoService.commit();
|
|
44146
44161
|
}
|
|
44147
44162
|
}
|
|
@@ -69424,6 +69439,20 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
69424
69439
|
if (iend < this.text.length - 1) {
|
|
69425
69440
|
dline.fitLines();
|
|
69426
69441
|
dline = dline.paragraphNode.getNextDline(dline);
|
|
69442
|
+
if (dline.paragraphNode.parentNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_29__/* .TextInputFieldNode */ .re) {
|
|
69443
|
+
var index = dline.paragraphNode.drawlines.indexOf(dline);
|
|
69444
|
+
var prevLine = dline.paragraphNode.drawlines[index - 1];
|
|
69445
|
+
if (prevLine && prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__/* .DrawLine */ .a) {
|
|
69446
|
+
var _dline$paragraphNode$ = dline.paragraphNode.parentNode.getLeftWidth(),
|
|
69447
|
+
_dline$paragraphNode$2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_dline$paragraphNode$, 3),
|
|
69448
|
+
ileft = _dline$paragraphNode$2[0],
|
|
69449
|
+
paragraphWidth = _dline$paragraphNode$2[1],
|
|
69450
|
+
bAlignWithRect = _dline$paragraphNode$2[2];
|
|
69451
|
+
prevLine.x = dline.paragraphNode.combineParagraph.leftMarginPixes + ileft;
|
|
69452
|
+
prevLine.dWidth = paragraphWidth - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
|
|
69453
|
+
prevLine.updateLineStyle();
|
|
69454
|
+
}
|
|
69455
|
+
}
|
|
69427
69456
|
this.adjustRectAlignLine(dline);
|
|
69428
69457
|
}
|
|
69429
69458
|
istart = iend + 1;
|
|
@@ -178046,7 +178075,7 @@ var map = {
|
|
|
178046
178075
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
178047
178076
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
178048
178077
|
"./poperSelect/PoperMark.vue": 20734,
|
|
178049
|
-
"./poperSelect/PoperSelect.vue":
|
|
178078
|
+
"./poperSelect/PoperSelect.vue": 63970,
|
|
178050
178079
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
178051
178080
|
"./popers/Poper.vue": 57937,
|
|
178052
178081
|
"./popers/Title.vue": 85516,
|
|
@@ -215501,8 +215530,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
215501
215530
|
var es_number_constructor = __webpack_require__(9653);
|
|
215502
215531
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
215503
215532
|
var es_json_stringify = __webpack_require__(38862);
|
|
215504
|
-
;// 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=
|
|
215505
|
-
var
|
|
215533
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=beccc54c&
|
|
215534
|
+
var HoDocvue_type_template_id_beccc54c_render = function render() {
|
|
215506
215535
|
var _vm = this,
|
|
215507
215536
|
_c = _vm._self._c;
|
|
215508
215537
|
return _c('div', {
|
|
@@ -215584,7 +215613,7 @@ var HoDocvue_type_template_id_30cd6ca5_render = function render() {
|
|
|
215584
215613
|
"viewBox": "0 0 1024 1024",
|
|
215585
215614
|
"version": "1.1",
|
|
215586
215615
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
215587
|
-
"width": "
|
|
215616
|
+
"width": "14",
|
|
215588
215617
|
"height": "16"
|
|
215589
215618
|
},
|
|
215590
215619
|
on: {
|
|
@@ -215608,7 +215637,8 @@ var HoDocvue_type_template_id_30cd6ca5_render = function render() {
|
|
|
215608
215637
|
"poperType": _vm.poperType,
|
|
215609
215638
|
"poperSelectList": _vm.poperSelectList,
|
|
215610
215639
|
"poperPos": _vm.poperPos,
|
|
215611
|
-
"hoEditorId": _vm.hoEditorId
|
|
215640
|
+
"hoEditorId": _vm.hoEditorId,
|
|
215641
|
+
"selectMarkStyle": _vm.selectMarkStyle
|
|
215612
215642
|
},
|
|
215613
215643
|
on: {
|
|
215614
215644
|
"poperClose": _vm.poperClose
|
|
@@ -215685,7 +215715,7 @@ var HoDocvue_type_template_id_30cd6ca5_render = function render() {
|
|
|
215685
215715
|
}
|
|
215686
215716
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
215687
215717
|
};
|
|
215688
|
-
var
|
|
215718
|
+
var HoDocvue_type_template_id_beccc54c_staticRenderFns = [];
|
|
215689
215719
|
|
|
215690
215720
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
215691
215721
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217285,7 +217315,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
217285
217315
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
217286
217316
|
var plugins_util = __webpack_require__(62783);
|
|
217287
217317
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
217288
|
-
var PoperSelect = __webpack_require__(
|
|
217318
|
+
var PoperSelect = __webpack_require__(63970);
|
|
217289
217319
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
217290
217320
|
var PoperMark = __webpack_require__(20734);
|
|
217291
217321
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218690,7 +218720,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218690
218720
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218691
218721
|
var ParagraphNode = __webpack_require__(67945);
|
|
218692
218722
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218693
|
-
/* harmony default export */ var version = ('3.1.
|
|
218723
|
+
/* harmony default export */ var version = ('3.1.44');
|
|
218694
218724
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218695
218725
|
var PoperTipText = __webpack_require__(50987);
|
|
218696
218726
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219000,7 +219030,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219000
219030
|
// intersectionRatio <= 0 代表目标页不在文档可视区内
|
|
219001
219031
|
// isIntersecting = true 代表目标页进入可视区 false代表离开可视区
|
|
219002
219032
|
if (v.isIntersecting && v.intersectionRatio == 0) {
|
|
219003
|
-
console.warn('
|
|
219033
|
+
console.warn('进入可视区但是重合区域=0');
|
|
219004
219034
|
}
|
|
219005
219035
|
if (v.intersectionRatio <= 0 && !v.isIntersecting) {
|
|
219006
219036
|
inViewPages = inViewPages.filter(function (m) {
|
|
@@ -219040,9 +219070,9 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219040
219070
|
this.hoEditorProvider.autoSelectElementId = '';
|
|
219041
219071
|
this.isAutoPoper = false;
|
|
219042
219072
|
}
|
|
219043
|
-
|
|
219044
|
-
|
|
219045
|
-
|
|
219073
|
+
if (this.selectMarkStyle.display == 'block') {
|
|
219074
|
+
this.updateSelectMark();
|
|
219075
|
+
}
|
|
219046
219076
|
},
|
|
219047
219077
|
/**
|
|
219048
219078
|
* 鼠标click事件
|
|
@@ -219104,7 +219134,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219104
219134
|
type: 'TextInputFieldNode'
|
|
219105
219135
|
});
|
|
219106
219136
|
this.$nextTick(function () {
|
|
219107
|
-
|
|
219137
|
+
_this5.createSelectMark(node, hoEditorFactory.drawTree.paintStatus, pageIndex);
|
|
219108
219138
|
});
|
|
219109
219139
|
}
|
|
219110
219140
|
}
|
|
@@ -219294,7 +219324,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219294
219324
|
top: pos.y - pos.height + 'px',
|
|
219295
219325
|
height: pos.height + 'px',
|
|
219296
219326
|
dataid: parentNode.dataId,
|
|
219297
|
-
pageIndex: pageIndex
|
|
219327
|
+
pageIndex: pageIndex,
|
|
219328
|
+
open: false
|
|
219298
219329
|
};
|
|
219299
219330
|
}
|
|
219300
219331
|
}
|
|
@@ -219311,6 +219342,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219311
219342
|
this.poperSelectList = lists.filter(function (v) {
|
|
219312
219343
|
return v.value || v.text;
|
|
219313
219344
|
});
|
|
219345
|
+
this.selectMarkStyle.open = true;
|
|
219314
219346
|
this.poperType = 'selectPoper';
|
|
219315
219347
|
}
|
|
219316
219348
|
},
|
|
@@ -219474,6 +219506,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219474
219506
|
computedPoperPosition: function computedPoperPosition(node, pageIndex, returnValue) {
|
|
219475
219507
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
219476
219508
|
var nodePos = node.drawNodes[0];
|
|
219509
|
+
if (!nodePos) return;
|
|
219477
219510
|
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
|
|
219478
219511
|
var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
|
|
219479
219512
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
@@ -219579,10 +219612,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219579
219612
|
});
|
|
219580
219613
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
219581
219614
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
219582
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219615
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=beccc54c&prod&lang=less&
|
|
219583
219616
|
// extracted by mini-css-extract-plugin
|
|
219584
219617
|
|
|
219585
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219618
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=beccc54c&prod&lang=less&
|
|
219586
219619
|
|
|
219587
219620
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
219588
219621
|
|
|
@@ -219595,8 +219628,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219595
219628
|
|
|
219596
219629
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219597
219630
|
components_HoDocvue_type_script_lang_js_,
|
|
219598
|
-
|
|
219599
|
-
|
|
219631
|
+
HoDocvue_type_template_id_beccc54c_render,
|
|
219632
|
+
HoDocvue_type_template_id_beccc54c_staticRenderFns,
|
|
219600
219633
|
false,
|
|
219601
219634
|
null,
|
|
219602
219635
|
null,
|
|
@@ -231475,7 +231508,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231475
231508
|
if (anode instanceof ControlNode/* ControlNode */.w && anode.nodeType !== 10 && anode.nodeType !== 11 || anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
231476
231509
|
for (var m = 0, len = items.length - 1; m <= len; m++) {
|
|
231477
231510
|
var item = items[m];
|
|
231478
|
-
if (item.text !== '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId) && anode.text.
|
|
231511
|
+
if (item.text !== '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId) && anode.text.includes(item.text)) {
|
|
231479
231512
|
var range = _this4.search(anode, item.text);
|
|
231480
231513
|
if (range.length > 0) {
|
|
231481
231514
|
selectRangeArr = selectRangeArr.concat(range);
|
|
@@ -231488,6 +231521,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231488
231521
|
}
|
|
231489
231522
|
}
|
|
231490
231523
|
}
|
|
231524
|
+
if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
231525
|
+
iteratesNodes(anode.childNodes);
|
|
231526
|
+
}
|
|
231491
231527
|
}
|
|
231492
231528
|
};
|
|
231493
231529
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
@@ -247241,15 +247277,15 @@ var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247241
247277
|
)
|
|
247242
247278
|
|
|
247243
247279
|
/* harmony default export */ var ToolBar = (ToolBar_component.exports);
|
|
247244
|
-
;// 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/toolbar/TableFeatures.vue?vue&type=template&id=
|
|
247245
|
-
var
|
|
247280
|
+
;// 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/toolbar/TableFeatures.vue?vue&type=template&id=f3124b16&
|
|
247281
|
+
var TableFeaturesvue_type_template_id_f3124b16_render = function render() {
|
|
247246
247282
|
var _vm = this,
|
|
247247
247283
|
_c = _vm._self._c;
|
|
247248
247284
|
return _c('p', {
|
|
247249
247285
|
class: _vm.className
|
|
247250
247286
|
}, [_c('ul', {
|
|
247251
247287
|
staticClass: "mouse-right-menu"
|
|
247252
|
-
}, [_vm.table.insertRowAbove && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247288
|
+
}, [_vm.paintStatus == 0 || _vm.table.insertRowAbove && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247253
247289
|
directives: [{
|
|
247254
247290
|
name: "debounce",
|
|
247255
247291
|
rawName: "v-debounce:1000.click",
|
|
@@ -247298,7 +247334,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247298
247334
|
},
|
|
247299
247335
|
expression: "topRows"
|
|
247300
247336
|
}
|
|
247301
|
-
}), _c('span', [_vm._v(" 行")])], 1)]) : _vm._e(), _vm.table.insertRowBelow && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247337
|
+
}), _c('span', [_vm._v(" 行")])], 1)]) : _vm._e(), _vm.paintStatus == 0 || _vm.table.insertRowBelow && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247302
247338
|
directives: [{
|
|
247303
247339
|
name: "debounce",
|
|
247304
247340
|
rawName: "v-debounce:1000.click",
|
|
@@ -247342,7 +247378,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247342
247378
|
},
|
|
247343
247379
|
expression: "bottomRows"
|
|
247344
247380
|
}
|
|
247345
|
-
}), _c('span', [_vm._v(" 行")])], 1)]) : _vm._e(), _vm.table.insertColLeft && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247381
|
+
}), _c('span', [_vm._v(" 行")])], 1)]) : _vm._e(), _vm.paintStatus == 0 || _vm.table.insertColLeft && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247346
247382
|
directives: [{
|
|
247347
247383
|
name: "debounce",
|
|
247348
247384
|
rawName: "v-debounce:1000.click",
|
|
@@ -247386,7 +247422,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247386
247422
|
},
|
|
247387
247423
|
expression: "leftRows"
|
|
247388
247424
|
}
|
|
247389
|
-
}), _c('span', [_vm._v(" 列")])], 1)]) : _vm._e(), _vm.table.insertColRight && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247425
|
+
}), _c('span', [_vm._v(" 列")])], 1)]) : _vm._e(), _vm.paintStatus == 0 || _vm.table.insertColRight && _vm.tableProperty.canAddRow ? _c('li', {
|
|
247390
247426
|
directives: [{
|
|
247391
247427
|
name: "debounce",
|
|
247392
247428
|
rawName: "v-debounce:1000.click",
|
|
@@ -247430,7 +247466,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247430
247466
|
},
|
|
247431
247467
|
expression: "rightRows"
|
|
247432
247468
|
}
|
|
247433
|
-
}), _c('span', [_vm._v(" 列")])], 1)]) : _vm._e(), _vm.table.deleteRows && _vm.tableProperty.canDeleteRow ? _c('li', {
|
|
247469
|
+
}), _c('span', [_vm._v(" 列")])], 1)]) : _vm._e(), _vm.paintStatus == 0 || _vm.table.deleteRows && _vm.tableProperty.canDeleteRow ? _c('li', {
|
|
247434
247470
|
directives: [{
|
|
247435
247471
|
name: "debounce",
|
|
247436
247472
|
rawName: "v-debounce:1000.click",
|
|
@@ -247459,7 +247495,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247459
247495
|
attrs: {
|
|
247460
247496
|
"d": "M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"
|
|
247461
247497
|
}
|
|
247462
|
-
})]), _c('span', [_vm._v("删除行")])]) : _vm._e(), _vm.table.deleteCols && _vm.tableProperty.canDeleteRow ? _c('li', {
|
|
247498
|
+
})]), _c('span', [_vm._v("删除行")])]) : _vm._e(), _vm.paintStatus == 0 || _vm.table.deleteCols && _vm.tableProperty.canDeleteRow ? _c('li', {
|
|
247463
247499
|
directives: [{
|
|
247464
247500
|
name: "debounce",
|
|
247465
247501
|
rawName: "v-debounce:1000.click",
|
|
@@ -247609,7 +247645,7 @@ var TableFeaturesvue_type_template_id_002282dc_render = function render() {
|
|
|
247609
247645
|
}
|
|
247610
247646
|
})])]), _c('span', [_vm._v("取消合并单元格")])]) : _vm._e()])]);
|
|
247611
247647
|
};
|
|
247612
|
-
var
|
|
247648
|
+
var TableFeaturesvue_type_template_id_f3124b16_staticRenderFns = [];
|
|
247613
247649
|
|
|
247614
247650
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=script&lang=js&
|
|
247615
247651
|
/* harmony default export */ var TableFeaturesvue_type_script_lang_js_ = ({
|
|
@@ -247626,6 +247662,10 @@ var TableFeaturesvue_type_template_id_002282dc_staticRenderFns = [];
|
|
|
247626
247662
|
},
|
|
247627
247663
|
tableProperty: {
|
|
247628
247664
|
required: true
|
|
247665
|
+
},
|
|
247666
|
+
paintStatus: {
|
|
247667
|
+
required: true,
|
|
247668
|
+
default: 1
|
|
247629
247669
|
}
|
|
247630
247670
|
},
|
|
247631
247671
|
data: function data() {
|
|
@@ -247722,10 +247762,10 @@ var TableFeaturesvue_type_template_id_002282dc_staticRenderFns = [];
|
|
|
247722
247762
|
});
|
|
247723
247763
|
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=script&lang=js&
|
|
247724
247764
|
/* harmony default export */ var toolbar_TableFeaturesvue_type_script_lang_js_ = (TableFeaturesvue_type_script_lang_js_);
|
|
247725
|
-
;// 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/toolbar/TableFeatures.vue?vue&type=style&index=0&id=
|
|
247765
|
+
;// 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/toolbar/TableFeatures.vue?vue&type=style&index=0&id=f3124b16&prod&lang=less&
|
|
247726
247766
|
// extracted by mini-css-extract-plugin
|
|
247727
247767
|
|
|
247728
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=
|
|
247768
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue?vue&type=style&index=0&id=f3124b16&prod&lang=less&
|
|
247729
247769
|
|
|
247730
247770
|
;// CONCATENATED MODULE: ./src/components/toolbar/TableFeatures.vue
|
|
247731
247771
|
|
|
@@ -247738,8 +247778,8 @@ var TableFeaturesvue_type_template_id_002282dc_staticRenderFns = [];
|
|
|
247738
247778
|
|
|
247739
247779
|
var TableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
247740
247780
|
toolbar_TableFeaturesvue_type_script_lang_js_,
|
|
247741
|
-
|
|
247742
|
-
|
|
247781
|
+
TableFeaturesvue_type_template_id_f3124b16_render,
|
|
247782
|
+
TableFeaturesvue_type_template_id_f3124b16_staticRenderFns,
|
|
247743
247783
|
false,
|
|
247744
247784
|
null,
|
|
247745
247785
|
null,
|
|
@@ -248440,6 +248480,7 @@ var popper = __webpack_require__(95551);
|
|
|
248440
248480
|
vueController: this.vueController,
|
|
248441
248481
|
className: 'insert-rows-columns-right',
|
|
248442
248482
|
table: this.defaultTable,
|
|
248483
|
+
paintStatus: this.hoEditorProvider.rightNode.paintStatus,
|
|
248443
248484
|
tableProperty: this.hoEditorProvider.rightNode.tableProperty
|
|
248444
248485
|
})
|
|
248445
248486
|
})]), ((_this$hoEditorProvide34 = this.hoEditorProvider.rightNode) === null || _this$hoEditorProvide34 === void 0 ? void 0 : _this$hoEditorProvide34.canShowComment) && h("ul", {
|