@antdv-next/x 1.1.3-beta.5 → 1.2.1-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 (140) hide show
  1. package/dist/actions/ActionsFeedback.js +1 -1
  2. package/dist/actions/ActionsItem.js +1 -1
  3. package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
  4. package/dist/code-highlighter/CodeHighlighter.js +2 -1
  5. package/dist/code-highlighter/shiki.js +1 -1
  6. package/dist/code-highlighter/style/index.d.ts +40 -0
  7. package/dist/code-highlighter/style/index.js +25 -13
  8. package/dist/folder/Folder.js +2 -1
  9. package/dist/index.umd.js +91 -51
  10. package/dist/mermaid/Mermaid.js +1 -1
  11. package/dist/package.js +1 -1
  12. package/dist/sender/components/SlotTextArea.js +5 -4
  13. package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
  14. package/dist/sender/hooks/use-speech.js +2 -1
  15. package/dist/suggestion/style/index.js +5 -1
  16. package/dist/suggestion/useActive.js +0 -2
  17. package/dist/theme/themes/seed.js +3 -0
  18. package/dist/theme/util/alias.js +5 -5
  19. package/dist/think/Think.d.ts +9 -0
  20. package/dist/think/Think.js +18 -9
  21. package/dist/think/interface.d.ts +6 -0
  22. package/dist/thought-chain/Node.js +11 -5
  23. package/dist/thought-chain/ThoughtChain.js +2 -2
  24. package/dist/thought-chain/interface.d.ts +6 -0
  25. package/dist/x-provider/index.js +3 -2
  26. package/es/Serializer-Sc9uEpQk.js +262 -0
  27. package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-CrbncDqR.js} +2 -2
  28. package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-B-qU_Imh.js} +9 -9
  29. package/es/antdv-next-x.esm.js +2910 -2885
  30. package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
  31. package/es/architecture-PBZL5I3N-BRGGaMu3.js +3 -0
  32. package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-OvuktNfv.js} +100 -110
  33. package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-CS-kh74L.js} +42 -43
  34. package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-BZGIF4Dk.js} +17 -25
  35. package/es/{channel-DFgF_2F7.js → channel-DrSSYyxp.js} +1 -1
  36. package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-Rm8-te6i.js} +1 -1
  37. package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-Tre45n-8.js} +1 -1
  38. package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-scch4dXY.js} +10 -10
  39. package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-JmekSPZP.js} +1 -1
  40. package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-BEzc6NZw.js} +31 -71
  41. package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-_l_UVbaa.js} +3 -3
  42. package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-BUWM8pJz.js} +2 -2
  43. package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-BSgb_E0Q.js} +11 -11
  44. package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D602L8pU.js} +1 -1
  45. package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-BPQV0i93.js} +41 -45
  46. package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-BMqc3iYa.js} +15 -14
  47. package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-DcYrzB1X.js} +2 -2
  48. package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-TuGY6X1n.js} +28 -24
  49. package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-CKbD02cl.js} +1 -1
  50. package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-B31ErTFp.js} +19 -17
  51. package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-DYKLwCEy.js} +1888 -1785
  52. package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-CRiKEIiS.js} +5 -5
  53. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +29 -0
  54. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +29 -0
  55. package/es/{clone-r3YukIBB.js → clone-yzFtXY5G.js} +1 -1
  56. package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-BM90wTBk.js} +43 -48
  57. package/es/css-CRY9BUqw.js +2 -0
  58. package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-B_-hKv4-.js} +276 -321
  59. package/es/{dagre-5aGJFKmT.js → dagre-DCYVBij1.js} +25 -27
  60. package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-Ced70SgJ.js} +21 -17
  61. package/es/{defaultLocale-bckJcYh1.js → defaultLocale-yzzuPw6P.js} +1 -4
  62. package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-xZCloH_i.js} +72 -70
  63. package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BTmFZhvz.js} +21 -21
  64. package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-DX_3B0LB.js} +16 -16
  65. package/es/{dist-BX_roQzC.js → dist-h4ggShny.js} +1 -1
  66. package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-MJ_HVY-7.js} +22 -22
  67. package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-CQIRy1sx.js} +35 -42
  68. package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-Dw9bjWjx.js} +39 -52
  69. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +3 -0
  70. package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js} +21 -21
  71. package/es/{graphlib-dRkI1OCL.js → graphlib-BMvIh7N7.js} +4 -4
  72. package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
  73. package/es/info-3K5VOQVL-0F-ZLEMx.js +3 -0
  74. package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-CS64-uil.js} +9 -9
  75. package/es/{init-B75p2clj.js → init-sjaVZO3f.js} +1 -3
  76. package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
  77. package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-C_Hw5UnV.js} +13 -13
  78. package/es/javascript--0qAxhnA.js +2 -0
  79. package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-CFFyM4Ar.js} +16 -16
  80. package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-B_R-mA10.js} +27 -28
  81. package/es/{katex-DCMiIo1z.js → katex-C-qdUNlg.js} +78 -68
  82. package/es/{line-Cu9NTacD.js → line-D05MESIS.js} +3 -3
  83. package/es/{linear-C0rAYYmp.js → linear-B8tPH2Pw.js} +4 -6
  84. package/es/mermaid-parser.core-C_69nk7j.js +259 -0
  85. package/es/mermaid.core-BVGVwWcu.js +1914 -0
  86. package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-qgGUYYe3.js} +26 -28
  87. package/es/{ordinal-F3U6aXtP.js → ordinal-CNQzPcrr.js} +1 -1
  88. package/es/packet-RMMSAZCW-CeqtQQ_e.js +3 -0
  89. package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
  90. package/es/pie-UPGHQEXC-BI60FhK4.js +3 -0
  91. package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-B8-AVOmP.js} +47 -47
  92. package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-C2Z0CN4Z.js} +10 -10
  93. package/es/radar-KQ55EAFF-CRwOOFw0.js +3 -0
  94. package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-Cdj7PwWC.js} +19 -19
  95. package/es/{chunk-WQLz0Won.js → rolldown-runtime-CEY2VRuR.js} +10 -3
  96. package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
  97. package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BNmU-dM1.js} +10 -10
  98. package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-pj0uPf22.js} +114 -126
  99. package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-7QG17np_.js} +978 -983
  100. package/es/{src-CUQ6oOYk.js → src-Dynw_Lub.js} +26 -26
  101. package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-BgCfMnGb.js} +18 -18
  102. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +27 -0
  103. package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-Bj5QKnBI.js} +10 -10
  104. package/es/treemap-KZPCXAKY-BlOAFUbR.js +3 -0
  105. package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-lpWcIvN6.js} +16 -16
  106. package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-De1M-7Yz.js} +26 -30
  107. package/package.json +1 -1
  108. package/es/Serializer-D1JYN1kI.js +0 -262
  109. package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
  110. package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
  111. package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
  112. package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
  113. package/es/chunk-GLR3WWYH-DiXcKb5Y.js +0 -41
  114. package/es/chunk-HHEYEP7N-Cxc7E4dX.js +0 -9
  115. package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
  116. package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
  117. package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
  118. package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
  119. package/es/chunk-XPW4576I-B0KVSHwE.js +0 -1146
  120. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
  121. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
  122. package/es/css-Bi5OTYo2.js +0 -2
  123. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
  124. package/es/info-3K5VOQVL-COqdvM99.js +0 -3
  125. package/es/isEmpty-CmA-HYrg.js +0 -35
  126. package/es/javascript-CjdDmufJ.js +0 -2
  127. package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
  128. package/es/mermaid.core-Bvy_Q6Hu.js +0 -680
  129. package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
  130. package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
  131. package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
  132. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
  133. package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
  134. /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
  135. /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
  136. /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
  137. /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
  138. /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
  139. /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
  140. /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { o as e, t } from "./chunk-WQLz0Won.js";
