@opengeoweb/knmi-components 14.1.0 → 14.2.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/index.esm.js +385 -4164
- package/package.json +10 -2
- package/src/index.d.ts +5 -1
- package/src/lib/components/ComponentsLookup/ComponentsLookUp.d.ts +19 -0
- package/src/lib/components/ComponentsLookup/index.d.ts +1 -0
- package/src/lib/components/Trajks/TrajksForm.d.ts +18 -0
- package/src/lib/components/Trajks/TrajksForm.spec.d.ts +1 -0
- package/src/lib/components/Trajks/TrakjsForm.stories.d.ts +11 -0
- package/src/lib/components/Trajks/index.d.ts +1 -0
- package/src/lib/utils/Providers.d.ts +13 -0
- package/src/lib/utils/i18n.d.ts +6 -0
- package/src/lib/knmi-components.d.ts +0 -2
- package/src/lib/knmi-components.stories.d.ts +0 -9
- /package/src/lib/{knmi-components.spec.d.ts → components/ComponentsLookup/ComponentsLookUp.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/knmi-components",
|
|
3
|
-
"version": "14.1
|
|
3
|
+
"version": "14.2.1",
|
|
4
4
|
"description": "GeoWeb knmi-components library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
-
"dependencies": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@opengeoweb/form-fields": "14.2.1",
|
|
12
|
+
"react-hook-form": "^7.61.1",
|
|
13
|
+
"@mui/material": "^7.2.0",
|
|
14
|
+
"@opengeoweb/shared": "14.2.1",
|
|
15
|
+
"@opengeoweb/theme": "14.2.1",
|
|
16
|
+
"i18next": "^25.3.2",
|
|
17
|
+
"react-i18next": "^15.1.1"
|
|
18
|
+
},
|
|
11
19
|
"devDependencies": {
|
|
12
20
|
"eslint-plugin-storybook": "9.0.17"
|
|
13
21
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import knmiComponentTranslations from '../locales/knmicomponents.json';
|
|
2
|
+
export * from './lib/components/Trajks';
|
|
3
|
+
export * from './lib/components/ComponentsLookup';
|
|
4
|
+
export { KNMICOMPONENTS_NAMESPACE } from './lib/utils/i18n';
|
|
5
|
+
export { knmiComponentTranslations };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const TRAJKS_COMPONENT_TYPE: "TrajksModule";
|
|
2
|
+
export declare const trajksViewPreset: {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
scope: string;
|
|
6
|
+
abstract: string;
|
|
7
|
+
keywords: string;
|
|
8
|
+
initialProps: {};
|
|
9
|
+
componentType: "TrajksModule";
|
|
10
|
+
};
|
|
11
|
+
export type TrajksComponentType = typeof TRAJKS_COMPONENT_TYPE;
|
|
12
|
+
export interface ComponentsLookUpPayload {
|
|
13
|
+
componentType: TrajksComponentType;
|
|
14
|
+
id: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
initialProps: unknown;
|
|
17
|
+
}
|
|
18
|
+
export declare const componentsLookUp: (payload: ComponentsLookUpPayload) => React.ReactElement;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ComponentsLookUp';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface TrajksFormValues {
|
|
2
|
+
referenceName: string;
|
|
3
|
+
lat: number | string;
|
|
4
|
+
lon: number | string;
|
|
5
|
+
releaseHeight: number | string;
|
|
6
|
+
start: string;
|
|
7
|
+
direction: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
numVerticalLevels: number;
|
|
10
|
+
spatialUncertainty: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const generateDefaultValues: () => TrajksFormValues;
|
|
13
|
+
interface FormType {
|
|
14
|
+
onPublish: (data: TrajksFormValues) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Form: ({ onPublish }: FormType) => React.JSX.Element;
|
|
17
|
+
export declare const TrajksForm: React.FC<FormType>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { Form } from './TrajksForm';
|
|
3
|
+
type Story = StoryObj<typeof Form>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const TrajksLight: Story;
|
|
9
|
+
export declare const TrajksDark: Story;
|
|
10
|
+
export declare const TrajksLightLarge: Story;
|
|
11
|
+
export declare const TrajksDarkLarge: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TrajksForm';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
import type { UseFormProps } from 'react-hook-form';
|
|
3
|
+
export declare const KNMIComponentsThemeWrapper: React.FC<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
}>;
|
|
7
|
+
interface KNMIComponentsThemeFormProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
options?: UseFormProps;
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
}
|
|
12
|
+
export declare const KNMIComponentsThemeFormProvider: React.FC<KNMIComponentsThemeFormProviderProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
|
+
export declare const KNMICOMPONENTS_NAMESPACE = "KNMIComponents";
|
|
4
|
+
export declare const initKNMIComponentsI18n: () => void;
|
|
5
|
+
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
|
+
export declare const useKNMIComponentsTranslation: () => UseTranslationResponse<typeof KNMICOMPONENTS_NAMESPACE, typeof i18n>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { KnmiComponents } from './knmi-components';
|
|
3
|
-
type Story = StoryObj<typeof KnmiComponents>;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const ComponentLight: Story;
|
|
9
|
-
export declare const ComponentDark: Story;
|
|
File without changes
|