hoeditor-web 3.0.95 → 3.0.96
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 +688 -557
- 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
|
+
/***/ 25421:
|
|
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=53b57826&
|
|
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: {
|
|
@@ -20789,6 +20801,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20789
20801
|
forcedPageBreak: false,
|
|
20790
20802
|
printCellBorders: true,
|
|
20791
20803
|
printCellBg: true,
|
|
20804
|
+
newLineWithCellContent: false,
|
|
20792
20805
|
tabKeyInsNewLine: false,
|
|
20793
20806
|
customProperties: [{
|
|
20794
20807
|
name: '',
|
|
@@ -20860,6 +20873,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
20860
20873
|
this.printCellBg = this.rowProperty.printCellBg;
|
|
20861
20874
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
20862
20875
|
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
20876
|
+
this.newLineWithCellContent = this.rowProperty.newLineWithCellContent;
|
|
20863
20877
|
}
|
|
20864
20878
|
},
|
|
20865
20879
|
getCellNodes: function getCellNodes() {
|
|
@@ -20925,7 +20939,8 @@ var TableNode = __webpack_require__(5010);
|
|
|
20925
20939
|
forcedPageBreak: this.forcedPageBreak,
|
|
20926
20940
|
printCellBorders: this.printCellBorders,
|
|
20927
20941
|
printCellBg: this.printCellBg,
|
|
20928
|
-
tabKeyInsNewLine: this.tabKeyInsNewLine
|
|
20942
|
+
tabKeyInsNewLine: this.tabKeyInsNewLine,
|
|
20943
|
+
newLineWithCellContent: this.newLineWithCellContent
|
|
20929
20944
|
};
|
|
20930
20945
|
var param = {};
|
|
20931
20946
|
Object.keys(params).forEach(function (key) {
|
|
@@ -20953,10 +20968,10 @@ var TableNode = __webpack_require__(5010);
|
|
|
20953
20968
|
});
|
|
20954
20969
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
20955
20970
|
/* 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=
|
|
20971
|
+
;// 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=53b57826&prod&lang=scss&
|
|
20957
20972
|
// extracted by mini-css-extract-plugin
|
|
20958
20973
|
|
|
20959
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
20974
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=53b57826&prod&lang=scss&
|
|
20960
20975
|
|
|
20961
20976
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20962
20977
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -39373,10 +39388,10 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
39373
39388
|
/* 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
39389
|
/* 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
39390
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94310);
|
|
39376
|
-
/* harmony import */ var
|
|
39391
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(40735);
|
|
39377
39392
|
/* 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
|
|
39393
|
+
/* 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);
|
|
39394
|
+
/* 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
39395
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57658);
|
|
39381
39396
|
/* 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
39397
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
@@ -39476,6 +39491,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
39476
39491
|
/* harmony import */ var _undoRedo_TableUndos_TableDeleteParagraphUndoUnit__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(90809);
|
|
39477
39492
|
/* harmony import */ var _treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(34910);
|
|
39478
39493
|
/* harmony import */ var _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(330);
|
|
39494
|
+
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(63602);
|
|
39495
|
+
|
|
39479
39496
|
|
|
39480
39497
|
|
|
39481
39498
|
|
|
@@ -39573,10 +39590,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39573
39590
|
|
|
39574
39591
|
function DocController(hoEditorFactoryID) {
|
|
39575
39592
|
(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,
|
|
39593
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_90__/* ["default"] */ .Z)(this, "_findContent", "");
|
|
39594
|
+
(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);
|
|
39595
|
+
(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);
|
|
39596
|
+
(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
39597
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
39581
39598
|
this._onInsertNodeByID = null;
|
|
39582
39599
|
}
|
|
@@ -39586,7 +39603,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39586
39603
|
// }
|
|
39587
39604
|
// return this._instance;
|
|
39588
39605
|
// }
|
|
39589
|
-
(0,
|
|
39606
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_91__/* ["default"] */ .Z)(DocController, [{
|
|
39590
39607
|
key: "onInsertNodeByID",
|
|
39591
39608
|
get: function get() {
|
|
39592
39609
|
return this._onInsertNodeByID;
|
|
@@ -39703,7 +39720,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39703
39720
|
value: function keyBoardInput(text) {
|
|
39704
39721
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39705
39722
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psReview */ .Dh.psReview) {
|
|
39706
|
-
|
|
39723
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("质控医生站的病历只可进行批注不可编辑修改");
|
|
39707
39724
|
return;
|
|
39708
39725
|
}
|
|
39709
39726
|
// alert(text);
|
|
@@ -39741,7 +39758,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39741
39758
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
39742
39759
|
//const cellText = cellNode.getCellText();
|
|
39743
39760
|
if (!isAllowEdit) {
|
|
39744
|
-
|
|
39761
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
39745
39762
|
return;
|
|
39746
39763
|
}
|
|
39747
39764
|
}
|
|
@@ -39749,7 +39766,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39749
39766
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
39750
39767
|
//const cellText = cellNode.getCellText();
|
|
39751
39768
|
if (!_isAllowEdit) {
|
|
39752
|
-
|
|
39769
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许用户直接编辑,请双击单元格进行选择.");
|
|
39753
39770
|
return;
|
|
39754
39771
|
}
|
|
39755
39772
|
}
|
|
@@ -40106,7 +40123,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40106
40123
|
domRange = domRange.normalize();
|
|
40107
40124
|
} 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
40125
|
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
|
-
|
|
40126
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("审阅模式下,只能选中文档内容进行删除");
|
|
40110
40127
|
return;
|
|
40111
40128
|
}
|
|
40112
40129
|
}
|
|
@@ -40328,7 +40345,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40328
40345
|
_context.next = 87;
|
|
40329
40346
|
break;
|
|
40330
40347
|
}
|
|
40331
|
-
|
|
40348
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("审阅模式下,只能对文本内容进行删除");
|
|
40332
40349
|
return _context.abrupt("return");
|
|
40333
40350
|
case 87:
|
|
40334
40351
|
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 +40357,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40340
40357
|
_context.next = 92;
|
|
40341
40358
|
break;
|
|
40342
40359
|
}
|
|
40343
|
-
|
|
40360
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不是本人签名,不允许删除!");
|
|
40344
40361
|
return _context.abrupt("return");
|
|
40345
40362
|
case 92:
|
|
40346
40363
|
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
40364
|
_context.next = 95;
|
|
40348
40365
|
break;
|
|
40349
40366
|
}
|
|
40350
|
-
|
|
40367
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许使用删除键删除签名,请右键删除元素");
|
|
40351
40368
|
return _context.abrupt("return");
|
|
40352
40369
|
case 95:
|
|
40353
40370
|
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
40371
|
_context.next = 98;
|
|
40355
40372
|
break;
|
|
40356
40373
|
}
|
|
40357
|
-
|
|
40374
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("该签名元素不允许删除!");
|
|
40358
40375
|
return _context.abrupt("return");
|
|
40359
40376
|
case 98:
|
|
40360
40377
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N)) {
|
|
@@ -41240,11 +41257,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41240
41257
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41241
41258
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41242
41259
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_45__/* .TextInputFieldNode */ .re) {
|
|
41243
|
-
|
|
41260
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在文本域内插入表格");
|
|
41244
41261
|
return;
|
|
41245
41262
|
}
|
|
41246
41263
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_56__/* .CellNode */ .D) {
|
|
41247
|
-
|
|
41264
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表格内再插入表格");
|
|
41248
41265
|
return;
|
|
41249
41266
|
}
|
|
41250
41267
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -41307,13 +41324,31 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41307
41324
|
c = _cell$table$getCellIn2[1];
|
|
41308
41325
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit && r > 0) {
|
|
41309
41326
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41310
|
-
|
|
41327
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
41311
41328
|
return;
|
|
41312
41329
|
}
|
|
41313
41330
|
}
|
|
41314
41331
|
hoEditorFactory.undoService.begin();
|
|
41315
41332
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r, r, count));
|
|
41316
41333
|
hoEditorFactory.undoService.commit();
|
|
41334
|
+
var newLineWithCellContent = cell.table.rowInfos[r + count].rowProperty.newLineWithCellContent;
|
|
41335
|
+
if (newLineWithCellContent) {
|
|
41336
|
+
for (var i = r; i < r + count; i++) {
|
|
41337
|
+
for (var j = 0; j < cell.table.colCount; j++) {
|
|
41338
|
+
var tCell = cell.table.rows[i][j];
|
|
41339
|
+
var sCell = cell.table.rows[r + count][j];
|
|
41340
|
+
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41341
|
+
var spath = sCell.childNodes[0].getNodePath();
|
|
41342
|
+
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41343
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41344
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
41345
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41346
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__/* .ClipboardType.ctJSON */ .Y6.ctJSON, jsonData);
|
|
41347
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
41348
|
+
}
|
|
41349
|
+
}
|
|
41350
|
+
}
|
|
41351
|
+
}
|
|
41317
41352
|
var sCellNode = cell.table.rows[r][0];
|
|
41318
41353
|
if (!sCellNode) {
|
|
41319
41354
|
for (var s = 1; s < cell.table.rows[r].length; s++) {
|
|
@@ -41358,7 +41393,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41358
41393
|
// );
|
|
41359
41394
|
// }
|
|
41360
41395
|
} else {
|
|
41361
|
-
|
|
41396
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
41362
41397
|
return;
|
|
41363
41398
|
}
|
|
41364
41399
|
}
|
|
@@ -41379,13 +41414,31 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41379
41414
|
c = _cell$table$getCellIn4[1];
|
|
41380
41415
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psEdit */ .Dh.psEdit) {
|
|
41381
41416
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41382
|
-
|
|
41417
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许在表头行中间插入行");
|
|
41383
41418
|
return;
|
|
41384
41419
|
}
|
|
41385
41420
|
}
|
|
41386
41421
|
hoEditorFactory.undoService.begin();
|
|
41387
41422
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertRowUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertRowUndoUnit */ .I(this._hoEditorFactoryID, cell.table, r + 1, r, count));
|
|
41388
41423
|
hoEditorFactory.undoService.commit();
|
|
41424
|
+
var newLineWithCellContent = cell.table.rowInfos[r].rowProperty.newLineWithCellContent;
|
|
41425
|
+
if (newLineWithCellContent) {
|
|
41426
|
+
for (var i = r + 1; i < r + 1 + count; i++) {
|
|
41427
|
+
for (var j = 0; j < cell.table.colCount; j++) {
|
|
41428
|
+
var tCell = cell.table.rows[i][j];
|
|
41429
|
+
var sCell = cell.table.rows[r][j];
|
|
41430
|
+
if (tCell && sCell && sCell.childNodes.length > 1) {
|
|
41431
|
+
var spath = sCell.childNodes[0].getNodePath();
|
|
41432
|
+
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
41433
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
41434
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
41435
|
+
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_89__/* .ClipboardType.ctJSON */ .Y6.ctJSON, jsonData);
|
|
41436
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
41437
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
41438
|
+
}
|
|
41439
|
+
}
|
|
41440
|
+
}
|
|
41441
|
+
}
|
|
41389
41442
|
var sCellNode = cell.table.rows[r + 1][0];
|
|
41390
41443
|
if (!sCellNode) {
|
|
41391
41444
|
for (var s = 1; s < cell.table.rows[r + 1].length; s++) {
|
|
@@ -41430,7 +41483,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41430
41483
|
// );
|
|
41431
41484
|
// }
|
|
41432
41485
|
} else {
|
|
41433
|
-
|
|
41486
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增行");
|
|
41434
41487
|
return;
|
|
41435
41488
|
}
|
|
41436
41489
|
}
|
|
@@ -41491,7 +41544,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41491
41544
|
// );
|
|
41492
41545
|
// }
|
|
41493
41546
|
} else {
|
|
41494
|
-
|
|
41547
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
41495
41548
|
return;
|
|
41496
41549
|
}
|
|
41497
41550
|
}
|
|
@@ -41549,7 +41602,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41549
41602
|
// );
|
|
41550
41603
|
// }
|
|
41551
41604
|
} else {
|
|
41552
|
-
|
|
41605
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表格已设置不允许新增列");
|
|
41553
41606
|
return;
|
|
41554
41607
|
}
|
|
41555
41608
|
}
|
|
@@ -41566,7 +41619,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41566
41619
|
r2 = _TableNode$getSelectT2[3],
|
|
41567
41620
|
c2 = _TableNode$getSelectT2[4];
|
|
41568
41621
|
if (!table) {
|
|
41569
|
-
|
|
41622
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
41570
41623
|
return;
|
|
41571
41624
|
}
|
|
41572
41625
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -41578,7 +41631,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41578
41631
|
for (var i = r1; i <= r2; i++) {
|
|
41579
41632
|
var rowInfo = table.rowInfos[i];
|
|
41580
41633
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
41581
|
-
|
|
41634
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("表头行不允许删除");
|
|
41582
41635
|
return;
|
|
41583
41636
|
}
|
|
41584
41637
|
}
|
|
@@ -41594,8 +41647,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41594
41647
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_61__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
41595
41648
|
hoEditorFactory.undoService.commit();
|
|
41596
41649
|
if (table.childNodes.length > 0) {
|
|
41597
|
-
var
|
|
41598
|
-
var
|
|
41650
|
+
var path = "";
|
|
41651
|
+
var np = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
41652
|
+
if (np && np.node) {
|
|
41653
|
+
path = aRange.startPath;
|
|
41654
|
+
} else if (r2 > table.rowCount - 1) {
|
|
41655
|
+
path = table.nextSibling().getNodePath();
|
|
41656
|
+
} else {
|
|
41657
|
+
var firstCell = table.childNodes[0];
|
|
41658
|
+
path = hoEditorFactory.docTree.getNodeFirstPath(firstCell);
|
|
41659
|
+
}
|
|
41599
41660
|
var newDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_30__/* .DomRange */ .a(this._hoEditorFactoryID, path, path);
|
|
41600
41661
|
hoEditorFactory.docTree.curDomRange = newDomRange;
|
|
41601
41662
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_34__/* .SelectionChangeEvent */ .r(newDomRange, newDomRange); //选中范围变化事件
|
|
@@ -41629,7 +41690,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41629
41690
|
r2 = _TableNode$getSelectT4[3],
|
|
41630
41691
|
c2 = _TableNode$getSelectT4[4];
|
|
41631
41692
|
if (!table) {
|
|
41632
|
-
|
|
41693
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格才能删除");
|
|
41633
41694
|
return;
|
|
41634
41695
|
}
|
|
41635
41696
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -41682,7 +41743,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41682
41743
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
41683
41744
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
41684
41745
|
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
|
-
|
|
41746
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的不同单元格才能合并");
|
|
41686
41747
|
return;
|
|
41687
41748
|
}
|
|
41688
41749
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -41734,7 +41795,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41734
41795
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
41735
41796
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
41736
41797
|
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
|
-
|
|
41798
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("选中区域在表格内,且为同一个表格的单元格才能取消合并");
|
|
41738
41799
|
return;
|
|
41739
41800
|
}
|
|
41740
41801
|
var endPath = cell1.table.getNodePath();
|
|
@@ -42039,7 +42100,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42039
42100
|
}
|
|
42040
42101
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42041
42102
|
if (object.obj2.size === 0) {
|
|
42042
|
-
|
|
42103
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
42043
42104
|
} else {
|
|
42044
42105
|
var nodesMap = object.obj1;
|
|
42045
42106
|
var indexsMap = object.obj2;
|
|
@@ -42100,7 +42161,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42100
42161
|
sNode = startNode.rootNodes[0];
|
|
42101
42162
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42102
42163
|
if (object.obj2.size === 0) {
|
|
42103
|
-
|
|
42164
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("未能找到指定内容。");
|
|
42104
42165
|
} else {
|
|
42105
42166
|
var nodesMap = object.obj1;
|
|
42106
42167
|
var indexsMap = object.obj2;
|
|
@@ -42123,7 +42184,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42123
42184
|
} finally {
|
|
42124
42185
|
_iterator.f();
|
|
42125
42186
|
}
|
|
42126
|
-
|
|
42187
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].info */ .Z.info("成功替换了" + indexsMap.size.toString() + "处文档内容。");
|
|
42127
42188
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
42128
42189
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
42129
42190
|
}
|
|
@@ -42453,7 +42514,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42453
42514
|
} else {
|
|
42454
42515
|
var comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
42455
42516
|
if (comment.userID != hoEditorFactory.userInfo.id) {
|
|
42456
|
-
|
|
42517
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"].warn */ .Z.warn("不允许删除其他用户创建的批注!");
|
|
42457
42518
|
return;
|
|
42458
42519
|
}
|
|
42459
42520
|
del(comment);
|
|
@@ -47300,7 +47361,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
47300
47361
|
/*
|
|
47301
47362
|
* @Author: your name
|
|
47302
47363
|
* @Date: 2020-12-24 16:01:16
|
|
47303
|
-
* @LastEditTime: 2023-
|
|
47364
|
+
* @LastEditTime: 2023-08-01 14:43:32
|
|
47304
47365
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
47305
47366
|
* @Description: In User Settings Edit
|
|
47306
47367
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
@@ -47590,6 +47651,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47590
47651
|
//打印单元格背景
|
|
47591
47652
|
//按下Tab键强制插入新行(即使不是最后一行)
|
|
47592
47653
|
//是否锁定行高
|
|
47654
|
+
//新增行带着单元格内容
|
|
47593
47655
|
function RowProperty(objectValues //, table: TableNode
|
|
47594
47656
|
) {
|
|
47595
47657
|
(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 +47666,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47604
47666
|
(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
47667
|
(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
47668
|
(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);
|
|
47669
|
+
(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
47670
|
if (objectValues !== "") {
|
|
47608
47671
|
var valuesObj = eval('(' + objectValues + ')');
|
|
47609
47672
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -47724,6 +47787,14 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
47724
47787
|
set: function set(value) {
|
|
47725
47788
|
this._tabKeyInsNewLine = value;
|
|
47726
47789
|
}
|
|
47790
|
+
}, {
|
|
47791
|
+
key: "newLineWithCellContent",
|
|
47792
|
+
get: function get() {
|
|
47793
|
+
return this._newLineWithCellContent;
|
|
47794
|
+
},
|
|
47795
|
+
set: function set(value) {
|
|
47796
|
+
this._newLineWithCellContent = value;
|
|
47797
|
+
}
|
|
47727
47798
|
}]);
|
|
47728
47799
|
return RowProperty;
|
|
47729
47800
|
}();
|
|
@@ -63134,6 +63205,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63134
63205
|
rowProperty.rowHeight = copyRowProperty.rowHeight;
|
|
63135
63206
|
rowProperty.isSpecifyHeight = copyRowProperty.isSpecifyHeight;
|
|
63136
63207
|
rowProperty.isLockRowHeight = copyRowProperty.isLockRowHeight;
|
|
63208
|
+
rowProperty.newLineWithCellContent = copyRowProperty.newLineWithCellContent;
|
|
63137
63209
|
var rowsInfo = new RowInfos(this, rowProperty);
|
|
63138
63210
|
rowsInfo.rowHeight = this._rowInfos[copyIndex].rowHeight;
|
|
63139
63211
|
rowsInfo.heightFixed = this._rowInfos[copyIndex].heightFixed;
|
|
@@ -64079,7 +64151,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64079
64151
|
rowHeight: 0,
|
|
64080
64152
|
sameLineCanAcrossPages: true,
|
|
64081
64153
|
tabKeyInsNewLine: false,
|
|
64082
|
-
isLockRowHeight: false
|
|
64154
|
+
isLockRowHeight: false,
|
|
64155
|
+
newLineWithCellContent: false
|
|
64083
64156
|
};
|
|
64084
64157
|
var defaultRowPropJson = JSON.parse(JSON.stringify(defaultRowProp));
|
|
64085
64158
|
//处理行高
|
|
@@ -64128,7 +64201,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64128
64201
|
rowHeight: rowInfo.rowProperty.rowHeight,
|
|
64129
64202
|
sameLineCanAcrossPages: rowInfo.rowProperty.sameLineCanAcrossPages,
|
|
64130
64203
|
tabKeyInsNewLine: rowInfo.rowProperty.tabKeyInsNewLine,
|
|
64131
|
-
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight
|
|
64204
|
+
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight,
|
|
64205
|
+
newLineWithCellContent: rowInfo.rowProperty.newLineWithCellContent
|
|
64132
64206
|
};
|
|
64133
64207
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
64134
64208
|
var keysName = Object.keys(defaultRowProp);
|
|
@@ -81838,6 +81912,12 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
81838
81912
|
this.editor.input.addEventListener('keypress', this._editKeyPress);
|
|
81839
81913
|
this.editor.input.addEventListener('keyup', this._editKeyUp);
|
|
81840
81914
|
this.editor.input.addEventListener('keydown', this._editKeyDown);
|
|
81915
|
+
// document.addEventListener('visibilitychange', () => {
|
|
81916
|
+
// if(!document.hidden) {
|
|
81917
|
+
// console.log("----页签切换到病历所在页签----");
|
|
81918
|
+
// this.editor.input.focus();
|
|
81919
|
+
// }
|
|
81920
|
+
// })
|
|
81841
81921
|
this.editor.input.addEventListener('cut', function (e) {
|
|
81842
81922
|
if (!e || !e.clipboardData) {
|
|
81843
81923
|
return;
|
|
@@ -93147,6 +93227,538 @@ function expressionCalculator(expr) {
|
|
|
93147
93227
|
|
|
93148
93228
|
/***/ }),
|
|
93149
93229
|
|
|
93230
|
+
/***/ 63602:
|
|
93231
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
93232
|
+
|
|
93233
|
+
"use strict";
|
|
93234
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93235
|
+
/* harmony export */ "Un": function() { return /* binding */ StructureNode; },
|
|
93236
|
+
/* harmony export */ "Y6": function() { return /* binding */ ClipboardType; }
|
|
93237
|
+
/* harmony export */ });
|
|
93238
|
+
/* unused harmony export StructureRecord */
|
|
93239
|
+
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
93240
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(40735);
|
|
93241
|
+
/* 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);
|
|
93242
|
+
/* 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);
|
|
93243
|
+
/* 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);
|
|
93244
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57658);
|
|
93245
|
+
/* 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__);
|
|
93246
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
93247
|
+
/* 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__);
|
|
93248
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23123);
|
|
93249
|
+
/* 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__);
|
|
93250
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40561);
|
|
93251
|
+
/* 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__);
|
|
93252
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41539);
|
|
93253
|
+
/* 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__);
|
|
93254
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54747);
|
|
93255
|
+
/* 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__);
|
|
93256
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38862);
|
|
93257
|
+
/* 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__);
|
|
93258
|
+
/* harmony import */ var core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83753);
|
|
93259
|
+
/* 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__);
|
|
93260
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69600);
|
|
93261
|
+
/* 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__);
|
|
93262
|
+
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47042);
|
|
93263
|
+
/* 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__);
|
|
93264
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15306);
|
|
93265
|
+
/* 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__);
|
|
93266
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8277);
|
|
93267
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(94639);
|
|
93268
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(42921);
|
|
93269
|
+
/* harmony import */ var _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62358);
|
|
93270
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67945);
|
|
93271
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(27198);
|
|
93272
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(19755);
|
|
93273
|
+
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_19__);
|
|
93274
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(68598);
|
|
93275
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(5010);
|
|
93276
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
|
|
93277
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(90161);
|
|
93278
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(92501);
|
|
93279
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(45712);
|
|
93280
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(99152);
|
|
93281
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(57727);
|
|
93282
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(51760);
|
|
93283
|
+
|
|
93284
|
+
|
|
93285
|
+
|
|
93286
|
+
|
|
93287
|
+
|
|
93288
|
+
|
|
93289
|
+
|
|
93290
|
+
|
|
93291
|
+
|
|
93292
|
+
|
|
93293
|
+
|
|
93294
|
+
|
|
93295
|
+
|
|
93296
|
+
|
|
93297
|
+
|
|
93298
|
+
|
|
93299
|
+
|
|
93300
|
+
|
|
93301
|
+
|
|
93302
|
+
|
|
93303
|
+
|
|
93304
|
+
|
|
93305
|
+
|
|
93306
|
+
// import { HTMLConverter2 } from "./HTMLConverter";
|
|
93307
|
+
|
|
93308
|
+
|
|
93309
|
+
|
|
93310
|
+
|
|
93311
|
+
|
|
93312
|
+
|
|
93313
|
+
|
|
93314
|
+
|
|
93315
|
+
|
|
93316
|
+
var ClipboardType;
|
|
93317
|
+
(function (ClipboardType) {
|
|
93318
|
+
ClipboardType["ctText"] = "text/plain";
|
|
93319
|
+
ClipboardType["ctHTML"] = "text/html";
|
|
93320
|
+
ClipboardType["ctJSON"] = "application/json";
|
|
93321
|
+
})(ClipboardType || (ClipboardType = {}));
|
|
93322
|
+
var NodeConvert = /*#__PURE__*/function () {
|
|
93323
|
+
function NodeConvert(hoEditorFactoryID) {
|
|
93324
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, NodeConvert);
|
|
93325
|
+
(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);
|
|
93326
|
+
(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);
|
|
93327
|
+
(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);
|
|
93328
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93329
|
+
}
|
|
93330
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(NodeConvert, [{
|
|
93331
|
+
key: "FromJSON",
|
|
93332
|
+
value: function FromJSON(data, rootPath, isNewPage) {
|
|
93333
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93334
|
+
var nodes = new Array();
|
|
93335
|
+
var rootNodes = new Array();
|
|
93336
|
+
if (rootPath === "main") {
|
|
93337
|
+
rootNodes = hoEditorFactory.docTree.mainNodes;
|
|
93338
|
+
}
|
|
93339
|
+
var jsonArray = JSON.parse(data);
|
|
93340
|
+
var path = hoEditorFactory.docTree.curDomRange.normalize().startPath;
|
|
93341
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(path);
|
|
93342
|
+
var aRootNodes = rootPath ? rootNodes : hoEditorFactory.docTree.curDomRange.normalize().npStart.roots;
|
|
93343
|
+
for (var i = 0; i < jsonArray.length; i++) {
|
|
93344
|
+
var nodeJson = jsonArray[i];
|
|
93345
|
+
if (nodeJson) {
|
|
93346
|
+
var node = hoEditorFactory.structureConvert.convertNode(nodeJson, aRootNodes, rootPath ? null : parentNode, undefined, isNewPage ? false : true);
|
|
93347
|
+
if (!node) {
|
|
93348
|
+
return [];
|
|
93349
|
+
}
|
|
93350
|
+
if (node) {
|
|
93351
|
+
if (node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R && node.text.length === 0) {
|
|
93352
|
+
continue;
|
|
93353
|
+
}
|
|
93354
|
+
if (rootPath) {
|
|
93355
|
+
node.rootPath = rootPath;
|
|
93356
|
+
}
|
|
93357
|
+
nodes.push(node);
|
|
93358
|
+
if (rootPath && rootPath.split('/').length > 1) {
|
|
93359
|
+
rootNodes.push(node);
|
|
93360
|
+
// node.rootNodes = rootNodes;
|
|
93361
|
+
}
|
|
93362
|
+
}
|
|
93363
|
+
}
|
|
93364
|
+
}
|
|
93365
|
+
|
|
93366
|
+
return nodes;
|
|
93367
|
+
}
|
|
93368
|
+
}, {
|
|
93369
|
+
key: "FromHTML",
|
|
93370
|
+
value: function FromHTML(data) {
|
|
93371
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93372
|
+
var rx = /<body[^>]*>([\s\S]+?)<\/body>/i;
|
|
93373
|
+
var r = rx.exec(data);
|
|
93374
|
+
var bodyHtml;
|
|
93375
|
+
if (!r) {
|
|
93376
|
+
return [];
|
|
93377
|
+
} else {
|
|
93378
|
+
bodyHtml = "<div>" + r[1] + "</div>";
|
|
93379
|
+
}
|
|
93380
|
+
var nodes = hoEditorFactory.htmlConverter.Exec(jquery__WEBPACK_IMPORTED_MODULE_19___default()(bodyHtml)[0], "");
|
|
93381
|
+
return nodes;
|
|
93382
|
+
}
|
|
93383
|
+
}, {
|
|
93384
|
+
key: "FromText",
|
|
93385
|
+
value: function FromText(data) {
|
|
93386
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93387
|
+
var nodes = new Array();
|
|
93388
|
+
var textData = data;
|
|
93389
|
+
if (textData) {
|
|
93390
|
+
//根据换行符切割 处理大写情况 \R\N
|
|
93391
|
+
//const uidArr = textData.split(/[(\r\n)|(\R\N)]+/);
|
|
93392
|
+
var uidArr = textData.split(/[\n\r|\r\n|\r|\n]+/);
|
|
93393
|
+
for (var i = 0; i < uidArr.length; i++) {
|
|
93394
|
+
if (!uidArr[i]) continue;
|
|
93395
|
+
if (i > 0) {
|
|
93396
|
+
var paraNode = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.mainNodes, null, hoEditorFactory.docTree.curParaNo);
|
|
93397
|
+
nodes.push(paraNode);
|
|
93398
|
+
}
|
|
93399
|
+
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);
|
|
93400
|
+
nodes.push(textNode);
|
|
93401
|
+
}
|
|
93402
|
+
}
|
|
93403
|
+
return nodes;
|
|
93404
|
+
}
|
|
93405
|
+
}, {
|
|
93406
|
+
key: "toJSON",
|
|
93407
|
+
value: function toJSON(recs, isClearValue, type) {
|
|
93408
|
+
var _this = this;
|
|
93409
|
+
var jsons = new Array();
|
|
93410
|
+
if (recs[0].node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_17__/* .ParagraphNode */ .C) {
|
|
93411
|
+
if (recs[0].node.paraNo === 0) {
|
|
93412
|
+
recs.splice(0, 1);
|
|
93413
|
+
}
|
|
93414
|
+
}
|
|
93415
|
+
recs.forEach(function (value, index) {
|
|
93416
|
+
if (isClearValue) {
|
|
93417
|
+
if (value.node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_23__/* .TextInputFieldNode */ .re) {
|
|
93418
|
+
value.node.text = "";
|
|
93419
|
+
value.node.childNodes.splice(1, value.node.childNodes.length - 2);
|
|
93420
|
+
}
|
|
93421
|
+
if (value.node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_24__/* .DateTimeNode */ .Z) {
|
|
93422
|
+
value.node.text = "";
|
|
93423
|
+
}
|
|
93424
|
+
if (value.node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_25__/* .DownListNode */ .yF) {
|
|
93425
|
+
value.node.text = "";
|
|
93426
|
+
}
|
|
93427
|
+
}
|
|
93428
|
+
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) {
|
|
93429
|
+
jsons.push(value.node.node2Json(value.range, true, type));
|
|
93430
|
+
} else {
|
|
93431
|
+
//选区有MarkNode时:如果是开始标记,判断对应的结束标记是否在选区内,如果在则复制该节点,反之不复制;
|
|
93432
|
+
//如果是结束标记,判断对应的开始标记是否在选区内,如果在则复制该节点,反之不复制
|
|
93433
|
+
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) {
|
|
93434
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
93435
|
+
var range = hoEditorFactory.docTree.curDomRange.normalize();
|
|
93436
|
+
if (value.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNodeType.mtStart */ .q.mtStart) {
|
|
93437
|
+
var result = value.node.parentNode.childNodes[value.node.parentNode.childNodes.length - 1].isTotalSelected(range, true);
|
|
93438
|
+
if (result) {
|
|
93439
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93440
|
+
}
|
|
93441
|
+
}
|
|
93442
|
+
if (value.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
|
|
93443
|
+
var _result = value.node.parentNode.childNodes[0].isTotalSelected(range, true);
|
|
93444
|
+
if (_result) {
|
|
93445
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93446
|
+
} else {
|
|
93447
|
+
if (index === recs.length - 1) {
|
|
93448
|
+
hoEditorFactory.docTree.curDomRange.endPath = hoEditorFactory.docTree.getNodeLastPath(value.node.previousLeaf());
|
|
93449
|
+
}
|
|
93450
|
+
}
|
|
93451
|
+
}
|
|
93452
|
+
} else {
|
|
93453
|
+
jsons.push(value.node.node2Json(value.range, true));
|
|
93454
|
+
}
|
|
93455
|
+
}
|
|
93456
|
+
});
|
|
93457
|
+
this._jsondata = JSON.stringify(jsons);
|
|
93458
|
+
//console.log(JSON.stringify(jsons));
|
|
93459
|
+
return JSON.stringify(jsons);
|
|
93460
|
+
}
|
|
93461
|
+
// private dataURLtoFile(dataurl: string, filename = 'file') {
|
|
93462
|
+
// const arr = dataurl.split(',')
|
|
93463
|
+
// const mime = arr[0].match(/:(.*?);/)[1]
|
|
93464
|
+
// const suffix = mime.split('/')[1]
|
|
93465
|
+
// const bstr = atob(arr[1])
|
|
93466
|
+
// let n = bstr.length
|
|
93467
|
+
// const u8arr = new Uint8Array(n)
|
|
93468
|
+
// while (n--) {
|
|
93469
|
+
// u8arr[n] = bstr.charCodeAt(n)
|
|
93470
|
+
// }
|
|
93471
|
+
// return new File([u8arr], `${filename}.${suffix}`, {
|
|
93472
|
+
// type: mime
|
|
93473
|
+
// })
|
|
93474
|
+
// }
|
|
93475
|
+
}, {
|
|
93476
|
+
key: "toTHML",
|
|
93477
|
+
value: function toTHML(recs) {
|
|
93478
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93479
|
+
if (recs) this.toJSON(recs);
|
|
93480
|
+
var jsondata = JSON.parse(this._jsondata);
|
|
93481
|
+
if (!jsondata) return "";
|
|
93482
|
+
return hoEditorFactory.toHtmlConverter.Exec(this._hoEditorFactoryID, jsondata);
|
|
93483
|
+
}
|
|
93484
|
+
}, {
|
|
93485
|
+
key: "toText",
|
|
93486
|
+
value: function toText(recs) {
|
|
93487
|
+
if (recs) this.toJSON(recs);
|
|
93488
|
+
var jsondata = JSON.parse(this._jsondata);
|
|
93489
|
+
if (!jsondata) return "";
|
|
93490
|
+
var paragraphText = "";
|
|
93491
|
+
var json2text = function json2text(data) {
|
|
93492
|
+
for (var i = 0; i < data.length; i++) {
|
|
93493
|
+
var item = data[i];
|
|
93494
|
+
if (item["nodeType"]) {
|
|
93495
|
+
if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntText */ .Jq.ntText]) {
|
|
93496
|
+
paragraphText += item.text;
|
|
93497
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntParagraph */ .Jq.ntParagraph]) {
|
|
93498
|
+
if (i != 0) {
|
|
93499
|
+
paragraphText += "\n";
|
|
93500
|
+
}
|
|
93501
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntLabel */ .Jq.ntLabel]) {
|
|
93502
|
+
paragraphText += item.text;
|
|
93503
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntRareChar */ .Jq.ntRareChar]) {
|
|
93504
|
+
paragraphText += item.text;
|
|
93505
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntSpecialChar */ .Jq.ntSpecialChar]) {
|
|
93506
|
+
paragraphText += item.text;
|
|
93507
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntField */ .Jq.ntField]) {
|
|
93508
|
+
json2text(item.childNodes.item);
|
|
93509
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntTable */ .Jq.ntTable]) {
|
|
93510
|
+
if (Array.isArray(item.childNodes.item)) json2text(item.childNodes.item);
|
|
93511
|
+
} else if (item.nodeType == "ntRow") {
|
|
93512
|
+
if (i != 0) {
|
|
93513
|
+
paragraphText += "\n";
|
|
93514
|
+
}
|
|
93515
|
+
json2text(item.childNodes.item);
|
|
93516
|
+
} else if (item.nodeType == _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType */ .Jq[_dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_16__/* .NodeType.ntCell */ .Jq.ntCell]) {
|
|
93517
|
+
if (i != 0) paragraphText += "\t";
|
|
93518
|
+
json2text(item.childNodes.item);
|
|
93519
|
+
}
|
|
93520
|
+
}
|
|
93521
|
+
// else if (item.childNode) {
|
|
93522
|
+
// json2text(item.childNode);
|
|
93523
|
+
// }
|
|
93524
|
+
}
|
|
93525
|
+
};
|
|
93526
|
+
|
|
93527
|
+
json2text(jsondata);
|
|
93528
|
+
return paragraphText;
|
|
93529
|
+
}
|
|
93530
|
+
}]);
|
|
93531
|
+
return NodeConvert;
|
|
93532
|
+
}();
|
|
93533
|
+
/**
|
|
93534
|
+
* 结构化的节点范围记录
|
|
93535
|
+
*/
|
|
93536
|
+
var StructureRecord = /*#__PURE__*/function () {
|
|
93537
|
+
function StructureRecord(hoEditorFactoryID, startPath, Node, val) {
|
|
93538
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, StructureRecord);
|
|
93539
|
+
(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);
|
|
93540
|
+
(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);
|
|
93541
|
+
(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);
|
|
93542
|
+
(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);
|
|
93543
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93544
|
+
this._node = Node;
|
|
93545
|
+
this._path = startPath;
|
|
93546
|
+
this._range = val;
|
|
93547
|
+
}
|
|
93548
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(StructureRecord, [{
|
|
93549
|
+
key: "node",
|
|
93550
|
+
get: function get() {
|
|
93551
|
+
return this._node;
|
|
93552
|
+
}
|
|
93553
|
+
}, {
|
|
93554
|
+
key: "range",
|
|
93555
|
+
get: function get() {
|
|
93556
|
+
return this._range;
|
|
93557
|
+
}
|
|
93558
|
+
}]);
|
|
93559
|
+
return StructureRecord;
|
|
93560
|
+
}();
|
|
93561
|
+
var StructureNode = /*#__PURE__*/function () {
|
|
93562
|
+
function StructureNode(hoEditorFactoryID) {
|
|
93563
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, StructureNode);
|
|
93564
|
+
(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);
|
|
93565
|
+
(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);
|
|
93566
|
+
(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);
|
|
93567
|
+
(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);
|
|
93568
|
+
(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);
|
|
93569
|
+
(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);
|
|
93570
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
93571
|
+
this._Convertor = new NodeConvert(this._hoEditorFactoryID);
|
|
93572
|
+
}
|
|
93573
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_30__/* ["default"] */ .Z)(StructureNode, [{
|
|
93574
|
+
key: "Convertor",
|
|
93575
|
+
get:
|
|
93576
|
+
// private static _instance: StructureNode;
|
|
93577
|
+
|
|
93578
|
+
// public static instance(hoef: HOEditorFactory) {
|
|
93579
|
+
// if (!this._instance) {
|
|
93580
|
+
// this._instance = hoef.structureNode;
|
|
93581
|
+
// // this._instance = new StructureNode();
|
|
93582
|
+
// }
|
|
93583
|
+
// return this._instance;
|
|
93584
|
+
// }
|
|
93585
|
+
|
|
93586
|
+
/**
|
|
93587
|
+
* Getter Convertor
|
|
93588
|
+
* @return {NodeConvert}
|
|
93589
|
+
*/
|
|
93590
|
+
function get() {
|
|
93591
|
+
return this._Convertor;
|
|
93592
|
+
}
|
|
93593
|
+
}, {
|
|
93594
|
+
key: "jsondata",
|
|
93595
|
+
get: function get() {
|
|
93596
|
+
return this._json;
|
|
93597
|
+
}
|
|
93598
|
+
}, {
|
|
93599
|
+
key: "htmldata",
|
|
93600
|
+
get: function get() {
|
|
93601
|
+
return this._html;
|
|
93602
|
+
}
|
|
93603
|
+
}, {
|
|
93604
|
+
key: "textdata",
|
|
93605
|
+
get: function get() {
|
|
93606
|
+
return this._text;
|
|
93607
|
+
}
|
|
93608
|
+
/**
|
|
93609
|
+
* 返回节点开始路径,即前一个节点的最后路径
|
|
93610
|
+
* @param node 节点
|
|
93611
|
+
*/
|
|
93612
|
+
}, {
|
|
93613
|
+
key: "getPrevLastPath",
|
|
93614
|
+
value: function getPrevLastPath(node) {
|
|
93615
|
+
var prev = node.range();
|
|
93616
|
+
return prev.from;
|
|
93617
|
+
}
|
|
93618
|
+
/**
|
|
93619
|
+
* 复制时候结构化的存储,粘贴时候才能带结构的输出
|
|
93620
|
+
* @param dom
|
|
93621
|
+
* @param clipboard
|
|
93622
|
+
*/
|
|
93623
|
+
}, {
|
|
93624
|
+
key: "Copy",
|
|
93625
|
+
value: function Copy(dom, clipboard, isClearValue, type) {
|
|
93626
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93627
|
+
if (hoEditorFactory.forbidPaste && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
93628
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_31__/* ["default"].warn */ .Z.warn("根据书写规范要求,不允许复制病历文本内容");
|
|
93629
|
+
return;
|
|
93630
|
+
}
|
|
93631
|
+
var currDom;
|
|
93632
|
+
if (dom instanceof _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .a) {
|
|
93633
|
+
currDom = dom.normalize();
|
|
93634
|
+
} else {
|
|
93635
|
+
var tmp = dom[0].range();
|
|
93636
|
+
currDom = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_14__/* .DomRange */ .a(this._hoEditorFactoryID, tmp.from, hoEditorFactory.docTree.getNodeLastPath(dom[dom.length - 1]));
|
|
93637
|
+
}
|
|
93638
|
+
var info = this.getAncestorsChild(currDom.startPath, currDom.endPath);
|
|
93639
|
+
var sstart = currDom.startPath.split("/").slice(0, info.level + 1).join("/");
|
|
93640
|
+
var send = currDom.endPath.split("/").slice(0, info.level + 1).join("/");
|
|
93641
|
+
var nstart = hoEditorFactory.docTree.findNodePositionByPath(sstart).node;
|
|
93642
|
+
var nend = hoEditorFactory.docTree.findNodePositionByPath(send).node;
|
|
93643
|
+
if (!this._structoredNode) {
|
|
93644
|
+
this._structoredNode = new Array();
|
|
93645
|
+
}
|
|
93646
|
+
this._structoredNode = [];
|
|
93647
|
+
//记录下路径结构
|
|
93648
|
+
if (nstart == nend) {
|
|
93649
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
93650
|
+
from: currDom.startPath,
|
|
93651
|
+
to: currDom.endPath
|
|
93652
|
+
}));
|
|
93653
|
+
} 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) {
|
|
93654
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart.table), nstart.table, {
|
|
93655
|
+
from: nstart.range().from,
|
|
93656
|
+
to: nend.range().to
|
|
93657
|
+
}));
|
|
93658
|
+
} else {
|
|
93659
|
+
//开始结束不是同一个cellnode时候 cellnode一定是被全选的, 所以下面的节点from,to需要单独设置下
|
|
93660
|
+
var sNodeLastPath = hoEditorFactory.docTree.getNodeLastPath(nstart);
|
|
93661
|
+
if (sNodeLastPath !== currDom.startPath || sNodeLastPath === currDom.startPath && (sNodeLastPath == "header/0/0" || sNodeLastPath == "footer/0/0" || sNodeLastPath == "main/0")) {
|
|
93662
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nstart), nstart, {
|
|
93663
|
+
from: nstart instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__/* .TableNode */ .Fh ? nstart.range().from : currDom.startPath
|
|
93664
|
+
}));
|
|
93665
|
+
}
|
|
93666
|
+
var node = nstart.nextSibling();
|
|
93667
|
+
for (;;) {
|
|
93668
|
+
if (!node) {
|
|
93669
|
+
break;
|
|
93670
|
+
}
|
|
93671
|
+
if (node == nend) {
|
|
93672
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(nend), nend, {
|
|
93673
|
+
to: nend instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_21__/* .TableNode */ .Fh ? nend.range().to : currDom.endPath
|
|
93674
|
+
}));
|
|
93675
|
+
break;
|
|
93676
|
+
} else {
|
|
93677
|
+
this._structoredNode.push(new StructureRecord(this._hoEditorFactoryID, this.getPrevLastPath(node), node));
|
|
93678
|
+
node = node.nextSibling();
|
|
93679
|
+
}
|
|
93680
|
+
}
|
|
93681
|
+
}
|
|
93682
|
+
this._json = this._Convertor.toJSON(this._structoredNode, isClearValue, type);
|
|
93683
|
+
//console.log("_json", this._json);
|
|
93684
|
+
this._html = this._Convertor.toTHML();
|
|
93685
|
+
this._text = this._Convertor.toText();
|
|
93686
|
+
if (clipboard) {
|
|
93687
|
+
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
93688
|
+
if (this._json != "") {
|
|
93689
|
+
this._json = patientID + ":" + this._json;
|
|
93690
|
+
}
|
|
93691
|
+
if (this._html !== "") {
|
|
93692
|
+
this._html = this._html.replace('<!--StartFragment-->', "<!--StartFragment--><!--:".concat(patientID, "-->"));
|
|
93693
|
+
}
|
|
93694
|
+
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
93695
|
+
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
93696
|
+
clipboard.setData(ClipboardType.ctText, this._text);
|
|
93697
|
+
} else {
|
|
93698
|
+
return this._json;
|
|
93699
|
+
}
|
|
93700
|
+
}
|
|
93701
|
+
}, {
|
|
93702
|
+
key: "Parse",
|
|
93703
|
+
value: function Parse(ctype, data, rootPath, isNewPage) {
|
|
93704
|
+
if (ctype == ClipboardType.ctJSON) return this._Convertor.FromJSON(data, rootPath, isNewPage);
|
|
93705
|
+
if (ctype == ClipboardType.ctHTML) return this._Convertor.FromHTML(data);
|
|
93706
|
+
return this._Convertor.FromText(data);
|
|
93707
|
+
}
|
|
93708
|
+
/**
|
|
93709
|
+
* @description DocTree返回节点在树形结构中共同的父节点
|
|
93710
|
+
*/
|
|
93711
|
+
}, {
|
|
93712
|
+
key: "getAncestorsChild",
|
|
93713
|
+
value: function getAncestorsChild(Spath1, Spath2) {
|
|
93714
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
93715
|
+
var path1 = Spath1.split("/");
|
|
93716
|
+
var path2 = Spath2.split("/");
|
|
93717
|
+
var nodes;
|
|
93718
|
+
if (!_dom_NodePosition__WEBPACK_IMPORTED_MODULE_15__/* .NodePosition.pathCanCompare */ .F.pathCanCompare(Spath1, Spath2)) {
|
|
93719
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.PathNotAtSameRoot */ .P.PathNotAtSameRoot();
|
|
93720
|
+
}
|
|
93721
|
+
//比对路径
|
|
93722
|
+
var index = 0;
|
|
93723
|
+
while (path1[index] == path2[index]) {
|
|
93724
|
+
index += 1;
|
|
93725
|
+
if (index > path1.length || index > path2.length) {
|
|
93726
|
+
break;
|
|
93727
|
+
}
|
|
93728
|
+
}
|
|
93729
|
+
//取节点的兄弟节点
|
|
93730
|
+
if (index === 1 || index === 2 && path1[0] !== "main") {
|
|
93731
|
+
//只有第一个符合 在根节点当中main heaer footer
|
|
93732
|
+
var tmp = hoEditorFactory.docTree.findNodePositionByPath(path1.slice(0, index + 1).join("/")).node;
|
|
93733
|
+
if (!tmp) {
|
|
93734
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
93735
|
+
}
|
|
93736
|
+
if (tmp.parentNode) {
|
|
93737
|
+
nodes = tmp.parentNode.childNodes;
|
|
93738
|
+
} else {
|
|
93739
|
+
nodes = tmp.rootNodes;
|
|
93740
|
+
}
|
|
93741
|
+
} else {
|
|
93742
|
+
//在复合节点当中
|
|
93743
|
+
|
|
93744
|
+
var ancestor = path1.slice(0, index).join("/");
|
|
93745
|
+
var _tmp = hoEditorFactory.docTree.findNodePositionByPath(ancestor).node;
|
|
93746
|
+
if (!_tmp) {
|
|
93747
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_13__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
93748
|
+
}
|
|
93749
|
+
nodes = _tmp.childNodes;
|
|
93750
|
+
}
|
|
93751
|
+
return {
|
|
93752
|
+
level: index,
|
|
93753
|
+
child: nodes
|
|
93754
|
+
};
|
|
93755
|
+
}
|
|
93756
|
+
}]);
|
|
93757
|
+
return StructureNode;
|
|
93758
|
+
}();
|
|
93759
|
+
|
|
93760
|
+
/***/ }),
|
|
93761
|
+
|
|
93150
93762
|
/***/ 91404:
|
|
93151
93763
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
93152
93764
|
|
|
@@ -100910,7 +101522,7 @@ if(frame.interlaced===true){scanstride+=width*4*7;// Pass 1.
|
|
|
100910
101522
|
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
101523
|
op+=scanstride;xleft=framewidth;if(op>=opend){// Catch the wrap to switch passes when interlacing.
|
|
100912
101524
|
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){//
|
|
101525
|
+
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){// 将Gif格式图片透明背景强制转换为白色 已测试不影响正常png格式图片
|
|
100914
101526
|
// op += 4;
|
|
100915
101527
|
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
101528
|
// NOTE: This shares the same name as the encoder, but has a different
|
|
@@ -199844,7 +200456,7 @@ var map = {
|
|
|
199844
200456
|
"./table/TableFormTree.vue": 39703,
|
|
199845
200457
|
"./table/TableFormula.vue": 66591,
|
|
199846
200458
|
"./table/TableProperty.vue": 47130,
|
|
199847
|
-
"./table/TableRowProperty.vue":
|
|
200459
|
+
"./table/TableRowProperty.vue": 25421,
|
|
199848
200460
|
"./textDialog/TextDialog.vue": 26401,
|
|
199849
200461
|
"./textDialog/TextToLabelDialog.vue": 35791,
|
|
199850
200462
|
"./textDialog/VerifyTip.vue": 63210,
|
|
@@ -239245,7 +239857,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
239245
239857
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
239246
239858
|
var ParagraphNode = __webpack_require__(67945);
|
|
239247
239859
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
239248
|
-
/* harmony default export */ var version = ('3.0.
|
|
239860
|
+
/* harmony default export */ var version = ('3.0.96');
|
|
239249
239861
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
239250
239862
|
var PoperTipText = __webpack_require__(36081);
|
|
239251
239863
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -245430,491 +246042,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
245430
246042
|
}]);
|
|
245431
246043
|
return StructureConvert;
|
|
245432
246044
|
}();
|
|
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
|
-
}();
|
|
246045
|
+
// EXTERNAL MODULE: ./src/editor/utils/StructureNode.ts
|
|
246046
|
+
var StructureNode = __webpack_require__(63602);
|
|
245918
246047
|
;// CONCATENATED MODULE: ./src/editor/utils/TestDataSet.ts
|
|
245919
246048
|
|
|
245920
246049
|
|
|
@@ -250013,7 +250142,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250013
250142
|
if (area === 'footer') {
|
|
250014
250143
|
rootPath = 'footer/' + hoEditorFactory.subDocManger.footerDocTree.length.toString();
|
|
250015
250144
|
}
|
|
250016
|
-
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData, rootPath, isNewPage);
|
|
250145
|
+
var nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData, rootPath, isNewPage);
|
|
250017
250146
|
if (isDelBlockLine && area === 'main' && nodes.length > 1 && nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C && !(nodes[nodes.length - 2] instanceof TableNode/* TableNode */.Fh)) {
|
|
250018
250147
|
nodes.splice(nodes.length - 1, 1);
|
|
250019
250148
|
}
|
|
@@ -250569,7 +250698,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250569
250698
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
250570
250699
|
case 8:
|
|
250571
250700
|
hoEditorFactory.docTree.curDomRange.setSamePath(sPath);
|
|
250572
|
-
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250701
|
+
nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250573
250702
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
250574
250703
|
headerNode[0].paraNo = nodes[0].paraNo;
|
|
250575
250704
|
//(headerNode[0] as ParagraphNode).styleIndex = (nodes[0] as ParagraphNode).styleIndex;
|
|
@@ -250642,7 +250771,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250642
250771
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
250643
250772
|
case 7:
|
|
250644
250773
|
hoEditorFactory.docTree.curDomRange.setSamePath('footer/0/0');
|
|
250645
|
-
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250774
|
+
nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250646
250775
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
250647
250776
|
footerNode[0].paraNo = nodes[0].paraNo;
|
|
250648
250777
|
//(footerNode[0] as ParagraphNode).styleIndex = (nodes[0] as ParagraphNode).styleIndex;
|
|
@@ -250699,7 +250828,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250699
250828
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
250700
250829
|
if (result) {
|
|
250701
250830
|
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) === 'object') {
|
|
250702
|
-
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
250831
|
+
var nodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
250703
250832
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
250704
250833
|
} else {
|
|
250705
250834
|
hoEditorFactory.docController.keyBoardInput(jsonData);
|
|
@@ -253155,9 +253284,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253155
253284
|
value: function html2Xml(json) {
|
|
253156
253285
|
var _this6 = this;
|
|
253157
253286
|
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);
|
|
253287
|
+
var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.header);
|
|
253288
|
+
var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.footer);
|
|
253289
|
+
var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, json.main);
|
|
253161
253290
|
var insertParaNode = function insertParaNode(area, index) {
|
|
253162
253291
|
var node = new ParagraphNode/* ParagraphNode */.C(_this6._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
253163
253292
|
if (area == 'header') {
|
|
@@ -253272,7 +253401,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253272
253401
|
rowHeight: 0,
|
|
253273
253402
|
sameLineCanAcrossPages: true,
|
|
253274
253403
|
tabKeyInsNewLine: false,
|
|
253275
|
-
isLockRowHeight: false
|
|
253404
|
+
isLockRowHeight: false,
|
|
253405
|
+
newLineWithCellContent: false
|
|
253276
253406
|
};
|
|
253277
253407
|
var defaultRowPropJson = JSON.parse(JSON.stringify(defaultRowProp));
|
|
253278
253408
|
var rowInfosArray = new Array();
|
|
@@ -253294,7 +253424,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
253294
253424
|
rowHeight: rowInfo.rowProperty.rowHeight,
|
|
253295
253425
|
sameLineCanAcrossPages: rowInfo.rowProperty.sameLineCanAcrossPages,
|
|
253296
253426
|
tabKeyInsNewLine: rowInfo.rowProperty.tabKeyInsNewLine,
|
|
253297
|
-
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight
|
|
253427
|
+
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight,
|
|
253428
|
+
newLineWithCellContent: rowInfo.rowProperty.newLineWithCellContent
|
|
253298
253429
|
};
|
|
253299
253430
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
253300
253431
|
var keysName = Object.keys(defaultRowProp);
|
|
@@ -255241,7 +255372,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255241
255372
|
var index = jsonData.indexOf(":");
|
|
255242
255373
|
jsonData = jsonData.substring(index + 1, jsonData.length);
|
|
255243
255374
|
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
255244
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255375
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255245
255376
|
} else {
|
|
255246
255377
|
if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
|
|
255247
255378
|
message/* default.warn */.Z.warn("不能将他人病历内容复制粘贴到该患者病历中");
|
|
@@ -255249,14 +255380,14 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255249
255380
|
}
|
|
255250
255381
|
var jsonObject = JSON.parse(jsonData);
|
|
255251
255382
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
255252
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255383
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255253
255384
|
} else if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntRareChar") {
|
|
255254
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
255385
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctJSON */.Y6.ctJSON, jsonData);
|
|
255255
255386
|
} else {
|
|
255256
255387
|
if (htmlData) {
|
|
255257
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
255388
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, htmlData);
|
|
255258
255389
|
} else {
|
|
255259
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
255390
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctText */.Y6.ctText, textData);
|
|
255260
255391
|
}
|
|
255261
255392
|
}
|
|
255262
255393
|
}
|
|
@@ -255270,9 +255401,9 @@ var EditController = /*#__PURE__*/function () {
|
|
|
255270
255401
|
return;
|
|
255271
255402
|
}
|
|
255272
255403
|
}
|
|
255273
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctHTML, htmlData);
|
|
255404
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctHTML */.Y6.ctHTML, htmlData);
|
|
255274
255405
|
} else {
|
|
255275
|
-
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctText, textData);
|
|
255406
|
+
nodes = hoeditorfactory.structureNode.Parse(StructureNode/* ClipboardType.ctText */.Y6.ctText, textData);
|
|
255276
255407
|
}
|
|
255277
255408
|
if (hoeditorfactory.limitCharNumber > 0 && hoeditorfactory.drawTree.paintStatus != DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
255278
255409
|
var str = "";
|
|
@@ -260354,7 +260485,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
260354
260485
|
key: "structureNode",
|
|
260355
260486
|
get: function get() {
|
|
260356
260487
|
if (!this._structureNode) {
|
|
260357
|
-
this._structureNode = new StructureNode(this._hoEditorFactoryId);
|
|
260488
|
+
this._structureNode = new StructureNode/* StructureNode */.Un(this._hoEditorFactoryId);
|
|
260358
260489
|
}
|
|
260359
260490
|
return this._structureNode;
|
|
260360
260491
|
}
|
|
@@ -265418,8 +265549,8 @@ var ToolControlvue_type_template_id_08c856c8_render = function render() {
|
|
|
265418
265549
|
};
|
|
265419
265550
|
var ToolControlvue_type_template_id_08c856c8_staticRenderFns = [];
|
|
265420
265551
|
|
|
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
|
|
265552
|
+
;// 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=44e54a58&
|
|
265553
|
+
var HoSpecialCharsvue_type_template_id_44e54a58_render = function render() {
|
|
265423
265554
|
var _vm = this,
|
|
265424
265555
|
_c = _vm._self._c;
|
|
265425
265556
|
return _c('a-dropdown', {
|
|
@@ -265494,7 +265625,7 @@ var HoSpecialCharsvue_type_template_id_4431c0bf_render = function render() {
|
|
|
265494
265625
|
}, [_vm._v(_vm._s(chars))]);
|
|
265495
265626
|
}), 0)])])])])], 1)], 1)], 2);
|
|
265496
265627
|
};
|
|
265497
|
-
var
|
|
265628
|
+
var HoSpecialCharsvue_type_template_id_44e54a58_staticRenderFns = [];
|
|
265498
265629
|
|
|
265499
265630
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js
|
|
265500
265631
|
/** vue-property-decorator verson 8.5.1 MIT LICENSE copyright 2020 kaorun343 */
|
|
@@ -265793,7 +265924,7 @@ function isPromise(obj) {
|
|
|
265793
265924
|
data: function data() {
|
|
265794
265925
|
return {
|
|
265795
265926
|
arrChars: ['㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '℡'],
|
|
265796
|
-
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '「', '」', '『', '』', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '′', '″', '℃', '$', '¤', '¢', '£', '‰', '§', '№', '※', '→', '←', '↑', '↓', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '
|
|
265927
|
+
specialChars: ['、', '。', '·', 'ˉ', 'ˇ', '¨', '〃', '々', '—', '~', '‖', '…', '‘', '’', '“', '”', '〔', '〕', '〈', '〉', '《', '》', '「', '」', '『', '』', '﹂', '﹁', '└', '┐', '┌', '┘', '|', '±', '×', '÷', '∶', '∧', '∨', '∑', '∏', '∪', '∩', '∈', 'α', 'β', 'γ', 'λ', '∷', '√', '⊥', '∥', '∠', '⌒', '⊙', '∫', '∮', '≡', '≌', '≈', '∽', '∝', '≠', '≮', '≯', '≤', '≥', '∞', '∵', '∴', '♂', '♀', '°', '′', '″', '℃', '$', '¤', '¢', '£', '‰', '§', '№', '※', '→', '←', '↑', '↓', '℡', '▽', '△', '▷', '◁', '/', '∕', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', 'mmol/L', 'μmol/L', 'umol/L', 'pg/ml', 'ng/ml', 'mmHg', 'g/L', 'Cells', 'Φ', '‰', '次/分', '?á', '?à', '£L', '?', '??', '+2', '•', '●', ''],
|
|
265797
265928
|
romanChars: ['ⅰ', 'ⅱ', 'ⅲ', 'ⅳ', 'ⅴ', 'ⅵ', 'ⅶ', 'ⅷ', 'ⅸ', 'ⅹ', 'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ'],
|
|
265798
265929
|
usedChars: [],
|
|
265799
265930
|
mathChars: ['⒈', '⒉', '⒊', '⒋', '⒌', '⒍', '⒎', '⒏', '⒐', '⒑', '⒒', '⒓', '⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', '⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '㈠', '㈡', '㈢', '㈣', '㈤', '㈥', '㈦', '㈧', '㈨', '㈩']
|
|
@@ -265823,10 +265954,10 @@ function isPromise(obj) {
|
|
|
265823
265954
|
});
|
|
265824
265955
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=script&lang=js&
|
|
265825
265956
|
/* 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=
|
|
265957
|
+
;// 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=44e54a58&prod&lang=scss&
|
|
265827
265958
|
// extracted by mini-css-extract-plugin
|
|
265828
265959
|
|
|
265829
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=
|
|
265960
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue?vue&type=style&index=0&id=44e54a58&prod&lang=scss&
|
|
265830
265961
|
|
|
265831
265962
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HoSpecialChars.vue
|
|
265832
265963
|
|
|
@@ -265839,8 +265970,8 @@ function isPromise(obj) {
|
|
|
265839
265970
|
|
|
265840
265971
|
var HoSpecialChars_component = (0,componentNormalizer/* default */.Z)(
|
|
265841
265972
|
insert_HoSpecialCharsvue_type_script_lang_js_,
|
|
265842
|
-
|
|
265843
|
-
|
|
265973
|
+
HoSpecialCharsvue_type_template_id_44e54a58_render,
|
|
265974
|
+
HoSpecialCharsvue_type_template_id_44e54a58_staticRenderFns,
|
|
265844
265975
|
false,
|
|
265845
265976
|
null,
|
|
265846
265977
|
null,
|