@das-fed/ui 7.0.7-hot.17 → 7.0.7-hot.19

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.
Files changed (222) hide show
  1. package/esm-map.json +2 -2
  2. package/package.json +5 -5
  3. package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-BeqEuT6Z.js} +1 -1
  4. package/packages/business-components/ai-panel/index-BeqEuT6Z.js.gz +0 -0
  5. package/packages/business-components/ai-panel/{index-8yffh0Id.js → index-DP1B0qnu.js} +1138 -1120
  6. package/packages/business-components/ai-panel/index-DP1B0qnu.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-d7mK0plW.js} +5 -5
  8. package/packages/business-components/ai-panel/index-d7mK0plW.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/app-container/index.js +75 -75
  11. package/packages/business-components/app-container/index.js.gz +0 -0
  12. package/packages/business-components/area-phone-select/index.js +87 -87
  13. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  14. package/packages/business-components/change-enterprises/index.js +19 -19
  15. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  16. package/packages/business-components/change-pwd/index.js +15 -15
  17. package/packages/business-components/change-pwd/index.js.gz +0 -0
  18. package/packages/business-components/currency-page/index.js +40 -40
  19. package/packages/business-components/currency-page/index.js.gz +0 -0
  20. package/packages/business-components/device-panel/index.js +265 -265
  21. package/packages/business-components/device-panel/index.js.gz +0 -0
  22. package/packages/business-components/device-panel/style.css +1 -1
  23. package/packages/business-components/device-panel/style.css.gz +0 -0
  24. package/packages/business-components/export-button/index.js +92 -92
  25. package/packages/business-components/export-button/index.js.gz +0 -0
  26. package/packages/business-components/import-button/index.js +191 -191
  27. package/packages/business-components/import-button/index.js.gz +0 -0
  28. package/packages/business-components/layout-breadcrumb/index.js +47 -47
  29. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  30. package/packages/business-components/model-table-dialog/index.js +232 -232
  31. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  32. package/packages/business-components/payment/api.d.ts +8 -0
  33. package/packages/business-components/payment/index.d.ts +9 -11
  34. package/packages/business-components/payment/index.js +186 -180
  35. package/packages/business-components/payment/index.js.gz +0 -0
  36. package/packages/business-components/payment/style.css +1 -1
  37. package/packages/business-components/payment/type.d.ts +2 -0
  38. package/packages/business-components/process-configuration/index.js +5 -5
  39. package/packages/business-components/process-configuration/index.js.gz +0 -0
  40. package/packages/business-components/process-configuration/style.css +1 -1
  41. package/packages/business-components/process-configuration/style.css.gz +0 -0
  42. package/packages/business-components/process-form/index.js +1154 -1134
  43. package/packages/business-components/process-form/index.js.gz +0 -0
  44. package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
  45. package/packages/business-components/process-log/index.js +329 -329
  46. package/packages/business-components/process-log/index.js.gz +0 -0
  47. package/packages/business-components/process-log/style.css +1 -1
  48. package/packages/business-components/process-log/style.css.gz +0 -0
  49. package/packages/business-components/process-search-form/index.js +54 -54
  50. package/packages/business-components/process-search-form/index.js.gz +0 -0
  51. package/packages/business-components/upload-file/index.js +46 -46
  52. package/packages/business-components/upload-file/index.js.gz +0 -0
  53. package/packages/business-components/upload-file/style.css +1 -1
  54. package/packages/business-components/urgent-panel/index.js +295 -295
  55. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  56. package/packages/business-components/video-dialog/index.d.ts +10 -0
  57. package/packages/business-components/video-dialog/index.js +396 -377
  58. package/packages/business-components/video-dialog/index.js.gz +0 -0
  59. package/packages/business-components/video-dialog/src/api.d.ts +1 -0
  60. package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
  61. package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
  62. package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
  63. package/packages/business-components/video-dialog/src/type.d.ts +7 -1
  64. package/packages/business-components/video-dialog/style.css +1 -1
  65. package/packages/business-components/video-dialog/style.css.gz +0 -0
  66. package/packages/components/alert/index.js +9 -9
  67. package/packages/components/alert/index.js.gz +0 -0
  68. package/packages/components/audio-video/index.js +141 -141
  69. package/packages/components/audio-video/index.js.gz +0 -0
  70. package/packages/components/autocomplete/index.js +39 -39
  71. package/packages/components/autocomplete/index.js.gz +0 -0
  72. package/packages/components/autocomplete/style.css +1 -1
  73. package/packages/components/autocomplete/style.css.gz +0 -0
  74. package/packages/components/breadcrumb/index.js +39 -39
  75. package/packages/components/breadcrumb/index.js.gz +0 -0
  76. package/packages/components/button/index.js +188 -188
  77. package/packages/components/button/index.js.gz +0 -0
  78. package/packages/components/calendar/index.js +172 -172
  79. package/packages/components/calendar/index.js.gz +0 -0
  80. package/packages/components/cascader/index.js +92 -92
  81. package/packages/components/cascader/index.js.gz +0 -0
  82. package/packages/components/cascader/style.css +1 -1
  83. package/packages/components/cascader/style.css.gz +0 -0
  84. package/packages/components/checkbox/index.js +176 -176
  85. package/packages/components/checkbox/index.js.gz +0 -0
  86. package/packages/components/checkbox/style.css +1 -1
  87. package/packages/components/checkbox/style.css.gz +0 -0
  88. package/packages/components/collapse-panel/index.js +16 -16
  89. package/packages/components/collapse-panel/index.js.gz +0 -0
  90. package/packages/components/collaspe/index.js +22 -22
  91. package/packages/components/collaspe/index.js.gz +0 -0
  92. package/packages/components/custom-search-item/index.js +36 -36
  93. package/packages/components/custom-search-item/index.js.gz +0 -0
  94. package/packages/components/date-picker/index.js +496 -496
  95. package/packages/components/date-picker/index.js.gz +0 -0
  96. package/packages/components/date-picker/style.css +1 -1
  97. package/packages/components/date-picker/style.css.gz +0 -0
  98. package/packages/components/dialog/index.js +89 -89
  99. package/packages/components/dialog/index.js.gz +0 -0
  100. package/packages/components/dimple-layout/index.js +73 -31
  101. package/packages/components/dimple-layout/index.js.gz +0 -0
  102. package/packages/components/dropdown/index.js +30 -30
  103. package/packages/components/dropdown/index.js.gz +0 -0
  104. package/packages/components/edit-table/index.d.ts +2 -2
  105. package/packages/components/edit-table/index.js +150 -150
  106. package/packages/components/edit-table/index.js.gz +0 -0
  107. package/packages/components/empty/index.js +32 -32
  108. package/packages/components/empty/index.js.gz +0 -0
  109. package/packages/components/error-overlay-model/index.js +30 -30
  110. package/packages/components/error-overlay-model/index.js.gz +0 -0
  111. package/packages/components/form/index.js +19 -19
  112. package/packages/components/form/index.js.gz +0 -0
  113. package/packages/components/form-item/index.js +715 -715
  114. package/packages/components/form-item/index.js.gz +0 -0
  115. package/packages/components/form-item/style.css +1 -1
  116. package/packages/components/form-item/style.css.gz +0 -0
  117. package/packages/components/hls-player/index.js +5229 -4588
  118. package/packages/components/hls-player/index.js.gz +0 -0
  119. package/packages/components/hls-player/src/type.d.ts +3 -0
  120. package/packages/components/hls-player/style.css +1 -1
  121. package/packages/components/hls-player/style.css.gz +0 -0
  122. package/packages/components/image-upload/index.js +184 -184
  123. package/packages/components/image-upload/index.js.gz +0 -0
  124. package/packages/components/image-viewer/index.js +566 -566
  125. package/packages/components/image-viewer/index.js.gz +0 -0
  126. package/packages/components/input/index.js +94 -94
  127. package/packages/components/input/index.js.gz +0 -0
  128. package/packages/components/input-dialog-select/index.js +86 -86
  129. package/packages/components/input-dialog-select/index.js.gz +0 -0
  130. package/packages/components/input-number/index.js +93 -93
  131. package/packages/components/input-number/index.js.gz +0 -0
  132. package/packages/components/input-number/style.css +1 -1
  133. package/packages/components/input-number/style.css.gz +0 -0
  134. package/packages/components/live-player/index.d.ts +2 -0
  135. package/packages/components/live-player/index.js +822 -814
  136. package/packages/components/live-player/index.js.gz +0 -0
  137. package/packages/components/live-player/src/type.d.ts +3 -0
  138. package/packages/components/live-player/style.css +1 -1
  139. package/packages/components/loading/index.js +45 -45
  140. package/packages/components/loading/index.js.gz +0 -0
  141. package/packages/components/menu-aside/index.js +558 -558
  142. package/packages/components/menu-aside/index.js.gz +0 -0
  143. package/packages/components/menu-header/index.js +16 -16
  144. package/packages/components/menu-header/index.js.gz +0 -0
  145. package/packages/components/pagination/index.js +100 -100
  146. package/packages/components/pagination/index.js.gz +0 -0
  147. package/packages/components/pagination/style.css +1 -1
  148. package/packages/components/pagination/style.css.gz +0 -0
  149. package/packages/components/popover/index.js +33 -33
  150. package/packages/components/popover/index.js.gz +0 -0
  151. package/packages/components/popup-mask/index.js +13 -13
  152. package/packages/components/popup-mask/index.js.gz +0 -0
  153. package/packages/components/progress/index.js +111 -111
  154. package/packages/components/progress/index.js.gz +0 -0
  155. package/packages/components/progress/style.css +1 -1
  156. package/packages/components/progress/style.css.gz +0 -0
  157. package/packages/components/radio/index.js +162 -162
  158. package/packages/components/radio/index.js.gz +0 -0
  159. package/packages/components/rich-editor/index.js +7906 -7889
  160. package/packages/components/rich-editor/index.js.gz +0 -0
  161. package/packages/components/scrollbar/index.js +2 -2
  162. package/packages/components/scrollbar/index.js.gz +0 -0
  163. package/packages/components/search/index.js +76 -76
  164. package/packages/components/search/index.js.gz +0 -0
  165. package/packages/components/search-form/index.js +598 -597
  166. package/packages/components/search-form/index.js.gz +0 -0
  167. package/packages/components/search-form/style.css +1 -1
  168. package/packages/components/search-form/style.css.gz +0 -0
  169. package/packages/components/select/index.js +284 -284
  170. package/packages/components/select/index.js.gz +0 -0
  171. package/packages/components/select/style.css +1 -1
  172. package/packages/components/select/style.css.gz +0 -0
  173. package/packages/components/select-input/index.js +76 -76
  174. package/packages/components/select-input/index.js.gz +0 -0
  175. package/packages/components/select-list/index.js +406 -406
  176. package/packages/components/select-list/index.js.gz +0 -0
  177. package/packages/components/select-list/style.css +1 -1
  178. package/packages/components/select-list/style.css.gz +0 -0
  179. package/packages/components/special-range-picker-month/index.js +154 -154
  180. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  181. package/packages/components/special-range-picker-month/style.css +1 -1
  182. package/packages/components/special-range-picker-month/style.css.gz +0 -0
  183. package/packages/components/special-range-picker-year/index.js +196 -196
  184. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  185. package/packages/components/special-range-picker-year/style.css +1 -1
  186. package/packages/components/special-range-picker-year/style.css.gz +0 -0
  187. package/packages/components/spin/index.js +30 -30
  188. package/packages/components/spin/index.js.gz +0 -0
  189. package/packages/components/split-panel/index.js +60 -60
  190. package/packages/components/split-panel/index.js.gz +0 -0
  191. package/packages/components/table/index.d.ts +253 -27
  192. package/packages/components/table/index.js +2061 -2061
  193. package/packages/components/table/index.js.gz +0 -0
  194. package/packages/components/table/src/Table.vue.d.ts +39 -5
  195. package/packages/components/tabs/index.js +109 -109
  196. package/packages/components/tabs/index.js.gz +0 -0
  197. package/packages/components/time-line/index.js +35 -35
  198. package/packages/components/time-line/index.js.gz +0 -0
  199. package/packages/components/tooltip/index.js +52 -52
  200. package/packages/components/tooltip/index.js.gz +0 -0
  201. package/packages/components/tooltip/style.css +1 -1
  202. package/packages/components/tooltip/style.css.gz +0 -0
  203. package/packages/components/tree/index.js +748 -748
  204. package/packages/components/tree/index.js.gz +0 -0
  205. package/packages/components/tree/src/App.vue.d.ts +29 -5
  206. package/packages/components/tree-select/index.js +262 -262
  207. package/packages/components/tree-select/index.js.gz +0 -0
  208. package/packages/components/tree-select/src/App.vue.d.ts +116 -16
  209. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +116 -16
  210. package/packages/components/tree-table/index.js +224 -224
  211. package/packages/components/tree-table/index.js.gz +0 -0
  212. package/packages/components/tree-v2/index.d.ts +175 -27
  213. package/packages/components/tree-v2/index.js +614 -614
  214. package/packages/components/tree-v2/index.js.gz +0 -0
  215. package/packages/components/tree-v2/src/App.vue.d.ts +27 -5
  216. package/packages/components/upload/index.js +80 -80
  217. package/packages/components/upload/index.js.gz +0 -0
  218. package/packages/components/virtual-tree/index.js +61 -61
  219. package/packages/components/virtual-tree/index.js.gz +0 -0
  220. package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
  221. package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
  222. package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
