@antdv-next/x 1.2.1-beta.1 → 1.2.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 (100) hide show
  1. package/dist/attachments/index.js +1 -2
  2. package/dist/code-highlighter/style/index.d.ts +51 -19
  3. package/dist/code-highlighter/style/index.js +44 -31
  4. package/dist/index.umd.js +54 -44
  5. package/dist/package.js +1 -1
  6. package/dist/sender/hooks/use-speech.js +1 -2
  7. package/dist/suggestion/useActive.js +2 -0
  8. package/dist/theme/util/alias.js +5 -5
  9. package/dist/think/Think.js +2 -3
  10. package/dist/thought-chain/Node.js +2 -3
  11. package/dist/x-provider/index.js +2 -3
  12. package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
  13. package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
  14. package/es/antdv-next-x.esm.js +253 -245
  15. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  16. package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
  17. package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
  18. package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
  19. package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
  20. package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  21. package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  22. package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
  23. package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  24. package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
  25. package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
  26. package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
  27. package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  28. package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  29. package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
  30. package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  31. package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
  32. package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
  33. package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  34. package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
  35. package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  36. package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
  37. package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
  38. package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
  39. package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
  40. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  41. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  42. package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
  43. package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
  44. package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
  45. package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
  46. package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
  47. package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
  48. package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
  49. package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
  50. package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
  51. package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
  52. package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
  53. package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
  54. package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
  55. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  56. package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
  57. package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
  58. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  59. package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
  60. package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
  61. package/es/isEmpty-BJdINx-6.js +35 -0
  62. package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
  63. package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
  64. package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
  65. package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
  66. package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
  67. package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
  68. package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
  69. package/es/mermaid.core-BzgA0NbC.js +680 -0
  70. package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
  71. package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
  72. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  73. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  74. package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
  75. package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
  76. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  77. package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
  78. package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
  79. package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
  80. package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
  81. package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
  82. package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
  83. package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
  84. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  85. package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
  86. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  87. package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
  88. package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
  89. package/package.json +1 -1
  90. package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
  91. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
  92. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
  93. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
  94. package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
  95. package/es/mermaid.core-BVGVwWcu.js +0 -1914
  96. package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
  97. package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
  98. package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
  99. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
@@ -1,4 +1,4 @@
1
- import { r as e } from "./rolldown-runtime-CEY2VRuR.js";
1
+ import { r as e } from "./rolldown-runtime-Dv1pqm0U.js";
2
2
  //#region ../../node_modules/.pnpm/@shikijs+types@3.23.0/node_modules/@shikijs/types/dist/index.mjs
3
3
  var t = class extends Error {
4
4
  constructor(e) {
@@ -34,7 +34,7 @@ function s(e) {
34
34
  }
35
35
  var c = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, l = class {
36
36
  static hasCaptures(e) {
37
- return e !== null && (c.lastIndex = 0, c.test(e));
37
+ return e === null ? !1 : (c.lastIndex = 0, c.test(e));
38
38
  }
39
39
  static replaceCaptures(e, t, n) {
40
40
  return e.replace(c, (e, r, i, a) => {
@@ -189,7 +189,9 @@ function ne(e) {
189
189
  case "underline":
190
190
  o |= 4;
191
191
  break;
192
- case "strikethrough": o |= 8;
192
+ case "strikethrough":
193
+ o |= 8;
194
+ break;
193
195
  }
194
196
  }
195
197
  let s = null;
@@ -335,7 +337,7 @@ var ae = class {
335
337
  return (e & 768) >>> 8;
336
338
  }
337
339
  static containsBalancedBrackets(e) {
338
- return !!(e & 1024);
340
+ return (e & 1024) != 0;
339
341
  }
340
342
  static getFontStyle(e) {
341
343
  return (e & 30720) >>> 11;
@@ -549,6 +551,7 @@ function Se(e, t, n) {
549
551
  };
550
552
  a.kind === 4 ? be(a.ruleName, i, n) : xe(i, n);
551
553
  } else a.kind === 4 ? n.add(new ge(a.scopeName, a.ruleName)) : n.add(new he(a.scopeName));
554
+ break;
552
555
  }
553
556
  }
554
557
  }
@@ -814,6 +817,7 @@ var Fe = class {
814
817
  let t = l.repository[c];
815
818
  t && (s = e.getCompiledRuleId(t, n, l.repository));
816
819
  } else s = e.getCompiledRuleId(l.repository.$self, n, l.repository);
820
+ break;
817
821
  }
818
822
  } else s = e.getCompiledRuleId(o, n, r);
