hoeditor-web 3.1.103 → 3.1.104
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 +76 -49
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13854,7 +13854,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13854
13854
|
|
|
13855
13855
|
/***/ }),
|
|
13856
13856
|
|
|
13857
|
-
/***/
|
|
13857
|
+
/***/ 17983:
|
|
13858
13858
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13859
13859
|
|
|
13860
13860
|
"use strict";
|
|
@@ -13868,7 +13868,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13868
13868
|
|
|
13869
13869
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13870
13870
|
var es_function_name = __webpack_require__(68309);
|
|
13871
|
-
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13871
|
+
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=72345796&
|
|
13872
13872
|
|
|
13873
13873
|
var render = function render() {
|
|
13874
13874
|
var _vm = this,
|
|
@@ -14004,7 +14004,9 @@ var render = function render() {
|
|
|
14004
14004
|
"height": "300px"
|
|
14005
14005
|
},
|
|
14006
14006
|
attrs: {
|
|
14007
|
-
"
|
|
14007
|
+
"rowKey": function rowKey(record, index) {
|
|
14008
|
+
return index;
|
|
14009
|
+
},
|
|
14008
14010
|
"scroll": {
|
|
14009
14011
|
y: 270
|
|
14010
14012
|
},
|
|
@@ -14626,7 +14628,7 @@ var render = function render() {
|
|
|
14626
14628
|
};
|
|
14627
14629
|
var staticRenderFns = [];
|
|
14628
14630
|
|
|
14629
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14631
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=72345796&
|
|
14630
14632
|
|
|
14631
14633
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
14632
14634
|
var defineProperty = __webpack_require__(78255);
|
|
@@ -14722,8 +14724,11 @@ var defaultBox = {
|
|
|
14722
14724
|
inputValue: '',
|
|
14723
14725
|
saveTagInput: null,
|
|
14724
14726
|
nodeList: []
|
|
14727
|
+
// customPropertys: {}, // 自定义属性
|
|
14728
|
+
// customPropertyValue: new Object(),
|
|
14725
14729
|
};
|
|
14726
14730
|
},
|
|
14731
|
+
|
|
14727
14732
|
inject: {
|
|
14728
14733
|
hoEditorProvider: {
|
|
14729
14734
|
default: function _default() {
|
|
@@ -14775,11 +14780,13 @@ var defaultBox = {
|
|
|
14775
14780
|
value[key] = v[key];
|
|
14776
14781
|
}
|
|
14777
14782
|
});
|
|
14778
|
-
if (v.customProperty) {
|
|
14779
|
-
_this.radioCheckBox.customProperty = v.customProperty;
|
|
14780
|
-
}
|
|
14781
14783
|
_this.radioCheckBoxGroup.push(value);
|
|
14782
14784
|
});
|
|
14785
|
+
// if (isObject(updateNode.customProperty)) {
|
|
14786
|
+
// this.customPropertys = updateNode.valueList[0].customProperty;
|
|
14787
|
+
// } else {
|
|
14788
|
+
// this.customPropertys = new Object();
|
|
14789
|
+
// }
|
|
14783
14790
|
this.boxGroup = 1;
|
|
14784
14791
|
this.addBox();
|
|
14785
14792
|
} else {
|
|
@@ -14790,11 +14797,18 @@ var defaultBox = {
|
|
|
14790
14797
|
_this.radioCheckBox[key] = updateNode.value[key];
|
|
14791
14798
|
}
|
|
14792
14799
|
});
|
|
14793
|
-
if (updateNode.customProperty) {
|
|
14794
|
-
|
|
14795
|
-
}
|
|
14800
|
+
// if (isObject(updateNode.customProperty)) {
|
|
14801
|
+
// this.customPropertys = updateNode.customProperty;
|
|
14802
|
+
// } else {
|
|
14803
|
+
// this.customPropertys = new Object();
|
|
14804
|
+
// }
|
|
14796
14805
|
this.boxGroup = 0;
|
|
14797
14806
|
}
|
|
14807
|
+
// let property = new Object();
|
|
14808
|
+
// Object.keys(this.customPropertys).forEach((key) => {
|
|
14809
|
+
// property[key] = this.customPropertys[key];
|
|
14810
|
+
// });
|
|
14811
|
+
// this.customPropertyValue = { ...property };
|
|
14798
14812
|
} else {
|
|
14799
14813
|
this.radioCheckBox.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
|
|
14800
14814
|
this.radioCheckBox.controlStyle = this.controlType;
|
|
@@ -14948,10 +14962,10 @@ var defaultBox = {
|
|
|
14948
14962
|
}), _name$data$inject$pro);
|
|
14949
14963
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14950
14964
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14951
|
-
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14965
|
+
;// 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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=72345796&prod&lang=less&
|
|
14952
14966
|
// extracted by mini-css-extract-plugin
|
|
14953
14967
|
|
|
14954
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14968
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=72345796&prod&lang=less&
|
|
14955
14969
|
|
|
14956
14970
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14957
14971
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -93119,8 +93133,10 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
93119
93133
|
var newDates = new Date();
|
|
93120
93134
|
stringDate = "".concat(newDates.getFullYear(), "/").concat(newDates.getMonth() + 1, "/").concat(newDates.getDate(), " ") + stringDate;
|
|
93121
93135
|
}
|
|
93122
|
-
} else if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
93123
|
-
|
|
93136
|
+
} else if (format && format.includes('MM') && !format.toLocaleLowerCase().includes('yyyy')) {
|
|
93137
|
+
if (stringDate.split("/")[1] == '29') {
|
|
93138
|
+
stringDate = '2024/' + stringDate;
|
|
93139
|
+
}
|
|
93124
93140
|
}
|
|
93125
93141
|
_date = toDate(stringDate);
|
|
93126
93142
|
}
|
|
@@ -93138,7 +93154,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
93138
93154
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
93139
93155
|
var seconds = "".concat(_date.getSeconds());
|
|
93140
93156
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
93141
|
-
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd|DD/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
93157
|
+
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy|YYYY/g, year).replace(/MM/g, month).replace(/dd|DD/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
93142
93158
|
};
|
|
93143
93159
|
/**
|
|
93144
93160
|
* 弹窗拖动
|
|
@@ -166700,7 +166716,7 @@ var map = {
|
|
|
166700
166716
|
"./popers/Title.vue": 31276,
|
|
166701
166717
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
166702
166718
|
"./qrCode/QrCode.vue": 59805,
|
|
166703
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
166719
|
+
"./radioCheckBox/RadioCheckbox.vue": 17983,
|
|
166704
166720
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
166705
166721
|
"./sign/Sign.vue": 67218,
|
|
166706
166722
|
"./table/TableCellPoper.vue": 97628,
|
|
@@ -204023,7 +204039,7 @@ Input.install = function (Vue) {
|
|
|
204023
204039
|
|
|
204024
204040
|
|
|
204025
204041
|
/* 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]);
|
|
204026
|
-
;// 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=
|
|
204042
|
+
;// 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=40b25c35&
|
|
204027
204043
|
var render = function render() {
|
|
204028
204044
|
var _vm = this,
|
|
204029
204045
|
_c = _vm._self._c;
|
|
@@ -204150,8 +204166,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
204150
204166
|
var es_number_constructor = __webpack_require__(9653);
|
|
204151
204167
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
204152
204168
|
var es_json_stringify = __webpack_require__(38862);
|
|
204153
|
-
;// 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/HoDoc.vue?vue&type=template&id=
|
|
204154
|
-
var
|
|
204169
|
+
;// 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/HoDoc.vue?vue&type=template&id=6187b845&
|
|
204170
|
+
var HoDocvue_type_template_id_6187b845_render = function render() {
|
|
204155
204171
|
var _vm = this,
|
|
204156
204172
|
_c = _vm._self._c;
|
|
204157
204173
|
return _c('div', {
|
|
@@ -204352,7 +204368,7 @@ var HoDocvue_type_template_id_28aecebc_render = function render() {
|
|
|
204352
204368
|
}
|
|
204353
204369
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
204354
204370
|
};
|
|
204355
|
-
var
|
|
204371
|
+
var HoDocvue_type_template_id_6187b845_staticRenderFns = [];
|
|
204356
204372
|
|
|
204357
204373
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
204358
204374
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -207353,7 +207369,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
207353
207369
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207354
207370
|
var ParagraphNode = __webpack_require__(67945);
|
|
207355
207371
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207356
|
-
/* harmony default export */ var version = ('3.1.
|
|
207372
|
+
/* harmony default export */ var version = ('3.1.104');
|
|
207357
207373
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
207358
207374
|
var PoperTipText = __webpack_require__(50987);
|
|
207359
207375
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -207955,6 +207971,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207955
207971
|
var _this5 = this;
|
|
207956
207972
|
this.selectMarkStyle.display = 'none';
|
|
207957
207973
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207974
|
+
if (this.isCanEdit(hoEditorFactory)) return;
|
|
207958
207975
|
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
207959
207976
|
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
207960
207977
|
setTimeout(function () {
|
|
@@ -207983,6 +208000,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207983
208000
|
return parentNode;
|
|
207984
208001
|
},
|
|
207985
208002
|
createSelectMark: function createSelectMark(node, paintStatus, pageIndex) {
|
|
208003
|
+
if (this.isCanEdit()) return;
|
|
207986
208004
|
var parentNode = this.getRootNode(node);
|
|
207987
208005
|
if (parentNode) {
|
|
207988
208006
|
var _parentNode$downListP;
|
|
@@ -208019,6 +208037,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208019
208037
|
},
|
|
208020
208038
|
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
208021
208039
|
var _this6 = this;
|
|
208040
|
+
if (this.isCanEdit()) return;
|
|
208022
208041
|
if (paintStatus === 0) {
|
|
208023
208042
|
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
208024
208043
|
return;
|
|
@@ -208049,6 +208068,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208049
208068
|
},
|
|
208050
208069
|
createInputProper: function createInputProper(node, parentNode, paintStatus, pageIndex) {
|
|
208051
208070
|
var _this7 = this;
|
|
208071
|
+
if (this.isCanEdit()) return;
|
|
208052
208072
|
if (paintStatus === 0) {
|
|
208053
208073
|
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
208054
208074
|
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
@@ -208236,15 +208256,30 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208236
208256
|
this.poperPos = (0,objectSpread2/* default */.Z)({}, pos);
|
|
208237
208257
|
}
|
|
208238
208258
|
},
|
|
208259
|
+
isCanEdit: function isCanEdit(hoEditorFactory) {
|
|
208260
|
+
if (!hoEditorFactory) {
|
|
208261
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
208262
|
+
}
|
|
208263
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit && (hoEditorFactory.forbidEditBeforeSign || hoEditorFactory.lockContent)) {
|
|
208264
|
+
var endPos = hoEditorFactory.drawTree.selectRange.spEnd;
|
|
208265
|
+
var node = hoEditorFactory.drawTree.getDNodeByPath(endPos.path);
|
|
208266
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node);
|
|
208267
|
+
var stagePt = dline.localToGlobal(node.x, node.y);
|
|
208268
|
+
var result = hoEditorFactory.vueController.isCanEdit(endPos.page.pageIndex, stagePt.x, stagePt.y);
|
|
208269
|
+
return !result;
|
|
208270
|
+
}
|
|
208271
|
+
return false;
|
|
208272
|
+
},
|
|
208239
208273
|
/**
|
|
208240
208274
|
* 鼠标右键 打开右键菜单 并计算弹出位置
|
|
208241
208275
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
208242
208276
|
*/
|
|
208243
208277
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
208244
208278
|
var _this8 = this;
|
|
208245
|
-
|
|
208279
|
+
setTimeout(function () {
|
|
208246
208280
|
var _hoEditorFactory$docT;
|
|
208247
208281
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this8.hoEditorId);
|
|
208282
|
+
if (_this8.isCanEdit(hoEditorFactory)) return;
|
|
208248
208283
|
var rightPosition = {
|
|
208249
208284
|
clientX: e.clientX || e.pageX,
|
|
208250
208285
|
clientY: e.clientY || e.pageY
|
|
@@ -208297,7 +208332,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208297
208332
|
}
|
|
208298
208333
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
208299
208334
|
_this8.$emit('rightClickEventIn', rightPosition);
|
|
208300
|
-
});
|
|
208335
|
+
}, 0);
|
|
208301
208336
|
},
|
|
208302
208337
|
hoCopy: function hoCopy(e) {
|
|
208303
208338
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
@@ -208350,10 +208385,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208350
208385
|
});
|
|
208351
208386
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
208352
208387
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
208353
|
-
;// 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/HoDoc.vue?vue&type=style&index=0&id=
|
|
208388
|
+
;// 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/HoDoc.vue?vue&type=style&index=0&id=6187b845&prod&lang=less&
|
|
208354
208389
|
// extracted by mini-css-extract-plugin
|
|
208355
208390
|
|
|
208356
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
208391
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=6187b845&prod&lang=less&
|
|
208357
208392
|
|
|
208358
208393
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
208359
208394
|
|
|
@@ -208366,8 +208401,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208366
208401
|
|
|
208367
208402
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
208368
208403
|
components_HoDocvue_type_script_lang_js_,
|
|
208369
|
-
|
|
208370
|
-
|
|
208404
|
+
HoDocvue_type_template_id_6187b845_render,
|
|
208405
|
+
HoDocvue_type_template_id_6187b845_staticRenderFns,
|
|
208371
208406
|
false,
|
|
208372
208407
|
null,
|
|
208373
208408
|
null,
|
|
@@ -217340,12 +217375,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217340
217375
|
// }
|
|
217341
217376
|
// }
|
|
217342
217377
|
// }
|
|
217378
|
+
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
217343
217379
|
var drawPage = hoEditorFactory.drawTree.drawPages[pageIndex];
|
|
217344
217380
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
217345
217381
|
var child = drawPage.selectContainer.children[j];
|
|
217346
217382
|
if (child.name && child.name.includes("mask")) {
|
|
217347
217383
|
var bounds = child.getBounds();
|
|
217348
|
-
if (stageY > bounds.y && stageY < bounds.y + bounds.height) {
|
|
217384
|
+
if (stageY > bounds.y * scaleXY && stageY < bounds.y * scaleXY + bounds.height * scaleXY) {
|
|
217349
217385
|
return false;
|
|
217350
217386
|
}
|
|
217351
217387
|
}
|
|
@@ -224776,8 +224812,8 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224776
224812
|
var dNode = hoEditorFactory.drawTree.getDNodeByPath(curDomRange.endPath);
|
|
224777
224813
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
224778
224814
|
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
224779
|
-
|
|
224780
|
-
if (!
|
|
224815
|
+
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.x, stagePt.y);
|
|
224816
|
+
if (!result) {
|
|
224781
224817
|
return false;
|
|
224782
224818
|
}
|
|
224783
224819
|
}
|
|
@@ -224863,6 +224899,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224863
224899
|
|
|
224864
224900
|
|
|
224865
224901
|
|
|
224902
|
+
|
|
224866
224903
|
var ElementController = /*#__PURE__*/function () {
|
|
224867
224904
|
function ElementController(hoEditorFactoryID) {
|
|
224868
224905
|
(0,esm_classCallCheck/* default */.Z)(this, ElementController);
|
|
@@ -225000,6 +225037,9 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
225000
225037
|
key: "updateDateTimeText",
|
|
225001
225038
|
value: function updateDateTimeText(node, text) {
|
|
225002
225039
|
if (node.text === text) return;
|
|
225040
|
+
if (text) {
|
|
225041
|
+
text = (0,plugins_util/* dateFormat */.vc)(text, node.controlStyle);
|
|
225042
|
+
}
|
|
225003
225043
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
225004
225044
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
|
|
225005
225045
|
return;
|
|
@@ -237718,11 +237758,11 @@ var commondata = __webpack_require__(76285);
|
|
|
237718
237758
|
'hoEditorProvider.controlType': {
|
|
237719
237759
|
deep: true,
|
|
237720
237760
|
handler: function handler(newValue, oldValue) {
|
|
237721
|
-
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
237761
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph', 'RadioBox', 'CheckBox'].includes(oldValue)) {
|
|
237722
237762
|
this.$emit('closeTextModal');
|
|
237723
237763
|
this.hoEditorProvider.customPropertyValue = {};
|
|
237724
237764
|
}
|
|
237725
|
-
if (['text', 'date'].includes(newValue)) {
|
|
237765
|
+
if (['text', 'date', 'RadioBox', 'CheckBox'].includes(newValue)) {
|
|
237726
237766
|
if ((0,type/* isObject */.Kn)(this.hoEditorProvider.customPropertyValue)) {
|
|
237727
237767
|
this.$emit('openTextModal', (0,objectSpread2/* default */.Z)({}, this.hoEditorProvider.customPropertyValue));
|
|
237728
237768
|
}
|
|
@@ -238455,10 +238495,10 @@ var commondata = __webpack_require__(76285);
|
|
|
238455
238495
|
});
|
|
238456
238496
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
238457
238497
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
238458
|
-
;// 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/HoDocs.vue?vue&type=style&index=0&id=
|
|
238498
|
+
;// 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/HoDocs.vue?vue&type=style&index=0&id=40b25c35&prod&lang=less&media=print&
|
|
238459
238499
|
// extracted by mini-css-extract-plugin
|
|
238460
238500
|
|
|
238461
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
238501
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=40b25c35&prod&lang=less&media=print&
|
|
238462
238502
|
|
|
238463
238503
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
238464
238504
|
|
|
@@ -245354,18 +245394,15 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245354
245394
|
}
|
|
245355
245395
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245356
245396
|
this.rightType = 'text';
|
|
245357
|
-
// this.dataSource = node.bandDataSource;
|
|
245358
245397
|
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245359
245398
|
} else if (node instanceof MarkNode/* MarkNode */.j && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245360
245399
|
var parentNode = node.parentNode;
|
|
245361
245400
|
this.rightType = 'text';
|
|
245362
|
-
// this.dataSource = parentNode.bandDataSource;
|
|
245363
245401
|
if ((0,type/* isObject */.Kn)(parentNode.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, parentNode.customProperty);
|
|
245364
245402
|
} else if (node instanceof TextNode/* TextNode */.R) {
|
|
245365
245403
|
var _parentNode = node.parentNode;
|
|
245366
245404
|
if (_parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245367
245405
|
this.rightType = 'text';
|
|
245368
|
-
// this.dataSource = parentNode.bandDataSource;
|
|
245369
245406
|
if ((0,type/* isObject */.Kn)(_parentNode.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, _parentNode.customProperty);
|
|
245370
245407
|
} else if (_parentNode instanceof CellNode/* CellNode */.D) {
|
|
245371
245408
|
this.rightTypeIsTable = true;
|
|
@@ -245380,23 +245417,13 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245380
245417
|
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245381
245418
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
245382
245419
|
this.rightType = 'select';
|
|
245383
|
-
// if (isObject(node.customProperty)) this.customPropertyValue = { ...node.customProperty };
|
|
245384
245420
|
} else if (node instanceof BarcodeNode/* BarcodeNode */.T) {
|
|
245385
245421
|
this.rightType = 'barcode';
|
|
245386
245422
|
} else if (node instanceof QrcodeNode/* QrcodeNode */.d) {
|
|
245387
245423
|
this.rightType = 'qrcode';
|
|
245388
|
-
// this.dataSource = {
|
|
245389
|
-
// dataSourceEnabled: node.dataSourceEnabled,
|
|
245390
|
-
// dataSource: node.dataSource,
|
|
245391
|
-
// format: node.format,
|
|
245392
|
-
// visitPath: node.visitPath,
|
|
245393
|
-
// isReadOnly: node.isReadOnly,
|
|
245394
|
-
// autoUpdate: node.autoUpdate,
|
|
245395
|
-
// executeStatus: Number(node.execState),
|
|
245396
|
-
// };
|
|
245397
245424
|
} else if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) {
|
|
245398
245425
|
this.rightType = node.controlStyle;
|
|
245399
|
-
|
|
245426
|
+
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245400
245427
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
245401
245428
|
if (!node.isBackFill) {
|
|
245402
245429
|
this.rightType = 'edit-image';
|
|
@@ -245741,7 +245768,7 @@ var rarewords = __webpack_require__(43903);
|
|
|
245741
245768
|
|
|
245742
245769
|
|
|
245743
245770
|
|
|
245744
|
-
var CLICK = '
|
|
245771
|
+
var CLICK = 'mousedown';
|
|
245745
245772
|
var captureInstances = Object.create(null);
|
|
245746
245773
|
var nonCaptureInstances = Object.create(null);
|
|
245747
245774
|
var captureEventHandlers = Object.create(null);
|