1
+ import { o as e, t } from "./rolldown-runtime-CEY2VRuR.js";
2
2
  //#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
3
3
  var n = /* @__PURE__ */ t(((e, t) => {
4
4
  (function(n, r) {
@@ -804,7 +804,8 @@ function at(e) {
804
804
  }
805
805
  function ot(e) {
806
806
  return function() {
807
- this.textContent = e.apply(this, arguments) ?? "";
807
+ var t = e.apply(this, arguments);
808
+ this.textContent = t ?? "";
808
809
  };
809
810
  }
810
811
  function st(e) {
@@ -822,7 +823,8 @@ function lt(e) {
822
823
  }
823
824
  function ut(e) {
824
825
  return function() {
825
- this.innerHTML = e.apply(this, arguments) ?? "";
826
+ var t = e.apply(this, arguments);
827
+ this.innerHTML = t ?? "";
826
828
  };
827
829
  }
828
830
  function dt(e) {
@@ -1954,7 +1956,8 @@ function Xr(e) {
1954
1956
  }
1955
1957
  function Zr(e) {
1956
1958
  return function() {
1957
- this.textContent = e(this) ?? "";
1959
+ var t = e(this);
1960
+ this.textContent = t ?? "";
1958
1961
  };
1959
1962
  }
1960
1963
  function Qr(e) {
@@ -1985,7 +1988,7 @@ function ti(e) {
1985
1988
  //#endregion
1986
1989
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
1987
1990
  function ni() {
1988
- for (var e = this._name, t = this._id, n = oi(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
1991
+ for (var e = this._name, t = this._id, n = ai(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
1989
1992
  var u = X(c, t);
1990
1993
  Qn(c, e, n, l, o, {
1991
1994
  time: u.time + u.delay + u.duration,
@@ -2016,14 +2019,11 @@ var ii = 0;
2016
2019
  function Z(e, t, n, r) {
2017
2020
  this._groups = e, this._parents = t, this._name = n, this._id = r;
2018
2021
  }
2019
- function ai(e) {
2020
- return j().transition(e);
2021
- }
2022
- function oi() {
2022
+ function ai() {
2023
2023
  return ++ii;
2024
2024
  }
2025
2025
  var Q = j.prototype;
2026
- Z.prototype = ai.prototype = {
2026
+ Z.prototype = {
2027
2027
  constructor: Z,
2028
2028
  select: Lr,
2029
2029
  selectAll: Rr,
@@ -2057,32 +2057,32 @@ Z.prototype = ai.prototype = {
2057
2057
  };
2058
2058
  //#endregion
2059
2059
  //#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
2060
- function si(e) {
2060
+ function oi(e) {
2061
2061
  return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2062
2062
  }
2063
2063
  //#endregion
2064
2064
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
2065
- var ci = {
2065
+ var si = {
2066
2066
  time: null,
2067
2067
  delay: 0,
2068
2068
  duration: 250,
2069
- ease: si
2069
+ ease: oi
2070
2070
  };
2071
- function li(e, t) {
2071
+ function ci(e, t) {
2072
2072
  for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
2073
2073
  return n;
2074
2074
  }
2075
- function ui(e) {
2075
+ function li(e) {
2076
2076
  var t, n;
2077
- e instanceof Z ? (t = e._id, e = e._name) : (t = oi(), (n = ci).time = Bn(), e = e == null ? null : e + "");
2078
- for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Qn(c, e, t, l, o, n || li(c, t));
2077
+ e instanceof Z ? (t = e._id, e = e._name) : (t = ai(), (n = si).time = Bn(), e = e == null ? null : e + "");
2078
+ for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Qn(c, e, t, l, o, n || ci(c, t));
2079
2079
  return new Z(r, this._parents, e, t);
2080
2080
  }
2081
- j.prototype.interrupt = nr, j.prototype.transition = ui;
2081
+ j.prototype.interrupt = nr, j.prototype.transition = li;
2082
2082
  //#endregion
2083
2083
  //#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
2084
- var { abs: di, max: fi, min: pi } = Math;
2085
- ["w", "e"].map(mi), ["n", "s"].map(mi), [
2084
+ var { abs: ui, max: di, min: fi } = Math;
2085
+ ["w", "e"].map(pi), ["n", "s"].map(pi), [
2086
2086
  "n",
2087
2087
  "w",
2088
2088
  "e",
@@ -2091,8 +2091,8 @@ var { abs: di, max: fi, min: pi } = Math;
2091
2091
  "ne",
2092
2092
  "sw",
2093
2093
  "se"
2094
- ].map(mi);
2095
- function mi(e) {
2094
+ ].map(pi);
2095
+ function pi(e) {
2096
2096
  return { type: e };
2097
2097
  }
2098
2098
  //#endregion
@@ -2136,10 +2136,10 @@ $.prototype = {
2136
2136
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2137
2137
  }
2138
2138
  };
2139
- var hi = new $(1, 0, 0);
2140
- gi.prototype = $.prototype;
2141
- function gi(e) {
2142
- for (; !e.__zoom;) if (!(e = e.parentNode)) return hi;
2139
+ var mi = new $(1, 0, 0);
2140
+ hi.prototype = $.prototype;
2141
+ function hi(e) {
2142
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return mi;
2143
2143
  return e.__zoom;
2144
2144
  }
2145
2145
  //#endregion
@@ -1,19 +1,19 @@
1
- import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
2
- import { t as r } from "./dagre-5aGJFKmT.js";
3
- import { T as i, h as a } from "./chunk-GEFDOKGD-BWpC-zoH.js";
4
- import { t as o } from "./graphlib-dRkI1OCL.js";
5
- import { D as s, b as c, c as l, s as u } from "./chunk-7R4GIKGN-QT6IorJ_.js";
6
- import { t as d } from "./line-Cu9NTacD.js";
7
- import "./chunk-PU5JKC2W-DdP8BS-S.js";
8
- import "./chunk-MX3YWQON-BxE-Aq9c.js";
9
- import "./chunk-YBOYWFTD-CvaddD9G.js";
10
- import "./chunk-55IACEB6-DGtfGRgi.js";
11
- import "./chunk-KX2RTZJC-D5cc4rj6.js";
12
- import "./chunk-PQ6SQG4A-D3jtNCWN.js";
13
- import "./chunk-KYZI473N-BHJ3T5Zv.js";
14
- import "./chunk-O4XLMI2P-qjOoGpnx.js";
15
- import "./chunk-GLR3WWYH-DiXcKb5Y.js";
16
- import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-EYQBXkqP.js";
1
+ import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
+ import { t as r } from "./dagre-DCYVBij1.js";
3
+ import { T as i, h as a } from "./chunk-GEFDOKGD-BEzc6NZw.js";
4
+ import { t as o } from "./graphlib-BMvIh7N7.js";
5
+ import { D as s, b as c, c as l, s as u } from "./chunk-7R4GIKGN-scch4dXY.js";
6
+ import { t as d } from "./line-D05MESIS.js";
7
+ import "./chunk-PU5JKC2W-TuGY6X1n.js";
8
+ import "./chunk-MX3YWQON-D602L8pU.js";
9
+ import "./chunk-YBOYWFTD-CRiKEIiS.js";
10
+ import "./chunk-55IACEB6-Tre45n-8.js";
11
+ import "./chunk-KX2RTZJC-BUWM8pJz.js";
12
+ import "./chunk-PQ6SQG4A-DcYrzB1X.js";
13
+ import "./chunk-KYZI473N-BSgb_E0Q.js";
14
+ import "./chunk-O4XLMI2P-BMqc3iYa.js";
15
+ import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-BPQV0i93.js";
16
+ import "./mermaid.core-BVGVwWcu.js";
17
17
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-RAJIS63D.mjs
18
18
  var h = /* @__PURE__ */ t((e) => e.append("circle").attr("class", "start-state").attr("r", c().state.sizeUnit).attr("cx", c().state.padding + c().state.sizeUnit).attr("cy", c().state.padding + c().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ t((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", c().state.textHeight).attr("class", "divider").attr("x2", c().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ t((e, t) => {
19
19
  let n = e.append("text").attr("x", 2 * c().state.padding).attr("y", c().state.textHeight + 2 * c().state.padding).attr("font-size", c().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
@@ -117,8 +117,8 @@ var h = /* @__PURE__ */ t((e) => e.append("circle").attr("class", "start-state")
117
117
  e.debug("Rendering diagram " + t);
118
118
  let f = u.select(`[id='${r}']`);
119
119
  A(f), N(a.db.getRootDoc(), f, void 0, !1, u, d, a);
120
- let p = D.padding, m = f.node().getBBox(), h = m.width + p * 2, g = m.height + p * 2;
121
- l(f, g, h * 1.75, D.useMaxWidth), f.attr("viewBox", `${m.x - D.padding} ${m.y - D.padding} ` + h + " " + g);
120
+ let p = D.padding, m = f.node().getBBox(), h = m.width + p * 2, g = m.height + p * 2, _ = h * 1.75;
121
+ l(f, g, _, D.useMaxWidth), f.attr("viewBox", `${m.x - D.padding} ${m.y - D.padding} ` + h + " " + g);
122
122
  }, "draw"), M = /* @__PURE__ */ t((e) => e ? e.length * D.fontSizeFactor : 1, "getLabelWidth"), N = /* @__PURE__ */ t((t, n, i, a, s, c, l) => {
123
123
  let d = new o({
124
124
  compound: !0,
@@ -0,0 +1,27 @@
1
+ import { h as e } from "./src-Dynw_Lub.js";
2
+ import "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import "./chunk-7R4GIKGN-scch4dXY.js";
4
+ import "./chunk-PU5JKC2W-TuGY6X1n.js";
5
+ import "./chunk-MX3YWQON-D602L8pU.js";
6
+ import "./chunk-YBOYWFTD-CRiKEIiS.js";
7
+ import "./chunk-55IACEB6-Tre45n-8.js";
8
+ import "./chunk-KX2RTZJC-BUWM8pJz.js";
9
+ import "./chunk-PQ6SQG4A-DcYrzB1X.js";
10
+ import "./chunk-KYZI473N-BSgb_E0Q.js";
11
+ import "./chunk-O4XLMI2P-BMqc3iYa.js";
12
+ import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-BPQV0i93.js";
13
+ import "./mermaid.core-BVGVwWcu.js";
14
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-FVOUBMTO.mjs
15
+ var a = {
16
+ parser: n,
17
+ get db() {
18
+ return new i(2);
19
+ },
20
+ renderer: r,
21
+ styles: t,
22
+ init: /* @__PURE__ */ e((e) => {
23
+ e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
24
+ }, "init")
25
+ };
26
+ //#endregion
27
+ export { a as diagram };
@@ -1,6 +1,6 @@
1
- import { g as e, h as t, m as n, p as r } from "./src-CUQ6oOYk.js";
2
- import { $ as i, K as a, Q as o, a as s, b as c, o as l, tt as u } from "./chunk-7R4GIKGN-QT6IorJ_.js";
3
- import { t as d } from "./arc-BuXEd18J.js";
1
+ import { g as e, h as t, m as n, p as r } from "./src-Dynw_Lub.js";
2
+ import { $ as i, K as a, Q as o, a as s, b as c, o as l, tt as u } from "./chunk-7R4GIKGN-scch4dXY.js";
3
+ import { t as d } from "./arc-NI3ROx5X.js";
4
4
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-YZTLITO2.mjs
5
5
  var f = (function() {
6
6
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -113,9 +113,7 @@ var f = (function() {
113
113
  case 15:
114
114
  r.addTask(a[s], 0, ""), this.$ = a[s];
115
115
  break;
116
- case 16:
117
- r.addEvent(a[s].substr(2)), this.$ = a[s];
118
- break;
116
+ case 16: r.addEvent(a[s].substr(2)), this.$ = a[s];
119
117
  }
120
118
  }, "anonymous"),
121
119
  table: [
@@ -185,7 +183,7 @@ var f = (function() {
185
183
  var v = h.yylloc;
186
184
  o.push(v);
187
185
  var y = h.options && h.options.ranges;
188
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
186
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
189
187
  function b(e) {
190
188
  r.length -= 2 * e, a.length -= e, o.length -= e;
191
189
  }
@@ -338,10 +336,12 @@ var f = (function() {
338
336
  if (this._backtrack) {
339
337
  t = !1;
340
338
  continue;
341
- } else return !1;
342
- } else if (!this.options.flex) break;
339
+ }
340
+ return !1;
341
+ }
342
+ if (!this.options.flex) break;
343
343
  }
344
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
344
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
345
345
  text: "",
346
346
  token: null,
347
347
  line: this.yylineno
@@ -0,0 +1,3 @@
1
+ import "./chunk-XZSTWKYB-DYKLwCEy.js";
2
+ import { r as e } from "./mermaid-parser.core-C_69nk7j.js";
3
+ export { e as createTreemapServices };
@@ -1,8 +1,8 @@
1
- import { h as e, p as t } from "./src-CUQ6oOYk.js";
2
- import { r as n } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { $ as r, B as i, C as a, Q as o, V as s, W as c, _ as l, a as u, c as d, d as f, et as p, tt as m, v as h, y as g } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
- import { t as _ } from "./chunk-HHEYEP7N-Cxc7E4dX.js";
5
- import { t as v } from "./rough.esm-BhGP2Udb.js";
1
+ import { h as e, p as t } from "./src-Dynw_Lub.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import { $ as r, B as i, C as a, Q as o, V as s, W as c, _ as l, a as u, c as d, d as f, et as p, tt as m, v as h, y as g } from "./chunk-7R4GIKGN-scch4dXY.js";
4
+ import { t as _ } from "./rough.esm-D1ibUQD-.js";
5
+ import { a as v } from "./mermaid.core-BVGVwWcu.js";
6
6
  //#region ../../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/transparentize.js
7
7
  var y = (e, t) => p(e, "a", -t), b = 1e-10;
8
8
  function x(e, t) {
@@ -864,7 +864,7 @@ function Ce(e, t) {
864
864
  ];
865
865
  for (let t of e) {
866
866
  let e = r(t.circle.radius);
867
- i.push("\nA", e, e, 0, t.large ? 1 : 0, t.sweep ? 1 : 0, r(t.p1.x), r(t.p1.y));
867
+ i.push("\nA", e, e, 0, +!!t.large, +!!t.sweep, r(t.p1.x), r(t.p1.y));
868
868
  }
869
869
  return i.join(" ");
870
870
  }
@@ -1170,9 +1170,7 @@ var U = (function() {
1170
1170
  a[s - 1].push(a[s]), this.$ = a[s - 1];
1171
1171
  break;
1172
1172
  case 43:
1173
- case 44:
1174
- this.$ = a[s];
1175
- break;
1173
+ case 44: this.$ = a[s];
1176
1174
  }
1177
1175
  }, "anonymous"),
1178
1176
  table: [
@@ -1336,7 +1334,7 @@ var U = (function() {
1336
1334
  var v = h.yylloc;
1337
1335
  o.push(v);
1338
1336
  var y = h.options && h.options.ranges;
1339
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1337
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1340
1338
  function b(e) {
1341
1339
  r.length -= 2 * e, a.length -= e, o.length -= e;
1342
1340
  }
@@ -1489,10 +1487,12 @@ var U = (function() {
1489
1487
  if (this._backtrack) {
1490
1488
  t = !1;
1491
1489
  continue;
1492
- } else return !1;
1493
- } else if (!this.options.flex) break;
1490
+ }
1491
+ return !1;
1492
+ }
1493
+ if (!this.options.flex) break;
1494
1494
  }
1495
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1495
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1496
1496
  text: "",
1497
1497
  token: null,
1498
1498
  line: this.yylineno
@@ -1750,11 +1750,11 @@ var Ue = /* @__PURE__ */ e((e, n, i, a) => {
1750
1750
  l.venn6,
1751
1751
  l.venn7,
1752
1752
  l.venn8
1753
- ].filter(Boolean), b = s.getDiagramTitle?.(), x = s.getSubsetData(), S = s.getTextData(), C = He(s.getStyleData()), w = c?.width ?? 800, T = c?.height ?? 450, E = w / 1600, D = b ? 48 * E : 0, O = l.primaryTextColor ?? l.textColor, k = _(n);
1753
+ ].filter(Boolean), b = s.getDiagramTitle?.(), x = s.getSubsetData(), S = s.getTextData(), C = He(s.getStyleData()), w = c?.width ?? 800, T = c?.height ?? 450, E = w / 1600, D = b ? 48 * E : 0, O = l.primaryTextColor ?? l.textColor, k = v(n);
1754
1754
  k.attr("viewBox", `0 0 ${w} ${T}`), b && k.append("text").text(b).attr("class", "venn-title").attr("font-size", `${32 * E}px`).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("x", "50%").attr("y", 32 * E).style("fill", l.vennTitleTextColor || l.titleColor);
1755
1755
  let A = t(document.createElement("div")), j = ge().width(w).height(T - D);
1756
1756
  A.datum(x).call(j);
1757
- let M = p ? v.svg(A.select("svg").node()) : void 0, N = Te(x, {
1757
+ let M = p ? _.svg(A.select("svg").node()) : void 0, N = Te(x, {
1758
1758
  width: w,
1759
1759
  height: T - D,
1760
1760
  padding: c?.padding ?? 15
@@ -1812,7 +1812,7 @@ var Ue = /* @__PURE__ */ e((e, n, i, a) => {
1812
1812
  return C.get(t)?.color ?? l.vennSetTextColor ?? O;
1813
1813
  }), A.selectAll(".venn-intersection path").style("fill-opacity", (e) => {
1814
1814
  let t = Q([...e.sets].sort());
1815
- return C.get(t)?.fill ? 1 : 0;
1815
+ return +!!C.get(t)?.fill;
1816
1816
  }).style("fill", (e) => {
1817
1817
  let t = Q([...e.sets].sort());
1818
1818
  return C.get(t)?.fill ?? "transparent";
@@ -1,12 +1,12 @@
1
- import { g as e, h as t } from "./src-CUQ6oOYk.js";
2
- import { r as n } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { B as r, C as i, E as a, L as o, V as s, W as c, _ as l, a as u, c as d, d as f, v as p, y as m } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
- import { t as h } from "./linear-C0rAYYmp.js";
5
- import { t as g } from "./ordinal-F3U6aXtP.js";
6
- import { t as _ } from "./init-B75p2clj.js";
7
- import { t as v } from "./line-Cu9NTacD.js";
8
- import { t as y } from "./chunk-HHEYEP7N-Cxc7E4dX.js";
9
- import { t as b } from "./chunk-PU5JKC2W-DdP8BS-S.js";
1
+ import { g as e, h as t } from "./src-Dynw_Lub.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import { B as r, C as i, E as a, L as o, V as s, W as c, _ as l, a as u, c as d, d as f, v as p, y as m } from "./chunk-7R4GIKGN-scch4dXY.js";
4
+ import { t as h } from "./linear-B8tPH2Pw.js";
5
+ import { t as g } from "./ordinal-CNQzPcrr.js";
6
+ import { t as _ } from "./init-sjaVZO3f.js";
7
+ import { t as v } from "./line-D05MESIS.js";
8
+ import { t as y } from "./chunk-PU5JKC2W-TuGY6X1n.js";
9
+ import { a as b } from "./mermaid.core-BVGVwWcu.js";
10
10
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.js
11
11
  function x(e, t, n) {
12
12
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
@@ -388,9 +388,7 @@ var C = (function() {
388
388
  case 40:
389
389
  this.$ = a[s];
390
390
  break;
391
- case 41:
392
- this.$ = a[s - 1] + "" + a[s];
393
- break;
391
+ case 41: this.$ = a[s - 1] + "" + a[s];
394
392
  }
395
393
  }, "anonymous"),
396
394
  table: [
@@ -704,7 +702,7 @@ var C = (function() {
704
702
  var v = h.yylloc;
705
703
  o.push(v);
706
704
  var y = h.options && h.options.ranges;
707
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
705
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
708
706
  function b(e) {
709
707
  r.length -= 2 * e, a.length -= e, o.length -= e;
710
708
  }
@@ -857,10 +855,12 @@ var C = (function() {
857
855
  if (this._backtrack) {
858
856
  t = !1;
859
857
  continue;
860
- } else return !1;
861
- } else if (!this.options.flex) break;
858
+ }
859
+ return !1;
860
+ }
861
+ if (!this.options.flex) break;
862
862
  }
863
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
863
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
864
864
  text: "",
865
865
  token: null,
866
866
  line: this.yylineno
@@ -1266,7 +1266,7 @@ var O = class {
1266
1266
  height: 0
1267
1267
  }, r = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", t);
1268
1268
  for (let i of e) {
1269
- let e = b(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1269
+ let e = y(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1270
1270
  n.width = Math.max(n.width, a), n.height = Math.max(n.height, o);
1271
1271
  }
1272
1272
  return r.remove(), n;
@@ -1688,12 +1688,10 @@ var re = class {
1688
1688
  e.push(...r.getDrawableElement());
1689
1689
  }
1690
1690
  break;
1691
- case "bar":
1692
- {
1693
- let r = new ie(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1694
- e.push(...r.getDrawableElement());
1695
- }
1696
- break;
1691
+ case "bar": {
1692
+ let r = new ie(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1693
+ e.push(...r.getDrawableElement());
1694
+ }
1697
1695
  }
1698
1696
  return e;
1699
1697
  }
@@ -1978,10 +1976,10 @@ var _e = {
1978
1976
  return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1979
1977
  }
1980
1978
  t(p, "getTextTransformation"), e.debug("Rendering xychart chart\n" + n);
1981
- let m = y(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1979
+ let m = b(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1982
1980
  d(m, c.height, c.width, !0), m.attr("viewBox", `0 0 ${c.width} ${c.height}`), g.attr("fill", s.backgroundColor), o.setTmpSVGG(m.append("g").attr("class", "mermaid-tmp-group"));
1983
1981
  let _ = o.getDrawableElem(), v = {};
1984
- function b(e) {
1982
+ function y(e) {
1985
1983
  let t = h, n = "";
1986
1984
  for (let [r] of e.entries()) {
1987
1985
  let i = h;
@@ -1989,10 +1987,10 @@ var _e = {
1989
1987
  }
1990
1988
  return t;
1991
1989
  }
1992
- t(b, "getGroup");
1990
+ t(y, "getGroup");
1993
1991
  for (let e of _) {
1994
1992
  if (e.data.length === 0) continue;
1995
- let n = b(e.groupTexts);
1993
+ let n = y(e.groupTexts);
1996
1994
  switch (e.type) {
1997
1995
  case "rect":
1998
1996
  if (n.selectAll("rect").data(e.data).enter().append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth), c.showDataLabel) if (c.chartOrientation === "horizontal") {
@@ -2030,9 +2028,7 @@ var _e = {
2030
2028
  case "text":
2031
2029
  n.selectAll("text").data(e.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => u(e.verticalPos)).attr("text-anchor", (e) => f(e.horizontalPos)).attr("transform", (e) => p(e)).text((e) => e.text);
2032
2030
  break;
2033
- case "path":
2034
- n.selectAll("path").data(e.data).enter().append("path").attr("d", (e) => e.path).attr("fill", (e) => e.fill ? e.fill : "none").attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth);
2035
- break;
2031
+ case "path": n.selectAll("path").data(e.data).enter().append("path").attr("d", (e) => e.path).attr("fill", (e) => e.fill ? e.fill : "none").attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth);
2036
2032
  }
2037
2033
  }
2038
2034
  }, "draw") }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antdv-next/x",
3
- "version": "1.1.3-beta.5",
3
+ "version": "1.2.1-beta.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",