ods-component-lib 1.15.0 → 1.16.0

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.css CHANGED
@@ -19,13 +19,13 @@ tr._2CvVM._3udtX._32nFu{
19
19
  line-height: 22px;
20
20
  }
21
21
 
22
- ._2jY0l {
23
- padding: 10px 10px 10px 10px;
24
- }
25
-
26
22
  ._32nFu[role="columnheader"]{
27
- background: var(--controlItemBgActive, #E6F4FF) !important;
23
+ background: #E6F4FF !important;
28
24
  display: flex;
29
25
  align-items: center;
30
26
  flex: 1 0 0;
27
+ }
28
+
29
+ ._2jY0l {
30
+ padding-top: 10px !important;
31
31
  }
package/dist/index.js CHANGED
@@ -1199,7 +1199,13 @@ var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
1199
1199
  }
1200
1200
  if (e.column.dataType === 'datetime') {
1201
1201
  if (e.value !== null) {
1202
- var formatedDate = moment(e.value).format('DD.MM.YYYY HH.mm (ZZ)');
1202
+ var date = moment(e.value);
1203
+ var offsetMinutes = date.utcOffset();
1204
+ var sign = offsetMinutes >= 0 ? '+' : '-';
1205
+ var hours = Math.floor(Math.abs(offsetMinutes) / 60);
1206
+ var minutes = Math.abs(offsetMinutes) % 60;
1207
+ var formattedOffset = "(UTC" + sign + hours.toString().padStart(2, '0') + ":" + minutes.toString().padStart(2, '0') + ")";
1208
+ var formatedDate = date.format('DD.MM.YYYY HH.mm') + " " + formattedOffset;
1203
1209
  return formatedDate;
1204
1210
  }
1205
1211
  }