hoeditor-web 3.1.193 → 3.1.194
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.umd.js +218 -165
- package/lib/hoeditor.umd.min.js +17 -17
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -3267,91 +3267,6 @@ var popper_createPopper = /*#__PURE__*/popperGenerator({
|
|
|
3267
3267
|
|
|
3268
3268
|
|
|
3269
3269
|
|
|
3270
|
-
/***/ }),
|
|
3271
|
-
|
|
3272
|
-
/***/ 35003:
|
|
3273
|
-
/***/ (function(module, exports) {
|
|
3274
|
-
|
|
3275
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
|
|
3276
|
-
// MIT license
|
|
3277
|
-
// source: https://github.com/amiller-gh/currentScript-polyfill
|
|
3278
|
-
|
|
3279
|
-
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
|
|
3280
|
-
|
|
3281
|
-
(function (root, factory) {
|
|
3282
|
-
if (true) {
|
|
3283
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
3284
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
3285
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
3286
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
3287
|
-
} else {}
|
|
3288
|
-
}(typeof self !== 'undefined' ? self : this, function () {
|
|
3289
|
-
function getCurrentScript () {
|
|
3290
|
-
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
|
|
3291
|
-
// for chrome
|
|
3292
|
-
if (!descriptor && 'currentScript' in document && document.currentScript) {
|
|
3293
|
-
return document.currentScript
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
// for other browsers with native support for currentScript
|
|
3297
|
-
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
|
|
3298
|
-
return document.currentScript
|
|
3299
|
-
}
|
|
3300
|
-
|
|
3301
|
-
// IE 8-10 support script readyState
|
|
3302
|
-
// IE 11+ & Firefox support stack trace
|
|
3303
|
-
try {
|
|
3304
|
-
throw new Error();
|
|
3305
|
-
}
|
|
3306
|
-
catch (err) {
|
|
3307
|
-
// Find the second match for the "at" string to get file src url from stack.
|
|
3308
|
-
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
|
|
3309
|
-
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
|
|
3310
|
-
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
|
|
3311
|
-
scriptLocation = (stackDetails && stackDetails[1]) || false,
|
|
3312
|
-
line = (stackDetails && stackDetails[2]) || false,
|
|
3313
|
-
currentLocation = document.location.href.replace(document.location.hash, ''),
|
|
3314
|
-
pageSource,
|
|
3315
|
-
inlineScriptSourceRegExp,
|
|
3316
|
-
inlineScriptSource,
|
|
3317
|
-
scripts = document.getElementsByTagName('script'); // Live NodeList collection
|
|
3318
|
-
|
|
3319
|
-
if (scriptLocation === currentLocation) {
|
|
3320
|
-
pageSource = document.documentElement.outerHTML;
|
|
3321
|
-
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
|
|
3322
|
-
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
|
|
3323
|
-
}
|
|
3324
|
-
|
|
3325
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
3326
|
-
// If ready state is interactive, return the script tag
|
|
3327
|
-
if (scripts[i].readyState === 'interactive') {
|
|
3328
|
-
return scripts[i];
|
|
3329
|
-
}
|
|
3330
|
-
|
|
3331
|
-
// If src matches, return the script tag
|
|
3332
|
-
if (scripts[i].src === scriptLocation) {
|
|
3333
|
-
return scripts[i];
|
|
3334
|
-
}
|
|
3335
|
-
|
|
3336
|
-
// If inline source matches, return the script tag
|
|
3337
|
-
if (
|
|
3338
|
-
scriptLocation === currentLocation &&
|
|
3339
|
-
scripts[i].innerHTML &&
|
|
3340
|
-
scripts[i].innerHTML.trim() === inlineScriptSource
|
|
3341
|
-
) {
|
|
3342
|
-
return scripts[i];
|
|
3343
|
-
}
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
// If no match, return null
|
|
3347
|
-
return null;
|
|
3348
|
-
}
|
|
3349
|
-
};
|
|
3350
|
-
|
|
3351
|
-
return getCurrentScript
|
|
3352
|
-
}));
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
3270
|
/***/ }),
|
|
3356
3271
|
|
|
3357
3272
|
/***/ 47499:
|
|
@@ -97836,7 +97751,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
97836
97751
|
|
|
97837
97752
|
/***/ }),
|
|
97838
97753
|
|
|
97839
|
-
/***/
|
|
97754
|
+
/***/ 89316:
|
|
97840
97755
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
97841
97756
|
|
|
97842
97757
|
"use strict";
|
|
@@ -97848,7 +97763,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
97848
97763
|
"default": function() { return /* binding */ PoperTipText; }
|
|
97849
97764
|
});
|
|
97850
97765
|
|
|
97851
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=
|
|
97766
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=e75fb14e
|
|
97852
97767
|
var render = function render() {
|
|
97853
97768
|
var _vm = this,
|
|
97854
97769
|
_c = _vm._self._c;
|
|
@@ -97936,12 +97851,18 @@ var popper = __webpack_require__(98234);
|
|
|
97936
97851
|
if (this.isPoperText) {
|
|
97937
97852
|
this.poperTimer = setTimeout(function () {
|
|
97938
97853
|
_this.isShow = _this.isPoperText;
|
|
97939
|
-
|
|
97854
|
+
if (_this.poppernIstance) {
|
|
97855
|
+
_this.poppernIstance.update();
|
|
97856
|
+
}
|
|
97857
|
+
}, 200);
|
|
97940
97858
|
} else {
|
|
97941
97859
|
if (!this.isEnter) {
|
|
97942
97860
|
this.poperTimer = setTimeout(function () {
|
|
97943
97861
|
_this.isShow = _this.isPoperText;
|
|
97944
|
-
|
|
97862
|
+
if (_this.poppernIstance) {
|
|
97863
|
+
_this.poppernIstance.update();
|
|
97864
|
+
}
|
|
97865
|
+
}, 100);
|
|
97945
97866
|
}
|
|
97946
97867
|
}
|
|
97947
97868
|
},
|
|
@@ -98025,10 +97946,10 @@ var popper = __webpack_require__(98234);
|
|
|
98025
97946
|
|
|
98026
97947
|
/* harmony default export */ var poperTipText_PoperTipTextvue_type_script_lang_js = (PoperTipTextvue_type_script_lang_js);
|
|
98027
97948
|
|
|
98028
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=
|
|
97949
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=e75fb14e&prod&lang=less
|
|
98029
97950
|
// extracted by mini-css-extract-plugin
|
|
98030
97951
|
|
|
98031
|
-
;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=
|
|
97952
|
+
;// ./src/components/controls/poperTipText/PoperTipText.vue?vue&type=style&index=0&id=e75fb14e&prod&lang=less
|
|
98032
97953
|
|
|
98033
97954
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
98034
97955
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -108876,7 +108797,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
108876
108797
|
|
|
108877
108798
|
/***/ }),
|
|
108878
108799
|
|
|
108879
|
-
/***/
|
|
108800
|
+
/***/ 10468:
|
|
108880
108801
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
108881
108802
|
|
|
108882
108803
|
"use strict";
|
|
@@ -108892,7 +108813,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
108892
108813
|
var es_function_name = __webpack_require__(62010);
|
|
108893
108814
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
108894
108815
|
var i18n = __webpack_require__(49850);
|
|
108895
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
108816
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=042a726e
|
|
108896
108817
|
|
|
108897
108818
|
|
|
108898
108819
|
|
|
@@ -109433,7 +109354,7 @@ var render = function render() {
|
|
|
109433
109354
|
};
|
|
109434
109355
|
var staticRenderFns = [];
|
|
109435
109356
|
|
|
109436
|
-
;// ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
109357
|
+
;// ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=042a726e
|
|
109437
109358
|
|
|
109438
109359
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
109439
109360
|
var es_array_filter = __webpack_require__(2008);
|
|
@@ -109637,6 +109558,8 @@ var VerifyTip = __webpack_require__(7900);
|
|
|
109637
109558
|
this.textParam.isAllowDelete = _hoEditorFactory.defaultIsAllowDelete;
|
|
109638
109559
|
this.textParam.id = this.vueController.generateID('TF');
|
|
109639
109560
|
this.textParam.downListProperty.splitCharacter = ',';
|
|
109561
|
+
this.textParam.downListProperty.selectPrefix = /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.587", null, "有");
|
|
109562
|
+
this.textParam.downListProperty.unSelectPrefix = /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.70", null, "无");
|
|
109640
109563
|
}
|
|
109641
109564
|
},
|
|
109642
109565
|
methods: {
|
|
@@ -109794,10 +109717,10 @@ var VerifyTip = __webpack_require__(7900);
|
|
|
109794
109717
|
|
|
109795
109718
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js = (TextDialogvue_type_script_lang_js);
|
|
109796
109719
|
|
|
109797
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
109720
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=042a726e&prod&lang=less
|
|
109798
109721
|
// extracted by mini-css-extract-plugin
|
|
109799
109722
|
|
|
109800
|
-
;// ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
109723
|
+
;// ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=042a726e&prod&lang=less
|
|
109801
109724
|
|
|
109802
109725
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
109803
109726
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -165189,10 +165112,6 @@ var DrawSelect = /*#__PURE__*/function (_createjs$Shape) {
|
|
|
165189
165112
|
}
|
|
165190
165113
|
}]);
|
|
165191
165114
|
}(createjs.Shape);
|
|
165192
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
165193
|
-
var es_array_includes = __webpack_require__(74423);
|
|
165194
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
165195
|
-
var es_string_includes = __webpack_require__(21699);
|
|
165196
165115
|
;// ./src/editor/draw/drawNode/DrawSelectBg.ts
|
|
165197
165116
|
|
|
165198
165117
|
|
|
@@ -165203,8 +165122,6 @@ var es_string_includes = __webpack_require__(21699);
|
|
|
165203
165122
|
|
|
165204
165123
|
|
|
165205
165124
|
|
|
165206
|
-
|
|
165207
|
-
|
|
165208
165125
|
var DrawSelectBg = /*#__PURE__*/function (_createjs$Shape) {
|
|
165209
165126
|
function DrawSelectBg(hoEditorFactoryID, pageIndex, dline, left, right, inSameRect, startParent, endParent, color, isMultiRange) {
|
|
165210
165127
|
var _this;
|
|
@@ -165289,21 +165206,28 @@ var DrawSelectBg = /*#__PURE__*/function (_createjs$Shape) {
|
|
|
165289
165206
|
}
|
|
165290
165207
|
this.uncache();
|
|
165291
165208
|
this.graphics.clear();
|
|
165292
|
-
|
|
165293
|
-
|
|
165209
|
+
width = Math.floor(width);
|
|
165210
|
+
height = Math.floor(height);
|
|
165211
|
+
this.graphics.beginStroke(this._color).setStrokeStyle(4).setStrokeDash([6, 2], 0).drawRect(0, 0, width, height);
|
|
165212
|
+
// this.graphics.beginStroke(this._color).setStrokeStyle(4).setStrokeDash([6, 2], 0).moveTo(0, 0)
|
|
165213
|
+
// .lineTo(width, 0)
|
|
165214
|
+
// .moveTo(0, 0)
|
|
165215
|
+
// .lineTo(0, height)
|
|
165216
|
+
// .moveTo(0, height)
|
|
165217
|
+
// .lineTo(width, height)
|
|
165218
|
+
// .moveTo(width, height)
|
|
165219
|
+
// .lineTo(width, 0)
|
|
165294
165220
|
var pt = {
|
|
165295
165221
|
x: 0,
|
|
165296
165222
|
y: 0
|
|
165297
165223
|
};
|
|
165298
|
-
if
|
|
165299
|
-
|
|
165300
|
-
}
|
|
165224
|
+
// if(dline.rootPath.includes("header")) {
|
|
165225
|
+
// hoEditorFactory.drawTree.drawPages[this._pageIndex].drawHeader.stage.update();
|
|
165226
|
+
// }
|
|
165301
165227
|
pt = dline.localToLocal(this._left, 0, hoEditorFactory.drawTree.drawPages[this._pageIndex].drawDocContainer);
|
|
165302
165228
|
this.x = pt.x;
|
|
165303
165229
|
this.y = pt.y;
|
|
165304
|
-
|
|
165305
|
-
// this.graphics.clear();
|
|
165306
|
-
// console.log(this);
|
|
165230
|
+
this.alpha = 1;
|
|
165307
165231
|
// if(this.stage) {
|
|
165308
165232
|
// this.stage.update();
|
|
165309
165233
|
// }
|
|
@@ -177223,7 +177147,7 @@ var map = {
|
|
|
177223
177147
|
"./paragraph/ParagraphDialog.vue": 88281,
|
|
177224
177148
|
"./poperSelect/PoperMark.vue": 11382,
|
|
177225
177149
|
"./poperSelect/PoperSelect.vue": 79955,
|
|
177226
|
-
"./poperTipText/PoperTipText.vue":
|
|
177150
|
+
"./poperTipText/PoperTipText.vue": 89316,
|
|
177227
177151
|
"./popers/Poper.vue": 68137,
|
|
177228
177152
|
"./popers/Title.vue": 68839,
|
|
177229
177153
|
"./printstyle/PrintLineStyle.vue": 27705,
|
|
@@ -177243,7 +177167,7 @@ var map = {
|
|
|
177243
177167
|
"./table/TableProperty.vue": 65356,
|
|
177244
177168
|
"./table/TableRowProperty.vue": 51653,
|
|
177245
177169
|
"./textDialog/TextBorderDialog.vue": 80713,
|
|
177246
|
-
"./textDialog/TextDialog.vue":
|
|
177170
|
+
"./textDialog/TextDialog.vue": 10468,
|
|
177247
177171
|
"./textDialog/TextToLabelDialog.vue": 5380,
|
|
177248
177172
|
"./textDialog/VerifyTip.vue": 7900,
|
|
177249
177173
|
"./upload/CanvasImageDialog.vue": 97377,
|
|
@@ -200721,15 +200645,7 @@ __webpack_require__.d(entry_lib_clickoutside_namespaceObject, {
|
|
|
200721
200645
|
|
|
200722
200646
|
if (typeof window !== 'undefined') {
|
|
200723
200647
|
var entry_lib_currentScript = window.document.currentScript
|
|
200724
|
-
if (
|
|
200725
|
-
var entry_lib_getCurrentScript = __webpack_require__(35003)
|
|
200726
|
-
entry_lib_currentScript = entry_lib_getCurrentScript()
|
|
200727
|
-
|
|
200728
|
-
// for backward compatibility, because previously we directly included the polyfill
|
|
200729
|
-
if (!('currentScript' in document)) {
|
|
200730
|
-
Object.defineProperty(document, 'currentScript', { get: entry_lib_getCurrentScript })
|
|
200731
|
-
}
|
|
200732
|
-
}
|
|
200648
|
+
if (false) { var entry_lib_getCurrentScript; }
|
|
200733
200649
|
|
|
200734
200650
|
var entry_lib_src = entry_lib_currentScript && entry_lib_currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
200735
200651
|
if (entry_lib_src) {
|
|
@@ -238719,9 +238635,9 @@ var entry_lib_TextNode = __webpack_require__(32083);
|
|
|
238719
238635
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
238720
238636
|
var entry_lib_ParagraphNode = __webpack_require__(40504);
|
|
238721
238637
|
;// ./src/components/version.ts
|
|
238722
|
-
/* harmony default export */ var entry_lib_version = ('3.1.
|
|
238638
|
+
/* harmony default export */ var entry_lib_version = ('3.1.194');
|
|
238723
238639
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
238724
|
-
var entry_lib_PoperTipText = __webpack_require__(
|
|
238640
|
+
var entry_lib_PoperTipText = __webpack_require__(89316);
|
|
238725
238641
|
;// ./src/components/controls/poperTipText/index.ts
|
|
238726
238642
|
|
|
238727
238643
|
/* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
|
|
@@ -248227,7 +248143,6 @@ var entry_lib_initLanguage = /*#__PURE__*/function () {
|
|
|
248227
248143
|
|
|
248228
248144
|
|
|
248229
248145
|
|
|
248230
|
-
|
|
248231
248146
|
|
|
248232
248147
|
|
|
248233
248148
|
// import pd from '@/plugins/pretty-data';
|
|
@@ -254953,22 +254868,41 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
254953
254868
|
value: function setBackgroundByName(items) {
|
|
254954
254869
|
var _this7 = this;
|
|
254955
254870
|
var clearSelectRange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
254871
|
+
var moveCaret = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
254956
254872
|
var selectRangeArr = [];
|
|
254957
254873
|
var hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
254874
|
+
if (items.length == 1 && moveCaret) {
|
|
254875
|
+
moveCaret = true;
|
|
254876
|
+
}
|
|
254877
|
+
var nodeList = [];
|
|
254878
|
+
var textList = [];
|
|
254879
|
+
items.map(function (v) {
|
|
254880
|
+
v.name = v.name || '';
|
|
254881
|
+
// v.text = v.text || '';
|
|
254882
|
+
v.id = v.id || '';
|
|
254883
|
+
v.dataId = v.dataId || '';
|
|
254884
|
+
v.innerIdentifier = v.innerIdentifier || '';
|
|
254885
|
+
if (v.text) {
|
|
254886
|
+
textList.push(v.text);
|
|
254887
|
+
} else {
|
|
254888
|
+
nodeList.push(v);
|
|
254889
|
+
}
|
|
254890
|
+
return v;
|
|
254891
|
+
});
|
|
254958
254892
|
var _iteratesNodes9 = function iteratesNodes(nodes) {
|
|
254959
254893
|
for (var i = 0; i < nodes.length; i++) {
|
|
254960
254894
|
var anode = nodes[i];
|
|
254961
254895
|
if (anode instanceof entry_lib_ControlNode/* ControlNode */.g && anode.nodeType !== 10 && anode.nodeType !== 11 || anode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM) {
|
|
254962
|
-
for (var m = 0, len =
|
|
254963
|
-
var item =
|
|
254896
|
+
for (var m = 0, len = nodeList.length - 1; m <= len; m++) {
|
|
254897
|
+
var item = nodeList[m];
|
|
254964
254898
|
var isCurrent = item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId || item.innerIdentifier === anode.innerIdentifier;
|
|
254965
|
-
//
|
|
254966
|
-
|
|
254967
|
-
|
|
254968
|
-
|
|
254969
|
-
|
|
254970
|
-
|
|
254971
|
-
|
|
254899
|
+
// if (item.text !== '' && anode.text.includes(item.text)) {
|
|
254900
|
+
// const range = this.search(anode, item.text);
|
|
254901
|
+
// if (range.length > 0) {
|
|
254902
|
+
// selectRangeArr = selectRangeArr.concat(range);
|
|
254903
|
+
// }
|
|
254904
|
+
// } else if ((item.text === '' || item.text == undefined) && isCurrent) {
|
|
254905
|
+
if (isCurrent) {
|
|
254972
254906
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
254973
254907
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
254974
254908
|
var pStartPoint = entry_lib_StagePosition/* StagePosition */.w.getStagePosByPath(_this7._hoEditorFactoryID, sPath);
|
|
@@ -254995,12 +254929,34 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
254995
254929
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
254996
254930
|
_iteratesNodes9(footerDocTree[f].subDocNodes);
|
|
254997
254931
|
}
|
|
254932
|
+
if (textList.length) {
|
|
254933
|
+
textList.forEach(function (text) {
|
|
254934
|
+
var result = _this7.searchText(text);
|
|
254935
|
+
if (result.length > 0) {
|
|
254936
|
+
selectRangeArr = selectRangeArr.concat(result);
|
|
254937
|
+
}
|
|
254938
|
+
});
|
|
254939
|
+
}
|
|
254998
254940
|
if (selectRangeArr.length > 0) {
|
|
254999
254941
|
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, clearSelectRange, true);
|
|
254942
|
+
if (moveCaret) {
|
|
254943
|
+
this.moveCaret(selectRangeArr[selectRangeArr.length - 1].spEnd.path);
|
|
254944
|
+
}
|
|
255000
254945
|
} else {
|
|
255001
254946
|
console.warn('未搜索到符合条件的元素');
|
|
255002
254947
|
}
|
|
255003
254948
|
}
|
|
254949
|
+
}, {
|
|
254950
|
+
key: "moveCaret",
|
|
254951
|
+
value: function moveCaret(path) {
|
|
254952
|
+
var hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
254953
|
+
setTimeout(function () {
|
|
254954
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(path);
|
|
254955
|
+
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
254956
|
+
hoEditorFactory.drawTree.caret.visible = true;
|
|
254957
|
+
hoEditorFactory.drawTree.editor.input.focus();
|
|
254958
|
+
}, 200);
|
|
254959
|
+
}
|
|
255004
254960
|
}, {
|
|
255005
254961
|
key: "search",
|
|
255006
254962
|
value: function search(node, text) {
|
|
@@ -255076,6 +255032,103 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
255076
255032
|
selectRangeArr = this.getSelectRanges(paraTextStrArr, text, nodesMap);
|
|
255077
255033
|
return selectRangeArr;
|
|
255078
255034
|
}
|
|
255035
|
+
}, {
|
|
255036
|
+
key: "searchText",
|
|
255037
|
+
value: function searchText(text) {
|
|
255038
|
+
var hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
255039
|
+
var npEnd = hoEditorFactory.docTree.findNodePositionByPath("main/0");
|
|
255040
|
+
var result = hoEditorFactory.docTree.findNodes(npEnd.node, text, 0, true);
|
|
255041
|
+
var selectRangeArr = [];
|
|
255042
|
+
var _iterator2 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(result.obj2.values()),
|
|
255043
|
+
_step2;
|
|
255044
|
+
try {
|
|
255045
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
255046
|
+
var item = _step2.value;
|
|
255047
|
+
selectRangeArr.push(this.getSelectRanges2(item, text, result.obj1));
|
|
255048
|
+
}
|
|
255049
|
+
} catch (err) {
|
|
255050
|
+
_iterator2.e(err);
|
|
255051
|
+
} finally {
|
|
255052
|
+
_iterator2.f();
|
|
255053
|
+
}
|
|
255054
|
+
return selectRangeArr;
|
|
255055
|
+
}
|
|
255056
|
+
}, {
|
|
255057
|
+
key: "getSelectRanges2",
|
|
255058
|
+
value: function getSelectRanges2(item, text, nodesMap) {
|
|
255059
|
+
var hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
255060
|
+
var paraIndex = item.split("|")[0];
|
|
255061
|
+
var textCount = item.split("|")[1];
|
|
255062
|
+
var strIndex = parseInt(item.split("|")[2]);
|
|
255063
|
+
var sIndex = -1;
|
|
255064
|
+
var eIndex = -1;
|
|
255065
|
+
var _iterator3 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(nodesMap.keys()),
|
|
255066
|
+
_step3;
|
|
255067
|
+
try {
|
|
255068
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
255069
|
+
var key = _step3.value;
|
|
255070
|
+
var startIndex = parseInt(key.split("|")[2]);
|
|
255071
|
+
if (key.split("|")[0] === paraIndex && key.split("|")[1] === textCount) {
|
|
255072
|
+
if (strIndex >= startIndex) {
|
|
255073
|
+
if (startIndex > sIndex) {
|
|
255074
|
+
sIndex = startIndex;
|
|
255075
|
+
}
|
|
255076
|
+
}
|
|
255077
|
+
if (strIndex + text.length >= startIndex) {
|
|
255078
|
+
if (startIndex > eIndex) {
|
|
255079
|
+
eIndex = startIndex;
|
|
255080
|
+
}
|
|
255081
|
+
}
|
|
255082
|
+
}
|
|
255083
|
+
}
|
|
255084
|
+
} catch (err) {
|
|
255085
|
+
_iterator3.e(err);
|
|
255086
|
+
} finally {
|
|
255087
|
+
_iterator3.f();
|
|
255088
|
+
}
|
|
255089
|
+
var sPath = nodesMap.get(paraIndex + "|" + textCount + "|" + sIndex.toString());
|
|
255090
|
+
var ePath = nodesMap.get(paraIndex + "|" + textCount + "|" + eIndex.toString());
|
|
255091
|
+
var styleIndex = 0;
|
|
255092
|
+
var np = hoEditorFactory.docTree.findNodePositionByPath(sPath);
|
|
255093
|
+
if (np && np.node) {
|
|
255094
|
+
if (np.node instanceof entry_lib_TextNode/* TextNode */.E || np.node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || np.node instanceof entry_lib_DownListNode/* DownListNode */.dS) {
|
|
255095
|
+
styleIndex = np.node.styleIndex;
|
|
255096
|
+
}
|
|
255097
|
+
}
|
|
255098
|
+
var startPath = "";
|
|
255099
|
+
var endPath = "";
|
|
255100
|
+
if (strIndex - sIndex - 1 >= 0) {
|
|
255101
|
+
var pathArr = sPath.split("/");
|
|
255102
|
+
pathArr[pathArr.length - 1] = (strIndex - sIndex - 1).toString();
|
|
255103
|
+
startPath = pathArr.join("/");
|
|
255104
|
+
} else {
|
|
255105
|
+
if (np && np.node) {
|
|
255106
|
+
var preNode = np.node.previousLeaf();
|
|
255107
|
+
if (preNode) {
|
|
255108
|
+
startPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
255109
|
+
}
|
|
255110
|
+
}
|
|
255111
|
+
}
|
|
255112
|
+
if (strIndex + text.length - eIndex - 1 >= 0) {
|
|
255113
|
+
var _pathArr = ePath.split("/");
|
|
255114
|
+
_pathArr[_pathArr.length - 1] = (strIndex + text.length - eIndex - 1).toString();
|
|
255115
|
+
endPath = _pathArr.join("/");
|
|
255116
|
+
} else {
|
|
255117
|
+
var npEnd = hoEditorFactory.docTree.findNodePositionByPath(ePath);
|
|
255118
|
+
if (npEnd && npEnd.node) {
|
|
255119
|
+
var _preNode = npEnd.node.previousLeaf();
|
|
255120
|
+
if (_preNode) {
|
|
255121
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(_preNode);
|
|
255122
|
+
}
|
|
255123
|
+
}
|
|
255124
|
+
}
|
|
255125
|
+
var selectRange = new entry_lib_SelectRange/* SelectRange */.u(this.hoEditorFactoryID);
|
|
255126
|
+
var pStartPoint = entry_lib_StagePosition/* StagePosition */.w.getStagePosByPath(this._hoEditorFactoryID, startPath);
|
|
255127
|
+
var pEndPoint = entry_lib_StagePosition/* StagePosition */.w.getStagePosByPath(this._hoEditorFactoryID, endPath);
|
|
255128
|
+
selectRange.spStart = pStartPoint;
|
|
255129
|
+
selectRange.spEnd = pEndPoint;
|
|
255130
|
+
return selectRange;
|
|
255131
|
+
}
|
|
255079
255132
|
}, {
|
|
255080
255133
|
key: "getSelectRanges",
|
|
255081
255134
|
value: function getSelectRanges(paraTextStrArr, text, nodesMap) {
|
|
@@ -255105,13 +255158,13 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
255105
255158
|
var paraIndex = valueStr.split('|')[0];
|
|
255106
255159
|
var textCount = valueStr.split('|')[1];
|
|
255107
255160
|
var strIndex = parseInt(valueStr.split('|')[2]);
|
|
255108
|
-
var
|
|
255109
|
-
|
|
255161
|
+
var _iterator4 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(nodesMap),
|
|
255162
|
+
_step4;
|
|
255110
255163
|
try {
|
|
255111
|
-
for (
|
|
255112
|
-
var
|
|
255113
|
-
key =
|
|
255114
|
-
value =
|
|
255164
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
255165
|
+
var _step4$value = (0,entry_lib_esm_slicedToArray/* default */.A)(_step4.value, 2),
|
|
255166
|
+
key = _step4$value[0],
|
|
255167
|
+
value = _step4$value[1];
|
|
255115
255168
|
var startIndex = parseInt(key.split('|')[2]);
|
|
255116
255169
|
if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
|
|
255117
255170
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value);
|
|
@@ -255141,9 +255194,9 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
255141
255194
|
}
|
|
255142
255195
|
}
|
|
255143
255196
|
} catch (err) {
|
|
255144
|
-
|
|
255197
|
+
_iterator4.e(err);
|
|
255145
255198
|
} finally {
|
|
255146
|
-
|
|
255199
|
+
_iterator4.f();
|
|
255147
255200
|
}
|
|
255148
255201
|
});
|
|
255149
255202
|
for (var j = 0; j < textNodesPaths.length; j++) {
|
|
@@ -257136,13 +257189,13 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
257136
257189
|
var paraIndex = valueStr.split('|')[0];
|
|
257137
257190
|
var textCount = valueStr.split('|')[1];
|
|
257138
257191
|
var strIndex = parseInt(valueStr.split('|')[2]);
|
|
257139
|
-
var
|
|
257140
|
-
|
|
257192
|
+
var _iterator5 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(nodesMap),
|
|
257193
|
+
_step5;
|
|
257141
257194
|
try {
|
|
257142
|
-
for (
|
|
257143
|
-
var
|
|
257144
|
-
key =
|
|
257145
|
-
value =
|
|
257195
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
257196
|
+
var _step5$value = (0,entry_lib_esm_slicedToArray/* default */.A)(_step5.value, 2),
|
|
257197
|
+
key = _step5$value[0],
|
|
257198
|
+
value = _step5$value[1];
|
|
257146
257199
|
var startIndex = parseInt(key.split('|')[2]);
|
|
257147
257200
|
if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
|
|
257148
257201
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value);
|
|
@@ -257151,9 +257204,9 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
257151
257204
|
if (strIndex < startIndex + np.node.text.length) {
|
|
257152
257205
|
var lastPath = strIndex - startIndex - 1;
|
|
257153
257206
|
if (lastPath >= 0) {
|
|
257154
|
-
var
|
|
257155
|
-
|
|
257156
|
-
returnPath =
|
|
257207
|
+
var _pathArr2 = value.split('/');
|
|
257208
|
+
_pathArr2[_pathArr2.length - 1] = lastPath.toString();
|
|
257209
|
+
returnPath = _pathArr2.join('/');
|
|
257157
257210
|
} else {
|
|
257158
257211
|
//搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
|
|
257159
257212
|
var preNode = np.node.previousLeaf();
|
|
@@ -257167,9 +257220,9 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
257167
257220
|
}
|
|
257168
257221
|
}
|
|
257169
257222
|
} catch (err) {
|
|
257170
|
-
|
|
257223
|
+
_iterator5.e(err);
|
|
257171
257224
|
} finally {
|
|
257172
|
-
|
|
257225
|
+
_iterator5.f();
|
|
257173
257226
|
}
|
|
257174
257227
|
if (returnPath) pathArr.push(returnPath);
|
|
257175
257228
|
}
|
|
@@ -257250,37 +257303,37 @@ var entry_lib_VueController = /*#__PURE__*/function () {
|
|
|
257250
257303
|
radioAndCheckBoxs.forEach(function (value) {
|
|
257251
257304
|
if (value.groupHasOptions && !value.isSelected && value.groupName !== "") {
|
|
257252
257305
|
var isOk = false;
|
|
257253
|
-
var
|
|
257254
|
-
|
|
257306
|
+
var _iterator6 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(radioAndCheckBoxs.values()),
|
|
257307
|
+
_step6;
|
|
257255
257308
|
try {
|
|
257256
|
-
for (
|
|
257257
|
-
var val =
|
|
257309
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
257310
|
+
var val = _step6.value;
|
|
257258
257311
|
if (val.controlStyle === value.controlStyle && val.groupName === value.groupName && val.isSelected) {
|
|
257259
257312
|
isOk = true;
|
|
257260
257313
|
break;
|
|
257261
257314
|
}
|
|
257262
257315
|
}
|
|
257263
257316
|
} catch (err) {
|
|
257264
|
-
|
|
257317
|
+
_iterator6.e(err);
|
|
257265
257318
|
} finally {
|
|
257266
|
-
|
|
257319
|
+
_iterator6.f();
|
|
257267
257320
|
}
|
|
257268
257321
|
if (!isOk) {
|
|
257269
257322
|
names.push(value.groupName);
|
|
257270
257323
|
elements.push(value);
|
|
257271
|
-
var
|
|
257272
|
-
|
|
257324
|
+
var _iterator7 = (0,entry_lib_createForOfIteratorHelper/* default */.A)(radioAndCheckBoxs.values()),
|
|
257325
|
+
_step7;
|
|
257273
257326
|
try {
|
|
257274
|
-
for (
|
|
257275
|
-
var v =
|
|
257327
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
257328
|
+
var v = _step7.value;
|
|
257276
257329
|
if (v.controlStyle === value.controlStyle && v.groupName === value.groupName && v.id !== value.id) {
|
|
257277
257330
|
elements.push(v);
|
|
257278
257331
|
}
|
|
257279
257332
|
}
|
|
257280
257333
|
} catch (err) {
|
|
257281
|
-
|
|
257334
|
+
_iterator7.e(err);
|
|
257282
257335
|
} finally {
|
|
257283
|
-
|
|
257336
|
+
_iterator7.f();
|
|
257284
257337
|
}
|
|
257285
257338
|
}
|
|
257286
257339
|
}
|
|
@@ -267870,8 +267923,8 @@ var entry_lib_PrintController = /*#__PURE__*/function () {
|
|
|
267870
267923
|
return (0,entry_lib_regeneratorRuntime/* default */.A)().wrap(function _callee12$(_context12) {
|
|
267871
267924
|
while (1) switch (_context12.prev = _context12.next) {
|
|
267872
267925
|
case 0:
|
|
267873
|
-
xmlIndex++;
|
|
267874
267926
|
currentName = xmlList[xmlIndex] ? xmlList[xmlIndex][5] : '';
|
|
267927
|
+
xmlIndex++;
|
|
267875
267928
|
if (xmlIndex <= xmlList.length - 1) {
|
|
267876
267929
|
if (xmlList[xmlIndex][2]) {
|
|
267877
267930
|
// 循环到病程记录时
|