@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.
- package/dist/Alert/Alert.js +13 -11
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/ApiQueries/ApiQueries.js +9 -5
- package/dist/ApiQueries/ApiQueries.js.map +1 -1
- package/dist/AuthDialog/AuthDialog.js +5 -3
- package/dist/AuthDialog/AuthDialog.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +5 -3
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Button/Button.js +5 -3
- package/dist/Button/Button.js.map +1 -1
- package/dist/ChartsConfig/ChartsConfig.js +21 -11
- package/dist/ChartsConfig/ChartsConfig.js.map +1 -1
- package/dist/CollapseButtons/CollapseButtons.js +9 -5
- package/dist/CollapseButtons/CollapseButtons.js.map +1 -1
- package/dist/CollapsibleTree/CollapsibleTree.js +9 -5
- package/dist/CollapsibleTree/CollapsibleTree.js.map +1 -1
- package/dist/Contact/Contact.js +16 -8
- package/dist/Contact/Contact.js.map +1 -1
- package/dist/DataFooter/DataFooter.js +5 -3
- package/dist/DataFooter/DataFooter.js.map +1 -1
- package/dist/DataHeader/DataHeader.js +5 -3
- package/dist/DataHeader/DataHeader.js.map +1 -1
- package/dist/Dataflow/Dataflow.js +5 -3
- package/dist/Dataflow/Dataflow.js.map +1 -1
- package/dist/DeleteAllChip/DeleteAllChip.js +6 -4
- package/dist/DeleteAllChip/DeleteAllChip.js.map +1 -1
- package/dist/DynamicDrawer/DynamicDrawer.js +27 -15
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
- package/dist/ExpansionPanel/ExpansionPanel.js +7 -9
- package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -1
- package/dist/GroupedChips/GroupedChips.js +6 -4
- package/dist/GroupedChips/GroupedChips.js.map +1 -1
- package/dist/HierarchicalFilter/HierarchicalFilter.js +4 -2
- package/dist/HierarchicalFilter/HierarchicalFilter.js.map +1 -1
- package/dist/Input/Input.js +5 -3
- package/dist/Input/Input.js.map +1 -1
- package/dist/InputNumber/InputNumber.js +5 -3
- package/dist/InputNumber/InputNumber.js.map +1 -1
- package/dist/LabelDivider/LabelDivider.js +5 -3
- package/dist/LabelDivider/LabelDivider.js.map +1 -1
- package/dist/Loading/Loading.js +15 -12
- package/dist/Loading/Loading.js.map +1 -1
- package/dist/Logo/Logo.js +5 -3
- package/dist/Logo/Logo.js.map +1 -1
- package/dist/Mode/Mode.js +8 -4
- package/dist/Mode/Mode.js.map +1 -1
- package/dist/NoData/NoData.js +5 -3
- package/dist/NoData/NoData.js.map +1 -1
- package/dist/Pagination/Pagination.js +8 -4
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/PeriodPicker/PeriodPicker.js +5 -3
- package/dist/PeriodPicker/PeriodPicker.js.map +1 -1
- package/dist/Select/Select.js +5 -3
- package/dist/Select/Select.js.map +1 -1
- package/dist/Share/Share.js +16 -8
- package/dist/Share/Share.js.map +1 -1
- package/dist/ShortUrls/ShortUrls.js +5 -3
- package/dist/ShortUrls/ShortUrls.js.map +1 -1
- package/dist/SisccFooter/SisccFooter.js +10 -4
- package/dist/SisccFooter/SisccFooter.js.map +1 -1
- package/dist/Spotlight/Spotlight.js +5 -3
- package/dist/Spotlight/Spotlight.js.map +1 -1
- package/dist/TableFooter/TableFooter.js +5 -3
- package/dist/TableFooter/TableFooter.js.map +1 -1
- package/dist/TableHeader/TableHeader.js +5 -3
- package/dist/TableHeader/TableHeader.js.map +1 -1
- package/dist/TableHtml5/TableHtml5.js +73 -42
- package/dist/TableHtml5/TableHtml5.js.map +1 -1
- package/dist/TableLayout/TableLayout.js +13 -8
- package/dist/TableLayout/TableLayout.js.map +1 -1
- package/dist/TablePreview/TablePreview.js +17 -7
- package/dist/TablePreview/TablePreview.js.map +1 -1
- package/dist/Tag/Tag.js +5 -3
- package/dist/Tag/Tag.js.map +1 -1
- package/dist/Tooltip/Tooltip.js +5 -3
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/UserRightForm/UserRightForm.js +17 -9
- package/dist/UserRightForm/UserRightForm.js.map +1 -1
- package/dist/VerticalButton/VerticalButton.js +5 -3
- package/dist/VerticalButton/VerticalButton.js.map +1 -1
- package/dist/chunks/{CustomChip-BdioThtM.js → CustomChip-CnH4BJk5.js} +11 -7
- package/dist/chunks/CustomChip-CnH4BJk5.js.map +1 -0
- package/dist/chunks/{withSpotlight-PqwaAph8.js → withSpotlight-Do47xp8b.js} +8 -6
- package/dist/chunks/withSpotlight-Do47xp8b.js.map +1 -0
- package/package.json +6 -6
- package/dist/chunks/CustomChip-BdioThtM.js.map +0 -1
- 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 '
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
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] =
|
|
505
|
-
$[15] =
|
|
525
|
+
$[14] = t5;
|
|
526
|
+
$[15] = t6;
|
|
506
527
|
} else {
|
|
507
|
-
|
|
528
|
+
t6 = $[15];
|
|
508
529
|
}
|
|
509
|
-
let
|
|
530
|
+
let t7;
|
|
510
531
|
if ($[16] !== SideIcon || $[17] !== classes.value || $[18] !== sideProps) {
|
|
511
|
-
|
|
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] =
|
|
536
|
+
$[19] = t7;
|
|
516
537
|
} else {
|
|
517
|
-
|
|
538
|
+
t7 = $[19];
|
|
518
539
|
}
|
|
519
|
-
let
|
|
540
|
+
let t8;
|
|
520
541
|
if ($[20] !== HTMLRenderer || $[21] !== flags || $[22] !== hasFlag || $[23] !== labelAccessor) {
|
|
521
|
-
|
|
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] =
|
|
547
|
+
$[24] = t8;
|
|
527
548
|
} else {
|
|
528
|
-
|
|
549
|
+
t8 = $[24];
|
|
529
550
|
}
|
|
530
|
-
let
|
|
531
|
-
if ($[25] !== Component || $[26] !== activeCellHandler || $[27] !== headers || $[28] !== t3 || $[29] !==
|
|
532
|
-
|
|
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] =
|
|
542
|
-
$[30] =
|
|
543
|
-
$[31] =
|
|
562
|
+
$[29] = t6;
|
|
563
|
+
$[30] = t7;
|
|
564
|
+
$[31] = t8;
|
|
544
565
|
$[32] = uiValue;
|
|
545
|
-
$[33] =
|
|
566
|
+
$[33] = t9;
|
|
546
567
|
} else {
|
|
547
|
-
|
|
568
|
+
t9 = $[33];
|
|
548
569
|
}
|
|
549
|
-
return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1255
|
-
|
|
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")) {
|