dynamic-mui 2.2.0 → 2.3.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 (167) hide show
  1. package/README.md +142 -5
  2. package/dist/accordion-Bf0VwGuE.js +1 -0
  3. package/dist/accordion-DEd2a2Ps.mjs +23 -0
  4. package/dist/addressfield-Dfd9ilpe.js +1 -0
  5. package/dist/addressfield-FjNJCCuC.mjs +152 -0
  6. package/dist/asyncautocomplete-9O6nwGP_.js +1 -0
  7. package/dist/asyncautocomplete-B8qI_lz9.mjs +89 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-D8sVXV1g.mjs +64 -0
  11. package/dist/cascadeselect-DeoPn4_V.js +1 -0
  12. package/dist/colorpicker-BcnqB34i.js +1 -0
  13. package/dist/colorpicker-DcyceL6g.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +99 -10
  16. package/dist/components/controls/index.d.ts +45 -79
  17. package/dist/consentfield-B_qBOIuX.mjs +78 -0
  18. package/dist/consentfield-CR69IP1l.js +1 -0
  19. package/dist/datatable-BIQznwQe.mjs +20 -0
  20. package/dist/datatable-BWlcUP0M.js +1 -0
  21. package/dist/dynamic-mui.cjs +1 -0
  22. package/dist/dynamic-mui.mjs +32 -0
  23. package/dist/editabletable-BdywdA42.js +1 -0
  24. package/dist/editabletable-D6_U9op8.mjs +126 -0
  25. package/dist/fileupload-CugTpR-B.mjs +172 -0
  26. package/dist/fileupload-YzpAUgok.js +1 -0
  27. package/dist/formrepeater-B_2UOIBm.js +1 -0
  28. package/dist/formrepeater-Cxawn2sQ.mjs +71 -0
  29. package/dist/formwizard-CCBY6s19.js +1 -0
  30. package/dist/formwizard-Cfd5IPkE.mjs +83 -0
  31. package/dist/geofield-CJm8hivf.js +1 -0
  32. package/dist/geofield-k2V0hglK.mjs +104 -0
  33. package/dist/group-D40b3E1V.mjs +23 -0
  34. package/dist/group-IFZTzo-g.js +1 -0
  35. package/dist/imagelist-Bn9QhIv7.js +1 -0
  36. package/dist/imagelist-rqmJajHt.mjs +18 -0
  37. package/dist/index-Bh6BLrzq.mjs +12226 -0
  38. package/dist/index-eJceCjKS.js +43 -0
  39. package/dist/index.d.ts +9 -1
  40. package/dist/intlphone-BbTprmmA.mjs +140 -0
  41. package/dist/intlphone-CmiRFHv-.js +1 -0
  42. package/dist/keyvaluefield-CoOmou7m.js +1 -0
  43. package/dist/keyvaluefield-zD6Kf4D0.mjs +125 -0
  44. package/dist/line-B-DwR1hm.mjs +20 -0
  45. package/dist/line-BkymZu31.js +1 -0
  46. package/dist/lineitemlist-BRsW0O7Z.js +1 -0
  47. package/dist/lineitemlist-BZbAId8H.mjs +166 -0
  48. package/dist/list-BhTzYFrR.mjs +20 -0
  49. package/dist/list-DWf2NWix.js +1 -0
  50. package/dist/locationfield-BZpGC10B.mjs +119 -0
  51. package/dist/locationfield-DC_2IN-B.js +1 -0
  52. package/dist/markdowneditor-B5F4okCW.mjs +90 -0
  53. package/dist/markdowneditor-Coi3sksx.js +2 -0
  54. package/dist/matrixfield-CUo7zFWC.mjs +117 -0
  55. package/dist/matrixfield-DAjfXU96.js +1 -0
  56. package/dist/mixChart-C3o184UT.js +1 -0
  57. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  58. package/dist/multitextbox-Cq7vt1-g.js +1 -0
  59. package/dist/multitextbox-CsNOrHZP.mjs +78 -0
  60. package/dist/npsscale-BWpMrK_O.js +1 -0
  61. package/dist/npsscale-Cb8NxADb.mjs +87 -0
  62. package/dist/numberstepper-BqQeBbR9.js +1 -0
  63. package/dist/numberstepper-DLk_r1HM.mjs +128 -0
  64. package/dist/pie-CJSL8Sv5.js +1 -0
  65. package/dist/pie-CL29dlh5.mjs +20 -0
  66. package/dist/richtexteditor-BUrvVR_T.js +1 -0
  67. package/dist/richtexteditor-pQIK2f-6.mjs +141 -0
  68. package/dist/s3Upload-B0JeoLkS.js +1 -0
  69. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  70. package/dist/signature-CFv0jhVN.mjs +1225 -0
  71. package/dist/signature-G-XCOszC.js +2 -0
  72. package/dist/stepper-Bc9NlbU7.js +1 -0
  73. package/dist/stepper-U0kv127E.mjs +140 -0
  74. package/dist/summaryfield-B_bePxLk.js +1 -0
  75. package/dist/summaryfield-QcpYr9Xt.mjs +96 -0
  76. package/dist/tabs-Cs9eNEbR.js +1 -0
  77. package/dist/tabs-DCLyTKVm.mjs +39 -0
  78. package/dist/tagsinput-D1VP8Bjq.mjs +58 -0
  79. package/dist/tagsinput-DlopThdw.js +1 -0
  80. package/dist/util/dayjsSetup.d.ts +2 -0
  81. package/dist/util/registry.d.ts +29 -0
  82. package/dist/util/resolvers.d.ts +45 -0
  83. package/dist/util/useFormEngine.d.ts +74 -0
  84. package/dist/util/validateSchema.d.ts +23 -0
  85. package/dist/v4-BysszJq8.mjs +30 -0
  86. package/dist/v4-CqdK_b8Y.js +1 -0
  87. package/package.json +38 -12
  88. package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
  89. package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
  90. package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
  91. package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
  92. package/dist/ChartsGrid-BCRTvNTr.js +0 -3
  93. package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
  94. package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
  95. package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
  96. package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
  97. package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
  98. package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
  99. package/dist/ChartsYAxis-fpevi1sP.js +0 -1
  100. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  101. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  102. package/dist/clampAngle-BvZjnf53.mjs +0 -11
  103. package/dist/clampAngle-DpAsDoeT.js +0 -1
  104. package/dist/createSelector-B-9FwV16.mjs +0 -430
  105. package/dist/createSelector-f0oqn8Lr.js +0 -7
  106. package/dist/date-utils-CFUUt6NL.js +0 -4
  107. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  108. package/dist/dynamic-mui.cjs.js +0 -1
  109. package/dist/dynamic-mui.es.js +0 -22
  110. package/dist/index--8Zky9Oh.js +0 -299
  111. package/dist/index-6WTs1Xy_.js +0 -1
  112. package/dist/index-B1R1akM2.js +0 -1
  113. package/dist/index-BW8_rRff.js +0 -7
  114. package/dist/index-BXFVK_GX.js +0 -1
  115. package/dist/index-B_KNUTjy.js +0 -1
  116. package/dist/index-BhaKvHkU.mjs +0 -62051
  117. package/dist/index-Bif92ima.js +0 -1
  118. package/dist/index-BnZOu8CL.js +0 -1
  119. package/dist/index-CDxpgRlR.mjs +0 -7
  120. package/dist/index-CThMfvtJ.mjs +0 -2555
  121. package/dist/index-CVqLvm8B.js +0 -1
  122. package/dist/index-CodJBIn6.mjs +0 -1665
  123. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  124. package/dist/index-CslPwsrf.mjs +0 -4
  125. package/dist/index-CuV0MQzZ.mjs +0 -1173
  126. package/dist/index-DA0XouZs.mjs +0 -153
  127. package/dist/index-DKS5Sz9e.js +0 -14
  128. package/dist/index-DSkYYZuW.mjs +0 -4
  129. package/dist/index-DU78_FiA.js +0 -1
  130. package/dist/index-D_mYhgJ0.js +0 -10
  131. package/dist/index-DcWfyXJp.mjs +0 -92
  132. package/dist/index-Dlimbnxj.mjs +0 -2965
  133. package/dist/index-MllWgTJ5.mjs +0 -9372
  134. package/dist/index-in5z9hUb.js +0 -133
  135. package/dist/index-qUW7FnZ-.mjs +0 -20540
  136. package/dist/index.browser-BSu11T_q.mjs +0 -363
  137. package/dist/index.browser-By7-GABP.js +0 -4
  138. package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
  139. package/dist/isDeepEqual-CqxZGVRk.js +0 -1
  140. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  141. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  142. package/dist/loadSts-Cic6UToN.mjs +0 -593
  143. package/dist/loadSts-csbFP6zX.js +0 -1
  144. package/dist/main.d.ts +0 -1
  145. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  146. package/dist/noAuth-JPA2o4dt.js +0 -1
  147. package/dist/playground/AIContext.d.ts +0 -18
  148. package/dist/playground/AIPanel.d.ts +0 -10
  149. package/dist/playground/Builder.d.ts +0 -1
  150. package/dist/playground/Canvas.d.ts +0 -9
  151. package/dist/playground/DemoGallery.d.ts +0 -6
  152. package/dist/playground/PropertiesEditor.d.ts +0 -10
  153. package/dist/playground/Sidebar.d.ts +0 -9
  154. package/dist/playground/demoForms.d.ts +0 -3
  155. package/dist/playground/demoRecipes.d.ts +0 -15
  156. package/dist/playground/demoVariants.d.ts +0 -11
  157. package/dist/playground/documentation.d.ts +0 -6
  158. package/dist/playground/templates.d.ts +0 -7
  159. package/dist/playground/testData.d.ts +0 -2
  160. package/dist/test/setup.d.ts +0 -0
  161. package/dist/theme/theme.d.ts +0 -6
  162. package/dist/useAxis-DSbfEtO7.js +0 -3
  163. package/dist/useAxis-SiNBMMWq.mjs +0 -3010
  164. package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
  165. package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
  166. package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
  167. package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
