@rubin-epo/epo-widget-lib 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/localeStrings/en/epo-widget-lib.json +2 -1
- package/dist/localeStrings/es/epo-widget-lib.json +40 -3
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/index.js +16 -16
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,18 +16,55 @@
|
|
|
16
16
|
},
|
|
17
17
|
"filterTool": {
|
|
18
18
|
"title": "Herramienta de filtro",
|
|
19
|
-
"filter": "
|
|
19
|
+
"filter": "Filtro",
|
|
20
20
|
"whiteLight": "Luz blanca",
|
|
21
21
|
"prism": "Prisma",
|
|
22
|
-
"selectLabel": "
|
|
22
|
+
"selectLabel": "Selecciona un filtro:",
|
|
23
|
+
"light_out": "Luz bloqueada",
|
|
24
|
+
"light_filtered": "Luz filtrada",
|
|
23
25
|
"colors": {
|
|
24
26
|
"violet": "Violeta",
|
|
25
27
|
"blue": "Azul",
|
|
26
28
|
"green": "Verde",
|
|
27
29
|
"yellow": "Amarillo",
|
|
28
|
-
"orange": "
|
|
30
|
+
"orange": "Naranjo",
|
|
29
31
|
"red": "Rojo",
|
|
30
32
|
"none": "Ninguno"
|
|
31
33
|
}
|
|
34
|
+
},
|
|
35
|
+
"colorTool": {
|
|
36
|
+
"labels": {
|
|
37
|
+
"object_type": "Tipo de objeto:",
|
|
38
|
+
"object": "Objeto:",
|
|
39
|
+
"object_selected": "Objeto seleccionado:",
|
|
40
|
+
"filter": "Filtro",
|
|
41
|
+
"color": "Color",
|
|
42
|
+
"color_intensity": "Intensidad de color"
|
|
43
|
+
},
|
|
44
|
+
"actions": {
|
|
45
|
+
"select_an_object": "Selecciona un objeto",
|
|
46
|
+
"select_filter": "Selecciona un filtro",
|
|
47
|
+
"reset": "Reiniciar",
|
|
48
|
+
"export": "Exportar"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"source_selector": {
|
|
52
|
+
"messages": {
|
|
53
|
+
"success": "¡Muy bien!",
|
|
54
|
+
"failure": "Inténtalo de nuevo."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"camera_filter": {
|
|
58
|
+
"title": "Rangos de los filtros de la cámara LSST del Observatorio Rubin",
|
|
59
|
+
"labels": {
|
|
60
|
+
"select": "Seleccione uno de los filtros Rubin",
|
|
61
|
+
"option": "Filtro {{band}}",
|
|
62
|
+
"option_none": "Ninguno",
|
|
63
|
+
"captured_range": "Espectro electromagnético capturado con el filtro {{filter}} aplicado",
|
|
64
|
+
"captured_range_no_filter": "Espectro electromagnético sin filtro aplicado.",
|
|
65
|
+
"ultraviolet": "Ultravioleta",
|
|
66
|
+
"visible": "Luz visible",
|
|
67
|
+
"infrared": "Infrarrojo"
|
|
68
|
+
}
|
|
32
69
|
}
|
|
33
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),f=require("./Reset/index.cjs"),m=require("./Export/index.cjs"),q=require("./styles.cjs"),A=require("react-i18next"),b=require("../utilities.cjs"),i=({actions:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),f=require("./Reset/index.cjs"),m=require("./Export/index.cjs"),q=require("./styles.cjs"),A=require("react-i18next"),b=require("../utilities.cjs"),i=({actions:c,isDisabled:l,selectedData:e,selectionCallback:s,canvas:u})=>{const{t:r}=A.useTranslation(),{name:a}=e,n=l||!b.areActionsActive(e);return t.jsx(q.Actions,{children:c.map((d,o)=>{switch(d){case"reset":return t.jsx(f.default,{isDisabled:n,selectedData:e,onResetCallback:x=>s&&s(x),children:r("colorTool.actions.reset")},o);case"export":return t.jsx(m.default,{isDisabled:n,canvas:u,filename:a,children:r("colorTool.actions.export")},o);case"save":return null;default:return null}})})};i.displayName="Widgets.ColorTool.Actions";const j=i;exports.default=j;
|
|
@@ -4,37 +4,37 @@ import d from "./Export/index.js";
|
|
|
4
4
|
import { Actions as A } from "./styles.js";
|
|
5
5
|
import { useTranslation as x } from "react-i18next";
|
|
6
6
|
import { areActionsActive as h } from "../utilities.js";
|
|
7
|
-
const
|
|
8
|
-
actions:
|
|
9
|
-
isDisabled:
|
|
7
|
+
const i = ({
|
|
8
|
+
actions: c,
|
|
9
|
+
isDisabled: a,
|
|
10
10
|
selectedData: o,
|
|
11
11
|
selectionCallback: t,
|
|
12
|
-
canvas:
|
|
12
|
+
canvas: l
|
|
13
13
|
}) => {
|
|
14
|
-
const { t:
|
|
15
|
-
return /* @__PURE__ */ r(A, { children:
|
|
14
|
+
const { t: s } = x(), { name: m } = o, e = a || !h(o);
|
|
15
|
+
return /* @__PURE__ */ r(A, { children: c.map((p, n) => {
|
|
16
16
|
switch (p) {
|
|
17
17
|
case "reset":
|
|
18
18
|
return /* @__PURE__ */ r(
|
|
19
19
|
f,
|
|
20
20
|
{
|
|
21
|
-
isDisabled:
|
|
21
|
+
isDisabled: e,
|
|
22
22
|
selectedData: o,
|
|
23
23
|
onResetCallback: (u) => t && t(u),
|
|
24
|
-
children:
|
|
24
|
+
children: s("colorTool.actions.reset")
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
n
|
|
27
27
|
);
|
|
28
28
|
case "export":
|
|
29
29
|
return /* @__PURE__ */ r(
|
|
30
30
|
d,
|
|
31
31
|
{
|
|
32
|
-
isDisabled:
|
|
33
|
-
canvas:
|
|
32
|
+
isDisabled: e,
|
|
33
|
+
canvas: l,
|
|
34
34
|
filename: m,
|
|
35
|
-
children: "
|
|
35
|
+
children: s("colorTool.actions.export")
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
n
|
|
38
38
|
);
|
|
39
39
|
case "save":
|
|
40
40
|
return null;
|
|
@@ -43,8 +43,8 @@ const n = ({
|
|
|
43
43
|
}
|
|
44
44
|
}) });
|
|
45
45
|
};
|
|
46
|
-
|
|
47
|
-
const
|
|
46
|
+
i.displayName = "Widgets.ColorTool.Actions";
|
|
47
|
+
const j = i;
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
j as default
|
|
50
50
|
};
|
|
@@ -856,7 +856,7 @@ export declare const FilterToggle: import("styled-components").IStyledComponent<
|
|
|
856
856
|
default?: boolean | undefined;
|
|
857
857
|
wrap?: string | undefined;
|
|
858
858
|
open?: boolean | undefined;
|
|
859
|
-
icon?: "Account" | "ArrowUpFromBracket" | "Backward" | "BackwardStep" | "Calendar" | "Cancel" | "CaretDown" | "CheckeredFlag" | "Checkmark" | "CheckmarkCircle" | "CircularLoader" | "Chevron" | "ChevronLeftElongated" | "ChevronRightElongated" | "ChevronThin" | "Close" | "CloseCircle" | "Cloud" | "Doc" | "Email" | "Expand" | "Eye" | "Facebook" | "FloppyDisk" | "Forward" | "ForwardStep" | "Globe" | "Google" | "Hamburger" | "Info" | "InfoCircle" | "Instagram" | "Lightbulb" | "LinkedIn" | "LockClosed" | "LockOpen" | "LogOut" | "Mail" | "Minus" | "Page" | "Pause" | "Phone" | "Pin" | "Play" | "Plus" | "QuestionCircle" | "RotateLeft" | "RotateLeftWithCenter" | "Search" | "ShareCopyUrl" | "ShareEmail" | "ShareFacebook" | "ShareToggle" | "ShareTwitter" | "Team" | "Temp" | "Thumbtack" | "Time" | "Timer" | "Twitter" | "User" | "UserInverted" | "Video" | "YouTube" | "Pdf" | "Word" | undefined;
|
|
859
|
+
icon?: "Account" | "ArrowUpFromBracket" | "Backward" | "BackwardStep" | "Calendar" | "Cancel" | "CaretDown" | "CheckeredFlag" | "Checkmark" | "CheckmarkCircle" | "CircularLoader" | "Chevron" | "ChevronLeftElongated" | "ChevronRightElongated" | "ChevronThin" | "Close" | "CloseCircle" | "Cloud" | "Doc" | "DocArrowRight" | "DocInverted" | "Email" | "Expand" | "Eye" | "Facebook" | "FloppyDisk" | "Forward" | "ForwardStep" | "Globe" | "Google" | "Hamburger" | "Info" | "InfoCircle" | "Instagram" | "Lightbulb" | "LinkedIn" | "LockClosed" | "LockOpen" | "LogOut" | "Mail" | "Minus" | "Page" | "Pause" | "Phone" | "Pin" | "Play" | "Plus" | "QuestionCircle" | "RotateLeft" | "RotateLeftWithCenter" | "Search" | "ShareCopyUrl" | "ShareEmail" | "ShareFacebook" | "ShareToggle" | "ShareTwitter" | "Team" | "Temp" | "Thumbtack" | "Time" | "Timer" | "Twitter" | "User" | "UserInverted" | "Video" | "YouTube" | "Pdf" | "Word" | undefined;
|
|
860
860
|
multiple?: boolean | undefined;
|
|
861
861
|
disabled?: boolean | undefined;
|
|
862
862
|
height?: string | number | undefined;
|
package/package.json
CHANGED