@macrostrat/column-views 1.0.0 → 1.0.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{age-axis.7ce58d66.js → esm/age-axis.64c509ee.js} +11 -11
  3. package/dist/{age-axis.7ce58d66.js.map → esm/age-axis.64c509ee.js.map} +1 -1
  4. package/dist/{boxes.6d3192e6.js → esm/boxes.13968b76.js} +26 -26
  5. package/dist/{boxes.6d3192e6.js.map → esm/boxes.13968b76.js.map} +1 -1
  6. package/dist/{boxes.module.dd631fe3.css → esm/boxes.module.28873d08.css} +1 -1
  7. package/dist/{boxes.module.dd631fe3.css.map → esm/boxes.module.28873d08.css.map} +1 -1
  8. package/dist/{boxes.module.998ff312.js → esm/boxes.module.605bdcd6.js} +1 -1
  9. package/dist/{boxes.module.998ff312.js.map → esm/boxes.module.605bdcd6.js.map} +1 -1
  10. package/dist/esm/carbon-isotopes.3b502a9e.js +11 -0
  11. package/dist/{carbon-isotopes.6d9bddcf.js.map → esm/carbon-isotopes.3b502a9e.js.map} +1 -1
  12. package/dist/{column.e35a471f.js → esm/column.97e31037.js} +21 -21
  13. package/dist/{column.e35a471f.js.map → esm/column.97e31037.js.map} +1 -1
  14. package/dist/{column.e901b5d4.js → esm/column.db058031.js} +17 -17
  15. package/dist/{column.e901b5d4.js.map → esm/column.db058031.js.map} +1 -1
  16. package/dist/{column.module.35ba04e7.js → esm/column.module.7f47d25a.js} +1 -1
  17. package/dist/{column.module.35ba04e7.js.map → esm/column.module.7f47d25a.js.map} +1 -1
  18. package/dist/{column.module.2e29259c.js → esm/column.module.9b8ce99d.js} +1 -1
  19. package/dist/{column.module.2e29259c.js.map → esm/column.module.9b8ce99d.js.map} +1 -1
  20. package/dist/{column.module.c9df6edf.css → esm/column.module.b5e18f0c.css} +1 -1
  21. package/dist/{column.module.c9df6edf.css.map → esm/column.module.b5e18f0c.css.map} +1 -1
  22. package/dist/{column.module.35184ea7.css → esm/column.module.cbb072df.css} +1 -1
  23. package/dist/{column.module.35184ea7.css.map → esm/column.module.cbb072df.css.map} +1 -1
  24. package/dist/{composite.494beffc.js → esm/composite.608a4ca2.js} +20 -20
  25. package/dist/{composite.494beffc.js.map → esm/composite.608a4ca2.js.map} +1 -1
  26. package/dist/{composite.module.6359deba.js → esm/composite.module.0638e7ee.js} +1 -1
  27. package/dist/{composite.module.6359deba.js.map → esm/composite.module.0638e7ee.js.map} +1 -1
  28. package/dist/esm/composite.module.69a38fd1.css +4 -0
  29. package/dist/{composite.module.5cc0e747.css.map → esm/composite.module.69a38fd1.css.map} +1 -1
  30. package/dist/{core.f3824dd8.js → esm/core.4db8e452.js} +15 -15
  31. package/dist/{core.f3824dd8.js.map → esm/core.4db8e452.js.map} +1 -1
  32. package/dist/{data-area.f9bb9ad9.js → esm/data-area.daff8da0.js} +15 -15
  33. package/dist/{data-area.f9bb9ad9.js.map → esm/data-area.daff8da0.js.map} +1 -1
  34. package/dist/{data-provider.61ef7f9a.js → esm/data-provider.1506eb64.js} +8 -8
  35. package/dist/{data-provider.61ef7f9a.js.map → esm/data-provider.1506eb64.js.map} +1 -1
  36. package/dist/{helpers.2af05ee4.js → esm/helpers.8a03cfc7.js} +6 -6
  37. package/dist/{helpers.2af05ee4.js.map → esm/helpers.8a03cfc7.js.map} +1 -1
  38. package/dist/{index.js → esm/index.js} +8 -8
  39. package/dist/{index.module.de76feb2.css → esm/index.module.0844afd8.css} +1 -1
  40. package/dist/{index.module.de76feb2.css.map → esm/index.module.0844afd8.css.map} +1 -1
  41. package/dist/{index.module.8fad0020.js → esm/index.module.24fe3a2e.js} +1 -1
  42. package/dist/{index.module.8fad0020.js.map → esm/index.module.24fe3a2e.js.map} +1 -1
  43. package/dist/{isotopes-column.b5442b4d.js → esm/isotopes-column.7cb5cc45.js} +33 -33
  44. package/dist/{isotopes-column.b5442b4d.js.map → esm/isotopes-column.7cb5cc45.js.map} +1 -1
  45. package/dist/{layers.946aaa37.js → esm/layers.ad5fd25d.js} +31 -31
  46. package/dist/{layers.946aaa37.js.map → esm/layers.ad5fd25d.js.map} +1 -1
  47. package/dist/{map.e782010f.js → esm/map.7aa26f17.js} +17 -17
  48. package/dist/{map.e782010f.js.map → esm/map.7aa26f17.js.map} +1 -1
  49. package/dist/{names.ab14789e.js → esm/names.f6a4e9a4.js} +11 -11
  50. package/dist/{names.ab14789e.js.map → esm/names.f6a4e9a4.js.map} +1 -1
  51. package/dist/{providers.abcb2cbe.js → esm/providers.cd1e652f.js} +7 -7
  52. package/dist/{providers.abcb2cbe.js.map → esm/providers.cd1e652f.js.map} +1 -1
  53. package/dist/{resolvers.2949c4c0.js → esm/resolvers.b5c82b78.js} +1 -1
  54. package/dist/{resolvers.2949c4c0.js.map → esm/resolvers.b5c82b78.js.map} +1 -1
  55. package/dist/{section.6f6fc929.js → esm/section.2513d610.js} +19 -19
  56. package/dist/{section.6f6fc929.js.map → esm/section.2513d610.js.map} +1 -1
  57. package/dist/{selection-popover.7e008544.js → esm/selection-popover.17d1bd55.js} +9 -9
  58. package/dist/{selection-popover.7e008544.js.map → esm/selection-popover.17d1bd55.js.map} +1 -1
  59. package/dist/{selection-popover.module.2732ebc0.css → esm/selection-popover.module.0a701258.css} +1 -1
  60. package/dist/{selection-popover.module.2732ebc0.css.map → esm/selection-popover.module.0a701258.css.map} +1 -1
  61. package/dist/{selection-popover.module.fdbfb40e.js → esm/selection-popover.module.e22f5183.js} +1 -1
  62. package/dist/{selection-popover.module.fdbfb40e.js.map → esm/selection-popover.module.e22f5183.js.map} +1 -1
  63. package/dist/{selection.add9f8b0.js → esm/selection.bbf26d0e.js} +23 -23
  64. package/dist/{selection.add9f8b0.js.map → esm/selection.bbf26d0e.js.map} +1 -1
  65. package/dist/{store.c5271371.js → esm/store.25eaa168.js} +6 -6
  66. package/dist/{store.c5271371.js.map → esm/store.25eaa168.js.map} +1 -1
  67. package/dist/{types.ff938b22.js → esm/types.f016e032.js} +1 -1
  68. package/dist/{types.ff938b22.js.map → esm/types.f016e032.js.map} +1 -1
  69. package/dist/{unit-details.0c1edd00.js → esm/unit-details.56ff8b70.js} +30 -30
  70. package/dist/{unit-details.0c1edd00.js.map → esm/unit-details.56ff8b70.js.map} +1 -1
  71. package/dist/{units.5ec6a44c.js → esm/units.361088d4.js} +13 -13
  72. package/dist/{units.5ec6a44c.js.map → esm/units.361088d4.js.map} +1 -1
  73. package/dist/node/index.js +2 -0
  74. package/dist/node/index.js.map +1 -0
  75. package/package.json +19 -10
  76. package/dist/carbon-isotopes.6d9bddcf.js +0 -11
  77. package/dist/composite.module.5cc0e747.css +0 -4
  78. /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
  79. /package/dist/{index.d.ts.map → esm/index.d.ts.map} +0 -0
  80. /package/dist/{index.js.map → esm/index.js.map} +0 -0
