@asaleh37/ui-base 25.6.2-0.1 → 25.6.2-0.3
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/.github/workflows/publish-npm.yml +18 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/administration/admin/OrgMemberRoleForm.tsx +1 -1
- package/src/components/administration/admin/OrganizationRankGrid.tsx +1 -1
- package/src/components/administration/admin/PersonGrid.tsx +119 -16
- package/src/components/administration/admin/SystemApplicationAuthorityGrid.tsx +6 -15
- package/src/components/administration/admin/SystemApplicationModuleGrid.tsx +1 -1
- package/src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx +64 -56
- package/src/components/administration/admin/SystemApplicationRoleGrid.tsx +2 -2
- package/src/components/common/MyNotificationsPanel.tsx +8 -2
- package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +5 -5
- package/src/hooks/UseSession.tsx +20 -1
- package/src/layout/MainContent.tsx +4 -1
- package/src/layout/NavigationTree.tsx +8 -5
- package/src/layout/RouteWrapper.tsx +28 -1
- package/src/layout/TopBar.tsx +5 -2
- package/src/main.tsx +1 -1
- package/src/navigationItems/Administration/adminNavigationItems.tsx +13 -12
- package/src/navigationItems/index.tsx +2 -1
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +22 -0
- package/src/redux/features/common/AppInfoSlice.ts +2 -0
- package/src/routes/types/index.ts +1 -0
- package/vite.config.ts +1 -13
|
@@ -9,12 +9,11 @@ export const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
|
|
|
9
9
|
icon: "cog",
|
|
10
10
|
children: [
|
|
11
11
|
{
|
|
12
|
-
id: "
|
|
13
|
-
label: "
|
|
14
|
-
|
|
15
|
-
icon: "globe",
|
|
12
|
+
id: "system_admin.Person",
|
|
13
|
+
label: "PERSON_PLURAL",
|
|
14
|
+
icon: "users",
|
|
16
15
|
action: "NAVIGATION",
|
|
17
|
-
actionPayload: { path: "admin/
|
|
16
|
+
actionPayload: { path: "admin/persons" },
|
|
18
17
|
},
|
|
19
18
|
{
|
|
20
19
|
id: "development_admin.SystemApplication",
|
|
@@ -24,6 +23,14 @@ export const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
|
|
|
24
23
|
action: "NAVIGATION",
|
|
25
24
|
actionPayload: { path: "admin/systemapplications" },
|
|
26
25
|
},
|
|
26
|
+
{
|
|
27
|
+
id: "development_admin.organizations",
|
|
28
|
+
label: "ORGANIZATION_PLURAL",
|
|
29
|
+
authority: "ORGANIZATION_ADMIN",
|
|
30
|
+
icon: "globe",
|
|
31
|
+
action: "NAVIGATION",
|
|
32
|
+
actionPayload: { path: "admin/organizations" },
|
|
33
|
+
},
|
|
27
34
|
{
|
|
28
35
|
id: "development_admin.organization",
|
|
29
36
|
label: "Organization Info",
|
|
@@ -61,13 +68,7 @@ export const adminNavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
|
|
|
61
68
|
},
|
|
62
69
|
],
|
|
63
70
|
},
|
|
64
|
-
|
|
65
|
-
id: "system_admin.Person",
|
|
66
|
-
label: "PERSON_PLURAL",
|
|
67
|
-
icon: "users",
|
|
68
|
-
action: "NAVIGATION",
|
|
69
|
-
actionPayload: { path: "admin/persons" },
|
|
70
|
-
},
|
|
71
|
+
|
|
71
72
|
{
|
|
72
73
|
id: "system_admin.devtools",
|
|
73
74
|
label: "DEVELOPMENT_TOOLS",
|
|
@@ -8,6 +8,7 @@ export type ExtendedTreeItemProps = {
|
|
|
8
8
|
label: string;
|
|
9
9
|
action?: "NAVIGATION";
|
|
10
10
|
authority?: string;
|
|
11
|
+
applicationModule?: string;
|
|
11
12
|
actionPayload?: {
|
|
12
13
|
path?: string;
|
|
13
14
|
parameters?: object;
|
|
@@ -30,5 +31,5 @@ export const findNavigationItemById = (
|
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export const NavigationItems: TreeViewBaseItem<ExtendedTreeItemProps>[] = [
|
|
33
|
-
...AdministrationItems,
|
|
34
|
+
...AdministrationItems,
|
|
34
35
|
];
|
|
@@ -65,11 +65,21 @@ export const ADMINISTRATION_STORES: CommonStores = {
|
|
|
65
65
|
url: "api/v1/public/organization/ranks/all",
|
|
66
66
|
data: [],
|
|
67
67
|
},
|
|
68
|
+
CurrentOrganizationRanks: {
|
|
69
|
+
autoLoad: true,
|
|
70
|
+
url: "api/v1/public/organizationrank/all",
|
|
71
|
+
data: [],
|
|
72
|
+
},
|
|
68
73
|
SystemOrganizationUnits: {
|
|
69
74
|
autoLoad: true,
|
|
70
75
|
url: "api/v1/public/organization/units/all",
|
|
71
76
|
data: [],
|
|
72
77
|
},
|
|
78
|
+
CurrentOrganizationUnits: {
|
|
79
|
+
autoLoad: true,
|
|
80
|
+
url: "api/v1/public/organizationunit/all",
|
|
81
|
+
data: [],
|
|
82
|
+
},
|
|
73
83
|
SystemOrganizationUnitType: {
|
|
74
84
|
autoLoad: true,
|
|
75
85
|
url: "api/v1/public/organizationunittype/all",
|
|
@@ -123,4 +133,16 @@ export const ADMINISTRATION_STORES: CommonStores = {
|
|
|
123
133
|
authority: "DEVELOPMENT_ADMIN",
|
|
124
134
|
url: "api/v1/admin/systemapplicationmodule/application/all",
|
|
125
135
|
},
|
|
136
|
+
SystemApplicationAuthorities: {
|
|
137
|
+
autoLoad: true,
|
|
138
|
+
data: [],
|
|
139
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
140
|
+
url: "api/v1/admin/systemapplicationauthority/all",
|
|
141
|
+
},
|
|
142
|
+
SystemApplicationRoles: {
|
|
143
|
+
autoLoad: true,
|
|
144
|
+
data: [],
|
|
145
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
146
|
+
url: "api/v1/admin/systemapplicationrole/all",
|
|
147
|
+
},
|
|
126
148
|
};
|
|
@@ -19,6 +19,7 @@ export type AppInfo = {
|
|
|
19
19
|
businessCommonStoresMetaData?: { [key: string]: StoreMetaData };
|
|
20
20
|
muiPremiumKey: string;
|
|
21
21
|
enableAdministrationModule: boolean;
|
|
22
|
+
enableUINotifications: Boolean;
|
|
22
23
|
appTheme?: {
|
|
23
24
|
light: { primaryColor: string; secondaryColor: string };
|
|
24
25
|
dark: { primaryColor: string; secondaryColor: string };
|
|
@@ -38,6 +39,7 @@ const initialState: AppInfoProp = {
|
|
|
38
39
|
appLogo: null,
|
|
39
40
|
muiPremiumKey: null,
|
|
40
41
|
enableAdministrationModule: false,
|
|
42
|
+
enableUINotifications: false,
|
|
41
43
|
businessRoutes: [],
|
|
42
44
|
businessNavigationItems: [],
|
|
43
45
|
businessReduxReducers: {},
|
package/vite.config.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { defineConfig } from "vite";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import rollupNodePolyFill from "rollup-plugin-polyfill-node";
|
|
4
4
|
import inject from "@rollup/plugin-inject";
|
|
5
|
-
import { terser } from "rollup-plugin-terser";
|
|
6
5
|
|
|
7
6
|
// https://vite.dev/config/
|
|
8
7
|
export default defineConfig({
|
|
@@ -16,18 +15,7 @@ export default defineConfig({
|
|
|
16
15
|
build: {
|
|
17
16
|
minify: false,
|
|
18
17
|
rollupOptions: {
|
|
19
|
-
plugins: [
|
|
20
|
-
rollupNodePolyFill(),
|
|
21
|
-
terser({
|
|
22
|
-
compress: {
|
|
23
|
-
drop_debugger: false,
|
|
24
|
-
drop_console: false,
|
|
25
|
-
},
|
|
26
|
-
format: {
|
|
27
|
-
comments: false,
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
],
|
|
18
|
+
plugins: [rollupNodePolyFill()],
|
|
31
19
|
},
|
|
32
20
|
},
|
|
33
21
|
server: {
|