ods-component-lib 1.18.146 → 1.18.147
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/dist/index.js +13 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +1 -0
- package/dist/utils/DynamicIcon.d.ts +5 -0
- package/package.json +1 -1
- package/dist/stories/OdsLink/OdsLink.stories.d.ts +0 -59
- /package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts} +0 -0
package/dist/index.modern.js
CHANGED
|
@@ -35017,7 +35017,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35017
35017
|
var renderTotal = useCallback(function () {
|
|
35018
35018
|
var _props$customSummary, _props$customSummary2, _props$customSummary3, _props$customSummary4;
|
|
35019
35019
|
var totalLoaded = filterApplied ? totalFilteredCount.current : totalUnfilteredCount.current;
|
|
35020
|
-
var loadedPage = currentPage
|
|
35020
|
+
var loadedPage = currentPage;
|
|
35021
35021
|
var totalRecords = props.totalRecordCount;
|
|
35022
35022
|
var totalPageCount = Math.ceil(totalRecords / currentPageSize);
|
|
35023
35023
|
if (totalLoaded === 0 || totalLoaded === -1) {
|
|
@@ -35028,12 +35028,12 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35028
35028
|
var result = "" + filteredDisplayText + loadedDisplayText + totalRecords + " " + ((_props$customSummary3 = props.customSummary) === null || _props$customSummary3 === void 0 ? void 0 : _props$customSummary3.summaryTotalDataLabel);
|
|
35029
35029
|
result += " - " + ((_props$customSummary4 = props.customSummary) === null || _props$customSummary4 === void 0 ? void 0 : _props$customSummary4.summaryTotalPageCountLabel) + " " + loadedPage + " / " + totalPageCount;
|
|
35030
35030
|
return result;
|
|
35031
|
-
}, [currentPage, currentPageSize, filterApplied, props.customSummary, props.totalRecordCount, totalUnfilteredCount]);
|
|
35031
|
+
}, [currentPage, currentPageSize, filterApplied, props.customSummary, props.totalRecordCount, totalUnfilteredCount, props.dataSource]);
|
|
35032
35032
|
var handleContentReady = useCallback(function (e) {
|
|
35033
35033
|
var _dataGridInstance$get;
|
|
35034
35034
|
var dataGridInstance = e.component;
|
|
35035
|
-
var currentPageIndex = dataGridInstance.
|
|
35036
|
-
var currentTotalCount = dataGridInstance.totalCount();
|
|
35035
|
+
var currentPageIndex = dataGridInstance.pageCount();
|
|
35036
|
+
var currentTotalCount = currentPageIndex == 0 ? 50 : dataGridInstance.totalCount();
|
|
35037
35037
|
var newData = dataGridInstance === null || dataGridInstance === void 0 ? void 0 : (_dataGridInstance$get = dataGridInstance.getDataSource()) === null || _dataGridInstance$get === void 0 ? void 0 : _dataGridInstance$get.items();
|
|
35038
35038
|
if (lastPageIndexRef.current !== currentPageIndex && newData && newData.length > 0) {
|
|
35039
35039
|
setHeaderFilterData(function (prevData) {
|
|
@@ -35065,6 +35065,12 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35065
35065
|
setCurrentPage(currentPageIndex);
|
|
35066
35066
|
setCurrentPageSize(dataGridInstance.pageSize());
|
|
35067
35067
|
rowCount.current = currentTotalCount;
|
|
35068
|
+
setUpdateTrigger(function (prev) {
|
|
35069
|
+
return !prev;
|
|
35070
|
+
});
|
|
35071
|
+
lastPageIndexRef.current = currentPageIndex;
|
|
35072
|
+
}
|
|
35073
|
+
if (currentTotalCount > 0) {
|
|
35068
35074
|
if (filterApplied) {
|
|
35069
35075
|
totalFilteredCount.current = currentTotalCount;
|
|
35070
35076
|
} else {
|
|
@@ -35073,10 +35079,6 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35073
35079
|
if (!filterApplied && totalFilteredCount.current === 0) {
|
|
35074
35080
|
totalFilteredCount.current = totalUnfilteredCount.current;
|
|
35075
35081
|
}
|
|
35076
|
-
setUpdateTrigger(function (prev) {
|
|
35077
|
-
return !prev;
|
|
35078
|
-
});
|
|
35079
|
-
lastPageIndexRef.current = currentPageIndex;
|
|
35080
35082
|
}
|
|
35081
35083
|
}, [props.columns, filterApplied]);
|
|
35082
35084
|
var handleOptionChanged = useCallback(function (e) {
|
|
@@ -35089,6 +35091,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35089
35091
|
};
|
|
35090
35092
|
if (e.fullName.includes("sortOrder")) {
|
|
35091
35093
|
dataGrid.getScrollable().scrollTo(0);
|
|
35094
|
+
setHeaderFilterData([]);
|
|
35092
35095
|
}
|
|
35093
35096
|
if (e.fullName.includes("filterValue") || e.fullName.includes("filter") || e.fullName === "searchPanel.text") {
|
|
35094
35097
|
var active = updateFilterStatus();
|
|
@@ -35338,7 +35341,8 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35338
35341
|
onToolbarPreparing: props.onToolbarPreparing,
|
|
35339
35342
|
ref: props.dataGridRef
|
|
35340
35343
|
}), React.createElement(Scrolling, {
|
|
35341
|
-
mode: "infinite"
|
|
35344
|
+
mode: "infinite",
|
|
35345
|
+
preloadEnabled: true
|
|
35342
35346
|
}), React.createElement(Paging, {
|
|
35343
35347
|
enabled: true,
|
|
35344
35348
|
defaultPageSize: props.pageSize
|
|
@@ -35362,7 +35366,6 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35362
35366
|
value: false
|
|
35363
35367
|
}]
|
|
35364
35368
|
}), React.createElement(HeaderFilter, {
|
|
35365
|
-
allowSearch: true,
|
|
35366
35369
|
dataSource: [].concat(filterOptions[col.dataField] || [])
|
|
35367
35370
|
}), col.multiLevelColumns && col.multiLevelColumns.map(function (multiLevelColItem) {
|
|
35368
35371
|
return React.createElement(Column, {
|