@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,81 @@
|
|
|
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 { utcFormat, timeFormat } from 'd3-time-format';
|
|
21
|
+
import { utcUtils, localTimeUtils } from '../utils/d3Time.js';
|
|
22
|
+
import TimeFormatter from '../TimeFormatter.js';
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* A formatter that examines all the values, and uses the finest temporal grain.
|
|
26
|
+
*/
|
|
27
|
+
export default function finestTemporalGrain(
|
|
28
|
+
values,
|
|
29
|
+
useLocalTime = false)
|
|
30
|
+
{
|
|
31
|
+
const format = useLocalTime ? timeFormat : utcFormat;
|
|
32
|
+
|
|
33
|
+
const formatMillisecond = format('%Y-%m-%d %H:%M:%S.%L');
|
|
34
|
+
const formatSecond = format('%Y-%m-%d %H:%M:%S');
|
|
35
|
+
const formatMinute = format('%Y-%m-%d %H:%M');
|
|
36
|
+
const formatHour = format('%Y-%m-%d %H:%M');
|
|
37
|
+
const formatDay = format('%Y-%m-%d');
|
|
38
|
+
const formatMonth = format('%Y-%m-%d');
|
|
39
|
+
const formatYear = format('%Y');
|
|
40
|
+
|
|
41
|
+
const {
|
|
42
|
+
hasMillisecond,
|
|
43
|
+
hasSecond,
|
|
44
|
+
hasMinute,
|
|
45
|
+
hasHour,
|
|
46
|
+
isNotFirstDayOfMonth,
|
|
47
|
+
isNotFirstMonth
|
|
48
|
+
} = useLocalTime ? localTimeUtils : utcUtils;
|
|
49
|
+
|
|
50
|
+
let formatFunc = formatYear;
|
|
51
|
+
values.forEach((value) => {
|
|
52
|
+
if (formatFunc === formatYear && isNotFirstMonth(value)) {
|
|
53
|
+
formatFunc = formatMonth;
|
|
54
|
+
}
|
|
55
|
+
if (formatFunc === formatMonth && isNotFirstDayOfMonth(value)) {
|
|
56
|
+
formatFunc = formatDay;
|
|
57
|
+
}
|
|
58
|
+
if (formatFunc === formatDay && hasHour(value)) {
|
|
59
|
+
formatFunc = formatHour;
|
|
60
|
+
}
|
|
61
|
+
if (formatFunc === formatHour && hasMinute(value)) {
|
|
62
|
+
formatFunc = formatMinute;
|
|
63
|
+
}
|
|
64
|
+
if (formatFunc === formatMinute && hasSecond(value)) {
|
|
65
|
+
formatFunc = formatSecond;
|
|
66
|
+
}
|
|
67
|
+
if (formatFunc === formatSecond && hasMillisecond(value)) {
|
|
68
|
+
formatFunc = formatMillisecond;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
return new TimeFormatter({
|
|
73
|
+
description:
|
|
74
|
+
'Use the finest grain in an array of dates to format all dates in the array',
|
|
75
|
+
formatFunc,
|
|
76
|
+
id: 'finest_temporal_grain',
|
|
77
|
+
label: 'Format temporal columns with the finest grain',
|
|
78
|
+
useLocalTime
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=finestTemporalGrain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finestTemporalGrain.js","names":["utcFormat","timeFormat","utcUtils","localTimeUtils","TimeFormatter","finestTemporalGrain","values","useLocalTime","format","formatMillisecond","formatSecond","formatMinute","formatHour","formatDay","formatMonth","formatYear","hasMillisecond","hasSecond","hasMinute","hasHour","isNotFirstDayOfMonth","isNotFirstMonth","formatFunc","forEach","value","description","id","label"],"sources":["../../../src/time-format/formatters/finestTemporalGrain.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 { utcFormat, timeFormat } from 'd3-time-format';\nimport { utcUtils, localTimeUtils } from '../utils/d3Time';\nimport TimeFormatter from '../TimeFormatter';\n\n/*\n * A formatter that examines all the values, and uses the finest temporal grain.\n */\nexport default function finestTemporalGrain(\n values: any[],\n useLocalTime = false,\n) {\n const format = useLocalTime ? timeFormat : utcFormat;\n\n const formatMillisecond = format('%Y-%m-%d %H:%M:%S.%L');\n const formatSecond = format('%Y-%m-%d %H:%M:%S');\n const formatMinute = format('%Y-%m-%d %H:%M');\n const formatHour = format('%Y-%m-%d %H:%M');\n const formatDay = format('%Y-%m-%d');\n const formatMonth = format('%Y-%m-%d');\n const formatYear = format('%Y');\n\n const {\n hasMillisecond,\n hasSecond,\n hasMinute,\n hasHour,\n isNotFirstDayOfMonth,\n isNotFirstMonth,\n } = useLocalTime ? localTimeUtils : utcUtils;\n\n let formatFunc = formatYear;\n values.forEach((value: any) => {\n if (formatFunc === formatYear && isNotFirstMonth(value)) {\n formatFunc = formatMonth;\n }\n if (formatFunc === formatMonth && isNotFirstDayOfMonth(value)) {\n formatFunc = formatDay;\n }\n if (formatFunc === formatDay && hasHour(value)) {\n formatFunc = formatHour;\n }\n if (formatFunc === formatHour && hasMinute(value)) {\n formatFunc = formatMinute;\n }\n if (formatFunc === formatMinute && hasSecond(value)) {\n formatFunc = formatSecond;\n }\n if (formatFunc === formatSecond && hasMillisecond(value)) {\n formatFunc = formatMillisecond;\n }\n });\n\n return new TimeFormatter({\n description:\n 'Use the finest grain in an array of dates to format all dates in the array',\n formatFunc,\n id: 'finest_temporal_grain',\n label: 'Format temporal columns with the finest grain',\n useLocalTime,\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,UAAU,QAAQ,gBAAgB;AACtD,SAASC,QAAQ,EAAEC,cAAc,QAAQ,iBAAiB;AAC1D,OAAOC,aAAa,MAAM,kBAAkB;;AAE5C;AACA;AACA;AACA,eAAe,SAASC,mBAAmBA;AACzCC,MAAa;AACbC,YAAY,GAAG,KAAK;AACpB;EACA,MAAMC,MAAM,GAAGD,YAAY,GAAGN,UAAU,GAAGD,SAAS;;EAEpD,MAAMS,iBAAiB,GAAGD,MAAM,CAAC,sBAAsB,CAAC;EACxD,MAAME,YAAY,GAAGF,MAAM,CAAC,mBAAmB,CAAC;EAChD,MAAMG,YAAY,GAAGH,MAAM,CAAC,gBAAgB,CAAC;EAC7C,MAAMI,UAAU,GAAGJ,MAAM,CAAC,gBAAgB,CAAC;EAC3C,MAAMK,SAAS,GAAGL,MAAM,CAAC,UAAU,CAAC;EACpC,MAAMM,WAAW,GAAGN,MAAM,CAAC,UAAU,CAAC;EACtC,MAAMO,UAAU,GAAGP,MAAM,CAAC,IAAI,CAAC;;EAE/B,MAAM;IACJQ,cAAc;IACdC,SAAS;IACTC,SAAS;IACTC,OAAO;IACPC,oBAAoB;IACpBC;EACF,CAAC,GAAGd,YAAY,GAAGJ,cAAc,GAAGD,QAAQ;;EAE5C,IAAIoB,UAAU,GAAGP,UAAU;EAC3BT,MAAM,CAACiB,OAAO,CAAC,CAACC,KAAU,KAAK;IAC7B,IAAIF,UAAU,KAAKP,UAAU,IAAIM,eAAe,CAACG,KAAK,CAAC,EAAE;MACvDF,UAAU,GAAGR,WAAW;IAC1B;IACA,IAAIQ,UAAU,KAAKR,WAAW,IAAIM,oBAAoB,CAACI,KAAK,CAAC,EAAE;MAC7DF,UAAU,GAAGT,SAAS;IACxB;IACA,IAAIS,UAAU,KAAKT,SAAS,IAAIM,OAAO,CAACK,KAAK,CAAC,EAAE;MAC9CF,UAAU,GAAGV,UAAU;IACzB;IACA,IAAIU,UAAU,KAAKV,UAAU,IAAIM,SAAS,CAACM,KAAK,CAAC,EAAE;MACjDF,UAAU,GAAGX,YAAY;IAC3B;IACA,IAAIW,UAAU,KAAKX,YAAY,IAAIM,SAAS,CAACO,KAAK,CAAC,EAAE;MACnDF,UAAU,GAAGZ,YAAY;IAC3B;IACA,IAAIY,UAAU,KAAKZ,YAAY,IAAIM,cAAc,CAACQ,KAAK,CAAC,EAAE;MACxDF,UAAU,GAAGb,iBAAiB;IAChC;EACF,CAAC,CAAC;;EAEF,OAAO,IAAIL,aAAa,CAAC;IACvBqB,WAAW;IACT,4EAA4E;IAC9EH,UAAU;IACVI,EAAE,EAAE,uBAAuB;IAC3BC,KAAK,EAAE,+CAA+C;IACtDpB;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 finestTemporalGrain from './finestTemporalGrain.js';
|
|
21
|
+
|
|
22
|
+
test('finestTemporalGrain', () => {
|
|
23
|
+
const monthFormatter = finestTemporalGrain([
|
|
24
|
+
new Date('2003-01-01 00:00:00Z').getTime(),
|
|
25
|
+
new Date('2003-02-01 00:00:00Z').getTime()]
|
|
26
|
+
);
|
|
27
|
+
expect(monthFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(
|
|
28
|
+
'2003-01-01'
|
|
29
|
+
);
|
|
30
|
+
expect(monthFormatter(new Date('2003-02-01 00:00:00Z').getTime())).toBe(
|
|
31
|
+
'2003-02-01'
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const yearFormatter = finestTemporalGrain([
|
|
35
|
+
new Date('2003-01-01 00:00:00Z').getTime(),
|
|
36
|
+
new Date('2004-01-01 00:00:00Z').getTime()]
|
|
37
|
+
);
|
|
38
|
+
expect(yearFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(
|
|
39
|
+
'2003'
|
|
40
|
+
);
|
|
41
|
+
expect(yearFormatter(new Date('2004-01-01 00:00:00Z').getTime())).toBe(
|
|
42
|
+
'2004'
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
const milliSecondFormatter = finestTemporalGrain([
|
|
46
|
+
new Date('2003-01-01 00:00:00Z').getTime(),
|
|
47
|
+
new Date('2003-04-05 06:07:08.123Z').getTime()]
|
|
48
|
+
);
|
|
49
|
+
expect(milliSecondFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(
|
|
50
|
+
'2003-01-01 00:00:00.000'
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const localTimeFormatter = finestTemporalGrain(
|
|
54
|
+
[
|
|
55
|
+
new Date('2003-01-01 00:00:00Z').getTime(),
|
|
56
|
+
new Date('2003-02-01 00:00:00Z').getTime()],
|
|
57
|
+
|
|
58
|
+
true
|
|
59
|
+
);
|
|
60
|
+
expect(localTimeFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(
|
|
61
|
+
'2002-12-31 19:00'
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=finestTemporalGrain.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finestTemporalGrain.test.js","names":["finestTemporalGrain","test","monthFormatter","Date","getTime","expect","toBe","yearFormatter","milliSecondFormatter","localTimeFormatter"],"sources":["../../../src/time-format/formatters/finestTemporalGrain.test.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 finestTemporalGrain from './finestTemporalGrain';\n\ntest('finestTemporalGrain', () => {\n const monthFormatter = finestTemporalGrain([\n new Date('2003-01-01 00:00:00Z').getTime(),\n new Date('2003-02-01 00:00:00Z').getTime(),\n ]);\n expect(monthFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(\n '2003-01-01',\n );\n expect(monthFormatter(new Date('2003-02-01 00:00:00Z').getTime())).toBe(\n '2003-02-01',\n );\n\n const yearFormatter = finestTemporalGrain([\n new Date('2003-01-01 00:00:00Z').getTime(),\n new Date('2004-01-01 00:00:00Z').getTime(),\n ]);\n expect(yearFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(\n '2003',\n );\n expect(yearFormatter(new Date('2004-01-01 00:00:00Z').getTime())).toBe(\n '2004',\n );\n\n const milliSecondFormatter = finestTemporalGrain([\n new Date('2003-01-01 00:00:00Z').getTime(),\n new Date('2003-04-05 06:07:08.123Z').getTime(),\n ]);\n expect(milliSecondFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(\n '2003-01-01 00:00:00.000',\n );\n\n const localTimeFormatter = finestTemporalGrain(\n [\n new Date('2003-01-01 00:00:00Z').getTime(),\n new Date('2003-02-01 00:00:00Z').getTime(),\n ],\n true,\n );\n expect(localTimeFormatter(new Date('2003-01-01 00:00:00Z').getTime())).toBe(\n '2002-12-31 19:00',\n );\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,mBAAmB,MAAM,uBAAuB;;AAEvDC,IAAI,CAAC,qBAAqB,EAAE,MAAM;EAChC,MAAMC,cAAc,GAAGF,mBAAmB,CAAC;EACzC,IAAIG,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;EAC1C,IAAID,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;EAC3C,CAAC;EACFC,MAAM,CAACH,cAAc,CAAC,IAAIC,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IACrE;EACF,CAAC;EACDD,MAAM,CAACH,cAAc,CAAC,IAAIC,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IACrE;EACF,CAAC;;EAED,MAAMC,aAAa,GAAGP,mBAAmB,CAAC;EACxC,IAAIG,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;EAC1C,IAAID,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;EAC3C,CAAC;EACFC,MAAM,CAACE,aAAa,CAAC,IAAIJ,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IACpE;EACF,CAAC;EACDD,MAAM,CAACE,aAAa,CAAC,IAAIJ,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IACpE;EACF,CAAC;;EAED,MAAME,oBAAoB,GAAGR,mBAAmB,CAAC;EAC/C,IAAIG,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;EAC1C,IAAID,IAAI,CAAC,0BAA0B,CAAC,CAACC,OAAO,CAAC,CAAC;EAC/C,CAAC;EACFC,MAAM,CAACG,oBAAoB,CAAC,IAAIL,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IAC3E;EACF,CAAC;;EAED,MAAMG,kBAAkB,GAAGT,mBAAmB;IAC5C;IACE,IAAIG,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC;IAC1C,IAAID,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAC3C;;IACD;EACF,CAAC;EACDC,MAAM,CAACI,kBAAkB,CAAC,IAAIN,IAAI,CAAC,sBAAsB,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CAACE,IAAI;IACzE;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
21
|
+
import createMultiFormatter from '../factories/createMultiFormatter.js';
|
|
22
|
+
|
|
23
|
+
export const SMART_DATE_ID = 'smart_date';
|
|
24
|
+
|
|
25
|
+
export function createSmartDateFormatter(locale) {
|
|
26
|
+
return createMultiFormatter({
|
|
27
|
+
id: SMART_DATE_ID,
|
|
28
|
+
label: 'Adaptative Formatting',
|
|
29
|
+
formats: {
|
|
30
|
+
millisecond: '.%Lms',
|
|
31
|
+
second: ':%Ss',
|
|
32
|
+
minute: '%I:%M',
|
|
33
|
+
hour: '%I %p',
|
|
34
|
+
day: '%a %d',
|
|
35
|
+
week: '%b %d',
|
|
36
|
+
month: '%B',
|
|
37
|
+
year: '%Y'
|
|
38
|
+
},
|
|
39
|
+
locale
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=smartDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartDate.js","names":["createMultiFormatter","SMART_DATE_ID","createSmartDateFormatter","locale","id","label","formats","millisecond","second","minute","hour","day","week","month","year"],"sources":["../../../src/time-format/formatters/smartDate.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 { TimeLocaleDefinition } from 'd3-time-format';\nimport createMultiFormatter from '../factories/createMultiFormatter';\n\nexport const SMART_DATE_ID = 'smart_date';\n\nexport function createSmartDateFormatter(locale?: TimeLocaleDefinition) {\n return createMultiFormatter({\n id: SMART_DATE_ID,\n label: 'Adaptative Formatting',\n formats: {\n millisecond: '.%Lms',\n second: ':%Ss',\n minute: '%I:%M',\n hour: '%I %p',\n day: '%a %d',\n week: '%b %d',\n month: '%B',\n year: '%Y',\n },\n locale,\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAOA,oBAAoB,MAAM,mCAAmC;;AAEpE,OAAO,MAAMC,aAAa,GAAG,YAAY;;AAEzC,OAAO,SAASC,wBAAwBA,CAACC,MAA6B,EAAE;EACtE,OAAOH,oBAAoB,CAAC;IAC1BI,EAAE,EAAEH,aAAa;IACjBI,KAAK,EAAE,uBAAuB;IAC9BC,OAAO,EAAE;MACPC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,MAAM;MACdC,MAAM,EAAE,OAAO;MACfC,IAAI,EAAE,OAAO;MACbC,GAAG,EAAE,OAAO;MACZC,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE,IAAI;MACXC,IAAI,EAAE;IACR,CAAC;IACDX;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
21
|
+
import createMultiFormatter from '../factories/createMultiFormatter.js';
|
|
22
|
+
|
|
23
|
+
export const SMART_DATE_DETAILED_ID = 'smart_date_detailed';
|
|
24
|
+
|
|
25
|
+
export function createSmartDateDetailedFormatter(
|
|
26
|
+
locale)
|
|
27
|
+
{
|
|
28
|
+
return createMultiFormatter({
|
|
29
|
+
id: 'smart_date_detailed',
|
|
30
|
+
label: 'Detailed adaptive formatter',
|
|
31
|
+
formats: {
|
|
32
|
+
millisecond: '%Y-%m-%d %H:%M:%S.%L',
|
|
33
|
+
second: '%Y-%m-%d %H:%M:%S',
|
|
34
|
+
minute: '%Y-%m-%d %H:%M',
|
|
35
|
+
hour: '%Y-%m-%d %H:%M',
|
|
36
|
+
day: '%Y-%m-%d',
|
|
37
|
+
week: '%Y-%m-%d',
|
|
38
|
+
month: '%Y-%m-%d',
|
|
39
|
+
year: '%Y'
|
|
40
|
+
},
|
|
41
|
+
locale
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=smartDateDetailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartDateDetailed.js","names":["createMultiFormatter","SMART_DATE_DETAILED_ID","createSmartDateDetailedFormatter","locale","id","label","formats","millisecond","second","minute","hour","day","week","month","year"],"sources":["../../../src/time-format/formatters/smartDateDetailed.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 { TimeLocaleDefinition } from 'd3-time-format';\nimport createMultiFormatter from '../factories/createMultiFormatter';\n\nexport const SMART_DATE_DETAILED_ID = 'smart_date_detailed';\n\nexport function createSmartDateDetailedFormatter(\n locale?: TimeLocaleDefinition,\n) {\n return createMultiFormatter({\n id: 'smart_date_detailed',\n label: 'Detailed adaptive formatter',\n formats: {\n millisecond: '%Y-%m-%d %H:%M:%S.%L',\n second: '%Y-%m-%d %H:%M:%S',\n minute: '%Y-%m-%d %H:%M',\n hour: '%Y-%m-%d %H:%M',\n day: '%Y-%m-%d',\n week: '%Y-%m-%d',\n month: '%Y-%m-%d',\n year: '%Y',\n },\n locale,\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAOA,oBAAoB,MAAM,mCAAmC;;AAEpE,OAAO,MAAMC,sBAAsB,GAAG,qBAAqB;;AAE3D,OAAO,SAASC,gCAAgCA;AAC9CC,MAA6B;AAC7B;EACA,OAAOH,oBAAoB,CAAC;IAC1BI,EAAE,EAAE,qBAAqB;IACzBC,KAAK,EAAE,6BAA6B;IACpCC,OAAO,EAAE;MACPC,WAAW,EAAE,sBAAsB;MACnCC,MAAM,EAAE,mBAAmB;MAC3BC,MAAM,EAAE,gBAAgB;MACxBC,IAAI,EAAE,gBAAgB;MACtBC,GAAG,EAAE,UAAU;MACfC,IAAI,EAAE,UAAU;MAChBC,KAAK,EAAE,UAAU;MACjBC,IAAI,EAAE;IACR,CAAC;IACDX;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
21
|
+
import createMultiFormatter from '../factories/createMultiFormatter.js';
|
|
22
|
+
|
|
23
|
+
export const SMART_DATE_VERBOSE_ID = 'smart_date_verbose';
|
|
24
|
+
|
|
25
|
+
export function createSmartDateVerboseFormatter(locale) {
|
|
26
|
+
return createMultiFormatter({
|
|
27
|
+
id: SMART_DATE_VERBOSE_ID,
|
|
28
|
+
label: 'Verbose Adaptative Formatting',
|
|
29
|
+
formats: {
|
|
30
|
+
millisecond: '.%L',
|
|
31
|
+
second: '%a %b %d, %I:%M:%S %p',
|
|
32
|
+
minute: '%a %b %d, %I:%M %p',
|
|
33
|
+
hour: '%a %b %d, %I %p',
|
|
34
|
+
day: '%a %b %-e',
|
|
35
|
+
week: '%a %b %-e',
|
|
36
|
+
month: '%b %Y',
|
|
37
|
+
year: '%Y'
|
|
38
|
+
},
|
|
39
|
+
locale
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=smartDateVerbose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartDateVerbose.js","names":["createMultiFormatter","SMART_DATE_VERBOSE_ID","createSmartDateVerboseFormatter","locale","id","label","formats","millisecond","second","minute","hour","day","week","month","year"],"sources":["../../../src/time-format/formatters/smartDateVerbose.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 { TimeLocaleDefinition } from 'd3-time-format';\nimport createMultiFormatter from '../factories/createMultiFormatter';\n\nexport const SMART_DATE_VERBOSE_ID = 'smart_date_verbose';\n\nexport function createSmartDateVerboseFormatter(locale?: TimeLocaleDefinition) {\n return createMultiFormatter({\n id: SMART_DATE_VERBOSE_ID,\n label: 'Verbose Adaptative Formatting',\n formats: {\n millisecond: '.%L',\n second: '%a %b %d, %I:%M:%S %p',\n minute: '%a %b %d, %I:%M %p',\n hour: '%a %b %d, %I %p',\n day: '%a %b %-e',\n week: '%a %b %-e',\n month: '%b %Y',\n year: '%Y',\n },\n locale,\n });\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAOA,oBAAoB,MAAM,mCAAmC;;AAEpE,OAAO,MAAMC,qBAAqB,GAAG,oBAAoB;;AAEzD,OAAO,SAASC,+BAA+BA,CAACC,MAA6B,EAAE;EAC7E,OAAOH,oBAAoB,CAAC;IAC1BI,EAAE,EAAEH,qBAAqB;IACzBI,KAAK,EAAE,+BAA+B;IACtCC,OAAO,EAAE;MACPC,WAAW,EAAE,KAAK;MAClBC,MAAM,EAAE,uBAAuB;MAC/BC,MAAM,EAAE,oBAAoB;MAC5BC,IAAI,EAAE,iBAAiB;MACvBC,GAAG,EAAE,WAAW;MAChBC,IAAI,EAAE,WAAW;MACjBC,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE;IACR,CAAC;IACDX;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
export { default as TimeFormats, LOCAL_PREFIX } from './TimeFormats.js';
|
|
21
|
+
export { default as TimeFormatter, PREVIEW_TIME } from './TimeFormatter.js';
|
|
22
|
+
export { DEFAULT_D3_TIME_FORMAT } from './D3FormatConfig.js';
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
default as getTimeFormatterRegistry,
|
|
26
|
+
formatTime,
|
|
27
|
+
formatTimeRange,
|
|
28
|
+
getTimeFormatter,
|
|
29
|
+
getTimeFormatterForGranularity,
|
|
30
|
+
getTimeRangeFormatter } from
|
|
31
|
+
'./TimeFormatterRegistrySingleton.js';
|
|
32
|
+
|
|
33
|
+
export { default as createD3TimeFormatter } from './factories/createD3TimeFormatter.js';
|
|
34
|
+
export { default as createMultiFormatter } from './factories/createMultiFormatter.js';
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
SMART_DATE_ID,
|
|
38
|
+
createSmartDateFormatter } from
|
|
39
|
+
'./formatters/smartDate.js';
|
|
40
|
+
export {
|
|
41
|
+
SMART_DATE_DETAILED_ID,
|
|
42
|
+
createSmartDateDetailedFormatter } from
|
|
43
|
+
'./formatters/smartDateDetailed.js';
|
|
44
|
+
export {
|
|
45
|
+
SMART_DATE_VERBOSE_ID,
|
|
46
|
+
createSmartDateVerboseFormatter } from
|
|
47
|
+
'./formatters/smartDateVerbose.js';
|
|
48
|
+
export { default as finestTemporalGrainFormatter } from './formatters/finestTemporalGrain.js';
|
|
49
|
+
|
|
50
|
+
export { default as normalizeTimestamp } from './utils/normalizeTimestamp.js';
|
|
51
|
+
export { default as denormalizeTimestamp } from './utils/denormalizeTimestamp.js';
|
|
52
|
+
|
|
53
|
+
export * from './types.js';
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","TimeFormats","LOCAL_PREFIX","TimeFormatter","PREVIEW_TIME","DEFAULT_D3_TIME_FORMAT","getTimeFormatterRegistry","formatTime","formatTimeRange","getTimeFormatter","getTimeFormatterForGranularity","getTimeRangeFormatter","createD3TimeFormatter","createMultiFormatter","SMART_DATE_ID","createSmartDateFormatter","SMART_DATE_DETAILED_ID","createSmartDateDetailedFormatter","SMART_DATE_VERBOSE_ID","createSmartDateVerboseFormatter","finestTemporalGrainFormatter","normalizeTimestamp","denormalizeTimestamp"],"sources":["../../src/time-format/index.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\nexport { default as TimeFormats, LOCAL_PREFIX } from './TimeFormats';\nexport { default as TimeFormatter, PREVIEW_TIME } from './TimeFormatter';\nexport { DEFAULT_D3_TIME_FORMAT } from './D3FormatConfig';\n\nexport {\n default as getTimeFormatterRegistry,\n formatTime,\n formatTimeRange,\n getTimeFormatter,\n getTimeFormatterForGranularity,\n getTimeRangeFormatter,\n} from './TimeFormatterRegistrySingleton';\n\nexport { default as createD3TimeFormatter } from './factories/createD3TimeFormatter';\nexport { default as createMultiFormatter } from './factories/createMultiFormatter';\n\nexport {\n SMART_DATE_ID,\n createSmartDateFormatter,\n} from './formatters/smartDate';\nexport {\n SMART_DATE_DETAILED_ID,\n createSmartDateDetailedFormatter,\n} from './formatters/smartDateDetailed';\nexport {\n SMART_DATE_VERBOSE_ID,\n createSmartDateVerboseFormatter,\n} from './formatters/smartDateVerbose';\nexport { default as finestTemporalGrainFormatter } from './formatters/finestTemporalGrain';\n\nexport { default as normalizeTimestamp } from './utils/normalizeTimestamp';\nexport { default as denormalizeTimestamp } from './utils/denormalizeTimestamp';\n\nexport * from './types';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,IAAIC,WAAW,EAAEC,YAAY,QAAQ,eAAe;AACpE,SAASF,OAAO,IAAIG,aAAa,EAAEC,YAAY,QAAQ,iBAAiB;AACxE,SAASC,sBAAsB,QAAQ,kBAAkB;;AAEzD;EACEL,OAAO,IAAIM,wBAAwB;EACnCC,UAAU;EACVC,eAAe;EACfC,gBAAgB;EAChBC,8BAA8B;EAC9BC,qBAAqB;AAChB,kCAAkC;;AAEzC,SAASX,OAAO,IAAIY,qBAAqB,QAAQ,mCAAmC;AACpF,SAASZ,OAAO,IAAIa,oBAAoB,QAAQ,kCAAkC;;AAElF;EACEC,aAAa;EACbC,wBAAwB;AACnB,wBAAwB;AAC/B;EACEC,sBAAsB;EACtBC,gCAAgC;AAC3B,gCAAgC;AACvC;EACEC,qBAAqB;EACrBC,+BAA+B;AAC1B,+BAA+B;AACtC,SAASnB,OAAO,IAAIoB,4BAA4B,QAAQ,kCAAkC;;AAE1F,SAASpB,OAAO,IAAIqB,kBAAkB,QAAQ,4BAA4B;AAC1E,SAASrB,OAAO,IAAIsB,oBAAoB,QAAQ,8BAA8B;;AAE9E,cAAc,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* search for `builtin_time_grains` in incubator-superset/superset/db_engine_specs/base.py
|
|
28
|
+
*/
|
|
29
|
+
export const TimeGranularity = {
|
|
30
|
+
DATE: 'date',
|
|
31
|
+
SECOND: 'PT1S',
|
|
32
|
+
MINUTE: 'PT1M',
|
|
33
|
+
FIVE_MINUTES: 'PT5M',
|
|
34
|
+
TEN_MINUTES: 'PT10M',
|
|
35
|
+
FIFTEEN_MINUTES: 'PT15M',
|
|
36
|
+
THIRTY_MINUTES: 'PT30M',
|
|
37
|
+
HOUR: 'PT1H',
|
|
38
|
+
DAY: 'P1D',
|
|
39
|
+
WEEK: 'P1W',
|
|
40
|
+
WEEK_STARTING_SUNDAY: '1969-12-28T00:00:00Z/P1W',
|
|
41
|
+
WEEK_STARTING_MONDAY: '1969-12-29T00:00:00Z/P1W',
|
|
42
|
+
WEEK_ENDING_SATURDAY: 'P1W/1970-01-03T00:00:00Z',
|
|
43
|
+
WEEK_ENDING_SUNDAY: 'P1W/1970-01-04T00:00:00Z',
|
|
44
|
+
MONTH: 'P1M',
|
|
45
|
+
QUARTER: 'P3M',
|
|
46
|
+
YEAR: 'P1Y'
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["TimeGranularity","DATE","SECOND","MINUTE","FIVE_MINUTES","TEN_MINUTES","FIFTEEN_MINUTES","THIRTY_MINUTES","HOUR","DAY","WEEK","WEEK_STARTING_SUNDAY","WEEK_STARTING_MONDAY","WEEK_ENDING_SATURDAY","WEEK_ENDING_SUNDAY","MONTH","QUARTER","YEAR"],"sources":["../../src/time-format/types.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\nexport type TimeFormatFunction = (value: Date) => string;\n\nexport type TimeRangeFormatFunction = (\n values: (Date | number | undefined | null)[],\n) => string;\n\n/**\n * search for `builtin_time_grains` in incubator-superset/superset/db_engine_specs/base.py\n */\nexport const TimeGranularity = {\n DATE: 'date',\n SECOND: 'PT1S',\n MINUTE: 'PT1M',\n FIVE_MINUTES: 'PT5M',\n TEN_MINUTES: 'PT10M',\n FIFTEEN_MINUTES: 'PT15M',\n THIRTY_MINUTES: 'PT30M',\n HOUR: 'PT1H',\n DAY: 'P1D',\n WEEK: 'P1W',\n WEEK_STARTING_SUNDAY: '1969-12-28T00:00:00Z/P1W',\n WEEK_STARTING_MONDAY: '1969-12-29T00:00:00Z/P1W',\n WEEK_ENDING_SATURDAY: 'P1W/1970-01-03T00:00:00Z',\n WEEK_ENDING_SUNDAY: 'P1W/1970-01-04T00:00:00Z',\n MONTH: 'P1M',\n QUARTER: 'P3M',\n YEAR: 'P1Y',\n} as const;\n\ntype ValueOf<T> = T[keyof T];\n\nexport type TimeGranularity = ValueOf<typeof TimeGranularity>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AAQA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,GAAG;EAC7BC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,MAAM;EACdC,MAAM,EAAE,MAAM;EACdC,YAAY,EAAE,MAAM;EACpBC,WAAW,EAAE,OAAO;EACpBC,eAAe,EAAE,OAAO;EACxBC,cAAc,EAAE,OAAO;EACvBC,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,KAAK;EACVC,IAAI,EAAE,KAAK;EACXC,oBAAoB,EAAE,0BAA0B;EAChDC,oBAAoB,EAAE,0BAA0B;EAChDC,oBAAoB,EAAE,0BAA0B;EAChDC,kBAAkB,EAAE,0BAA0B;EAC9CC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,IAAI,EAAE;AACR,CAAU","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export default function createTime(
|
|
21
|
+
mode,
|
|
22
|
+
year,
|
|
23
|
+
month = 0,
|
|
24
|
+
date = 1,
|
|
25
|
+
hours = 0,
|
|
26
|
+
minutes = 0,
|
|
27
|
+
seconds = 0,
|
|
28
|
+
milliseconds = 0)
|
|
29
|
+
{
|
|
30
|
+
const args = [
|
|
31
|
+
year,
|
|
32
|
+
month,
|
|
33
|
+
date,
|
|
34
|
+
hours,
|
|
35
|
+
minutes,
|
|
36
|
+
seconds,
|
|
37
|
+
milliseconds];
|
|
38
|
+
|
|
39
|
+
return mode === 'local' ? new Date(...args) : new Date(Date.UTC(...args));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=createTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTime.js","names":["createTime","mode","year","month","date","hours","minutes","seconds","milliseconds","args","Date","UTC"],"sources":["../../../src/time-format/utils/createTime.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\nexport default function createTime(\n mode: 'local' | 'utc',\n year: number,\n month = 0,\n date = 1,\n hours = 0,\n minutes = 0,\n seconds = 0,\n milliseconds = 0,\n): Date {\n const args = [\n year,\n month,\n date,\n hours,\n minutes,\n seconds,\n milliseconds,\n ] as const;\n return mode === 'local' ? new Date(...args) : new Date(Date.UTC(...args));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAASA,UAAUA;AAChCC,IAAqB;AACrBC,IAAY;AACZC,KAAK,GAAG,CAAC;AACTC,IAAI,GAAG,CAAC;AACRC,KAAK,GAAG,CAAC;AACTC,OAAO,GAAG,CAAC;AACXC,OAAO,GAAG,CAAC;AACXC,YAAY,GAAG,CAAC;AACV;EACN,MAAMC,IAAI,GAAG;EACXP,IAAI;EACJC,KAAK;EACLC,IAAI;EACJC,KAAK;EACLC,OAAO;EACPC,OAAO;EACPC,YAAY,CACJ;;EACV,OAAOP,IAAI,KAAK,OAAO,GAAG,IAAIS,IAAI,CAAC,GAAGD,IAAI,CAAC,GAAG,IAAIC,IAAI,CAACA,IAAI,CAACC,GAAG,CAAC,GAAGF,IAAI,CAAC,CAAC;AAC3E","ignoreList":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { TimeGranularity } from '../types.js';
|
|
21
|
+
import createTime from './createTime.js';
|
|
22
|
+
|
|
23
|
+
const MS_IN_SECOND = 1000;
|
|
24
|
+
const MS_IN_MINUTE = 60 * MS_IN_SECOND;
|
|
25
|
+
const MS_IN_HOUR = 60 * MS_IN_MINUTE;
|
|
26
|
+
|
|
27
|
+
function deductOneMs(time) {
|
|
28
|
+
return new Date(time.getTime() - 1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function computeEndTimeFromGranularity(
|
|
32
|
+
time,
|
|
33
|
+
granularity,
|
|
34
|
+
useLocalTime)
|
|
35
|
+
{
|
|
36
|
+
const date = useLocalTime ? time.getDate() : time.getUTCDate();
|
|
37
|
+
const month = useLocalTime ? time.getMonth() : time.getUTCMonth();
|
|
38
|
+
const year = useLocalTime ? time.getFullYear() : time.getUTCFullYear();
|
|
39
|
+
const mode = useLocalTime ? 'local' : 'utc';
|
|
40
|
+
|
|
41
|
+
switch (granularity) {
|
|
42
|
+
case TimeGranularity.SECOND:
|
|
43
|
+
return new Date(time.getTime() + MS_IN_SECOND - 1);
|
|
44
|
+
case TimeGranularity.MINUTE:
|
|
45
|
+
return new Date(time.getTime() + MS_IN_MINUTE - 1);
|
|
46
|
+
case TimeGranularity.FIVE_MINUTES:
|
|
47
|
+
return new Date(time.getTime() + MS_IN_MINUTE * 5 - 1);
|
|
48
|
+
case TimeGranularity.TEN_MINUTES:
|
|
49
|
+
return new Date(time.getTime() + MS_IN_MINUTE * 10 - 1);
|
|
50
|
+
case TimeGranularity.FIFTEEN_MINUTES:
|
|
51
|
+
return new Date(time.getTime() + MS_IN_MINUTE * 15 - 1);
|
|
52
|
+
case TimeGranularity.THIRTY_MINUTES:
|
|
53
|
+
return new Date(time.getTime() + MS_IN_MINUTE * 30 - 1);
|
|
54
|
+
case TimeGranularity.HOUR:
|
|
55
|
+
return new Date(time.getTime() + MS_IN_HOUR - 1);
|
|
56
|
+
// For the day granularity and above, using Date overflow is better than adding timestamp
|
|
57
|
+
// because it will also handle daylight saving.
|
|
58
|
+
case TimeGranularity.WEEK:
|
|
59
|
+
case TimeGranularity.WEEK_STARTING_SUNDAY:
|
|
60
|
+
case TimeGranularity.WEEK_STARTING_MONDAY:
|
|
61
|
+
return deductOneMs(createTime(mode, year, month, date + 7));
|
|
62
|
+
case TimeGranularity.MONTH:
|
|
63
|
+
return deductOneMs(createTime(mode, year, month + 1));
|
|
64
|
+
case TimeGranularity.QUARTER:
|
|
65
|
+
return deductOneMs(
|
|
66
|
+
createTime(mode, year, (Math.floor(month / 3) + 1) * 3)
|
|
67
|
+
);
|
|
68
|
+
case TimeGranularity.YEAR:
|
|
69
|
+
return deductOneMs(createTime(mode, year + 1));
|
|
70
|
+
// For the WEEK_ENDING_XXX cases,
|
|
71
|
+
// currently assume "time" returned from database is supposed to be the end time
|
|
72
|
+
// (in contrast to all other granularities that the returned time is start time).
|
|
73
|
+
// However, the returned "time" is at 00:00:00.000, so have to add 23:59:59.999.
|
|
74
|
+
case TimeGranularity.WEEK_ENDING_SATURDAY:
|
|
75
|
+
case TimeGranularity.WEEK_ENDING_SUNDAY:
|
|
76
|
+
case TimeGranularity.DATE:
|
|
77
|
+
case TimeGranularity.DAY:
|
|
78
|
+
default:
|
|
79
|
+
return deductOneMs(createTime(mode, year, month, date + 1));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default function createTimeRangeFromGranularity(
|
|
84
|
+
time,
|
|
85
|
+
granularity,
|
|
86
|
+
useLocalTime = false)
|
|
87
|
+
{
|
|
88
|
+
const endTime = computeEndTimeFromGranularity(
|
|
89
|
+
time,
|
|
90
|
+
granularity,
|
|
91
|
+
useLocalTime
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
if (
|
|
95
|
+
granularity === TimeGranularity.WEEK_ENDING_SATURDAY ||
|
|
96
|
+
granularity === TimeGranularity.WEEK_ENDING_SUNDAY)
|
|
97
|
+
{
|
|
98
|
+
const date = useLocalTime ? time.getDate() : time.getUTCDate();
|
|
99
|
+
const month = useLocalTime ? time.getMonth() : time.getUTCMonth();
|
|
100
|
+
const year = useLocalTime ? time.getFullYear() : time.getUTCFullYear();
|
|
101
|
+
const startTime = createTime(
|
|
102
|
+
useLocalTime ? 'local' : 'utc',
|
|
103
|
+
year,
|
|
104
|
+
month,
|
|
105
|
+
date - 6
|
|
106
|
+
);
|
|
107
|
+
return [startTime, endTime];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return [time, endTime];
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=createTimeRangeFromGranularity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTimeRangeFromGranularity.js","names":["TimeGranularity","createTime","MS_IN_SECOND","MS_IN_MINUTE","MS_IN_HOUR","deductOneMs","time","Date","getTime","computeEndTimeFromGranularity","granularity","useLocalTime","date","getDate","getUTCDate","month","getMonth","getUTCMonth","year","getFullYear","getUTCFullYear","mode","SECOND","MINUTE","FIVE_MINUTES","TEN_MINUTES","FIFTEEN_MINUTES","THIRTY_MINUTES","HOUR","WEEK","WEEK_STARTING_SUNDAY","WEEK_STARTING_MONDAY","MONTH","QUARTER","Math","floor","YEAR","WEEK_ENDING_SATURDAY","WEEK_ENDING_SUNDAY","DATE","DAY","createTimeRangeFromGranularity","endTime","startTime"],"sources":["../../../src/time-format/utils/createTimeRangeFromGranularity.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 { TimeGranularity } from '../types';\nimport createTime from './createTime';\n\nconst MS_IN_SECOND = 1000;\nconst MS_IN_MINUTE = 60 * MS_IN_SECOND;\nconst MS_IN_HOUR = 60 * MS_IN_MINUTE;\n\nfunction deductOneMs(time: Date) {\n return new Date(time.getTime() - 1);\n}\n\nfunction computeEndTimeFromGranularity(\n time: Date,\n granularity: TimeGranularity,\n useLocalTime: boolean,\n) {\n const date = useLocalTime ? time.getDate() : time.getUTCDate();\n const month = useLocalTime ? time.getMonth() : time.getUTCMonth();\n const year = useLocalTime ? time.getFullYear() : time.getUTCFullYear();\n const mode = useLocalTime ? 'local' : 'utc';\n\n switch (granularity) {\n case TimeGranularity.SECOND:\n return new Date(time.getTime() + MS_IN_SECOND - 1);\n case TimeGranularity.MINUTE:\n return new Date(time.getTime() + MS_IN_MINUTE - 1);\n case TimeGranularity.FIVE_MINUTES:\n return new Date(time.getTime() + MS_IN_MINUTE * 5 - 1);\n case TimeGranularity.TEN_MINUTES:\n return new Date(time.getTime() + MS_IN_MINUTE * 10 - 1);\n case TimeGranularity.FIFTEEN_MINUTES:\n return new Date(time.getTime() + MS_IN_MINUTE * 15 - 1);\n case TimeGranularity.THIRTY_MINUTES:\n return new Date(time.getTime() + MS_IN_MINUTE * 30 - 1);\n case TimeGranularity.HOUR:\n return new Date(time.getTime() + MS_IN_HOUR - 1);\n // For the day granularity and above, using Date overflow is better than adding timestamp\n // because it will also handle daylight saving.\n case TimeGranularity.WEEK:\n case TimeGranularity.WEEK_STARTING_SUNDAY:\n case TimeGranularity.WEEK_STARTING_MONDAY:\n return deductOneMs(createTime(mode, year, month, date + 7));\n case TimeGranularity.MONTH:\n return deductOneMs(createTime(mode, year, month + 1));\n case TimeGranularity.QUARTER:\n return deductOneMs(\n createTime(mode, year, (Math.floor(month / 3) + 1) * 3),\n );\n case TimeGranularity.YEAR:\n return deductOneMs(createTime(mode, year + 1));\n // For the WEEK_ENDING_XXX cases,\n // currently assume \"time\" returned from database is supposed to be the end time\n // (in contrast to all other granularities that the returned time is start time).\n // However, the returned \"time\" is at 00:00:00.000, so have to add 23:59:59.999.\n case TimeGranularity.WEEK_ENDING_SATURDAY:\n case TimeGranularity.WEEK_ENDING_SUNDAY:\n case TimeGranularity.DATE:\n case TimeGranularity.DAY:\n default:\n return deductOneMs(createTime(mode, year, month, date + 1));\n }\n}\n\nexport default function createTimeRangeFromGranularity(\n time: Date,\n granularity: TimeGranularity,\n useLocalTime = false,\n) {\n const endTime = computeEndTimeFromGranularity(\n time,\n granularity,\n useLocalTime,\n );\n\n if (\n granularity === TimeGranularity.WEEK_ENDING_SATURDAY ||\n granularity === TimeGranularity.WEEK_ENDING_SUNDAY\n ) {\n const date = useLocalTime ? time.getDate() : time.getUTCDate();\n const month = useLocalTime ? time.getMonth() : time.getUTCMonth();\n const year = useLocalTime ? time.getFullYear() : time.getUTCFullYear();\n const startTime = createTime(\n useLocalTime ? 'local' : 'utc',\n year,\n month,\n date - 6,\n );\n return [startTime, endTime];\n }\n\n return [time, endTime];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,eAAe,QAAQ,UAAU;AAC1C,OAAOC,UAAU,MAAM,cAAc;;AAErC,MAAMC,YAAY,GAAG,IAAI;AACzB,MAAMC,YAAY,GAAG,EAAE,GAAGD,YAAY;AACtC,MAAME,UAAU,GAAG,EAAE,GAAGD,YAAY;;AAEpC,SAASE,WAAWA,CAACC,IAAU,EAAE;EAC/B,OAAO,IAAIC,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC;AACrC;;AAEA,SAASC,6BAA6BA;AACpCH,IAAU;AACVI,WAA4B;AAC5BC,YAAqB;AACrB;EACA,MAAMC,IAAI,GAAGD,YAAY,GAAGL,IAAI,CAACO,OAAO,CAAC,CAAC,GAAGP,IAAI,CAACQ,UAAU,CAAC,CAAC;EAC9D,MAAMC,KAAK,GAAGJ,YAAY,GAAGL,IAAI,CAACU,QAAQ,CAAC,CAAC,GAAGV,IAAI,CAACW,WAAW,CAAC,CAAC;EACjE,MAAMC,IAAI,GAAGP,YAAY,GAAGL,IAAI,CAACa,WAAW,CAAC,CAAC,GAAGb,IAAI,CAACc,cAAc,CAAC,CAAC;EACtE,MAAMC,IAAI,GAAGV,YAAY,GAAG,OAAO,GAAG,KAAK;;EAE3C,QAAQD,WAAW;IACjB,KAAKV,eAAe,CAACsB,MAAM;MACzB,OAAO,IAAIf,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGN,YAAY,GAAG,CAAC,CAAC;IACpD,KAAKF,eAAe,CAACuB,MAAM;MACzB,OAAO,IAAIhB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGL,YAAY,GAAG,CAAC,CAAC;IACpD,KAAKH,eAAe,CAACwB,YAAY;MAC/B,OAAO,IAAIjB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGL,YAAY,GAAG,CAAC,GAAG,CAAC,CAAC;IACxD,KAAKH,eAAe,CAACyB,WAAW;MAC9B,OAAO,IAAIlB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGL,YAAY,GAAG,EAAE,GAAG,CAAC,CAAC;IACzD,KAAKH,eAAe,CAAC0B,eAAe;MAClC,OAAO,IAAInB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGL,YAAY,GAAG,EAAE,GAAG,CAAC,CAAC;IACzD,KAAKH,eAAe,CAAC2B,cAAc;MACjC,OAAO,IAAIpB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGL,YAAY,GAAG,EAAE,GAAG,CAAC,CAAC;IACzD,KAAKH,eAAe,CAAC4B,IAAI;MACvB,OAAO,IAAIrB,IAAI,CAACD,IAAI,CAACE,OAAO,CAAC,CAAC,GAAGJ,UAAU,GAAG,CAAC,CAAC;IAClD;IACA;IACA,KAAKJ,eAAe,CAAC6B,IAAI;IACzB,KAAK7B,eAAe,CAAC8B,oBAAoB;IACzC,KAAK9B,eAAe,CAAC+B,oBAAoB;MACvC,OAAO1B,WAAW,CAACJ,UAAU,CAACoB,IAAI,EAAEH,IAAI,EAAEH,KAAK,EAAEH,IAAI,GAAG,CAAC,CAAC,CAAC;IAC7D,KAAKZ,eAAe,CAACgC,KAAK;MACxB,OAAO3B,WAAW,CAACJ,UAAU,CAACoB,IAAI,EAAEH,IAAI,EAAEH,KAAK,GAAG,CAAC,CAAC,CAAC;IACvD,KAAKf,eAAe,CAACiC,OAAO;MAC1B,OAAO5B,WAAW;QAChBJ,UAAU,CAACoB,IAAI,EAAEH,IAAI,EAAE,CAACgB,IAAI,CAACC,KAAK,CAACpB,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;MACxD,CAAC;IACH,KAAKf,eAAe,CAACoC,IAAI;MACvB,OAAO/B,WAAW,CAACJ,UAAU,CAACoB,IAAI,EAAEH,IAAI,GAAG,CAAC,CAAC,CAAC;IAChD;IACA;IACA;IACA;IACA,KAAKlB,eAAe,CAACqC,oBAAoB;IACzC,KAAKrC,eAAe,CAACsC,kBAAkB;IACvC,KAAKtC,eAAe,CAACuC,IAAI;IACzB,KAAKvC,eAAe,CAACwC,GAAG;IACxB;MACE,OAAOnC,WAAW,CAACJ,UAAU,CAACoB,IAAI,EAAEH,IAAI,EAAEH,KAAK,EAAEH,IAAI,GAAG,CAAC,CAAC,CAAC;EAC/D;AACF;;AAEA,eAAe,SAAS6B,8BAA8BA;AACpDnC,IAAU;AACVI,WAA4B;AAC5BC,YAAY,GAAG,KAAK;AACpB;EACA,MAAM+B,OAAO,GAAGjC,6BAA6B;IAC3CH,IAAI;IACJI,WAAW;IACXC;EACF,CAAC;;EAED;EACED,WAAW,KAAKV,eAAe,CAACqC,oBAAoB;EACpD3B,WAAW,KAAKV,eAAe,CAACsC,kBAAkB;EAClD;IACA,MAAM1B,IAAI,GAAGD,YAAY,GAAGL,IAAI,CAACO,OAAO,CAAC,CAAC,GAAGP,IAAI,CAACQ,UAAU,CAAC,CAAC;IAC9D,MAAMC,KAAK,GAAGJ,YAAY,GAAGL,IAAI,CAACU,QAAQ,CAAC,CAAC,GAAGV,IAAI,CAACW,WAAW,CAAC,CAAC;IACjE,MAAMC,IAAI,GAAGP,YAAY,GAAGL,IAAI,CAACa,WAAW,CAAC,CAAC,GAAGb,IAAI,CAACc,cAAc,CAAC,CAAC;IACtE,MAAMuB,SAAS,GAAG1C,UAAU;MAC1BU,YAAY,GAAG,OAAO,GAAG,KAAK;MAC9BO,IAAI;MACJH,KAAK;MACLH,IAAI,GAAG;IACT,CAAC;IACD,OAAO,CAAC+B,SAAS,EAAED,OAAO,CAAC;EAC7B;;EAEA,OAAO,CAACpC,IAAI,EAAEoC,OAAO,CAAC;AACxB","ignoreList":[]}
|