@asaleh37/ui-base 25.8.9 → 25.8.10-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/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-2",
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
  {
@@ -88,61 +88,61 @@ export const ADMINISTRATION_STORES: CommonStores = {
88
88
  SystemDataSources: {
89
89
  autoLoad: true,
90
90
  data: [],
91
- authority: "DEVELOPMENT_ADMIN",
91
+ authority: "SYSTEM_ADMIN",
92
92
  url: "api/v1/dev/datasourceconnection/all",
93
93
  },
94
94
  SystemDataQueries: {
95
95
  autoLoad: true,
96
96
  data: [],
97
- authority: "DEVELOPMENT_ADMIN",
97
+ authority: "SYSTEM_ADMIN",
98
98
  url: "api/v1/dev/dataquery/all",
99
99
  },
100
100
  SystemBluePrints: {
101
101
  autoLoad: true,
102
102
  data: [],
103
- authority: "DEVELOPMENT_ADMIN",
103
+ authority: "SYSTEM_ADMIN",
104
104
  url: "api/v1/dev/blueprint/all",
105
105
  },
106
106
  SystemReports: {
107
107
  autoLoad: true,
108
108
  data: [],
109
- authority: "DEVELOPMENT_ADMIN",
109
+ authority: "SYSTEM_ADMIN",
110
110
  url: "api/v1/dev/report/all",
111
111
  },
112
112
  SystemEntityParameters: {
113
113
  autoLoad: true,
114
114
  data: [],
115
- authority: "DEVELOPMENT_ADMIN",
115
+ authority: "SYSTEM_ADMIN",
116
116
  url: "api/v1/dev/entityparameter/all",
117
117
  },
118
118
  SystemMailTemplates: {
119
119
  autoLoad: true,
120
120
  data: [],
121
- authority: "DEVELOPMENT_ADMIN",
121
+ authority: "SYSTEM_ADMIN",
122
122
  url: "api/v1/dev/mailtemplate/all",
123
123
  },
124
124
  SystemWidgets: {
125
125
  autoLoad: true,
126
126
  data: [],
127
- authority: "DEVELOPMENT_ADMIN",
127
+ authority: "SYSTEM_ADMIN",
128
128
  url: "api/v1/dev/widget/all",
129
129
  },
130
130
  SystemApplicationModules: {
131
131
  autoLoad: true,
132
132
  data: [],
133
- authority: "DEVELOPMENT_ADMIN",
133
+ authority: "SYSTEM_ADMIN",
134
134
  url: "api/v1/admin/systemapplicationmodule/application/all",
135
135
  },
136
136
  SystemApplicationAuthorities: {
137
137
  autoLoad: true,
138
138
  data: [],
139
- authority: "DEVELOPMENT_ADMIN",
139
+ authority: "SYSTEM_ADMIN",
140
140
  url: "api/v1/admin/systemapplicationauthority/all",
141
141
  },
142
142
  SystemApplicationRoles: {
143
143
  autoLoad: true,
144
144
  data: [],
145
- authority: "DEVELOPMENT_ADMIN",
145
+ authority: "SYSTEM_ADMIN",
146
146
  url: "api/v1/admin/systemapplicationrole/all",
147
147
  },
148
148
  };
@@ -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];