@asaleh37/ui-base 25.8.1-3 → 25.8.1-5.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/.github/workflows/publish-npm.yml +1 -1
- package/dist/index.d.ts +20 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/App.tsx +11 -11
- package/src/components/common/Login.tsx +7 -0
- package/src/components/common/NoLicenseComponent.tsx +79 -0
- package/src/components/index.ts +0 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +32 -3
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +5 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx +6 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/DatetimeField.tsx +7 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx +1 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx +2 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +3 -1
- package/src/components/templates/index.ts +2 -0
- package/src/hooks/UseConfirmationWindow.tsx +2 -0
- package/src/hooks/index.ts +14 -0
- package/src/hooks/useAxios.tsx +13 -0
- package/src/index.ts +0 -1
- package/src/layout/Layout.tsx +4 -6
- package/src/locales/arabic/adminLocalsAr.json +2 -1
- package/src/locales/english/adminLocalsEn.json +1 -0
- package/src/main.tsx +1 -1
- package/src/navigationItems/Administration/adminNavigationItems.tsx +9 -1
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +3 -3
- package/src/redux/features/common/AppInfoSlice.ts +7 -0
- package/src/routes/index.ts +1 -7
- package/src/util/index.ts +3 -0
- package/tsconfig.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Reducer } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
3
|
import { TextFieldProps, SxProps } from '@mui/material';
|
|
4
4
|
export * from '@mui/material';
|
|
5
|
-
export * from 'zod';
|
|
6
5
|
export * from '@mui/lab';
|
|
7
6
|
export { toast } from 'react-toastify';
|
|
8
7
|
export { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
@@ -10,10 +9,17 @@ import * as react from 'react';
|
|
|
10
9
|
import react__default from 'react';
|
|
11
10
|
import { GridColDef, GridRowSelectionModel, DataGridPremiumProps, GridToolbarProps, ToolbarPropsOverrides } from '@mui/x-data-grid-premium';
|
|
12
11
|
import { UseFormReturn } from 'react-hook-form';
|
|
12
|
+
export { useForm } from 'react-hook-form';
|
|
13
13
|
import { TFunction } from 'i18next';
|
|
14
14
|
export * from '@mui/x-tree-view/models';
|
|
15
|
+
export { useTranslation } from 'react-i18next';
|
|
16
|
+
export { useNavigate, useParams } from 'react-router-dom';
|
|
17
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
18
|
+
import * as zod from 'zod';
|
|
19
|
+
export { zod as z };
|
|
20
|
+
export { useDispatch, useSelector } from 'react-redux';
|
|
15
21
|
import { ResponseType } from 'axios';
|
|
16
|
-
export {
|
|
22
|
+
export { default as axios } from 'axios';
|
|
17
23
|
|
|
18
24
|
interface SystemRoute {
|
|
19
25
|
path: string;
|
|
@@ -87,6 +93,10 @@ type AppInfo = {
|
|
|
87
93
|
secondaryColor: string;
|
|
88
94
|
};
|
|
89
95
|
};
|
|
96
|
+
checkLicense?: {
|
|
97
|
+
endpoint: string;
|
|
98
|
+
interval: number;
|
|
99
|
+
};
|
|
90
100
|
};
|
|
91
101
|
|
|
92
102
|
declare const BaseApp: React.FC<AppInfo>;
|
|
@@ -104,6 +114,7 @@ interface CheckBoxProps {
|
|
|
104
114
|
value: any;
|
|
105
115
|
disabled?: boolean;
|
|
106
116
|
required?: boolean;
|
|
117
|
+
hidden?: boolean;
|
|
107
118
|
label: string;
|
|
108
119
|
checkedValue?: any;
|
|
109
120
|
unCheckedValue?: any;
|
|
@@ -120,6 +131,7 @@ interface ComboBoxProps {
|
|
|
120
131
|
required?: boolean;
|
|
121
132
|
options: Array<any>;
|
|
122
133
|
errorMessage?: any;
|
|
134
|
+
hidden?: boolean;
|
|
123
135
|
displayField: string;
|
|
124
136
|
valueField: string;
|
|
125
137
|
sx?: any;
|
|
@@ -131,6 +143,7 @@ interface DatefieldProps {
|
|
|
131
143
|
label: string;
|
|
132
144
|
disabled?: boolean;
|
|
133
145
|
required?: boolean;
|
|
146
|
+
hidden?: boolean;
|
|
134
147
|
sx?: any;
|
|
135
148
|
format?: string;
|
|
136
149
|
errorMessage?: any;
|
|
@@ -144,6 +157,7 @@ interface DatetimeFieldProps {
|
|
|
144
157
|
label: string;
|
|
145
158
|
disabled?: boolean;
|
|
146
159
|
required?: boolean;
|
|
160
|
+
hidden?: boolean;
|
|
147
161
|
format?: string;
|
|
148
162
|
sx?: any;
|
|
149
163
|
errorMessage?: any;
|
|
@@ -161,6 +175,7 @@ type SystemLookupListProps = {
|
|
|
161
175
|
label: string;
|
|
162
176
|
disabled?: boolean;
|
|
163
177
|
required?: boolean;
|
|
178
|
+
hidden?: boolean;
|
|
164
179
|
errorMessage?: any;
|
|
165
180
|
sx?: any;
|
|
166
181
|
};
|
|
@@ -553,6 +568,8 @@ declare const TemplatePieChart: React.FC<WidgetProps>;
|
|
|
553
568
|
|
|
554
569
|
declare const DashboardRouteView: React.FC;
|
|
555
570
|
|
|
571
|
+
declare const FormElementField: React.FC<FormElementFieldProps>;
|
|
572
|
+
|
|
556
573
|
interface APIRequest {
|
|
557
574
|
endPointURI: string;
|
|
558
575
|
parameters?: any;
|
|
@@ -638,5 +655,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
|
638
655
|
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
639
656
|
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
640
657
|
|
|
641
|
-
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, 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 };
|
|
658
|
+
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 };
|
|
642
659
|
export type { CommonStores, CommonStoresInterface, EditDeleteAction, ExtendedTreeItemProps, FormActionProps, FormElementFieldProps, FormElementGroupProps, FormElementNodeProps, FormElementProps, FormElementSize, GridSelection, MakeOptional, ModalFormProps, RecordAction, RecordFieldProps, StoreMetaData, SystemRoute, TemplateFormProps, TemplateGridAttachmentProps, TemplateGridColDef, TemplateGridColumnProps, TemplateGridProps, TemplateGridTopBarProps, TransferListProps };
|