@m4l/components 9.3.6 → 9.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/@types/types.d.ts +16 -0
  2. package/components/DataGrid/Datagrid.styles.js +1 -1
  3. package/components/DragResizeWindowRND/constants.d.ts +44 -0
  4. package/components/DragResizeWindowRND/constants.js +46 -1
  5. package/components/DragResizeWindowRND/index.d.ts +1 -0
  6. package/components/DynamicFilter/DynamicFilter.styles.js +8 -4
  7. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +3 -0
  8. package/components/DynamicSort/DynamicSort.styles.js +8 -4
  9. package/components/ImageText/ImageText.d.ts +7 -0
  10. package/components/ImageText/ImageText.js +62 -0
  11. package/components/ImageText/ImageText.styles.d.ts +2 -0
  12. package/components/ImageText/ImageText.styles.js +79 -0
  13. package/components/ImageText/constants.d.ts +16 -0
  14. package/components/ImageText/constants.js +10 -0
  15. package/components/ImageText/index.d.ts +1 -0
  16. package/components/ImageText/index.js +1 -0
  17. package/components/ImageText/slots/ImageTextEnum.d.ts +8 -0
  18. package/components/ImageText/slots/ImageTextEnum.js +12 -0
  19. package/components/ImageText/slots/ImageTextSlots.d.ts +18 -0
  20. package/components/ImageText/slots/ImageTextSlots.js +38 -0
  21. package/components/ImageText/types.d.ts +40 -0
  22. package/components/NoItemPrivileges/NoItemPrivileges.d.ts +7 -0
  23. package/components/NoItemPrivileges/NoItemPrivileges.js +33 -0
  24. package/components/NoItemPrivileges/NoItemPrivilegesStyles.d.ts +5 -0
  25. package/components/NoItemPrivileges/NoItemPrivilegesStyles.js +6 -0
  26. package/components/NoItemPrivileges/constants.d.ts +3 -0
  27. package/components/NoItemPrivileges/constants.js +10 -0
  28. package/components/NoItemPrivileges/dictionary.d.ts +5 -0
  29. package/components/NoItemPrivileges/dictionary.js +12 -0
  30. package/components/NoItemPrivileges/index.d.ts +3 -0
  31. package/components/NoItemPrivileges/index.js +1 -0
  32. package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +3 -0
  33. package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +7 -0
  34. package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +3 -0
  35. package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +12 -0
  36. package/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
  37. package/components/NoItemPrivileges/types.d.ts +36 -0
  38. package/components/NoItemSelected/NoItemSelected.js +16 -59
  39. package/components/NoItemSelected/NoItemSelected.styles.js +1 -100
  40. package/components/NoItemSelected/constant.d.ts +2 -2
  41. package/components/NoItemSelected/constant.js +4 -4
  42. package/components/NoItemSelected/dictionary.d.ts +0 -2
  43. package/components/NoItemSelected/dictionary.js +4 -3
  44. package/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +1 -7
  45. package/components/NoItemSelected/slots/NoItemSelectedEnum.js +0 -6
  46. package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +1 -19
  47. package/components/NoItemSelected/slots/NoItemSelectedSlots.js +5 -37
  48. package/components/NoItemSelected/test/NoItemSelected.test.d.ts +1 -0
  49. package/components/NoItemSelected/types.d.ts +5 -6
  50. package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +5 -0
  51. package/components/ObjectLogs/helpers/Fields/filterFields.js +81 -0
  52. package/components/ObjectLogs/hooks/useDetailFormatter.js +2 -2
  53. package/components/ObjectLogs/hooks/useFilterAndSort.d.ts +15 -0
  54. package/components/ObjectLogs/hooks/useFilterAndSort.js +52 -0
  55. package/components/ObjectLogs/slots/ObjectLogsSlots.js +1 -2
  56. package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +39 -88
  57. package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +30 -104
  58. package/components/PropertyValue/PropertyValue.styles.js +1 -1
  59. package/components/SideBar/subcomponents/ContentComponent/style.js +3 -0
  60. package/components/SideBar/subcomponents/TreeGroupItems/styles.js +1 -1
  61. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
  62. package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -0
  63. package/components/hook-form/RHFTextField/RHFTextField.js +5 -3
  64. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  65. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +63 -55
  66. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  67. package/components/index.d.ts +2 -0
  68. package/components/mui_extended/Autocomplete/Autocomplete.js +2 -1
  69. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.d.ts +1 -0
  70. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +4 -2
  71. package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +1 -1
  72. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  73. package/components/mui_extended/Tab/Tab.styles.js +7 -7
  74. package/components/mui_extended/TabContent/TabContent.styles.js +1 -1
  75. package/components/mui_extended/TextField/TextField.js +13 -2
  76. package/components/mui_extended/TextField/TextField.styles.js +40 -3
  77. package/components/mui_extended/TextField/constants.d.ts +4 -0
  78. package/components/mui_extended/TextField/index.d.ts +1 -0
  79. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +5 -1
  80. package/components/mui_extended/TextField/slots/TextFieldEnum.js +4 -0
  81. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +18 -0
  82. package/components/mui_extended/TextField/slots/TextFieldSlots.js +22 -2
  83. package/components/mui_extended/TextField/types.d.ts +9 -0
  84. package/hooks/index.d.ts +1 -0
  85. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
  86. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +5 -3
  87. package/hooks/useIsVisible/constants.d.ts +1 -0
  88. package/hooks/useIsVisible/constants.js +4 -0
  89. package/hooks/useIsVisible/index.d.ts +1 -0
  90. package/hooks/useIsVisible/index.js +1 -0
  91. package/hooks/useIsVisible/useIsVisible.d.ts +28 -0
  92. package/hooks/useIsVisible/useIsVisible.js +25 -0
  93. package/index.js +40 -30
  94. package/package.json +1 -1
  95. package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +12 -0
  96. package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
  97. package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +7 -0
  98. package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +4 -0
  99. package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +19 -0
  100. package/utils/getLimitCharacters/getLimitCharacters.d.ts +7 -0
  101. package/utils/getLimitCharacters/getLimitCharacters.js +11 -0
  102. package/utils/getLimitCharacters/index.d.ts +1 -0
  103. package/utils/getLimitCharacters/index.js +1 -0
  104. package/utils/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
  105. package/utils/getLimitCharacters/types.d.ts +11 -0
