@datarailsshared/dr_renderer 1.3.19 → 1.3.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.3.19",
3
+ "version": "1.3.20",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -145,7 +145,7 @@ function DrGaugeChart(pivotData, opts) {
145
145
  return `<span style="display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: ${
146
146
  options.label.font_size
147
147
  }px;">
148
- <span style="font-weight: 600; font-size: 1.5em; line-height: 1; color: ${options.label.font_color}">
148
+ <span style="font-weight: 600; font-size: 1.3em; line-height: 1; color: ${options.label.font_color}">
149
149
  ${this.formatValue(value)}
150
150
  ${
151
151
  options.label.show_percentage_in_value
@@ -461,7 +461,7 @@ describe("DrGaugeChart", () => {
461
461
  expect(simplifyString(label)).toBe(
462
462
  simplifyString(
463
463
  `<span style="display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px;">
464
- <span style="font-weight: 600; font-size: 1.5em; line-height: 1; color: #000">
464
+ <span style="font-weight: 600; font-size: 1.3em; line-height: 1; color: #000">
465
465
  ${mockFormattedValue}
466
466
  </span>
467
467
  <span style="font-weight: 500; font-size: 0.875em; line-height: 1; color: #808080;">Current status</span>
@@ -486,7 +486,7 @@ describe("DrGaugeChart", () => {
486
486
  expect(simplifyString(label)).toBe(
487
487
  simplifyString(
488
488
  `<span style="display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 24px;">
489
- <span style="font-weight: 600; font-size: 1.5em; line-height: 1; color: #000">
489
+ <span style="font-weight: 600; font-size: 1.3em; line-height: 1; color: #000">
490
490
  ${mockFormattedValue}
491
491
  <span style="font-size: 0.5833em; font-weight: 600; color: #929292;">(56%)</span>
492
492
  </span>