@sis-cc/dotstatsuite-visions 15.10.0 → 15.11.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/DynamicDrawer/DynamicDrawer.js +101 -45
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
- package/dist/Mode/Mode.js +6 -2
- package/dist/Mode/Mode.js.map +1 -1
- package/dist/assets/Alert-C3S2X2PP.js +5 -0
- package/dist/assets/Alert.stories-BpR-y2sI.js +3 -0
- package/dist/assets/ApiQueries.stories-D4Ab9gN5.js +1 -0
- package/dist/assets/ArrowForward-CehSgME7.js +1 -0
- package/dist/assets/{Asterisk-CB8HeWQL.js → Asterisk-DQe8Poas.js} +1 -1
- package/dist/assets/{AuthDialog.stories-DuFbtth9.js → AuthDialog.stories-DwL9Rkii.js} +1 -1
- package/dist/assets/Box-Vi3KsXOG.js +1 -0
- package/dist/assets/{Breadcrumbs.stories-DyX67mKv.js → Breadcrumbs.stories-DDNBQYdD.js} +1 -1
- package/dist/assets/{Button-DbFMLbNd.js → Button-C1YR4qKP.js} +1 -1
- package/dist/assets/{Button-B5kCu_Zq.js → Button-CohdQIfO.js} +1 -1
- package/dist/assets/{Button.stories-H7gPNQ64.js → Button.stories-DwSZZ075.js} +1 -1
- package/dist/assets/{ButtonBase-xcQLDyHZ.js → ButtonBase-6aPSAQp6.js} +2 -2
- package/dist/assets/{CardContent-DWrgHlqV.js → CardContent-DtuO4dA1.js} +1 -1
- package/dist/assets/{ChartsConfig.stories-vecg2UK_.js → ChartsConfig.stories-C5Tu2JPr.js} +1 -1
- package/dist/assets/{Checkbox-C41_nQGn.js → Checkbox-BN4Ub-Nh.js} +1 -1
- package/dist/assets/{Chips.stories-9tB_EKVS.js → Chips.stories-DASf0GKV.js} +1 -1
- package/dist/assets/{CircularProgress-B-xGHuB1.js → CircularProgress-CH7zjNja.js} +4 -4
- package/dist/assets/Close-D0rQwiYA.js +1 -0
- package/dist/assets/{Collapse-asXHXQS9.js → Collapse-4DToDI9v.js} +1 -1
- package/dist/assets/{CollapseButtons.stories-BDe1U-Oc.js → CollapseButtons.stories-CK6Hl3c7.js} +1 -1
- package/dist/assets/{CollapsibleTree.stories-afow8lt9.js → CollapsibleTree.stories-C2oSm1q5.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-CUZcc8NZ.js → Color-6AOWCN3U-BvzM3jTo.js} +1 -1
- package/dist/assets/{Contact.stories-BaxHUiqZ.js → Contact.stories-vHpnDYqC.js} +1 -1
- package/dist/assets/{Container-D1sFsLeY.js → Container-B1Mwl1lm.js} +1 -1
- package/dist/assets/{Cross-BgKr5G8c.js → Cross-g8wKuiIf.js} +1 -1
- package/dist/assets/{CustomChip-CN7Y48JF.js → CustomChip-B3dN6AI7.js} +1 -1
- package/dist/assets/{DataEdit-Cc-TOW_P.js → DataEdit-dmXPPlcC.js} +1 -1
- package/dist/assets/DataEdit.stories-CZKHRLLJ.js +1 -0
- package/dist/assets/{DataFooter.stories-CpEZmDqP.js → DataFooter.stories-CopTrgHr.js} +1 -1
- package/dist/assets/{DataHeader.stories-B7hVHsrK.js → DataHeader.stories-BrIbJm-o.js} +2 -2
- package/dist/assets/{Dataflow.stories-B6pCwdNS.js → Dataflow.stories-BoBZ24Y2.js} +1 -1
- package/dist/assets/{DeleteAllChip.stories-DqHeBuNm.js → DeleteAllChip.stories-CVblU4WA.js} +1 -1
- package/dist/assets/{Dialog-6kr_3Q9M.js → Dialog-BxITjjcv.js} +1 -1
- package/dist/assets/{Divider-B4haHEr6.js → Divider-ojCdxnJz.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-BK-4rXT1.js → DocsRenderer-JROSPFPF-BI0bbpBO.js} +5 -5
- package/dist/assets/Done-CEUmFo3U.js +1 -0
- package/dist/assets/DynamicDrawer.stories-DkuIP0fI.js +37 -0
- package/dist/assets/{EmojiObjects-CblsKHB5.js → EmojiObjects-D1h5urec.js} +1 -1
- package/dist/assets/ExpandLess-BDAVIVbp.js +1 -0
- package/dist/assets/ExpandMore-DWgpeJhM.js +1 -0
- package/dist/assets/{ExpansionPanel-C4Y78s4w.js → ExpansionPanel-BKpHFtp-.js} +1 -1
- package/dist/assets/ExpansionPanel.stories-BN3lA5HB.js +1 -0
- package/dist/assets/FormControlLabel-DPAWIYnT.js +1 -0
- package/dist/assets/{Grid-B6U7ZXsR.js → Grid-DCv7KkHg.js} +1 -1
- package/dist/assets/{GroupedChips.stories-q0JaVtpW.js → GroupedChips.stories-CyxpBkzn.js} +1 -1
- package/dist/assets/{Grow-CmovDLa6.js → Grow-BX8Ai4ts.js} +1 -1
- package/dist/assets/{HierarchicalFilter.stories-_94z31Fm.js → HierarchicalFilter.stories-4IT4VM-j.js} +1 -1
- package/dist/assets/{IconButton-DTOfSJXy.js → IconButton-BMJx7Pci.js} +1 -1
- package/dist/assets/Info-DNniavju.js +1 -0
- package/dist/assets/{Input-Demnk_Fd.js → Input-DR1-29yu.js} +1 -1
- package/dist/assets/Input.stories-uzMk__VB.js +1 -0
- package/dist/assets/{InputAdornment-B2LsAthT.js → InputAdornment-CCv6-AlB.js} +1 -1
- package/dist/assets/{InputNumber.stories-CKbUL31E.js → InputNumber.stories-TPAZPcqB.js} +1 -1
- package/dist/assets/{KeyboardArrowUp-UvQlhn0e.js → KeyboardArrowUp-DRvu2yOd.js} +1 -1
- package/dist/assets/{LabelDivider.stories-BfbXMlOc.js → LabelDivider.stories-B1Qj8l5g.js} +1 -1
- package/dist/assets/Lens-Cbc9cKRN.js +1 -0
- package/dist/assets/{Link-DTZCSlk4.js → Link-Ch12lIc5.js} +1 -1
- package/dist/assets/ListContext-CMf6-7Sb.js +1 -0
- package/dist/assets/{Loading.stories--29cbPMM.js → Loading.stories-BGrJK5XQ.js} +1 -1
- package/dist/assets/{Logo.stories-C_bKFanm.js → Logo.stories-4mV_Fi6y.js} +1 -1
- package/dist/assets/{MenuItem-Di2ZEiPk.js → MenuItem-C0ABI9Du.js} +1 -1
- package/dist/assets/Mode-BSmZLnK4.js +1 -0
- package/dist/assets/Mode.stories-BpbJ2tSc.js +1 -0
- package/dist/assets/{NoData-DDnslGfk.js → NoData-BidMs52i.js} +1 -1
- package/dist/assets/NoData.stories-DIzKUQzM.js +1 -0
- package/dist/assets/{Pagination.stories-B8TXMqXf.js → Pagination.stories-O2fvDAc9.js} +1 -1
- package/dist/assets/{Paper-DZuOXBnM.js → Paper-D-2EWt0t.js} +1 -1
- package/dist/assets/{PeriodPicker.stories-COfk2NAS.js → PeriodPicker.stories-BYcmdIvN.js} +1 -1
- package/dist/assets/{Popover-aR7zDKTT.js → Popover-1QHN-3P3.js} +1 -1
- package/dist/assets/{RadioGroup-BM7p01rJ.js → RadioGroup-DbxChtEt.js} +1 -1
- package/dist/assets/{Select-DW5bNd7Y.js → Select-Bnuywl_s.js} +1 -1
- package/dist/assets/{Select-CAKhSKcn.js → Select-CAN3VPe2.js} +1 -1
- package/dist/assets/Select.stories-DUmhopHi.js +1 -0
- package/dist/assets/Share.stories-SZcCt2hb.js +1 -0
- package/dist/assets/ShortUrls.stories-B-d_jcRG.js +1 -0
- package/dist/assets/{SisccFooter.stories-DTFQbYX4.js → SisccFooter.stories-8vbX9NCB.js} +1 -1
- package/dist/assets/{Spotlight-CKJYkG8b.js → Spotlight-2vgttk2t.js} +1 -1
- package/dist/assets/Spotlight.stories-D9ziMjzy.js +1 -0
- package/dist/assets/{SvgIcon-CZzJ1w7c.js → SvgIcon-DzB5t25g.js} +1 -1
- package/dist/assets/{SwitchBase-BfXSA4_V.js → SwitchBase-CSO8x5Iy.js} +1 -1
- package/dist/assets/{TableFooter.stories-BU3Oa9bH.js → TableFooter.stories-CeGVsKdi.js} +1 -1
- package/dist/assets/{TableHeader.stories-DQzx8bl3.js → TableHeader.stories-D07-OUAl.js} +1 -1
- package/dist/assets/{TableHtml5.stories-Wi0uP9qL.js → TableHtml5.stories-ByTHZe8E.js} +1 -1
- package/dist/assets/{TableLayout.stories-DrdyWCXV.js → TableLayout.stories-Cn0TIWxP.js} +1 -1
- package/dist/assets/{TablePreview-Bna1VW8q.js → TablePreview-BPawZ4E5.js} +1 -1
- package/dist/assets/{TablePreview.stories-DRk5zHq2.js → TablePreview.stories-C7I1rUiH.js} +1 -1
- package/dist/assets/{TableRow-DDD4PBdn.js → TableRow-ZWLJ_DR9.js} +1 -1
- package/dist/assets/{Tag-CiWCQVP9.js → Tag-Bk9nbDff.js} +1 -1
- package/dist/assets/{Tag.stories-tr1duxLG.js → Tag.stories-Dr4ptHho.js} +1 -1
- package/dist/assets/{TextField-lhY2HO4g.js → TextField-CfuNcE_v.js} +1 -1
- package/dist/assets/{TextareaAutosize-BFDelLNU.js → TextareaAutosize-mJG2GESq.js} +2 -2
- package/dist/assets/{ToggleButton-DbedRELo.js → ToggleButton-CTr2YPQl.js} +1 -1
- package/dist/assets/ToggleButton.stories-BjJ9ztTH.js +1 -0
- package/dist/assets/{Tooltip-xK3zHRdQ.js → Tooltip-Cn6XshTd.js} +1 -1
- package/dist/assets/{Tooltip-DoIbO9P0.js → Tooltip-UcIcym4P.js} +1 -1
- package/dist/assets/Tooltip.stories-BBAQ9dnq.js +1 -0
- package/dist/assets/{TransitionGroupContext-Ca8wU8Bo.js → TransitionGroupContext-D7l0V9cG.js} +1 -1
- package/dist/assets/{Typography-jLxMXxWd.js → Typography-DHeHOEzt.js} +1 -1
- package/dist/assets/{UserRightForm.stories-CmXRPSoP.js → UserRightForm.stories-Bw9TNAWo.js} +1 -1
- package/dist/assets/{VerticalButton-CP0ext06.js → VerticalButton-Cc_sYLhP.js} +1 -1
- package/dist/assets/VerticalButton.stories-Wu8xfZTb.js +1 -0
- package/dist/assets/{VirtualizedTree-BJrdcGGB.js → VirtualizedTree-Bbb_lK7X.js} +2 -2
- package/dist/assets/{VirtualizedTree.stories-CssCajd4.js → VirtualizedTree.stories-CBfuEaX9.js} +1 -1
- package/dist/assets/{Warning-h-dPY3cr.js → Warning-CbAdSUrf.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-COFEVPzg.js → WithTooltip-7X4HQR7L-lh997kdd.js} +1 -1
- package/dist/assets/{axe-CzyDF4im.js → axe-BkXb_D7-.js} +1 -1
- package/dist/assets/{client-CYtwuj_j.js → client-CikD4qGw.js} +1 -1
- package/dist/assets/colorManipulator-D_tLMTev.js +1 -0
- package/dist/assets/{createSvgIcon-BGzLlNtT.js → createSvgIcon-CqXYZBmL.js} +1 -1
- package/dist/assets/{dividerClasses-Do7-ZljV.js → dividerClasses-Co311yX_.js} +1 -1
- package/dist/assets/{formControlState-YqHQ4P5q.js → formControlState-D74kB6qI.js} +1 -1
- package/dist/assets/formatter-L2YTDE3Q-BHAuOObW.js +1 -0
- package/dist/assets/{getThemeProps-8vfztv9D.js → getThemeProps-CG1CR4I9.js} +1 -1
- package/dist/assets/{iframe-mT4hNYuc.js → iframe-C1bnC1Pj.js} +33 -33
- package/dist/assets/{index-DA5RBLm-.js → index-3SAPhb8V.js} +1 -1
- package/dist/assets/{index-Bd5e-jAp.js → index-BXEmTPor.js} +1 -1
- package/dist/assets/index-BvojktHa.js +1 -0
- package/dist/assets/{index-DFeh-rI9.js → index-CKk6gjyj.js} +1 -1
- package/dist/assets/{index-BVaiqGvg.js → index-D-0ltSfj.js} +1 -1
- package/dist/assets/{index-CaZ_DDwI.js → index-DUNifE3j.js} +1 -1
- package/dist/assets/{isMuiElement-CU6fO6Lj.js → isMuiElement-Cp4aeRDY.js} +1 -1
- package/dist/assets/{listItemTextClasses-DlqFht8L.js → listItemTextClasses-DFT1e9wE.js} +1 -1
- package/dist/assets/{makeStyles-DtyvlnPy.js → makeStyles-DaUheSlq.js} +1 -1
- package/dist/assets/{react-18-CZkB7kDK.js → react-18-DowAecHn.js} +1 -1
- package/dist/assets/{styled-B9q3JXNZ.js → styled-BvMu-i3T.js} +1 -1
- package/dist/assets/{syntaxhighlighter-YFXUGROL-5rrd0HOA.js → syntaxhighlighter-YFXUGROL-DbaGSNpt.js} +1 -1
- package/dist/assets/{useControlled-CxTEb3mL.js → useControlled-BZeFnDHX.js} +1 -1
- package/dist/assets/{useKeybordEscapeHandler-DrfvnNm4.js → useKeybordEscapeHandler-Bywf-ERh.js} +1 -1
- package/dist/assets/useMediaQuery-Dp42IuVY.js +1 -0
- package/dist/assets/{useSlotProps-CliOPb33.js → useSlotProps-DMUYBW0r.js} +1 -1
- package/dist/assets/useTheme-Bf8jviYk.js +1 -0
- package/dist/assets/{useThemeProps-yM0TblOY.js → useThemeProps-CxK1agQy.js} +1 -1
- package/dist/assets/{utils-Baek4kta.js → utils-CcYtXupW.js} +1 -1
- package/dist/assets/{utils-D1Vzf0Ll.js → utils-DoMMALni.js} +1 -1
- package/dist/assets/{with-input-DFec13W2.js → with-input-BUeOWTy0.js} +1 -1
- package/dist/assets/{withSpotlight-Db8r7AnG.js → withSpotlight-BE3AY_At.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/manifests/components.html +1 -1
- package/dist/manifests/components.json +1 -1
- package/dist/project.json +1 -1
- package/dist/theme/theme.js +57 -3
- package/dist/theme/theme.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/Alert-DMn7endu.js +0 -5
- package/dist/assets/Alert.stories-Dok0H0RK.js +0 -3
- package/dist/assets/ApiQueries.stories-DTcKKET2.js +0 -1
- package/dist/assets/ArrowForward-fiXYAfbW.js +0 -1
- package/dist/assets/Box-DYoX-ZB6.js +0 -1
- package/dist/assets/Close-Cf7f48a8.js +0 -1
- package/dist/assets/DataEdit.stories-BPx078L3.js +0 -1
- package/dist/assets/Done-8DUcNJKw.js +0 -1
- package/dist/assets/DynamicDrawer.stories-S1KqehWJ.js +0 -37
- package/dist/assets/ExpandLess-2NzUvPSO.js +0 -1
- package/dist/assets/ExpandMore-DqOfMEpD.js +0 -1
- package/dist/assets/ExpansionPanel.stories-C6hZTbQG.js +0 -1
- package/dist/assets/FormControlLabel-B_IKD3MI.js +0 -1
- package/dist/assets/Info-D94Myxb7.js +0 -1
- package/dist/assets/Input.stories-IelizZCq.js +0 -1
- package/dist/assets/Lens-B64bmWBj.js +0 -1
- package/dist/assets/ListContext-CaoqgfSR.js +0 -1
- package/dist/assets/Mode-BqwYL9VB.js +0 -1
- package/dist/assets/Mode.stories-KzKEU-rg.js +0 -1
- package/dist/assets/NoData.stories-FTYR90lF.js +0 -1
- package/dist/assets/Select.stories-Ctvi3KAJ.js +0 -1
- package/dist/assets/Share.stories-BbtxwfIG.js +0 -1
- package/dist/assets/ShortUrls.stories-DAdOYOtX.js +0 -1
- package/dist/assets/Spotlight.stories-Qwn73jtU.js +0 -1
- package/dist/assets/ToggleButton.stories-BUykF4ME.js +0 -1
- package/dist/assets/Tooltip.stories-ejy4QFHo.js +0 -1
- package/dist/assets/VerticalButton.stories-C8aEK1gh.js +0 -1
- package/dist/assets/formatter-L2YTDE3Q-BXudoyop.js +0 -1
- package/dist/assets/index-Bc3O_u04.js +0 -1
- package/dist/assets/useMediaQuery-D0q8FvvS.js +0 -1
- package/dist/assets/useTheme-C_OzFh25.js +0 -1
|
@@ -15,7 +15,7 @@ import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
|
15
15
|
import makeStyles from '@mui/styles/makeStyles';
|
|
16
16
|
import { EmojiObjects, Remove, Add, ArrowBack, Close } from '@mui/icons-material';
|
|
17
17
|
import Divider from '@mui/material/Divider';
|
|
18
|
-
import { useTheme } from '@mui/material/styles';
|
|
18
|
+
import { alpha, useTheme } from '@mui/material/styles';
|
|
19
19
|
import Dialog from '@mui/material/Dialog';
|
|
20
20
|
import DialogActions from '@mui/material/DialogActions';
|
|
21
21
|
import DialogContent from '@mui/material/DialogContent';
|
|
@@ -450,22 +450,22 @@ const WarningPopup = ({
|
|
|
450
450
|
const useChipStyles = makeStyles(makeStylesFn);
|
|
451
451
|
const panelDomId = (testId) => `${testId}-panel`;
|
|
452
452
|
const dimensionLabelId = (dimId) => `dimension-label-${dimId}`;
|
|
453
|
+
const dynamicDrawerMixin = (theme, ...path) => R.path(["mixins", "dynamicDrawer", ...path], theme);
|
|
453
454
|
const useStyles = makeStyles((theme) => ({
|
|
454
455
|
label: {
|
|
455
|
-
color: theme.palette.grey[700],
|
|
456
456
|
...R.pathOr({}, ["mixins", "dynamicDrawer", "tab", "title"], theme)
|
|
457
457
|
},
|
|
458
458
|
frame: {
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
borderWidth: 1,
|
|
460
|
+
borderStyle: "solid",
|
|
461
461
|
transition: "border-color 0.2s ease",
|
|
462
|
+
...R.pathOr({}, ["mixins", "dynamicDrawer", "tab", "base"], theme),
|
|
462
463
|
"&:hover, &:focus-within": {
|
|
463
|
-
borderColor: theme.palette.primary.main,
|
|
464
464
|
...R.pathOr({}, ["mixins", "dynamicDrawer", "tab", "frame"], theme)
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
labelSelected: {
|
|
468
|
-
|
|
468
|
+
...R.pathOr({}, ["mixins", "dynamicDrawer", "tab", "selectedTitle"], theme)
|
|
469
469
|
},
|
|
470
470
|
chipDeleteLeft: {
|
|
471
471
|
flexDirection: "row-reverse",
|
|
@@ -473,19 +473,23 @@ const useStyles = makeStyles((theme) => ({
|
|
|
473
473
|
margin: theme.spacing(0, 0.5, 0, -0.5)
|
|
474
474
|
}
|
|
475
475
|
},
|
|
476
|
+
// outline for standalone chips (value, count, "All items", "Remove all").
|
|
477
|
+
// Not used inside concatenatedChips — that group already has its own
|
|
478
|
+
// outer border and dividers between items, see theme.js.
|
|
479
|
+
chipBorder: {
|
|
480
|
+
border: `solid 1px ${dynamicDrawerMixin(theme, "chips", "outlineColor")}`
|
|
481
|
+
},
|
|
476
482
|
// #1788: the "Remove all" chip is a squared frame with barely rounded
|
|
477
483
|
// angles, so it reads as a different control from the informative chips.
|
|
478
484
|
removeAllChip: {
|
|
479
|
-
borderRadius:
|
|
485
|
+
borderRadius: dynamicDrawerMixin(theme, "chips", "removeAllBorderRadius")
|
|
480
486
|
},
|
|
481
487
|
// #1789: a long value truncates on one line and exposes its full text via
|
|
482
|
-
// the native title tooltip, instead of wrapping the chip over several
|
|
488
|
+
// the native title tooltip, instead of wrapping the chip over several
|
|
489
|
+
// lines. Merged wholesale from the theme (see theme.js) rather than
|
|
490
|
+
// cherry-picking maxWidth — same convention as `label`'s tab.title merge.
|
|
483
491
|
ellipsisLabel: {
|
|
484
|
-
|
|
485
|
-
maxWidth: 220,
|
|
486
|
-
overflow: "hidden",
|
|
487
|
-
textOverflow: "ellipsis",
|
|
488
|
-
whiteSpace: "nowrap"
|
|
492
|
+
...R.pathOr({}, ["mixins", "dynamicDrawer", "chips", "ellipsisLabel"], theme)
|
|
489
493
|
},
|
|
490
494
|
// #1787: expanded items are concatenated inside a single outer frame,
|
|
491
495
|
// separated by vertical dividers, the last one closing the rounded border.
|
|
@@ -493,19 +497,26 @@ const useStyles = makeStyles((theme) => ({
|
|
|
493
497
|
display: "flex",
|
|
494
498
|
flexWrap: "wrap",
|
|
495
499
|
alignItems: "stretch",
|
|
496
|
-
border: `solid 1px ${theme
|
|
497
|
-
borderRadius:
|
|
500
|
+
border: `solid 1px ${dynamicDrawerMixin(theme, "chips", "dividerColor")}`,
|
|
501
|
+
borderRadius: dynamicDrawerMixin(theme, "chips", "groupBorderRadius"),
|
|
498
502
|
overflow: "hidden",
|
|
499
503
|
"& > *": {
|
|
500
504
|
margin: 0,
|
|
501
505
|
borderRadius: 0,
|
|
502
|
-
borderRight: `solid 1px ${theme
|
|
506
|
+
borderRight: `solid 1px ${dynamicDrawerMixin(theme, "chips", "dividerColor")}`
|
|
503
507
|
},
|
|
504
508
|
"& > *:last-child": {
|
|
505
509
|
borderRight: "none"
|
|
506
510
|
}
|
|
507
511
|
},
|
|
508
512
|
dimensionButton: {
|
|
513
|
+
// WCAG 2.2 SC 2.5.8 (Target Size Minimum): the label text alone is
|
|
514
|
+
// narrower than 24px tall, so the button needs an explicit minHeight
|
|
515
|
+
// rather than relying on the text's line-height. Not theme-configurable
|
|
516
|
+
// on purpose — this is an accessibility floor, not a look-and-feel knob.
|
|
517
|
+
display: "inline-flex",
|
|
518
|
+
alignItems: "center",
|
|
519
|
+
minHeight: 24,
|
|
509
520
|
padding: 0,
|
|
510
521
|
border: "none",
|
|
511
522
|
background: "none",
|
|
@@ -518,31 +529,37 @@ const useStyles = makeStyles((theme) => ({
|
|
|
518
529
|
toggleButton: {
|
|
519
530
|
minWidth: "20px",
|
|
520
531
|
padding: theme.spacing(0.2),
|
|
521
|
-
color: theme
|
|
532
|
+
color: dynamicDrawerMixin(theme, "toggleButton", "color")
|
|
522
533
|
},
|
|
523
534
|
list: {
|
|
524
535
|
display: "flex",
|
|
525
536
|
flexDirection: "column",
|
|
537
|
+
gap: dynamicDrawerMixin(theme, "list", "gap"),
|
|
526
538
|
listStyle: "none",
|
|
527
539
|
margin: 0,
|
|
528
540
|
padding: 0,
|
|
529
541
|
overflowY: "auto",
|
|
530
542
|
overflowX: "hidden",
|
|
531
543
|
width: "100%",
|
|
532
|
-
borderRight: `solid 1px ${theme
|
|
544
|
+
borderRight: `solid 1px ${dynamicDrawerMixin(theme, "list", "borderColor")}`
|
|
533
545
|
},
|
|
534
546
|
tooltipNotice: {
|
|
535
547
|
textDecoration: "underline dotted"
|
|
536
548
|
},
|
|
549
|
+
// The card label text is a fixed grey[700], so the hover/selected fill
|
|
550
|
+
// can't reuse action.hover/action.selected at their usual opacity: on
|
|
551
|
+
// this OECD palette that composites to ~4.27:1 against grey[700], under
|
|
552
|
+
// WCAG 1.4.3's 4.5:1 minimum. Re-deriving the same hue at a lower, fixed
|
|
553
|
+
// alpha keeps it tenant-themed while staying readable.
|
|
537
554
|
tabSelected: {
|
|
538
|
-
backgroundColor: `${theme.palette.action.hover} !important`,
|
|
555
|
+
backgroundColor: `${alpha(theme.palette.action.hover, dynamicDrawerMixin(theme, "tab", "hoverOpacity"))} !important`,
|
|
539
556
|
"&:hover": {
|
|
540
|
-
backgroundColor: `${theme.palette.action.selected} !important`
|
|
557
|
+
backgroundColor: `${alpha(theme.palette.action.selected, dynamicDrawerMixin(theme, "tab", "selectedOpacity"))} !important`
|
|
541
558
|
}
|
|
542
559
|
},
|
|
543
560
|
tab: {
|
|
544
561
|
"&:hover": {
|
|
545
|
-
backgroundColor:
|
|
562
|
+
backgroundColor: alpha(theme.palette.action.selected, dynamicDrawerMixin(theme, "tab", "selectedOpacity"))
|
|
546
563
|
}
|
|
547
564
|
}
|
|
548
565
|
}));
|
|
@@ -599,8 +616,13 @@ const TabPanel = (props) => {
|
|
|
599
616
|
const drawerClasses = useStyles();
|
|
600
617
|
const description = descriptionAccessor ? descriptionAccessor(item) : "";
|
|
601
618
|
const hasDescription = !R.isEmpty(description || "");
|
|
602
|
-
|
|
603
|
-
|
|
619
|
+
const sectionRef = useRef(null);
|
|
620
|
+
useEffect(() => {
|
|
621
|
+
if (open) sectionRef.current?.focus();
|
|
622
|
+
}, [open, panelId]);
|
|
623
|
+
return /* @__PURE__ */ jsx("section", { ref: sectionRef, tabIndex: -1, hidden: !open, id: panelId, "aria-labelledby": dimensionLabelId(R.prop("id", item)), className: isNarrow ? classes.tabPanelNarrow : classes.tabPanel, style: {
|
|
624
|
+
width: R.prop("width", styles),
|
|
625
|
+
height: isNarrow ? void 0 : R.prop("height", styles)
|
|
604
626
|
}, ...other, children: open && /* @__PURE__ */ jsxs(Box, { sx: {
|
|
605
627
|
p: 3
|
|
606
628
|
}, children: [
|
|
@@ -673,10 +695,12 @@ const DimensionCard = React.forwardRef(({
|
|
|
673
695
|
label: itemLabel,
|
|
674
696
|
items,
|
|
675
697
|
isNotRemovable
|
|
676
|
-
}
|
|
698
|
+
}, {
|
|
699
|
+
bordered = true
|
|
700
|
+
} = {}) => /* @__PURE__ */ jsx(CustomChip, { id, parentId: dimId, label: itemLabel, items, renderer: myTooltipRenderer({
|
|
677
701
|
isRtl,
|
|
678
702
|
labelRenderer
|
|
679
|
-
}), labelRenderer, chipClasses: cx(chipClasses.secondaryChip, chipClasses.chip, classes.chipDeleteLeft), iconClasses: chipClasses.icon, labelClasses: cx(chipClasses.spaceLabel, classes.ellipsisLabel), title: R.is(String, itemLabel) ? itemLabel : void 0, onDelete: R.is(Function, onDeleteValue) && isEditMode && !isNotRemovable ? onDeleteValue : void 0 }, id);
|
|
703
|
+
}), labelRenderer, chipClasses: cx(chipClasses.secondaryChip, chipClasses.chip, classes.chipDeleteLeft, bordered && classes.chipBorder), iconClasses: chipClasses.icon, labelClasses: cx(chipClasses.spaceLabel, classes.ellipsisLabel), title: R.is(String, itemLabel) ? itemLabel : void 0, onDelete: R.is(Function, onDeleteValue) && isEditMode && !isNotRemovable ? onDeleteValue : void 0 }, id);
|
|
680
704
|
const countChip = /* @__PURE__ */ jsx(CustomChip, { label: nItemsLabel, chipClasses: cx(chipClasses.mainChip, chipClasses.chip, classes.chipDeleteLeft), labelClasses: cx(chipClasses.spaceLabel, chipClasses.formatLabel), iconClasses: chipClasses.icon, onDelete: R.is(Function, onDeleteAllDimValues) && isEditMode ? () => onDeleteAllDimValues(dimId, selectedItems) : void 0 });
|
|
681
705
|
return /* @__PURE__ */ jsx(Paper, { ...rest, ref, className: cx(rest.className, classes.frame), children: /* @__PURE__ */ jsxs(Box, { sx: {
|
|
682
706
|
display: "flex",
|
|
@@ -700,12 +724,16 @@ const DimensionCard = React.forwardRef(({
|
|
|
700
724
|
flexWrap: "wrap",
|
|
701
725
|
alignItems: "center",
|
|
702
726
|
gap: 0.5
|
|
703
|
-
}, children: R.isEmpty(selectedItems) ? /* @__PURE__ */ jsx(CustomChip, { label: R.propOr("All items", "allItems", labels), chipClasses: cx(chipClasses.mainChip, chipClasses.chip), labelClasses: cx(chipClasses.spaceLabel, chipClasses.formatLabel), iconClasses: chipClasses.icon }) : showCollapseToggle ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
727
|
+
}, children: R.isEmpty(selectedItems) ? /* @__PURE__ */ jsx(CustomChip, { label: R.propOr("All items", "allItems", labels), chipClasses: cx(chipClasses.mainChip, chipClasses.chip, classes.chipBorder), labelClasses: cx(chipClasses.spaceLabel, chipClasses.formatLabel), iconClasses: chipClasses.icon }) : showCollapseToggle ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
728
|
+
/* @__PURE__ */ jsxs(Box, { className: classes.concatenatedChips, children: [
|
|
729
|
+
countChip,
|
|
730
|
+
expanded ? toggle(/* @__PURE__ */ jsx(Remove, { fontSize: "small" }), R.propOr("Show less", "showLess", labels)) : toggle(/* @__PURE__ */ jsx(Add, { fontSize: "small" }), R.propOr("Show more", "showMore", labels))
|
|
731
|
+
] }),
|
|
732
|
+
expanded && /* @__PURE__ */ jsx(Box, { id: chipsId, className: classes.concatenatedChips, children: R.map((chip) => valueChip(chip, {
|
|
733
|
+
bordered: false
|
|
734
|
+
}))(selectedItems) })
|
|
707
735
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
708
|
-
showRemoveAll && isEditMode && /* @__PURE__ */ jsx(CustomChip, { label: R.propOr("Remove all", "removeAll", labels), chipClasses: cx(chipClasses.mainChip, chipClasses.chip, classes.chipDeleteLeft, classes.removeAllChip), labelClasses: cx(chipClasses.spaceLabel, chipClasses.formatLabel), iconClasses: chipClasses.icon, onDelete: R.is(Function, onDeleteAllDimValues) ? () => onDeleteAllDimValues(dimId, selectedItems) : void 0 }),
|
|
736
|
+
showRemoveAll && isEditMode && /* @__PURE__ */ jsx(CustomChip, { label: R.propOr("Remove all", "removeAll", labels), chipClasses: cx(chipClasses.mainChip, chipClasses.chip, classes.chipDeleteLeft, classes.removeAllChip, classes.chipBorder), labelClasses: cx(chipClasses.spaceLabel, chipClasses.formatLabel), iconClasses: chipClasses.icon, onDelete: R.is(Function, onDeleteAllDimValues) ? () => onDeleteAllDimValues(dimId, selectedItems) : void 0 }),
|
|
709
737
|
R.map((chip) => valueChip(chip))(selectedItems)
|
|
710
738
|
] }) })
|
|
711
739
|
] }) });
|
|
@@ -782,21 +810,26 @@ const DynamicDrawer = (props) => {
|
|
|
782
810
|
clearSelectionKeyRef.current = clearSelectionKey;
|
|
783
811
|
handleClearAllSelections();
|
|
784
812
|
}, [clearSelectionKey]);
|
|
813
|
+
const openTabIdRef = useRef();
|
|
785
814
|
useLayoutEffect(() => {
|
|
786
|
-
if (!openTabId)
|
|
815
|
+
if (!openTabId) {
|
|
816
|
+
openTabIdRef.current = openTabId;
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
if (openTabIdRef.current === openTabId) return;
|
|
787
820
|
const item = R.find((listItem) => R.prop("id", listItem) === openTabId)(list);
|
|
788
|
-
if (item
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
setSelectedId(id);
|
|
796
|
-
setOpen(true);
|
|
821
|
+
if (!item) return;
|
|
822
|
+
openTabIdRef.current = openTabId;
|
|
823
|
+
const id = R.prop("id", item);
|
|
824
|
+
const filterSelection = R.pipe(R.propOr([], id), (arr) => R.zipObj(arr, arr))(allSelection);
|
|
825
|
+
startTransition(() => {
|
|
826
|
+
setSelection({
|
|
827
|
+
...filterSelection
|
|
797
828
|
});
|
|
798
|
-
|
|
799
|
-
|
|
829
|
+
setSelectedId(id);
|
|
830
|
+
setOpen(true);
|
|
831
|
+
});
|
|
832
|
+
}, [openTabId, list, allSelection]);
|
|
800
833
|
const handleChange = (e, item) => {
|
|
801
834
|
const id = R.prop("id", item);
|
|
802
835
|
const filterSelection = R.pipe(R.propOr([], id), (arr) => R.zipObj(arr, arr))(allSelection);
|
|
@@ -807,6 +840,17 @@ const DynamicDrawer = (props) => {
|
|
|
807
840
|
setSelectedId(id);
|
|
808
841
|
setOpen(true);
|
|
809
842
|
};
|
|
843
|
+
const handleListKeyDown = (e) => {
|
|
844
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
845
|
+
const target = e.target;
|
|
846
|
+
if (!target.classList?.contains(classNames.dimensionButton)) return;
|
|
847
|
+
const currentIndex = R.findIndex((item) => dimensionLabelId(R.prop("id", item)) === target.id, list);
|
|
848
|
+
if (currentIndex === -1) return;
|
|
849
|
+
e.preventDefault();
|
|
850
|
+
const delta = e.key === "ArrowDown" ? 1 : -1;
|
|
851
|
+
const nextIndex = (currentIndex + delta + list.length) % list.length;
|
|
852
|
+
document.getElementById(dimensionLabelId(R.prop("id", list[nextIndex])))?.focus();
|
|
853
|
+
};
|
|
810
854
|
const applyDeselection = (dimId, valueIds) => {
|
|
811
855
|
const nextMap = toggleOffSelection(dimId, valueIds);
|
|
812
856
|
const nextIds = R.values(nextMap);
|
|
@@ -899,12 +943,24 @@ const DynamicDrawer = (props) => {
|
|
|
899
943
|
// the closing overlay below is positioned, so it would paint over a
|
|
900
944
|
// static header whatever the dom order: lift the whole column above it
|
|
901
945
|
position: "relative",
|
|
902
|
-
zIndex: 1e3
|
|
946
|
+
zIndex: 1e3,
|
|
947
|
+
// Same height as the panel (TabPanel gets it too, see below) —
|
|
948
|
+
// fixed on the column itself, not the list, so the Apply button
|
|
949
|
+
// below is a sibling that shares this height rather than adding
|
|
950
|
+
// to it. The list is a flex child that shrinks to make room for
|
|
951
|
+
// the button (its own overflow:auto handles the rest) instead of
|
|
952
|
+
// the column growing taller than the panel when it appears.
|
|
953
|
+
height: isEditMode ? R.prop("height", styles) : void 0
|
|
903
954
|
}, children: [
|
|
904
955
|
header || defaultHeader,
|
|
905
|
-
/* @__PURE__ */ jsx(Box, { component: "ul", "aria-label": labels.tabs || "Filters", "data-testid": testId, className: classNames.list, sx: {
|
|
956
|
+
/* @__PURE__ */ jsx(Box, { component: "ul", "aria-label": labels.tabs || "Filters", "data-testid": testId, className: classNames.list, onKeyDown: handleListKeyDown, sx: {
|
|
906
957
|
display: isHidden ? "none" : "flex",
|
|
907
|
-
|
|
958
|
+
...isEditMode ? {
|
|
959
|
+
flex: "1 1 0",
|
|
960
|
+
minHeight: 0
|
|
961
|
+
} : {
|
|
962
|
+
height: "100%"
|
|
963
|
+
},
|
|
908
964
|
zIndex: 1e3
|
|
909
965
|
}, children: R.map((item) => {
|
|
910
966
|
const id = R.prop("id", item);
|