@@ -0,0 +1,52 @@
1
+ import { useCallback } from "react";
2
+ import { useEnvironment } from "@m4l/core";
3
+ import { f as filterFieldsGenerator } from "../helpers/Fields/filterFields.js";
4
+ import { g as getRawFiltersForNetwork } from "../../DynamicFilter/helpers/getRawFiltersForNetwork.js";
5
+ import { u as useDynamicFilterAndSort } from "../../../hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
6
+ function useFilterAndSort(props) {
7
+ const { setBackendQueryParams, Refresh, otherApp = false, resourceTypeId, resourceSerialId } = props;
8
+ const { host_static_assets, environment_assets } = useEnvironment();
9
+ const onChangeFilterSort = useCallback((params) => {
10
+ const fixedFields = [
11
+ {
12
+ n: "resourceTypeId",
13
+ o: "c",
14
+ o1: resourceTypeId,
15
+ ft: "string"
16
+ },
17
+ {
18
+ n: "resourceSerialId",
19
+ o: "c",
20
+ o1: resourceSerialId,
21
+ ft: "string"
22
+ }
23
+ ];
24
+ const allFields = [...fixedFields, ...params.eventFilters?.rawFilters || []];
25
+ if (otherApp) {
26
+ setBackendQueryParams({
27
+ f: getRawFiltersForNetwork(allFields, "snakeCase")
28
+ });
29
+ } else {
30
+ setBackendQueryParams((prevParams) => ({
31
+ ...prevParams,
32
+ f: getRawFiltersForNetwork(prevParams.eventFilters?.rawFilters || [], "snakeCase")
33
+ }));
34
+ }
35
+ Refresh();
36
+ }, [Refresh, setBackendQueryParams, otherApp, resourceTypeId, resourceSerialId]);
37
+ const { leftActions, visibleCustomHeader, customHeaderComponent } = useDynamicFilterAndSort({
38
+ onChangeFilterSort,
39
+ fields: filterFieldsGenerator(`${host_static_assets}/${environment_assets}`, otherApp),
40
+ withAllField: true,
41
+ visibleRefresh: true,
42
+ filterSortAutomatic: false
43
+ });
44
+ return {
45
+ leftActions,
46
+ visibleCustomHeader,
47
+ customHeaderComponent
48
+ };
49
+ }
50
+ export {
51
+ useFilterAndSort as u
52
+ };
@@ -13,7 +13,7 @@ const ContainerWrapperStyled = styled("div", {
13
13
  name: OBJECT_LOGS_KEY_COMPONENT,
14
14
  slot: ObjectLogsSlots.root
15
15
  })(objectLogsStyles?.root);
