@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.
@@ -52,7 +52,8 @@
52
52
  "actions": {
53
53
  "select_an_object": "Select an object",
54
54
  "select_filter": "Select a filter",
55
- "reset": "Reset"
55
+ "reset": "Reset",
56
+ "export": "Export"
56
57
  }
57
58
  },
58
59
  "source_selector": {
@@ -16,18 +16,55 @@
16
16
  },
17
17
  "filterTool": {
18
18
  "title": "Herramienta de filtro",
19
- "filter": "El filtro",
19
+ "filter": "Filtro",
20
20
  "whiteLight": "Luz blanca",
21
21
  "prism": "Prisma",
22
- "selectLabel": "Seleccione un filtro:",
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": "Naranja",
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:o,isDisabled:c,selectedData:e,selectionCallback:s,canvas:u})=>{const{t:l}=A.useTranslation(),{name:a}=e,r=c||!b.areActionsActive(e);return t.jsx(q.Actions,{children:o.map((d,n)=>{switch(d){case"reset":return t.jsx(f.default,{isDisabled:r,selectedData:e,onResetCallback:x=>s&&s(x),children:l("colorTool.actions.reset")},n);case"export":return t.jsx(m.default,{isDisabled:r,canvas:u,filename:a,children:"Export"},n);case"save":return null;default:return null}})})};i.displayName="Widgets.ColorTool.Actions";const j=i;exports.default=j;
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 n = ({
8
- actions: i,
9
- isDisabled: c,
7
+ const i = ({
8
+ actions: c,
9
+ isDisabled: a,
10
10
  selectedData: o,
11
11
  selectionCallback: t,
12
- canvas: a
12
+ canvas: l
13
13
  }) => {
14
- const { t: l } = x(), { name: m } = o, s = c || !h(o);
15
- return /* @__PURE__ */ r(A, { children: i.map((p, e) => {
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: s,
21
+ isDisabled: e,
22
22
  selectedData: o,
23
23
  onResetCallback: (u) => t && t(u),
24
- children: l("colorTool.actions.reset")
24
+ children: s("colorTool.actions.reset")
25
25
  },
26
- e
26
+ n
27
27
  );
28
28
  case "export":
29
29
  return /* @__PURE__ */ r(
30
30
  d,
31
31
  {
32
- isDisabled: s,
33
- canvas: a,
32
+ isDisabled: e,
33
+ canvas: l,
34
34
  filename: m,
35
- children: "Export"
35
+ children: s("colorTool.actions.export")
36
36
  },
37
- e
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
- n.displayName = "Widgets.ColorTool.Actions";
47
- const g = n;
46
+ i.displayName = "Widgets.ColorTool.Actions";
47
+ const j = i;
48
48
  export {
49
- g as default
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubin-epo/epo-widget-lib",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "Rubin Observatory Education & Public Outreach team React scientific and educational widgets.",
5
5
  "author": "Rubin EPO",
6
6
  "license": "MIT",