@das-fed/ui 1.1.4 → 6.3.0-beta.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.
Files changed (152) hide show
  1. package/global/icons/index.local.js +1 -1
  2. package/global/style/index.css +1 -1
  3. package/global/style/scrollbar.css +22 -22
  4. package/global/theme/index.js +12 -12
  5. package/global/theme/module/color.js +31 -31
  6. package/global/theme/module/fontSize.js +5 -5
  7. package/global/theme/module/scrollbar.js +6 -6
  8. package/package.json +15 -9
  9. package/packages/business-components/app-container/index.js +154 -147
  10. package/packages/business-components/change-enterprises/index.css +1 -0
  11. package/packages/business-components/change-enterprises/index.js +241 -0
  12. package/packages/business-components/change-pwd/index.css +1 -0
  13. package/packages/business-components/change-pwd/index.js +330 -0
  14. package/packages/business-components/currency-page/index.css +1 -0
  15. package/packages/business-components/currency-page/index.js +99 -0
  16. package/packages/business-components/device-panel/index.css +1 -0
  17. package/packages/business-components/device-panel/index.js +115939 -0
  18. package/packages/business-components/echarts/index.js +93 -122
  19. package/packages/business-components/export-button/index.js +73 -66
  20. package/packages/business-components/import-button/index.js +213 -170
  21. package/packages/business-components/index.js +8 -1
  22. package/packages/business-components/layout-breadcrumb/index.js +82 -66
  23. package/packages/business-components/model-table-dialog/index.js +299 -289
  24. package/packages/business-components/process-configuration/index.css +1 -0
  25. package/packages/business-components/process-configuration/index.js +612 -0
  26. package/packages/business-components/process-form/index.css +1 -0
  27. package/packages/business-components/process-form/index.js +524 -0
  28. package/packages/business-components/process-search-form/index.js +73 -315
  29. package/packages/business-components/process-table/index.css +1 -1
  30. package/packages/business-components/process-table/index.js +186 -152
  31. package/packages/business-components/urgent-panel/index.css +1 -0
  32. package/packages/business-components/urgent-panel/index.js +3914 -0
  33. package/packages/business-components/user-org-dialog/index.js +466 -375
  34. package/packages/business-components/video-dialog/index.css +1 -0
  35. package/packages/business-components/video-dialog/index.js +1041 -0
  36. package/packages/business.js +1 -2
  37. package/packages/components/alert/index.js +449 -633
  38. package/packages/components/audio-video/index.css +1 -1
  39. package/packages/components/audio-video/index.js +312 -126
  40. package/packages/components/autocomplete/index.css +1 -1
  41. package/packages/components/autocomplete/index.js +312 -2923
  42. package/packages/components/breadcrumb/index.js +97 -82
  43. package/packages/components/button/index.css +1 -1
  44. package/packages/components/button/index.js +646 -787
  45. package/packages/components/calendar/index.css +1 -1
  46. package/packages/components/calendar/index.js +655 -3879
  47. package/packages/components/cascader/index.js +209 -203
  48. package/packages/components/checkbox/index.css +1 -1
  49. package/packages/components/checkbox/index.js +710 -872
  50. package/packages/components/collapse-panel/index.css +1 -1
  51. package/packages/components/collapse-panel/index.js +419 -601
  52. package/packages/components/collapse-transition/index.js +23 -21
  53. package/packages/components/collaspe/index.css +1 -1
  54. package/packages/components/collaspe/index.js +413 -595
  55. package/packages/components/color-picker/index.css +1 -1
  56. package/packages/components/color-picker/index.js +176 -133
  57. package/packages/components/custom-search-item/index.js +43 -37
  58. package/packages/components/date-picker/index.js +1338 -1459
  59. package/packages/components/dialog/index.js +429 -215
  60. package/packages/components/dimple-layout/index.css +1 -1
  61. package/packages/components/dimple-layout/index.js +1298 -1794
  62. package/packages/components/drawer/index.js +105 -77
  63. package/packages/components/dropdown/index.js +129 -109
  64. package/packages/components/edit-table/index.css +1 -1
  65. package/packages/components/edit-table/index.js +868 -752
  66. package/packages/components/empty/index.js +83 -78
  67. package/packages/components/form/index.js +22 -15
  68. package/packages/components/form-item/index.css +1 -1
  69. package/packages/components/form-item/index.js +601 -440
  70. package/packages/components/icon/index.css +1 -1
  71. package/packages/components/icon/index.js +38 -22
  72. package/packages/components/image-preview/index.css +1 -0
  73. package/packages/components/image-preview/index.js +2714 -0
  74. package/packages/components/image-upload/index.js +601 -765
  75. package/packages/components/image-viewer/index.css +1 -1
  76. package/packages/components/image-viewer/index.js +909 -990
  77. package/packages/components/index.js +2 -2
  78. package/packages/components/input/index.css +1 -1
  79. package/packages/components/input/index.js +284 -256
  80. package/packages/components/input-dialog-select/index.css +1 -1
  81. package/packages/components/input-dialog-select/index.js +179 -156
  82. package/packages/components/input-number/index.css +1 -1
  83. package/packages/components/input-number/index.js +157 -170
  84. package/packages/components/live-player/index.css +1 -0
  85. package/packages/components/live-player/index.js +170 -0
  86. package/packages/components/loading/index.js +17 -26
  87. package/packages/components/map/index.css +1 -1
  88. package/packages/components/map/index.js +18913 -461
  89. package/packages/components/menu-aside/index.css +1 -1
  90. package/packages/components/menu-aside/index.js +648 -713
  91. package/packages/components/menu-header/index.js +446 -629
  92. package/packages/components/message/index.js +25 -16
  93. package/packages/components/notification/index.js +386 -575
  94. package/packages/components/overlay/index.js +112 -103
  95. package/packages/components/pagination/index.js +260 -330
  96. package/packages/components/popover/index.js +104 -93
  97. package/packages/components/popup-mask/index.css +1 -1
  98. package/packages/components/popup-mask/index.js +77 -72
  99. package/packages/components/preview/index.js +33 -28
  100. package/packages/components/progress/index.js +214 -221
  101. package/packages/components/radio/index.css +1 -1
  102. package/packages/components/radio/index.js +699 -862
  103. package/packages/components/radio-tabs/index.js +144 -107
  104. package/packages/components/rich-editor/index.css +1 -1
  105. package/packages/components/rich-editor/index.js +105 -106
  106. package/packages/components/scrollbar/index.css +3 -2
  107. package/packages/components/scrollbar/index.js +2262 -1201
  108. package/packages/components/search/index.js +500 -664
  109. package/packages/components/search-form/index.css +1 -1
  110. package/packages/components/search-form/index.js +724 -626
  111. package/packages/components/select/index.css +1 -1
  112. package/packages/components/select/index.js +1052 -950
  113. package/packages/components/select-input/index.js +63 -53
  114. package/packages/components/select-list/index.css +1 -1
  115. package/packages/components/select-list/index.js +258 -235
  116. package/packages/components/special-range-picker-month/index.css +1 -1
  117. package/packages/components/special-range-picker-month/index.js +3068 -72555
  118. package/packages/components/special-range-picker-year/index.css +1 -1
  119. package/packages/components/special-range-picker-year/index.js +345 -339
  120. package/packages/components/spin/index.js +415 -594
  121. package/packages/components/split-panel/index.css +1 -1
  122. package/packages/components/split-panel/index.js +146 -127
  123. package/packages/components/step/index.js +414 -597
  124. package/packages/components/steps/index.js +407 -590
  125. package/packages/components/switch/index.js +23 -23
  126. package/packages/components/table/index.css +1 -1
  127. package/packages/components/table/index.js +80813 -27734
  128. package/packages/components/tabs/index.css +1 -1
  129. package/packages/components/tabs/index.js +620 -813
  130. package/packages/components/tag/index.js +63 -63
  131. package/packages/components/text-tooltip/index.css +9 -0
  132. package/packages/components/text-tooltip/index.js +2739 -33
  133. package/packages/components/time-line/index.js +464 -643
  134. package/packages/components/tooltip/index.css +1 -1
  135. package/packages/components/tooltip/index.js +108 -79
  136. package/packages/components/tree/index.css +1 -1
  137. package/packages/components/tree/index.js +840 -809
  138. package/packages/components/tree-select/index.js +271 -303
  139. package/packages/components/tree-table/index.js +461 -352
  140. package/packages/components/upload/index.js +682 -858
  141. package/packages/components/virtual-tree/index.css +1 -1
  142. package/packages/components/virtual-tree/index.js +144 -126
  143. package/packages/index.d.ts +1 -0
  144. package/packages/index.js +2 -2
  145. package/style/business.css +11 -4
  146. package/style/index.css +52 -42
  147. package/packages/business-components/low-code/index.css +0 -1
  148. package/packages/business-components/low-code/index.js +0 -60
  149. package/packages/components/audio-video-player/index.css +0 -1
  150. package/packages/components/audio-video-player/index.js +0 -83
  151. package/packages/components/table-column/index.css +0 -1
  152. package/packages/components/table-column/index.js +0 -82021
