@rubin-epo/epo-widget-lib 1.0.1 → 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/IsochronePlot.js +7 -7
- package/dist/SourceSelector.cjs +1 -1
- package/dist/SourceSelector.js +4 -6
- 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/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +5 -6
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +50 -49
- package/dist/localeStrings/es/epo-widget-lib.json +82 -0
- 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 +482 -0
- 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/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +2 -3
- package/package.json +1 -1
- 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Point';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),o=t=>t&&t.__esModule?t:{default:t},n=o(e),r=n.default.circle`
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
transition: transform ease var(--DURATION, 0.2s);
|
|
4
|
-
transform-origin: center;
|
|
5
|
-
|
|
6
|
-
&:focus {
|
|
7
|
-
outline: none;
|
|
8
|
-
}
|
|
9
|
-
`;exports.Point=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),v=require("../styles.cjs"),y=require("../Point/Point.cjs"),r=({width:n,height:c,id:d,sources:l,selectedSource:u,onSelectCallback:o})=>{const a=e=>{const{id:t}=e.target;o&&o(t)};return s.jsx(v.SVG,{preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${n} ${c}`,onClick:a,id:d,children:s.jsx("g",{role:"list",children:l.map(e=>{const{type:t,id:i,color:x,radius:p=NaN,x:S,y:g}=e,j=u.includes(i),m=!1;return s.jsx(y.default,{x:S,y:g,radius:p,id:i,type:t,isActive:m,isSelected:j,color:x},i)})})})};r.displayName="Widgets.PointSelector";const P=r;exports.default=P;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { Source } from '../../../types/astro';
|
|
3
|
-
|
|
4
|
-
export interface PointSelectorProps {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
id?: string;
|
|
8
|
-
sources: Source[];
|
|
9
|
-
selectedSource: string[];
|
|
10
|
-
onSelectCallback: (id?: string) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const PointSelector: FunctionComponent<PointSelectorProps>;
|
|
13
|
-
export default PointSelector;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { SVG as P } from "../styles.js";
|
|
3
|
-
import S from "../Point/Point.js";
|
|
4
|
-
const s = ({
|
|
5
|
-
width: c,
|
|
6
|
-
height: n,
|
|
7
|
-
id: d,
|
|
8
|
-
sources: l,
|
|
9
|
-
selectedSource: a,
|
|
10
|
-
onSelectCallback: r
|
|
11
|
-
}) => {
|
|
12
|
-
const m = (t) => {
|
|
13
|
-
const { id: e } = t.target;
|
|
14
|
-
r && r(e);
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ o(
|
|
17
|
-
P,
|
|
18
|
-
{
|
|
19
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
20
|
-
viewBox: `0 0 ${c} ${n}`,
|
|
21
|
-
onClick: m,
|
|
22
|
-
id: d,
|
|
23
|
-
children: /* @__PURE__ */ o("g", { role: "list", children: l.map((t) => {
|
|
24
|
-
const { type: e, id: i, color: p, radius: f = NaN, x: u, y: x } = t, v = a.includes(i);
|
|
25
|
-
return /* @__PURE__ */ o(
|
|
26
|
-
S,
|
|
27
|
-
{
|
|
28
|
-
x: u,
|
|
29
|
-
y: x,
|
|
30
|
-
radius: f,
|
|
31
|
-
id: i,
|
|
32
|
-
type: e,
|
|
33
|
-
isActive: !1,
|
|
34
|
-
isSelected: v,
|
|
35
|
-
color: p
|
|
36
|
-
},
|
|
37
|
-
i
|
|
38
|
-
);
|
|
39
|
-
}) })
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
s.displayName = "Widgets.PointSelector";
|
|
44
|
-
const N = s;
|
|
45
|
-
export {
|
|
46
|
-
N as default
|
|
47
|
-
};
|