hoeditor-web 3.1.142 → 3.1.144

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.
@@ -9650,7 +9650,7 @@ var component = (0,componentNormalizer/* default */.Z)(
9650
9650
 
9651
9651
  /***/ }),
9652
9652
 
9653
- /***/ 30900:
9653
+ /***/ 44363:
9654
9654
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9655
9655
 
9656
9656
  "use strict";
@@ -9670,7 +9670,7 @@ var es_string_includes = __webpack_require__(32023);
9670
9670
  var es_regexp_exec = __webpack_require__(74916);
9671
9671
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
9672
9672
  var es_string_replace = __webpack_require__(15306);
9673
- ;// 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=5bdca97f&
9673
+ ;// 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=2e927ae2&
9674
9674
 
9675
9675
 
9676
9676
 
@@ -10136,7 +10136,7 @@ var render = function render() {
10136
10136
  };
10137
10137
  var staticRenderFns = [];
10138
10138
 
10139
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5bdca97f&
10139
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=2e927ae2&
10140
10140
 
10141
10141
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
10142
10142
  var toConsumableArray = __webpack_require__(61748);
@@ -10152,6 +10152,8 @@ var web_dom_collections_for_each = __webpack_require__(54747);
10152
10152
  var es_array_filter = __webpack_require__(57327);
10153
10153
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
10154
10154
  var es_array_push = __webpack_require__(57658);
10155
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
10156
+ var es_json_stringify = __webpack_require__(38862);
10155
10157
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
10156
10158
  var es_array_concat = __webpack_require__(92222);
10157
10159
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
@@ -12143,6 +12145,7 @@ var type = __webpack_require__(41542);
12143
12145
 
12144
12146
 
12145
12147
 
12148
+
12146
12149
 
12147
12150
 
