hoeditor-web 3.1.75 → 3.1.77
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.css +6 -1
- package/lib/hoeditor.umd.js +363 -235
- package/lib/hoeditor.umd.min.js +6 -6
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -19376,7 +19376,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
19376
19376
|
|
|
19377
19377
|
/***/ }),
|
|
19378
19378
|
|
|
19379
|
-
/***/
|
|
19379
|
+
/***/ 15417:
|
|
19380
19380
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19381
19381
|
|
|
19382
19382
|
"use strict";
|
|
@@ -19396,7 +19396,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
19396
19396
|
var es_string_includes = __webpack_require__(32023);
|
|
19397
19397
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
19398
19398
|
var es_number_constructor = __webpack_require__(9653);
|
|
19399
|
-
;// 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/TableColProperty.vue?vue&type=template&id=
|
|
19399
|
+
;// 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/TableColProperty.vue?vue&type=template&id=1879e46a&
|
|
19400
19400
|
|
|
19401
19401
|
|
|
19402
19402
|
|
|
@@ -19468,6 +19468,20 @@ var render = function render() {
|
|
|
19468
19468
|
}
|
|
19469
19469
|
}, [_vm._v("当前显示宽度 " + _vm._s(_vm.colWidth) + " 厘米")])], 1), _c('li', {
|
|
19470
19470
|
staticClass: "control-item"
|
|
19471
|
+
}, [_c('div', {
|
|
19472
|
+
staticStyle: {
|
|
19473
|
+
"padding-right": "20px"
|
|
19474
|
+
}
|
|
19475
|
+
}, [_c('a-checkbox', {
|
|
19476
|
+
model: {
|
|
19477
|
+
value: _vm.isSignLock,
|
|
19478
|
+
callback: function callback($$v) {
|
|
19479
|
+
_vm.isSignLock = $$v;
|
|
19480
|
+
},
|
|
19481
|
+
expression: "isSignLock"
|
|
19482
|
+
}
|
|
19483
|
+
}, [_vm._v("签名完成后锁定列")])], 1)]), _c('li', {
|
|
19484
|
+
staticClass: "control-item"
|
|
19471
19485
|
}, [_c('span', {
|
|
19472
19486
|
staticClass: "label"
|
|
19473
19487
|
}, [_vm._v("编辑器属性")]), _c('a-select', {
|
|
@@ -19514,21 +19528,11 @@ var render = function render() {
|
|
|
19514
19528
|
attrs: {
|
|
19515
19529
|
"value": 5
|
|
19516
19530
|
}
|
|
19517
|
-
}, [_vm._v("输入域")])
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
staticStyle: {
|
|
19521
|
-
"padding-right": "20px"
|
|
19522
|
-
}
|
|
19523
|
-
}, [_c('a-checkbox', {
|
|
19524
|
-
model: {
|
|
19525
|
-
value: _vm.isSignLock,
|
|
19526
|
-
callback: function callback($$v) {
|
|
19527
|
-
_vm.isSignLock = $$v;
|
|
19528
|
-
},
|
|
19529
|
-
expression: "isSignLock"
|
|
19531
|
+
}, [_vm._v("输入域")]), _c('a-select-option', {
|
|
19532
|
+
attrs: {
|
|
19533
|
+
"value": 6
|
|
19530
19534
|
}
|
|
19531
|
-
}, [_vm._v("
|
|
19535
|
+
}, [_vm._v("序号")])], 1)], 1), _c('li', {
|
|
19532
19536
|
directives: [{
|
|
19533
19537
|
name: "show",
|
|
19534
19538
|
rawName: "v-show",
|
|
@@ -19791,7 +19795,23 @@ var render = function render() {
|
|
|
19791
19795
|
"value": item
|
|
19792
19796
|
}
|
|
19793
19797
|
}, [_vm._v(_vm._s(item))]);
|
|
19794
|
-
}), 1)], 1)]), _c('
|
|
19798
|
+
}), 1)], 1)]), _c('div', {
|
|
19799
|
+
directives: [{
|
|
19800
|
+
name: "show",
|
|
19801
|
+
rawName: "v-show",
|
|
19802
|
+
value: _vm.editorProperty === 2,
|
|
19803
|
+
expression: "editorProperty === 2"
|
|
19804
|
+
}],
|
|
19805
|
+
staticClass: "control-item"
|
|
19806
|
+
}, [_c('a-checkbox', {
|
|
19807
|
+
model: {
|
|
19808
|
+
value: _vm.isAutoInputCurDate,
|
|
19809
|
+
callback: function callback($$v) {
|
|
19810
|
+
_vm.isAutoInputCurDate = $$v;
|
|
19811
|
+
},
|
|
19812
|
+
expression: "isAutoInputCurDate"
|
|
19813
|
+
}
|
|
19814
|
+
}, [_vm._v("新增行自动填入当前日期时间")])], 1), _c('li', {
|
|
19795
19815
|
directives: [{
|
|
19796
19816
|
name: "show",
|
|
19797
19817
|
rawName: "v-show",
|
|
@@ -19854,7 +19874,7 @@ var render = function render() {
|
|
|
19854
19874
|
};
|
|
19855
19875
|
var staticRenderFns = [];
|
|
19856
19876
|
|
|
19857
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
19877
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=1879e46a&
|
|
19858
19878
|
|
|
19859
19879
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
19860
19880
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -19864,10 +19884,10 @@ var es_array_filter = __webpack_require__(57327);
|
|
|
19864
19884
|
var es_object_to_string = __webpack_require__(41539);
|
|
19865
19885
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
19866
19886
|
var es_array_concat = __webpack_require__(92222);
|
|
19867
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
19868
|
-
var es_object_keys = __webpack_require__(47941);
|
|
19869
19887
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
19870
19888
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
19889
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
19890
|
+
var es_object_keys = __webpack_require__(47941);
|
|
19871
19891
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
19872
19892
|
var es_regexp_exec = __webpack_require__(74916);
|
|
19873
19893
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -19933,6 +19953,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
19933
19953
|
//source: '',
|
|
19934
19954
|
canModifyContent: true,
|
|
19935
19955
|
isAllowDel: true,
|
|
19956
|
+
isAutoInputCurDate: false,
|
|
19936
19957
|
allowMultiSelected: false,
|
|
19937
19958
|
splitCharacter: ',',
|
|
19938
19959
|
errorArr: [],
|
|
@@ -19988,31 +20009,35 @@ var getCellNode = __webpack_require__(5986);
|
|
|
19988
20009
|
}
|
|
19989
20010
|
}
|
|
19990
20011
|
if (colInfoes !== null) {
|
|
19991
|
-
var _colProperty$dateTime, _colProperty$dateTime2;
|
|
19992
20012
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
19993
20013
|
var colProperty = colInfoes.colProperty;
|
|
19994
20014
|
//this.id = colProperty.id ? colProperty.id : this.vueController.generateID('TB');
|
|
19995
20015
|
this.editorProperty = colProperty.editorProperty ? colProperty.editorProperty : 0;
|
|
20016
|
+
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
19996
20017
|
this.align = colProperty.align ? colProperty.align : 0;
|
|
19997
|
-
var listKeyId = this.getKeyId(0);
|
|
19998
|
-
var list = [{
|
|
19999
|
-
value: '',
|
|
20000
|
-
text: '',
|
|
20001
|
-
id: listKeyId
|
|
20002
|
-
}];
|
|
20003
|
-
this.listItems = colProperty.downListProperty && JSON.parse(colProperty.downListProperty.listItems) ? [].concat((0,toConsumableArray/* default */.Z)(JSON.parse(colProperty.downListProperty.listItems)), list) : [].concat(list);
|
|
20004
|
-
//this.source = colProperty.downListProperty ? colProperty.downListProperty.source : '';
|
|
20005
|
-
this.canModifyContent = colProperty.downListProperty ? colProperty.downListProperty.canModifyContent : true;
|
|
20006
|
-
this.isAllowDel = colProperty.downListProperty ? colProperty.downListProperty.isAllowDel : true;
|
|
20007
|
-
this.allowMultiSelected = colProperty.downListProperty ? colProperty.downListProperty.allowMultiSelected : false;
|
|
20008
|
-
this.splitCharacter = colProperty.downListProperty ? colProperty.downListProperty.splitCharacter : ',';
|
|
20009
|
-
this.inputStyle = (_colProperty$dateTime = colProperty.dateTimeProperty) !== null && _colProperty$dateTime !== void 0 && _colProperty$dateTime.inputStyle ? (_colProperty$dateTime2 = colProperty.dateTimeProperty) === null || _colProperty$dateTime2 === void 0 ? void 0 : _colProperty$dateTime2.inputStyle : 'yyyy-MM-dd';
|
|
20010
|
-
this.maxNumVal = colProperty.numberProperty ? colProperty.numberProperty.maxNumVal : 100;
|
|
20011
|
-
this.minNumVal = colProperty.numberProperty ? colProperty.numberProperty.minNumVal : 0;
|
|
20012
20018
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
20013
|
-
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
20014
20019
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
20015
20020
|
this.isSignLock = colProperty.isSignLock ? true : false;
|
|
20021
|
+
if (colProperty.downListProperty) {
|
|
20022
|
+
var listKeyId = this.getKeyId(0);
|
|
20023
|
+
var list = [{
|
|
20024
|
+
value: '',
|
|
20025
|
+
text: '',
|
|
20026
|
+
id: listKeyId
|
|
20027
|
+
}];
|
|
20028
|
+
this.listItems = JSON.parse(colProperty.downListProperty.listItems) ? [].concat((0,toConsumableArray/* default */.Z)(JSON.parse(colProperty.downListProperty.listItems)), list) : [].concat(list);
|
|
20029
|
+
//this.source = colProperty.downListProperty ? colProperty.downListProperty.source : '';
|
|
20030
|
+
this.canModifyContent = colProperty.downListProperty.canModifyContent;
|
|
20031
|
+
this.isAllowDel = colProperty.downListProperty.isAllowDel;
|
|
20032
|
+
this.allowMultiSelected = colProperty.downListProperty.allowMultiSelected;
|
|
20033
|
+
this.splitCharacter = colProperty.downListProperty.splitCharacter;
|
|
20034
|
+
} else if (colProperty.dateTimeProperty) {
|
|
20035
|
+
this.inputStyle = colProperty.dateTimeProperty.inputStyle || 'yyyy-MM-dd';
|
|
20036
|
+
this.isAutoInputCurDate = colProperty.dateTimeProperty.isAutoInputCurDate;
|
|
20037
|
+
} else if (colProperty.numberProperty) {
|
|
20038
|
+
this.maxNumVal = colProperty.numberProperty.maxNumVal;
|
|
20039
|
+
this.minNumVal = colProperty.numberProperty.minNumVal;
|
|
20040
|
+
}
|
|
20016
20041
|
}
|
|
20017
20042
|
},
|
|
20018
20043
|
methods: {
|
|
@@ -20116,7 +20141,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20116
20141
|
if (this.editorProperty !== this.defaultColProperty.editorProperty) param.downListProperty = downListProperty;
|
|
20117
20142
|
} else if (this.editorProperty === TableProperty/* EditorProperty */.YS.DateTime) {
|
|
20118
20143
|
dateTimeProperty = {
|
|
20119
|
-
inputStyle: this.inputStyle
|
|
20144
|
+
inputStyle: this.inputStyle,
|
|
20145
|
+
isAutoInputCurDate: this.isAutoInputCurDate
|
|
20120
20146
|
};
|
|
20121
20147
|
if (this.editorProperty !== this.defaultColProperty.editorProperty) param.dateTimeProperty = dateTimeProperty;
|
|
20122
20148
|
} else if (this.editorProperty === TableProperty/* EditorProperty */.YS.Number) {
|
|
@@ -20160,10 +20186,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20160
20186
|
});
|
|
20161
20187
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
20162
20188
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
20163
|
-
;// 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/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20189
|
+
;// 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/table/TableColProperty.vue?vue&type=style&index=0&id=1879e46a&prod&lang=less&
|
|
20164
20190
|
// extracted by mini-css-extract-plugin
|
|
20165
20191
|
|
|
20166
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20192
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=1879e46a&prod&lang=less&
|
|
20167
20193
|
|
|
20168
20194
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20169
20195
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -21500,7 +21526,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
21500
21526
|
|
|
21501
21527
|
/***/ }),
|
|
21502
21528
|
|
|
21503
|
-
/***/
|
|
21529
|
+
/***/ 54054:
|
|
21504
21530
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21505
21531
|
|
|
21506
21532
|
"use strict";
|
|
@@ -21512,7 +21538,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21512
21538
|
"default": function() { return /* binding */ TableProperty; }
|
|
21513
21539
|
});
|
|
21514
21540
|
|
|
21515
|
-
;// 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/TableProperty.vue?vue&type=template&id=
|
|
21541
|
+
;// 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/TableProperty.vue?vue&type=template&id=141eaa7c&
|
|
21516
21542
|
var render = function render() {
|
|
21517
21543
|
var _vm = this,
|
|
21518
21544
|
_c = _vm._self._c;
|
|
@@ -21709,7 +21735,19 @@ var render = function render() {
|
|
|
21709
21735
|
},
|
|
21710
21736
|
expression: "isSignLock"
|
|
21711
21737
|
}
|
|
21712
|
-
}, [_vm._v("签名完成后锁定表格")])], 1)
|
|
21738
|
+
}, [_vm._v("签名完成后锁定表格")])], 1), _c('div', {
|
|
21739
|
+
staticStyle: {
|
|
21740
|
+
"width": "100%"
|
|
21741
|
+
}
|
|
21742
|
+
}, [_c('a-checkbox', {
|
|
21743
|
+
model: {
|
|
21744
|
+
value: _vm.addRowByOrder,
|
|
21745
|
+
callback: function callback($$v) {
|
|
21746
|
+
_vm.addRowByOrder = $$v;
|
|
21747
|
+
},
|
|
21748
|
+
expression: "addRowByOrder"
|
|
21749
|
+
}
|
|
21750
|
+
}, [_vm._v("启用按顺序新增行")])], 1)])])]), _c('footer', {
|
|
21713
21751
|
staticClass: "ho-modal-footer"
|
|
21714
21752
|
}, [_c('a-button', {
|
|
21715
21753
|
attrs: {
|
|
@@ -21807,9 +21845,11 @@ var CellNode = __webpack_require__(68598);
|
|
|
21807
21845
|
// 当前光标所在行行高
|
|
21808
21846
|
isUsePopEdit: false,
|
|
21809
21847
|
endPath: '',
|
|
21810
|
-
isSignLock: false
|
|
21848
|
+
isSignLock: false,
|
|
21849
|
+
addRowByOrder: false // 按顺序新增行
|
|
21811
21850
|
};
|
|
21812
21851
|
},
|
|
21852
|
+
|
|
21813
21853
|
inject: ['hoEditorProvider'],
|
|
21814
21854
|
computed: {
|
|
21815
21855
|
customProperties: function customProperties() {
|
|
@@ -21839,6 +21879,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
21839
21879
|
this.autoLineHeight = tableNode.tableProperty.autoLineHeight;
|
|
21840
21880
|
this.isUsePopEdit = tableNode.tableProperty.isUsePopEdit;
|
|
21841
21881
|
this.isSignLock = tableNode.tableProperty.isSignLock;
|
|
21882
|
+
this.addRowByOrder = tableNode.tableProperty.addRowByOrder;
|
|
21842
21883
|
}
|
|
21843
21884
|
},
|
|
21844
21885
|
methods: {
|
|
@@ -21896,7 +21937,8 @@ var CellNode = __webpack_require__(68598);
|
|
|
21896
21937
|
fixedOnePage: this.fixedOnePage,
|
|
21897
21938
|
autoLineHeight: this.autoLineHeight,
|
|
21898
21939
|
isUsePopEdit: this.isUsePopEdit,
|
|
21899
|
-
isSignLock: this.isSignLock
|
|
21940
|
+
isSignLock: this.isSignLock,
|
|
21941
|
+
addRowByOrder: this.addRowByOrder
|
|
21900
21942
|
};
|
|
21901
21943
|
var tableNode = this.getTableNodes();
|
|
21902
21944
|
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
@@ -21911,10 +21953,10 @@ var CellNode = __webpack_require__(68598);
|
|
|
21911
21953
|
});
|
|
21912
21954
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
21913
21955
|
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
21914
|
-
;// 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/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
21956
|
+
;// 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/table/TableProperty.vue?vue&type=style&index=0&id=141eaa7c&prod&lang=less&
|
|
21915
21957
|
// extracted by mini-css-extract-plugin
|
|
21916
21958
|
|
|
21917
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
21959
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=141eaa7c&prod&lang=less&
|
|
21918
21960
|
|
|
21919
21961
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
21920
21962
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -35706,9 +35748,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
35706
35748
|
if (isPrintFirstDoc && firstPageIndex == -1) {
|
|
35707
35749
|
hoEditorFactory.docTree.mainNodes.forEach(function (node) {
|
|
35708
35750
|
if (node instanceof ParagraphNode/* ParagraphNode */.C && node.printAsSinglePage) {
|
|
35709
|
-
if (node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35751
|
+
if (firstPageIndex == -1 && node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35710
35752
|
firstPageIndex = node.drawlines[0].parent.pageIndex;
|
|
35711
|
-
} else if (node.drawlines[0] instanceof DrawTable/* DrawTable */.t && node.drawlines[0].drawPageTables[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35753
|
+
} else if (firstPageIndex == -1 && node.drawlines[0] instanceof DrawTable/* DrawTable */.t && node.drawlines[0].drawPageTables[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35712
35754
|
firstPageIndex = node.drawlines[0].drawPageTables[0].parent.pageIndex;
|
|
35713
35755
|
}
|
|
35714
35756
|
}
|
|
@@ -38714,40 +38756,42 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38714
38756
|
}
|
|
38715
38757
|
}
|
|
38716
38758
|
} else {
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
|
|
38720
|
-
var
|
|
38721
|
-
|
|
38722
|
-
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38729
|
-
var
|
|
38730
|
-
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
|
|
38737
|
-
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38759
|
+
if (cell.table.tableProperty.addRowByOrder) {
|
|
38760
|
+
var mark = false;
|
|
38761
|
+
var index = hoEditorFactory.vueController.getTableTitleMaxRowIndex(cell.table);
|
|
38762
|
+
var newTextNode = function newTextNode(text, c) {
|
|
38763
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(_this4._hoEditorFactoryID, cell.rootNodes, cell, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
38764
|
+
var fillCell = cell.table.rows[index + 1][c];
|
|
38765
|
+
if (fillCell) {
|
|
38766
|
+
var path = fillCell.childNodes[0].getNodePath();
|
|
38767
|
+
hoEditorFactory.docTree.insertNodeAfterPath(path, textNode);
|
|
38768
|
+
fillCell.drawCell.needUpdate = true;
|
|
38769
|
+
}
|
|
38770
|
+
};
|
|
38771
|
+
for (var k = 0; k < cell.table.colCount; k++) {
|
|
38772
|
+
var colProperty = cell.table.colInfos[k].colProperty;
|
|
38773
|
+
if (colProperty.dateTimeProperty && colProperty.dateTimeProperty.isAutoInputCurDate) {
|
|
38774
|
+
var date = Date.now();
|
|
38775
|
+
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_94__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
38776
|
+
newTextNode(text, k);
|
|
38777
|
+
mark = true;
|
|
38778
|
+
}
|
|
38779
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .EditorProperty */ .YS.OrderNumber) {
|
|
38780
|
+
var acell = cell.table.rows[index + 2][k];
|
|
38781
|
+
if (acell) {
|
|
38782
|
+
var ctext = acell.getCellText();
|
|
38783
|
+
var num = Number(ctext);
|
|
38784
|
+
if (!isNaN(num)) {
|
|
38785
|
+
var curOrder = (num + 1).toString();
|
|
38786
|
+
newTextNode(curOrder, k);
|
|
38787
|
+
mark = true;
|
|
38788
|
+
}
|
|
38745
38789
|
}
|
|
38746
38790
|
}
|
|
38747
38791
|
}
|
|
38748
|
-
|
|
38749
|
-
|
|
38750
|
-
|
|
38792
|
+
if (mark) {
|
|
38793
|
+
cell.table.update();
|
|
38794
|
+
}
|
|
38751
38795
|
}
|
|
38752
38796
|
}
|
|
38753
38797
|
var sCellNode = cell.table.rows[r][0];
|
|
@@ -87598,7 +87642,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
87598
87642
|
/* harmony export */ F: function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
87599
87643
|
/* harmony export */ });
|
|
87600
87644
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
87601
|
-
/* harmony import */ var
|
|
87645
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(40735);
|
|
87602
87646
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80543);
|
|
87603
87647
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81448);
|
|
87604
87648
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27222);
|
|
@@ -87645,11 +87689,13 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
87645
87689
|
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(99152);
|
|
87646
87690
|
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(92501);
|
|
87647
87691
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(45712);
|
|
87648
|
-
/* harmony import */ var
|
|
87649
|
-
/* harmony import */ var
|
|
87650
|
-
/* harmony import */ var
|
|
87651
|
-
/* harmony import */ var
|
|
87652
|
-
/* harmony import */ var
|
|
87692
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(64465);
|
|
87693
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(24701);
|
|
87694
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(42921);
|
|
87695
|
+
/* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(90832);
|
|
87696
|
+
/* harmony import */ var _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(34910);
|
|
87697
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(51760);
|
|
87698
|
+
|
|
87653
87699
|
|
|
87654
87700
|
|
|
87655
87701
|
|
|
@@ -88058,7 +88104,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88058
88104
|
var epnode = e.parentNode;
|
|
88059
88105
|
var pnode = epnode;
|
|
88060
88106
|
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
88061
|
-
var result =
|
|
88107
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
88062
88108
|
if (result < 0) {
|
|
88063
88109
|
pnode = spnode;
|
|
88064
88110
|
}
|
|
@@ -88122,25 +88168,39 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88122
88168
|
}
|
|
88123
88169
|
}, {
|
|
88124
88170
|
key: "ParentRepaint",
|
|
88125
|
-
value: function
|
|
88126
|
-
|
|
88127
|
-
|
|
88128
|
-
|
|
88129
|
-
|
|
88130
|
-
|
|
88131
|
-
|
|
88132
|
-
|
|
88133
|
-
|
|
88134
|
-
|
|
88135
|
-
|
|
88136
|
-
|
|
88137
|
-
|
|
88138
|
-
|
|
88139
|
-
|
|
88140
|
-
|
|
88141
|
-
|
|
88171
|
+
value: function () {
|
|
88172
|
+
var _ParentRepaint = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2(Anode) {
|
|
88173
|
+
var hoEditorFactory, contentMark, styleIndex, contentMarkNode, insertPath;
|
|
88174
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
88175
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
88176
|
+
case 0:
|
|
88177
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
|
|
88178
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
88179
|
+
if (Anode.childNodes.length === 2) {
|
|
88180
|
+
contentMark = Anode.childNodes2[1];
|
|
88181
|
+
styleIndex = Anode.childNodes[0].styleIndex;
|
|
88182
|
+
contentMarkNode = new _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j(this._hoEditorFactoryID, Anode.childNodes[0].rootNodes, Anode, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_21__/* .NodeType */ .Jq.ntMark, contentMark.text, styleIndex, _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNodeType */ .q.mtContent);
|
|
88183
|
+
insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
88184
|
+
hoEditorFactory.undoService.begin();
|
|
88185
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
88186
|
+
hoEditorFactory.undoService.commit();
|
|
88187
|
+
// Anode.childNodes.splice(1, 0, contentMarkNode);
|
|
88188
|
+
// await (Anode as TextInputFieldNode).update(0);
|
|
88189
|
+
} else {
|
|
88190
|
+
Anode.update();
|
|
88191
|
+
}
|
|
88192
|
+
}
|
|
88193
|
+
case 1:
|
|
88194
|
+
case "end":
|
|
88195
|
+
return _context2.stop();
|
|
88196
|
+
}
|
|
88197
|
+
}, _callee2, this);
|
|
88198
|
+
}));
|
|
88199
|
+
function ParentRepaint(_x) {
|
|
88200
|
+
return _ParentRepaint.apply(this, arguments);
|
|
88142
88201
|
}
|
|
88143
|
-
|
|
88202
|
+
return ParentRepaint;
|
|
88203
|
+
}()
|
|
88144
88204
|
}, {
|
|
88145
88205
|
key: "redo",
|
|
88146
88206
|
value: function redo() {
|
|
@@ -88150,32 +88210,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88150
88210
|
}, {
|
|
88151
88211
|
key: "doRedo",
|
|
88152
88212
|
value: function () {
|
|
88153
|
-
var _doRedo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function
|
|
88213
|
+
var _doRedo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee3() {
|
|
88154
88214
|
var _currRange$npEnd$node;
|
|
88155
88215
|
var currRange, hoEditorFactory, textStyle, nodes, lastNode, ePath, sPath, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
88156
|
-
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function
|
|
88157
|
-
while (1) switch (
|
|
88216
|
+
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
88217
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
88158
88218
|
case 0:
|
|
88159
88219
|
this.initParam();
|
|
88160
88220
|
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
88161
88221
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
88162
88222
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
88163
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
88164
|
-
|
|
88223
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psReview)) {
|
|
88224
|
+
_context3.next = 11;
|
|
88165
88225
|
break;
|
|
88166
88226
|
}
|
|
88167
88227
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R)) {
|
|
88168
|
-
|
|
88228
|
+
_context3.next = 11;
|
|
88169
88229
|
break;
|
|
88170
88230
|
}
|
|
88171
88231
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
88172
88232
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
88173
|
-
|
|
88233
|
+
_context3.next = 11;
|
|
88174
88234
|
break;
|
|
88175
88235
|
}
|
|
88176
|
-
|
|
88236
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该内容当前已处于删除状态!");
|
|
88177
88237
|
this._isError = true;
|
|
88178
|
-
return
|
|
88238
|
+
return _context3.abrupt("return");
|
|
88179
88239
|
case 11:
|
|
88180
88240
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
88181
88241
|
// if (npFirst && npFirst.node) {
|
|
@@ -88186,30 +88246,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88186
88246
|
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
88187
88247
|
// //}
|
|
88188
88248
|
// }
|
|
88189
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
88190
|
-
|
|
88249
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
88250
|
+
_context3.next = 68;
|
|
88191
88251
|
break;
|
|
88192
88252
|
}
|
|
88193
88253
|
lastNode = nodes[nodes.length - 1];
|
|
88194
88254
|
if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
|
|
88195
|
-
|
|
88255
|
+
_context3.next = 22;
|
|
88196
88256
|
break;
|
|
88197
88257
|
}
|
|
88198
88258
|
if (!(nodes.length === 1)) {
|
|
88199
|
-
|
|
88259
|
+
_context3.next = 19;
|
|
88200
88260
|
break;
|
|
88201
88261
|
}
|
|
88202
|
-
return
|
|
88262
|
+
return _context3.abrupt("return");
|
|
88203
88263
|
case 19:
|
|
88204
88264
|
ePath = hoEditorFactory.docTree.getNodeLastPath(lastNode.previousLeaf());
|
|
88205
88265
|
hoEditorFactory.docTree.curDomRange.endPath = ePath;
|
|
88206
88266
|
nodes.splice(nodes.length - 1, 1);
|
|
88207
88267
|
case 22:
|
|
88208
88268
|
if (!(nodes.length === 1 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 2)) {
|
|
88209
|
-
|
|
88269
|
+
_context3.next = 24;
|
|
88210
88270
|
break;
|
|
88211
88271
|
}
|
|
88212
|
-
return
|
|
88272
|
+
return _context3.abrupt("return");
|
|
88213
88273
|
case 24:
|
|
88214
88274
|
if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
|
|
88215
88275
|
sPath = nodes[0].getNodePath();
|
|
@@ -88217,18 +88277,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88217
88277
|
nodes.splice(0, 1);
|
|
88218
88278
|
}
|
|
88219
88279
|
if (!(nodes.length === 2 && nodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[1].MarkNodeType === 2 && !nodes[1].parentNode.canModifyContent)) {
|
|
88220
|
-
|
|
88280
|
+
_context3.next = 30;
|
|
88221
88281
|
break;
|
|
88222
88282
|
}
|
|
88223
|
-
|
|
88224
|
-
|
|
88283
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88284
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该元素不允许编辑。");
|
|
88225
88285
|
this._isError = true;
|
|
88226
|
-
return
|
|
88286
|
+
return _context3.abrupt("return");
|
|
88227
88287
|
case 30:
|
|
88228
88288
|
n = 0;
|
|
88229
88289
|
case 31:
|
|
88230
88290
|
if (!(n < nodes.length)) {
|
|
88231
|
-
|
|
88291
|
+
_context3.next = 67;
|
|
88232
88292
|
break;
|
|
88233
88293
|
}
|
|
88234
88294
|
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
@@ -88236,12 +88296,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88236
88296
|
// this._isError = true;
|
|
88237
88297
|
// return;
|
|
88238
88298
|
// }
|
|
88239
|
-
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof
|
|
88240
|
-
|
|
88299
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re)) {
|
|
88300
|
+
_context3.next = 44;
|
|
88241
88301
|
break;
|
|
88242
88302
|
}
|
|
88243
88303
|
if (node.isAllowDelete) {
|
|
88244
|
-
|
|
88304
|
+
_context3.next = 44;
|
|
88245
88305
|
break;
|
|
88246
88306
|
}
|
|
88247
88307
|
tip = "";
|
|
@@ -88257,49 +88317,49 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88257
88317
|
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__/* .DownListNode */ .yF) {
|
|
88258
88318
|
tip = "下拉列表";
|
|
88259
88319
|
}
|
|
88260
|
-
|
|
88261
|
-
|
|
88320
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88321
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
|
|
88262
88322
|
this._isError = true;
|
|
88263
|
-
return
|
|
88323
|
+
return _context3.abrupt("return");
|
|
88264
88324
|
case 44:
|
|
88265
88325
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
|
|
88266
|
-
|
|
88326
|
+
_context3.next = 49;
|
|
88267
88327
|
break;
|
|
88268
88328
|
}
|
|
88269
|
-
|
|
88270
|
-
|
|
88329
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88330
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
88271
88331
|
this._isError = true;
|
|
88272
|
-
return
|
|
88332
|
+
return _context3.abrupt("return");
|
|
88273
88333
|
case 49:
|
|
88274
|
-
if (!(node instanceof
|
|
88275
|
-
|
|
88334
|
+
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__/* .TableFormula */ .N)) {
|
|
88335
|
+
_context3.next = 54;
|
|
88276
88336
|
break;
|
|
88277
88337
|
}
|
|
88278
|
-
|
|
88279
|
-
|
|
88338
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88339
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
88280
88340
|
this._isError = true;
|
|
88281
|
-
return
|
|
88341
|
+
return _context3.abrupt("return");
|
|
88282
88342
|
case 54:
|
|
88283
88343
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
88284
|
-
|
|
88344
|
+
_context3.next = 59;
|
|
88285
88345
|
break;
|
|
88286
88346
|
}
|
|
88287
|
-
|
|
88288
|
-
|
|
88347
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88348
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
88289
88349
|
this._isError = true;
|
|
88290
|
-
return
|
|
88350
|
+
return _context3.abrupt("return");
|
|
88291
88351
|
case 59:
|
|
88292
|
-
if (!(node instanceof
|
|
88293
|
-
|
|
88352
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__/* .SignNode */ .N)) {
|
|
88353
|
+
_context3.next = 64;
|
|
88294
88354
|
break;
|
|
88295
88355
|
}
|
|
88296
|
-
|
|
88297
|
-
|
|
88356
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88357
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
88298
88358
|
this._isError = true;
|
|
88299
|
-
return
|
|
88359
|
+
return _context3.abrupt("return");
|
|
88300
88360
|
case 64:
|
|
88301
88361
|
n++;
|
|
88302
|
-
|
|
88362
|
+
_context3.next = 31;
|
|
88303
88363
|
break;
|
|
88304
88364
|
case 67:
|
|
88305
88365
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
@@ -88308,7 +88368,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88308
88368
|
case 68:
|
|
88309
88369
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
88310
88370
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
88311
|
-
|
|
88371
|
+
_context3.next = 74;
|
|
88312
88372
|
break;
|
|
88313
88373
|
}
|
|
88314
88374
|
//判断当前TextInputField是否可编辑
|
|
@@ -88320,15 +88380,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88320
88380
|
// this._undo.commit();
|
|
88321
88381
|
});
|
|
88322
88382
|
if (_res[0]) {
|
|
88323
|
-
|
|
88383
|
+
_context3.next = 74;
|
|
88324
88384
|
break;
|
|
88325
88385
|
}
|
|
88326
|
-
return
|
|
88386
|
+
return _context3.abrupt("return");
|
|
88327
88387
|
case 74:
|
|
88328
88388
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_17__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
88329
88389
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
88330
88390
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
88331
|
-
|
|
88391
|
+
_context3.next = 77;
|
|
88332
88392
|
break;
|
|
88333
88393
|
}
|
|
88334
88394
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
@@ -88344,12 +88404,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88344
88404
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
88345
88405
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
88346
88406
|
if (!(res == 1)) {
|
|
88347
|
-
|
|
88407
|
+
_context3.next = 89;
|
|
88348
88408
|
break;
|
|
88349
88409
|
}
|
|
88350
88410
|
changeEvent.beforeChangePath = startPath;
|
|
88351
88411
|
changeEvent.afterChangePath = this._tmp.start;
|
|
88352
|
-
|
|
88412
|
+
_context3.next = 87;
|
|
88353
88413
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
88354
88414
|
case 87:
|
|
88355
88415
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
@@ -88362,16 +88422,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88362
88422
|
pnode = aNode.parentNode;
|
|
88363
88423
|
}
|
|
88364
88424
|
if (!(aNode && pnode)) {
|
|
88365
|
-
|
|
88425
|
+
_context3.next = 96;
|
|
88366
88426
|
break;
|
|
88367
88427
|
}
|
|
88368
|
-
|
|
88428
|
+
_context3.next = 96;
|
|
88369
88429
|
return this.ParentRepaint(pnode);
|
|
88370
88430
|
case 96:
|
|
88371
88431
|
case "end":
|
|
88372
|
-
return
|
|
88432
|
+
return _context3.stop();
|
|
88373
88433
|
}
|
|
88374
|
-
},
|
|
88434
|
+
}, _callee3, this);
|
|
88375
88435
|
}));
|
|
88376
88436
|
function doRedo() {
|
|
88377
88437
|
return _doRedo.apply(this, arguments);
|
|
@@ -166327,11 +166387,11 @@ var map = {
|
|
|
166327
166387
|
"./table/TableCellPoper.vue": 97628,
|
|
166328
166388
|
"./table/TableCellPoper1.vue": 44645,
|
|
166329
166389
|
"./table/TableCellProperty.vue": 63689,
|
|
166330
|
-
"./table/TableColProperty.vue":
|
|
166390
|
+
"./table/TableColProperty.vue": 15417,
|
|
166331
166391
|
"./table/TableForm.vue": 79036,
|
|
166332
166392
|
"./table/TableFormTree.vue": 84804,
|
|
166333
166393
|
"./table/TableFormula.vue": 45865,
|
|
166334
|
-
"./table/TableProperty.vue":
|
|
166394
|
+
"./table/TableProperty.vue": 54054,
|
|
166335
166395
|
"./table/TableRowProperty.vue": 21568,
|
|
166336
166396
|
"./textDialog/TextDialog.vue": 29520,
|
|
166337
166397
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
@@ -203771,8 +203831,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
203771
203831
|
var es_number_constructor = __webpack_require__(9653);
|
|
203772
203832
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
203773
203833
|
var es_json_stringify = __webpack_require__(38862);
|
|
203774
|
-
;// 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=
|
|
203775
|
-
var
|
|
203834
|
+
;// 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=c9703c12&
|
|
203835
|
+
var HoDocvue_type_template_id_c9703c12_render = function render() {
|
|
203776
203836
|
var _vm = this,
|
|
203777
203837
|
_c = _vm._self._c;
|
|
203778
203838
|
return _c('div', {
|
|
@@ -203844,6 +203904,23 @@ var HoDocvue_type_template_id_e388825c_render = function render() {
|
|
|
203844
203904
|
}, [_vm._v("新增行")]) : _vm._e()];
|
|
203845
203905
|
},
|
|
203846
203906
|
proxy: true
|
|
203907
|
+
}, {
|
|
203908
|
+
key: "hoAddNextCellButton",
|
|
203909
|
+
fn: function fn() {
|
|
203910
|
+
return [_vm.nextCellButton ? _c('a-button', {
|
|
203911
|
+
staticClass: "add-cell-button add-next-cell-button",
|
|
203912
|
+
style: _vm.cellButtonPos,
|
|
203913
|
+
attrs: {
|
|
203914
|
+
"type": "primary"
|
|
203915
|
+
},
|
|
203916
|
+
on: {
|
|
203917
|
+
"click": function click($event) {
|
|
203918
|
+
return _vm.addNextCellRow();
|
|
203919
|
+
}
|
|
203920
|
+
}
|
|
203921
|
+
}, [_vm._v("新增一行")]) : _vm._e()];
|
|
203922
|
+
},
|
|
203923
|
+
proxy: true
|
|
203847
203924
|
}, {
|
|
203848
203925
|
key: "hoAddSelectMark",
|
|
203849
203926
|
fn: function fn() {
|
|
@@ -203956,7 +204033,7 @@ var HoDocvue_type_template_id_e388825c_render = function render() {
|
|
|
203956
204033
|
}
|
|
203957
204034
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
203958
204035
|
};
|
|
203959
|
-
var
|
|
204036
|
+
var HoDocvue_type_template_id_c9703c12_staticRenderFns = [];
|
|
203960
204037
|
|
|
203961
204038
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
203962
204039
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -203968,8 +204045,8 @@ var es_array_sort = __webpack_require__(2707);
|
|
|
203968
204045
|
var es_string_replace = __webpack_require__(15306);
|
|
203969
204046
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
203970
204047
|
var es_array_map = __webpack_require__(21249);
|
|
203971
|
-
;// 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/HoPage.vue?vue&type=template&id=
|
|
203972
|
-
var
|
|
204048
|
+
;// 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/HoPage.vue?vue&type=template&id=ff41b2c0&
|
|
204049
|
+
var HoPagevue_type_template_id_ff41b2c0_render = function render() {
|
|
203973
204050
|
var _vm = this,
|
|
203974
204051
|
_c = _vm._self._c;
|
|
203975
204052
|
return _c('div', {
|
|
@@ -204015,7 +204092,7 @@ var HoPagevue_type_template_id_7e15e978_render = function render() {
|
|
|
204015
204092
|
attrs: {
|
|
204016
204093
|
"id": 'ho-comment-box-' + _vm.index
|
|
204017
204094
|
}
|
|
204018
|
-
}), [_vm._t("hoAddCellButton")], [_vm._t("hoAddSelectMark")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
204095
|
+
}), [_vm._t("hoAddCellButton")], [_vm._t("hoAddSelectMark")], [_vm._t("hoAddNextCellButton")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
204019
204096
|
attrs: {
|
|
204020
204097
|
"textStyles": _vm.textStyles,
|
|
204021
204098
|
"scaleWidth": _vm.canvasWidth,
|
|
@@ -204042,7 +204119,7 @@ var HoPagevue_type_template_id_7e15e978_render = function render() {
|
|
|
204042
204119
|
}], null, true)
|
|
204043
204120
|
}) : _vm._e()], 2);
|
|
204044
204121
|
};
|
|
204045
|
-
var
|
|
204122
|
+
var HoPagevue_type_template_id_ff41b2c0_staticRenderFns = [];
|
|
204046
204123
|
|
|
204047
204124
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
204048
204125
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -205337,10 +205414,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205337
205414
|
});
|
|
205338
205415
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
205339
205416
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
205340
|
-
;// 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/HoPage.vue?vue&type=style&index=0&id=
|
|
205417
|
+
;// 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/HoPage.vue?vue&type=style&index=0&id=ff41b2c0&prod&lang=less&
|
|
205341
205418
|
// extracted by mini-css-extract-plugin
|
|
205342
205419
|
|
|
205343
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
205420
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=ff41b2c0&prod&lang=less&
|
|
205344
205421
|
|
|
205345
205422
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
205346
205423
|
|
|
@@ -205353,8 +205430,8 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205353
205430
|
|
|
205354
205431
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
205355
205432
|
components_HoPagevue_type_script_lang_js_,
|
|
205356
|
-
|
|
205357
|
-
|
|
205433
|
+
HoPagevue_type_template_id_ff41b2c0_render,
|
|
205434
|
+
HoPagevue_type_template_id_ff41b2c0_staticRenderFns,
|
|
205358
205435
|
false,
|
|
205359
205436
|
null,
|
|
205360
205437
|
null,
|
|
@@ -206947,7 +207024,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
206947
207024
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206948
207025
|
var ParagraphNode = __webpack_require__(67945);
|
|
206949
207026
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206950
|
-
/* harmony default export */ var version = ('3.1.
|
|
207027
|
+
/* harmony default export */ var version = ('3.1.77');
|
|
206951
207028
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
206952
207029
|
var PoperTipText = __webpack_require__(50987);
|
|
206953
207030
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -206955,6 +207032,8 @@ var PoperTipText = __webpack_require__(50987);
|
|
|
206955
207032
|
/* harmony default export */ var poperTipText = (PoperTipText["default"]);
|
|
206956
207033
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
206957
207034
|
var ImageNode = __webpack_require__(97186);
|
|
207035
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
207036
|
+
var TableNode = __webpack_require__(5010);
|
|
206958
207037
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
206959
207038
|
|
|
206960
207039
|
|
|
@@ -206993,6 +207072,7 @@ var ImageNode = __webpack_require__(97186);
|
|
|
206993
207072
|
|
|
206994
207073
|
|
|
206995
207074
|
|
|
207075
|
+
|
|
206996
207076
|
|
|
206997
207077
|
|
|
206998
207078
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
@@ -207044,6 +207124,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207044
207124
|
moveType: 1,
|
|
207045
207125
|
text: ''
|
|
207046
207126
|
},
|
|
207127
|
+
cellButtonPos: {
|
|
207128
|
+
right: 0,
|
|
207129
|
+
top: 0
|
|
207130
|
+
},
|
|
207047
207131
|
// 是否当前正在绘制
|
|
207048
207132
|
drawing: false,
|
|
207049
207133
|
nodeValue: '',
|
|
@@ -207096,6 +207180,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207096
207180
|
changeCount: 0
|
|
207097
207181
|
},
|
|
207098
207182
|
cellButton: false,
|
|
207183
|
+
nextCellButton: false,
|
|
207099
207184
|
isAutoPoper: false,
|
|
207100
207185
|
// 自动打开的弹窗
|
|
207101
207186
|
selectMarkStyle: {}
|
|
@@ -207227,21 +207312,11 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207227
207312
|
this.isCreateRightMenuModal = false;
|
|
207228
207313
|
this.showDeleteSignMenu = false;
|
|
207229
207314
|
},
|
|
207230
|
-
beforeDestroy: function beforeDestroy() {
|
|
207231
|
-
var _this$viewableAreaObs,
|
|
207232
|
-
_this3 = this;
|
|
207233
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207234
|
-
// this.mutationObserver?.disconnect();
|
|
207235
|
-
(_this$viewableAreaObs = this.viewableAreaObserver) === null || _this$viewableAreaObs === void 0 ? void 0 : _this$viewableAreaObs.disconnect();
|
|
207236
|
-
hoEditorFactory.docTree.removeEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
207237
|
-
return _this3.mouseClickEvent(e);
|
|
207238
|
-
});
|
|
207239
|
-
},
|
|
207240
207315
|
/**
|
|
207241
207316
|
* 监听节点是否在可视区内
|
|
207242
207317
|
*/
|
|
207243
207318
|
pageIntersectionObserver: function pageIntersectionObserver() {
|
|
207244
|
-
var
|
|
207319
|
+
var _this3 = this;
|
|
207245
207320
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207246
207321
|
this.viewableAreaObserver = new intersection_observer_polyfill(function (entries) {
|
|
207247
207322
|
if (entries) {
|
|
@@ -207272,7 +207347,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207272
207347
|
return a < b;
|
|
207273
207348
|
});
|
|
207274
207349
|
});
|
|
207275
|
-
|
|
207350
|
+
_this3.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
207276
207351
|
hoEditorFactory.drawTree.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
207277
207352
|
hoEditorFactory.drawPageTree.changeInViewPage();
|
|
207278
207353
|
}
|
|
@@ -207305,7 +207380,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207305
207380
|
* 鼠标click事件
|
|
207306
207381
|
*/
|
|
207307
207382
|
mouseClickEvent: function mouseClickEvent(e) {
|
|
207308
|
-
var
|
|
207383
|
+
var _this4 = this;
|
|
207309
207384
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207310
207385
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
207311
207386
|
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
@@ -207314,14 +207389,14 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207314
207389
|
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
207315
207390
|
}
|
|
207316
207391
|
var node = e.node;
|
|
207317
|
-
this.selectMarkStyle.display =
|
|
207392
|
+
this.selectMarkStyle.display = 'none';
|
|
207318
207393
|
this.poperClose();
|
|
207319
207394
|
if (node && node !== null) {
|
|
207320
207395
|
var pageIndex = e.pageIndex;
|
|
207321
207396
|
if (e.clickType === 'dblclick') {
|
|
207322
207397
|
if (node instanceof BaseNode/* BaseNode */.Hd) {
|
|
207323
207398
|
setTimeout(function () {
|
|
207324
|
-
|
|
207399
|
+
_this4.dblclickModal(node, 'dblclick', pageIndex);
|
|
207325
207400
|
}, 150);
|
|
207326
207401
|
}
|
|
207327
207402
|
} else if (e.clickType === 'leftclick' && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
@@ -207338,10 +207413,12 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207338
207413
|
_domRange$inSameTable2 = (0,esm_slicedToArray/* default */.Z)(_domRange$inSameTable, 2),
|
|
207339
207414
|
isInTable = _domRange$inSameTable2[0],
|
|
207340
207415
|
tableNode = _domRange$inSameTable2[1];
|
|
207416
|
+
this.nextCellButton = false;
|
|
207341
207417
|
if (isInTable) {
|
|
207342
207418
|
if (!this.cellButton) {
|
|
207343
207419
|
this.createAddCellButton(node, pageIndex);
|
|
207344
207420
|
}
|
|
207421
|
+
this.createAddNextCellButton(node, pageIndex);
|
|
207345
207422
|
} else {
|
|
207346
207423
|
this.cellButton = false;
|
|
207347
207424
|
}
|
|
@@ -207361,7 +207438,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207361
207438
|
type: 'TextInputFieldNode'
|
|
207362
207439
|
});
|
|
207363
207440
|
this.$nextTick(function () {
|
|
207364
|
-
|
|
207441
|
+
_this4.createSelectMark(node, hoEditorFactory.drawTree.paintStatus, pageIndex);
|
|
207365
207442
|
});
|
|
207366
207443
|
}
|
|
207367
207444
|
}
|
|
@@ -207402,10 +207479,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207402
207479
|
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
207403
207480
|
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
207404
207481
|
};
|
|
207405
|
-
var
|
|
207406
|
-
|
|
207407
|
-
isInTable =
|
|
207408
|
-
tableNode =
|
|
207482
|
+
var _hoEditorFactory$vueC2 = hoEditorFactory.vueController.getDomRange().inSameTable(),
|
|
207483
|
+
_hoEditorFactory$vueC3 = (0,esm_slicedToArray/* default */.Z)(_hoEditorFactory$vueC2, 2),
|
|
207484
|
+
isInTable = _hoEditorFactory$vueC3[0],
|
|
207485
|
+
tableNode = _hoEditorFactory$vueC3[1];
|
|
207409
207486
|
if (paintStatus == 1 && isInTable) {
|
|
207410
207487
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
207411
207488
|
if (!result) return;
|
|
@@ -207510,13 +207587,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207510
207587
|
}
|
|
207511
207588
|
},
|
|
207512
207589
|
updateSelectMark: function updateSelectMark() {
|
|
207513
|
-
var
|
|
207590
|
+
var _this5 = this;
|
|
207514
207591
|
this.selectMarkStyle.display = 'none';
|
|
207515
207592
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207516
207593
|
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
207517
207594
|
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
207518
207595
|
setTimeout(function () {
|
|
207519
|
-
|
|
207596
|
+
_this5.createSelectMark(node, paintStatus, _this5.selectMarkStyle.pageIndex);
|
|
207520
207597
|
}, 300);
|
|
207521
207598
|
},
|
|
207522
207599
|
getRootNode: function getRootNode(node) {
|
|
@@ -207531,7 +207608,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207531
207608
|
while (!flag && index >= 0) {
|
|
207532
207609
|
if (!flag) {
|
|
207533
207610
|
index--;
|
|
207534
|
-
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes(
|
|
207611
|
+
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes('<元素>');
|
|
207535
207612
|
if (!flag) {
|
|
207536
207613
|
var _parentNode2;
|
|
207537
207614
|
parentNode = (_parentNode2 = parentNode) === null || _parentNode2 === void 0 ? void 0 : _parentNode2.parentNode;
|
|
@@ -207545,7 +207622,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207545
207622
|
if (parentNode) {
|
|
207546
207623
|
var _parentNode$downListP;
|
|
207547
207624
|
var lists = (_parentNode$downListP = parentNode.downListProperty) === null || _parentNode$downListP === void 0 ? void 0 : _parentNode$downListP.listItems;
|
|
207548
|
-
if (lists && lists.includes(
|
|
207625
|
+
if (lists && lists.includes('<元素>')) {
|
|
207549
207626
|
var pos = this.computedPoperPosition(parentNode.childNodes[parentNode.childNodes.length - 1], pageIndex, true);
|
|
207550
207627
|
this.selectMarkStyle = {
|
|
207551
207628
|
display: 'block',
|
|
@@ -207576,7 +207653,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207576
207653
|
}
|
|
207577
207654
|
},
|
|
207578
207655
|
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
207579
|
-
var
|
|
207656
|
+
var _this6 = this;
|
|
207580
207657
|
if (paintStatus === 0) {
|
|
207581
207658
|
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
207582
207659
|
return;
|
|
@@ -207585,13 +207662,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207585
207662
|
return;
|
|
207586
207663
|
}
|
|
207587
207664
|
var callback = function callback(list) {
|
|
207588
|
-
|
|
207665
|
+
_this6.computedPoperPosition(node, pageIndex);
|
|
207589
207666
|
if (Array.isArray(list) && list.length > 0) {
|
|
207590
|
-
|
|
207667
|
+
_this6.poperSelectList = list;
|
|
207591
207668
|
} else {
|
|
207592
|
-
|
|
207669
|
+
_this6.poperSelectList = node.downListContent ? node.downListContent : [];
|
|
207593
207670
|
}
|
|
207594
|
-
|
|
207671
|
+
_this6.poperType = 'selectPoper';
|
|
207595
207672
|
};
|
|
207596
207673
|
if (node.customProperty && node.customProperty.hasThirdData == true) {
|
|
207597
207674
|
this.$emit('dblNodeClick', {
|
|
@@ -207606,7 +207683,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207606
207683
|
}
|
|
207607
207684
|
},
|
|
207608
207685
|
createInputProper: function createInputProper(node, parentNode, paintStatus, pageIndex) {
|
|
207609
|
-
var
|
|
207686
|
+
var _this7 = this;
|
|
207610
207687
|
if (paintStatus === 0) {
|
|
207611
207688
|
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
207612
207689
|
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
@@ -207633,15 +207710,15 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207633
207710
|
lists = (_node$downListPropert3 = node.downListProperty) !== null && _node$downListPropert3 !== void 0 && _node$downListPropert3.listItems ? JSON.parse((_node$downListPropert4 = node.downListProperty) === null || _node$downListPropert4 === void 0 ? void 0 : _node$downListPropert4.listItems) : [];
|
|
207634
207711
|
}
|
|
207635
207712
|
var callback = function callback(list) {
|
|
207636
|
-
|
|
207713
|
+
_this7.computedPoperPosition(node, pageIndex);
|
|
207637
207714
|
if (Array.isArray(list) && list.length > 0) {
|
|
207638
|
-
|
|
207715
|
+
_this7.poperSelectList = list;
|
|
207639
207716
|
} else {
|
|
207640
|
-
|
|
207717
|
+
_this7.poperSelectList = lists.filter(function (v) {
|
|
207641
207718
|
return v.value || v.text;
|
|
207642
207719
|
});
|
|
207643
207720
|
}
|
|
207644
|
-
|
|
207721
|
+
_this7.poperType = 'selectPoper';
|
|
207645
207722
|
};
|
|
207646
207723
|
if (parentNode.customProperty && parentNode.customProperty.hasThirdData == true) {
|
|
207647
207724
|
this.$emit('dblNodeClick', {
|
|
@@ -207668,9 +207745,46 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207668
207745
|
this.cellButton = false;
|
|
207669
207746
|
}
|
|
207670
207747
|
},
|
|
207748
|
+
createAddNextCellButton: function createAddNextCellButton(node, pageIndex) {
|
|
207749
|
+
var cell = null;
|
|
207750
|
+
if (node instanceof CellNode/* CellNode */.D) {
|
|
207751
|
+
cell = node;
|
|
207752
|
+
} else if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
207753
|
+
cell = node.parentNode;
|
|
207754
|
+
}
|
|
207755
|
+
if (cell && cell.table.tableProperty.addRowByOrder) {
|
|
207756
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207757
|
+
var drawNodes = cell.table.drawNodes[0];
|
|
207758
|
+
var headerHeight = hoEditorFactory.drawTree.drawPages[pageIndex].drawDomLevel.mainDocTop;
|
|
207759
|
+
var top = headerHeight + drawNodes.drawPageTables[0].y - 20;
|
|
207760
|
+
this.cellButtonPos = {
|
|
207761
|
+
left: (hoEditorFactory.pageProperty.leftMarginPixes + drawNodes.dWidth - 78) / scaleXY + 'px',
|
|
207762
|
+
// 目标元素所在行的 x
|
|
207763
|
+
top: top / scaleXY + 'px' // 目标元素所在行的 y
|
|
207764
|
+
};
|
|
207765
|
+
|
|
207766
|
+
this.nextCellButton = true;
|
|
207767
|
+
} else {
|
|
207768
|
+
this.nextCellButton = false;
|
|
207769
|
+
}
|
|
207770
|
+
},
|
|
207671
207771
|
handleForm: function handleForm(type) {
|
|
207672
207772
|
this.hoEditorProvider.setControlProperty('table-form', type, '');
|
|
207673
207773
|
},
|
|
207774
|
+
addNextCellRow: function addNextCellRow() {
|
|
207775
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207776
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
207777
|
+
var node = hoEditorFactory.docTree.findNodePositionByPath(curDomRange.startPath);
|
|
207778
|
+
var table = null;
|
|
207779
|
+
if (node instanceof CellNode/* CellNode */.D) {
|
|
207780
|
+
table = node.table;
|
|
207781
|
+
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
207782
|
+
table = node.parentNode.table;
|
|
207783
|
+
} else if (node instanceof TableNode/* TableNode */.Fh) {
|
|
207784
|
+
table = node;
|
|
207785
|
+
}
|
|
207786
|
+
hoEditorFactory.vueController.insertTableRowAbove(1, table);
|
|
207787
|
+
},
|
|
207674
207788
|
/**
|
|
207675
207789
|
* 单元格属性触发 poper:
|
|
207676
207790
|
* 1. 列属性不是日期和下拉时
|
|
@@ -207762,10 +207876,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207762
207876
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
207763
207877
|
*/
|
|
207764
207878
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
207765
|
-
var
|
|
207879
|
+
var _this8 = this;
|
|
207766
207880
|
this.$nextTick(function () {
|
|
207767
207881
|
var _hoEditorFactory$docT;
|
|
207768
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(
|
|
207882
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this8.hoEditorId);
|
|
207769
207883
|
var rightPosition = {
|
|
207770
207884
|
clientX: e.clientX || e.pageX,
|
|
207771
207885
|
clientY: e.clientY || e.pageY
|
|
@@ -207779,25 +207893,25 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207779
207893
|
// psReview, // 审阅
|
|
207780
207894
|
// psReadOnly, // 预览
|
|
207781
207895
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psEdit) {
|
|
207782
|
-
|
|
207896
|
+
_this8.isCreateRightMenuModal = true;
|
|
207783
207897
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview && node instanceof SignNode/* SignNode */.N) {
|
|
207784
|
-
|
|
207785
|
-
|
|
207898
|
+
_this8.isCreateRightMenuModal = false;
|
|
207899
|
+
_this8.hoEditorProvider.setRightClickNodeValue(node);
|
|
207786
207900
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
207787
|
-
|
|
207901
|
+
_this8.$emit('rightClickEventIn', rightPosition);
|
|
207788
207902
|
return;
|
|
207789
207903
|
} else {
|
|
207790
|
-
|
|
207791
|
-
|
|
207904
|
+
_this8.isHideComments = hoEditorFactory.isHideComments;
|
|
207905
|
+
_this8.showCommentsBtn = true;
|
|
207792
207906
|
}
|
|
207793
|
-
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY,
|
|
207907
|
+
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY, _this8.$refs.rightMenuModal);
|
|
207794
207908
|
return;
|
|
207795
207909
|
}
|
|
207796
207910
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
207797
|
-
|
|
207911
|
+
_this8.hoEditorProvider.setRightClickNodeValue(node);
|
|
207798
207912
|
}
|
|
207799
207913
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
207800
|
-
|
|
207914
|
+
_this8.$emit('rightClickEventIn', rightPosition);
|
|
207801
207915
|
});
|
|
207802
207916
|
},
|
|
207803
207917
|
hoCopy: function hoCopy(e) {
|
|
@@ -207837,14 +207951,24 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207837
207951
|
this.drawing = false;
|
|
207838
207952
|
}
|
|
207839
207953
|
}
|
|
207954
|
+
},
|
|
207955
|
+
beforeDestroy: function beforeDestroy() {
|
|
207956
|
+
var _this$viewableAreaObs,
|
|
207957
|
+
_this9 = this;
|
|
207958
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
207959
|
+
// this.mutationObserver?.disconnect();
|
|
207960
|
+
(_this$viewableAreaObs = this.viewableAreaObserver) === null || _this$viewableAreaObs === void 0 ? void 0 : _this$viewableAreaObs.disconnect();
|
|
207961
|
+
hoEditorFactory.docTree.removeEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
207962
|
+
return _this9.mouseClickEvent(e);
|
|
207963
|
+
});
|
|
207840
207964
|
}
|
|
207841
207965
|
});
|
|
207842
207966
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
207843
207967
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
207844
|
-
;// 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=
|
|
207968
|
+
;// 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=c9703c12&prod&lang=less&
|
|
207845
207969
|
// extracted by mini-css-extract-plugin
|
|
207846
207970
|
|
|
207847
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
207971
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=c9703c12&prod&lang=less&
|
|
207848
207972
|
|
|
207849
207973
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
207850
207974
|
|
|
@@ -207857,8 +207981,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207857
207981
|
|
|
207858
207982
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
207859
207983
|
components_HoDocvue_type_script_lang_js_,
|
|
207860
|
-
|
|
207861
|
-
|
|
207984
|
+
HoDocvue_type_template_id_c9703c12_render,
|
|
207985
|
+
HoDocvue_type_template_id_c9703c12_staticRenderFns,
|
|
207862
207986
|
false,
|
|
207863
207987
|
null,
|
|
207864
207988
|
null,
|
|
@@ -207879,8 +208003,6 @@ var DrawPageMainDoc = __webpack_require__(77441);
|
|
|
207879
208003
|
var DrawLine = __webpack_require__(96635);
|
|
207880
208004
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageTable.ts
|
|
207881
208005
|
var DrawPageTable = __webpack_require__(15694);
|
|
207882
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
207883
|
-
var TableNode = __webpack_require__(5010);
|
|
207884
208006
|
;// CONCATENATED MODULE: ./src/editor/draw/drawTree/DrawPageTree.ts
|
|
207885
208007
|
|
|
207886
208008
|
|
|
@@ -215020,18 +215142,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215020
215142
|
*/
|
|
215021
215143
|
}, {
|
|
215022
215144
|
key: "insertTableRowAbove",
|
|
215023
|
-
value: function insertTableRowAbove(count
|
|
215145
|
+
value: function insertTableRowAbove(count) {
|
|
215146
|
+
var _curDomRange$npEnd$no;
|
|
215024
215147
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215025
|
-
|
|
215026
|
-
|
|
215027
|
-
|
|
215028
|
-
|
|
215148
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
215149
|
+
|
|
215150
|
+
var curCell = (_curDomRange$npEnd$no = _curDomRange.npEnd.node) === null || _curDomRange$npEnd$no === void 0 ? void 0 : _curDomRange$npEnd$no.parentNode;
|
|
215151
|
+
if (curCell instanceof CellNode/* CellNode */.D && curCell.table.tableProperty.addRowByOrder) {
|
|
215152
|
+
var titleIndex = hoEditorFactory.vueController.getTableTitleMaxRowIndex(curCell.table);
|
|
215153
|
+
if (curCell.table.rowCount > titleIndex + 1) {
|
|
215154
|
+
var path = curCell.table.rows[titleIndex + 1][0].childNodes[0].getNodePath();
|
|
215029
215155
|
hoEditorFactory.docTree.curDomRange.setSamePath(path);
|
|
215030
215156
|
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
215031
215157
|
count = 1;
|
|
215158
|
+
_curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
215032
215159
|
}
|
|
215033
215160
|
}
|
|
215034
|
-
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
215035
215161
|
var startPath = _curDomRange.normalize().startPath;
|
|
215036
215162
|
var endPath = _curDomRange.normalize().endPath;
|
|
215037
215163
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertRowAbove);
|
|
@@ -223914,7 +224040,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
223914
224040
|
message/* default */.Z.error("本列已完成签名,不允许修改编辑。");
|
|
223915
224041
|
return false;
|
|
223916
224042
|
}
|
|
223917
|
-
if (colProperty.editorProperty === TableProperty/* EditorProperty */.YS.OrderNumber) {
|
|
224043
|
+
if (pNode.table.tableProperty.addRowByOrder && colProperty.editorProperty === TableProperty/* EditorProperty */.YS.OrderNumber) {
|
|
223918
224044
|
message/* default */.Z.destroy();
|
|
223919
224045
|
message/* default */.Z.error("不允许编辑该列");
|
|
223920
224046
|
return false;
|
|
@@ -229040,7 +229166,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
229040
229166
|
*/return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){jspdf_console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
|
|
229041
229167
|
setLineWidth(lineWidth);// Set draw color
|
|
229042
229168
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
229043
|
-
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}jspdf_console.log(page);this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
229169
|
+
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}jspdf_console.log(page,'delete page');this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
229044
229170
|
* Returns a document-specific font key - a label assigned to a
|
|
229045
229171
|
* font name + font type combination at the time the font was added
|
|
229046
229172
|
* to the font inventory.
|
|
@@ -231925,7 +232051,9 @@ data=dataAsBinaryString||data;data=this.__addimage__.isArrayBuffer(data)?new Uin
|
|
|
231925
232051
|
var PNG=function(){var APNG_BLEND_OP_SOURCE,APNG_DISPOSE_OP_BACKGROUND,APNG_DISPOSE_OP_PREVIOUS,makeImage,scratchCanvas,scratchCtx;APNG_DISPOSE_OP_BACKGROUND=1;APNG_DISPOSE_OP_PREVIOUS=2;APNG_BLEND_OP_SOURCE=0;function PNG(data){var chunkSize,colors,palLen,delayDen,delayNum,frame,i,index,key,section,palShort,text,_i,_j,_ref;this.data=data;this.pos=8;this.palette=[];this.imgData=[];this.transparency={};this.animation=null;this.text={};frame=null;while(true){chunkSize=this.readUInt32();section=function(){var _i,_results;_results=[];for(i=_i=0;_i<4;i=++_i){_results.push(String.fromCharCode(this.data[this.pos++]));}return _results;}.call(this).join("");switch(section){case"IHDR":this.width=this.readUInt32();this.height=this.readUInt32();this.bits=this.data[this.pos++];this.colorType=this.data[this.pos++];this.compressionMethod=this.data[this.pos++];this.filterMethod=this.data[this.pos++];this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||Infinity,frames:[]};break;case"PLTE":this.palette=this.read(chunkSize);break;case"fcTL":if(frame){this.animation.frames.push(frame);}this.pos+=4;frame={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()};delayNum=this.readUInt16();delayDen=this.readUInt16()||100;frame.delay=1000*delayNum/delayDen;frame.disposeOp=this.data[this.pos++];frame.blendOp=this.data[this.pos++];frame.data=[];break;case"IDAT":case"fdAT":if(section==="fdAT"){this.pos+=4;chunkSize-=4;}data=(frame!=null?frame.data:void 0)||this.imgData;for(i=_i=0;0<=chunkSize?_i<chunkSize:_i>chunkSize;i=0<=chunkSize?++_i:--_i){data.push(this.data[this.pos++]);}break;case"tRNS":this.transparency={};switch(this.colorType){case 3:palLen=this.palette.length/3;this.transparency.indexed=this.read(chunkSize);if(this.transparency.indexed.length>palLen)throw new Error("More transparent colors than palette size");/*
|
|
231926
232052
|
* According to the PNG spec trns should be increased to the same size as palette if shorter
|
|
231927
232053
|
*/ //palShort = 255 - this.transparency.indexed.length;
|
|
231928
|
-
palShort=palLen-this.transparency.indexed.length;if(palShort>0){for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j){this.transparency.indexed.push(255);}}break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize);}break;case"tEXt":text=this.read(chunkSize);index=text.indexOf(0);key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case"IEND":if(frame){this.animation.frames.push(frame);}this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3;}}.call(this);this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6;colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB";}}.call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize;}this.pos+=4;if(this.pos>this.data.length){throw new Error("Incomplete or corrupt PNG file");}}}PNG.prototype.read=function(bytes){var i,_i,_results;_results=[];for(i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i){_results.push(this.data[this.pos++]);}return _results;};PNG.prototype.readUInt32=function(){var b1,b2,b3,b4;b1=this.data[this.pos++]<<24;b2=this.data[this.pos++]<<16;b3=this.data[this.pos++]<<8;b4=this.data[this.pos++];return b1|b2|b3|b4;};PNG.prototype.readUInt16=function(){var b1,b2;b1=this.data[this.pos++]<<8;b2=this.data[this.pos++];return b1|b2;};PNG.prototype.decodePixels=function(data){var pixelBytes=this.pixelBitlength/8;var fullPixels=new Uint8Array(this.width*this.height*pixelBytes);var pos=0;var _this=this;if(data==null){data=this.imgData;}if(data.length===0){return new Uint8Array(0);}data=unzlibSync(data);function pass(x0,y0,dx,dy){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixels,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m;var w=Math.ceil((_this.width-x0)/dx),h=Math.ceil((_this.height-y0)/dy);var isFull=_this.width==w&&_this.height==h;scanlineLength=pixelBytes*w;pixels=isFull?fullPixels:new Uint8Array(scanlineLength*h);length=data.length;row=0;c=0;while(row<h&&pos<length){switch(data[pos++]){case 0:for(i=_i=0;_i<scanlineLength;i=_i+=1){pixels[c++]=data[pos++];}break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1){abyte=data[pos++];left=i<pixelBytes?0:pixels[c-pixelBytes];pixels[c++]=(abyte+left)%256;}break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(upper+abyte)%256;}break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;}break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes];}p=left+upper-upperLeft;pa=Math.abs(p-left);pb=Math.abs(p-upper);pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}pixels[c++]=(abyte+paeth)%256;}break;default
|
|
232054
|
+
palShort=palLen-this.transparency.indexed.length;if(palShort>0){for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j){this.transparency.indexed.push(255);}}break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize);}break;case"tEXt":text=this.read(chunkSize);index=text.indexOf(0);key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case"IEND":if(frame){this.animation.frames.push(frame);}this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3;}}.call(this);this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6;colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB";}}.call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize;}this.pos+=4;if(this.pos>this.data.length){throw new Error("Incomplete or corrupt PNG file");}}}PNG.prototype.read=function(bytes){var i,_i,_results;_results=[];for(i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i){_results.push(this.data[this.pos++]);}return _results;};PNG.prototype.readUInt32=function(){var b1,b2,b3,b4;b1=this.data[this.pos++]<<24;b2=this.data[this.pos++]<<16;b3=this.data[this.pos++]<<8;b4=this.data[this.pos++];return b1|b2|b3|b4;};PNG.prototype.readUInt16=function(){var b1,b2;b1=this.data[this.pos++]<<8;b2=this.data[this.pos++];return b1|b2;};PNG.prototype.decodePixels=function(data){var pixelBytes=this.pixelBitlength/8;var fullPixels=new Uint8Array(this.width*this.height*pixelBytes);var pos=0;var _this=this;if(data==null){data=this.imgData;}if(data.length===0){return new Uint8Array(0);}data=unzlibSync(data);function pass(x0,y0,dx,dy){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixels,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m;var w=Math.ceil((_this.width-x0)/dx),h=Math.ceil((_this.height-y0)/dy);var isFull=_this.width==w&&_this.height==h;scanlineLength=pixelBytes*w;pixels=isFull?fullPixels:new Uint8Array(scanlineLength*h);length=data.length;row=0;c=0;while(row<h&&pos<length){switch(data[pos++]){case 0:for(i=_i=0;_i<scanlineLength;i=_i+=1){pixels[c++]=data[pos++];}break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1){abyte=data[pos++];left=i<pixelBytes?0:pixels[c-pixelBytes];pixels[c++]=(abyte+left)%256;}break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(upper+abyte)%256;}break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;}break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes];}p=left+upper-upperLeft;pa=Math.abs(p-left);pb=Math.abs(p-upper);pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}pixels[c++]=(abyte+paeth)%256;}break;default:// 自定义修改 忽略图片格式解析报错,仅在控制台打印警告日志
|
|
232055
|
+
jspdf_console.warn("Invalid filter algorithm: ".concat((data[pos-1],data[pos]),"--png\u683C\u5F0F\u56FE\u7247\u53EA\u5305\u542B[01234]"));// throw new Error("Invalid filter algorithm: " + data[pos - 1]);
|
|
232056
|
+
}if(!isFull){var fullPos=((y0+row*dy)*_this.width+x0)*pixelBytes;var partPos=row*scanlineLength;for(i=0;i<w;i+=1){for(var j=0;j<pixelBytes;j+=1){fullPixels[fullPos++]=pixels[partPos++];}fullPos+=(dx-1)*pixelBytes;}}row++;}}if(_this.interlaceMethod==1){/*
|
|
231929
232057
|
1 6 4 6 2 6 4 6
|
|
231930
232058
|
7 7 7 7 7 7 7 7
|
|
231931
232059
|
5 6 5 6 5 6 5 6
|