@asaleh37/ui-base 25.8.8-1 → 25.8.9-1
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +2 -2
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +4 -2
- package/src/hooks/index.ts +2 -1
package/package.json
CHANGED
|
@@ -192,7 +192,7 @@ const FormElementField: React.FC<FormElementFieldProps> = (
|
|
|
192
192
|
onChangeCallBack={(v: any, selectedRecord: any) => {
|
|
193
193
|
let newValue = null;
|
|
194
194
|
if (v) {
|
|
195
|
-
newValue = v
|
|
195
|
+
newValue = v;
|
|
196
196
|
}
|
|
197
197
|
formManager.setValue(fieldName, newValue);
|
|
198
198
|
if (props?.formProps?.onValueChangeCallBack) {
|
|
@@ -229,7 +229,7 @@ const FormElementField: React.FC<FormElementFieldProps> = (
|
|
|
229
229
|
onChangeCallBack={(v: any, selectedRecord: any) => {
|
|
230
230
|
let newValue = null;
|
|
231
231
|
if (v) {
|
|
232
|
-
newValue = v
|
|
232
|
+
newValue = v ;
|
|
233
233
|
}
|
|
234
234
|
formManager.setValue(fieldName, newValue);
|
|
235
235
|
if (props?.formProps?.onValueChangeCallBack) {
|
|
@@ -140,7 +140,7 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
const themeDirection = useSelector(
|
|
143
|
-
(state: any) =>
|
|
143
|
+
(state: any) => state.AppLayout.appDirection
|
|
144
144
|
);
|
|
145
145
|
|
|
146
146
|
const clearGridState = () => {
|
|
@@ -820,7 +820,9 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
|
|
|
820
820
|
navigate(-1, { replace: true });
|
|
821
821
|
}}
|
|
822
822
|
>
|
|
823
|
-
<FontAwesomeIcon
|
|
823
|
+
<FontAwesomeIcon
|
|
824
|
+
icon={themeDirection === "ltr" ? "arrow-left" : "arrow-right"}
|
|
825
|
+
/>
|
|
824
826
|
</IconButton>
|
|
825
827
|
) : (
|
|
826
828
|
<></>
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
1
2
|
import { useTranslation } from "react-i18next";
|
|
2
3
|
import { useForm } from "react-hook-form";
|
|
3
4
|
import { useParams } from "react-router-dom";
|
|
@@ -17,4 +18,4 @@ export { useSelector };
|
|
|
17
18
|
export { useParams };
|
|
18
19
|
export { useForm, zodResolver, z };
|
|
19
20
|
export { useTranslation };
|
|
20
|
-
export {useNavigate};
|
|
21
|
+
export {useNavigate};
|