@asaleh37/ui-base 25.8.31 → 25.9.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/dist/index.d.ts +10 -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 +1 -0
- 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 +7 -0
- package/src/navigationItems/index.tsx +1 -8
- package/src/redux/features/common/AppInfoSlice.ts +7 -0
- package/src/routes/index.ts +2 -6
- package/src/util/AppUtils.ts +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ type AppInfo = {
|
|
|
74
74
|
[key: string]: string;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
authenticationMethod: "AZURE" | "APP";
|
|
78
|
+
azureConfiguration?: {
|
|
79
|
+
frontEndClientId: string;
|
|
80
|
+
tenantId: string;
|
|
81
|
+
redirectURL: string;
|
|
82
|
+
scopes: Array<string>;
|
|
83
|
+
};
|
|
77
84
|
businessRoutes?: Array<SystemRoute>;
|
|
78
85
|
businessNavigationItems?: Array<ExtendedTreeItemProps>;
|
|
79
86
|
businessReduxReducers?: {
|
|
@@ -665,6 +672,8 @@ declare function isNumeric(value: string): boolean;
|
|
|
665
672
|
declare function capitalizeFirstLetter(str: string): string;
|
|
666
673
|
declare function isValidEmail(email: any): boolean;
|
|
667
674
|
declare function timeAgo(dateInput: any, appDirection: "ltr" | "rtl"): string;
|
|
675
|
+
declare const formatDate: (date: any, format: any) => string;
|
|
676
|
+
declare const parseStringToDate: (dateString: any, format: any) => Date;
|
|
668
677
|
|
|
669
678
|
declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
670
679
|
declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
@@ -673,5 +682,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
|
673
682
|
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
674
683
|
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
675
684
|
|
|
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 };
|
|
685
|
+
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
686
|
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 };
|