@asaleh37/ui-base 25.8.1 → 25.8.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/.github/workflows/publish-npm.yml +1 -1
- package/dist/index.d.ts +15 -1
- 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 +1 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +30 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +2 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx +5 -0
- 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/TemplateDataGrid/TemplateGrid.tsx +1 -1
- package/src/components/templates/index.ts +2 -0
- package/src/hooks/index.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
3
3
|
import { TextFieldProps, SxProps } from '@mui/material';
|
|
4
4
|
export * from '@mui/material';
|
|
5
5
|
export * from 'zod';
|
|
6
|
+
import * as zod from 'zod';
|
|
7
|
+
export { zod as z };
|
|
6
8
|
export * from '@mui/lab';
|
|
7
9
|
export { toast } from 'react-toastify';
|
|
8
10
|
export { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
@@ -10,8 +12,13 @@ import * as react from 'react';
|
|
|
10
12
|
import react__default from 'react';
|
|
11
13
|
import { GridColDef, GridRowSelectionModel, DataGridPremiumProps, GridToolbarProps, ToolbarPropsOverrides } from '@mui/x-data-grid-premium';
|
|
12
14
|
import { UseFormReturn } from 'react-hook-form';
|
|
15
|
+
export { useForm } from 'react-hook-form';
|
|
13
16
|
import { TFunction } from 'i18next';
|
|
14
17
|
export * from '@mui/x-tree-view/models';
|
|
18
|
+
export { useTranslation } from 'react-i18next';
|
|
19
|
+
export { useParams } from 'react-router-dom';
|
|
20
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
21
|
+
export { useDispatch, useSelector } from 'react-redux';
|
|
15
22
|
import { ResponseType } from 'axios';
|
|
16
23
|
|
|
17
24
|
interface SystemRoute {
|
|
@@ -103,6 +110,7 @@ interface CheckBoxProps {
|
|
|
103
110
|
value: any;
|
|
104
111
|
disabled?: boolean;
|
|
105
112
|
required?: boolean;
|
|
113
|
+
hidden?: boolean;
|
|
106
114
|
label: string;
|
|
107
115
|
checkedValue?: any;
|
|
108
116
|
unCheckedValue?: any;
|
|
@@ -119,6 +127,7 @@ interface ComboBoxProps {
|
|
|
119
127
|
required?: boolean;
|
|
120
128
|
options: Array<any>;
|
|
121
129
|
errorMessage?: any;
|
|
130
|
+
hidden?: boolean;
|
|
122
131
|
displayField: string;
|
|
123
132
|
valueField: string;
|
|
124
133
|
sx?: any;
|
|
@@ -130,6 +139,7 @@ interface DatefieldProps {
|
|
|
130
139
|
label: string;
|
|
131
140
|
disabled?: boolean;
|
|
132
141
|
required?: boolean;
|
|
142
|
+
hidden?: boolean;
|
|
133
143
|
sx?: any;
|
|
134
144
|
format?: string;
|
|
135
145
|
errorMessage?: any;
|
|
@@ -143,6 +153,7 @@ interface DatetimeFieldProps {
|
|
|
143
153
|
label: string;
|
|
144
154
|
disabled?: boolean;
|
|
145
155
|
required?: boolean;
|
|
156
|
+
hidden?: boolean;
|
|
146
157
|
format?: string;
|
|
147
158
|
sx?: any;
|
|
148
159
|
errorMessage?: any;
|
|
@@ -160,6 +171,7 @@ type SystemLookupListProps = {
|
|
|
160
171
|
label: string;
|
|
161
172
|
disabled?: boolean;
|
|
162
173
|
required?: boolean;
|
|
174
|
+
hidden?: boolean;
|
|
163
175
|
errorMessage?: any;
|
|
164
176
|
sx?: any;
|
|
165
177
|
};
|
|
@@ -552,6 +564,8 @@ declare const TemplatePieChart: React.FC<WidgetProps>;
|
|
|
552
564
|
|
|
553
565
|
declare const DashboardRouteView: React.FC;
|
|
554
566
|
|
|
567
|
+
declare const FormElementField: React.FC<FormElementFieldProps>;
|
|
568
|
+
|
|
555
569
|
interface APIRequest {
|
|
556
570
|
endPointURI: string;
|
|
557
571
|
parameters?: any;
|
|
@@ -637,5 +651,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
|
637
651
|
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
638
652
|
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
639
653
|
|
|
640
|
-
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 };
|
|
654
|
+
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 };
|
|
641
655
|
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 };
|