@mtes-mct/monitor-ui 7.6.0 → 7.6.2

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 (171) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/cypress.config.d.ts +2 -0
  3. package/index.js +158 -157
  4. package/index.js.map +1 -1
  5. package/package.json +3 -3
  6. package/{fields → src/fields}/DateRangePicker/NumberInput.d.ts +4 -4
  7. /package/{GlobalStyle.d.ts → src/GlobalStyle.d.ts} +0 -0
  8. /package/{OnlyFontGlobalStyle.d.ts → src/OnlyFontGlobalStyle.d.ts} +0 -0
  9. /package/{ThemeProvider.d.ts → src/ThemeProvider.d.ts} +0 -0
  10. /package/{components → src/components}/Dialog/Action.d.ts +0 -0
  11. /package/{components → src/components}/Dialog/Body.d.ts +0 -0
  12. /package/{components → src/components}/Dialog/Title.d.ts +0 -0
  13. /package/{components → src/components}/Dialog/index.d.ts +0 -0
  14. /package/{components → src/components}/Dropdown/Item.d.ts +0 -0
  15. /package/{components → src/components}/Dropdown/index.d.ts +0 -0
  16. /package/{components → src/components}/NewWindow.d.ts +0 -0
  17. /package/{components → src/components}/Notifier/NotificationEvent.d.ts +0 -0
  18. /package/{components → src/components}/Notifier/index.d.ts +0 -0
  19. /package/{components → src/components}/SideMenu/Button.d.ts +0 -0
  20. /package/{components → src/components}/SideMenu/index.d.ts +0 -0
  21. /package/{components → src/components}/SingleTag.d.ts +0 -0
  22. /package/{constants.d.ts → src/constants.d.ts} +0 -0
  23. /package/{elements → src/elements}/Button.d.ts +0 -0
  24. /package/{elements → src/elements}/Field.d.ts +0 -0
  25. /package/{elements → src/elements}/FieldError.d.ts +0 -0
  26. /package/{elements → src/elements}/Fieldset.d.ts +0 -0
  27. /package/{elements → src/elements}/IconBox.d.ts +0 -0
  28. /package/{elements → src/elements}/IconButton.d.ts +0 -0
  29. /package/{elements → src/elements}/Label.d.ts +0 -0
  30. /package/{elements → src/elements}/Legend.d.ts +0 -0
  31. /package/{elements → src/elements}/Table/SimpleTable.d.ts +0 -0
  32. /package/{elements → src/elements}/Tag/Disk.d.ts +0 -0
  33. /package/{elements → src/elements}/Tag/index.d.ts +0 -0
  34. /package/{elements → src/elements}/TagGroup.d.ts +0 -0
  35. /package/{fields → src/fields}/Checkbox.d.ts +0 -0
  36. /package/{fields → src/fields}/CoordinatesInput/DDCoordinatesInput.d.ts +0 -0
  37. /package/{fields → src/fields}/CoordinatesInput/DMDCoordinatesInput.d.ts +0 -0
  38. /package/{fields → src/fields}/CoordinatesInput/DMSCoordinatesInput.d.ts +0 -0
  39. /package/{fields → src/fields}/CoordinatesInput/index.d.ts +0 -0
  40. /package/{fields → src/fields}/DatePicker/CalendarPicker.d.ts +0 -0
  41. /package/{fields → src/fields}/DatePicker/index.d.ts +0 -0
  42. /package/{fields → src/fields}/DateRangePicker/DateInput.d.ts +0 -0
  43. /package/{fields → src/fields}/DateRangePicker/RangeCalendarPicker.d.ts +0 -0
  44. /package/{fields → src/fields}/DateRangePicker/RangedTimePicker.d.ts +0 -0
  45. /package/{fields → src/fields}/DateRangePicker/TimeInput.d.ts +0 -0
  46. /package/{fields → src/fields}/DateRangePicker/constants.d.ts +0 -0
  47. /package/{fields → src/fields}/DateRangePicker/index.d.ts +0 -0
  48. /package/{fields → src/fields}/DateRangePicker/types.d.ts +0 -0
  49. /package/{fields → src/fields}/DateRangePicker/utils.d.ts +0 -0
  50. /package/{fields → src/fields}/MultiCheckbox.d.ts +0 -0
  51. /package/{fields → src/fields}/MultiRadio.d.ts +0 -0
  52. /package/{fields → src/fields}/MultiSelect.d.ts +0 -0
  53. /package/{fields → src/fields}/MultiZoneEditor/index.d.ts +0 -0
  54. /package/{fields → src/fields}/NumberInput.d.ts +0 -0
  55. /package/{fields → src/fields}/Search.d.ts +0 -0
  56. /package/{fields → src/fields}/Select.d.ts +0 -0
  57. /package/{fields → src/fields}/TextInput.d.ts +0 -0
  58. /package/{fields → src/fields}/Textarea.d.ts +0 -0
  59. /package/{formiks → src/formiks}/FormikCheckbox.d.ts +0 -0
  60. /package/{formiks → src/formiks}/FormikCoordinatesInput.d.ts +0 -0
  61. /package/{formiks → src/formiks}/FormikDatePicker.d.ts +0 -0
  62. /package/{formiks → src/formiks}/FormikDateRangePicker.d.ts +0 -0
  63. /package/{formiks → src/formiks}/FormikEffect.d.ts +0 -0
  64. /package/{formiks → src/formiks}/FormikMultiCheckbox.d.ts +0 -0
  65. /package/{formiks → src/formiks}/FormikMultiRadio.d.ts +0 -0
  66. /package/{formiks → src/formiks}/FormikMultiSelect.d.ts +0 -0
  67. /package/{formiks → src/formiks}/FormikNumberInput.d.ts +0 -0
  68. /package/{formiks → src/formiks}/FormikSearch.d.ts +0 -0
  69. /package/{formiks → src/formiks}/FormikSelect.d.ts +0 -0
  70. /package/{formiks → src/formiks}/FormikTextInput.d.ts +0 -0
  71. /package/{formiks → src/formiks}/FormikTextarea.d.ts +0 -0
  72. /package/{hooks → src/hooks}/useClickOutsideEffect.d.ts +0 -0
  73. /package/{hooks → src/hooks}/useFieldControl.d.ts +0 -0
  74. /package/{hooks → src/hooks}/useFieldUndefineEffect.d.ts +0 -0
  75. /package/{hooks → src/hooks}/useForceUpdate.d.ts +0 -0
  76. /package/{hooks → src/hooks}/useKey.d.ts +0 -0
  77. /package/{hooks → src/hooks}/useNewWindow/context.d.ts +0 -0
  78. /package/{hooks → src/hooks}/useNewWindow/index.d.ts +0 -0
  79. /package/{hooks → src/hooks}/useNewWindow/types.d.ts +0 -0
  80. /package/{hooks → src/hooks}/usePreventWheelEvent.d.ts +0 -0
  81. /package/{hooks → src/hooks}/usePrevious.d.ts +0 -0
  82. /package/{icons → src/icons}/ActivityFeed.d.ts +0 -0
  83. /package/{icons → src/icons}/Alert.d.ts +0 -0
  84. /package/{icons → src/icons}/Anchor.d.ts +0 -0
  85. /package/{icons → src/icons}/Archive.d.ts +0 -0
  86. /package/{icons → src/icons}/Attention.d.ts +0 -0
  87. /package/{icons → src/icons}/Calendar.d.ts +0 -0
  88. /package/{icons → src/icons}/Check.d.ts +0 -0
  89. /package/{icons → src/icons}/Chevron.d.ts +0 -0
  90. /package/{icons → src/icons}/Clock.d.ts +0 -0
  91. /package/{icons → src/icons}/Close.d.ts +0 -0
  92. /package/{icons → src/icons}/Confirm.d.ts +0 -0
  93. /package/{icons → src/icons}/Control.d.ts +0 -0
  94. /package/{icons → src/icons}/Delete.d.ts +0 -0
  95. /package/{icons → src/icons}/Display.d.ts +0 -0
  96. /package/{icons → src/icons}/DoubleChevron.d.ts +0 -0
  97. /package/{icons → src/icons}/Download.d.ts +0 -0
  98. /package/{icons → src/icons}/Drapeau.d.ts +0 -0
  99. /package/{icons → src/icons}/Duplicate.d.ts +0 -0
  100. /package/{icons → src/icons}/Edit.d.ts +0 -0
  101. /package/{icons → src/icons}/EditBis.d.ts +0 -0
  102. /package/{icons → src/icons}/Expand.d.ts +0 -0
  103. /package/{icons → src/icons}/Favorite.d.ts +0 -0
  104. /package/{icons → src/icons}/FilledArrow.d.ts +0 -0
  105. /package/{icons → src/icons}/Filter.d.ts +0 -0
  106. /package/{icons → src/icons}/FilterBis.d.ts +0 -0
  107. /package/{icons → src/icons}/Fishery.d.ts +0 -0
  108. /package/{icons → src/icons}/FishingEngine.d.ts +0 -0
  109. /package/{icons → src/icons}/FleetSegment.d.ts +0 -0
  110. /package/{icons → src/icons}/Focus.d.ts +0 -0
  111. /package/{icons → src/icons}/FocusVessel.d.ts +0 -0
  112. /package/{icons → src/icons}/FocusZones.d.ts +0 -0
  113. /package/{icons → src/icons}/Hide.d.ts +0 -0
  114. /package/{icons → src/icons}/Info.d.ts +0 -0
  115. /package/{icons → src/icons}/Infringement.d.ts +0 -0
  116. /package/{icons → src/icons}/Landmark.d.ts +0 -0
  117. /package/{icons → src/icons}/List.d.ts +0 -0
  118. /package/{icons → src/icons}/MapLayers.d.ts +0 -0
  119. /package/{icons → src/icons}/MeasureAngle.d.ts +0 -0
  120. /package/{icons → src/icons}/MeasureBrokenLine.d.ts +0 -0
  121. /package/{icons → src/icons}/MeasureCircle.d.ts +0 -0
  122. /package/{icons → src/icons}/MeasureLine.d.ts +0 -0
  123. /package/{icons → src/icons}/Minus.d.ts +0 -0
  124. /package/{icons → src/icons}/MissionAction.d.ts +0 -0
  125. /package/{icons → src/icons}/More.d.ts +0 -0
  126. /package/{icons → src/icons}/Note.d.ts +0 -0
  127. /package/{icons → src/icons}/Observation.d.ts +0 -0
  128. /package/{icons → src/icons}/Pin.d.ts +0 -0
  129. /package/{icons → src/icons}/PinFilled.d.ts +0 -0
  130. /package/{icons → src/icons}/Pinpoint.d.ts +0 -0
  131. /package/{icons → src/icons}/PinpointHide.d.ts +0 -0
  132. /package/{icons → src/icons}/Plane.d.ts +0 -0
  133. /package/{icons → src/icons}/Plus.d.ts +0 -0
  134. /package/{icons → src/icons}/Reject.d.ts +0 -0
  135. /package/{icons → src/icons}/Report.d.ts +0 -0
  136. /package/{icons → src/icons}/Save.d.ts +0 -0
  137. /package/{icons → src/icons}/Search.d.ts +0 -0
  138. /package/{icons → src/icons}/SelectCircle.d.ts +0 -0
  139. /package/{icons → src/icons}/SelectPolygon.d.ts +0 -0
  140. /package/{icons → src/icons}/SelectRectangle.d.ts +0 -0
  141. /package/{icons → src/icons}/SelectZone.d.ts +0 -0
  142. /package/{icons → src/icons}/Semaphore.d.ts +0 -0
  143. /package/{icons → src/icons}/ShowErsMessages.d.ts +0 -0
  144. /package/{icons → src/icons}/ShowXml.d.ts +0 -0
  145. /package/{icons → src/icons}/SortingArrows.d.ts +0 -0
  146. /package/{icons → src/icons}/Summary.d.ts +0 -0
  147. /package/{icons → src/icons}/Tag.d.ts +0 -0
  148. /package/{icons → src/icons}/Target.d.ts +0 -0
  149. /package/{icons → src/icons}/Unlock.d.ts +0 -0
  150. /package/{icons → src/icons}/Vessel.d.ts +0 -0
  151. /package/{icons → src/icons}/ViewOnMap.d.ts +0 -0
  152. /package/{icons → src/icons}/Vms.d.ts +0 -0
  153. /package/{icons → src/icons}/index.d.ts +0 -0
  154. /package/{index.d.ts → src/index.d.ts} +0 -0
  155. /package/{libs → src/libs}/CustomSearch.d.ts +0 -0
  156. /package/{theme.d.ts → src/theme.d.ts} +0 -0
  157. /package/{types.d.ts → src/types.d.ts} +0 -0
  158. /package/{utils → src/utils}/cleanString.d.ts +0 -0
  159. /package/{utils → src/utils}/coordinates.d.ts +0 -0
  160. /package/{utils → src/utils}/customDayjs.d.ts +0 -0
  161. /package/{utils → src/utils}/getLocalizedDayjs.d.ts +0 -0
  162. /package/{utils → src/utils}/getPseudoRandomString.d.ts +0 -0
  163. /package/{utils → src/utils}/getRsuiteDataFromOptions.d.ts +0 -0
  164. /package/{utils → src/utils}/getRsuiteValueFromOptionValue.d.ts +0 -0
  165. /package/{utils → src/utils}/getUtcizedDayjs.d.ts +0 -0
  166. /package/{utils → src/utils}/isDaylightSavingTimeDate.d.ts +0 -0
  167. /package/{utils → src/utils}/isNumeric.d.ts +0 -0
  168. /package/{utils → src/utils}/logSoftError.d.ts +0 -0
  169. /package/{utils → src/utils}/normalizeString.d.ts +0 -0
  170. /package/{utils → src/utils}/sortDates.d.ts +0 -0
  171. /package/{utils → src/utils}/stopMouseEventPropagation.d.ts +0 -0
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React UI components and styles for Monitorfish and Monitorenv.",
4
- "version": "7.6.0",
4
+ "version": "7.6.2",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
8
8
  },