819
823
  if (s !== -1) {
@@ -842,7 +846,7 @@ var Fe = class {
842
846
  }
843
847
  this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
844
848
  } else this.hasAnchor = !1, this.source = e;
845
- this._anchorCache = this.hasAnchor ? this._buildAnchorCache() : null, this.ruleId = t, this.hasBackReferences = typeof this.source == "string" && ke.test(this.source);
849
+ this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = t, typeof this.source == "string" ? this.hasBackReferences = ke.test(this.source) : this.hasBackReferences = !1;
846
850
  }
847
851
  clone() {
848
852
  return new e(this.source, this.ruleId);
@@ -3507,8 +3511,7 @@ function Lr() {
3507
3511
  ...i.indexToPos(e),
3508
3512
  offset: e
3509
3513
  };
3510
- }
3511
- {
3514
+ } else {
3512
3515
  let n = i.lines[e.line];
3513
3516
  if (n === void 0) throw new t(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);
3514
3517
  let r = e.character;
@@ -3673,8 +3676,7 @@ function Gr(e) {
3673
3676
  type: "rgb",
3674
3677
  rgb: t
3675
3678
  };
3676
- }
3677
- if (t === "5") {
3679
+ } else if (t === "5") {
3678
3680
  let t = e.shift();
3679
3681
  if (t) return {
3680
3682
  type: "table",
@@ -3878,13 +3880,11 @@ function Qr(e) {
3878
3880
  if (e.length === 8) {
3879
3881
  let t = Math.round(Number.parseInt(e.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
3880
3882
  return `#${e.slice(0, 6)}${t}`;
3881
- }
3882
- if (e.length === 6) return `#${e}80`;
3883
- if (e.length === 4) {
3883
+ } else if (e.length === 6) return `#${e}80`;
3884
+ else if (e.length === 4) {
3884
3885
  let t = e[0], n = e[1], r = e[2], i = e[3];
3885
3886
  return `#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`, 16) / 2).toString(16).padStart(2, "0")}`;
3886
- }
3887
- if (e.length === 3) {
3887
+ } else if (e.length === 3) {
3888
3888
  let t = e[0], n = e[1], r = e[2];
3889
3889
  return `#${t}${t}${n}${n}${r}${r}80`;
3890
3890
  }
@@ -4143,7 +4143,7 @@ function pi(e, t, n, r = Nr(e)) {
4143
4143
  type: "root",
4144
4144
  children: []
4145
4145
  }, { structure: s = "classic", tabindex: c = "0" } = t, l = { class: `shiki ${t.themeName || ""}` };
4146
- t.rootStyle !== !1 && (l.style = t.rootStyle == null ? `background-color:${t.bg};color:${t.fg}` : t.rootStyle), c !== !1 && c != null && (l.tabindex = c.toString());
4146
+ t.rootStyle !== !1 && (t.rootStyle == null ? l.style = `background-color:${t.bg};color:${t.fg}` : l.style = t.rootStyle), c !== !1 && c != null && (l.tabindex = c.toString());
4147
4147
  for (let [e, n] of Object.entries(t.meta || {})) e.startsWith("_") || (l[e] = n);
4148
4148
  let u = {
4149
4149
  type: "element",
@@ -5817,37 +5817,34 @@ function To(e, t) {
5817
5817
  let { 0: t, groups: { captureName: p, rDepth: m, gRNameOrNum: h, gRDepth: g } } = f;
5818
5818
  if (t === "[") u++;
5819
5819
  else if (u) t === "]" && u--;
5820
- else {
5821
- if (m) {
5822
- if (Eo(m), l) throw Error(wo);
5823
- if (o) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
5824
- let t = e.slice(0, f.index), s = e.slice(G.lastIndex);
5825
- if (mo(s, xo, U.DEFAULT)) throw Error(wo);
5826
- let c = m - 1;
5827
- e = Do(t, s, c, !1, n, a, d), i = Ao(i, t, c, a.length, 0, d);
5820
+ else if (m) {
5821
+ if (Eo(m), l) throw Error(wo);
5822
+ if (o) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
5823
+ let t = e.slice(0, f.index), s = e.slice(G.lastIndex);
5824
+ if (mo(s, xo, U.DEFAULT)) throw Error(wo);
5825
+ let c = m - 1;
5826
+ e = Do(t, s, c, !1, n, a, d), i = Ao(i, t, c, a.length, 0, d);
5827
+ break;
5828
+ } else if (h) {
5829
+ Eo(g);
5830
+ let u = !1;
5831
+ for (let e of c) if (e.name === h || e.num === +h) {
5832
+ if (u = !0, e.hasRecursedWithin) throw Error(wo);
5828
5833
  break;
5829
5834
  }
5830
- if (h) {
5831
- Eo(g);
5832
- let u = !1;
5833
- for (let e of c) if (e.name === h || e.num === +h) {
5834
- if (u = !0, e.hasRecursedWithin) throw Error(wo);
5835
- break;
5836
- }
5837
- if (!u) throw Error(W`Recursive \g cannot be used outside the referenced group "${r === "external" ? h : W`\g<${h}&R=${g}>`}"`);
5838
- let p = s.get(h), m = ho(e, p);
5839
- if (o && mo(m, W`${So}|\((?!\?)`, U.DEFAULT)) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
5840
- let _ = e.slice(p, f.index), ee = m.slice(_.length + t.length), te = a.length, ne = g - 1, re = Do(_, ee, ne, !0, n, a, d);
5841
- i = Ao(i, _, ne, a.length - te, te, d), e = `${e.slice(0, p)}${re}${e.slice(p + m.length)}`, G.lastIndex += re.length - t.length - _.length - ee.length, c.forEach((e) => e.hasRecursedWithin = !0), l = !0;
5842
- } else if (p) d++, s.set(String(d), G.lastIndex), s.set(p, G.lastIndex), c.push({
5843
- num: d,
5844
- name: p
5845
- });
5846
- else if (t[0] === "(") {
5847
- let e = t === "(";
5848
- e && (d++, s.set(String(d), G.lastIndex)), c.push(e ? { num: d } : {});
5849
- } else t === ")" && c.pop();
5850
- }
5835
+ if (!u) throw Error(W`Recursive \g cannot be used outside the referenced group "${r === "external" ? h : W`\g<${h}&R=${g}>`}"`);
5836
+ let p = s.get(h), m = ho(e, p);
5837
+ if (o && mo(m, W`${So}|\((?!\?)`, U.DEFAULT)) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
5838
+ let _ = e.slice(p, f.index), ee = m.slice(_.length + t.length), te = a.length, ne = g - 1, re = Do(_, ee, ne, !0, n, a, d);
5839
+ i = Ao(i, _, ne, a.length - te, te, d), e = `${e.slice(0, p)}${re}${e.slice(p + m.length)}`, G.lastIndex += re.length - t.length - _.length - ee.length, c.forEach((e) => e.hasRecursedWithin = !0), l = !0;
5840
+ } else if (p) d++, s.set(String(d), G.lastIndex), s.set(p, G.lastIndex), c.push({
5841
+ num: d,
5842
+ name: p
5843
+ });
5844
+ else if (t[0] === "(") {
5845
+ let e = t === "(";
5846
+ e && (d++, s.set(String(d), G.lastIndex)), c.push(e ? { num: d } : {});
5847
+ } else t === ")" && c.pop();
5851
5848
  }
5852
5849
  return n.push(...a), {
5853
5850
  pattern: e,
@@ -1,4 +1,4 @@
1
- import { o as e, t } from "./rolldown-runtime-CEY2VRuR.js";
1
+ import { o as e, t } from "./rolldown-runtime-Dv1pqm0U.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) {
@@ -1,19 +1,19 @@
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";
1
+ import { g as e, h as t, p as n } from "./src-3T61hYex.js";
2
+ import { t as r } from "./dagre-BHOjJWBG.js";
3
+ import { T as i, h as a } from "./chunk-GEFDOKGD-oBEpn5hN.js";
4
+ import { t as o } from "./graphlib-DqWOhV4K.js";
5
+ import { D as s, b as c, c as l, s as u } from "./chunk-7R4GIKGN-mKY502R8.js";
6
+ import { t as d } from "./line-Cm2n2y9Z.js";
7
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
8
+ import "./chunk-MX3YWQON-D4cz36rq.js";
9
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
10
+ import "./chunk-55IACEB6-BpkEkHy8.js";
11
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
12
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
13
+ import "./chunk-KYZI473N-33-uii7Y.js";
14
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
15
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
16
+ import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-CprADZhD.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, _ = h * 1.75;
121
- l(f, g, _, 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;
121
+ l(f, g, h * 1.75, 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-3T61hYex.js";
2
+ import "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
5
+ import "./chunk-MX3YWQON-D4cz36rq.js";
6
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
7
+ import "./chunk-55IACEB6-BpkEkHy8.js";
8
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
9
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
10
+ import "./chunk-KYZI473N-33-uii7Y.js";
11
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
12
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
13
+ import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-CprADZhD.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,5 +1,5 @@
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";
1
+ import { g as e, h as t, m as n, p as r } from "./src-3T61hYex.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-mKY502R8.js";
3
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() {
@@ -113,7 +113,9 @@ var f = (function() {
113
113
  case 15:
114
114
  r.addTask(a[s], 0, ""), this.$ = a[s];
115
115
  break;
116
- case 16: r.addEvent(a[s].substr(2)), this.$ = a[s];
116
+ case 16:
117
+ r.addEvent(a[s].substr(2)), this.$ = a[s];
118
+ break;
117
119
  }
118
120
  }, "anonymous"),
119
121
  table: [
@@ -183,7 +185,7 @@ var f = (function() {
183
185
  var v = h.yylloc;
184
186
  o.push(v);
185
187
  var y = h.options && h.options.ranges;
186
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
188
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
187
189
  function b(e) {
188
190
  r.length -= 2 * e, a.length -= e, o.length -= e;
189
191
  }
@@ -336,10 +338,8 @@ var f = (function() {
336
338
  if (this._backtrack) {
337
339
  t = !1;
338
340
  continue;
339
- }
340
- return !1;
341
- }
342
- if (!this.options.flex) break;
341
+ } else return !1;
342
+ } else if (!this.options.flex) break;
343
343
  }
344
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: "",
@@ -0,0 +1,3 @@
1
+ import "./chunk-XZSTWKYB-kjAdbx6i.js";
2
+ import { r as e } from "./mermaid-parser.core-DFgQn74w.js";
3
+ export { e as createTreemapServices };
@@ -1,8 +1,8 @@
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";
1
+ import { h as e, p as t } from "./src-3T61hYex.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-oBEpn5hN.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-mKY502R8.js";
4
+ import { t as _ } from "./chunk-HHEYEP7N-DcZkCke2.js";
5
+ import { t as v } from "./rough.esm-D1ibUQD-.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) {
@@ -1170,7 +1170,9 @@ 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: this.$ = a[s];
1173
+ case 44:
1174
+ this.$ = a[s];
1175
+ break;
1174
1176
  }
1175
1177
  }, "anonymous"),
1176
1178
  table: [
@@ -1334,7 +1336,7 @@ var U = (function() {
1334
1336
  var v = h.yylloc;
1335
1337
  o.push(v);
1336
1338
  var y = h.options && h.options.ranges;
1337
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1339
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1338
1340
  function b(e) {
1339
1341
  r.length -= 2 * e, a.length -= e, o.length -= e;
1340
1342
  }
@@ -1487,10 +1489,8 @@ var U = (function() {
1487
1489
  if (this._backtrack) {
1488
1490
  t = !1;
1489
1491
  continue;
1490
- }
1491
- return !1;
1492
- }
1493
- if (!this.options.flex) break;
1492
+ } else return !1;
1493
+ } else if (!this.options.flex) break;
1494
1494
  }
1495
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: "",
@@ -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 = v(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 = _(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 ? _.svg(A.select("svg").node()) : void 0, N = Te(x, {
1757
+ let M = p ? v.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
@@ -1,12 +1,12 @@
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";
1
+ import { g as e, h as t } from "./src-3T61hYex.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-oBEpn5hN.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-mKY502R8.js";
4
+ import { t as h } from "./linear-D-yDc6KG.js";
5
+ import { t as g } from "./ordinal-95c16pGC.js";
6
+ import { t as _ } from "./init-Co4dhKfe.js";
7
+ import { t as v } from "./line-Cm2n2y9Z.js";
8
+ import { t as y } from "./chunk-HHEYEP7N-DcZkCke2.js";
9
+ import { t as b } from "./chunk-PU5JKC2W-DIl8TkGX.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,7 +388,9 @@ var C = (function() {
388
388
  case 40:
389
389
  this.$ = a[s];
390
390
  break;
391
- case 41: this.$ = a[s - 1] + "" + a[s];
391
+ case 41:
392
+ this.$ = a[s - 1] + "" + a[s];
393
+ break;
392
394
  }
393
395
  }, "anonymous"),
394
396
  table: [
@@ -702,7 +704,7 @@ var C = (function() {
702
704
  var v = h.yylloc;
703
705
  o.push(v);
704
706
  var y = h.options && h.options.ranges;
705
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
707
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
706
708
  function b(e) {
707
709
  r.length -= 2 * e, a.length -= e, o.length -= e;
708
710
  }
@@ -855,10 +857,8 @@ var C = (function() {
855
857
  if (this._backtrack) {
856
858
  t = !1;
857
859
  continue;
858
- }
859
- return !1;
860
- }
861
- if (!this.options.flex) break;
860
+ } else return !1;
861
+ } else if (!this.options.flex) break;
862
862
  }
863
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: "",
@@ -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 = y(r, 1, i), a = e ? e.width : i.length * t, o = e ? e.height : t;
1269
+ let e = b(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,10 +1688,12 @@ var re = class {
1688
1688
  e.push(...r.getDrawableElement());
1689
1689
  }
1690
1690
  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
- }
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;
1695
1697
  }
1696
1698
  return e;
1697
1699
  }
@@ -1976,10 +1978,10 @@ var _e = {
1976
1978
  return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1977
1979
  }
1978
1980
  t(p, "getTextTransformation"), e.debug("Rendering xychart chart\n" + n);
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");
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");
1980
1982
  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"));
1981
1983
  let _ = o.getDrawableElem(), v = {};
1982
- function y(e) {
1984
+ function b(e) {
1983
1985
  let t = h, n = "";
1984
1986
  for (let [r] of e.entries()) {
1985
1987
  let i = h;
@@ -1987,10 +1989,10 @@ var _e = {
1987
1989
  }
1988
1990
  return t;
1989
1991
  }
1990
- t(y, "getGroup");
1992
+ t(b, "getGroup");
1991
1993
  for (let e of _) {
1992
1994
  if (e.data.length === 0) continue;
1993
- let n = y(e.groupTexts);
1995
+ let n = b(e.groupTexts);
1994
1996
  switch (e.type) {
1995
1997
  case "rect":
1996
1998
  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") {
@@ -2028,7 +2030,9 @@ var _e = {
2028
2030
  case "text":
2029
2031
  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);
2030
2032
  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);
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;
2032
2036
  }
2033
2037
  }
2034
2038
  }, "draw") }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antdv-next/x",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.2.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-DYKLwCEy.js";
2
- import { h as e } from "./mermaid-parser.core-C_69nk7j.js";
3
- export { e as createArchitectureServices };
@@ -1,29 +0,0 @@
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-FMBD7UC4-JmekSPZP.js";
6
- import "./chunk-MX3YWQON-D602L8pU.js";
7
- import "./chunk-YBOYWFTD-CRiKEIiS.js";
8
- import "./chunk-JSJVCQXG-_l_UVbaa.js";
9
- import "./chunk-55IACEB6-Tre45n-8.js";
10
- import "./chunk-KX2RTZJC-BUWM8pJz.js";
11
- import "./chunk-PQ6SQG4A-DcYrzB1X.js";
12
- import "./chunk-KYZI473N-BSgb_E0Q.js";
13
- import "./chunk-O4XLMI2P-BMqc3iYa.js";
14
- import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B31ErTFp.js";
15
- import "./mermaid.core-BVGVwWcu.js";
16
- //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-VBA2DB6C.mjs
17
- var a = {
18
- parser: n,
19
- get db() {
20
- return new i();
21
- },
22
- renderer: r,
23
- styles: t,
24
- init: /* @__PURE__ */ e((e) => {
25
- e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
- }, "init")
27
- };
28
- //#endregion
29
- export { a as diagram };
@@ -1,29 +0,0 @@
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-FMBD7UC4-JmekSPZP.js";
6
- import "./chunk-MX3YWQON-D602L8pU.js";
7
- import "./chunk-YBOYWFTD-CRiKEIiS.js";
8
- import "./chunk-JSJVCQXG-_l_UVbaa.js";
9
- import "./chunk-55IACEB6-Tre45n-8.js";
10
- import "./chunk-KX2RTZJC-BUWM8pJz.js";
11
- import "./chunk-PQ6SQG4A-DcYrzB1X.js";
12
- import "./chunk-KYZI473N-BSgb_E0Q.js";
13
- import "./chunk-O4XLMI2P-BMqc3iYa.js";
14
- import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B31ErTFp.js";
15
- import "./mermaid.core-BVGVwWcu.js";
16
- //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-RAHNMMFH.mjs
17
- var a = {
18
- parser: n,
19
- get db() {
20
- return new i();
21
- },
22
- renderer: r,
23
- styles: t,
24
- init: /* @__PURE__ */ e((e) => {
25
- e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
- }, "init")
27
- };
28
- //#endregion
29
- export { a as diagram };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-DYKLwCEy.js";
2
- import { p as e } from "./mermaid-parser.core-C_69nk7j.js";
3
- export { e as createGitGraphServices };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-DYKLwCEy.js";
2
- import { d as e } from "./mermaid-parser.core-C_69nk7j.js";
3
- export { e as createInfoServices };