@sis-cc/dotstatsuite-visions 15.23.0 → 16.1.0

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.
Files changed (87) hide show
  1. package/dist/Alert/Alert.js +13 -11
  2. package/dist/Alert/Alert.js.map +1 -1
  3. package/dist/ApiQueries/ApiQueries.js +9 -5
  4. package/dist/ApiQueries/ApiQueries.js.map +1 -1
  5. package/dist/AuthDialog/AuthDialog.js +5 -3
  6. package/dist/AuthDialog/AuthDialog.js.map +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.js +5 -3
  8. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  9. package/dist/Button/Button.js +5 -3
  10. package/dist/Button/Button.js.map +1 -1
  11. package/dist/ChartsConfig/ChartsConfig.js +21 -11
  12. package/dist/ChartsConfig/ChartsConfig.js.map +1 -1
  13. package/dist/CollapseButtons/CollapseButtons.js +9 -5
  14. package/dist/CollapseButtons/CollapseButtons.js.map +1 -1
  15. package/dist/CollapsibleTree/CollapsibleTree.js +9 -5
  16. package/dist/CollapsibleTree/CollapsibleTree.js.map +1 -1
  17. package/dist/Contact/Contact.js +16 -8
  18. package/dist/Contact/Contact.js.map +1 -1
  19. package/dist/DataFooter/DataFooter.js +5 -3
  20. package/dist/DataFooter/DataFooter.js.map +1 -1
  21. package/dist/DataHeader/DataHeader.js +5 -3
  22. package/dist/DataHeader/DataHeader.js.map +1 -1
  23. package/dist/Dataflow/Dataflow.js +5 -3
  24. package/dist/Dataflow/Dataflow.js.map +1 -1
  25. package/dist/DeleteAllChip/DeleteAllChip.js +6 -4
  26. package/dist/DeleteAllChip/DeleteAllChip.js.map +1 -1
  27. package/dist/DynamicDrawer/DynamicDrawer.js +27 -15
  28. package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
  29. package/dist/ExpansionPanel/ExpansionPanel.js +7 -9
  30. package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -1
  31. package/dist/GroupedChips/GroupedChips.js +6 -4
  32. package/dist/GroupedChips/GroupedChips.js.map +1 -1
  33. package/dist/HierarchicalFilter/HierarchicalFilter.js +4 -2
  34. package/dist/HierarchicalFilter/HierarchicalFilter.js.map +1 -1
  35. package/dist/Input/Input.js +5 -3
  36. package/dist/Input/Input.js.map +1 -1
  37. package/dist/InputNumber/InputNumber.js +5 -3
  38. package/dist/InputNumber/InputNumber.js.map +1 -1
  39. package/dist/LabelDivider/LabelDivider.js +5 -3
  40. package/dist/LabelDivider/LabelDivider.js.map +1 -1
  41. package/dist/Loading/Loading.js +15 -12
  42. package/dist/Loading/Loading.js.map +1 -1
  43. package/dist/Logo/Logo.js +5 -3
  44. package/dist/Logo/Logo.js.map +1 -1
  45. package/dist/Mode/Mode.js +8 -4
  46. package/dist/Mode/Mode.js.map +1 -1
  47. package/dist/NoData/NoData.js +5 -3
  48. package/dist/NoData/NoData.js.map +1 -1
  49. package/dist/Pagination/Pagination.js +8 -4
  50. package/dist/Pagination/Pagination.js.map +1 -1
  51. package/dist/PeriodPicker/PeriodPicker.js +5 -3
  52. package/dist/PeriodPicker/PeriodPicker.js.map +1 -1
  53. package/dist/Select/Select.js +5 -3
  54. package/dist/Select/Select.js.map +1 -1
  55. package/dist/Share/Share.js +16 -8
  56. package/dist/Share/Share.js.map +1 -1
  57. package/dist/ShortUrls/ShortUrls.js +5 -3
  58. package/dist/ShortUrls/ShortUrls.js.map +1 -1
  59. package/dist/SisccFooter/SisccFooter.js +10 -4
  60. package/dist/SisccFooter/SisccFooter.js.map +1 -1
  61. package/dist/Spotlight/Spotlight.js +5 -3
  62. package/dist/Spotlight/Spotlight.js.map +1 -1
  63. package/dist/TableFooter/TableFooter.js +5 -3
  64. package/dist/TableFooter/TableFooter.js.map +1 -1
  65. package/dist/TableHeader/TableHeader.js +5 -3
  66. package/dist/TableHeader/TableHeader.js.map +1 -1
  67. package/dist/TableHtml5/TableHtml5.js +73 -42
  68. package/dist/TableHtml5/TableHtml5.js.map +1 -1
  69. package/dist/TableLayout/TableLayout.js +13 -8
  70. package/dist/TableLayout/TableLayout.js.map +1 -1
  71. package/dist/TablePreview/TablePreview.js +17 -7
  72. package/dist/TablePreview/TablePreview.js.map +1 -1
  73. package/dist/Tag/Tag.js +5 -3
  74. package/dist/Tag/Tag.js.map +1 -1
  75. package/dist/Tooltip/Tooltip.js +5 -3
  76. package/dist/Tooltip/Tooltip.js.map +1 -1
  77. package/dist/UserRightForm/UserRightForm.js +17 -9
  78. package/dist/UserRightForm/UserRightForm.js.map +1 -1
  79. package/dist/VerticalButton/VerticalButton.js +5 -3
  80. package/dist/VerticalButton/VerticalButton.js.map +1 -1
  81. package/dist/chunks/{CustomChip-BdioThtM.js → CustomChip-CnH4BJk5.js} +11 -7
  82. package/dist/chunks/CustomChip-CnH4BJk5.js.map +1 -0
  83. package/dist/chunks/{withSpotlight-PqwaAph8.js → withSpotlight-Do47xp8b.js} +8 -6
  84. package/dist/chunks/withSpotlight-Do47xp8b.js.map +1 -0
  85. package/package.json +6 -6
  86. package/dist/chunks/CustomChip-BdioThtM.js.map +0 -1
  87. package/dist/chunks/withSpotlight-PqwaAph8.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { c } from 'react-compiler-runtime';
