@smartbit4all/ng-client 3.3.113 → 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/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +6 -4
- package/fesm2015/smartbit4all-ng-client.mjs +21 -9
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +20 -8
- 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.113.tgz +0 -0
|
@@ -5069,10 +5069,12 @@ class UiActionToolbarComponent {
|
|
|
5069
5069
|
}
|
|
5070
5070
|
async setUp() {
|
|
5071
5071
|
if (this.uiActionModels) {
|
|
5072
|
-
|
|
5072
|
+
let uiActionModelsWithDescriptions = [];
|
|
5073
|
+
for (const uiActionModel of this.uiActionModels) {
|
|
5073
5074
|
uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
|
|
5074
|
-
|
|
5075
|
-
}
|
|
5075
|
+
uiActionModelsWithDescriptions.push(uiActionModel);
|
|
5076
|
+
}
|
|
5077
|
+
this.uiActionModelsWithDescriptions = uiActionModelsWithDescriptions;
|
|
5076
5078
|
}
|
|
5077
5079
|
}
|
|
5078
5080
|
async onActionClicked(event, uiActionModel) {
|
|
@@ -10363,16 +10365,26 @@ class SmartGridComponent {
|
|
|
10363
10365
|
}
|
|
10364
10366
|
let properties = customTableHeader?.properties;
|
|
10365
10367
|
if (!properties) {
|
|
10366
|
-
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';
|
|
10367
10371
|
properties = {
|
|
10368
10372
|
type: SmartTableHeaderPropertyType.DATETIME,
|
|
10369
|
-
dateFormat
|
|
10373
|
+
dateFormat,
|
|
10370
10374
|
};
|
|
10371
10375
|
}
|
|
10372
|
-
else if (descColumn.typeClass === 'java.time.
|
|
10376
|
+
else if (descColumn.typeClass === 'java.time.LocalDate') {
|
|
10377
|
+
let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd';
|
|
10373
10378
|
properties = {
|
|
10374
|
-
type: SmartTableHeaderPropertyType.
|
|
10375
|
-
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,
|
|
10376
10388
|
};
|
|
10377
10389
|
}
|
|
10378
10390
|
}
|