@rubin-epo/epo-widget-lib 0.4.3 → 0.5.1-alpha.1
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 +27 -27
- package/dist/ColorTool.cjs +1 -1
- package/dist/ColorTool.js +70 -78
- package/dist/SourceSelector.cjs +1 -1
- package/dist/SourceSelector.js +70 -69
- package/dist/atomic/Blinker/Blinker.cjs +1 -1
- package/dist/atomic/Blinker/Blinker.js +44 -50
- package/dist/atomic/Blinker/Image/Image.cjs +1 -1
- package/dist/atomic/Blinker/Image/Image.js +15 -15
- package/dist/atomic/Blinker/Image/styles.cjs +3 -8
- package/dist/atomic/Blinker/Image/styles.js +4 -9
- package/dist/atomic/Blinker/Images/Images.cjs +1 -1
- package/dist/atomic/Blinker/Images/Images.js +38 -31
- package/dist/atomic/Blinker/Images/styles.cjs +3 -8
- package/dist/atomic/Blinker/Images/styles.js +6 -11
- package/dist/atomic/Blinker/styles.cjs +14 -15
- package/dist/atomic/Blinker/styles.js +20 -20
- package/dist/favicon/apple-touch-icon.png +0 -0
- package/dist/favicon/favicon-16x16.png +0 -0
- package/dist/favicon/favicon-32x32.png +0 -0
- package/dist/types/CameraFilter.d.ts +6 -0
- package/dist/types/ColorTool.d.ts +45 -0
- package/dist/types/FilterTool.d.ts +16 -0
- package/dist/types/SourceSelector.d.ts +28 -0
- package/dist/types/cjs/CameraFilter.d.cts +1 -0
- package/dist/types/cjs/ColorTool.d.cts +1 -0
- package/dist/types/cjs/FilterTool.d.cts +1 -0
- package/dist/types/cjs/SourceSelector.d.cts +1 -0
- package/dist/{atomic/Blinker/Blinker.d.ts → types/cjs/atomic/Blinker/Blinker.d.cts} +4 -4
- package/dist/{atomic/Blinker/Image/Image.d.ts → types/cjs/atomic/Blinker/Image/Image.d.cts} +1 -1
- package/dist/types/cjs/atomic/Blinker/Image/styles.d.cts +283 -0
- package/dist/{atomic/Blinker/Images/styles.d.ts → types/cjs/atomic/Blinker/Images/styles.d.cts} +272 -4
- package/dist/types/cjs/atomic/Blinker/_mocks/index.d.cts +2 -0
- package/dist/{widgets/ColorTool/ColorTool.d.ts → types/cjs/widgets/ColorTool/ColorTool.d.cts} +2 -1
- package/dist/{widgets/ColorTool/FilterControls/FilterControls.d.ts → types/cjs/widgets/ColorTool/FilterControls/FilterControls.d.cts} +1 -1
- package/dist/{widgets/ColorTool/styles.d.ts → types/cjs/widgets/ColorTool/styles.d.cts} +544 -4
- package/dist/{widgets/SourceSelector/SourceSelector.d.ts → types/cjs/widgets/SourceSelector/SourceSelector.d.cts} +1 -1
- package/dist/{widgets/SourceSelector/utilities.d.ts → types/cjs/widgets/SourceSelector/utilities.d.cts} +1 -1
- package/dist/widgets/ColorTool/styles.cjs +26 -33
- package/dist/widgets/ColorTool/styles.js +36 -41
- package/dist/widgets/ColorTool/utilities.cjs +1 -1
- package/dist/widgets/ColorTool/utilities.js +23 -27
- package/dist/widgets/SourceSelector/utilities.cjs +1 -1
- package/dist/widgets/SourceSelector/utilities.js +7 -4
- package/package.json +43 -7
- package/dist/CameraFilter.d.ts +0 -3
- package/dist/ColorTool.d.ts +0 -3
- package/dist/FilterTool.d.ts +0 -3
- package/dist/SourceSelector.d.ts +0 -3
- package/dist/atomic/Blinker/Image/styles.d.ts +0 -4
- package/dist/atomic/Blinker/_mocks/index.d.ts +0 -2
- package/dist/atomic/Blinker/styles.d.ts +0 -278
- package/dist/widgets/SourceSelector/styles.d.ts +0 -299
- /package/dist/{atomic/Blinker/Controls/Controls.d.ts → types/cjs/atomic/Blinker/Controls/Controls.d.cts} +0 -0
- /package/dist/{atomic/Blinker/Controls/styles.d.ts → types/cjs/atomic/Blinker/Controls/styles.d.cts} +0 -0
- /package/dist/{atomic/Blinker/Images/Images.d.ts → types/cjs/atomic/Blinker/Images/Images.d.cts} +0 -0
- /package/dist/{atomic/Blinker/index.d.ts → types/cjs/atomic/Blinker/index.d.cts} +0 -0
- /package/dist/{atomic/ElapsedTime/ElapsedTime.d.ts → types/cjs/atomic/ElapsedTime/ElapsedTime.d.cts} +0 -0
- /package/dist/{atomic/ElapsedTime/index.d.ts → types/cjs/atomic/ElapsedTime/index.d.cts} +0 -0
- /package/dist/{atomic/ElapsedTime/styles.d.ts → types/cjs/atomic/ElapsedTime/styles.d.cts} +0 -0
- /package/dist/{atomic/PlaybackControl/PlaybackControl.d.ts → types/cjs/atomic/PlaybackControl/PlaybackControl.d.cts} +0 -0
- /package/dist/{atomic/PlaybackControl/index.d.ts → types/cjs/atomic/PlaybackControl/index.d.cts} +0 -0
- /package/dist/{atomic/PlaybackControl/styles.d.ts → types/cjs/atomic/PlaybackControl/styles.d.cts} +0 -0
- /package/dist/{hooks/useInterval.d.ts → types/cjs/hooks/useInterval.d.cts} +0 -0
- /package/dist/{lib/utils.d.ts → types/cjs/lib/utils.d.cts} +0 -0
- /package/dist/{lib/utils.test.d.ts → types/cjs/lib/utils.test.d.cts} +0 -0
- /package/dist/{styles/svg.d.ts → types/cjs/styles/svg.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/CameraFilter.d.ts → types/cjs/widgets/CameraFilter/CameraFilter.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.d.ts → types/cjs/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/CondensedFilterRanges/index.d.ts → types/cjs/widgets/CameraFilter/CondensedFilterRanges/index.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/ColorLabels/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/ColorLabels/index.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/index.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/SpectrumDisplay/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/index.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/data.d.ts → types/cjs/widgets/CameraFilter/data.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/index.d.ts → types/cjs/widgets/CameraFilter/index.d.cts} +0 -0
- /package/dist/{widgets/CameraFilter/styles.d.ts → types/cjs/widgets/CameraFilter/styles.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/FilterControls/index.d.ts → types/cjs/widgets/ColorTool/FilterControls/index.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/FilterImage/FilterImage.d.ts → types/cjs/widgets/ColorTool/FilterImage/FilterImage.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/FilterImage/index.d.ts → types/cjs/widgets/ColorTool/FilterImage/index.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/ImageComposite/ImageComposite.d.ts → types/cjs/widgets/ColorTool/ImageComposite/ImageComposite.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/ImageComposite/index.d.ts → types/cjs/widgets/ColorTool/ImageComposite/index.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/index.d.ts → types/cjs/widgets/ColorTool/index.d.cts} +0 -0
- /package/dist/{widgets/ColorTool/utilities.d.ts → types/cjs/widgets/ColorTool/utilities.d.cts} +0 -0
- /package/dist/{widgets/FilterTool/FilterTool.d.ts → types/cjs/widgets/FilterTool/FilterTool.d.cts} +0 -0
- /package/dist/{widgets/FilterTool/index.d.ts → types/cjs/widgets/FilterTool/index.d.cts} +0 -0
- /package/dist/{widgets/FilterTool/styles.d.ts → types/cjs/widgets/FilterTool/styles.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Message/Message.d.ts → types/cjs/widgets/SourceSelector/Message/Message.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Message/index.d.ts → types/cjs/widgets/SourceSelector/Message/index.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Message/styles.d.ts → types/cjs/widgets/SourceSelector/Message/styles.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Point/Point.d.ts → types/cjs/widgets/SourceSelector/Point/Point.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Point/index.d.ts → types/cjs/widgets/SourceSelector/Point/index.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Point/styles.d.ts → types/cjs/widgets/SourceSelector/Point/styles.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Points/Points.d.ts → types/cjs/widgets/SourceSelector/Points/Points.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/Points/index.d.ts → types/cjs/widgets/SourceSelector/Points/index.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/index.d.ts → types/cjs/widgets/SourceSelector/index.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/mocks/index.d.ts → types/cjs/widgets/SourceSelector/mocks/index.d.cts} +0 -0
- /package/dist/{widgets/SourceSelector/utilities.test.d.ts → types/cjs/widgets/SourceSelector/utilities.test.d.cts} +0 -0
|
@@ -1,68 +1,62 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className: C
|
|
1
|
+
import { jsxs as N, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import P from "../../hooks/useInterval.js";
|
|
4
|
+
import { BlinkerContainer as v, BlinkerImages as D, BlinkerControls as L } from "./styles.js";
|
|
5
|
+
import { getClampedArrayIndex as $ } from "../../lib/utils.js";
|
|
6
|
+
const u = ({
|
|
7
|
+
images: n = [],
|
|
8
|
+
activeIndex: s = 0,
|
|
9
|
+
autoplay: B = !0,
|
|
10
|
+
loop: x = !0,
|
|
11
|
+
interval: h = 200,
|
|
12
|
+
blinkCallback: e,
|
|
13
|
+
loadedCallback: l,
|
|
14
|
+
className: g,
|
|
15
|
+
children: k
|
|
17
16
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
s && d && d();
|
|
23
|
-
}, [s]);
|
|
24
|
-
const p = (e = 0) => {
|
|
25
|
-
const N = t.length - 1;
|
|
26
|
-
return M(n + e, N);
|
|
27
|
-
}, u = () => {
|
|
17
|
+
const [i, a] = p(B), [d, y] = p(!1), o = n.length > 1, c = (t = 0) => {
|
|
18
|
+
const A = n.length - 1;
|
|
19
|
+
return $(s + t, A);
|
|
20
|
+
}, f = () => {
|
|
28
21
|
if (o) {
|
|
29
|
-
const
|
|
30
|
-
|
|
22
|
+
const t = c(1);
|
|
23
|
+
x === !1 && t === n.length - 1 && r(), e && e(t);
|
|
31
24
|
}
|
|
32
25
|
}, r = () => {
|
|
33
26
|
a(!1);
|
|
34
|
-
},
|
|
35
|
-
a((
|
|
27
|
+
}, I = () => {
|
|
28
|
+
a((t) => !t);
|
|
29
|
+
}, S = () => {
|
|
30
|
+
r(), f();
|
|
36
31
|
}, j = () => {
|
|
37
|
-
r(),
|
|
38
|
-
}, L = () => {
|
|
39
|
-
r(), f(p(-1));
|
|
32
|
+
r(), e && e(c(-1));
|
|
40
33
|
};
|
|
41
|
-
return
|
|
42
|
-
/* @__PURE__ */
|
|
34
|
+
return P(f, o && d && i ? h : null), /* @__PURE__ */ N(v, { className: g, children: [
|
|
35
|
+
/* @__PURE__ */ m(
|
|
43
36
|
D,
|
|
44
37
|
{
|
|
45
|
-
loadedCallback: () =>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
loadedCallback: () => {
|
|
39
|
+
y(!0), l && l();
|
|
40
|
+
},
|
|
41
|
+
images: n,
|
|
42
|
+
activeIndex: s
|
|
49
43
|
}
|
|
50
44
|
),
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
k,
|
|
46
|
+
o && /* @__PURE__ */ m(
|
|
47
|
+
L,
|
|
53
48
|
{
|
|
54
|
-
isDisabled: !
|
|
55
|
-
playing:
|
|
56
|
-
handleStartStop:
|
|
57
|
-
handleNext:
|
|
58
|
-
handlePrevious:
|
|
59
|
-
$isCondensed: m
|
|
49
|
+
isDisabled: !d,
|
|
50
|
+
playing: i,
|
|
51
|
+
handleStartStop: I,
|
|
52
|
+
handleNext: S,
|
|
53
|
+
handlePrevious: j
|
|
60
54
|
}
|
|
61
55
|
)
|
|
62
56
|
] });
|
|
63
57
|
};
|
|
64
|
-
|
|
65
|
-
const
|
|
58
|
+
u.displayName = "Atomic.Blinker";
|
|
59
|
+
const F = u;
|
|
66
60
|
export {
|
|
67
|
-
|
|
61
|
+
F as default
|
|
68
62
|
};
|
|
@@ -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 n=require("react/jsx-runtime"),o=require("./styles.cjs"),t=({image:i,active:s,loadCallback:e})=>{const{url:r,altText:l}=i;return n.jsx(o.BlinkerImage,{alt:l,src:r,onLoad:()=>e&&e(),style:{"--image-visibility":s?"visible":"hidden"}})};t.displayName="Atomic.Blinker.Image";const u=t;exports.default=u;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { BlinkerImage as
|
|
3
|
-
const
|
|
4
|
-
image:
|
|
5
|
-
active:
|
|
6
|
-
loadCallback:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { BlinkerImage as s } from "./styles.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
image: r,
|
|
5
|
+
active: t,
|
|
6
|
+
loadCallback: e
|
|
7
7
|
}) => {
|
|
8
|
-
const { url: m, altText:
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
8
|
+
const { url: m, altText: a } = r;
|
|
9
|
+
return /* @__PURE__ */ n(
|
|
10
|
+
s,
|
|
11
11
|
{
|
|
12
|
-
alt:
|
|
12
|
+
alt: a,
|
|
13
13
|
src: m,
|
|
14
|
-
onLoad:
|
|
15
|
-
|
|
14
|
+
onLoad: () => e && e(),
|
|
15
|
+
style: { "--image-visibility": t ? "visible" : "hidden" }
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
i.displayName = "Atomic.Blinker.Image";
|
|
20
|
+
const g = i;
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
g as default
|
|
23
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),n=e=>e&&e.__esModule?e:{default:e},o=n(t),i=o.default.img`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
right: 0;
|
|
@@ -13,10 +13,5 @@
|
|
|
13
13
|
-o-user-drag: none;
|
|
14
14
|
-ms-user-drag: none;
|
|
15
15
|
user-drag: none;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
visibility: visible;
|
|
19
|
-
`:t.css`
|
|
20
|
-
visibility: hidden;
|
|
21
|
-
`}
|
|
22
|
-
`;exports.BlinkerImage=n;
|
|
16
|
+
visibility: var(--image-visibility, hidden);
|
|
17
|
+
`;exports.BlinkerImage=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import e from "styled-components";
|
|
2
|
+
const o = e.img`
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 0;
|
|
5
5
|
right: 0;
|
|
@@ -14,13 +14,8 @@ const r = o.img`
|
|
|
14
14
|
-o-user-drag: none;
|
|
15
15
|
-ms-user-drag: none;
|
|
16
16
|
user-drag: none;
|
|
17
|
-
|
|
18
|
-
${({ $active: i }) => i ? e`
|
|
19
|
-
visibility: visible;
|
|
20
|
-
` : e`
|
|
21
|
-
visibility: hidden;
|
|
22
|
-
`}
|
|
17
|
+
visibility: var(--image-visibility, hidden);
|
|
23
18
|
`;
|
|
24
19
|
export {
|
|
25
|
-
|
|
20
|
+
o as BlinkerImage
|
|
26
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),r=require("react"),j=require("@rubin-epo/epo-react-lib/CircularLoader"),o=require("./styles.cjs"),L=require("../Image/Image.cjs"),b=e=>e&&e.__esModule?e:{default:e},p=b(j),l=({images:e=[],activeIndex:u,className:c,loadedCallback:i})=>{const[n,d]=r.useState(0),t=n!==e.length,g=r.useCallback(()=>d(s=>s+1),[]);return r.useEffect(()=>{t||i&&i()},[t]),a.jsxs(o.BlinkContainer,{"data-testid":"blinker-images",className:c,children:[!n&&a.jsx(p.default,{isVisible:t}),a.jsx(o.LoadingContainer,{style:{"--loading-opacity":t?0:1},children:e.map((s,f)=>{const{url:m}=s,_=u===f;return a.jsx(L.default,{image:s,active:_,loadCallback:g},m)})})]})};l.displayName="Atomic.Blinker.Images";const q=l;exports.default=q;
|
|
@@ -1,37 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useCallback as u, useEffect as k } from "react";
|
|
3
3
|
import I from "@rubin-epo/epo-react-lib/CircularLoader";
|
|
4
|
-
import { BlinkContainer as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
images:
|
|
8
|
-
activeIndex:
|
|
9
|
-
className:
|
|
10
|
-
loadedCallback:
|
|
4
|
+
import { BlinkContainer as L, LoadingContainer as C } from "./styles.js";
|
|
5
|
+
import b from "../Image/Image.js";
|
|
6
|
+
const s = ({
|
|
7
|
+
images: o = [],
|
|
8
|
+
activeIndex: n,
|
|
9
|
+
className: m,
|
|
10
|
+
loadedCallback: a
|
|
11
11
|
}) => {
|
|
12
|
-
const [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
const [r, c] = p(0), e = r !== o.length, l = u(
|
|
13
|
+
() => c((t) => t + 1),
|
|
14
|
+
[]
|
|
15
|
+
);
|
|
16
|
+
return k(() => {
|
|
17
|
+
e || a && a();
|
|
18
|
+
}, [e]), /* @__PURE__ */ g(L, { "data-testid": "blinker-images", className: m, children: [
|
|
19
|
+
!r && /* @__PURE__ */ i(I, { isVisible: e }),
|
|
20
|
+
/* @__PURE__ */ i(
|
|
21
|
+
C,
|
|
22
|
+
{
|
|
23
|
+
style: { "--loading-opacity": e ? 0 : 1 },
|
|
24
|
+
children: o.map((t, d) => {
|
|
25
|
+
const { url: f } = t;
|
|
26
|
+
return /* @__PURE__ */ i(
|
|
27
|
+
b,
|
|
28
|
+
{
|
|
29
|
+
image: t,
|
|
30
|
+
active: n === d,
|
|
31
|
+
loadCallback: l
|
|
32
|
+
},
|
|
33
|
+
f
|
|
34
|
+
);
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
)
|
|
31
38
|
] });
|
|
32
39
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
40
|
+
s.displayName = "Atomic.Blinker.Images";
|
|
41
|
+
const A = s;
|
|
35
42
|
export {
|
|
36
|
-
|
|
43
|
+
A as default
|
|
37
44
|
};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),i=t=>t&&t.__esModule?t:{default:t},e=i(n),o=e.default.div`
|
|
2
2
|
background-color: var(--neutral95, #1f2121);
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
6
6
|
position: relative;
|
|
7
|
-
`,a=
|
|
7
|
+
`,a=e.default.div`
|
|
8
|
+
opacity: var(--loading-opacity, 0);
|
|
8
9
|
transition: opacity ease var(--DURATION_SLOW, 0.4s);
|
|
9
|
-
|
|
10
|
-
${({$isLoading:t})=>t?e.css`
|
|
11
|
-
opacity: 0;
|
|
12
|
-
`:e.css`
|
|
13
|
-
opacity: 1;
|
|
14
|
-
`}
|
|
15
10
|
`;exports.BlinkContainer=o;exports.LoadingContainer=a;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import t from "styled-components";
|
|
2
|
+
const n = t.div`
|
|
3
3
|
background-color: var(--neutral95, #1f2121);
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
7
|
position: relative;
|
|
8
|
-
`,
|
|
8
|
+
`, o = t.div`
|
|
9
|
+
opacity: var(--loading-opacity, 0);
|
|
9
10
|
transition: opacity ease var(--DURATION_SLOW, 0.4s);
|
|
10
|
-
|
|
11
|
-
${({ $isLoading: n }) => n ? t`
|
|
12
|
-
opacity: 0;
|
|
13
|
-
` : t`
|
|
14
|
-
opacity: 1;
|
|
15
|
-
`}
|
|
16
11
|
`;
|
|
17
12
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
n as BlinkContainer,
|
|
14
|
+
o as LoadingContainer
|
|
20
15
|
};
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),r=require("@rubin-epo/epo-react-lib/styles"),o=require("./Controls/Controls.cjs"),l=require("./Images/Images.cjs"),s=e=>e&&e.__esModule?e:{default:e},t=s(n),a=t.default.div`
|
|
2
|
+
container: blinker / inline-size;
|
|
2
3
|
display: grid;
|
|
3
4
|
grid-template-columns: 1fr;
|
|
4
5
|
grid-template-rows: 1fr min-content;
|
|
5
6
|
justify-items: center;
|
|
6
7
|
position: relative;
|
|
7
8
|
height: 100%;
|
|
8
|
-
`,
|
|
9
|
+
`,i=r.token("BREAK_MOBILE"),d=t.default(o.default)`
|
|
9
10
|
grid-row: 2;
|
|
11
|
+
margin-block-start: var(--PADDING_SMALL, 20px);
|
|
10
12
|
|
|
11
|
-
${
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
`}
|
|
16
|
-
`,a=r.default(i.default)`
|
|
13
|
+
@container blinker (min-width: ${i}) {
|
|
14
|
+
margin-block-end: var(--PADDING_SMALL, 20px);
|
|
15
|
+
}
|
|
16
|
+
`,c=t.default(l.default)`
|
|
17
17
|
aspect-ratio: 1;
|
|
18
|
+
grid-row: 1;
|
|
18
19
|
width: 100%;
|
|
19
20
|
|
|
20
|
-
${
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`};
|
|
26
|
-
`;exports.BlinkerContainer=n;exports.BlinkerControls=l;exports.BlinkerImages=a;
|
|
21
|
+
@container blinker (min-width: ${i}) {
|
|
22
|
+
position: absolute;
|
|
23
|
+
grid-row: span 2;
|
|
24
|
+
}
|
|
25
|
+
`;exports.BlinkerContainer=a;exports.BlinkerControls=d;exports.BlinkerImages=c;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import i from "styled-components";
|
|
2
|
+
import { token as t } from "@rubin-epo/epo-react-lib/styles";
|
|
3
|
+
import n from "./Controls/Controls.js";
|
|
4
|
+
import o from "./Images/Images.js";
|
|
5
|
+
const l = i.div`
|
|
6
|
+
container: blinker / inline-size;
|
|
5
7
|
display: grid;
|
|
6
8
|
grid-template-columns: 1fr;
|
|
7
9
|
grid-template-rows: 1fr min-content;
|
|
8
10
|
justify-items: center;
|
|
9
11
|
position: relative;
|
|
10
12
|
height: 100%;
|
|
11
|
-
`,
|
|
13
|
+
`, r = t("BREAK_MOBILE"), p = i(n)`
|
|
12
14
|
grid-row: 2;
|
|
15
|
+
margin-block-start: var(--PADDING_SMALL, 20px);
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`}
|
|
19
|
-
`, p = o(e)`
|
|
17
|
+
@container blinker (min-width: ${r}) {
|
|
18
|
+
margin-block-end: var(--PADDING_SMALL, 20px);
|
|
19
|
+
}
|
|
20
|
+
`, c = i(o)`
|
|
20
21
|
aspect-ratio: 1;
|
|
22
|
+
grid-row: 1;
|
|
21
23
|
width: 100%;
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
grid-row: span 2;
|
|
28
|
-
`};
|
|
25
|
+
@container blinker (min-width: ${r}) {
|
|
26
|
+
position: absolute;
|
|
27
|
+
grid-row: span 2;
|
|
28
|
+
}
|
|
29
29
|
`;
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
l as BlinkerContainer,
|
|
32
|
+
p as BlinkerControls,
|
|
33
|
+
c as BlinkerImages
|
|
34
34
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ListboxOption } from '@rubin-epo/epo-react-lib/SelectListbox';
|
|
3
|
+
import { Option as Option_2 } from '@rubin-epo/epo-react-lib/Select';
|
|
4
|
+
|
|
5
|
+
export declare interface AstroCategory {
|
|
6
|
+
type: string;
|
|
7
|
+
objects: AstroObject[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare interface AstroObject {
|
|
11
|
+
name: string;
|
|
12
|
+
caption?: string;
|
|
13
|
+
filters: ImageFilter[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const ColorTool: FunctionComponent<ColorToolProps>;
|
|
17
|
+
export default ColorTool;
|
|
18
|
+
|
|
19
|
+
declare interface ColorToolProps {
|
|
20
|
+
selectionCallback: (selectedData: AstroObject) => void;
|
|
21
|
+
data: AstroCategory[];
|
|
22
|
+
selectedData: AstroObject;
|
|
23
|
+
objectOptions?: Option_2[];
|
|
24
|
+
colorOptions?: ListboxOption[];
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
isDisplayOnly?: boolean;
|
|
27
|
+
hideImage?: boolean;
|
|
28
|
+
hideSubtitle?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare interface ImageFilter {
|
|
32
|
+
label: string;
|
|
33
|
+
defaultColor?: string;
|
|
34
|
+
color?: string;
|
|
35
|
+
active: boolean;
|
|
36
|
+
image: string;
|
|
37
|
+
isDisabled: boolean;
|
|
38
|
+
value: number;
|
|
39
|
+
defaultValue?: number;
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
brightness?: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
|
|
3
|
+
declare type FilterColor = "violet" | "blue" | "green" | "yellow" | "orange" | "red";
|
|
4
|
+
|
|
5
|
+
declare const FilterTool: FunctionComponent<FilterToolProps>;
|
|
6
|
+
export default FilterTool;
|
|
7
|
+
|
|
8
|
+
declare interface FilterToolProps {
|
|
9
|
+
selectionCallback?: (color: FilterColor) => void;
|
|
10
|
+
selectedColor?: FilterColor | "none";
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
labelledById?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Alert } from '../../types/astro';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { ImageShape } from '@rubin-epo/epo-react-lib/Image';
|
|
4
|
+
import { Source } from '../../types/astro';
|
|
5
|
+
|
|
6
|
+
declare interface BlinkConfig {
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
duration?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const SourceSelector: FunctionComponent<SourceSelectorProps>;
|
|
13
|
+
export default SourceSelector;
|
|
14
|
+
|
|
15
|
+
declare interface SourceSelectorProps {
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
sources: Source[];
|
|
19
|
+
alerts?: Alert[];
|
|
20
|
+
selectedSource?: Source[];
|
|
21
|
+
images: ImageShape[];
|
|
22
|
+
selectionCallback?: (data: Source[]) => void;
|
|
23
|
+
blinkConfig?: BlinkConfig;
|
|
24
|
+
color?: string;
|
|
25
|
+
isDisplayOnly?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './widgets/CameraFilter/CameraFilter'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './widgets/ColorTool/ColorTool'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './widgets/FilterTool/FilterTool'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './widgets/SourceSelector/SourceSelector'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
import { ImageShape } from "@rubin-epo/epo-react-lib";
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from "react";
|
|
2
|
+
import { ImageShape } from "@rubin-epo/epo-react-lib/Image";
|
|
3
3
|
export interface BlinkerProps {
|
|
4
4
|
images: ImageShape[];
|
|
5
|
-
activeIndex
|
|
5
|
+
activeIndex: number;
|
|
6
6
|
autoplay?: boolean;
|
|
7
7
|
loop?: boolean;
|
|
8
8
|
interval?: number;
|
|
@@ -10,5 +10,5 @@ export interface BlinkerProps {
|
|
|
10
10
|
loadedCallback?: () => void;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const Blinker: FunctionComponent<BlinkerProps
|
|
13
|
+
declare const Blinker: FunctionComponent<PropsWithChildren<BlinkerProps>>;
|
|
14
14
|
export default Blinker;
|