hoeditor-web 3.0.16 → 3.0.18

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.
@@ -19966,7 +19966,7 @@ var component = (0,componentNormalizer/* default */.Z)(
19966
19966
 
19967
19967
  /***/ }),
19968
19968
 
19969
- /***/ 233:
19969
+ /***/ 15876:
19970
19970
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19971
19971
 
19972
19972
  "use strict";
@@ -19980,7 +19980,7 @@ __webpack_require__.d(__webpack_exports__, {
19980
19980
 
19981
19981
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
19982
19982
  var es_function_name = __webpack_require__(68309);
19983
- ;// 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/textDialog/TextDialog.vue?vue&type=template&id=4231efe2&
19983
+ ;// 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/textDialog/TextDialog.vue?vue&type=template&id=3dcada03&
19984
19984
 
19985
19985
  var render = function render() {
19986
19986
  var _vm = this,
@@ -20409,7 +20409,7 @@ var render = function render() {
20409
20409
  };
20410
20410
  var staticRenderFns = [];
20411
20411
 
20412
- ;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=4231efe2&
20412
+ ;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=3dcada03&
20413
20413
 
20414
20414
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
20415
20415
  var objectSpread2 = __webpack_require__(63442);
@@ -20494,7 +20494,7 @@ var HOEditorFactorys = __webpack_require__(74089);
20494
20494
  default: function _default() {}
20495
20495
  }
20496
20496
  },
20497
- inject: ["hoEditorProvider", "getCustomProperty"],
20497
+ inject: ['hoEditorProvider', 'getCustomProperty'],
20498
20498
  computed: {
20499
20499
  dataSource: function dataSource() {
20500
20500
  return this.hoEditorProvider.getDataSource();
@@ -20637,10 +20637,10 @@ var HOEditorFactorys = __webpack_require__(74089);
20637
20637
  });
20638
20638
  ;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
20639
20639
  /* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
20640
- ;// 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/textDialog/TextDialog.vue?vue&type=style&index=0&id=4231efe2&prod&lang=scss&
20640
+ ;// 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/textDialog/TextDialog.vue?vue&type=style&index=0&id=3dcada03&prod&lang=scss&
20641
20641
  // extracted by mini-css-extract-plugin
20642
20642
 
20643
- ;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=4231efe2&prod&lang=scss&
20643
+ ;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=3dcada03&prod&lang=scss&
20644
20644
 
20645
20645
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
20646
20646
  var componentNormalizer = __webpack_require__(70713);
@@ -27990,7 +27990,8 @@ var textParams = {
27990
27990
  identifierFormat: "",
27991
27991
  readType: false,
27992
27992
  keyValue: '',
27993
- value: ''
27993
+ value: '',
27994
+ insCheckSyncUpdateList: false
27994
27995
  // isMultiLinesDisplay: false
27995
27996
  };
27996
27997
 
@@ -70238,7 +70239,7 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
70238
70239
  var leftMaxWidth = Math.max(topLeft.getMeasuredWidth(), bottomLeft.getMeasuredWidth());
70239
70240
  this.dWidth = maxWidth;
70240
70241
  lineX.graphics.beginStroke(this._textStyle.color).moveTo(0, -this._dHeight / 2).lineTo(this.dWidth, -this._dHeight / 2);
70241
- lineY.graphics.beginStroke(this._textStyle.color).moveTo(leftMaxWidth + 6, -this._dHeight).lineTo(leftMaxWidth + 6, 0);
70242
+ lineY.graphics.beginStroke(this._textStyle.color).moveTo(leftMaxWidth + 6 - 0.5, -this._dHeight - 0.5).lineTo(leftMaxWidth + 6 - 0.5, -0.5);
70242
70243
  topLeft.y = -this.dHeight / 2 - topLeft.getMeasuredHeight() / 2;
70243
70244
  topLeft.x = 4;
70244
70245
  topLeft.textAlign = "left";
@@ -73836,7 +73837,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
73836
73837
  /*
73837
73838
  * @Author: your name
73838
73839
  * @Date: 2021-09-01 16:51:49
73839
- * @LastEditTime: 2023-01-01 14:53:26
73840
+ * @LastEditTime: 2023-01-17 09:17:04
73840
73841
  * @LastEditors: liyanan 2441631434@qq.com
73841
73842
  * @Description: In User Settings Edit
73842
73843
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -74067,6 +74068,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
74067
74068
  var fingerBitmap;
74068
74069
  fingerImage.src = _this2.fingerPrintSrc;
74069
74070
  fingerBitmap = new createjs.Bitmap(fingerImage);
74071
+ fingerBitmap.setBounds(0, 0, node.imgWidth, node.imgHeight);
74070
74072
  drawNode.addChildAt(fingerBitmap, 0);
74071
74073
  hoEditorFactory.loadImageCount++;
74072
74074
  fingerImage.onerror = function () {
@@ -74094,6 +74096,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
74094
74096
  var bitmap = new createjs.Bitmap(image);
74095
74097
  bitmap.y = 0;
74096
74098
  bitmap.x = 0;
74099
+ bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
74097
74100
  if (node.imgWidth) {
74098
74101
  _this2._dWidth = node.imgWidth;
74099
74102
  }
@@ -74103,6 +74106,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
74103
74106
  if (drawNode.fingerPrintSrc !== '') {
74104
74107
  _fingerImage.src = _this2.fingerPrintSrc;
74105
74108
  _fingerBitmap = new createjs.Bitmap(_fingerImage);
74109
+ _fingerBitmap.setBounds(0, 0, node.imgWidth, node.imgHeight);
74106
74110
  drawNode.addChildAt(_fingerBitmap, 1);
74107
74111
  hoEditorFactory.loadImageCount++;
74108
74112
  _fingerImage.onerror = function () {
@@ -219563,7 +219567,7 @@ var map = {
219563
219567
  "./table/TableFormula.vue": 7789,
219564
219568
  "./table/TableProperty.vue": 67472,
219565
219569
  "./table/TableRowProperty.vue": 5218,
219566
- "./textDialog/TextDialog.vue": 233,
219570
+ "./textDialog/TextDialog.vue": 15876,
219567
219571
  "./textDialog/TextToLabelDialog.vue": 19722,
219568
219572
  "./upload/CanvasImageDialog.vue": 94116,
219569
219573
  "./upload/HoFabric.vue": 43008,
@@ -259451,7 +259455,7 @@ var SignNode = __webpack_require__(24701);
259451
259455
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
259452
259456
  var ParagraphNode = __webpack_require__(67945);
259453
259457
  ;// CONCATENATED MODULE: ./src/components/version.ts
259454
- /* harmony default export */ var version = ('3.0.16');
259458
+ /* harmony default export */ var version = ('3.0.18');
259455
259459
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
259456
259460
  var PoperTipText = __webpack_require__(15845);
259457
259461
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -268644,7 +268648,7 @@ var VueController = /*#__PURE__*/function () {
268644
268648
  */
268645
268649
  }, {
268646
268650
  key: "insertHtmlText",
268647
- value: function insertHtmlText(strHtml, value, keyValye, listItems) {
268651
+ value: function insertHtmlText(strHtml, value, keyValue, listItems) {
268648
268652
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
268649
268653
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</上标>', '<上标/>');
268650
268654
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, '</下标>', '<下标/>');
@@ -268662,6 +268666,20 @@ var VueController = /*#__PURE__*/function () {
268662
268666
  node.styleIndex = newIndex;
268663
268667
  }
268664
268668
  }
268669
+ if (value && keyValue && listItems) {
268670
+ var startPath = hoEditorFactory.docTree.curDomRange.normalize().startPath;
268671
+ var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
268672
+ if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1) {
268673
+ var downListProperty = parentNode.downListProperty;
268674
+ if (downListProperty.allowMultiSelected) {
268675
+ parentNode.value = parentNode.value + downListProperty.splitCharacter + value;
268676
+ parentNode.keyValue = parentNode.keyValue + downListProperty.splitCharacter + keyValue;
268677
+ var arr = Array(downListProperty.listItems);
268678
+ arr = arr.concat(listItems);
268679
+ downListProperty.listItems = arr.toString();
268680
+ }
268681
+ }
268682
+ }
268665
268683
  hoEditorFactory.docController.parseNodeData(nodes);
268666
268684
  }
