@pie-lib/charting 7.0.3 → 7.0.4-next.0

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 (269) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +23 -0
  2. package/dist/actions-button.d.ts +26 -0
  3. package/dist/actions-button.js +84 -0
  4. package/dist/axes.d.ts +84 -0
  5. package/dist/axes.js +376 -0
  6. package/dist/bars/bar.d.ts +47 -0
  7. package/dist/bars/bar.js +27 -0
  8. package/dist/bars/common/bars.d.ts +98 -0
  9. package/dist/bars/common/bars.js +174 -0
  10. package/dist/bars/common/correct-check-icon.d.ts +18 -0
  11. package/dist/bars/common/correct-check-icon.js +50 -0
  12. package/dist/bars/histogram.d.ts +47 -0
  13. package/dist/bars/histogram.js +28 -0
  14. package/dist/chart-setup.d.ts +29 -0
  15. package/dist/chart-setup.js +231 -0
  16. package/dist/chart-type.d.ts +32 -0
  17. package/dist/chart-type.js +68 -0
  18. package/dist/chart-types.d.ts +41 -0
  19. package/dist/chart-types.js +17 -0
  20. package/dist/chart.d.ts +88 -0
  21. package/dist/chart.js +250 -0
  22. package/dist/common/correctness-indicators.d.ts +70 -0
  23. package/dist/common/correctness-indicators.js +106 -0
  24. package/dist/common/drag-handle.d.ts +129 -0
  25. package/dist/common/drag-handle.js +120 -0
  26. package/dist/common/drag-icon.d.ts +23 -0
  27. package/dist/common/drag-icon.js +45 -0
  28. package/dist/common/styles.d.ts +23 -0
  29. package/dist/common/styles.js +17 -0
  30. package/dist/grid.d.ts +45 -0
  31. package/dist/grid.js +56 -0
  32. package/dist/index.d.ts +14 -0
  33. package/dist/index.js +6 -0
  34. package/dist/key-legend.d.ts +19 -0
  35. package/dist/key-legend.js +46 -0
  36. package/dist/line/common/drag-handle.d.ts +120 -0
  37. package/dist/line/common/drag-handle.js +92 -0
  38. package/dist/line/common/line.d.ts +96 -0
  39. package/dist/line/common/line.js +114 -0
  40. package/dist/line/line-cross.d.ts +47 -0
  41. package/dist/line/line-cross.js +133 -0
  42. package/dist/line/line-dot.d.ts +47 -0
  43. package/dist/line/line-dot.js +101 -0
  44. package/dist/mark-label.d.ts +55 -0
  45. package/dist/mark-label.js +139 -0
  46. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +100 -0
  47. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +45 -0
  48. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +46 -0
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +61 -0
  50. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +42 -0
  51. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  52. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  53. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
  54. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  55. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  56. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
  57. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
  58. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
  59. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  60. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +49 -0
  61. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
  62. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/align.js +6 -0
  63. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/base.js +6 -0
  64. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/clamp.js +6 -0
  65. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/constant.js +6 -0
  66. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/domain.js +6 -0
  67. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/exponent.js +6 -0
  68. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/interpolate.js +10 -0
  69. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/nice.js +37 -0
  70. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/padding.js +6 -0
  71. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/range.js +6 -0
  72. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +9 -0
  73. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/round.js +7 -0
  74. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +58 -0
  75. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/unknown.js +6 -0
  76. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +9 -0
  77. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js +9 -0
  78. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js +9 -0
  79. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
  80. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +29 -0
  81. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
  82. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/isUtcScale.js +7 -0
  83. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  84. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +28 -0
  85. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +28 -0
  86. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +46 -0
  87. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +49 -0
  88. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  89. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  90. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +52 -0
  91. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
  92. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
  93. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
  94. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js +8 -0
  95. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js +8 -0
  96. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-time.js +8 -0
  97. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
  98. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
  112. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
  113. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
  114. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
  115. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
  116. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
  117. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
  118. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
  119. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
  120. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
  121. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
  122. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
  123. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
  124. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
  125. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
  126. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
  127. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
  128. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
  129. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
  130. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
  131. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
  132. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
  133. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
  134. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
  135. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
  136. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
  137. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +20 -0
  138. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
  139. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
  140. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
  141. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
  142. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
  143. package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +216 -0
  144. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
  145. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
  146. package/dist/plot/common/plot.d.ts +103 -0
  147. package/dist/plot/common/plot.js +227 -0
  148. package/dist/plot/dot.d.ts +47 -0
  149. package/dist/plot/dot.js +62 -0
  150. package/dist/plot/line.d.ts +47 -0
  151. package/dist/plot/line.js +84 -0
  152. package/dist/tool-menu.d.ts +31 -0
  153. package/dist/utils.d.ts +39 -0
  154. package/dist/utils.js +101 -0
  155. package/package.json +35 -25
  156. package/CHANGELOG.json +0 -17
  157. package/CHANGELOG.md +0 -1116
  158. package/LICENSE.md +0 -5
  159. package/lib/actions-button.js +0 -145
  160. package/lib/actions-button.js.map +0 -1
  161. package/lib/axes.js +0 -643
  162. package/lib/axes.js.map +0 -1
  163. package/lib/bars/bar.js +0 -58
  164. package/lib/bars/bar.js.map +0 -1
  165. package/lib/bars/common/bars.js +0 -277
  166. package/lib/bars/common/bars.js.map +0 -1
  167. package/lib/bars/common/correct-check-icon.js +0 -54
  168. package/lib/bars/common/correct-check-icon.js.map +0 -1
  169. package/lib/bars/histogram.js +0 -59
  170. package/lib/bars/histogram.js.map +0 -1
  171. package/lib/chart-setup.js +0 -382
  172. package/lib/chart-setup.js.map +0 -1
  173. package/lib/chart-type.js +0 -80
  174. package/lib/chart-type.js.map +0 -1
  175. package/lib/chart-types.js +0 -22
  176. package/lib/chart-types.js.map +0 -1
  177. package/lib/chart.js +0 -384
  178. package/lib/chart.js.map +0 -1
  179. package/lib/common/correctness-indicators.js +0 -156
  180. package/lib/common/correctness-indicators.js.map +0 -1
  181. package/lib/common/drag-handle.js +0 -160
  182. package/lib/common/drag-handle.js.map +0 -1
  183. package/lib/common/drag-icon.js +0 -52
  184. package/lib/common/drag-icon.js.map +0 -1
  185. package/lib/common/styles.js +0 -22
  186. package/lib/common/styles.js.map +0 -1
  187. package/lib/grid.js +0 -112
  188. package/lib/grid.js.map +0 -1
  189. package/lib/index.js +0 -42
  190. package/lib/index.js.map +0 -1
  191. package/lib/key-legend.js +0 -87
  192. package/lib/key-legend.js.map +0 -1
  193. package/lib/line/common/drag-handle.js +0 -146
  194. package/lib/line/common/drag-handle.js.map +0 -1
  195. package/lib/line/common/line.js +0 -214
  196. package/lib/line/common/line.js.map +0 -1
  197. package/lib/line/line-cross.js +0 -214
  198. package/lib/line/line-cross.js.map +0 -1
  199. package/lib/line/line-dot.js +0 -158
  200. package/lib/line/line-dot.js.map +0 -1
  201. package/lib/mark-label.js +0 -237
  202. package/lib/mark-label.js.map +0 -1
  203. package/lib/plot/common/plot.js +0 -349
  204. package/lib/plot/common/plot.js.map +0 -1
  205. package/lib/plot/dot.js +0 -110
  206. package/lib/plot/dot.js.map +0 -1
  207. package/lib/plot/line.js +0 -140
  208. package/lib/plot/line.js.map +0 -1
  209. package/lib/tool-menu.js +0 -106
  210. package/lib/tool-menu.js.map +0 -1
  211. package/lib/utils.js +0 -189
  212. package/lib/utils.js.map +0 -1
  213. package/src/__tests__/actions-button.test.jsx +0 -280
  214. package/src/__tests__/axes.test.jsx +0 -667
  215. package/src/__tests__/chart-setup.test.jsx +0 -532
  216. package/src/__tests__/chart-type.test.jsx +0 -23
  217. package/src/__tests__/chart.test.jsx +0 -86
  218. package/src/__tests__/grid.test.jsx +0 -37
  219. package/src/__tests__/key-legend.test.jsx +0 -223
  220. package/src/__tests__/mark-label.test.jsx +0 -33
  221. package/src/__tests__/tool-menu.test.jsx +0 -522
  222. package/src/__tests__/utils.js +0 -36
  223. package/src/__tests__/utils.test.js +0 -100
  224. package/src/actions-button.jsx +0 -115
  225. package/src/axes.jsx +0 -594
  226. package/src/bars/__tests__/bar.test.jsx +0 -45
  227. package/src/bars/__tests__/histogram.test.jsx +0 -45
  228. package/src/bars/__tests__/utils.js +0 -30
  229. package/src/bars/bar.js +0 -28
  230. package/src/bars/common/__tests__/bars.test.jsx +0 -68
  231. package/src/bars/common/__tests__/utils.js +0 -30
  232. package/src/bars/common/bars.jsx +0 -249
  233. package/src/bars/common/correct-check-icon.jsx +0 -25
  234. package/src/bars/histogram.js +0 -28
  235. package/src/chart-setup.jsx +0 -356
  236. package/src/chart-type.js +0 -59
  237. package/src/chart-types.js +0 -8
  238. package/src/chart.jsx +0 -357
  239. package/src/common/__tests__/correctness-indicators.test.jsx +0 -720
  240. package/src/common/__tests__/drag-handle.test.jsx +0 -58
  241. package/src/common/__tests__/utils.js +0 -30
  242. package/src/common/correctness-indicators.jsx +0 -128
  243. package/src/common/drag-handle.jsx +0 -125
  244. package/src/common/drag-icon.jsx +0 -36
  245. package/src/common/styles.js +0 -19
  246. package/src/grid.jsx +0 -80
  247. package/src/index.js +0 -7
  248. package/src/key-legend.jsx +0 -77
  249. package/src/line/__tests__/line-cross.test.jsx +0 -463
  250. package/src/line/__tests__/line-dot.test.jsx +0 -41
  251. package/src/line/__tests__/utils.js +0 -36
  252. package/src/line/common/__tests__/drag-handle.test.jsx +0 -62
  253. package/src/line/common/__tests__/line.test.jsx +0 -79
  254. package/src/line/common/__tests__/utils.js +0 -30
  255. package/src/line/common/drag-handle.jsx +0 -114
  256. package/src/line/common/line.jsx +0 -171
  257. package/src/line/line-cross.js +0 -144
  258. package/src/line/line-dot.js +0 -111
  259. package/src/mark-label.jsx +0 -238
  260. package/src/plot/__tests__/dot.test.jsx +0 -344
  261. package/src/plot/__tests__/line.test.jsx +0 -375
  262. package/src/plot/__tests__/utils.js +0 -30
  263. package/src/plot/common/__tests__/plot.test.jsx +0 -69
  264. package/src/plot/common/__tests__/utils.js +0 -30
  265. package/src/plot/common/plot.jsx +0 -358
  266. package/src/plot/dot.js +0 -74
  267. package/src/plot/line.js +0 -98
  268. package/src/tool-menu.jsx +0 -85
  269. package/src/utils.js +0 -201
