@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.
@@ -5069,10 +5069,12 @@ class UiActionToolbarComponent {
5069
5069
  }
5070
5070
  async setUp() {
5071
5071
  if (this.uiActionModels) {
5072
- this.uiActionModelsWithDescriptions = await Promise.all(this.uiActionModels.map(async (uiActionModel) => {
5072
+ let uiActionModelsWithDescriptions = [];
5073
+ for (const uiActionModel of this.uiActionModels) {
5073
5074
  uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
5074
- return uiActionModel;
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: 'yyyy.MM.dd H:mm',
10373
+ dateFormat,
10370
10374
  };
10371
10375
  }
10372
- else if (descColumn.typeClass === 'java.time.OffsetDate') {
10376
+ else if (descColumn.typeClass === 'java.time.LocalDate') {
10377
+ let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd';
10373
10378
  properties = {
10374
- type: SmartTableHeaderPropertyType.DATETIME,
10375
- dateFormat: 'yyyy.MM.dd',
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
  }