Skip to content

Commit

Permalink
Merge pull request #188 from KorzhCom/dev
Browse files Browse the repository at this point in the history
Version 1.5.4
  • Loading branch information
korzh authored Mar 14, 2024
2 parents 9c1969c + 39e11fc commit 2a7a2bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions easydata.js/packs/ui/src/grid/easy_grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class EasyGrid implements EasyGridBase {
allowDragDrop: false,
aggregates: {
settings: null,
calculator: null
calculatorRef: null
},
paging: {
enabled: true,
Expand Down Expand Up @@ -710,7 +710,7 @@ export class EasyGrid implements EasyGridBase {
rowElement.appendChild(this.renderCell(column, index, val, rowElement));
});

const aggrContainer = this.options.aggregates.calculator.getAggrContainer();
const aggrContainer = this.options.aggregates.calculatorRef.getAggrContainer();
const aggrCols = aggrSettings.getAggregates().map(c => c.colId);

const key = aggrSettings.buildGroupKey(group, row);
Expand Down
2 changes: 1 addition & 1 deletion easydata.js/packs/ui/src/grid/easy_grid_options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface EasyGridOptions {
aggregates?: {
showGrandTotalsOnEachPage?: boolean,
settings: AggregationSettings,
calculator: AggregatesCalculator
calculatorRef: AggregatesCalculator
},
showPlusButton?: boolean;
plusButtonTitle?: string;
Expand Down
6 changes: 3 additions & 3 deletions easydata.js/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.5.3",
"baseVersion": "1.5.3",
"assetVersion": "01_05_03",
"version": "1.5.4",
"baseVersion": "1.5.4",
"assetVersion": "01_05_04",
"tag": "latest"
}
8 changes: 1 addition & 7 deletions easydata.net/src/EasyData.Core/MetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public MetaData()
nullEntity.Name = "";

AddDefaultDisplayFormats();

}

/// <summary>
Expand Down Expand Up @@ -523,7 +522,7 @@ private void CheckModelId()


/// <summary>
/// Inits the model loading.
/// Initializes the model loading.
/// </summary>
public virtual void InitModelLoading()
{
Expand Down Expand Up @@ -912,18 +911,13 @@ protected virtual async Task WriteModelPropsToJsonAsync(JsonWriter writer, BitOp
/// <returns>Task.</returns>
protected virtual async Task WriteContentToJsonAsync(JsonWriter writer, BitOptions rwOptions, CancellationToken ct)
{

await writer.WritePropertyNameAsync("displayFormats", ct).ConfigureAwait(false);
await WriteDisplayFormatsToJsonAsync(writer, ct).ConfigureAwait(false);

await WriteBasicNodesAsync(writer, rwOptions, ct).ConfigureAwait(false);

await WriteEntitiesAsync(writer, rwOptions, ct).ConfigureAwait(false);
}

protected virtual async Task WriteBasicNodesAsync(JsonWriter writer, BitOptions rwOptions, CancellationToken ct)
{

await writer.WritePropertyNameAsync("displayFormats", ct).ConfigureAwait(false);
await WriteDisplayFormatsToJsonAsync(writer, ct).ConfigureAwait(false);

Expand Down

0 comments on commit 2a7a2bb

Please sign in to comment.