@mtes-mct/monitor-ui 2.3.2 → 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.
- package/CHANGELOG.md +7 -0
- package/README.md +30 -6
- package/index.js +1430 -1689
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/Label.d.ts +2 -0
- package/src/elements/Legend.d.ts +2 -1
- package/src/fields/DatePicker/CalendarPicker.d.ts +2 -2
- package/src/fields/DatePicker/index.d.ts +3 -1
- package/src/fields/DateRangePicker/DateInput.d.ts +6 -2
- package/src/fields/DateRangePicker/NumberInput.d.ts +2 -0
- package/src/fields/DateRangePicker/RangeCalendarPicker.d.ts +2 -1
- package/src/fields/DateRangePicker/TimeInput.d.ts +4 -0
- package/src/fields/DateRangePicker/index.d.ts +3 -1
- package/src/fields/DateRangePicker/types.d.ts +1 -1
- package/src/hooks/useForceUpdate.d.ts +3 -3
- package/src/icons/Target.d.ts +2 -0
- package/src/icons/Vms.d.ts +2 -0
- package/src/icons/index.d.ts +3 -1
- package/src/index.d.ts +2 -2
- package/src/utils/capitalizeFirstLetter.d.ts +0 -4
package/package.json
CHANGED
package/src/elements/Label.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from 'react';
|
|
2
2
|
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
|
+
isDisabled?: boolean;
|
|
3
4
|
isHidden?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
7
|
+
isDisabled?: boolean | undefined;
|
|
6
8
|
isHidden?: boolean | undefined;
|
|
7
9
|
}, never>;
|
package/src/elements/Legend.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export type LegendProps = HTMLAttributes<HTMLLegendElement> & {
|
|
3
|
+
isDisabled?: boolean;
|
|
3
4
|
isHidden?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare function Legend({ isHidden, ...nativeProps }: LegendProps): JSX.Element;
|
|
6
|
+
export declare function Legend({ isDisabled, isHidden, ...nativeProps }: LegendProps): JSX.Element;
|
|
@@ -3,9 +3,9 @@ import type { Promisable } from 'type-fest';
|
|
|
3
3
|
type CalendarPickerProps = {
|
|
4
4
|
defaultValue?: Date;
|
|
5
5
|
isHistorical?: boolean;
|
|
6
|
+
isOpen: boolean;
|
|
6
7
|
onChange: (nextDateTuple: DateTuple) => Promisable<void>;
|
|
7
8
|
};
|
|
8
|
-
export declare function CalendarPicker({ defaultValue, isHistorical, onChange }: CalendarPickerProps): JSX.Element;
|
|
9
|
-
export declare const RsuiteCalendarPickerModalGlobalStyle: any;
|
|
9
|
+
export declare function CalendarPicker({ defaultValue, isHistorical, isOpen, onChange }: CalendarPickerProps): JSX.Element;
|
|
10
10
|
export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
11
|
export {};
|
|
@@ -2,6 +2,8 @@ import type { HTMLAttributes } from 'react';
|
|
|
2
2
|
import type { Promisable } from 'type-fest';
|
|
3
3
|
export type DatePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> & {
|
|
4
4
|
defaultValue?: Date;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
isCompact?: boolean;
|
|
5
7
|
/** Only allow past dates until today. */
|
|
6
8
|
isHistorical?: boolean;
|
|
7
9
|
isLabelHidden?: boolean;
|
|
@@ -22,4 +24,4 @@ export type DatePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'default
|
|
|
22
24
|
onChange?: (nextUtcDate: Date) => Promisable<void>;
|
|
23
25
|
withTime?: boolean;
|
|
24
26
|
};
|
|
25
|
-
export declare function DatePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DatePickerProps): JSX.Element;
|
|
27
|
+
export declare function DatePicker({ defaultValue, disabled, isCompact, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DatePickerProps): JSX.Element;
|
|
@@ -4,21 +4,25 @@ import type { DateTuple, DateOrTimeInputRef } from './types';
|
|
|
4
4
|
import type { Promisable } from 'type-fest';
|
|
5
5
|
export type DateInputProps = Pick<NumberInputProps, 'onBack' | 'onPrevious' | 'onNext'> & {
|
|
6
6
|
defaultValue?: DateTuple;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isCompact: boolean;
|
|
7
9
|
isEndDate?: boolean;
|
|
8
10
|
isForcedFocused: boolean;
|
|
9
11
|
isLight: boolean;
|
|
10
12
|
isStartDate?: boolean;
|
|
11
13
|
/** Called each time the date input is changed to a new valid value. */
|
|
12
|
-
onChange: (nextDateTuple: DateTuple) => Promisable<void>;
|
|
14
|
+
onChange: (nextDateTuple: DateTuple, isFilled: boolean) => Promisable<void>;
|
|
13
15
|
onClick: () => Promisable<void>;
|
|
14
16
|
};
|
|
15
17
|
export declare const DateInput: import("react").ForwardRefExoticComponent<Pick<NumberInputProps, "onBack" | "onNext" | "onPrevious"> & {
|
|
16
18
|
defaultValue?: DateTuple | undefined;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
isCompact: boolean;
|
|
17
21
|
isEndDate?: boolean | undefined;
|
|
18
22
|
isForcedFocused: boolean;
|
|
19
23
|
isLight: boolean;
|
|
20
24
|
isStartDate?: boolean | undefined;
|
|
21
25
|
/** Called each time the date input is changed to a new valid value. */
|
|
22
|
-
onChange: (nextDateTuple: DateTuple) => Promisable<void>;
|
|
26
|
+
onChange: (nextDateTuple: DateTuple, isFilled: boolean) => Promisable<void>;
|
|
23
27
|
onClick: () => Promisable<void>;
|
|
24
28
|
} & import("react").RefAttributes<DateOrTimeInputRef>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
2
|
import type { Promisable } from 'type-fest';
|
|
3
3
|
export type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'maxLength' | 'onInput' | 'pattern' | 'type'> & {
|
|
4
|
+
isLight: boolean;
|
|
4
5
|
max: number;
|
|
5
6
|
min: number;
|
|
6
7
|
/** Called when the use press backspace key while the input is empty. */
|
|
@@ -16,6 +17,7 @@ export type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'maxL
|
|
|
16
17
|
size: number;
|
|
17
18
|
};
|
|
18
19
|
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "pattern" | "onInput" | "type" | "maxLength"> & {
|
|
20
|
+
isLight: boolean;
|
|
19
21
|
max: number;
|
|
20
22
|
min: number;
|
|
21
23
|
/** Called when the use press backspace key while the input is empty. */
|
|
@@ -4,7 +4,8 @@ import type { Promisable } from 'type-fest';
|
|
|
4
4
|
type RangeCalendarPickerProps = {
|
|
5
5
|
defaultValue?: DateRange;
|
|
6
6
|
isHistorical?: boolean;
|
|
7
|
+
isOpen: boolean;
|
|
7
8
|
onChange: (nextDateTupleRange: DateTupleRange) => Promisable<void>;
|
|
8
9
|
};
|
|
9
|
-
export declare function RangeCalendarPicker({ defaultValue, isHistorical, onChange }: RangeCalendarPickerProps): JSX.Element;
|
|
10
|
+
export declare function RangeCalendarPicker({ defaultValue, isHistorical, isOpen, onChange }: RangeCalendarPickerProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -4,6 +4,8 @@ import type { DateOrTimeInputRef, TimeTuple } from './types';
|
|
|
4
4
|
import type { Promisable } from 'type-fest';
|
|
5
5
|
export type TimeInputProps = Pick<NumberInputProps, 'onBack' | 'onPrevious' | 'onNext'> & {
|
|
6
6
|
defaultValue?: TimeTuple;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isCompact: boolean;
|
|
7
9
|
isEndDate?: boolean;
|
|
8
10
|
isLight: boolean;
|
|
9
11
|
isStartDate?: boolean;
|
|
@@ -16,6 +18,8 @@ export type TimeInputProps = Pick<NumberInputProps, 'onBack' | 'onPrevious' | 'o
|
|
|
16
18
|
};
|
|
17
19
|
export declare const TimeInput: import("react").ForwardRefExoticComponent<Pick<NumberInputProps, "onBack" | "onNext" | "onPrevious"> & {
|
|
18
20
|
defaultValue?: TimeTuple | undefined;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
isCompact: boolean;
|
|
19
23
|
isEndDate?: boolean | undefined;
|
|
20
24
|
isLight: boolean;
|
|
21
25
|
isStartDate?: boolean | undefined;
|
|
@@ -3,6 +3,8 @@ import type { HTMLAttributes } from 'react';
|
|
|
3
3
|
import type { Promisable } from 'type-fest';
|
|
4
4
|
export type DateRangePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> & {
|
|
5
5
|
defaultValue?: DateRange;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isCompact?: boolean;
|
|
6
8
|
/** Only allow past dates until today. */
|
|
7
9
|
isHistorical?: boolean;
|
|
8
10
|
isLabelHidden?: boolean;
|
|
@@ -23,4 +25,4 @@ export type DateRangePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'de
|
|
|
23
25
|
onChange?: (nextUtcDateRange: DateRange) => Promisable<void>;
|
|
24
26
|
withTime?: boolean;
|
|
25
27
|
};
|
|
26
|
-
export declare function DateRangePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DateRangePickerProps): JSX.Element;
|
|
28
|
+
export declare function DateRangePicker({ defaultValue, disabled, isCompact, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DateRangePickerProps): JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DispatchWithoutAction } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Force component re-rendering
|
|
4
4
|
*
|
|
5
5
|
* @see https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
6
6
|
*/
|
|
7
7
|
export declare function useForceUpdate(): {
|
|
8
|
-
forceDebouncedUpdate:
|
|
9
|
-
forceUpdate:
|
|
8
|
+
forceDebouncedUpdate: DispatchWithoutAction;
|
|
9
|
+
forceUpdate: DispatchWithoutAction;
|
|
10
10
|
};
|
package/src/icons/index.d.ts
CHANGED
|
@@ -59,7 +59,9 @@ import { ShowXml } from './ShowXml';
|
|
|
59
59
|
import { SortingArrows } from './SortingArrows';
|
|
60
60
|
import { Summary } from './Summary';
|
|
61
61
|
import { Tag } from './Tag';
|
|
62
|
+
import { Target } from './Target';
|
|
62
63
|
import { Unlock } from './Unlock';
|
|
63
64
|
import { Vessel } from './Vessel';
|
|
64
65
|
import { ViewOnMap } from './ViewOnMap';
|
|
65
|
-
|
|
66
|
+
import { Vms } from './Vms';
|
|
67
|
+
export { ActivityFeed, Alert, Anchor, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Drapeau, Duplicate, Edit, EditBis, Favorite, FilledArrow, Filter, FilterBis, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MapLayers, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, More, Note, Observation, Pin, Pinpoint, PinpointHide, Plane, Plus, Reject, Save, Search, SelectCircle, SelectPolygon, SelectRectangle, SelectZone, ShowErsMessages, ShowXml, SortingArrows, Summary, Tag, Target, Unlock, Vessel, ViewOnMap, Vms };
|
package/src/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export { Tag } from './elements/Tag';
|
|
|
13
13
|
export { TagGroup } from './elements/TagGroup';
|
|
14
14
|
export { AutoComplete } from './fields/AutoComplete';
|
|
15
15
|
export { Checkbox } from './fields/Checkbox';
|
|
16
|
-
export { DateRangePicker } from './fields/DateRangePicker';
|
|
17
16
|
export { DatePicker } from './fields/DatePicker';
|
|
17
|
+
export { DateRangePicker } from './fields/DateRangePicker';
|
|
18
18
|
export { MultiCheckbox } from './fields/MultiCheckbox';
|
|
19
19
|
export { MultiSelect } from './fields/MultiSelect';
|
|
20
20
|
export { MultiRadio } from './fields/MultiRadio';
|
|
@@ -49,8 +49,8 @@ export type { TagProps } from './elements/Tag';
|
|
|
49
49
|
export type { TagGroupProps } from './elements/TagGroup';
|
|
50
50
|
export type { AutoCompleteProps } from './fields/AutoComplete';
|
|
51
51
|
export type { CheckboxProps } from './fields/Checkbox';
|
|
52
|
-
export type { DateRangePickerProps } from './fields/DateRangePicker';
|
|
53
52
|
export type { DatePickerProps } from './fields/DatePicker';
|
|
53
|
+
export type { DateRangePickerProps } from './fields/DateRangePicker';
|
|
54
54
|
export type { MultiCheckboxProps } from './fields/MultiCheckbox';
|
|
55
55
|
export type { MultiSelectProps } from './fields/MultiSelect';
|
|
56
56
|
export type { MultiRadioProps } from './fields/MultiRadio';
|