impaktapps-design 0.2.57 → 0.2.58-alpha.2
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.
|
@@ -10873,23 +10873,26 @@ function Legend({
|
|
|
10873
10873
|
colorRange,
|
|
10874
10874
|
dataKeyArray
|
|
10875
10875
|
}) {
|
|
10876
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
10876
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
10877
10877
|
const legendGlyphSize = ((_b = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.legend) == null ? void 0 : _b.colorRectWidth) || 15;
|
|
10878
|
+
dataKeyArray.map((item) => {
|
|
10879
|
+
return item.x;
|
|
10880
|
+
});
|
|
10878
10881
|
const ordinalColorScale = createOrdinalScale$1({
|
|
10879
|
-
domain:
|
|
10880
|
-
range: colorRange || ((
|
|
10882
|
+
domain: ["Sss", "ddd", "ccc"],
|
|
10883
|
+
range: colorRange || ((_d = (_c = value == null ? void 0 : value.style) == null ? void 0 : _c.pieStyle) == null ? void 0 : _d.colorRange)
|
|
10881
10884
|
});
|
|
10882
10885
|
return /* @__PURE__ */ jsxs("div", {
|
|
10883
10886
|
className: "legend",
|
|
10884
10887
|
style: {
|
|
10885
10888
|
paddingLeft: "40px",
|
|
10886
10889
|
paddingRight: "40px",
|
|
10887
|
-
...(
|
|
10890
|
+
...(_f = (_e = value == null ? void 0 : value.style) == null ? void 0 : _e.legendStyle) == null ? void 0 : _f.legend
|
|
10888
10891
|
},
|
|
10889
10892
|
children: [/* @__PURE__ */ jsx("div", {
|
|
10890
10893
|
className: "title",
|
|
10891
|
-
style: (
|
|
10892
|
-
children: (
|
|
10894
|
+
style: (_h = (_g = value == null ? void 0 : value.style) == null ? void 0 : _g.legendStyle) == null ? void 0 : _h.legendTitle,
|
|
10895
|
+
children: (_j = (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.legend) == null ? void 0 : _j.legendTitle
|
|
10893
10896
|
}), /* @__PURE__ */ jsx(Ordinal, {
|
|
10894
10897
|
scale: ordinalColorScale,
|
|
10895
10898
|
labelFormat: (label) => `${label.toUpperCase()}`,
|
|
@@ -19774,7 +19777,7 @@ function AnimatedLineSeries(props) {
|
|
|
19774
19777
|
const DrawGraph = ({
|
|
19775
19778
|
value
|
|
19776
19779
|
}) => {
|
|
19777
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
19780
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5;
|
|
19778
19781
|
const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
|
|
19779
19782
|
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0][0]);
|
|
19780
19783
|
const accessors = {
|
|
@@ -19783,9 +19786,10 @@ const DrawGraph = ({
|
|
|
19783
19786
|
};
|
|
19784
19787
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19785
19788
|
children: [value.main.legendAvailable && /* @__PURE__ */ jsx(Legend, {
|
|
19786
|
-
value
|
|
19789
|
+
value,
|
|
19790
|
+
dataKeyArray: (_b = value == null ? void 0 : value.main) == null ? void 0 : _b.data
|
|
19787
19791
|
}), /* @__PURE__ */ jsxs(XYChart, {
|
|
19788
|
-
height: parseInt((
|
|
19792
|
+
height: parseInt((_d = (_c = value.style) == null ? void 0 : _c.containerStyle) == null ? void 0 : _d.height),
|
|
19789
19793
|
xScale: {
|
|
19790
19794
|
type: "band"
|
|
19791
19795
|
},
|
|
@@ -19796,11 +19800,11 @@ const DrawGraph = ({
|
|
|
19796
19800
|
orientation: "left",
|
|
19797
19801
|
hideAxisLine: value.main.hideLeftAxisLine,
|
|
19798
19802
|
label: value.main.leftLabel,
|
|
19799
|
-
left: ((
|
|
19800
|
-
labelOffset: ((
|
|
19803
|
+
left: ((_f = (_e = value.style) == null ? void 0 : _e.labelStyle) == null ? void 0 : _f.leftLabelMargin) || 70,
|
|
19804
|
+
labelOffset: ((_h = (_g = value.style) == null ? void 0 : _g.labelStyle) == null ? void 0 : _h.leftLabelOffset) || 32,
|
|
19801
19805
|
labelProps: {
|
|
19802
|
-
fill: (
|
|
19803
|
-
fontSize: (
|
|
19806
|
+
fill: (_j = (_i = value.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.labelColor,
|
|
19807
|
+
fontSize: (_l = (_k = value.style) == null ? void 0 : _k.labelStyle) == null ? void 0 : _l.fontSize
|
|
19804
19808
|
},
|
|
19805
19809
|
tickLabelProps: (e3) => {
|
|
19806
19810
|
var _a2, _b2;
|
|
@@ -19813,8 +19817,8 @@ const DrawGraph = ({
|
|
|
19813
19817
|
hideAxisLine: value.main.hideBottomAxisLine,
|
|
19814
19818
|
label: value.main.bottomLabel,
|
|
19815
19819
|
labelProps: {
|
|
19816
|
-
fill: (
|
|
19817
|
-
fontSize: (
|
|
19820
|
+
fill: (_n = (_m = value.style) == null ? void 0 : _m.labelStyle) == null ? void 0 : _n.labelColor,
|
|
19821
|
+
fontSize: (_p = (_o = value.style) == null ? void 0 : _o.labelStyle) == null ? void 0 : _p.fontSize
|
|
19818
19822
|
},
|
|
19819
19823
|
tickLabelProps: (e3) => {
|
|
19820
19824
|
var _a2, _b2;
|
|
@@ -19822,11 +19826,11 @@ const DrawGraph = ({
|
|
|
19822
19826
|
fill: (_b2 = (_a2 = value.style) == null ? void 0 : _a2.labelStyle) == null ? void 0 : _b2.labelColor
|
|
19823
19827
|
};
|
|
19824
19828
|
},
|
|
19825
|
-
labelOffset: ((
|
|
19829
|
+
labelOffset: ((_r = (_q = value.style) == null ? void 0 : _q.labelStyle) == null ? void 0 : _r.bottomLabelOffset) || 32
|
|
19826
19830
|
}), /* @__PURE__ */ jsx(AnimatedGrid, {
|
|
19827
19831
|
columns: value.main.grid,
|
|
19828
|
-
numTicks: value.main.numHidden ? 0 : ((
|
|
19829
|
-
}), (
|
|
19832
|
+
numTicks: value.main.numHidden ? 0 : ((_s = value.main) == null ? void 0 : _s.data[0].length) - 1
|
|
19833
|
+
}), (_t5 = value.main) == null ? void 0 : _t5.data.map((elem, i) => {
|
|
19830
19834
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
19831
19835
|
return /* @__PURE__ */ jsx(AnimatedLineSeries, {
|
|
19832
19836
|
dataKey: value.main.tooltipDataKey[i],
|
|
@@ -39145,7 +39149,7 @@ function memoize$1(fn) {
|
|
|
39145
39149
|
return cache[arg];
|
|
39146
39150
|
};
|
|
39147
39151
|
}
|
|
39148
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
39152
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
39149
39153
|
var isPropValid = /* @__PURE__ */ memoize$1(
|
|
39150
39154
|
function(prop) {
|
|
39151
39155
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|