yh-hiprint 2.2.10 → 2.3.1

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.
@@ -11,7 +11,7 @@
11
11
 
12
12
  "use strict";
13
13
 
14
- function _instanceof(left, right) {
14
+ function _instanceof (left, right) {
15
15
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
16
16
  return !!right[Symbol.hasInstance](left);
17
17
  } else {
@@ -19,13 +19,13 @@ function _instanceof(left, right) {
19
19
  }
20
20
  }
21
21
 
22
- function _typeof(obj) {
22
+ function _typeof (obj) {
23
23
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
24
- _typeof = function _typeof(obj) {
24
+ _typeof = function _typeof (obj) {
25
25
  return typeof obj;
26
26
  };
27
27
  } else {
28
- _typeof = function _typeof(obj) {
28
+ _typeof = function _typeof (obj) {
29
29
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
30
30
  };
31
31
  }
@@ -35,9 +35,9 @@ function _typeof(obj) {
35
35
  /**
36
36
  * import 相关资源
37
37
  */
38
- import $ from "jquery";
38
+ import $ from "./jquery";
39
39
  // js颜色选择
40
- import "@claviska/jquery-minicolors/jquery.minicolors.min";
40
+ import "./plugins/jquery.minicolors";
41
41
  // 条形码
42
42
  import JsBarcode from "jsbarcode";
43
43
  // 二维码
@@ -57,13 +57,14 @@ import { Canvg } from "canvg";
57
57
  // 默认自定义拖拽列表
58
58
  import defaultTypeProvider from "./etypes/default-etyps-provider";
59
59
 
60
- window.$ = window.jQuery = $;
60
+ const jQuery = $;
61
+
61
62
  window.autoConnect = true;
62
63
 
63
64
  var hiprint = (function (t) {
64
65
  var e = {};
65
66
 
66
- function n(i) {
67
+ function n (i) {
67
68
  if (e[i]) return e[i].exports;
68
69
  var o = (e[i] = {
69
70
  i: i,
@@ -99,11 +100,11 @@ var hiprint = (function (t) {
99
100
  var i = Object.create(null);
100
101
  if (
101
102
  (n.r(i),
102
- Object.defineProperty(i, "default", {
103
- enumerable: !0,
104
- value: t,
105
- }),
106
- 2 & e && "string" != typeof t)
103
+ Object.defineProperty(i, "default", {
104
+ enumerable: !0,
105
+ value: t,
106
+ }),
107
+ 2 & e && "string" != typeof t)
107
108
  )
108
109
  for (var o in t) {
109
110
  n.d(
@@ -120,11 +121,11 @@ var hiprint = (function (t) {
120
121
  var e =
121
122
  t && t.__esModule
122
123
  ? function () {
123
- return t.default;
124
- }
124
+ return t.default;
125
+ }
125
126
  : function () {
126
- return t;
127
- };
127
+ return t;
128
+ };
128
129
  return n.d(e, "a", e), e;
129
130
  }),
130
131
  (n.o = function (t, e) {
@@ -146,11 +147,11 @@ var hiprint = (function (t) {
146
147
  (hinnn.event =
147
148
  ((i = {}),
148
149
  {
149
- on: function on(t, e) {
150
+ on: function on (t, e) {
150
151
  i[t] || (i[t] = []), i[t].push(e);
151
152
  },
152
153
  id: 0,
153
- off: function off(t, e) {
154
+ off: function off (t, e) {
154
155
  var n = i[t];
155
156
 
156
157
  if (n) {
@@ -164,25 +165,25 @@ var hiprint = (function (t) {
164
165
  o < 0 || i[t].splice(o, 1);
165
166
  }
166
167
  },
167
- trigger: function trigger(t) {
168
+ trigger: function trigger (t) {
168
169
  var e = i[t];
169
170
  if (e && e.length)
170
171
  for (var n = Array.prototype.slice.call(arguments, 1), o = 0; o < e.length; o++) {
171
172
  e[o].apply(this, n);
172
173
  }
173
174
  },
174
- clear: function clear(t) {
175
+ clear: function clear (t) {
175
176
  i[t] = [];
176
177
  },
177
- getId: function getId() {
178
+ getId: function getId () {
178
179
  return (this.id += 1), this.id;
179
180
  },
180
- getNameWithId: function getNameWithId(t) {
181
+ getNameWithId: function getNameWithId (t) {
181
182
  return t + "-" + this.getId();
182
183
  },
183
184
  })),
184
185
  (hinnn.form = {
185
- serialize: function serialize(t) {
186
+ serialize: function serialize (t) {
186
187
  var e = $(t).serializeArray(),
187
188
  n = {};
188
189
  return (
@@ -194,14 +195,14 @@ var hiprint = (function (t) {
194
195
  },
195
196
  }),
196
197
  (hinnn.pt = {
197
- toPx: function toPx(t) {
198
+ toPx: function toPx (t) {
198
199
  return t * (this.getDpi() / 72);
199
200
  },
200
- toMm: function toMm(t) {
201
+ toMm: function toMm (t) {
201
202
  return hinnn.px.toMm(hinnn.pt.toPx(t));
202
203
  },
203
204
  dpi: 0,
204
- getDpi: function getDpi() {
205
+ getDpi: function getDpi () {
205
206
  if (!this.dpi) {
206
207
  var _t2 = document.createElement("DIV");
207
208
 
@@ -212,14 +213,14 @@ var hiprint = (function (t) {
212
213
  },
213
214
  }),
214
215
  (hinnn.px = {
215
- toPt: function toPt(t) {
216
+ toPt: function toPt (t) {
216
217
  return t * (72 / this.getDpi());
217
218
  },
218
- toMm: function toMm(t) {
219
+ toMm: function toMm (t) {
219
220
  return Math.round((t / this.getDpi()) * 25.4 * 100) / 100;
220
221
  },
221
222
  dpi: 0,
222
- getDpi: function getDpi() {
223
+ getDpi: function getDpi () {
223
224
  if (!this.dpi) {
224
225
  var _t3 = document.createElement("DIV");
225
226
 
@@ -230,10 +231,10 @@ var hiprint = (function (t) {
230
231
  },
231
232
  }),
232
233
  (hinnn.mm = {
233
- toPt: function toPt(t) {
234
+ toPt: function toPt (t) {
234
235
  return (72 / 25.4) * t;
235
236
  },
236
- toPx: function toPx(t) {
237
+ toPx: function toPx (t) {
237
238
  return hinnn.pt.toPx(hinnn.mm.toPt(t));
238
239
  },
239
240
  }),
@@ -245,7 +246,7 @@ var hiprint = (function (t) {
245
246
  p = 0;
246
247
  n || (n = {});
247
248
 
248
- var s = function s() {
249
+ var s = function s () {
249
250
  (p = !1 === n.leading ? 0 : _.now()), (a = null), (r = t.apply(i, o)), a || (i = o = null);
250
251
  };
251
252
 
@@ -263,7 +264,7 @@ var hiprint = (function (t) {
263
264
  r,
264
265
  a,
265
266
  p,
266
- s = function s() {
267
+ s = function s () {
267
268
  var l = _.now() - a;
268
269
  l < e && l >= 0 ? (i = setTimeout(s, e - l)) : ((i = null), n || ((p = t.apply(r, o)), i || (r = o = null)));
269
270
  };
@@ -292,9 +293,9 @@ var hiprint = (function (t) {
292
293
  ((i[o] = {
293
294
  rows: [],
294
295
  }),
295
- e.forEach(function (e) {
296
- i[o][e] = t[e];
297
- })),
296
+ e.forEach(function (e) {
297
+ i[o][e] = t[e];
298
+ })),
298
299
  i[o].rows.push(t);
299
300
  }),
300
301
  Object.keys(i).map(function (t) {
@@ -413,7 +414,7 @@ var hiprint = (function (t) {
413
414
 
414
415
  var i = n(9),
415
416
  o = (function () {
416
- function t() {
417
+ function t () {
417
418
  // see hiprint.config.js
418
419
  }
419
420
 
@@ -433,15 +434,15 @@ var hiprint = (function (t) {
433
434
  });
434
435
  }),
435
436
  Object.defineProperty(t, "instance", {
436
- get: function get() {
437
+ get: function get () {
437
438
  return (
438
439
  t._instance ||
439
- ((t._instance = new t()),
440
+ ((t._instance = new t()),
440
441
  window.HIPRINT_CONFIG && $.extend(t._instance, HIPRINT_CONFIG),
441
442
  t._instance.optionItems &&
442
- t._instance.optionItems.forEach(function (t) {
443
- i.a.registerItem(new t());
444
- })),
443
+ t._instance.optionItems.forEach(function (t) {
444
+ i.a.registerItem(new t());
445
+ })),
445
446
  t._instance
446
447
  );
447
448
  },
@@ -456,7 +457,7 @@ var hiprint = (function (t) {
456
457
  "use strict";
457
458
 
458
459
  var i = (function () {
459
- function t(t) {
460
+ function t (t) {
460
461
  this.printElement = t;
461
462
  }
462
463
 
@@ -473,7 +474,7 @@ var hiprint = (function (t) {
473
474
  });
474
475
 
475
476
  var o = (function () {
476
- function t() {
477
+ function t () {
477
478
  (this.printTemplateContainer = {}),
478
479
  (this.A1 = {
479
480
  width: 841,
@@ -547,7 +548,7 @@ var hiprint = (function (t) {
547
548
 
548
549
  return (
549
550
  Object.defineProperty(t, "instance", {
550
- get: function get() {
551
+ get: function get () {
551
552
  return this._instance || (this._instance = new t()), this._instance;
552
553
  },
553
554
  enumerable: !0,
@@ -608,7 +609,7 @@ var hiprint = (function (t) {
608
609
  });
609
610
 
610
611
  var o = (function () {
611
- function t(t) {
612
+ function t (t) {
612
613
  (t = t || {}), (this.left = t.left), (this.top = t.top), (this.topInDesign = this.top), (this.height = t.height), (this.width = t.width), (this.transform = t.transform), this.init(t);
613
614
  }
614
615
 
@@ -757,7 +758,7 @@ var hiprint = (function (t) {
757
758
  _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8),
758
759
  _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2),
759
760
  BasePrintElement = (function () {
760
- function BasePrintElement(t) {
761
+ function BasePrintElement (t) {
761
762
  (this.printElementType = t), (this.id = _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid());
762
763
  }
763
764
 
@@ -907,7 +908,7 @@ var hiprint = (function (t) {
907
908
  draggable: n.options.draggable,
908
909
  axis: n.options.axis ? n.options.axis : void 0,
909
910
  designTarget: n,
910
- onDrag: function onDrag(t, i, o) {
911
+ onDrag: function onDrag (t, i, o) {
911
912
  // 处理按住 ctrl / command 多选元素
912
913
  var els = n.panel.printElements.filter(function (t) {
913
914
  return "block" == t.designTarget.children().last().css("display") && t.designTarget.children().last().hasClass("selected") && !t.printElementType.type.includes("table");
@@ -931,13 +932,13 @@ var hiprint = (function (t) {
931
932
  },
932
933
  moveUnit: "pt",
933
934
  minMove: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,
934
- onBeforeDrag: function onBeforeDrag(t) {
935
+ onBeforeDrag: function onBeforeDrag (t) {
935
936
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0), n.designTarget.focus(), n.createLineOfPosition(e);
936
937
  },
937
- getScale: function getScale() {
938
+ getScale: function getScale () {
938
939
  return n.designPaper.scale || 1;
939
940
  },
940
- onStopDrag: function onStopDrag(t) {
941
+ onStopDrag: function onStopDrag (t) {
941
942
  // 普通元素拖动结束事件history
942
943
  if (_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed) _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, "移动");
943
944
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1), (_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed = !1);
@@ -970,8 +971,8 @@ var hiprint = (function (t) {
970
971
  a = "axis" == e.name && t.options[e.name] !== n;
971
972
  n && "object" == _typeof(n)
972
973
  ? Object.keys(n).forEach(function (e) {
973
- t.options[e] = n[e];
974
- })
974
+ t.options[e] = n[e];
975
+ })
975
976
  : (t.options[e.name] = n);
976
977
  if (r) {
977
978
  t.setResizePanel();
@@ -988,8 +989,8 @@ var hiprint = (function (t) {
988
989
  a = "axis" == e.name && t.options[e.name] !== n;
989
990
  n && "object" == _typeof(n)
990
991
  ? Object.keys(n).forEach(function (e) {
991
- t.options[e] = n[e];
992
- })
992
+ t.options[e] = n[e];
993
+ })
993
994
  : (t.options[e.name] = n);
994
995
  if (r) {
995
996
  t.setResizePanel();
@@ -1038,13 +1039,13 @@ var hiprint = (function (t) {
1038
1039
  draggable: n.options.draggable, // 元素是否可拖拽、删除
1039
1040
  // 是否显示宽高box
1040
1041
  showSizeBox: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,
1041
- getScale: function getScale() {
1042
+ getScale: function getScale () {
1042
1043
  return n.designPaper.scale || 1;
1043
1044
  },
1044
- onBeforeResize: function onBeforeResize() {
1045
+ onBeforeResize: function onBeforeResize () {
1045
1046
  _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0;
1046
1047
  },
1047
- onResize: function onResize(t, i, o, r, a, rt) {
1048
+ onResize: function onResize (t, i, o, r, a, rt) {
1048
1049
  if (undefined != rt) {
1049
1050
  n.onRotate(t, rt);
1050
1051
  } else {
@@ -1052,7 +1053,7 @@ var hiprint = (function (t) {
1052
1053
  }
1053
1054
  n.createLineOfPosition(e);
1054
1055
  },
1055
- onStopResize: function onStopResize(r) {
1056
+ onStopResize: function onStopResize (r) {
1056
1057
  _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, r ? "旋转" : "大小");
1057
1058
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1), n.removeLineOfPosition();
1058
1059
  },
@@ -1083,9 +1084,9 @@ var hiprint = (function (t) {
1083
1084
  printLine: void 0,
1084
1085
  })
1085
1086
  ),
1086
- (r = r - a + t.paperHeader),
1087
- i++,
1088
- (a = t.getPaperFooter(i))));
1087
+ (r = r - a + t.paperHeader),
1088
+ i++,
1089
+ (a = t.getPaperFooter(i))));
1089
1090
  var p = this.getData(e),
1090
1091
  s = this.createTarget(this.getTitle(), p, n);
1091
1092
  this.updateTargetSize(s),
@@ -1150,10 +1151,10 @@ var hiprint = (function (t) {
1150
1151
  // (e && r + this.options.getHeight() > a) --> 设计时拖拽元素高度超过页脚线时,导致报错问题
1151
1152
  })
1152
1153
  ),
1153
- (r = r - a + t.paperHeader),
1154
- i++,
1155
- (a = t.getPaperFooter(i))),
1156
- r <= a &&
1154
+ (r = r - a + t.paperHeader),
1155
+ i++,
1156
+ (a = t.getPaperFooter(i))),
1157
+ r <= a &&
1157
1158
  e &&
1158
1159
  r + this.options.getHeight() > a &&
1159
1160
  "none" != t.panelPageRule &&
@@ -1163,9 +1164,9 @@ var hiprint = (function (t) {
1163
1164
  printLine: void 0,
1164
1165
  })
1165
1166
  ),
1166
- (r = t.paperHeader),
1167
- i++,
1168
- (a = t.getPaperFooter(i))));
1167
+ (r = t.paperHeader),
1168
+ i++,
1169
+ (a = t.getPaperFooter(i))));
1169
1170
  var p = this.getData(e),
1170
1171
  s = this.createTarget(this.getTitle(), p);
1171
1172
  if ("none" == t.panelPageRule && r + this.options.getHeight() > a) this.updatePanelHeight(r + this.options.getHeight(), t);
@@ -1375,8 +1376,8 @@ var hiprint = (function (t) {
1375
1376
  (BasePrintElement.prototype.filterOptionItems = function (t) {
1376
1377
  return this.printElementType.field
1377
1378
  ? t.filter(function (t) {
1378
- return "field" != t.name;
1379
- })
1379
+ return "field" != t.name;
1380
+ })
1380
1381
  : t;
1381
1382
  }),
1382
1383
  (BasePrintElement.prototype.createTempContainer = function () {
@@ -1692,32 +1693,32 @@ var hiprint = (function (t) {
1692
1693
  "use strict";
1693
1694
 
1694
1695
  var i = (function () {
1695
- function t() {}
1696
+ function t () {}
1696
1697
 
1697
- return (
1698
- (t.prototype.init = function (t) {
1699
- (this.target = $('<input type="text" class="hitable-editor-text" value="" />')), t.getTarget().append(this.target), this.target.focus();
1700
- }),
1701
- (t.prototype.getValue = function () {
1702
- return this.target.val();
1703
- }),
1704
- (t.prototype.setValue = function (t) {
1705
- this.target.val(t);
1706
- }),
1707
- (t.prototype.destroy = function () {
1708
- this.target.remove();
1709
- }),
1710
- t
1711
- );
1712
- })(),
1698
+ return (
1699
+ (t.prototype.init = function (t) {
1700
+ (this.target = $('<input type="text" class="hitable-editor-text" value="" />')), t.getTarget().append(this.target), this.target.focus();
1701
+ }),
1702
+ (t.prototype.getValue = function () {
1703
+ return this.target.val();
1704
+ }),
1705
+ (t.prototype.setValue = function (t) {
1706
+ this.target.val(t);
1707
+ }),
1708
+ (t.prototype.destroy = function () {
1709
+ this.target.remove();
1710
+ }),
1711
+ t
1712
+ );
1713
+ })(),
1713
1714
  o = (function () {
1714
- function t() {
1715
+ function t () {
1715
1716
  this.text = new i();
1716
1717
  }
1717
1718
 
1718
1719
  return (
1719
1720
  Object.defineProperty(t, "Instance", {
1720
- get: function get() {
1721
+ get: function get () {
1721
1722
  return t._instance || (t._instance = new t()), t._instance;
1722
1723
  },
1723
1724
  enumerable: !0,
@@ -1727,7 +1728,7 @@ var hiprint = (function (t) {
1727
1728
  );
1728
1729
  })(),
1729
1730
  i2 = (function () {
1730
- function t() {}
1731
+ function t () {}
1731
1732
 
1732
1733
  return (
1733
1734
  (t.prototype.init = function (e, i) {
@@ -1758,13 +1759,13 @@ var hiprint = (function (t) {
1758
1759
  );
1759
1760
  })(),
1760
1761
  o2 = (function () {
1761
- function t() {
1762
+ function t () {
1762
1763
  this.select = new i2();
1763
1764
  }
1764
1765
 
1765
1766
  return (
1766
1767
  Object.defineProperty(t, "Instance", {
1767
- get: function get() {
1768
+ get: function get () {
1768
1769
  return t._instance || (t._instance = new t()), t._instance;
1769
1770
  },
1770
1771
  enumerable: !0,
@@ -1774,11 +1775,11 @@ var hiprint = (function (t) {
1774
1775
  );
1775
1776
  })(),
1776
1777
  r = (function () {
1777
- function t() {}
1778
+ function t () {}
1778
1779
 
1779
1780
  return (
1780
1781
  Object.defineProperty(t, "Instance", {
1781
- get: function get() {
1782
+ get: function get () {
1782
1783
  return o._instance || (t._instance = new t()), t._instance;
1783
1784
  },
1784
1785
  enumerable: !0,
@@ -1797,7 +1798,7 @@ var hiprint = (function (t) {
1797
1798
  p = n(14),
1798
1799
  s = n(11),
1799
1800
  l = (function () {
1800
- function t() {}
1801
+ function t () {}
1801
1802
 
1802
1803
  return (
1803
1804
  (t.prototype.init = function (t, e) {
@@ -1868,7 +1869,7 @@ var hiprint = (function (t) {
1868
1869
  };
1869
1870
  })(),
1870
1871
  d = (function () {
1871
- function t() {
1872
+ function t () {
1872
1873
  this.id = s.a.createId();
1873
1874
  }
1874
1875
 
@@ -1965,7 +1966,7 @@ var hiprint = (function (t) {
1965
1966
 
1966
1967
  var _c,
1967
1968
  h =
1968
- ((_c = function c(t, e) {
1969
+ ((_c = function c (t, e) {
1969
1970
  return (_c =
1970
1971
  Object.setPrototypeOf ||
1971
1972
  (_instanceof(
@@ -1983,15 +1984,15 @@ var hiprint = (function (t) {
1983
1984
  }
1984
1985
  })(t, e);
1985
1986
  }),
1986
- function (t, e) {
1987
- function n() {
1988
- this.constructor = t;
1989
- }
1987
+ function (t, e) {
1988
+ function n () {
1989
+ this.constructor = t;
1990
+ }
1990
1991
 
1991
- _c(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
1992
- }),
1992
+ _c(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
1993
+ }),
1993
1994
  f = (function (t) {
1994
- function e(e) {
1995
+ function e (e) {
1995
1996
  var n = this;
1996
1997
  return (e = e || {}), ((n = t.call(this) || this).width = e.width ? parseFloat(e.width.toString()) : 100), (n.title = e.title), (n.descTitle = e.descTitle), (n.field = e.field), (n.fixed = e.fixed), (n.rowspan = e.rowspan ? parseInt(e.rowspan) : 1), (n.colspan = e.colspan ? parseInt(e.colspan) : 1), (n.align = e.align), (n.halign = e.halign), (n.vAlign = e.vAlign), (n.formatter = e.formatter), (n.styler = e.styler), (n.renderFormatter = e.renderFormatter), (n.formatter2 = e.formatter2), (n.styler2 = e.styler2), (n.stylerHeader = e.stylerHeader), (n.checkbox = e.checkbox), (n.checked = 0 != e.checked), (n.columnId = e.columnId || e.field), (n.tableColumnHeight = e.tableColumnHeight), (n.tableTextType = e.tableTextType), (n.tableBarcodeMode = e.tableBarcodeMode), (n.tableQRCodeLevel = e.tableQRCodeLevel), (n.tableSummaryTitle = e.tableSummaryTitle), (n.tableSummaryText = e.tableSummaryText), (n.tableSummaryColspan = e.tableSummaryColspan), (n.tableSummary = e.tableSummary), (n.tableSummaryAlign = e.tableSummaryAlign), (n.tableSummaryNumFormat = e.tableSummaryNumFormat), (n.upperCase = e.upperCase), n;
1997
1998
  }
@@ -2022,36 +2023,36 @@ var hiprint = (function (t) {
2022
2023
  var _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19),
2023
2024
  _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0),
2024
2025
  TableExcelHelper = (function () {
2025
- function TableExcelHelper() {}
2026
+ function TableExcelHelper () {}
2026
2027
 
2027
2028
  return (
2028
2029
  (TableExcelHelper.createTableHead = function (t, e) {
2029
2030
  for (
2030
2031
  var n = TableExcelHelper.reconsitutionTableColumnTree(t),
2031
- i = $("<thead></thead>"),
2032
- o = TableExcelHelper.getColumnsWidth(n, e),
2033
- r = function r(t) {
2034
- var e = $("<tr></tr>");
2035
- n[t]
2036
- .filter(function (t) {
2037
- return t.checked;
2038
- })
2039
- .forEach(function (t) {
2040
- var n = $("<td></td>");
2041
- t.id && n.attr("id", t.id), t.columnId && n.attr("column-id", t.columnId), (t.align || t.halign) && n.css("text-align", t.halign || t.align), t.vAlign && n.css("vertical-align", t.vAlign), t.colspan > 1 && n.attr("colspan", t.colspan), t.rowspan > 1 && n.attr("rowspan", t.rowspan), n.html(t.title), o[t.id] ? ((t.hasWidth = !0), (t.targetWidth = o[t.id]), n.attr("haswidth", "haswidth"), n.css("width", o[t.id] + "pt")) : (t.hasWidth = !1);
2042
- var s = TableExcelHelper.getHeaderStyler(t);
2043
- if (s) {
2044
- var l = s(t);
2045
- if (l)
2046
- Object.keys(l).forEach(function (t) {
2047
- n.css(t, l[t]);
2048
- });
2049
- }
2050
- e.append(n);
2051
- }),
2052
- i.append(e);
2053
- },
2054
- a = 0;
2032
+ i = $("<thead></thead>"),
2033
+ o = TableExcelHelper.getColumnsWidth(n, e),
2034
+ r = function r (t) {
2035
+ var e = $("<tr></tr>");
2036
+ n[t]
2037
+ .filter(function (t) {
2038
+ return t.checked;
2039
+ })
2040
+ .forEach(function (t) {
2041
+ var n = $("<td></td>");
2042
+ t.id && n.attr("id", t.id), t.columnId && n.attr("column-id", t.columnId), (t.align || t.halign) && n.css("text-align", t.halign || t.align), t.vAlign && n.css("vertical-align", t.vAlign), t.colspan > 1 && n.attr("colspan", t.colspan), t.rowspan > 1 && n.attr("rowspan", t.rowspan), n.html(t.title), o[t.id] ? ((t.hasWidth = !0), (t.targetWidth = o[t.id]), n.attr("haswidth", "haswidth"), n.css("width", o[t.id] + "pt")) : (t.hasWidth = !1);
2043
+ var s = TableExcelHelper.getHeaderStyler(t);
2044
+ if (s) {
2045
+ var l = s(t);
2046
+ if (l)
2047
+ Object.keys(l).forEach(function (t) {
2048
+ n.css(t, l[t]);
2049
+ });
2050
+ }
2051
+ e.append(n);
2052
+ }),
2053
+ i.append(e);
2054
+ },
2055
+ a = 0;
2055
2056
  a < n.totalLayer;
2056
2057
  a++
2057
2058
  ) {
@@ -2167,37 +2168,37 @@ var hiprint = (function (t) {
2167
2168
  var groupFields = gff ? (n.groupFields = gff(i, n, e)) : i.groupFields ? i.groupFields : [];
2168
2169
  (e || (e = []), groupFields.length)
2169
2170
  ? _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a
2170
- .groupBy(e, groupFields, function (t) {
2171
- var e = {};
2172
- return (
2173
- groupFields.forEach(function (n) {
2174
- return (e[n] = t[n]);
2175
- }),
2176
- e
2177
- );
2178
- })
2179
- .forEach(function (t) {
2180
- var groupFormatter = h.getGroupFormatter(n, i);
2181
- if (groupFormatter) {
2182
- var e = $("<tr><td colspan=" + o.colspan + "></td></tr>");
2183
- e.find("td").append(groupFormatter(t, n)), r.append(e);
2184
- }
2185
- var groupFooterFormatter = h.getGroupFooterFormatter(n, i);
2186
- if (
2187
- (t.rows.forEach(function (t, rowIndex) {
2188
- var e = TableExcelHelper.createRowTarget(o, t, n, i, rowIndex);
2189
- r.append(e);
2190
- }),
2171
+ .groupBy(e, groupFields, function (t) {
2172
+ var e = {};
2173
+ return (
2174
+ groupFields.forEach(function (n) {
2175
+ return (e[n] = t[n]);
2176
+ }),
2177
+ e
2178
+ );
2179
+ })
2180
+ .forEach(function (t) {
2181
+ var groupFormatter = h.getGroupFormatter(n, i);
2182
+ if (groupFormatter) {
2183
+ var e = $("<tr><td colspan=" + o.colspan + "></td></tr>");
2184
+ e.find("td").append(groupFormatter(t, n)), r.append(e);
2185
+ }
2186
+ var groupFooterFormatter = h.getGroupFooterFormatter(n, i);
2187
+ if (
2188
+ (t.rows.forEach(function (t, rowIndex) {
2189
+ var e = TableExcelHelper.createRowTarget(o, t, n, i, rowIndex);
2190
+ r.append(e);
2191
+ }),
2191
2192
  groupFooterFormatter)
2192
- ) {
2193
- var a = $("<tr><td colspan=" + o.colspan + "></td></tr>");
2194
- a.find("td").append(groupFooterFormatter(t, n)), r.append(a);
2195
- }
2196
- })
2193
+ ) {
2194
+ var a = $("<tr><td colspan=" + o.colspan + "></td></tr>");
2195
+ a.find("td").append(groupFooterFormatter(t, n)), r.append(a);
2196
+ }
2197
+ })
2197
2198
  : e.forEach(function (t, rowIndex) {
2198
- var e = TableExcelHelper.createRowTarget(o, t, n, i, rowIndex);
2199
- r.append(e);
2200
- });
2199
+ var e = TableExcelHelper.createRowTarget(o, t, n, i, rowIndex);
2200
+ r.append(e);
2201
+ });
2201
2202
  return r;
2202
2203
  }),
2203
2204
  (TableExcelHelper.createRowTarget = function (t, e, n, i, rowIndex) {
@@ -2251,14 +2252,14 @@ var hiprint = (function (t) {
2251
2252
  try {
2252
2253
  p
2253
2254
  ? (JsBarcode(r.find(".hibarcode_imgcode")[0], p, {
2254
- format: t.tableBarcodeMode || "CODE128A",
2255
- width: 1,
2256
- textMargin: -1,
2257
- lineColor: "#000000",
2258
- margin: 0,
2259
- height: parseInt(10),
2260
- displayValue: !1,
2261
- }),
2255
+ format: t.tableBarcodeMode || "CODE128A",
2256
+ width: 1,
2257
+ textMargin: -1,
2258
+ lineColor: "#000000",
2259
+ margin: 0,
2260
+ height: parseInt(10),
2261
+ displayValue: !1,
2262
+ }),
2262
2263
  r.find(".hibarcode_imgcode").attr("height", t.tableColumnHeight || 30 + "pt"),
2263
2264
  r.find(".hibarcode_imgcode").css("margin", "5pt 10pt"),
2264
2265
  r.find(".hibarcode_imgcode").attr("width", "calc(100% - 20pt)"))
@@ -2407,15 +2408,15 @@ var hiprint = (function (t) {
2407
2408
  i.colspan = 0;
2408
2409
 
2409
2410
  for (
2410
- var o = function o(e) {
2411
- (i.totalLayer = e + 1),
2412
- (i[e] = t[e].columns),
2413
- 0 == e &&
2414
- t[e].columns.forEach(function (t) {
2415
- 0 == e && (i.colspan += t.colspan);
2416
- });
2417
- },
2418
- r = 0;
2411
+ var o = function o (e) {
2412
+ (i.totalLayer = e + 1),
2413
+ (i[e] = t[e].columns),
2414
+ 0 == e &&
2415
+ t[e].columns.forEach(function (t) {
2416
+ 0 == e && (i.colspan += t.colspan);
2417
+ });
2418
+ },
2419
+ r = 0;
2419
2420
  r < t.length;
2420
2421
  r++
2421
2422
  ) {
@@ -2589,7 +2590,7 @@ var hiprint = (function (t) {
2589
2590
  });
2590
2591
 
2591
2592
  var i = (function () {
2592
- function t(t) {
2593
+ function t (t) {
2593
2594
  (this.top = t.top), (this.left = t.left), (this.height = t.height), (this.width = t.width), (this.bottomInLastPaper = t.bottomInLastPaper), (this.beginPrintPaperIndex = t.beginPrintPaperIndex), (this.printTopInPaper = t.printTopInPaper), (this.endPrintPaperIndex = t.endPrintPaperIndex);
2594
2595
  }
2595
2596
 
@@ -2605,38 +2606,38 @@ var hiprint = (function (t) {
2605
2606
  "use strict";
2606
2607
 
2607
2608
  var i = (function () {
2608
- function t() {
2609
- this.name = "lineHeight";
2610
- }
2609
+ function t () {
2610
+ this.name = "lineHeight";
2611
+ }
2611
2612
 
2612
- return (
2613
- (t.prototype.css = function (t, e) {
2614
- if (t && t.length) {
2615
- if (e) return t.css("line-height", e + "pt"), "line-height:" + e + "pt";
2616
- t[0].style.lineHeight = "";
2617
- }
2613
+ return (
2614
+ (t.prototype.css = function (t, e) {
2615
+ if (t && t.length) {
2616
+ if (e) return t.css("line-height", e + "pt"), "line-height:" + e + "pt";
2617
+ t[0].style.lineHeight = "";
2618
+ }
2618
2619
 
2619
- return null;
2620
- }),
2621
- (t.prototype.createTarget = function () {
2622
- return (this.target = $(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体行高\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
2623
- }),
2624
- (t.prototype.getValue = function () {
2625
- var t = this.target.find("select").val();
2626
- if (t) return parseFloat(t.toString());
2627
- }),
2628
- (t.prototype.setValue = function (t) {
2629
- t && (this.target.find('option[value="' + t + '"]').length || this.target.find("select").prepend('<option value="' + t + '" >' + t + "</option>"));
2630
- this.target.find("select").val(t);
2631
- }),
2632
- (t.prototype.destroy = function () {
2633
- this.target.remove();
2634
- }),
2635
- t
2636
- );
2637
- })(),
2620
+ return null;
2621
+ }),
2622
+ (t.prototype.createTarget = function () {
2623
+ return (this.target = $(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体行高\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.5" >7.5pt</option>\n <option value="8.25" >8.25pt</option>\n <option value="9" >9pt</option>\n <option value="9.75" >9.75pt</option>\n <option value="10.5" >10.5pt</option>\n <option value="11.25" >11.25pt</option>\n <option value="12" >12pt</option>\n <option value="12.75" >12.75pt</option>\n <option value="13.5" >13pt</option>\n <option value="14.25" >14.25pt</option>\n <option value="15" >15pt</option>\n <option value="15.75" >15.75pt</option>\n <option value="16.5" >16.5pt</option>\n <option value="17.25" >17.25pt</option>\n <option value="18" >18pt</option>\n <option value="18.75" >18.75pt</option>\n <option value="19.5" >19.5pt</option>\n <option value="20.25" >20.25pt</option>\n <option value="21" >21pt</option>\n <option value="21.75" >21.75pt</option>\n <option value="22.5" >22.5pt</option>\n <option value="23.25" >23.25pt</option>\n <option value="24" >24pt</option>\n <option value="24.75" >24.75pt</option>\n <option value="25.5" >25.5pt</option>\n <option value="26.25" >26.25pt</option>\n <option value="27" >27pt</option>\n <option value="27.75" >27.75pt</option>\n <option value="28.5" >28.5pt</option>\n <option value="29.25" >29.25pt</option>\n <option value="30" >30pt</option>\n <option value="30.75" >30.75pt</option>\n <option value="31.5" >31.5pt</option>\n <option value="32.25" >32.25pt</option>\n <option value="33" >33pt</option>\n <option value="33.75" >33.75pt</option>\n <option value="34.5" >34.5pt</option>\n <option value="35.25" >35.25pt</option>\n <option value="36" >36pt</option>\n </select>\n </div>\n </div>')), this.target;
2624
+ }),
2625
+ (t.prototype.getValue = function () {
2626
+ var t = this.target.find("select").val();
2627
+ if (t) return parseFloat(t.toString());
2628
+ }),
2629
+ (t.prototype.setValue = function (t) {
2630
+ t && (this.target.find('option[value="' + t + '"]').length || this.target.find("select").prepend('<option value="' + t + '" >' + t + "</option>"));
2631
+ this.target.find("select").val(t);
2632
+ }),
2633
+ (t.prototype.destroy = function () {
2634
+ this.target.remove();
2635
+ }),
2636
+ t
2637
+ );
2638
+ })(),
2638
2639
  fontFamily = (function () {
2639
- function t() {
2640
+ function t () {
2640
2641
  this.name = "fontFamily";
2641
2642
  }
2642
2643
 
@@ -2677,7 +2678,7 @@ var hiprint = (function (t) {
2677
2678
  );
2678
2679
  })(),
2679
2680
  r = (function () {
2680
- function t() {
2681
+ function t () {
2681
2682
  this.name = "fontSize";
2682
2683
  }
2683
2684
 
@@ -2708,7 +2709,7 @@ var hiprint = (function (t) {
2708
2709
  );
2709
2710
  })(),
2710
2711
  a = (function () {
2711
- function t() {
2712
+ function t () {
2712
2713
  this.name = "fontWeight";
2713
2714
  }
2714
2715
 
@@ -2739,7 +2740,7 @@ var hiprint = (function (t) {
2739
2740
  );
2740
2741
  })(),
2741
2742
  p = (function () {
2742
- function t() {
2743
+ function t () {
2743
2744
  this.name = "letterSpacing";
2744
2745
  }
2745
2746
 
@@ -2770,7 +2771,7 @@ var hiprint = (function (t) {
2770
2771
  );
2771
2772
  })(),
2772
2773
  s = (function () {
2773
- function t() {
2774
+ function t () {
2774
2775
  this.name = "textAlign";
2775
2776
  }
2776
2777
 
@@ -2800,7 +2801,7 @@ var hiprint = (function (t) {
2800
2801
  );
2801
2802
  })(),
2802
2803
  l = (function () {
2803
- function t() {
2804
+ function t () {
2804
2805
  this.name = "hideTitle";
2805
2806
  }
2806
2807
 
@@ -2821,7 +2822,7 @@ var hiprint = (function (t) {
2821
2822
  );
2822
2823
  })(),
2823
2824
  u = (function () {
2824
- function t() {
2825
+ function t () {
2825
2826
  this.name = "tableBorder";
2826
2827
  }
2827
2828
 
@@ -2851,7 +2852,7 @@ var hiprint = (function (t) {
2851
2852
  );
2852
2853
  })(),
2853
2854
  d = (function () {
2854
- function t() {
2855
+ function t () {
2855
2856
  this.name = "tableHeaderBorder";
2856
2857
  }
2857
2858
 
@@ -2881,7 +2882,7 @@ var hiprint = (function (t) {
2881
2882
  );
2882
2883
  })(),
2883
2884
  c = (function () {
2884
- function t() {
2885
+ function t () {
2885
2886
  this.name = "tableHeaderCellBorder";
2886
2887
  }
2887
2888
 
@@ -2911,7 +2912,7 @@ var hiprint = (function (t) {
2911
2912
  );
2912
2913
  })(),
2913
2914
  d2 = (function () {
2914
- function t() {
2915
+ function t () {
2915
2916
  this.name = "tableFooterBorder";
2916
2917
  }
2917
2918
 
@@ -2941,7 +2942,7 @@ var hiprint = (function (t) {
2941
2942
  );
2942
2943
  })(),
2943
2944
  c2 = (function () {
2944
- function t() {
2945
+ function t () {
2945
2946
  this.name = "tableFooterCellBorder";
2946
2947
  }
2947
2948
 
@@ -2971,7 +2972,7 @@ var hiprint = (function (t) {
2971
2972
  );
2972
2973
  })(),
2973
2974
  h = (function () {
2974
- function t() {
2975
+ function t () {
2975
2976
  this.name = "tableHeaderRowHeight";
2976
2977
  }
2977
2978
 
@@ -3004,7 +3005,7 @@ var hiprint = (function (t) {
3004
3005
  );
3005
3006
  })(),
3006
3007
  f = (function () {
3007
- function t() {
3008
+ function t () {
3008
3009
  this.name = "tableHeaderFontSize";
3009
3010
  }
3010
3011
 
@@ -3037,7 +3038,7 @@ var hiprint = (function (t) {
3037
3038
  );
3038
3039
  })(),
3039
3040
  g = (function () {
3040
- function t() {
3041
+ function t () {
3041
3042
  this.name = "tableHeaderFontWeight";
3042
3043
  }
3043
3044
 
@@ -3070,7 +3071,7 @@ var hiprint = (function (t) {
3070
3071
  );
3071
3072
  })(),
3072
3073
  m = (function () {
3073
- function t() {
3074
+ function t () {
3074
3075
  this.name = "tableBodyCellBorder";
3075
3076
  }
3076
3077
 
@@ -3100,7 +3101,7 @@ var hiprint = (function (t) {
3100
3101
  );
3101
3102
  })(),
3102
3103
  v = (function () {
3103
- function t() {
3104
+ function t () {
3104
3105
  this.name = "tableBodyRowHeight";
3105
3106
  }
3106
3107
 
@@ -3133,7 +3134,7 @@ var hiprint = (function (t) {
3133
3134
  );
3134
3135
  })(),
3135
3136
  y = (function () {
3136
- function t() {
3137
+ function t () {
3137
3138
  this.name = "tableHeaderBackground";
3138
3139
  }
3139
3140
 
@@ -3169,7 +3170,7 @@ var hiprint = (function (t) {
3169
3170
  );
3170
3171
  })(),
3171
3172
  b = (function () {
3172
- function t() {
3173
+ function t () {
3173
3174
  this.name = "borderWidth";
3174
3175
  }
3175
3176
 
@@ -3201,7 +3202,7 @@ var hiprint = (function (t) {
3201
3202
  );
3202
3203
  })(),
3203
3204
  E = (function () {
3204
- function t() {
3205
+ function t () {
3205
3206
  this.name = "barcodeMode";
3206
3207
  }
3207
3208
 
@@ -3223,7 +3224,7 @@ var hiprint = (function (t) {
3223
3224
  );
3224
3225
  })(),
3225
3226
  qrCodeLevel = (function () {
3226
- function t() {
3227
+ function t () {
3227
3228
  this.name = "qrCodeLevel";
3228
3229
  }
3229
3230
 
@@ -3245,7 +3246,7 @@ var hiprint = (function (t) {
3245
3246
  );
3246
3247
  })(),
3247
3248
  T = (function () {
3248
- function t() {
3249
+ function t () {
3249
3250
  this.name = "color";
3250
3251
  }
3251
3252
 
@@ -3279,7 +3280,7 @@ var hiprint = (function (t) {
3279
3280
  );
3280
3281
  })(),
3281
3282
  P = (function () {
3282
- function t() {
3283
+ function t () {
3283
3284
  this.name = "textDecoration";
3284
3285
  }
3285
3286
 
@@ -3310,7 +3311,7 @@ var hiprint = (function (t) {
3310
3311
  );
3311
3312
  })(),
3312
3313
  _ = (function () {
3313
- function t() {
3314
+ function t () {
3314
3315
  this.name = "field";
3315
3316
  }
3316
3317
 
@@ -3346,7 +3347,7 @@ var hiprint = (function (t) {
3346
3347
  );
3347
3348
  })(),
3348
3349
  w = (function () {
3349
- function t() {
3350
+ function t () {
3350
3351
  this.name = "title";
3351
3352
  }
3352
3353
 
@@ -3368,7 +3369,7 @@ var hiprint = (function (t) {
3368
3369
  );
3369
3370
  })(),
3370
3371
  x = (function () {
3371
- function t() {
3372
+ function t () {
3372
3373
  this.name = "testData";
3373
3374
  }
3374
3375
 
@@ -3390,7 +3391,7 @@ var hiprint = (function (t) {
3390
3391
  );
3391
3392
  })(),
3392
3393
  coordinate = (function () {
3393
- function t() {
3394
+ function t () {
3394
3395
  this.name = "coordinate";
3395
3396
  }
3396
3397
 
@@ -3459,7 +3460,7 @@ var hiprint = (function (t) {
3459
3460
  );
3460
3461
  })(),
3461
3462
  widthHeight = (function () {
3462
- function t() {
3463
+ function t () {
3463
3464
  this.name = "widthHeight";
3464
3465
  }
3465
3466
 
@@ -3528,7 +3529,7 @@ var hiprint = (function (t) {
3528
3529
  );
3529
3530
  })(),
3530
3531
  C = (function () {
3531
- function t() {
3532
+ function t () {
3532
3533
  this.name = "src";
3533
3534
  }
3534
3535
 
@@ -3609,7 +3610,7 @@ var hiprint = (function (t) {
3609
3610
  );
3610
3611
  })(),
3611
3612
  imageFit = (function () {
3612
- function t() {
3613
+ function t () {
3613
3614
  this.name = "fit";
3614
3615
  }
3615
3616
 
@@ -3638,7 +3639,7 @@ var hiprint = (function (t) {
3638
3639
  );
3639
3640
  })(),
3640
3641
  O = (function () {
3641
- function t() {
3642
+ function t () {
3642
3643
  this.name = "borderColor";
3643
3644
  }
3644
3645
 
@@ -3673,7 +3674,7 @@ var hiprint = (function (t) {
3673
3674
  );
3674
3675
  })(),
3675
3676
  watermarkOptions = (function () {
3676
- function t() {
3677
+ function t () {
3677
3678
  this.name = "watermarkOptions";
3678
3679
  }
3679
3680
  return (
@@ -3741,7 +3742,7 @@ var hiprint = (function (t) {
3741
3742
  );
3742
3743
  })(),
3743
3744
  H = (function () {
3744
- function t() {
3745
+ function t () {
3745
3746
  this.name = "paperNumberFormat";
3746
3747
  }
3747
3748
 
@@ -3763,7 +3764,7 @@ var hiprint = (function (t) {
3763
3764
  );
3764
3765
  })(),
3765
3766
  D = (function () {
3766
- function t() {
3767
+ function t () {
3767
3768
  this.name = "paperNumberDisabled";
3768
3769
  }
3769
3770
 
@@ -3784,7 +3785,7 @@ var hiprint = (function (t) {
3784
3785
  );
3785
3786
  })(),
3786
3787
  paperNumberContinue = (function () {
3787
- function t() {
3788
+ function t () {
3788
3789
  this.name = "paperNumberContinue";
3789
3790
  }
3790
3791
 
@@ -3805,7 +3806,7 @@ var hiprint = (function (t) {
3805
3806
  );
3806
3807
  })(),
3807
3808
  I = (function () {
3808
- function t() {
3809
+ function t () {
3809
3810
  this.name = "longTextIndent";
3810
3811
  }
3811
3812
 
@@ -3831,7 +3832,7 @@ var hiprint = (function (t) {
3831
3832
  );
3832
3833
  })(),
3833
3834
  R = (function () {
3834
- function t() {
3835
+ function t () {
3835
3836
  this.name = "showInPage";
3836
3837
  }
3837
3838
 
@@ -3860,7 +3861,7 @@ var hiprint = (function (t) {
3860
3861
  );
3861
3862
  })(),
3862
3863
  pageBreak = (function () {
3863
- function t() {
3864
+ function t () {
3864
3865
  this.name = "pageBreak";
3865
3866
  }
3866
3867
 
@@ -3888,7 +3889,7 @@ var hiprint = (function (t) {
3888
3889
  );
3889
3890
  })(),
3890
3891
  M = (function () {
3891
- function t() {
3892
+ function t () {
3892
3893
  this.name = "panelPaperRule";
3893
3894
  }
3894
3895
 
@@ -3910,7 +3911,7 @@ var hiprint = (function (t) {
3910
3911
  );
3911
3912
  })(),
3912
3913
  M2 = (function () {
3913
- function t() {
3914
+ function t () {
3914
3915
  this.name = "panelPageRule";
3915
3916
  }
3916
3917
 
@@ -3932,7 +3933,7 @@ var hiprint = (function (t) {
3932
3933
  );
3933
3934
  })(),
3934
3935
  S = (function () {
3935
- function t() {
3936
+ function t () {
3936
3937
  this.name = "leftSpaceRemoved";
3937
3938
  }
3938
3939
 
@@ -3953,7 +3954,7 @@ var hiprint = (function (t) {
3953
3954
  );
3954
3955
  })(),
3955
3956
  B = (function () {
3956
- function t() {
3957
+ function t () {
3957
3958
  this.name = "firstPaperFooter";
3958
3959
  }
3959
3960
 
@@ -3975,7 +3976,7 @@ var hiprint = (function (t) {
3975
3976
  );
3976
3977
  })(),
3977
3978
  F = (function () {
3978
- function t() {
3979
+ function t () {
3979
3980
  this.name = "lastPaperFooter";
3980
3981
  }
3981
3982
 
@@ -3997,7 +3998,7 @@ var hiprint = (function (t) {
3997
3998
  );
3998
3999
  })(),
3999
4000
  L = (function () {
4000
- function t() {
4001
+ function t () {
4001
4002
  this.name = "evenPaperFooter";
4002
4003
  }
4003
4004
 
@@ -4019,7 +4020,7 @@ var hiprint = (function (t) {
4019
4020
  );
4020
4021
  })(),
4021
4022
  A = (function () {
4022
- function t() {
4023
+ function t () {
4023
4024
  this.name = "oddPaperFooter";
4024
4025
  }
4025
4026
 
@@ -4041,7 +4042,7 @@ var hiprint = (function (t) {
4041
4042
  );
4042
4043
  })(),
4043
4044
  z = (function () {
4044
- function t() {
4045
+ function t () {
4045
4046
  this.name = "fixed";
4046
4047
  }
4047
4048
 
@@ -4062,7 +4063,7 @@ var hiprint = (function (t) {
4062
4063
  );
4063
4064
  })(),
4064
4065
  k = (function () {
4065
- function t() {
4066
+ function t () {
4066
4067
  this.name = "axis";
4067
4068
  }
4068
4069
 
@@ -4084,7 +4085,7 @@ var hiprint = (function (t) {
4084
4085
  );
4085
4086
  })(),
4086
4087
  N = (function () {
4087
- function t() {
4088
+ function t () {
4088
4089
  this.name = "leftOffset";
4089
4090
  }
4090
4091
 
@@ -4106,7 +4107,7 @@ var hiprint = (function (t) {
4106
4107
  );
4107
4108
  })(),
4108
4109
  V = (function () {
4109
- function t() {
4110
+ function t () {
4110
4111
  this.name = "lHeight";
4111
4112
  }
4112
4113
 
@@ -4128,7 +4129,7 @@ var hiprint = (function (t) {
4128
4129
  );
4129
4130
  })(),
4130
4131
  W = (function () {
4131
- function t() {
4132
+ function t () {
4132
4133
  this.name = "unShowInPage";
4133
4134
  }
4134
4135
 
@@ -4150,7 +4151,7 @@ var hiprint = (function (t) {
4150
4151
  );
4151
4152
  })(),
4152
4153
  j = (function () {
4153
- function t() {
4154
+ function t () {
4154
4155
  this.name = "tableBodyRowBorder";
4155
4156
  }
4156
4157
 
@@ -4180,7 +4181,7 @@ var hiprint = (function (t) {
4180
4181
  );
4181
4182
  })(),
4182
4183
  U = (function () {
4183
- function t() {
4184
+ function t () {
4184
4185
  this.name = "transform";
4185
4186
  }
4186
4187
 
@@ -4214,7 +4215,7 @@ var hiprint = (function (t) {
4214
4215
  );
4215
4216
  })(),
4216
4217
  zIndex = (function () {
4217
- function t() {
4218
+ function t () {
4218
4219
  this.name = "zIndex";
4219
4220
  }
4220
4221
 
@@ -4242,7 +4243,7 @@ var hiprint = (function (t) {
4242
4243
  );
4243
4244
  })(),
4244
4245
  K = (function () {
4245
- function t() {
4246
+ function t () {
4246
4247
  this.name = "optionsGroup";
4247
4248
  }
4248
4249
 
@@ -4259,7 +4260,7 @@ var hiprint = (function (t) {
4259
4260
  );
4260
4261
  })(),
4261
4262
  G = (function () {
4262
- function t() {
4263
+ function t () {
4263
4264
  this.name = "borderTop";
4264
4265
  }
4265
4266
 
@@ -4289,7 +4290,7 @@ var hiprint = (function (t) {
4289
4290
  );
4290
4291
  })(),
4291
4292
  q = (function () {
4292
- function t() {
4293
+ function t () {
4293
4294
  this.name = "borderLeft";
4294
4295
  }
4295
4296
 
@@ -4319,7 +4320,7 @@ var hiprint = (function (t) {
4319
4320
  );
4320
4321
  })(),
4321
4322
  X = (function () {
4322
- function t() {
4323
+ function t () {
4323
4324
  this.name = "borderRight";
4324
4325
  }
4325
4326
 
@@ -4349,7 +4350,7 @@ var hiprint = (function (t) {
4349
4350
  );
4350
4351
  })(),
4351
4352
  Y = (function () {
4352
- function t() {
4353
+ function t () {
4353
4354
  this.name = "borderBottom";
4354
4355
  }
4355
4356
 
@@ -4379,7 +4380,7 @@ var hiprint = (function (t) {
4379
4380
  );
4380
4381
  })(),
4381
4382
  J = (function () {
4382
- function t() {
4383
+ function t () {
4383
4384
  this.name = "contentPaddingLeft";
4384
4385
  }
4385
4386
 
@@ -4412,7 +4413,7 @@ var hiprint = (function (t) {
4412
4413
  );
4413
4414
  })(),
4414
4415
  Q = (function () {
4415
- function t() {
4416
+ function t () {
4416
4417
  this.name = "contentPaddingTop";
4417
4418
  }
4418
4419
 
@@ -4445,7 +4446,7 @@ var hiprint = (function (t) {
4445
4446
  );
4446
4447
  })(),
4447
4448
  Z = (function () {
4448
- function t() {
4449
+ function t () {
4449
4450
  this.name = "contentPaddingRight";
4450
4451
  }
4451
4452
 
@@ -4478,7 +4479,7 @@ var hiprint = (function (t) {
4478
4479
  );
4479
4480
  })(),
4480
4481
  tt = (function () {
4481
- function t() {
4482
+ function t () {
4482
4483
  this.name = "contentPaddingBottom";
4483
4484
  }
4484
4485
 
@@ -4511,7 +4512,7 @@ var hiprint = (function (t) {
4511
4512
  );
4512
4513
  })(),
4513
4514
  et = (function () {
4514
- function t() {
4515
+ function t () {
4515
4516
  this.name = "borderStyle";
4516
4517
  }
4517
4518
 
@@ -4542,7 +4543,7 @@ var hiprint = (function (t) {
4542
4543
  );
4543
4544
  })(),
4544
4545
  nt = (function () {
4545
- function t() {
4546
+ function t () {
4546
4547
  this.name = "backgroundColor";
4547
4548
  }
4548
4549
 
@@ -4576,7 +4577,7 @@ var hiprint = (function (t) {
4576
4577
  );
4577
4578
  })(),
4578
4579
  it = (function () {
4579
- function t() {
4580
+ function t () {
4580
4581
  this.name = "orient";
4581
4582
  }
4582
4583
 
@@ -4598,7 +4599,7 @@ var hiprint = (function (t) {
4598
4599
  );
4599
4600
  })(),
4600
4601
  ot = (function () {
4601
- function t() {
4602
+ function t () {
4602
4603
  this.name = "textContentVerticalAlign";
4603
4604
  }
4604
4605
 
@@ -4628,7 +4629,7 @@ var hiprint = (function (t) {
4628
4629
  );
4629
4630
  })(),
4630
4631
  textWrap = (function () {
4631
- function t() {
4632
+ function t () {
4632
4633
  this.name = "textContentWrap";
4633
4634
  }
4634
4635
 
@@ -4662,7 +4663,7 @@ var hiprint = (function (t) {
4662
4663
  })(),
4663
4664
  rt = n(5),
4664
4665
  at = (function () {
4665
- function t() {
4666
+ function t () {
4666
4667
  this.name = "columns";
4667
4668
  }
4668
4669
 
@@ -4693,14 +4694,14 @@ var hiprint = (function (t) {
4693
4694
  });
4694
4695
  (this.allColumns = t[0].columns.concat(r)),
4695
4696
  t &&
4696
- 1 == t.length &&
4697
- (this.target.find("ul").html(
4698
- this.allColumns
4699
- .map(function (t, e) {
4700
- return '<li class="hiprint-option-table-selected-item"> <div class="hi-pretty p-default">\n ' + (t.checked ? '<input type="checkbox" checked column-id="' + (t.id || t.columnId) + '" />' : '<input type="checkbox" column-id="' + (t.id || t.columnId) + '" />') + '\n <div class="state">\n <label></label>\n </div>\n </div><span class="column-title">' + (t.title || t.descTitle || "") + "</span></li>";
4701
- })
4702
- .join("")
4703
- ),
4697
+ 1 == t.length &&
4698
+ (this.target.find("ul").html(
4699
+ this.allColumns
4700
+ .map(function (t, e) {
4701
+ return '<li class="hiprint-option-table-selected-item"> <div class="hi-pretty p-default">\n ' + (t.checked ? '<input type="checkbox" checked column-id="' + (t.id || t.columnId) + '" />' : '<input type="checkbox" column-id="' + (t.id || t.columnId) + '" />') + '\n <div class="state">\n <label></label>\n </div>\n </div><span class="column-title">' + (t.title || t.descTitle || "") + "</span></li>";
4702
+ })
4703
+ .join("")
4704
+ ),
4704
4705
  this.target.find("input").change(function (e) {
4705
4706
  var checked = e.target.checked,
4706
4707
  id = e.target.attributes["column-id"].nodeValue || "";
@@ -4713,26 +4714,26 @@ var hiprint = (function (t) {
4713
4714
  i.submit();
4714
4715
  }),
4715
4716
  this.printElementType.columnDisplayIndexEditable &&
4716
- this.target
4717
- .find("li")
4718
- .hidraggable({
4719
- revert: !0,
4720
- handle: ".column-title",
4721
- moveUnit: "pt",
4722
- deltaX: 0,
4723
- deltaY: 0,
4724
- })
4725
- .hidroppable({
4726
- onDragOver: function onDragOver(t, e) {
4727
- $(this).css("border-top-color", "red");
4728
- },
4729
- onDragLeave: function onDragLeave(t, e) {
4730
- $(this).css("border-top-color", "");
4731
- },
4732
- onDrop: function onDrop(t, e) {
4733
- $(e).insertBefore(this), $(this).css("border-top-color", ""), o.submit();
4734
- },
4735
- }));
4717
+ this.target
4718
+ .find("li")
4719
+ .hidraggable({
4720
+ revert: !0,
4721
+ handle: ".column-title",
4722
+ moveUnit: "pt",
4723
+ deltaX: 0,
4724
+ deltaY: 0,
4725
+ })
4726
+ .hidroppable({
4727
+ onDragOver: function onDragOver (t, e) {
4728
+ $(this).css("border-top-color", "red");
4729
+ },
4730
+ onDragLeave: function onDragLeave (t, e) {
4731
+ $(this).css("border-top-color", "");
4732
+ },
4733
+ onDrop: function onDrop (t, e) {
4734
+ $(e).insertBefore(this), $(this).css("border-top-color", ""), o.submit();
4735
+ },
4736
+ }));
4736
4737
  }),
4737
4738
  (t.prototype.buildData = function () {
4738
4739
  var t = this,
@@ -4758,7 +4759,7 @@ var hiprint = (function (t) {
4758
4759
  );
4759
4760
  })(),
4760
4761
  pt = (function () {
4761
- function t() {
4762
+ function t () {
4762
4763
  this.name = "textType";
4763
4764
  }
4764
4765
 
@@ -4780,7 +4781,7 @@ var hiprint = (function (t) {
4780
4781
  );
4781
4782
  })(),
4782
4783
  tablept = (function () {
4783
- function t() {
4784
+ function t () {
4784
4785
  this.name = "tableTextType";
4785
4786
  }
4786
4787
 
@@ -4802,7 +4803,7 @@ var hiprint = (function (t) {
4802
4803
  );
4803
4804
  })(),
4804
4805
  tableE = (function () {
4805
- function t() {
4806
+ function t () {
4806
4807
  this.name = "tableBarcodeMode";
4807
4808
  }
4808
4809
 
@@ -4824,7 +4825,7 @@ var hiprint = (function (t) {
4824
4825
  );
4825
4826
  })(),
4826
4827
  tableQRCodeLevel = (function () {
4827
- function t() {
4828
+ function t () {
4828
4829
  this.name = "tableQRCodeLevel";
4829
4830
  }
4830
4831
 
@@ -4846,7 +4847,7 @@ var hiprint = (function (t) {
4846
4847
  );
4847
4848
  })(),
4848
4849
  tableColumnH = (function () {
4849
- function t() {
4850
+ function t () {
4850
4851
  this.name = "tableColumnHeight";
4851
4852
  }
4852
4853
 
@@ -4868,7 +4869,7 @@ var hiprint = (function (t) {
4868
4869
  );
4869
4870
  })(),
4870
4871
  tableSummaryTitle = (function () {
4871
- function t() {
4872
+ function t () {
4872
4873
  this.name = "tableSummaryTitle";
4873
4874
  }
4874
4875
 
@@ -4889,7 +4890,7 @@ var hiprint = (function (t) {
4889
4890
  );
4890
4891
  })(),
4891
4892
  tableSummaryText = (function () {
4892
- function t() {
4893
+ function t () {
4893
4894
  this.name = "tableSummaryText";
4894
4895
  }
4895
4896
 
@@ -4911,7 +4912,7 @@ var hiprint = (function (t) {
4911
4912
  );
4912
4913
  })(),
4913
4914
  tableSummaryColspan = (function () {
4914
- function t() {
4915
+ function t () {
4915
4916
  this.name = "tableSummaryColspan";
4916
4917
  }
4917
4918
 
@@ -4933,7 +4934,7 @@ var hiprint = (function (t) {
4933
4934
  );
4934
4935
  })(),
4935
4936
  tableSummaryAlign = (function () {
4936
- function t() {
4937
+ function t () {
4937
4938
  this.name = "tableSummaryAlign";
4938
4939
  }
4939
4940
 
@@ -4955,7 +4956,7 @@ var hiprint = (function (t) {
4955
4956
  );
4956
4957
  })(),
4957
4958
  tableSummaryNumFormat = (function () {
4958
- function t() {
4959
+ function t () {
4959
4960
  this.name = "tableSummaryNumFormat";
4960
4961
  }
4961
4962
 
@@ -4988,7 +4989,7 @@ var hiprint = (function (t) {
4988
4989
  );
4989
4990
  })(),
4990
4991
  upperCase = (function () {
4991
- function t() {
4992
+ function t () {
4992
4993
  this.name = "upperCase";
4993
4994
  }
4994
4995
  return (
@@ -5026,7 +5027,7 @@ var hiprint = (function (t) {
5026
5027
  })(),
5027
5028
  // 表格底部合计栏
5028
5029
  tableSummary = (function () {
5029
- function t() {
5030
+ function t () {
5030
5031
  this.name = "tableSummary";
5031
5032
  }
5032
5033
 
@@ -5047,7 +5048,7 @@ var hiprint = (function (t) {
5047
5048
  );
5048
5049
  })(),
5049
5050
  st = (function () {
5050
- function t() {
5051
+ function t () {
5051
5052
  this.name = "topOffset";
5052
5053
  }
5053
5054
 
@@ -5069,7 +5070,7 @@ var hiprint = (function (t) {
5069
5070
  );
5070
5071
  })(),
5071
5072
  lt = (function () {
5072
- function t() {
5073
+ function t () {
5073
5074
  this.name = "gridColumns";
5074
5075
  }
5075
5076
 
@@ -5092,7 +5093,7 @@ var hiprint = (function (t) {
5092
5093
  );
5093
5094
  })(),
5094
5095
  ut = (function () {
5095
- function t() {
5096
+ function t () {
5096
5097
  this.name = "gridColumnsGutter";
5097
5098
  }
5098
5099
 
@@ -5139,7 +5140,7 @@ var hiprint = (function (t) {
5139
5140
  );
5140
5141
  })(),
5141
5142
  ith = (function () {
5142
- function t() {
5143
+ function t () {
5143
5144
  this.name = "tableHeaderRepeat";
5144
5145
  }
5145
5146
 
@@ -5161,7 +5162,7 @@ var hiprint = (function (t) {
5161
5162
  );
5162
5163
  })(),
5163
5164
  dt = (function () {
5164
- function t() {
5165
+ function t () {
5165
5166
  this.name = "paddingLeft";
5166
5167
  }
5167
5168
 
@@ -5194,7 +5195,7 @@ var hiprint = (function (t) {
5194
5195
  );
5195
5196
  })(),
5196
5197
  ct = (function () {
5197
- function t() {
5198
+ function t () {
5198
5199
  this.name = "paddingRight";
5199
5200
  }
5200
5201
 
@@ -5227,7 +5228,7 @@ var hiprint = (function (t) {
5227
5228
  );
5228
5229
  })(),
5229
5230
  ht = (function () {
5230
- function t() {
5231
+ function t () {
5231
5232
  this.name = "dataType";
5232
5233
  }
5233
5234
 
@@ -5272,7 +5273,7 @@ var hiprint = (function (t) {
5272
5273
  );
5273
5274
  })(),
5274
5275
  ft = (function () {
5275
- function t() {
5276
+ function t () {
5276
5277
  this.name = "formatter";
5277
5278
  }
5278
5279
 
@@ -5295,7 +5296,7 @@ var hiprint = (function (t) {
5295
5296
  );
5296
5297
  })(),
5297
5298
  gt = (function () {
5298
- function t() {
5299
+ function t () {
5299
5300
  this.name = "styler";
5300
5301
  }
5301
5302
 
@@ -5317,7 +5318,7 @@ var hiprint = (function (t) {
5317
5318
  );
5318
5319
  })(),
5319
5320
  rowcolumns = (function () {
5320
- function t() {
5321
+ function t () {
5321
5322
  this.name = "rowsColumnsMerge";
5322
5323
  }
5323
5324
 
@@ -5339,7 +5340,7 @@ var hiprint = (function (t) {
5339
5340
  );
5340
5341
  })(),
5341
5342
  rowsColumnsMergeClean = (function () {
5342
- function t() {
5343
+ function t () {
5343
5344
  this.name = "rowsColumnsMergeClean";
5344
5345
  }
5345
5346
 
@@ -5360,7 +5361,7 @@ var hiprint = (function (t) {
5360
5361
  );
5361
5362
  })(),
5362
5363
  mt = (function () {
5363
- function t() {
5364
+ function t () {
5364
5365
  this.name = "footerFormatter";
5365
5366
  }
5366
5367
 
@@ -5382,7 +5383,7 @@ var hiprint = (function (t) {
5382
5383
  );
5383
5384
  })(),
5384
5385
  groupFieldsFormatter = (function () {
5385
- function t() {
5386
+ function t () {
5386
5387
  this.name = "groupFieldsFormatter";
5387
5388
  }
5388
5389
 
@@ -5404,7 +5405,7 @@ var hiprint = (function (t) {
5404
5405
  );
5405
5406
  })(),
5406
5407
  groupFormatter = (function () {
5407
- function t() {
5408
+ function t () {
5408
5409
  this.name = "groupFormatter";
5409
5410
  }
5410
5411
 
@@ -5426,7 +5427,7 @@ var hiprint = (function (t) {
5426
5427
  );
5427
5428
  })(),
5428
5429
  groupFooterFormatter = (function () {
5429
- function t() {
5430
+ function t () {
5430
5431
  this.name = "groupFooterFormatter";
5431
5432
  }
5432
5433
 
@@ -5448,7 +5449,7 @@ var hiprint = (function (t) {
5448
5449
  );
5449
5450
  })(),
5450
5451
  vt = (function () {
5451
- function t() {
5452
+ function t () {
5452
5453
  this.name = "gridColumnsFooterFormatter";
5453
5454
  }
5454
5455
 
@@ -5470,7 +5471,7 @@ var hiprint = (function (t) {
5470
5471
  );
5471
5472
  })(),
5472
5473
  yt = (function () {
5473
- function t() {
5474
+ function t () {
5474
5475
  this.name = "rowStyler";
5475
5476
  }
5476
5477
 
@@ -5492,7 +5493,7 @@ var hiprint = (function (t) {
5492
5493
  );
5493
5494
  })(),
5494
5495
  bt = (function () {
5495
- function t() {
5496
+ function t () {
5496
5497
  this.name = "align";
5497
5498
  }
5498
5499
 
@@ -5514,7 +5515,7 @@ var hiprint = (function (t) {
5514
5515
  );
5515
5516
  })(),
5516
5517
  Et = (function () {
5517
- function t() {
5518
+ function t () {
5518
5519
  this.name = "vAlign";
5519
5520
  }
5520
5521
 
@@ -5536,7 +5537,7 @@ var hiprint = (function (t) {
5536
5537
  );
5537
5538
  })(),
5538
5539
  Tt = (function () {
5539
- function t() {
5540
+ function t () {
5540
5541
  this.name = "halign";
5541
5542
  }
5542
5543
 
@@ -5558,7 +5559,7 @@ var hiprint = (function (t) {
5558
5559
  );
5559
5560
  })(),
5560
5561
  Pt = (function () {
5561
- function t() {
5562
+ function t () {
5562
5563
  this.name = "styler2";
5563
5564
  }
5564
5565
 
@@ -5580,7 +5581,7 @@ var hiprint = (function (t) {
5580
5581
  );
5581
5582
  })(),
5582
5583
  stylerHeader = (function () {
5583
- function t() {
5584
+ function t () {
5584
5585
  this.name = "stylerHeader";
5585
5586
  }
5586
5587
 
@@ -5602,7 +5603,7 @@ var hiprint = (function (t) {
5602
5603
  );
5603
5604
  })(),
5604
5605
  _t = (function () {
5605
- function t() {
5606
+ function t () {
5606
5607
  this.name = "formatter2";
5607
5608
  }
5608
5609
 
@@ -5624,7 +5625,7 @@ var hiprint = (function (t) {
5624
5625
  );
5625
5626
  })(),
5626
5627
  renderFormatter = (function () {
5627
- function t() {
5628
+ function t () {
5628
5629
  this.name = "renderFormatter";
5629
5630
  }
5630
5631
 
@@ -5646,7 +5647,7 @@ var hiprint = (function (t) {
5646
5647
  );
5647
5648
  })(),
5648
5649
  wt = (function () {
5649
- function t() {
5650
+ function t () {
5650
5651
  this.name = "autoCompletion";
5651
5652
  }
5652
5653
 
@@ -5667,7 +5668,7 @@ var hiprint = (function (t) {
5667
5668
  );
5668
5669
  })(),
5669
5670
  maxRows = (function () {
5670
- function t() {
5671
+ function t () {
5671
5672
  this.name = "maxRows";
5672
5673
  }
5673
5674
 
@@ -5689,7 +5690,7 @@ var hiprint = (function (t) {
5689
5690
  );
5690
5691
  })(),
5691
5692
  xt = (function () {
5692
- function t() {
5693
+ function t () {
5693
5694
  this.name = "tableFooterRepeat";
5694
5695
  }
5695
5696
 
@@ -5716,15 +5717,15 @@ var hiprint = (function (t) {
5716
5717
  });
5717
5718
 
5718
5719
  var Ct = (function () {
5719
- function t() {}
5720
+ function t () {}
5720
5721
 
5721
5722
  return (
5722
5723
  (t.init = function () {
5723
5724
  t.printElementOptionItems ||
5724
5725
  ((t.printElementOptionItems = {}),
5725
- t._printElementOptionItems.forEach(function (e) {
5726
- t.printElementOptionItems[e.name] = e;
5727
- }));
5726
+ t._printElementOptionItems.forEach(function (e) {
5727
+ t.printElementOptionItems[e.name] = e;
5728
+ }));
5728
5729
  }),
5729
5730
  (t.registerItem = function (e) {
5730
5731
  if (!e.name) throw new Error("styleItem must have name");
@@ -5750,7 +5751,7 @@ var hiprint = (function (t) {
5750
5751
 
5751
5752
  var i = n(14),
5752
5753
  o = (function () {
5753
- function t(t, e) {
5754
+ function t (t, e) {
5754
5755
  (this.selectedCells = []), (this.rows = t), (this.tableTatget = e);
5755
5756
  }
5756
5757
 
@@ -5844,7 +5845,7 @@ var hiprint = (function (t) {
5844
5845
  });
5845
5846
 
5846
5847
  var i = (function () {
5847
- function t() {}
5848
+ function t () {}
5848
5849
 
5849
5850
  return (
5850
5851
  (t.createId = function () {
@@ -5866,7 +5867,7 @@ var hiprint = (function (t) {
5866
5867
  o = n(5),
5867
5868
  r = n(13),
5868
5869
  a =
5869
- ((_i = function i(t, e) {
5870
+ ((_i = function i (t, e) {
5870
5871
  return (_i =
5871
5872
  Object.setPrototypeOf ||
5872
5873
  (_instanceof(
@@ -5884,24 +5885,24 @@ var hiprint = (function (t) {
5884
5885
  }
5885
5886
  })(t, e);
5886
5887
  }),
5887
- function (t, e) {
5888
- function n() {
5889
- this.constructor = t;
5890
- }
5888
+ function (t, e) {
5889
+ function n () {
5890
+ this.constructor = t;
5891
+ }
5891
5892
 
5892
- _i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
5893
- }),
5893
+ _i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
5894
+ }),
5894
5895
  p = (function (t) {
5895
- function e(e) {
5896
+ function e (e) {
5896
5897
  var n = t.call(this) || this;
5897
5898
  ((n.columns = []), e && e.constructor === Array)
5898
5899
  ? (e || []).forEach(function (t) {
5899
- n.columns.push(new o.a(t));
5900
- })
5900
+ n.columns.push(new o.a(t));
5901
+ })
5901
5902
  : e.columns &&
5902
- (e.columns || []).forEach(function (t) {
5903
- n.columns.push(new o.a(t));
5904
- });
5903
+ (e.columns || []).forEach(function (t) {
5904
+ n.columns.push(new o.a(t));
5905
+ });
5905
5906
  return n;
5906
5907
  }
5907
5908
 
@@ -5911,8 +5912,8 @@ var hiprint = (function (t) {
5911
5912
  var t = [];
5912
5913
  var all = this.allColumns
5913
5914
  ? this.allColumns.filter(function (c) {
5914
- return !c.checked;
5915
- })
5915
+ return !c.checked;
5916
+ })
5916
5917
  : [];
5917
5918
  return (
5918
5919
  [...this.columns, ...all].forEach(function (e) {
@@ -5935,7 +5936,7 @@ var hiprint = (function (t) {
5935
5936
  var i = n(11),
5936
5937
  o = n(5),
5937
5938
  r = (function () {
5938
- function t() {
5939
+ function t () {
5939
5940
  this.id = i.a.createId();
5940
5941
  }
5941
5942
 
@@ -6016,7 +6017,7 @@ var hiprint = (function (t) {
6016
6017
 
6017
6018
  var i = n(10),
6018
6019
  o = (function () {
6019
- function t() {}
6020
+ function t () {}
6020
6021
 
6021
6022
  return (
6022
6023
  (t.mergeRect = function (t, e) {
@@ -6059,7 +6060,7 @@ var hiprint = (function (t) {
6059
6060
  _table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20),
6060
6061
  _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2),
6061
6062
  __extends =
6062
- ((_extendStatics = function extendStatics(t, e) {
6063
+ ((_extendStatics = function extendStatics (t, e) {
6063
6064
  return (_extendStatics =
6064
6065
  Object.setPrototypeOf ||
6065
6066
  (_instanceof(
@@ -6077,16 +6078,16 @@ var hiprint = (function (t) {
6077
6078
  }
6078
6079
  })(t, e);
6079
6080
  }),
6080
- function (t, e) {
6081
- function n() {
6082
- this.constructor = t;
6083
- }
6081
+ function (t, e) {
6082
+ function n () {
6083
+ this.constructor = t;
6084
+ }
6084
6085
 
6085
- _extendStatics(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
6086
- }),
6086
+ _extendStatics(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
6087
+ }),
6087
6088
  _extendStatics,
6088
6089
  TablePrintElement = (function (_super) {
6089
- function TablePrintElement(t, e) {
6090
+ function TablePrintElement (t, e) {
6090
6091
  var n = _super.call(this, t) || this;
6091
6092
  return (n.gridColumnsFooterCss = "hiprint-gridColumnsFooter"), (n.tableGridRowCss = "table-grid-row"), (n.options = new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(e, n.printElementType)), n.options.setDefault(new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table.default).getPrintElementOptionEntity()), n;
6092
6093
  }
@@ -6118,11 +6119,11 @@ var hiprint = (function (t) {
6118
6119
  (this.designPaper = t),
6119
6120
  this.designTarget.find("td").hidroppable({
6120
6121
  accept: ".rn-draggable-item",
6121
- onDrop: function onDrop(t, e) {},
6122
- onDragEnter: function onDragEnter(t, e) {
6122
+ onDrop: function onDrop (t, e) {},
6123
+ onDragEnter: function onDragEnter (t, e) {
6123
6124
  $(e).removeClass("rn-draggable-item");
6124
6125
  },
6125
- onDragLeave: function onDragLeave(t, e) {
6126
+ onDragLeave: function onDragLeave (t, e) {
6126
6127
  $(e).addClass("rn-draggable-item");
6127
6128
  },
6128
6129
  }),
@@ -6183,22 +6184,22 @@ var hiprint = (function (t) {
6183
6184
  // 页脚导致 分页高度的问题, -> 获取到表格脚高度后移除避免重复
6184
6185
  var tfh = r.find("tfoot").outerHeight() || 0;
6185
6186
  r.find("tfoot").remove();
6186
- for (var a, p = this.getBeginPrintTopInPaperByReferenceElement(t), s = 0, l = !1; !l; ) {
6187
+ for (var a, p = this.getBeginPrintTopInPaperByReferenceElement(t), s = 0, l = !1; !l;) {
6187
6188
  var u = 0,
6188
6189
  d = t.getPaperFooter(s);
6189
6190
  0 == s &&
6190
6191
  p > d &&
6191
6192
  "none" != t.panelPageRule &&
6192
6193
  ((p = p - d + t.paperHeader),
6193
- n.push(
6194
- new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({
6195
- target: void 0,
6196
- printLine: void 0,
6197
- })
6198
- ),
6199
- (u = t.getContentHeight(s) - (p - t.paperHeader)),
6200
- s++,
6201
- (d = t.getPaperFooter(s)));
6194
+ n.push(
6195
+ new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({
6196
+ target: void 0,
6197
+ printLine: void 0,
6198
+ })
6199
+ ),
6200
+ (u = t.getContentHeight(s) - (p - t.paperHeader)),
6201
+ s++,
6202
+ (d = t.getPaperFooter(s)));
6202
6203
  var c = n.length > 0 ? n[n.length - 1].target : void 0,
6203
6204
  h = this.getRowsInSpecificHeight(e, u > 0 ? u : 0 == s ? d - p : t.getContentHeight(s), r, o, s, c, tfh);
6204
6205
  l = h.isEnd;
@@ -6291,7 +6292,7 @@ var hiprint = (function (t) {
6291
6292
  };
6292
6293
  var getGridColumns = this.options.getGridColumns();
6293
6294
  for (var l = [], u = 0; u < getGridColumns; u++) {
6294
- for (var d = n.find(".hiprint-printElement-tableTarget:eq(" + u + ")"), c = void 0, h = []; ; ) {
6295
+ for (var d = n.find(".hiprint-printElement-tableTarget:eq(" + u + ")"), c = void 0, h = []; ;) {
6295
6296
  // 不分页处理
6296
6297
  if (noPaging) {
6297
6298
  var trLen = a.find("tr").length;
@@ -6311,12 +6312,12 @@ var hiprint = (function (t) {
6311
6312
  l.push(g), h.push(g), (s = n.outerHeight());
6312
6313
  0 == trLen &&
6313
6314
  (a.prepend(f),
6314
- l.pop(),
6315
- h.pop(),
6316
- (c = {
6317
- height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(s),
6318
- isEnd: !1,
6319
- }));
6315
+ l.pop(),
6316
+ h.pop(),
6317
+ (c = {
6318
+ height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(s),
6319
+ isEnd: !1,
6320
+ }));
6320
6321
  }
6321
6322
  } else {
6322
6323
  if (s <= p)
@@ -6336,7 +6337,7 @@ var hiprint = (function (t) {
6336
6337
  l.push(g),
6337
6338
  h.push(g),
6338
6339
  (((s = d.outerHeight()), (s += tfh)) > p || (this.options.maxRows && h.length > +this.options.maxRows)) &&
6339
- (a.prepend(f),
6340
+ (a.prepend(f),
6340
6341
  l.pop(),
6341
6342
  h.pop(),
6342
6343
  (s = d.outerHeight()),
@@ -6372,23 +6373,23 @@ var hiprint = (function (t) {
6372
6373
  0 == a.find("tr").length
6373
6374
  ? 0 == m && r
6374
6375
  ? {
6375
- target: void 0,
6376
- length: 0,
6377
- height: 0,
6378
- isEnd: !0,
6379
- }
6376
+ target: void 0,
6377
+ length: 0,
6378
+ height: 0,
6379
+ isEnd: !0,
6380
+ }
6380
6381
  : {
6381
- target: n.clone(),
6382
- length: m,
6383
- height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(s),
6384
- isEnd: !0,
6385
- }
6386
- : {
6387
6382
  target: n.clone(),
6388
6383
  length: m,
6389
6384
  height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(s),
6390
- isEnd: !1,
6391
- };
6385
+ isEnd: !0,
6386
+ }
6387
+ : {
6388
+ target: n.clone(),
6389
+ length: m,
6390
+ height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(s),
6391
+ isEnd: !1,
6392
+ };
6392
6393
  return zz;
6393
6394
  }),
6394
6395
  (TablePrintElement.prototype.fixMergeSpan = function (tr, tbody) {
@@ -6430,7 +6431,7 @@ var hiprint = (function (t) {
6430
6431
  }),
6431
6432
  (TablePrintElement.prototype.autoCompletion = function (t, e, tfh) {
6432
6433
  var that = this;
6433
- for (var n, i = this.getEmptyRowTarget(), o = e.outerHeight() + tfh; t > o; ) {
6434
+ for (var n, i = this.getEmptyRowTarget(), o = e.outerHeight() + tfh; t > o;) {
6434
6435
  (n = i.clone()), e.find("tbody").append(n), (o = e.outerHeight() + tfh);
6435
6436
  if (that.options.maxRows && e.find("tbody").children().length > that.options.maxRows) {
6436
6437
  break;
@@ -6457,19 +6458,19 @@ var hiprint = (function (t) {
6457
6458
  handle: this.designTarget.find(".hiprint-printElement-table-handle"),
6458
6459
  axis: n.options.axis ? n.options.axis : void 0,
6459
6460
  designTarget: n,
6460
- onDrag: function onDrag(t, i, o) {
6461
+ onDrag: function onDrag (t, i, o) {
6461
6462
  n.updateSizeAndPositionOptions(i, o), n.createLineOfPosition(e);
6462
6463
  _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed = !0;
6463
6464
  },
6464
6465
  moveUnit: "pt",
6465
6466
  minMove: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,
6466
- onBeforeDrag: function onBeforeDrag(t) {
6467
+ onBeforeDrag: function onBeforeDrag (t) {
6467
6468
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !0), n.createLineOfPosition(e);
6468
6469
  },
6469
- getScale: function getScale() {
6470
+ getScale: function getScale () {
6470
6471
  return n.designPaper.scale || 1;
6471
6472
  },
6472
- onStopDrag: function onStopDrag(t) {
6473
+ onStopDrag: function onStopDrag (t) {
6473
6474
  if (_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed) _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, "移动");
6474
6475
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !1), (_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed = !1), n.removeLineOfPosition();
6475
6476
  },
@@ -6481,16 +6482,16 @@ var hiprint = (function (t) {
6481
6482
  // 是否显示宽高box
6482
6483
  showSizeBox: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,
6483
6484
  noContainer: !0,
6484
- onBeforeResize: function onBeforeResize() {
6485
+ onBeforeResize: function onBeforeResize () {
6485
6486
  _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !0;
6486
6487
  },
6487
- getScale: function getScale() {
6488
+ getScale: function getScale () {
6488
6489
  return n.designPaper.scale || 1;
6489
6490
  },
6490
- onResize: function onResize(t, i, o, r, a) {
6491
+ onResize: function onResize (t, i, o, r, a) {
6491
6492
  n.onResize(t, i, o, r, a), n.hitable && n.hitable.updateColumnGrips(), n.createLineOfPosition(e);
6492
6493
  },
6493
- onStopResize: function onStopResize(r) {
6494
+ onStopResize: function onStopResize (r) {
6494
6495
  _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, r ? "旋转" : "大小");
6495
6496
  (_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !1), n.removeLineOfPosition();
6496
6497
  },
@@ -6546,7 +6547,7 @@ var hiprint = (function (t) {
6546
6547
  title: (i.title || `${i.id}(id)`) + "-列属性",
6547
6548
  optionItems: o,
6548
6549
  options: i,
6549
- callback: function callback(t) {
6550
+ callback: function callback (t) {
6550
6551
  o.forEach(function (t) {
6551
6552
  var e = t.getValue();
6552
6553
  if ("title" == t.name && e && !e.trim().endsWith("#") && !e.trim().startsWith("#")) {
@@ -6574,8 +6575,8 @@ var hiprint = (function (t) {
6574
6575
  return this.printElementType.editable && 1 == this.options.columns.length
6575
6576
  ? e
6576
6577
  : t.filter(function (t) {
6577
- return "columns" != t.name;
6578
- });
6578
+ return "columns" != t.name;
6579
+ });
6579
6580
  }),
6580
6581
  (TablePrintElement.prototype.getFooterFormatter = function () {
6581
6582
  var footerFormatter = void 0;
@@ -6607,12 +6608,12 @@ var hiprint = (function (t) {
6607
6608
  "use strict";
6608
6609
 
6609
6610
  var i = (function () {
6610
- return function (t) {
6611
- (this.table = t.table), (this.templateId = t.templateId), (this.fields = t.fields), (this.isEnableEdit = t.isEnableEdit), (this.trs = t.trs), (this.resizeRow = t.resizeRow), (this.resizeColumn = t.resizeColumn), (this.isEnableEditField = t.isEnableEditField), (this.isEnableContextMenu = t.isEnableContextMenu), (this.isEnableEditField = t.isEnableEditField), (this.isEnableInsertRow = t.isEnableInsertRow), (this.isEnableDeleteRow = t.isEnableDeleteRow), (this.isEnableInsertColumn = t.isEnableInsertColumn), (this.isEnableDeleteColumn = t.isEnableDeleteColumn), (this.isEnableMergeCell = t.isEnableMergeCell), (this.columnResizable = t.columnResizable), (this.columnAlignEditable = t.columnAlignEditable);
6612
- };
6613
- })(),
6611
+ return function (t) {
6612
+ (this.table = t.table), (this.templateId = t.templateId), (this.fields = t.fields), (this.isEnableEdit = t.isEnableEdit), (this.trs = t.trs), (this.resizeRow = t.resizeRow), (this.resizeColumn = t.resizeColumn), (this.isEnableEditField = t.isEnableEditField), (this.isEnableContextMenu = t.isEnableContextMenu), (this.isEnableEditField = t.isEnableEditField), (this.isEnableInsertRow = t.isEnableInsertRow), (this.isEnableDeleteRow = t.isEnableDeleteRow), (this.isEnableInsertColumn = t.isEnableInsertColumn), (this.isEnableDeleteColumn = t.isEnableDeleteColumn), (this.isEnableMergeCell = t.isEnableMergeCell), (this.columnResizable = t.columnResizable), (this.columnAlignEditable = t.columnAlignEditable);
6613
+ };
6614
+ })(),
6614
6615
  o = (function () {
6615
- function t(t) {
6616
+ function t (t) {
6616
6617
  this.options = new i(t);
6617
6618
  }
6618
6619
 
@@ -6637,7 +6638,7 @@ var hiprint = (function (t) {
6637
6638
  })(),
6638
6639
  p = n(10),
6639
6640
  s = (function () {
6640
- function t() {}
6641
+ function t () {}
6641
6642
 
6642
6643
  return (
6643
6644
  (t.getLeftTableCell = function (t, e) {
@@ -6679,7 +6680,7 @@ var hiprint = (function (t) {
6679
6680
  };
6680
6681
  })(),
6681
6682
  f = (function () {
6682
- function t() {}
6683
+ function t () {}
6683
6684
 
6684
6685
  return (
6685
6686
  (t.getColumnsWidth = function (e, n) {
@@ -6713,16 +6714,16 @@ var hiprint = (function (t) {
6713
6714
  (t.reconsitutionTableColumnTree = function (t, e, n) {
6714
6715
  for (
6715
6716
  var i = e || new h(),
6716
- o = function o(e) {
6717
- (i.totalLayer = e + 1),
6718
- (i[e] = t[e].columns),
6719
- (i.rowColumns = i.rowColumns.concat(
6720
- i[e].filter(function (n) {
6721
- return n.rowspan == t.length - e;
6722
- })
6723
- ));
6724
- },
6725
- r = 0;
6717
+ o = function o (e) {
6718
+ (i.totalLayer = e + 1),
6719
+ (i[e] = t[e].columns),
6720
+ (i.rowColumns = i.rowColumns.concat(
6721
+ i[e].filter(function (n) {
6722
+ return n.rowspan == t.length - e;
6723
+ })
6724
+ ));
6725
+ },
6726
+ r = 0;
6726
6727
  r < t.length;
6727
6728
  r++
6728
6729
  ) {
@@ -6736,7 +6737,7 @@ var hiprint = (function (t) {
6736
6737
  })(),
6737
6738
  g = n(2),
6738
6739
  m = (function () {
6739
- function t(t) {
6740
+ function t (t) {
6740
6741
  (this.signature = "HiTresizer"), (this.hitable = t), (this.rows = t.rows), (this.target = t.target);
6741
6742
  }
6742
6743
 
@@ -6769,17 +6770,17 @@ var hiprint = (function (t) {
6769
6770
  t.syncGrips(o, s),
6770
6771
  $(p).hidraggable({
6771
6772
  axis: "h",
6772
- onDrag: function onDrag(t, e, n) {},
6773
+ onDrag: function onDrag (t, e, n) {},
6773
6774
  moveUnit: "pt",
6774
6775
  minMove: 1,
6775
- getScale: function getScale() {
6776
+ getScale: function getScale () {
6776
6777
  return ($(".hiprint-printPaper")[0].style.transform && parseFloat($(".hiprint-printPaper")[0].style.transform.slice(6, -1))) || 1;
6777
6778
  },
6778
- onBeforeDrag: function onBeforeDrag(t) {
6779
+ onBeforeDrag: function onBeforeDrag (t) {
6779
6780
  if (((g.a.instance.draging = !0), !s.nextGrip)) return !1;
6780
6781
  (e.dragingGrip = s), (e.dragingGrip.left = parseFloat(e.dragingGrip.target.css("left").replace("px", ""))), s.target.addClass("columngripDraging");
6781
6782
  },
6782
- onStopDrag: function onStopDrag(n) {
6783
+ onStopDrag: function onStopDrag (n) {
6783
6784
  g.a.instance.draging = !1;
6784
6785
  var i = parseFloat(e.dragingGrip.target.css("left").replace("px", "")),
6785
6786
  o = r.a.px.toPt(i - e.dragingGrip.left);
@@ -6815,21 +6816,21 @@ var hiprint = (function (t) {
6815
6816
  var s = new c(p);
6816
6817
  n.push(s),
6817
6818
  a > 0 &&
6818
- a < t.rows.length &&
6819
- $(p).hidraggable({
6820
- axis: "v",
6821
- onDrag: function onDrag(t, e, n) {},
6822
- moveUnit: "pt",
6823
- minMove: 1,
6824
- onBeforeDrag: function onBeforeDrag(t) {
6825
- (e.dragingGrip = s), (e.dragingGrip.top = parseFloat(e.dragingGrip.target.css("top").replace("px", ""))), s.target.addClass("rowgripDraging");
6826
- },
6827
- onStopDrag: function onStopDrag(t) {
6828
- var n = parseFloat(e.dragingGrip.target.css("top").replace("px", "")),
6829
- i = r.a.px.toPt(n - e.dragingGrip.top + e.rows[a].columns[0].getTarget().height());
6830
- e.rows[a].columns[0].getTarget().css("height", i + "pt"), e.syncRowGrips(), s.target.removeClass("rowgripDraging");
6831
- },
6832
- });
6819
+ a < t.rows.length &&
6820
+ $(p).hidraggable({
6821
+ axis: "v",
6822
+ onDrag: function onDrag (t, e, n) {},
6823
+ moveUnit: "pt",
6824
+ minMove: 1,
6825
+ onBeforeDrag: function onBeforeDrag (t) {
6826
+ (e.dragingGrip = s), (e.dragingGrip.top = parseFloat(e.dragingGrip.target.css("top").replace("px", ""))), s.target.addClass("rowgripDraging");
6827
+ },
6828
+ onStopDrag: function onStopDrag (t) {
6829
+ var n = parseFloat(e.dragingGrip.target.css("top").replace("px", "")),
6830
+ i = r.a.px.toPt(n - e.dragingGrip.top + e.rows[a].columns[0].getTarget().height());
6831
+ e.rows[a].columns[0].getTarget().css("height", i + "pt"), e.syncRowGrips(), s.target.removeClass("rowgripDraging");
6832
+ },
6833
+ });
6833
6834
  }),
6834
6835
  this.target.before(i),
6835
6836
  (this.rgripContariner = new d(i, n)),
@@ -6861,7 +6862,7 @@ var hiprint = (function (t) {
6861
6862
  );
6862
6863
  })(),
6863
6864
  v = (function () {
6864
- function t() {}
6865
+ function t () {}
6865
6866
 
6866
6867
  return (t.prototype.init = function () {}), (t.prototype.updateRowGrips = function () {}), (t.prototype.updateColumnGrips = function () {}), t;
6867
6868
  })();
@@ -6871,7 +6872,7 @@ var hiprint = (function (t) {
6871
6872
  });
6872
6873
 
6873
6874
  var y = (function () {
6874
- function t(t) {
6875
+ function t (t) {
6875
6876
  (this.id = u.a.createId()), (this.optionsCoat = new o(t)), (this.handle = t.handle), (this.target = t.table), this.initRows(t.rows), this.init(t), (this.tableCellSelector = new p.a(this.rows, this.target)), (this.resizer = this.optionsCoat.options.columnResizable ? new m(this) : new v()), this.resizer.init();
6876
6877
  }
6877
6878
 
@@ -6997,8 +6998,8 @@ var hiprint = (function (t) {
6997
6998
  else {
6998
6999
  o.removeCell(e.cell);
6999
7000
  var a = i[n + 1].filter(function (t, e) {
7000
- return t.cell && e > r;
7001
- }),
7001
+ return t.cell && e > r;
7002
+ }),
7002
7003
  p = t.rows[n + 1],
7003
7004
  s = p.createTableCell(e.cell.rowspan - 1, e.cell.colspan);
7004
7005
  a.length ? p.insertToTargetCellLeft(a[0].cell, s) : p.insertCellToLast(s);
@@ -7116,7 +7117,7 @@ var hiprint = (function (t) {
7116
7117
  e.forEach(function (t, e) {
7117
7118
  t.columns.forEach(function (t, o) {
7118
7119
  for (var r = 0; r < t.colspan; r++) {
7119
- for (var p = 0, s = !1; p < n && !s; ) {
7120
+ for (var p = 0, s = !1; p < n && !s;) {
7120
7121
  if (((i[e] = i[e] || []), i[e][p]));
7121
7122
  else {
7122
7123
  i[e][p] = new a({
@@ -7169,9 +7170,9 @@ var hiprint = (function (t) {
7169
7170
  var e = 0;
7170
7171
  return (
7171
7172
  this.rows.length &&
7172
- this.rows[t || 0].columns.forEach(function (t) {
7173
- e += t.colspan;
7174
- }),
7173
+ this.rows[t || 0].columns.forEach(function (t) {
7174
+ e += t.colspan;
7175
+ }),
7175
7176
  e
7176
7177
  );
7177
7178
  }),
@@ -7183,10 +7184,10 @@ var hiprint = (function (t) {
7183
7184
  {
7184
7185
  text: "在上方插入行",
7185
7186
  enabled: this.optionsCoat.options.isEnableInsertRow,
7186
- disable: function disable() {
7187
+ disable: function disable () {
7187
7188
  return !t.tableCellSelector.getSingleSelect();
7188
7189
  },
7189
- callback: function callback() {
7190
+ callback: function callback () {
7190
7191
  t.insertRow("above"), t.resizer.updateRowGrips(), r.a.event.trigger("updateTable" + t.id);
7191
7192
  },
7192
7193
  },
@@ -7194,41 +7195,41 @@ var hiprint = (function (t) {
7194
7195
  text: "在下方插入行",
7195
7196
  borderBottom: !0,
7196
7197
  enabled: this.optionsCoat.options.isEnableInsertRow,
7197
- disable: function disable() {
7198
+ disable: function disable () {
7198
7199
  return !t.tableCellSelector.getSingleSelect();
7199
7200
  },
7200
- callback: function callback() {
7201
+ callback: function callback () {
7201
7202
  t.insertRow("below"), t.resizer.updateRowGrips(), r.a.event.trigger("updateTable" + t.id);
7202
7203
  },
7203
7204
  },
7204
7205
  {
7205
7206
  text: "向左方插入列",
7206
7207
  enabled: this.optionsCoat.options.isEnableInsertColumn,
7207
- disable: function disable() {
7208
+ disable: function disable () {
7208
7209
  return !t.tableCellSelector.getSingleSelect();
7209
7210
  },
7210
- callback: function callback() {
7211
+ callback: function callback () {
7211
7212
  t.insertColumn("left"), t.resizer.updateColumnGrips(), r.a.event.trigger("updateTable" + t.id);
7212
7213
  },
7213
7214
  },
7214
7215
  {
7215
7216
  text: "向右方插入列",
7216
7217
  enabled: this.optionsCoat.options.isEnableInsertColumn,
7217
- disable: function disable() {
7218
+ disable: function disable () {
7218
7219
  return !t.tableCellSelector.getSingleSelect();
7219
7220
  },
7220
7221
  borderBottom: !0,
7221
- callback: function callback() {
7222
+ callback: function callback () {
7222
7223
  t.insertColumn("right"), t.resizer.updateColumnGrips(), r.a.event.trigger("updateTable" + t.id);
7223
7224
  },
7224
7225
  },
7225
7226
  {
7226
7227
  text: "删除行",
7227
7228
  enabled: this.optionsCoat.options.isEnableDeleteRow,
7228
- disable: function disable() {
7229
+ disable: function disable () {
7229
7230
  return !t.tableCellSelector.getSingleSelect() || t.rows.length <= 1;
7230
7231
  },
7231
- callback: function callback() {
7232
+ callback: function callback () {
7232
7233
  t.deleteRow(), t.resizer.updateRowGrips(), r.a.event.trigger("updateTable" + t.id);
7233
7234
  },
7234
7235
  },
@@ -7236,10 +7237,10 @@ var hiprint = (function (t) {
7236
7237
  text: "删除列",
7237
7238
  borderBottom: !0,
7238
7239
  enabled: this.optionsCoat.options.isEnableDeleteColumn,
7239
- disable: function disable() {
7240
+ disable: function disable () {
7240
7241
  return !t.tableCellSelector.getSingleSelect() || (t.rows.length > 0 && t.rows[0].columns.length <= 1);
7241
7242
  },
7242
- callback: function callback() {
7243
+ callback: function callback () {
7243
7244
  t.deleteColums(), t.resizer.updateColumnGrips(), r.a.event.trigger("updateTable" + t.id);
7244
7245
  },
7245
7246
  },
@@ -7250,50 +7251,50 @@ var hiprint = (function (t) {
7250
7251
  menus: [
7251
7252
  {
7252
7253
  text: "左",
7253
- callback: function callback() {
7254
+ callback: function callback () {
7254
7255
  t.setAlign("left");
7255
7256
  },
7256
7257
  },
7257
7258
  {
7258
7259
  text: "左右居中",
7259
- callback: function callback() {
7260
+ callback: function callback () {
7260
7261
  t.setAlign("center");
7261
7262
  },
7262
7263
  },
7263
7264
  {
7264
7265
  text: "右",
7265
- callback: function callback() {
7266
+ callback: function callback () {
7266
7267
  t.setAlign("right");
7267
7268
  },
7268
7269
  },
7269
7270
  {
7270
7271
  text: "默认",
7271
7272
  borderBottom: !0,
7272
- callback: function callback() {
7273
+ callback: function callback () {
7273
7274
  t.setAlign("");
7274
7275
  },
7275
7276
  },
7276
7277
  {
7277
7278
  text: "上",
7278
- callback: function callback() {
7279
+ callback: function callback () {
7279
7280
  t.setVAlign("top");
7280
7281
  },
7281
7282
  },
7282
7283
  {
7283
7284
  text: "垂直居中",
7284
- callback: function callback() {
7285
+ callback: function callback () {
7285
7286
  t.setVAlign("middle");
7286
7287
  },
7287
7288
  },
7288
7289
  {
7289
7290
  text: "下",
7290
- callback: function callback() {
7291
+ callback: function callback () {
7291
7292
  t.setVAlign("bottom");
7292
7293
  },
7293
7294
  },
7294
7295
  {
7295
7296
  text: "默认",
7296
- callback: function callback() {
7297
+ callback: function callback () {
7297
7298
  t.setVAlign("");
7298
7299
  },
7299
7300
  },
@@ -7302,21 +7303,21 @@ var hiprint = (function (t) {
7302
7303
  {
7303
7304
  text: "合并单元格",
7304
7305
  enabled: this.optionsCoat.options.isEnableMergeCell,
7305
- disable: function disable() {
7306
+ disable: function disable () {
7306
7307
  return t.tableCellSelector.getSingleSelect();
7307
7308
  },
7308
- callback: function callback() {
7309
+ callback: function callback () {
7309
7310
  t.mergeCell(), r.a.event.trigger("updateTable" + t.id);
7310
7311
  },
7311
7312
  },
7312
7313
  {
7313
7314
  text: "解开单元格",
7314
7315
  enabled: this.optionsCoat.options.isEnableMergeCell,
7315
- disable: function disable() {
7316
+ disable: function disable () {
7316
7317
  var e = t.tableCellSelector.getSingleSelect();
7317
7318
  return !e || (1 == e.cell.rowspan && 1 == e.cell.colspan);
7318
7319
  },
7319
- callback: function callback() {
7320
+ callback: function callback () {
7320
7321
  t.splitCell(), r.a.event.trigger("updateTable" + t.id);
7321
7322
  },
7322
7323
  },
@@ -7358,11 +7359,11 @@ var hiprint = (function (t) {
7358
7359
  o = n(12),
7359
7360
  r =
7360
7361
  ((function () {})(),
7361
- (function () {
7362
- return function (t) {
7363
- (this.width = t.width), (this.title = t.title), (this.field = t.field), (this.checked = t.checked), (this.columnId = t.columnId), (this.fixed = !1), (this.rowspan = t.rowspan || 1), (this.colspan = t.colspan || 1), (this.align = t.align), (this.halign = t.halign), (this.vAlign = t.vAlign), (this.renderFormatter = t.renderFormatter), (this.formatter2 = t.formatter2), (this.styler2 = t.styler2), (this.stylerHeader = t.stylerHeader), (this.tableColumnHeight = t.tableColumnHeight), (this.tableTextType = t.tableTextType), (this.tableBarcodeMode = t.tableBarcodeMode), (this.tableQRCodeLevel = t.tableQRCodeLevel), (this.tableSummaryTitle = t.tableSummaryTitle), (this.tableSummaryText = t.tableSummaryText), (this.tableSummaryColspan = t.tableSummaryColspan), (this.tableSummary = t.tableSummary), (this.tableSummaryAlign = t.tableSummaryAlign), (this.tableSummaryNumFormat = t.tableSummaryNumFormat), (this.upperCase = t.upperCase);
7364
- };
7365
- })()),
7362
+ (function () {
7363
+ return function (t) {
7364
+ (this.width = t.width), (this.title = t.title), (this.field = t.field), (this.checked = t.checked), (this.columnId = t.columnId), (this.fixed = !1), (this.rowspan = t.rowspan || 1), (this.colspan = t.colspan || 1), (this.align = t.align), (this.halign = t.halign), (this.vAlign = t.vAlign), (this.renderFormatter = t.renderFormatter), (this.formatter2 = t.formatter2), (this.styler2 = t.styler2), (this.stylerHeader = t.stylerHeader), (this.tableColumnHeight = t.tableColumnHeight), (this.tableTextType = t.tableTextType), (this.tableBarcodeMode = t.tableBarcodeMode), (this.tableQRCodeLevel = t.tableQRCodeLevel), (this.tableSummaryTitle = t.tableSummaryTitle), (this.tableSummaryText = t.tableSummaryText), (this.tableSummaryColspan = t.tableSummaryColspan), (this.tableSummary = t.tableSummary), (this.tableSummaryAlign = t.tableSummaryAlign), (this.tableSummaryNumFormat = t.tableSummaryNumFormat), (this.upperCase = t.upperCase);
7365
+ };
7366
+ })()),
7366
7367
  a = n(5);
7367
7368
  n.d(e, "a", function () {
7368
7369
  return l;
@@ -7370,7 +7371,7 @@ var hiprint = (function (t) {
7370
7371
 
7371
7372
  var _p,
7372
7373
  s =
7373
- ((_p = function p(t, e) {
7374
+ ((_p = function p (t, e) {
7374
7375
  return (_p =
7375
7376
  Object.setPrototypeOf ||
7376
7377
  (_instanceof(
@@ -7388,20 +7389,20 @@ var hiprint = (function (t) {
7388
7389
  }
7389
7390
  })(t, e);
7390
7391
  }),
7391
- function (t, e) {
7392
- function n() {
7393
- this.constructor = t;
7394
- }
7392
+ function (t, e) {
7393
+ function n () {
7394
+ this.constructor = t;
7395
+ }
7395
7396
 
7396
- _p(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
7397
- }),
7397
+ _p(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
7398
+ }),
7398
7399
  l = (function (t) {
7399
- function e(e, n) {
7400
+ function e (e, n) {
7400
7401
  var i = this;
7401
7402
  ((e = e || {}), ((i = t.call(this, e) || this).lHeight = e.lHeight), (i.autoCompletion = e.autoCompletion), (i.tableFooterRepeat = e.tableFooterRepeat), n) &&
7402
7403
  ((i.columns = []),
7403
- n.editable && e.columns && e.columns.length
7404
- ? e.columns.forEach(function (t) {
7404
+ n.editable && e.columns && e.columns.length
7405
+ ? e.columns.forEach(function (t) {
7405
7406
  var e = [];
7406
7407
  t.forEach(function (t) {
7407
7408
  var i = new r(t),
@@ -7411,7 +7412,7 @@ var hiprint = (function (t) {
7411
7412
  }),
7412
7413
  i.columns.push(new o.a(e));
7413
7414
  })
7414
- : n.columns.forEach(function (t) {
7415
+ : n.columns.forEach(function (t) {
7415
7416
  i.columns.push(new o.a(t));
7416
7417
  }));
7417
7418
  return i;
@@ -7426,11 +7427,11 @@ var hiprint = (function (t) {
7426
7427
  var t = {};
7427
7428
  return (
7428
7429
  this.columns &&
7429
- this.columns.forEach(function (e) {
7430
- e.columns.forEach(function (e) {
7431
- (e.id || e.columnId) && (t[e.id || e.columnId] = e);
7432
- });
7433
- }),
7430
+ this.columns.forEach(function (e) {
7431
+ e.columns.forEach(function (e) {
7432
+ (e.id || e.columnId) && (t[e.id || e.columnId] = e);
7433
+ });
7434
+ }),
7434
7435
  t
7435
7436
  );
7436
7437
  }),
@@ -7442,7 +7443,7 @@ var hiprint = (function (t) {
7442
7443
  e.fields = this.fields;
7443
7444
  return (
7444
7445
  this.columns &&
7445
- ((e.columns = []),
7446
+ ((e.columns = []),
7446
7447
  this.columns.forEach(function (t) {
7447
7448
  var n = t.getPrintElementOptionEntity().map(function (t) {
7448
7449
  return new r(t);
@@ -7477,7 +7478,7 @@ var hiprint = (function (t) {
7477
7478
  });
7478
7479
 
7479
7480
  var i = (function () {
7480
- function t(t, e) {
7481
+ function t (t, e) {
7481
7482
  (this.gridColumns = t), (this.target = e);
7482
7483
  }
7483
7484
 
@@ -7494,7 +7495,7 @@ var hiprint = (function (t) {
7494
7495
  },
7495
7496
  function (t, e) {
7496
7497
  !(function (t) {
7497
- function e(e) {
7498
+ function e (e) {
7498
7499
  var n = t.data(e.data.target, "hidraggable"),
7499
7500
  i = n.options,
7500
7501
  o = n.proxy,
@@ -7504,7 +7505,7 @@ var hiprint = (function (t) {
7504
7505
  o && (o.parent()[0] == document.body ? ((a = null != i.deltaX && null != i.deltaX ? e.pageX + i.deltaX : e.pageX - e.data.offsetWidth), (p = null != i.deltaY && null != i.deltaY ? e.pageY + i.deltaY : e.pageY - e.data.offsetHeight)) : (null != i.deltaX && null != i.deltaX && (a += e.data.offsetWidth + i.deltaX), null != i.deltaY && null != i.deltaY && (p += e.data.offsetHeight + i.deltaY))), e.data.parent != document.body && ((a += t(e.data.parent).scrollLeft()), (p += t(e.data.parent).scrollTop())), "h" == i.axis ? (r.left = a) : "v" == i.axis ? (r.top = p) : e.shiftKey && e.altKey ? (r.top = p) : e.shiftKey ? (r.left = a) : ((r.left = a), (r.top = p));
7505
7506
  }
7506
7507
 
7507
- function n(e) {
7508
+ function n (e) {
7508
7509
  var n = t.data(e.data.target, "hidraggable"),
7509
7510
  i = n.options,
7510
7511
  o = n.proxy;
@@ -7516,7 +7517,7 @@ var hiprint = (function (t) {
7516
7517
  t("body").css("cursor", i.cursor);
7517
7518
  }
7518
7519
 
7519
- function i(i) {
7520
+ function i (i) {
7520
7521
  t.fn.hidraggable.isDragging = !0;
7521
7522
  var o = t.data(i.data.target, "hidraggable"),
7522
7523
  r = o.options,
@@ -7538,7 +7539,7 @@ var hiprint = (function (t) {
7538
7539
  return p || (r.proxy ? ((p = "clone" == r.proxy ? t(i.data.target).clone().insertAfter(i.data.target) : r.proxy.call(i.data.target, i.data.target)), (o.proxy = p)) : (p = t(i.data.target))), p.css("position", "absolute"), e(i), n(i), r.onStartDrag.call(i.data.target, i), !1;
7539
7540
  }
7540
7541
 
7541
- function createVerLine(op, cp, t, tt, h, pc) {
7542
+ function createVerLine (op, cp, t, tt, h, pc) {
7542
7543
  if (Math.abs(op[t] - cp[tt]) <= HIPRINT_CONFIG.adsorbLineMin) {
7543
7544
  if (op.v.length) {
7544
7545
  op.v.css("left", op[t] + "pt");
@@ -7553,12 +7554,12 @@ var hiprint = (function (t) {
7553
7554
  }
7554
7555
  }
7555
7556
 
7556
- function removeVerLine(op) {
7557
+ function removeVerLine (op) {
7557
7558
  if (op) op.v && op.v.remove();
7558
7559
  $(".verLine").remove();
7559
7560
  }
7560
7561
 
7561
- function createHorLine(op, cp, t, tt, w, pc) {
7562
+ function createHorLine (op, cp, t, tt, w, pc) {
7562
7563
  if (Math.abs(op[t] - cp[tt]) <= HIPRINT_CONFIG.adsorbLineMin) {
7563
7564
  if (op.h.length) {
7564
7565
  op.h.css("top", op[t] + "pt");
@@ -7573,12 +7574,12 @@ var hiprint = (function (t) {
7573
7574
  }
7574
7575
  }
7575
7576
 
7576
- function removeHorLine(op) {
7577
+ function removeHorLine (op) {
7577
7578
  if (op) op.h && op.h.remove();
7578
7579
  $(".horLine").remove();
7579
7580
  }
7580
7581
 
7581
- function o(i) {
7582
+ function o (i) {
7582
7583
  // 移动开始动作
7583
7584
  var o = t.data(i.data.target, "hidraggable");
7584
7585
  e(i);
@@ -7799,7 +7800,7 @@ var hiprint = (function (t) {
7799
7800
  );
7800
7801
  }
7801
7802
 
7802
- function r(e) {
7803
+ function r (e) {
7803
7804
  // 这里原 mouseup时, 回调了 o(e) ==> onDrag
7804
7805
  t.fn.hidraggable.isDragging = !1;
7805
7806
  removeVerLine(), removeHorLine();
@@ -7811,22 +7812,22 @@ var hiprint = (function (t) {
7811
7812
  p.revert
7812
7813
  ? 1 == l()
7813
7814
  ? t(e.data.target).css({
7814
- position: e.data.startPosition,
7815
- left: e.data.startLeft,
7816
- top: e.data.startTop,
7817
- })
7815
+ position: e.data.startPosition,
7816
+ left: e.data.startLeft,
7817
+ top: e.data.startTop,
7818
+ })
7818
7819
  : a
7819
- ? (a.parent()[0] == document.body ? ((n = e.data.startX - e.data.offsetWidth), (i = e.data.startY - e.data.offsetHeight)) : ((n = e.data.startLeft), (i = e.data.startTop)),
7820
- a.animate(
7821
- {
7822
- left: n,
7823
- top: i,
7824
- },
7825
- function () {
7826
- s();
7827
- }
7828
- ))
7829
- : t(e.data.target).animate(
7820
+ ? (a.parent()[0] == document.body ? ((n = e.data.startX - e.data.offsetWidth), (i = e.data.startY - e.data.offsetHeight)) : ((n = e.data.startLeft), (i = e.data.startTop)),
7821
+ a.animate(
7822
+ {
7823
+ left: n,
7824
+ top: i,
7825
+ },
7826
+ function () {
7827
+ s();
7828
+ }
7829
+ ))
7830
+ : t(e.data.target).animate(
7830
7831
  {
7831
7832
  left: e.data.startLeft,
7832
7833
  top: e.data.startTop,
@@ -7836,17 +7837,17 @@ var hiprint = (function (t) {
7836
7837
  }
7837
7838
  )
7838
7839
  : (t(e.data.target).css({
7839
- position: "absolute",
7840
- left: t.fn.dragLengthC(e.data.left, p),
7841
- top: t.fn.dragLengthC(e.data.top, p),
7842
- }),
7840
+ position: "absolute",
7841
+ left: t.fn.dragLengthC(e.data.left, p),
7842
+ top: t.fn.dragLengthC(e.data.top, p),
7843
+ }),
7843
7844
  l());
7844
7845
 
7845
- function s() {
7846
+ function s () {
7846
7847
  a && a.remove(), (r.proxy = null);
7847
7848
  }
7848
7849
 
7849
- function l() {
7850
+ function l () {
7850
7851
  var n = !1;
7851
7852
  return (
7852
7853
  r.hidroppables.each(function () {
@@ -7857,11 +7858,11 @@ var hiprint = (function (t) {
7857
7858
  var ptr = (this.style.transform && parseFloat(this.style.transform.slice(6, -1))) || 1;
7858
7859
  return e.pageX > o.left && e.pageX < o.left + i.outerWidth() * ptr && e.pageY > o.top && e.pageY < o.top + i.outerHeight() * ptr
7859
7860
  ? (p.revert &&
7860
- t(e.data.target).css({
7861
- position: e.data.startPosition,
7862
- left: e.data.startLeft,
7863
- top: e.data.startTop,
7864
- }),
7861
+ t(e.data.target).css({
7862
+ position: e.data.startPosition,
7863
+ left: e.data.startLeft,
7864
+ top: e.data.startTop,
7865
+ }),
7865
7866
  t(this).trigger("_drop", [e.data.target]),
7866
7867
  s(),
7867
7868
  (n = !0),
@@ -7889,127 +7890,127 @@ var hiprint = (function (t) {
7889
7890
  return "string" == typeof e
7890
7891
  ? t.fn.hidraggable.methods[e](this, n)
7891
7892
  : this.each(function () {
7892
- var n,
7893
- a = t.data(this, "hidraggable");
7894
- a ? (a.handle.unbind(".hidraggable"), (n = t.extend(a.options, e))) : (n = t.extend({}, t.fn.hidraggable.defaults, t.fn.hidraggable.parseOptions(this), e || {}));
7895
- var p = n.handle ? ("string" == typeof n.handle ? t(n.handle, this) : n.handle) : t(this);
7896
-
7897
- function s(e) {
7898
- var n = t.data(e.data.target, "hidraggable"),
7899
- i = n.handle,
7900
- o = t(i).offset(),
7901
- tr = t(i)[0].style.transform && parseInt(t(i)[0].style.transform.slice(7, -1)),
7902
- ptr = n.options.getScale(),
7903
- r = t(i).outerWidth();
7904
- var a = t(i).outerHeight();
7905
- if (tr) {
7906
- var rad = (tr * Math.PI) / 180,
7907
- width = t(i).outerWidth(),
7908
- height = t(i).outerHeight(),
7909
- sin = Math.sin(rad),
7910
- cos = Math.cos(rad);
7911
- (r = Math.abs(width * cos) + Math.abs(height * sin)), (a = Math.abs(width * sin) + Math.abs(height * cos));
7912
- }
7913
- if (ptr) {
7914
- (r *= ptr), (a *= ptr);
7915
- }
7916
- var p = e.pageY - o.top,
7917
- s = o.left + r - e.pageX,
7918
- l = o.top + a - e.pageY,
7919
- u = e.pageX - o.left;
7920
- return Math.min(p, s, l, u) > n.options.edge;
7893
+ var n,
7894
+ a = t.data(this, "hidraggable");
7895
+ a ? (a.handle.unbind(".hidraggable"), (n = t.extend(a.options, e))) : (n = t.extend({}, t.fn.hidraggable.defaults, t.fn.hidraggable.parseOptions(this), e || {}));
7896
+ var p = n.handle ? ("string" == typeof n.handle ? t(n.handle, this) : n.handle) : t(this);
7897
+
7898
+ function s (e) {
7899
+ var n = t.data(e.data.target, "hidraggable"),
7900
+ i = n.handle,
7901
+ o = t(i).offset(),
7902
+ tr = t(i)[0].style.transform && parseInt(t(i)[0].style.transform.slice(7, -1)),
7903
+ ptr = n.options.getScale(),
7904
+ r = t(i).outerWidth();
7905
+ var a = t(i).outerHeight();
7906
+ if (tr) {
7907
+ var rad = (tr * Math.PI) / 180,
7908
+ width = t(i).outerWidth(),
7909
+ height = t(i).outerHeight(),
7910
+ sin = Math.sin(rad),
7911
+ cos = Math.cos(rad);
7912
+ (r = Math.abs(width * cos) + Math.abs(height * sin)), (a = Math.abs(width * sin) + Math.abs(height * cos));
7913
+ }
7914
+ if (ptr) {
7915
+ (r *= ptr), (a *= ptr);
7921
7916
  }
7917
+ var p = e.pageY - o.top,
7918
+ s = o.left + r - e.pageX,
7919
+ l = o.top + a - e.pageY,
7920
+ u = e.pageX - o.left;
7921
+ return Math.min(p, s, l, u) > n.options.edge;
7922
+ }
7922
7923
 
7923
- t.data(this, "hidraggable", {
7924
- options: n,
7925
- handle: p,
7926
- }),
7927
- n.disabled
7928
- ? t(this).css("cursor", "")
7929
- : p
7930
- .unbind(".hidraggable")
7931
- .bind(
7932
- "mousemove.hidraggable",
7933
- {
7934
- target: this,
7935
- },
7936
- function (e) {
7937
- if (!t.fn.hidraggable.isDragging) {
7938
- var n = t.data(e.data.target, "hidraggable").options;
7939
- s(e) ? t(this).css("cursor", n.cursor) : t(this).css("cursor", "");
7940
- }
7924
+ t.data(this, "hidraggable", {
7925
+ options: n,
7926
+ handle: p,
7927
+ }),
7928
+ n.disabled
7929
+ ? t(this).css("cursor", "")
7930
+ : p
7931
+ .unbind(".hidraggable")
7932
+ .bind(
7933
+ "mousemove.hidraggable",
7934
+ {
7935
+ target: this,
7936
+ },
7937
+ function (e) {
7938
+ if (!t.fn.hidraggable.isDragging) {
7939
+ var n = t.data(e.data.target, "hidraggable").options;
7940
+ s(e) ? t(this).css("cursor", n.cursor) : t(this).css("cursor", "");
7941
+ }
7942
+ }
7943
+ )
7944
+ .bind(
7945
+ "mouseleave.hidraggable",
7946
+ {
7947
+ target: this,
7948
+ },
7949
+ function (e) {
7950
+ t(this).css("cursor", "");
7951
+ }
7952
+ )
7953
+ .bind(
7954
+ "mousedown.hidraggable",
7955
+ {
7956
+ target: this,
7957
+ },
7958
+ function (e) {
7959
+ if (0 != s(e)) {
7960
+ t(this).css("cursor", "");
7961
+ var n = t(e.data.target).position(),
7962
+ a = t(e.data.target).offset(),
7963
+ p = {
7964
+ startPosition: t(e.data.target).css("position"),
7965
+ startLeft: n.left,
7966
+ startTop: n.top,
7967
+ left: n.left,
7968
+ top: n.top,
7969
+ startX: e.pageX,
7970
+ startY: e.pageY,
7971
+ offsetWidth: e.pageX - a.left,
7972
+ offsetHeight: e.pageY - a.top,
7973
+ target: e.data.target,
7974
+ parent: t(e.data.target).parent()[0],
7975
+ };
7976
+ var ops = t.data(e.data.target, "hidraggable");
7977
+ // item禁止移动
7978
+ if (ops.options.draggable === false) {
7979
+ return;
7941
7980
  }
7942
- )
7943
- .bind(
7944
- "mouseleave.hidraggable",
7945
- {
7946
- target: this,
7947
- },
7948
- function (e) {
7949
- t(this).css("cursor", "");
7981
+ // 旋转时不允许移动
7982
+ if ("r resizebtn" == e.target.className) {
7983
+ return;
7950
7984
  }
7951
- )
7952
- .bind(
7953
- "mousedown.hidraggable",
7954
- {
7955
- target: this,
7956
- },
7957
- function (e) {
7958
- if (0 != s(e)) {
7959
- t(this).css("cursor", "");
7960
- var n = t(e.data.target).position(),
7961
- a = t(e.data.target).offset(),
7962
- p = {
7963
- startPosition: t(e.data.target).css("position"),
7964
- startLeft: n.left,
7965
- startTop: n.top,
7966
- left: n.left,
7967
- top: n.top,
7968
- startX: e.pageX,
7969
- startY: e.pageY,
7970
- offsetWidth: e.pageX - a.left,
7971
- offsetHeight: e.pageY - a.top,
7972
- target: e.data.target,
7973
- parent: t(e.data.target).parent()[0],
7974
- };
7975
- var ops = t.data(e.data.target, "hidraggable");
7976
- // item禁止移动
7977
- if (ops.options.draggable === false) {
7978
- return;
7979
- }
7980
- // 旋转时不允许移动
7981
- if ("r resizebtn" == e.target.className) {
7982
- return;
7983
- }
7984
- var ptr = ops.options.getScale();
7985
- if (ptr) {
7986
- (p.left /= ptr), (p.top /= ptr), (p.startLeft /= ptr), (p.startTop /= ptr);
7987
- }
7988
- var tr = p.target.style.transform && parseInt(p.target.style.transform.slice(7, -1));
7989
- if (tr) {
7990
- var rad = (tr * Math.PI) / 180,
7991
- width = t(e.data.target).outerWidth(),
7992
- height = t(e.data.target).outerHeight(),
7993
- sin = Math.sin(rad),
7994
- cos = Math.cos(rad);
7995
- var w = Math.abs(width * cos) + Math.abs(height * sin),
7996
- h = Math.abs(width * sin) + Math.abs(height * cos);
7997
- var diffW = (w - width) / 2,
7998
- diffH = (h - height) / 2;
7999
- (p.left += diffW), (p.top += diffH), (p.startLeft += diffW), (p.startTop += diffH);
8000
- }
8001
- t.extend(e.data, p);
8002
- 0 != t.data(e.data.target, "hidraggable").options.onBeforeDrag.call(e.data.target, e) && (t(document).bind("mousedown.hidraggable", e.data, i), t(document).bind("mousemove.hidraggable", e.data, o), t(document).bind("mouseup.hidraggable", e.data, r));
8003
- }
7985
+ var ptr = ops.options.getScale();
7986
+ if (ptr) {
7987
+ (p.left /= ptr), (p.top /= ptr), (p.startLeft /= ptr), (p.startTop /= ptr);
8004
7988
  }
8005
- );
8006
- });
7989
+ var tr = p.target.style.transform && parseInt(p.target.style.transform.slice(7, -1));
7990
+ if (tr) {
7991
+ var rad = (tr * Math.PI) / 180,
7992
+ width = t(e.data.target).outerWidth(),
7993
+ height = t(e.data.target).outerHeight(),
7994
+ sin = Math.sin(rad),
7995
+ cos = Math.cos(rad);
7996
+ var w = Math.abs(width * cos) + Math.abs(height * sin),
7997
+ h = Math.abs(width * sin) + Math.abs(height * cos);
7998
+ var diffW = (w - width) / 2,
7999
+ diffH = (h - height) / 2;
8000
+ (p.left += diffW), (p.top += diffH), (p.startLeft += diffW), (p.startTop += diffH);
8001
+ }
8002
+ t.extend(e.data, p);
8003
+ 0 != t.data(e.data.target, "hidraggable").options.onBeforeDrag.call(e.data.target, e) && (t(document).bind("mousedown.hidraggable", e.data, i), t(document).bind("mousemove.hidraggable", e.data, o), t(document).bind("mouseup.hidraggable", e.data, r));
8004
+ }
8005
+ }
8006
+ );
8007
+ });
8007
8008
  }),
8008
8009
  (t.fn.hidraggable.methods = {
8009
- options: function options(e) {
8010
+ options: function options (e) {
8010
8011
  return t.data(e[0], "hidraggable").options;
8011
8012
  },
8012
- update: function update(e, n) {
8013
+ update: function update (e, n) {
8013
8014
  if (n && "object" == typeof n) {
8014
8015
  t.data(e[0], "hidraggable") &&
8015
8016
  Object.keys(n).forEach(function (k) {
@@ -8017,17 +8018,17 @@ var hiprint = (function (t) {
8017
8018
  });
8018
8019
  }
8019
8020
  },
8020
- proxy: function proxy(e) {
8021
+ proxy: function proxy (e) {
8021
8022
  return t.data(e[0], "hidraggable").proxy;
8022
8023
  },
8023
- enable: function enable(e) {
8024
+ enable: function enable (e) {
8024
8025
  return e.each(function () {
8025
8026
  t(this).hidraggable({
8026
8027
  disabled: !1,
8027
8028
  });
8028
8029
  });
8029
8030
  },
8030
- disable: function disable(e) {
8031
+ disable: function disable (e) {
8031
8032
  return e.each(function () {
8032
8033
  t(this).hidraggable({
8033
8034
  disabled: !0,
@@ -8065,11 +8066,11 @@ var hiprint = (function (t) {
8065
8066
  disabled: !1,
8066
8067
  edge: 0,
8067
8068
  axis: null,
8068
- getScale: function getScale(t) {},
8069
- onBeforeDrag: function onBeforeDrag(t) {},
8070
- onStartDrag: function onStartDrag(t) {},
8071
- onDrag: function onDrag(t) {},
8072
- onStopDrag: function onStopDrag(t) {},
8069
+ getScale: function getScale (t) {},
8070
+ onBeforeDrag: function onBeforeDrag (t) {},
8071
+ onStartDrag: function onStartDrag (t) {},
8072
+ onDrag: function onDrag (t) {},
8073
+ onStopDrag: function onStopDrag (t) {},
8073
8074
  }),
8074
8075
  (t.fn.hidraggable.isDragging = !1);
8075
8076
  })(jQuery);
@@ -8104,17 +8105,17 @@ var hiprint = (function (t) {
8104
8105
  }));
8105
8106
  }),
8106
8107
  (t.fn.hidroppable.methods = {
8107
- options: function options(e) {
8108
+ options: function options (e) {
8108
8109
  return t.data(e[0], "hidroppable").options;
8109
8110
  },
8110
- enable: function enable(e) {
8111
+ enable: function enable (e) {
8111
8112
  return e.each(function () {
8112
8113
  t(this).hidroppable({
8113
8114
  disabled: !1,
8114
8115
  });
8115
8116
  });
8116
8117
  },
8117
- disable: function disable(e) {
8118
+ disable: function disable (e) {
8118
8119
  return e.each(function () {
8119
8120
  t(this).hidroppable({
8120
8121
  disabled: !0,
@@ -8131,17 +8132,17 @@ var hiprint = (function (t) {
8131
8132
  (t.fn.hidroppable.defaults = {
8132
8133
  accept: null,
8133
8134
  disabled: !1,
8134
- onDragEnter: function onDragEnter(t, e) {},
8135
- onDragOver: function onDragOver(t, e) {},
8136
- onDragLeave: function onDragLeave(t, e) {},
8137
- onDrop: function onDrop(t, e) {},
8135
+ onDragEnter: function onDragEnter (t, e) {},
8136
+ onDragOver: function onDragOver (t, e) {},
8137
+ onDragLeave: function onDragLeave (t, e) {},
8138
+ onDrop: function onDrop (t, e) {},
8138
8139
  });
8139
8140
  })(jQuery);
8140
8141
  },
8141
8142
  function (t, e) {
8142
8143
  var n;
8143
8144
  ((n = jQuery).hiprintparser = {
8144
- parseOptions: function parseOptions(t, e) {
8145
+ parseOptions: function parseOptions (t, e) {
8145
8146
  var i = n(t),
8146
8147
  o = {},
8147
8148
  r = n.trim(i.attr("data-options"));
@@ -8183,21 +8184,21 @@ var hiprint = (function (t) {
8183
8184
  (i = {
8184
8185
  maxPanelIndex: 0,
8185
8186
  }),
8186
- ((o = function o(t) {
8187
+ ((o = function o (t) {
8187
8188
  (this.options = n.data(t.target, "hireizeable").options), this.init(t.target);
8188
8189
  }).prototype = {
8189
- numHandlerText: function numHandlerText(t) {
8190
+ numHandlerText: function numHandlerText (t) {
8190
8191
  return this.numHandler(t) + "pt";
8191
8192
  },
8192
- numHandler: function numHandler(t) {
8193
+ numHandler: function numHandler (t) {
8193
8194
  var e = 1.5,
8194
8195
  n = 0.75 * t;
8195
8196
  return this.options.minResize && (e = this.options.minResize), Math.round(n / e) * e;
8196
8197
  },
8197
- init: function init(t) {
8198
+ init: function init (t) {
8198
8199
  this.initResizeBox(t);
8199
8200
  },
8200
- initResizeBox: function initResizeBox(t) {
8201
+ initResizeBox: function initResizeBox (t) {
8201
8202
  var e = this;
8202
8203
  n(t).each(function () {
8203
8204
  var o;
@@ -8205,21 +8206,21 @@ var hiprint = (function (t) {
8205
8206
  e.options.noContainer
8206
8207
  ? (o = n(t))
8207
8208
  : (o = n("<div panelIndex=" + i.maxPanelIndex + ' class="resize-panel"></div>')).css({
8208
- width: "100%",
8209
- height: "100%",
8210
- top: 0,
8211
- left: 0,
8212
- position: "absolute",
8213
- "background-color": "rgba(0,0,0,0.5)",
8214
- cursor: "move",
8215
- display: "none",
8216
- }),
8209
+ width: "100%",
8210
+ height: "100%",
8211
+ top: 0,
8212
+ left: 0,
8213
+ position: "absolute",
8214
+ "background-color": "rgba(0,0,0,0.5)",
8215
+ cursor: "move",
8216
+ display: "none",
8217
+ }),
8217
8218
  e.appendHandler(o, n(this));
8218
8219
 
8219
8220
  var r = {
8220
- name: "n",
8221
- target: n('<div class="n resizebtn" style="cursor: n-resize;top: -12px;margin-left: -4px;left: 50%;"></div>'),
8222
- },
8221
+ name: "n",
8222
+ target: n('<div class="n resizebtn" style="cursor: n-resize;top: -12px;margin-left: -4px;left: 50%;"></div>'),
8223
+ },
8223
8224
  a = {
8224
8225
  name: "s",
8225
8226
  target: n('<div class="s resizebtn" style="cursor: s-resize;bottom: -12px;margin-left: -4px;left: 50%;"></div>'),
@@ -8254,7 +8255,7 @@ var hiprint = (function (t) {
8254
8255
  },
8255
8256
  sizeBox = n('<div class="size-box" style="position: absolute;left:-2px;"></div>'),
8256
8257
  deleteBtn = n('<div class="del-btn">✕</div>'),
8257
- h = function h() {
8258
+ h = function h () {
8258
8259
  var t = [],
8259
8260
  i = e.options.showPoints;
8260
8261
  return (
@@ -8288,7 +8289,7 @@ var hiprint = (function (t) {
8288
8289
  }),
8289
8290
  e.bindHidePanel();
8290
8291
  },
8291
- addHandlerCss: function addHandlerCss(t) {
8292
+ addHandlerCss: function addHandlerCss (t) {
8292
8293
  for (var e = 0; e < t.length; e++) {
8293
8294
  t[e].css({
8294
8295
  position: "absolute",
@@ -8299,13 +8300,13 @@ var hiprint = (function (t) {
8299
8300
  });
8300
8301
  }
8301
8302
  },
8302
- appendHandler: function appendHandler(t, e) {
8303
+ appendHandler: function appendHandler (t, e) {
8303
8304
  e.find(".resize-panel").remove();
8304
8305
  for (var n = 0; n < t.length; n++) {
8305
8306
  e.append(t[n]);
8306
8307
  }
8307
8308
  },
8308
- refreshSizeBox: function refreshSizeBox(t, box, o) {
8309
+ refreshSizeBox: function refreshSizeBox (t, box, o) {
8309
8310
  if (!this.options.showSizeBox) return;
8310
8311
  if (box) {
8311
8312
  o.append(box);
@@ -8331,7 +8332,7 @@ var hiprint = (function (t) {
8331
8332
  sizeBox.css("top", -(sizeBox.outerHeight() || 20));
8332
8333
  }
8333
8334
  },
8334
- triggerResize: function triggerResize(t, n) {
8335
+ triggerResize: function triggerResize (t, n) {
8335
8336
  // 处理按住 ctrl / command 点击元素 多选
8336
8337
  if (!(n.ctrlKey || n.metaKey)) {
8337
8338
  t.siblings().children("div[panelindex]").removeClass("selected");
@@ -8345,7 +8346,7 @@ var hiprint = (function (t) {
8345
8346
  });
8346
8347
  this.refreshSizeBox(t);
8347
8348
  },
8348
- bindResizeEvent: function bindResizeEvent(t, e) {
8349
+ bindResizeEvent: function bindResizeEvent (t, e) {
8349
8350
  var i = this,
8350
8351
  o = 0,
8351
8352
  r = 0,
@@ -8525,12 +8526,12 @@ var hiprint = (function (t) {
8525
8526
  // 按下
8526
8527
  b &&
8527
8528
  ((n = (e.pageX - o) / i.options.getScale()),
8528
- (E = (e.pageY - r) / i.options.getScale()),
8529
- u.css({
8530
- left: i.numHandlerText(i.options.noDrag ? void 0 : s + n),
8531
- top: i.numHandlerText(i.options.noDrag ? void 0 : l + E),
8532
- }),
8533
- i.options.onResize(e, void 0, void 0, i.options.noDrag ? void 0 : i.numHandler(l + E), i.options.noDrag ? void 0 : i.numHandler(s + n)));
8529
+ (E = (e.pageY - r) / i.options.getScale()),
8530
+ u.css({
8531
+ left: i.numHandlerText(i.options.noDrag ? void 0 : s + n),
8532
+ top: i.numHandlerText(i.options.noDrag ? void 0 : l + E),
8533
+ }),
8534
+ i.options.onResize(e, void 0, void 0, i.options.noDrag ? void 0 : i.numHandler(l + E), i.options.noDrag ? void 0 : i.numHandler(s + n)));
8534
8535
  }
8535
8536
  })
8536
8537
  .on("mouseup", function (t) {
@@ -8542,13 +8543,13 @@ var hiprint = (function (t) {
8542
8543
  (d = !1), (c = !1), (h = !1), (f = !1), (g = !1), (m = !1), (y = !1), (v = !1), (b = !1), (rt = !1);
8543
8544
  });
8544
8545
  },
8545
- bindTrigger: function bindTrigger(t) {
8546
+ bindTrigger: function bindTrigger (t) {
8546
8547
  var e = this;
8547
8548
  t.on("click", function (_n) {
8548
8549
  _n.stopPropagation(), e.triggerResize(t, _n), n(".mouseRect").remove();
8549
8550
  });
8550
8551
  },
8551
- bindHidePanel: function bindHidePanel(t) {
8552
+ bindHidePanel: function bindHidePanel (t) {
8552
8553
  if (i.maxPanelIndex < 2) {
8553
8554
  var e = this.options.stage;
8554
8555
  n(e).bind("click", function (t) {
@@ -8565,7 +8566,7 @@ var hiprint = (function (t) {
8565
8566
  },
8566
8567
  }),
8567
8568
  n.fn.extend({
8568
- hireizeable: function hireizeable(t) {
8569
+ hireizeable: function hireizeable (t) {
8569
8570
  return this.each(function () {
8570
8571
  var e,
8571
8572
  i = n.data(this, "hireizeable");
@@ -8575,8 +8576,8 @@ var hiprint = (function (t) {
8575
8576
  }),
8576
8577
  new o({
8577
8578
  target: this,
8578
- onResize: function onResize(t, e, n, i, o) {},
8579
- onStopResize: function onStopResize(t, e, n, i, o) {},
8579
+ onResize: function onResize (t, e, n, i, o) {},
8580
+ onStopResize: function onStopResize (t, e, n, i, o) {},
8580
8581
  });
8581
8582
  });
8582
8583
  },
@@ -8588,9 +8589,9 @@ var hiprint = (function (t) {
8588
8589
  showSizeBox: !0,
8589
8590
  showPoints: ["s", "e"],
8590
8591
  noContainer: !1,
8591
- onBeforeResize: function onBeforeResize(t, e, n, i, o) {},
8592
- onResize: function onResize(t, e, n, i, o) {},
8593
- onStopResize: function onStopResize(t, e, n, i, o) {},
8592
+ onBeforeResize: function onBeforeResize (t, e, n, i, o) {},
8593
+ onResize: function onResize (t, e, n, i, o) {},
8594
+ onStopResize: function onStopResize (t, e, n, i, o) {},
8594
8595
  noDrag: !1,
8595
8596
  });
8596
8597
  },
@@ -8606,44 +8607,44 @@ var hiprint = (function (t) {
8606
8607
  reconnectTimeout: 6e4,
8607
8608
  reconnectWindowSetTimeout: null,
8608
8609
  reconnectDelay: 2e3,
8609
- supportsKeepAlive: function supportsKeepAlive() {
8610
+ supportsKeepAlive: function supportsKeepAlive () {
8610
8611
  return !0;
8611
8612
  },
8612
- hasIo: function hasIo(t) {
8613
+ hasIo: function hasIo (t) {
8613
8614
  return window.io;
8614
8615
  },
8615
- send: function send(t) {
8616
+ send: function send (t) {
8616
8617
  try {
8617
8618
  this.socket.emit("news", t);
8618
8619
  } catch (e) {
8619
8620
  console.log("send data error:" + (t || "") + JSON.stringify(e));
8620
8621
  }
8621
8622
  },
8622
- getPrinterList: function getPrinterList() {
8623
+ getPrinterList: function getPrinterList () {
8623
8624
  return this.printerList;
8624
8625
  },
8625
- refreshPrinterList: function refreshPrinterList() {
8626
+ refreshPrinterList: function refreshPrinterList () {
8626
8627
  try {
8627
8628
  this.socket.emit("refreshPrinterList");
8628
8629
  } catch (e) {
8629
8630
  console.log("refreshPrinterList error:" + JSON.stringify(e));
8630
8631
  }
8631
8632
  },
8632
- getAddress: function getAddress(type, ...args) {
8633
+ getAddress: function getAddress (type, ...args) {
8633
8634
  try {
8634
8635
  this.socket.emit("address", type, ...args);
8635
8636
  } catch (e) {
8636
8637
  console.log("getAddress error:" + JSON.stringify(e));
8637
8638
  }
8638
8639
  },
8639
- ippPrint: function ippPrint(options) {
8640
+ ippPrint: function ippPrint (options) {
8640
8641
  try {
8641
8642
  this.socket.emit("ippPrint", options);
8642
8643
  } catch (e) {
8643
8644
  console.log("ippPrint error:" + JSON.stringify(e));
8644
8645
  }
8645
8646
  },
8646
- ippRequest: function ippRequest(options) {
8647
+ ippRequest: function ippRequest (options) {
8647
8648
  try {
8648
8649
  this.socket.emit("ippRequest", options);
8649
8650
  } catch (e) {
@@ -8655,15 +8656,15 @@ var hiprint = (function (t) {
8655
8656
  this.stop();
8656
8657
  this.start(cb);
8657
8658
  },
8658
- start: function start(cb) {
8659
+ start: function start (cb) {
8659
8660
  var _this = this;
8660
8661
 
8661
8662
  var t = this;
8662
8663
  window.WebSocket
8663
8664
  ? this.socket ||
8664
- ((this.socket = window.io(this.host, {
8665
- reconnectionAttempts: 5,
8666
- })),
8665
+ ((this.socket = window.io(this.host, {
8666
+ reconnectionAttempts: 5,
8667
+ })),
8667
8668
  this.socket.on("connect", function (e) {
8668
8669
  (t.opened = !0),
8669
8670
  console.log("Websocket opened."),
@@ -8708,13 +8709,13 @@ var hiprint = (function (t) {
8708
8709
  : console.log("WebSocket start fail"),
8709
8710
  cb && cb(false);
8710
8711
  },
8711
- reconnect: function reconnect() {
8712
+ reconnect: function reconnect () {
8712
8713
  (this.state !== n && this.state !== i) || (this.stop(), this.ensureReconnectingState() && (console.log("Websocket reconnecting."), this.start()));
8713
8714
  },
8714
- stop: function stop() {
8715
+ stop: function stop () {
8715
8716
  this.socket && (console.log("Closing the Websocket."), this.socket.close(), (this.socket = null), (this.printerList = []));
8716
8717
  },
8717
- ensureReconnectingState: function ensureReconnectingState() {
8718
+ ensureReconnectingState: function ensureReconnectingState () {
8718
8719
  return (this.state = i), this.state === i;
8719
8720
  },
8720
8721
  });
@@ -8783,12 +8784,12 @@ var hiprint = (function (t) {
8783
8784
  o,
8784
8785
  r = {},
8785
8786
  a =
8786
- ((i = function i() {
8787
+ ((i = function i () {
8787
8788
  return window && document && document.all && !window.atob;
8788
8789
  }),
8789
- function () {
8790
- return void 0 === o && (o = i.apply(this, arguments)), o;
8791
- }),
8790
+ function () {
8791
+ return void 0 === o && (o = i.apply(this, arguments)), o;
8792
+ }),
8792
8793
  p = (function (t) {
8793
8794
  var e = {};
8794
8795
  return function (t, n) {
@@ -8816,7 +8817,7 @@ var hiprint = (function (t) {
8816
8817
  u = [],
8817
8818
  d = n(31);
8818
8819
 
8819
- function c(t, e) {
8820
+ function c (t, e) {
8820
8821
  for (var n = 0; n < t.length; n++) {
8821
8822
  var i = t[n],
8822
8823
  o = r[i.id];
@@ -8847,7 +8848,7 @@ var hiprint = (function (t) {
8847
8848
  }
8848
8849
  }
8849
8850
 
8850
- function h(t, e) {
8851
+ function h (t, e) {
8851
8852
  for (var n = [], i = {}, o = 0; o < t.length; o++) {
8852
8853
  var r = t[o],
8853
8854
  a = e.base ? r[0] + e.base : r[0],
@@ -8859,17 +8860,17 @@ var hiprint = (function (t) {
8859
8860
  i[a]
8860
8861
  ? i[a].parts.push(p)
8861
8862
  : n.push(
8862
- (i[a] = {
8863
- id: a,
8864
- parts: [p],
8865
- })
8866
- );
8863
+ (i[a] = {
8864
+ id: a,
8865
+ parts: [p],
8866
+ })
8867
+ );
8867
8868
  }
8868
8869
 
8869
8870
  return n;
8870
8871
  }
8871
8872
 
8872
- function f(t, e) {
8873
+ function f (t, e) {
8873
8874
  var n = p(t.insertInto);
8874
8875
  if (!n) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
8875
8876
  var i = u[u.length - 1];
@@ -8882,14 +8883,14 @@ var hiprint = (function (t) {
8882
8883
  }
8883
8884
  }
8884
8885
 
8885
- function g(t) {
8886
+ function g (t) {
8886
8887
  if (null === t.parentNode) return !1;
8887
8888
  t.parentNode.removeChild(t);
8888
8889
  var e = u.indexOf(t);
8889
8890
  e >= 0 && u.splice(e, 1);
8890
8891
  }
8891
8892
 
8892
- function m(t) {
8893
+ function m (t) {
8893
8894
  var e = document.createElement("style");
8894
8895
 
8895
8896
  if ((void 0 === t.attrs.type && (t.attrs.type = "text/css"), void 0 === t.attrs.nonce)) {
@@ -8904,13 +8905,13 @@ var hiprint = (function (t) {
8904
8905
  return v(e, t.attrs), f(t, e), e;
8905
8906
  }
8906
8907
 
8907
- function v(t, e) {
8908
+ function v (t, e) {
8908
8909
  Object.keys(e).forEach(function (n) {
8909
8910
  t.setAttribute(n, e[n]);
8910
8911
  });
8911
8912
  }
8912
8913
 
8913
- function y(t, e) {
8914
+ function y (t, e) {
8914
8915
  var n, i, o, r;
8915
8916
 
8916
8917
  if (e.transform && t.css) {
@@ -8924,9 +8925,9 @@ var hiprint = (function (t) {
8924
8925
  } else
8925
8926
  t.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa
8926
8927
  ? ((n = (function (t) {
8927
- var e = document.createElement("link");
8928
- return void 0 === t.attrs.type && (t.attrs.type = "text/css"), (t.attrs.rel = "stylesheet"), v(e, t.attrs), f(t, e), e;
8929
- })(e)),
8928
+ var e = document.createElement("link");
8929
+ return void 0 === t.attrs.type && (t.attrs.type = "text/css"), (t.attrs.rel = "stylesheet"), v(e, t.attrs), f(t, e), e;
8930
+ })(e)),
8930
8931
  (i = function (t, e, n) {
8931
8932
  var i = n.css,
8932
8933
  o = n.sourceMap,
@@ -8934,12 +8935,12 @@ var hiprint = (function (t) {
8934
8935
  (e.convertToAbsoluteUrls || r) && (i = d(i));
8935
8936
  o && (i += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */");
8936
8937
  var a = new Blob([i], {
8937
- type: "text/css",
8938
- }),
8938
+ type: "text/css",
8939
+ }),
8939
8940
  p = t.href;
8940
8941
  (t.href = URL.createObjectURL(a)), p && URL.revokeObjectURL(p);
8941
8942
  }.bind(null, n, e)),
8942
- (o = function o() {
8943
+ (o = function o () {
8943
8944
  g(n), n.href && URL.revokeObjectURL(n.href);
8944
8945
  }))
8945
8946
  : ((n = m(e)),
@@ -8949,14 +8950,14 @@ var hiprint = (function (t) {
8949
8950
  i && t.setAttribute("media", i);
8950
8951
  if (t.styleSheet) t.styleSheet.cssText = n;
8951
8952
  else {
8952
- for (; t.firstChild; ) {
8953
+ for (; t.firstChild;) {
8953
8954
  t.removeChild(t.firstChild);
8954
8955
  }
8955
8956
 
8956
8957
  t.appendChild(document.createTextNode(n));
8957
8958
  }
8958
8959
  }.bind(null, n)),
8959
- (o = function o() {
8960
+ (o = function o () {
8960
8961
  g(n);
8961
8962
  }));
8962
8963
 
@@ -9003,11 +9004,11 @@ var hiprint = (function (t) {
9003
9004
  var b,
9004
9005
  E =
9005
9006
  ((b = []),
9006
- function (t, e) {
9007
- return (b[t] = e), b.filter(Boolean).join("\n");
9008
- });
9007
+ function (t, e) {
9008
+ return (b[t] = e), b.filter(Boolean).join("\n");
9009
+ });
9009
9010
 
9010
- function T(t, e, n, i) {
9011
+ function T (t, e, n, i) {
9011
9012
  var o = n ? "" : i.css;
9012
9013
  if (t.styleSheet) t.styleSheet.cssText = E(e, o);
9013
9014
  else {
@@ -9043,20 +9044,20 @@ var hiprint = (function (t) {
9043
9044
  window,
9044
9045
  document,
9045
9046
  (n = jQuery),
9046
- ((i = function i(t, e) {
9047
+ ((i = function i (t, e) {
9047
9048
  this.init(t, e);
9048
9049
  }).prototype = {
9049
- init: function init(t, e) {
9050
+ init: function init (t, e) {
9050
9051
  (this.ele = t),
9051
9052
  (this.defaults = {
9052
9053
  menu: [
9053
9054
  {
9054
9055
  text: "text",
9055
9056
  menus: [{}, {}],
9056
- callback: function callback() {},
9057
+ callback: function callback () {},
9057
9058
  },
9058
9059
  ],
9059
- target: function target(t) {},
9060
+ target: function target (t) {},
9060
9061
  width: 100,
9061
9062
  itemHeight: 28,
9062
9063
  bgColor: "#fff",
@@ -9068,7 +9069,7 @@ var hiprint = (function (t) {
9068
9069
  (this.random = new Date().getTime() + parseInt(1e3 * Math.random())),
9069
9070
  this.eventBind();
9070
9071
  },
9071
- renderMenu: function renderMenu(t, e) {
9072
+ renderMenu: function renderMenu (t, e) {
9072
9073
  var n = this,
9073
9074
  i = e;
9074
9075
 
@@ -9082,9 +9083,9 @@ var hiprint = (function (t) {
9082
9083
  e.borderBottom && r.addClass("borderBottom"),
9083
9084
  e.menus && (r.addClass("hicontextsubmenu"), n.renderMenu(e.menus, r)),
9084
9085
  e.callback &&
9085
- r.click(function (t) {
9086
- $(this).hasClass("disable") ? t.stopPropagation() : ($(".hicontextmenuroot").remove(), e.callback(), t.stopPropagation());
9087
- }),
9086
+ r.click(function (t) {
9087
+ $(this).hasClass("disable") ? t.stopPropagation() : ($(".hicontextmenuroot").remove(), e.callback(), t.stopPropagation());
9088
+ }),
9088
9089
  o.append(r);
9089
9090
  }),
9090
9091
  e && e.append(o);
@@ -9092,7 +9093,7 @@ var hiprint = (function (t) {
9092
9093
 
9093
9094
  e || $("body").append(i).find(".hicontextmenuroot").hide();
9094
9095
  },
9095
- setPosition: function setPosition(t) {
9096
+ setPosition: function setPosition (t) {
9096
9097
  $(".hicontextmenuroot")
9097
9098
  .css({
9098
9099
  left: t.pageX + 2,
@@ -9100,7 +9101,7 @@ var hiprint = (function (t) {
9100
9101
  })
9101
9102
  .show();
9102
9103
  },
9103
- eventBind: function eventBind() {
9104
+ eventBind: function eventBind () {
9104
9105
  var t = this;
9105
9106
  this.ele.on("contextmenu", function (e) {
9106
9107
  $(".hicontextmenuroot").remove(), e.preventDefault(), t.renderMenu(t.opts.menus), t.setPosition(e), t.opts.target && "function" == typeof t.opts.target && t.opts.target(n(this));
@@ -9125,13 +9126,13 @@ var hiprint = (function (t) {
9125
9126
  window.hiLocalStorage =
9126
9127
  ((i = window.localStorage || null),
9127
9128
  {
9128
- saveLocalData: function saveLocalData(t, e) {
9129
+ saveLocalData: function saveLocalData (t, e) {
9129
9130
  return !(!i || !e || (i.setItem(t, e), 0));
9130
9131
  },
9131
- getLocalData: function getLocalData(t) {
9132
+ getLocalData: function getLocalData (t) {
9132
9133
  return i ? i.getItem(t) : null;
9133
9134
  },
9134
- removeItem: function removeItem(t) {
9135
+ removeItem: function removeItem (t) {
9135
9136
  i && i.removeItem(t);
9136
9137
  },
9137
9138
  });
@@ -9139,13 +9140,13 @@ var hiprint = (function (t) {
9139
9140
 
9140
9141
  var _r,
9141
9142
  a = (function () {
9142
- function t() {
9143
+ function t () {
9143
9144
  this.allElementTypes = [];
9144
9145
  }
9145
9146
 
9146
9147
  return (
9147
9148
  Object.defineProperty(t, "instance", {
9148
- get: function get() {
9149
+ get: function get () {
9149
9150
  return t._instance || (t._instance = new t()), t._instance;
9150
9151
  },
9151
9152
  enumerable: !0,
@@ -9197,7 +9198,7 @@ var hiprint = (function (t) {
9197
9198
  p = n(1),
9198
9199
  s = n(2),
9199
9200
  l = (function () {
9200
- function t() {}
9201
+ function t () {}
9201
9202
 
9202
9203
  return (
9203
9204
  (t.prototype.createPrintElementTypeHtml = function (t, e) {
@@ -9233,7 +9234,7 @@ var hiprint = (function (t) {
9233
9234
  };
9234
9235
  })(),
9235
9236
  h = (function () {
9236
- function t(t) {
9237
+ function t (t) {
9237
9238
  var e = this;
9238
9239
  (this.text = t.text),
9239
9240
  (this.field = t.field),
@@ -9282,10 +9283,10 @@ var hiprint = (function (t) {
9282
9283
  var e = this;
9283
9284
  return (
9284
9285
  this.columns &&
9285
- 0 == this.columns.length &&
9286
- (t.columns || []).forEach(function (t, n) {
9287
- e.columns.push(e.createTableColumnArray(t));
9288
- }),
9286
+ 0 == this.columns.length &&
9287
+ (t.columns || []).forEach(function (t, n) {
9288
+ e.columns.push(e.createTableColumnArray(t));
9289
+ }),
9289
9290
  new d.a(this, t)
9290
9291
  );
9291
9292
  }),
@@ -9340,14 +9341,14 @@ var hiprint = (function (t) {
9340
9341
  return (
9341
9342
  columns
9342
9343
  ? columns.forEach(function (e) {
9343
- (e.id || e.columnId) && (t[e.id || e.columnId] = e);
9344
- })
9344
+ (e.id || e.columnId) && (t[e.id || e.columnId] = e);
9345
+ })
9345
9346
  : this.columns &&
9346
- this.columns.forEach(function (e) {
9347
- e.forEach(function (e) {
9348
- (e.id || e.columnId) && (t[e.id || e.columnId] = e);
9349
- });
9350
- }),
9347
+ this.columns.forEach(function (e) {
9348
+ e.forEach(function (e) {
9349
+ (e.id || e.columnId) && (t[e.id || e.columnId] = e);
9350
+ });
9351
+ }),
9351
9352
  (this.columnObj = t),
9352
9353
  t
9353
9354
  );
@@ -9358,7 +9359,7 @@ var hiprint = (function (t) {
9358
9359
  f = n(4),
9359
9360
  g = n(3),
9360
9361
  m =
9361
- ((_r = function r(t, e) {
9362
+ ((_r = function r (t, e) {
9362
9363
  return (_r =
9363
9364
  Object.setPrototypeOf ||
9364
9365
  (_instanceof(
@@ -9376,15 +9377,15 @@ var hiprint = (function (t) {
9376
9377
  }
9377
9378
  })(t, e);
9378
9379
  }),
9379
- function (t, e) {
9380
- function n() {
9381
- this.constructor = t;
9382
- }
9380
+ function (t, e) {
9381
+ function n () {
9382
+ this.constructor = t;
9383
+ }
9383
9384
 
9384
- _r(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
9385
- }),
9385
+ _r(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n()));
9386
+ }),
9386
9387
  v = (function (t) {
9387
- function e(e, n) {
9388
+ function e (e, n) {
9388
9389
  var i = t.call(this, e) || this;
9389
9390
  return (i.options = new g.a(n)), i.options.setDefault(new g.a(p.a.instance.image.default).getPrintElementOptionEntity()), i;
9390
9391
  }
@@ -9428,7 +9429,7 @@ var hiprint = (function (t) {
9428
9429
  );
9429
9430
  })(f.a),
9430
9431
  y = (function () {
9431
- var _t4 = function t(e, n) {
9432
+ var _t4 = function t (e, n) {
9432
9433
  return (_t4 =
9433
9434
  Object.setPrototypeOf ||
9434
9435
  (_instanceof(
@@ -9448,7 +9449,7 @@ var hiprint = (function (t) {
9448
9449
  };
9449
9450
 
9450
9451
  return function (e, n) {
9451
- function i() {
9452
+ function i () {
9452
9453
  this.constructor = e;
9453
9454
  }
9454
9455
 
@@ -9456,7 +9457,7 @@ var hiprint = (function (t) {
9456
9457
  };
9457
9458
  })(),
9458
9459
  b = (function (t) {
9459
- function e(e) {
9460
+ function e (e) {
9460
9461
  var n = this;
9461
9462
  return (e = e || {}), ((n = t.call(this, e) || this).leftSpaceRemoved = e.leftSpaceRemoved), n;
9462
9463
  }
@@ -9471,7 +9472,7 @@ var hiprint = (function (t) {
9471
9472
  })(g.a),
9472
9473
  E = n(8),
9473
9474
  T = (function () {
9474
- function t(t, idx, watermarkOptions, pr, scl, e, n, i, r, a, p, s, s1, l, u, d) {
9475
+ function t (t, idx, watermarkOptions, pr, scl, e, n, i, r, a, p, s, s1, l, u, d) {
9475
9476
  (this.panelPageRule = pr),
9476
9477
  (this.scale = scl),
9477
9478
  (this.watermarkOptions = watermarkOptions),
@@ -9496,15 +9497,15 @@ var hiprint = (function (t) {
9496
9497
  (this.referenceElement = d
9497
9498
  ? $.extend({}, d)
9498
9499
  : new E.a({
9499
- top: 0,
9500
- left: 0,
9501
- height: 0,
9502
- width: 0,
9503
- bottomInLastPaper: 0,
9504
- beginPrintPaperIndex: 0,
9505
- printTopInPaper: 0,
9506
- endPrintPaperIndex: 0,
9507
- }));
9500
+ top: 0,
9501
+ left: 0,
9502
+ height: 0,
9503
+ width: 0,
9504
+ bottomInLastPaper: 0,
9505
+ beginPrintPaperIndex: 0,
9506
+ printTopInPaper: 0,
9507
+ endPrintPaperIndex: 0,
9508
+ }));
9508
9509
  }
9509
9510
 
9510
9511
  return (
@@ -9577,13 +9578,13 @@ var hiprint = (function (t) {
9577
9578
  i.css("left", this.paperNumberLeft + "pt"),
9578
9579
  this.paperContentTarget.append(i),
9579
9580
  d &&
9580
- this.dragHeadLineOrFootLine(
9581
- i,
9582
- function (t, n) {
9583
- (e.paperNumberTop = n), (e.paperNumberLeft = t), e.triggerOnPaperBaseInfoChanged();
9584
- },
9585
- !0
9586
- ),
9581
+ this.dragHeadLineOrFootLine(
9582
+ i,
9583
+ function (t, n) {
9584
+ (e.paperNumberTop = n), (e.paperNumberLeft = t), e.triggerOnPaperBaseInfoChanged();
9585
+ },
9586
+ !0
9587
+ ),
9587
9588
  i
9588
9589
  );
9589
9590
  }),
@@ -9619,7 +9620,7 @@ var hiprint = (function (t) {
9619
9620
  paperNumberDisabled: e.paperNumberDisabled,
9620
9621
  paperNumberContinue: e.paperNumberContinue,
9621
9622
  },
9622
- callback: function callback(t) {
9623
+ callback: function callback (t) {
9623
9624
  (e.paperNumberDisabled = !!t.paperNumberDisabled || void 0), (e.paperNumberContinue = t.paperNumberContinue), (e.paperNumberFormat = t.paperNumberFormat ? t.paperNumberFormat : void 0), e.createPaperNumber(e.formatPaperNumber(1, 1), true), e.resetPaperNumber(e.paperNumberTarget), e.triggerOnPaperBaseInfoChanged();
9624
9625
  },
9625
9626
  });
@@ -9640,18 +9641,18 @@ var hiprint = (function (t) {
9640
9641
  var i = this;
9641
9642
  t.hidraggable({
9642
9643
  axis: n ? void 0 : "v",
9643
- onDrag: function onDrag(t, n, i) {
9644
+ onDrag: function onDrag (t, n, i) {
9644
9645
  e(n, i);
9645
9646
  },
9646
9647
  moveUnit: "pt",
9647
9648
  minMove: p.a.instance.movingDistance,
9648
- onBeforeDrag: function onBeforeDrag(t) {
9649
+ onBeforeDrag: function onBeforeDrag (t) {
9649
9650
  s.a.instance.draging = !0;
9650
9651
  },
9651
- getScale: function getScale() {
9652
+ getScale: function getScale () {
9652
9653
  return i.scale || 1;
9653
9654
  },
9654
- onStopDrag: function onStopDrag(t) {
9655
+ onStopDrag: function onStopDrag (t) {
9655
9656
  i.headerLinetarget.css("top", i.paperHeader + "pt");
9656
9657
  i.footerLinetarget.css("top", i.paperFooter + "pt");
9657
9658
  (s.a.instance.draging = !1), i.footerLinetarget.removeClass("hidefooterLinetarget"), i.headerLinetarget.removeClass("hideheaderLinetarget");
@@ -9728,7 +9729,7 @@ var hiprint = (function (t) {
9728
9729
  })(),
9729
9730
  P = n(6),
9730
9731
  _ = (function () {
9731
- var _t5 = function t(e, n) {
9732
+ var _t5 = function t (e, n) {
9732
9733
  return (_t5 =
9733
9734
  Object.setPrototypeOf ||
9734
9735
  (_instanceof(
@@ -9748,7 +9749,7 @@ var hiprint = (function (t) {
9748
9749
  };
9749
9750
 
9750
9751
  return function (e, n) {
9751
- function i() {
9752
+ function i () {
9752
9753
  this.constructor = e;
9753
9754
  }
9754
9755
 
@@ -9756,7 +9757,7 @@ var hiprint = (function (t) {
9756
9757
  };
9757
9758
  })(),
9758
9759
  w = (function (t) {
9759
- function e(e, n) {
9760
+ function e (e, n) {
9760
9761
  var i = t.call(this, e) || this;
9761
9762
  return (i.options = new b(n)), i.options.setDefault(new b(p.a.instance.longText.default).getPrintElementOptionEntity()), i;
9762
9763
  }
@@ -9833,8 +9834,8 @@ var hiprint = (function (t) {
9833
9834
  var n = 0 != i.options.leftSpaceRemoved ? (t || "").toString().replace(/^\s*/, "") : t;
9834
9835
  (l = l.concat(n.split(""))), e < u.length - 1 && l.push("<br/>" + i.getLongTextIndent());
9835
9836
  }),
9836
- 0 == l.length && (l = [""]),
9837
- this.isHeaderOrFooter() || this.isFixed() || !e)
9837
+ 0 == l.length && (l = [""]),
9838
+ this.isHeaderOrFooter() || this.isFixed() || !e)
9838
9839
  )
9839
9840
  return (
9840
9841
  (f = this.getStringBySpecificHeight(l, 25e3, s)).target.css("left", this.options.displayLeft()),
@@ -9858,22 +9859,22 @@ var hiprint = (function (t) {
9858
9859
  o
9859
9860
  );
9860
9861
 
9861
- for (var d = this.getBeginPrintTopInPaperByReferenceElement(t); l.length > 0; ) {
9862
+ for (var d = this.getBeginPrintTopInPaperByReferenceElement(t); l.length > 0;) {
9862
9863
  var c = 0,
9863
9864
  h = t.getPaperFooter(r);
9864
9865
  0 == r &&
9865
9866
  d > h &&
9866
9867
  "none" != t.panelPageRule &&
9867
9868
  ((d = d - h + t.paperHeader),
9868
- o.push(
9869
- new P.a({
9870
- target: void 0,
9871
- printLine: void 0,
9872
- })
9873
- ),
9874
- r++,
9875
- (c = t.getContentHeight(r) - (d - t.paperHeader)),
9876
- (h = t.getPaperFooter(r)));
9869
+ o.push(
9870
+ new P.a({
9871
+ target: void 0,
9872
+ printLine: void 0,
9873
+ })
9874
+ ),
9875
+ r++,
9876
+ (c = t.getContentHeight(r) - (d - t.paperHeader)),
9877
+ (h = t.getPaperFooter(r)));
9877
9878
  var f = this.getStringBySpecificHeight(l, c > 0 ? c : 0 == r ? h - d : t.getContentHeight(r), s);
9878
9879
  l.splice(0, f.length);
9879
9880
  var g = void 0,
@@ -9945,38 +9946,38 @@ var hiprint = (function (t) {
9945
9946
  var a = i.height();
9946
9947
  return e >= t.length - 1 && a < n
9947
9948
  ? {
9948
- IsPagination: !0,
9949
- height: o.a.px.toPt(a),
9950
- length: t.length,
9951
- target: i.clone(),
9952
- }
9949
+ IsPagination: !0,
9950
+ height: o.a.px.toPt(a),
9951
+ length: t.length,
9952
+ target: i.clone(),
9953
+ }
9953
9954
  : a <= n && r >= n
9954
- ? {
9955
+ ? {
9955
9956
  IsPagination: !0,
9956
9957
  height: a,
9957
9958
  length: e + 1,
9958
9959
  target: i.clone(),
9959
9960
  }
9960
- : a >= n
9961
- ? {
9962
- IsPagination: !1,
9963
- move: "l",
9964
- }
9965
- : r <= n
9966
- ? {
9967
- IsPagination: !1,
9968
- move: "r",
9969
- }
9970
- : {
9971
- IsPagination: !0,
9972
- result: 1,
9973
- };
9961
+ : a >= n
9962
+ ? {
9963
+ IsPagination: !1,
9964
+ move: "l",
9965
+ }
9966
+ : r <= n
9967
+ ? {
9968
+ IsPagination: !1,
9969
+ move: "r",
9970
+ }
9971
+ : {
9972
+ IsPagination: !0,
9973
+ result: 1,
9974
+ };
9974
9975
  }),
9975
9976
  e
9976
9977
  );
9977
9978
  })(f.a),
9978
9979
  x = (function () {
9979
- function t() {}
9980
+ function t () {}
9980
9981
 
9981
9982
  return (
9982
9983
  (t.replaceEnterAndNewline = function (t, e) {
@@ -9992,7 +9993,7 @@ var hiprint = (function (t) {
9992
9993
  );
9993
9994
  })(),
9994
9995
  C = (function () {
9995
- var _t6 = function t(e, n) {
9996
+ var _t6 = function t (e, n) {
9996
9997
  return (_t6 =
9997
9998
  Object.setPrototypeOf ||
9998
9999
  (_instanceof(
@@ -10012,7 +10013,7 @@ var hiprint = (function (t) {
10012
10013
  };
10013
10014
 
10014
10015
  return function (e, n) {
10015
- function i() {
10016
+ function i () {
10016
10017
  this.constructor = e;
10017
10018
  }
10018
10019
 
@@ -10020,7 +10021,7 @@ var hiprint = (function (t) {
10020
10021
  };
10021
10022
  })(),
10022
10023
  O = (function (t) {
10023
- function e(e) {
10024
+ function e (e) {
10024
10025
  var n = t.call(this, e) || this;
10025
10026
  return n.title && (n.title = x.replaceEnterAndNewlineAndTab(n.title, "")), n;
10026
10027
  }
@@ -10046,7 +10047,7 @@ var hiprint = (function (t) {
10046
10047
  );
10047
10048
  })(g.a),
10048
10049
  H = (function () {
10049
- var _t7 = function t(e, n) {
10050
+ var _t7 = function t (e, n) {
10050
10051
  return (_t7 =
10051
10052
  Object.setPrototypeOf ||
10052
10053
  (_instanceof(
@@ -10066,7 +10067,7 @@ var hiprint = (function (t) {
10066
10067
  };
10067
10068
 
10068
10069
  return function (e, n) {
10069
- function i() {
10070
+ function i () {
10070
10071
  this.constructor = e;
10071
10072
  }
10072
10073
 
@@ -10074,7 +10075,7 @@ var hiprint = (function (t) {
10074
10075
  };
10075
10076
  })(),
10076
10077
  D = (function (t) {
10077
- function e(e, n) {
10078
+ function e (e, n) {
10078
10079
  var i = t.call(this, e) || this;
10079
10080
  return (i.options = new O(n)), i.options.setDefault(new O(p.a.instance.text.default).getPrintElementOptionEntity()), i;
10080
10081
  }
@@ -10131,14 +10132,14 @@ var hiprint = (function (t) {
10131
10132
  try {
10132
10133
  n
10133
10134
  ? (JsBarcode(a.find(".hibarcode_imgcode")[0], n, {
10134
- format: this.options.getbarcodeMode(),
10135
- width: 1,
10136
- textMargin: -1,
10137
- lineColor: this.options.color || "#000000",
10138
- margin: 0,
10139
- height: parseInt(o.a.pt.toPx(this.options.getHeight() || 10).toString()),
10140
- displayValue: !1,
10141
- }),
10135
+ format: this.options.getbarcodeMode(),
10136
+ width: 1,
10137
+ textMargin: -1,
10138
+ lineColor: this.options.color || "#000000",
10139
+ margin: 0,
10140
+ height: parseInt(o.a.pt.toPx(this.options.getHeight() || 10).toString()),
10141
+ displayValue: !1,
10142
+ }),
10142
10143
  a.find(".hibarcode_imgcode").attr("height", "100%"),
10143
10144
  a.find(".hibarcode_imgcode").attr("width", "100%"),
10144
10145
  this.options.hideTitle || a.find(".hibarcode_displayValue").html(n))
@@ -10196,7 +10197,7 @@ var hiprint = (function (t) {
10196
10197
  );
10197
10198
  })(f.a),
10198
10199
  I = (function () {
10199
- var _t8 = function t(e, n) {
10200
+ var _t8 = function t (e, n) {
10200
10201
  return (_t8 =
10201
10202
  Object.setPrototypeOf ||
10202
10203
  (_instanceof(
@@ -10216,7 +10217,7 @@ var hiprint = (function (t) {
10216
10217
  };
10217
10218
 
10218
10219
  return function (e, n) {
10219
- function i() {
10220
+ function i () {
10220
10221
  this.constructor = e;
10221
10222
  }
10222
10223
 
@@ -10224,14 +10225,14 @@ var hiprint = (function (t) {
10224
10225
  };
10225
10226
  })(),
10226
10227
  R = (function (t) {
10227
- function e(e) {
10228
+ function e (e) {
10228
10229
  return t.call(this, e) || this;
10229
10230
  }
10230
10231
 
10231
10232
  return I(e, t), e;
10232
10233
  })(g.a),
10233
10234
  M = (function () {
10234
- var _t9 = function t(e, n) {
10235
+ var _t9 = function t (e, n) {
10235
10236
  return (_t9 =
10236
10237
  Object.setPrototypeOf ||
10237
10238
  (_instanceof(
@@ -10251,7 +10252,7 @@ var hiprint = (function (t) {
10251
10252
  };
10252
10253
 
10253
10254
  return function (e, n) {
10254
- function i() {
10255
+ function i () {
10255
10256
  this.constructor = e;
10256
10257
  }
10257
10258
 
@@ -10259,7 +10260,7 @@ var hiprint = (function (t) {
10259
10260
  };
10260
10261
  })(),
10261
10262
  S = (function (t) {
10262
- function e(e, n) {
10263
+ function e (e, n) {
10263
10264
  var i = t.call(this, e) || this;
10264
10265
  return (i.options = new R(n)), i.options.setDefault(new R(p.a.instance.html.default).getPrintElementOptionEntity()), i;
10265
10266
  }
@@ -10301,7 +10302,7 @@ var hiprint = (function (t) {
10301
10302
  );
10302
10303
  })(f.a),
10303
10304
  B = (function () {
10304
- var _t10 = function t(e, n) {
10305
+ var _t10 = function t (e, n) {
10305
10306
  return (_t10 =
10306
10307
  Object.setPrototypeOf ||
10307
10308
  (_instanceof(
@@ -10321,7 +10322,7 @@ var hiprint = (function (t) {
10321
10322
  };
10322
10323
 
10323
10324
  return function (e, n) {
10324
- function i() {
10325
+ function i () {
10325
10326
  this.constructor = e;
10326
10327
  }
10327
10328
 
@@ -10329,7 +10330,7 @@ var hiprint = (function (t) {
10329
10330
  };
10330
10331
  })(),
10331
10332
  F = (function (t) {
10332
- function e(e, n) {
10333
+ function e (e, n) {
10333
10334
  var i = t.call(this, e) || this;
10334
10335
  return (i.options = new g.a(n)), i.options.setDefault(new g.a(p.a.instance.vline.default).getPrintElementOptionEntity()), i;
10335
10336
  }
@@ -10358,7 +10359,7 @@ var hiprint = (function (t) {
10358
10359
  );
10359
10360
  })(f.a),
10360
10361
  L = (function () {
10361
- var _t11 = function t(e, n) {
10362
+ var _t11 = function t (e, n) {
10362
10363
  return (_t11 =
10363
10364
  Object.setPrototypeOf ||
10364
10365
  (_instanceof(
@@ -10378,7 +10379,7 @@ var hiprint = (function (t) {
10378
10379
  };
10379
10380
 
10380
10381
  return function (e, n) {
10381
- function i() {
10382
+ function i () {
10382
10383
  this.constructor = e;
10383
10384
  }
10384
10385
 
@@ -10386,7 +10387,7 @@ var hiprint = (function (t) {
10386
10387
  };
10387
10388
  })(),
10388
10389
  A = (function (t) {
10389
- function e(e, n) {
10390
+ function e (e, n) {
10390
10391
  var i = t.call(this, e) || this;
10391
10392
  return (i.options = new g.a(n)), i.options.setDefault(new g.a(p.a.instance.hline.default).getPrintElementOptionEntity()), i;
10392
10393
  }
@@ -10412,7 +10413,7 @@ var hiprint = (function (t) {
10412
10413
  );
10413
10414
  })(f.a),
10414
10415
  z = (function () {
10415
- var _t12 = function t(e, n) {
10416
+ var _t12 = function t (e, n) {
10416
10417
  return (_t12 =
10417
10418
  Object.setPrototypeOf ||
10418
10419
  (_instanceof(
@@ -10432,7 +10433,7 @@ var hiprint = (function (t) {
10432
10433
  };
10433
10434
 
10434
10435
  return function (e, n) {
10435
- function i() {
10436
+ function i () {
10436
10437
  this.constructor = e;
10437
10438
  }
10438
10439
 
@@ -10440,7 +10441,7 @@ var hiprint = (function (t) {
10440
10441
  };
10441
10442
  })(),
10442
10443
  k = (function (t) {
10443
- function e(e, n) {
10444
+ function e (e, n) {
10444
10445
  var i = t.call(this, e) || this;
10445
10446
  return (i.options = new g.a(n)), i.options.setDefault(new g.a(p.a.instance.rect.default).getPrintElementOptionEntity()), i;
10446
10447
  }
@@ -10466,7 +10467,7 @@ var hiprint = (function (t) {
10466
10467
  );
10467
10468
  })(f.a),
10468
10469
  N = (function () {
10469
- var _t13 = function t(e, n) {
10470
+ var _t13 = function t (e, n) {
10470
10471
  return (_t13 =
10471
10472
  Object.setPrototypeOf ||
10472
10473
  (_instanceof(
@@ -10486,7 +10487,7 @@ var hiprint = (function (t) {
10486
10487
  };
10487
10488
 
10488
10489
  return function (e, n) {
10489
- function i() {
10490
+ function i () {
10490
10491
  this.constructor = e;
10491
10492
  }
10492
10493
 
@@ -10494,7 +10495,7 @@ var hiprint = (function (t) {
10494
10495
  };
10495
10496
  })(),
10496
10497
  V = (function (t) {
10497
- function e(e, n) {
10498
+ function e (e, n) {
10498
10499
  var i = t.call(this, e) || this;
10499
10500
  return (i.options = new g.a(n)), i.options.setDefault(new g.a(p.a.instance.oval.default).getPrintElementOptionEntity()), i;
10500
10501
  }
@@ -10520,7 +10521,7 @@ var hiprint = (function (t) {
10520
10521
  );
10521
10522
  })(f.a),
10522
10523
  W = (function () {
10523
- function t() {}
10524
+ function t () {}
10524
10525
 
10525
10526
  return (
10526
10527
  (t.createPrintElement = function (t, e) {
@@ -10530,7 +10531,7 @@ var hiprint = (function (t) {
10530
10531
  );
10531
10532
  })(),
10532
10533
  j = (function () {
10533
- function t(t) {
10534
+ function t (t) {
10534
10535
  (this.field = t.field), (this.fields = t.fields), (this.title = t.title), (this.text = t.text), (this.tid = t.tid), (this.data = t.data), (this.styler = t.styler), (this.formatter = t.formatter), (this.type = t.type), (this.onRendered = t.onRendered), (this.options = t.options);
10535
10536
  }
10536
10537
 
@@ -10563,7 +10564,7 @@ var hiprint = (function (t) {
10563
10564
  U = n(16),
10564
10565
  K = n(12),
10565
10566
  G = (function () {
10566
- var _t14 = function t(e, n) {
10567
+ var _t14 = function t (e, n) {
10567
10568
  return (_t14 =
10568
10569
  Object.setPrototypeOf ||
10569
10570
  (_instanceof(
@@ -10583,7 +10584,7 @@ var hiprint = (function (t) {
10583
10584
  };
10584
10585
 
10585
10586
  return function (e, n) {
10586
- function i() {
10587
+ function i () {
10587
10588
  this.constructor = e;
10588
10589
  }
10589
10590
 
@@ -10591,7 +10592,7 @@ var hiprint = (function (t) {
10591
10592
  };
10592
10593
  })(),
10593
10594
  q = (function (t) {
10594
- function e(e) {
10595
+ function e (e) {
10595
10596
  var n = t.call(this, e) || this;
10596
10597
  (e = e || {}).columns
10597
10598
  ? ((n.columns = []),
@@ -10599,17 +10600,17 @@ var hiprint = (function (t) {
10599
10600
  n.columns.push(new K.a(t));
10600
10601
  }))
10601
10602
  : (n.columns = [
10602
- new K.a({
10603
- columns: [
10604
- new u.a({
10605
- width: 100,
10606
- }),
10607
- new u.a({
10608
- width: 100,
10609
- }),
10610
- ],
10611
- }),
10612
- ]);
10603
+ new K.a({
10604
+ columns: [
10605
+ new u.a({
10606
+ width: 100,
10607
+ }),
10608
+ new u.a({
10609
+ width: 100,
10610
+ }),
10611
+ ],
10612
+ }),
10613
+ ]);
10613
10614
  return (n.lHeight = e.lHeight), (n.autoCompletion = e.autoCompletion), (n.tableFooterRepeat = e.tableFooterRepeat), n;
10614
10615
  }
10615
10616
 
@@ -10630,7 +10631,7 @@ var hiprint = (function (t) {
10630
10631
  );
10631
10632
  })(g.a),
10632
10633
  Q = (function () {
10633
- var _t16 = function t(e, n) {
10634
+ var _t16 = function t (e, n) {
10634
10635
  return (_t16 =
10635
10636
  Object.setPrototypeOf ||
10636
10637
  (_instanceof(
@@ -10650,7 +10651,7 @@ var hiprint = (function (t) {
10650
10651
  };
10651
10652
 
10652
10653
  return function (e, n) {
10653
- function i() {
10654
+ function i () {
10654
10655
  this.constructor = e;
10655
10656
  }
10656
10657
 
@@ -10658,7 +10659,7 @@ var hiprint = (function (t) {
10658
10659
  };
10659
10660
  })(),
10660
10661
  tt = (function () {
10661
- var _t17 = function t(e, n) {
10662
+ var _t17 = function t (e, n) {
10662
10663
  return (_t17 =
10663
10664
  Object.setPrototypeOf ||
10664
10665
  (_instanceof(
@@ -10678,7 +10679,7 @@ var hiprint = (function (t) {
10678
10679
  };
10679
10680
 
10680
10681
  return function (e, n) {
10681
- function i() {
10682
+ function i () {
10682
10683
  this.constructor = e;
10683
10684
  }
10684
10685
 
@@ -10686,7 +10687,7 @@ var hiprint = (function (t) {
10686
10687
  };
10687
10688
  })(),
10688
10689
  et = (function (t) {
10689
- function e(e) {
10690
+ function e (e) {
10690
10691
  return t.call(this, e) || this;
10691
10692
  }
10692
10693
 
@@ -10706,7 +10707,7 @@ var hiprint = (function (t) {
10706
10707
  );
10707
10708
  })(j),
10708
10709
  nt = (function () {
10709
- function t() {}
10710
+ function t () {}
10710
10711
 
10711
10712
  return (
10712
10713
  (t.createPrintElementType = function (t) {
@@ -10716,7 +10717,7 @@ var hiprint = (function (t) {
10716
10717
  );
10717
10718
  })(),
10718
10719
  it = (function () {
10719
- function t() {}
10720
+ function t () {}
10720
10721
 
10721
10722
  return (
10722
10723
  (t.getElementTypeGroups = function (e) {
@@ -10740,14 +10741,14 @@ var hiprint = (function (t) {
10740
10741
  (t.enableDrag = function (e) {
10741
10742
  e.hidraggable({
10742
10743
  revert: !0,
10743
- proxy: function proxy(t) {
10744
+ proxy: function proxy (t) {
10744
10745
  var e = s.a.instance.getDragingPrintElement(),
10745
10746
  n = e.printElement.getProxyTarget(e.printElement.printElementType.getOptions());
10746
10747
  return n.appendTo("body"), n.css("z-index", "9999"), n;
10747
10748
  },
10748
10749
  moveUnit: "pt",
10749
10750
  minMove: 4,
10750
- onBeforeDrag: function onBeforeDrag(e) {
10751
+ onBeforeDrag: function onBeforeDrag (e) {
10751
10752
  s.a.instance.draging = !0;
10752
10753
  var tid = $(e.data.target).attr("tid");
10753
10754
  var n = t.getElementType(tid, $(e.data.target).attr("ptype"));
@@ -10764,10 +10765,10 @@ var hiprint = (function (t) {
10764
10765
  }
10765
10766
  return s.a.instance.setDragingPrintElement(ele), !0;
10766
10767
  },
10767
- onDrag: function onDrag(t, e, n) {
10768
+ onDrag: function onDrag (t, e, n) {
10768
10769
  s.a.instance.getDragingPrintElement().updatePosition(e, n);
10769
10770
  },
10770
- onStopDrag: function onStopDrag(t) {
10771
+ onStopDrag: function onStopDrag (t) {
10771
10772
  s.a.instance.draging = !1;
10772
10773
  },
10773
10774
  });
@@ -10799,7 +10800,7 @@ var hiprint = (function (t) {
10799
10800
  };
10800
10801
  })(),
10801
10802
  at = (function () {
10802
- function t(t, e, n, i) {
10803
+ function t (t, e, n, i) {
10803
10804
  (this.bx = t), (this.by = e), (this.ex = t), (this.ey = e), (this.startX = this.minX = t), (this.startY = this.minY = e), (this.maxX = t), (this.maxY = e), (this.lastLeft = n), (this.lastTop = i);
10804
10805
  }
10805
10806
 
@@ -10819,7 +10820,7 @@ var hiprint = (function (t) {
10819
10820
  );
10820
10821
  })(),
10821
10822
  pt = (function () {
10822
- function t(t, e) {
10823
+ function t (t, e) {
10823
10824
  (this.templateId = e), (this.index = t.index), (this.name = t.name), (this.width = t.width), (this.height = t.height), (this.paperType = t.paperType), (this.paperHeader = t.paperHeader), (this.paperFooter = t.paperFooter), this.initPrintElements(t.printElements), (this.paperNumberLeft = t.paperNumberLeft), (this.paperNumberTop = t.paperNumberTop), (this.paperNumberDisabled = t.paperNumberDisabled), (this.paperNumberContinue = t.paperNumberContinue == void 0 ? true : t.paperNumberContinue), (this.paperNumberFormat = t.paperNumberFormat), (this.panelPaperRule = t.panelPaperRule), (this.panelPageRule = t.panelPageRule), (this.firstPaperFooter = t.firstPaperFooter), (this.evenPaperFooter = t.evenPaperFooter), (this.oddPaperFooter = t.oddPaperFooter), (this.lastPaperFooter = t.lastPaperFooter), (this.topOffset = t.topOffset), (this.leftOffset = t.leftOffset), (this.fontFamily = t.fontFamily), (this.orient = t.orient), (this.target = this.createTarget()), (this.rotate = t.rotate), (this.scale = t.scale), (this.watermarkOptions = t.watermarkOptions || {});
10824
10825
  }
10825
10826
 
@@ -10860,7 +10861,7 @@ var hiprint = (function (t) {
10860
10861
  }
10861
10862
  o.a.event.trigger("BuildCustomOptionSettingEventKey_" + e.templateId, {
10862
10863
  options: panelOptions,
10863
- callback: function callback(t) {
10864
+ callback: function callback (t) {
10864
10865
  (e.watermarkOptions = t.watermarkOptions || void 0), t.watermarkOptions && e.designPaper.createWaterMark(true, 1, t.watermarkOptions);
10865
10866
  (e.panelPaperRule = t.panelPaperRule), (e.panelPageRule = t.panelPageRule), (e.firstPaperFooter = t.firstPaperFooter), (e.evenPaperFooter = t.evenPaperFooter), (e.oddPaperFooter = t.oddPaperFooter), (e.lastPaperFooter = t.lastPaperFooter), (e.leftOffset = t.leftOffset), (e.topOffset = t.topOffset), (e.fontFamily = t.fontFamily), (e.orient = t.orient), (e.paperNumberDisabled = e.designPaper.paperNumberDisabled = !!t.paperNumberDisabled || void 0), (e.paperNumberContinue = e.designPaper.paperNumberContinue = t.paperNumberContinue), (e.paperNumberFormat = t.paperNumberFormat), (e.designPaper.paperNumberFormat = t.paperNumberFormat), t.paperNumberFormat && (e.designPaper.paperNumberTarget = e.designPaper.createPaperNumber(e.designPaper.formatPaperNumber(1, 1), true)), e.designPaper.setOffset(e.leftOffset, e.topOffset), e.css(e.target), e.designPaper.resetPaperNumber(e.designPaper.paperNumberTarget), e.designPaper.triggerOnPaperBaseInfoChanged();
10866
10867
  },
@@ -11150,7 +11151,7 @@ var hiprint = (function (t) {
11150
11151
  var e = this;
11151
11152
  t.getTarget().hidroppable({
11152
11153
  accept: ".ep-draggable-item",
11153
- onDrop: function onDrop(n, i) {
11154
+ onDrop: function onDrop (n, i) {
11154
11155
  var r = s.a.instance.getDragingPrintElement(),
11155
11156
  a = r.printElement;
11156
11157
  var ptr = e.designPaper.scale || 1;
@@ -11167,14 +11168,14 @@ var hiprint = (function (t) {
11167
11168
  var e = this;
11168
11169
  (this.printElements = []),
11169
11170
  t &&
11170
- t.forEach(function (n) {
11171
- var i;
11171
+ t.forEach(function (n) {
11172
+ var i;
11172
11173
 
11173
- if ((i = n.printElementType ? nt.createPrintElementType(n.printElementType) : a.instance.getElementType(n.tid))) {
11174
- var o = i.createPrintElement(n.options);
11175
- if (o) o.setTemplateId(e.templateId), o.setPanel(e), e.printElements.push(o);
11176
- } else console.log("miss " + JSON.stringify(t));
11177
- });
11174
+ if ((i = n.printElementType ? nt.createPrintElementType(n.printElementType) : a.instance.getElementType(n.tid))) {
11175
+ var o = i.createPrintElement(n.options);
11176
+ if (o) o.setTemplateId(e.templateId), o.setPanel(e), e.printElements.push(o);
11177
+ } else console.log("miss " + JSON.stringify(t));
11178
+ });
11178
11179
  }),
11179
11180
  (t.prototype.mathroundToporleft = function (t) {
11180
11181
  var e = p.a.instance.movingDistance;
@@ -11360,36 +11361,36 @@ var hiprint = (function (t) {
11360
11361
  var ptr = this.designPaper.scale || 1;
11361
11362
  this.mouseRect.target ||
11362
11363
  ((this.mouseRect.target = $('<div tabindex="1" class="mouseRect" style="z-index:2;position: absolute;opacity:0.2;border: 1px dashed #000;background-color:#31676f;"><span></span></div>')),
11363
- n.find(".hiprint-printPaper-content").append(this.mouseRect.target),
11364
- this.bingKeyboardMoveEvent(this.mouseRect.target),
11365
- this.mouseRect.target.hidraggable({
11366
- onDrag: function onDrag(t, n, i) {
11367
- (e.mouseRect.lastLeft = e.mouseRect.lastLeft ? o.a.px.toPt(e.mouseRect.target[0].offsetLeft) : n / ptr),
11368
- (e.mouseRect.lastTop = e.mouseRect.lastTop ? o.a.px.toPt(e.mouseRect.target[0].offsetTop) : i / ptr),
11369
- (e.mouseRect.mouseRectSelectedElement || []).forEach(function (t) {
11370
- t.updatePositionByMultipleSelect(n - e.mouseRect.lastLeft, i - e.mouseRect.lastTop);
11371
- }),
11372
- (e.mouseRect.lastLeft = n / ptr),
11373
- (e.mouseRect.lastTop = i / ptr);
11374
- s.a.instance.changed = !0;
11375
- },
11376
- moveUnit: "pt",
11377
- minMove: p.a.instance.movingDistance,
11378
- onBeforeDrag: function onBeforeDrag(t) {
11379
- e.mouseRect.target.focus(), (s.a.instance.draging = !0), e.mouseRect.mouseRectSelectedElement || (e.mouseRect.mouseRectSelectedElement = e.getElementInRect(e.mouseRect));
11380
- e.mouseRect.target.css({
11381
- transform: "unset",
11382
- });
11383
- },
11384
- getScale: function getScale() {
11385
- return e.designPaper.scale || 1;
11386
- },
11387
- onStopDrag: function onStopDrag(t) {
11388
- if (s.a.instance.changed) o.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, "框选移动");
11389
- s.a.instance.draging = !1;
11390
- s.a.instance.changed = !1;
11391
- },
11392
- }));
11364
+ n.find(".hiprint-printPaper-content").append(this.mouseRect.target),
11365
+ this.bingKeyboardMoveEvent(this.mouseRect.target),
11366
+ this.mouseRect.target.hidraggable({
11367
+ onDrag: function onDrag (t, n, i) {
11368
+ (e.mouseRect.lastLeft = e.mouseRect.lastLeft ? o.a.px.toPt(e.mouseRect.target[0].offsetLeft) : n / ptr),
11369
+ (e.mouseRect.lastTop = e.mouseRect.lastTop ? o.a.px.toPt(e.mouseRect.target[0].offsetTop) : i / ptr),
11370
+ (e.mouseRect.mouseRectSelectedElement || []).forEach(function (t) {
11371
+ t.updatePositionByMultipleSelect(n - e.mouseRect.lastLeft, i - e.mouseRect.lastTop);
11372
+ }),
11373
+ (e.mouseRect.lastLeft = n / ptr),
11374
+ (e.mouseRect.lastTop = i / ptr);
11375
+ s.a.instance.changed = !0;
11376
+ },
11377
+ moveUnit: "pt",
11378
+ minMove: p.a.instance.movingDistance,
11379
+ onBeforeDrag: function onBeforeDrag (t) {
11380
+ e.mouseRect.target.focus(), (s.a.instance.draging = !0), e.mouseRect.mouseRectSelectedElement || (e.mouseRect.mouseRectSelectedElement = e.getElementInRect(e.mouseRect));
11381
+ e.mouseRect.target.css({
11382
+ transform: "unset",
11383
+ });
11384
+ },
11385
+ getScale: function getScale () {
11386
+ return e.designPaper.scale || 1;
11387
+ },
11388
+ onStopDrag: function onStopDrag (t) {
11389
+ if (s.a.instance.changed) o.a.event.trigger("hiprintTemplateDataChanged_" + n.templateId, "框选移动");
11390
+ s.a.instance.draging = !1;
11391
+ s.a.instance.changed = !1;
11392
+ },
11393
+ }));
11393
11394
  if (t.ex >= t.bx && t.ey >= t.by) {
11394
11395
  // 终点大于起点
11395
11396
  this.mouseRect.target.css({
@@ -11492,7 +11493,7 @@ var hiprint = (function (t) {
11492
11493
  })(),
11493
11494
  lt = n(9),
11494
11495
  ut = (function () {
11495
- function t(t, e) {
11496
+ function t (t, e) {
11496
11497
  var n = this;
11497
11498
  (this.printElementOptionSettingPanel = {}),
11498
11499
  (this.printTemplate = t),
@@ -11664,14 +11665,14 @@ var hiprint = (function (t) {
11664
11665
  }),
11665
11666
  this.settingContainer.append(r),
11666
11667
  tabs.length < 1 &&
11667
- o &&
11668
- o.forEach(function (t) {
11669
- var n = t.callback;
11670
- (t.callback = function (t) {
11671
- n && (n(t), i.submitOption());
11672
- }),
11673
- e.buildSettingByCustomOptions(t, e.settingContainer);
11668
+ o &&
11669
+ o.forEach(function (t) {
11670
+ var n = t.callback;
11671
+ (t.callback = function (t) {
11672
+ n && (n(t), i.submitOption());
11674
11673
  }),
11674
+ e.buildSettingByCustomOptions(t, e.settingContainer);
11675
+ }),
11675
11676
  (this.lastPrintElement = i);
11676
11677
  }),
11677
11678
  (t.prototype.buildSettingByCustomOptions = function (t, e) {
@@ -11690,13 +11691,13 @@ var hiprint = (function (t) {
11690
11691
  t.optionItems
11691
11692
  ? (o = t.optionItems)
11692
11693
  : Object.keys(t.options)
11693
- .filter(function (t) {
11694
- return supportOptions.includes(t);
11695
- })
11696
- .forEach(function (t) {
11697
- var e = lt.a.getItem(t);
11698
- e && o.push(e);
11699
- });
11694
+ .filter(function (t) {
11695
+ return supportOptions.includes(t);
11696
+ })
11697
+ .forEach(function (t) {
11698
+ var e = lt.a.getItem(t);
11699
+ e && o.push(e);
11700
+ });
11700
11701
  var r = $('<div class="hiprint-option-items"></div>');
11701
11702
  t.title && r.append('<div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label hiprint-option-title">\n ' + t.title + "\n </div>\n </div>"),
11702
11703
  o.forEach(function (e) {
@@ -11732,7 +11733,7 @@ var hiprint = (function (t) {
11732
11733
  );
11733
11734
  })(),
11734
11735
  dt = (function () {
11735
- function t(t, e) {
11736
+ function t (t, e) {
11736
11737
  (this.paginationContainer = t), (this.jqPaginationContainer = $(this.paginationContainer)), (this.template = e);
11737
11738
  }
11738
11739
 
@@ -11744,19 +11745,19 @@ var hiprint = (function (t) {
11744
11745
 
11745
11746
  for (
11746
11747
  var i = $('<ul class="hiprint-pagination"></ul>'),
11747
- o = function o() {
11748
- var t = r,
11749
- name = n.template.printPanels[t].name || t + 1,
11750
- e = $("<li><span>" + name + '</span><a href="javascript:void(0);">x</a></li>');
11751
- e.find("span").click(function () {
11752
- n.template.selectPanel(t), e.siblings().removeClass("selected"), $(this).parent("li").addClass("selected");
11748
+ o = function o () {
11749
+ var t = r,
11750
+ name = n.template.printPanels[t].name || t + 1,
11751
+ e = $("<li><span>" + name + '</span><a href="javascript:void(0);">x</a></li>');
11752
+ e.find("span").click(function () {
11753
+ n.template.selectPanel(t), e.siblings().removeClass("selected"), $(this).parent("li").addClass("selected");
11754
+ }),
11755
+ e.find("a").click(function () {
11756
+ n.template.deletePanel(t), n.buildPagination();
11753
11757
  }),
11754
- e.find("a").click(function () {
11755
- n.template.deletePanel(t), n.buildPagination();
11756
- }),
11757
- i.append(e);
11758
- },
11759
- r = 0;
11758
+ i.append(e);
11759
+ },
11760
+ r = 0;
11760
11761
  r < e;
11761
11762
  r++
11762
11763
  ) {
@@ -11796,7 +11797,7 @@ var hiprint = (function (t) {
11796
11797
  );
11797
11798
  })(),
11798
11799
  ct = (function () {
11799
- function t(t) {
11800
+ function t (t) {
11800
11801
  var e = this;
11801
11802
  (this.tempimageBase64 = {}), (this.id = s.a.instance.guid()), s.a.instance.setPrintTemplateById(this.id, this);
11802
11803
  var n = t || {};
@@ -11847,22 +11848,22 @@ var hiprint = (function (t) {
11847
11848
  var i = $('<div class="hiprint-printTemplate"></div>');
11848
11849
  t && t.constructor === Array
11849
11850
  ? t.forEach(function (data, dataIndex) {
11850
- data &&
11851
- n.printPanels.forEach(function (n, o) {
11852
- i.append(n.getHtml(data, e));
11853
- // 批量打印 续排页码
11854
- if (dataIndex == t.length - 1) {
11855
- delete hinnn._paperList;
11856
- }
11857
- });
11858
- })
11851
+ data &&
11852
+ n.printPanels.forEach(function (n, o) {
11853
+ i.append(n.getHtml(data, e));
11854
+ // 批量打印 续排页码
11855
+ if (dataIndex == t.length - 1) {
11856
+ delete hinnn._paperList;
11857
+ }
11858
+ });
11859
+ })
11859
11860
  : this.printPanels.forEach(function (panel, panelIndex) {
11860
- i.append(panel.getHtml(t, e));
11861
- // 多面板打印 续排页码
11862
- if (panelIndex == n.printPanels.length - 1) {
11863
- delete hinnn._paperList;
11864
- }
11865
- });
11861
+ i.append(panel.getHtml(t, e));
11862
+ // 多面板打印 续排页码
11863
+ if (panelIndex == n.printPanels.length - 1) {
11864
+ delete hinnn._paperList;
11865
+ }
11866
+ });
11866
11867
  return e && e.imgToBase64 && this.transformImg(i.find("img")), i;
11867
11868
  }),
11868
11869
  (t.prototype.getHtml = function (t, e) {
@@ -12193,8 +12194,8 @@ var hiprint = (function (t) {
12193
12194
  n++,
12194
12195
  !r && n < 10
12195
12196
  ? setTimeout(function () {
12196
- i.loadAllImages(t, e, n);
12197
- }, 500)
12197
+ i.loadAllImages(t, e, n);
12198
+ }, 500)
12198
12199
  : e();
12199
12200
  }),
12200
12201
  (t.prototype.setFontList = function (t) {
@@ -12464,37 +12465,37 @@ var hiprint = (function (t) {
12464
12465
  );
12465
12466
  })();
12466
12467
 
12467
- function ht(t) {
12468
+ function ht (t) {
12468
12469
  this.getHtml(t).hiwprint();
12469
12470
  }
12470
12471
 
12471
- function ft(t, e, n) {
12472
+ function ft (t, e, n) {
12472
12473
  $.extend({}, t || {}).imgToBase64 = !0;
12473
12474
  var i = new ct({});
12474
12475
  i.on("printSuccess", e), i.on("printError", n), i.printByHtml2(this.getHtml(t), t.options);
12475
12476
  }
12476
12477
 
12477
- function gt(t) {
12478
+ function gt (t) {
12478
12479
  var e = void 0;
12479
12480
  return (
12480
12481
  t &&
12481
- t.templates.forEach(function (n, i) {
12482
- var o = $.extend({}, n.options || {});
12483
- t.imgToBase64 && (o.imgToBase64 = !0), e ? e.append(n.template.getHtml(n.data, o).html()) : (e = n.template.getHtml(n.data, o));
12484
- }),
12482
+ t.templates.forEach(function (n, i) {
12483
+ var o = $.extend({}, n.options || {});
12484
+ t.imgToBase64 && (o.imgToBase64 = !0), e ? e.append(n.template.getHtml(n.data, o).html()) : (e = n.template.getHtml(n.data, o));
12485
+ }),
12485
12486
  e
12486
12487
  );
12487
12488
  }
12488
12489
 
12489
- function mt(t) {
12490
+ function mt (t) {
12490
12491
  p.a.instance.init(t),
12491
12492
  p.a.instance.providers &&
12492
- p.a.instance.providers.forEach(function (t) {
12493
- t.addElementTypes(a.instance);
12494
- });
12493
+ p.a.instance.providers.forEach(function (t) {
12494
+ t.addElementTypes(a.instance);
12495
+ });
12495
12496
  }
12496
12497
 
12497
- function cig(t) {
12498
+ function cig (t) {
12498
12499
  if (t) {
12499
12500
  t &&
12500
12501
  Object.keys(t).forEach(function (i) {
@@ -12558,23 +12559,23 @@ var hiprint = (function (t) {
12558
12559
  }
12559
12560
  }
12560
12561
 
12561
- function uep(t, c) {
12562
+ function uep (t, c) {
12562
12563
  return a.instance.updateElementType(t, c);
12563
12564
  }
12564
12565
 
12565
- function rpl(c) {
12566
+ function rpl (c) {
12566
12567
  p.a.instance.clear("printerList");
12567
12568
  p.a.instance.on("printerList", c);
12568
12569
  hiwebSocket.refreshPrinterList();
12569
12570
  }
12570
12571
 
12571
- function getAddr(type, c, ...args) {
12572
+ function getAddr (type, c, ...args) {
12572
12573
  p.a.instance.clear("address_" + type);
12573
12574
  p.a.instance.on("address_" + type, c);
12574
12575
  hiwebSocket.getAddress(type, ...args);
12575
12576
  }
12576
12577
 
12577
- function ippPrint(options, callback, connected) {
12578
+ function ippPrint (options, callback, connected) {
12578
12579
  p.a.instance.clear("ippPrinterCallback");
12579
12580
  p.a.instance.on("ippPrinterCallback", callback);
12580
12581
  p.a.instance.clear("ippPrinterConnected");
@@ -12582,7 +12583,7 @@ var hiprint = (function (t) {
12582
12583
  hiwebSocket.ippPrint(options);
12583
12584
  }
12584
12585
 
12585
- function ippRequest(options, callback) {
12586
+ function ippRequest (options, callback) {
12586
12587
  p.a.instance.clear("ippRequestCallback");
12587
12588
  p.a.instance.on("ippRequestCallback", callback);
12588
12589
  hiwebSocket.ippRequest(options);