@opengeoweb/taf 2.3.0 → 2.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.
Files changed (82) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +1 -3
  3. package/index.esm.js +1470 -1287
  4. package/index.umd.js +1572 -1287
  5. package/lib/TafDemo.stories.d.ts +2 -2
  6. package/lib/components/IssuesPane/IssuesButton.d.ts +8 -2
  7. package/lib/components/IssuesPane/IssuesPane.d.ts +5 -0
  8. package/lib/components/IssuesPane/IssuesPane.stories.d.ts +12 -3
  9. package/lib/components/Spinner/Spinner.d.ts +2 -1
  10. package/lib/components/{TafLayout → StatusIcon}/StatusIcon.d.ts +0 -0
  11. package/lib/components/{TafLayout → StatusIcon}/StatusIcon.spec.d.ts +0 -0
  12. package/lib/components/{TafLayout/TabPanel → TabPanel}/TabPanel.d.ts +0 -0
  13. package/lib/components/{TafLayout/TabPanel → TabPanel}/TabPanel.spec.d.ts +0 -0
  14. package/lib/components/{TafLayout/TabPanel → TabPanel}/index.d.ts +0 -0
  15. package/lib/components/TafForm/TafForm.d.ts +1 -19
  16. package/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +5 -9
  17. package/lib/components/TafForm/TafFormRow/{change.d.ts → validations/change.d.ts} +0 -0
  18. package/lib/components/TafForm/TafFormRow/{change.spec.d.ts → validations/change.spec.d.ts} +0 -0
  19. package/lib/components/TafForm/TafFormRow/{clouds.d.ts → validations/clouds.d.ts} +1 -1
  20. package/lib/components/TafForm/TafFormRow/{clouds.spec.d.ts → validations/clouds.spec.d.ts} +0 -0
  21. package/lib/components/TafForm/TafFormRow/{probability.d.ts → validations/probability.d.ts} +0 -0
  22. package/lib/components/TafForm/TafFormRow/{probability.spec.d.ts → validations/probability.spec.d.ts} +0 -0
  23. package/lib/components/TafForm/TafFormRow/{utils.d.ts → validations/utils.d.ts} +0 -0
  24. package/lib/components/TafForm/TafFormRow/{utils.spec.d.ts → validations/utils.spec.d.ts} +0 -0
  25. package/lib/components/TafForm/TafFormRow/{validField.d.ts → validations/validField.d.ts} +1 -1
  26. package/lib/components/TafForm/TafFormRow/{validField.spec.d.ts → validations/validField.spec.d.ts} +0 -0
  27. package/lib/components/TafForm/TafFormRow/{visibility.d.ts → validations/visibility.d.ts} +1 -1
  28. package/lib/components/TafForm/TafFormRow/{visibility.spec.d.ts → validations/visibility.spec.d.ts} +0 -0
  29. package/lib/components/TafForm/TafFormRow/{weather.d.ts → validations/weather.d.ts} +1 -1
  30. package/lib/components/TafForm/TafFormRow/{weather.spec.d.ts → validations/weather.spec.d.ts} +0 -0
  31. package/lib/components/TafForm/TafFormRow/{wind.d.ts → validations/wind.d.ts} +1 -1
  32. package/lib/components/TafForm/TafFormRow/{wind.spec.d.ts → validations/wind.spec.d.ts} +0 -0
  33. package/lib/components/TafForm/TafFormWrapper.d.ts +3 -6
  34. package/lib/components/TafForm/index.d.ts +0 -1
  35. package/lib/components/TafForm/utils.d.ts +21 -0
  36. package/lib/components/{TafLayout → TafHeader}/TafHeader.d.ts +0 -0
  37. package/lib/components/{TafLayout → TafHeader}/TafHeader.spec.d.ts +0 -0
  38. package/lib/components/TafLayout/TacOverview/TacContainer.d.ts +3 -4
  39. package/lib/components/TafLayout/TacOverview/TacOverview.d.ts +2 -0
  40. package/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +2 -0
  41. package/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +11 -0
  42. package/lib/components/{ContentDialog/ContentDialog.spec.d.ts → TafLayout/TacOverview/TacOverviewMobile.spec.d.ts} +0 -0
  43. package/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +23 -0
  44. package/lib/components/TafLayout/TacOverview/index.d.ts +1 -0
  45. package/lib/components/TafLayout/TafLayout.d.ts +1 -0
  46. package/lib/components/{TafForm/TafFormDialog/TafFormDialog.spec.d.ts → TafLayout/TafLayout.spec.d.ts} +0 -0
  47. package/lib/components/TafLayout/TafPanel/TafPanel.d.ts +10 -0
  48. package/lib/components/{TafList/TafList.spec.d.ts → TafLayout/TafPanel/TafPanel.spec.d.ts} +0 -0
  49. package/lib/components/TafLayout/TafPanel/index.d.ts +1 -0
  50. package/lib/components/TafModule/TafModule.d.ts +3 -0
  51. package/lib/components/{TafList/TafListAccordion.spec.d.ts → TafModule/TafModule.spec.d.ts} +0 -0
  52. package/lib/components/TafModule/TafModule.stories.d.ts +9 -0
  53. package/lib/components/TafModule/index.d.ts +1 -0
  54. package/lib/types.d.ts +2 -1
  55. package/lib/utils/__mocks__/api.d.ts +1 -0
  56. package/lib/utils/fakeApi.d.ts +1 -1
  57. package/lib/utils/mockdata/fakeTafList.d.ts +1 -0
  58. package/lib/utils/testUtils.d.ts +1 -10
  59. package/package.json +7 -6
  60. package/lib/components/ContentDialog/ContentDialog.d.ts +0 -14
  61. package/lib/components/ContentDialog/ContentDialog.stories.d.ts +0 -7
  62. package/lib/components/ContentDialog/index.d.ts +0 -1
  63. package/lib/components/IssuesPane/IssuesPane.styles.d.ts +0 -1
  64. package/lib/components/TafForm/TafFormDialog/TafFormDialog.d.ts +0 -12
  65. package/lib/components/TafForm/TafFormDialog/TafFormDialog.stories.d.ts +0 -9
  66. package/lib/components/TafList/TafList.d.ts +0 -11
  67. package/lib/components/TafList/TafList.stories.d.ts +0 -8
  68. package/lib/components/TafList/TafListAccordion.d.ts +0 -11
  69. package/lib/components/TafList/TafListButtons.d.ts +0 -10
  70. package/lib/components/TafList/TafListButtons.spec.d.ts +0 -1
  71. package/lib/components/TafList/TafListRow.d.ts +0 -12
  72. package/lib/components/TafList/TafListRow.spec.d.ts +0 -1
  73. package/lib/components/TafList/TafListSection.d.ts +0 -12
  74. package/lib/components/TafList/TafListSection.spec.d.ts +0 -1
  75. package/lib/components/TafList/TafListSection.stories.d.ts +0 -18
  76. package/lib/components/TafList/index.d.ts +0 -3
  77. package/lib/components/TafList/utils.d.ts +0 -4
  78. package/lib/components/TafList/utils.spec.d.ts +0 -1
  79. package/lib/components/TafWrapper/TafWrapper.d.ts +0 -13
  80. package/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -1
  81. package/lib/components/TafWrapper/index.d.ts +0 -1
  82. package/lib/utils/utils.d.ts +0 -3
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TafListRefreshDemo: React.FC;
7
- export declare const ListUpcoming: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
11
- export declare const ListCurrent: {
12
- (): React.ReactElement;
13
- storyName: string;
14
- };
15
- export declare const ListExpired: {
16
- (): React.ReactElement;
17
- storyName: string;
18
- };
@@ -1,3 +0,0 @@
1
- export { default as TafList } from './TafList';
2
- export { default as TafListRow } from './TafListRow';
3
- export { default as TafListSection } from './TafListSection';
@@ -1,4 +0,0 @@
1
- import { Taf, TafCanbe, TafStatus } from '../../types';
2
- import { ListState } from './TafListRow';
3
- export declare const getTafFormMode: (canBeOptions: TafCanbe[], status: TafStatus) => string;
4
- export declare const getListType: (taf: Taf, locationSettings: unknown) => ListState;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { TafFromBackend } from '../../types';
3
- export declare const useTimeoutCancelError: (pollingInterval?: number) => [string[], (newErrorArray: string[]) => void];
4
- export declare const getSelectedTaf: (selectedTafId: string, tafList: TafFromBackend[]) => TafFromBackend;
5
- /**
6
- * Shows the list of Tafs and allows to create, edit and view Tafs.
7
- * Needs to be wrapped in the ApiProvider.
8
- *
9
- * @example
10
- * ```<ApiProvider baseURL="http://test.com" appURL="http://app.com" auth={auth} onSetAuth={onSetAuth} createApi={createApi}> authTokenUrl="url/tokenrefresh"<TafWrapper /> </ApiProvider>```
11
- */
12
- declare const ConfirmationWrapper: React.FC;
13
- export default ConfirmationWrapper;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as TafWrapper } from './TafWrapper';
@@ -1,3 +0,0 @@
1
- export declare const useTafSettings: (tafConfig: any) => {
2
- locations: any;
3
- };