@@ -0,0 +1,30 @@
1
+ const e = [];
2
+ for (let n = 0; n < 256; ++n)
3
+ e.push((n + 256).toString(16).slice(1));
4
+ function i(n, t = 0) {
5
+ return (e[n[t + 0]] + e[n[t + 1]] + e[n[t + 2]] + e[n[t + 3]] + "-" + e[n[t + 4]] + e[n[t + 5]] + "-" + e[n[t + 6]] + e[n[t + 7]] + "-" + e[n[t + 8]] + e[n[t + 9]] + "-" + e[n[t + 10]] + e[n[t + 11]] + e[n[t + 12]] + e[n[t + 13]] + e[n[t + 14]] + e[n[t + 15]]).toLowerCase();
6
+ }
7
+ let o;
8
+ const r = new Uint8Array(16);
9
+ function y() {
10
+ if (!o) {
11
+ if (typeof crypto > "u" || !crypto.getRandomValues)
12
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
13
+ o = crypto.getRandomValues.bind(crypto);
14
+ }
15
+ return o(r);
16
+ }
17
+ const m = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), d = { randomUUID: m };
18
+ function p(n, t, c) {
19
+ n = n || {};
20
+ const u = n.random ?? n.rng?.() ?? y();
21
+ if (u.length < 16)
22
+ throw new Error("Random bytes length must be >= 16");
23
+ return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, i(u);
24
+ }
25
+ function g(n, t, c) {
26
+ return d.randomUUID && !n ? d.randomUUID() : p(n);
27
+ }
28
+ export {
29
+ g as v
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=[];for(let n=0;n<256;++n)e.push((n+256).toString(16).slice(1));function i(n,t=0){return(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase()}let o;const r=new Uint8Array(16);function y(){if(!o){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(r)}const m=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),d={randomUUID:m};function p(n,t,c){n=n||{};const u=n.random??n.rng?.()??y();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,i(u)}function g(n,t,c){return d.randomUUID&&!n?d.randomUUID():p(n)}exports.v4=g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-mui",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "author": "Dinakaran S",
5
5
  "user": "dinakarans",
6
6
  "repository": {
@@ -11,35 +11,54 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/DinakaranS/-dynamic-mui/issues"
13
13
  },
14
- "main": "./dist/dynamic-mui.cjs.js",
15
- "module": "./dist/dynamic-mui.es.js",
14
+ "main": "./dist/dynamic-mui.cjs",
15
+ "module": "./dist/dynamic-mui.mjs",
16
16
  "types": "./dist/index.d.ts",
17
17
  "exports": {
18
18
  ".": {
19
19
  "types": "./dist/index.d.ts",
20
- "import": "./dist/dynamic-mui.es.js",
21
- "require": "./dist/dynamic-mui.cjs.js"
20
+ "import": "./dist/dynamic-mui.mjs",
21
+ "require": "./dist/dynamic-mui.cjs"
22
22
  }
23
23
  },
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "!dist/playground"
26
27
  ],
27
28
  "peerDependencies": {
29
+ "@aws-sdk/client-s3": "^3.0.0",
30
+ "@aws-sdk/credential-providers": "^3.0.0",
28
31
  "@emotion/react": "^11.0.0",
29
32
  "@emotion/styled": "^11.0.0",
30
33
  "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0",
31
34
  "@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0",
32
- "@mui/x-charts": "^6.0.0 || ^7.0.0",
33
- "@mui/x-data-grid": "^6.0.0 || ^7.0.0",
34
- "@mui/x-date-pickers": "^6.0.0 || ^7.0.0",
35
+ "@mui/x-charts": "^6.0.0 || ^7.0.0 || ^8.0.0",
36
+ "@mui/x-data-grid": "^6.0.0 || ^7.0.0 || ^8.0.0",
37
+ "@mui/x-date-pickers": "^6.0.0 || ^7.0.0 || ^8.0.0",
38
+ "dayjs": "^1.11.0",
39
+ "pdfmake": "^0.2.0 || ^0.3.0",
35
40
  "react": "^18.0.0 || ^19.0.0",
36
41
  "react-dom": "^18.0.0 || ^19.0.0"
37
42
  },
43
+ "peerDependenciesMeta": {
44
+ "@aws-sdk/client-s3": {
45
+ "optional": true
46
+ },
47
+ "@aws-sdk/credential-providers": {
48
+ "optional": true
49
+ },
50
+ "@mui/x-charts": {
51
+ "optional": true
52
+ },
53
+ "@mui/x-data-grid": {
54
+ "optional": true
55
+ },
56
+ "pdfmake": {
57
+ "optional": true
58
+ }
59
+ },
38
60
  "dependencies": {
39
- "@aws-sdk/client-s3": "^3.996.0",
40
- "@aws-sdk/credential-providers": "^3.996.0",
41
61
  "@dnd-kit/core": "^6.3.1",
42
- "dayjs": "^1.11.19",
43
62
  "lodash": "^4.17.23",
44
63
  "numeral": "^2.0.6",
45
64
  "react-number-format": "^5.4.4",
@@ -69,6 +88,8 @@
69
88
  ]
70
89
  },
