hoeditor-web 3.0.32 → 3.0.34
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 +1 -1
- package/lib/hoeditor.umd.js +1584 -413
- package/lib/hoeditor.umd.min.js +21 -21
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -3588,7 +3588,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
3588
3588
|
|
|
3589
3589
|
/***/ }),
|
|
3590
3590
|
|
|
3591
|
-
/***/
|
|
3591
|
+
/***/ 20329:
|
|
3592
3592
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3593
3593
|
|
|
3594
3594
|
"use strict";
|
|
@@ -3600,7 +3600,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3600
3600
|
"default": function() { return /* binding */ BarCodes; }
|
|
3601
3601
|
});
|
|
3602
3602
|
|
|
3603
|
-
;// 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/barCode/BarCodes.vue?vue&type=template&id=
|
|
3603
|
+
;// 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/barCode/BarCodes.vue?vue&type=template&id=7cc7fd77&
|
|
3604
3604
|
var render = function render() {
|
|
3605
3605
|
var _vm = this,
|
|
3606
3606
|
_c = _vm._self._c;
|
|
@@ -3834,10 +3834,10 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3834
3834
|
});
|
|
3835
3835
|
;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=script&lang=js&
|
|
3836
3836
|
/* harmony default export */ var barCode_BarCodesvue_type_script_lang_js_ = (BarCodesvue_type_script_lang_js_);
|
|
3837
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=
|
|
3837
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=7cc7fd77&prod&lang=scss&
|
|
3838
3838
|
// extracted by mini-css-extract-plugin
|
|
3839
3839
|
|
|
3840
|
-
;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=
|
|
3840
|
+
;// CONCATENATED MODULE: ./src/components/controls/barCode/BarCodes.vue?vue&type=style&index=0&id=7cc7fd77&prod&lang=scss&
|
|
3841
3841
|
|
|
3842
3842
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
3843
3843
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -12639,7 +12639,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12639
12639
|
|
|
12640
12640
|
/***/ }),
|
|
12641
12641
|
|
|
12642
|
-
/***/
|
|
12642
|
+
/***/ 22786:
|
|
12643
12643
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12644
12644
|
|
|
12645
12645
|
"use strict";
|
|
@@ -12651,7 +12651,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12651
12651
|
"default": function() { return /* binding */ QrCode; }
|
|
12652
12652
|
});
|
|
12653
12653
|
|
|
12654
|
-
|
|
12654
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12655
|
+
var es_function_name = __webpack_require__(68309);
|
|
12656
|
+
;// 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/qrCode/QrCode.vue?vue&type=template&id=1bdc4fa8&
|
|
12657
|
+
|
|
12655
12658
|
var render = function render() {
|
|
12656
12659
|
var _vm = this,
|
|
12657
12660
|
_c = _vm._self._c;
|
|
@@ -12681,18 +12684,50 @@ var render = function render() {
|
|
|
12681
12684
|
staticClass: "control-item"
|
|
12682
12685
|
}, [_c('span', {
|
|
12683
12686
|
staticClass: "label"
|
|
12684
|
-
}, [_vm._v("
|
|
12687
|
+
}, [_vm._v("名称")]), _c('a-input', {
|
|
12685
12688
|
attrs: {
|
|
12686
|
-
"type": "textarea",
|
|
12687
12689
|
"size": "small",
|
|
12688
|
-
"
|
|
12689
|
-
|
|
12690
|
-
|
|
12690
|
+
"placeholder": "名称"
|
|
12691
|
+
},
|
|
12692
|
+
model: {
|
|
12693
|
+
value: _vm.name,
|
|
12694
|
+
callback: function callback($$v) {
|
|
12695
|
+
_vm.name = $$v;
|
|
12691
12696
|
},
|
|
12697
|
+
expression: "name"
|
|
12698
|
+
}
|
|
12699
|
+
})], 1), _c('li', {
|
|
12700
|
+
staticClass: "control-item"
|
|
12701
|
+
}, [_c('span', {
|
|
12702
|
+
staticClass: "label"
|
|
12703
|
+
}, [_vm._v("内部标识符")]), _c('a-input', {
|
|
12704
|
+
attrs: {
|
|
12705
|
+
"size": "small",
|
|
12706
|
+
"placeholder": "内部标识符"
|
|
12707
|
+
},
|
|
12708
|
+
model: {
|
|
12709
|
+
value: _vm.innerIdentifier,
|
|
12710
|
+
callback: function callback($$v) {
|
|
12711
|
+
_vm.innerIdentifier = $$v;
|
|
12712
|
+
},
|
|
12713
|
+
expression: "innerIdentifier"
|
|
12714
|
+
}
|
|
12715
|
+
})], 1), _c('li', {
|
|
12716
|
+
staticClass: "control-item"
|
|
12717
|
+
}, [_c('span', {
|
|
12718
|
+
staticClass: "label"
|
|
12719
|
+
}, [_vm._v("文本内容")]), _c('a-input', {
|
|
12720
|
+
attrs: {
|
|
12692
12721
|
"clearable": "",
|
|
12722
|
+
"show-word-limit": "",
|
|
12723
|
+
"size": "small",
|
|
12724
|
+
"type": "textarea",
|
|
12693
12725
|
"placeholder": "文本内容",
|
|
12694
12726
|
"max-length": 256,
|
|
12695
|
-
"
|
|
12727
|
+
"auto-size": {
|
|
12728
|
+
minRows: 2,
|
|
12729
|
+
maxRows: 4
|
|
12730
|
+
}
|
|
12696
12731
|
},
|
|
12697
12732
|
on: {
|
|
12698
12733
|
"input": _vm.codeChange
|
|
@@ -12799,6 +12834,8 @@ var render = function render() {
|
|
|
12799
12834
|
};
|
|
12800
12835
|
var staticRenderFns = [];
|
|
12801
12836
|
|
|
12837
|
+
;// CONCATENATED MODULE: ./src/components/controls/qrCode/QrCode.vue?vue&type=template&id=1bdc4fa8&
|
|
12838
|
+
|
|
12802
12839
|
// EXTERNAL MODULE: ./node_modules/qrcanvas/lib/qrcanvas.esm.js + 2 modules
|
|
12803
12840
|
var qrcanvas_esm = __webpack_require__(87124);
|
|
12804
12841
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/QrcodeNode.ts + 1 modules
|
|
@@ -12809,10 +12846,13 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
12809
12846
|
|
|
12810
12847
|
|
|
12811
12848
|
|
|
12849
|
+
|
|
12812
12850
|
/* harmony default export */ var QrCodevue_type_script_lang_js_ = ({
|
|
12813
12851
|
name: 'QrCodeDialog',
|
|
12814
12852
|
data: function data() {
|
|
12815
12853
|
return {
|
|
12854
|
+
name: '',
|
|
12855
|
+
innerIdentifier: 'qrcode',
|
|
12816
12856
|
id: '',
|
|
12817
12857
|
textContent: '',
|
|
12818
12858
|
correctLevel: 'M',
|
|
@@ -12849,6 +12889,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
12849
12889
|
if (this.controlStatus === 'update') {
|
|
12850
12890
|
var updateNode = this.getQrcodeNode();
|
|
12851
12891
|
this.id = updateNode.id;
|
|
12892
|
+
this.qrcode = updateNode.qrcode;
|
|
12852
12893
|
this.textContent = updateNode.textContent;
|
|
12853
12894
|
this.correctLevel = updateNode.correctLevel;
|
|
12854
12895
|
setTimeout(function () {
|
|
@@ -12898,9 +12939,9 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
12898
12939
|
},
|
|
12899
12940
|
sure: function sure() {
|
|
12900
12941
|
if (this.controlStatus === 'add') {
|
|
12901
|
-
this.vueController.insertQrcode(this.controlStatus, this.id, this.textContent, 'qr', this.correctLevel, this.dataSource.dataSourceEnabled, this.dataSource.dataSource, this.dataSource.format, this.dataSource.visitPath, this.dataSource.isReadOnly, this.dataSource.autoUpdate, String(this.dataSource.executeStatus), this.size, this.size);
|
|
12942
|
+
this.vueController.insertQrcode(this.controlStatus, this.id, this.textContent, 'qr', this.correctLevel, this.dataSource.dataSourceEnabled, this.dataSource.dataSource, this.dataSource.format, this.dataSource.visitPath, this.dataSource.isReadOnly, this.dataSource.autoUpdate, String(this.dataSource.executeStatus), this.size, this.size, this.name, this.innerIdentifier);
|
|
12902
12943
|
} else {
|
|
12903
|
-
this.vueController.updateQrcode(this.id, this.textContent, 'qr', this.correctLevel, this.dataSource.dataSourceEnabled, this.dataSource.dataSource, this.dataSource.format, this.dataSource.visitPath, this.dataSource.isReadOnly, this.dataSource.autoUpdate, String(this.dataSource.executeStatus), this.size, this.size);
|
|
12944
|
+
this.vueController.updateQrcode(this.id, this.textContent, 'qr', this.correctLevel, this.dataSource.dataSourceEnabled, this.dataSource.dataSource, this.dataSource.format, this.dataSource.visitPath, this.dataSource.isReadOnly, this.dataSource.autoUpdate, String(this.dataSource.executeStatus), this.size, this.size, this.name, this.innerIdentifier);
|
|
12904
12945
|
}
|
|
12905
12946
|
this.handleClose();
|
|
12906
12947
|
},
|
|
@@ -12915,10 +12956,10 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
12915
12956
|
});
|
|
12916
12957
|
;// CONCATENATED MODULE: ./src/components/controls/qrCode/QrCode.vue?vue&type=script&lang=js&
|
|
12917
12958
|
/* harmony default export */ var qrCode_QrCodevue_type_script_lang_js_ = (QrCodevue_type_script_lang_js_);
|
|
12918
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/qrCode/QrCode.vue?vue&type=style&index=0&id=
|
|
12959
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/qrCode/QrCode.vue?vue&type=style&index=0&id=1bdc4fa8&prod&lang=scss&
|
|
12919
12960
|
// extracted by mini-css-extract-plugin
|
|
12920
12961
|
|
|
12921
|
-
;// CONCATENATED MODULE: ./src/components/controls/qrCode/QrCode.vue?vue&type=style&index=0&id=
|
|
12962
|
+
;// CONCATENATED MODULE: ./src/components/controls/qrCode/QrCode.vue?vue&type=style&index=0&id=1bdc4fa8&prod&lang=scss&
|
|
12922
12963
|
|
|
12923
12964
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12924
12965
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -19056,7 +19097,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
19056
19097
|
|
|
19057
19098
|
/***/ }),
|
|
19058
19099
|
|
|
19059
|
-
/***/
|
|
19100
|
+
/***/ 47130:
|
|
19060
19101
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19061
19102
|
|
|
19062
19103
|
"use strict";
|
|
@@ -19068,7 +19109,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
19068
19109
|
"default": function() { return /* binding */ TableProperty; }
|
|
19069
19110
|
});
|
|
19070
19111
|
|
|
19071
|
-
;// 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=
|
|
19112
|
+
;// 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=4eb9aae1&
|
|
19072
19113
|
var render = function render() {
|
|
19073
19114
|
var _vm = this,
|
|
19074
19115
|
_c = _vm._self._c;
|
|
@@ -19140,7 +19181,19 @@ var render = function render() {
|
|
|
19140
19181
|
},
|
|
19141
19182
|
expression: "canAddRow"
|
|
19142
19183
|
}
|
|
19143
|
-
}, [_vm._v("
|
|
19184
|
+
}, [_vm._v("用户可新增表格行")])], 1), _c('div', {
|
|
19185
|
+
staticStyle: {
|
|
19186
|
+
"width": "50%"
|
|
19187
|
+
}
|
|
19188
|
+
}, [_c('a-checkbox', {
|
|
19189
|
+
model: {
|
|
19190
|
+
value: _vm.canAddCol,
|
|
19191
|
+
callback: function callback($$v) {
|
|
19192
|
+
_vm.canAddCol = $$v;
|
|
19193
|
+
},
|
|
19194
|
+
expression: "canAddCol"
|
|
19195
|
+
}
|
|
19196
|
+
}, [_vm._v("用户可新增表格列")])], 1), _c('div', {
|
|
19144
19197
|
staticStyle: {
|
|
19145
19198
|
"width": "50%"
|
|
19146
19199
|
}
|
|
@@ -19323,7 +19376,9 @@ var CellNode = __webpack_require__(68598);
|
|
|
19323
19376
|
canAdjustRowWidth: false,
|
|
19324
19377
|
//用户可调整列宽
|
|
19325
19378
|
canAddRow: true,
|
|
19326
|
-
|
|
19379
|
+
//用户可新增表格行
|
|
19380
|
+
canAddCol: true,
|
|
19381
|
+
//用户可新增表格列
|
|
19327
19382
|
canDeleteRow: true,
|
|
19328
19383
|
//用户可删除表格行列
|
|
19329
19384
|
canDeleteTable: true,
|
|
@@ -19364,6 +19419,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
19364
19419
|
this.canAdjustRowHeight = tableNode.tableProperty.canAdjustRowHeight;
|
|
19365
19420
|
this.canAdjustRowWidth = tableNode.tableProperty.canAdjustRowWidth;
|
|
19366
19421
|
this.canAddRow = tableNode.tableProperty.canAddRow;
|
|
19422
|
+
this.canAddCol = tableNode.tableProperty.canAddCol;
|
|
19367
19423
|
this.canDeleteRow = tableNode.tableProperty.canDeleteRow;
|
|
19368
19424
|
this.canDeleteTable = tableNode.tableProperty.canDeleteTable;
|
|
19369
19425
|
this.continuePrintBorders = tableNode.tableProperty.continuePrintBorders;
|
|
@@ -19420,6 +19476,7 @@ var CellNode = __webpack_require__(68598);
|
|
|
19420
19476
|
canAdjustRowHeight: this.canAdjustRowHeight,
|
|
19421
19477
|
canAdjustRowWidth: this.canAdjustRowWidth,
|
|
19422
19478
|
canAddRow: this.canAddRow,
|
|
19479
|
+
canAddCol: this.canAddCol,
|
|
19423
19480
|
canDeleteRow: this.canDeleteRow,
|
|
19424
19481
|
canDeleteTable: this.canDeleteTable,
|
|
19425
19482
|
continuePrintBorders: this.continuePrintBorders,
|
|
@@ -19443,10 +19500,10 @@ var CellNode = __webpack_require__(68598);
|
|
|
19443
19500
|
});
|
|
19444
19501
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
19445
19502
|
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
19446
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
19503
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=4eb9aae1&prod&lang=scss&
|
|
19447
19504
|
// extracted by mini-css-extract-plugin
|
|
19448
19505
|
|
|
19449
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=
|
|
19506
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=4eb9aae1&prod&lang=scss&
|
|
19450
19507
|
|
|
19451
19508
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19452
19509
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -36699,10 +36756,10 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
36699
36756
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
36700
36757
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
36701
36758
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94310);
|
|
36702
|
-
/* harmony import */ var
|
|
36759
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(40735);
|
|
36703
36760
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70280);
|
|
36704
|
-
/* harmony import */ var
|
|
36705
|
-
/* harmony import */ var
|
|
36761
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(66298);
|
|
36762
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(78255);
|
|
36706
36763
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57658);
|
|
36707
36764
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
36708
36765
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
@@ -36800,6 +36857,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
36800
36857
|
/* harmony import */ var _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(76830);
|
|
36801
36858
|
/* harmony import */ var _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(73632);
|
|
36802
36859
|
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(90809);
|
|
36860
|
+
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(56208);
|
|
36861
|
+
|
|
36803
36862
|
|
|
36804
36863
|
|
|
36805
36864
|
|
|
@@ -36895,10 +36954,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
36895
36954
|
|
|
36896
36955
|
function DocController(hoEditorFactoryID) {
|
|
36897
36956
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, DocController);
|
|
36898
|
-
(0,
|
|
36899
|
-
(0,
|
|
36900
|
-
(0,
|
|
36901
|
-
(0,
|
|
36957
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(this, "_findContent", "");
|
|
36958
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(this, "_count", 0);
|
|
36959
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
36960
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_88__/* ["default"] */ .Z)(this, "_onInsertNodeByID", void 0);
|
|
36902
36961
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
36903
36962
|
this._onInsertNodeByID = null;
|
|
36904
36963
|
}
|
|
@@ -36908,7 +36967,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
36908
36967
|
// }
|
|
36909
36968
|
// return this._instance;
|
|
36910
36969
|
// }
|
|
36911
|
-
(0,
|
|
36970
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_89__/* ["default"] */ .Z)(DocController, [{
|
|
36912
36971
|
key: "onInsertNodeByID",
|
|
36913
36972
|
get: function get() {
|
|
36914
36973
|
return this._onInsertNodeByID;
|
|
@@ -37020,7 +37079,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37020
37079
|
value: function keyBoardInput(text) {
|
|
37021
37080
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37022
37081
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
37023
|
-
|
|
37082
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("质控医生站的病历只可进行批注不可编辑修改");
|
|
37024
37083
|
return;
|
|
37025
37084
|
}
|
|
37026
37085
|
// alert(text);
|
|
@@ -37044,7 +37103,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37044
37103
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37045
37104
|
//const cellText = cellNode.getCellText();
|
|
37046
37105
|
if (!isAllowEdit) {
|
|
37047
|
-
|
|
37106
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
37048
37107
|
return;
|
|
37049
37108
|
}
|
|
37050
37109
|
}
|
|
@@ -37052,7 +37111,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37052
37111
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37053
37112
|
//const cellText = cellNode.getCellText();
|
|
37054
37113
|
if (!_isAllowEdit) {
|
|
37055
|
-
|
|
37114
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
37056
37115
|
return;
|
|
37057
37116
|
}
|
|
37058
37117
|
}
|
|
@@ -37397,7 +37456,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37397
37456
|
if (!domRange.isEmpty) {
|
|
37398
37457
|
domRange = domRange.normalize();
|
|
37399
37458
|
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
37400
|
-
|
|
37459
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("审阅模式下,只能选中文档内容进行删除");
|
|
37401
37460
|
return;
|
|
37402
37461
|
}
|
|
37403
37462
|
startPath = domRange.startPath;
|
|
@@ -37618,7 +37677,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37618
37677
|
_context.next = 86;
|
|
37619
37678
|
break;
|
|
37620
37679
|
}
|
|
37621
|
-
|
|
37680
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("审阅模式下,只能对文本内容进行删除");
|
|
37622
37681
|
return _context.abrupt("return");
|
|
37623
37682
|
case 86:
|
|
37624
37683
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
@@ -37630,21 +37689,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37630
37689
|
_context.next = 91;
|
|
37631
37690
|
break;
|
|
37632
37691
|
}
|
|
37633
|
-
|
|
37692
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不是本人签名,不允许删除!");
|
|
37634
37693
|
return _context.abrupt("return");
|
|
37635
37694
|
case 91:
|
|
37636
37695
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
37637
37696
|
_context.next = 94;
|
|
37638
37697
|
break;
|
|
37639
37698
|
}
|
|
37640
|
-
|
|
37699
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许使用删除键删除签名,请右键删除元素");
|
|
37641
37700
|
return _context.abrupt("return");
|
|
37642
37701
|
case 94:
|
|
37643
37702
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
37644
37703
|
_context.next = 97;
|
|
37645
37704
|
break;
|
|
37646
37705
|
}
|
|
37647
|
-
|
|
37706
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
37648
37707
|
return _context.abrupt("return");
|
|
37649
37708
|
case 97:
|
|
37650
37709
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
@@ -38420,12 +38479,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38420
38479
|
*/
|
|
38421
38480
|
}, {
|
|
38422
38481
|
key: "insertBarcode",
|
|
38423
|
-
value: function insertBarcode(operType, curDomRange, id, textContent,
|
|
38424
|
-
//barCodeStyle: string,
|
|
38425
|
-
//textAlign: string,
|
|
38426
|
-
isDisplayText,
|
|
38427
|
-
//stripWidth: number,
|
|
38428
|
-
imagePath, width, height, bandDataSource) {
|
|
38482
|
+
value: function insertBarcode(operType, curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier) {
|
|
38429
38483
|
var domRange = curDomRange.normalize();
|
|
38430
38484
|
var startPath = domRange.endPath;
|
|
38431
38485
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -38436,20 +38490,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38436
38490
|
if (node instanceof _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_48__/* .BarcodeNode */ .T) {
|
|
38437
38491
|
hoEditorFactory.undoService.begin();
|
|
38438
38492
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38439
|
-
//hoEditorFactory.undoService.commit();
|
|
38440
|
-
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
38441
38493
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38442
38494
|
}
|
|
38443
38495
|
}
|
|
38444
38496
|
}
|
|
38445
38497
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38446
38498
|
var rootPath = hoEditorFactory.docTree.getRootPathByNodes(domRange.npStart.roots);
|
|
38447
|
-
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_48__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntImage */ .Jq.ntImage, id, textContent,
|
|
38448
|
-
//barCodeStyle,
|
|
38449
|
-
//textAlign,
|
|
38450
|
-
isDisplayText,
|
|
38451
|
-
//stripWidth,
|
|
38452
|
-
imagePath, width, height, bandDataSource);
|
|
38499
|
+
var barCodeNode = new _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_48__/* .BarcodeNode */ .T(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntImage */ .Jq.ntImage, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
38453
38500
|
//插入该表达式节点
|
|
38454
38501
|
if (operType === "add") {
|
|
38455
38502
|
hoEditorFactory.undoService.begin();
|
|
@@ -38474,7 +38521,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38474
38521
|
*/
|
|
38475
38522
|
}, {
|
|
38476
38523
|
key: "insertQrcode",
|
|
38477
|
-
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
38524
|
+
value: function insertQrcode(operType, curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier) {
|
|
38478
38525
|
var domRange = curDomRange.normalize();
|
|
38479
38526
|
var startPath = domRange.endPath;
|
|
38480
38527
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -38492,7 +38539,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38492
38539
|
}
|
|
38493
38540
|
}
|
|
38494
38541
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
38495
|
-
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntImage */ .Jq.ntImage, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
38542
|
+
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_49__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntImage */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
38496
38543
|
//插入该表达式节点
|
|
38497
38544
|
if (operType === "add") {
|
|
38498
38545
|
hoEditorFactory.undoService.begin();
|
|
@@ -38500,6 +38547,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38500
38547
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, qrcodeNode));
|
|
38501
38548
|
hoEditorFactory.undoService.commit();
|
|
38502
38549
|
}
|
|
38550
|
+
}, {
|
|
38551
|
+
key: "updateCodeContent",
|
|
38552
|
+
value: function updateCodeContent(node, content) {
|
|
38553
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38554
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
38555
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
38556
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_74__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_25__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
38557
|
+
changeEvent.oldEndPath = ePath;
|
|
38558
|
+
changeEvent.afterChangePath = ePath;
|
|
38559
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_75__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
38560
|
+
node.textContent = content;
|
|
38561
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
38562
|
+
}
|
|
38503
38563
|
}, {
|
|
38504
38564
|
key: "insertTable",
|
|
38505
38565
|
value: function insertTable(arange, row, col) {
|
|
@@ -38507,7 +38567,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38507
38567
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
38508
38568
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
38509
38569
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re) {
|
|
38510
|
-
|
|
38570
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不能在文本域中插入表格");
|
|
38511
38571
|
return;
|
|
38512
38572
|
}
|
|
38513
38573
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -38563,14 +38623,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38563
38623
|
// }
|
|
38564
38624
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
38565
38625
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
38566
|
-
if (cell.table.tableProperty.canAddRow) {
|
|
38626
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
38567
38627
|
var _cell$table$getCellIn = cell.table.getCellInfos(cell),
|
|
38568
38628
|
_cell$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn, 2),
|
|
38569
38629
|
r = _cell$table$getCellIn2[0],
|
|
38570
38630
|
c = _cell$table$getCellIn2[1];
|
|
38571
38631
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit && r > 0) {
|
|
38572
38632
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
38573
|
-
|
|
38633
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
38574
38634
|
return;
|
|
38575
38635
|
}
|
|
38576
38636
|
}
|
|
@@ -38602,6 +38662,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38602
38662
|
// endPath
|
|
38603
38663
|
// );
|
|
38604
38664
|
// }
|
|
38665
|
+
} else {
|
|
38666
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
38667
|
+
return;
|
|
38605
38668
|
}
|
|
38606
38669
|
}
|
|
38607
38670
|
}
|
|
@@ -38614,14 +38677,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38614
38677
|
if (np && np.node) {
|
|
38615
38678
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
38616
38679
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
38617
|
-
if (cell.table.tableProperty.canAddRow) {
|
|
38680
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || cell.table.tableProperty.canAddRow) {
|
|
38618
38681
|
var _cell$table$getCellIn3 = cell.table.getCellInfos(cell),
|
|
38619
38682
|
_cell$table$getCellIn4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn3, 2),
|
|
38620
38683
|
r = _cell$table$getCellIn4[0],
|
|
38621
38684
|
c = _cell$table$getCellIn4[1];
|
|
38622
38685
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit) {
|
|
38623
38686
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
38624
|
-
|
|
38687
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
38625
38688
|
return;
|
|
38626
38689
|
}
|
|
38627
38690
|
}
|
|
@@ -38653,6 +38716,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38653
38716
|
// endPath
|
|
38654
38717
|
// );
|
|
38655
38718
|
// }
|
|
38719
|
+
} else {
|
|
38720
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
38721
|
+
return;
|
|
38656
38722
|
}
|
|
38657
38723
|
}
|
|
38658
38724
|
}
|
|
@@ -38665,40 +38731,46 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38665
38731
|
if (np && np.node) {
|
|
38666
38732
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
38667
38733
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
38668
|
-
var
|
|
38669
|
-
|
|
38670
|
-
|
|
38671
|
-
|
|
38672
|
-
|
|
38673
|
-
|
|
38674
|
-
|
|
38675
|
-
|
|
38676
|
-
|
|
38677
|
-
|
|
38678
|
-
|
|
38679
|
-
|
|
38680
|
-
|
|
38681
|
-
|
|
38682
|
-
|
|
38683
|
-
|
|
38684
|
-
|
|
38685
|
-
|
|
38686
|
-
|
|
38687
|
-
|
|
38688
|
-
|
|
38689
|
-
|
|
38690
|
-
|
|
38691
|
-
|
|
38692
|
-
|
|
38693
|
-
|
|
38694
|
-
|
|
38695
|
-
|
|
38696
|
-
|
|
38697
|
-
|
|
38698
|
-
|
|
38699
|
-
|
|
38700
|
-
|
|
38701
|
-
|
|
38734
|
+
var status = hoEditorFactory.drawTree.paintStatus;
|
|
38735
|
+
if (status == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
38736
|
+
var _cell$table$getCellIn5 = cell.table.getCellInfos(cell),
|
|
38737
|
+
_cell$table$getCellIn6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn5, 2),
|
|
38738
|
+
r = _cell$table$getCellIn6[0],
|
|
38739
|
+
c = _cell$table$getCellIn6[1];
|
|
38740
|
+
hoEditorFactory.undoService.begin();
|
|
38741
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_64__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c, count));
|
|
38742
|
+
hoEditorFactory.undoService.commit();
|
|
38743
|
+
var sCellNode = cell.table.rows[0][c];
|
|
38744
|
+
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count - 1];
|
|
38745
|
+
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
38746
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
38747
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
38748
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_34__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
38749
|
+
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
38750
|
+
hoEditorFactory.docTree.curDomRange = newRange;
|
|
38751
|
+
//hoEditorFactory.drawTree.moveCaretToPath(sPath);
|
|
38752
|
+
//const path = cell.getNodePath();
|
|
38753
|
+
//hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
38754
|
+
// (cell as CellNode).table.insertCols(c, count, c);
|
|
38755
|
+
// const endPath = (cell as CellNode).table.getNodePath();
|
|
38756
|
+
// const [
|
|
38757
|
+
// dcell,
|
|
38758
|
+
// dRoots,
|
|
38759
|
+
// ] = hoEditorFactory.drawTree.getDrawRootsByPath(endPath);
|
|
38760
|
+
// const startDline = dRoots.indexOf((cell as CellNode).table.drawTable);
|
|
38761
|
+
// if (startDline >= 0) {
|
|
38762
|
+
// hoEditorFactory.redrawManger.addRedrawRange(
|
|
38763
|
+
// null,
|
|
38764
|
+
// dRoots,
|
|
38765
|
+
// startDline,
|
|
38766
|
+
// dRoots.length - 1,
|
|
38767
|
+
// endPath
|
|
38768
|
+
// );
|
|
38769
|
+
// }
|
|
38770
|
+
} else {
|
|
38771
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
38772
|
+
return;
|
|
38773
|
+
}
|
|
38702
38774
|
}
|
|
38703
38775
|
}
|
|
38704
38776
|
}
|
|
@@ -38710,38 +38782,43 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38710
38782
|
if (np && np.node) {
|
|
38711
38783
|
var cell = hoEditorFactory.docTree.getParentRectNode(np.node);
|
|
38712
38784
|
if (cell && cell instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
38713
|
-
|
|
38714
|
-
_cell$table$
|
|
38715
|
-
|
|
38716
|
-
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
|
|
38720
|
-
|
|
38721
|
-
|
|
38722
|
-
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38729
|
-
|
|
38730
|
-
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
|
|
38737
|
-
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38785
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || cell.table.tableProperty.canAddCol) {
|
|
38786
|
+
var _cell$table$getCellIn7 = cell.table.getCellInfos(cell),
|
|
38787
|
+
_cell$table$getCellIn8 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_cell$table$getCellIn7, 2),
|
|
38788
|
+
r = _cell$table$getCellIn8[0],
|
|
38789
|
+
c = _cell$table$getCellIn8[1];
|
|
38790
|
+
hoEditorFactory.undoService.begin();
|
|
38791
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertColUndoUnit__WEBPACK_IMPORTED_MODULE_64__/* .TableInsertColUndoUnit */ .m(this._hoEditorFactoryID, cell.table, c + 1, count));
|
|
38792
|
+
hoEditorFactory.undoService.commit();
|
|
38793
|
+
var sCellNode = cell.table.rows[0][c + 1];
|
|
38794
|
+
var eCellNode = cell.table.rows[cell.table.rowCount - 1][c + count];
|
|
38795
|
+
var sPath = hoEditorFactory.docTree.getNodeFirstPath(sCellNode);
|
|
38796
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(eCellNode);
|
|
38797
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, sPath, ePath);
|
|
38798
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_34__/* .SelectionChangeEvent */ .r(arange, newRange); //选中范围变化事件
|
|
38799
|
+
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
38800
|
+
hoEditorFactory.docTree.curDomRange = newRange;
|
|
38801
|
+
//hoEditorFactory.drawTree.moveCaretToPath(sPath);
|
|
38802
|
+
// (cell as CellNode).table.insertCols(c + 1, count, c);
|
|
38803
|
+
// const endPath = (cell as CellNode).table.getNodePath();
|
|
38804
|
+
// const [
|
|
38805
|
+
// dcell,
|
|
38806
|
+
// dRoots,
|
|
38807
|
+
// ] = hoEditorFactory.drawTree.getDrawRootsByPath(endPath);
|
|
38808
|
+
// const startDline = dRoots.indexOf((cell as CellNode).table.drawTable);
|
|
38809
|
+
// if (startDline >= 0) {
|
|
38810
|
+
// hoEditorFactory.redrawManger.addRedrawRange(
|
|
38811
|
+
// null,
|
|
38812
|
+
// dRoots,
|
|
38813
|
+
// startDline,
|
|
38814
|
+
// dRoots.length - 1,
|
|
38815
|
+
// endPath
|
|
38816
|
+
// );
|
|
38817
|
+
// }
|
|
38818
|
+
} else {
|
|
38819
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
38820
|
+
return;
|
|
38821
|
+
}
|
|
38745
38822
|
}
|
|
38746
38823
|
}
|
|
38747
38824
|
}
|
|
@@ -38756,7 +38833,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38756
38833
|
r2 = _TableNode$getSelectT2[3],
|
|
38757
38834
|
c2 = _TableNode$getSelectT2[4];
|
|
38758
38835
|
if (!table) {
|
|
38759
|
-
|
|
38836
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
38760
38837
|
return;
|
|
38761
38838
|
}
|
|
38762
38839
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -38764,7 +38841,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38764
38841
|
for (var i = r1; i <= r2; i++) {
|
|
38765
38842
|
var rowInfo = table.rowInfos[i];
|
|
38766
38843
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
38767
|
-
|
|
38844
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("表头行不允许删除");
|
|
38768
38845
|
return;
|
|
38769
38846
|
}
|
|
38770
38847
|
}
|
|
@@ -38813,7 +38890,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38813
38890
|
r2 = _TableNode$getSelectT4[3],
|
|
38814
38891
|
c2 = _TableNode$getSelectT4[4];
|
|
38815
38892
|
if (!table) {
|
|
38816
|
-
|
|
38893
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
38817
38894
|
return;
|
|
38818
38895
|
}
|
|
38819
38896
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -38860,7 +38937,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38860
38937
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
38861
38938
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
38862
38939
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
38863
|
-
|
|
38940
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的不同单元格才能合并");
|
|
38864
38941
|
return;
|
|
38865
38942
|
}
|
|
38866
38943
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -38912,7 +38989,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38912
38989
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
38913
38990
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
38914
38991
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
38915
|
-
|
|
38992
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的单元格才能取消合并");
|
|
38916
38993
|
return;
|
|
38917
38994
|
}
|
|
38918
38995
|
var endPath = cell1.table.getNodePath();
|
|
@@ -39217,7 +39294,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39217
39294
|
}
|
|
39218
39295
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39219
39296
|
if (object.obj2.size === 0) {
|
|
39220
|
-
|
|
39297
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
39221
39298
|
} else {
|
|
39222
39299
|
var nodesMap = object.obj1;
|
|
39223
39300
|
var indexsMap = object.obj2;
|
|
@@ -39278,7 +39355,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39278
39355
|
sNode = startNode.rootNodes[0];
|
|
39279
39356
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39280
39357
|
if (object.obj2.size === 0) {
|
|
39281
|
-
|
|
39358
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
39282
39359
|
} else {
|
|
39283
39360
|
var nodesMap = object.obj1;
|
|
39284
39361
|
var indexsMap = object.obj2;
|
|
@@ -39301,7 +39378,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39301
39378
|
} finally {
|
|
39302
39379
|
_iterator.f();
|
|
39303
39380
|
}
|
|
39304
|
-
|
|
39381
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].info */ .Z.info("成功替换了" + indexsMap.size.toString() + "处文档内容。");
|
|
39305
39382
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
39306
39383
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
39307
39384
|
}
|
|
@@ -39473,23 +39550,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39473
39550
|
var domRange = curDomRange.normalize();
|
|
39474
39551
|
var startPath = domRange.endPath;
|
|
39475
39552
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39476
|
-
// if (operType === "update") {
|
|
39477
|
-
// const np = hoEditorFactory.docTree.findNodePositionByPath(
|
|
39478
|
-
// startPath
|
|
39479
|
-
// );
|
|
39480
|
-
// if (np) {
|
|
39481
|
-
// const node = np.node;
|
|
39482
|
-
// if (node instanceof SpecialCharsNode) {
|
|
39483
|
-
// hoEditorFactory.undoService.begin();
|
|
39484
|
-
// hoEditorFactory.undoService.add(
|
|
39485
|
-
// new NodeDeleteUndoUnit(this._hoEditorFactoryID, node, startPath)
|
|
39486
|
-
// );
|
|
39487
|
-
// //hoEditorFactory.undoService.commit();
|
|
39488
|
-
// //startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
39489
|
-
// startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf() as BaseNode);
|
|
39490
|
-
// }
|
|
39491
|
-
// }
|
|
39492
|
-
// }
|
|
39493
39553
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
39494
39554
|
var specialCharsNode = new _treeNode_SpecialCharsNode__WEBPACK_IMPORTED_MODULE_58__/* .SpecialCharsNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSpecialChar */ .Jq.ntSpecialChar, specialChars, styleIndex);
|
|
39495
39555
|
//插入该表达式节点
|
|
@@ -39497,6 +39557,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39497
39557
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, specialCharsNode));
|
|
39498
39558
|
hoEditorFactory.undoService.commit();
|
|
39499
39559
|
}
|
|
39560
|
+
/**
|
|
39561
|
+
* 插入生僻字
|
|
39562
|
+
* @param 操作类型
|
|
39563
|
+
* @param 选区
|
|
39564
|
+
* @param 符号串
|
|
39565
|
+
* @param 样式索引
|
|
39566
|
+
*/
|
|
39567
|
+
}, {
|
|
39568
|
+
key: "insertRareChar",
|
|
39569
|
+
value: function insertRareChar(operType, curDomRange, text, styleIndex) {
|
|
39570
|
+
var domRange = curDomRange.normalize();
|
|
39571
|
+
var startPath = domRange.endPath;
|
|
39572
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39573
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
39574
|
+
var rareCharNode = new _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_87__/* .RareCharNode */ .Q(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntRareChar */ .Jq.ntRareChar, text, styleIndex);
|
|
39575
|
+
//插入该表达式节点
|
|
39576
|
+
hoEditorFactory.undoService.begin();
|
|
39577
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
39578
|
+
hoEditorFactory.undoService.commit();
|
|
39579
|
+
}
|
|
39500
39580
|
/**
|
|
39501
39581
|
* 设置页面属性
|
|
39502
39582
|
* @param 属性参数
|
|
@@ -39594,7 +39674,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39594
39674
|
} else {
|
|
39595
39675
|
var comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
39596
39676
|
if (comment.userID !== hoEditorFactory.userInfo.id) {
|
|
39597
|
-
|
|
39677
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_90__/* ["default"].warn */ .Z.warn("不允许删除其他用户创建的批注!");
|
|
39598
39678
|
return;
|
|
39599
39679
|
}
|
|
39600
39680
|
del(comment);
|
|
@@ -39751,7 +39831,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39751
39831
|
*/
|
|
39752
39832
|
}, {
|
|
39753
39833
|
key: "editComment",
|
|
39754
|
-
value: function editComment(commentID, text) {
|
|
39834
|
+
value: function editComment(commentID, text, source) {
|
|
39755
39835
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39756
39836
|
var curComment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
39757
39837
|
var markNode;
|
|
@@ -40274,7 +40354,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40274
40354
|
*/
|
|
40275
40355
|
}, {
|
|
40276
40356
|
key: "updateSignNode",
|
|
40277
|
-
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition) {
|
|
40357
|
+
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
40278
40358
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40279
40359
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40280
40360
|
if (node.imgSrc === "") {
|
|
@@ -40294,6 +40374,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40294
40374
|
node.imgHeight = imgHeight;
|
|
40295
40375
|
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
|
|
40296
40376
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
40377
|
+
node.otherProperties = otherProperties ? otherProperties : new Object();
|
|
40297
40378
|
node.imgSrc = imgSrc;
|
|
40298
40379
|
if (type == 1 && node.signType == 1) {
|
|
40299
40380
|
node.isFront = true;
|
|
@@ -40315,7 +40396,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40315
40396
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
40316
40397
|
}
|
|
40317
40398
|
}
|
|
40318
|
-
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition);
|
|
40399
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, undefined, undefined, otherProperties);
|
|
40319
40400
|
//插入该表达式节点
|
|
40320
40401
|
hoEditorFactory.undoService.begin();
|
|
40321
40402
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -44400,7 +44481,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44400
44481
|
/*
|
|
44401
44482
|
* @Author: your name
|
|
44402
44483
|
* @Date: 2020-12-24 16:01:16
|
|
44403
|
-
* @LastEditTime:
|
|
44484
|
+
* @LastEditTime: 2023-03-09 09:59:50
|
|
44404
44485
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
44405
44486
|
* @Description: In User Settings Edit
|
|
44406
44487
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
@@ -44411,6 +44492,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
44411
44492
|
//用户可调整行高
|
|
44412
44493
|
//用户可调整行宽
|
|
44413
44494
|
//用户可新增表格行
|
|
44495
|
+
//用户可新增表格列
|
|
44414
44496
|
//用户可删除表格行
|
|
44415
44497
|
//用户可删除表格
|
|
44416
44498
|
//续打时打印所有单元格边框
|
|
@@ -44427,6 +44509,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
44427
44509
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canAdjustRowHeight", false);
|
|
44428
44510
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canAdjustRowWidth", false);
|
|
44429
44511
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canAddRow", true);
|
|
44512
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canAddCol", true);
|
|
44430
44513
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canDeleteRow", true);
|
|
44431
44514
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_canDeleteTable", true);
|
|
44432
44515
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_continuePrintBorders", false);
|
|
@@ -44495,6 +44578,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
44495
44578
|
set: function set(value) {
|
|
44496
44579
|
this._canAddRow = value;
|
|
44497
44580
|
}
|
|
44581
|
+
}, {
|
|
44582
|
+
key: "canAddCol",
|
|
44583
|
+
get: function get() {
|
|
44584
|
+
return this._canAddCol;
|
|
44585
|
+
},
|
|
44586
|
+
set: function set(value) {
|
|
44587
|
+
this._canAddCol = value;
|
|
44588
|
+
}
|
|
44498
44589
|
}, {
|
|
44499
44590
|
key: "canDeleteRow",
|
|
44500
44591
|
get: function get() {
|
|
@@ -47155,8 +47246,8 @@ var UserHistory = /*#__PURE__*/function () {
|
|
|
47155
47246
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11651);
|
|
47156
47247
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19593);
|
|
47157
47248
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70280);
|
|
47158
|
-
/* harmony import */ var
|
|
47159
|
-
/* harmony import */ var
|
|
47249
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(66298);
|
|
47250
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(78255);
|
|
47160
47251
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
47161
47252
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
47162
47253
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(54747);
|
|
@@ -47165,11 +47256,14 @@ var UserHistory = /*#__PURE__*/function () {
|
|
|
47165
47256
|
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
47166
47257
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57658);
|
|
47167
47258
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
47168
|
-
/* harmony import */ var
|
|
47169
|
-
/* harmony import */ var
|
|
47170
|
-
/* harmony import */ var
|
|
47171
|
-
/* harmony import */ var
|
|
47172
|
-
/* harmony import */ var
|
|
47259
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(68309);
|
|
47260
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
47261
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9653);
|
|
47262
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
47263
|
+
/* harmony import */ var _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(48396);
|
|
47264
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62358);
|
|
47265
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(90161);
|
|
47266
|
+
|
|
47173
47267
|
|
|
47174
47268
|
|
|
47175
47269
|
|
|
@@ -47196,16 +47290,16 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
47196
47290
|
//执行状态
|
|
47197
47291
|
function BandDataSource() {
|
|
47198
47292
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, BandDataSource);
|
|
47199
|
-
(0,
|
|
47200
|
-
(0,
|
|
47201
|
-
(0,
|
|
47202
|
-
(0,
|
|
47203
|
-
(0,
|
|
47204
|
-
(0,
|
|
47205
|
-
(0,
|
|
47293
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_dataSourceEnabled", void 0);
|
|
47294
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_dataSource", void 0);
|
|
47295
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_format", void 0);
|
|
47296
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_visitPath", void 0);
|
|
47297
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_isReadOnly", void 0);
|
|
47298
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_autoUpdate", void 0);
|
|
47299
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(this, "_executeStatus", void 0);
|
|
47206
47300
|
BandDataSource.setDefaultBandDataSource(this);
|
|
47207
47301
|
}
|
|
47208
|
-
(0,
|
|
47302
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(BandDataSource, [{
|
|
47209
47303
|
key: "dataSourceEnabled",
|
|
47210
47304
|
get: function get() {
|
|
47211
47305
|
return this._dataSourceEnabled;
|
|
@@ -47284,7 +47378,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
47284
47378
|
ret._visitPath = "";
|
|
47285
47379
|
ret._isReadOnly = false;
|
|
47286
47380
|
ret._autoUpdate = false;
|
|
47287
|
-
ret._executeStatus =
|
|
47381
|
+
ret._executeStatus = _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_13__/* .ExecuteStatus.AlwaysExec */ .hc.AlwaysExec;
|
|
47288
47382
|
return ret;
|
|
47289
47383
|
}
|
|
47290
47384
|
}]);
|
|
@@ -47294,6 +47388,8 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47294
47388
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(BarcodeNode, _BaseNode);
|
|
47295
47389
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(BarcodeNode);
|
|
47296
47390
|
//编号
|
|
47391
|
+
//名称
|
|
47392
|
+
//内部标识符
|
|
47297
47393
|
//文本内容
|
|
47298
47394
|
//是否显示文本
|
|
47299
47395
|
//条形码宽
|
|
@@ -47302,20 +47398,22 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47302
47398
|
//扩展字段
|
|
47303
47399
|
|
|
47304
47400
|
//绑定数据源
|
|
47305
|
-
function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, textContent, isDisplayText, imagePath, width, height, bandDataSource, scaleX, scaleY) {
|
|
47401
|
+
function BarcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, isDisplayText, imagePath, width, height, bandDataSource, scaleX, scaleY) {
|
|
47306
47402
|
var _this;
|
|
47307
47403
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, BarcodeNode);
|
|
47308
47404
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
47309
|
-
(0,
|
|
47310
|
-
(0,
|
|
47311
|
-
(0,
|
|
47312
|
-
(0,
|
|
47313
|
-
(0,
|
|
47314
|
-
(0,
|
|
47315
|
-
(0,
|
|
47316
|
-
(0,
|
|
47317
|
-
(0,
|
|
47318
|
-
(0,
|
|
47405
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_id", void 0);
|
|
47406
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_name", void 0);
|
|
47407
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_innerIdentifier", void 0);
|
|
47408
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_textContent", "");
|
|
47409
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_isDisplayText", true);
|
|
47410
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_width", void 0);
|
|
47411
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_height", void 0);
|
|
47412
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleX", void 0);
|
|
47413
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_scaleY", void 0);
|
|
47414
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_remark", "");
|
|
47415
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_imageDataBase64String", "");
|
|
47416
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_bandDataSource", void 0);
|
|
47319
47417
|
_this._id = id;
|
|
47320
47418
|
_this._textContent = textContent;
|
|
47321
47419
|
_this._isDisplayText = isDisplayText;
|
|
@@ -47324,12 +47422,14 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47324
47422
|
_this._height = height;
|
|
47325
47423
|
_this._scaleX = scaleX ? scaleX : 1;
|
|
47326
47424
|
_this._scaleY = scaleY ? scaleY : 1;
|
|
47425
|
+
_this._name = name ? name : "";
|
|
47426
|
+
_this._innerIdentifier = innerIdentifier ? innerIdentifier : "";
|
|
47327
47427
|
_this._bandDataSource = new BandDataSource();
|
|
47328
47428
|
_this.setValuesObject(bandDataSource);
|
|
47329
47429
|
_this.node2DrawNodeRange(0, 0);
|
|
47330
47430
|
return _this;
|
|
47331
47431
|
}
|
|
47332
|
-
(0,
|
|
47432
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z)(BarcodeNode, [{
|
|
47333
47433
|
key: "setValuesObject",
|
|
47334
47434
|
value: function setValuesObject(valuesObject) {
|
|
47335
47435
|
var valuesObj = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(valuesObject) !== "object" ? eval("(" + valuesObject + ")") : valuesObject;
|
|
@@ -47434,6 +47534,26 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47434
47534
|
this._bandDataSource = value;
|
|
47435
47535
|
}
|
|
47436
47536
|
}
|
|
47537
|
+
}, {
|
|
47538
|
+
key: "name",
|
|
47539
|
+
get: function get() {
|
|
47540
|
+
return this._name;
|
|
47541
|
+
},
|
|
47542
|
+
set: function set(value) {
|
|
47543
|
+
if (this._name !== value) {
|
|
47544
|
+
this._name = value;
|
|
47545
|
+
}
|
|
47546
|
+
}
|
|
47547
|
+
}, {
|
|
47548
|
+
key: "innerIdentifier",
|
|
47549
|
+
get: function get() {
|
|
47550
|
+
return this._innerIdentifier;
|
|
47551
|
+
},
|
|
47552
|
+
set: function set(value) {
|
|
47553
|
+
if (this._innerIdentifier !== value) {
|
|
47554
|
+
this._innerIdentifier = value;
|
|
47555
|
+
}
|
|
47556
|
+
}
|
|
47437
47557
|
}, {
|
|
47438
47558
|
key: "hoEditorFactoryID",
|
|
47439
47559
|
get: function get() {
|
|
@@ -47448,7 +47568,7 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47448
47568
|
}, {
|
|
47449
47569
|
key: "node2DrawNodeRange",
|
|
47450
47570
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
47451
|
-
var dNode = new
|
|
47571
|
+
var dNode = new _editor_draw_drawNode_DrawBarcodeNode__WEBPACK_IMPORTED_MODULE_11__/* .DrawBarcodeNode */ .w(this._hoEditorFactoryID, this._rootPath, this, 0, this.textContent, this.isDisplayText, this.imageDataBase64String, this.width, this.height, this.scaleX, this.scaleY);
|
|
47452
47572
|
this._drawNodes.push(dNode);
|
|
47453
47573
|
}
|
|
47454
47574
|
}, {
|
|
@@ -47485,9 +47605,11 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47485
47605
|
var scaleX = drawBarcodeNode.children[0].scaleX;
|
|
47486
47606
|
var scaleY = drawBarcodeNode.children[0].scaleY;
|
|
47487
47607
|
var retObj = {
|
|
47488
|
-
nodeType:
|
|
47608
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType */ .Jq[this.nodeType],
|
|
47489
47609
|
imageType: "Barcode",
|
|
47490
47610
|
id: this.id,
|
|
47611
|
+
name: this.name,
|
|
47612
|
+
innerIdentifier: this.innerIdentifier,
|
|
47491
47613
|
textContent: this.textContent,
|
|
47492
47614
|
isDisplayText: this.isDisplayText,
|
|
47493
47615
|
width: width,
|
|
@@ -47524,11 +47646,11 @@ var BarcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47524
47646
|
var scaleY = Number(json.scaleY);
|
|
47525
47647
|
this.transType(json);
|
|
47526
47648
|
var isDisplayText = !json.isDisplayText ? false : json.isDisplayText;
|
|
47527
|
-
return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
47649
|
+
return new BarcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .NodeType.ntImage */ .Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, isDisplayText, json.imageDataBase64String, width, height, json.bandDataSource, scaleX, scaleY);
|
|
47528
47650
|
}
|
|
47529
47651
|
}]);
|
|
47530
47652
|
return BarcodeNode;
|
|
47531
|
-
}(
|
|
47653
|
+
}(_BaseNode__WEBPACK_IMPORTED_MODULE_12__/* .BaseNode */ .Hd);
|
|
47532
47654
|
|
|
47533
47655
|
/***/ }),
|
|
47534
47656
|
|
|
@@ -47802,6 +47924,7 @@ var NodeType;
|
|
|
47802
47924
|
NodeType[NodeType["ntLabel"] = 14] = "ntLabel";
|
|
47803
47925
|
NodeType[NodeType["ntSign"] = 15] = "ntSign";
|
|
47804
47926
|
NodeType[NodeType["ntGestation"] = 16] = "ntGestation";
|
|
47927
|
+
NodeType[NodeType["ntRareChar"] = 17] = "ntRareChar";
|
|
47805
47928
|
})(NodeType || (NodeType = {}));
|
|
47806
47929
|
var ChildIndexRange = /*#__PURE__*/function () {
|
|
47807
47930
|
function ChildIndexRange(start, end) {
|
|
@@ -50143,6 +50266,15 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
50143
50266
|
changeEvent.afterChangePath = ePath;
|
|
50144
50267
|
hoEditorFactory.docTree.change(changeEvent);
|
|
50145
50268
|
}
|
|
50269
|
+
}, {
|
|
50270
|
+
key: "getDateTimeText",
|
|
50271
|
+
value: function getDateTimeText() {
|
|
50272
|
+
if (this.text == this.name) {
|
|
50273
|
+
return "";
|
|
50274
|
+
} else {
|
|
50275
|
+
return this.text;
|
|
50276
|
+
}
|
|
50277
|
+
}
|
|
50146
50278
|
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
50147
50279
|
}, {
|
|
50148
50280
|
key: "node2DrawNodeRange",
|
|
@@ -55163,10 +55295,10 @@ var createSuper = __webpack_require__(19593);
|
|
|
55163
55295
|
var defineProperty = __webpack_require__(78255);
|
|
55164
55296
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
55165
55297
|
var es_array_push = __webpack_require__(57658);
|
|
55166
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
55167
|
-
var es_number_constructor = __webpack_require__(9653);
|
|
55168
55298
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
55169
55299
|
var es_function_name = __webpack_require__(68309);
|
|
55300
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
55301
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
55170
55302
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
55171
55303
|
var DrawCombineNode = __webpack_require__(66114);
|
|
55172
55304
|
// EXTERNAL MODULE: ./src/yuki-createjs/index.ts
|
|
@@ -55286,10 +55418,11 @@ var BaseNode = __webpack_require__(62358);
|
|
|
55286
55418
|
|
|
55287
55419
|
|
|
55288
55420
|
|
|
55421
|
+
|
|
55289
55422
|
/*
|
|
55290
55423
|
* @Author: your name
|
|
55291
55424
|
* @Date: 2020-11-13 08:51:37
|
|
55292
|
-
* @LastEditTime:
|
|
55425
|
+
* @LastEditTime: 2023-03-09 18:21:31
|
|
55293
55426
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
55294
55427
|
* @Description: In User Settings Edit
|
|
55295
55428
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\QrcodeNode.ts
|
|
@@ -55299,6 +55432,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55299
55432
|
(0,inherits/* default */.Z)(QrcodeNode, _BaseNode);
|
|
55300
55433
|
var _super = (0,createSuper/* default */.Z)(QrcodeNode);
|
|
55301
55434
|
//编号
|
|
55435
|
+
//名称
|
|
55436
|
+
//内部标识符
|
|
55302
55437
|
//文本
|
|
55303
55438
|
//类型
|
|
55304
55439
|
//纠错能力
|
|
@@ -55315,7 +55450,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55315
55450
|
//private _scaleY!: number; //y缩放比例
|
|
55316
55451
|
//扩展字段
|
|
55317
55452
|
|
|
55318
|
-
function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height
|
|
55453
|
+
function QrcodeNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, name, innerIdentifier, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height
|
|
55319
55454
|
//scaleX?: number,
|
|
55320
55455
|
//scaleY?: number
|
|
55321
55456
|
) {
|
|
@@ -55323,6 +55458,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55323
55458
|
(0,classCallCheck/* default */.Z)(this, QrcodeNode);
|
|
55324
55459
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
55325
55460
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_id", void 0);
|
|
55461
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_name", void 0);
|
|
55462
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_innerIdentifier", void 0);
|
|
55326
55463
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_textContent", "");
|
|
55327
55464
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_type", "QR");
|
|
55328
55465
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_correctLevel", "M");
|
|
@@ -55350,8 +55487,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55350
55487
|
_this._execState = execState;
|
|
55351
55488
|
_this._width = width;
|
|
55352
55489
|
_this._height = height;
|
|
55353
|
-
|
|
55354
|
-
|
|
55490
|
+
_this._name = name ? name : "";
|
|
55491
|
+
_this._innerIdentifier = innerIdentifier ? innerIdentifier : "";
|
|
55355
55492
|
_this.node2DrawNodeRange(0, 0);
|
|
55356
55493
|
return _this;
|
|
55357
55494
|
}
|
|
@@ -55379,6 +55516,12 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55379
55516
|
key: "textContent",
|
|
55380
55517
|
get: function get() {
|
|
55381
55518
|
return this._textContent;
|
|
55519
|
+
},
|
|
55520
|
+
set: function set(value) {
|
|
55521
|
+
if (this._textContent !== value) {
|
|
55522
|
+
this._textContent = value;
|
|
55523
|
+
this.node2DrawNode();
|
|
55524
|
+
}
|
|
55382
55525
|
}
|
|
55383
55526
|
}, {
|
|
55384
55527
|
key: "type",
|
|
@@ -55449,6 +55592,29 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55449
55592
|
key: "imageDataBase64String",
|
|
55450
55593
|
get: function get() {
|
|
55451
55594
|
return this._imageDataBase64String;
|
|
55595
|
+
},
|
|
55596
|
+
set: function set(val) {
|
|
55597
|
+
this._imageDataBase64String = val;
|
|
55598
|
+
}
|
|
55599
|
+
}, {
|
|
55600
|
+
key: "name",
|
|
55601
|
+
get: function get() {
|
|
55602
|
+
return this._name;
|
|
55603
|
+
},
|
|
55604
|
+
set: function set(value) {
|
|
55605
|
+
if (this._name !== value) {
|
|
55606
|
+
this._name = value;
|
|
55607
|
+
}
|
|
55608
|
+
}
|
|
55609
|
+
}, {
|
|
55610
|
+
key: "innerIdentifier",
|
|
55611
|
+
get: function get() {
|
|
55612
|
+
return this._innerIdentifier;
|
|
55613
|
+
},
|
|
55614
|
+
set: function set(value) {
|
|
55615
|
+
if (this._innerIdentifier !== value) {
|
|
55616
|
+
this._innerIdentifier = value;
|
|
55617
|
+
}
|
|
55452
55618
|
}
|
|
55453
55619
|
// get scaleX(): number {
|
|
55454
55620
|
// return this._scaleX;
|
|
@@ -55472,10 +55638,6 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55472
55638
|
* @param dline 绘制行
|
|
55473
55639
|
*/
|
|
55474
55640
|
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
55475
|
-
,
|
|
55476
|
-
set: function set(val) {
|
|
55477
|
-
this._imageDataBase64String = val;
|
|
55478
|
-
}
|
|
55479
55641
|
}, {
|
|
55480
55642
|
key: "node2DrawNodeRange",
|
|
55481
55643
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
@@ -55531,6 +55693,8 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55531
55693
|
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
55532
55694
|
imageType: "Qrcode",
|
|
55533
55695
|
id: this.id,
|
|
55696
|
+
name: this.name,
|
|
55697
|
+
innerIdentifier: this.innerIdentifier,
|
|
55534
55698
|
textContent: this.textContent,
|
|
55535
55699
|
type: this.type,
|
|
55536
55700
|
correctLevel: this.correctLevel,
|
|
@@ -55571,10 +55735,7 @@ var QrcodeNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55571
55735
|
var dataSourceEnabled = !json.dataSourceEnabled ? false : json.dataSourceEnabled;
|
|
55572
55736
|
var isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
55573
55737
|
var autoUpdate = !json.autoUpdate ? false : json.autoUpdate;
|
|
55574
|
-
return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType.ntImage */.Jq.ntImage, json.id, json.textContent, json.type, json.correctLevel, dataSourceEnabled, json.dataSource, json.format, json.visitPath, isReadOnly, autoUpdate, json.execState, width, height
|
|
55575
|
-
//scaleX,
|
|
55576
|
-
//scaleY
|
|
55577
|
-
);
|
|
55738
|
+
return new QrcodeNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType.ntImage */.Jq.ntImage, json.id, json.name, json.innerIdentifier, json.textContent, json.type, json.correctLevel, dataSourceEnabled, json.dataSource, json.format, json.visitPath, isReadOnly, autoUpdate, json.execState, width, height);
|
|
55578
55739
|
}
|
|
55579
55740
|
}]);
|
|
55580
55741
|
return QrcodeNode;
|
|
@@ -56575,6 +56736,274 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
56575
56736
|
|
|
56576
56737
|
/***/ }),
|
|
56577
56738
|
|
|
56739
|
+
/***/ 56208:
|
|
56740
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
56741
|
+
|
|
56742
|
+
"use strict";
|
|
56743
|
+
|
|
56744
|
+
// EXPORTS
|
|
56745
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
56746
|
+
"Q": function() { return /* binding */ RareCharNode; }
|
|
56747
|
+
});
|
|
56748
|
+
|
|
56749
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
56750
|
+
var classCallCheck = __webpack_require__(70280);
|
|
56751
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
56752
|
+
var createClass = __webpack_require__(66298);
|
|
56753
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
|
|
56754
|
+
var inherits = __webpack_require__(11651);
|
|
56755
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
56756
|
+
var createSuper = __webpack_require__(19593);
|
|
56757
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
56758
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
56759
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
56760
|
+
var es_array_push = __webpack_require__(57658);
|
|
56761
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
56762
|
+
var es_function_name = __webpack_require__(68309);
|
|
56763
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
56764
|
+
var es_array_splice = __webpack_require__(40561);
|
|
56765
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
56766
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
56767
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
56768
|
+
var BaseNode = __webpack_require__(62358);
|
|
56769
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
56770
|
+
var ControlNode = __webpack_require__(91105);
|
|
56771
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
56772
|
+
var assertThisInitialized = __webpack_require__(75808);
|
|
56773
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
56774
|
+
var defineProperty = __webpack_require__(78255);
|
|
56775
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
56776
|
+
var DrawCombineNode = __webpack_require__(66114);
|
|
56777
|
+
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawRareChar.ts
|
|
56778
|
+
|
|
56779
|
+
|
|
56780
|
+
|
|
56781
|
+
|
|
56782
|
+
|
|
56783
|
+
|
|
56784
|
+
|
|
56785
|
+
/*
|
|
56786
|
+
* @Author: liyanan 2441631434@qq.com
|
|
56787
|
+
* @Date: 2023-03-13 17:17:56
|
|
56788
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
56789
|
+
* @LastEditTime: 2023-03-14 15:32:15
|
|
56790
|
+
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawRareNode.ts
|
|
56791
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
56792
|
+
*/
|
|
56793
|
+
var DrawRareChar = /*#__PURE__*/function (_DrawCombineNode) {
|
|
56794
|
+
(0,inherits/* default */.Z)(DrawRareChar, _DrawCombineNode);
|
|
56795
|
+
var _super = (0,createSuper/* default */.Z)(DrawRareChar);
|
|
56796
|
+
function DrawRareChar(hoeditfactoryID, rootPath, node, index, text) {
|
|
56797
|
+
var _this;
|
|
56798
|
+
(0,classCallCheck/* default */.Z)(this, DrawRareChar);
|
|
56799
|
+
_this = _super.call(this, hoeditfactoryID, rootPath, node, index);
|
|
56800
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_text", void 0);
|
|
56801
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dStyleKey", void 0);
|
|
56802
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dText", void 0);
|
|
56803
|
+
_this._text = text;
|
|
56804
|
+
_this._dStyleKey = node.dStyleKey;
|
|
56805
|
+
_this._dText = new createjs.Text(text, _this._dStyleKey, node.dColor);
|
|
56806
|
+
_this.dWidth = _this._dText.getMeasuredWidth();
|
|
56807
|
+
_this.dHeight = node.dHeight;
|
|
56808
|
+
_this.drawRareChar();
|
|
56809
|
+
return _this;
|
|
56810
|
+
}
|
|
56811
|
+
(0,createClass/* default */.Z)(DrawRareChar, [{
|
|
56812
|
+
key: "text",
|
|
56813
|
+
get: function get() {
|
|
56814
|
+
return this._text;
|
|
56815
|
+
}
|
|
56816
|
+
}, {
|
|
56817
|
+
key: "dStyleKey",
|
|
56818
|
+
get: function get() {
|
|
56819
|
+
return this._dStyleKey;
|
|
56820
|
+
}
|
|
56821
|
+
}, {
|
|
56822
|
+
key: "drawRareChar",
|
|
56823
|
+
value: function drawRareChar() {
|
|
56824
|
+
var canvas = document.createElement('canvas');
|
|
56825
|
+
canvas.width = this.dWidth;
|
|
56826
|
+
canvas.height = this.dHeight + 2;
|
|
56827
|
+
var ctx = canvas.getContext('2d');
|
|
56828
|
+
if (ctx) {
|
|
56829
|
+
ctx.font = this._dStyleKey;
|
|
56830
|
+
ctx.fillStyle = this.node.dColor;
|
|
56831
|
+
ctx.fillText(this.text, 0, this.dHeight);
|
|
56832
|
+
var bitmap = new createjs.Bitmap(canvas);
|
|
56833
|
+
bitmap.y = -this.dHeight + 0.5;
|
|
56834
|
+
this.addChildAt(bitmap);
|
|
56835
|
+
}
|
|
56836
|
+
}
|
|
56837
|
+
}]);
|
|
56838
|
+
return DrawRareChar;
|
|
56839
|
+
}(DrawCombineNode/* DrawCombineNode */.o);
|
|
56840
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawTree/DrawTree.ts + 3 modules
|
|
56841
|
+
var DrawTree = __webpack_require__(48970);
|
|
56842
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
56843
|
+
var TextInputFieldNode = __webpack_require__(90161);
|
|
56844
|
+
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/RareCharNode.ts
|
|
56845
|
+
|
|
56846
|
+
|
|
56847
|
+
|
|
56848
|
+
|
|
56849
|
+
|
|
56850
|
+
|
|
56851
|
+
|
|
56852
|
+
|
|
56853
|
+
|
|
56854
|
+
|
|
56855
|
+
|
|
56856
|
+
|
|
56857
|
+
|
|
56858
|
+
|
|
56859
|
+
var RareCharNode = /*#__PURE__*/function (_ControlNode) {
|
|
56860
|
+
(0,inherits/* default */.Z)(RareCharNode, _ControlNode);
|
|
56861
|
+
var _super = (0,createSuper/* default */.Z)(RareCharNode);
|
|
56862
|
+
function RareCharNode(hoEditorFactoryID, rootNodes, pNode, nodeType, text, styleIndex) {
|
|
56863
|
+
var _this;
|
|
56864
|
+
(0,classCallCheck/* default */.Z)(this, RareCharNode);
|
|
56865
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
56866
|
+
_this._text = text;
|
|
56867
|
+
_this._styleIndex = styleIndex;
|
|
56868
|
+
_this.node2DrawNodeRange();
|
|
56869
|
+
return _this;
|
|
56870
|
+
}
|
|
56871
|
+
(0,createClass/* default */.Z)(RareCharNode, [{
|
|
56872
|
+
key: "text",
|
|
56873
|
+
get: function get() {
|
|
56874
|
+
return this._text;
|
|
56875
|
+
},
|
|
56876
|
+
set: function set(val) {
|
|
56877
|
+
if (val !== this._text) {
|
|
56878
|
+
this._text = val;
|
|
56879
|
+
}
|
|
56880
|
+
}
|
|
56881
|
+
}, {
|
|
56882
|
+
key: "styleIndex",
|
|
56883
|
+
get: function get() {
|
|
56884
|
+
return this._styleIndex;
|
|
56885
|
+
},
|
|
56886
|
+
set: function set(val) {
|
|
56887
|
+
if (this._styleIndex !== Number(val)) {
|
|
56888
|
+
this._styleIndex = Number(val);
|
|
56889
|
+
this.node2DrawNode();
|
|
56890
|
+
}
|
|
56891
|
+
}
|
|
56892
|
+
}, {
|
|
56893
|
+
key: "refreshDrawStyle",
|
|
56894
|
+
value: function refreshDrawStyle() {
|
|
56895
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
56896
|
+
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
56897
|
+
var cbStyle;
|
|
56898
|
+
if (textStyle) {
|
|
56899
|
+
cbStyle = textStyle.combineStyle;
|
|
56900
|
+
} else {
|
|
56901
|
+
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
56902
|
+
this.styleIndex = 0;
|
|
56903
|
+
}
|
|
56904
|
+
this.dStyleKey = cbStyle.getStyleKey();
|
|
56905
|
+
this.dColor = cbStyle.color;
|
|
56906
|
+
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
56907
|
+
this.dCombineStyle = cbStyle;
|
|
56908
|
+
}
|
|
56909
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
56910
|
+
}, {
|
|
56911
|
+
key: "node2DrawNodeRange",
|
|
56912
|
+
value: function node2DrawNodeRange() {
|
|
56913
|
+
this.refreshDrawStyle();
|
|
56914
|
+
var dNode = new DrawRareChar(this._hoEditorFactoryID, this._rootPath, this, 0, this.text);
|
|
56915
|
+
this._drawNodes.push(dNode);
|
|
56916
|
+
}
|
|
56917
|
+
}, {
|
|
56918
|
+
key: "node2DrawNode",
|
|
56919
|
+
value: function node2DrawNode() {
|
|
56920
|
+
this.clearDrawNodes(0, 0);
|
|
56921
|
+
this.node2DrawNodeRange();
|
|
56922
|
+
}
|
|
56923
|
+
/**
|
|
56924
|
+
* @author xyl
|
|
56925
|
+
* @param dRoots 绘制根数组
|
|
56926
|
+
* @param paragraphNode 对应的段落
|
|
56927
|
+
* @param start 当前起始位置,绘制时不应含入
|
|
56928
|
+
* @param endIndex 结束位置 ,包含入
|
|
56929
|
+
*/
|
|
56930
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
56931
|
+
}, {
|
|
56932
|
+
key: "placeDNode2DrawLine",
|
|
56933
|
+
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
56934
|
+
var startIndex = start;
|
|
56935
|
+
if (startIndex >= 1) {
|
|
56936
|
+
return dline;
|
|
56937
|
+
}
|
|
56938
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
56939
|
+
var isDisPlay = true;
|
|
56940
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPreview */.Dh.psPreview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
56941
|
+
isDisPlay = false;
|
|
56942
|
+
}
|
|
56943
|
+
var drawNode = this._drawNodes[0];
|
|
56944
|
+
if (isDisPlay && this.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
56945
|
+
drawNode.alpha = 1;
|
|
56946
|
+
for (var i = 0; i < drawNode.children.length; i++) {
|
|
56947
|
+
if (drawNode.children[i].name === "backColor") {
|
|
56948
|
+
drawNode.children.splice(i, 1);
|
|
56949
|
+
}
|
|
56950
|
+
}
|
|
56951
|
+
var color = hoEditorFactory.option.getColorByLevel(10);
|
|
56952
|
+
var backColor = new createjs.Shape();
|
|
56953
|
+
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight, drawNode.dWidth, drawNode.dHeight);
|
|
56954
|
+
backColor.name = "backColor";
|
|
56955
|
+
drawNode.addChildAt(backColor, 0);
|
|
56956
|
+
} else {
|
|
56957
|
+
if (!isDisPlay) {
|
|
56958
|
+
for (var _i = drawNode.children.length - 1; _i >= 0; _i--) {
|
|
56959
|
+
if (drawNode.children[_i].name === "backColor") {
|
|
56960
|
+
drawNode.children.splice(_i, 1);
|
|
56961
|
+
}
|
|
56962
|
+
}
|
|
56963
|
+
}
|
|
56964
|
+
}
|
|
56965
|
+
dline.addChild(this._drawNodes[0]);
|
|
56966
|
+
dline.drawItems.push(this._drawNodes[0]);
|
|
56967
|
+
dline.fitLines();
|
|
56968
|
+
return dline.paragraphNode.getLastDrawline();
|
|
56969
|
+
}
|
|
56970
|
+
}, {
|
|
56971
|
+
key: "hasChildPath",
|
|
56972
|
+
value: function hasChildPath() {
|
|
56973
|
+
return false;
|
|
56974
|
+
}
|
|
56975
|
+
}, {
|
|
56976
|
+
key: "node2Json",
|
|
56977
|
+
value: function node2Json(range, isCopy) {
|
|
56978
|
+
var retObj = {
|
|
56979
|
+
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
56980
|
+
text: this.text,
|
|
56981
|
+
styleIndex: this.styleIndex
|
|
56982
|
+
};
|
|
56983
|
+
if (isCopy) {
|
|
56984
|
+
return retObj;
|
|
56985
|
+
}
|
|
56986
|
+
return {
|
|
56987
|
+
"RareCharNode": retObj
|
|
56988
|
+
};
|
|
56989
|
+
}
|
|
56990
|
+
}, {
|
|
56991
|
+
key: "getTagNameCn",
|
|
56992
|
+
value: function getTagNameCn() {
|
|
56993
|
+
return "生僻字";
|
|
56994
|
+
}
|
|
56995
|
+
}], [{
|
|
56996
|
+
key: "json2Node",
|
|
56997
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
56998
|
+
var styleIndex = Number(json.styleIndex);
|
|
56999
|
+
return new RareCharNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar, json.text, styleIndex);
|
|
57000
|
+
}
|
|
57001
|
+
}]);
|
|
57002
|
+
return RareCharNode;
|
|
57003
|
+
}(ControlNode/* ControlNode */.w);
|
|
57004
|
+
|
|
57005
|
+
/***/ }),
|
|
57006
|
+
|
|
56578
57007
|
/***/ 67800:
|
|
56579
57008
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
56580
57009
|
|
|
@@ -60220,6 +60649,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
60220
60649
|
} else {
|
|
60221
60650
|
var _tableProperty = {
|
|
60222
60651
|
canAddRow: this.tableProperty.canAddRow,
|
|
60652
|
+
canAddCol: this.tableProperty.canAddCol,
|
|
60223
60653
|
canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
60224
60654
|
canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
60225
60655
|
canDeleteRow: this.tableProperty.canDeleteRow,
|
|
@@ -60459,6 +60889,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
60459
60889
|
var colCount = colInfos.item.length;
|
|
60460
60890
|
var tableProperty = {
|
|
60461
60891
|
canAddRow: this.tableProperty.canAddRow,
|
|
60892
|
+
canAddCol: this.tableProperty.canAddCol,
|
|
60462
60893
|
canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
60463
60894
|
canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
60464
60895
|
canDeleteRow: this.tableProperty.canDeleteRow,
|
|
@@ -75982,6 +76413,8 @@ var inherits = __webpack_require__(11651);
|
|
|
75982
76413
|
var createSuper = __webpack_require__(19593);
|
|
75983
76414
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
75984
76415
|
var defineProperty = __webpack_require__(78255);
|
|
76416
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
76417
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
75985
76418
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
75986
76419
|
var es_string_ends_with = __webpack_require__(27852);
|
|
75987
76420
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
@@ -76030,7 +76463,7 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
76030
76463
|
function DrawText(node, text, maxWidth, startIndex, spacing, font, color, bPuctuation, dLine) {
|
|
76031
76464
|
var _this;
|
|
76032
76465
|
(0,classCallCheck/* default */.Z)(this, DrawText);
|
|
76033
|
-
_this = _super.call(this,
|
|
76466
|
+
_this = _super.call(this, '', font, color);
|
|
76034
76467
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_letterSpacing", void 0);
|
|
76035
76468
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_startIndex", void 0);
|
|
76036
76469
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_endIndex", void 0);
|
|
@@ -76044,7 +76477,7 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
76044
76477
|
var lineUsedWidth = 0;
|
|
76045
76478
|
_this._node = node;
|
|
76046
76479
|
if (node.dCombineStyle.chineseWidth == 0) {
|
|
76047
|
-
node.dCombineStyle.chineseWidth = _this._getMeasuredWidth(
|
|
76480
|
+
node.dCombineStyle.chineseWidth = _this._getMeasuredWidth('中');
|
|
76048
76481
|
}
|
|
76049
76482
|
_this._chinesWordWidth = node.dCombineStyle.chineseWidth;
|
|
76050
76483
|
_this._endIndex = -1;
|
|
@@ -76148,12 +76581,12 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
76148
76581
|
// if(ctx instanceof CanvasRenderingContext2D) {
|
|
76149
76582
|
// ctx.font = strLowFont.replace("bold", "") || "12pt 宋体";
|
|
76150
76583
|
// } else {
|
|
76151
|
-
ctx.font = this.font ||
|
|
76584
|
+
ctx.font = this.font || '12pt SimSun';
|
|
76152
76585
|
ctx.letterSpacing = this._letterSpacing;
|
|
76153
76586
|
// }
|
|
76154
|
-
ctx.textAlign = this.textAlign ||
|
|
76155
|
-
ctx.textBaseline = this.textBaseline ||
|
|
76156
|
-
ctx.lineJoin =
|
|
76587
|
+
ctx.textAlign = this.textAlign || 'left';
|
|
76588
|
+
ctx.textBaseline = this.textBaseline || 'top';
|
|
76589
|
+
ctx.lineJoin = 'miter';
|
|
76157
76590
|
ctx.miterLimit = 10;
|
|
76158
76591
|
return ctx;
|
|
76159
76592
|
}
|
|
@@ -76187,9 +76620,9 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
76187
76620
|
}
|
|
76188
76621
|
// const lineHeight = this.lineHeight || this.getMeasuredLineHeight();
|
|
76189
76622
|
ctx.imageSmoothingEnabled = true;
|
|
76190
|
-
var col = this.color ||
|
|
76623
|
+
var col = this.color || '#000';
|
|
76191
76624
|
if (commonParamList/* commonParamList.get */.G.get('viewBlack')) {
|
|
76192
|
-
col =
|
|
76625
|
+
col = '#000';
|
|
76193
76626
|
}
|
|
76194
76627
|
// const strLowFont = this.font.toLowerCase();
|
|
76195
76628
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
@@ -76397,13 +76830,13 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
76397
76830
|
key: "getWorkingContext",
|
|
76398
76831
|
value: function getWorkingContext() {
|
|
76399
76832
|
if (!DrawText._workingContext) {
|
|
76400
|
-
var canvas = document.createElement(
|
|
76833
|
+
var canvas = document.createElement('canvas');
|
|
76401
76834
|
canvas.width = canvas.height = 1;
|
|
76402
|
-
var context = canvas.getContext(
|
|
76835
|
+
var context = canvas.getContext('2d');
|
|
76403
76836
|
if (context) {
|
|
76404
76837
|
DrawText._workingContext = context;
|
|
76405
76838
|
} else {
|
|
76406
|
-
throw new Error(
|
|
76839
|
+
throw new Error('创建canvas失败');
|
|
76407
76840
|
}
|
|
76408
76841
|
}
|
|
76409
76842
|
return DrawText._workingContext;
|
|
@@ -76431,6 +76864,7 @@ var GestationNode = __webpack_require__(73632);
|
|
|
76431
76864
|
|
|
76432
76865
|
|
|
76433
76866
|
|
|
76867
|
+
|
|
76434
76868
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
76435
76869
|
|
|
76436
76870
|
|
|
@@ -76639,6 +77073,16 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76639
77073
|
this.updateStyleByScript();
|
|
76640
77074
|
this.drawUnderline();
|
|
76641
77075
|
this.drawStrikeout();
|
|
77076
|
+
if (this.node instanceof TextNode/* TextNode */.R && this.node.errorIndex != undefined) {
|
|
77077
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
77078
|
+
var datas = hoEditorFactory.drawTree.errorsMap.get(this.node.errorIndex);
|
|
77079
|
+
if (datas) {
|
|
77080
|
+
for (var m = 0; m < datas.length; m++) {
|
|
77081
|
+
var data = datas[m];
|
|
77082
|
+
this.drawDoubleUnderline(Number(data[0]), Number(data[1]));
|
|
77083
|
+
}
|
|
77084
|
+
}
|
|
77085
|
+
}
|
|
76642
77086
|
// this.setBounds(0, 0, this.dWidth + this._wspace, Math.max(this.dHeight, this._lineheight));
|
|
76643
77087
|
return true;
|
|
76644
77088
|
}
|
|
@@ -76773,6 +77217,52 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76773
77217
|
this._bg.y = -Math.max(this.dHeight, this._lineheight);
|
|
76774
77218
|
}
|
|
76775
77219
|
}
|
|
77220
|
+
}, {
|
|
77221
|
+
key: "drawDoubleUnderline",
|
|
77222
|
+
value: function drawDoubleUnderline(start, end) {
|
|
77223
|
+
var h = 0.5;
|
|
77224
|
+
var x = 0;
|
|
77225
|
+
var w = 0;
|
|
77226
|
+
var charWidth = this.docWidth / this.charCount;
|
|
77227
|
+
var startIndex = this.dText.startIndex;
|
|
77228
|
+
var endIndex = this.dText.endIndex;
|
|
77229
|
+
if (start >= startIndex) {
|
|
77230
|
+
x = charWidth * start;
|
|
77231
|
+
if (end <= endIndex) {
|
|
77232
|
+
w = (end - start + 1) * charWidth;
|
|
77233
|
+
} else {
|
|
77234
|
+
w = (endIndex - start + 1) * charWidth;
|
|
77235
|
+
}
|
|
77236
|
+
} else {
|
|
77237
|
+
x = 0;
|
|
77238
|
+
if (end <= endIndex) {
|
|
77239
|
+
w = (end - startIndex + 1) * charWidth;
|
|
77240
|
+
} else {
|
|
77241
|
+
w = this.dWidth;
|
|
77242
|
+
}
|
|
77243
|
+
}
|
|
77244
|
+
var markLine = new createjs.Shape();
|
|
77245
|
+
markLine.graphics.beginFill("#F31A1A").drawRect(x,
|
|
77246
|
+
//x
|
|
77247
|
+
6 * h,
|
|
77248
|
+
//y
|
|
77249
|
+
w + this._wspace + 1, 6 * h);
|
|
77250
|
+
this.addChild(markLine);
|
|
77251
|
+
// const line1 = new createjs.Shape();
|
|
77252
|
+
// line1.graphics.clear();
|
|
77253
|
+
// line1.graphics
|
|
77254
|
+
// .beginStroke("#F31A1A")
|
|
77255
|
+
// .moveTo(x, 1 + 2 * h)
|
|
77256
|
+
// .lineTo(x + w + this._wspace + 1, 1 + 2 * h);
|
|
77257
|
+
// this.addChild(line1);
|
|
77258
|
+
// const line2 = new createjs.Shape();
|
|
77259
|
+
// line2.graphics.clear();
|
|
77260
|
+
// line2.graphics
|
|
77261
|
+
// .beginStroke("#F31A1A")
|
|
77262
|
+
// .moveTo(x, 8 * h)
|
|
77263
|
+
// .lineTo(x + w + this._wspace + 1, 8 * h);
|
|
77264
|
+
// this.addChild(line2);
|
|
77265
|
+
}
|
|
76776
77266
|
/**
|
|
76777
77267
|
* 下划线
|
|
76778
77268
|
*/
|
|
@@ -81688,13 +82178,21 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
81688
82178
|
}
|
|
81689
82179
|
var right = 1 + dnextDline.paragraphNode.combineParagraph.charSpace;
|
|
81690
82180
|
dPage = hoeditorfacotry.drawPageTree.getDrawPageByDNode(dnextDline);
|
|
82181
|
+
var arr = [];
|
|
82182
|
+
var iindex = 0;
|
|
81691
82183
|
//处理开始行的部分选中
|
|
81692
82184
|
if (dnextDline === aRange.spStart.dline && aRange.spStart.index >= 0) {
|
|
81693
82185
|
var ditem = dnextDline.drawItems[aRange.spStart.index];
|
|
81694
82186
|
if (ditem instanceof DrawTextNode/* DrawTextNode */.v && ditem.node instanceof TextNode/* TextNode */.R) {
|
|
81695
|
-
|
|
81696
|
-
|
|
81697
|
-
if (!isNaN(iindex))
|
|
82187
|
+
arr = aRange.spStart.path.split("/");
|
|
82188
|
+
iindex = parseInt(arr[arr.length - 1]);
|
|
82189
|
+
if (!isNaN(iindex)) {
|
|
82190
|
+
if (iindex == 0) {
|
|
82191
|
+
left = ditem.x;
|
|
82192
|
+
} else {
|
|
82193
|
+
left = ditem.x + ditem.dText.getWidthByIndex(iindex - 1);
|
|
82194
|
+
}
|
|
82195
|
+
}
|
|
81698
82196
|
} else {
|
|
81699
82197
|
left = ditem.x + ditem.dWidth + dnextDline.charSpace;
|
|
81700
82198
|
}
|
|
@@ -81705,9 +82203,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
81705
82203
|
if (aRange.spEnd.index >= 0) {
|
|
81706
82204
|
var _ditem3 = dnextDline.drawItems[aRange.spEnd.index];
|
|
81707
82205
|
if (_ditem3 instanceof DrawTextNode/* DrawTextNode */.v && _ditem3.node instanceof TextNode/* TextNode */.R) {
|
|
81708
|
-
|
|
81709
|
-
|
|
81710
|
-
if (!isNaN(
|
|
82206
|
+
arr = aRange.spEnd.path.split("/");
|
|
82207
|
+
iindex = parseInt(arr[arr.length - 1]);
|
|
82208
|
+
if (!isNaN(iindex)) right = _ditem3.x + _ditem3.dText.getWidthByIndex(iindex);
|
|
81711
82209
|
} else {
|
|
81712
82210
|
right = _ditem3.x + _ditem3.dWidth + dnextDline.charSpace;
|
|
81713
82211
|
}
|
|
@@ -81995,7 +82493,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
81995
82493
|
key: "rebuildAllDrawLine",
|
|
81996
82494
|
value: function () {
|
|
81997
82495
|
var _rebuildAllDrawLine = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(needUpdateParaStyle, resolve) {
|
|
81998
|
-
var hoEditorFactory, headerDocTree, i, _nodes3, dline, _startPath, _endPath, _cgEvent, footerDocTree, j, _nodes4, _dline4, _startPath2, _endPath2, _cgEvent2, nodes, _dline5, startPath, endPath, cgEvent, lastPath, selChangeEvent;
|
|
82496
|
+
var hoEditorFactory, headerDocTree, i, _nodes3, dline, _startPath, _endPath, _cgEvent, footerDocTree, j, _nodes4, _dline4, _startPath2, _endPath2, _cgEvent2, nodes, _dline5, startPath, endPath, lastNode, lastNodeStyle, newParaNode, cgEvent, lastPath, selChangeEvent;
|
|
81999
82497
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
82000
82498
|
while (1) {
|
|
82001
82499
|
switch (_context3.prev = _context3.next) {
|
|
@@ -82083,20 +82581,29 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82083
82581
|
}
|
|
82084
82582
|
startPath = nodes[0].getNodePath();
|
|
82085
82583
|
endPath = hoEditorFactory.docTree.getNodeLastPath(nodes[nodes.length - 1]);
|
|
82584
|
+
lastNode = nodes[nodes.length - 1];
|
|
82585
|
+
if (this.paintStatus == PaintState.psReview && lastNode instanceof TextNode/* TextNode */.R && lastNode.styleIndex > 0) {
|
|
82586
|
+
lastNodeStyle = hoEditorFactory.docTree.styles[lastNode.styleIndex];
|
|
82587
|
+
if (lastNodeStyle && lastNodeStyle.deleterIndex && lastNodeStyle.deleterIndex >= 0) {
|
|
82588
|
+
newParaNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, lastNode.rootNodes, lastNode.parentNode, 0);
|
|
82589
|
+
hoEditorFactory.docTree.insertNodeAfterPath(endPath, newParaNode);
|
|
82590
|
+
endPath = newParaNode.getNodePath();
|
|
82591
|
+
}
|
|
82592
|
+
}
|
|
82086
82593
|
cgEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath);
|
|
82087
82594
|
cgEvent.oldEndPath = endPath;
|
|
82088
82595
|
cgEvent.needUpdateParaStyle = needUpdateParaStyle;
|
|
82089
82596
|
cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
82090
|
-
_context3.next =
|
|
82597
|
+
_context3.next = 50;
|
|
82091
82598
|
return hoEditorFactory.docTree.change(cgEvent);
|
|
82092
|
-
case
|
|
82599
|
+
case 50:
|
|
82093
82600
|
if (hoEditorFactory.docTree.curDomRange.startPath != "") this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);else {
|
|
82094
82601
|
lastPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[hoEditorFactory.docTree.mainNodes.length - 1]);
|
|
82095
82602
|
selChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(hoEditorFactory.docTree.curDomRange, new DomRange/* DomRange */.a(this._hoEditorFactoryID, lastPath, lastPath));
|
|
82096
82603
|
hoEditorFactory.docTree.selectChange(selChangeEvent);
|
|
82097
82604
|
}
|
|
82098
82605
|
resolve && resolve(true);
|
|
82099
|
-
case
|
|
82606
|
+
case 52:
|
|
82100
82607
|
case "end":
|
|
82101
82608
|
return _context3.stop();
|
|
82102
82609
|
}
|
|
@@ -82908,6 +83415,7 @@ var OperType;
|
|
|
82908
83415
|
OperType[OperType["insertTableFormula"] = 56] = "insertTableFormula";
|
|
82909
83416
|
OperType[OperType["insertSign"] = 57] = "insertSign";
|
|
82910
83417
|
OperType[OperType["insertGestation"] = 58] = "insertGestation";
|
|
83418
|
+
OperType[OperType["insertRareChar"] = 59] = "insertRareChar";
|
|
82911
83419
|
})(OperType || (OperType = {}));
|
|
82912
83420
|
var NodeChangingEvent = /*#__PURE__*/function () {
|
|
82913
83421
|
function NodeChangingEvent(action, startPath, endPath, operType) {
|
|
@@ -85286,13 +85794,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
85286
85794
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
85287
85795
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
85288
85796
|
aNode = currRange.npStart.node;
|
|
85797
|
+
pnode = aNode.parentNode;
|
|
85289
85798
|
if (!(aNode && pnode)) {
|
|
85290
|
-
_context2.next =
|
|
85799
|
+
_context2.next = 66;
|
|
85291
85800
|
break;
|
|
85292
85801
|
}
|
|
85293
|
-
_context2.next =
|
|
85802
|
+
_context2.next = 66;
|
|
85294
85803
|
return this.ParentRepaint(pnode);
|
|
85295
|
-
case
|
|
85804
|
+
case 66:
|
|
85296
85805
|
case "end":
|
|
85297
85806
|
return _context2.stop();
|
|
85298
85807
|
}
|
|
@@ -88933,30 +89442,33 @@ var isMap = function isMap(map) {
|
|
|
88933
89442
|
/* harmony export */ "vc": function() { return /* binding */ dateFormat; },
|
|
88934
89443
|
/* harmony export */ "y": function() { return /* binding */ generateID; }
|
|
88935
89444
|
/* harmony export */ });
|
|
88936
|
-
/* unused harmony exports generateGetBoundingClientRect, createPrintHTMLIframe, resetScale, getUserIP */
|
|
88937
|
-
/* harmony import */ var
|
|
88938
|
-
/* harmony import */ var
|
|
88939
|
-
/* harmony import */ var
|
|
88940
|
-
/* harmony import */ var
|
|
88941
|
-
/* harmony import */ var
|
|
88942
|
-
/* harmony import */ var
|
|
88943
|
-
/* harmony import */ var
|
|
88944
|
-
/* harmony import */ var
|
|
88945
|
-
/* harmony import */ var
|
|
88946
|
-
/* harmony import */ var
|
|
88947
|
-
/* harmony import */ var
|
|
88948
|
-
/* harmony import */ var
|
|
88949
|
-
/* harmony import */ var
|
|
88950
|
-
/* harmony import */ var
|
|
88951
|
-
/* harmony import */ var
|
|
88952
|
-
/* harmony import */ var
|
|
88953
|
-
/* harmony import */ var
|
|
88954
|
-
/* harmony import */ var
|
|
88955
|
-
/* harmony import */ var
|
|
88956
|
-
/* harmony import */ var
|
|
88957
|
-
/* harmony import */ var
|
|
88958
|
-
/* harmony import */ var
|
|
88959
|
-
/* harmony import */ var
|
|
89445
|
+
/* unused harmony exports generateGetBoundingClientRect, createPrintHTMLIframe, resetScale, getUserIP, createRarewordsCanvas */
|
|
89446
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61748);
|
|
89447
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74916);
|
|
89448
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
89449
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15306);
|
|
89450
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
89451
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26699);
|
|
89452
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
89453
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32023);
|
|
89454
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
89455
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91038);
|
|
89456
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
89457
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78783);
|
|
89458
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
89459
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
89460
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
89461
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(39714);
|
|
89462
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
89463
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(92222);
|
|
89464
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
89465
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(54747);
|
|
89466
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
89467
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4723);
|
|
89468
|
+
/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
89469
|
+
/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95551);
|
|
89470
|
+
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(91404);
|
|
89471
|
+
|
|
88960
89472
|
|
|
88961
89473
|
|
|
88962
89474
|
|
|
@@ -88977,6 +89489,7 @@ var isMap = function isMap(map) {
|
|
|
88977
89489
|
* @FilePath: \hoeditor-web\src\plugins\util.ts
|
|
88978
89490
|
*/
|
|
88979
89491
|
|
|
89492
|
+
|
|
88980
89493
|
var isDate = function isDate(date) {
|
|
88981
89494
|
if (date === null || date === undefined) {
|
|
88982
89495
|
return false;
|
|
@@ -89215,7 +89728,7 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
89215
89728
|
var virtualElement = {
|
|
89216
89729
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
89217
89730
|
};
|
|
89218
|
-
(0,
|
|
89731
|
+
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_13__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
89219
89732
|
placement: 'bottom-start',
|
|
89220
89733
|
modifiers: [{
|
|
89221
89734
|
name: 'flip',
|
|
@@ -89413,6 +89926,59 @@ var scaleRotateImage = function scaleRotateImage(base64, imageWidth, imageHeight
|
|
|
89413
89926
|
}
|
|
89414
89927
|
};
|
|
89415
89928
|
};
|
|
89929
|
+
var createRarewordsCanvas = function createRarewordsCanvas(text, textStyle) {
|
|
89930
|
+
var width = UnitConvert.instance.fontPt2Pix(textStyle.size * _toConsumableArray(text).length);
|
|
89931
|
+
var height = UnitConvert.instance.fontPt2Pix(textStyle.size);
|
|
89932
|
+
if (width % 2 !== 0) {
|
|
89933
|
+
width += 1;
|
|
89934
|
+
}
|
|
89935
|
+
if (height % 2 !== 0) {
|
|
89936
|
+
height += 1;
|
|
89937
|
+
}
|
|
89938
|
+
var canvas = document.createElement('canvas');
|
|
89939
|
+
var context = canvas.getContext('2d');
|
|
89940
|
+
canvas.width = width;
|
|
89941
|
+
canvas.height = height;
|
|
89942
|
+
canvas.style.width = width + 'px';
|
|
89943
|
+
canvas.style.height = height + 'px';
|
|
89944
|
+
context.clearRect(0, 0, canvas.width, canvas.height);
|
|
89945
|
+
context.fillStyle = '#FFFFFF';
|
|
89946
|
+
context.fillRect(0, 0, canvas.width, canvas.height);
|
|
89947
|
+
context.font = "".concat(textStyle.size, "pt ").concat(textStyle.font);
|
|
89948
|
+
context.fillStyle = '#000';
|
|
89949
|
+
context.fillText(text, 0, canvas.height - 1);
|
|
89950
|
+
context.textBaseline = 'alphabetic';
|
|
89951
|
+
var svgNS = 'http://www.w3.org/2000/svg';
|
|
89952
|
+
var oSvg = document.createElementNS(svgNS, 'svg');
|
|
89953
|
+
var oG = document.createElementNS(svgNS, 'g');
|
|
89954
|
+
var oText = document.createElementNS(svgNS, 'text');
|
|
89955
|
+
oSvg.setAttribute('xmlns', svgNS);
|
|
89956
|
+
oSvg.setAttribute('width', "".concat(textStyle.size * _toConsumableArray(text).length, "pt"));
|
|
89957
|
+
oSvg.setAttribute('height', "".concat(textStyle.size, "pt"));
|
|
89958
|
+
oText.setAttribute('x', '0');
|
|
89959
|
+
oText.setAttribute('y', "".concat(height - 2));
|
|
89960
|
+
oText.setAttribute('font-size', "".concat(textStyle.size, "pt"));
|
|
89961
|
+
oText.setAttribute('font-family', textStyle.font);
|
|
89962
|
+
oText.setAttribute('font-weight', textStyle.weight);
|
|
89963
|
+
oText.setAttribute('text-decoration', 'normal');
|
|
89964
|
+
oText.setAttribute('letter-spacing', '0');
|
|
89965
|
+
oText.setAttribute('xml:space', 'preserve');
|
|
89966
|
+
oText.setAttribute('text-anchor', 'start');
|
|
89967
|
+
oText.setAttribute('dominant-baseline', 'alphabetic');
|
|
89968
|
+
oText.setAttribute('dominant-baseline', 'alphabetic');
|
|
89969
|
+
oText.setAttribute('fill', '#000000');
|
|
89970
|
+
oText.innerHTML = text;
|
|
89971
|
+
oG.appendChild(oText);
|
|
89972
|
+
oSvg.appendChild(oG);
|
|
89973
|
+
return {
|
|
89974
|
+
bound: {
|
|
89975
|
+
width: width,
|
|
89976
|
+
height: height
|
|
89977
|
+
},
|
|
89978
|
+
base64: canvas.toDataURL('image/jpeg', 1),
|
|
89979
|
+
svg: oSvg
|
|
89980
|
+
};
|
|
89981
|
+
};
|
|
89416
89982
|
|
|
89417
89983
|
/***/ }),
|
|
89418
89984
|
|
|
@@ -89449,6 +90015,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
89449
90015
|
|
|
89450
90016
|
// UNUSED EXPORTS: AcroForm, AcroFormAppearance, AcroFormButton, AcroFormCheckBox, AcroFormChoiceField, AcroFormComboBox, AcroFormEditBox, AcroFormListBox, AcroFormPasswordField, AcroFormPushButton, AcroFormRadioButton, AcroFormTextField
|
|
89451
90017
|
|
|
90018
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
90019
|
+
var toConsumableArray = __webpack_require__(61748);
|
|
89452
90020
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
89453
90021
|
var es_regexp_exec = __webpack_require__(74916);
|
|
89454
90022
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
@@ -89609,6 +90177,8 @@ var web_dom_collections_iterator = __webpack_require__(33948);
|
|
|
89609
90177
|
var es_object_proto = __webpack_require__(67987);
|
|
89610
90178
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
89611
90179
|
var es_string_split = __webpack_require__(23123);
|
|
90180
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.code-point-at.js
|
|
90181
|
+
var es_string_code_point_at = __webpack_require__(79841);
|
|
89612
90182
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
89613
90183
|
var es_symbol = __webpack_require__(82526);
|
|
89614
90184
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
@@ -95789,7 +96359,7 @@ ctx.fillRect(0,0,canvas.width,canvas.height);var options={ignoreMouse:true,ignor
|
|
|
95789
96359
|
return ar.join("");}else{t=t.toString(16);ar.push(padz[4-t.length],t);}}return ar.join("");};var toUnicodeCmap=function toUnicodeCmap(map){var code,codes,range,unicode,unicodeMap,_i,_len;unicodeMap="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange";codes=Object.keys(map).sort(function(a,b){return a-b;});range=[];for(_i=0,_len=codes.length;_i<_len;_i++){code=codes[_i];if(range.length>=100){unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar";range=[];}if(map[code]!==undefined&&map[code]!==null&&typeof map[code].toString==="function"){unicode=("0000"+map[code].toString(16)).slice(-4);code=("0000"+(+code).toString(16)).slice(-4);range.push("<"+code+"><"+unicode+">");}}if(range.length){unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar\n";}unicodeMap+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend";return unicodeMap;};var identityHFunction=function identityHFunction(options){var font=options.font;var out=options.out;var newObject=options.newObject;var putStream=options.putStream;if(font.metadata instanceof jsPDF.API.TTFFont&&font.encoding==="Identity-H"){//Tag with Identity-H
|
|
95790
96360
|
var widths=font.metadata.Unicode.widths;var data=font.metadata.subset.encode(font.metadata.glyIdsUsed,1);var pdfOutput=data;var pdfOutput2="";for(var i=0;i<pdfOutput.length;i++){pdfOutput2+=String.fromCharCode(pdfOutput[i]);}var fontTable=newObject();putStream({data:pdfOutput2,addLength1:true,objectId:fontTable});out("endobj");var cmap=newObject();var cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:true,objectId:cmap});out("endobj");var fontDescriptor=newObject();out("<<");out("/Type /FontDescriptor");out("/FontName /"+toPDFName(font.fontName));out("/FontFile2 "+fontTable+" 0 R");out("/FontBBox "+jsPDF.API.PDFObject.convert(font.metadata.bbox));out("/Flags "+font.metadata.flags);out("/StemV "+font.metadata.stemV);out("/ItalicAngle "+font.metadata.italicAngle);out("/Ascent "+font.metadata.ascender);out("/Descent "+font.metadata.decender);out("/CapHeight "+font.metadata.capHeight);out(">>");out("endobj");var DescendantFont=newObject();out("<<");out("/Type /Font");out("/BaseFont /"+toPDFName(font.fontName));out("/FontDescriptor "+fontDescriptor+" 0 R");out("/W "+jsPDF.API.PDFObject.convert(widths));out("/CIDToGIDMap /Identity");out("/DW 1000");out("/Subtype /CIDFontType2");out("/CIDSystemInfo");out("<<");out("/Supplement 0");out("/Registry (Adobe)");out("/Ordering ("+font.encoding+")");out(">>");out(">>");out("endobj");font.objectNumber=newObject();out("<<");out("/Type /Font");out("/Subtype /Type0");out("/ToUnicode "+cmap+" 0 R");out("/BaseFont /"+toPDFName(font.fontName));out("/Encoding /"+font.encoding);out("/DescendantFonts ["+DescendantFont+" 0 R]");out(">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){identityHFunction(args);}]);var winAnsiEncodingFunction=function winAnsiEncodingFunction(options){var font=options.font;var out=options.out;var newObject=options.newObject;var putStream=options.putStream;if(font.metadata instanceof jsPDF.API.TTFFont&&font.encoding==="WinAnsiEncoding"){//Tag with WinAnsi encoding
|
|
95791
96361
|
var data=font.metadata.rawData;var pdfOutput=data;var pdfOutput2="";for(var i=0;i<pdfOutput.length;i++){pdfOutput2+=String.fromCharCode(pdfOutput[i]);}var fontTable=newObject();putStream({data:pdfOutput2,addLength1:true,objectId:fontTable});out("endobj");var cmap=newObject();var cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:true,objectId:cmap});out("endobj");var fontDescriptor=newObject();out("<<");out("/Descent "+font.metadata.decender);out("/CapHeight "+font.metadata.capHeight);out("/StemV "+font.metadata.stemV);out("/Type /FontDescriptor");out("/FontFile2 "+fontTable+" 0 R");out("/Flags 96");out("/FontBBox "+jsPDF.API.PDFObject.convert(font.metadata.bbox));out("/FontName /"+toPDFName(font.fontName));out("/ItalicAngle "+font.metadata.italicAngle);out("/Ascent "+font.metadata.ascender);out(">>");out("endobj");font.objectNumber=newObject();for(var j=0;j<font.metadata.hmtx.widths.length;j++){font.metadata.hmtx.widths[j]=parseInt(font.metadata.hmtx.widths[j]*(1000/font.metadata.head.unitsPerEm));//Change the width of Em units to Point units.
|
|
95792
|
-
}out("<</Subtype/TrueType/Type/Font/ToUnicode "+cmap+" 0 R/BaseFont/"+toPDFName(font.fontName)+"/FontDescriptor "+fontDescriptor+" 0 R"+"/Encoding/"+font.encoding+" /FirstChar 29 /LastChar 255 /Widths "+jsPDF.API.PDFObject.convert(font.metadata.hmtx.widths)+">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){winAnsiEncodingFunction(args);}]);var utf8TextFunction=function utf8TextFunction(args){var text=args.text||"";var x=args.x;var y=args.y;var options=args.options||{};var mutex=args.mutex||{};var pdfEscape=mutex.pdfEscape;var activeFontKey=mutex.activeFontKey;var fonts=mutex.fonts;var key=activeFontKey;var str="",s=0,cmapConfirm;var strText="";var encoding=fonts[key].encoding;if(fonts[key].encoding!=="Identity-H"){return{text:text,x:x,y:y,options:options,mutex:mutex};}strText=text;key=activeFontKey;if(Array.isArray(text)){strText=text[0];}for(s=0;s<
|
|
96362
|
+
}out("<</Subtype/TrueType/Type/Font/ToUnicode "+cmap+" 0 R/BaseFont/"+toPDFName(font.fontName)+"/FontDescriptor "+fontDescriptor+" 0 R"+"/Encoding/"+font.encoding+" /FirstChar 29 /LastChar 255 /Widths "+jsPDF.API.PDFObject.convert(font.metadata.hmtx.widths)+">>");out("endobj");font.isAlreadyPutted=true;}};jsPDFAPI.events.push(["putFont",function(args){winAnsiEncodingFunction(args);}]);var utf8TextFunction=function utf8TextFunction(args){var text=args.text||"";var x=args.x;var y=args.y;var options=args.options||{};var mutex=args.mutex||{};var pdfEscape=mutex.pdfEscape;var activeFontKey=mutex.activeFontKey;var fonts=mutex.fonts;var key=activeFontKey;var str="",s=0,cmapConfirm;var strText="";var encoding=fonts[key].encoding;if(fonts[key].encoding!=="Identity-H"){return{text:text,x:x,y:y,options:options,mutex:mutex};}strText=text;key=activeFontKey;if(Array.isArray(text)){strText=text[0];}var textArr=(0,toConsumableArray/* default */.Z)(strText);for(s=0;s<textArr.length;s+=1){if(fonts[key].metadata.hasOwnProperty("cmap")){cmapConfirm=fonts[key].metadata.cmap.unicode.codeMap[textArr[s].codePointAt()];/*
|
|
95793
96363
|
if (Object.prototype.toString.call(text) === '[object Array]') {
|
|
95794
96364
|
var i = 0;
|
|
95795
96365
|
// for (i = 0; i < text.length; i += 1) {
|
|
@@ -95800,7 +96370,7 @@ var data=font.metadata.rawData;var pdfOutput=data;var pdfOutput2="";for(var i=0;
|
|
|
95800
96370
|
//}
|
|
95801
96371
|
} else {
|
|
95802
96372
|
cmapConfirm = fonts[key].metadata.cmap.unicode.codeMap[strText[s].charCodeAt(0)]; //Make sure the cmap has the corresponding glyph id
|
|
95803
|
-
}*/}if(!cmapConfirm){if(
|
|
96373
|
+
}*/}if(!cmapConfirm){if(textArr[s].charCodeAt(0)<256&&fonts[key].metadata.hasOwnProperty("Unicode")){str+=textArr[s];}else{str+="";}}else{str+=textArr[s];}}var result="";if(parseInt(key.slice(1))<14||encoding==="WinAnsiEncoding"){//For the default 13 font
|
|
95804
96374
|
result=pdfEscape(str,key).split("").map(function(cv){return cv.charCodeAt(0).toString(16);}).join("");}else if(encoding==="Identity-H"){result=pdfEscape16(str,fonts[key]);}mutex.isHex=true;return{text:result,x:x,y:y,options:options,mutex:mutex};};var utf8EscapeFunction=function utf8EscapeFunction(parms){var text=parms.text||"",x=parms.x,y=parms.y,options=parms.options,mutex=parms.mutex;var tmpText=[];var args={text:text,x:x,y:y,options:options,mutex:mutex};if(Array.isArray(text)){var i=0;for(i=0;i<text.length;i+=1){if(Array.isArray(text[i])){if(text[i].length===3){tmpText.push([utf8TextFunction(Object.assign({},args,{text:text[i][0]})).text,text[i][1],text[i][2]]);}else{tmpText.push(utf8TextFunction(Object.assign({},args,{text:text[i]})).text);}}else{tmpText.push(utf8TextFunction(Object.assign({},args,{text:text[i]})).text);}}parms.text=tmpText;}else{parms.text=utf8TextFunction(Object.assign({},args,{text:text})).text;}};jsPDFAPI.events.push(["postProcessText",utf8EscapeFunction]);})(jsPDF);/**
|
|
95805
96375
|
* @license
|
|
95806
96376
|
* jsPDF virtual FileSystem functionality
|
|
@@ -120632,6 +121202,25 @@ $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {
|
|
|
120632
121202
|
});
|
|
120633
121203
|
|
|
120634
121204
|
|
|
121205
|
+
/***/ }),
|
|
121206
|
+
|
|
121207
|
+
/***/ 79841:
|
|
121208
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
121209
|
+
|
|
121210
|
+
"use strict";
|
|
121211
|
+
|
|
121212
|
+
var $ = __webpack_require__(82109);
|
|
121213
|
+
var codeAt = (__webpack_require__(28710).codeAt);
|
|
121214
|
+
|
|
121215
|
+
// `String.prototype.codePointAt` method
|
|
121216
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
121217
|
+
$({ target: 'String', proto: true }, {
|
|
121218
|
+
codePointAt: function codePointAt(pos) {
|
|
121219
|
+
return codeAt(this, pos);
|
|
121220
|
+
}
|
|
121221
|
+
});
|
|
121222
|
+
|
|
121223
|
+
|
|
120635
121224
|
/***/ }),
|
|
120636
121225
|
|
|
120637
121226
|
/***/ 27852:
|
|
@@ -194020,7 +194609,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
194020
194609
|
|
|
194021
194610
|
var map = {
|
|
194022
194611
|
"./ControlModal.vue": 21184,
|
|
194023
|
-
"./barCode/BarCodes.vue":
|
|
194612
|
+
"./barCode/BarCodes.vue": 20329,
|
|
194024
194613
|
"./colorPicker/HoColorPicker.vue": 91351,
|
|
194025
194614
|
"./colorPicker/HoColorPickers.vue": 84214,
|
|
194026
194615
|
"./commentDialog/CommentDialog.vue": 99956,
|
|
@@ -194042,7 +194631,7 @@ var map = {
|
|
|
194042
194631
|
"./popers/Poper.vue": 57937,
|
|
194043
194632
|
"./popers/Title.vue": 89987,
|
|
194044
194633
|
"./printstyle/PrintLineStyle.vue": 41889,
|
|
194045
|
-
"./qrCode/QrCode.vue":
|
|
194634
|
+
"./qrCode/QrCode.vue": 22786,
|
|
194046
194635
|
"./radioCheckBox/RadioCheckbox.vue": 91377,
|
|
194047
194636
|
"./selectDialog/SelectDialog.vue": 59075,
|
|
194048
194637
|
"./sign/Sign.vue": 1887,
|
|
@@ -194052,7 +194641,7 @@ var map = {
|
|
|
194052
194641
|
"./table/TableForm.vue": 19064,
|
|
194053
194642
|
"./table/TableFormTree.vue": 39703,
|
|
194054
194643
|
"./table/TableFormula.vue": 74559,
|
|
194055
|
-
"./table/TableProperty.vue":
|
|
194644
|
+
"./table/TableProperty.vue": 47130,
|
|
194056
194645
|
"./table/TableRowProperty.vue": 5218,
|
|
194057
194646
|
"./textDialog/TextDialog.vue": 94535,
|
|
194058
194647
|
"./textDialog/TextToLabelDialog.vue": 35791,
|
|
@@ -233640,7 +234229,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
233640
234229
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
233641
234230
|
var MarkNode = __webpack_require__(57727);
|
|
233642
234231
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
233643
|
-
/* harmony default export */ var version = ('3.0.
|
|
234232
|
+
/* harmony default export */ var version = ('3.0.34');
|
|
233644
234233
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
233645
234234
|
var PoperTipText = __webpack_require__(15845);
|
|
233646
234235
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235834,12 +236423,22 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
235834
236423
|
}
|
|
235835
236424
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
235836
236425
|
if (node.errorIndex !== undefined) {
|
|
235837
|
-
var
|
|
235838
|
-
if (
|
|
236426
|
+
var _arr3 = hoEditorFactory.drawTree.errorsMap.get(node.errorIndex);
|
|
236427
|
+
if (_arr3 && _arr3.length > 0) {
|
|
236428
|
+
var textArr = [];
|
|
236429
|
+
for (var k = 0; k < _arr3.length; k++) {
|
|
236430
|
+
textArr.push(_arr3[k][2]);
|
|
236431
|
+
}
|
|
235839
236432
|
setTimeout(function () {
|
|
235840
|
-
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret,
|
|
236433
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, textArr);
|
|
235841
236434
|
}, 0);
|
|
235842
236435
|
}
|
|
236436
|
+
// if (Array.isArray(text) && text.length > 0) {
|
|
236437
|
+
// console.log(JSON.stringify(text))
|
|
236438
|
+
// setTimeout(() => {
|
|
236439
|
+
// this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, text);
|
|
236440
|
+
// }, 0);
|
|
236441
|
+
// }
|
|
235843
236442
|
}
|
|
235844
236443
|
}
|
|
235845
236444
|
}
|
|
@@ -236577,6 +237176,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
236577
237176
|
tableProperty.canDeleteTable = tableProperty['canDeleteTable'] || false;
|
|
236578
237177
|
tableProperty.canDeleteRow = tableProperty['canDeleteRow'] || false;
|
|
236579
237178
|
tableProperty.canAddRow = tableProperty['canAddRow'] || false;
|
|
237179
|
+
tableProperty.canAddCol = tableProperty['canAddCol'] || false;
|
|
236580
237180
|
tableProperty.canAdjustRowWidth = tableProperty['canAdjustRowWidth'] || false;
|
|
236581
237181
|
tableProperty.canAdjustRowHeight = tableProperty['canAdjustRowHeight'] || false;
|
|
236582
237182
|
tableProperty.fixedOnePage = tableProperty['fixedOnePage'] || false;
|
|
@@ -237087,8 +237687,6 @@ var PageCountNode = __webpack_require__(66034);
|
|
|
237087
237687
|
var PageNumNode = __webpack_require__(10719);
|
|
237088
237688
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
237089
237689
|
var ControlNode = __webpack_require__(91105);
|
|
237090
|
-
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
237091
|
-
var SelectRange = __webpack_require__(53901);
|
|
237092
237690
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
237093
237691
|
var TableFormula = __webpack_require__(90832);
|
|
237094
237692
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
@@ -237168,8 +237766,8 @@ var SeparateCharNode = __webpack_require__(39385);
|
|
|
237168
237766
|
var LabelNode = __webpack_require__(95089);
|
|
237169
237767
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
237170
237768
|
var GestationNode = __webpack_require__(73632);
|
|
237171
|
-
// EXTERNAL MODULE: ./src/editor/
|
|
237172
|
-
var
|
|
237769
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/RareCharNode.ts + 1 modules
|
|
237770
|
+
var RareCharNode = __webpack_require__(56208);
|
|
237173
237771
|
;// CONCATENATED MODULE: ./src/editor/utils/StructureConvert.ts
|
|
237174
237772
|
|
|
237175
237773
|
|
|
@@ -237252,8 +237850,6 @@ var StagePosition = __webpack_require__(63074);
|
|
|
237252
237850
|
|
|
237253
237851
|
|
|
237254
237852
|
|
|
237255
|
-
|
|
237256
|
-
|
|
237257
237853
|
|
|
237258
237854
|
|
|
237259
237855
|
|
|
@@ -238139,7 +238735,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
238139
238735
|
key: "replaceNodesName",
|
|
238140
238736
|
value: function replaceNodesName(xml) {
|
|
238141
238737
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238142
|
-
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode/g);
|
|
238738
|
+
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|RareCharNode/g);
|
|
238143
238739
|
xml = xml.replace(reg, "node");
|
|
238144
238740
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableFormula>', "<node>");
|
|
238145
238741
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
|
|
@@ -238620,6 +239216,33 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
238620
239216
|
if (errors) {
|
|
238621
239217
|
this._errors = errors.error;
|
|
238622
239218
|
}
|
|
239219
|
+
//let errors = [];
|
|
239220
|
+
if (this._errors.length === undefined) {
|
|
239221
|
+
errors = Array(this._errors);
|
|
239222
|
+
} else {
|
|
239223
|
+
errors = this._errors;
|
|
239224
|
+
}
|
|
239225
|
+
if (errors.length > 0) {
|
|
239226
|
+
for (var m = 0; m < errors.length; m++) {
|
|
239227
|
+
var tips = [];
|
|
239228
|
+
var error = errors[m];
|
|
239229
|
+
var datas = error.data;
|
|
239230
|
+
if (datas.length == undefined) {
|
|
239231
|
+
datas = Array(datas);
|
|
239232
|
+
}
|
|
239233
|
+
for (var d = 0; d < datas.length; d++) {
|
|
239234
|
+
var data = datas[d];
|
|
239235
|
+
var tip = [];
|
|
239236
|
+
tip[0] = data.start;
|
|
239237
|
+
tip[1] = data.end;
|
|
239238
|
+
tip[2] = "错误:" + data.wrong + ",正确:" + data.correct;
|
|
239239
|
+
tips.push(tip);
|
|
239240
|
+
//tips.push("错误:" + data.wrong + ",正确:" + data.correct);
|
|
239241
|
+
}
|
|
239242
|
+
|
|
239243
|
+
hoEditorFactory.drawTree.errorsMap.set(m, tips);
|
|
239244
|
+
}
|
|
239245
|
+
}
|
|
238623
239246
|
// console.time("histories");
|
|
238624
239247
|
hoEditorFactory.docTree.userHistories = [];
|
|
238625
239248
|
var histories = xx.userHistories;
|
|
@@ -238969,6 +239592,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
238969
239592
|
return SignNode/* SignNode.json2Node */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
238970
239593
|
} else if (temp.nodeType == BaseNode/* NodeType.ntGestation */.Jq.ntGestation) {
|
|
238971
239594
|
return GestationNode/* GestationNode.json2Node */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
239595
|
+
} else if (temp.nodeType == BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar) {
|
|
239596
|
+
return RareCharNode/* RareCharNode.json2Node */.Q.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
238972
239597
|
}
|
|
238973
239598
|
return undefined;
|
|
238974
239599
|
}
|
|
@@ -239237,13 +239862,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
239237
239862
|
if (this._markNodes.length > 0) {
|
|
239238
239863
|
var _loop = function _loop(_i13) {
|
|
239239
239864
|
var commentJson = comments[_i13];
|
|
239240
|
-
var endNode = _this5._markNodes[0];
|
|
239865
|
+
var endNode = new MarkNode/* MarkNode */.j(_this5._hoEditorFactoryID, _this5._markNodes[0].rootNodes, null, 5, "", 0, 2, 0);
|
|
239241
239866
|
var commentID = commentJson["id"];
|
|
239242
239867
|
_this5._markNodes.forEach(function (value) {
|
|
239243
239868
|
if (value.text === commentID) {
|
|
239244
239869
|
endNode = value;
|
|
239245
239870
|
}
|
|
239246
239871
|
});
|
|
239872
|
+
if (endNode.text == "") return "continue";
|
|
239247
239873
|
var comment = new Comment/* Comment */.s(_this5._hoEditorFactoryID, commentID, commentJson["text"], endNode);
|
|
239248
239874
|
comment.date = commentJson["date"];
|
|
239249
239875
|
comment.lineHeight = Number(commentJson["lineHeight"]);
|
|
@@ -239255,7 +239881,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
239255
239881
|
mainArea === null || mainArea === void 0 ? void 0 : mainArea.areaComments.set(comment.id, comment);
|
|
239256
239882
|
};
|
|
239257
239883
|
for (var _i13 = 0; _i13 < comments.length; _i13++) {
|
|
239258
|
-
_loop(_i13);
|
|
239884
|
+
var _ret = _loop(_i13);
|
|
239885
|
+
if (_ret === "continue") continue;
|
|
239259
239886
|
}
|
|
239260
239887
|
}
|
|
239261
239888
|
var firstNode;
|
|
@@ -239326,67 +239953,172 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
239326
239953
|
// );
|
|
239327
239954
|
// }
|
|
239328
239955
|
}
|
|
239329
|
-
|
|
239330
|
-
var
|
|
239331
|
-
if (
|
|
239332
|
-
|
|
239333
|
-
|
|
239334
|
-
|
|
239335
|
-
|
|
239336
|
-
|
|
239337
|
-
|
|
239338
|
-
|
|
239339
|
-
|
|
239340
|
-
|
|
239341
|
-
|
|
239342
|
-
|
|
239343
|
-
|
|
239344
|
-
|
|
239345
|
-
|
|
239346
|
-
|
|
239347
|
-
|
|
239348
|
-
|
|
239349
|
-
|
|
239350
|
-
|
|
239351
|
-
|
|
239352
|
-
|
|
239353
|
-
|
|
239354
|
-
|
|
239355
|
-
|
|
239356
|
-
|
|
239357
|
-
|
|
239358
|
-
|
|
239359
|
-
|
|
239360
|
-
|
|
239361
|
-
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
239362
|
-
var eindexArr = ePath.split("/");
|
|
239363
|
-
var eindex = eindexArr[eindexArr.length - 1];
|
|
239364
|
-
if (Number(adata.start) < 0 || Number(adata.start) > Number(eindex)) {
|
|
239365
|
-
message/* default.warn */.Z.warn("文本节点(" + node.text + ')的起始位置有误:' + adata.start + "。(索引" + errIndex.toString() + ")");
|
|
239366
|
-
return;
|
|
239367
|
-
}
|
|
239368
|
-
if (Number(adata.end) < 0 || Number(adata.end) > Number(eindex)) {
|
|
239369
|
-
message/* default.warn */.Z.warn("文本节点(" + node.text + ')的结束位置有误:' + adata.end + "。(索引" + errIndex.toString() + ")");
|
|
239370
|
-
return;
|
|
239956
|
+
|
|
239957
|
+
var errorsMap = hoEditorFactory.drawTree.errorsMap;
|
|
239958
|
+
if (errorsMap.size > 0) {
|
|
239959
|
+
var area = hoEditorFactory.drawPageTree.drawMainDocs[0];
|
|
239960
|
+
var docWidth = area.docWidth;
|
|
239961
|
+
var tipsWidth = 245 - 15;
|
|
239962
|
+
var container = new createjs.Container();
|
|
239963
|
+
container.x = docWidth + 15;
|
|
239964
|
+
container.y = 10;
|
|
239965
|
+
container.name = "error";
|
|
239966
|
+
var nameTextShape = null;
|
|
239967
|
+
//背景
|
|
239968
|
+
var backShape = new createjs.Shape();
|
|
239969
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').beginFill('#ffe5e5').drawRect(0, 0, tipsWidth - 20, 30 * errorsMap.size + 50);
|
|
239970
|
+
backShape.name = 'tipback';
|
|
239971
|
+
backShape.alpha = 0.5;
|
|
239972
|
+
container.addChildAt(backShape, 0);
|
|
239973
|
+
// 共几处
|
|
239974
|
+
nameTextShape = new createjs.Text("共" + errorsMap.size.toString() + "处错误:", '14px 微软雅黑 bold', '#000');
|
|
239975
|
+
nameTextShape.lineHeight = 20;
|
|
239976
|
+
nameTextShape.name = 'count';
|
|
239977
|
+
nameTextShape.x = 5;
|
|
239978
|
+
nameTextShape.y = 10;
|
|
239979
|
+
nameTextShape.alpha = 1;
|
|
239980
|
+
container.addChildAt(nameTextShape, 1);
|
|
239981
|
+
// 提示内容
|
|
239982
|
+
var _i14 = 0;
|
|
239983
|
+
errorsMap.forEach(function (error, key) {
|
|
239984
|
+
_i14++;
|
|
239985
|
+
for (var h = 0; h < error.length; h++) {
|
|
239986
|
+
if (h > 0) {
|
|
239987
|
+
_i14++;
|
|
239371
239988
|
}
|
|
239372
|
-
var
|
|
239373
|
-
var
|
|
239374
|
-
|
|
239375
|
-
var
|
|
239376
|
-
|
|
239377
|
-
|
|
239378
|
-
|
|
239379
|
-
|
|
239380
|
-
|
|
239381
|
-
|
|
239382
|
-
|
|
239383
|
-
|
|
239989
|
+
var data = error[h];
|
|
239990
|
+
var tip = data[2];
|
|
239991
|
+
var index1 = tip.indexOf("错误:");
|
|
239992
|
+
var index2 = tip.indexOf("正确:");
|
|
239993
|
+
var errortText = new createjs.Text(tip.substring(index1 + 3, index2 - 1), '12px 微软雅黑', '#F31A1A');
|
|
239994
|
+
errortText.lineWidth = tipsWidth - 25;
|
|
239995
|
+
errortText.lineHeight = 20;
|
|
239996
|
+
errortText.name = 'tip';
|
|
239997
|
+
errortText.x = 15;
|
|
239998
|
+
errortText.y = 10 + 30 * _i14;
|
|
239999
|
+
container.addChild(errortText);
|
|
240000
|
+
var rawText = new createjs.Text("-->", '12px 微软雅黑', '#666');
|
|
240001
|
+
rawText.lineWidth = tipsWidth - 25;
|
|
240002
|
+
rawText.lineHeight = 20;
|
|
240003
|
+
rawText.name = 'tip';
|
|
240004
|
+
rawText.x = errortText.x + errortText.getMeasuredWidth() + 5;
|
|
240005
|
+
rawText.y = errortText.y;
|
|
240006
|
+
container.addChild(rawText);
|
|
240007
|
+
var correctText = new createjs.Text(tip.substring(index2 + 3, tip.length), '12px 微软雅黑', '#21B41E');
|
|
240008
|
+
correctText.lineWidth = tipsWidth - 25;
|
|
240009
|
+
correctText.lineHeight = 20;
|
|
240010
|
+
correctText.name = 'tip';
|
|
240011
|
+
correctText.x = rawText.x + rawText.getMeasuredWidth() + 5;
|
|
240012
|
+
correctText.y = errortText.y;
|
|
240013
|
+
correctText.alpha = 1;
|
|
240014
|
+
container.addChild(correctText);
|
|
239384
240015
|
}
|
|
239385
|
-
}
|
|
239386
|
-
|
|
239387
|
-
|
|
239388
|
-
|
|
239389
|
-
|
|
240016
|
+
});
|
|
240017
|
+
area.addChild(container);
|
|
240018
|
+
hoEditorFactory.drawPageTree.updateDrawPage(area.index);
|
|
240019
|
+
}
|
|
240020
|
+
/*
|
|
240021
|
+
//错别字检测
|
|
240022
|
+
let errors = [];
|
|
240023
|
+
if (this._errors.length === undefined) {
|
|
240024
|
+
errors = Array(this._errors);
|
|
240025
|
+
} else {
|
|
240026
|
+
errors = this._errors;
|
|
240027
|
+
}
|
|
240028
|
+
if (errors.length > 0) {
|
|
240029
|
+
for (let m = 0; m < errors.length; m++) {
|
|
240030
|
+
const tips = [];
|
|
240031
|
+
const error = errors[m];
|
|
240032
|
+
let datas = error.data;
|
|
240033
|
+
if (datas.length == undefined) {
|
|
240034
|
+
datas = Array(datas);
|
|
240035
|
+
}
|
|
240036
|
+
for (let d = 0; d < datas.length; d++) {
|
|
240037
|
+
const data = datas[d];
|
|
240038
|
+
tips.push("错误:" + data.wrong + ",正确:" + data.correct);
|
|
240039
|
+
}
|
|
240040
|
+
hoEditorFactory.drawTree.errorsMap.set(m, tips);
|
|
240041
|
+
}
|
|
240042
|
+
//const selectRangeArr: SelectRange[] = [];
|
|
240043
|
+
for (let n = 0; n < this._errTextNodes.length; n++) {
|
|
240044
|
+
const node = this._errTextNodes[n];
|
|
240045
|
+
const drawNodes = node.drawNodes;
|
|
240046
|
+
const errIndex = this._errTextNodes[n].errorIndex as number;
|
|
240047
|
+
const error = errors[errIndex];
|
|
240048
|
+
let datass = error.data;
|
|
240049
|
+
if (datass.length == undefined) {
|
|
240050
|
+
datass = Array(datass);
|
|
240051
|
+
}
|
|
240052
|
+
for (let t = 0; t < datass.length; t++) {
|
|
240053
|
+
const adata = datass[t];
|
|
240054
|
+
const start = adata.start as number;
|
|
240055
|
+
const end = adata.end as number;
|
|
240056
|
+
for (let k = 0; k < drawNodes.length; k++) {
|
|
240057
|
+
const drawNode = drawNodes[k] as DrawTextNode;
|
|
240058
|
+
const drawMark = ((width: number) => {
|
|
240059
|
+
const h = 0.5;
|
|
240060
|
+
const line1 = new createjs.Shape();
|
|
240061
|
+
line1.graphics.clear();
|
|
240062
|
+
line1.graphics
|
|
240063
|
+
.beginStroke("#F31A1A")
|
|
240064
|
+
.moveTo(0, 1 + 2 * h)
|
|
240065
|
+
.lineTo(width + drawNode._wspace + 1, 1 + 2 * h);
|
|
240066
|
+
drawNode.addChild(line1);
|
|
240067
|
+
const line2 = new createjs.Shape();
|
|
240068
|
+
line2.graphics.clear();
|
|
240069
|
+
line2.graphics
|
|
240070
|
+
.beginStroke("#F31A1A")
|
|
240071
|
+
.moveTo(0, 8 * h)
|
|
240072
|
+
.lineTo(width + drawNode._wspace + 1, 8 * h);
|
|
240073
|
+
drawNode.addChild(line2);
|
|
240074
|
+
});
|
|
240075
|
+
const dtext = drawNode.dText as DrawText;
|
|
240076
|
+
if (start >= dtext.startIndex) {
|
|
240077
|
+
if (end <= dtext.endIndex) {
|
|
240078
|
+
drawMark(16);
|
|
240079
|
+
break;
|
|
240080
|
+
} else {
|
|
240081
|
+
//drawMark()
|
|
240082
|
+
}
|
|
240083
|
+
} else {
|
|
240084
|
+
if (end <= dtext.endIndex) {
|
|
240085
|
+
//drawMark()
|
|
240086
|
+
break;
|
|
240087
|
+
} else {
|
|
240088
|
+
//drawMark()
|
|
240089
|
+
}
|
|
240090
|
+
}
|
|
240091
|
+
}
|
|
240092
|
+
// const ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
240093
|
+
// const eindexArr = ePath.split("/");
|
|
240094
|
+
// const eindex = eindexArr[eindexArr.length - 1];
|
|
240095
|
+
// if (Number(adata.start) < 0 || Number(adata.start) > Number(eindex)) {
|
|
240096
|
+
// message.warn("文本节点(" + node.text + ')的起始位置有误:' + adata.start + "。(索引" + errIndex.toString() + ")");
|
|
240097
|
+
// return;
|
|
240098
|
+
// }
|
|
240099
|
+
// if (Number(adata.end) < 0 || Number(adata.end) > Number(eindex)) {
|
|
240100
|
+
// message.warn("文本节点(" + node.text + ')的结束位置有误:' + adata.end + "。(索引" + errIndex.toString() + ")");
|
|
240101
|
+
// return;
|
|
240102
|
+
// }
|
|
240103
|
+
// const sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
240104
|
+
// const pathArr = sPath.split("/");
|
|
240105
|
+
// pathArr[pathArr.length - 1] = adata.start;
|
|
240106
|
+
// const rsPath = pathArr.join("/");
|
|
240107
|
+
// pathArr[pathArr.length - 1] = adata.end;
|
|
240108
|
+
// const rePath = pathArr.join("/");
|
|
240109
|
+
// const pStartPoint = StagePosition.getStagePosByPath(this._hoEditorFactoryID, rsPath);
|
|
240110
|
+
// const pEndPoint = StagePosition.getStagePosByPath(this._hoEditorFactoryID, rePath);
|
|
240111
|
+
// const selectRange = new SelectRange(this._hoEditorFactoryID);
|
|
240112
|
+
// selectRange.spStart = pStartPoint;
|
|
240113
|
+
// selectRange.spEnd = pEndPoint;
|
|
240114
|
+
// selectRangeArr.push(selectRange);
|
|
240115
|
+
}
|
|
240116
|
+
}
|
|
240117
|
+
*/
|
|
240118
|
+
// if (selectRangeArr.length > 0) {
|
|
240119
|
+
// hoEditorFactory.drawTree.drawMultiMarks(selectRangeArr, true, true);
|
|
240120
|
+
// }
|
|
240121
|
+
//}
|
|
239390
240122
|
//模板加载完成后 开始加载数据集
|
|
239391
240123
|
// if (test) {
|
|
239392
240124
|
// const data =hoEditorFactory.testDataSet.getTestJsonData();
|
|
@@ -239510,16 +240242,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
239510
240242
|
jsonData[k]["operType"] = "del";
|
|
239511
240243
|
}
|
|
239512
240244
|
}
|
|
239513
|
-
for (var
|
|
239514
|
-
var rowInfo = tableNode.rowInfos[
|
|
240245
|
+
for (var _i15 = 0; _i15 < tableNode.rowInfos.length; _i15++) {
|
|
240246
|
+
var rowInfo = tableNode.rowInfos[_i15];
|
|
239515
240247
|
if (!rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
239516
240248
|
if (rowInfo.id === "0") {
|
|
239517
240249
|
//新增的行
|
|
239518
240250
|
var newRowJson = JSON.parse(JSON.stringify(jsonData[0]));
|
|
239519
240251
|
newRowJson["id"] = "0"; //新增的行 id="0"
|
|
239520
240252
|
newRowJson["isAllowEdit"] = true; //新增的行允许修改
|
|
239521
|
-
for (var j = 0; j < tableNode.rows[
|
|
239522
|
-
var cellNode = tableNode.rows[
|
|
240253
|
+
for (var j = 0; j < tableNode.rows[_i15].length; j++) {
|
|
240254
|
+
var cellNode = tableNode.rows[_i15][j];
|
|
239523
240255
|
if (cellNode) {
|
|
239524
240256
|
newRowJson[keysName[j + 2]] = cellNode.getCellText();
|
|
239525
240257
|
}
|
|
@@ -239763,7 +240495,11 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
239763
240495
|
if (i != 0) {
|
|
239764
240496
|
paragraphText += "\n";
|
|
239765
240497
|
}
|
|
239766
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.
|
|
240498
|
+
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntLabel */.Jq.ntLabel]) {
|
|
240499
|
+
paragraphText += item.text;
|
|
240500
|
+
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar]) {
|
|
240501
|
+
paragraphText += item.text;
|
|
240502
|
+
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar]) {
|
|
239767
240503
|
paragraphText += item.text;
|
|
239768
240504
|
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntField */.Jq.ntField]) {
|
|
239769
240505
|
json2text(item.childNodes.item);
|
|
@@ -240245,6 +240981,12 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
240245
240981
|
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar], function (val) {
|
|
240246
240982
|
return _this.TransText(val);
|
|
240247
240983
|
});
|
|
240984
|
+
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar], function (val) {
|
|
240985
|
+
return _this.TransText(val);
|
|
240986
|
+
});
|
|
240987
|
+
this.convert.set(BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntLabel */.Jq.ntLabel], function (val) {
|
|
240988
|
+
return _this.TransText(val);
|
|
240989
|
+
});
|
|
240248
240990
|
}
|
|
240249
240991
|
(0,esm_createClass/* default */.Z)(TOHTMLConverter, [{
|
|
240250
240992
|
key: "nextnode",
|
|
@@ -240355,7 +241097,10 @@ var TOHTMLConverter = /*#__PURE__*/function () {
|
|
|
240355
241097
|
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntText */.Jq.ntText]) {
|
|
240356
241098
|
str += jnode.text;
|
|
240357
241099
|
}
|
|
240358
|
-
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.
|
|
241100
|
+
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntLabel */.Jq.ntLabel]) {
|
|
241101
|
+
str += jnode.text;
|
|
241102
|
+
}
|
|
241103
|
+
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar]) {
|
|
240359
241104
|
str += jnode.text;
|
|
240360
241105
|
}
|
|
240361
241106
|
if (jnode.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar]) {
|
|
@@ -240591,6 +241336,8 @@ var web_url_search_params = __webpack_require__(41637);
|
|
|
240591
241336
|
var NodeChangingEvent = __webpack_require__(10574);
|
|
240592
241337
|
// EXTERNAL MODULE: ./src/plugins/pretty-data.js
|
|
240593
241338
|
var pretty_data = __webpack_require__(49049);
|
|
241339
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
241340
|
+
var SelectRange = __webpack_require__(53901);
|
|
240594
241341
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
240595
241342
|
var type = __webpack_require__(41542);
|
|
240596
241343
|
// EXTERNAL MODULE: ./src/editor/undoRedo/NodeDeleteUndoUnit.ts
|
|
@@ -240601,6 +241348,8 @@ var NodesDeleteUndoUnit = __webpack_require__(71144);
|
|
|
240601
241348
|
var NodeInsertUndoUnit = __webpack_require__(64465);
|
|
240602
241349
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MedicalExpressionNode.ts
|
|
240603
241350
|
var MedicalExpressionNode = __webpack_require__(80177);
|
|
241351
|
+
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
241352
|
+
var StagePosition = __webpack_require__(63074);
|
|
240604
241353
|
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
240605
241354
|
var commonParamList = __webpack_require__(30794);
|
|
240606
241355
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
@@ -240839,11 +241588,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
240839
241588
|
tableNode = _this$getDomRange$inS2[1];
|
|
240840
241589
|
var tableProperty = {
|
|
240841
241590
|
canAddRow: false,
|
|
241591
|
+
canAddCol: false,
|
|
240842
241592
|
canDeleteRow: false
|
|
240843
241593
|
};
|
|
240844
241594
|
if (isInTable && tableNode) {
|
|
240845
241595
|
tableProperty = {
|
|
240846
241596
|
canAddRow: tableNode.tableProperty.canAddRow,
|
|
241597
|
+
canAddCol: tableNode.tableProperty.canAddCol,
|
|
240847
241598
|
canDeleteRow: tableNode.tableProperty.canDeleteRow
|
|
240848
241599
|
};
|
|
240849
241600
|
}
|
|
@@ -241409,6 +242160,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
241409
242160
|
* 设置表格属性
|
|
241410
242161
|
* @params `prop objectValues string 参数`
|
|
241411
242162
|
* @params `canAddRow bool 用户可新增表格行(默认true)`
|
|
242163
|
+
* @params `canAddCol bool 用户可新增表格列(默认true)`
|
|
241412
242164
|
* @params `canAdjustRowHeight bool 用户可调整行高(默认true)`
|
|
241413
242165
|
* @params `canAdjustRowWidth bool 用户可调整行宽(默认true)`
|
|
241414
242166
|
* @params `canDeleteRow bool 用户可删除表格行(默认true)`
|
|
@@ -241917,14 +242669,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
241917
242669
|
*/
|
|
241918
242670
|
}, {
|
|
241919
242671
|
key: "insertBarcode",
|
|
241920
|
-
value: function insertBarcode(operType, id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
242672
|
+
value: function insertBarcode(operType, id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier) {
|
|
241921
242673
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
241922
242674
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
241923
242675
|
var startPath = _curDomRange.normalize().startPath;
|
|
241924
242676
|
var endPath = _curDomRange.normalize().endPath;
|
|
241925
242677
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertBarcode */.y.insertBarcode);
|
|
241926
242678
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
241927
|
-
hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
242679
|
+
hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier);
|
|
241928
242680
|
}
|
|
241929
242681
|
}
|
|
241930
242682
|
/**
|
|
@@ -241938,14 +242690,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
241938
242690
|
*/
|
|
241939
242691
|
}, {
|
|
241940
242692
|
key: "updateBarcode",
|
|
241941
|
-
value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
242693
|
+
value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier) {
|
|
241942
242694
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
241943
242695
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
241944
242696
|
var startPath = _curDomRange.normalize().startPath;
|
|
241945
242697
|
var endPath = _curDomRange.normalize().endPath;
|
|
241946
242698
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateBarcode */.y.updateBarcode);
|
|
241947
242699
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
241948
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
242700
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier);
|
|
241949
242701
|
}
|
|
241950
242702
|
}
|
|
241951
242703
|
/**
|
|
@@ -241967,14 +242719,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
241967
242719
|
*/
|
|
241968
242720
|
}, {
|
|
241969
242721
|
key: "insertQrcode",
|
|
241970
|
-
value: function insertQrcode(operType, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
242722
|
+
value: function insertQrcode(operType, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier) {
|
|
241971
242723
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
241972
242724
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
241973
242725
|
var startPath = _curDomRange.normalize().startPath;
|
|
241974
242726
|
var endPath = _curDomRange.normalize().endPath;
|
|
241975
242727
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertQrcode */.y.insertQrcode);
|
|
241976
242728
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
241977
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
242729
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier);
|
|
241978
242730
|
}
|
|
241979
242731
|
}
|
|
241980
242732
|
/**
|
|
@@ -241995,14 +242747,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
241995
242747
|
*/
|
|
241996
242748
|
}, {
|
|
241997
242749
|
key: "updateQrcode",
|
|
241998
|
-
value: function updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
242750
|
+
value: function updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier) {
|
|
241999
242751
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
242000
242752
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
242001
242753
|
var startPath = _curDomRange.normalize().startPath;
|
|
242002
242754
|
var endPath = _curDomRange.normalize().endPath;
|
|
242003
242755
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateQrcode */.y.updateQrcode);
|
|
242004
242756
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
242005
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
242757
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier);
|
|
242006
242758
|
}
|
|
242007
242759
|
}
|
|
242008
242760
|
/**
|
|
@@ -242230,6 +242982,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
242230
242982
|
}
|
|
242231
242983
|
}
|
|
242232
242984
|
}
|
|
242985
|
+
/**
|
|
242986
|
+
* 插入特殊符号
|
|
242987
|
+
* @param operType 操作类型 "add"新增
|
|
242988
|
+
* @param chars 字符
|
|
242989
|
+
*/
|
|
242990
|
+
}, {
|
|
242991
|
+
key: "insertRareChar",
|
|
242992
|
+
value: function insertRareChar(operType, chars) {
|
|
242993
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
242994
|
+
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
242995
|
+
if (result) {
|
|
242996
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
242997
|
+
var startPath = _curDomRange.normalize().startPath;
|
|
242998
|
+
var endPath = _curDomRange.normalize().endPath;
|
|
242999
|
+
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRareChar */.y.insertRareChar);
|
|
243000
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
243001
|
+
hoEditorFactory.docController.insertRareChar(operType, _curDomRange, chars, hoEditorFactory.docTree.curStyleIndex);
|
|
243002
|
+
}
|
|
243003
|
+
}
|
|
243004
|
+
}
|
|
242233
243005
|
/**
|
|
242234
243006
|
* 打开文件
|
|
242235
243007
|
* @param file 文件
|
|
@@ -242532,14 +243304,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
242532
243304
|
*/
|
|
242533
243305
|
}, {
|
|
242534
243306
|
key: "editComment",
|
|
242535
|
-
value: function editComment(commentID, text) {
|
|
243307
|
+
value: function editComment(commentID, text, source) {
|
|
242536
243308
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
242537
243309
|
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
242538
243310
|
var startPath = _curDomRange.normalize().startPath;
|
|
242539
243311
|
var endPath = _curDomRange.normalize().endPath;
|
|
242540
243312
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daUpdate */.gk.daUpdate, startPath, endPath, NodeChangingEvent/* OperType.editComment */.y.editComment);
|
|
242541
243313
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
242542
|
-
hoEditorFactory.docController.editComment(commentID, text);
|
|
243314
|
+
hoEditorFactory.docController.editComment(commentID, text, source);
|
|
242543
243315
|
}
|
|
242544
243316
|
}
|
|
242545
243317
|
// /**
|
|
@@ -242848,9 +243620,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
242848
243620
|
if (npStart && npStart.node) {
|
|
242849
243621
|
hoEditorFactory.docTree.curDomRange.setSamePath(curDomRange.startPath);
|
|
242850
243622
|
var nodes = [];
|
|
242851
|
-
var lines = text.split(
|
|
243623
|
+
var lines = text.split('\n');
|
|
242852
243624
|
for (var i = 0; i < lines.length; i++) {
|
|
242853
|
-
if (lines[i] !=
|
|
243625
|
+
if (lines[i] != '') {
|
|
242854
243626
|
var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, npStart.roots, npStart.node.parentNode, BaseNode/* NodeType.ntText */.Jq.ntText, lines[i], hoEditorFactory.docTree.curStyleIndex);
|
|
242855
243627
|
nodes.push(textNode);
|
|
242856
243628
|
if (i < lines.length - 1) {
|
|
@@ -243328,14 +244100,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243328
244100
|
parentNode.canModifyContent = true;
|
|
243329
244101
|
}
|
|
243330
244102
|
_context.next = 26;
|
|
243331
|
-
return hoEditorFactory.docController.deleteRange(range, true,
|
|
244103
|
+
return hoEditorFactory.docController.deleteRange(range, true, 'update');
|
|
243332
244104
|
case 26:
|
|
243333
244105
|
parentNode.canModifyContent = canModifyContent;
|
|
243334
244106
|
hoEditorFactory.docTree.curDomRange.setSamePath(spath);
|
|
243335
244107
|
case 28:
|
|
243336
244108
|
parentNode.text = strHtml;
|
|
243337
|
-
parentNode.value = parentNode.value ? parentNode.value +
|
|
243338
|
-
parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue +
|
|
244109
|
+
parentNode.value = parentNode.value ? parentNode.value + ',' + value : value;
|
|
244110
|
+
parentNode.keyValue = parentNode.keyValue ? parentNode.keyValue + ',' + keyValue : keyValue;
|
|
243339
244111
|
arr = [].concat((0,esm_toConsumableArray/* default */.Z)(arr), (0,esm_toConsumableArray/* default */.Z)(listItems));
|
|
243340
244112
|
parentNode.downListProperty.listItems = JSON.stringify(arr);
|
|
243341
244113
|
if (nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
@@ -243759,6 +244531,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243759
244531
|
getDetailStyle = function getDetailStyle(style, defaultFontStyle) {
|
|
243760
244532
|
var textStyleStr = JSON.stringify(defaultFontStyle);
|
|
243761
244533
|
var textStyle = JSON.parse(textStyleStr);
|
|
244534
|
+
if (!style) return textStyle;
|
|
243762
244535
|
if (typeof style['size'] !== 'undefined' && style['size'] !== defaultFontStyle.size.toString()) {
|
|
243763
244536
|
textStyle['size'] = style['size'];
|
|
243764
244537
|
}
|
|
@@ -243933,7 +244706,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243933
244706
|
var fontStyleMap = new Map();
|
|
243934
244707
|
var paraStyleMap = new Map();
|
|
243935
244708
|
var xmlobj = hoEditorFactory.structureConvert.xml2Object(list[i][1]);
|
|
243936
|
-
var fontStyle = xmlobj.styles.fontStyle;
|
|
244709
|
+
var fontStyle = xmlobj.styles.fontStyle ? xmlobj.styles.fontStyle : xmlobj.styles.font;
|
|
243937
244710
|
var defaultFontStyle = xmlobj.styles.defaultFont;
|
|
243938
244711
|
var strDefaultFont = JSON.stringify(defaultFontStyle);
|
|
243939
244712
|
var index1 = arrFontString.indexOf(strDefaultFont);
|
|
@@ -243945,7 +244718,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243945
244718
|
fontStyleMap.set(0, arrFontString.length - 1);
|
|
243946
244719
|
}
|
|
243947
244720
|
var jobjFontStyle = [];
|
|
243948
|
-
if (fontStyle != '') {
|
|
244721
|
+
if (fontStyle != '' && fontStyle != undefined) {
|
|
243949
244722
|
if (!Array.isArray(fontStyle)) {
|
|
243950
244723
|
jobjFontStyle = [fontStyle];
|
|
243951
244724
|
} else {
|
|
@@ -243968,7 +244741,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243968
244741
|
}
|
|
243969
244742
|
}
|
|
243970
244743
|
}
|
|
243971
|
-
var paraStyle = xmlobj.styles.paraStyle;
|
|
244744
|
+
var paraStyle = xmlobj.styles.paraStyle ? xmlobj.styles.paraStyle : xmlobj.styles.para;
|
|
243972
244745
|
// const defaultPara={align:(xmlobj as any).styles.defaultPara.align,lineSpace:(xmlobj as any).styles.defaultPara.lineSpace}
|
|
243973
244746
|
var defaultParaStyle = xmlobj.styles.defaultPara;
|
|
243974
244747
|
var strDefaultPara = JSON.stringify(defaultParaStyle);
|
|
@@ -243983,6 +244756,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243983
244756
|
var getParaDetailStyle = function getParaDetailStyle(style) {
|
|
243984
244757
|
var paraStyleStr = JSON.stringify(defaultParaStyle);
|
|
243985
244758
|
var paraStyle = JSON.parse(paraStyleStr);
|
|
244759
|
+
if (!style) return paraStyle;
|
|
243986
244760
|
if (typeof style['charSpace'] !== 'undefined' && style['charSpace'] !== defaultParaStyle.charSpace.toString()) {
|
|
243987
244761
|
paraStyle['charSpace'] = style['charSpace'];
|
|
243988
244762
|
}
|
|
@@ -243995,7 +244769,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243995
244769
|
return paraStyle;
|
|
243996
244770
|
};
|
|
243997
244771
|
var jobjParaStyle = [];
|
|
243998
|
-
if (paraStyle != '') {
|
|
244772
|
+
if (paraStyle != '' && paraStyle != undefined) {
|
|
243999
244773
|
if (paraStyle && !Array.isArray(paraStyle)) {
|
|
244000
244774
|
jobjParaStyle = [paraStyle];
|
|
244001
244775
|
} else {
|
|
@@ -244700,9 +245474,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
244700
245474
|
*/
|
|
244701
245475
|
}, {
|
|
244702
245476
|
key: "updateSignNode",
|
|
244703
|
-
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc) {
|
|
245477
|
+
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, otherProperties) {
|
|
244704
245478
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
244705
|
-
hoEditorFactory.docController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc);
|
|
245479
|
+
hoEditorFactory.docController.updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, undefined, otherProperties);
|
|
244706
245480
|
}
|
|
244707
245481
|
/**
|
|
244708
245482
|
* 修改空签名
|
|
@@ -245884,16 +246658,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245884
246658
|
if (text.length < 20) {
|
|
245885
246659
|
getText();
|
|
245886
246660
|
}
|
|
245887
|
-
if (textFieldName.replace(/\s*/g,
|
|
245888
|
-
textFieldName +=
|
|
246661
|
+
if (textFieldName.replace(/\s*/g, '')) {
|
|
246662
|
+
textFieldName += ':';
|
|
245889
246663
|
}
|
|
245890
246664
|
if (text.length >= 20) {
|
|
245891
246665
|
text = text.slice(text.length - 20, text.length);
|
|
245892
|
-
hoEditorFactory.aiTextFunc(text.replace(/\s*/g,
|
|
246666
|
+
hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
|
|
245893
246667
|
} else if (text.length > 0) {
|
|
245894
|
-
hoEditorFactory.aiTextFunc(text.replace(/\s*/g,
|
|
245895
|
-
} else if (text.length === 0 && textFieldName.replace(/\s*/g,
|
|
245896
|
-
hoEditorFactory.aiTextFunc(textFieldName.replace(/\s*/g,
|
|
246668
|
+
hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
|
|
246669
|
+
} else if (text.length === 0 && textFieldName.replace(/\s*/g, '')) {
|
|
246670
|
+
hoEditorFactory.aiTextFunc(textFieldName.replace(/\s*/g, ''), callback);
|
|
245897
246671
|
}
|
|
245898
246672
|
}
|
|
245899
246673
|
}
|
|
@@ -245991,8 +246765,48 @@ var VueController = /*#__PURE__*/function () {
|
|
|
245991
246765
|
}, {
|
|
245992
246766
|
key: "destoryEditor",
|
|
245993
246767
|
value: function destoryEditor() {
|
|
246768
|
+
this.newFile('caseHistory');
|
|
245994
246769
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245995
|
-
hoEditorFactory.
|
|
246770
|
+
if (hoEditorFactory._docTree) {
|
|
246771
|
+
hoEditorFactory._docTree.clearDocTree();
|
|
246772
|
+
delete hoEditorFactory._docTree;
|
|
246773
|
+
}
|
|
246774
|
+
delete hoEditorFactory._subDocManger;
|
|
246775
|
+
delete hoEditorFactory._drawPageTree;
|
|
246776
|
+
delete hoEditorFactory._vueController;
|
|
246777
|
+
delete hoEditorFactory._docController;
|
|
246778
|
+
delete hoEditorFactory._pageProperty;
|
|
246779
|
+
delete hoEditorFactory._undoService;
|
|
246780
|
+
delete hoEditorFactory._printStatus;
|
|
246781
|
+
delete hoEditorFactory._timeStamp;
|
|
246782
|
+
delete hoEditorFactory._gernerateCode;
|
|
246783
|
+
delete hoEditorFactory._htmlConverter;
|
|
246784
|
+
delete hoEditorFactory._structureConvert;
|
|
246785
|
+
delete hoEditorFactory._structureNode;
|
|
246786
|
+
delete hoEditorFactory._toHtmlConverter;
|
|
246787
|
+
delete hoEditorFactory._unitConvert;
|
|
246788
|
+
delete hoEditorFactory._nodeMouseMove;
|
|
246789
|
+
delete hoEditorFactory._testDataSet;
|
|
246790
|
+
delete hoEditorFactory._userInfo;
|
|
246791
|
+
delete hoEditorFactory._option;
|
|
246792
|
+
delete hoEditorFactory._baseController;
|
|
246793
|
+
delete hoEditorFactory._domController;
|
|
246794
|
+
delete hoEditorFactory._editController;
|
|
246795
|
+
delete hoEditorFactory._elementController;
|
|
246796
|
+
delete hoEditorFactory._nodeController;
|
|
246797
|
+
delete hoEditorFactory._printController;
|
|
246798
|
+
delete hoEditorFactory._reviewController;
|
|
246799
|
+
delete hoEditorFactory._selectController;
|
|
246800
|
+
delete hoEditorFactory._tableController;
|
|
246801
|
+
delete hoEditorFactory._formatPainter;
|
|
246802
|
+
delete hoEditorFactory._hoLocalStorage;
|
|
246803
|
+
if (hoEditorFactory._drawTree) {
|
|
246804
|
+
hoEditorFactory._drawTree.drawPages[0].destory();
|
|
246805
|
+
hoEditorFactory._drawTree.drawPageCount.count = 0;
|
|
246806
|
+
hoEditorFactory._drawTree.drawPages.splice(0, hoEditorFactory._drawTree.drawPages.length);
|
|
246807
|
+
delete hoEditorFactory._drawTree;
|
|
246808
|
+
}
|
|
246809
|
+
// hoEditorFactory.clear();
|
|
245996
246810
|
hoEditorFactory = null;
|
|
245997
246811
|
}
|
|
245998
246812
|
/**
|
|
@@ -246399,6 +247213,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246399
247213
|
};
|
|
246400
247214
|
var tableProperty = {
|
|
246401
247215
|
canAddRow: node.tableProperty.canAddRow,
|
|
247216
|
+
canAddCol: node.tableProperty.canAddCol,
|
|
246402
247217
|
canAdjustRowHeight: node.tableProperty.canAdjustRowHeight,
|
|
246403
247218
|
canAdjustRowWidth: node.tableProperty.canAdjustRowWidth,
|
|
246404
247219
|
canDeleteRow: node.tableProperty.canDeleteRow,
|
|
@@ -246802,11 +247617,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246802
247617
|
}
|
|
246803
247618
|
}
|
|
246804
247619
|
};
|
|
246805
|
-
if (operType ==
|
|
247620
|
+
if (operType == 'add') {
|
|
246806
247621
|
table.insertRows(table.rowCount, 1, table.rowCount - 1);
|
|
246807
247622
|
backfill(table.rowCount - 1);
|
|
246808
247623
|
}
|
|
246809
|
-
if (operType ==
|
|
247624
|
+
if (operType == 'update') {
|
|
246810
247625
|
if (rowIndex < 0) return;
|
|
246811
247626
|
backfill(rowIndex);
|
|
246812
247627
|
}
|
|
@@ -246976,20 +247791,95 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246976
247791
|
var aNode = startNode;
|
|
246977
247792
|
var mark = true;
|
|
246978
247793
|
do {
|
|
246979
|
-
if (!(aNode instanceof MarkNode/* MarkNode */.j && aNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && aNode.parentNode.text ==
|
|
247794
|
+
if (!(aNode instanceof MarkNode/* MarkNode */.j && aNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && aNode.parentNode.text == '' || aNode instanceof DateTimeNode/* DateTimeNode */.Z && (aNode.text == '' || aNode.text == aNode.name) || aNode instanceof DownListNode/* DownListNode */.yF && (aNode.text == '' || aNode.text == aNode.name) || aNode instanceof SignNode/* SignNode */.N && aNode.number == 0 || aNode instanceof TextNode/* TextNode */.R && aNode.text.replace(' ', '') == '' || aNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
246980
247795
|
mark = false;
|
|
246981
247796
|
break;
|
|
246982
247797
|
}
|
|
246983
247798
|
aNode = aNode.nextLeaf();
|
|
246984
247799
|
} while (aNode && aNode != endNode);
|
|
246985
247800
|
if (mark) {
|
|
246986
|
-
if (!(endNode instanceof MarkNode/* MarkNode */.j && endNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && endNode.parentNode.text ==
|
|
247801
|
+
if (!(endNode instanceof MarkNode/* MarkNode */.j && endNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && endNode.parentNode.text == '' || endNode instanceof DateTimeNode/* DateTimeNode */.Z && (endNode.text == '' || endNode.text == endNode.name) || endNode instanceof DownListNode/* DownListNode */.yF && (endNode.text == '' || endNode.text == endNode.name) || endNode instanceof SignNode/* SignNode */.N && endNode.number == 0 || endNode instanceof TextNode/* TextNode */.R && endNode.text.replace(' ', '') == '' || endNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
246987
247802
|
return false;
|
|
246988
247803
|
}
|
|
246989
247804
|
return true;
|
|
246990
247805
|
}
|
|
246991
247806
|
return result;
|
|
246992
247807
|
}
|
|
247808
|
+
}, {
|
|
247809
|
+
key: "updateAllCodeElements",
|
|
247810
|
+
value: function updateAllCodeElements(element) {
|
|
247811
|
+
var _this7 = this;
|
|
247812
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
247813
|
+
var ret = [];
|
|
247814
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
247815
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
247816
|
+
var node = nodes[i];
|
|
247817
|
+
if (node instanceof QrcodeNode/* QrcodeNode */.d) {
|
|
247818
|
+
ret.push(node);
|
|
247819
|
+
}
|
|
247820
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
247821
|
+
getAllNodes(node.childNodes);
|
|
247822
|
+
}
|
|
247823
|
+
}
|
|
247824
|
+
};
|
|
247825
|
+
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
247826
|
+
for (var h = 0; h < headerDocTree.length; h++) {
|
|
247827
|
+
if (!headerDocTree[h]) continue;
|
|
247828
|
+
getAllNodes(headerDocTree[h].subDocNodes);
|
|
247829
|
+
}
|
|
247830
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
247831
|
+
getAllNodes(mainNodes);
|
|
247832
|
+
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
247833
|
+
for (var f = 0; f < footerDocTree.length; f++) {
|
|
247834
|
+
if (!footerDocTree[f]) continue;
|
|
247835
|
+
getAllNodes(footerDocTree[f].subDocNodes);
|
|
247836
|
+
}
|
|
247837
|
+
if (ret.length > 0) {
|
|
247838
|
+
ret.forEach(function (v) {
|
|
247839
|
+
if (v.name === element.name) {
|
|
247840
|
+
_this7.updateCodeContent(v, element.content);
|
|
247841
|
+
}
|
|
247842
|
+
});
|
|
247843
|
+
this.rebuildAll(false);
|
|
247844
|
+
}
|
|
247845
|
+
}
|
|
247846
|
+
}, {
|
|
247847
|
+
key: "getAllCodeElements",
|
|
247848
|
+
value: function getAllCodeElements() {
|
|
247849
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
247850
|
+
var ret = [];
|
|
247851
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
247852
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
247853
|
+
var node = nodes[i];
|
|
247854
|
+
if (node instanceof QrcodeNode/* QrcodeNode */.d) {
|
|
247855
|
+
ret.push(node);
|
|
247856
|
+
}
|
|
247857
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
247858
|
+
getAllNodes(node.childNodes);
|
|
247859
|
+
}
|
|
247860
|
+
}
|
|
247861
|
+
};
|
|
247862
|
+
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
247863
|
+
for (var h = 0; h < headerDocTree.length; h++) {
|
|
247864
|
+
if (!headerDocTree[h]) continue;
|
|
247865
|
+
getAllNodes(headerDocTree[h].subDocNodes);
|
|
247866
|
+
}
|
|
247867
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
247868
|
+
getAllNodes(mainNodes);
|
|
247869
|
+
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
247870
|
+
for (var f = 0; f < footerDocTree.length; f++) {
|
|
247871
|
+
if (!footerDocTree[f]) continue;
|
|
247872
|
+
getAllNodes(footerDocTree[f].subDocNodes);
|
|
247873
|
+
}
|
|
247874
|
+
return ret;
|
|
247875
|
+
}
|
|
247876
|
+
//更新二维码
|
|
247877
|
+
}, {
|
|
247878
|
+
key: "updateCodeContent",
|
|
247879
|
+
value: function updateCodeContent(node, content) {
|
|
247880
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
247881
|
+
hoEditorFactory.docController.updateCodeContent(node, content);
|
|
247882
|
+
}
|
|
246993
247883
|
}]);
|
|
246994
247884
|
return VueController;
|
|
246995
247885
|
}();
|
|
@@ -247594,6 +248484,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
247594
248484
|
|
|
247595
248485
|
|
|
247596
248486
|
|
|
248487
|
+
|
|
247597
248488
|
|
|
247598
248489
|
|
|
247599
248490
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -247928,6 +248819,8 @@ var EditController = /*#__PURE__*/function () {
|
|
|
247928
248819
|
var jsonObject = JSON.parse(jsonData);
|
|
247929
248820
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
247930
248821
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
248822
|
+
} else if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntRareChar") {
|
|
248823
|
+
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
247931
248824
|
} else {
|
|
247932
248825
|
if (htmlData) {
|
|
247933
248826
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
@@ -247950,6 +248843,45 @@ var EditController = /*#__PURE__*/function () {
|
|
|
247950
248843
|
} else {
|
|
247951
248844
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
247952
248845
|
}
|
|
248846
|
+
if (hoeditorfactory.limitCharNumber > 0 && hoeditorfactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
248847
|
+
var str = "";
|
|
248848
|
+
var warn = function warn() {
|
|
248849
|
+
if (str.length > hoeditorfactory.limitCharNumber) {
|
|
248850
|
+
message/* default.warn */.Z.warn("根据书写规范要求,复制文本已超过限定字符数(" + hoeditorfactory.limitCharNumber.toString() + "),不允许粘贴至其它病历。");
|
|
248851
|
+
return true;
|
|
248852
|
+
} else {
|
|
248853
|
+
return false;
|
|
248854
|
+
}
|
|
248855
|
+
};
|
|
248856
|
+
for (var m = 0; m < nodes.length; m++) {
|
|
248857
|
+
var node = nodes[m];
|
|
248858
|
+
if (node instanceof TextNode/* TextNode */.R || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
248859
|
+
var text = node.text.replace(" ", "");
|
|
248860
|
+
str += text;
|
|
248861
|
+
if (warn()) {
|
|
248862
|
+
return;
|
|
248863
|
+
}
|
|
248864
|
+
}
|
|
248865
|
+
if (node instanceof ControlNode/* ControlNode */.w) {
|
|
248866
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
248867
|
+
var _text = node.getDateTimeText().replace(" ", "");
|
|
248868
|
+
str += _text;
|
|
248869
|
+
if (warn()) {
|
|
248870
|
+
return;
|
|
248871
|
+
}
|
|
248872
|
+
} else {
|
|
248873
|
+
var _text2 = node.text.replace(" ", "");
|
|
248874
|
+
str += _text2;
|
|
248875
|
+
if (warn()) {
|
|
248876
|
+
return;
|
|
248877
|
+
}
|
|
248878
|
+
}
|
|
248879
|
+
}
|
|
248880
|
+
}
|
|
248881
|
+
if (warn()) {
|
|
248882
|
+
return;
|
|
248883
|
+
}
|
|
248884
|
+
}
|
|
247953
248885
|
if (nodes.length === 1 && nodes[0] instanceof TableNode/* TableNode */.Fh && parentNode instanceof CellNode/* CellNode */.D) {
|
|
247954
248886
|
var tableNode = nodes[0];
|
|
247955
248887
|
var _parentNode$table$get = parentNode.table.getCellInfos(parentNode),
|
|
@@ -247992,20 +248924,20 @@ var EditController = /*#__PURE__*/function () {
|
|
|
247992
248924
|
}
|
|
247993
248925
|
if (!hoeditorfactory.pasteBase) {
|
|
247994
248926
|
for (var n = 0; n < nodes.length; n++) {
|
|
247995
|
-
var
|
|
247996
|
-
if (
|
|
247997
|
-
var style = hoeditorfactory.docTree.styles[
|
|
248927
|
+
var _node = nodes[n];
|
|
248928
|
+
if (_node instanceof ParagraphNode/* ParagraphNode */.C || _node instanceof TextNode/* TextNode */.R || _node instanceof MarkNode/* MarkNode */.j || _node instanceof ControlNode/* ControlNode */.w) {
|
|
248929
|
+
var style = hoeditorfactory.docTree.styles[_node.styleIndex];
|
|
247998
248930
|
if (style.combineStyle.script != 0) {
|
|
247999
248931
|
var newStyle = hoeditorfactory.docTree.styles[hoeditorfactory.docTree.curStyleIndex].clone();
|
|
248000
248932
|
newStyle.script = style.combineStyle.script;
|
|
248001
248933
|
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
248002
|
-
|
|
248934
|
+
_node.styleIndex = newStyleIndex;
|
|
248003
248935
|
} else {
|
|
248004
|
-
|
|
248936
|
+
_node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
248005
248937
|
}
|
|
248006
248938
|
}
|
|
248007
|
-
if (
|
|
248008
|
-
|
|
248939
|
+
if (_node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
248940
|
+
_node.paraNo = hoeditorfactory.docTree.curParaNo;
|
|
248009
248941
|
}
|
|
248010
248942
|
}
|
|
248011
248943
|
}
|
|
@@ -248055,7 +248987,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
248055
248987
|
/*
|
|
248056
248988
|
* @Author: your name
|
|
248057
248989
|
* @Date: 2021-07-31 10:10:30
|
|
248058
|
-
* @LastEditTime:
|
|
248990
|
+
* @LastEditTime: 2023-03-09 18:32:32
|
|
248059
248991
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
248060
248992
|
* @Description: In User Settings Edit
|
|
248061
248993
|
* @FilePath: \hoeditor-web\src\editor\externalCall\NodeController.ts
|
|
@@ -248368,9 +249300,9 @@ var NodeController = /*#__PURE__*/function () {
|
|
|
248368
249300
|
*/
|
|
248369
249301
|
}, {
|
|
248370
249302
|
key: "insertBarcode",
|
|
248371
|
-
value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
249303
|
+
value: function insertBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier) {
|
|
248372
249304
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248373
|
-
hoEditorFactory.vueController.insertBarcode("add", id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
249305
|
+
hoEditorFactory.vueController.insertBarcode("add", id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier);
|
|
248374
249306
|
}
|
|
248375
249307
|
/**
|
|
248376
249308
|
* 修改条形码
|
|
@@ -248383,9 +249315,9 @@ var NodeController = /*#__PURE__*/function () {
|
|
|
248383
249315
|
*/
|
|
248384
249316
|
}, {
|
|
248385
249317
|
key: "updateBarcode",
|
|
248386
|
-
value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
249318
|
+
value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier) {
|
|
248387
249319
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248388
|
-
hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
249320
|
+
hoEditorFactory.vueController.updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource, name, innerIdentifier);
|
|
248389
249321
|
}
|
|
248390
249322
|
/**
|
|
248391
249323
|
* 插入二维码
|
|
@@ -248405,9 +249337,9 @@ var NodeController = /*#__PURE__*/function () {
|
|
|
248405
249337
|
*/
|
|
248406
249338
|
}, {
|
|
248407
249339
|
key: "insertQrcode",
|
|
248408
|
-
value: function insertQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
249340
|
+
value: function insertQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier) {
|
|
248409
249341
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248410
|
-
hoEditorFactory.vueController.insertQrcode("add", id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
249342
|
+
hoEditorFactory.vueController.insertQrcode("add", id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier);
|
|
248411
249343
|
}
|
|
248412
249344
|
/**
|
|
248413
249345
|
* 修改二维码
|
|
@@ -248427,9 +249359,9 @@ var NodeController = /*#__PURE__*/function () {
|
|
|
248427
249359
|
*/
|
|
248428
249360
|
}, {
|
|
248429
249361
|
key: "updateQrcode",
|
|
248430
|
-
value: function updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
249362
|
+
value: function updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier) {
|
|
248431
249363
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248432
|
-
hoEditorFactory.vueController.updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
249364
|
+
hoEditorFactory.vueController.updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height, name, innerIdentifier);
|
|
248433
249365
|
}
|
|
248434
249366
|
/**
|
|
248435
249367
|
* 插入单、复选框控件
|
|
@@ -248584,6 +249516,16 @@ var NodeController = /*#__PURE__*/function () {
|
|
|
248584
249516
|
hoEditorFactory.vueController.insertSpecialChars("add", chars);
|
|
248585
249517
|
}
|
|
248586
249518
|
/**
|
|
249519
|
+
* 插入生僻字
|
|
249520
|
+
* @param chars 字符
|
|
249521
|
+
*/
|
|
249522
|
+
}, {
|
|
249523
|
+
key: "insertRareChar",
|
|
249524
|
+
value: function insertRareChar(chars) {
|
|
249525
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
249526
|
+
hoEditorFactory.vueController.insertRareChar("add", chars);
|
|
249527
|
+
}
|
|
249528
|
+
/**
|
|
248587
249529
|
* 插入页码 页数
|
|
248588
249530
|
* @param operType 操作类型 "add"新增
|
|
248589
249531
|
* @param contentType 内容类型:0 页码;1 页数
|
|
@@ -251292,6 +252234,7 @@ var TableController = /*#__PURE__*/function () {
|
|
|
251292
252234
|
* 设置表格属性
|
|
251293
252235
|
* @params `prop objectValues string 参数`
|
|
251294
252236
|
* @params `canAddRow bool 用户可新增表格行(默认true)`
|
|
252237
|
+
* @params `canAddCol bool 用户可新增表格列(默认true)`
|
|
251295
252238
|
* @params `canAdjustRowHeight bool 用户可调整行高(默认true)`
|
|
251296
252239
|
* @params `canAdjustRowWidth bool 用户可调整行宽(默认true)`
|
|
251297
252240
|
* @params `canDeleteRow bool 用户可删除表格行(默认true)`
|
|
@@ -251945,6 +252888,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
251945
252888
|
(0,esm_defineProperty/* default */.Z)(this, "_fontSizeMap", new Map());
|
|
251946
252889
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowEditInReview", false);
|
|
251947
252890
|
(0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
|
|
252891
|
+
(0,esm_defineProperty/* default */.Z)(this, "_limitCharNumber", 0);
|
|
251948
252892
|
this._hoEditorFactoryId = id;
|
|
251949
252893
|
}
|
|
251950
252894
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
@@ -251980,7 +252924,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
251980
252924
|
//不允许跨病人粘贴
|
|
251981
252925
|
|
|
251982
252926
|
//审阅模式下不允许修改(质控医生站的病历只可进行批注不可修改)
|
|
251983
|
-
|
|
252927
|
+
// 封装浏览器静默打印
|
|
252928
|
+
// 限制复制病历文本的字符数
|
|
251984
252929
|
/**
|
|
251985
252930
|
* Getter hoLocalStorage
|
|
251986
252931
|
* @return {HoLocalStorage}
|
|
@@ -252491,6 +253436,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
252491
253436
|
this._notAllowEditInReview = value;
|
|
252492
253437
|
}
|
|
252493
253438
|
}
|
|
253439
|
+
}, {
|
|
253440
|
+
key: "limitCharNumber",
|
|
253441
|
+
get: function get() {
|
|
253442
|
+
return this._limitCharNumber;
|
|
253443
|
+
},
|
|
253444
|
+
set: function set(value) {
|
|
253445
|
+
if (this._limitCharNumber !== value) {
|
|
253446
|
+
this._limitCharNumber = value;
|
|
253447
|
+
}
|
|
253448
|
+
}
|
|
252494
253449
|
}, {
|
|
252495
253450
|
key: "isHideComments",
|
|
252496
253451
|
get: function get() {
|
|
@@ -253835,8 +254790,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
253835
254790
|
)
|
|
253836
254791
|
|
|
253837
254792
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
253838
|
-
;// 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/toolbar/ToolBar.vue?vue&type=template&id=
|
|
253839
|
-
var
|
|
254793
|
+
;// 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/toolbar/ToolBar.vue?vue&type=template&id=5fad512a&
|
|
254794
|
+
var ToolBarvue_type_template_id_5fad512a_render = function render() {
|
|
253840
254795
|
var _vm = this,
|
|
253841
254796
|
_c = _vm._self._c;
|
|
253842
254797
|
return _c('div', {
|
|
@@ -254069,7 +255024,7 @@ var ToolBarvue_type_template_id_1b91c900_render = function render() {
|
|
|
254069
255024
|
}, [_vm._v(_vm._s(item.title))]);
|
|
254070
255025
|
}), 1)], 1) : _vm._e()], 1);
|
|
254071
255026
|
};
|
|
254072
|
-
var
|
|
255027
|
+
var ToolBarvue_type_template_id_5fad512a_staticRenderFns = [];
|
|
254073
255028
|
|
|
254074
255029
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
254075
255030
|
var es_array_map = __webpack_require__(21249);
|
|
@@ -256742,8 +257697,8 @@ var ToolBarChild_component = (0,componentNormalizer/* default */.Z)(
|
|
|
256742
257697
|
)
|
|
256743
257698
|
|
|
256744
257699
|
/* harmony default export */ var ToolBarChild = (ToolBarChild_component.exports);
|
|
256745
|
-
;// 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/toolbar/insert/ToolControl.vue?vue&type=template&id=
|
|
256746
|
-
var
|
|
257700
|
+
;// 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/toolbar/insert/ToolControl.vue?vue&type=template&id=3e4a753a&
|
|
257701
|
+
var ToolControlvue_type_template_id_3e4a753a_render = function render() {
|
|
256747
257702
|
var _vm = this,
|
|
256748
257703
|
_c = _vm._self._c;
|
|
256749
257704
|
return _c('div', {
|
|
@@ -256995,6 +257950,11 @@ var ToolControlvue_type_template_id_e14d90f2_render = function render() {
|
|
|
256995
257950
|
"d": "M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"
|
|
256996
257951
|
}
|
|
256997
257952
|
})]), _c('span', [_vm._v("复选框")])]) : _vm._e(), _vm.insert.gestation ? _c('div', {
|
|
257953
|
+
staticClass: "ho-emr-tool-item",
|
|
257954
|
+
on: {
|
|
257955
|
+
"click": _vm.createRarewords
|
|
257956
|
+
}
|
|
257957
|
+
}, [_c('span', [_vm._v("特殊字")])]) : _vm._e(), _vm.insert.gestation ? _c('div', {
|
|
256998
257958
|
staticClass: "ho-emr-tool-item",
|
|
256999
257959
|
on: {
|
|
257000
257960
|
"click": function click($event) {
|
|
@@ -257035,7 +257995,7 @@ var ToolControlvue_type_template_id_e14d90f2_render = function render() {
|
|
|
257035
257995
|
}
|
|
257036
257996
|
})], 1) : _vm._e()], 2);
|
|
257037
257997
|
};
|
|
257038
|
-
var
|
|
257998
|
+
var ToolControlvue_type_template_id_3e4a753a_staticRenderFns = [];
|
|
257039
257999
|
|
|
257040
258000
|
;// 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/toolbar/insert/HoSpecialChars.vue?vue&type=template&id=4431c0bf&
|
|
257041
258001
|
var HoSpecialCharsvue_type_template_id_4431c0bf_render = function render() {
|
|
@@ -257631,6 +258591,13 @@ var ajax = __webpack_require__(79969);
|
|
|
257631
258591
|
HoDateTime: HoDateTime,
|
|
257632
258592
|
Poper: popers/* default */.Z
|
|
257633
258593
|
},
|
|
258594
|
+
inject: {
|
|
258595
|
+
hoEditorProvider: {
|
|
258596
|
+
default: function _default() {
|
|
258597
|
+
return {};
|
|
258598
|
+
}
|
|
258599
|
+
}
|
|
258600
|
+
},
|
|
257634
258601
|
props: {
|
|
257635
258602
|
vueController: {},
|
|
257636
258603
|
insert: {},
|
|
@@ -257734,6 +258701,11 @@ var ajax = __webpack_require__(79969);
|
|
|
257734
258701
|
// createHoFormula() {
|
|
257735
258702
|
// $HoFormula.open({});
|
|
257736
258703
|
// },
|
|
258704
|
+
createRarewords: function createRarewords() {
|
|
258705
|
+
this.closeControlModal();
|
|
258706
|
+
// const $Rarewords = require("@/components/common/rarewords").default;
|
|
258707
|
+
this.$Rarewords.open();
|
|
258708
|
+
},
|
|
257737
258709
|
/**
|
|
257738
258710
|
* @param arg 打开医学表达式参数
|
|
257739
258711
|
*/
|
|
@@ -257760,8 +258732,8 @@ var ajax = __webpack_require__(79969);
|
|
|
257760
258732
|
;
|
|
257761
258733
|
var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
257762
258734
|
insert_ToolControlvue_type_script_lang_js_,
|
|
257763
|
-
|
|
257764
|
-
|
|
258735
|
+
ToolControlvue_type_template_id_3e4a753a_render,
|
|
258736
|
+
ToolControlvue_type_template_id_3e4a753a_staticRenderFns,
|
|
257765
258737
|
false,
|
|
257766
258738
|
null,
|
|
257767
258739
|
null,
|
|
@@ -258459,7 +259431,9 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258459
259431
|
}
|
|
258460
259432
|
},
|
|
258461
259433
|
toolbarParams: {
|
|
258462
|
-
|
|
259434
|
+
default: function _default() {
|
|
259435
|
+
return {};
|
|
259436
|
+
}
|
|
258463
259437
|
},
|
|
258464
259438
|
uploadImageParams: {
|
|
258465
259439
|
default: function _default() {
|
|
@@ -258496,6 +259470,12 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258496
259470
|
'ho-table': 1,
|
|
258497
259471
|
// 编辑状态 --- 表格相关
|
|
258498
259472
|
'ho-review': 4 // 审阅状态
|
|
259473
|
+
}), (0,esm_defineProperty/* default */.Z)(_ref, "defaultSelect", {
|
|
259474
|
+
'ho-browse': '浏览模式',
|
|
259475
|
+
'ho-edit': '编辑模式',
|
|
259476
|
+
'ho-insert': '插入',
|
|
259477
|
+
'ho-table': '表格',
|
|
259478
|
+
'ho-review': '审阅'
|
|
258499
259479
|
}), (0,esm_defineProperty/* default */.Z)(_ref, "defaultToolBarParamsText", [{
|
|
258500
259480
|
value: 'ho-browse',
|
|
258501
259481
|
title: '浏览模式'
|
|
@@ -258763,6 +259743,9 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258763
259743
|
// },
|
|
258764
259744
|
// },
|
|
258765
259745
|
tabKey: function tabKey(newName, oldName) {
|
|
259746
|
+
if (Object.keys(this.toolbarParams).length == 0) {
|
|
259747
|
+
return;
|
|
259748
|
+
}
|
|
258766
259749
|
var oldStatus = this.defaultToolBarParams[oldName];
|
|
258767
259750
|
var newStatus = this.defaultToolBarParams[newName];
|
|
258768
259751
|
if (oldStatus !== newStatus) {
|
|
@@ -258799,24 +259782,17 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258799
259782
|
methods: {
|
|
258800
259783
|
handleToolbarParams: function handleToolbarParams(once) {
|
|
258801
259784
|
var _this2 = this;
|
|
258802
|
-
|
|
258803
|
-
|
|
258804
|
-
|
|
258805
|
-
|
|
258806
|
-
|
|
258807
|
-
'ho-review': '审阅'
|
|
258808
|
-
};
|
|
258809
|
-
if (!this.defaultBrowseJson.isBrowse) delete defaultSelect['ho-browse'];
|
|
258810
|
-
if (!this.defaultEditJson.isEdit) delete defaultSelect['ho-edit'];
|
|
258811
|
-
if (!this.defaultEditJson.isInsertElement) delete defaultSelect['ho-insert'];
|
|
258812
|
-
if (!this.defaultEditJson.isInsertTable) delete defaultSelect['ho-table'];
|
|
258813
|
-
if (!this.defaultReviewJson.isReview) delete defaultSelect['ho-review'];
|
|
259785
|
+
if (!this.defaultBrowseJson.isBrowse) delete this.defaultSelect['ho-browse'];
|
|
259786
|
+
if (!this.defaultEditJson.isEdit) delete this.defaultSelect['ho-edit'];
|
|
259787
|
+
if (!this.defaultEditJson.isInsertElement) delete this.defaultSelect['ho-insert'];
|
|
259788
|
+
if (!this.defaultEditJson.isInsertTable) delete this.defaultSelect['ho-table'];
|
|
259789
|
+
if (!this.defaultReviewJson.isReview) delete this.defaultSelect['ho-review'];
|
|
258814
259790
|
if (this.toolbarParams) {
|
|
258815
|
-
// this.defaultToolBarParamsText = [];
|
|
258816
259791
|
if (this.$slots.beforeBrowse && this.$slots.beforeBrowse[0]) {
|
|
258817
259792
|
var label = this.$slots.beforeBrowse[0].data.key;
|
|
258818
259793
|
var name = this.$slots.beforeBrowse[0].componentOptions.propsData.tab;
|
|
258819
259794
|
if (this.defaultToolBarParamsText[0].value !== label) {
|
|
259795
|
+
this.defaultSelect[label] = name || '设计模式';
|
|
258820
259796
|
this.defaultToolBarParamsText.unshift({
|
|
258821
259797
|
value: label,
|
|
258822
259798
|
title: name || '设计模式'
|
|
@@ -258825,12 +259801,12 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258825
259801
|
}
|
|
258826
259802
|
this.defaultToolBarParams = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, this.defaultToolBarParams), this.toolbarParams);
|
|
258827
259803
|
Object.keys(this.defaultToolBarParams).forEach(function (key) {
|
|
258828
|
-
if (defaultSelect[key]) {
|
|
259804
|
+
if (_this2.defaultSelect[key]) {
|
|
258829
259805
|
if (_this2.defaultToolBarParamsText.filter(function (v) {
|
|
258830
259806
|
return v.value === key;
|
|
258831
259807
|
}).length > 0) {
|
|
258832
259808
|
_this2.defaultToolBarParamsText = _this2.defaultToolBarParamsText.map(function (v, index) {
|
|
258833
|
-
if (
|
|
259809
|
+
if (_this2.defaultSelect[key] === undefined) {
|
|
258834
259810
|
return undefined;
|
|
258835
259811
|
} else {
|
|
258836
259812
|
return v;
|
|
@@ -258841,7 +259817,7 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258841
259817
|
} else {
|
|
258842
259818
|
_this2.defaultToolBarParamsText.push({
|
|
258843
259819
|
value: key,
|
|
258844
|
-
title: defaultSelect[key]
|
|
259820
|
+
title: _this2.defaultSelect[key]
|
|
258845
259821
|
});
|
|
258846
259822
|
}
|
|
258847
259823
|
} else {
|
|
@@ -258851,7 +259827,13 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258851
259827
|
}
|
|
258852
259828
|
});
|
|
258853
259829
|
}
|
|
258854
|
-
if (once && this.tabKey && this.vueController)
|
|
259830
|
+
if (once && this.tabKey && this.vueController) {
|
|
259831
|
+
if (!this.defaultSelect[this.tabKey]) {
|
|
259832
|
+
this.tabKey = Object.keys(this.defaultSelect)[0] || ''; // 处理页签不存在的情况 默认取存在页签中的一个;
|
|
259833
|
+
}
|
|
259834
|
+
|
|
259835
|
+
this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]);
|
|
259836
|
+
}
|
|
258855
259837
|
this.emitToolBarStatus();
|
|
258856
259838
|
},
|
|
258857
259839
|
closeToolMenusTest: function closeToolMenusTest(e) {
|
|
@@ -259086,10 +260068,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
259086
260068
|
});
|
|
259087
260069
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
259088
260070
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
259089
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
260071
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=5fad512a&prod&lang=scss&
|
|
259090
260072
|
// extracted by mini-css-extract-plugin
|
|
259091
260073
|
|
|
259092
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
260074
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=5fad512a&prod&lang=scss&
|
|
259093
260075
|
|
|
259094
260076
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
259095
260077
|
|
|
@@ -259102,8 +260084,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
259102
260084
|
|
|
259103
260085
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
259104
260086
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
259105
|
-
|
|
259106
|
-
|
|
260087
|
+
ToolBarvue_type_template_id_5fad512a_render,
|
|
260088
|
+
ToolBarvue_type_template_id_5fad512a_staticRenderFns,
|
|
259107
260089
|
false,
|
|
259108
260090
|
null,
|
|
259109
260091
|
null,
|
|
@@ -260816,6 +261798,192 @@ HoEditorProvide.install = function (Vue) {
|
|
|
260816
261798
|
Vue.component(HoEditorProvide.name, HoEditorProvide);
|
|
260817
261799
|
};
|
|
260818
261800
|
|
|
261801
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
261802
|
+
var es_array_from = __webpack_require__(91038);
|
|
261803
|
+
;// 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/common/rarewords/index.vue?vue&type=template&id=665ae448&
|
|
261804
|
+
var rarewordsvue_type_template_id_665ae448_render = function render() {
|
|
261805
|
+
var _vm = this,
|
|
261806
|
+
_c = _vm._self._c;
|
|
261807
|
+
return _c('div', {
|
|
261808
|
+
ref: "toolModals",
|
|
261809
|
+
staticClass: "control-modal",
|
|
261810
|
+
on: {
|
|
261811
|
+
"mousedown": _vm.toolModalDown
|
|
261812
|
+
}
|
|
261813
|
+
}, [_c('div', {
|
|
261814
|
+
class: _vm.animationClassNames,
|
|
261815
|
+
attrs: {
|
|
261816
|
+
"id": "hoRarewordsBox"
|
|
261817
|
+
}
|
|
261818
|
+
}, [_c('header', {
|
|
261819
|
+
staticClass: "modal-title"
|
|
261820
|
+
}, [_c('span', [_vm._v("生僻字录入")]), _c('a-icon', {
|
|
261821
|
+
staticClass: "modal-title-close",
|
|
261822
|
+
attrs: {
|
|
261823
|
+
"type": "close"
|
|
261824
|
+
},
|
|
261825
|
+
on: {
|
|
261826
|
+
"click": _vm.closeRarewords
|
|
261827
|
+
}
|
|
261828
|
+
})], 1), _c('section', {
|
|
261829
|
+
staticStyle: {
|
|
261830
|
+
"height": "80px"
|
|
261831
|
+
}
|
|
261832
|
+
}, [_c('ul', {
|
|
261833
|
+
staticClass: "control-list"
|
|
261834
|
+
}, [_c('li', {
|
|
261835
|
+
staticClass: "control-item"
|
|
261836
|
+
}, [_c('span', {
|
|
261837
|
+
staticClass: "label"
|
|
261838
|
+
}, [_vm._v("文本")]), _c('a-input', {
|
|
261839
|
+
model: {
|
|
261840
|
+
value: _vm.text,
|
|
261841
|
+
callback: function callback($$v) {
|
|
261842
|
+
_vm.text = $$v;
|
|
261843
|
+
},
|
|
261844
|
+
expression: "text"
|
|
261845
|
+
}
|
|
261846
|
+
})], 1), _vm._m(0)])]), _c('footer', {
|
|
261847
|
+
staticClass: "ho-modal-footer"
|
|
261848
|
+
}, [_c('a-button', {
|
|
261849
|
+
staticClass: "right",
|
|
261850
|
+
staticStyle: {
|
|
261851
|
+
"margin": "0 20px 0 0"
|
|
261852
|
+
},
|
|
261853
|
+
attrs: {
|
|
261854
|
+
"type": "primary"
|
|
261855
|
+
},
|
|
261856
|
+
on: {
|
|
261857
|
+
"click": _vm.insertRarewords
|
|
261858
|
+
}
|
|
261859
|
+
}, [_vm._v("确认插入")]), _c('a-button', {
|
|
261860
|
+
staticClass: "right",
|
|
261861
|
+
on: {
|
|
261862
|
+
"click": _vm.closeRarewords
|
|
261863
|
+
}
|
|
261864
|
+
}, [_vm._v("取消")])], 1)])]);
|
|
261865
|
+
};
|
|
261866
|
+
var rarewordsvue_type_template_id_665ae448_staticRenderFns = [function () {
|
|
261867
|
+
var _vm = this,
|
|
261868
|
+
_c = _vm._self._c;
|
|
261869
|
+
return _c('li', {
|
|
261870
|
+
staticClass: "control-item"
|
|
261871
|
+
}, [_c('span', {
|
|
261872
|
+
staticClass: "label"
|
|
261873
|
+
})]);
|
|
261874
|
+
}];
|
|
261875
|
+
|
|
261876
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=template&id=665ae448&
|
|
261877
|
+
|
|
261878
|
+
;// 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/common/rarewords/index.vue?vue&type=script&lang=js&
|
|
261879
|
+
|
|
261880
|
+
|
|
261881
|
+
|
|
261882
|
+
|
|
261883
|
+
|
|
261884
|
+
|
|
261885
|
+
|
|
261886
|
+
/* harmony default export */ var rarewordsvue_type_script_lang_js_ = ({
|
|
261887
|
+
name: 'Rarewords',
|
|
261888
|
+
mixins: [appendToBody/* default */.Z],
|
|
261889
|
+
data: function data() {
|
|
261890
|
+
return {
|
|
261891
|
+
animationClassNames: 'control-modal-contents ho-formula-iframe animation-in',
|
|
261892
|
+
text: '',
|
|
261893
|
+
bound: {},
|
|
261894
|
+
url: ''
|
|
261895
|
+
};
|
|
261896
|
+
},
|
|
261897
|
+
mounted: function mounted() {
|
|
261898
|
+
this.toolModals = this.$refs.toolModals;
|
|
261899
|
+
},
|
|
261900
|
+
methods: {
|
|
261901
|
+
initRarewords: function initRarewords() {},
|
|
261902
|
+
/**
|
|
261903
|
+
* 弹窗拖动处理
|
|
261904
|
+
* title点击触发拖动事件 其他区域正常点击不触发拖动事件
|
|
261905
|
+
*/
|
|
261906
|
+
toolModalDown: function toolModalDown(e) {
|
|
261907
|
+
(0,plugins_util/* toolModalMove */.tC)(e, this.toolModals, 'modal-title');
|
|
261908
|
+
},
|
|
261909
|
+
insertRarewords: function insertRarewords() {
|
|
261910
|
+
vueController.insertRareChar('', this.text);
|
|
261911
|
+
this.closeRarewords();
|
|
261912
|
+
},
|
|
261913
|
+
closeRarewords: function closeRarewords() {
|
|
261914
|
+
var hoRarewordsBoxList = document.querySelectorAll('#hoRarewordsBox');
|
|
261915
|
+
if (hoRarewordsBoxList) {
|
|
261916
|
+
Array.from(hoRarewordsBoxList).forEach(function (hoRarewordsBox) {
|
|
261917
|
+
var _hoRarewordsBox$paren;
|
|
261918
|
+
(_hoRarewordsBox$paren = hoRarewordsBox.parentNode) === null || _hoRarewordsBox$paren === void 0 ? void 0 : _hoRarewordsBox$paren.removeChild(hoRarewordsBox);
|
|
261919
|
+
});
|
|
261920
|
+
}
|
|
261921
|
+
}
|
|
261922
|
+
}
|
|
261923
|
+
});
|
|
261924
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=script&lang=js&
|
|
261925
|
+
/* harmony default export */ var common_rarewordsvue_type_script_lang_js_ = (rarewordsvue_type_script_lang_js_);
|
|
261926
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/rarewords/index.vue?vue&type=style&index=0&id=665ae448&prod&lang=scss&
|
|
261927
|
+
// extracted by mini-css-extract-plugin
|
|
261928
|
+
|
|
261929
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue?vue&type=style&index=0&id=665ae448&prod&lang=scss&
|
|
261930
|
+
|
|
261931
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.vue
|
|
261932
|
+
|
|
261933
|
+
|
|
261934
|
+
|
|
261935
|
+
;
|
|
261936
|
+
|
|
261937
|
+
|
|
261938
|
+
/* normalize component */
|
|
261939
|
+
|
|
261940
|
+
var rarewords_component = (0,componentNormalizer/* default */.Z)(
|
|
261941
|
+
common_rarewordsvue_type_script_lang_js_,
|
|
261942
|
+
rarewordsvue_type_template_id_665ae448_render,
|
|
261943
|
+
rarewordsvue_type_template_id_665ae448_staticRenderFns,
|
|
261944
|
+
false,
|
|
261945
|
+
null,
|
|
261946
|
+
null,
|
|
261947
|
+
null
|
|
261948
|
+
|
|
261949
|
+
)
|
|
261950
|
+
|
|
261951
|
+
/* harmony default export */ var rarewords = (rarewords_component.exports);
|
|
261952
|
+
;// CONCATENATED MODULE: ./src/components/common/rarewords/index.ts
|
|
261953
|
+
|
|
261954
|
+
|
|
261955
|
+
|
|
261956
|
+
|
|
261957
|
+
|
|
261958
|
+
|
|
261959
|
+
|
|
261960
|
+
var RarewordsConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(rarewords); // 获取组件的构造函数
|
|
261961
|
+
var createRarewords = function createRarewords(options) {
|
|
261962
|
+
var instance = new RarewordsConstructor({
|
|
261963
|
+
data: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options), {}, {
|
|
261964
|
+
visible: true
|
|
261965
|
+
})
|
|
261966
|
+
});
|
|
261967
|
+
instance.$mount();
|
|
261968
|
+
document.body.appendChild(instance.$el);
|
|
261969
|
+
instance.visible = true;
|
|
261970
|
+
};
|
|
261971
|
+
var $Rarewords = {
|
|
261972
|
+
open: function open(options) {
|
|
261973
|
+
$Rarewords.close();
|
|
261974
|
+
return createRarewords(options);
|
|
261975
|
+
},
|
|
261976
|
+
close: function close() {
|
|
261977
|
+
var hoRarewordsBoxList = document.querySelectorAll('#hoRarewordsBox');
|
|
261978
|
+
if (hoRarewordsBoxList) {
|
|
261979
|
+
Array.from(hoRarewordsBoxList).forEach(function (hoRarewordsBox) {
|
|
261980
|
+
var _hoRarewordsBox$paren;
|
|
261981
|
+
(_hoRarewordsBox$paren = hoRarewordsBox.parentNode) === null || _hoRarewordsBox$paren === void 0 ? void 0 : _hoRarewordsBox$paren.removeChild(hoRarewordsBox);
|
|
261982
|
+
});
|
|
261983
|
+
}
|
|
261984
|
+
}
|
|
261985
|
+
};
|
|
261986
|
+
/* harmony default export */ var common_rarewords = ($Rarewords);
|
|
260819
261987
|
;// CONCATENATED MODULE: ./src/plugins/clickoutside.js
|
|
260820
261988
|
|
|
260821
261989
|
|
|
@@ -261051,6 +262219,7 @@ var debounce_debounce = function debounce(func, delay) {
|
|
|
261051
262219
|
|
|
261052
262220
|
|
|
261053
262221
|
|
|
262222
|
+
|
|
261054
262223
|
// import clickOnce from './plugins/onceClick';
|
|
261055
262224
|
|
|
261056
262225
|
antd.forEach(function (comp) {
|
|
@@ -261066,6 +262235,7 @@ var src_install = function install(vue) {
|
|
|
261066
262235
|
components.forEach(function (component) {
|
|
261067
262236
|
vue.component(component.name, component);
|
|
261068
262237
|
});
|
|
262238
|
+
vue.prototype.$Rarewords = common_rarewords;
|
|
261069
262239
|
};
|
|
261070
262240
|
// 支持 script 引入 Vue 的写法
|
|
261071
262241
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
@@ -261078,7 +262248,8 @@ var _default = {
|
|
|
261078
262248
|
ToolBar: ToolBar,
|
|
261079
262249
|
HoRightMenu: HoRightMenu,
|
|
261080
262250
|
HoMedicalExpression: HoMedicalExpression,
|
|
261081
|
-
HoEditorProvide: HoEditorProvide
|
|
262251
|
+
HoEditorProvide: HoEditorProvide,
|
|
262252
|
+
$Rarewords: common_rarewords
|
|
261082
262253
|
};
|
|
261083
262254
|
/* harmony default export */ var src_0 = (_default);
|
|
261084
262255
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|