@codezee/sixtify-brahma 0.2.171 → 0.2.172
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/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export type AgGridProps<T = unknown> = AgGridReactProps<T> & {
|
|
|
23
23
|
text: string;
|
|
24
24
|
buttonText: string;
|
|
25
25
|
onButtonClick: () => void;
|
|
26
|
-
};
|
|
26
|
+
} | null;
|
|
27
27
|
};
|
|
28
28
|
type AgGridType = React.ForwardRefExoticComponent<AgGridProps> & (<GenericType>(props: AgGridProps<GenericType>) => JSX.Element);
|
|
29
29
|
export declare const AgGrid: AgGridType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgGrid.d.ts","sourceRoot":"","sources":["../../src/AgGrid/AgGrid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,yBAAyB,CAAC;AAWjC,eAAO,MAAM,iBAAiB,GAAI,KAAK,OAAO,CAAC,OAAO,CAAC,KAAG,IAczD,CAAC;AAEF,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,eAAO,MAAM,eAAe,UAAqB,CAAC;AAGlD,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAA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CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE;QACjB,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,IAAI,CAAC;KAC3B,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,KAAK,UAAU,GAAG,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,GAC5D,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;AAElE,eAAO,MAAM,MAAM,EAoRd,UAAU,CAAC"}
|
|
@@ -36,7 +36,7 @@ exports.defaultPageSize = 100;
|
|
|
36
36
|
exports.pageSizeOptions = [20, 50, 100, 200];
|
|
37
37
|
exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
|
|
38
38
|
const { layout } = (0, utils_1.useGetDeviceType)();
|
|
39
|
-
const { height = "597px", rowHeight =
|
|
39
|
+
const { height = "597px", rowHeight = 40, rowModelType = "infinite", defaultColDef, rowBuffer = 5,
|
|
40
40
|
// eslint-disable-next-line quotes
|
|
41
41
|
overlayNoRowsTemplate = '<span class="ag-overlay-no-rows-center">No Data Found</span>', pagination = false, enableSecondRowFilter, disableKeyBoardEvent, isSelectAllVisible = false, onSelectAllClick, selectAllMessage, onModelUpdated, onFirstDataRendered, onViewportChanged, onFilterChanged, paginationPageSize: paginationPageSizeProp, cacheBlockSize: cacheBlockSizeProp, infiniteInitialRowCount: infiniteInitialRowCountProp, loading: gridLoading = false, ...rest } = props;
|
|
42
42
|
const resolvedPaginationPageSize = paginationPageSizeProp ?? exports.defaultPageSize;
|
|
@@ -76,7 +76,7 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
|
|
|
76
76
|
if (datasource) {
|
|
77
77
|
setTimeout(() => {
|
|
78
78
|
const displayedCount = api.getDisplayedRowCount();
|
|
79
|
-
const renderedNodes = api.getRenderedNodes().length;
|
|
79
|
+
const renderedNodes = api.getRenderedNodes().length || 0;
|
|
80
80
|
updateNoRowsOverlay(api, displayedCount === 0 && renderedNodes === 0);
|
|
81
81
|
}, 50);
|
|
82
82
|
}
|
|
@@ -84,7 +84,7 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
|
|
|
84
84
|
else {
|
|
85
85
|
setTimeout(() => {
|
|
86
86
|
const displayedCount = api.getDisplayedRowCount();
|
|
87
|
-
const renderedNodes = api.getRenderedNodes().length;
|
|
87
|
+
const renderedNodes = api.getRenderedNodes().length || 0;
|
|
88
88
|
updateNoRowsOverlay(api, displayedCount === 0 && renderedNodes === 0);
|
|
89
89
|
}, 50);
|
|
90
90
|
}
|
|
@@ -153,9 +153,7 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
|
|
|
153
153
|
suppressFloatingFilterButton: enableSecondRowFilter,
|
|
154
154
|
filterParams: {
|
|
155
155
|
...defaultColumnDef.filterParams,
|
|
156
|
-
buttons:
|
|
157
|
-
? ["apply", "reset"]
|
|
158
|
-
: [],
|
|
156
|
+
buttons: disableKeyBoardEvent ? ["apply", "reset"] : [],
|
|
159
157
|
},
|
|
160
158
|
}, rowHeight: rowHeight, rowModelType: rowModelType, rowBuffer: rowBuffer, infiniteInitialRowCount: infiniteInitialRowCount, overlayNoRowsTemplate: overlayNoRowsTemplate, loadingOverlayComponent: LoadingOverlay_1.LoadingOverlay, loading: gridLoading, noRowsOverlayComponent: NoDataOverlay_1.NoDataOverlay, suppressNoRowsOverlay: rowModelType === "infinite" || gridLoading, pagination: pagination, onModelUpdated: handleModelUpdated, onFirstDataRendered: handleFirstDataRendered, onViewportChanged: handleViewportChanged, onFilterChanged: handleFilterChanged, ...(pagination
|
|
161
159
|
? { paginationPageSize: resolvedPaginationPageSize }
|