hoeditor-web 3.1.47 → 3.1.49

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.
@@ -9491,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
9491
9491
 
9492
9492
  /***/ }),
9493
9493
 
9494
- /***/ 1163:
9494
+ /***/ 86295:
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=5e89f073&
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=04a4047c&
9515
9515
 
9516
9516
 
9517
9517
 
@@ -9968,7 +9968,7 @@ var render = function render() {
9968
9968
  };
9969
9969
  var staticRenderFns = [];
9970
9970
 
9971
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5e89f073&
9971
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=04a4047c&
9972
9972
 
9973
9973
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9974
9974
  var toConsumableArray = __webpack_require__(61748);
@@ -12235,8 +12235,8 @@ var columns = [{
12235
12235
  }
12236
12236
  }, 100);
12237
12237
  }
12238
- if (this.dateTimeStyle.replace(/yyyy|YYYY|MM|DD|dd/g, '').length !== this.dateTimeStyle.length) {
12239
- this.$nextTick(function () {
12238
+ this.$nextTick(function () {
12239
+ if (_this2.dateTimeStyle.replace(/yyyy|YYYY|MM|DD|dd/g, '').length !== _this2.dateTimeStyle.length) {
12240
12240
  if (_this2.$refs.datePicker) {
12241
12241
  _this2.calendarInstance = _this2.$refs.datePicker.$refs.picker.$refs.calendarInstance.$el.querySelector('.ant-calendar-input');
12242
12242
  if (_this2.calendarInstance) {
@@ -12244,8 +12244,16 @@ var columns = [{
12244
12244
  _this2.calendarInstance.addEventListener('keydown', _this2.calendarInstanceKeydown);
12245
12245
  }
12246
12246
  }
12247
- });
12248
- }
12247
+ } else {
12248
+ if (_this2.$refs.timePicker) {
12249
+ _this2.calendarTimeInstance = _this2.$refs.timePicker.$refs.timePicker.$refs.panel.$el.querySelector('.ant-time-picker-panel-input');
12250
+ if (_this2.calendarTimeInstance) {
12251
+ _this2.calendarTimeInstance.addEventListener('input', _this2.calendarTimeInstanceChange);
12252
+ _this2.calendarTimeInstance.addEventListener('keydown', _this2.calendarTimeInstanceKeydown);
12253
+ }
12254
+ }
12255
+ }
12256
+ });
12249
12257
  },
12250
12258
  methods: {
12251
12259
  timeFocus: function timeFocus(event) {
@@ -12254,6 +12262,7 @@ var columns = [{
12254
12262
  this.calendarTimeInstance.removeEventListener('keydown', this.calendarTimeInstance);
12255
12263
  this.calendarTimeInstance = null;
12256
12264
  }
12265
+ this.timeBindEvent();
12257
12266
  },
12258
12267
  timeBlur: function timeBlur(event) {
12259
12268
  if (this.calendarTimeInstance == null) {
@@ -12265,7 +12274,7 @@ var columns = [{
12265
12274
  if (this.dateTimeStyle.replace(/hh|HH|mm|ss/g, '').length !== this.dateTimeStyle.length) {
12266
12275
  this.$nextTick(function () {
12267
12276
  if (_this3.$refs.timePicker && _this3.$refs.timePicker.$refs.timePicker && _this3.$refs.timePicker.$refs.timePicker.$refs.panel) {
12268
- _this3.calendarTimeInstance = _this3.$refs.timePicker.$refs.timePicker.$refs.panel.$el.querySelector('.ant-time-picker-panel-input ');
12277
+ _this3.calendarTimeInstance = _this3.$refs.timePicker.$refs.timePicker.$refs.panel.$el.querySelector('.ant-time-picker-panel-input');
12269
12278
  if (_this3.calendarTimeInstance) {
12270
12279
  _this3.calendarTimeInstance.addEventListener('input', _this3.calendarTimeInstanceChange);
12271
12280
  _this3.calendarTimeInstance.addEventListener('keydown', _this3.calendarTimeInstanceKeydown);
@@ -12875,10 +12884,10 @@ var columns = [{
12875
12884
  });
12876
12885
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
12877
12886
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
12878
- ;// 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=5e89f073&prod&lang=less&
12887
+ ;// 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=04a4047c&prod&lang=less&
12879
12888
  // extracted by mini-css-extract-plugin
12880
12889
 
12881
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5e89f073&prod&lang=less&
12890
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=04a4047c&prod&lang=less&
12882
12891
 
12883
12892
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
12884
12893
  var componentNormalizer = __webpack_require__(70713);
@@ -49258,7 +49267,7 @@ var CellProperty = /*#__PURE__*/function () {
49258
49267
  /*
49259
49268
  * @Author: your name
49260
49269
  * @Date: 2021-01-20 10:18:55
49261
- * @LastEditTime: 2023-07-18 16:01:49
49270
+ * @LastEditTime: 2023-12-14 14:36:05
49262
49271
  * @LastEditors: liyanan 2441631434@qq.com
49263
49272
  * @Description: In User Settings Edit
49264
49273
  * @FilePath: \hoeditor-web\src\editor\dom\domNode\Comment.ts
@@ -49443,20 +49452,10 @@ var Comment = /*#__PURE__*/function () {
49443
49452
  key: "commentTextWarp",
49444
49453
  value: function commentTextWarp(commentWidth, commentStr) {
49445
49454
  var comment = '';
49446
- // const getCommentText = (textStr: string): string => {
49447
- // let returnStr = textStr;
49448
- // do {
49449
- // returnStr = returnStr.replace("\n", "");
49450
- // } while (returnStr.includes("\n"))
49451
- // return returnStr;
49452
- // }
49453
- // //commentStr = commentStr.replace("\n", "");
49454
- // commentStr = getCommentText(commentStr);
49455
49455
  var wordWidth = 0;
49456
49456
  var arr = [];
49457
49457
  var lineArr = commentStr.split('\n');
49458
49458
  for (var i = 0; i < lineArr.length; i++) {
49459
- //const commentArr = commentStr.split("");
49460
49459
  var commentArr = lineArr[i].split('');
49461
49460
  commentArr.forEach(function (v) {
49462
49461
  comment += v;
@@ -49495,12 +49494,7 @@ var Comment = /*#__PURE__*/function () {
49495
49494
  }], [{
49496
49495
  key: "whiteList",
49497
49496
  value: function whiteList() {
49498
- return ['id', 'text', 'date', 'lineHeight',
49499
- //"endPath",
49500
- 'userID', 'userName'
49501
- //"endMarkNode"
49502
- // 'customProperty'
49503
- ];
49497
+ return ['id', 'text', 'date', 'lineHeight', 'userID', 'userName'];
49504
49498
  }
49505
49499
  }]);
49506
49500
  return Comment;
@@ -58222,38 +58216,33 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
58222
58216
  /* harmony export */ C: function() { return /* binding */ ParagraphNode; }
58223
58217
  /* harmony export */ });
58224
58218
  /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27222);
58225
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8495);
58226
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70280);
58227
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66298);
58228
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75808);
58229
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11651);
58230
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19593);
58231
- /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78255);
58232
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
58233
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
58234
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54747);
58235
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
58236
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(47941);
58237
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_10__);
58238
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(39714);
58239
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_11__);
58240
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(40561);
58241
- /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_12__);
58242
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(57658);
58243
- /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_13__);
58244
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9653);
58245
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__);
58246
- /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
58247
- /* harmony import */ var _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(53474);
58248
- /* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67800);
58249
- /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(96635);
58250
- /* harmony import */ var _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74298);
58251
- /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(5010);
58252
- /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(90161);
58253
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
58254
- /* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(68598);
58255
-
58256
-
58219
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
58220
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66298);
58221
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75808);
58222
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11651);
58223
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19593);
58224
+ /* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
58225
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
58226
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
58227
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54747);
58228
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
58229
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40561);
58230
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__);
58231
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57658);
58232
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__);
58233
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47941);
58234
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__);
58235
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
58236
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
58237
+ /* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62358);
58238
+ /* harmony import */ var _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(53474);
58239
+ /* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(67800);
58240
+ /* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96635);
58241
+ /* harmony import */ var _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(74298);
58242
+ /* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(5010);
58243
+ /* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(90161);
58244
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74089);
58245
+ /* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(68598);
58257
58246
 
58258
58247
 
58259
58248
 
@@ -58277,34 +58266,34 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
58277
58266
 
58278
58267
 
58279
58268
  var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58280
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ParagraphNode, _BaseNode);
58281
- var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(ParagraphNode);
58269
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(ParagraphNode, _BaseNode);
58270
+ var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ParagraphNode);
58282
58271
  //强制换页眉(不新起一页换页眉)
58283
58272
  function ParagraphNode(hoEditorFactoryID, rootNodes, parentNode, paraNo, customProperty) {
58284
58273
  var _this;
58285
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParagraphNode);
58286
- _this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq.ntParagraph);
58287
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_paraNo", void 0);
58274
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ParagraphNode);
58275
+ _this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq.ntParagraph);
58276
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_paraNo", void 0);
58288
58277
  //指向的段落样式
58289
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_dTop", void 0);
58290
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_dHeight", void 0);
58291
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_combineParagraph", void 0);
58292
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_drawLines", void 0);
58293
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_pagePaintStart", void 0);
58294
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_drawRoots", void 0);
58295
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_printAsSinglePage", void 0);
58296
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_docId", void 0);
58278
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_dTop", void 0);
58279
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_dHeight", void 0);
58280
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_combineParagraph", void 0);
58281
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_drawLines", void 0);
58282
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_pagePaintStart", void 0);
58283
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_drawRoots", void 0);
58284
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_printAsSinglePage", void 0);
58285
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_docId", void 0);
58297
58286
  //病历id
58298
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_styleIndex", void 0);
58287
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_styleIndex", void 0);
58299
58288
  //文本样式
58300
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_customProperty", void 0);
58289
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_customProperty", void 0);
58301
58290
  //自定义属性
58302
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_this), "_forceChangeHeader", void 0);
58291
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_forceChangeHeader", void 0);
58303
58292
  _this._parentNode = parentNode;
58304
58293
  _this._drawLines = new Array();
58305
58294
  _this._drawNodes = _this._drawLines;
58306
58295
  _this._paraNo = paraNo;
58307
- _this._styleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(_this.hoEditorFactoryID).docTree.curStyleIndex;
58296
+ _this._styleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(_this.hoEditorFactoryID).docTree.curStyleIndex;
58308
58297
  _this._dTop = 0;
58309
58298
  _this._dHeight = 0;
58310
58299
  _this._pagePaintStart = null;
@@ -58318,25 +58307,28 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58318
58307
  // this.node2DrawNode();
58319
58308
  return _this;
58320
58309
  }
58321
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ParagraphNode, [{
58310
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(ParagraphNode, [{
58322
58311
  key: "setCustomProperty",
58323
58312
  value: function setCustomProperty(customProperty, printAsSinglePage, forceChangeHeader) {
58324
- var assignvalue = function assignvalue(target, source) {
58325
- Object.keys(source).forEach(function (value) {
58326
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == "object") {
58327
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
58328
- assignvalue(target[value], source[value]);
58329
- } else {
58330
- if (source[value] !== "" && source[value] !== null) {
58331
- assignvalue(target[value], eval("(" + source[value] + ")"));
58332
- }
58333
- }
58334
- } else {
58335
- target[value] = source[value];
58336
- }
58337
- });
58338
- };
58339
- assignvalue(this._customProperty, customProperty);
58313
+ // const assignvalue = (target: any, source: any) => {
58314
+ // Object.keys(source).forEach((value) => {
58315
+ // if (typeof target[value] == "object") {
58316
+ // if (Object.prototype.toString.call(source[value]) === "[object Object]") {
58317
+ // assignvalue(target[value], source[value]);
58318
+ // } else {
58319
+ // if (source[value] !== "" && source[value] !== null) {
58320
+ // assignvalue(target[value], eval("(" + source[value] + ")"));
58321
+ // }
58322
+ // }
58323
+ // } else {
58324
+ // target[value] = source[value];
58325
+ // }
58326
+ // });
58327
+ // };
58328
+ // assignvalue(this._customProperty, customProperty);
58329
+ if (customProperty) {
58330
+ this._customProperty = customProperty;
58331
+ }
58340
58332
  if (printAsSinglePage == true) {
58341
58333
  this._printAsSinglePage = printAsSinglePage;
58342
58334
  }
@@ -58400,7 +58392,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58400
58392
  key: "drootNodes",
58401
58393
  get: function get() {
58402
58394
  if (!this._drawRoots) {
58403
- var _HOEditorFactorys$ins = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58395
+ var _HOEditorFactorys$ins = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58404
58396
  _HOEditorFactorys$ins2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins, 2),
58405
58397
  dCell = _HOEditorFactorys$ins2[0],
58406
58398
  dRoots = _HOEditorFactorys$ins2[1];
@@ -58411,7 +58403,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58411
58403
  }, {
58412
58404
  key: "refreshDrootNodes",
58413
58405
  value: function refreshDrootNodes() {
58414
- var _HOEditorFactorys$ins3 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58406
+ var _HOEditorFactorys$ins3 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58415
58407
  _HOEditorFactorys$ins4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins3, 2),
58416
58408
  dCell = _HOEditorFactorys$ins4[0],
58417
58409
  dRoots = _HOEditorFactorys$ins4[1];
@@ -58421,7 +58413,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58421
58413
  key: "getParagraphLeftWidth",
58422
58414
  value: function getParagraphLeftWidth() {
58423
58415
  //如果父文档节点派生于rectNode(用于表格基类),则取
58424
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
58416
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
58425
58417
  var pNode = this._parentNode;
58426
58418
  var aLeft;
58427
58419
  var aWidth;
@@ -58433,7 +58425,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58433
58425
  aLeft = _pRectNode$getLeftWid2[0];
58434
58426
  aWidth = _pRectNode$getLeftWid2[1];
58435
58427
  bRectAlign = _pRectNode$getLeftWid2[2];
58436
- if (pRectNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_23__/* .CellNode */ .D) {
58428
+ if (pRectNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D) {
58437
58429
  aLeft = hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[2] * 10, true);
58438
58430
  aWidth = aWidth - aLeft - hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[3] * 10, true);
