@asaleh37/ui-base 25.8.1-9 → 25.8.2
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/dist/index.d.ts +10 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +30 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +2 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx +5 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/DatetimeField.tsx +7 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx +1 -0
- package/src/hooks/index.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
3
3
|
import { TextFieldProps, SxProps } from '@mui/material';
|
|
4
4
|
export * from '@mui/material';
|
|
5
5
|
export * from 'zod';
|
|
6
|
+
import * as zod from 'zod';
|
|
7
|
+
export { zod as z };
|
|
6
8
|
export * from '@mui/lab';
|
|
7
9
|
export { toast } from 'react-toastify';
|
|
8
10
|
export { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
@@ -10,9 +12,12 @@ import * as react from 'react';
|
|
|
10
12
|
import react__default from 'react';
|
|
11
13
|
import { GridColDef, GridRowSelectionModel, DataGridPremiumProps, GridToolbarProps, ToolbarPropsOverrides } from '@mui/x-data-grid-premium';
|
|
12
14
|
import { UseFormReturn } from 'react-hook-form';
|
|
15
|
+
export { useForm } from 'react-hook-form';
|
|
13
16
|
import { TFunction } from 'i18next';
|
|
14
17
|
export * from '@mui/x-tree-view/models';
|
|
18
|
+
export { useTranslation } from 'react-i18next';
|
|
15
19
|
export { useParams } from 'react-router-dom';
|
|
20
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
16
21
|
export { useDispatch, useSelector } from 'react-redux';
|
|
17
22
|
import { ResponseType } from 'axios';
|
|
18
23
|
|
|
@@ -105,6 +110,7 @@ interface CheckBoxProps {
|
|
|
105
110
|
value: any;
|
|
106
111
|
disabled?: boolean;
|
|
107
112
|
required?: boolean;
|
|
113
|
+
hidden?: boolean;
|
|
108
114
|
label: string;
|
|
109
115
|
checkedValue?: any;
|
|
110
116
|
unCheckedValue?: any;
|
|
@@ -121,6 +127,7 @@ interface ComboBoxProps {
|
|
|
121
127
|
required?: boolean;
|
|
122
128
|
options: Array<any>;
|
|
123
129
|
errorMessage?: any;
|
|
130
|
+
hidden?: boolean;
|
|
124
131
|
displayField: string;
|
|
125
132
|
valueField: string;
|
|
126
133
|
sx?: any;
|
|
@@ -132,6 +139,7 @@ interface DatefieldProps {
|
|
|
132
139
|
label: string;
|
|
133
140
|
disabled?: boolean;
|
|
134
141
|
required?: boolean;
|
|
142
|
+
hidden?: boolean;
|
|
135
143
|
sx?: any;
|
|
136
144
|
format?: string;
|
|
137
145
|
errorMessage?: any;
|
|
@@ -145,6 +153,7 @@ interface DatetimeFieldProps {
|
|
|
145
153
|
label: string;
|
|
146
154
|
disabled?: boolean;
|
|
147
155
|
required?: boolean;
|
|
156
|
+
hidden?: boolean;
|
|
148
157
|
format?: string;
|
|
149
158
|
sx?: any;
|
|
150
159
|
errorMessage?: any;
|
|
@@ -162,6 +171,7 @@ type SystemLookupListProps = {
|
|
|
162
171
|
label: string;
|
|
163
172
|
disabled?: boolean;
|
|
164
173
|
required?: boolean;
|
|
174
|
+
hidden?: boolean;
|
|
165
175
|
errorMessage?: any;
|
|
166
176
|
sx?: any;
|
|
167
177
|
};
|