71
90
  "devDependencies": {
91
+ "@aws-sdk/client-s3": "^3.996.0",
92
+ "@aws-sdk/credential-providers": "^3.996.0",
72
93
  "@emotion/react": "^11.14.0",
73
94
  "@emotion/styled": "^11.14.1",
74
95
  "@eslint/js": "^10.0.1",
@@ -80,11 +101,14 @@
80
101
  "@testing-library/dom": "^10.4.1",
81
102
  "@testing-library/jest-dom": "^6.9.1",
82
103
  "@testing-library/react": "^16.3.2",
104
+ "@types/jest-axe": "^3.5.9",
83
105
  "@types/lodash": "^4.17.24",
84
106
  "@types/numeral": "^2.0.5",
107
+ "@types/pdfmake": "^0.3.3",
85
108
  "@types/react": "^19.2.14",
86
109
  "@types/react-dom": "^19.2.3",
87
110
  "@types/validator": "^13.15.10",
111
+ "dayjs": "^1.11.19",
88
112
  "@vitejs/plugin-react": "^5.1.4",
89
113
  "eslint": "^10.0.2",
90
114
  "eslint-plugin-import": "^2.32.0",
@@ -92,7 +116,9 @@
92
116
  "eslint-plugin-react-hooks": "^7.0.1",
93
117
  "eslint-plugin-react-refresh": "^0.5.2",
94
118
  "globals": "^17.3.0",
119
+ "jest-axe": "^10.0.0",
95
120
  "jsdom": "^28.1.0",
121
+ "pdfmake": "^0.3.11",
96
122
  "react": "^19.2.4",
97
123
  "react-dom": "^19.2.4",
98
124
  "typescript": "^5.9.3",
@@ -1,3 +0,0 @@
1
- "use strict";const q=require("react"),P=require("./useAxis-DSbfEtO7.js"),b=require("./index--8Zky9Oh.js"),j=require("./clampAngle-DpAsDoeT.js");function J(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=J(q);function F(){const[e,t]=O.useState(!1);return O.useEffect(()=>{t(!0)},[]),e}function V(e){return typeof e=="number"&&!Number.isFinite(e)}function Q(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function v(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function C(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60*24)}function K(e,t){return Math.abs(t.getTime()-e.getTime())/(1e3*60*60)}const tt={years:{getTickNumber:Q,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(v(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3===0,format:new Intl.DateTimeFormat("default",{month:"short"}).format},months:{getTickNumber:v,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat("default",{month:"short"}).format},biweekly:{getTickNumber:(e,t)=>C(e,t)/14,isTick:(e,t)=>(t.getDay()<e.getDay()||C(t,e)>7)&&Math.floor(t.getDate()/7)%2===1,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},weeks:{getTickNumber:(e,t)=>C(e,t)/7,isTick:(e,t)=>t.getDay()<e.getDay()||C(t,e)>=7,format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},days:{getTickNumber:C,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat("default",{day:"numeric"}).format},hours:{getTickNumber:K,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat("default",{hour:"2-digit",minute:"2-digit"}).format}},A={start:0,extremities:0,end:1,middle:.5};function S(e,t,n){return e(t)-(e.step()-e.bandwidth())/2+A[n]*e.step()}function et(e,t,n){const s=Math.abs(t[1]-t[0]),i=Math.ceil(e.length/(s/n));return Number.isNaN(i)||i<=1?e:e.filter((o,c)=>c%i===0)}function nt(e,t,n,s,i){if(n.length===0)return[];const o=s.range()[0]>s.range()[1],c=e.findIndex(l=>i(S(s,l,o?"start":"end"))),u=e.findLastIndex(l=>i(S(s,l,o?"end":"start"))),r=e[0],a=e[e.length-1];if(!(r instanceof Date)||!(a instanceof Date))return[];let d=0;for(let l=0;l<n.length;l+=1)if(n[l].getTickNumber(r,a)!==0){d=l;break}let g=d;for(let l=d;l<n.length;l+=1){if(l===n.length-1){g=l;break}const x=n[l].getTickNumber(r,a),f=n[l+1].getTickNumber(r,a);if(f>t||t/x<f/t){g=l;break}}const m=[];for(let l=Math.max(1,c);l<=u;l+=1)for(let x=d;x<=g;x+=1){const f=e[l-1],k=e[l];if(f instanceof Date&&k instanceof Date&&n[x].isTick(f,k)){m.push({index:l,formatter:n[x].format});break}}return m}function it(e){const{scale:t,tickNumber:n,valueFormatter:s,tickInterval:i,tickPlacement:o,tickLabelPlacement:c,tickSpacing:u,isInside:r,ordinalTimeTicks:a}=e;if(a!==void 0&&P.isDateData(t.domain())&&P.isOrdinalScale(t)){const f=t.domain();if(f.length===0||f.length===1)return[];const k="middle";return nt(f,n,a.map(p=>typeof p=="string"?tt[p]:p),t,r).map(({index:p,formatter:I})=>{const M=f[p],T=I(M);return{value:M,formattedValue:T,offset:S(t,M,k),labelOffset:0}})}const d=o??"extremities";if(P.isOrdinalScale(t)){const f=t.domain(),k=c??"middle";let h=f;if(typeof i=="object"&&i!=null?h=i:(typeof i=="function"&&(h=h.filter(i)),u!==void 0&&u>0&&(h=et(h,t.range(),u))),h.length===0)return[];if(t.bandwidth()>0){const p=t.range()[0]>t.range()[1],I=h.findIndex(T=>r(S(t,T,p?"start":"end"))),M=h.findLastIndex(T=>r(S(t,T,p?"end":"start")));return[...h.slice(I,M+1).map(T=>{const $=`${T}`;return{value:T,formattedValue:s?.(T,{location:"tick",scale:t,tickNumber:n,defaultTickLabel:$})??$,offset:S(t,T,d),labelOffset:k==="tick"?0:t.step()*(A[k]-A[d])}}),...d==="extremities"&&M===f.length-1&&r(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return h.map(p=>{const I=`${p}`;return{value:p,formattedValue:s?.(p,{location:"tick",scale:t,tickNumber:n,defaultTickLabel:I})??I,offset:t(p),labelOffset:0}})}if(t.domain().some(V))return[];const m=c,l=typeof i=="object"?i:rt(t,n),x=[];for(let f=0;f<l.length;f+=1){const k=l[f],h=t(k);if(r(h)){const p=t.tickFormat(n)(k);x.push({value:k,formattedValue:s?.(k,{location:"tick",scale:t,tickNumber:n,defaultTickLabel:p})??p,offset:h,labelOffset:m==="middle"?t(l[f-1]??0)-(h+t(l[f-1]??0))/2:0})}}return x}function rt(e,t){const n=e.domain();return n[0]===n[1]?[n[0]]:e.ticks(t)}function st(e){const{scale:t,tickNumber:n,valueFormatter:s,tickInterval:i,tickPlacement:o="extremities",tickLabelPlacement:c,tickSpacing:u,direction:r,ordinalTimeTicks:a}=e,{instance:d}=P.useChartContext(),g=r==="x"?d.isXInside:d.isYInside;return O.useMemo(()=>it({scale:t,tickNumber:n,tickPlacement:o,tickInterval:i,tickLabelPlacement:c,tickSpacing:u,valueFormatter:s,isInside:g,ordinalTimeTicks:a}),[t,n,o,i,c,u,s,g,a])}const B=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ot(e){return e.length}function at(e){const t=B.segment(e);let n=0;for(const s of t)n+=1;return n}const ct=B?at:ot;function lt(e){return e*(Math.PI/180)}const z=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ut(e,t){return e.slice(0,t)}function dt(e,t){const n=z.segment(e);let s="",i=0;for(const o of n)if(s+=o.segment,i+=1,i>=t)break;return s}const ft=z?dt:ut,R="…";function gt(e,t){const{width:n,height:s,measureText:i}=t,o=lt(t.angle),c=i(e),u=Math.abs(c.width*Math.cos(o))+Math.abs(c.height*Math.sin(o)),r=Math.abs(c.width*Math.sin(o))+Math.abs(c.height*Math.cos(o));return u<=n&&r<=s}function mt(e,t){if(t(e))return e;let n=e,s=1,i=1/2;const o=ct(e);let c=o,u=o,r=null;do{if(u=c,c=Math.floor(o*i),c===0)break;n=ft(e,c).trim();const a=t(n+R);s+=1,a?(r=n,i+=1/2**s):i-=1/2**s}while(Math.abs(c-u)!==1);return r?r+R:""}function H(){return typeof window>"u"}const w=new Map,Y=2e3,ht=new Set(["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"]);function L(e,t){return ht.has(e)&&t===+t?`${t}px`:t}const pt=/([A-Z])/g;function E(e){return String(e).replace(pt,t=>`-${t.toLowerCase()}`)}function U(e){let t="";for(const n in e)if(Object.hasOwn(e,n)){const s=n,i=e[s];if(i===void 0)continue;t+=`${E(s)}:${L(s,i)};`}return t}const G=(e,t={})=>{if(e==null||H())return{width:0,height:0};const n=String(e),s=U(t),i=`${n}-${s}`,o=w.get(i);if(o)return o;try{const c=X(),u=document.createElementNS("http://www.w3.org/2000/svg","text");Object.keys(t).map(a=>(u.style[E(a)]=L(a,t[a]),a)),u.textContent=n,c.replaceChildren(u);const r=W(u);return w.set(i,r),w.size+1>Y&&w.clear(),process.env.NODE_ENV==="test"&&c.replaceChildren(),r}catch{return{width:0,height:0}}};function bt(e,t={}){if(H())return new Map(Array.from(e).map(r=>[r,{width:0,height:0}]));const n=new Map,s=[],i=U(t);for(const r of e){const a=`${r}-${i}`,d=w.get(a);d?n.set(r,d):s.push(r)}const o=X(),c=b._extends({},t);Object.keys(c).map(r=>(o.style[E(r)]=L(r,c[r]),r));const u=[];for(const r of s){const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.textContent=`${r}`,u.push(a)}o.replaceChildren(...u);for(let r=0;r<s.length;r+=1){const a=s[r],d=o.children[r],g=W(d),m=`${a}-${i}`;w.set(m,g),n.set(a,g)}return w.size+1>Y&&w.clear(),process.env.NODE_ENV==="test"&&o.replaceChildren(),n}function W(e){try{const t=e.getBBox();return{width:t.width,height:t.height}}catch{const t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}let y=null;function X(){return y===null&&(y=document.createElementNS("http://www.w3.org/2000/svg","svg"),y.setAttribute("aria-hidden","true"),y.style.position="absolute",y.style.top="-20000px",y.style.left="0",y.style.padding="0",y.style.margin="0",y.style.border="none",y.style.pointerEvents="none",y.style.visibility="hidden",y.style.contain="strict",document.body.appendChild(y)),y}function xt(e){return b.generateUtilityClass("MuiChartsAxis",e)}const N=b.generateUtilityClasses("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]);function kt({style:e,needsComputation:t,text:n}){return n.split(`
2
- `).map(s=>b._extends({text:s},t?G(s,e):{width:0,height:0}))}const yt=["x","y","style","text","ownerState"],Tt=["angle","textAnchor","dominantBaseline"];function Z(e){const{x:t,y:n,style:s,text:i}=e,o=b._objectWithoutPropertiesLoose(e,yt),c=s??{},{angle:u,textAnchor:r,dominantBaseline:a}=c,d=b._objectWithoutPropertiesLoose(c,Tt),g=F(),m=O.useMemo(()=>kt({style:d,needsComputation:g&&i.includes(`
3
- `),text:i}),[d,i,g]);let l;switch(a){case"hanging":case"text-before-edge":l=0;break;case"central":l=(m.length-1)/2*-m[0].height;break;default:l=(m.length-1)*-m[0].height;break}return b.jsxRuntimeExports.jsx("text",b._extends({},o,{transform:u?`rotate(${u}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:r,dominantBaseline:a,style:d,children:m.map((x,f)=>b.jsxRuntimeExports.jsx("tspan",{x:t,dy:`${f===0?l:m[0].height}px`,dominantBaseline:a,children:x.text},f))}))}process.env.NODE_ENV!=="production"&&(Z.propTypes={lineHeight:b.PropTypes.number,needsComputation:b.PropTypes.bool,ownerState:b.PropTypes.any,style:b.PropTypes.object,text:b.PropTypes.string.isRequired});function wt(e){const t=j.clampAngle(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function It(e){const t=j.clampAngle(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function Mt(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const D={start:0,extremities:0,end:1,middle:.5,tick:0};function St(e){const{scale:t,tickInterval:n,tickLabelPlacement:s="middle",tickPlacement:i="extremities",groups:o}=e;return O.useMemo(()=>{const c=t.domain(),u=typeof n=="function"&&c.filter(n)||typeof n=="object"&&n||c;if(t.bandwidth()>0){const r=_(u,o,i,s,t);return r[0]&&(r[0].ignoreTick=!0),[{formattedValue:void 0,offset:t.range()[0],labelOffset:0,groupIndex:o.length-1},...r,{formattedValue:void 0,offset:t.range()[1],labelOffset:0,groupIndex:o.length-1}]}return _(u,o,i,s,t)},[t,n,o,i,s])}function _(e,t,n,s,i){const o=[],c=new Map;let u=0;for(let r=0;r<t.length;r+=1)for(let a=0;a<e.length;a+=1){const d=e[a],g=t[r].getValue(d,a),m=o[o.length-1];if(m?.value!==g||m?.groupIndex!==r){u=1;const x=P.isOrdinalScale(i)?i(d)-(i.step()-i.bandwidth())/2+D[n]*i.step():i(d),f=i.step()*u*(D[s]-D[n]);o.push({value:g,formattedValue:`${g}`,offset:x,groupIndex:r,dataIndex:a,ignoreTick:!1,labelOffset:f}),c.has(a)||c.set(a,new Set);const k=c.get(a);for(const h of k.values())o[h].ignoreTick=!0;k.add(o.length-1)}else{u+=1;const x=i.step()*u*(D[s]-D[n]);m.labelOffset=x}}return o}const Ct=b.styled("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${N.tickLabel}`]:b._extends({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${N.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${N.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${N.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));exports.AxisRoot=Ct;exports.ChartsText=Z;exports.axisClasses=N;exports.batchMeasureStrings=bt;exports.doesTextFitInRect=gt;exports.ellipsize=mt;exports.getAxisUtilityClass=xt;exports.getDefaultBaseline=It;exports.getDefaultTextAnchor=wt;exports.getStringSize=G;exports.invertTextAnchor=Mt;exports.isInfinity=V;exports.useIsHydrated=F;exports.useTicks=st;exports.useTicksGrouped=St;