@flux-ui/statistics 3.2.0-beta.0 → 3.2.0-beta.10

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.
@@ -1,11 +1,13 @@
1
1
  import { FluxStatisticsChartBubbleSeries } from '@flux-ui/types';
2
2
  import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
3
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
5
  type __VLS_Props = {
5
6
  readonly advancedOptions?: EChartsOption;
6
7
  readonly series: readonly FluxStatisticsChartBubbleSeries[];
7
8
  readonly splitLines?: boolean;
8
9
  readonly tooltip?: boolean;
10
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
9
11
  readonly xAxisLabels?: boolean;
10
12
  readonly yAxisLabels?: boolean;
11
13
  };
@@ -1,11 +1,13 @@
1
1
  import { FluxStatisticsChartScatterSeries } from '@flux-ui/types';
2
2
  import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
3
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
5
  type __VLS_Props = {
5
6
  readonly advancedOptions?: EChartsOption;
6
7
  readonly series: readonly FluxStatisticsChartScatterSeries[];
7
8
  readonly splitLines?: boolean;
8
9
  readonly tooltip?: boolean;
10
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
9
11
  readonly xAxisLabels?: boolean;
10
12
  readonly yAxisLabels?: boolean;
11
13
  };
@@ -1,8 +1,5 @@
1
- import { ComputedRef } from 'vue';
2
1
  import { useI18n } from 'vue-i18n';
3
- import { EChartsInstance } from './useECharts';
4
2
  export interface UseChartBaseSetupReturn {
5
3
  readonly t: ReturnType<typeof useI18n>['t'];
6
- readonly chartInstance: ComputedRef<EChartsInstance | null>;
7
4
  }
8
5
  export declare function useChartBaseSetup(): UseChartBaseSetupReturn;
package/dist/index.css CHANGED
@@ -260,6 +260,8 @@
260
260
  position: relative;
261
261
  display: block;
262
262
  align-self: center;
263
+ min-height: var(--min-height, auto);
264
+ max-height: var(--max-height, none);
263
265
  }
264
266
 
265
267
  .pane-header + .statistics-chart-pane-container {
package/dist/index.js CHANGED
@@ -788,7 +788,11 @@ var Locale = class Locale {
788
788
  }
789
789
  static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {
790
790
  const specifiedLocale = locale || Settings.defaultLocale;
791
- return new Locale(specifiedLocale || (defaultToEN ? "en-US" : systemLocale()), numberingSystem || Settings.defaultNumberingSystem, outputCalendar || Settings.defaultOutputCalendar, validateWeekSettings(weekSettings) || Settings.defaultWeekSettings, specifiedLocale);
791
+ const localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale());
792
+ const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;
793
+ const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;
794
+ const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;
795
+ return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);
792
796
  }
