@asaleh37/ui-base 25.8.9 → 25.8.10-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.8.9",
3
+ "version": "25.8.10-1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -140,7 +140,7 @@ const TemplateGrid: React.FC<TemplateGridProps> = (props) => {
140
140
  }
141
141
 
142
142
  const themeDirection = useSelector(
143
- (state: any) => state.AppLayout.appDirection
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 icon="arrow-left" />
823
+ <FontAwesomeIcon
824
+ icon={themeDirection === "ltr" ? "arrow-left" : "arrow-right"}
825
+ />
824
826
  </IconButton>
825
827
  ) : (
826
828
  <></>
@@ -28,6 +28,7 @@ export const useConfirmationWindow = (props: ConfirmationWindowProps) => {
28
28
  <DialogActions>
29
29
  <Button
30
30
  variant="contained"
31
+ sx={{marginRight:2,marginLeft:2}}
31
32
  color="primary"
32
33
  onClick={() => {
33
34
  setOpen(false);
@@ -37,6 +38,7 @@ export const useConfirmationWindow = (props: ConfirmationWindowProps) => {
37
38
  </Button>
38
39
  <Button
39
40
  variant="contained"
41
+ sx={{marginRight:2,marginLeft:2}}
40
42
  color="error"
41
43
  onClick={() => {
42
44
  props.onConfirmationCallBk();
@@ -46,7 +46,8 @@
46
46
  "ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE": "Unit type code",
47
47
  "ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME": "Unit type en name",
48
48
  "PERSON_SINGULAR": "person",
49
- "PERSON_PLURAL": "persons",
49
+ "PERSON_PLURAL": "المستخدمين",
50
+ "ROLES": "الصلاحيات",
50
51
  "PERSON_EMAIL": "Email",
51
52
  "PERSON_EMPLOYEE_AR_NAME": "Employee ar name",
52
53
  "PERSON_EMPLOYEE_EN_NAME": "Employee en name",
@@ -26,6 +26,7 @@
26
26
  "ORGANIZATION_RANK_ENABLED": "Enabled",
27
27
  "ORGANIZATION_RANK_ORGANIZATION_ID": "Organization id",
28
28
  "ORGANIZATION_RANK_RANK_ORDER": "Rank order",
29
+ "ROLES": "System Roles",
29
30
  "ORGANIZATION_RANK_RANK_AR_NAME": "Rank ar name",
30
31
  "ORGANIZATION_RANK_RANK_CODE": "Rank code",
31
32
  "ORGANIZATION_RANK_RANK_EN_NAME": "Rank en name",
@@ -11,10 +11,18 @@ export const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
11
11
  {
12
12
  id: "system_admin.Person",
13
13
  label: "PERSON_PLURAL",
14
+ authority: "SYSTEM_ADMIN",
14
15
  icon: "users",
15
16
  action: "NAVIGATION",
16
17
  actionPayload: { path: "admin/persons" },
17
18
  },
19
+ {
20
+ id: "system_admin.devtools.rolesx",
21
+ label: "ROLES",
22
+ icon: "tag",
23
+ action: "NAVIGATION",
24
+ actionPayload: { path: "dev/system/roles" },
25
+ },
18
26
  {
19
27
  id: "development_admin.SystemApplication",
20
28
  label: "SYSTEM_APPLICATION_PLURAL",
@@ -192,7 +200,7 @@ export const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
192
200
  {
193
201
  id: "system_admin.followup",
194
202
  label: "SYSTEM_MONITORING",
195
- authority: "SYSTEM_ADMIN",
203
+ authority: "DEVELOPMENT_ADMIN",
196
204
  icon: "tv",
197
205
  children: [
198
206
  {
@@ -2,10 +2,4 @@ import Home from "../components/common/Home";
2
2
  import { ADMINISTRATION_ROUTES } from "./administration";
3
3
  import { SystemRoute } from "./types";
4
4
 
5
- export const SYSTEM_ROUTES: Array<SystemRoute> = [
6
- {
7
- path: "/",
8
- component: Home,
9
- },
10
- ...ADMINISTRATION_ROUTES,
11
- ];
5
+ export const SYSTEM_ROUTES: Array<SystemRoute> = [...ADMINISTRATION_ROUTES];