@opengeoweb/taf 8.0.0 → 8.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 (130) hide show
  1. package/README.md +0 -0
  2. package/index.esm.d.ts +0 -0
  3. package/index.esm.js +4 -40
  4. package/package.json +9 -9
  5. package/src/index.d.ts +0 -0
  6. package/src/lib/TafDemo.stories.d.ts +0 -0
  7. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -0
  8. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -0
  9. package/src/lib/components/ComponentsLookUp/index.d.ts +0 -0
  10. package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -0
  11. package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -0
  12. package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -0
  13. package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -0
  14. package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -0
  15. package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -0
  16. package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -0
  17. package/src/lib/components/IssuesPane/index.d.ts +0 -0
  18. package/src/lib/components/IssuesPane/types.d.ts +0 -0
  19. package/src/lib/components/IssuesPane/utils.d.ts +0 -0
  20. package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -0
  21. package/src/lib/components/Providers/Providers.d.ts +0 -0
  22. package/src/lib/components/Providers/index.d.ts +0 -0
  23. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -0
  24. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -0
  25. package/src/lib/components/Spinner/Spinner.d.ts +0 -0
  26. package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -0
  27. package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -0
  28. package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -0
  29. package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -0
  30. package/src/lib/components/TabPanel/TabPanel.d.ts +0 -0
  31. package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -0
  32. package/src/lib/components/TabPanel/index.d.ts +0 -0
  33. package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -0
  34. package/src/lib/components/TafAvatar/index.d.ts +0 -0
  35. package/src/lib/components/TafForm/TafForm.d.ts +0 -0
  36. package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -0
  37. package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -0
  38. package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -0
  39. package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -0
  40. package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -0
  41. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -0
  42. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -0
  43. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -0
  44. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -0
  45. package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -0
  46. package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -0
  47. package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -0
  48. package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -0
  49. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -0
  50. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -0
  51. package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -0
  52. package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -0
  53. package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -0
  54. package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -0
  55. package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -0
  56. package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -0
  57. package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -0
  58. package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -0
  59. package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -0
  60. package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -0
  61. package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -0
  62. package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -0
  63. package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -0
  64. package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -0
  65. package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -0
  66. package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -0
  67. package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -0
  68. package/src/lib/components/TafForm/index.d.ts +0 -0
  69. package/src/lib/components/TafForm/utils.d.ts +0 -0
  70. package/src/lib/components/TafForm/utils.spec.d.ts +0 -0
  71. package/src/lib/components/TafHeader/TafHeader.d.ts +0 -0
  72. package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -0
  73. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.d.ts +0 -0
  74. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.spec.d.ts +0 -0
  75. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.stories.d.ts +0 -0
  76. package/src/lib/components/TafLayout/LastUpdateTime/index.d.ts +0 -0
  77. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -0
  78. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -0
  79. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -0
  80. package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -0
  81. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -0
  82. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -0
  83. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -0
  84. package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -0
  85. package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -0
  86. package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -0
  87. package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -0
  88. package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -0
  89. package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -0
  90. package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -0
  91. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -0
  92. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -0
  93. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -0
  94. package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -0
  95. package/src/lib/components/TafLayout/TafLayout.d.ts +0 -0
  96. package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -0
  97. package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -0
  98. package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -0
  99. package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -0
  100. package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -0
  101. package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -0
  102. package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -0
  103. package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -0
  104. package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -0
  105. package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -0
  106. package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -0
  107. package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -0
  108. package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -0
  109. package/src/lib/components/TafLayout/utils.d.ts +0 -0
  110. package/src/lib/components/TafLayout/utils.spec.d.ts +0 -0
  111. package/src/lib/components/TafModule/TafModule.d.ts +0 -0
  112. package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -0
  113. package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -0
  114. package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -0
  115. package/src/lib/components/TafModule/index.d.ts +0 -0
  116. package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -0
  117. package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -0
  118. package/src/lib/components/TafWrapper/index.d.ts +0 -0
  119. package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
  120. package/src/lib/types.d.ts +0 -0
  121. package/src/lib/utils/__mocks__/api.d.ts +0 -0
  122. package/src/lib/utils/api.d.ts +0 -0
  123. package/src/lib/utils/api.spec.d.ts +0 -0
  124. package/src/lib/utils/fakeApi.d.ts +0 -0
  125. package/src/lib/utils/fakeApi.spec.d.ts +0 -0
  126. package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -0
  127. package/src/lib/utils/weatherPhenomena.d.ts +0 -0
  128. package/src/lib/components/SwitchButton/SwitchButton.d.ts +0 -4
  129. package/src/lib/components/SwitchButton/SwitchButton.spec.d.ts +0 -1
  130. package/src/lib/components/SwitchButton/index.d.ts +0 -1
