@opengeoweb/space-weather 19.1.0 → 19.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/README.md +43 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +8472 -0
  4. package/dist/src/index.d.ts +10 -0
  5. package/dist/src/lib/components/Bulletin/Bulletin.d.ts +10 -0
  6. package/dist/src/lib/components/Bulletin/BulletinControls.d.ts +6 -0
  7. package/dist/src/lib/components/Bulletin/BulletinHistoryDialog.d.ts +8 -0
  8. package/dist/src/lib/components/Bulletin/BulletinHistoryList.d.ts +8 -0
  9. package/dist/src/lib/components/Bulletin/BulletinTabs.d.ts +11 -0
  10. package/dist/src/lib/components/Bulletin/BulletinViewer.d.ts +9 -0
  11. package/dist/src/lib/components/Bulletin/index.d.ts +4 -0
  12. package/dist/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +15 -0
  13. package/dist/src/lib/components/ComponentsLookUp/index.d.ts +1 -0
  14. package/dist/src/lib/components/ContentDialog/ContentDialog.d.ts +12 -0
  15. package/dist/src/lib/components/ContentDialog/index.d.ts +1 -0
  16. package/dist/src/lib/components/Layout/Layout.d.ts +18 -0
  17. package/dist/src/lib/components/Layout/index.d.ts +1 -0
  18. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/CategoryLabelStatusTag.d.ts +7 -0
  19. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/DataSourceStatusTag.d.ts +7 -0
  20. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/EditFormFields.styles.d.ts +15 -0
  21. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/EventLevel.d.ts +3 -0
  22. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/GScaleStatusTag.d.ts +8 -0
  23. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.d.ts +3 -0
  24. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.d.ts +10 -0
  25. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.d.ts +3 -0
  26. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/Threshold.d.ts +7 -0
  27. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.d.ts +8 -0
  28. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/index.d.ts +9 -0
  29. package/dist/src/lib/components/LifeCycleDialog/EditFormFields/validations.d.ts +5 -0
  30. package/dist/src/lib/components/LifeCycleDialog/FormWrapper.d.ts +9 -0
  31. package/dist/src/lib/components/LifeCycleDialog/LifeCycleActions.d.ts +7 -0
  32. package/dist/src/lib/components/LifeCycleDialog/LifeCycleColumn.d.ts +10 -0
  33. package/dist/src/lib/components/LifeCycleDialog/LifeCycleDialog.d.ts +13 -0
  34. package/dist/src/lib/components/LifeCycleDialog/LifeCycleDisplay.d.ts +11 -0
  35. package/dist/src/lib/components/LifeCycleDialog/LifeCycleEdit.d.ts +19 -0
  36. package/dist/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.d.ts +8 -0
  37. package/dist/src/lib/components/LifeCycleDialog/index.d.ts +5 -0
  38. package/dist/src/lib/components/LifeCycleDialog/utils.d.ts +10 -0
  39. package/dist/src/lib/components/NotificationTrigger/NotificationTrigger.d.ts +3 -0
  40. package/dist/src/lib/components/NotificationTrigger/NotificationTriggerContext.d.ts +14 -0
  41. package/dist/src/lib/components/NotificationTrigger/index.d.ts +2 -0
  42. package/dist/src/lib/components/Notifications/NotificationList.d.ts +13 -0
  43. package/dist/src/lib/components/Notifications/NotificationRow.d.ts +8 -0
  44. package/dist/src/lib/components/Notifications/NotificationTabs.d.ts +9 -0
  45. package/dist/src/lib/components/Notifications/Notifications.d.ts +10 -0
  46. package/dist/src/lib/components/Notifications/index.d.ts +3 -0
  47. package/dist/src/lib/components/Notifications/utils.d.ts +2 -0
  48. package/dist/src/lib/components/Providers/Providers.d.ts +4 -0
  49. package/dist/src/lib/components/Providers/index.d.ts +1 -0
  50. package/dist/src/lib/components/TimeSeries/GraphErrors.d.ts +12 -0
  51. package/dist/src/lib/components/TimeSeries/Graphs.d.ts +12 -0
  52. package/dist/src/lib/components/TimeSeries/TimeSeries.d.ts +3 -0
  53. package/dist/src/lib/components/TimeSeries/TimeSeries.utils.d.ts +4 -0
  54. package/dist/src/lib/components/TimeSeries/TimeSeriesHeader.d.ts +3 -0
  55. package/dist/src/lib/components/TimeSeries/createChartSeriesData.d.ts +4 -0
  56. package/dist/src/lib/components/TimeSeries/index.d.ts +1 -0
  57. package/dist/src/lib/components/TimeSeries/styles.d.ts +14 -0
  58. package/dist/src/lib/components/TimeSeries/types.d.ts +34 -0
  59. package/dist/src/lib/components/TimeSeries/utils.d.ts +22 -0
  60. package/dist/src/lib/types.d.ts +207 -0
  61. package/dist/src/lib/utils/DummyData.d.ts +367 -0
  62. package/dist/src/lib/utils/defaultTimeRange.d.ts +4 -0
  63. package/dist/src/lib/utils/fakedata.d.ts +21 -0
  64. package/dist/src/lib/utils/i18n.d.ts +7 -0
  65. package/dist/src/lib/utils/spaceweather-api/api.d.ts +16 -0
  66. package/dist/src/lib/utils/spaceweather-api/fakeApi.d.ts +8 -0
  67. package/dist/src/lib/utils/spaceweather-api/hooks.d.ts +38 -0
  68. package/dist/src/lib/utils/storybookUtils.d.ts +2 -0
  69. package/package.json +4 -3
