@rubin-epo/epo-widget-lib 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CameraFilter.cjs +1 -1
- package/dist/CameraFilter.js +9 -9
- package/dist/ColorTool.cjs +1 -1
- package/dist/ColorTool.js +13 -12
- package/dist/FilterTool.cjs +1 -1
- package/dist/FilterTool.js +1 -1
- package/dist/IsochronePlot.cjs +1 -1
- package/dist/IsochronePlot.js +1 -0
- package/dist/SourceSelector.cjs +1 -1
- package/dist/SourceSelector.js +4 -6
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +4 -4
- package/dist/atomic/Blinker/Blinker.cjs +1 -1
- package/dist/atomic/Blinker/Blinker.d.ts +7 -3
- package/dist/atomic/Blinker/Blinker.js +65 -55
- package/dist/atomic/Blinker/_mocks/index.d.ts +5 -3
- package/dist/atomic/Blinker/styles.cjs +9 -4
- package/dist/atomic/Blinker/styles.d.ts +0 -8
- package/dist/atomic/Blinker/styles.js +11 -8
- package/dist/atomic/ImageStack/index.d.ts +5 -2
- package/dist/charts/Base/styles.d.ts +1 -1
- package/dist/charts/styles.d.ts +6 -6
- package/dist/layout/AspectRatio/index.cjs +1 -1
- package/dist/layout/AspectRatio/index.d.ts +2 -4
- package/dist/layout/AspectRatio/index.js +18 -18
- package/dist/layout/AspectRatio/styles.cjs +8 -13
- package/dist/layout/AspectRatio/styles.d.ts +0 -5
- package/dist/layout/AspectRatio/styles.js +10 -18
- package/dist/layout/Controls/index.cjs +1 -1
- package/dist/layout/Controls/index.d.ts +2 -0
- package/dist/layout/Controls/index.js +27 -35
- package/dist/layout/Controls/styles.cjs +23 -21
- package/dist/layout/Controls/styles.js +25 -23
- package/dist/localeStrings/es/epo-widget-lib.json +82 -0
- package/dist/widgets/CameraFilter/styles.d.ts +7 -9
- package/dist/widgets/FilterTool/styles.cjs +12 -9
- package/dist/widgets/FilterTool/styles.d.ts +9 -11
- package/dist/widgets/FilterTool/styles.js +16 -13
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +29 -28
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.js +9 -9
- package/dist/widgets/SourceSelector/SelectionList/index.cjs +1 -1
- package/dist/widgets/SourceSelector/SelectionList/index.d.ts +1 -1
- package/dist/widgets/SourceSelector/SelectionList/index.js +27 -21
- package/dist/widgets/SourceSelector/SelectionList/styles.cjs +10 -41
- package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +492 -503
- package/dist/widgets/SourceSelector/SelectionList/styles.js +12 -43
- package/dist/widgets/SourceSelector/SourceMap/index.cjs +1 -0
- package/dist/widgets/SourceSelector/SourceMap/index.d.ts +10 -0
- package/dist/widgets/SourceSelector/SourceMap/index.js +38 -0
- package/dist/widgets/SourceSelector/SourceMap/styles.cjs +14 -0
- package/dist/widgets/SourceSelector/{Point → SourceMap}/styles.d.ts +483 -1
- package/dist/widgets/SourceSelector/{Point → SourceMap}/styles.js +9 -3
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.js +99 -76
- package/dist/widgets/SourceSelector/index.d.ts +0 -1
- package/dist/widgets/SourceSelector/styles.cjs +2 -6
- package/dist/widgets/SourceSelector/styles.d.ts +6 -484
- package/dist/widgets/SourceSelector/styles.js +3 -8
- package/dist/widgets/SourceSelector/utils.cjs +1 -0
- package/dist/widgets/SourceSelector/utils.d.ts +2 -0
- package/dist/widgets/SourceSelector/utils.js +14 -0
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -7
- package/package.json +2 -2
- package/dist/widgets/SourceSelector/Point/Point.cjs +0 -1
- package/dist/widgets/SourceSelector/Point/Point.d.ts +0 -11
- package/dist/widgets/SourceSelector/Point/Point.js +0 -48
- package/dist/widgets/SourceSelector/Point/index.d.ts +0 -1
- package/dist/widgets/SourceSelector/Point/styles.cjs +0 -9
- package/dist/widgets/SourceSelector/PointSelector/index.cjs +0 -1
- package/dist/widgets/SourceSelector/PointSelector/index.d.ts +0 -13
- package/dist/widgets/SourceSelector/PointSelector/index.js +0 -47
package/dist/charts/styles.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ export declare const BaseLine: import('styled-components').IStyledComponent<"web
|
|
|
197
197
|
stroke?: string | undefined;
|
|
198
198
|
strokeDasharray?: string | number | undefined;
|
|
199
199
|
strokeDashoffset?: string | number | undefined;
|
|
200
|
-
strokeLinecap?: "inherit" | "
|
|
200
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
201
201
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
202
202
|
strokeMiterlimit?: string | number | undefined;
|
|
203
203
|
strokeOpacity?: string | number | undefined;
|
|
@@ -679,7 +679,7 @@ export declare const Guide: import('styled-components').IStyledComponent<"web",
|
|
|
679
679
|
stroke?: string | undefined;
|
|
680
680
|
strokeDasharray?: string | number | undefined;
|
|
681
681
|
strokeDashoffset?: string | number | undefined;
|
|
682
|
-
strokeLinecap?: "inherit" | "
|
|
682
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
683
683
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
684
684
|
strokeMiterlimit?: string | number | undefined;
|
|
685
685
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1161,7 +1161,7 @@ export declare const Tick: import('styled-components').IStyledComponent<"web", {
|
|
|
1161
1161
|
stroke?: string | undefined;
|
|
1162
1162
|
strokeDasharray?: string | number | undefined;
|
|
1163
1163
|
strokeDashoffset?: string | number | undefined;
|
|
1164
|
-
strokeLinecap?: "inherit" | "
|
|
1164
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
1165
1165
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
1166
1166
|
strokeMiterlimit?: string | number | undefined;
|
|
1167
1167
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1643,7 +1643,7 @@ export declare const Bar: import('styled-components').IStyledComponent<"web", {
|
|
|
1643
1643
|
stroke?: string | undefined;
|
|
1644
1644
|
strokeDasharray?: string | number | undefined;
|
|
1645
1645
|
strokeDashoffset?: string | number | undefined;
|
|
1646
|
-
strokeLinecap?: "inherit" | "
|
|
1646
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
1647
1647
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
1648
1648
|
strokeMiterlimit?: string | number | undefined;
|
|
1649
1649
|
strokeOpacity?: string | number | undefined;
|
|
@@ -2125,7 +2125,7 @@ export declare const XLabel: import('styled-components').IStyledComponent<"web",
|
|
|
2125
2125
|
stroke?: string | undefined;
|
|
2126
2126
|
strokeDasharray?: string | number | undefined;
|
|
2127
2127
|
strokeDashoffset?: string | number | undefined;
|
|
2128
|
-
strokeLinecap?: "inherit" | "
|
|
2128
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
2129
2129
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2130
2130
|
strokeMiterlimit?: string | number | undefined;
|
|
2131
2131
|
strokeOpacity?: string | number | undefined;
|
|
@@ -2607,7 +2607,7 @@ export declare const YLabel: import('styled-components').IStyledComponent<"web",
|
|
|
2607
2607
|
stroke?: string | undefined;
|
|
2608
2608
|
strokeDasharray?: string | number | undefined;
|
|
2609
2609
|
strokeDashoffset?: string | number | undefined;
|
|
2610
|
-
strokeLinecap?: "inherit" | "
|
|
2610
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
2611
2611
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2612
2612
|
strokeMiterlimit?: string | number | undefined;
|
|
2613
2613
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),p=require("./styles.cjs"),t=({ratio:e,children:s,className:a})=>{const o=typeof e=="object"?e.portrait:e,c=typeof e=="object"?e.landscape:e;return i.jsx(p.AspectRatio,{style:{"--size-aspect-ratio-portrait":o,"--size-aspect-ratio-landscape":c},className:a,children:s})};t.displayName="Layout.AspectRatio";exports.default=t;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
export type Ratios = Record<"landscape" | "portrait", number>;
|
|
4
4
|
export interface AspectRatioProps {
|
|
5
|
-
ratio:
|
|
6
|
-
medScreenRatio?: AspectRatio;
|
|
7
|
-
smallScreenRatio?: AspectRatio;
|
|
5
|
+
ratio: number | Ratios;
|
|
8
6
|
className?: string;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { AspectRatio as c } from "./styles.js";
|
|
3
|
-
const
|
|
4
|
-
square: 1,
|
|
5
|
-
portrait: parseFloat((9 / 16).toFixed(3)),
|
|
6
|
-
landscape: parseFloat((16 / 9).toFixed(3))
|
|
7
|
-
}, l = ({
|
|
3
|
+
const i = ({
|
|
8
4
|
ratio: t,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
children: o,
|
|
12
|
-
className: r
|
|
5
|
+
children: a,
|
|
6
|
+
className: e
|
|
13
7
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const o = typeof t == "object" ? t.portrait : t, s = typeof t == "object" ? t.landscape : t;
|
|
9
|
+
return /* @__PURE__ */ p(
|
|
10
|
+
c,
|
|
11
|
+
{
|
|
12
|
+
style: {
|
|
13
|
+
"--size-aspect-ratio-portrait": o,
|
|
14
|
+
"--size-aspect-ratio-landscape": s
|
|
15
|
+
},
|
|
16
|
+
className: e,
|
|
17
|
+
children: a
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
i.displayName = "Layout.AspectRatio";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
i as default
|
|
24
24
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
aspect-ratio: var(--aspect-ratio);
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),a=t=>t&&t.__esModule?t:{default:t},i=a(e),s=i.default.div`
|
|
2
|
+
aspect-ratio: var(--size-aspect-ratio);
|
|
5
3
|
position: relative;
|
|
6
|
-
width: calc(var(--widget-max-height, 100vh) * var(--aspect-ratio));
|
|
4
|
+
width: calc(var(--widget-max-height, 100vh) * var(--size-aspect-ratio));
|
|
7
5
|
max-height: var(--widget-max-height, 100vh);
|
|
8
6
|
max-width: 100%;
|
|
9
7
|
|
|
10
|
-
@
|
|
11
|
-
--aspect-ratio: var(--aspect-
|
|
8
|
+
@media (orientation: landscape) {
|
|
9
|
+
--size-aspect-ratio: var(--size-aspect-ratio-landscape, 1);
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
|
|
12
|
+
@media (orientation: portrait) {
|
|
13
|
+
--size-aspect-ratio: var(--size-aspect-ratio-portrait, 1);
|
|
15
14
|
}
|
|
16
|
-
`;a.default(o.default)`
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: 0;
|
|
19
|
-
left: 0;
|
|
20
15
|
`;exports.AspectRatio=s;
|
|
@@ -272,8 +272,3 @@ export declare const AspectRatio: import('styled-components').IStyledComponent<"
|
|
|
272
272
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
273
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
274
|
}>;
|
|
275
|
-
export declare const StackedLoader: import('styled-components').IStyledComponent<"web", {
|
|
276
|
-
className?: string | undefined;
|
|
277
|
-
}> & import('react').FunctionComponent<{
|
|
278
|
-
className?: string | undefined;
|
|
279
|
-
}>;
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const p = a.div`
|
|
6
|
-
--aspect-ratio: var(--aspect-small-ratio, 1);
|
|
7
|
-
|
|
8
|
-
aspect-ratio: var(--aspect-ratio);
|
|
2
|
+
import t from "styled-components";
|
|
3
|
+
const i = t.div`
|
|
4
|
+
aspect-ratio: var(--size-aspect-ratio);
|
|
9
5
|
position: relative;
|
|
10
|
-
width: calc(var(--widget-max-height, 100vh) * var(--aspect-ratio));
|
|
6
|
+
width: calc(var(--widget-max-height, 100vh) * var(--size-aspect-ratio));
|
|
11
7
|
max-height: var(--widget-max-height, 100vh);
|
|
12
8
|
max-width: 100%;
|
|
13
9
|
|
|
14
|
-
@
|
|
15
|
-
--aspect-ratio: var(--aspect-
|
|
10
|
+
@media (orientation: landscape) {
|
|
11
|
+
--size-aspect-ratio: var(--size-aspect-ratio-landscape, 1);
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
|
|
14
|
+
@media (orientation: portrait) {
|
|
15
|
+
--size-aspect-ratio: var(--size-aspect-ratio-portrait, 1);
|
|
19
16
|
}
|
|
20
17
|
`;
|
|
21
|
-
a(i)`
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
`;
|
|
26
18
|
export {
|
|
27
|
-
|
|
19
|
+
i as AspectRatio
|
|
28
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("../AspectRatio/index.cjs"),r=require("./styles.cjs"),o=({widget:s,ratio:a={landscape:16/9,portrait:9/16},controls:d,actions:i,caption:t,controlsId:u,className:c,isLoading:n,isDisplayOnly:j})=>j?e.jsxs(l.default,{ratio:1,children:[s,n&&e.jsx(r.StackedLoader,{})]}):e.jsx(l.default,{className:c,ratio:a,children:e.jsxs(r.WidgetLayout,{children:[e.jsxs(r.InteractionRow,{children:[e.jsxs(r.Widget,{children:[s,n&&e.jsx(r.StackedLoader,{})]}),t&&e.jsx(r.PortraitCaption,{children:t}),d&&e.jsx(r.Controls,{id:u,children:d})]}),i&&e.jsx(r.Actions,{children:i}),t&&e.jsx(r.LandscapeCaption,{children:t})]})});o.displayName="Layouts.WidgetControls";exports.default=o;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { Ratios } from '../AspectRatio';
|
|
2
3
|
|
|
3
4
|
interface WidgetControlsProps {
|
|
4
5
|
widget: ReactNode;
|
|
5
6
|
controls: ReactNode;
|
|
7
|
+
ratio?: Ratios;
|
|
6
8
|
controlsId?: string;
|
|
7
9
|
actions?: ReactNode;
|
|
8
10
|
caption?: ReactNode;
|
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { StackedLoader as l, WidgetLayout as m, InteractionRow as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "../AspectRatio/index.js";
|
|
3
|
+
import { StackedLoader as l, WidgetLayout as m, InteractionRow as f, Widget as u, PortraitCaption as C, Controls as W, Actions as x, LandscapeCaption as y } from "./styles.js";
|
|
4
|
+
const L = ({
|
|
5
5
|
widget: i,
|
|
6
|
+
ratio: c = { landscape: 16 / 9, portrait: 9 / 16 },
|
|
6
7
|
controls: o,
|
|
7
|
-
actions:
|
|
8
|
-
caption:
|
|
9
|
-
controlsId:
|
|
10
|
-
className:
|
|
11
|
-
isLoading:
|
|
12
|
-
isDisplayOnly:
|
|
13
|
-
}) =>
|
|
8
|
+
actions: d,
|
|
9
|
+
caption: t,
|
|
10
|
+
controlsId: s,
|
|
11
|
+
className: h,
|
|
12
|
+
isLoading: n,
|
|
13
|
+
isDisplayOnly: p
|
|
14
|
+
}) => p ? /* @__PURE__ */ e(a, { ratio: 1, children: [
|
|
14
15
|
i,
|
|
15
|
-
|
|
16
|
-
] }) : /* @__PURE__ */ r(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
e && /* @__PURE__ */ r(f, { children: e }),
|
|
30
|
-
o && /* @__PURE__ */ r(C, { id: c, children: o })
|
|
31
|
-
] }),
|
|
32
|
-
a && /* @__PURE__ */ r(R, { children: a }),
|
|
33
|
-
e && /* @__PURE__ */ r(W, { children: e })
|
|
34
|
-
] })
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
x.displayName = "Layouts.WidgetControls";
|
|
16
|
+
n && /* @__PURE__ */ r(l, {})
|
|
17
|
+
] }) : /* @__PURE__ */ r(a, { className: h, ratio: c, children: /* @__PURE__ */ e(m, { children: [
|
|
18
|
+
/* @__PURE__ */ e(f, { children: [
|
|
19
|
+
/* @__PURE__ */ e(u, { children: [
|
|
20
|
+
i,
|
|
21
|
+
n && /* @__PURE__ */ r(l, {})
|
|
22
|
+
] }),
|
|
23
|
+
t && /* @__PURE__ */ r(C, { children: t }),
|
|
24
|
+
o && /* @__PURE__ */ r(W, { id: s, children: o })
|
|
25
|
+
] }),
|
|
26
|
+
d && /* @__PURE__ */ r(x, { children: d }),
|
|
27
|
+
t && /* @__PURE__ */ r(y, { children: t })
|
|
28
|
+
] }) });
|
|
29
|
+
L.displayName = "Layouts.WidgetControls";
|
|
38
30
|
export {
|
|
39
|
-
|
|
31
|
+
L as default
|
|
40
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),a=require("@rubin-epo/epo-react-lib/styles"),d=require("../../atomic/Loader/index.cjs"),o=t=>t&&t.__esModule?t:{default:t},e=o(i),n=e.default.div`
|
|
2
2
|
--default-widget-padding: calc(var(--PADDING_SMALL, 20px) / 2);
|
|
3
3
|
--widget-gap: var(--widget-padding, var(--default-widget-padding));
|
|
4
4
|
|
|
@@ -6,59 +6,61 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
width: 100%;
|
|
9
|
-
|
|
9
|
+
height: 100%;
|
|
10
10
|
gap: var(--widget-gap);
|
|
11
|
-
overflow-y: auto;
|
|
12
11
|
|
|
13
|
-
@container (min-width: ${
|
|
12
|
+
@container (min-width: ${a.token("BREAK_PHABLET_MIN")}) {
|
|
14
13
|
--default-widget-padding: var(--PADDING_SMALL, 20px);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
@
|
|
16
|
+
@media (orientation: landscape) {
|
|
18
17
|
height: 100%;
|
|
19
18
|
overflow-y: initial;
|
|
20
19
|
}
|
|
21
|
-
`,l=
|
|
20
|
+
`,l=e.default.div`
|
|
22
21
|
display: flex;
|
|
23
22
|
flex-direction: column;
|
|
24
|
-
flex
|
|
23
|
+
flex: 1 1;
|
|
25
24
|
gap: var(--widget-gap);
|
|
25
|
+
min-height: 0;
|
|
26
26
|
|
|
27
|
-
@
|
|
27
|
+
@media (orientation: landscape) {
|
|
28
28
|
flex-direction: row-reverse;
|
|
29
29
|
}
|
|
30
|
-
`,r=
|
|
30
|
+
`,r=e.default.div`
|
|
31
31
|
aspect-ratio: 1;
|
|
32
|
-
flex: 1
|
|
32
|
+
flex: 1 0 auto;
|
|
33
33
|
max-height: 100%;
|
|
34
34
|
max-width: 100%;
|
|
35
35
|
justify-self: center;
|
|
36
36
|
position: relative;
|
|
37
37
|
|
|
38
|
-
@
|
|
38
|
+
@media (orientation: landscape) {
|
|
39
39
|
max-height: unset;
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
|
-
`,s=
|
|
42
|
+
`,s=e.default.form`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: var(--widget-gap);
|
|
46
46
|
flex: 0 1 100%;
|
|
47
|
-
|
|
47
|
+
overflow-x: hidden;
|
|
48
|
+
overflow-y: auto;
|
|
49
|
+
padding-inline: 2px;
|
|
50
|
+
`,c=e.default.div`
|
|
48
51
|
display: flex;
|
|
49
52
|
gap: var(--widget-gap);
|
|
50
|
-
`,
|
|
51
|
-
@
|
|
53
|
+
`,p=e.default.div`
|
|
54
|
+
@media (orientation: landscape) {
|
|
52
55
|
display: none;
|
|
53
56
|
}
|
|
54
|
-
`,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
display: block;
|
|
57
|
+
`,g=e.default.div`
|
|
58
|
+
@media (orientation: portrait) {
|
|
59
|
+
display: none;
|
|
58
60
|
}
|
|
59
|
-
`,f=
|
|
61
|
+
`,f=e.default(d.default)`
|
|
60
62
|
position: absolute;
|
|
61
63
|
top: 0;
|
|
62
64
|
left: 0;
|
|
63
65
|
z-index: 1;
|
|
64
|
-
`;exports.Actions=c;exports.Controls=s;exports.InteractionRow=l;exports.LandscapeCaption=
|
|
66
|
+
`;exports.Actions=c;exports.Controls=s;exports.InteractionRow=l;exports.LandscapeCaption=g;exports.PortraitCaption=p;exports.StackedLoader=f;exports.Widget=r;exports.WidgetLayout=n;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import i from "styled-components";
|
|
3
|
-
import { token as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import { token as e } from "@rubin-epo/epo-react-lib/styles";
|
|
4
|
+
import t from "../../atomic/Loader/index.js";
|
|
5
|
+
const n = i.div`
|
|
6
6
|
--default-widget-padding: calc(var(--PADDING_SMALL, 20px) / 2);
|
|
7
7
|
--widget-gap: var(--widget-padding, var(--default-widget-padding));
|
|
8
8
|
|
|
@@ -10,36 +10,36 @@ const d = i.div`
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
13
|
-
|
|
13
|
+
height: 100%;
|
|
14
14
|
gap: var(--widget-gap);
|
|
15
|
-
overflow-y: auto;
|
|
16
15
|
|
|
17
|
-
@container (min-width: ${
|
|
16
|
+
@container (min-width: ${e("BREAK_PHABLET_MIN")}) {
|
|
18
17
|
--default-widget-padding: var(--PADDING_SMALL, 20px);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
@
|
|
20
|
+
@media (orientation: landscape) {
|
|
22
21
|
height: 100%;
|
|
23
22
|
overflow-y: initial;
|
|
24
23
|
}
|
|
25
24
|
`, r = i.div`
|
|
26
25
|
display: flex;
|
|
27
26
|
flex-direction: column;
|
|
28
|
-
flex
|
|
27
|
+
flex: 1 1;
|
|
29
28
|
gap: var(--widget-gap);
|
|
29
|
+
min-height: 0;
|
|
30
30
|
|
|
31
|
-
@
|
|
31
|
+
@media (orientation: landscape) {
|
|
32
32
|
flex-direction: row-reverse;
|
|
33
33
|
}
|
|
34
34
|
`, l = i.div`
|
|
35
35
|
aspect-ratio: 1;
|
|
36
|
-
flex: 1
|
|
36
|
+
flex: 1 0 auto;
|
|
37
37
|
max-height: 100%;
|
|
38
38
|
max-width: 100%;
|
|
39
39
|
justify-self: center;
|
|
40
40
|
position: relative;
|
|
41
41
|
|
|
42
|
-
@
|
|
42
|
+
@media (orientation: landscape) {
|
|
43
43
|
max-height: unset;
|
|
44
44
|
height: 100%;
|
|
45
45
|
}
|
|
@@ -48,31 +48,33 @@ const d = i.div`
|
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
gap: var(--widget-gap);
|
|
50
50
|
flex: 0 1 100%;
|
|
51
|
-
|
|
51
|
+
overflow-x: hidden;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
padding-inline: 2px;
|
|
54
|
+
`, g = i.div`
|
|
52
55
|
display: flex;
|
|
53
56
|
gap: var(--widget-gap);
|
|
54
|
-
`,
|
|
55
|
-
@
|
|
57
|
+
`, s = i.div`
|
|
58
|
+
@media (orientation: landscape) {
|
|
56
59
|
display: none;
|
|
57
60
|
}
|
|
58
|
-
`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
display: block;
|
|
61
|
+
`, c = i.div`
|
|
62
|
+
@media (orientation: portrait) {
|
|
63
|
+
display: none;
|
|
62
64
|
}
|
|
63
|
-
`, f = i(
|
|
65
|
+
`, f = i(t)`
|
|
64
66
|
position: absolute;
|
|
65
67
|
top: 0;
|
|
66
68
|
left: 0;
|
|
67
69
|
z-index: 1;
|
|
68
70
|
`;
|
|
69
71
|
export {
|
|
70
|
-
|
|
72
|
+
g as Actions,
|
|
71
73
|
p as Controls,
|
|
72
74
|
r as InteractionRow,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
c as LandscapeCaption,
|
|
76
|
+
s as PortraitCaption,
|
|
75
77
|
f as StackedLoader,
|
|
76
78
|
l as Widget,
|
|
77
|
-
|
|
79
|
+
n as WidgetLayout
|
|
78
80
|
};
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"messages": {
|
|
53
53
|
"success": "¡Muy bien!",
|
|
54
54
|
"failure": "Inténtalo de nuevo."
|
|
55
|
+
},
|
|
56
|
+
"selected_source": "Seleccionada {{type}}:",
|
|
57
|
+
"sources": {
|
|
58
|
+
"galaxy": "Galaxia",
|
|
59
|
+
"supernova": "Supernova"
|
|
55
60
|
}
|
|
56
61
|
},
|
|
57
62
|
"camera_filter": {
|
|
@@ -66,5 +71,82 @@
|
|
|
66
71
|
"visible": "Luz visible",
|
|
67
72
|
"infrared": "Infrarrojo"
|
|
68
73
|
}
|
|
74
|
+
},
|
|
75
|
+
"blinker": {
|
|
76
|
+
"controls": {
|
|
77
|
+
"backward": "Regresar",
|
|
78
|
+
"forward": "Adelantar",
|
|
79
|
+
"pause": "Pausar",
|
|
80
|
+
"play": "Reproducir"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"isochrone_plot": {
|
|
84
|
+
"controls": {
|
|
85
|
+
"age": {
|
|
86
|
+
"label": "Edad",
|
|
87
|
+
"textValue": "{{value}} giga-años"
|
|
88
|
+
},
|
|
89
|
+
"distance": {
|
|
90
|
+
"label": "Distancia",
|
|
91
|
+
"textValue": "{{value}} desplazamiento de magnitud"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"output": "{{age}} Ga {{distance}} al",
|
|
95
|
+
"output_screenreader": "{{age}} giga-años {{distance}} años luz, {{percent}} de estrellas están en la curva.",
|
|
96
|
+
"plot": {
|
|
97
|
+
"x_label": "Índice de Color",
|
|
98
|
+
"y_label": "Magnitud Aparente tipo G"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"light_curve": {
|
|
102
|
+
"curve": {
|
|
103
|
+
"controls": {
|
|
104
|
+
"gaussian_width": "Ancho de Curva",
|
|
105
|
+
"y_offset": "Desplazamiento Vertical (eje y)"
|
|
106
|
+
},
|
|
107
|
+
"description_above": "La distancia media de las observaciones es {{residual}}, tu punto máximo está por sobre la medición más brillante de {{brightest}}",
|
|
108
|
+
"description_below": "La distancia media de las observaciones es {{residual}}, tu punto máximo está debajo de la medición más brillante de {{brightest}}"
|
|
109
|
+
},
|
|
110
|
+
"deltaM15": {
|
|
111
|
+
"label": "Delta m 15:"
|
|
112
|
+
},
|
|
113
|
+
"magnitude_slider": {
|
|
114
|
+
"label": "Estimar la magnitud aparente",
|
|
115
|
+
"value_above": "La magnitud aparente es {{magnitude}}, {{distance}} más alta que el punto máximo de la curva de luz.",
|
|
116
|
+
"value_below": "La magnitud aparente es {{magnitude}}, {{distance}} más baja que el punto máximo de la curva de luz.",
|
|
117
|
+
"value_equal": "La magnitud aparente es {{magnitude}}, igual al punto máximo de la curva de luz."
|
|
118
|
+
},
|
|
119
|
+
"plot": {
|
|
120
|
+
"plot_label": "Magnitud de supernova antes y después de la magnitud máxima",
|
|
121
|
+
"point_label_after_one": "Magnitud Aparente: {{magnitude}} {{count}} día después del punto máximo",
|
|
122
|
+
"point_label_after_other": "Magnitud Aparente: {{magnitude}} {{count}} días después del punto máximo",
|
|
123
|
+
"point_label_before_one": "Magnitud Aparente: {{magnitude}} {{count}} día antes del punto máximo",
|
|
124
|
+
"point_label_before_other": "Magnitud Aparente: {{magnitude}} {{count}} días antes del punto máximo",
|
|
125
|
+
"point_label_peak": "Magnitud Aparente: {{magnitude}} en su punto máximo",
|
|
126
|
+
"tooltip": "Magnitud Aparente: {{magnitude}}",
|
|
127
|
+
"x_label": "Días",
|
|
128
|
+
"y_label": "Magnitud Aparente (m)"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"supernova_three_vector": {
|
|
132
|
+
"histogram": {
|
|
133
|
+
"bar_label_one": "{{binMin}} a {{binMax}} megaaños luz: {{count}} supernova",
|
|
134
|
+
"bar_label_other": "{{binMin}} a {{binMax}} megaaños luz: {{count}} supernovas",
|
|
135
|
+
"title": "Distancias de Supernovas",
|
|
136
|
+
"x_label": "Distancia [Mlyr]"
|
|
137
|
+
},
|
|
138
|
+
"skymap": {
|
|
139
|
+
"description": "$t(supernova_three_vector.skymap.supernova_count, {\"count\": {{supernovaCount}}, \"min\": {{min}}, \"max\": {{max}}}) $t(supernova_three_vector.skymap.user_supernova_count, {\"count\": {{userObjectCount}}})",
|
|
140
|
+
"supernova_count_one": "La proyección de mapa en el cielo muestra {{count}} supernova entre las distancias de {{min}} y {{max}} megaaños luz.",
|
|
141
|
+
"supernova_count_other": "La proyección de mapa en el cielo muestra {{count}} supernovas entre las distancias de {{min}} y {{max}} megaaños luz.",
|
|
142
|
+
"title": "Distribución de Supernovas",
|
|
143
|
+
"user_supernova_count_one": "{{count}} de tus supernovas es visible cerca de {{coords}}.",
|
|
144
|
+
"user_supernova_count_other": "{{count}} de tus supernovas se ve cerca de {{coords}}.",
|
|
145
|
+
"user_supernova_count_zero": "Ninguna de tus supernovas es visible."
|
|
146
|
+
},
|
|
147
|
+
"slider": {
|
|
148
|
+
"label": "Seleccionar rango visible",
|
|
149
|
+
"valueLabel": "{{value}} megaaños luz"
|
|
150
|
+
}
|
|
69
151
|
}
|
|
70
152
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
3
|
export declare const FilterWrapper: import('styled-components').IStyledComponent<"web", {
|
|
4
|
-
ratio: AspectRatio;
|
|
5
|
-
medScreenRatio?: AspectRatio | undefined;
|
|
6
|
-
smallScreenRatio?: AspectRatio | undefined;
|
|
4
|
+
ratio: number | import('../../layout/AspectRatio').Ratios;
|
|
7
5
|
className?: string | undefined;
|
|
8
6
|
children?: import('react').ReactNode;
|
|
9
7
|
}> & import('react').FunctionComponent<import('react').PropsWithChildren<import('../../layout/AspectRatio').AspectRatioProps>>;
|
|
@@ -2950,7 +2948,7 @@ export declare const SpectrumLabel: import('styled-components').IStyledComponent
|
|
|
2950
2948
|
stroke?: string | undefined;
|
|
2951
2949
|
strokeDasharray?: string | number | undefined;
|
|
2952
2950
|
strokeDashoffset?: string | number | undefined;
|
|
2953
|
-
strokeLinecap?: "inherit" | "
|
|
2951
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
2954
2952
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2955
2953
|
strokeMiterlimit?: string | number | undefined;
|
|
2956
2954
|
strokeOpacity?: string | number | undefined;
|
|
@@ -3432,7 +3430,7 @@ export declare const ColorName: import('styled-components').IStyledComponent<"we
|
|
|
3432
3430
|
stroke?: string | undefined;
|
|
3433
3431
|
strokeDasharray?: string | number | undefined;
|
|
3434
3432
|
strokeDashoffset?: string | number | undefined;
|
|
3435
|
-
strokeLinecap?: "inherit" | "
|
|
3433
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
3436
3434
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
3437
3435
|
strokeMiterlimit?: string | number | undefined;
|
|
3438
3436
|
strokeOpacity?: string | number | undefined;
|
|
@@ -3914,7 +3912,7 @@ export declare const ColorSpectrum: import('styled-components').IStyledComponent
|
|
|
3914
3912
|
stroke?: string | undefined;
|
|
3915
3913
|
strokeDasharray?: string | number | undefined;
|
|
3916
3914
|
strokeDashoffset?: string | number | undefined;
|
|
3917
|
-
strokeLinecap?: "inherit" | "
|
|
3915
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
3918
3916
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
3919
3917
|
strokeMiterlimit?: string | number | undefined;
|
|
3920
3918
|
strokeOpacity?: string | number | undefined;
|
|
@@ -4396,7 +4394,7 @@ export declare const ColorSpectrumUnit: import('styled-components').IStyledCompo
|
|
|
4396
4394
|
stroke?: string | undefined;
|
|
4397
4395
|
strokeDasharray?: string | number | undefined;
|
|
4398
4396
|
strokeDashoffset?: string | number | undefined;
|
|
4399
|
-
strokeLinecap?: "inherit" | "
|
|
4397
|
+
strokeLinecap?: "inherit" | "butt" | "round" | "square" | undefined;
|
|
4400
4398
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
4401
4399
|
strokeMiterlimit?: string | number | undefined;
|
|
4402
4400
|
strokeOpacity?: string | number | undefined;
|