package/README.md CHANGED
File without changes
package/index.esm.d.ts CHANGED
File without changes
package/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useContext, forwardRef } from 'react';
3
- import { Grid, Button, Chip, Box, Typography, FormLabel, Switch, TextField, Card, Tabs, Tab, Dialog, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
3
+ import { Grid, Button, Chip, Box, Typography, TextField, Card, Tabs, Tab, Dialog, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
4
4
  import { useFormContext, Controller, useFieldArray } from 'react-hook-form';
5
5
  import ReactDOM from 'react-dom';
6
6
  import { ReactSortable } from 'react-sortablejs';
7
7
  import { useAuthenticationContext } from '@opengeoweb/authentication';
8
8
  import { HIDDEN_INPUT_HELPER_IS_DRAFT, getDeepProperty, useDraftFormHelpers, ReactHookFormHiddenInput, ReactHookFormProvider } from '@opengeoweb/form-fields';
9
- import { useIsMounted, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, ToolHeader, AlertBanner, getErrorMessage as getErrorMessage$1, getWarningMessage, ConfirmationServiceProvider, usePoller, ErrorBoundary } from '@opengeoweb/shared';
9
+ import { useIsMounted, CustomIconButton, CustomTooltip, ToolContainerDraggable, Avatar, getInitials, ToggleMenu, useConfirmationDialog, usePreventBrowserClose, SwitchButton, ToolHeader, AlertBanner, getErrorMessage as getErrorMessage$1, getWarningMessage, usePoller, ErrorBoundary } from '@opengeoweb/shared';
10
10
  import { snackbarActions } from '@opengeoweb/store';
11
11
  import { DragHandle as DragHandle$1, ThumbsUp, Add, Delete, Close, Clock, Cancel, Success, Edit, Export, ListItem, Cached } from '@opengeoweb/theme';
12
12
  import { useApiContext, createApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
@@ -30183,42 +30183,6 @@ var TafModuleProvider = function TafModuleProvider(_ref2) {
30183
30183
  }, children);
30184
30184
  };
30185
30185
 
30186
- /* *
30187
- * Licensed under the Apache License, Version 2.0 (the "License");
30188
- * you may not use this file except in compliance with the License.
30189
- * You may obtain a copy of the License at
30190
- *
30191
- * http://www.apache.org/licenses/LICENSE-2.0
30192
- *
30193
- * Unless required by applicable law or agreed to in writing, software
30194
- * distributed under the License is distributed on an "AS IS" BASIS,
30195
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30196
- * See the License for the specific language governing permissions and
30197
- * limitations under the License.
30198
- *
30199
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
30200
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
30201
- * */
30202
- var styles = {
30203
- label: {
30204
- color: 'geowebColors.buttons.tertiary.default.color',
30205
- opacity: 1,
30206
- fontSize: '12px',
30207
- fontWeight: 500
30208
- }
30209
- };
30210
- var SwitchButton = function SwitchButton(props) {
30211
- return /*#__PURE__*/React.createElement(CustomTooltip, {
30212
- title: "Switch mode"
30213
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormLabel, {
30214
- sx: styles.label
30215
- }, "Viewer"), /*#__PURE__*/React.createElement(Switch, Object.assign({
30216
- "data-testid": "switchMode"
30217
- }, props)), /*#__PURE__*/React.createElement(FormLabel, {
30218
- sx: styles.label
30219
- }, "Editor")));
30220
- };
30221
-
30222
30186
  var TafAvatar = function TafAvatar(_ref) {
30223
30187
  var editor = _ref.editor,
30224
30188
  _ref$tooltipPlacement = _ref.tooltipPlacement,
@@ -35129,13 +35093,13 @@ var TafLayout = function TafLayout(_ref2) {
35129
35093
  var TafWrapper = function TafWrapper(_a) {
35130
35094
  var children = _a.children,
35131
35095
  props = __rest(_a, ["children"]);
35132
- return /*#__PURE__*/React.createElement(TafModuleProvider, Object.assign({}, props), /*#__PURE__*/React.createElement(ConfirmationServiceProvider, null, /*#__PURE__*/React.createElement(ReactHookFormProvider, {
35096
+ return /*#__PURE__*/React.createElement(TafModuleProvider, Object.assign({}, props), /*#__PURE__*/React.createElement(ReactHookFormProvider, {
35133
35097
  options: {
35134
35098
  mode: 'onTouched',
35135
35099
  reValidateMode: 'onChange',
35136
35100
  criteriaMode: 'all'
35137
35101
  }
35138
- }, children)));
35102
+ }, children));
35139
35103
  };
35140
35104
 
35141
35105
  var getCurrentDate = function getCurrentDate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "8.0.0",
3
+ "version": "8.2.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,20 +14,20 @@
14
14
  "peerDependencies": {
15
15
  "@emotion/react": "11.11.1",
16
16
  "@mui/material": "5.12.0",
17
- "@opengeoweb/api": "8.0.0",
18
- "@opengeoweb/authentication": "8.0.0",
19
- "@opengeoweb/core": "8.0.0",
20
- "@opengeoweb/form-fields": "8.0.0",
21
- "@opengeoweb/shared": "8.0.0",
22
- "@opengeoweb/store": "8.0.0",
23
- "@opengeoweb/theme": "8.0.0",
17
+ "@opengeoweb/api": "8.2.0",
18
+ "@opengeoweb/authentication": "8.2.0",
19
+ "@opengeoweb/core": "8.2.0",
20
+ "@opengeoweb/form-fields": "8.2.0",
21
+ "@opengeoweb/shared": "8.2.0",
22
+ "@opengeoweb/store": "8.2.0",
23
+ "@opengeoweb/theme": "8.2.0",
24
24
  "@reduxjs/toolkit": "1.9.5",
25
25
  "axios": "1.5.0",
26
26
  "lodash": "4.17.21",
27
27
  "moment": "2.29.4",
28
28
  "react": "18.2.0",
29
29
  "react-dom": "18.2.0",
30
- "react-hook-form": "7.46.1",
30
+ "react-hook-form": "7.46.2",
31
31
  "react-redux": "8.1.2",
32
32
  "react-sortablejs": "6.1.4",
33
33
  "sortablejs": "1.15.0"
package/src/index.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +0,0 @@
1
- import { SwitchProps } from '@mui/material';
2
- import * as React from 'react';
3
- declare const SwitchButton: React.FC<SwitchProps>;
4
- export default SwitchButton;
@@ -1 +0,0 @@
1
- export { default as SwitchButton } from './SwitchButton';