@selfdecode/sd-component-library 4.0.143 → 4.0.145
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.
- package/lib/components/links/link/interfaces.d.ts +1 -0
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library104.js +4 -4
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library111.js +1 -1
- package/lib/sd-component-library117.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library133.js +3 -3
- package/lib/sd-component-library134.js +1 -1
- package/lib/sd-component-library136.js +2 -2
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library171.js +1 -1
- package/lib/sd-component-library172.js +4 -4
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library200.js +2 -60
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +30 -2
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +590 -21
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +56 -595
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library207.js +18 -21
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +64 -3
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +23 -3
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +39 -17
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +19 -62
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +3 -23
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +3 -40
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +128 -13
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +13 -3
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +14 -3
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +3 -129
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +3 -13
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +3 -65
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +52 -3
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +46 -3
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +54 -41
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +3 -46
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library230.js +1 -1
- package/lib/sd-component-library231.js +1 -1
- package/lib/sd-component-library233.js +64 -129
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library235.js +36 -40
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +12 -7
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +21 -21
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +109 -20
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +45 -46
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +23 -74
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +53 -2
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +20 -63
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +20 -43
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +47 -12
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +41 -21
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +22 -104
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +2 -47
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +74 -23
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +25 -49
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +3 -325
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +24 -5
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +3 -41
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +324 -26
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +5 -29
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +2 -3
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +2 -24
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +129 -3
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +43 -21
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +8 -22
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +25 -30
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +21 -50
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +30 -134
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +119 -59
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +38 -63
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +74 -9
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +72 -47
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +25 -85
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +19 -90
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +120 -25
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +117 -16
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +10 -125
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +39 -111
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +9 -10
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +49 -48
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +90 -2
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +92 -2
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library279.js +70 -10
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +101 -69
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +95 -91
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +10 -106
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library296.js +88 -20
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +50 -34
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +4 -92
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +25 -51
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +4 -5
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +35 -4
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library303.js +1 -1
- package/lib/sd-component-library315.js +1 -1
- package/lib/sd-component-library317.js +6 -90
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +90 -6
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library48.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library51.js +3 -3
- package/lib/sd-component-library52.js +2 -2
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library62.js +3 -3
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library81.js +9 -7
- package/lib/sd-component-library81.js.map +1 -1
- package/lib/sd-component-library89.js +3 -3
- package/lib/sd-component-library92.js +3 -3
- package/lib/sd-component-library94.js +5 -5
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -1,38 +1,54 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library197.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
import x from "react";
|
|
3
|
+
import u from "./sd-component-library196.js";
|
|
4
|
+
import { getIsHorizontal as j, getRangeProperties as p } from "./sd-component-library229.js";
|
|
5
|
+
import { OutlineMeterRange as M } from "./sd-component-library257.js";
|
|
6
|
+
import { LabelPointer as b } from "./sd-component-library322.js";
|
|
7
|
+
const A = x.forwardRef(
|
|
8
|
+
(e, r) => {
|
|
9
|
+
const {
|
|
10
|
+
segmented: o,
|
|
11
|
+
diameter: n,
|
|
12
|
+
arc: a,
|
|
13
|
+
totalRanges: i,
|
|
14
|
+
distanceBetweenRanges: s,
|
|
15
|
+
start: m,
|
|
16
|
+
end: c,
|
|
17
|
+
idx: d,
|
|
18
|
+
hideLabels: l,
|
|
19
|
+
isMatchedRange: g
|
|
20
|
+
} = e, f = !o, R = n / 2, { rangeArcMiddle: h } = p(
|
|
21
|
+
a,
|
|
22
|
+
i,
|
|
23
|
+
s,
|
|
24
|
+
d,
|
|
25
|
+
m,
|
|
26
|
+
c
|
|
27
|
+
);
|
|
28
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ t.jsx(
|
|
30
|
+
M,
|
|
31
|
+
{
|
|
32
|
+
...e,
|
|
33
|
+
hideLabels: !0,
|
|
34
|
+
connected: f,
|
|
35
|
+
ref: r
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
!l && !g && /* @__PURE__ */ t.jsx(
|
|
39
|
+
b,
|
|
40
|
+
{
|
|
41
|
+
...e,
|
|
42
|
+
radius: R,
|
|
43
|
+
color: u.colors.cl_lightGrey,
|
|
44
|
+
alpha: h,
|
|
45
|
+
horizontal: j(e)
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
);
|
|
35
51
|
export {
|
|
36
|
-
|
|
52
|
+
A as SmileyMeterRange
|
|
37
53
|
};
|
|
38
54
|
//# sourceMappingURL=sd-component-library297.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library297.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library297.js","sources":["../src/components/meters/smiley-meter-v2/partials/smiley-meter-range/smiley-meter-range.tsx"],"sourcesContent":["import React from \"react\";\n\nimport theme from \"../../../../../core/theme\";\nimport { LabelPointer } from \"../../../common-outline-meter-partials\";\nimport { OutlineMeterRange } from \"../../../outline-meter/partials/outline-meter-range\";\nimport { getIsHorizontal, getRangeProperties } from \"../../utils\";\nimport { SmileyMeterRangeProps as Props } from \"./interfaces\";\n\nexport const SmileyMeterRange = React.forwardRef<SVGCircleElement, Props>(\n (props, pointRef) => {\n const {\n segmented,\n diameter,\n arc,\n totalRanges,\n distanceBetweenRanges,\n start,\n end,\n idx,\n hideLabels,\n isMatchedRange,\n } = props;\n\n const needConnection = !segmented;\n\n const radius = diameter / 2;\n\n const { rangeArcMiddle: alpha } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx,\n start,\n end\n );\n\n return (\n <>\n <OutlineMeterRange\n {...props}\n hideLabels\n connected={needConnection}\n ref={pointRef}\n />\n\n {!hideLabels && !isMatchedRange && (\n <LabelPointer\n {...props}\n radius={radius}\n color={theme.colors.cl_lightGrey}\n alpha={alpha}\n horizontal={getIsHorizontal(props)}\n />\n )}\n </>\n );\n }\n);\n"],"names":["SmileyMeterRange","React","props","pointRef","segmented","diameter","arc","totalRanges","distanceBetweenRanges","start","end","idx","hideLabels","isMatchedRange","needConnection","radius","alpha","getRangeProperties","jsxs","Fragment","jsx","OutlineMeterRange","LabelPointer","theme","getIsHorizontal"],"mappings":";;;;;;AAQO,MAAMA,IAAmBC,EAAM;AAAA,EACpC,CAACC,GAAOC,MAAa;AACb,UAAA;AAAA,MACJ,WAAAC;AAAA,MACA,UAAAC;AAAA,MACA,KAAAC;AAAA,MACA,aAAAC;AAAA,MACA,uBAAAC;AAAA,MACA,OAAAC;AAAA,MACA,KAAAC;AAAA,MACA,KAAAC;AAAA,MACA,YAAAC;AAAA,MACA,gBAAAC;AAAA,IACE,IAAAX,GAEEY,IAAiB,CAACV,GAElBW,IAASV,IAAW,GAEpB,EAAE,gBAAgBW,EAAA,IAAUC;AAAA,MAChCX;AAAA,MACAC;AAAA,MACAC;AAAA,MACAG;AAAA,MACAF;AAAA,MACAC;AAAA,IAAA;AAGF,WAEIQ,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,MAAAC,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACE,GAAGnB;AAAA,UACJ,YAAU;AAAA,UACV,WAAWY;AAAA,UACX,KAAKX;AAAA,QAAA;AAAA,MACP;AAAA,MAEC,CAACS,KAAc,CAACC,KACfO,gBAAAA,EAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACE,GAAGpB;AAAA,UACJ,QAAAa;AAAA,UACA,OAAOQ,EAAM,OAAO;AAAA,UACpB,OAAAP;AAAA,UACA,YAAYQ,EAAgBtB,CAAK;AAAA,QAAA;AAAA,MACnC;AAAA,IAEJ,EAAA,CAAA;AAAA,EAEJ;AACF;"}
|
|
@@ -1,96 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { labelPaddingX as c, labelWidth as W } from "./sd-component-library227.js";
|
|
5
|
-
import { getCoordinateForArc as $ } from "./sd-component-library91.js";
|
|
6
|
-
import { ResponsiveTextV2 as z } from "./sd-component-library150.js";
|
|
7
|
-
const D = (j) => {
|
|
8
|
-
const {
|
|
9
|
-
label: d,
|
|
10
|
-
color: p,
|
|
11
|
-
alpha: e,
|
|
12
|
-
radius: r,
|
|
13
|
-
horizontal: v,
|
|
14
|
-
pointerLength: m,
|
|
15
|
-
round: y,
|
|
16
|
-
pointY: i
|
|
17
|
-
} = j, [h, C] = S(0), [f, R] = S(0), T = B((t) => {
|
|
18
|
-
if (t) {
|
|
19
|
-
const { height: o, y: l } = t.getBoundingClientRect();
|
|
20
|
-
C(o), R(l);
|
|
21
|
-
}
|
|
22
|
-
}, []);
|
|
23
|
-
let { x: b, y: g } = $(
|
|
24
|
-
r + m,
|
|
25
|
-
e,
|
|
26
|
-
r
|
|
27
|
-
);
|
|
28
|
-
const s = e === 180, n = e < 180, u = e > 180;
|
|
29
|
-
if (v) {
|
|
30
|
-
const { x: t, y: o } = $(
|
|
31
|
-
r,
|
|
32
|
-
e,
|
|
33
|
-
r
|
|
34
|
-
);
|
|
35
|
-
b = t + m * (n ? -1 : 1), g = o;
|
|
36
|
-
}
|
|
37
|
-
if (!d)
|
|
38
|
-
return null;
|
|
39
|
-
let x = y || s ? `${c}px` : void 0;
|
|
40
|
-
if (!x && i) {
|
|
41
|
-
const t = f - h, o = f;
|
|
42
|
-
x = [
|
|
43
|
-
n || i > t,
|
|
44
|
-
u || i > t,
|
|
45
|
-
u || i < o,
|
|
46
|
-
n || i < o
|
|
47
|
-
].map((l) => l ? `${c}px` : "0").join(" ");
|
|
48
|
-
}
|
|
49
|
-
return /* @__PURE__ */ a.jsx(
|
|
50
|
-
Y,
|
|
51
|
-
{
|
|
52
|
-
sx: {
|
|
53
|
-
position: "absolute",
|
|
54
|
-
left: `${b}px`,
|
|
55
|
-
top: `${g}px`
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ a.jsx(
|
|
58
|
-
Y,
|
|
59
|
-
{
|
|
60
|
-
sx: {
|
|
61
|
-
boxSizing: "content-box",
|
|
62
|
-
position: "relative",
|
|
63
|
-
top: `calc(-${h}px)`,
|
|
64
|
-
left: s ? "-50%" : n ? "-100%" : void 0,
|
|
65
|
-
py: "7px",
|
|
66
|
-
px: `${c}px`,
|
|
67
|
-
borderColor: p,
|
|
68
|
-
borderWidth: "2px",
|
|
69
|
-
borderStyle: "solid",
|
|
70
|
-
borderRadius: x,
|
|
71
|
-
bg: "cl_white",
|
|
72
|
-
"& > div": {
|
|
73
|
-
maxWidth: s ? void 0 : `${W}px`
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
ref: T,
|
|
77
|
-
children: /* @__PURE__ */ a.jsx(
|
|
78
|
-
z,
|
|
79
|
-
{
|
|
80
|
-
fontSizeWeight: [[12, "semi-bold"]],
|
|
81
|
-
width: "max-content",
|
|
82
|
-
color: p !== "#CCD0DB" ? p : "cl_darkGrey",
|
|
83
|
-
textTransform: "uppercase",
|
|
84
|
-
letterSpacing: "1.8px",
|
|
85
|
-
children: d
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
);
|
|
1
|
+
const p = (c, r, n, t) => {
|
|
2
|
+
const o = c - (r - 1) * n, s = t / r, e = (t + 1) / r, a = (360 - c) / 2 + n * t + o * s, S = a + o * (e - s);
|
|
3
|
+
return { rangeArcStart: a, rangeArcEnd: S };
|
|
92
4
|
};
|
|
93
5
|
export {
|
|
94
|
-
|
|
6
|
+
p as getRangeProperties
|
|
95
7
|
};
|
|
96
8
|
//# sourceMappingURL=sd-component-library298.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library298.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library298.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/utils.ts"],"sourcesContent":["export const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n\n const start = idx / totalRanges;\n const end = (idx + 1) / totalRanges;\n\n const arcStart = (360 - arc) / 2; // deg\n\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n return { rangeArcStart, rangeArcEnd };\n};\n"],"names":["getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","arcForRanges","start","end","rangeArcStart","rangeArcEnd"],"mappings":"AAAO,MAAMA,IAAqB,CAChCC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeJ,KAAOC,IAAc,KAAKC,GAEzCG,IAAQF,IAAMF,GACdK,KAAOH,IAAM,KAAKF,GAIlBM,KAFY,MAAMP,KAAO,IAGlBE,IAAwBC,IAAMC,IAAeC,GAEpDG,IAAcD,IAAgBH,KAAgBE,IAAMD;AAEnD,SAAA,EAAE,eAAAE,GAAe,aAAAC;AAC1B;"}
|
|
@@ -1,54 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
m,
|
|
26
|
-
c
|
|
27
|
-
);
|
|
28
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
29
|
-
/* @__PURE__ */ t.jsx(
|
|
30
|
-
M,
|
|
31
|
-
{
|
|
32
|
-
...e,
|
|
33
|
-
hideLabels: !0,
|
|
34
|
-
connected: f,
|
|
35
|
-
ref: r
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
!l && !g && /* @__PURE__ */ t.jsx(
|
|
39
|
-
b,
|
|
40
|
-
{
|
|
41
|
-
...e,
|
|
42
|
-
radius: R,
|
|
43
|
-
color: u.colors.cl_lightGrey,
|
|
44
|
-
alpha: h,
|
|
45
|
-
horizontal: j(e)
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] });
|
|
49
|
-
}
|
|
50
|
-
);
|
|
1
|
+
import { j as x } from "./sd-component-library197.js";
|
|
2
|
+
import { getInnerX as u, degToRad as r, getInnerY as i } from "./sd-component-library91.js";
|
|
3
|
+
const j = (p) => {
|
|
4
|
+
const {
|
|
5
|
+
startX: $,
|
|
6
|
+
startY: e,
|
|
7
|
+
endX: a,
|
|
8
|
+
endY: d,
|
|
9
|
+
radius: n,
|
|
10
|
+
color: A,
|
|
11
|
+
width: t,
|
|
12
|
+
roundStart: l = !0,
|
|
13
|
+
roundEnd: I = !0,
|
|
14
|
+
startAlpha: o,
|
|
15
|
+
endAlpha: s
|
|
16
|
+
} = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
|
|
17
|
+
return /* @__PURE__ */ x.jsx(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
|
|
21
|
+
fill: A
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
51
25
|
export {
|
|
52
|
-
|
|
26
|
+
j as BaseOutlineArc
|
|
53
27
|
};
|
|
54
28
|
//# sourceMappingURL=sd-component-library299.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library299.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library299.js","sources":["../src/components/meters/outline-meter/partials/base-outline-arc/base-outline-arc.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { degToRad, getInnerX, getInnerY } from \"../../utils\";\nimport { BaseOutlineArcProps as Props } from \"./interfaces\";\n\nexport const BaseOutlineArc: React.FC<Props> = (props) => {\n const {\n startX,\n startY,\n endX,\n endY,\n radius,\n color,\n width,\n roundStart = true,\n roundEnd = true,\n startAlpha,\n endAlpha,\n } = props;\n\n const arc = endAlpha - startAlpha;\n\n const startInnerX = getInnerX(startX, degToRad(startAlpha), width);\n const startInnerY = getInnerY(startY, degToRad(startAlpha), width);\n\n const endInnerX = getInnerX(endX, degToRad(endAlpha), width);\n const endInnerY = getInnerY(endY, degToRad(endAlpha), width);\n\n return (\n <path\n d={`M${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY} ${\n roundEnd ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${endInnerX},${endInnerY} A${radius - width},${radius - width} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },0 ${startInnerX},${startInnerY} ${\n roundStart ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${startX},${startY}`}\n fill={color}\n />\n );\n};\n"],"names":["BaseOutlineArc","props","startX","startY","endX","endY","radius","color","width","roundStart","roundEnd","startAlpha","endAlpha","arc","startInnerX","getInnerX","degToRad","startInnerY","getInnerY","endInnerX","endInnerY","jsx"],"mappings":";;AAKa,MAAAA,IAAkC,CAACC,MAAU;AAClD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC,IAAW;AAAA,IACX,YAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAMD,IAAWD,GAEjBG,IAAcC,EAAUb,GAAQc,EAASL,CAAU,GAAGH,CAAK,GAC3DS,IAAcC,EAAUf,GAAQa,EAASL,CAAU,GAAGH,CAAK,GAE3DW,IAAYJ,EAAUX,GAAMY,EAASJ,CAAQ,GAAGJ,CAAK,GACrDY,IAAYF,EAAUb,GAAMW,EAASJ,CAAQ,GAAGJ,CAAK;AAGzD,SAAAa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAG,IAAInB,CAAM,IAAIC,CAAM,KAAKG,CAAM,IAAIA,CAAM,MAC1CO,IAAM,MAAM,MAAM,GACpB,MAAMT,CAAI,IAAIC,CAAI,IAChBK,IAAW,IAAIF,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACnD,GAAGW,CAAS,IAAIC,CAAS,KAAKd,IAASE,CAAK,IAAIF,IAASE,CAAK,MAC5DK,IAAM,MAAM,MAAM,GACpB,MAAMC,CAAW,IAAIG,CAAW,IAC9BR,IAAa,IAAID,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACrD,GAAGN,CAAM,IAAIC,CAAM;AAAA,MACnB,MAAMI;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import { j as e } from "./sd-component-library197.js";
|
|
2
|
+
import { LabelPointer as t } from "./sd-component-library322.js";
|
|
3
|
+
const s = (r) => /* @__PURE__ */ e.jsx(t, { ...r });
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
s as DiscreteMeterLabelPointer
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=sd-component-library300.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library300.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/
|
|
1
|
+
{"version":3,"file":"sd-component-library300.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/discrete-meter-label-pointer.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { LabelPointer } from \"../../../common-outline-meter-partials\";\nimport { DiscreteMeterLabelPointerProps as Props } from \"./interfaces\";\n\nexport const DiscreteMeterLabelPointer: React.FC<Props> = (props) => {\n return <LabelPointer {...props} />;\n};\n"],"names":["DiscreteMeterLabelPointer","props","jsx","LabelPointer"],"mappings":";;AAKa,MAAAA,IAA6C,CAACC,MAClDC,gBAAAA,EAAA,IAACC,GAAc,EAAA,GAAGF,EAAO,CAAA;"}
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
const
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
const h = (n) => {
|
|
3
|
+
const {
|
|
4
|
+
color: s,
|
|
5
|
+
innerCircleRadius: $,
|
|
6
|
+
innerCircleStrokeWidth: d,
|
|
7
|
+
dx: i,
|
|
8
|
+
dy: r,
|
|
9
|
+
radius: e,
|
|
10
|
+
tipX: l,
|
|
11
|
+
tipY: o,
|
|
12
|
+
needleWidth: c
|
|
13
|
+
} = n;
|
|
14
|
+
return /* @__PURE__ */ t.jsxs("g", { children: [
|
|
15
|
+
/* @__PURE__ */ t.jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
|
|
19
|
+
fill: s
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ t.jsx(
|
|
23
|
+
"circle",
|
|
24
|
+
{
|
|
25
|
+
cx: e,
|
|
26
|
+
cy: e,
|
|
27
|
+
r: $ + d,
|
|
28
|
+
strokeWidth: d,
|
|
29
|
+
stroke: s,
|
|
30
|
+
fill: "white"
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
4
35
|
export {
|
|
5
|
-
|
|
36
|
+
h as BaseNeedle
|
|
6
37
|
};
|
|
7
38
|
//# sourceMappingURL=sd-component-library301.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library301.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library301.js","sources":["../src/components/meters/outline-meter/partials/base-needle/base-needle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { BaseNeedleProps as Props } from \"./interfaces\";\n\nexport const BaseNeedle: React.FC<Props> = (props) => {\n const {\n color,\n innerCircleRadius,\n innerCircleStrokeWidth,\n dx,\n dy,\n radius,\n tipX,\n tipY,\n needleWidth,\n } = props;\n\n return (\n <g>\n <path\n d={`M${tipX - dx},${tipY - dy} A${needleWidth / 2},${\n needleWidth / 2\n } 0 0,0 ${tipX + dx},${tipY + dy} L${radius + dx},${radius + dy} L${\n radius - dx\n },${radius - dy} Z`}\n fill={color}\n />\n <circle\n cx={radius}\n cy={radius}\n r={innerCircleRadius + innerCircleStrokeWidth}\n strokeWidth={innerCircleStrokeWidth}\n stroke={color}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["BaseNeedle","props","color","innerCircleRadius","innerCircleStrokeWidth","dx","dy","radius","tipX","tipY","needleWidth","jsx"],"mappings":";AAIa,MAAAA,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,EACE,IAAAT;AAEJ,gCACG,KACC,EAAA,UAAA;AAAA,IAAAU,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIH,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKI,IAAc,CAAC,IAC/CA,IAAc,CAChB,UAAUF,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKC,IAASF,CAAE,IAAIE,IAASD,CAAE,KAC7DC,IAASF,CACX,IAAIE,IAASD,CAAE;AAAA,QACf,MAAMJ;AAAA,MAAA;AAAA,IACR;AAAA,IACAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIJ;AAAA,QACJ,IAAIA;AAAA,QACJ,GAAGJ,IAAoBC;AAAA,QACvB,aAAaA;AAAA,QACb,QAAQF;AAAA,QACR,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.js";
|
|
2
|
-
import { getSelectedRangeText as l } from "./sd-component-
|
|
2
|
+
import { getSelectedRangeText as l } from "./sd-component-library279.js";
|
|
3
3
|
import { FourteenRegular as n } from "./sd-component-library144.js";
|
|
4
4
|
import { FourteenSb as p } from "./sd-component-library145.js";
|
|
5
5
|
import { BaseGridContainer as i } from "./sd-component-library35.js";
|
|
@@ -1,93 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { ResponsiveTextV2 as g } from "./sd-component-library150.js";
|
|
7
|
-
const y = "21.5px", w = 10, j = `${w}px`, J = ({
|
|
8
|
-
segment: $,
|
|
9
|
-
isHover: r,
|
|
10
|
-
animationDuration: S,
|
|
11
|
-
labelOffset: i,
|
|
12
|
-
labelPointerOffset: k,
|
|
13
|
-
radius: c,
|
|
14
|
-
mobile: e,
|
|
15
|
-
labelOffsetMobile: u
|
|
16
|
-
}) => {
|
|
17
|
-
const { start: p, end: a, text: R, color: z, secondaryText: C } = $, d = c * 2, t = (p + a) / 2, h = Math.round(t * 360), { x: _, y: x } = f(c, h), [n, A] = L(), G = M((m) => {
|
|
18
|
-
m && A(m.getBoundingClientRect());
|
|
19
|
-
}, []), l = `all ${S}ms`, s = t > 0.5 ? "right" : "left", I = d + i, { x: T, y: W } = f(
|
|
20
|
-
c + u,
|
|
21
|
-
h,
|
|
22
|
-
c
|
|
23
|
-
), b = t < 0.5, B = t < 0.15 || t > 0.85, F = t > 0.35 || t < 0.65;
|
|
24
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
25
|
-
!e && /* @__PURE__ */ o.jsx(
|
|
26
|
-
"line",
|
|
27
|
-
{
|
|
28
|
-
x1: _ + (s === "left" ? -1 : 1) * k,
|
|
29
|
-
x2: s === "left" ? -i : d + i,
|
|
30
|
-
y1: x,
|
|
31
|
-
y2: x,
|
|
32
|
-
stroke: V.colors.cl_lightGrey,
|
|
33
|
-
strokeWidth: 1
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ o.jsx(
|
|
37
|
-
"foreignObject",
|
|
38
|
-
{
|
|
39
|
-
x: e ? T : s === "left" ? -i : I - ((n == null ? void 0 : n.width) ?? 0),
|
|
40
|
-
y: e ? W : x,
|
|
41
|
-
width: ((n == null ? void 0 : n.width) ?? 0) + w,
|
|
42
|
-
height: 50,
|
|
43
|
-
style: { overflow: "visible" },
|
|
44
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
45
|
-
X,
|
|
46
|
-
{
|
|
47
|
-
width: "fit-content",
|
|
48
|
-
justifyItems: "flex-start",
|
|
49
|
-
gap: r ? "1px" : "4px",
|
|
50
|
-
sx: {
|
|
51
|
-
transform: e ? `translate(${b ? -100 : 0}%, calc(${y} * ${B ? 0 : F ? -1 : -0.5}))` : `translateY(calc(${y} / -2)) scale(${r ? 1.3 : 1})`,
|
|
52
|
-
transition: l,
|
|
53
|
-
transformOrigin: s,
|
|
54
|
-
...e ? {
|
|
55
|
-
borderRadius: "4px",
|
|
56
|
-
boxShadow: "0px 3px 6px #00000029",
|
|
57
|
-
px: "5px",
|
|
58
|
-
py: "3px"
|
|
59
|
-
} : s === "left" ? { pr: j } : { pl: j }
|
|
60
|
-
},
|
|
61
|
-
bg: "cl_white",
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ o.jsx(
|
|
64
|
-
g,
|
|
65
|
-
{
|
|
66
|
-
width: "fit-content",
|
|
67
|
-
fontSizeWeight: [18, "bold"],
|
|
68
|
-
color: z,
|
|
69
|
-
sx: { transition: l },
|
|
70
|
-
ref: G,
|
|
71
|
-
children: R
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ o.jsx(
|
|
75
|
-
g,
|
|
76
|
-
{
|
|
77
|
-
fontSizeWeight: [r ? 13 : 14, "bold"],
|
|
78
|
-
color: r ? "cl_darkGrey" : "cl_grey",
|
|
79
|
-
sx: { transition: l },
|
|
80
|
-
children: C ?? `${Math.round((a - p) * 100)}%`
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] });
|
|
89
|
-
};
|
|
1
|
+
function e(o, r) {
|
|
2
|
+
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, f) {
|
|
3
|
+
return t.__proto__ = f, t;
|
|
4
|
+
}, e(o, r);
|
|
5
|
+
}
|
|
90
6
|
export {
|
|
91
|
-
|
|
7
|
+
e as default
|
|
92
8
|
};
|
|
93
9
|
//# sourceMappingURL=sd-component-library317.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library317.js","sources":["../
|
|
1
|
+
{"version":3,"file":"sd-component-library317.js","sources":["../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":["_setPrototypeOf","p","o"],"mappings":"AAAe,SAASA,EAAgB,GAAGC,GAAG;AAC5C,SAAAD,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAI,IAAK,SAAyBE,GAAGD,GAAG;AACtG,WAAAC,EAAE,YAAYD,GACPC;AAAA,EACX,GACSF,EAAgB,GAAGC,CAAC;AAC7B;","x_google_ignoreList":[0]}
|