hoeditor-web 3.0.38 → 3.0.39

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.
@@ -8877,7 +8877,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8877
8877
 
8878
8878
  /***/ }),
8879
8879
 
8880
- /***/ 80206:
8880
+ /***/ 93648:
8881
8881
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8882
8882
 
8883
8883
  "use strict";
@@ -8897,7 +8897,7 @@ var es_string_includes = __webpack_require__(32023);
8897
8897
  var es_regexp_exec = __webpack_require__(74916);
8898
8898
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8899
8899
  var es_string_replace = __webpack_require__(15306);
8900
- ;// 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=7a572170&
8900
+ ;// 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=6852d403&
8901
8901
 
8902
8902
 
8903
8903
 
@@ -9279,7 +9279,7 @@ var render = function render() {
9279
9279
  };
9280
9280
  var staticRenderFns = [];
9281
9281
 
9282
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7a572170&
9282
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6852d403&
9283
9283
 
9284
9284
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9285
9285
  var toConsumableArray = __webpack_require__(61748);
@@ -11354,7 +11354,8 @@ var type = __webpack_require__(41542);
11354
11354
  dragIndex: 0,
11355
11355
  enterIndex: 0,
11356
11356
  // 保存打开表单时的节点路径
11357
- endPath: ''
11357
+ endPath: '',
11358
+ calendarInstance: null
11358
11359
  };
11359
11360
  },
11360
11361
  computed: {
@@ -11478,8 +11479,9 @@ var type = __webpack_require__(41542);
11478
11479
  if (this.dateTimeStyle.includes('yyyy') || this.dateTimeStyle.includes('MM') || this.dateTimeStyle.includes('dd')) {
11479
11480
  this.$nextTick(function () {
11480
11481
  if (_this2.$refs.datePicker) {
11481
- var calendarInstance = _this2.$refs.datePicker.$refs.picker.$refs.calendarInstance.$el.querySelector('.ant-calendar-input');
11482
- calendarInstance.addEventListener('input', _this2.calendarInstanceChange);
11482
+ _this2.calendarInstance = _this2.$refs.datePicker.$refs.picker.$refs.calendarInstance.$el.querySelector('.ant-calendar-input');
11483
+ _this2.calendarInstance.addEventListener('input', _this2.calendarInstanceChange);
11484
+ _this2.calendarInstance.addEventListener('keydown', _this2.calendarInstanceKeydown);
11483
11485
  }
11484
11486
  });
11485
11487
  }
@@ -11488,6 +11490,18 @@ var type = __webpack_require__(41542);
11488
11490
  // datePickerChange(event) {
11489
11491
  // console.log('datePickerChange ==> ', event.target.value);
11490
11492
  // },
11493
+ calendarInstanceKeydown: function calendarInstanceKeydown(event) {
11494
+ var _this3 = this;
11495
+ if (event && event.keyCode == 13) {
11496
+ this.$nextTick(function () {
11497
+ if (_this3.calendarInstance) {
11498
+ _this3.calendarInstance.removeEventListener('input', _this3.calendarInstanceChange);
11499
+ _this3.calendarInstance.removeEventListener('input', _this3.calendarInstanceChange);
11500
+ }
11501
+ _this3.sureDate();
11502
+ });
11503
+ }
11504
+ },
11491
11505
  calendarInstanceChange: function calendarInstanceChange(event) {
11492
11506
  var style = this.dateTimeStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
11493
11507
  var format = this.dateTimeStyle.replace(/[^a-zA-Z]/g, '').replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
@@ -11577,7 +11591,7 @@ var type = __webpack_require__(41542);
11577
11591
  this.sureDate();
11578
11592
  },
11579
11593
  currentDateTime: function currentDateTime() {
11580
- var _this3 = this;
11594
+ var _this4 = this;
11581
11595
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
11582
11596
  var node = this.getCurrentPoperNode();
11583
11597
  var date = this.dateFormat(new Date(), node.controlStyle);
@@ -11599,7 +11613,7 @@ var type = __webpack_require__(41542);
11599
11613
  };
11600
11614
  hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
11601
11615
  this.$nextTick(function () {
11602
- return _this3.handleClose();
11616
+ return _this4.handleClose();
11603
11617
  });
11604
11618
  },
