@vertigis/react-ui 15.5.0 → 16.0.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/AdapterDateFns/index.d.ts +2 -2
- package/AdapterDateFns/index.js +2 -2
- package/DatePicker/DatePicker.d.ts +5 -0
- package/DatePicker/DatePicker.js +6 -0
- package/DatePicker/index.d.ts +2 -3
- package/DatePicker/index.js +2 -3
- package/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/DateRangePicker/DateRangePicker.js +6 -0
- package/DateRangePicker/index.d.ts +2 -3
- package/DateRangePicker/index.js +2 -3
- package/DateTimePicker/DateTimePicker.d.ts +5 -0
- package/DateTimePicker/DateTimePicker.js +10 -0
- package/DateTimePicker/index.d.ts +2 -3
- package/DateTimePicker/index.js +2 -3
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.js +10 -0
- package/DateTimeRangePicker/index.d.ts +2 -0
- package/DateTimeRangePicker/index.js +2 -0
- package/IconMenu/IconMenu.d.ts +6 -18
- package/Notification/Notification.d.ts +3 -9
- package/PickersTextField/index.d.ts +3 -0
- package/PickersTextField/index.js +3 -0
- package/RichTreeView/index.d.ts +2 -0
- package/RichTreeView/index.js +2 -0
- package/SimpleTreeView/index.d.ts +2 -0
- package/SimpleTreeView/index.js +2 -0
- package/TimeClock/index.d.ts +1 -0
- package/TimeClock/index.js +1 -0
- package/TimePicker/TimePicker.d.ts +5 -0
- package/TimePicker/TimePicker.js +10 -0
- package/TimePicker/index.d.ts +2 -3
- package/TimePicker/index.js +2 -3
- package/TreeItem2/index.d.ts +2 -0
- package/TreeItem2/index.js +2 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/package.json +15 -15
- package/styles/createTheme.js +13 -16
- package/ClockPicker/index.d.ts +0 -1
- package/ClockPicker/index.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "@mui/x-date-pickers/
|
|
2
|
-
import { AdapterDateFns } from "@mui/x-date-pickers/
|
|
1
|
+
export * from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
2
|
+
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
3
3
|
export default AdapterDateFns;
|
package/AdapterDateFns/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "@mui/x-date-pickers/
|
|
2
|
-
import { AdapterDateFns } from "@mui/x-date-pickers/
|
|
1
|
+
export * from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
2
|
+
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
3
3
|
export default AdapterDateFns;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DatePickerProps as MuiDatePickerProps, PickerValidDate } from "@mui/x-date-pickers-pro";
|
|
2
|
+
export interface DatePickerProps extends MuiDatePickerProps<PickerValidDate> {
|
|
3
|
+
}
|
|
4
|
+
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default DatePicker;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DatePicker as MuiDatePicker } from "@mui/x-date-pickers-pro";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import FormLabelTextField from "../FormLabelTextField/index.js";
|
|
5
|
+
const DatePicker = forwardRef(({ slots, ...props }, ref) => (_jsx(MuiDatePicker, { inputRef: ref, slots: { textField: FormLabelTextField, ...slots }, ...props })));
|
|
6
|
+
export default DatePicker;
|
package/DatePicker/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DatePicker;
|
|
1
|
+
export * from "./DatePicker.js";
|
|
2
|
+
export { default } from "./DatePicker.js";
|
package/DatePicker/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DatePicker;
|
|
1
|
+
export * from "./DatePicker.js";
|
|
2
|
+
export { default } from "./DatePicker.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DateRangePickerProps as MuiDateRangePickerProps, PickerValidDate } from "@mui/x-date-pickers-pro";
|
|
2
|
+
export interface DateRangePickerProps extends MuiDateRangePickerProps<PickerValidDate> {
|
|
3
|
+
dateSeparator?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const DateRangePicker: import("react").ForwardRefExoticComponent<DateRangePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export default DateRangePicker;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DateRangePicker as MuiDateRangePicker } from "@mui/x-date-pickers-pro";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import FormLabelTextField from "../FormLabelTextField/index.js";
|
|
5
|
+
const DateRangePicker = forwardRef(({ dateSeparator, slots, slotProps, ...props }, ref) => (_jsx(MuiDateRangePicker, { inputRef: ref, slotProps: { field: { dateSeparator }, ...slotProps }, slots: { textField: FormLabelTextField, ...slots }, ...props })));
|
|
6
|
+
export default DateRangePicker;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DateRangePicker;
|
|
1
|
+
export * from "./DateRangePicker.js";
|
|
2
|
+
export { default } from "./DateRangePicker.js";
|
package/DateRangePicker/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DateRangePicker;
|
|
1
|
+
export * from "./DateRangePicker.js";
|
|
2
|
+
export { default } from "./DateRangePicker.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DateTimePickerProps as MuiDateTimePickerProps, PickerValidDate } from "@mui/x-date-pickers-pro";
|
|
2
|
+
export interface DateTimePickerProps extends MuiDateTimePickerProps<PickerValidDate> {
|
|
3
|
+
}
|
|
4
|
+
declare const DateTimePicker: import("react").ForwardRefExoticComponent<DateTimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default DateTimePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DateTimePicker as MuiDateTimePicker, renderTimeViewClock } from "@mui/x-date-pickers-pro";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import FormLabelTextField from "../FormLabelTextField/index.js";
|
|
5
|
+
const DateTimePicker = forwardRef(({ slots, viewRenderers, ...props }, ref) => (_jsx(MuiDateTimePicker, { inputRef: ref, slots: { textField: FormLabelTextField, ...slots }, viewRenderers: {
|
|
6
|
+
hours: viewRenderers?.hours ?? renderTimeViewClock,
|
|
7
|
+
minutes: viewRenderers?.minutes ?? renderTimeViewClock,
|
|
8
|
+
seconds: viewRenderers?.seconds ?? renderTimeViewClock,
|
|
9
|
+
}, ...props })));
|
|
10
|
+
export default DateTimePicker;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DateTimePicker;
|
|
1
|
+
export * from "./DateTimePicker.js";
|
|
2
|
+
export { default } from "./DateTimePicker.js";
|
package/DateTimePicker/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default DateTimePicker;
|
|
1
|
+
export * from "./DateTimePicker.js";
|
|
2
|
+
export { default } from "./DateTimePicker.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DateTimeRangePickerProps as MuiDateTimeRangePickerProps, PickerValidDate } from "@mui/x-date-pickers-pro";
|
|
2
|
+
export interface DateTimeRangePickerProps extends MuiDateTimeRangePickerProps<PickerValidDate> {
|
|
3
|
+
dateSeparator?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const DateTimeRangePicker: import("react").ForwardRefExoticComponent<DateTimeRangePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export default DateTimeRangePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DateTimeRangePicker as MuiDateTimeRangePicker, renderTimeViewClock, } from "@mui/x-date-pickers-pro";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import FormLabelTextField from "../FormLabelTextField/index.js";
|
|
5
|
+
const DateTimeRangePicker = forwardRef(({ dateSeparator, slots, slotProps, viewRenderers, ...props }, ref) => (_jsx(MuiDateTimeRangePicker, { inputRef: ref, slotProps: { field: { dateSeparator }, ...slotProps }, slots: { textField: FormLabelTextField, ...slots }, viewRenderers: {
|
|
6
|
+
hours: viewRenderers?.hours ?? renderTimeViewClock,
|
|
7
|
+
minutes: viewRenderers?.minutes ?? renderTimeViewClock,
|
|
8
|
+
seconds: viewRenderers?.seconds ?? renderTimeViewClock,
|
|
9
|
+
}, ...props })));
|
|
10
|
+
export default DateTimeRangePicker;
|
package/IconMenu/IconMenu.d.ts
CHANGED
|
@@ -12,21 +12,13 @@ export interface IconMenuClasses {
|
|
|
12
12
|
}
|
|
13
13
|
export type IconMenuClassKey = keyof IconMenuClasses;
|
|
14
14
|
export interface IconMenuProps extends BoxProps {
|
|
15
|
-
/**
|
|
16
|
-
* Additional CSS classes to be applied to the component.
|
|
17
|
-
*/
|
|
15
|
+
/** Additional CSS classes to be applied to the component. */
|
|
18
16
|
classes?: Partial<IconMenuClasses>;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the icon button should be disabled.
|
|
21
|
-
*/
|
|
17
|
+
/** Whether the icon button should be disabled. */
|
|
22
18
|
disabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The icon to show.
|
|
25
|
-
*/
|
|
19
|
+
/** The icon to show. */
|
|
26
20
|
icon: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* A ref for the menu element
|
|
29
|
-
*/
|
|
21
|
+
/** A ref for the menu element */
|
|
30
22
|
menuRef?: React.MutableRefObject<HTMLDivElement>;
|
|
31
23
|
/**
|
|
32
24
|
* A 'virtual anchor' that can be provided to override the default behavior.
|
|
@@ -34,13 +26,9 @@ export interface IconMenuProps extends BoxProps {
|
|
|
34
26
|
* open.
|
|
35
27
|
*/
|
|
36
28
|
virtualAnchor?: DOMRect;
|
|
37
|
-
/**
|
|
38
|
-
* Attributes applied to the `IconButton` component.
|
|
39
|
-
*/
|
|
29
|
+
/** Attributes applied to the `IconButton` component. */
|
|
40
30
|
IconButtonProps?: Partial<IconButtonProps>;
|
|
41
|
-
/**
|
|
42
|
-
* Attributes applied to the `Menu` component.
|
|
43
|
-
*/
|
|
31
|
+
/** Attributes applied to the `Menu` component. */
|
|
44
32
|
MenuProps?: Partial<MenuProps>;
|
|
45
33
|
}
|
|
46
34
|
declare const IconMenu: import("react").ForwardRefExoticComponent<Omit<IconMenuProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { type AlertProps } from "@mui/material";
|
|
2
2
|
import type { FC } from "react";
|
|
3
3
|
import type { SnackbarProps } from "../Snackbar";
|
|
4
|
-
/**
|
|
5
|
-
* Properties for the Notification component.
|
|
6
|
-
*/
|
|
4
|
+
/** Properties for the Notification component. */
|
|
7
5
|
export interface NotificationProperties extends SnackbarProps {
|
|
8
|
-
/**
|
|
9
|
-
* The title for the close button.
|
|
10
|
-
*/
|
|
6
|
+
/** The title for the close button. */
|
|
11
7
|
closeButtonTitle: string;
|
|
12
|
-
/**
|
|
13
|
-
* Optional alert properties.
|
|
14
|
-
*/
|
|
8
|
+
/** Optional alert properties. */
|
|
15
9
|
alertProps?: AlertProps;
|
|
16
10
|
}
|
|
17
11
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mui/x-date-pickers/TimeClock";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mui/x-date-pickers/TimeClock";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TimePickerProps as MuiTimePickerProps, PickerValidDate } from "@mui/x-date-pickers-pro";
|
|
2
|
+
export interface TimePickerProps extends MuiTimePickerProps<PickerValidDate> {
|
|
3
|
+
}
|
|
4
|
+
declare const TimePicker: import("react").ForwardRefExoticComponent<TimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default TimePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TimePicker as MuiTimePicker, renderTimeViewClock } from "@mui/x-date-pickers-pro";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import FormLabelTextField from "../FormLabelTextField/index.js";
|
|
5
|
+
const TimePicker = forwardRef(({ slots, viewRenderers, ...props }, ref) => (_jsx(MuiTimePicker, { inputRef: ref, slots: { textField: FormLabelTextField, ...slots }, viewRenderers: {
|
|
6
|
+
hours: viewRenderers?.hours ?? renderTimeViewClock,
|
|
7
|
+
minutes: viewRenderers?.minutes ?? renderTimeViewClock,
|
|
8
|
+
seconds: viewRenderers?.seconds ?? renderTimeViewClock,
|
|
9
|
+
}, ...props })));
|
|
10
|
+
export default TimePicker;
|
package/TimePicker/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default TimePicker;
|
|
1
|
+
export * from "./TimePicker.js";
|
|
2
|
+
export { default } from "./TimePicker.js";
|
package/TimePicker/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
|
|
3
|
-
export default TimePicker;
|
|
1
|
+
export * from "./TimePicker.js";
|
|
2
|
+
export { default } from "./TimePicker.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mui/x-date-pickers-pro/models";
|
package/models/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mui/x-date-pickers-pro/models";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertigis/react-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Utilities and React components used in VertiGIS applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vertigis",
|
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
],
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@mui/icons-material": "5.
|
|
18
|
-
"@mui/material": "5.
|
|
19
|
-
"@mui/x-data-grid-pro": "
|
|
20
|
-
"@mui/x-date-pickers-pro": "
|
|
21
|
-
"@mui/x-license-pro": "
|
|
22
|
-
"@mui/x-tree-view": "
|
|
17
|
+
"@mui/icons-material": "5.15.15",
|
|
18
|
+
"@mui/material": "5.15.15",
|
|
19
|
+
"@mui/x-data-grid-pro": "7.2.0",
|
|
20
|
+
"@mui/x-date-pickers-pro": "7.2.0",
|
|
21
|
+
"@mui/x-license-pro": "6.10.2",
|
|
22
|
+
"@mui/x-tree-view": "7.2.0",
|
|
23
23
|
"autosuggest-highlight": "^3.3.4",
|
|
24
|
-
"clsx": "^
|
|
24
|
+
"clsx": "^2.1.0",
|
|
25
25
|
"color": "^4.2.3",
|
|
26
26
|
"lodash.escape": "^4.0.1",
|
|
27
|
-
"marked": "^
|
|
27
|
+
"marked": "^12.0.1",
|
|
28
28
|
"react-color": "^2.19.3",
|
|
29
|
-
"tslib": "^2.
|
|
30
|
-
"xss": "^1.0.
|
|
29
|
+
"tslib": "^2.6.2",
|
|
30
|
+
"xss": "^1.0.15"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@esri/arcgis-html-sanitizer": "^3.0.1",
|
|
34
|
-
"@types/autosuggest-highlight": "^3.2.
|
|
35
|
-
"@types/color": "^3.0.
|
|
36
|
-
"@types/lodash.escape": "^4.0.
|
|
37
|
-
"@types/react-color": "^3.0.
|
|
34
|
+
"@types/autosuggest-highlight": "^3.2.3",
|
|
35
|
+
"@types/color": "^3.0.6",
|
|
36
|
+
"@types/lodash.escape": "^4.0.9",
|
|
37
|
+
"@types/react-color": "^3.0.12",
|
|
38
38
|
"@vertigis/icons": "5.1.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/styles/createTheme.js
CHANGED
|
@@ -158,9 +158,7 @@ const defaultDenseOptions = {
|
|
|
158
158
|
},
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
|
-
/**
|
|
162
|
-
* Common style overrides for both Select and NativeSelect.
|
|
163
|
-
*/
|
|
161
|
+
/** Common style overrides for both Select and NativeSelect. */
|
|
164
162
|
const getSelectStyles = (theme) => ({
|
|
165
163
|
borderRadius: theme.shape.borderRadius,
|
|
166
164
|
"&:focus": {
|
|
@@ -174,9 +172,7 @@ const getFocusHighlightStyles = ({ palette }) => ({
|
|
|
174
172
|
0 0 0 3px ${palette.common.white} inset,
|
|
175
173
|
0 0 0 5px ${palette.grey[600]} inset`,
|
|
176
174
|
});
|
|
177
|
-
/**
|
|
178
|
-
* Common style overrides for both MenuItem and ListItemButton.
|
|
179
|
-
*/
|
|
175
|
+
/** Common style overrides for both MenuItem and ListItemButton. */
|
|
180
176
|
const getMenuItemStyles = ({ palette, transitions }) => ({
|
|
181
177
|
overflow: "hidden",
|
|
182
178
|
"&:hover": {
|
|
@@ -438,23 +434,26 @@ function getOverrides(theme) {
|
|
|
438
434
|
},
|
|
439
435
|
MuiDatePicker: {
|
|
440
436
|
defaultProps: {
|
|
441
|
-
|
|
442
|
-
|
|
437
|
+
slotProps: {
|
|
438
|
+
openPickerButton: { size: "small" },
|
|
439
|
+
popper: { dir: theme.direction },
|
|
440
|
+
},
|
|
443
441
|
},
|
|
444
442
|
},
|
|
445
443
|
MuiDateRangePicker: {
|
|
446
444
|
defaultProps: {
|
|
447
|
-
|
|
448
|
-
PopperProps: { dir: theme.direction },
|
|
445
|
+
slotProps: { popper: { dir: theme.direction } },
|
|
449
446
|
},
|
|
450
447
|
},
|
|
451
448
|
MuiDateTimePicker: {
|
|
452
449
|
defaultProps: {
|
|
453
|
-
|
|
454
|
-
|
|
450
|
+
slotProps: {
|
|
451
|
+
openPickerButton: { size: "small" },
|
|
452
|
+
popper: { dir: theme.direction },
|
|
453
|
+
},
|
|
455
454
|
},
|
|
456
455
|
},
|
|
457
|
-
|
|
456
|
+
MuiDayCalendar: {
|
|
458
457
|
styleOverrides: {
|
|
459
458
|
header: {
|
|
460
459
|
"& .MuiTypography-caption": {
|
|
@@ -1090,9 +1089,7 @@ export default createTheme;
|
|
|
1090
1089
|
export function overrideTheme(theme, overrides) {
|
|
1091
1090
|
return deepAssign({}, theme, overrides);
|
|
1092
1091
|
}
|
|
1093
|
-
/**
|
|
1094
|
-
* A recursive version of Object.assign().
|
|
1095
|
-
*/
|
|
1092
|
+
/** A recursive version of Object.assign(). */
|
|
1096
1093
|
function deepAssign(target, ...sources) {
|
|
1097
1094
|
if (target === null || target === undefined) {
|
|
1098
1095
|
throw new TypeError("Cannot convert undefined or null to object.");
|
package/ClockPicker/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@mui/x-date-pickers/ClockPicker";
|
package/ClockPicker/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@mui/x-date-pickers/ClockPicker";
|