@buildcanada/charts 0.3.5 → 0.3.7
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/package.json +1 -1
- package/src/components/GrapherTabIcon.tsx +1 -1
- package/src/components/GrapherTrendArrow.tsx +1 -1
- package/src/components/Halo/Halo.tsx +1 -1
- package/src/components/LabeledSwitch/LabeledSwitch.tsx +1 -1
- package/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx +4 -4
- package/src/components/OverlayHeader.tsx +1 -1
- package/src/components/SimpleMarkdownText.tsx +1 -1
- package/src/components/TextWrap/TextWrap.tsx +2 -2
- package/src/components/index.ts +23 -23
- package/src/components/loadingIndicator/LoadingIndicator.tsx +1 -1
- package/src/config/ChartsProvider.tsx +1 -1
- package/src/config/index.ts +2 -2
- package/src/core-table/ChartsTable.ts +7 -7
- package/src/core-table/CoreTable.ts +6 -6
- package/src/core-table/CoreTableColumns.ts +5 -5
- package/src/core-table/CoreTableUtils.ts +3 -3
- package/src/core-table/ErrorValues.ts +1 -1
- package/src/core-table/TableSynthesizers.ts +3 -3
- package/src/core-table/TableUtil.ts +2 -2
- package/src/core-table/Transforms.ts +3 -3
- package/src/core-table/index.ts +8 -8
- package/src/explorer/ColumnGrammar.ts +4 -4
- package/src/explorer/Explorer.sample.ts +4 -4
- package/src/explorer/Explorer.tsx +10 -10
- package/src/explorer/ExplorerConstants.ts +2 -2
- package/src/explorer/ExplorerControls.tsx +4 -4
- package/src/explorer/ExplorerDecisionMatrix.ts +7 -7
- package/src/explorer/ExplorerGrammar.ts +4 -4
- package/src/explorer/ExplorerProgram.ts +11 -11
- package/src/explorer/ExplorerUtils.ts +4 -4
- package/src/explorer/GrapherGrammar.ts +3 -3
- package/src/explorer/gridLang/GridCell.ts +4 -4
- package/src/explorer/gridLang/GridLangConstants.ts +1 -1
- package/src/explorer/gridLang/GridProgram.ts +5 -5
- package/src/explorer/index.ts +15 -15
- package/src/explorer/urlMigrations/CO2UrlMigration.ts +3 -3
- package/src/explorer/urlMigrations/CovidUrlMigration.ts +2 -2
- package/src/explorer/urlMigrations/EnergyUrlMigration.ts +3 -3
- package/src/explorer/urlMigrations/ExplorerPageUrlMigrationSpec.ts +1 -1
- package/src/explorer/urlMigrations/ExplorerUrlMigrationUtils.ts +2 -2
- package/src/explorer/urlMigrations/ExplorerUrlMigrations.ts +5 -5
- package/src/explorer/urlMigrations/LegacyCovidUrlMigration.ts +4 -4
- package/src/grapher/axis/Axis.ts +8 -8
- package/src/grapher/axis/AxisConfig.ts +4 -4
- package/src/grapher/axis/AxisViews.tsx +6 -6
- package/src/grapher/barCharts/DiscreteBarChart.tsx +17 -17
- package/src/grapher/barCharts/DiscreteBarChartConstants.ts +6 -6
- package/src/grapher/barCharts/DiscreteBarChartHelpers.ts +3 -3
- package/src/grapher/barCharts/DiscreteBarChartState.ts +13 -13
- package/src/grapher/barCharts/DiscreteBarChartThumbnail.tsx +4 -4
- package/src/grapher/captionedChart/CaptionedChart.tsx +19 -19
- package/src/grapher/captionedChart/Logos.tsx +3 -3
- package/src/grapher/captionedChart/StaticChartRasterizer.tsx +1 -1
- package/src/grapher/chart/Chart.tsx +5 -5
- package/src/grapher/chart/ChartAreaContent.tsx +10 -10
- package/src/grapher/chart/ChartDimension.ts +2 -2
- package/src/grapher/chart/ChartInterface.ts +7 -7
- package/src/grapher/chart/ChartManager.ts +9 -9
- package/src/grapher/chart/ChartTabs.ts +1 -1
- package/src/grapher/chart/ChartTypeMap.tsx +31 -31
- package/src/grapher/chart/ChartTypeSwitcher.tsx +1 -1
- package/src/grapher/chart/ChartUtils.tsx +10 -10
- package/src/grapher/chart/DimensionSlot.ts +3 -3
- package/src/grapher/chart/StaticChartWrapper.tsx +5 -5
- package/src/grapher/chart/guidedChartUtils.ts +4 -4
- package/src/grapher/color/BinningStrategies.ts +4 -4
- package/src/grapher/color/BinningStrategyEqualSizeBins.ts +3 -3
- package/src/grapher/color/BinningStrategyLogarithmic.ts +3 -3
- package/src/grapher/color/CategoricalColorAssigner.ts +3 -3
- package/src/grapher/color/ColorBrewerSchemes.ts +1 -1
- package/src/grapher/color/ColorScale.ts +9 -9
- package/src/grapher/color/ColorScaleBin.ts +2 -2
- package/src/grapher/color/ColorScaleConfig.ts +3 -3
- package/src/grapher/color/ColorScheme.ts +3 -3
- package/src/grapher/color/ColorSchemes.ts +4 -4
- package/src/grapher/color/ColorUtils.ts +1 -1
- package/src/grapher/color/CustomSchemes.ts +2 -2
- package/src/grapher/comparisonLine/ComparisonLine.tsx +5 -5
- package/src/grapher/comparisonLine/ComparisonLineGenerator.ts +1 -1
- package/src/grapher/comparisonLine/ComparisonLineHelpers.ts +1 -1
- package/src/grapher/comparisonLine/CustomComparisonLine.tsx +8 -8
- package/src/grapher/comparisonLine/VerticalComparisonLine.tsx +5 -5
- package/src/grapher/controls/ActionButtons.tsx +4 -4
- package/src/grapher/controls/CommandPalette.tsx +1 -1
- package/src/grapher/controls/ContentSwitchers.tsx +4 -4
- package/src/grapher/controls/DataTableFilterDropdown.tsx +7 -7
- package/src/grapher/controls/DataTableSearchField.tsx +4 -4
- package/src/grapher/controls/Dropdown.tsx +1 -1
- package/src/grapher/controls/EntitySelectionToggle.tsx +1 -1
- package/src/grapher/controls/MapRegionDropdown.tsx +5 -5
- package/src/grapher/controls/MapResetButton.tsx +3 -3
- package/src/grapher/controls/MapZoomDropdown.tsx +5 -5
- package/src/grapher/controls/MapZoomToSelectionButton.tsx +3 -3
- package/src/grapher/controls/SearchField.tsx +1 -1
- package/src/grapher/controls/SettingsMenu.tsx +14 -14
- package/src/grapher/controls/ShareMenu.tsx +4 -4
- package/src/grapher/controls/SortIcon.tsx +1 -1
- package/src/grapher/controls/controlsRow/ControlsRow.tsx +11 -11
- package/src/grapher/controls/entityPicker/EntityPicker.tsx +7 -7
- package/src/grapher/controls/entityPicker/EntityPickerConstants.ts +5 -5
- package/src/grapher/controls/globalEntitySelector/GlobalEntitySelector.tsx +7 -7
- package/src/grapher/controls/settings/AbsRelToggle.tsx +2 -2
- package/src/grapher/controls/settings/AxisScaleToggle.tsx +2 -2
- package/src/grapher/controls/settings/FacetStrategySelector.tsx +2 -2
- package/src/grapher/controls/settings/FacetYDomainToggle.tsx +3 -3
- package/src/grapher/controls/settings/NoDataAreaToggle.tsx +1 -1
- package/src/grapher/controls/settings/ZoomToggle.tsx +1 -1
- package/src/grapher/core/EntitiesByRegionType.ts +3 -3
- package/src/grapher/core/EntityCodes.ts +2 -2
- package/src/grapher/core/EntityUrlBuilder.ts +3 -3
- package/src/grapher/core/FetchingGrapher.tsx +8 -8
- package/src/grapher/core/Grapher.tsx +20 -20
- package/src/grapher/core/GrapherAnalytics.ts +1 -1
- package/src/grapher/core/GrapherConstants.ts +3 -3
- package/src/grapher/core/GrapherState.tsx +38 -38
- package/src/grapher/core/GrapherUrl.ts +4 -4
- package/src/grapher/core/GrapherUrlMigrations.ts +2 -2
- package/src/grapher/core/GrapherUseHelpers.tsx +5 -5
- package/src/grapher/core/LegacyToChartsTable.ts +5 -5
- package/src/grapher/core/grapher.entry.ts +1 -1
- package/src/grapher/core/loadGrapherTableHelpers.ts +4 -4
- package/src/grapher/core/loadVariable.ts +2 -2
- package/src/grapher/core/relatedQuestion.ts +1 -1
- package/src/grapher/dataTable/DataTable.sample.ts +5 -5
- package/src/grapher/dataTable/DataTable.tsx +10 -10
- package/src/grapher/dataTable/DataTableConstants.ts +5 -5
- package/src/grapher/entitySelector/EntitySelector.tsx +15 -15
- package/src/grapher/facet/FacetChart.tsx +19 -19
- package/src/grapher/facet/FacetChartConstants.ts +4 -4
- package/src/grapher/facet/FacetChartUtils.ts +1 -1
- package/src/grapher/facet/FacetMap.tsx +15 -15
- package/src/grapher/facet/FacetMapConstants.ts +4 -4
- package/src/grapher/focus/FocusArray.ts +2 -2
- package/src/grapher/footer/Footer.tsx +7 -7
- package/src/grapher/footer/FooterManager.ts +4 -4
- package/src/grapher/fullScreen/FullScreen.tsx +2 -2
- package/src/grapher/header/Header.tsx +6 -6
- package/src/grapher/header/HeaderManager.ts +2 -2
- package/src/grapher/index.ts +57 -57
- package/src/grapher/legend/HorizontalColorLegends.tsx +7 -7
- package/src/grapher/legend/LegendInteractionState.ts +1 -1
- package/src/grapher/legend/VerticalColorLegend.tsx +6 -6
- package/src/grapher/lineCharts/LineChart.tsx +26 -26
- package/src/grapher/lineCharts/LineChartConstants.ts +8 -8
- package/src/grapher/lineCharts/LineChartHelpers.ts +7 -7
- package/src/grapher/lineCharts/LineChartState.ts +17 -17
- package/src/grapher/lineCharts/LineChartThumbnail.tsx +15 -15
- package/src/grapher/lineCharts/Lines.tsx +6 -6
- package/src/grapher/lineLegend/LineLegend.tsx +12 -12
- package/src/grapher/lineLegend/LineLegendFilterAlgorithms.ts +2 -2
- package/src/grapher/lineLegend/LineLegendHelpers.ts +3 -3
- package/src/grapher/lineLegend/LineLegendTypes.ts +4 -4
- package/src/grapher/mapCharts/ChoroplethGlobe.tsx +11 -11
- package/src/grapher/mapCharts/ChoroplethMap.tsx +11 -11
- package/src/grapher/mapCharts/GeoFeatures.ts +5 -5
- package/src/grapher/mapCharts/GlobeController.ts +7 -7
- package/src/grapher/mapCharts/MapAnnotationPlacements.ts +2 -2
- package/src/grapher/mapCharts/MapAnnotations.ts +6 -6
- package/src/grapher/mapCharts/MapChart.sample.ts +3 -3
- package/src/grapher/mapCharts/MapChart.tsx +23 -23
- package/src/grapher/mapCharts/MapChartConstants.ts +10 -10
- package/src/grapher/mapCharts/MapChartState.ts +11 -11
- package/src/grapher/mapCharts/MapChartThumbnail.tsx +3 -3
- package/src/grapher/mapCharts/MapComponents.tsx +8 -8
- package/src/grapher/mapCharts/MapConfig.ts +5 -5
- package/src/grapher/mapCharts/MapHelpers.ts +6 -6
- package/src/grapher/mapCharts/MapProjections.ts +2 -2
- package/src/grapher/mapCharts/MapSparkline.tsx +9 -9
- package/src/grapher/mapCharts/MapTooltip.tsx +10 -10
- package/src/grapher/modal/DownloadModal.tsx +9 -9
- package/src/grapher/modal/EmbedModal.tsx +4 -4
- package/src/grapher/modal/EntitySelectorModal.tsx +4 -4
- package/src/grapher/modal/Modal.tsx +2 -2
- package/src/grapher/modal/ModalHeader.tsx +1 -1
- package/src/grapher/modal/SourcesDescriptions.tsx +1 -1
- package/src/grapher/modal/SourcesKeyDataTable.tsx +2 -2
- package/src/grapher/modal/SourcesModal.tsx +10 -10
- package/src/grapher/noDataModal/NoDataModal.tsx +4 -4
- package/src/grapher/scatterCharts/ConnectedScatterLegend.tsx +4 -4
- package/src/grapher/scatterCharts/NoDataSection.tsx +3 -3
- package/src/grapher/scatterCharts/ScatterPlotChart.tsx +27 -27
- package/src/grapher/scatterCharts/ScatterPlotChartConstants.ts +10 -10
- package/src/grapher/scatterCharts/ScatterPlotChartState.ts +15 -15
- package/src/grapher/scatterCharts/ScatterPlotChartThumbnail.tsx +12 -12
- package/src/grapher/scatterCharts/ScatterPlotTooltip.tsx +6 -6
- package/src/grapher/scatterCharts/ScatterPoints.tsx +4 -4
- package/src/grapher/scatterCharts/ScatterPointsWithLabels.tsx +11 -11
- package/src/grapher/scatterCharts/ScatterSizeLegend.tsx +7 -7
- package/src/grapher/scatterCharts/ScatterUtils.ts +5 -5
- package/src/grapher/schema/defaultGrapherConfig.ts +1 -1
- package/src/grapher/schema/migrations/helpers.ts +1 -1
- package/src/grapher/schema/migrations/migrate.ts +4 -4
- package/src/grapher/schema/migrations/migrations.ts +2 -2
- package/src/grapher/selection/MapSelectionArray.ts +2 -2
- package/src/grapher/selection/SelectionArray.ts +1 -1
- package/src/grapher/sidePanel/SidePanel.tsx +2 -2
- package/src/grapher/slideInDrawer/SlideInDrawer.tsx +1 -1
- package/src/grapher/slopeCharts/MarkX.tsx +2 -2
- package/src/grapher/slopeCharts/Slope.tsx +3 -3
- package/src/grapher/slopeCharts/SlopeChart.tsx +29 -29
- package/src/grapher/slopeCharts/SlopeChartConstants.ts +6 -6
- package/src/grapher/slopeCharts/SlopeChartHelpers.ts +4 -4
- package/src/grapher/slopeCharts/SlopeChartState.ts +14 -14
- package/src/grapher/slopeCharts/SlopeChartThumbnail.tsx +14 -14
- package/src/grapher/stackedCharts/AbstractStackedChartState.ts +13 -13
- package/src/grapher/stackedCharts/MarimekkoBars.tsx +8 -8
- package/src/grapher/stackedCharts/MarimekkoBarsForOneEntity.tsx +5 -5
- package/src/grapher/stackedCharts/MarimekkoChart.tsx +23 -23
- package/src/grapher/stackedCharts/MarimekkoChartConstants.ts +6 -6
- package/src/grapher/stackedCharts/MarimekkoChartHelpers.ts +3 -3
- package/src/grapher/stackedCharts/MarimekkoChartState.ts +16 -16
- package/src/grapher/stackedCharts/MarimekkoChartThumbnail.tsx +13 -13
- package/src/grapher/stackedCharts/MarimekkoInternalLabels.tsx +4 -4
- package/src/grapher/stackedCharts/StackedAreaChart.tsx +22 -22
- package/src/grapher/stackedCharts/StackedAreaChartState.ts +5 -5
- package/src/grapher/stackedCharts/StackedAreaChartThumbnail.tsx +14 -14
- package/src/grapher/stackedCharts/StackedAreas.tsx +4 -4
- package/src/grapher/stackedCharts/StackedBarChart.tsx +21 -21
- package/src/grapher/stackedCharts/StackedBarChartState.ts +8 -8
- package/src/grapher/stackedCharts/StackedBarChartThumbnail.tsx +14 -14
- package/src/grapher/stackedCharts/StackedBarSegment.tsx +3 -3
- package/src/grapher/stackedCharts/StackedBars.tsx +6 -6
- package/src/grapher/stackedCharts/StackedConstants.ts +6 -6
- package/src/grapher/stackedCharts/StackedDiscreteBarChart.tsx +14 -14
- package/src/grapher/stackedCharts/StackedDiscreteBarChartState.ts +13 -13
- package/src/grapher/stackedCharts/StackedDiscreteBarChartThumbnail.tsx +4 -4
- package/src/grapher/stackedCharts/StackedDiscreteBars.tsx +15 -15
- package/src/grapher/stackedCharts/StackedUtils.ts +3 -3
- package/src/grapher/tabs/TabsWithDropdown.tsx +1 -1
- package/src/grapher/testData/TestData.sample.ts +5 -5
- package/src/grapher/testData/TestData.ts +2 -2
- package/src/grapher/timeline/TimelineComponent.tsx +4 -4
- package/src/grapher/timeline/TimelineController.ts +2 -2
- package/src/grapher/tooltip/Tooltip.tsx +5 -5
- package/src/grapher/tooltip/TooltipContents.tsx +6 -6
- package/src/grapher/tooltip/TooltipProps.ts +1 -1
- package/src/grapher/tooltip/TooltipState.ts +2 -2
- package/src/grapher/verticalLabels/VerticalLabels.tsx +3 -3
- package/src/grapher/verticalLabels/VerticalLabelsState.ts +2 -2
- package/src/index.ts +55 -55
- package/src/types/Origin.ts +1 -1
- package/src/types/Variable.ts +3 -3
- package/src/types/VariableDisplayConfigInterface.ts +2 -2
- package/src/types/domainTypes/ContentGraph.ts +2 -2
- package/src/types/domainTypes/CoreTableTypes.ts +5 -5
- package/src/types/domainTypes/Posts.ts +4 -4
- package/src/types/domainTypes/Search.ts +2 -2
- package/src/types/domainTypes/Various.ts +1 -1
- package/src/types/gdocTypes/Gdoc.ts +2 -2
- package/src/types/grapherTypes/GrapherTypes.ts +9 -9
- package/src/types/index.ts +15 -15
- package/src/utils/Bounds.ts +2 -2
- package/src/utils/FuzzySearch.ts +1 -1
- package/src/utils/TimeBounds.ts +2 -2
- package/src/utils/Util.ts +3 -3
- package/src/utils/Variable.ts +2 -2
- package/src/utils/archival/archivalDate.ts +2 -2
- package/src/utils/formatValue.ts +2 -2
- package/src/utils/grapherConfigUtils.ts +2 -2
- package/src/utils/image.ts +2 -2
- package/src/utils/index.ts +27 -27
- package/src/utils/metadataHelpers.ts +4 -4
- package/src/utils/regions.ts +2 -2
- package/src/utils/urls/Url.ts +3 -3
- package/src/utils/urls/UrlMigration.ts +1 -1
- package/src/utils/urls/UrlUtils.ts +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cx from "classnames"
|
|
2
|
-
import { GrapherTrendArrowDirection } from "../types/index.
|
|
2
|
+
import { GrapherTrendArrowDirection } from "../types/index.js"
|
|
3
3
|
|
|
4
4
|
const ARROW_PATHS = {
|
|
5
5
|
up: "m14,0H5c-.552,0-1,.448-1,1s.448,1,1,1h6.586L.29303,13.29297l1.41394,1.414L13,3.41394v6.58606c0,.552.448,1,1,1s1-.448,1-1V1c0-.552-.448-1-1-1Z",
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
|
3
3
|
import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"
|
|
4
4
|
import cx from "classnames"
|
|
5
|
-
import { Tippy } from "../../utils/index.
|
|
5
|
+
import { Tippy } from "../../utils/index.js"
|
|
6
6
|
|
|
7
7
|
export const LabeledSwitch = ({
|
|
8
8
|
className,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
imemo,
|
|
8
8
|
Bounds,
|
|
9
9
|
FontFamily,
|
|
10
|
-
} from "../../utils/index.
|
|
11
|
-
import { DetailsMarker } from "../../types/index.
|
|
12
|
-
import { TextWrap } from "../TextWrap/TextWrap.
|
|
10
|
+
} from "../../utils/index.js"
|
|
11
|
+
import { DetailsMarker } from "../../types/index.js"
|
|
12
|
+
import { TextWrap } from "../TextWrap/TextWrap.js"
|
|
13
13
|
import { fromMarkdown } from "mdast-util-from-markdown"
|
|
14
14
|
import type { Content, Root } from "mdast"
|
|
15
15
|
import { match } from "ts-pattern"
|
|
16
|
-
import { urlRegex } from "../markdown/remarkPlainLinks.
|
|
16
|
+
import { urlRegex } from "../markdown/remarkPlainLinks.js"
|
|
17
17
|
import * as R from "remeda"
|
|
18
18
|
|
|
19
19
|
const SUPERSCRIPT_NUMERALS = {
|
|
@@ -3,7 +3,7 @@ import Markdown, {
|
|
|
3
3
|
type Options as MarkdownOptions,
|
|
4
4
|
type Components as MarkdownComponents,
|
|
5
5
|
} from "react-markdown"
|
|
6
|
-
import { remarkPlainLinks } from "./markdown/remarkPlainLinks.
|
|
6
|
+
import { remarkPlainLinks } from "./markdown/remarkPlainLinks.js"
|
|
7
7
|
import { visit } from "unist-util-visit"
|
|
8
8
|
import type { Plugin } from "unified"
|
|
9
9
|
import type { Root } from "hast"
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
Bounds,
|
|
6
6
|
FontFamily,
|
|
7
7
|
VerticalAlign,
|
|
8
|
-
} from "../../utils/index.
|
|
8
|
+
} from "../../utils/index.js"
|
|
9
9
|
import { computed, makeObservable } from "mobx"
|
|
10
10
|
import * as React from "react"
|
|
11
|
-
import { Fragment, joinFragments, splitIntoFragments } from "./TextWrapUtils"
|
|
11
|
+
import { Fragment, joinFragments, splitIntoFragments } from "./TextWrapUtils.js"
|
|
12
12
|
import { match } from "ts-pattern"
|
|
13
13
|
|
|
14
14
|
declare type FontSize = number
|
package/src/components/index.ts
CHANGED
|
@@ -3,52 +3,52 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Text wrapping components
|
|
6
|
-
export { TextWrap, shortenWithEllipsis } from "./TextWrap/TextWrap.
|
|
6
|
+
export { TextWrap, shortenWithEllipsis } from "./TextWrap/TextWrap.js"
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
9
|
MarkdownTextWrap,
|
|
10
10
|
sumTextWrapHeights,
|
|
11
11
|
toPlaintext,
|
|
12
|
-
} from "./MarkdownTextWrap/MarkdownTextWrap.
|
|
12
|
+
} from "./MarkdownTextWrap/MarkdownTextWrap.js"
|
|
13
13
|
|
|
14
14
|
// Simple markdown text
|
|
15
15
|
export {
|
|
16
16
|
SimpleMarkdownText,
|
|
17
17
|
HtmlOrSimpleMarkdownText,
|
|
18
|
-
} from "./SimpleMarkdownText.
|
|
18
|
+
} from "./SimpleMarkdownText.js"
|
|
19
19
|
|
|
20
20
|
// Expandable toggle
|
|
21
|
-
export { ExpandableToggle } from "./ExpandableToggle/ExpandableToggle.
|
|
21
|
+
export { ExpandableToggle } from "./ExpandableToggle/ExpandableToggle.js"
|
|
22
22
|
|
|
23
23
|
// Form components
|
|
24
|
-
export { LabeledSwitch } from "./LabeledSwitch/LabeledSwitch.
|
|
25
|
-
export { Checkbox } from "./Checkbox.
|
|
26
|
-
export { RadioButton } from "./RadioButton.
|
|
27
|
-
export { TextInput } from "./TextInput.
|
|
28
|
-
export { Button } from "./Button/Button.
|
|
24
|
+
export { LabeledSwitch } from "./LabeledSwitch/LabeledSwitch.js"
|
|
25
|
+
export { Checkbox } from "./Checkbox.js"
|
|
26
|
+
export { RadioButton } from "./RadioButton.js"
|
|
27
|
+
export { TextInput } from "./TextInput.js"
|
|
28
|
+
export { Button } from "./Button/Button.js"
|
|
29
29
|
|
|
30
30
|
// Overlay components
|
|
31
31
|
export {
|
|
32
32
|
CloseButton,
|
|
33
33
|
CLOSE_BUTTON_HEIGHT,
|
|
34
34
|
CLOSE_BUTTON_WIDTH,
|
|
35
|
-
} from "./closeButton/CloseButton.
|
|
36
|
-
export { OverlayHeader } from "./OverlayHeader.
|
|
35
|
+
} from "./closeButton/CloseButton.js"
|
|
36
|
+
export { OverlayHeader } from "./OverlayHeader.js"
|
|
37
37
|
|
|
38
38
|
// Visual components
|
|
39
|
-
export { Halo } from "./Halo/Halo.
|
|
40
|
-
export { BodyPortal } from "./BodyPortal/BodyPortal.
|
|
41
|
-
export { LoadingIndicator } from "./loadingIndicator/LoadingIndicator.
|
|
39
|
+
export { Halo } from "./Halo/Halo.js"
|
|
40
|
+
export { BodyPortal } from "./BodyPortal/BodyPortal.js"
|
|
41
|
+
export { LoadingIndicator } from "./loadingIndicator/LoadingIndicator.js"
|
|
42
42
|
|
|
43
43
|
// React utilities
|
|
44
|
-
export { reactRenderToStringClientOnly } from "./reactUtil.
|
|
44
|
+
export { reactRenderToStringClientOnly } from "./reactUtil.js"
|
|
45
45
|
|
|
46
46
|
// Grapher-specific components
|
|
47
|
-
export { GrapherTabIcon } from "./GrapherTabIcon.
|
|
48
|
-
export { GrapherTrendArrow } from "./GrapherTrendArrow.
|
|
47
|
+
export { GrapherTabIcon } from "./GrapherTabIcon.js"
|
|
48
|
+
export { GrapherTrendArrow } from "./GrapherTrendArrow.js"
|
|
49
49
|
|
|
50
50
|
// Stub components for data page features
|
|
51
|
-
export { CodeSnippet } from "./stubs/CodeSnippet.
|
|
51
|
+
export { CodeSnippet } from "./stubs/CodeSnippet.js"
|
|
52
52
|
export {
|
|
53
53
|
makeSource,
|
|
54
54
|
makeLastUpdated,
|
|
@@ -57,14 +57,14 @@ export {
|
|
|
57
57
|
makeUnit,
|
|
58
58
|
makeUnitConversionFactor,
|
|
59
59
|
makeLinks,
|
|
60
|
-
} from "./stubs/IndicatorKeyData.
|
|
61
|
-
export { IndicatorSources } from "./stubs/IndicatorSources.
|
|
62
|
-
export { IndicatorProcessing } from "./stubs/IndicatorProcessing.
|
|
63
|
-
export { DataCitation } from "./stubs/DataCitation.
|
|
60
|
+
} from "./stubs/IndicatorKeyData.js"
|
|
61
|
+
export { IndicatorSources } from "./stubs/IndicatorSources.js"
|
|
62
|
+
export { IndicatorProcessing } from "./stubs/IndicatorProcessing.js"
|
|
63
|
+
export { DataCitation } from "./stubs/DataCitation.js"
|
|
64
64
|
|
|
65
65
|
// Site constants re-exported for convenience
|
|
66
66
|
export {
|
|
67
67
|
DATAPAGE_ABOUT_THIS_DATA_SECTION_ID,
|
|
68
68
|
DATAPAGE_SOURCES_AND_PROCESSING_SECTION_ID,
|
|
69
69
|
REUSE_THIS_WORK_SECTION_ID,
|
|
70
|
-
} from "../types/index.
|
|
70
|
+
} from "../types/index.js"
|
package/src/config/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export {
|
|
|
7
7
|
type LogoConfig,
|
|
8
8
|
defaultChartsConfig,
|
|
9
9
|
mergeWithDefaults,
|
|
10
|
-
} from "./ChartsConfig"
|
|
10
|
+
} from "./ChartsConfig.js"
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
ChartsProvider,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
createFallbackConfig,
|
|
18
18
|
reportError,
|
|
19
19
|
trackEvent,
|
|
20
|
-
} from "./ChartsProvider"
|
|
20
|
+
} from "./ChartsProvider.js"
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ToleranceStrategy,
|
|
16
16
|
differenceOfSets,
|
|
17
17
|
sortedFindClosestIndex,
|
|
18
|
-
} from "../utils/index.
|
|
18
|
+
} from "../utils/index.js"
|
|
19
19
|
import {
|
|
20
20
|
Time,
|
|
21
21
|
TransformType,
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
ChartsTableSlugs,
|
|
30
30
|
ErrorValue,
|
|
31
31
|
ToleranceOptions,
|
|
32
|
-
} from "../types/index.
|
|
33
|
-
import { CoreTable } from "./CoreTable.
|
|
34
|
-
import { ErrorValueTypes, isNotErrorValue } from "./ErrorValues.
|
|
32
|
+
} from "../types/index.js"
|
|
33
|
+
import { CoreTable } from "./CoreTable.js"
|
|
34
|
+
import { ErrorValueTypes, isNotErrorValue } from "./ErrorValues.js"
|
|
35
35
|
import {
|
|
36
36
|
getOriginalTimeColumnSlug,
|
|
37
37
|
makeOriginalValueSlugFromColumnSlug,
|
|
@@ -39,15 +39,15 @@ import {
|
|
|
39
39
|
makeOriginalStartTimeSlugFromColumnSlug,
|
|
40
40
|
timeColumnSlugFromColumnDef,
|
|
41
41
|
toPercentageColumnDef,
|
|
42
|
-
} from "./TableUtil.
|
|
42
|
+
} from "./TableUtil.js"
|
|
43
43
|
import {
|
|
44
44
|
linearInterpolation,
|
|
45
45
|
toleranceInterpolation,
|
|
46
46
|
replaceDef,
|
|
47
47
|
InterpolationProvider,
|
|
48
48
|
InterpolationContext,
|
|
49
|
-
} from "./CoreTableUtils.
|
|
50
|
-
import { CoreColumn, ColumnTypeMap } from "./CoreTableColumns.
|
|
49
|
+
} from "./CoreTableUtils.js"
|
|
50
|
+
import { CoreColumn, ColumnTypeMap } from "./CoreTableColumns.js"
|
|
51
51
|
|
|
52
52
|
// An ChartsTable is a subset of Table. An ChartsTable always has EntityName, EntityCode, EntityId, and Time columns,
|
|
53
53
|
// and value column(s). Whether or not we need in the long run is uncertain and it may just be a stepping stone
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
ColumnSlug,
|
|
7
7
|
PrimitiveType,
|
|
8
8
|
imemo,
|
|
9
|
-
} from "../utils/index.
|
|
9
|
+
} from "../utils/index.js"
|
|
10
10
|
import {
|
|
11
11
|
CoreColumn,
|
|
12
12
|
ColumnTypeMap,
|
|
13
13
|
MissingColumn,
|
|
14
14
|
TimeColumn,
|
|
15
|
-
} from "./CoreTableColumns.
|
|
15
|
+
} from "./CoreTableColumns.js"
|
|
16
16
|
import {
|
|
17
17
|
CoreColumnStore,
|
|
18
18
|
CoreRow,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
JsTypes,
|
|
31
31
|
ChartsTableSlugs,
|
|
32
32
|
ColumnDef,
|
|
33
|
-
} from "../types/index.
|
|
33
|
+
} from "../types/index.js"
|
|
34
34
|
import {
|
|
35
35
|
makeAutoTypeFn,
|
|
36
36
|
columnStoreToRows,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
sortColumnStore,
|
|
48
48
|
emptyColumnsInFirstRowInDelimited,
|
|
49
49
|
truncate,
|
|
50
|
-
} from "./CoreTableUtils.
|
|
50
|
+
} from "./CoreTableUtils.js"
|
|
51
51
|
import {
|
|
52
52
|
ErrorValueTypes,
|
|
53
53
|
isNotErrorValue,
|
|
54
54
|
DroppedForTesting,
|
|
55
|
-
} from "./ErrorValues.
|
|
56
|
-
import { applyTransforms, extractTransformNameAndParams } from "./Transforms.
|
|
55
|
+
} from "./ErrorValues.js"
|
|
56
|
+
import { applyTransforms, extractTransformNameAndParams } from "./Transforms.js"
|
|
57
57
|
|
|
58
58
|
interface AdvancedOptions {
|
|
59
59
|
tableDescription?: string
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
ToleranceStrategy,
|
|
21
21
|
IndicatorTitleWithFragments,
|
|
22
22
|
stripOuterParentheses,
|
|
23
|
-
} from "../utils/index.
|
|
24
|
-
import { CoreTable } from "./CoreTable.
|
|
23
|
+
} from "../utils/index.js"
|
|
24
|
+
import { CoreTable } from "./CoreTable.js"
|
|
25
25
|
import {
|
|
26
26
|
Time,
|
|
27
27
|
JsTypes,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
VariableRow,
|
|
33
33
|
ErrorValue,
|
|
34
34
|
VariableRoundingMode,
|
|
35
|
-
} from "../types/index.
|
|
36
|
-
import { ErrorValueTypes, isNotErrorValue } from "./ErrorValues.
|
|
35
|
+
} from "../types/index.js"
|
|
36
|
+
import { ErrorValueTypes, isNotErrorValue } from "./ErrorValues.js"
|
|
37
37
|
import {
|
|
38
38
|
getOriginalStartTimeColumnSlug,
|
|
39
39
|
getOriginalTimeColumnSlug,
|
|
40
40
|
getOriginalValueColumnSlug,
|
|
41
|
-
} from "./TableUtil.
|
|
41
|
+
} from "./TableUtil.js"
|
|
42
42
|
import * as R from "remeda"
|
|
43
43
|
|
|
44
44
|
export abstract class AbstractCoreColumn<JS_TYPE extends PrimitiveType> {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as _ from "lodash-es"
|
|
3
3
|
import * as Papa from "papaparse"
|
|
4
4
|
import * as R from "remeda"
|
|
5
|
-
import { sampleFrom, slugifySameCase, ColumnSlug } from "../utils/index.
|
|
5
|
+
import { sampleFrom, slugifySameCase, ColumnSlug } from "../utils/index.js"
|
|
6
6
|
import {
|
|
7
7
|
CoreColumnStore,
|
|
8
8
|
CoreRow,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
EntityIdColumnDef,
|
|
17
17
|
EntityNameColumnDef,
|
|
18
18
|
ChartsTableSlugs,
|
|
19
|
-
} from "../types/index.
|
|
20
|
-
import { ErrorValueTypes, DroppedForTesting } from "./ErrorValues.
|
|
19
|
+
} from "../types/index.js"
|
|
20
|
+
import { ErrorValueTypes, DroppedForTesting } from "./ErrorValues.js"
|
|
21
21
|
|
|
22
22
|
export const columnStoreToRows = (
|
|
23
23
|
columnStore: CoreColumnStore
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* For a good read on the "Errors are values" pattern: https://blog.golang.org/errors-are-values
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { ErrorValue } from "../types/index.
|
|
11
|
+
import { ErrorValue } from "../types/index.js"
|
|
12
12
|
|
|
13
13
|
class NaNButShouldBeNumber extends ErrorValue {}
|
|
14
14
|
export class DroppedForTesting extends ErrorValue {}
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
countries,
|
|
6
6
|
VariableDisplayConfigInterface,
|
|
7
7
|
ColumnSlug,
|
|
8
|
-
} from "../utils/index.
|
|
8
|
+
} from "../utils/index.js"
|
|
9
9
|
import {
|
|
10
10
|
TimeRange,
|
|
11
11
|
ColumnTypeNames,
|
|
12
12
|
ColumnDef,
|
|
13
13
|
ChartsTableSlugs,
|
|
14
|
-
} from "../types/index.
|
|
15
|
-
import { ChartsTable } from "./ChartsTable.
|
|
14
|
+
} from "../types/index.js"
|
|
15
|
+
import { ChartsTable } from "./ChartsTable.js"
|
|
16
16
|
|
|
17
17
|
interface SynthOptions {
|
|
18
18
|
entityCount: number
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
CoreColumnDef,
|
|
5
5
|
ColumnDef,
|
|
6
6
|
ChartsTableSlugs,
|
|
7
|
-
} from "../types/index.
|
|
8
|
-
import { CoreTable } from "./CoreTable.
|
|
7
|
+
} from "../types/index.js"
|
|
8
|
+
import { CoreTable } from "./CoreTable.js"
|
|
9
9
|
|
|
10
10
|
export function timeColumnSlugFromColumnDef(
|
|
11
11
|
def: ColumnDef
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as _ from "lodash-es"
|
|
3
|
-
import { ColumnSlug } from "../utils/index.
|
|
3
|
+
import { ColumnSlug } from "../utils/index.js"
|
|
4
4
|
import {
|
|
5
5
|
ErrorValue,
|
|
6
6
|
CoreColumnDef,
|
|
7
7
|
CoreColumnStore,
|
|
8
8
|
Time,
|
|
9
9
|
CoreValueType,
|
|
10
|
-
} from "../types/index.
|
|
10
|
+
} from "../types/index.js"
|
|
11
11
|
import {
|
|
12
12
|
ErrorValueTypes,
|
|
13
13
|
isNotErrorValue,
|
|
14
14
|
MissingValuePlaceholder,
|
|
15
15
|
ValueTooLow,
|
|
16
16
|
DivideByZeroError,
|
|
17
|
-
} from "./ErrorValues.
|
|
17
|
+
} from "./ErrorValues.js"
|
|
18
18
|
import * as R from "remeda"
|
|
19
19
|
|
|
20
20
|
enum TransformParamType {
|
package/src/core-table/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CoreTable, columnDefinitionsFromInput } from "./CoreTable.
|
|
1
|
+
export { CoreTable, columnDefinitionsFromInput } from "./CoreTable.js"
|
|
2
2
|
export {
|
|
3
3
|
SynthesizeNonCountryTable,
|
|
4
4
|
SampleColumnSlugs,
|
|
@@ -7,7 +7,7 @@ export {
|
|
|
7
7
|
SynthesizeFruitTableWithNonPositives,
|
|
8
8
|
SynthesizeFruitTableWithStringValues,
|
|
9
9
|
SynthesizeProjectedPopulationTable,
|
|
10
|
-
} from "./TableSynthesizers.
|
|
10
|
+
} from "./TableSynthesizers.js"
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
type CoreColumn,
|
|
@@ -15,9 +15,9 @@ export {
|
|
|
15
15
|
ColumnTypeMap,
|
|
16
16
|
AbstractCoreColumn,
|
|
17
17
|
TimeColumn,
|
|
18
|
-
} from "./CoreTableColumns.
|
|
18
|
+
} from "./CoreTableColumns.js"
|
|
19
19
|
|
|
20
|
-
export { ChartsTable, BlankChartsTable } from "./ChartsTable.
|
|
20
|
+
export { ChartsTable, BlankChartsTable } from "./ChartsTable.js"
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
23
|
DroppedForTesting,
|
|
@@ -28,7 +28,7 @@ export {
|
|
|
28
28
|
isNotErrorValue,
|
|
29
29
|
isNotErrorValueOrEmptyCell,
|
|
30
30
|
defaultIfErrorValue,
|
|
31
|
-
} from "./ErrorValues.
|
|
31
|
+
} from "./ErrorValues.js"
|
|
32
32
|
|
|
33
33
|
export {
|
|
34
34
|
columnStoreToRows,
|
|
@@ -63,7 +63,7 @@ export {
|
|
|
63
63
|
trimArray,
|
|
64
64
|
sortColumnStore,
|
|
65
65
|
emptyColumnsInFirstRowInDelimited,
|
|
66
|
-
} from "./CoreTableUtils.
|
|
66
|
+
} from "./CoreTableUtils.js"
|
|
67
67
|
|
|
68
68
|
export {
|
|
69
69
|
timeColumnSlugFromColumnDef,
|
|
@@ -71,7 +71,7 @@ export {
|
|
|
71
71
|
makeOriginalValueSlugFromColumnSlug,
|
|
72
72
|
getOriginalTimeColumnSlug,
|
|
73
73
|
toPercentageColumnDef,
|
|
74
|
-
} from "./TableUtil.
|
|
74
|
+
} from "./TableUtil.js"
|
|
75
75
|
|
|
76
76
|
export {
|
|
77
77
|
insertMissingValuePlaceholders,
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
AvailableTransforms,
|
|
80
80
|
applyTransforms,
|
|
81
81
|
extractPotentialDataSlugsFromTransform,
|
|
82
|
-
} from "./Transforms.
|
|
82
|
+
} from "./Transforms.js"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AvailableTransforms } from "../core-table/index.
|
|
1
|
+
import { AvailableTransforms } from "../core-table/index.js"
|
|
2
2
|
import {
|
|
3
3
|
automaticBinningStrategies,
|
|
4
4
|
ColorSchemeName,
|
|
5
5
|
ColumnTypeNames,
|
|
6
|
-
} from "../types/index.
|
|
7
|
-
import { ToleranceStrategy } from "../utils/index.
|
|
6
|
+
} from "../types/index.js"
|
|
7
|
+
import { ToleranceStrategy } from "../utils/index.js"
|
|
8
8
|
import {
|
|
9
9
|
BooleanCellDef,
|
|
10
10
|
ColumnCellDef,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
SlugDeclarationCellDef,
|
|
17
17
|
StringCellDef,
|
|
18
18
|
UrlCellDef,
|
|
19
|
-
} from "./gridLang/GridLangConstants.
|
|
19
|
+
} from "./gridLang/GridLangConstants.js"
|
|
20
20
|
|
|
21
21
|
export const ColumnGrammar: Grammar<ColumnCellDef> = {
|
|
22
22
|
variableId: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DimensionProperty } from "../utils/index.
|
|
2
|
-
import { GRAPHER_TAB_CONFIG_OPTIONS } from "../types/index.
|
|
1
|
+
import { DimensionProperty } from "../utils/index.js"
|
|
2
|
+
import { GRAPHER_TAB_CONFIG_OPTIONS } from "../types/index.js"
|
|
3
3
|
import {
|
|
4
4
|
GrapherProgrammaticInterface,
|
|
5
5
|
legacyToChartsTableAndDimensionsWithMandatorySlug,
|
|
6
|
-
} from "../grapher/index.
|
|
7
|
-
import { Explorer, ExplorerProps } from "./Explorer.
|
|
6
|
+
} from "../grapher/index.js"
|
|
7
|
+
import { Explorer, ExplorerProps } from "./Explorer.js"
|
|
8
8
|
|
|
9
9
|
const SampleExplorerOfGraphersProgram = `explorerTitle CO₂ Data Explorer
|
|
10
10
|
isPublished false
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
GrapherQueryParams,
|
|
14
14
|
EntityName,
|
|
15
15
|
GRAPHER_TAB_QUERY_PARAMS,
|
|
16
|
-
} from "../types/index.
|
|
16
|
+
} from "../types/index.js"
|
|
17
17
|
import {
|
|
18
18
|
ChartsTable,
|
|
19
19
|
BlankChartsTable,
|
|
20
20
|
extractPotentialDataSlugsFromTransform,
|
|
21
|
-
} from "../core-table/index.
|
|
21
|
+
} from "../core-table/index.js"
|
|
22
22
|
import {
|
|
23
23
|
EntityPicker,
|
|
24
24
|
EntityPickerManager,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
fetchInputTableForConfig,
|
|
36
36
|
loadVariableDataAndMetadata,
|
|
37
37
|
FetchInputTableForConfigFn,
|
|
38
|
-
} from "../grapher/index.
|
|
38
|
+
} from "../grapher/index.js"
|
|
39
39
|
import {
|
|
40
40
|
Bounds,
|
|
41
41
|
ColumnSlug,
|
|
@@ -53,15 +53,15 @@ import {
|
|
|
53
53
|
setWindowUrl,
|
|
54
54
|
Tippy,
|
|
55
55
|
Url,
|
|
56
|
-
} from "../utils/index.
|
|
57
|
-
import { MarkdownTextWrap } from "../components/index.
|
|
56
|
+
} from "../utils/index.js"
|
|
57
|
+
import { MarkdownTextWrap } from "../components/index.js"
|
|
58
58
|
import classNames from "classnames"
|
|
59
59
|
import { action, computed, makeObservable, observable, reaction } from "mobx"
|
|
60
60
|
import { observer } from "mobx-react"
|
|
61
61
|
import React, { useCallback, useEffect, useState } from "react"
|
|
62
62
|
import { createRoot } from "react-dom/client"
|
|
63
|
-
import { ExplorerControlBar, ExplorerControlPanel } from "./ExplorerControls.
|
|
64
|
-
import { ExplorerProgram } from "./ExplorerProgram.
|
|
63
|
+
import { ExplorerControlBar, ExplorerControlPanel } from "./ExplorerControls.js"
|
|
64
|
+
import { ExplorerProgram } from "./ExplorerProgram.js"
|
|
65
65
|
import {
|
|
66
66
|
ExplorerChartCreationMode,
|
|
67
67
|
ExplorerChoiceParams,
|
|
@@ -71,12 +71,12 @@ import {
|
|
|
71
71
|
EXPLORERS_ROUTE_FOLDER,
|
|
72
72
|
UNSAVED_EXPLORER_DRAFT,
|
|
73
73
|
UNSAVED_EXPLORER_PREVIEW_QUERYPARAMS,
|
|
74
|
-
} from "./ExplorerConstants.
|
|
75
|
-
import { ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec.
|
|
74
|
+
} from "./ExplorerConstants.js"
|
|
75
|
+
import { ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec.js"
|
|
76
76
|
import {
|
|
77
77
|
explorerUrlMigrationsById,
|
|
78
78
|
migrateExplorerUrl,
|
|
79
|
-
} from "./urlMigrations/ExplorerUrlMigrations.
|
|
79
|
+
} from "./urlMigrations/ExplorerUrlMigrations.js"
|
|
80
80
|
|
|
81
81
|
export interface ExplorerProps extends SerializedGridProgram {
|
|
82
82
|
grapherConfigs?: GrapherInterface[]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SortOrder, GrapherQueryParams } from "../types/index.
|
|
2
|
-
import { ColumnSlug, SerializedGridProgram } from "../utils/index.
|
|
1
|
+
import { SortOrder, GrapherQueryParams } from "../types/index.js"
|
|
2
|
+
import { ColumnSlug, SerializedGridProgram } from "../utils/index.js"
|
|
3
3
|
|
|
4
4
|
export enum ExplorerControlType {
|
|
5
5
|
Radio = "Radio",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component } from "react"
|
|
2
|
-
import { Dropdown } from "../grapher/index.
|
|
3
|
-
import { bind } from "../utils/index.
|
|
2
|
+
import { Dropdown } from "../grapher/index.js"
|
|
3
|
+
import { bind } from "../utils/index.js"
|
|
4
4
|
import {
|
|
5
5
|
ExplorerControlType,
|
|
6
6
|
ExplorerChoiceOption,
|
|
7
7
|
ExplorerChoice,
|
|
8
|
-
} from "./ExplorerConstants.
|
|
9
|
-
import { GridBoolean } from "./gridLang/GridLangConstants.
|
|
8
|
+
} from "./ExplorerConstants.js"
|
|
9
|
+
import { GridBoolean } from "./gridLang/GridLangConstants.js"
|
|
10
10
|
import classNames from "classnames"
|
|
11
11
|
import * as R from "remeda"
|
|
12
12
|
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
differenceObj,
|
|
6
6
|
trimObject,
|
|
7
7
|
parseIntOrUndefined,
|
|
8
|
-
} from "../utils/index.
|
|
9
|
-
import { ColumnTypeNames, CoreRow } from "../types/index.
|
|
8
|
+
} from "../utils/index.js"
|
|
9
|
+
import { ColumnTypeNames, CoreRow } from "../types/index.js"
|
|
10
10
|
import {
|
|
11
11
|
CoreTable,
|
|
12
12
|
detectDelimiter,
|
|
13
13
|
parseDelimited,
|
|
14
14
|
isCellEmpty,
|
|
15
|
-
} from "../core-table/index.
|
|
16
|
-
import { GridBoolean } from "./gridLang/GridLangConstants.
|
|
15
|
+
} from "../core-table/index.js"
|
|
16
|
+
import { GridBoolean } from "./gridLang/GridLangConstants.js"
|
|
17
17
|
import {
|
|
18
18
|
ChoiceMap,
|
|
19
19
|
ChoiceName,
|
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
ExplorerChoiceParams,
|
|
24
24
|
ExplorerControlType,
|
|
25
25
|
ExplorerControlTypeRegex,
|
|
26
|
-
} from "./ExplorerConstants.
|
|
27
|
-
import { trimAndParseObject } from "./ExplorerProgram.
|
|
28
|
-
import { GrapherGrammar } from "./GrapherGrammar.
|
|
26
|
+
} from "./ExplorerConstants.js"
|
|
27
|
+
import { trimAndParseObject } from "./ExplorerProgram.js"
|
|
28
|
+
import { GrapherGrammar } from "./GrapherGrammar.js"
|
|
29
29
|
|
|
30
30
|
function parseVariableIds(value: string): number[] {
|
|
31
31
|
return value
|