Skip to content

Commit

Permalink
Merge pull request #204 from nzzdev/release-7.3.1
Browse files Browse the repository at this point in the history
Release 7.3.1
  • Loading branch information
dnlbln authored Aug 10, 2023
2 parents b95a3ae + 844604e commit 3ce0d11
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function formatCell(rawValue, type, useGroupingSeparator = false) {
else {
prefix = '➙ ';
}
label = `${prefix}${parsedRawValue}%`;
label = `${prefix}${formatLocale.format(`${separator}`)(parsedRawValue)}%`;
break;
default:
label = parsedRawValue.toString();
Expand Down Expand Up @@ -2906,23 +2906,23 @@ var optionAvailability = {
if (typeof item.options.minibar.selectedColumn === 'number') {
const type = getMinibarNumbersWithType(item.data.table, item.options.minibar.selectedColumn).type;
return {
available: type === 'mixed' || type === 'positive',
available: type === MINIBAR_TYPE.MIXED || type === MINIBAR_TYPE.POSITIVE,
};
}
}
if (optionName === 'barColorNegative') {
if (typeof item.options.minibar.selectedColumn === 'number') {
const type = getMinibarNumbersWithType(item.data.table, item.options.minibar.selectedColumn).type;
return {
available: type === 'mixed' || type === 'negative',
available: type === MINIBAR_TYPE.MIXED || type === MINIBAR_TYPE.NEGATIVE,
};
}
}
if (optionName === 'invertColors') {
if (typeof item.options.minibar.selectedColumn === 'number') {
const type = getMinibarNumbersWithType(item.data.table, item.options.minibar.selectedColumn).type;
return {
available: type === 'mixed',
available: type === MINIBAR_TYPE.MIXED,
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q-table",
"version": "7.3.0",
"version": "7.3.1",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function formatCell(rawValue: QTableCellDataRaw, type: FormattingType, useGroupi
prefix = '➙ ';
}

label = `${prefix}${parsedRawValue}%`;
label = `${prefix}${formatLocale.format(`${separator}`)(parsedRawValue)}%`;
break;

default:
Expand Down
2 changes: 1 addition & 1 deletion tests/dom/formatting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('formatting', () => {
'1,0% ',
'1,00% ',
'1,000% ',
'➘ -1% ',
'➘ 1% ',

// Row 3.
'9999 ',
Expand Down

0 comments on commit 3ce0d11

Please sign in to comment.