@asaleh37/ui-base 25.8.1 → 25.8.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/.github/workflows/publish-npm.yml +1 -1
- package/dist/index.d.ts +15 -2
- 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/index.ts +0 -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
|
@@ -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,8 +9,15 @@ 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 { useParams } from 'react-router-dom';
|
|
17
|
+
export { zodResolver } from '@hookform/resolvers/zod';
|
|
18
|
+
import * as zod from 'zod';
|
|
19
|
+
export { zod as ZodLib };
|
|
20
|
+
export { useDispatch, useSelector } from 'react-redux';
|
|
15
21
|
import { ResponseType } from 'axios';
|
|
16
22
|
|
|
17
23
|
interface SystemRoute {
|
|
@@ -103,6 +109,7 @@ interface CheckBoxProps {
|
|
|
103
109
|
value: any;
|
|
104
110
|
disabled?: boolean;
|
|
105
111
|
required?: boolean;
|
|
112
|
+
hidden?: boolean;
|
|
106
113
|
label: string;
|
|
107
114
|
checkedValue?: any;
|
|
108
115
|
unCheckedValue?: any;
|
|
@@ -119,6 +126,7 @@ interface ComboBoxProps {
|
|
|
119
126
|
required?: boolean;
|
|
120
127
|
options: Array<any>;
|
|
121
128
|
errorMessage?: any;
|
|
129
|
+
hidden?: boolean;
|
|
122
130
|
displayField: string;
|
|
123
131
|
valueField: string;
|
|
124
132
|
sx?: any;
|
|
@@ -130,6 +138,7 @@ interface DatefieldProps {
|
|
|
130
138
|
label: string;
|
|
131
139
|
disabled?: boolean;
|
|
132
140
|
required?: boolean;
|
|
141
|
+
hidden?: boolean;
|
|
133
142
|
sx?: any;
|
|
134
143
|
format?: string;
|
|
135
144
|
errorMessage?: any;
|
|
@@ -143,6 +152,7 @@ interface DatetimeFieldProps {
|
|
|
143
152
|
label: string;
|
|
144
153
|
disabled?: boolean;
|
|
145
154
|
required?: boolean;
|
|
155
|
+
hidden?: boolean;
|
|
146
156
|
format?: string;
|
|
147
157
|
sx?: any;
|
|
148
158
|
errorMessage?: any;
|
|
@@ -160,6 +170,7 @@ type SystemLookupListProps = {
|
|
|
160
170
|
label: string;
|
|
161
171
|
disabled?: boolean;
|
|
162
172
|
required?: boolean;
|
|
173
|
+
hidden?: boolean;
|
|
163
174
|
errorMessage?: any;
|
|
164
175
|
sx?: any;
|
|
165
176
|
};
|
|
@@ -552,6 +563,8 @@ declare const TemplatePieChart: React.FC<WidgetProps>;
|
|
|
552
563
|
|
|
553
564
|
declare const DashboardRouteView: React.FC;
|
|
554
565
|
|
|
566
|
+
declare const FormElementField: React.FC<FormElementFieldProps>;
|
|
567
|
+
|
|
555
568
|
interface APIRequest {
|
|
556
569
|
endPointURI: string;
|
|
557
570
|
parameters?: any;
|
|
@@ -637,5 +650,5 @@ declare const LIGHT_THEME_INITIAL_SECANDARY_COLOR = "#ff6d00";
|
|
|
637
650
|
declare const DARK_THEME_INITIAL_MAIN_COLOR = "#ea690e";
|
|
638
651
|
declare const DARK_THEME_INITIAL_SECANDARY_COLOR = "#74776B";
|
|
639
652
|
|
|
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 };
|
|
653
|
+
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
654
|
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 };
|