sccoreui 6.1.4 → 6.1.5
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULTS = exports.FILEEXTENSIONTYPE = exports.IMAGETYPES = exports.STATUSLIST = exports.SETUPPRICEOPTIONS = exports.PRICINGTYPE = exports.BUNDLETYPE = exports.BUNDLEQUANTITYTYPE = exports.DEFAULTGUID = exports.CATEGORYTYPE = exports.PRODUCTDISCOUNTTYPE = exports.GridCheckBoxStatus = exports.conditionsList = exports.PRODUCTTYPE = exports.ROW_HEIGHT = exports.DEBOUNCE_INTERVAL = exports.MAX_BLOCKS = exports.BLOCK_SIZE = exports.ROWMODELTYPE = exports.COLUMN_SORT_OPTIONS = void 0;
|
|
3
|
+
exports.DEFAULTS = exports.FILEEXTENSIONTYPE = exports.IMAGETYPES = exports.STATUSLIST = exports.SETUPPRICEOPTIONS = exports.PRICINGTYPE = exports.BUNDLETYPE = exports.BUNDLEQUANTITYTYPE = exports.DEFAULTGUID = exports.CATEGORYTYPE = exports.PRODUCTDISCOUNTTYPE = exports.GridCheckBoxStatus = exports.conditionsList = exports.PRODUCTTYPE = exports.ROW_HEIGHT = exports.DEBOUNCE_INTERVAL = exports.MAX_BLOCKS = exports.MAX_RECORDS_TO_LOAD = exports.BLOCK_SIZE = exports.ROWMODELTYPE = exports.COLUMN_SORT_OPTIONS = void 0;
|
|
4
4
|
const Types_1 = require("./Types");
|
|
5
5
|
exports.COLUMN_SORT_OPTIONS = [
|
|
6
6
|
{ id: 1, label: "Low - High", sortId: 1, dataType: Types_1.ATTRIBUTEDATATYPES.INTEGER },
|
|
@@ -43,7 +43,8 @@ exports.ROWMODELTYPE = {
|
|
|
43
43
|
CLIENT_SIDE: "clientSide",
|
|
44
44
|
};
|
|
45
45
|
exports.BLOCK_SIZE = 100;
|
|
46
|
-
exports.
|
|
46
|
+
exports.MAX_RECORDS_TO_LOAD = 300;
|
|
47
|
+
exports.MAX_BLOCKS = exports.MAX_RECORDS_TO_LOAD / exports.BLOCK_SIZE;
|
|
47
48
|
exports.DEBOUNCE_INTERVAL = 200;
|
|
48
49
|
exports.ROW_HEIGHT = 60;
|
|
49
50
|
const DEFAULTGUID = "000000000000000000000000";
|
|
@@ -135,7 +135,7 @@ function ParentForGrid(props) {
|
|
|
135
135
|
// Clear selected checkbox
|
|
136
136
|
// setFeatureDetails((prev: any) => ({ ...prev, checkBoxSelection: initialCheckBoxData }));
|
|
137
137
|
// To identify when to stop the callBack
|
|
138
|
-
const actualEndRow = response === null || response === void 0 ? void 0 : response.totalRecords;
|
|
138
|
+
const actualEndRow = (response === null || response === void 0 ? void 0 : response.totalRecords) < constants_1.MAX_RECORDS_TO_LOAD ? response === null || response === void 0 ? void 0 : response.totalRecords : constants_1.MAX_RECORDS_TO_LOAD;
|
|
139
139
|
if (response === null || response === void 0 ? void 0 : response.rowData) {
|
|
140
140
|
const result = {
|
|
141
141
|
rowData: response.rowData,
|
|
@@ -6,7 +6,8 @@ export declare const ROWMODELTYPE: {
|
|
|
6
6
|
CLIENT_SIDE: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const BLOCK_SIZE = 100;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const MAX_RECORDS_TO_LOAD = 300;
|
|
10
|
+
export declare const MAX_BLOCKS: number;
|
|
10
11
|
export declare const DEBOUNCE_INTERVAL = 200;
|
|
11
12
|
export declare const ROW_HEIGHT = 60;
|
|
12
13
|
declare const DEFAULTGUID = "000000000000000000000000";
|