@m4l/components 4.1.2 → 4.1.4
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/components/PropertyValue/classes/types.d.ts +0 -2
- package/components/PropertyValue/types.d.ts +0 -2
- package/components/ToastContainer/helpers/toaster.d.ts +2 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +22 -22
- package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage.d.ts +13 -0
- package/components/ToastContainer/types.d.ts +7 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +10 -10
- package/{vendor-frAXUcQ5.js → vendor-BohmKCey.js} +71 -72
|
@@ -5,9 +5,7 @@ export interface PropertyValueClassesType {
|
|
|
5
5
|
value: string;
|
|
6
6
|
iconProperty: string;
|
|
7
7
|
isDisabled: string;
|
|
8
|
-
isFocus: string;
|
|
9
8
|
variantIsForm: string;
|
|
10
|
-
isTabSelected: string;
|
|
11
9
|
isMobile: string;
|
|
12
10
|
}
|
|
13
11
|
export declare type PropertyValueClassesKey = keyof PropertyValueClassesType;
|
|
@@ -18,8 +18,6 @@ export interface PropertyValueProps extends PropertyProps, ValueProps, Omit<Fiel
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface OwnerState extends Pick<PropertyValueProps, 'disabled'> {
|
|
21
|
-
isFocus: boolean;
|
|
22
21
|
isForm: boolean;
|
|
23
|
-
isTabSelected: boolean;
|
|
24
22
|
isMobile: boolean;
|
|
25
23
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ToastOptions } from 'react-toastify';
|
|
2
2
|
import { Toaster } from '@m4l/core';
|
|
3
|
-
|
|
3
|
+
import { Sizes } from '@m4l/styles';
|
|
4
|
+
declare function createToaster(containerId: ToastOptions['containerId'], size?: Sizes | undefined): Toaster;
|
|
4
5
|
export default createToaster;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const RootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
3
|
-
ownerState: Partial<import("../types").
|
|
2
|
+
export declare const RootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
3
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
4
4
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
5
|
-
export declare const MessageRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
6
|
-
ownerState: Partial<import("../types").
|
|
5
|
+
export declare const MessageRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
6
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
7
7
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
8
|
-
export declare const MessageHeaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
9
|
-
ownerState: Partial<import("../types").
|
|
8
|
+
export declare const MessageHeaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
9
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
10
10
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
|
-
export declare const MessageIconRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
12
|
-
ownerState: Partial<import("../types").
|
|
11
|
+
export declare const MessageIconRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
12
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
13
13
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
14
|
-
export declare const MessageIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
15
|
-
ownerState: Partial<import("../types").
|
|
14
|
+
export declare const MessageIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
15
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
16
16
|
}, {}, {}>;
|
|
17
|
-
export declare const MessageTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
18
|
-
ownerState: Partial<import("../types").
|
|
17
|
+
export declare const MessageTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
18
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
19
19
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>>, {}>;
|
|
20
|
-
export declare const MessageDescriptionStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
21
|
-
ownerState: Partial<import("../types").
|
|
20
|
+
export declare const MessageDescriptionStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
21
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
22
22
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").ClassAttributes<HTMLParagraphElement> | keyof import("react").HTMLAttributes<HTMLParagraphElement>>, {}>;
|
|
23
|
-
export declare const MessageCloseButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
24
|
-
ownerState: Partial<import("../types").
|
|
23
|
+
export declare const MessageCloseButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
24
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
25
25
|
}, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ClassAttributes<HTMLButtonElement> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, {}>;
|
|
26
|
-
export declare const MessageCloseButtonIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
27
|
-
ownerState: Partial<import("../types").
|
|
26
|
+
export declare const MessageCloseButtonIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
27
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
28
28
|
}, {}, {}>;
|
|
29
|
-
export declare const MessagePinButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
30
|
-
ownerState: Partial<import("../types").
|
|
29
|
+
export declare const MessagePinButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
30
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
31
31
|
}, Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("react").ClassAttributes<HTMLButtonElement> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, {}>;
|
|
32
|
-
export declare const MessagePinButtonIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").
|
|
33
|
-
ownerState: Partial<import("../types").
|
|
32
|
+
export declare const MessagePinButtonIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown> & {
|
|
33
|
+
ownerState: Partial<import("../types").ToastContainerOwnerState> & Record<string, unknown>;
|
|
34
34
|
}, {}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ToastMessageProps, ToastTypes } from '../../types';
|
|
2
|
+
export declare function useToastMessage(props: ToastMessageProps): {
|
|
3
|
+
pinToast: () => void;
|
|
4
|
+
isPinned: boolean;
|
|
5
|
+
ownerState: {
|
|
6
|
+
type: ToastTypes | undefined;
|
|
7
|
+
hasDescription: boolean;
|
|
8
|
+
};
|
|
9
|
+
iconTypePath: string;
|
|
10
|
+
iconClosePath: string;
|
|
11
|
+
iconPinPath: string;
|
|
12
|
+
currentSize: import("@m4l/styles").Sizes;
|
|
13
|
+
};
|
|
@@ -3,6 +3,7 @@ import { ToastContentProps, ToastContainerProps as ToastContainerReactToastifyPr
|
|
|
3
3
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
5
|
import { ToasterFunctionProps } from '@m4l/core';
|
|
6
|
+
import { Sizes } from '@m4l/styles';
|
|
6
7
|
import type { ToastContainerSlots } from './slots';
|
|
7
8
|
import { TOAST_KEY_COMPONENT } from './constants';
|
|
8
9
|
export declare type ToastTypes = 'info' | 'success' | 'warning' | 'error' | 'default';
|
|
@@ -11,6 +12,7 @@ export interface ToastMessageProps extends Partial<ToastContentProps>, ToasterFu
|
|
|
11
12
|
toastId?: ToastOptions['toastId'];
|
|
12
13
|
containerId?: ToastOptions['containerId'];
|
|
13
14
|
autoClose?: ToastOptions['autoClose'];
|
|
15
|
+
size?: Sizes;
|
|
14
16
|
}
|
|
15
17
|
export interface ToastContainerProps extends Omit<ToastContainerReactToastifyProps, 'containerId'> {
|
|
16
18
|
/**
|
|
@@ -34,7 +36,11 @@ export interface TriggerToast {
|
|
|
34
36
|
toastOptions: ToastOptions;
|
|
35
37
|
containerId: ToastOptions['containerId'];
|
|
36
38
|
type?: ToastOptions['type'];
|
|
39
|
+
size?: Sizes;
|
|
37
40
|
}
|
|
38
|
-
export
|
|
41
|
+
export interface OwnerState {
|
|
42
|
+
hasDescription?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare type ToastContainerOwnerState = OwnerState & ToastContainerProps;
|
|
39
45
|
export declare type ToastContainerSlotsType = keyof typeof ToastContainerSlots;
|
|
40
46
|
export declare type ToastContainerStyles = Partial<OverridesStyleRules<ToastContainerSlotsType, typeof TOAST_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ImageProps, RHFAutocompleteBaseProps } from
|
|
1
|
+
import { ImageProps, RHFAutocompleteBaseProps } from '../../types';
|
|
2
2
|
export declare function ComponentTypeImage<T>(props: RHFAutocompleteBaseProps<T> & ImageProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, Y, bN, aQ, aS, aT, aR, aP, A, bL, bT, c3, j, o, n, k, Z, a1, bY, an, _, $, a9, aa, a0, aE, aG, aF, aI, aD, aC, aH, aJ, aB, bf, av, w, D, ap, aW, aL, b_, bZ, aM, bg, bi, aY, bU, bC, aN, b5, ab, I, b8, ac, t, b6, a2, b7, a3, b9, a4, bp, L, bX, br, ba, bc, bb, be, b$, a5, c5, bj, c4, M, c, b, bt, N, bw, bA, a6, bz, bB, ax, as, ad, bR, bQ, bS, ay, b4, P, bD, R, z, Q, K, C, E, G, J, F, U, V, X, c0, bE, aZ, bF, S, bW, bK, bG, ae, a8, ag, ai, ah, af, T, bH, bJ, al, am, aj, bV, ak, aq, bo, bn, l, W, a$, a_, b0, m, bI, aV, bm, bv, by, aX, aO, bO, bM, s, x, aU, a, aK, c1, au, ao, aw, at, az, aA, g, bq, bs, bl, bk, bu, bx, a7, H, B, y, O, ar, c9, b2, b1, c2, cc, u, c6, ca, cb, bd, bh, c7, bP, q, c8, p, d, e, v, h, i, f, b3 } from "./vendor-
|
|
1
|
+
import { r, Y, bN, aQ, aS, aT, aR, aP, A, bL, bT, c3, j, o, n, k, Z, a1, bY, an, _, $, a9, aa, a0, aE, aG, aF, aI, aD, aC, aH, aJ, aB, bf, av, w, D, ap, aW, aL, b_, bZ, aM, bg, bi, aY, bU, bC, aN, b5, ab, I, b8, ac, t, b6, a2, b7, a3, b9, a4, bp, L, bX, br, ba, bc, bb, be, b$, a5, c5, bj, c4, M, c, b, bt, N, bw, bA, a6, bz, bB, ax, as, ad, bR, bQ, bS, ay, b4, P, bD, R, z, Q, K, C, E, G, J, F, U, V, X, c0, bE, aZ, bF, S, bW, bK, bG, ae, a8, ag, ai, ah, af, T, bH, bJ, al, am, aj, bV, ak, aq, bo, bn, l, W, a$, a_, b0, m, bI, aV, bm, bv, by, aX, aO, bO, bM, s, x, aU, a, aK, c1, au, ao, aw, at, az, aA, g, bq, bs, bl, bk, bu, bx, a7, H, B, y, O, ar, c9, b2, b1, c2, cc, u, c6, ca, cb, bd, bh, c7, bP, q, c8, p, d, e, v, h, i, f, b3 } from "./vendor-BohmKCey.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AREAS_DICTIONARY_ID,
|
|
4
4
|
Y as Accordion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"src/**/*.{js,ts,jsx,tsx}": "eslint --max-warnings=0 --fix",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@mui/lab": "5.0.0-alpha.89",
|
|
17
17
|
"@mui/material": "5.15.19",
|
|
18
18
|
"@mui/x-date-pickers": "6.11.1",
|
|
19
|
-
"@storybook/addon-essentials": "8.2.
|
|
20
|
-
"@storybook/addon-interactions": "8.2.
|
|
21
|
-
"@storybook/addon-links": "8.2.
|
|
22
|
-
"@storybook/addon-onboarding": "8.2.
|
|
23
|
-
"@storybook/blocks": "8.2.
|
|
24
|
-
"@storybook/react": "8.2.
|
|
25
|
-
"@storybook/react-vite": "8.2.
|
|
26
|
-
"@storybook/test": "8.2.
|
|
19
|
+
"@storybook/addon-essentials": "8.2.9",
|
|
20
|
+
"@storybook/addon-interactions": "8.2.9",
|
|
21
|
+
"@storybook/addon-links": "8.2.9",
|
|
22
|
+
"@storybook/addon-onboarding": "8.2.9",
|
|
23
|
+
"@storybook/blocks": "8.2.9",
|
|
24
|
+
"@storybook/react": "8.2.9",
|
|
25
|
+
"@storybook/react-vite": "8.2.9",
|
|
26
|
+
"@storybook/test": "8.2.9",
|
|
27
27
|
"chart.js": "^4.4.0",
|
|
28
28
|
"chartjs-chart-error-bars": "^4.3.3",
|
|
29
29
|
"esbuild": "^0.20.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-toastify": "10.0.5",
|
|
55
55
|
"react-transition-group": "^4.4.5",
|
|
56
56
|
"simplebar-react": "2.4.1",
|
|
57
|
-
"storybook": "8.2.
|
|
57
|
+
"storybook": "8.2.9",
|
|
58
58
|
"yup": "^0.32.11",
|
|
59
59
|
"zustand": "4.3.6"
|
|
60
60
|
},
|
|
@@ -12,14 +12,14 @@ import { Link as Link$1, useLocation, NavLink as NavLink$1, unstable_HistoryRout
|
|
|
12
12
|
import clsx from "clsx";
|
|
13
13
|
import { unstable_composeClasses } from "@mui/base";
|
|
14
14
|
import { useForm, FormProvider, useFormContext, Controller, useWatch, useFormState, useController } from "react-hook-form";
|
|
15
|
-
import { createStore, useStore } from "zustand";
|
|
16
|
-
import { shallow } from "zustand/shallow";
|
|
17
15
|
import { useResponsiveDesktop, useFirstRender, useResizeObserver, useResponsiveContainerStore, useIsMobile, useFormatter, useHostTheme, useLocales, HostThemeProvider, FormatterProvider, LocalesProvider, getLocaleFromNetwork, ResponsiveContainerProvider } from "@m4l/graphics";
|
|
18
16
|
import isString from "lodash/isString";
|
|
19
17
|
import { useDropzone } from "react-dropzone";
|
|
20
18
|
import * as Yup from "yup";
|
|
19
|
+
import { shallow } from "zustand/shallow";
|
|
21
20
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
22
21
|
import { P as PropagateLoader$1, R as Resizable, D as DraggableCore_1, a as ResizableBox, b as Draggable, u as useRowSelection, S as SelectCellFormatter, H as HeaderRenderer, c as DataGrid$1, d as ReactJson, e as SplitterLayout } from "./node_modules-CQtkw0uG.js";
|
|
22
|
+
import { createStore, useStore } from "zustand";
|
|
23
23
|
import debounce$1 from "lodash/debounce";
|
|
24
24
|
import { throttle, debounce, cloneDeep } from "lodash";
|
|
25
25
|
import { deepEqual } from "fast-equals";
|
|
@@ -6347,7 +6347,6 @@ function ComponentTypeImage$1(props) {
|
|
|
6347
6347
|
AutocompleteRoot,
|
|
6348
6348
|
{
|
|
6349
6349
|
className: classes2.root,
|
|
6350
|
-
tabIndex: 0,
|
|
6351
6350
|
onFocus: handlerFocus,
|
|
6352
6351
|
onBlur: handlerOnBlur,
|
|
6353
6352
|
onKeyUp: handlerOnKeyUp,
|
|
@@ -6452,13 +6451,7 @@ function ComponentTypeImage$1(props) {
|
|
|
6452
6451
|
InputProps: {
|
|
6453
6452
|
...params.InputProps,
|
|
6454
6453
|
startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6455
|
-
!multiple && withImage && value ? /* @__PURE__ */ jsx(
|
|
6456
|
-
Image,
|
|
6457
|
-
{
|
|
6458
|
-
src: getOptionUrlImageLocal(value)
|
|
6459
|
-
},
|
|
6460
|
-
"ImageTextField"
|
|
6461
|
-
) : null,
|
|
6454
|
+
!multiple && withImage && value ? /* @__PURE__ */ jsx(Image, { src: getOptionUrlImageLocal(value) }, "ImageTextField") : null,
|
|
6462
6455
|
params.InputProps.startAdornment
|
|
6463
6456
|
] }),
|
|
6464
6457
|
endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */ jsxs("div", { className: classes2.containerRefreshDown, children: [
|
|
@@ -6502,12 +6495,7 @@ function ComponentTypeImage$1(props) {
|
|
|
6502
6495
|
key,
|
|
6503
6496
|
label: getOptionLabelLocal(option),
|
|
6504
6497
|
className: classes2.chip,
|
|
6505
|
-
icon: withImage && option ? /* @__PURE__ */ jsx(
|
|
6506
|
-
Image,
|
|
6507
|
-
{
|
|
6508
|
-
src: getOptionUrlImageLocal(option)
|
|
6509
|
-
}
|
|
6510
|
-
) : void 0,
|
|
6498
|
+
icon: withImage && option ? /* @__PURE__ */ jsx(Image, { src: getOptionUrlImageLocal(option) }) : void 0,
|
|
6511
6499
|
sx: {
|
|
6512
6500
|
...theme.components?.M4LRHFAutocompleteChip?.styleOverrides
|
|
6513
6501
|
}
|
|
@@ -6865,7 +6853,6 @@ const RHFColorPicker = (props) => {
|
|
|
6865
6853
|
RHFColorPickerRoot,
|
|
6866
6854
|
{
|
|
6867
6855
|
className: classes2.root,
|
|
6868
|
-
tabIndex: 0,
|
|
6869
6856
|
onFocus: handlerFocus,
|
|
6870
6857
|
onBlur: handlerOnBlur,
|
|
6871
6858
|
onKeyUp: handlerOnKeyUp,
|
|
@@ -6892,6 +6879,11 @@ const RHFColorPicker = (props) => {
|
|
|
6892
6879
|
tabIndex: 0,
|
|
6893
6880
|
className: classes2.containerFieldColor,
|
|
6894
6881
|
onClick: (event) => setAnchorEl(event.currentTarget),
|
|
6882
|
+
onKeyDown: (event) => {
|
|
6883
|
+
if (event.key === "Enter") {
|
|
6884
|
+
setAnchorEl(event.currentTarget);
|
|
6885
|
+
}
|
|
6886
|
+
},
|
|
6895
6887
|
children: [
|
|
6896
6888
|
/* @__PURE__ */ jsx(
|
|
6897
6889
|
"div",
|
|
@@ -7812,7 +7804,6 @@ function RHFDateTime(props) {
|
|
|
7812
7804
|
RHFDateTimeRoot,
|
|
7813
7805
|
{
|
|
7814
7806
|
className: clsx(classes2.root, className),
|
|
7815
|
-
tabIndex: 0,
|
|
7816
7807
|
onFocus: handlerFocus,
|
|
7817
7808
|
onBlur: handlerOnBlur,
|
|
7818
7809
|
onKeyUp: handlerOnKeyUp,
|
|
@@ -7997,7 +7988,7 @@ const rhfTextFieldStyles = {
|
|
|
7997
7988
|
},
|
|
7998
7989
|
"& .MuiInputBase-input": {
|
|
7999
7990
|
fontSize: "0.875rem",
|
|
8000
|
-
padding: "0px
|
|
7991
|
+
padding: "0px",
|
|
8001
7992
|
height: "100%"
|
|
8002
7993
|
},
|
|
8003
7994
|
"& .MuiOutlinedInput-root": {
|
|
@@ -8131,7 +8122,6 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
8131
8122
|
RHFTextFieldRootStyled,
|
|
8132
8123
|
{
|
|
8133
8124
|
ownerState: { ...ownerState },
|
|
8134
|
-
tabIndex: 0,
|
|
8135
8125
|
onFocus: handlerFocus,
|
|
8136
8126
|
onBlur: handlerOnBlur,
|
|
8137
8127
|
onKeyUp: handlerOnKeyUp,
|
|
@@ -8150,11 +8140,11 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
8150
8140
|
let newValue = event.target.value;
|
|
8151
8141
|
if (type === "number") {
|
|
8152
8142
|
if (isInteger) {
|
|
8153
|
-
newValue = newValue ? parseInt(newValue, 10) :
|
|
8143
|
+
newValue = newValue ? parseInt(newValue, 10) : "";
|
|
8154
8144
|
} else {
|
|
8155
|
-
newValue = newValue ? Number(newValue) :
|
|
8145
|
+
newValue = newValue ? Number(newValue) : "";
|
|
8156
8146
|
}
|
|
8157
|
-
newValue = isNaN(newValue) ?
|
|
8147
|
+
newValue = isNaN(newValue) ? "" : newValue;
|
|
8158
8148
|
}
|
|
8159
8149
|
onChange(newValue);
|
|
8160
8150
|
};
|
|
@@ -8181,7 +8171,7 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
8181
8171
|
InputLabelProps: { shrink: true },
|
|
8182
8172
|
autoComplete,
|
|
8183
8173
|
onChange: onInternalChange,
|
|
8184
|
-
value: type === "number" && isInteger ? isNaN(parseInt(value, 10)) ?
|
|
8174
|
+
value: type === "number" && isInteger ? isNaN(parseInt(value, 10)) ? "" : parseInt(value, 10) : value || "",
|
|
8185
8175
|
inputProps: {
|
|
8186
8176
|
name: nameRHF,
|
|
8187
8177
|
id: nameRHF,
|
|
@@ -8632,7 +8622,6 @@ const RHFPeriod = (props) => {
|
|
|
8632
8622
|
RHFPeriodRoot,
|
|
8633
8623
|
{
|
|
8634
8624
|
className: classes2.root,
|
|
8635
|
-
tabIndex: 0,
|
|
8636
8625
|
onFocus: handlerFocus,
|
|
8637
8626
|
onBlur: handlerOnBlur,
|
|
8638
8627
|
onKeyUp: handlerOnKeyUp,
|
|
@@ -10707,12 +10696,12 @@ const toastStyles = {
|
|
|
10707
10696
|
"& .Toastify__progress-bar--warning": {},
|
|
10708
10697
|
"& .Toastify__progress-bar--error": {}
|
|
10709
10698
|
}),
|
|
10710
|
-
messageRoot:
|
|
10699
|
+
messageRoot: {
|
|
10711
10700
|
display: "flex",
|
|
10712
10701
|
flexDirection: "column",
|
|
10713
10702
|
width: "100%",
|
|
10714
|
-
padding:
|
|
10715
|
-
}
|
|
10703
|
+
padding: "12px"
|
|
10704
|
+
},
|
|
10716
10705
|
messageHeader: {
|
|
10717
10706
|
width: "100%",
|
|
10718
10707
|
display: "flex",
|
|
@@ -10742,7 +10731,7 @@ const toastStyles = {
|
|
|
10742
10731
|
messageDescription: ({ theme }) => ({
|
|
10743
10732
|
...theme.typography.body,
|
|
10744
10733
|
color: theme.vars.palette.text.primary,
|
|
10745
|
-
padding: "
|
|
10734
|
+
padding: "8px 4px 4px 30px"
|
|
10746
10735
|
}),
|
|
10747
10736
|
messageCloseButton: {
|
|
10748
10737
|
border: "none",
|
|
@@ -10862,11 +10851,12 @@ const iconTypes = {
|
|
|
10862
10851
|
warning: ICONS.WARNING,
|
|
10863
10852
|
error: ICONS.ERROR
|
|
10864
10853
|
};
|
|
10865
|
-
|
|
10854
|
+
function useToastMessage(props) {
|
|
10866
10855
|
const [isPinned, setIsPinned] = useState(false);
|
|
10867
|
-
const { type,
|
|
10868
|
-
const ownerState = { type };
|
|
10856
|
+
const { type, description, toastId, containerId, size } = props;
|
|
10857
|
+
const ownerState = { type, hasDescription: Boolean(description) };
|
|
10869
10858
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10859
|
+
const { currentSize } = useComponentSize(size);
|
|
10870
10860
|
const iconToShow = iconTypes?.[type || "default"] || iconTypes.default;
|
|
10871
10861
|
const iconTypePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${iconToShow}`;
|
|
10872
10862
|
const iconClosePath = `${host_static_assets}/${environment_assets}/${ICONS_PATH}/${ICONS.CLOSE}`;
|
|
@@ -10877,17 +10867,37 @@ const ToastMessage = (props) => {
|
|
|
10877
10867
|
setIsPinned(true);
|
|
10878
10868
|
}
|
|
10879
10869
|
}
|
|
10870
|
+
return {
|
|
10871
|
+
pinToast,
|
|
10872
|
+
isPinned,
|
|
10873
|
+
ownerState,
|
|
10874
|
+
iconTypePath,
|
|
10875
|
+
iconClosePath,
|
|
10876
|
+
iconPinPath,
|
|
10877
|
+
currentSize
|
|
10878
|
+
};
|
|
10879
|
+
}
|
|
10880
|
+
const ToastMessage = (props) => {
|
|
10881
|
+
const { title, description, closeToast } = props;
|
|
10882
|
+
const { pinToast, isPinned, ownerState, iconPinPath, iconTypePath, iconClosePath, currentSize } = useToastMessage(props);
|
|
10880
10883
|
return /* @__PURE__ */ jsxs(MessageRootStyled, { ownerState, children: [
|
|
10881
10884
|
/* @__PURE__ */ jsxs(MessageHeaderStyled, { ownerState, children: [
|
|
10882
|
-
/* @__PURE__ */ jsx(MessageIconRootStyled, { ownerState, children: /* @__PURE__ */ jsx(MessageIconStyled, { src: iconTypePath, ownerState }) }),
|
|
10883
|
-
/* @__PURE__ */ jsx(MessageTitleStyled, { ownerState, children: title }),
|
|
10885
|
+
/* @__PURE__ */ jsx(MessageIconRootStyled, { ownerState, children: /* @__PURE__ */ jsx(MessageIconStyled, { src: iconTypePath, ownerState, size: currentSize }) }),
|
|
10886
|
+
/* @__PURE__ */ jsx(MessageTitleStyled, { ownerState, size: currentSize, children: title }),
|
|
10884
10887
|
!isPinned && /* @__PURE__ */ jsx(
|
|
10885
10888
|
MessagePinButtonStyled,
|
|
10886
10889
|
{
|
|
10887
10890
|
onClick: pinToast,
|
|
10888
10891
|
ownerState,
|
|
10889
10892
|
"aria-describedby": `${TOAST_KEY_COMPONENT}-pin`,
|
|
10890
|
-
children: /* @__PURE__ */ jsx(
|
|
10893
|
+
children: /* @__PURE__ */ jsx(
|
|
10894
|
+
MessagePinButtonIconStyled,
|
|
10895
|
+
{
|
|
10896
|
+
src: iconPinPath,
|
|
10897
|
+
size: currentSize,
|
|
10898
|
+
ownerState
|
|
10899
|
+
}
|
|
10900
|
+
)
|
|
10891
10901
|
}
|
|
10892
10902
|
),
|
|
10893
10903
|
/* @__PURE__ */ jsx(
|
|
@@ -10896,24 +10906,38 @@ const ToastMessage = (props) => {
|
|
|
10896
10906
|
onClick: closeToast,
|
|
10897
10907
|
ownerState,
|
|
10898
10908
|
"aria-describedby": `${TOAST_KEY_COMPONENT}-close`,
|
|
10899
|
-
children: /* @__PURE__ */ jsx(
|
|
10909
|
+
children: /* @__PURE__ */ jsx(
|
|
10910
|
+
MessageCloseButtonIconStyled,
|
|
10911
|
+
{
|
|
10912
|
+
src: iconClosePath,
|
|
10913
|
+
size: currentSize,
|
|
10914
|
+
ownerState
|
|
10915
|
+
}
|
|
10916
|
+
)
|
|
10900
10917
|
}
|
|
10901
10918
|
)
|
|
10902
10919
|
] }),
|
|
10903
|
-
description && /* @__PURE__ */ jsx(MessageDescriptionStyled, { ownerState, children: description })
|
|
10920
|
+
description && /* @__PURE__ */ jsx(MessageDescriptionStyled, { ownerState, size: currentSize, children: description })
|
|
10904
10921
|
] });
|
|
10905
10922
|
};
|
|
10906
|
-
function optionsToProps(toastProps, containerId) {
|
|
10923
|
+
function optionsToProps(toastProps, containerId, size) {
|
|
10907
10924
|
return {
|
|
10908
10925
|
containerId,
|
|
10909
10926
|
type: toastProps?.type,
|
|
10910
10927
|
toastId: toastProps?.toastId,
|
|
10911
|
-
autoClose: toastProps?.autoClose
|
|
10928
|
+
autoClose: toastProps?.autoClose,
|
|
10929
|
+
size
|
|
10912
10930
|
};
|
|
10913
10931
|
}
|
|
10914
|
-
function triggerToast({
|
|
10932
|
+
function triggerToast({
|
|
10933
|
+
props,
|
|
10934
|
+
toastOptions,
|
|
10935
|
+
containerId,
|
|
10936
|
+
type = "default",
|
|
10937
|
+
size
|
|
10938
|
+
}) {
|
|
10915
10939
|
const currentContainerId = containerId || toastOptions?.containerId;
|
|
10916
|
-
const allProps = { ...props, ...optionsToProps(toastOptions, currentContainerId) };
|
|
10940
|
+
const allProps = { ...props, ...optionsToProps(toastOptions, currentContainerId, size) };
|
|
10917
10941
|
const toastFn = type === "default" || type === void 0 ? toast : toast[type];
|
|
10918
10942
|
const id = toastFn(/* @__PURE__ */ jsx(ToastMessage, { ...allProps }), {
|
|
10919
10943
|
...toastOptions,
|
|
@@ -10927,14 +10951,14 @@ function triggerToast({ props, toastOptions, containerId, type = "default" }) {
|
|
|
10927
10951
|
}
|
|
10928
10952
|
return toastOptions?.toastId || id;
|
|
10929
10953
|
}
|
|
10930
|
-
function createToaster(containerId) {
|
|
10954
|
+
function createToaster(containerId, size) {
|
|
10931
10955
|
const toaster = (props, toastOptions = {}) => {
|
|
10932
|
-
return triggerToast({ props, toastOptions, containerId });
|
|
10956
|
+
return triggerToast({ props, toastOptions, containerId, size });
|
|
10933
10957
|
};
|
|
10934
|
-
toaster.success = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "success", containerId });
|
|
10935
|
-
toaster.info = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "info", containerId });
|
|
10936
|
-
toaster.warning = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "warning", containerId });
|
|
10937
|
-
toaster.error = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "error", containerId });
|
|
10958
|
+
toaster.success = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "success", containerId, size });
|
|
10959
|
+
toaster.info = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "info", containerId, size });
|
|
10960
|
+
toaster.warning = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "warning", containerId, size });
|
|
10961
|
+
toaster.error = (props, toastOptions = {}) => triggerToast({ props, toastOptions, type: "error", containerId, size });
|
|
10938
10962
|
return toaster;
|
|
10939
10963
|
}
|
|
10940
10964
|
const Window = (props) => {
|
|
@@ -22359,9 +22383,7 @@ generateUtilityClasses(
|
|
|
22359
22383
|
"value",
|
|
22360
22384
|
/* states or variants of elements */
|
|
22361
22385
|
"isDisabled",
|
|
22362
|
-
"isFocus",
|
|
22363
22386
|
"variantIsForm",
|
|
22364
|
-
"isTabSelected",
|
|
22365
22387
|
"isMobile"
|
|
22366
22388
|
]
|
|
22367
22389
|
);
|
|
@@ -22373,9 +22395,7 @@ const propertyValueUtilityClasses = (ownerState) => {
|
|
|
22373
22395
|
root: [
|
|
22374
22396
|
"root",
|
|
22375
22397
|
ownerState.disabled && "isDisabled",
|
|
22376
|
-
ownerState.isFocus && "isFocus",
|
|
22377
22398
|
ownerState.isForm && "variantIsForm",
|
|
22378
|
-
ownerState.isTabSelected && "isTabSelected",
|
|
22379
22399
|
ownerState.isMobile && "isMobile"
|
|
22380
22400
|
],
|
|
22381
22401
|
property: ["property"],
|
|
@@ -22407,8 +22427,6 @@ function PropertyValue(props) {
|
|
|
22407
22427
|
helperMessage
|
|
22408
22428
|
} = props;
|
|
22409
22429
|
const isDesktop = useResponsiveDesktop();
|
|
22410
|
-
const [isFocus, setIsFocus] = useState(false);
|
|
22411
|
-
const [isTabSelected, setIsTabSelected] = useState(false);
|
|
22412
22430
|
const getValueW = () => {
|
|
22413
22431
|
if (valueWidthMobile && !isDesktop) {
|
|
22414
22432
|
return valueWidthMobile;
|
|
@@ -22434,22 +22452,8 @@ function PropertyValue(props) {
|
|
|
22434
22452
|
}
|
|
22435
22453
|
return 100;
|
|
22436
22454
|
};
|
|
22437
|
-
const handlerFocus = () => {
|
|
22438
|
-
setIsFocus(true);
|
|
22439
|
-
};
|
|
22440
|
-
const handlerKeyUp = (event) => {
|
|
22441
|
-
if (event.key === "Tab") {
|
|
22442
|
-
setIsTabSelected(true);
|
|
22443
|
-
}
|
|
22444
|
-
};
|
|
22445
|
-
const handlerOnBlur = () => {
|
|
22446
|
-
setIsFocus(false);
|
|
22447
|
-
setIsTabSelected(false);
|
|
22448
|
-
};
|
|
22449
22455
|
const ownerState = {
|
|
22450
22456
|
disabled: isForm && disabled ? disabled : false,
|
|
22451
|
-
isFocus: !disabled && isForm ? isFocus : false,
|
|
22452
|
-
isTabSelected: !disabled && isForm ? isTabSelected : false,
|
|
22453
22457
|
isForm: isForm ? true : false,
|
|
22454
22458
|
isMobile: !isDesktop
|
|
22455
22459
|
};
|
|
@@ -22530,11 +22534,6 @@ function PropertyValue(props) {
|
|
|
22530
22534
|
{
|
|
22531
22535
|
className: clsx(classes2.root, className),
|
|
22532
22536
|
style: { gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr" },
|
|
22533
|
-
role: "button",
|
|
22534
|
-
tabIndex: 0,
|
|
22535
|
-
onClick: handlerFocus,
|
|
22536
|
-
onBlur: handlerOnBlur,
|
|
22537
|
-
onKeyUp: handlerKeyUp,
|
|
22538
22537
|
...process.env.NODE_ENV !== "production" ? {
|
|
22539
22538
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
22540
22539
|
{ property: property ? true : false, value: value ? true : false }
|