12148
12151
  var columns = [{
@@ -12600,13 +12603,30 @@ var columns = [{
12600
12603
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
12601
12604
  var node = this.getCurrentPoperNode();
12602
12605
  var date = this.dateFormat(new Date(), node.controlStyle);
12603
- hoEditorFactory.elementController.updateDateTimeText(node, date);
12606
+ var params = {
12607
+ id: node.id,
12608
+ name: node.name,
12609
+ text: date,
12610
+ title: node.title,
12611
+ tipText: node.tipText,
12612
+ isAllowDelete: node.isAllowDelete,
12613
+ isReadOnly: node.isReadOnly,
12614
+ controlStyle: node.controlStyle,
12615
+ innerIdentifier: node.innerIdentifier,
12616
+ dataMetaIdentifier: node.dataMetaIdentifier,
12617
+ identifierFormat: node.identifierFormat,
12618
+ notSelectTime: node.notSelectTime,
12619
+ notReplaceElement: node.notReplaceElement,
12620
+ readType: node.readType,
12621
+ labelText: node.labelText,
12622
+ customProperty: node.customProperty
12623
+ };
12624
+ hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
12604
12625
  this.$nextTick(function () {
12605
12626
  return _this6.handleClose();
12606
12627
  });
12607
12628
  },
12608
12629
  sureDate: function sureDate() {
12609
- var _this7 = this;
12610
12630
  var node = this.getCurrentPoperNode();
12611
12631
  var value = '';
12612
12632
  if (this.date == null) {
@@ -12621,11 +12641,27 @@ var columns = [{
12621
12641
  value = this.date;
12622
12642
  }
12623
12643
  value = value.replace(/^\s+|\s+$/g, '');
12644
+ var params = {
12645
+ id: node.id,
12646
+ name: node.name,
12647
+ text: value ? value : node.name,
12648
+ title: node.title,
12649
+ tipText: node.tipText,
12650
+ isAllowDelete: node.isAllowDelete,
12651
+ isReadOnly: node.isReadOnly,
12652
+ controlStyle: node.controlStyle,
12653
+ innerIdentifier: node.innerIdentifier,
12654
+ dataMetaIdentifier: node.dataMetaIdentifier,
12655
+ identifierFormat: node.identifierFormat,
12656
+ notSelectTime: node.notSelectTime,
12657
+ notReplaceElement: node.notReplaceElement,
12658
+ readType: node.readType,
12659
+ labelText: node.labelText,
12660
+ customProperty: node.customProperty
12661
+ };
12624
12662
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
12625
- hoEditorFactory.elementController.updateDateTimeText(node, value);
12626
- this.$nextTick(function () {
12627
- return _this7.handleClose();
12628
- });
12663
+ hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
12664
+ this.handleClose();
12629
12665
  },
12630
12666
  searchList: function searchList() {
12631
12667
  console.time('搜索时间');
@@ -12669,12 +12705,12 @@ var columns = [{
12669
12705
  * 互斥列表选择
12670
12706
  */
12671
12707
  mutexSelectItemsChange: function mutexSelectItemsChange(value) {
12672
- var _this8 = this;
12708
+ var _this7 = this;
12673
12709
  if (value.length > 0) {
12674
12710
  this.poperSelectList.forEach(function (v) {
12675
12711
  if (value.includes(v.id)) {
12676
12712
  v.selected = true;
12677
- _this8.mutexType = String(v.type);
12713
+ _this7.mutexType = String(v.type);
12678
12714
  } else {
12679
12715
  v.selected = false;
12680
12716
  }
@@ -12683,7 +12719,7 @@ var columns = [{
12683
12719
  } else if (value.length === 0) {
12684
12720
  this.poperSelectList.forEach(function (v) {
12685
12721
  v.selected = false;
12686
- _this8.mutexType = '';
12722
+ _this7.mutexType = '';
12687
12723
  });
12688
12724
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12689
12725
  }
@@ -12692,7 +12728,7 @@ var columns = [{
12692
12728
  * 选择
12693
12729
  */
12694
12730
  selectItemsChange: function selectItemsChange(value) {
12695
- var _this9 = this;
12731
+ var _this8 = this;
12696
12732
  if (this.isSelected) return; // 单选时已选过不在进入选择
12697
12733
  if (!this.isAllowMultiSelect) {
12698
12734
  this.poperSelectList.map(function (v, index) {
@@ -12708,13 +12744,13 @@ var columns = [{
12708
12744
  this.poperSelectList.map(function (v) {
12709
12745
  if (value.target.id == v.id) {
12710
12746
  v.selected = value.target.checked;
12711
- if (_this9.isCanSearch) {
12712
- if (v.selected && _this9.selectedList.filter(function (m) {
12747
+ if (_this8.isCanSearch) {
12748
+ if (v.selected && _this8.selectedList.filter(function (m) {
12713
12749
  return m.id == v.id;
12714
12750
  }).length == 0) {
12715
- _this9.selectedList.push(v);
12751
+ _this8.selectedList.push(v);
12716
12752
  } else {
12717
- _this9.selectedList = _this9.selectedList.filter(function (m) {
12753
+ _this8.selectedList = _this8.selectedList.filter(function (m) {
12718
12754
  return m.id != v.id;
12719
12755
  });
12720
12756
  }
@@ -12732,7 +12768,7 @@ var columns = [{
12732
12768
  }
12733
12769
  },
12734
12770
  clickItemsChange: function clickItemsChange(value) {
12735
- var _this10 = this;
12771
+ var _this9 = this;
12736
12772
  if (this.isSelected) return; // 单选时已选过不在进入选择
12737
12773
  if (!this.isAllowMultiSelect) {
12738
12774
  this.poperSelectList.map(function (v, index) {
@@ -12745,7 +12781,7 @@ var columns = [{
12745
12781
  var type = [];
12746
12782
  this.currentList.map(function (v) {
12747
12783
  if (value.id == v.id) {
12748
- if (!_this10.mutexType || _this10.mutexType == v.type) {
12784
+ if (!_this9.mutexType || _this9.mutexType == v.type) {
12749
12785
  v.selected = !v.selected;
12750
12786
  }
12751
12787
  }
@@ -12759,7 +12795,7 @@ var columns = [{
12759
12795
  }
12760
12796
  },
12761
12797
  selectItems: function selectItems(item, index) {
12762
- var _this11 = this;
12798
+ var _this10 = this;
12763
12799
  if (this.isSelected) return; // 单选时已选过不在进入选择
12764
12800
  if (!this.isAllowMultiSelect) {
12765
12801
  this.poperSelectList.forEach(function (v) {
@@ -12776,13 +12812,13 @@ var columns = [{
12776
12812
  v.selected = !v.selected;
12777
12813
  }
12778
12814
  if (v.selected) {
12779
- if (_this11.isCanSearch && _this11.selectedList.filter(function (m) {
12815
+ if (_this10.isCanSearch && _this10.selectedList.filter(function (m) {
12780
12816
  return m.id == v.id;
12781
12817
  }).length == 0) {
12782
- _this11.selectedList.push(v);
12818
+ _this10.selectedList.push(v);
12783
12819
  }
12784
12820
  } else {
12785
- if (_this11.isCanSearch) _this11.selectedList = _this11.selectedList.filter(function (m) {
12821
+ if (_this10.isCanSearch) _this10.selectedList = _this10.selectedList.filter(function (m) {
12786
12822
  return m.id != v.id;
12787
12823
  });
12788
12824
  }
@@ -12793,12 +12829,12 @@ var columns = [{
12793
12829
  },
12794
12830
  // 全选
12795
12831
  allSelect: function allSelect() {
12796
- var _this12 = this;
12832
+ var _this11 = this;
12797
12833
  this.selectedList = [];
12798
12834
  this.poperSelectList.forEach(function (v) {
12799
12835
  v.selected = true;
12800
- _this12.selectedList.push(v);
12801
- _this12.selectedIds.push(v.id);
12836
+ _this11.selectedList.push(v);
12837
+ _this11.selectedIds.push(v.id);
12802
12838
  });
12803
12839
  this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
12804
12840
  },
@@ -12819,7 +12855,7 @@ var columns = [{
12819
12855
  },
12820
12856
  // 选中
12821
12857
  sureSelect: function sureSelect(isAutoInput) {
12822
- var _this13 = this;
12858
+ var _this12 = this;
12823
12859
  console.time('下拉选中时间');
12824
12860
  var text = '';
12825
12861
  var keyValue = '';
@@ -12863,7 +12899,7 @@ var columns = [{
12863
12899
  text += v.text + ',';
12864
12900
  textArr.push(v.text);
12865
12901
  }
12866
- if (_this13.isAllowMultiSelect && _this13.isMultiLinesDisplay && !_this13.mutexSelect) {
12902
+ if (_this12.isAllowMultiSelect && _this12.isMultiLinesDisplay && !_this12.mutexSelect) {
12867
12903
  text += '\n';
12868
12904
  }
12869
12905
  keyValue += v.id + ',';
@@ -12911,7 +12947,7 @@ var columns = [{
12911
12947
  } else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
12912
12948
  text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
12913
12949
  Object.keys(this.textParam).map(function (v) {
12914
- _this13.textParam[v] = currentPoperNode[v];
12950
+ _this12.textParam[v] = currentPoperNode[v];
12915
12951
  });
12916
12952
  if (text == this.textParam.name) {
12917
12953
  text = '';
@@ -12942,7 +12978,7 @@ var columns = [{
12942
12978
  // 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
12943
12979
  if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
12944
12980
  this.$nextTick(function () {
12945
- _this13.handleClose();
12981
+ _this12.handleClose();
12946
12982
  }, 100);
12947
12983
  } else {
12948
12984
  this.handleClose();
@@ -12982,11 +13018,11 @@ var columns = [{
12982
13018
  window.removeEventListener('keydown', this.arrowKeysController);
12983
13019
  },
12984
13020
  customRow: function customRow(record, index) {
12985
- var _this14 = this;
13021
+ var _this13 = this;
12986
13022
  return {
12987
13023
  on: {
12988
13024
  click: function click(event) {
12989
- _this14.clickItemsChange(record);
13025
+ _this13.clickItemsChange(record);
12990
13026
  }
12991
13027
  }
12992
13028
  };
@@ -12998,10 +13034,10 @@ var columns = [{
12998
13034
  });
12999
13035
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
13000
13036
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
13001
- ;// 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=5bdca97f&prod&lang=less&
13037
+ ;// 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=2e927ae2&prod&lang=less&
13002
13038
  // extracted by mini-css-extract-plugin
13003
13039
 
13004
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5bdca97f&prod&lang=less&
13040
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=2e927ae2&prod&lang=less&
13005
13041
 
13006
13042
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
13007
13043
  var componentNormalizer = __webpack_require__(70713);
@@ -81843,6 +81879,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
81843
81879
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bg", void 0);
81844
81880
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dl", void 0);
81845
81881
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_ul", void 0);
81882
+ (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bd", void 0);
81846
81883
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_spacing", void 0);
81847
81884
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_docWidth", void 0);
81848
81885
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_charCount", void 0);
@@ -82012,6 +82049,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82012
82049
  }
82013
82050
  this.drawBackColor();
82014
82051
  this.updateStyleByScript();
82052
+ // this.updateBorder();
82015
82053
  this.drawUnderline();
82016
82054
  this.drawStrikeout();
82017
82055
  if (this.node instanceof TextNode/* TextNode */.R) {
@@ -82301,6 +82339,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82301
82339
  if (this._textNode.dCombineStyle.script !== TextStyle/* StyleScriptType */.n$.sstnormal) {
82302
82340
  tmp = this._dText.clone();
82303
82341
  tmp.font = this.getStyle(this._textNode.dCombineStyle);
82342
+ // console.log(this._dText.getBounds());
82343
+ // console.log(this._wspace, this._dWidth, this._dHeight);
82344
+ // console.log(tmp);
82304
82345
  // rect = tmp.getBounds(); //实际大小
82305
82346
  this.setBounds(0, 0, this._dWidth + this._wspace, this.dHeight);
82306
82347
  switch (this._textNode.dCombineStyle.script) {
@@ -82317,6 +82358,26 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82317
82358
  }
82318
82359
  }
82319
82360
  }
82361
+ }, {
82362
+ key: "updateBorder",
82363
+ value: function updateBorder() {
82364
+ if (!this._bd) this._bd = new createjs.Shape();
82365
+ this._dWidth = this._dWidth + 20;
82366
+ this.dWidth = this._dWidth;
82367
+ this.setBounds(0, -this.dHeight - 5, this._dWidth * 2, this.dHeight * 2);
82368
+ // console.log(this.dWidth, this.dHeight, '---');
82369
+ // console.log(this._textNode.dCombineStyle);
82370
+ // console.log(this._text);
82371
+ this._bd.graphics.clear();
82372
+ this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(5,
82373
+ //x
82374
+ -this.dHeight - 5,
82375
+ //y
82376
+ this.dWidth - 5, this.dHeight * 2);
82377
+ this._dText.x = 5;
82378
+ this._dText.y = 0;
82379
+ this.addChild(this._bd);
82380
+ }
82320
82381
  /**
82321
82382
  * 功能:同getStyleKey()
82322
82383
  * NOTE:TextStyle.getStyleKey()中不要修改size的值
@@ -132602,7 +132663,7 @@ $({ target: 'Number', stat: true }, {
132602
132663
 
132603
132664
  /***/ }),
132604
132665
 
132605
- /***/ 44363:
132666
+ /***/ 17855:
132606
132667
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
132607
132668
 
132608
132669
  "use strict";
@@ -169652,7 +169713,7 @@ var map = {
169652
169713
  "./pageInfoes/PageInfoes.vue": 99749,
169653
169714
  "./paragraph/ParagraphDialog.vue": 58874,
169654
169715
  "./poperSelect/PoperMark.vue": 20734,
169655
- "./poperSelect/PoperSelect.vue": 30900,
169716
+ "./poperSelect/PoperSelect.vue": 44363,
169656
169717
  "./poperTipText/PoperTipText.vue": 84531,
169657
169718
  "./popers/Poper.vue": 57937,
169658
169719
  "./popers/Title.vue": 31276,
@@ -208897,7 +208958,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
208897
208958
  // EXTERNAL MODULE: ./src/plugins/util.ts
208898
208959
  var plugins_util = __webpack_require__(62783);
208899
208960
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
208900
- var PoperSelect = __webpack_require__(30900);
208961
+ var PoperSelect = __webpack_require__(44363);
208901
208962
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
208902
208963
  var PoperMark = __webpack_require__(20734);
208903
208964
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -210302,7 +210363,7 @@ var TextNode = __webpack_require__(27198);
210302
210363
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210303
210364
  var ParagraphNode = __webpack_require__(67945);
210304
210365
  ;// CONCATENATED MODULE: ./src/components/version.ts
210305
- /* harmony default export */ var version = ('3.1.142');
210366
+ /* harmony default export */ var version = ('3.1.144');
210306
210367
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210307
210368
  var PoperTipText = __webpack_require__(84531);
210308
210369
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -224140,8 +224201,8 @@ var VueController = /*#__PURE__*/function () {
224140
224201
  if (node instanceof SignNode/* SignNode */.N && node !== null && node !== void 0 && node.drawNodes[0]) {
224141
224202
  var drawNode = node === null || node === void 0 ? void 0 : node.drawNodes[0];
224142
224203
  result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), {}, {
224143
- ptRight: hoEditorFactory.unitConvert.pxToPt(caret.stageX + drawNode.dWidth),
224144
- ptLeft: result.ptX
224204
+ ptLeft: hoEditorFactory.unitConvert.pxToPt(x - drawNode.dWidth),
224205
+ ptRight: result.ptX
224145
224206
  });
224146
224207
  if (node.number == 0) {
224147
224208
  result.ptTop = result.ptY;
@@ -231014,7 +231075,7 @@ var es_typed_array_to_string = __webpack_require__(15016);
231014
231075
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.with.js
231015
231076
  var es_typed_array_with = __webpack_require__(55315);
231016
231077
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.max-safe-integer.js
231017
- var es_number_max_safe_integer = __webpack_require__(44363);
231078
+ var es_number_max_safe_integer = __webpack_require__(17855);
231018
231079
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.flags.js
231019
231080
  var es_regexp_flags = __webpack_require__(92087);
231020
231081
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js