@opengeoweb/warnings 9.3.0 → 9.3.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 +1679 -23000
- package/package.json +1 -1
- package/src/lib/components/PublicWarningsForm/DescriptionField/DescriptionField.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.stories.d.ts +2 -0
- package/src/lib/components/PublicWarningsForm/ValidFromField/ValidFromField.d.ts +1 -0
- package/src/lib/components/PublicWarningsForm/ValidUntilField/ValidUntilField.d.ts +1 -0
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialogConnect.d.ts +7 -0
- package/src/lib/store/publicWarningForm/reducer.d.ts +8 -6
- package/src/lib/store/publicWarningForm/selectors.d.ts +6 -1
- package/src/lib/utils/useFormDirty.d.ts +7 -0
- package/src/lib/utils/useFormDirty.spec.d.ts +1 -0
package/package.json
CHANGED
|
@@ -25,3 +25,5 @@ export declare const PublicWarningsErrorFormDemo: () => React.ReactElement;
|
|
|
25
25
|
export declare const PublicWarningsErrorFormDemoDark: () => React.ReactElement;
|
|
26
26
|
export declare const PublicWarningsReadOnlyFormDemo: () => React.ReactElement;
|
|
27
27
|
export declare const PublicWarningsReadOnlyFormDemoDark: () => React.ReactElement;
|
|
28
|
+
export declare const PublicWarningsDisabledFormDemo: () => React.ReactElement;
|
|
29
|
+
export declare const PublicWarningsDisabledFormDemoDark: () => React.ReactElement;
|
|
@@ -8,4 +8,5 @@ export declare const isMaxHoursAfterCurrentTime: (value: string) => boolean | st
|
|
|
8
8
|
export declare const isMinHoursAfterValidFrom: (value: string, validFromValue: string) => boolean | string;
|
|
9
9
|
export declare const ValidUntil: React.FC<{
|
|
10
10
|
isDisabled?: boolean;
|
|
11
|
+
isReadOnly?: boolean;
|
|
11
12
|
}>;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { uiTypes } from '@opengeoweb/store';
|
|
3
3
|
import { Position } from '@opengeoweb/shared';
|
|
4
|
+
export declare const warningFormConfirmationOptions: {
|
|
5
|
+
cancelLabel: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
confirmLabel: string;
|
|
9
|
+
catchOnCancel: boolean;
|
|
10
|
+
};
|
|
4
11
|
export declare const PublicWarningsFormDialogConnect: React.FC<{
|
|
5
12
|
bounds?: string;
|
|
6
13
|
source?: uiTypes.Source;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { DrawingListItem } from '../drawings/types';
|
|
3
|
-
import { PublicWarning
|
|
3
|
+
import { PublicWarning } from './types';
|
|
4
4
|
export type FormAction = '' | 'saving' | 'publishing' | 'readonly';
|
|
5
5
|
export interface PublicWarningFormState {
|
|
6
6
|
object?: DrawingListItem;
|
|
7
|
-
|
|
8
|
-
status?: PublicWarningStatus;
|
|
7
|
+
publicWarning?: PublicWarning;
|
|
9
8
|
formState?: FormAction;
|
|
10
9
|
error?: string;
|
|
11
10
|
selectedPublicWarningId?: string;
|
|
11
|
+
isFormDirty?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const initialState: PublicWarningFormState;
|
|
14
14
|
export declare const reducer: import("redux").Reducer<PublicWarningFormState, import("redux").AnyAction>;
|
|
15
15
|
export declare const publicWarningFormActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
16
16
|
setFormValues: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
17
17
|
object?: DrawingListItem;
|
|
18
|
-
|
|
18
|
+
publicWarning?: PublicWarning;
|
|
19
19
|
formState?: FormAction;
|
|
20
20
|
}>) => void;
|
|
21
21
|
openPublicWarningFormDialog: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
22
22
|
object?: DrawingListItem;
|
|
23
|
-
publicWarningDetail?: PublicWarningDetail;
|
|
24
23
|
formState?: FormAction;
|
|
25
|
-
|
|
24
|
+
publicWarning?: PublicWarning;
|
|
26
25
|
}>) => void;
|
|
27
26
|
publishWarning: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
28
27
|
publicWarning: PublicWarning;
|
|
@@ -41,4 +40,7 @@ export declare const publicWarningFormActions: import("@reduxjs/toolkit").CaseRe
|
|
|
41
40
|
setFormError: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
42
41
|
error: string;
|
|
43
42
|
}>) => void;
|
|
43
|
+
setFormDirty: (draft: Draft<PublicWarningFormState>, action: PayloadAction<{
|
|
44
|
+
isFormDirty: boolean;
|
|
45
|
+
}>) => void;
|
|
44
46
|
}, "publicWarningForm">;
|
|
@@ -6,7 +6,7 @@ export declare const getPublicWarningObject: ((state: WarningModuleStore) => imp
|
|
|
6
6
|
}> & {
|
|
7
7
|
clearCache: () => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").
|
|
9
|
+
export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").PublicWarning | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => import("./types").PublicWarning | undefined, {
|
|
10
10
|
clearCache: () => void;
|
|
11
11
|
}> & {
|
|
12
12
|
clearCache: () => void;
|
|
@@ -31,3 +31,8 @@ export declare const getSelectedPublicWarningId: ((state: WarningModuleStore) =>
|
|
|
31
31
|
}> & {
|
|
32
32
|
clearCache: () => void;
|
|
33
33
|
};
|
|
34
|
+
export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningFormState) => boolean, {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
}> & {
|
|
37
|
+
clearCache: () => void;
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|