@smartbit4all/ng-client 3.3.114 → 3.3.115
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/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +16 -6
- package/fesm2015/smartbit4all-ng-client.mjs +16 -6
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +15 -5
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +4 -0
- package/lib/smart-grid/api/grid-api/model/gridModel.d.ts +2 -0
- package/lib/smart-grid/api/grid-api/model/gridServerModel.d.ts +2 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.115.tgz +0 -0
- package/smartbit4all-ng-client-3.3.114.tgz +0 -0
|
@@ -10365,16 +10365,26 @@ class SmartGridComponent {
|
|
|
10365
10365
|
}
|
|
10366
10366
|
let properties = customTableHeader?.properties;
|
|
10367
10367
|
if (!properties) {
|
|
10368
|
-
if (descColumn.typeClass === 'java.time.OffsetDateTime'
|
|
10368
|
+
if (descColumn.typeClass === 'java.time.OffsetDateTime' ||
|
|
10369
|
+
descColumn.typeClass === 'java.time.LocalDateTime') {
|
|
10370
|
+
let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd H:mm';
|
|
10369
10371
|
properties = {
|
|
10370
10372
|
type: SmartTableHeaderPropertyType.DATETIME,
|
|
10371
|
-
dateFormat
|
|
10373
|
+
dateFormat,
|
|
10372
10374
|
};
|
|
10373
10375
|
}
|
|
10374
|
-
else if (descColumn.typeClass === 'java.time.
|
|
10376
|
+
else if (descColumn.typeClass === 'java.time.LocalDate') {
|
|
10377
|
+
let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd';
|
|
10375
10378
|
properties = {
|
|
10376
|
-
type: SmartTableHeaderPropertyType.
|
|
10377
|
-
dateFormat
|
|
10379
|
+
type: SmartTableHeaderPropertyType.DATE,
|
|
10380
|
+
dateFormat,
|
|
10381
|
+
};
|
|
10382
|
+
}
|
|
10383
|
+
else if (descColumn.typeClass === 'java.time.LocalTime') {
|
|
10384
|
+
let dateFormat = descColumn.typeFormat ?? 'H:mm';
|
|
10385
|
+
properties = {
|
|
10386
|
+
type: SmartTableHeaderPropertyType.TIME,
|
|
10387
|
+
dateFormat,
|
|
10378
10388
|
};
|
|
10379
10389
|
}
|
|
10380
10390
|
}
|