@@ -1,12 +1,12 @@
1
- import "./index.module.de76feb2.css";
2
- import $33VLW$indexmodule8fad0020js from "./index.module.8fad0020.js";
3
- import {useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309} from "./selection.add9f8b0.js";
4
- import {useMacrostratUnits as $1fcb9b8d7da394a3$export$6fb40844db555b2} from "./store.c5271371.js";
5
- import $33VLW$macrostrathyper from "@macrostrat/hyper";
6
- import {JSONView as $33VLW$JSONView} from "@macrostrat/ui-components";
7
- import {Button as $33VLW$Button} from "@blueprintjs/core";
8
- import {useState as $33VLW$useState} from "react";
9
- import {DataField as $33VLW$DataField, LithologyList as $33VLW$LithologyList, EnvironmentsList as $33VLW$EnvironmentsList, ItemList as $33VLW$ItemList, Interval as $33VLW$Interval} from "@macrostrat/data-components";
1
+ import "./index.module.0844afd8.css";
2
+ import $gxhZq$indexmodule24fe3a2ejs from "./index.module.24fe3a2e.js";
3
+ import {useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309} from "./selection.bbf26d0e.js";
4
+ import {useMacrostratUnits as $1fcb9b8d7da394a3$export$6fb40844db555b2} from "./store.25eaa168.js";
5
+ import $gxhZq$macrostrathyper from "@macrostrat/hyper";
6
+ import {JSONView as $gxhZq$JSONView} from "@macrostrat/ui-components";
7
+ import {Button as $gxhZq$Button} from "@blueprintjs/core";
8
+ import {useState as $gxhZq$useState} from "react";
9
+ import {DataField as $gxhZq$DataField, LithologyList as $gxhZq$LithologyList, EnvironmentsList as $gxhZq$EnvironmentsList, ItemList as $gxhZq$ItemList, Interval as $gxhZq$Interval} from "@macrostrat/data-components";
10
10
 
11
11
 
