hoeditor-web 3.1.46 → 3.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +57 -35
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9491,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9491
9491
|
|
|
9492
9492
|
/***/ }),
|
|
9493
9493
|
|
|
9494
|
-
/***/
|
|
9494
|
+
/***/ 1163:
|
|
9495
9495
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9496
9496
|
|
|
9497
9497
|
"use strict";
|
|
@@ -9511,7 +9511,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9511
9511
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9512
9512
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9513
9513
|
var es_string_replace = __webpack_require__(15306);
|
|
9514
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9514
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5e89f073&
|
|
9515
9515
|
|
|
9516
9516
|
|
|
9517
9517
|
|
|
@@ -9593,15 +9593,25 @@ var render = function render() {
|
|
|
9593
9593
|
scopedSlots: _vm._u([{
|
|
9594
9594
|
key: "select",
|
|
9595
9595
|
fn: function fn(text, record, index) {
|
|
9596
|
-
return [_c('
|
|
9596
|
+
return [_vm.mutexSelect ? [index >= 1 && record.type != _vm.currentList[index - 1].type ? _c('p', {
|
|
9597
|
+
key: index + Math.random(),
|
|
9598
|
+
staticClass: "a-checkbox-mutex-line"
|
|
9599
|
+
}) : _vm._e(), _c('a-checkbox', {
|
|
9600
|
+
key: record.id + Math.random(),
|
|
9601
|
+
attrs: {
|
|
9602
|
+
"value": record.id,
|
|
9603
|
+
"checked": record.selected,
|
|
9604
|
+
"disabled": _vm.mutexType !== '' && _vm.mutexType != record.type
|
|
9605
|
+
}
|
|
9606
|
+
})] : [_c('a-checkbox', {
|
|
9597
9607
|
key: record.id + Math.random(),
|
|
9598
9608
|
attrs: {
|
|
9599
9609
|
"value": record.id,
|
|
9600
9610
|
"checked": record.selected
|
|
9601
9611
|
}
|
|
9602
|
-
})];
|
|
9612
|
+
})]];
|
|
9603
9613
|
}
|
|
9604
|
-
}], null, false,
|
|
9614
|
+
}], null, false, 2110942008)
|
|
9605
9615
|
})] : [_c('a-table', {
|
|
9606
9616
|
staticStyle: {
|
|
9607
9617
|
"width": "100%"
|
|
@@ -9958,7 +9968,7 @@ var render = function render() {
|
|
|
9958
9968
|
};
|
|
9959
9969
|
var staticRenderFns = [];
|
|
9960
9970
|
|
|
9961
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9971
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5e89f073&
|
|
9962
9972
|
|
|
9963
9973
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9964
9974
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12595,6 +12605,7 @@ var columns = [{
|
|
|
12595
12605
|
}
|
|
12596
12606
|
},
|
|
12597
12607
|
clickItemsChange: function clickItemsChange(value) {
|
|
12608
|
+
var _this9 = this;
|
|
12598
12609
|
if (this.isSelected) return; // 单选时已选过不在进入选择
|
|
12599
12610
|
if (!this.isAllowMultiSelect) {
|
|
12600
12611
|
this.poperSelectList.map(function (v, index) {
|
|
@@ -12608,17 +12619,24 @@ var columns = [{
|
|
|
12608
12619
|
this.isSelected = true;
|
|
12609
12620
|
this.sureSelect(value.input);
|
|
12610
12621
|
} else {
|
|
12622
|
+
var type = [];
|
|
12611
12623
|
this.currentList.map(function (v) {
|
|
12612
12624
|
if (value.id == v.id) {
|
|
12613
|
-
|
|
12625
|
+
if (!_this9.mutexType || _this9.mutexType == v.type) {
|
|
12626
|
+
v.selected = !v.selected;
|
|
12627
|
+
}
|
|
12628
|
+
}
|
|
12629
|
+
if (v.selected) {
|
|
12630
|
+
type.push(v.type);
|
|
12614
12631
|
}
|
|
12615
12632
|
return v;
|
|
12616
12633
|
});
|
|
12634
|
+
this.mutexType = type[0] ? type[0] : '';
|
|
12617
12635
|
this.$forceUpdate();
|
|
12618
12636
|
}
|
|
12619
12637
|
},
|
|
12620
12638
|
selectItems: function selectItems(item, index) {
|
|
12621
|
-
var
|
|
12639
|
+
var _this10 = this;
|
|
12622
12640
|
if (this.isSelected) return; // 单选时已选过不在进入选择
|
|
12623
12641
|
if (!this.isAllowMultiSelect) {
|
|
12624
12642
|
this.poperSelectList.forEach(function (v) {
|
|
@@ -12635,13 +12653,13 @@ var columns = [{
|
|
|
12635
12653
|
v.selected = !v.selected;
|
|
12636
12654
|
}
|
|
12637
12655
|
if (v.selected) {
|
|
12638
|
-
if (
|
|
12656
|
+
if (_this10.isCanSearch && _this10.selectedList.filter(function (m) {
|
|
12639
12657
|
return m.id == v.id;
|
|
12640
12658
|
}).length == 0) {
|
|
12641
|
-
|
|
12659
|
+
_this10.selectedList.push(v);
|
|
12642
12660
|
}
|
|
12643
12661
|
} else {
|
|
12644
|
-
if (
|
|
12662
|
+
if (_this10.isCanSearch) _this10.selectedList = _this10.selectedList.filter(function (m) {
|
|
12645
12663
|
return m.id != v.id;
|
|
12646
12664
|
});
|
|
12647
12665
|
}
|
|
@@ -12652,12 +12670,12 @@ var columns = [{
|
|
|
12652
12670
|
},
|
|
12653
12671
|
// 全选
|
|
12654
12672
|
allSelect: function allSelect() {
|
|
12655
|
-
var
|
|
12673
|
+
var _this11 = this;
|
|
12656
12674
|
this.selectedList = [];
|
|
12657
12675
|
this.poperSelectList.forEach(function (v) {
|
|
12658
12676
|
v.selected = true;
|
|
12659
|
-
|
|
12660
|
-
|
|
12677
|
+
_this11.selectedList.push(v);
|
|
12678
|
+
_this11.selectedIds.push(v.id);
|
|
12661
12679
|
});
|
|
12662
12680
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
12663
12681
|
},
|
|
@@ -12678,7 +12696,7 @@ var columns = [{
|
|
|
12678
12696
|
},
|
|
12679
12697
|
// 选中
|
|
12680
12698
|
sureSelect: function sureSelect(isAutoInput) {
|
|
12681
|
-
var
|
|
12699
|
+
var _this12 = this;
|
|
12682
12700
|
console.time('下拉选中时间');
|
|
12683
12701
|
var text = '';
|
|
12684
12702
|
var keyValue = '';
|
|
@@ -12722,7 +12740,7 @@ var columns = [{
|
|
|
12722
12740
|
text += v.text + ',';
|
|
12723
12741
|
textArr.push(v.text);
|
|
12724
12742
|
}
|
|
12725
|
-
if (
|
|
12743
|
+
if (_this12.isAllowMultiSelect && _this12.isMultiLinesDisplay && !_this12.mutexSelect) {
|
|
12726
12744
|
text += '\n';
|
|
12727
12745
|
}
|
|
12728
12746
|
keyValue += v.id + ',';
|
|
@@ -12770,7 +12788,7 @@ var columns = [{
|
|
|
12770
12788
|
} else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
12771
12789
|
text = text.replace(/,/g, currentPoperNode.downListProperty.splitCharacter);
|
|
12772
12790
|
Object.keys(this.textParam).map(function (v) {
|
|
12773
|
-
|
|
12791
|
+
_this12.textParam[v] = currentPoperNode[v];
|
|
12774
12792
|
});
|
|
12775
12793
|
if (text == this.textParam.name) {
|
|
12776
12794
|
text = '';
|
|
@@ -12801,7 +12819,7 @@ var columns = [{
|
|
|
12801
12819
|
// 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
|
|
12802
12820
|
if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
|
|
12803
12821
|
this.$nextTick(function () {
|
|
12804
|
-
|
|
12822
|
+
_this12.handleClose();
|
|
12805
12823
|
}, 100);
|
|
12806
12824
|
} else {
|
|
12807
12825
|
this.handleClose();
|
|
@@ -12841,11 +12859,11 @@ var columns = [{
|
|
|
12841
12859
|
window.removeEventListener('keydown', this.arrowKeysController);
|
|
12842
12860
|
},
|
|
12843
12861
|
customRow: function customRow(record, index) {
|
|
12844
|
-
var
|
|
12862
|
+
var _this13 = this;
|
|
12845
12863
|
return {
|
|
12846
12864
|
on: {
|
|
12847
12865
|
click: function click(event) {
|
|
12848
|
-
|
|
12866
|
+
_this13.clickItemsChange(record);
|
|
12849
12867
|
}
|
|
12850
12868
|
}
|
|
12851
12869
|
};
|
|
@@ -12857,10 +12875,10 @@ var columns = [{
|
|
|
12857
12875
|
});
|
|
12858
12876
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12859
12877
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12860
|
-
;// 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=
|
|
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&
|
|
12861
12879
|
// extracted by mini-css-extract-plugin
|
|
12862
12880
|
|
|
12863
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12881
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5e89f073&prod&lang=less&
|
|
12864
12882
|
|
|
12865
12883
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12866
12884
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -55656,6 +55674,7 @@ var SelectRange = __webpack_require__(53901);
|
|
|
55656
55674
|
|
|
55657
55675
|
|
|
55658
55676
|
|
|
55677
|
+
|
|
55659
55678
|
/*
|
|
55660
55679
|
* @Author: your name
|
|
55661
55680
|
* @Date: 2020-11-11 11:04:19
|
|
@@ -55692,8 +55711,8 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
55692
55711
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bitMap", void 0);
|
|
55693
55712
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(hoeditfactoryID);
|
|
55694
55713
|
var bounds = hoEditorFactory.vueController.getMainBounds(dWidth, dHeight);
|
|
55695
|
-
_this.dWidth = bounds.imageWidth;
|
|
55696
|
-
_this.dHeight = bounds.imageHeight;
|
|
55714
|
+
_this.dWidth = Number(bounds.imageWidth);
|
|
55715
|
+
_this.dHeight = Number(bounds.imageHeight);
|
|
55697
55716
|
_this._imagePath = imagePath;
|
|
55698
55717
|
_this._markImagePath = markImagePath;
|
|
55699
55718
|
_this._imageY = -_this.dHeight;
|
|
@@ -56160,8 +56179,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
56160
56179
|
var height = Number(json.height);
|
|
56161
56180
|
//const scaleX = Number(json.scaleX);
|
|
56162
56181
|
//const scaleY = Number(json.scaleY);
|
|
56163
|
-
var isFormula = json.isFormula
|
|
56164
|
-
var isBackFill = json.isBackFill
|
|
56182
|
+
var isFormula = json.isFormula == true || json.isFormula === "true" ? true : false;
|
|
56183
|
+
var isBackFill = json.isBackFill == true || json.isBackFill === "true" ? true : false;
|
|
56165
56184
|
var innerIdentifier = json.innerIdentifier || '';
|
|
56166
56185
|
return new ImageNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.imageDataBase64String, width, height,
|
|
56167
56186
|
//scaleX,
|
|
@@ -95689,7 +95708,7 @@ var toDate = function toDate(date) {
|
|
|
95689
95708
|
// if (isNaN(Date.parse(time))) return false;
|
|
95690
95709
|
// return true;
|
|
95691
95710
|
// };
|
|
95692
|
-
var dateFormatList = ['HH:mm', 'HH:mm:ss', 'MM/dd', 'yyyy/MM/dd', 'yyyy/MM/dd HH:mm', 'yyyy/MM/dd HH:mm:ss', 'HH时mm分', 'HH时mm分ss秒', 'MM月dd日', 'yyyy年MM月dd日', 'yyyy年MM月dd日 HH时mm分', 'yyyy年MM月dd日 HH时mm分ss秒', 'MM-dd', 'yyyy-MM-dd', 'yyyy-MM-dd HH:mm', 'yyyy-MM-dd HH:mm:ss'];
|
|
95711
|
+
var dateFormatList = ['HH:mm', 'HH:mm:ss', 'MM/dd', 'yyyy/MM/dd', 'yyyy/MM/dd HH:mm', 'MM/dd HH:mm', 'yyyy/MM/dd HH:mm:ss', 'HH时mm分', 'HH时mm分ss秒', 'MM月dd日', 'yyyy年MM月dd日', 'yyyy年MM月dd日 HH时mm分', 'MM月dd日 HH时mm分', 'yyyy年MM月dd日 HH时mm分ss秒', 'MM-dd', 'yyyy-MM-dd', 'yyyy-MM-dd HH:mm', 'MM-dd HH:mm', 'yyyy-MM-dd HH:mm:ss'];
|
|
95693
95712
|
var dateFormatValueList = [{
|
|
95694
95713
|
value: 'HH:mm'
|
|
95695
95714
|
}, {
|
|
@@ -178100,7 +178119,7 @@ var map = {
|
|
|
178100
178119
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
178101
178120
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
178102
178121
|
"./poperSelect/PoperMark.vue": 20734,
|
|
178103
|
-
"./poperSelect/PoperSelect.vue":
|
|
178122
|
+
"./poperSelect/PoperSelect.vue": 1163,
|
|
178104
178123
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
178105
178124
|
"./popers/Poper.vue": 57937,
|
|
178106
178125
|
"./popers/Title.vue": 85516,
|
|
@@ -217340,7 +217359,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
217340
217359
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
217341
217360
|
var plugins_util = __webpack_require__(62783);
|
|
217342
217361
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
217343
|
-
var PoperSelect = __webpack_require__(
|
|
217362
|
+
var PoperSelect = __webpack_require__(1163);
|
|
217344
217363
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
217345
217364
|
var PoperMark = __webpack_require__(20734);
|
|
217346
217365
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218745,7 +218764,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218745
218764
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218746
218765
|
var ParagraphNode = __webpack_require__(67945);
|
|
218747
218766
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218748
|
-
/* harmony default export */ var version = ('3.1.
|
|
218767
|
+
/* harmony default export */ var version = ('3.1.47');
|
|
218749
218768
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218750
218769
|
var PoperTipText = __webpack_require__(50987);
|
|
218751
218770
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -231398,17 +231417,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231398
231417
|
key: "getSvg",
|
|
231399
231418
|
value: function () {
|
|
231400
231419
|
var _getSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
|
|
231401
|
-
var hoEditorFactory
|
|
231420
|
+
var hoEditorFactory;
|
|
231402
231421
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context11) {
|
|
231403
231422
|
while (1) switch (_context11.prev = _context11.next) {
|
|
231404
231423
|
case 0:
|
|
231405
231424
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231406
231425
|
_context11.next = 3;
|
|
231407
|
-
return hoEditorFactory.printController.
|
|
231426
|
+
return hoEditorFactory.printController.createSvg();
|
|
231408
231427
|
case 3:
|
|
231409
|
-
|
|
231410
|
-
|
|
231411
|
-
case 5:
|
|
231428
|
+
return _context11.abrupt("return", _context11.sent);
|
|
231429
|
+
case 4:
|
|
231412
231430
|
case "end":
|
|
231413
231431
|
return _context11.stop();
|
|
231414
231432
|
}
|
|
@@ -233947,6 +233965,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233947
233965
|
}, {
|
|
233948
233966
|
key: "getElementChangeRecords",
|
|
233949
233967
|
value: function getElementChangeRecords() {
|
|
233968
|
+
var _this10 = this;
|
|
233950
233969
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233951
233970
|
var recordArr = new Array();
|
|
233952
233971
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -233989,6 +234008,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233989
234008
|
recordArr.push(obj);
|
|
233990
234009
|
}
|
|
233991
234010
|
}
|
|
234011
|
+
} else {
|
|
234012
|
+
var id = key.split("|")[0];
|
|
234013
|
+
var node = _this10.getNodeByID('all', id);
|
|
233992
234014
|
}
|
|
233993
234015
|
});
|
|
233994
234016
|
return recordArr;
|