@opengeoweb/taf 9.3.0 → 9.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -73,8 +73,5 @@ export declare const prepareTafValues: (_taf: Taf, tafAction: TafActions, addEmp
73
73
  export declare const clearTafFormData: (tafFormValues: TafFormData) => TafFormData;
74
74
  export declare const getIsFormDefaultDisabled: (status: TafStatus) => boolean;
75
75
  export declare const fromStatusToAction: (tafStatus: TafStatus) => TafActions;
76
- export declare const isFormDirty: (dirtyFields: Partial<Readonly<{
77
- [x: string]: unknown;
78
- }>>) => boolean;
79
76
  export declare const getFormRowPosition: (formRow: Element) => IssuesPanePosition;
80
77
  export {};
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { FieldValues, UseFieldArrayReturn } from 'react-hook-form';
2
3
  import { BaseTaf, TafActions } from '../../types';
3
4
  type ValidateFormPromise = () => Promise<void | BaseTaf>;
4
5
  interface TafModuleMethods {
@@ -10,6 +11,7 @@ interface TafModuleContextState {
10
11
  tafAction: TafActions;
11
12
  setTafAction: (action: TafActions) => void;
12
13
  onPreventCloseView: (shouldPreventClose: boolean) => void;
14
+ useFieldArrayMethods: UseFieldArrayReturn<FieldValues, string>;
13
15
  }
14
16
  declare const TafModuleContext: React.Context<TafModuleContextState>;
15
17
  export declare const useTafModuleContext: () => Partial<TafModuleContextState>;
@@ -0,0 +1,3 @@
1
+ export declare const DATE_FORMAT_YEAR = "yyyy-MM-dd'";
2
+ export declare const DATE_FORMAT_ISSUE_TIME = "ddHHmm'Z";
3
+ export declare const DATE_FORMAT_FULL = "yyyy-MM-dd'T'HH:mm:ss'";
@@ -1,6 +1,5 @@
1
1
  import { TafFromBackend } from '../../types';
2
2
  export declare const MOCK_USERNAME = "user.name";
3
- export declare const dateFormatUTC = "YYYY-MM-DDTHH:mmZ";
4
3
  export declare const fakeTafList: TafFromBackend[];
5
4
  export declare const fakeNewTaf: TafFromBackend;
6
5
  export declare const fakeNewFixedTaf: TafFromBackend;