@@ -7515,7 +7515,7 @@ function nice(val, round) {
7515
7515
  var exp10 = Math.pow(10, exponent);
7516
7516
  var f = val / exp10; // 1 <= f < 10
7517
7517
  var nf;
7518
- if (round) {
7518
+ {
7519
7519
  if (f < 1.5) {
7520
7520
  nf = 1;
7521
7521
  } else if (f < 2.5) {
@@ -7527,18 +7527,6 @@ function nice(val, round) {
7527
7527
  } else {
7528
7528
  nf = 10;
7529
7529
  }
7530
- } else {
7531
- if (f < 1) {
7532
- nf = 1;
7533
- } else if (f < 2) {
7534
- nf = 2;
7535
- } else if (f < 3) {
7536
- nf = 3;
7537
- } else if (f < 5) {
7538
- nf = 5;
7539
- } else {
7540
- nf = 10;
7541
- }
7542
7530
  }
7543
7531
  val = nf * exp10;
7544
7532
  // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).
@@ -11295,7 +11283,6 @@ var ZRImage = (function (_super) {
11295
11283
  return ZRImage;
11296
11284
  }(Displayable$1));
11297
11285
  ZRImage.prototype.type = 'image';
11298
- var ZRImage$1 = ZRImage;
11299
11286
 
11300
11287
  function buildPath$2(ctx, shape) {
11301
11288
  var x = shape.x;
@@ -11895,7 +11882,7 @@ var ZRText = (function (_super) {
11895
11882
  rectStyle.fillOpacity = retrieve2(style.fillOpacity, 1);
11896
11883
  }
11897
11884
  else if (isImageBg) {
11898
- imgEl = this._getOrCreateChild(ZRImage$1);
11885
+ imgEl = this._getOrCreateChild(ZRImage);
11899
11886
  imgEl.onload = function () {
11900
11887
  self.dirtyStyle();
11901
11888
  };
@@ -13190,7 +13177,6 @@ var Ellipse = (function (_super) {
13190
13177
  return Ellipse;
13191
13178
  }(Path));
13192
13179
  Ellipse.prototype.type = 'ellipse';
13193
- var Ellipse$1 = Ellipse;
13194
13180
 
13195
13181
  var PI$6 = Math.PI;
13196
13182
  var PI2$3 = PI$6 * 2;
@@ -13450,7 +13436,6 @@ var Sector = (function (_super) {
13450
13436
  return Sector;
13451
13437
  }(Path));
13452
13438
  Sector.prototype.type = 'sector';
13453
- var Sector$1 = Sector;
13454
13439
 
13455
13440
  var RingShape = (function () {
13456
13441
  function RingShape() {
@@ -13481,7 +13466,6 @@ var Ring = (function (_super) {
13481
13466
  return Ring;
13482
13467
  }(Path));
13483
13468
  Ring.prototype.type = 'ring';
13484
- var Ring$1 = Ring;
13485
13469
 
13486
13470
  function smoothBezier(points, smooth, isLoop, constraint) {
13487
13471
  var cps = [];
@@ -13822,7 +13806,6 @@ var Arc = (function (_super) {
13822
13806
  return Arc;
13823
13807
  }(Path));
13824
13808
  Arc.prototype.type = 'arc';
13825
- var Arc$1 = Arc;
13826
13809
 
13827
13810
  var CompoundPath = (function (_super) {
13828
13811
  __extends(CompoundPath, _super);
@@ -14430,7 +14413,7 @@ function makePath(pathData, opts, rect, layout) {
14430
14413
  * @param layout 'center' or 'cover'. Default to be 'cover'
14431
14414
  */
14432
14415
  function makeImage(imageUrl, rect, layout) {
14433
- var zrImg = new ZRImage$1({
14416
+ var zrImg = new ZRImage({
14434
14417
  style: {
14435
14418
  image: imageUrl,
14436
14419
  x: rect.x,
@@ -14657,7 +14640,7 @@ opt, rect) {
14657
14640
  height: 2
14658
14641
  };
14659
14642
  if (iconStr) {
14660
- return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), defaults(style, rect), new ZRImage$1(innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center');
14643
+ return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), defaults(style, rect), new ZRImage(innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center');
14661
14644
  }
14662
14645
  }
14663
14646
  /**
@@ -14778,26 +14761,26 @@ function traverseElements(els, cb) {
14778
14761
  // Register built-in shapes. These shapes might be overwritten
14779
14762
  // by users, although we do not recommend that.
14780
14763
  registerShape('circle', Circle);
14781
- registerShape('ellipse', Ellipse$1);
14782
- registerShape('sector', Sector$1);
14783
- registerShape('ring', Ring$1);
14764
+ registerShape('ellipse', Ellipse);
14765
+ registerShape('sector', Sector);
14766
+ registerShape('ring', Ring);
14784
14767
  registerShape('polygon', Polygon);
14785
14768
  registerShape('polyline', Polyline$1);
14786
14769
  registerShape('rect', Rect$2);
14787
14770
  registerShape('line', Line$1);
14788
14771
  registerShape('bezierCurve', BezierCurve);
14789
- registerShape('arc', Arc$1);
14772
+ registerShape('arc', Arc);
14790
14773
 
14791
14774
  var graphic = /*#__PURE__*/Object.freeze({
14792
14775
  __proto__: null,
14793
- Arc: Arc$1,
14776
+ Arc: Arc,
14794
14777
  BezierCurve: BezierCurve,
14795
14778
  BoundingRect: BoundingRect,
14796
14779
  Circle: Circle,
14797
14780
  CompoundPath: CompoundPath$1,
14798
- Ellipse: Ellipse$1,
14781
+ Ellipse: Ellipse,
14799
14782
  Group: Group$3,
14800
- Image: ZRImage$1,
14783
+ Image: ZRImage,
14801
14784
  IncrementalDisplayable: IncrementalDisplayable$1,
14802
14785
  Line: Line$1,
14803
14786
  LinearGradient: LinearGradient,
@@ -14808,8 +14791,8 @@ var graphic = /*#__PURE__*/Object.freeze({
14808
14791
  Polyline: Polyline$1,
14809
14792
  RadialGradient: RadialGradient$1,
14810
14793
  Rect: Rect$2,
14811
- Ring: Ring$1,
14812
- Sector: Sector$1,
14794
+ Ring: Ring,
14795
+ Sector: Sector,
14813
14796
  Text: ZRText,
14814
14797
  applyTransform: applyTransform,
14815
14798
  clipPointsByRect: clipPointsByRect,
@@ -16273,7 +16256,7 @@ function formatTpl(tpl, paramsList, encode) {
16273
16256
  */
16274
16257
  function formatTplSimple(tpl, param, encode) {
16275
16258
  each$f(param, function (value, key) {
16276
- tpl = tpl.replace('{' + key + '}', encode ? encodeHTML(value) : value);
16259
+ tpl = tpl.replace('{' + key + '}', value);
16277
16260
  });
16278
16261
  return tpl;
16279
16262
  }
@@ -18806,7 +18789,7 @@ function set(opt, path, val, overwrite) {
18806
18789
  }
18807
18790
  obj = obj[key];
18808
18791
  }
18809
- if (overwrite || obj[pathArr[i]] == null) {
18792
+ if (obj[pathArr[i]] == null) {
18810
18793
  obj[pathArr[i]] = val;
18811
18794
  }
18812
18795
  }
@@ -23439,7 +23422,7 @@ function defaultLoading(api, opts) {
23439
23422
  group.add(labelRect);
23440
23423
  var arc;
23441
23424
  if (opts.showSpinner) {
23442
- arc = new Arc$1({
23425
+ arc = new Arc({
23443
23426
  shape: {
23444
23427
  startAngle: -PI$5 / 2,
23445
23428
  endAngle: -PI$5 / 2 + 0.1,
@@ -25529,7 +25512,7 @@ function brush$1(ctx, el, scope, isLast) {
25529
25512
  bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);
25530
25513
  brushText(ctx, el, style);
25531
25514
  }
25532
- else if (el instanceof ZRImage$1) {
25515
+ else if (el instanceof ZRImage) {
25533
25516
  if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {
25534
25517
  forceSetStyle = true;
25535
25518
  scope.lastDrawType = DRAW_TYPE_IMAGE;
@@ -26495,7 +26478,7 @@ var ECharts = /** @class */function (_super) {
26495
26478
  }));
26496
26479
  }
26497
26480
  each$f(canvasList_1, function (item) {
26498
- var img = new ZRImage$1({
26481
+ var img = new ZRImage({
26499
26482
  style: {
26500
26483
  x: item.left * dpr_1 - left_1,
26501
26484
  y: item.top * dpr_1 - top_1,
@@ -27864,8 +27847,7 @@ var DOM_ATTRIBUTE_KEY = '_echarts_instance_';
27864
27847
  * @param opts.useDirtyRect Enable dirty rectangle rendering or not.
27865
27848
  */
27866
27849
  function init$1(dom, theme, opts) {
27867
- var isClient = !(opts && opts.ssr);
27868
- if (isClient) {
27850
+ {
27869
27851
  if (process.env.NODE_ENV !== 'production') {
27870
27852
  if (!dom) {
27871
27853
  throw new Error('Initialize failed: invalid dom.');
@@ -27879,7 +27861,7 @@ function init$1(dom, theme, opts) {
27879
27861
  return existInstance;
27880
27862
  }
27881
27863
  if (process.env.NODE_ENV !== 'production') {
27882
- if (isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts || opts.width == null) || !dom.clientHeight && (!opts || opts.height == null))) {
27864
+ if (isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts ) || !dom.clientHeight && (!opts ))) {
27883
27865
  warn('Can\'t get DOM width or height. Please check ' + 'dom.clientWidth and dom.clientHeight. They should not be 0.' + 'For example, you may need to call this in the callback ' + 'of window.onload.');
27884
27866
  }
27885
27867
  }
@@ -27887,7 +27869,7 @@ function init$1(dom, theme, opts) {
27887
27869
  var chart = new ECharts(dom, theme, opts);
27888
27870
  chart.id = 'ec_' + idBase++;
27889
27871
  instances[chart.id] = chart;
27890
- isClient && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
27872
+ setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
27891
27873
  enableConnect(chart);
27892
27874
  lifecycle.trigger('afterinit', chart);
27893
27875
  return chart;
@@ -30436,7 +30418,7 @@ function isIntervalOrLogScale(scale) {
30436
30418
  function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) {
30437
30419
  var result = {};
30438
30420
  var span = extent[1] - extent[0];
30439
- var interval = result.interval = nice(span / splitNumber, true);
30421
+ var interval = result.interval = nice(span / splitNumber);
30440
30422
  if (minInterval != null && interval < minInterval) {
30441
30423
  interval = result.interval = minInterval;
30442
30424
  }
@@ -31552,7 +31534,7 @@ function getMinutesAndSecondsInterval(approxInterval, isMinutes) {
31552
31534
  return approxInterval > 30 ? 30 : approxInterval > 20 ? 20 : approxInterval > 15 ? 15 : approxInterval > 10 ? 10 : approxInterval > 5 ? 5 : approxInterval > 2 ? 2 : 1;
31553
31535
  }
31554
31536
  function getMillisecondsInterval(approxInterval) {
31555
- return nice(approxInterval, true);
31537
+ return nice(approxInterval);
31556
31538
  }
31557
31539
  function getFirstTimestampOfUnit(date, unitName, isUTC) {
31558
31540
  var outDate = new Date(date);
@@ -34569,7 +34551,7 @@ var strokeProps = ['lineCap', 'miterLimit', 'lineJoin'];
34569
34551
  var svgStrokeProps = map$1(strokeProps, function (prop) { return "stroke-" + prop.toLowerCase(); });
34570
34552
  function mapStyleToAttrs(updateAttr, style, el, forceUpdate) {
34571
34553
  var opacity = style.opacity == null ? 1 : style.opacity;
34572
- if (el instanceof ZRImage$1) {
34554
+ if (el instanceof ZRImage) {
34573
34555
  updateAttr('opacity', opacity);
34574
34556
  return;
34575
34557
  }
@@ -34579,7 +34561,7 @@ function mapStyleToAttrs(updateAttr, style, el, forceUpdate) {
34579
34561
  var fillOpacity = style.fillOpacity != null
34580
34562
  ? style.fillOpacity * fill.opacity * opacity
34581
34563
  : fill.opacity * opacity;
34582
- if (forceUpdate || fillOpacity < 1) {
34564
+ if (fillOpacity < 1) {
34583
34565
  updateAttr('fill-opacity', fillOpacity);
34584
34566
  }
34585
34567
  }
@@ -34597,13 +34579,13 @@ function mapStyleToAttrs(updateAttr, style, el, forceUpdate) {
34597
34579
  ? style.strokeOpacity * stroke.opacity * opacity
34598
34580
  : stroke.opacity * opacity;
34599
34581
  var strokeFirst = style.strokeFirst;
34600
- if (forceUpdate || strokeWidth !== 1) {
34582
+ if (strokeWidth !== 1) {
34601
34583
  updateAttr('stroke-width', strokeWidth);
34602
34584
  }
34603
- if (forceUpdate || strokeFirst) {
34585
+ if (strokeFirst) {
34604
34586
  updateAttr('paint-order', strokeFirst ? 'stroke' : 'fill');
34605
34587
  }
34606
- if (forceUpdate || strokeOpacity < 1) {
34588
+ if (strokeOpacity < 1) {
34607
34589
  updateAttr('stroke-opacity', strokeOpacity);
34608
34590
  }
34609
34591
  if (style.lineDash) {
@@ -34616,20 +34598,14 @@ function mapStyleToAttrs(updateAttr, style, el, forceUpdate) {
34616
34598
  }
34617
34599
  }
34618
34600
  }
34619
- else if (forceUpdate) {
34620
- updateAttr('stroke-dasharray', NONE);
34621
- }
34622
34601
  for (var i = 0; i < strokeProps.length; i++) {
34623
34602
  var propName = strokeProps[i];
34624
- if (forceUpdate || style[propName] !== DEFAULT_PATH_STYLE[propName]) {
34603
+ if (style[propName] !== DEFAULT_PATH_STYLE[propName]) {
34625
34604
  var val = style[propName] || DEFAULT_PATH_STYLE[propName];
34626
34605
  val && updateAttr(svgStrokeProps[i], val);
34627
34606
  }
34628
34607
  }
34629
34608
  }
34630
- else if (forceUpdate) {
34631
- updateAttr('stroke', NONE);
34632
- }
34633
34609
  }
34634
34610
 
34635
34611
  var SVGNS = 'http://www.w3.org/2000/svg';
@@ -35014,7 +34990,7 @@ function createCSSEmphasis(el, attrs, scope) {
35014
34990
  var style = {
35015
34991
  'pointer-events': 'none'
35016
34992
  };
35017
- setClassAttribute(style, attrs, scope, true);
34993
+ setClassAttribute(style, attrs, scope);
35018
34994
  }
35019
34995
  else {
35020
34996
  var emphasisStyle = el.states.emphasis && el.states.emphasis.style
@@ -35052,7 +35028,7 @@ function createCSSEmphasis(el, attrs, scope) {
35052
35028
  if (lineWidth) {
35053
35029
  style['stroke-width'] = lineWidth;
35054
35030
  }
35055
- setClassAttribute(style, attrs, scope, true);
35031
+ setClassAttribute(style, attrs, scope);
35056
35032
  }
35057
35033
  }
35058
35034
  }
@@ -35062,7 +35038,7 @@ function setClassAttribute(style, attrs, scope, withHover) {
35062
35038
  if (!className) {
35063
35039
  className = scope.zrId + '-cls-' + getClassId();
35064
35040
  scope.cssStyleCache[styleKey] = className;
35065
- scope.cssNodes['.' + className + (withHover ? ':hover' : '')] = style;
35041
+ scope.cssNodes['.' + className + (':hover' )] = style;
35066
35042
  }
35067
35043
  attrs["class"] = attrs["class"] ? (attrs["class"] + ' ' + className) : className;
35068
35044
  }
@@ -35114,7 +35090,7 @@ function noTranslate(m) {
35114
35090
  }
35115
35091
  function setTransform(attrs, m, compress) {
35116
35092
  if (m && !(noTranslate(m) && noRotateScale(m))) {
35117
- var mul = compress ? 10 : 1e4;
35093
+ var mul = 1e4;
35118
35094
  attrs.transform = noRotateScale(m)
35119
35095
  ? "translate(" + round$1(m[4] * mul) / mul + " " + round$1(m[5] * mul) / mul + ")" : getMatrixStr(m);
35120
35096
  }
@@ -35303,7 +35279,7 @@ function brush(el, scope) {
35303
35279
  if (el instanceof Path) {
35304
35280
  return brushSVGPath(el, scope);
35305
35281
  }
35306
- else if (el instanceof ZRImage$1) {
35282
+ else if (el instanceof ZRImage) {
35307
35283
  return brushSVGImage(el, scope);
35308
35284
  }
35309
35285
  else if (el instanceof TSpan) {
@@ -36050,10 +36026,9 @@ function createBackgroundVNode(width, height, backgroundColor, scope) {
36050
36026
  }
36051
36027
  return bgVNode;
36052
36028
  }
36053
- var SVGPainter$1 = SVGPainter;
36054
36029
 
36055
36030
  function install$S(registers) {
36056
- registers.registerPainter('svg', SVGPainter$1);
36031
+ registers.registerPainter('svg', SVGPainter);
36057
36032
  }
36058
36033
 
36059
36034
  function createDom(id, painter, dpr) {
@@ -36973,10 +36948,9 @@ var CanvasPainter = (function () {
36973
36948
  };
36974
36949
  return CanvasPainter;
36975
36950
  }());
36976
- var CanvasPainter$1 = CanvasPainter;
36977
36951
 
36978
36952
  function install$R(registers) {
36979
- registers.registerPainter('canvas', CanvasPainter$1);
36953
+ registers.registerPainter('canvas', CanvasPainter);
36980
36954
  }
36981
36955
 
36982
36956
  var LineSeriesModel = /** @class */function (_super) {
@@ -37283,7 +37257,7 @@ var Symbol = /** @class */function (_super) {
37283
37257
  cursorStyle && symbolPath.attr('cursor', cursorStyle);
37284
37258
  var symbolStyle = data.getItemVisual(idx, 'style');
37285
37259
  var visualColor = symbolStyle.fill;
37286
- if (symbolPath instanceof ZRImage$1) {
37260
+ if (symbolPath instanceof ZRImage) {
37287
37261
  var pathStyle = symbolPath.style;
37288
37262
  symbolPath.useStyle(extend({
37289
37263
  // TODO other properties like x, y ?
@@ -38125,7 +38099,7 @@ function createPolarClipPath(polar, hasAnimation, seriesModel) {
38125
38099
  // Avoid float number rounding error for symbol on the edge of axis extent.
38126
38100
  var r0 = round$3(sectorArea.r0, 1);
38127
38101
  var r = round$3(sectorArea.r, 1);
38128
- var clipPath = new Sector$1({
38102
+ var clipPath = new Sector({
38129
38103
  shape: {
38130
38104
  cx: round$3(polar.cx, 1),
38131
38105
  cy: round$3(polar.cy, 1),
@@ -40331,7 +40305,7 @@ var elementCreator = {
40331
40305
  return rect;
40332
40306
  },
40333
40307
  polar: function (seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) {
40334
- var ShapeClass = !isRadial && roundCap ? SausagePath : Sector$1;
40308
+ var ShapeClass = !isRadial && roundCap ? SausagePath : Sector;
40335
40309
  var sector = new ShapeClass({
40336
40310
  shape: layout,
40337
40311
  z2: 1
@@ -40667,7 +40641,7 @@ function createBackgroundShape(isHorizontalOrRadial, layout, coord) {
40667
40641
  }
40668
40642
  }
40669
40643
  function createBackgroundEl(coord, isHorizontalOrRadial, layout) {
40670
- var ElementClz = coord.type === 'polar' ? Sector$1 : Rect$2;
40644
+ var ElementClz = coord.type === 'polar' ? Sector : Rect$2;
40671
40645
  return new ElementClz({
40672
40646
  shape: createBackgroundShape(isHorizontalOrRadial, layout, coord),
40673
40647
  silent: true,
@@ -41544,7 +41518,7 @@ var PiePiece = /** @class */function (_super) {
41544
41518
  }
41545
41519
  };
41546
41520
  return PiePiece;
41547
- }(Sector$1);
41521
+ }(Sector);
41548
41522
  // Pie view
41549
41523
  var PieView = /** @class */function (_super) {
41550
41524
  __extends(PieView, _super);
@@ -41574,7 +41548,7 @@ var PieView = /** @class */function (_super) {
41574
41548
  }
41575
41549
  // when all data are filtered, show lightgray empty circle
41576
41550
  if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {
41577
- var sector = new Sector$1({
41551
+ var sector = new Sector({
41578
41552
  shape: getBasicPieLayout(seriesModel, api)
41579
41553
  });
41580
41554
  sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());
@@ -44792,7 +44766,7 @@ var RadarView$1 = /** @class */function (_super) {
44792
44766
  var emphasisModel = itemModel.getModel('emphasis');
44793
44767
  var itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();
44794
44768
  symbolGroup.eachChild(function (symbolPath) {
44795
- if (symbolPath instanceof ZRImage$1) {
44769
+ if (symbolPath instanceof ZRImage) {
44796
44770
  var pathStyle = symbolPath.style;
44797
44771
  symbolPath.useStyle(extend({
44798
44772
  // TODO other properties like x, y ?
@@ -45102,7 +45076,7 @@ var RadarView = /** @class */function (_super) {
45102
45076
  }
45103
45077
  if (showSplitArea && i < ticksRadius.length - 1) {
45104
45078
  var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);
45105
- splitAreas[colorIndex].push(new Ring$1({
45079
+ splitAreas[colorIndex].push(new Ring({
45106
45080
  shape: {
45107
45081
  cx: cx,
45108
45082
  cy: cy,
@@ -45978,7 +45952,7 @@ var SVGParser = (function () {
45978
45952
  return line;
45979
45953
  },
45980
45954
  'ellipse': function (xmlNode, parentGroup) {
45981
- var ellipse = new Ellipse$1();
45955
+ var ellipse = new Ellipse();
45982
45956
  inheritStyle(parentGroup, ellipse);
45983
45957
  parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);
45984
45958
  ellipse.setShape({
@@ -46023,7 +45997,7 @@ var SVGParser = (function () {
46023
45997
  return polyline;
46024
45998
  },
46025
45999
  'image': function (xmlNode, parentGroup) {
46026
- var img = new ZRImage$1();
46000
+ var img = new ZRImage();
46027
46001
  inheritStyle(parentGroup, img);
46028
46002
  parseAttributes(xmlNode, img, this._defsUsePending, false, false);
46029
46003
  img.setStyle({
@@ -55593,7 +55567,7 @@ var GaugeView = /** @class */function (_super) {
55593
55567
  var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;
55594
55568
  var axisLineModel = seriesModel.getModel('axisLine');
55595
55569
  var roundCap = axisLineModel.get('roundCap');
55596
- var MainPath = roundCap ? SausagePath : Sector$1;
55570
+ var MainPath = roundCap ? SausagePath : Sector;
55597
55571
  var showAxis = axisLineModel.get('show');
55598
55572
  var lineStyleModel = axisLineModel.getModel('lineStyle');
55599
55573
  var axisLineWidth = lineStyleModel.get('width');
@@ -55825,7 +55799,7 @@ var GaugeView = /** @class */function (_super) {
55825
55799
  }
55826
55800
  function createProgress(idx, endAngle) {
55827
55801
  var roundCap = progressModel.get('roundCap');
55828
- var ProgressPath = roundCap ? SausagePath : Sector$1;
55802
+ var ProgressPath = roundCap ? SausagePath : Sector;
55829
55803
  var isOverlap = progressModel.get('overlap');
55830
55804
  var progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();
55831
55805
  var r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;
@@ -55910,7 +55884,7 @@ var GaugeView = /** @class */function (_super) {
55910
55884
  var pointer = data.getItemGraphicEl(idx);
55911
55885
  var symbolStyle = data.getItemVisual(idx, 'style');
55912
55886
  var visualColor = symbolStyle.fill;
55913
- if (pointer instanceof ZRImage$1) {
55887
+ if (pointer instanceof ZRImage) {
55914
55888
  var pathStyle = pointer.style;
55915
55889
  pointer.useStyle(extend({
55916
55890
  image: pathStyle.image,
@@ -62519,7 +62493,7 @@ var HeatmapView = /** @class */function (_super) {
62519
62493
  inRange: inRangeVisuals.color.getColorMapper(),
62520
62494
  outOfRange: outOfRangeVisuals.color.getColorMapper()
62521
62495
  }, isInRange);
62522
- var img = new ZRImage$1({
62496
+ var img = new ZRImage({
62523
62497
  style: {
62524
62498
  width: width,
62525
62499
  height: height,
@@ -63113,7 +63087,7 @@ function updateCommon(bar, opt, symbolMeta) {
63113
63087
  var blurScope = emphasisModel.get('blurScope');
63114
63088
  var hoverScale = emphasisModel.get('scale');
63115
63089
  eachPath(bar, function (path) {
63116
- if (path instanceof ZRImage$1) {
63090
+ if (path instanceof ZRImage) {
63117
63091
  var pathStyle = path.style;
63118
63092
  path.useStyle(extend({
63119
63093
  // TODO other properties like dx, dy ?
@@ -63849,7 +63823,7 @@ var SunburstPiece = /** @class */function (_super) {
63849
63823
  label.dirtyStyle();
63850
63824
  };
63851
63825
  return SunburstPiece;
63852
- }(Sector$1);
63826
+ }(Sector);
63853
63827
 
63854
63828
  var ROOT_TO_NODE_ACTION = 'sunburstRootToNode';
63855
63829
  var HIGHLIGHT_ACTION = 'sunburstHighlight';
@@ -64991,12 +64965,10 @@ function applyLeaveTransition(el, elOption, animatableModel, onRemove) {
64991
64965
  var config = getElementAnimationConfig('update', el, elOption, animatableModel, 0);
64992
64966
  config.done = function () {
64993
64967
  parent_1.remove(el);
64994
- onRemove && onRemove();
64995
64968
  };
64996
64969
  el.animateTo(leaveToProps, config);
64997
64970
  } else {
64998
64971
  parent_1.remove(el);
64999
- onRemove && onRemove();
65000
64972
  }
65001
64973
  }
65002
64974
  }
@@ -65573,7 +65545,7 @@ function createEl$1(elOption) {
65573
65545
  el = makePath(pathData, null, pathRect, shape.layout || 'center');
65574
65546
  customInnerStore(el).customPathData = pathData;
65575
65547
  } else if (graphicType === 'image') {
65576
- el = new ZRImage$1({});
65548
+ el = new ZRImage({});
65577
65549
  customInnerStore(el).customImagePath = elOption.style.image;
65578
65550
  } else if (graphicType === 'text') {
65579
65551
  el = new ZRText({});
@@ -68082,7 +68054,7 @@ var angelAxisElementsBuilders = {
68082
68054
  silent: true
68083
68055
  });
68084
68056
  } else {
68085
- shape = new Ring$1({
68057
+ shape = new Ring({
68086
68058
  shape: {
68087
68059
  cx: polar.cx,
68088
68060
  cy: polar.cy,
@@ -68241,7 +68213,7 @@ var angelAxisElementsBuilders = {
68241
68213
  var coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;
68242
68214
  var colorIndex = lineCount++ % areaColors.length;
68243
68215
  splitAreas[colorIndex] = splitAreas[colorIndex] || [];
68244
- splitAreas[colorIndex].push(new Sector$1({
68216
+ splitAreas[colorIndex].push(new Sector({
68245
68217
  shape: {
68246
68218
  cx: polar.cx,
68247
68219
  cy: polar.cy,
@@ -68385,7 +68357,7 @@ var axisElementBuilders$1 = {
68385
68357
  for (var i = 1; i < ticksCoords.length; i++) {
68386
68358
  var colorIndex = lineCount++ % areaColors.length;
68387
68359
  splitAreas[colorIndex] = splitAreas[colorIndex] || [];
68388
- splitAreas[colorIndex].push(new Sector$1({
68360
+ splitAreas[colorIndex].push(new Sector({
68389
68361
  shape: {
68390
68362
  cx: polar.cx,
68391
68363
  cy: polar.cy,
@@ -70178,7 +70150,7 @@ var nonShapeGraphicElements = {
70178
70150
  compoundPath: null,
70179
70151
  // Supported in graphic component.
70180
70152
  group: Group$3,
70181
- image: ZRImage$1,
70153
+ image: ZRImage,
70182
70154
  text: ZRText
70183
70155
  };
70184
70156
  var inner$7 = makeInner();
@@ -73237,7 +73209,7 @@ function toCSSVendorPrefix(styleVendor, styleProp) {
73237
73209
  }
73238
73210
  function getComputedStyle(el, style) {
73239
73211
  var stl = el.currentStyle || document.defaultView && document.defaultView.getComputedStyle(el);
73240
- return stl ? style ? stl[style] : stl : null;
73212
+ return stl ? stl[style] : null;
73241
73213
  }
73242
73214
 
73243
73215
  /* global document, window */
@@ -74678,14 +74650,12 @@ function applyVisual(stateList, visualMappings, data, getValueState, scope, dime
74678
74650
  function setVisual(key, value) {
74679
74651
  setItemVisualFromData(data, dataIndex, key, value);
74680
74652
  }
74681
- if (dimension == null) {
74653
+ {
74682
74654
  data.each(eachItem);
74683
- } else {
74684
- data.each([dimension], eachItem);
74685
74655
  }
74686
74656
  function eachItem(valueOrIndex, index) {
74687
- dataIndex = dimension == null ? valueOrIndex // First argument is index
74688
- : index;
74657
+ dataIndex = valueOrIndex // First argument is index
74658
+ ;
74689
74659
  var rawDataItem = data.getRawDataItem(dataIndex);
74690
74660
  // Consider performance
74691
74661
  // @ts-ignore
@@ -81212,7 +81182,7 @@ var ContinuousView = /** @class */function (_super) {
81212
81182
  x: itemSize[0] / 2
81213
81183
  });
81214
81184
  var indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();
81215
- if (indicator instanceof ZRImage$1) {
81185
+ if (indicator instanceof ZRImage) {
81216
81186
  var pathStyle = indicator.style;
81217
81187
  indicator.useStyle(extend({
81218
81188
  // TODO other properties like x, y ?
@@ -83445,14 +83415,14 @@ function split(path, count) {
83445
83415
  break;
83446
83416
  case 'sector':
83447
83417
  divideSector(shape, count, outShapes);
83448
- OutShapeCtor = Sector$1;
83418
+ OutShapeCtor = Sector;
83449
83419
  break;
83450
83420
  case 'circle':
83451
83421
  divideSector({
83452
83422
  r0: 0, r: shape.r, startAngle: 0, endAngle: Math.PI * 2,
83453
83423
  cx: shape.cx, cy: shape.cy
83454
83424
  }, count, outShapes);
83455
- OutShapeCtor = Sector$1;
83425
+ OutShapeCtor = Sector;
83456
83426
  break;
83457
83427
  default:
83458
83428
  var m = path.getComputedTransform();
@@ -83685,7 +83655,7 @@ function findBestMorphingRotation(fromArr, toArr, searchAngleIteration, searchAn
83685
83655
  }
83686
83656
  newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];
83687
83657
  newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];
83688
- if (searchAngleIteration > 0) {
83658
+ {
83689
83659
  var step = searchAngleRange / searchAngleIteration;
83690
83660
  for (var angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {
83691
83661
  var sa = Math.sin(angle);
@@ -83713,12 +83683,6 @@ function findBestMorphingRotation(fromArr, toArr, searchAngleIteration, searchAn
83713
83683
  }
83714
83684
  }
83715
83685
  }
83716
- else {
83717
- for (var i_1 = 0; i_1 < len; i_1 += 2) {
83718
- newToSubpathBezier[i_1] = toSubpathBezier[i_1] - toCp[0];
83719
- newToSubpathBezier[i_1 + 1] = toSubpathBezier[i_1 + 1] - toCp[1];
83720
- }
83721
- }
83722
83686
  result.push({
83723
83687
  from: newFromSubpathBezier,
83724
83688
  to: newToSubpathBezier,
@@ -86805,8 +86769,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86805
86769
  watch(
86806
86770
  () => $echarts.value,
86807
86771
  (newValue, oldValue) => {
86808
- if (oldValue === null && newValue && !myChart.value)
86809
- init(newValue);
86772
+ if (oldValue === null && newValue && !myChart.value) init(newValue);
86810
86773
  },
86811
86774
  {
86812
86775
  deep: true,
@@ -86830,8 +86793,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86830
86793
  onMounted(() => {
86831
86794
  });
86832
86795
  const init = (dom) => {
86833
- if (isInit.value)
86834
- return;
86796
+ if (isInit.value) return;
86835
86797
  myChart.value = markRaw(init$1(dom));
86836
86798
  let erd = elementResizeDetectorMaker();
86837
86799
  erd.listenTo(dom, () => {
@@ -86843,8 +86805,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86843
86805
  setOption(chartOptions.value);
86844
86806
  };
86845
86807
  const checkInit = async () => {
86846
- if (isInit.value)
86847
- return;
86808
+ if (isInit.value) return;
86848
86809
  await new Promise((res) => watch(() => isInit.value, res));
86849
86810
  };
86850
86811
  const setOption = (options) => {
@@ -86871,20 +86832,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86871
86832
  init,
86872
86833
  setOption
86873
86834
  });
86874
- return (_ctx, _cache) => {
86875
- return openBlock(), createElementBlock(
86876
- "div",
86877
- {
86878
- class: normalizeClass(["das-ui-echarts", customClassName.value]),
86879
- ref_key: "$echarts",
86880
- ref: $echarts,
86881
- style: normalizeStyle$1(customStyle.value)
86882
- },
86883
- "echarts",
86884
- 6
86885
- /* CLASS, STYLE */
86886
- );
86887
- };
86835
+ const __returned__ = { $echarts, get myChart() {
86836
+ return myChart;
86837
+ }, set myChart(v) {
86838
+ myChart = v;
86839
+ }, props, customStyle, customClassName, tempOptions, tempColorList, notMerge, replaceMerge, lazyUpdate, silent, get chartOptions() {
86840
+ return chartOptions;
86841
+ }, set chartOptions(v) {
86842
+ chartOptions = v;
86843
+ }, isInit, init, checkInit, setOption };
86844
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
86845
+ return __returned__;
86888
86846
  }
86889
86847
  });
86890
86848
 
@@ -86896,7 +86854,20 @@ var _export_sfc = (sfc, props) => {
86896
86854
  return target;
86897
86855
  };
86898
86856
 
86899
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0f35f47b"], ["__file", "E:\\company-code\\v6r3\\framework-3\\packages\\das-ui\\packages\\business-components\\echarts\\src\\Index.vue"]]);
86857
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
86858
+ return openBlock(), createElementBlock(
86859
+ "div",
86860
+ {
86861
+ class: normalizeClass(["das-ui-echarts", $setup.customClassName]),
86862
+ ref: "$echarts",
86863
+ style: normalizeStyle$1($setup.customStyle)
86864
+ },
86865
+ "echarts",
86866
+ 6
86867
+ /* CLASS, STYLE */
86868
+ );
86869
+ }
86870
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0f35f47b"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/echarts/src/Index.vue"]]);
86900
86871
 
86901
86872
  const DasEcharts = withInstall(Button);
86902
86873
  const DasEchartsRef = () => ref(null);