@asaleh37/ui-base 25.8.31 → 25.9.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/dist/index.d.ts +15 -1
- package/dist/index.js +134 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
- package/src/components/App.tsx +16 -1
- package/src/components/common/AzureLogin.tsx +70 -0
- package/src/components/common/Login.tsx +102 -75
- package/src/components/msalConfig.ts +11 -0
- package/src/hooks/useAxios.tsx +1 -0
- package/src/layout/Layout.tsx +14 -3
- package/src/layout/MainContent.tsx +0 -5
- package/src/layout/TopBar.tsx +2 -1
- package/src/main.tsx +11 -0
- package/src/navigationItems/index.tsx +1 -8
- package/src/redux/features/common/AppInfoSlice.ts +13 -0
- package/src/routes/index.ts +2 -6
- package/src/util/AppUtils.ts +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,18 @@ type AppInfo = {
|
|
|
74
74
|
[key: string]: string;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
loginScreenStyle?: {
|
|
78
|
+
themeMode: "dark" | "light";
|
|
79
|
+
backgroundImageNameInPublicFolder?: string;
|
|
80
|
+
backgroundColor?: string;
|
|
81
|
+
};
|
|
82
|
+
authenticationMethod: "AZURE" | "APP";
|
|
83
|
+
azureConfiguration?: {
|
|
84
|
+
frontEndClientId: string;
|
|
85
|
+
tenantId: string;
|
|
86
|
+
redirectURL: string;
|
|
87
|
+
scopes: Array<string>;
|
|
88
|
+
};
|
|
77
89
|
businessRoutes?: Array<SystemRoute>;
|
|
78
90
|
businessNavigationItems?: Array<ExtendedTreeItemProps>;
|
|
79
91
|
businessReduxReducers?: {
|
|
@@ -665,6 +677,8 @@ declare function isNumeric(value: string): boolean;
|
|
|
665
677
|
declare function capitalizeFirstLetter(str: string): string;
|
|
666
678
|
declare function isValidEmail(email: any): boolean;
|
|
667
679
|
declare function timeAgo(dateInput: any, appDirection: "ltr" | "rtl"): string;
|
|
680
|
+
declare const formatDate: (date: any, format: any) => string;
|
|
681
|
+
declare const parseStringToDate: (dateString: any, format: any) => Date;
|
|
668
682
|
|
|
669
683
|
declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
670
684
|
declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
@@ -673,5 +687,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
|
673
687
|
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
674
688
|
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
675
689
|
|
|
676
|
-
export { AttachmentCard, AttachmentImageViewer, AttachmentPanel, BaseApp, CheckBox, ComboBox, DARK_THEME_INITIAL_MAIN_COLOR, DARK_THEME_INITIAL_SECANDARY_COLOR, DATE_FORMAT, DATE_TIME_FORMAT, DashboardRouteView, DashboardViewer, Datefield, DatetimeField, ExcelReportViewer, FormElementField as FormElement, LIGHT_THEME_INITIAL_MAIN_COLOR, LIGHT_THEME_INITIAL_SECANDARY_COLOR, ReportViewer, SystemLookupCombobox, TemplateBarChart, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, WorkflowDocumentPanel, WorkflowDocumentTimeLine, WorkflowRouteComponent, capitalizeFirstLetter, constructGridColumnsFromFields, constructValidationSchema, getAllFields, getElementFields, getGridSelection, hasDigitsOnly, isNumber, isNumeric, isValidEmail, timeAgo, useApiActions, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
|
|
690
|
+
export { AttachmentCard, AttachmentImageViewer, AttachmentPanel, BaseApp, CheckBox, ComboBox, DARK_THEME_INITIAL_MAIN_COLOR, DARK_THEME_INITIAL_SECANDARY_COLOR, DATE_FORMAT, DATE_TIME_FORMAT, DashboardRouteView, DashboardViewer, Datefield, DatetimeField, ExcelReportViewer, FormElementField as FormElement, LIGHT_THEME_INITIAL_MAIN_COLOR, LIGHT_THEME_INITIAL_SECANDARY_COLOR, ReportViewer, SystemLookupCombobox, TemplateBarChart, TemplateDataCard, TemplateForm, TemplateGauge, TemplateGrid, TemplateLineChart, TemplateLineProgress, TemplatePieChart, TemplateTextField, TransferList, WorkflowDocumentPanel, WorkflowDocumentTimeLine, WorkflowRouteComponent, capitalizeFirstLetter, constructGridColumnsFromFields, constructValidationSchema, formatDate, getAllFields, getElementFields, getGridSelection, hasDigitsOnly, isNumber, isNumeric, isValidEmail, parseStringToDate, timeAgo, useApiActions, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
|
|
677
691
|
export type { CommonStores, CommonStoresInterface, EditDeleteAction, ExtendedTreeItemProps, FormActionProps, FormElementFieldProps, FormElementGroupProps, FormElementNodeProps, FormElementProps, FormElementSize, FormValueChangeCallBk, GridSelection, MakeOptional, ModalFormProps, RecordAction, RecordFieldProps, StoreMetaData, SystemRoute, TemplateFormProps, TemplateGridAttachmentProps, TemplateGridColDef, TemplateGridColumnProps, TemplateGridProps, TemplateGridTopBarProps, TransferListProps };
|