3
3
  import React, { Fragment, memo, createElement, useState, useRef, useEffect } from 'react';
4
- import makeStyles from '@mui/styles/makeStyles';
4
+ import { makeStyles } from 'tss-react/mui';
5
5
  import Table from '@mui/material/Table';
6
6
  import cx from 'classnames';
7
7
  import Typography from '@mui/material/Typography';
@@ -56,7 +56,7 @@ const defaultLabelAccessor = item => {
56
56
 
57
57
  const flagStylePath = (theme) => theme?.mixins?.table?.flag ?? {};
58
58
  const hasCode = (flag) => Object.hasOwn(flag ?? {}, "code");
59
- const useStyles$5 = makeStyles((theme) => ({
59
+ const useStyles$5 = makeStyles()((theme) => ({
60
60
  content: {
61
61
  borderRadius: 3,
62
62
  boxSizing: "border-box",
@@ -67,8 +67,9 @@ const useStyles$5 = makeStyles((theme) => ({
67
67
  ...theme.typography.body1
68
68
  },
69
69
  flags: {
70
- borderBottom: "1px dotted",
70
+ // before borderBottom, which then sets the dotted line in the text colour
71
71
  borderColor: "inherit",
72
+ borderBottom: "1px dotted",
72
73
  margin: theme.spacing(0, 0.5),
73
74
  whiteSpace: "nowrap",
74
75
  display: "inline",
@@ -95,7 +96,9 @@ const Flags = (t0) => {
95
96
  labelAccessor
96
97
  } = t0;
97
98
  const flags = t1 === void 0 ? EMPTY_FLAGS$2 : t1;
98
- const classes = useStyles$5();
99
+ const {
100
+ classes
101
+ } = useStyles$5();
99
102
  const theme = useTheme();
100
103
  const noFlags = !flags?.length;
101
104
  const {
@@ -267,7 +270,7 @@ function _temp2$1(flag_0) {
267
270
  return flag_0.code;
268
271
  }
269
272
 
270
- const useStyles$4 = makeStyles((theme) => ({
273
+ const useStyles$4 = makeStyles()((theme) => ({
271
274
  columnsTitle: {
272
275
  position: "sticky",
273
276
  zIndex: 1,
@@ -331,7 +334,9 @@ const SubHeader = React.forwardRef((t0, refs) => {
331
334
  HTMLRenderer,
332
335
  labelAccessor
333
336
  } = t0;
334
- const classes = useStyles$4();
337
+ const {
338
+ classes
339
+ } = useStyles$4();
335
340
  const theme = useTheme();
336
341
  let t1;
337
342
  if ($[0] !== theme) {
@@ -439,12 +444,23 @@ const SubHeader = React.forwardRef((t0, refs) => {
439
444
  });
440
445
 
441
446
  const EMPTY_INDEXED_DIM_VAL_IDS = {};
447
+ const getCellTextAlign = ({
448
+ textAlign,
449
+ intValue,
450
+ isRtl
451
+ }) => {
452
+ if (textAlign) return textAlign;
453
+ const isNumber = intValue !== null && intValue !== void 0 && intValue !== "" && Number.isFinite(Number(intValue));
454
+ if (!isNumber) return "start";
455
+ return isRtl ? "left" : "right";
456
+ };
442
457
  const Cell = (t0) => {
443
458
  const $ = c(34);
444
459
  const {
445
460
  classes,
446
461
  flags,
447
462
  value,
463
+ intValue,
448
464
  headers,
449
465
  isOne,
450
466
  indexedDimValIds: t1,
@@ -495,61 +511,66 @@ const Cell = (t0) => {
495
511
  } else {
496
512
  t3 = $[13];
497
513
  }
498
- const t4 = textAlign ? textAlign : isRtl ? "left" : "right";
499
- let t5;
500
- if ($[14] !== t4) {
501
- t5 = {
502
- textAlign: t4
514
+ const t4 = 0;
515
+ const t5 = getCellTextAlign({
516
+ textAlign,
517
+ intValue,
518
+ isRtl
519
+ });
520
+ let t6;
521
+ if ($[14] !== t5) {
522
+ t6 = {
523
+ textAlign: t5
503
524
  };
504
- $[14] = t4;
505
- $[15] = t5;
525
+ $[14] = t5;
526
+ $[15] = t6;
506
527
  } else {
507
- t5 = $[15];
528
+ t6 = $[15];
508
529
  }
509
- let t6;
530
+ let t7;
510
531
  if ($[16] !== SideIcon || $[17] !== classes.value || $[18] !== sideProps) {
511
- t6 = SideIcon && /* @__PURE__ */ jsx(SideIcon, { sideProps, className: classes.value });
532
+ t7 = SideIcon && /* @__PURE__ */ jsx(SideIcon, { sideProps, className: classes.value });
512
533
  $[16] = SideIcon;
513
534
  $[17] = classes.value;
514
535
  $[18] = sideProps;
515
- $[19] = t6;
536
+ $[19] = t7;
516
537
  } else {
517
- t6 = $[19];
538
+ t7 = $[19];
518
539
  }
519
- let t7;
540
+ let t8;
520
541
  if ($[20] !== HTMLRenderer || $[21] !== flags || $[22] !== hasFlag || $[23] !== labelAccessor) {
521
- t7 = hasFlag && /* @__PURE__ */ jsx(Flags, { HTMLRenderer, flags, labelAccessor });
542
+ t8 = hasFlag && /* @__PURE__ */ jsx(Flags, { HTMLRenderer, flags, labelAccessor });
522
543
  $[20] = HTMLRenderer;
523
544
  $[21] = flags;
524
545
  $[22] = hasFlag;
525
546
  $[23] = labelAccessor;
526
- $[24] = t7;
547
+ $[24] = t8;
527
548
  } else {
528
- t7 = $[24];
549
+ t8 = $[24];
529
550
  }
530
- let t8;
531
- if ($[25] !== Component || $[26] !== activeCellHandler || $[27] !== headers || $[28] !== t3 || $[29] !== t5 || $[30] !== t6 || $[31] !== t7 || $[32] !== uiValue) {
532
- t8 = /* @__PURE__ */ jsxs(Component, { className: t3, headers, "aria-describedby": headers, onClick: activeCellHandler, tabIndex: 0, style: t5, children: [
533
- t6,
551
+ let t9;
552
+ if ($[25] !== Component || $[26] !== activeCellHandler || $[27] !== headers || $[28] !== t3 || $[29] !== t6 || $[30] !== t7 || $[31] !== t8 || $[32] !== uiValue) {
553
+ t9 = /* @__PURE__ */ jsxs(Component, { className: t3, headers, "aria-describedby": headers, onClick: activeCellHandler, tabIndex: t4, style: t6, children: [
534
554
  t7,
555
+ t8,
535
556
  uiValue
536
557
  ] });
537
558
  $[25] = Component;
538
559
  $[26] = activeCellHandler;
539
560
  $[27] = headers;
540
561
  $[28] = t3;
541
- $[29] = t5;
542
- $[30] = t6;
543
- $[31] = t7;
562
+ $[29] = t6;
563
+ $[30] = t7;
564
+ $[31] = t8;
544
565
  $[32] = uiValue;
545
- $[33] = t8;
566
+ $[33] = t9;
546
567
  } else {
547
- t8 = $[33];
568
+ t9 = $[33];
548
569
  }
549
- return t8;
570
+ return t9;
550
571
  };
551
572
 
552
- const useStyles$3 = makeStyles((theme) => ({
573
+ const useStyles$3 = makeStyles()((theme) => ({
553
574
  section: {
554
575
  borderCollapse: "collapse",
555
576
  backgroundColor: getDark(theme) || theme.palette.secondary.dark,
@@ -600,7 +621,9 @@ const SectionHeader = (t0) => {
600
621
  HTMLRenderer,
601
622
  labelAccessor
602
623
  } = t0;
603
- const classes = useStyles$3();
624
+ const {
625
+ classes
626
+ } = useStyles$3();
604
627
  const theme = useTheme();
605
628
  let t1;
606
629
  if ($[0] !== theme) {
@@ -777,7 +800,7 @@ const SectionHeader = (t0) => {
777
800
  };
778
801
 
779
802
  const EMPTY_FLAGS$1 = [];
780
- const useStyles$2 = makeStyles((theme) => ({
803
+ const useStyles$2 = makeStyles()((theme) => ({
781
804
  rowTitle: {
782
805
  backgroundColor: getLight(theme) || theme.palette.secondary.light,
783
806
  border: "inherit",
@@ -847,7 +870,9 @@ const SectionComponent = (t0) => {
847
870
  isNoWrap,
848
871
  textAlign
849
872
  } = t0;
850
- const classes = useStyles$2();
873
+ const {
874
+ classes
875
+ } = useStyles$2();
851
876
  const currentSection = section[0]?.key;
852
877
  const headerNumberRows = nbColumnsByRows.length;
853
878
  const maxColumns = nbColumnsByRows.at(-1);
@@ -1010,7 +1035,7 @@ function _temp$2() {
1010
1035
  }
1011
1036
 
1012
1037
  const EMPTY_FLAGS = [];
1013
- const useStyles$1 = makeStyles((theme) => ({
1038
+ const useStyles$1 = makeStyles()((theme) => ({
1014
1039
  tableHeadCell: {
1015
1040
  color: theme.palette.getContrastText(theme.palette.primary.main),
1016
1041
  backgroundColor: theme.palette.primary.main,
@@ -1054,7 +1079,9 @@ const Header = (t0) => {
1054
1079
  HTMLRenderer,
1055
1080
  labelAccessor
1056
1081
  } = t0;
1057
- const classes = useStyles$1();
1082
+ const {
1083
+ classes
1084
+ } = useStyles$1();
1058
1085
  const theme = useTheme();
1059
1086
  let t1;
1060
1087
  if ($[0] !== theme) {
@@ -1150,7 +1177,7 @@ function _temp2(space, spaceIdx) {
1150
1177
  return /* @__PURE__ */ jsx("div", { children: space }, spaceIdx);
1151
1178
  }
1152
1179
 
1153
- const useStyles = makeStyles((theme) => ({
1180
+ const useStyles = makeStyles()((theme) => ({
1154
1181
  table: {
1155
1182
  outline: "1px solid transparent",
1156
1183
  transform: "translateZ(0)",
@@ -1165,7 +1192,7 @@ const useStyles = makeStyles((theme) => ({
1165
1192
  zIndex: 2
1166
1193
  }
1167
1194
  }));
1168
- const useCellStyles = makeStyles((theme) => ({
1195
+ const useCellStyles = makeStyles()((theme) => ({
1169
1196
  cell: {
1170
1197
  ...theme.typography.body2,
1171
1198
  ...theme.components?.MuiTableCell?.styleOverrides?.sizeSmall,
@@ -1251,8 +1278,12 @@ const TableHtml5 = (t0) => {
1251
1278
  const cellValueAccessor = t4 === void 0 ? defaultCellValueAccessor : t4;
1252
1279
  const labelAccessor = t5 === void 0 ? defaultLabelAccessor : t5;
1253
1280
  const isNoWrap = t6 === void 0 ? defaultIsNoWrap : t6;
1254
- const classes = useStyles();
1255
- const cellClasses = useCellStyles();
1281
+ const {
1282
+ classes
1283
+ } = useStyles();
1284
+ const {
1285
+ classes: cellClasses
1286
+ } = useCellStyles();
1256
1287
  const [headerHeight, setHeaderHeight] = useState(0);
1257
1288
  let t7;
1258
1289
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {