@partex/one-core 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/one-core.js CHANGED
@@ -6346,12 +6346,12 @@ var va = function() {
6346
6346
  break;
6347
6347
  }
6348
6348
  case ke.A:
6349
- var q = n[S++], $ = n[S++], Z = n[S++], ne = n[S++], ae = n[S++], _e = n[S++], me = n[S++], He = !n[S++], ye = Z > ne ? Z : ne, Me = Rr(Z - ne) > 1e-3, Te = ae + _e, te = !1;
6349
+ var q = n[S++], $ = n[S++], Z = n[S++], ne = n[S++], ae = n[S++], ye = n[S++], me = n[S++], He = !n[S++], _e = Z > ne ? Z : ne, Me = Rr(Z - ne) > 1e-3, Te = ae + ye, te = !1;
6350
6350
  if (h) {
6351
6351
  var x = v[m++];
6352
- p + x > y && (Te = ae + _e * (y - p) / x, te = !0), p += x;
6352
+ p + x > y && (Te = ae + ye * (y - p) / x, te = !0), p += x;
6353
6353
  }
6354
- if (Me && t.ellipse ? t.ellipse(q, $, Z, ne, me, ae, Te, He) : t.arc(q, $, ye, ae, Te, He), te)
6354
+ if (Me && t.ellipse ? t.ellipse(q, $, Z, ne, me, ae, Te, He) : t.arc(q, $, _e, ae, Te, He), te)
6355
6355
  break e;
6356
6356
  b && (s = Hn(ae) * Z + q, l = Un(ae) * ne + $), u = Hn(Te) * Z + q, f = Un(Te) * ne + $;
6357
6357
  break;
@@ -7754,8 +7754,8 @@ function MP(e, t) {
7754
7754
  if (_ = br($, m), w = br($, y), C = br($, g), S = br($, p), T = D = _o(_, w), A = b = _o(C, S), (D > ar || b > ar) && (x = n * Ba(u), M = n * qn(u), I = a * Ba(l), N = a * qn(l), h < sb)) {
7755
7755
  var Z = xP(L, O, I, N, x, M, F, B);
7756
7756
  if (Z) {
7757
- var ne = L - Z[0], ae = O - Z[1], _e = x - Z[0], me = M - Z[1], He = 1 / qn(DP((ne * _e + ae * me) / (No(ne * ne + ae * ae) * No(_e * _e + me * me))) / 2), ye = No(Z[0] * Z[0] + Z[1] * Z[1]);
7758
- T = br(D, (n - ye) / (He + 1)), A = br(b, (a - ye) / (He - 1));
7757
+ var ne = L - Z[0], ae = O - Z[1], ye = x - Z[0], me = M - Z[1], He = 1 / qn(DP((ne * ye + ae * me) / (No(ne * ne + ae * ae) * No(ye * ye + me * me))) / 2), _e = No(Z[0] * Z[0] + Z[1] * Z[1]);
7758
+ T = br(D, (n - _e) / (He + 1)), A = br(b, (a - _e) / (He - 1));
7759
7759
  }
7760
7760
  }
7761
7761
  }
@@ -13498,8 +13498,8 @@ function Ql(e, t) {
13498
13498
  if ($ <= 0)
13499
13499
  break;
13500
13500
  if (G % 2 === 0) {
13501
- var Z = (1 - o.symbolSize) * 0.5, ne = B + p[O][G] * Z, ae = I + m[N] * Z, _e = p[O][G] * o.symbolSize, me = m[N] * o.symbolSize, He = q / 2 % y[F].length;
13502
- ye(ne, ae, _e, me, y[F][He]);
13501
+ var Z = (1 - o.symbolSize) * 0.5, ne = B + p[O][G] * Z, ae = I + m[N] * Z, ye = p[O][G] * o.symbolSize, me = m[N] * o.symbolSize, He = q / 2 % y[F].length;
13502
+ _e(ne, ae, ye, me, y[F][He]);
13503
13503
  }
13504
13504
  B += p[O][G], ++q, ++G, G === p[O].length && (G = 0);
13505
13505
  }
@@ -13507,7 +13507,7 @@ function Ql(e, t) {
13507
13507
  }
13508
13508
  I += m[N], ++L, ++N, N === m.length && (N = 0);
13509
13509
  }
13510
- function ye(Me, Te, te, se, pt) {
13510
+ function _e(Me, Te, te, se, pt) {
13511
13511
  var je = a ? 1 : r, rr = Kr(pt, Me * je, Te * je, te * je, se * je, o.color, o.symbolKeepAspect);
13512
13512
  if (a) {
13513
13513
  var Vt = n.painter.renderOneToVNode(rr);
@@ -17342,8 +17342,8 @@ function eO(e, t, r, n, a, i, o, s) {
17342
17342
  }
17343
17343
  C && (h.push(w), v.push(v.length));
17344
17344
  }
17345
- v.sort(function(_e, me) {
17346
- return g[_e] - g[me];
17345
+ v.sort(function(ye, me) {
17346
+ return g[ye] - g[me];
17347
17347
  });
17348
17348
  for (var O = u.length, F = zr(O), B = zr(O), G = zr(O), q = zr(O), $ = [], _ = 0; _ < v.length; _++) {
17349
17349
  var Z = v[_], ne = _ * 2, ae = Z * 2;
@@ -17872,12 +17872,12 @@ var dO = (
17872
17872
  connectNulls: b
17873
17873
  }), Bl(p, r, "areaStyle"), xe(p).seriesIndex = r.seriesIndex, pa(p, F, B, G);
17874
17874
  }
17875
- var _e = function(me) {
17875
+ var ye = function(me) {
17876
17876
  i._changePolyState(me);
17877
17877
  };
17878
17878
  l.eachItemGraphicEl(function(me) {
17879
- me && (me.onHoverStateChange = _e);
17880
- }), this._polyline.onHoverStateChange = _e, this._data = l, this._coordSys = o, this._stackedOnPoints = S, this._points = c, this._step = x, this._valueOrigin = w, r.get("triggerLineEvent") && (this.packEventData(r, g), p && this.packEventData(r, p));
17879
+ me && (me.onHoverStateChange = ye);
17880
+ }), this._polyline.onHoverStateChange = ye, this._data = l, this._coordSys = o, this._stackedOnPoints = S, this._points = c, this._step = x, this._valueOrigin = w, r.get("triggerLineEvent") && (this.packEventData(r, g), p && this.packEventData(r, p));
17881
17881
  }, t.prototype.packEventData = function(r, n) {
17882
17882
  xe(n).eventData = {
17883
17883
  componentType: "series",
@@ -19104,18 +19104,18 @@ function FO(e) {
19104
19104
  return;
19105
19105
  }
19106
19106
  if (v(T)) {
19107
- var $ = (b.startAngle + b.endAngle) / 2, Z = Math.cos($), ne = Math.sin($), ae, _e, me, He;
19107
+ var $ = (b.startAngle + b.endAngle) / 2, Z = Math.cos($), ne = Math.sin($), ae, ye, me, He;
19108
19108
  n = b.cx, a = b.cy;
19109
- var ye = I === "inside" || I === "inner";
19109
+ var _e = I === "inside" || I === "inner";
19110
19110
  if (I === "center")
19111
- ae = b.cx, _e = b.cy, He = "center";
19111
+ ae = b.cx, ye = b.cy, He = "center";
19112
19112
  else {
19113
- var Me = (ye ? (b.r + b.r0) / 2 * Z : b.r * Z) + n, Te = (ye ? (b.r + b.r0) / 2 * ne : b.r * ne) + a;
19114
- if (ae = Me + Z * 3, _e = Te + ne * 3, !ye) {
19113
+ var Me = (_e ? (b.r + b.r0) / 2 * Z : b.r * Z) + n, Te = (_e ? (b.r + b.r0) / 2 * ne : b.r * ne) + a;
19114
+ if (ae = Me + Z * 3, ye = Te + ne * 3, !_e) {
19115
19115
  var te = Me + Z * (G + l - b.r), se = Te + ne * (G + l - b.r), pt = te + (Z < 0 ? -1 : 1) * q, je = se;
19116
- L === "edge" ? ae = Z < 0 ? f + O : f + u - O : ae = pt + (Z < 0 ? -N : N), _e = je, me = [[Me, Te], [te, se], [pt, je]];
19116
+ L === "edge" ? ae = Z < 0 ? f + O : f + u - O : ae = pt + (Z < 0 ? -N : N), ye = je, me = [[Me, Te], [te, se], [pt, je]];
19117
19117
  }
19118
- He = ye ? "center" : L === "edge" ? Z > 0 ? "right" : "left" : Z > 0 ? "left" : "right";
19118
+ He = _e ? "center" : L === "edge" ? Z > 0 ? "right" : "left" : Z > 0 ? "left" : "right";
19119
19119
  }
19120
19120
  var rr = Math.PI, Vt = 0, en = M.get("rotate");
19121
19121
  if (Be(en))
@@ -19131,9 +19131,9 @@ function FO(e) {
19131
19131
  var ds = ne > 0;
19132
19132
  ds && (Lr = rr + Lr), Vt = Lr - rr;
19133
19133
  }
19134
- if (i = !!Vt, T.x = ae, T.y = _e, T.rotation = Vt, T.setStyle({
19134
+ if (i = !!Vt, T.x = ae, T.y = ye, T.rotation = Vt, T.setStyle({
19135
19135
  verticalAlign: "middle"
19136
- }), ye) {
19136
+ }), _e) {
19137
19137
  T.setStyle({
19138
19138
  align: He
19139
19139
  });
@@ -19164,7 +19164,7 @@ function FO(e) {
19164
19164
  });
19165
19165
  }
19166
19166
  D.setTextConfig({
19167
- inside: ye
19167
+ inside: _e
19168
19168
  });
19169
19169
  }
19170
19170
  }), !i && e.get("avoidLabelOverlap") && VO(r, n, a, l, u, d, f, c);
@@ -31761,7 +31761,7 @@ function bW(e, t, r, n, a, i) {
31761
31761
  }, 1024)) : re("", !0),