@@ -9828,7 +9828,7 @@ class Mc {
9828
9828
  });
9829
9829
  }
9830
9830
  }
9831
- (h != null || g || p) && (f.round(1), u.e = f.x, u.f = f.y, t.setAttribute("transform", Dn(u)));
9831
+ (h != null || g || p) && (f.round(1), u.e = Number.isFinite(f.x) ? f.x : 0, u.f = Number.isFinite(f.y) ? f.y : 0, t.setAttribute("transform", Dn(u)));
9832
9832
  }
9833
9833
  update(t, e, n) {
9834
9834
  const s = {}, r = this.findAttrs(n.attrs || e, t, s, n.selectors), o = n.attrs ? this.findAttrs(e, t, s, n.selectors) : r, a = [];
@@ -11645,7 +11645,9 @@ var bn;
11645
11645
  const tx = me("center"), ex = me("topCenter"), nx = me("bottomCenter"), ix = me("leftMiddle"), sx = me("rightMiddle"), rx = me("topLeft"), ox = me("topRight"), ax = me("bottomLeft"), lx = me("bottomRight");
11646
11646
  function me(i) {
11647
11647
  return function(t, e, n, s = {}) {
11648
- const r = s.rotate ? t.getUnrotatedBBoxOfElement(e) : t.getBBoxOfElement(e), o = r[i];
11648
+ let r;
11649
+ t.cell.visible ? r = s.rotate ? t.getUnrotatedBBoxOfElement(e) : t.getBBoxOfElement(e) : r = t.cell.getBBox();
11650
+ const o = r[i];
11649
11651
  o.x += Jt(s.dx, r.width), o.y += Jt(s.dy, r.height);
11650
11652
  const a = t.cell;
11651
11653
  return s.rotate ? o.rotate(-a.getAngle(), a.getBBox().getCenter()) : o;
@@ -11674,7 +11676,7 @@ function Lc(i, t) {
11674
11676
  return e ? i.getPointAtRatio(n / 100) : i.getPointAtLength(n);
11675
11677
  }
11676
11678
  const cx = function(i, t, e, n) {
11677
- const s = nt.normalize(i.cell.getAngle()), r = i.getBBoxOfElement(t), o = r.getCenter(), a = r.getTopLeft(), l = r.getBottomRight();
11679
+ const s = nt.normalize(i.cell.getAngle()), r = i.cell.visible ? i.getBBoxOfElement(t) : i.cell.getBBox(), o = r.getCenter(), a = r.getTopLeft(), l = r.getBottomRight();
11678
11680
  let c = n.padding;
11679
11681
  if (Number.isFinite(c) || (c = 0), a.y + c <= e.y && e.y <= l.y - c) {
11680
11682
  const h = e.y - o.y;
@@ -11690,7 +11692,7 @@ const cx = function(i, t, e, n) {
11690
11692
  }, dx = function(i, t, e, n) {
11691
11693
  let s, r = 0, o;
11692
11694
  const a = i.cell;
11693
- n.rotate ? (s = i.getUnrotatedBBoxOfElement(t), o = a.getBBox().getCenter(), r = a.getAngle()) : s = i.getBBoxOfElement(t);
11695
+ n.rotate ? (s = i.getUnrotatedBBoxOfElement(t), o = a.getBBox().getCenter(), r = a.getAngle()) : a.visible ? s = i.getBBoxOfElement(t) : s = i.cell.getBBox();
11694
11696
  const l = n.padding;
11695
11697
  l != null && Number.isFinite(l) && s.inflate(l), n.rotate && e.rotate(r, o);
11696
11698
  const c = s.getNearestSideToPoint(e);
@@ -12543,7 +12545,12 @@ function tw(i, t) {
12543
12545
  const e = [];
12544
12546
  return t.forEach((n) => {
12545
12547
  const s = i.intersectsWithLine(n);
12546
- s && e.push(s);
12548
+ if (s) {
12549
+ const { x: r, y: o } = s, { start: a, end: l } = n, c = Math.round(a.x) === Math.round(r) && Math.round(a.y) === Math.round(o), h = Math.round(l.x) === Math.round(r) && Math.round(l.y) === Math.round(o);
12550
+ if (c || h)
12551
+ return;
12552
+ e.push(s);
12553
+ }
12547
12554
  }), e;
12548
12555
  }
12549
12556
  function ra(i, t) {
@@ -16186,9 +16193,39 @@ class Kt extends yt {
16186
16193
  ui: !0
16187
16194
  }), r.options.embedding.enabled && (a.embedding || (this.prepareEmbedding(t), a.embedding = !0), this.processEmbedding(t, a));
16188
16195
  }
16196
+ autoOffsetNode() {
16197
+ const t = this.cell, e = this.graph, n = Object.assign({ id: t.id }, t.getPosition()), r = e.getNodes().map((c) => {
16198
+ const h = c.getPosition();
16199
+ return { id: c.id, x: h.x, y: h.y };
16200
+ }).filter((c) => c.id !== n.id), o = [
16201
+ [1, 1],
16202
+ [1, -1],
16203
+ [-1, 1],
16204
+ [-1, -1]
16205
+ // offset to left top
16206
+ ];
16207
+ let a = e.getGridSize();
16208
+ const l = (c) => r.some((h) => h.x === c.x && h.y === c.y);
16209
+ for (; l(n); ) {
16210
+ let c = !1;
16211
+ for (let h = 0; h < o.length; h += 1) {
16212
+ const d = o[h], u = {
16213
+ x: n.x + d[0] * a,
16214
+ y: n.y + d[1] * a
16215
+ };
16216
+ if (!l(u)) {
16217
+ t.translate(d[0] * a, d[1] * a), c = !0;
16218
+ break;
16219
+ }
16220
+ }
16221
+ if (c)
16222
+ break;
16223
+ a += e.getGridSize();
16224
+ }
16225
+ }
16189
16226
  stopNodeDragging(t, e, n) {
16190
- const s = this.getEventData(t);
16191
- s.embedding && this.finalizeEmbedding(t, s), s.moving && (this.removeClass("node-moving"), this.notifyNodeMove("node:moved", t, e, n, this.cell)), s.moving = !1, s.embedding = !1;
16227
+ const s = this.getEventData(t), r = this.graph;
16228
+ s.embedding && this.finalizeEmbedding(t, s), s.moving && (r.options.translating.autoOffset && this.autoOffsetNode(), this.removeClass("node-moving"), this.notifyNodeMove("node:moved", t, e, n, this.cell)), s.moving = !1, s.embedding = !1;
16192
16229
  }
16193
16230
  // eslint-disable-next-line
16194
16231
  autoScrollGraph(t, e) {
@@ -18050,7 +18087,9 @@ class Yc extends Nt {
18050
18087
  * Sets new transformation with the given `matrix`
18051
18088
  */
18052
18089
  setMatrix(t) {
18053
- const e = Tt(t), n = Dn(e);
18090
+ const e = Tt(t);
18091
+ e.a = Number.isFinite(e.a) ? e.a : 1, e.b = Number.isFinite(e.b) ? e.b : 0, e.c = Number.isFinite(e.c) ? e.c : 0, e.d = Number.isFinite(e.d) ? e.d : 1, e.e = Number.isFinite(e.e) ? e.e : 0, e.f = Number.isFinite(e.f) ? e.f : 0;
18092
+ const n = Dn(e);
18054
18093
  this.viewport.setAttribute("transform", n), this.viewportMatrix = e, this.viewportTransformString = n;
18055
18094
  }
18056
18095
  resize(t, e) {
@@ -18068,11 +18107,11 @@ class Yc extends Nt {
18068
18107
  }
18069
18108
  scale(t, e = t, n = 0, s = 0) {
18070
18109
  if (t = this.clampScale(t), e = this.clampScale(e), n || s) {
18071
- const o = this.getTranslation(), a = o.tx - n * (t - 1), l = o.ty - s * (e - 1);
18072
- (a !== o.tx || l !== o.ty) && this.translate(a, l);
18110
+ const l = this.getTranslation(), c = l.tx - n * (t - 1), h = l.ty - s * (e - 1);
18111
+ (c !== l.tx || h !== l.ty) && this.translate(c, h);
18073
18112
  }
18074
- const r = this.getMatrix();
18075
- return r.a = t, r.d = e, this.setMatrix(r), this.graph.trigger("scale", { sx: t, sy: e, ox: n, oy: s }), this;
18113
+ const r = this.getMatrix(), o = Number.isFinite(t) ? t : 1, a = Number.isFinite(e) ? e : 1;
18114
+ return r.a = o, r.d = a, this.setMatrix(r), this.graph.trigger("scale", { sx: o, sy: a, ox: n, oy: s }), this;
18076
18115
  }
18077
18116
  clampScale(t) {
18078
18117
  const e = this.graph.options.scaling;
@@ -18086,9 +18125,9 @@ class Yc extends Nt {
18086
18125
  let n = t, s = t;
18087
18126
  const r = this.getScale(), o = this.getComputedSize();
18088
18127
  let a = o.width / 2, l = o.height / 2;
18089
- if (e.absolute || (n += r.sx, s += r.sy), e.scaleGrid && (n = Math.round(n / e.scaleGrid) * e.scaleGrid, s = Math.round(s / e.scaleGrid) * e.scaleGrid), e.maxScale && (n = Math.min(e.maxScale, n), s = Math.min(e.maxScale, s)), e.minScale && (n = Math.max(e.minScale, n), s = Math.max(e.minScale, s)), e.center && (a = e.center.x, l = e.center.y), n = this.clampScale(n), s = this.clampScale(s), a || l) {
18090
- const c = this.getTranslation(), h = a - (a - c.tx) * (n / r.sx), d = l - (l - c.ty) * (s / r.sy);
18091
- (h !== c.tx || d !== c.ty) && this.translate(h, d);
18128
+ if (e.absolute || (n += r.sx, s += r.sy), e.scaleGrid && (n = Math.round(n / e.scaleGrid) * e.scaleGrid, s = Math.round(s / e.scaleGrid) * e.scaleGrid), e.maxScale && (n = Math.min(e.maxScale, n), s = Math.min(e.maxScale, s)), e.minScale && (n = Math.max(e.minScale, n), s = Math.max(e.minScale, s)), e.center && (a = e.center.x, l = e.center.y), n = this.clampScale(n), s = this.clampScale(s), n = Number.isFinite(n) ? n : r.sx, s = Number.isFinite(s) ? s : r.sy, a || l) {
18129
+ const c = this.getTranslation(), h = r.sx === 0 ? 1 : r.sx, d = r.sy === 0 ? 1 : r.sy, u = a - (a - c.tx) * (n / h), f = l - (l - c.ty) * (s / d);
18130
+ (u !== c.tx || f !== c.ty) && this.translate(u, f);
18092
18131
  }
18093
18132
  return this.scale(n, s), this;
18094
18133
  }
@@ -18108,7 +18147,7 @@ class Yc extends Nt {
18108
18147
  }
18109
18148
  translate(t, e) {
18110
18149
  const n = this.getMatrix();
18111
- n.e = t || 0, n.f = e || 0, this.setMatrix(n);
18150
+ n.e = Number.isFinite(t) ? t : 0, n.f = Number.isFinite(e) ? e : 0, this.setMatrix(n);
18112
18151
  const s = this.getTranslation();
18113
18152
  return this.options.x = s.tx, this.options.y = s.ty, this.graph.trigger("translate", Object.assign({}, s)), this;
18114
18153
  }
@@ -18346,18 +18385,18 @@ class _r extends Nt {
18346
18385
  return this.widgetOptions && this.widgetOptions.enabled === !0;
18347
18386
  }
18348
18387
  init() {
18349
- this.onRightMouseDown = this.onRightMouseDown.bind(this), this.onSpaceKeyDown = this.onSpaceKeyDown.bind(this), this.onSpaceKeyUp = this.onSpaceKeyUp.bind(this), this.startListening(), this.updateClassName();
18388
+ this.onRightMouseDown = this.onRightMouseDown.bind(this), this.onKeyDown = this.onKeyDown.bind(this), this.onKeyUp = this.onKeyUp.bind(this), this.startListening(), this.updateClassName();
18350
18389
  }
18351
18390
  startListening() {
18352
18391
  this.graph.on("blank:mousedown", this.onMouseDown, this), this.graph.on("node:unhandled:mousedown", this.onMouseDown, this), this.graph.on("edge:unhandled:mousedown", this.onMouseDown, this), It.on(this.graph.container, "mousedown", this.onRightMouseDown), It.on(document.body, {
18353
- keydown: this.onSpaceKeyDown,
18354
- keyup: this.onSpaceKeyUp
18392
+ keydown: this.onKeyDown,
18393
+ keyup: this.onKeyUp
18355
18394
  }), this.mousewheelHandle = new Kl(this.graph.container, this.onMouseWheel.bind(this), this.allowMouseWheel.bind(this)), this.mousewheelHandle.enable();
18356
18395
  }
18357
18396
  stopListening() {
18358
18397
  this.graph.off("blank:mousedown", this.onMouseDown, this), this.graph.off("node:unhandled:mousedown", this.onMouseDown, this), this.graph.off("edge:unhandled:mousedown", this.onMouseDown, this), It.off(this.graph.container, "mousedown", this.onRightMouseDown), It.off(document.body, {
18359
- keydown: this.onSpaceKeyDown,
18360
- keyup: this.onSpaceKeyUp
18398
+ keydown: this.onKeyDown,
18399
+ keyup: this.onKeyUp
18361
18400
  }), this.mousewheelHandle && this.mousewheelHandle.disable();
18362
18401
  }
18363
18402
  allowPanning(t, e) {
@@ -18365,7 +18404,7 @@ class _r extends Nt {
18365
18404
  }
18366
18405
  startPanning(t) {
18367
18406
  const e = this.view.normalizeEvent(t);
18368
- this.clientX = e.clientX, this.clientY = e.clientY, this.panning = !0, this.updateClassName(), It.on(document.body, {
18407
+ this.clientX = e.clientX, this.clientY = e.clientY, this.panning = !0, this.updateClassName(t), It.on(document.body, {
18369
18408
  "mousemove.panning touchmove.panning": this.pan.bind(this),
18370
18409
  "mouseup.panning touchend.panning": this.stopPanning.bind(this),
18371
18410
  "mouseleave.panning": this.stopPanning.bind(this)
@@ -18377,11 +18416,14 @@ class _r extends Nt {
18377
18416
  }
18378
18417
  // eslint-disable-next-line
18379
18418
  stopPanning(t) {
18380
- this.panning = !1, this.updateClassName(), It.off(document.body, ".panning"), It.off(window, ".panning");
18419
+ this.panning = !1, this.updateClassName(t), It.off(document.body, ".panning"), It.off(window, ".panning");
18381
18420
  }
18382
- updateClassName() {
18383
- const t = this.view.container, e = this.view.prefixClassName("graph-panning"), n = this.view.prefixClassName("graph-pannable");
18384
- this.pannable ? this.panning ? (J(t, e), xt(t, n)) : (xt(t, e), J(t, n)) : (xt(t, e), xt(t, n));
18421
+ updateClassName(t) {
18422
+ const e = this.widgetOptions.eventTypes;
18423
+ if ((e == null ? void 0 : e.length) === 1 && e.includes("mouseWheel"))
18424
+ return;
18425
+ const n = this.view.container, s = this.view.prefixClassName("graph-panning"), r = this.view.prefixClassName("graph-pannable"), o = this.graph.getPlugin("selection"), a = o && o.allowRubberband(t, !0), l = (e == null ? void 0 : e.includes("leftMouseDown")) && !a;
18426
+ this.allowPanning(t ?? {}, !0) || this.allowPanning(t ?? {}) && l ? this.panning ? (J(n, s), xt(n, r)) : (xt(n, s), J(n, r)) : this.panning || (xt(n, s), xt(n, r));
18385
18427
  }
18386
18428
  onMouseDown({ e: t }) {
18387
18429
  if (!this.allowBlankMouseDown(t))
@@ -18396,11 +18438,11 @@ class _r extends Nt {
18396
18438
  onMouseWheel(t, e, n) {
18397
18439
  this.graph.translateBy(-e, -n);
18398
18440
  }
18399
- onSpaceKeyDown(t) {
18400
- t.which === 32 && (this.isSpaceKeyPressed = !0);
18441
+ onKeyDown(t) {
18442
+ t.which === 32 && (this.isSpaceKeyPressed = !0), this.updateClassName(t);
18401
18443
  }
18402
- onSpaceKeyUp(t) {
18403
- t.which === 32 && (this.isSpaceKeyPressed = !1);
18444
+ onKeyUp(t) {
18445
+ t.which === 32 && (this.isSpaceKeyPressed = !1), this.updateClassName(t);
18404
18446
  }
18405
18447
  allowBlankMouseDown(t) {
18406
18448
  const e = this.widgetOptions.eventTypes;
@@ -18461,7 +18503,7 @@ class Vr extends Nt {
18461
18503
  const e = this.widgetOptions.guard;
18462
18504
  if ((e == null || e(t)) && Ee.isMatch(t, this.widgetOptions.modifiers)) {
18463
18505
  const n = this.widgetOptions.factor || 1.2;
18464
- this.currentScale == null && (this.startPos = { x: t.clientX, y: t.clientY }, this.currentScale = this.graph.transform.getScale().sx), t.deltaY < 0 ? this.currentScale < 0.15 ? this.cumulatedFactor = (this.currentScale + 0.01) / this.currentScale : (this.cumulatedFactor = Math.round(this.currentScale * n * 20) / 20 / this.currentScale, this.cumulatedFactor === 1 && (this.cumulatedFactor = 1.05)) : this.currentScale <= 0.15 ? this.cumulatedFactor = (this.currentScale - 0.01) / this.currentScale : (this.cumulatedFactor = Math.round(this.currentScale * (1 / n) * 20) / 20 / this.currentScale, this.cumulatedFactor === 1 && (this.cumulatedFactor = 0.95)), this.cumulatedFactor = Math.max(0.01, Math.min(this.currentScale * this.cumulatedFactor, 160) / this.currentScale);
18506
+ this.currentScale == null && (this.startPos = { x: t.clientX, y: t.clientY }, this.currentScale = this.graph.transform.getScale().sx), t.deltaY < 0 ? (this.currentScale < 0.15 ? this.cumulatedFactor = (this.currentScale + 0.01) / this.currentScale : this.cumulatedFactor = Math.round(this.currentScale * n * 20) / 20 / this.currentScale, this.cumulatedFactor <= 1 && (this.cumulatedFactor = 1.05)) : (this.currentScale <= 0.15 ? this.cumulatedFactor = (this.currentScale - 0.01) / this.currentScale : this.cumulatedFactor = Math.round(this.currentScale * (1 / n) * 20) / 20 / this.currentScale, this.cumulatedFactor >= 1 && (this.cumulatedFactor = 0.95)), this.cumulatedFactor = Math.max(0.01, Math.min(this.currentScale * this.cumulatedFactor, 160) / this.currentScale);
18465
18507
  const r = this.currentScale;
18466
18508
  let o = this.graph.transform.clampScale(r * this.cumulatedFactor);
18467
18509
  const a = this.widgetOptions.minScale || Number.MIN_SAFE_INTEGER, l = this.widgetOptions.maxScale || Number.MAX_SAFE_INTEGER;
@@ -3,9 +3,9 @@ import { withInstall as u } from "@das-fed/utils/with-install/index";
3
3
  import { setI18nRule as C, t as E } from "@das-fed/web/packages/i18n/index";
4
4
  import { setThemeRule as k } from "@das-fed/web/packages/theme/index";
5
5
  import "@das-fed/ui/packages/global/theme";
6
- import { defineComponent as m, createBlock as v, openBlock as c, unref as t, mergeProps as h, withCtx as s, renderSlot as p, normalizeProps as F, guardReactiveProps as y, useAttrs as B, ref as n, watch as I, onMounted as M, createElementBlock as P, createVNode as R } from "vue";
6
+ import { defineComponent as c, createBlock as v, openBlock as m, unref as n, mergeProps as h, withCtx as d, renderSlot as a, normalizeProps as F, guardReactiveProps as x, useAttrs as y, ref as s, watch as B, onMounted as I, createElementBlock as M, createVNode as P } from "vue";
7
7
  import "element-plus/es/components/dropdown-item/style/css";
8
- import { ElDropdownItem as A, ElDropdownMenu as b, ElDropdown as x } from "element-plus";
8
+ import { ElDropdownItem as R, ElDropdownMenu as A, ElDropdown as b } from "element-plus";
9
9
  import "element-plus/es/components/dropdown-menu/style/css";
10
10
  import "element-plus/es/components/dropdown/style/css";
11
11
  const z = {
@@ -13,31 +13,31 @@ const z = {
13
13
  "--das-ui-dropdown-divided-color": "#e5e5e5",
14
14
  "--das-ui-dropdown-active-color": "#5582F3",
15
15
  "--das-ui-dropdown-hover-color": "#F5F5F5"
16
- }, L = /* @__PURE__ */ m({
16
+ }, L = /* @__PURE__ */ c({
17
17
  __name: "dropdownItem",
18
18
  props: {
19
19
  danger: { type: Boolean, default: !1 }
20
20
  },
21
- setup(d) {
22
- return (o, a) => (c(), v(t(A), h(o.$attrs, {
23
- class: { danger: o.danger }
21
+ setup(t) {
22
+ return (o, p) => (m(), v(n(R), h(o.$attrs, {
23
+ class: { danger: t.danger }
24
24
  }), {
25
- default: s(() => [
26
- p(o.$slots, "default")
25
+ default: d(() => [
26
+ a(o.$slots, "default")
27
27
  ]),
28
28
  _: 3
29
29
  /* FORWARDED */
30
30
  }, 16, ["class"]));
31
31
  }
32
- }), N = /* @__PURE__ */ m({
32
+ }), N = /* @__PURE__ */ c({
33
33
  __name: "dropdownMenu",
34
- setup(d) {
35
- return (o, a) => (c(), v(
36
- t(b),
37
- F(y(o.$attrs)),
34
+ setup(t) {
35
+ return (o, p) => (m(), v(
36
+ n(A),
37
+ F(x(o.$attrs)),
38
38
  {
39
- default: s(() => [
40
- p(o.$slots, "default")
39
+ default: d(() => [
40
+ a(o.$slots, "default")
41
41
  ]),
42
42
  _: 3
43
43
  /* FORWARDED */
@@ -46,15 +46,15 @@ const z = {
46
46
  /* FULL_PROPS */
47
47
  ));
48
48
  }
49
- }), O = /* @__PURE__ */ m({
49
+ }), O = /* @__PURE__ */ c({
50
50
  __name: "index",
51
51
  props: {
52
52
  selfPopperClass: { default: "" },
53
53
  visibleArrow: { type: Boolean, default: !1 }
54
54
  },
55
- setup(d, { expose: o }) {
56
- const a = B(), w = n(null), r = n(null);
57
- let D = d, _ = n("hidden-arrow"), l = n({
55
+ setup(t, { expose: o }) {
56
+ const p = y(), w = s(null), r = s(null);
57
+ let D = t, _ = s("hidden-arrow"), l = s({
58
58
  modifiers: [
59
59
  {
60
60
  name: "offset",
@@ -64,7 +64,7 @@ const z = {
64
64
  }
65
65
  ]
66
66
  });
67
- I(
67
+ B(
68
68
  () => D.visibleArrow,
69
69
  (e, f) => {
70
70
  _.value = e ? "" : "hidden-arrow", l.value = {
@@ -79,8 +79,8 @@ const z = {
79
79
  };
80
80
  },
81
81
  { immediate: !0 }
82
- ), M(() => {
83
- if (a.trigger == "contextmenu") {
82
+ ), I(() => {
83
+ if (p.trigger == "contextmenu") {
84
84
  const e = w.value;
85
85
  e == null || e.addEventListener("contextmenu", $), e == null || e.addEventListener("mousedown", g);
86
86
  }
@@ -105,7 +105,7 @@ const z = {
105
105
  }
106
106
  return o({
107
107
  getElRef: () => r.value
108
- }), (e, f) => (c(), P(
108
+ }), (e, f) => (m(), M(
109
109
  "div",
110
110
  {
111
111
  class: "das-ui-dropdown",
@@ -113,17 +113,17 @@ const z = {
113
113
  ref: w
114
114
  },
115
115
  [
116
- R(t(x), h(e.$attrs, {
117
- "popper-class": `das-ui-dropdown-popper ${e.selfPopperClass} ${t(_)}`,
118
- "popper-options": t(l),
116
+ P(n(b), h(e.$attrs, {
117
+ "popper-class": `das-ui-dropdown-popper ${t.selfPopperClass} ${n(_)}`,
118
+ "popper-options": n(l),
119
119
  ref_key: "_selfElDropdown",
120
120
  ref: r
121
121
  }), {
122
- dropdown: s(() => [
123
- p(e.$slots, "default")
122
+ dropdown: d(() => [
123
+ a(e.$slots, "default")
124
124
  ]),
125
- default: s(() => [
126
- p(e.$slots, "content")
125
+ default: d(() => [
126
+ a(e.$slots, "content")
127
127
  ]),
128
128
  _: 3
129
129
  /* FORWARDED */
@@ -107,7 +107,7 @@ declare const DasEditTableRef: () => import("vue").Ref<({
107
107
  "onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
108
108
  onAddRow?: (() => any) | undefined;
109
109
  onRemoveRow?: (() => any) | undefined;
110
- }>, "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "insert" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
110
+ }>, "insert" | "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
111
111
  getResultData: () => {}[];
112
112
  recover: () => void;
113
113
  recoverByKey: (id: string | string[] | number | number[]) => void;
@@ -303,7 +303,7 @@ declare const DasEditTableRef: () => import("vue").Ref<({
303
303
  "onUpdate:selection-rows"?: ((selectionRows: any[]) => any) | undefined;
304
304
  onAddRow?: (() => any) | undefined;
305
305
  onRemoveRow?: (() => any) | undefined;
306
- }>, "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "insert" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
306
+ }>, "insert" | "deactivateAll" | "removeErrorByRowKey" | "validateAll" | "clearValidate" | "changeRules" | "validateByRowKey" | "removeCellError" | ("config" | "props" | "data" | "trigger" | "rowKey" | "selectionRows") | "getResultData" | "recover" | "recoverByKey" | "changeRowValueByKey" | "removeRowByKey"> & import("vue").ShallowUnwrapRef<{
307
307
  getResultData: () => {}[];
308
308
  recover: () => void;
309
309
  recoverByKey: (id: string | string[] | number | number[]) => void;