@sis-cc/dotstatsuite-visions 15.12.0 → 15.13.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/TableHtml5/TableHtml5.js +193 -168
- package/dist/TableHtml5/TableHtml5.js.map +1 -1
- package/dist/assets/{Alert-BOGMfgI4.js → Alert-DLvq0ijF.js} +1 -1
- package/dist/assets/Alert.stories-Y9vU5rJ5.js +3 -0
- package/dist/assets/{ApiQueries.stories--JAMhHCF.js → ApiQueries.stories-BbHdt3D-.js} +1 -1
- package/dist/assets/ArrowForward-DZAZ71mo.js +1 -0
- package/dist/assets/{Asterisk-BEluUUJF.js → Asterisk-DOs1vb3E.js} +1 -1
- package/dist/assets/{AuthDialog.stories-B6f3yaNq.js → AuthDialog.stories-jk761e7b.js} +1 -1
- package/dist/assets/{Box-BrNWnTpN.js → Box-bJJaav7j.js} +1 -1
- package/dist/assets/{Breadcrumbs.stories-BZNwAsOJ.js → Breadcrumbs.stories-BuOHIr3y.js} +1 -1
- package/dist/assets/{Button-CAxOOHUR.js → Button-CGpAVIMc.js} +1 -1
- package/dist/assets/{Button-BMlkJ_G8.js → Button-sImJ8QmZ.js} +1 -1
- package/dist/assets/{Button.stories-Bmoq6Nc7.js → Button.stories-Bq1mLEUo.js} +1 -1
- package/dist/assets/{ButtonBase-Jfyq2VB2.js → ButtonBase-h8Hyf02N.js} +1 -1
- package/dist/assets/{CardContent-BeZWcM7M.js → CardContent-DIOhSkFH.js} +1 -1
- package/dist/assets/{ChartsConfig.stories-C0PhVt0m.js → ChartsConfig.stories-BYQlzYdn.js} +1 -1
- package/dist/assets/{Checkbox-BoSuSyCl.js → Checkbox-f_OZ-31l.js} +1 -1
- package/dist/assets/{Chips.stories-DYZL9JOt.js → Chips.stories-BK3guGeT.js} +1 -1
- package/dist/assets/{CircularProgress-DrGJ9JMj.js → CircularProgress-DczpWKmA.js} +1 -1
- package/dist/assets/Close-h_394zG_.js +1 -0
- package/dist/assets/{Collapse-jQS3tIc9.js → Collapse-DMTLRgKX.js} +1 -1
- package/dist/assets/{CollapseButtons.stories-CftJ9yTl.js → CollapseButtons.stories-BquDbI3m.js} +1 -1
- package/dist/assets/{CollapsibleTree.stories-CfK5x0gZ.js → CollapsibleTree.stories-4aAqF8CW.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-fnOB1F0O.js → Color-6AOWCN3U-BTNSEyHk.js} +1 -1
- package/dist/assets/{Contact.stories-DokDYUdb.js → Contact.stories-DjrtJ_kt.js} +1 -1
- package/dist/assets/{Container-ChWF5E0S.js → Container-1esFF051.js} +1 -1
- package/dist/assets/{Cross-jKtA_Fxe.js → Cross-ByOy89mc.js} +1 -1
- package/dist/assets/{CustomChip-CWC-tOof.js → CustomChip-KnurWVYb.js} +1 -1
- package/dist/assets/{DataEdit-C1YSt_zE.js → DataEdit-BMhNIi4f.js} +1 -1
- package/dist/assets/DataEdit.stories-C-9NchST.js +1 -0
- package/dist/assets/{DataFooter.stories--i8EoS8P.js → DataFooter.stories-DF7dM1Fz.js} +1 -1
- package/dist/assets/{DataHeader.stories-DogFUdsZ.js → DataHeader.stories-DQIR10X9.js} +1 -1
- package/dist/assets/{Dataflow.stories-CFfcJBML.js → Dataflow.stories-DpdyGVoM.js} +1 -1
- package/dist/assets/{DeleteAllChip.stories-Bf4_Wz78.js → DeleteAllChip.stories-qla6HDue.js} +1 -1
- package/dist/assets/{Dialog-B3-XH6Gy.js → Dialog-Dbd5q2ZH.js} +1 -1
- package/dist/assets/{Divider-CnMfF_jK.js → Divider-B7XS2Z4V.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-fiNC96RI.js → DocsRenderer-JROSPFPF-DxQ3qCAa.js} +5 -5
- package/dist/assets/Done-c1xy3r5H.js +1 -0
- package/dist/assets/{DynamicDrawer.stories-DlNplA6J.js → DynamicDrawer.stories-B03kh6mx.js} +1 -1
- package/dist/assets/{EmojiObjects-DwJODusx.js → EmojiObjects-CrPOWO9t.js} +1 -1
- package/dist/assets/ExpandLess-BHBGSniB.js +1 -0
- package/dist/assets/ExpandMore-BZU62EGf.js +1 -0
- package/dist/assets/{ExpansionPanel-C2BBXKie.js → ExpansionPanel-B1gQpUNm.js} +1 -1
- package/dist/assets/ExpansionPanel.stories-Ct2CiQPu.js +1 -0
- package/dist/assets/{FormControlLabel-UAA4rfa6.js → FormControlLabel-DClPtT5c.js} +1 -1
- package/dist/assets/{Grid-B19-imqj.js → Grid-WD2CtAjS.js} +1 -1
- package/dist/assets/{GroupedChips.stories-DYT2BEzD.js → GroupedChips.stories-BFwWBunB.js} +1 -1
- package/dist/assets/{Grow-BDcM6mkj.js → Grow-DSRrEILj.js} +1 -1
- package/dist/assets/{HierarchicalFilter.stories-G3MAUx8J.js → HierarchicalFilter.stories-Bppptfog.js} +1 -1
- package/dist/assets/{IconButton-FLwhS7xT.js → IconButton-C2dWVjln.js} +1 -1
- package/dist/assets/Info-UTXmKXR9.js +1 -0
- package/dist/assets/{Input-CpknUWrr.js → Input-COkKYOw9.js} +1 -1
- package/dist/assets/Input.stories-bpnbyrUO.js +1 -0
- package/dist/assets/{InputAdornment-CytfFo8t.js → InputAdornment-pyuuGkIU.js} +1 -1
- package/dist/assets/{InputNumber.stories-q8qaFGCy.js → InputNumber.stories-MaeAi7rL.js} +1 -1
- package/dist/assets/{KeyboardArrowUp-BuGl5pO2.js → KeyboardArrowUp-BPaNNPVf.js} +1 -1
- package/dist/assets/{LabelDivider.stories-AVHFunDN.js → LabelDivider.stories-w8VxMsr2.js} +1 -1
- package/dist/assets/Lens-ii0Badvw.js +1 -0
- package/dist/assets/{Link-9AnfE-kV.js → Link-BB954hTb.js} +1 -1
- package/dist/assets/ListContext-BVgSHS6e.js +1 -0
- package/dist/assets/{Loading.stories-BY4mJGhQ.js → Loading.stories-v_HtvQr3.js} +1 -1
- package/dist/assets/{Logo.stories-BebTLQmM.js → Logo.stories-DLoZ5lO1.js} +1 -1
- package/dist/assets/{MenuItem-C-MhKq58.js → MenuItem-Dk2le0wB.js} +1 -1
- package/dist/assets/{Mode-KHhtiJnu.js → Mode-DV4h0Dsf.js} +1 -1
- package/dist/assets/Mode.stories-Dh38jPXP.js +1 -0
- package/dist/assets/{NoData-ZnuGnxt1.js → NoData-CdbAN-4W.js} +1 -1
- package/dist/assets/NoData.stories-C1tL_Xwz.js +1 -0
- package/dist/assets/{Pagination.stories-BrjYxj9g.js → Pagination.stories-D-kKSGCN.js} +1 -1
- package/dist/assets/{Paper-BGv0miQx.js → Paper-CzjB2og1.js} +1 -1
- package/dist/assets/{PeriodPicker.stories-D62RQiCE.js → PeriodPicker.stories-BMNsudLf.js} +1 -1
- package/dist/assets/{Popover-COQcCvCV.js → Popover-Dni1WekO.js} +1 -1
- package/dist/assets/{RadioGroup-DDkmsm32.js → RadioGroup-uId6ySpH.js} +1 -1
- package/dist/assets/{Select-ZL7qVAF2.js → Select-CQoiqqhZ.js} +1 -1
- package/dist/assets/{Select-D66aUS_t.js → Select-ep7J94QW.js} +1 -1
- package/dist/assets/Select.stories-tHoxameh.js +1 -0
- package/dist/assets/{Share.stories-DssQI6HR.js → Share.stories-WUBNy4Qb.js} +1 -1
- package/dist/assets/{ShortUrls.stories-D9OAyiMm.js → ShortUrls.stories-DBNnSJxj.js} +1 -1
- package/dist/assets/{SisccFooter.stories-DVvuHO9v.js → SisccFooter.stories-D1gNONWP.js} +1 -1
- package/dist/assets/{Spotlight-BB9yinOc.js → Spotlight-T9sUvY6V.js} +1 -1
- package/dist/assets/Spotlight.stories-oLDJ4xPx.js +1 -0
- package/dist/assets/{SvgIcon-Bs_twqON.js → SvgIcon-B8VoEIlq.js} +1 -1
- package/dist/assets/{SwitchBase-ADVXWRSx.js → SwitchBase-R3HuWU6Y.js} +1 -1
- package/dist/assets/{TableFooter.stories-CduaGye_.js → TableFooter.stories-ClFTY60F.js} +1 -1
- package/dist/assets/{TableHeader.stories-V4KkYGOL.js → TableHeader.stories-CB9Ctx1a.js} +1 -1
- package/dist/assets/TableHtml5.stories-BK2LJwdn.js +6 -0
- package/dist/assets/{TableLayout.stories-BD0lTk-r.js → TableLayout.stories-K2I_udUV.js} +1 -1
- package/dist/assets/{TablePreview-BUpv9AFx.js → TablePreview-DN978dC4.js} +1 -1
- package/dist/assets/{TablePreview.stories-D2sx-EKR.js → TablePreview.stories-O0tb1AAn.js} +1 -1
- package/dist/assets/{TableRow-ReXjlhNW.js → TableRow-B9TedUIc.js} +1 -1
- package/dist/assets/{Tag-D2zgKtfJ.js → Tag-DcoagxTe.js} +1 -1
- package/dist/assets/{Tag.stories-BSSFGMxb.js → Tag.stories-P1jMjUrq.js} +1 -1
- package/dist/assets/{TextField-D9j_C8M-.js → TextField-5051t4Am.js} +1 -1
- package/dist/assets/{TextareaAutosize-d6Puznd-.js → TextareaAutosize-gFplu4fL.js} +1 -1
- package/dist/assets/{ToggleButton-D7BllS69.js → ToggleButton-CsD4JcOv.js} +1 -1
- package/dist/assets/ToggleButton.stories-D6Mbdp_n.js +1 -0
- package/dist/assets/{Tooltip-BMEt8B_B.js → Tooltip-BXIJ2uXm.js} +1 -1
- package/dist/assets/{Tooltip-Bdgoxjv8.js → Tooltip-DREhTS_h.js} +1 -1
- package/dist/assets/Tooltip.stories-BALJqobr.js +1 -0
- package/dist/assets/{TransitionGroupContext-2JUoEI8-.js → TransitionGroupContext-D6sjJNEJ.js} +1 -1
- package/dist/assets/{Typography-CjGsgY7s.js → Typography-ClsWOt-6.js} +1 -1
- package/dist/assets/{UserRightForm.stories-CkUGYPch.js → UserRightForm.stories-Zo5vh2zl.js} +1 -1
- package/dist/assets/{VerticalButton-MVUz-Y5k.js → VerticalButton-B_O8pash.js} +1 -1
- package/dist/assets/VerticalButton.stories-D7ZBM9Yl.js +1 -0
- package/dist/assets/{VirtualizedTree-q5gX5iVk.js → VirtualizedTree-BF_MqvzN.js} +1 -1
- package/dist/assets/{VirtualizedTree.stories-3PtqpDxM.js → VirtualizedTree.stories-DA9US7cG.js} +1 -1
- package/dist/assets/{Warning-BXQBQTnR.js → Warning-T79zdunJ.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-CdmxWcPW.js → WithTooltip-7X4HQR7L-L3z0XmSM.js} +1 -1
- package/dist/assets/{axe-BsWbIciJ.js → axe-BUET0tVO.js} +1 -1
- package/dist/assets/{client-DL2LBfAX.js → client-Q1A578R6.js} +1 -1
- package/dist/assets/{colorManipulator-DUXLEzaE.js → colorManipulator-B2o8XrQV.js} +1 -1
- package/dist/assets/{createSvgIcon-CsOtTYVe.js → createSvgIcon-4qOyWnqh.js} +1 -1
- package/dist/assets/{dividerClasses-CPg_E_0O.js → dividerClasses-CAcyJZOV.js} +1 -1
- package/dist/assets/{formControlState-DIlLHBI7.js → formControlState-DKLgOIxq.js} +1 -1
- package/dist/assets/formatter-L2YTDE3Q-BAt0mjPF.js +1 -0
- package/dist/assets/{getThemeProps-ksZ56HY4.js → getThemeProps-BA6y06SF.js} +1 -1
- package/dist/assets/{iframe-BRHw9vJZ.js → iframe-qtIZP86u.js} +3 -3
- package/dist/assets/{index-DI8mbJii.js → index-BFErXZfB.js} +1 -1
- package/dist/assets/{index-LqmxlX0b.js → index-BggZdvPH.js} +1 -1
- package/dist/assets/index-CaEHFs7i.js +1 -0
- package/dist/assets/{index-C_jK6b2Y.js → index-D2TUKnmT.js} +1 -1
- package/dist/assets/{index-DPeRQhZ2.js → index-DG_o2QcF.js} +1 -1
- package/dist/assets/{index-C9MtdOSe.js → index-acdQxXhU.js} +1 -1
- package/dist/assets/{isMuiElement-B2sUfgZP.js → isMuiElement-CypnYP9m.js} +1 -1
- package/dist/assets/{listItemTextClasses-CVFHyZH0.js → listItemTextClasses-zH19y4kc.js} +1 -1
- package/dist/assets/{makeStyles-D8U_XYX7.js → makeStyles-D7muGbyC.js} +1 -1
- package/dist/assets/{react-18-CLW9JjXU.js → react-18-b26yu5pp.js} +1 -1
- package/dist/assets/{styled-CMaP4Din.js → styled-CcJp_mIC.js} +1 -1
- package/dist/assets/{syntaxhighlighter-YFXUGROL-Dr9WzRXR.js → syntaxhighlighter-YFXUGROL-Co_wHuNw.js} +1 -1
- package/dist/assets/{useControlled-_quaG46Y.js → useControlled-BlAnc8DH.js} +1 -1
- package/dist/assets/{useKeybordEscapeHandler-L27zu13-.js → useKeybordEscapeHandler-B66lWhjR.js} +1 -1
- package/dist/assets/{useMediaQuery-DU8Wdi82.js → useMediaQuery-BZDrSLp9.js} +1 -1
- package/dist/assets/{useSlotProps-DsFvTP2b.js → useSlotProps-DjCN7Raw.js} +1 -1
- package/dist/assets/useTheme-CSCt5nqc.js +1 -0
- package/dist/assets/{useThemeProps-D--0s-YF.js → useThemeProps-BEHSnQQW.js} +1 -1
- package/dist/assets/{utils-DD3ycP4x.js → utils-BXvZU5O7.js} +1 -1
- package/dist/assets/{utils-BTGkVQ_b.js → utils-DxJvQL_T.js} +1 -1
- package/dist/assets/{with-input-DhokWnJq.js → with-input-SPuE9h6H.js} +1 -1
- package/dist/assets/{withSpotlight-YfnwvoE3.js → withSpotlight-Dg2BflVO.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/manifests/components.json +1 -1
- package/dist/project.json +1 -1
- package/package.json +1 -1
- package/dist/assets/Alert.stories-uWFCrTgo.js +0 -3
- package/dist/assets/ArrowForward-CGmAcoIA.js +0 -1
- package/dist/assets/Close-jHDRw3Kd.js +0 -1
- package/dist/assets/DataEdit.stories-DfA2lqQS.js +0 -1
- package/dist/assets/Done-DFX9eN4J.js +0 -1
- package/dist/assets/ExpandLess-CBD06YbZ.js +0 -1
- package/dist/assets/ExpandMore-BIum6FbE.js +0 -1
- package/dist/assets/ExpansionPanel.stories-DRpccUhG.js +0 -1
- package/dist/assets/Info-CaVgFkkg.js +0 -1
- package/dist/assets/Input.stories-CIGFkKN-.js +0 -1
- package/dist/assets/Lens-Da36DzLw.js +0 -1
- package/dist/assets/ListContext-DumX4Wy2.js +0 -1
- package/dist/assets/Mode.stories-6I5o1vgO.js +0 -1
- package/dist/assets/NoData.stories-BhfpeUUJ.js +0 -1
- package/dist/assets/Select.stories-nVg4A5WJ.js +0 -1
- package/dist/assets/Spotlight.stories-CDbZ3iIC.js +0 -1
- package/dist/assets/TableHtml5.stories-CuH0W3Q4.js +0 -6
- package/dist/assets/ToggleButton.stories-DLFvg3oP.js +0 -1
- package/dist/assets/Tooltip.stories-CDSVUmb1.js +0 -1
- package/dist/assets/VerticalButton.stories-DAfJLQBd.js +0 -1
- package/dist/assets/formatter-L2YTDE3Q-FhvS65gq.js +0 -1
- package/dist/assets/index-B3g4W5ky.js +0 -1
- package/dist/assets/useTheme-BMhiTIOJ.js +0 -1
|
@@ -29,6 +29,22 @@ const getValue = labelAccessor => item => R.has('values', item) ? R.reduce((acc,
|
|
|
29
29
|
parents: [],
|
|
30
30
|
label: labelAccessor(item.values)
|
|
31
31
|
}, item.values) : R.pipe(R.prop('value'), val => R.assoc('label', labelAccessor(val), val))(item);
|
|
32
|
+
const getCellKey = (xKey, sectionKey, yKey) => `${xKey}|${sectionKey}|${yKey}`;
|
|
33
|
+
|
|
34
|
+
// cells nests one cell per x, section and y key: { [x]: { [section]: { [y]: [cell] } } }.
|
|
35
|
+
// Flattened once per table so rendering a cell is a Map lookup, not a four-level path walk.
|
|
36
|
+
const indexCells = cells => {
|
|
37
|
+
const index = new Map();
|
|
38
|
+
for (const [xKey, sections] of Object.entries(cells ?? {})) {
|
|
39
|
+
for (const [sectionKey, rows] of Object.entries(sections ?? {})) {
|
|
40
|
+
for (const [yKey, row] of Object.entries(rows ?? {})) {
|
|
41
|
+
const cell = row?.[0];
|
|
42
|
+
if (!R.isNil(cell)) index.set(getCellKey(xKey, sectionKey, yKey), cell);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return index;
|
|
47
|
+
};
|
|
32
48
|
const defaultLabelAccessor = item => {
|
|
33
49
|
if (R.is(Object, item)) {
|
|
34
50
|
return R.prop('name', item);
|
|
@@ -37,7 +53,7 @@ const defaultLabelAccessor = item => {
|
|
|
37
53
|
};
|
|
38
54
|
|
|
39
55
|
const flagStylePath = (theme) => R.pathOr({}, ["mixins", "table", "flag"], theme);
|
|
40
|
-
const useStyles$
|
|
56
|
+
const useStyles$5 = makeStyles((theme) => ({
|
|
41
57
|
content: {
|
|
42
58
|
borderRadius: 3,
|
|
43
59
|
boxSizing: "border-box",
|
|
@@ -76,7 +92,7 @@ const Flags = (t0) => {
|
|
|
76
92
|
labelAccessor
|
|
77
93
|
} = t0;
|
|
78
94
|
const flags = t1 === void 0 ? EMPTY_FLAGS : t1;
|
|
79
|
-
const classes = useStyles$
|
|
95
|
+
const classes = useStyles$5();
|
|
80
96
|
const theme = useTheme();
|
|
81
97
|
const noFlags = R.isNil(flags) || R.isEmpty(flags);
|
|
82
98
|
const {
|
|
@@ -271,7 +287,7 @@ function _temp$2(acc, flag) {
|
|
|
271
287
|
return R.when(R.always(R.has("code", flag)), R.append(flag.code))(acc);
|
|
272
288
|
}
|
|
273
289
|
|
|
274
|
-
const useStyles$
|
|
290
|
+
const useStyles$4 = makeStyles((theme) => ({
|
|
275
291
|
columnsTitle: {
|
|
276
292
|
position: "sticky",
|
|
277
293
|
zIndex: 1,
|
|
@@ -336,7 +352,7 @@ const SubHeader = React.forwardRef((t0, refs) => {
|
|
|
336
352
|
HTMLRenderer,
|
|
337
353
|
labelAccessor
|
|
338
354
|
} = t0;
|
|
339
|
-
const classes = useStyles$
|
|
355
|
+
const classes = useStyles$4();
|
|
340
356
|
const theme = useTheme();
|
|
341
357
|
let t1;
|
|
342
358
|
if ($[0] !== theme) {
|
|
@@ -438,44 +454,13 @@ const SubHeader = React.forwardRef((t0, refs) => {
|
|
|
438
454
|
return t7;
|
|
439
455
|
});
|
|
440
456
|
|
|
441
|
-
const useStyles$4 = makeStyles((theme) => ({
|
|
442
|
-
cell: {
|
|
443
|
-
borderBottom: `1.5px solid ${theme.palette.grey[500]}`,
|
|
444
|
-
borderRight: `1.5px solid ${theme.palette.grey[500]}`,
|
|
445
|
-
padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,
|
|
446
|
-
verticalAlign: "baseline",
|
|
447
|
-
color: theme.palette.grey["A700"],
|
|
448
|
-
"&:hover": {
|
|
449
|
-
boxShadow: `inset 0 0 0 2px ${theme.palette.primary.main}`
|
|
450
|
-
},
|
|
451
|
-
whiteSpace: "pre-wrap",
|
|
452
|
-
borderCollapse: "collapse"
|
|
453
|
-
},
|
|
454
|
-
active: {
|
|
455
|
-
boxShadow: `inset 0 0 0 2px ${theme.palette.primary.main}`
|
|
456
|
-
},
|
|
457
|
-
highlight: theme.mixins.table.cellHighlight,
|
|
458
|
-
oneCell: {
|
|
459
|
-
border: `thin solid ${theme.palette.grey[500]}`,
|
|
460
|
-
display: "block"
|
|
461
|
-
// MUI TableCell is inline-block
|
|
462
|
-
},
|
|
463
|
-
link: {
|
|
464
|
-
position: "inherit",
|
|
465
|
-
userSelect: "inherit"
|
|
466
|
-
},
|
|
467
|
-
value: {
|
|
468
|
-
overflow: "inherit"
|
|
469
|
-
}
|
|
470
|
-
}));
|
|
471
|
-
const isValidNumber = R.both(R.is(Number), R.complement(R.equals(NaN)));
|
|
472
457
|
const EMPTY_INDEXED_DIM_VAL_IDS = {};
|
|
473
458
|
const Cell = (t0) => {
|
|
474
|
-
const $ = c(
|
|
459
|
+
const $ = c(36);
|
|
475
460
|
const {
|
|
461
|
+
classes,
|
|
476
462
|
flags,
|
|
477
463
|
value,
|
|
478
|
-
intValue,
|
|
479
464
|
headers,
|
|
480
465
|
isOne,
|
|
481
466
|
indexedDimValIds: t1,
|
|
@@ -490,8 +475,8 @@ const Cell = (t0) => {
|
|
|
490
475
|
textAlign
|
|
491
476
|
} = t0;
|
|
492
477
|
const indexedDimValIds = t1 === void 0 ? EMPTY_INDEXED_DIM_VAL_IDS : t1;
|
|
493
|
-
const classes = useStyles$4();
|
|
494
478
|
const isRtl = getIsRtl(useTheme());
|
|
479
|
+
const Component = isOne ? "div" : "td";
|
|
495
480
|
let t2;
|
|
496
481
|
if ($[0] !== flags) {
|
|
497
482
|
t2 = !R.isNil(flags) && !R.isEmpty(flags);
|
|
@@ -516,11 +501,9 @@ const Cell = (t0) => {
|
|
|
516
501
|
t3 = $[7];
|
|
517
502
|
}
|
|
518
503
|
const uiValue = t3;
|
|
519
|
-
|
|
520
|
-
const t5 = isOne ? "div" : "td";
|
|
521
|
-
let t6;
|
|
504
|
+
let t4;
|
|
522
505
|
if ($[8] !== classes.active || $[9] !== classes.cell || $[10] !== classes.highlight || $[11] !== classes.oneCell || $[12] !== isActive || $[13] !== isHighlight || $[14] !== isOne) {
|
|
523
|
-
|
|
506
|
+
t4 = cx(classes.cell, {
|
|
524
507
|
[classes.oneCell]: isOne,
|
|
525
508
|
[classes.active]: isActive,
|
|
526
509
|
[classes.highlight]: isHighlight
|
|
@@ -532,63 +515,62 @@ const Cell = (t0) => {
|
|
|
532
515
|
$[12] = isActive;
|
|
533
516
|
$[13] = isHighlight;
|
|
534
517
|
$[14] = isOne;
|
|
535
|
-
$[15] =
|
|
518
|
+
$[15] = t4;
|
|
536
519
|
} else {
|
|
537
|
-
|
|
520
|
+
t4 = $[15];
|
|
538
521
|
}
|
|
539
|
-
const
|
|
540
|
-
let
|
|
541
|
-
if ($[16] !==
|
|
542
|
-
|
|
543
|
-
textAlign:
|
|
522
|
+
const t5 = textAlign ? textAlign : isRtl ? "left" : "right";
|
|
523
|
+
let t6;
|
|
524
|
+
if ($[16] !== t5) {
|
|
525
|
+
t6 = {
|
|
526
|
+
textAlign: t5
|
|
544
527
|
};
|
|
545
|
-
$[16] =
|
|
546
|
-
$[17] =
|
|
528
|
+
$[16] = t5;
|
|
529
|
+
$[17] = t6;
|
|
547
530
|
} else {
|
|
548
|
-
|
|
531
|
+
t6 = $[17];
|
|
549
532
|
}
|
|
550
|
-
let
|
|
533
|
+
let t7;
|
|
551
534
|
if ($[18] !== SideIcon || $[19] !== classes.value || $[20] !== sideProps) {
|
|
552
|
-
|
|
535
|
+
t7 = !R.isNil(SideIcon) && /* @__PURE__ */ jsx(SideIcon, { sideProps, className: classes.value });
|
|
553
536
|
$[18] = SideIcon;
|
|
554
537
|
$[19] = classes.value;
|
|
555
538
|
$[20] = sideProps;
|
|
556
|
-
$[21] =
|
|
539
|
+
$[21] = t7;
|
|
557
540
|
} else {
|
|
558
|
-
|
|
541
|
+
t7 = $[21];
|
|
559
542
|
}
|
|
560
|
-
let
|
|
543
|
+
let t8;
|
|
561
544
|
if ($[22] !== HTMLRenderer || $[23] !== flags || $[24] !== hasFlag || $[25] !== labelAccessor) {
|
|
562
|
-
|
|
545
|
+
t8 = hasFlag && /* @__PURE__ */ jsx(Flags, { HTMLRenderer, flags, labelAccessor });
|
|
563
546
|
$[22] = HTMLRenderer;
|
|
564
547
|
$[23] = flags;
|
|
565
548
|
$[24] = hasFlag;
|
|
566
549
|
$[25] = labelAccessor;
|
|
567
|
-
$[26] =
|
|
550
|
+
$[26] = t8;
|
|
568
551
|
} else {
|
|
569
|
-
|
|
552
|
+
t8 = $[26];
|
|
570
553
|
}
|
|
571
|
-
let
|
|
572
|
-
if ($[27] !==
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
554
|
+
let t9;
|
|
555
|
+
if ($[27] !== Component || $[28] !== activeCellHandler || $[29] !== headers || $[30] !== t4 || $[31] !== t6 || $[32] !== t7 || $[33] !== t8 || $[34] !== uiValue) {
|
|
556
|
+
t9 = /* @__PURE__ */ jsxs(Component, { className: t4, headers, "aria-describedby": headers, onClick: activeCellHandler, tabIndex: 0, style: t6, children: [
|
|
557
|
+
t7,
|
|
558
|
+
t8,
|
|
576
559
|
uiValue
|
|
577
560
|
] });
|
|
578
|
-
$[27] =
|
|
579
|
-
$[28] =
|
|
580
|
-
$[29] =
|
|
561
|
+
$[27] = Component;
|
|
562
|
+
$[28] = activeCellHandler;
|
|
563
|
+
$[29] = headers;
|
|
581
564
|
$[30] = t4;
|
|
582
|
-
$[31] =
|
|
583
|
-
$[32] =
|
|
565
|
+
$[31] = t6;
|
|
566
|
+
$[32] = t7;
|
|
584
567
|
$[33] = t8;
|
|
585
|
-
$[34] =
|
|
586
|
-
$[35] =
|
|
587
|
-
$[36] = t11;
|
|
568
|
+
$[34] = uiValue;
|
|
569
|
+
$[35] = t9;
|
|
588
570
|
} else {
|
|
589
|
-
|
|
571
|
+
t9 = $[35];
|
|
590
572
|
}
|
|
591
|
-
return
|
|
573
|
+
return t9;
|
|
592
574
|
};
|
|
593
575
|
|
|
594
576
|
const useStyles$3 = makeStyles((theme) => ({
|
|
@@ -886,7 +868,8 @@ const SectionComponent = (t0) => {
|
|
|
886
868
|
const $ = c(17);
|
|
887
869
|
const {
|
|
888
870
|
headerData,
|
|
889
|
-
|
|
871
|
+
cellsIndex,
|
|
872
|
+
cellClasses,
|
|
890
873
|
section,
|
|
891
874
|
xLayoutDataLength,
|
|
892
875
|
cellHandler,
|
|
@@ -986,9 +969,8 @@ const SectionComponent = (t0) => {
|
|
|
986
969
|
const intersectionCellId = `${rowId}/${columnIndex}`;
|
|
987
970
|
const isActive = R.pipe(R.propOr({}, "intersectionCellId"), R.equals(intersectionCellId))(activeCellIds);
|
|
988
971
|
const missingValLabel = item.isEmpty || sectionbody.isEmpty ? "" : "..";
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}, [item.key, currentSection, sectionbody.key, 0]), R.over(R.lensProp("value"), (val) => R.isNil(val) ? missingValLabel : cellValueAccessor(val)))(cells), key: intersectionCellId, headers: `${rowIds} ${columnIds} ${currentSection}`, cellHandler, HTMLRenderer, labelAccessor, SideIcon, isActive, textAlign, isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]), activeCellHandler: R.is(Function)(activeCellHandler) ? () => activeCellHandler({
|
|
972
|
+
const cell_0 = cellsIndex.get(getCellKey(item.key, currentSection, sectionbody.key));
|
|
973
|
+
return /* @__PURE__ */ createElement(Cell, { ...cell_0, value: R.isNil(cell_0?.value) ? missingValLabel : cellValueAccessor(cell_0.value), key: intersectionCellId, classes: cellClasses, headers: `${rowIds} ${columnIds} ${currentSection}`, cellHandler, HTMLRenderer, labelAccessor, SideIcon, isActive, textAlign, isHighlight: R.any(R.identity)([R.prop(rowId)(activeCellIds), R.prop(columnIndex)(activeCellIds)]), activeCellHandler: R.is(Function)(activeCellHandler) ? () => activeCellHandler({
|
|
992
974
|
[rowId]: R.not(isActive),
|
|
993
975
|
[columnIndex]: R.not(isActive),
|
|
994
976
|
intersectionCellId: isActive ? null : intersectionCellId
|
|
@@ -1178,6 +1160,37 @@ const useStyles = makeStyles((theme) => ({
|
|
|
1178
1160
|
zIndex: 2
|
|
1179
1161
|
}
|
|
1180
1162
|
}));
|
|
1163
|
+
const useCellStyles = makeStyles((theme) => ({
|
|
1164
|
+
cell: {
|
|
1165
|
+
...theme.typography.body2,
|
|
1166
|
+
...R.pathOr({}, ["components", "MuiTableCell", "styleOverrides", "sizeSmall"], theme),
|
|
1167
|
+
borderBottom: `1.5px solid ${theme.palette.grey[500]}`,
|
|
1168
|
+
borderRight: `1.5px solid ${theme.palette.grey[500]}`,
|
|
1169
|
+
padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,
|
|
1170
|
+
verticalAlign: "baseline",
|
|
1171
|
+
color: theme.palette.grey["A700"],
|
|
1172
|
+
"&:hover": {
|
|
1173
|
+
boxShadow: `inset 0 0 0 2px ${theme.palette.primary.main}`
|
|
1174
|
+
},
|
|
1175
|
+
whiteSpace: "pre-wrap",
|
|
1176
|
+
borderCollapse: "collapse"
|
|
1177
|
+
},
|
|
1178
|
+
active: {
|
|
1179
|
+
boxShadow: `inset 0 0 0 2px ${theme.palette.primary.main}`
|
|
1180
|
+
},
|
|
1181
|
+
highlight: theme.mixins.table.cellHighlight,
|
|
1182
|
+
oneCell: {
|
|
1183
|
+
border: `thin solid ${theme.palette.grey[500]}`,
|
|
1184
|
+
display: "block"
|
|
1185
|
+
},
|
|
1186
|
+
link: {
|
|
1187
|
+
position: "inherit",
|
|
1188
|
+
userSelect: "inherit"
|
|
1189
|
+
},
|
|
1190
|
+
value: {
|
|
1191
|
+
overflow: "inherit"
|
|
1192
|
+
}
|
|
1193
|
+
}));
|
|
1181
1194
|
const mapIndexed = R.addIndex(R.map);
|
|
1182
1195
|
const getEnhancedValuesHeaderData = (data) => {
|
|
1183
1196
|
const colLength = R.pipe(R.last, R.propOr([], "data"), R.length)(data);
|
|
@@ -1212,7 +1225,7 @@ const getCellsWidth = R.addIndex(R.reduce)((acc, element, index) => R.append(R.a
|
|
|
1212
1225
|
const EMPTY_HEADER_DATA = [];
|
|
1213
1226
|
const EMPTY_SECTIONS_DATA = [];
|
|
1214
1227
|
const TableHtml5 = (t0) => {
|
|
1215
|
-
const $ = c(
|
|
1228
|
+
const $ = c(75);
|
|
1216
1229
|
const {
|
|
1217
1230
|
cells,
|
|
1218
1231
|
headerData: t1,
|
|
@@ -1243,6 +1256,7 @@ const TableHtml5 = (t0) => {
|
|
|
1243
1256
|
}
|
|
1244
1257
|
const isNoWrap = t7;
|
|
1245
1258
|
const classes = useStyles();
|
|
1259
|
+
const cellClasses = useCellStyles();
|
|
1246
1260
|
const [headerHeight, setHeaderHeight] = useState(0);
|
|
1247
1261
|
let t8;
|
|
1248
1262
|
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -1347,117 +1361,128 @@ const TableHtml5 = (t0) => {
|
|
|
1347
1361
|
valuesHeaderData,
|
|
1348
1362
|
nbColumnsByRows
|
|
1349
1363
|
} = t16;
|
|
1364
|
+
let t17;
|
|
1365
|
+
if ($[20] !== cells) {
|
|
1366
|
+
t17 = indexCells(cells);
|
|
1367
|
+
$[20] = cells;
|
|
1368
|
+
$[21] = t17;
|
|
1369
|
+
} else {
|
|
1370
|
+
t17 = $[21];
|
|
1371
|
+
}
|
|
1372
|
+
const cellsIndex = t17;
|
|
1350
1373
|
const isSingleObs = R.hasPath(["", "", "", 0], cells);
|
|
1351
1374
|
if (isSingleObs) {
|
|
1352
|
-
let
|
|
1353
|
-
if ($[
|
|
1354
|
-
|
|
1355
|
-
$[
|
|
1356
|
-
$[
|
|
1375
|
+
let t182;
|
|
1376
|
+
if ($[22] !== cells) {
|
|
1377
|
+
t182 = R.pathOr({}, ["", "", "", 0], cells);
|
|
1378
|
+
$[22] = cells;
|
|
1379
|
+
$[23] = t182;
|
|
1357
1380
|
} else {
|
|
1358
|
-
|
|
1381
|
+
t182 = $[23];
|
|
1359
1382
|
}
|
|
1360
|
-
let
|
|
1361
|
-
if ($[
|
|
1362
|
-
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
$[
|
|
1367
|
-
$[
|
|
1368
|
-
$[
|
|
1383
|
+
let t192;
|
|
1384
|
+
if ($[24] !== HTMLRenderer || $[25] !== cellClasses || $[26] !== cellHandler || $[27] !== labelAccessor || $[28] !== t182 || $[29] !== textAlign) {
|
|
1385
|
+
t192 = /* @__PURE__ */ jsx(Cell, { classes: cellClasses, HTMLRenderer, labelAccessor, ...t182, cellHandler, isOne: true, textAlign });
|
|
1386
|
+
$[24] = HTMLRenderer;
|
|
1387
|
+
$[25] = cellClasses;
|
|
1388
|
+
$[26] = cellHandler;
|
|
1389
|
+
$[27] = labelAccessor;
|
|
1390
|
+
$[28] = t182;
|
|
1391
|
+
$[29] = textAlign;
|
|
1392
|
+
$[30] = t192;
|
|
1369
1393
|
} else {
|
|
1370
|
-
|
|
1394
|
+
t192 = $[30];
|
|
1371
1395
|
}
|
|
1372
|
-
return
|
|
1373
|
-
}
|
|
1374
|
-
const t17 = classes.table;
|
|
1375
|
-
let t18;
|
|
1376
|
-
if ($[28] !== HTMLRenderer || $[29] !== headerData || $[30] !== labelAccessor || $[31] !== subHeadCellsWidth || $[32] !== valuesHeaderData || $[33] !== xLayoutDataLength) {
|
|
1377
|
-
t18 = /* @__PURE__ */ jsx(Header, { headerData, valuesHeaderData, xLayoutDataLength, subHeadCellsWidth, HTMLRenderer, labelAccessor });
|
|
1378
|
-
$[28] = HTMLRenderer;
|
|
1379
|
-
$[29] = headerData;
|
|
1380
|
-
$[30] = labelAccessor;
|
|
1381
|
-
$[31] = subHeadCellsWidth;
|
|
1382
|
-
$[32] = valuesHeaderData;
|
|
1383
|
-
$[33] = xLayoutDataLength;
|
|
1384
|
-
$[34] = t18;
|
|
1385
|
-
} else {
|
|
1386
|
-
t18 = $[34];
|
|
1396
|
+
return t192;
|
|
1387
1397
|
}
|
|
1398
|
+
const t18 = classes.table;
|
|
1388
1399
|
let t19;
|
|
1389
|
-
if ($[
|
|
1390
|
-
t19 = /* @__PURE__ */ jsx(
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1396
|
-
$[
|
|
1397
|
-
$[
|
|
1398
|
-
$[42] = t19;
|
|
1400
|
+
if ($[31] !== HTMLRenderer || $[32] !== headerData || $[33] !== labelAccessor || $[34] !== subHeadCellsWidth || $[35] !== valuesHeaderData || $[36] !== xLayoutDataLength) {
|
|
1401
|
+
t19 = /* @__PURE__ */ jsx(Header, { headerData, valuesHeaderData, xLayoutDataLength, subHeadCellsWidth, HTMLRenderer, labelAccessor });
|
|
1402
|
+
$[31] = HTMLRenderer;
|
|
1403
|
+
$[32] = headerData;
|
|
1404
|
+
$[33] = labelAccessor;
|
|
1405
|
+
$[34] = subHeadCellsWidth;
|
|
1406
|
+
$[35] = valuesHeaderData;
|
|
1407
|
+
$[36] = xLayoutDataLength;
|
|
1408
|
+
$[37] = t19;
|
|
1399
1409
|
} else {
|
|
1400
|
-
t19 = $[
|
|
1410
|
+
t19 = $[37];
|
|
1401
1411
|
}
|
|
1402
1412
|
let t20;
|
|
1403
|
-
if ($[
|
|
1404
|
-
t20 = /* @__PURE__ */
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
]
|
|
1408
|
-
$[
|
|
1409
|
-
$[
|
|
1410
|
-
$[
|
|
1411
|
-
$[
|
|
1413
|
+
if ($[38] !== HTMLRenderer || $[39] !== SideIcon || $[40] !== activeCellIds || $[41] !== headerData || $[42] !== labelAccessor || $[43] !== subHeadCellsWidth || $[44] !== xLayoutData) {
|
|
1414
|
+
t20 = /* @__PURE__ */ jsx(SubHeader, { headerData, xLayoutData, activeCellIds, SideIcon, ref: subHeadCellsRef, subHeadCellsWidth, HTMLRenderer, labelAccessor });
|
|
1415
|
+
$[38] = HTMLRenderer;
|
|
1416
|
+
$[39] = SideIcon;
|
|
1417
|
+
$[40] = activeCellIds;
|
|
1418
|
+
$[41] = headerData;
|
|
1419
|
+
$[42] = labelAccessor;
|
|
1420
|
+
$[43] = subHeadCellsWidth;
|
|
1421
|
+
$[44] = xLayoutData;
|
|
1422
|
+
$[45] = t20;
|
|
1412
1423
|
} else {
|
|
1413
|
-
t20 = $[
|
|
1424
|
+
t20 = $[45];
|
|
1414
1425
|
}
|
|
1415
1426
|
let t21;
|
|
1416
|
-
if ($[
|
|
1417
|
-
t21 =
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
$[
|
|
1422
|
-
$[
|
|
1423
|
-
$[
|
|
1424
|
-
$[
|
|
1425
|
-
$[54] = headerData;
|
|
1426
|
-
$[55] = headerHeight;
|
|
1427
|
-
$[56] = isNoWrap;
|
|
1428
|
-
$[57] = labelAccessor;
|
|
1429
|
-
$[58] = nbColumnsByRows;
|
|
1430
|
-
$[59] = subHeadCellsWidth;
|
|
1431
|
-
$[60] = textAlign;
|
|
1432
|
-
$[61] = xLayoutDataLength;
|
|
1433
|
-
$[62] = t21;
|
|
1427
|
+
if ($[46] !== classes.stickyHeader || $[47] !== t19 || $[48] !== t20) {
|
|
1428
|
+
t21 = /* @__PURE__ */ jsxs("thead", { ref: headerRef, className: classes.stickyHeader, children: [
|
|
1429
|
+
t19,
|
|
1430
|
+
t20
|
|
1431
|
+
] });
|
|
1432
|
+
$[46] = classes.stickyHeader;
|
|
1433
|
+
$[47] = t19;
|
|
1434
|
+
$[48] = t20;
|
|
1435
|
+
$[49] = t21;
|
|
1434
1436
|
} else {
|
|
1435
|
-
t21 = $[
|
|
1437
|
+
t21 = $[49];
|
|
1436
1438
|
}
|
|
1437
1439
|
let t22;
|
|
1438
|
-
if ($[63] !==
|
|
1439
|
-
t22 =
|
|
1440
|
-
$[
|
|
1441
|
-
$[
|
|
1442
|
-
$[
|
|
1440
|
+
if ($[50] !== HTMLRenderer || $[51] !== SideIcon || $[52] !== activeCellHandler || $[53] !== activeCellIds || $[54] !== cellClasses || $[55] !== cellHandler || $[56] !== cellValueAccessor || $[57] !== cellsIndex || $[58] !== headerData || $[59] !== headerHeight || $[60] !== isNoWrap || $[61] !== labelAccessor || $[62] !== nbColumnsByRows || $[63] !== subHeadCellsWidth || $[64] !== textAlign || $[65] !== xLayoutDataLength) {
|
|
1441
|
+
t22 = (section, index) => /* @__PURE__ */ jsx(Section, { sectionIndex: index, headerHeight, nbColumnsByRows, headerData, cellsIndex, cellClasses, section, xLayoutDataLength, cellHandler, activeCellIds, activeCellHandler, SideIcon, subHeadCellsWidth, HTMLRenderer, cellValueAccessor, labelAccessor, isNoWrap, textAlign }, `section-${index}`);
|
|
1442
|
+
$[50] = HTMLRenderer;
|
|
1443
|
+
$[51] = SideIcon;
|
|
1444
|
+
$[52] = activeCellHandler;
|
|
1445
|
+
$[53] = activeCellIds;
|
|
1446
|
+
$[54] = cellClasses;
|
|
1447
|
+
$[55] = cellHandler;
|
|
1448
|
+
$[56] = cellValueAccessor;
|
|
1449
|
+
$[57] = cellsIndex;
|
|
1450
|
+
$[58] = headerData;
|
|
1451
|
+
$[59] = headerHeight;
|
|
1452
|
+
$[60] = isNoWrap;
|
|
1453
|
+
$[61] = labelAccessor;
|
|
1454
|
+
$[62] = nbColumnsByRows;
|
|
1455
|
+
$[63] = subHeadCellsWidth;
|
|
1456
|
+
$[64] = textAlign;
|
|
1457
|
+
$[65] = xLayoutDataLength;
|
|
1458
|
+
$[66] = t22;
|
|
1443
1459
|
} else {
|
|
1444
|
-
t22 = $[
|
|
1460
|
+
t22 = $[66];
|
|
1445
1461
|
}
|
|
1446
1462
|
let t23;
|
|
1447
|
-
if ($[
|
|
1448
|
-
t23 =
|
|
1449
|
-
|
|
1450
|
-
t22
|
|
1451
|
-
] });
|
|
1452
|
-
$[66] = classes.table;
|
|
1453
|
-
$[67] = t20;
|
|
1463
|
+
if ($[67] !== sectionsData || $[68] !== t22) {
|
|
1464
|
+
t23 = mapIndexed(t22, sectionsData);
|
|
1465
|
+
$[67] = sectionsData;
|
|
1454
1466
|
$[68] = t22;
|
|
1455
|
-
$[69] =
|
|
1456
|
-
|
|
1467
|
+
$[69] = t23;
|
|
1468
|
+
} else {
|
|
1469
|
+
t23 = $[69];
|
|
1470
|
+
}
|
|
1471
|
+
let t24;
|
|
1472
|
+
if ($[70] !== classes.table || $[71] !== t21 || $[72] !== t23 || $[73] !== testId) {
|
|
1473
|
+
t24 = /* @__PURE__ */ jsxs(Table, { className: t18, "aria-label": "table", size: "small", "data-testid": testId, children: [
|
|
1474
|
+
t21,
|
|
1475
|
+
t23
|
|
1476
|
+
] });
|
|
1477
|
+
$[70] = classes.table;
|
|
1478
|
+
$[71] = t21;
|
|
1479
|
+
$[72] = t23;
|
|
1480
|
+
$[73] = testId;
|
|
1481
|
+
$[74] = t24;
|
|
1457
1482
|
} else {
|
|
1458
|
-
|
|
1483
|
+
t24 = $[74];
|
|
1459
1484
|
}
|
|
1460
|
-
return
|
|
1485
|
+
return t24;
|
|
1461
1486
|
};
|
|
1462
1487
|
|
|
1463
1488
|
export { TableHtml5, getEnhancedValuesHeaderData };
|