793
797
  static resetCache() {
794
798
  sysLocaleCache = null;
@@ -6183,7 +6187,7 @@ function friendlyDateTime(dateTimeish) {
6183
6187
  else throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`);
6184
6188
  }
6185
6189
  //#endregion
6186
- //#region ../../node_modules/.bun/@basmilius+utils@3.45.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
6190
+ //#region ../../node_modules/.bun/@basmilius+utils@3.50.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
6187
6191
  function p$3(e, t = 0) {
6188
6192
  let n = typeof navigator < `u` ? navigator.language : `nl-NL`;
6189
6193
  return new Intl.NumberFormat(n, {
@@ -6220,7 +6224,7 @@ function K$1(e, t, n) {
6220
6224
  Object.defineProperty(e, t, { value: n });
6221
6225
  }
6222
6226
  //#endregion
6223
- //#region ../internals/dist/util-DjGcg63Z.js
6227
+ //#region ../internals/dist/util-vNzwiqjo.js
6224
6228
  var o$1 = [
6225
6229
  `a[href]:not([disabled])`,
6226
6230
  `button:not([disabled])`,
@@ -7261,7 +7265,7 @@ var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
7261
7265
  };
7262
7266
  //#endregion
7263
7267
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
7264
- var k$3 = Math.pow(29, 3) / Math.pow(3, 3);
7268
+ var k$4 = Math.pow(29, 3) / Math.pow(3, 3);
7265
7269
  var e$3 = Math.pow(6, 3) / Math.pow(29, 3);
7266
7270
  //#endregion
7267
7271
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/constants.js
@@ -7279,7 +7283,7 @@ Math.pow(29, 3) / Math.pow(3, 3);
7279
7283
  Math.pow(6, 3) / Math.pow(29, 3);
7280
7284
  //#endregion
7281
7285
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
7282
- var fn$2 = (v) => Math.pow(v, 3) > e$3 ? Math.pow(v, 3) : (116 * v - 16) / k$3;
7286
+ var fn$2 = (v) => Math.pow(v, 3) > e$3 ? Math.pow(v, 3) : (116 * v - 16) / k$4;
7283
7287
  var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
7284
7288
  if (l === void 0) l = 0;
7285
7289
  if (a === void 0) a = 0;
@@ -7301,7 +7305,7 @@ var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
7301
7305
  var convertLab65ToRgb = (lab) => convertXyz65ToRgb(convertLab65ToXyz65(lab));
7302
7306
  //#endregion
7303
7307
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
7304
- var f$2 = (value) => value > e$3 ? Math.cbrt(value) : (k$3 * value + 16) / 116;
7308
+ var f$2 = (value) => value > e$3 ? Math.cbrt(value) : (k$4 * value + 16) / 116;
7305
7309
  var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
7306
7310
  if (x === void 0) x = 0;
7307
7311
  if (y === void 0) y = 0;
@@ -8163,11 +8167,11 @@ var definition$16 = {
8163
8167
  };
8164
8168
  //#endregion
8165
8169
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
8166
- var k$1 = Math.pow(29, 3) / Math.pow(3, 3);
8170
+ var k$2 = Math.pow(29, 3) / Math.pow(3, 3);
8167
8171
  var e$1 = Math.pow(6, 3) / Math.pow(29, 3);
8168
8172
  //#endregion
8169
8173
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
8170
- var fn$1 = (v) => Math.pow(v, 3) > e$1 ? Math.pow(v, 3) : (116 * v - 16) / k$1;
8174
+ var fn$1 = (v) => Math.pow(v, 3) > e$1 ? Math.pow(v, 3) : (116 * v - 16) / k$2;
8171
8175
  var convertLabToXyz50 = ({ l, a, b, alpha }) => {
8172
8176
  if (l === void 0) l = 0;
8173
8177
  if (a === void 0) a = 0;
@@ -8216,7 +8220,7 @@ var convertRgbToXyz50 = (rgb) => {
8216
8220
  };
8217
8221
  //#endregion
8218
8222
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
8219
- var f$1 = (value) => value > e$1 ? Math.cbrt(value) : (k$1 * value + 16) / 116;
8223
+ var f$1 = (value) => value > e$1 ? Math.cbrt(value) : (k$2 * value + 16) / 116;
8220
8224
  var convertXyz50ToLab = ({ x, y, z, alpha }) => {
8221
8225
  if (x === void 0) x = 0;
8222
8226
  if (y === void 0) y = 0;
@@ -8422,7 +8426,7 @@ var u_fn$1 = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
8422
8426
  var v_fn$1 = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
8423
8427
  var un$2 = u_fn$1(D50.X, D50.Y, D50.Z);
8424
8428
  var vn$2 = v_fn$1(D50.X, D50.Y, D50.Z);
8425
- var l_fn = (value) => value <= e$1 ? k$1 * value : 116 * Math.cbrt(value) - 16;
8429
+ var l_fn = (value) => value <= e$1 ? k$2 * value : 116 * Math.cbrt(value) - 16;
8426
8430
  var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
8427
8431
  if (x === void 0) x = 0;
8428
8432
  if (y === void 0) y = 0;
@@ -8462,7 +8466,7 @@ var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
8462
8466
  if (v === void 0) v = 0;
8463
8467
  let up = u / (13 * l) + un$1;
8464
8468
  let vp = v / (13 * l) + vn$1;
8465
- let y = D50.Y * (l <= 8 ? l / k$1 : Math.pow((l + 16) / 116, 3));
8469
+ let y = D50.Y * (l <= 8 ? l / k$2 : Math.pow((l + 16) / 116, 3));
8466
8470
  let res = {
8467
8471
  mode: "xyz50",
8468
8472
  x: y * (9 * up) / (4 * vp),
@@ -9428,7 +9432,7 @@ useMode(definition$2);
9428
9432
  useMode(definition$1);
9429
9433
  useMode(definition);
9430
9434
  //#endregion
9431
- //#region ../../node_modules/.bun/@basmilius+http-client@3.45.0+4ee6465b33b5b900/node_modules/@basmilius/http-client/dist/index.mjs
9435
+ //#region ../../node_modules/.bun/@basmilius+http-client@3.50.0+2111c3e180df0f85/node_modules/@basmilius/http-client/dist/index.mjs
9432
9436
  function adapter_default(Parent) {
9433
9437
  return class extends Parent {
9434
9438
  constructor(...args) {
@@ -9972,38 +9976,38 @@ function Oe$1(e, t, n) {
9972
9976
  onScopeDispose(o);
9973
9977
  }
9974
9978
  //#endregion
9975
- //#region ../internals/dist/composable-ByAxh3HA.js
9976
- function R$1(e, { cycle: t = !0, direction: n = `bidirectional`, ignore: r } = {}) {
9977
- we$1(e, () => s(o(), !1), {
9979
+ //#region ../internals/dist/composable-Cr4VA1Rs.js
9980
+ function L$1(e, { cycle: t = !0, direction: r = `bidirectional`, ignore: i } = {}) {
9981
+ we$1(e, () => s(a(), !1), {
9978
9982
  childList: !0,
9979
9983
  subtree: !0
9980
9984
  });
9981
- function o() {
9982
- let t = s$1(G$1(e), r), n = t.findIndex((e) => _$1(e) && !e.hasAttribute(`aria-disabled`)), o = t.findIndex((e) => !e.hasAttribute(`aria-disabled`));
9983
- return n > -1 ? n : o > -1 ? o : 0;
9985
+ function a() {
9986
+ let t = s$1(G$1(e), i), r = t.findIndex((e) => _$1(e) && !e.hasAttribute(`aria-disabled`)), a = t.findIndex((e) => !e.hasAttribute(`aria-disabled`));
9987
+ return r > -1 ? r : a > -1 ? a : 0;
9984
9988
  }
9985
- function s(t, n = !0) {
9986
- let i = s$1(G$1(e), r);
9987
- i.forEach((e, n) => e.tabIndex = n === t ? 0 : -1), n && i[t]?.focus();
9989
+ function s(t, r = !0) {
9990
+ let a = s$1(G$1(e), i);
9991
+ a.forEach((e, n) => e.tabIndex = n === t ? 0 : -1), r && a[t]?.focus();
9988
9992
  }
9989
- function c(i) {
9990
- let o = G$1(e), c = s$1(o, r);
9991
- if (![`Enter`, ` `].includes(i.key)) switch (n) {
9993
+ function c(a) {
9994
+ let o = G$1(e), c = s$1(o, i);
9995
+ if (![`Enter`, ` `].includes(a.key)) switch (r) {
9992
9996
  case `bidirectional`:
9993
- z$1(i, o, c, s, r);
9997
+ R$1(a, o, c, s, i);
9994
9998
  break;
9995
9999
  case `horizontal`:
9996
10000
  case `vertical`:
9997
- B$1(i, o, t, n, c, s, r);
10001
+ z$1(a, o, t, r, c, s, i);
9998
10002
  break;
9999
10003
  }
10000
10004
  }
10001
10005
  watch(e, (t, n, r) => {
10002
10006
  let i = G$1(e);
10003
- i && (i.addEventListener(`keydown`, c), s(o(), !1), r(() => i.removeEventListener(`keydown`, c)));
10007
+ i && (i.addEventListener(`keydown`, c), s(a(), !1), r(() => i.removeEventListener(`keydown`, c)));
10004
10008
  }, { immediate: !0 });
10005
10009
  }
10006
- function z$1(e, t, r, i, a) {
10010
+ function R$1(e, t, n, r, a) {
10007
10011
  let o;
10008
10012
  switch (e.key) {
10009
10013
  case `ArrowUp`:
@@ -10021,9 +10025,9 @@ function z$1(e, t, r, i, a) {
10021
10025
  default: return;
10022
10026
  }
10023
10027
  let s = c$2(t, document.activeElement, o, a);
10024
- s && i(r.indexOf(s)), e.preventDefault();
10028
+ s && r(n.indexOf(s)), e.preventDefault();
10025
10029
  }
10026
- function B$1(e, n, r, i, a, o, s) {
10030
+ function z$1(e, n, r, i, a, o, s) {
10027
10031
  let c;
10028
10032
  if (e.key === (i === `horizontal` ? `ArrowLeft` : `ArrowUp`)) c = -1;
10029
10033
  else if (e.key === (i === `horizontal` ? `ArrowRight` : `ArrowDown`)) c = 1;
@@ -10038,11 +10042,7 @@ var oe = `#ef4444`, _e = `#f97316`, Oe = `#f59e0b`, ze = `#eab308`, Xe = `#84cc1
10038
10042
  //#region src/composable/useChartBaseSetup.ts
10039
10043
  function useChartBaseSetup() {
10040
10044
  const { t } = useI18n({ useScope: "parent" });
10041
- const chartRef = useTemplateRef("chartRef");
10042
- return {
10043
- t,
10044
- chartInstance: computed(() => chartRef.value?.chartInstance ?? null)
10045
- };
10045
+ return { t };
10046
10046
  }
10047
10047
  //#endregion
10048
10048
  //#region src/composable/useChartLegend.ts
@@ -10713,7 +10713,8 @@ function buildBoxPlotTooltip(input) {
10713
10713
  const point = s?.data[dataIndex];
10714
10714
  if (!s || !point) return "";
10715
10715
  const color = palette[seriesIndex % palette.length];
10716
- return renderTooltip(t, styles, [s.name ? t(String(s.name)) : "", point.label ? t(String(point.label)) : ""].filter(Boolean).join(" — "), [
10716
+ const title = [s.name ? t(String(s.name)) : "", point.label ? t(String(point.label)) : ""].filter(Boolean).join(" — ");
10717
+ const items = [
10717
10718
  {
10718
10719
  name: "Min",
10719
10720
  value: point.min,
@@ -10739,7 +10740,8 @@ function buildBoxPlotTooltip(input) {
10739
10740
  value: point.max,
10740
10741
  color
10741
10742
  }
10742
- ]);
10743
+ ];
10744
+ return renderTooltip(t, styles, title, items);
10743
10745
  };
10744
10746
  return { tooltip: {
10745
10747
  show: true,
@@ -10763,7 +10765,8 @@ function buildCandlestickTooltip(input) {
10763
10765
  const positive = resolveChartColor(s.positiveColor) ?? "var(--success-500)";
10764
10766
  const negative = resolveChartColor(s.negativeColor) ?? "var(--danger-500)";
10765
10767
  const color = point.close >= point.open ? positive : negative;
10766
- return renderTooltip(t, styles, [s.name ? t(String(s.name)) : "", point.label ? t(String(point.label)) : ""].filter(Boolean).join(" — "), [
10768
+ const title = [s.name ? t(String(s.name)) : "", point.label ? t(String(point.label)) : ""].filter(Boolean).join(" — ");
10769
+ const items = [
10767
10770
  {
10768
10771
  name: "Open",
10769
10772
  value: point.open,
@@ -10784,7 +10787,8 @@ function buildCandlestickTooltip(input) {
10784
10787
  value: point.high,
10785
10788
  color
10786
10789
  }
10787
- ]);
10790
+ ];
10791
+ return renderTooltip(t, styles, title, items);
10788
10792
  };
10789
10793
  return { tooltip: {
10790
10794
  show: true,
@@ -10830,12 +10834,14 @@ function buildGaugeTooltip(input) {
10830
10834
  const s = series[seriesIndex];
10831
10835
  if (!s) return "";
10832
10836
  const color = palette[seriesIndex % palette.length];
10833
- return renderTooltip(t, styles, s.name ? t(String(s.name)) : "", [{
10837
+ const title = s.name ? t(String(s.name)) : "";
10838
+ const items = [{
10834
10839
  name: "",
10835
10840
  value: s.value,
10836
10841
  color,
10837
10842
  icon: s.icon
10838
- }]);
10843
+ }];
10844
+ return renderTooltip(t, styles, title, items);
10839
10845
  };
10840
10846
  return { tooltip: {
10841
10847
  show: true,
@@ -10856,11 +10862,13 @@ function buildHeatmapTooltip(input) {
10856
10862
  const s = series[seriesIndex];
10857
10863
  const point = s?.data[dataIndex];
10858
10864
  if (!s || !point) return "";
10859
- return renderTooltip(t, styles, [s.name ? t(String(s.name)) : "", `${t(String(point.x))} · ${t(String(point.y))}`].filter(Boolean).join(" — "), [{
10865
+ const title = [s.name ? t(String(s.name)) : "", `${t(String(point.x))} · ${t(String(point.y))}`].filter(Boolean).join(" — ");
10866
+ const items = [{
10860
10867
  name: "",
10861
10868
  value: point.formatted ?? point.value,
10862
10869
  color: "var(--primary-600)"
10863
- }]);
10870
+ }];
10871
+ return renderTooltip(t, styles, title, items);
10864
10872
  };
10865
10873
  return { tooltip: {
10866
10874
  show: true,
@@ -10882,11 +10890,13 @@ function buildRadarTooltip(input) {
10882
10890
  const ring = series[ringIndex];
10883
10891
  if (!ring) return "";
10884
10892
  const color = palette[ringIndex % palette.length];
10885
- return renderTooltip(t, styles, ring.name ? t(String(ring.name)) : "", indicators.map((indicator, idx) => ({
10893
+ const title = ring.name ? t(String(ring.name)) : "";
10894
+ const items = indicators.map((indicator, idx) => ({
10886
10895
  name: indicator.name,
10887
10896
  value: ring.values[idx] ?? "",
10888
10897
  color
10889
- })));
10898
+ }));
10899
+ return renderTooltip(t, styles, title, items);
10890
10900
  };
10891
10901
  return { tooltip: {
10892
10902
  show: true,
@@ -10904,7 +10914,8 @@ function buildSharedItemTooltip(input) {
10904
10914
  const items = getItems();
10905
10915
  const activeIndex = param.dataIndex ?? -1;
10906
10916
  const rawTitle = getTitle?.() ?? "";
10907
- return renderTooltip(t, styles, rawTitle ? t(String(rawTitle)) : "", items, activeIndex, valueFormatter);
10917
+ const title = rawTitle ? t(String(rawTitle)) : "";
10918
+ return renderTooltip(t, styles, title, items, activeIndex, valueFormatter);
10908
10919
  };
10909
10920
  return { tooltip: {
10910
10921
  show: true,
@@ -10922,11 +10933,13 @@ function buildTreemapTooltip(input) {
10922
10933
  const data = param.data;
10923
10934
  if (!data) return "";
10924
10935
  const color = data.itemStyle?.color ?? param.color ?? "var(--primary-600)";
10925
- return renderTooltip(t, styles, data.name ? t(String(data.name)) : "", [{
10936
+ const title = data.name ? t(String(data.name)) : "";
10937
+ const items = [{
10926
10938
  name: "",
10927
10939
  value: data.value ?? "",
10928
10940
  color
10929
- }]);
10941
+ }];
10942
+ return renderTooltip(t, styles, title, items);
10930
10943
  };
10931
10944
  return { tooltip: {
10932
10945
  show: true,
@@ -11087,7 +11100,7 @@ function buildBoxPlotChartOptions(input) {
11087
11100
  //#endregion
11088
11101
  //#region src/util/options/cartesian/buildBubbleChartOptions.ts
11089
11102
  function buildBubbleChartOptions(input) {
11090
- const { series, palette, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
11103
+ const { series, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
11091
11104
  return merge({}, buildCartesianBaseOptions({
11092
11105
  xAxisType: "value",
11093
11106
  yAxisType: "value",
@@ -11099,7 +11112,8 @@ function buildBubbleChartOptions(input) {
11099
11112
  }), tooltip ? buildCartesianTooltip({
11100
11113
  t,
11101
11114
  styles,
11102
- getSeriesIcons: () => series.map((s) => s.icon)
11115
+ getSeriesIcons: () => series.map((s) => s.icon),
11116
+ valueFormatter: tooltipValueFormatter
11103
11117
  }) : { tooltip: { show: false } }, advancedOptions, {
11104
11118
  series: series.map((s, i) => toBubbleSeries({
11105
11119
  ...s,
@@ -11257,7 +11271,7 @@ function buildMixedChartOptions(input) {
11257
11271
  //#endregion
11258
11272
  //#region src/util/options/cartesian/buildScatterChartOptions.ts
11259
11273
  function buildScatterChartOptions(input) {
11260
- const { series, palette, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
11274
+ const { series, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
11261
11275
  return merge({}, buildCartesianBaseOptions({
11262
11276
  xAxisType: "value",
11263
11277
  yAxisType: "value",
@@ -11269,7 +11283,8 @@ function buildScatterChartOptions(input) {
11269
11283
  }), tooltip ? buildCartesianTooltip({
11270
11284
  t,
11271
11285
  styles,
11272
- getSeriesIcons: () => series.map((s) => s.icon)
11286
+ getSeriesIcons: () => series.map((s) => s.icon),
11287
+ valueFormatter: tooltipValueFormatter
11273
11288
  }) : { tooltip: { show: false } }, advancedOptions, {
11274
11289
  series: series.map((s, i) => toScatterSeries({
11275
11290
  ...s,
@@ -11753,13 +11768,16 @@ var FluxStatisticsBase_default = /* @__PURE__ */ defineComponent({
11753
11768
  return (_ctx, _cache) => {
11754
11769
  return openBlock(), createBlock(unref(FluxPane), { class: normalizeClass(__props.isSmall ? unref(Base_module_default).statisticsBaseSmall : unref(Base_module_default).statisticsBase) }, {
11755
11770
  default: withCtx(() => [
11756
- __props.title ? (openBlock(), createElementBlock("div", {
11771
+ __props.title || __props.icon || slots.info ? (openBlock(), createElementBlock("div", {
11757
11772
  key: 0,
11758
11773
  class: normalizeClass(unref(Base_module_default).statisticsBaseHeader)
11759
11774
  }, [
11760
- createElementVNode("span", { class: normalizeClass(unref(Base_module_default).statisticsBaseHeaderTitle) }, toDisplayString(__props.title), 3),
11761
- slots.info ? (openBlock(), createBlock(unref(FluxTooltip), {
11775
+ __props.title ? (openBlock(), createElementBlock("span", {
11762
11776
  key: 0,
11777
+ class: normalizeClass(unref(Base_module_default).statisticsBaseHeaderTitle)
11778
+ }, toDisplayString(__props.title), 3)) : createCommentVNode("", true),
11779
+ slots.info ? (openBlock(), createBlock(unref(FluxTooltip), {
11780
+ key: 1,
11763
11781
  direction: "vertical"
11764
11782
  }, {
11765
11783
  content: withCtx(() => [renderSlot(_ctx.$slots, "info")]),
@@ -11770,7 +11788,7 @@ var FluxStatisticsBase_default = /* @__PURE__ */ defineComponent({
11770
11788
  _: 3
11771
11789
  })) : createCommentVNode("", true),
11772
11790
  __props.icon ? (openBlock(), createBlock(unref(FluxIcon), {
11773
- key: 1,
11791
+ key: 2,
11774
11792
  class: normalizeClass(unref(Base_module_default).statisticsBaseHeaderIcon),
11775
11793
  name: __props.icon
11776
11794
  }, null, 8, ["class", "name"])) : createCommentVNode("", true)
@@ -11848,6 +11866,7 @@ var FluxStatisticsBubbleChart_default = /* @__PURE__ */ defineComponent({
11848
11866
  type: Boolean,
11849
11867
  default: false
11850
11868
  },
11869
+ tooltipValueFormatter: { type: Function },
11851
11870
  xAxisLabels: {
11852
11871
  type: Boolean,
11853
11872
  default: false
@@ -11865,6 +11884,7 @@ var FluxStatisticsBubbleChart_default = /* @__PURE__ */ defineComponent({
11865
11884
  t,
11866
11885
  styles: Chart_module_default,
11867
11886
  tooltip: __props.tooltip,
11887
+ tooltipValueFormatter: __props.tooltipValueFormatter,
11868
11888
  xAxisLabels: __props.xAxisLabels,
11869
11889
  yAxisLabels: __props.yAxisLabels,
11870
11890
  splitLines: __props.splitLines,
@@ -12132,9 +12152,6 @@ var DetailsTable_module_default = {
12132
12152
  detailsTableTitle: `details-table-title`
12133
12153
  };
12134
12154
  //#endregion
12135
- //#region src/component/FluxStatisticsDetailsTable.vue?vue&type=script&setup=true&lang.ts
12136
- var _hoisted_1$1 = ["aria-label"];
12137
- //#endregion
12138
12155
  //#region src/component/FluxStatisticsDetailsTable.vue
12139
12156
  var FluxStatisticsDetailsTable_default = /* @__PURE__ */ defineComponent({
12140
12157
  __name: "FluxStatisticsDetailsTable",
@@ -12143,12 +12160,14 @@ var FluxStatisticsDetailsTable_default = /* @__PURE__ */ defineComponent({
12143
12160
  return (_ctx, _cache) => {
12144
12161
  return openBlock(), createElementBlock("div", {
12145
12162
  role: "table",
12146
- "aria-label": __props.title,
12147
12163
  class: normalizeClass(unref(DetailsTable_module_default).detailsTable)
12148
- }, [createElementVNode("div", { class: normalizeClass(unref(DetailsTable_module_default).detailsTableTitle) }, toDisplayString(__props.title), 3), createElementVNode("div", {
12164
+ }, [createElementVNode("div", {
12165
+ role: "caption",
12166
+ class: normalizeClass(unref(DetailsTable_module_default).detailsTableTitle)
12167
+ }, toDisplayString(__props.title), 3), createElementVNode("div", {
12149
12168
  role: "rowgroup",
12150
12169
  class: normalizeClass(unref(DetailsTable_module_default).detailsTableRows)
12151
- }, [renderSlot(_ctx.$slots, "default")], 2)], 10, _hoisted_1$1);
12170
+ }, [renderSlot(_ctx.$slots, "default")], 2)], 2);
12152
12171
  };
12153
12172
  }
12154
12173
  });
@@ -12485,8 +12504,7 @@ var FluxStatisticsLegend_default = /* @__PURE__ */ defineComponent({
12485
12504
  setup(__props) {
12486
12505
  const slots = useSlots();
12487
12506
  const legendContext = inject(FluxStatisticsChartLegendInjectionKey, null);
12488
- R$1(useTemplateRef("list"), { direction: "bidirectional" });
12489
- const hasSlot = computed(() => !!slots.default);
12507
+ L$1(useTemplateRef("list"), { direction: "bidirectional" });
12490
12508
  const autoItems = computed(() => legendContext?.items.value ?? []);
12491
12509
  const containerClass = computed(() => {
12492
12510
  if (__props.variant === "compact") return clsx(Legend_module_default.statisticsLegendCompact, __props.direction === "vertical" ? Legend_module_default.isVertical : Legend_module_default.isHorizontal);
@@ -12504,7 +12522,7 @@ var FluxStatisticsLegend_default = /* @__PURE__ */ defineComponent({
12504
12522
  ref: "list",
12505
12523
  role: "list",
12506
12524
  class: normalizeClass(containerClass.value)
12507
- }, [hasSlot.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(autoItems.value, (item, index) => {
12525
+ }, [unref(slots).default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(autoItems.value, (item, index) => {
12508
12526
  return openBlock(), createBlock(FluxStatisticsLegendItem_default, {
12509
12527
  key: `${index}-${item.label}`,
12510
12528
  color: item.color,
@@ -12939,6 +12957,7 @@ var FluxStatisticsScatterChart_default = /* @__PURE__ */ defineComponent({
12939
12957
  type: Boolean,
12940
12958
  default: false
12941
12959
  },
12960
+ tooltipValueFormatter: { type: Function },
12942
12961
  xAxisLabels: {
12943
12962
  type: Boolean,
12944
12963
  default: false
@@ -12956,6 +12975,7 @@ var FluxStatisticsScatterChart_default = /* @__PURE__ */ defineComponent({
12956
12975
  t,
12957
12976
  styles: Chart_module_default,
12958
12977
  tooltip: __props.tooltip,
12978
+ tooltipValueFormatter: __props.tooltipValueFormatter,
12959
12979
  xAxisLabels: __props.xAxisLabels,
12960
12980
  yAxisLabels: __props.yAxisLabels,
12961
12981
  splitLines: __props.splitLines,