@rubin-epo/epo-widget-lib 1.0.7 → 1.0.9
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 +1 -2
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +89 -84
- package/dist/atomic/Blinker/Controls/Controls.cjs +1 -1
- package/dist/atomic/Blinker/Controls/Controls.js +24 -25
- package/dist/charts/Bars/index.js +1 -2
- package/dist/charts/Guidelines/index.js +1 -2
- package/dist/charts/PathFromPoints/index.js +1 -2
- package/dist/charts/Points/ErrorBar.cjs +1 -1
- package/dist/charts/Points/ErrorBar.js +9 -10
- package/dist/charts/Tooltip/index.cjs +1 -1
- package/dist/charts/Tooltip/index.js +11 -11
- package/dist/charts/XAxis/index.js +1 -2
- package/dist/charts/canvas/Points/index.cjs +1 -1
- package/dist/charts/canvas/Points/index.js +27 -29
- package/dist/charts/defaults.cjs +1 -1
- package/dist/charts/defaults.js +13 -13
- package/dist/layout/Controls/index.d.ts +1 -1
- package/dist/lib/reimg.cjs +1 -1
- package/dist/lib/reimg.js +19 -19
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.cjs +1 -1
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.js +15 -16
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.cjs +1 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.js +19 -20
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.cjs +1 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.js +20 -21
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.cjs +1 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.js +22 -23
- package/dist/widgets/ColorTool/Actions/Export/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/Export/index.js +17 -18
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/index.js +21 -22
- package/dist/widgets/ColorTool/FilterControls/FilterControls.cjs +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.js +32 -33
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +22 -23
- package/dist/widgets/ColorTool/__mocks__/index.d.ts +15 -0
- package/dist/widgets/ColorTool/hooks/useFilteredImages.cjs +1 -1
- package/dist/widgets/ColorTool/hooks/useFilteredImages.js +9 -10
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.cjs +1 -1
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.js +22 -23
- package/dist/widgets/IsochronePlot/Controls/index.cjs +1 -1
- package/dist/widgets/IsochronePlot/Controls/index.js +22 -23
- package/dist/widgets/IsochronePlot/defaults.cjs +1 -1
- package/dist/widgets/IsochronePlot/defaults.js +2 -2
- package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/Plot/index.js +28 -29
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.js +11 -12
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +2 -2
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -1
- package/dist/widgets/LightCurvePlot/defaults.js +2 -2
- package/dist/widgets/SourceSelector/SourceMap/index.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceMap/index.js +12 -13
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.js +39 -44
- package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.js +40 -40
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +16 -17
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +36 -37
- package/dist/widgets/SupernovaThreeVector/styles.cjs +13 -19
- package/dist/widgets/SupernovaThreeVector/styles.js +21 -31
- package/package.json +65 -6
package/dist/lib/reimg.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e,r){const i=function(){return e.indexOf("data:image/png")===0},a=function(t,n){const o=document.createElement("a");o.href=t,o.download=n,document.body.appendChild(o),o.click()};return{toBase64:function(){return e},toImg:function(){const t=document.createElement("img");return t.src=e,t},toCanvas:function(t){const n=document.createElement("canvas");n.width=0,n.height=0;const o=n.getContext("2d"),c=this.toImg();c.onload=function(){o==null||o.drawImage(c,0,0),t(n)}},toPng:function(){if(i()){const t=document.createElement("img");return t.src=e,t}this.toCanvas(function(t){const n=document.createElement("img");return n.src=t.toDataURL(),n})},toJpeg:function(t){t=t||1,(n=>{this.toCanvas(function(o){const c=document.createElement("img");return c.src=o.toDataURL("image/jpeg",n),c})})(t)},downloadPng:function(t){if(t=t||"image.png",i()){a(e,t);return}this.toCanvas(function(n){a(n.toDataURL(),t)})}}}function u(e){const r=e.toDataURL();return s(r)}exports.fromCanvas=u;
|
package/dist/lib/reimg.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
function s(
|
|
2
|
-
const
|
|
3
|
-
return
|
|
1
|
+
function s(e, r) {
|
|
2
|
+
const i = function() {
|
|
3
|
+
return e.indexOf("data:image/png") === 0;
|
|
4
4
|
}, a = function(t, n) {
|
|
5
5
|
const o = document.createElement("a");
|
|
6
6
|
o.href = t, o.download = n, document.body.appendChild(o), o.click();
|
|
7
7
|
};
|
|
8
8
|
return {
|
|
9
9
|
toBase64: function() {
|
|
10
|
-
return
|
|
10
|
+
return e;
|
|
11
11
|
},
|
|
12
12
|
toImg: function() {
|
|
13
13
|
const t = document.createElement("img");
|
|
14
|
-
return t.src =
|
|
14
|
+
return t.src = e, t;
|
|
15
15
|
},
|
|
16
16
|
toCanvas: function(t) {
|
|
17
|
-
const n = document.createElement("canvas")
|
|
18
|
-
n.width =
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const n = document.createElement("canvas");
|
|
18
|
+
n.width = 0, n.height = 0;
|
|
19
|
+
const o = n.getContext("2d"), c = this.toImg();
|
|
20
|
+
c.onload = function() {
|
|
21
|
+
o == null || o.drawImage(c, 0, 0), t(n);
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
toPng: function() {
|
|
25
|
-
if (
|
|
25
|
+
if (i()) {
|
|
26
26
|
const t = document.createElement("img");
|
|
27
|
-
return t.src =
|
|
27
|
+
return t.src = e, t;
|
|
28
28
|
}
|
|
29
29
|
this.toCanvas(function(t) {
|
|
30
30
|
const n = document.createElement("img");
|
|
@@ -34,14 +34,14 @@ function s(c, r) {
|
|
|
34
34
|
toJpeg: function(t) {
|
|
35
35
|
t = t || 1, ((n) => {
|
|
36
36
|
this.toCanvas(function(o) {
|
|
37
|
-
const
|
|
38
|
-
return
|
|
37
|
+
const c = document.createElement("img");
|
|
38
|
+
return c.src = o.toDataURL("image/jpeg", n), c;
|
|
39
39
|
});
|
|
40
40
|
})(t);
|
|
41
41
|
},
|
|
42
42
|
downloadPng: function(t) {
|
|
43
|
-
if (t = t || "image.png",
|
|
44
|
-
a(
|
|
43
|
+
if (t = t || "image.png", i()) {
|
|
44
|
+
a(e, t);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
this.toCanvas(function(n) {
|
|
@@ -50,10 +50,10 @@ function s(c, r) {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const r =
|
|
53
|
+
function u(e) {
|
|
54
|
+
const r = e.toDataURL();
|
|
55
55
|
return s(r);
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
u as fromCanvas
|
|
59
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("react"),d=require("../styles.cjs"),c=({filters:o,min:i,spectrumRange:l})=>{const n=m.useRef(null),a=n.current?Array.from(n.current.children):null;return e.jsxs(e.Fragment,{children:[e.jsx(d.CondensedRangeRow,{ref:n,"data-testid":"condensed-filters",children:o.map(({range:t,band:s})=>e.jsxs(d.CondensedRange,{"aria-labelledby":`${s}-name`,children:[t.join("–"),e.jsx("br",{}),"nm"]},s))}),a&&e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet",viewBox:`${i} 0 ${l} 50`,role:"presentation","aria-hidden":"true",children:e.jsx("g",{role:"presentation",children:o.map(({range:t,band:s},u)=>{const x=a[u],{offsetLeft:f,offsetWidth:h,offsetParent:b}=x,{offsetWidth:j}=b,p=l/j,r=(t[0]+t[1])/2,g=(f+h/2)*p;return e.jsxs("g",{children:[e.jsx("line",{strokeWidth:1,stroke:"#b2b2b2",x1:r,x2:r,y1:"100%",y2:"75%",role:"presentation"}),e.jsx("line",{strokeWidth:1,stroke:"#b2b2b2",x1:r,x2:g+i,y1:"75%",y2:"0%",role:"presentation"})]},s)})})})]})};c.displayName="Widgets.CameraFilter.CondensedFilterRanges";exports.default=c;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as s, Fragment as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { CondensedRangeRow as w, CondensedRange as
|
|
5
|
-
const
|
|
2
|
+
import { jsxs as s, Fragment as u, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as y } from "react";
|
|
4
|
+
import { CondensedRangeRow as w, CondensedRange as R } from "../styles.js";
|
|
5
|
+
const W = ({
|
|
6
6
|
filters: i,
|
|
7
7
|
min: l,
|
|
8
|
-
spectrumRange:
|
|
8
|
+
spectrumRange: a
|
|
9
9
|
}) => {
|
|
10
|
-
const r =
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
12
|
-
/* @__PURE__ */ e(w, { ref: r, "data-testid": "condensed-filters", children: i.map(({ range: t, band: n }) => /* @__PURE__ */ s(
|
|
10
|
+
const r = y(null), d = r.current ? Array.from(r.current.children) : null;
|
|
11
|
+
return /* @__PURE__ */ s(u, { children: [
|
|
12
|
+
/* @__PURE__ */ e(w, { ref: r, "data-testid": "condensed-filters", children: i.map(({ range: t, band: n }) => /* @__PURE__ */ s(R, { "aria-labelledby": `${n}-name`, children: [
|
|
13
13
|
t.join("–"),
|
|
14
14
|
/* @__PURE__ */ e("br", {}),
|
|
15
15
|
"nm"
|
|
16
16
|
] }, n)) }),
|
|
17
|
-
|
|
17
|
+
d && /* @__PURE__ */ e(
|
|
18
18
|
"svg",
|
|
19
19
|
{
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
preserveAspectRatio: "xMinYMin meet",
|
|
22
|
-
viewBox: `${l} 0 ${
|
|
22
|
+
viewBox: `${l} 0 ${a} 50`,
|
|
23
23
|
role: "presentation",
|
|
24
24
|
"aria-hidden": "true",
|
|
25
|
-
children: /* @__PURE__ */ e("g", { role: "presentation", children: i.map(({ range: t, band: n },
|
|
26
|
-
const
|
|
25
|
+
children: /* @__PURE__ */ e("g", { role: "presentation", children: i.map(({ range: t, band: n }, c) => {
|
|
26
|
+
const f = d[c], { offsetLeft: m, offsetWidth: p, offsetParent: h } = f, { offsetWidth: b } = h, x = a / b, o = (t[0] + t[1]) / 2, g = (m + p / 2) * x;
|
|
27
27
|
return /* @__PURE__ */ s("g", { children: [
|
|
28
28
|
/* @__PURE__ */ e(
|
|
29
29
|
"line",
|
|
@@ -43,7 +43,7 @@ const c = ({
|
|
|
43
43
|
strokeWidth: 1,
|
|
44
44
|
stroke: "#b2b2b2",
|
|
45
45
|
x1: o,
|
|
46
|
-
x2:
|
|
46
|
+
x2: g + l,
|
|
47
47
|
y1: "75%",
|
|
48
48
|
y2: "0%",
|
|
49
49
|
role: "presentation"
|
|
@@ -55,8 +55,7 @@ const c = ({
|
|
|
55
55
|
)
|
|
56
56
|
] });
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
const v = c;
|
|
58
|
+
W.displayName = "Widgets.CameraFilter.CondensedFilterRanges";
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
W as default
|
|
62
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),g=require("react-i18next"),M=require("../../../../lib/utils.cjs"),s=require("../../styles.cjs"),a=({colors:r,activeRange:x,isBandSelected:d,isCondensed:t})=>{const{t:u,i18n:{language:m}}=g.useTranslation(),n=t?350:r[0].range[0],h=(t?1e3:820)-n,b=Math.floor(h/(r.length-1));return e.jsx("g",{role:"list","data-testid":"color-labels",children:r.map(({name:c,range:
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),g=require("react-i18next"),M=require("../../../../lib/utils.cjs"),s=require("../../styles.cjs"),a=({colors:r,activeRange:x,isBandSelected:d,isCondensed:t})=>{const{t:u,i18n:{language:m}}=g.useTranslation(),n=t?350:r[0].range[0],h=(t?1e3:820)-n,b=Math.floor(h/(r.length-1));return e.jsx("g",{role:"list","data-testid":"color-labels",children:r.map(({name:c,range:o,color:j},y)=>{const l=n+b*y,p=d&&M.intersection(o,x)===null,i=(o[0]+o[1])/2;return e.jsxs("g",{children:[e.jsx("line",{strokeWidth:1,stroke:"#b2b2b2",x1:i,x2:i,y1:"100",y2:t?"105":"110",role:"presentation"}),e.jsx("line",{strokeWidth:1,stroke:"#b2b2b2",x1:i,x2:l,y1:t?"105":"110",y2:t?"145":"140",role:"presentation"}),e.jsx("circle",{cx:l,cy:t?"145":"140",r:t?15:10,fill:j,role:"presentation"}),e.jsxs("text",{x:l,dominantBaseline:"middle",textAnchor:"middle",y:"150",role:"listitem","aria-hidden":p,children:[e.jsx(s.ColorName,{x:l,dy:"1.25em",textAnchor:"middle",children:u(`filterTool.colors.${c}`).toLocaleLowerCase(m)}),e.jsx(s.ColorSpectrum,{x:l,dy:"1.25em",textAnchor:"middle",children:o.join("–")}),e.jsx(s.ColorSpectrumUnit,{x:l,dy:"1.25em",textAnchor:"middle",children:"nm"})]})]},c)})})};a.displayName="Widgets.CameraFilter.ColorLabels";exports.default=a;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { intersection as
|
|
5
|
-
import { ColorName as k, ColorSpectrum as A, ColorSpectrumUnit as
|
|
6
|
-
const
|
|
7
|
-
colors:
|
|
8
|
-
activeRange:
|
|
9
|
-
isBandSelected:
|
|
3
|
+
import { useTranslation as f } from "react-i18next";
|
|
4
|
+
import { intersection as g } from "../../../../lib/utils.js";
|
|
5
|
+
import { ColorName as k, ColorSpectrum as A, ColorSpectrumUnit as L } from "../../styles.js";
|
|
6
|
+
const M = ({
|
|
7
|
+
colors: l,
|
|
8
|
+
activeRange: s,
|
|
9
|
+
isBandSelected: m,
|
|
10
10
|
isCondensed: t
|
|
11
11
|
}) => {
|
|
12
12
|
const {
|
|
13
|
-
t:
|
|
14
|
-
i18n: { language:
|
|
15
|
-
} =
|
|
16
|
-
return /* @__PURE__ */ o("g", { role: "list", "data-testid": "color-labels", children:
|
|
17
|
-
const e = n +
|
|
13
|
+
t: d,
|
|
14
|
+
i18n: { language: x }
|
|
15
|
+
} = f(), n = t ? 350 : l[0].range[0], h = (t ? 1e3 : 820) - n, p = Math.floor(h / (l.length - 1));
|
|
16
|
+
return /* @__PURE__ */ o("g", { role: "list", "data-testid": "color-labels", children: l.map(({ name: c, range: r, color: b }, y) => {
|
|
17
|
+
const e = n + p * y, u = m && g(r, s) === null, i = (r[0] + r[1]) / 2;
|
|
18
18
|
return /* @__PURE__ */ a("g", { children: [
|
|
19
19
|
/* @__PURE__ */ o(
|
|
20
20
|
"line",
|
|
@@ -46,7 +46,7 @@ const s = ({
|
|
|
46
46
|
cx: e,
|
|
47
47
|
cy: t ? "145" : "140",
|
|
48
48
|
r: t ? 15 : 10,
|
|
49
|
-
fill:
|
|
49
|
+
fill: b,
|
|
50
50
|
role: "presentation"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
@@ -58,7 +58,7 @@ const s = ({
|
|
|
58
58
|
textAnchor: "middle",
|
|
59
59
|
y: "150",
|
|
60
60
|
role: "listitem",
|
|
61
|
-
"aria-hidden":
|
|
61
|
+
"aria-hidden": u,
|
|
62
62
|
children: [
|
|
63
63
|
/* @__PURE__ */ o(
|
|
64
64
|
k,
|
|
@@ -66,7 +66,7 @@ const s = ({
|
|
|
66
66
|
x: e,
|
|
67
67
|
dy: "1.25em",
|
|
68
68
|
textAnchor: "middle",
|
|
69
|
-
children:
|
|
69
|
+
children: d(`filterTool.colors.${c}`).toLocaleLowerCase(x)
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ o(
|
|
@@ -75,11 +75,11 @@ const s = ({
|
|
|
75
75
|
x: e,
|
|
76
76
|
dy: "1.25em",
|
|
77
77
|
textAnchor: "middle",
|
|
78
|
-
children:
|
|
78
|
+
children: r.join("–")
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
/* @__PURE__ */ o(
|
|
82
|
-
|
|
82
|
+
L,
|
|
83
83
|
{
|
|
84
84
|
x: e,
|
|
85
85
|
dy: "1.25em",
|
|
@@ -93,8 +93,7 @@ const s = ({
|
|
|
93
93
|
] }, c);
|
|
94
94
|
}) });
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
const T = s;
|
|
96
|
+
M.displayName = "Widgets.CameraFilter.ColorLabels";
|
|
98
97
|
export {
|
|
99
|
-
|
|
98
|
+
M as default
|
|
100
99
|
};
|
|
@@ -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"),o=require("../../../lib/utils.cjs"),t=require("../data.cjs"),l=require("./SpectrumLabels/SpectrumLabels.cjs"),x=({min:n,max:u,range:g,isCondensed:p,activeFilter:s})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet",viewBox:`${n} 0 ${g} 260`,"data-testid":"spectrum-display",children:[e.jsxs("defs",{children:[t.spectrums.map(({name:d,stops:r})=>e.jsx("linearGradient",{id:`${d}-gradient`,children:r.map(({offset:a,stopColor:h,id:j})=>e.jsx("stop",{offset:a,stopColor:h,id:j},`${a}-${h}`))},d)),e.jsxs("mask",{id:"spectrumMask",children:[e.jsx("rect",{width:"100%",height:"100",fill:"white",x:n}),s&&e.jsxs(e.Fragment,{children:[e.jsx("rect",{x:n,width:s.range[0]-n,height:"100%",fill:"black"}),e.jsx("rect",{x:s.range[1],width:u-s.range[1],height:"100%",fill:"black"})]})]})]}),e.jsx("g",{mask:"url(#spectrumMask)",role:"presentation",children:t.spectrums.map(({name:d,upper:r,lower:a})=>e.jsx("rect",{width:(r||u)-(a||n),height:"50%",fill:`url(#${d}-gradient)`,x:a||n,role:"presentation"},d))}),e.jsx("g",{children:t.spectrums.map(({name:d,upper:r})=>r&&e.jsx("line",{strokeWidth:2,strokeDasharray:"8 8",stroke:s&&!o.between(r,s.range[0],s.range[1])?"#000":"#fff",x1:r,x2:r,y1:0,y2:"50%"},d))}),e.jsx(l.default,{spectrums:t.spectrums,activeBand:s==null?void 0:s.band,min:n,max:u,activeMin:s==null?void 0:s.range[0],activeMax:s==null?void 0:s.range[1],isCondensed:p})]});x.displayName="Widgets.CameraFilter.SpectrumDisplay";exports.default=x;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { between as
|
|
1
|
+
import { jsxs as g, jsx as r, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { between as w } from "../../../lib/utils.js";
|
|
3
3
|
import { spectrums as e } from "../data.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import k from "./SpectrumLabels/SpectrumLabels.js";
|
|
5
|
+
const l = ({
|
|
6
6
|
min: n,
|
|
7
|
-
max:
|
|
8
|
-
range:
|
|
7
|
+
max: p,
|
|
8
|
+
range: o,
|
|
9
9
|
isCondensed: f,
|
|
10
10
|
activeFilter: s
|
|
11
|
-
}) => /* @__PURE__ */
|
|
11
|
+
}) => /* @__PURE__ */ g(
|
|
12
12
|
"svg",
|
|
13
13
|
{
|
|
14
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15
15
|
preserveAspectRatio: "xMinYMin meet",
|
|
16
|
-
viewBox: `${n} 0 ${
|
|
16
|
+
viewBox: `${n} 0 ${o} 260`,
|
|
17
17
|
"data-testid": "spectrum-display",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
e.map(({ name: h, stops: d }) => /* @__PURE__ */ r("linearGradient", { id: `${h}-gradient`, children: d.map(({ offset: a, stopColor: m, id:
|
|
19
|
+
/* @__PURE__ */ g("defs", { children: [
|
|
20
|
+
e.map(({ name: h, stops: d }) => /* @__PURE__ */ r("linearGradient", { id: `${h}-gradient`, children: d.map(({ offset: a, stopColor: m, id: t }) => /* @__PURE__ */ r(
|
|
21
21
|
"stop",
|
|
22
22
|
{
|
|
23
23
|
offset: a,
|
|
24
24
|
stopColor: m,
|
|
25
|
-
id:
|
|
25
|
+
id: t
|
|
26
26
|
},
|
|
27
27
|
`${a}-${m}`
|
|
28
28
|
)) }, h)),
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ g("mask", { id: "spectrumMask", children: [
|
|
30
30
|
/* @__PURE__ */ r("rect", { width: "100%", height: "100", fill: "white", x: n }),
|
|
31
|
-
s && /* @__PURE__ */
|
|
31
|
+
s && /* @__PURE__ */ g(x, { children: [
|
|
32
32
|
/* @__PURE__ */ r(
|
|
33
33
|
"rect",
|
|
34
34
|
{
|
|
@@ -42,7 +42,7 @@ const o = ({
|
|
|
42
42
|
"rect",
|
|
43
43
|
{
|
|
44
44
|
x: s.range[1],
|
|
45
|
-
width:
|
|
45
|
+
width: p - s.range[1],
|
|
46
46
|
height: "100%",
|
|
47
47
|
fill: "black"
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ const o = ({
|
|
|
53
53
|
/* @__PURE__ */ r("g", { mask: "url(#spectrumMask)", role: "presentation", children: e.map(({ name: h, upper: d, lower: a }) => /* @__PURE__ */ r(
|
|
54
54
|
"rect",
|
|
55
55
|
{
|
|
56
|
-
width: (d ||
|
|
56
|
+
width: (d || p) - (a || n),
|
|
57
57
|
height: "50%",
|
|
58
58
|
fill: `url(#${h}-gradient)`,
|
|
59
59
|
x: a || n,
|
|
@@ -67,7 +67,7 @@ const o = ({
|
|
|
67
67
|
{
|
|
68
68
|
strokeWidth: 2,
|
|
69
69
|
strokeDasharray: "8 8",
|
|
70
|
-
stroke: s && !
|
|
70
|
+
stroke: s && !w(d, s.range[0], s.range[1]) ? "#000" : "#fff",
|
|
71
71
|
x1: d,
|
|
72
72
|
x2: d,
|
|
73
73
|
y1: 0,
|
|
@@ -77,12 +77,12 @@ const o = ({
|
|
|
77
77
|
)
|
|
78
78
|
) }),
|
|
79
79
|
/* @__PURE__ */ r(
|
|
80
|
-
|
|
80
|
+
k,
|
|
81
81
|
{
|
|
82
82
|
spectrums: e,
|
|
83
83
|
activeBand: s == null ? void 0 : s.band,
|
|
84
84
|
min: n,
|
|
85
|
-
max:
|
|
85
|
+
max: p,
|
|
86
86
|
activeMin: s == null ? void 0 : s.range[0],
|
|
87
87
|
activeMax: s == null ? void 0 : s.range[1],
|
|
88
88
|
isCondensed: f
|
|
@@ -91,8 +91,7 @@ const o = ({
|
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
|
-
|
|
95
|
-
const M = o;
|
|
94
|
+
l.displayName = "Widgets.CameraFilter.SpectrumDisplay";
|
|
96
95
|
export {
|
|
97
|
-
|
|
96
|
+
l as default
|
|
98
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),L=require("react-i18next"),S=require("../../styles.cjs"),_=require("../../../../lib/utils.cjs"),h=require("../ColorLabels/ColorLabels.cjs"),d=({spectrums:m,activeBand:e,min:p,max:b,activeMin:i=0,activeMax:a=0,isCondensed:l})=>{const{t:n}=L.useTranslation(),f=n("camera_filter.labels.captured_range",{context:e?"":"no_filter",filter:e});return r.jsx("g",{role:"list","aria-label":f,"aria-live":"polite","data-testid":"spectrum-labels",children:m.map(({name:s,upper:x,lower:g,colors:u},c)=>{const o=x||b,t=g||p,j=e&&_.intersection([t,o],[i,a])===null;return r.jsxs("g",{role:"listitem","aria-hidden":j,children:[r.jsx(S.SpectrumLabel,{x:l&&c===0?t:(o-t)/2+t,y:"50",dominantBaseline:"middle",textAnchor:l&&c===0?"start":"middle",children:n(`camera_filter.labels.${s}`)},s),u&&r.jsx(h.default,{colors:u,isBandSelected:!!e,activeRange:[i,a],isCondensed:l})]},s)})})};d.displayName="Widgets.CameraFilter.SpectrumLabels";exports.default=d;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as a, jsxs as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { SpectrumLabel as
|
|
5
|
-
import { intersection as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
spectrums:
|
|
2
|
+
import { jsx as a, jsxs as h } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as x } from "react-i18next";
|
|
4
|
+
import { SpectrumLabel as S } from "../../styles.js";
|
|
5
|
+
import { intersection as _ } from "../../../../lib/utils.js";
|
|
6
|
+
import j from "../ColorLabels/ColorLabels.js";
|
|
7
|
+
const y = ({
|
|
8
|
+
spectrums: p,
|
|
9
9
|
activeBand: e,
|
|
10
|
-
min:
|
|
10
|
+
min: d,
|
|
11
11
|
max: f,
|
|
12
|
-
activeMin:
|
|
13
|
-
activeMax:
|
|
12
|
+
activeMin: i = 0,
|
|
13
|
+
activeMax: s = 0,
|
|
14
14
|
isCondensed: t
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: o } =
|
|
16
|
+
const { t: o } = x(), u = o("camera_filter.labels.captured_range", {
|
|
17
17
|
context: e ? "" : "no_filter",
|
|
18
18
|
filter: e
|
|
19
19
|
});
|
|
@@ -21,29 +21,29 @@ const p = ({
|
|
|
21
21
|
"g",
|
|
22
22
|
{
|
|
23
23
|
role: "list",
|
|
24
|
-
"aria-label":
|
|
24
|
+
"aria-label": u,
|
|
25
25
|
"aria-live": "polite",
|
|
26
26
|
"data-testid": "spectrum-labels",
|
|
27
|
-
children:
|
|
28
|
-
const
|
|
29
|
-
return /* @__PURE__ */
|
|
27
|
+
children: p.map(({ name: l, upper: b, lower: L, colors: m }, n) => {
|
|
28
|
+
const c = b || f, r = L || d, g = e && _([r, c], [i, s]) === null;
|
|
29
|
+
return /* @__PURE__ */ h("g", { role: "listitem", "aria-hidden": g, children: [
|
|
30
30
|
/* @__PURE__ */ a(
|
|
31
|
-
|
|
31
|
+
S,
|
|
32
32
|
{
|
|
33
|
-
x: t &&
|
|
33
|
+
x: t && n === 0 ? r : (c - r) / 2 + r,
|
|
34
34
|
y: "50",
|
|
35
35
|
dominantBaseline: "middle",
|
|
36
|
-
textAnchor: t &&
|
|
36
|
+
textAnchor: t && n === 0 ? "start" : "middle",
|
|
37
37
|
children: o(`camera_filter.labels.${l}`)
|
|
38
38
|
},
|
|
39
39
|
l
|
|
40
40
|
),
|
|
41
41
|
m && /* @__PURE__ */ a(
|
|
42
|
-
|
|
42
|
+
j,
|
|
43
43
|
{
|
|
44
44
|
colors: m,
|
|
45
45
|
isBandSelected: !!e,
|
|
46
|
-
activeRange: [
|
|
46
|
+
activeRange: [i, s],
|
|
47
47
|
isCondensed: t
|
|
48
48
|
}
|
|
49
49
|
)
|
|
@@ -52,8 +52,7 @@ const p = ({
|
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
const N = p;
|
|
55
|
+
y.displayName = "Widgets.CameraFilter.SpectrumLabels";
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
y as default
|
|
59
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),s=require("react"),i=require("@rubin-epo/epo-react-lib/Button"),a=require("../../../../lib/reimg.cjs"),c=e=>e&&e.__esModule?e:{default:e},d=c(i),t=({canvas:e,filename:o,isDisabled:r,children:l})=>{const u=s.useCallback(()=>{e&&a.fromCanvas(e).downloadPng(o)},[e]);return n.jsx(d.default,{disabled:r,style:{"--button-text-align":"left"},icon:"ArrowUpFromBracket",onClick:u,isBlock:!0,children:l})};t.displayName="Widgets.ColorTool.Reset";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),s=require("react"),i=require("@rubin-epo/epo-react-lib/Button"),a=require("../../../../lib/reimg.cjs"),c=e=>e&&e.__esModule?e:{default:e},d=c(i),t=({canvas:e,filename:o,isDisabled:r,children:l})=>{const u=s.useCallback(()=>{e&&a.fromCanvas(e).downloadPng(o)},[e]);return n.jsx(d.default,{disabled:r,style:{"--button-text-align":"left"},icon:"ArrowUpFromBracket",onClick:u,isBlock:!0,children:l})};t.displayName="Widgets.ColorTool.Reset";exports.default=t;
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import
|
|
5
|
-
import { fromCanvas as
|
|
6
|
-
const
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback as m } from "react";
|
|
4
|
+
import n from "@rubin-epo/epo-react-lib/Button";
|
|
5
|
+
import { fromCanvas as s } from "../../../../lib/reimg.js";
|
|
6
|
+
const a = ({
|
|
7
7
|
canvas: o,
|
|
8
|
-
filename:
|
|
9
|
-
isDisabled:
|
|
10
|
-
children:
|
|
8
|
+
filename: t,
|
|
9
|
+
isDisabled: r,
|
|
10
|
+
children: e
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
o &&
|
|
12
|
+
const l = m(() => {
|
|
13
|
+
o && s(o).downloadPng(t);
|
|
14
14
|
}, [o]);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
15
|
+
return /* @__PURE__ */ i(
|
|
16
|
+
n,
|
|
17
17
|
{
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: r,
|
|
19
19
|
style: { "--button-text-align": "left" },
|
|
20
20
|
icon: "ArrowUpFromBracket",
|
|
21
|
-
onClick:
|
|
21
|
+
onClick: l,
|
|
22
22
|
isBlock: !0,
|
|
23
|
-
children:
|
|
23
|
+
children: e
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
const u = t;
|
|
27
|
+
a.displayName = "Widgets.ColorTool.Reset";
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
a as default
|
|
31
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),f=require("react-i18next"),x=require("../../../atomic/Button/patterns/Reset.cjs"),g=require("./Export/index.cjs"),a=require("../lib/utils.cjs"),b=i=>i.map(t=>{const{defaultValue:e,min:s,max:o}=t,r=e||1;return{...t,active:!1,color:"",brightness:a.getBrightnessValue(s,o,r),value:r}}),c=({actions:i,isDisabled:t,selectedData:e,selectionCallback:s,canvas:o})=>{const{t:r}=f.useTranslation(),{name:d,filters:m}=e,u=t||!a.areActionsActive(e);return n.jsx(n.Fragment,{children:i.map(l=>{switch(l){case"reset":return n.jsx(x.default,{isDisabled:u,onResetCallback:()=>s&&s({...e,filters:b(m)})},l);case"export":return n.jsx(g.default,{isDisabled:u,canvas:o,filename:d,children:r("colorTool.actions.export")},l);case"save":return null;default:return null}})})};c.displayName="Widgets.ColorTool.Actions";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),f=require("react-i18next"),x=require("../../../atomic/Button/patterns/Reset.cjs"),g=require("./Export/index.cjs"),a=require("../lib/utils.cjs"),b=i=>i.map(t=>{const{defaultValue:e,min:s,max:o}=t,r=e||1;return{...t,active:!1,color:"",brightness:a.getBrightnessValue(s,o,r),value:r}}),c=({actions:i,isDisabled:t,selectedData:e,selectionCallback:s,canvas:o})=>{const{t:r}=f.useTranslation(),{name:d,filters:m}=e,u=t||!a.areActionsActive(e);return n.jsx(n.Fragment,{children:i.map(l=>{switch(l){case"reset":return n.jsx(x.default,{isDisabled:u,onResetCallback:()=>s&&s({...e,filters:b(m)})},l);case"export":return n.jsx(g.default,{isDisabled:u,canvas:o,filename:d,children:r("colorTool.actions.export")},l);case"save":return null;default:return null}})})};c.displayName="Widgets.ColorTool.Actions";exports.default=c;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { areActionsActive as
|
|
7
|
-
const
|
|
8
|
-
const { defaultValue:
|
|
2
|
+
import { jsx as l, Fragment as u } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as p } from "react-i18next";
|
|
4
|
+
import f from "../../../atomic/Button/patterns/Reset.js";
|
|
5
|
+
import d from "./Export/index.js";
|
|
6
|
+
import { areActionsActive as x, getBrightnessValue as g } from "../lib/utils.js";
|
|
7
|
+
const h = (o) => o.map((t) => {
|
|
8
|
+
const { defaultValue: e, min: r, max: n } = t, s = e || 1;
|
|
9
9
|
return {
|
|
10
|
-
...
|
|
10
|
+
...t,
|
|
11
11
|
active: !1,
|
|
12
12
|
color: "",
|
|
13
|
-
brightness:
|
|
13
|
+
brightness: g(r, n, s),
|
|
14
14
|
value: s
|
|
15
15
|
};
|
|
16
|
-
}),
|
|
16
|
+
}), b = ({
|
|
17
17
|
actions: o,
|
|
18
|
-
isDisabled:
|
|
19
|
-
selectedData:
|
|
18
|
+
isDisabled: t,
|
|
19
|
+
selectedData: e,
|
|
20
20
|
selectionCallback: r,
|
|
21
21
|
canvas: n
|
|
22
22
|
}) => {
|
|
23
|
-
const { t: s } =
|
|
24
|
-
return /* @__PURE__ */ l(
|
|
23
|
+
const { t: s } = p(), { name: c, filters: m } = e, a = t || !x(e);
|
|
24
|
+
return /* @__PURE__ */ l(u, { children: o.map((i) => {
|
|
25
25
|
switch (i) {
|
|
26
26
|
case "reset":
|
|
27
27
|
return /* @__PURE__ */ l(
|
|
28
|
-
|
|
28
|
+
f,
|
|
29
29
|
{
|
|
30
30
|
isDisabled: a,
|
|
31
31
|
onResetCallback: () => r && r({
|
|
32
|
-
...
|
|
33
|
-
filters:
|
|
32
|
+
...e,
|
|
33
|
+
filters: h(m)
|
|
34
34
|
})
|
|
35
35
|
},
|
|
36
36
|
i
|
|
37
37
|
);
|
|
38
38
|
case "export":
|
|
39
39
|
return /* @__PURE__ */ l(
|
|
40
|
-
|
|
40
|
+
d,
|
|
41
41
|
{
|
|
42
42
|
isDisabled: a,
|
|
43
43
|
canvas: n,
|
|
44
|
-
filename:
|
|
44
|
+
filename: c,
|
|
45
45
|
children: s("colorTool.actions.export")
|
|
46
46
|
},
|
|
47
47
|
i
|
|
@@ -53,8 +53,7 @@ const A = (o) => o.map((e) => {
|
|
|
53
53
|
}
|
|
54
54
|
}) });
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
const R = c;
|
|
56
|
+
b.displayName = "Widgets.ColorTool.Actions";
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
b as default
|
|
60
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),q=require("@rubin-epo/epo-react-lib/SelectListbox"),v=require("../lib/utils.cjs"),S=require("react-i18next"),l=require("./styles.cjs"),T=e=>e&&e.__esModule?e:{default:e},I=T(q),d=({filter:e,colorOptions:a,isDisabled:r,onChangeFilterCallback:s,buttonLabelledById:u,selectLabelledById:h,sliderLabelledById:x})=>{const{t:b}=S.useTranslation(),{label:i,color:c="",value:m,active:n,min:g,max:j}=e,p=()=>s&&s({...e,active:!n}),y=t=>t&&s&&s({...e,color:t}),_=t=>s&&s({...e,brightness:v.getBrightnessValue(g,j,t),value:t}),f=b("colorTool.actions.select_filter");return o.jsxs(l.FilterContainer,{disabled:r,children:[o.jsxs(l.FilterLabel,{children:[o.jsx(l.HiddenCheckbox,{checked:n,type:"checkbox",onChange:p,"aria-describedby":u}),o.jsx(l.FilterToggle,{as:"span",children:i})]}),o.jsx(I.default,{placeholder:f,value:c,options:a,onChangeCallback:y,width:"100%",maxWidth:"100%",labelledById:h,isDisabled:!n||r}),o.jsx(l.Slider,{min:1,max:100,onChangeCallback:t=>typeof t=="number"&&_(t),isDisabled:!n||r,labelledbyId:x,value:m,label:i,color:c})]})};d.displayName="Widgets.ColorTool.FilterControls";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),q=require("@rubin-epo/epo-react-lib/SelectListbox"),v=require("../lib/utils.cjs"),S=require("react-i18next"),l=require("./styles.cjs"),T=e=>e&&e.__esModule?e:{default:e},I=T(q),d=({filter:e,colorOptions:a,isDisabled:r,onChangeFilterCallback:s,buttonLabelledById:u,selectLabelledById:h,sliderLabelledById:x})=>{const{t:b}=S.useTranslation(),{label:i,color:c="",value:m,active:n,min:g,max:j}=e,p=()=>s&&s({...e,active:!n}),y=t=>t&&s&&s({...e,color:t}),_=t=>s&&s({...e,brightness:v.getBrightnessValue(g,j,t),value:t}),f=b("colorTool.actions.select_filter");return o.jsxs(l.FilterContainer,{disabled:r,children:[o.jsxs(l.FilterLabel,{children:[o.jsx(l.HiddenCheckbox,{checked:n,type:"checkbox",onChange:p,"aria-describedby":u}),o.jsx(l.FilterToggle,{as:"span",children:i})]}),o.jsx(I.default,{placeholder:f,value:c,options:a,onChangeCallback:y,width:"100%",maxWidth:"100%",labelledById:h,isDisabled:!n||r}),o.jsx(l.Slider,{min:1,max:100,onChangeCallback:t=>typeof t=="number"&&_(t),isDisabled:!n||r,labelledbyId:x,value:m,label:i,color:c})]})};d.displayName="Widgets.ColorTool.FilterControls";exports.default=d;
|