58439
58431
  bRectAlign = true;
@@ -58454,7 +58446,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58454
58446
  value: function deleteLine(index) {
58455
58447
  var dline = this._drawLines[index];
58456
58448
  if (dline) {
58457
- var _HOEditorFactorys$ins5 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58449
+ var _HOEditorFactorys$ins5 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
58458
58450
  _HOEditorFactorys$ins6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins5, 2),
58459
58451
  dCell = _HOEditorFactorys$ins6[0],
58460
58452
  dRoots = _HOEditorFactorys$ins6[1];
@@ -58478,9 +58470,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58478
58470
  // para = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.paragraphs[0];
58479
58471
  // }
58480
58472
  while (pNode) {
58481
- if (pNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .z) {
58473
+ if (pNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_15__/* .RectNode */ .z) {
58482
58474
  return pNode;
58483
- } else if (pNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_21__/* .TextInputFieldNode */ .re && pNode.alignWithBlocked) {
58475
+ } else if (pNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && pNode.alignWithBlocked) {
58484
58476
  return pNode;
58485
58477
  } else {
58486
58478
  pNode = pNode.parentNode;
@@ -58491,12 +58483,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58491
58483
  }, {
58492
58484
  key: "updateCombineParagraph",
58493
58485
  value: function updateCombineParagraph() {
58494
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
58486
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
58495
58487
  var para = hoEditorFactory.docTree.paragraphs[this._paraNo];
58496
58488
  if (!para) {
58497
58489
  para = hoEditorFactory.docTree.paragraphs[0];
58498
58490
  }
58499
- return _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .Paragraph */ .nv.para2CombinePara(this._hoEditorFactoryID, this, para, hoEditorFactory.docTree.combineParagraph);
58491
+ return _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Paragraph */ .nv.para2CombinePara(this._hoEditorFactoryID, this, para, hoEditorFactory.docTree.combineParagraph);
58500
58492
  }
58501
58493
  /**
58502
58494
  * @author xyl
@@ -58533,9 +58525,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58533
58525
  var prevLine = this._drawLines[index - 1];
58534
58526
  prevLine.x = this.combineParagraph.leftMarginPixes + ileft;
58535
58527
  prevLine.dWidth = paragraphWidth - this.combineParagraph.leftMarginPixes - this.combineParagraph.rightMarginPixes;
58536
- if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_18__/* .DrawLine */ .a) prevLine.updateLineStyle();
58528
+ if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a) prevLine.updateLineStyle();
58537
58529
  }
58538
- var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_18__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
58530
+ var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
58539
58531
  aline.dTop = itop;
58540
58532
  aline.dLeft = ileft;
58541
58533
  aline.x = this.combineParagraph.leftMarginPixes;
@@ -58581,7 +58573,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58581
58573
  for (var i = this.drawlines.length - 1; i >= 0; i--) {
58582
58574
  var dline = this.drawlines[i];
58583
58575
  if (dline) {
58584
- if (dline instanceof _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_19__/* .DrawTable */ .t) {
58576
+ if (dline instanceof _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_17__/* .DrawTable */ .t) {
58585
58577
  dline.clear();
58586
58578
  } else {
58587
58579
  if (dline.parent) {
@@ -58598,12 +58590,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58598
58590
  key: "node2DrawNode",
58599
58591
  value: function node2DrawNode() {
58600
58592
  this.clear();
58601
- var itop = this.combineParagraph.topMarginPixes + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
58593
+ var itop = this.combineParagraph.topMarginPixes + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
58602
58594
  var leftTopInfos = this.getParagraphLeftWidth();
58603
58595
  var ileft = leftTopInfos[0];
58604
58596
  var paragraphWidth = leftTopInfos[1];
58605
58597
  // console.log(this._combineParagraph);
58606
- var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_18__/* .DrawLine */ .a(this._rootPath, this, 0, paragraphWidth);
58598
+ var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a(this._rootPath, this, 0, paragraphWidth);
58607
58599
  this._dHeight = aline.dHeight;
58608
58600
  this._drawLines.push(aline);
58609
58601
  this._dTop = itop;
@@ -58637,7 +58629,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58637
58629
  // this.drootNodes.push(this.drawlines[0]);
58638
58630
  // }
58639
58631
  if (dline) {
58640
- var dTop = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
58632
+ var dTop = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
58641
58633
  this.placeDNodeAfterDTop(dTop, dline);
58642
58634
  // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.insertDline(droots,index+1,this._drawLines[0]);
58643
58635
  }
@@ -58654,7 +58646,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58654
58646
  var droots = this.drootNodes;
58655
58647
  var dline = prevDline;
58656
58648
  while (index === -1) {
58657
- var _TableNode$isNodeInTa = _TableNode__WEBPACK_IMPORTED_MODULE_20__/* .TableNode */ .Fh.isNodeInTable(dline.paragraphNode),
58649
+ var _TableNode$isNodeInTa = _TableNode__WEBPACK_IMPORTED_MODULE_18__/* .TableNode */ .Fh.isNodeInTable(dline.paragraphNode),
58658
58650
  _TableNode$isNodeInTa2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_TableNode$isNodeInTa, 3),
58659
58651
  bret = _TableNode$isNodeInTa2[0],
58660
58652
  aTable = _TableNode$isNodeInTa2[1],
@@ -58734,7 +58726,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58734
58726
  }, {
58735
58727
  key: "isInCell",
58736
58728
  value: function isInCell() {
58737
- return this.parentNode !== null && this.parentNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_17__/* .RectNode */ .z;
58729
+ return this.parentNode !== null && this.parentNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_15__/* .RectNode */ .z;
58738
58730
  }
58739
58731
  }, {
58740
58732
  key: "drawlines",
@@ -58744,7 +58736,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58744
58736
  }, {
58745
58737
  key: "adjustNextDline",
58746
58738
  value: function adjustNextDline(dline, index) {
58747
- var droots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(dline.rootPath);
58739
+ var droots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(dline.rootPath);
58748
58740
  var dNextLine = this.getNextDline(dline);
58749
58741
  for (var i = index; i < dline.drawItems.length; i++) {
58750
58742
  dNextLine.addChildAt(i - index, dline.drawItems[i]);
@@ -58754,7 +58746,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58754
58746
  }, {
58755
58747
  key: "getParagraphLastNodePath",
58756
58748
  value: function getParagraphLastNodePath() {
58757
- return _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this);
58749
+ return _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this);
58758
58750
  // return this.getParagraphLastNode().getNodePath()
58759
58751
  // const pNode = this._parentNode;
58760
58752
  // if (pNode) {
@@ -58794,7 +58786,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58794
58786
  value: function updateDrawLineStyle() {
58795
58787
  for (var i = 0; i < this._drawLines.length; i++) {
58796
58788
  var dline = this._drawLines[i];
58797
- if (dline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_18__/* .DrawLine */ .a) dline.updateLineStyle();
58789
+ if (dline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a) dline.updateLineStyle();
58798
58790
  }
58799
58791
  // if (dline instanceof DrawLine) dline.updateLineStyle();
58800
58792
  }
@@ -58823,12 +58815,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58823
58815
  key: "node2Json",
58824
58816
  value: function node2Json(range, iscopy) {
58825
58817
  if (iscopy) {
58826
- var combinePara = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
58818
+ var combinePara = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
58827
58819
  combinePara.copyStyle(this.combineParagraph);
58828
58820
  var paragraphStyle = {
58829
58821
  height: this.dHeight,
58830
58822
  top: this.dTop,
58831
- align: _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .Align */ .xM[combinePara.align],
58823
+ align: _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[combinePara.align],
58832
58824
  charSpace: combinePara.charSpace,
58833
58825
  lineSpace: combinePara.lineSpace,
58834
58826
  leftMargin: combinePara.leftMarginMm,
@@ -58837,7 +58829,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58837
58829
  bottomMargin: combinePara.bottomMarginMm
58838
58830
  };
58839
58831
  var paga = {
58840
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58832
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
58841
58833
  style: paragraphStyle,
58842
58834
  styleIndex: this._paraNo,
58843
58835
  textStyleNo: this.styleIndex,
@@ -58850,7 +58842,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58850
58842
  }
58851
58843
  var paraNode = {
58852
58844
  //"ParagraphNode": {
58853
- nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Jq[this.nodeType],
58845
+ nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
58854
58846
  styleIndex: this._paraNo,
58855
58847
  textStyleNo: this.styleIndex
58856
58848
  //printAsSinglePage: this.printAsSinglePage,
@@ -58915,14 +58907,14 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58915
58907
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
58916
58908
  var paraNo = Number(json.styleIndex);
58917
58909
  if (json["style"]) {
58918
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
58910
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
58919
58911
  var style = json.style;
58920
- var paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .Paragraph */ .nv(hoEditorFactoryID);
58912
+ var paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Paragraph */ .nv(hoEditorFactoryID);
58921
58913
  paragraph.leftMargin = style._leftMarginMm ? Number(style._leftMarginMm) : Number(style.leftMargin);
58922
58914
  paragraph.rightMargin = style._rightMarginMm ? Number(style._rightMarginMm) : Number(style.rightMargin);
58923
58915
  paragraph.topMargin = style._topMarginMm ? Number(style._topMarginMm) : Number(style.topMargin);
58924
58916
  paragraph.bottomMargin = style._bottomMarginMm ? Number(style._bottomMarginMm) : Number(style.bottomMargin);
58925
- paragraph.align = style._align !== undefined ? parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .Align */ .xM[style._align]) : parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_16__/* .Align */ .xM[style.align]);
58917
+ paragraph.align = style._align !== undefined ? parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[style._align]) : parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[style.align]);
58926
58918
  paragraph.charSpace = style._charSpace ? Number(style._charSpace) : Number(style.charSpace);
58927
58919
  paragraph.lineSpace = style._lineSpace ? Number(style._lineSpace) : Number(style.lineSpace);
58928
58920
  paraNo = hoEditorFactory.docTree.styleCompare(paragraph);
@@ -58937,7 +58929,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
58937
58929
  }
58938
58930
  }]);
58939
58931
  return ParagraphNode;
58940
- }(_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .BaseNode */ .Hd);
58932
+ }(_BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .BaseNode */ .Hd);
58941
58933
 
58942
58934
  /***/ }),
