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.
@@ -33136,10 +33136,14 @@ var ExportDataGridToExcel = function ExportDataGridToExcel(_ref) {
33136
33136
  rowCount++;
33137
33137
  lastProcessedRowData = gridCell.data;
33138
33138
  }
33139
- if ((gridCell.column.dataType === "datetime" || gridCell.column.dataType === "date" || gridCell.column.dataField === "CreateDate" || gridCell.column.dataField === "ModifyDate") && gridCell.value) {
33139
+ if ((gridCell.column.dataType === "datetime" || gridCell.column.dataField === "CreateDate" || gridCell.column.dataField === "ModifyDate") && gridCell.value) {
33140
33140
  var date = moment(gridCell.value);
33141
33141
  var formattedDate = date.format("DD.MM.YYYY HH:mm");
33142
33142
  excelCell.value = formattedDate;
33143
+ } else if (gridCell.column.dataType === "date" && gridCell.value) {
33144
+ var _date = moment(gridCell.value);
33145
+ var _formattedDate = _date.format("DD.MM.YYYY");
33146
+ excelCell.value = _formattedDate;
33143
33147
  } else {
33144
33148
  excelCell.font = {
33145
33149
  name: 'Arial',
@@ -33180,7 +33184,7 @@ var ExportDataGridToExcel = function ExportDataGridToExcel(_ref) {
33180
33184
 
33181
33185
  var useToken$1 = theme.useToken;
33182
33186
  var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33183
- var _props$columnResizing, _props$selection, _props$selectOptions, _props$selectOptions$, _props$selectOptions2, _props$selectOptions$2, _props$selectOptions3;
33187
+ var _props$columnResizing, _props$className, _props$selection, _props$selectOptions, _props$selectOptions$, _props$selectOptions2, _props$selectOptions$2, _props$selectOptions3;
33184
33188
  var keyExpr = props.keyExpr,
33185
33189
  hasFastUpdate = props.hasFastUpdate,
33186
33190
  fastUpdateButtonText = props.fastUpdateButtonText,
@@ -33850,7 +33854,7 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33850
33854
  enabled: true
33851
33855
  },
33852
33856
  noDataText: props.noDataText,
33853
- className: gridStyle.grid,
33857
+ className: gridStyle.grid + " " + ((_props$className = props.className) != null ? _props$className : ""),
33854
33858
  selection: (_props$selection = props.selection) != null ? _props$selection : {
33855
33859
  mode: "multiple",
33856
33860
  selectAllMode: "page"