@@ -0,0 +1,129 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/common/drag-handle.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare const DragHandle: {
12
+ ({ x, y, width, graphProps, interactive, isHovered, correctness, isPlot, ...rest }: {
13
+ [x: string]: any;
14
+ x: any;
15
+ y: any;
16
+ width: any;
17
+ graphProps: any;
18
+ interactive: any;
19
+ isHovered: any;
20
+ correctness: any;
21
+ isPlot: any;
22
+ }): React.JSX.Element;
23
+ propTypes: {
24
+ x: PropTypes.Validator<number>;
25
+ y: PropTypes.Validator<number>;
26
+ width: PropTypes.Requireable<number>;
27
+ graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
28
+ scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
29
+ x: PropTypes.Validator<(...args: any[]) => any>;
30
+ y: PropTypes.Validator<(...args: any[]) => any>;
31
+ }>>>;
32
+ snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
33
+ x: PropTypes.Validator<(...args: any[]) => any>;
34
+ y: PropTypes.Validator<(...args: any[]) => any>;
35
+ }>>>;
36
+ domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
37
+ min: PropTypes.Validator<number>;
38
+ max: PropTypes.Validator<number>;
39
+ step: PropTypes.Requireable<number>;
40
+ }>>>;
41
+ range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
42
+ min: PropTypes.Validator<number>;
43
+ max: PropTypes.Validator<number>;
44
+ step: PropTypes.Requireable<number>;
45
+ }>>>;
46
+ size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
47
+ width: PropTypes.Validator<number>;
48
+ height: PropTypes.Validator<number>;
49
+ }>>>;
50
+ }>>>;
51
+ interactive: PropTypes.Requireable<boolean>;
52
+ isHovered: PropTypes.Requireable<boolean>;
53
+ correctness: PropTypes.Requireable<PropTypes.InferProps<{
54
+ value: PropTypes.Requireable<string>;
55
+ label: PropTypes.Requireable<string>;
56
+ }>>;
57
+ isPlot: PropTypes.Requireable<boolean>;
58
+ };
59
+ };
60
+ export declare const D: {
61
+ new (props: any): {
62
+ grid: any;
63
+ onStart: any;
64
+ position: any;
65
+ tiny: any;
66
+ getScaledBounds: any;
67
+ getClientPoint: any;
68
+ skipDragOutsideOfBounds: any;
69
+ onDrag: any;
70
+ getDelta: any;
71
+ applyDelta: any;
72
+ onStop: any;
73
+ render(): React.JSX.Element;
74
+ context: unknown;
75
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
76
+ forceUpdate(callback?: (() => void) | undefined): void;
77
+ readonly props: Readonly<{}>;
78
+ state: Readonly<{}>;
79
+ refs: {
80
+ [key: string]: React.ReactInstance;
81
+ };
82
+ componentDidMount?(): void;
83
+ shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
84
+ componentWillUnmount?(): void;
85
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
86
+ getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
87
+ componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
88
+ componentWillMount?(): void;
89
+ UNSAFE_componentWillMount?(): void;
90
+ componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
91
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
92
+ componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
93
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
94
+ };
95
+ propTypes: {
96
+ disabled: PropTypes.Requireable<boolean>;
97
+ onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
98
+ onDrag: PropTypes.Requireable<(...args: any[]) => any>;
99
+ onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
100
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
101
+ onMove: PropTypes.Requireable<(...args: any[]) => any>;
102
+ graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
103
+ scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
104
+ x: PropTypes.Validator<(...args: any[]) => any>;
105
+ y: PropTypes.Validator<(...args: any[]) => any>;
106
+ }>>>;
107
+ snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
108
+ x: PropTypes.Validator<(...args: any[]) => any>;
109
+ y: PropTypes.Validator<(...args: any[]) => any>;
110
+ }>>>;
111
+ domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
112
+ min: PropTypes.Validator<number>;
113
+ max: PropTypes.Validator<number>;
114
+ step: PropTypes.Requireable<number>;
115
+ }>>>;
116
+ range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
117
+ min: PropTypes.Validator<number>;
118
+ max: PropTypes.Validator<number>;
119
+ step: PropTypes.Requireable<number>;
120
+ }>>>;
121
+ size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
122
+ width: PropTypes.Validator<number>;
123
+ height: PropTypes.Validator<number>;
124
+ }>>>;
125
+ }>>>;
126
+ };
127
+ contextType?: React.Context<any> | undefined;
128
+ };
129
+ export default D;
@@ -0,0 +1,120 @@
1
+ import { getScale as e } from "../utils.js";
2
+ import t from "./drag-icon.js";
3
+ import "react";
4
+ import n from "prop-types";
5
+ import { styled as r } from "@mui/material/styles";
6
+ import { gridDraggable as i, types as a, utils as o } from "@pie-lib/plot";
7
+ import { color as s } from "@pie-lib/render-ui";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import u from "@mui/icons-material/Check";
10
+ import d from "@mui/icons-material/Close";
11
+ //#region src/common/drag-handle.tsx
12
+ var f = r("svg")(() => ({ overflow: "visible !important" })), p = r("ellipse")(() => ({
13
+ fill: "transparent",
14
+ clipPath: "polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 0%)"
15
+ })), m = r(u)(() => ({
16
+ backgroundColor: s.correct(),
17
+ borderRadius: "16px",
18
+ color: s.defaults.WHITE,
19
+ fontSize: "16px",
20
+ padding: "2px",
21
+ border: `4px solid ${s.defaults.WHITE}`,
22
+ width: "16px",
23
+ height: "16px",
24
+ boxSizing: "unset"
25
+ })), h = r(d)(() => ({
26
+ backgroundColor: s.incorrectWithIcon(),
27
+ borderRadius: "16px",
28
+ color: s.defaults.WHITE,
29
+ fontSize: "16px",
30
+ padding: "2px",
31
+ border: `4px solid ${s.defaults.WHITE}`,
32
+ width: "16px",
33
+ height: "16px",
34
+ boxSizing: "unset"
35
+ })), g = ({ x: n, y: r, width: i, graphProps: a, interactive: o, isHovered: u, correctness: d, isPlot: g, ..._ }) => {
36
+ let { scale: v } = a, y = e(i)?.scale;
37
+ return /* @__PURE__ */ l(f, {
38
+ x: n,
39
+ y: v.y(r) - 10,
40
+ width: i,
41
+ overflow: "visible",
42
+ children: [
43
+ u && !d && o && /* @__PURE__ */ c(t, {
44
+ width: i,
45
+ scaleValue: y,
46
+ color: s.defaults.BORDER_GRAY
47
+ }),
48
+ o && !d && /* @__PURE__ */ c(p, {
49
+ cx: i / 2,
50
+ cy: 10,
51
+ rx: i / 2,
52
+ ry: 66,
53
+ ..._
54
+ }),
55
+ /* @__PURE__ */ c("defs", { children: /* @__PURE__ */ l("filter", {
56
+ id: "bottomShadow",
57
+ x: "0",
58
+ y: "0",
59
+ width: "140%",
60
+ height: "140%",
61
+ children: [
62
+ /* @__PURE__ */ c("feGaussianBlur", {
63
+ in: "SourceAlpha",
64
+ stdDeviation: "3"
65
+ }),
66
+ /* @__PURE__ */ c("feOffset", {
67
+ dx: "0",
68
+ dy: "5",
69
+ result: "offsetblur"
70
+ }),
71
+ /* @__PURE__ */ c("feFlood", { floodColor: "#00000033" }),
72
+ /* @__PURE__ */ c("feComposite", {
73
+ in2: "offsetblur",
74
+ operator: "in"
75
+ }),
76
+ /* @__PURE__ */ l("feMerge", { children: [/* @__PURE__ */ c("feMergeNode", {}), /* @__PURE__ */ c("feMergeNode", { in: "SourceGraphic" })] })
77
+ ]
78
+ }) }),
79
+ d && o && !g && /* @__PURE__ */ c("foreignObject", {
80
+ x: i / 2 - 14,
81
+ y: 0,
82
+ width: 40,
83
+ height: 40,
84
+ children: d.value === "correct" ? /* @__PURE__ */ c(m, { title: d.label }) : /* @__PURE__ */ c(h, { title: d.label })
85
+ })
86
+ ]
87
+ });
88
+ };
89
+ g.propTypes = {
90
+ x: n.number.isRequired,
91
+ y: n.number.isRequired,
92
+ width: n.number,
93
+ graphProps: a.GraphPropsType.isRequired,
94
+ interactive: n.bool,
95
+ isHovered: n.bool,
96
+ correctness: n.shape({
97
+ value: n.string,
98
+ label: n.string
99
+ }),
100
+ isPlot: n.bool
101
+ };
102
+ var _ = g, v = i({
103
+ axis: "y",
104
+ fromDelta: (e, t) => (t.x = 0, o.point(e).add(o.point(t)).y),
105
+ bounds: (e, { domain: t, range: n }) => {
106
+ let r = {
107
+ left: 0,
108
+ top: e.y,
109
+ bottom: e.y,
110
+ right: 0
111
+ };
112
+ return o.bounds(r, t, n);
113
+ },
114
+ anchorPoint: (e) => ({
115
+ x: e.x,
116
+ y: e.y
117
+ })
118
+ })(_);
119
+ //#endregion
120
+ export { _ as DragHandle, v as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/common/drag-icon.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare const DragIcon: {
12
+ ({ width, scaleValue, color }: {
13
+ width: any;
14
+ scaleValue: any;
15
+ color: any;
16
+ }): React.JSX.Element;
17
+ propTypes: {
18
+ width: PropTypes.Validator<number>;
19
+ scaleValue: PropTypes.Validator<number>;
20
+ color: PropTypes.Requireable<string>;
21
+ };
22
+ };
23
+ export default DragIcon;
@@ -0,0 +1,45 @@
1
+ import { getAdjustedX as e, getScale as t } from "../utils.js";
2
+ import "react";
3
+ import n from "prop-types";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/common/drag-icon.tsx
6
+ var a = ({ width: n, scaleValue: a, color: o }) => /* @__PURE__ */ r("svg", {
7
+ x: e(n, a),
8
+ y: t(n)?.deltay,
9
+ color: o,
10
+ width: n,
11
+ height: n,
12
+ overflow: "visible",
13
+ viewBox: `0 0 ${n} ${n}`,
14
+ style: { overflow: "visible !important" },
15
+ children: /* @__PURE__ */ i("g", {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ fill: "currentColor",
18
+ stroke: "currentColor",
19
+ transform: `scale(${a})`,
20
+ children: [
21
+ /* @__PURE__ */ r("circle", {
22
+ cx: "28.5",
23
+ cy: "23.5",
24
+ r: "22",
25
+ fill: "white",
26
+ stroke: "currentColor"
27
+ }),
28
+ /* @__PURE__ */ r("path", {
29
+ d: "M33.5 21.25H23.4609C22.7578 21.25 22.4062 20.4297 22.9141 19.9219L27.9141 14.9219C28.2266 14.6094 28.7344 14.6094 29.0469 14.9219L34.0469 19.9219C34.5547 20.4297 34.2031 21.25 33.5 21.25Z",
30
+ fill: "currentColor"
31
+ }),
32
+ /* @__PURE__ */ r("path", {
33
+ d: "M23.5 25.75L33.5391 25.75C34.2422 25.75 34.5938 26.5703 34.0859 27.0781L29.0859 32.0781C28.7734 32.3906 28.2656 32.3906 27.9531 32.0781L22.9531 27.0781C22.4453 26.5703 22.7969 25.75 23.5 25.75Z",
34
+ fill: "currentColor"
35
+ })
36
+ ]
37
+ })
38
+ });
39
+ a.propTypes = {
40
+ width: n.number.isRequired,
41
+ scaleValue: n.number.isRequired,
42
+ color: n.string
43
+ };
44
+ //#endregion
45
+ export { a as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/common/styles.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const disabled: (key?: string) => {
10
+ [x: string]: string;
11
+ pointerEvents: string;
12
+ border: string;
13
+ };
14
+ export declare const correct: (key?: string) => {
15
+ [x: string]: any;
16
+ pointerEvents: string;
17
+ border: string;
18
+ };
19
+ export declare const incorrect: (key?: string) => {
20
+ [x: string]: any;
21
+ pointerEvents: string;
22
+ border: string;
23
+ };
@@ -0,0 +1,17 @@
1
+ import { color as e } from "@pie-lib/render-ui";
2
+ //#region src/common/styles.ts
3
+ var t = (t = "fill") => ({
4
+ [t]: `var(--graph-disabled, ${e.disabled()})`,
5
+ pointerEvents: "none",
6
+ border: "none"
7
+ }), n = (t = "fill") => ({
8
+ [t]: e.correct(),
9
+ pointerEvents: "none",
10
+ border: `solid 1px ${e.correct()}`
11
+ }), r = (t = "fill") => ({
12
+ [t]: e.incorrect(),
13
+ pointerEvents: "none",
14
+ border: `solid 1px ${e.incorrect()}`
15
+ });
16
+ //#endregion
17
+ export { n as correct, t as disabled, r as incorrect };
package/dist/grid.d.ts ADDED
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/grid.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class Grid extends React.Component {
12
+ static propTypes: {
13
+ className: PropTypes.Requireable<string>;
14
+ graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
15
+ scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
16
+ x: PropTypes.Validator<(...args: any[]) => any>;
17
+ y: PropTypes.Validator<(...args: any[]) => any>;
18
+ }>>>;
19
+ snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
20
+ x: PropTypes.Validator<(...args: any[]) => any>;
21
+ y: PropTypes.Validator<(...args: any[]) => any>;
22
+ }>>>;
23
+ domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
24
+ min: PropTypes.Validator<number>;
25
+ max: PropTypes.Validator<number>;
26
+ step: PropTypes.Requireable<number>;
27
+ }>>>;
28
+ range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
29
+ min: PropTypes.Validator<number>;
30
+ max: PropTypes.Validator<number>;
31
+ step: PropTypes.Requireable<number>;
32
+ }>>>;
33
+ size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
34
+ width: PropTypes.Validator<number>;
35
+ height: PropTypes.Validator<number>;
36
+ }>>>;
37
+ }>>>;
38
+ xBand: PropTypes.Requireable<(...args: any[]) => any>;
39
+ columnTickValues: PropTypes.Requireable<any[]>;
40
+ rowTickValues: PropTypes.Requireable<any[]>;
41
+ };
42
+ static defaultProps: {};
43
+ render(): React.JSX.Element;
44
+ }
45
+ export default Grid;
package/dist/grid.js ADDED
@@ -0,0 +1,56 @@
1
+ import e from "./node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js";
2
+ import t from "./node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js";
3
+ import n from "react";
4
+ import r from "prop-types";
5
+ import { styled as i } from "@mui/material/styles";
6
+ import { types as a } from "@pie-lib/plot";
7
+ import { color as o } from "@pie-lib/render-ui";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ //#region src/grid.tsx
10
+ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Component {
11
+ static propTypes = {
12
+ className: r.string,
13
+ graphProps: a.GraphPropsType.isRequired,
14
+ xBand: r.func,
15
+ columnTickValues: r.array,
16
+ rowTickValues: r.array
17
+ };
18
+ static defaultProps = {};
19
+ render() {
20
+ let { graphProps: n, xBand: r, rowTickValues: i, columnTickValues: a } = this.props, { scale: u = {}, size: d = {}, range: f = {} } = n || {}, { step: p = 0, labelStep: m = 0 } = f, h = p && m && p < m, g = (e, t) => {
21
+ let n = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, i = 10 ** Math.max(n, r);
22
+ return e * i % (t * i) / i;
23
+ }, { unlabeledLines: _, labeledLines: v } = (i || []).reduce((e, t) => (h && g(t, m) !== 0 ? e.unlabeledLines.push(t) : e.labeledLines.push(t), e), {
24
+ unlabeledLines: [],
25
+ labeledLines: []
26
+ });
27
+ return /* @__PURE__ */ c(l, { children: [
28
+ /* @__PURE__ */ s(e, {
29
+ scale: u.y,
30
+ width: d.width,
31
+ tickValues: _,
32
+ lineStyle: {
33
+ stroke: o.fadedPrimary(),
34
+ strokeWidth: 1
35
+ }
36
+ }),
37
+ /* @__PURE__ */ s(e, {
38
+ scale: u.y,
39
+ width: d.width,
40
+ tickValues: v,
41
+ lineStyle: {
42
+ stroke: _.length ? o.visualElementsColors.GRIDLINES_COLOR : o.fadedPrimary(),
43
+ strokeWidth: 1
44
+ }
45
+ }),
46
+ /* @__PURE__ */ s(t, {
47
+ scale: r,
48
+ height: d.height,
49
+ offset: r.bandwidth() / 2,
50
+ tickValues: a
51
+ })
52
+ ] });
53
+ }
54
+ };
55
+ //#endregion
56
+ export { u as default };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/index.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import Chart from './chart.js';
10
+ import chartTypes from './chart-types.js';
11
+ import ConfigureChartPanel from './chart-setup.js';
12
+ import ChartType from './chart-type.js';
13
+ import KeyLegend from './key-legend.js';
14
+ export { Chart, chartTypes, ChartType, ConfigureChartPanel, KeyLegend };
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import e from "./chart-types.js";
2
+ import t from "./chart.js";
3
+ import n from "./chart-type.js";
4
+ import r from "./chart-setup.js";
5
+ import i from "./key-legend.js";
6
+ export { t as Chart, n as ChartType, r as ConfigureChartPanel, i as KeyLegend, e as chartTypes };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/key-legend.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare const KeyLegend: {
12
+ ({ language }: {
13
+ language: any;
14
+ }): React.JSX.Element;
15
+ propTypes: {
16
+ language: PropTypes.Requireable<string>;
17
+ };
18
+ };
19
+ export default KeyLegend;
@@ -0,0 +1,46 @@
1
+ import "react";
2
+ import e from "prop-types";
3
+ import { styled as t } from "@mui/material/styles";
4
+ import { color as n } from "@pie-lib/render-ui";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ import a from "@mui/icons-material/Check";
7
+ import o from "@mui/icons-material/Close";
8
+ import s from "@pie-lib/translator";
9
+ //#region src/key-legend.tsx
10
+ var c = t("div")(({ theme: e }) => ({
11
+ backgroundColor: n.defaults.WHITE,
12
+ padding: e.spacing(2),
13
+ width: "355px",
14
+ boxShadow: "inset 0px 1px 5px 0px #9297A6",
15
+ display: "flex",
16
+ flexDirection: "column",
17
+ gap: "16px"
18
+ })), l = t("div")(() => ({
19
+ display: "flex",
20
+ alignItems: "center",
21
+ gap: "12px"
22
+ })), u = t("div")(({ theme: e }) => ({
23
+ fontSize: e.typography.h6.fontSize,
24
+ fontWeight: "700"
25
+ })), d = t("div")(() => ({ marginLeft: "2px" })), f = t(a)(({ theme: e }) => ({
26
+ backgroundColor: n.correct(),
27
+ borderRadius: e.spacing(2),
28
+ color: n.defaults.WHITE
29
+ })), p = t(o)(({ theme: e }) => ({
30
+ backgroundColor: n.incorrectWithIcon(),
31
+ borderRadius: e.spacing(2),
32
+ color: n.defaults.WHITE
33
+ })), m = t("div")(() => ({
34
+ marginLeft: "3px",
35
+ display: "flex",
36
+ alignItems: "center",
37
+ gap: "12px"
38
+ })), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */ i(c, { children: [
39
+ /* @__PURE__ */ r(u, { children: "Key" }),
40
+ /* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {}), /* @__PURE__ */ r("div", { children: h.t("charting.keyLegend.incorrectAnswer", { lng: e }) })] }),
41
+ /* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(f, {}), /* @__PURE__ */ r("div", { children: h.t("charting.keyLegend.correctAnswer", { lng: e }) })] }),
42
+ /* @__PURE__ */ i(m, { children: [/* @__PURE__ */ r(f, { fontSize: "small" }), /* @__PURE__ */ r(d, { children: h.t("charting.keyLegend.correctKeyAnswer", { lng: e }) })] })
43
+ ] });
44
+ g.propTypes = { language: e.string };
45
+ //#endregion
46
+ export { g as default };
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @synced-from pie-lib/packages/charting/src/line/common/drag-handle.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare class RawDragHandle extends React.Component {
12
+ static propTypes: {
13
+ x: PropTypes.Validator<number>;
14
+ y: PropTypes.Validator<number>;
15
+ width: PropTypes.Requireable<number>;
16
+ graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
17
+ scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
18
+ x: PropTypes.Validator<(...args: any[]) => any>;
19
+ y: PropTypes.Validator<(...args: any[]) => any>;
20
+ }>>>;
21
+ snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
22
+ x: PropTypes.Validator<(...args: any[]) => any>;
23
+ y: PropTypes.Validator<(...args: any[]) => any>;
24
+ }>>>;
25
+ domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
26
+ min: PropTypes.Validator<number>;
27
+ max: PropTypes.Validator<number>;
28
+ step: PropTypes.Requireable<number>;
29
+ }>>>;
30
+ range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
31
+ min: PropTypes.Validator<number>;
32
+ max: PropTypes.Validator<number>;
33
+ step: PropTypes.Requireable<number>;
34
+ }>>>;
35
+ size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
36
+ width: PropTypes.Validator<number>;
37
+ height: PropTypes.Validator<number>;
38
+ }>>>;
39
+ }>>>;
40
+ className: PropTypes.Requireable<string>;
41
+ interactive: PropTypes.Requireable<boolean>;
42
+ CustomDraggableComponent: PropTypes.Requireable<(...args: any[]) => any>;
43
+ correctness: PropTypes.Requireable<PropTypes.InferProps<{
44
+ value: PropTypes.Requireable<string>;
45
+ label: PropTypes.Requireable<string>;
46
+ }>>;
47
+ };
48
+ render(): React.JSX.Element | null;
49
+ }
50
+ export declare const DragHandle: typeof RawDragHandle;
51
+ declare const DraggableHandle: {
52
+ new (props: any): {
53
+ grid: any;
54
+ onStart: any;
55
+ position: any;
56
+ tiny: any;
57
+ getScaledBounds: any;
58
+ getClientPoint: any;
59
+ skipDragOutsideOfBounds: any;
60
+ onDrag: any;
61
+ getDelta: any;
62
+ applyDelta: any;
63
+ onStop: any;
64
+ render(): React.JSX.Element;
65
+ context: unknown;
66
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
67
+ forceUpdate(callback?: (() => void) | undefined): void;
68
+ readonly props: Readonly<{}>;
69
+ state: Readonly<{}>;
70
+ refs: {
71
+ [key: string]: React.ReactInstance;
72
+ };
73
+ componentDidMount?(): void;
74
+ shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
75
+ componentWillUnmount?(): void;
76
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
77
+ getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
78
+ componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
79
+ componentWillMount?(): void;
80
+ UNSAFE_componentWillMount?(): void;
81
+ componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
82
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
83
+ componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
84
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
85
+ };
86
+ propTypes: {
87
+ disabled: PropTypes.Requireable<boolean>;
88
+ onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
89
+ onDrag: PropTypes.Requireable<(...args: any[]) => any>;
90
+ onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
91
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
92
+ onMove: PropTypes.Requireable<(...args: any[]) => any>;
93
+ graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
94
+ scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
95
+ x: PropTypes.Validator<(...args: any[]) => any>;
96
+ y: PropTypes.Validator<(...args: any[]) => any>;
97
+ }>>>;
98
+ snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
99
+ x: PropTypes.Validator<(...args: any[]) => any>;
100
+ y: PropTypes.Validator<(...args: any[]) => any>;
101
+ }>>>;
102
+ domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
103
+ min: PropTypes.Validator<number>;
104
+ max: PropTypes.Validator<number>;
105
+ step: PropTypes.Requireable<number>;
106
+ }>>>;
107
+ range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
108
+ min: PropTypes.Validator<number>;
109
+ max: PropTypes.Validator<number>;
110
+ step: PropTypes.Requireable<number>;
111
+ }>>>;
112
+ size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
113
+ width: PropTypes.Validator<number>;
114
+ height: PropTypes.Validator<number>;
115
+ }>>>;
116
+ }>>>;
117
+ };
118
+ contextType?: React.Context<any> | undefined;
119
+ };
120
+ export default DraggableHandle;