@asaleh37/ui-base 25.9.3-1 → 25.9.5

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.3-1",
3
+ "version": "25.9.5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -23,7 +23,7 @@ const PersonGrid: React.FC = () => {
23
23
  );
24
24
  const [data, setData] = useState([]);
25
25
  const apiActions = useApiActions({
26
- findAll: "api/v1/public/person/all",
26
+ commonStoreKey: "persons",
27
27
  deleteById: "api/v1/admin/person",
28
28
  save: "api/v1/admin/person",
29
29
  findById: "api/v1/admin/person",
@@ -276,10 +276,10 @@ const PersonGrid: React.FC = () => {
276
276
  data={data}
277
277
  setData={setData}
278
278
  editMode={{
279
- editMode: "modal",
279
+ editMode: "modal",
280
280
  specs: {
281
281
  modalIcon: "user",
282
- modalTitle: "Person Profile",
282
+ modalTitle: "Person Profile",
283
283
  modalWidth: 300,
284
284
  },
285
285
  }}
@@ -320,7 +320,7 @@ const PersonGrid: React.FC = () => {
320
320
  ]}
321
321
  girdIcon="users"
322
322
  editAction={{
323
- isEnabled: true,
323
+ isEnabled: true,
324
324
  authority: "PERSON_EDIT",
325
325
  preActionValidation: (data) => {
326
326
  if (
@@ -145,4 +145,9 @@ export const ADMINISTRATION_STORES: CommonStores = {
145
145
  authority: "SYSTEM_ADMIN",
146
146
  url: "api/v1/admin/systemapplicationrole/all",
147
147
  },
148
+ persons: {
149
+ autoLoad: true,
150
+ data: [],
151
+ url: "api/v1/public/person/all",
152
+ },
148
153
  };