ods-component-lib 1.18.199 → 1.18.201

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 CHANGED
@@ -33160,10 +33160,14 @@ var ExportDataGridToExcel = function ExportDataGridToExcel(_ref) {
33160
33160
  rowCount++;
33161
33161
  lastProcessedRowData = gridCell.data;
33162
33162
  }
33163
- if ((gridCell.column.dataType === "datetime" || gridCell.column.dataType === "date" || gridCell.column.dataField === "CreateDate" || gridCell.column.dataField === "ModifyDate") && gridCell.value) {
33163
+ if ((gridCell.column.dataType === "datetime" || gridCell.column.dataField === "CreateDate" || gridCell.column.dataField === "ModifyDate") && gridCell.value) {
33164
33164
  var date = moment(gridCell.value);
33165
33165
  var formattedDate = date.format("DD.MM.YYYY HH:mm");
33166
33166
  excelCell.value = formattedDate;
33167
+ } else if (gridCell.column.dataType === "date" && gridCell.value) {
33168
+ var _date = moment(gridCell.value);
33169
+ var _formattedDate = _date.format("DD.MM.YYYY");
33170
+ excelCell.value = _formattedDate;
33167
33171
  } else {
33168
33172
  excelCell.font = {
33169
33173
  name: 'Arial',
@@ -33204,7 +33208,7 @@ var ExportDataGridToExcel = function ExportDataGridToExcel(_ref) {
33204
33208
 
33205
33209
  var useToken$1 = antd.theme.useToken;
33206
33210
  var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33207
- var _props$columnResizing, _props$selection, _props$selectOptions, _props$selectOptions$, _props$selectOptions2, _props$selectOptions$2, _props$selectOptions3;
33211
+ var _props$columnResizing, _props$className, _props$selection, _props$selectOptions, _props$selectOptions$, _props$selectOptions2, _props$selectOptions$2, _props$selectOptions3;
33208
33212
  var keyExpr = props.keyExpr,
33209
33213
  hasFastUpdate = props.hasFastUpdate,
33210
33214
  fastUpdateButtonText = props.fastUpdateButtonText,
@@ -33874,7 +33878,7 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33874
33878
  enabled: true
33875
33879
  },
33876
33880
  noDataText: props.noDataText,
33877
- className: gridStyle.grid,
33881
+ className: gridStyle.grid + " " + ((_props$className = props.className) != null ? _props$className : ""),
33878
33882
  selection: (_props$selection = props.selection) != null ? _props$selection : {
33879
33883
  mode: "multiple",
33880
33884
  selectAllMode: "page"