16
- const ActionsWrapperStyled = styled("div", {
16
+ styled("div", {
17
17
  name: OBJECT_LOGS_KEY_COMPONENT,
18
18
  slot: ObjectLogsSlots.actionsWrapperStyled
19
19
  })(objectLogsStyles?.actionsWrapperStyled);
@@ -54,7 +54,6 @@ styled(ReactJson, {
54
54
  slot: ObjectLogsSlots.reactJsonSlot
55
55
  })(objectLogsStyles?.reactJsonSlot);
56
56
  export {
57
- ActionsWrapperStyled as A,
58
57
  ContainerWrapperStyled as C,
59
58
  DetailDialogComponent as D,
60
59
  GridWrapperStyled as G,
@@ -1,20 +1,16 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
4
- import { useEnvironment } from "@m4l/core";
5
- import { D as DynamicFilter } from "../../../DynamicFilter/DynamicFilter.js";
6
4
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
7
- import { C as ContainerWrapperStyled, A as ActionsWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
8
- import { D as DICTIONARY } from "../../dictionary.js";
5
+ import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
9
6
  import { usePaginate } from "@m4l/graphics";
10
7
  import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
11
8
  import { a as OBJECT_LOGS_M4L_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
12
9
  import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
13
- import { endOfDay, startOfMonth } from "date-fns";
10
+ import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
14
11
  import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
15
12
  function ObjectLogsByM4L(props) {
16
13
  const { resourceId, objectId, dataTestId = "" } = props;
17
- const { host_static_assets, environment_assets } = useEnvironment();
18
14
  const [backendQueryParams, setBackendQueryParams] = useState(() => {
19
15
  return { resource_id: resourceId, object_id: objectId };
20
16
  });
@@ -31,92 +27,47 @@ function ObjectLogsByM4L(props) {
31
27
  clearRows();
32
28
  setBackendQueryParams({ resource_id: resourceId, object_id: objectId });
33
29
  }, [resourceId, objectId]);
34
- const onChangeFilter = (_initFilters, rawFilters) => {
35
- setBackendQueryParams((oldParms) => ({ ...oldParms, f: rawFilters }));
36
- Refresh();
37
- };
38
- return /* @__PURE__ */ jsxs(
30
+ const { leftActions, visibleCustomHeader, customHeaderComponent } = useFilterAndSort({ setBackendQueryParams, Refresh, otherApp: false });
31
+ return /* @__PURE__ */ jsx(
39
32
  ContainerWrapperStyled,
40
33
  {
41
34
  ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: `m4ldatagrid-${dataTestId}` } : {},
42
35
  ...getPropDataTestId(OBJECT_LOGS_KEY_COMPONENT, ObjectLogsSlots.root, dataTestId),
43
- children: [
44
- /* @__PURE__ */ jsx(ActionsWrapperStyled, { children: /* @__PURE__ */ jsx(
45
- DynamicFilter,
46
- {
47
- withAllField: true,
48
- onChangeFilters: onChangeFilter,
49
- automatic: false,
50
- fields: [
51
- {
52
- name: "user_logs.created_at",
53
- dictionaryId: DICTIONARY.LABEL_CREATED_AT,
54
- type: "datetime",
55
- multiple: false,
56
- presence: "fixed",
57
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`,
58
- defaultOperand1: startOfMonth(/* @__PURE__ */ new Date()),
59
- defaultOperand2: endOfDay(/* @__PURE__ */ new Date())
60
- },
61
- {
62
- name: "users.email",
63
- dictionaryId: DICTIONARY.LABEL_USER,
64
- type: "string",
65
- multiple: true,
66
- presence: "optional",
67
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`
68
- },
69
- {
70
- name: "user_logs.log_preview",
71
- dictionaryId: DICTIONARY.LABEL_LOG_PREVIEW,
72
- type: "string",
73
- multiple: true,
74
- presence: "optional",
75
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_preview.svg`
76
- },
77
- {
78
- name: "user_logs.log_detail",
79
- dictionaryId: DICTIONARY.LABEL_LOG_DETAIL,
80
- type: "string",
81
- multiple: true,
82
- presence: "optional",
83
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_detail.svg`
84
- }
85
- ],
86
- initialAppliedFilters: []
87
- }
88
- ) }),
89
- /* @__PURE__ */ jsx(
90
- GridWrapperStyled,
91
- {
92
- children: /* @__PURE__ */ jsx(
93
- DataGrid,
94
- {
95
- id: "users_logs_list",
96
- dataTestId,
97
- columns,
98
- rows,
99
- rowKeyGetter: (row) => row.id,
100
- withActions: true,
101
- actionsProps: {
102
- withPager: true,
103
- withLocalFilters: true,
104
- pagerOptions: {
105
- records: rows.length,
106
- totalRecords: pagerState.totalRecords,
107
- rowsPerPageOptions: [1, 2, 3, 4, 5, 10, 25],
108
- page: pagerState.page,
109
- rowsPerPage: pagerState.rowsPerPage,
110
- onPageChange,
111
- onRowsPerPageChange
112
- }
36
+ role: "grid",
37
+ "aria-label": "object-logs",
38
+ children: /* @__PURE__ */ jsx(
39
+ GridWrapperStyled,
40
+ {
41
+ children: /* @__PURE__ */ jsx(
42
+ DataGrid,
43
+ {
44
+ id: "users_logs_list",
45
+ dataTestId,
46
+ columns,
47
+ rows,
48
+ rowKeyGetter: (row) => row.id,
49
+ visibleCustomHeader,
50
+ customHeader: customHeaderComponent,
51
+ withActions: true,
52
+ actionsProps: {
53
+ leftActions,
54
+ withPager: true,
55
+ withLocalFilters: true,
56
+ pagerOptions: {
57
+ records: rows.length,
58
+ totalRecords: pagerState.totalRecords,
59
+ rowsPerPageOptions: [1, 2, 3, 4, 5, 10, 25],
60
+ page: pagerState.page,
61
+ rowsPerPage: pagerState.rowsPerPage,
62
+ onPageChange,
63
+ onRowsPerPageChange
113
64
  }
114
- },
115
- "users_list_logs"
116
- )
117
- }
118
- )
119
- ]
65
+ }
66
+ },
67
+ "users_list_logs"
68
+ )
69
+ }
70
+ )
120
71
  }
121
72
  );
122
73
  }
@@ -1,22 +1,16 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
- import { endOfDay, startOfDay } from "date-fns";
4
3
  import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
5
- import { useEnvironment } from "@m4l/core";
6
- import { D as DynamicFilter } from "../../../DynamicFilter/DynamicFilter.js";
7
4
  import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
8
- import { C as ContainerWrapperStyled, A as ActionsWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
9
- import { D as DICTIONARY } from "../../dictionary.js";
5
+ import { C as ContainerWrapperStyled, G as GridWrapperStyled } from "../../slots/ObjectLogsSlots.js";
10
6
  import { useRows } from "@m4l/graphics";
11
7
  import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
12
8
  import { b as OBJECT_LOGS_OTHERS_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
13
9
  import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
14
- import { g as getRawFiltersForNetwork } from "../../../DynamicFilter/helpers/getRawFiltersForNetwork.js";
15
- import { g as getRawSortsForNetwork } from "../../../DynamicSort/helpers/getRawSortsForNetwork.js";
10
+ import { u as useFilterAndSort } from "../../hooks/useFilterAndSort.js";
16
11
  import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
17
12
  function ObjectLogsByOthers(props) {
18
13
  const { dataTestId = "", resourceSerialId, resourceTypeId } = props;
19
- const { host_static_assets, environment_assets } = useEnvironment();
20
14
  const [backendQueryParams, setBackendQueryParams] = useState({});
21
15
  const columns = useObjectLogsColumns("other");
22
16
  const { rows, clearRows, refresh } = useRows({
@@ -30,106 +24,38 @@ function ObjectLogsByOthers(props) {
30
24
  useEffect(() => {
31
25
  clearRows();
32
26
  }, [resourceSerialId, resourceTypeId]);
33
- const onChangeFilter = (_initFilters, rawFilters) => {
34
- const fixedFields = [
35
- {
36
- n: "resourceTypeId",
37
- o: "c",
38
- o1: resourceTypeId,
39
- ft: "string"
40
- },
41
- {
42
- n: "resourceSerialId",
43
- o: "c",
44
- o1: resourceSerialId,
45
- ft: "string"
46
- }
47
- ];
48
- const sortFields = [
49
- // {
50
- // n: 'created_at',
51
- // o: 'desc',
52
- // ft: 'string',
53
- // } ,
54
- ];
55
- const allFields = [...fixedFields, ...rawFilters];
56
- const parms = {
57
- f: getRawFiltersForNetwork(allFields, "snakeCase"),
58
- s: getRawSortsForNetwork(sortFields, "snakeCase")
59
- };
60
- setBackendQueryParams(parms);
61
- refresh();
62
- };
63
- return /* @__PURE__ */ jsxs(
27
+ const { leftActions, visibleCustomHeader, customHeaderComponent } = useFilterAndSort({ setBackendQueryParams, Refresh: refresh, otherApp: true, resourceTypeId, resourceSerialId });
28
+ return /* @__PURE__ */ jsx(
64
29
  ContainerWrapperStyled,
65
30
  {
66
31
  ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: `m4ldatagrid-${dataTestId}` } : {},
67
32
  ...getPropDataTestId(OBJECT_LOGS_KEY_COMPONENT, ObjectLogsSlots.root, dataTestId),
68
- children: [
69
- /* @__PURE__ */ jsx(ActionsWrapperStyled, { children: /* @__PURE__ */ jsx(
70
- DynamicFilter,
71
- {
72
- withAllField: true,
73
- onChangeFilters: onChangeFilter,
74
- automatic: false,
75
- fields: [
76
- {
77
- name: "createdAt",
78
- dictionaryId: DICTIONARY.LABEL_CREATED_AT,
79
- type: "datetime",
80
- multiple: false,
81
- presence: "initialized",
82
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`,
83
- defaultOperand1: startOfDay(/* @__PURE__ */ new Date()),
84
- defaultOperand2: endOfDay(/* @__PURE__ */ new Date())
85
- },
86
- {
87
- name: "userId",
88
- dictionaryId: DICTIONARY.LABEL_USER,
89
- type: "string",
90
- multiple: true,
91
- presence: "optional",
92
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`
93
- },
94
- {
95
- name: "logPreview",
96
- dictionaryId: DICTIONARY.LABEL_LOG_PREVIEW,
97
- type: "string",
98
- multiple: true,
99
- presence: "optional",
100
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_preview.svg`
101
- },
102
- {
103
- name: "logDetail",
104
- dictionaryId: DICTIONARY.LABEL_LOG_DETAIL,
105
- type: "string",
106
- multiple: true,
107
- presence: "optional",
108
- urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_detail.svg`
33
+ role: "grid",
34
+ "aria-label": "object-logs",
35
+ children: /* @__PURE__ */ jsx(
36
+ GridWrapperStyled,
37
+ {
38
+ children: /* @__PURE__ */ jsx(
39
+ DataGrid,
40
+ {
41
+ id: "users_logs_list",
42
+ dataTestId,
43
+ columns,
44
+ rows,
45
+ rowKeyGetter: (row) => row.id,
46
+ withActions: true,
47
+ visibleCustomHeader,
48
+ customHeader: customHeaderComponent,
49
+ actionsProps: {
50
+ leftActions,
51
+ withPager: false,
52
+ withLocalFilters: false
109
53
  }
110
- ],
111
- initialAppliedFilters: []
112
- }
113
- ) }),
114
- /* @__PURE__ */ jsx(
115
- GridWrapperStyled,
116
- {
117
- children: /* @__PURE__ */ jsx(
118
- DataGrid,
119
- {
120
- id: "users_logs_list",
121
- dataTestId,
122
- columns,
123
- rows,
124
- rowKeyGetter: (row) => row.id,
125
- withActions: true,
126
- actionsProps: {}
127
- },
128
- "users_list_logs"
129
- )
130
- }
131
- )
132
- ]
54
+ },
55
+ "users_list_logs"
56
+ )
57
+ }
58
+ )
133
59
  }
134
60
  );
135
61
  }
@@ -44,7 +44,7 @@ const propertyValueStyles = {
44
44
  containerType: "inline-size",
45
45
  display: "flex",
46
46
  flexDirection: ownerState?.isForm ? "column" : "row",
47
- justifyContent: ownerState?.isForm ? "space-between" : "left",
47
+ justifyContent: "flex-start",
48
48
  alignItems: "center",
49
49
  gap: theme.vars.size.baseSpacings["sp1"],
50
50
  width: ownerState?.semanticWidth ? "auto" : "200px",
@@ -142,6 +142,9 @@ const contentComponentStyles = {
142
142
  [`&.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE}.${CLASS_NAME_ITEM_IN_TREE_ACTIVE} > .M4LSideBar-wrapperMenuItem`]: {
143
143
  backgroundColor: theme.vars.palette.primary.opacity
144
144
  },
145
+ [`&.${CLASS_NAME_IS_ROOT}.${CLASS_NAME_MENU_ACTIVE} > .M4LSideBar-wrapperMenuItem`]: {
146
+ backgroundColor: theme.vars.palette.primary.opacity
147
+ },
145
148
  [`&.${CLASS_NAME_IS_ROOT} > .M4LSideBar-wrapperMenuItem`]: {
146
149
  paddingRight: "7px",
147
150
  paddingTop: theme.vars.size.baseSpacings.sp1,
@@ -116,7 +116,7 @@ const contentGroupStyles = {
116
116
  ...getSizeStyles(
117
117
  theme,
118
118
  ownerState?.size || "medium",
119
- "case",
119
+ "base",
120
120
  (sizeValue) => ({
121
121
  width: `${sizeValue}!important`,
122
122
  height: `${sizeValue}!important`,
@@ -46,7 +46,7 @@ function NodeMenuItem(props) {
46
46
  ),
47
47
  label: item.title,
48
48
  selected: item.active,
49
- startIcon: /* @__PURE__ */ jsx(AdornmentIcon, { icon: `${urlIconPrefix}${item.iconUrl}`, variant: isRoot && item.itemInTreeActive ? "root" : item.active ? "itemActive" : "normal" }),
49
+ startIcon: /* @__PURE__ */ jsx(AdornmentIcon, { icon: `${urlIconPrefix}${item.iconUrl}`, variant: isRoot && item.itemInTreeActive || isRoot && item.active ? "root" : item.active ? "itemActive" : "normal" }),
50
50
  endIcon: hasChildren ? /* @__PURE__ */ jsx(ArrowIcon, { openState: isOpen, active: item.active }) : null,
51
51
  onClick: () => handlerClick(),
52
52
  size: currentSize
@@ -50,6 +50,7 @@ function BooleanFormatter(props) {
50
50
  ownerState,
51
51
  className: clsx(getComponentSlotRoot(BOOLEAN_FORMATTER_KEY_COMPONENT), className),
52
52
  color: value ? "primary" : "default",
53
+ opacity: true,
53
54
  variant: "contained"
54
55
  }
55
56
  );
@@ -9,6 +9,7 @@ import clsx from "clsx";
9
9
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
10
  import { R as RHFTextFieldRootStyled, L as LabelStyled, T as TextFieldStyled, H as HelperErrorStyled } from "./slots/RHFTextFieldSlots.js";
11
11
  import { R as RHFTextFieldSlots } from "./slots/RHFTextFieldEnum.js";
12
+ import { g as getLimitCharacters } from "../../../utils/getLimitCharacters/getLimitCharacters.js";
12
13
  const RHFTextField = forwardRef((props, ref) => {
13
14
  const {
14
15
  name,
@@ -61,8 +62,9 @@ const RHFTextField = forwardRef((props, ref) => {
61
62
  control,
62
63
  render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
63
64
  const onInternalChange = (event) => {
64
- const newValue = event.target.value;
65
- onChange(newValue);
65
+ const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
66
+ const stringValue = String(finalValue || "");
67
+ onChange(stringValue);
66
68
  };
67
69
  return /* @__PURE__ */ jsxs(Fragment, { children: [
68
70
  label && /* @__PURE__ */ jsx(
@@ -88,7 +90,7 @@ const RHFTextField = forwardRef((props, ref) => {
88
90
  autoComplete,
89
91
  onChange: onInternalChange,
90
92
  variant,
91
- value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
93
+ value: String(value || ""),
92
94
  fullWidth: true,
93
95
  error: !!error,
94
96
  type,
@@ -4,7 +4,7 @@ export declare const RHFTextFieldRootStyled: import('@emotion/styled').StyledCom
4
4
  export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
7
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "dataTestId" | "autoComplete" | "maxLength" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
8
8
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
9
9
  }, {}, {}>;
10
10
  export declare const HelperErrorStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../HelperError').HelperErrorProps & import('react').RefAttributes<HTMLLabelElement>, keyof import('../../../HelperError').HelperErrorProps | keyof import('react').RefAttributes<HTMLLabelElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
@@ -6,6 +6,7 @@ import { useFormContext, Controller } from "react-hook-form";
6
6
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
7
7
  import { R as RHFTextFieldPasswordRoot, L as LabelStyled, T as TextFieldStyled, I as IconButtonStyled } from "./slots/RHFTextFieldPasswordSlots.js";
8
8
  import { H as HelperError } from "../../HelperError/HelperError.js";
9
+ import { g as getLimitCharacters } from "../../../utils/getLimitCharacters/getLimitCharacters.js";
9
10
  const RHFTextFieldPassword = (props) => {
10
11
  const {
11
12
  name,
@@ -27,62 +28,69 @@ const RHFTextFieldPassword = (props) => {
27
28
  {
28
29
  name,
29
30
  control,
30
- render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
31
- label && /* @__PURE__ */ jsx(
32
- LabelStyled,
33
- {
34
- ownerState: { error: !!error },
35
- size: adjustedSize,
36
- label,
37
- htmlFor: name,
38
- mandatory,
39
- mandatoryMessage,
40
- helperMessage
41
- }
42
- ),
43
- /* @__PURE__ */ jsx(
44
- TextFieldStyled,
45
- {
46
- ownerState: { error: !!error },
47
- name,
48
- id: name,
49
- type: showPassword ? "text" : "password",
50
- size,
51
- error: !!error,
52
- disabled,
53
- inputProps: {
54
- role: "textbox",
55
- "aria-label": name,
56
- disabled,
31
+ render: ({ field: { onChange, value, ref }, fieldState: { error } }) => {
32
+ const onInternalChange = (event) => {
33
+ const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
34
+ const stringValue = String(finalValue || "");
35
+ onChange(stringValue);
36
+ };
37
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
38
+ label && /* @__PURE__ */ jsx(
39
+ LabelStyled,
40
+ {
41
+ ownerState: { error: !!error },
42
+ size: adjustedSize,
43
+ label,
44
+ htmlFor: name,
45
+ mandatory,
46
+ mandatoryMessage,
47
+ helperMessage
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsx(
51
+ TextFieldStyled,
52
+ {
53
+ ownerState: { error: !!error },
57
54
  name,
58
- type: showPassword ? "text" : "password"
59
- },
60
- InputProps: {
61
- /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
62
- personalizado dentro del campo de texto*/
63
- endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
64
- IconButtonStyled,
65
- {
66
- ownerState: { error: !!error },
67
- onClick: () => setShowPassword(!showPassword),
68
- icon: showPassword ? `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view.svg` : `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view_off.svg`
69
- }
70
- ) })
71
- },
72
- onChange,
73
- value: value || "",
74
- inputRef: ref,
75
- ...other
76
- }
77
- ),
78
- error?.message && /* @__PURE__ */ jsx(
79
- HelperError,
80
- {
81
- message: error.message,
82
- size
83
- }
84
- )
85
- ] })
55
+ id: name,
56
+ type: showPassword ? "text" : "password",
57
+ size,
58
+ error: !!error,
59
+ disabled,
60
+ inputProps: {
61
+ role: "textbox",
62
+ "aria-label": name,
63
+ disabled,
64
+ name,
65
+ type: showPassword ? "text" : "password"
66
+ },
67
+ InputProps: {
68
+ /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
69
+ personalizado dentro del campo de texto*/
70
+ endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
71
+ IconButtonStyled,
72
+ {
73
+ ownerState: { error: !!error },
74
+ onClick: () => setShowPassword(!showPassword),
75
+ icon: showPassword ? `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view.svg` : `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view_off.svg`
76
+ }
77
+ ) })
78
+ },
79
+ onChange: onInternalChange,
80
+ value: String(value || ""),
81
+ inputRef: ref,
82
+ ...other
83
+ }
84
+ ),
85
+ error?.message && /* @__PURE__ */ jsx(
86
+ HelperError,
87
+ {
88
+ message: error.message,
89
+ size
90
+ }
91
+ )
92
+ ] });
93
+ }
86
94
  }
87
95
  ) });
88
96
  };