hoeditor-web 3.1.103 → 3.1.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +17982 -1
- package/lib/hoeditor.umd.js +425 -89
- package/lib/hoeditor.umd.min.js +13 -13
- package/package.json +12 -10
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13854,7 +13854,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13854
13854
|
|
|
13855
13855
|
/***/ }),
|
|
13856
13856
|
|
|
13857
|
-
/***/
|
|
13857
|
+
/***/ 17983:
|
|
13858
13858
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13859
13859
|
|
|
13860
13860
|
"use strict";
|
|
@@ -13868,7 +13868,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13868
13868
|
|
|
13869
13869
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13870
13870
|
var es_function_name = __webpack_require__(68309);
|
|
13871
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13871
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=72345796&
|
|
13872
13872
|
|
|
13873
13873
|
var render = function render() {
|
|
13874
13874
|
var _vm = this,
|
|
@@ -14004,7 +14004,9 @@ var render = function render() {
|
|
|
14004
14004
|
"height": "300px"
|
|
14005
14005
|
},
|
|
14006
14006
|
attrs: {
|
|
14007
|
-
"
|
|
14007
|
+
"rowKey": function rowKey(record, index) {
|
|
14008
|
+
return index;
|
|
14009
|
+
},
|
|
14008
14010
|
"scroll": {
|
|
14009
14011
|
y: 270
|
|
14010
14012
|
},
|
|
@@ -14626,7 +14628,7 @@ var render = function render() {
|
|
|
14626
14628
|
};
|
|
14627
14629
|
var staticRenderFns = [];
|
|
14628
14630
|
|
|
14629
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14631
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=72345796&
|
|
14630
14632
|
|
|
14631
14633
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
14632
14634
|
var defineProperty = __webpack_require__(78255);
|
|
@@ -14722,8 +14724,11 @@ var defaultBox = {
|
|
|
14722
14724
|
inputValue: '',
|
|
14723
14725
|
saveTagInput: null,
|
|
14724
14726
|
nodeList: []
|
|
14727
|
+
// customPropertys: {}, // 自定义属性
|
|
14728
|
+
// customPropertyValue: new Object(),
|
|
14725
14729
|
};
|
|
14726
14730
|
},
|
|
14731
|
+
|
|
14727
14732
|
inject: {
|
|
14728
14733
|
hoEditorProvider: {
|
|
14729
14734
|
default: function _default() {
|
|
@@ -14775,11 +14780,13 @@ var defaultBox = {
|
|
|
14775
14780
|
value[key] = v[key];
|
|
14776
14781
|
}
|
|
14777
14782
|
});
|
|
14778
|
-
if (v.customProperty) {
|
|
14779
|
-
_this.radioCheckBox.customProperty = v.customProperty;
|
|
14780
|
-
}
|
|
14781
14783
|
_this.radioCheckBoxGroup.push(value);
|
|
14782
14784
|
});
|
|
14785
|
+
// if (isObject(updateNode.customProperty)) {
|
|
14786
|
+
// this.customPropertys = updateNode.valueList[0].customProperty;
|
|
14787
|
+
// } else {
|
|
14788
|
+
// this.customPropertys = new Object();
|
|
14789
|
+
// }
|
|
14783
14790
|
this.boxGroup = 1;
|
|
14784
14791
|
this.addBox();
|
|
14785
14792
|
} else {
|
|
@@ -14790,11 +14797,18 @@ var defaultBox = {
|
|
|
14790
14797
|
_this.radioCheckBox[key] = updateNode.value[key];
|
|
14791
14798
|
}
|
|
14792
14799
|
});
|
|
14793
|
-
if (updateNode.customProperty) {
|
|
14794
|
-
|
|
14795
|
-
}
|
|
14800
|
+
// if (isObject(updateNode.customProperty)) {
|
|
14801
|
+
// this.customPropertys = updateNode.customProperty;
|
|
14802
|
+
// } else {
|
|
14803
|
+
// this.customPropertys = new Object();
|
|
14804
|
+
// }
|
|
14796
14805
|
this.boxGroup = 0;
|
|
14797
14806
|
}
|
|
14807
|
+
// let property = new Object();
|
|
14808
|
+
// Object.keys(this.customPropertys).forEach((key) => {
|
|
14809
|
+
// property[key] = this.customPropertys[key];
|
|
14810
|
+
// });
|
|
14811
|
+
// this.customPropertyValue = { ...property };
|
|
14798
14812
|
} else {
|
|
14799
14813
|
this.radioCheckBox.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
|
|
14800
14814
|
this.radioCheckBox.controlStyle = this.controlType;
|
|
@@ -14948,10 +14962,10 @@ var defaultBox = {
|
|
|
14948
14962
|
}), _name$data$inject$pro);
|
|
14949
14963
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14950
14964
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14951
|
-
;// CONCATENATED MODULE: ./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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14965
|
+
;// CONCATENATED MODULE: ./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/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=72345796&prod&lang=less&
|
|
14952
14966
|
// extracted by mini-css-extract-plugin
|
|
14953
14967
|
|
|
14954
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14968
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=72345796&prod&lang=less&
|
|
14955
14969
|
|
|
14956
14970
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14957
14971
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -93119,8 +93133,10 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
93119
93133
|
var newDates = new Date();
|
|
93120
93134
|
stringDate = "".concat(newDates.getFullYear(), "/").concat(newDates.getMonth() + 1, "/").concat(newDates.getDate(), " ") + stringDate;
|
|
93121
93135
|
}
|
|
93122
|
-
} else if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
93123
|
-
|
|
93136
|
+
} else if (format && format.includes('MM') && !format.toLocaleLowerCase().includes('yyyy')) {
|
|
93137
|
+
if (stringDate.split("/")[1] == '29') {
|
|
93138
|
+
stringDate = '2024/' + stringDate;
|
|
93139
|
+
}
|
|
93124
93140
|
}
|
|
93125
93141
|
_date = toDate(stringDate);
|
|
93126
93142
|
}
|
|
@@ -93138,7 +93154,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
93138
93154
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
93139
93155
|
var seconds = "".concat(_date.getSeconds());
|
|
93140
93156
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
93141
|
-
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd|DD/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
93157
|
+
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy|YYYY/g, year).replace(/MM/g, month).replace(/dd|DD/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
93142
93158
|
};
|
|
93143
93159
|
/**
|
|
93144
93160
|
* 弹窗拖动
|
|
@@ -166700,7 +166716,7 @@ var map = {
|
|
|
166700
166716
|
"./popers/Title.vue": 31276,
|
|
166701
166717
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
166702
166718
|
"./qrCode/QrCode.vue": 59805,
|
|
166703
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
166719
|
+
"./radioCheckBox/RadioCheckbox.vue": 17983,
|
|
166704
166720
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
166705
166721
|
"./sign/Sign.vue": 67218,
|
|
166706
166722
|
"./table/TableCellPoper.vue": 97628,
|
|
@@ -204023,7 +204039,7 @@ Input.install = function (Vue) {
|
|
|
204023
204039
|
|
|
204024
204040
|
|
|
204025
204041
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
204026
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
204042
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=40b25c35&
|
|
204027
204043
|
var render = function render() {
|
|
204028
204044
|
var _vm = this,
|
|
204029
204045
|
_c = _vm._self._c;
|
|
@@ -204150,8 +204166,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
204150
204166
|
var es_number_constructor = __webpack_require__(9653);
|
|
204151
204167
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
204152
204168
|
var es_json_stringify = __webpack_require__(38862);
|
|
204153
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
204154
|
-
var
|
|
204169
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=6187b845&
|
|
204170
|
+
var HoDocvue_type_template_id_6187b845_render = function render() {
|
|
204155
204171
|
var _vm = this,
|
|
204156
204172
|
_c = _vm._self._c;
|
|
204157
204173
|
return _c('div', {
|
|
@@ -204352,7 +204368,7 @@ var HoDocvue_type_template_id_28aecebc_render = function render() {
|
|
|
204352
204368
|
}
|
|
204353
204369
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
204354
204370
|
};
|
|
204355
|
-
var
|
|
204371
|
+
var HoDocvue_type_template_id_6187b845_staticRenderFns = [];
|
|
204356
204372
|
|
|
204357
204373
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
204358
204374
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -207353,7 +207369,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
207353
207369
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207354
207370
|
var ParagraphNode = __webpack_require__(67945);
|
|
207355
207371
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207356
|
-
/* harmony default export */ var version = ('3.1.
|
|
207372
|
+
/* harmony default export */ var version = ('3.1.105');
|
|
207357
207373
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
207358
207374
|
var PoperTipText = __webpack_require__(50987);
|
|
207359
207375
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -207955,6 +207971,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207955
207971
|
var _this5 = this;
|
|
207956
207972
|
this.selectMarkStyle.display = 'none';
|
|
207957
207973
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
207974
|
+
if (this.isCanEdit(hoEditorFactory)) return;
|
|
207958
207975
|
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
207959
207976
|
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
207960
207977
|
setTimeout(function () {
|
|
@@ -207983,6 +208000,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
207983
208000
|
return parentNode;
|
|
207984
208001
|
},
|
|
207985
208002
|
createSelectMark: function createSelectMark(node, paintStatus, pageIndex) {
|
|
208003
|
+
if (this.isCanEdit()) return;
|
|
207986
208004
|
var parentNode = this.getRootNode(node);
|
|
207987
208005
|
if (parentNode) {
|
|
207988
208006
|
var _parentNode$downListP;
|
|
@@ -208019,6 +208037,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208019
208037
|
},
|
|
208020
208038
|
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
208021
208039
|
var _this6 = this;
|
|
208040
|
+
if (this.isCanEdit()) return;
|
|
208022
208041
|
if (paintStatus === 0) {
|
|
208023
208042
|
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
208024
208043
|
return;
|
|
@@ -208049,6 +208068,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208049
208068
|
},
|
|
208050
208069
|
createInputProper: function createInputProper(node, parentNode, paintStatus, pageIndex) {
|
|
208051
208070
|
var _this7 = this;
|
|
208071
|
+
if (this.isCanEdit()) return;
|
|
208052
208072
|
if (paintStatus === 0) {
|
|
208053
208073
|
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
208054
208074
|
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
@@ -208236,15 +208256,30 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208236
208256
|
this.poperPos = (0,objectSpread2/* default */.Z)({}, pos);
|
|
208237
208257
|
}
|
|
208238
208258
|
},
|
|
208259
|
+
isCanEdit: function isCanEdit(hoEditorFactory) {
|
|
208260
|
+
if (!hoEditorFactory) {
|
|
208261
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
208262
|
+
}
|
|
208263
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit && (hoEditorFactory.forbidEditBeforeSign || hoEditorFactory.lockContent)) {
|
|
208264
|
+
var endPos = hoEditorFactory.drawTree.selectRange.spEnd;
|
|
208265
|
+
var node = hoEditorFactory.drawTree.getDNodeByPath(endPos.path);
|
|
208266
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node);
|
|
208267
|
+
var stagePt = dline.localToGlobal(node.x, node.y);
|
|
208268
|
+
var result = hoEditorFactory.vueController.isCanEdit(endPos.page.pageIndex, stagePt.x, stagePt.y);
|
|
208269
|
+
return !result;
|
|
208270
|
+
}
|
|
208271
|
+
return false;
|
|
208272
|
+
},
|
|
208239
208273
|
/**
|
|
208240
208274
|
* 鼠标右键 打开右键菜单 并计算弹出位置
|
|
208241
208275
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
208242
208276
|
*/
|
|
208243
208277
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
208244
208278
|
var _this8 = this;
|
|
208245
|
-
|
|
208279
|
+
setTimeout(function () {
|
|
208246
208280
|
var _hoEditorFactory$docT;
|
|
208247
208281
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this8.hoEditorId);
|
|
208282
|
+
if (_this8.isCanEdit(hoEditorFactory)) return;
|
|
208248
208283
|
var rightPosition = {
|
|
208249
208284
|
clientX: e.clientX || e.pageX,
|
|
208250
208285
|
clientY: e.clientY || e.pageY
|
|
@@ -208297,7 +208332,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208297
208332
|
}
|
|
208298
208333
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
208299
208334
|
_this8.$emit('rightClickEventIn', rightPosition);
|
|
208300
|
-
});
|
|
208335
|
+
}, 0);
|
|
208301
208336
|
},
|
|
208302
208337
|
hoCopy: function hoCopy(e) {
|
|
208303
208338
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
@@ -208350,10 +208385,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208350
208385
|
});
|
|
208351
208386
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
208352
208387
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
208353
|
-
;// CONCATENATED MODULE: ./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/HoDoc.vue?vue&type=style&index=0&id=
|
|
208388
|
+
;// CONCATENATED MODULE: ./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/HoDoc.vue?vue&type=style&index=0&id=6187b845&prod&lang=less&
|
|
208354
208389
|
// extracted by mini-css-extract-plugin
|
|
208355
208390
|
|
|
208356
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
208391
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=6187b845&prod&lang=less&
|
|
208357
208392
|
|
|
208358
208393
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
208359
208394
|
|
|
@@ -208366,8 +208401,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
208366
208401
|
|
|
208367
208402
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
208368
208403
|
components_HoDocvue_type_script_lang_js_,
|
|
208369
|
-
|
|
208370
|
-
|
|
208404
|
+
HoDocvue_type_template_id_6187b845_render,
|
|
208405
|
+
HoDocvue_type_template_id_6187b845_staticRenderFns,
|
|
208371
208406
|
false,
|
|
208372
208407
|
null,
|
|
208373
208408
|
null,
|
|
@@ -214818,6 +214853,302 @@ var hoCreateHistory = {
|
|
|
214818
214853
|
var HoFabricConfig = __webpack_require__(3573);
|
|
214819
214854
|
// EXTERNAL MODULE: ./src/editor/dom/NodePosition.ts
|
|
214820
214855
|
var NodePosition = __webpack_require__(42921);
|
|
214856
|
+
;// CONCATENATED MODULE: ./node_modules/js-base64/base64.mjs
|
|
214857
|
+
/**
|
|
214858
|
+
* base64.ts
|
|
214859
|
+
*
|
|
214860
|
+
* Licensed under the BSD 3-Clause License.
|
|
214861
|
+
* http://opensource.org/licenses/BSD-3-Clause
|
|
214862
|
+
*
|
|
214863
|
+
* References:
|
|
214864
|
+
* http://en.wikipedia.org/wiki/Base64
|
|
214865
|
+
*
|
|
214866
|
+
* @author Dan Kogai (https://github.com/dankogai)
|
|
214867
|
+
*/
|
|
214868
|
+
const base64_version = '3.7.7';
|
|
214869
|
+
/**
|
|
214870
|
+
* @deprecated use lowercase `version`.
|
|
214871
|
+
*/
|
|
214872
|
+
const VERSION = base64_version;
|
|
214873
|
+
const _hasBuffer = typeof Buffer === 'function';
|
|
214874
|
+
const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
|
|
214875
|
+
const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
|
|
214876
|
+
const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
214877
|
+
const b64chs = Array.prototype.slice.call(b64ch);
|
|
214878
|
+
const b64tab = ((a) => {
|
|
214879
|
+
let tab = {};
|
|
214880
|
+
a.forEach((c, i) => tab[c] = i);
|
|
214881
|
+
return tab;
|
|
214882
|
+
})(b64chs);
|
|
214883
|
+
const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
214884
|
+
const _fromCC = String.fromCharCode.bind(String);
|
|
214885
|
+
const _U8Afrom = typeof Uint8Array.from === 'function'
|
|
214886
|
+
? Uint8Array.from.bind(Uint8Array)
|
|
214887
|
+
: (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
214888
|
+
const _mkUriSafe = (src) => src
|
|
214889
|
+
.replace(/=/g, '').replace(/[+\/]/g, (m0) => m0 == '+' ? '-' : '_');
|
|
214890
|
+
const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, '');
|
|
214891
|
+
/**
|
|
214892
|
+
* polyfill version of `btoa`
|
|
214893
|
+
*/
|
|
214894
|
+
const btoaPolyfill = (bin) => {
|
|
214895
|
+
// console.log('polyfilled');
|
|
214896
|
+
let u32, c0, c1, c2, asc = '';
|
|
214897
|
+
const pad = bin.length % 3;
|
|
214898
|
+
for (let i = 0; i < bin.length;) {
|
|
214899
|
+
if ((c0 = bin.charCodeAt(i++)) > 255 ||
|
|
214900
|
+
(c1 = bin.charCodeAt(i++)) > 255 ||
|
|
214901
|
+
(c2 = bin.charCodeAt(i++)) > 255)
|
|
214902
|
+
throw new TypeError('invalid character found');
|
|
214903
|
+
u32 = (c0 << 16) | (c1 << 8) | c2;
|
|
214904
|
+
asc += b64chs[u32 >> 18 & 63]
|
|
214905
|
+
+ b64chs[u32 >> 12 & 63]
|
|
214906
|
+
+ b64chs[u32 >> 6 & 63]
|
|
214907
|
+
+ b64chs[u32 & 63];
|
|
214908
|
+
}
|
|
214909
|
+
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
214910
|
+
};
|
|
214911
|
+
/**
|
|
214912
|
+
* does what `window.btoa` of web browsers do.
|
|
214913
|
+
* @param {String} bin binary string
|
|
214914
|
+
* @returns {string} Base64-encoded string
|
|
214915
|
+
*/
|
|
214916
|
+
const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
|
|
214917
|
+
: _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
|
|
214918
|
+
: btoaPolyfill;
|
|
214919
|
+
const _fromUint8Array = _hasBuffer
|
|
214920
|
+
? (u8a) => Buffer.from(u8a).toString('base64')
|
|
214921
|
+
: (u8a) => {
|
|
214922
|
+
// cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
|
|
214923
|
+
const maxargs = 0x1000;
|
|
214924
|
+
let strs = [];
|
|
214925
|
+
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
214926
|
+
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
214927
|
+
}
|
|
214928
|
+
return _btoa(strs.join(''));
|
|
214929
|
+
};
|
|
214930
|
+
/**
|
|
214931
|
+
* converts a Uint8Array to a Base64 string.
|
|
214932
|
+
* @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
|
|
214933
|
+
* @returns {string} Base64 string
|
|
214934
|
+
*/
|
|
214935
|
+
const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
214936
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
214937
|
+
// const utob = (src: string) => unescape(encodeURIComponent(src));
|
|
214938
|
+
// reverting good old fationed regexp
|
|
214939
|
+
const cb_utob = (c) => {
|
|
214940
|
+
if (c.length < 2) {
|
|
214941
|
+
var cc = c.charCodeAt(0);
|
|
214942
|
+
return cc < 0x80 ? c
|
|
214943
|
+
: cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
|
|
214944
|
+
+ _fromCC(0x80 | (cc & 0x3f)))
|
|
214945
|
+
: (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
|
|
214946
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
214947
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
214948
|
+
}
|
|
214949
|
+
else {
|
|
214950
|
+
var cc = 0x10000
|
|
214951
|
+
+ (c.charCodeAt(0) - 0xD800) * 0x400
|
|
214952
|
+
+ (c.charCodeAt(1) - 0xDC00);
|
|
214953
|
+
return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
|
|
214954
|
+
+ _fromCC(0x80 | ((cc >>> 12) & 0x3f))
|
|
214955
|
+
+ _fromCC(0x80 | ((cc >>> 6) & 0x3f))
|
|
214956
|
+
+ _fromCC(0x80 | (cc & 0x3f)));
|
|
214957
|
+
}
|
|
214958
|
+
};
|
|
214959
|
+
const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
|
214960
|
+
/**
|
|
214961
|
+
* @deprecated should have been internal use only.
|
|
214962
|
+
* @param {string} src UTF-8 string
|
|
214963
|
+
* @returns {string} UTF-16 string
|
|
214964
|
+
*/
|
|
214965
|
+
const utob = (u) => u.replace(re_utob, cb_utob);
|
|
214966
|
+
//
|
|
214967
|
+
const _encode = _hasBuffer
|
|
214968
|
+
? (s) => Buffer.from(s, 'utf8').toString('base64')
|
|
214969
|
+
: _TE
|
|
214970
|
+
? (s) => _fromUint8Array(_TE.encode(s))
|
|
214971
|
+
: (s) => _btoa(utob(s));
|
|
214972
|
+
/**
|
|
214973
|
+
* converts a UTF-8-encoded string to a Base64 string.
|
|
214974
|
+
* @param {boolean} [urlsafe] if `true` make the result URL-safe
|
|
214975
|
+
* @returns {string} Base64 string
|
|
214976
|
+
*/
|
|
214977
|
+
const encode = (src, urlsafe = false) => urlsafe
|
|
214978
|
+
? _mkUriSafe(_encode(src))
|
|
214979
|
+
: _encode(src);
|
|
214980
|
+
/**
|
|
214981
|
+
* converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
|
|
214982
|
+
* @returns {string} Base64 string
|
|
214983
|
+
*/
|
|
214984
|
+
const base64_encodeURI = (src) => encode(src, true);
|
|
214985
|
+
// This trick is found broken https://github.com/dankogai/js-base64/issues/130
|
|
214986
|
+
// const btou = (src: string) => decodeURIComponent(escape(src));
|
|
214987
|
+
// reverting good old fationed regexp
|
|
214988
|
+
const re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
214989
|
+
const cb_btou = (cccc) => {
|
|
214990
|
+
switch (cccc.length) {
|
|
214991
|
+
case 4:
|
|
214992
|
+
var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
|
|
214993
|
+
| ((0x3f & cccc.charCodeAt(1)) << 12)
|
|
214994
|
+
| ((0x3f & cccc.charCodeAt(2)) << 6)
|
|
214995
|
+
| (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
|
|
214996
|
+
return (_fromCC((offset >>> 10) + 0xD800)
|
|
214997
|
+
+ _fromCC((offset & 0x3FF) + 0xDC00));
|
|
214998
|
+
case 3:
|
|
214999
|
+
return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
|
|
215000
|
+
| ((0x3f & cccc.charCodeAt(1)) << 6)
|
|
215001
|
+
| (0x3f & cccc.charCodeAt(2)));
|
|
215002
|
+
default:
|
|
215003
|
+
return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
|
|
215004
|
+
| (0x3f & cccc.charCodeAt(1)));
|
|
215005
|
+
}
|
|
215006
|
+
};
|
|
215007
|
+
/**
|
|
215008
|
+
* @deprecated should have been internal use only.
|
|
215009
|
+
* @param {string} src UTF-16 string
|
|
215010
|
+
* @returns {string} UTF-8 string
|
|
215011
|
+
*/
|
|
215012
|
+
const btou = (b) => b.replace(re_btou, cb_btou);
|
|
215013
|
+
/**
|
|
215014
|
+
* polyfill version of `atob`
|
|
215015
|
+
*/
|
|
215016
|
+
const atobPolyfill = (asc) => {
|
|
215017
|
+
// console.log('polyfilled');
|
|
215018
|
+
asc = asc.replace(/\s+/g, '');
|
|
215019
|
+
if (!b64re.test(asc))
|
|
215020
|
+
throw new TypeError('malformed base64.');
|
|
215021
|
+
asc += '=='.slice(2 - (asc.length & 3));
|
|
215022
|
+
let u24, bin = '', r1, r2;
|
|
215023
|
+
for (let i = 0; i < asc.length;) {
|
|
215024
|
+
u24 = b64tab[asc.charAt(i++)] << 18
|
|
215025
|
+
| b64tab[asc.charAt(i++)] << 12
|
|
215026
|
+
| (r1 = b64tab[asc.charAt(i++)]) << 6
|
|
215027
|
+
| (r2 = b64tab[asc.charAt(i++)]);
|
|
215028
|
+
bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)
|
|
215029
|
+
: r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)
|
|
215030
|
+
: _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
|
|
215031
|
+
}
|
|
215032
|
+
return bin;
|
|
215033
|
+
};
|
|
215034
|
+
/**
|
|
215035
|
+
* does what `window.atob` of web browsers do.
|
|
215036
|
+
* @param {String} asc Base64-encoded string
|
|
215037
|
+
* @returns {string} binary string
|
|
215038
|
+
*/
|
|
215039
|
+
const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
|
|
215040
|
+
: _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
|
|
215041
|
+
: atobPolyfill;
|
|
215042
|
+
//
|
|
215043
|
+
const _toUint8Array = _hasBuffer
|
|
215044
|
+
? (a) => _U8Afrom(Buffer.from(a, 'base64'))
|
|
215045
|
+
: (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
|
|
215046
|
+
/**
|
|
215047
|
+
* converts a Base64 string to a Uint8Array.
|
|
215048
|
+
*/
|
|
215049
|
+
const toUint8Array = (a) => _toUint8Array(_unURI(a));
|
|
215050
|
+
//
|
|
215051
|
+
const _decode = _hasBuffer
|
|
215052
|
+
? (a) => Buffer.from(a, 'base64').toString('utf8')
|
|
215053
|
+
: _TD
|
|
215054
|
+
? (a) => _TD.decode(_toUint8Array(a))
|
|
215055
|
+
: (a) => btou(_atob(a));
|
|
215056
|
+
const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
|
|
215057
|
+
/**
|
|
215058
|
+
* converts a Base64 string to a UTF-8 string.
|
|
215059
|
+
* @param {String} src Base64 string. Both normal and URL-safe are supported
|
|
215060
|
+
* @returns {string} UTF-8 string
|
|
215061
|
+
*/
|
|
215062
|
+
const decode = (src) => _decode(_unURI(src));
|
|
215063
|
+
/**
|
|
215064
|
+
* check if a value is a valid Base64 string
|
|
215065
|
+
* @param {String} src a value to check
|
|
215066
|
+
*/
|
|
215067
|
+
const base64_isValid = (src) => {
|
|
215068
|
+
if (typeof src !== 'string')
|
|
215069
|
+
return false;
|
|
215070
|
+
const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
|
|
215071
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
215072
|
+
};
|
|
215073
|
+
//
|
|
215074
|
+
const _noEnum = (v) => {
|
|
215075
|
+
return {
|
|
215076
|
+
value: v, enumerable: false, writable: true, configurable: true
|
|
215077
|
+
};
|
|
215078
|
+
};
|
|
215079
|
+
/**
|
|
215080
|
+
* extend String.prototype with relevant methods
|
|
215081
|
+
*/
|
|
215082
|
+
const extendString = function () {
|
|
215083
|
+
const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
|
|
215084
|
+
_add('fromBase64', function () { return decode(this); });
|
|
215085
|
+
_add('toBase64', function (urlsafe) { return encode(this, urlsafe); });
|
|
215086
|
+
_add('toBase64URI', function () { return encode(this, true); });
|
|
215087
|
+
_add('toBase64URL', function () { return encode(this, true); });
|
|
215088
|
+
_add('toUint8Array', function () { return toUint8Array(this); });
|
|
215089
|
+
};
|
|
215090
|
+
/**
|
|
215091
|
+
* extend Uint8Array.prototype with relevant methods
|
|
215092
|
+
*/
|
|
215093
|
+
const extendUint8Array = function () {
|
|
215094
|
+
const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
|
|
215095
|
+
_add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
|
|
215096
|
+
_add('toBase64URI', function () { return fromUint8Array(this, true); });
|
|
215097
|
+
_add('toBase64URL', function () { return fromUint8Array(this, true); });
|
|
215098
|
+
};
|
|
215099
|
+
/**
|
|
215100
|
+
* extend Builtin prototypes with relevant methods
|
|
215101
|
+
*/
|
|
215102
|
+
const extendBuiltins = () => {
|
|
215103
|
+
extendString();
|
|
215104
|
+
extendUint8Array();
|
|
215105
|
+
};
|
|
215106
|
+
const gBase64 = {
|
|
215107
|
+
version: base64_version,
|
|
215108
|
+
VERSION: VERSION,
|
|
215109
|
+
atob: _atob,
|
|
215110
|
+
atobPolyfill: atobPolyfill,
|
|
215111
|
+
btoa: _btoa,
|
|
215112
|
+
btoaPolyfill: btoaPolyfill,
|
|
215113
|
+
fromBase64: decode,
|
|
215114
|
+
toBase64: encode,
|
|
215115
|
+
encode: encode,
|
|
215116
|
+
encodeURI: base64_encodeURI,
|
|
215117
|
+
encodeURL: base64_encodeURI,
|
|
215118
|
+
utob: utob,
|
|
215119
|
+
btou: btou,
|
|
215120
|
+
decode: decode,
|
|
215121
|
+
isValid: base64_isValid,
|
|
215122
|
+
fromUint8Array: fromUint8Array,
|
|
215123
|
+
toUint8Array: toUint8Array,
|
|
215124
|
+
extendString: extendString,
|
|
215125
|
+
extendUint8Array: extendUint8Array,
|
|
215126
|
+
extendBuiltins: extendBuiltins
|
|
215127
|
+
};
|
|
215128
|
+
// makecjs:CUT //
|
|
215129
|
+
|
|
215130
|
+
|
|
215131
|
+
|
|
215132
|
+
|
|
215133
|
+
|
|
215134
|
+
|
|
215135
|
+
|
|
215136
|
+
|
|
215137
|
+
|
|
215138
|
+
|
|
215139
|
+
|
|
215140
|
+
|
|
215141
|
+
|
|
215142
|
+
|
|
215143
|
+
|
|
215144
|
+
|
|
215145
|
+
|
|
215146
|
+
|
|
215147
|
+
|
|
215148
|
+
|
|
215149
|
+
// and finally,
|
|
215150
|
+
|
|
215151
|
+
|
|
214821
215152
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
214822
215153
|
|
|
214823
215154
|
|
|
@@ -214930,6 +215261,7 @@ var NodePosition = __webpack_require__(42921);
|
|
|
214930
215261
|
|
|
214931
215262
|
|
|
214932
215263
|
|
|
215264
|
+
|
|
214933
215265
|
|
|
214934
215266
|
|
|
214935
215267
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -217112,6 +217444,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217112
217444
|
curPageIndex = curArea.pageIndex;
|
|
217113
217445
|
pageCount = hoEditorFactory.drawPageTree.drawMainDocs.length;
|
|
217114
217446
|
paintMask = function paintMask(index, height, start) {
|
|
217447
|
+
if (height < 6) return;
|
|
217115
217448
|
var drawPage = hoEditorFactory.drawTree.drawPages[index];
|
|
217116
217449
|
var selectContainer = drawPage.selectContainer;
|
|
217117
217450
|
for (var k = selectContainer.children.length - 1; k >= 0; k--) {
|
|
@@ -217340,12 +217673,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217340
217673
|
// }
|
|
217341
217674
|
// }
|
|
217342
217675
|
// }
|
|
217676
|
+
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
217343
217677
|
var drawPage = hoEditorFactory.drawTree.drawPages[pageIndex];
|
|
217344
217678
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
217345
217679
|
var child = drawPage.selectContainer.children[j];
|
|
217346
217680
|
if (child.name && child.name.includes("mask")) {
|
|
217347
217681
|
var bounds = child.getBounds();
|
|
217348
|
-
if (stageY > bounds.y && stageY < bounds.y + bounds.height) {
|
|
217682
|
+
if (stageY > bounds.y * scaleXY && stageY < bounds.y * scaleXY + bounds.height * scaleXY) {
|
|
217349
217683
|
return false;
|
|
217350
217684
|
}
|
|
217351
217685
|
}
|
|
@@ -219175,20 +219509,30 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219175
219509
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openXml);
|
|
219176
219510
|
hoEditorFactory.openXmled = true;
|
|
219177
219511
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219178
|
-
_context8.next =
|
|
219512
|
+
_context8.next = 20;
|
|
219179
219513
|
break;
|
|
219180
219514
|
}
|
|
219181
219515
|
_context8.next = 11;
|
|
219182
219516
|
return hoEditorFactory.docController.initBlankDoc();
|
|
219183
219517
|
case 11:
|
|
219184
219518
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
219185
|
-
if (!(xml
|
|
219186
|
-
_context8.next =
|
|
219519
|
+
if (!(xml && xml.includes("<?xml version"))) {
|
|
219520
|
+
_context8.next = 17;
|
|
219187
219521
|
break;
|
|
219188
219522
|
}
|
|
219189
219523
|
_context8.next = 15;
|
|
219190
219524
|
return hoEditorFactory.structureConvert.openXml(xml, callback, isDelBlockLine, isClearSign);
|
|
219191
219525
|
case 15:
|
|
219526
|
+
_context8.next = 20;
|
|
219527
|
+
break;
|
|
219528
|
+
case 17:
|
|
219529
|
+
if (!xml) {
|
|
219530
|
+
_context8.next = 20;
|
|
219531
|
+
break;
|
|
219532
|
+
}
|
|
219533
|
+
_context8.next = 20;
|
|
219534
|
+
return hoEditorFactory.structureConvert.openXml(gBase64.decode(xml), callback, isDelBlockLine, isClearSign);
|
|
219535
|
+
case 20:
|
|
219192
219536
|
case "end":
|
|
219193
219537
|
return _context8.stop();
|
|
219194
219538
|
}
|
|
@@ -219277,7 +219621,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219277
219621
|
}, {
|
|
219278
219622
|
key: "deleteNode",
|
|
219279
219623
|
value: function deleteNode(node) {
|
|
219280
|
-
var _this2 = this;
|
|
219281
219624
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219282
219625
|
if (!node) return;
|
|
219283
219626
|
if (node.parentNode && node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
@@ -219346,9 +219689,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219346
219689
|
list.map(function (v) {
|
|
219347
219690
|
if (v.node.imgSrc) {
|
|
219348
219691
|
superiorSign[0] = v.node;
|
|
219349
|
-
_this2.hiddenMask(false);
|
|
219350
219692
|
}
|
|
219351
219693
|
});
|
|
219694
|
+
if (superiorSign[0]) {
|
|
219695
|
+
this.hiddenMask(false);
|
|
219696
|
+
}
|
|
219352
219697
|
} else {
|
|
219353
219698
|
var prenode = signNode.previousLeaf();
|
|
219354
219699
|
do {
|
|
@@ -220281,7 +220626,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220281
220626
|
key: "updateElementTextById",
|
|
220282
220627
|
value: function () {
|
|
220283
220628
|
var _updateElementTextById = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(id, text) {
|
|
220284
|
-
var
|
|
220629
|
+
var _this2 = this;
|
|
220285
220630
|
var nodes, _loop4, _ret2, i;
|
|
220286
220631
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context11) {
|
|
220287
220632
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -220311,7 +220656,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220311
220656
|
}
|
|
220312
220657
|
return _context10.abrupt("return", 0);
|
|
220313
220658
|
case 5:
|
|
220314
|
-
_hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(
|
|
220659
|
+
_hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2._hoEditorFactoryID);
|
|
220315
220660
|
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re)) {
|
|
220316
220661
|
_context10.next = 33;
|
|
220317
220662
|
break;
|
|
@@ -220371,7 +220716,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220371
220716
|
getChildNodes(json.node.childNodes.node);
|
|
220372
220717
|
spath = node.StartMarkNode.getNodePath();
|
|
220373
220718
|
epath = node.EndMarkNode.getNodePath();
|
|
220374
|
-
range = new DomRange/* DomRange */.a(
|
|
220719
|
+
range = new DomRange/* DomRange */.a(_this2._hoEditorFactoryID, spath, epath);
|
|
220375
220720
|
_hoEditorFactory.docController.deleteRange(range, true, "update");
|
|
220376
220721
|
(_node$childNodes = node.childNodes).splice.apply(_node$childNodes, [1, 0].concat(childNodes));
|
|
220377
220722
|
node.update(0);
|
|
@@ -220383,7 +220728,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220383
220728
|
break;
|
|
220384
220729
|
}
|
|
220385
220730
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
220386
|
-
_nodes4 =
|
|
220731
|
+
_nodes4 = _this2.text2MedicalExpress(text, node.StartMarkNode, node.StartMarkNode.styleIndex);
|
|
220387
220732
|
for (k = 0; k < _nodes4.length; k++) {
|
|
220388
220733
|
node.childNodes.splice(1 + k, 0, _nodes4[k]);
|
|
220389
220734
|
}
|
|
@@ -220521,7 +220866,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220521
220866
|
}, {
|
|
220522
220867
|
key: "createPNG",
|
|
220523
220868
|
value: function createPNG(quality, type, callback) {
|
|
220524
|
-
var
|
|
220869
|
+
var _this3 = this;
|
|
220525
220870
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220526
220871
|
var createElementNodes = function createElementNodes() {
|
|
220527
220872
|
var drawpages = hoEditorFactory.drawTree.drawPages;
|
|
@@ -220562,7 +220907,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220562
220907
|
document.body.appendChild(pngBox);
|
|
220563
220908
|
callback && callback();
|
|
220564
220909
|
document.querySelector('#hoDownLoadImageBtn').onclick = function () {
|
|
220565
|
-
|
|
220910
|
+
_this3.downLoadPNGHTML();
|
|
220566
220911
|
};
|
|
220567
220912
|
};
|
|
220568
220913
|
if (hoEditorFactory.loadImageCount <= 0) {
|
|
@@ -220608,7 +220953,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220608
220953
|
}, {
|
|
220609
220954
|
key: "createPDF",
|
|
220610
220955
|
value: function createPDF() {
|
|
220611
|
-
var
|
|
220956
|
+
var _this4 = this;
|
|
220612
220957
|
var btn = document.createElement('button');
|
|
220613
220958
|
btn.id = 'hoDownLoadPDFBtn';
|
|
220614
220959
|
btn.style.position = 'fixed';
|
|
@@ -220620,7 +220965,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220620
220965
|
btn.style.outline = 'none';
|
|
220621
220966
|
document.body.appendChild(btn);
|
|
220622
220967
|
document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
|
|
220623
|
-
|
|
220968
|
+
_this4.saveAsPDF();
|
|
220624
220969
|
};
|
|
220625
220970
|
}
|
|
220626
220971
|
/*
|
|
@@ -220986,7 +221331,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220986
221331
|
}, {
|
|
220987
221332
|
key: "setBackgroundByName",
|
|
220988
221333
|
value: function setBackgroundByName(items) {
|
|
220989
|
-
var
|
|
221334
|
+
var _this5 = this;
|
|
220990
221335
|
var selectRangeArr = [];
|
|
220991
221336
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220992
221337
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
@@ -220996,12 +221341,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220996
221341
|
for (var m = 0, len = items.length - 1; m <= len; m++) {
|
|
220997
221342
|
var item = items[m];
|
|
220998
221343
|
if (item.text !== '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId) && anode.text.includes(item.text)) {
|
|
220999
|
-
var range =
|
|
221344
|
+
var range = _this5.search(anode, item.text);
|
|
221000
221345
|
if (range.length > 0) {
|
|
221001
221346
|
selectRangeArr = selectRangeArr.concat(range);
|
|
221002
221347
|
}
|
|
221003
221348
|
} else if (item.text === '' && (item.name === anode.name || item.id === anode.id || item.dataId === anode.dataId)) {
|
|
221004
|
-
var _range =
|
|
221349
|
+
var _range = _this5.search(anode, anode.text);
|
|
221005
221350
|
if (_range.length > 0) {
|
|
221006
221351
|
selectRangeArr = selectRangeArr.concat(_range);
|
|
221007
221352
|
}
|
|
@@ -221708,7 +222053,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221708
222053
|
}, {
|
|
221709
222054
|
key: "showElementsEditRecord",
|
|
221710
222055
|
value: function showElementsEditRecord(objects, id) {
|
|
221711
|
-
var
|
|
222056
|
+
var _this6 = this;
|
|
221712
222057
|
var comments = [];
|
|
221713
222058
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
|
|
221714
222059
|
if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
|
|
@@ -221747,7 +222092,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221747
222092
|
arr[pos[0]] = [];
|
|
221748
222093
|
}
|
|
221749
222094
|
var obj = {
|
|
221750
|
-
editorId: id ? id :
|
|
222095
|
+
editorId: id ? id : _this6._hoEditorFactoryID,
|
|
221751
222096
|
id: comment.id,
|
|
221752
222097
|
lineHeight: comment.lineHeight,
|
|
221753
222098
|
permissionLevel: comment.permissionLevel,
|
|
@@ -221877,7 +222222,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221877
222222
|
}, {
|
|
221878
222223
|
key: "getAllSignNodeList",
|
|
221879
222224
|
value: function getAllSignNodeList(bce01, showNode) {
|
|
221880
|
-
var
|
|
222225
|
+
var _this7 = this;
|
|
221881
222226
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221882
222227
|
var signList = [];
|
|
221883
222228
|
var patientSignList = [];
|
|
@@ -221926,7 +222271,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221926
222271
|
} else {
|
|
221927
222272
|
sign.signed = true;
|
|
221928
222273
|
sign.customProperty = node.customProperty;
|
|
221929
|
-
if (bce01 && node.customProperty && node.customProperty.bce01
|
|
222274
|
+
if (bce01 && node.customProperty && node.customProperty.bce01 == bce01) {
|
|
221930
222275
|
bce01List.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, sign), {}, {
|
|
221931
222276
|
node: node
|
|
221932
222277
|
}));
|
|
@@ -221944,7 +222289,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221944
222289
|
}
|
|
221945
222290
|
});
|
|
221946
222291
|
if (signColList.length > 0) {
|
|
221947
|
-
var firstDataRowIndex =
|
|
222292
|
+
var firstDataRowIndex = _this7.getTableTitleMaxRowIndex(node) + 1;
|
|
221948
222293
|
node.rows.forEach(function (rows, rowIndex) {
|
|
221949
222294
|
if (rowIndex >= firstDataRowIndex) {
|
|
221950
222295
|
rows.forEach(function (cellNode, colIndex) {
|
|
@@ -222066,7 +222411,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222066
222411
|
}, {
|
|
222067
222412
|
key: "getSignNodeAndText",
|
|
222068
222413
|
value: function getSignNodeAndText() {
|
|
222069
|
-
var
|
|
222414
|
+
var _this8 = this;
|
|
222070
222415
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222071
222416
|
var signList = [];
|
|
222072
222417
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -222086,7 +222431,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222086
222431
|
dataId: _node8.dataId,
|
|
222087
222432
|
name: _node8.name
|
|
222088
222433
|
};
|
|
222089
|
-
sign.previousText =
|
|
222434
|
+
sign.previousText = _this8.getPreviousText(_node8);
|
|
222090
222435
|
signList.push(sign);
|
|
222091
222436
|
}
|
|
222092
222437
|
}
|
|
@@ -222103,7 +222448,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222103
222448
|
}, {
|
|
222104
222449
|
key: "getSignNodeList",
|
|
222105
222450
|
value: function getSignNodeList(nodeDataId, bce01) {
|
|
222106
|
-
var
|
|
222451
|
+
var _this9 = this;
|
|
222107
222452
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222108
222453
|
var signList = [];
|
|
222109
222454
|
var count = 0;
|
|
@@ -222128,7 +222473,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222128
222473
|
attribute: _node9.attribute,
|
|
222129
222474
|
connectMode: _node9.connectMode
|
|
222130
222475
|
};
|
|
222131
|
-
sign.previousText =
|
|
222476
|
+
sign.previousText = _this9.getPreviousText(_node9);
|
|
222132
222477
|
if (_node9.imgSrc || _node9.fingerPrintSrc) {
|
|
222133
222478
|
sign.signed = true;
|
|
222134
222479
|
}
|
|
@@ -222244,13 +222589,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222244
222589
|
}, {
|
|
222245
222590
|
key: "html2Xml",
|
|
222246
222591
|
value: function html2Xml(json) {
|
|
222247
|
-
var
|
|
222592
|
+
var _this10 = this;
|
|
222248
222593
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222249
222594
|
var headerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.header);
|
|
222250
222595
|
var footerNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.footer);
|
|
222251
222596
|
var mainNodes = hoEditorFactory.structureNode.Parse(StructureNode/* ClipboardType */.Y6.ctHTML, json.main);
|
|
222252
222597
|
var insertParaNode = function insertParaNode(area, index) {
|
|
222253
|
-
var node = new ParagraphNode/* ParagraphNode */.C(
|
|
222598
|
+
var node = new ParagraphNode/* ParagraphNode */.C(_this10._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, null, 0);
|
|
222254
222599
|
if (area == 'header') {
|
|
222255
222600
|
node.rootPath = 'header/0';
|
|
222256
222601
|
headerNodes.splice(index, 0, node);
|
|
@@ -222744,7 +223089,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222744
223089
|
}, {
|
|
222745
223090
|
key: "updateNurseRecord",
|
|
222746
223091
|
value: function updateNurseRecord(table, operType, rowIndex, data) {
|
|
222747
|
-
var
|
|
223092
|
+
var _this11 = this;
|
|
222748
223093
|
var keys = Object.keys(data);
|
|
222749
223094
|
var backfill = function backfill(r) {
|
|
222750
223095
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -222753,7 +223098,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222753
223098
|
if (cell) {
|
|
222754
223099
|
var text = data[keys[i]];
|
|
222755
223100
|
cell.childNodes.splice(1, cell.childNodes.length);
|
|
222756
|
-
var textNode = new TextNode/* TextNode */.R(
|
|
223101
|
+
var textNode = new TextNode/* TextNode */.R(_this11._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType */.Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
222757
223102
|
cell.drawCell.needUpdate = true;
|
|
222758
223103
|
cell.childNodes.push(textNode);
|
|
222759
223104
|
}
|
|
@@ -223003,7 +223348,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223003
223348
|
}, {
|
|
223004
223349
|
key: "updateAllCodeElements",
|
|
223005
223350
|
value: function updateAllCodeElements(element) {
|
|
223006
|
-
var
|
|
223351
|
+
var _this12 = this;
|
|
223007
223352
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
223008
223353
|
var ret = [];
|
|
223009
223354
|
var getAllNodes = function getAllNodes(nodes) {
|
|
@@ -223032,7 +223377,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223032
223377
|
if (ret.length > 0) {
|
|
223033
223378
|
ret.forEach(function (v) {
|
|
223034
223379
|
if (v.name === element.name) {
|
|
223035
|
-
|
|
223380
|
+
_this12.updateCodeContent(v, element.content);
|
|
223036
223381
|
}
|
|
223037
223382
|
});
|
|
223038
223383
|
this.rebuildAll(false);
|
|
@@ -223523,7 +223868,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223523
223868
|
}, {
|
|
223524
223869
|
key: "getElementChangeRecords",
|
|
223525
223870
|
value: function getElementChangeRecords() {
|
|
223526
|
-
var
|
|
223871
|
+
var _this13 = this;
|
|
223527
223872
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
223528
223873
|
var recordArr = new Array();
|
|
223529
223874
|
var records = hoEditorFactory.docTree.elementChangeRecords;
|
|
@@ -223558,7 +223903,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223558
223903
|
});
|
|
223559
223904
|
}
|
|
223560
223905
|
if (value[1].nodeTypes == 'sign') {
|
|
223561
|
-
var _node16 =
|
|
223906
|
+
var _node16 = _this13.getNodeByDataID('main', key.replace('|', ''));
|
|
223562
223907
|
if (_node16 instanceof SignNode/* SignNode */.N) {
|
|
223563
223908
|
var signJsons = _node16.node2Json();
|
|
223564
223909
|
var signXml = x2js.js2xml(signJsons);
|
|
@@ -223586,7 +223931,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223586
223931
|
}
|
|
223587
223932
|
} else {
|
|
223588
223933
|
var id = key.split("|")[0];
|
|
223589
|
-
var _node17 =
|
|
223934
|
+
var _node17 = _this13.getNodeByID('all', id);
|
|
223590
223935
|
}
|
|
223591
223936
|
});
|
|
223592
223937
|
return recordArr;
|
|
@@ -224776,8 +225121,8 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224776
225121
|
var dNode = hoEditorFactory.drawTree.getDNodeByPath(curDomRange.endPath);
|
|
224777
225122
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
224778
225123
|
var stagePt = dline.localToGlobal(dNode.x, dNode.y);
|
|
224779
|
-
|
|
224780
|
-
if (!
|
|
225124
|
+
result = hoEditorFactory.vueController.isCanEdit(drawPage.pageIndex, stagePt.x, stagePt.y);
|
|
225125
|
+
if (!result) {
|
|
224781
225126
|
return false;
|
|
224782
225127
|
}
|
|
224783
225128
|
}
|
|
@@ -224863,6 +225208,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224863
225208
|
|
|
224864
225209
|
|
|
224865
225210
|
|
|
225211
|
+
|
|
224866
225212
|
var ElementController = /*#__PURE__*/function () {
|
|
224867
225213
|
function ElementController(hoEditorFactoryID) {
|
|
224868
225214
|
(0,esm_classCallCheck/* default */.Z)(this, ElementController);
|
|
@@ -225000,6 +225346,9 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
225000
225346
|
key: "updateDateTimeText",
|
|
225001
225347
|
value: function updateDateTimeText(node, text) {
|
|
225002
225348
|
if (node.text === text) return;
|
|
225349
|
+
if (text) {
|
|
225350
|
+
text = (0,plugins_util/* dateFormat */.vc)(text, node.controlStyle);
|
|
225351
|
+
}
|
|
225003
225352
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
225004
225353
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
|
|
225005
225354
|
return;
|
|
@@ -229313,7 +229662,7 @@ var simple_colors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquama
|
|
|
229313
229662
|
var color_defs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(bits){return[parseInt(bits[1]),parseInt(bits[2]),parseInt(bits[3])];}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(bits){return[parseInt(bits[1],16),parseInt(bits[2],16),parseInt(bits[3],16)];}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(bits){return[parseInt(bits[1]+bits[1],16),parseInt(bits[2]+bits[2],16),parseInt(bits[3]+bits[3],16)];}}];// search through the definitions to find a match
|
|
229314
229663
|
for(var i=0;i<color_defs.length;i++){var re=color_defs[i].re;var processor=color_defs[i].process;var bits=re.exec(color_string);if(bits){channels=processor(bits);this.r=channels[0];this.g=channels[1];this.b=channels[2];this.ok=true;}}// validate/cleanup values
|
|
229315
229664
|
this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r;this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g;this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b;// some getters
|
|
229316
|
-
this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")";};this.toHex=function(){var r=this.r.toString(16);var g=this.g.toString(16);var b=this.b.toString(16);if(r.length==1)r="0"+r;if(g.length==1)g="0"+g;if(b.length==1)b="0"+b;return"#"+r+g+b;};}var
|
|
229665
|
+
this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")";};this.toHex=function(){var r=this.r.toString(16);var g=this.g.toString(16);var b=this.b.toString(16);if(r.length==1)r="0"+r;if(g.length==1)g="0"+g;if(b.length==1)b="0"+b;return"#"+r+g+b;};}var jspdf_atob,jspdf_btoa;(function(){jspdf_atob=globalObject.atob.bind(globalObject);jspdf_btoa=globalObject.btoa.bind(globalObject);return;})();/**
|
|
229317
229666
|
* @license
|
|
229318
229667
|
* Joseph Myers does not specify a particular license for his work.
|
|
229319
229668
|
*
|
|
@@ -230006,7 +230355,7 @@ return content.join("\n");};var getBlob=API.__private__.getBlob=function(data){r
|
|
|
230006
230355
|
* @memberof jsPDF#
|
|
230007
230356
|
* @name output
|
|
230008
230357
|
*/var output=API.output=API.__private__.output=SAFE(function output(type,options){options=options||{};if(typeof options==="string"){options={filename:options};}else{options.filename=options.filename||"generated.pdf";}switch(type){case undefined:return buildDocument();case"save":API.save(options.filename);break;case"arraybuffer":return getArrayBuffer(buildDocument());case"blob":return getBlob(buildDocument());case"bloburi":case"bloburl":// Developer is responsible of calling revokeObjectURL
|
|
230009
|
-
if(typeof globalObject.URL!=="undefined"&&typeof globalObject.URL.createObjectURL==="function"){return globalObject.URL&&globalObject.URL.createObjectURL(getBlob(buildDocument()))||void 0;}else{jspdf_console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");}break;case"datauristring":case"dataurlstring":var dataURI="";var pdfDocument=buildDocument();try{dataURI=
|
|
230358
|
+
if(typeof globalObject.URL!=="undefined"&&typeof globalObject.URL.createObjectURL==="function"){return globalObject.URL&&globalObject.URL.createObjectURL(getBlob(buildDocument()))||void 0;}else{jspdf_console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");}break;case"datauristring":case"dataurlstring":var dataURI="";var pdfDocument=buildDocument();try{dataURI=jspdf_btoa(pdfDocument);}catch(e){dataURI=jspdf_btoa(unescape(encodeURIComponent(pdfDocument)));}return"data:application/pdf;filename="+options.filename+";base64,"+dataURI;case"pdfobjectnewwindow":if(Object.prototype.toString.call(globalObject)==="[object Window]"){var pdfObjectUrl=options.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js";var htmlForNewWindow="<html>"+'<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+pdfObjectUrl+'"></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(options)+");</script></body></html>";var nW=globalObject.open();if(nW!==null){nW.document.write(htmlForNewWindow);}return nW;}else{throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");}case"pdfjsnewwindow":if(Object.prototype.toString.call(globalObject)==="[object Window]"){var pdfJsUrl=options.pdfJsUrl||"examples/PDF.js/web/viewer.html";var htmlForPDFjsNewWindow="<html>"+"<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>"+'<body><iframe id="pdfViewer" src="'+pdfJsUrl+"?file=&downloadName="+options.filename+'" width="500px" height="400px" />'+"</body></html>";var PDFjsNewWindow=globalObject.open();if(PDFjsNewWindow!==null){PDFjsNewWindow.document.write(htmlForPDFjsNewWindow);var scope=this;PDFjsNewWindow.document.documentElement.querySelector("#pdfViewer").onload=function(){PDFjsNewWindow.document.title=options.filename;PDFjsNewWindow.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(scope.output("bloburl"));};}return PDFjsNewWindow;}else{throw new Error("The option pdfjsnewwindow just works in a browser-environment.");}case"dataurlnewwindow":if(Object.prototype.toString.call(globalObject)==="[object Window]"){var htmlForDataURLNewWindow="<html>"+"<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>"+"<body>"+'<iframe src="'+this.output("datauristring",options)+'"></iframe>'+"</body></html>";var dataURLNewWindow=globalObject.open();if(dataURLNewWindow!==null){dataURLNewWindow.document.write(htmlForDataURLNewWindow);dataURLNewWindow.document.title=options.filename;}if(dataURLNewWindow||typeof safari==="undefined")return dataURLNewWindow;}else{throw new Error("The option dataurlnewwindow just works in a browser-environment.");}break;case"datauri":case"dataurl":return globalObject.document.location.href=this.output("datauristring",options);default:return null;}});/**
|
|
230010
230359
|
* Used to see if a supplied hotfix was requested when the pdf instance was created.
|
|
230011
230360
|
* @param {string} hotfixName - The name of the hotfix to check.
|
|
230012
230361
|
* @returns {boolean}
|
|
@@ -231487,8 +231836,8 @@ if(image.colorSpace===color_spaces.INDEXED){var objId=this.internal.newObject();
|
|
|
231487
231836
|
//putStream(zlib.compress(img['pal']));
|
|
231488
231837
|
putStream({data:arrayBufferToBinaryString(new Uint8Array(image.palette)),objectId:objId});out("endobj");}};var putResourcesCallback=function putResourcesCallback(){var images=this.internal.collections[namespace+"images"];for(var i in images){putImage.call(this,images[i]);}};var putXObjectsDictCallback=function putXObjectsDictCallback(){var images=this.internal.collections[namespace+"images"],out=this.internal.write,image;for(var i in images){image=images[i];out("/I"+image.index,image.objectId,"0","R");}};var checkCompressValue=function checkCompressValue(value){if(value&&typeof value==="string")value=value.toUpperCase();return value in jsPDFAPI.image_compression?value:image_compression.NONE;};var initialize=function initialize(){if(!this.internal.collections[namespace+"images"]){this.internal.collections[namespace+"images"]={};this.internal.events.subscribe("putResources",putResourcesCallback);this.internal.events.subscribe("putXobjectDict",putXObjectsDictCallback);}};var getImages=function getImages(){var images=this.internal.collections[namespace+"images"];initialize.call(this);return images;};var getImageIndex=function getImageIndex(){return Object.keys(this.internal.collections[namespace+"images"]).length;};var notDefined=function notDefined(value){return typeof value==="undefined"||value===null||value.length===0;};var generateAliasFromImageData=function generateAliasFromImageData(imageData){if(typeof imageData==="string"||isArrayBufferView(imageData)){return sHashCode(imageData);}else if(isArrayBufferView(imageData.data)){return sHashCode(imageData.data);}return null;};var isImageTypeSupported=function isImageTypeSupported(type){return typeof jsPDFAPI["process"+type.toUpperCase()]==="function";};var isDOMElement=function isDOMElement(object){return (0,esm_typeof/* default */.Z)(object)==="object"&&object.nodeType===1;};var getImageDataFromElement=function getImageDataFromElement(element,format){//if element is an image which uses data url definition, just return the dataurl
|
|
231489
231838
|
if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.getAttribute("src");//is base64 encoded dataUrl, directly process it
|
|
231490
|
-
if(src.indexOf("data:image/")===0){return
|
|
231491
|
-
var tmpImageData=jsPDFAPI.loadFile(src,true);if(tmpImageData!==undefined){return tmpImageData;}}if(element.nodeName==="CANVAS"){if(element.width===0||element.height===0){throw new Error("Given canvas must have data. Canvas width: "+element.width+", height: "+element.height);}var mimeType;switch(format){case"PNG":mimeType="image/png";break;case"WEBP":mimeType="image/webp";break;case"JPEG":case"JPG":default:mimeType="image/jpeg";break;}return
|
|
231839
|
+
if(src.indexOf("data:image/")===0){return jspdf_atob(unescape(src).split("base64,").pop());}//it is probably an url, try to load it
|
|
231840
|
+
var tmpImageData=jsPDFAPI.loadFile(src,true);if(tmpImageData!==undefined){return tmpImageData;}}if(element.nodeName==="CANVAS"){if(element.width===0||element.height===0){throw new Error("Given canvas must have data. Canvas width: "+element.width+", height: "+element.height);}var mimeType;switch(format){case"PNG":mimeType="image/png";break;case"WEBP":mimeType="image/webp";break;case"JPEG":case"JPG":default:mimeType="image/jpeg";break;}return jspdf_atob(element.toDataURL(mimeType,1.0).split("base64,").pop());}};var checkImagesForAlias=function checkImagesForAlias(alias){var images=this.internal.collections[namespace+"images"];if(images){for(var e in images){if(alias===images[e].alias){return images[e];}}}};var determineWidthAndHeight=function determineWidthAndHeight(width,height,image){if(!width&&!height){width=-96;height=-96;}if(width<0){width=-1*image.width*72/width/this.internal.scaleFactor;}if(height<0){height=-1*image.height*72/height/this.internal.scaleFactor;}if(width===0){width=height*image.width/image.height;}if(height===0){height=width*image.height/image.width;}return[width,height];};var writeImageToPDF=function writeImageToPDF(x,y,width,height,image,rotation){var dims=determineWidthAndHeight.call(this,width,height,image),coord=this.internal.getCoordinateString,vcoord=this.internal.getVerticalCoordinateString;var images=getImages.call(this);width=dims[0];height=dims[1];images[image.index]=image;if(image.exifdata&&image.exifdata.Orientation){rotation={6:270,8:90,// 5: 180,
|
|
231492
231841
|
// 7: 180,
|
|
231493
231842
|
2:270,4:90// 1: 180,
|
|
231494
231843
|
// 3: 180
|
|
@@ -231617,7 +231966,7 @@ if(!(imageData instanceof Uint8Array)&&format!=="RGBA"){dataAsBinaryString=image
|
|
|
231617
231966
|
* @function
|
|
231618
231967
|
* @param {string} stringData
|
|
231619
231968
|
* @returns {string} binary string
|
|
231620
|
-
*/var convertBase64ToBinaryString=jsPDFAPI.__addimage__.convertBase64ToBinaryString=function(stringData,throwError){throwError=typeof throwError==="boolean"?throwError:true;var base64Info;var imageData="";var rawData;if(typeof stringData==="string"){base64Info=extractImageFromDataUrl(stringData);rawData=base64Info!==null?base64Info.data:stringData;try{imageData=
|
|
231969
|
+
*/var convertBase64ToBinaryString=jsPDFAPI.__addimage__.convertBase64ToBinaryString=function(stringData,throwError){throwError=typeof throwError==="boolean"?throwError:true;var base64Info;var imageData="";var rawData;if(typeof stringData==="string"){base64Info=extractImageFromDataUrl(stringData);rawData=base64Info!==null?base64Info.data:stringData;try{imageData=jspdf_atob(rawData);}catch(e){if(throwError){if(!validateStringAsBase64(rawData)){throw new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ");}else{throw new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message);}}}}return imageData;};/**
|
|
231621
231970
|
* @name getImageProperties
|
|
231622
231971
|
* @function
|
|
231623
231972
|
* @param {Object} imageData
|
|
@@ -233480,7 +233829,7 @@ var encodingBlock={codePages:["WinAnsiEncoding"],WinAnsiEncoding:uncompress("{19
|
|
|
233480
233829
|
* @name ttfsupport
|
|
233481
233830
|
* @module
|
|
233482
233831
|
*/(function(jsPDF){var binaryStringToUint8Array=function binaryStringToUint8Array(binary_string){var len=binary_string.length;var bytes=new Uint8Array(len);for(var i=0;i<len;i++){bytes[i]=binary_string.charCodeAt(i);}return bytes;};var addFont=function addFont(font,file){// eslint-disable-next-line no-control-regex
|
|
233483
|
-
if(/^\x00\x01\x00\x00/.test(file)){file=binaryStringToUint8Array(file);}else{file=binaryStringToUint8Array(
|
|
233832
|
+
if(/^\x00\x01\x00\x00/.test(file)){file=binaryStringToUint8Array(file);}else{file=binaryStringToUint8Array(jspdf_atob(file));}font.metadata=jsPDF.API.TTFFont.open(file);font.metadata.Unicode=font.metadata.Unicode||{encoding:{},kerning:{},widths:[]};font.metadata.glyIdsUsed=[0];};jsPDF.API.events.push(["addFont",function(data){var file=undefined;var font=data.font;var instance=data.instance;if(font.isStandardFont){return;}if(typeof instance!=="undefined"){if(instance.existsFileInVFS(font.postScriptName)===false){file=instance.loadFile(font.postScriptName);}else{file=instance.getFileFromVFS(font.postScriptName);}if(typeof file!=="string"){throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+font.postScriptName+"').");}addFont(font,file);}else{throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+font.postScriptName+"').");}}]);// end of adding event handler
|
|
233484
233833
|
})(jsPDF);/** @license
|
|
233485
233834
|
* Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
233486
233835
|
*
|
|
@@ -237718,11 +238067,11 @@ var commondata = __webpack_require__(76285);
|
|
|
237718
238067
|
'hoEditorProvider.controlType': {
|
|
237719
238068
|
deep: true,
|
|
237720
238069
|
handler: function handler(newValue, oldValue) {
|
|
237721
|
-
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
238070
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph', 'RadioBox', 'CheckBox'].includes(oldValue)) {
|
|
237722
238071
|
this.$emit('closeTextModal');
|
|
237723
238072
|
this.hoEditorProvider.customPropertyValue = {};
|
|
237724
238073
|
}
|
|
237725
|
-
if (['text', 'date'].includes(newValue)) {
|
|
238074
|
+
if (['text', 'date', 'RadioBox', 'CheckBox'].includes(newValue)) {
|
|
237726
238075
|
if ((0,type/* isObject */.Kn)(this.hoEditorProvider.customPropertyValue)) {
|
|
237727
238076
|
this.$emit('openTextModal', (0,objectSpread2/* default */.Z)({}, this.hoEditorProvider.customPropertyValue));
|
|
237728
238077
|
}
|
|
@@ -238455,10 +238804,10 @@ var commondata = __webpack_require__(76285);
|
|
|
238455
238804
|
});
|
|
238456
238805
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
238457
238806
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
238458
|
-
;// CONCATENATED MODULE: ./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/HoDocs.vue?vue&type=style&index=0&id=
|
|
238807
|
+
;// CONCATENATED MODULE: ./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/HoDocs.vue?vue&type=style&index=0&id=40b25c35&prod&lang=less&media=print&
|
|
238459
238808
|
// extracted by mini-css-extract-plugin
|
|
238460
238809
|
|
|
238461
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
238810
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=40b25c35&prod&lang=less&media=print&
|
|
238462
238811
|
|
|
238463
238812
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
238464
238813
|
|
|
@@ -245354,18 +245703,15 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245354
245703
|
}
|
|
245355
245704
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245356
245705
|
this.rightType = 'text';
|
|
245357
|
-
// this.dataSource = node.bandDataSource;
|
|
245358
245706
|
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245359
245707
|
} else if (node instanceof MarkNode/* MarkNode */.j && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245360
245708
|
var parentNode = node.parentNode;
|
|
245361
245709
|
this.rightType = 'text';
|
|
245362
|
-
// this.dataSource = parentNode.bandDataSource;
|
|
245363
245710
|
if ((0,type/* isObject */.Kn)(parentNode.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, parentNode.customProperty);
|
|
245364
245711
|
} else if (node instanceof TextNode/* TextNode */.R) {
|
|
245365
245712
|
var _parentNode = node.parentNode;
|
|
245366
245713
|
if (_parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
245367
245714
|
this.rightType = 'text';
|
|
245368
|
-
// this.dataSource = parentNode.bandDataSource;
|
|
245369
245715
|
if ((0,type/* isObject */.Kn)(_parentNode.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, _parentNode.customProperty);
|
|
245370
245716
|
} else if (_parentNode instanceof CellNode/* CellNode */.D) {
|
|
245371
245717
|
this.rightTypeIsTable = true;
|
|
@@ -245380,23 +245726,13 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245380
245726
|
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245381
245727
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
245382
245728
|
this.rightType = 'select';
|
|
245383
|
-
// if (isObject(node.customProperty)) this.customPropertyValue = { ...node.customProperty };
|
|
245384
245729
|
} else if (node instanceof BarcodeNode/* BarcodeNode */.T) {
|
|
245385
245730
|
this.rightType = 'barcode';
|
|
245386
245731
|
} else if (node instanceof QrcodeNode/* QrcodeNode */.d) {
|
|
245387
245732
|
this.rightType = 'qrcode';
|
|
245388
|
-
// this.dataSource = {
|
|
245389
|
-
// dataSourceEnabled: node.dataSourceEnabled,
|
|
245390
|
-
// dataSource: node.dataSource,
|
|
245391
|
-
// format: node.format,
|
|
245392
|
-
// visitPath: node.visitPath,
|
|
245393
|
-
// isReadOnly: node.isReadOnly,
|
|
245394
|
-
// autoUpdate: node.autoUpdate,
|
|
245395
|
-
// executeStatus: Number(node.execState),
|
|
245396
|
-
// };
|
|
245397
245733
|
} else if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) {
|
|
245398
245734
|
this.rightType = node.controlStyle;
|
|
245399
|
-
|
|
245735
|
+
if ((0,type/* isObject */.Kn)(node.customProperty)) this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, node.customProperty);
|
|
245400
245736
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
245401
245737
|
if (!node.isBackFill) {
|
|
245402
245738
|
this.rightType = 'edit-image';
|
|
@@ -245741,7 +246077,7 @@ var rarewords = __webpack_require__(43903);
|
|
|
245741
246077
|
|
|
245742
246078
|
|
|
245743
246079
|
|
|
245744
|
-
var CLICK = '
|
|
246080
|
+
var CLICK = 'mousedown';
|
|
245745
246081
|
var captureInstances = Object.create(null);
|
|
245746
246082
|
var nonCaptureInstances = Object.create(null);
|
|
245747
246083
|
var captureEventHandlers = Object.create(null);
|