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