@@ -0,0 +1,10 @@
1
+ import swTranslations from '../locales/spaceweather.json';
2
+ export { Bulletin } from './lib/components/Bulletin';
3
+ export { Layout } from './lib/components/Layout';
4
+ export { Notifications } from './lib/components/Notifications';
5
+ export { NotificationTrigger, NotificationTriggerProvider, useNotificationTriggerContext, } from './lib/components/NotificationTrigger';
6
+ export { TimeSeries } from './lib/components/TimeSeries';
7
+ export { SPACE_WEATHER_NAMESPACE } from './lib/utils/i18n';
8
+ export { swTranslations };
9
+ export { requestHandlers as spaceweatherEndPoints } from './lib/utils/spaceweather-api/fakeApi';
10
+ export * from './lib/components/ComponentsLookUp';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ /**
3
+ * Bulletin
4
+ * View the latest bulletin from Met Office, and access the history list
5
+ *
6
+ * @example
7
+ * ``` <Bulletin /> ```
8
+ */
9
+ declare const BulletinComponent: React.FC;
10
+ export default BulletinComponent;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface BulletinControlsProps {
3
+ onOpenBulletinHistory?: () => void;
4
+ }
5
+ export declare const BulletinControls: React.FC<BulletinControlsProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface BulletinHistoryDialogProps {
3
+ open: boolean;
4
+ toggleStatus: () => void;
5
+ disableAutoFocus?: boolean;
6
+ }
7
+ declare const BulletinHistoryDialog: React.FC<BulletinHistoryDialogProps>;
8
+ export default BulletinHistoryDialog;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { Bulletin } from '../../types';
3
+ export interface BulletinHistoryListProps {
4
+ selectedBulletin: string;
5
+ bulletinHistoryList: Bulletin[];
6
+ onSelectBulletin: (bulletin: string) => void;
7
+ }
8
+ export declare const BulletinHistoryList: React.FC<BulletinHistoryListProps>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare enum BulletinType {
3
+ technical = "TECHNICAL",
4
+ plain = "PLAIN"
5
+ }
6
+ interface BulletinTabsProps {
7
+ selected: BulletinType;
8
+ onSetBulletinType: (bulletinType: BulletinType) => void;
9
+ }
10
+ export declare const BulletinTabs: React.FC<BulletinTabsProps>;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { Bulletin } from '../../types';
3
+ import { BulletinType } from '../../types';
4
+ export interface BulletinViewerProps {
5
+ bulletinType: BulletinType;
6
+ smallContent?: boolean;
7
+ bulletin: Bulletin;
8
+ }
9
+ export declare const BulletinViewer: React.FC<BulletinViewerProps>;
@@ -0,0 +1,4 @@
1
+ export { default as Bulletin } from './Bulletin';
2
+ export { BulletinControls } from './BulletinControls';
3
+ export { BulletinViewer } from './BulletinViewer';
4
+ export { BulletinTabs } from './BulletinTabs';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { ApiModule, ApiUrls } from '@opengeoweb/api';
3
+ type SpaceweatherComponentType = 'SpaceweatherModule';
4
+ export interface ComponentsLookUpPayload {
5
+ componentType: SpaceweatherComponentType;
6
+ id: string;
7
+ title?: string;
8
+ initialProps: Record<string, never>;
9
+ }
10
+ export interface ApiModuleProps extends ApiModule {
11
+ config: ApiUrls;
12
+ }
13
+ export declare const SpaceweatherWrapper: React.FC;
14
+ export declare const componentsLookUp: (payload: ComponentsLookUpPayload) => React.ReactElement;
15
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ComponentsLookUp';
@@ -0,0 +1,12 @@
1
+ import type { DialogProps } from '@mui/material';
2
+ import React from 'react';
3
+ interface ContentDialogProps extends DialogProps {
4
+ open: boolean;
5
+ toggleStatus: () => void;
6
+ title: string;
7
+ children?: React.ReactNode;
8
+ alertBanner?: React.ReactNode;
9
+ onClose?: () => void;
10
+ }
11
+ declare const ContentDialog: React.FC<ContentDialogProps>;
12
+ export default ContentDialog;
@@ -0,0 +1 @@
1
+ export { default as ContentDialog } from './ContentDialog';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ interface LayoutProps {
3
+ leftTop: React.ReactNode;
4
+ leftBottom: React.ReactNode;
5
+ right: React.ReactNode;
6
+ }
7
+ /**
8
+ * Layout
9
+ * Creates a grid with one component at the top, two on the left and one on the right.
10
+ * IMPORTANT: WHEN USING THIS COMPONENT PLEASE WRAP INSIDE OF <NotificationTriggerProvider/>
11
+ * @param {ReactNode} leftTop leftTop: ReactNode - React component to show on the left top
12
+ * @param {ReactNode} leftBottom leftBottom: ReactNode - React component to show on the left bottom
13
+ * @param {ReactNode} right right: ReactNode - React component to show on the right
14
+ * @example
15
+ * ``` <Layout leftTop={<Bulletin />} leftBottom={<Notifications />} right={<TimeSeries />} /> ```
16
+ */
17
+ declare const Layout: React.FC<LayoutProps>;
18
+ export default Layout;
@@ -0,0 +1 @@
1
+ export { default as Layout } from './Layout';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CategoryLabelProps {
3
+ statusTagText: string;
4
+ setStatusTagText: React.Dispatch<React.SetStateAction<string>>;
5
+ }
6
+ declare const CategoryLabelStatusTag: React.FC<CategoryLabelProps>;
7
+ export default CategoryLabelStatusTag;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface DataSourceStatustagProps {
3
+ statusTagText: string;
4
+ eventTypeDisabled: boolean;
5
+ }
6
+ declare const DataSourceStatustag: React.FC<DataSourceStatustagProps>;
7
+ export default DataSourceStatustag;
@@ -0,0 +1,15 @@
1
+ export declare const styles: {
2
+ inputField: {
3
+ width: number;
4
+ marginTop: string;
5
+ marginBottom: string;
6
+ };
7
+ inputFieldLongLabel: {
8
+ width: number;
9
+ marginTop: string;
10
+ marginBottom: string;
11
+ };
12
+ hide: {
13
+ opacity: number;
14
+ };
15
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const EventLevel: React.FC;
3
+ export default EventLevel;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface GScaleStatusTagProps {
3
+ statusTagText: string;
4
+ actionMode: string;
5
+ eventTypeDisabled: boolean;
6
+ }
7
+ declare const GScaleStatusTag: React.FC<GScaleStatusTagProps>;
8
+ export default GScaleStatusTag;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PeakFlux: React.FC;
3
+ export default PeakFlux;
@@ -0,0 +1,10 @@
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
+ export declare const isInFuture: (t: TFunction, ownDate: string, isAllowed: boolean) => boolean | string;
4
+ export declare const isAfterStart: (t: TFunction, ownDate: string, otherDate: string) => boolean | string;
5
+ export declare const isEndDateRequired: (t: TFunction, ownValue: string, label: string, actionMode?: string) => boolean | string;
6
+ interface StartTimeEndTimeProps {
7
+ actionMode: string;
8
+ }
9
+ declare const StartTimeEndTime: React.FC<StartTimeEndTimeProps>;
10
+ export default StartTimeEndTime;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SuddenImpulse: React.FC;
3
+ export default SuddenImpulse;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ThresholdProps {
3
+ hasEventLevel: boolean;
4
+ hasThresholdUnit: boolean;
5
+ }
6
+ declare const Threshold: React.FC<ThresholdProps>;
7
+ export default Threshold;
@@ -0,0 +1,8 @@
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
+ export declare const isValidPeakClass: (t: TFunction, value: string) => boolean | string;
4
+ interface XrayClassPeakClassProps {
5
+ actionMode: string;
6
+ }
7
+ declare const XrayClassPeakClass: React.FC<XrayClassPeakClassProps>;
8
+ export default XrayClassPeakClass;
@@ -0,0 +1,9 @@
1
+ export { default as CategoryLabelStatusTag } from './CategoryLabelStatusTag';
2
+ export { default as PeakFlux } from './PeakFlux';
3
+ export { default as StartTimeEndTime } from './StartTimeEndTime';
4
+ export { default as XrayClassPeakClass } from './XrayClassPeakClass';
5
+ export { default as Threshold } from './Threshold';
6
+ export { default as EventLevel } from './EventLevel';
7
+ export { default as SuddenImpulse } from './SuddenImpulse';
8
+ export { default as DataSourceStatusTag } from './DataSourceStatusTag';
9
+ export { default as GScaleStatusTag } from './GScaleStatusTag';
@@ -0,0 +1,5 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { FieldValues } from 'react-hook-form';
3
+ export declare const isCategoryDetailRequired: (t: TFunction, value: string, category: string) => boolean | string;
4
+ export declare const isRecentPast: (t: TFunction, ownDate: string) => boolean | string;
5
+ export declare const isInPastOrFutureAllowed: (t: TFunction, ownDate: string, isFutureAllowed?: boolean | FieldValues) => boolean | string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ interface FormWrapperProps {
4
+ baseNotificationData?: SWEvent;
5
+ baseNotificationType: string;
6
+ children: React.ReactNode;
7
+ }
8
+ declare const FormWrapper: React.FC<FormWrapperProps>;
9
+ export default FormWrapper;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface LifeCycleActionsProps {
3
+ actions: string[];
4
+ onAction: (actionType: string) => void;
5
+ }
6
+ declare const LifeCycleActions: React.FC<LifeCycleActionsProps>;
7
+ export default LifeCycleActions;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { SWEventLifeCycle } from '../../types';
3
+ export interface LifeCycleColumnProps {
4
+ lifeCycle: SWEventLifeCycle;
5
+ categoryDetail: string;
6
+ type: string;
7
+ }
8
+ export declare const formatDateWithUTC: (value: string) => string | null | undefined;
9
+ declare const LifeCycleColumn: React.FC<LifeCycleColumnProps>;
10
+ export default LifeCycleColumn;
@@ -0,0 +1,13 @@
1
+ import type { TFunction } from 'i18next';
2
+ import React from 'react';
3
+ import type { SWEvent } from '../../types';
4
+ export declare const getDialogTitle: (t: TFunction, dialogMode: string, event: SWEvent) => string;
5
+ export interface LifeCycleDialogProps {
6
+ open: boolean;
7
+ toggleStatus: () => void;
8
+ dialogMode?: string;
9
+ event?: SWEvent;
10
+ disableAutoFocus?: boolean;
11
+ }
12
+ declare const LifeCycleDialog: React.FC<LifeCycleDialogProps>;
13
+ export default LifeCycleDialog;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare const getActionModeForDraft: (actionMode: string, label: string, changestateto: string) => string;
3
+ interface LifeCycleDisplayProps {
4
+ eventId: string;
5
+ toggleDialogOpen: () => void;
6
+ onFormChange?: (hasChanged: boolean) => void;
7
+ setErrorStoreMessage?: (value: string) => void;
8
+ setErrorRetrievePopulate?: (value: string) => void;
9
+ }
10
+ declare const LifeCycleDisplay: React.FC<LifeCycleDisplayProps>;
11
+ export default LifeCycleDisplay;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ interface LifeCycleEditProps {
4
+ toggleDialogOpen: (formSaved?: boolean) => void;
5
+ statusTagContent?: string;
6
+ eventTypeDisabled?: boolean;
7
+ onFormChange?: (hasChanged: boolean) => void;
8
+ actionMode?: string;
9
+ baseNotificationType: string;
10
+ setErrorStoreMessage?: (value: string) => void;
11
+ setErrorRetrievePopulate?: (value: string) => void;
12
+ }
13
+ export declare const LifeCycleEditForm: React.FC<LifeCycleEditProps>;
14
+ export interface WrapperProps extends LifeCycleEditProps {
15
+ baseNotificationData?: SWEvent;
16
+ baseNotificationType: string;
17
+ }
18
+ declare const LifeCycleEdit: React.FC<WrapperProps>;
19
+ export default LifeCycleEdit;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface LifeCycleEditOptionsProps {
3
+ statusTagContent: string;
4
+ eventTypeDisabled?: boolean;
5
+ actionMode?: string;
6
+ }
7
+ declare const LifeCycleEditOptions: React.FC<LifeCycleEditOptionsProps>;
8
+ export default LifeCycleEditOptions;
@@ -0,0 +1,5 @@
1
+ export { default as LifeCycleDialog } from './LifeCycleDialog';
2
+ export { default as LifeCycleEdit } from './LifeCycleEdit';
3
+ export { default as LifeCycleEditOptions } from './LifeCycleEditOptions';
4
+ export { default as LifeCycleColumn } from './LifeCycleColumn';
5
+ export { default as LifeCycleDisplay } from './LifeCycleDisplay';
@@ -0,0 +1,10 @@
1
+ import type { SWNotification, SWEvent } from '../../types';
2
+ export declare const formatDate: (date: string) => string | undefined;
3
+ export declare const getLatestNotification: (event: SWEvent) => SWNotification;
4
+ export declare const constructBaseNotification: (event: SWEvent | null, mode?: string) => SWNotification;
5
+ export declare const constructOutgoingNotification: (_notification: SWNotification, newState: string, draft?: boolean) => SWNotification;
6
+ export interface ConstructRepopulateNotificationType extends SWNotification {
7
+ IS_POPULATE_REQUEST: boolean;
8
+ }
9
+ export declare const constructRepopulateNotification: (_notification: ConstructRepopulateNotificationType, actionMode?: string) => SWNotification;
10
+ export declare const getNewInternalStatusTagContent: (actionMode: string, label: string, categorydetail?: string) => string;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const NotificationTrigger: React.FC;
3
+ export default NotificationTrigger;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ declare const NotificationTriggerContext: React.Context<NotificationContextState>;
4
+ interface NotificationContextState {
5
+ notificationTriggers: SWEvent[];
6
+ error: Error | null;
7
+ onFetchNewNotificationTriggerData: () => void;
8
+ }
9
+ interface NotificationContextProps {
10
+ children: React.ReactNode;
11
+ }
12
+ export declare const NotificationTriggerProvider: React.FC<NotificationContextProps>;
13
+ export declare const useNotificationTriggerContext: () => Partial<NotificationContextState>;
14
+ export default NotificationTriggerContext;
@@ -0,0 +1,2 @@
1
+ export { default as NotificationTrigger } from './NotificationTrigger';
2
+ export { NotificationTriggerProvider, useNotificationTriggerContext, } from './NotificationTriggerContext';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ interface NotificationListProps {
4
+ tabValue: string;
5
+ newNotifications: SWEvent[];
6
+ eventList: SWEvent[] | null;
7
+ isLoading: boolean;
8
+ error: Error | null;
9
+ onChangeTabValue: (value: string) => void;
10
+ handleNotificatioNRowClick: (event: SWEvent) => void;
11
+ }
12
+ declare const NotificationList: React.FC<NotificationListProps>;
13
+ export default NotificationList;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ interface NotificationRowProps {
4
+ event: SWEvent;
5
+ onNotificationRowClick: (event: SWEvent) => void;
6
+ }
7
+ declare const NotificationRow: React.FC<NotificationRowProps>;
8
+ export default NotificationRow;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { SWEvent } from '../../types';
3
+ interface NotificationTabsProps {
4
+ activeTab: string;
5
+ newNotifications: SWEvent[];
6
+ onChange: (value: string) => void;
7
+ }
8
+ declare const NotificationTabs: React.FC<NotificationTabsProps>;
9
+ export default NotificationTabs;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ /**
3
+ * Notifications
4
+ * View incoming notifications and issue new notifications following the notification lifecycle
5
+ *
6
+ * @example
7
+ * ``` <Notifications /> ```
8
+ */
9
+ declare const Notifications: React.FC;
10
+ export default Notifications;
@@ -0,0 +1,3 @@
1
+ export { default as Notifications } from './Notifications';
2
+ export { default as NotificationList } from './NotificationList';
3
+ export { default as NotificationRow } from './NotificationRow';
@@ -0,0 +1,2 @@
1
+ export declare const getStatusTagContent: (label: string, categoryDetail?: string, action?: string) => string;
2
+ export declare const getStatusTagColorFromContent: (type: string) => string;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ThemeProviderProps } from '@opengeoweb/theme';
3
+ export declare const SpaceWeatherThemeWrapper: React.FC<ThemeProviderProps>;
4
+ export declare const SpaceWeatherStoreWrapper: React.FC<ThemeProviderProps>;
@@ -0,0 +1 @@
1
+ export * from './Providers';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { Parameters } from '../../types';
3
+ interface GraphErrorsProps {
4
+ data: {
5
+ parameters: (Parameters | undefined)[];
6
+ error: string;
7
+ }[];
8
+ graphHeight: number;
9
+ chartHeight: number;
10
+ }
11
+ export declare const GraphErrors: React.FC<GraphErrorsProps>;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { GraphItem } from './types';
3
+ interface GraphsProps {
4
+ data: GraphItem[];
5
+ beginTime: Date;
6
+ endTime: Date;
7
+ graphHeight: number;
8
+ chartHeight: number;
9
+ onUserAction: () => void;
10
+ }
11
+ export declare const Graphs: React.FC<GraphsProps>;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TimeSeries: React.FC;
3
+ export default TimeSeries;
@@ -0,0 +1,4 @@
1
+ import type { StreamResponse } from '../../types';
2
+ export declare const createStreamDict: (streams: StreamResponse[]) => Record<string, StreamResponse>;
3
+ export declare const useUserSleeping: (delay?: number) => [boolean, () => void];
4
+ export declare const getGraphHeightInPx: () => number;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const TimeSeriesHeader: React.FC<Record<string, unknown>>;
3
+ export default TimeSeriesHeader;
@@ -0,0 +1,4 @@
1
+ import type { ChartResponseType, IncomingData, Dataset } from './types';
2
+ export declare const createDataset: (data: IncomingData["data"]) => Dataset;
3
+ export declare const createSeries: (response: ChartResponseType[]) => Dataset[];
4
+ export declare const mirrorSeries: (dataset: Dataset) => Dataset;
@@ -0,0 +1 @@
1
+ export { default as TimeSeries } from './TimeSeries';
@@ -0,0 +1,14 @@
1
+ export declare const curveColors: {
2
+ kpIndex: string;
3
+ kpIndexForecast: string;
4
+ magneticFieldBt: string;
5
+ magneticFieldBz: string;
6
+ lineSolarXray: string;
7
+ lineSolarWindDensity: string;
8
+ lineSolarWindSpeed: string;
9
+ areaSolarWindSpeed: string;
10
+ lineSolarWindPressure: string;
11
+ areaSolarWindPressure: string;
12
+ markLines: string;
13
+ currentTime: string;
14
+ };
@@ -0,0 +1,34 @@
1
+ import type { TimeseriesParams } from '../../types';
2
+ export type Dataset = (string | number | undefined)[][];
3
+ export type IncomingData = ChartResponseType['data'];
4
+ type GraphType = 'BAR' | 'BAND' | 'LOG' | 'AREA';
5
+ export interface GraphItem {
6
+ id: string;
7
+ params: TimeseriesParams[];
8
+ graphType: GraphType;
9
+ title: string;
10
+ yMinValue: number;
11
+ yMaxValue: number;
12
+ threshold?: {
13
+ title: string;
14
+ value: number | string;
15
+ color?: string;
16
+ }[];
17
+ columns: string[] | string[][];
18
+ tickValues?: (value: number) => number | string;
19
+ end?: string;
20
+ series: Dataset[];
21
+ }
22
+ export interface ChartResponseType {
23
+ data: {
24
+ data: {
25
+ source?: string;
26
+ timestamp?: string;
27
+ value?: number;
28
+ }[];
29
+ parameter?: string;
30
+ stream?: string;
31
+ unit?: string;
32
+ };
33
+ }
34
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { GridComponentOption, XAXisComponentOption, SeriesOption, YAXisComponentOption, DefaultLabelFormatterCallbackParams, TooltipComponentOption } from 'echarts';
2
+ import type { GraphItem } from './types';
3
+ export declare const dateFormat = "MM-dd HH:mm";
4
+ export declare const TITLE_KP_FORECAST = "Kp Index Forecast";
5
+ export declare const TITLE_XRAY = "X-ray Solar Flux (W/m\u00B2)";
6
+ export declare const TTTLE_SOLAR_WIND_DENSITY = "Solar Wind Density (1/cm\u00B3)";
7
+ export declare const TITLE_SOLAR_WIND_SPEED = "Solar Wind Speed (km/s)";
8
+ export declare const TITLE_SOLAR_WIND_PRESSURE = "Solar Wind Pressure (nPa)";
9
+ export declare const CHART_LEFT_MARGIN = 32;
10
+ export declare const CHART_RIGHT_MARGIN = 52;
11
+ export declare const CHART_TOP_MARGIN = 20;
12
+ export declare const PLOT_TOP_MARGIN = 24;
13
+ export declare const CHART_BOTTOM_MARGIN = 48;
14
+ export declare const DATA_ZOOM_LABEL_WIDTH = 76;
15
+ export declare const config: GraphItem[];
16
+ export declare const getGrid: (data: GraphItem[], graphHeight: number) => GridComponentOption[];
17
+ export declare const getCurrentTimeMarkers: (data: GraphItem[]) => SeriesOption[];
18
+ export declare const getXAxis: (data: GraphItem[], beginTime: Date, endTime: Date) => XAXisComponentOption[];
19
+ export declare const getYAxis: (data: GraphItem[]) => YAXisComponentOption[];
20
+ export declare const getSeries: (data: GraphItem[]) => SeriesOption[];
21
+ export declare const getTooltipValue: (date: string, param: DefaultLabelFormatterCallbackParams) => string;
22
+ export declare const getTooltip: () => TooltipComponentOption;