hoeditor-web 3.0.81 → 3.0.82
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 +246 -77
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -16591,7 +16591,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
16591
16591
|
|
|
16592
16592
|
/***/ }),
|
|
16593
16593
|
|
|
16594
|
-
/***/
|
|
16594
|
+
/***/ 61973:
|
|
16595
16595
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16596
16596
|
|
|
16597
16597
|
"use strict";
|
|
@@ -16607,7 +16607,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
16607
16607
|
var es_array_includes = __webpack_require__(26699);
|
|
16608
16608
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
16609
16609
|
var es_string_includes = __webpack_require__(32023);
|
|
16610
|
-
;// 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/table/TableCellProperty.vue?vue&type=template&id=
|
|
16610
|
+
;// 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/table/TableCellProperty.vue?vue&type=template&id=488dae95&
|
|
16611
16611
|
|
|
16612
16612
|
|
|
16613
16613
|
var render = function render() {
|
|
@@ -16856,7 +16856,11 @@ var render = function render() {
|
|
|
16856
16856
|
staticStyle: {
|
|
16857
16857
|
"display": "inline-block"
|
|
16858
16858
|
}
|
|
16859
|
-
}, [_vm._v("边框颜色")]), _c('
|
|
16859
|
+
}, [_vm._v("边框颜色")]), _c('span', {
|
|
16860
|
+
staticStyle: {
|
|
16861
|
+
"padding": "0 10px 0 0"
|
|
16862
|
+
}
|
|
16863
|
+
}, [_vm._v("上")]), _c('ho-color-picker', {
|
|
16860
16864
|
model: {
|
|
16861
16865
|
value: _vm.gridLinesColor[0],
|
|
16862
16866
|
callback: function callback($$v) {
|
|
@@ -16864,6 +16868,99 @@ var render = function render() {
|
|
|
16864
16868
|
},
|
|
16865
16869
|
expression: "gridLinesColor[0]"
|
|
16866
16870
|
}
|
|
16871
|
+
}), _c('span', {
|
|
16872
|
+
staticStyle: {
|
|
16873
|
+
"padding": "0 10px 0 0"
|
|
16874
|
+
}
|
|
16875
|
+
}, [_vm._v("下")]), _c('ho-color-picker', {
|
|
16876
|
+
model: {
|
|
16877
|
+
value: _vm.gridLinesColor[1],
|
|
16878
|
+
callback: function callback($$v) {
|
|
16879
|
+
_vm.$set(_vm.gridLinesColor, 1, $$v);
|
|
16880
|
+
},
|
|
16881
|
+
expression: "gridLinesColor[1]"
|
|
16882
|
+
}
|
|
16883
|
+
}), _c('span', {
|
|
16884
|
+
staticStyle: {
|
|
16885
|
+
"padding": "0 10px 0 0"
|
|
16886
|
+
}
|
|
16887
|
+
}, [_vm._v("左")]), _c('ho-color-picker', {
|
|
16888
|
+
model: {
|
|
16889
|
+
value: _vm.gridLinesColor[2],
|
|
16890
|
+
callback: function callback($$v) {
|
|
16891
|
+
_vm.$set(_vm.gridLinesColor, 2, $$v);
|
|
16892
|
+
},
|
|
16893
|
+
expression: "gridLinesColor[2]"
|
|
16894
|
+
}
|
|
16895
|
+
}), _c('span', {
|
|
16896
|
+
staticStyle: {
|
|
16897
|
+
"padding": "0 10px 0 0"
|
|
16898
|
+
}
|
|
16899
|
+
}, [_vm._v("右")]), _c('ho-color-picker', {
|
|
16900
|
+
model: {
|
|
16901
|
+
value: _vm.gridLinesColor[3],
|
|
16902
|
+
callback: function callback($$v) {
|
|
16903
|
+
_vm.$set(_vm.gridLinesColor, 3, $$v);
|
|
16904
|
+
},
|
|
16905
|
+
expression: "gridLinesColor[3]"
|
|
16906
|
+
}
|
|
16907
|
+
})], 1)]), _c('div', {
|
|
16908
|
+
staticClass: "control-item"
|
|
16909
|
+
}, [_c('div', {
|
|
16910
|
+
staticClass: "grid-lines-color-item"
|
|
16911
|
+
}, [_c('span', {
|
|
16912
|
+
staticClass: "label",
|
|
16913
|
+
staticStyle: {
|
|
16914
|
+
"display": "inline-block"
|
|
16915
|
+
}
|
|
16916
|
+
}, [_vm._v("显示边框")]), _c('span', {
|
|
16917
|
+
staticStyle: {
|
|
16918
|
+
"padding": "0 10px 0 0"
|
|
16919
|
+
}
|
|
16920
|
+
}, [_vm._v("上")]), _c('a-checkbox', {
|
|
16921
|
+
model: {
|
|
16922
|
+
value: _vm.gridLineDisplay[0],
|
|
16923
|
+
callback: function callback($$v) {
|
|
16924
|
+
_vm.$set(_vm.gridLineDisplay, 0, $$v);
|
|
16925
|
+
},
|
|
16926
|
+
expression: "gridLineDisplay[0]"
|
|
16927
|
+
}
|
|
16928
|
+
}), _c('span', {
|
|
16929
|
+
staticStyle: {
|
|
16930
|
+
"padding": "0 10px"
|
|
16931
|
+
}
|
|
16932
|
+
}, [_vm._v("下")]), _c('a-checkbox', {
|
|
16933
|
+
model: {
|
|
16934
|
+
value: _vm.gridLineDisplay[1],
|
|
16935
|
+
callback: function callback($$v) {
|
|
16936
|
+
_vm.$set(_vm.gridLineDisplay, 1, $$v);
|
|
16937
|
+
},
|
|
16938
|
+
expression: "gridLineDisplay[1]"
|
|
16939
|
+
}
|
|
16940
|
+
}), _c('span', {
|
|
16941
|
+
staticStyle: {
|
|
16942
|
+
"padding": "0 10px"
|
|
16943
|
+
}
|
|
16944
|
+
}, [_vm._v("左")]), _c('a-checkbox', {
|
|
16945
|
+
model: {
|
|
16946
|
+
value: _vm.gridLineDisplay[2],
|
|
16947
|
+
callback: function callback($$v) {
|
|
16948
|
+
_vm.$set(_vm.gridLineDisplay, 2, $$v);
|
|
16949
|
+
},
|
|
16950
|
+
expression: "gridLineDisplay[2]"
|
|
16951
|
+
}
|
|
16952
|
+
}), _c('span', {
|
|
16953
|
+
staticStyle: {
|
|
16954
|
+
"padding": "0 10px"
|
|
16955
|
+
}
|
|
16956
|
+
}, [_vm._v("右")]), _c('a-checkbox', {
|
|
16957
|
+
model: {
|
|
16958
|
+
value: _vm.gridLineDisplay[3],
|
|
16959
|
+
callback: function callback($$v) {
|
|
16960
|
+
_vm.$set(_vm.gridLineDisplay, 3, $$v);
|
|
16961
|
+
},
|
|
16962
|
+
expression: "gridLineDisplay[3]"
|
|
16963
|
+
}
|
|
16867
16964
|
})], 1)]), _c('PrintLineStyle', {
|
|
16868
16965
|
attrs: {
|
|
16869
16966
|
"isDrawGridlines": false,
|
|
@@ -16876,9 +16973,6 @@ var render = function render() {
|
|
|
16876
16973
|
}), _c('li', {
|
|
16877
16974
|
staticClass: "control-item"
|
|
16878
16975
|
}, [_c('a-checkbox', {
|
|
16879
|
-
attrs: {
|
|
16880
|
-
"disabled": !_vm.isDrawGridlines
|
|
16881
|
-
},
|
|
16882
16976
|
model: {
|
|
16883
16977
|
value: _vm.printGridLines,
|
|
16884
16978
|
callback: function callback($$v) {
|
|
@@ -17335,7 +17429,7 @@ var render = function render() {
|
|
|
17335
17429
|
};
|
|
17336
17430
|
var staticRenderFns = [];
|
|
17337
17431
|
|
|
17338
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
17432
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=488dae95&
|
|
17339
17433
|
|
|
17340
17434
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
|
|
17341
17435
|
var slicedToArray = __webpack_require__(27222);
|
|
@@ -17347,6 +17441,8 @@ var es_array_filter = __webpack_require__(57327);
|
|
|
17347
17441
|
var es_object_to_string = __webpack_require__(41539);
|
|
17348
17442
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
17349
17443
|
var es_function_name = __webpack_require__(68309);
|
|
17444
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
17445
|
+
var es_array_map = __webpack_require__(21249);
|
|
17350
17446
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
17351
17447
|
var es_array_concat = __webpack_require__(92222);
|
|
17352
17448
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
@@ -17388,6 +17484,7 @@ var util = __webpack_require__(62783);
|
|
|
17388
17484
|
|
|
17389
17485
|
|
|
17390
17486
|
|
|
17487
|
+
|
|
17391
17488
|
var columns = [{
|
|
17392
17489
|
dataIndex: 'rowIndexs',
|
|
17393
17490
|
key: 'rowIndexs',
|
|
@@ -17461,6 +17558,7 @@ var columns = [{
|
|
|
17461
17558
|
// 是否绘制边框
|
|
17462
17559
|
gridLinesColor: ['#000000', '#000000', '#000000', '#000000'],
|
|
17463
17560
|
// 边框边框颜色 上、下、左、右
|
|
17561
|
+
gridLineDisplay: [true, true, true, true],
|
|
17464
17562
|
gridLinesStyle: 4,
|
|
17465
17563
|
// 边框样式
|
|
17466
17564
|
span: 0,
|
|
@@ -17519,6 +17617,16 @@ var columns = [{
|
|
|
17519
17617
|
} else {
|
|
17520
17618
|
this.gridLinesColor = ['#000000', '#000000', '#000000', '#000000'];
|
|
17521
17619
|
}
|
|
17620
|
+
if (Array.isArray(cellNode.cellProperty.gridLineDisplay)) {
|
|
17621
|
+
this.gridLineDisplay = (0,toConsumableArray/* default */.Z)(cellNode.cellProperty.gridLineDisplay).map(function (v) {
|
|
17622
|
+
if (v == true || v == 'true') {
|
|
17623
|
+
return true;
|
|
17624
|
+
}
|
|
17625
|
+
return false;
|
|
17626
|
+
});
|
|
17627
|
+
} else {
|
|
17628
|
+
this.gridLineDisplay = [true, true, true, true];
|
|
17629
|
+
}
|
|
17522
17630
|
this.backColor = cellNode.cellProperty.backColor ? cellNode.cellProperty.backColor : '#ffffff';
|
|
17523
17631
|
this.gridLinesStyle = cellNode.cellProperty.gridLinesStyle;
|
|
17524
17632
|
this.span = cellNode.cellProperty.span;
|
|
@@ -17559,9 +17667,9 @@ var columns = [{
|
|
|
17559
17667
|
},
|
|
17560
17668
|
methods: {
|
|
17561
17669
|
isDrawGridlinesChange: function isDrawGridlinesChange() {
|
|
17562
|
-
if (!this.isDrawGridlines) {
|
|
17563
|
-
|
|
17564
|
-
}
|
|
17670
|
+
// if (!this.isDrawGridlines) {
|
|
17671
|
+
// this.printGridLines = false;
|
|
17672
|
+
// }
|
|
17565
17673
|
},
|
|
17566
17674
|
getCellNodes: function getCellNodes() {
|
|
17567
17675
|
var nodes = this.vueController.findNodebyPath(this.endPath).node;
|
|
@@ -17659,7 +17767,8 @@ var columns = [{
|
|
|
17659
17767
|
},
|
|
17660
17768
|
sure: function sure() {
|
|
17661
17769
|
var _this2 = this;
|
|
17662
|
-
this.gridLinesColor = [this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0]];
|
|
17770
|
+
// this.gridLinesColor = [this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0]];
|
|
17771
|
+
|
|
17663
17772
|
var params = {
|
|
17664
17773
|
id: this.id,
|
|
17665
17774
|
lightCellBorders: this.lightCellBorders,
|
|
@@ -17671,6 +17780,7 @@ var columns = [{
|
|
|
17671
17780
|
cellInnerMargin: [this.cellTop, this.cellBottom, this.cellLeft, this.cellRight],
|
|
17672
17781
|
isDrawGridlines: this.isDrawGridlines,
|
|
17673
17782
|
gridLinesColor: this.gridLinesColor,
|
|
17783
|
+
gridLineDisplay: this.gridLineDisplay,
|
|
17674
17784
|
gridLinesStyle: this.gridLinesStyle,
|
|
17675
17785
|
span: this.span,
|
|
17676
17786
|
alignTextToGridline: this.alignTextToGridline,
|
|
@@ -17717,10 +17827,10 @@ var columns = [{
|
|
|
17717
17827
|
});
|
|
17718
17828
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
|
|
17719
17829
|
/* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
|
|
17720
|
-
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
17830
|
+
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=488dae95&prod&lang=scss&
|
|
17721
17831
|
// extracted by mini-css-extract-plugin
|
|
17722
17832
|
|
|
17723
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
17833
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=488dae95&prod&lang=scss&
|
|
17724
17834
|
|
|
17725
17835
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
17726
17836
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -39481,16 +39591,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39481
39591
|
}
|
|
39482
39592
|
startPath = domRange.startPath;
|
|
39483
39593
|
endPath = domRange.endPath;
|
|
39484
|
-
if (startPath !== endPath && domRange.npEnd.node instanceof
|
|
39485
|
-
|
|
39486
|
-
|
|
39487
|
-
|
|
39488
|
-
|
|
39489
|
-
|
|
39490
|
-
|
|
39491
|
-
|
|
39492
|
-
|
|
39493
|
-
|
|
39594
|
+
// if (startPath !== endPath && domRange.npEnd.node instanceof MarkNode) {
|
|
39595
|
+
// const nodes = DomRange.getSelectDomNodesForDelete(
|
|
39596
|
+
// this._hoEditorFactoryID,
|
|
39597
|
+
// startPath,
|
|
39598
|
+
// endPath
|
|
39599
|
+
// );
|
|
39600
|
+
// if (nodes.length == 1 && nodes[0] instanceof TextInputFieldNode && nodes[0].isEmpty()) {
|
|
39601
|
+
// startPath = nodes[0].StartMarkNode.getNodePath();
|
|
39602
|
+
// endPath = nodes[0].childNodes[1].getNodePath();
|
|
39603
|
+
// const newDomRange = new DomRange(this._hoEditorFactoryID, startPath, endPath);
|
|
39604
|
+
// hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
39605
|
+
// hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
39606
|
+
// }
|
|
39607
|
+
// }
|
|
39494
39608
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_22__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_25__/* .DocAction.daInsert */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_22__/* .OperType.keyBoardInput */ .y.keyBoardInput);
|
|
39495
39609
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
39496
39610
|
if (domRange.npStart.node && domRange.npStart.node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
@@ -72972,15 +73086,17 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
72972
73086
|
/* harmony export */ "L": function() { return /* binding */ DrawDateTime; }
|
|
72973
73087
|
/* harmony export */ });
|
|
72974
73088
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
|
|
72975
|
-
/* harmony import */ var
|
|
73089
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(66298);
|
|
72976
73090
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75808);
|
|
72977
73091
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11651);
|
|
72978
73092
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19593);
|
|
72979
|
-
/* harmony import */ var
|
|
73093
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78255);
|
|
72980
73094
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
|
|
72981
73095
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
72982
73096
|
/* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57590);
|
|
72983
73097
|
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66114);
|
|
73098
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74089);
|
|
73099
|
+
|
|
72984
73100
|
|
|
72985
73101
|
|
|
72986
73102
|
|
|
@@ -73005,9 +73121,9 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73005
73121
|
var _this;
|
|
73006
73122
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawDateTime);
|
|
73007
73123
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, 0);
|
|
73008
|
-
(0,
|
|
73009
|
-
(0,
|
|
73010
|
-
(0,
|
|
73124
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_text", void 0);
|
|
73125
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_textStyle", void 0);
|
|
73126
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_dText", void 0);
|
|
73011
73127
|
_this._text = node.text;
|
|
73012
73128
|
_this._textStyle = textStyle;
|
|
73013
73129
|
_this._dText = new _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_5__/* .DrawSimpleText */ .b(_this._text, textStyle.getStyleKey(), textStyle.color, 0);
|
|
@@ -73015,12 +73131,13 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73015
73131
|
_this.dHeight = height;
|
|
73016
73132
|
_this.charSpace = 0;
|
|
73017
73133
|
_this.drawDateTime();
|
|
73018
|
-
|
|
73134
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
73135
|
+
if (hoEditorFactory.isDrawMustMarker && node.customProperty && node.customProperty.must && node.text === node.labelText) {
|
|
73019
73136
|
_this.drawMarkIcon();
|
|
73020
73137
|
}
|
|
73021
73138
|
return _this;
|
|
73022
73139
|
}
|
|
73023
|
-
(0,
|
|
73140
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(DrawDateTime, [{
|
|
73024
73141
|
key: "text",
|
|
73025
73142
|
get: function get() {
|
|
73026
73143
|
return this._text;
|
|
@@ -73070,11 +73187,11 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73070
73187
|
/* harmony export */ "I": function() { return /* binding */ DrawDownListNode; }
|
|
73071
73188
|
/* harmony export */ });
|
|
73072
73189
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
|
|
73073
|
-
/* harmony import */ var
|
|
73190
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(66298);
|
|
73074
73191
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75808);
|
|
73075
73192
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11651);
|
|
73076
73193
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19593);
|
|
73077
|
-
/* harmony import */ var
|
|
73194
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(78255);
|
|
73078
73195
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68309);
|
|
73079
73196
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
73080
73197
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40561);
|
|
@@ -73082,6 +73199,8 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73082
73199
|
/* harmony import */ var _editor_dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(45712);
|
|
73083
73200
|
/* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57590);
|
|
73084
73201
|
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(66114);
|
|
73202
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(74089);
|
|
73203
|
+
|
|
73085
73204
|
|
|
73086
73205
|
|
|
73087
73206
|
|
|
@@ -73110,10 +73229,10 @@ var DrawDownListNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73110
73229
|
var _this;
|
|
73111
73230
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawDownListNode);
|
|
73112
73231
|
_this = _super.call(this, hoEditorFactoryID, rootPath, node, 0);
|
|
73113
|
-
(0,
|
|
73114
|
-
(0,
|
|
73115
|
-
(0,
|
|
73116
|
-
(0,
|
|
73232
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_text", void 0);
|
|
73233
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_textStyle", void 0);
|
|
73234
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_dText", void 0);
|
|
73235
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_charCount", void 0);
|
|
73117
73236
|
_this._text = node.text;
|
|
73118
73237
|
_this._textStyle = textStyle;
|
|
73119
73238
|
_this._node = node;
|
|
@@ -73122,12 +73241,13 @@ var DrawDownListNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73122
73241
|
_this.dWidth = _this._dText.getMeasuredWidth(); //+ charSpace * (this._text.length - 1);
|
|
73123
73242
|
_this.dHeight = height;
|
|
73124
73243
|
_this.drawDownList(0);
|
|
73125
|
-
|
|
73244
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
73245
|
+
if (hoEditorFactory.isDrawMustMarker && node instanceof _editor_dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_6__/* .DownListNode */ .yF && node.customProperty && node.customProperty.must && node.keyValue === "") {
|
|
73126
73246
|
_this.drawMarkIcon();
|
|
73127
73247
|
}
|
|
73128
73248
|
return _this;
|
|
73129
73249
|
}
|
|
73130
|
-
(0,
|
|
73250
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(DrawDownListNode, [{
|
|
73131
73251
|
key: "charCount",
|
|
73132
73252
|
get: function get() {
|
|
73133
73253
|
return this._charCount;
|
|
@@ -73303,7 +73423,7 @@ var DrawMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
73303
73423
|
if (_this.dWidth != 0 && node.MarkNodeType == _editor_dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_9__/* .MarkNodeType.mtContent */ .q.mtContent) _this.addChild(_this._dText);
|
|
73304
73424
|
_this.drawBackColor();
|
|
73305
73425
|
_this.drawUnderline();
|
|
73306
|
-
if (node.MarkNodeType == _editor_dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_9__/* .MarkNodeType.mtEnd */ .q.mtEnd && _this.text.substring(0, 1) !== "C" && node.parentNode instanceof _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_10__/* .TextInputFieldNode */ .re) {
|
|
73426
|
+
if (hoEditorFactory.isDrawMustMarker && node.MarkNodeType == _editor_dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_9__/* .MarkNodeType.mtEnd */ .q.mtEnd && _this.text.substring(0, 1) !== "C" && node.parentNode instanceof _editor_dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_10__/* .TextInputFieldNode */ .re) {
|
|
73307
73427
|
var customProperty = node.parentNode.customProperty;
|
|
73308
73428
|
if (customProperty && customProperty.must && node.parentNode.childNodes[1] instanceof _editor_dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_9__/* .MarkNode */ .j) {
|
|
73309
73429
|
_this.drawMarkIcon();
|
|
@@ -89346,30 +89466,26 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89346
89466
|
// }
|
|
89347
89467
|
//if(nodes.length == 0) return;
|
|
89348
89468
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
89349
|
-
_context2.next =
|
|
89469
|
+
_context2.next = 38;
|
|
89350
89470
|
break;
|
|
89351
89471
|
}
|
|
89352
89472
|
n = 0;
|
|
89353
89473
|
case 14:
|
|
89354
89474
|
if (!(n < nodes.length)) {
|
|
89355
|
-
_context2.next =
|
|
89356
|
-
break;
|
|
89357
|
-
}
|
|
89358
|
-
node = nodes[n];
|
|
89359
|
-
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
89360
|
-
_context2.next = 20;
|
|
89475
|
+
_context2.next = 37;
|
|
89361
89476
|
break;
|
|
89362
89477
|
}
|
|
89363
|
-
|
|
89364
|
-
|
|
89365
|
-
|
|
89366
|
-
|
|
89478
|
+
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
89479
|
+
// message.warn("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
|
|
89480
|
+
// this._isError = true;
|
|
89481
|
+
// return;
|
|
89482
|
+
// }
|
|
89367
89483
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
89368
|
-
_context2.next =
|
|
89484
|
+
_context2.next = 26;
|
|
89369
89485
|
break;
|
|
89370
89486
|
}
|
|
89371
89487
|
if (node.isAllowDelete) {
|
|
89372
|
-
_context2.next =
|
|
89488
|
+
_context2.next = 26;
|
|
89373
89489
|
break;
|
|
89374
89490
|
}
|
|
89375
89491
|
tip = "";
|
|
@@ -89388,34 +89504,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89388
89504
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"].warn */ .Z.warn(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。");
|
|
89389
89505
|
this._isError = true;
|
|
89390
89506
|
return _context2.abrupt("return");
|
|
89391
|
-
case
|
|
89507
|
+
case 26:
|
|
89392
89508
|
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_37__/* .TableFormula */ .N)) {
|
|
89393
|
-
_context2.next =
|
|
89509
|
+
_context2.next = 30;
|
|
89394
89510
|
break;
|
|
89395
89511
|
}
|
|
89396
89512
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"].warn */ .Z.warn("不允许删除表格计算公式");
|
|
89397
89513
|
this._isError = true;
|
|
89398
89514
|
return _context2.abrupt("return");
|
|
89399
|
-
case
|
|
89515
|
+
case 30:
|
|
89400
89516
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
89401
|
-
_context2.next =
|
|
89517
|
+
_context2.next = 34;
|
|
89402
89518
|
break;
|
|
89403
89519
|
}
|
|
89404
89520
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
89405
89521
|
this._isError = true;
|
|
89406
89522
|
return _context2.abrupt("return");
|
|
89407
|
-
case
|
|
89523
|
+
case 34:
|
|
89408
89524
|
n++;
|
|
89409
89525
|
_context2.next = 14;
|
|
89410
89526
|
break;
|
|
89411
|
-
case
|
|
89527
|
+
case 37:
|
|
89412
89528
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
89413
89529
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
89414
89530
|
}
|
|
89415
|
-
case
|
|
89531
|
+
case 38:
|
|
89416
89532
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
89417
89533
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
89418
|
-
_context2.next =
|
|
89534
|
+
_context2.next = 44;
|
|
89419
89535
|
break;
|
|
89420
89536
|
}
|
|
89421
89537
|
//判断当前TextInputField是否可编辑
|
|
@@ -89427,19 +89543,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89427
89543
|
// this._undo.commit();
|
|
89428
89544
|
});
|
|
89429
89545
|
if (_res[0]) {
|
|
89430
|
-
_context2.next =
|
|
89546
|
+
_context2.next = 44;
|
|
89431
89547
|
break;
|
|
89432
89548
|
}
|
|
89433
89549
|
return _context2.abrupt("return");
|
|
89434
|
-
case
|
|
89550
|
+
case 44:
|
|
89435
89551
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
89436
89552
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
89437
89553
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
89438
|
-
_context2.next =
|
|
89554
|
+
_context2.next = 47;
|
|
89439
89555
|
break;
|
|
89440
89556
|
}
|
|
89441
89557
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
89442
|
-
case
|
|
89558
|
+
case 47:
|
|
89443
89559
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
89444
89560
|
// this._hoEditorFactory,
|
|
89445
89561
|
// currRange.startPath,
|
|
@@ -89451,17 +89567,17 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89451
89567
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
89452
89568
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
89453
89569
|
if (!(res == 1)) {
|
|
89454
|
-
_context2.next =
|
|
89570
|
+
_context2.next = 59;
|
|
89455
89571
|
break;
|
|
89456
89572
|
}
|
|
89457
89573
|
changeEvent.beforeChangePath = startPath;
|
|
89458
89574
|
changeEvent.afterChangePath = this._tmp.start;
|
|
89459
|
-
_context2.next =
|
|
89575
|
+
_context2.next = 57;
|
|
89460
89576
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
89461
|
-
case
|
|
89577
|
+
case 57:
|
|
89462
89578
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
89463
89579
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
89464
|
-
case
|
|
89580
|
+
case 59:
|
|
89465
89581
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
89466
89582
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
89467
89583
|
aNode = currRange.npStart.node;
|
|
@@ -89469,12 +89585,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89469
89585
|
pnode = aNode.parentNode;
|
|
89470
89586
|
}
|
|
89471
89587
|
if (!(aNode && pnode)) {
|
|
89472
|
-
_context2.next =
|
|
89588
|
+
_context2.next = 66;
|
|
89473
89589
|
break;
|
|
89474
89590
|
}
|
|
89475
|
-
_context2.next =
|
|
89591
|
+
_context2.next = 66;
|
|
89476
89592
|
return this.ParentRepaint(pnode);
|
|
89477
|
-
case
|
|
89593
|
+
case 66:
|
|
89478
89594
|
case "end":
|
|
89479
89595
|
return _context2.stop();
|
|
89480
89596
|
}
|
|
@@ -198355,7 +198471,7 @@ var map = {
|
|
|
198355
198471
|
"./selectDialog/SelectDialog.vue": 59075,
|
|
198356
198472
|
"./sign/Sign.vue": 28715,
|
|
198357
198473
|
"./table/TableCellPoper.vue": 61917,
|
|
198358
|
-
"./table/TableCellProperty.vue":
|
|
198474
|
+
"./table/TableCellProperty.vue": 61973,
|
|
198359
198475
|
"./table/TableColProperty.vue": 2116,
|
|
198360
198476
|
"./table/TableForm.vue": 19064,
|
|
198361
198477
|
"./table/TableFormTree.vue": 39703,
|
|
@@ -237717,7 +237833,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
237717
237833
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
237718
237834
|
var MarkNode = __webpack_require__(57727);
|
|
237719
237835
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
237720
|
-
/* harmony default export */ var version = ('3.0.
|
|
237836
|
+
/* harmony default export */ var version = ('3.0.82');
|
|
237721
237837
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
237722
237838
|
var PoperTipText = __webpack_require__(36081);
|
|
237723
237839
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -245284,6 +245400,7 @@ var hoCreateHistory = {
|
|
|
245284
245400
|
|
|
245285
245401
|
|
|
245286
245402
|
|
|
245403
|
+
|
|
245287
245404
|
|
|
245288
245405
|
|
|
245289
245406
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -249862,7 +249979,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249862
249979
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249863
249980
|
var ret = [];
|
|
249864
249981
|
var getAllNodes = function getAllNodes(nodes) {
|
|
249865
|
-
|
|
249982
|
+
var _loop2 = function _loop2(i) {
|
|
249866
249983
|
var node = nodes[i];
|
|
249867
249984
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
249868
249985
|
var elementObj = {
|
|
@@ -249878,10 +249995,47 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249878
249995
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
249879
249996
|
customProperty: node.customProperty,
|
|
249880
249997
|
keyValue: '',
|
|
249881
|
-
value: ''
|
|
249998
|
+
value: '',
|
|
249999
|
+
verifyTipList: []
|
|
249882
250000
|
};
|
|
249883
250001
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
249884
250002
|
elementObj.controlType = node.type;
|
|
250003
|
+
} else {
|
|
250004
|
+
var verifyTipList = [];
|
|
250005
|
+
var includesKeyword = node.includesKeyword ? JSON.parse(node.includesKeyword) : [];
|
|
250006
|
+
var valueArea = node.valueArea ? JSON.parse(node.valueArea) : [];
|
|
250007
|
+
if (includesKeyword.length > 0) {
|
|
250008
|
+
includesKeyword.forEach(function (keyword) {
|
|
250009
|
+
if (node.text.includes(keyword.text)) {
|
|
250010
|
+
verifyTipList.push(keyword.tip);
|
|
250011
|
+
}
|
|
250012
|
+
});
|
|
250013
|
+
}
|
|
250014
|
+
if (valueArea.length > 0) {
|
|
250015
|
+
valueArea.forEach(function (value) {
|
|
250016
|
+
var min = value.min == '' ? NaN : Number(value.min);
|
|
250017
|
+
var max = value.max == '' ? NaN : Number(value.max);
|
|
250018
|
+
var nodeValue = node.text == '' ? NaN : Number(node.text);
|
|
250019
|
+
if (!isNaN(nodeValue)) {
|
|
250020
|
+
if (!isNaN(min) && !isNaN(max)) {
|
|
250021
|
+
if (nodeValue >= min && nodeValue <= max) {
|
|
250022
|
+
verifyTipList.push(value.tip);
|
|
250023
|
+
}
|
|
250024
|
+
}
|
|
250025
|
+
if (!isNaN(min) && isNaN(max)) {
|
|
250026
|
+
if (nodeValue >= min) {
|
|
250027
|
+
verifyTipList.push(value.tip);
|
|
250028
|
+
}
|
|
250029
|
+
}
|
|
250030
|
+
if (isNaN(min) && !isNaN(max)) {
|
|
250031
|
+
if (nodeValue <= max) {
|
|
250032
|
+
verifyTipList.push(value.tip);
|
|
250033
|
+
}
|
|
250034
|
+
}
|
|
250035
|
+
}
|
|
250036
|
+
});
|
|
250037
|
+
}
|
|
250038
|
+
elementObj.verifyTipList = verifyTipList;
|
|
249885
250039
|
}
|
|
249886
250040
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 1 || node instanceof DownListNode/* DownListNode */.yF) {
|
|
249887
250041
|
elementObj.keyValue = node.keyValue;
|
|
@@ -249893,6 +250047,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249893
250047
|
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
249894
250048
|
getAllNodes(node.childNodes);
|
|
249895
250049
|
}
|
|
250050
|
+
};
|
|
250051
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
250052
|
+
_loop2(i);
|
|
249896
250053
|
}
|
|
249897
250054
|
};
|
|
249898
250055
|
if (area == undefined || area == 'header') {
|
|
@@ -249925,7 +250082,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249925
250082
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249926
250083
|
var allArr = [];
|
|
249927
250084
|
var getAllNodes = function getAllNodes(nodes, arr) {
|
|
249928
|
-
var
|
|
250085
|
+
var _loop3 = function _loop3(i) {
|
|
249929
250086
|
var node = nodes[i];
|
|
249930
250087
|
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
|
|
249931
250088
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
@@ -249963,7 +250120,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249963
250120
|
}
|
|
249964
250121
|
};
|
|
249965
250122
|
for (var i = 0; i < nodes.length; i++) {
|
|
249966
|
-
|
|
250123
|
+
_loop3(i);
|
|
249967
250124
|
}
|
|
249968
250125
|
};
|
|
249969
250126
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
@@ -258080,6 +258237,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
258080
258237
|
old: false // 是否使用完善后的批注界面
|
|
258081
258238
|
});
|
|
258082
258239
|
(0,esm_defineProperty/* default */.Z)(this, "_commentParams", void 0);
|
|
258240
|
+
(0,esm_defineProperty/* default */.Z)(this, "_isDrawMustMarker", true);
|
|
258083
258241
|
this._hoEditorFactoryId = id;
|
|
258084
258242
|
}
|
|
258085
258243
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
@@ -258126,6 +258284,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
258126
258284
|
|
|
258127
258285
|
// 审阅参数设置
|
|
258128
258286
|
// 批注相关动态变更
|
|
258287
|
+
//是否绘制必填标记
|
|
258129
258288
|
/**
|
|
258130
258289
|
* Getter hoLocalStorage
|
|
258131
258290
|
* @return {HoLocalStorage}
|
|
@@ -258885,6 +259044,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
258885
259044
|
this._isEnabledGlobalColor = value;
|
|
258886
259045
|
}
|
|
258887
259046
|
}
|
|
259047
|
+
}, {
|
|
259048
|
+
key: "isDrawMustMarker",
|
|
259049
|
+
get: function get() {
|
|
259050
|
+
return this._isDrawMustMarker;
|
|
259051
|
+
},
|
|
259052
|
+
set: function set(value) {
|
|
259053
|
+
if (this._isDrawMustMarker !== value) {
|
|
259054
|
+
this._isDrawMustMarker = value;
|
|
259055
|
+
}
|
|
259056
|
+
}
|
|
258888
259057
|
}, {
|
|
258889
259058
|
key: "isSameColorWithEmptyVlaue",
|
|
258890
259059
|
get: function get() {
|