Skip to content

Commit

Permalink
Merge pull request #276 from rpbouman/dev
Browse files Browse the repository at this point in the history
fix titals and export
  • Loading branch information
rpbouman authored Dec 3, 2024
2 parents 27ccae2 + a428f1c commit c9814d5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
16 changes: 8 additions & 8 deletions src/ExportUi/ExportDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ExportUi {
"ESCAPE": `'${escape.replace('\'', "''")}'`,
"DATEFORMAT": `'${dateFormat.replace('\'', "''")}'`,
"TIMESTAMPFORMAT": `'${timestampFormat.replace('\'', "''")}'`,
"COMPRESSION": compression,
"COMPRESSION": compression.value,
};
mimeType = 'text/csv';
fileExtension = 'csv';
Expand All @@ -161,7 +161,7 @@ class ExportUi {
"FORMAT": 'JSON',
"DATEFORMAT": `'${dateFormat.replace('\'', "''")}'`,
"TIMESTAMPFORMAT": `'${timestampFormat.replace('\'', "''")}'`,
"COMPRESSION": compression,
"COMPRESSION": compression.value,
"ARRAY": rowDelimiter.toUpperCase()
};
mimeType = 'application/json';
Expand All @@ -171,7 +171,7 @@ class ExportUi {
compression = exportSettings[exportType + 'Compression'];
copyStatementOptions = {
"FORMAT": 'PARQUET',
"COMPRESSION": compression,
"COMPRESSION": compression.value,
};
mimeType = 'application/vnd.apache.parquet';
fileExtension = 'parquet';
Expand Down Expand Up @@ -202,12 +202,12 @@ class ExportUi {
data = sql;
}

if (compression && compression !== 'UNCOMPRESSED'){
if (compression && compression.value !== 'UNCOMPRESSED'){
if (exportType === 'exportParquet'){
fileExtension = `${compression.toLowerCase()}.${fileExtension}`;
fileExtension = `${compression.value.toLowerCase()}.${fileExtension}`;
}
else {
switch (compression){
switch (compression.value){
case 'GZIP':
mimeType = 'application/gzip';
break;
Expand All @@ -217,7 +217,7 @@ class ExportUi {
default:
mimeType = 'application/octet-stream';
}
fileExtension += `.${compression.toLowerCase()}`;
fileExtension += `.${compression.value.toLowerCase()}`;
}
}

Expand Down Expand Up @@ -396,7 +396,7 @@ class ExportDialog {
valueProperty = 'value';
}
var value = control[valueProperty];
exportSettings[id] = value;
exportSettings[id] = control.tagName === 'SELECT' ? {value: value} : value;
return;
case 'object':
if (setting instanceof Array) {
Expand Down
23 changes: 12 additions & 11 deletions src/PivotTableUi/PivotTableUi.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,21 @@
text-align: right;
}

.pivotTableUiCell[data-value-type^=Decimal][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^=Float][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^=Int][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^="List<Decimal>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^="List<Float>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^="List<Int>"][data-totals=true] > .pivotTableUiCellLabel {
.pivotTableUiCell[data-axis=rows][data-value-type^=Decimal][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^=Decimal][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^=Float][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^=Float][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^=Int][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^=Int][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Decimal>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Decimal>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Float>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Float>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Int>"][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-axis=columns][data-value-type^="List<Int>"][data-totals=true] > .pivotTableUiCellLabel {
font-family: unset
}

.pivotTableUiCell[data-value-type^=Decimal][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^=Float][data-totals=true] > .pivotTableUiCellLabel,
.pivotTableUiCell[data-value-type^=Int][data-totals=true] > .pivotTableUiCellLabel {
text-align: unset;
}
}


Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</style>

<script>
var hueyVersionNumber = '0.0.8';
var hueyVersionName = 'Ancona';
var hueyVersionNumber = '0.0.9';
var hueyVersionName = 'Antigua';
// see: https://cdn.jsdelivr.net/npm/@tabler/[email protected]/
var tablerIconsFontVersion = '3.23.0';
var tablerIconsFontUrl = `https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@${tablerIconsFontVersion}/dist/fonts/tabler-icons.woff2?v${tablerIconsFontVersion}`;
Expand Down

0 comments on commit c9814d5

Please sign in to comment.