11605
11619
  sureDate: function sureDate() {
@@ -11679,12 +11693,12 @@ var type = __webpack_require__(41542);
11679
11693
  * 互斥列表选择
11680
11694
  */
11681
11695
  mutexSelectItemsChange: function mutexSelectItemsChange(value) {
11682
- var _this4 = this;
11696
+ var _this5 = this;
11683
11697
  if (value.length > 0) {
11684
11698
  this.poperSelectList.forEach(function (v) {
11685
11699
  if (value.includes(v.id)) {
11686
11700
  v.selected = true;
11687
- _this4.mutexType = String(v.type);
11701
+ _this5.mutexType = String(v.type);
11688
11702
  } else {
11689
11703
  v.selected = false;
11690
11704
  }
@@ -11693,7 +11707,7 @@ var type = __webpack_require__(41542);
11693
11707
  } else if (value.length === 0) {
11694
11708
  this.poperSelectList.forEach(function (v) {
11695
11709
  v.selected = false;
11696
- _this4.mutexType = '';
11710
+ _this5.mutexType = '';
11697
11711
  });
11698
11712
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
11699
11713
  }
@@ -11702,7 +11716,7 @@ var type = __webpack_require__(41542);
11702
11716
  * 选择
11703
11717
  */
11704
11718
  selectItemsChange: function selectItemsChange(value) {
11705
- var _this5 = this;
11719
+ var _this6 = this;
11706
11720
  if (!this.isAllowMultiSelect) {
11707
11721
  var item = {};
11708
11722
  var selectItemIndex = 0;
@@ -11724,12 +11738,12 @@ var type = __webpack_require__(41542);
11724
11738
  this.poperSelectList.map(function (v) {
11725
11739
  if (value.target.id == v.id) {
11726
11740
  v.selected = value.target.checked;
11727
- if (v.selected && _this5.selectedList.filter(function (m) {
11741
+ if (v.selected && _this6.selectedList.filter(function (m) {
11728
11742
  return m.id == v.id;
11729
11743
  }).length == 0) {
11730
- _this5.selectedList.push(v);
11744
+ _this6.selectedList.push(v);
11731
11745
  } else {
11732
- _this5.selectedList = _this5.selectedList.filter(function (m) {
11746
+ _this6.selectedList = _this6.selectedList.filter(function (m) {
11733
11747
  return m.id != v.id;
11734
11748
  });
11735
11749
  }
@@ -11747,7 +11761,7 @@ var type = __webpack_require__(41542);
11747
11761
  }
11748
11762
  },
11749
11763
  selectItems: function selectItems(item, index) {
11750
- var _this6 = this;
11764
+ var _this7 = this;
11751
11765
  if (!this.isAllowMultiSelect) {
11752
11766
  this.poperSelectList.forEach(function (v) {
11753
11767
  v.selected = false;
@@ -11762,13 +11776,13 @@ var type = __webpack_require__(41542);
11762
11776
  v.selected = !v.selected;
11763
11777
  }
11764
11778
  if (v.selected) {
11765
- if (_this6.isCanSearch && _this6.selectedList.filter(function (m) {
11779
+ if (_this7.isCanSearch && _this7.selectedList.filter(function (m) {
11766
11780
  return m.id == v.id;
11767
11781
  }).length == 0) {
11768
- _this6.selectedList.push(v);
11782
+ _this7.selectedList.push(v);
11769
11783
  }
11770
11784
  } else {
11771
- if (_this6.isCanSearch) _this6.selectedList = _this6.selectedList.filter(function (m) {
11785
+ if (_this7.isCanSearch) _this7.selectedList = _this7.selectedList.filter(function (m) {
11772
11786
  return m.id != v.id;
11773
11787
  });
11774
11788
  }
@@ -11779,12 +11793,12 @@ var type = __webpack_require__(41542);
11779
11793
  },
11780
11794
  // 全选
11781
11795
  allSelect: function allSelect() {
11782
- var _this7 = this;
11796
+ var _this8 = this;
11783
11797
  this.selectedList = [];
11784
11798
  this.poperSelectList.forEach(function (v) {
11785
11799
  v.selected = true;
11786
- _this7.selectedList.push(v);
11787
- _this7.selectedIds.push(v.id);
11800
+ _this8.selectedList.push(v);
11801
+ _this8.selectedIds.push(v.id);
11788
11802
  });
11789
11803
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
11790
11804
  },
@@ -11805,7 +11819,7 @@ var type = __webpack_require__(41542);
11805
11819
  },
11806
11820
  // 选中
11807
11821
  sureSelect: function sureSelect() {
11808
- var _this8 = this;
11822
+ var _this9 = this;
11809
11823
  console.time('下拉选中时间');
11810
11824
  var text = '';
11811
11825
  var keyValue = '';
@@ -11833,7 +11847,7 @@ var type = __webpack_require__(41542);
11833
11847
  text += v.text + ',';
11834
11848
  textArr.push(v.text);
11835
11849
  }
11836
- if (_this8.isAllowMultiSelect && _this8.isMultiLinesDisplay && !_this8.mutexSelect) {
11850
+ if (_this9.isAllowMultiSelect && _this9.isMultiLinesDisplay && !_this9.mutexSelect) {
11837
11851
  text += '\n';
11838
11852
  }
11839
11853
  keyValue += v.id + ',';
@@ -11875,7 +11889,7 @@ var type = __webpack_require__(41542);
11875
11889
  } else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
11876
11890
  text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
11877
11891
  Object.keys(this.textParam).map(function (v) {
11878
- _this8.textParam[v] = currentPoperNode[v];
11892
+ _this9.textParam[v] = currentPoperNode[v];
11879
11893
  });
11880
11894
  this.textParam.text = text;
11881
11895
  this.textParam.keyValue = keyValue;
@@ -11897,7 +11911,7 @@ var type = __webpack_require__(41542);
11897
11911
  // 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
11898
11912
  if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
11899
11913
  setTimeout(function () {
11900
- _this8.handleClose();
11914
+ _this9.handleClose();
11901
11915
  }, 200);
11902
11916
  } else {
11903
11917
  this.handleClose();
@@ -11943,10 +11957,10 @@ var type = __webpack_require__(41542);
11943
11957
  });
11944
11958
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
11945
11959
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
11946
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=7a572170&prod&lang=scss&
11960
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=6852d403&prod&lang=scss&
11947
11961
  // extracted by mini-css-extract-plugin
11948
11962
 
11949
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7a572170&prod&lang=scss&
11963
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6852d403&prod&lang=scss&
11950
11964
 
11951
11965
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
11952
11966
  var componentNormalizer = __webpack_require__(70713);
@@ -44483,10 +44497,10 @@ var PageProperty = /*#__PURE__*/function () {
44483
44497
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_widthMm", 210);
44484
44498
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_heightMm", 297);
44485
44499
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_source", "");
44486
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_topMarginMm", 12.7);
44487
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_bottomMarginMm", 12.7);
44488
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_leftMarginMm", 12.7);
44489
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_rightMarginMm", 12.7);
44500
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_topMarginMm", 25);
44501
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_bottomMarginMm", 10);
44502
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_leftMarginMm", 15);
44503
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_rightMarginMm", 15);
44490
44504
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_headerYMm", 3);
44491
44505
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_footerYMm", 3);
44492
44506
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_showFirstPageHead", true);
@@ -72291,7 +72305,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72291
72305
  if (rect) {
72292
72306
  var dWidth = rect.width;
72293
72307
  var dHeight = rect.height;
72294
- if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && pos.y <= dHeight) {
72308
+ if (0 < pos.x && pos.x < dWidth && pos.y >= 0 && Math.abs(pos.y - dHeight) < 3) {
72295
72309
  inYrange = true;
72296
72310
  // this._dObj.cursor = "s-resize";
72297
72311
  // this.setBoundsYMoveable(e.stageY, dWidth);
@@ -72340,13 +72354,13 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72340
72354
  var selectContainer = dPage.selectContainer;
72341
72355
  if (selectContainer) {
72342
72356
  ResizeDrawTableObj._dashLine.uncache();
72357
+ ResizeDrawTableObj._dashLine.visible = true;
72343
72358
  ResizeDrawTableObj._dashLine.graphics.clear().beginFill("#FFFFFF").drawRect(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
72344
72359
  ResizeDrawTableObj._dashLine.graphics.setStrokeDash([2, 1], 0).beginStroke("#000000").drawRect(0, 3, hoEditorFactory.pageProperty.widthPixes, 1);
72345
72360
  ResizeDrawTableObj._dashLine.cache(0, 0, hoEditorFactory.pageProperty.widthPixes, 6);
72346
72361
  var pos = this._dObj.localToGlobal(0, 0);
72347
72362
  ResizeDrawTableObj._dashLine.x = 0;
72348
72363
  ResizeDrawTableObj._dashLine.y = pos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + (this._dObj.getBounds() ? this._dObj.getBounds().height : 0) - 3;
72349
- ResizeDrawTableObj._dashLine.visible = true;
72350
72364
  // const hitArea = new createjs.Shape();
72351
72365
  // this._dashLine.hitArea = hitArea;
72352
72366
  // hitArea.graphics
@@ -72504,6 +72518,7 @@ var ResizeDrawTableObj = /*#__PURE__*/function () {
72504
72518
  ResizeDrawTableObj._dashLine.stage.removeChild(ResizeDrawTableObj._dashLine);
72505
72519
  }
72506
72520
  ResizeDrawTableObj._dashLine.visible = false;
72521
+ this._dObj.cursor = "default";
72507
72522
  }
72508
72523
  }
72509
72524
  }
@@ -195562,7 +195577,7 @@ var map = {
195562
195577
  "./pageInfoes/PageInfoes.vue": 17481,
195563
195578
  "./paragraph/ParagraphDialog.vue": 54949,
195564
195579
  "./poperSelect/PoperMark.vue": 71472,
195565
- "./poperSelect/PoperSelect.vue": 80206,
195580
+ "./poperSelect/PoperSelect.vue": 93648,
195566
195581
  "./poperTipText/PoperTipText.vue": 15845,
195567
195582
  "./popers/Poper.vue": 57937,
195568
195583
  "./popers/Title.vue": 89987,
@@ -196714,6 +196729,14 @@ function _unsupportedIterableToArray(o, minLen) {
196714
196729
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(o, minLen);
196715
196730
  }
196716
196731
 
196732
+ /***/ }),
196733
+
196734
+ /***/ 91520:
196735
+ /***/ (function(module) {
196736
+
196737
+ "use strict";
196738
+ module.exports = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"arial","en":"arial","family":"arial"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42,"px":56},{"name":"小初","value":36,"px":48},{"name":"一号","value":26,"px":35},{"name":"小一","value":24,"px":32},{"name":"二号","value":22,"px":29},{"name":"小二","value":18,"px":24},{"name":"三号","value":16,"px":22},{"name":"小三","value":15,"px":21},{"name":"四号","value":14,"px":19},{"name":"小四","value":12,"px":16},{"name":"五号","value":10.5,"px":14},{"name":"小五","value":9,"px":12},{"name":"六号","value":7.5,"px":10},{"name":"小六","value":6.5,"px":8},{"name":"七号","value":5.5,"px":7},{"name":"八号","value":5,"px":6}]}');
196739
+
196717
196740
  /***/ })
196718
196741
 
196719
196742
  /******/ });
@@ -231689,7 +231712,7 @@ Input.install = function (Vue) {
231689
231712
 
231690
231713
 
231691
231714
  /* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
231692
- ;// 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/HoDocs.vue?vue&type=template&id=74fc3d07&
231715
+ ;// 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/HoDocs.vue?vue&type=template&id=7a9c6e06&
231693
231716
  var render = function render() {
231694
231717
  var _vm = this,
231695
231718
  _c = _vm._self._c;
@@ -233467,7 +233490,7 @@ var DrawPage = __webpack_require__(72722);
233467
233490
  // EXTERNAL MODULE: ./src/plugins/util.ts
233468
233491
  var plugins_util = __webpack_require__(62783);
233469
233492
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
233470
- var PoperSelect = __webpack_require__(80206);
233493
+ var PoperSelect = __webpack_require__(93648);
233471
233494
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
233472
233495
  var PoperMark = __webpack_require__(71472);
233473
233496
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -235166,7 +235189,7 @@ var ParagraphNode = __webpack_require__(67945);
235166
235189
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235167
235190
  var MarkNode = __webpack_require__(57727);
235168
235191
  ;// CONCATENATED MODULE: ./src/components/version.ts
235169
- /* harmony default export */ var version = ('3.0.38');
235192
+ /* harmony default export */ var version = ('3.0.39');
235170
235193
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235171
235194
  var PoperTipText = __webpack_require__(15845);
235172
235195
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -242439,6 +242462,7 @@ var comment = __webpack_require__(32980);
242439
242462
 
242440
242463
 
242441
242464
 
242465
+
242442
242466
 
242443
242467
 
242444
242468
  var VueController = /*#__PURE__*/function () {
@@ -244131,6 +244155,66 @@ var VueController = /*#__PURE__*/function () {
244131
244155
  var defaultProperty = hoEditorFactory.docTree.docProperty;
244132
244156
  hoEditorFactory.docTree.docProperty = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, defaultProperty), doc);
244133
244157
  }
244158
+ /**
244159
+ * 设置全局参数
244160
+ */
244161
+ }, {
244162
+ key: "setHoEditorFactoryParams",
244163
+ value: function setHoEditorFactoryParams(params, commonParams) {
244164
+ if (params) {
244165
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
244166
+ Object.keys(params).forEach(function (key) {
244167
+ hoEditorFactory[key] = params[key];
244168
+ });
244169
+ }
244170
+ if (commonParams) {
244171
+ Object.keys(commonParams).forEach(function (key) {
244172
+ commonParamList.set(key, commonParams[key]);
244173
+ });
244174
+ }
244175
+ }
244176
+ /**
244177
+ * 设置页面属性
244178
+ */
244179
+ }, {
244180
+ key: "setHoEditorFactoryPageProperty",
244181
+ value: function setHoEditorFactoryPageProperty(pageProperty) {
244182
+ if (pageProperty) {
244183
+ var _property$fontFormat;
244184
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
244185
+ var property = (0,objectSpread2/* default */.Z)({}, pageProperty);
244186
+ // 字体
244187
+ property.fontFormat = property.fontFormat ? (_property$fontFormat = property.fontFormat) === null || _property$fontFormat === void 0 ? void 0 : _property$fontFormat.match(/[\u4e00-\u9fa5]/g).join('') : '宋体';
244188
+ // 字号
244189
+
244190
+ if (isNaN(Number(property.fontSize))) {
244191
+ var fontSizes = (__webpack_require__(91520)/* .fontSizes */ .CH);
244192
+ fontSizes.forEach(function (v) {
244193
+ if (v.name === property.fontSize) {
244194
+ property.fontSize = Number(v.value);
244195
+ }
244196
+ });
244197
+ if (isNaN(Number(property.fontSize))) property.fontSize = 14;
244198
+ } else {
244199
+ property.fontSize = Number(property.fontSize);
244200
+ }
244201
+ // 字间距
244202
+ property.charSpace = property.charSpace ? hoEditorFactory === null || hoEditorFactory === void 0 ? void 0 : hoEditorFactory.unitConvert.mmConversionPx(Number(property.charSpace) * 10, true) : 0;
244203
+ // 行高
244204
+ property.lineHeight = Number(property.lineHeight) ? Number(property.lineHeight) : 1.25;
244205
+ // 复制粘贴基准值
244206
+ if (pageProperty.pasteBase === true || pageProperty.pasteBase === false) {
244207
+ hoEditorFactory.pasteBase = pageProperty.pasteBase;
244208
+ } else {
244209
+ hoEditorFactory.pasteBase = false;
244210
+ }
244211
+ // 删除property中多余的 签名高度 | 复制粘贴基准值 | 元素背景颜色
244212
+ delete property.signHeight;
244213
+ delete property.pasteBase;
244214
+ delete property.elementBackColor;
244215
+ hoEditorFactory.pageProperty.setPageProperty(JSON.stringify(property));
244216
+ }
244217
+ }
244134
244218
  /**
244135
244219
  *
244136
244220
  * @param type 测试 另存为
@@ -244412,6 +244496,7 @@ var VueController = /*#__PURE__*/function () {
244412
244496
  hoEditorFactory.isHideComments = true;
244413
244497
  hoEditorFactory.drawTree.paintStatus = status;
244414
244498
  hoEditorFactory.printStatus.printRange = 2;
244499
+ //console.log("setEditorStatus ==> ", status, printStatus)
244415
244500
  if (status == 2 && printStatus != undefined) {
244416
244501
  hoEditorFactory.printStatus.printRange = printStatus;
244417
244502
  } else {
@@ -245102,10 +245187,13 @@ var VueController = /*#__PURE__*/function () {
245102
245187
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
245103
245188
  result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
245104
245189
  if (!result) {
245105
- _context.next = 35;
245190
+ _context.next = 36;
245106
245191
  break;
245107
245192
  }
245108
245193
  nodes = hoEditorFactory.htmlConverter.parseHtmlString(strHtml);
245194
+ if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
245195
+ nodes.splice(0, 1);
245196
+ }
245109
245197
  for (i = 0; i < nodes.length; i++) {
245110
245198
  //插入检查检验等要求插入的文本样式和插入位置的文本样式保持一致
245111
245199
  node = nodes[i];
@@ -245118,23 +245206,23 @@ var VueController = /*#__PURE__*/function () {
245118
245206
  }
245119
245207
  }
245120
245208
  if (!(value && keyValue && listItems)) {
245121
- _context.next = 34;
245209
+ _context.next = 35;
245122
245210
  break;
245123
245211
  }
245124
245212
  startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
245125
245213
  parentNode = hoEditorFactory.docTree.getParentNode(startPath);
245126
245214
  if (!(parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.insCheckSyncUpdateList)) {
245127
- _context.next = 34;
245215
+ _context.next = 35;
245128
245216
  break;
245129
245217
  }
245130
245218
  downListProperty = parentNode.downListProperty;
245131
245219
  if (!downListProperty.allowMultiSelected) {
245132
- _context.next = 34;
245220
+ _context.next = 35;
245133
245221
  break;
245134
245222
  }
245135
245223
  arr = downListProperty.listItems ? JSON.parse(downListProperty.listItems) : [];
245136
245224
  if (!clear) {
245137
- _context.next = 28;
245225
+ _context.next = 29;
245138
245226
  break;
245139
245227
  }
245140
245228
  parentNode.value = '';
@@ -245148,12 +245236,12 @@ var VueController = /*#__PURE__*/function () {
245148
245236
  if (!canModifyContent) {
245149
245237
  parentNode.canModifyContent = true;
245150
245238
  }
245151
- _context.next = 26;
245239
+ _context.next = 27;
245152
245240
  return hoEditorFactory.docController.deleteRange(range, true, 'update');
245153
- case 26:
245241
+ case 27:
245154
245242
  parentNode.canModifyContent = canModifyContent;
245155
245243
  hoEditorFactory.docTree.curDomRange.setSamePath(spath);
245156
- case 28:
245244
+ case 29:
245157
245245
  parentNode.text = strHtml;
245158
245246
  parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
245159
245247
  parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
@@ -245162,9 +245250,9 @@ var VueController = /*#__PURE__*/function () {
245162
245250
  if (nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
245163
245251
  nodes.splice(nodes.length - 1, 1);
245164
245252
  }
245165
- case 34:
245166
- hoEditorFactory.docController.parseNodeData(nodes);
245167
245253
  case 35:
245254
+ hoEditorFactory.docController.parseNodeData(nodes);
245255
+ case 36:
245168
245256
  case "end":
245169
245257
  return _context.stop();
245170
245258
  }
@@ -248143,21 +248231,6 @@ var VueController = /*#__PURE__*/function () {
248143
248231
  getAllNodes(mainNodes);
248144
248232
  return isHasDoctorSign;
248145
248233
  }
248146
- }, {
248147
- key: "setHoEditorFactoryParams",
248148
- value: function setHoEditorFactoryParams(params, commonParams) {
248149
- if (params) {
248150
- var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248151
- Object.keys(params).forEach(function (key) {
248152
- _hoEditorFactory2[key] = params[key];
248153
- });
248154
- }
248155
- if (commonParams) {
248156
- Object.keys(commonParams).forEach(function (key) {
248157
- commonParamList.set(key, commonParams[key]);
248158
- });
248159
- }
248160
- }
248161
248234
  }, {
248162
248235
  key: "getIsSetFont",
248163
248236
  value: function getIsSetFont() {
@@ -248949,7 +249022,7 @@ var VueController = /*#__PURE__*/function () {
248949
249022
  var startNode = hoEditorFactory.docTree.curDomRange.normalize().npStart.node;
248950
249023
  for (var i = 0; i < findTextArr.length; i++) {
248951
249024
  var findText = findTextArr[i];
248952
- if (findText == "") continue;
249025
+ if (findText == '') continue;
248953
249026
  var sNode = startNode;
248954
249027
  if (startNode) {
248955
249028
  sNode = startNode.rootNodes[0];
@@ -248974,10 +249047,10 @@ var VueController = /*#__PURE__*/function () {
248974
249047
  apath = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
248975
249048
  nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
248976
249049
  } else {
248977
- var arr = apath.split("/");
249050
+ var arr = apath.split('/');
248978
249051
  var value = parseInt(arr[arr.length - 1]);
248979
249052
  arr[arr.length - 1] = (value + 1).toString();
248980
- apath = arr.join("/");
249053
+ apath = arr.join('/');
248981
249054
  }
248982
249055
  }
248983
249056
  paths.push([pathArr[j], apath]);
@@ -248988,7 +249061,7 @@ var VueController = /*#__PURE__*/function () {
248988
249061
  var pathArray = paths[k];
248989
249062
  var sPath = pathArray[0];
248990
249063
  var ePath = pathArray[1];
248991
- if (sPath == "" || ePath == "") continue;
249064
+ if (sPath == '' || ePath == '') continue;
248992
249065
  var pStartPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, sPath);
248993
249066
  var pEndPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, ePath);
248994
249067
  var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
@@ -249003,14 +249076,14 @@ var VueController = /*#__PURE__*/function () {
249003
249076
  }, {
249004
249077
  key: "getAllFindPath",
249005
249078
  value: function getAllFindPath(nodesMap, indexsMap) {
249006
- var returnPath = "";
249079
+ var returnPath = '';
249007
249080
  var pathArr = [];
249008
249081
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
249009
249082
  indexsMap.forEach(function (valueStr) {
249010
249083
  if (valueStr) {
249011
- var paraIndex = valueStr.split("|")[0];
249012
- var textCount = valueStr.split("|")[1];
249013
- var strIndex = parseInt(valueStr.split("|")[2]);
249084
+ var paraIndex = valueStr.split('|')[0];
249085
+ var textCount = valueStr.split('|')[1];
249086
+ var strIndex = parseInt(valueStr.split('|')[2]);
249014
249087
  var _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(nodesMap),
249015
249088
  _step2;
249016
249089
  try {
@@ -249018,17 +249091,17 @@ var VueController = /*#__PURE__*/function () {
249018
249091
  var _step2$value = (0,esm_slicedToArray/* default */.Z)(_step2.value, 2),
249019
249092
  key = _step2$value[0],
249020
249093
  value = _step2$value[1];
249021
- var startIndex = parseInt(key.split("|")[2]);
249022
- if (key.split("|")[0] === paraIndex && key.split("|")[1] === textCount && strIndex >= startIndex) {
249094
+ var startIndex = parseInt(key.split('|')[2]);
249095
+ if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
249023
249096
  var np = hoEditorFactory.docTree.findNodePositionByPath(value);
249024
249097
  if (np && np.node) {
249025
249098
  if (np.node instanceof TextNode/* TextNode */.R) {
249026
249099
  if (strIndex < startIndex + np.node.text.length) {
249027
249100
  var lastPath = strIndex - startIndex - 1;
249028
249101
  if (lastPath >= 0) {
249029
- var _pathArr = value.split("/");
249102
+ var _pathArr = value.split('/');
249030
249103
  _pathArr[_pathArr.length - 1] = lastPath.toString();
249031
- returnPath = _pathArr.join("/");
249104
+ returnPath = _pathArr.join('/');
249032
249105
  } else {
249033
249106
  //搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
249034
249107
  var preNode = np.node.previousLeaf();
@@ -254026,10 +254099,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
254026
254099
  this._networkConnectionStatus = navigator.onLine;
254027
254100
  navigators.connection.onchange = function () {
254028
254101
  _this6._networkConnectionStatus = navigator.onLine;
254029
- _this6.offLineIntervalCacheXml();
254030
254102
  if (navigator.onLine) {
254031
- console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
254103
+ // console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
254032
254104
  } else {
254105
+ _this6.offLineIntervalCacheXml();
254033
254106
  console.warn('网络连接状态变化:已中断', navigators.connection.rtt, navigator.onLine);
254034
254107
  }
254035
254108
  };
@@ -255143,8 +255216,8 @@ var DeleteImageNodeList = /*#__PURE__*/function () {
255143
255216
  return DeleteImageNodeList;
255144
255217
  }();
255145
255218
  (0,esm_defineProperty/* default */.Z)(DeleteImageNodeList, "_instance", void 0);
255146
- ;// CONCATENATED MODULE: ./src/assets/json/font.json
255147
- var font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"arial","en":"arial","family":"arial"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42,"px":56},{"name":"小初","value":36,"px":48},{"name":"一号","value":26,"px":35},{"name":"小一","value":24,"px":32},{"name":"二号","value":22,"px":29},{"name":"小二","value":18,"px":24},{"name":"三号","value":16,"px":22},{"name":"小三","value":15,"px":21},{"name":"四号","value":14,"px":19},{"name":"小四","value":12,"px":16},{"name":"五号","value":10.5,"px":14},{"name":"小五","value":9,"px":12},{"name":"六号","value":7.5,"px":10},{"name":"小六","value":6.5,"px":8},{"name":"七号","value":5.5,"px":7},{"name":"八号","value":5,"px":6}]}');
255219
+ // EXTERNAL MODULE: ./src/assets/json/font.json
255220
+ var font = __webpack_require__(91520);
255148
255221
  ;// CONCATENATED MODULE: ./src/components/mixins/tableformula.ts
255149
255222
  var formularType = {
255150
255223
  0: 'sum',
@@ -255216,7 +255289,9 @@ var commondata = __webpack_require__(76285);
255216
255289
  customProperty: {},
255217
255290
  paragraphCustomProperty: {},
255218
255291
  deleteImageNodeList: {},
255219
- pageProperty: {},
255292
+ pageProperty: {
255293
+ default: function _default() {}
255294
+ },
255220
255295
  superiorSigns: {},
255221
255296
  // 上级医生签名 bce01 数组
255222
255297
 
@@ -255488,7 +255563,7 @@ var commondata = __webpack_require__(76285);
255488
255563
  pageProperty: {
255489
255564
  deep: true,
255490
255565
  handler: function handler(pageProperty) {
255491
- if (pageProperty) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
255566
+ if (pageProperty && Object.keys(pageProperty).length > 0) this.initPageProperty((0,objectSpread2/* default */.Z)({}, pageProperty));
255492
255567
  }
255493
255568
  },
255494
255569
  docProperty: {
@@ -255662,7 +255737,7 @@ var commondata = __webpack_require__(76285);
255662
255737
  if (!commondata/* CommonData.instance */.G.instance().modalStatusObject) {
255663
255738
  commondata/* CommonData.instance */.G.instance().modalStatusObject = _this3.modalStatusObject;
255664
255739
  }
255665
- if (_this3.pageProperty) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
255740
+ if (_this3.pageProperty && Object.keys(_this3.pageProperty).length > 0) _this3.initPageProperty((0,objectSpread2/* default */.Z)({}, _this3.pageProperty));
255666
255741
  });
255667
255742
  },
255668
255743
  methods: {
@@ -255833,7 +255908,7 @@ var commondata = __webpack_require__(76285);
255833
255908
 
255834
255909
  // 字号
255835
255910
  if (isNaN(Number(property.fontSize))) {
255836
- font_namespaceObject.CH.forEach(function (v) {
255911
+ font/* fontSizes.forEach */.CH.forEach(function (v) {
255837
255912
  if (v.name === property.fontSize) {
255838
255913
  property.fontSize = Number(v.value);
255839
255914
  }
@@ -256052,10 +256127,10 @@ var commondata = __webpack_require__(76285);
256052
256127
  });
256053
256128
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
256054
256129
  /* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
256055
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=74fc3d07&prod&lang=scss&media=print&
256130
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=7a9c6e06&prod&lang=scss&media=print&
256056
256131
  // extracted by mini-css-extract-plugin
256057
256132
 
256058
- ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=74fc3d07&prod&lang=scss&media=print&
256133
+ ;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=7a9c6e06&prod&lang=scss&media=print&
256059
256134
 
256060
256135
  ;// CONCATENATED MODULE: ./src/components/HoDocs.vue
256061
256136
 
@@ -257022,8 +257097,8 @@ var HoColorPickers = __webpack_require__(84214);
257022
257097
  },
257023
257098
  data: function data() {
257024
257099
  return {
257025
- fontFamily: font_namespaceObject.TN,
257026
- fontSize: font_namespaceObject.CH,
257100
+ fontFamily: font/* fontFamilys */.TN,
257101
+ fontSize: font/* fontSizes */.CH,
257027
257102
  isSuperScript: false,
257028
257103
  isSubScript: false,
257029
257104
  familySelected: '微软雅黑',
@@ -257068,7 +257143,7 @@ var HoColorPickers = __webpack_require__(84214);
257068
257143
  this.color = val.color;
257069
257144
  this.isSuperScript = val.script === 2 ? true : false;
257070
257145
  this.isSubScript = val.script === 1 ? true : false;
257071
- var familyArr = font_namespaceObject.TN.filter(function (v) {
257146
+ var familyArr = font/* fontFamilys.filter */.TN.filter(function (v) {
257072
257147
  if (v.ch === val.font) {
257073
257148
  return v;
257074
257149
  }
@@ -257081,7 +257156,7 @@ var HoColorPickers = __webpack_require__(84214);
257081
257156
  en: ''
257082
257157
  };
257083
257158
  }
257084
- var fontSizeArr = font_namespaceObject.CH.filter(function (v) {
257159
+ var fontSizeArr = font/* fontSizes.filter */.CH.filter(function (v) {
257085
257160
  if (v.value === val.size) return v;
257086
257161
  });
257087
257162
  if (Array.isArray(fontSizeArr) && fontSizeArr.length !== 0) {
@@ -258375,8 +258450,8 @@ var HoColorPicker = __webpack_require__(91351);
258375
258450
  },
258376
258451
  data: function data() {
258377
258452
  return {
258378
- fontFamily: font_namespaceObject.TN,
258379
- fontSize: font_namespaceObject.CH,
258453
+ fontFamily: font/* fontFamilys */.TN,
258454
+ fontSize: font/* fontSizes */.CH,
258380
258455
  alignList: ['left', 'both', 'right', 'both'],
258381
258456
  lineHeightList: [1.25, 1.5, 2, 2.5, 3],
258382
258457
  fontSpacingList: [0, 1, 2, 3],