9
9
  "dependencies": {
10
10
  "@babel/runtime": "7.21.0",
11
- "@tanstack/react-table": "^8.9.1",
11
+ "@tanstack/react-table": "^8.9.3",
12
12
  "@tanstack/react-virtual": "beta",
13
13
  "prop-types": "15.8.1",
14
14
  "tslib": "2.5.3"
@@ -42,5 +42,5 @@
42
42
  },
43
43
  "sideEffects": false,
44
44
  "type": "module",
45
- "types": "./index.d.ts"
45
+ "types": "./src/index.d.ts"
46
46
  }
@@ -2,8 +2,8 @@ import { type InputHTMLAttributes } from 'react';
2
2
  import type { Promisable } from 'type-fest';
3
3
  export type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'maxLength' | 'onInput' | 'pattern' | 'type'> & {
4
4
  isLight: boolean;
5
- max: number;
6
- min: number;
5
+ max?: number;
6
+ min?: number;
7
7
  /** Called when the use press backspace key while the input is empty. */
8
8
  onBack?: (() => Promisable<void>) | undefined;
9
9
  /** Called when the input value reaches the size property. */
@@ -18,8 +18,8 @@ export type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'defa
18
18
  };
19
19
  export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "pattern" | "type" | "defaultValue" | "onInput" | "maxLength"> & {
20
20
  isLight: boolean;
21
- max: number;
22
- min: number;
21
+ max?: number;
22
+ min?: number;
23
23
  /** Called when the use press backspace key while the input is empty. */
24
24
  onBack?: (() => Promisable<void>) | undefined;
25
25
  /** Called when the input value reaches the size property. */
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
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
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