12
12
  function $parcel$interopDefault(a) {
@@ -20,11 +20,11 @@ function $parcel$interopDefault(a) {
20
20
 
21
21
 
22
22
 
23
- const $5e9557c2513b08ab$var$h = (0, $33VLW$macrostrathyper).styled((0, ($parcel$interopDefault($33VLW$indexmodule8fad0020js))));
23
+ const $5e9557c2513b08ab$var$h = (0, $gxhZq$macrostrathyper).styled((0, ($parcel$interopDefault($gxhZq$indexmodule24fe3a2ejs))));
24
24
  function $5e9557c2513b08ab$export$fbd245232df17557({ unit: unit, onClose: onClose }) {
25
- const [showJSON, setShowJSON] = (0, $33VLW$useState)(false);
25
+ const [showJSON, setShowJSON] = (0, $gxhZq$useState)(false);
26
26
  let content = null;
27
- if (showJSON) content = $5e9557c2513b08ab$var$h((0, $33VLW$JSONView), {
27
+ if (showJSON) content = $5e9557c2513b08ab$var$h((0, $gxhZq$JSONView), {
28
28
  data: unit,
29
29
  showRoot: false
30
30
  });
@@ -37,7 +37,7 @@ function $5e9557c2513b08ab$export$fbd245232df17557({ unit: unit, onClose: onClos
37
37
  title: unit.unit_name,
38
38
  id: unit.unit_id,
39
39
  actions: [
40
- $5e9557c2513b08ab$var$h((0, $33VLW$Button), {
40
+ $5e9557c2513b08ab$var$h((0, $gxhZq$Button), {
41
41
  icon: "code",
42
42
  small: true,
43
43
  minimal: true,
@@ -59,7 +59,7 @@ function $5e9557c2513b08ab$export$fc503c39cc5cff43({ title: title, id: id, onClo
59
59
  $5e9557c2513b08ab$var$h("div.spacer"),
60
60
  $5e9557c2513b08ab$var$h.if(id != null)("code", id),
61
61
  actions,
62
- $5e9557c2513b08ab$var$h.if(onClose != null)((0, $33VLW$Button), {
62
+ $5e9557c2513b08ab$var$h.if(onClose != null)((0, $gxhZq$Button), {
63
63
  icon: "cross",
64
64
  minimal: true,
65
65
  small: true,
@@ -73,15 +73,15 @@ function $5e9557c2513b08ab$var$UnitDetailsContent({ unit: unit }) {
73
73
  let outcrop = unit.outcrop;
74
74
  if (outcrop == "both") outcrop = "surface and subsurface";
75
75
  return $5e9557c2513b08ab$var$h("div.unit-details-content", [
76
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
76
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
77
77
  label: "Thickness",
78
78
  value: `${unit.min_thick}\u{2013}${unit.max_thick}`,
79
79
  unit: "m"
80
80
  }),
81
- $5e9557c2513b08ab$var$h((0, $33VLW$LithologyList), {
81
+ $5e9557c2513b08ab$var$h((0, $gxhZq$LithologyList), {
82
82
  lithologies: unit.lith
83
83
  }),
84
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
84
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
85
85
  label: "Age range",
86
86
  value: `${unit.b_age}\u{2013}${unit.t_age}`,
87
87
  unit: "Ma"
@@ -89,27 +89,27 @@ function $5e9557c2513b08ab$var$UnitDetailsContent({ unit: unit }) {
89
89
  $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$IntervalField, {
90
90
  unit: unit
91
91
  }),
92
- $5e9557c2513b08ab$var$h((0, $33VLW$EnvironmentsList), {
92
+ $5e9557c2513b08ab$var$h((0, $gxhZq$EnvironmentsList), {
93
93
  environments: unit.environ
94
94
  }),
95
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
95
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
96
96
  label: "Outcrop",
97
97
  value: outcrop
98
98
  }),
99
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
99
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
100
100
  label: "Stratigraphic name"
101
101
  }, $5e9557c2513b08ab$var$h("span.strat-name-id", unit.strat_name_id)),
102
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
102
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
103
103
  label: "Above"
104
104
  }, $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$UnitIDList, {
105
105
  units: unit.units_above
106
106
  })),
107
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
107
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
108
108
  label: "Below"
109
109
  }, $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$UnitIDList, {
110
110
  units: unit.units_below
111
111
  })),
112
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
112
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
113
113
  label: "Color"
114
114
  }, $5e9557c2513b08ab$var$h("span.color-swatch", {
115
115
  style: {
@@ -134,7 +134,7 @@ function $5e9557c2513b08ab$var$UnitIDList({ units: units }) {
134
134
  };
135
135
  tag = "a";
136
136
  }
137
- return $5e9557c2513b08ab$var$h((0, $33VLW$ItemList), {
137
+ return $5e9557c2513b08ab$var$h((0, $gxhZq$ItemList), {
138
138
  className: "unit-id-list"
139
139
  }, [
140
140
  u1.map((unit)=>{
@@ -147,7 +147,7 @@ function $5e9557c2513b08ab$var$UnitIDList({ units: units }) {
147
147
  }
148
148
  function $5e9557c2513b08ab$var$IntervalField({ unit: unit }) {
149
149
  return $5e9557c2513b08ab$var$h([
150
- $5e9557c2513b08ab$var$h((0, $33VLW$DataField), {
150
+ $5e9557c2513b08ab$var$h((0, $gxhZq$DataField), {
151
151
  label: "Intervals"
152
152
  }, $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$IntervalProportions, {
153
153
  unit: unit
@@ -160,19 +160,19 @@ function $5e9557c2513b08ab$var$IntervalProportions({ unit: unit }) {
160
160
  let b_prop = unit.b_prop ?? 0;
161
161
  let t_prop = unit.t_prop ?? 1;
162
162
  if (i0 === i1 && b_prop === 0 && t_prop === 1) // We have a single interval with undefined proportions
163
- return $5e9557c2513b08ab$var$h((0, $33VLW$Interval), {
163
+ return $5e9557c2513b08ab$var$h((0, $gxhZq$Interval), {
164
164
  interval: {
165
165
  id: i0,
166
166
  name: unit.b_int_name
167
167
  }
168
168
  });
169
- return $5e9557c2513b08ab$var$h((0, $33VLW$ItemList), {
169
+ return $5e9557c2513b08ab$var$h((0, $gxhZq$ItemList), {
170
170
  className: "interval-proportions"
171
171
  }, [
172
172
  $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$Proportion, {
173
173
  value: b_prop
174
174
  }),
175
- $5e9557c2513b08ab$var$h.if(i0 != i1)((0, $33VLW$Interval), {
175
+ $5e9557c2513b08ab$var$h.if(i0 != i1)((0, $gxhZq$Interval), {
176
176
  interval: {
177
177
  id: i0,
178
178
  name: unit.b_int_name
@@ -183,7 +183,7 @@ function $5e9557c2513b08ab$var$IntervalProportions({ unit: unit }) {
183
183
  $5e9557c2513b08ab$var$h($5e9557c2513b08ab$var$Proportion, {
184
184
  value: t_prop
185
185
  }),
186
- $5e9557c2513b08ab$var$h((0, $33VLW$Interval), {
186
+ $5e9557c2513b08ab$var$h((0, $gxhZq$Interval), {
187
187
  interval: {
188
188
  id: i1,
189
189
  name: unit.t_int_name
@@ -206,4 +206,4 @@ function $5e9557c2513b08ab$var$Proportion({ value: value }) {
206
206
 
207
207
 
208
208
  export {$5e9557c2513b08ab$export$fbd245232df17557 as UnitDetailsPanel, $5e9557c2513b08ab$export$fc503c39cc5cff43 as LegendPanelHeader};
209
- //# sourceMappingURL=unit-details.0c1edd00.js.map
209
+ //# sourceMappingURL=unit-details.56ff8b70.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;AAeA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA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d,IAAI,SAAS,GACX,UAAU;SACL,IAAI,SAAS,GAClB,UAAU;SAEV,UAAU,uCAAiB,QAAQ,OAAO;IAG5C,OAAO,wBAAE,mBAAmB;AAC9B","sources":["packages/column-views/src/unit-details/index.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport styles from \"./index.module.sass\";\nimport { JSONView } from \"@macrostrat/ui-components\";\nimport { Button } from \"@blueprintjs/core\";\nimport { useState } from \"react\";\nimport {\n DataField,\n EnvironmentsList,\n Interval,\n ItemList,\n LithologyList,\n} from \"@macrostrat/data-components\";\nimport { useUnitSelectionDispatch } from \"../units/selection\";\nimport { useMacrostratUnits } from \"../store\";\n\nconst h = hyper.styled(styles);\n\nexport function UnitDetailsPanel({\n unit,\n onClose,\n}: {\n unit: any;\n onClose?: any;\n}) {\n const [showJSON, setShowJSON] = useState(false);\n\n let content = null;\n if (showJSON) {\n content = h(JSONView, { data: unit, showRoot: false });\n } else {\n content = h(UnitDetailsContent, { unit });\n }\n\n return h(\"div.unit-details-panel\", [\n h(LegendPanelHeader, {\n onClose,\n title: unit.unit_name,\n id: unit.unit_id,\n actions: [\n h(Button, {\n icon: \"code\",\n small: true,\n minimal: true,\n className: \"json-view-toggle\",\n onClick() {\n setShowJSON(!showJSON);\n },\n }),\n ],\n }),\n h(\"div.unit-details-content\", [content]),\n ]);\n}\n\nexport function LegendPanelHeader({ title, id, onClose, actions = null }) {\n return h(\"header.legend-panel-header\", [\n h.if(title != null)(\"h3\", title),\n h(\"div.spacer\"),\n h.if(id != null)(\"code\", id),\n actions,\n h.if(onClose != null)(Button, {\n icon: \"cross\",\n minimal: true,\n small: true,\n onClick() {\n onClose();\n },\n }),\n ]);\n}\n\nfunction UnitDetailsContent({ unit }) {\n let outcrop = unit.outcrop;\n if (outcrop == \"both\") {\n outcrop = \"surface and subsurface\";\n }\n\n return h(\"div.unit-details-content\", [\n h(DataField, {\n label: \"Thickness\",\n value: `${unit.min_thick}–${unit.max_thick}`,\n unit: \"m\",\n }),\n h(LithologyList, { lithologies: unit.lith }),\n h(DataField, {\n label: \"Age range\",\n value: `${unit.b_age}–${unit.t_age}`,\n unit: \"Ma\",\n }),\n h(IntervalField, { unit }),\n h(EnvironmentsList, { environments: unit.environ }),\n h(DataField, { label: \"Outcrop\", value: outcrop }),\n h(\n DataField,\n {\n label: \"Stratigraphic name\",\n },\n h(\"span.strat-name-id\", unit.strat_name_id)\n ),\n h(\n DataField,\n { label: \"Above\" },\n h(UnitIDList, { units: unit.units_above })\n ),\n h(\n DataField,\n { label: \"Below\" },\n h(UnitIDList, { units: unit.units_below })\n ),\n h(\n DataField,\n { label: \"Color\" },\n h(\"span.color-swatch\", { style: { backgroundColor: unit.color } })\n ),\n ]);\n}\n\nfunction UnitIDList({ units }) {\n const u1 = units.filter((d) => d != 0);\n const dispatch = useUnitSelectionDispatch();\n const allUnits = useMacrostratUnits();\n\n if (u1.length === 0) {\n return h(\"span.no-units\", \"None\");\n }\n\n let onClickHandler = null;\n let tag = \"span\";\n if (dispatch != null) {\n onClickHandler = (id: number) => (evt) => {\n console.log(units);\n const unit = allUnits.find((d) => d.unit_id == id);\n dispatch(unit, null, null);\n evt.stopPropagation();\n };\n tag = \"a\";\n }\n\n return h(ItemList, { className: \"unit-id-list\" }, [\n u1.map((unit) => {\n return h(\n tag,\n { className: \"unit-id\", onClick: onClickHandler?.(unit) },\n unit\n );\n }),\n ]);\n}\n\nfunction IntervalField({ unit }) {\n return h([\n h(\n DataField,\n {\n label: \"Intervals\",\n },\n h(IntervalProportions, { unit })\n ),\n ]);\n}\n\nfunction IntervalProportions({ unit }) {\n const i0 = unit.b_int_id;\n const i1 = unit.t_int_id;\n let b_prop = unit.b_prop ?? 0;\n let t_prop = unit.t_prop ?? 1;\n\n if (i0 === i1 && b_prop === 0 && t_prop === 1) {\n // We have a single interval with undefined proportions\n return h(Interval, {\n interval: {\n id: i0,\n name: unit.b_int_name,\n },\n });\n }\n\n return h(ItemList, { className: \"interval-proportions\" }, [\n h(Proportion, { value: b_prop }),\n h.if(i0 != i1)(Interval, {\n interval: {\n id: i0,\n name: unit.b_int_name,\n },\n proportion: b_prop,\n }),\n h(\"span.sep\", \"to\"),\n h(Proportion, { value: t_prop }),\n h(Interval, {\n interval: {\n id: i1,\n name: unit.t_int_name,\n },\n proportion: t_prop,\n }),\n ]);\n}\n\nconst formatProportion = (d) => {\n if (d == null) return null;\n return d.toFixed(1);\n};\n\nfunction Proportion({ value }) {\n let content = null;\n if (value == 0) {\n content = \"base\";\n } else if (value == 1) {\n content = \"top\";\n } else {\n content = formatProportion(value * 100) + \"%\";\n }\n\n return h(\"span.proportion\", content);\n}\n"],"names":[],"version":3,"file":"unit-details.0c1edd00.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;AAeA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA,GAAA,uEAAK;AAErB,SAAS,0CAAiB,QAC/B,IAAI,WACJ,OAAO,EAIR;IACC,MAAM,CAAC,UAAU,YAAY,GAAG,CAAA,GAAA,eAAO,EAAE;IAEzC,IAAI,UAAU;IACd,IAAI,UACF,UAAU,wBAAE,CAAA,GAAA,eAAO,GAAG;QAAE,MAAM;QAAM,UAAU;IAAM;SAEpD,UAAU,wBAAE,0CAAoB;cAAE;IAAK;IAGzC,OAAO,wBAAE,0BAA0B;QACjC,wBAAE,2CAAmB;qBACnB;YACA,OAAO,KAAK,SAAS;YACrB,IAAI,KAAK,OAAO;YAChB,SAAS;gBACP,wBAAE,CAAA,GAAA,aAAK,GAAG;oBACR,MAAM;oBACN,OAAO;oBACP,SAAS;oBACT,WAAW;oBACX;wBACE,YAAY,CAAC;oBACf;gBACF;aACD;QACH;QACA,wBAAE,4BAA4B;YAAC;SAAQ;KACxC;AACH;AAEO,SAAS,0CAAkB,SAAE,KAAK,MAAE,EAAE,WAAE,OAAO,WAAE,UAAU,MAAM;IACtE,OAAO,wBAAE,8BAA8B;QACrC,wBAAE,EAAE,CAAC,S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A,GAAA,eAAO,GAAG;QAAE,WAAW;IAAuB,GAAG;QACxD,wBAAE,kCAAY;YAAE,OAAO;QAAO;QAC9B,wBAAE,EAAE,CAAC,MAAM,IAAI,CAAA,GAAA,eAAO,GAAG;YACvB,UAAU;gBACR,IAAI;gBACJ,MAAM,KAAK,UAAU;YACvB;YACA,YAAY;QACd;QACA,wBAAE,YAAY;QACd,wBAAE,kCAAY;YAAE,OAAO;QAAO;QAC9B,wBAAE,CAAA,GAAA,eAAO,GAAG;YACV,UAAU;gBACR,IAAI;gBACJ,MAAM,KAAK,UAAU;YACvB;YACA,YAAY;QACd;KACD;AACH;AAEA,MAAM,yCAAmB,CAAC;IACxB,IAAI,KAAK,MAAM,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC;AACnB;AAEA,SAAS,iCAAW,SAAE,KAAK,EAAE;IAC3B,IAAI,UAAU;IACd,IAAI,SAAS,GACX,UAAU;SACL,IAAI,SAAS,GAClB,UAAU;SAEV,UAAU,uCAAiB,QAAQ,OAAO;IAG5C,OAAO,wBAAE,mBAAmB;AAC9B","sources":["packages/column-views/src/unit-details/index.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport styles from \"./index.module.sass\";\nimport { JSONView } from \"@macrostrat/ui-components\";\nimport { Button } from \"@blueprintjs/core\";\nimport { useState } from \"react\";\nimport {\n DataField,\n EnvironmentsList,\n Interval,\n ItemList,\n LithologyList,\n} from \"@macrostrat/data-components\";\nimport { useUnitSelectionDispatch } from \"../units/selection\";\nimport { useMacrostratUnits } from \"../store\";\n\nconst h = hyper.styled(styles);\n\nexport function UnitDetailsPanel({\n unit,\n onClose,\n}: {\n unit: any;\n onClose?: any;\n}) {\n const [showJSON, setShowJSON] = useState(false);\n\n let content = null;\n if (showJSON) {\n content = h(JSONView, { data: unit, showRoot: false });\n } else {\n content = h(UnitDetailsContent, { unit });\n }\n\n return h(\"div.unit-details-panel\", [\n h(LegendPanelHeader, {\n onClose,\n title: unit.unit_name,\n id: unit.unit_id,\n actions: [\n h(Button, {\n icon: \"code\",\n small: true,\n minimal: true,\n className: \"json-view-toggle\",\n onClick() {\n setShowJSON(!showJSON);\n },\n }),\n ],\n }),\n h(\"div.unit-details-content\", [content]),\n ]);\n}\n\nexport function LegendPanelHeader({ title, id, onClose, actions = null }) {\n return h(\"header.legend-panel-header\", [\n h.if(title != null)(\"h3\", title),\n h(\"div.spacer\"),\n h.if(id != null)(\"code\", id),\n actions,\n h.if(onClose != null)(Button, {\n icon: \"cross\",\n minimal: true,\n small: true,\n onClick() {\n onClose();\n },\n }),\n ]);\n}\n\nfunction UnitDetailsContent({ unit }) {\n let outcrop = unit.outcrop;\n if (outcrop == \"both\") {\n outcrop = \"surface and subsurface\";\n }\n\n return h(\"div.unit-details-content\", [\n h(DataField, {\n label: \"Thickness\",\n value: `${unit.min_thick}–${unit.max_thick}`,\n unit: \"m\",\n }),\n h(LithologyList, { lithologies: unit.lith }),\n h(DataField, {\n label: \"Age range\",\n value: `${unit.b_age}–${unit.t_age}`,\n unit: \"Ma\",\n }),\n h(IntervalField, { unit }),\n h(EnvironmentsList, { environments: unit.environ }),\n h(DataField, { label: \"Outcrop\", value: outcrop }),\n h(\n DataField,\n {\n label: \"Stratigraphic name\",\n },\n h(\"span.strat-name-id\", unit.strat_name_id)\n ),\n h(\n DataField,\n { label: \"Above\" },\n h(UnitIDList, { units: unit.units_above })\n ),\n h(\n DataField,\n { label: \"Below\" },\n h(UnitIDList, { units: unit.units_below })\n ),\n h(\n DataField,\n { label: \"Color\" },\n h(\"span.color-swatch\", { style: { backgroundColor: unit.color } })\n ),\n ]);\n}\n\nfunction UnitIDList({ units }) {\n const u1 = units.filter((d) => d != 0);\n const dispatch = useUnitSelectionDispatch();\n const allUnits = useMacrostratUnits();\n\n if (u1.length === 0) {\n return h(\"span.no-units\", \"None\");\n }\n\n let onClickHandler = null;\n let tag = \"span\";\n if (dispatch != null) {\n onClickHandler = (id: number) => (evt) => {\n console.log(units);\n const unit = allUnits.find((d) => d.unit_id == id);\n dispatch(unit, null, null);\n evt.stopPropagation();\n };\n tag = \"a\";\n }\n\n return h(ItemList, { className: \"unit-id-list\" }, [\n u1.map((unit) => {\n return h(\n tag,\n { className: \"unit-id\", onClick: onClickHandler?.(unit) },\n unit\n );\n }),\n ]);\n}\n\nfunction IntervalField({ unit }) {\n return h([\n h(\n DataField,\n {\n label: \"Intervals\",\n },\n h(IntervalProportions, { unit })\n ),\n ]);\n}\n\nfunction IntervalProportions({ unit }) {\n const i0 = unit.b_int_id;\n const i1 = unit.t_int_id;\n let b_prop = unit.b_prop ?? 0;\n let t_prop = unit.t_prop ?? 1;\n\n if (i0 === i1 && b_prop === 0 && t_prop === 1) {\n // We have a single interval with undefined proportions\n return h(Interval, {\n interval: {\n id: i0,\n name: unit.b_int_name,\n },\n });\n }\n\n return h(ItemList, { className: \"interval-proportions\" }, [\n h(Proportion, { value: b_prop }),\n h.if(i0 != i1)(Interval, {\n interval: {\n id: i0,\n name: unit.b_int_name,\n },\n proportion: b_prop,\n }),\n h(\"span.sep\", \"to\"),\n h(Proportion, { value: t_prop }),\n h(Interval, {\n interval: {\n id: i1,\n name: unit.t_int_name,\n },\n proportion: t_prop,\n }),\n ]);\n}\n\nconst formatProportion = (d) => {\n if (d == null) return null;\n return d.toFixed(1);\n};\n\nfunction Proportion({ value }) {\n let content = null;\n if (value == 0) {\n content = \"base\";\n } else if (value == 1) {\n content = \"top\";\n } else {\n content = formatProportion(value * 100) + \"%\";\n }\n\n return h(\"span.proportion\", content);\n}\n"],"names":[],"version":3,"file":"unit-details.56ff8b70.js.map"}
@@ -1,10 +1,10 @@
1
- import {UnitNamesColumn as $bc17276da4abb183$export$594d19cdd88f8c16} from "./names.ab14789e.js";
2
- import {UnitBoxes as $d254716a820e9c85$export$5d1cdfabe8dc8085} from "./boxes.6d3192e6.js";
3
- import {TrackedLabeledUnit as $8c8238faa5cde49c$export$f613830566442374, AnnotatedUnitsColumn as $8c8238faa5cde49c$export$d8c3f2fdd653a082, CompositeUnitsColumn as $8c8238faa5cde49c$export$a6684360fef0406e, CompositeUnitComponent as $8c8238faa5cde49c$export$1dfa200d57964eee} from "./composite.494beffc.js";
4
- import {MacrostratAxisKey as $faf1eba02aecac6a$export$6d217bb9de27dba7, transformAxisType as $faf1eba02aecac6a$export$ab2a19f8a72df19b} from "./types.ff938b22.js";
5
- import {useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309, useSelectedUnit as $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da, UnitSelectionProvider as $4d5d1c15f39f6a14$export$f19d75b1d4b676a4, useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34, ColumnNavProvider as $4d5d1c15f39f6a14$export$36fed9e0f93a8fde, UnitKeyboardNavigation as $4d5d1c15f39f6a14$export$70f5ee19650fc7d1} from "./selection.add9f8b0.js";
6
- import $1FQbq$macrostrathyper from "@macrostrat/hyper";
7
- import {LithologyColumn as $1FQbq$LithologyColumn} from "@macrostrat/column-components";
1
+ import {UnitNamesColumn as $bc17276da4abb183$export$594d19cdd88f8c16} from "./names.f6a4e9a4.js";
2
+ import {UnitBoxes as $d254716a820e9c85$export$5d1cdfabe8dc8085} from "./boxes.13968b76.js";
3
+ import {TrackedLabeledUnit as $8c8238faa5cde49c$export$f613830566442374, AnnotatedUnitsColumn as $8c8238faa5cde49c$export$d8c3f2fdd653a082, CompositeUnitsColumn as $8c8238faa5cde49c$export$a6684360fef0406e, CompositeUnitComponent as $8c8238faa5cde49c$export$1dfa200d57964eee} from "./composite.608a4ca2.js";
4
+ import {MacrostratAxisKey as $faf1eba02aecac6a$export$6d217bb9de27dba7, transformAxisType as $faf1eba02aecac6a$export$ab2a19f8a72df19b} from "./types.f016e032.js";
5
+ import {useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309, useSelectedUnit as $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da, UnitSelectionProvider as $4d5d1c15f39f6a14$export$f19d75b1d4b676a4, useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34, ColumnNavProvider as $4d5d1c15f39f6a14$export$36fed9e0f93a8fde, UnitKeyboardNavigation as $4d5d1c15f39f6a14$export$70f5ee19650fc7d1} from "./selection.bbf26d0e.js";
6
+ import $7H3th$macrostrathyper from "@macrostrat/hyper";
7
+ import {LithologyColumn as $7H3th$LithologyColumn} from "@macrostrat/column-components";
8
8
 
9
9
 
10
10
 
@@ -16,20 +16,20 @@ import {LithologyColumn as $1FQbq$LithologyColumn} from "@macrostrat/column-comp
16
16
  const $4c8184c4a7317749$export$3750278673318c9a = ({ width: width = 100 })=>{
17
17
  /*
18
18
  A column showing units with USGS color fill
19
- */ return (0, $1FQbq$macrostrathyper)((0, $1FQbq$LithologyColumn), {
19
+ */ return (0, $7H3th$macrostrathyper)((0, $7H3th$LithologyColumn), {
20
20
  width: width
21
- }, (0, $1FQbq$macrostrathyper)((0, $d254716a820e9c85$export$5d1cdfabe8dc8085)));
21
+ }, (0, $7H3th$macrostrathyper)((0, $d254716a820e9c85$export$5d1cdfabe8dc8085)));
22
22
  };
23
23
  const $4c8184c4a7317749$export$2006342ddaa547c6 = (props)=>{
24
24
  /*
25
25
  A column with units and names either
26
26
  overlapping or offset to the right
27
27
  */ const { columnWidth: columnWidth, width: width, gutterWidth: gutterWidth = 0, labelOffset: labelOffset = 30 } = props;
28
- return (0, $1FQbq$macrostrathyper)([
29
- (0, $1FQbq$macrostrathyper)($4c8184c4a7317749$export$3750278673318c9a, {
28
+ return (0, $7H3th$macrostrathyper)([
29
+ (0, $7H3th$macrostrathyper)($4c8184c4a7317749$export$3750278673318c9a, {
30
30
  width: columnWidth
31
31
  }),
32
- (0, $1FQbq$macrostrathyper)((0, $bc17276da4abb183$export$594d19cdd88f8c16), {
32
+ (0, $7H3th$macrostrathyper)((0, $bc17276da4abb183$export$594d19cdd88f8c16), {
33
33
  transform: `translate(${columnWidth + gutterWidth})`,
34
34
  paddingLeft: labelOffset,
35
35
  width: width - columnWidth - gutterWidth
@@ -39,4 +39,4 @@ const $4c8184c4a7317749$export$2006342ddaa547c6 = (props)=>{
39
39
 
40
40
 
41
41
  export {$4c8184c4a7317749$export$3750278673318c9a as UnitsColumn, $4c8184c4a7317749$export$2006342ddaa547c6 as SimpleUnitsColumn, $8c8238faa5cde49c$export$f613830566442374 as TrackedLabeledUnit, $8c8238faa5cde49c$export$d8c3f2fdd653a082 as AnnotatedUnitsColumn, $8c8238faa5cde49c$export$a6684360fef0406e as CompositeUnitsColumn, $8c8238faa5cde49c$export$1dfa200d57964eee as CompositeUnitComponent, $faf1eba02aecac6a$export$6d217bb9de27dba7 as MacrostratAxisKey, $faf1eba02aecac6a$export$ab2a19f8a72df19b as transformAxisType, $4d5d1c15f39f6a14$export$77a278d5ca56e309 as useUnitSelectionDispatch, $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da as useSelectedUnit, $4d5d1c15f39f6a14$export$f19d75b1d4b676a4 as UnitSelectionProvider, $4d5d1c15f39f6a14$export$91cb5ac808759b34 as useColumnNav, $4d5d1c15f39f6a14$export$36fed9e0f93a8fde as ColumnNavProvider, $4d5d1c15f39f6a14$export$70f5ee19650fc7d1 as UnitKeyboardNavigation};
42
- //# sourceMappingURL=units.5ec6a44c.js.map
42
+ //# sourceMappingURL=units.361088d4.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAMA,MAAM,4CAAc,CAAC,SAAE,QAAQ,KAAK;IAClC;;EAEA,GACA,OAAO,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,sBAAc,GAAG;eAAE;IAAM,GAAG,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,yCAAQ;AACjD;AAEA,MAAM,4CAAoB,CAAC;IACzB;;;EAGA,GACA,MAAM,eAAE,WAAW,SAAE,KAAK,eAAE,cAAc,gBAAG,cAAc,IAAI,GAAG;IAElE,OAAO,CAAA,GAAA,sBAAA,EAAE;QACP,CAAA,GAAA,sBAAA,EAAE,2CAAa;YACb,OAAO;QACT;QACA,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,yCAAc,GAAG;YACjB,WAAW,CAAC,UAAU,EAAE,cAAc,YAAY,CAAC,CAAC;YACpD,aAAa;YACb,OAAO,QAAQ,cAAc;QAC/B;KACD;AACH","sources":["packages/column-views/src/units/index.ts"],"sourcesContent":["import h from \"@macrostrat/hyper\";\nimport { LithologyColumn } from \"@macrostrat/column-components\";\nimport { UnitNamesColumn } from \"./names\";\nimport { ICompositeUnitProps } from \"./composite\";\nimport { UnitBoxes } from \"./boxes\";\n\nconst UnitsColumn = ({ width = 100 }) => {\n /*\n A column showing units with USGS color fill\n */\n return h(LithologyColumn, { width }, h(UnitBoxes));\n};\n\nconst SimpleUnitsColumn = (props: ICompositeUnitProps) => {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const { columnWidth, width, gutterWidth = 0, labelOffset = 30 } = props;\n\n return h([\n h(UnitsColumn, {\n width: columnWidth,\n }),\n h(UnitNamesColumn, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n }),\n ]);\n};\n\nexport { UnitsColumn, SimpleUnitsColumn };\nexport * from \"./composite\";\nexport * from \"./types\";\nexport * from \"./selection\";\n"],"names":[],"version":3,"file":"units.5ec6a44c.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAMA,MAAM,4CAAc,CAAC,SAAE,QAAQ,KAAK;IAClC;;EAEA,GACA,OAAO,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,sBAAc,GAAG;eAAE;IAAM,GAAG,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,yCAAQ;AACjD;AAEA,MAAM,4CAAoB,CAAC;IACzB;;;EAGA,GACA,MAAM,eAAE,WAAW,SAAE,KAAK,eAAE,cAAc,gBAAG,cAAc,IAAI,GAAG;IAElE,OAAO,CAAA,GAAA,sBAAA,EAAE;QACP,CAAA,GAAA,sBAAA,EAAE,2CAAa;YACb,OAAO;QACT;QACA,CAAA,GAAA,sBAAA,EAAE,CAAA,GAAA,yCAAc,GAAG;YACjB,WAAW,CAAC,UAAU,EAAE,cAAc,YAAY,CAAC,CAAC;YACpD,aAAa;YACb,OAAO,QAAQ,cAAc;QAC/B;KACD;AACH","sources":["packages/column-views/src/units/index.ts"],"sourcesContent":["import h from \"@macrostrat/hyper\";\nimport { LithologyColumn } from \"@macrostrat/column-components\";\nimport { UnitNamesColumn } from \"./names\";\nimport { ICompositeUnitProps } from \"./composite\";\nimport { UnitBoxes } from \"./boxes\";\n\nconst UnitsColumn = ({ width = 100 }) => {\n /*\n A column showing units with USGS color fill\n */\n return h(LithologyColumn, { width }, h(UnitBoxes));\n};\n\nconst SimpleUnitsColumn = (props: ICompositeUnitProps) => {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const { columnWidth, width, gutterWidth = 0, labelOffset = 30 } = props;\n\n return h([\n h(UnitsColumn, {\n width: columnWidth,\n }),\n h(UnitNamesColumn, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n }),\n ]);\n};\n\nexport { UnitsColumn, SimpleUnitsColumn };\nexport * from \"./composite\";\nexport * from \"./types\";\nexport * from \"./selection\";\n"],"names":[],"version":3,"file":"units.361088d4.js.map"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"","sources":["packages/column-views/src/index.ts"],"sourcesContent":["export * from \"./units\";\nexport * from \"./age-axis\";\nexport * from \"./carbon-isotopes\";\nexport * from \"./providers\";\nexport * from \"./helpers\";\nexport * from \"./map\";\nexport * from \"./column\";\n"],"names":[],"version":3,"file":"index.js.map","sourceRoot":"../../../../"}
package/package.json CHANGED
@@ -1,19 +1,28 @@
1
1
  {
2
2
  "name": "@macrostrat/column-views",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Data views for Macrostrat stratigraphic columns",
5
- "main": "dist/index.js",
6
5
  "type": "module",
7
6
  "source": "src/index.ts",
8
- "types": "dist/index.d.ts",
7
+ "main": "dist/esm/index.js",
8
+ "types": "dist/esm/index.d.ts",
9
+ "node": "dist/node/index.js",
9
10
  "sideEffects": [
10
11
  "**/*.css"
11
12
  ],
12
13
  "exports": {
13
14
  ".": {
14
15
  "source": "./src/index.ts",
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
16
+ "import": "./dist/esm/index.js",
17
+ "types": "./dist/esm/index.d.ts",
18
+ "node": "./dist/node/index.js"
19
+ }
20
+ },
21
+ "targets": {
22
+ "node": {
23
+ "engines": {
24
+ "node": ">=14"
25
+ }
17
26
  }
18
27
  },
19
28
  "scripts": {
@@ -21,13 +30,13 @@
21
30
  },
22
31
  "dependencies": {
23
32
  "@macrostrat/api-types": "^1.0.0",
24
- "@macrostrat/column-components": "^1.0.0",
25
- "@macrostrat/data-components": "^0.0.5",
33
+ "@macrostrat/column-components": "^1.0.2",
34
+ "@macrostrat/data-components": "^0.0.6",
26
35
  "@macrostrat/hyper": "^3.0.6",
27
36
  "@macrostrat/stratigraphy-utils": "^1.0.0",
28
- "@macrostrat/svg-map-components": "^1.0.0",
29
- "@macrostrat/timescale": "^2.1.0",
30
- "@macrostrat/ui-components": "^4.1.0",
37
+ "@macrostrat/svg-map-components": "^1.0.3",
38
+ "@macrostrat/timescale": "^2.1.1",
39
+ "@macrostrat/ui-components": "^4.1.1",
31
40
  "@types/chroma-js": "^3",
32
41
  "@types/d3-format": "^3",
33
42
  "@types/d3-geo": "^3",
@@ -1,11 +0,0 @@
1
- import {MeasurementDataContext as $8adf39b8c41fe3cc$export$c644ef985ce7a4c4, MeasurementDataProvider as $8adf39b8c41fe3cc$export$5f01d5b342a89841, useMeasurementData as $8adf39b8c41fe3cc$export$8a0335fd9ff72150} from "./data-provider.61ef7f9a.js";
2
- import {IsotopesDataset as $d5a3eba6c540ff58$export$c69bd0285aa5d775, IsotopesColumn as $d5a3eba6c540ff58$export$5d8aa8022c284748} from "./isotopes-column.b5442b4d.js";
3
- import {CarbonIsotopesColumn as $5cc70deb5088007a$export$883edafebdc6d87e, CarbonIsotopesApp as $5cc70deb5088007a$export$e2beef9ae524c9d5} from "./core.f3824dd8.js";
4
-
5
-
6
-
7
-
8
-
9
-
10
- export {$8adf39b8c41fe3cc$export$c644ef985ce7a4c4 as MeasurementDataContext, $8adf39b8c41fe3cc$export$5f01d5b342a89841 as MeasurementDataProvider, $8adf39b8c41fe3cc$export$8a0335fd9ff72150 as useMeasurementData, $d5a3eba6c540ff58$export$c69bd0285aa5d775 as IsotopesDataset, $d5a3eba6c540ff58$export$5d8aa8022c284748 as IsotopesColumn, $5cc70deb5088007a$export$883edafebdc6d87e as CarbonIsotopesColumn, $5cc70deb5088007a$export$e2beef9ae524c9d5 as CarbonIsotopesApp};
11
- //# sourceMappingURL=carbon-isotopes.6d9bddcf.js.map
@@ -1,4 +0,0 @@
1
- .kMKW0a_unit-label {
2
- text-align: center;
3
- }
4
- /*# sourceMappingURL=composite.module.5cc0e747.css.map */
File without changes
File without changes
File without changes