268667
268685
  }
@@ -285012,14 +285030,18 @@ var popper = __webpack_require__(95551);
285012
285030
  this.handleClose();
285013
285031
  },
285014
285032
  handleClose: function handleClose() {
285015
- var _window$top3,
285016
- _window$top3$chrome,
285017
- _window$top3$chrome$w,
285018
- _this2 = this;
285019
- (_window$top3 = window.top) === null || _window$top3 === void 0 ? void 0 : (_window$top3$chrome = _window$top3.chrome) === null || _window$top3$chrome === void 0 ? void 0 : (_window$top3$chrome$w = _window$top3$chrome.webview) === null || _window$top3$chrome$w === void 0 ? void 0 : _window$top3$chrome$w.removeEventListener('message', this.getMessage);
285020
- this.$nextTick(function () {
285021
- return _this2.$emit('closeRight');
285022
- });
285033
+ var _this2 = this;
285034
+ try {
285035
+ var _window$top3, _window$top3$chrome, _window$top3$chrome$w;
285036
+ (_window$top3 = window.top) === null || _window$top3 === void 0 ? void 0 : (_window$top3$chrome = _window$top3.chrome) === null || _window$top3$chrome === void 0 ? void 0 : (_window$top3$chrome$w = _window$top3$chrome.webview) === null || _window$top3$chrome$w === void 0 ? void 0 : _window$top3$chrome$w.removeEventListener('message', this.getMessage);
285037
+ this.$nextTick(function () {
285038
+ return _this2.$emit('closeRight');
285039
+ });
285040
+ } catch (error) {
285041
+ this.$nextTick(function () {
285042
+ return _this2.$emit('closeRight');
285043
+ });
285044
+ }
285023
285045
  },
285024
285046
  // 标签转化为文本
285025
285047
  labelToText: function labelToText() {