@asaleh37/ui-base 1.1.9 → 1.2.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 +23 -1
- 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/package.json +1 -1
- package/src/components/App.tsx +61 -3
- package/src/components/BaseApp.tsx +7 -0
- package/src/components/admin/AttachmentGrid.tsx +1 -1
- package/src/components/admin/AuthorityGrid.tsx +1 -1
- package/src/components/admin/BluePrintGrid.tsx +1 -1
- package/src/components/admin/BluePrintPageGrid.tsx +1 -1
- package/src/components/admin/BluePrintPointGrid.tsx +1 -1
- package/src/components/admin/DashboardGrid.tsx +1 -1
- package/src/components/admin/DashboardWidgetGrid.tsx +1 -1
- package/src/components/admin/DataQueryGrid.tsx +1 -1
- package/src/components/admin/DataQueryParameterGrid.tsx +1 -1
- package/src/components/admin/DatasourceConnectionGrid.tsx +1 -1
- package/src/components/admin/EmployeeGrid.tsx +1 -1
- package/src/components/admin/EntityParameterGrid.tsx +1 -1
- package/src/components/admin/ExcelUploaderDetailGrid.tsx +1 -1
- package/src/components/admin/ExcelUploaderHeaderGrid.tsx +1 -1
- package/src/components/admin/LookupGrid.tsx +1 -1
- package/src/components/admin/MailAttachmentGrid.tsx +1 -1
- package/src/components/admin/MailBodyGrid.tsx +1 -1
- package/src/components/admin/MailNotificationQueueGrid.tsx +1 -1
- package/src/components/admin/MailRecipientGrid.tsx +1 -1
- package/src/components/admin/MailTemplateGrid.tsx +1 -1
- package/src/components/admin/NewTableGrid.tsx +1 -1
- package/src/components/admin/NotificationGrid.tsx +1 -1
- package/src/components/admin/NotificationQueueGrid.tsx +1 -1
- package/src/components/admin/OrganizationApplicationGrid.tsx +1 -1
- package/src/components/admin/OrganizationGrid.tsx +1 -1
- package/src/components/admin/OrganizationRankGrid.tsx +1 -1
- package/src/components/admin/OrganizationUnitGrid.tsx +1 -1
- package/src/components/admin/OrganizationUserGrid.tsx +1 -1
- package/src/components/admin/OrganizationUserRoleGrid.tsx +1 -1
- package/src/components/admin/ReportGrid.tsx +1 -1
- package/src/components/admin/ReportParameterGrid.tsx +1 -1
- package/src/components/admin/RoleAuthorityGrid.tsx +1 -1
- package/src/components/admin/RoleGrid.tsx +1 -1
- package/src/components/admin/UserAccountGrid.tsx +1 -1
- package/src/components/admin/UserRequestGrid.tsx +1 -1
- package/src/components/admin/WidgetGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentMailLogGrid.tsx +1 -1
- package/src/components/admin/WorkflowDocumentStatusGrid.tsx +1 -1
- package/src/components/common/Login.tsx +28 -2
- package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/{components/templates/DataEntryTemplates → hooks}/useApiActions.ts +4 -4
- package/src/layout/MainContent.tsx +12 -9
- package/src/layout/NavigationTree.tsx +10 -9
- package/src/redux/features/common/AppInfoSlice.ts +10 -0
- package/src/redux/features/common/CommonStoreSlice.ts +1 -4
- package/src/theme/DarkThemeOptions.ts +0 -30
- package/src/theme/LightThemeOptions.ts +0 -34
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,17 @@ type AppInfo = {
|
|
|
51
51
|
[key: string]: StoreMetaData;
|
|
52
52
|
};
|
|
53
53
|
muiPremiumKey: string;
|
|
54
|
+
enableAdministrationModule: boolean;
|
|
55
|
+
appTheme: {
|
|
56
|
+
light: {
|
|
57
|
+
primaryColor: string;
|
|
58
|
+
secondaryColor: string;
|
|
59
|
+
};
|
|
60
|
+
dark: {
|
|
61
|
+
primaryColor: string;
|
|
62
|
+
secondaryColor: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
54
65
|
};
|
|
55
66
|
|
|
56
67
|
declare const BaseApp: React.FC<AppInfo>;
|
|
@@ -149,12 +160,23 @@ declare const DatetimeField: React.FC<DatetimeFieldProps>;
|
|
|
149
160
|
|
|
150
161
|
declare const TemplateTextField: React.FC<Omit<TextFieldProps, "outlined">>;
|
|
151
162
|
|
|
163
|
+
type ApiActionsProps = {
|
|
164
|
+
findAll?: string;
|
|
165
|
+
commonStoreKey?: string;
|
|
166
|
+
setData?: any;
|
|
167
|
+
findById?: string;
|
|
168
|
+
findByIdParamName?: string;
|
|
169
|
+
save?: string;
|
|
170
|
+
deleteById?: string;
|
|
171
|
+
deleteByIdParamName?: string;
|
|
172
|
+
};
|
|
152
173
|
type ApiActions = {
|
|
153
174
|
reloadData: (params?: any) => Promise<void>;
|
|
154
175
|
saveRecord: (record: any) => Promise<any | null>;
|
|
155
176
|
loadRecordById: (recordId: any) => Promise<any>;
|
|
156
177
|
deleteRecordById: (recordId: any) => Promise<boolean>;
|
|
157
178
|
};
|
|
179
|
+
declare const useApiActions: (apiActionsProps: ApiActionsProps) => ApiActions;
|
|
158
180
|
|
|
159
181
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
160
182
|
type RecordAction = {
|
|
@@ -477,5 +499,5 @@ declare function capitalizeFirstLetter(str: string): string;
|
|
|
477
499
|
declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
478
500
|
declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
479
501
|
|
|
480
|
-
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, useAxios, useConfirmationWindow, useIsMobile, useLoadingMask, useSession, useWindow };
|
|
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 };
|
|
481
503
|
export type { DashboardProps, EditDeleteAction, FormActionProps, FormElementFieldProps, FormElementGroupProps, FormElementNodeProps, FormElementProps, FormElementSize, MakeOptional, ModalFormProps, RecordAction, RecordFieldProps, TemplateFormProps, TemplateGridColDef, TemplateGridColumnProps, TemplateGridProps, TemplateGridTopBarProps, TransferListProps };
|