ods-component-lib 1.18.55 → 1.18.56

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.
@@ -16324,6 +16324,9 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16324
16324
  var columns = useRef(props.columns);
16325
16325
  var gridRef = useRef(null);
16326
16326
  var filterApplied = useRef(false);
16327
+ var _useState3 = useState(false),
16328
+ loading = _useState3[0],
16329
+ setLoading = _useState3[1];
16327
16330
  var onCancelEditEvent = new CustomEvent('cancelEdit', {
16328
16331
  bubbles: true,
16329
16332
  detail: {
@@ -16424,6 +16427,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16424
16427
  };
16425
16428
  var _temp = _finallyRethrows(function () {
16426
16429
  return _catch(function () {
16430
+ setLoading(true);
16427
16431
  return Promise.resolve(fetch(apiUrl, requestOptions)).then(function (response) {
16428
16432
  return Promise.resolve(response.json()).then(function (newData) {
16429
16433
  if (loadedPageCount == 1) {
@@ -16437,10 +16441,12 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16437
16441
  }
16438
16442
  totalPageCount = newData.PageCount;
16439
16443
  totalRecordCount = newData.RowCount;
16444
+ setLoading(false);
16440
16445
  });
16441
16446
  });
16442
16447
  }, function (error) {
16443
16448
  console.error('Error fetching data:', error);
16449
+ setLoading(false);
16444
16450
  });
16445
16451
  }, function (_wasThrown, _result) {
16446
16452
  if (_wasThrown) throw _result;
@@ -16704,6 +16710,19 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16704
16710
  text: 'Passive',
16705
16711
  value: false
16706
16712
  }]
16713
+ }), col.useDynamicHeaderFilter && React.createElement(HeaderFilter, {
16714
+ allowSearch: true,
16715
+ dataSource: [{
16716
+ text: '(Blanks)',
16717
+ value: null
16718
+ }].concat(data.filter(function (item) {
16719
+ return item[col.dataField] !== null && item[col.dataField] !== undefined && item[col.dataField] !== '';
16720
+ }).map(function (item) {
16721
+ return {
16722
+ text: item[col.dataField].toString(),
16723
+ value: item[col.dataField]
16724
+ };
16725
+ }))
16707
16726
  }), col.multiLevelColumns && col.multiLevelColumns.map(function (multiLevelColItem) {
16708
16727
  return React.createElement(Column, {
16709
16728
  dataField: multiLevelColItem.dataField,
@@ -16786,7 +16805,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16786
16805
  scrollByContent: true,
16787
16806
  scrollByThumb: true,
16788
16807
  mode: "infinite"
16789
- }), React.createElement(LoadPanel, {
16808
+ }), loading && React.createElement(LoadPanel, {
16790
16809
  enabled: true,
16791
16810
  shadingColor: "rgba(0,0,0,0.4)"
16792
16811
  }), React.createElement(SearchPanel, {