@ohos-ports/superset-ui-core 0.20.4-beta.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.
- package/README.md +42 -0
- package/esm/api/index.js +1 -0
- package/esm/api/types/core.js +0 -0
- package/esm/api/types/core.js.map +1 -0
- package/esm/chart/clients/ChartClient.js +201 -0
- package/esm/chart/clients/ChartClient.js.map +1 -0
- package/esm/chart/components/ChartDataProvider.js +171 -0
- package/esm/chart/components/ChartDataProvider.js.map +1 -0
- package/esm/chart/components/FallbackComponent.js +61 -0
- package/esm/chart/components/FallbackComponent.js.map +1 -0
- package/esm/chart/components/NoResultsComponent.js +88 -0
- package/esm/chart/components/NoResultsComponent.js.map +1 -0
- package/esm/chart/components/SuperChart.js +267 -0
- package/esm/chart/components/SuperChart.js.map +1 -0
- package/esm/chart/components/SuperChartCore.js +235 -0
- package/esm/chart/components/SuperChartCore.js.map +1 -0
- package/esm/chart/components/createLoadableRenderer.js +75 -0
- package/esm/chart/components/createLoadableRenderer.js.map +1 -0
- package/esm/chart/components/reactify.js +115 -0
- package/esm/chart/components/reactify.js.map +1 -0
- package/esm/chart/index.js +49 -0
- package/esm/chart/index.js.map +1 -0
- package/esm/chart/models/ChartControlPanel.js +1 -0
- package/esm/chart/models/ChartControlPanel.js.map +1 -0
- package/esm/chart/models/ChartMetadata.js +160 -0
- package/esm/chart/models/ChartMetadata.js.map +1 -0
- package/esm/chart/models/ChartPlugin.js +162 -0
- package/esm/chart/models/ChartPlugin.js.map +1 -0
- package/esm/chart/models/ChartProps.js +270 -0
- package/esm/chart/models/ChartProps.js.map +1 -0
- package/esm/chart/registries/ChartBuildQueryRegistrySingleton.js +53 -0
- package/esm/chart/registries/ChartBuildQueryRegistrySingleton.js.map +1 -0
- package/esm/chart/registries/ChartComponentRegistrySingleton.js +32 -0
- package/esm/chart/registries/ChartComponentRegistrySingleton.js.map +1 -0
- package/esm/chart/registries/ChartControlPanelRegistrySingleton.js +35 -0
- package/esm/chart/registries/ChartControlPanelRegistrySingleton.js.map +1 -0
- package/esm/chart/registries/ChartMetadataRegistrySingleton.js +32 -0
- package/esm/chart/registries/ChartMetadataRegistrySingleton.js.map +1 -0
- package/esm/chart/registries/ChartTransformPropsRegistrySingleton.js +35 -0
- package/esm/chart/registries/ChartTransformPropsRegistrySingleton.js.map +1 -0
- package/esm/chart/types/Annotation.js +1 -0
- package/esm/chart/types/Annotation.js.map +1 -0
- package/esm/chart/types/Base.js +108 -0
- package/esm/chart/types/Base.js.map +1 -0
- package/esm/chart/types/QueryResponse.js +53 -0
- package/esm/chart/types/QueryResponse.js.map +1 -0
- package/esm/chart/types/TransformFunction.js +55 -0
- package/esm/chart/types/TransformFunction.js.map +1 -0
- package/esm/chart/types/VizType.js +20 -0
- package/esm/chart/types/VizType.js.map +1 -0
- package/esm/chart-composition/ChartFrame.js +75 -0
- package/esm/chart-composition/ChartFrame.js.map +1 -0
- package/esm/chart-composition/index.js +24 -0
- package/esm/chart-composition/index.js.map +1 -0
- package/esm/chart-composition/legend/WithLegend.js +147 -0
- package/esm/chart-composition/legend/WithLegend.js.map +1 -0
- package/esm/chart-composition/tooltip/TooltipFrame.js +48 -0
- package/esm/chart-composition/tooltip/TooltipFrame.js.map +1 -0
- package/esm/chart-composition/tooltip/TooltipTable.js +70 -0
- package/esm/chart-composition/tooltip/TooltipTable.js.map +1 -0
- package/esm/color/CategoricalColorNamespace.js +122 -0
- package/esm/color/CategoricalColorNamespace.js.map +1 -0
- package/esm/color/CategoricalColorScale.js +375 -0
- package/esm/color/CategoricalColorScale.js.map +1 -0
- package/esm/color/CategoricalScheme.js +23 -0
- package/esm/color/CategoricalScheme.js.map +1 -0
- package/esm/color/CategoricalSchemeRegistrySingleton.js +36 -0
- package/esm/color/CategoricalSchemeRegistrySingleton.js.map +1 -0
- package/esm/color/ColorScheme.js +60 -0
- package/esm/color/ColorScheme.js.map +1 -0
- package/esm/color/ColorSchemeRegistry.js +44 -0
- package/esm/color/ColorSchemeRegistry.js.map +1 -0
- package/esm/color/LabelsColorMapSingleton.js +177 -0
- package/esm/color/LabelsColorMapSingleton.js.map +1 -0
- package/esm/color/SequentialScheme.js +97 -0
- package/esm/color/SequentialScheme.js.map +1 -0
- package/esm/color/SequentialSchemeRegistrySingleton.js +36 -0
- package/esm/color/SequentialSchemeRegistrySingleton.js.map +1 -0
- package/esm/color/colorSchemes/categorical/airbnb.js +46 -0
- package/esm/color/colorSchemes/categorical/airbnb.js.map +1 -0
- package/esm/color/colorSchemes/categorical/blueToGreen.js +45 -0
- package/esm/color/colorSchemes/categorical/blueToGreen.js.map +1 -0
- package/esm/color/colorSchemes/categorical/colorsOfRainbow.js +47 -0
- package/esm/color/colorSchemes/categorical/colorsOfRainbow.js.map +1 -0
- package/esm/color/colorSchemes/categorical/d3.js +121 -0
- package/esm/color/colorSchemes/categorical/d3.js.map +1 -0
- package/esm/color/colorSchemes/categorical/echarts.js +59 -0
- package/esm/color/colorSchemes/categorical/echarts.js.map +1 -0
- package/esm/color/colorSchemes/categorical/google.js +69 -0
- package/esm/color/colorSchemes/categorical/google.js.map +1 -0
- package/esm/color/colorSchemes/categorical/index.js +33 -0
- package/esm/color/colorSchemes/categorical/index.js.map +1 -0
- package/esm/color/colorSchemes/categorical/lyft.js +43 -0
- package/esm/color/colorSchemes/categorical/lyft.js.map +1 -0
- package/esm/color/colorSchemes/categorical/modernSunset.js +47 -0
- package/esm/color/colorSchemes/categorical/modernSunset.js.map +1 -0
- package/esm/color/colorSchemes/categorical/preset.js +57 -0
- package/esm/color/colorSchemes/categorical/preset.js.map +1 -0
- package/esm/color/colorSchemes/categorical/presetAndSuperset.js +47 -0
- package/esm/color/colorSchemes/categorical/presetAndSuperset.js.map +1 -0
- package/esm/color/colorSchemes/categorical/redToYellow.js +45 -0
- package/esm/color/colorSchemes/categorical/redToYellow.js.map +1 -0
- package/esm/color/colorSchemes/categorical/superset.js +57 -0
- package/esm/color/colorSchemes/categorical/superset.js.map +1 -0
- package/esm/color/colorSchemes/categorical/wavesOfBlue.js +45 -0
- package/esm/color/colorSchemes/categorical/wavesOfBlue.js.map +1 -0
- package/esm/color/colorSchemes/index.js +22 -0
- package/esm/color/colorSchemes/index.js.map +1 -0
- package/esm/color/colorSchemes/sequential/common.js +229 -0
- package/esm/color/colorSchemes/sequential/common.js.map +1 -0
- package/esm/color/colorSchemes/sequential/d3.js +530 -0
- package/esm/color/colorSchemes/sequential/d3.js.map +1 -0
- package/esm/color/colorSchemes/sequential/index.js +22 -0
- package/esm/color/colorSchemes/sequential/index.js.map +1 -0
- package/esm/color/index.js +43 -0
- package/esm/color/index.js.map +1 -0
- package/esm/color/stringifyAndTrim.js +27 -0
- package/esm/color/stringifyAndTrim.js.map +1 -0
- package/esm/color/types.js +36 -0
- package/esm/color/types.js.map +1 -0
- package/esm/color/utils.js +123 -0
- package/esm/color/utils.js.map +1 -0
- package/esm/components/SafeMarkdown.js +90 -0
- package/esm/components/SafeMarkdown.js.map +1 -0
- package/esm/components/constants.js +29 -0
- package/esm/components/constants.js.map +1 -0
- package/esm/components/index.js +22 -0
- package/esm/components/index.js.map +1 -0
- package/esm/connection/README.md +106 -0
- package/esm/connection/SupersetClient.js +56 -0
- package/esm/connection/SupersetClient.js.map +1 -0
- package/esm/connection/SupersetClientClass.js +279 -0
- package/esm/connection/SupersetClientClass.js.map +1 -0
- package/esm/connection/callApi/callApi.js +182 -0
- package/esm/connection/callApi/callApi.js.map +1 -0
- package/esm/connection/callApi/callApiAndParseWithTimeout.js +40 -0
- package/esm/connection/callApi/callApiAndParseWithTimeout.js.map +1 -0
- package/esm/connection/callApi/index.js +21 -0
- package/esm/connection/callApi/index.js.map +1 -0
- package/esm/connection/callApi/parseResponse.js +81 -0
- package/esm/connection/callApi/parseResponse.js.map +1 -0
- package/esm/connection/callApi/rejectAfterTimeout.js +35 -0
- package/esm/connection/callApi/rejectAfterTimeout.js.map +1 -0
- package/esm/connection/constants.js +42 -0
- package/esm/connection/constants.js.map +1 -0
- package/esm/connection/index.js +27 -0
- package/esm/connection/index.js.map +1 -0
- package/esm/connection/types.js +170 -0
- package/esm/connection/types.js.map +1 -0
- package/esm/currency-format/CurrencyFormatter.js +80 -0
- package/esm/currency-format/CurrencyFormatter.js.map +1 -0
- package/esm/currency-format/index.js +23 -0
- package/esm/currency-format/index.js.map +1 -0
- package/esm/currency-format/utils.js +100 -0
- package/esm/currency-format/utils.js.map +1 -0
- package/esm/dimension/computeMaxFontSize.js +95 -0
- package/esm/dimension/computeMaxFontSize.js.map +1 -0
- package/esm/dimension/getMultipleTextDimensions.js +85 -0
- package/esm/dimension/getMultipleTextDimensions.js.map +1 -0
- package/esm/dimension/getTextDimension.js +62 -0
- package/esm/dimension/getTextDimension.js.map +1 -0
- package/esm/dimension/index.js +28 -0
- package/esm/dimension/index.js.map +1 -0
- package/esm/dimension/mergeMargin.js +48 -0
- package/esm/dimension/mergeMargin.js.map +1 -0
- package/esm/dimension/parseLength.js +42 -0
- package/esm/dimension/parseLength.js.map +1 -0
- package/esm/dimension/svg/LazyFactory.js +61 -0
- package/esm/dimension/svg/LazyFactory.js.map +1 -0
- package/esm/dimension/svg/constants.js +22 -0
- package/esm/dimension/svg/constants.js.map +1 -0
- package/esm/dimension/svg/createHiddenSvgNode.js +34 -0
- package/esm/dimension/svg/createHiddenSvgNode.js.map +1 -0
- package/esm/dimension/svg/createTextNode.js +25 -0
- package/esm/dimension/svg/createTextNode.js.map +1 -0
- package/esm/dimension/svg/factories.js +26 -0
- package/esm/dimension/svg/factories.js.map +1 -0
- package/esm/dimension/svg/getBBoxCeil.js +35 -0
- package/esm/dimension/svg/getBBoxCeil.js.map +1 -0
- package/esm/dimension/svg/updateTextNode.js +72 -0
- package/esm/dimension/svg/updateTextNode.js.map +1 -0
- package/esm/dimension/types.js +42 -0
- package/esm/dimension/types.js.map +1 -0
- package/esm/dynamic-plugins/index.js +21 -0
- package/esm/dynamic-plugins/index.js.map +1 -0
- package/esm/dynamic-plugins/shared-modules.js +98 -0
- package/esm/dynamic-plugins/shared-modules.js.map +1 -0
- package/esm/hooks/index.js +26 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/useChangeEffect/index.js +21 -0
- package/esm/hooks/useChangeEffect/index.js.map +1 -0
- package/esm/hooks/useChangeEffect/useChangeEffect.js +39 -0
- package/esm/hooks/useChangeEffect/useChangeEffect.js.map +1 -0
- package/esm/hooks/useChangeEffect/useChangeEffect.test.js +55 -0
- package/esm/hooks/useChangeEffect/useChangeEffect.test.js.map +1 -0
- package/esm/hooks/useComponentDidMount/index.js +21 -0
- package/esm/hooks/useComponentDidMount/index.js.map +1 -0
- package/esm/hooks/useComponentDidMount/useComponentDidMount.js +25 -0
- package/esm/hooks/useComponentDidMount/useComponentDidMount.js.map +1 -0
- package/esm/hooks/useComponentDidMount/useComponentDidMount.test.js +29 -0
- package/esm/hooks/useComponentDidMount/useComponentDidMount.test.js.map +1 -0
- package/esm/hooks/useComponentDidUpdate/index.js +21 -0
- package/esm/hooks/useComponentDidUpdate/index.js.map +1 -0
- package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.js +36 -0
- package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.js.map +1 -0
- package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js +32 -0
- package/esm/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js.map +1 -0
- package/esm/hooks/useElementOnScreen/index.js +21 -0
- package/esm/hooks/useElementOnScreen/index.js.map +1 -0
- package/esm/hooks/useElementOnScreen/useElementOnScreen.js +47 -0
- package/esm/hooks/useElementOnScreen/useElementOnScreen.js.map +1 -0
- package/esm/hooks/useElementOnScreen/useElementOnScreen.test.js +111 -0
- package/esm/hooks/useElementOnScreen/useElementOnScreen.test.js.map +1 -0
- package/esm/hooks/usePrevious/index.js +21 -0
- package/esm/hooks/usePrevious/index.js.map +1 -0
- package/esm/hooks/usePrevious/usePrevious.js +37 -0
- package/esm/hooks/usePrevious/usePrevious.js.map +1 -0
- package/esm/hooks/usePrevious/usePrevious.test.js +44 -0
- package/esm/hooks/usePrevious/usePrevious.test.js.map +1 -0
- package/esm/hooks/useTruncation/index.js +24 -0
- package/esm/hooks/useTruncation/index.js.map +1 -0
- package/esm/hooks/useTruncation/useCSSTextTruncation.js +62 -0
- package/esm/hooks/useTruncation/useCSSTextTruncation.js.map +1 -0
- package/esm/hooks/useTruncation/useCSSTextTruncation.test.js +62 -0
- package/esm/hooks/useTruncation/useCSSTextTruncation.test.js.map +1 -0
- package/esm/hooks/useTruncation/useChildElementTruncation.js +95 -0
- package/esm/hooks/useTruncation/useChildElementTruncation.js.map +1 -0
- package/esm/hooks/useTruncation/useChildElementTruncation.test.js +223 -0
- package/esm/hooks/useTruncation/useChildElementTruncation.test.js.map +1 -0
- package/esm/index.js +41 -0
- package/esm/index.js.map +1 -0
- package/esm/math-expression/index.js +122 -0
- package/esm/math-expression/index.js.map +1 -0
- package/esm/models/ExtensibleFunction.js +31 -0
- package/esm/models/ExtensibleFunction.js.map +1 -0
- package/esm/models/Plugin.js +54 -0
- package/esm/models/Plugin.js.map +1 -0
- package/esm/models/Preset.js +57 -0
- package/esm/models/Preset.js.map +1 -0
- package/esm/models/Registry.js +286 -0
- package/esm/models/Registry.js.map +1 -0
- package/esm/models/RegistryWithDefaultKey.js +95 -0
- package/esm/models/RegistryWithDefaultKey.js.map +1 -0
- package/esm/models/TypedRegistry.js +61 -0
- package/esm/models/TypedRegistry.js.map +1 -0
- package/esm/models/index.js +25 -0
- package/esm/models/index.js.map +1 -0
- package/esm/number-format/D3FormatConfig.js +27 -0
- package/esm/number-format/D3FormatConfig.js.map +1 -0
- package/esm/number-format/NumberFormats.js +90 -0
- package/esm/number-format/NumberFormats.js.map +1 -0
- package/esm/number-format/NumberFormatter.js +87 -0
- package/esm/number-format/NumberFormatter.js.map +1 -0
- package/esm/number-format/NumberFormatterRegistry.js +86 -0
- package/esm/number-format/NumberFormatterRegistry.js.map +1 -0
- package/esm/number-format/NumberFormatterRegistrySingleton.js +41 -0
- package/esm/number-format/NumberFormatterRegistrySingleton.js.map +1 -0
- package/esm/number-format/README.md +82 -0
- package/esm/number-format/factories/createD3NumberFormatter.js +58 -0
- package/esm/number-format/factories/createD3NumberFormatter.js.map +1 -0
- package/esm/number-format/factories/createDurationFormatter.js +41 -0
- package/esm/number-format/factories/createDurationFormatter.js.map +1 -0
- package/esm/number-format/factories/createMemoryFormatter.js +56 -0
- package/esm/number-format/factories/createMemoryFormatter.js.map +1 -0
- package/esm/number-format/factories/createSiAtMostNDigitFormatter.js +46 -0
- package/esm/number-format/factories/createSiAtMostNDigitFormatter.js.map +1 -0
- package/esm/number-format/factories/createSmartNumberFormatter.js +71 -0
- package/esm/number-format/factories/createSmartNumberFormatter.js.map +1 -0
- package/esm/number-format/index.js +37 -0
- package/esm/number-format/index.js.map +1 -0
- package/esm/number-format/types.js +1 -0
- package/esm/number-format/types.js.map +1 -0
- package/esm/query/DatasourceKey.js +45 -0
- package/esm/query/DatasourceKey.js.map +1 -0
- package/esm/query/README.md +30 -0
- package/esm/query/api/legacy/getDatasourceMetadata.js +40 -0
- package/esm/query/api/legacy/getDatasourceMetadata.js.map +1 -0
- package/esm/query/api/legacy/getFormData.js +46 -0
- package/esm/query/api/legacy/getFormData.js.map +1 -0
- package/esm/query/api/legacy/index.js +25 -0
- package/esm/query/api/legacy/index.js.map +1 -0
- package/esm/query/api/legacy/types.js +27 -0
- package/esm/query/api/legacy/types.js.map +1 -0
- package/esm/query/api/types.js +1 -0
- package/esm/query/api/types.js.map +1 -0
- package/esm/query/api/v1/handleError.js +107 -0
- package/esm/query/api/v1/handleError.js.map +1 -0
- package/esm/query/api/v1/index.js +33 -0
- package/esm/query/api/v1/index.js.map +1 -0
- package/esm/query/api/v1/makeApi.js +159 -0
- package/esm/query/api/v1/makeApi.js.map +1 -0
- package/esm/query/api/v1/types.js +142 -0
- package/esm/query/api/v1/types.js.map +1 -0
- package/esm/query/buildQueryContext.js +72 -0
- package/esm/query/buildQueryContext.js.map +1 -0
- package/esm/query/buildQueryObject.js +141 -0
- package/esm/query/buildQueryObject.js.map +1 -0
- package/esm/query/constants.js +60 -0
- package/esm/query/constants.js.map +1 -0
- package/esm/query/convertFilter.js +57 -0
- package/esm/query/convertFilter.js.map +1 -0
- package/esm/query/extractExtras.js +84 -0
- package/esm/query/extractExtras.js.map +1 -0
- package/esm/query/extractQueryFields.js +129 -0
- package/esm/query/extractQueryFields.js.map +1 -0
- package/esm/query/extractTimegrain.js +39 -0
- package/esm/query/extractTimegrain.js.map +1 -0
- package/esm/query/getClientErrorObject.js +304 -0
- package/esm/query/getClientErrorObject.js.map +1 -0
- package/esm/query/getColumnLabel.js +31 -0
- package/esm/query/getColumnLabel.js.map +1 -0
- package/esm/query/getMetricLabel.js +36 -0
- package/esm/query/getMetricLabel.js.map +1 -0
- package/esm/query/getXAxis.js +52 -0
- package/esm/query/getXAxis.js.map +1 -0
- package/esm/query/index.js +48 -0
- package/esm/query/index.js.map +1 -0
- package/esm/query/normalizeOrderBy.js +80 -0
- package/esm/query/normalizeOrderBy.js.map +1 -0
- package/esm/query/normalizeTimeColumn.js +82 -0
- package/esm/query/normalizeTimeColumn.js.map +1 -0
- package/esm/query/processExtraFormData.js +50 -0
- package/esm/query/processExtraFormData.js.map +1 -0
- package/esm/query/processFilters.js +76 -0
- package/esm/query/processFilters.js.map +1 -0
- package/esm/query/types/AdvancedAnalytics.js +44 -0
- package/esm/query/types/AdvancedAnalytics.js.map +1 -0
- package/esm/query/types/AnnotationLayer.js +185 -0
- package/esm/query/types/AnnotationLayer.js.map +1 -0
- package/esm/query/types/Column.js +82 -0
- package/esm/query/types/Column.js.map +1 -0
- package/esm/query/types/Dashboard.js +171 -0
- package/esm/query/types/Dashboard.js.map +1 -0
- package/esm/query/types/Datasource.js +65 -0
- package/esm/query/types/Datasource.js.map +1 -0
- package/esm/query/types/Filter.js +100 -0
- package/esm/query/types/Filter.js.map +1 -0
- package/esm/query/types/Metric.js +98 -0
- package/esm/query/types/Metric.js.map +1 -0
- package/esm/query/types/Operator.js +75 -0
- package/esm/query/types/Operator.js.map +1 -0
- package/esm/query/types/PostProcessing.js +360 -0
- package/esm/query/types/PostProcessing.js.map +1 -0
- package/esm/query/types/Query.js +486 -0
- package/esm/query/types/Query.js.map +1 -0
- package/esm/query/types/QueryFormData.js +212 -0
- package/esm/query/types/QueryFormData.js.map +1 -0
- package/esm/query/types/QueryResponse.js +98 -0
- package/esm/query/types/QueryResponse.js.map +1 -0
- package/esm/query/types/Time.js +40 -0
- package/esm/query/types/Time.js.map +1 -0
- package/esm/query/types/index.js +43 -0
- package/esm/query/types/index.js.map +1 -0
- package/esm/style/index.js +174 -0
- package/esm/style/index.js.map +1 -0
- package/esm/time-comparison/README.md +47 -0
- package/esm/time-comparison/customTimeRangeDecode.js +174 -0
- package/esm/time-comparison/customTimeRangeDecode.js.map +1 -0
- package/esm/time-comparison/fetchTimeRange.js +113 -0
- package/esm/time-comparison/fetchTimeRange.js.map +1 -0
- package/esm/time-comparison/getComparisonFilters.js +68 -0
- package/esm/time-comparison/getComparisonFilters.js.map +1 -0
- package/esm/time-comparison/getComparisonInfo.js +66 -0
- package/esm/time-comparison/getComparisonInfo.js.map +1 -0
- package/esm/time-comparison/getTimeOffset.js +319 -0
- package/esm/time-comparison/getTimeOffset.js.map +1 -0
- package/esm/time-comparison/index.js +31 -0
- package/esm/time-comparison/index.js.map +1 -0
- package/esm/time-comparison/types.js +25 -0
- package/esm/time-comparison/types.js.map +1 -0
- package/esm/time-format/D3FormatConfig.js +66 -0
- package/esm/time-format/D3FormatConfig.js.map +1 -0
- package/esm/time-format/README.md +68 -0
- package/esm/time-format/TimeFormats.js +39 -0
- package/esm/time-format/TimeFormats.js.map +1 -0
- package/esm/time-format/TimeFormatsForGranularity.js +50 -0
- package/esm/time-format/TimeFormatsForGranularity.js.map +1 -0
- package/esm/time-format/TimeFormatter.js +77 -0
- package/esm/time-format/TimeFormatter.js.map +1 -0
- package/esm/time-format/TimeFormatterRegistry.js +78 -0
- package/esm/time-format/TimeFormatterRegistry.js.map +1 -0
- package/esm/time-format/TimeFormatterRegistrySingleton.js +92 -0
- package/esm/time-format/TimeFormatterRegistrySingleton.js.map +1 -0
- package/esm/time-format/TimeRangeFormatter.js +69 -0
- package/esm/time-format/TimeRangeFormatter.js.map +1 -0
- package/esm/time-format/factories/createD3TimeFormatter.js +65 -0
- package/esm/time-format/factories/createD3TimeFormatter.js.map +1 -0
- package/esm/time-format/factories/createMultiFormatter.js +124 -0
- package/esm/time-format/factories/createMultiFormatter.js.map +1 -0
- package/esm/time-format/formatters/finestTemporalGrain.js +81 -0
- package/esm/time-format/formatters/finestTemporalGrain.js.map +1 -0
- package/esm/time-format/formatters/finestTemporalGrain.test.js +64 -0
- package/esm/time-format/formatters/finestTemporalGrain.test.js.map +1 -0
- package/esm/time-format/formatters/smartDate.js +42 -0
- package/esm/time-format/formatters/smartDate.js.map +1 -0
- package/esm/time-format/formatters/smartDateDetailed.js +44 -0
- package/esm/time-format/formatters/smartDateDetailed.js.map +1 -0
- package/esm/time-format/formatters/smartDateVerbose.js +42 -0
- package/esm/time-format/formatters/smartDateVerbose.js.map +1 -0
- package/esm/time-format/index.js +54 -0
- package/esm/time-format/index.js.map +1 -0
- package/esm/time-format/types.js +48 -0
- package/esm/time-format/types.js.map +1 -0
- package/esm/time-format/utils/createTime.js +41 -0
- package/esm/time-format/utils/createTime.js.map +1 -0
- package/esm/time-format/utils/createTimeRangeFromGranularity.js +112 -0
- package/esm/time-format/utils/createTimeRangeFromGranularity.js.map +1 -0
- package/esm/time-format/utils/d3Time.js +142 -0
- package/esm/time-format/utils/d3Time.js.map +1 -0
- package/esm/time-format/utils/denormalizeTimestamp.js +29 -0
- package/esm/time-format/utils/denormalizeTimestamp.js.map +1 -0
- package/esm/time-format/utils/normalizeTimestamp.js +29 -0
- package/esm/time-format/utils/normalizeTimestamp.js.map +1 -0
- package/esm/time-format/utils/stringifyTimeInput.js +30 -0
- package/esm/time-format/utils/stringifyTimeInput.js.map +1 -0
- package/esm/translation/README.md +71 -0
- package/esm/translation/Translator.js +106 -0
- package/esm/translation/Translator.js.map +1 -0
- package/esm/translation/TranslatorSingleton.js +82 -0
- package/esm/translation/TranslatorSingleton.js.map +1 -0
- package/esm/translation/index.js +26 -0
- package/esm/translation/index.js.map +1 -0
- package/esm/translation/types/index.js +74 -0
- package/esm/translation/types/index.js.map +1 -0
- package/esm/translation/types/jed.js +57 -0
- package/esm/translation/types/jed.js.map +1 -0
- package/esm/types/index.js +23 -0
- package/esm/types/index.js.map +1 -0
- package/esm/ui-overrides/ExtensionsRegistry.js +32 -0
- package/esm/ui-overrides/ExtensionsRegistry.js.map +1 -0
- package/esm/ui-overrides/index.js +21 -0
- package/esm/ui-overrides/index.js.map +1 -0
- package/esm/ui-overrides/types.js +1 -0
- package/esm/ui-overrides/types.js.map +1 -0
- package/esm/utils/convertKeysToCamelCase.js +34 -0
- package/esm/utils/convertKeysToCamelCase.js.map +1 -0
- package/esm/utils/ensureIsArray.js +30 -0
- package/esm/utils/ensureIsArray.js.map +1 -0
- package/esm/utils/ensureIsInt.js +28 -0
- package/esm/utils/ensureIsInt.js.map +1 -0
- package/esm/utils/featureFlags.js +105 -0
- package/esm/utils/featureFlags.js.map +1 -0
- package/esm/utils/getSelectedText.js +20 -0
- package/esm/utils/getSelectedText.js.map +1 -0
- package/esm/utils/html.js +122 -0
- package/esm/utils/html.js.map +1 -0
- package/esm/utils/html.test.js +192 -0
- package/esm/utils/html.test.js.map +1 -0
- package/esm/utils/index.js +36 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/isDefined.js +23 -0
- package/esm/utils/isDefined.js.map +1 -0
- package/esm/utils/isEqualArray.js +34 -0
- package/esm/utils/isEqualArray.js.map +1 -0
- package/esm/utils/isEqualArray.test.js +32 -0
- package/esm/utils/isEqualArray.test.js.map +1 -0
- package/esm/utils/isRequired.js +23 -0
- package/esm/utils/isRequired.js.map +1 -0
- package/esm/utils/logging.js +39 -0
- package/esm/utils/logging.js.map +1 -0
- package/esm/utils/lruCache.js +75 -0
- package/esm/utils/lruCache.js.map +1 -0
- package/esm/utils/makeSingleton.js +38 -0
- package/esm/utils/makeSingleton.js.map +1 -0
- package/esm/utils/promiseTimeout.js +33 -0
- package/esm/utils/promiseTimeout.js.map +1 -0
- package/esm/utils/random.js +28 -0
- package/esm/utils/random.js.map +1 -0
- package/esm/utils/removeDuplicates.js +39 -0
- package/esm/utils/removeDuplicates.js.map +1 -0
- package/esm/utils/tooltip.js +58 -0
- package/esm/utils/tooltip.js.map +1 -0
- package/esm/utils/typedMemo.js +22 -0
- package/esm/utils/typedMemo.js.map +1 -0
- package/esm/validator/index.js +28 -0
- package/esm/validator/index.js.map +1 -0
- package/esm/validator/legacyValidateInteger.js +35 -0
- package/esm/validator/legacyValidateInteger.js.map +1 -0
- package/esm/validator/legacyValidateNumber.js +32 -0
- package/esm/validator/legacyValidateNumber.js.map +1 -0
- package/esm/validator/validateInteger.js +34 -0
- package/esm/validator/validateInteger.js.map +1 -0
- package/esm/validator/validateMapboxStylesUrl.js +37 -0
- package/esm/validator/validateMapboxStylesUrl.js.map +1 -0
- package/esm/validator/validateMaxValue.js +27 -0
- package/esm/validator/validateMaxValue.js.map +1 -0
- package/esm/validator/validateNonEmpty.js +33 -0
- package/esm/validator/validateNonEmpty.js.map +1 -0
- package/esm/validator/validateNumber.js +34 -0
- package/esm/validator/validateNumber.js.map +1 -0
- package/esm/validator/validateTimeComparisonRangeValues.js +38 -0
- package/esm/validator/validateTimeComparisonRangeValues.js.map +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/types/core.d.ts +30 -0
- package/lib/api/types/core.d.ts.map +1 -0
- package/lib/api/types/core.js +19 -0
- package/lib/api/types/core.js.map +1 -0
- package/lib/chart/clients/ChartClient.d.ts +34 -0
- package/lib/chart/clients/ChartClient.d.ts.map +1 -0
- package/lib/chart/clients/ChartClient.js +119 -0
- package/lib/chart/clients/ChartClient.js.map +1 -0
- package/lib/chart/components/ChartDataProvider.d.ts +52 -0
- package/lib/chart/components/ChartDataProvider.d.ts.map +1 -0
- package/lib/chart/components/ChartDataProvider.js +171 -0
- package/lib/chart/components/ChartDataProvider.js.map +1 -0
- package/lib/chart/components/ChartDataProvider.jsx +97 -0
- package/lib/chart/components/ChartDataProvider.jsx.map +1 -0
- package/lib/chart/components/FallbackComponent.d.ts +5 -0
- package/lib/chart/components/FallbackComponent.d.ts.map +1 -0
- package/lib/chart/components/FallbackComponent.js +61 -0
- package/lib/chart/components/FallbackComponent.js.map +1 -0
- package/lib/chart/components/FallbackComponent.jsx +41 -0
- package/lib/chart/components/FallbackComponent.jsx.map +1 -0
- package/lib/chart/components/NoResultsComponent.d.ts +9 -0
- package/lib/chart/components/NoResultsComponent.d.ts.map +1 -0
- package/lib/chart/components/NoResultsComponent.js +88 -0
- package/lib/chart/components/NoResultsComponent.js.map +1 -0
- package/lib/chart/components/NoResultsComponent.jsx +57 -0
- package/lib/chart/components/NoResultsComponent.jsx.map +1 -0
- package/lib/chart/components/SuperChart.d.ts +108 -0
- package/lib/chart/components/SuperChart.d.ts.map +1 -0
- package/lib/chart/components/SuperChart.js +267 -0
- package/lib/chart/components/SuperChart.js.map +1 -0
- package/lib/chart/components/SuperChart.jsx +121 -0
- package/lib/chart/components/SuperChart.jsx.map +1 -0
- package/lib/chart/components/SuperChartCore.d.ts +59 -0
- package/lib/chart/components/SuperChartCore.d.ts.map +1 -0
- package/lib/chart/components/SuperChartCore.js +236 -0
- package/lib/chart/components/SuperChartCore.js.map +1 -0
- package/lib/chart/components/SuperChartCore.jsx +139 -0
- package/lib/chart/components/SuperChartCore.jsx.map +1 -0
- package/lib/chart/components/createLoadableRenderer.d.ts +12 -0
- package/lib/chart/components/createLoadableRenderer.d.ts.map +1 -0
- package/lib/chart/components/createLoadableRenderer.js +52 -0
- package/lib/chart/components/createLoadableRenderer.js.map +1 -0
- package/lib/chart/components/reactify.d.ts +16 -0
- package/lib/chart/components/reactify.d.ts.map +1 -0
- package/lib/chart/components/reactify.js +115 -0
- package/lib/chart/components/reactify.js.map +1 -0
- package/lib/chart/components/reactify.jsx +69 -0
- package/lib/chart/components/reactify.jsx.map +1 -0
- package/lib/chart/index.d.ts +24 -0
- package/lib/chart/index.d.ts.map +1 -0
- package/lib/chart/index.js +40 -0
- package/lib/chart/index.js.map +1 -0
- package/lib/chart/models/ChartControlPanel.d.ts +4 -0
- package/lib/chart/models/ChartControlPanel.d.ts.map +1 -0
- package/lib/chart/models/ChartControlPanel.js +20 -0
- package/lib/chart/models/ChartControlPanel.js.map +1 -0
- package/lib/chart/models/ChartMetadata.d.ts +57 -0
- package/lib/chart/models/ChartMetadata.d.ts.map +1 -0
- package/lib/chart/models/ChartMetadata.js +74 -0
- package/lib/chart/models/ChartMetadata.js.map +1 -0
- package/lib/chart/models/ChartPlugin.d.ts +44 -0
- package/lib/chart/models/ChartPlugin.d.ts.map +1 -0
- package/lib/chart/models/ChartPlugin.js +92 -0
- package/lib/chart/models/ChartPlugin.js.map +1 -0
- package/lib/chart/models/ChartProps.d.ts +99 -0
- package/lib/chart/models/ChartProps.d.ts.map +1 -0
- package/lib/chart/models/ChartProps.js +95 -0
- package/lib/chart/models/ChartProps.js.map +1 -0
- package/lib/chart/registries/ChartBuildQueryRegistrySingleton.d.ts +17 -0
- package/lib/chart/registries/ChartBuildQueryRegistrySingleton.d.ts.map +1 -0
- package/lib/chart/registries/ChartBuildQueryRegistrySingleton.js +27 -0
- package/lib/chart/registries/ChartBuildQueryRegistrySingleton.js.map +1 -0
- package/lib/chart/registries/ChartComponentRegistrySingleton.d.ts +8 -0
- package/lib/chart/registries/ChartComponentRegistrySingleton.d.ts.map +1 -0
- package/lib/chart/registries/ChartComponentRegistrySingleton.js +27 -0
- package/lib/chart/registries/ChartComponentRegistrySingleton.js.map +1 -0
- package/lib/chart/registries/ChartControlPanelRegistrySingleton.d.ts +8 -0
- package/lib/chart/registries/ChartControlPanelRegistrySingleton.d.ts.map +1 -0
- package/lib/chart/registries/ChartControlPanelRegistrySingleton.js +27 -0
- package/lib/chart/registries/ChartControlPanelRegistrySingleton.js.map +1 -0
- package/lib/chart/registries/ChartMetadataRegistrySingleton.d.ts +8 -0
- package/lib/chart/registries/ChartMetadataRegistrySingleton.d.ts.map +1 -0
- package/lib/chart/registries/ChartMetadataRegistrySingleton.js +27 -0
- package/lib/chart/registries/ChartMetadataRegistrySingleton.js.map +1 -0
- package/lib/chart/registries/ChartTransformPropsRegistrySingleton.d.ts +8 -0
- package/lib/chart/registries/ChartTransformPropsRegistrySingleton.d.ts.map +1 -0
- package/lib/chart/registries/ChartTransformPropsRegistrySingleton.js +30 -0
- package/lib/chart/registries/ChartTransformPropsRegistrySingleton.js.map +1 -0
- package/lib/chart/types/Annotation.d.ts +5 -0
- package/lib/chart/types/Annotation.d.ts.map +1 -0
- package/lib/chart/types/Annotation.js +20 -0
- package/lib/chart/types/Annotation.js.map +1 -0
- package/lib/chart/types/Base.d.ts +67 -0
- package/lib/chart/types/Base.d.ts.map +1 -0
- package/lib/chart/types/Base.js +63 -0
- package/lib/chart/types/Base.js.map +1 -0
- package/lib/chart/types/QueryResponse.d.ts +25 -0
- package/lib/chart/types/QueryResponse.d.ts.map +1 -0
- package/lib/chart/types/QueryResponse.js +20 -0
- package/lib/chart/types/QueryResponse.js.map +1 -0
- package/lib/chart/types/TransformFunction.d.ts +21 -0
- package/lib/chart/types/TransformFunction.d.ts.map +1 -0
- package/lib/chart/types/TransformFunction.js +20 -0
- package/lib/chart/types/TransformFunction.js.map +1 -0
- package/lib/chart/types/VizType.d.ts +55 -0
- package/lib/chart/types/VizType.d.ts.map +1 -0
- package/lib/chart/types/VizType.js +74 -0
- package/lib/chart/types/VizType.js.map +1 -0
- package/lib/chart-composition/ChartFrame.d.ts +19 -0
- package/lib/chart-composition/ChartFrame.d.ts.map +1 -0
- package/lib/chart-composition/ChartFrame.js +76 -0
- package/lib/chart-composition/ChartFrame.js.map +1 -0
- package/lib/chart-composition/ChartFrame.jsx +48 -0
- package/lib/chart-composition/ChartFrame.jsx.map +1 -0
- package/lib/chart-composition/index.d.ts +5 -0
- package/lib/chart-composition/index.d.ts.map +1 -0
- package/lib/chart-composition/index.js +23 -0
- package/lib/chart-composition/index.js.map +1 -0
- package/lib/chart-composition/legend/WithLegend.d.ts +35 -0
- package/lib/chart-composition/legend/WithLegend.d.ts.map +1 -0
- package/lib/chart-composition/legend/WithLegend.js +147 -0
- package/lib/chart-composition/legend/WithLegend.js.map +1 -0
- package/lib/chart-composition/legend/WithLegend.jsx +105 -0
- package/lib/chart-composition/legend/WithLegend.jsx.map +1 -0
- package/lib/chart-composition/tooltip/TooltipFrame.d.ts +16 -0
- package/lib/chart-composition/tooltip/TooltipFrame.d.ts.map +1 -0
- package/lib/chart-composition/tooltip/TooltipFrame.js +48 -0
- package/lib/chart-composition/tooltip/TooltipFrame.js.map +1 -0
- package/lib/chart-composition/tooltip/TooltipFrame.jsx +34 -0
- package/lib/chart-composition/tooltip/TooltipFrame.jsx.map +1 -0
- package/lib/chart-composition/tooltip/TooltipTable.d.ts +25 -0
- package/lib/chart-composition/tooltip/TooltipTable.d.ts.map +1 -0
- package/lib/chart-composition/tooltip/TooltipTable.js +71 -0
- package/lib/chart-composition/tooltip/TooltipTable.js.map +1 -0
- package/lib/chart-composition/tooltip/TooltipTable.jsx +43 -0
- package/lib/chart-composition/tooltip/TooltipTable.jsx.map +1 -0
- package/lib/color/CategoricalColorNamespace.d.ts +32 -0
- package/lib/color/CategoricalColorNamespace.d.ts.map +1 -0
- package/lib/color/CategoricalColorNamespace.js +91 -0
- package/lib/color/CategoricalColorNamespace.js.map +1 -0
- package/lib/color/CategoricalColorScale.d.ts +132 -0
- package/lib/color/CategoricalColorScale.d.ts.map +1 -0
- package/lib/color/CategoricalColorScale.js +255 -0
- package/lib/color/CategoricalColorScale.js.map +1 -0
- package/lib/color/CategoricalScheme.d.ts +4 -0
- package/lib/color/CategoricalScheme.d.ts.map +1 -0
- package/lib/color/CategoricalScheme.js +22 -0
- package/lib/color/CategoricalScheme.js.map +1 -0
- package/lib/color/CategoricalSchemeRegistrySingleton.d.ts +8 -0
- package/lib/color/CategoricalSchemeRegistrySingleton.d.ts.map +1 -0
- package/lib/color/CategoricalSchemeRegistrySingleton.js +30 -0
- package/lib/color/CategoricalSchemeRegistrySingleton.js.map +1 -0
- package/lib/color/ColorScheme.d.ts +19 -0
- package/lib/color/ColorScheme.d.ts.map +1 -0
- package/lib/color/ColorScheme.js +35 -0
- package/lib/color/ColorScheme.js.map +1 -0
- package/lib/color/ColorSchemeRegistry.d.ts +6 -0
- package/lib/color/ColorSchemeRegistry.d.ts.map +1 -0
- package/lib/color/ColorSchemeRegistry.js +40 -0
- package/lib/color/ColorSchemeRegistry.js.map +1 -0
- package/lib/color/LabelsColorMapSingleton.d.ts +58 -0
- package/lib/color/LabelsColorMapSingleton.d.ts.map +1 -0
- package/lib/color/LabelsColorMapSingleton.js +141 -0
- package/lib/color/LabelsColorMapSingleton.js.map +1 -0
- package/lib/color/SequentialScheme.d.ts +30 -0
- package/lib/color/SequentialScheme.d.ts.map +1 -0
- package/lib/color/SequentialScheme.js +67 -0
- package/lib/color/SequentialScheme.js.map +1 -0
- package/lib/color/SequentialSchemeRegistrySingleton.d.ts +8 -0
- package/lib/color/SequentialSchemeRegistrySingleton.d.ts.map +1 -0
- package/lib/color/SequentialSchemeRegistrySingleton.js +30 -0
- package/lib/color/SequentialSchemeRegistrySingleton.js.map +1 -0
- package/lib/color/colorSchemes/categorical/airbnb.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/airbnb.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/airbnb.js +43 -0
- package/lib/color/colorSchemes/categorical/airbnb.js.map +1 -0
- package/lib/color/colorSchemes/categorical/blueToGreen.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/blueToGreen.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/blueToGreen.js +42 -0
- package/lib/color/colorSchemes/categorical/blueToGreen.js.map +1 -0
- package/lib/color/colorSchemes/categorical/colorsOfRainbow.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/colorsOfRainbow.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/colorsOfRainbow.js +44 -0
- package/lib/color/colorSchemes/categorical/colorsOfRainbow.js.map +1 -0
- package/lib/color/colorSchemes/categorical/d3.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/d3.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/d3.js +118 -0
- package/lib/color/colorSchemes/categorical/d3.js.map +1 -0
- package/lib/color/colorSchemes/categorical/echarts.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/echarts.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/echarts.js +56 -0
- package/lib/color/colorSchemes/categorical/echarts.js.map +1 -0
- package/lib/color/colorSchemes/categorical/google.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/google.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/google.js +66 -0
- package/lib/color/colorSchemes/categorical/google.js.map +1 -0
- package/lib/color/colorSchemes/categorical/index.d.ts +14 -0
- package/lib/color/colorSchemes/categorical/index.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/index.js +32 -0
- package/lib/color/colorSchemes/categorical/index.js.map +1 -0
- package/lib/color/colorSchemes/categorical/lyft.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/lyft.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/lyft.js +40 -0
- package/lib/color/colorSchemes/categorical/lyft.js.map +1 -0
- package/lib/color/colorSchemes/categorical/modernSunset.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/modernSunset.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/modernSunset.js +44 -0
- package/lib/color/colorSchemes/categorical/modernSunset.js.map +1 -0
- package/lib/color/colorSchemes/categorical/preset.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/preset.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/preset.js +54 -0
- package/lib/color/colorSchemes/categorical/preset.js.map +1 -0
- package/lib/color/colorSchemes/categorical/presetAndSuperset.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/presetAndSuperset.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/presetAndSuperset.js +44 -0
- package/lib/color/colorSchemes/categorical/presetAndSuperset.js.map +1 -0
- package/lib/color/colorSchemes/categorical/redToYellow.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/redToYellow.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/redToYellow.js +42 -0
- package/lib/color/colorSchemes/categorical/redToYellow.js.map +1 -0
- package/lib/color/colorSchemes/categorical/superset.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/superset.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/superset.js +54 -0
- package/lib/color/colorSchemes/categorical/superset.js.map +1 -0
- package/lib/color/colorSchemes/categorical/wavesOfBlue.d.ts +4 -0
- package/lib/color/colorSchemes/categorical/wavesOfBlue.d.ts.map +1 -0
- package/lib/color/colorSchemes/categorical/wavesOfBlue.js +42 -0
- package/lib/color/colorSchemes/categorical/wavesOfBlue.js.map +1 -0
- package/lib/color/colorSchemes/index.d.ts +3 -0
- package/lib/color/colorSchemes/index.d.ts.map +1 -0
- package/lib/color/colorSchemes/index.js +21 -0
- package/lib/color/colorSchemes/index.js.map +1 -0
- package/lib/color/colorSchemes/sequential/common.d.ts +4 -0
- package/lib/color/colorSchemes/sequential/common.d.ts.map +1 -0
- package/lib/color/colorSchemes/sequential/common.js +226 -0
- package/lib/color/colorSchemes/sequential/common.js.map +1 -0
- package/lib/color/colorSchemes/sequential/d3.d.ts +4 -0
- package/lib/color/colorSchemes/sequential/d3.d.ts.map +1 -0
- package/lib/color/colorSchemes/sequential/d3.js +527 -0
- package/lib/color/colorSchemes/sequential/d3.js.map +1 -0
- package/lib/color/colorSchemes/sequential/index.d.ts +3 -0
- package/lib/color/colorSchemes/sequential/index.d.ts.map +1 -0
- package/lib/color/colorSchemes/sequential/index.js +21 -0
- package/lib/color/colorSchemes/sequential/index.js.map +1 -0
- package/lib/color/index.d.ts +18 -0
- package/lib/color/index.d.ts.map +1 -0
- package/lib/color/index.js +36 -0
- package/lib/color/index.js.map +1 -0
- package/lib/color/stringifyAndTrim.d.ts +6 -0
- package/lib/color/stringifyAndTrim.d.ts.map +1 -0
- package/lib/color/stringifyAndTrim.js +26 -0
- package/lib/color/stringifyAndTrim.js.map +1 -0
- package/lib/color/types.d.ts +18 -0
- package/lib/color/types.d.ts.map +1 -0
- package/lib/color/types.js +25 -0
- package/lib/color/types.js.map +1 -0
- package/lib/color/utils.d.ts +6 -0
- package/lib/color/utils.d.ts.map +1 -0
- package/lib/color/utils.js +113 -0
- package/lib/color/utils.js.map +1 -0
- package/lib/components/SafeMarkdown.d.ts +11 -0
- package/lib/components/SafeMarkdown.d.ts.map +1 -0
- package/lib/components/SafeMarkdown.js +90 -0
- package/lib/components/SafeMarkdown.js.map +1 -0
- package/lib/components/SafeMarkdown.jsx +57 -0
- package/lib/components/SafeMarkdown.jsx.map +1 -0
- package/lib/components/constants.d.ts +27 -0
- package/lib/components/constants.d.ts.map +1 -0
- package/lib/components/constants.js +27 -0
- package/lib/components/constants.js.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +21 -0
- package/lib/components/index.js.map +1 -0
- package/lib/connection/README.md +106 -0
- package/lib/connection/SupersetClient.d.ts +4 -0
- package/lib/connection/SupersetClient.d.ts.map +1 -0
- package/lib/connection/SupersetClient.js +48 -0
- package/lib/connection/SupersetClient.js.map +1 -0
- package/lib/connection/SupersetClientClass.d.ts +45 -0
- package/lib/connection/SupersetClientClass.d.ts.map +1 -0
- package/lib/connection/SupersetClientClass.js +187 -0
- package/lib/connection/SupersetClientClass.js.map +1 -0
- package/lib/connection/callApi/callApi.d.ts +11 -0
- package/lib/connection/callApi/callApi.d.ts.map +1 -0
- package/lib/connection/callApi/callApi.js +145 -0
- package/lib/connection/callApi/callApi.js.map +1 -0
- package/lib/connection/callApi/callApiAndParseWithTimeout.d.ts +6 -0
- package/lib/connection/callApi/callApiAndParseWithTimeout.d.ts.map +1 -0
- package/lib/connection/callApi/callApiAndParseWithTimeout.js +29 -0
- package/lib/connection/callApi/callApiAndParseWithTimeout.js.map +1 -0
- package/lib/connection/callApi/index.d.ts +2 -0
- package/lib/connection/callApi/index.d.ts.map +1 -0
- package/lib/connection/callApi/index.js +20 -0
- package/lib/connection/callApi/index.js.map +1 -0
- package/lib/connection/callApi/parseResponse.d.ts +3 -0
- package/lib/connection/callApi/parseResponse.d.ts.map +1 -0
- package/lib/connection/callApi/parseResponse.js +63 -0
- package/lib/connection/callApi/parseResponse.js.map +1 -0
- package/lib/connection/callApi/rejectAfterTimeout.d.ts +2 -0
- package/lib/connection/callApi/rejectAfterTimeout.d.ts.map +1 -0
- package/lib/connection/callApi/rejectAfterTimeout.js +31 -0
- package/lib/connection/callApi/rejectAfterTimeout.js.map +1 -0
- package/lib/connection/constants.d.ts +11 -0
- package/lib/connection/constants.d.ts.map +1 -0
- package/lib/connection/constants.js +34 -0
- package/lib/connection/constants.js.map +1 -0
- package/lib/connection/index.d.ts +7 -0
- package/lib/connection/index.d.ts.map +1 -0
- package/lib/connection/index.js +25 -0
- package/lib/connection/index.js.map +1 -0
- package/lib/connection/types.d.ts +132 -0
- package/lib/connection/types.d.ts.map +1 -0
- package/lib/connection/types.js +2 -0
- package/lib/connection/types.js.map +1 -0
- package/lib/currency-format/CurrencyFormatter.d.ts +40 -0
- package/lib/currency-format/CurrencyFormatter.d.ts.map +1 -0
- package/lib/currency-format/CurrencyFormatter.js +55 -0
- package/lib/currency-format/CurrencyFormatter.js.map +1 -0
- package/lib/currency-format/index.d.ts +4 -0
- package/lib/currency-format/index.d.ts.map +1 -0
- package/lib/currency-format/index.js +22 -0
- package/lib/currency-format/index.js.map +1 -0
- package/lib/currency-format/utils.d.ts +23 -0
- package/lib/currency-format/utils.d.ts.map +1 -0
- package/lib/currency-format/utils.js +61 -0
- package/lib/currency-format/utils.js.map +1 -0
- package/lib/dimension/computeMaxFontSize.d.ts +7 -0
- package/lib/dimension/computeMaxFontSize.d.ts.map +1 -0
- package/lib/dimension/computeMaxFontSize.js +64 -0
- package/lib/dimension/computeMaxFontSize.js.map +1 -0
- package/lib/dimension/getMultipleTextDimensions.d.ts +13 -0
- package/lib/dimension/getMultipleTextDimensions.d.ts.map +1 -0
- package/lib/dimension/getMultipleTextDimensions.js +67 -0
- package/lib/dimension/getMultipleTextDimensions.js.map +1 -0
- package/lib/dimension/getTextDimension.d.ts +9 -0
- package/lib/dimension/getTextDimension.d.ts.map +1 -0
- package/lib/dimension/getTextDimension.js +45 -0
- package/lib/dimension/getTextDimension.js.map +1 -0
- package/lib/dimension/index.d.ts +8 -0
- package/lib/dimension/index.d.ts.map +1 -0
- package/lib/dimension/index.js +26 -0
- package/lib/dimension/index.js.map +1 -0
- package/lib/dimension/mergeMargin.d.ts +8 -0
- package/lib/dimension/mergeMargin.d.ts.map +1 -0
- package/lib/dimension/mergeMargin.js +36 -0
- package/lib/dimension/mergeMargin.js.map +1 -0
- package/lib/dimension/parseLength.d.ts +8 -0
- package/lib/dimension/parseLength.d.ts.map +1 -0
- package/lib/dimension/parseLength.js +32 -0
- package/lib/dimension/parseLength.js.map +1 -0
- package/lib/dimension/svg/LazyFactory.d.ts +8 -0
- package/lib/dimension/svg/LazyFactory.d.ts.map +1 -0
- package/lib/dimension/svg/LazyFactory.js +47 -0
- package/lib/dimension/svg/LazyFactory.js.map +1 -0
- package/lib/dimension/svg/constants.d.ts +2 -0
- package/lib/dimension/svg/constants.d.ts.map +1 -0
- package/lib/dimension/svg/constants.js +21 -0
- package/lib/dimension/svg/constants.js.map +1 -0
- package/lib/dimension/svg/createHiddenSvgNode.d.ts +2 -0
- package/lib/dimension/svg/createHiddenSvgNode.d.ts.map +1 -0
- package/lib/dimension/svg/createHiddenSvgNode.js +31 -0
- package/lib/dimension/svg/createHiddenSvgNode.js.map +1 -0
- package/lib/dimension/svg/createTextNode.d.ts +2 -0
- package/lib/dimension/svg/createTextNode.d.ts.map +1 -0
- package/lib/dimension/svg/createTextNode.js +23 -0
- package/lib/dimension/svg/createTextNode.js.map +1 -0
- package/lib/dimension/svg/factories.d.ts +4 -0
- package/lib/dimension/svg/factories.d.ts.map +1 -0
- package/lib/dimension/svg/factories.js +24 -0
- package/lib/dimension/svg/factories.js.map +1 -0
- package/lib/dimension/svg/getBBoxCeil.d.ts +6 -0
- package/lib/dimension/svg/getBBoxCeil.d.ts.map +1 -0
- package/lib/dimension/svg/getBBoxCeil.js +27 -0
- package/lib/dimension/svg/getBBoxCeil.js.map +1 -0
- package/lib/dimension/svg/updateTextNode.d.ts +7 -0
- package/lib/dimension/svg/updateTextNode.d.ts.map +1 -0
- package/lib/dimension/svg/updateTextNode.js +50 -0
- package/lib/dimension/svg/updateTextNode.js.map +1 -0
- package/lib/dimension/types.d.ts +21 -0
- package/lib/dimension/types.d.ts.map +1 -0
- package/lib/dimension/types.js +20 -0
- package/lib/dimension/types.js.map +1 -0
- package/lib/dynamic-plugins/index.d.ts +20 -0
- package/lib/dynamic-plugins/index.d.ts.map +1 -0
- package/lib/dynamic-plugins/index.js +20 -0
- package/lib/dynamic-plugins/index.js.map +1 -0
- package/lib/dynamic-plugins/shared-modules.d.ts +46 -0
- package/lib/dynamic-plugins/shared-modules.d.ts.map +1 -0
- package/lib/dynamic-plugins/shared-modules.js +68 -0
- package/lib/dynamic-plugins/shared-modules.js.map +1 -0
- package/lib/hooks/index.d.ts +25 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +25 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useChangeEffect/index.d.ts +20 -0
- package/lib/hooks/useChangeEffect/index.d.ts.map +1 -0
- package/lib/hooks/useChangeEffect/index.js +20 -0
- package/lib/hooks/useChangeEffect/index.js.map +1 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.d.ts +25 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.d.ts.map +1 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.js +34 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.js.map +1 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.test.d.ts +2 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.test.d.ts.map +1 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.test.js +46 -0
- package/lib/hooks/useChangeEffect/useChangeEffect.test.js.map +1 -0
- package/lib/hooks/useComponentDidMount/index.d.ts +20 -0
- package/lib/hooks/useComponentDidMount/index.d.ts.map +1 -0
- package/lib/hooks/useComponentDidMount/index.js +20 -0
- package/lib/hooks/useComponentDidMount/index.js.map +1 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.d.ts +21 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.d.ts.map +1 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.js +24 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.js.map +1 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.test.d.ts +2 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.test.d.ts.map +1 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.test.js +28 -0
- package/lib/hooks/useComponentDidMount/useComponentDidMount.test.js.map +1 -0
- package/lib/hooks/useComponentDidUpdate/index.d.ts +20 -0
- package/lib/hooks/useComponentDidUpdate/index.d.ts.map +1 -0
- package/lib/hooks/useComponentDidUpdate/index.js +20 -0
- package/lib/hooks/useComponentDidUpdate/index.js.map +1 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.d.ts +21 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.d.ts.map +1 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.js +32 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.js.map +1 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.d.ts +2 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.d.ts.map +1 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js +31 -0
- package/lib/hooks/useComponentDidUpdate/useComponentDidUpdate.test.js.map +1 -0
- package/lib/hooks/useElementOnScreen/index.d.ts +20 -0
- package/lib/hooks/useElementOnScreen/index.d.ts.map +1 -0
- package/lib/hooks/useElementOnScreen/index.js +20 -0
- package/lib/hooks/useElementOnScreen/index.js.map +1 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.d.ts +21 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.d.ts.map +1 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.js +41 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.js.map +1 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.test.d.ts +2 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.test.d.ts.map +1 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.test.js +85 -0
- package/lib/hooks/useElementOnScreen/useElementOnScreen.test.js.map +1 -0
- package/lib/hooks/usePrevious/index.d.ts +20 -0
- package/lib/hooks/usePrevious/index.d.ts.map +1 -0
- package/lib/hooks/usePrevious/index.js +20 -0
- package/lib/hooks/usePrevious/index.js.map +1 -0
- package/lib/hooks/usePrevious/usePrevious.d.ts +26 -0
- package/lib/hooks/usePrevious/usePrevious.d.ts.map +1 -0
- package/lib/hooks/usePrevious/usePrevious.js +28 -0
- package/lib/hooks/usePrevious/usePrevious.js.map +1 -0
- package/lib/hooks/usePrevious/usePrevious.test.d.ts +2 -0
- package/lib/hooks/usePrevious/usePrevious.test.d.ts.map +1 -0
- package/lib/hooks/usePrevious/usePrevious.test.js +40 -0
- package/lib/hooks/usePrevious/usePrevious.test.js.map +1 -0
- package/lib/hooks/useTruncation/index.d.ts +22 -0
- package/lib/hooks/useTruncation/index.d.ts.map +1 -0
- package/lib/hooks/useTruncation/index.js +22 -0
- package/lib/hooks/useTruncation/index.js.map +1 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.d.ts +33 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.d.ts.map +1 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.js +52 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.js.map +1 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.d.ts +2 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.d.ts.map +1 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.js +62 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.js.map +1 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.jsx +48 -0
- package/lib/hooks/useTruncation/useCSSTextTruncation.test.jsx.map +1 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.d.ts +12 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.d.ts.map +1 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.js +86 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.js.map +1 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.test.d.ts +2 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.test.d.ts.map +1 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.test.js +161 -0
- package/lib/hooks/useTruncation/useChildElementTruncation.test.js.map +1 -0
- package/lib/index.d.ts +40 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +40 -0
- package/lib/index.js.map +1 -0
- package/lib/math-expression/index.d.ts +3 -0
- package/lib/math-expression/index.d.ts.map +1 -0
- package/lib/math-expression/index.js +118 -0
- package/lib/math-expression/index.js.map +1 -0
- package/lib/models/ExtensibleFunction.d.ts +7 -0
- package/lib/models/ExtensibleFunction.d.ts.map +1 -0
- package/lib/models/ExtensibleFunction.js +29 -0
- package/lib/models/ExtensibleFunction.js.map +1 -0
- package/lib/models/Plugin.d.ts +13 -0
- package/lib/models/Plugin.d.ts.map +1 -0
- package/lib/models/Plugin.js +41 -0
- package/lib/models/Plugin.js.map +1 -0
- package/lib/models/Preset.d.ts +15 -0
- package/lib/models/Preset.d.ts.map +1 -0
- package/lib/models/Preset.js +41 -0
- package/lib/models/Preset.js.map +1 -0
- package/lib/models/Registry.d.ts +99 -0
- package/lib/models/Registry.d.ts.map +1 -0
- package/lib/models/Registry.js +191 -0
- package/lib/models/Registry.js.map +1 -0
- package/lib/models/RegistryWithDefaultKey.d.ts +20 -0
- package/lib/models/RegistryWithDefaultKey.d.ts.map +1 -0
- package/lib/models/RegistryWithDefaultKey.js +68 -0
- package/lib/models/RegistryWithDefaultKey.js.map +1 -0
- package/lib/models/TypedRegistry.d.ts +47 -0
- package/lib/models/TypedRegistry.d.ts.map +1 -0
- package/lib/models/TypedRegistry.js +55 -0
- package/lib/models/TypedRegistry.js.map +1 -0
- package/lib/models/index.d.ts +25 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/index.js +25 -0
- package/lib/models/index.js.map +1 -0
- package/lib/number-format/D3FormatConfig.d.ts +21 -0
- package/lib/number-format/D3FormatConfig.d.ts.map +1 -0
- package/lib/number-format/D3FormatConfig.js +7 -0
- package/lib/number-format/D3FormatConfig.js.map +1 -0
- package/lib/number-format/NumberFormats.d.ts +33 -0
- package/lib/number-format/NumberFormats.d.ts.map +1 -0
- package/lib/number-format/NumberFormats.js +80 -0
- package/lib/number-format/NumberFormats.js.map +1 -0
- package/lib/number-format/NumberFormatter.d.ts +43 -0
- package/lib/number-format/NumberFormatter.d.ts.map +1 -0
- package/lib/number-format/NumberFormatter.js +54 -0
- package/lib/number-format/NumberFormatter.js.map +1 -0
- package/lib/number-format/NumberFormatterRegistry.d.ts +29 -0
- package/lib/number-format/NumberFormatterRegistry.d.ts.map +1 -0
- package/lib/number-format/NumberFormatterRegistry.js +43 -0
- package/lib/number-format/NumberFormatterRegistry.js.map +1 -0
- package/lib/number-format/NumberFormatterRegistrySingleton.d.ts +26 -0
- package/lib/number-format/NumberFormatterRegistrySingleton.d.ts.map +1 -0
- package/lib/number-format/NumberFormatterRegistrySingleton.js +14 -0
- package/lib/number-format/NumberFormatterRegistrySingleton.js.map +1 -0
- package/lib/number-format/README.md +82 -0
- package/lib/number-format/factories/createD3NumberFormatter.d.ts +27 -0
- package/lib/number-format/factories/createD3NumberFormatter.d.ts.map +1 -0
- package/lib/number-format/factories/createD3NumberFormatter.js +44 -0
- package/lib/number-format/factories/createD3NumberFormatter.js.map +1 -0
- package/lib/number-format/factories/createDurationFormatter.d.ts +9 -0
- package/lib/number-format/factories/createDurationFormatter.d.ts.map +1 -0
- package/lib/number-format/factories/createDurationFormatter.js +30 -0
- package/lib/number-format/factories/createDurationFormatter.js.map +1 -0
- package/lib/number-format/factories/createMemoryFormatter.d.ts +9 -0
- package/lib/number-format/factories/createMemoryFormatter.d.ts.map +1 -0
- package/lib/number-format/factories/createMemoryFormatter.js +40 -0
- package/lib/number-format/factories/createMemoryFormatter.js.map +1 -0
- package/lib/number-format/factories/createSiAtMostNDigitFormatter.d.ts +8 -0
- package/lib/number-format/factories/createSiAtMostNDigitFormatter.d.ts.map +1 -0
- package/lib/number-format/factories/createSiAtMostNDigitFormatter.js +35 -0
- package/lib/number-format/factories/createSiAtMostNDigitFormatter.js.map +1 -0
- package/lib/number-format/factories/createSmartNumberFormatter.d.ts +8 -0
- package/lib/number-format/factories/createSmartNumberFormatter.d.ts.map +1 -0
- package/lib/number-format/factories/createSmartNumberFormatter.js +58 -0
- package/lib/number-format/factories/createSmartNumberFormatter.js.map +1 -0
- package/lib/number-format/index.d.ts +11 -0
- package/lib/number-format/index.d.ts.map +1 -0
- package/lib/number-format/index.js +29 -0
- package/lib/number-format/index.js.map +1 -0
- package/lib/number-format/types.d.ts +2 -0
- package/lib/number-format/types.d.ts.map +1 -0
- package/lib/number-format/types.js +20 -0
- package/lib/number-format/types.js.map +1 -0
- package/lib/query/DatasourceKey.d.ts +12 -0
- package/lib/query/DatasourceKey.d.ts.map +1 -0
- package/lib/query/DatasourceKey.js +39 -0
- package/lib/query/DatasourceKey.js.map +1 -0
- package/lib/query/README.md +30 -0
- package/lib/query/api/legacy/getDatasourceMetadata.d.ts +7 -0
- package/lib/query/api/legacy/getDatasourceMetadata.d.ts.map +1 -0
- package/lib/query/api/legacy/getDatasourceMetadata.js +28 -0
- package/lib/query/api/legacy/getDatasourceMetadata.js.map +1 -0
- package/lib/query/api/legacy/getFormData.d.ts +8 -0
- package/lib/query/api/legacy/getFormData.d.ts.map +1 -0
- package/lib/query/api/legacy/getFormData.js +31 -0
- package/lib/query/api/legacy/getFormData.js.map +1 -0
- package/lib/query/api/legacy/index.d.ts +5 -0
- package/lib/query/api/legacy/index.d.ts.map +1 -0
- package/lib/query/api/legacy/index.js +23 -0
- package/lib/query/api/legacy/index.js.map +1 -0
- package/lib/query/api/legacy/types.d.ts +25 -0
- package/lib/query/api/legacy/types.d.ts.map +1 -0
- package/lib/query/api/legacy/types.js +2 -0
- package/lib/query/api/legacy/types.js.map +1 -0
- package/lib/query/api/types.d.ts +24 -0
- package/lib/query/api/types.d.ts.map +1 -0
- package/lib/query/api/types.js +2 -0
- package/lib/query/api/types.js.map +1 -0
- package/lib/query/api/v1/handleError.d.ts +26 -0
- package/lib/query/api/v1/handleError.d.ts.map +1 -0
- package/lib/query/api/v1/handleError.js +97 -0
- package/lib/query/api/v1/handleError.js.map +1 -0
- package/lib/query/api/v1/index.d.ts +20 -0
- package/lib/query/api/v1/index.d.ts.map +1 -0
- package/lib/query/api/v1/index.js +30 -0
- package/lib/query/api/v1/index.js.map +1 -0
- package/lib/query/api/v1/makeApi.d.ts +40 -0
- package/lib/query/api/v1/makeApi.d.ts.map +1 -0
- package/lib/query/api/v1/makeApi.js +91 -0
- package/lib/query/api/v1/makeApi.js.map +1 -0
- package/lib/query/api/v1/types.d.ts +80 -0
- package/lib/query/api/v1/types.d.ts.map +1 -0
- package/lib/query/api/v1/types.js +54 -0
- package/lib/query/api/v1/types.js.map +1 -0
- package/lib/query/buildQueryContext.d.ts +14 -0
- package/lib/query/buildQueryContext.d.ts.map +1 -0
- package/lib/query/buildQueryContext.js +50 -0
- package/lib/query/buildQueryContext.js.map +1 -0
- package/lib/query/buildQueryObject.d.ts +11 -0
- package/lib/query/buildQueryObject.d.ts.map +1 -0
- package/lib/query/buildQueryObject.js +89 -0
- package/lib/query/buildQueryObject.js.map +1 -0
- package/lib/query/constants.d.ts +27 -0
- package/lib/query/constants.d.ts.map +1 -0
- package/lib/query/constants.js +24 -0
- package/lib/query/constants.js.map +1 -0
- package/lib/query/convertFilter.d.ts +4 -0
- package/lib/query/convertFilter.d.ts.map +1 -0
- package/lib/query/convertFilter.js +44 -0
- package/lib/query/convertFilter.js.map +1 -0
- package/lib/query/extractExtras.d.ts +16 -0
- package/lib/query/extractExtras.d.ts.map +1 -0
- package/lib/query/extractExtras.js +55 -0
- package/lib/query/extractExtras.js.map +1 -0
- package/lib/query/extractQueryFields.d.ts +11 -0
- package/lib/query/extractQueryFields.d.ts.map +1 -0
- package/lib/query/extractQueryFields.js +105 -0
- package/lib/query/extractQueryFields.js.map +1 -0
- package/lib/query/extractTimegrain.d.ts +22 -0
- package/lib/query/extractTimegrain.d.ts.map +1 -0
- package/lib/query/extractTimegrain.js +31 -0
- package/lib/query/extractTimegrain.js.map +1 -0
- package/lib/query/getClientErrorObject.d.ts +48 -0
- package/lib/query/getClientErrorObject.d.ts.map +1 -0
- package/lib/query/getClientErrorObject.js +226 -0
- package/lib/query/getClientErrorObject.js.map +1 -0
- package/lib/query/getColumnLabel.d.ts +21 -0
- package/lib/query/getColumnLabel.d.ts.map +1 -0
- package/lib/query/getColumnLabel.js +29 -0
- package/lib/query/getColumnLabel.js.map +1 -0
- package/lib/query/getMetricLabel.d.ts +3 -0
- package/lib/query/getMetricLabel.d.ts.map +1 -0
- package/lib/query/getMetricLabel.js +32 -0
- package/lib/query/getMetricLabel.js.map +1 -0
- package/lib/query/getXAxis.d.ts +23 -0
- package/lib/query/getXAxis.d.ts.map +1 -0
- package/lib/query/getXAxis.js +38 -0
- package/lib/query/getXAxis.js.map +1 -0
- package/lib/query/index.d.ts +43 -0
- package/lib/query/index.d.ts.map +1 -0
- package/lib/query/index.js +44 -0
- package/lib/query/index.js.map +1 -0
- package/lib/query/normalizeOrderBy.d.ts +3 -0
- package/lib/query/normalizeOrderBy.d.ts.map +1 -0
- package/lib/query/normalizeOrderBy.js +64 -0
- package/lib/query/normalizeOrderBy.js.map +1 -0
- package/lib/query/normalizeTimeColumn.d.ts +3 -0
- package/lib/query/normalizeTimeColumn.d.ts.map +1 -0
- package/lib/query/normalizeTimeColumn.js +62 -0
- package/lib/query/normalizeTimeColumn.js.map +1 -0
- package/lib/query/processExtraFormData.d.ts +21 -0
- package/lib/query/processExtraFormData.d.ts.map +1 -0
- package/lib/query/processExtraFormData.js +22 -0
- package/lib/query/processExtraFormData.js.map +1 -0
- package/lib/query/processFilters.d.ts +4 -0
- package/lib/query/processFilters.d.ts.map +1 -0
- package/lib/query/processFilters.js +67 -0
- package/lib/query/processFilters.js.map +1 -0
- package/lib/query/types/AdvancedAnalytics.d.ts +42 -0
- package/lib/query/types/AdvancedAnalytics.d.ts.map +1 -0
- package/lib/query/types/AdvancedAnalytics.js +35 -0
- package/lib/query/types/AdvancedAnalytics.js.map +1 -0
- package/lib/query/types/AnnotationLayer.d.ts +110 -0
- package/lib/query/types/AnnotationLayer.d.ts.map +1 -0
- package/lib/query/types/AnnotationLayer.js +68 -0
- package/lib/query/types/AnnotationLayer.js.map +1 -0
- package/lib/query/types/Column.d.ts +61 -0
- package/lib/query/types/Column.d.ts.map +1 -0
- package/lib/query/types/Column.js +33 -0
- package/lib/query/types/Column.js.map +1 -0
- package/lib/query/types/Dashboard.d.ts +120 -0
- package/lib/query/types/Dashboard.d.ts.map +1 -0
- package/lib/query/types/Dashboard.js +48 -0
- package/lib/query/types/Dashboard.js.map +1 -0
- package/lib/query/types/Datasource.d.ts +55 -0
- package/lib/query/types/Datasource.d.ts.map +1 -0
- package/lib/query/types/Datasource.js +16 -0
- package/lib/query/types/Datasource.js.map +1 -0
- package/lib/query/types/Filter.d.ts +35 -0
- package/lib/query/types/Filter.d.ts.map +1 -0
- package/lib/query/types/Filter.js +38 -0
- package/lib/query/types/Filter.js.map +1 -0
- package/lib/query/types/Metric.d.ts +68 -0
- package/lib/query/types/Metric.d.ts.map +1 -0
- package/lib/query/types/Metric.js +16 -0
- package/lib/query/types/Metric.js.map +1 -0
- package/lib/query/types/Operator.d.ts +17 -0
- package/lib/query/types/Operator.d.ts.map +1 -0
- package/lib/query/types/Operator.js +52 -0
- package/lib/query/types/Operator.js.map +1 -0
- package/lib/query/types/PostProcessing.d.ts +208 -0
- package/lib/query/types/PostProcessing.d.ts.map +1 -0
- package/lib/query/types/PostProcessing.js +51 -0
- package/lib/query/types/PostProcessing.js.map +1 -0
- package/lib/query/types/Query.d.ts +384 -0
- package/lib/query/types/Query.d.ts.map +1 -0
- package/lib/query/types/Query.js +233 -0
- package/lib/query/types/Query.js.map +1 -0
- package/lib/query/types/QueryFormData.d.ts +168 -0
- package/lib/query/types/QueryFormData.d.ts.map +1 -0
- package/lib/query/types/QueryFormData.js +29 -0
- package/lib/query/types/QueryFormData.js.map +1 -0
- package/lib/query/types/QueryResponse.d.ts +83 -0
- package/lib/query/types/QueryResponse.d.ts.map +1 -0
- package/lib/query/types/QueryResponse.js +30 -0
- package/lib/query/types/QueryResponse.js.map +1 -0
- package/lib/query/types/Time.d.ts +12 -0
- package/lib/query/types/Time.d.ts.map +1 -0
- package/lib/query/types/Time.js +20 -0
- package/lib/query/types/Time.js.map +1 -0
- package/lib/query/types/index.d.ts +42 -0
- package/lib/query/types/index.d.ts.map +1 -0
- package/lib/query/types/index.js +41 -0
- package/lib/query/types/index.js.map +1 -0
- package/lib/style/index.d.ts +236 -0
- package/lib/style/index.d.ts.map +1 -0
- package/lib/style/index.js +174 -0
- package/lib/style/index.js.map +1 -0
- package/lib/style/index.jsx +148 -0
- package/lib/style/index.jsx.map +1 -0
- package/lib/time-comparison/README.md +47 -0
- package/lib/time-comparison/customTimeRangeDecode.d.ts +22 -0
- package/lib/time-comparison/customTimeRangeDecode.d.ts.map +1 -0
- package/lib/time-comparison/customTimeRangeDecode.js +135 -0
- package/lib/time-comparison/customTimeRangeDecode.js.map +1 -0
- package/lib/time-comparison/fetchTimeRange.d.ts +12 -0
- package/lib/time-comparison/fetchTimeRange.d.ts.map +1 -0
- package/lib/time-comparison/fetchTimeRange.js +74 -0
- package/lib/time-comparison/fetchTimeRange.js.map +1 -0
- package/lib/time-comparison/getComparisonFilters.d.ts +31 -0
- package/lib/time-comparison/getComparisonFilters.d.ts.map +1 -0
- package/lib/time-comparison/getComparisonFilters.js +47 -0
- package/lib/time-comparison/getComparisonFilters.js.map +1 -0
- package/lib/time-comparison/getComparisonInfo.d.ts +31 -0
- package/lib/time-comparison/getComparisonInfo.d.ts.map +1 -0
- package/lib/time-comparison/getComparisonInfo.js +56 -0
- package/lib/time-comparison/getComparisonInfo.js.map +1 -0
- package/lib/time-comparison/getTimeOffset.d.ts +11 -0
- package/lib/time-comparison/getTimeOffset.d.ts.map +1 -0
- package/lib/time-comparison/getTimeOffset.js +266 -0
- package/lib/time-comparison/getTimeOffset.js.map +1 -0
- package/lib/time-comparison/index.d.ts +7 -0
- package/lib/time-comparison/index.d.ts.map +1 -0
- package/lib/time-comparison/index.js +25 -0
- package/lib/time-comparison/index.js.map +1 -0
- package/lib/time-comparison/types.d.ts +30 -0
- package/lib/time-comparison/types.d.ts.map +1 -0
- package/lib/time-comparison/types.js +30 -0
- package/lib/time-comparison/types.js.map +1 -0
- package/lib/time-format/D3FormatConfig.d.ts +21 -0
- package/lib/time-format/D3FormatConfig.d.ts.map +1 -0
- package/lib/time-format/D3FormatConfig.js +63 -0
- package/lib/time-format/D3FormatConfig.js.map +1 -0
- package/lib/time-format/README.md +68 -0
- package/lib/time-format/TimeFormats.d.ts +11 -0
- package/lib/time-format/TimeFormats.d.ts.map +1 -0
- package/lib/time-format/TimeFormats.js +35 -0
- package/lib/time-format/TimeFormats.js.map +1 -0
- package/lib/time-format/TimeFormatsForGranularity.d.ts +7 -0
- package/lib/time-format/TimeFormatsForGranularity.d.ts.map +1 -0
- package/lib/time-format/TimeFormatsForGranularity.js +46 -0
- package/lib/time-format/TimeFormatsForGranularity.js.map +1 -0
- package/lib/time-format/TimeFormatter.d.ts +42 -0
- package/lib/time-format/TimeFormatter.d.ts.map +1 -0
- package/lib/time-format/TimeFormatter.js +46 -0
- package/lib/time-format/TimeFormatter.js.map +1 -0
- package/lib/time-format/TimeFormatterRegistry.d.ts +29 -0
- package/lib/time-format/TimeFormatterRegistry.d.ts.map +1 -0
- package/lib/time-format/TimeFormatterRegistry.js +60 -0
- package/lib/time-format/TimeFormatterRegistry.js.map +1 -0
- package/lib/time-format/TimeFormatterRegistrySingleton.d.ts +17 -0
- package/lib/time-format/TimeFormatterRegistrySingleton.d.ts.map +1 -0
- package/lib/time-format/TimeFormatterRegistrySingleton.js +65 -0
- package/lib/time-format/TimeFormatterRegistrySingleton.js.map +1 -0
- package/lib/time-format/TimeRangeFormatter.d.ts +40 -0
- package/lib/time-format/TimeRangeFormatter.d.ts.map +1 -0
- package/lib/time-format/TimeRangeFormatter.js +40 -0
- package/lib/time-format/TimeRangeFormatter.js.map +1 -0
- package/lib/time-format/factories/createD3TimeFormatter.d.ts +28 -0
- package/lib/time-format/factories/createD3TimeFormatter.d.ts.map +1 -0
- package/lib/time-format/factories/createD3TimeFormatter.js +45 -0
- package/lib/time-format/factories/createD3TimeFormatter.js.map +1 -0
- package/lib/time-format/factories/createMultiFormatter.d.ts +22 -0
- package/lib/time-format/factories/createMultiFormatter.d.ts.map +1 -0
- package/lib/time-format/factories/createMultiFormatter.js +70 -0
- package/lib/time-format/factories/createMultiFormatter.js.map +1 -0
- package/lib/time-format/formatters/finestTemporalGrain.d.ts +3 -0
- package/lib/time-format/formatters/finestTemporalGrain.d.ts.map +1 -0
- package/lib/time-format/formatters/finestTemporalGrain.js +64 -0
- package/lib/time-format/formatters/finestTemporalGrain.js.map +1 -0
- package/lib/time-format/formatters/finestTemporalGrain.test.d.ts +2 -0
- package/lib/time-format/formatters/finestTemporalGrain.test.d.ts.map +1 -0
- package/lib/time-format/formatters/finestTemporalGrain.test.js +44 -0
- package/lib/time-format/formatters/finestTemporalGrain.test.js.map +1 -0
- package/lib/time-format/formatters/smartDate.d.ts +4 -0
- package/lib/time-format/formatters/smartDate.d.ts.map +1 -0
- package/lib/time-format/formatters/smartDate.js +38 -0
- package/lib/time-format/formatters/smartDate.js.map +1 -0
- package/lib/time-format/formatters/smartDateDetailed.d.ts +4 -0
- package/lib/time-format/formatters/smartDateDetailed.d.ts.map +1 -0
- package/lib/time-format/formatters/smartDateDetailed.js +38 -0
- package/lib/time-format/formatters/smartDateDetailed.js.map +1 -0
- package/lib/time-format/formatters/smartDateVerbose.d.ts +4 -0
- package/lib/time-format/formatters/smartDateVerbose.d.ts.map +1 -0
- package/lib/time-format/formatters/smartDateVerbose.js +38 -0
- package/lib/time-format/formatters/smartDateVerbose.js.map +1 -0
- package/lib/time-format/index.d.ts +14 -0
- package/lib/time-format/index.d.ts.map +1 -0
- package/lib/time-format/index.js +32 -0
- package/lib/time-format/index.js.map +1 -0
- package/lib/time-format/types.d.ts +28 -0
- package/lib/time-format/types.d.ts.map +1 -0
- package/lib/time-format/types.js +41 -0
- package/lib/time-format/types.js.map +1 -0
- package/lib/time-format/utils/createTime.d.ts +2 -0
- package/lib/time-format/utils/createTime.d.ts.map +1 -0
- package/lib/time-format/utils/createTime.js +31 -0
- package/lib/time-format/utils/createTime.js.map +1 -0
- package/lib/time-format/utils/createTimeRangeFromGranularity.d.ts +3 -0
- package/lib/time-format/utils/createTimeRangeFromGranularity.d.ts.map +1 -0
- package/lib/time-format/utils/createTimeRangeFromGranularity.js +83 -0
- package/lib/time-format/utils/createTimeRangeFromGranularity.js.map +1 -0
- package/lib/time-format/utils/d3Time.d.ts +63 -0
- package/lib/time-format/utils/d3Time.d.ts.map +1 -0
- package/lib/time-format/utils/d3Time.js +101 -0
- package/lib/time-format/utils/d3Time.js.map +1 -0
- package/lib/time-format/utils/denormalizeTimestamp.d.ts +2 -0
- package/lib/time-format/utils/denormalizeTimestamp.d.ts.map +1 -0
- package/lib/time-format/utils/denormalizeTimestamp.js +27 -0
- package/lib/time-format/utils/denormalizeTimestamp.js.map +1 -0
- package/lib/time-format/utils/normalizeTimestamp.d.ts +3 -0
- package/lib/time-format/utils/normalizeTimestamp.d.ts.map +1 -0
- package/lib/time-format/utils/normalizeTimestamp.js +27 -0
- package/lib/time-format/utils/normalizeTimestamp.js.map +1 -0
- package/lib/time-format/utils/stringifyTimeInput.d.ts +2 -0
- package/lib/time-format/utils/stringifyTimeInput.d.ts.map +1 -0
- package/lib/time-format/utils/stringifyTimeInput.js +25 -0
- package/lib/time-format/utils/stringifyTimeInput.js.map +1 -0
- package/lib/translation/README.md +71 -0
- package/lib/translation/Translator.d.ts +18 -0
- package/lib/translation/Translator.d.ts.map +1 -0
- package/lib/translation/Translator.js +89 -0
- package/lib/translation/Translator.js.map +1 -0
- package/lib/translation/TranslatorSingleton.d.ts +11 -0
- package/lib/translation/TranslatorSingleton.d.ts.map +1 -0
- package/lib/translation/TranslatorSingleton.js +59 -0
- package/lib/translation/TranslatorSingleton.js.map +1 -0
- package/lib/translation/index.d.ts +6 -0
- package/lib/translation/index.d.ts.map +1 -0
- package/lib/translation/index.js +23 -0
- package/lib/translation/index.js.map +1 -0
- package/lib/translation/types/index.d.ts +55 -0
- package/lib/translation/types/index.d.ts.map +1 -0
- package/lib/translation/types/index.js +4 -0
- package/lib/translation/types/index.js.map +1 -0
- package/lib/translation/types/jed.d.ts +31 -0
- package/lib/translation/types/jed.d.ts.map +1 -0
- package/lib/translation/types/jed.js +20 -0
- package/lib/translation/types/jed.js.map +1 -0
- package/lib/types/index.d.ts +26 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -0
- package/lib/ui-overrides/ExtensionsRegistry.d.ts +30 -0
- package/lib/ui-overrides/ExtensionsRegistry.d.ts.map +1 -0
- package/lib/ui-overrides/ExtensionsRegistry.js +29 -0
- package/lib/ui-overrides/ExtensionsRegistry.js.map +1 -0
- package/lib/ui-overrides/index.d.ts +21 -0
- package/lib/ui-overrides/index.d.ts.map +1 -0
- package/lib/ui-overrides/index.js +21 -0
- package/lib/ui-overrides/index.js.map +1 -0
- package/lib/ui-overrides/index.jsx +21 -0
- package/lib/ui-overrides/index.jsx.map +1 -0
- package/lib/ui-overrides/types.d.ts +192 -0
- package/lib/ui-overrides/types.d.ts.map +1 -0
- package/lib/ui-overrides/types.js +2 -0
- package/lib/ui-overrides/types.js.map +1 -0
- package/lib/utils/convertKeysToCamelCase.d.ts +2 -0
- package/lib/utils/convertKeysToCamelCase.d.ts.map +1 -0
- package/lib/utils/convertKeysToCamelCase.js +30 -0
- package/lib/utils/convertKeysToCamelCase.js.map +1 -0
- package/lib/utils/ensureIsArray.d.ts +24 -0
- package/lib/utils/ensureIsArray.d.ts.map +1 -0
- package/lib/utils/ensureIsArray.js +29 -0
- package/lib/utils/ensureIsArray.js.map +1 -0
- package/lib/utils/ensureIsInt.d.ts +20 -0
- package/lib/utils/ensureIsInt.d.ts.map +1 -0
- package/lib/utils/ensureIsInt.js +24 -0
- package/lib/utils/ensureIsInt.js.map +1 -0
- package/lib/utils/featureFlags.d.ts +66 -0
- package/lib/utils/featureFlags.d.ts.map +1 -0
- package/lib/utils/featureFlags.js +80 -0
- package/lib/utils/featureFlags.js.map +1 -0
- package/lib/utils/getSelectedText.d.ts +20 -0
- package/lib/utils/getSelectedText.d.ts.map +1 -0
- package/lib/utils/getSelectedText.js +20 -0
- package/lib/utils/getSelectedText.js.map +1 -0
- package/lib/utils/html.d.ts +12 -0
- package/lib/utils/html.d.ts.map +1 -0
- package/lib/utils/html.js +122 -0
- package/lib/utils/html.js.map +1 -0
- package/lib/utils/html.jsx +96 -0
- package/lib/utils/html.jsx.map +1 -0
- package/lib/utils/html.test.d.ts +2 -0
- package/lib/utils/html.test.d.ts.map +1 -0
- package/lib/utils/html.test.js +192 -0
- package/lib/utils/html.test.js.map +1 -0
- package/lib/utils/html.test.jsx +152 -0
- package/lib/utils/html.test.jsx.map +1 -0
- package/lib/utils/index.d.ts +36 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +36 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/isDefined.d.ts +2 -0
- package/lib/utils/isDefined.d.ts.map +1 -0
- package/lib/utils/isDefined.js +22 -0
- package/lib/utils/isDefined.js.map +1 -0
- package/lib/utils/isEqualArray.d.ts +20 -0
- package/lib/utils/isEqualArray.d.ts.map +1 -0
- package/lib/utils/isEqualArray.js +27 -0
- package/lib/utils/isEqualArray.js.map +1 -0
- package/lib/utils/isEqualArray.test.d.ts +2 -0
- package/lib/utils/isEqualArray.test.d.ts.map +1 -0
- package/lib/utils/isEqualArray.test.js +31 -0
- package/lib/utils/isEqualArray.test.js.map +1 -0
- package/lib/utils/isRequired.d.ts +2 -0
- package/lib/utils/isRequired.d.ts.map +1 -0
- package/lib/utils/isRequired.js +22 -0
- package/lib/utils/isRequired.js.map +1 -0
- package/lib/utils/logging.d.ts +55 -0
- package/lib/utils/logging.d.ts.map +1 -0
- package/lib/utils/logging.js +36 -0
- package/lib/utils/logging.js.map +1 -0
- package/lib/utils/lruCache.d.ts +31 -0
- package/lib/utils/lruCache.d.ts.map +1 -0
- package/lib/utils/lruCache.js +65 -0
- package/lib/utils/lruCache.js.map +1 -0
- package/lib/utils/makeSingleton.d.ts +6 -0
- package/lib/utils/makeSingleton.d.ts.map +1 -0
- package/lib/utils/makeSingleton.js +28 -0
- package/lib/utils/makeSingleton.js.map +1 -0
- package/lib/utils/promiseTimeout.d.ts +7 -0
- package/lib/utils/promiseTimeout.d.ts.map +1 -0
- package/lib/utils/promiseTimeout.js +31 -0
- package/lib/utils/promiseTimeout.js.map +1 -0
- package/lib/utils/random.d.ts +22 -0
- package/lib/utils/random.d.ts.map +1 -0
- package/lib/utils/random.js +26 -0
- package/lib/utils/random.js.map +1 -0
- package/lib/utils/removeDuplicates.d.ts +24 -0
- package/lib/utils/removeDuplicates.d.ts.map +1 -0
- package/lib/utils/removeDuplicates.js +36 -0
- package/lib/utils/removeDuplicates.js.map +1 -0
- package/lib/utils/tooltip.d.ts +2 -0
- package/lib/utils/tooltip.d.ts.map +1 -0
- package/lib/utils/tooltip.js +51 -0
- package/lib/utils/tooltip.js.map +1 -0
- package/lib/utils/typedMemo.d.ts +2 -0
- package/lib/utils/typedMemo.d.ts.map +1 -0
- package/lib/utils/typedMemo.js +21 -0
- package/lib/utils/typedMemo.js.map +1 -0
- package/lib/validator/index.d.ts +9 -0
- package/lib/validator/index.d.ts.map +1 -0
- package/lib/validator/index.js +27 -0
- package/lib/validator/index.js.map +1 -0
- package/lib/validator/legacyValidateInteger.d.ts +6 -0
- package/lib/validator/legacyValidateInteger.d.ts.map +1 -0
- package/lib/validator/legacyValidateInteger.js +31 -0
- package/lib/validator/legacyValidateInteger.js.map +1 -0
- package/lib/validator/legacyValidateNumber.d.ts +6 -0
- package/lib/validator/legacyValidateNumber.d.ts.map +1 -0
- package/lib/validator/legacyValidateNumber.js +30 -0
- package/lib/validator/legacyValidateNumber.js.map +1 -0
- package/lib/validator/validateInteger.d.ts +2 -0
- package/lib/validator/validateInteger.d.ts.map +1 -0
- package/lib/validator/validateInteger.js +29 -0
- package/lib/validator/validateInteger.js.map +1 -0
- package/lib/validator/validateMapboxStylesUrl.d.ts +6 -0
- package/lib/validator/validateMapboxStylesUrl.d.ts.map +1 -0
- package/lib/validator/validateMapboxStylesUrl.js +32 -0
- package/lib/validator/validateMapboxStylesUrl.js.map +1 -0
- package/lib/validator/validateMaxValue.d.ts +2 -0
- package/lib/validator/validateMaxValue.d.ts.map +1 -0
- package/lib/validator/validateMaxValue.js +26 -0
- package/lib/validator/validateMaxValue.js.map +1 -0
- package/lib/validator/validateNonEmpty.d.ts +2 -0
- package/lib/validator/validateNonEmpty.d.ts.map +1 -0
- package/lib/validator/validateNonEmpty.js +29 -0
- package/lib/validator/validateNonEmpty.js.map +1 -0
- package/lib/validator/validateNumber.d.ts +2 -0
- package/lib/validator/validateNumber.d.ts.map +1 -0
- package/lib/validator/validateNumber.js +29 -0
- package/lib/validator/validateNumber.js.map +1 -0
- package/lib/validator/validateTimeComparisonRangeValues.d.ts +3 -0
- package/lib/validator/validateTimeComparisonRangeValues.d.ts.map +1 -0
- package/lib/validator/validateTimeComparisonRangeValues.js +30 -0
- package/lib/validator/validateTimeComparisonRangeValues.js.map +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import _cloneDeep from "lodash/cloneDeep.js"; /*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import CategoricalColorScale from './CategoricalColorScale.js';
|
|
22
|
+
|
|
23
|
+
import getCategoricalSchemeRegistry from './CategoricalSchemeRegistrySingleton.js';
|
|
24
|
+
import stringifyAndTrim from './stringifyAndTrim.js';
|
|
25
|
+
|
|
26
|
+
export default class CategoricalColorNamespace {
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
constructor(name) {this.name = void 0;this.forcedItems = void 0;this.scales = void 0;
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.scales = {};
|
|
38
|
+
this.forcedItems = {};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A new CategoricalColorScale instance is created for each chart.
|
|
43
|
+
*
|
|
44
|
+
* @param colorScheme - the color scheme to use
|
|
45
|
+
* @returns a new instance of a color scale
|
|
46
|
+
*/
|
|
47
|
+
getScale(colorScheme) {var _ref, _scheme$colors;
|
|
48
|
+
const id = (_ref =
|
|
49
|
+
colorScheme != null ? colorScheme : getCategoricalSchemeRegistry().getDefaultKey()) != null ? _ref : '';
|
|
50
|
+
const scheme = getCategoricalSchemeRegistry().get(id);
|
|
51
|
+
return new CategoricalColorScale((_scheme$colors =
|
|
52
|
+
scheme == null ? void 0 : scheme.colors) != null ? _scheme$colors : [],
|
|
53
|
+
this.forcedItems,
|
|
54
|
+
colorScheme
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Enforce specific color for given value
|
|
60
|
+
* This will apply across all color scales
|
|
61
|
+
* in this namespace.
|
|
62
|
+
* @param {*} value value
|
|
63
|
+
* @param {*} forcedColor color
|
|
64
|
+
*/
|
|
65
|
+
setColor(value, forcedColor) {
|
|
66
|
+
this.forcedItems[stringifyAndTrim(value)] = forcedColor;
|
|
67
|
+
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
resetColors() {
|
|
72
|
+
this.forcedItems = {};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
resetColorsForLabels(labels = []) {
|
|
76
|
+
const updatedForcedItems = _cloneDeep(this.forcedItems);
|
|
77
|
+
labels.forEach((label) => {
|
|
78
|
+
if (updatedForcedItems.hasOwnProperty(label)) {
|
|
79
|
+
delete updatedForcedItems[label];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
this.forcedItems = { ...updatedForcedItems };
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const namespaces =
|
|
88
|
+
|
|
89
|
+
{};
|
|
90
|
+
|
|
91
|
+
export const DEFAULT_NAMESPACE = 'GLOBAL';
|
|
92
|
+
|
|
93
|
+
export function getNamespace(name = DEFAULT_NAMESPACE) {
|
|
94
|
+
const instance = namespaces[name];
|
|
95
|
+
if (instance) {
|
|
96
|
+
return instance;
|
|
97
|
+
}
|
|
98
|
+
const newInstance = new CategoricalColorNamespace(name);
|
|
99
|
+
namespaces[name] = newInstance;
|
|
100
|
+
|
|
101
|
+
return newInstance;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function getColor(
|
|
105
|
+
value,
|
|
106
|
+
colorScheme,
|
|
107
|
+
namespace)
|
|
108
|
+
{
|
|
109
|
+
return getNamespace(namespace).getScale(colorScheme).getColor(value);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
Returns a new scale instance within the same namespace.
|
|
114
|
+
Especially useful when a chart is booting for the first time
|
|
115
|
+
|
|
116
|
+
@param scheme - the applied color scheme
|
|
117
|
+
@param namespace - the namespace
|
|
118
|
+
*/
|
|
119
|
+
export function getScale(colorScheme, namespace) {
|
|
120
|
+
return getNamespace(namespace).getScale(colorScheme);
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=CategoricalColorNamespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoricalColorNamespace.js","names":["CategoricalColorScale","getCategoricalSchemeRegistry","stringifyAndTrim","CategoricalColorNamespace","constructor","name","forcedItems","scales","getScale","colorScheme","_ref","_scheme$colors","id","getDefaultKey","scheme","get","colors","setColor","value","forcedColor","resetColors","resetColorsForLabels","labels","updatedForcedItems","_cloneDeep","forEach","label","hasOwnProperty","namespaces","DEFAULT_NAMESPACE","getNamespace","instance","newInstance","getColor","namespace"],"sources":["../../src/color/CategoricalColorNamespace.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { cloneDeep } from 'lodash';\nimport CategoricalColorScale from './CategoricalColorScale';\nimport { ColorsLookup } from './types';\nimport getCategoricalSchemeRegistry from './CategoricalSchemeRegistrySingleton';\nimport stringifyAndTrim from './stringifyAndTrim';\n\nexport default class CategoricalColorNamespace {\n name: string;\n\n forcedItems: ColorsLookup;\n\n scales: {\n [key: string]: CategoricalColorScale;\n };\n\n constructor(name: string) {\n this.name = name;\n this.scales = {};\n this.forcedItems = {};\n }\n\n /**\n * A new CategoricalColorScale instance is created for each chart.\n *\n * @param colorScheme - the color scheme to use\n * @returns a new instance of a color scale\n */\n getScale(colorScheme?: string) {\n const id =\n colorScheme ?? getCategoricalSchemeRegistry().getDefaultKey() ?? '';\n const scheme = getCategoricalSchemeRegistry().get(id);\n return new CategoricalColorScale(\n scheme?.colors ?? [],\n this.forcedItems,\n colorScheme,\n );\n }\n\n /**\n * Enforce specific color for given value\n * This will apply across all color scales\n * in this namespace.\n * @param {*} value value\n * @param {*} forcedColor color\n */\n setColor(value: string, forcedColor: string) {\n this.forcedItems[stringifyAndTrim(value)] = forcedColor;\n\n return this;\n }\n\n resetColors() {\n this.forcedItems = {};\n }\n\n resetColorsForLabels(labels: string[] = []) {\n const updatedForcedItems = cloneDeep(this.forcedItems);\n labels.forEach(label => {\n if (updatedForcedItems.hasOwnProperty(label)) {\n delete updatedForcedItems[label];\n }\n });\n\n this.forcedItems = { ...updatedForcedItems };\n }\n}\n\nconst namespaces: {\n [key: string]: CategoricalColorNamespace;\n} = {};\n\nexport const DEFAULT_NAMESPACE = 'GLOBAL';\n\nexport function getNamespace(name: string = DEFAULT_NAMESPACE) {\n const instance = namespaces[name];\n if (instance) {\n return instance;\n }\n const newInstance = new CategoricalColorNamespace(name);\n namespaces[name] = newInstance;\n\n return newInstance;\n}\n\nexport function getColor(\n value?: string,\n colorScheme?: string,\n namespace?: string,\n) {\n return getNamespace(namespace).getScale(colorScheme).getColor(value);\n}\n\n/*\n Returns a new scale instance within the same namespace.\n Especially useful when a chart is booting for the first time\n\n @param scheme - the applied color scheme\n @param namespace - the namespace\n*/\nexport function getScale(colorScheme?: string, namespace?: string) {\n return getNamespace(namespace).getScale(colorScheme);\n}\n"],"mappings":"2CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAOA,qBAAqB,MAAM,yBAAyB;;AAE3D,OAAOC,4BAA4B,MAAM,sCAAsC;AAC/E,OAAOC,gBAAgB,MAAM,oBAAoB;;AAEjD,eAAe,MAAMC,yBAAyB,CAAC;;;;;;;;;EAS7CC,WAAWA,CAACC,IAAY,EAAE,MAR1BA,IAAI,eAEJC,WAAW,eAEXC,MAAM;IAKJ,IAAI,CAACF,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACE,MAAM,GAAG,CAAC,CAAC;IAChB,IAAI,CAACD,WAAW,GAAG,CAAC,CAAC;EACvB;;EAEA;AACF;AACA;AACA;AACA;AACA;EACEE,QAAQA,CAACC,WAAoB,EAAE,KAAAC,IAAA,EAAAC,cAAA;IAC7B,MAAMC,EAAE,IAAAF,IAAA;IACND,WAAW,WAAXA,WAAW,GAAIR,4BAA4B,CAAC,CAAC,CAACY,aAAa,CAAC,CAAC,YAAAH,IAAA,GAAI,EAAE;IACrE,MAAMI,MAAM,GAAGb,4BAA4B,CAAC,CAAC,CAACc,GAAG,CAACH,EAAE,CAAC;IACrD,OAAO,IAAIZ,qBAAqB,EAAAW,cAAA;IAC9BG,MAAM,oBAANA,MAAM,CAAEE,MAAM,YAAAL,cAAA,GAAI,EAAE;IACpB,IAAI,CAACL,WAAW;IAChBG;IACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEQ,QAAQA,CAACC,KAAa,EAAEC,WAAmB,EAAE;IAC3C,IAAI,CAACb,WAAW,CAACJ,gBAAgB,CAACgB,KAAK,CAAC,CAAC,GAAGC,WAAW;;IAEvD,OAAO,IAAI;EACb;;EAEAC,WAAWA,CAAA,EAAG;IACZ,IAAI,CAACd,WAAW,GAAG,CAAC,CAAC;EACvB;;EAEAe,oBAAoBA,CAACC,MAAgB,GAAG,EAAE,EAAE;IAC1C,MAAMC,kBAAkB,GAAGC,UAAA,CAAU,IAAI,CAAClB,WAAW,CAAC;IACtDgB,MAAM,CAACG,OAAO,CAAC,CAAAC,KAAK,KAAI;MACtB,IAAIH,kBAAkB,CAACI,cAAc,CAACD,KAAK,CAAC,EAAE;QAC5C,OAAOH,kBAAkB,CAACG,KAAK,CAAC;MAClC;IACF,CAAC,CAAC;;IAEF,IAAI,CAACpB,WAAW,GAAG,EAAE,GAAGiB,kBAAkB,CAAC,CAAC;EAC9C;AACF;;AAEA,MAAMK,UAEL;;AAAG,CAAC,CAAC;;AAEN,OAAO,MAAMC,iBAAiB,GAAG,QAAQ;;AAEzC,OAAO,SAASC,YAAYA,CAACzB,IAAY,GAAGwB,iBAAiB,EAAE;EAC7D,MAAME,QAAQ,GAAGH,UAAU,CAACvB,IAAI,CAAC;EACjC,IAAI0B,QAAQ,EAAE;IACZ,OAAOA,QAAQ;EACjB;EACA,MAAMC,WAAW,GAAG,IAAI7B,yBAAyB,CAACE,IAAI,CAAC;EACvDuB,UAAU,CAACvB,IAAI,CAAC,GAAG2B,WAAW;;EAE9B,OAAOA,WAAW;AACpB;;AAEA,OAAO,SAASC,QAAQA;AACtBf,KAAc;AACdT,WAAoB;AACpByB,SAAkB;AAClB;EACA,OAAOJ,YAAY,CAACI,SAAS,CAAC,CAAC1B,QAAQ,CAACC,WAAW,CAAC,CAACwB,QAAQ,CAACf,KAAK,CAAC;AACtE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASV,QAAQA,CAACC,WAAoB,EAAEyB,SAAkB,EAAE;EACjE,OAAOJ,YAAY,CAACI,SAAS,CAAC,CAAC1B,QAAQ,CAACC,WAAW,CAAC;AACtD","ignoreList":[]}
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import __cjs_default_d3_scale_2 from 'd3-scale'; const { scaleOrdinal } = __cjs_default_d3_scale_2;;
|
|
21
|
+
import { ExtensibleFunction } from '../models/index.js';
|
|
22
|
+
|
|
23
|
+
import stringifyAndTrim from './stringifyAndTrim.js';
|
|
24
|
+
import getLabelsColorMap, {
|
|
25
|
+
LabelsColorMapSource } from
|
|
26
|
+
'./LabelsColorMapSingleton.js';
|
|
27
|
+
import { getAnalogousColors } from './utils.js';
|
|
28
|
+
import { FeatureFlag, isFeatureEnabled } from '../utils/index.js';
|
|
29
|
+
|
|
30
|
+
// Use type augmentation to correct the fact that
|
|
31
|
+
// an instance of CategoricalScale is also a function
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class CategoricalColorScale extends ExtensibleFunction {
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructor
|
|
53
|
+
* @param {*} colors an array of colors
|
|
54
|
+
* @param {*} forcedColors optional parameter that comes from parent
|
|
55
|
+
* @param {*} appliedColorScheme the color scheme applied to the chart
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
constructor(
|
|
59
|
+
colors,
|
|
60
|
+
forcedColors = {},
|
|
61
|
+
appliedColorScheme)
|
|
62
|
+
{
|
|
63
|
+
super((value, sliceId) =>
|
|
64
|
+
this.getColor(value, sliceId, appliedColorScheme)
|
|
65
|
+
);
|
|
66
|
+
// holds original color scheme colors
|
|
67
|
+
this.originColors = void 0;this.colors = void 0;this.scale = void 0;this.forcedColors = void 0;this.labelsColorMapInstance = void 0;this.chartLabelsColorMap = void 0;this.multiple = void 0;this.originColors = colors;
|
|
68
|
+
// holds the extended color range (includes analagous colors)
|
|
69
|
+
this.colors = colors;
|
|
70
|
+
// holds the values of this specific slice (label+color)
|
|
71
|
+
this.chartLabelsColorMap = new Map();
|
|
72
|
+
// shared color map instance (when context is shared, i.e. dashboard)
|
|
73
|
+
this.labelsColorMapInstance = getLabelsColorMap();
|
|
74
|
+
// holds the multiple value for analogous colors range
|
|
75
|
+
this.multiple = 0;
|
|
76
|
+
|
|
77
|
+
this.scale = scaleOrdinal();
|
|
78
|
+
this.scale.range(colors);
|
|
79
|
+
|
|
80
|
+
// reserve fixed colors in parent map based on their index in the scale
|
|
81
|
+
Object.entries(forcedColors).forEach(([key, value]) => {
|
|
82
|
+
if (typeof value === 'number') {
|
|
83
|
+
// eslint-disable-next-line no-param-reassign
|
|
84
|
+
forcedColors[key] = colors[value % colors.length];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// forced colors from parent (usually CategoricalColorNamespace)
|
|
89
|
+
// currently used in dashboards to set custom label colors
|
|
90
|
+
this.forcedColors = forcedColors;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Increment the color range with analogous colors
|
|
95
|
+
*/
|
|
96
|
+
incrementColorRange() {
|
|
97
|
+
const multiple = Math.floor(
|
|
98
|
+
this.domain().length / this.originColors.length
|
|
99
|
+
);
|
|
100
|
+
// the domain has grown larger than the original range
|
|
101
|
+
// increments the range with analogous colors
|
|
102
|
+
if (multiple > this.multiple) {
|
|
103
|
+
this.multiple = multiple;
|
|
104
|
+
const newRange = getAnalogousColors(this.originColors, multiple);
|
|
105
|
+
const extendedColors = this.originColors.concat(newRange);
|
|
106
|
+
|
|
107
|
+
this.range(extendedColors);
|
|
108
|
+
this.colors = extendedColors;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Get the color for a given value
|
|
114
|
+
*
|
|
115
|
+
* @param value the value of a label to get the color for
|
|
116
|
+
* @param sliceId the ID of the current chart
|
|
117
|
+
* @param appliedColorScheme the color scheme applied to the chart
|
|
118
|
+
* @returns the color or the next available color
|
|
119
|
+
*/
|
|
120
|
+
getColor(
|
|
121
|
+
value,
|
|
122
|
+
sliceId,
|
|
123
|
+
appliedColorScheme)
|
|
124
|
+
{var _this$forcedColors;
|
|
125
|
+
const cleanedValue = stringifyAndTrim(value);
|
|
126
|
+
// priority: forced color (aka custom label colors) > shared color > scale color
|
|
127
|
+
const forcedColor = (_this$forcedColors = this.forcedColors) == null ? void 0 : _this$forcedColors[cleanedValue];
|
|
128
|
+
const { source } = this.labelsColorMapInstance;
|
|
129
|
+
const currentColorMap =
|
|
130
|
+
source === LabelsColorMapSource.Dashboard ?
|
|
131
|
+
this.labelsColorMapInstance.getColorMap() :
|
|
132
|
+
this.chartLabelsColorMap;
|
|
133
|
+
const isExistingLabel = currentColorMap.has(cleanedValue);
|
|
134
|
+
let color =
|
|
135
|
+
forcedColor || (
|
|
136
|
+
isExistingLabel ?
|
|
137
|
+
currentColorMap.get(cleanedValue) :
|
|
138
|
+
this.scale(cleanedValue));
|
|
139
|
+
|
|
140
|
+
// a forced color will always be used independently of the usage count
|
|
141
|
+
if (!forcedColor && !isExistingLabel) {
|
|
142
|
+
if (isFeatureEnabled(FeatureFlag.UseAnalagousColors)) {
|
|
143
|
+
this.incrementColorRange();
|
|
144
|
+
}
|
|
145
|
+
if (
|
|
146
|
+
// feature flag to be deprecated (will become standard behaviour)
|
|
147
|
+
isFeatureEnabled(FeatureFlag.AvoidColorsCollision) &&
|
|
148
|
+
this.isColorUsed(color))
|
|
149
|
+
{
|
|
150
|
+
// fallback to least used color
|
|
151
|
+
color = this.getNextAvailableColor(cleanedValue, color);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// keep track of values in this slice
|
|
156
|
+
this.chartLabelsColorMap.set(cleanedValue, color);
|
|
157
|
+
|
|
158
|
+
// store the value+color in the LabelsColorMapSingleton
|
|
159
|
+
if (sliceId) {
|
|
160
|
+
this.labelsColorMapInstance.addSlice(
|
|
161
|
+
cleanedValue,
|
|
162
|
+
color,
|
|
163
|
+
sliceId,
|
|
164
|
+
appliedColorScheme
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
return color;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Verify if a color is used in this slice
|
|
172
|
+
*
|
|
173
|
+
* @param color
|
|
174
|
+
* @returns true if the color is used in this slice
|
|
175
|
+
*/
|
|
176
|
+
isColorUsed(color) {
|
|
177
|
+
return this.getColorUsageCount(color) > 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Get the count of the color usage in this slice
|
|
182
|
+
*
|
|
183
|
+
* @param sliceId the ID of the current slice
|
|
184
|
+
* @param color the color to check
|
|
185
|
+
* @returns the count of the color usage in this slice
|
|
186
|
+
*/
|
|
187
|
+
getColorUsageCount(color) {
|
|
188
|
+
return Array.from(this.chartLabelsColorMap.values()).filter(
|
|
189
|
+
(value) => value === color
|
|
190
|
+
).length;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Lower chances of color collision by returning the least used color.
|
|
195
|
+
* Checks across colors of current slice within chartLabelsColorMap.
|
|
196
|
+
*
|
|
197
|
+
* @param currentLabel the current label
|
|
198
|
+
* @param currentColor the current color
|
|
199
|
+
* @returns the least used color that is not the current color
|
|
200
|
+
*/
|
|
201
|
+
getNextAvailableColor(currentLabel, currentColor) {
|
|
202
|
+
// Precompute color usage counts for all colors
|
|
203
|
+
const colorUsageCounts = new Map(
|
|
204
|
+
this.colors.map((color) => [color, this.getColorUsageCount(color)])
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
// Get an ordered array of labels from the map
|
|
208
|
+
const orderedLabels = Array.from(this.chartLabelsColorMap.keys());
|
|
209
|
+
const currentLabelIndex = orderedLabels.indexOf(currentLabel);
|
|
210
|
+
|
|
211
|
+
// Helper to infer "previous" and "next" labels based on index
|
|
212
|
+
const getAdjacentLabelsColors = () => {
|
|
213
|
+
const previousLabel =
|
|
214
|
+
currentLabelIndex > 0 ? orderedLabels[currentLabelIndex - 1] : null;
|
|
215
|
+
const nextLabel =
|
|
216
|
+
currentLabelIndex < orderedLabels.length - 1 ?
|
|
217
|
+
orderedLabels[currentLabelIndex + 1] :
|
|
218
|
+
null;
|
|
219
|
+
|
|
220
|
+
const previousColor = previousLabel ?
|
|
221
|
+
this.chartLabelsColorMap.get(previousLabel) :
|
|
222
|
+
null;
|
|
223
|
+
const nextColor = nextLabel ?
|
|
224
|
+
this.chartLabelsColorMap.get(nextLabel) :
|
|
225
|
+
null;
|
|
226
|
+
|
|
227
|
+
return [previousColor, nextColor].filter((color) => color);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
const adjacentColors = getAdjacentLabelsColors();
|
|
231
|
+
|
|
232
|
+
// Determine adjusted score (usage count + penalties)
|
|
233
|
+
const calculateScore = (color) => {
|
|
234
|
+
/* istanbul ignore next */
|
|
235
|
+
const usageCount = colorUsageCounts.get(color) || 0;
|
|
236
|
+
const adjacencyPenalty = adjacentColors.includes(color) ? 100 : 0;
|
|
237
|
+
return usageCount + adjacencyPenalty;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// If there is any color that has never been used, prioritize it
|
|
241
|
+
const unusedColor = this.colors.find(
|
|
242
|
+
(color) => (colorUsageCounts.get(color) || 0) === 0
|
|
243
|
+
);
|
|
244
|
+
if (unusedColor) {
|
|
245
|
+
return unusedColor;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// If all colors are used, calculate scores and choose the best one
|
|
249
|
+
const otherColors = this.colors.filter((color) => color !== currentColor);
|
|
250
|
+
|
|
251
|
+
// Find the color with the minimum score, defaulting to currentColor
|
|
252
|
+
return otherColors.reduce((bestColor, color) => {
|
|
253
|
+
const bestScore = calculateScore(bestColor);
|
|
254
|
+
const currentScore = calculateScore(color);
|
|
255
|
+
return currentScore < bestScore ? color : bestColor;
|
|
256
|
+
}, currentColor);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Enforce specific color for a given value at the scale level
|
|
261
|
+
* Overrides any existing color and forced color for the given value
|
|
262
|
+
*
|
|
263
|
+
* @param {*} value value
|
|
264
|
+
* @param {*} forcedColor forcedColor
|
|
265
|
+
* @returns {CategoricalColorScale}
|
|
266
|
+
*/
|
|
267
|
+
setColor(value, forcedColor) {
|
|
268
|
+
this.forcedColors[stringifyAndTrim(value)] = forcedColor;
|
|
269
|
+
return this;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Get a mapping of data values to colors
|
|
274
|
+
*
|
|
275
|
+
* @returns an object where the key is the data value and the value is the hex color code
|
|
276
|
+
*/
|
|
277
|
+
getColorMap() {
|
|
278
|
+
const colorMap = {};
|
|
279
|
+
this.scale.domain().forEach((value) => {
|
|
280
|
+
colorMap[value.toString()] = this.scale(value);
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
return {
|
|
284
|
+
...colorMap,
|
|
285
|
+
...this.forcedColors
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Return an exact copy of this scale.
|
|
291
|
+
* Changes to this scale will not affect the returned scale and vice versa.
|
|
292
|
+
*
|
|
293
|
+
* @returns {CategoricalColorScale} A copy of this scale.
|
|
294
|
+
*/
|
|
295
|
+
copy() {
|
|
296
|
+
const copy = new CategoricalColorScale(
|
|
297
|
+
this.scale.range(),
|
|
298
|
+
this.forcedColors
|
|
299
|
+
);
|
|
300
|
+
copy.forcedColors = { ...this.forcedColors };
|
|
301
|
+
copy.domain(this.domain());
|
|
302
|
+
copy.unknown(this.unknown());
|
|
303
|
+
return copy;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Returns the scale's current domain.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Expands the domain to include the specified array of values.
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
domain(newDomain) {
|
|
317
|
+
if (typeof newDomain === 'undefined') {
|
|
318
|
+
return this.scale.domain();
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
this.scale.domain(newDomain);
|
|
322
|
+
return this;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Returns the scale's current range.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Sets the range of the ordinal scale to the specified array of values.
|
|
332
|
+
*
|
|
333
|
+
* The first element in the domain will be mapped to the first element in range, the second domain value to the second range value, and so on.
|
|
334
|
+
*
|
|
335
|
+
* If there are fewer elements in the range than in the domain, the scale will reuse values from the start of the range.
|
|
336
|
+
*
|
|
337
|
+
* @param newRange Array of range values.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
range(newRange) {
|
|
342
|
+
if (typeof newRange === 'undefined') {
|
|
343
|
+
return this.scale.range();
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
this.colors = newRange;
|
|
347
|
+
this.scale.range(newRange);
|
|
348
|
+
return this;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Returns the current unknown value, which defaults to "implicit".
|
|
353
|
+
*/
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Sets the output value of the scale for unknown input values and returns this scale.
|
|
358
|
+
* The implicit value enables implicit domain construction. scaleImplicit can be used as a convenience to set the implicit value.
|
|
359
|
+
*
|
|
360
|
+
* @param value Unknown value to be used or scaleImplicit to set implicit scale generation.
|
|
361
|
+
*/
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
unknown(value) {
|
|
365
|
+
if (typeof value === 'undefined') {
|
|
366
|
+
return this.scale.unknown();
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
this.scale.unknown(value);
|
|
370
|
+
return this;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export default CategoricalColorScale;
|
|
375
|
+
//# sourceMappingURL=CategoricalColorScale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoricalColorScale.js","names":["scaleOrdinal","ExtensibleFunction","stringifyAndTrim","getLabelsColorMap","LabelsColorMapSource","getAnalogousColors","FeatureFlag","isFeatureEnabled","CategoricalColorScale","constructor","colors","forcedColors","appliedColorScheme","value","sliceId","getColor","originColors","scale","labelsColorMapInstance","chartLabelsColorMap","multiple","Map","range","Object","entries","forEach","key","length","incrementColorRange","Math","floor","domain","newRange","extendedColors","concat","_this$forcedColors","cleanedValue","forcedColor","source","currentColorMap","Dashboard","getColorMap","isExistingLabel","has","color","get","UseAnalagousColors","AvoidColorsCollision","isColorUsed","getNextAvailableColor","set","addSlice","getColorUsageCount","Array","from","values","filter","currentLabel","currentColor","colorUsageCounts","map","orderedLabels","keys","currentLabelIndex","indexOf","getAdjacentLabelsColors","previousLabel","nextLabel","previousColor","nextColor","adjacentColors","calculateScore","usageCount","adjacencyPenalty","includes","unusedColor","find","otherColors","reduce","bestColor","bestScore","currentScore","setColor","colorMap","toString","copy","unknown","newDomain"],"sources":["../../src/color/CategoricalColorScale.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport { scaleOrdinal, ScaleOrdinal } from 'd3-scale';\nimport { ExtensibleFunction } from '../models';\nimport { ColorsInitLookup, ColorsLookup } from './types';\nimport stringifyAndTrim from './stringifyAndTrim';\nimport getLabelsColorMap, {\n LabelsColorMapSource,\n} from './LabelsColorMapSingleton';\nimport { getAnalogousColors } from './utils';\nimport { FeatureFlag, isFeatureEnabled } from '../utils';\n\n// Use type augmentation to correct the fact that\n// an instance of CategoricalScale is also a function\ninterface CategoricalColorScale {\n (x: { toString(): string }, y?: number): string;\n}\n\nclass CategoricalColorScale extends ExtensibleFunction {\n originColors: string[];\n\n colors: string[];\n\n scale: ScaleOrdinal<{ toString(): string }, string>;\n\n forcedColors: ColorsLookup;\n\n labelsColorMapInstance: ReturnType<typeof getLabelsColorMap>;\n\n chartLabelsColorMap: Map<string, string>;\n\n multiple: number;\n\n /**\n * Constructor\n * @param {*} colors an array of colors\n * @param {*} forcedColors optional parameter that comes from parent\n * @param {*} appliedColorScheme the color scheme applied to the chart\n *\n */\n constructor(\n colors: string[],\n forcedColors: ColorsInitLookup = {},\n appliedColorScheme?: string,\n ) {\n super((value: string, sliceId?: number) =>\n this.getColor(value, sliceId, appliedColorScheme),\n );\n // holds original color scheme colors\n this.originColors = colors;\n // holds the extended color range (includes analagous colors)\n this.colors = colors;\n // holds the values of this specific slice (label+color)\n this.chartLabelsColorMap = new Map();\n // shared color map instance (when context is shared, i.e. dashboard)\n this.labelsColorMapInstance = getLabelsColorMap();\n // holds the multiple value for analogous colors range\n this.multiple = 0;\n\n this.scale = scaleOrdinal<{ toString(): string }, string>();\n this.scale.range(colors);\n\n // reserve fixed colors in parent map based on their index in the scale\n Object.entries(forcedColors).forEach(([key, value]) => {\n if (typeof value === 'number') {\n // eslint-disable-next-line no-param-reassign\n forcedColors[key] = colors[value % colors.length];\n }\n });\n\n // forced colors from parent (usually CategoricalColorNamespace)\n // currently used in dashboards to set custom label colors\n this.forcedColors = forcedColors as ColorsLookup;\n }\n\n /**\n * Increment the color range with analogous colors\n */\n incrementColorRange() {\n const multiple = Math.floor(\n this.domain().length / this.originColors.length,\n );\n // the domain has grown larger than the original range\n // increments the range with analogous colors\n if (multiple > this.multiple) {\n this.multiple = multiple;\n const newRange = getAnalogousColors(this.originColors, multiple);\n const extendedColors = this.originColors.concat(newRange);\n\n this.range(extendedColors);\n this.colors = extendedColors;\n }\n }\n\n /**\n * Get the color for a given value\n *\n * @param value the value of a label to get the color for\n * @param sliceId the ID of the current chart\n * @param appliedColorScheme the color scheme applied to the chart\n * @returns the color or the next available color\n */\n getColor(\n value?: string,\n sliceId?: number,\n appliedColorScheme?: string,\n ): string {\n const cleanedValue = stringifyAndTrim(value);\n // priority: forced color (aka custom label colors) > shared color > scale color\n const forcedColor = this.forcedColors?.[cleanedValue];\n const { source } = this.labelsColorMapInstance;\n const currentColorMap =\n source === LabelsColorMapSource.Dashboard\n ? this.labelsColorMapInstance.getColorMap()\n : this.chartLabelsColorMap;\n const isExistingLabel = currentColorMap.has(cleanedValue);\n let color =\n forcedColor ||\n (isExistingLabel\n ? (currentColorMap.get(cleanedValue) as string)\n : this.scale(cleanedValue));\n\n // a forced color will always be used independently of the usage count\n if (!forcedColor && !isExistingLabel) {\n if (isFeatureEnabled(FeatureFlag.UseAnalagousColors)) {\n this.incrementColorRange();\n }\n if (\n // feature flag to be deprecated (will become standard behaviour)\n isFeatureEnabled(FeatureFlag.AvoidColorsCollision) &&\n this.isColorUsed(color)\n ) {\n // fallback to least used color\n color = this.getNextAvailableColor(cleanedValue, color);\n }\n }\n\n // keep track of values in this slice\n this.chartLabelsColorMap.set(cleanedValue, color);\n\n // store the value+color in the LabelsColorMapSingleton\n if (sliceId) {\n this.labelsColorMapInstance.addSlice(\n cleanedValue,\n color,\n sliceId,\n appliedColorScheme,\n );\n }\n return color;\n }\n\n /**\n * Verify if a color is used in this slice\n *\n * @param color\n * @returns true if the color is used in this slice\n */\n isColorUsed(color: string): boolean {\n return this.getColorUsageCount(color) > 0;\n }\n\n /**\n * Get the count of the color usage in this slice\n *\n * @param sliceId the ID of the current slice\n * @param color the color to check\n * @returns the count of the color usage in this slice\n */\n getColorUsageCount(color: string): number {\n return Array.from(this.chartLabelsColorMap.values()).filter(\n value => value === color,\n ).length;\n }\n\n /**\n * Lower chances of color collision by returning the least used color.\n * Checks across colors of current slice within chartLabelsColorMap.\n *\n * @param currentLabel the current label\n * @param currentColor the current color\n * @returns the least used color that is not the current color\n */\n getNextAvailableColor(currentLabel: string, currentColor: string): string {\n // Precompute color usage counts for all colors\n const colorUsageCounts = new Map(\n this.colors.map(color => [color, this.getColorUsageCount(color)]),\n );\n\n // Get an ordered array of labels from the map\n const orderedLabels = Array.from(this.chartLabelsColorMap.keys());\n const currentLabelIndex = orderedLabels.indexOf(currentLabel);\n\n // Helper to infer \"previous\" and \"next\" labels based on index\n const getAdjacentLabelsColors = (): string[] => {\n const previousLabel =\n currentLabelIndex > 0 ? orderedLabels[currentLabelIndex - 1] : null;\n const nextLabel =\n currentLabelIndex < orderedLabels.length - 1\n ? orderedLabels[currentLabelIndex + 1]\n : null;\n\n const previousColor = previousLabel\n ? this.chartLabelsColorMap.get(previousLabel)\n : null;\n const nextColor = nextLabel\n ? this.chartLabelsColorMap.get(nextLabel)\n : null;\n\n return [previousColor, nextColor].filter(color => color) as string[];\n };\n\n const adjacentColors = getAdjacentLabelsColors();\n\n // Determine adjusted score (usage count + penalties)\n const calculateScore = (color: string): number => {\n /* istanbul ignore next */\n const usageCount = colorUsageCounts.get(color) || 0;\n const adjacencyPenalty = adjacentColors.includes(color) ? 100 : 0;\n return usageCount + adjacencyPenalty;\n };\n\n // If there is any color that has never been used, prioritize it\n const unusedColor = this.colors.find(\n color => (colorUsageCounts.get(color) || 0) === 0,\n );\n if (unusedColor) {\n return unusedColor;\n }\n\n // If all colors are used, calculate scores and choose the best one\n const otherColors = this.colors.filter(color => color !== currentColor);\n\n // Find the color with the minimum score, defaulting to currentColor\n return otherColors.reduce((bestColor, color) => {\n const bestScore = calculateScore(bestColor);\n const currentScore = calculateScore(color);\n return currentScore < bestScore ? color : bestColor;\n }, currentColor);\n }\n\n /**\n * Enforce specific color for a given value at the scale level\n * Overrides any existing color and forced color for the given value\n *\n * @param {*} value value\n * @param {*} forcedColor forcedColor\n * @returns {CategoricalColorScale}\n */\n setColor(value: string, forcedColor: string) {\n this.forcedColors[stringifyAndTrim(value)] = forcedColor;\n return this;\n }\n\n /**\n * Get a mapping of data values to colors\n *\n * @returns an object where the key is the data value and the value is the hex color code\n */\n getColorMap() {\n const colorMap: { [key: string]: string | undefined } = {};\n this.scale.domain().forEach(value => {\n colorMap[value.toString()] = this.scale(value);\n });\n\n return {\n ...colorMap,\n ...this.forcedColors,\n };\n }\n\n /**\n * Return an exact copy of this scale.\n * Changes to this scale will not affect the returned scale and vice versa.\n *\n * @returns {CategoricalColorScale} A copy of this scale.\n */\n copy() {\n const copy = new CategoricalColorScale(\n this.scale.range(),\n this.forcedColors,\n );\n copy.forcedColors = { ...this.forcedColors };\n copy.domain(this.domain());\n copy.unknown(this.unknown());\n return copy;\n }\n\n /**\n * Returns the scale's current domain.\n */\n domain(): { toString(): string }[];\n\n /**\n * Expands the domain to include the specified array of values.\n */\n domain(newDomain: { toString(): string }[]): this;\n\n domain(newDomain?: { toString(): string }[]): unknown {\n if (typeof newDomain === 'undefined') {\n return this.scale.domain();\n }\n\n this.scale.domain(newDomain);\n return this;\n }\n\n /**\n * Returns the scale's current range.\n */\n range(): string[];\n\n /**\n * Sets the range of the ordinal scale to the specified array of values.\n *\n * The first element in the domain will be mapped to the first element in range, the second domain value to the second range value, and so on.\n *\n * If there are fewer elements in the range than in the domain, the scale will reuse values from the start of the range.\n *\n * @param newRange Array of range values.\n */\n range(newRange: string[]): this;\n\n range(newRange?: string[]): unknown {\n if (typeof newRange === 'undefined') {\n return this.scale.range();\n }\n\n this.colors = newRange;\n this.scale.range(newRange);\n return this;\n }\n\n /**\n * Returns the current unknown value, which defaults to \"implicit\".\n */\n unknown(): string | { name: 'implicit' };\n\n /**\n * Sets the output value of the scale for unknown input values and returns this scale.\n * The implicit value enables implicit domain construction. scaleImplicit can be used as a convenience to set the implicit value.\n *\n * @param value Unknown value to be used or scaleImplicit to set implicit scale generation.\n */\n unknown(value: string | { name: 'implicit' }): this;\n\n unknown(value?: string | { name: 'implicit' }): unknown {\n if (typeof value === 'undefined') {\n return this.scale.unknown();\n }\n\n this.scale.unknown(value);\n return this;\n }\n}\n\nexport default CategoricalColorScale;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import ColorScheme from './ColorScheme.js';
|
|
21
|
+
|
|
22
|
+
export default class CategoricalScheme extends ColorScheme {}
|
|
23
|
+
//# sourceMappingURL=CategoricalScheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoricalScheme.js","names":["ColorScheme","CategoricalScheme"],"sources":["../../src/color/CategoricalScheme.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport ColorScheme from './ColorScheme';\n\nexport default class CategoricalScheme extends ColorScheme {}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,WAAW,MAAM,eAAe;;AAEvC,eAAe,MAAMC,iBAAiB,SAASD,WAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import makeSingleton from '../utils/makeSingleton.js';
|
|
21
|
+
|
|
22
|
+
import ColorSchemeRegistry from './ColorSchemeRegistry.js';
|
|
23
|
+
import schemes from './colorSchemes/categorical/d3.js';
|
|
24
|
+
|
|
25
|
+
class CategoricalSchemeRegistry extends ColorSchemeRegistry {
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
|
|
29
|
+
this.registerValue('SUPERSET_DEFAULT', schemes[0]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const getInstance = makeSingleton(CategoricalSchemeRegistry);
|
|
34
|
+
|
|
35
|
+
export default getInstance;
|
|
36
|
+
//# sourceMappingURL=CategoricalSchemeRegistrySingleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoricalSchemeRegistrySingleton.js","names":["makeSingleton","ColorSchemeRegistry","schemes","CategoricalSchemeRegistry","constructor","registerValue","getInstance"],"sources":["../../src/color/CategoricalSchemeRegistrySingleton.ts"],"sourcesContent":["/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport makeSingleton from '../utils/makeSingleton';\nimport CategoricalScheme from './CategoricalScheme';\nimport ColorSchemeRegistry from './ColorSchemeRegistry';\nimport schemes from './colorSchemes/categorical/d3';\n\nclass CategoricalSchemeRegistry extends ColorSchemeRegistry<CategoricalScheme> {\n constructor() {\n super();\n\n this.registerValue('SUPERSET_DEFAULT', schemes[0]);\n }\n}\n\nconst getInstance = makeSingleton(CategoricalSchemeRegistry);\n\nexport default getInstance;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,aAAa,MAAM,wBAAwB;;AAElD,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,OAAOC,OAAO,MAAM,+BAA+B;;AAEnD,MAAMC,yBAAyB,SAASF,mBAAmB,CAAoB;EAC7EG,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;;IAEP,IAAI,CAACC,aAAa,CAAC,kBAAkB,EAAEH,OAAO,CAAC,CAAC,CAAC,CAAC;EACpD;AACF;;AAEA,MAAMI,WAAW,GAAGN,aAAa,CAACG,yBAAyB,CAAC;;AAE5D,eAAeG,WAAW","ignoreList":[]}
|