31762
31762
  b.type === "group" ? (V(), K(m, { key: 1 }, {
31763
31763
  default: k(() => {
31764
- var x, M, I, N, L, O, F, B, G, q, $, Z, ne, ae, _e, me, He, ye, Me, Te, te, se, pt, je, rr, Vt, en, hs, Lr, ds, tn, zi, ka;
31764
+ var x, M, I, N, L, O, F, B, G, q, $, Z, ne, ae, ye, me, He, _e, Me, Te, te, se, pt, je, rr, Vt, en, hs, Lr, ds, tn, zi, ka;
31765
31765
  return [
31766
31766
  E(f, {
31767
31767
  value: e.searchData[T],
@@ -31815,7 +31815,7 @@ function bW(e, t, r, n, a, i) {
31815
31815
  placeholder: typeof ((G = b.inputTemp) == null ? void 0 : G.placeholder) == "string" ? (q = b.inputTemp) == null ? void 0 : q.placeholder : (($ = b.inputTemp) == null ? void 0 : $.placeholder) && ((Z = b.inputTemp) == null ? void 0 : Z.placeholder()),
31816
31816
  min: (ne = b.inputTemp) == null ? void 0 : ne.min,
31817
31817
  max: (ae = b.inputTemp) == null ? void 0 : ae.max,
31818
- step: ((_e = b.inputTemp) == null ? void 0 : _e.step) || 1,
31818
+ step: ((ye = b.inputTemp) == null ? void 0 : ye.step) || 1,
31819
31819
  "show-button": ((me = b.inputTemp) == null ? void 0 : me.showButton) || !0,
31820
31820
  "update-value-on-input": !1,
31821
31821
  validator: (He = b.inputTemp) == null ? void 0 : He.validator,
@@ -31830,7 +31830,7 @@ function bW(e, t, r, n, a, i) {
31830
31830
  clearable: b.inputTemp.clearable ?? !0,
31831
31831
  style: { flex: "1" }
31832
31832
  }, fi({ _: 2 }, [
31833
- (ye = b.inputTemp) != null && ye.suffix ? {
31833
+ (_e = b.inputTemp) != null && _e.suffix ? {
31834
31834
  name: "suffix",
31835
31835
  fn: k(() => {
31836
31836
  var Le;
@@ -32457,7 +32457,7 @@ const $W = /* @__PURE__ */ fe(LW, [["render", RW]]), BW = ze({
32457
32457
  }, T = ($) => {
32458
32458
  $ ? (p.value.query.columnKey = $.columnKey, p.value.query.order = $.order) : (p.value.query.columnKey = null, p.value.query.order = null), S();
32459
32459
  }, A = ($) => {
32460
- $.pin = !$.pin, $.pin ? $.fixed = "left" : $.fixed = $.fixTemp ?? void 0, q();
32460
+ $.pin = !$.pin, $.pin ? $.fixed = "left" : $.fixed = void 0, q();
32461
32461
  }, x = ($) => {
32462
32462
  $.show = !$.show, q();
32463
32463
  }, M = () => {
@@ -32487,23 +32487,23 @@ const $W = /* @__PURE__ */ fe(LW, [["render", RW]]), BW = ze({
32487
32487
  });
32488
32488
  }, L = ($) => {
32489
32489
  const Z = ct(e.columns), ne = [], ae = /* @__PURE__ */ new Set();
32490
- return $ || ($ = e.filters), Z.forEach((_e) => {
32491
- if (!ae.has(_e.key)) {
32492
- const me = $ == null ? void 0 : $.find((ye) => ye.key === _e.key), He = $ == null ? void 0 : $.findIndex((ye) => ye.key === _e.key);
32493
- me ? (_e.show = me.show, _e.hide = me.hide, _e.pin = me.pin, _e.fixed = me.fixed, ne[He] = _e, ae.add(_e.key)) : ne.push(_e);
32490
+ return $ || ($ = e.filters), Z.forEach((ye) => {
32491
+ if (!ae.has(ye.key)) {
32492
+ const me = $ == null ? void 0 : $.find((_e) => _e.key === ye.key), He = $ == null ? void 0 : $.findIndex((_e) => _e.key === ye.key);
32493
+ me ? (ye.show = me.show, ye.hide = me.hide, ye.pin = me.pin, ye.fixed = me.fixed, ne[He] = ye, ae.add(ye.key)) : ne.push(ye);
32494
32494
  }
32495
32495
  }), ae.clear(), ne;
32496
32496
  }, O = ($) => new Promise(async (Z) => {
32497
- var _e, me, He, ye, Me, Te, te;
32497
+ var ye, me, He, _e, Me, Te, te;
32498
32498
  const ne = {}, ae = {};
32499
32499
  if ($.search.title || ($.search.title = $.title), $.search.defaultValue !== void 0)
32500
32500
  ae[$.search.key || $.key] = $.search.defaultValue;
32501
32501
  else {
32502
- if ($.search.type === "input" && (ae[$.search.key || $.key] = ""), $.search.type === "number" && (ae[$.search.key || $.key] = null), $.search.type === "dropdown" && (ae[$.search.key || $.key] = null), ($.search.type === "cascader" || $.search.type === "treeSelect") && ((_e = $.search) != null && _e.multiple ? ae[$.search.key || $.key] = [] : ae[$.search.key || $.key] = null), $.search.type === "datePicker") {
32502
+ if ($.search.type === "input" && (ae[$.search.key || $.key] = ""), $.search.type === "number" && (ae[$.search.key || $.key] = null), $.search.type === "dropdown" && (ae[$.search.key || $.key] = null), ($.search.type === "cascader" || $.search.type === "treeSelect") && ((ye = $.search) != null && ye.multiple ? ae[$.search.key || $.key] = [] : ae[$.search.key || $.key] = null), $.search.type === "datePicker") {
32503
32503
  let se = 0;
32504
32504
  ($.search.dateType.indexOf("date") > -1 || $.search.dateType.indexOf("quarter") > -1 || $.search.dateType.indexOf("week") > -1) && (se = ho()), $.search.dateType.indexOf("month") > -1 && (se = ho(void 0, void 0, 1)), $.search.dateType.indexOf("year") > -1 && (se = ho(void 0, 1, 1)), $.search.dateType.indexOf("range") > -1 && (se = [se, se]), ae[((me = $.search) == null ? void 0 : me.key) || $.key] = se;
32505
32505
  }
32506
- $.search.type === "select" && ((He = $.search) != null && He.multiple ? $.search.fallbackOption ? ae[((ye = $.search) == null ? void 0 : ye.key) || $.key] = [""] : ae[((Me = $.search) == null ? void 0 : Me.key) || $.key] = [] : ae[((Te = $.search) == null ? void 0 : Te.key) || $.key] = null);
32506
+ $.search.type === "select" && ((He = $.search) != null && He.multiple ? $.search.fallbackOption ? ae[((_e = $.search) == null ? void 0 : _e.key) || $.key] = [""] : ae[((Me = $.search) == null ? void 0 : Me.key) || $.key] = [] : ae[((Te = $.search) == null ? void 0 : Te.key) || $.key] = null);
32507
32507
  }
32508
32508
  $.search.type === "select" && typeof $.search.options == "function" && await $.search.options().then((se) => {
32509
32509
  $.search.options = se;
@@ -32513,27 +32513,26 @@ const $W = /* @__PURE__ */ fe(LW, [["render", RW]]), BW = ze({
32513
32513
  });
32514
32514
  }), F = async ($ = !1, Z) => {
32515
32515
  const ne = [], ae = [];
32516
- let _e = {}, me = {};
32516
+ let ye = {}, me = {};
32517
32517
  const He = L(Z);
32518
- for await (const ye of He) {
32519
- if (ye.search) {
32520
- const { value: Te, data: te } = await O(ct(ye));
32521
- _e = { ..._e, ...Te }, me = { ...me, ...te };
32518
+ for await (const _e of He) {
32519
+ if (_e.search) {
32520
+ const { value: Te, data: te } = await O(ct(_e));
32521
+ ye = { ...ye, ...Te }, me = { ...me, ...te };
32522
32522
  }
32523
- if (delete ye.search, ye.render && typeof ye.render == "string") {
32524
- const Te = ye.render, te = new Function("rowData", "rowIndex", "h", Te);
32525
- ye.render = (se, pt) => te(se, pt, be);
32523
+ if (delete _e.search, _e.render && typeof _e.render == "string") {
32524
+ const Te = _e.render, te = new Function("rowData", "rowIndex", "h", Te);
32525
+ _e.render = (se, pt) => te(se, pt, be);
32526
32526
  }
32527
- const Me = ct(ye);
32528
- ne.push(Me), m.value = ct(_e), ae.push({
32527
+ const Me = ct(_e);
32528
+ ne.push(Me), m.value = ct(ye), ae.push({
32529
32529
  ...Me,
32530
- show: (ye == null ? void 0 : ye.show) ?? !0,
32531
- pin: !!ye.fixed,
32532
- fixTemp: ye.fixed
32530
+ show: (_e == null ? void 0 : _e.show) ?? !0,
32531
+ pin: !!_e.fixed
32533
32532
  });
32534
32533
  }
32535
32534
  if (e.actions && e.actions.length > 0) {
32536
- const ye = ct(e.actions), Me = {
32535
+ const _e = ct(e.actions), Me = {
32537
32536
  title: () => o("Common.action"),
32538
32537
  key: "action",
32539
32538
  align: "center",
@@ -32544,15 +32543,15 @@ const $W = /* @__PURE__ */ fe(LW, [["render", RW]]), BW = ze({
32544
32543
  show: !0,
32545
32544
  hide: !0,
32546
32545
  render(Te, te) {
32547
- return Sa(ye, Te, te);
32546
+ return Sa(_e, Te, te);
32548
32547
  }
32549
32548
  };
32550
32549
  ne.push(Me), ae.push(Me);
32551
32550
  }
32552
32551
  if ($ && e.cache) {
32553
- const { cursor: ye, routerId: Me } = s.query;
32554
- if (ye && Me) {
32555
- const Te = Sl(Me), te = Sl(ye);
32552
+ const { cursor: _e, routerId: Me } = s.query;
32553
+ if (_e && Me) {
32554
+ const Te = Sl(Me), te = Sl(_e);
32556
32555
  Te === C && (p.value = {
32557
32556
  ...p.value,
32558
32557
  ...te
@@ -32560,12 +32559,12 @@ const $W = /* @__PURE__ */ fe(LW, [["render", RW]]), BW = ze({
32560
32559
  } else
32561
32560
  p.value = {
32562
32561
  ...p.value,
32563
- ..._e
32562
+ ...ye
32564
32563
  };
32565
32564
  } else
32566
32565
  p.value = {
32567
32566
  ...p.value,
32568
- ..._e
32567
+ ...ye
32569
32568
  };
32570
32569
  h.value = ne, y.value = me, v.value = ae, i.value && i.value.setValues(ct(p.value)), i.value && i.value.setData(ct(y.value));
32571
32570
  }, B = ($) => typeof $ == "number" ? `${$}px` : $, G = () => {
@@ -32975,7 +32974,7 @@ function gY() {
32975
32974
  dp = 3840, vp = 2160, window.removeEventListener("resize", e);
32976
32975
  };
32977
32976
  }
32978
- const mY = (e) => !!(H.kind === -1 || H.kind === 99 || H.iot_menu_authorization.includes(e)), yY = (e) => H.platform_tdm ? H.kind === -1 || H.kind === 99 || e === "home" ? !0 : H.tdm_menu_authorization.includes(e) : !1, _Y = (e) => H.platform_qms ? H.kind === -1 || H.kind === 99 || e === "home" ? !0 : H.qms_menu_authorization.includes(e) : !1, bY = (e) => H.platform_twin ? (H.kind === -1 || H.kind === 99 || e === "home", !0) : !1, wY = (e) => !!(H.kind === -1 || H.kind === 99 || H.maintain_menu_authorization.includes(e)), SY = (e) => !!(H.kind === -1 || H.kind === 99 || H.order_menu_authorization.includes(e)), UW = "2.1.4";
32977
+ const mY = (e) => !!(H.kind === -1 || H.kind === 99 || H.iot_menu_authorization.includes(e)), yY = (e) => H.platform_tdm ? H.kind === -1 || H.kind === 99 || e === "home" ? !0 : H.tdm_menu_authorization.includes(e) : !1, _Y = (e) => H.platform_qms ? H.kind === -1 || H.kind === 99 || e === "home" ? !0 : H.qms_menu_authorization.includes(e) : !1, bY = (e) => H.platform_twin ? (H.kind === -1 || H.kind === 99 || e === "home", !0) : !1, wY = (e) => !!(H.kind === -1 || H.kind === 99 || H.maintain_menu_authorization.includes(e)), SY = (e) => !!(H.kind === -1 || H.kind === 99 || H.order_menu_authorization.includes(e)), UW = "2.1.5";
32979
32978
  let Fo = "";
32980
32979
  const Ne = navigator.userAgent.toLocaleUpperCase(), WW = () => {
32981
32980
  const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, r = /WINDOWS NT 7.[\d]+/, n = /WINDOWS NT 10.[\d]+/, a = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, l = /MAC/;