@selfdecode/sd-component-library 4.0.80 → 4.0.81
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/meters/outline-meter/interfaces.d.ts +1 -0
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +1 -1
- package/lib/sd-component-library101.js +4 -4
- package/lib/sd-component-library106.js +1 -1
- package/lib/sd-component-library107.js +1 -1
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library113.js +2 -2
- package/lib/sd-component-library115.js +1 -1
- package/lib/sd-component-library116.js +1 -1
- package/lib/sd-component-library121.js +2 -2
- package/lib/sd-component-library122.js +2 -2
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library127.js +3 -3
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library130.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library161.js +1 -1
- package/lib/sd-component-library162.js +1 -1
- package/lib/sd-component-library165.js +1 -1
- package/lib/sd-component-library166.js +4 -4
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library193.js +60 -2
- package/lib/sd-component-library193.js.map +1 -1
- package/lib/sd-component-library194.js +3 -30
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +2 -599
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +30 -60
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +599 -3
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +23 -55
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +14 -20
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library200.js +5 -19
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +3 -3
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +57 -5
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library210.js +1 -1
- package/lib/sd-component-library216.js +46 -3
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +3 -52
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +41 -54
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +16 -3
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +64 -45
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +3 -16
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +3 -26
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +26 -3
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library225.js +129 -19
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +42 -19
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +47 -28
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +7 -32
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +3 -3
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library230.js +19 -129
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +19 -42
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +28 -47
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +32 -7
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +46 -62
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +73 -41
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +64 -13
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +43 -2
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +13 -2
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +29 -21
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +3 -109
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +20 -43
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +3 -24
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +323 -51
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +5 -48
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +2 -75
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +18 -38
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +18 -25
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +21 -21
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +109 -20
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +47 -2
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +22 -323
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +53 -5
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +21 -25
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +22 -3
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +40 -23
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +27 -3
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +30 -25
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +50 -21
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +131 -30
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +62 -39
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +62 -117
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +30 -74
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +15 -70
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +120 -25
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +117 -16
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +10 -125
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +39 -111
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +9 -10
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +49 -48
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +89 -8
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +89 -48
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +48 -89
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +2 -92
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +2 -49
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library278.js +2 -2
- package/lib/sd-component-library279.js +2 -2
- package/lib/sd-component-library284.js +4 -4
- package/lib/sd-component-library285.js +2 -3
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +8 -3
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +328 -3
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library288.js +51 -2
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library289.js +3 -8
- package/lib/sd-component-library289.js.map +1 -1
- package/lib/sd-component-library290.js +3 -328
- package/lib/sd-component-library290.js.map +1 -1
- package/lib/sd-component-library291.js +3 -51
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +2 -58
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +76 -25
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +92 -50
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +50 -90
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +9 -25
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +5 -35
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +53 -5
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +2 -4
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +2 -9
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +8 -4
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +5 -4
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +4 -19
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +19 -3
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +3 -34
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +6 -2
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library307.js +56 -75
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library308.js +24 -91
- package/lib/sd-component-library308.js.map +1 -1
- package/lib/sd-component-library309.js +24 -52
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +35 -9
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +51 -5
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +89 -49
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +4 -28
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +4 -21
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +34 -6
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +28 -89
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +21 -32
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +90 -2
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +32 -2
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library59.js +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library69.js +2 -2
- package/lib/sd-component-library70.js +3 -3
- package/lib/sd-component-library71.js +1 -1
- package/lib/sd-component-library72.js +1 -1
- package/lib/sd-component-library74.js +1 -1
- package/lib/sd-component-library75.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +42 -41
- package/lib/sd-component-library81.js.map +1 -1
- package/lib/sd-component-library82.js +1 -1
- package/lib/sd-component-library83.js +1 -1
- package/lib/sd-component-library84.js +41 -40
- package/lib/sd-component-library84.js.map +1 -1
- package/lib/sd-component-library87.js +33 -32
- package/lib/sd-component-library87.js.map +1 -1
- package/lib/sd-component-library89.js +39 -38
- package/lib/sd-component-library89.js.map +1 -1
- package/lib/sd-component-library93.js +2 -2
- package/lib/sd-component-library94.js +3 -3
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +3 -3
- package/lib/sd-component-library97.js +2 -2
- package/lib/sd-component-library99.js +4 -4
- package/package.json +1 -1
- package/lib/favicon.ico +0 -0
- package/lib/index.html +0 -35
|
@@ -1,16 +1,67 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as a } from "./sd-component-library190.js";
|
|
2
|
+
import { getCoordinateForArc as i } from "./sd-component-library86.js";
|
|
3
|
+
import { defaultTextBottomMargin as X } from "./sd-component-library229.js";
|
|
4
|
+
import { getRangeProperties as Y } from "./sd-component-library313.js";
|
|
5
|
+
import { BaseOutlineArc as b } from "./sd-component-library309.js";
|
|
6
|
+
import { DiscreteMeterLabelPointer as w } from "./sd-component-library314.js";
|
|
7
|
+
function z(s) {
|
|
8
|
+
const {
|
|
9
|
+
color: n,
|
|
10
|
+
idx: c,
|
|
11
|
+
gaugeWidth: d,
|
|
12
|
+
diameter: g,
|
|
13
|
+
arc: m,
|
|
14
|
+
distanceBetweenRanges: l,
|
|
15
|
+
totalRanges: p,
|
|
16
|
+
showLabel: h,
|
|
17
|
+
label: o,
|
|
18
|
+
isMatchedRange: x,
|
|
19
|
+
pointerWidth: f,
|
|
20
|
+
pointerLength: A,
|
|
21
|
+
horizontal: u
|
|
22
|
+
} = s, t = g / 2, { rangeArcStart: r, rangeArcEnd: e } = Y(
|
|
23
|
+
m,
|
|
24
|
+
p,
|
|
25
|
+
l,
|
|
26
|
+
c
|
|
27
|
+
), { x: R, y: j } = i(
|
|
28
|
+
t,
|
|
29
|
+
r
|
|
30
|
+
), { x: B, y: E } = i(
|
|
31
|
+
t,
|
|
32
|
+
e
|
|
33
|
+
), M = (r + e) / 2;
|
|
34
|
+
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
35
|
+
/* @__PURE__ */ a.jsx(
|
|
36
|
+
b,
|
|
37
|
+
{
|
|
38
|
+
startX: R,
|
|
39
|
+
startY: j,
|
|
40
|
+
endX: B,
|
|
41
|
+
endY: E,
|
|
42
|
+
startAlpha: r,
|
|
43
|
+
endAlpha: e,
|
|
44
|
+
color: n,
|
|
45
|
+
radius: t,
|
|
46
|
+
width: d
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
h && o && !x && /* @__PURE__ */ a.jsx(
|
|
50
|
+
w,
|
|
51
|
+
{
|
|
52
|
+
alpha: M,
|
|
53
|
+
pointerLength: A,
|
|
54
|
+
pointerWidth: f,
|
|
55
|
+
radius: t,
|
|
56
|
+
color: n,
|
|
57
|
+
textBottomMargin: X,
|
|
58
|
+
label: o,
|
|
59
|
+
horizontal: u
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
13
64
|
export {
|
|
14
|
-
|
|
65
|
+
z as DiscreteRange
|
|
15
66
|
};
|
|
16
67
|
//# sourceMappingURL=sd-component-library236.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library236.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/
|
|
1
|
+
{"version":3,"file":"sd-component-library236.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseOutlineArc } from \"../../../outline-meter/partials/base-outline-arc\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { defaultTextBottomMargin } from \"../../constants\";\nimport { getRangeProperties } from \"../../utils\";\nimport { DiscreteMeterLabelPointer } from \"../discrete-meter-label-pointer\";\nimport { DiscreteRangeProps as Props } from \"./interfaces\";\n\nexport function DiscreteRange<T>(props: PropsWithChildren<Props<T>>) {\n const {\n color,\n idx,\n gaugeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n totalRanges,\n showLabel,\n label,\n isMatchedRange,\n pointerWidth,\n pointerLength,\n horizontal,\n } = props;\n\n const radius = diameter / 2;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const { x: rangeStartX, y: rangeStartY } = getCoordinateForArc(\n radius,\n rangeArcStart\n );\n const { x: rangeEndX, y: rangeEndY } = getCoordinateForArc(\n radius,\n rangeArcEnd\n );\n\n const middleArcAlpha = (rangeArcStart + rangeArcEnd) / 2;\n\n return (\n <g>\n <BaseOutlineArc\n startX={rangeStartX}\n startY={rangeStartY}\n endX={rangeEndX}\n endY={rangeEndY}\n startAlpha={rangeArcStart}\n endAlpha={rangeArcEnd}\n color={color}\n radius={radius}\n width={gaugeWidth}\n />\n\n {showLabel && label && !isMatchedRange && (\n <DiscreteMeterLabelPointer\n alpha={middleArcAlpha}\n pointerLength={pointerLength}\n pointerWidth={pointerWidth}\n radius={radius}\n color={color}\n textBottomMargin={defaultTextBottomMargin}\n label={label}\n horizontal={horizontal}\n />\n )}\n </g>\n );\n}\n"],"names":["DiscreteRange","props","color","idx","gaugeWidth","diameter","arc","distanceBetweenRanges","totalRanges","showLabel","label","isMatchedRange","pointerWidth","pointerLength","horizontal","radius","rangeArcStart","rangeArcEnd","getRangeProperties","rangeStartX","rangeStartY","getCoordinateForArc","rangeEndX","rangeEndY","middleArcAlpha","jsx","BaseOutlineArc","DiscreteMeterLabelPointer","defaultTextBottomMargin"],"mappings":";;;;;;AASO,SAASA,EAAiBC,GAAoC;AAC7D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAb,GAEEc,IAASV,IAAW,GAEpB,EAAE,eAAAW,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCZ;AAAA,IACAE;AAAA,IACAD;AAAA,IACAJ;AAAA,EAAA,GAGI,EAAE,GAAGgB,GAAa,GAAGC,EAAgB,IAAAC;AAAA,IACzCN;AAAA,IACAC;AAAA,EAAA,GAEI,EAAE,GAAGM,GAAW,GAAGC,EAAc,IAAAF;AAAA,IACrCN;AAAA,IACAE;AAAA,EAAA,GAGIO,KAAkBR,IAAgBC,KAAe;AAEvD,gCACG,KACC,EAAA,UAAA;AAAA,IAAAQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAQP;AAAA,QACR,QAAQC;AAAA,QACR,MAAME;AAAA,QACN,MAAMC;AAAA,QACN,YAAYP;AAAA,QACZ,UAAUC;AAAA,QACV,OAAAf;AAAA,QACA,QAAAa;AAAA,QACA,OAAOX;AAAA,MAAA;AAAA,IACT;AAAA,IAECK,KAAaC,KAAS,CAACC,KACtBc,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAOH;AAAA,QACP,eAAAX;AAAA,QACA,cAAAD;AAAA,QACA,QAAAG;AAAA,QACA,OAAAb;AAAA,QACA,kBAAkB0B;AAAA,QAClB,OAAAlB;AAAA,QACA,YAAAI;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as M } from "./sd-component-library190.js";
|
|
2
|
+
import { getInnerX as T, getInnerY as W, degToRad as r, getCoordinateForArc as y } from "./sd-component-library86.js";
|
|
3
|
+
import { BaseNeedle as B } from "./sd-component-library310.js";
|
|
4
|
+
function E(p) {
|
|
5
|
+
const {
|
|
6
|
+
needleColor: u,
|
|
7
|
+
options: n,
|
|
8
|
+
value: h,
|
|
9
|
+
needleWidth: e,
|
|
10
|
+
innerCircleRadius: m,
|
|
11
|
+
innerCircleStrokeWidth: x,
|
|
12
|
+
diameter: R,
|
|
13
|
+
arc: a,
|
|
14
|
+
distanceBetweenRanges: c,
|
|
15
|
+
distanceFromRange: s,
|
|
16
|
+
gaugeWidth: i
|
|
17
|
+
} = p, o = n.findIndex(
|
|
18
|
+
(F) => h === F.value
|
|
19
|
+
), d = R / 2, f = (360 - a) / 2, l = a - (n.length - 1) * c, g = o / n.length, v = (o + 1) / n.length, A = l * (v - g), t = f + c * o + l * g + A / 2, { x: C, y: I } = y(d, t), S = T(
|
|
20
|
+
C,
|
|
21
|
+
r(t),
|
|
22
|
+
s + i + e / 2
|
|
23
|
+
), X = W(
|
|
24
|
+
I,
|
|
25
|
+
r(t),
|
|
26
|
+
s + i + e / 2
|
|
27
|
+
), Y = e / 2 * Math.cos(r(t)), j = e / 2 * Math.sin(r(t));
|
|
28
|
+
return /* @__PURE__ */ M.jsx(
|
|
29
|
+
B,
|
|
30
|
+
{
|
|
31
|
+
dx: Y,
|
|
32
|
+
dy: j,
|
|
33
|
+
color: u,
|
|
34
|
+
radius: d,
|
|
35
|
+
tipX: S,
|
|
36
|
+
tipY: X,
|
|
37
|
+
innerCircleStrokeWidth: x,
|
|
38
|
+
innerCircleRadius: m,
|
|
39
|
+
needleWidth: e
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
2
43
|
export {
|
|
3
|
-
|
|
44
|
+
E as DiscreteMeterNeedle
|
|
4
45
|
};
|
|
5
46
|
//# sourceMappingURL=sd-component-library237.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library237.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library237.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseNeedle } from \"../../../outline-meter/partials/base-needle\";\nimport {\n degToRad,\n getCoordinateForArc,\n getInnerX,\n getInnerY,\n} from \"../../../outline-meter/utils\";\nimport { DiscreteMeterNeedleProps as Props } from \"./interfaces\";\n\nexport function DiscreteMeterNeedle<T>(props: PropsWithChildren<Props<T>>) {\n const {\n needleColor,\n options,\n value,\n needleWidth,\n innerCircleRadius,\n innerCircleStrokeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n distanceFromRange,\n gaugeWidth,\n } = props;\n\n const matchingRangeIndex = options.findIndex(\n (option) => value === option.value\n );\n\n const radius = diameter / 2;\n\n const arcStart = (360 - arc) / 2;\n const arcForRanges = arc - (options.length - 1) * distanceBetweenRanges;\n\n const start = matchingRangeIndex / options.length;\n const end = (matchingRangeIndex + 1) / options.length;\n\n const rangeArc = arcForRanges * (end - start);\n\n const rangeArcStart =\n arcStart +\n distanceBetweenRanges * matchingRangeIndex +\n arcForRanges * start;\n\n const valueAlpha = rangeArcStart + rangeArc / 2;\n const { x: valueX, y: valueY } = getCoordinateForArc(radius, valueAlpha);\n\n const needleTipX = getInnerX(\n valueX,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n const needleTipY = getInnerY(\n valueY,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n\n const dx = (needleWidth / 2) * Math.cos(degToRad(valueAlpha));\n const dy = (needleWidth / 2) * Math.sin(degToRad(valueAlpha));\n\n return (\n <BaseNeedle\n dx={dx}\n dy={dy}\n color={needleColor}\n radius={radius}\n tipX={needleTipX}\n tipY={needleTipY}\n innerCircleStrokeWidth={innerCircleStrokeWidth}\n innerCircleRadius={innerCircleRadius}\n needleWidth={needleWidth}\n />\n );\n}\n"],"names":["DiscreteMeterNeedle","props","needleColor","options","value","needleWidth","innerCircleRadius","innerCircleStrokeWidth","diameter","arc","distanceBetweenRanges","distanceFromRange","gaugeWidth","matchingRangeIndex","option","radius","arcStart","arcForRanges","start","end","rangeArc","valueAlpha","valueX","valueY","getCoordinateForArc","needleTipX","getInnerX","degToRad","needleTipY","getInnerY","dx","dy","jsx","BaseNeedle"],"mappings":";;;AAWO,SAASA,EAAuBC,GAAoC;AACnE,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAX,GAEEY,IAAqBV,EAAQ;AAAA,IACjC,CAACW,MAAWV,MAAUU,EAAO;AAAA,EAAA,GAGzBC,IAASP,IAAW,GAEpBQ,KAAY,MAAMP,KAAO,GACzBQ,IAAeR,KAAON,EAAQ,SAAS,KAAKO,GAE5CQ,IAAQL,IAAqBV,EAAQ,QACrCgB,KAAON,IAAqB,KAAKV,EAAQ,QAEzCiB,IAAWH,KAAgBE,IAAMD,IAOjCG,IAJJL,IACAN,IAAwBG,IACxBI,IAAeC,IAEkBE,IAAW,GACxC,EAAE,GAAGE,GAAQ,GAAGC,MAAWC,EAAoBT,GAAQM,CAAU,GAEjEI,IAAaC;AAAA,IACjBJ;AAAA,IACAK,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAE3CuB,IAAaC;AAAA,IACjBN;AAAA,IACAI,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAG3CyB,IAAMzB,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC,GACtDU,IAAM1B,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC;AAG1D,SAAAW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAAH;AAAA,MACA,IAAAC;AAAA,MACA,OAAO7B;AAAA,MACP,QAAAa;AAAA,MACA,MAAMU;AAAA,MACN,MAAMG;AAAA,MACN,wBAAArB;AAAA,MACA,mBAAAD;AAAA,MACA,aAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as g } from "./sd-component-library190.js";
|
|
2
|
+
import { getRangeProperties as d } from "./sd-component-library313.js";
|
|
3
|
+
import { MatchedRangeLabelBox as x } from "./sd-component-library312.js";
|
|
4
|
+
const h = (e) => {
|
|
5
|
+
const { idx: t, totalRanges: a, distanceBetweenRanges: r, arc: n } = e, { rangeArcStart: o, rangeArcEnd: s } = d(
|
|
6
|
+
n,
|
|
7
|
+
a,
|
|
8
|
+
r,
|
|
9
|
+
t
|
|
10
|
+
), c = Math.round((o + s) / 2);
|
|
11
|
+
return /* @__PURE__ */ g.jsx(x, { ...e, alpha: c, round: !0 });
|
|
12
|
+
};
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
h as MatchedRangeLabelBox
|
|
4
15
|
};
|
|
5
16
|
//# sourceMappingURL=sd-component-library238.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library238.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { MatchedRangeLabelBox as LabelBox } from \"../../../common-outline-meter-partials\";\nimport { getRangeProperties } from \"../../utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const { idx, totalRanges, distanceBetweenRanges, arc } = props;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const alpha = Math.round((rangeArcStart + rangeArcEnd) / 2);\n\n return <LabelBox {...props} alpha={alpha} round />;\n};\n"],"names":["MatchedRangeLabelBox","props","idx","totalRanges","distanceBetweenRanges","arc","rangeArcStart","rangeArcEnd","getRangeProperties","alpha","LabelBox"],"mappings":";;;AAMa,MAAAA,IAAwC,CAACC,MAAU;AAC9D,QAAM,EAAE,KAAAC,GAAK,aAAAC,GAAa,uBAAAC,GAAuB,KAAAC,MAAQJ,GAEnD,EAAE,eAAAK,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCH;AAAA,IACAF;AAAA,IACAC;AAAA,IACAF;AAAA,EAAA,GAGIO,IAAQ,KAAK,OAAOH,IAAgBC,KAAe,CAAC;AAE1D,+BAAQG,GAAU,EAAA,GAAGT,GAAO,OAAAQ,GAAc,OAAK,GAAC,CAAA;AAClD;"}
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { j as n } from "./sd-component-library190.js";
|
|
2
|
+
import { Button as a } from "./sd-component-library25.js";
|
|
3
|
+
const u = (r) => {
|
|
4
|
+
const {
|
|
5
|
+
borderColor: e,
|
|
6
|
+
borderStyle: o,
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
fill: d,
|
|
9
|
+
width: l,
|
|
10
|
+
height: h,
|
|
11
|
+
disabled: t
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ n.jsx(
|
|
14
|
+
a,
|
|
15
|
+
{
|
|
16
|
+
...r,
|
|
17
|
+
width: l || ["30px"],
|
|
18
|
+
height: h || ["30px"],
|
|
19
|
+
borderColor: t ? "cl_lightGrey" : e || "#4668F8",
|
|
20
|
+
borderStyle: o || "solid",
|
|
21
|
+
borderWidth: i || "2px",
|
|
22
|
+
fill: t ? "cl_lightGrey" : d || "#4668F8",
|
|
23
|
+
"data-testid": "square-button",
|
|
24
|
+
variant: "_square",
|
|
25
|
+
children: r.children
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
};
|
|
18
29
|
export {
|
|
19
|
-
|
|
20
|
-
I as getFractionColor,
|
|
21
|
-
h as isLabelActive,
|
|
22
|
-
T as mapAdjacent
|
|
30
|
+
u as SquareButton
|
|
23
31
|
};
|
|
24
32
|
//# sourceMappingURL=sd-component-library239.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library239.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library239.js","sources":["../src/components/buttons/partials/square-button/square-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Button } from \"../../button\";\nimport { SquareButtonProps } from \"./interfaces\";\n\n/**\n * The circle button.\n */\nexport const SquareButton: React.FC<SquareButtonProps> = (props) => {\n const {\n borderColor,\n borderStyle,\n borderWidth,\n fill,\n width,\n height,\n disabled,\n } = props;\n return (\n <Button\n {...props}\n width={width || [\"30px\"]}\n height={height || [\"30px\"]}\n borderColor={!disabled ? borderColor || \"#4668F8\" : \"cl_lightGrey\"}\n borderStyle={borderStyle || \"solid\"}\n borderWidth={borderWidth || \"2px\"}\n fill={!disabled ? fill || \"#4668F8\" : \"cl_lightGrey\"}\n data-testid=\"square-button\"\n variant=\"_square\"\n >\n {props.children}\n </Button>\n );\n};\n"],"names":["SquareButton","props","borderColor","borderStyle","borderWidth","fill","width","height","disabled","jsx","Button"],"mappings":";;AAQa,MAAAA,IAA4C,CAACC,MAAU;AAC5D,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAP;AAEF,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGT;AAAA,MACJ,OAAOK,KAAS,CAAC,MAAM;AAAA,MACvB,QAAQC,KAAU,CAAC,MAAM;AAAA,MACzB,aAAcC,IAAsC,iBAA3BN,KAAe;AAAA,MACxC,aAAaC,KAAe;AAAA,MAC5B,aAAaC,KAAe;AAAA,MAC5B,MAAOI,IAA+B,iBAApBH,KAAQ;AAAA,MAC1B,eAAY;AAAA,MACZ,SAAQ;AAAA,MAEP,UAAMJ,EAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library190.js";
|
|
2
|
-
import { LogoButton as e } from "./sd-component-
|
|
3
|
-
import { ReactComponent as r } from "./sd-component-
|
|
2
|
+
import { LogoButton as e } from "./sd-component-library199.js";
|
|
3
|
+
import { ReactComponent as r } from "./sd-component-library201.js";
|
|
4
4
|
const p = (t) => /* @__PURE__ */ o.jsx(
|
|
5
5
|
e,
|
|
6
6
|
{
|
|
@@ -1,112 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { getFractionColor as O } from "./sd-component-library239.js";
|
|
4
|
-
import { BaseOutlineArc as X } from "./sd-component-library296.js";
|
|
5
|
-
const w = "#CCD0DB", q = (G) => {
|
|
6
|
-
const {
|
|
7
|
-
diameter: I,
|
|
8
|
-
idx: d,
|
|
9
|
-
endColor: Y,
|
|
10
|
-
startColor: f,
|
|
11
|
-
segmented: v,
|
|
12
|
-
totalRanges: n,
|
|
13
|
-
value: i,
|
|
14
|
-
arc: l,
|
|
15
|
-
innerPointRadius: W,
|
|
16
|
-
pointStrokeWidth: C,
|
|
17
|
-
gaugeWidth: e,
|
|
18
|
-
pointColor: $
|
|
19
|
-
} = G, c = d / n, x = (d + 1) / n, k = i >= c && i <= x, R = (360 - l) / 2, r = I / 2, g = R + l * c, j = R + l * x, { x: u, y: h } = A(
|
|
20
|
-
r,
|
|
21
|
-
g
|
|
22
|
-
), { x: m, y } = A(
|
|
23
|
-
r,
|
|
24
|
-
j
|
|
25
|
-
);
|
|
26
|
-
if (v || !k)
|
|
27
|
-
return /* @__PURE__ */ t.jsx(
|
|
28
|
-
X,
|
|
29
|
-
{
|
|
30
|
-
startX: u,
|
|
31
|
-
startY: h,
|
|
32
|
-
endX: m,
|
|
33
|
-
endY: y,
|
|
34
|
-
startAlpha: g,
|
|
35
|
-
endAlpha: j,
|
|
36
|
-
color: v || i > x ? `url(#gradient-${f}-${Y})` : w,
|
|
37
|
-
radius: r,
|
|
38
|
-
width: e
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
const o = g + (i - c) / (x - c) * l / n, { x: a, y: s } = A(r, o), F = H(a, E(o), e), B = M(s, E(o), e), D = d >= n / 2, S = d + 1 === n / 2 + 0.5, z = S ? (a - u) / (m - u) : (s - h) / (y - h), p = O(z, f, Y);
|
|
42
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsxs(
|
|
44
|
-
"linearGradient",
|
|
45
|
-
{
|
|
46
|
-
id: `value-gradient-${p}`,
|
|
47
|
-
...D ? {
|
|
48
|
-
x1: 0,
|
|
49
|
-
y1: 0,
|
|
50
|
-
x2: 0,
|
|
51
|
-
y2: 1
|
|
52
|
-
} : S ? { x1: 0, y1: 0, x2: 1, y2: 0 } : {
|
|
53
|
-
x1: 0,
|
|
54
|
-
y1: 1,
|
|
55
|
-
x2: 0,
|
|
56
|
-
y2: 0
|
|
57
|
-
},
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ t.jsx("stop", { stopColor: f, offset: "0%" }),
|
|
60
|
-
/* @__PURE__ */ t.jsx("stop", { stopColor: p, offset: "100%" })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
) }),
|
|
64
|
-
/* @__PURE__ */ t.jsxs("g", { children: [
|
|
65
|
-
/* @__PURE__ */ t.jsx(
|
|
66
|
-
X,
|
|
67
|
-
{
|
|
68
|
-
startX: u,
|
|
69
|
-
startY: h,
|
|
70
|
-
endX: a,
|
|
71
|
-
endY: s,
|
|
72
|
-
startAlpha: g,
|
|
73
|
-
endAlpha: o,
|
|
74
|
-
color: `url(#value-gradient-${p})`,
|
|
75
|
-
radius: r,
|
|
76
|
-
width: e,
|
|
77
|
-
roundEnd: !1
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ t.jsx(
|
|
81
|
-
X,
|
|
82
|
-
{
|
|
83
|
-
startX: a,
|
|
84
|
-
startY: s,
|
|
85
|
-
endX: m,
|
|
86
|
-
endY: y,
|
|
87
|
-
startAlpha: o,
|
|
88
|
-
endAlpha: j,
|
|
89
|
-
color: w,
|
|
90
|
-
radius: r,
|
|
91
|
-
width: e,
|
|
92
|
-
roundStart: !1
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ t.jsx(
|
|
96
|
-
"circle",
|
|
97
|
-
{
|
|
98
|
-
cx: (a + F) / 2,
|
|
99
|
-
cy: (s + B) / 2,
|
|
100
|
-
r: C + W,
|
|
101
|
-
strokeWidth: C,
|
|
102
|
-
stroke: $ || p,
|
|
103
|
-
fill: "white"
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
] })
|
|
107
|
-
] });
|
|
108
|
-
};
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
const e = (t) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 7, height: 13, viewBox: "0 0 7 13", ...t }, /* @__PURE__ */ a.createElement("path", { id: "Forma_1_copy_3", "data-name": "Forma 1 copy 3", d: "M8009.72,5251.88l-5.6-6.08a0.435,0.435,0,0,1,0-.6l5.6-6.08a0.354,0.354,0,0,1,.28-0.13,0.349,0.349,0,0,1,.27.13l0.61,0.65a0.435,0.435,0,0,1,0,.6l-4.73,5.13,4.73,5.13a0.423,0.423,0,0,1,.12.3,0.441,0.441,0,0,1-.12.3l-0.61.65a0.349,0.349,0,0,1-.27.13A0.354,0.354,0,0,1,8009.72,5251.88Z", transform: "translate(-8004 -5239)" }));
|
|
109
3
|
export {
|
|
110
|
-
|
|
4
|
+
e as ReactComponent
|
|
111
5
|
};
|
|
112
6
|
//# sourceMappingURL=sd-component-library240.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library240.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library240.js","sources":["../src/components/page-selectors/page-selector/assets/previous.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjEzIiB2aWV3Qm94PSIwIDAgNyAxMyI+CiAgPHBhdGggaWQ9IkZvcm1hXzFfY29weV8zIiBkYXRhLW5hbWU9IkZvcm1hIDEgY29weSAzIiBkPSJNODAwOS43Miw1MjUxLjg4bC01LjYtNi4wOGEwLjQzNSwwLjQzNSwwLDAsMSwwLS42bDUuNi02LjA4YTAuMzU0LDAuMzU0LDAsMCwxLC4yOC0wLjEzLDAuMzQ5LDAuMzQ5LDAsMCwxLC4yNy4xM2wwLjYxLDAuNjVhMC40MzUsMC40MzUsMCwwLDEsMCwuNmwtNC43Myw1LjEzLDQuNzMsNS4xM2EwLjQyMywwLjQyMywwLDAsMSwuMTIuMywwLjQ0MSwwLjQ0MSwwLDAsMS0uMTIuM2wtMC42MS42NWEwLjM0OSwwLjM0OSwwLDAsMS0uMjcuMTNBMC4zNTQsMC4zNTQsMCwwLDEsODAwOS43Miw1MjUxLjg4WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTgwMDQgLTUyMzkpIi8+Cjwvc3ZnPgo=\""],"names":["SvgPrevious","props","React"],"mappings":";AACK,MAACA,IAAc,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,GAAG,QAAQ,IAAI,SAAS,YAAY,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,IAAI,kBAAkB,aAAa,kBAAkB,GAAG,6RAA6R,WAAW,yBAAwB,CAAE,CAAC;"}
|
|
@@ -1,50 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ranges: r,
|
|
8
|
-
distanceFromRange: d,
|
|
9
|
-
innerCircleRadius: X,
|
|
10
|
-
innerCircleStrokeWidth: Y,
|
|
11
|
-
needleWidth: n,
|
|
12
|
-
arc: a,
|
|
13
|
-
value: l,
|
|
14
|
-
gaugeWidth: g,
|
|
15
|
-
diameter: v,
|
|
16
|
-
needleColor: S
|
|
17
|
-
} = R, s = v / 2, e = r.length, t = Math.floor(l * e), y = r[t][0], A = r[t][1], u = (360 - a) / 2, m = u + a * t / e, E = u + a * (t + 1) / e, p = t / e, M = (t + 1) / e, { x: h, y: x } = i(
|
|
18
|
-
s,
|
|
19
|
-
m
|
|
20
|
-
), { x: j, y: F } = i(
|
|
21
|
-
s,
|
|
22
|
-
E
|
|
23
|
-
), o = m + (l - p) / (M - p) * a / r.length, { x: C, y: f } = i(s, o), G = k(
|
|
24
|
-
C,
|
|
25
|
-
c(o),
|
|
26
|
-
d + g + n / 2
|
|
27
|
-
), I = B(
|
|
28
|
-
f,
|
|
29
|
-
c(o),
|
|
30
|
-
d + g + n / 2
|
|
31
|
-
), T = n / 2 * Math.cos(c(o)), W = n / 2 * Math.sin(c(o)), z = t + 1 === e / 2 + 0.5 ? (C - h) / (j - h) : (f - x) / (F - x), H = b(z, y, A);
|
|
32
|
-
return /* @__PURE__ */ N.jsx(
|
|
33
|
-
q,
|
|
1
|
+
import { j as t } from "./sd-component-library190.js";
|
|
2
|
+
import { ResponsiveTextV2 as o } from "./sd-component-library144.js";
|
|
3
|
+
const s = (e) => {
|
|
4
|
+
const { currentPage: r } = e;
|
|
5
|
+
return /* @__PURE__ */ t.jsx(
|
|
6
|
+
o,
|
|
34
7
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
fontSizeWeight: [14, "regular"],
|
|
9
|
+
sx: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
borderColor: "cl_lightGrey",
|
|
14
|
+
borderWidth: 1,
|
|
15
|
+
borderStyle: "solid",
|
|
16
|
+
borderRadius: "3px",
|
|
17
|
+
height: "30px",
|
|
18
|
+
minWidth: "30px"
|
|
19
|
+
},
|
|
20
|
+
children: r
|
|
44
21
|
}
|
|
45
22
|
);
|
|
46
23
|
};
|
|
47
24
|
export {
|
|
48
|
-
|
|
25
|
+
s as CurrentPage
|
|
49
26
|
};
|
|
50
27
|
//# sourceMappingURL=sd-component-library241.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library241.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library241.js","sources":["../src/components/page-selectors/page-selector/partials/current-page/current-page.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CurrentPageProps as Props } from \"./interfaces\";\n\nexport const CurrentPage: React.FC<Props> = (props) => {\n const { currentPage } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderColor: \"cl_lightGrey\",\n borderWidth: 1,\n borderStyle: \"solid\",\n borderRadius: \"3px\",\n height: \"30px\",\n minWidth: \"30px\",\n }}\n >\n {currentPage}\n </ResponsiveTextV2>\n );\n};\n"],"names":["CurrentPage","props","currentPage","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAA+B,CAACC,MAAU;AAC/C,QAAA,EAAE,aAAAC,EAAgB,IAAAD;AAGtB,SAAAE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,MAC9B,IAAI;AAAA,QACF,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,aAAa;AAAA,QACb,aAAa;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,QACd,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MAEC,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
const { position: s, diameter: t, rangeY: e, rangeX: n, distanceFromRanges: r, isInRange: o } = a;
|
|
4
|
-
if (o)
|
|
5
|
-
return null;
|
|
6
|
-
const { startX: d, startY: i, endX: X, endY: Y } = s === "left" ? {
|
|
7
|
-
startX: n || 0,
|
|
8
|
-
startY: e || t / 2 - 0.5,
|
|
9
|
-
endX: -r,
|
|
10
|
-
endY: t / 2 - 0.5
|
|
11
|
-
} : s === "top" ? {
|
|
12
|
-
startX: n || t / 2,
|
|
13
|
-
startY: e || 0,
|
|
14
|
-
endX: t / 2,
|
|
15
|
-
endY: -r
|
|
16
|
-
} : {
|
|
17
|
-
startX: n || t,
|
|
18
|
-
startY: e || t / 2 - 0.5,
|
|
19
|
-
endX: t + r,
|
|
20
|
-
endY: t / 2 - 0.5
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ p.jsx("path", { d: `M${d},${i} L${X},${Y}`, stroke: "#CCD0DB" });
|
|
23
|
-
};
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
const e = (t) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 7, height: 13, viewBox: "0 0 7 13", ...t }, /* @__PURE__ */ a.createElement("path", { id: "Forma_1_copy_3", "data-name": "Forma 1 copy 3", d: "M8105.27,5251.88l5.6-6.08a0.435,0.435,0,0,0,0-.6l-5.6-6.08a0.349,0.349,0,0,0-.27-0.13,0.354,0.354,0,0,0-.28.13l-0.6.65a0.435,0.435,0,0,0,0,.6l4.72,5.13-4.72,5.13a0.423,0.423,0,0,0-.12.3,0.441,0.441,0,0,0,.12.3l0.6,0.65a0.354,0.354,0,0,0,.28.13A0.349,0.349,0,0,0,8105.27,5251.88Z", transform: "translate(-8104 -5239)" }));
|
|
24
3
|
export {
|
|
25
|
-
|
|
4
|
+
e as ReactComponent
|
|
26
5
|
};
|
|
27
6
|
//# sourceMappingURL=sd-component-library242.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library242.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library242.js","sources":["../src/components/page-selectors/page-selector/assets/next.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjEzIiB2aWV3Qm94PSIwIDAgNyAxMyI+CiAgPHBhdGggaWQ9IkZvcm1hXzFfY29weV8zIiBkYXRhLW5hbWU9IkZvcm1hIDEgY29weSAzIiBkPSJNODEwNS4yNyw1MjUxLjg4bDUuNi02LjA4YTAuNDM1LDAuNDM1LDAsMCwwLDAtLjZsLTUuNi02LjA4YTAuMzQ5LDAuMzQ5LDAsMCwwLS4yNy0wLjEzLDAuMzU0LDAuMzU0LDAsMCwwLS4yOC4xM2wtMC42LjY1YTAuNDM1LDAuNDM1LDAsMCwwLDAsLjZsNC43Miw1LjEzLTQuNzIsNS4xM2EwLjQyMywwLjQyMywwLDAsMC0uMTIuMywwLjQ0MSwwLjQ0MSwwLDAsMCwuMTIuM2wwLjYsMC42NWEwLjM1NCwwLjM1NCwwLDAsMCwuMjguMTNBMC4zNDksMC4zNDksMCwwLDAsODEwNS4yNyw1MjUxLjg4WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTgxMDQgLTUyMzkpIi8+Cjwvc3ZnPgo=\""],"names":["SvgNext","props","React"],"mappings":";AACK,MAACA,IAAU,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,GAAG,QAAQ,IAAI,SAAS,YAAY,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,IAAI,kBAAkB,aAAa,kBAAkB,GAAG,0RAA0R,WAAW,yBAAwB,CAAE,CAAC;"}
|