58943
58935
 
@@ -62840,7 +62832,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62840
62832
  for (var r = istartRow; r <= iEndRow; r++) {
62841
62833
  for (var c = istartCol; c <= iEndCol; c++) {
62842
62834
  if (bCalc) {
62843
- if (!table.rows[r]) return "?";
62835
+ if (!table.rows[r]) return " ";
62844
62836
  var cell = table.rows[r][c];
62845
62837
  if (!cell) continue;
62846
62838
  var _this$getCellNumber = this.getCellNumber(table, r, c),
@@ -62907,7 +62899,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62907
62899
  }
62908
62900
  }
62909
62901
  if (totalOk) return '' + total;
62910
- return '?';
62902
+ return total;
62911
62903
  }
62912
62904
  }, {
62913
62905
  key: "getCellNumber",
@@ -62935,7 +62927,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62935
62927
  var aNode = cell.childNodes[i];
62936
62928
  if (aNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_37__/* .RadioAndCheckBoxNode */ .Yh) {
62937
62929
  bret = true;
62938
- if (aNode.isSelected && aNode.numericValue !== "" && Number(aNode.numericValue) >= 0) {
62930
+ if (aNode.isSelected && aNode.numericValue !== "") {
62939
62931
  ret = aNode.numericValue;
62940
62932
  } else {
62941
62933
  ret = "";
@@ -62952,7 +62944,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
62952
62944
  var bNode = cell.childNodes[j];
62953
62945
  if (bNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_37__/* .RadioAndCheckBoxNode */ .Yh) {
62954
62946
  bret = true;
62955
- if (bNode.isSelected && bNode.numericValue !== "" && Number(bNode.numericValue) >= 0) {
62947
+ if (bNode.isSelected && bNode.numericValue !== "") {
62956
62948
  ret = bNode.numericValue;
62957
62949
  } else {
62958
62950
  ret = "";
@@ -178119,7 +178111,7 @@ var map = {
178119
178111
  "./pageInfoes/PageInfoes.vue": 99749,
178120
178112
  "./paragraph/ParagraphDialog.vue": 58874,
178121
178113
  "./poperSelect/PoperMark.vue": 20734,
178122
- "./poperSelect/PoperSelect.vue": 1163,
178114
+ "./poperSelect/PoperSelect.vue": 86295,
178123
178115
  "./poperTipText/PoperTipText.vue": 50987,
178124
178116
  "./popers/Poper.vue": 57937,
178125
178117
  "./popers/Title.vue": 85516,
@@ -217359,7 +217351,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
217359
217351
  // EXTERNAL MODULE: ./src/plugins/util.ts
217360
217352
  var plugins_util = __webpack_require__(62783);
217361
217353
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
217362
- var PoperSelect = __webpack_require__(1163);
217354
+ var PoperSelect = __webpack_require__(86295);
217363
217355
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
217364
217356
  var PoperMark = __webpack_require__(20734);
217365
217357
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -218764,7 +218756,7 @@ var TextNode = __webpack_require__(27198);
218764
218756
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
218765
218757
  var ParagraphNode = __webpack_require__(67945);
218766
218758
  ;// CONCATENATED MODULE: ./src/components/version.ts
218767
- /* harmony default export */ var version = ('3.1.47');
218759
+ /* harmony default export */ var version = ('3.1.49');
218768
218760
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
218769
218761
  var PoperTipText = __webpack_require__(50987);
218770
218762
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -226086,6 +226078,12 @@ var hoCreateHistory = {
226086
226078
 
226087
226079
 
226088
226080
 
226081
+
226082
+
226083
+
226084
+
226085
+
226086
+
226089
226087
 
226090
226088
 
226091
226089
 
@@ -228946,7 +228944,7 @@ var VueController = /*#__PURE__*/function () {
228946
228944
  key: "insertHtmlText",
228947
228945
  value: function () {
228948
228946
  var _insertHtmlText = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(strHtml, value, keyValue, listItems, clear) {
228949
- var hoEditorFactory, result, nodes, i, node, textStyle, curTextStyle, newIndex, startPath, parentNode, downListProperty, arr, spath, epath, range, canModifyContent;
228947
+ var hoEditorFactory, nodes, result, _nodes, i, node, textStyle, curTextStyle, newIndex, startPath, parentNode, downListProperty, arr, spath, epath, range, canModifyContent;
228950
228948
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
228951
228949
  while (1) switch (_context.prev = _context.next) {
228952
228950
  case 0:
@@ -228957,20 +228955,29 @@ var VueController = /*#__PURE__*/function () {
228957
228955
  return _context.abrupt("return");
228958
228956
  case 2:
228959
228957
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
228958
+ if (!strHtml.includes('<MedicalExpress>')) {
228959
+ _context.next = 8;
228960
+ break;
228961
+ }
228962
+ strHtml = strHtml.replace("<span>", "").replace("</span>", "");
228963
+ nodes = this.text2MedicalExpress(strHtml, hoEditorFactory.docTree.curDomRange.npEnd.node, 0);
228964
+ hoEditorFactory.docController.parseNodeData(nodes);
228965
+ return _context.abrupt("return");
228966
+ case 8:
228960
228967
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</上标>', '<上标/>');
228961
228968
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
228962
228969
  result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
228963
228970
  if (!result) {
228964
- _context.next = 38;
228971
+ _context.next = 43;
228965
228972
  break;
228966
228973
  }
228967
- nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
228968
- if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
228969
- nodes.splice(0, 1);
228974
+ _nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
228975
+ if (_nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
228976
+ _nodes.splice(0, 1);
228970
228977
  }
228971
- for (i = 0; i < nodes.length; i++) {
228978
+ for (i = 0; i < _nodes.length; i++) {
228972
228979
  //插入检查检验等要求插入的文本样式和插入位置的文本样式保持一致
228973
- node = nodes[i];
228980
+ node = _nodes[i];
228974
228981
  if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C) {
228975
228982
  textStyle = hoEditorFactory.docTree.styles[node.styleIndex].clone();
228976
228983
  curTextStyle = hoEditorFactory.docTree.styles[hoEditorFactory.docTree.curStyleIndex];
@@ -228980,23 +228987,23 @@ var VueController = /*#__PURE__*/function () {
228980
228987
  }
228981
228988
  }
228982
228989
  if (!(value && keyValue && listItems)) {
228983
- _context.next = 37;
228990
+ _context.next = 42;
228984
228991
  break;
228985
228992
  }
228986
228993
  startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
228987
228994
  parentNode = hoEditorFactory.docTree.getParentNode(startPath);
228988
228995
  if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
228989
- _context.next = 37;
228996
+ _context.next = 42;
228990
228997
  break;
228991
228998
  }
228992
228999
  downListProperty = parentNode.downListProperty;
228993
229000
  if (!downListProperty.allowMultiSelected) {
228994
- _context.next = 37;
229001
+ _context.next = 42;
228995
229002
  break;
228996
229003
  }
228997
229004
  arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
228998
229005
  if (!clear) {
228999
- _context.next = 31;
229006
+ _context.next = 36;
229000
229007
  break;
229001
229008
  }
229002
229009
  parentNode.value = '';
@@ -229010,23 +229017,23 @@ var VueController = /*#__PURE__*/function () {
229010
229017
  if (!canModifyContent) {
229011
229018
  parentNode.canModifyContent = true;
229012
229019
  }
229013
- _context.next = 29;
229020
+ _context.next = 34;
229014
229021
  return hoEditorFactory.docController.deleteRange(range, true, 'update');
229015
- case 29:
229022
+ case 34:
229016
229023
  parentNode.canModifyContent = canModifyContent;
229017
229024
  hoEditorFactory.docTree.curDomRange.setSamePath(spath);
229018
- case 31:
229025
+ case 36:
229019
229026
  parentNode.text = strHtml;
229020
229027
  parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
229021
229028
  parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
229022
229029
  arr = [].concat((0,esm_toConsumableArray/* default */.Z)(arr), (0,esm_toConsumableArray/* default */.Z)(listItems));
229023
229030
  parentNode.downListProperty.listItems = JSON.stringify(arr);
229024
- if (nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
229025
- nodes.splice(nodes.length - 1, 1);
229031
+ if (_nodes[_nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
229032
+ _nodes.splice(_nodes.length - 1, 1);
229026
229033
  }
229027
- case 37:
229028
- hoEditorFactory.docController.parseNodeData(nodes);
229029
- case 38:
229034
+ case 42:
229035
+ hoEditorFactory.docController.parseNodeData(_nodes);
229036
+ case 43:
229030
229037
  case "end":
229031
229038
  return _context.stop();
229032
229039
  }
@@ -229037,6 +229044,81 @@ var VueController = /*#__PURE__*/function () {
229037
229044
  }
229038
229045
  return insertHtmlText;
229039
229046
  }()
229047
+ }, {
229048
+ key: "text2MedicalExpress",
229049
+ value: function text2MedicalExpress(text, node, styleIndex) {
229050
+ var firstText = "";
229051
+ var expressArr = new Array();
229052
+ var nodes = [];
229053
+ if (text.includes('<MedicalExpress>')) {
229054
+ var getAllMedicalExpress = function getAllMedicalExpress(str) {
229055
+ var sIndex = str.lastIndexOf('<MedicalExpress>');
229056
+ var eIndex = str.lastIndexOf('</MedicalExpress>');
229057
+ if (sIndex !== -1) {
229058
+ var obj = {
229059
+ sIndex: -1,
229060
+ eIndex: -1
229061
+ };
229062
+ obj.sIndex = sIndex;
229063
+ obj.eIndex = eIndex;
229064
+ expressArr.push(obj);
229065
+ }
229066
+ str = str.substring(0, sIndex);
229067
+ if (str.includes('<MedicalExpress>')) {
229068
+ getAllMedicalExpress(str);
229069
+ }
229070
+ };
229071
+ getAllMedicalExpress(text);
229072
+ if (expressArr.length > 0) {
229073
+ expressArr = expressArr.reverse();
229074
+ var sindex = expressArr[0].sIndex;
229075
+ firstText = text.substring(0, sindex);
229076
+ }
229077
+ if (firstText.length > 0) {
229078
+ var firstNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntText, firstText, styleIndex);
229079
+ nodes.push(firstNode);
229080
+ }
229081
+ for (var i = 0; i < expressArr.length; i++) {
229082
+ var sIndex = expressArr[i].sIndex;
229083
+ var eIndex = expressArr[i].eIndex;
229084
+ var expressJson = text.substring(sIndex + 16, eIndex);
229085
+ var expressObj = JSON.parse(expressJson);
229086
+ var expressStyle = MenstrualHistoryNode/* ExpressStyle */.e[expressObj.expressStyle];
229087
+ if (!expressStyle) {
229088
+ expressStyle = expressObj.expressStyle;
229089
+ }
229090
+ var medicalExpressNode = void 0;
229091
+ if (expressStyle.includes('style')) {
229092
+ //经期史
229093
+ medicalExpressNode = new MenstrualHistoryNode/* MenstrualHistoryNode */.n(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
229094
+ } else {
229095
+ if (expressStyle === 'PupilMapNode') {
229096
+ medicalExpressNode = new PupilMapNode/* PupilMapNode */.v(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
229097
+ } else if (expressStyle === 'LightLocationMapNode') {
229098
+ medicalExpressNode = new LightLocationMapNode/* LightLocationMapNode */.D(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
229099
+ } else if (expressStyle === 'FetalHeartMapNode') {
229100
+ medicalExpressNode = new FetalHeartMapNode/* FetalHeartMapNode */.t(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
229101
+ } else if (expressStyle === 'PermanentTeethMapNode') {
229102
+ medicalExpressNode = new PermanentTeethMapNode/* PermanentTeethMapNode */.f(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected, expressObj.remark);
229103
+ } else {
229104
+ medicalExpressNode = new PrimaryTeethMapNode/* PrimaryTeethMapNode */.x(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
229105
+ }
229106
+ }
229107
+ nodes.push(medicalExpressNode);
229108
+ var behindText = ''; //表达式后的文本串
229109
+ if (i < expressArr.length - 1) {
229110
+ behindText = text.substring(eIndex + 17, expressArr[i + 1].sIndex);
229111
+ } else {
229112
+ behindText = text.substring(eIndex + 17, text.length);
229113
+ }
229114
+ if (behindText.length > 0) {
229115
+ var aNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntText, behindText, styleIndex);
229116
+ nodes.push(aNode);
229117
+ }
229118
+ }
229119
+ }
229120
+ return nodes;
229121
+ }
229040
229122
  /**
229041
229123
  * @description 获取修改前的绘制变更对象,用于重绘
229042
229124
  * @param startPath 起始路径
@@ -229819,7 +229901,7 @@ var VueController = /*#__PURE__*/function () {
229819
229901
  key: "insertHeaderJson",
229820
229902
  value: function () {
229821
229903
  var _insertHeaderJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(jsonData) {
229822
- var hoEditorFactory, index, headerNode, epath, sPath, range, nodes, i, _nodes, dline, startPath, endPath, cgEvent;
229904
+ var hoEditorFactory, index, headerNode, epath, sPath, range, nodes, i, _nodes2, dline, startPath, endPath, cgEvent;
229823
229905
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
229824
229906
  while (1) switch (_context5.prev = _context5.next) {
229825
229907
  case 0:
@@ -229841,16 +229923,16 @@ var VueController = /*#__PURE__*/function () {
229841
229923
  }
229842
229924
  hoEditorFactory.docController.parseNodeData(nodes);
229843
229925
  for (i = 0; i < hoEditorFactory.subDocManger.headerDocTree.length; i++) {
229844
- _nodes = hoEditorFactory.subDocManger.headerDocTree[i].subDocNodes;
229845
- if (_nodes.length > 0) {
229926
+ _nodes2 = hoEditorFactory.subDocManger.headerDocTree[i].subDocNodes;
229927
+ if (_nodes2.length > 0) {
229846
229928
  if (hoEditorFactory.drawTree.headerDNodes.length > 0) {
229847
229929
  dline = hoEditorFactory.drawTree.headerDNodes[0];
229848
229930
  if (dline instanceof DrawLine/* DrawLine */.a) {
229849
229931
  dline.dWidth = dline.paragraphNode.getParagraphLeftWidth()[1] - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
229850
229932
  }
229851
229933
  }
229852
- startPath = _nodes[0].getNodePath();
229853
- endPath = hoEditorFactory.docTree.getNodeLastPath(_nodes[_nodes.length - 1]);
229934
+ startPath = _nodes2[0].getNodePath();
229935
+ endPath = hoEditorFactory.docTree.getNodeLastPath(_nodes2[_nodes2.length - 1]);
229854
229936
  cgEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction */.gk.daModifyStyle, startPath, endPath);
229855
229937
  cgEvent.oldEndPath = endPath;
229856
229938
  cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
@@ -229891,7 +229973,7 @@ var VueController = /*#__PURE__*/function () {
229891
229973
  key: "insertFooterJson",
229892
229974
  value: function () {
229893
229975
  var _insertFooterJson = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(jsonData) {
229894
- var hoEditorFactory, footerNodes, footerNode, epath, range, nodes, j, _nodes2, dline, startPath, endPath, cgEvent;
229976
+ var hoEditorFactory, footerNodes, footerNode, epath, range, nodes, j, _nodes3, dline, startPath, endPath, cgEvent;
229895
229977
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context6) {
229896
229978
  while (1) switch (_context6.prev = _context6.next) {
229897
229979
  case 0:
@@ -229912,16 +229994,16 @@ var VueController = /*#__PURE__*/function () {
229912
229994
  }
229913
229995
  hoEditorFactory.docController.parseNodeData(nodes);
229914
229996
  for (j = 0; j < footerNodes.length; j++) {
229915
- _nodes2 = footerNodes[j];
229916
- if (_nodes2.length > 0) {
229997
+ _nodes3 = footerNodes[j];
229998
+ if (_nodes3.length > 0) {
229917
229999
  if (hoEditorFactory.drawTree.footerDNodes.length > 0) {
229918
230000
  dline = hoEditorFactory.drawTree.footerDNodes[0];
229919
230001
  if (dline instanceof DrawLine/* DrawLine */.a) {
229920
230002
  dline.dWidth = dline.paragraphNode.getParagraphLeftWidth()[1] - dline.paragraphNode.combineParagraph.leftMarginPixes - dline.paragraphNode.combineParagraph.rightMarginPixes;
229921
230003
  }
229922
230004
  }
229923
- startPath = _nodes2[0].getNodePath();
229924
- endPath = hoEditorFactory.docTree.getNodeLastPath(_nodes2[_nodes2.length - 1]);
230005
+ startPath = _nodes3[0].getNodePath();
230006
+ endPath = hoEditorFactory.docTree.getNodeLastPath(_nodes3[_nodes3.length - 1]);
229925
230007
  cgEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction */.gk.daModifyStyle, startPath, endPath);
229926
230008
  cgEvent.oldEndPath = endPath;
229927
230009
  cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
@@ -231050,70 +231132,82 @@ var VueController = /*#__PURE__*/function () {
231050
231132
  key: "updateElementTextById",
231051
231133
  value: function () {
231052
231134
  var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(id, text) {
231053
- var nodes, i, node;
231135
+ var nodes, i, node, _nodes4, k;
231054
231136
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context9) {
231055
231137
  while (1) switch (_context9.prev = _context9.next) {
231056
231138
  case 0:
231057
231139
  nodes = this.getNodeByID('all', id, 'array');
231058
231140
  if (!(nodes.length > 0)) {
231059
- _context9.next = 27;
231141
+ _context9.next = 35;
231060
231142
  break;
231061
231143
  }
231062
231144
  i = nodes.length - 1;
231063
231145
  case 3:
231064
231146
  if (!(i >= 0)) {
231065
- _context9.next = 25;
231147
+ _context9.next = 33;
231066
231148
  break;
231067
231149
  }
231068
231150
  node = nodes[i];
231069
231151
  if (!node) {
231070
- _context9.next = 21;
231152
+ _context9.next = 29;
231071
231153
  break;
231072
231154
  }
231073
231155
  if (!(node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231074
- _context9.next = 18;
231156
+ _context9.next = 26;
231075
231157
  break;
231076
231158
  }
231077
231159
  if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
231078
- _context9.next = 10;
231160
+ _context9.next = 18;
231079
231161
  break;
231080
231162
  }
231081
- _context9.next = 10;
231163
+ if (!text.includes("<MedicalExpress>")) {
231164
+ _context9.next = 16;
231165
+ break;
231166
+ }
231167
+ node.childNodes.splice(1, node.childNodes.length - 2);
231168
+ _nodes4 = this.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
231169
+ for (k = 0; k < _nodes4.length; k++) {
231170
+ node.childNodes.splice(1 + k, 0, _nodes4[k]);
231171
+ }
231172
+ node.update(0);
231173
+ return _context9.abrupt("return");
231174
+ case 16:
231175
+ _context9.next = 18;
231082
231176
  return node.setFieldText(text);
231083
- case 10:
231177
+ case 18:
231084
231178
  if (!(node instanceof DateTimeNode/* DateTimeNode */.Z)) {
231085
- _context9.next = 13;
231179
+ _context9.next = 21;
231086
231180
  break;
231087
231181
  }
231088
- _context9.next = 13;
231182
+ _context9.next = 21;
231089
231183
  return node.setDateTimeText(text);
231090
- case 13:
231184
+ case 21:
231091
231185
  if (!(node instanceof DownListNode/* DownListNode */.yF)) {
231092
- _context9.next = 16;
231186
+ _context9.next = 24;
231093
231187
  break;
231094
231188
  }
231095
- _context9.next = 16;
231189
+ _context9.next = 24;
231096
231190
  return node.setDownListText(text);
231097
- case 16:
231098
- _context9.next = 19;
231191
+ case 24:
231192
+ _context9.next = 27;
231099
231193
  break;
231100
- case 18:
231194
+ case 26:
231101
231195
  console.warn("\u975E\u6587\u672C\u57DF\u548C\u65E5\u671F\u5143\u7D20");
231102
- case 19:
231103
- _context9.next = 22;
231196
+ case 27:
231197
+ _context9.next = 30;
231104
231198
  break;
231105
- case 21:
231199
+ case 29:
231106
231200
  console.warn('未找到对应的元素');
231107
- case 22:
231201
+ case 30:
231108
231202
  i--;
231109
231203
  _context9.next = 3;
231110
231204
  break;
231111
- case 25:
231112
- _context9.next = 28;
231205
+ case 33:
231206
+ _context9.next = 36;
231113
231207
  break;
231114
- case 27:
231208
+ case 35:
231115
231209
  console.warn('未找到对应的元素');
231116
- case 28:
231210
+ case 36:
231117
231211
  case "end":
231118
231212
  return _context9.stop();
231119
231213
  }
@@ -231173,18 +231267,18 @@ var VueController = /*#__PURE__*/function () {
231173
231267
  var imgType = type ? type : 'image/jpeg';
231174
231268
  drawpages.forEach(function (drawpage, index) {
231175
231269
  var _drawpage$drawDomLeve;
231176
- if (index == 0) {
231177
- drawpage.paintBackGround();
231178
- drawpage.needUpdateStage = true;
231179
- }
231180
- if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
231181
- drawpage.drawDomLevel.bindStage();
231182
- drawpage.needUpdateStage = true;
231183
- }
231184
- if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
231185
- drawpage.drawDomLevel.stage.update();
231186
- drawpage.needUpdateStage = false;
231187
- }
231270
+ // if (index == 0) {
231271
+ // drawpage.paintBackGround();
231272
+ // drawpage.needUpdateStage = true;
231273
+ // }
231274
+ // if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
231275
+ // drawpage.drawDomLevel.bindStage();
231276
+ // drawpage.needUpdateStage = true;
231277
+ // }
231278
+ // if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
231279
+ // drawpage.drawDomLevel.stage.update();
231280
+ // drawpage.needUpdateStage = false;
231281
+ // }
231188
231282
  var png = document.createElement('img');
231189
231283
  var canvas = (_drawpage$drawDomLeve = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve === void 0 ? void 0 : _drawpage$drawDomLeve.domCanvas;
231190
231284
  png.src = canvas.toDataURL(imgType, imgQuality);
@@ -234052,6 +234146,12 @@ var VueController = /*#__PURE__*/function () {
234052
234146
  if (rootNode == null) rootNode = node;
234053
234147
  return rootNode;
234054
234148
  }
234149
+ }, {
234150
+ key: "getMainNodes",
234151
+ value: function getMainNodes() {
234152
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
234153
+ return hoEditorFactory.docTree.mainNodes;
234154
+ }
234055
234155
  }]);
234056
234156
  return VueController;
234057
234157
  }();