hoeditor-web 3.1.129 → 3.1.131
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 +18016 -1
- package/lib/hoeditor.umd.js +193 -199
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -12982,7 +12982,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12982
12982
|
|
|
12983
12983
|
/***/ }),
|
|
12984
12984
|
|
|
12985
|
-
/***/
|
|
12985
|
+
/***/ 84531:
|
|
12986
12986
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12987
12987
|
|
|
12988
12988
|
"use strict";
|
|
@@ -12994,7 +12994,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12994
12994
|
"default": function() { return /* binding */ PoperTipText; }
|
|
12995
12995
|
});
|
|
12996
12996
|
|
|
12997
|
-
;// 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/poperTipText/PoperTipText.vue?vue&type=template&id=
|
|
12997
|
+
;// 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/poperTipText/PoperTipText.vue?vue&type=template&id=404c662a&
|
|
12998
12998
|
var render = function render() {
|
|
12999
12999
|
var _vm = this,
|
|
13000
13000
|
_c = _vm._self._c;
|
|
@@ -13166,10 +13166,10 @@ var popper = __webpack_require__(95551);
|
|
|
13166
13166
|
});
|
|
13167
13167
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=script&lang=js&
|
|
13168
13168
|
/* harmony default export */ var poperTipText_PoperTipTextvue_type_script_lang_js_ = (PoperTipTextvue_type_script_lang_js_);
|
|
13169
|
-
;// 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/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=
|
|
13169
|
+
;// 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/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=404c662a&prod&lang=less&
|
|
13170
13170
|
// extracted by mini-css-extract-plugin
|
|
13171
13171
|
|
|
13172
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=
|
|
13172
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=404c662a&prod&lang=less&
|
|
13173
13173
|
|
|
13174
13174
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13175
13175
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -19741,7 +19741,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
19741
19741
|
|
|
19742
19742
|
/***/ }),
|
|
19743
19743
|
|
|
19744
|
-
/***/
|
|
19744
|
+
/***/ 16154:
|
|
19745
19745
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19746
19746
|
|
|
19747
19747
|
"use strict";
|
|
@@ -19761,7 +19761,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
19761
19761
|
var es_string_includes = __webpack_require__(32023);
|
|
19762
19762
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
19763
19763
|
var es_number_constructor = __webpack_require__(9653);
|
|
19764
|
-
;// 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=
|
|
19764
|
+
;// 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=0e76e24b&
|
|
19765
19765
|
|
|
19766
19766
|
|
|
19767
19767
|
|
|
@@ -19847,6 +19847,20 @@ var render = function render() {
|
|
|
19847
19847
|
}
|
|
19848
19848
|
}, [_vm._v("签名完成后锁定列")])], 1)]), _c('li', {
|
|
19849
19849
|
staticClass: "control-item"
|
|
19850
|
+
}, [_c('div', {
|
|
19851
|
+
staticStyle: {
|
|
19852
|
+
"padding-right": "20px"
|
|
19853
|
+
}
|
|
19854
|
+
}, [_c('a-checkbox', {
|
|
19855
|
+
model: {
|
|
19856
|
+
value: _vm.addWithDefaultValue,
|
|
19857
|
+
callback: function callback($$v) {
|
|
19858
|
+
_vm.addWithDefaultValue = $$v;
|
|
19859
|
+
},
|
|
19860
|
+
expression: "addWithDefaultValue"
|
|
19861
|
+
}
|
|
19862
|
+
}, [_vm._v("新增时自动带出第一行默认值")])], 1)]), _c('li', {
|
|
19863
|
+
staticClass: "control-item"
|
|
19850
19864
|
}, [_c('span', {
|
|
19851
19865
|
staticClass: "label"
|
|
19852
19866
|
}, [_vm._v("编辑器属性")]), _c('a-select', {
|
|
@@ -19897,13 +19911,7 @@ var render = function render() {
|
|
|
19897
19911
|
attrs: {
|
|
19898
19912
|
"value": 6
|
|
19899
19913
|
}
|
|
19900
|
-
}, [_vm._v("序号")])], 1)], 1), _c('li', {
|
|
19901
|
-
directives: [{
|
|
19902
|
-
name: "show",
|
|
19903
|
-
rawName: "v-show",
|
|
19904
|
-
value: _vm.editorProperty === 4,
|
|
19905
|
-
expression: "editorProperty === 4"
|
|
19906
|
-
}],
|
|
19914
|
+
}, [_vm._v("序号")])], 1)], 1), _vm.editorProperty === 4 ? _c('li', {
|
|
19907
19915
|
staticClass: "control-item"
|
|
19908
19916
|
}, [_c('div', {
|
|
19909
19917
|
staticClass: "control-item"
|
|
@@ -19920,13 +19928,7 @@ var render = function render() {
|
|
|
19920
19928
|
},
|
|
19921
19929
|
expression: "name"
|
|
19922
19930
|
}
|
|
19923
|
-
})], 1)])
|
|
19924
|
-
directives: [{
|
|
19925
|
-
name: "show",
|
|
19926
|
-
rawName: "v-show",
|
|
19927
|
-
value: _vm.editorProperty === 1,
|
|
19928
|
-
expression: "editorProperty === 1"
|
|
19929
|
-
}],
|
|
19931
|
+
})], 1)]) : _vm.editorProperty === 1 ? [_c('li', {
|
|
19930
19932
|
staticClass: "control-item"
|
|
19931
19933
|
}, [_c('div', {
|
|
19932
19934
|
staticClass: "control-item"
|
|
@@ -19968,12 +19970,6 @@ var render = function render() {
|
|
|
19968
19970
|
"value": "-"
|
|
19969
19971
|
}
|
|
19970
19972
|
}, [_vm._v("-")])], 1)], 1)]), _c('li', {
|
|
19971
|
-
directives: [{
|
|
19972
|
-
name: "show",
|
|
19973
|
-
rawName: "v-show",
|
|
19974
|
-
value: _vm.editorProperty === 1,
|
|
19975
|
-
expression: "editorProperty === 1"
|
|
19976
|
-
}],
|
|
19977
19973
|
staticClass: "control-item"
|
|
19978
19974
|
}, [_c('a-checkbox', {
|
|
19979
19975
|
model: {
|
|
@@ -20000,12 +19996,6 @@ var render = function render() {
|
|
|
20000
19996
|
expression: "canModifyContent"
|
|
20001
19997
|
}
|
|
20002
19998
|
}, [_vm._v("用户可以直接编辑修改内容")])], 1), _c('li', {
|
|
20003
|
-
directives: [{
|
|
20004
|
-
name: "show",
|
|
20005
|
-
rawName: "v-show",
|
|
20006
|
-
value: _vm.editorProperty === 1,
|
|
20007
|
-
expression: "editorProperty === 1"
|
|
20008
|
-
}],
|
|
20009
19999
|
staticClass: "control-item"
|
|
20010
20000
|
}, [_c('a-table', {
|
|
20011
20001
|
staticStyle: {
|
|
@@ -20126,13 +20116,7 @@ var render = function render() {
|
|
|
20126
20116
|
}, [_vm._v("删除")]) : _vm._e()];
|
|
20127
20117
|
}
|
|
20128
20118
|
}])
|
|
20129
|
-
})], 1)], 1)
|
|
20130
|
-
directives: [{
|
|
20131
|
-
name: "show",
|
|
20132
|
-
rawName: "v-show",
|
|
20133
|
-
value: _vm.editorProperty === 2,
|
|
20134
|
-
expression: "editorProperty === 2"
|
|
20135
|
-
}],
|
|
20119
|
+
})], 1)], 1)] : _vm.editorProperty === 2 ? [_c('li', {
|
|
20136
20120
|
staticClass: "control-item"
|
|
20137
20121
|
}, [_c('div', {
|
|
20138
20122
|
staticClass: "control-item"
|
|
@@ -20161,12 +20145,6 @@ var render = function render() {
|
|
|
20161
20145
|
}
|
|
20162
20146
|
}, [_vm._v(_vm._s(item))]);
|
|
20163
20147
|
}), 1)], 1)]), _c('div', {
|
|
20164
|
-
directives: [{
|
|
20165
|
-
name: "show",
|
|
20166
|
-
rawName: "v-show",
|
|
20167
|
-
value: _vm.editorProperty === 2,
|
|
20168
|
-
expression: "editorProperty === 2"
|
|
20169
|
-
}],
|
|
20170
20148
|
staticClass: "control-item"
|
|
20171
20149
|
}, [_c('a-checkbox', {
|
|
20172
20150
|
model: {
|
|
@@ -20176,13 +20154,7 @@ var render = function render() {
|
|
|
20176
20154
|
},
|
|
20177
20155
|
expression: "isAutoInputCurDate"
|
|
20178
20156
|
}
|
|
20179
|
-
}, [_vm._v("新增行自动填入当前日期时间")])], 1)
|
|
20180
|
-
directives: [{
|
|
20181
|
-
name: "show",
|
|
20182
|
-
rawName: "v-show",
|
|
20183
|
-
value: _vm.editorProperty === 3,
|
|
20184
|
-
expression: "editorProperty === 3"
|
|
20185
|
-
}],
|
|
20157
|
+
}, [_vm._v("新增行自动填入当前日期时间")])], 1)] : _vm.editorProperty === 3 ? _c('li', {
|
|
20186
20158
|
staticClass: "control-item"
|
|
20187
20159
|
}, [_c('div', {
|
|
20188
20160
|
staticClass: "control-item"
|
|
@@ -20219,7 +20191,7 @@ var render = function render() {
|
|
|
20219
20191
|
},
|
|
20220
20192
|
expression: "maxNumVal"
|
|
20221
20193
|
}
|
|
20222
|
-
})], 1)])])]), _c('footer', {
|
|
20194
|
+
})], 1)]) : _vm._e()], 2)]), _c('footer', {
|
|
20223
20195
|
staticClass: "ho-modal-footer"
|
|
20224
20196
|
}, [_c('a-button', {
|
|
20225
20197
|
attrs: {
|
|
@@ -20239,7 +20211,7 @@ var render = function render() {
|
|
|
20239
20211
|
};
|
|
20240
20212
|
var staticRenderFns = [];
|
|
20241
20213
|
|
|
20242
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
20214
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=0e76e24b&
|
|
20243
20215
|
|
|
20244
20216
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
20245
20217
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -20321,6 +20293,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20321
20293
|
isAutoInputCurDate: false,
|
|
20322
20294
|
allowMultiSelected: false,
|
|
20323
20295
|
splitCharacter: ',',
|
|
20296
|
+
addWithDefaultValue: false,
|
|
20324
20297
|
errorArr: [],
|
|
20325
20298
|
errorIndex: [],
|
|
20326
20299
|
focusIndexs: -1,
|
|
@@ -20383,6 +20356,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20383
20356
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
20384
20357
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
20385
20358
|
this.isSignLock = colProperty.isSignLock ? true : false;
|
|
20359
|
+
this.addWithDefaultValue = colProperty.addWithDefaultValue ? true : false;
|
|
20386
20360
|
if (colProperty.downListProperty) {
|
|
20387
20361
|
var listKeyId = this.getKeyId(0);
|
|
20388
20362
|
var list = [{
|
|
@@ -20529,7 +20503,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20529
20503
|
width: this.width,
|
|
20530
20504
|
isSpecifyWidth: this.isSpecifyWidth,
|
|
20531
20505
|
customProperties: this.customProperties,
|
|
20532
|
-
isSignLock: this.isSignLock
|
|
20506
|
+
isSignLock: this.isSignLock,
|
|
20507
|
+
addWithDefaultValue: this.addWithDefaultValue
|
|
20533
20508
|
};
|
|
20534
20509
|
Object.keys(params).forEach(function (key) {
|
|
20535
20510
|
if (JSON.stringify(_this2[key]) !== JSON.stringify(_this2.defaultColProperty[key])) {
|
|
@@ -20539,7 +20514,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20539
20514
|
var cellNode = this.getCellNodes();
|
|
20540
20515
|
var currentCols = cellNode.row.indexOf(cellNode);
|
|
20541
20516
|
var colInfoes = cellNode.table.colInfos[currentCols];
|
|
20542
|
-
this.vueController.colProperty(
|
|
20517
|
+
this.vueController.colProperty(param, colInfoes);
|
|
20543
20518
|
this.$nextTick(function () {
|
|
20544
20519
|
return _this2.handleClose();
|
|
20545
20520
|
});
|
|
@@ -20551,10 +20526,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20551
20526
|
});
|
|
20552
20527
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
20553
20528
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
20554
|
-
;// 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=
|
|
20529
|
+
;// 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=0e76e24b&prod&lang=less&
|
|
20555
20530
|
// extracted by mini-css-extract-plugin
|
|
20556
20531
|
|
|
20557
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20532
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=0e76e24b&prod&lang=less&
|
|
20558
20533
|
|
|
20559
20534
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20560
20535
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -39276,10 +39251,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39276
39251
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39277
39252
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39278
39253
|
if (np && np.node) {
|
|
39279
|
-
// const index = np.childIndex;
|
|
39280
|
-
// if(index===-1){
|
|
39281
|
-
// }else{
|
|
39282
|
-
// }
|
|
39283
39254
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
39284
39255
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39285
39256
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
@@ -39368,8 +39339,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39368
39339
|
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_99__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
39369
39340
|
newTextNode(text, k);
|
|
39370
39341
|
mark = true;
|
|
39371
|
-
}
|
|
39372
|
-
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .EditorProperty */ .YS.OrderNumber) {
|
|
39342
|
+
} else if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_65__/* .EditorProperty */ .YS.OrderNumber) {
|
|
39373
39343
|
var acell = cell.table.rows[index + 2][k];
|
|
39374
39344
|
if (acell) {
|
|
39375
39345
|
var ctext = acell.getCellText();
|
|
@@ -39380,6 +39350,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39380
39350
|
mark = true;
|
|
39381
39351
|
}
|
|
39382
39352
|
}
|
|
39353
|
+
} else if (colProperty.addWithDefaultValue) {
|
|
39354
|
+
var _acell = cell.table.rows[index + 2][k];
|
|
39355
|
+
if (_acell) {
|
|
39356
|
+
var _ctext = _acell.getCellText();
|
|
39357
|
+
if (_ctext) {
|
|
39358
|
+
newTextNode(_ctext, k);
|
|
39359
|
+
mark = true;
|
|
39360
|
+
}
|
|
39361
|
+
}
|
|
39383
39362
|
}
|
|
39384
39363
|
}
|
|
39385
39364
|
if (mark) {
|
|
@@ -39413,23 +39392,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39413
39392
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
39414
39393
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39415
39394
|
}
|
|
39416
|
-
//hoEditorFactory.drawTree.moveCaretToPath(sPath);
|
|
39417
|
-
// (cell as CellNode).table.insertRows(r, count, r);
|
|
39418
|
-
// const endPath = (cell as CellNode).table.getNodePath();
|
|
39419
|
-
// const [
|
|
39420
|
-
// dcell,
|
|
39421
|
-
// dRoots,
|
|
39422
|
-
// ] = hoEditorFactory.drawTree.getDrawRootsByPath(endPath);
|
|
39423
|
-
// const startDline = dRoots.indexOf((cell as CellNode).table.drawTable);
|
|
39424
|
-
// if (startDline >= 0) {
|
|
39425
|
-
// hoEditorFactory.redrawManger.addRedrawRange(
|
|
39426
|
-
// null,
|
|
39427
|
-
// dRoots,
|
|
39428
|
-
// startDline,
|
|
39429
|
-
// dRoots.length - 1,
|
|
39430
|
-
// endPath
|
|
39431
|
-
// );
|
|
39432
|
-
// }
|
|
39433
39395
|
} else {
|
|
39434
39396
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39435
39397
|
return;
|
|
@@ -46325,9 +46287,8 @@ var EditorProperty;
|
|
|
46325
46287
|
EditorProperty[EditorProperty["Formula"] = 7] = "Formula";
|
|
46326
46288
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域,次数,计算公式}
|
|
46327
46289
|
var ColProperty = /*#__PURE__*/function () {
|
|
46328
|
-
|
|
46329
|
-
function ColProperty(objectValues
|
|
46330
|
-
) {
|
|
46290
|
+
//新增行时是否使用默认值
|
|
46291
|
+
function ColProperty(objectValues) {
|
|
46331
46292
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ColProperty);
|
|
46332
46293
|
//private _id!: string;//编号
|
|
46333
46294
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_editorProperty", EditorProperty.None);
|
|
@@ -46348,8 +46309,10 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46348
46309
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
46349
46310
|
//签名后是否锁定
|
|
46350
46311
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
46351
|
-
|
|
46352
|
-
|
|
46312
|
+
//是否锁定
|
|
46313
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "addWithDefaultValue", false);
|
|
46314
|
+
if (typeof objectValues != 'string') {
|
|
46315
|
+
// const valuesObj = eval('(' + objectValues + ')');
|
|
46353
46316
|
var assignvalue = function assignvalue(target, source) {
|
|
46354
46317
|
Object.keys(source).forEach(function (value) {
|
|
46355
46318
|
if (value !== "downListProperty" && value !== "dateTimeProperty" && value !== "numberProperty" && value !== "signProperty") {
|
|
@@ -46365,18 +46328,18 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46365
46328
|
}
|
|
46366
46329
|
});
|
|
46367
46330
|
};
|
|
46368
|
-
assignvalue(this,
|
|
46369
|
-
if (
|
|
46370
|
-
this._downListProperty = new ColDownListProperty(
|
|
46331
|
+
assignvalue(this, objectValues);
|
|
46332
|
+
if (objectValues["editorProperty"] === EditorProperty.DownList) {
|
|
46333
|
+
this._downListProperty = new ColDownListProperty(objectValues["downListProperty"]);
|
|
46371
46334
|
}
|
|
46372
|
-
if (
|
|
46373
|
-
this._dateTimeProperty = new DateTimeProperty(
|
|
46335
|
+
if (objectValues["editorProperty"] === EditorProperty.DateTime) {
|
|
46336
|
+
this._dateTimeProperty = new DateTimeProperty(objectValues["dateTimeProperty"]);
|
|
46374
46337
|
}
|
|
46375
|
-
if (
|
|
46376
|
-
this._numberProperty = new NumberProperty(
|
|
46338
|
+
if (objectValues["editorProperty"] === EditorProperty.Number) {
|
|
46339
|
+
this._numberProperty = new NumberProperty(objectValues["numberProperty"]);
|
|
46377
46340
|
}
|
|
46378
|
-
if (
|
|
46379
|
-
this._signProperty = new SignProperty(
|
|
46341
|
+
if (objectValues["editorProperty"] === EditorProperty.Sign) {
|
|
46342
|
+
this._signProperty = new SignProperty(objectValues["signProperty"]);
|
|
46380
46343
|
}
|
|
46381
46344
|
}
|
|
46382
46345
|
}
|
|
@@ -63468,7 +63431,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63468
63431
|
signProperty: "",
|
|
63469
63432
|
customProperties: "",
|
|
63470
63433
|
isSignLock: false,
|
|
63471
|
-
isLock: false
|
|
63434
|
+
isLock: false,
|
|
63435
|
+
addWithDefaultValue: false
|
|
63472
63436
|
};
|
|
63473
63437
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
63474
63438
|
//处理列宽
|
|
@@ -63491,6 +63455,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63491
63455
|
//customProperties: colInfo.colProperty.customProperties
|
|
63492
63456
|
isSignLock: colInfo.colProperty.isSignLock,
|
|
63493
63457
|
isLock: colInfo.colProperty.isLock,
|
|
63458
|
+
addWithDefaultValue: colInfo.colProperty.addWithDefaultValue,
|
|
63494
63459
|
customProperties: _customProperties2
|
|
63495
63460
|
};
|
|
63496
63461
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
@@ -64491,6 +64456,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64491
64456
|
if (colProperty.signProperty) {
|
|
64492
64457
|
tableNode.colInfos[_i6].colProperty.signProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_35__/* .SignProperty */ .q5(colProperty.signProperty);
|
|
64493
64458
|
}
|
|
64459
|
+
if (colProperty.addWithDefaultValue) {
|
|
64460
|
+
tableNode.colInfos[_i6].colProperty.addWithDefaultValue = colProperty.addWithDefaultValue;
|
|
64461
|
+
}
|
|
64494
64462
|
if (colProperty.customProperties) {
|
|
64495
64463
|
tableNode.colInfos[_i6].colProperty.customProperties = Array.isArray(colProperty.customProperties.customProperty) ? colProperty.customProperties.customProperty : Array(colProperty.customProperties.customProperty);
|
|
64496
64464
|
}
|
|
@@ -74126,10 +74094,11 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
74126
74094
|
value: function bindEvent() {
|
|
74127
74095
|
var _this2 = this;
|
|
74128
74096
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
74129
|
-
|
|
74097
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
74098
|
+
if (paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPreview || paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psPrint) {
|
|
74130
74099
|
if (this._event) this._event.alpha = 0;
|
|
74131
74100
|
} else {
|
|
74132
|
-
if (
|
|
74101
|
+
if (paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psReview || paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_11__/* .PaintState */ .Dh.psTrace || !hoEditorFactory.isHideComments) {
|
|
74133
74102
|
this.on('added', function (e1) {
|
|
74134
74103
|
if (!_this2._event) {
|
|
74135
74104
|
var r = _this2.getBounds();
|
|
@@ -84109,7 +84078,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
84109
84078
|
value: function reFreshBounds() {
|
|
84110
84079
|
if (!this._domLevel) return;
|
|
84111
84080
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
84112
|
-
this.pageIndex;
|
|
84081
|
+
// this.pageIndex;
|
|
84113
84082
|
var dhheight = Math.max(this._drawHeader.actualHeight + hoEditorFactory.pageProperty.headerYPixes, hoEditorFactory.pageProperty.topMarginPixes);
|
|
84114
84083
|
var dfheight = Math.max(this._drawFooter.actualHeight + hoEditorFactory.pageProperty.footerYPixes, hoEditorFactory.pageProperty.bottomMarginPixes); // Math.max(
|
|
84115
84084
|
// hoEditorFactory.pageProperty.topMarginPixes,
|
|
@@ -86781,7 +86750,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
86781
86750
|
selectStart = dLine.paragraphNode.getNodePath();
|
|
86782
86751
|
} else {
|
|
86783
86752
|
//取上一行的最后一个绘制点
|
|
86784
|
-
|
|
86753
|
+
// console.log("line", lineIndex);
|
|
86754
|
+
// console.log(
|
|
86755
|
+
// "length",
|
|
86756
|
+
// dLine.paragraphNode.drawlines[lineIndex - 1].drawItems.length
|
|
86757
|
+
// );
|
|
86785
86758
|
var dNode = dLine.paragraphNode.drawlines[lineIndex - 1].drawItems[dLine.paragraphNode.drawlines[lineIndex - 1].drawItems.length - 1];
|
|
86786
86759
|
if ((0,IDrawInfos/* instanceOfIDrawInfos */.r)(dNode)) {
|
|
86787
86760
|
var node = dNode.node;
|
|
@@ -169657,7 +169630,7 @@ var map = {
|
|
|
169657
169630
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
169658
169631
|
"./poperSelect/PoperMark.vue": 20734,
|
|
169659
169632
|
"./poperSelect/PoperSelect.vue": 31973,
|
|
169660
|
-
"./poperTipText/PoperTipText.vue":
|
|
169633
|
+
"./poperTipText/PoperTipText.vue": 84531,
|
|
169661
169634
|
"./popers/Poper.vue": 57937,
|
|
169662
169635
|
"./popers/Title.vue": 31276,
|
|
169663
169636
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
@@ -169669,7 +169642,7 @@ var map = {
|
|
|
169669
169642
|
"./table/TableCellPoper.vue": 97628,
|
|
169670
169643
|
"./table/TableCellPoper1.vue": 44645,
|
|
169671
169644
|
"./table/TableCellProperty.vue": 90546,
|
|
169672
|
-
"./table/TableColProperty.vue":
|
|
169645
|
+
"./table/TableColProperty.vue": 16154,
|
|
169673
169646
|
"./table/TableForm.vue": 79036,
|
|
169674
169647
|
"./table/TableFormTree.vue": 84804,
|
|
169675
169648
|
"./table/TableFormula.vue": 80199,
|
|
@@ -207113,8 +207086,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207113
207086
|
var es_number_constructor = __webpack_require__(9653);
|
|
207114
207087
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207115
207088
|
var es_json_stringify = __webpack_require__(38862);
|
|
207116
|
-
;// 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=
|
|
207117
|
-
var
|
|
207089
|
+
;// 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=4751bfc2&
|
|
207090
|
+
var HoDocvue_type_template_id_4751bfc2_render = function render() {
|
|
207118
207091
|
var _vm = this,
|
|
207119
207092
|
_c = _vm._self._c;
|
|
207120
207093
|
return _c('div', {
|
|
@@ -207315,7 +207288,7 @@ var HoDocvue_type_template_id_fe8a53a0_render = function render() {
|
|
|
207315
207288
|
}
|
|
207316
207289
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207317
207290
|
};
|
|
207318
|
-
var
|
|
207291
|
+
var HoDocvue_type_template_id_4751bfc2_staticRenderFns = [];
|
|
207319
207292
|
|
|
207320
207293
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207321
207294
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -210306,9 +210279,9 @@ var TextNode = __webpack_require__(27198);
|
|
|
210306
210279
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210307
210280
|
var ParagraphNode = __webpack_require__(67945);
|
|
210308
210281
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210309
|
-
/* harmony default export */ var version = ('3.1.
|
|
210282
|
+
/* harmony default export */ var version = ('3.1.131');
|
|
210310
210283
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210311
|
-
var PoperTipText = __webpack_require__(
|
|
210284
|
+
var PoperTipText = __webpack_require__(84531);
|
|
210312
210285
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
210313
210286
|
|
|
210314
210287
|
/* harmony default export */ var poperTipText = (PoperTipText["default"]);
|
|
@@ -211079,16 +211052,21 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211079
211052
|
}
|
|
211080
211053
|
},
|
|
211081
211054
|
createAddNextCellButton: function createAddNextCellButton(node, pageIndex) {
|
|
211055
|
+
var _node$parentNode;
|
|
211082
211056
|
var cell = null;
|
|
211083
211057
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
211084
211058
|
cell = node;
|
|
211085
211059
|
} else if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
211086
211060
|
cell = node.parentNode;
|
|
211061
|
+
} else if (((_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof CellNode/* CellNode */.D) {
|
|
211062
|
+
var _node$parentNode2;
|
|
211063
|
+
cell = (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode;
|
|
211087
211064
|
}
|
|
211088
211065
|
if (cell && cell.table.tableProperty.addRowByOrder) {
|
|
211089
211066
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
211090
211067
|
var drawNodes = cell.table.drawNodes[0];
|
|
211091
|
-
var
|
|
211068
|
+
var firstRow = cell.table.rows[0];
|
|
211069
|
+
var headerHeight = hoEditorFactory.drawTree.drawPages[pageIndex].drawHeader.actualHeight;
|
|
211092
211070
|
var top = headerHeight + drawNodes.drawPageTables[0].y - 20;
|
|
211093
211071
|
this.cellButtonPos = {
|
|
211094
211072
|
left: (hoEditorFactory.pageProperty.leftMarginPixes + drawNodes.dWidth - 78) / scaleXY + 'px',
|
|
@@ -211333,10 +211311,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211333
211311
|
});
|
|
211334
211312
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211335
211313
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211336
|
-
;// 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=
|
|
211314
|
+
;// 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=4751bfc2&prod&lang=less&
|
|
211337
211315
|
// extracted by mini-css-extract-plugin
|
|
211338
211316
|
|
|
211339
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211317
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=4751bfc2&prod&lang=less&
|
|
211340
211318
|
|
|
211341
211319
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211342
211320
|
|
|
@@ -211349,8 +211327,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211349
211327
|
|
|
211350
211328
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211351
211329
|
components_HoDocvue_type_script_lang_js_,
|
|
211352
|
-
|
|
211353
|
-
|
|
211330
|
+
HoDocvue_type_template_id_4751bfc2_render,
|
|
211331
|
+
HoDocvue_type_template_id_4751bfc2_staticRenderFns,
|
|
211354
211332
|
false,
|
|
211355
211333
|
null,
|
|
211356
211334
|
null,
|
|
@@ -212712,7 +212690,13 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
212712
212690
|
(0,esm_defineProperty/* default */.Z)(this, "_id", void 0);
|
|
212713
212691
|
(0,esm_defineProperty/* default */.Z)(this, "_deleterIndex", void 0);
|
|
212714
212692
|
(0,esm_defineProperty/* default */.Z)(this, "_creatorIndex", void 0);
|
|
212693
|
+
(0,esm_defineProperty/* default */.Z)(this, "_modifierIndex", void 0);
|
|
212715
212694
|
(0,esm_defineProperty/* default */.Z)(this, "_isUseTipText", void 0);
|
|
212695
|
+
(0,esm_defineProperty/* default */.Z)(this, "historyText", {
|
|
212696
|
+
0: '创建',
|
|
212697
|
+
1: '删除',
|
|
212698
|
+
2: '修改'
|
|
212699
|
+
});
|
|
212716
212700
|
this._pageIndex = 0;
|
|
212717
212701
|
this._moveType = DmouseEventType.detOut;
|
|
212718
212702
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
@@ -212749,6 +212733,11 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
212749
212733
|
get: function get() {
|
|
212750
212734
|
return this._deleterIndex;
|
|
212751
212735
|
}
|
|
212736
|
+
}, {
|
|
212737
|
+
key: "modifierIndex",
|
|
212738
|
+
get: function get() {
|
|
212739
|
+
return this._modifierIndex;
|
|
212740
|
+
}
|
|
212752
212741
|
}, {
|
|
212753
212742
|
key: "poperTipPos",
|
|
212754
212743
|
get: function get() {
|
|
@@ -212778,79 +212767,95 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
212778
212767
|
value: function setNode(node, moveType) {
|
|
212779
212768
|
this._creatorIndex = -1;
|
|
212780
212769
|
this._deleterIndex = -1;
|
|
212770
|
+
this._modifierIndex = -1;
|
|
212781
212771
|
this._tipText = [];
|
|
212782
212772
|
this._id = [];
|
|
212783
|
-
// if(moveType === DmouseEventType.detOut) {
|
|
212784
|
-
// return;
|
|
212785
|
-
// }
|
|
212786
212773
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
212787
|
-
|
|
212788
|
-
|
|
212789
|
-
|
|
212790
|
-
|
|
212791
|
-
|
|
212792
|
-
|
|
212793
|
-
|
|
212794
|
-
|
|
212795
|
-
|
|
212796
|
-
|
|
212797
|
-
|
|
212798
|
-
|
|
212799
|
-
|
|
212800
|
-
|
|
212801
|
-
|
|
212802
|
-
|
|
212803
|
-
|
|
212774
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
212775
|
+
if (paintStatus === DrawTree/* PaintState */.Dh.psTrace) {
|
|
212776
|
+
var styleIndex = node === null || node === void 0 ? void 0 : node.styleIndex;
|
|
212777
|
+
if (!styleIndex) return;
|
|
212778
|
+
var style = hoEditorFactory.docTree.styles[styleIndex];
|
|
212779
|
+
this._creatorIndex = style.creatorIndex;
|
|
212780
|
+
this._deleterIndex = style.deleterIndex;
|
|
212781
|
+
this._modifierIndex = style.modifierIndex;
|
|
212782
|
+
var historyStyleIndex = this._creatorIndex || this.deleterIndex || this.modifierIndex;
|
|
212783
|
+
if (historyStyleIndex !== undefined && historyStyleIndex >= 0) {
|
|
212784
|
+
var userHistories = hoEditorFactory.docTree.userHistories[historyStyleIndex];
|
|
212785
|
+
this._moveType = moveType;
|
|
212786
|
+
this._tipText.push("".concat(userHistories.editDate, " ").concat(userHistories.name).concat(this.historyText[userHistories.historyEditType]));
|
|
212787
|
+
this._id.push(userHistories.id);
|
|
212788
|
+
this.computedPosition(node.drawNodes[0]);
|
|
212789
|
+
}
|
|
212790
|
+
} else {
|
|
212791
|
+
if (node instanceof TextNode/* TextNode */.R) {
|
|
212792
|
+
if (paintStatus === DrawTree/* PaintState */.Dh.psReview || !hoEditorFactory.isHideComments) {
|
|
212793
|
+
this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
|
|
212794
|
+
this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
|
|
212795
|
+
if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
|
|
212796
|
+
var _userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
|
|
212797
|
+
this._moveType = moveType;
|
|
212798
|
+
this._tipText.push("".concat(_userHistories.editDate, " ").concat(_userHistories.name, "\u521B\u5EFA"));
|
|
212799
|
+
this._id.push(_userHistories.id);
|
|
212800
|
+
this.computedPosition(node.drawNodes[0]);
|
|
212801
|
+
}
|
|
212802
|
+
if (this._deleterIndex !== undefined && this._deleterIndex >= 0) {
|
|
212803
|
+
var _userHistories2 = hoEditorFactory.docTree.userHistories[this._deleterIndex];
|
|
212804
|
+
this._moveType = moveType;
|
|
212805
|
+
this._tipText.push("".concat(_userHistories2.editDate, " ").concat(_userHistories2.name, "\u5220\u9664"));
|
|
212806
|
+
this._id.push(_userHistories2.id);
|
|
212807
|
+
this.computedPosition(node.drawNodes[0]);
|
|
212808
|
+
}
|
|
212809
|
+
} else {
|
|
212810
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.parentNode.tipText !== node.parentNode.name && (paintStatus === 0 || paintStatus === 1)) {
|
|
212811
|
+
this._moveType = moveType;
|
|
212812
|
+
if (node.parentNode.tipText) {
|
|
212813
|
+
var text = JSON.stringify(node.parentNode.tipText);
|
|
212814
|
+
text = text.slice(1, text.length - 1);
|
|
212815
|
+
var arr = text.split('\\n').filter(function (v) {
|
|
212816
|
+
return v;
|
|
212817
|
+
});
|
|
212818
|
+
this._tipText = arr;
|
|
212819
|
+
} else {
|
|
212820
|
+
this._tipText.push('');
|
|
212821
|
+
}
|
|
212822
|
+
this._id.push(node.parentNode.id);
|
|
212823
|
+
this.computedPosition(node.drawNodes[0]);
|
|
212824
|
+
}
|
|
212804
212825
|
}
|
|
212805
|
-
} else {
|
|
212806
|
-
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.parentNode.tipText !== node.parentNode.name && (
|
|
212826
|
+
} else if (node instanceof MarkNode/* MarkNode */.j) {
|
|
212827
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.parentNode.tipText !== node.parentNode.name && (paintStatus === 0 || paintStatus === 1)) {
|
|
212807
212828
|
this._moveType = moveType;
|
|
212808
212829
|
if (node.parentNode.tipText) {
|
|
212809
|
-
var
|
|
212810
|
-
|
|
212811
|
-
var
|
|
212830
|
+
var _text = JSON.stringify(node.parentNode.tipText);
|
|
212831
|
+
_text = _text.slice(1, _text.length - 1);
|
|
212832
|
+
var _arr = _text.split('\\n').filter(function (v) {
|
|
212812
212833
|
return v;
|
|
212813
212834
|
});
|
|
212814
|
-
this._tipText =
|
|
212835
|
+
this._tipText = _arr;
|
|
212815
212836
|
} else {
|
|
212816
212837
|
this._tipText.push('');
|
|
212817
212838
|
}
|
|
212818
212839
|
this._id.push(node.parentNode.id);
|
|
212819
212840
|
this.computedPosition(node.drawNodes[0]);
|
|
212820
212841
|
}
|
|
212821
|
-
}
|
|
212822
|
-
|
|
212823
|
-
|
|
212824
|
-
|
|
212825
|
-
|
|
212826
|
-
|
|
212827
|
-
|
|
212828
|
-
|
|
212829
|
-
|
|
212830
|
-
|
|
212831
|
-
|
|
212832
|
-
|
|
212833
|
-
|
|
212834
|
-
|
|
212835
|
-
|
|
212836
|
-
|
|
212837
|
-
}
|
|
212838
|
-
} else {
|
|
212839
|
-
if (this._isUseTipText && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
212840
|
-
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.name !== node.tipText) {
|
|
212841
|
-
this._moveType = moveType;
|
|
212842
|
-
if (node.tipText) {
|
|
212843
|
-
var _text2 = JSON.stringify(node.tipText);
|
|
212844
|
-
_text2 = _text2.slice(1, _text2.length - 1);
|
|
212845
|
-
var _arr2 = _text2.split('\\n').filter(function (v) {
|
|
212846
|
-
return v;
|
|
212847
|
-
});
|
|
212848
|
-
this._tipText = _arr2;
|
|
212849
|
-
} else {
|
|
212850
|
-
this._tipText.push('');
|
|
212842
|
+
} else {
|
|
212843
|
+
if (this._isUseTipText && (paintStatus === 0 || paintStatus === 1 || paintStatus === 4)) {
|
|
212844
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.name !== node.tipText) {
|
|
212845
|
+
this._moveType = moveType;
|
|
212846
|
+
if (node.tipText) {
|
|
212847
|
+
var _text2 = JSON.stringify(node.tipText);
|
|
212848
|
+
_text2 = _text2.slice(1, _text2.length - 1);
|
|
212849
|
+
var _arr2 = _text2.split('\\n').filter(function (v) {
|
|
212850
|
+
return v;
|
|
212851
|
+
});
|
|
212852
|
+
this._tipText = _arr2;
|
|
212853
|
+
} else {
|
|
212854
|
+
this._tipText.push('');
|
|
212855
|
+
}
|
|
212856
|
+
this._id.push(node.id);
|
|
212857
|
+
this.computedPosition(node.drawNodes[0]);
|
|
212851
212858
|
}
|
|
212852
|
-
this._id.push(node.id);
|
|
212853
|
-
this.computedPosition(node.drawNodes[0]);
|
|
212854
212859
|
}
|
|
212855
212860
|
}
|
|
212856
212861
|
}
|
|
@@ -218249,8 +218254,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218249
218254
|
(0,esm_defineProperty/* default */.Z)(this, "_combineStyle", void 0);
|
|
218250
218255
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
218251
218256
|
(0,esm_defineProperty/* default */.Z)(this, "autoSelect", void 0);
|
|
218257
|
+
(0,esm_defineProperty/* default */.Z)(this, "emptyXml", "<?xml version='1.0' encoding='utf-8'?><root xml:space='preserve'><docProperty><version>2.0.36-2</version><type>0</type><title /><docID /><patientID /><patientName /><lastEditTime /><lastEditorID /><lastEditorName /></docProperty><pageSettings><printDirection>0</printDirection><borderColor>#000000</borderColor><isPaintBorder>false</isPaintBorder><paintRowLine>0</paintRowLine><pageSize>A4</pageSize><widthMm>210</widthMm><heightMm>297</heightMm><source /><topMarginMm>25</topMarginMm><bottomMarginMm>10</bottomMarginMm><leftMarginMm>15</leftMarginMm><rightMarginMm>15</rightMarginMm><headerYMm>3</headerYMm><footerYMm>3</footerYMm><showFirstPageHead>true</showFirstPageHead><showFirstPageFoot>true</showFirstPageFoot><pageNumber>0</pageNumber><isHaveBgImage>false</isHaveBgImage><commentWidthMm>0</commentWidthMm><fontFormat>宋体</fontFormat><fontSize>14</fontSize><fontColor>#000000</fontColor><backColor>transparent</backColor><paraAlign>3</paraAlign><charSpace>0</charSpace><lineHeight>1.25</lineHeight></pageSettings><styles><defaultFont><size>14</size><font>宋体</font><color>#000000</color><backColor>transparent</backColor><bold>false</bold><italic>false</italic><underline>false</underline><strikeout>false</strikeout><script>0</script><creatorIndex>-1</creatorIndex><deleterIndex>-1</deleterIndex><commentID>0</commentID></defaultFont><fontStyle /><defaultPara><charSpace>0</charSpace><lineSpace>1.25</lineSpace><leftMarginMm>0</leftMarginMm><topMarginMm>0</topMarginMm><bottomMarginMm>0</bottomMarginMm><rightMarginMm>0</rightMarginMm><align>3</align></defaultPara><paraStyle /></styles><comments><comment /></comments><userHistories><userHistory /></userHistories><headers><header><index>0</index><ParagraphNode><nodeType>ntParagraph</nodeType><styleIndex>0</styleIndex><textStyleNo>0</textStyleNo><printAsSinglePage>false</printAsSinglePage><docId /></ParagraphNode></header></headers><main><ParagraphNode><nodeType>ntParagraph</nodeType><styleIndex>0</styleIndex><textStyleNo>0</textStyleNo><printAsSinglePage>false</printAsSinglePage><docId /></ParagraphNode><TextNode><nodeType>ntText</nodeType><text></text><styleIndex>0</styleIndex></TextNode></main><footers><footer><index>0</index><ParagraphNode><nodeType>ntParagraph</nodeType><styleIndex>0</styleIndex><textStyleNo>0</textStyleNo><printAsSinglePage>false</printAsSinglePage><docId /></ParagraphNode></footer></footers><docText> </docText></root>");
|
|
218252
218258
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
218253
|
-
// this.getCurTextStyle();
|
|
218254
218259
|
}
|
|
218255
218260
|
/**
|
|
218256
218261
|
* 监控当前光标处文本样式:先循环遍历选中区域树节点 获取第一个文本节点的样式 用来与后面的节点样式进行比较;再循环遍历选中区域树节点 拿每个文本节点跟第一个文本节点的样式进行比较
|
|
@@ -222600,30 +222605,33 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222600
222605
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openXml);
|
|
222601
222606
|
hoEditorFactory.openXmled = true;
|
|
222602
222607
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
222603
|
-
_context8.next =
|
|
222608
|
+
_context8.next = 21;
|
|
222604
222609
|
break;
|
|
222605
222610
|
}
|
|
222606
222611
|
_context8.next = 11;
|
|
222607
222612
|
return hoEditorFactory.docController.initBlankDoc();
|
|
222608
222613
|
case 11:
|
|
222609
222614
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
222615
|
+
if (!xml) {
|
|
222616
|
+
xml = this.emptyXml;
|
|
222617
|
+
}
|
|
222610
222618
|
if (!(xml && xml.includes("<?xml version"))) {
|
|
222611
|
-
_context8.next =
|
|
222619
|
+
_context8.next = 18;
|
|
222612
222620
|
break;
|
|
222613
222621
|
}
|
|
222614
|
-
_context8.next =
|
|
222622
|
+
_context8.next = 16;
|
|
222615
222623
|
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
222616
|
-
case
|
|
222617
|
-
_context8.next =
|
|
222624
|
+
case 16:
|
|
222625
|
+
_context8.next = 21;
|
|
222618
222626
|
break;
|
|
222619
|
-
case
|
|
222627
|
+
case 18:
|
|
222620
222628
|
if (!xml) {
|
|
222621
|
-
_context8.next =
|
|
222629
|
+
_context8.next = 21;
|
|
222622
222630
|
break;
|
|
222623
222631
|
}
|
|
222624
|
-
_context8.next =
|
|
222632
|
+
_context8.next = 21;
|
|
222625
222633
|
return hoEditorFactory.structureConvert.openXml(gBase64.decode(xml), callback, isDelBlockLine, isClearSign);
|
|
222626
|
-
case
|
|
222634
|
+
case 21:
|
|
222627
222635
|
case "end":
|
|
222628
222636
|
return _context8.stop();
|
|
222629
222637
|
}
|
|
@@ -239025,12 +239033,10 @@ var TableController = /*#__PURE__*/function () {
|
|
|
239025
239033
|
* @params `signProperty 签名 默认值 undefined`
|
|
239026
239034
|
* @signPropertyParam ` name -string 签名名称`
|
|
239027
239035
|
*/
|
|
239028
|
-
|
|
239029
|
-
|
|
239030
|
-
|
|
239031
|
-
|
|
239032
|
-
hoEditorFactory.vueController.colProperty(objectValues, colInfo);
|
|
239033
|
-
}
|
|
239036
|
+
// public colProperty(objectValues: string, colInfo: ColInfos) {
|
|
239037
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
239038
|
+
// hoEditorFactory.vueController.colProperty(objectValues, colInfo);
|
|
239039
|
+
// }
|
|
239034
239040
|
/**
|
|
239035
239041
|
* 设置单元格属性
|
|
239036
239042
|
* @params `id string 编号`
|
|
@@ -239690,8 +239696,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
239690
239696
|
// 是否启用绘制优化 默认不启用
|
|
239691
239697
|
(0,esm_defineProperty/* default */.Z)(this, "_defaultIsAllowDelete", false);
|
|
239692
239698
|
// 元素是否默认可以被删除
|
|
239693
|
-
(0,esm_defineProperty/* default */.Z)(this, "_continuousView", void 0);
|
|
239694
|
-
// 预览
|
|
239695
239699
|
(0,esm_defineProperty/* default */.Z)(this, "_loadImageCount", 0);
|
|
239696
239700
|
// 待加载的图片数量
|
|
239697
239701
|
(0,esm_defineProperty/* default */.Z)(this, "_loadImageCallback", null);
|
|
@@ -239757,7 +239761,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
239757
239761
|
(0,esm_defineProperty/* default */.Z)(this, "_lockContent", false);
|
|
239758
239762
|
//是否锁定病历内容(未签名)
|
|
239759
239763
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowCrossPatiPaste", false);
|
|
239760
|
-
|
|
239764
|
+
//不允许跨病人复制粘贴
|
|
239761
239765
|
(0,esm_defineProperty/* default */.Z)(this, "_forbidPaste", false);
|
|
239762
239766
|
//禁止复制粘贴
|
|
239763
239767
|
(0,esm_defineProperty/* default */.Z)(this, "_fontSizeMap", new Map());
|
|
@@ -240377,16 +240381,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
240377
240381
|
this._isHideComments = value;
|
|
240378
240382
|
}
|
|
240379
240383
|
}
|
|
240380
|
-
}, {
|
|
240381
|
-
key: "continuousView",
|
|
240382
|
-
get: function get() {
|
|
240383
|
-
return this._continuousView;
|
|
240384
|
-
},
|
|
240385
|
-
set: function set(value) {
|
|
240386
|
-
if (this._continuousView !== value) {
|
|
240387
|
-
this._continuousView = value;
|
|
240388
|
-
}
|
|
240389
|
-
}
|
|
240390
240384
|
}, {
|
|
240391
240385
|
key: "openXmled",
|
|
240392
240386
|
get: function get() {
|