hoeditor-web 2.0.110 → 2.0.112
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.common.js +238 -174
- package/lib/hoeditor.css +2 -2
- package/lib/hoeditor.umd.js +238 -174
- package/lib/hoeditor.umd.min.js +23 -23
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -6301,7 +6301,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6301
6301
|
|
|
6302
6302
|
/***/ }),
|
|
6303
6303
|
|
|
6304
|
-
/***/
|
|
6304
|
+
/***/ 24160:
|
|
6305
6305
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6306
6306
|
|
|
6307
6307
|
"use strict";
|
|
@@ -6313,7 +6313,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6313
6313
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6314
6314
|
});
|
|
6315
6315
|
|
|
6316
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
6316
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=5b35c311&scoped=true&
|
|
6317
6317
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
6318
6318
|
var item = ref.item;
|
|
6319
6319
|
return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini","type":"primary"},on:{"click":_vm.sureSelect}},[_vm._v("确定")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini","type":"primary"},on:{"click":_vm.sureDate}},[_vm._v("确定")])],1)],1):_vm._e()])}
|
|
@@ -9118,27 +9118,30 @@ var popper = __webpack_require__(14519);
|
|
|
9118
9118
|
e.preventDefault();
|
|
9119
9119
|
},
|
|
9120
9120
|
listenScroller: function listenScroller(e) {
|
|
9121
|
-
var editorNode = document.querySelector('.editor');
|
|
9122
9121
|
this.poppernIstance && this.poppernIstance.update();
|
|
9123
9122
|
},
|
|
9124
9123
|
handleClose: function handleClose() {
|
|
9124
|
+
this.removeListerner();
|
|
9125
9125
|
this.$emit('poperClose');
|
|
9126
|
-
console.timeEnd("下拉选中时间");
|
|
9126
|
+
console.timeEnd("下拉选中时间");
|
|
9127
9127
|
},
|
|
9128
|
-
|
|
9128
|
+
removeListerner: function removeListerner() {
|
|
9129
9129
|
var _document$querySelect2;
|
|
9130
9130
|
|
|
9131
9131
|
(_document$querySelect2 = document.querySelector('.ho-editor-list')) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.removeEventListener('scroll', this.listenScroller, true);
|
|
9132
9132
|
window.removeEventListener('keydown', this.arrowKeysController);
|
|
9133
|
+
},
|
|
9134
|
+
beforeDestroy: function beforeDestroy() {
|
|
9135
|
+
this.removeListerner();
|
|
9133
9136
|
}
|
|
9134
9137
|
}
|
|
9135
9138
|
});
|
|
9136
9139
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
9137
9140
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
9138
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
9141
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5b35c311&lang=scss&scoped=true&
|
|
9139
9142
|
// extracted by mini-css-extract-plugin
|
|
9140
9143
|
|
|
9141
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
9144
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5b35c311&lang=scss&scoped=true&
|
|
9142
9145
|
|
|
9143
9146
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
9144
9147
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -9157,7 +9160,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9157
9160
|
staticRenderFns,
|
|
9158
9161
|
false,
|
|
9159
9162
|
null,
|
|
9160
|
-
"
|
|
9163
|
+
"5b35c311",
|
|
9161
9164
|
null
|
|
9162
9165
|
|
|
9163
9166
|
)
|
|
@@ -25809,40 +25812,40 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
25809
25812
|
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_4__);
|
|
25810
25813
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35671);
|
|
25811
25814
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(22342);
|
|
25812
|
-
/* harmony import */ var
|
|
25813
|
-
/* harmony import */ var
|
|
25814
|
-
/* harmony import */ var
|
|
25815
|
-
/* harmony import */ var
|
|
25816
|
-
/* harmony import */ var
|
|
25817
|
-
/* harmony import */ var
|
|
25818
|
-
/* harmony import */ var
|
|
25819
|
-
/* harmony import */ var
|
|
25820
|
-
/* harmony import */ var
|
|
25821
|
-
/* harmony import */ var
|
|
25822
|
-
/* harmony import */ var
|
|
25823
|
-
/* harmony import */ var
|
|
25824
|
-
/* harmony import */ var
|
|
25825
|
-
/* harmony import */ var
|
|
25826
|
-
/* harmony import */ var
|
|
25827
|
-
/* harmony import */ var
|
|
25828
|
-
/* harmony import */ var
|
|
25829
|
-
/* harmony import */ var
|
|
25830
|
-
/* harmony import */ var
|
|
25831
|
-
/* harmony import */ var
|
|
25832
|
-
/* harmony import */ var
|
|
25833
|
-
/* harmony import */ var
|
|
25834
|
-
/* harmony import */ var
|
|
25835
|
-
/* harmony import */ var
|
|
25836
|
-
/* harmony import */ var
|
|
25837
|
-
/* harmony import */ var
|
|
25838
|
-
/* harmony import */ var
|
|
25839
|
-
/* harmony import */ var
|
|
25840
|
-
/* harmony import */ var
|
|
25841
|
-
/* harmony import */ var
|
|
25842
|
-
/* harmony import */ var
|
|
25843
|
-
/* harmony import */ var
|
|
25844
|
-
/* harmony import */ var
|
|
25845
|
-
/* harmony import */ var
|
|
25815
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(26699);
|
|
25816
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
25817
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(32023);
|
|
25818
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
25819
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
|
|
25820
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
25821
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(88674);
|
|
25822
|
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
25823
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(54747);
|
|
25824
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
25825
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74916);
|
|
25826
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
25827
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23123);
|
|
25828
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
25829
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(69600);
|
|
25830
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
25831
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(68309);
|
|
25832
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
25833
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(21703);
|
|
25834
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
25835
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(92222);
|
|
25836
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
25837
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(9653);
|
|
25838
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
25839
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40561);
|
|
25840
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
25841
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(39714);
|
|
25842
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
25843
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(69826);
|
|
25844
|
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
25845
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(66992);
|
|
25846
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
25847
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(33948);
|
|
25848
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
25846
25849
|
/* harmony import */ var _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(92787);
|
|
25847
25850
|
/* harmony import */ var _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(50369);
|
|
25848
25851
|
/* harmony import */ var _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(12019);
|
|
@@ -26074,26 +26077,27 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26074
26077
|
}, {
|
|
26075
26078
|
key: "insertNodeByPath",
|
|
26076
26079
|
value: function insertNodeByPath(path, node, isResetFieldText) {
|
|
26080
|
+
var _parentNode$downListP;
|
|
26081
|
+
|
|
26077
26082
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
26078
26083
|
var curRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
26079
26084
|
var parentNode = node.parentNode;
|
|
26080
26085
|
|
|
26081
|
-
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
26086
|
+
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText && !((_parentNode$downListP = parentNode.downListProperty.listItems) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.includes("<元素>"))) {
|
|
26082
26087
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26083
26088
|
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26092
|
-
|
|
26093
|
-
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
}
|
|
26089
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26090
|
+
curRange.startPath = firstPath;
|
|
26091
|
+
curRange.endPath = ePath; // if (curRange.isEmpty) {
|
|
26092
|
+
// const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
|
|
26093
|
+
// curRange.startPath=firstPath;
|
|
26094
|
+
// curRange.endPath = ePath;
|
|
26095
|
+
// }
|
|
26096
|
+
// if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26097
|
+
// const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
|
|
26098
|
+
// curRange.startPath = firstPath;
|
|
26099
|
+
// curRange.endPath = ePath;
|
|
26100
|
+
// }
|
|
26097
26101
|
}
|
|
26098
26102
|
|
|
26099
26103
|
var isError;
|
|
@@ -26414,6 +26418,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26414
26418
|
|
|
26415
26419
|
if (nodeStyle.combineStyle.strikeout) {
|
|
26416
26420
|
nodeStyle.strikeout = false;
|
|
26421
|
+
nodeStyle.deleterIndex = -1;
|
|
26417
26422
|
}
|
|
26418
26423
|
} else {
|
|
26419
26424
|
nodeStyle.creatorIndex = -1;
|
|
@@ -27597,6 +27602,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27597
27602
|
|
|
27598
27603
|
var values = valuesObject;
|
|
27599
27604
|
|
|
27605
|
+
if (node.childNodes.length == 3 && node.childNodes[1] instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j) {
|
|
27606
|
+
if (node.childNodes2[1].text !== node.name) {
|
|
27607
|
+
node.childNodes2[1].text = node.name;
|
|
27608
|
+
node.childNodes[1].text = node.name;
|
|
27609
|
+
}
|
|
27610
|
+
}
|
|
27611
|
+
|
|
27600
27612
|
if (Number(values["inputFieldType"]) === 1) {
|
|
27601
27613
|
if (node.keyValue !== "") {
|
|
27602
27614
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
@@ -27604,6 +27616,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27604
27616
|
node.childNodes.splice(1, 0, textNode);
|
|
27605
27617
|
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
27606
27618
|
} else {
|
|
27619
|
+
// ((node.childNodes2[1]) as MarkNode).text=node.name;
|
|
27607
27620
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
27608
27621
|
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
27609
27622
|
changeEvent.afterChangePath = ePath;
|
|
@@ -27667,7 +27680,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27667
27680
|
hoEditorFactory.undoService.begin();
|
|
27668
27681
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_25__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, textInputFieldNode));
|
|
27669
27682
|
hoEditorFactory.undoService.commit();
|
|
27670
|
-
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode);
|
|
27683
|
+
var afterPath = hoEditorFactory.docTree.getNodeLastPath(textInputFieldNode); //hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
27684
|
+
|
|
27685
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
27671
27686
|
return afterPath;
|
|
27672
27687
|
}
|
|
27673
27688
|
/**
|
|
@@ -36170,77 +36185,77 @@ var CombineStyle = /*#__PURE__*/function () {
|
|
|
36170
36185
|
|
|
36171
36186
|
if (fontSize === 5.5) {
|
|
36172
36187
|
//七号
|
|
36173
|
-
fontHeight =
|
|
36188
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(1.94, false);
|
|
36174
36189
|
}
|
|
36175
36190
|
|
|
36176
36191
|
if (fontSize === 6.5) {
|
|
36177
36192
|
//小六
|
|
36178
|
-
fontHeight =
|
|
36193
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.29, false);
|
|
36179
36194
|
}
|
|
36180
36195
|
|
|
36181
36196
|
if (fontSize === 7.5) {
|
|
36182
36197
|
//六号
|
|
36183
|
-
fontHeight =
|
|
36198
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.65, false);
|
|
36184
36199
|
}
|
|
36185
36200
|
|
|
36186
36201
|
if (fontSize === 9) {
|
|
36187
36202
|
//小五
|
|
36188
|
-
fontHeight =
|
|
36203
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.18, false);
|
|
36189
36204
|
}
|
|
36190
36205
|
|
|
36191
36206
|
if (fontSize === 10.5 || fontSize === 10) {
|
|
36192
36207
|
//五号
|
|
36193
|
-
fontHeight =
|
|
36208
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.70, false);
|
|
36194
36209
|
}
|
|
36195
36210
|
|
|
36196
36211
|
if (fontSize === 12) {
|
|
36197
36212
|
//小四
|
|
36198
|
-
fontHeight =
|
|
36213
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.23, false);
|
|
36199
36214
|
}
|
|
36200
36215
|
|
|
36201
36216
|
if (fontSize === 14) {
|
|
36202
36217
|
//四号
|
|
36203
|
-
fontHeight =
|
|
36218
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.94, false);
|
|
36204
36219
|
}
|
|
36205
36220
|
|
|
36206
36221
|
if (fontSize === 15) {
|
|
36207
36222
|
//小三
|
|
36208
|
-
fontHeight =
|
|
36223
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.29, false);
|
|
36209
36224
|
}
|
|
36210
36225
|
|
|
36211
36226
|
if (fontSize === 16) {
|
|
36212
36227
|
//三号
|
|
36213
|
-
fontHeight =
|
|
36228
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.64, false);
|
|
36214
36229
|
}
|
|
36215
36230
|
|
|
36216
36231
|
if (fontSize === 18) {
|
|
36217
36232
|
//小二
|
|
36218
|
-
fontHeight =
|
|
36233
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(6.35, false);
|
|
36219
36234
|
}
|
|
36220
36235
|
|
|
36221
36236
|
if (fontSize === 22) {
|
|
36222
36237
|
//二号
|
|
36223
|
-
fontHeight =
|
|
36238
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(7.76, false);
|
|
36224
36239
|
}
|
|
36225
36240
|
|
|
36226
36241
|
if (fontSize === 24) {
|
|
36227
36242
|
//小一
|
|
36228
|
-
fontHeight =
|
|
36243
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(8.47, false);
|
|
36229
36244
|
}
|
|
36230
36245
|
|
|
36231
36246
|
if (fontSize === 26) {
|
|
36232
36247
|
//一号
|
|
36233
|
-
fontHeight =
|
|
36248
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(9.17, false);
|
|
36234
36249
|
}
|
|
36235
36250
|
|
|
36236
36251
|
if (fontSize === 36) {
|
|
36237
36252
|
//小初
|
|
36238
|
-
fontHeight =
|
|
36253
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(12.7, false);
|
|
36239
36254
|
}
|
|
36240
36255
|
|
|
36241
36256
|
if (fontSize === 42) {
|
|
36242
36257
|
//初号
|
|
36243
|
-
fontHeight =
|
|
36258
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(14.82, false);
|
|
36244
36259
|
}
|
|
36245
36260
|
|
|
36246
36261
|
return fontHeight;
|
|
@@ -39518,7 +39533,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
39518
39533
|
|
|
39519
39534
|
if (convertNode) {
|
|
39520
39535
|
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
39521
|
-
if (convertNode.text !== "") {
|
|
39536
|
+
if (convertNode.text !== "" && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '') {
|
|
39522
39537
|
cellNode.addChild(convertNode);
|
|
39523
39538
|
}
|
|
39524
39539
|
} else {
|
|
@@ -40723,8 +40738,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40723
40738
|
_this._keyValue = ""; //选中项的key值
|
|
40724
40739
|
|
|
40725
40740
|
_this._downListContent = []; //列表内容
|
|
40741
|
+
//private _bandDataSource = new BandDataSource();
|
|
40726
40742
|
|
|
40727
|
-
_this._bandDataSource = new BandDataSource();
|
|
40728
40743
|
_this._charSpace = 0;
|
|
40729
40744
|
_this._value = ""; //选中项的value值
|
|
40730
40745
|
|
|
@@ -40839,16 +40854,18 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40839
40854
|
|
|
40840
40855
|
var assignvalue = function assignvalue(target, source) {
|
|
40841
40856
|
Object.keys(source).forEach(function (value) {
|
|
40842
|
-
if (
|
|
40843
|
-
if (
|
|
40844
|
-
|
|
40845
|
-
|
|
40846
|
-
|
|
40847
|
-
|
|
40857
|
+
if (value != "dataSource") {
|
|
40858
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
40859
|
+
if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
40860
|
+
assignvalue(target[value], source[value]);
|
|
40861
|
+
} else {
|
|
40862
|
+
if (source[value] !== "" && source[value] !== null) {
|
|
40863
|
+
assignvalue(target[value], eval("(" + source[value] + ")"));
|
|
40864
|
+
}
|
|
40848
40865
|
}
|
|
40866
|
+
} else {
|
|
40867
|
+
target[value] = source[value];
|
|
40849
40868
|
}
|
|
40850
|
-
} else {
|
|
40851
|
-
target[value] = source[value];
|
|
40852
40869
|
}
|
|
40853
40870
|
});
|
|
40854
40871
|
};
|
|
@@ -40938,17 +40955,15 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40938
40955
|
// this._valuesObject = value;
|
|
40939
40956
|
// }
|
|
40940
40957
|
// }
|
|
40958
|
+
// get bandDataSource(): BandDataSource {
|
|
40959
|
+
// return this._bandDataSource;
|
|
40960
|
+
// }
|
|
40961
|
+
// set bandDataSource(value: BandDataSource) {
|
|
40962
|
+
// if (this._bandDataSource !== value) {
|
|
40963
|
+
// this._bandDataSource = value;
|
|
40964
|
+
// }
|
|
40965
|
+
// }
|
|
40941
40966
|
|
|
40942
|
-
}, {
|
|
40943
|
-
key: "bandDataSource",
|
|
40944
|
-
get: function get() {
|
|
40945
|
-
return this._bandDataSource;
|
|
40946
|
-
},
|
|
40947
|
-
set: function set(value) {
|
|
40948
|
-
if (this._bandDataSource !== value) {
|
|
40949
|
-
this._bandDataSource = value;
|
|
40950
|
-
}
|
|
40951
|
-
}
|
|
40952
40967
|
}, {
|
|
40953
40968
|
key: "charSpace",
|
|
40954
40969
|
get: function get() {
|
|
@@ -40972,8 +40987,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40972
40987
|
ret.TipText = this.tipText !== undefined ? this.tipText : ret.TipText;
|
|
40973
40988
|
ret.IsAllowDelete = this.isAllowDelete !== undefined ? this.isAllowDelete : ret.IsAllowDelete;
|
|
40974
40989
|
ret.AllowMultiSelect = this.allowMultiSelect !== undefined ? this.allowMultiSelect : ret.AllowMultiSelect;
|
|
40975
|
-
ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly;
|
|
40976
|
-
|
|
40990
|
+
ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly; //ret.BandDataSource = this.bandDataSource;
|
|
40991
|
+
|
|
40977
40992
|
return ret;
|
|
40978
40993
|
}
|
|
40979
40994
|
}, {
|
|
@@ -41172,7 +41187,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
41172
41187
|
allowMultiSelect: this.allowMultiSelect,
|
|
41173
41188
|
readType: this.readType,
|
|
41174
41189
|
downLists: downLists,
|
|
41175
|
-
dataSource: this.bandDataSource,
|
|
41190
|
+
//dataSource: this.bandDataSource,
|
|
41176
41191
|
remark: this.remark,
|
|
41177
41192
|
customProperty: this.customProperty
|
|
41178
41193
|
};
|
|
@@ -41208,7 +41223,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
41208
41223
|
allowMultiSelect: this.allowMultiSelect,
|
|
41209
41224
|
readType: this.readType,
|
|
41210
41225
|
downLists: downLists,
|
|
41211
|
-
dataSource: this.bandDataSource,
|
|
41226
|
+
//dataSource: this.bandDataSource,
|
|
41212
41227
|
remark: this.remark,
|
|
41213
41228
|
customProperty: this.customProperty
|
|
41214
41229
|
};
|
|
@@ -46313,7 +46328,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
46313
46328
|
|
|
46314
46329
|
var assignvalue = function assignvalue(target, source) {
|
|
46315
46330
|
Object.keys(source).forEach(function (value) {
|
|
46316
|
-
if (value !== "appendText") {
|
|
46331
|
+
if (value !== "appendText" && value != "bandDataSource") {
|
|
46317
46332
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
46318
46333
|
if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
46319
46334
|
assignvalue(target[value], source[value]);
|
|
@@ -52161,7 +52176,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52161
52176
|
/*
|
|
52162
52177
|
* @Author: your name
|
|
52163
52178
|
* @Date: 2020-11-03 15:17:54
|
|
52164
|
-
* @LastEditTime: 2022-10-
|
|
52179
|
+
* @LastEditTime: 2022-10-24 17:01:47
|
|
52165
52180
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52166
52181
|
* @Description: In User Settings Edit
|
|
52167
52182
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -52752,25 +52767,29 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52752
52767
|
key: "setValuesObject",
|
|
52753
52768
|
value: function setValuesObject(valuesObject) {
|
|
52754
52769
|
// const valuesObj = eval("(" + valuesObject + ")");
|
|
52770
|
+
//console.time(`${valuesObject.name}--setValuesObject`)
|
|
52755
52771
|
var valuesObj = valuesObject;
|
|
52756
52772
|
|
|
52757
52773
|
var assignvalue = function assignvalue(target, source) {
|
|
52758
52774
|
Object.keys(source).forEach(function (value) {
|
|
52759
|
-
if (
|
|
52760
|
-
if (
|
|
52761
|
-
|
|
52762
|
-
|
|
52763
|
-
|
|
52764
|
-
|
|
52775
|
+
if (value != "childNodes" && value != "bandDataSource") {
|
|
52776
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
52777
|
+
if (Object.prototype.toString.call(source[value]) === '[object Object]') {
|
|
52778
|
+
assignvalue(target[value], source[value]);
|
|
52779
|
+
} else {
|
|
52780
|
+
if (source[value] !== '' && source[value] !== null) {
|
|
52781
|
+
// assignvalue(target[value], eval('(' + + ')'));
|
|
52782
|
+
assignvalue(target[value], JSON.parse(source[value]));
|
|
52783
|
+
}
|
|
52765
52784
|
}
|
|
52785
|
+
} else {
|
|
52786
|
+
target[value] = source[value];
|
|
52766
52787
|
}
|
|
52767
|
-
} else {
|
|
52768
|
-
target[value] = source[value];
|
|
52769
52788
|
}
|
|
52770
52789
|
});
|
|
52771
52790
|
};
|
|
52772
52791
|
|
|
52773
|
-
assignvalue(this, valuesObj);
|
|
52792
|
+
assignvalue(this, valuesObj); // console.timeEnd(`${valuesObject.name}--setValuesObject`)
|
|
52774
52793
|
}
|
|
52775
52794
|
}, {
|
|
52776
52795
|
key: "mouseEvent",
|
|
@@ -52873,11 +52892,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52873
52892
|
},
|
|
52874
52893
|
set: function set(value) {
|
|
52875
52894
|
if (this._labelText !== value) {
|
|
52876
|
-
this._labelText = value;
|
|
52877
|
-
|
|
52878
|
-
|
|
52879
|
-
this.node2DrawNodeRange(0, 0);
|
|
52880
|
-
}
|
|
52895
|
+
this._labelText = value; // if (this.text === '') {
|
|
52896
|
+
// this.node2DrawNodeRange(0, 0);
|
|
52897
|
+
// }
|
|
52881
52898
|
}
|
|
52882
52899
|
}
|
|
52883
52900
|
}, {
|
|
@@ -53311,6 +53328,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53311
53328
|
};
|
|
53312
53329
|
|
|
53313
53330
|
if (this.inputFieldType === InputFieldType.dropDownList) {
|
|
53331
|
+
loopChildNodes(this);
|
|
53332
|
+
|
|
53333
|
+
if (text != this.text) {
|
|
53334
|
+
this.value = "";
|
|
53335
|
+
this.keyValue = "";
|
|
53336
|
+
return text;
|
|
53337
|
+
} else {
|
|
53338
|
+
text = "";
|
|
53339
|
+
}
|
|
53340
|
+
|
|
53314
53341
|
var downListProperty = this.downListProperty;
|
|
53315
53342
|
|
|
53316
53343
|
if (downListProperty.listItems) {
|
|
@@ -53329,10 +53356,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53329
53356
|
if (keyValue.includes(listItem.id.toString())) {
|
|
53330
53357
|
var index = listItem.text.indexOf('<元素>');
|
|
53331
53358
|
text += index === -1 ? listItem.text : listItem.text.substring(0, index);
|
|
53359
|
+
text += this.downListProperty.splitCharacter;
|
|
53332
53360
|
String(listItem.value) && value.push(listItem.value);
|
|
53333
53361
|
}
|
|
53334
53362
|
}
|
|
53335
53363
|
|
|
53364
|
+
text = text.substring(0, text.length - 1);
|
|
53336
53365
|
this.value = value.join(',');
|
|
53337
53366
|
}
|
|
53338
53367
|
}
|
|
@@ -54104,7 +54133,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54104
54133
|
|
|
54105
54134
|
if (node) {
|
|
54106
54135
|
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54107
|
-
if (node.text !== '') {
|
|
54136
|
+
if (node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '') {
|
|
54108
54137
|
nodes.push(node);
|
|
54109
54138
|
}
|
|
54110
54139
|
} else {
|
|
@@ -54142,7 +54171,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54142
54171
|
|
|
54143
54172
|
if (_node2) {
|
|
54144
54173
|
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54145
|
-
if (_node2.text !== '') {
|
|
54174
|
+
if (_node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '') {
|
|
54146
54175
|
nodes.push(_node2);
|
|
54147
54176
|
}
|
|
54148
54177
|
} else {
|
|
@@ -54389,8 +54418,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54389
54418
|
}
|
|
54390
54419
|
}
|
|
54391
54420
|
} else {
|
|
54392
|
-
|
|
54393
|
-
|
|
54421
|
+
if (textArr[0] != "") {
|
|
54422
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
|
|
54423
|
+
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
54424
|
+
}
|
|
54394
54425
|
}
|
|
54395
54426
|
|
|
54396
54427
|
if (textArr.length > 1) {
|
|
@@ -54868,7 +54899,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
54868
54899
|
var isDisplay = hoeditorfacotry.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState.psReview */ .Dh.psReview ? true : false; //逻辑删除的节点是否显示
|
|
54869
54900
|
//const commentID = style.commentID === undefined ? "0" : style.commentID;
|
|
54870
54901
|
|
|
54871
|
-
if (!isDelete || isDisplay) {
|
|
54902
|
+
if (!isDelete || isDisplay || !hoeditorfacotry.isHideComments) {
|
|
54872
54903
|
var iend = istart;
|
|
54873
54904
|
var irestLength = 0; //是否标点
|
|
54874
54905
|
|
|
@@ -67835,7 +67866,7 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
67835
67866
|
value: function getCharWidth(ctx, akey) {
|
|
67836
67867
|
var wordW = 0;
|
|
67837
67868
|
|
|
67838
|
-
if (akey.charCodeAt(0) >= 10000) {
|
|
67869
|
+
if (akey && akey.charCodeAt(0) >= 10000) {
|
|
67839
67870
|
wordW = this._chinesWordWidth;
|
|
67840
67871
|
} else {
|
|
67841
67872
|
wordW = this._node.dCombineStyle.getEnglishWidth(akey);
|
|
@@ -68358,7 +68389,11 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
68358
68389
|
}
|
|
68359
68390
|
} else {
|
|
68360
68391
|
if (parentNode.keyValue == "") {
|
|
68361
|
-
|
|
68392
|
+
if (parentNode.text == "") {
|
|
68393
|
+
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
68394
|
+
} else {
|
|
68395
|
+
backColor = hoEditorFactory.option.getColorByLevel(12);
|
|
68396
|
+
}
|
|
68362
68397
|
} else {
|
|
68363
68398
|
var downListProperty = parentNode.downListProperty;
|
|
68364
68399
|
|
|
@@ -68425,7 +68460,8 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
68425
68460
|
}
|
|
68426
68461
|
}
|
|
68427
68462
|
|
|
68428
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview
|
|
68463
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview //|| (hoEditorFactory.drawTree.paintStatus === PaintState.psReadOnly && !hoEditorFactory.isHideComments)
|
|
68464
|
+
|| !hoEditorFactory.isHideComments) {
|
|
68429
68465
|
var commentID = this._textNode.dCombineStyle.commentID;
|
|
68430
68466
|
var createID = this._textNode.dCombineStyle.creatorIndex;
|
|
68431
68467
|
var deleteID = this._textNode.dCombineStyle.deleterIndex;
|
|
@@ -69532,6 +69568,9 @@ var DrawContainer = __webpack_require__(80258);
|
|
|
69532
69568
|
var Caret = __webpack_require__(39717);
|
|
69533
69569
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
69534
69570
|
var HOEditorFactorys = __webpack_require__(41005);
|
|
69571
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
69572
|
+
var message_box = __webpack_require__(86769);
|
|
69573
|
+
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
69535
69574
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
69536
69575
|
var es_number_constructor = __webpack_require__(9653);
|
|
69537
69576
|
// EXTERNAL MODULE: ./src/editor/events/NodeChangingEvent.ts
|
|
@@ -69559,6 +69598,7 @@ var MarkNode = __webpack_require__(15868);
|
|
|
69559
69598
|
|
|
69560
69599
|
|
|
69561
69600
|
|
|
69601
|
+
|
|
69562
69602
|
var EditorController = /*#__PURE__*/function () {
|
|
69563
69603
|
// private _timer1: number | undefined;
|
|
69564
69604
|
// private _pasteNodes!: Array<Array<BaseNode>>;
|
|
@@ -69830,6 +69870,12 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
69830
69870
|
return;
|
|
69831
69871
|
}
|
|
69832
69872
|
|
|
69873
|
+
if (hoeditorfactory.notAllowEditInReview && hoeditorfactory.drawTree.paintStatus === PaintState.psReview) {
|
|
69874
|
+
message_box_default().alert("质控医生站的病历只可进行批注不可编辑修改");
|
|
69875
|
+
|
|
69876
|
+
return;
|
|
69877
|
+
}
|
|
69878
|
+
|
|
69833
69879
|
var startPath = "";
|
|
69834
69880
|
var endPath = "";
|
|
69835
69881
|
var domRange = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;
|
|
@@ -69916,6 +69962,12 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
69916
69962
|
var result = hoeditorfactory.editController.canIsEdit(hoeditorfactory);
|
|
69917
69963
|
|
|
69918
69964
|
if (result) {
|
|
69965
|
+
if (hoeditorfactory.notAllowEditInReview && hoeditorfactory.drawTree.paintStatus === PaintState.psReview) {
|
|
69966
|
+
message_box_default().alert("质控医生站的病历只可进行批注不可编辑修改");
|
|
69967
|
+
|
|
69968
|
+
return;
|
|
69969
|
+
}
|
|
69970
|
+
|
|
69919
69971
|
hoeditorfactory.docController.keyBoardDelete("Backspace");
|
|
69920
69972
|
hoeditorfactory.drawTree.caret.aiInfo.aiText = "";
|
|
69921
69973
|
}
|
|
@@ -79171,6 +79223,7 @@ var TableMergeCellUndoUnit = /*#__PURE__*/function () {
|
|
|
79171
79223
|
cell = this._table.rows[cellInfo.r][cellInfo.c];
|
|
79172
79224
|
|
|
79173
79225
|
if (cell) {
|
|
79226
|
+
this._table.childNodes[cellInfo.r * this._table.colCount + cellInfo.c] = cell;
|
|
79174
79227
|
cell.row = this._table.rows[cellInfo.r];
|
|
79175
79228
|
cell.drawCell.needUpdate = true;
|
|
79176
79229
|
}
|
|
@@ -119026,7 +119079,7 @@ this.clear();}var p=Graphics.prototype;var G=Graphics;// shortcut
|
|
|
119026
119079
|
* @static
|
|
119027
119080
|
* @protected
|
|
119028
119081
|
* @type {CanvasRenderingContext2D}
|
|
119029
|
-
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d");canvas.width=canvas.height=1;}// getter / setters:
|
|
119082
|
+
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// getter / setters:
|
|
119030
119083
|
/**
|
|
119031
119084
|
* Use the {{#crossLink "Graphics/instructions:property"}}{{/crossLink}} property instead.
|
|
119032
119085
|
* @method _getInstructions
|
|
@@ -120606,7 +120659,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
120606
120659
|
* @static
|
|
120607
120660
|
* @protected
|
|
120608
120661
|
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");// prevent errors on load in browsers without canvas.
|
|
120609
|
-
if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// events:
|
|
120662
|
+
if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// events:
|
|
120610
120663
|
/**
|
|
120611
120664
|
* Dispatched when the user presses their left mouse button over the display object. See the
|
|
120612
120665
|
* {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties.
|
|
@@ -121653,7 +121706,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
|
|
|
121653
121706
|
*
|
|
121654
121707
|
* @method update
|
|
121655
121708
|
* @param {Object} [props] Props object to pass to `tick()`. Should usually be a {{#crossLink "Ticker"}}{{/crossLink}} event object, or similar object with a delta property.
|
|
121656
|
-
**/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
|
|
121709
|
+
**/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
|
|
121657
121710
|
* Propagates a tick event through the display list. This is automatically called by {{#crossLink "Stage/update"}}{{/crossLink}}
|
|
121658
121711
|
* unless {{#crossLink "Stage/tickOnUpdate:property"}}{{/crossLink}} is set to false.
|
|
121659
121712
|
*
|
|
@@ -121696,7 +121749,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
|
|
|
121696
121749
|
**/p.handleEvent=function(evt){if(evt.type=="tick"){this.update(evt);}};/**
|
|
121697
121750
|
* Clears the target canvas. Useful if {{#crossLink "Stage/autoClear:property"}}{{/crossLink}} is set to `false`.
|
|
121698
121751
|
* @method clear
|
|
121699
|
-
**/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
|
|
121752
|
+
**/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
|
|
121700
121753
|
* Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can
|
|
121701
121754
|
* be specified as the src value of an image element.
|
|
121702
121755
|
* @method toDataURL
|
|
@@ -122387,7 +122440,7 @@ this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearC
|
|
|
122387
122440
|
* Docced in superclass
|
|
122388
122441
|
*/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}this.dispatchEvent("drawstart");if(this.autoClear){this.clear();}if(this._webGLContext){// Use WebGL.
|
|
122389
122442
|
this._batchDraw(this,this._webGLContext);if(this._autoPurge!=-1&&!(this._drawID%(this._autoPurge/2|0))){this.purgeTextures(this._autoPurge);}}else{// Use 2D.
|
|
122390
|
-
var ctx=this.canvas.getContext("2d");ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
|
|
122443
|
+
var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
|
|
122391
122444
|
* Docced in superclass
|
|
122392
122445
|
*/p.clear=function(){if(!this.canvas){return;}if(StageGL.isWebGLActive(this._webGLContext)){var gl=this._webGLContext;var cc=this._clearColor;var adjust=this._transparent?cc.a:1.0;// Use WebGL settings; adjust for pre multiplied alpha appropriate to scenario
|
|
122393
122446
|
this._webGLContext.clearColor(cc.r*adjust,cc.g*adjust,cc.b*adjust,adjust);gl.clear(gl.COLOR_BUFFER_BIT);this._webGLContext.clearColor(cc.r,cc.g,cc.b,cc.a);}else{// Use 2D.
|
|
@@ -123293,7 +123346,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
123293
123346
|
* @property _workingContext
|
|
123294
123347
|
* @type CanvasRenderingContext2D
|
|
123295
123348
|
* @private
|
|
123296
|
-
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// constants:
|
|
123349
|
+
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// constants:
|
|
123297
123350
|
/**
|
|
123298
123351
|
* Lookup table for the ratio to offset bounds x calculations based on the textAlign property.
|
|
123299
123352
|
* @property H_OFFSETS
|
|
@@ -123954,7 +124007,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
123954
124007
|
* @static
|
|
123955
124008
|
* @type CanvasRenderingContext2D
|
|
123956
124009
|
* @protected
|
|
123957
|
-
*/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// public static methods:
|
|
124010
|
+
*/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// public static methods:
|
|
123958
124011
|
/**
|
|
123959
124012
|
* Returns a single frame of the specified sprite sheet as a new PNG image. An example of when this may be useful is
|
|
123960
124013
|
* to use a spritesheet frame as the source for a bitmap fill.
|
|
@@ -124203,7 +124256,7 @@ SpriteSheetBuilder.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimen
|
|
|
124203
124256
|
* @method _drawNext
|
|
124204
124257
|
* @protected
|
|
124205
124258
|
* @return Boolean Returns false if this is the last draw.
|
|
124206
|
-
**/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d");frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
|
|
124259
|
+
**/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d",{willReadFrequently:true});frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
|
|
124207
124260
|
ctx.restore();return++this._index<this._frames.length;};createjs.SpriteSheetBuilder=createjs.promote(SpriteSheetBuilder,"EventDispatcher");})();//##############################################################################
|
|
124208
124261
|
// DOMElement.js
|
|
124209
124262
|
//##############################################################################
|
|
@@ -124674,7 +124727,7 @@ if(!stageGL.isCacheControlled){stageGL.getTargetRenderTexture(this.target,this._
|
|
|
124674
124727
|
* @protected
|
|
124675
124728
|
**/p._drawToCache=function(compositeOperation){var surface=this.target.cacheCanvas;var target=this.target;var webGL=this._webGLCache;if(webGL){//TODO: auto split blur into an x/y pass
|
|
124676
124729
|
webGL.cacheDraw(target,target.filters,this);// we may of swapped around which element the surface is, so we re-fetch it
|
|
124677
|
-
surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d");if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
|
|
124730
|
+
surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d",{willReadFrequently:true});if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
|
|
124678
124731
|
* Work through every filter and apply its individual visual transformation.
|
|
124679
124732
|
* @method _applyFilters
|
|
124680
124733
|
* @protected
|
|
@@ -124814,7 +124867,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
124814
124867
|
var data=imageData.data;var map=this._mapData;for(var i=0,l=data.length;i<l;i+=4){data[i+3]=map[i]||0;}return true;};/**
|
|
124815
124868
|
* @method _prepAlphaMap
|
|
124816
124869
|
* @protected
|
|
124817
|
-
**/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d");}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d");ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
|
|
124870
|
+
**/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d",{willReadFrequently:true});}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d",{willReadFrequently:true});ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
|
|
124818
124871
|
return false;}this._mapData=imgData.data;return true;};createjs.AlphaMapFilter=createjs.promote(AlphaMapFilter,"Filter");})();//##############################################################################
|
|
124819
124872
|
// AlphaMaskFilter.js
|
|
124820
124873
|
//##############################################################################
|
|
@@ -209511,7 +209564,7 @@ var map = {
|
|
|
209511
209564
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
209512
209565
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
209513
209566
|
"./poperSelect/PoperMark.vue": 93069,
|
|
209514
|
-
"./poperSelect/PoperSelect.vue":
|
|
209567
|
+
"./poperSelect/PoperSelect.vue": 24160,
|
|
209515
209568
|
"./poperTipText/PoperTipText.vue": 44523,
|
|
209516
209569
|
"./popers/Poper.vue": 25425,
|
|
209517
209570
|
"./popers/Title.vue": 40168,
|
|
@@ -211248,9 +211301,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
211248
211301
|
var es_number_constructor = __webpack_require__(9653);
|
|
211249
211302
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
211250
211303
|
var es_json_stringify = __webpack_require__(38862);
|
|
211251
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
211252
|
-
var
|
|
211253
|
-
var
|
|
211304
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=24d41d20&
|
|
211305
|
+
var HoDocvue_type_template_id_24d41d20_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
211306
|
+
var HoDocvue_type_template_id_24d41d20_staticRenderFns = []
|
|
211254
211307
|
|
|
211255
211308
|
|
|
211256
211309
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -213182,7 +213235,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
213182
213235
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
213183
213236
|
var util = __webpack_require__(33913);
|
|
213184
213237
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
213185
|
-
var PoperSelect = __webpack_require__(
|
|
213238
|
+
var PoperSelect = __webpack_require__(24160);
|
|
213186
213239
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
213187
213240
|
var PoperMark = __webpack_require__(93069);
|
|
213188
213241
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -214894,7 +214947,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
214894
214947
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
214895
214948
|
var ParagraphNode = __webpack_require__(14208);
|
|
214896
214949
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
214897
|
-
/* harmony default export */ var version = ('2.0.
|
|
214950
|
+
/* harmony default export */ var version = ('2.0.112');
|
|
214898
214951
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
214899
214952
|
var PoperTipText = __webpack_require__(44523);
|
|
214900
214953
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -215288,7 +215341,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
215288
215341
|
}, {
|
|
215289
215342
|
root: null,
|
|
215290
215343
|
rootMargin: '0px',
|
|
215291
|
-
threshold: [0,
|
|
215344
|
+
threshold: [0, 1]
|
|
215292
215345
|
});
|
|
215293
215346
|
},
|
|
215294
215347
|
setActiveDocIndex: function setActiveDocIndex(hoEditorId) {
|
|
@@ -215686,8 +215739,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
215686
215739
|
|
|
215687
215740
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
215688
215741
|
components_HoDocvue_type_script_lang_js_,
|
|
215689
|
-
|
|
215690
|
-
|
|
215742
|
+
HoDocvue_type_template_id_24d41d20_render,
|
|
215743
|
+
HoDocvue_type_template_id_24d41d20_staticRenderFns,
|
|
215691
215744
|
false,
|
|
215692
215745
|
null,
|
|
215693
215746
|
null,
|
|
@@ -220618,7 +220671,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220618
220671
|
var nodes;
|
|
220619
220672
|
|
|
220620
220673
|
if (file.type == "text/xml") {
|
|
220621
|
-
|
|
220674
|
+
//console.time("xml2Doc1");
|
|
220675
|
+
nodes = hoEditorFactory.structureConvert.xml2Doc(str); //console.timeEnd("xml2Doc1");
|
|
220622
220676
|
} else {
|
|
220623
220677
|
nodes = hoEditorFactory.structureConvert.json2Doc(JSON.parse(str));
|
|
220624
220678
|
}
|
|
@@ -220658,7 +220712,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220658
220712
|
|
|
220659
220713
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220660
220714
|
this._superiorSign = [];
|
|
220661
|
-
hoEditorFactory.isThrowError = false; //
|
|
220715
|
+
hoEditorFactory.isThrowError = false; //console.time("xml2Doc");
|
|
220662
220716
|
|
|
220663
220717
|
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign); // console.timeEnd("xml2Doc");
|
|
220664
220718
|
|
|
@@ -220695,7 +220749,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220695
220749
|
for (var j = 1; j < array.length; j++) {
|
|
220696
220750
|
var aNode = array[j];
|
|
220697
220751
|
|
|
220698
|
-
if (aNode instanceof TextNode/* TextNode */.R && aNode.text.length === 0) {
|
|
220752
|
+
if (aNode instanceof TextNode/* TextNode */.R && (aNode.text.length === 0 || aNode.text == '' || aNode.text == '' || aNode.text == '' || aNode.text == '' || aNode.text == '')) {
|
|
220699
220753
|
continue;
|
|
220700
220754
|
}
|
|
220701
220755
|
|
|
@@ -220903,53 +220957,51 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220903
220957
|
var formularNodes = hoEditorFactory.drawTree.formularNodes;
|
|
220904
220958
|
var tableArr = [];
|
|
220905
220959
|
formularNodes.forEach(function (value, key) {
|
|
220906
|
-
if (
|
|
220907
|
-
//|| value.formularType === FormularType.ftFormular
|
|
220908
|
-
value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
|
|
220960
|
+
if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
|
|
220909
220961
|
value.updateResult();
|
|
220910
220962
|
value.getParentCell().drawCell.needUpdate = true; // const prevNode = value.previousLeaf();
|
|
220911
220963
|
// if (!prevNode) {
|
|
220912
220964
|
// throw new Error('错误的绘制位置');
|
|
220913
220965
|
// }
|
|
220914
|
-
// const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
220915
|
-
// const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
|
|
220916
|
-
// DocAction.daModifyStyle, startPath, startPath)
|
|
220917
|
-
// changeEvent.oldEndPath = startPath;
|
|
220918
|
-
// changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
|
|
220919
|
-
// changeEvent.repaintImmediate=false;
|
|
220920
|
-
// hoEditorFactory.docTree.change(changeEvent);
|
|
220921
220966
|
|
|
220922
220967
|
var table = value.getParentCell().table;
|
|
220923
220968
|
|
|
220924
220969
|
if (!tableArr.includes(table)) {
|
|
220925
220970
|
tableArr.push(table);
|
|
220926
|
-
}
|
|
220971
|
+
} // const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
220972
|
+
// const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
|
|
220973
|
+
// DocAction.daModifyStyle, startPath, startPath)
|
|
220974
|
+
// changeEvent.oldEndPath = startPath;
|
|
220975
|
+
// changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
|
|
220976
|
+
// hangeEvent.repaintImmediate=false;
|
|
220977
|
+
//hoEditorFactory.docTree.change(changeEvent);
|
|
220978
|
+
|
|
220927
220979
|
}
|
|
220928
220980
|
});
|
|
220929
220981
|
|
|
220930
220982
|
for (var t = 0; t < tableArr.length; t++) {
|
|
220931
|
-
//const table=tableArr[t];
|
|
220932
|
-
tableArr[t].update(); //
|
|
220933
|
-
//
|
|
220934
|
-
// );
|
|
220935
|
-
// const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
|
|
220936
|
-
// table.drawTable.drawPageTables[0]
|
|
220937
|
-
// );
|
|
220938
|
-
// if (mainArea) {
|
|
220939
|
-
// let drawTop = table.drawTable.drawPageTables[0].y;
|
|
220940
|
-
// if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
|
|
220941
|
-
// && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
|
|
220942
|
-
// ) {
|
|
220943
|
-
// drawTop = 0
|
|
220944
|
-
// }
|
|
220945
|
-
// hoEditorFactory.drawPageTree.update(
|
|
220946
|
-
// mainArea,
|
|
220947
|
-
// dpos[0].drawRoots,
|
|
220948
|
-
// drawTop,
|
|
220949
|
-
// dpos[0].index,
|
|
220950
|
-
// dpos[0].index
|
|
220983
|
+
// const table=tableArr[t];
|
|
220984
|
+
tableArr[t].update(); // const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
|
|
220985
|
+
// table.drawTable
|
|
220951
220986
|
// );
|
|
220952
|
-
//
|
|
220987
|
+
// const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
|
|
220988
|
+
// table.drawTable.drawPageTables[0]
|
|
220989
|
+
// );
|
|
220990
|
+
// if (mainArea) {
|
|
220991
|
+
// let drawTop = table.drawTable.drawPageTables[0].y;
|
|
220992
|
+
// if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
|
|
220993
|
+
// && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
|
|
220994
|
+
// ) {
|
|
220995
|
+
// drawTop = 0
|
|
220996
|
+
// }
|
|
220997
|
+
// hoEditorFactory.drawPageTree.update(
|
|
220998
|
+
// mainArea,
|
|
220999
|
+
// dpos[0].drawRoots,
|
|
221000
|
+
// drawTop,
|
|
221001
|
+
// dpos[0].index,
|
|
221002
|
+
// dpos[0].index
|
|
221003
|
+
// );
|
|
221004
|
+
// }
|
|
220953
221005
|
} //模板加载完成后 开始加载数据集
|
|
220954
221006
|
// if (test) {
|
|
220955
221007
|
// const data =hoEditorFactory.testDataSet.getTestJsonData();
|
|
@@ -232825,6 +232877,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
232825
232877
|
this._notAllowCrossPatiPaste = false; //不允许跨病人粘贴
|
|
232826
232878
|
|
|
232827
232879
|
this._fontSizeMap = new Map();
|
|
232880
|
+
this._notAllowEditInReview = false; //审阅模式下不允许修改(质控医生站的病历只可进行批注不可修改)
|
|
232881
|
+
|
|
232828
232882
|
this._hoEditorFactoryId = id;
|
|
232829
232883
|
}
|
|
232830
232884
|
/**
|
|
@@ -233391,6 +233445,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
233391
233445
|
this._notAllowCrossPatiPaste = value;
|
|
233392
233446
|
}
|
|
233393
233447
|
}
|
|
233448
|
+
}, {
|
|
233449
|
+
key: "notAllowEditInReview",
|
|
233450
|
+
get: function get() {
|
|
233451
|
+
return this._notAllowEditInReview;
|
|
233452
|
+
},
|
|
233453
|
+
set: function set(value) {
|
|
233454
|
+
if (this._notAllowEditInReview !== value) {
|
|
233455
|
+
this._notAllowEditInReview = value;
|
|
233456
|
+
}
|
|
233457
|
+
}
|
|
233394
233458
|
}, {
|
|
233395
233459
|
key: "isHideComments",
|
|
233396
233460
|
get: function get() {
|