@sis-cc/dotstatsuite-visions 15.18.0 → 15.20.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 +92 -42
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
- package/dist/HierarchicalFilter/HierarchicalFilter.js +1 -1
- package/dist/assets/Add-DrloiGQm.js +1 -0
- package/dist/assets/{Alert-CI3CnEU9.js → Alert-BjStizsv.js} +1 -1
- package/dist/assets/{Alert.stories-B6BsLv_r.js → Alert.stories-Cb5DJcD9.js} +1 -1
- package/dist/assets/{ApiQueries.stories-Dr2kT9if.js → ApiQueries.stories-CgUTEsxh.js} +1 -1
- package/dist/assets/ArrowForward-DK_mYP0d.js +1 -0
- package/dist/assets/{Asterisk-3Rhwi0WA.js → Asterisk-CVJ-gTNL.js} +1 -1
- package/dist/assets/{AuthDialog.stories-CvF2sb9q.js → AuthDialog.stories-C6UEofl4.js} +1 -1
- package/dist/assets/{Breadcrumbs.stories-BwkZP8U5.js → Breadcrumbs.stories-DeWeIkso.js} +1 -1
- package/dist/assets/{Button-BiHQ2vOD.js → Button-CE5LmMP0.js} +1 -1
- package/dist/assets/{Button.stories-CRade2Lu.js → Button.stories-BeM6lim_.js} +1 -1
- package/dist/assets/{CardContent-DCSLw0IR.js → CardContent-BhQamReH.js} +1 -1
- package/dist/assets/{ChartsConfig.stories-CCnkjQuh.js → ChartsConfig.stories-Dytnk-d0.js} +1 -1
- package/dist/assets/{Checkbox-BexP1orf.js → Checkbox-2ISVsd8V.js} +1 -1
- package/dist/assets/{Chips.stories-DgAlsI9C.js → Chips.stories-CS9UfjZQ.js} +1 -1
- package/dist/assets/{CircularProgress-B4-i86z_.js → CircularProgress-BMo6p0Mj.js} +1 -1
- package/dist/assets/Close-C_Q2kA_T.js +1 -0
- package/dist/assets/{Collapse-DXtMjzVx.js → Collapse-CnVujKNr.js} +1 -1
- package/dist/assets/{CollapseButtons.stories-C3KyVYXt.js → CollapseButtons.stories-BgNUZRWD.js} +1 -1
- package/dist/assets/{CollapsibleTree.stories-C-Th6prK.js → CollapsibleTree.stories-BY7WKHLw.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-ihLmUPnX.js → Color-6AOWCN3U-gSAWkK7J.js} +1 -1
- package/dist/assets/{Contact.stories-I2QClu_K.js → Contact.stories-D3Ydin0L.js} +1 -1
- package/dist/assets/{Container-8Eg7Ev_d.js → Container-D-4Tc5hE.js} +1 -1
- package/dist/assets/{Cross-snf9VeuL.js → Cross-6M-oGMGA.js} +1 -1
- package/dist/assets/{CustomChip-CLYzvFOP.js → CustomChip-Clig8aPH.js} +1 -1
- package/dist/assets/{DataEdit.stories-Du66K6ED.js → DataEdit.stories-C3J-gSXU.js} +1 -1
- package/dist/assets/{DataFooter.stories-C_keeuRM.js → DataFooter.stories-VDb_pwN8.js} +1 -1
- package/dist/assets/{DataHeader.stories-BIY7VUtj.js → DataHeader.stories-B_QURStK.js} +1 -1
- package/dist/assets/{Dataflow.stories-jz4WO4lz.js → Dataflow.stories-CrcBJmuK.js} +1 -1
- package/dist/assets/{DeleteAllChip.stories-7_PR3OHU.js → DeleteAllChip.stories-B8V_SJmr.js} +1 -1
- package/dist/assets/{Dialog-Dwe2Q5qM.js → Dialog-Cg-woxOt.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-BG3i7ScM.js → DocsRenderer-JROSPFPF-DsKYxSam.js} +5 -5
- package/dist/assets/Done-B-L0ypZq.js +1 -0
- package/dist/assets/Download-DXOwBx6c.js +1 -0
- package/dist/assets/DynamicDrawer.stories-BBBkpZTz.js +89 -0
- package/dist/assets/{EmojiObjects-CAcWTfhy.js → EmojiObjects-DBylbCvP.js} +1 -1
- package/dist/assets/ExpandLess-DpD9tUQv.js +1 -0
- package/dist/assets/ExpandMore-C4GbTNWP.js +1 -0
- package/dist/assets/{ExpansionPanel-DdJppdta.js → ExpansionPanel-CjmkOTkN.js} +1 -1
- package/dist/assets/{ExpansionPanel.stories-DzmPCEs9.js → ExpansionPanel.stories-DvJQznJQ.js} +1 -1
- package/dist/assets/{FormControlLabel-BZCIDGya.js → FormControlLabel-Dc09dPF-.js} +1 -1
- package/dist/assets/{Grid-CJO61dRG.js → Grid-nEF834Q-.js} +1 -1
- package/dist/assets/{GroupedChips.stories-CPGxUc3n.js → GroupedChips.stories-DSXgCIJp.js} +1 -1
- package/dist/assets/{Grow-CsG6GW7T.js → Grow-CMFTZlTS.js} +1 -1
- package/dist/assets/HierarchicalFilter.stories-DZam3ar2.js +33 -0
- package/dist/assets/{IconButton-BmV2jvz-.js → IconButton-D1LmBhVY.js} +1 -1
- package/dist/assets/{Icons.stories-D-LZai1f.js → Icons.stories-Cdh1fFcG.js} +1 -1
- package/dist/assets/Info-CS3qiAPa.js +1 -0
- package/dist/assets/{InfoOutlined-B-Y1AVYd.js → InfoOutlined-DY1vx6R-.js} +1 -1
- package/dist/assets/{Input-BsOi0WUF.js → Input-B8LVYuw1.js} +1 -1
- package/dist/assets/{Input.stories-C5Xdkf6f.js → Input.stories-DHtJC-kE.js} +1 -1
- package/dist/assets/{InputAdornment-CvUVeXUB.js → InputAdornment-DUMU_fty.js} +1 -1
- package/dist/assets/{InputNumber.stories-B-Y7AB91.js → InputNumber.stories-DJWLorMu.js} +1 -1
- package/dist/assets/{KeyboardArrowUp-CE7zL2ol.js → KeyboardArrowUp-0HhwZTc7.js} +1 -1
- package/dist/assets/{LabelDivider.stories-BDAxZZtl.js → LabelDivider.stories-BAYsI4J1.js} +1 -1
- package/dist/assets/Lens-CDLwWT7O.js +1 -0
- package/dist/assets/{Link-IITWMAlI.js → Link-70hIxaHb.js} +1 -1
- package/dist/assets/{List-COrkKCMC.js → List-CBRzn2H2.js} +1 -1
- package/dist/assets/ListContext-Dz79AF8V.js +1 -0
- package/dist/assets/{Loading.stories-Cui02_P7.js → Loading.stories-B5PeqrCZ.js} +1 -1
- package/dist/assets/{Logo.stories-BwzFy29g.js → Logo.stories-G5wlB2-B.js} +1 -1
- package/dist/assets/{MenuItem-rwQC5Jz1.js → MenuItem-BdHvyuZR.js} +1 -1
- package/dist/assets/{Mode-CeZLN76c.js → Mode-dDaHU8EK.js} +1 -1
- package/dist/assets/{Mode.stories-CigsMCpP.js → Mode.stories-CFgq3rCy.js} +1 -1
- package/dist/assets/{NoData-aIoNNHqZ.js → NoData-CQ4sUH2n.js} +1 -1
- package/dist/assets/{NoData.stories-BPWnLnXv.js → NoData.stories-HbU6kK3f.js} +1 -1
- package/dist/assets/{Pagination.stories-BJRt-Ju-.js → Pagination.stories-Du0AfIB_.js} +1 -1
- package/dist/assets/{Paper-CGj07eAk.js → Paper-C18F7aVw.js} +1 -1
- package/dist/assets/{PeriodPicker.stories-ldoONt31.js → PeriodPicker.stories-DG-YMuN1.js} +1 -1
- package/dist/assets/{Popover-NnzkJg8l.js → Popover-Dg51SW3p.js} +1 -1
- package/dist/assets/{RadioGroup-DgTYg9us.js → RadioGroup-d06Dp3-n.js} +1 -1
- package/dist/assets/{Search-DqbF4LDH.js → Search-01rRTHlk.js} +1 -1
- package/dist/assets/{Select-BSveSpZX.js → Select-B5u0JygW.js} +1 -1
- package/dist/assets/{Select-DvF6k9X2.js → Select-BM28F38j.js} +1 -1
- package/dist/assets/{Select.stories-DF6qQS9X.js → Select.stories-ikyfXo1b.js} +1 -1
- package/dist/assets/{Share-CcnUidCo.js → Share-CGat5zHQ.js} +1 -1
- package/dist/assets/{Share.stories-BGS677TD.js → Share.stories-Dqs7k5c3.js} +1 -1
- package/dist/assets/{ShortUrls.stories-DHqPnoy5.js → ShortUrls.stories-fEuQ5d4z.js} +1 -1
- package/dist/assets/{SisccFooter.stories-DzZKFhKX.js → SisccFooter.stories-DePDGu7t.js} +1 -1
- package/dist/assets/{Spotlight-BBoE4S1w.js → Spotlight-CKK8v6zQ.js} +1 -1
- package/dist/assets/{Spotlight.stories-XCvsdTv0.js → Spotlight.stories-BqmkQRew.js} +1 -1
- package/dist/assets/{SwitchBase-Dey9Iw42.js → SwitchBase-JBMM_B41.js} +1 -1
- package/dist/assets/{TableFooter.stories-Cm2T-AL2.js → TableFooter.stories-nnlwje9z.js} +1 -1
- package/dist/assets/{TableHeader.stories-D2AP5gMN.js → TableHeader.stories-BX4JzTxA.js} +1 -1
- package/dist/assets/{TableHtml5.stories-Dfqe3xMY.js → TableHtml5.stories-CRRbefGR.js} +1 -1
- package/dist/assets/{TableLayout.stories-Ng5lv-TV.js → TableLayout.stories-BJ4yxEBN.js} +1 -1
- package/dist/assets/{TablePreview.stories-C0obluLj.js → TablePreview.stories-MYolRdVy.js} +1 -1
- package/dist/assets/{TableRow-DyLjuwze.js → TableRow-BT81ZYMo.js} +1 -1
- package/dist/assets/{Tag-CQQ0Wz8k.js → Tag-CUf4uTZq.js} +1 -1
- package/dist/assets/{Tag.stories-B1HL_Qnh.js → Tag.stories-yc_la_GK.js} +1 -1
- package/dist/assets/{TextField-DTKLdgYP.js → TextField-CIXAME-F.js} +1 -1
- package/dist/assets/{TextareaAutosize-BnqrzVWc.js → TextareaAutosize-CyD0REVZ.js} +1 -1
- package/dist/assets/{ToggleButton-CxuHZPwa.js → ToggleButton-CyE4kjNp.js} +1 -1
- package/dist/assets/{ToggleButton.stories-TwZJlXVo.js → ToggleButton.stories-D1y20Q0H.js} +1 -1
- package/dist/assets/{Tooltip-CzBJj1M2.js → Tooltip-DM1oBzv5.js} +1 -1
- package/dist/assets/{Tooltip-iI471JT9.js → Tooltip-ecibjoqM.js} +1 -1
- package/dist/assets/{Tooltip.stories-Dhm73XQH.js → Tooltip.stories-D0iYcsX8.js} +1 -1
- package/dist/assets/{Typography-BSx6QP1S.js → Typography-BnrgNsqM.js} +1 -1
- package/dist/assets/{UseCases-CyXRdmDK.js → UseCases-gG1dnCcb.js} +2 -2
- package/dist/assets/{UserRightForm.stories-Bg6VF0-_.js → UserRightForm.stories-B1D0UhTW.js} +1 -1
- package/dist/assets/{VerticalButton-B93ipWX6.js → VerticalButton-DysdWMlR.js} +1 -1
- package/dist/assets/{VerticalButton.stories-DgwTfo-c.js → VerticalButton.stories-DyPNpjrE.js} +1 -1
- package/dist/assets/VirtualizedTree.stories-CwD7rVWj.js +42 -0
- package/dist/assets/{Warning-mu6JqPAR.js → Warning-b5g0qedn.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-CxqNrBx6.js → WithTooltip-7X4HQR7L-L-3h9ZjD.js} +1 -1
- package/dist/assets/areas-B2dLteJT.js +1 -0
- package/dist/assets/{axe-C1TbcgjJ.js → axe-QI6A13oi.js} +1 -1
- package/dist/assets/{chartProperties-D9rhHNyS.js → chartProperties-BqUCyOeG.js} +1 -1
- package/dist/assets/{client-D6VCKNKn.js → client-DA5zj4iv.js} +1 -1
- package/dist/assets/{colorManipulator-1p2EF9SY.js → colorManipulator-De91W7Ga.js} +1 -1
- package/dist/assets/{formControlState-Dg0qiabM.js → formControlState-B7cu5tO_.js} +1 -1
- package/dist/assets/formatter-L2YTDE3Q-DUhl9Bxo.js +1 -0
- package/dist/assets/{getThemeProps-C8xS0M6W.js → getThemeProps-D3iungka.js} +1 -1
- package/dist/assets/{iframe-a_pZB-t6.js → iframe-B0C93vHt.js} +8 -8
- package/dist/assets/{index-DBVtfPKZ.js → index-84HH35CO.js} +1 -1
- package/dist/assets/{index-BCSOKU0M.js → index-BpyMBwVw.js} +1 -1
- package/dist/assets/{index-MWRVRKRi.js → index-CIugh-Rb.js} +1 -1
- package/dist/assets/index-DYvvx0NT.js +1 -0
- package/dist/assets/{index-CDcCtVv4.js → index-DkL6X3nt.js} +1 -1
- package/dist/assets/{index-BnO-aI7j.js → index-Z97SoDeo.js} +1 -1
- package/dist/assets/{index-DS-XPpOX.js → index-ieD3Hhp3.js} +1 -1
- package/dist/assets/{isMuiElement-C2XWHu21.js → isMuiElement-CdRy5IDf.js} +1 -1
- package/dist/assets/{length-DIGTZ5xz.js → length-IXM-4ocd.js} +1 -1
- package/dist/assets/{listItemButtonClasses-DAjTv-uW.js → listItemButtonClasses-D3YQO00p.js} +1 -1
- package/dist/assets/{listItemTextClasses-CZbRJWVH.js → listItemTextClasses-KCCYnzdt.js} +1 -1
- package/dist/assets/{makeStyles-DjbLSwJE.js → makeStyles-BsAdQil2.js} +1 -1
- package/dist/assets/{react-18-VFwgwc4r.js → react-18-DpH-4SXu.js} +1 -1
- package/dist/assets/{syntaxhighlighter-YFXUGROL-DBGSNc0s.js → syntaxhighlighter-YFXUGROL-U-TCIrMH.js} +1 -1
- package/dist/assets/{table-preview-props-DwPvcwTv.js → table-preview-props-CvXOp4lr.js} +1 -1
- package/dist/assets/{useControlled-CwodZjTa.js → useControlled-BpKGNZSP.js} +1 -1
- package/dist/assets/{useKeybordEscapeHandler-CrJ6yBNo.js → useKeybordEscapeHandler-BmzG7m4Y.js} +1 -1
- package/dist/assets/{useMediaQuery-Cp6nHdWo.js → useMediaQuery-ByGHaSa4.js} +1 -1
- package/dist/assets/{useSlotProps-pWzUupkJ.js → useSlotProps-wY56SsHZ.js} +1 -1
- package/dist/assets/useTheme-CYGwgk-o.js +1 -0
- package/dist/assets/{useThemeProps-Bg_Es16W.js → useThemeProps-Dl_GBcLH.js} +1 -1
- package/dist/assets/{utils-Ci5srLYt.js → utils-BhG3rukK.js} +1 -1
- package/dist/assets/{utils-D2zA0JET.js → utils-BmJneOno.js} +1 -1
- package/dist/assets/{utils-BRr-vONA.js → utils-C-wgWa-7.js} +1 -1
- package/dist/assets/{with-input-a92DkuNY.js → with-input-BJyxYRQ_.js} +1 -1
- package/dist/assets/{withSpotlight-nUUuH7vR.js → withSpotlight-Bz9tHzWB.js} +1 -1
- package/dist/chunks/{withSpotlight-CA0xvW0v.js → withSpotlight-BqJHRQhK.js} +55 -52
- package/dist/chunks/withSpotlight-BqJHRQhK.js.map +1 -0
- package/dist/iframe.html +1 -1
- package/dist/manifests/components.json +1 -1
- package/dist/project.json +1 -1
- package/package.json +2 -3
- package/dist/assets/Add-BOavXQGJ.js +0 -1
- package/dist/assets/ArrowForward-QrCHpLlJ.js +0 -1
- package/dist/assets/Close-BjZqVfS-.js +0 -1
- package/dist/assets/Done-DPdrw-eb.js +0 -1
- package/dist/assets/Download-BeoD-Yy0.js +0 -1
- package/dist/assets/DynamicDrawer.stories-Dd_pvgS6.js +0 -89
- package/dist/assets/ExpandLess-CumXrG4o.js +0 -1
- package/dist/assets/ExpandMore-DIU_T7SL.js +0 -1
- package/dist/assets/HierarchicalFilter.stories-DDyHytFy.js +0 -33
- package/dist/assets/Info-BU4oEAwq.js +0 -1
- package/dist/assets/Lens-7v1e07y0.js +0 -1
- package/dist/assets/ListContext-xq2a6xmy.js +0 -1
- package/dist/assets/VirtualizedTree.stories-DexQLugo.js +0 -42
- package/dist/assets/areas-BCCSI2R2.js +0 -9
- package/dist/assets/formatter-L2YTDE3Q-DcGXocwJ.js +0 -1
- package/dist/assets/index-DadQTpM3.js +0 -1
- package/dist/assets/useTheme-pGXs_ROT.js +0 -1
- package/dist/chunks/withSpotlight-CA0xvW0v.js.map +0 -1
|
@@ -4,7 +4,7 @@ import * as R from 'ramda';
|
|
|
4
4
|
import Container from '@mui/material/Container';
|
|
5
5
|
import { ZoomOutMap } from '@mui/icons-material';
|
|
6
6
|
import { VerticalButton } from '../VerticalButton/VerticalButton.js';
|
|
7
|
-
import { w as withSpotlight, a as withExpansionTree, u as useStyles, b as getEvolvedDisableAccessor, V as VirtualizedTree } from '../chunks/withSpotlight-
|
|
7
|
+
import { w as withSpotlight, a as withExpansionTree, u as useStyles, b as getEvolvedDisableAccessor, V as VirtualizedTree } from '../chunks/withSpotlight-BqJHRQhK.js';
|
|
8
8
|
import { Spotlight } from '../Spotlight/Spotlight.js';
|
|
9
9
|
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
10
10
|
import { Tag } from '../Tag/Tag.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./iframe-B0C93vHt.js";import{c as t}from"./UseCases-gG1dnCcb.js";const h=t(o.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");export{h as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,R as v,s as $}from"./iframe-
|
|
1
|
+
import{j as r,R as v,s as $}from"./iframe-B0C93vHt.js";import{c as I}from"./index-ieD3Hhp3.js";import{P as M}from"./Paper-C18F7aVw.js";import{I as w}from"./IconButton-D1LmBhVY.js";import{C as R}from"./Close-C_Q2kA_T.js";import{m as W}from"./makeStyles-BsAdQil2.js";import{I as O}from"./InfoOutlined-DY1vx6R-.js";import{c as s}from"./UseCases-gG1dnCcb.js";import{d as u,l as g}from"./colorManipulator-De91W7Ga.js";const A=s(r.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlineOutlined"),E=s(r.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),N=s(r.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"ReportProblemOutlined"),n=o=>o.palette.mode==="light"?u:g,i=o=>o.palette.mode==="light"?g:u,P=W(o=>({root:{...o.typography.body2,borderRadius:o.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"},standardSuccess:{color:n(o)(o.palette.success.main,.6),backgroundColor:i(o)(o.palette.success.main,.9),"& $icon":{color:o.palette.success.main}},standardInfo:{color:n(o)(o.palette.info.main,.6),backgroundColor:i(o)(o.palette.info.main,.9),"& $icon":{color:o.palette.info.main}},standardWarning:{color:n(o)(o.palette.warning.main,.6),backgroundColor:i(o)(o.palette.warning.main,.9),"& $icon":{color:o.palette.warning.main}},standardError:{color:n(o)(o.palette.error.main,.6),backgroundColor:i(o)(o.palette.error.main,.9),"& $icon":{color:o.palette.error.main}},outlinedSuccess:{color:n(o)(o.palette.success.main,.6),border:`1px solid ${o.palette.success.main}`,"& $icon":{color:o.palette.success.main}},outlinedInfo:{color:n(o)(o.palette.info.main,.6),border:`1px solid ${o.palette.info.main}`,"& $icon":{color:o.palette.info.main}},outlinedWarning:{color:n(o)(o.palette.warning.main,.6),border:`1px solid ${o.palette.warning.main}`,"& $icon":{color:o.palette.warning.main}},outlinedError:{color:n(o)(o.palette.error.main,.6),border:`1px solid ${o.palette.error.main}`,"& $icon":{color:o.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.success.main},filledInfo:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.info.main},filledWarning:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.warning.main},filledError:{color:"#fff",fontWeight:o.typography.fontWeightMedium,backgroundColor:o.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0",display:"flex",flexDirection:"column",justifyContent:"center"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}})),f={success:r.jsx(A,{fontSize:"inherit"}),warning:r.jsx(N,{fontSize:"inherit"}),error:r.jsx(E,{fontSize:"inherit"}),info:r.jsx(O,{fontSize:"inherit"})},L=v.forwardRef(function(m,x){const a=P(),{action:l,children:C,className:y,closeText:e="Close",color:b,icon:c,iconMapping:j=f,onClose:p,role:k="alert",severity:t="success",variant:z="standard",...S}=m,d=l!=null;return r.jsxs(M,{role:k,square:!0,elevation:0,className:I(a.root,a[`${z}${$(b||t)}`],y),ref:x,...S,children:[c!==!1?r.jsx("div",{className:a.icon,children:c||j[t]||f[t]}):null,r.jsx("div",{className:a.message,children:C}),d?r.jsx("div",{className:a.action,children:l}):null,!d&&p?r.jsx("div",{className:a.action,children:r.jsx(w,{size:"small","aria-label":e,title:e,color:"inherit",onClick:p,children:r.jsx(R,{fontSize:"small"})})}):null]})});L.__docgenInfo={description:`Alert component wrapper around MUI Paper with severity styling.
|
|
2
2
|
|
|
3
3
|
@param {AlertProps} props
|
|
4
4
|
@param {AlertRef} ref
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./iframe-
|
|
1
|
+
import{j as r}from"./iframe-B0C93vHt.js";import{A as o}from"./Alert-BjStizsv.js";import{U as a,B as t}from"./UseCases-gG1dnCcb.js";import"./preload-helper-PPVm8Dsz.js";import"./index-ieD3Hhp3.js";import"./Paper-C18F7aVw.js";import"./IconButton-D1LmBhVY.js";import"./Close-C_Q2kA_T.js";import"./makeStyles-BsAdQil2.js";import"./InfoOutlined-DY1vx6R-.js";import"./colorManipulator-De91W7Ga.js";const{fn:i}=__STORYBOOK_MODULE_TEST__,y={title:"Feedback/Alert",component:o,tags:["autodocs"]},e={render:()=>r.jsx(a,{base:{severity:"info",variant:"standard"},cases:{Info:{children:"The data was last updated on 15 October 2026."},Success:{severity:"success",children:"Your share link has been copied to the clipboard."},Warning:{severity:"warning",children:"This table exceeds the cell limit: only the first 5000 observations are shown."},Error:{severity:"error",children:"The data could not be loaded. Please try again later."},Outlined:{variant:"outlined",severity:"warning",children:"Some selections have no data."},Filled:{variant:"filled",severity:"error",children:"Request failed (HTTP 500)."},"With action":{severity:"error",children:"The data could not be loaded.",action:r.jsx(t,{color:"inherit",size:"small",children:"Retry"})},"Without icon":{icon:!1,children:"Values are expressed in millions of US dollars."},"Long message":{severity:"warning",children:"The selected combination of Reference area, Measure, Unit of measure and Time period returns a very large number of observations. Only the first 5000 observations are displayed; refine your filters or download the full dataset to see all values."}},toggles:{closable:{label:"Closable",props:{onClose:i(),closeText:"Close alert"}}},children:s=>r.jsx(o,{...s})})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
severity: 'info',
|
|
4
4
|
variant: 'standard'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as b,j as e}from"./iframe-
|
|
1
|
+
import{R as b,j as e}from"./iframe-B0C93vHt.js";import{P as r}from"./index-CIugh-Rb.js";import{A as I}from"./Alert-BjStizsv.js";import{B as O}from"./Button-CE5LmMP0.js";import{p as y}from"./pipe-CU_CAGp7.js";import{p as o}from"./prop-Dm-FEtu4.js";import{f as Q}from"./find-Bo-r0Jd1.js";import{p as E}from"./propEq-DVu0LH25.js";import{p as U}from"./propOr-CKFZAF61.js";import{G as s}from"./Grid-nEF834Q-.js";import{T as p}from"./Typography-BnrgNsqM.js";import{f as L}from"./flip-BATR9cFS.js";import{g as B}from"./gt-Dy4ZroB7.js";import{l as G}from"./length-IXM-4ocd.js";import{m as g}from"./map-DAmoZ62-.js";import{e as _}from"./_isObject-CRQ-CL0p.js";import{T as M}from"./TextareaAutosize-CyD0REVZ.js";import{m as P}from"./makeStyles-BsAdQil2.js";import{h as $}from"./has-D9rheNo-.js";import{p as R}from"./pathOr-B-yGj57C.js";import{n as z}from"./not-BYZhl9KK.js";import{i as V}from"./isEmpty-CZ36qNF2.js";import{D as S,U as X}from"./UseCases-gG1dnCcb.js";import{h as Y}from"./head-Cq4WoDTU.js";import"./preload-helper-PPVm8Dsz.js";import"./index-ieD3Hhp3.js";import"./Paper-C18F7aVw.js";import"./IconButton-D1LmBhVY.js";import"./Close-C_Q2kA_T.js";import"./InfoOutlined-DY1vx6R-.js";import"./colorManipulator-De91W7Ga.js";import"./omit-Dexa0H-t.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./curryN-DVrTryA3.js";import"./_curry3-CWUzJcT3.js";import"./_reduce-BIM_BjAq.js";import"./keys-MRUazFsh.js";import"./_reduced-C8HAFxGt.js";import"./useTheme-CYGwgk-o.js";import"./ownerDocument-DW-IO8s5.js";import"./isNil-COslMkIS.js";const H=P(t=>({error:{width:"100%",margin:"0px 0px 8px 0px",wordBreak:"break-word"},header:{padding:t.spacing(1,0),minHeight:50},textarea:{width:"100%",margin:t.spacing(0,0,1,0)},title:R({},["mixins","apiQueries","title"],t)})),q=({contents:t,title:a,selectedId:h,labels:l,delay:d,handleClick:u})=>{const i=H(),m=b.useRef(),[n,k]=b.useState(h),[w,C]=b.useState(!1),D=y(Q(E("id",n)),o("value"))(t),x=y(Q(E("id",n)),U(!1,"isError"))(t),F=()=>{$("current")(m)&&(m.current.select(),document.execCommand("copy"),C(!0),setTimeout(()=>C(!1),d),u())},T=w?o("copied")(l):o("copy")(l);return e.jsxs(s,{item:!0,xs:12,md:6,container:!0,children:[e.jsxs(s,{item:!0,container:!0,justifyContent:"space-between",alignItems:"flex-start",className:i.header,children:[e.jsx(s,{item:!0,children:e.jsx(p,{className:i.title,children:a})}),y(G,L(B)(1))(t)&&e.jsxs(s,{container:!0,alignItems:"center",children:[e.jsx(s,{item:!0,children:e.jsxs(p,{variant:"body2",children:[l.buttonsLabel,": "]})}),e.jsx(s,{item:!0,children:g(({id:c,label:A})=>e.jsx(O,{"aria-label":A,"aria-pressed":_(n,c),size:"small",variant:"text",color:"primary",onClick:()=>k(c),selected:_(n,c),children:A},c))(t)})]})]}),e.jsxs(s,{item:!0,container:!0,xs:12,style:{alignSelf:"flex-end"},justifyContent:"flex-end",children:[!x&&e.jsx(M,{ref:m,"aria-label":a,className:i.textarea,minRows:5,maxRows:5,readOnly:!0,value:D}),x&&e.jsx(I,{className:i.error,severity:"error",variant:"filled",children:D}),e.jsx(O,{"aria-label":T,disabled:x,size:"small",variant:"contained",alternative:"siscc",color:"primary",onClick:F,className:i.sisccButton,children:T})]})]})};q.propTypes={labels:r.shape({copy:r.oneOfType([r.string,r.element]),copied:r.oneOfType([r.string,r.element]),buttonsLabel:r.oneOfType([r.string,r.element])}),contents:r.arrayOf(r.shape({id:r.string,label:r.oneOfType([r.string,r.element]),value:r.string})),title:r.oneOfType([r.string,r.element]),selectedId:r.string,delay:r.number,handleClick:r.func};q.__docgenInfo={description:"",methods:[],displayName:"Query",props:{labels:{description:"",type:{name:"shape",value:{copy:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},copied:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},buttonsLabel:{name:"union",value:[{name:"string"},{name:"element"}],required:!1}}},required:!1},contents:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!1},label:{name:"union",value:[{name:"string"},{name:"element"}],required:!1},value:{name:"string",required:!1}}}},required:!1},title:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},selectedId:{description:"",type:{name:"string"},required:!1},delay:{description:"",type:{name:"number"},required:!1},handleClick:{description:"",type:{name:"func"},required:!1}}};const K=P(t=>({divider:{padding:t.spacing(2,0)},title:R({},["mixins","apiQueries","title"],t)})),J=[],j=({queries:t=J,labels:a,delay:h=1e3,handleClick:l})=>{const d=K(),u=z(V(t));return e.jsxs(s,{container:!0,"data-testid":"apiqueries-test-id",children:[e.jsxs(s,{item:!0,xs:12,children:[e.jsx(p,{className:d.title,children:o("title")(a)}),g(i=>e.jsx(p,{display:"block",variant:"body2",children:i},i))(U([],"descriptions",a))]}),u&&e.jsx(s,{item:!0,xs:12,className:d.divider,children:e.jsx(S,{})}),e.jsx(s,{item:!0,container:!0,spacing:2,children:g(({id:i,title:m,contents:n=[]})=>e.jsx(q,{title:m,contents:n,selectedId:y(Y,o("id"))(n),labels:a,delay:h,handleClick:l},i))(t)}),u&&e.jsx(s,{item:!0,xs:12,className:d.divider,children:e.jsx(S,{})}),e.jsx(p,{variant:"body2",children:o("notice")(a)})]})};j.__docgenInfo={description:"",methods:[],displayName:"ApiQueries",props:{queries:{defaultValue:{value:"[]",computed:!1},required:!1},delay:{defaultValue:{value:"1000",computed:!1},required:!1}}};const{fn:W}=__STORYBOOK_MODULE_TEST__,v="https://sdmx.example.org/rest",N=[{id:"data",title:"Data query",contents:[{id:"flat",label:"Flat",value:`${v}/data/OECD,DF_QNA,1.0/A.FRA+DEU.B1GQ.USD_PPP?startPeriod=2015&dimensionAtObservation=AllDimensions`},{id:"timeseries",label:"Time series",value:`${v}/data/OECD,DF_QNA,1.0/A.FRA+DEU.B1GQ.USD_PPP?startPeriod=2015`}]},{id:"structure",title:"Structure query",contents:[{id:"structure",label:"Structure",value:`${v}/dataflow/OECD/DF_QNA/1.0?references=all`}]}],Me={title:"Data/ApiQueries",component:j,tags:["autodocs"]},f={render:()=>e.jsx(X,{base:{delay:1e3,handleClick:W(),labels:{title:"Developer API query builder",descriptions:["Use these queries to retrieve the data and its structure from the SDMX web service.","The data query reflects the filters currently selected."],notice:"Queries are limited to 1 000 000 observations.",copy:"Copy code",copied:"Copied!",buttonsLabel:"Format"}},cases:{Default:{queries:N},"Query too long":{queries:[{id:"data",title:"Data query",contents:[{id:"flat",label:"Flat",value:"The query is too long to be used as a URL: please reduce the number of selected values.",isError:!0}]},N[1]]},"No queries":{queries:[]}},children:t=>e.jsx(j,{...t})})};f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
delay: 1000,
|
|
4
4
|
handleClick: fn(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./iframe-B0C93vHt.js";import{c as o}from"./UseCases-gG1dnCcb.js";const s=o(r.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");export{s as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./iframe-
|
|
1
|
+
import{j as e}from"./iframe-B0C93vHt.js";import{S as t}from"./UseCases-gG1dnCcb.js";const o=s=>e.jsx(t,{viewBox:"0 0 32 38",...s,children:e.jsx("path",{d:"M29.92 24.096c-0.512 0.768-1.28 1.28-2.208 1.28-0.384 0-0.896-0.128-1.28-0.384l-7.776-4.512v8.928c0 1.44-1.152 2.592-2.592 2.592s-2.592-1.152-2.592-2.592v-8.928l-7.776 4.512c-0.384 0.256-0.896 0.384-1.28 0.384-0.928 0-1.824-0.512-2.208-1.28-0.768-1.28-0.256-2.848 0.896-3.488l7.776-4.544-7.776-4.544c-1.28-0.768-1.664-2.336-0.896-3.488s2.336-1.696 3.488-0.896l7.776 4.512v-9.056c0-1.44 1.184-2.592 2.592-2.592s2.592 1.152 2.592 2.592v8.928l7.776-4.512c1.28-0.8 2.848-0.288 3.488 0.896 0.8 1.28 0.256 2.848-0.896 3.488l-7.776 4.544 7.776 4.544c1.152 0.768 1.568 2.336 0.896 3.616z"})});o.__docgenInfo={description:"",methods:[],displayName:"Asterisk"};const l=Object.freeze(Object.defineProperty({__proto__:null,Asterisk:o},Symbol.toStringTag,{value:"Module"}));export{o as A,l as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as m}from"./iframe-
|
|
1
|
+
import{j as e,r as m}from"./iframe-B0C93vHt.js";import{B as v}from"./Button-CE5LmMP0.js";import{i as g}from"./isEmpty-CZ36qNF2.js";import{D as S}from"./Dialog-Cg-woxOt.js";import{c as k,U as D,B as I}from"./UseCases-gG1dnCcb.js";import{T as N}from"./Typography-BnrgNsqM.js";import{I as _}from"./IconButton-D1LmBhVY.js";import{C as A}from"./Close-C_Q2kA_T.js";import{T as x}from"./TextField-CIXAME-F.js";import{C as B}from"./Checkbox-2ISVsd8V.js";import{m as O}from"./makeStyles-BsAdQil2.js";import"./preload-helper-PPVm8Dsz.js";import"./index-ieD3Hhp3.js";import"./omit-Dexa0H-t.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./keys-MRUazFsh.js";import"./_isObject-CRQ-CL0p.js";import"./useTheme-CYGwgk-o.js";import"./Paper-C18F7aVw.js";import"./Popover-Dg51SW3p.js";import"./formControlState-B7cu5tO_.js";import"./TextareaAutosize-CyD0REVZ.js";import"./ownerDocument-DW-IO8s5.js";import"./useSlotProps-wY56SsHZ.js";import"./Grow-CMFTZlTS.js";import"./index-DYvvx0NT.js";import"./index-BpyMBwVw.js";import"./utils-BhG3rukK.js";import"./Select-BM28F38j.js";import"./List-CBRzn2H2.js";import"./ListContext-Dz79AF8V.js";import"./useControlled-BpKGNZSP.js";import"./isMuiElement-CdRy5IDf.js";import"./SwitchBase-JBMM_B41.js";const T=k(e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),U=O(()=>({header:{color:"grey",display:"flex",alignItems:"center",justifyContent:"space-between"},headerLabel:{display:"flex",alignItems:"center"},closeButton:{color:"grey !important",padding:0},content:{alignItems:"stretch",display:"flex",flexDirection:"column",padding:10,backgroundColor:"rgb(240, 240, 240)"},error:{color:"red"},input:{backgroundColor:"white","&[type=number]::-webkit-inner-spin-button, &[type=number]::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&[type=number]":{"-moz-appearance":"textfield"}}})),d=({isOpen:t,labels:o,onClose:n,onSubmit:i})=>{const s=U(),[a,u]=m.useState(""),[p,h]=m.useState(""),[r,C]=m.useState(!1),j=()=>{C(!r),r||(u(""),h(""))},y=r||!g(a)&&!g(p),w=()=>i({user:a,password:p,isAnonymous:r});return e.jsxs(S,{open:t,onClose:n,children:[e.jsxs("div",{className:s.header,children:[e.jsxs("div",{className:s.headerLabel,children:[e.jsx(T,{}),e.jsx(N,{children:o.header})]}),n&&e.jsx(_,{className:s.closeButton,onClick:n,size:"large",children:e.jsx(A,{})})]}),e.jsxs("form",{className:s.content,children:[e.jsx("label",{htmlFor:"login",children:o.user}),e.jsx(x,{inputProps:{className:s.input,id:"login",autoComplete:"username",name:"username"},value:a,onChange:c=>u(c.target.value),disabled:r}),e.jsx("label",{htmlFor:"password",children:o.password}),e.jsx(x,{inputProps:{className:s.input,id:"password",autoComplete:"current-password",name:"password"},value:p,onChange:c=>h(c.target.value),disabled:r,type:"password"}),e.jsxs("div",{children:[e.jsx(B,{checked:r,onChange:j}),o.anonymous]}),o.error&&e.jsx("div",{className:s.error,children:o.error}),e.jsx(v,{color:"primary",disabled:!y,onClick:w,variant:"contained",children:e.jsx("div",{style:{width:"100%"},children:o.submit})})]})]})};d.__docgenInfo={description:"",methods:[],displayName:"AuthDialog"};const{fn:f}=__STORYBOOK_MODULE_TEST__,b={header:"Authentication required",user:"User name",password:"Password",anonymous:"Continue as anonymous user",submit:"Log in"},E=f(),P=f(),F=({isClosable:t,...o})=>{const[n,i]=m.useState(!0),s=()=>i(!1);return e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"outlined",onClick:()=>i(!0),children:"Open the dialog"}),e.jsx(d,{...o,isOpen:n,onClose:t?()=>{s(),P()}:void 0,onSubmit:a=>{s(),E(a)}})]})},we={title:"Dialogs/AuthDialog",component:d,tags:["autodocs"],parameters:{docs:{story:{inline:!1,iframeHeight:480}}}},l={render:()=>e.jsx(D,{base:{labels:b,isClosable:!0},cases:{Default:{},"With error":{labels:{...b,error:"Invalid user name or password."}},"Not closable":{isClosable:!1}},children:t=>e.jsx(F,{...t})})};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
labels,
|
|
4
4
|
isClosable: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,o as _,p as i,q as P,r as d,n as $}from"./iframe-
|
|
1
|
+
import{j as t,o as _,p as i,q as P,r as d,n as $}from"./iframe-B0C93vHt.js";import{c as D}from"./index-ieD3Hhp3.js";import{c as B,s as m,e as H,a as O,g as L,b as A,d as W,U as q}from"./UseCases-gG1dnCcb.js";import{u as G}from"./useSlotProps-wY56SsHZ.js";import{T as I}from"./Typography-BnrgNsqM.js";import{a as Q}from"./addIndex-S8tu4ovQ.js";import{m as V}from"./map-DAmoZ62-.js";import{i as Y}from"./is-DEqMKgUN.js";import{m as F}from"./makeStyles-BsAdQil2.js";import"./preload-helper-PPVm8Dsz.js";import"./_concat-CKc59O9E.js";import"./_curry1-DZES3h6F.js";import"./curryN-DVrTryA3.js";import"./_curry2-Sz1efVs9.js";import"./_reduce-BIM_BjAq.js";import"./keys-MRUazFsh.js";import"./_isString-DUX4qf9v.js";const K=B(t.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),J=B(t.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),X=B(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Z=["slots","slotProps"],ee=m(H,{name:"MuiBreadcrumbCollapsed"})(({theme:e})=>i({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":i({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":i({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:P.emphasize(e.palette.grey[200],.12)}:{backgroundColor:P.emphasize(e.palette.grey[600],.12)})})),te=m(X)({width:24,height:16});function oe(e){const{slots:o={},slotProps:n={}}=e,r=_(e,Z),s=e;return t.jsx("li",{children:t.jsx(ee,i({focusRipple:!0},r,{ownerState:s,children:t.jsx(te,i({as:o.CollapsedIcon,ownerState:s},n.collapsedIcon))}))})}function se(e){return O("MuiBreadcrumbs",e)}const re=L("MuiBreadcrumbs",["root","ol","li","separator"]),ae=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ne=e=>{const{classes:o}=e;return W({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},se,o)},le=m(I,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,o)=>[{[`& .${re.li}`]:o.li},o.root]})({}),ie=m("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,o)=>o.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),ce=m("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,o)=>o.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function pe(e,o,n,r){return e.reduce((s,c,l)=>(l<e.length-1?s=s.concat(c,t.jsx(ce,{"aria-hidden":!0,className:o,ownerState:r,children:n},`separator-${l}`)):s.push(c),s),[])}const de=d.forwardRef(function(o,n){const r=$({props:o,name:"MuiBreadcrumbs"}),{children:s,className:c,component:l="nav",slots:j={},slotProps:z={},expandText:v="Show path",itemsAfterCollapse:g=1,itemsBeforeCollapse:b=1,maxItems:h=8,separator:R="/"}=r,k=_(r,ae),[E,T]=d.useState(!1),p=i({},r,{component:l,expanded:E,expandText:v,itemsAfterCollapse:g,itemsBeforeCollapse:b,maxItems:h,separator:R}),u=ne(p),w=G({elementType:j.CollapsedIcon,externalSlotProps:z.collapsedIcon,ownerState:p}),M=d.useRef(null),U=a=>{const C=()=>{T(!0);const N=M.current.querySelector("a[href],button,[tabindex]");N&&N.focus()};return b+g>=a.length?a:[...a.slice(0,b),t.jsx(oe,{"aria-label":v,slots:{CollapsedIcon:j.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:C},"ellipsis"),...a.slice(a.length-g,a.length)]},y=d.Children.toArray(s).filter(a=>d.isValidElement(a)).map((a,C)=>t.jsx("li",{className:u.li,children:a},`child-${C}`));return t.jsx(le,i({ref:n,component:l,color:"text.secondary",className:A(u.root,c),ownerState:p},k,{children:t.jsx(ie,{className:u.ol,ref:M,ownerState:p,children:pe(E||h&&y.length<=h?y:U(y),u.separator,R,p)})}))}),me=F(e=>({action:{cursor:"pointer","&:hover":{color:e.palette.primary.main}},disabled:{cursor:"not-allowed",color:e.palette.text.disabled,"&:hover":{color:e.palette.text.disabled}}})),ue=[],S=({items:e=ue,isRtl:o})=>{const n=me();return t.jsx(de,{separator:o?t.jsx(K,{fontSize:"small"}):t.jsx(J,{fontSize:"small"}),"aria-label":"breadcrumb",children:Q(V)(({text:r,action:s,isDisabled:c},l)=>t.jsx(I,{color:"textPrimary",onClick:s,variant:"subtitle1",className:D({[n.action]:Y(Function)(s),[n.disabled]:c}),children:r},`${r}-${l}`))(e)})};S.__docgenInfo={description:"",methods:[],displayName:"Breadcrumbs",props:{items:{defaultValue:{value:"[]",computed:!1},required:!1}}};const{fn:x}=__STORYBOOK_MODULE_TEST__,Ie={title:"Navigation/Breadcrumbs",component:S,tags:["autodocs"]},f={render:()=>t.jsx(q,{cases:{Default:{items:[{text:"Home",action:x()},{text:"Economy",action:x()},{text:"National accounts",action:x()},{text:"Quarterly GDP"}]},"With disabled item":{items:[{text:"Home",action:x()},{text:"Society",isDisabled:!0},{text:"Education at a glance"}]},"Single item":{items:[{text:"Home"}]},Empty:{items:[]}},toggles:{rtl:{label:"Right to left",props:{isRtl:!0},dir:"rtl"}},children:e=>t.jsx(S,{...e})})};f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases cases={{
|
|
3
3
|
Default: {
|
|
4
4
|
items: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as n,j as p}from"./iframe-
|
|
1
|
+
import{R as n,j as p}from"./iframe-B0C93vHt.js";import{c as d}from"./index-ieD3Hhp3.js";import{B as u}from"./UseCases-gG1dnCcb.js";import{o as m}from"./omit-Dexa0H-t.js";import{p as c}from"./prop-Dm-FEtu4.js";import{m as f}from"./makeStyles-BsAdQil2.js";import{p as r}from"./path-BOH92ih4.js";const g=f(o=>{const t=r(["palette","highlight","hl1"],o)||o.palette.primary.dark;return{defaultSelected:{backgroundColor:o.palette.action.hover,"&:hover":{backgroundColor:`${o.palette.action.selected} !important`}},sisccRoot:{"&:hover":{color:o.palette.getContrastText(t),backgroundColor:r(["palette","highlight","hl1"],o)||o.palette.primary.dark,...r(["mixins","toggleButton","hover"])(o)}},sisccSelected:{color:o.palette.getContrastText(t),backgroundColor:t,...r(["mixins","toggleButton","selected"])(o)}}}),x=n.forwardRef(function({className:t,selected:e,alternative:a="default",...l},i){const s=g();return p.jsx(u,{className:d(t,c(`${a}Root`)(s),{[c(`${a}Selected`)(s)]:e}),"aria-pressed":e,ref:i,...m(["indicator","textColor","selectionFollowsFocus"],l),children:l.children})});x.__docgenInfo={description:"",methods:[],displayName:"Button",props:{alternative:{defaultValue:{value:"'default'",computed:!1},required:!1}}};export{x as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-B0C93vHt.js";import{B as t}from"./Button-CE5LmMP0.js";import{U as a}from"./UseCases-gG1dnCcb.js";import{A as s}from"./Add-DrloiGQm.js";import"./preload-helper-PPVm8Dsz.js";import"./index-ieD3Hhp3.js";import"./omit-Dexa0H-t.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./makeStyles-BsAdQil2.js";const{fn:o}=__STORYBOOK_MODULE_TEST__,A={title:"Buttons/Button",component:t,tags:["autodocs"]},e={render:()=>n.jsx(a,{base:{children:"Apply",alternative:"default",variant:"text",onClick:o()},cases:{Text:{},Contained:{variant:"contained",children:"Apply layout"},Outlined:{variant:"outlined",children:"Cancel"},"With icon":{startIcon:n.jsx(s,{}),children:"Add filter"},Disabled:{disabled:!0}},toggles:{selected:{label:"Selected",props:{selected:!0}},siscc:{label:"SIS-CC alternative",props:{alternative:"siscc"}}},children:r=>n.jsx(t,{...r})})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
children: 'Apply',
|
|
4
4
|
alternative: 'default',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,n as C,o as u,p as n,j as p}from"./iframe-
|
|
1
|
+
import{r as d,n as C,o as u,p as n,j as p}from"./iframe-B0C93vHt.js";import{a as m,g as f,b as x,d as v,s as R}from"./UseCases-gG1dnCcb.js";import{P as M}from"./Paper-C18F7aVw.js";function g(s){return m("MuiCard",s)}f("MuiCard",["root"]);const y=["className","raised"],N=s=>{const{classes:t}=s;return v({root:["root"]},g,t)},U=R(M,{name:"MuiCard",slot:"Root",overridesResolver:(s,t)=>t.root})(()=>({overflow:"hidden"})),S=d.forwardRef(function(t,e){const o=C({props:t,name:"MuiCard"}),{className:c,raised:r=!1}=o,i=u(o,y),a=n({},o,{raised:r}),l=N(a);return p.jsx(U,n({className:x(l.root,c),elevation:r?8:void 0,ref:e,ownerState:a},i))});function h(s){return m("MuiCardContent",s)}f("MuiCardContent",["root"]);const j=["className","component"],w=s=>{const{classes:t}=s;return v({root:["root"]},h,t)},P=R("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(s,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),$=d.forwardRef(function(t,e){const o=C({props:t,name:"MuiCardContent"}),{className:c,component:r="div"}=o,i=u(o,j),a=n({},o,{component:r}),l=w(a);return p.jsx(P,n({as:r,className:x(l.root,c),ownerState:a,ref:e},i))});export{S as C,$ as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as I}from"./iframe-a_pZB-t6.js";import{P as k}from"./index-MWRVRKRi.js";import{G as s}from"./Grid-CJO61dRG.js";import{i as w}from"./isNil-COslMkIS.js";import{T as P}from"./Typography-BSx6QP1S.js";import{m as N}from"./makeStyles-DjbLSwJE.js";import{p as te}from"./pathOr-B-yGj57C.js";import{w as z}from"./when-CRQ12JrK.js";import{_ as re}from"./_curry3-CWUzJcT3.js";import{a as K}from"./always-C_Ync45z.js";import{o as se}from"./over-BjBjHxTc.js";import{l as ie}from"./lensPath-DbUXwSyB.js";import{p as c}from"./prop-Dm-FEtu4.js";import{i as ne}from"./indexBy-BU0Hcf9R.js";import{_ as oe}from"./_curry1-DZES3h6F.js";import{c as ae}from"./curryN-DVrTryA3.js";import{m as le}from"./max-B4spmBqr.js";import{p as X}from"./pluck-BnLF_Scp.js";import{r as ce,s as me,p as g}from"./pipe-CU_CAGp7.js";import{e as pe}from"./_isObject-CRQ-CL0p.js";import{l as q}from"./length-DIGTZ5xz.js";import{a as ue}from"./anyPass-7opeD6Ht.js";import{i as G}from"./isEmpty-CZ36qNF2.js";import{h as H}from"./head-Cq4WoDTU.js";import{S as M}from"./Select-BSveSpZX.js";import{i as de}from"./ifElse-_ALGpLaf.js";import{i as j}from"./is-DEqMKgUN.js";import{i as he}from"./identity-BtKjXVdB.js";import{p as $}from"./propOr-CKFZAF61.js";import{p as J}from"./pick-AizO1hFA.js";import{t as xe,w as fe}from"./without-DsH4Q3vL.js";import{I as A}from"./InputAdornment-CvUVeXUB.js";import{I as ge}from"./IconButton-BmV2jvz-.js";import{R as je,D as ye,c as ve,s as Ce,a as be,t as Pe,b as ke}from"./chartProperties-D9rhHNyS.js";import{T as Ie}from"./TextField-DTKLdgYP.js";import{o as _e}from"./omit-Dexa0H-t.js";import{t as Ee}from"./toString-CzFgYQbH.js";import{h as Q}from"./has-D9rheNo-.js";import{b as Oe,k as we}from"./keys-MRUazFsh.js";import{_ as Se}from"./_curry2-Sz1efVs9.js";import{a as Te}from"./any-Gex8Nt5w.js";import{f as Ve}from"./flip-BATR9cFS.js";import{m as b}from"./map-DAmoZ62-.js";import{c as Me,B as D,U as qe}from"./UseCases-CyXRdmDK.js";import{p as L}from"./path-BOH92ih4.js";import{p as R}from"./props-Lq2AUB-I.js";import{A as U}from"./ArrowForward-QrCHpLlJ.js";import"./preload-helper-PPVm8Dsz.js";import"./useTheme-pGXs_ROT.js";import"./assoc-CPoQVd_Z.js";import"./_cloneRegExp-xedU2qh5.js";import"./_reduce-BIM_BjAq.js";import"./_isString-DUX4qf9v.js";import"./index-DS-XPpOX.js";import"./MenuItem-rwQC5Jz1.js";import"./ListContext-xq2a6xmy.js";import"./listItemTextClasses-CZbRJWVH.js";import"./join-DwFJnUQ2.js";import"./invoker-BytErN_V.js";import"./formControlState-Dg0qiabM.js";import"./utils-BRr-vONA.js";import"./dissoc-1egoDJJU.js";import"./not-BYZhl9KK.js";import"./FormControlLabel-BZCIDGya.js";import"./useThemeProps-Bg_Es16W.js";import"./getThemeProps-C8xS0M6W.js";import"./Checkbox-BexP1orf.js";import"./SwitchBase-Dey9Iw42.js";import"./useControlled-CwodZjTa.js";import"./all-CfBhpzJp.js";import"./_reduced-C8HAFxGt.js";import"./Select-DvF6k9X2.js";import"./useSlotProps-pWzUupkJ.js";import"./Popover-NnzkJg8l.js";import"./TextareaAutosize-BnqrzVWc.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-CsG6GW7T.js";import"./index-DadQTpM3.js";import"./index-BCSOKU0M.js";import"./utils-Ci5srLYt.js";import"./Paper-CGj07eAk.js";import"./List-COrkKCMC.js";import"./isMuiElement-C2XWHu21.js";const Ae=Me(e.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var Ne=oe(function(t){return ae(ce(le,0,X("length",t)),function(){for(var i=0,o=t.length;i<o;){if(!t[i].apply(this,arguments))return!1;i+=1}return!0})}),F=me(0,-1);function $e(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),i=1,o=arguments.length;i<o;){var l=arguments[i];if(l!=null)for(var a in l)Oe(a,l)&&(t[a]=l[a]);i+=1}return t}const Be=typeof Object.assign=="function"?Object.assign:$e;var De=Se(function(t,i){return Be({},t,i)}),Le=re(function(t,i,o){return se(t,K(i),o)});const Re=N(r=>({title:te({},["mixins","chartsConfig","title"],r)})),x=({icon:r,label:t})=>{const i=Re();return e.jsxs(s,{container:!0,children:[!w(r)&&r,e.jsx(P,{className:i.title,inline:"true",children:t})]})};x.propTypes={label:k.string,icon:k.node};x.__docgenInfo={description:"",methods:[],displayName:"Title",props:{label:{description:"",type:{name:"string"},required:!1},icon:{description:"",type:{name:"node"},required:!1}}};const Ue=Ne([g(q,pe(1)),g(H,c("label"),ue([w,G]))]),Y=(r={},t={})=>{const i=I.useMemo(()=>z(Ue,Le(ie([0,"label"]),c("uniqFocusOption",t)))(r.options),[t,r.options]),o=I.useMemo(()=>i?ne(c("value"),i):{},[i]);return[i,o]},Fe=g($([],"value"),X("value")),Ye=de(j(String),he,c("value")),We=r=>[I.useMemo(()=>g(J(["scatterDimension","scatterX","scatterY","symbolDimension","stackedDimension"]),xe)(r),[r])],ze=N(()=>({visibility:{visibility:"hidden"},input:{"&[type=number]::-webkit-inner-spin-button, &[type=number]::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&[type=number]":{"-moz-appearance":"textfield"}}})),Z=({id:r,value:t,onSubmit:i,onReset:o,resetLabel:l,placeholder:a,...u})=>{const m=ze(),[f,d]=I.useState(t||"");I.useEffect(()=>{d(t)},[t]);const S=`reset-${r}`,T=h=>{j(Function,i)&&f!==t&&i(h.target.value)},v=()=>{j(Function,o)?o():d(t)},_=h=>{h.key==="Enter"&&j(Function,i)&&i(h.target.value)},C=h=>{d(h.target.value)},V=j(Function,o)||f!==t?e.jsx(A,{position:"end",children:e.jsx(ge,{id:S,"aria-label":l,onKeyPress:_,onClick:v,size:"large",children:e.jsx(je,{fontSize:"small"})})}):null;return e.jsx(Ie,{inputProps:{className:m.input},onBlur:T,margin:"dense",size:"small",variant:"outlined",onKeyPress:_,onChange:C,id:r,value:f,InputProps:{endAdornment:V},placeholder:j(Number)(a)?Ee(a):a,..._e(["isActive"])(u)})};Z.__docgenInfo={description:"",methods:[],displayName:"Input"};const Ke={},Xe={},Ge={},y=({minWidth:r=220,properties:t=Ke,labels:i=Xe,pkey:o,mkey:l,xs:a=12,sm:u=12,lg:m=12,InputProps:f=Ge})=>{if(w(o)||!Q(o,t))return null;const d=$({},o,t);return e.jsx(s,{item:!0,xs:a,sm:u,lg:m,style:{minWidth:r},children:e.jsx(Z,{...d,value:z(w,K(""))(d.value),type:"number",label:c(l||o,i),fullWidth:!0,InputProps:De({endAdornment:null},f)})})};y.__docgenInfo={description:"",methods:[],displayName:"InputProxy",props:{minWidth:{defaultValue:{value:"220",computed:!1},required:!1},properties:{defaultValue:{value:"{}",computed:!1},required:!1},labels:{defaultValue:{value:"{}",computed:!1},required:!1},xs:{defaultValue:{value:"12",computed:!1},required:!1},sm:{defaultValue:{value:"12",computed:!1},required:!1},lg:{defaultValue:{value:"12",computed:!1},required:!1},InputProps:{defaultValue:{value:"{}",computed:!1},required:!1}}};const p=({keys:r,properties:t,children:i})=>Te(Ve(Q)(t),r)?i:null;p.propTypes={children:k.node,keys:k.array,properties:k.object};const W=(r,t)=>{const i=[`min${t}`,`max${t}`,`pivot${t}`,`step${t}`];return g(J(i),we)(r)},He=N(r=>({greyVariant:{backgroundColor:r.palette.secondary.dark,color:r.palette.grey[600]}})),Je={},Qe={},B=({labels:r=Je,properties:t=Qe})=>{const i=He(),[o]=We(t),l=W(t,"X"),a=W(t,"Y"),{highlight:u,baseline:m}=t,[f,d]=Y(u,r),[S,T]=Y(m,r),{stackedMode:v={}}=t,{options:_=[]}=v,{displayMode:C={}}=t,{options:V=[]}=C,h=["dimensions","stackedDimension","scatterDimension","symbolDimension"],ee=["title","subtitle","source","logo","copyright"];return G(t)?null:e.jsxs(s,{container:!0,spacing:3,"data-testid":"charts-config-test-id",children:[e.jsx(p,{keys:h,properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsxs(s,{item:!0,xs:12,container:!0,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.series})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(p,{keys:["stackedMode"],properties:t,children:e.jsxs(s,{item:!0,container:!0,spacing:1,alignItems:"center",style:{minWidth:320},children:[e.jsx(s,{item:!0,xs:!0,children:e.jsx(P,{variant:"body2",children:r.stackedMode})}),b(n=>e.jsx(s,{item:!0,children:e.jsx(D,{variant:n.value===v.value?"contained":"outlined",onClick:()=>v.onChange(n.value),color:"primary",children:e.jsx(P,{variant:"body2",children:L(["stackedModeOptions",n.value],r)})})},n.value),_)]})}),b(([n,E])=>e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...E,onChange:E.onChange,label:c(n,r),value:Ye(E.value),items:E.options})},n),o)]})})]})})}),e.jsxs(s,{item:!0,xs:12,container:!0,spacing:2,children:[e.jsx(p,{keys:["highlight","baseline"],properties:t,children:e.jsxs(s,{item:!0,xs:12,lg:8,container:!0,alignContent:"flex-start",children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.focus})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...u,onChange:n=>u.onChange(R(n,d)),value:Fe(u),items:f,isMultiple:!0,isClearable:!0,label:c("highlight",r),placeholder:c("select",r),optionsKey:"highlight"})}),e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...m,onChange:n=>m.onChange(g(R([n]),fe(m.value))(T)),value:g($([],"value"),H,c("value"))(m),items:S,isClearable:!0,label:c("baseline",r),placeholder:c("select",r),optionsKey:"baseline"})})]})})]})}),e.jsxs(s,{item:!0,xs:12,lg:4,container:!0,alignContent:"flex-start",children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.size})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(y,{pkey:"width",labels:r,properties:t,InputProps:{endAdornment:e.jsx(A,{position:"end",children:"px"})}}),e.jsx(y,{pkey:"height",labels:r,properties:t,InputProps:{endAdornment:e.jsx(A,{position:"end",children:"px"})}})]})})]})]}),e.jsxs(s,{item:!0,xs:12,container:!0,spacing:2,children:[e.jsx(p,{keys:l,properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisX,icon:e.jsx(U,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:b(n=>e.jsx(y,{pkey:n,mkey:F(n),lg:12/q(l),labels:r,properties:t},n),l)})})]})}),e.jsx(p,{keys:["freqStep"],properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisX,icon:e.jsx(U,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:e.jsx(y,{pkey:"freqStep",labels:r,properties:t})})})]})}),e.jsx(p,{keys:a,properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisY,icon:e.jsx(Ae,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:b(n=>e.jsx(y,{pkey:n,mkey:F(n),lg:12/q(a),labels:r,properties:t},n),a)})})]})})]}),e.jsx(p,{keys:ee,properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsx(s,{item:!0,xs:12,container:!0,children:e.jsx(ye,{labels:r,properties:t})})})}),e.jsx(p,{keys:["displayMode"],properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsx(s,{item:!0,xs:12,container:!0,children:e.jsxs(s,{item:!0,container:!0,spacing:1,alignItems:"center",style:{minWidth:320},children:[e.jsx(s,{item:!0,xs:!0,children:e.jsx(P,{variant:"body2",children:r.display})}),b(n=>e.jsx(s,{item:!0,children:e.jsx(D,{variant:n.value===C.value?"contained":"outlined",onClick:()=>C.onChange(n.value),color:"primary",children:e.jsx(P,{variant:"body2",children:L(["displayOptions",n.value],r)})})},n.value),V)]})})})})]})};B.__docgenInfo={description:"",methods:[],displayName:"ChartsConfig",props:{labels:{defaultValue:{value:"{}",computed:!1},required:!1},properties:{defaultValue:{value:"{}",computed:!1},required:!1}}};const Or={title:"Data/ChartsConfig",component:B,tags:["autodocs"]},O={render:()=>e.jsx(qe,{base:{labels:ve},cases:{"Bar chart":{properties:ke()},"Timeline chart":{properties:Pe()},"Stacked chart":{properties:be()},"Scatter chart":{properties:Ce()},Empty:{properties:{}}},children:r=>e.jsx(B,{...r})})};O.parameters={...O.parameters,docs:{...O.parameters?.docs,source:{originalSource:`{
|
|
1
|
+
import{j as e,r as I}from"./iframe-B0C93vHt.js";import{P as k}from"./index-CIugh-Rb.js";import{G as s}from"./Grid-nEF834Q-.js";import{i as w}from"./isNil-COslMkIS.js";import{T as P}from"./Typography-BnrgNsqM.js";import{m as N}from"./makeStyles-BsAdQil2.js";import{p as te}from"./pathOr-B-yGj57C.js";import{w as z}from"./when-CRQ12JrK.js";import{_ as re}from"./_curry3-CWUzJcT3.js";import{a as K}from"./always-C_Ync45z.js";import{o as se}from"./over-BjBjHxTc.js";import{l as ie}from"./lensPath-DbUXwSyB.js";import{p as c}from"./prop-Dm-FEtu4.js";import{i as ne}from"./indexBy-BU0Hcf9R.js";import{_ as oe}from"./_curry1-DZES3h6F.js";import{c as ae}from"./curryN-DVrTryA3.js";import{m as le}from"./max-B4spmBqr.js";import{p as X}from"./pluck-BnLF_Scp.js";import{r as ce,s as me,p as g}from"./pipe-CU_CAGp7.js";import{e as pe}from"./_isObject-CRQ-CL0p.js";import{l as q}from"./length-IXM-4ocd.js";import{a as ue}from"./anyPass-7opeD6Ht.js";import{i as G}from"./isEmpty-CZ36qNF2.js";import{h as H}from"./head-Cq4WoDTU.js";import{S as M}from"./Select-B5u0JygW.js";import{i as de}from"./ifElse-_ALGpLaf.js";import{i as j}from"./is-DEqMKgUN.js";import{i as he}from"./identity-BtKjXVdB.js";import{p as $}from"./propOr-CKFZAF61.js";import{p as J}from"./pick-AizO1hFA.js";import{t as xe,w as fe}from"./without-DsH4Q3vL.js";import{I as A}from"./InputAdornment-DUMU_fty.js";import{I as ge}from"./IconButton-D1LmBhVY.js";import{R as je,D as ye,c as ve,s as Ce,a as be,t as Pe,b as ke}from"./chartProperties-BqUCyOeG.js";import{T as Ie}from"./TextField-CIXAME-F.js";import{o as _e}from"./omit-Dexa0H-t.js";import{t as Ee}from"./toString-CzFgYQbH.js";import{h as Q}from"./has-D9rheNo-.js";import{b as Oe,k as we}from"./keys-MRUazFsh.js";import{_ as Se}from"./_curry2-Sz1efVs9.js";import{a as Te}from"./any-Gex8Nt5w.js";import{f as Ve}from"./flip-BATR9cFS.js";import{m as b}from"./map-DAmoZ62-.js";import{c as Me,B as D,U as qe}from"./UseCases-gG1dnCcb.js";import{p as L}from"./path-BOH92ih4.js";import{p as R}from"./props-Lq2AUB-I.js";import{A as U}from"./ArrowForward-DK_mYP0d.js";import"./preload-helper-PPVm8Dsz.js";import"./useTheme-CYGwgk-o.js";import"./assoc-CPoQVd_Z.js";import"./_cloneRegExp-xedU2qh5.js";import"./_reduce-BIM_BjAq.js";import"./_isString-DUX4qf9v.js";import"./index-ieD3Hhp3.js";import"./MenuItem-BdHvyuZR.js";import"./ListContext-Dz79AF8V.js";import"./listItemTextClasses-KCCYnzdt.js";import"./join-DwFJnUQ2.js";import"./invoker-BytErN_V.js";import"./formControlState-B7cu5tO_.js";import"./utils-C-wgWa-7.js";import"./dissoc-1egoDJJU.js";import"./not-BYZhl9KK.js";import"./FormControlLabel-Dc09dPF-.js";import"./useThemeProps-Dl_GBcLH.js";import"./getThemeProps-D3iungka.js";import"./Checkbox-2ISVsd8V.js";import"./SwitchBase-JBMM_B41.js";import"./useControlled-BpKGNZSP.js";import"./all-CfBhpzJp.js";import"./_reduced-C8HAFxGt.js";import"./Select-BM28F38j.js";import"./useSlotProps-wY56SsHZ.js";import"./Popover-Dg51SW3p.js";import"./TextareaAutosize-CyD0REVZ.js";import"./ownerDocument-DW-IO8s5.js";import"./Grow-CMFTZlTS.js";import"./index-DYvvx0NT.js";import"./index-BpyMBwVw.js";import"./utils-BhG3rukK.js";import"./Paper-C18F7aVw.js";import"./List-CBRzn2H2.js";import"./isMuiElement-CdRy5IDf.js";const Ae=Me(e.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var Ne=oe(function(t){return ae(ce(le,0,X("length",t)),function(){for(var i=0,o=t.length;i<o;){if(!t[i].apply(this,arguments))return!1;i+=1}return!0})}),F=me(0,-1);function $e(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),i=1,o=arguments.length;i<o;){var l=arguments[i];if(l!=null)for(var a in l)Oe(a,l)&&(t[a]=l[a]);i+=1}return t}const Be=typeof Object.assign=="function"?Object.assign:$e;var De=Se(function(t,i){return Be({},t,i)}),Le=re(function(t,i,o){return se(t,K(i),o)});const Re=N(r=>({title:te({},["mixins","chartsConfig","title"],r)})),x=({icon:r,label:t})=>{const i=Re();return e.jsxs(s,{container:!0,children:[!w(r)&&r,e.jsx(P,{className:i.title,inline:"true",children:t})]})};x.propTypes={label:k.string,icon:k.node};x.__docgenInfo={description:"",methods:[],displayName:"Title",props:{label:{description:"",type:{name:"string"},required:!1},icon:{description:"",type:{name:"node"},required:!1}}};const Ue=Ne([g(q,pe(1)),g(H,c("label"),ue([w,G]))]),Y=(r={},t={})=>{const i=I.useMemo(()=>z(Ue,Le(ie([0,"label"]),c("uniqFocusOption",t)))(r.options),[t,r.options]),o=I.useMemo(()=>i?ne(c("value"),i):{},[i]);return[i,o]},Fe=g($([],"value"),X("value")),Ye=de(j(String),he,c("value")),We=r=>[I.useMemo(()=>g(J(["scatterDimension","scatterX","scatterY","symbolDimension","stackedDimension"]),xe)(r),[r])],ze=N(()=>({visibility:{visibility:"hidden"},input:{"&[type=number]::-webkit-inner-spin-button, &[type=number]::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&[type=number]":{"-moz-appearance":"textfield"}}})),Z=({id:r,value:t,onSubmit:i,onReset:o,resetLabel:l,placeholder:a,...u})=>{const m=ze(),[f,d]=I.useState(t||"");I.useEffect(()=>{d(t)},[t]);const S=`reset-${r}`,T=h=>{j(Function,i)&&f!==t&&i(h.target.value)},v=()=>{j(Function,o)?o():d(t)},_=h=>{h.key==="Enter"&&j(Function,i)&&i(h.target.value)},C=h=>{d(h.target.value)},V=j(Function,o)||f!==t?e.jsx(A,{position:"end",children:e.jsx(ge,{id:S,"aria-label":l,onKeyPress:_,onClick:v,size:"large",children:e.jsx(je,{fontSize:"small"})})}):null;return e.jsx(Ie,{inputProps:{className:m.input},onBlur:T,margin:"dense",size:"small",variant:"outlined",onKeyPress:_,onChange:C,id:r,value:f,InputProps:{endAdornment:V},placeholder:j(Number)(a)?Ee(a):a,..._e(["isActive"])(u)})};Z.__docgenInfo={description:"",methods:[],displayName:"Input"};const Ke={},Xe={},Ge={},y=({minWidth:r=220,properties:t=Ke,labels:i=Xe,pkey:o,mkey:l,xs:a=12,sm:u=12,lg:m=12,InputProps:f=Ge})=>{if(w(o)||!Q(o,t))return null;const d=$({},o,t);return e.jsx(s,{item:!0,xs:a,sm:u,lg:m,style:{minWidth:r},children:e.jsx(Z,{...d,value:z(w,K(""))(d.value),type:"number",label:c(l||o,i),fullWidth:!0,InputProps:De({endAdornment:null},f)})})};y.__docgenInfo={description:"",methods:[],displayName:"InputProxy",props:{minWidth:{defaultValue:{value:"220",computed:!1},required:!1},properties:{defaultValue:{value:"{}",computed:!1},required:!1},labels:{defaultValue:{value:"{}",computed:!1},required:!1},xs:{defaultValue:{value:"12",computed:!1},required:!1},sm:{defaultValue:{value:"12",computed:!1},required:!1},lg:{defaultValue:{value:"12",computed:!1},required:!1},InputProps:{defaultValue:{value:"{}",computed:!1},required:!1}}};const p=({keys:r,properties:t,children:i})=>Te(Ve(Q)(t),r)?i:null;p.propTypes={children:k.node,keys:k.array,properties:k.object};const W=(r,t)=>{const i=[`min${t}`,`max${t}`,`pivot${t}`,`step${t}`];return g(J(i),we)(r)},He=N(r=>({greyVariant:{backgroundColor:r.palette.secondary.dark,color:r.palette.grey[600]}})),Je={},Qe={},B=({labels:r=Je,properties:t=Qe})=>{const i=He(),[o]=We(t),l=W(t,"X"),a=W(t,"Y"),{highlight:u,baseline:m}=t,[f,d]=Y(u,r),[S,T]=Y(m,r),{stackedMode:v={}}=t,{options:_=[]}=v,{displayMode:C={}}=t,{options:V=[]}=C,h=["dimensions","stackedDimension","scatterDimension","symbolDimension"],ee=["title","subtitle","source","logo","copyright"];return G(t)?null:e.jsxs(s,{container:!0,spacing:3,"data-testid":"charts-config-test-id",children:[e.jsx(p,{keys:h,properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsxs(s,{item:!0,xs:12,container:!0,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.series})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(p,{keys:["stackedMode"],properties:t,children:e.jsxs(s,{item:!0,container:!0,spacing:1,alignItems:"center",style:{minWidth:320},children:[e.jsx(s,{item:!0,xs:!0,children:e.jsx(P,{variant:"body2",children:r.stackedMode})}),b(n=>e.jsx(s,{item:!0,children:e.jsx(D,{variant:n.value===v.value?"contained":"outlined",onClick:()=>v.onChange(n.value),color:"primary",children:e.jsx(P,{variant:"body2",children:L(["stackedModeOptions",n.value],r)})})},n.value),_)]})}),b(([n,E])=>e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...E,onChange:E.onChange,label:c(n,r),value:Ye(E.value),items:E.options})},n),o)]})})]})})}),e.jsxs(s,{item:!0,xs:12,container:!0,spacing:2,children:[e.jsx(p,{keys:["highlight","baseline"],properties:t,children:e.jsxs(s,{item:!0,xs:12,lg:8,container:!0,alignContent:"flex-start",children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.focus})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...u,onChange:n=>u.onChange(R(n,d)),value:Fe(u),items:f,isMultiple:!0,isClearable:!0,label:c("highlight",r),placeholder:c("select",r),optionsKey:"highlight"})}),e.jsx(s,{item:!0,xs:12,style:{minWidth:320},children:e.jsx(M,{...m,onChange:n=>m.onChange(g(R([n]),fe(m.value))(T)),value:g($([],"value"),H,c("value"))(m),items:S,isClearable:!0,label:c("baseline",r),placeholder:c("select",r),optionsKey:"baseline"})})]})})]})}),e.jsxs(s,{item:!0,xs:12,lg:4,container:!0,alignContent:"flex-start",children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.size})}),e.jsx(s,{item:!0,xs:12,children:e.jsxs(s,{container:!0,spacing:1,children:[e.jsx(y,{pkey:"width",labels:r,properties:t,InputProps:{endAdornment:e.jsx(A,{position:"end",children:"px"})}}),e.jsx(y,{pkey:"height",labels:r,properties:t,InputProps:{endAdornment:e.jsx(A,{position:"end",children:"px"})}})]})})]})]}),e.jsxs(s,{item:!0,xs:12,container:!0,spacing:2,children:[e.jsx(p,{keys:l,properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisX,icon:e.jsx(U,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:b(n=>e.jsx(y,{pkey:n,mkey:F(n),lg:12/q(l),labels:r,properties:t},n),l)})})]})}),e.jsx(p,{keys:["freqStep"],properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisX,icon:e.jsx(U,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:e.jsx(y,{pkey:"freqStep",labels:r,properties:t})})})]})}),e.jsx(p,{keys:a,properties:t,children:e.jsxs(s,{item:!0,xs:12,container:!0,className:i.greyVariant,children:[e.jsx(s,{item:!0,xs:12,children:e.jsx(x,{label:r.axisY,icon:e.jsx(Ae,{})})}),e.jsx(s,{item:!0,xs:12,children:e.jsx(s,{container:!0,spacing:1,children:b(n=>e.jsx(y,{pkey:n,mkey:F(n),lg:12/q(a),labels:r,properties:t},n),a)})})]})})]}),e.jsx(p,{keys:ee,properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsx(s,{item:!0,xs:12,container:!0,children:e.jsx(ye,{labels:r,properties:t})})})}),e.jsx(p,{keys:["displayMode"],properties:t,children:e.jsx(s,{item:!0,xs:12,container:!0,spacing:2,children:e.jsx(s,{item:!0,xs:12,container:!0,children:e.jsxs(s,{item:!0,container:!0,spacing:1,alignItems:"center",style:{minWidth:320},children:[e.jsx(s,{item:!0,xs:!0,children:e.jsx(P,{variant:"body2",children:r.display})}),b(n=>e.jsx(s,{item:!0,children:e.jsx(D,{variant:n.value===C.value?"contained":"outlined",onClick:()=>C.onChange(n.value),color:"primary",children:e.jsx(P,{variant:"body2",children:L(["displayOptions",n.value],r)})})},n.value),V)]})})})})]})};B.__docgenInfo={description:"",methods:[],displayName:"ChartsConfig",props:{labels:{defaultValue:{value:"{}",computed:!1},required:!1},properties:{defaultValue:{value:"{}",computed:!1},required:!1}}};const Or={title:"Data/ChartsConfig",component:B,tags:["autodocs"]},O={render:()=>e.jsx(qe,{base:{labels:ve},cases:{"Bar chart":{properties:ke()},"Timeline chart":{properties:Pe()},"Stacked chart":{properties:be()},"Scatter chart":{properties:Ce()},Empty:{properties:{}}},children:r=>e.jsx(B,{...r})})};O.parameters={...O.parameters,docs:{...O.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
labels: chartLabels
|
|
4
4
|
}} cases={{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,r as u,n as P,o as y,p as s,s as l,q as B}from"./iframe-
|
|
1
|
+
import{j as t,r as u,n as P,o as y,p as s,s as l,q as B}from"./iframe-B0C93vHt.js";import{c as x,a as M,g,b as S,d as R,s as E,r as H}from"./UseCases-gG1dnCcb.js";import{S as _}from"./SwitchBase-JBMM_B41.js";const O=x(t.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),U=x(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),V=x(t.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function L(o){return M("MuiCheckbox",o)}const m=g("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),N=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],F=o=>{const{classes:e,indeterminate:c,color:a,size:r}=o,n={root:["root",c&&"indeterminate",`color${l(a)}`,`size${l(r)}`]},d=R(n,L,e);return s({},e,d)},q=E(_,{shouldForwardProp:o=>H(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:c}=o;return[e.root,c.indeterminate&&e.indeterminate,e[`size${l(c.size)}`],c.color!=="default"&&e[`color${l(c.color)}`]]}})(({theme:o,ownerState:e})=>s({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:B.alpha(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${m.checked}, &.${m.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${m.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),D=t.jsx(U,{}),W=t.jsx(O,{}),w=t.jsx(V,{}),K=u.forwardRef(function(e,c){var a,r;const n=P({props:e,name:"MuiCheckbox"}),{checkedIcon:d=D,color:b="primary",icon:z=W,indeterminate:i=!1,indeterminateIcon:h=w,inputProps:I,size:p="medium",className:$}=n,j=y(n,N),C=i?h:z,k=i?h:d,v=s({},n,{color:b,indeterminate:i,size:p}),f=F(v);return t.jsx(q,s({type:"checkbox",inputProps:s({"data-indeterminate":i},I),icon:u.cloneElement(C,{fontSize:(a=C.props.fontSize)!=null?a:p}),checkedIcon:u.cloneElement(k,{fontSize:(r=k.props.fontSize)!=null?r:p}),ownerState:v,ref:c,className:S(f.root,$)},j,{classes:f}))});export{K as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./iframe-
|
|
1
|
+
import{j as o}from"./iframe-B0C93vHt.js";import{C as t}from"./CustomChip-Clig8aPH.js";import{m as i}from"./utils-BmJneOno.js";import{U as n}from"./UseCases-gG1dnCcb.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CIugh-Rb.js";import"./index-ieD3Hhp3.js";import"./Cross-6M-oGMGA.js";import"./utils-C-wgWa-7.js";import"./_isObject-CRQ-CL0p.js";import"./_curry2-Sz1efVs9.js";import"./_curry1-DZES3h6F.js";import"./keys-MRUazFsh.js";import"./prop-Dm-FEtu4.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./pipe-CU_CAGp7.js";import"./curryN-DVrTryA3.js";import"./_curry3-CWUzJcT3.js";import"./_reduce-BIM_BjAq.js";import"./toString-CzFgYQbH.js";import"./invoker-BytErN_V.js";import"./Tooltip-DM1oBzv5.js";import"./Tooltip-ecibjoqM.js";import"./Grow-CMFTZlTS.js";import"./index-DYvvx0NT.js";import"./index-BpyMBwVw.js";import"./useTheme-CYGwgk-o.js";import"./utils-BhG3rukK.js";import"./useControlled-BpKGNZSP.js";import"./useSlotProps-wY56SsHZ.js";import"./ownerDocument-DW-IO8s5.js";import"./makeStyles-BsAdQil2.js";import"./pathOr-B-yGj57C.js";import"./useKeybordEscapeHandler-BmzG7m4Y.js";import"./addIndex-S8tu4ovQ.js";import"./_concat-CKc59O9E.js";import"./map-DAmoZ62-.js";import"./is-DEqMKgUN.js";import"./isNil-COslMkIS.js";import"./append-D6Hz_YNW.js";import"./IconButton-D1LmBhVY.js";import"./join-DwFJnUQ2.js";import"./propOr-CKFZAF61.js";import"./head-Cq4WoDTU.js";import"./when-CRQ12JrK.js";import"./always-C_Ync45z.js";import"./reverse-DgMguxLU.js";import"./either-CAlUDPnz.js";import"./lift-Bmhuevhr.js";import"./or-CYAS8QRM.js";import"./isEmpty-CZ36qNF2.js";import"./_reduced-C8HAFxGt.js";import"./not-BYZhl9KK.js";import"./length-IXM-4ocd.js";const{fn:p}=__STORYBOOK_MODULE_TEST__,me={title:"Chips/CustomChip",component:t,tags:["autodocs"]},e={render:()=>o.jsx(n,{base:{id:"FRA",parentId:"REF_AREA",label:"France",ariaLabel:"Remove",onDelete:p()},cases:{Default:{},"With hierarchy tooltip":{id:"PARIS",label:"Paris",ariaLabelTooltip:" parent of ",items:[{id:"EU",label:"Europe"},{id:"FRA",label:"France"},{id:"PARIS",label:"Paris"}],renderer:i({isRtl:!1,labelRenderer:r=>r.label})},"Long label":{id:"B1GQ",parentId:"TRANSACTION",label:"Gross domestic product at market prices, chain linked volumes, reference year 2015"}},toggles:{notRemovable:{label:"Not removable",props:{onDelete:void 0}}},children:r=>o.jsx("div",{style:{maxWidth:280},children:o.jsx(t,{...r})})})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
id: 'FRA',
|
|
4
4
|
parentId: 'REF_AREA',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as N,n as w,o as U,p as o,j as g,s as c,w as D,x as M}from"./iframe-
|
|
1
|
+
import{r as N,n as w,o as U,p as o,j as g,s as c,w as D,x as M}from"./iframe-B0C93vHt.js";import{a as z,g as E,b as I,d as F,s as v}from"./UseCases-gG1dnCcb.js";function K(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./iframe-B0C93vHt.js";import{c as s}from"./UseCases-gG1dnCcb.js";const e=s(o.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");export{e as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,n as Z,v as tt,o as et,p as o,j as C}from"./iframe-
|
|
1
|
+
import{r as y,n as Z,v as tt,o as et,p as o,j as C}from"./iframe-B0C93vHt.js";import{a as nt,g as it,h as ot,u as rt,b as st,d as at,s as T}from"./UseCases-gG1dnCcb.js";import{T as lt,g as P}from"./utils-BhG3rukK.js";import{u as pt}from"./useTheme-CYGwgk-o.js";function dt(n){return nt("MuiCollapse",n)}it("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ct=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ut=n=>{const{orientation:e,classes:r}=n,d={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return at(d,dt,r)},ht=T("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,e)=>{const{ownerState:r}=n;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(({theme:n,ownerState:e})=>o({height:0,overflow:"hidden",transition:n.transitions.create("height")},e.orientation==="horizontal"&&{height:"auto",width:0,transition:n.transitions.create("width")},e.state==="entered"&&o({height:"auto",overflow:"visible"},e.orientation==="horizontal"&&{width:"auto"}),e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&{visibility:"hidden"})),mt=T("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,e)=>e.wrapper})(({ownerState:n})=>o({display:"flex",width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),ft=T("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,e)=>e.wrapperInner})(({ownerState:n})=>o({width:"100%"},n.orientation==="horizontal"&&{width:"auto",height:"100%"})),gt=y.forwardRef(function(e,r){const d=Z({props:e,name:"MuiCollapse"}),{addEndListener:S,children:b,className:U,collapsedSize:f="0px",component:A,easing:D,in:$,onEnter:W,onEntered:j,onEntering:I,onExit:M,onExited:_,onExiting:F,orientation:H="vertical",style:z,timeout:a=tt.standard,TransitionComponent:k=lt}=d,q=et(d,ct),g=o({},d,{orientation:H,collapsedSize:f}),c=ut(g),L=pt(),B=ot(),l=y.useRef(null),v=y.useRef(),x=typeof f=="number"?`${f}px`:f,u=H==="horizontal",h=u?"width":"height",E=y.useRef(null),G=rt(r,E),p=t=>i=>{if(t){const s=E.current;i===void 0?t(s):t(s,i)}},R=()=>l.current?l.current[u?"clientWidth":"clientHeight"]:0,J=p((t,i)=>{l.current&&u&&(l.current.style.position="absolute"),t.style[h]=x,W&&W(t,i)}),K=p((t,i)=>{const s=R();l.current&&u&&(l.current.style.position="");const{duration:m,easing:w}=P({style:z,timeout:a,easing:D},{mode:"enter"});if(a==="auto"){const N=L.transitions.getAutoHeightDuration(s);t.style.transitionDuration=`${N}ms`,v.current=N}else t.style.transitionDuration=typeof m=="string"?m:`${m}ms`;t.style[h]=`${s}px`,t.style.transitionTimingFunction=w,I&&I(t,i)}),O=p((t,i)=>{t.style[h]="auto",j&&j(t,i)}),Q=p(t=>{t.style[h]=`${R()}px`,M&&M(t)}),V=p(_),X=p(t=>{const i=R(),{duration:s,easing:m}=P({style:z,timeout:a,easing:D},{mode:"exit"});if(a==="auto"){const w=L.transitions.getAutoHeightDuration(i);t.style.transitionDuration=`${w}ms`,v.current=w}else t.style.transitionDuration=typeof s=="string"?s:`${s}ms`;t.style[h]=x,t.style.transitionTimingFunction=m,F&&F(t)}),Y=t=>{a==="auto"&&B.start(v.current||0,t),S&&S(E.current,t)};return C.jsx(k,o({in:$,onEnter:J,onEntered:O,onEntering:K,onExit:Q,onExited:V,onExiting:X,addEndListener:Y,nodeRef:E,timeout:a==="auto"?null:a},q,{children:(t,i)=>C.jsx(ht,o({as:A,className:st(c.root,U,{entered:c.entered,exited:!$&&x==="0px"&&c.hidden}[t]),style:o({[u?"minWidth":"minHeight"]:x},z),ref:G},i,{ownerState:o({},g,{state:t}),children:C.jsx(mt,{ownerState:o({},g,{state:t}),className:c.wrapper,ref:l,children:C.jsx(ft,{ownerState:o({},g,{state:t}),className:c.wrapperInner,children:b})})}))}))});gt.muiSupportAuto=!0;export{gt as C};
|
package/dist/assets/{CollapseButtons.stories-C3KyVYXt.js → CollapseButtons.stories-BgNUZRWD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,R as G,r as g}from"./iframe-
|
|
1
|
+
import{j as t,R as G,r as g}from"./iframe-B0C93vHt.js";import{T as H}from"./ToggleButton-CyE4kjNp.js";import{P as m}from"./index-CIugh-Rb.js";import{a as W}from"./addIndex-S8tu4ovQ.js";import{m as z}from"./map-DAmoZ62-.js";import{G as x}from"./Grid-nEF834Q-.js";import{T as j}from"./Typography-BnrgNsqM.js";import{B as K,S as Y,w as Q,U as J}from"./UseCases-gG1dnCcb.js";import{p as C}from"./prop-Dm-FEtu4.js";import{n as v}from"./not-BYZhl9KK.js";import{i as E}from"./is-DEqMKgUN.js";import{L as X}from"./Link-70hIxaHb.js";import{p as Z}from"./pipe-CU_CAGp7.js";import{i as ee}from"./ifElse-_ALGpLaf.js";import{a as te}from"./always-C_Ync45z.js";import{i as ae}from"./identity-BtKjXVdB.js";import{i as oe}from"./intersperse-fHZp-Lvk.js";import{p as ne}from"./propOr-CKFZAF61.js";import{m as se}from"./makeStyles-BsAdQil2.js";import{p as ie}from"./path-BOH92ih4.js";import{P as le}from"./Paper-C18F7aVw.js";import{C as re}from"./Collapse-CnVujKNr.js";import{u as ce}from"./useMediaQuery-ByGHaSa4.js";import"./preload-helper-PPVm8Dsz.js";import"./index-ieD3Hhp3.js";import"./KeyboardArrowUp-0HhwZTc7.js";import"./_concat-CKc59O9E.js";import"./_curry1-DZES3h6F.js";import"./curryN-DVrTryA3.js";import"./_curry2-Sz1efVs9.js";import"./_reduce-BIM_BjAq.js";import"./keys-MRUazFsh.js";import"./_isString-DUX4qf9v.js";import"./useTheme-CYGwgk-o.js";import"./_curry3-CWUzJcT3.js";import"./pathOr-B-yGj57C.js";import"./utils-BhG3rukK.js";import"./index-DYvvx0NT.js";import"./index-BpyMBwVw.js";import"./getThemeProps-D3iungka.js";const pe=se(e=>({paperItem:{alignItems:"baseline"},itemTitle:{...e.typography.body2,color:e.palette.primary.main},button:{"&:hover":{backgroundColor:ie(["palette","tertiary","light"])(e)||e.palette.secondary.light},padding:e.spacing(1.25),textAlign:"left",textTransform:"none",justifyContent:"flex-start",display:"flex"},itemSubtitle:{...e.typography.body1,display:"flex",flexDirection:"column",color:e.palette.grey[800]},itemSubtitleLink:{...e.typography.body1,color:e.palette.grey[800],"&:hover":{color:e.palette.primary.main}},svg:{color:e.palette.grey[600],fontSize:"1rem",marginRight:e.spacing(.5),marginTop:e.spacing(.25),marginBottom:"auto"}})),O=({parentId:e,item:a,action:n,testId:r,isSecondLevelClikable:p,labelAccessor:u})=>{const s=pe(),f=W(z);return t.jsx(x,{className:s.paperItem,children:t.jsx(j,{variant:"h4",children:t.jsxs(K,{"aria-label":C("label")(a),className:s.button,fullWidth:!0,"data-testid":r,role:"link",onClick:()=>{v(E(Function)(n))||n(e,C("id")(a))},tabIndex:0,children:[t.jsx(Y,{className:s.svg,children:t.jsx("path",{d:C("svgPath")(a)})}),t.jsxs(x,{container:!0,item:!0,xs:12,direction:"column",children:[t.jsx("span",{className:s.itemTitle,children:u(a,e)}),t.jsx("span",{className:s.itemSubtitle,children:f((l,d)=>{if(v(E(Object)(l)))return l;if(v(p))return u(l,e);const c=C("id")(l);return t.jsx(j,{variant:"h5",children:t.jsx(X,{className:s.itemSubtitleLink,role:"link",onClick:i=>{v(E(Function)(n))||(n(e,c),i.stopPropagation())},onKeyDown:i=>{if(i.key==="Enter"||i.key===" "){if(v(E(Function)(n)))return;n(e,c),i.stopPropagation()}},tabIndex:0,underline:"none",style:{display:"list-item"},children:u(l,e)})},`${c}::${d}`)})(Z(ne([],"subtopics"),ee(te(p),ae,oe(" • ")))(a))})]})]})})})};O.propTypes={parentId:m.string,testId:m.string,item:m.object,action:m.func,isSecondLevelClikable:m.bool,labelAccessor:m.func};O.__docgenInfo={description:"",methods:[],displayName:"Item",props:{parentId:{description:"",type:{name:"string"},required:!1},testId:{description:"",type:{name:"string"},required:!1},item:{description:"",type:{name:"object"},required:!1},action:{description:"",type:{name:"func"},required:!1},isSecondLevelClikable:{description:"",type:{name:"bool"},required:!1},labelAccessor:{description:"",type:{name:"func"},required:!1}}};const D=({isMobileView:e,children:a})=>t.jsx(le,{sx:{padding:2.5,margin:1.25,borderRadius:"unset",...e&&{display:"flex",flexDirection:"column",columnCount:"unset"}},children:t.jsx(x,{sx:{columnCount:e?"unset":3,columnFill:"balance",...e&&{display:"flex",flexDirection:"column"}},children:a})});D.__docgenInfo={description:"",methods:[],displayName:"CustomPaper"};const ue=[],A=({id:e,toggleId:a,values:n=ue,isMobileView:r,action:p,isSecondLevelClikable:u,labelAccessor:s,testId:f})=>{const l=a===e;return t.jsx(re,{in:l,timeout:"auto",unmountOnExit:!0,sx:{width:"100%"},children:t.jsx(D,{elevation:10,isMobileView:r,children:n.map((d,c)=>{const i=d?.id??c;return t.jsx(O,{testId:`${f}_${e}_value_${i}`,parentId:e,item:d,action:p,isSecondLevelClikable:u,labelAccessor:s},`${c}-${i}`)})})})},R=G.memo(A);A.__docgenInfo={description:"",methods:[],displayName:"CollapseSection",props:{values:{defaultValue:{value:"[]",computed:!1},required:!1}}};const de=[12,12,6,4,3,3,2,2,2,2,2,2,1],me=[],fe={},be=()=>{},ye=e=>e.breakpoints.down("md"),ge=e=>e?.label,T=({items:e=me,action:a=be,nbColumns:n=3,testId:r="collapseButton",isSecondLevelClikable:p,gridButtonsProps:u=fe,breakpoint:s=ye,justify:f,textTransform:l="none",labelAccessor:d=ge,accessibility:c,selectedItemId:i})=>{const h=ce(s),[b,P]=g.useState(i),w=g.useRef(null),L=de[n]??3,U=g.useCallback(o=>{P(y=>y===o?null:o)},[]),V=g.useCallback(o=>{o.key!=="Escape"||!b||(o.stopPropagation(),w.current?.querySelector('[aria-expanded="true"]')?.focus(),P(null))},[b]);return t.jsxs(x,{container:!0,ref:w,"data-testid":r,justifyContent:f,onKeyDown:V,sx:{...c&&{"& .MuiButton-root:focus-visible, & .MuiLink-root:focus-visible":{outlineColor:"highlight.hl1",outlineWidth:2,outlineStyle:"auto"}}},children:[e.map(({id:o,label:y,values:$=[]},F)=>g.createElement(x,{item:!0,xs:12,sm:12,md:L,...u,key:`${F}::${o}`,sx:{p:1}},t.jsxs(j,{variant:"h3",children:[t.jsx(H,{textTransform:l,label:y,isOpen:b===o,toggle:()=>U(o),testId:`${r}_${o}`,id:o}),h&&t.jsx(R,{id:o,toggleId:b,values:$,isMobileView:h,action:a,isSecondLevelClikable:p,labelAccessor:d,testId:r})]}))),!h&&e.map(({id:o,values:y=[]})=>t.jsx(R,{id:o,toggleId:b,values:y,isMobileView:h,action:a,isSecondLevelClikable:p,labelAccessor:d,testId:r},`desktop-collapse-${o}`))]})};T.__docgenInfo={description:"",methods:[],displayName:"CollapseButtons",props:{items:{defaultValue:{value:"[]",computed:!1},required:!1},action:{defaultValue:{value:"() => {}",computed:!1},required:!1},nbColumns:{defaultValue:{value:"3",computed:!1},required:!1},testId:{defaultValue:{value:"'collapseButton'",computed:!1},required:!1},gridButtonsProps:{defaultValue:{value:"{}",computed:!1},required:!1},breakpoint:{defaultValue:{value:"(theme) => theme.breakpoints.down('md')",computed:!1},required:!1},textTransform:{defaultValue:{value:"'none'",computed:!1},required:!1},labelAccessor:{defaultValue:{value:"(obj) => obj?.label",computed:!1},required:!1}}};const{fn:ve,expect:B,userEvent:S}=__STORYBOOK_MODULE_TEST__,q="M4 4h16v16H4z",k="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z",_="M12 3 2 21h20z",N=[{id:"topic",label:"Topic",values:[{id:"ECO",label:"Economy",svgPath:q,subtopics:[{id:"ECO_NA",label:"National accounts"},{id:"ECO_PRICES",label:"Prices"},{id:"ECO_TRADE",label:"International trade"}]},{id:"SOC",label:"Society",svgPath:k,subtopics:[{id:"SOC_EDU",label:"Education"},{id:"SOC_HEALTH",label:"Health"}]},{id:"ENV",label:"Environment",svgPath:_,subtopics:[{id:"ENV_AIR",label:"Air and climate"},{id:"ENV_WATER",label:"Water"}]},{id:"GOV",label:"Government",svgPath:q,subtopics:[]}]},{id:"area",label:"Reference area",values:[{id:"OECD",label:"OECD countries",svgPath:k},{id:"EU",label:"European Union",svgPath:k},{id:"G20",label:"G20",svgPath:k}]},{id:"source",label:"Source",values:[{id:"OECD_SRC",label:"OECD",svgPath:_},{id:"IMF",label:"International Monetary Fund",svgPath:_}]}],M=ve(),st={title:"Buttons/CollapseButtons",component:T,tags:["autodocs"]},I={render:()=>t.jsx(J,{base:{items:N,action:M,nbColumns:3},cases:{Default:{},Opened:{selectedItemId:"topic"},"Four columns":{nbColumns:4,items:[...N,{id:"frequency",label:"Frequency",values:[]}]},Mobile:{selectedItemId:"topic",breakpoint:e=>e.breakpoints.up("xs")}},toggles:{clickable:{label:"Clickable subtopics",props:{isSecondLevelClikable:!0}},accessibility:{label:"Accessibility",props:{accessibility:!0}}},children:(e,a)=>t.jsx("div",{style:{maxWidth:a==="Mobile"?360:void 0},children:t.jsx(T,{...e})})}),play:async({canvasElement:e})=>{const a=Q(e),n=a.getByRole("button",{name:"Topic"});await S.click(n),await B(n).toHaveAttribute("aria-expanded","true"),await S.click(await a.findByRole("link",{name:"Economy"})),await B(M).toHaveBeenCalledWith("topic","ECO"),await S.click(n)}};I.parameters={...I.parameters,docs:{...I.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={{
|
|
3
3
|
items: topics,
|
|
4
4
|
action,
|
package/dist/assets/{CollapsibleTree.stories-C-Th6prK.js → CollapsibleTree.stories-BY7WKHLw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as H,r as p,j as e}from"./iframe-
|
|
1
|
+
import{R as H,r as p,j as e}from"./iframe-B0C93vHt.js";import{P as d}from"./index-CIugh-Rb.js";import{c as T}from"./index-ieD3Hhp3.js";import{u as z}from"./useTheme-CYGwgk-o.js";import{B,D as Y,w as J,U as Q}from"./UseCases-gG1dnCcb.js";import{K as R,a as _}from"./KeyboardArrowUp-0HhwZTc7.js";import{C as X}from"./Collapse-CnVujKNr.js";import{m as O}from"./makeStyles-BsAdQil2.js";import{p as k}from"./pathOr-B-yGj57C.js";import{N as Z}from"./NoData-CQ4sUH2n.js";import{G as ee}from"./Grid-nEF834Q-.js";import{C as ae}from"./CircularProgress-BMo6p0Mj.js";import{p as f}from"./prop-Dm-FEtu4.js";import{C as re}from"./Container-D-4Tc5hE.js";import{I as te}from"./IconButton-D1LmBhVY.js";import{i as D}from"./isEmpty-CZ36qNF2.js";import{I as oe}from"./Info-CS3qiAPa.js";import{m as A}from"./map-DAmoZ62-.js";import{T as b}from"./Typography-BnrgNsqM.js";import{i as ne}from"./isNil-COslMkIS.js";import{i as ie}from"./is-DEqMKgUN.js";import{D as se}from"./Download-DXOwBx6c.js";import"./preload-helper-PPVm8Dsz.js";import"./utils-BhG3rukK.js";import"./index-DYvvx0NT.js";import"./index-BpyMBwVw.js";import"./_curry3-CWUzJcT3.js";import"./_curry1-DZES3h6F.js";import"./_curry2-Sz1efVs9.js";import"./path-BOH92ih4.js";import"./_isString-DUX4qf9v.js";import"./useThemeProps-Dl_GBcLH.js";import"./getThemeProps-D3iungka.js";import"./keys-MRUazFsh.js";import"./_isObject-CRQ-CL0p.js";import"./_reduce-BIM_BjAq.js";import"./curryN-DVrTryA3.js";const U="icon",v="bold",le=O(a=>({buttonExpand:{display:"flex",justifyContent:"space-between"},[`button${U}`]:{color:a.palette.primary.main,backgroundColor:"rgba(24, 32, 38, 0.04)",margin:a.spacing(1,0)},[`button${v}`]:{marginBottom:a.spacing(1),padding:a.spacing(.5,0,1,0),"&:hover":{backgroundColor:"unset"},...k({},["mixins","collapsibleTree","buttonSublevel"],a)},[`collapsibleContainer${v}`]:{borderTop:"2px solid black",marginTop:a.spacing(2),marginBottom:a.spacing(2)}})),y=({label:a,isOpen:r,children:n,variant:u=U,level:o})=>{const s=le(),l=z(),[c,m]=H.useState(r);return p.useEffect(()=>m(r),[r]),e.jsxs("div",{className:T(s[`collapsibleContainer${u}`]),style:{marginRight:l.spacing(o*2),marginLeft:l.spacing(o*2)},children:[e.jsxs(B,{className:T(s.buttonExpand,s[`button${u}`]),onClick:()=>m(!c),fullWidth:!0,children:[a,c?e.jsx(R,{color:"primary"}):e.jsx(_,{color:"primary"})]}),e.jsx(X,{in:c,timeout:"auto",children:n})]})};y.propTypes={label:d.string,isOpen:d.bool,children:d.node,variant:d.oneOf([U,v]),level:d.number};y.__docgenInfo={description:"",methods:[],displayName:"CollapseComponent",props:{variant:{defaultValue:{value:"'icon'",computed:!1},description:"",type:{name:"enum",value:[{value:"'icon'",computed:!1},{value:"'bold'",computed:!1}]},required:!1},label:{description:"",type:{name:"string"},required:!1},isOpen:{description:"",type:{name:"bool"},required:!1},children:{description:"",type:{name:"node"},required:!1},level:{description:"",type:{name:"number"},required:!1}}};const ce=O(a=>({container:{display:"flex",justifyContent:"space-between"},title:{fontWeight:"bold",...k({},["mixins","collapsibleTree","title"],a)},divider:{marginBottom:a.spacing(2)},spacingValue:{marginLeft:a.spacing(2),marginRight:a.spacing(2),marginBottom:a.spacing(2)},overflow:{whiteSpace:"pre-wrap",overflowWrap:"break-word"}})),de=[],I=({data:a=de,defaultDepthLevel:r=1,isLoading:n,children:u,labels:o,testId:s="collapsible-tree",valueHandler:l,icon:c,onClick:m})=>{const i=ce(),[g,x]=p.useState(r);if(p.useEffect(()=>x(r),[r]),n)return e.jsx(ee,{container:!0,item:!0,justifyContent:"center",children:e.jsx(ae,{})});const V=t=>x(t?void 0:r),N=({value:t,children:w=[],...E})=>(ne(t)||D(t))&&D(w)?f("noValue",o):ie(Function,l)?l({value:t,...E}):t,C=g>=r,S=C?f("collapseAll",o):f("expandAll",o);return e.jsxs(p.Fragment,{children:[e.jsxs(re,{disableGutters:!0,"data-testid":s,className:i.container,children:[e.jsx(B,{"aria-label":S,color:"primary",endIcon:C?e.jsx(R,{color:"primary"}):e.jsx(_,{color:"primary"}),onClick:()=>V(C),tabIndex:0,children:S}),e.jsxs("div",{children:[u,e.jsx(te,{color:"primary",onClick:m,size:"large",children:c})]})]}),D(a)&&e.jsx(Z,{message:f("noData",o)||"no data",icon:e.jsx(oe,{color:"primary",fontSize:"large"})}),A(({id:t,label:w,children:E=[]})=>e.jsxs(p.Fragment,{children:[e.jsx(Y,{className:i.divider}),e.jsx(b,{variant:"h5",className:i.title,children:w}),A(({id:L,label:P,children:j,value:F,handlerProps:q={}})=>e.jsxs(y,{level:0,label:P,isOpen:g>=0,children:[e.jsx(b,{className:T(i.spacingValue,i.overflow),variant:"body2",children:N({value:F,children:j,...q})}),j&&A(({id:$,label:W,value:K,handlerProps:G={}})=>e.jsx(y,{level:1,variant:v,label:W,isOpen:g>=1,children:e.jsx(b,{variant:"body2",className:i.overflow,children:N({value:K,...G})})},$),j)]},L),E)]},t),a)]})};I.__docgenInfo={description:"",methods:[],displayName:"CollapsibleTree",props:{data:{defaultValue:{value:"[]",computed:!1},required:!1},defaultDepthLevel:{defaultValue:{value:"1",computed:!1},required:!1},testId:{defaultValue:{value:"'collapsible-tree'",computed:!1},required:!1}}};const pe={data:[{id:1,label:"Inward activity of multinationals by industrial sector - ISIC Rev 4",children:[{id:10,label:"Data Characteristics",children:[{id:100,label:"Date last updated",value:"August 2017"},{id:101,label:"Unit of measure used",value:"The units used to present data in AFA are millions of national currency for monetary variables and units for the other variables. Monetary variables are in current prices. Euro-area countries: national currency data is expressed in euro beginning with the year of entry into the Economic and Monetary Union (EMU). For years prior to the year of entry into EMU, data have been converted from the former national currency using the appropriate irrevocable conversion rate. This presentation facilitates comparisons within a country over time and ensures that the historical evolution is preserved. Please note, however, that pre-EMU euro are a notional unit and should not be used to form area aggregates or to carry out cross-country comparisons."}]},{id:11,label:"Database Specific",children:[{id:110,label:"Date last updated",value:"August 2015"},{id:111,label:"Abstract",value:"This table contains figures on the activity of affiliates under foreign control and all firms by industry according to the International Standard Industrial Classification (ISIC Revision 4)."}]}]},{id:2,label:"Health spending",children:[{id:20,label:"Data Characteristics",children:[{id:200,label:"Date last updated",value:"August 2017"},{id:201,label:"Unit of measure used",value:"The units used to present data in AFA are millions of national currency for monetary variables and units for the other variables. Monetary variables are in current prices. Euro-area countries: national currency data is expressed in euro beginning with the year of entry into the Economic and Monetary Union (EMU). For years prior to the year of entry into EMU, data have been converted from the former national currency using the appropriate irrevocable conversion rate. This presentation facilitates comparisons within a country over time and ensures that the historical evolution is preserved. Please note, however, that pre-EMU euro are a notional unit and should not be used to form area aggregates or to carry out cross-country comparisons."}]},{id:21,label:"Database Specific",children:[{id:210,label:"Date last updated",value:"August 2015"},{id:211,label:"Abstract",value:"This table contains figures on the health spending of the European Union by industry according to the International Standard Industrial Classification (ISIC Revision 4)."}]}]},{id:3,label:"Health spending by sector",children:[{id:30,label:"Data Characteristics",children:[{id:300,label:"Date last updated",value:"August 2017"},{id:301,label:"Unit of measure used",value:"The units used to present data in AFA are millions of national currency for monetary variables and units for the other variables. Monetary variables are in current prices. Euro-area countries: national currency data is expressed in euro beginning with the year of entry into the Economic and Monetary Union (EMU). For years prior to the year of entry into EMU, data have been converted from the former national currency using the appropriate irrevocable conversion rate. This presentation facilitates comparisons within a country over time and ensures that the historical evolution is preserved. Please note, however, that pre-EMU euro are a notional unit and should not be used to form area aggregates or to carry out cross-country comparisons."}]}]}]},{fn:ue,expect:me,userEvent:M}=__STORYBOOK_MODULE_TEST__,fe={...pe,defaultDepthLevel:1,isLoading:!1,labels:{expandAll:"Expand all",collapseAll:"Collapse all",noValue:"No value",noData:"No metadata available"}},Xe={title:"Data/CollapsibleTree",component:I,tags:["autodocs"]},h={render:()=>e.jsx(Q,{base:fe,cases:{Default:{},"With action":{icon:e.jsx(se,{"aria-label":"Download metadata"}),onClick:ue(),children:e.jsx(b,{variant:"body2",children:"Download"})},"Custom value renderer":{valueHandler:({value:a})=>e.jsx("em",{children:a})},Loading:{isLoading:!0},"No data":{data:[]}},toggles:{depth0:{label:"Depth level 0",props:{defaultDepthLevel:0}}},children:a=>e.jsx(I,{...a})}),play:async({canvasElement:a})=>{const r=J(a);await M.click(r.getByRole("button",{name:"Collapse all"}));const n=await r.findByRole("button",{name:"Expand all"});await me(n).toBeVisible(),await M.click(n)}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: () => <UseCases base={base} cases={{
|
|
3
3
|
Default: {},
|
|
4
4
|
'With action': {
|