hoeditor-web 3.0.95 → 3.0.97
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 +726 -559
- package/lib/hoeditor.umd.min.js +10 -10
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -20549,7 +20549,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
20549
20549
|
|
|
20550
20550
|
/***/ }),
|
|
20551
20551
|
|
|
20552
|
-
/***/
|
|
20552
|
+
/***/ 37466:
|
|
20553
20553
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20554
20554
|
|
|
20555
20555
|
"use strict";
|
|
@@ -20561,7 +20561,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20561
20561
|
"default": function() { return /* binding */ TableRowProperty; }
|
|
20562
20562
|
});
|
|
20563
20563
|
|
|
20564
|
-
;// 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/TableRowProperty.vue?vue&type=template&id=
|
|
20564
|
+
;// 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/TableRowProperty.vue?vue&type=template&id=aceae0d4&
|
|
20565
20565
|
var render = function render() {
|
|
20566
20566
|
var _vm = this,
|
|
20567
20567
|
_c = _vm._self._c;
|
|
@@ -20704,7 +20704,19 @@ var render = function render() {
|
|
|
20704
20704
|
},
|
|
20705
20705
|
expression: "printCellBg"
|
|
20706
20706
|
}
|
|
20707
|
-
}, [_vm._v("打印单元格背景")])], 1)
|
|
20707
|
+
}, [_vm._v("打印单元格背景")])], 1), _c('div', {
|
|
20708
|
+
staticStyle: {
|
|
20709
|
+
"width": "100%"
|
|
20710
|
+
}
|
|
20711
|
+
}, [_c('a-checkbox', {
|
|
20712
|
+
model: {
|
|
20713
|
+
value: _vm.newLineWithCellContent,
|
|
20714
|
+
callback: function callback($$v) {
|
|
20715
|
+
_vm.newLineWithCellContent = $$v;
|
|
20716
|
+
},
|
|
20717
|
+
expression: "newLineWithCellContent"
|
|
20718
|
+
}
|
|
20719
|
+
}, [_vm._v("新增行复制上一行病历元素")])], 1)])])]), _c('footer', {
|
|
20708
20720
|
staticClass: "ho-modal-footer"
|
|
20709
20721
|
}, [_c('a-button', {
|
|
20710
20722
|
attrs: {
|
|
@@ -20790,6 +20802,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20790
20802
|
printCellBorders: true,
|
|
20791
20803
|
printCellBg: true,
|
|
20792
20804
|
tabKeyInsNewLine: false,
|
|
20805
|
+
newLineWithCellContent: false,
|
|
20793
20806
|
customProperties: [{
|
|
20794
20807
|
name: '',
|
|
20795
20808
|
value: ''
|
|
@@ -20809,6 +20822,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20809
20822
|
rowHeight: 0,
|
|
20810
20823
|
isSpecifyHeight: false,
|
|
20811
20824
|
isLockRowHeight: false,
|
|
20825
|
+
newLineWithCellContent: false,
|
|
20812
20826
|
repeatAsTitleAtPageTop: false,
|
|
20813
20827
|
sameLineCanAcrossPages: true,
|
|
20814
20828
|
forcedPageBreak: false,
|
|
@@ -20860,6 +20874,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20860
20874
|
this.printCellBg = this.rowProperty.printCellBg;
|
|
20861
20875
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
20862
20876
|
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
20877
|
+
this.newLineWithCellContent = this.rowProperty.newLineWithCellContent;
|
|
20863
20878
|
}
|
|
20864
20879
|
},
|
|
20865
20880
|
getCellNodes: function getCellNodes() {
|
|
@@ -20925,7 +20940,8 @@ var TableNode = __webpack_require__(5010);
|
|
|
20925
20940
|
forcedPageBreak: this.forcedPageBreak,
|
|
20926
20941
|
printCellBorders: this.printCellBorders,
|
|
20927
20942
|
printCellBg: this.printCellBg,
|
|
20928
|
-
tabKeyInsNewLine: this.tabKeyInsNewLine
|
|
20943
|
+
tabKeyInsNewLine: this.tabKeyInsNewLine,
|
|
20944
|
+
newLineWithCellContent: this.newLineWithCellContent
|
|
20929
20945
|
};
|
|
20930
20946
|
var param = {};
|
|
20931
20947
|
Object.keys(params).forEach(function (key) {
|
|
@@ -20953,10 +20969,10 @@ var TableNode = __webpack_require__(5010);
|
|
|
20953
20969
|
});
|
|
20954
20970
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
20955
20971
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js_ = (TableRowPropertyvue_type_script_lang_js_);
|
|
20956
|
-
;// 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/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
20972
|
+
;// 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/TableRowProperty.vue?vue&type=style&index=0&id=aceae0d4&prod&lang=scss&
|
|
20957
20973
|
// extracted by mini-css-extract-plugin
|
|
20958
20974
|
|
|
20959
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
20975
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=aceae0d4&prod&lang=scss&
|
|
20960
20976
|
|
|
20961
20977
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20962
20978
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -39373,10 +39389,10 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
39373
39389
|
/* 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);
|
|
39374
39390
|
/* 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);
|
|
39375
39391
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94310);
|
|
39376
|
-
/* harmony import */ var
|
|
39392
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(40735);
|
|
39377
39393
|
/* 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);
|
|
39378
|
-
/* harmony import */ var
|
|
39379
|
-
/* harmony import */ var
|
|
39394
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(66298);
|
|
39395
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(78255);
|
|
39380
39396
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57658);
|
|
39381
39397
|
/* 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__);
|
|
39382
39398
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
@@ -39476,6 +39492,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
39476
39492
|
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(90809);
|
|
39477
39493
|
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(34910);
|
|
39478
39494
|
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(330);
|
|
39495
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(63602);
|
|
39496
|
+
|
|
39479
39497
|
|
|
39480
39498
|
|
|
39481
39499
|
|
|
@@ -39573,10 +39591,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39573
39591
|
|
|
39574
39592
|
function DocController(hoEditorFactoryID) {
|
|
39575
39593
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, DocController);
|
|
39576
|
-
(0,
|
|
39577
|
-
(0,
|
|
39578
|
-
(0,
|
|
39579
|
-
(0,
|
|
39594
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__/* ["default"] */ .Z)(this, "_findContent", "");
|
|
39595
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__/* ["default"] */ .Z)(this, "_count", 0);
|
|
39596
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
39597
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__/* ["default"] */ .Z)(this, "_onInsertNodeByID", void 0);
|
|
39580
39598
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
39581
39599
|
this._onInsertNodeByID = null;
|
|
39582
39600
|
}
|
|
@@ -39586,7 +39604,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39586
39604
|
// }
|
|
39587
39605
|
// return this._instance;
|
|
39588
39606
|
// }
|
|
39589
|
-
(0,
|
|
39607
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_91__/* ["default"] */ .Z)(DocController, [{
|
|
39590
39608
|
key: "onInsertNodeByID",
|
|
39591
39609
|
get: function get() {
|
|
39592
39610
|
return this._onInsertNodeByID;
|
|
@@ -39703,7 +39721,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39703
39721
|
value: function keyBoardInput(text) {
|
|
39704
39722
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39705
39723
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
39706
|
-
|
|
39724
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("质控医生站的病历只可进行批注不可编辑修改");
|
|
39707
39725
|
return;
|
|
39708
39726
|
}
|
|
39709
39727
|
// alert(text);
|
|
@@ -39741,7 +39759,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39741
39759
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
39742
39760
|
//const cellText = cellNode.getCellText();
|
|
39743
39761
|
if (!isAllowEdit) {
|
|
39744
|
-
|
|
39762
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
39745
39763
|
return;
|
|
39746
39764
|
}
|
|
39747
39765
|
}
|
|
@@ -39749,7 +39767,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39749
39767
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
39750
39768
|
//const cellText = cellNode.getCellText();
|
|
39751
39769
|
if (!_isAllowEdit) {
|
|
39752
|
-
|
|
39770
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
39753
39771
|
return;
|
|
39754
39772
|
}
|
|
39755
39773
|
}
|
|
@@ -40106,7 +40124,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40106
40124
|
domRange = domRange.normalize();
|
|
40107
40125
|
} 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)) {
|
|
40108
40126
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
40109
|
-
|
|
40127
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("审阅模式下,只能选中文档内容进行删除");
|
|
40110
40128
|
return;
|
|
40111
40129
|
}
|
|
40112
40130
|
}
|
|
@@ -40328,7 +40346,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40328
40346
|
_context.next = 87;
|
|
40329
40347
|
break;
|
|
40330
40348
|
}
|
|
40331
|
-
|
|
40349
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("审阅模式下,只能对文本内容进行删除");
|
|
40332
40350
|
return _context.abrupt("return");
|
|
40333
40351
|
case 87:
|
|
40334
40352
|
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)) {
|
|
@@ -40340,21 +40358,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40340
40358
|
_context.next = 92;
|
|
40341
40359
|
break;
|
|
40342
40360
|
}
|
|
40343
|
-
|
|
40361
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不是本人签名,不允许删除!");
|
|
40344
40362
|
return _context.abrupt("return");
|
|
40345
40363
|
case 92:
|
|
40346
40364
|
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)) {
|
|
40347
40365
|
_context.next = 95;
|
|
40348
40366
|
break;
|
|
40349
40367
|
}
|
|
40350
|
-
|
|
40368
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许使用删除键删除签名,请右键删除元素");
|
|
40351
40369
|
return _context.abrupt("return");
|
|
40352
40370
|
case 95:
|
|
40353
40371
|
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)) {
|
|
40354
40372
|
_context.next = 98;
|
|
40355
40373
|
break;
|
|
40356
40374
|
}
|
|
40357
|
-
|
|
40375
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
40358
40376
|
return _context.abrupt("return");
|
|
40359
40377
|
case 98:
|
|
40360
40378
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
@@ -41240,11 +41258,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41240
41258
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41241
41259
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41242
41260
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re) {
|
|
41243
|
-
|
|
41261
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在文本域内插入表格");
|
|
41244
41262
|
return;
|
|
41245
41263
|
}
|
|
41246
41264
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
41247
|
-
|
|
41265
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表格内再插入表格");
|
|
41248
41266
|
return;
|
|
41249
41267
|
}
|
|
41250
41268
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -41307,13 +41325,49 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41307
41325
|
c = _cell$table$getCellIn2[1];
|
|
41308
41326
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit && r > 0) {
|
|
41309
41327
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41310
|
-
|
|
41328
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
41311
41329
|
return;
|
|
41312
41330
|
}
|
|
41313
41331
|
}
|
|
41314
41332
|
hoEditorFactory.undoService.begin();
|
|
41315
41333
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
41316
41334
|
hoEditorFactory.undoService.commit();
|
|
41335
|
+
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
41336
|
+
if (newLineWithCellContent) {
|
|
41337
|
+
for (var i = r; i < r + count; i++) {
|
|
41338
|
+
for (var j = 0; j < cell.table.colCount; j++) {
|
|
41339
|
+
var tCell = cell.table.rows[i][j];
|
|
41340
|
+
var sCell = cell.table.rows[r + count][j];
|
|
41341
|
+
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41342
|
+
var spath = sCell.childNodes[0].getNodePath();
|
|
41343
|
+
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41344
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41345
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, true);
|
|
41346
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41347
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__/* .ClipboardType.ctJSON */ .Y6.ctJSON, jsonData);
|
|
41348
|
+
for (var n = 0; n < nodes.length; n++) {
|
|
41349
|
+
var anode = nodes[n];
|
|
41350
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R) {
|
|
41351
|
+
nodes.splice(n, 1);
|
|
41352
|
+
}
|
|
41353
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N && anode.number !== 0) {
|
|
41354
|
+
anode.number = 0;
|
|
41355
|
+
anode.type = 0;
|
|
41356
|
+
anode.signor = "";
|
|
41357
|
+
anode.signTime = "";
|
|
41358
|
+
anode.imgWidth = 0;
|
|
41359
|
+
anode.imgHeight = 0;
|
|
41360
|
+
anode.customProperty = new Object();
|
|
41361
|
+
anode.fingerPrintSrc = "";
|
|
41362
|
+
anode.fingerPosition = 0;
|
|
41363
|
+
anode.imgSrc = "";
|
|
41364
|
+
}
|
|
41365
|
+
}
|
|
41366
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
41367
|
+
}
|
|
41368
|
+
}
|
|
41369
|
+
}
|
|
41370
|
+
}
|
|
41317
41371
|
var sCellNode = cell.table.rows[r][0];
|
|
41318
41372
|
if (!sCellNode) {
|
|
41319
41373
|
for (var s = 1; s < cell.table.rows[r].length; s++) {
|
|
@@ -41358,7 +41412,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41358
41412
|
// );
|
|
41359
41413
|
// }
|
|
41360
41414
|
} else {
|
|
41361
|
-
|
|
41415
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
41362
41416
|
return;
|
|
41363
41417
|
}
|
|
41364
41418
|
}
|
|
@@ -41379,13 +41433,49 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41379
41433
|
c = _cell$table$getCellIn4[1];
|
|
41380
41434
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit) {
|
|
41381
41435
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41382
|
-
|
|
41436
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
41383
41437
|
return;
|
|
41384
41438
|
}
|
|
41385
41439
|
}
|
|
41386
41440
|
hoEditorFactory.undoService.begin();
|
|
41387
41441
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
41388
41442
|
hoEditorFactory.undoService.commit();
|
|
41443
|
+
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
41444
|
+
if (newLineWithCellContent) {
|
|
41445
|
+
for (var i = r + 1; i < r + 1 + count; i++) {
|
|
41446
|
+
for (var j = 0; j < cell.table.colCount; j++) {
|
|
41447
|
+
var tCell = cell.table.rows[i][j];
|
|
41448
|
+
var sCell = cell.table.rows[r][j];
|
|
41449
|
+
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41450
|
+
var spath = sCell.childNodes[0].getNodePath();
|
|
41451
|
+
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41452
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41453
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, true);
|
|
41454
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__/* .ClipboardType.ctJSON */ .Y6.ctJSON, jsonData);
|
|
41455
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41456
|
+
for (var n = 0; n < nodes.length; n++) {
|
|
41457
|
+
var anode = nodes[n];
|
|
41458
|
+
if (anode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_26__/* .TextNode */ .R) {
|
|
41459
|
+
nodes.splice(n, 1);
|
|
41460
|
+
}
|
|
41461
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N && anode.number !== 0) {
|
|
41462
|
+
anode.number = 0;
|
|
41463
|
+
anode.type = 0;
|
|
41464
|
+
anode.signor = "";
|
|
41465
|
+
anode.signTime = "";
|
|
41466
|
+
anode.imgWidth = 0;
|
|
41467
|
+
anode.imgHeight = 0;
|
|
41468
|
+
anode.customProperty = new Object();
|
|
41469
|
+
anode.fingerPrintSrc = "";
|
|
41470
|
+
anode.fingerPosition = 0;
|
|
41471
|
+
anode.imgSrc = "";
|
|
41472
|
+
}
|
|
41473
|
+
}
|
|
41474
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
41475
|
+
}
|
|
41476
|
+
}
|
|
41477
|
+
}
|
|
41478
|
+
}
|
|
41389
41479
|
var sCellNode = cell.table.rows[r + 1][0];
|
|
41390
41480
|
if (!sCellNode) {
|
|
41391
41481
|
for (var s = 1; s < cell.table.rows[r + 1].length; s++) {
|
|
@@ -41430,7 +41520,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41430
41520
|
// );
|
|
41431
41521
|
// }
|
|
41432
41522
|
} else {
|
|
41433
|
-
|
|
41523
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
41434
41524
|
return;
|
|
41435
41525
|
}
|
|
41436
41526
|
}
|
|
@@ -41491,7 +41581,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41491
41581
|
// );
|
|
41492
41582
|
// }
|
|
41493
41583
|
} else {
|
|
41494
|
-
|
|
41584
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
41495
41585
|
return;
|
|
41496
41586
|
}
|
|
41497
41587
|
}
|
|
@@ -41549,7 +41639,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41549
41639
|
// );
|
|
41550
41640
|
// }
|
|
41551
41641
|
} else {
|
|
41552
|
-
|
|
41642
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
41553
41643
|
return;
|
|
41554
41644
|
}
|
|
41555
41645
|
}
|
|
@@ -41566,7 +41656,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41566
41656
|
r2 = _TableNode$getSelectT2[3],
|
|
41567
41657
|
c2 = _TableNode$getSelectT2[4];
|
|
41568
41658
|
if (!table) {
|
|
41569
|
-
|
|
41659
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
41570
41660
|
return;
|
|
41571
41661
|
}
|
|
41572
41662
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -41578,7 +41668,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41578
41668
|
for (var i = r1; i <= r2; i++) {
|
|
41579
41669
|
var rowInfo = table.rowInfos[i];
|
|
41580
41670
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
41581
|
-
|
|
41671
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表头行不允许删除");
|
|
41582
41672
|
return;
|
|
41583
41673
|
}
|
|
41584
41674
|
}
|
|
@@ -41594,8 +41684,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41594
41684
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_61__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
41595
41685
|
hoEditorFactory.undoService.commit();
|
|
41596
41686
|
if (table.childNodes.length > 0) {
|
|
41597
|
-
var
|
|
41598
|
-
var
|
|
41687
|
+
var path = "";
|
|
41688
|
+
var np = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
41689
|
+
if (np && np.node) {
|
|
41690
|
+
path = aRange.startPath;
|
|
41691
|
+
} else if (r2 > table.rowCount - 1) {
|
|
41692
|
+
path = table.nextSibling().getNodePath();
|
|
41693
|
+
} else {
|
|
41694
|
+
var firstCell = table.childNodes[0];
|
|
41695
|
+
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
41696
|
+
}
|
|
41599
41697
|
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
41600
41698
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
41601
41699
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_34__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
@@ -41629,7 +41727,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41629
41727
|
r2 = _TableNode$getSelectT4[3],
|
|
41630
41728
|
c2 = _TableNode$getSelectT4[4];
|
|
41631
41729
|
if (!table) {
|
|
41632
|
-
|
|
41730
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
41633
41731
|
return;
|
|
41634
41732
|
}
|
|
41635
41733
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -41682,7 +41780,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41682
41780
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
41683
41781
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
41684
41782
|
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) {
|
|
41685
|
-
|
|
41783
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的不同单元格才能合并");
|
|
41686
41784
|
return;
|
|
41687
41785
|
}
|
|
41688
41786
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -41734,7 +41832,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41734
41832
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
41735
41833
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
41736
41834
|
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) {
|
|
41737
|
-
|
|
41835
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的单元格才能取消合并");
|
|
41738
41836
|
return;
|
|
41739
41837
|
}
|
|
41740
41838
|
var endPath = cell1.table.getNodePath();
|
|
@@ -42039,7 +42137,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42039
42137
|
}
|
|
42040
42138
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42041
42139
|
if (object.obj2.size === 0) {
|
|
42042
|
-
|
|
42140
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
42043
42141
|
} else {
|
|
42044
42142
|
var nodesMap = object.obj1;
|
|
42045
42143
|
var indexsMap = object.obj2;
|
|
@@ -42100,7 +42198,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42100
42198
|
sNode = startNode.rootNodes[0];
|
|
42101
42199
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42102
42200
|
if (object.obj2.size === 0) {
|
|
42103
|
-
|
|
42201
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
42104
42202
|
} else {
|
|
42105
42203
|
var nodesMap = object.obj1;
|
|
42106
42204
|
var indexsMap = object.obj2;
|
|
@@ -42123,7 +42221,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42123
42221
|
} finally {
|
|
42124
42222
|
_iterator.f();
|
|
42125
42223
|
}
|
|
42126
|
-
|
|
42224
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].info */ .Z.info("成功替换了" + indexsMap.size.toString() + "处文档内容。");
|
|
42127
42225
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
42128
42226
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
42129
42227
|
}
|
|
@@ -42453,7 +42551,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42453
42551
|
} else {
|
|
42454
42552
|
var comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
42455
42553
|
if (comment.userID != hoEditorFactory.userInfo.id) {
|
|
42456
|
-
|
|
42554
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许删除其他用户创建的批注!");
|
|
42457
42555
|
return;
|
|
42458
42556
|
}
|
|
42459
42557
|
del(comment);
|
|
@@ -47300,7 +47398,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
47300
47398
|
/*
|
|
47301
47399
|
* @Author: your name
|
|
47302
47400
|
* @Date: 2020-12-24 16:01:16
|
|
47303
|
-
* @LastEditTime: 2023-
|
|
47401
|
+
* @LastEditTime: 2023-08-01 14:43:32
|
|
47304
47402
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
47305
47403
|
* @Description: In User Settings Edit
|
|
47306
47404
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
@@ -47590,6 +47688,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47590
47688
|
//打印单元格背景
|
|
47591
47689
|
//按下Tab键强制插入新行(即使不是最后一行)
|
|
47592
47690
|
//是否锁定行高
|
|
47691
|
+
//新增行带着单元格内容
|
|
47593
47692
|
function RowProperty(objectValues //, table: TableNode
|
|
47594
47693
|
) {
|
|
47595
47694
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, RowProperty);
|
|
@@ -47604,6 +47703,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47604
47703
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_printCellBg", true);
|
|
47605
47704
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_tabKeyInsNewLine", false);
|
|
47606
47705
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_isLockRowHeight", false);
|
|
47706
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_newLineWithCellContent", false);
|
|
47607
47707
|
if (objectValues !== "") {
|
|
47608
47708
|
var valuesObj = eval('(' + objectValues + ')');
|
|
47609
47709
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -47724,6 +47824,14 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47724
47824
|
set: function set(value) {
|
|
47725
47825
|
this._tabKeyInsNewLine = value;
|
|
47726
47826
|
}
|
|
47827
|
+
}, {
|
|
47828
|
+
key: "newLineWithCellContent",
|
|
47829
|
+
get: function get() {
|
|
47830
|
+
return this._newLineWithCellContent;
|
|
47831
|
+
},
|
|
47832
|
+
set: function set(value) {
|
|
47833
|
+
this._newLineWithCellContent = value;
|
|
47834
|
+
}
|
|
47727
47835
|
}]);
|
|
47728
47836
|
return RowProperty;
|
|
47729
47837
|
}();
|
|
@@ -63134,6 +63242,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63134
63242
|
rowProperty.rowHeight = copyRowProperty.rowHeight;
|
|
63135
63243
|
rowProperty.isSpecifyHeight = copyRowProperty.isSpecifyHeight;
|
|
63136
63244
|
rowProperty.isLockRowHeight = copyRowProperty.isLockRowHeight;
|
|
63245
|
+
rowProperty.newLineWithCellContent = copyRowProperty.newLineWithCellContent;
|
|
63137
63246
|
var rowsInfo = new RowInfos(this, rowProperty);
|
|
63138
63247
|
rowsInfo.rowHeight = this._rowInfos[copyIndex].rowHeight;
|
|
63139
63248
|
rowsInfo.heightFixed = this._rowInfos[copyIndex].heightFixed;
|
|
@@ -64079,7 +64188,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64079
64188
|
rowHeight: 0,
|
|
64080
64189
|
sameLineCanAcrossPages: true,
|
|
64081
64190
|
tabKeyInsNewLine: false,
|
|
64082
|
-
isLockRowHeight: false
|
|
64191
|
+
isLockRowHeight: false,
|
|
64192
|
+
newLineWithCellContent: false
|
|
64083
64193
|
};
|
|
64084
64194
|
var defaultRowPropJson = JSON.parse(JSON.stringify(defaultRowProp));
|
|
64085
64195
|
//处理行高
|
|
@@ -64128,7 +64238,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64128
64238
|
rowHeight: rowInfo.rowProperty.rowHeight,
|
|
64129
64239
|
sameLineCanAcrossPages: rowInfo.rowProperty.sameLineCanAcrossPages,
|
|
64130
64240
|
tabKeyInsNewLine: rowInfo.rowProperty.tabKeyInsNewLine,
|
|
64131
|
-
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight
|
|
64241
|
+
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight,
|
|
64242
|
+
newLineWithCellContent: rowInfo.rowProperty.newLineWithCellContent
|
|
64132
64243
|
};
|
|
64133
64244
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
64134
64245
|
var keysName = Object.keys(defaultRowProp);
|
|
@@ -81838,6 +81949,11 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
81838
81949
|
this.editor.input.addEventListener('keypress', this._editKeyPress);
|
|
81839
81950
|
this.editor.input.addEventListener('keyup', this._editKeyUp);
|
|
81840
81951
|
this.editor.input.addEventListener('keydown', this._editKeyDown);
|
|
81952
|
+
document.addEventListener('visibilitychange', function () {
|
|
81953
|
+
if (!document.hidden) {
|
|
81954
|
+
_this2.editor.input.focus();
|
|
81955
|
+
}
|
|
81956
|
+
});
|
|
81841
81957
|
this.editor.input.addEventListener('cut', function (e) {
|
|
81842
81958
|
if (!e || !e.clipboardData) {
|
|
81843
81959
|
return;
|
|
@@ -89791,12 +89907,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
89791
89907
|
this._isError = true;
|
|
89792
89908
|
return _context2.abrupt("return");
|
|
89793
89909
|
case 47:
|
|
89794
|
-
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N
|
|
89910
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N)) {
|
|
89795
89911
|
_context2.next = 52;
|
|
89796
89912
|
break;
|
|
89797
89913
|
}
|
|
89798
89914
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].destroy */ .Z.destroy();
|
|
89799
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("
|
|
89915
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"].warn */ .Z.warn("不允许直接删除签名!");
|
|
89800
89916
|
this._isError = true;
|
|
89801
89917
|
return _context2.abrupt("return");
|
|
89802
89918
|
case 52:
|
|
@@ -93147,6 +93263,538 @@ function expressionCalculator(expr) {
|
|
|
93147
93263
|
|
|
93148
93264
|
/***/ }),
|
|
93149
93265
|
|
|
93266
|
+
/***/ 63602:
|
|
93267
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
93268
|
+
|
|
93269
|
+
"use strict";
|
|
93270
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93271
|
+
/* harmony export */ "Un": function() { return /* binding */ StructureNode; },
|
|
93272
|
+
/* harmony export */ "Y6": function() { return /* binding */ ClipboardType; }
|
|
93273
|
+
/* harmony export */ });
|
|
93274
|
+
/* unused harmony export StructureRecord */
|
|
93275
|
+
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
93276
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(40735);
|
|
93277
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
|
|
93278
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(66298);
|
|
93279
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(78255);
|
|
93280
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57658);
|
|
93281
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
93282
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
93283
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
93284
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23123);
|
|
93285
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
93286
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40561);
|
|
93287
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
93288
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
93289
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
93290
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54747);
|
|
93291
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
93292
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38862);
|
|
93293
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
93294
|
+
/* harmony import */ var core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83753);
|
|
93295
|
+
/* harmony import */ var core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
93296
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69600);
|
|
93297
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
93298
|
+
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47042);
|
|
93299
|
+
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
93300
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15306);
|
|
93301
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
93302
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8277);
|
|
93303
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(94639);
|
|
93304
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(42921);
|
|
93305
|
+
/* harmony import */ var _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62358);
|
|
93306
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67945);
|
|
93307
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(27198);
|
|
93308
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(19755);
|
|
93309
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_19__);
|
|
93310
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(68598);
|
|
93311
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(5010);
|
|
93312
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
|
|
93313
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(90161);
|
|
93314
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(92501);
|
|
93315
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(45712);
|
|
93316
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(99152);
|
|
93317
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(57727);
|
|
93318
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(51760);
|
|
93319
|
+
|
|
93320
|
+
|
|
93321
|
+
|
|
93322
|
+
|
|
93323
|
+
|
|
93324
|
+
|
|
93325
|
+
|
|
93326
|
+
|
|
93327
|
+
|
|
93328
|
+
|
|
93329
|
+
|
|
93330
|
+
|
|
93331
|
+
|
|
93332
|
+
|
|
93333
|
+
|
|
93334
|
+
|
|
93335
|
+
|
|
93336
|
+
|
|
93337
|
+
|
|
93338
|
+
|
|
93339
|
+
|
|
93340
|
+
|
|
93341
|
+
|
|
93342
|
+
// import { HTMLConverter2 } from "./HTMLConverter";
|
|
93343
|
+
|
|
93344
|
+
|
|
93345
|
+
|
|
93346
|
+
|
|
93347
|
+
|
|
93348
|
+
|
|
93349
|
+
|
|
93350
|
+
|
|
93351
|
+
|
|
93352
|
+
var ClipboardType;
|
|
93353
|
+
(function (ClipboardType) {
|
|
93354
|
+
ClipboardType["ctText"] = "text/plain";
|
|
93355
|
+
ClipboardType["ctHTML"] = "text/html";
|
|
93356
|
+
ClipboardType["ctJSON"] = "application/json";
|
|
93357
|
+
})(ClipboardType || (ClipboardType = {}));
|
|
93358
|
+
var NodeConvert = /*#__PURE__*/function () {
|
|
93359
|
+
function NodeConvert(hoEditorFactoryID) {
|
|
93360
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, NodeConvert);
|
|
93361
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_jsondata", void 0);
|
|
93362
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_structureRec", void 0);
|
|
93363
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
93364
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93365
|
+
}
|
|
93366
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(NodeConvert, [{
|
|
93367
|
+
key: "FromJSON",
|
|
93368
|
+
value: function FromJSON(data, rootPath, isNewPage) {
|
|
93369
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93370
|
+
var nodes = new Array();
|
|
93371
|
+
var rootNodes = new Array();
|
|
93372
|
+
if (rootPath === "main") {
|
|
93373
|
+
rootNodes = hoEditorFactory.docTree.mainNodes;
|
|
93374
|
+
}
|
|
93375
|
+
var jsonArray = JSON.parse(data);
|
|
93376
|
+
var path = hoEditorFactory.docTree.curDomRange.normalize().startPath;
|
|
93377
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(path);
|
|
93378
|
+
var aRootNodes = rootPath ? rootNodes : hoEditorFactory.docTree.curDomRange.normalize().npStart.roots;
|
|
93379
|
+
for (var i = 0; i < jsonArray.length; i++) {
|
|
93380
|
+
var nodeJson = jsonArray[i];
|
|
93381
|
+
if (nodeJson) {
|
|
93382
|
+
var node = hoEditorFactory.structureConvert.convertNode(nodeJson, aRootNodes, rootPath ? null : parentNode, undefined, isNewPage ? false : true);
|
|
93383
|
+
if (!node) {
|
|
93384
|
+
return [];
|
|
93385
|
+
}
|
|
93386
|
+
if (node) {
|
|
93387
|
+
if (node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && node.text.length === 0) {
|
|
93388
|
+
continue;
|
|
93389
|
+
}
|
|
93390
|
+
if (rootPath) {
|
|
93391
|
+
node.rootPath = rootPath;
|
|
93392
|
+
}
|
|
93393
|
+
nodes.push(node);
|
|
93394
|
+
if (rootPath && rootPath.split('/').length > 1) {
|
|
93395
|
+
rootNodes.push(node);
|
|
93396
|
+
// node.rootNodes = rootNodes;
|
|
93397
|
+
}
|
|
93398
|
+
}
|
|
93399
|
+
}
|
|
93400
|
+
}
|
|
93401
|
+
|
|
93402
|
+
return nodes;
|
|
93403
|
+
}
|
|
93404
|
+
}, {
|
|
93405
|
+
key: "FromHTML",
|
|
93406
|
+
value: function FromHTML(data) {
|
|
93407
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93408
|
+
var rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
|
|
93409
|
+
var r = rx.exec(data);
|
|
93410
|
+
var bodyHtml;
|
|
93411
|
+
if (!r) {
|
|
93412
|
+
return [];
|
|
93413
|
+
} else {
|
|
93414
|
+
bodyHtml = "<div>" + r[1] + "</div>";
|
|
93415
|
+
}
|
|
93416
|
+
var nodes = hoEditorFactory.htmlConverter.Exec(jquery__WEBPACK_IMPORTED_MODULE_19___default()(bodyHtml)[0], "");
|
|
93417
|
+
return nodes;
|
|
93418
|
+
}
|
|
93419
|
+
}, {
|
|
93420
|
+
key: "FromText",
|
|
93421
|
+
value: function FromText(data) {
|
|
93422
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93423
|
+
var nodes = new Array();
|
|
93424
|
+
var textData = data;
|
|
93425
|
+
if (textData) {
|
|
93426
|
+
//根据换行符切割 处理大写情况 \R\N
|
|
93427
|
+
//const uidArr = textData.split(/[(\r\n)|(\R\N)]+/);
|
|
93428
|
+
var uidArr = textData.split(/[\n\r|\r\n|\r|\n]+/);
|
|
93429
|
+
for (var i = 0; i < uidArr.length; i++) {
|
|
93430
|
+
if (!uidArr[i]) continue;
|
|
93431
|
+
if (i > 0) {
|
|
93432
|
+
var paraNode = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
|
|
93433
|
+
nodes.push(paraNode);
|
|
93434
|
+
}
|
|
93435
|
+
var textNode = new _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntText */ .Jq.ntText, uidArr[i], 0);
|
|
93436
|
+
nodes.push(textNode);
|
|
93437
|
+
}
|
|
93438
|
+
}
|
|
93439
|
+
return nodes;
|
|
93440
|
+
}
|
|
93441
|
+
}, {
|
|
93442
|
+
key: "toJSON",
|
|
93443
|
+
value: function toJSON(recs, isClearValue, type) {
|
|
93444
|
+
var _this = this;
|
|
93445
|
+
var jsons = new Array();
|
|
93446
|
+
if (recs[0].node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__/* .ParagraphNode */ .C) {
|
|
93447
|
+
if (recs[0].node.paraNo === 0) {
|
|
93448
|
+
recs.splice(0, 1);
|
|
93449
|
+
}
|
|
93450
|
+
}
|
|
93451
|
+
recs.forEach(function (value, index) {
|
|
93452
|
+
if (isClearValue) {
|
|
93453
|
+
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
|
|
93454
|
+
value.node.text = "";
|
|
93455
|
+
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
93456
|
+
}
|
|
93457
|
+
if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_24__/* .DateTimeNode */ .Z) {
|
|
93458
|
+
value.node.text = "";
|
|
93459
|
+
}
|
|
93460
|
+
if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_25__/* .DownListNode */ .yF) {
|
|
93461
|
+
value.node.text = "";
|
|
93462
|
+
}
|
|
93463
|
+
}
|
|
93464
|
+
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re || value.node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_26__/* .RadioAndCheckBoxNode */ .Yh || value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_25__/* .DownListNode */ .yF || value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_24__/* .DateTimeNode */ .Z) {
|
|
93465
|
+
jsons.push(value.node.node2Json(value.range, true, type));
|
|
93466
|
+
} else {
|
|
93467
|
+
//选区有MarkNode时:如果是开始标记,判断对应的结束标记是否在选区内,如果在则复制该节点,反之不复制;
|
|
93468
|
+
//如果是结束标记,判断对应的开始标记是否在选区内,如果在则复制该节点,反之不复制
|
|
93469
|
+
if (value.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNode */ .j && value.node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
|
|
93470
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
93471
|
+
var range = hoEditorFactory.docTree.curDomRange.normalize();
|
|
93472
|
+
if (value.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNodeType.mtStart */ .q.mtStart) {
|
|
93473
|
+
var result = value.node.parentNode.childNodes[value.node.parentNode.childNodes.length - 1].isTotalSelected(range, true);
|
|
93474
|
+
if (result) {
|
|
93475
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93476
|
+
}
|
|
93477
|
+
}
|
|
93478
|
+
if (value.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
|
|
93479
|
+
var _result = value.node.parentNode.childNodes[0].isTotalSelected(range, true);
|
|
93480
|
+
if (_result) {
|
|
93481
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93482
|
+
} else {
|
|
93483
|
+
if (index === recs.length - 1) {
|
|
93484
|
+
hoEditorFactory.docTree.curDomRange.endPath = hoEditorFactory.docTree.getNodeLastPath(value.node.previousLeaf());
|
|
93485
|
+
}
|
|
93486
|
+
}
|
|
93487
|
+
}
|
|
93488
|
+
} else {
|
|
93489
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93490
|
+
}
|
|
93491
|
+
}
|
|
93492
|
+
});
|
|
93493
|
+
this._jsondata = JSON.stringify(jsons);
|
|
93494
|
+
//console.log(JSON.stringify(jsons));
|
|
93495
|
+
return JSON.stringify(jsons);
|
|
93496
|
+
}
|
|
93497
|
+
// private dataURLtoFile(dataurl: string, filename = 'file') {
|
|
93498
|
+
// const arr = dataurl.split(',')
|
|
93499
|
+
// const mime = arr[0].match(/:(.*?);/)[1]
|
|
93500
|
+
// const suffix = mime.split('/')[1]
|
|
93501
|
+
// const bstr = atob(arr[1])
|
|
93502
|
+
// let n = bstr.length
|
|
93503
|
+
// const u8arr = new Uint8Array(n)
|
|
93504
|
+
// while (n--) {
|
|
93505
|
+
// u8arr[n] = bstr.charCodeAt(n)
|
|
93506
|
+
// }
|
|
93507
|
+
// return new File([u8arr], `${filename}.${suffix}`, {
|
|
93508
|
+
// type: mime
|
|
93509
|
+
// })
|
|
93510
|
+
// }
|
|
93511
|
+
}, {
|
|
93512
|
+
key: "toTHML",
|
|
93513
|
+
value: function toTHML(recs) {
|
|
93514
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93515
|
+
if (recs) this.toJSON(recs);
|
|
93516
|
+
var jsondata = JSON.parse(this._jsondata);
|
|
93517
|
+
if (!jsondata) return "";
|
|
93518
|
+
return hoEditorFactory.toHtmlConverter.Exec(this._hoEditorFactoryID, jsondata);
|
|
93519
|
+
}
|
|
93520
|
+
}, {
|
|
93521
|
+
key: "toText",
|
|
93522
|
+
value: function toText(recs) {
|
|
93523
|
+
if (recs) this.toJSON(recs);
|
|
93524
|
+
var jsondata = JSON.parse(this._jsondata);
|
|
93525
|
+
if (!jsondata) return "";
|
|
93526
|
+
var paragraphText = "";
|
|
93527
|
+
var json2text = function json2text(data) {
|
|
93528
|
+
for (var i = 0; i < data.length; i++) {
|
|
93529
|
+
var item = data[i];
|
|
93530
|
+
if (item["nodeType"]) {
|
|
93531
|
+
if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntText */ .Jq.ntText]) {
|
|
93532
|
+
paragraphText += item.text;
|
|
93533
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntParagraph */ .Jq.ntParagraph]) {
|
|
93534
|
+
if (i != 0) {
|
|
93535
|
+
paragraphText += "\n";
|
|
93536
|
+
}
|
|
93537
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntLabel */ .Jq.ntLabel]) {
|
|
93538
|
+
paragraphText += item.text;
|
|
93539
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntRareChar */ .Jq.ntRareChar]) {
|
|
93540
|
+
paragraphText += item.text;
|
|
93541
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntSpecialChar */ .Jq.ntSpecialChar]) {
|
|
93542
|
+
paragraphText += item.text;
|
|
93543
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntField */ .Jq.ntField]) {
|
|
93544
|
+
json2text(item.childNodes.item);
|
|
93545
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntTable */ .Jq.ntTable]) {
|
|
93546
|
+
if (Array.isArray(item.childNodes.item)) json2text(item.childNodes.item);
|
|
93547
|
+
} else if (item.nodeType == "ntRow") {
|
|
93548
|
+
if (i != 0) {
|
|
93549
|
+
paragraphText += "\n";
|
|
93550
|
+
}
|
|
93551
|
+
json2text(item.childNodes.item);
|
|
93552
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntCell */ .Jq.ntCell]) {
|
|
93553
|
+
if (i != 0) paragraphText += "\t";
|
|
93554
|
+
json2text(item.childNodes.item);
|
|
93555
|
+
}
|
|
93556
|
+
}
|
|
93557
|
+
// else if (item.childNode) {
|
|
93558
|
+
// json2text(item.childNode);
|
|
93559
|
+
// }
|
|
93560
|
+
}
|
|
93561
|
+
};
|
|
93562
|
+
|
|
93563
|
+
json2text(jsondata);
|
|
93564
|
+
return paragraphText;
|
|
93565
|
+
}
|
|
93566
|
+
}]);
|
|
93567
|
+
return NodeConvert;
|
|
93568
|
+
}();
|
|
93569
|
+
/**
|
|
93570
|
+
* 结构化的节点范围记录
|
|
93571
|
+
*/
|
|
93572
|
+
var StructureRecord = /*#__PURE__*/function () {
|
|
93573
|
+
function StructureRecord(hoEditorFactoryID, startPath, Node, val) {
|
|
93574
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, StructureRecord);
|
|
93575
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_node", void 0);
|
|
93576
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_path", void 0);
|
|
93577
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_range", void 0);
|
|
93578
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
93579
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93580
|
+
this._node = Node;
|
|
93581
|
+
this._path = startPath;
|
|
93582
|
+
this._range = val;
|
|
93583
|
+
}
|
|
93584
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(StructureRecord, [{
|
|
93585
|
+
key: "node",
|
|
93586
|
+
get: function get() {
|
|
93587
|
+
return this._node;
|
|
93588
|
+
}
|
|
93589
|
+
}, {
|
|
93590
|
+
key: "range",
|
|
93591
|
+
get: function get() {
|
|
93592
|
+
return this._range;
|
|
93593
|
+
}
|
|
93594
|
+
}]);
|
|
93595
|
+
return StructureRecord;
|
|
93596
|
+
}();
|
|
93597
|
+
var StructureNode = /*#__PURE__*/function () {
|
|
93598
|
+
function StructureNode(hoEditorFactoryID) {
|
|
93599
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, StructureNode);
|
|
93600
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_json", void 0);
|
|
93601
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_html", void 0);
|
|
93602
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_text", void 0);
|
|
93603
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_structoredNode", void 0);
|
|
93604
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_Convertor", void 0);
|
|
93605
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_29__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
93606
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93607
|
+
this._Convertor = new NodeConvert(this._hoEditorFactoryID);
|
|
93608
|
+
}
|
|
93609
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(StructureNode, [{
|
|
93610
|
+
key: "Convertor",
|
|
93611
|
+
get:
|
|
93612
|
+
// private static _instance: StructureNode;
|
|
93613
|
+
|
|
93614
|
+
// public static instance(hoef: HOEditorFactory) {
|
|
93615
|
+
// if (!this._instance) {
|
|
93616
|
+
// this._instance = hoef.structureNode;
|
|
93617
|
+
// // this._instance = new StructureNode();
|
|
93618
|
+
// }
|
|
93619
|
+
// return this._instance;
|
|
93620
|
+
// }
|
|
93621
|
+
|
|
93622
|
+
/**
|
|
93623
|
+
* Getter Convertor
|
|
93624
|
+
* @return {NodeConvert}
|
|
93625
|
+
*/
|
|
93626
|
+
function get() {
|
|
93627
|
+
return this._Convertor;
|
|
93628
|
+
}
|
|
93629
|
+
}, {
|
|
93630
|
+
key: "jsondata",
|
|
93631
|
+
get: function get() {
|
|
93632
|
+
return this._json;
|
|
93633
|
+
}
|
|
93634
|
+
}, {
|
|
93635
|
+
key: "htmldata",
|
|
93636
|
+
get: function get() {
|
|
93637
|
+
return this._html;
|
|
93638
|
+
}
|
|
93639
|
+
}, {
|
|
93640
|
+
key: "textdata",
|
|
93641
|
+
get: function get() {
|
|
93642
|
+
return this._text;
|
|
93643
|
+
}
|
|
93644
|
+
/**
|
|
93645
|
+
* 返回节点开始路径,即前一个节点的最后路径
|
|
93646
|
+
* @param node 节点
|
|
93647
|
+
*/
|
|
93648
|
+
}, {
|
|
93649
|
+
key: "getPrevLastPath",
|
|
93650
|
+
value: function getPrevLastPath(node) {
|
|
93651
|
+
var prev = node.range();
|
|
93652
|
+
return prev.from;
|
|
93653
|
+
}
|
|
93654
|
+
/**
|
|
93655
|
+
* 复制时候结构化的存储,粘贴时候才能带结构的输出
|
|
93656
|
+
* @param dom
|
|
93657
|
+
* @param clipboard
|
|
93658
|
+
*/
|
|
93659
|
+
}, {
|
|
93660
|
+
key: "Copy",
|
|
93661
|
+
value: function Copy(dom, clipboard, isClearValue, type) {
|
|
93662
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93663
|
+
if (hoEditorFactory.forbidPaste && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
93664
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_31__/* ["default"].warn */ .Z.warn("根据书写规范要求,不允许复制病历文本内容");
|
|
93665
|
+
return;
|
|
93666
|
+
}
|
|
93667
|
+
var currDom;
|
|
93668
|
+
if (dom instanceof _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .a) {
|
|
93669
|
+
currDom = dom.normalize();
|
|
93670
|
+
} else {
|
|
93671
|
+
var tmp = dom[0].range();
|
|
93672
|
+
currDom = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .a(this._hoEditorFactoryID, tmp.from, hoEditorFactory.docTree.getNodeLastPath(dom[dom.length - 1]));
|
|
93673
|
+
}
|
|
93674
|
+
var info = this.getAncestorsChild(currDom.startPath, currDom.endPath);
|
|
93675
|
+
var sstart = currDom.startPath.split("/").slice(0, info.level + 1).join("/");
|
|
93676
|
+
var send = currDom.endPath.split("/").slice(0, info.level + 1).join("/");
|
|
93677
|
+
var nstart = hoEditorFactory.docTree.findNodePositionByPath(sstart).node;
|
|
93678
|
+
var nend = hoEditorFactory.docTree.findNodePositionByPath(send).node;
|
|
93679
|
+
if (!this._structoredNode) {
|
|
93680
|
+
this._structoredNode = new Array();
|
|
93681
|
+
}
|
|
93682
|
+
this._structoredNode = [];
|
|
93683
|
+
//记录下路径结构
|
|
93684
|
+
if (nstart == nend) {
|
|
93685
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
93686
|
+
from: currDom.startPath,
|
|
93687
|
+
to: currDom.endPath
|
|
93688
|
+
}));
|
|
93689
|
+
} else if (nstart instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_20__/* .CellNode */ .D && nend instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_20__/* .CellNode */ .D && nstart.table == nend.table) {
|
|
93690
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart.table), nstart.table, {
|
|
93691
|
+
from: nstart.range().from,
|
|
93692
|
+
to: nend.range().to
|
|
93693
|
+
}));
|
|
93694
|
+
} else {
|
|
93695
|
+
//开始结束不是同一个cellnode时候 cellnode一定是被全选的, 所以下面的节点from,to需要单独设置下
|
|
93696
|
+
var sNodeLastPath = hoEditorFactory.docTree.getNodeLastPath(nstart);
|
|
93697
|
+
if (sNodeLastPath !== currDom.startPath || sNodeLastPath === currDom.startPath && (sNodeLastPath == "header/0/0" || sNodeLastPath == "footer/0/0" || sNodeLastPath == "main/0")) {
|
|
93698
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
93699
|
+
from: nstart instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__/* .TableNode */ .Fh ? nstart.range().from : currDom.startPath
|
|
93700
|
+
}));
|
|
93701
|
+
}
|
|
93702
|
+
var node = nstart.nextSibling();
|
|
93703
|
+
for (;;) {
|
|
93704
|
+
if (!node) {
|
|
93705
|
+
break;
|
|
93706
|
+
}
|
|
93707
|
+
if (node == nend) {
|
|
93708
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nend), nend, {
|
|
93709
|
+
to: nend instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__/* .TableNode */ .Fh ? nend.range().to : currDom.endPath
|
|
93710
|
+
}));
|
|
93711
|
+
break;
|
|
93712
|
+
} else {
|
|
93713
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(node), node));
|
|
93714
|
+
node = node.nextSibling();
|
|
93715
|
+
}
|
|
93716
|
+
}
|
|
93717
|
+
}
|
|
93718
|
+
this._json = this._Convertor.toJSON(this._structoredNode, isClearValue, type);
|
|
93719
|
+
//console.log("_json", this._json);
|
|
93720
|
+
this._html = this._Convertor.toTHML();
|
|
93721
|
+
this._text = this._Convertor.toText();
|
|
93722
|
+
if (clipboard) {
|
|
93723
|
+
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
93724
|
+
if (this._json != "") {
|
|
93725
|
+
this._json = patientID + ":" + this._json;
|
|
93726
|
+
}
|
|
93727
|
+
if (this._html !== "") {
|
|
93728
|
+
this._html = this._html.replace('<!--StartFragment-->', "<!--StartFragment--><!--:".concat(patientID, "-->"));
|
|
93729
|
+
}
|
|
93730
|
+
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
93731
|
+
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
93732
|
+
clipboard.setData(ClipboardType.ctText, this._text);
|
|
93733
|
+
} else {
|
|
93734
|
+
return this._json;
|
|
93735
|
+
}
|
|
93736
|
+
}
|
|
93737
|
+
}, {
|
|
93738
|
+
key: "Parse",
|
|
93739
|
+
value: function Parse(ctype, data, rootPath, isNewPage) {
|
|
93740
|
+
if (ctype == ClipboardType.ctJSON) return this._Convertor.FromJSON(data, rootPath, isNewPage);
|
|
93741
|
+
if (ctype == ClipboardType.ctHTML) return this._Convertor.FromHTML(data);
|
|
93742
|
+
return this._Convertor.FromText(data);
|
|
93743
|
+
}
|
|
93744
|
+
/**
|
|
93745
|
+
* @description DocTree返回节点在树形结构中共同的父节点
|
|
93746
|
+
*/
|
|
93747
|
+
}, {
|
|
93748
|
+
key: "getAncestorsChild",
|
|
93749
|
+
value: function getAncestorsChild(Spath1, Spath2) {
|
|
93750
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93751
|
+
var path1 = Spath1.split("/");
|
|
93752
|
+
var path2 = Spath2.split("/");
|
|
93753
|
+
var nodes;
|
|
93754
|
+
if (!_dom_NodePosition__WEBPACK_IMPORTED_MODULE_15__/* .NodePosition.pathCanCompare */ .F.pathCanCompare(Spath1, Spath2)) {
|
|
93755
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.PathNotAtSameRoot */ .P.PathNotAtSameRoot();
|
|
93756
|
+
}
|
|
93757
|
+
//比对路径
|
|
93758
|
+
var index = 0;
|
|
93759
|
+
while (path1[index] == path2[index]) {
|
|
93760
|
+
index += 1;
|
|
93761
|
+
if (index > path1.length || index > path2.length) {
|
|
93762
|
+
break;
|
|
93763
|
+
}
|
|
93764
|
+
}
|
|
93765
|
+
//取节点的兄弟节点
|
|
93766
|
+
if (index === 1 || index === 2 && path1[0] !== "main") {
|
|
93767
|
+
//只有第一个符合 在根节点当中main heaer footer
|
|
93768
|
+
var tmp = hoEditorFactory.docTree.findNodePositionByPath(path1.slice(0, index + 1).join("/")).node;
|
|
93769
|
+
if (!tmp) {
|
|
93770
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
93771
|
+
}
|
|
93772
|
+
if (tmp.parentNode) {
|
|
93773
|
+
nodes = tmp.parentNode.childNodes;
|
|
93774
|
+
} else {
|
|
93775
|
+
nodes = tmp.rootNodes;
|
|
93776
|
+
}
|
|
93777
|
+
} else {
|
|
93778
|
+
//在复合节点当中
|
|
93779
|
+
|
|
93780
|
+
var ancestor = path1.slice(0, index).join("/");
|
|
93781
|
+
var _tmp = hoEditorFactory.docTree.findNodePositionByPath(ancestor).node;
|
|
93782
|
+
if (!_tmp) {
|
|
93783
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
93784
|
+
}
|
|
93785
|
+
nodes = _tmp.childNodes;
|
|
93786
|
+
}
|
|
93787
|
+
return {
|
|
93788
|
+
level: index,
|
|
93789
|
+
child: nodes
|
|
93790
|
+
};
|
|
93791
|
+
}
|
|
93792
|
+
}]);
|
|
93793
|
+
return StructureNode;
|
|
93794
|
+
}();
|
|
93795
|
+
|
|
93796
|
+
/***/ }),
|
|
93797
|
+
|
|
93150
93798
|
/***/ 91404:
|
|
93151
93799
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
93152
93800
|
|
|
@@ -100910,7 +101558,7 @@ if(frame.interlaced===true){scanstride+=width*4*7;// Pass 1.
|
|
|
100910
101558
|
for(var i=0,il=index_stream.length;i<il;++i){var index=index_stream[i];if(xleft===0){// Beginning of new scan line
|
|
100911
101559
|
op+=scanstride;xleft=framewidth;if(op>=opend){// Catch the wrap to switch passes when interlacing.
|
|
100912
101560
|
scanstride=framestride*4+width*4*(interlaceskip-1);// interlaceskip / 2 * 4 is interlaceskip << 1.
|
|
100913
|
-
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){//
|
|
101561
|
+
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){// 将Gif格式图片透明背景强制转换为白色 已测试不影响正常png格式图片
|
|
100914
101562
|
// op += 4;
|
|
100915
101563
|
pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;}else{var r=buf[palette_offset+index*3];var g=buf[palette_offset+index*3+1];var b=buf[palette_offset+index*3+2];pixels[op++]=r;pixels[op++]=g;pixels[op++]=b;pixels[op++]=255;}--xleft;}};}function GifReaderLZWOutputIndexStream(code_stream,p,output,output_length){var min_code_size=code_stream[p++];var clear_code=1<<min_code_size;var eoi_code=clear_code+1;var next_code=eoi_code+1;var cur_code_size=min_code_size+1;// Number of bits per code.
|
|
100916
101564
|
// NOTE: This shares the same name as the encoder, but has a different
|
|
@@ -199844,7 +200492,7 @@ var map = {
|
|
|
199844
200492
|
"./table/TableFormTree.vue": 39703,
|
|
199845
200493
|
"./table/TableFormula.vue": 66591,
|
|
199846
200494
|
"./table/TableProperty.vue": 47130,
|
|
199847
|
-
"./table/TableRowProperty.vue":
|
|
200495
|
+
"./table/TableRowProperty.vue": 37466,
|
|
199848
200496
|
"./textDialog/TextDialog.vue": 26401,
|
|
199849
200497
|
"./textDialog/TextToLabelDialog.vue": 35791,
|
|
199850
200498
|
"./textDialog/VerifyTip.vue": 63210,
|
|
@@ -239245,7 +239893,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
239245
239893
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
239246
239894
|
var ParagraphNode = __webpack_require__(67945);
|
|
239247
239895
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
239248
|
-
/* harmony default export */ var version = ('3.0.
|
|
239896
|
+
/* harmony default export */ var version = ('3.0.97');
|
|
239249
239897
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
239250
239898
|
var PoperTipText = __webpack_require__(36081);
|
|
239251
239899
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -245430,491 +246078,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
245430
246078
|
}]);
|
|
245431
246079
|
return StructureConvert;
|
|
245432
246080
|
}();
|
|
245433
|
-
// EXTERNAL MODULE: ./
|
|
245434
|
-
var
|
|
245435
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
245436
|
-
var web_url_to_json = __webpack_require__(83753);
|
|
245437
|
-
// EXTERNAL MODULE: ./src/editor/events/Exception.ts
|
|
245438
|
-
var Exception = __webpack_require__(8277);
|
|
245439
|
-
// EXTERNAL MODULE: ./src/editor/dom/NodePosition.ts
|
|
245440
|
-
var NodePosition = __webpack_require__(42921);
|
|
245441
|
-
;// CONCATENATED MODULE: ./src/editor/utils/StructureNode.ts
|
|
245442
|
-
|
|
245443
|
-
|
|
245444
|
-
|
|
245445
|
-
|
|
245446
|
-
|
|
245447
|
-
|
|
245448
|
-
|
|
245449
|
-
|
|
245450
|
-
|
|
245451
|
-
|
|
245452
|
-
|
|
245453
|
-
|
|
245454
|
-
|
|
245455
|
-
|
|
245456
|
-
|
|
245457
|
-
|
|
245458
|
-
|
|
245459
|
-
|
|
245460
|
-
|
|
245461
|
-
|
|
245462
|
-
|
|
245463
|
-
|
|
245464
|
-
|
|
245465
|
-
// import { HTMLConverter2 } from "./HTMLConverter";
|
|
245466
|
-
|
|
245467
|
-
|
|
245468
|
-
|
|
245469
|
-
|
|
245470
|
-
|
|
245471
|
-
|
|
245472
|
-
|
|
245473
|
-
|
|
245474
|
-
|
|
245475
|
-
var ClipboardType;
|
|
245476
|
-
(function (ClipboardType) {
|
|
245477
|
-
ClipboardType["ctText"] = "text/plain";
|
|
245478
|
-
ClipboardType["ctHTML"] = "text/html";
|
|
245479
|
-
ClipboardType["ctJSON"] = "application/json";
|
|
245480
|
-
})(ClipboardType || (ClipboardType = {}));
|
|
245481
|
-
var NodeConvert = /*#__PURE__*/function () {
|
|
245482
|
-
function NodeConvert(hoEditorFactoryID) {
|
|
245483
|
-
(0,esm_classCallCheck/* default */.Z)(this, NodeConvert);
|
|
245484
|
-
(0,esm_defineProperty/* default */.Z)(this, "_jsondata", void 0);
|
|
245485
|
-
(0,esm_defineProperty/* default */.Z)(this, "_structureRec", void 0);
|
|
245486
|
-
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
245487
|
-
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
245488
|
-
}
|
|
245489
|
-
(0,esm_createClass/* default */.Z)(NodeConvert, [{
|
|
245490
|
-
key: "FromJSON",
|
|
245491
|
-
value: function FromJSON(data, rootPath, isNewPage) {
|
|
245492
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245493
|
-
var nodes = new Array();
|
|
245494
|
-
var rootNodes = new Array();
|
|
245495
|
-
if (rootPath === "main") {
|
|
245496
|
-
rootNodes = hoEditorFactory.docTree.mainNodes;
|
|
245497
|
-
}
|
|
245498
|
-
var jsonArray = JSON.parse(data);
|
|
245499
|
-
var path = hoEditorFactory.docTree.curDomRange.normalize().startPath;
|
|
245500
|
-
var parentNode = hoEditorFactory.docTree.getParentNode(path);
|
|
245501
|
-
var aRootNodes = rootPath ? rootNodes : hoEditorFactory.docTree.curDomRange.normalize().npStart.roots;
|
|
245502
|
-
for (var i = 0; i < jsonArray.length; i++) {
|
|
245503
|
-
var nodeJson = jsonArray[i];
|
|
245504
|
-
if (nodeJson) {
|
|
245505
|
-
var node = hoEditorFactory.structureConvert.convertNode(nodeJson, aRootNodes, rootPath ? null : parentNode, undefined, isNewPage ? false : true);
|
|
245506
|
-
if (!node) {
|
|
245507
|
-
return [];
|
|
245508
|
-
}
|
|
245509
|
-
if (node) {
|
|
245510
|
-
if (node instanceof TextNode/* TextNode */.R && node.text.length === 0) {
|
|
245511
|
-
continue;
|
|
245512
|
-
}
|
|
245513
|
-
if (rootPath) {
|
|
245514
|
-
node.rootPath = rootPath;
|
|
245515
|
-
}
|
|
245516
|
-
nodes.push(node);
|
|
245517
|
-
if (rootPath && rootPath.split('/').length > 1) {
|
|
245518
|
-
rootNodes.push(node);
|
|
245519
|
-
// node.rootNodes = rootNodes;
|
|
245520
|
-
}
|
|
245521
|
-
}
|
|
245522
|
-
}
|
|
245523
|
-
}
|
|
245524
|
-
|
|
245525
|
-
return nodes;
|
|
245526
|
-
}
|
|
245527
|
-
}, {
|
|
245528
|
-
key: "FromHTML",
|
|
245529
|
-
value: function FromHTML(data) {
|
|
245530
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245531
|
-
var rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
|
|
245532
|
-
var r = rx.exec(data);
|
|
245533
|
-
var bodyHtml;
|
|
245534
|
-
if (!r) {
|
|
245535
|
-
return [];
|
|
245536
|
-
} else {
|
|
245537
|
-
bodyHtml = "<div>" + r[1] + "</div>";
|
|
245538
|
-
}
|
|
245539
|
-
var nodes = hoEditorFactory.htmlConverter.Exec(jquery_default()(bodyHtml)[0], "");
|
|
245540
|
-
return nodes;
|
|
245541
|
-
}
|
|
245542
|
-
}, {
|
|
245543
|
-
key: "FromText",
|
|
245544
|
-
value: function FromText(data) {
|
|
245545
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245546
|
-
var nodes = new Array();
|
|
245547
|
-
var textData = data;
|
|
245548
|
-
if (textData) {
|
|
245549
|
-
//根据换行符切割 处理大写情况 \R\N
|
|
245550
|
-
//const uidArr = textData.split(/[(\r\n)|(\R\N)]+/);
|
|
245551
|
-
var uidArr = textData.split(/[\n\r|\r\n|\r|\n]+/);
|
|
245552
|
-
for (var i = 0; i < uidArr.length; i++) {
|
|
245553
|
-
if (!uidArr[i]) continue;
|
|
245554
|
-
if (i > 0) {
|
|
245555
|
-
var paraNode = new ParagraphNode/* ParagraphNode */.C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
|
|
245556
|
-
nodes.push(paraNode);
|
|
245557
|
-
}
|
|
245558
|
-
var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, BaseNode/* NodeType.ntText */.Jq.ntText, uidArr[i], 0);
|
|
245559
|
-
nodes.push(textNode);
|
|
245560
|
-
}
|
|
245561
|
-
}
|
|
245562
|
-
return nodes;
|
|
245563
|
-
}
|
|
245564
|
-
}, {
|
|
245565
|
-
key: "toJSON",
|
|
245566
|
-
value: function toJSON(recs, isClearValue, type) {
|
|
245567
|
-
var _this = this;
|
|
245568
|
-
var jsons = new Array();
|
|
245569
|
-
if (recs[0].node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
245570
|
-
if (recs[0].node.paraNo === 0) {
|
|
245571
|
-
recs.splice(0, 1);
|
|
245572
|
-
}
|
|
245573
|
-
}
|
|
245574
|
-
recs.forEach(function (value, index) {
|
|
245575
|
-
if (isClearValue) {
|
|
245576
|
-
if (value.node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245577
|
-
value.node.text = "";
|
|
245578
|
-
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
245579
|
-
}
|
|
245580
|
-
if (value.node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
245581
|
-
value.node.text = "";
|
|
245582
|
-
}
|
|
245583
|
-
if (value.node instanceof DownListNode/* DownListNode */.yF) {
|
|
245584
|
-
value.node.text = "";
|
|
245585
|
-
}
|
|
245586
|
-
}
|
|
245587
|
-
if (value.node instanceof TextInputFieldNode/* TextInputFieldNode */.re || value.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh || value.node instanceof DownListNode/* DownListNode */.yF || value.node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
245588
|
-
jsons.push(value.node.node2Json(value.range, true, type));
|
|
245589
|
-
} else {
|
|
245590
|
-
//选区有MarkNode时:如果是开始标记,判断对应的结束标记是否在选区内,如果在则复制该节点,反之不复制;
|
|
245591
|
-
//如果是结束标记,判断对应的开始标记是否在选区内,如果在则复制该节点,反之不复制
|
|
245592
|
-
if (value.node instanceof MarkNode/* MarkNode */.j && value.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245593
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this._hoEditorFactoryID);
|
|
245594
|
-
var range = hoEditorFactory.docTree.curDomRange.normalize();
|
|
245595
|
-
if (value.node.MarkNodeType === MarkNode/* MarkNodeType.mtStart */.q.mtStart) {
|
|
245596
|
-
var result = value.node.parentNode.childNodes[value.node.parentNode.childNodes.length - 1].isTotalSelected(range, true);
|
|
245597
|
-
if (result) {
|
|
245598
|
-
jsons.push(value.node.node2Json(value.range, true));
|
|
245599
|
-
}
|
|
245600
|
-
}
|
|
245601
|
-
if (value.node.MarkNodeType === MarkNode/* MarkNodeType.mtEnd */.q.mtEnd) {
|
|
245602
|
-
var _result = value.node.parentNode.childNodes[0].isTotalSelected(range, true);
|
|
245603
|
-
if (_result) {
|
|
245604
|
-
jsons.push(value.node.node2Json(value.range, true));
|
|
245605
|
-
} else {
|
|
245606
|
-
if (index === recs.length - 1) {
|
|
245607
|
-
hoEditorFactory.docTree.curDomRange.endPath = hoEditorFactory.docTree.getNodeLastPath(value.node.previousLeaf());
|
|
245608
|
-
}
|
|
245609
|
-
}
|
|
245610
|
-
}
|
|
245611
|
-
} else {
|
|
245612
|
-
jsons.push(value.node.node2Json(value.range, true));
|
|
245613
|
-
}
|
|
245614
|
-
}
|
|
245615
|
-
});
|
|
245616
|
-
this._jsondata = JSON.stringify(jsons);
|
|
245617
|
-
//console.log(JSON.stringify(jsons));
|
|
245618
|
-
return JSON.stringify(jsons);
|
|
245619
|
-
}
|
|
245620
|
-
// private dataURLtoFile(dataurl: string, filename = 'file') {
|
|
245621
|
-
// const arr = dataurl.split(',')
|
|
245622
|
-
// const mime = arr[0].match(/:(.*?);/)[1]
|
|
245623
|
-
// const suffix = mime.split('/')[1]
|
|
245624
|
-
// const bstr = atob(arr[1])
|
|
245625
|
-
// let n = bstr.length
|
|
245626
|
-
// const u8arr = new Uint8Array(n)
|
|
245627
|
-
// while (n--) {
|
|
245628
|
-
// u8arr[n] = bstr.charCodeAt(n)
|
|
245629
|
-
// }
|
|
245630
|
-
// return new File([u8arr], `${filename}.${suffix}`, {
|
|
245631
|
-
// type: mime
|
|
245632
|
-
// })
|
|
245633
|
-
// }
|
|
245634
|
-
}, {
|
|
245635
|
-
key: "toTHML",
|
|
245636
|
-
value: function toTHML(recs) {
|
|
245637
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245638
|
-
if (recs) this.toJSON(recs);
|
|
245639
|
-
var jsondata = JSON.parse(this._jsondata);
|
|
245640
|
-
if (!jsondata) return "";
|
|
245641
|
-
return hoEditorFactory.toHtmlConverter.Exec(this._hoEditorFactoryID, jsondata);
|
|
245642
|
-
}
|
|
245643
|
-
}, {
|
|
245644
|
-
key: "toText",
|
|
245645
|
-
value: function toText(recs) {
|
|
245646
|
-
if (recs) this.toJSON(recs);
|
|
245647
|
-
var jsondata = JSON.parse(this._jsondata);
|
|
245648
|
-
if (!jsondata) return "";
|
|
245649
|
-
var paragraphText = "";
|
|
245650
|
-
var json2text = function json2text(data) {
|
|
245651
|
-
for (var i = 0; i < data.length; i++) {
|
|
245652
|
-
var item = data[i];
|
|
245653
|
-
if (item["nodeType"]) {
|
|
245654
|
-
if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntText */.Jq.ntText]) {
|
|
245655
|
-
paragraphText += item.text;
|
|
245656
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntParagraph */.Jq.ntParagraph]) {
|
|
245657
|
-
if (i != 0) {
|
|
245658
|
-
paragraphText += "\n";
|
|
245659
|
-
}
|
|
245660
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntLabel */.Jq.ntLabel]) {
|
|
245661
|
-
paragraphText += item.text;
|
|
245662
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntRareChar */.Jq.ntRareChar]) {
|
|
245663
|
-
paragraphText += item.text;
|
|
245664
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntSpecialChar */.Jq.ntSpecialChar]) {
|
|
245665
|
-
paragraphText += item.text;
|
|
245666
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntField */.Jq.ntField]) {
|
|
245667
|
-
json2text(item.childNodes.item);
|
|
245668
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntTable */.Jq.ntTable]) {
|
|
245669
|
-
if (Array.isArray(item.childNodes.item)) json2text(item.childNodes.item);
|
|
245670
|
-
} else if (item.nodeType == "ntRow") {
|
|
245671
|
-
if (i != 0) {
|
|
245672
|
-
paragraphText += "\n";
|
|
245673
|
-
}
|
|
245674
|
-
json2text(item.childNodes.item);
|
|
245675
|
-
} else if (item.nodeType == BaseNode/* NodeType */.Jq[BaseNode/* NodeType.ntCell */.Jq.ntCell]) {
|
|
245676
|
-
if (i != 0) paragraphText += "\t";
|
|
245677
|
-
json2text(item.childNodes.item);
|
|
245678
|
-
}
|
|
245679
|
-
}
|
|
245680
|
-
// else if (item.childNode) {
|
|
245681
|
-
// json2text(item.childNode);
|
|
245682
|
-
// }
|
|
245683
|
-
}
|
|
245684
|
-
};
|
|
245685
|
-
|
|
245686
|
-
json2text(jsondata);
|
|
245687
|
-
return paragraphText;
|
|
245688
|
-
}
|
|
245689
|
-
}]);
|
|
245690
|
-
return NodeConvert;
|
|
245691
|
-
}();
|
|
245692
|
-
/**
|
|
245693
|
-
* 结构化的节点范围记录
|
|
245694
|
-
*/
|
|
245695
|
-
var StructureRecord = /*#__PURE__*/function () {
|
|
245696
|
-
function StructureRecord(hoEditorFactoryID, startPath, Node, val) {
|
|
245697
|
-
(0,esm_classCallCheck/* default */.Z)(this, StructureRecord);
|
|
245698
|
-
(0,esm_defineProperty/* default */.Z)(this, "_node", void 0);
|
|
245699
|
-
(0,esm_defineProperty/* default */.Z)(this, "_path", void 0);
|
|
245700
|
-
(0,esm_defineProperty/* default */.Z)(this, "_range", void 0);
|
|
245701
|
-
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
245702
|
-
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
245703
|
-
this._node = Node;
|
|
245704
|
-
this._path = startPath;
|
|
245705
|
-
this._range = val;
|
|
245706
|
-
}
|
|
245707
|
-
(0,esm_createClass/* default */.Z)(StructureRecord, [{
|
|
245708
|
-
key: "node",
|
|
245709
|
-
get: function get() {
|
|
245710
|
-
return this._node;
|
|
245711
|
-
}
|
|
245712
|
-
}, {
|
|
245713
|
-
key: "range",
|
|
245714
|
-
get: function get() {
|
|
245715
|
-
return this._range;
|
|
245716
|
-
}
|
|
245717
|
-
}]);
|
|
245718
|
-
return StructureRecord;
|
|
245719
|
-
}();
|
|
245720
|
-
var StructureNode = /*#__PURE__*/function () {
|
|
245721
|
-
function StructureNode(hoEditorFactoryID) {
|
|
245722
|
-
(0,esm_classCallCheck/* default */.Z)(this, StructureNode);
|
|
245723
|
-
(0,esm_defineProperty/* default */.Z)(this, "_json", void 0);
|
|
245724
|
-
(0,esm_defineProperty/* default */.Z)(this, "_html", void 0);
|
|
245725
|
-
(0,esm_defineProperty/* default */.Z)(this, "_text", void 0);
|
|
245726
|
-
(0,esm_defineProperty/* default */.Z)(this, "_structoredNode", void 0);
|
|
245727
|
-
(0,esm_defineProperty/* default */.Z)(this, "_Convertor", void 0);
|
|
245728
|
-
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
245729
|
-
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
245730
|
-
this._Convertor = new NodeConvert(this._hoEditorFactoryID);
|
|
245731
|
-
}
|
|
245732
|
-
(0,esm_createClass/* default */.Z)(StructureNode, [{
|
|
245733
|
-
key: "Convertor",
|
|
245734
|
-
get:
|
|
245735
|
-
// private static _instance: StructureNode;
|
|
245736
|
-
|
|
245737
|
-
// public static instance(hoef: HOEditorFactory) {
|
|
245738
|
-
// if (!this._instance) {
|
|
245739
|
-
// this._instance = hoef.structureNode;
|
|
245740
|
-
// // this._instance = new StructureNode();
|
|
245741
|
-
// }
|
|
245742
|
-
// return this._instance;
|
|
245743
|
-
// }
|
|
245744
|
-
|
|
245745
|
-
/**
|
|
245746
|
-
* Getter Convertor
|
|
245747
|
-
* @return {NodeConvert}
|
|
245748
|
-
*/
|
|
245749
|
-
function get() {
|
|
245750
|
-
return this._Convertor;
|
|
245751
|
-
}
|
|
245752
|
-
}, {
|
|
245753
|
-
key: "jsondata",
|
|
245754
|
-
get: function get() {
|
|
245755
|
-
return this._json;
|
|
245756
|
-
}
|
|
245757
|
-
}, {
|
|
245758
|
-
key: "htmldata",
|
|
245759
|
-
get: function get() {
|
|
245760
|
-
return this._html;
|
|
245761
|
-
}
|
|
245762
|
-
}, {
|
|
245763
|
-
key: "textdata",
|
|
245764
|
-
get: function get() {
|
|
245765
|
-
return this._text;
|
|
245766
|
-
}
|
|
245767
|
-
/**
|
|
245768
|
-
* 返回节点开始路径,即前一个节点的最后路径
|
|
245769
|
-
* @param node 节点
|
|
245770
|
-
*/
|
|
245771
|
-
}, {
|
|
245772
|
-
key: "getPrevLastPath",
|
|
245773
|
-
value: function getPrevLastPath(node) {
|
|
245774
|
-
var prev = node.range();
|
|
245775
|
-
return prev.from;
|
|
245776
|
-
}
|
|
245777
|
-
/**
|
|
245778
|
-
* 复制时候结构化的存储,粘贴时候才能带结构的输出
|
|
245779
|
-
* @param dom
|
|
245780
|
-
* @param clipboard
|
|
245781
|
-
*/
|
|
245782
|
-
}, {
|
|
245783
|
-
key: "Copy",
|
|
245784
|
-
value: function Copy(dom, clipboard, isClearValue, type) {
|
|
245785
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245786
|
-
if (hoEditorFactory.forbidPaste && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
245787
|
-
message/* default.warn */.Z.warn("根据书写规范要求,不允许复制病历文本内容");
|
|
245788
|
-
return;
|
|
245789
|
-
}
|
|
245790
|
-
var currDom;
|
|
245791
|
-
if (dom instanceof DomRange/* DomRange */.a) {
|
|
245792
|
-
currDom = dom.normalize();
|
|
245793
|
-
} else {
|
|
245794
|
-
var tmp = dom[0].range();
|
|
245795
|
-
currDom = new DomRange/* DomRange */.a(this._hoEditorFactoryID, tmp.from, hoEditorFactory.docTree.getNodeLastPath(dom[dom.length - 1]));
|
|
245796
|
-
}
|
|
245797
|
-
var info = this.getAncestorsChild(currDom.startPath, currDom.endPath);
|
|
245798
|
-
var sstart = currDom.startPath.split("/").slice(0, info.level + 1).join("/");
|
|
245799
|
-
var send = currDom.endPath.split("/").slice(0, info.level + 1).join("/");
|
|
245800
|
-
var nstart = hoEditorFactory.docTree.findNodePositionByPath(sstart).node;
|
|
245801
|
-
var nend = hoEditorFactory.docTree.findNodePositionByPath(send).node;
|
|
245802
|
-
if (!this._structoredNode) {
|
|
245803
|
-
this._structoredNode = new Array();
|
|
245804
|
-
}
|
|
245805
|
-
this._structoredNode = [];
|
|
245806
|
-
//记录下路径结构
|
|
245807
|
-
if (nstart == nend) {
|
|
245808
|
-
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
245809
|
-
from: currDom.startPath,
|
|
245810
|
-
to: currDom.endPath
|
|
245811
|
-
}));
|
|
245812
|
-
} else if (nstart instanceof CellNode/* CellNode */.D && nend instanceof CellNode/* CellNode */.D && nstart.table == nend.table) {
|
|
245813
|
-
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart.table), nstart.table, {
|
|
245814
|
-
from: nstart.range().from,
|
|
245815
|
-
to: nend.range().to
|
|
245816
|
-
}));
|
|
245817
|
-
} else {
|
|
245818
|
-
//开始结束不是同一个cellnode时候 cellnode一定是被全选的, 所以下面的节点from,to需要单独设置下
|
|
245819
|
-
var sNodeLastPath = hoEditorFactory.docTree.getNodeLastPath(nstart);
|
|
245820
|
-
if (sNodeLastPath !== currDom.startPath || sNodeLastPath === currDom.startPath && (sNodeLastPath == "header/0/0" || sNodeLastPath == "footer/0/0" || sNodeLastPath == "main/0")) {
|
|
245821
|
-
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
245822
|
-
from: nstart instanceof TableNode/* TableNode */.Fh ? nstart.range().from : currDom.startPath
|
|
245823
|
-
}));
|
|
245824
|
-
}
|
|
245825
|
-
var node = nstart.nextSibling();
|
|
245826
|
-
for (;;) {
|
|
245827
|
-
if (!node) {
|
|
245828
|
-
break;
|
|
245829
|
-
}
|
|
245830
|
-
if (node == nend) {
|
|
245831
|
-
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nend), nend, {
|
|
245832
|
-
to: nend instanceof TableNode/* TableNode */.Fh ? nend.range().to : currDom.endPath
|
|
245833
|
-
}));
|
|
245834
|
-
break;
|
|
245835
|
-
} else {
|
|
245836
|
-
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(node), node));
|
|
245837
|
-
node = node.nextSibling();
|
|
245838
|
-
}
|
|
245839
|
-
}
|
|
245840
|
-
}
|
|
245841
|
-
this._json = this._Convertor.toJSON(this._structoredNode, isClearValue, type);
|
|
245842
|
-
//console.log("_json", this._json);
|
|
245843
|
-
this._html = this._Convertor.toTHML();
|
|
245844
|
-
this._text = this._Convertor.toText();
|
|
245845
|
-
if (clipboard) {
|
|
245846
|
-
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
245847
|
-
if (this._json != "") {
|
|
245848
|
-
this._json = patientID + ":" + this._json;
|
|
245849
|
-
}
|
|
245850
|
-
if (this._html !== "") {
|
|
245851
|
-
this._html = this._html.replace('<!--StartFragment-->', "<!--StartFragment--><!--:".concat(patientID, "-->"));
|
|
245852
|
-
}
|
|
245853
|
-
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
245854
|
-
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
245855
|
-
clipboard.setData(ClipboardType.ctText, this._text);
|
|
245856
|
-
} else {
|
|
245857
|
-
return this._json;
|
|
245858
|
-
}
|
|
245859
|
-
}
|
|
245860
|
-
}, {
|
|
245861
|
-
key: "Parse",
|
|
245862
|
-
value: function Parse(ctype, data, rootPath, isNewPage) {
|
|
245863
|
-
if (ctype == ClipboardType.ctJSON) return this._Convertor.FromJSON(data, rootPath, isNewPage);
|
|
245864
|
-
if (ctype == ClipboardType.ctHTML) return this._Convertor.FromHTML(data);
|
|
245865
|
-
return this._Convertor.FromText(data);
|
|
245866
|
-
}
|
|
245867
|
-
/**
|
|
245868
|
-
* @description DocTree返回节点在树形结构中共同的父节点
|
|
245869
|
-
*/
|
|
245870
|
-
}, {
|
|
245871
|
-
key: "getAncestorsChild",
|
|
245872
|
-
value: function getAncestorsChild(Spath1, Spath2) {
|
|
245873
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
245874
|
-
var path1 = Spath1.split("/");
|
|
245875
|
-
var path2 = Spath2.split("/");
|
|
245876
|
-
var nodes;
|
|
245877
|
-
if (!NodePosition/* NodePosition.pathCanCompare */.F.pathCanCompare(Spath1, Spath2)) {
|
|
245878
|
-
throw Exception/* Exception.PathNotAtSameRoot */.P.PathNotAtSameRoot();
|
|
245879
|
-
}
|
|
245880
|
-
//比对路径
|
|
245881
|
-
var index = 0;
|
|
245882
|
-
while (path1[index] == path2[index]) {
|
|
245883
|
-
index += 1;
|
|
245884
|
-
if (index > path1.length || index > path2.length) {
|
|
245885
|
-
break;
|
|
245886
|
-
}
|
|
245887
|
-
}
|
|
245888
|
-
//取节点的兄弟节点
|
|
245889
|
-
if (index === 1 || index === 2 && path1[0] !== "main") {
|
|
245890
|
-
//只有第一个符合 在根节点当中main heaer footer
|
|
245891
|
-
var tmp = hoEditorFactory.docTree.findNodePositionByPath(path1.slice(0, index + 1).join("/")).node;
|
|
245892
|
-
if (!tmp) {
|
|
245893
|
-
throw Exception/* Exception.NodeNotFound */.P.NodeNotFound();
|
|
245894
|
-
}
|
|
245895
|
-
if (tmp.parentNode) {
|
|
245896
|
-
nodes = tmp.parentNode.childNodes;
|
|
245897
|
-
} else {
|
|
245898
|
-
nodes = tmp.rootNodes;
|
|
245899
|
-
}
|
|
245900
|
-
} else {
|
|
245901
|
-
//在复合节点当中
|
|
245902
|
-
|
|
245903
|
-
var ancestor = path1.slice(0, index).join("/");
|
|
245904
|
-
var _tmp = hoEditorFactory.docTree.findNodePositionByPath(ancestor).node;
|
|
245905
|
-
if (!_tmp) {
|
|
245906
|
-
throw Exception/* Exception.NodeNotFound */.P.NodeNotFound();
|
|
245907
|
-
}
|
|
245908
|
-
nodes = _tmp.childNodes;
|
|
245909
|
-
}
|
|
245910
|
-
return {
|
|
245911
|
-
level: index,
|
|
245912
|
-
child: nodes
|
|
245913
|
-
};
|
|
245914
|
-
}
|
|
245915
|
-
}]);
|
|
245916
|
-
return StructureNode;
|
|
245917
|
-
}();
|
|
246081
|
+
// EXTERNAL MODULE: ./src/editor/utils/StructureNode.ts
|
|
246082
|
+
var StructureNode = __webpack_require__(63602);
|
|
245918
246083
|
;// CONCATENATED MODULE: ./src/editor/utils/TestDataSet.ts
|
|
245919
246084
|
|
|
245920
246085
|
|
|
@@ -250013,7 +250178,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250013
250178
|
if (area === 'footer') {
|
|
250014
250179
|
rootPath = 'footer/' + hoEditorFactory.subDocManger.footerDocTree.length.toString();
|
|
250015
250180
|
}
|
|
250016
|
-
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData, rootPath, isNewPage);
|
|
250181
|
+
var nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData, rootPath, isNewPage);
|
|
250017
250182
|
if (isDelBlockLine && area === 'main' && nodes.length > 1 && nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C && !(nodes[nodes.length - 2] instanceof TableNode/* TableNode */.Fh)) {
|
|
250018
250183
|
nodes.splice(nodes.length - 1, 1);
|
|
250019
250184
|
}
|
|
@@ -250569,7 +250734,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250569
250734
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
250570
250735
|
case 8:
|
|
250571
250736
|
hoEditorFactory.docTree.curDomRange.setSamePath(sPath);
|
|
250572
|
-
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250737
|
+
nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250573
250738
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
250574
250739
|
headerNode[0].paraNo = nodes[0].paraNo;
|
|
250575
250740
|
//(headerNode[0] as ParagraphNode).styleIndex = (nodes[0] as ParagraphNode).styleIndex;
|
|
@@ -250642,7 +250807,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250642
250807
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
250643
250808
|
case 7:
|
|
250644
250809
|
hoEditorFactory.docTree.curDomRange.setSamePath('footer/0/0');
|
|
250645
|
-
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250810
|
+
nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250646
250811
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
250647
250812
|
footerNode[0].paraNo = nodes[0].paraNo;
|
|
250648
250813
|
//(footerNode[0] as ParagraphNode).styleIndex = (nodes[0] as ParagraphNode).styleIndex;
|
|
@@ -250699,7 +250864,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250699
250864
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
250700
250865
|
if (result) {
|
|
250701
250866
|
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) === 'object') {
|
|
250702
|
-
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250867
|
+
var nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250703
250868
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
250704
250869
|
} else {
|
|
250705
250870
|
hoEditorFactory.docController.keyBoardInput(jsonData);
|
|
@@ -253155,9 +253320,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253155
253320
|
value: function html2Xml(json) {
|
|
253156
253321
|
var _this6 = this;
|
|
253157
253322
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
253158
|
-
var headerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.header);
|
|
253159
|
-
var footerNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.footer);
|
|
253160
|
-
var mainNodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctHTML, json.main);
|
|
253323
|
+
var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.header);
|
|
253324
|
+
var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.footer);
|
|
253325
|
+
var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.main);
|
|
253161
253326
|
var insertParaNode = function insertParaNode(area, index) {
|
|
253162
253327
|
var node = new ParagraphNode/* ParagraphNode */.C(_this6._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
253163
253328
|
if (area == 'header') {
|
|
@@ -253272,7 +253437,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253272
253437
|
rowHeight: 0,
|
|
253273
253438
|
sameLineCanAcrossPages: true,
|
|
253274
253439
|
tabKeyInsNewLine: false,
|
|
253275
|
-
isLockRowHeight: false
|
|
253440
|
+
isLockRowHeight: false,
|
|
253441
|
+
newLineWithCellContent: false
|
|
253276
253442
|
};
|
|
253277
253443
|
var defaultRowPropJson = JSON.parse(JSON.stringify(defaultRowProp));
|
|
253278
253444
|
var rowInfosArray = new Array();
|
|
@@ -253294,7 +253460,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253294
253460
|
rowHeight: rowInfo.rowProperty.rowHeight,
|
|
253295
253461
|
sameLineCanAcrossPages: rowInfo.rowProperty.sameLineCanAcrossPages,
|
|
253296
253462
|
tabKeyInsNewLine: rowInfo.rowProperty.tabKeyInsNewLine,
|
|
253297
|
-
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight
|
|
253463
|
+
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight,
|
|
253464
|
+
newLineWithCellContent: rowInfo.rowProperty.newLineWithCellContent
|
|
253298
253465
|
};
|
|
253299
253466
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
253300
253467
|
var keysName = Object.keys(defaultRowProp);
|
|
@@ -255241,7 +255408,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255241
255408
|
var index = jsonData.indexOf(":");
|
|
255242
255409
|
jsonData = jsonData.substring(index + 1, jsonData.length);
|
|
255243
255410
|
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
255244
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255411
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255245
255412
|
} else {
|
|
255246
255413
|
if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
|
|
255247
255414
|
message/* default.warn */.Z.warn("不能将他人病历内容复制粘贴到该患者病历中");
|
|
@@ -255249,14 +255416,14 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255249
255416
|
}
|
|
255250
255417
|
var jsonObject = JSON.parse(jsonData);
|
|
255251
255418
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
255252
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255419
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255253
255420
|
} else if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntRareChar") {
|
|
255254
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255421
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255255
255422
|
} else {
|
|
255256
255423
|
if (htmlData) {
|
|
255257
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
255424
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, htmlData);
|
|
255258
255425
|
} else {
|
|
255259
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
255426
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctText */.Y6.ctText, textData);
|
|
255260
255427
|
}
|
|
255261
255428
|
}
|
|
255262
255429
|
}
|
|
@@ -255270,9 +255437,9 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255270
255437
|
return;
|
|
255271
255438
|
}
|
|
255272
255439
|
}
|
|
255273
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
255440
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, htmlData);
|
|
255274
255441
|
} else {
|
|
255275
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
255442
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctText */.Y6.ctText, textData);
|
|
255276
255443
|
}
|
|
255277
255444
|
if (hoeditorfactory.limitCharNumber > 0 && hoeditorfactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
255278
255445
|
var str = "";
|
|
@@ -260354,7 +260521,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
260354
260521
|
key: "structureNode",
|
|
260355
260522
|
get: function get() {
|
|
260356
260523
|
if (!this._structureNode) {
|
|
260357
|
-
this._structureNode = new StructureNode(this._hoEditorFactoryId);
|
|
260524
|
+
this._structureNode = new StructureNode/* StructureNode */.Un(this._hoEditorFactoryId);
|
|
260358
260525
|
}
|
|
260359
260526
|
return this._structureNode;
|
|
260360
260527
|
}
|
|
@@ -265418,8 +265585,8 @@ var ToolControlvue_type_template_id_08c856c8_render = function render() {
|
|
|
265418
265585
|
};
|
|
265419
265586
|
var ToolControlvue_type_template_id_08c856c8_staticRenderFns = [];
|
|
265420
265587
|
|
|
265421
|
-
;// 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=
|
|
265422
|
-
var
|
|
265588
|
+
;// 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=069ded6b&
|
|
265589
|
+
var HoSpecialCharsvue_type_template_id_069ded6b_render = function render() {
|
|
265423
265590
|
var _vm = this,
|
|
265424
265591
|
_c = _vm._self._c;
|
|
265425
265592
|
return _c('a-dropdown', {
|
|
@@ -265494,7 +265661,7 @@ var HoSpecialCharsvue_type_template_id_4431c0bf_render = function render() {
|
|
|
265494
265661
|
}, [_vm._v(_vm._s(chars))]);
|
|
265495
265662
|
}), 0)])])])])], 1)], 1)], 2);
|
|
265496
265663
|
};
|
|
265497
|
-
var
|
|
265664
|
+
var HoSpecialCharsvue_type_template_id_069ded6b_staticRenderFns = [];
|
|
265498
265665
|
|
|
265499
265666
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js
|
|
265500
265667
|
/** vue-property-decorator verson 8.5.1 MIT LICENSE copyright 2020 kaorun343 */
|
|
@@ -265793,7 +265960,7 @@ function isPromise(obj) {
|
|
|
265793
265960
|
data: function data() {
|
|
265794
265961
|
return {
|
|
265795
265962
|
arrChars: ['㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡'],
|
|
265796
|
-
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '「', '」', '『', '』', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '′', '″', '℃', '$', '¤', '¢', '£', '‰', '§', '№', '※', '→', '←', '↑', '↓', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '
|
|
265963
|
+
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '{', '}', '【', '】', '〖', '〗', '「', '」', '『', '』', '﹂', '﹁', '└', '┐', '┌', '┘', '|', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', 'λ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '○', '◎', '□', '∫', '∮', '≡', '≌', '≈', '~', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '•', '●', '′', '″', '℃', '$', '¥', '¤', '¢', '£', '‰', '%', '§', '№', '#', '※', '→', '←', '↑', '↓', '℡', '▽', '△', '/', '∕', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', 'mmol/L', 'μmol/L', 'umol/L', 'pg/ml', 'ng/ml', 'mmHg', 'g/L', 'Cells', 'Φ', '次/分', '?á', '?à', '£L', '?', '??', '+2'],
|
|
265797
265964
|
romanChars: ['ⅰ', 'ⅱ', 'ⅲ', 'ⅳ', 'ⅴ', 'ⅵ', 'ⅶ', 'ⅷ', 'ⅸ', 'ⅹ', 'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ'],
|
|
265798
265965
|
usedChars: [],
|
|
265799
265966
|
mathChars: ['⒈', '⒉', '⒊', '⒋', '⒌', '⒍', '⒎', '⒏', '⒐', '⒑', '⒒', '⒓', '⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', '⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '㈠', '㈡', '㈢', '㈣', '㈤', '㈥', '㈦', '㈧', '㈨', '㈩']
|
|
@@ -265823,10 +265990,10 @@ function isPromise(obj) {
|
|
|
265823
265990
|
});
|
|
265824
265991
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
265825
265992
|
/* harmony default export */ var insert_HoSpecialCharsvue_type_script_lang_js_ = (HoSpecialCharsvue_type_script_lang_js_);
|
|
265826
|
-
;// 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/insert/HoSpecialChars.vue?vue&type=style&index=0&id=
|
|
265993
|
+
;// 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/insert/HoSpecialChars.vue?vue&type=style&index=0&id=069ded6b&prod&lang=scss&
|
|
265827
265994
|
// extracted by mini-css-extract-plugin
|
|
265828
265995
|
|
|
265829
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=
|
|
265996
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=069ded6b&prod&lang=scss&
|
|
265830
265997
|
|
|
265831
265998
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue
|
|
265832
265999
|
|
|
@@ -265839,8 +266006,8 @@ function isPromise(obj) {
|
|
|
265839
266006
|
|
|
265840
266007
|
var HoSpecialChars_component = (0,componentNormalizer/* default */.Z)(
|
|
265841
266008
|
insert_HoSpecialCharsvue_type_script_lang_js_,
|
|
265842
|
-
|
|
265843
|
-
|
|
266009
|
+
HoSpecialCharsvue_type_template_id_069ded6b_render,
|
|
266010
|
+
HoSpecialCharsvue_type_template_id_069ded6b_staticRenderFns,
|
|
265844
266011
|
false,
|
|
265845
266012
|
null,
|
|
265846
266013
|
null,
|