@rubin-epo/epo-widget-lib 0.9.8 → 0.9.10
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/dist/CameraFilter.cjs +1 -1
- package/dist/CameraFilter.js +25 -24
- package/dist/Charts.cjs +1 -1
- package/dist/Charts.js +14 -12
- package/dist/ColorTool.cjs +1 -1
- package/dist/ColorTool.js +98 -103
- package/dist/FilterTool.cjs +1 -1
- package/dist/FilterTool.js +1 -1
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +12 -12
- package/dist/atomic/PlaybackControl/PlaybackControl.d.ts +1 -2
- package/dist/charts/Bars/index.d.ts +1 -1
- package/dist/charts/Base/index.d.ts +1 -1
- package/dist/charts/Guidelines/index.cjs +1 -1
- package/dist/charts/Guidelines/index.d.ts +1 -1
- package/dist/charts/Guidelines/index.js +9 -9
- package/dist/charts/Points/ErrorBar.cjs +1 -0
- package/dist/charts/Points/ErrorBar.d.ts +9 -0
- package/dist/charts/Points/ErrorBar.js +119 -0
- package/dist/charts/Points/index.cjs +1 -1
- package/dist/charts/Points/index.d.ts +5 -11
- package/dist/charts/Points/index.js +44 -22
- package/dist/charts/ScatterPlot/index.cjs +1 -0
- package/dist/charts/ScatterPlot/index.d.ts +24 -0
- package/dist/charts/ScatterPlot/index.js +133 -0
- package/dist/charts/ScatterPlot/styles.cjs +22 -0
- package/dist/charts/ScatterPlot/styles.d.ts +16 -0
- package/dist/charts/ScatterPlot/styles.js +29 -0
- package/dist/charts/XAxis/index.d.ts +1 -1
- package/dist/charts/YAxis/index.d.ts +1 -1
- package/dist/charts/defaults.cjs +1 -0
- package/dist/charts/defaults.d.ts +22 -0
- package/dist/charts/defaults.js +23 -0
- package/dist/charts/hooks/useAxis.d.ts +1 -1
- package/dist/charts/index.d.ts +1 -0
- package/dist/hooks/useInterval.cjs +1 -1
- package/dist/hooks/useInterval.js +10 -10
- package/dist/hooks/useWindowSize.d.ts +4 -0
- package/dist/layout/AspectRatio/index.cjs +1 -0
- package/dist/layout/AspectRatio/index.d.ts +18 -0
- package/dist/layout/AspectRatio/index.js +24 -0
- package/dist/layout/AspectRatio/styles.cjs +16 -0
- package/dist/{widgets/ColorTool/Actions → layout/AspectRatio}/styles.d.ts +1 -1
- package/dist/layout/AspectRatio/styles.js +22 -0
- package/dist/layout/Controls/index.cjs +1 -0
- package/dist/layout/Controls/index.d.ts +10 -0
- package/dist/layout/Controls/index.js +31 -0
- package/dist/layout/Controls/styles.cjs +63 -0
- package/dist/{widgets/ColorTool → layout/Controls}/styles.d.ts +604 -332
- package/dist/layout/Controls/styles.js +75 -0
- package/dist/lib/reimg.cjs +1 -1
- package/dist/lib/reimg.d.ts +2 -2
- package/dist/lib/reimg.js +30 -31
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.cjs +1 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.js +1 -1
- package/dist/widgets/CameraFilter/styles.cjs +24 -20
- package/dist/widgets/CameraFilter/styles.js +36 -32
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/index.js +24 -25
- package/dist/widgets/ColorTool/FilterControls/styles.cjs +4 -4
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +1252 -0
- package/dist/widgets/ColorTool/FilterControls/styles.js +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +26 -29
- package/dist/widgets/ColorTool/ImageComposite/styles.cjs +5 -3
- package/dist/widgets/ColorTool/ImageComposite/styles.js +4 -2
- package/dist/widgets/ColorTool/styles.cjs +10 -24
- package/dist/widgets/ColorTool/styles.js +15 -29
- package/dist/widgets/FilterTool/FilterTool.d.ts +1 -1
- package/dist/widgets/FilterTool/styles.cjs +9 -9
- package/dist/widgets/FilterTool/styles.d.ts +6 -269
- package/dist/widgets/FilterTool/styles.js +17 -16
- package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/Plot/index.d.ts +12 -0
- package/dist/widgets/LightCurvePlot/Plot/index.js +99 -0
- package/dist/widgets/LightCurvePlot/{ScatterPlot → Plot}/styles.cjs +4 -4
- package/dist/widgets/LightCurvePlot/{ScatterPlot → Plot}/styles.js +7 -6
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/{A11Y → PlotWithCurve/A11Y}/LightCurveLabel/index.d.ts +2 -2
- package/dist/widgets/LightCurvePlot/{A11Y → PlotWithCurve/A11Y}/LightCurveLabel/index.js +2 -2
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/{DM15Display → PlotWithCurve/DM15Display}/index.js +2 -2
- package/dist/widgets/LightCurvePlot/PlotWithCurve/LightCurve/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/{LightCurve → PlotWithCurve/LightCurve}/index.d.ts +1 -1
- package/dist/widgets/LightCurvePlot/{LightCurve → PlotWithCurve/LightCurve}/index.js +1 -1
- package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/index.d.ts +0 -2
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +129 -115
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.cjs +9 -11
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +13 -16
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.d.ts +2 -2
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.js +17 -15
- package/dist/widgets/LightCurvePlot/helpers.cjs +1 -1
- package/dist/widgets/LightCurvePlot/helpers.d.ts +3 -12
- package/dist/widgets/LightCurvePlot/helpers.js +33 -18
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.js +53 -60
- package/dist/widgets/SupernovaThreeVector/Histogram/index.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/index.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/styles.cjs +10 -10
- package/dist/widgets/SupernovaThreeVector/styles.js +23 -22
- package/package.json +1 -1
- package/dist/styles/svg.cjs +0 -8
- package/dist/styles/svg.js +0 -13
- package/dist/widgets/ColorTool/Actions/styles.cjs +0 -5
- package/dist/widgets/ColorTool/Actions/styles.js +0 -10
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/index.cjs +0 -1
- package/dist/widgets/LightCurvePlot/DM15Display/index.cjs +0 -1
- package/dist/widgets/LightCurvePlot/LightCurve/index.cjs +0 -1
- package/dist/widgets/LightCurvePlot/Point/index.cjs +0 -1
- package/dist/widgets/LightCurvePlot/Point/index.d.ts +0 -11
- package/dist/widgets/LightCurvePlot/Point/index.js +0 -68
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.cjs +0 -1
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.d.ts +0 -12
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.js +0 -178
- /package/dist/widgets/LightCurvePlot/{ScatterPlot → Plot}/styles.d.ts +0 -0
- /package/dist/widgets/LightCurvePlot/{A11Y → PlotWithCurve/A11Y}/LightCurveLabel/styles.cjs +0 -0
- /package/dist/widgets/LightCurvePlot/{A11Y → PlotWithCurve/A11Y}/LightCurveLabel/styles.d.ts +0 -0
- /package/dist/widgets/LightCurvePlot/{A11Y → PlotWithCurve/A11Y}/LightCurveLabel/styles.js +0 -0
- /package/dist/widgets/LightCurvePlot/{DM15Display → PlotWithCurve/DM15Display}/index.d.ts +0 -0
- /package/dist/widgets/LightCurvePlot/{DM15Display → PlotWithCurve/DM15Display}/styles.cjs +0 -0
- /package/dist/widgets/LightCurvePlot/{DM15Display → PlotWithCurve/DM15Display}/styles.d.ts +0 -0
- /package/dist/widgets/LightCurvePlot/{DM15Display → PlotWithCurve/DM15Display}/styles.js +0 -0
- /package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/index.cjs +0 -0
- /package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/index.js +0 -0
- /package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/styles.cjs +0 -0
- /package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/styles.js +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import o from "styled-components";
|
|
3
|
-
|
|
3
|
+
import t from "../../layout/AspectRatio/index.js";
|
|
4
|
+
const e = o(t)`
|
|
4
5
|
background-color: var(--black, #000);
|
|
5
|
-
`,
|
|
6
|
+
`, l = o.div`
|
|
6
7
|
box-sizing: border-box;
|
|
7
8
|
display: flex;
|
|
8
9
|
align-items: center;
|
|
@@ -15,36 +16,36 @@ const t = o.div`
|
|
|
15
16
|
o.label`
|
|
16
17
|
color: var(--white, #fff);
|
|
17
18
|
`;
|
|
18
|
-
const
|
|
19
|
+
const n = o.svg`
|
|
19
20
|
font-size: 42px;
|
|
20
|
-
`,
|
|
21
|
+
`, a = o.line`
|
|
21
22
|
fill: none;
|
|
22
23
|
stroke: #ffffff;
|
|
23
24
|
stroke-miterlimit: 10;
|
|
24
25
|
stroke-width: 7;
|
|
25
|
-
`,
|
|
26
|
+
`, s = o.path`
|
|
26
27
|
fill: var(--ray-fill);
|
|
27
|
-
`,
|
|
28
|
+
`, f = o.polygon`
|
|
28
29
|
opacity: var(--arrow-opacity, 1);
|
|
29
30
|
fill: var(--arrow-fill);
|
|
30
|
-
`,
|
|
31
|
+
`, c = o.polygon`
|
|
31
32
|
fill: none;
|
|
32
33
|
stroke: #ffffff;
|
|
33
34
|
stroke-miterlimit: 10;
|
|
34
35
|
stroke-width: 12;
|
|
35
|
-
`,
|
|
36
|
+
`, p = o.line`
|
|
36
37
|
fill: none;
|
|
37
38
|
stroke-linecap: round;
|
|
38
39
|
stroke-miterlimit: 10;
|
|
39
40
|
stroke-width: 27.27;
|
|
40
41
|
`;
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
f as Arrow,
|
|
44
|
+
p as Filter,
|
|
45
|
+
c as PrismOutline,
|
|
46
|
+
n as PrismSVG,
|
|
47
|
+
s as Ray,
|
|
48
|
+
l as SelectContainer,
|
|
49
|
+
a as WhiteLine,
|
|
50
|
+
e as Wrapper
|
|
50
51
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),$=require("react-i18next"),v=require("d3-array"),C=require("../../../charts/ScatterPlot/index.cjs"),e=require("../defaults.cjs"),x=require("./styles.cjs"),L=(s,u,c)=>{const r={};return Object.keys(s).forEach(l=>{const a=l==="top"||l==="bottom"?c:u,o=`${l.charAt(0).toUpperCase()}${l.slice(1)}`;r[`padding${o}`]=`${s[l]/a*100}%`}),r},y=({data:s,activeAlertId:u,xMin:c,xMax:r,yMin:d=e.default.yMin,yMax:l=e.default.yMax,width:a=e.default.width,height:o=e.default.height,name:j,slider:m,className:_,plotChildren:g})=>{const{t:n,i18n:{language:A}}=$.useTranslation(),q=n("light_curve.plot.x_label"),M=n("light_curve.plot.y_label"),h={top:10,right:10,bottom:25,left:40};return i.jsxs(x.PlotContainer,{className:_,children:[i.jsx(C.default,{width:a,height:o,margins:h,activePointId:u,title:j,xAxis:{min:c||v.min(s,({x:t})=>t)||e.default.xMin,max:r||v.max(s,({x:t})=>t)||e.default.xMax,step:e.default.xStep,label:q},yAxis:{min:d,max:l,step:d<l?Math.abs(e.default.yStep):e.default.yStep,label:M},data:{label:n("light_curve.plot.plot_label"),points:s},tooltip:({y:t})=>n("light_curve.plot.tooltip",{magnitude:t.toLocaleString(A,{minimumFractionDigits:2,maximumFractionDigits:2})}),plotChildren:({xScale:t,yStart:f,yEnd:p,Data:b,...P})=>i.jsxs(i.Fragment,{children:[i.jsx("rect",{x:t(0),y:p,width:t(15)-t(0),height:f-p,stroke:"var(--neutral60,##6A6E6E)",strokeDasharray:6,fill:"var(--neutral20,#DCE0E3)"}),b,g&&g({xScale:t,yStart:f,yEnd:p,Data:b,...P})]})}),m&&i.jsx(x.SliderOuterWrapper,{children:i.jsx(x.SliderInnerWrapper,{style:{...L(h,a,o)},children:m})})]})};y.displayName="Widgets.LightCurve.Plot";const S=y;exports.default=S;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionComponent, ReactNode } from "react";
|
|
2
|
+
import { Bounds, PlotChildRenderer, Point } from '../../../types/charts';
|
|
3
|
+
export interface PlotProps extends Partial<Bounds> {
|
|
4
|
+
data: Array<Point>;
|
|
5
|
+
name?: string;
|
|
6
|
+
activeAlertId?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
slider?: ReactNode;
|
|
9
|
+
plotChildren?: PlotChildRenderer;
|
|
10
|
+
}
|
|
11
|
+
declare const Plot: FunctionComponent<PlotProps>;
|
|
12
|
+
export default Plot;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as f, jsx as n, Fragment as L } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as M } from "react-i18next";
|
|
4
|
+
import { min as j, max as D } from "d3-array";
|
|
5
|
+
import E from "../../../charts/ScatterPlot/index.js";
|
|
6
|
+
import e from "../defaults.js";
|
|
7
|
+
import { PlotContainer as F, SliderOuterWrapper as S, SliderInnerWrapper as W } from "./styles.js";
|
|
8
|
+
const k = (i, m, p) => {
|
|
9
|
+
const r = {};
|
|
10
|
+
return Object.keys(i).forEach((o) => {
|
|
11
|
+
const l = o === "top" || o === "bottom" ? p : m, s = `${o.charAt(0).toUpperCase()}${o.slice(1)}`;
|
|
12
|
+
r[`padding${s}`] = `${i[o] / l * 100}%`;
|
|
13
|
+
}), r;
|
|
14
|
+
}, v = ({
|
|
15
|
+
data: i,
|
|
16
|
+
activeAlertId: m,
|
|
17
|
+
xMin: p,
|
|
18
|
+
xMax: r,
|
|
19
|
+
yMin: c = e.yMin,
|
|
20
|
+
yMax: o = e.yMax,
|
|
21
|
+
width: l = e.width,
|
|
22
|
+
height: s = e.height,
|
|
23
|
+
name: y,
|
|
24
|
+
slider: g,
|
|
25
|
+
className: _,
|
|
26
|
+
plotChildren: h
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
t: a,
|
|
30
|
+
i18n: { language: A }
|
|
31
|
+
} = M(), P = a("light_curve.plot.x_label"), $ = a("light_curve.plot.y_label"), x = {
|
|
32
|
+
top: 10,
|
|
33
|
+
right: 10,
|
|
34
|
+
bottom: 25,
|
|
35
|
+
left: 40
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ f(F, { className: _, children: [
|
|
38
|
+
/* @__PURE__ */ n(
|
|
39
|
+
E,
|
|
40
|
+
{
|
|
41
|
+
width: l,
|
|
42
|
+
height: s,
|
|
43
|
+
margins: x,
|
|
44
|
+
activePointId: m,
|
|
45
|
+
title: y,
|
|
46
|
+
xAxis: {
|
|
47
|
+
min: p || j(i, ({ x: t }) => t) || e.xMin,
|
|
48
|
+
max: r || D(i, ({ x: t }) => t) || e.xMax,
|
|
49
|
+
step: e.xStep,
|
|
50
|
+
label: P
|
|
51
|
+
},
|
|
52
|
+
yAxis: {
|
|
53
|
+
min: c,
|
|
54
|
+
max: o,
|
|
55
|
+
step: c < o ? Math.abs(e.yStep) : e.yStep,
|
|
56
|
+
label: $
|
|
57
|
+
},
|
|
58
|
+
data: {
|
|
59
|
+
label: a("light_curve.plot.plot_label"),
|
|
60
|
+
points: i
|
|
61
|
+
},
|
|
62
|
+
tooltip: ({ y: t }) => a("light_curve.plot.tooltip", {
|
|
63
|
+
magnitude: t.toLocaleString(A, {
|
|
64
|
+
minimumFractionDigits: 2,
|
|
65
|
+
maximumFractionDigits: 2
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
plotChildren: ({ xScale: t, yStart: d, yEnd: u, Data: b, ...C }) => /* @__PURE__ */ f(L, { children: [
|
|
69
|
+
/* @__PURE__ */ n(
|
|
70
|
+
"rect",
|
|
71
|
+
{
|
|
72
|
+
x: t(0),
|
|
73
|
+
y: u,
|
|
74
|
+
width: t(15) - t(0),
|
|
75
|
+
height: d - u,
|
|
76
|
+
stroke: "var(--neutral60,##6A6E6E)",
|
|
77
|
+
strokeDasharray: 6,
|
|
78
|
+
fill: "var(--neutral20,#DCE0E3)"
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
b,
|
|
82
|
+
h && h({ xScale: t, yStart: d, yEnd: u, Data: b, ...C })
|
|
83
|
+
] })
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
g && /* @__PURE__ */ n(S, { children: /* @__PURE__ */ n(
|
|
87
|
+
W,
|
|
88
|
+
{
|
|
89
|
+
style: { ...k(x, l, s) },
|
|
90
|
+
children: g
|
|
91
|
+
}
|
|
92
|
+
) })
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
v.displayName = "Widgets.LightCurve.Plot";
|
|
96
|
+
const T = v;
|
|
97
|
+
export {
|
|
98
|
+
T as default
|
|
99
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),i=require("@rubin-epo/epo-react-lib/styles"),o=require("../../../charts/Base/index.cjs"),n=e=>e&&e.__esModule?e:{default:e},t=n(r),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),i=require("@rubin-epo/epo-react-lib/styles"),o=require("../../../charts/Base/index.cjs"),n=e=>e&&e.__esModule?e:{default:e},t=n(r),l=t.default.div`
|
|
2
2
|
--label-height: 3em;
|
|
3
3
|
|
|
4
4
|
aspect-ratio: 1;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
border: 1px solid var(--turquoise55, #009fa1);
|
|
9
9
|
gap: var(--light-curve-padding);
|
|
10
10
|
position: relative;
|
|
11
|
-
|
|
11
|
+
`;t.default(o.default)`
|
|
12
12
|
font-size: 2.5em;
|
|
13
13
|
overflow: visible;
|
|
14
14
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
) {
|
|
30
30
|
font-size: 1.25em;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
`;const a=t.default.div`
|
|
33
33
|
position: absolute;
|
|
34
34
|
width: calc(100% - calc(var(--label-height) * 2));
|
|
35
35
|
height: calc(100% - calc(var(--label-height) * 2));
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
height: 100%;
|
|
43
43
|
position: relative;
|
|
44
|
-
`;exports.
|
|
44
|
+
`;exports.PlotContainer=l;exports.SliderInnerWrapper=d;exports.SliderOuterWrapper=a;
|
|
@@ -12,7 +12,8 @@ const a = e.div`
|
|
|
12
12
|
border: 1px solid var(--turquoise55, #009fa1);
|
|
13
13
|
gap: var(--light-curve-padding);
|
|
14
14
|
position: relative;
|
|
15
|
-
|
|
15
|
+
`;
|
|
16
|
+
e(t)`
|
|
16
17
|
font-size: 2.5em;
|
|
17
18
|
overflow: visible;
|
|
18
19
|
|
|
@@ -33,22 +34,22 @@ const a = e.div`
|
|
|
33
34
|
) {
|
|
34
35
|
font-size: 1.25em;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
`;
|
|
38
|
+
const l = e.div`
|
|
37
39
|
position: absolute;
|
|
38
40
|
width: calc(100% - calc(var(--label-height) * 2));
|
|
39
41
|
height: calc(100% - calc(var(--label-height) * 2));
|
|
40
42
|
top: var(--label-height);
|
|
41
43
|
left: var(--label-height);
|
|
42
44
|
pointer-events: none;
|
|
43
|
-
`,
|
|
45
|
+
`, c = e.div`
|
|
44
46
|
box-sizing: border-box;
|
|
45
47
|
width: 100%;
|
|
46
48
|
height: 100%;
|
|
47
49
|
position: relative;
|
|
48
50
|
`;
|
|
49
51
|
export {
|
|
50
|
-
l as Chart,
|
|
51
52
|
a as PlotContainer,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
c as SliderInnerWrapper,
|
|
54
|
+
l as SliderOuterWrapper
|
|
54
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),d=require("react-i18next"),b=require("lodash/minBy"),v=require("../../../helpers.cjs"),L=require("../../../../../lib/utils.cjs"),f=require("./styles.cjs"),h=e=>e&&e.__esModule?e:{default:e},_=h(b),u=({data:e,gaussianWidth:n,yOffset:s,controlledById:l,estimatedPeak:o})=>{const{t:c,i18n:{language:r}}=d.useTranslation(),a=e.filter(({x:t})=>L.between(t,0,15)).reduce((t,m)=>t+v.calculateResidual(m,n,s),0)/e.length,{y:i}=_.default(e,({y:t})=>t)||{};return g.jsx(f.HiddenOutput,{form:l,children:c("light_curve.curve.description",{residual:a.toLocaleString(r,{minimumFractionDigits:2,maximumFractionDigits:2}),brightest:i==null?void 0:i.toLocaleString(r,{minimumFractionDigits:1,maximumFractionDigits:1}),context:o<Number(i)?"above":"below"})})};u.displayName="Widgets.LightCurvel.A11Y.LightCurveLabel";const p=u;exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useAlertsAsPoints } from "../../../helpers";
|
|
3
3
|
interface LightCurveLabelProps {
|
|
4
|
-
data: ReturnType<typeof
|
|
4
|
+
data: ReturnType<typeof useAlertsAsPoints>;
|
|
5
5
|
controlledById?: string;
|
|
6
6
|
estimatedPeak: number;
|
|
7
7
|
gaussianWidth: number;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as g } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslation as p } from "react-i18next";
|
|
4
4
|
import d from "lodash/minBy";
|
|
5
|
-
import { calculateResidual as f } from "
|
|
6
|
-
import { between as L } from "
|
|
5
|
+
import { calculateResidual as f } from "../../../helpers.js";
|
|
6
|
+
import { between as L } from "../../../../../lib/utils.js";
|
|
7
7
|
import { HiddenOutput as b } from "./styles.js";
|
|
8
8
|
const o = ({
|
|
9
9
|
data: e,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react-i18next"),d=require("../../../../charts/ForeignObject/index.cjs"),s=require("../../helpers.cjs"),i=require("./styles.cjs"),n=({gaussianWidth:t,className:r})=>{const{t:a,i18n:{language:l}}=u.useTranslation(),c=s.estimateMagnitude(0,t),o=s.estimateMagnitude(15,t)-c;return e.jsx(d.default,{children:e.jsx(i.DisplayContainer,{children:e.jsxs(i.Display,{className:r,children:[e.jsx(i.Line,{}),e.jsxs("math",{xmlns:"http://www.w3.org/1998/Math/MathML",children:[e.jsx("mn",{children:"Δ"}),e.jsxs("msub",{children:[e.jsx("mi",{children:"m"}),e.jsx("mn",{children:"15"})]}),e.jsx("mo",{children:"="}),e.jsx("mn",{role:"status","aria-live":"polite","aria-label":a("light_curve.deltaM15.label")||void 0,children:Number(o).toLocaleString(l,{minimumFractionDigits:2,maximumFractionDigits:2})})]})]})})})};n.displayName="Widgets.LightCurve.DM15Display";const m=n;exports.default=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslation as c } from "react-i18next";
|
|
4
|
-
import d from "
|
|
5
|
-
import { estimateMagnitude as n } from "
|
|
4
|
+
import d from "../../../../charts/ForeignObject/index.js";
|
|
5
|
+
import { estimateMagnitude as n } from "../../helpers.js";
|
|
6
6
|
import { DisplayContainer as h, Display as p, Line as u } from "./styles.js";
|
|
7
7
|
const r = ({ gaussianWidth: t, className: a }) => {
|
|
8
8
|
const {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),g=require("d3-array"),v=require("../../helpers.cjs"),n=({xScale:s,xDomain:t,yScale:r,yDomain:u,gaussianWidth:i,yOffset:a})=>{const o=g.range(t[0],t[1],.5).map(e=>({x:e,y:v.estimateMagnitude(e,i)})).map(({x:e,y:d},l)=>`${l===0?"M":"L"}${s(e)},${r(d)}`).join("");return c.jsx("path",{transform:`translate(0,${r(u[1]-a)})`,d:o,fill:"none",strokeWidth:2,stroke:"var(--black,#000)",pointerEvents:"none"})};n.displayName="Widgets.LightCurve.Curve";const m=n;exports.default=m;
|
package/dist/widgets/LightCurvePlot/{MagnitudeSlider → PlotWithCurve/MagnitudeSlider}/index.d.ts
RENAMED
|
@@ -6,8 +6,6 @@ interface MagnitudeSliderProps {
|
|
|
6
6
|
onMagnitudeChangeCallback: (value: number) => void;
|
|
7
7
|
estimatedPeak: number;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
width?: number;
|
|
10
|
-
height?: number;
|
|
11
9
|
}
|
|
12
10
|
declare const MagnitudeSlider: FunctionComponent<MagnitudeSliderProps>;
|
|
13
11
|
export default MagnitudeSlider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),A=require("react-i18next"),T=require("@rubin-epo/epo-react-lib/HorizontalSlider"),t=require("../defaults.cjs"),B=require("../Plot/index.cjs"),M=require("./LightCurve/index.cjs"),N=require("./A11Y/LightCurveLabel/index.cjs"),L=require("../helpers.cjs"),J=require("../../../atomic/Button/patterns/Reset.cjs"),K=require("./MagnitudeSlider/index.cjs"),a=require("./styles.cjs"),Q=require("../../../charts/Viewport/index.cjs"),V=require("../../../layout/Controls/index.cjs"),X=require("../../../layout/AspectRatio/index.cjs"),Z=s=>s&&s.__esModule?s:{default:s},I=Z(T),W=({gaussianWidth:s=t.default.gaussianWidth,yOffset:i=t.default.yOffset,alerts:$,peakMjd:y,yMin:l=t.default.yMin,yMax:d=t.default.yMax,width:c=t.default.width,height:f=t.default.height,userMagnitude:P=(d-l)/2+l,onUserMagnitudeChangeCallback:u,onGaussianChangeCallback:o,onYOffsetChangeCallback:n,className:S,isDisplayOnly:x,...D})=>{const{t:h}=A.useTranslation(),j="lightCurveControls",q="gaussianWidthLabel",m="yOffsetLabel",v=L.useAlertsAsPoints($,y),H=()=>{u&&u((d-l)/2+l),n&&n(t.default.yOffset),o&&o(t.default.gaussianWidth)},g=L.estimateMagnitudeWithOffset(0,s,i),b=e.jsx(B.default,{slider:e.jsx(K.default,{magnitude:P,onMagnitudeChangeCallback:r=>u&&u(r),disabled:x,yMin:l,yMax:d,estimatedPeak:g}),plotChildren:({xScale:r,yScale:R,xDomain:F,yDomain:O,xStart:p,xEnd:w,yStart:z,yEnd:_})=>e.jsxs(e.Fragment,{children:[e.jsx(M.default,{gaussianWidth:s,yOffset:i,xDomain:F,xScale:r,yScale:R,yDomain:O}),e.jsx(Q.default,{x:p,y:_,outerHeight:z-_,outerWidth:w-p,innerWidth:c,innerHeight:f,children:e.jsx(a.DM15Display,{gaussianWidth:s})})]}),...D,data:v,width:c,height:f,yMin:l,yMax:d});return x?e.jsx(X.default,{ratio:"square",children:b}):e.jsxs(e.Fragment,{children:[e.jsx(V.default,{className:S,widget:b,controls:e.jsxs(a.Controls,{id:j,children:[e.jsxs("div",{children:[e.jsx(a.ControlLabel,{id:q,children:h("light_curve.curve.controls.gaussian_width")}),e.jsx(I.default,{label:"Gaussian Width",labelledbyId:q,color:"var(--turquoise85, #12726D)",min:t.default.gaussianMin,max:t.default.gaussianMax,step:t.default.gaussianStep,value:s,onChangeCallback:r=>typeof r=="number"&&o&&o(r)})]}),e.jsxs("div",{children:[e.jsx(a.ControlLabel,{id:m,children:h("light_curve.curve.controls.y_offset")}),e.jsx(I.default,{label:"Y Offset",labelledbyId:m,color:"var(--turquoise85, #12726D)",min:t.default.yOffsetMin,max:t.default.yOffsetMax,step:t.default.yOffsetStep,value:i,onChangeCallback:r=>typeof r=="number"&&n&&n(r)})]})]}),actions:e.jsx(J.default,{onResetCallback:H})}),e.jsx(N.default,{controlledById:j,data:v,gaussianWidth:s,yOffset:i,estimatedPeak:g})]})};W.displayName="Widgets.LightCurve";const E=W;exports.default=E;
|
|
@@ -1,136 +1,150 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import S from "@rubin-epo/epo-react-lib/HorizontalSlider";
|
|
6
|
-
import y from "../../../charts/hooks/useAxis.js";
|
|
2
|
+
import { jsx as r, jsxs as s, Fragment as P } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as N } from "react-i18next";
|
|
4
|
+
import y from "@rubin-epo/epo-react-lib/HorizontalSlider";
|
|
7
5
|
import t from "../defaults.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
import T from "../Plot/index.js";
|
|
7
|
+
import V from "./LightCurve/index.js";
|
|
8
|
+
import $ from "./A11Y/LightCurveLabel/index.js";
|
|
9
|
+
import { useAlertsAsPoints as C, estimateMagnitudeWithOffset as J } from "../helpers.js";
|
|
10
|
+
import K from "../../../atomic/Button/patterns/Reset.js";
|
|
11
|
+
import Q from "./MagnitudeSlider/index.js";
|
|
12
|
+
import { DM15Display as X, Controls as Z, ControlLabel as R } from "./styles.js";
|
|
13
|
+
import E from "../../../charts/Viewport/index.js";
|
|
14
|
+
import M from "../../../layout/Controls/index.js";
|
|
15
|
+
import G from "../../../layout/AspectRatio/index.js";
|
|
16
|
+
const _ = ({
|
|
17
|
+
gaussianWidth: i = t.gaussianWidth,
|
|
18
|
+
yOffset: l = t.yOffset,
|
|
19
|
+
alerts: q,
|
|
20
|
+
peakMjd: w,
|
|
21
|
+
yMin: o = t.yMin,
|
|
22
|
+
yMax: d = t.yMax,
|
|
23
|
+
width: c = t.width,
|
|
24
|
+
height: f = t.height,
|
|
25
|
+
userMagnitude: A = (d - o) / 2 + o,
|
|
26
|
+
onUserMagnitudeChangeCallback: m,
|
|
27
|
+
onGaussianChangeCallback: n,
|
|
28
|
+
onYOffsetChangeCallback: u,
|
|
29
|
+
className: D,
|
|
30
|
+
isDisplayOnly: p,
|
|
31
|
+
...H
|
|
31
32
|
}) => {
|
|
32
|
-
const { t:
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{
|
|
49
|
-
|
|
33
|
+
const { t: a } = N(), h = "lightCurveControls", g = "gaussianWidthLabel", v = "yOffsetLabel", L = C(q, w), S = () => {
|
|
34
|
+
m && m((d - o) / 2 + o), u && u(t.yOffset), n && n(t.gaussianWidth);
|
|
35
|
+
}, b = J(0, i, l), W = /* @__PURE__ */ r(
|
|
36
|
+
T,
|
|
37
|
+
{
|
|
38
|
+
slider: /* @__PURE__ */ r(
|
|
39
|
+
Q,
|
|
40
|
+
{
|
|
41
|
+
magnitude: A,
|
|
42
|
+
onMagnitudeChangeCallback: (e) => m && m(e),
|
|
43
|
+
disabled: p,
|
|
44
|
+
yMin: o,
|
|
45
|
+
yMax: d,
|
|
46
|
+
estimatedPeak: b
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
plotChildren: ({
|
|
50
|
+
xScale: e,
|
|
51
|
+
yScale: j,
|
|
52
|
+
xDomain: F,
|
|
53
|
+
yDomain: O,
|
|
54
|
+
xStart: I,
|
|
55
|
+
xEnd: z,
|
|
56
|
+
yStart: B,
|
|
57
|
+
yEnd: x
|
|
58
|
+
}) => /* @__PURE__ */ s(P, { children: [
|
|
59
|
+
/* @__PURE__ */ r(
|
|
50
60
|
V,
|
|
51
61
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
estimatedPeak: b,
|
|
59
|
-
width: p,
|
|
60
|
-
height: u
|
|
62
|
+
gaussianWidth: i,
|
|
63
|
+
yOffset: l,
|
|
64
|
+
xDomain: F,
|
|
65
|
+
xScale: e,
|
|
66
|
+
yScale: j,
|
|
67
|
+
yDomain: O
|
|
61
68
|
}
|
|
62
69
|
),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
width: p,
|
|
66
|
-
height: u,
|
|
67
|
-
yMin: r,
|
|
68
|
-
yMax: s,
|
|
69
|
-
children: i.length > 0 ? /* @__PURE__ */ l(A, { children: [
|
|
70
|
-
/* @__PURE__ */ o(
|
|
71
|
-
w,
|
|
72
|
-
{
|
|
73
|
-
gaussianWidth: m,
|
|
74
|
-
yOffset: n,
|
|
75
|
-
xDomain: M,
|
|
76
|
-
xScale: O,
|
|
77
|
-
yScale: L,
|
|
78
|
-
yDomain: z
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ o(Z, { gaussianWidth: m })
|
|
82
|
-
] }) : null
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
!f && /* @__PURE__ */ l(C, { id: h, children: [
|
|
86
|
-
/* @__PURE__ */ l("div", { children: [
|
|
87
|
-
/* @__PURE__ */ o(I, { id: v, children: x("light_curve.curve.controls.gaussian_width") }),
|
|
88
|
-
/* @__PURE__ */ o(
|
|
89
|
-
S,
|
|
90
|
-
{
|
|
91
|
-
label: "Gaussian Width",
|
|
92
|
-
labelledbyId: v,
|
|
93
|
-
color: "var(--turquoise85, #12726D)",
|
|
94
|
-
min: t.gaussianMin,
|
|
95
|
-
max: t.gaussianMax,
|
|
96
|
-
step: t.gaussianStep,
|
|
97
|
-
value: m,
|
|
98
|
-
onChangeCallback: (e) => typeof e == "number" && d && d(e)
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ l("div", { children: [
|
|
103
|
-
/* @__PURE__ */ o(I, { id: g, children: x("light_curve.curve.controls.y_offset") }),
|
|
104
|
-
/* @__PURE__ */ o(
|
|
105
|
-
S,
|
|
70
|
+
/* @__PURE__ */ r(
|
|
71
|
+
E,
|
|
106
72
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
onChangeCallback: (e) => typeof e == "number" && c && c(e)
|
|
73
|
+
x: I,
|
|
74
|
+
y: x,
|
|
75
|
+
outerHeight: B - x,
|
|
76
|
+
outerWidth: z - I,
|
|
77
|
+
innerWidth: c,
|
|
78
|
+
innerHeight: f,
|
|
79
|
+
children: /* @__PURE__ */ r(X, { gaussianWidth: i })
|
|
115
80
|
}
|
|
116
81
|
)
|
|
117
82
|
] }),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
83
|
+
...H,
|
|
84
|
+
data: L,
|
|
85
|
+
width: c,
|
|
86
|
+
height: f,
|
|
87
|
+
yMin: o,
|
|
88
|
+
yMax: d
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
return p ? /* @__PURE__ */ r(G, { ratio: "square", children: W }) : /* @__PURE__ */ s(P, { children: [
|
|
92
|
+
/* @__PURE__ */ r(
|
|
93
|
+
M,
|
|
94
|
+
{
|
|
95
|
+
className: D,
|
|
96
|
+
widget: W,
|
|
97
|
+
controls: /* @__PURE__ */ s(Z, { id: h, children: [
|
|
98
|
+
/* @__PURE__ */ s("div", { children: [
|
|
99
|
+
/* @__PURE__ */ r(R, { id: g, children: a("light_curve.curve.controls.gaussian_width") }),
|
|
100
|
+
/* @__PURE__ */ r(
|
|
101
|
+
y,
|
|
102
|
+
{
|
|
103
|
+
label: "Gaussian Width",
|
|
104
|
+
labelledbyId: g,
|
|
105
|
+
color: "var(--turquoise85, #12726D)",
|
|
106
|
+
min: t.gaussianMin,
|
|
107
|
+
max: t.gaussianMax,
|
|
108
|
+
step: t.gaussianStep,
|
|
109
|
+
value: i,
|
|
110
|
+
onChangeCallback: (e) => typeof e == "number" && n && n(e)
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ s("div", { children: [
|
|
115
|
+
/* @__PURE__ */ r(R, { id: v, children: a("light_curve.curve.controls.y_offset") }),
|
|
116
|
+
/* @__PURE__ */ r(
|
|
117
|
+
y,
|
|
118
|
+
{
|
|
119
|
+
label: "Y Offset",
|
|
120
|
+
labelledbyId: v,
|
|
121
|
+
color: "var(--turquoise85, #12726D)",
|
|
122
|
+
min: t.yOffsetMin,
|
|
123
|
+
max: t.yOffsetMax,
|
|
124
|
+
step: t.yOffsetStep,
|
|
125
|
+
value: l,
|
|
126
|
+
onChangeCallback: (e) => typeof e == "number" && u && u(e)
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] })
|
|
130
|
+
] }),
|
|
131
|
+
actions: /* @__PURE__ */ r(K, { onResetCallback: S })
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ r(
|
|
135
|
+
$,
|
|
122
136
|
{
|
|
123
137
|
controlledById: h,
|
|
124
|
-
data:
|
|
125
|
-
gaussianWidth:
|
|
126
|
-
yOffset:
|
|
138
|
+
data: L,
|
|
139
|
+
gaussianWidth: i,
|
|
140
|
+
yOffset: l,
|
|
127
141
|
estimatedPeak: b
|
|
128
142
|
}
|
|
129
143
|
)
|
|
130
144
|
] });
|
|
131
145
|
};
|
|
132
|
-
|
|
133
|
-
const ct =
|
|
146
|
+
_.displayName = "Widgets.LightCurve";
|
|
147
|
+
const ct = _;
|
|
134
148
|
export {
|
|
135
149
|
ct as default
|
|
136
150
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
--light-curve-padding: var(--PADDING_SMALL, 20px);
|
|
3
|
-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("styled-components"),i=require("./DM15Display/index.cjs"),a=t=>t&&t.__esModule?t:{default:t},e=a(d);e.default.div`
|
|
4
2
|
display: grid;
|
|
5
|
-
gap: var(--
|
|
3
|
+
gap: var(--widget-padding);
|
|
6
4
|
grid-template-rows: 1fr min-content;
|
|
7
5
|
position: relative;
|
|
8
6
|
`;e.default.div`
|
|
@@ -11,20 +9,20 @@
|
|
|
11
9
|
container-type: inline-size;
|
|
12
10
|
background-color: var(--white, #fff);
|
|
13
11
|
border: 1px solid var(--turquoise55, #009fa1);
|
|
14
|
-
gap: var(--
|
|
15
|
-
padding: var(--
|
|
12
|
+
gap: var(--widget-padding);
|
|
13
|
+
padding: var(--widget-padding);
|
|
16
14
|
grid-template-columns: 1fr;
|
|
17
15
|
`;e.default.h3`
|
|
18
16
|
margin: 0;
|
|
19
|
-
`;const
|
|
17
|
+
`;const l=e.default(i.default)`
|
|
20
18
|
background-color: var(--white, #fff);
|
|
21
19
|
margin: 2px 1em;
|
|
22
20
|
padding: 2px;
|
|
23
|
-
`,
|
|
21
|
+
`,n=e.default.form`
|
|
24
22
|
display: flex;
|
|
25
23
|
flex-direction: column;
|
|
26
|
-
gap: var(--
|
|
24
|
+
gap: var(--widget-padding);
|
|
27
25
|
`,o=e.default.span`
|
|
28
26
|
display: block;
|
|
29
|
-
margin-block-end: var(--
|
|
30
|
-
`;exports.
|
|
27
|
+
margin-block-end: var(--widget-padding);
|
|
28
|
+
`;exports.ControlLabel=o;exports.Controls=n;exports.DM15Display=l;
|