@asaleh37/ui-base 1.2.1 → 1.2.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/.env +4 -0
- package/.env.development +1 -0
- package/.env.production +1 -0
- package/dist/index.d.ts +7 -37
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/index.html +13 -0
- package/package.json +1 -1
- package/public/__logo.png +0 -0
- package/public/logo.png +0 -0
- package/public/vite.svg +1 -0
- package/rollup.config-1748377725725.cjs +16 -16
- package/src/assets/logo.png +0 -0
- package/src/components/App.tsx +39 -9
- package/src/components/BaseApp.tsx +37 -25
- package/src/components/admin/RoleAuthoritiesForm.tsx +65 -0
- package/src/components/admin/RoleGrid.tsx +67 -13
- package/src/components/common/Home.tsx +3 -0
- package/src/components/common/Login.tsx +10 -3
- package/src/components/templates/TransferList.tsx +4 -7
- package/src/hooks/useApiActions.ts +1 -2
- package/src/layout/Layout.tsx +36 -29
- package/src/main.tsx +25 -0
- package/src/redux/features/CounterSlice.tsx +13 -0
- package/src/redux/features/common/AppInfoSlice.ts +1 -1
- package/src/redux/features/common/CommonStoreSlice.ts +19 -5
- package/src/redux/store.ts +25 -24
- package/src/util/constants.ts +5 -1
- package/vite.config.ts +10 -0
package/.env
ADDED
package/.env.development
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VITE_API_URL=http://localhost:8080/as-api
|
package/.env.production
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VITE_API_URL=https://ezzfpmapi.ezzsteel.com.eg/ezz-fpm-api
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ type AppInfo = {
|
|
|
52
52
|
};
|
|
53
53
|
muiPremiumKey: string;
|
|
54
54
|
enableAdministrationModule: boolean;
|
|
55
|
-
appTheme
|
|
55
|
+
appTheme?: {
|
|
56
56
|
light: {
|
|
57
57
|
primaryColor: string;
|
|
58
58
|
secondaryColor: string;
|
|
@@ -434,42 +434,8 @@ declare const useLoadingMask: () => {
|
|
|
434
434
|
|
|
435
435
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
436
436
|
|
|
437
|
-
interface OrganizationProps {
|
|
438
|
-
organizationCode?: string;
|
|
439
|
-
organizationName?: string;
|
|
440
|
-
}
|
|
441
|
-
interface UserProfileProps {
|
|
442
|
-
username?: string;
|
|
443
|
-
currentOrganizationCode?: string;
|
|
444
|
-
userOrganizations?: Array<OrganizationProps>;
|
|
445
|
-
employeeNumber?: string;
|
|
446
|
-
employeeName?: string;
|
|
447
|
-
divisionCode?: string;
|
|
448
|
-
divisionName?: string;
|
|
449
|
-
departmentCode?: string;
|
|
450
|
-
departmentName?: string;
|
|
451
|
-
rankCode?: string;
|
|
452
|
-
rankName?: string;
|
|
453
|
-
sectionCode?: string;
|
|
454
|
-
sectionName?: string;
|
|
455
|
-
subsectionCode?: string;
|
|
456
|
-
subsectionName?: string;
|
|
457
|
-
extNumber?: string;
|
|
458
|
-
mobileNumber?: string;
|
|
459
|
-
email?: string;
|
|
460
|
-
}
|
|
461
|
-
interface UserSessionProps {
|
|
462
|
-
value: {
|
|
463
|
-
isAuthenticated: boolean | null;
|
|
464
|
-
userProfile: UserProfileProps | null;
|
|
465
|
-
authorities: Array<{
|
|
466
|
-
authority: string;
|
|
467
|
-
}>;
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
|
|
471
437
|
declare const useSession: () => {
|
|
472
|
-
UserSession:
|
|
438
|
+
UserSession: any;
|
|
473
439
|
isUserAuthorized: (authorityCode: string) => boolean;
|
|
474
440
|
};
|
|
475
441
|
|
|
@@ -498,6 +464,10 @@ declare function capitalizeFirstLetter(str: string): string;
|
|
|
498
464
|
|
|
499
465
|
declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
500
466
|
declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
467
|
+
declare const LIGHT_THEME_INITIAL_MAIN_COLOR = "#37505C";
|
|
468
|
+
declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
469
|
+
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
470
|
+
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
501
471
|
|
|
502
|
-
export { BaseApp, CheckBox, ComboBox, DATE_FORMAT, DATE_TIME_FORMAT, Datefield, DatetimeField, TemplateBarChart, TemplateDashboard, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, capitalizeFirstLetter, hasDigitsOnly, isNumber, isNumeric, useApiActions, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
|
|
472
|
+
export { BaseApp, CheckBox, ComboBox, DARK_THEME_INITIAL_MAIN_COLOR, DARK_THEME_INITIAL_SECANDARY_COLOR, DATE_FORMAT, DATE_TIME_FORMAT, Datefield, DatetimeField, LIGHT_THEME_INITIAL_MAIN_COLOR, LIGHT_THEME_INITIAL_SECANDARY_COLOR, TemplateBarChart, TemplateDashboard, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, capitalizeFirstLetter, hasDigitsOnly, isNumber, isNumeric, useApiActions, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
|
|
503
473
|
export type { DashboardProps, EditDeleteAction, FormActionProps, FormElementFieldProps, FormElementGroupProps, FormElementNodeProps, FormElementProps, FormElementSize, MakeOptional, ModalFormProps, RecordAction, RecordFieldProps, TemplateFormProps, TemplateGridColDef, TemplateGridColumnProps, TemplateGridProps, TemplateGridTopBarProps, TransferListProps };
|