@m4l/components 9.1.52 → 9.1.53
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/@types/export.d.ts +0 -6
- package/@types/types.d.ts +31 -26
- package/components/Color/Color.d.ts +7 -0
- package/components/Color/Color.js +58 -0
- package/components/Color/Color.styles.d.ts +8 -0
- package/components/Color/Color.styles.js +130 -0
- package/components/Color/Color.test.d.ts +1 -0
- package/components/Color/constants.d.ts +3 -0
- package/components/Color/constants.js +6 -0
- package/components/Color/index.d.ts +1 -0
- package/components/Color/index.js +1 -0
- package/components/Color/slots/ColorEnum.d.ts +5 -0
- package/components/Color/slots/ColorEnum.js +9 -0
- package/components/Color/slots/ColorSlots.d.ts +23 -0
- package/components/Color/slots/ColorSlots.js +23 -0
- package/components/Color/slots/index.d.ts +2 -0
- package/components/Color/slots/index.js +1 -0
- package/components/Color/types.d.ts +64 -0
- package/components/HelperError/HelperError.js +6 -3
- package/components/HelperError/HelperError.styles.js +2 -2
- package/components/HelperError/constant.d.ts +2 -1
- package/components/HelperError/constant.js +6 -3
- package/components/HelperError/slots/HelperErrorSlots.js +1 -1
- package/components/HelperError/types.d.ts +1 -1
- package/components/Label/Label.js +42 -27
- package/components/Label/types.d.ts +1 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +0 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +0 -2
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +90 -68
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.d.ts +5 -0
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +105 -0
- package/components/hook-form/RHFColorPicker/RHFColorPicker.test.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/constants.d.ts +5 -0
- package/components/hook-form/RHFColorPicker/constants.js +6 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerEnum.d.ts +5 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerEnum.js +9 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +24 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +23 -0
- package/components/hook-form/RHFColorPicker/slots/index.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +51 -7
- package/components/hook-form/RHFTextField/RHFTextField.js +18 -29
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +3 -1
- package/components/hook-form/RHFTextField/types.d.ts +11 -11
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -6
- package/components/mui_extended/TextField/TextField.js +4 -0
- package/components/mui_extended/Typography/types.d.ts +3 -1
- package/components/mui_extended/Typography/typography.styles.js +1 -0
- package/hooks/useFormFocus/index.d.ts +1 -0
- package/index.js +42 -44
- package/package.json +1 -1
- package/test/TestFormAutoValidation.d.ts +4 -0
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/classes/constants.js +0 -4
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +0 -15
- package/components/hook-form/RHFColorPicker/classes/index.js +0 -44
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +0 -15
- package/components/hook-form/RHFColorPicker/dictionary.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/dictionary.js +0 -6
- package/components/hook-form/RHFColorPicker/styles.d.ts +0 -1
- package/components/hook-form/RHFColorPicker/styles.js +0 -7
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +0 -5
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.js +0 -21
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +0 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
2
|
+
import { forwardRef, useId } from "react";
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import { InputAdornment } from "@mui/material";
|
|
5
|
-
import { u as useFormFocus } from "../../../hooks/useFormFocus/index.js";
|
|
6
5
|
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
7
6
|
import { R as RHF_TEXT_FIELD_KEY_COMPONENT } from "./constant.js";
|
|
7
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
8
|
+
import clsx from "clsx";
|
|
8
9
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
10
|
import { R as RHFTextFieldRootStyled, L as LabelStyled, T as TextFieldStyled, H as HelperErrorStyled } from "./slots/RHFTextFieldSlots.js";
|
|
10
11
|
import { R as RHFTextFieldSlots } from "./slots/RHFTextFieldEnum.js";
|
|
@@ -12,11 +13,9 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
12
13
|
const {
|
|
13
14
|
name,
|
|
14
15
|
autoComplete = "off",
|
|
15
|
-
skeletonWidth = "100%",
|
|
16
|
-
skeletonHeight = "18px",
|
|
17
16
|
type,
|
|
18
17
|
label,
|
|
19
|
-
size = "
|
|
18
|
+
size = "medium",
|
|
20
19
|
startIcon,
|
|
21
20
|
endIcon,
|
|
22
21
|
helperMessage = "",
|
|
@@ -27,13 +26,14 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
27
26
|
isInteger = true,
|
|
28
27
|
mandatoryMessage,
|
|
29
28
|
helperText = true,
|
|
29
|
+
className,
|
|
30
30
|
...other
|
|
31
31
|
} = props;
|
|
32
|
-
const
|
|
32
|
+
const htmlForId = useId();
|
|
33
|
+
const ariaLabelledById = `field-label-${htmlForId}`;
|
|
33
34
|
const {
|
|
34
35
|
control
|
|
35
36
|
} = useFormContext();
|
|
36
|
-
const { handlerFocus, handlerOnKeyUp, handlerOnBlur } = useFormFocus();
|
|
37
37
|
const { currentSize } = useComponentSize(size);
|
|
38
38
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
39
39
|
const ownerState = {
|
|
@@ -44,15 +44,12 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
44
44
|
size: adjustedSize,
|
|
45
45
|
disabled
|
|
46
46
|
};
|
|
47
|
+
const classRoot = getComponentSlotRoot(RHF_TEXT_FIELD_KEY_COMPONENT);
|
|
47
48
|
return /* @__PURE__ */ jsx(
|
|
48
49
|
RHFTextFieldRootStyled,
|
|
49
50
|
{
|
|
50
51
|
ownerState: { ...ownerState },
|
|
51
|
-
|
|
52
|
-
onBlur: handlerOnBlur,
|
|
53
|
-
onKeyUp: handlerOnKeyUp,
|
|
54
|
-
role: "textbox",
|
|
55
|
-
htmlFor: name,
|
|
52
|
+
className: clsx(classRoot, className),
|
|
56
53
|
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.root),
|
|
57
54
|
children: /* @__PURE__ */ jsx(
|
|
58
55
|
Controller,
|
|
@@ -61,16 +58,7 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
61
58
|
control,
|
|
62
59
|
render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
|
|
63
60
|
const onInternalChange = (event) => {
|
|
64
|
-
|
|
65
|
-
if (type === "number") {
|
|
66
|
-
if (isInteger) {
|
|
67
|
-
newValue = newValue ? parseInt(newValue, 10) : "";
|
|
68
|
-
} else {
|
|
69
|
-
if (!/^\d*\.?\d*$/.test(newValue)) {
|
|
70
|
-
newValue = value;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
61
|
+
const newValue = event.target.value;
|
|
74
62
|
onChange(newValue);
|
|
75
63
|
};
|
|
76
64
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -80,28 +68,28 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
80
68
|
ownerState: { ...ownerState },
|
|
81
69
|
size: adjustedSize,
|
|
82
70
|
label,
|
|
83
|
-
|
|
71
|
+
htmlFor: htmlForId,
|
|
84
72
|
mandatory,
|
|
85
73
|
mandatoryMessage,
|
|
86
|
-
helperMessage
|
|
87
|
-
className: "Ejemplo"
|
|
74
|
+
helperMessage
|
|
88
75
|
}
|
|
89
76
|
),
|
|
90
77
|
/* @__PURE__ */ jsx(
|
|
91
78
|
TextFieldStyled,
|
|
92
79
|
{
|
|
93
|
-
ownerState: { ...ownerState, error: !!error
|
|
80
|
+
ownerState: { ...ownerState, error: !!error },
|
|
94
81
|
disabled,
|
|
95
82
|
inputRef,
|
|
96
83
|
ref,
|
|
97
84
|
InputLabelProps: { shrink: true },
|
|
98
85
|
autoComplete,
|
|
99
86
|
onChange: onInternalChange,
|
|
100
|
-
className: "rhf-text-field-root",
|
|
101
87
|
value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
|
|
102
88
|
inputProps: {
|
|
103
89
|
name,
|
|
104
|
-
|
|
90
|
+
role: "textbox",
|
|
91
|
+
ss: 1,
|
|
92
|
+
id: htmlForId,
|
|
105
93
|
"aria-labelledby": ariaLabelledById,
|
|
106
94
|
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.textField)
|
|
107
95
|
},
|
|
@@ -128,7 +116,8 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
128
116
|
{
|
|
129
117
|
ownerState: {},
|
|
130
118
|
message: error.message,
|
|
131
|
-
size: adjustedSize
|
|
119
|
+
size: adjustedSize,
|
|
120
|
+
htmlFor: htmlForId
|
|
132
121
|
}
|
|
133
122
|
) : null
|
|
134
123
|
] });
|
|
@@ -26,7 +26,9 @@ const rhfTextFieldStyles = {
|
|
|
26
26
|
* @updatedAt 2024-10-22 19:27:23 - automatic
|
|
27
27
|
* @updatedUser Bruce Escobar - automatic
|
|
28
28
|
*/
|
|
29
|
-
helperErrorStyled: {}
|
|
29
|
+
helperErrorStyled: {},
|
|
30
|
+
skeletonTextFieldRoot: {},
|
|
31
|
+
wrapperSkeletonRHFTextField: {}
|
|
30
32
|
};
|
|
31
33
|
export {
|
|
32
34
|
rhfTextFieldStyles as r
|
|
@@ -6,9 +6,16 @@ import { LabelProps } from '../../Label/types';
|
|
|
6
6
|
import { RHFTextFieldSlots } from './slots';
|
|
7
7
|
import { RHF_TEXT_FIELD_KEY_COMPONENT } from './constant';
|
|
8
8
|
import { ComponentPalletColor } from '@m4l/styles';
|
|
9
|
-
export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'label' | 'theme' | 'color'>, Omit<LabelProps, 'label'> {
|
|
9
|
+
export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'label' | 'theme' | 'color' | 'error'>, Omit<LabelProps, 'label' | 'error'> {
|
|
10
|
+
/**
|
|
11
|
+
* Valor de anchura total para la vista de carga provisional.
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
10
14
|
skeletonWidth?: string | number;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Valor de altura total para la vista de carga provisional.
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
12
19
|
skeletonHeight?: string | number;
|
|
13
20
|
/** Identificador del campo para react hook form. */
|
|
14
21
|
name: string;
|
|
@@ -23,17 +30,10 @@ export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputP
|
|
|
23
30
|
/** Etiqueta que se utiliza para condicionar el valor del campo de texto para que sea de tipo entero o decimal.*/
|
|
24
31
|
isInteger?: boolean;
|
|
25
32
|
color?: Extract<ComponentPalletColor, 'default'>;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export interface RHFTextFieldState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
|
|
29
|
-
type: 'password' | 'text';
|
|
30
|
-
isFocus: boolean;
|
|
31
|
-
isTabSelected: boolean;
|
|
33
|
+
className?: string;
|
|
32
34
|
}
|
|
33
35
|
export type RHFTextFieldOwnerState = RHFTextFieldProps & {
|
|
34
|
-
componentPaletteColor?: ComponentPalletColor;
|
|
35
|
-
RHFtextFieldError?: boolean;
|
|
36
36
|
error?: boolean;
|
|
37
37
|
};
|
|
38
38
|
export type RHFTextFieldSlotsType = keyof typeof RHFTextFieldSlots;
|
|
39
|
-
export type RHFTextFieldStyles =
|
|
39
|
+
export type RHFTextFieldStyles = OverridesStyleRules<RHFTextFieldSlotsType, typeof RHF_TEXT_FIELD_KEY_COMPONENT, Theme>;
|
|
@@ -12,8 +12,6 @@ const RHFTextFieldPassword = (props) => {
|
|
|
12
12
|
const {
|
|
13
13
|
name,
|
|
14
14
|
label,
|
|
15
|
-
skeletonWidth,
|
|
16
|
-
skeletonHeight,
|
|
17
15
|
size,
|
|
18
16
|
mandatory,
|
|
19
17
|
mandatoryMessage,
|
|
@@ -38,8 +36,6 @@ const RHFTextFieldPassword = (props) => {
|
|
|
38
36
|
label,
|
|
39
37
|
type: showPassword ? "text" : "password",
|
|
40
38
|
autoComplete: "on",
|
|
41
|
-
skeletonWidth,
|
|
42
|
-
skeletonHeight,
|
|
43
39
|
size,
|
|
44
40
|
mandatory,
|
|
45
41
|
mandatoryMessage,
|
|
@@ -99,8 +99,6 @@ function GeneralData() {
|
|
|
99
99
|
name: "properties.radius",
|
|
100
100
|
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_RADIUS),
|
|
101
101
|
autoComplete: "off",
|
|
102
|
-
skeletonWidth: "70%",
|
|
103
|
-
skeletonHeight: "18px",
|
|
104
102
|
disabled: true,
|
|
105
103
|
size: "small"
|
|
106
104
|
}
|
|
@@ -111,8 +109,6 @@ function GeneralData() {
|
|
|
111
109
|
name: "lat",
|
|
112
110
|
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LAT),
|
|
113
111
|
autoComplete: "off",
|
|
114
|
-
skeletonWidth: "70%",
|
|
115
|
-
skeletonHeight: "18px",
|
|
116
112
|
disabled: true,
|
|
117
113
|
size: "small"
|
|
118
114
|
}
|
|
@@ -123,8 +119,6 @@ function GeneralData() {
|
|
|
123
119
|
name: "lng",
|
|
124
120
|
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_LON),
|
|
125
121
|
autoComplete: "off",
|
|
126
|
-
skeletonWidth: "70%",
|
|
127
|
-
skeletonHeight: "18px",
|
|
128
122
|
disabled: true,
|
|
129
123
|
size: "small"
|
|
130
124
|
}
|
|
@@ -5,6 +5,8 @@ import { S as SkeletonStyled, T as TextFieldRootStyled } from "./slots/TextField
|
|
|
5
5
|
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
6
6
|
import { T as TEXT_FIELD_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import { T as TextFieldSlots } from "./slots/TextFieldEnum.js";
|
|
8
|
+
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
9
|
+
import clsx from "clsx";
|
|
8
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
11
|
const TextField = (props) => {
|
|
10
12
|
const {
|
|
@@ -42,9 +44,11 @@ const TextField = (props) => {
|
|
|
42
44
|
}
|
|
43
45
|
);
|
|
44
46
|
}
|
|
47
|
+
const classRoot = getComponentSlotRoot(TEXT_FIELD_KEY_COMPONENT);
|
|
45
48
|
return /* @__PURE__ */ jsx(
|
|
46
49
|
TextFieldRootStyled,
|
|
47
50
|
{
|
|
51
|
+
className: clsx(classRoot, className),
|
|
48
52
|
ownerState: { ...ownerState },
|
|
49
53
|
...getPropDataTestId(TEXT_FIELD_KEY_COMPONENT, TextFieldSlots.root, dataTestId),
|
|
50
54
|
autoComplete,
|
|
@@ -10,7 +10,7 @@ export type TypographyColors = 'text.primary' | 'text.secondary' | 'text.disable
|
|
|
10
10
|
/**
|
|
11
11
|
* Define la propiedades del componente, se une a las capacidades originales de MUI Typography.
|
|
12
12
|
*/
|
|
13
|
-
export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'variant' | 'children'> {
|
|
13
|
+
export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'variant' | 'children' | 'size'> {
|
|
14
14
|
/**
|
|
15
15
|
* Anchura del elemento Skeleton.
|
|
16
16
|
*/
|
|
@@ -39,6 +39,8 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
39
39
|
* Nombre identificador del componente, es útil para realizar pruebas del componente.
|
|
40
40
|
*/
|
|
41
41
|
dataTestid?: string;
|
|
42
|
+
/** Sirve para vincular un elemento de etiqueta con un elemento de formulario, como un campo de entrada, lo que permite que al hacer clic en el texto de la etiqueta, se active el campo correspondiente*/
|
|
43
|
+
htmlFor?: string | undefined;
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
46
|
* Define valores de estado necesarios para estilar el componente.
|
|
@@ -6,5 +6,6 @@ import { FormFocusHookReturnType } from './types';
|
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
|
+
* @deprecated no se debe usar, esto era para una metodologia donde en js se manejaba el estado de los componentes
|
|
9
10
|
*/
|
|
10
11
|
export declare const useFormFocus: <ElmentType extends HTMLElement>() => FormFocusHookReturnType<ElmentType>;
|
package/index.js
CHANGED
|
@@ -37,21 +37,20 @@ import { R as R7 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
|
37
37
|
import { g as g6 } from "./components/Period/dictionary.js";
|
|
38
38
|
import { R as R8 } from "./components/hook-form/RHFRadioGroup/RHFRadioGroup.js";
|
|
39
39
|
import { R as R9 } from "./components/hook-form/RHFColorPicker/RFHColorPicker.js";
|
|
40
|
-
import { g as g7 } from "./components/hook-form/RHFColorPicker/dictionary.js";
|
|
41
40
|
import { R as R10 } from "./components/hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
42
41
|
import { R as R11 } from "./components/hook-form/RHFTextField/RHFTextField.js";
|
|
43
42
|
import { R as R12 } from "./components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js";
|
|
44
43
|
import { R as R13 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
45
44
|
import { B } from "./components/formatters/BooleanFormatter/BooleanFormatter.js";
|
|
46
45
|
import { D as D2, u as u4 } from "./components/formatters/DateFormatter/index.js";
|
|
47
|
-
import { U, g as
|
|
48
|
-
import { P as P2, g as
|
|
49
|
-
import { C, g as
|
|
46
|
+
import { U, g as g7 } from "./components/formatters/UncertaintyFormatter/index.js";
|
|
47
|
+
import { P as P2, g as g8 } from "./components/formatters/PointsFormatter/index.js";
|
|
48
|
+
import { C, g as g9 } from "./components/formatters/ConcatenatedFormatter/index.js";
|
|
50
49
|
import { P as P3, u as u5 } from "./components/formatters/PeriodFormatter/index.js";
|
|
51
|
-
import { P as P4, g as
|
|
52
|
-
import { g as
|
|
50
|
+
import { P as P4, g as g10 } from "./components/formatters/PriceFormatter/index.js";
|
|
51
|
+
import { g as g11 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
53
52
|
import { D as D3 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
54
|
-
import { g as
|
|
53
|
+
import { g as g12 } from "./components/formatters/dictionary.js";
|
|
55
54
|
import { C as C2 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/index.js";
|
|
56
55
|
import { C as C3 } from "./components/DataGrid/formatters/ColumnPointsFormatter/index.js";
|
|
57
56
|
import { C as C4 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/index.js";
|
|
@@ -70,7 +69,7 @@ import { A as A7 } from "./components/CommonActions/components/ActionCancel/Acti
|
|
|
70
69
|
import { A as A8 } from "./components/CommonActions/components/ActionIntro/ActionIntro.js";
|
|
71
70
|
import { A as A9 } from "./components/CommonActions/components/ActionFormCancel/index.js";
|
|
72
71
|
import { A as A10 } from "./components/CommonActions/components/ActionFormIntro/index.js";
|
|
73
|
-
import { d, g as
|
|
72
|
+
import { d, g as g13 } from "./components/CommonActions/dictionary.js";
|
|
74
73
|
import { D as D5 } from "./components/DragResizeWindow/DragResizeWindow.js";
|
|
75
74
|
import { d as d2 } from "./components/DragResizeWindow/classes/index.js";
|
|
76
75
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
@@ -86,14 +85,14 @@ import { L as L6 } from "./components/Loadable/index.js";
|
|
|
86
85
|
import { M as M3 } from "./components/maps/components/MapGpsTools/MapGpsTools.js";
|
|
87
86
|
import { u as u6 } from "./components/maps/components/MapGpsTools/hooks/useMapGpsToolsStore/index.js";
|
|
88
87
|
import { a as a6 } from "./components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/index.js";
|
|
89
|
-
import { g as
|
|
88
|
+
import { g as g14 } from "./components/maps/components/MapGpsTools/dictionary.js";
|
|
90
89
|
import { M as M4 } from "./components/maps/components/Map/Map.js";
|
|
91
90
|
import { M as M5, a as a7 } from "./components/maps/components/Map/contexts/MapContext/MapContext.js";
|
|
92
91
|
import { u as u7 } from "./components/maps/components/Map/hooks/useMapStore/index.js";
|
|
93
|
-
import { g as
|
|
92
|
+
import { g as g15 } from "./components/maps/components/Map/dictionary.js";
|
|
94
93
|
import { M as M6 } from "./components/maps/components/Map/featureRenders/MarkerFeatureRender/index.js";
|
|
95
94
|
import { C as C11 } from "./components/maps/components/Map/featureRenders/CommonFeatureRender/index.js";
|
|
96
|
-
import { g as
|
|
95
|
+
import { g as g16 } from "./components/maps/components/Map/popups/MapPopupMyGps/dictionary.js";
|
|
97
96
|
import { M as M7 } from "./components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.js";
|
|
98
97
|
import { P as P6 } from "./components/maps/components/Map/pluginLayers/PolylineWithArrows/index.js";
|
|
99
98
|
import { c as c4 } from "./components/maps/utils/courseToCartesianAngle.js";
|
|
@@ -103,8 +102,8 @@ import { i as i3 } from "./components/maps/utils/isFeatureCollection.js";
|
|
|
103
102
|
import { i as i4 } from "./components/maps/utils/isFeatureCollectionDraft.js";
|
|
104
103
|
import { i as i5 } from "./components/maps/utils/isGeometry.js";
|
|
105
104
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
106
|
-
import { g as
|
|
107
|
-
import { d as d4, g as
|
|
105
|
+
import { g as g17 } from "./components/modal/dictionary.js";
|
|
106
|
+
import { d as d4, g as g18 } from "./components/ModalDialog/dictionary.js";
|
|
108
107
|
import { W as W2 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
109
108
|
import { w as w2 } from "./components/WindowBase/WindowBase.styles.js";
|
|
110
109
|
import { W as W3 } from "./components/WindowBase/WindowBase.js";
|
|
@@ -114,13 +113,13 @@ import { W as W5 } from "./components/WindowBase/slots/WindowBaseEnum.js";
|
|
|
114
113
|
import { C as C12, a as a8, H as H2, I as I5, d as d5, M as M9, b as b3, P as P7, S as S2, c as c6, T as T2, W as W6 } from "./components/WindowBase/slots/WindowBaseSlots.js";
|
|
115
114
|
import { H as H3 } from "./components/WindowBase/subcomponents/Header/HeaderWindowBase.js";
|
|
116
115
|
import { L as L7 } from "./components/LoadingError/LoadingError.js";
|
|
117
|
-
import { g as
|
|
116
|
+
import { g as g19 } from "./components/LoadingError/dictionary.js";
|
|
118
117
|
import { M as M10 } from "./components/MFLoader/MFLoader.js";
|
|
119
|
-
import { g as
|
|
118
|
+
import { g as g20 } from "./components/MFLoader/dictionary.js";
|
|
120
119
|
import { N as N3 } from "./components/NoItemSelected/index.js";
|
|
121
|
-
import { d as d6, g as
|
|
120
|
+
import { d as d6, g as g21 } from "./components/NoItemSelected/dictionary.js";
|
|
122
121
|
import { O } from "./components/ObjectLogs/index.js";
|
|
123
|
-
import { d as d7, g as
|
|
122
|
+
import { d as d7, g as g22 } from "./components/ObjectLogs/dictionary.js";
|
|
124
123
|
import { P as P8 } from "./components/PaperForm/PaperForm.js";
|
|
125
124
|
import { P as P9 } from "./components/PDFViewer/PDFViewer.js";
|
|
126
125
|
import { P as P10 } from "./components/Period/Period.js";
|
|
@@ -136,9 +135,9 @@ import { T as T3 } from "./components/ToastContainer/ToastContainer.js";
|
|
|
136
135
|
import { T as T4 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
137
136
|
import { S as S5 } from "./components/SideBar/SideBar.js";
|
|
138
137
|
import { A as A11 } from "./components/AppBar/AppBar.js";
|
|
139
|
-
import { g as
|
|
138
|
+
import { g as g23 } from "./components/AppBar/dictionary.js";
|
|
140
139
|
import { A as A12 } from "./components/AccountPopover/AccountPopover.js";
|
|
141
|
-
import { g as
|
|
140
|
+
import { g as g24 } from "./components/AccountPopover/dictionary.js";
|
|
142
141
|
import { u as u8 } from "./components/popups/components/PopupsProvider/hooks/usePopupsStore/index.js";
|
|
143
142
|
import { a as a11, P as P12 } from "./components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
144
143
|
import { P as P13 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
@@ -158,7 +157,7 @@ import { L as L8 } from "./components/mui_extended/LinearProgress/index.js";
|
|
|
158
157
|
import { L as L9 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
159
158
|
import { L as L10 } from "./components/mui_extended/LoadingButton/LoadingButton.js";
|
|
160
159
|
import { P as P14 } from "./components/mui_extended/Pager/index.js";
|
|
161
|
-
import { g as
|
|
160
|
+
import { g as g25 } from "./components/mui_extended/Pager/dicctionary.js";
|
|
162
161
|
import { T as T6 } from "./components/mui_extended/Tab/Tab.js";
|
|
163
162
|
import { T as T7 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
164
163
|
import { I as I6 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
@@ -184,7 +183,7 @@ import { T as T18 } from "./components/mui_extended/ToggleIconButton/slots/Toggl
|
|
|
184
183
|
import { T as T19 } from "./components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.js";
|
|
185
184
|
import { a as a13, D as D6, M as M13 } from "./components/areas/contexts/DynamicMFParmsContext/index.js";
|
|
186
185
|
import { F, R as R17, u as u9 } from "./components/hook-form/RHFormContext/index.js";
|
|
187
|
-
import { g as
|
|
186
|
+
import { g as g26 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
188
187
|
import { u as u10 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
189
188
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
190
189
|
import { a as a14, M as M14 } from "./contexts/ModalContext/index.js";
|
|
@@ -192,7 +191,7 @@ import { a as a15, R as R18 } from "./contexts/RealTimeContext/RealTimeContext.j
|
|
|
192
191
|
import { u as u11 } from "./hooks/useFormAddEdit/index.js";
|
|
193
192
|
import { u as u12 } from "./hooks/useModal/index.js";
|
|
194
193
|
import { u as u13 } from "./hooks/useTab/index.js";
|
|
195
|
-
import { g as
|
|
194
|
+
import { g as g27 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
196
195
|
import { u as u14 } from "./hooks/useFormFocus/index.js";
|
|
197
196
|
import { u as u15 } from "./hooks/useInterval/index.js";
|
|
198
197
|
import { u as u16 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
@@ -376,38 +375,37 @@ export {
|
|
|
376
375
|
d6 as defaultNoItemSelectedDictionary,
|
|
377
376
|
d7 as defaultObjectLogDictionary,
|
|
378
377
|
d2 as draggableWindowClasses,
|
|
379
|
-
|
|
380
|
-
|
|
378
|
+
g24 as getAccountPopoverDictionary,
|
|
379
|
+
g23 as getAppBarDictionary,
|
|
381
380
|
b2 as getAreasComponentsDictionary,
|
|
382
381
|
g3 as getAreasDictionary,
|
|
383
|
-
|
|
382
|
+
g13 as getCommonActionsDictionary,
|
|
384
383
|
g as getDataGridComponentsDictionary,
|
|
385
384
|
g2 as getDataGridRowsFromSet,
|
|
386
|
-
|
|
385
|
+
g11 as getDistanceToNowFormatterComponentsDictionary,
|
|
387
386
|
a5 as getDynamicFilterComponentsDictionary,
|
|
388
|
-
|
|
389
|
-
|
|
387
|
+
g26 as getFormComponentsDictionary,
|
|
388
|
+
g9 as getFormatConcatenated,
|
|
390
389
|
u4 as getFormatDate,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
390
|
+
g8 as getFormatPoints,
|
|
391
|
+
g10 as getFormatPrice,
|
|
392
|
+
g12 as getFormattersComponentsDictionary,
|
|
393
|
+
g19 as getLoadingErrorComponentsDictionary,
|
|
394
|
+
g20 as getMFLoaderComponentsDictionary,
|
|
395
|
+
g15 as getMapComponentsDictionary,
|
|
396
|
+
g14 as getMapGpsToolsComponentsDictionary,
|
|
397
|
+
g16 as getMapPopupMyGpsComponentsDictionary,
|
|
399
398
|
a9 as getMenuActionsComponentsDictionary,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
399
|
+
g18 as getModalDialogComponentsDictionary,
|
|
400
|
+
g17 as getModalDictionary,
|
|
401
|
+
g21 as getNoItemSelectedComponentsDictionary,
|
|
402
|
+
g22 as getObjectLogsComponentsDictionary,
|
|
403
|
+
g25 as getPagerComponentsDictionary,
|
|
405
404
|
g6 as getPeriodComponetsDictionary,
|
|
406
405
|
g5 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
407
406
|
g4 as getRHFAutocompleteComponentsDictionary,
|
|
408
|
-
g7 as
|
|
409
|
-
|
|
410
|
-
g28 as getformAddEditDictionary,
|
|
407
|
+
g7 as getUncertaintyFormat,
|
|
408
|
+
g27 as getformAddEditDictionary,
|
|
411
409
|
i as isEqualLayout,
|
|
412
410
|
k as isEqualLayouts,
|
|
413
411
|
i2 as isFeature,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LRHFColorPicker";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RHFColorPickerClassesType } from './types';
|
|
2
|
-
import { OwnerState } from '../types';
|
|
3
|
-
export declare const colorPickerClasses: RHFColorPickerClassesType;
|
|
4
|
-
export declare function getRHFColorPickerUtilityClass(slot: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* TODO: Documentar
|
|
7
|
-
*/
|
|
8
|
-
export declare const useUtilityClasses: (owmerState: OwnerState) => {
|
|
9
|
-
skeleton: string;
|
|
10
|
-
root: string;
|
|
11
|
-
popoverRoot: string;
|
|
12
|
-
containerFieldColor: string;
|
|
13
|
-
containerPicker: string;
|
|
14
|
-
fieldColor: string;
|
|
15
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { c as componentName } from "./constants.js";
|
|
4
|
-
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
5
|
-
/* elements */
|
|
6
|
-
"root",
|
|
7
|
-
"popoverRoot",
|
|
8
|
-
"containerFieldColor",
|
|
9
|
-
"fieldColor",
|
|
10
|
-
"containerPicker",
|
|
11
|
-
"skeleton",
|
|
12
|
-
/* states or variants of elements */
|
|
13
|
-
"sizeSmall",
|
|
14
|
-
"sizeMedium",
|
|
15
|
-
"isFocus",
|
|
16
|
-
"isTabSelected"
|
|
17
|
-
]);
|
|
18
|
-
function getRHFColorPickerUtilityClass(slot) {
|
|
19
|
-
return generateUtilityClass(componentName, slot);
|
|
20
|
-
}
|
|
21
|
-
const useUtilityClasses = (owmerState) => {
|
|
22
|
-
const slots = {
|
|
23
|
-
root: [
|
|
24
|
-
"root",
|
|
25
|
-
owmerState.isFocus && "isFocus",
|
|
26
|
-
owmerState.isTabSelected && "isTabSelected",
|
|
27
|
-
owmerState.size === "small" && "sizeSmall",
|
|
28
|
-
owmerState.size === "medium" && "sizeMedium"
|
|
29
|
-
],
|
|
30
|
-
popoverRoot: ["popoverRoot"],
|
|
31
|
-
containerFieldColor: ["containerFieldColor"],
|
|
32
|
-
fieldColor: ["boxColor"],
|
|
33
|
-
containerPicker: ["containerPicker"],
|
|
34
|
-
skeleton: ["skeleton"]
|
|
35
|
-
};
|
|
36
|
-
const composedClasses = unstable_composeClasses(slots, getRHFColorPickerUtilityClass, {});
|
|
37
|
-
return {
|
|
38
|
-
...composedClasses
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
colorPickerClasses as c,
|
|
43
|
-
useUtilityClasses as u
|
|
44
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useUtilityClasses } from '.';
|
|
2
|
-
export interface RHFColorPickerClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
popoverRoot: string;
|
|
5
|
-
containerFieldColor: string;
|
|
6
|
-
fieldColor: string;
|
|
7
|
-
containerPicker: string;
|
|
8
|
-
skeleton: string;
|
|
9
|
-
sizeSmall: string;
|
|
10
|
-
sizeMedium: string;
|
|
11
|
-
isFocus: string;
|
|
12
|
-
isTabSelected: string;
|
|
13
|
-
}
|
|
14
|
-
export type RHFColorPickerClassesKey = keyof RHFColorPickerClassesType;
|
|
15
|
-
export type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getRHFColorPickerComponentsDictionary(): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RHFColorPickerRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
3
|
-
import { c as colorPickerClasses } from "../../classes/index.js";
|
|
4
|
-
const RHFColorPickerSkeleton = (props) => {
|
|
5
|
-
const { label } = props;
|
|
6
|
-
return /* @__PURE__ */ jsxs("div", { className: colorPickerClasses.skeleton, children: [
|
|
7
|
-
label && /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "30%", height: "14px" }),
|
|
8
|
-
/* @__PURE__ */ jsx(
|
|
9
|
-
Skeleton,
|
|
10
|
-
{
|
|
11
|
-
className: colorPickerClasses.skeleton,
|
|
12
|
-
variant: "rectangular",
|
|
13
|
-
width: 20,
|
|
14
|
-
height: 20
|
|
15
|
-
}
|
|
16
|
-
)
|
|
17
|
-
] });
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
RHFColorPickerSkeleton as R
|
|
21
|
-
};
|