hoeditor-web 3.1.162 → 3.1.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +357 -455
- package/lib/hoeditor.umd.min.js +10 -10
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -17134,7 +17134,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
17134
17134
|
|
|
17135
17135
|
/***/ }),
|
|
17136
17136
|
|
|
17137
|
-
/***/
|
|
17137
|
+
/***/ 21166:
|
|
17138
17138
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17139
17139
|
|
|
17140
17140
|
"use strict";
|
|
@@ -17154,7 +17154,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
17154
17154
|
var es_regexp_exec = __webpack_require__(74916);
|
|
17155
17155
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
17156
17156
|
var es_string_replace = __webpack_require__(15306);
|
|
17157
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=
|
|
17157
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=a1731b98&
|
|
17158
17158
|
|
|
17159
17159
|
|
|
17160
17160
|
|
|
@@ -17420,7 +17420,7 @@ var render = function render() {
|
|
|
17420
17420
|
};
|
|
17421
17421
|
var staticRenderFns = [];
|
|
17422
17422
|
|
|
17423
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=
|
|
17423
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=a1731b98&
|
|
17424
17424
|
|
|
17425
17425
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
17426
17426
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -17919,10 +17919,10 @@ var popper = __webpack_require__(95551);
|
|
|
17919
17919
|
});
|
|
17920
17920
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
17921
17921
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
17922
|
-
;// 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/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
17922
|
+
;// 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/table/TableCellPoper.vue?vue&type=style&index=0&id=a1731b98&prod&lang=less&
|
|
17923
17923
|
// extracted by mini-css-extract-plugin
|
|
17924
17924
|
|
|
17925
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
17925
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=a1731b98&prod&lang=less&
|
|
17926
17926
|
|
|
17927
17927
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
17928
17928
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -18603,7 +18603,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
18603
18603
|
|
|
18604
18604
|
/***/ }),
|
|
18605
18605
|
|
|
18606
|
-
/***/
|
|
18606
|
+
/***/ 14278:
|
|
18607
18607
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18608
18608
|
|
|
18609
18609
|
"use strict";
|
|
@@ -18619,7 +18619,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18619
18619
|
var es_array_includes = __webpack_require__(26699);
|
|
18620
18620
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
18621
18621
|
var es_string_includes = __webpack_require__(32023);
|
|
18622
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
18622
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=082cc123&
|
|
18623
18623
|
|
|
18624
18624
|
|
|
18625
18625
|
var render = function render() {
|
|
@@ -19278,7 +19278,34 @@ var render = function render() {
|
|
|
19278
19278
|
},
|
|
19279
19279
|
expression: "isAutoInputCurDate"
|
|
19280
19280
|
}
|
|
19281
|
-
}, [_vm._v("双击设置当前日期时间")])], 1)])
|
|
19281
|
+
}, [_vm._v("双击设置当前日期时间")])], 1)]), _c('li', {
|
|
19282
|
+
staticClass: "control-item"
|
|
19283
|
+
}, [_c('div', {
|
|
19284
|
+
staticClass: "control-item"
|
|
19285
|
+
}, [_c('a-checkbox', {
|
|
19286
|
+
model: {
|
|
19287
|
+
value: _vm.isUpdateNextDays,
|
|
19288
|
+
callback: function callback($$v) {
|
|
19289
|
+
_vm.isUpdateNextDays = $$v;
|
|
19290
|
+
},
|
|
19291
|
+
expression: "isUpdateNextDays"
|
|
19292
|
+
}
|
|
19293
|
+
}, [_vm._v("设置间隔天数")]), _c('a-input-number', {
|
|
19294
|
+
staticStyle: {
|
|
19295
|
+
"width": "100px"
|
|
19296
|
+
},
|
|
19297
|
+
attrs: {
|
|
19298
|
+
"min": 0,
|
|
19299
|
+
"size": "small"
|
|
19300
|
+
},
|
|
19301
|
+
model: {
|
|
19302
|
+
value: _vm.daysInterval,
|
|
19303
|
+
callback: function callback($$v) {
|
|
19304
|
+
_vm.daysInterval = $$v;
|
|
19305
|
+
},
|
|
19306
|
+
expression: "daysInterval"
|
|
19307
|
+
}
|
|
19308
|
+
}), _c('span', [_vm._v("天")])], 1)])] : _vm.editorProperty === 7 ? [_c('li', {
|
|
19282
19309
|
staticClass: "control-item"
|
|
19283
19310
|
}, [_c('span', {
|
|
19284
19311
|
staticClass: "label"
|
|
@@ -19410,7 +19437,7 @@ var render = function render() {
|
|
|
19410
19437
|
};
|
|
19411
19438
|
var staticRenderFns = [];
|
|
19412
19439
|
|
|
19413
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
19440
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=082cc123&
|
|
19414
19441
|
|
|
19415
19442
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
|
|
19416
19443
|
var slicedToArray = __webpack_require__(27222);
|
|
@@ -19571,10 +19598,12 @@ var columns = [{
|
|
|
19571
19598
|
// 斜分割线
|
|
19572
19599
|
endPath: '',
|
|
19573
19600
|
tableInfo: null,
|
|
19574
|
-
formula: ''
|
|
19601
|
+
formula: '',
|
|
19602
|
+
// 公式
|
|
19603
|
+
isUpdateNextDays: false,
|
|
19604
|
+
daysInterval: 0
|
|
19575
19605
|
};
|
|
19576
19606
|
},
|
|
19577
|
-
|
|
19578
19607
|
inject: ['hoEditorProvider'],
|
|
19579
19608
|
computed: {
|
|
19580
19609
|
customProperties: function customProperties() {
|
|
@@ -19593,7 +19622,7 @@ var columns = [{
|
|
|
19593
19622
|
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
19594
19623
|
var cellNode = this.getCellNodes();
|
|
19595
19624
|
if (cellNode !== null) {
|
|
19596
|
-
this.id = cellNode
|
|
19625
|
+
// this.id = cellNode?.cellProperty.id ? cellNode.cellProperty.id : this.vueController.generateID('TB');
|
|
19597
19626
|
this.lightCellBorders = cellNode.cellProperty.lightCellBorders;
|
|
19598
19627
|
this.title = cellNode.cellProperty.title ? cellNode.cellProperty.title : '';
|
|
19599
19628
|
this.align = cellNode.cellProperty.align;
|
|
@@ -19648,6 +19677,8 @@ var columns = [{
|
|
|
19648
19677
|
if (dateTimeProperty) {
|
|
19649
19678
|
this.inputStyle = dateTimeProperty.inputStyle ? dateTimeProperty.inputStyle : 'yyyy-MM-dd';
|
|
19650
19679
|
this.isAutoInputCurDate = dateTimeProperty.isAutoInputCurDate !== undefined ? dateTimeProperty.isAutoInputCurDate : false;
|
|
19680
|
+
this.daysInterval = dateTimeProperty.daysInterval ? dateTimeProperty.daysInterval : 0;
|
|
19681
|
+
this.isUpdateNextDays = dateTimeProperty.isUpdateNextDays ? dateTimeProperty.isUpdateNextDays : false;
|
|
19651
19682
|
}
|
|
19652
19683
|
this.obliqueSplitLine = cellNode.cellProperty.obliqueSplitLine;
|
|
19653
19684
|
}
|
|
@@ -19789,7 +19820,9 @@ var columns = [{
|
|
|
19789
19820
|
} else if (this.editorProperty === 2) {
|
|
19790
19821
|
params.dateTimeProperty = {
|
|
19791
19822
|
inputStyle: this.inputStyle,
|
|
19792
|
-
isAutoInputCurDate: this.isAutoInputCurDate
|
|
19823
|
+
isAutoInputCurDate: this.isAutoInputCurDate,
|
|
19824
|
+
daysInterval: this.daysInterval,
|
|
19825
|
+
isUpdateNextDays: this.isUpdateNextDays
|
|
19793
19826
|
};
|
|
19794
19827
|
params.downListProperty = undefined;
|
|
19795
19828
|
}
|
|
@@ -19813,10 +19846,10 @@ var columns = [{
|
|
|
19813
19846
|
});
|
|
19814
19847
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
|
|
19815
19848
|
/* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
|
|
19816
|
-
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19849
|
+
;// 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/table/TableCellProperty.vue?vue&type=style&index=0&id=082cc123&prod&lang=less&
|
|
19817
19850
|
// extracted by mini-css-extract-plugin
|
|
19818
19851
|
|
|
19819
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
19852
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=082cc123&prod&lang=less&
|
|
19820
19853
|
|
|
19821
19854
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
19822
19855
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -19844,7 +19877,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
19844
19877
|
|
|
19845
19878
|
/***/ }),
|
|
19846
19879
|
|
|
19847
|
-
/***/
|
|
19880
|
+
/***/ 3828:
|
|
19848
19881
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19849
19882
|
|
|
19850
19883
|
"use strict";
|
|
@@ -19864,7 +19897,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
19864
19897
|
var es_string_includes = __webpack_require__(32023);
|
|
19865
19898
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
19866
19899
|
var es_number_constructor = __webpack_require__(9653);
|
|
19867
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
19900
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=template&id=7c2da566&
|
|
19868
19901
|
|
|
19869
19902
|
|
|
19870
19903
|
|
|
@@ -20314,7 +20347,7 @@ var render = function render() {
|
|
|
20314
20347
|
};
|
|
20315
20348
|
var staticRenderFns = [];
|
|
20316
20349
|
|
|
20317
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
20350
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=7c2da566&
|
|
20318
20351
|
|
|
20319
20352
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
20320
20353
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -20629,10 +20662,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
20629
20662
|
});
|
|
20630
20663
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
20631
20664
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
20632
|
-
;// 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/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20665
|
+
;// 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/table/TableColProperty.vue?vue&type=style&index=0&id=7c2da566&prod&lang=less&
|
|
20633
20666
|
// extracted by mini-css-extract-plugin
|
|
20634
20667
|
|
|
20635
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
20668
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=7c2da566&prod&lang=less&
|
|
20636
20669
|
|
|
20637
20670
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
20638
20671
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -46054,7 +46087,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
46054
46087
|
//按顺序新增行
|
|
46055
46088
|
function TableProperty(objectValues) {
|
|
46056
46089
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, TableProperty);
|
|
46057
|
-
|
|
46090
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_id", void 0);
|
|
46091
|
+
//编号
|
|
46058
46092
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
46059
46093
|
//自定义属性
|
|
46060
46094
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_canAdjustRowHeight", false);
|
|
@@ -46110,13 +46144,15 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
46110
46144
|
assignvalue(this, valuesObj);
|
|
46111
46145
|
}
|
|
46112
46146
|
}
|
|
46113
|
-
// get id(): string {
|
|
46114
|
-
// return this._id;
|
|
46115
|
-
// }
|
|
46116
|
-
// set id(value: string) {
|
|
46117
|
-
// this._id = value;
|
|
46118
|
-
// }
|
|
46119
46147
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(TableProperty, [{
|
|
46148
|
+
key: "id",
|
|
46149
|
+
get: function get() {
|
|
46150
|
+
return this._id;
|
|
46151
|
+
},
|
|
46152
|
+
set: function set(value) {
|
|
46153
|
+
this._id = value;
|
|
46154
|
+
}
|
|
46155
|
+
}, {
|
|
46120
46156
|
key: "customProperties",
|
|
46121
46157
|
get: function get() {
|
|
46122
46158
|
return this._customProperties;
|
|
@@ -46343,8 +46379,7 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
46343
46379
|
function RowProperty(objectValues //, table: TableNode
|
|
46344
46380
|
) {
|
|
46345
46381
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, RowProperty);
|
|
46346
|
-
|
|
46347
|
-
//编号
|
|
46382
|
+
// private _id = "";//编号
|
|
46348
46383
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
46349
46384
|
//自定义属性
|
|
46350
46385
|
//private _dataSource !: DataSource;//数据源
|
|
@@ -46389,14 +46424,6 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
46389
46424
|
}
|
|
46390
46425
|
}
|
|
46391
46426
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(RowProperty, [{
|
|
46392
|
-
key: "id",
|
|
46393
|
-
get: function get() {
|
|
46394
|
-
return this._id;
|
|
46395
|
-
},
|
|
46396
|
-
set: function set(value) {
|
|
46397
|
-
this._id = value;
|
|
46398
|
-
}
|
|
46399
|
-
}, {
|
|
46400
46427
|
key: "customProperties",
|
|
46401
46428
|
get: function get() {
|
|
46402
46429
|
return this._customProperties;
|
|
@@ -46587,16 +46614,36 @@ var ColDownListProperty = /*#__PURE__*/function () {
|
|
|
46587
46614
|
return ColDownListProperty;
|
|
46588
46615
|
}();
|
|
46589
46616
|
var DateTimeProperty = /*#__PURE__*/function () {
|
|
46590
|
-
//是否自动填入当前日期时间
|
|
46591
46617
|
function DateTimeProperty(objectValues) {
|
|
46592
46618
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, DateTimeProperty);
|
|
46593
46619
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_inputStyle", "yyyy-MM-dd HH:mm:ss");
|
|
46594
46620
|
//日期时间输入样式 编辑器属性是DateTime类型的情况
|
|
46595
46621
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isAutoInputCurDate", false);
|
|
46596
|
-
|
|
46597
|
-
|
|
46622
|
+
//是否自动填入当前日期时间
|
|
46623
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_isUpdateNextDays", false);
|
|
46624
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_daysInterval", 0);
|
|
46625
|
+
this._inputStyle = objectValues["inputStyle"] || objectValues["_inputStyle"];
|
|
46626
|
+
this._isAutoInputCurDate = objectValues["isAutoInputCurDate"] || objectValues["_isAutoInputCurDate"] || false;
|
|
46627
|
+
this._isUpdateNextDays = objectValues["isUpdateNextDays"] || objectValues["_isUpdateNextDays"] || false;
|
|
46628
|
+
this._daysInterval = objectValues["daysInterval"] || objectValues["_daysInterval"] || 0;
|
|
46598
46629
|
}
|
|
46599
46630
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DateTimeProperty, [{
|
|
46631
|
+
key: "isUpdateNextDays",
|
|
46632
|
+
get: function get() {
|
|
46633
|
+
return this._isUpdateNextDays;
|
|
46634
|
+
},
|
|
46635
|
+
set: function set(value) {
|
|
46636
|
+
this._isUpdateNextDays = value;
|
|
46637
|
+
}
|
|
46638
|
+
}, {
|
|
46639
|
+
key: "daysInterval",
|
|
46640
|
+
get: function get() {
|
|
46641
|
+
return this._daysInterval;
|
|
46642
|
+
},
|
|
46643
|
+
set: function set(value) {
|
|
46644
|
+
this._daysInterval = value;
|
|
46645
|
+
}
|
|
46646
|
+
}, {
|
|
46600
46647
|
key: "inputStyle",
|
|
46601
46648
|
get: function get() {
|
|
46602
46649
|
return this._inputStyle;
|
|
@@ -46677,7 +46724,6 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46677
46724
|
//新增行时是否使用默认值
|
|
46678
46725
|
function ColProperty(objectValues) {
|
|
46679
46726
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ColProperty);
|
|
46680
|
-
//private _id!: string;//编号
|
|
46681
46727
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_editorProperty", EditorProperty.None);
|
|
46682
46728
|
//编辑器属性
|
|
46683
46729
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_align", VAlign.vatop);
|
|
@@ -46730,12 +46776,6 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
46730
46776
|
}
|
|
46731
46777
|
}
|
|
46732
46778
|
}
|
|
46733
|
-
// get id(): string {
|
|
46734
|
-
// return this._id;
|
|
46735
|
-
// }
|
|
46736
|
-
// set id(value: string) {
|
|
46737
|
-
// this._id = value;
|
|
46738
|
-
// }
|
|
46739
46779
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(ColProperty, [{
|
|
46740
46780
|
key: "editorProperty",
|
|
46741
46781
|
get: function get() {
|
|
@@ -46854,42 +46894,12 @@ var DiagonalType;
|
|
|
46854
46894
|
DiagonalType[DiagonalType["Left"] = 1] = "Left";
|
|
46855
46895
|
DiagonalType[DiagonalType["Right"] = 2] = "Right";
|
|
46856
46896
|
})(DiagonalType || (DiagonalType = {}));
|
|
46857
|
-
// export class Formula { //计算公式
|
|
46858
|
-
// private _formulaStr = "";
|
|
46859
|
-
// private _oldValue = "";
|
|
46860
|
-
// constructor(objectValues: any) {
|
|
46861
|
-
// //this._formularType = objectValues["formularType"] ? objectValues["formularType"] : objectValues["_formularType"];
|
|
46862
|
-
// this._formulaStr = objectValues["formulaStr"] ? objectValues["formulaStr"] : objectValues["_formulaStr"];
|
|
46863
|
-
// }
|
|
46864
|
-
// // get formularType(): FormularType {
|
|
46865
|
-
// // return this._formularType;
|
|
46866
|
-
// // }
|
|
46867
|
-
// // set formularType(value: FormularType) {
|
|
46868
|
-
// // this._formularType = value;
|
|
46869
|
-
// // }
|
|
46870
|
-
// get formulaStr(): string {
|
|
46871
|
-
// return this._formulaStr;
|
|
46872
|
-
// }
|
|
46873
|
-
// set formulaStr(value: string) {
|
|
46874
|
-
// this._formulaStr = value;
|
|
46875
|
-
// }
|
|
46876
|
-
// get oldValue(): string {
|
|
46877
|
-
// return this._oldValue;
|
|
46878
|
-
// }
|
|
46879
|
-
// set oldValue(value: string) {
|
|
46880
|
-
// this._oldValue = value;
|
|
46881
|
-
// }
|
|
46882
|
-
// }
|
|
46883
46897
|
var CellProperty = /*#__PURE__*/function () {
|
|
46884
|
-
function CellProperty(objectValues
|
|
46885
|
-
) {
|
|
46898
|
+
function CellProperty(objectValues) {
|
|
46886
46899
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, CellProperty);
|
|
46887
|
-
//private _id!: string;//编号
|
|
46888
46900
|
//private _lightCellBorders = false;//突出显示单元格边框
|
|
46889
|
-
//private _title = "";//标题
|
|
46890
46901
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
46891
46902
|
//自定义属性
|
|
46892
|
-
//private _dataSource!: DataSource;//数据源
|
|
46893
46903
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_align", VAlign.vatop);
|
|
46894
46904
|
//垂直对齐方式
|
|
46895
46905
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_cellInnerMargin", [0, 0, 0.1, 0.1]);
|
|
@@ -46918,7 +46928,6 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46918
46928
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_diagonalType", DiagonalType.None);
|
|
46919
46929
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_formula", "");
|
|
46920
46930
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_oldValue", "");
|
|
46921
|
-
//this._dataSource = new DataSource();
|
|
46922
46931
|
if (objectValues !== "") {
|
|
46923
46932
|
var valuesObj = eval('(' + objectValues + ')');
|
|
46924
46933
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -46955,29 +46964,8 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46955
46964
|
if (valuesObj["editorProperty"] === EditorProperty.DateTime) {
|
|
46956
46965
|
this._dateTimeProperty = new DateTimeProperty(valuesObj["dateTimeProperty"]);
|
|
46957
46966
|
}
|
|
46958
|
-
// if (valuesObj["editorProperty"] === EditorProperty.Formula) {
|
|
46959
|
-
// this._formula = new Formula(valuesObj["formula"]);
|
|
46960
|
-
// }
|
|
46961
46967
|
}
|
|
46962
46968
|
}
|
|
46963
|
-
// get id(): string {
|
|
46964
|
-
// return this._id;
|
|
46965
|
-
// }
|
|
46966
|
-
// set id(value: string) {
|
|
46967
|
-
// this._id = value;
|
|
46968
|
-
// }
|
|
46969
|
-
// get lightCellBorders(): boolean {
|
|
46970
|
-
// return this._lightCellBorders;
|
|
46971
|
-
// }
|
|
46972
|
-
// set lightCellBorders(value: boolean) {
|
|
46973
|
-
// this._lightCellBorders = value;
|
|
46974
|
-
// }
|
|
46975
|
-
// get title(): string {
|
|
46976
|
-
// return this._title;
|
|
46977
|
-
// }
|
|
46978
|
-
// set title(value: string) {
|
|
46979
|
-
// this._title = value;
|
|
46980
|
-
// }
|
|
46981
46969
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(CellProperty, [{
|
|
46982
46970
|
key: "customProperties",
|
|
46983
46971
|
get: function get() {
|
|
@@ -46986,12 +46974,6 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
46986
46974
|
set: function set(value) {
|
|
46987
46975
|
this._customProperties = value;
|
|
46988
46976
|
}
|
|
46989
|
-
// get dataSource(): DataSource {
|
|
46990
|
-
// return this._dataSource;
|
|
46991
|
-
// }
|
|
46992
|
-
// set dataSource(value: DataSource) {
|
|
46993
|
-
// this._dataSource = value;
|
|
46994
|
-
// }
|
|
46995
46977
|
}, {
|
|
46996
46978
|
key: "align",
|
|
46997
46979
|
get: function get() {
|
|
@@ -50417,58 +50399,60 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
50417
50399
|
/* harmony export */ D: function() { return /* binding */ CellNode; },
|
|
50418
50400
|
/* harmony export */ v: function() { return /* binding */ CrossLineType; }
|
|
50419
50401
|
/* harmony export */ });
|
|
50420
|
-
/* harmony import */ var
|
|
50421
|
-
/* harmony import */ var
|
|
50422
|
-
/* harmony import */ var
|
|
50423
|
-
/* harmony import */ var
|
|
50424
|
-
/* harmony import */ var
|
|
50425
|
-
/* harmony import */ var
|
|
50426
|
-
/* harmony import */ var
|
|
50427
|
-
/* harmony import */ var
|
|
50428
|
-
/* harmony import */ var
|
|
50429
|
-
/* harmony import */ var
|
|
50430
|
-
/* harmony import */ var
|
|
50431
|
-
/* harmony import */ var
|
|
50432
|
-
/* harmony import */ var
|
|
50433
|
-
/* harmony import */ var
|
|
50434
|
-
/* harmony import */ var
|
|
50435
|
-
/* harmony import */ var
|
|
50436
|
-
/* harmony import */ var
|
|
50437
|
-
/* harmony import */ var
|
|
50438
|
-
/* harmony import */ var
|
|
50439
|
-
/* harmony import */ var
|
|
50440
|
-
/* harmony import */ var
|
|
50441
|
-
/* harmony import */ var
|
|
50442
|
-
/* harmony import */ var
|
|
50443
|
-
/* harmony import */ var
|
|
50444
|
-
/* harmony import */ var
|
|
50445
|
-
/* harmony import */ var
|
|
50446
|
-
/* harmony import */ var
|
|
50447
|
-
/* harmony import */ var
|
|
50448
|
-
/* harmony import */ var
|
|
50449
|
-
/* harmony import */ var
|
|
50450
|
-
/* harmony import */ var
|
|
50451
|
-
/* harmony import */ var
|
|
50452
|
-
/* harmony import */ var
|
|
50453
|
-
/* harmony import */ var
|
|
50454
|
-
/* harmony import */ var
|
|
50455
|
-
/* harmony import */ var
|
|
50456
|
-
/* harmony import */ var
|
|
50457
|
-
/* harmony import */ var
|
|
50458
|
-
/* harmony import */ var
|
|
50459
|
-
/* harmony import */ var
|
|
50460
|
-
/* harmony import */ var
|
|
50461
|
-
/* harmony import */ var
|
|
50462
|
-
/* harmony import */ var
|
|
50463
|
-
/* harmony import */ var
|
|
50464
|
-
/* harmony import */ var
|
|
50465
|
-
/* harmony import */ var
|
|
50466
|
-
/* harmony import */ var
|
|
50467
|
-
/* harmony import */ var
|
|
50468
|
-
/* harmony import */ var
|
|
50469
|
-
/* harmony import */ var
|
|
50470
|
-
/* harmony import */ var
|
|
50471
|
-
/* harmony import */ var
|
|
50402
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63442);
|
|
50403
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8495);
|
|
50404
|
+
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94310);
|
|
50405
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(40735);
|
|
50406
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27222);
|
|
50407
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70280);
|
|
50408
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66298);
|
|
50409
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75808);
|
|
50410
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11651);
|
|
50411
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(19593);
|
|
50412
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(78255);
|
|
50413
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57658);
|
|
50414
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
50415
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9653);
|
|
50416
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
50417
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(41539);
|
|
50418
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
50419
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(39714);
|
|
50420
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
50421
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47941);
|
|
50422
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
50423
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(38862);
|
|
50424
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
50425
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(40561);
|
|
50426
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
50427
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92222);
|
|
50428
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
50429
|
+
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(47042);
|
|
50430
|
+
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
50431
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(54747);
|
|
50432
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
50433
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(68309);
|
|
50434
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
50435
|
+
/* harmony import */ var _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(78040);
|
|
50436
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(2613);
|
|
50437
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(74089);
|
|
50438
|
+
/* harmony import */ var _plugins_type__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(41542);
|
|
50439
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(32629);
|
|
50440
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(94639);
|
|
50441
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(42921);
|
|
50442
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(79546);
|
|
50443
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(4938);
|
|
50444
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(62358);
|
|
50445
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(91105);
|
|
50446
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(92501);
|
|
50447
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(57727);
|
|
50448
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(67945);
|
|
50449
|
+
/* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(67800);
|
|
50450
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(24701);
|
|
50451
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(5010);
|
|
50452
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(65043);
|
|
50453
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(27198);
|
|
50454
|
+
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(12659);
|
|
50455
|
+
|
|
50472
50456
|
|
|
50473
50457
|
|
|
50474
50458
|
|
|
@@ -50534,21 +50518,21 @@ var CrossLineType;
|
|
|
50534
50518
|
// vabottom,
|
|
50535
50519
|
// }
|
|
50536
50520
|
var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
50537
|
-
(0,
|
|
50538
|
-
var _super = (0,
|
|
50521
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(CellNode, _RectNode);
|
|
50522
|
+
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(CellNode);
|
|
50539
50523
|
function CellNode(hoEditorFactoryID, rootNodes, pNode, row, copyCell, r, c, rowSpan, colSpan, cellProperty) {
|
|
50540
50524
|
var _this;
|
|
50541
|
-
(0,
|
|
50542
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode,
|
|
50543
|
-
(0,
|
|
50544
|
-
(0,
|
|
50545
|
-
(0,
|
|
50546
|
-
(0,
|
|
50547
|
-
(0,
|
|
50548
|
-
(0,
|
|
50549
|
-
(0,
|
|
50525
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, CellNode);
|
|
50526
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, _BaseNode__WEBPACK_IMPORTED_MODULE_30__/* .NodeType */ .Jq.ntCell);
|
|
50527
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_borderVisible", void 0);
|
|
50528
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_crossLineType", void 0);
|
|
50529
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_rowSpan", void 0);
|
|
50530
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_colSpan", void 0);
|
|
50531
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_table", void 0);
|
|
50532
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_row", void 0);
|
|
50533
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_drawCell", void 0);
|
|
50550
50534
|
// private _valign: VAlign;
|
|
50551
|
-
(0,
|
|
50535
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_this), "_cellProperty", void 0);
|
|
50552
50536
|
_this._hoEditorFactoryID = hoEditorFactoryID;
|
|
50553
50537
|
_this._borderVisible = [true, true, true, true];
|
|
50554
50538
|
_this._crossLineType = CrossLineType.ctNone;
|
|
@@ -50567,7 +50551,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50567
50551
|
* @param dTop
|
|
50568
50552
|
* @param dline
|
|
50569
50553
|
*/
|
|
50570
|
-
(0,
|
|
50554
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(CellNode, [{
|
|
50571
50555
|
key: "drawCell",
|
|
50572
50556
|
get:
|
|
50573
50557
|
//单元格属性
|
|
@@ -50612,7 +50596,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50612
50596
|
var bNeedUpdateHeight = true;
|
|
50613
50597
|
var aHeight = 0;
|
|
50614
50598
|
var _this$_table$getCellI = this._table.getCellInfos(this),
|
|
50615
|
-
_this$_table$getCellI2 = (0,
|
|
50599
|
+
_this$_table$getCellI2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this$_table$getCellI, 2),
|
|
50616
50600
|
r = _this$_table$getCellI2[0],
|
|
50617
50601
|
c = _this$_table$getCellI2[1];
|
|
50618
50602
|
if (r >= 0) {
|
|
@@ -50645,7 +50629,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50645
50629
|
this._colSpan = colSpan;
|
|
50646
50630
|
var aWidth = 0;
|
|
50647
50631
|
var _this$_table$getCellI3 = this._table.getCellInfos(this),
|
|
50648
|
-
_this$_table$getCellI4 = (0,
|
|
50632
|
+
_this$_table$getCellI4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this$_table$getCellI3, 2),
|
|
50649
50633
|
r = _this$_table$getCellI4[0],
|
|
50650
50634
|
c = _this$_table$getCellI4[1];
|
|
50651
50635
|
var bNeedUpdateWidth = true;
|
|
@@ -50716,7 +50700,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50716
50700
|
}, {
|
|
50717
50701
|
key: "initBlankDoc",
|
|
50718
50702
|
value: function initBlankDoc() {
|
|
50719
|
-
var aparagraph = new
|
|
50703
|
+
var aparagraph = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(this._hoEditorFactoryID, this.rootNodes, this, 0);
|
|
50720
50704
|
aparagraph.node2DrawNode();
|
|
50721
50705
|
this._childNodes.push(aparagraph);
|
|
50722
50706
|
this._drawCell.drawLines.push(this._childNodes[0].drawlines[0]);
|
|
@@ -50726,7 +50710,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50726
50710
|
key: "placeDNodeAfterDTop",
|
|
50727
50711
|
value: function placeDNodeAfterDTop(droots, dTop) {
|
|
50728
50712
|
var paragraphNode = this.childNodes[0];
|
|
50729
|
-
var hoEditorFactory =
|
|
50713
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50730
50714
|
// const aline = paragraphNode.drawlines[0];
|
|
50731
50715
|
hoEditorFactory.drawTree.drawDocInsert(paragraphNode, 0, paragraphNode, -1, hoEditorFactory.docTree.getNodeLastPath(this));
|
|
50732
50716
|
if (this._drawCell.drawLines.length > 0) {
|
|
@@ -50764,7 +50748,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50764
50748
|
value: function updateWidth(awidth) {
|
|
50765
50749
|
this.drawCell.dWidth = awidth;
|
|
50766
50750
|
// (this.childNodes[0] as ParagraphNode).drawlines[0].dWidth = awidth;
|
|
50767
|
-
|
|
50751
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.clearDrawContainer(this.drawCell.drawLines);
|
|
50768
50752
|
this._drawCell.drawLines.length = 0;
|
|
50769
50753
|
this.childNodes[0].node2DrawNode();
|
|
50770
50754
|
this.drawCell.drawLines.push(this.childNodes[0].drawlines[0]);
|
|
@@ -50780,12 +50764,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50780
50764
|
}, {
|
|
50781
50765
|
key: "redrawCell",
|
|
50782
50766
|
value: function redrawCell(repaintInmediate, action) {
|
|
50783
|
-
var hoEditorFactory =
|
|
50767
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50784
50768
|
if (repaintInmediate) {
|
|
50785
|
-
var dcChangeEvent = new
|
|
50786
|
-
if (action ===
|
|
50769
|
+
var dcChangeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]), hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]));
|
|
50770
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_25__/* .DocAction */ .gk.daDelete || action === _DocTree__WEBPACK_IMPORTED_MODULE_25__/* .DocAction */ .gk.daModifyStyle) {
|
|
50787
50771
|
dcChangeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
50788
|
-
if (action ===
|
|
50772
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_25__/* .DocAction */ .gk.daDelete) {
|
|
50789
50773
|
dcChangeEvent.oldDrawTreeLines = this._table.drawTable.getCellsDrawTreeLines([this]);
|
|
50790
50774
|
} else {
|
|
50791
50775
|
dcChangeEvent.oldDrawLines = this._table.drawTable.getCellsDrawLines([this]);
|
|
@@ -50836,7 +50820,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50836
50820
|
aHeight += this._table.rowInfos[_i2].rowHeight;
|
|
50837
50821
|
}
|
|
50838
50822
|
aHeight += this._rowSpan;
|
|
50839
|
-
this._drawCell = new
|
|
50823
|
+
this._drawCell = new _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_21__/* .DrawCell */ .y(this._hoEditorFactoryID, this, 0, aWidth, aHeight);
|
|
50840
50824
|
this._drawNodes.push(this._drawCell);
|
|
50841
50825
|
// this._drawCell.drawLines.push(
|
|
50842
50826
|
// (this._childNodes[0] as ParagraphNode).drawlines[0]
|
|
@@ -50854,7 +50838,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50854
50838
|
}, {
|
|
50855
50839
|
key: "range",
|
|
50856
50840
|
value: function range() {
|
|
50857
|
-
var hoEditorFactory =
|
|
50841
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50858
50842
|
var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
|
|
50859
50843
|
var epath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
50860
50844
|
return {
|
|
@@ -50872,9 +50856,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50872
50856
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
50873
50857
|
var node = this.childNodes[i];
|
|
50874
50858
|
var nodeJson = void 0;
|
|
50875
|
-
if (node instanceof
|
|
50859
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_37__/* .TableNode */ .Fh || node instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_38__/* .TextInputFieldNode */ .re) {
|
|
50876
50860
|
nodeJson = node.node2Json(undefined, isCopy, type, clearSign);
|
|
50877
|
-
} else if (node instanceof
|
|
50861
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N) {
|
|
50878
50862
|
if (clearSign) {
|
|
50879
50863
|
if (node.isTemplate) {
|
|
50880
50864
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
@@ -50883,11 +50867,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50883
50867
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
50884
50868
|
}
|
|
50885
50869
|
} else {
|
|
50886
|
-
if (node instanceof
|
|
50870
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_39__/* .TextNode */ .R) {
|
|
50887
50871
|
if (node.text !== "") {
|
|
50888
50872
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
50889
50873
|
}
|
|
50890
|
-
} else if (node instanceof
|
|
50874
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_32__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_40__/* .QrcodeNode */ .d) {
|
|
50891
50875
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
50892
50876
|
} else {
|
|
50893
50877
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
@@ -50958,15 +50942,13 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50958
50942
|
if (cellPropertyJson["gridLineDisplay"] === "true,true,true,true") {
|
|
50959
50943
|
delete cellPropertyJson["gridLineDisplay"];
|
|
50960
50944
|
}
|
|
50945
|
+
} else if (keysName[k] === "backColor") {
|
|
50946
|
+
if (cellPropertyJson["backColor"].toString().toLowerCase() === defaultCellPropJson["backColor"].toString().toLowerCase()) {
|
|
50947
|
+
delete cellPropertyJson["backColor"];
|
|
50948
|
+
}
|
|
50961
50949
|
} else {
|
|
50962
|
-
if (keysName[k] ===
|
|
50963
|
-
|
|
50964
|
-
delete cellPropertyJson["backColor"];
|
|
50965
|
-
}
|
|
50966
|
-
} else {
|
|
50967
|
-
if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
|
|
50968
|
-
delete cellPropertyJson[keysName[k]];
|
|
50969
|
-
}
|
|
50950
|
+
if (cellPropertyJson[keysName[k]] === defaultCellPropJson[keysName[k]]) {
|
|
50951
|
+
delete cellPropertyJson[keysName[k]];
|
|
50970
50952
|
}
|
|
50971
50953
|
}
|
|
50972
50954
|
}
|
|
@@ -50988,7 +50970,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50988
50970
|
}
|
|
50989
50971
|
var cellText = this.getCellText(clearSign);
|
|
50990
50972
|
var retObj = {
|
|
50991
|
-
nodeType:
|
|
50973
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_30__/* .NodeType */ .Jq[this.nodeType],
|
|
50992
50974
|
//borderVisible: this.borderVisible.toString(),
|
|
50993
50975
|
//crossLineType: CrossLineType[this.crossLineType],
|
|
50994
50976
|
//rowSpan: this.rowSpan,
|
|
@@ -50997,7 +50979,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50997
50979
|
rowNo: rowNo,
|
|
50998
50980
|
colNo: colNo,
|
|
50999
50981
|
//cellProperty: cellPropertyJson,
|
|
51000
|
-
isModified: false,
|
|
50982
|
+
//isModified: false, // 未发现有实际用途 暂时隐藏
|
|
51001
50983
|
text: cellText
|
|
51002
50984
|
};
|
|
51003
50985
|
if (this.borderVisible.toString() !== "true,true,true,true") {
|
|
@@ -51047,22 +51029,22 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51047
51029
|
if (!bNormalized) {
|
|
51048
51030
|
newRange = arange.normalize();
|
|
51049
51031
|
}
|
|
51050
|
-
var hoEditorFactory =
|
|
51032
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
51051
51033
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]);
|
|
51052
51034
|
var lastPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]);
|
|
51053
|
-
if (
|
|
51054
|
-
ret =
|
|
51035
|
+
if (_NodePosition__WEBPACK_IMPORTED_MODULE_27__/* .NodePosition */ .F.pathCanCompare(newRange.startPath, startPath)) {
|
|
51036
|
+
ret = _NodePosition__WEBPACK_IMPORTED_MODULE_27__/* .NodePosition */ .F.treePathCompare(startPath, newRange.startPath) >= 0 && _NodePosition__WEBPACK_IMPORTED_MODULE_27__/* .NodePosition */ .F.treePathCompare(lastPath, arange.endPath) <= 0;
|
|
51055
51037
|
}
|
|
51056
51038
|
return ret;
|
|
51057
51039
|
}
|
|
51058
51040
|
}, {
|
|
51059
51041
|
key: "getNodesForUpdate",
|
|
51060
51042
|
value: function getNodesForUpdate() {
|
|
51061
|
-
var hoEditorFactory =
|
|
51043
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
51062
51044
|
var ret = new Array();
|
|
51063
51045
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
51064
|
-
if (this._childNodes[i] instanceof
|
|
51065
|
-
var domRange = new
|
|
51046
|
+
if (this._childNodes[i] instanceof _TableNode__WEBPACK_IMPORTED_MODULE_37__/* .TableNode */ .Fh) {
|
|
51047
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_26__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(this._childNodes[i]), hoEditorFactory.docTree.getNodeLastPath(this._childNodes[i]));
|
|
51066
51048
|
ret = ret.concat(this._childNodes[i].getSelectNodesForUpdate(domRange, true));
|
|
51067
51049
|
} else ret.push(this._childNodes[i]);
|
|
51068
51050
|
}
|
|
@@ -51071,14 +51053,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51071
51053
|
}, {
|
|
51072
51054
|
key: "getSelectNodes",
|
|
51073
51055
|
value: function getSelectNodes(bSplitTextInputNode) {
|
|
51074
|
-
var hoEditorFactory =
|
|
51056
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
51075
51057
|
var ret = new Array();
|
|
51076
51058
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
51077
51059
|
var aNode = this._childNodes[i];
|
|
51078
|
-
if (aNode instanceof
|
|
51079
|
-
var domRange = new
|
|
51060
|
+
if (aNode instanceof _TableNode__WEBPACK_IMPORTED_MODULE_37__/* .TableNode */ .Fh) {
|
|
51061
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_26__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(aNode), hoEditorFactory.docTree.getNodeLastPath(aNode));
|
|
51080
51062
|
ret = ret.concat(aNode.getSelectNodes(domRange, true, bSplitTextInputNode));
|
|
51081
|
-
} else if (bSplitTextInputNode && aNode instanceof
|
|
51063
|
+
} else if (bSplitTextInputNode && aNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_38__/* .TextInputFieldNode */ .re) {
|
|
51082
51064
|
ret = ret.concat(aNode.getAllChildNodes());
|
|
51083
51065
|
} else ret.push(this._childNodes[i]);
|
|
51084
51066
|
}
|
|
@@ -51101,17 +51083,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51101
51083
|
var loopChildNodes = function loopChildNodes(node) {
|
|
51102
51084
|
var nodes = node.childNodes.slice(1);
|
|
51103
51085
|
nodes.forEach(function (childNode) {
|
|
51104
|
-
if (childNode instanceof
|
|
51086
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_39__/* .TextNode */ .R) {
|
|
51105
51087
|
cellText += childNode.text;
|
|
51106
|
-
} else if (childNode instanceof
|
|
51107
|
-
if (childNode instanceof
|
|
51088
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_31__/* .ControlNode */ .w) {
|
|
51089
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_32__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
51108
51090
|
cellText += "";
|
|
51109
51091
|
} else {
|
|
51110
51092
|
cellText += childNode.text;
|
|
51111
51093
|
}
|
|
51112
|
-
} else if (childNode instanceof
|
|
51094
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_29__/* .BaseCombineNode */ .V) {
|
|
51113
51095
|
loopChildNodes(childNode);
|
|
51114
|
-
} else if (childNode instanceof
|
|
51096
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C) {
|
|
51115
51097
|
cellText += '\n';
|
|
51116
51098
|
}
|
|
51117
51099
|
});
|
|
@@ -51121,36 +51103,24 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51121
51103
|
}
|
|
51122
51104
|
}, {
|
|
51123
51105
|
key: "setCellText",
|
|
51124
|
-
value: function setCellText(value, isPaste) {
|
|
51106
|
+
value: function setCellText(value, isPaste, isUpdateNextDays) {
|
|
51125
51107
|
var colIndex = this.row.indexOf(this);
|
|
51126
|
-
var hoEditorFactory =
|
|
51108
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
51127
51109
|
var colProperty = this.table.colInfos[colIndex].colProperty;
|
|
51128
|
-
if (colProperty.editorProperty ===
|
|
51129
|
-
if (!(0,
|
|
51130
|
-
|
|
51110
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .EditorProperty */ .YS.Number) {
|
|
51111
|
+
if (!(0,_plugins_type__WEBPACK_IMPORTED_MODULE_24__/* .isNumber */ .hj)(value)) {
|
|
51112
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"] */ .Z.warn("输入值非数值类型,请重输!");
|
|
51131
51113
|
return;
|
|
51132
51114
|
}
|
|
51133
51115
|
if (Number(value) > colProperty.numberProperty.maxNumVal) {
|
|
51134
|
-
|
|
51116
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"] */ .Z.warn("输入值超出最大允许值,请重输!");
|
|
51135
51117
|
return;
|
|
51136
51118
|
}
|
|
51137
51119
|
if (Number(value) < colProperty.numberProperty.minNumVal) {
|
|
51138
|
-
|
|
51120
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"] */ .Z.warn("输入值低于最小允许值,请重输!");
|
|
51139
51121
|
return;
|
|
51140
51122
|
}
|
|
51141
51123
|
}
|
|
51142
|
-
// if (colProperty.editorProperty === EditorProperty.DateTime) {
|
|
51143
|
-
// let time = value.replace(/['年'|'月'|'-']/g, "/").replace(/['时'|'分']/g, ":").replace(/['日'|'秒']/g, " ");
|
|
51144
|
-
// if (!time.includes('/') && !time.includes('-') && !time.includes('年')) {
|
|
51145
|
-
// time = '2021/07/07 ' + time;
|
|
51146
|
-
// }
|
|
51147
|
-
// if (isNaN(Date.parse(time))) {//非日期格式的字符串
|
|
51148
|
-
// message.warn("输入值非日期时间格式,请重输!", "提示");
|
|
51149
|
-
// return;
|
|
51150
|
-
// }
|
|
51151
|
-
// }
|
|
51152
|
-
//const startPath = `${this.getNodePath()}/0`;
|
|
51153
|
-
//const startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
51154
51124
|
var endPath = "";
|
|
51155
51125
|
var startPath = "";
|
|
51156
51126
|
if (isPaste) {
|
|
@@ -51159,7 +51129,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51159
51129
|
} else {
|
|
51160
51130
|
if (this.table.tableProperty.isAutoChangeLine) {
|
|
51161
51131
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
51162
|
-
if (curDomRange.npEnd.node instanceof
|
|
51132
|
+
if (curDomRange.npEnd.node instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C) {
|
|
51163
51133
|
startPath = curDomRange.startPath;
|
|
51164
51134
|
endPath = startPath;
|
|
51165
51135
|
} else {
|
|
@@ -51171,9 +51141,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51171
51141
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
51172
51142
|
}
|
|
51173
51143
|
}
|
|
51174
|
-
var aRange = new
|
|
51144
|
+
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_26__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
51175
51145
|
hoEditorFactory.docController.deleteRange(aRange, true);
|
|
51176
51146
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, value);
|
|
51147
|
+
if (!isUpdateNextDays && this.cellProperty.dateTimeProperty && this.cellProperty.dateTimeProperty.isUpdateNextDays) {
|
|
51148
|
+
var colNo = this._row.indexOf(this);
|
|
51149
|
+
var rowNo = this.table.rows.indexOf(this._row);
|
|
51150
|
+
hoEditorFactory.vueController.updateCellNextDays(rowNo, colNo, this.table.tableProperty.id, value);
|
|
51151
|
+
}
|
|
51177
51152
|
}
|
|
51178
51153
|
}, {
|
|
51179
51154
|
key: "toString",
|
|
@@ -51194,14 +51169,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51194
51169
|
if (colProperty && colProperty.downListProperty) {
|
|
51195
51170
|
var isAllowDel = colProperty.downListProperty.isAllowDel;
|
|
51196
51171
|
if (isAllowDel !== undefined && !isAllowDel) {
|
|
51197
|
-
|
|
51172
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"] */ .Z.warn("不允许删除!");
|
|
51198
51173
|
return false;
|
|
51199
51174
|
}
|
|
51200
51175
|
}
|
|
51201
51176
|
if (cellProperty && cellProperty.downListProperty) {
|
|
51202
51177
|
var _isAllowDel = cellProperty.downListProperty.isAllowDel;
|
|
51203
51178
|
if (_isAllowDel !== undefined && !_isAllowDel) {
|
|
51204
|
-
|
|
51179
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_41__/* ["default"] */ .Z.warn("不允许删除!");
|
|
51205
51180
|
return false;
|
|
51206
51181
|
}
|
|
51207
51182
|
}
|
|
@@ -51210,30 +51185,30 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51210
51185
|
}, {
|
|
51211
51186
|
key: "needPaintLineGrid",
|
|
51212
51187
|
value: function needPaintLineGrid() {
|
|
51213
|
-
var hoEditorFactory =
|
|
51188
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
51214
51189
|
var _this$table$getCellIn = this.table.getCellInfos(this),
|
|
51215
|
-
_this$table$getCellIn2 = (0,
|
|
51190
|
+
_this$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this$table$getCellIn, 2),
|
|
51216
51191
|
r = _this$table$getCellIn2[0],
|
|
51217
51192
|
c = _this$table$getCellIn2[1];
|
|
51218
|
-
return (hoEditorFactory.docTree.docProperty.type ===
|
|
51193
|
+
return (hoEditorFactory.docTree.docProperty.type === _DocTree__WEBPACK_IMPORTED_MODULE_25__/* .EmrType */ .Fr.etForm || this.table.tableProperty.isAutoChangeLine) && !this.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && this.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .VAlign */ .TR.vacenter;
|
|
51219
51194
|
}
|
|
51220
51195
|
}], [{
|
|
51221
51196
|
key: "json2Node",
|
|
51222
51197
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows,
|
|
51223
51198
|
//defaultCellProperty: any,
|
|
51224
51199
|
isPaste, isClearSign) {
|
|
51225
|
-
var hoEditorFactory =
|
|
51200
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_23__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
51226
51201
|
var rowNo = parseInt(json.rowNo);
|
|
51227
51202
|
var colNo = parseInt(json.colNo);
|
|
51228
51203
|
aRow = rowsMap.get(rowNo);
|
|
51229
|
-
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new
|
|
51204
|
+
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .CellProperty */ .$W(""));
|
|
51230
51205
|
var cellProperty = json.cellProperty;
|
|
51231
51206
|
// if (cellProperty === "") {
|
|
51232
51207
|
// cellProperty = JSON.parse("{}");
|
|
51233
51208
|
// }
|
|
51234
51209
|
var assignvalue = function assignvalue(target, source) {
|
|
51235
51210
|
Object.keys(source).forEach(function (value) {
|
|
51236
|
-
if ((0,
|
|
51211
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
51237
51212
|
if (value === "customProperties") {
|
|
51238
51213
|
target[value] = Array.isArray(source[value].customProperty) ? source[value].customProperty : Array(source[value].customProperty);
|
|
51239
51214
|
} else {
|
|
@@ -51259,9 +51234,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51259
51234
|
target[value] = Number(source[value]);
|
|
51260
51235
|
} else {
|
|
51261
51236
|
if (value === "dateTimeProperty") {
|
|
51262
|
-
cellNode.cellProperty.dateTimeProperty = new
|
|
51237
|
+
cellNode.cellProperty.dateTimeProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .DateTimeProperty */ .Ks(source[value]);
|
|
51263
51238
|
} else if (value === "downListProperty") {
|
|
51264
|
-
cellNode.cellProperty.downListProperty = new
|
|
51239
|
+
cellNode.cellProperty.downListProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .ColDownListProperty */ .cW(source[value]);
|
|
51265
51240
|
} else {
|
|
51266
51241
|
target[value] = source[value];
|
|
51267
51242
|
}
|
|
@@ -51276,13 +51251,6 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51276
51251
|
if (!aRow) {}
|
|
51277
51252
|
aRow.splice(colNo, 1);
|
|
51278
51253
|
aRow.splice(colNo, 0, cellNode);
|
|
51279
|
-
//aRow.push(cellNode);
|
|
51280
|
-
// const colSpan = json.colSpan;
|
|
51281
|
-
// if (colSpan > 1) {
|
|
51282
|
-
// for (let z = 0; z < colSpan - 1; z++) {
|
|
51283
|
-
// aRow.push(undefined);
|
|
51284
|
-
// }
|
|
51285
|
-
// }
|
|
51286
51254
|
cellNode.initBlankDoc();
|
|
51287
51255
|
cellNode.rowSpan = json.rowSpan === undefined ? 1 : Number(json.rowSpan);
|
|
51288
51256
|
cellNode.colSpan = json.colSpan === undefined ? 1 : Number(json.colSpan);
|
|
@@ -51298,7 +51266,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51298
51266
|
for (var j = 1; j < item.length; j++) {
|
|
51299
51267
|
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
51300
51268
|
if (convertNode) {
|
|
51301
|
-
if (convertNode instanceof
|
|
51269
|
+
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_39__/* .TextNode */ .R) {
|
|
51302
51270
|
if (convertNode.text !== "" && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '') {
|
|
51303
51271
|
cellNode.addChild(convertNode);
|
|
51304
51272
|
}
|
|
@@ -51307,7 +51275,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51307
51275
|
}
|
|
51308
51276
|
} else {
|
|
51309
51277
|
if (isClearSign) {
|
|
51310
|
-
if (convertNode instanceof
|
|
51278
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N) {
|
|
51311
51279
|
if (convertNode.isTemplate && !(convertNode.number == 0 && convertNode.type == 0 && convertNode.name == "")) {
|
|
51312
51280
|
cellNode.addChild(convertNode);
|
|
51313
51281
|
}
|
|
@@ -51315,7 +51283,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51315
51283
|
cellNode.addChild(convertNode);
|
|
51316
51284
|
}
|
|
51317
51285
|
} else {
|
|
51318
|
-
if (convertNode instanceof
|
|
51286
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_36__/* .SignNode */ .N) {
|
|
51319
51287
|
if (!(convertNode.number == 0 && convertNode.type == 0 && convertNode.name == "")) {
|
|
51320
51288
|
cellNode.addChild(convertNode);
|
|
51321
51289
|
}
|
|
@@ -51325,27 +51293,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51325
51293
|
}
|
|
51326
51294
|
}
|
|
51327
51295
|
}
|
|
51328
|
-
if (convertNode instanceof
|
|
51296
|
+
if (convertNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_33__/* .MarkNode */ .j) {
|
|
51329
51297
|
hoEditorFactory.structureConvert._markNodes.push(convertNode);
|
|
51330
51298
|
}
|
|
51331
51299
|
}
|
|
51332
51300
|
} else {
|
|
51333
51301
|
cellNode.childNodes[0].paraNo = Number(item.styleIndex);
|
|
51334
51302
|
cellNode.childNodes[0].styleIndex = Number(item.textStyleNo ? item.textStyleNo : 0);
|
|
51335
|
-
// const convertNode = hoEditorFactory.structureConvert.convertNode(
|
|
51336
|
-
// item,
|
|
51337
|
-
// rootNodes,
|
|
51338
|
-
// cellNode
|
|
51339
|
-
// );
|
|
51340
|
-
// if (convertNode) {
|
|
51341
|
-
// cellNode!.addChild(convertNode);
|
|
51342
|
-
// }
|
|
51343
|
-
// if (convertNode instanceof MarkNode) {
|
|
51344
|
-
// hoEditorFactory.structureConvert._markNodes.push(convertNode);
|
|
51345
|
-
// }
|
|
51346
51303
|
}
|
|
51347
51304
|
};
|
|
51348
|
-
|
|
51349
51305
|
if (isPaste) {
|
|
51350
51306
|
if (json.childNodes.item) {
|
|
51351
51307
|
getChildNodes(json.childNodes.item);
|
|
@@ -51356,8 +51312,8 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51356
51312
|
}
|
|
51357
51313
|
} else {
|
|
51358
51314
|
var isModified = json.isModified;
|
|
51359
|
-
var text = json.text;
|
|
51360
51315
|
if (isModified) {
|
|
51316
|
+
var text = json.text;
|
|
51361
51317
|
var paraNode;
|
|
51362
51318
|
if (Array.isArray(json.childNodes.node)) {
|
|
51363
51319
|
paraNode = json.childNodes.node[0];
|
|
@@ -51368,14 +51324,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51368
51324
|
cellNode.childNodes[0].styleIndex = Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0);
|
|
51369
51325
|
if (text !== "") {
|
|
51370
51326
|
var textArr = text.split("\n");
|
|
51371
|
-
var firstTextNode = new
|
|
51327
|
+
var firstTextNode = new _TextNode__WEBPACK_IMPORTED_MODULE_39__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_30__/* .NodeType */ .Jq.ntText, textArr[0], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
51372
51328
|
cellNode.addChild(firstTextNode);
|
|
51373
51329
|
if (textArr.length > 1) {
|
|
51374
51330
|
for (var i = 1; i < textArr.length; i++) {
|
|
51375
|
-
var paragraNode = new
|
|
51331
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_34__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, cellNode, Number(paraNode.styleIndex));
|
|
51376
51332
|
cellNode.addChild(paragraNode);
|
|
51377
51333
|
if (textArr[i] !== "") {
|
|
51378
|
-
var textNode = new
|
|
51334
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_39__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_30__/* .NodeType */ .Jq.ntText, textArr[i], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
51379
51335
|
cellNode.addChild(textNode);
|
|
51380
51336
|
}
|
|
51381
51337
|
}
|
|
@@ -51387,11 +51343,28 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
51387
51343
|
}
|
|
51388
51344
|
}
|
|
51389
51345
|
}
|
|
51346
|
+
if (cellNode.cellProperty.dateTimeProperty && cellNode.cellProperty.dateTimeProperty.isUpdateNextDays) {
|
|
51347
|
+
var allTableList = hoEditorFactory.updateNextDaysRecordList.get("0") || [];
|
|
51348
|
+
var currentCell = {
|
|
51349
|
+
tableId: cellNode.table.tableProperty.id,
|
|
51350
|
+
rowNo: rowNo,
|
|
51351
|
+
colNo: colNo,
|
|
51352
|
+
text: cellNode.getCellText(),
|
|
51353
|
+
daysInterval: String(cellNode.cellProperty.dateTimeProperty.daysInterval)
|
|
51354
|
+
};
|
|
51355
|
+
allTableList.push(currentCell);
|
|
51356
|
+
if (currentCell.text) {
|
|
51357
|
+
hoEditorFactory.updateNextDaysRecordList.set("last", (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, currentCell));
|
|
51358
|
+
} else {
|
|
51359
|
+
hoEditorFactory.updateNextDaysRecordList.set("update", true);
|
|
51360
|
+
}
|
|
51361
|
+
hoEditorFactory.updateNextDaysRecordList.set("0", allTableList);
|
|
51362
|
+
}
|
|
51390
51363
|
return aRow;
|
|
51391
51364
|
}
|
|
51392
51365
|
}]);
|
|
51393
51366
|
return CellNode;
|
|
51394
|
-
}(
|
|
51367
|
+
}(_RectNode__WEBPACK_IMPORTED_MODULE_35__/* .RectNode */ .z);
|
|
51395
51368
|
|
|
51396
51369
|
/***/ }),
|
|
51397
51370
|
|
|
@@ -62539,6 +62512,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
62539
62512
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_drawTable", void 0);
|
|
62540
62513
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_paragraphNode", void 0);
|
|
62541
62514
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_tableProperty", void 0);
|
|
62515
|
+
//表格属性
|
|
62516
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "id", '');
|
|
62542
62517
|
_this._rows = new Array();
|
|
62543
62518
|
_this._rowCount = rowCount;
|
|
62544
62519
|
_this._colCount = colCount;
|
|
@@ -62548,6 +62523,10 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
62548
62523
|
_this._rowInfos = new Array();
|
|
62549
62524
|
_this._colInfos = new Array();
|
|
62550
62525
|
// this._paragraphNode = paragraphNode;
|
|
62526
|
+
if (!tableProperty.id) {
|
|
62527
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_41__/* .HOEditorFactorys */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
62528
|
+
tableProperty.id = hoEditorFactory.gernerateCode.generateID("TB");
|
|
62529
|
+
}
|
|
62551
62530
|
_this._tableProperty = tableProperty;
|
|
62552
62531
|
var colWidth = _this.calcColWidth();
|
|
62553
62532
|
for (var i = 0; i < _this._colCount; i++) {
|
|
@@ -62583,9 +62562,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
62583
62562
|
*/
|
|
62584
62563
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TableNode, [{
|
|
62585
62564
|
key: "hoEditorFactoryID",
|
|
62586
|
-
get:
|
|
62587
|
-
//表格属性
|
|
62588
|
-
function get() {
|
|
62565
|
+
get: function get() {
|
|
62589
62566
|
return this._hoEditorFactoryID;
|
|
62590
62567
|
}
|
|
62591
62568
|
}, {
|
|
@@ -63782,7 +63759,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63782
63759
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
63783
63760
|
//处理列宽
|
|
63784
63761
|
var colInfosArray = new Array();
|
|
63785
|
-
//for (let i = pfrom.col; i <= this.colInfos.length - 1; i++) {
|
|
63786
63762
|
for (var _i4 = pfrom.col; _i4 <= cols; _i4++) {
|
|
63787
63763
|
var colInfo = this.colInfos[_i4];
|
|
63788
63764
|
var _customProperties2 = {
|
|
@@ -63857,7 +63833,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63857
63833
|
//处理单元格
|
|
63858
63834
|
var rowArrays = new Array();
|
|
63859
63835
|
var undefines = new Array();
|
|
63860
|
-
//let maxColNum=0;
|
|
63861
63836
|
//for (let k = pfrom.row; k <= pto.row; k++) {
|
|
63862
63837
|
for (var _k2 = pfrom.row; _k2 <= rows; _k2++) {
|
|
63863
63838
|
var row = this.rows[_k2];
|
|
@@ -63899,11 +63874,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63899
63874
|
if (col) {
|
|
63900
63875
|
var json = col.node2Json(r, isCopy, type, clearSign, defaultCellPropJson);
|
|
63901
63876
|
undefineArr.base = JSON.parse(JSON.stringify(json));
|
|
63902
|
-
// json.rowNo = k - pfrom.row;
|
|
63903
|
-
// json.colNo = j - pfrom.col;
|
|
63904
63877
|
json.rowNo = _k2 - pfrom.row;
|
|
63905
63878
|
json.colNo = j - pfrom.col;
|
|
63906
|
-
//rowArray.childNodes.item.push(json);
|
|
63907
63879
|
if (isCopy) {
|
|
63908
63880
|
rowArray.childNodes.item.push(json);
|
|
63909
63881
|
} else {
|
|
@@ -63919,18 +63891,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63919
63891
|
}
|
|
63920
63892
|
}
|
|
63921
63893
|
}
|
|
63922
|
-
//给undefined的节点,补上内容
|
|
63923
|
-
// for (let i = 0; i < undefines.length; i++) {
|
|
63924
|
-
// if (undefines[i].childNodes.length == 0)
|
|
63925
|
-
// break;
|
|
63926
|
-
// const nsource = undefines[i].base;
|
|
63927
|
-
// //只保留段落节点和结束标记
|
|
63928
|
-
// nsource.childNodes.item = [nsource.childNodes.item[0], nsource.childNodes.item[nsource.childNodes.length - 1]];
|
|
63929
|
-
// for (let j = 0; j < undefines[i].childNodes.length; j++) {
|
|
63930
|
-
// const uitem = undefines[i].childNodes[j];
|
|
63931
|
-
// rowArrays[uitem.rowNo].childNodes.item.splice(uitem.colNo, 0, Object.assign(nsource, uitem));
|
|
63932
|
-
// }
|
|
63933
|
-
// }
|
|
63934
63894
|
//更新合并单元格的合并值
|
|
63935
63895
|
for (var _i5 = 0; _i5 < rowArrays.length; _i5++) {
|
|
63936
63896
|
var _row2 = rowArrays[_i5].childNodes;
|
|
@@ -63943,9 +63903,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63943
63903
|
}
|
|
63944
63904
|
}
|
|
63945
63905
|
}
|
|
63946
|
-
//const rowInfos = { defaultRowProperty: defaultRowProp, item: rowInfosArray };
|
|
63947
|
-
//const colInfos = { defaultColProperty: defaultColProp, item: colInfosArray };
|
|
63948
|
-
//const childNodes = { defaultCellProperty: defaultCellProp, item: rowArrays };
|
|
63949
63906
|
var rowInfos = {
|
|
63950
63907
|
item: rowInfosArray
|
|
63951
63908
|
};
|
|
@@ -63960,24 +63917,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63960
63917
|
};
|
|
63961
63918
|
var rowCount = rowInfos.item.length;
|
|
63962
63919
|
var colCount = colInfos.item.length;
|
|
63963
|
-
// const tableProperty = {
|
|
63964
|
-
// canAddRow: this.tableProperty.canAddRow,
|
|
63965
|
-
// canAddCol: this.tableProperty.canAddCol,
|
|
63966
|
-
// canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
63967
|
-
// canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
63968
|
-
// canDeleteRow: this.tableProperty.canDeleteRow,
|
|
63969
|
-
// canDelTable: this.tableProperty.canDelTable,
|
|
63970
|
-
// continuePrintBorders: this.tableProperty.continuePrintBorders,
|
|
63971
|
-
// customProperties,
|
|
63972
|
-
// layoutFullLine: this.tableProperty.layoutFullLine,
|
|
63973
|
-
// tightLineSpace: this.tableProperty.tightLineSpace,
|
|
63974
|
-
// isAutoChangeLine: this.tableProperty.isAutoChangeLine,
|
|
63975
|
-
// autoLineHeight: this.tableProperty.autoLineHeight,
|
|
63976
|
-
// fixedOnePage: this.tableProperty.fixedOnePage,
|
|
63977
|
-
// isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
63978
|
-
// isSignLock: this.tableProperty.isSignLock,
|
|
63979
|
-
// isLock: this.tableProperty.isLock,
|
|
63980
|
-
// };
|
|
63981
63920
|
var tableProperty = {};
|
|
63982
63921
|
if (this.tableProperty.canAdjustRowHeight) {
|
|
63983
63922
|
tableProperty.canAdjustRowHeight = this.tableProperty.canAdjustRowHeight;
|
|
@@ -64024,6 +63963,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64024
63963
|
if (this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0]) {
|
|
64025
63964
|
tableProperty.customProperties = customProperties;
|
|
64026
63965
|
}
|
|
63966
|
+
tableProperty.id = this.tableProperty.id;
|
|
64027
63967
|
var retJson = {
|
|
64028
63968
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_31__/* .NodeType */ .Jq[this.nodeType],
|
|
64029
63969
|
rowCount: rowCount,
|
|
@@ -64223,12 +64163,11 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64223
64163
|
cell = _this$getMainCell14[0],
|
|
64224
64164
|
mr = _this$getMainCell14[1],
|
|
64225
64165
|
mc = _this$getMainCell14[2];
|
|
64226
|
-
if (cell &&
|
|
64227
|
-
newMaxR = cell.rowSpan - 1;
|
|
64166
|
+
if (cell && mr + cell.rowSpan - 1 > newMaxR) {
|
|
64167
|
+
newMaxR = mr + cell.rowSpan - 1;
|
|
64228
64168
|
}
|
|
64229
64169
|
}
|
|
64230
64170
|
}
|
|
64231
|
-
// maxR = this.getSelectMaxR(maxR);
|
|
64232
64171
|
for (var _j3 = 0; _j3 <= maxR; _j3++) {
|
|
64233
64172
|
headerRowHeight += this.drawTable.drawPageTables[0].getPartRowHeight(_j3);
|
|
64234
64173
|
}
|
|
@@ -64666,11 +64605,13 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64666
64605
|
}
|
|
64667
64606
|
}], [{
|
|
64668
64607
|
key: "json2Node",
|
|
64669
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
64608
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign, isNewPage) {
|
|
64670
64609
|
// console.log("加载表格", json.rowCount, json.colCount)
|
|
64671
64610
|
json = this.transType(json);
|
|
64672
64611
|
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_35__/* .TableProperty */ .vE("");
|
|
64673
64612
|
if (json.tableProperty) {
|
|
64613
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_41__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
64614
|
+
var tableId = hoEditorFactory.vueController.generateID("TB");
|
|
64674
64615
|
var tp = json.tableProperty;
|
|
64675
64616
|
tableProperty.canAdjustRowHeight = tp["canAdjustRowHeight"] === true || tp["canAdjustRowHeight"] == "true" ? true : false;
|
|
64676
64617
|
tableProperty.canAdjustRowWidth = tp["canAdjustRowWidth"] === true || tp["canAdjustRowWidth"] === "true" ? true : false;
|
|
@@ -64687,6 +64628,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64687
64628
|
tableProperty.isLock = tp["isLock"] === true || tp["isLock"] === "true" ? true : false;
|
|
64688
64629
|
tableProperty.addRowByOrder = tp["addRowByOrder"] === true || tp["addRowByOrder"] === "true" ? true : false;
|
|
64689
64630
|
tableProperty.customProperties = json.tableProperty.customProperties ? Array.isArray(json.tableProperty.customProperties.customProperty) ? json.tableProperty.customProperties.customProperty : Array(json.tableProperty.customProperties.customProperty) : "";
|
|
64631
|
+
tableProperty.id = isNewPage ? tableId : json.tableProperty.id ? json.tableProperty.id : tableId;
|
|
64690
64632
|
}
|
|
64691
64633
|
var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
|
|
64692
64634
|
tableNode.rowCount = Number(json.rowCount);
|
|
@@ -78666,7 +78608,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78666
78608
|
}
|
|
78667
78609
|
}
|
|
78668
78610
|
}
|
|
78669
|
-
//this._partRowHeights.get(r)?.rowHeight
|
|
78670
78611
|
if (aHeight && rowHeight) {
|
|
78671
78612
|
if (y >= top && y <= top + rowHeight) {
|
|
78672
78613
|
row = r;
|
|
@@ -78688,7 +78629,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
78688
78629
|
}
|
|
78689
78630
|
}
|
|
78690
78631
|
throw new Error("\u627E\u4E0D\u5230\u5728\u5750\u6807x:".concat(x, " y:").concat(y, "\u7684\u5355\u5143\u683C"));
|
|
78691
|
-
// if(((dItem as unknown) as DrawInfos).x+
|
|
78692
78632
|
}
|
|
78693
78633
|
// public update(
|
|
78694
78634
|
// dArea: DrawArea,
|
|
@@ -85645,10 +85585,6 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85645
85585
|
_aCell$table$getCellI2 = (0,slicedToArray/* default */.Z)(_aCell$table$getCellI, 2),
|
|
85646
85586
|
r = _aCell$table$getCellI2[0],
|
|
85647
85587
|
c = _aCell$table$getCellI2[1];
|
|
85648
|
-
if (!aCell.table.rowInfos[r + aCell.rowSpan - 1]) {
|
|
85649
|
-
console.warn("行信息不存在", r, c);
|
|
85650
|
-
return null;
|
|
85651
|
-
}
|
|
85652
85588
|
if (r >= 0) {
|
|
85653
85589
|
var rowPorperty = aCell.table.rowInfos[r + aCell.rowSpan - 1].rowProperty;
|
|
85654
85590
|
if (rowPorperty.rowHeight > 0 && rowPorperty.isLockRowHeight) {
|
|
@@ -95355,7 +95291,7 @@ var NodeConvert = /*#__PURE__*/function () {
|
|
|
95355
95291
|
for (var i = 0; i < jsonArray.length; i++) {
|
|
95356
95292
|
var nodeJson = jsonArray[i];
|
|
95357
95293
|
if (nodeJson) {
|
|
95358
|
-
var node = hoEditorFactory.structureConvert.convertNode(nodeJson, aRootNodes, rootPath ? null : parentNode, undefined, isNewPage ? false : true);
|
|
95294
|
+
var node = hoEditorFactory.structureConvert.convertNode(nodeJson, aRootNodes, rootPath ? null : parentNode, undefined, isNewPage ? false : true, undefined, isNewPage);
|
|
95359
95295
|
if (!node) {
|
|
95360
95296
|
return [];
|
|
95361
95297
|
}
|
|
@@ -169941,10 +169877,10 @@ var map = {
|
|
|
169941
169877
|
"./selectDialog/SelectDialog.vue": 73791,
|
|
169942
169878
|
"./sign/Sign.vue": 67218,
|
|
169943
169879
|
"./specialChars/HoSpecialChars.vue": 75058,
|
|
169944
|
-
"./table/TableCellPoper.vue":
|
|
169880
|
+
"./table/TableCellPoper.vue": 21166,
|
|
169945
169881
|
"./table/TableCellPoper1.vue": 44645,
|
|
169946
|
-
"./table/TableCellProperty.vue":
|
|
169947
|
-
"./table/TableColProperty.vue":
|
|
169882
|
+
"./table/TableCellProperty.vue": 14278,
|
|
169883
|
+
"./table/TableColProperty.vue": 3828,
|
|
169948
169884
|
"./table/TableForm.vue": 79036,
|
|
169949
169885
|
"./table/TableFormTree.vue": 84804,
|
|
169950
169886
|
"./table/TableFormula.vue": 80199,
|
|
@@ -207389,8 +207325,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207389
207325
|
var es_number_constructor = __webpack_require__(9653);
|
|
207390
207326
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207391
207327
|
var es_json_stringify = __webpack_require__(38862);
|
|
207392
|
-
;// 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=
|
|
207393
|
-
var
|
|
207328
|
+
;// 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=797833eb&
|
|
207329
|
+
var HoDocvue_type_template_id_797833eb_render = function render() {
|
|
207394
207330
|
var _vm = this,
|
|
207395
207331
|
_c = _vm._self._c;
|
|
207396
207332
|
return _c('div', {
|
|
@@ -207591,7 +207527,7 @@ var HoDocvue_type_template_id_3b58cf3f_render = function render() {
|
|
|
207591
207527
|
}
|
|
207592
207528
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207593
207529
|
};
|
|
207594
|
-
var
|
|
207530
|
+
var HoDocvue_type_template_id_797833eb_staticRenderFns = [];
|
|
207595
207531
|
|
|
207596
207532
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207597
207533
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -209179,7 +209115,7 @@ var PoperMark = __webpack_require__(20734);
|
|
|
209179
209115
|
|
|
209180
209116
|
|
|
209181
209117
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 6 modules
|
|
209182
|
-
var TableCellPoper = __webpack_require__(
|
|
209118
|
+
var TableCellPoper = __webpack_require__(21166);
|
|
209183
209119
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
209184
209120
|
var DateTimeNode = __webpack_require__(92501);
|
|
209185
209121
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -210576,7 +210512,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210576
210512
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210577
210513
|
var ParagraphNode = __webpack_require__(67945);
|
|
210578
210514
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210579
|
-
/* harmony default export */ var version = ('3.1.
|
|
210515
|
+
/* harmony default export */ var version = ('3.1.164');
|
|
210580
210516
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210581
210517
|
var PoperTipText = __webpack_require__(84531);
|
|
210582
210518
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -211622,10 +211558,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211622
211558
|
});
|
|
211623
211559
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211624
211560
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211625
|
-
;// 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=
|
|
211561
|
+
;// 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=797833eb&prod&lang=less&
|
|
211626
211562
|
// extracted by mini-css-extract-plugin
|
|
211627
211563
|
|
|
211628
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211564
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=797833eb&prod&lang=less&
|
|
211629
211565
|
|
|
211630
211566
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211631
211567
|
|
|
@@ -211638,8 +211574,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211638
211574
|
|
|
211639
211575
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211640
211576
|
components_HoDocvue_type_script_lang_js_,
|
|
211641
|
-
|
|
211642
|
-
|
|
211577
|
+
HoDocvue_type_template_id_797833eb_render,
|
|
211578
|
+
HoDocvue_type_template_id_797833eb_staticRenderFns,
|
|
211643
211579
|
false,
|
|
211644
211580
|
null,
|
|
211645
211581
|
null,
|
|
@@ -215600,8 +215536,6 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
215600
215536
|
footerDocTree.push(_subDocTree);
|
|
215601
215537
|
}
|
|
215602
215538
|
}
|
|
215603
|
-
var footerSubDocTree = new Array();
|
|
215604
|
-
// console.timeEnd("return");
|
|
215605
215539
|
return {
|
|
215606
215540
|
docProperty: root.docProperty,
|
|
215607
215541
|
pageSettings: root.pageSettings,
|
|
@@ -216444,7 +216378,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
216444
216378
|
}
|
|
216445
216379
|
}, {
|
|
216446
216380
|
key: "convertNode",
|
|
216447
|
-
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign) {
|
|
216381
|
+
value: function convertNode(temp, rootNodes, parentNode, nodes, isPaste, isClearSign, isNewPage) {
|
|
216448
216382
|
if (temp === "") {
|
|
216449
216383
|
return undefined;
|
|
216450
216384
|
}
|
|
@@ -216454,7 +216388,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
216454
216388
|
message/* default */.Z.warn("不允许将表格粘贴到文本域");
|
|
216455
216389
|
return undefined;
|
|
216456
216390
|
}
|
|
216457
|
-
var node = TableNode/* TableNode */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
|
|
216391
|
+
var node = TableNode/* TableNode */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign, isNewPage);
|
|
216458
216392
|
return node;
|
|
216459
216393
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntParagraph) {
|
|
216460
216394
|
return ParagraphNode/* ParagraphNode */.C.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
@@ -218491,6 +218425,7 @@ var ExpressionCalculator = __webpack_require__(71115);
|
|
|
218491
218425
|
|
|
218492
218426
|
|
|
218493
218427
|
|
|
218428
|
+
|
|
218494
218429
|
|
|
218495
218430
|
|
|
218496
218431
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -222246,6 +222181,48 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222246
222181
|
}
|
|
222247
222182
|
hoEditorFactory.docTree.curDomRange.setSamePath(nodePath);
|
|
222248
222183
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
222184
|
+
var lastNextDays = hoEditorFactory.updateNextDaysRecordList.get("last");
|
|
222185
|
+
// const isUpdate = hoEditorFactory.updateNextDaysRecordList.get("update");
|
|
222186
|
+
if (lastNextDays) {
|
|
222187
|
+
this.updateCellNextDays(lastNextDays.rowNo, lastNextDays.colNo, lastNextDays.tableId, '', true);
|
|
222188
|
+
}
|
|
222189
|
+
}
|
|
222190
|
+
}
|
|
222191
|
+
/**
|
|
222192
|
+
* 更新单元格属性设置过日期属性且设置间隔回填单元格
|
|
222193
|
+
*/
|
|
222194
|
+
}, {
|
|
222195
|
+
key: "updateCellNextDays",
|
|
222196
|
+
value: function updateCellNextDays(rowNo, colNo, tableId, date, isAddNewPage) {
|
|
222197
|
+
var _tableNodeMap$get;
|
|
222198
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
222199
|
+
var tableNodeMap = hoEditorFactory.vueController.getTableNodeList();
|
|
222200
|
+
var allTableList = hoEditorFactory.updateNextDaysRecordList.get("0") || [];
|
|
222201
|
+
var currIndex = -1;
|
|
222202
|
+
var updateCount = 1;
|
|
222203
|
+
var currentCellNode = (_tableNodeMap$get = tableNodeMap.get(tableId)) === null || _tableNodeMap$get === void 0 ? void 0 : _tableNodeMap$get.rows[rowNo][colNo];
|
|
222204
|
+
var currentText = (currentCellNode === null || currentCellNode === void 0 ? void 0 : currentCellNode.getCellText()) || '';
|
|
222205
|
+
if (currentCellNode && (currentText.replace(/ /g, '') == '' || isAddNewPage && currentText.replace(/ /g, '') != '')) {
|
|
222206
|
+
var currentStyle = currentCellNode.cellProperty.dateTimeProperty.inputStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
222207
|
+
// 单元格文本获取最新的内容
|
|
222208
|
+
allTableList.map(function (v, index) {
|
|
222209
|
+
if (v.rowNo == rowNo && v.colNo == colNo && v.tableId == tableId) {
|
|
222210
|
+
currIndex = index;
|
|
222211
|
+
} else if (currIndex != -1 && index > currIndex) {
|
|
222212
|
+
var _tableNodeMap$get2;
|
|
222213
|
+
var cellNode = (_tableNodeMap$get2 = tableNodeMap.get(v.tableId)) === null || _tableNodeMap$get2 === void 0 ? void 0 : _tableNodeMap$get2.rows[v.rowNo][v.colNo];
|
|
222214
|
+
if (cellNode) {
|
|
222215
|
+
var cellText = cellNode.getCellText();
|
|
222216
|
+
if (cellText.replace(/ /g, '') == '') {
|
|
222217
|
+
var cellStyle = cellNode.cellProperty.dateTimeProperty.inputStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
222218
|
+
var nextDays = moment_default()(date || currentText, currentStyle, 'zh-cn').add(Number(v.daysInterval) * updateCount, 'days').format(cellStyle);
|
|
222219
|
+
updateCount++;
|
|
222220
|
+
cellNode.setCellText(nextDays, false, true);
|
|
222221
|
+
hoEditorFactory.updateNextDaysRecordList.set("last", (0,objectSpread2/* default */.Z)({}, v));
|
|
222222
|
+
}
|
|
222223
|
+
}
|
|
222224
|
+
}
|
|
222225
|
+
});
|
|
222249
222226
|
}
|
|
222250
222227
|
}
|
|
222251
222228
|
/**
|
|
@@ -227594,6 +227571,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227594
227571
|
behavior: "auto"
|
|
227595
227572
|
});
|
|
227596
227573
|
}
|
|
227574
|
+
}, {
|
|
227575
|
+
key: "getTableNodeList",
|
|
227576
|
+
value: function getTableNodeList() {
|
|
227577
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227578
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
227579
|
+
var tableMap = new Map();
|
|
227580
|
+
mainNodes.map(function (node) {
|
|
227581
|
+
if (node instanceof TableNode/* TableNode */.Fh) {
|
|
227582
|
+
tableMap.set(node.tableProperty.id, node);
|
|
227583
|
+
}
|
|
227584
|
+
});
|
|
227585
|
+
return tableMap;
|
|
227586
|
+
}
|
|
227597
227587
|
}]);
|
|
227598
227588
|
return VueController;
|
|
227599
227589
|
}();
|
|
@@ -239916,19 +239906,18 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
239916
239906
|
}, {
|
|
239917
239907
|
key: "autoSaveLocalStorage",
|
|
239918
239908
|
value: function autoSaveLocalStorage() {
|
|
239919
|
-
var
|
|
239920
|
-
_this4 = this;
|
|
239909
|
+
var _this4 = this;
|
|
239921
239910
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
239922
239911
|
return;
|
|
239923
239912
|
}
|
|
239924
|
-
var HoBrowser =
|
|
239913
|
+
var HoBrowser = this.getChromeWebview();
|
|
239925
239914
|
var saveTime = (0,plugins_util/* dateFormat */.vc)(new Date());
|
|
239926
239915
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
239927
239916
|
this._key = hoEditfactory.userInfo.id + hoEditfactory.docTree.docProperty.patientID + hoEditfactory.docTree.docProperty.title;
|
|
239928
239917
|
if (HoBrowser) {
|
|
239929
239918
|
this._lastSaveTime = new Date(saveTime).getTime();
|
|
239930
239919
|
if (hoEditfactory && hoEditfactory.vueController.isModifyDoc()) {
|
|
239931
|
-
var _this$
|
|
239920
|
+
var _this$getChromeWebvie4;
|
|
239932
239921
|
var data = {
|
|
239933
239922
|
exec: 'emr',
|
|
239934
239923
|
data: {
|
|
@@ -239941,7 +239930,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
239941
239930
|
}
|
|
239942
239931
|
};
|
|
239943
239932
|
// console.log('SaveEmrData', data);
|
|
239944
|
-
(_this$
|
|
239933
|
+
(_this$getChromeWebvie4 = this.getChromeWebview()) === null || _this$getChromeWebvie4 === void 0 ? void 0 : _this$getChromeWebvie4.postMessage(data);
|
|
239945
239934
|
}
|
|
239946
239935
|
} else if (this._networkConnectionStatus) {
|
|
239947
239936
|
// 网络连接正常情况下正常缓存
|
|
@@ -240252,28 +240241,28 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
240252
240241
|
(0,esm_defineProperty/* default */.Z)(this, "_fontSizeMap", new Map());
|
|
240253
240242
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowEditInReview", false);
|
|
240254
240243
|
//审阅模式下不允许修改(质控医生站的病历只可进行批注不可修改)
|
|
240255
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240244
|
+
(0,esm_defineProperty/* default */.Z)(this, "_canvasListNode", void 0);
|
|
240245
|
+
(0,esm_defineProperty/* default */.Z)(this, "printSilently", false);
|
|
240256
240246
|
// 封装浏览器静默打印
|
|
240257
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240247
|
+
(0,esm_defineProperty/* default */.Z)(this, "limitCharNumber", 0);
|
|
240258
240248
|
// 限制复制病历文本的字符数
|
|
240259
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240249
|
+
(0,esm_defineProperty/* default */.Z)(this, "reviewJson", {});
|
|
240260
240250
|
// 审阅列表菜单权限
|
|
240261
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240262
|
-
(0,esm_defineProperty/* default */.Z)(this, "_numLetterOnOneLine", true);
|
|
240251
|
+
(0,esm_defineProperty/* default */.Z)(this, "numLetterOnOneLine", true);
|
|
240263
240252
|
//连续的数字或字母是否在一行显示
|
|
240264
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240253
|
+
(0,esm_defineProperty/* default */.Z)(this, "reviewParams", {
|
|
240265
240254
|
old: false // 是否使用完善后的批注界面
|
|
240266
240255
|
});
|
|
240267
240256
|
// 审阅参数设置
|
|
240268
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240257
|
+
(0,esm_defineProperty/* default */.Z)(this, "commentParams", void 0);
|
|
240269
240258
|
// 批注相关动态变更
|
|
240270
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240259
|
+
(0,esm_defineProperty/* default */.Z)(this, "isDrawMustMarker", true);
|
|
240271
240260
|
//是否绘制必填标记
|
|
240272
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240261
|
+
(0,esm_defineProperty/* default */.Z)(this, "isControlCaret", false);
|
|
240273
240262
|
//鼠标点击空元素控制光标在中间位置
|
|
240274
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240263
|
+
(0,esm_defineProperty/* default */.Z)(this, "allowUncheckRadio", false);
|
|
240275
240264
|
//允许直接取消勾选单选控件(默认不允许)
|
|
240276
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
240265
|
+
(0,esm_defineProperty/* default */.Z)(this, "insHtmlWithColor", true);
|
|
240277
240266
|
//插入检查检验文本带颜色(默认带颜色)
|
|
240278
240267
|
(0,esm_defineProperty/* default */.Z)(this, "convertSignImage", false);
|
|
240279
240268
|
// 处理签名图片,减小其分辨率大小,提高打印时图片处理速度
|
|
@@ -240282,12 +240271,14 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
240282
240271
|
(0,esm_defineProperty/* default */.Z)(this, "innerIdentifierList", []);
|
|
240283
240272
|
// 内部标识符列表
|
|
240284
240273
|
(0,esm_defineProperty/* default */.Z)(this, "isDrawEmptyNode", true);
|
|
240274
|
+
// 元素内容为空时是否绘制(文本域元素和关联文本域的标签元素)
|
|
240275
|
+
(0,esm_defineProperty/* default */.Z)(this, "updateNextDaysRecordList", new Map());
|
|
240285
240276
|
this._hoEditorFactoryId = id;
|
|
240286
240277
|
}
|
|
240287
240278
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
240288
240279
|
key: "hoLocalStorage",
|
|
240289
240280
|
get:
|
|
240290
|
-
//
|
|
240281
|
+
// 记录一下单元格双击属性为日期的更新列表
|
|
240291
240282
|
/**
|
|
240292
240283
|
* Getter hoLocalStorage
|
|
240293
240284
|
* @return {HoLocalStorage}
|
|
@@ -240808,56 +240799,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
240808
240799
|
this._notAllowEditInReview = value;
|
|
240809
240800
|
}
|
|
240810
240801
|
}
|
|
240811
|
-
}, {
|
|
240812
|
-
key: "limitCharNumber",
|
|
240813
|
-
get: function get() {
|
|
240814
|
-
return this._limitCharNumber;
|
|
240815
|
-
},
|
|
240816
|
-
set: function set(value) {
|
|
240817
|
-
if (this._limitCharNumber !== value) {
|
|
240818
|
-
this._limitCharNumber = value;
|
|
240819
|
-
}
|
|
240820
|
-
}
|
|
240821
|
-
}, {
|
|
240822
|
-
key: "numLetterOnOneLine",
|
|
240823
|
-
get: function get() {
|
|
240824
|
-
return this._numLetterOnOneLine;
|
|
240825
|
-
},
|
|
240826
|
-
set: function set(value) {
|
|
240827
|
-
if (this._numLetterOnOneLine !== value) {
|
|
240828
|
-
this._numLetterOnOneLine = value;
|
|
240829
|
-
}
|
|
240830
|
-
}
|
|
240831
|
-
}, {
|
|
240832
|
-
key: "reviewJson",
|
|
240833
|
-
get: function get() {
|
|
240834
|
-
return this._reviewJson;
|
|
240835
|
-
},
|
|
240836
|
-
set: function set(value) {
|
|
240837
|
-
if (this._reviewJson !== value) {
|
|
240838
|
-
this._reviewJson = value;
|
|
240839
|
-
}
|
|
240840
|
-
}
|
|
240841
|
-
}, {
|
|
240842
|
-
key: "reviewParams",
|
|
240843
|
-
get: function get() {
|
|
240844
|
-
return this._reviewParams;
|
|
240845
|
-
},
|
|
240846
|
-
set: function set(value) {
|
|
240847
|
-
if (this._reviewParams !== value) {
|
|
240848
|
-
this._reviewParams = value;
|
|
240849
|
-
}
|
|
240850
|
-
}
|
|
240851
|
-
}, {
|
|
240852
|
-
key: "commentParams",
|
|
240853
|
-
get: function get() {
|
|
240854
|
-
return this._commentParams;
|
|
240855
|
-
},
|
|
240856
|
-
set: function set(value) {
|
|
240857
|
-
if (this._commentParams !== value) {
|
|
240858
|
-
this._commentParams = value;
|
|
240859
|
-
}
|
|
240860
|
-
}
|
|
240861
240802
|
}, {
|
|
240862
240803
|
key: "isHideComments",
|
|
240863
240804
|
get: function get() {
|
|
@@ -241057,36 +240998,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
241057
240998
|
this._isEnabledGlobalColor = value;
|
|
241058
240999
|
}
|
|
241059
241000
|
}
|
|
241060
|
-
}, {
|
|
241061
|
-
key: "isDrawMustMarker",
|
|
241062
|
-
get: function get() {
|
|
241063
|
-
return this._isDrawMustMarker;
|
|
241064
|
-
},
|
|
241065
|
-
set: function set(value) {
|
|
241066
|
-
if (this._isDrawMustMarker !== value) {
|
|
241067
|
-
this._isDrawMustMarker = value;
|
|
241068
|
-
}
|
|
241069
|
-
}
|
|
241070
|
-
}, {
|
|
241071
|
-
key: "allowUncheckRadio",
|
|
241072
|
-
get: function get() {
|
|
241073
|
-
return this._allowUncheckRadio;
|
|
241074
|
-
},
|
|
241075
|
-
set: function set(value) {
|
|
241076
|
-
if (this._allowUncheckRadio !== value) {
|
|
241077
|
-
this._allowUncheckRadio = value;
|
|
241078
|
-
}
|
|
241079
|
-
}
|
|
241080
|
-
}, {
|
|
241081
|
-
key: "insHtmlWithColor",
|
|
241082
|
-
get: function get() {
|
|
241083
|
-
return this._insHtmlWithColor;
|
|
241084
|
-
},
|
|
241085
|
-
set: function set(value) {
|
|
241086
|
-
if (this._insHtmlWithColor !== value) {
|
|
241087
|
-
this._insHtmlWithColor = value;
|
|
241088
|
-
}
|
|
241089
|
-
}
|
|
241090
241001
|
}, {
|
|
241091
241002
|
key: "isSameColorWithEmptyVlaue",
|
|
241092
241003
|
get: function get() {
|
|
@@ -241128,16 +241039,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
241128
241039
|
this._defaultIsAllowDelete = value;
|
|
241129
241040
|
}
|
|
241130
241041
|
}
|
|
241131
|
-
}, {
|
|
241132
|
-
key: "printSilently",
|
|
241133
|
-
get: function get() {
|
|
241134
|
-
return this._printSilently;
|
|
241135
|
-
},
|
|
241136
|
-
set: function set(value) {
|
|
241137
|
-
if (this._printSilently !== value) {
|
|
241138
|
-
this._printSilently = value;
|
|
241139
|
-
}
|
|
241140
|
-
}
|
|
241141
241042
|
}, {
|
|
241142
241043
|
key: "canvasListNode",
|
|
241143
241044
|
get: function get() {
|
|
@@ -241148,16 +241049,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
241148
241049
|
this._canvasListNode = value;
|
|
241149
241050
|
}
|
|
241150
241051
|
}
|
|
241151
|
-
}, {
|
|
241152
|
-
key: "isControlCaret",
|
|
241153
|
-
get: function get() {
|
|
241154
|
-
return this._isControlCaret;
|
|
241155
|
-
},
|
|
241156
|
-
set: function set(value) {
|
|
241157
|
-
if (this._isControlCaret !== value) {
|
|
241158
|
-
this._isControlCaret = value;
|
|
241159
|
-
}
|
|
241160
|
-
}
|
|
241161
241052
|
}, {
|
|
241162
241053
|
key: "clear",
|
|
241163
241054
|
value: function clear() {
|
|
@@ -242989,6 +242880,11 @@ var HoColorPickers = __webpack_require__(98181);
|
|
|
242989
242880
|
|
|
242990
242881
|
|
|
242991
242882
|
|
|
242883
|
+
|
|
242884
|
+
|
|
242885
|
+
|
|
242886
|
+
|
|
242887
|
+
|
|
242992
242888
|
|
|
242993
242889
|
/* harmony default export */ var ToolFamilyvue_type_script_lang_js_ = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
|
|
242994
242890
|
name: 'ToolFamily',
|
|
@@ -243098,6 +242994,12 @@ var HoColorPickers = __webpack_require__(98181);
|
|
|
243098
242994
|
*/
|
|
243099
242995
|
fontFamilyClick: function fontFamilyClick(fontItem) {
|
|
243100
242996
|
// const font = JSON.stringify(fontItem);
|
|
242997
|
+
var selectText = this.vueController.getSelectText();
|
|
242998
|
+
var matchText = selectText.match(/[\u4e00-\u9fa5]+/g);
|
|
242999
|
+
if (fontItem.ch !== '宋体' && matchText) {
|
|
243000
|
+
message/* default */.Z.error("\u4E0D\u80FD\u5C06\u4E2D\u6587\u5B57\u7B26\u3010".concat(matchText.join(","), "\u3011\u8BBE\u7F6E\u4E3A\u82F1\u6587\u5B57\u4F53").concat(fontItem.ch));
|
|
243001
|
+
return false;
|
|
243002
|
+
}
|
|
243101
243003
|
this.font = fontItem;
|
|
243102
243004
|
this.fontFamilyVisible = false;
|
|
243103
243005
|
this.vueController.fontFormat(fontItem.ch);
|