@prorobotech/openapi-k8s-toolkit 1.2.0-alpha.2 → 1.2.0-alpha.21
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 +119 -0
- package/dist/mockServiceWorker.js +349 -0
- package/dist/openapi-k8s-toolkit.es.js +42693 -11594
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +43090 -11961
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/bff/search/getKinds.d.ts +1 -1
- package/dist/types/components/atoms/ContentCard/ContentCard.styled.d.ts +2 -0
- package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/helpers.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/context.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/getSortedPropertyKeys.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/hiddenExpanded.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/prefills.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utilsErrorHandler.test.d.ts +1 -0
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.test.d.ts +2 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +2 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +4 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.test.d.ts +8 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +1 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +2 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/Events/molecules/EventRow/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/Events/reducer.test.d.ts +1 -0
- package/dist/types/components/molecules/Events/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.test.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/NodeTerminal.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/XTerminal.d.ts +3 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/types.d.ts +7 -0
- package/dist/types/components/molecules/Terminals/NodeTerminal/types.d.ts +12 -0
- package/dist/types/components/molecules/Terminals/VMVNC/VMVNC.d.ts +9 -0
- package/dist/types/components/molecules/Terminals/VMVNC/hooks/useVNCClient.d.ts +29 -0
- package/dist/types/components/molecules/Terminals/VMVNC/hooks/useVNCClient.test.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/VMVNC/index.d.ts +2 -0
- package/dist/types/components/molecules/Terminals/VMVNC/molecules/VMVNCToolbar/VMVNCToolbar.d.ts +17 -0
- package/dist/types/components/molecules/Terminals/VMVNC/molecules/VMVNCToolbar/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/VMVNC/molecules/VMVNCToolbar/styled.d.ts +1364 -0
- package/dist/types/components/molecules/Terminals/VMVNC/molecules/index.d.ts +1 -0
- package/dist/types/components/molecules/Terminals/VMVNC/styled.d.ts +834 -0
- package/dist/types/components/molecules/Terminals/index.d.ts +2 -0
- package/dist/types/components/molecules/index.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ArrayOfObjectsToKeyValues/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/ConverterBytes.d.ts +13 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterCores/ConverterCores.d.ts +19 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterCores/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Events/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/KeyCounter/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Labels/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/guard.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/PrometheusGraph.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/WidthHeightDiv/WidthHeightDiv.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/WidthHeightDiv/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/helpers.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/multi/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/multi/usePromMatrixToLineMulti.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/multi/usePromMatrixToLineMulti.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/single/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/single/usePromMatrixToLineSingle.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/single/usePromMatrixToLineSingle.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/usePromScalar.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/usePromScalar.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/usePromVector.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/usePromVector.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaMulti/MatrixToAreaMulti.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaMulti/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaSingle/MatrixToAreaSingle.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaSingle/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaStacked/MatrixToAreaStacked.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaStacked/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineMulti/MatrixToLineMulti.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineMulti/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineSingle/MatrixToLineSingle.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineSingle/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToReducedBar/MatrixToReducedBar.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToReducedBar/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToTableRows/MatrixToTableRows.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToTableRows/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/index.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToGauge/ScalarToGauge.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToGauge/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToStat/ScalarToStat.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToStat/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarGauge/VectorToBarGauge.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarGauge/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarHorizontal/VectorToBarHorizontal.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarHorizontal/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarVertical/VectorToBarVertical.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarVertical/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToGaugeRadial/VectorToGaugeRadial.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToGaugeRadial/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToPie/VectorToPie.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToPie/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToTableRows/VectorToTableRows.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToTableRows/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/index.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/chartsProps.d.ts +48 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/responses.d.ts +27 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/buildPrometheusRangeParams/buildPrometheusRangeParams.d.ts +10 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/buildPrometheusRangeParams/buildPrometheusRangeParams.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/buildPrometheusRangeParams/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/formatBytes.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/formatTimestamp.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/index.d.ts +9 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/index.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toAreaStacked/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toAreaStacked/matrixToAreaStackedAdapter.d.ts +14 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toAreaStacked/matrixToAreaStackedAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/matrixToLineAdapter.d.ts +12 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/matrixToLineAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/matrixToReducedVectorAdapter.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/matrixToReducedVectorAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/matrixToTableRowsAdapter.d.ts +12 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/matrixToTableRowsAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/index.d.ts +4 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/scalarToGaugeAdapter.d.ts +15 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/scalarToGaugeAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/scalarToStatAdapter.d.ts +11 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/scalarToStatAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/pickSeriesId.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/pickSeriesId.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/index.d.ts +10 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/prometheusVectorUtils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBar/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBar/vectorToBarAdapter.d.ts +18 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBarGauge/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBarGauge/vectorToBarGaugeAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toGaugeRadial/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toGaugeRadial/vectorToGaugeRadialAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toPie/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toPie/vectorToPieAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toTableRows/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toTableRows/vectorToTableRowsAdapter.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Taints/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/VMVNC/VMVNC.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/VMVNC/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/YamlEditorSingleton/utils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +57 -2
- package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/factoryConfigProvider/factoryConfigProvider.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/factoryConfigProvider/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/{hybridDataProvider.d.ts → providers/hybridDataProvider/hybridDataProvider.d.ts} +1 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/hybridDataProvider/hybridDataProvider.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/hybridDataProvider/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiK8sProvider/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/{multiK8sProvider.d.ts → providers/multiK8sProvider/multiK8sProvider.d.ts} +1 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiK8sProvider/multiK8sProvider.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiQueryProvider/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/multiQueryProvider/multiQueryProvider.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/partsOfUrlContext/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/partsOfUrlContext/partsOfUrlContext.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/themeContext/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/themeContext/themeContext.test.d.ts +1 -0
- package/dist/types/hooks/useApiResource.d.ts +1 -0
- package/dist/types/hooks/useBuiltinResource.d.ts +1 -0
- package/dist/types/hooks/useCrdResource.d.ts +1 -0
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResource.d.ts +1 -0
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResource.test.d.ts +2 -0
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts +1 -0
- package/dist/types/hooks/useK8sSmartResource/useK8sSmartResourceWithoutKinds.test.d.ts +2 -0
- package/dist/types/hooks/useK8sSmartResource/useManyK8sSmartResource.d.ts +1 -0
- package/dist/types/hooks/useK8sSmartResource/useManyK8sSmartResource.test.d.ts +2 -0
- package/dist/types/hooks/useK8sSmartResource/useSmartResourceParams.d.ts +5 -5
- package/dist/types/hooks/useK8sSmartResource/useSmartResourceParams.test.d.ts +2 -0
- package/dist/types/hooks/useKinds.d.ts +8 -0
- package/dist/types/hooks/useListThenWatch/reducer.test.d.ts +1 -0
- package/dist/types/hooks/useListThenWatch/useInfiniteSentinel.test.d.ts +2 -0
- package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -0
- package/dist/types/hooks/useListThenWatch/useListWatch.test.d.ts +2 -0
- package/dist/types/hooks/useListThenWatch/utils.test.d.ts +1 -0
- package/dist/types/hooks/useResourceScope/index.d.ts +1 -0
- package/dist/types/hooks/useResourceScope/useResourceScope.d.ts +12 -0
- package/dist/types/hooks/useResourceScope/useResourceScope.test.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/localTypes/bff/table.d.ts +2 -1
- package/dist/types/localTypes/factories/converterBytes.d.ts +10 -0
- package/dist/types/localTypes/factories/converterCores.d.ts +7 -0
- package/dist/types/localTypes/k8s.d.ts +1 -0
- package/dist/types/localTypes/navigations.d.ts +3 -0
- package/dist/types/localTypes/richTable.d.ts +4 -0
- package/dist/types/utils/converterBytes/converterBytes.d.ts +35 -0
- package/dist/types/utils/converterBytes/converterBytes.test.d.ts +1 -0
- package/dist/types/utils/converterBytes/index.d.ts +1 -0
- package/dist/types/utils/converterCores/converterCores.d.ts +45 -0
- package/dist/types/utils/converterCores/converterCores.test.d.ts +1 -0
- package/dist/types/utils/converterCores/index.d.ts +1 -0
- package/dist/types/utils/converterDates/converterDates.d.ts +33 -0
- package/dist/types/utils/converterDates/converterDates.test.d.ts +1 -0
- package/dist/types/utils/converterDates/index.d.ts +2 -0
- package/dist/types/utils/createContextFactory/createContextFactory.test.d.ts +2 -0
- package/dist/types/utils/deepMerge/deepMerge.test.d.ts +1 -0
- package/dist/types/utils/filterSelectOptions/filterSelectOptions.test.d.ts +1 -0
- package/dist/types/utils/getAllPathsFromObj/getAllPathsFromObj.test.d.ts +1 -0
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.test.d.ts +2 -0
- package/dist/types/utils/getPrefixSubArrays/getPrefixSubArrays.test.d.ts +1 -0
- package/dist/types/utils/getResourceLink/getResourceLink.test.d.ts +1 -0
- package/dist/types/utils/getSortedKinds/getSortedKinds.test.d.ts +1 -0
- package/dist/types/utils/getSortedKindsAll/getSortedKindsAll.test.d.ts +1 -0
- package/dist/types/utils/getStringByName/getStringByName.test.d.ts +1 -0
- package/dist/types/utils/getUppercase/getUppercase.test.d.ts +1 -0
- package/dist/types/utils/groupsToTreeData/groupsToTreeData.test.d.ts +1 -0
- package/dist/types/utils/hslFromString/hslFromString.test.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/isFlatObject/isFlatObject.test.d.ts +1 -0
- package/dist/types/utils/kindByGvr/kindByGvr.test.d.ts +1 -0
- package/dist/types/utils/namespacedByGvr/namespacedByGvr.test.d.ts +1 -0
- package/dist/types/utils/nestedStringsArrayInclude/nestedStringsArrayInclude.test.d.ts +1 -0
- package/dist/types/utils/normalizeValuesForQuotas/normalizeValuesForQuotas.test.d.ts +1 -0
- package/dist/types/utils/parseForQuotaValues/parseForQuotaValues.test.d.ts +1 -0
- package/dist/types/utils/pluralByKind/pluralByKind.test.d.ts +1 -0
- package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/prepareUrlsToFetchForDynamicRenderer.test.d.ts +1 -0
- package/dist/types/utils/tableLocations/tableLocations.test.d.ts +1 -0
- package/package.json +12 -2
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/types.d.ts +0 -10
- package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/utils.d.ts +0 -15
- /package/dist/types/components/organisms/DynamicRendererWithProviders/{factoryConfigProvider.d.ts → providers/factoryConfigProvider/factoryConfigProvider.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicRendererWithProviders/{multiQueryProvider.d.ts → providers/multiQueryProvider/multiQueryProvider.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicRendererWithProviders/{partsOfUrlContext.d.ts → providers/partsOfUrlContext/partsOfUrlContext.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicRendererWithProviders/{themeContext.d.ts → providers/themeContext/themeContext.d.ts} +0 -0
|
@@ -6,3 +6,5 @@ export { PodLogs } from './PodLogs';
|
|
|
6
6
|
export type { TPodLogsProps } from './PodLogs';
|
|
7
7
|
export { PodLogsMonaco } from './PodLogsMonaco';
|
|
8
8
|
export type { TPodLogsMonacoProps } from './PodLogsMonaco';
|
|
9
|
+
export { VMVNC } from './VMVNC';
|
|
10
|
+
export type { TVMVNCProps } from './VMVNC';
|
|
@@ -11,8 +11,8 @@ export { MarketPlace, MarketplaceCard } from './MarketPlace';
|
|
|
11
11
|
export type { TMarketPlaceProps, TMarketplaceCardProps } from './MarketPlace';
|
|
12
12
|
export { ProjectInfoCard } from './ProjectInfoCard';
|
|
13
13
|
export type { TProjectInfoCardProps } from './ProjectInfoCard';
|
|
14
|
-
export { PodTerminal, NodeTerminal, PodLogs, PodLogsMonaco } from './Terminals';
|
|
15
|
-
export type { TPodTerminalProps, TNodeTerminalProps, TPodLogsProps, TPodLogsMonacoProps } from './Terminals';
|
|
14
|
+
export { PodTerminal, NodeTerminal, PodLogs, PodLogsMonaco, VMVNC } from './Terminals';
|
|
15
|
+
export type { TPodTerminalProps, TNodeTerminalProps, TPodLogsProps, TPodLogsMonacoProps, TVMVNCProps, } from './Terminals';
|
|
16
16
|
export { Search } from './Search';
|
|
17
17
|
export type { TSearchProps } from './Search';
|
|
18
18
|
export { Events } from './Events';
|
package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { TDynamicComponentsAppTypeMap } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Idea (extended for arrays):
|
|
5
|
+
* 1. bytesValue may be:
|
|
6
|
+
* - "1234567890" → raw number (bytes)
|
|
7
|
+
* - "12312312Ki" → number + source unit
|
|
8
|
+
* - ["10GiB", "512Mi", "1024"] → array; all converted to bytes, summed, then formatted
|
|
9
|
+
* 2. Each entry is resolved via parseAll, then parsed with parseValueWithUnit.
|
|
10
|
+
* 3. Each value is converted to base bytes (respecting fromUnit override).
|
|
11
|
+
* 4. All bytes are summed into totalBytes.
|
|
12
|
+
* 5. Finally:
|
|
13
|
+
* - If there’s a target unit (unit or toUnit), we convert totalBytes to that.
|
|
14
|
+
* - If not, we auto-scale totalBytes with formatBytesAuto.
|
|
15
|
+
*/
|
|
3
16
|
export declare const ConverterBytes: FC<{
|
|
4
17
|
data: TDynamicComponentsAppTypeMap['ConverterBytes'];
|
|
5
18
|
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TDynamicComponentsAppTypeMap } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Idea (extended for arrays):
|
|
5
|
+
* 1. coresValue may be:
|
|
6
|
+
* - "0.5" → raw number (cores)
|
|
7
|
+
* - "500m" → number + source unit (millicores)
|
|
8
|
+
* - "2 vcpu" → number + alias for "core"
|
|
9
|
+
* - ["500m", "0.5 core", "1"] → array of such values
|
|
10
|
+
* 2. Each entry is resolved via parseAll, then parsed with parseCoresWithUnit.
|
|
11
|
+
* 3. Each value is converted to base "cores" (respecting fromUnit override).
|
|
12
|
+
* 4. All cores are summed into totalCores.
|
|
13
|
+
* 5. Finally:
|
|
14
|
+
* - If there’s a target unit (unit or toUnit), we convert totalCores to that.
|
|
15
|
+
* - Otherwise, we auto-scale totalCores with formatCoresAuto.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ConverterCores: FC<{
|
|
18
|
+
data: TDynamicComponentsAppTypeMap['ConverterCores'];
|
|
19
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConverterCores } from './ConverterCores';
|
package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/KeyCounter/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type TWidthHeightDivProps = {
|
|
3
|
+
$width?: CSSProperties['width'];
|
|
4
|
+
$height?: CSSProperties['height'];
|
|
5
|
+
};
|
|
6
|
+
export declare const WidthHeightDiv: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TWidthHeightDivProps>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidthHeightDiv } from './WidthHeightDiv';
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidthHeightDiv } from './WidthHeightDiv';
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/helpers.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TDateFormatOptions } from '../../../../../utils/converterDates';
|
|
2
|
+
export declare const createValueFormatter: ({ formatter, unit, }: {
|
|
3
|
+
formatter: 'bytes' | 'cores' | 'unit' | 'none';
|
|
4
|
+
unit?: string | undefined;
|
|
5
|
+
}) => ((value: unknown) => string) | undefined;
|
|
6
|
+
export declare const createDateFormatter: (options?: TDateFormatOptions) => ((value: unknown) => string) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePromMatrixToLineMulti } from './usePromMatrixToLineMulti';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TRechartsSeries } from '../../../utils/matrixAdapter/toLine';
|
|
2
|
+
export declare const usePromMatrixToLineMulti: ({ baseUrl, query, range, refetchInterval, enabled, }: {
|
|
3
|
+
baseUrl?: string | undefined;
|
|
4
|
+
query: string;
|
|
5
|
+
range?: string | undefined;
|
|
6
|
+
refetchInterval?: number | false | undefined;
|
|
7
|
+
enabled?: boolean | undefined;
|
|
8
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TRechartsSeries[], Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePromMatrixToLineSingle } from './usePromMatrixToLineSingle';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TChartPoint } from '../../../utils/matrixAdapter/toLine';
|
|
2
|
+
export declare const usePromMatrixToLineSingle: ({ baseUrl, query, range, refetchInterval, enabled, }: {
|
|
3
|
+
baseUrl?: string | undefined;
|
|
4
|
+
query: string;
|
|
5
|
+
range?: string | undefined;
|
|
6
|
+
refetchInterval?: number | false | undefined;
|
|
7
|
+
enabled?: boolean | undefined;
|
|
8
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TChartPoint[], Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePromScalar } from './usePromScalar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TPrometheusScalarResponse } from '../../types';
|
|
2
|
+
export declare const usePromScalar: ({ baseUrl, query, refetchInterval, enabled, }: {
|
|
3
|
+
baseUrl?: string | undefined;
|
|
4
|
+
query: string;
|
|
5
|
+
refetchInterval?: number | false | undefined;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
7
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TPrometheusScalarResponse, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePromVector } from './usePromVector';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TPrometheusVectorResponse } from '../../types';
|
|
2
|
+
export declare const usePromVector: ({ baseUrl, query, refetchInterval, enabled, }: {
|
|
3
|
+
baseUrl?: string | undefined;
|
|
4
|
+
query: string;
|
|
5
|
+
refetchInterval?: number | false | undefined;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
7
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TPrometheusVectorResponse, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PrometheusGraph } from './PrometheusGraph';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MatrixToAreaMulti, MatrixToAreaSingle, MatrixToAreaStacked, MatrixToLineMulti, MatrixToLineSingle, MatrixToReducedBar, MatrixToTableRows, } from './matrix';
|
|
2
|
+
export { VectorToBarGauge, VectorToBarHorizontal, VectorToBarVertical, VectorToGaugeRadial, VectorToPie, VectorToTableRows, } from './vector';
|
|
3
|
+
export { ScalarToGauge, ScalarToStat } from './scalar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToAreaMulti } from './MatrixToAreaMulti';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToAreaSingle } from './MatrixToAreaSingle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToAreaStacked } from './MatrixToAreaStacked';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToLineMulti } from './MatrixToLineMulti';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToLineSingle } from './MatrixToLineSingle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToReducedBar } from './MatrixToReducedBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MatrixToTableRows } from './MatrixToTableRows';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { MatrixToAreaMulti } from './MatrixToAreaMulti';
|
|
2
|
+
export { MatrixToAreaSingle } from './MatrixToAreaSingle';
|
|
3
|
+
export { MatrixToAreaStacked } from './MatrixToAreaStacked';
|
|
4
|
+
export { MatrixToLineMulti } from './MatrixToLineMulti';
|
|
5
|
+
export { MatrixToLineSingle } from './MatrixToLineSingle';
|
|
6
|
+
export { MatrixToReducedBar } from './MatrixToReducedBar';
|
|
7
|
+
export { MatrixToTableRows } from './MatrixToTableRows';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScalarToGauge } from './ScalarToGauge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScalarToStat } from './ScalarToStat';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToBarGauge } from './VectorToBarGauge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToBarHorizontal } from './VectorToBarHorizontal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToBarVertical } from './VectorToBarVertical';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToGaugeRadial } from './VectorToGaugeRadial';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToPie } from './VectorToPie';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VectorToTableRows } from './VectorToTableRows';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { VectorToBarGauge } from './VectorToBarGauge';
|
|
2
|
+
export { VectorToBarHorizontal } from './VectorToBarHorizontal';
|
|
3
|
+
export { VectorToBarVertical } from './VectorToBarVertical';
|
|
4
|
+
export { VectorToGaugeRadial } from './VectorToGaugeRadial';
|
|
5
|
+
export { VectorToPie } from './VectorToPie';
|
|
6
|
+
export { VectorToTableRows } from './VectorToTableRows';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type TBaseContainerSizeProps = {
|
|
3
|
+
width?: CSSProperties['width'];
|
|
4
|
+
height?: CSSProperties['height'];
|
|
5
|
+
};
|
|
6
|
+
type TBasePromQueryProps = {
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
query?: string;
|
|
9
|
+
refetchInterval?: number | false;
|
|
10
|
+
};
|
|
11
|
+
type TBaseRangeProps = {
|
|
12
|
+
range?: string;
|
|
13
|
+
};
|
|
14
|
+
type TBaseTitleProps = {
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
17
|
+
type TBaseMinMaxProps = {
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
};
|
|
21
|
+
type TBaseModeProps = {
|
|
22
|
+
mode?: 'last' | 'avg' | 'sum' | 'max' | 'min';
|
|
23
|
+
};
|
|
24
|
+
type TBaseTopNProps = {
|
|
25
|
+
topN?: number;
|
|
26
|
+
};
|
|
27
|
+
type TBaseFormatterProps = {
|
|
28
|
+
/** optional formatter for value */
|
|
29
|
+
formatValue?: (v: unknown) => string;
|
|
30
|
+
/** optional formatter for timestamp / date values */
|
|
31
|
+
formatTimestamp?: (v: unknown) => string;
|
|
32
|
+
};
|
|
33
|
+
export type TMatrixToLineSingleProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseFormatterProps;
|
|
34
|
+
export type TMatrixToLineMultiProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseFormatterProps;
|
|
35
|
+
export type TMatrixToAreaSingleProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseFormatterProps;
|
|
36
|
+
export type TMatrixToAreaMultiProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseFormatterProps;
|
|
37
|
+
export type TMatrixToAreaStackedProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseFormatterProps;
|
|
38
|
+
export type TMatrixToReducedBarProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseRangeProps & TBaseModeProps & TBaseFormatterProps;
|
|
39
|
+
export type TMatrixToTableRowsProps = TBasePromQueryProps & TBaseRangeProps & TBaseTitleProps & TBaseFormatterProps;
|
|
40
|
+
export type TVectorToBarVerticalProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseFormatterProps;
|
|
41
|
+
export type TVectorToBarHorizontalProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseFormatterProps;
|
|
42
|
+
export type TVectorToPieProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseFormatterProps;
|
|
43
|
+
export type TVectorToTableRowsProps = TBasePromQueryProps & TBaseTitleProps & TBaseFormatterProps;
|
|
44
|
+
export type TVectorToBarGaugeProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseTitleProps & TBaseTopNProps & TBaseFormatterProps;
|
|
45
|
+
export type TVectorToGaugeRadialProps = TBaseContainerSizeProps & TBasePromQueryProps & TBaseTitleProps & TBaseMinMaxProps & TBaseFormatterProps;
|
|
46
|
+
export type TScalarToStatProps = TBasePromQueryProps & TBaseTitleProps & TBaseFormatterProps;
|
|
47
|
+
export type TScalarToGaugeProps = TBasePromQueryProps & TBaseTitleProps & TBaseMinMaxProps & TBaseFormatterProps;
|
|
48
|
+
export {};
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { TPrometheusRangeResponse, TPrometheusVectorResponse, TPrometheusScalarResponse } from './responses';
|
|
2
|
+
export type { TMatrixToAreaMultiProps, TMatrixToAreaSingleProps, TMatrixToAreaStackedProps, TMatrixToLineMultiProps, TMatrixToLineSingleProps, TMatrixToReducedBarProps, TMatrixToTableRowsProps, TVectorToBarGaugeProps, TVectorToBarHorizontalProps, TVectorToBarVerticalProps, TVectorToGaugeRadialProps, TVectorToPieProps, TVectorToTableRowsProps, TScalarToGaugeProps, TScalarToStatProps, } from './chartsProps';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type TPrometheusRangeResponse = {
|
|
2
|
+
status: 'success' | 'error';
|
|
3
|
+
data: {
|
|
4
|
+
resultType: 'matrix';
|
|
5
|
+
result: {
|
|
6
|
+
metric: Record<string, string>;
|
|
7
|
+
values: [number, string][];
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type TPrometheusVectorResponse = {
|
|
12
|
+
status: 'success' | 'error';
|
|
13
|
+
data: {
|
|
14
|
+
resultType: 'vector';
|
|
15
|
+
result: {
|
|
16
|
+
metric: Record<string, string>;
|
|
17
|
+
value: [number, string];
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type TPrometheusScalarResponse = {
|
|
22
|
+
status: 'success' | 'error';
|
|
23
|
+
data: {
|
|
24
|
+
resultType: 'scalar';
|
|
25
|
+
result: [number, string];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TPrometheusRangeParams = {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
step: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Converts a duration string like "30m", "2h", "7d" into start/end ISO timestamps
|
|
8
|
+
* and a safe step value to ensure < 11k data points for Prometheus query_range.
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildPrometheusRangeParams: (range?: string) => TPrometheusRangeParams;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatBytes: (raw: unknown) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatTimestamp: (raw: unknown) => string;
|
package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { buildPrometheusRangeParams } from './buildPrometheusRangeParams';
|
|
2
|
+
export type { TPrometheusRangeParams } from './buildPrometheusRangeParams';
|
|
3
|
+
export { formatBytes, formatTimestamp } from './formatters';
|
|
4
|
+
export { matrixToLineSingle, matrixToLineMulti, matrixToStackedAreaData, matrixToReducedVector, matrixToTableMinMaxCurrent, } from './matrixAdapter';
|
|
5
|
+
export type { TChartPoint, TRechartsSeries, TStackedAreaPoint, TReducedVectorItem, TAggregationMode, TSeriesStatsRow, } from './matrixAdapter';
|
|
6
|
+
export { vectorToBarVertical, vectorToBarHorizontal, vectorToBarGauge, vectorToGaugeRadial, vectorToPie, vectorToTableRows, } from './vectorAdapter';
|
|
7
|
+
export type { TBarItem, TBarGaugeItem, TRadialGaugeValue, TPieSlice, TTableRow } from './vectorAdapter';
|
|
8
|
+
export { scalarToStat, scalarToGauge } from './scalarAdapter';
|
|
9
|
+
export type { TStatItem, TGaugeItem } from './scalarAdapter';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { matrixToLineSingle, matrixToLineMulti } from './toLine';
|
|
2
|
+
export type { TChartPoint, TRechartsSeries } from './toLine';
|
|
3
|
+
export { matrixToStackedAreaData } from './toAreaStacked';
|
|
4
|
+
export type { TStackedAreaPoint } from './toAreaStacked';
|
|
5
|
+
export { matrixToReducedVector } from './toReducedVector';
|
|
6
|
+
export type { TReducedVectorItem, TAggregationMode } from './toReducedVector';
|
|
7
|
+
export { matrixToTableMinMaxCurrent } from './toTableRows';
|
|
8
|
+
export type { TSeriesStatsRow } from './toTableRows';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TRechartsSeries } from '../toLine';
|
|
2
|
+
export type TStackedAreaPoint = {
|
|
3
|
+
timestamp: number;
|
|
4
|
+
[seriesId: string]: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Builds stacked-area-compatible data from TRechartsSeries[].
|
|
8
|
+
* Shape:
|
|
9
|
+
* [
|
|
10
|
+
* { timestamp: 1000, c1: 1, p2: 3 },
|
|
11
|
+
* { timestamp: 2000, c1: 2 },
|
|
12
|
+
* ]
|
|
13
|
+
*/
|
|
14
|
+
export declare const matrixToStackedAreaData: (series: TRechartsSeries[] | undefined) => TStackedAreaPoint[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TPrometheusRangeResponse } from '../../../types';
|
|
2
|
+
export type TChartPoint = {
|
|
3
|
+
timestamp: number;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const matrixToLineSingle: (resp: TPrometheusRangeResponse) => TChartPoint[];
|
|
7
|
+
export type TRechartsSeries = {
|
|
8
|
+
id: string;
|
|
9
|
+
metric: Record<string, string>;
|
|
10
|
+
data?: TChartPoint[];
|
|
11
|
+
};
|
|
12
|
+
export declare const matrixToLineMulti: (resp: TPrometheusRangeResponse) => TRechartsSeries[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TRechartsSeries } from '../toLine';
|
|
2
|
+
export type TReducedVectorItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
metric: Record<string, string>;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
export type TAggregationMode = 'last' | 'avg' | 'sum' | 'max' | 'min';
|
|
8
|
+
export declare const matrixToReducedVector: (series: TRechartsSeries[] | undefined, mode?: TAggregationMode) => TReducedVectorItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TPrometheusRangeResponse } from '../../../types';
|
|
2
|
+
export type TSeriesStatsRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
metric: Record<string, string>;
|
|
5
|
+
min: number | null;
|
|
6
|
+
max: number | null;
|
|
7
|
+
current: number | null;
|
|
8
|
+
minTs?: number | null;
|
|
9
|
+
maxTs?: number | null;
|
|
10
|
+
currentTs?: number | null;
|
|
11
|
+
};
|
|
12
|
+
export declare const matrixToTableMinMaxCurrent: (resp: TPrometheusRangeResponse) => TSeriesStatsRow[];
|