@asaleh37/ui-base 25.9.30 → 25.10.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.9.30",
3
+ "version": "25.10.19",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -1,4 +1,4 @@
1
- import { DataGridPremium } from "@mui/x-data-grid-premium";
1
+ import { DataGridPremium, GridActionsCellItem } from "@mui/x-data-grid-premium";
2
2
  export * from "./BaseApp";
3
3
  export * from "@mui/material";
4
4
  export * from "@mui/lab";
@@ -7,4 +7,4 @@ export { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
7
  export type { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
8
8
  export * from "./templates";
9
9
  export * from "@mui/x-tree-view/models";
10
- export { DataGridPremium } ;
10
+ export { DataGridPremium };
@@ -83,13 +83,6 @@ const TemplateForm: React.FC<TemplateFormProps> = (
83
83
  );
84
84
  if (retrievedRecord) {
85
85
  formManager.reset({ ...retrievedRecord });
86
- if (props?.formValuesChangeCallBk) {
87
- props?.formValuesChangeCallBk(
88
- { ...retrievedRecord },
89
- formActions,
90
- formManager
91
- );
92
- }
93
86
  for (const field of fields) {
94
87
  if (
95
88
  field?.fieldType === "combobox" &&
@@ -111,6 +104,9 @@ const TemplateForm: React.FC<TemplateFormProps> = (
111
104
  }
112
105
  }
113
106
  }
107
+ if (props?.formValuesChangeCallBk) {
108
+ props?.formValuesChangeCallBk(formValues, formActions, formManager);
109
+ }
114
110
  }
115
111
  } else {
116
112
  formManager.reset({});
package/src/main.tsx CHANGED
@@ -11,7 +11,7 @@ createRoot(document.getElementById("root")!).render(
11
11
  themeMode: "dark",
12
12
  backgroundImageNameInPublicFolder: "bg.jpg",
13
13
  }}
14
- appVersion="0.0"
14
+ appVersion="25.10.19"
15
15
  authenticationMethod="AZURE"
16
16
  azureConfiguration={{
17
17
  frontEndClientId: "c3bbbdbd-f392-4459-b3dd-2351cb07f924",