@acuteinfo/common-base 1.2.38-beta.1 → 1.2.38-beta.10

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 (57) hide show
  1. package/dist/components/common/arrayField/arrayField-stepper.d.ts +1 -1
  2. package/dist/components/common/arrayField/arrayField2.d.ts +2 -0
  3. package/dist/components/common/autocomplete/autocomplete.d.ts +3 -0
  4. package/dist/components/common/datetime/datePicker.d.ts +2 -0
  5. package/dist/components/common/datetime/datetimePicker.d.ts +2 -0
  6. package/dist/components/common/datetime/timePicker.d.ts +1 -0
  7. package/dist/components/common/divider/divider.d.ts +1 -0
  8. package/dist/components/common/formbutton/formbutton.d.ts +1 -0
  9. package/dist/components/common/hidden/hidden.d.ts +1 -0
  10. package/dist/components/common/printButton/printButton.d.ts +8 -1
  11. package/dist/components/common/select/select.d.ts +2 -0
  12. package/dist/components/common/textField/textField.d.ts +3 -1
  13. package/dist/components/common/types.d.ts +2 -0
  14. package/dist/components/common/typograhpy/typography.d.ts +1 -0
  15. package/dist/components/common/utils/optionsFetcher.d.ts +2 -0
  16. package/dist/components/context/propertiesConfig/customProperties.d.ts +5 -0
  17. package/dist/components/custom/Remarks.d.ts +19 -17
  18. package/dist/components/dataTable/atoms/index.d.ts +1 -11
  19. package/dist/components/dataTable/components/useCheckbox.d.ts +1 -1
  20. package/dist/components/dataTable/gridWrapper.d.ts +5 -0
  21. package/dist/components/dataTable/headerCellWrapper.d.ts +5 -0
  22. package/dist/components/dataTable/styledComponents/slider.d.ts +1 -1
  23. package/dist/components/dataTable/types.d.ts +6 -0
  24. package/dist/components/dataTable/utils/attachAlignmentProps.d.ts +2 -0
  25. package/dist/components/dataTable/utils/attachCellComponentsToMetaData.d.ts +1 -0
  26. package/dist/components/dataTable/utils/sortColumnBySequence.d.ts +1 -0
  27. package/dist/components/dataTableStatic/types.d.ts +18 -0
  28. package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +4 -0
  29. package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +4 -0
  30. package/dist/components/dynamicForm/simpleForm.d.ts +6 -3
  31. package/dist/components/dynamicForm/types.d.ts +8 -1
  32. package/dist/components/dynamicForm/typesFields.d.ts +2 -1
  33. package/dist/components/dynamicForm/utils/constructINITValues.d.ts +1 -1
  34. package/dist/components/dynamicForm/utils/extendedFieldTypes.d.ts +1 -1
  35. package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
  36. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +4 -0
  37. package/dist/components/report/components/dateCell.d.ts +1 -1
  38. package/dist/components/report/components/footerCell.d.ts +3 -1
  39. package/dist/components/report/filterComponent/filterComponent.d.ts +2 -1
  40. package/dist/components/report/gridTable.d.ts +14 -1
  41. package/dist/components/report/serverReport/ReportWrapper.d.ts +8 -0
  42. package/dist/components/report/serverReport/serverGridTable.d.ts +13 -0
  43. package/dist/components/report/types.d.ts +18 -1
  44. package/dist/components/styledComponent/button/button.d.ts +7 -0
  45. package/dist/components/utils/utilFunctions/function.d.ts +16 -2
  46. package/dist/index.d.ts +1 -0
  47. package/dist/index.js +19 -19
  48. package/dist/index.js.map +1 -1
  49. package/dist/packages/form/src/atoms.d.ts +49 -16
  50. package/dist/packages/form/src/field.d.ts +5 -3
  51. package/dist/packages/form/src/fieldArrayStepper.d.ts +0 -1
  52. package/dist/packages/form/src/form.d.ts +3 -1
  53. package/dist/packages/form/src/observer.d.ts +1 -1
  54. package/dist/packages/form/src/types.d.ts +5 -0
  55. package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +5 -0
  56. package/package.json +5 -4
  57. package/rollup.config.mjs +3 -2
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { SxProps } from "@mui/material/styles";
3
+ import { RetrievalParametersProps } from "../types";
3
4
  interface GridTableType {
4
5
  columns: any;
5
6
  defaultColumn: any;
@@ -25,6 +26,7 @@ interface GridTableType {
25
26
  filterMeta?: any;
26
27
  queryFilters?: any;
27
28
  hideAmountIn?: boolean;
29
+ retrievalType?: string;
28
30
  onButtonActionHandel?: any;
29
31
  isOpenRetrievalDefault?: boolean;
30
32
  printReferense?: any;
@@ -46,6 +48,17 @@ interface GridTableType {
46
48
  disableFilters?: boolean;
47
49
  headerToolbarStyle?: SxProps;
48
50
  enableEnterToFocus?: boolean;
51
+ retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
52
+ retrievalComponentMeta?: any;
53
+ retrievalFilters?: any;
54
+ setRetrievalFilters?: any;
55
+ retrieveDataShortCut?: {
56
+ enableShortcut?: boolean;
57
+ shortcut?: "alt" | "ctrl" | "shift" | "meta";
58
+ eventKey?: string;
59
+ };
60
+ footerNote: string;
61
+ footerNoteStyles: SxProps;
49
62
  }
50
63
  export declare const GridTable: FC<GridTableType>;
51
64
  export {};
@@ -101,6 +101,9 @@ export interface ReportColumnsType {
101
101
  * @default false
102
102
  */
103
103
  disableFilters?: boolean;
104
+ canUngroup?: boolean;
105
+ isGroupSum?: boolean;
106
+ customAggregation?: (rows: any, config: any) => string;
104
107
  }
105
108
  export interface ReportFilterProps {
106
109
  accessor: string;
@@ -149,6 +152,7 @@ export interface ReportMetaDataType {
149
152
  * @default false
150
153
  */
151
154
  disableFilters?: boolean;
155
+ expandAllGroupedRows?: boolean;
152
156
  }
153
157
  export interface ReportGridProps {
154
158
  metaData: any;
@@ -157,6 +161,8 @@ export interface ReportGridProps {
157
161
  title: string;
158
162
  options?: any;
159
163
  hideFooter?: boolean | "Y" | "N";
164
+ footerNote?: string;
165
+ footerNoteStyles?: SxProps;
160
166
  showSerialNoColumn?: boolean | "Y" | "N";
161
167
  onClose?: Function | null;
162
168
  reportName?: string;
@@ -191,7 +197,12 @@ export interface ReportGridProps {
191
197
  actions?: {
192
198
  buttonStyle?: SxProps;
193
199
  buttonName: ReactNode;
194
- callback: (event: any, originalData: any, rows: any) => void;
200
+ callback: (event: any, originalData: any, rows: any, nonGroupedRawRows: any) => void;
201
+ enableShortcut?: boolean;
202
+ shortcut?: "alt" | "ctrl" | "shift" | "meta";
203
+ eventKey?: string;
204
+ hidden?: boolean;
205
+ disabled?: boolean;
195
206
  }[];
196
207
  /**
197
208
  * The callback function to extract out current report data.
@@ -211,4 +222,10 @@ export interface ReportGridProps {
211
222
  headerToolbarStyle?: SxProps;
212
223
  enableEnterToFocus?: boolean;
213
224
  focusScopeId?: string;
225
+ expandAllGroupedRows?: boolean;
226
+ retrieveDataShortCut?: {
227
+ enableShortcut?: boolean;
228
+ shortcut?: "alt" | "ctrl" | "shift" | "meta";
229
+ eventKey?: string;
230
+ };
214
231
  }
@@ -11,6 +11,13 @@ interface AdditionalProps {
11
11
  * @default false
12
12
  */
13
13
  elevate?: boolean;
14
+ /**
15
+ * Enable keyboard shortcut (Alt+S) when button text contains "save"
16
+ * @default true
17
+ */
18
+ enableShortcut?: boolean;
19
+ shortcut?: "alt" | "ctrl" | "shift" | "meta";
20
+ eventKey?: string;
14
21
  }
15
22
  type GradientButtonProps = AdditionalProps & ButtonProps;
16
23
  declare const GradientButton: import("react").ForwardRefExoticComponent<Omit<GradientButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -50,16 +50,29 @@ export declare const getDependetFieldDataArrayField: (inputData: any) => {};
50
50
  * Function extracts screen label from menu list data
51
51
  * @param path current location's pathname
52
52
  * @param data menu list data
53
- * @param setScreenCode boolean value to show systemCode with label
53
+ * @param setScreenCode boolean value to show systemCode with label. Default false.
54
+ * @param showUserCode boolean value to show user_code instead of system_code with label. Default false.
54
55
  * @returns label as string
55
56
  */
56
- export declare const getDynamicLabel: (path: string, data: any, setScreenCode?: boolean) => string;
57
+ export declare const getDynamicLabel: (path: string, data: any, setScreenCode?: boolean, showUserCode?: boolean) => string;
57
58
  /**
58
59
  * Function to get the css variables value
59
60
  * @param variableName css variable *e.g. "--theme-color1"*
60
61
  * @returns css variable value in string
61
62
  */
62
63
  export declare const getCssVariable: (variableName: string) => string;
64
+ /**
65
+ * Enables Enter-to-focus navigation within a form or a scoped group.
66
+ * If `scopeId` is provided, the function searches all elements with
67
+ * `data-scope-id="<scopeId>"` and cycles focus within them.
68
+ * Otherwise, focus is cycled inside the current container only.
69
+ *
70
+ * Moves forward on Enter and backward on Shift+Enter.
71
+ *
72
+ * @param event React keyboard event (Enter key triggers navigation)
73
+ * @param scopeId Optional ID used to target elements with `data-scope-id`
74
+ * @returns void
75
+ */
63
76
  /**
64
77
  * Enables Enter-to-focus navigation within a form or a scoped group.
65
78
  * If `scopeId` is provided, the function searches all elements with
@@ -73,3 +86,4 @@ export declare const getCssVariable: (variableName: string) => string;
73
86
  * @returns void
74
87
  */
75
88
  export declare const handleEnterToFocus: (event: React.KeyboardEvent<HTMLElement>, scopeId?: string) => void;
89
+ export declare const moveToNextField: (isBackward: boolean, scopeId: string | undefined, referenceElement: HTMLElement, fromMenuSelection?: boolean) => void;
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ export * from "./components/report/serverReport/ReportWrapper";
56
56
  export * from "./components/utils/reportExport/context/exportWorkerContext";
57
57
  export * from "./components/customNotistack";
58
58
  export * from "./components/report/types";
59
+ export { ReportExportScreen, type TReportProps, } from "./components/utils/reportExport/ReportExportScreen";
59
60
  export * from "./components/context/propertiesConfig/customProperties";
60
61
  export { AuthContextProvider } from "./components/context/authContext/authContext";
61
62
  export { AgGridTableWrapper } from "./components/agGridTable";