diff --git a/nightly/assets/ActionSheet-B9GHFcB_.js b/nightly/assets/ActionSheet-Cz2JGhPz.js similarity index 86% rename from nightly/assets/ActionSheet-B9GHFcB_.js rename to nightly/assets/ActionSheet-Cz2JGhPz.js index cf05dcc2d5..e013aa6b45 100644 --- a/nightly/assets/ActionSheet-B9GHFcB_.js +++ b/nightly/assets/ActionSheet-Cz2JGhPz.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as i}from"./index-CcnH5Kt0.js";import{ae as p,af as m}from"./index-BTZqIHVs.js";import"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";import{C as s}from"./ControlsWithNote-BxJ65CsC.js";import{D as c}from"./DocsHeader-1j-Nmm97.js";import{F as a}from"./CommandsAndQueries-CaebgOF-.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as h,D as e}from"./ActionSheet.stories-DAvw1ORx.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-DK7lmrjm.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-DmoPyW9s.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./accept-BLyty2Fr.js";import"./decline-Cc1aw1Lx.js";import"./delete-BVNnXptZ.js";import"./i18n-defaults-DPj_Cvrr.js";import"./index-62aK2pp1.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./ValueState-Bg0UWejw.js";function r(n){const o={code:"code",h2:"h2",p:"p",pre:"pre",strong:"strong",...i(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(p,{of:h}),` +import{j as t}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as i}from"./index-CcnH5Kt0.js";import{ae as p,af as m}from"./index-DF88Vfek.js";import"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";import{C as s}from"./ControlsWithNote-CXZY75qB.js";import{D as c}from"./DocsHeader-CXgpumkn.js";import{F as a}from"./CommandsAndQueries-fTvyWV95.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as h,D as e}from"./ActionSheet.stories-DIPlV4yG.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-7RSyx66T.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-NsU9pK7A.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./accept-BLyty2Fr.js";import"./decline-Cc1aw1Lx.js";import"./delete-BVNnXptZ.js";import"./i18n-defaults-DPj_Cvrr.js";import"./index-62aK2pp1.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./ValueState-Bg0UWejw.js";function r(n){const o={code:"code",h2:"h2",p:"p",pre:"pre",strong:"strong",...i(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(p,{of:h}),` `,t.jsx(c,{subComponents:["Button"]}),` `,t.jsx("br",{}),` `,t.jsx(o.h2,{id:"example",children:"Example"}),` diff --git a/nightly/assets/ActionSheet.stories-DAvw1ORx.js b/nightly/assets/ActionSheet.stories-DIPlV4yG.js similarity index 86% rename from nightly/assets/ActionSheet.stories-DAvw1ORx.js rename to nightly/assets/ActionSheet.stories-DIPlV4yG.js index 104cf9d6d9..d44f51a942 100644 --- a/nightly/assets/ActionSheet.stories-DAvw1ORx.js +++ b/nightly/assets/ActionSheet.stories-DIPlV4yG.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DEdD30eg.js";import{a as X,P as G,b as Y}from"./Popover-DNjdezPs.js";import{x as p}from"./withWebComponent-v3aPz19k.js";import"./accept-BLyty2Fr.js";import{d as K}from"./decline-Cc1aw1Lx.js";import"./delete-BVNnXptZ.js";import{f as S}from"./Icon-Bq3V4Dpj.js";import{p as M}from"./i18n-defaults-neJWcM66.js";import{r as s}from"./index-RYns6xqu.js";import{B as I}from"./Button-BOw4gYNT.js";import{u as F,a9 as Q,e as Z,X as ee}from"./i18n-defaults-DPj_Cvrr.js";import{u as te}from"./useStylesheet-BXpvj2j9.js";import{c as ne}from"./clsx-B-dksMZM.js";import{a as oe}from"./addCustomCSSWithScoping-BWTAHsoK.js";import{a as ae,g as ie}from"./utils-BWMMwCMQ.js";import{R as re}from"./index-62aK2pp1.js";import{B as r}from"./index-DYGApiRr.js";const le="accept";var H=(e=>(e.ActionSheetBoxShadow="--_ui5wcr_ActionSheet_BoxShadow",e.ActionSheetHeaderBoxShadow="--_ui5wcr_ActionSheet_HeaderBoxShadow",e.ActionSheetMobileHeaderBackground="--_ui5wcr_ActionSheet_MobileHeaderBackground",e.ActionSheetMobileHeaderBorderRadius="--_ui5wcr_ActionSheet_MobileHeaderBorderRadius",e.ActionSheetMobileHeaderBoxShadow="--_ui5wcr_ActionSheet_MobileHeaderBoxShadow",e.ActionSheetMobileHeaderTextColor="--_ui5wcr_ActionSheet_MobileHeaderTextColor",e.ActionSheetTopBorderRadius="--_ui5wcr_ActionSheet_TopBorderRadius",e.AnalyticalTableHeaderActiveTextColor="--_ui5wcr-AnalyticalTable-HeaderActiveTextColor",e.AnalyticalTableHeaderBorderWidth="--_ui5wcr-AnalyticalTable-HeaderBorderWidth",e.AnalyticalTableHeaderFontFamily="--_ui5wcr-AnalyticalTable-HeaderFontFamily",e.AnalyticalTableOuterBorderBlock="--_ui5wcr-AnalyticalTable-OuterBorderBlock",e.AnalyticalTableOuterBorderInline="--_ui5wcr-AnalyticalTable-OuterBorderInline",e.AnalyticalTableOuterCellBorder="--_ui5wcr-AnalyticalTable-OuterCellBorder",e.FormHeaderBorderWidth="--_ui5wcr_Form_HeaderBorderWidth",e.ObjectPageSectionBorderTop="--_ui5wcr_ObjectPage_SectionBorderTop",e.ObjectPageSectionTitleFontFamily="--_ui5wcr_ObjectPage_SectionTitleFontFamily",e.ObjectPageSectionTitleHeight="--_ui5wcr_ObjectPage_SectionTitleHeight",e.ObjectPageSectionTitleLineHeight="--_ui5wcr_ObjectPage_SectionTitleLineHeight",e.ObjectPageSectionTitleTextDecoration="--_ui5wcr_ObjectPage_SectionTitleTextDecoration",e.ObjectPageSubSectionBackgroundColor="--_ui5wcr_ObjectPage_SubSectionBackgroundColor",e.ObjectPageSubSectionBorderRadius="--_ui5wcr_ObjectPage_SubSectionBorderRadius",e.ObjectPageSubSectionPaddingBlockStart="--_ui5wcr_ObjectPage_PaddingBlockStart",e.SplitterBarBorderFix="--_ui5wcr_Splitter_BarBorderHighContrastFix",e.SplitterBarBorderFocus="--_ui5wcr_Splitter_BarBorderFocus",e.SplitterBarBorderStyle="--_ui5wcr_Splitter_BarBorderStyle",e.SplitterBarOutline="--_ui5wcr_Splitter_BarOutline",e.SplitterContentBorderColor="--_ui5wcr_Splitter_ContentBorderColor",e.SplitterIconColor="--_ui5wcr_Splitter_IconColor",e.ToolbarFocusOutline="--_ui5wcr_Toolbar_FocusOutline",e.ToolbarFocusShadow="--_ui5wcr_Toolbar_FocusShadow",e.ScrollbarBorder="--_ui5wcr_Scrollbar_Border",e.ScrollbarBorderRadius="--_ui5wcr_Scrollbar_BorderRadius",e))(H||{});const w=new Proxy(H,{get:(e,a)=>`var(${e[a]})`}),se={packageName:"@ui5/webcomponents-react",fileName:"ActionSheet.module.css",content:"@layer ui5-webcomponents-react{._actionSheet_189eg_1::part(content){padding:.1875rem .375rem}._actionSheet_189eg_1 [ui5-button]{display:block;margin:var(--_ui5wcr-ButtonTopBottomPadding)}._actionSheet_189eg_1 [ui5-button]:not([data-cancel-btn])::part(button){justify-content:flex-start}._actionSheet_189eg_1::part(header){background:#0000;box-shadow:var(--_ui5wcr_ActionSheet_HeaderBoxShadow)}._actionSheetMobile_189eg_20::part(content){padding:0!important}._contentMobile_189eg_25{background-color:var(--sapGroup_ContentBackground);border-top-left-radius:var(--_ui5wcr_ActionSheet_TopBorderRadius);border-top-right-radius:var(--_ui5wcr_ActionSheet_TopBorderRadius);box-shadow:var(--_ui5wcr_ActionSheet_BoxShadow);box-sizing:border-box;max-height:82vh;overflow:auto;padding:.25rem .5rem}._contentMobile_189eg_25>*{margin:.25rem 0}}"},A={actionSheet:"_actionSheet_189eg_1",actionSheetMobile:"_actionSheetMobile_189eg_20",contentMobile:"_contentMobile_189eg_25"};p()&&oe("ui5-responsive-popover",` +import{j as n}from"./jsx-runtime-DEdD30eg.js";import{a as X,P as G,b as Y}from"./Popover-DNjdezPs.js";import{x as p}from"./withWebComponent-v3aPz19k.js";import"./accept-BLyty2Fr.js";import{d as K}from"./decline-Cc1aw1Lx.js";import"./delete-BVNnXptZ.js";import{f as S}from"./Icon-Bq3V4Dpj.js";import{p as M}from"./i18n-defaults-neJWcM66.js";import{r as s}from"./index-RYns6xqu.js";import{B as I}from"./Button-BOw4gYNT.js";import{u as F,a9 as Q,e as Z,X as ee}from"./i18n-defaults-DPj_Cvrr.js";import{u as te}from"./useStylesheet-BXpvj2j9.js";import{c as ne}from"./clsx-B-dksMZM.js";import{a as oe}from"./addCustomCSSWithScoping-BWTAHsoK.js";import{a as ae,g as ie}from"./utils-BWMMwCMQ.js";import{R as re}from"./index-62aK2pp1.js";import{B as r}from"./index-het569gt.js";const le="accept";var H=(e=>(e.ActionSheetBoxShadow="--_ui5wcr_ActionSheet_BoxShadow",e.ActionSheetHeaderBoxShadow="--_ui5wcr_ActionSheet_HeaderBoxShadow",e.ActionSheetMobileHeaderBackground="--_ui5wcr_ActionSheet_MobileHeaderBackground",e.ActionSheetMobileHeaderBorderRadius="--_ui5wcr_ActionSheet_MobileHeaderBorderRadius",e.ActionSheetMobileHeaderBoxShadow="--_ui5wcr_ActionSheet_MobileHeaderBoxShadow",e.ActionSheetMobileHeaderTextColor="--_ui5wcr_ActionSheet_MobileHeaderTextColor",e.ActionSheetTopBorderRadius="--_ui5wcr_ActionSheet_TopBorderRadius",e.AnalyticalTableHeaderActiveTextColor="--_ui5wcr-AnalyticalTable-HeaderActiveTextColor",e.AnalyticalTableHeaderBorderWidth="--_ui5wcr-AnalyticalTable-HeaderBorderWidth",e.AnalyticalTableHeaderFontFamily="--_ui5wcr-AnalyticalTable-HeaderFontFamily",e.AnalyticalTableOuterBorderBlock="--_ui5wcr-AnalyticalTable-OuterBorderBlock",e.AnalyticalTableOuterBorderInline="--_ui5wcr-AnalyticalTable-OuterBorderInline",e.AnalyticalTableOuterCellBorder="--_ui5wcr-AnalyticalTable-OuterCellBorder",e.FormHeaderBorderWidth="--_ui5wcr_Form_HeaderBorderWidth",e.ObjectPageSectionBorderTop="--_ui5wcr_ObjectPage_SectionBorderTop",e.ObjectPageSectionTitleFontFamily="--_ui5wcr_ObjectPage_SectionTitleFontFamily",e.ObjectPageSectionTitleHeight="--_ui5wcr_ObjectPage_SectionTitleHeight",e.ObjectPageSectionTitleLineHeight="--_ui5wcr_ObjectPage_SectionTitleLineHeight",e.ObjectPageSectionTitleTextDecoration="--_ui5wcr_ObjectPage_SectionTitleTextDecoration",e.ObjectPageSubSectionBackgroundColor="--_ui5wcr_ObjectPage_SubSectionBackgroundColor",e.ObjectPageSubSectionBorderRadius="--_ui5wcr_ObjectPage_SubSectionBorderRadius",e.ObjectPageSubSectionPaddingBlockStart="--_ui5wcr_ObjectPage_PaddingBlockStart",e.SplitterBarBorderFix="--_ui5wcr_Splitter_BarBorderHighContrastFix",e.SplitterBarBorderFocus="--_ui5wcr_Splitter_BarBorderFocus",e.SplitterBarBorderStyle="--_ui5wcr_Splitter_BarBorderStyle",e.SplitterBarOutline="--_ui5wcr_Splitter_BarOutline",e.SplitterContentBorderColor="--_ui5wcr_Splitter_ContentBorderColor",e.SplitterIconColor="--_ui5wcr_Splitter_IconColor",e.ToolbarFocusOutline="--_ui5wcr_Toolbar_FocusOutline",e.ToolbarFocusShadow="--_ui5wcr_Toolbar_FocusShadow",e.ScrollbarBorder="--_ui5wcr_Scrollbar_Border",e.ScrollbarBorderRadius="--_ui5wcr_Scrollbar_BorderRadius",e))(H||{});const w=new Proxy(H,{get:(e,a)=>`var(${e[a]})`}),se={packageName:"@ui5/webcomponents-react",fileName:"ActionSheet.module.css",content:"@layer ui5-webcomponents-react{._actionSheet_189eg_1::part(content){padding:.1875rem .375rem}._actionSheet_189eg_1 [ui5-button]{display:block;margin:var(--_ui5wcr-ButtonTopBottomPadding)}._actionSheet_189eg_1 [ui5-button]:not([data-cancel-btn])::part(button){justify-content:flex-start}._actionSheet_189eg_1::part(header){background:#0000;box-shadow:var(--_ui5wcr_ActionSheet_HeaderBoxShadow)}._actionSheetMobile_189eg_20::part(content){padding:0!important}._contentMobile_189eg_25{background-color:var(--sapGroup_ContentBackground);border-top-left-radius:var(--_ui5wcr_ActionSheet_TopBorderRadius);border-top-right-radius:var(--_ui5wcr_ActionSheet_TopBorderRadius);box-shadow:var(--_ui5wcr_ActionSheet_BoxShadow);box-sizing:border-box;max-height:82vh;overflow:auto;padding:.25rem .5rem}._contentMobile_189eg_25>*{margin:.25rem 0}}"},A={actionSheet:"_actionSheet_189eg_1",actionSheetMobile:"_actionSheetMobile_189eg_20",contentMobile:"_contentMobile_189eg_25"};p()&&oe("ui5-responsive-popover",` :host([data-actionsheet]) [ui5-button] { display: none; } @@ -33,18 +33,18 @@ Use this prop carefully, some css properties might break the component.`,name:"s **Note:** Available since [v1.1.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.1.0) of **@ui5/webcomponents**.`,name:"accessibleNameRef",required:!1,type:{name:"string"}},accessibleRole:{defaultValue:{value:'"Dialog"'},description:`Allows setting a custom role. -**Note:** Available since [v1.10.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.10.0) of **@ui5/webcomponents**.`,name:"accessibleRole",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Dialog"'},{value:'"AlertDialog"'},{value:'"Dialog"'},{value:'"AlertDialog"'}]}},initialFocus:{defaultValue:{value:"undefined"},description:"Defines the ID of the HTML Element, which will get the initial focus.\n\n**Note:** If an element with `autofocus` attribute is added inside the component,\n`initialFocus` won't take effect.",name:"initialFocus",required:!1,type:{name:"string"}},open:{defaultValue:{value:"false"},description:`Indicates if the element is open - -**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.`,name:"open",required:!1,type:{name:"boolean"}},preventFocusRestore:{defaultValue:{value:"false"},description:`Defines if the focus should be returned to the previously focused element, -when the popup closes.`,name:"preventFocusRestore",required:!1,type:{name:"boolean"}},preventInitialFocus:{defaultValue:{value:"false"},description:`Indicates whether initial focus should be prevented. - -**Note:** Available since [v2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of **@ui5/webcomponents**.`,name:"preventInitialFocus",required:!1,type:{name:"boolean"}},footer:{defaultValue:null,description:`Defines the footer HTML Element. +**Note:** Available since [v1.10.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.10.0) of **@ui5/webcomponents**.`,name:"accessibleRole",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Dialog"'},{value:'"AlertDialog"'},{value:'"Dialog"'},{value:'"AlertDialog"'}]}},footer:{defaultValue:null,description:`Defines the footer HTML Element. __Note:__ The content of the prop will be rendered into a [<slot>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot) by assigning the respective [slot](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot) attribute (\`slot="footer"\`). Since you can't change the DOM order of slots when declaring them within a prop, it might prove beneficial to manually mount them as part of the component's children, especially when facing problems with the reading order of screen readers. __Note:__ When passing a custom React component to this prop, you have to make sure your component reads the \`slot\` prop and appends it to the most outer element of your component. -Learn more about it [here](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-handling-slots--docs).`,name:"footer",required:!1,type:{name:"UI5WCSlotsNode"}},onBeforeClose:{defaultValue:null,description:"Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeClose",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onBeforeOpen:{defaultValue:null,description:"Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onOpen:{defaultValue:null,description:"Fired after the component is opened.",name:"onOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},allowTargetOverlap:{defaultValue:{value:"false"},description:`Determines if there is no enough space, the component can be placed +Learn more about it [here](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-handling-slots--docs).`,name:"footer",required:!1,type:{name:"UI5WCSlotsNode"}},open:{defaultValue:{value:"false"},description:`Indicates if the element is open + +**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.`,name:"open",required:!1,type:{name:"boolean"}},initialFocus:{defaultValue:{value:"undefined"},description:"Defines the ID of the HTML Element, which will get the initial focus.\n\n**Note:** If an element with `autofocus` attribute is added inside the component,\n`initialFocus` won't take effect.",name:"initialFocus",required:!1,type:{name:"string"}},preventFocusRestore:{defaultValue:{value:"false"},description:`Defines if the focus should be returned to the previously focused element, +when the popup closes.`,name:"preventFocusRestore",required:!1,type:{name:"boolean"}},preventInitialFocus:{defaultValue:{value:"false"},description:`Indicates whether initial focus should be prevented. + +**Note:** Available since [v2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of **@ui5/webcomponents**.`,name:"preventInitialFocus",required:!1,type:{name:"boolean"}},onBeforeClose:{defaultValue:null,description:"Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeClose",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onBeforeOpen:{defaultValue:null,description:"Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onOpen:{defaultValue:null,description:"Fired after the component is opened.",name:"onOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},allowTargetOverlap:{defaultValue:{value:"false"},description:`Determines if there is no enough space, the component can be placed over the target.`,name:"allowTargetOverlap",required:!1,type:{name:"boolean"}},hideArrow:{defaultValue:{value:"false"},description:"Determines whether the component arrow is hidden.",name:"hideArrow",required:!1,type:{name:"boolean"}},horizontalAlign:{defaultValue:{value:'"Center"'},description:"Determines the horizontal alignment of the component.",name:"horizontalAlign",required:!1,type:{name:"enum",value:[{value:'"Center"'},{value:'"Start"'},{value:'"End"'},{value:'"Stretch"'},{value:'"Center"'},{value:'"Start"'},{value:'"End"'},{value:'"Stretch"'}]}},modal:{defaultValue:{value:"false"},description:`Defines whether the component should close when clicking/tapping outside of the popover. If enabled, it blocks any interaction with the background.`,name:"modal",required:!1,type:{name:"boolean"}},opener:{defaultValue:{value:"undefined"},description:"Defines the ID or DOM Reference of the element at which the popover is shown.\nWhen using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.\nYou can only set the `opener` attribute to a DOM Reference when using JavaScript.\n\n**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.",name:"opener",required:!1,type:{name:"string | HTMLElement"}},placement:{defaultValue:{value:'"End"'},description:"Determines on which side the component is placed at.",name:"placement",required:!1,type:{name:"enum",value:[{value:'"Start"'},{value:'"End"'},{value:'"Start"'},{value:'"End"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Top"'},{value:'"Bottom"'}]}},verticalAlign:{defaultValue:{value:'"Center"'},description:"Determines the vertical alignment of the component.",name:"verticalAlign",required:!1,type:{name:"enum",value:[{value:'"Center"'},{value:'"Stretch"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Center"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Stretch"'}]}}}}}catch{}try{c.displayName="ActionSheet",c.__docgenInfo={description:`The \`ActionSheet\` holds a list of buttons from which the user can select to complete an action. @@ -63,18 +63,18 @@ Use this prop carefully, some css properties might break the component.`,name:"s **Note:** Available since [v1.1.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.1.0) of **@ui5/webcomponents**.`,name:"accessibleNameRef",required:!1,type:{name:"string"}},accessibleRole:{defaultValue:{value:'"Dialog"'},description:`Allows setting a custom role. -**Note:** Available since [v1.10.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.10.0) of **@ui5/webcomponents**.`,name:"accessibleRole",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Dialog"'},{value:'"AlertDialog"'},{value:'"Dialog"'},{value:'"AlertDialog"'}]}},initialFocus:{defaultValue:{value:"undefined"},description:"Defines the ID of the HTML Element, which will get the initial focus.\n\n**Note:** If an element with `autofocus` attribute is added inside the component,\n`initialFocus` won't take effect.",name:"initialFocus",required:!1,type:{name:"string"}},open:{defaultValue:{value:"false"},description:`Indicates if the element is open - -**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.`,name:"open",required:!1,type:{name:"boolean"}},preventFocusRestore:{defaultValue:{value:"false"},description:`Defines if the focus should be returned to the previously focused element, -when the popup closes.`,name:"preventFocusRestore",required:!1,type:{name:"boolean"}},preventInitialFocus:{defaultValue:{value:"false"},description:`Indicates whether initial focus should be prevented. - -**Note:** Available since [v2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of **@ui5/webcomponents**.`,name:"preventInitialFocus",required:!1,type:{name:"boolean"}},footer:{defaultValue:null,description:`Defines the footer HTML Element. +**Note:** Available since [v1.10.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.10.0) of **@ui5/webcomponents**.`,name:"accessibleRole",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Dialog"'},{value:'"AlertDialog"'},{value:'"Dialog"'},{value:'"AlertDialog"'}]}},footer:{defaultValue:null,description:`Defines the footer HTML Element. __Note:__ The content of the prop will be rendered into a [<slot>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot) by assigning the respective [slot](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot) attribute (\`slot="footer"\`). Since you can't change the DOM order of slots when declaring them within a prop, it might prove beneficial to manually mount them as part of the component's children, especially when facing problems with the reading order of screen readers. __Note:__ When passing a custom React component to this prop, you have to make sure your component reads the \`slot\` prop and appends it to the most outer element of your component. -Learn more about it [here](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-handling-slots--docs).`,name:"footer",required:!1,type:{name:"UI5WCSlotsNode"}},onBeforeClose:{defaultValue:null,description:"Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeClose",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onBeforeOpen:{defaultValue:null,description:"Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onOpen:{defaultValue:null,description:"Fired after the component is opened.",name:"onOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},allowTargetOverlap:{defaultValue:{value:"false"},description:`Determines if there is no enough space, the component can be placed +Learn more about it [here](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-handling-slots--docs).`,name:"footer",required:!1,type:{name:"UI5WCSlotsNode"}},open:{defaultValue:{value:"false"},description:`Indicates if the element is open + +**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.`,name:"open",required:!1,type:{name:"boolean"}},initialFocus:{defaultValue:{value:"undefined"},description:"Defines the ID of the HTML Element, which will get the initial focus.\n\n**Note:** If an element with `autofocus` attribute is added inside the component,\n`initialFocus` won't take effect.",name:"initialFocus",required:!1,type:{name:"string"}},preventFocusRestore:{defaultValue:{value:"false"},description:`Defines if the focus should be returned to the previously focused element, +when the popup closes.`,name:"preventFocusRestore",required:!1,type:{name:"boolean"}},preventInitialFocus:{defaultValue:{value:"false"},description:`Indicates whether initial focus should be prevented. + +**Note:** Available since [v2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of **@ui5/webcomponents**.`,name:"preventInitialFocus",required:!1,type:{name:"boolean"}},onBeforeClose:{defaultValue:null,description:"Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeClose",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onBeforeOpen:{defaultValue:null,description:"Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.\n\n**Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.",name:"onBeforeOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},onOpen:{defaultValue:null,description:"Fired after the component is opened.",name:"onOpen",required:!1,type:{name:"(event: Ui5CustomEvent) => void"}},allowTargetOverlap:{defaultValue:{value:"false"},description:`Determines if there is no enough space, the component can be placed over the target.`,name:"allowTargetOverlap",required:!1,type:{name:"boolean"}},hideArrow:{defaultValue:{value:"false"},description:"Determines whether the component arrow is hidden.",name:"hideArrow",required:!1,type:{name:"boolean"}},horizontalAlign:{defaultValue:{value:'"Center"'},description:"Determines the horizontal alignment of the component.",name:"horizontalAlign",required:!1,type:{name:"enum",value:[{value:'"Center"'},{value:'"Start"'},{value:'"End"'},{value:'"Stretch"'},{value:'"Center"'},{value:'"Start"'},{value:'"End"'},{value:'"Stretch"'}]}},modal:{defaultValue:{value:"false"},description:`Defines whether the component should close when clicking/tapping outside of the popover. If enabled, it blocks any interaction with the background.`,name:"modal",required:!1,type:{name:"boolean"}},opener:{defaultValue:{value:"undefined"},description:"Defines the ID or DOM Reference of the element at which the popover is shown.\nWhen using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.\nYou can only set the `opener` attribute to a DOM Reference when using JavaScript.\n\n**Note:** Available since [v1.2.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v1.2.0) of **@ui5/webcomponents**.",name:"opener",required:!1,type:{name:"string | HTMLElement"}},placement:{defaultValue:{value:'"End"'},description:"Determines on which side the component is placed at.",name:"placement",required:!1,type:{name:"enum",value:[{value:'"Start"'},{value:'"End"'},{value:'"Start"'},{value:'"End"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Top"'},{value:'"Bottom"'}]}},verticalAlign:{defaultValue:{value:'"Center"'},description:"Determines the vertical alignment of the component.",name:"verticalAlign",required:!1,type:{name:"enum",value:[{value:'"Center"'},{value:'"Stretch"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Center"'},{value:'"Top"'},{value:'"Bottom"'},{value:'"Stretch"'}]}}}}}catch{}const ue="delete",de="email",pe="M480 64q14 0 23 9t9 23v320q0 13-9 22.5t-23 9.5H32q-13 0-22.5-9.5T0 416V96q0-14 9.5-23T32 64h448zM64 96l192 160L448 96H64zm416 16L256 288 32 112v288l133-136 19 18L48 416h416L329 282l17-18 134 136V112z",he=!1,me="SAP-icons-v4",fe="@ui5/webcomponents-icons";S(de,{pathData:pe,ltr:he,collection:me,packageName:fe});const ve="email",be="M422 64q38 0 64 26t26 64v204q0 38-26 64t-64 26H90q-38 0-64-26T0 358V154q0-38 26-64t64-26h332zM90 115q-11 0-22 7l167 109q9 6 21 6 13 0 21-7l166-109q-9-6-21-6H90zm332 282q17 0 28-11t11-28V171L305 273q-22 15-49 15-26 0-49-15L51 172v186q0 17 11 28t28 11h332z",ge=!1,we="SAP-icons-v5",Se="@ui5/webcomponents-icons";S(ve,{pathData:be,ltr:ge,collection:we,packageName:Se});const _e="email",ye="forward",Ae="M471.5 170q9 10 9 23t-9 22l-128 128q-10 10-23 10t-23-10q-9-9-9-22.5t9-22.5l74-73h-84q-40 0-75 15t-61 41-41 61-15 75v32q0 13-9 22.5t-23 9.5q-13 0-22.5-9.5T31.5 449v-32q0-53 20.5-99.5t55-81.5 81-55 99.5-20h84l-74-74q-10-10-10-23t10-22q9-10 22-10t23 10z",Be=!1,Te=M,De="SAP-icons-v4",qe="@ui5/webcomponents-icons";S(ye,{pathData:Ae,ltr:Be,accData:Te,collection:De,packageName:qe});const xe="forward",Ne="M320 151h74L289 43q-7-7-7-17 0-11 7.5-18.5T308 0q10 0 18 8l147 151q7 7 7 18 0 10-7 17L326 345q-8 8-18 8-11 0-18.5-7.5T282 327q0-10 7-17l105-108h-74q-49 0-92.5 17T152 266.5t-50.5 73T83 432v54q0 11-7 18.5T58 512t-18.5-7.5T32 486v-54q0-61 22.5-112.5t61.5-89 91.5-58.5T320 151z",Re=!1,Ce=M,Oe="SAP-icons-v5",ke="@ui5/webcomponents-icons";S(xe,{pathData:Ne,ltr:Re,accData:Ce,collection:Oe,packageName:ke});const Pe="forward",Ee={title:"Modals & Popovers / ActionSheet",component:c,argTypes:{children:{control:{disable:!0}},footer:{control:{disable:!0}},header:{control:{disable:!0}},accessibilityAttributes:{table:{category:"Accessibility props"}}},args:{horizontalAlign:X.Center,placement:G.End,verticalAlign:Y.Center,open:!1},parameters:{chromatic:{disableSnapshot:!0}},tags:["package:@ui5/webcomponents","cem-module:ResponsivePopover"]},b={render(e){const a=s.useRef(null),[u,l]=s.useState(e.open);return s.useEffect(()=>{l(e.open)},[e.open]),n.jsxs(n.Fragment,{children:[n.jsx(r,{onClick:()=>{l(!0)},ref:a,children:"Open ActionSheet"}),n.jsxs(c,{...e,opener:a.current,open:u,onClose:h=>{e.onClose(h),l(!1)},children:[n.jsx(r,{icon:le,children:"Accept"}),n.jsx(r,{icon:K,children:"Reject"}),n.jsx(r,{icon:_e,children:"Email"}),n.jsx(r,{icon:Pe,children:"Forward"}),n.jsx(r,{icon:ue,children:"Delete"}),n.jsx(r,{children:"Other"})]})]})}};var k,P,E;b.parameters={...b.parameters,docs:{...(k=b.parameters)==null?void 0:k.docs,source:{originalSource:`{ diff --git a/nightly/assets/AnalyticalCardHeader-BPqNICcQ.js b/nightly/assets/AnalyticalCardHeader-CJbfYGSj.js similarity index 70% rename from nightly/assets/AnalyticalCardHeader-BPqNICcQ.js rename to nightly/assets/AnalyticalCardHeader-CJbfYGSj.js index 4fe6354ecc..4e4ec115c2 100644 --- a/nightly/assets/AnalyticalCardHeader-BPqNICcQ.js +++ b/nightly/assets/AnalyticalCardHeader-CJbfYGSj.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as n}from"./index-CcnH5Kt0.js";import{A as e}from"./ArgTypesWithNote-BzGsOdma.js";import{C as s}from"./ControlsWithNote-BxJ65CsC.js";import{D as a}from"./DocsHeader-1j-Nmm97.js";import{F as c}from"./CommandsAndQueries-CaebgOF-.js";import"./index-C76FDbj7.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{S as x}from"./SubcomponentsSection-BVy4lpQe.js";import{ae as d,af as f,ag as j,ai as u}from"./index-BTZqIHVs.js";import"./withWebComponent-v3aPz19k.js";import"./person-placeholder-DsLvcKZr.js";import"./Link-CaNG8aKk.js";import{N as i}from"./index-DHNvYbHP.js";import{C as h,D as m}from"./AnalyticalCardHeader.stories-C8T8fSoY.js";import"./index-D9yJfDXX.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./Keys-DoZifIQ_.js";import"./utils-BWMMwCMQ.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./index-sbqOYYIm.js";import"./utils-DK7lmrjm.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-DmoPyW9s.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./i18n-defaults-DPj_Cvrr.js";import"./index-DowKepYt.js";import"./LineChart-CNUPag2_.js";import"./ThemingParameters-B358vlzA.js";import"./index-C-Zfmu7Z.js";import"./YAxisTicks-CtAzjEkC.js";import"./ChartContainer-CPZmTOxF.js";import"./debounce-BNez58WF.js";import"./tiny-invariant-CCoILDQG.js";import"./index-rNTiGNI1.js";import"./index-BSG3jsMu.js";import"./debounce-D7W5PopO.js";import"./useTooltipFormatter-Bc5YYdUd.js";import"./staticProps-sp99DlBn.js";import"./ChartDataLabel-BmsbnEZP.js";import"./useLongestYAxisLabel-DZVT0eX6.js";import"./react-content-loader.es-BcmDwNEo.js";import"./Line-BtGXyJ7d.js";import"./useIsRTL-cDadyecF.js";import"./directionChange-CZzBlQEM.js";function p(r){const t={h2:"h2",...n(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(d,{of:h}),` +import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as n}from"./index-CcnH5Kt0.js";import{A as e}from"./ArgTypesWithNote-tbsAVKts.js";import{C as s}from"./ControlsWithNote-CXZY75qB.js";import{D as a}from"./DocsHeader-CXgpumkn.js";import{F as c}from"./CommandsAndQueries-fTvyWV95.js";import"./index-CiCDi3h8.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{S as x}from"./SubcomponentsSection-BVy4lpQe.js";import{ae as d,af as f,ag as j,ai as u}from"./index-DF88Vfek.js";import"./withWebComponent-v3aPz19k.js";import"./person-placeholder-DsLvcKZr.js";import"./Link-CaNG8aKk.js";import{N as i}from"./index-CQ3a1h7g.js";import{C as h,D as m}from"./AnalyticalCardHeader.stories-CCJF1X_J.js";import"./index-D9yJfDXX.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./Keys-DoZifIQ_.js";import"./utils-BWMMwCMQ.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./index-sbqOYYIm.js";import"./utils-7RSyx66T.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-NsU9pK7A.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./i18n-defaults-DPj_Cvrr.js";import"./index-DowKepYt.js";import"./LineChart-CkGN-EJN.js";import"./ThemingParameters-B358vlzA.js";import"./index-C-Zfmu7Z.js";import"./YAxisTicks-CkUvUhJx.js";import"./ChartContainer-DIKpR_s1.js";import"./debounce-BNez58WF.js";import"./tiny-invariant-CCoILDQG.js";import"./index-rNTiGNI1.js";import"./index-BSG3jsMu.js";import"./debounce-D7W5PopO.js";import"./useTooltipFormatter-BJM650pQ.js";import"./staticProps-2AeTJTQU.js";import"./ChartDataLabel-CcXFpGxU.js";import"./useLongestYAxisLabel-DVKq1T4O.js";import"./react-content-loader.es-BcmDwNEo.js";import"./Line-BIP9MSXo.js";import"./useIsRTL-cDadyecF.js";import"./directionChange-CZzBlQEM.js";function p(r){const t={h2:"h2",...n(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(d,{of:h}),` `,o.jsx(a,{subComponents:["NumericSideIndicator"]}),` `,o.jsx(t.h2,{id:"example",children:"Example"}),` `,o.jsx(f,{of:m}),` diff --git a/nightly/assets/AnalyticalCardHeader.stories-C8T8fSoY.js b/nightly/assets/AnalyticalCardHeader.stories-CCJF1X_J.js similarity index 92% rename from nightly/assets/AnalyticalCardHeader.stories-C8T8fSoY.js rename to nightly/assets/AnalyticalCardHeader.stories-CCJF1X_J.js index 749ba61894..c7bee59331 100644 --- a/nightly/assets/AnalyticalCardHeader.stories-C8T8fSoY.js +++ b/nightly/assets/AnalyticalCardHeader.stories-CCJF1X_J.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DEdD30eg.js";import{L as l}from"./LineChart-CNUPag2_.js";import{C as d}from"./index-X9t538J9.js";import{A as i,N as a,V as t,D as u}from"./index-DHNvYbHP.js";const p=[{name:"January",users:76},{name:"February",users:230},{name:"March",users:240},{name:"April",users:280},{name:"May",users:100}],x={title:"Data Display / AnalyticalCardHeader",component:i,argTypes:{children:{control:{disable:!0}}},args:{children:e.jsxs(e.Fragment,{children:[e.jsx(a,{titleText:"Target",number:"100",unit:"k"}),e.jsx(a,{titleText:"Deviation",number:"34.7",unit:"%",state:t.Critical})]}),titleText:"Project Cloud Transformation",subtitleText:"Revenue",unitOfMeasurement:"EUR",trend:u.Down,value:"65.34",state:t.Error,scale:"K",description:"Q1, 2018"}},r={render(c){return e.jsx(d,{header:e.jsx(i,{...c}),children:e.jsx(l,{className:"chromatic-ignore",noLegend:!0,dimensions:[{accessor:"name"}],measures:[{accessor:"users",formatter:m=>`${m}k`}],dataset:p})})}};var s,n,o;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DEdD30eg.js";import{L as l}from"./LineChart-CkGN-EJN.js";import{C as d}from"./index-X9t538J9.js";import{A as i,N as a,V as t,D as u}from"./index-CQ3a1h7g.js";const p=[{name:"January",users:76},{name:"February",users:230},{name:"March",users:240},{name:"April",users:280},{name:"May",users:100}],x={title:"Data Display / AnalyticalCardHeader",component:i,argTypes:{children:{control:{disable:!0}}},args:{children:e.jsxs(e.Fragment,{children:[e.jsx(a,{titleText:"Target",number:"100",unit:"k"}),e.jsx(a,{titleText:"Deviation",number:"34.7",unit:"%",state:t.Critical})]}),titleText:"Project Cloud Transformation",subtitleText:"Revenue",unitOfMeasurement:"EUR",trend:u.Down,value:"65.34",state:t.Error,scale:"K",description:"Q1, 2018"}},r={render(c){return e.jsx(d,{header:e.jsx(i,{...c}),children:e.jsx(l,{className:"chromatic-ignore",noLegend:!0,dimensions:[{accessor:"name"}],measures:[{accessor:"users",formatter:m=>`${m}k`}],dataset:p})})}};var s,n,o;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{ render(props) { return }> (a.ui5WcrBarHeight="--_ui5wcr-BarHeight",a.ui5WcrButtonTopBottomPadding="--_ui5wcr-ButtonTopBottomPadding",a.ui5WcrAnalyticalTableExpandButtonHeight="--_ui5wcr-AnalyticalTableExpandButtonHeight",a.ui5WcrAnalyticalTableExpandIconHeight="--_ui5wcr-AnalyticalTableExpandIconHeight",a.ui5WcrAnalyticalTableExpandIndicatorWidth="--_ui5wcr-AnalyticalTableExpandIndicatorWidth",a.ui5WcrAnalyticalTableRowHeight="--_ui5wcr-AnalyticalTableRowHeight",a.ui5WcrAnalyticalTableHeaderRowHeight="--_ui5wcr-AnalyticalTableHeaderRowHeight",a.ui5WcrAnalyticalTableTreePaddingLevel1="--_ui5wcr-AnalyticalTableTreePaddingLevel1",a.ui5WcrAnalyticalTableTreePaddingLevel2="--_ui5wcr-AnalyticalTableTreePaddingLevel2",a.ui5WcrAnalyticalTableTreePaddingLevel3="--_ui5wcr-AnalyticalTableTreePaddingLevel3",a.ui5WcrCheckBoxWidthHeight="--_ui5wcr-CheckBoxWidthHeight",a.ui5WcrCheckBoxPaddingInline="--_ui5wcr-CheckBoxPaddingInline",a.ui5WcrAnalyticalTableSelectionColumnWidth="--_ui5wcr-AnalyticalTableSelectionColumnWidth",a.ui5WcrToolbarHeight="--_ui5wcr-ToolbarHeight",a.ui5WcrToolbarPopoverContentPadding="--_ui5wcr-ToolbarPopoverContentPadding",a.ui5WcrToolbarSeparatorHeight="--_ui5wcr-ToolbarSeparatorHeight",a.ui5WcrFormGroupTitleHeight="--_ui5wcr-FormGroupTitleHeight",a.ui5WcrMessageViewListItemHeightSingle="--_ui5wcr-MessageViewListItemHeightSingle",a.ui5WcrMessageViewListItemHeightByLine="--_ui5wcr-MessageViewListItemHeightByLine",a.ui5WcrMessageItemTitleFontSize="--_ui5wcr-MessageItemTitleFontSize",a.ui5WcrDialogHeaderHeight="--_ui5wcr-DialogHeaderHeight",a.ui5WcrDialogSubHeaderHeight="--_ui5wcr-DialogSubHeaderHeight",a.ui5WcrElementHeight="--_ui5wcr-ElementHeight",a))(gr||{});const St=new Proxy(gr,{get:(a,s)=>`var(${a[s]})`});var tn=(a=>(a.Default="Default",a.Smart="Smart",a.Grow="Grow",a))(tn||{}),_a=(a=>(a.Row="Row",a.RowOnly="RowOnly",a.RowSelector="RowSelector",a))(_a||{}),We=(a=>(a.None="None",a.Single="Single",a.Multiple="Multiple",a))(We||{}),Va=(a=>(a.Expandable="Expandable",a.Visible="Visible",a.IncludeHeight="IncludeHeight",a.IncludeHeightExpandable="IncludeHeightExpandable",a))(Va||{}),Ye=(a=>(a.Fixed="Fixed",a.Auto="Auto",a.AutoWithEmptyRows="AutoWithEmptyRows",a.Interactive="Interactive",a))(Ye||{}),Le=(a=>(a.Begin="Begin",a.End="End",a.Left="Left",a.Right="Right",a.Center="Center",a.Initial="Initial",a))(Le||{}),Vn=(a=>(a.Bottom="Bottom",a.Inherit="Inherit",a.Middle="Middle",a.Top="Top",a))(Vn||{});const zs=/\[/g,qs=/]/g;function Os(a){return fi(a).map(s=>String(s).replace(".","_")).join(".").replace(zs,".").replace(qs,"").split(".")}function fi(a,s=[]){if(!Array.isArray(a))s.push(a);else for(let i=0;i{const l=Os(s);return Mr.set(t,l),l})();let c;try{c=u.reduce((l,p)=>l[p],a)}catch{}return typeof c<"u"?c:i}const Ks=new Set(["UI5-AVATAR","UI5-BUTTON","UI5-CALENDAR","UI5-CHECKBOX","UI5-COLOR-PICKER","UI5-COMBOBOX","UI5-DATE-PICKER","UI5-DATERANGE-PICKER","UI5-DATETIME-PICKER","UI5-DURATION-PICKER","UI5-FILE-UPLOADER","UI5-ICON","UI5-INPUT","UI5-LINK","UI5-MULTI-COMBOBOX","UI5-MULTI-INPUT","UI5-RADIO-BUTTON","UI5-RANGE-SLIDER","UI5-RATING-INDICATOR","UI5-SEGMENTED-BUTTON","UI5-SELECT","UI5-SLIDER","UI5-STEP-INPUT","UI5-SWITCH","UI5-TEXT-AREA","UI5-TIME-PICKER","UI5-TOGGLE-BUTTON","UI5-UPLOAD-COLLECTION"]),pi=a=>{const s={};switch(a.hAlign){case Le.Begin:s.justifyContent="flex-start",s.textAlign="start";break;case Le.Center:s.justifyContent="center",s.textAlign="center";break;case Le.End:s.justifyContent="flex-end",s.textAlign="end";break;case Le.Left:s.justifyContent="left",s.textAlign="left";break;case Le.Right:s.justifyContent="right",s.textAlign="right";break;case Le.Initial:s.justifyContent="initial",s.textAlign="initial";break}switch(a.vAlign){case Vn.Bottom:s.alignItems="flex-end";break;case Vn.Middle:s.alignItems="center";break;case Vn.Top:s.alignItems="flex-start";break}return s};function js(a,s){return a||(typeof document<"u"?parseInt(getComputedStyle(s.current??document.body).getPropertyValue("--_ui5wcr-AnalyticalTableRowHeight")||"44"):44)}function cr(a,s){return a.includes(".")?a.split(".").reduce((i,t)=>i==null?void 0:i[t],s):s.subRows||s[a]}function Js(a){const s=[],i=t=>{t.columns&&t.columns.length&&t.columns.map(i),s.push(t)};return i(a),s}const lr="navigation-right-arrow",hi="filter";function Qa(a,s,i){let t=i.initialDeps??[],u;return()=>{var c,l,p,P;let m;i.key&&((c=i.debug)!=null&&c.call(i))&&(m=Date.now());const R=a();if(!(R.length!==t.length||R.some((S,H)=>t[H]!==S)))return u;t=R;let b;if(i.key&&((l=i.debug)!=null&&l.call(i))&&(b=Date.now()),u=s(...R),i.key&&((p=i.debug)!=null&&p.call(i))){const S=Math.round((Date.now()-m)*100)/100,H=Math.round((Date.now()-b)*100)/100,M=H/16,h=(y,A)=>{for(y=String(y);y.length(a.ui5WcrBarHeight="--_ui5wcr-BarHeight",a.ui5WcrButtonTopBottomPadding="--_ui5wcr-ButtonTopBottomPadding",a.ui5WcrAnalyticalTableExpandButtonHeight="--_ui5wcr-AnalyticalTableExpandButtonHeight",a.ui5WcrAnalyticalTableExpandIconHeight="--_ui5wcr-AnalyticalTableExpandIconHeight",a.ui5WcrAnalyticalTableExpandIndicatorWidth="--_ui5wcr-AnalyticalTableExpandIndicatorWidth",a.ui5WcrAnalyticalTableRowHeight="--_ui5wcr-AnalyticalTableRowHeight",a.ui5WcrAnalyticalTableHeaderRowHeight="--_ui5wcr-AnalyticalTableHeaderRowHeight",a.ui5WcrAnalyticalTableTreePaddingLevel1="--_ui5wcr-AnalyticalTableTreePaddingLevel1",a.ui5WcrAnalyticalTableTreePaddingLevel2="--_ui5wcr-AnalyticalTableTreePaddingLevel2",a.ui5WcrAnalyticalTableTreePaddingLevel3="--_ui5wcr-AnalyticalTableTreePaddingLevel3",a.ui5WcrCheckBoxWidthHeight="--_ui5wcr-CheckBoxWidthHeight",a.ui5WcrCheckBoxPaddingInline="--_ui5wcr-CheckBoxPaddingInline",a.ui5WcrAnalyticalTableSelectionColumnWidth="--_ui5wcr-AnalyticalTableSelectionColumnWidth",a.ui5WcrToolbarHeight="--_ui5wcr-ToolbarHeight",a.ui5WcrToolbarPopoverContentPadding="--_ui5wcr-ToolbarPopoverContentPadding",a.ui5WcrToolbarSeparatorHeight="--_ui5wcr-ToolbarSeparatorHeight",a.ui5WcrFormGroupTitleHeight="--_ui5wcr-FormGroupTitleHeight",a.ui5WcrMessageViewListItemHeightSingle="--_ui5wcr-MessageViewListItemHeightSingle",a.ui5WcrMessageViewListItemHeightByLine="--_ui5wcr-MessageViewListItemHeightByLine",a.ui5WcrMessageItemTitleFontSize="--_ui5wcr-MessageItemTitleFontSize",a.ui5WcrDialogHeaderHeight="--_ui5wcr-DialogHeaderHeight",a.ui5WcrDialogSubHeaderHeight="--_ui5wcr-DialogSubHeaderHeight",a.ui5WcrElementHeight="--_ui5wcr-ElementHeight",a))(gr||{});const St=new Proxy(gr,{get:(a,s)=>`var(${a[s]})`});var tn=(a=>(a.Default="Default",a.Smart="Smart",a.Grow="Grow",a))(tn||{}),_a=(a=>(a.Row="Row",a.RowOnly="RowOnly",a.RowSelector="RowSelector",a))(_a||{}),We=(a=>(a.None="None",a.Single="Single",a.Multiple="Multiple",a))(We||{}),Va=(a=>(a.Expandable="Expandable",a.Visible="Visible",a.IncludeHeight="IncludeHeight",a.IncludeHeightExpandable="IncludeHeightExpandable",a))(Va||{}),Ye=(a=>(a.Fixed="Fixed",a.Auto="Auto",a.AutoWithEmptyRows="AutoWithEmptyRows",a.Interactive="Interactive",a))(Ye||{}),Le=(a=>(a.Begin="Begin",a.End="End",a.Left="Left",a.Right="Right",a.Center="Center",a.Initial="Initial",a))(Le||{}),Vn=(a=>(a.Bottom="Bottom",a.Inherit="Inherit",a.Middle="Middle",a.Top="Top",a))(Vn||{});const zs=/\[/g,qs=/]/g;function Os(a){return fi(a).map(s=>String(s).replace(".","_")).join(".").replace(zs,".").replace(qs,"").split(".")}function fi(a,s=[]){if(!Array.isArray(a))s.push(a);else for(let i=0;i{const l=Os(s);return Mr.set(t,l),l})();let c;try{c=u.reduce((l,p)=>l[p],a)}catch{}return typeof c<"u"?c:i}const Ks=new Set(["UI5-AVATAR","UI5-BUTTON","UI5-CALENDAR","UI5-CHECKBOX","UI5-COLOR-PICKER","UI5-COMBOBOX","UI5-DATE-PICKER","UI5-DATERANGE-PICKER","UI5-DATETIME-PICKER","UI5-DURATION-PICKER","UI5-FILE-UPLOADER","UI5-ICON","UI5-INPUT","UI5-LINK","UI5-MULTI-COMBOBOX","UI5-MULTI-INPUT","UI5-RADIO-BUTTON","UI5-RANGE-SLIDER","UI5-RATING-INDICATOR","UI5-SEGMENTED-BUTTON","UI5-SELECT","UI5-SLIDER","UI5-STEP-INPUT","UI5-SWITCH","UI5-TEXT-AREA","UI5-TIME-PICKER","UI5-TOGGLE-BUTTON","UI5-UPLOAD-COLLECTION"]),pi=a=>{const s={};switch(a.hAlign){case Le.Begin:s.justifyContent="flex-start",s.textAlign="start";break;case Le.Center:s.justifyContent="center",s.textAlign="center";break;case Le.End:s.justifyContent="flex-end",s.textAlign="end";break;case Le.Left:s.justifyContent="left",s.textAlign="left";break;case Le.Right:s.justifyContent="right",s.textAlign="right";break;case Le.Initial:s.justifyContent="initial",s.textAlign="initial";break}switch(a.vAlign){case Vn.Bottom:s.alignItems="flex-end";break;case Vn.Middle:s.alignItems="center";break;case Vn.Top:s.alignItems="flex-start";break}return s};function js(a,s){return a||(typeof document<"u"?parseInt(getComputedStyle(s.current??document.body).getPropertyValue("--_ui5wcr-AnalyticalTableRowHeight")||"44"):44)}function cr(a,s){return a.includes(".")?a.split(".").reduce((i,t)=>i==null?void 0:i[t],s):s.subRows||s[a]}function Js(a){const s=[],i=t=>{t.columns&&t.columns.length&&t.columns.map(i),s.push(t)};return i(a),s}const lr="navigation-right-arrow",hi="filter";function Qa(a,s,i){let t=i.initialDeps??[],u;return()=>{var c,l,p,P;let m;i.key&&((c=i.debug)!=null&&c.call(i))&&(m=Date.now());const R=a();if(!(R.length!==t.length||R.some((S,H)=>t[H]!==S)))return u;t=R;let b;if(i.key&&((l=i.debug)!=null&&l.call(i))&&(b=Date.now()),u=s(...R),i.key&&((p=i.debug)!=null&&p.call(i))){const S=Math.round((Date.now()-m)*100)/100,H=Math.round((Date.now()-b)*100)/100,M=H/16,h=(y,A)=>{for(y=String(y);y.lengthMath.abs(a-s)<1,Us=(a,s,i)=>{let t;return function(...u){a.clearTimeout(t),t=a.setTimeout(()=>s.apply(this,u),i)}},Ys=a=>a,Xs=a=>{const s=Math.max(a.startIndex-a.overscan,0),i=Math.min(a.endIndex+a.overscan,a.count-1),t=[];for(let u=s;u<=i;u++)t.push(u);return t},Zs=(a,s)=>{const i=a.scrollElement;if(!i)return;const t=a.targetWindow;if(!t)return;const u=l=>{const{width:p,height:P}=l;s({width:Math.round(p),height:Math.round(P)})};if(u(i.getBoundingClientRect()),!t.ResizeObserver)return()=>{};const c=new t.ResizeObserver(l=>{const p=l[0];if(p!=null&&p.borderBoxSize){const P=p.borderBoxSize[0];if(P){u({width:P.inlineSize,height:P.blockSize});return}}u(i.getBoundingClientRect())});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Hr={passive:!0},Qs=typeof window>"u"?!0:"onscrollend"in window,eo=(a,s)=>{const i=a.scrollElement;if(!i)return;const t=a.targetWindow;if(!t)return;let u=0;const c=Qs?()=>{}:Us(t,()=>{s(u,!1)},a.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:R,isRtl:k}=a.options;u=R?i.scrollLeft*(k&&-1||1):i.scrollTop,c(),s(u,m)},p=l(!0),P=l(!1);return P(),i.addEventListener("scroll",p,Hr),i.addEventListener("scrollend",P,Hr),()=>{i.removeEventListener("scroll",p),i.removeEventListener("scrollend",P)}},ao=(a,s,i)=>{if(s!=null&&s.borderBoxSize){const t=s.borderBoxSize[0];if(t)return Math.round(t[i.options.horizontal?"inlineSize":"blockSize"])}return Math.round(a.getBoundingClientRect()[i.options.horizontal?"width":"height"])},no=(a,{adjustments:s=0,behavior:i},t)=>{var u,c;const l=a+s;(c=(u=t.scrollElement)==null?void 0:u.scrollTo)==null||c.call(u,{[t.options.horizontal?"left":"top"]:l,behavior:i})};class to{constructor(s){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const t=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(u=>{u.forEach(c=>{this._measureElement(c.target,c)})}));return{disconnect:()=>{var u;(u=t())==null||u.disconnect(),i=null},observe:u=>{var c;return(c=t())==null?void 0:c.observe(u,{box:"border-box"})},unobserve:u=>{var c;return(c=t())==null?void 0:c.unobserve(u)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([t,u])=>{typeof u>"u"&&delete i[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ys,rangeExtractor:Xs,onChange:()=>{},measureElement:ao,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...i}},this.notify=i=>{var t,u;(u=(t=this.options).onChange)==null||u.call(t,this,i)},this.maybeNotify=Qa(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(u=>{this.observer.observe(u)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,u=>{this.scrollRect=u,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(u,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,t)=>{const u=new Map,c=new Map;for(let l=t-1;l>=0;l--){const p=i[l];if(u.has(p.lane))continue;const P=c.get(p.lane);if(P==null||p.end>P.end?c.set(p.lane,p):p.endl.end===p.end?l.index-p.index:l.end-p.end)[0]:void 0},this.getMeasurementOptions=Qa(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,t,u,c,l)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:t,scrollMargin:u,getItemKey:c,enabled:l}),{key:!1}),this.getMeasurements=Qa(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:t,scrollMargin:u,getItemKey:c,enabled:l},p)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));const P=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const m=this.measurementsCache.slice(0,P);for(let R=P;Rthis.options.debug}),this.calculateRange=Qa(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(i,t,u)=>this.range=i.length>0&&t>0?ro({measurements:i,outerSize:t,scrollOffset:u}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Qa(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(i,t,u,c)=>t===null?[]:i({startIndex:t.startIndex,endIndex:t.endIndex,overscan:u,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const t=this.options.indexAttribute,u=i.getAttribute(t);return u?parseInt(u,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(i,t)=>{const u=this.indexFromElement(i),c=this.measurementsCache[u];if(!c)return;const l=c.key,p=this.elementsCache.get(l);p!==i&&(p&&this.observer.unobserve(p),this.observer.observe(i),this.elementsCache.set(l,i)),i.isConnected&&this.resizeItem(u,this.options.measureElement(i,t,this))},this.resizeItem=(i,t)=>{const u=this.measurementsCache[i];if(!u)return;const c=this.itemSizeCache.get(u.key)??u.size,l=t-c;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(u,l,this):u.start{if(!i){this.elementsCache.forEach((t,u)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(u))});return}this._measureElement(i,void 0)},this.getVirtualItems=Qa(()=>[this.getIndexes(),this.getMeasurements()],(i,t)=>{const u=[];for(let c=0,l=i.length;cthis.options.debug}),this.getVirtualItemForOffset=i=>{const t=this.getMeasurements();if(t.length!==0)return ar(t[yi(0,t.length-1,u=>ar(t[u]).start,i)])},this.getOffsetForAlignment=(i,t)=>{const u=this.getSize(),c=this.getScrollOffset();t==="auto"&&(i<=c?t="start":i>=c+u?t="end":t="start"),t==="start"?i=i:t==="end"?i=i-u:t==="center"&&(i=i-u/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",P=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-u;return Math.max(Math.min(P,i),0)},this.getOffsetForIndex=(i,t="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const u=this.measurementsCache[i];if(!u)return;const c=this.getSize(),l=this.getScrollOffset();if(t==="auto")if(u.end>=l+c-this.options.scrollPaddingEnd)t="end";else if(u.start<=l+this.options.scrollPaddingStart)t="start";else return[l,t];const p=t==="end"?u.end+this.options.scrollPaddingEnd:u.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(p,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(i,{align:t="start",behavior:u}={})=>{this.cancelScrollToIndex(),u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,t),{adjustments:void 0,behavior:u})},this.scrollToIndex=(i,{align:t="auto",behavior:u}={})=>{i=Math.max(0,Math.min(i,this.options.count-1)),this.cancelScrollToIndex(),u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const c=this.getOffsetForIndex(i,t);if(!c)return;const[l,p]=c;this._scrollToOffset(l,{adjustments:void 0,behavior:u}),u!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(i))){const[m]=ar(this.getOffsetForIndex(i,p));$s(m,this.getScrollOffset())||this.scrollToIndex(i,{align:p,behavior:u})}else this.scrollToIndex(i,{align:p,behavior:u})}))},this.scrollBy=(i,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var i;const t=this.getMeasurements();let u;return t.length===0?u=this.options.paddingStart:u=this.options.lanes===1?((i=t[t.length-1])==null?void 0:i.end)??0:Math.max(...t.slice(-this.options.lanes).map(c=>c.end)),Math.max(u-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:t,behavior:u})=>{this.options.scrollToFn(i,{behavior:u,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(s)}}const yi=(a,s,i,t)=>{for(;a<=s;){const u=(a+s)/2|0,c=i(u);if(ct)s=u-1;else return u}return a>0?a-1:0};function ro({measurements:a,outerSize:s,scrollOffset:i}){const t=a.length-1,c=yi(0,t,p=>a[p].start,i);let l=c;for(;l({}),{})[1],i={...a,onChange:(u,c)=>{var l;c?ns.flushSync(s):s(),(l=a.onChange)==null||l.call(a,u,c)}},[t]=I.useState(()=>new to(i));return t.setOptions(i),I.useEffect(()=>t._didMount(),[]),io(()=>t._willUpdate()),t}function Tr(a){return so({observeElementRect:Zs,observeElementOffset:eo,scrollToFn:no,...a})}var wi={exports:{}},ur={exports:{}};(function(a,s){(function(i,t){t(s,I)})(es,function(i,t){function u(e,n,r,o,g,d,f){try{var v=e[d](f),C=v.value}catch(N){return void r(N)}v.done?n(C):Promise.resolve(C).then(o,g)}function c(e){return function(){var n=this,r=arguments;return new Promise(function(o,g){var d=e.apply(n,r);function f(C){u(d,o,g,f,v,"next",C)}function v(C){u(d,o,g,f,v,"throw",C)}f(void 0)})}}function l(){return(l=Object.assign||function(e){for(var n=1;n=0||(g[r]=e[r]);return g}function P(e){var n=function(r,o){if(typeof r!="object"||r===null)return r;var g=r[Symbol.toPrimitive];if(g!==void 0){var d=g.call(r,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(e,"string");return typeof n=="symbol"?n:String(n)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var m={init:"init"},R=function(e){var n=e.value;return n===void 0?"":n},k=function(){return t.createElement(t.Fragment,null," ")},b={Cell:R,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function S(){for(var e=arguments.length,n=new Array(e),r=0;r(d=typeof d=="number"?d:1/0)){var f=g;g=d,d=f}return e.filter(function(v){return n.some(function(C){var N=v.values[C];return N>=g&&N<=d})})};pn.autoRemove=function(e){return!e||typeof e[0]!="number"&&typeof e[1]!="number"};var va=Object.freeze({__proto__:null,text:On,exactText:Kn,exactTextCase:he,includes:jn,includesAll:Jn,includesSome:xe,includesValue:fn,exact:Ja,equals:$a,between:pn});m.resetFilters="resetFilters",m.setFilter="setFilter",m.setAllFilters="setAllFilters";var q=function(e){e.stateReducers.push(ba),e.useInstance.push(At)};function ba(e,n,r,o){if(n.type===m.init)return l({filters:[]},e);if(n.type===m.resetFilters)return l({},e,{filters:o.initialState.filters||[]});if(n.type===m.setFilter){var g=n.columnId,d=n.filterValue,f=o.allColumns,v=o.filterTypes,C=f.find(function(L){return L.id===g});if(!C)throw new Error("React-Table: Could not find a column with id: "+g);var N=be(C.filter,v||{},va),D=e.filters.find(function(L){return L.id===g}),T=A(d,D&&D.value);return Me(N.autoRemove,T,C)?l({},e,{filters:e.filters.filter(function(L){return L.id!==g})}):l({},e,D?{filters:e.filters.map(function(L){return L.id===g?{id:g,value:T}:L})}:{filters:[].concat(e.filters,[{id:g,value:T}])})}if(n.type===m.setAllFilters){var x=n.filters,_=o.allColumns,V=o.filterTypes;return l({},e,{filters:A(x,e.filters).filter(function(L){var F=_.find(function($){return $.id===L.id});return!Me(be(F.filter,V||{},va).autoRemove,L.value,F)})})}}function At(e){var n=e.data,r=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.filterTypes,v=e.manualFilters,C=e.defaultCanFilter,N=C!==void 0&&C,D=e.disableFilters,T=e.state.filters,x=e.dispatch,_=e.autoResetFilters,V=_===void 0||_,L=t.useCallback(function(O,ae){x({type:m.setFilter,columnId:O,filterValue:ae})},[x]),F=t.useCallback(function(O){x({type:m.setAllFilters,filters:O})},[x]);d.forEach(function(O){var ae=O.id,ue=O.accessor,Z=O.defaultCanFilter,ee=O.disableFilters;O.canFilter=ue?pe(ee!==!0&&void 0,D!==!0&&void 0,!0):pe(Z,N,!1),O.setFilter=function(ne){return L(O.id,ne)};var fe=T.find(function(ne){return ne.id===ae});O.filterValue=fe&&fe.value});var $=t.useMemo(function(){if(v||!T.length)return[r,o,g];var O=[],ae={};return[function ue(Z,ee){ee===void 0&&(ee=0);var fe=Z;return(fe=T.reduce(function(ne,ce){var me=ce.id,ye=ce.value,U=d.find(function(Pe){return Pe.id===me});if(!U)return ne;ee===0&&(U.preFilteredRows=ne);var de=be(U.filter,f||{},va);return de?(U.filteredRows=de(ne,[me],ye),U.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+U.id+"."),ne)},Z)).forEach(function(ne){O.push(ne),ae[ne.id]=ne,ne.subRows&&(ne.subRows=ne.subRows&&ne.subRows.length>0?ue(ne.subRows,ee+1):ne.subRows)}),fe}(r),O,ae]},[v,T,r,o,g,d,f]),se=$[0],J=$[1],E=$[2];t.useMemo(function(){d.filter(function(O){return!T.find(function(ae){return ae.id===O.id})}).forEach(function(O){O.preFilteredRows=se,O.filteredRows=se})},[se,T,d]);var re=B(V);W(function(){re()&&x({type:m.resetFilters})},[x,v?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:g,filteredRows:se,filteredFlatRows:J,filteredRowsById:E,rows:se,flatRows:J,rowsById:E,setFilter:L,setAllFilters:F})}q.pluginName="useFilters",m.resetGlobalFilter="resetGlobalFilter",m.setGlobalFilter="setGlobalFilter";var $n=function(e){e.stateReducers.push(Dt),e.useInstance.push(Et)};function Dt(e,n,r,o){if(n.type===m.resetGlobalFilter)return l({},e,{globalFilter:o.initialState.globalFilter||void 0});if(n.type===m.setGlobalFilter){var g=n.filterValue,d=o.userFilterTypes,f=be(o.globalFilter,d||{},va),v=A(g,e.globalFilter);return Me(f.autoRemove,v)?(e.globalFilter,p(e,["globalFilter"])):l({},e,{globalFilter:v})}}function Et(e){var n=e.data,r=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.filterTypes,v=e.globalFilter,C=e.manualGlobalFilter,N=e.state.globalFilter,D=e.dispatch,T=e.autoResetGlobalFilter,x=T===void 0||T,_=e.disableGlobalFilter,V=t.useCallback(function(E){D({type:m.setGlobalFilter,filterValue:E})},[D]),L=t.useMemo(function(){if(C||N===void 0)return[r,o,g];var E=[],re={},O=be(v,f||{},va);if(!O)return console.warn("Could not find a valid 'globalFilter' option."),r;d.forEach(function(ue){var Z=ue.disableGlobalFilter;ue.canFilter=pe(Z!==!0&&void 0,_!==!0&&void 0,!0)});var ae=d.filter(function(ue){return ue.canFilter===!0});return[function ue(Z){return(Z=O(Z,ae.map(function(ee){return ee.id}),N)).forEach(function(ee){E.push(ee),re[ee.id]=ee,ee.subRows=ee.subRows&&ee.subRows.length?ue(ee.subRows):ee.subRows}),Z}(r),E,re]},[C,N,v,f,d,r,o,g,_]),F=L[0],$=L[1],se=L[2],J=B(x);W(function(){J()&&D({type:m.resetGlobalFilter})},[D,C?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:g,globalFilteredRows:F,globalFilteredFlatRows:$,globalFilteredRowsById:se,rows:F,flatRows:$,rowsById:se,setGlobalFilter:V,disableGlobalFilter:_})}function Un(e,n){return n.reduce(function(r,o){return r+(typeof o=="number"?o:0)},0)}$n.pluginName="useGlobalFilter";var hn=Object.freeze({__proto__:null,sum:Un,min:function(e){var n=e[0]||0;return e.forEach(function(r){typeof r=="number"&&(n=Math.min(n,r))}),n},max:function(e){var n=e[0]||0;return e.forEach(function(r){typeof r=="number"&&(n=Math.max(n,r))}),n},minMax:function(e){var n=e[0]||0,r=e[0]||0;return e.forEach(function(o){typeof o=="number"&&(n=Math.min(n,o),r=Math.max(r,o))}),n+".."+r},average:function(e){return Un(0,e)/e.length},median:function(e){if(!e.length)return null;var n=Math.floor(e.length/2),r=[].concat(e).sort(function(o,g){return o-g});return e.length%2!=0?r[n]:(r[n-1]+r[n])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Ha=[],aa={};m.resetGroupBy="resetGroupBy",m.setGroupBy="setGroupBy",m.toggleGroupBy="toggleGroupBy";var na=function(e){e.getGroupByToggleProps=[yn],e.stateReducers.push(Ua),e.visibleColumnsDeps.push(function(n,r){var o=r.instance;return[].concat(n,[o.state.groupBy])}),e.visibleColumns.push(Yn),e.useInstance.push(Zn),e.prepareRow.push(wn)};na.pluginName="useGroupBy";var yn=function(e,n){var r=n.header;return[e,{onClick:r.canGroupBy?function(o){o.persist(),r.toggleGroupBy()}:void 0,style:{cursor:r.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Ua(e,n,r,o){if(n.type===m.init)return l({groupBy:[]},e);if(n.type===m.resetGroupBy)return l({},e,{groupBy:o.initialState.groupBy||[]});if(n.type===m.setGroupBy)return l({},e,{groupBy:n.value});if(n.type===m.toggleGroupBy){var g=n.columnId,d=n.value,f=d!==void 0?d:!e.groupBy.includes(g);return l({},e,f?{groupBy:[].concat(e.groupBy,[g])}:{groupBy:e.groupBy.filter(function(v){return v!==g})})}}function Yn(e,n){var r=n.instance.state.groupBy,o=r.map(function(d){return e.find(function(f){return f.id===d})}).filter(Boolean),g=e.filter(function(d){return!r.includes(d.id)});return(e=[].concat(o,g)).forEach(function(d){d.isGrouped=r.includes(d.id),d.groupedIndex=r.indexOf(d.id)}),e}var Xn={};function Zn(e){var n=e.data,r=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.flatHeaders,v=e.groupByFn,C=v===void 0?ze:v,N=e.manualGroupBy,D=e.aggregations,T=D===void 0?Xn:D,x=e.plugins,_=e.state.groupBy,V=e.dispatch,L=e.autoResetGroupBy,F=L===void 0||L,$=e.disableGroupBy,se=e.defaultCanGroupBy,J=e.getHooks;y(x,["useColumnOrder","useFilters"],"useGroupBy");var E=B(e);d.forEach(function(U){var de=U.accessor,Pe=U.defaultGroupBy,qe=U.disableGroupBy;U.canGroupBy=de?pe(U.canGroupBy,qe!==!0&&void 0,$!==!0&&void 0,!0):pe(U.canGroupBy,Pe,se,!1),U.canGroupBy&&(U.toggleGroupBy=function(){return e.toggleGroupBy(U.id)}),U.Aggregated=U.Aggregated||U.Cell});var re=t.useCallback(function(U,de){V({type:m.toggleGroupBy,columnId:U,value:de})},[V]),O=t.useCallback(function(U){V({type:m.setGroupBy,value:U})},[V]);f.forEach(function(U){U.getGroupByToggleProps=H(J().getGroupByToggleProps,{instance:E(),header:U})});var ae=t.useMemo(function(){if(N||!_.length)return[r,o,g,Ha,aa,o,g];var U=_.filter(function(ke){return d.find(function(Sa){return Sa.id===ke})}),de=[],Pe={},qe=[],Q={},Re=[],Be={},Oe=function ke(Sa,ca,br){if(ca===void 0&&(ca=0),ca===U.length)return Sa.map(function(wt){return l({},wt,{depth:ca})});var Jt=U[ca],Ji=C(Sa,Jt);return Object.entries(Ji).map(function(wt,$i){var Cr=wt[0],vt=wt[1],bt=Jt+":"+Cr,Rr=ke(vt,ca+1,bt=br?br+">"+bt:bt),Sr=ca?ge(vt,"leafRows"):vt,Ui=function(ta,$t,Xi){var Ct={};return d.forEach(function(Ie){if(U.includes(Ie.id))Ct[Ie.id]=$t[0]?$t[0].values[Ie.id]:null;else{var Nr=typeof Ie.aggregate=="function"?Ie.aggregate:T[Ie.aggregate]||hn[Ie.aggregate];if(Nr){var Zi=$t.map(function(Rt){return Rt.values[Ie.id]}),Qi=ta.map(function(Rt){var Ut=Rt.values[Ie.id];if(!Xi&&Ie.aggregateValue){var _r=typeof Ie.aggregateValue=="function"?Ie.aggregateValue:T[Ie.aggregateValue]||hn[Ie.aggregateValue];if(!_r)throw console.info({column:Ie}),new Error("React Table: Invalid column.aggregateValue option for column listed above");Ut=_r(Ut,Rt,Ie)}return Ut});Ct[Ie.id]=Nr(Qi,Zi)}else{if(Ie.aggregate)throw console.info({column:Ie}),new Error("React Table: Invalid column.aggregate option for column listed above");Ct[Ie.id]=null}}}),Ct}(Sr,vt,ca),Yi={id:bt,isGrouped:!0,groupByID:Jt,groupByVal:Cr,values:Ui,subRows:Rr,leafRows:Sr,depth:ca,index:$i};return Rr.forEach(function(ta){de.push(ta),Pe[ta.id]=ta,ta.isGrouped?(qe.push(ta),Q[ta.id]=ta):(Re.push(ta),Be[ta.id]=ta)}),Yi})}(r);return Oe.forEach(function(ke){de.push(ke),Pe[ke.id]=ke,ke.isGrouped?(qe.push(ke),Q[ke.id]=ke):(Re.push(ke),Be[ke.id]=ke)}),[Oe,de,Pe,qe,Q,Re,Be]},[N,_,r,o,g,d,T,C]),ue=ae[0],Z=ae[1],ee=ae[2],fe=ae[3],ne=ae[4],ce=ae[5],me=ae[6],ye=B(F);W(function(){ye()&&V({type:m.resetGroupBy})},[V,N?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:o,preGroupedRowsById:g,groupedRows:ue,groupedFlatRows:Z,groupedRowsById:ee,onlyGroupedFlatRows:fe,onlyGroupedRowsById:ne,nonGroupedFlatRows:ce,nonGroupedRowsById:me,rows:ue,flatRows:Z,rowsById:ee,toggleGroupBy:re,setGroupBy:O})}function wn(e){e.allCells.forEach(function(n){var r;n.isGrouped=n.column.isGrouped&&n.column.id===e.groupByID,n.isPlaceholder=!n.isGrouped&&n.column.isGrouped,n.isAggregated=!n.isGrouped&&!n.isPlaceholder&&((r=e.subRows)==null?void 0:r.length)})}function ze(e,n){return e.reduce(function(r,o,g){var d=""+o.values[n];return r[d]=Array.isArray(r[d])?r[d]:[],r[d].push(o),r},{})}var Qn=/([0-9]+)/gm;function Ve(e,n){return e===n?0:e>n?1:-1}function Ee(e,n,r){return[e.values[r],n.values[r]]}function Ta(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}var Ya=Object.freeze({__proto__:null,alphanumeric:function(e,n,r){var o=Ee(e,n,r),g=o[0],d=o[1];for(g=Ta(g),d=Ta(d),g=g.split(Qn).filter(Boolean),d=d.split(Qn).filter(Boolean);g.length&&d.length;){var f=g.shift(),v=d.shift(),C=parseInt(f,10),N=parseInt(v,10),D=[C,N].sort();if(isNaN(D[0])){if(f>v)return 1;if(v>f)return-1}else{if(isNaN(D[1]))return isNaN(C)?-1:1;if(C>N)return 1;if(N>C)return-1}}return g.length-d.length},datetime:function(e,n,r){var o=Ee(e,n,r),g=o[0],d=o[1];return Ve(g=g.getTime(),d=d.getTime())},basic:function(e,n,r){var o=Ee(e,n,r);return Ve(o[0],o[1])},string:function(e,n,r){var o=Ee(e,n,r),g=o[0],d=o[1];for(g=g.split("").filter(Boolean),d=d.split("").filter(Boolean);g.length&&d.length;){var f=g.shift(),v=d.shift(),C=f.toLowerCase(),N=v.toLowerCase();if(C>N)return 1;if(N>C)return-1;if(f>v)return 1;if(v>f)return-1}return g.length-d.length},number:function(e,n,r){var o=Ee(e,n,r),g=o[0],d=o[1],f=/[^0-9.]/gi;return Ve(g=Number(String(g).replace(f,"")),d=Number(String(d).replace(f,"")))}});m.resetSortBy="resetSortBy",m.setSortBy="setSortBy",m.toggleSortBy="toggleSortBy",m.clearSortBy="clearSortBy",b.sortType="alphanumeric",b.sortDescFirst=!1;var Ca=function(e){e.getSortByToggleProps=[et],e.stateReducers.push(Wt),e.useInstance.push(Gt)};Ca.pluginName="useSortBy";var et=function(e,n){var r=n.instance,o=n.column,g=r.isMultiSortEvent,d=g===void 0?function(f){return f.shiftKey}:g;return[e,{onClick:o.canSort?function(f){f.persist(),o.toggleSortBy(void 0,!r.disableMultiSort&&d(f))}:void 0,style:{cursor:o.canSort?"pointer":void 0},title:o.canSort?"Toggle SortBy":void 0}]};function Wt(e,n,r,o){if(n.type===m.init)return l({sortBy:[]},e);if(n.type===m.resetSortBy)return l({},e,{sortBy:o.initialState.sortBy||[]});if(n.type===m.clearSortBy)return l({},e,{sortBy:e.sortBy.filter(function(E){return E.id!==n.columnId})});if(n.type===m.setSortBy)return l({},e,{sortBy:n.sortBy});if(n.type===m.toggleSortBy){var g,d=n.columnId,f=n.desc,v=n.multi,C=o.allColumns,N=o.disableMultiSort,D=o.disableSortRemove,T=o.disableMultiRemove,x=o.maxMultiSortColCount,_=x===void 0?Number.MAX_SAFE_INTEGER:x,V=e.sortBy,L=C.find(function(E){return E.id===d}).sortDescFirst,F=V.find(function(E){return E.id===d}),$=V.findIndex(function(E){return E.id===d}),se=f!=null,J=[];return(g=!N&&v?F?"toggle":"add":$!==V.length-1||V.length!==1?"replace":F?"toggle":"replace")!="toggle"||D||se||v&&T||!(F&&F.desc&&!L||!F.desc&&L)||(g="remove"),g==="replace"?J=[{id:d,desc:se?f:L}]:g==="add"?(J=[].concat(V,[{id:d,desc:se?f:L}])).splice(0,J.length-_):g==="toggle"?J=V.map(function(E){return E.id===d?l({},E,{desc:se?f:!F.desc}):E}):g==="remove"&&(J=V.filter(function(E){return E.id!==d})),l({},e,{sortBy:J})}}function Gt(e){var n=e.data,r=e.rows,o=e.flatRows,g=e.allColumns,d=e.orderByFn,f=d===void 0?at:d,v=e.sortTypes,C=e.manualSortBy,N=e.defaultCanSort,D=e.disableSortBy,T=e.flatHeaders,x=e.state.sortBy,_=e.dispatch,V=e.plugins,L=e.getHooks,F=e.autoResetSortBy,$=F===void 0||F;y(V,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var se=t.useCallback(function(Z){_({type:m.setSortBy,sortBy:Z})},[_]),J=t.useCallback(function(Z,ee,fe){_({type:m.toggleSortBy,columnId:Z,desc:ee,multi:fe})},[_]),E=B(e);T.forEach(function(Z){var ee=Z.accessor,fe=Z.canSort,ne=Z.disableSortBy,ce=Z.id,me=ee?pe(ne!==!0&&void 0,D!==!0&&void 0,!0):pe(N,fe,!1);Z.canSort=me,Z.canSort&&(Z.toggleSortBy=function(U,de){return J(Z.id,U,de)},Z.clearSortBy=function(){_({type:m.clearSortBy,columnId:Z.id})}),Z.getSortByToggleProps=H(L().getSortByToggleProps,{instance:E(),column:Z});var ye=x.find(function(U){return U.id===ce});Z.isSorted=!!ye,Z.sortedIndex=x.findIndex(function(U){return U.id===ce}),Z.isSortedDesc=Z.isSorted?ye.desc:void 0});var re=t.useMemo(function(){if(C||!x.length)return[r,o];var Z=[],ee=x.filter(function(fe){return g.find(function(ne){return ne.id===fe.id})});return[function fe(ne){var ce=f(ne,ee.map(function(me){var ye=g.find(function(Pe){return Pe.id===me.id});if(!ye)throw new Error("React-Table: Could not find a column with id: "+me.id+" while sorting");var U=ye.sortType,de=Ne(U)||(v||{})[U]||Ya[U];if(!de)throw new Error("React-Table: Could not find a valid sortType of '"+U+"' for column '"+me.id+"'.");return function(Pe,qe){return de(Pe,qe,me.id,me.desc)}}),ee.map(function(me){var ye=g.find(function(U){return U.id===me.id});return ye&&ye.sortInverted?me.desc:!me.desc}));return ce.forEach(function(me){Z.push(me),me.subRows&&me.subRows.length!==0&&(me.subRows=fe(me.subRows))}),ce}(r),Z]},[C,x,r,o,g,f,v]),O=re[0],ae=re[1],ue=B($);W(function(){ue()&&_({type:m.resetSortBy})},[C?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:O,sortedFlatRows:ae,rows:O,flatRows:ae,setSortBy:se,toggleSortBy:J})}function at(e,n,r){return[].concat(e).sort(function(o,g){for(var d=0;de.pageIndex?v=g===-1?d.length>=e.pageSize:f-1),v?l({},e,{pageIndex:f}):e}if(n.type===m.setPageSize){var C=n.pageSize,N=e.pageSize*e.pageIndex;return l({},e,{pageIndex:Math.floor(N/C),pageSize:C})}}function Lt(e){var n=e.rows,r=e.autoResetPage,o=r===void 0||r,g=e.manualExpandedKey,d=g===void 0?"expanded":g,f=e.plugins,v=e.pageCount,C=e.paginateExpandedRows,N=C===void 0||C,D=e.expandSubRows,T=D===void 0||D,x=e.state,_=x.pageSize,V=x.pageIndex,L=x.expanded,F=x.globalFilter,$=x.filters,se=x.groupBy,J=x.sortBy,E=e.dispatch,re=e.data,O=e.manualPagination;y(f,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var ae=B(o);W(function(){ae()&&E({type:m.resetPage})},[E,O?null:re,F,$,se,J]);var ue=O?v:Math.ceil(n.length/_),Z=t.useMemo(function(){return ue>0?[].concat(new Array(ue)).fill(null).map(function(de,Pe){return Pe}):[]},[ue]),ee=t.useMemo(function(){var de;if(O)de=n;else{var Pe=_*V,qe=Pe+_;de=n.slice(Pe,qe)}return N?de:we(de,{manualExpandedKey:d,expanded:L,expandSubRows:T})},[T,L,d,O,V,_,N,n]),fe=V>0,ne=ue===-1?ee.length>=_:V-1&&d.push(g.splice(C,1)[0])};g.length&&o.length;)f();return[].concat(d,g)}function ki(e){var n=e.dispatch;e.setColumnOrder=t.useCallback(function(r){return n({type:m.setColumnOrder,columnOrder:r})},[n])}ga.pluginName="useColumnOrder",b.canResize=!0,m.columnStartResizing="columnStartResizing",m.columnResizing="columnResizing",m.columnDoneResizing="columnDoneResizing",m.resetResize="resetResize";var pr=function(e){e.getResizerProps=[Ai],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Di),e.useInstance.push(Wi),e.useInstanceBeforeDimensions.push(Ei)},Ai=function(e,n){var r=n.instance,o=n.header,g=r.dispatch,d=function(f,v){var C=!1;if(f.type==="touchstart"){if(f.touches&&f.touches.length>1)return;C=!0}var N,D,T=function(J){var E=[];return function re(O){O.columns&&O.columns.length&&O.columns.map(re),E.push(O)}(J),E}(v).map(function(J){return[J.id,J.totalWidth]}),x=C?Math.round(f.touches[0].clientX):f.clientX,_=function(){window.cancelAnimationFrame(N),N=null,g({type:m.columnDoneResizing})},V=function(){window.cancelAnimationFrame(N),N=null,g({type:m.columnResizing,clientX:D})},L=function(J){D=J,N||(N=window.requestAnimationFrame(V))},F={mouse:{moveEvent:"mousemove",moveHandler:function(J){return L(J.clientX)},upEvent:"mouseup",upHandler:function(J){document.removeEventListener("mousemove",F.mouse.moveHandler),document.removeEventListener("mouseup",F.mouse.upHandler),_()}},touch:{moveEvent:"touchmove",moveHandler:function(J){return J.cancelable&&(J.preventDefault(),J.stopPropagation()),L(J.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(J){document.removeEventListener(F.touch.moveEvent,F.touch.moveHandler),document.removeEventListener(F.touch.upEvent,F.touch.moveHandler),_()}}},$=C?F.touch:F.mouse,se=!!function(){if(typeof Qe=="boolean")return Qe;var J=!1;try{var E={get passive(){return J=!0,!1}};window.addEventListener("test",null,E),window.removeEventListener("test",null,E)}catch{J=!1}return Qe=J}()&&{passive:!1};document.addEventListener($.moveEvent,$.moveHandler,se),document.addEventListener($.upEvent,$.upHandler,se),g({type:m.columnStartResizing,columnId:v.id,columnWidth:v.totalWidth,headerIdWidths:T,clientX:x})};return[e,{onMouseDown:function(f){return f.persist()||d(f,o)},onTouchStart:function(f){return f.persist()||d(f,o)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Di(e,n){if(n.type===m.init)return l({columnResizing:{columnWidths:{}}},e);if(n.type===m.resetResize)return l({},e,{columnResizing:{columnWidths:{}}});if(n.type===m.columnStartResizing){var r=n.clientX,o=n.columnId,g=n.columnWidth,d=n.headerIdWidths;return l({},e,{columnResizing:l({},e.columnResizing,{startX:r,headerIdWidths:d,columnWidth:g,isResizingColumn:o})})}if(n.type===m.columnResizing){var f=n.clientX,v=e.columnResizing,C=v.startX,N=v.columnWidth,D=v.headerIdWidths,T=(f-C)/N,x={};return(D===void 0?[]:D).forEach(function(_){var V=_[0],L=_[1];x[V]=Math.max(L+L*T,0)}),l({},e,{columnResizing:l({},e.columnResizing,{columnWidths:l({},e.columnResizing.columnWidths,{},x)})})}return n.type===m.columnDoneResizing?l({},e,{columnResizing:l({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}pr.pluginName="useResizeColumns";var Ei=function(e){var n=e.flatHeaders,r=e.disableResizing,o=e.getHooks,g=e.state.columnResizing,d=B(e);n.forEach(function(f){var v=pe(f.disableResizing!==!0&&void 0,r!==!0&&void 0,!0);f.canResize=v,f.width=g.columnWidths[f.id]||f.originalWidth||f.width,f.isResizing=g.isResizingColumn===f.id,v&&(f.getResizerProps=H(o().getResizerProps,{instance:d(),header:f}))})};function Wi(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,g=o===void 0||o,d=e.columns;y(n,["useAbsoluteLayout"],"useResizeColumns");var f=B(g);W(function(){f()&&r({type:m.resetResize})},[d]);var v=t.useCallback(function(){return r({type:m.resetResize})},[r]);Object.assign(e,{resetResizing:v})}var zt={position:"absolute",top:0},hr=function(e){e.getTableBodyProps.push(yt),e.getRowProps.push(yt),e.getHeaderGroupProps.push(yt),e.getFooterGroupProps.push(yt),e.getHeaderProps.push(function(n,r){var o=r.column;return[n,{style:l({},zt,{left:o.totalLeft+"px",width:o.totalWidth+"px"})}]}),e.getCellProps.push(function(n,r){var o=r.cell;return[n,{style:l({},zt,{left:o.column.totalLeft+"px",width:o.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(n,r){var o=r.column;return[n,{style:l({},zt,{left:o.totalLeft+"px",width:o.totalWidth+"px"})}]})};hr.pluginName="useAbsoluteLayout";var yt=function(e,n){return[e,{style:{position:"relative",width:n.instance.totalColumnsWidth+"px"}}]},qt={display:"inline-block",boxSizing:"border-box"},Ot=function(e,n){return[e,{style:{display:"flex",width:n.instance.totalColumnsWidth+"px"}}]},yr=function(e){e.getRowProps.push(Ot),e.getHeaderGroupProps.push(Ot),e.getFooterGroupProps.push(Ot),e.getHeaderProps.push(function(n,r){var o=r.column;return[n,{style:l({},qt,{width:o.totalWidth+"px"})}]}),e.getCellProps.push(function(n,r){var o=r.cell;return[n,{style:l({},qt,{width:o.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(n,r){var o=r.column;return[n,{style:l({},qt,{width:o.totalWidth+"px"})}]})};function wr(e){e.getTableProps.push(Gi),e.getRowProps.push(Kt),e.getHeaderGroupProps.push(Kt),e.getFooterGroupProps.push(Kt),e.getHeaderProps.push(Li),e.getCellProps.push(Fi),e.getFooterProps.push(zi)}yr.pluginName="useBlockLayout",wr.pluginName="useFlexLayout";var Gi=function(e,n){return[e,{style:{minWidth:n.instance.totalColumnsMinWidth+"px"}}]},Kt=function(e,n){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:n.instance.totalColumnsMinWidth+"px"}}]},Li=function(e,n){var r=n.column;return[e,{style:{boxSizing:"border-box",flex:r.totalFlexWidth?r.totalFlexWidth+" 0 auto":void 0,minWidth:r.totalMinWidth+"px",width:r.totalWidth+"px"}}]},Fi=function(e,n){var r=n.cell;return[e,{style:{boxSizing:"border-box",flex:r.column.totalFlexWidth+" 0 auto",minWidth:r.column.totalMinWidth+"px",width:r.column.totalWidth+"px"}}]},zi=function(e,n){var r=n.column;return[e,{style:{boxSizing:"border-box",flex:r.totalFlexWidth?r.totalFlexWidth+" 0 auto":void 0,minWidth:r.totalMinWidth+"px",width:r.totalWidth+"px"}}]};function vr(e){e.stateReducers.push(ji),e.getTableProps.push(qi),e.getHeaderProps.push(Oi),e.getRowProps.push(Ki)}m.columnStartResizing="columnStartResizing",m.columnResizing="columnResizing",m.columnDoneResizing="columnDoneResizing",m.resetResize="resetResize",vr.pluginName="useGridLayout";var qi=function(e,n){var r=n.instance;return[e,{style:{display:"grid",gridTemplateColumns:r.visibleColumns.map(function(o){var g;return r.state.gridLayout.columnWidths[o.id]?r.state.gridLayout.columnWidths[o.id]+"px":(g=r.state.columnResizing)!=null&&g.isResizingColumn?r.state.gridLayout.startWidths[o.id]+"px":typeof o.width=="number"?o.width+"px":o.width}).join(" ")}}]},Oi=function(e,n){var r=n.column;return[e,{id:"header-cell-"+r.id,style:{position:"sticky",gridColumn:"span "+r.totalVisibleHeaderCount}}]},Ki=function(e,n){var r=n.row;return r.isExpanded?[e,{style:{gridColumn:"1 / "+(r.cells.length+1)}}]:[e,{}]};function ji(e,n,r,o){if(n.type===m.init)return l({gridLayout:{columnWidths:{}}},e);if(n.type===m.resetResize)return l({},e,{gridLayout:{columnWidths:{}}});if(n.type===m.columnStartResizing){var g=n.columnId,d=n.headerIdWidths,f=jt(g);if(f!==void 0){var v=o.visibleColumns.reduce(function(E,re){var O;return l({},E,((O={})[re.id]=jt(re.id),O))},{}),C=o.visibleColumns.reduce(function(E,re){var O;return l({},E,((O={})[re.id]=re.minWidth,O))},{}),N=o.visibleColumns.reduce(function(E,re){var O;return l({},E,((O={})[re.id]=re.maxWidth,O))},{}),D=d.map(function(E){var re=E[0];return[re,jt(re)]});return l({},e,{gridLayout:l({},e.gridLayout,{startWidths:v,minWidths:C,maxWidths:N,headerIdGridWidths:D,columnWidth:f})})}return e}if(n.type===m.columnResizing){var T=n.clientX,x=e.columnResizing.startX,_=e.gridLayout,V=_.columnWidth,L=_.minWidths,F=_.maxWidths,$=_.headerIdGridWidths,se=(T-x)/V,J={};return($===void 0?[]:$).forEach(function(E){var re=E[0],O=E[1];J[re]=Math.min(Math.max(L[re],O+O*se),F[re])}),l({},e,{gridLayout:l({},e.gridLayout,{columnWidths:l({},e.gridLayout.columnWidths,{},J)})})}return n.type===m.columnDoneResizing?l({},e,{gridLayout:l({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function jt(e){var n,r=(n=document.getElementById("header-cell-"+e))==null?void 0:n.offsetWidth;if(r!==void 0)return r}i._UNSTABLE_usePivotColumns=vn,i.actions=m,i.defaultColumn=b,i.defaultGroupByFn=ze,i.defaultOrderByFn=at,i.defaultRenderer=R,i.emptyRenderer=k,i.ensurePluginOrder=y,i.flexRender=te,i.functionalUpdate=A,i.loopHooks=h,i.makePropGetter=H,i.makeRenderer=G,i.reduceHooks=M,i.safeUseLayoutEffect=j,i.useAbsoluteLayout=hr,i.useAsyncDebounce=function(e,n){n===void 0&&(n=0);var r=t.useRef({}),o=B(e),g=B(n);return t.useCallback(function(){var d=c(regeneratorRuntime.mark(function f(){var v,C,N,D=arguments;return regeneratorRuntime.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:for(v=D.length,C=new Array(v),N=0;N1?n-1:0),o=1;o(a.Filter="Filter",a.Grouped="Grouped",a.Cell="Cell",a.Expandable="Expandable",a.RepeatedValue="RepeatedValue",a.PopIn="PopIn",a.Popover="Popover",a.Header="Header",a.Aggregated="Aggregated",a))(Ke||{});const uo={packageName:"@ui5/webcomponents-react",fileName:"Resizer.module.css",content:"@layer ui5-webcomponents-react{._resizer_1toqu_1{cursor:col-resize;display:inline-block;height:100%;inset-block-end:0;inset-block-start:0;position:absolute;width:3px;z-index:1}._resizer_1toqu_1:active,._resizer_1toqu_1:hover{background-color:var(--sapContent_DragAndDropActiveColor)}}"},mo={resizer:"_resizer_1toqu_1"},go="sort-ascending",co="M353 128H161l17-32h158zm47 96H113l16-32h255zM82 288h351l15 32H65zm-48 96h446l15 32H17z",fo=!1,po=mi,ho="SAP-icons-v4",yo="@ui5/webcomponents-icons";Bt(go,{pathData:co,ltr:fo,accData:po,collection:ho,packageName:yo});const wo="sort-ascending",vo="M486 403H26q-11 0-18.5-7T0 378t7.5-18.5T26 352h460q11 0 18.5 7.5T512 378t-7.5 18-18.5 7zm-64-128H90q-11 0-18.5-7T64 250t7.5-18.5T90 224h332q11 0 18.5 7.5T448 250t-7.5 18-18.5 7zm-64-128H154q-11 0-18.5-7t-7.5-18 7.5-18.5T154 96h204q11 0 18.5 7.5T384 122t-7.5 18-18.5 7z",bo=!1,Co=mi,Ro="SAP-icons-v5",So="@ui5/webcomponents-icons";Bt(wo,{pathData:vo,ltr:bo,accData:Co,collection:Ro,packageName:So});const vi="sort-ascending",No="sort-descending",_o="M17 96h478l-15 32H34zm431 96l-15 32H82l-17-32h383zm-335 96h287l-16 32H129zm48 96h192l-16 32H177z",Po=!1,Bo=gi,Io="SAP-icons-v4",Mo="@ui5/webcomponents-icons";Bt(No,{pathData:_o,ltr:Po,accData:Bo,collection:Io,packageName:Mo});const Ho="sort-descending",To="M486 96q11 0 18.5 7.5T512 122t-7.5 18-18.5 7H26q-11 0-18.5-7T0 122t7.5-18.5T26 96h460zm-64 128q11 0 18.5 7.5T448 250t-7.5 18-18.5 7H90q-11 0-18.5-7T64 250t7.5-18.5T90 224h332zm-64 128q11 0 18.5 7.5T384 378t-7.5 18-18.5 7H154q-11 0-18.5-7t-7.5-18 7.5-18.5T154 352h204z",xo=!1,Vo=gi,ko="SAP-icons-v5",Ao="@ui5/webcomponents-icons";Bt(Ho,{pathData:To,ltr:xo,accData:Vo,collection:ko,packageName:Ao});const bi="sort-descending",Do={packageName:"@ui5/webcomponents-react",fileName:"ColumnHeader.module.css",content:"@layer ui5-webcomponents-react{._thContainer_1aj9t_1:first-child>[role=columnheader]{border-inline-start:var(--_ui5wcr-AnalyticalTable-OuterCellBorder)}._thContainer_1aj9t_1:last-child>[role=columnheader]{border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterCellBorder)}._verticalEndBorder_1aj9t_11:last-child>[role=columnheader]{border-inline-end:1px solid var(--sapList_BorderColor)}._header_1aj9t_15{align-items:center;box-sizing:border-box;color:inherit;display:flex;font-family:var(--_ui5wcr-AnalyticalTable-HeaderFontFamily);font-size:var(--sapFontSize);font-weight:400;height:100%;max-width:100%;overflow-x:hidden;overflow-y:hidden;position:relative;text-align:start;text-overflow:ellipsis;white-space:nowrap;width:100%}._header_1aj9t_15>span{overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._text_1aj9t_42{color:inherit;cursor:inherit;font-family:inherit;text-align:start;width:100%}._iconContainer_1aj9t_50{color:var(--sapContent_IconColor);display:flex;inset-inline-end:.5rem;position:absolute}._iconContainer_1aj9t_50>[ui5-icon]:not(:first-child){margin-inline-start:.125rem}._selectAllCheckBoxContainer_1aj9t_61{display:flex;justify-content:center}}"},xa={thContainer:"_thContainer_1aj9t_1",verticalEndBorder:"_verticalEndBorder_1aj9t_11",header:"_header_1aj9t_15",text:"_text_1aj9t_42",iconContainer:"_iconContainer_1aj9t_50",selectAllCheckBoxContainer:"_selectAllCheckBoxContainer_1aj9t_61"},Aa=a=>{ma(Do,Aa.displayName);const{id:s,children:i,column:t,columnId:u,className:c,style:l,onDragEnter:p,onDragOver:P,onDragStart:m,onDrop:R,onDragEnd:k,headerTooltip:b,isDraggable:S,dragOver:H,role:M,virtualColumn:h,columnVirtualizer:y,isRtl:A,visibleColumnIndex:B,onClick:j,onKeyDown:W,onKeyUp:G,isFiltered:te,title:K,"aria-label":oe,"aria-sort":z,showVerticalEndBorder:Y}=a,ie=h.index,[le,pe]=I.useState(!1),Ne=I.useRef(null),ge=typeof i=="string",we=b||(ge?i:null),be=(()=>{let ve=0;const Fe={};return t.hAlign&&(Fe.textAlign=t.hAlign.toLowerCase()),t.isSorted&&ve++,t.isGrouped&&ve++,te&&ve++,ve===0||(ve>0&&(ve+=.625),Fe.marginInlineEnd=`${ve}rem`),Fe})(),Me=t.canGroupBy||t.canSort||t.canFilter,Ue=ve=>{typeof j=="function"&&j(ve),Me&&pe(!0)},Qe=A?{right:0,transform:`translateX(-${h.start}px)`}:{left:0,transform:`translateX(${h.start}px)`},ea=ve=>{typeof W=="function"&&W(ve),Me&&ve.code==="Enter"&&pe(!0),ve.code==="Space"&&ve.preventDefault()},ra=ve=>{typeof G=="function"&&G(ve),Me&&ve.code==="Space"&&!ve.target.hasAttribute("ui5-li")&&pe(!0)};return t?w.jsx("div",{ref:Ne,className:da(xa.thContainer,Y&&xa.verticalEndBorder),style:{position:"absolute",insetBlockStart:0,width:`${h.size}px`,...Qe},children:w.jsxs("div",{ref:y.measureElement,"data-visible-column-index":B,"data-visible-row-index":0,"data-row-index":0,"data-column-index":ie,tabIndex:-1,id:s,className:c,style:{...l,borderInlineStart:H?`3px solid ${mr.sapSelectedColor}`:void 0},"aria-haspopup":Me?"menu":void 0,role:M,draggable:S,onDragEnter:p,onDragOver:P,onDragStart:m,onDrop:R,onDragEnd:k,"data-column-id":u,onClick:Ue,onKeyDown:ea,onKeyUp:ra,"aria-label":oe,"aria-sort":z,title:K,children:[w.jsxs("div",{className:da(xa.header,u==="__ui5wcr__internal_selection_column"&&xa.selectAllCheckBoxContainer),"data-h-align":t.hAlign,"data-component-name":`AnalyticalTableHeaderContentContainer-${u}`,children:[ge?w.jsx(sa,{title:we,maxLines:1,style:be,className:xa.text,"data-component-name":`AnalyticalTableHeaderTextContentContainer-${u}`,children:i}):w.jsx("span",{title:we,style:be,className:xa.text,"data-component-name":`AnalyticalTableHeaderContentContainer-${u}`,children:i}),w.jsxs("div",{className:xa.iconContainer,"data-component-name":`AnalyticalTableHeaderIconsContainer-${u}`,children:[te&&w.jsx(nn,{name:hi,"aria-hidden":!0}),t.isSorted&&w.jsx(nn,{name:t.isSortedDesc?bi:vi,"aria-hidden":!0}),t.isGrouped&&w.jsx(nn,{name:di,"aria-hidden":!0})]})]}),Me&&le&&t.render(Ke.Popover,{popoverProps:{openerRef:Ne,setOpen:pe}})]})}):null};Aa.displayName="ColumnHeader";try{Aa.displayName="ColumnHeader",Aa.__docgenInfo={description:"",displayName:"ColumnHeader",props:{visibleColumnIndex:{defaultValue:null,description:"",name:"visibleColumnIndex",required:!0,type:{name:"number"}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!0,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!0,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!0,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!0,type:{name:"DragEventHandler"}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!0,type:{name:"DragEventHandler"}},dragOver:{defaultValue:null,description:"",name:"dragOver",required:!0,type:{name:"boolean"}},isDraggable:{defaultValue:null,description:"",name:"isDraggable",required:!0,type:{name:"boolean"}},headerTooltip:{defaultValue:null,description:"",name:"headerTooltip",required:!0,type:{name:"string"}},virtualColumn:{defaultValue:null,description:"",name:"virtualColumn",required:!0,type:{name:"VirtualItem"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},columnId:{defaultValue:null,description:"",name:"columnId",required:!1,type:{name:"string"}},showVerticalEndBorder:{defaultValue:null,description:"",name:"showVerticalEndBorder",required:!0,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!0,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"MouseEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"CSSProperties"}},column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"ColumnType"}},role:{defaultValue:null,description:"",name:"role",required:!0,type:{name:"string"}},isFiltered:{defaultValue:null,description:"",name:"isFiltered",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}}}}}catch{}try{Aa.displayName="ColumnHeader",Aa.__docgenInfo={description:"",displayName:"ColumnHeader",props:{visibleColumnIndex:{defaultValue:null,description:"",name:"visibleColumnIndex",required:!0,type:{name:"number"}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!0,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!0,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!0,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!0,type:{name:"DragEventHandler"}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!0,type:{name:"DragEventHandler"}},dragOver:{defaultValue:null,description:"",name:"dragOver",required:!0,type:{name:"boolean"}},isDraggable:{defaultValue:null,description:"",name:"isDraggable",required:!0,type:{name:"boolean"}},headerTooltip:{defaultValue:null,description:"",name:"headerTooltip",required:!0,type:{name:"string"}},virtualColumn:{defaultValue:null,description:"",name:"virtualColumn",required:!0,type:{name:"VirtualItem"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},columnId:{defaultValue:null,description:"",name:"columnId",required:!1,type:{name:"string"}},showVerticalEndBorder:{defaultValue:null,description:"",name:"showVerticalEndBorder",required:!0,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!0,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"MouseEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"CSSProperties"}},column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"ColumnType"}},role:{defaultValue:null,description:"",name:"role",required:!0,type:{name:"string"}},isFiltered:{defaultValue:null,description:"",name:"isFiltered",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}}}}}catch{}const on=I.forwardRef((a,s)=>{const{headerProps:i,headerGroup:t,resizeInfo:u,isRtl:c,columnVirtualizer:l,uniqueId:p,showVerticalEndBorder:P}=a;ma(uo,"Resizer");const{key:m,...R}=i;return w.jsx("div",{...R,style:{width:`${l.getTotalSize()}px`},ref:s,"data-component-name":"AnalyticalTableHeaderRow",children:l.getVirtualItems().map((k,b)=>{const S=t.headers[k.index];if(!S)return null;const H=!S.disableResizing&&k.index+1===t.headers.length,M=c?{right:`${S.totalFlexWidth+S.totalLeft-(H?3:0)}px`,transform:"translateX(50%)"}:{left:`${S.totalFlexWidth+S.totalLeft-(H?3:0)}px`,transform:"translateX(-50%)"},{key:h,...y}=S.getHeaderProps();return w.jsxs(I.Fragment,{children:[S.canResize&&S.getResizerProps&&w.jsx("div",{...S.getResizerProps(),"data-resizer":!0,"data-component-name":"AnalyticalTableResizer",className:mo.resizer,style:M}),w.jsx(Aa,{...y,showVerticalEndBorder:P,id:`${p}${(y==null?void 0:y.id)??""}`,columnId:y.id,visibleColumnIndex:b,headerTooltip:S.headerTooltip,isDraggable:!S.disableDragAndDrop&&!u.isResizingColumn,virtualColumn:k,columnVirtualizer:l,isRtl:c,children:S.render(Ke.Header)})]},h)})},m)});on.displayName="ColumnHeaderContainer";try{on.displayName="ColumnHeaderContainer",on.__docgenInfo={description:"",displayName:"ColumnHeaderContainer",props:{headerProps:{defaultValue:null,description:"",name:"headerProps",required:!0,type:{name:"Record"}},headerGroup:{defaultValue:null,description:"",name:"headerGroup",required:!0,type:{name:"Record"}},resizeInfo:{defaultValue:null,description:"",name:"resizeInfo",required:!0,type:{name:"Record"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},uniqueId:{defaultValue:null,description:"",name:"uniqueId",required:!0,type:{name:"string"}},showVerticalEndBorder:{defaultValue:null,description:"",name:"showVerticalEndBorder",required:!0,type:{name:"boolean"}}}}}catch{}try{on.displayName="ColumnHeaderContainer",on.__docgenInfo={description:"",displayName:"ColumnHeaderContainer",props:{headerProps:{defaultValue:null,description:"",name:"headerProps",required:!0,type:{name:"Record"}},headerGroup:{defaultValue:null,description:"",name:"headerGroup",required:!0,type:{name:"Record"}},resizeInfo:{defaultValue:null,description:"",name:"resizeInfo",required:!0,type:{name:"Record"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},uniqueId:{defaultValue:null,description:"",name:"uniqueId",required:!0,type:{name:"string"}},showVerticalEndBorder:{defaultValue:null,description:"",name:"showVerticalEndBorder",required:!0,type:{name:"boolean"}}}}}catch{}const kn=({column:a})=>{const s=I.useCallback(t=>{a.setFilter(t.target.value||void 0)},[a.setFilter]),i=t=>{t.key!=="Enter"&&Pt(t)};return w.jsx(Is,{onInput:s,value:a.filterValue??"",showClearIcon:!0,onKeyDown:i})};try{kn.displayName="DefaultFilterComponent",kn.__docgenInfo={description:"",displayName:"DefaultFilterComponent",props:{}}}catch{}try{kn.displayName="DefaultFilterComponent",kn.__docgenInfo={description:"",displayName:"DefaultFilterComponent",props:{}}}catch{}const An=({cell:{value:a="",isGrouped:s},column:i,row:t,webComponentsReactProperties:u})=>{let c=`${a??""}`;return s&&(c+=` (${t.subRows.length})`),w.jsx("span",{title:c,className:u.classes.tableText,"data-column-id-cell-text":i.id,children:c})};try{An.displayName="Cell",An.__docgenInfo={description:"",displayName:"Cell",props:{cell:{defaultValue:null,description:"",name:"cell",required:!0,type:{name:"{ value?: string; isGrouped: any; }"}},column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"any"}},row:{defaultValue:null,description:"",name:"row",required:!0,type:{name:"any"}},webComponentsReactProperties:{defaultValue:null,description:"",name:"webComponentsReactProperties",required:!0,type:{name:"any"}}}}}catch{}try{An.displayName="Cell",An.__docgenInfo={description:"",displayName:"Cell",props:{cell:{defaultValue:null,description:"",name:"cell",required:!0,type:{name:"{ value?: string; isGrouped: any; }"}},column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"any"}},row:{defaultValue:null,description:"",name:"row",required:!0,type:{name:"any"}},webComponentsReactProperties:{defaultValue:null,description:"",name:"webComponentsReactProperties",required:!0,type:{name:"any"}}}}}catch{}const Eo={packageName:"@ui5/webcomponents-react",fileName:"ColumnHeaderModal.module.css",content:"@layer ui5-webcomponents-react{._popover_1cy5y_1{font-weight:400}._popover_1cy5y_1::part(content){padding:0}._filterIcon_1cy5y_9{color:var(--sapContent_NonInteractiveIconColor);padding-inline-end:.5rem}._filterText_1cy5y_14{overflow:visible;padding-inline-end:.5rem}}"},nr={popover:"_popover_1cy5y_1",filterIcon:"_filterIcon_1cy5y_9",filterText:"_filterText_1cy5y_14"},Da=a=>{const{setOpen:s,openerRef:i}=a.popoverProps,{column:t,state:u,webComponentsReactProperties:c}=a,{isRtl:l,groupBy:p}=u,{onGroup:P,onSort:m}=c;ma(Eo,Da.displayName);const R=t.canFilter,k=t.canGroupBy,b=t.canSort,S=I.useRef(null),H=I.useRef(null),{Filter:M}=t,h=dr("@ui5/webcomponents-react"),y=h.getText(ts),A=h.getText(rs),B=h.getText(is),j=h.getText(ss),W=h.getText(os),G=h.getText(ls),te=I.useMemo(()=>{if(R)return{iconDimensions:`var(${Pr("--_ui5_list_item_icon_size")})`,fontSize:`var(${Pr("--_ui5_list_item_title_size")})`}},[R]),K=ge=>{const we=ge.detail.item.getAttribute("data-sort");switch(we){case"asc":t.toggleSortBy(!1,!!t.enableMultiSort),typeof m=="function"&&m(Xe(ge,{column:t,sortDirection:we}));break;case"desc":t.toggleSortBy(!0,!!t.enableMultiSort),typeof m=="function"&&m(Xe(ge,{column:t,sortDirection:we}));break;case"clear":t.clearSortBy(),typeof m=="function"&&m(Xe(ge,{column:t,sortDirection:we}));break;case"group":{const be=!t.isGrouped;t.toggleGroupBy(be);let Me;be?Me=[...p,t.id]:Me=p.filter(Ue=>Ue!==t.id),typeof P=="function"&&P(Xe(ge,{column:t,groupedColumns:Me,isGrouped:be}));break}}s(!1)},oe=t.isSorted&&t.isSortedDesc===!1,z=t.isSorted&&t.isSortedDesc===!0,Y=ge=>{Pt(ge),s(!1)},ie=()=>{var ge,we,be;(be=(we=(ge=H.current)==null?void 0:ge.children)==null?void 0:we[0])==null||be.focus()},le=(()=>{switch(t.hAlign){case Le.Begin:return l?fa.End:fa.Start;case Le.End:return l?fa.Start:fa.End;case Le.Left:return fa.Start;case Le.Right:return fa.End;case Le.Center:return fa.Center;default:return l?fa.End:fa.Start}})(),pe=ge=>{ge.key==="Enter"&&s(!1)},Ne=ge=>{ge.key!=="Escape"&&Pt(ge)};return I.useEffect(()=>{open&&S.current&&i.current&&customElements.whenDefined(Hs("ui5-popover")).then(()=>{S.current.opener=i.current,S.current.open=!0})},[open]),w.jsx(Vs,{hideArrow:!0,horizontalAlign:le,placement:Ms.Bottom,ref:S,className:nr.popover,onClick:Pt,onClose:Y,onOpen:ie,"data-component-name":"ATHeaderPopover",children:w.jsxs(Ts,{onItemClick:K,ref:H,onKeyDown:Ne,"data-component-name":"ATHeaderPopoverList",children:[oe&&w.jsx(Sn,{type:Za.Active,icon:Br,"data-sort":"clear",children:y}),b&&!oe&&w.jsx(Sn,{type:Za.Active,icon:vi,"data-sort":"asc",children:A}),b&&!z&&w.jsx(Sn,{type:Za.Active,icon:bi,"data-sort":"desc",children:B}),z&&w.jsx(Sn,{type:Za.Active,icon:Br,"data-sort":"clear",children:y}),R&&w.jsx(xs,{type:Za.Inactive,onKeyDown:pe,accessibleName:G,children:w.jsxs(oa,{alignItems:en.Center,children:[w.jsx(nn,{name:hi,className:nr.filterIcon,"aria-hidden":!0,style:{minWidth:te.iconDimensions,minHeight:te.iconDimensions}}),w.jsx(sa,{maxLines:1,className:nr.filterText,style:{fontSize:te.fontSize},children:G}),w.jsx(M,{column:t,popoverRef:S})]})}),k&&w.jsx(Sn,{type:Za.Active,icon:di,"data-sort":"group",children:t.isGrouped?W:j})]})})};Da.displayName="ColumnHeaderModal";try{Da.displayName="ColumnHeaderModal",Da.__docgenInfo={description:"",displayName:"ColumnHeaderModal",props:{allColumns:{defaultValue:null,description:"",name:"allColumns",required:!1,type:{name:"ColumnType[]"}},allColumnsHidden:{defaultValue:null,description:"",name:"allColumnsHidden",required:!1,type:{name:"boolean"}},columns:{defaultValue:null,description:"",name:"columns",required:!1,type:{name:"ColumnType[]"}},data:{defaultValue:null,description:"",name:"data",required:!1,type:{name:"Record[]"}},defaultColumn:{defaultValue:null,description:"",name:"defaultColumn",required:!1,type:{name:"Record"}},disableFilters:{defaultValue:null,description:"",name:"disableFilters",required:!1,type:{name:"boolean"}},disableGlobalFilter:{defaultValue:null,description:"",name:"disableGlobalFilter",required:!1,type:{name:"boolean"}},disableGroupBy:{defaultValue:null,description:"",name:"disableGroupBy",required:!1,type:{name:"boolean"}},disableSortBy:{defaultValue:null,description:"",name:"disableSortBy",required:!1,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!1,type:{name:"(action: any) => void"}},expandedDepth:{defaultValue:null,description:"",name:"expandedDepth",required:!1,type:{name:"number"}},expandedRows:{defaultValue:null,description:"",name:"expandedRows",required:!1,type:{name:"RowType[]"}},filteredFlatRows:{defaultValue:null,description:"",name:"filteredFlatRows",required:!1,type:{name:"RowType[]"}},filteredRows:{defaultValue:null,description:"",name:"filteredRows",required:!1,type:{name:"RowType[]"}},filteredRowsById:{defaultValue:null,description:"",name:"filteredRowsById",required:!1,type:{name:"Record"}},flatHeaders:{defaultValue:null,description:"",name:"flatHeaders",required:!1,type:{name:"ColumnType[]"}},flatRows:{defaultValue:null,description:"",name:"flatRows",required:!1,type:{name:"RowType[]"}},footerGroups:{defaultValue:null,description:"",name:"footerGroups",required:!1,type:{name:"Record[]"}},getHooks:{defaultValue:null,description:"",name:"getHooks",required:!1,type:{name:"() => any[]"}},getRowId:{defaultValue:null,description:"",name:"getRowId",required:!1,type:{name:"(row: RowType, index: number, parent?: any) => string"}},getSubRows:{defaultValue:null,description:"",name:"getSubRows",required:!1,type:{name:"(row: RowType, relativeIndex?: number) => RowType[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!1,type:{name:"any"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!1,type:{name:"any"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!1,type:{name:"any"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!1,type:{name:"any"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!1,type:{name:"any"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!1,type:{name:"any"}},globalFilteredFlatRows:{defaultValue:null,description:"",name:"globalFilteredFlatRows",required:!1,type:{name:"RowType[]"}},globalFilteredRows:{defaultValue:null,description:"",name:"globalFilteredRows",required:!1,type:{name:"RowType[]"}},globalFilteredRowsById:{defaultValue:null,description:"",name:"globalFilteredRowsById",required:!1,type:{name:"Record"}},groupedFlatRows:{defaultValue:null,description:"",name:"groupedFlatRows",required:!1,type:{name:"RowType[]"}},groupedRows:{defaultValue:null,description:"",name:"groupedRows",required:!1,type:{name:"RowType[]"}},groupedRowsById:{defaultValue:null,description:"",name:"groupedRowsById",required:!1,type:{name:"Record"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!1,type:{name:"Record[]"}},headers:{defaultValue:null,description:"",name:"headers",required:!1,type:{name:"ColumnType[]"}},initialRows:{defaultValue:null,description:"",name:"initialRows",required:!1,type:{name:"RowType[]"}},initialState:{defaultValue:null,description:"",name:"initialState",required:!1,type:{name:"Record"}},isAllPageRowsSelected:{defaultValue:null,description:"",name:"isAllPageRowsSelected",required:!1,type:{name:"boolean"}},isAllRowsExpanded:{defaultValue:null,description:"",name:"isAllRowsExpanded",required:!1,type:{name:"boolean"}},isAllRowsSelected:{defaultValue:null,description:"",name:"isAllRowsSelected",required:!1,type:{name:"boolean"}},nonGroupedFlatRows:{defaultValue:null,description:"",name:"nonGroupedFlatRows",required:!1,type:{name:"RowType[]"}},nonGroupedRowsById:{defaultValue:null,description:"",name:"nonGroupedRowsById",required:!1,type:{name:"Record"}},onlyGroupedFlatRows:{defaultValue:null,description:"",name:"onlyGroupedFlatRows",required:!1,type:{name:"RowType[]"}},onlyGroupedRowsById:{defaultValue:null,description:"",name:"onlyGroupedRowsById",required:!1,type:{name:"Record"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"any[]"}},preExpandedRows:{defaultValue:null,description:"",name:"preExpandedRows",required:!1,type:{name:"RowType[]"}},preFilteredFlatRows:{defaultValue:null,description:"",name:"preFilteredFlatRows",required:!1,type:{name:"RowType[]"}},preFilteredRows:{defaultValue:null,description:"",name:"preFilteredRows",required:!1,type:{name:"RowType[]"}},preFilteredRowsById:{defaultValue:null,description:"",name:"preFilteredRowsById",required:!1,type:{name:"Record"}},preGlobalFilteredFlatRows:{defaultValue:null,description:"",name:"preGlobalFilteredFlatRows",required:!1,type:{name:"RowType[]"}},preGlobalFilteredRows:{defaultValue:null,description:"",name:"preGlobalFilteredRows",required:!1,type:{name:"RowType[]"}},preGlobalFilteredRowsById:{defaultValue:null,description:"",name:"preGlobalFilteredRowsById",required:!1,type:{name:"Record"}},preGroupedFlatRow:{defaultValue:null,description:"",name:"preGroupedFlatRow",required:!1,type:{name:"RowType[]"}},preGroupedRows:{defaultValue:null,description:"",name:"preGroupedRows",required:!1,type:{name:"RowType[]"}},preGroupedRowsById:{defaultValue:null,description:"",name:"preGroupedRowsById",required:!1,type:{name:"Record"}},preSortedFlatRows:{defaultValue:null,description:"",name:"preSortedFlatRows",required:!1,type:{name:"RowType[]"}},preSortedRows:{defaultValue:null,description:"",name:"preSortedRows",required:!1,type:{name:"RowType[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!1,type:{name:"(row: RowType) => void"}},resetResizing:{defaultValue:null,description:"",name:"resetResizing",required:!1,type:{name:"any"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"RowType[]"}},rowsById:{defaultValue:null,description:"",name:"rowsById",required:!1,type:{name:"Record"}},selectSubRows:{defaultValue:null,description:"",name:"selectSubRows",required:!1,type:{name:"boolean"}},selectedFlatRows:{defaultValue:null,description:"",name:"selectedFlatRows",required:!1,type:{name:"RowType[]"}},setAllFilters:{defaultValue:null,description:"",name:"setAllFilters",required:!1,type:{name:"(filtersObjectArray: Record[]) => void"}},setColumnOrder:{defaultValue:null,description:"",name:"setColumnOrder",required:!1,type:{name:"any"}},setFilter:{defaultValue:null,description:"",name:"setFilter",required:!1,type:{name:"(columnId: string, filterValue: string) => void"}},setGlobalFilter:{defaultValue:null,description:"",name:"setGlobalFilter",required:!1,type:{name:"(filterValue: string) => void"}},setGroupBy:{defaultValue:null,description:"",name:"setGroupBy",required:!1,type:{name:"(columnIds: string[]) => void"}},setHiddenColumns:{defaultValue:null,description:"",name:"setHiddenColumns",required:!1,type:{name:"(columnIds: string[]) => void"}},setSortBy:{defaultValue:null,description:"",name:"setSortBy",required:!1,type:{name:"any"}},sortTypes:{defaultValue:null,description:"",name:"sortTypes",required:!1,type:{name:"Record"}},sortedFlatRows:{defaultValue:null,description:"",name:"sortedFlatRows",required:!1,type:{name:"Record[]"}},sortedRows:{defaultValue:null,description:"",name:"sortedRows",required:!1,type:{name:"Record[]"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"AnalyticalTableState & Record"}},stateReducer:{defaultValue:null,description:"",name:"stateReducer",required:!1,type:{name:"(state: AnalyticalTableState & Record, action: any, _prevState: AnalyticalTableState & Record, instance: TableInstance) => AnalyticalTableState & Record<...>"}},toggleAllPageRowsSelected:{defaultValue:null,description:"",name:"toggleAllPageRowsSelected",required:!1,type:{name:"(selected?: boolean) => void"}},toggleAllRowsExpanded:{defaultValue:null,description:"",name:"toggleAllRowsExpanded",required:!1,type:{name:"(expanded?: boolean) => void"}},toggleAllRowsSelected:{defaultValue:null,description:"",name:"toggleAllRowsSelected",required:!1,type:{name:"(selected?: boolean) => void"}},toggleGroupBy:{defaultValue:null,description:"",name:"toggleGroupBy",required:!1,type:{name:"(columnId: string, value: boolean) => void"}},toggleHideAllColumns:{defaultValue:null,description:"",name:"toggleHideAllColumns",required:!1,type:{name:"(hidden?: boolean) => void"}},toggleHideColumn:{defaultValue:null,description:"",name:"toggleHideColumn",required:!1,type:{name:"(columnId: string, hidden?: boolean) => void"}},toggleRowExpanded:{defaultValue:null,description:"",name:"toggleRowExpanded",required:!1,type:{name:"(rowPath: string, expanded?: boolean) => void"}},toggleRowSelected:{defaultValue:null,description:"",name:"toggleRowSelected",required:!1,type:{name:"(rowPath: string, selected?: boolean) => void"}},toggleSortBy:{defaultValue:null,description:"",name:"toggleSortBy",required:!1,type:{name:"(columnId: string, desc: boolean, multi?: boolean) => void"}},totalColumnsMaxWidth:{defaultValue:null,description:"",name:"totalColumnsMaxWidth",required:!1,type:{name:"number"}},totalColumnsMinWidth:{defaultValue:null,description:"",name:"totalColumnsMinWidth",required:!1,type:{name:"number"}},totalColumnsWidth:{defaultValue:null,description:"",name:"totalColumnsWidth",required:!1,type:{name:"number"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!1,type:{name:"any"}},virtualRowsRange:{defaultValue:null,description:"",name:"virtualRowsRange",required:!1,type:{name:"{ startIndex: number; endIndex: number; }"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!1,type:{name:"ColumnType[]"}},visibleColumnsWidth:{defaultValue:null,description:"",name:"visibleColumnsWidth",required:!1,type:{name:"number[]"}},webComponentsReactProperties:{defaultValue:null,description:"",name:"webComponentsReactProperties",required:!1,type:{name:"WCRPropertiesType"}}}}}catch{}try{Da.displayName="ColumnHeaderModal",Da.__docgenInfo={description:"",displayName:"ColumnHeaderModal",props:{allColumns:{defaultValue:null,description:"",name:"allColumns",required:!1,type:{name:"ColumnType[]"}},allColumnsHidden:{defaultValue:null,description:"",name:"allColumnsHidden",required:!1,type:{name:"boolean"}},columns:{defaultValue:null,description:"",name:"columns",required:!1,type:{name:"ColumnType[]"}},data:{defaultValue:null,description:"",name:"data",required:!1,type:{name:"Record[]"}},defaultColumn:{defaultValue:null,description:"",name:"defaultColumn",required:!1,type:{name:"Record"}},disableFilters:{defaultValue:null,description:"",name:"disableFilters",required:!1,type:{name:"boolean"}},disableGlobalFilter:{defaultValue:null,description:"",name:"disableGlobalFilter",required:!1,type:{name:"boolean"}},disableGroupBy:{defaultValue:null,description:"",name:"disableGroupBy",required:!1,type:{name:"boolean"}},disableSortBy:{defaultValue:null,description:"",name:"disableSortBy",required:!1,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!1,type:{name:"(action: any) => void"}},expandedDepth:{defaultValue:null,description:"",name:"expandedDepth",required:!1,type:{name:"number"}},expandedRows:{defaultValue:null,description:"",name:"expandedRows",required:!1,type:{name:"RowType[]"}},filteredFlatRows:{defaultValue:null,description:"",name:"filteredFlatRows",required:!1,type:{name:"RowType[]"}},filteredRows:{defaultValue:null,description:"",name:"filteredRows",required:!1,type:{name:"RowType[]"}},filteredRowsById:{defaultValue:null,description:"",name:"filteredRowsById",required:!1,type:{name:"Record"}},flatHeaders:{defaultValue:null,description:"",name:"flatHeaders",required:!1,type:{name:"ColumnType[]"}},flatRows:{defaultValue:null,description:"",name:"flatRows",required:!1,type:{name:"RowType[]"}},footerGroups:{defaultValue:null,description:"",name:"footerGroups",required:!1,type:{name:"Record[]"}},getHooks:{defaultValue:null,description:"",name:"getHooks",required:!1,type:{name:"() => any[]"}},getRowId:{defaultValue:null,description:"",name:"getRowId",required:!1,type:{name:"(row: RowType, index: number, parent?: any) => string"}},getSubRows:{defaultValue:null,description:"",name:"getSubRows",required:!1,type:{name:"(row: RowType, relativeIndex?: number) => RowType[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!1,type:{name:"any"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!1,type:{name:"any"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!1,type:{name:"any"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!1,type:{name:"any"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!1,type:{name:"any"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!1,type:{name:"any"}},globalFilteredFlatRows:{defaultValue:null,description:"",name:"globalFilteredFlatRows",required:!1,type:{name:"RowType[]"}},globalFilteredRows:{defaultValue:null,description:"",name:"globalFilteredRows",required:!1,type:{name:"RowType[]"}},globalFilteredRowsById:{defaultValue:null,description:"",name:"globalFilteredRowsById",required:!1,type:{name:"Record"}},groupedFlatRows:{defaultValue:null,description:"",name:"groupedFlatRows",required:!1,type:{name:"RowType[]"}},groupedRows:{defaultValue:null,description:"",name:"groupedRows",required:!1,type:{name:"RowType[]"}},groupedRowsById:{defaultValue:null,description:"",name:"groupedRowsById",required:!1,type:{name:"Record"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!1,type:{name:"Record[]"}},headers:{defaultValue:null,description:"",name:"headers",required:!1,type:{name:"ColumnType[]"}},initialRows:{defaultValue:null,description:"",name:"initialRows",required:!1,type:{name:"RowType[]"}},initialState:{defaultValue:null,description:"",name:"initialState",required:!1,type:{name:"Record"}},isAllPageRowsSelected:{defaultValue:null,description:"",name:"isAllPageRowsSelected",required:!1,type:{name:"boolean"}},isAllRowsExpanded:{defaultValue:null,description:"",name:"isAllRowsExpanded",required:!1,type:{name:"boolean"}},isAllRowsSelected:{defaultValue:null,description:"",name:"isAllRowsSelected",required:!1,type:{name:"boolean"}},nonGroupedFlatRows:{defaultValue:null,description:"",name:"nonGroupedFlatRows",required:!1,type:{name:"RowType[]"}},nonGroupedRowsById:{defaultValue:null,description:"",name:"nonGroupedRowsById",required:!1,type:{name:"Record"}},onlyGroupedFlatRows:{defaultValue:null,description:"",name:"onlyGroupedFlatRows",required:!1,type:{name:"RowType[]"}},onlyGroupedRowsById:{defaultValue:null,description:"",name:"onlyGroupedRowsById",required:!1,type:{name:"Record"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"any[]"}},preExpandedRows:{defaultValue:null,description:"",name:"preExpandedRows",required:!1,type:{name:"RowType[]"}},preFilteredFlatRows:{defaultValue:null,description:"",name:"preFilteredFlatRows",required:!1,type:{name:"RowType[]"}},preFilteredRows:{defaultValue:null,description:"",name:"preFilteredRows",required:!1,type:{name:"RowType[]"}},preFilteredRowsById:{defaultValue:null,description:"",name:"preFilteredRowsById",required:!1,type:{name:"Record"}},preGlobalFilteredFlatRows:{defaultValue:null,description:"",name:"preGlobalFilteredFlatRows",required:!1,type:{name:"RowType[]"}},preGlobalFilteredRows:{defaultValue:null,description:"",name:"preGlobalFilteredRows",required:!1,type:{name:"RowType[]"}},preGlobalFilteredRowsById:{defaultValue:null,description:"",name:"preGlobalFilteredRowsById",required:!1,type:{name:"Record"}},preGroupedFlatRow:{defaultValue:null,description:"",name:"preGroupedFlatRow",required:!1,type:{name:"RowType[]"}},preGroupedRows:{defaultValue:null,description:"",name:"preGroupedRows",required:!1,type:{name:"RowType[]"}},preGroupedRowsById:{defaultValue:null,description:"",name:"preGroupedRowsById",required:!1,type:{name:"Record"}},preSortedFlatRows:{defaultValue:null,description:"",name:"preSortedFlatRows",required:!1,type:{name:"RowType[]"}},preSortedRows:{defaultValue:null,description:"",name:"preSortedRows",required:!1,type:{name:"RowType[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!1,type:{name:"(row: RowType) => void"}},resetResizing:{defaultValue:null,description:"",name:"resetResizing",required:!1,type:{name:"any"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"RowType[]"}},rowsById:{defaultValue:null,description:"",name:"rowsById",required:!1,type:{name:"Record"}},selectSubRows:{defaultValue:null,description:"",name:"selectSubRows",required:!1,type:{name:"boolean"}},selectedFlatRows:{defaultValue:null,description:"",name:"selectedFlatRows",required:!1,type:{name:"RowType[]"}},setAllFilters:{defaultValue:null,description:"",name:"setAllFilters",required:!1,type:{name:"(filtersObjectArray: Record[]) => void"}},setColumnOrder:{defaultValue:null,description:"",name:"setColumnOrder",required:!1,type:{name:"any"}},setFilter:{defaultValue:null,description:"",name:"setFilter",required:!1,type:{name:"(columnId: string, filterValue: string) => void"}},setGlobalFilter:{defaultValue:null,description:"",name:"setGlobalFilter",required:!1,type:{name:"(filterValue: string) => void"}},setGroupBy:{defaultValue:null,description:"",name:"setGroupBy",required:!1,type:{name:"(columnIds: string[]) => void"}},setHiddenColumns:{defaultValue:null,description:"",name:"setHiddenColumns",required:!1,type:{name:"(columnIds: string[]) => void"}},setSortBy:{defaultValue:null,description:"",name:"setSortBy",required:!1,type:{name:"any"}},sortTypes:{defaultValue:null,description:"",name:"sortTypes",required:!1,type:{name:"Record"}},sortedFlatRows:{defaultValue:null,description:"",name:"sortedFlatRows",required:!1,type:{name:"Record[]"}},sortedRows:{defaultValue:null,description:"",name:"sortedRows",required:!1,type:{name:"Record[]"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"AnalyticalTableState & Record"}},stateReducer:{defaultValue:null,description:"",name:"stateReducer",required:!1,type:{name:"(state: AnalyticalTableState & Record, action: any, _prevState: AnalyticalTableState & Record, instance: TableInstance) => AnalyticalTableState & Record<...>"}},toggleAllPageRowsSelected:{defaultValue:null,description:"",name:"toggleAllPageRowsSelected",required:!1,type:{name:"(selected?: boolean) => void"}},toggleAllRowsExpanded:{defaultValue:null,description:"",name:"toggleAllRowsExpanded",required:!1,type:{name:"(expanded?: boolean) => void"}},toggleAllRowsSelected:{defaultValue:null,description:"",name:"toggleAllRowsSelected",required:!1,type:{name:"(selected?: boolean) => void"}},toggleGroupBy:{defaultValue:null,description:"",name:"toggleGroupBy",required:!1,type:{name:"(columnId: string, value: boolean) => void"}},toggleHideAllColumns:{defaultValue:null,description:"",name:"toggleHideAllColumns",required:!1,type:{name:"(hidden?: boolean) => void"}},toggleHideColumn:{defaultValue:null,description:"",name:"toggleHideColumn",required:!1,type:{name:"(columnId: string, hidden?: boolean) => void"}},toggleRowExpanded:{defaultValue:null,description:"",name:"toggleRowExpanded",required:!1,type:{name:"(rowPath: string, expanded?: boolean) => void"}},toggleRowSelected:{defaultValue:null,description:"",name:"toggleRowSelected",required:!1,type:{name:"(rowPath: string, selected?: boolean) => void"}},toggleSortBy:{defaultValue:null,description:"",name:"toggleSortBy",required:!1,type:{name:"(columnId: string, desc: boolean, multi?: boolean) => void"}},totalColumnsMaxWidth:{defaultValue:null,description:"",name:"totalColumnsMaxWidth",required:!1,type:{name:"number"}},totalColumnsMinWidth:{defaultValue:null,description:"",name:"totalColumnsMinWidth",required:!1,type:{name:"number"}},totalColumnsWidth:{defaultValue:null,description:"",name:"totalColumnsWidth",required:!1,type:{name:"number"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!1,type:{name:"any"}},virtualRowsRange:{defaultValue:null,description:"",name:"virtualRowsRange",required:!1,type:{name:"{ startIndex: number; endIndex: number; }"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!1,type:{name:"ColumnType[]"}},visibleColumnsWidth:{defaultValue:null,description:"",name:"visibleColumnsWidth",required:!1,type:{name:"number[]"}},webComponentsReactProperties:{defaultValue:null,description:"",name:"webComponentsReactProperties",required:!1,type:{name:"WCRPropertiesType"}}}}}catch{}const Wo={packageName:"@ui5/webcomponents-react",fileName:"Expandable.module.css",content:"@layer ui5-webcomponents-react{._container_n3fi0_1{flex-shrink:0;height:var(--_ui5wcr-AnalyticalTableExpandButtonHeight);margin-inline-end:.125rem}._icon_n3fi0_7{align-items:center;color:var(--sapContent_IconColor);display:flex;height:100%;width:100%}._icon_n3fi0_7::part(root){height:var(--_ui5wcr-AnalyticalTableExpandIconHeight);padding:.375rem;width:var(--_ui5wcr-AnalyticalTableExpandIconHeight)}._button_n3fi0_20{color:var(--sapTextColor);font-size:.75rem;height:100%}._nonExpandableCellSpacer_n3fi0_26{flex-shrink:0;width:var(--_ui5wcr-AnalyticalTableExpandIndicatorWidth)}._withExpandableButton_n3fi0_31{margin-inline-end:.5rem}}"},Nn={container:"_container_n3fi0_1",icon:"_icon_n3fi0_7",button:"_button_n3fi0_20",nonExpandableCellSpacer:"_nonExpandableCellSpacer_n3fi0_26",withExpandableButton:"_withExpandableButton_n3fi0_31"},Go=a=>{switch(a){case 0:return"0px";case 1:return St.ui5WcrAnalyticalTableTreePaddingLevel1;case 2:return St.ui5WcrAnalyticalTableTreePaddingLevel2;case 3:return St.ui5WcrAnalyticalTableTreePaddingLevel3;default:return`calc(${St.ui5WcrAnalyticalTableTreePaddingLevel3} + ${a-3}rem * 0.5)`}},Ea=a=>{const{cell:s,row:i,column:t,visibleColumns:u,webComponentsReactProperties:c}=a,{renderRowSubComponent:l,alwaysShowSubComponent:p,translatableTexts:P}=c,m=As();ma(Wo,Ea.displayName);const R=m==="sap_horizon"||m==="sap_horizon_dark",b=u.filter(({id:h})=>h!=="__ui5wcr__internal_selection_column"&&h!=="__ui5wcr__internal_highlight_column"&&h!=="__ui5wcr__internal_navigation_column").findIndex(h=>h.id===t.id),S=Go(i.depth),H=i.getToggleRowExpandedProps(),M=typeof l=="function"&&!!l(i)&&!p;return w.jsxs(w.Fragment,{children:[b===0&&w.jsx(w.Fragment,{children:i.canExpand||M?w.jsx("span",{title:i.isExpanded?P.collapseNodeA11yText:P.expandNodeA11yText,style:{...H.style,paddingInlineStart:S},className:Nn.container,"aria-label":i.isExpanded?P.collapseA11yText:P.expandA11yText,children:R?w.jsx(ka,{tabIndex:-1,icon:i.isExpanded?or:lr,design:ks.Transparent,onClick:H.onClick,className:Nn.button}):w.jsx(nn,{tabIndex:-1,onClick:H.onClick,mode:Bs.Interactive,name:i.isExpanded?or:lr,"data-component-name":"AnalyticalTableExpandIcon",className:Nn.icon})}):w.jsx("span",{style:{paddingInlineStart:S},"data-component-name":"AnalyticalTableNonExpandableCellSpacer",className:da(Nn.nonExpandableCellSpacer,R&&Nn.withExpandableButton)})}),s.render(Ke.Cell)]})};Ea.displayName="Expandable";try{Ea.displayName="Expandable",Ea.__docgenInfo={description:"",displayName:"Expandable",props:{}}}catch{}try{Ea.displayName="Expandable",Ea.__docgenInfo={description:"",displayName:"Expandable",props:{}}}catch{}const Lo={color:"var(--sapContent_IconColor)",height:"0.75rem",width:"0.75rem",padding:"0.625rem",display:"block"},Dn=a=>{const{cell:s,row:i,webComponentsReactProperties:t}=a,{translatableTexts:u}=t,c={};return s.column.hAlign&&(s.column.hAlign!==Le.Left||s.column.hAlign!==Le.Begin)&&(c.marginRight="auto"),w.jsxs(w.Fragment,{children:[w.jsx("span",{...i.getToggleRowExpandedProps({style:c,column:s.column}),title:i.isExpanded?u.collapseNodeA11yText:u.expandNodeA11yText,children:w.jsx(nn,{name:i.isExpanded?or:lr,style:Lo})}),s.render(Ke.Cell)]})};try{Dn.displayName="Grouped",Dn.__docgenInfo={description:"",displayName:"Grouped",props:{}}}catch{}try{Dn.displayName="Grouped",Dn.__docgenInfo={description:"",displayName:"Grouped",props:{}}}catch{}const Fo={packageName:"@ui5/webcomponents-react",fileName:"PopIn.module.css",content:"@layer ui5-webcomponents-react{._container_11kfy_1{width:100%}._defaultCell_11kfy_5>:first-child{padding-block-start:.25rem}._header_11kfy_9{color:var(--sapContent_LabelColor);height:16px}}"},tr={container:"_container_11kfy_1",defaultCell:"_defaultCell_11kfy_5",header:"_header_11kfy_9"},Wa=a=>{var l;const{state:s,contentToRender:i,cell:t,row:u,internalRowHeight:c}=a;return ma(Fo,Wa.displayName),w.jsxs(oa,{direction:an.Column,className:tr.container,children:[w.jsx(oa,{alignItems:i!==Ke.Grouped&&i!==Ke.Expandable?en.Start:en.Center,wrap:as.NoWrap,className:tr.defaultCell,style:{height:c},children:t.render(i)}),i!==Ke.Grouped&&((l=s.popInColumns)==null?void 0:l.map(p=>{var k;const P=u.allCells.find(b=>b.column.id===p.id),m=()=>p.column.PopInHeader?typeof p.column.PopInHeader=="function"?p.column.PopInHeader({...a,...P}):p.column.PopInHeader:typeof p.column.Header=="function"?Ae.makeRenderer({...a,...P},p.column)(p.column.Header):p.column.Header,R=()=>{var b;if((b=p.column)!=null&&b.Cell){const S=p.column.Cell;return typeof S=="string"?w.jsx(sa,{maxLines:1,title:S,children:S}):Ae.makeRenderer({...a,...P,isPopIn:!0},p.column)(p.column.Cell)}return P!=null&&P.value?w.jsx(sa,{maxLines:1,title:P.value,children:P.value}):null};return w.jsxs(oa,{direction:an.Column,children:[((k=p.column)==null?void 0:k.Header)&&w.jsxs("div",{className:tr.header,children:[m(),":"]}),w.jsx("div",{style:{height:c},children:P&&R()})]},p.id)}))]})};Wa.displayName="PopIn";try{Wa.displayName="PopIn",Wa.__docgenInfo={description:"",displayName:"PopIn",props:{}}}catch{}try{Wa.displayName="PopIn",Wa.__docgenInfo={description:"",displayName:"PopIn",props:{}}}catch{}const zo=()=>null,rn=60,qo={Filter:kn,minWidth:rn,vAlign:Vn.Middle,Grouped:Dn,Cell:An,Expandable:Ea,RepeatedValue:zo,PopIn:Wa,Popover:Da},Oo={packageName:"@ui5/webcomponents-react",fileName:"TablePlaceholder.module.css",content:"@layer ui5-webcomponents-react{@keyframes _placeholderShimmer_162vo_1{0%{background-position-x:100%}to{background-position-x:0}}._animation_162vo_10{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:_placeholderShimmer_162vo_1;animation-timing-function:linear;background-image:var(--sapContent_Placeholderloading_Gradient);background-repeat:no-repeat;background-size:1000px 104px}._row_162vo_21{align-items:center;display:flex;height:var(--_ui5wcr-AnalyticalTableRowHeight)}._cellContainer_162vo_27{box-sizing:border-box;display:flex;padding-inline:.25rem}._cell_162vo_27{border-radius:var(--sapElement_BorderCornerRadius);height:var(--sapFontSize);width:60%}}"},Nt={animation:"_animation_162vo_10",placeholderShimmer:"_placeholderShimmer_162vo_1",row:"_row_162vo_21",cellContainer:"_cellContainer_162vo_27",cell:"_cell_162vo_27"},Ko=a=>Array.from(Array(a).keys()),Ga=a=>{const{columns:s,rows:i=5,style:t}=a;return ma(Oo,Ga.displayName),w.jsx("div",{style:{backgroundColor:mr.sapList_Background,width:"100%",...t},"data-component-name":"AnalyticalTableLoadingPlaceholder",children:Ko(i).map((u,c)=>w.jsx("div",{className:Nt.row,children:s.map(l=>w.jsx("div",{className:Nt.cellContainer,style:{width:l.totalWidth,...pi(l)},children:w.jsx("div",{className:da(Nt.cell,Nt.animation)})},`row${c}-${l.id}`))},`row-${c}`))})};Ga.displayName="TablePlaceholder";try{Ga.displayName="TablePlaceholder",Ga.__docgenInfo={description:"",displayName:"TablePlaceholder",props:{columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"number"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"CSSProperties"}}}}}catch{}try{Ga.displayName="TablePlaceholder",Ga.__docgenInfo={description:"",displayName:"TablePlaceholder",props:{columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"number"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"CSSProperties"}}}}}catch{}const En=({noDataText:a,className:s,style:i})=>w.jsx("div",{className:s,style:i,children:a});try{En.displayName="DefaultNoDataComponent",En.__docgenInfo={description:"",displayName:"DefaultNoDataComponent",props:{noDataText:{defaultValue:null,description:"",name:"noDataText",required:!0,type:{name:"any"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"any"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"any"}}}}}catch{}try{En.displayName="DefaultNoDataComponent",En.__docgenInfo={description:"",displayName:"DefaultNoDataComponent",props:{noDataText:{defaultValue:null,description:"",name:"noDataText",required:!0,type:{name:"any"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"any"}},style:{defaultValue:null,description:"",name:"style",required:!0,type:{name:"any"}}}}}catch{}const jo=(a,{cell:s,instance:i})=>{var A,B,j,W;const{column:t,row:u,value:c}=s,l=i.visibleColumns.findIndex(({id:G})=>G===t.id),{alwaysShowSubComponent:p,renderRowSubComponent:P,translatableTexts:m,selectionMode:R,selectionBehavior:k}=i.webComponentsReactProperties,b={"aria-colindex":l+1,role:"gridcell"},S=typeof P=="function"?P(u):void 0,H=u.canExpand||S&&!p,M=i.visibleColumns.filter(({id:G})=>G!=="__ui5wcr__internal_selection_column"&&G!=="__ui5wcr__internal_highlight_column"&&G!=="__ui5wcr__internal_navigation_column"),h=((A=M[0])==null?void 0:A.id)===t.id||((B=M[0])==null?void 0:B.accessor)===t.accessor;if(b["data-is-first-column"]=h,b["aria-label"]=t.headerLabel||(typeof t.Header=="string"?t.Header:""),b["aria-label"]&&(b["aria-label"]=`${b["aria-label"]} `),b["aria-label"]+=c||c===0?`${c} `:"",h&&H||u.isGrouped&&u.canExpand){b.onKeyDown=(W=(j=u.getToggleRowExpandedProps)==null?void 0:j.call(u))==null?void 0:W.onKeyDown;let G="";u.isGrouped&&(G+=m.groupedA11yText+","),u.isExpanded?(b["aria-expanded"]="true",G+=` ${m.collapseA11yText}`):(b["aria-expanded"]="false",G+=` ${m.expandA11yText}`),b["aria-label"]+=G}else(R!==We.None&&k!==_a.RowSelector&&!u.isGrouped||t.id==="__ui5wcr__internal_selection_column")&&(u.isSelected?(b["aria-selected"]="true",b["aria-label"]+=` ${m.unselectA11yText}`):(b["aria-selected"]="false",b["aria-label"]+=` ${m.selectA11yText}`));const{cellLabel:y}=s.column;return typeof y=="function"&&(s.cellLabel=b["aria-label"],b["aria-label"]=y({cell:s,instance:i})),[a,b]},Jo=(a,{column:s,instance:i})=>{const{translatableTexts:t,selectionMode:u}=i.webComponentsReactProperties;if(!s)return a;const c=(s==null?void 0:s.filterValue)&&(s==null?void 0:s.filterValue.length)>0,l={};return l["aria-label"]=s.headerLabel??(s.headerLabel=""),l["aria-label"]&&(l["aria-label"]+=" "),s.isSorted&&(l["aria-sort"]=s.isSortedDesc?"descending":"ascending"),c&&(l["aria-label"]+=t.filteredA11yText),s.isGrouped&&(l["aria-label"]?l["aria-label"]+=` ${t.groupedA11yText}`:l["aria-label"]+=t.groupedA11yText),u===We.Multiple&&s.id==="__ui5wcr__internal_selection_column"&&(l["aria-label"]+=i.isAllRowsSelected?t.deselectAllA11yText:t.selectAllA11yText),[a,{isFiltered:c,...l}]},Ci=a=>{a.getCellProps.push(jo),a.getHeaderProps.push(Jo)};Ci.pluginName="useA11y";const Ri=20,xr=700,Na=18;function $o(a,s){return typeof a!="string"||typeof s!="string"?a||s||void 0:a.length>s.length?a:s}function Si(a,s,i){return a.reduce((t,u)=>{var p;const c=(p=u.values)==null?void 0:p[s];let l=0;return c&&(l=sn(c,i)+Na),t+l},0)/(a.length||1)}function sn(a,s,i=!1){const t=i?"scaleModeHelperHeader":"scaleModeHelper",u=document.getElementById(`${t}-${s}`);return u?(u.textContent=`${a}`,u.scrollWidth):0}const Uo=(a,{instance:{state:s,webComponentsReactProperties:i,visibleColumns:t,data:u,rows:c,columns:l}})=>{const p=!(u!=null&&u.length)&&i.loading,P=(c==null?void 0:c.length)>0,m=I.useMemo(()=>t==null?void 0:t.filter(R=>R.id!=="__ui5wcr__internal_selection_column"&&R.id!=="__ui5wcr__internal_highlight_column"&&R.id!=="__ui5wcr__internal_navigation_column").every(R=>{const k=R.id??R.accessor;return l.some(b=>b.accessor===k||b.id===k)}),[t,l]);return[...a,P,m,t==null?void 0:t.length,!s.tableColResized&&s.tableClientWidth,s.hiddenColumns.length,i.scaleWidthMode,p]},Yo=(a,s,i)=>{const{rows:t,state:u,webComponentsReactProperties:c}=s,l=t.slice(0,Ri),{tableClientWidth:p}=u,P=a.filter(h=>(h.isVisible??!0)&&!i.includes(h.id??h.accessor)),m=P.reduce((h,y)=>{var W,G;const A=y.id??y.accessor;if(y.id==="__ui5wcr__internal_selection_column"||y.id==="__ui5wcr__internal_highlight_column"||y.id==="__ui5wcr__internal_navigation_column")return h[A]={headerPx:y.width||y.minWidth||60,contentPxAvg:0},h;let B,j;return(W=y.scaleWidthModeOptions)!=null&&W.cellString?j=sn(y.scaleWidthModeOptions.cellString,c.uniqueId)+Na:j=Si(l,A,c.uniqueId),(G=y.scaleWidthModeOptions)!=null&&G.headerString?B=Math.max(sn(y.scaleWidthModeOptions.headerString,c.uniqueId,!0)+Na,60):B=typeof y.Header=="string"?Math.max(sn(y.Header,c.uniqueId,!0)+Na,60):60,h[A]={headerPx:B,contentPxAvg:j},h},{});let R=0,k=0;const b=P.reduce((h,y)=>{const A=y.id??y.accessor,{contentPxAvg:B,headerPx:j}=m[A];if(B>j)return!y.minWidth&&!y.width?(R+=m[A].contentPxAvg,k++,h):h+Math.max(y.minWidth||0,y.width||0);{!y.minWidth&&!y.width&&k++;const W=Math.max(y.minWidth||0,y.width||0,j);return m[A].headerDefinesWidth=!0,h+W}},0),S=p-b;let H=S;return P.map(h=>{const y=h.id??h.accessor,A=m[y];if(A&&!h.minWidth&&!h.width&&!A.headerDefinesWidth){let B;const{contentPxAvg:j,headerPx:W}=A;if(S>0){const G=j/R;B=Math.max(Math.min(S*G,j),W),H-=B}return{...h,nextWidth:B||W}}return h}).map(h=>{const y=h.id??h.accessor,A=m[y],{headerPx:B}=A;if(A&&!h.minWidth&&!h.width){let j=h.nextWidth||B;return H>0&&(j=j+H*(1/k)),{...h,width:j}}else return{...h,width:Math.max(h.width||0,60,B)}})},Xo=(a,{instance:s})=>{if(!s.state||!s.rows)return a;const{rows:i,state:t}=s,{hiddenColumns:u,tableClientWidth:c}=t,{scaleWidthMode:l,loading:p,uniqueId:P}=s.webComponentsReactProperties;if(a.length===0||!c||!tn[l])return a;const m=s.visibleColumns.map(h=>{const y=a.find(A=>A.id===h.id||A.accessor!==void 0&&h.id!==void 0&&A.accessor===h.id);return y||(y??!1)}).filter(Boolean);if(l===tn.Smart)return Yo(a,s,u);const R=()=>{const h=m.filter(W=>W.width??W.minWidth??W.maxWidth??!1).map(W=>({accessor:W.id??W.accessor,minWidth:W.minWidth,width:W.width,maxWidth:W.maxWidth}));let y=c,A=m.length;const B=h.map(W=>{const{width:G,minWidth:te,maxWidth:K,accessor:oe}=W;if(G){const le=oe!=="__ui5wcr__internal_highlight_column"&&oe!=="__ui5wcr__internal_selection_column"&&oe!=="__ui5wcr__internal_navigation_column"&&G<60?60:G;return y-=le,A--,le}const z=h.filter(le=>le.maxWidth),Y=z.reduce((le,pe)=>le+pe.maxWidth,0),ie=h.filter(le=>le.minWidth&&!le.maxWidth).reduce((le,pe)=>le+pe.minWidth,0);return te>y/A?y-Y>ie+(m.length-h.length)*60?te>(y-Y)/z.length?(y-=te,A--,te):!1:(y-=te,A--,te):KW+G,0);if(m.length>0&&c>0){if(m.length===B.length)return j/m.length;if(c>=j+A*rn)return(c-j)/A}return rn},k=s.data.length>0;if(l===tn.Default||!k&&p){const h=R();return a.map(y=>({...y,width:y.width??h}))}const b=i.slice(0,Ri),S=m.reduce((h,y)=>{var W,G;const A=y.id??y.accessor;if(y.id==="__ui5wcr__internal_selection_column"||y.id==="__ui5wcr__internal_highlight_column"||y.id==="__ui5wcr__internal_navigation_column")return h[A]={minHeaderWidth:y.width,fullWidth:y.width},h;const B=$o((W=y.scaleWidthModeOptions)==null?void 0:W.headerString,(G=y.scaleWidthModeOptions)==null?void 0:G.cellString);if(B){const te=Math.max(sn(B,P)+Na,60);return h[A]={minHeaderWidth:te,fullWidth:te},h}const j=typeof y.Header=="string"?sn(y.Header,P,!0)+Na:rn;return h[A]={minHeaderWidth:j,fullWidth:Math.max(j,Si(b,A,P))},h},{});let H=m.reduce((h,y)=>{const{minHeaderWidth:A,fullWidth:B}=S[y.id??y.accessor];return h+Math.max(y.minWidth||0,y.width||0,A||0,B)||0},0),M=c-H;if(M>0){let h=0;return H=m.reduce((y,A)=>{const B=Math.max(A.minWidth||0,A.width||0)||0;return B||h++,y+B},0),M=c-H,a.map(y=>{const A=(y.isVisible??!0)&&!u.includes(y.id??y.accessor),B=S[y.id??y.accessor];if(A&&B){const{minHeaderWidth:j}=B,W=M/h;return{...y,width:y.width??Math.min(W,xr),minWidth:y.minWidth??j}}return y})}return a.map(h=>{const y=(h.isVisible??!0)&&!u.includes(h.id??h.accessor),A=S[h.id??h.accessor];if(y&&A){const{fullWidth:B}=A;return{...h,width:h.width??B,maxWidth:h.maxWidth??xr}}return h})},Zo=a=>{a.columns.push(Xo),a.columnsDeps.push(Uo)};function Qo(a,{instance:s,header:i}){const{dispatch:t,virtualRowsRange:u,rows:c,webComponentsReactProperties:l}=s,{onAutoResize:p,tableRef:P,isTreeTable:m}=l,{autoResizable:R,id:k}=i;return!document||!P.current||!R||!c.length||!u?a:{...a,onDoubleClick:b=>{let S=el(k,u,P.current,m);S!==-1&&(S=S>rn?S:rn,typeof p=="function"&&p(Xe(b,{columnId:k,width:S})),!b.defaultPrevented&&t({type:"AUTO_RESIZE",payload:{[k]:S}}))}}}function Vr(a){let s=0;return Array.from(a.children).forEach(i=>{s+=i.scrollWidth}),s}function el(a,s,i,t){let u=0,c=null;function l(P,m,R){if(!P||R===0)return;const k=P.querySelector(`[data-column-id-cell="${m}"]`),b=k==null?void 0:k.querySelector(`[data-column-id-cell-text="${m}"]`);if(b)if(t&&(k!=null&&k.dataset.isFirstColumn)){const S=Vr(k);u[a,{"data-column-id-cell":s}],ln=a=>{a.getResizerProps.push(Qo),a.getCellProps.push(al)};ln.pluginName="useAutoResize";try{ln.displayName="useAutoResize",ln.__docgenInfo={description:"",displayName:"useAutoResize",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}try{ln.displayName="useAutoResize",ln.__docgenInfo={description:"",displayName:"useAutoResize",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}const kr=a=>typeof a.accessor=="string"?a.accessor:a.id;function nl(a,{instance:{dispatch:s,state:i,columns:t,setColumnOrder:u,webComponentsReactProperties:c}}){const{columnOrder:l,columnResizing:p,isRtl:P,dndColumn:m}=i,{onColumnsReorder:R}=c;return[a,{onDragStart:h=>{if(p.isResizingColumn||!h.target.draggable){h.preventDefault();return}h.dataTransfer.setData("text",h.currentTarget.dataset.columnId)},onDragEnter:h=>{s({type:"COLUMN_DND_START",payload:h.currentTarget.dataset.columnId})},onDragOver:h=>{h.preventDefault()},onDragEnd:()=>{s({type:"COLUMN_DND_END"})},onDrop:h=>{s({type:"COLUMN_DND_END"});const y=h.currentTarget.dataset.columnId,A=h.dataTransfer.getData("text");if(y===A)return;const B=l.length>0?l:t.map(K=>kr(K)),j=B.findIndex(K=>K===y),W=B.findIndex(K=>K===A),G=[...B],te=j>W?P?j:j-1:j;if(G.splice(te,0,G.splice(W,1)[0]),u(G),typeof R=="function"){const K=G.map(oe=>t.find(z=>kr(z)===oe));R(Xe(h,{columnsNewOrder:K,column:t[W]}))}},dragOver:m===a.id}]}function tl(a){a.getHeaderProps.push(nl)}const rl=["visibleColumnIndex","columnIndex","rowIndex","visibleRowIndex"],rr=(a,s,i)=>{if(a.dataset.componentName==="AnalyticalTableContainer"&&a.querySelector('[data-component-name="AnalyticalTableBodyScrollableContainer"]')){const t=a.querySelector('[data-component-name="AnalyticalTableBodyScrollableContainer"]').children,u=a.querySelector(`div[data-visible-column-index="0"][data-visible-row-index="${Math.round(t.length/2)}"]`);u==null||u.focus({preventScroll:!0})}else{const t=i?a.querySelector('div[data-visible-column-index="0"][data-visible-row-index="0"]'):a.querySelector('div[data-visible-column-index="0"][data-visible-row-index="1"]');t&&(t.tabIndex=0,t.focus(),s.current=t)}};function Ni(a){return a.parentElement?a!=null&&a.parentElement.dataset.subcomponent?a.parentElement:Ni(a.parentElement):null}const _i=a=>{if(a!=null)return a.dataset.rowIndex!==void 0&&a.dataset.columnIndex!==void 0||a.dataset.rowIndexSub!==void 0&&a.dataset.columnIndexSub!==void 0?a:_i(a.parentElement)},ia=(a,s)=>{a.current.tabIndex=-1,s&&(s.tabIndex=0,s.focus(),a.current=s)},_t=(a,s)=>{ia(a,Ni(s.target))},il=(a,{instance:{webComponentsReactProperties:s,data:i,columns:t,state:u}})=>{const{showOverlay:c,tableRef:l}=s,p=I.useRef(null),P=i.length===0;I.useEffect(()=>{c&&p.current&&(p.current.tabIndex=-1,p.current=null)},[c]);const m=b=>{(b.target.tagName==="UI5-LI"||b.target.tagName==="UI5-LI-CUSTOM")&&(p.current=null)};I.useEffect(()=>{!c&&i&&t&&p.current&&l.current&&l.current.tabIndex!==0&&!l.current.contains(p.current)&&(p.current=null,l.current.tabIndex=0)},[i,t,c]);const R=I.useCallback(b=>{const{dataset:S}=b.target;if(S.emptyRowCell==="true"||Object.prototype.hasOwnProperty.call(S,"subcomponentActiveElement")||S.componentName==="ATHeaderPopoverList"||S.componentName==="ATHeaderPopover")return;if(b.target.dataset.subcomponent){b.target.tabIndex=0,b.target.focus(),p.current=b.target;return}const H=b.target.querySelector('div[data-column-index="0"][data-row-index="1"]');if(b.target.dataset.componentName==="AnalyticalTableContainer")if(b.target.tabIndex=-1,p.current){const{dataset:M}=p.current,h=parseInt(M.rowIndex??M.rowIndexSub,10),y=parseInt(M.columnIndex??M.columnIndexSub,10);b.target.querySelector(`div[data-column-index="${y}"][data-row-index="${h}"]`)||b.target.querySelector(`div[data-column-index-sub="${y}"][data-row-index-sub="${h}"]`)?(p.current.tabIndex=0,p.current.focus({preventScroll:!0})):rr(b.target,p,P)}else if(H){const M=b.target.querySelector('div[data-column-index]:not([data-column-id^="__ui5wcr__internal"][data-row-index="0"])');M.tabIndex=0,M.focus({preventScroll:!0}),p.current=M}else rr(b.target,p,P);else{const M=_i(b.target);M?p.current=M:rr(l.current,p,P)}},[p.current,l.current,P]),k=I.useCallback(b=>{var M,h,y,A,B,j,W;const{isRtl:S}=u,H=Object.prototype.hasOwnProperty.call(b.target.dataset,"subcomponentActiveElement");if(!p.current&&rl.every(G=>Object.keys(b.target.dataset).includes(G))&&(p.current=b.target),p.current){const G=parseInt(p.current.dataset.columnIndex??"0",10),te=parseInt(p.current.dataset.rowIndex??p.current.dataset.subcomponentRowIndex,10);switch(b.key){case"End":{b.preventDefault();const K=l.current.querySelector('div[data-component-name="AnalyticalTableHeaderRow"]').children,oe=Array.from(K).slice(0).reduceRight((Y,ie,le,pe)=>{var ge,we;const Ne=parseInt((we=(ge=ie.children)==null?void 0:ge[0])==null?void 0:we.dataset.columnIndex,10);return isNaN(Ne)?0:(pe.length=0,Ne)},0),z=l.current.querySelector(`div[data-visible-column-index="${oe}"][data-row-index="${te}"]`);ia(p,z);break}case"Home":{b.preventDefault();const K=l.current.querySelector(`div[data-visible-column-index="0"][data-row-index="${te}"]`);ia(p,K);break}case"PageDown":{if(b.preventDefault(),p.current.dataset.rowIndex==="0"){const K=l.current.querySelector(`div[data-column-index="${G}"][data-row-index="${te+1}"]`);ia(p,K)}else{const K=(h=(M=l.current.querySelector('div[data-component-name="AnalyticalTableBody"]'))==null?void 0:M.children)==null?void 0:h[0].children.length,oe=l.current.querySelector(`div[data-column-index="${G}"][data-visible-row-index="${K}"]`);ia(p,oe)}break}case"PageUp":{if(b.preventDefault(),p.current.dataset.rowIndex<="1"){const K=l.current.querySelector(`div[data-column-index="${G}"][data-row-index="0"]`);ia(p,K)}else{const K=l.current.querySelector(`div[data-column-index="${G}"][data-visible-row-index="1"]`);ia(p,K)}break}case"ArrowRight":{if(b.preventDefault(),H){_t(p,b);return}const K=l.current.querySelector(`div[data-column-index="${G+(S?-1:1)}"][data-row-index="${te}"]`);K&&(ia(p,K),K.scrollIntoView({block:"nearest"}));break}case"ArrowLeft":{if(b.preventDefault(),H){_t(p,b);return}const K=l.current.querySelector(`div[data-column-index="${G-(S?-1:1)}"][data-row-index="${te}"]`);K&&(ia(p,K),K.scrollIntoView({block:"nearest"}));break}case"ArrowDown":{if(b.preventDefault(),H){_t(p,b);return}const K=p.current.parentElement,oe=(y=K==null?void 0:K.children)==null?void 0:y[0],z=(A=oe==null?void 0:oe.dataset)==null?void 0:A.subcomponent,Y=l.current.querySelector(`div[data-column-index="${G}"][data-row-index="${te+1}"]`);z&&!((j=(B=p.current)==null?void 0:B.dataset)!=null&&j.subcomponent)?(p.current.tabIndex=-1,oe.tabIndex=0,oe.dataset.rowIndexSub=`${te}`,oe.dataset.columnIndexSub=`${G}`,oe.focus(),p.current=oe):Y&&ia(p,Y);break}case"ArrowUp":{if(b.preventDefault(),H){_t(p,b);return}let K=te-1;const oe=b.target.dataset.subcomponent;oe&&K++;const z=l.current.querySelector(`div[data-column-index="${G}"][data-row-index="${K}"]`),Y=z==null?void 0:z.parentElement.children[0];((W=Y==null?void 0:Y.dataset)==null?void 0:W.subcomponent)&&!oe?(p.current.tabIndex=-1,Y.dataset.rowIndexSub=`${te-1}`,Y.dataset.columnIndexSub=`${G}`,Y.tabIndex=0,Y.focus(),p.current=Y):z&&ia(p,z);break}}}},[p.current,l.current,u==null?void 0:u.isRtl]);return c?a:[a,{onFocus:R,onKeyDown:k,onBlur:m}]};function Ar(a,s){a.preventDefault(),a.stopPropagation();const i=a.target.getBoundingClientRect().x+a.target.getBoundingClientRect().width,t=s.id,u=s.totalWidth,l=Js(s).map(p=>[p.id,p.totalWidth]);return{clientX:i,columnId:t,columnWidth:u,headerIdWidths:l}}const sl=(a,{instance:{dispatch:s},column:i})=>[a,{onKeyDown:u=>{if(typeof a.onKeyDown=="function"&&a.onKeyDown(u),u.nativeEvent.shiftKey){if(u.key==="ArrowRight"){const c=Ar(u,i);s({type:Ae.actions.columnStartResizing,...c}),s({type:Ae.actions.columnResizing,clientX:c.clientX+16}),s({type:Ae.actions.columnDoneResizing});return}if(u.key==="ArrowLeft"){const c=Ar(u,i);s({type:Ae.actions.columnStartResizing,...c}),s({type:Ae.actions.columnResizing,clientX:c.clientX-16}),s({type:Ae.actions.columnDoneResizing});return}}}}],ol=a=>{a.getTableProps.push(il),a.getHeaderProps.push(sl)},ll=(a,{instance:{state:s}})=>[...a,s.tableClientWidth],ul=(a,{instance:s})=>{const{state:i,dispatch:t}=s,u=i.isScrollable?(i==null?void 0:i.tableClientWidth)+13:i==null?void 0:i.tableClientWidth,c=a.filter(l=>l.responsivePopIn&&u({id:l.id??l.accessor,column:l}));return t({type:"SET_POPIN_COLUMNS",payload:c}),a.filter(l=>!c.some(p=>p.id===(l.id??l.accessor))&&(Object.prototype.hasOwnProperty.call(l,"responsiveMinWidth")?!u||u>=l.responsiveMinWidth:!0))},dl=a=>{a.visibleColumns.push(ul),a.visibleColumnsDeps.push(ll)},ml=a=>({...a,onMouseDown:s=>{s.preventDefault(),a.onMouseDown(s)}}),Pi=a=>{a.getResizerProps.push(ml)};Pi.pluginName="useResizeColumnsConfig";const gl={width:"100%",height:"calc(100% - 1px)",alignSelf:"start"},Dr={...Ds,...Es,None:void 0},cl=()=>w.jsx("div",{style:{width:"6px"}}),fl=a=>{const{cell:s,webComponentsReactProperties:i}=a,t=Dr[s==null?void 0:s.value]?i.classes[Dr[s.value].toLowerCase()]:void 0;return w.jsx("div",{style:gl,className:t,"data-component-name":"AnalyticalTableHighlightCell"})},pl=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.withRowHighlight,s.highlightField],hl=(a,{instance:s})=>[...a,s.webComponentsReactProperties.withRowHighlight],yl=(a,{instance:{webComponentsReactProperties:s}})=>s.withRowHighlight?[a.find(({id:t})=>t==="__ui5wcr__internal_highlight_column"),...a.filter(({id:t})=>t!=="__ui5wcr__internal_highlight_column")]:a.filter(({id:t})=>t!=="__ui5wcr__internal_highlight_column"),wl=(a,{instance:s})=>{const{withRowHighlight:i,highlightField:t}=s.webComponentsReactProperties;return i?[{id:"__ui5wcr__internal_highlight_column",accessor:t,disableFilters:!0,disableSortBy:!0,disableGroupBy:!0,disableResizing:!0,disableDragAndDrop:!0,width:6,minWidth:6,maxWidth:6,Header:cl,Cell:fl},...a]:a},un=a=>{a.columns.push(wl),a.columnsDeps.push(pl),a.visibleColumnsDeps.push(hl),a.visibleColumns.push(yl)};un.pluginName="useRowHighlight";try{un.displayName="useRowHighlight",un.__docgenInfo={description:"",displayName:"useRowHighlight",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}try{un.displayName="useRowHighlight",un.__docgenInfo={description:"",displayName:"useRowHighlight",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}const Er={width:"100%",height:"100%"},vl=()=>w.jsx("div",{style:{width:"6px"}}),bl=a=>{const{isNavigatedCell:s,webComponentsReactProperties:i}=a;return s?w.jsx("div",{style:Er,className:i.classes.navigation,"data-component-name":"AnalyticalTableNavigatedCell"}):w.jsx("div",{style:Er})},Cl=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.withNavigationHighlight],Rl=(a,{instance:s})=>[...a,s.webComponentsReactProperties.withNavigationHighlight],Sl=(a,{instance:{webComponentsReactProperties:s}})=>{if(!s.withNavigationHighlight)return a.filter(({id:t})=>t!=="__ui5wcr__internal_navigation_column");const i=a.find(({id:t})=>t==="__ui5wcr__internal_navigation_column");return[...a.filter(({id:t})=>t!=="__ui5wcr__internal_navigation_column"),i]},Nl=(a,{instance:s})=>{const{withNavigationHighlight:i}=s.webComponentsReactProperties;return i?[...a,{id:"__ui5wcr__internal_navigation_column",disableFilters:!0,disableSortBy:!0,disableGroupBy:!0,disableResizing:!0,disableDragAndDrop:!0,width:6,minWidth:6,maxWidth:6,Header:vl,Cell:bl}]:a},Wn=a=>{a.columns.push(Nl),a.columnsDeps.push(Cl),a.visibleColumnsDeps.push(Rl),a.visibleColumns.push(Sl)};try{Wn.displayName="useRowNavigationIndicators",Wn.__docgenInfo={description:"",displayName:"useRowNavigationIndicators",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}try{Wn.displayName="useRowNavigationIndicators",Wn.__docgenInfo={description:"",displayName:"useRowNavigationIndicators",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}const Bi={verticalAlign:"middle",pointerEvents:"none",display:"block"},_l=a=>{const{getToggleAllRowsSelectedProps:s,webComponentsReactProperties:{selectionMode:i,translatableTexts:t,classes:u}}=a;if(i===We.Single)return null;const c=s();return w.jsxs(w.Fragment,{children:[w.jsx(ci,{...c,style:Bi,tabIndex:-1,onChange:void 0,checked:c.indeterminate?!0:c.checked,"aria-hidden":"true"}),w.jsx("span",{className:u.hiddenA11yText,children:t.selectAllText})]})},Pl=({row:a,webComponentsReactProperties:{selectionMode:s}})=>s===We.Single||a.isGrouped?null:w.jsx(ci,{...a.getToggleRowSelectedProps(),tabIndex:-1,"aria-hidden":"true",style:Bi,"data-name":"internal_selection_column"});function Bl(a){return Object.keys(a).reduce((s,i)=>(s[i]=!0,s),{})}const Il=(a,{instance:s})=>{const{webComponentsReactProperties:{onRowSelect:i,selectionMode:t,translatableTexts:{selectAllText:u,deselectAllText:c}},toggleAllRowsSelected:l,isAllRowsSelected:p,rowsById:P,preFilteredRowsById:m,dispatch:R,state:{filters:k,globalFilter:b}}=s,S={...a.style,cursor:"pointer",display:"flex",justifyContent:"center"},H=(k==null?void 0:k.length)>0||!!b,M=H?m:P;if(a.key==="header___ui5wcr__internal_selection_column"&&t===We.Multiple){const h=B=>{typeof a.onClick=="function"&&a.onClick(B),l(!p),typeof i=="function"&&(H?R({type:"SELECT_ROW_CB",payload:{event:B,row:void 0,selectAll:!0,fired:!0}}):i(Xe(B,{rowsById:M,allRowsSelected:!p,selectedRowIds:p?{}:Bl(P)})))};return[a,{onClick:h,onKeyDown:B=>{typeof a.onKeyDown=="function"&&a.onKeyDown(B),(B.code==="Enter"||B.code==="Space")&&(B.preventDefault(),B.code==="Enter"&&h(B))},onKeyUp:B=>{typeof a.onKeyUp=="function"&&a.onKeyUp(B),B.code==="Space"&&(B.preventDefault(),h(B))},style:S,title:p?c:u}]}return a},Ml=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.selectionMode,s.selectionBehavior],Hl=(a,{instance:s})=>[...a,s.webComponentsReactProperties.selectionMode,s.webComponentsReactProperties.selectionBehavior],Tl=(a,{instance:{webComponentsReactProperties:s}})=>s.selectionMode===We.None||s.selectionBehavior===_a.RowOnly?a:[a.find(({id:t})=>t==="__ui5wcr__internal_selection_column"),...a.filter(({id:t})=>t!=="__ui5wcr__internal_selection_column")],xl=(a,{instance:s})=>{const{webComponentsReactProperties:i}=s,{selectionMode:t,selectionBehavior:u,tableRef:c}=i;if(t===We.None||u===_a.RowOnly)return a;const l=c.current&&parseInt(getComputedStyle(c.current).getPropertyValue(gr.ui5WcrAnalyticalTableSelectionColumnWidth),10),p=isNaN(l)?47:l;return[{id:"__ui5wcr__internal_selection_column",disableFilters:!0,disableSortBy:!0,disableGroupBy:!0,disableResizing:!0,disableDragAndDrop:!0,width:p,minWidth:p,maxWidth:p,Header:_l,Cell:Pl},...a]},Vl=(a,{cell:s})=>{if(s.column.id==="__ui5wcr__internal_selection_column"){const i={...a.style,cursor:"pointer",justifyContent:"center"};return[a,{style:i}]}return a},kl=(a,{instance:{webComponentsReactProperties:s}})=>{const{classes:i}=s;return[a,{className:i.checkBox,title:void 0}]},Al=(a,{instance:{webComponentsReactProperties:s}})=>{const{classes:i}=s;return[a,{className:i.checkBox,title:void 0}]},dn=a=>{a.getCellProps.push(Vl),a.getHeaderProps.push(Il),a.getToggleRowSelectedProps.push(Al),a.getToggleAllRowsSelectedProps.push(kl),a.columns.push(xl),a.columnsDeps.push(Ml),a.visibleColumnsDeps.push(Hl),a.visibleColumns.push(Tl)};dn.pluginName="useRowSelectionColumn";try{dn.displayName="useRowSelectionColumn",dn.__docgenInfo={description:"",displayName:"useRowSelectionColumn",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}try{dn.displayName="useRowSelectionColumn",dn.__docgenInfo={description:"",displayName:"useRowSelectionColumn",props:{useOptions:{defaultValue:null,description:"",name:"useOptions",required:!0,type:{name:"any[]"}},stateReducers:{defaultValue:null,description:"",name:"stateReducers",required:!0,type:{name:"any[]"}},useControlledState:{defaultValue:null,description:"",name:"useControlledState",required:!0,type:{name:"any[]"}},columns:{defaultValue:null,description:"",name:"columns",required:!0,type:{name:"any[]"}},columnsDeps:{defaultValue:null,description:"",name:"columnsDeps",required:!0,type:{name:"any[]"}},allColumns:{defaultValue:null,description:"",name:"allColumns",required:!0,type:{name:"any[]"}},allColumnsDeps:{defaultValue:null,description:"",name:"allColumnsDeps",required:!0,type:{name:"any[]"}},accessValue:{defaultValue:null,description:"",name:"accessValue",required:!0,type:{name:"any[]"}},materializedColumns:{defaultValue:null,description:"",name:"materializedColumns",required:!0,type:{name:"any[]"}},materializedColumnsDeps:{defaultValue:null,description:"",name:"materializedColumnsDeps",required:!0,type:{name:"any[]"}},useInstanceAfterData:{defaultValue:null,description:"",name:"useInstanceAfterData",required:!0,type:{name:"any[]"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"any[]"}},visibleColumnsDeps:{defaultValue:null,description:"",name:"visibleColumnsDeps",required:!0,type:{name:"any[]"}},headerGroups:{defaultValue:null,description:"",name:"headerGroups",required:!0,type:{name:"any[]"}},headerGroupsDeps:{defaultValue:null,description:"",name:"headerGroupsDeps",required:!0,type:{name:"any[]"}},useInstanceBeforeDimensions:{defaultValue:null,description:"",name:"useInstanceBeforeDimensions",required:!0,type:{name:"any[]"}},useInstance:{defaultValue:null,description:"",name:"useInstance",required:!0,type:{name:"any[]"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"any[]"}},getTableProps:{defaultValue:null,description:"",name:"getTableProps",required:!0,type:{name:"any[]"}},getTableBodyProps:{defaultValue:null,description:"",name:"getTableBodyProps",required:!0,type:{name:"any[]"}},getHeaderGroupProps:{defaultValue:null,description:"",name:"getHeaderGroupProps",required:!0,type:{name:"any[]"}},getFooterGroupProps:{defaultValue:null,description:"",name:"getFooterGroupProps",required:!0,type:{name:"any[]"}},getHeaderProps:{defaultValue:null,description:"",name:"getHeaderProps",required:!0,type:{name:"any[]"}},getFooterProps:{defaultValue:null,description:"",name:"getFooterProps",required:!0,type:{name:"any[]"}},getRowProps:{defaultValue:null,description:"",name:"getRowProps",required:!0,type:{name:"any[]"}},getCellProps:{defaultValue:null,description:"",name:"getCellProps",required:!0,type:{name:"any[]"}},useFinalInstance:{defaultValue:null,description:"",name:"useFinalInstance",required:!0,type:{name:"any[]"}},getToggleHiddenProps:{defaultValue:null,description:"",name:"getToggleHiddenProps",required:!0,type:{name:"any[]"}},getToggleHideAllColumnsProps:{defaultValue:null,description:"",name:"getToggleHideAllColumnsProps",required:!0,type:{name:"any[]"}},getGroupByToggleProps:{defaultValue:null,description:"",name:"getGroupByToggleProps",required:!0,type:{name:"any[]"}},getSortByToggleProps:{defaultValue:null,description:"",name:"getSortByToggleProps",required:!0,type:{name:"any[]"}},getToggleAllRowsExpandedProps:{defaultValue:null,description:"",name:"getToggleAllRowsExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowExpandedProps:{defaultValue:null,description:"",name:"getToggleRowExpandedProps",required:!0,type:{name:"any[]"}},getToggleRowSelectedProps:{defaultValue:null,description:"",name:"getToggleRowSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllRowsSelectedProps",required:!0,type:{name:"any[]"}},getToggleAllPageRowsSelectedProps:{defaultValue:null,description:"",name:"getToggleAllPageRowsSelectedProps",required:!0,type:{name:"any[]"}},getResizerProps:{defaultValue:null,description:"",name:"getResizerProps",required:!0,type:{name:"any[]"}}}}}catch{}const Ii=a=>{a.useControlledState.push((s,{instance:i})=>{const{selectedRowPayload:t,selectedRowIds:u,filters:c,globalFilter:l}=s,{rowsById:p,preFilteredRowsById:P,webComponentsReactProperties:m,dispatch:R}=i,k=(c==null?void 0:c.length)>0||!!l;return I.useEffect(()=>{if(t!=null&&t.fired){const{event:b,row:S,selectAll:H}=t,M=p[S==null?void 0:S.id],h=k?P:p;if(M||H){const y={row:M,rowsById:h,isSelected:M==null?void 0:M.isSelected,allRowsSelected:!1,selectedRowIds:u};if(m.selectionMode===We.Multiple&&(Object.keys(u).length===Object.keys(h).length&&(y.allRowsSelected=!0),H)){R({type:"SELECT_ROW_CB",payload:{event:b,row:M,selectAll:!1,fired:!1}}),m==null||m.onRowSelect(Xe(b,{rowsById:y.rowsById,allRowsSelected:y.allRowsSelected,selectedRowIds:y.selectedRowIds}));return}R({type:"SELECT_ROW_CB",payload:{event:b,row:M,fired:!1}}),m==null||m.onRowSelect(Xe(b,y))}}},[t==null?void 0:t.fired,p,m.selectionMode,u,k]),s})};Ii.pluginName="useSelectionChangeCallback";const Dl=(a,{row:s,instance:i})=>{const{webComponentsReactProperties:t,toggleRowSelected:u,selectedFlatRows:c,dispatch:l}=i,p=R=>{var h,y,A,B,j;const k=R.target.dataset.selectionCell==="true";if(((y=(h=R.target)==null?void 0:h.dataset)==null?void 0:y.name)!=="internal_selection_column"&&!(R.markerAllowTableRowSelection===!0||((A=R.nativeEvent)==null?void 0:A.markerAllowTableRowSelection)===!0)&&t.tagNamesWhichShouldNotSelectARow.has(Zt(R.target.tagName))||s.isGrouped)return;const{selectionBehavior:b,selectionMode:S,onRowSelect:H,onRowClick:M}=t;if(typeof M=="function"&&((j=(B=R.target)==null?void 0:B.dataset)==null?void 0:j.name)!=="internal_selection_column"&&M(Xe(R,{row:s})),S!==We.None&&!(b===_a.RowSelector&&!k)){if(S===We.Single)for(const W of c)W.id!==s.id&&u(W.id,!1);u(s.id),typeof H=="function"&&l({type:"SELECT_ROW_CB",payload:{event:R,row:s,fired:!0}})}};return[a,{onKeyDown:R=>{(!R.target.hasAttribute("aria-expanded")||R.shiftKey&&R.code==="Space")&&R.code==="Enter"&&(t.tagNamesWhichShouldNotSelectARow.has(Zt(R.target.tagName))||R.preventDefault(),p(R)),R.code==="Space"&&R.preventDefault()},onKeyUp:R=>{!R.target.hasAttribute("aria-expanded")&&!R.shiftKey&&R.code==="Space"&&(t.tagNamesWhichShouldNotSelectARow.has(Zt(R.target.tagName))||R.preventDefault(),p(R))},onClick:p}]},Mi=a=>{a.getRowProps.push(Dl)};Mi.pluginName="useSingleRowStateSelection";const El=(a,{instance:s})=>{const{classes:i}=s.webComponentsReactProperties;return[a,{className:i.tableHeaderRow}]},Wl=(a,{instance:s,column:i})=>{const t=i.canGroupBy||i.canSort||i.canFilter,{classes:u}=s.webComponentsReactProperties,c={width:i.totalWidth};return(i.id==="__ui5wcr__internal_highlight_column"||i.id==="__ui5wcr__internal_selection_column"||i.id==="__ui5wcr__internal_navigation_column")&&(c.padding=0),t&&(c.cursor="pointer"),[a,{className:u.th,column:i,style:c,id:i.id}]},Gl="data-is-selected",Ll=(a,{instance:s,row:i,userProps:t})=>{const{webComponentsReactProperties:u}=s,{classes:c,selectionBehavior:l,selectionMode:p,alternateRowColor:P,subRowsKey:m}=u;let R=c.tr;const k=[We.Single,We.Multiple].includes(p);(i.isGrouped||s.manualGroupBy&&i.cells.some(S=>S.column.isGrouped)&&cr(m,i.original)!=null)&&(R+=` ${c.tableGroupHeader}`),P&&t["aria-rowindex"]%2!==1&&(R+=` ${c.alternateRowColor}`);const b={className:R,role:"row"};return k&&(_a.RowSelector!==l&&(b.className+=` ${c.trActive}`),i.isSelected&&(b[Gl]="")),[a,b]},Fl=(a,{cell:{column:s},instance:i})=>{const{classes:t}=i.webComponentsReactProperties,u={width:`${s.totalWidth}px`,...pi(s)};let c=t.tableCell;return s.className&&(c+=` ${s.className}`),(s.id==="__ui5wcr__internal_highlight_column"||s.id==="__ui5wcr__internal_selection_column"||s.id==="__ui5wcr__internal_navigation_column")&&(u.padding=0),[a,{className:c,style:u,tabIndex:-1}]},Hi=a=>{a.getHeaderGroupProps.push(El),a.getHeaderProps.push(Wl),a.getRowProps.push(Ll),a.getCellProps.push(Fl)};Hi.pluginName="useStyling";const zl=(a,s)=>{let i=I.useRef(null);a&&(i=a);const t=I.useRef({});return I.useEffect(()=>{i.current&&Object.assign(i.current,{scrollTo:(u,c)=>{var l;typeof((l=t.current)==null?void 0:l.scrollToOffset)=="function"?t.current.scrollToOffset(u,{align:c}):s({type:"TRIGGER_PROG_SCROLL",payload:{direction:"vertical",type:"offset",args:[u,{align:c}]}})},scrollToItem:(u,c)=>{var l;typeof((l=t.current)==null?void 0:l.scrollToIndex)=="function"?t.current.scrollToIndex(u,{align:c}):s({type:"TRIGGER_PROG_SCROLL",payload:{direction:"vertical",type:"item",args:[u,{align:c}]}})},horizontalScrollTo:(u,c)=>{var l;typeof((l=t.current)==null?void 0:l.horizontalScrollToOffset)=="function"?t.current.horizontalScrollToOffset(u,{align:c}):s({type:"TRIGGER_PROG_SCROLL",payload:{direction:"horizontal",type:"offset",args:[u,{align:c}]}})},horizontalScrollToItem:(u,c)=>{var l;typeof((l=t.current)==null?void 0:l.horizontalScrollToIndex)=="function"?t.current.horizontalScrollToIndex(u,{align:c}):s({type:"TRIGGER_PROG_SCROLL",payload:{direction:"horizontal",type:"item",args:[u,{align:c}]}})}})},[]),[i,t]},ql=(a,{row:s,instance:i,userProps:t})=>{const{manualGroupBy:u}=i,{onRowExpandChange:c,isTreeTable:l,renderRowSubComponent:p,alwaysShowSubComponent:P}=i.webComponentsReactProperties,m=(S,H=!0)=>{var h;H&&S.stopPropagation();let M=null;!l&&(!p||p&&P)&&(u?M=t.column:M=(h=s.cells.find(y=>y.column.id===s.groupByID))==null?void 0:h.column),typeof c=="function"&&c(Xe(S,{row:s,column:M})),s.toggleRowExpanded()},R=S=>{if(S.code==="F4")S.preventDefault(),m(S,!1);else if(!S.shiftKey&&S.code==="Space"||S.key==="Enter"){if(S.target.hasAttribute("ui5-icon")||S.target.hasAttribute("ui5-button"))return;S.preventDefault(),m(S,!1)}},{title:k,...b}=a;return[b,{onClick:m,onKeyDown:R}]},Ti=a=>{a.getToggleRowExpandedProps.push(ql)};Ti.pluginName="useToggleRowExpand";const Ol=a=>{const s=a.visibleColumns.map(i=>i.totalWidth);Object.assign(a,{visibleColumnsWidth:s})},xi=a=>{a.useInstance.push(Ol)};xi.pluginName="useVisibleColumnsWidth";const Kl={packageName:"@ui5/webcomponents-react",fileName:"VerticalScrollbar.module.css",content:"@layer ui5-webcomponents-react{._headerSection_1xpzy_1{background-color:var(--sapList_HeaderBackground);border-block-end:var(--_ui5wcr-AnalyticalTable-HeaderBorderWidth) solid var(--sapList_HeaderBorderColor);border-block-start:var(--_ui5wcr-AnalyticalTable-OuterBorderBlock);border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterBorderInline);border-inline-start:1px solid var(--sapList_BorderColor);box-sizing:border-box;margin-inline-start:-1px;width:calc(var(--sapScrollBar_Dimension) + 2px)}._scrollbar_1xpzy_11{border-block-end:1px solid var(--sapList_TableFooterBorder);border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterBorderInline);border-inline-start:1px solid var(--sapList_BorderColor);box-sizing:border-box;margin-inline-start:-1px;overflow-y:auto}._bottomSection_1xpzy_20{background-color:var(--sapList_FooterBackground);border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterBorderInline);box-sizing:border-box;flex-grow:1}}"},ir={headerSection:"_headerSection_1xpzy_1",scrollbar:"_scrollbar_1xpzy_11",bottomSection:"_bottomSection_1xpzy_20"},La=I.forwardRef((a,s)=>{var H,M,h;const{internalRowHeight:i,tableRef:t,handleVerticalScrollBarScroll:u,tableBodyHeight:c,scrollContainerRef:l,nativeScrollbar:p,parentRef:P}=a,[m,R]=ui(s),k=I.useRef(null);ma(Kl,La.displayName);const b=((H=t==null?void 0:t.current)==null?void 0:H.offsetWidth)!==((M=t==null?void 0:t.current)==null?void 0:M.scrollWidth);I.useEffect(()=>{const y=new ResizeObserver(([A])=>{R.current&&P.current&&A.target.getBoundingClientRect().height>0&&(R.current.scrollTop=P.current.scrollTop)});return k.current&&y.observe(k.current),()=>{y.disconnect()}},[]);const S=da(b&&ir.bottomSection);return w.jsxs(oa,{direction:an.Column,style:{position:"relative"},"data-component-name":"AnalyticalTableVerticalScrollbarContainer",children:[w.jsx("div",{style:{height:`${i}px`},className:ir.headerSection}),w.jsx("div",{ref:m,style:{height:t.current?`${c}px`:"0"},onScroll:u,className:da(ir.scrollbar,p&&"ui5-content-native-scrollbars"),"data-component-name":"AnalyticalTableVerticalScrollbar",children:w.jsx("div",{ref:k,style:{height:`${(h=l.current)==null?void 0:h.scrollHeight}px`,width:"1px",backgroundColor:mr.sapList_Background}})}),w.jsx("div",{className:S})]})});La.displayName="VerticalScrollbar";try{La.displayName="VerticalScrollbar",La.__docgenInfo={description:"",displayName:"VerticalScrollbar",props:{internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},tableRef:{defaultValue:null,description:"",name:"tableRef",required:!0,type:{name:"RefObject"}},handleVerticalScrollBarScroll:{defaultValue:null,description:"",name:"handleVerticalScrollBarScroll",required:!0,type:{name:"any"}},tableBodyHeight:{defaultValue:null,description:"",name:"tableBodyHeight",required:!0,type:{name:"number"}},scrollContainerRef:{defaultValue:null,description:"",name:"scrollContainerRef",required:!0,type:{name:"MutableRefObject"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"MutableRefObject"}},nativeScrollbar:{defaultValue:null,description:"",name:"nativeScrollbar",required:!0,type:{name:"boolean"}}}}}catch{}try{La.displayName="VerticalScrollbar",La.__docgenInfo={description:"",displayName:"VerticalScrollbar",props:{internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},tableRef:{defaultValue:null,description:"",name:"tableRef",required:!0,type:{name:"RefObject"}},handleVerticalScrollBarScroll:{defaultValue:null,description:"",name:"handleVerticalScrollBarScroll",required:!0,type:{name:"any"}},tableBodyHeight:{defaultValue:null,description:"",name:"tableBodyHeight",required:!0,type:{name:"number"}},scrollContainerRef:{defaultValue:null,description:"",name:"scrollContainerRef",required:!0,type:{name:"MutableRefObject"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"MutableRefObject"}},nativeScrollbar:{defaultValue:null,description:"",name:"nativeScrollbar",required:!0,type:{name:"boolean"}}}}}catch{}const mn=({virtualRow:a,className:s,children:i})=>w.jsx("div",{"data-empty-row":"true",className:s,style:{height:`${a.size}px`,transform:`translateY(${a.start}px)`,boxSizing:"border-box"},children:i},`empty_row_${a.index}`);try{mn.displayName="EmptyRow",mn.__docgenInfo={description:"",displayName:"EmptyRow",props:{virtualRow:{defaultValue:null,description:"",name:"virtualRow",required:!0,type:{name:"VirtualItem"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"string"}}}}}catch{}try{mn.displayName="EmptyRow",mn.__docgenInfo={description:"",displayName:"EmptyRow",props:{virtualRow:{defaultValue:null,description:"",name:"virtualRow",required:!0,type:{name:"VirtualItem"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"string"}}}}}catch{}const jl={packageName:"@ui5/webcomponents-react",fileName:"RowSubComponent.module.css",content:"@layer ui5-webcomponents-react{._subcomponent_1cs9q_1{position:absolute;width:100%}._subcomponent_1cs9q_1:focus{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:calc(var(--sapContent_FocusWidth)*-1)}}"},Jl={subcomponent:"_subcomponent_1cs9q_1"},Fa=a=>{var k,b;const{subComponentsHeight:s,virtualRow:i,dispatch:t,row:u,rowHeight:c,children:l,rows:p,alwaysShowSubComponent:P,rowIndex:m}=a,R=I.useRef(null);return ma(jl,Fa.displayName),I.useEffect(()=>{var H,M;const S=new ResizeObserver(h=>{h.forEach(y=>{var B,j,W;const A=y.target.getBoundingClientRect();if(A){const G=Array.isArray(y.borderBoxSize)?y.borderBoxSize[0]:y.borderBoxSize,te=(G==null?void 0:G.blockSize)??A.height;if(((B=s==null?void 0:s[i.index])==null?void 0:B.subComponentHeight)!==te&&te!==0)if(P&&s&&Object.keys(s).length===10){const K=Object.values(s).reduce((Y,ie)=>{const le=Y==null?void 0:Y[ie.subComponentHeight];return typeof le=="number"?{...Y,[ie.subComponentHeight]:le+1}:{...Y,[ie.subComponentHeight]:1}},{}),oe=Object.keys(K).reduce((Y,ie)=>K[Y]>K[ie]?Y:ie),z=p.reduce((Y,ie,le)=>(Y[le]={subComponentHeight:parseInt(oe),rowId:ie.id},Y),{});t({type:"SUB_COMPONENTS_HEIGHT",payload:{...z,...s}})}else t({type:"SUB_COMPONENTS_HEIGHT",payload:{...s,[i.index]:{subComponentHeight:te,rowId:u.id}}});((j=s==null?void 0:s[i.index])==null?void 0:j.rowId)!=null&&((W=s==null?void 0:s[i.index])==null?void 0:W.rowId)!==u.id&&t({type:"SUB_COMPONENTS_HEIGHT",payload:{...s,[i.index]:{subComponentHeight:te,rowId:u.id}}})}})});return(H=R.current)!=null&&H.firstChild&&S.observe((M=R.current)==null?void 0:M.firstChild),()=>{S.disconnect()}},[(k=R.current)==null?void 0:k.firstChild,s,u.id,(b=s==null?void 0:s[i.index])==null?void 0:b.subComponentHeight,i.index]),w.jsx("div",{ref:R,"data-subcomponent":!0,"data-subcomponent-row-index":m,tabIndex:-1,style:{boxSizing:"border-box",transform:`translateY(${c}px)`},className:Jl.subcomponent,children:l})};Fa.displayName="RowSubComponent";try{Fa.displayName="RowSubComponent",Fa.__docgenInfo={description:"",displayName:"RowSubComponent",props:{subComponentsHeight:{defaultValue:null,description:"",name:"subComponentsHeight",required:!0,type:{name:"Record"}},virtualRow:{defaultValue:null,description:"",name:"virtualRow",required:!0,type:{name:"VirtualItem"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: Record; }) => void"}},row:{defaultValue:null,description:"",name:"row",required:!0,type:{name:"Record"}},rowHeight:{defaultValue:null,description:"",name:"rowHeight",required:!0,type:{name:"number"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"Record[]"}},alwaysShowSubComponent:{defaultValue:null,description:"",name:"alwaysShowSubComponent",required:!0,type:{name:"boolean"}},rowIndex:{defaultValue:null,description:"",name:"rowIndex",required:!0,type:{name:"number"}}}}}catch{}try{Fa.displayName="RowSubComponent",Fa.__docgenInfo={description:"",displayName:"RowSubComponent",props:{subComponentsHeight:{defaultValue:null,description:"",name:"subComponentsHeight",required:!0,type:{name:"Record"}},virtualRow:{defaultValue:null,description:"",name:"virtualRow",required:!0,type:{name:"VirtualItem"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: Record; }) => void"}},row:{defaultValue:null,description:"",name:"row",required:!0,type:{name:"Record"}},rowHeight:{defaultValue:null,description:"",name:"rowHeight",required:!0,type:{name:"number"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"Record[]"}},alwaysShowSubComponent:{defaultValue:null,description:"",name:"alwaysShowSubComponent",required:!0,type:{name:"boolean"}},rowIndex:{defaultValue:null,description:"",name:"rowIndex",required:!0,type:{name:"number"}}}}}catch{}const Gn=a=>{const{alternateRowColor:s,classes:i,prepareRow:t,rows:u,scrollToRef:c,isTreeTable:l,internalRowHeight:p,visibleColumns:P,renderRowSubComponent:m,popInRowHeight:R,markNavigatedRow:k,isRtl:b,alwaysShowSubComponent:S,dispatch:H,subComponentsHeight:M,columnVirtualizer:h,manualGroupBy:y,subRowsKey:A,scrollContainerRef:B,subComponentsBehavior:j,triggerScroll:W,rowVirtualizer:G}=a,te=R!==p?R:p,K=I.useRef(null);c.current={...c.current,scrollToOffset:G.scrollToOffset,scrollToIndex:G.scrollToIndex},I.useEffect(()=>{W&&W.direction==="vertical"&&(W.type==="offset"?G.scrollToOffset(...W.args):G.scrollToIndex(...W.args))},[W]);const oe=I.useMemo(()=>P.filter(z=>z.id!=="__ui5wcr__internal_highlight_column"&&z.id!=="__ui5wcr__internal_selection_column"&&z.id!=="__ui5wcr__internal_navigation_column")[0],[P]);return w.jsx("div",{ref:B,"data-component-name":"AnalyticalTableBodyScrollableContainer",style:{position:"relative",height:`${G.getTotalSize()}px`,width:`${h.getTotalSize()}px`},children:G.getVirtualItems().map((z,Y)=>{var Ue,Qe,ea,ra,ve,Fe;const ie=u[z.index],le=z.index+1;if(!ie||ie.groupByVal==="undefined"){const Ce=s&&z.index%2!==0;if(!((Ue=K.current)!=null&&Ue.cells))return w.jsx(mn,{virtualRow:z,className:da(i.tr,Ce&&i.alternateRowColor)},`empty_row_${z.index}`);const pa=K.current.cells;return w.jsx(mn,{virtualRow:z,className:da(i.tr,Ce&&i.alternateRowColor),children:h.getVirtualItems().map(_e=>{const Pa=pa[_e.index].getCellProps(),{"aria-colindex":Ba,"aria-selected":Oa,"aria-label":je,tabIndex:Fn,...Ia}=Pa;return I.createElement("div",{...Ia,key:`${Y}-${Ia.key}`,"data-empty-row-cell":"true",tabIndex:-1,"aria-hidden":!0,style:{...Ia.style,cursor:"unset",width:_e.size}})})},`empty_row_${z.index}`)}else K.current=ie;t(ie);const{key:pe,...Ne}=ie.getRowProps({"aria-rowindex":z.index+1,"data-virtual-row-index":z.index}),ge=typeof k=="function"?k(ie):!1,we=typeof m=="function"?m(ie):void 0;(!we||j===Va.IncludeHeightExpandable&&!ie.isExpanded)&&M&&((Qe=M==null?void 0:M[z.index])!=null&&Qe.subComponentHeight)&&H({type:"SUB_COMPONENTS_HEIGHT",payload:{...M,[z.index]:{subComponentHeight:0,rowId:ie.id}}});let be=te;m&&((ea=u[z.index])!=null&&ea.isExpanded||S)&&((ra=M==null?void 0:M[z.index])==null?void 0:ra.rowId)===((ve=u[z.index])==null?void 0:ve.id)&&(be+=((Fe=M==null?void 0:M[z.index])==null?void 0:Fe.subComponentHeight)??0);const Me=l&&m&&(ie.isExpanded||S)?Ce=>{G.measureElement(Ce)}:G.measureElement;return w.jsxs("div",{...Ne,ref:Me,style:{...Ne.style??{},transform:`translateY(${z.start}px)`,position:"absolute",boxSizing:"border-box",height:`${be}px`},children:[we&&(ie.isExpanded||S)&&w.jsx(Fa,{subComponentsHeight:M,virtualRow:z,dispatch:H,row:ie,rowHeight:te,rows:u,alwaysShowSubComponent:S,rowIndex:Y+1,children:we}),h.getVirtualItems().map((Ce,pa)=>{const _e=ie.cells[Ce.index],qa=b?{transform:`translateX(-${Ce.start}px)`,insertInlineStart:0}:{transform:`translateX(${Ce.start}px)`,insertInlineStart:0};if(!_e)return null;const{key:Pa,...Ba}=_e.getCellProps(),Oa={...Ba,"data-visible-column-index":pa,"data-column-index":Ce.index,"data-visible-row-index":Y+1,"data-row-index":le,style:{...Ba.style,position:"absolute",width:`${Ce.size}px`,top:0,height:`${te}px`,...qa}};let je;return _e.column.id==="__ui5wcr__internal_highlight_column"||_e.column.id==="__ui5wcr__internal_selection_column"||_e.column.id==="__ui5wcr__internal_navigation_column"?je=Ke.Cell:l||!S&&we?je=Ke.Expandable:_e.isGrouped||y&&_e.column.isGrouped&&cr(A,ie.original)!=null&&_e.value!==void 0?je=Ke.Grouped:_e.isAggregated?je=Ke.Aggregated:_e.isPlaceholder?je=Ke.RepeatedValue:je=Ke.Cell,w.jsx("div",{...Oa,"data-selection-cell":_e.column.id==="__ui5wcr__internal_selection_column",children:R!==p&&oe.id===_e.column.id?_e.render(Ke.PopIn,{contentToRender:je,internalRowHeight:p}):_e.render(je,ge===!0?{isNavigatedCell:ge}:{})},Pa)})]},pe)})})};try{Gn.displayName="VirtualTableBody",Gn.__docgenInfo={description:"",displayName:"VirtualTableBody",props:{classes:{defaultValue:null,description:"",name:"classes",required:!0,type:{name:"Record"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"(row: RowType) => void"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"RowType[]"}},isTreeTable:{defaultValue:null,description:"",name:"isTreeTable",required:!1,type:{name:"boolean"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},alternateRowColor:{defaultValue:null,description:"",name:"alternateRowColor",required:!1,type:{name:"boolean"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"Record[]"}},renderRowSubComponent:{defaultValue:null,description:"",name:"renderRowSubComponent",required:!0,type:{name:"(row?: RowType) => ReactNode"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},markNavigatedRow:{defaultValue:null,description:"",name:"markNavigatedRow",required:!1,type:{name:"(row?: RowType) => boolean"}},alwaysShowSubComponent:{defaultValue:null,description:"",name:"alwaysShowSubComponent",required:!0,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!1,type:{name:"(e: { type: string; payload?: Record; }) => void"}},subComponentsHeight:{defaultValue:null,description:"",name:"subComponentsHeight",required:!1,type:{name:"Record"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},manualGroupBy:{defaultValue:null,description:"",name:"manualGroupBy",required:!1,type:{name:"boolean"}},subRowsKey:{defaultValue:null,description:"",name:"subRowsKey",required:!0,type:{name:"string"}},scrollContainerRef:{defaultValue:null,description:"",name:"scrollContainerRef",required:!1,type:{name:"MutableRefObject"}},subComponentsBehavior:{defaultValue:null,description:"",name:"subComponentsBehavior",required:!0,type:{name:"enum",value:[{value:'"Expandable"'},{value:'"Visible"'},{value:'"IncludeHeight"'},{value:'"IncludeHeightExpandable"'},{value:'"Expandable"'},{value:'"Visible"'},{value:'"IncludeHeight"'},{value:'"IncludeHeightExpandable"'}]}},triggerScroll:{defaultValue:null,description:"",name:"triggerScroll",required:!1,type:{name:"TriggerScrollState"}},scrollToRef:{defaultValue:null,description:"",name:"scrollToRef",required:!0,type:{name:"MutableRefObject"}},rowVirtualizer:{defaultValue:null,description:"",name:"rowVirtualizer",required:!0,type:{name:"Virtualizer"}}}}}catch{}try{Gn.displayName="VirtualTableBody",Gn.__docgenInfo={description:"",displayName:"VirtualTableBody",props:{classes:{defaultValue:null,description:"",name:"classes",required:!0,type:{name:"Record"}},prepareRow:{defaultValue:null,description:"",name:"prepareRow",required:!0,type:{name:"(row: RowType) => void"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"RowType[]"}},isTreeTable:{defaultValue:null,description:"",name:"isTreeTable",required:!1,type:{name:"boolean"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},alternateRowColor:{defaultValue:null,description:"",name:"alternateRowColor",required:!1,type:{name:"boolean"}},visibleColumns:{defaultValue:null,description:"",name:"visibleColumns",required:!0,type:{name:"Record[]"}},renderRowSubComponent:{defaultValue:null,description:"",name:"renderRowSubComponent",required:!0,type:{name:"(row?: RowType) => ReactNode"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},markNavigatedRow:{defaultValue:null,description:"",name:"markNavigatedRow",required:!1,type:{name:"(row?: RowType) => boolean"}},alwaysShowSubComponent:{defaultValue:null,description:"",name:"alwaysShowSubComponent",required:!0,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!1,type:{name:"(e: { type: string; payload?: Record; }) => void"}},subComponentsHeight:{defaultValue:null,description:"",name:"subComponentsHeight",required:!1,type:{name:"Record"}},columnVirtualizer:{defaultValue:null,description:"",name:"columnVirtualizer",required:!0,type:{name:"Virtualizer"}},manualGroupBy:{defaultValue:null,description:"",name:"manualGroupBy",required:!1,type:{name:"boolean"}},subRowsKey:{defaultValue:null,description:"",name:"subRowsKey",required:!0,type:{name:"string"}},scrollContainerRef:{defaultValue:null,description:"",name:"scrollContainerRef",required:!1,type:{name:"MutableRefObject"}},subComponentsBehavior:{defaultValue:null,description:"",name:"subComponentsBehavior",required:!0,type:{name:"enum",value:[{value:'"Expandable"'},{value:'"Visible"'},{value:'"IncludeHeight"'},{value:'"IncludeHeightExpandable"'},{value:'"Expandable"'},{value:'"Visible"'},{value:'"IncludeHeight"'},{value:'"IncludeHeightExpandable"'}]}},triggerScroll:{defaultValue:null,description:"",name:"triggerScroll",required:!1,type:{name:"TriggerScrollState"}},scrollToRef:{defaultValue:null,description:"",name:"scrollToRef",required:!0,type:{name:"MutableRefObject"}},rowVirtualizer:{defaultValue:null,description:"",name:"rowVirtualizer",required:!0,type:{name:"Virtualizer"}}}}}catch{}const Ln=a=>{const{tableBodyHeight:s,totalColumnsWidth:i,children:t,parentRef:u,classes:c,infiniteScroll:l,infiniteScrollThreshold:p,onLoadMore:P,rows:m,internalRowHeight:R,handleExternalScroll:k,visibleRows:b,popInRowHeight:S,rowCollapsedFlag:H,isGrouped:M,dispatch:h}=a,[y,A]=I.useState(!1);I.useEffect(()=>{u.current&&A(!0)},[u.current]);const B=m.length,j=I.useRef(0),W=I.useRef(new Set),G=I.useRef(B);I.useEffect(()=>{G.current>B&&(H?h({type:"ROW_COLLAPSED_FLAG",payload:!1}):(W.current.clear(),u.current.scrollTop=0,j.current=0)),G.current=B},[B,H]);const te=I.useCallback(K=>{k(Xe(K,{rows:m,rowElements:K.target.children[0].children}));const oe=K.target.scrollTop,z=j.current"}},classes:{defaultValue:null,description:"",name:"classes",required:!0,type:{name:"Record"}},infiniteScroll:{defaultValue:null,description:"",name:"infiniteScroll",required:!1,type:{name:"boolean"}},infiniteScrollThreshold:{defaultValue:null,description:"",name:"infiniteScrollThreshold",required:!1,type:{name:"number"}},onLoadMore:{defaultValue:null,description:"",name:"onLoadMore",required:!0,type:{name:"(e?: CustomEvent<{ rowCount: number; totalRowCount: number; }>) => void"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"RowType[]"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},handleExternalScroll:{defaultValue:null,description:"",name:"handleExternalScroll",required:!0,type:{name:"(e?: CustomEvent<{ rows: Record[]; rowElements: HTMLCollection; }>) => void"}},visibleRows:{defaultValue:null,description:"",name:"visibleRows",required:!0,type:{name:"number"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},rowCollapsedFlag:{defaultValue:null,description:"",name:"rowCollapsedFlag",required:!1,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: any; }) => void"}},isGrouped:{defaultValue:null,description:"",name:"isGrouped",required:!0,type:{name:"boolean"}}}}}catch{}try{Ln.displayName="VirtualTableBodyContainer",Ln.__docgenInfo={description:"",displayName:"VirtualTableBodyContainer",props:{tableBodyHeight:{defaultValue:null,description:"",name:"tableBodyHeight",required:!0,type:{name:"number"}},totalColumnsWidth:{defaultValue:null,description:"",name:"totalColumnsWidth",required:!0,type:{name:"number"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"MutableRefObject"}},classes:{defaultValue:null,description:"",name:"classes",required:!0,type:{name:"Record"}},infiniteScroll:{defaultValue:null,description:"",name:"infiniteScroll",required:!1,type:{name:"boolean"}},infiniteScrollThreshold:{defaultValue:null,description:"",name:"infiniteScrollThreshold",required:!1,type:{name:"number"}},onLoadMore:{defaultValue:null,description:"",name:"onLoadMore",required:!0,type:{name:"(e?: CustomEvent<{ rowCount: number; totalRowCount: number; }>) => void"}},rows:{defaultValue:null,description:"",name:"rows",required:!0,type:{name:"RowType[]"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},handleExternalScroll:{defaultValue:null,description:"",name:"handleExternalScroll",required:!0,type:{name:"(e?: CustomEvent<{ rows: Record[]; rowElements: HTMLCollection; }>) => void"}},visibleRows:{defaultValue:null,description:"",name:"visibleRows",required:!0,type:{name:"number"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},rowCollapsedFlag:{defaultValue:null,description:"",name:"rowCollapsedFlag",required:!1,type:{name:"boolean"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: any; }) => void"}},isGrouped:{defaultValue:null,description:"",name:"isGrouped",required:!0,type:{name:"boolean"}}}}}catch{}const $l=(a,s,i,t)=>{const{payload:u}=s;if(a.isRtl&&s.type===Ae.actions.columnResizing){const{clientX:c}=s,{startX:l,columnWidth:p,headerIdWidths:P}=a.columnResizing,R=(l-c)/p,k={};return P.forEach(([b,S])=>{k[b]=Math.max(S+S*R,0)}),{...a,columnResizing:{...a.columnResizing,columnWidths:{...a.columnResizing.columnWidths,...k}}}}switch(s.type){case"toggleRowExpanded":return a.expanded[s.id]||t.dispatch({type:"ROW_COLLAPSED_FLAG",payload:!0}),a;case"TABLE_RESIZE":return{...a,tableClientWidth:u.tableClientWidth};case"VISIBLE_ROWS":return{...a,visibleRows:u.visibleRows};case"TABLE_SCROLLING_ENABLED":return{...a,isScrollable:u.isScrollable};case"SET_SELECTED_ROW_IDS":return{...a,selectedRowIds:u.selectedRowIds};case"SET_POPIN_COLUMNS":return{...a,popInColumns:u};case"INTERACTIVE_ROWS_HAVE_POPIN":return{...a,interactiveRowsHavePopIn:u};case"IS_RTL":return{...a,isRtl:u.isRtl};case"SUB_COMPONENTS_HEIGHT":return{...a,subComponentsHeight:u};case"TABLE_COL_RESIZED":return{...a,tableColResized:u};case"SELECT_ROW_CB":return{...a,selectedRowPayload:u};case"ROW_COLLAPSED_FLAG":return{...a,rowCollapsed:u};case"COLUMN_DND_START":return{...a,dndColumn:u};case"COLUMN_DND_END":return{...a,dndColumn:""};case"TRIGGER_PROG_SCROLL":return{...a,triggerScroll:u};case"AUTO_RESIZE":return{...a,columnResizing:{...a.columnResizing,columnWidths:{...a.columnResizing.columnWidths,...u}}};default:return a}},Ul={minHeight:"1.5rem",display:"flex",alignItems:"center"},gn=I.forwardRef((a,s)=>{const{children:i,titleBarId:t}=a;return w.jsxs("div",{style:Ul,ref:s,id:t,children:[typeof i=="string"&&w.jsx(Ws,{children:i}),I.isValidElement(i)&&i]})});gn.displayName="TitleBar";try{gn.displayName="TitleBar",gn.__docgenInfo={description:"",displayName:"TitleBar",props:{titleBarId:{defaultValue:null,description:"",name:"titleBarId",required:!0,type:{name:"string"}}}}}catch{}try{gn.displayName="TitleBar",gn.__docgenInfo={description:"",displayName:"TitleBar",props:{titleBarId:{defaultValue:null,description:"",name:"titleBarId",required:!0,type:{name:"string"}}}}}catch{}const Yl={packageName:"@ui5/webcomponents-react",fileName:"VerticalResizer.module.css",content:'@layer ui5-webcomponents-react{._container_dd6x7_1{box-sizing:border-box;cursor:row-resize;height:5px;overflow:hidden;position:relative;text-align:center}._container_dd6x7_1:hover{background-color:var(--sapContent_DragAndDropActiveColor);color:var(--sapHighlightTextColor)}._container_dd6x7_1:before{content:"⦁⦁⦁⦁";font-family:var(--sapFontFamily);font-size:10px;inset-block-start:0;line-height:5px;pointer-events:none;position:absolute}._resizer_dd6x7_25{background-color:var(--sapContent_DragAndDropActiveColor);height:5px;opacity:.5;position:absolute}}'},Wr={container:"_container_dd6x7_1",resizer:"_resizer_dd6x7_25"},sr=(a,s)=>a.type===s?!(a.touches&&a.touches.length>1):!1,za=a=>{var te,K,oe;const{analyticalTableRef:s,dispatch:i,extensionsHeight:t,internalRowHeight:u,hasPopInColumns:c,popInRowHeight:l,rowsLength:p,visibleRows:P,handleOnLoadMore:m}=a;ma(Yl,za.displayName);const R=I.useRef(null),k=I.useRef(null),[b,S]=I.useState(void 0),[H,M]=I.useState(!1),[h,y]=I.useState(!1),A=dr("@ui5/webcomponents-react"),B=I.useCallback(z=>{z.preventDefault();const Y=sr(z,"touchstart");R.current=Y?Math.round(z.touches[0].pageY):z.pageY,y(Y),M(!0)},[R.current,M]),j=I.useCallback(z=>{S(Y=>({...Y,top:sr(z,"touchmove")?Math.round(z.touches[0].pageY):z.pageY}))},[S]),W=I.useCallback(z=>{M(!1);const Y=Math.floor((s.current.clientHeight+(sr(z,"touchend")?Math.round(z.changedTouches[0].pageY):z.pageY)-R.current-t-5)/l);c&&i({type:"INTERACTIVE_ROWS_HAVE_POPIN",payload:!0}),i({type:"VISIBLE_ROWS",payload:{visibleRows:Y}})},[(te=s.current)==null?void 0:te.clientHeight,R.current,t,u,i]);I.useEffect(()=>{const z=()=>{h?(document.removeEventListener("touchmove",j),document.removeEventListener("touchend",W)):(document.removeEventListener("mouseup",W),document.removeEventListener("mousemove",j))};return H?h?(document.addEventListener("touchmove",j),document.addEventListener("touchend",W)):(document.addEventListener("mousemove",j),document.addEventListener("mouseup",W)):z(),()=>{z()}},[H]),I.useEffect(()=>{var le,pe,Ne,ge,we,be;const z=((pe=(le=k.current)==null?void 0:le.getBoundingClientRect())==null?void 0:pe.top)+window.scrollY,Y=((ge=(Ne=k.current)==null?void 0:Ne.getBoundingClientRect())==null?void 0:ge.left)+window.scrollX,ie=(be=(we=k.current)==null?void 0:we.getBoundingClientRect())==null?void 0:be.width;!H&&z>0&&S({left:Y,top:z,width:ie})},[(oe=(K=k.current)==null?void 0:K.getBoundingClientRect())==null?void 0:oe.top,H]),I.useEffect(()=>()=>{i({type:"WITH_POPIN",payload:!1})},[]);const G=I.useRef(!0);return I.useEffect(()=>{!G.current&&p<=P&&m({type:"tableGrow"}),G.current=!1},[p,P]),w.jsx("div",{className:Wr.container,ref:k,onMouseDown:B,onTouchStart:B,role:"separator",title:A.getText(us),children:b&&H&&w.jsx("div",{className:Wr.resizer,style:{top:b.top,left:b.left,width:b.width}})})};za.displayName="VerticalResizer";try{za.displayName="VerticalResizer",za.__docgenInfo={description:"",displayName:"VerticalResizer",props:{analyticalTableRef:{defaultValue:null,description:"",name:"analyticalTableRef",required:!0,type:{name:"MutableRefObject"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: any; }) => void"}},extensionsHeight:{defaultValue:null,description:"",name:"extensionsHeight",required:!0,type:{name:"number"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},hasPopInColumns:{defaultValue:null,description:"",name:"hasPopInColumns",required:!0,type:{name:"boolean"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},rowsLength:{defaultValue:null,description:"",name:"rowsLength",required:!0,type:{name:"number"}},visibleRows:{defaultValue:null,description:"",name:"visibleRows",required:!0,type:{name:"number"}},handleOnLoadMore:{defaultValue:null,description:"",name:"handleOnLoadMore",required:!0,type:{name:"(e: Event) => void"}}}}}catch{}try{za.displayName="VerticalResizer",za.__docgenInfo={description:"",displayName:"VerticalResizer",props:{analyticalTableRef:{defaultValue:null,description:"",name:"analyticalTableRef",required:!0,type:{name:"MutableRefObject"}},dispatch:{defaultValue:null,description:"",name:"dispatch",required:!0,type:{name:"(e: { type: string; payload?: any; }) => void"}},extensionsHeight:{defaultValue:null,description:"",name:"extensionsHeight",required:!0,type:{name:"number"}},internalRowHeight:{defaultValue:null,description:"",name:"internalRowHeight",required:!0,type:{name:"number"}},hasPopInColumns:{defaultValue:null,description:"",name:"hasPopInColumns",required:!0,type:{name:"boolean"}},popInRowHeight:{defaultValue:null,description:"",name:"popInRowHeight",required:!0,type:{name:"number"}},rowsLength:{defaultValue:null,description:"",name:"rowsLength",required:!0,type:{name:"number"}},visibleRows:{defaultValue:null,description:"",name:"visibleRows",required:!0,type:{name:"number"}},handleOnLoadMore:{defaultValue:null,description:"",name:"handleOnLoadMore",required:!0,type:{name:"(e: Event) => void"}}}}}catch{}const Xl={undefined:()=>{}},Zl=a=>a.offsetHeight,Ze=I.forwardRef((a,s)=>{var st,ot,lt,ut,dt,mt,gt,ct,Cn,ft,pt;const{alternateRowColor:i,adjustTableHeightOnPopIn:t,className:u,columnOrder:c,columns:l,data:p,extension:P,filterable:m,globalFilterValue:R,groupBy:k,groupable:b,header:S,headerRowHeight:H,highlightField:M="status",infiniteScroll:h,infiniteScrollThreshold:y=20,isTreeTable:A,loading:B,loadingDelay:j,markNavigatedRow:W,minRows:G=5,noDataText:te,overscanCount:K,overscanCountHorizontal:oe=5,retainColumnWidth:z,reactTableOptions:Y,renderRowSubComponent:ie,rowHeight:le,scaleWidthMode:pe=tn.Default,scaleXFactor:Ne,selectedRowIds:ge,selectionBehavior:we=_a.Row,selectionMode:be=We.None,showOverlay:Me,sortable:Ue,style:Qe,subComponentsBehavior:ea=Va.Expandable,subRowsKey:ra="subRows",tableHooks:ve=[],tableInstance:Fe,visibleRowCountMode:Ce=Ye.Fixed,visibleRows:pa=15,withNavigationHighlight:_e,withRowHighlight:qa,onColumnsReorder:Pa,onGroup:Ba,onLoadMore:Oa,onRowClick:je,onRowExpandChange:Fn,onRowSelect:Ia,onSort:Mt,onTableScroll:zn,onAutoResize:Ht,NoDataComponent:Tt=En,additionalEmptyRowsCount:qn=0,...xt}=a;ma(lo,Ze.displayName);const Ma=ea===Va.Visible||ea===Va.IncludeHeight,ha=I.useId(),De=dr("@ui5/webcomponents-react"),Ka=I.useRef(`titlebar-${ha}`).current,cn=I.useRef(`invalidTableText-${ha}`).current,Je=I.useRef(null),la=I.useRef(null),ya=I.useRef(null),Vt=I.useCallback(X=>cr(ra,X)||[],[ra]),kt=De.getText(ds),wa=I.useRef(null),ja=I.useRef(null);wa.current=Ae.useTable({columns:l,data:p,defaultColumn:qo,getSubRows:Vt,stateReducer:$l,disableFilters:!m,disableSortBy:!Ue,disableGroupBy:A||!Ma&&ie?!0:!b,selectSubRows:!1,sortTypes:Xl,webComponentsReactProperties:{translatableTexts:{selectAllText:De.getText(ms),deselectAllText:De.getText(gs),expandA11yText:De.getText(cs),collapseA11yText:De.getText(fs),selectA11yText:De.getText(ps),unselectA11yText:De.getText(hs),expandNodeA11yText:De.getText(ys),collapseNodeA11yText:De.getText(ws),filteredA11yText:De.getText(vs),groupedA11yText:De.getText(bs),selectAllA11yText:De.getText(Cs),deselectAllA11yText:De.getText(Rs)},alternateRowColor:i,alwaysShowSubComponent:Ma,classes:Ge,highlightField:M,isTreeTable:A,loading:B,markNavigatedRow:W,renderRowSubComponent:ie,scaleWidthMode:pe,selectionBehavior:we,selectionMode:be,showOverlay:Me,subRowsKey:ra,tableRef:Je,tagNamesWhichShouldNotSelectARow:Ks,uniqueId:ha,withNavigationHighlight:_e,withRowHighlight:qa,onAutoResize:Ht,onColumnsReorder:Pa,onGroup:Ba,onRowClick:je,onRowExpandChange:Fn,onRowSelect:Ia,onSort:Mt},...Y},Ae.useFilters,Ae.useGlobalFilter,Ae.useColumnOrder,Ae.useGroupBy,Ae.useSortBy,Ae.useExpanded,Ae.useRowSelect,Ae.useResizeColumns,Pi,dn,ln,Mi,Ii,un,Wn,Zo,Hi,Ti,Ci,dl,xi,ol,tl,...ve);const{getTableProps:On,headerGroups:Kn,rows:he,prepareRow:jn,setColumnOrder:Jn,dispatch:xe,totalColumnsWidth:fn,visibleColumns:Ja,visibleColumnsWidth:$a,setGroupBy:pn,setGlobalFilter:va}=wa.current,q=wa.current.state,{triggerScroll:ba}=q,At=!!q.groupBy.length,$n=De.getText(Ss),Dt=De.getText(Ns),Et=te??(((st=q.filters)==null?void 0:st.length)>0||q.globalFilter?Dt:$n),[Un,hn]=ui(s),Ha=_s(hn),aa=Tr({count:$a.length,getScrollElement:()=>Je.current,estimateSize:I.useCallback(X=>$a[X],[$a]),horizontal:!0,overscan:Ha?1/0:oe,indexAttribute:"data-column-index",measureElement:!Ne||Ne===1?X=>X.getBoundingClientRect().width:void 0}),[na,yn]=zl(hn,xe);la.current&&(yn.current={...yn.current,horizontalScrollToOffset:aa.scrollToOffset,horizontalScrollToIndex:aa.scrollToIndex}),I.useEffect(()=>{ba&&ba.direction==="horizontal"&&(ba.type==="offset"?aa.scrollToOffset(...ba.args):aa.scrollToIndex(...ba.args))},[ba]);const Ua=!!ie&&(ea===Va.IncludeHeight||ea===Va.IncludeHeightExpandable)&&!!q.subComponentsHeight&&!!Object.keys(q.subComponentsHeight);Fe&&{}.hasOwnProperty.call(Fe,"current")&&(Fe.current=wa.current),typeof Fe=="function"&&Fe(wa.current);const Yn=I.useRef(null),Xn=I.useRef(null),Zn=I.useRef(null),wn=(((ot=Yn.current)==null?void 0:ot.offsetHeight)??0)+(((lt=Xn.current)==null?void 0:lt.offsetHeight)??0)+(((ut=Zn.current)==null?void 0:ut.offsetHeight)??0),ze=js(le,Je),Qn=H??ze,Ve=((dt=q==null?void 0:q.popInColumns)==null?void 0:dt.length)>0?ze+q.popInColumns.length*(ze+16):ze,Ee=q.visibleRows??pa,Ta=I.useCallback(()=>{Je.current&&xe({type:"TABLE_RESIZE",payload:{tableClientWidth:!Ne||Ne===1?Je.current.getBoundingClientRect().width:Je.current.clientWidth}})},[Je.current,Ne]),Ya=I.useCallback(()=>{var X,Se,He,Te;if((Ce===Ye.Auto||Ce===Ye.AutoWithEmptyRows)&&((X=na.current)!=null&&X.parentElement)){const $e=(Se=na.current)==null?void 0:Se.parentElement,ua=$e&&getComputedStyle($e).position==="relative"&&((He=na.current)!=null&&He.offsetTop)?(Te=na.current)==null?void 0:Te.offsetTop:0,Ra=$e==null?void 0:$e.getBoundingClientRect().height,Rn=(Ra?Ra-ua:0)-wn;let ht=0;if(Ua){let ga=0,Xa=0;for(;ga=Rn)break;ht++,Xa++}xe({type:"VISIBLE_ROWS",payload:{visibleRows:Math.max(1,ht)}})}else{const ga=Math.max(1,Math.floor(Rn/Ve));xe({type:"VISIBLE_ROWS",payload:{visibleRows:ga}})}}},[(gt=(mt=na.current)==null?void 0:mt.parentElement)==null?void 0:gt.getBoundingClientRect().height,(ct=na.current)==null?void 0:ct.getBoundingClientRect().y,wn,Ve,Ce,Ua,q.subComponentsHeight]);I.useEffect(()=>{va(R)},[R,va]),I.useEffect(()=>{var $e,ua;const X=Ir(Ta,60),Se=new ResizeObserver(X);Se.observe(Je.current);const He=Ir(Ya,60),Te=new ResizeObserver(He);return($e=na.current)!=null&&$e.parentElement&&Te.observe((ua=na.current)==null?void 0:ua.parentElement),()=>{He.cancel(),X.cancel(),Se.disconnect(),Te.disconnect()}},[Ta,Ya]),Xt(()=>{xe({type:"IS_RTL",payload:{isRtl:Ha}})},[Ha]),Xt(()=>{Ta()},[Ta]),Xt(()=>{Ya()},[Ya]),I.useEffect(()=>{q.visibleRows!==void 0&&Ce===Ye.Fixed&&xe({type:"VISIBLE_ROWS",payload:{visibleRows:void 0}})},[Ce,q.visibleRows]),I.useEffect(()=>{k&&pn(k)},[k,pn]),I.useEffect(()=>{ge&&xe({type:"SET_SELECTED_ROW_IDS",payload:{selectedRowIds:ge}})},[ge]),I.useEffect(()=>{var X;q!=null&&q.interactiveRowsHavePopIn&&(!(q!=null&&q.popInColumns)||((X=q==null?void 0:q.popInColumns)==null?void 0:X.length)===0)&&xe({type:"WITH_POPIN",payload:!1})},[q==null?void 0:q.interactiveRowsHavePopIn,(Cn=q==null?void 0:q.popInColumns)==null?void 0:Cn.length]);const Ca=I.useMemo(()=>{if(typeof q.bodyHeight=="number")return q.bodyHeight;let X;Ce===Ye.AutoWithEmptyRows?X=Ee:X=he.length{const X=he.lengthCa||he.length>X}}:{type:"TABLE_SCROLLING_ENABLED",payload:{isScrollable:he.length>X}})},[he.length,G,Ee,Ve,Ca]);const et={height:`${Ca}px`,width:fn?`${fn}px`:"100%"};I.useEffect(()=>{(c==null?void 0:c.length)>0&&Jn(c)},[c]);const Wt=I.useMemo(()=>{const X={maxWidth:"100%",overflowX:"auto",display:"flex",flexDirection:"column"};return le&&(X["--_ui5wcr-AnalyticalTableRowHeight"]=`${le}px`,X["--_ui5wcr-AnalyticalTableHeaderRowHeight"]=`${le}px`),H&&(X["--_ui5wcr-AnalyticalTableHeaderRowHeight"]=`${H}px`),q.tableClientWidth>0?{...X,...Qe}:{...X,...Qe,visibility:"hidden"}},[q.tableClientWidth,Qe,le,H]);I.useEffect(()=>{var X;z&&((X=q.columnResizing)!=null&&X.isResizingColumn)&&q.tableColResized==null&&xe({type:"TABLE_COL_RESIZED",payload:!0}),q.tableColResized&&!z&&xe({type:"TABLE_COL_RESIZED",payload:void 0})},[q.columnResizing,z,q.tableColResized]);const Gt=X=>{var He;typeof zn=="function"&&zn(X);const Se=X.currentTarget.scrollTop;if(ya.current){const Te=ya.current.firstElementChild;Te.offsetHeight!==((He=ja.current)==null?void 0:He.offsetHeight)&&(Te.style.height=`${ja.current.offsetHeight}px`),ya.current.scrollTop!==Se&&(X.currentTarget.isExternalVerticalScroll||(ya.current.scrollTop=Se,ya.current.isExternalVerticalScroll=!0),X.currentTarget.isExternalVerticalScroll=!1)}},at=I.useCallback(X=>{la.current&&!X.currentTarget.isExternalVerticalScroll&&(la.current.scrollTop=X.currentTarget.scrollTop,la.current.isExternalVerticalScroll=!0),X.currentTarget.isExternalVerticalScroll=!1},[]);I.useEffect(()=>{aa.measure()},[aa,q.columnOrder,(ft=q.columnResizing)==null?void 0:ft.isResizingColumn,l,q.groupBy]);const nt=aa.getTotalSize(),tt=q.tableClientWidth>nt,Lt=da(Ge.table,_e&&Ge.hasNavigationIndicator,tt&&Ge.showVerticalEndBorder,(u==null?void 0:u.includes("ui5-content-native-scrollbars"))&&"ui5-content-native-scrollbars"),vn=X=>{const Se=he.filter(He=>He.depth===0);Oa(Xe(X,{rowCount:Se.length,totalRowCount:he.length}))},rt=K||Math.floor(pa/2),bn=Ve!==ze?Ve:ze,Ft=Math.max(G,he.length,Ce===Ye.AutoWithEmptyRows?Ee:0)+(q.isScrollable?0:qn),it=Tr({count:Ft,getScrollElement:()=>la.current,estimateSize:I.useCallback(X=>{var Se,He,Te,$e,ua,Ra;return ie&&((Se=he[X])!=null&&Se.isExpanded||Ma)&&((Te=(He=q.subComponentsHeight)==null?void 0:He[X])==null?void 0:Te.rowId)===(($e=he[X])==null?void 0:$e.id)?bn+(((Ra=(ua=q.subComponentsHeight)==null?void 0:ua[X])==null?void 0:Ra.subComponentHeight)??0):bn},[bn,he,ie,Ma,q.subComponentsHeight]),overscan:rt,measureElement:Zl,indexAttribute:"data-virtual-row-index"});return wa.current.virtualRowsRange=it.range,w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:u,style:Wt,ref:Un,...xt,children:[S&&w.jsx(gn,{ref:Yn,titleBarId:Ka,children:S}),P&&w.jsx("div",{ref:Xn,children:P}),w.jsxs(oa,{className:Ge.tableContainerWithScrollBar,"data-component-name":"AnalyticalTableContainerWithScrollbar",children:[B&&w.jsx(Ps,{className:Ge.busyIndicator,active:!0,delay:j,"data-component-name":"AnalyticalTableBusyIndicator",children:w.jsx("span",{})}),Me&&w.jsxs(w.Fragment,{children:[w.jsx("span",{id:cn,className:Ge.hiddenA11yText,"aria-hidden":!0,children:kt}),w.jsx("div",{tabIndex:0,"aria-labelledby":`${Ka} ${cn}`,role:"region","data-component-name":"AnalyticalTableOverlay",className:Ge.overlay})]}),w.jsxs("div",{"aria-labelledby":Ka,...On(),tabIndex:Me?-1:0,role:"grid","aria-rowcount":he.length,"aria-colcount":Ja.length,"data-per-page":Ee,"aria-multiselectable":be===We.Multiple,"data-component-name":"AnalyticalTableContainer",ref:Je,className:Lt,children:[w.jsx("div",{className:Ge.tableHeaderBackgroundElement}),w.jsx("div",{className:Ge.tableBodyBackgroundElement}),Kn.map(X=>{let Se={};return X.getHeaderGroupProps&&(Se=X.getHeaderGroupProps()),Je.current&&w.jsx(on,{ref:Zn,resizeInfo:q.columnResizing,headerProps:Se,headerGroup:X,isRtl:Ha,columnVirtualizer:aa,uniqueId:ha,showVerticalEndBorder:tt},Se.key)}),B&&(he==null?void 0:he.length)===0&&w.jsx(Ga,{columns:Ja,rows:G,style:et}),!B&&(he==null?void 0:he.length)===0&&w.jsx(Tt,{noDataText:Et,className:Ge.noDataContainer,style:et}),(he==null?void 0:he.length)>0&&Je.current&&w.jsx(Ln,{rowCollapsedFlag:q.rowCollapsed,dispatch:xe,tableBodyHeight:Ca,totalColumnsWidth:aa.getTotalSize(),parentRef:la,classes:Ge,infiniteScroll:h,infiniteScrollThreshold:y,onLoadMore:vn,internalRowHeight:ze,popInRowHeight:Ve,rows:he,handleExternalScroll:Gt,visibleRows:Ee,isGrouped:At,children:w.jsx(Gn,{scrollContainerRef:ja,classes:Ge,prepareRow:jn,rows:he,scrollToRef:yn,isTreeTable:A,internalRowHeight:ze,popInRowHeight:Ve,alternateRowColor:i,visibleColumns:Ja,renderRowSubComponent:ie,alwaysShowSubComponent:Ma,markNavigatedRow:W,isRtl:Ha,subComponentsHeight:q.subComponentsHeight,dispatch:xe,columnVirtualizer:aa,manualGroupBy:Y==null?void 0:Y.manualGroupBy,subRowsKey:ra,subComponentsBehavior:ea,triggerScroll:q.triggerScroll,rowVirtualizer:it})})]}),(qn||q.isScrollable===void 0||q.isScrollable)&&w.jsx(La,{tableBodyHeight:Ca,internalRowHeight:Qn,tableRef:Je,handleVerticalScrollBarScroll:at,ref:ya,scrollContainerRef:ja,parentRef:la,nativeScrollbar:u==null?void 0:u.includes("ui5-content-native-scrollbars")})]}),Ce===Ye.Interactive&&w.jsx(za,{popInRowHeight:Ve,hasPopInColumns:((pt=q==null?void 0:q.popInColumns)==null?void 0:pt.length)>0,analyticalTableRef:na,dispatch:xe,extensionsHeight:wn,internalRowHeight:ze,rowsLength:he.length,visibleRows:Ee,handleOnLoadMore:vn})]}),w.jsx(sa,{"aria-hidden":"true",id:`scaleModeHelper-${ha}`,className:Ge.hiddenSmartColMeasure,"data-component-name":"AnalyticalTableScaleModeHelper",children:""}),w.jsx(sa,{"aria-hidden":"true",id:`scaleModeHelperHeader-${ha}`,className:da(Ge.hiddenSmartColMeasure,Ge.hiddenSmartColMeasureHeader),"data-component-name":"AnalyticalTableScaleModeHelperHeader",children:""})]})});Ze.displayName="AnalyticalTable";try{Ze.displayName="AnalyticalTable",Ze.__docgenInfo={description:"The `AnalyticalTable` provides a set of convenient functions for responsive table design, including virtualization of rows and columns, infinite scrolling and customizable columns that will, unless otherwise defined, distribute the available space equally among themselves.\nIt also provides several possibilities for working with the data, including sorting, filtering, grouping and aggregation.",displayName:"AnalyticalTable",props:{columns:{defaultValue:null,description:`Defines the columns array where you can define the configuration for each column. @@ -23,7 +23,7 @@ __Default:__ \`"Row"\``,name:"selectionBehavior",required:!1,type:{name:"enum",v - __"None":__ The rows are not selectable. - __"Single":__ You can select only one row at once. Clicking on another row will unselect the previously selected row. -- __"Multiple":__ You can select multiple rows.`,name:"selectionMode",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Single"'},{value:'"Multiple"'},{value:'"Single"'},{value:'"Multiple"'}]}},scaleWidthMode:{defaultValue:{value:'`"Default"`'},description:"Defines the column growing behaviour. Possible Values:\n\n- **Default**: The available space of the table is distributed evenly for columns without fixed width. If the minimum width of all columns is reached, horizontal scrolling will be enabled.\n- **Smart**: Every column gets the space it needs for displaying the full header text. If all header texts need more space than the available table width, horizontal scrolling will be enabled. If there is space left, columns with a long text will get more space until there is no more table space left.\n- **Grow**: Every column gets the space it needs for displaying its full header text and full text content of all cells. If it requires more space than the table has, horizontal scrolling will be enabled. To prevent huge header text from polluting the table, a max-width of 700px is applied to each column. It can be overwritten by setting the respective column property. This mode adds a calculated `minWidth` to each column. If the internally calculated `minWidth` is larger than the `width` set in the column options, it can lead to an unwanted scrollbar. To prevent this, you can set the `minWidth` in the column options yourself.\n\n__Note:__ Custom cells with components instead of text as children are ignored by the `Smart` and `Grow` modes.\n\n__Note:__ For performance reasons, the `Smart` and `Grow` modes base their calculation for table cell width on a subset of column cells. If the first 20 cells of a column are significantly smaller than the rest of the column cells, the content may still not be fully displayed for all cells.",name:"scaleWidthMode",required:!1,type:{name:"enum",value:[{value:'"Default"'},{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'},{value:'"Smart"'},{value:'"Grow"'}]}},scaleXFactor:{defaultValue:null,description:"Defines the number of the CSS `scaleX(sx: number)` function. `sx` is representing the abscissa of the scaling vector.",name:"scaleXFactor",required:!1,type:{name:"number"}},columnOrder:{defaultValue:null,description:"Defines the columns order by their `accessor` or `id`.",name:"columnOrder",required:!1,type:{name:"string[]"}},infiniteScroll:{defaultValue:null,description:`Defines whether infinite scroll is active. +- __"Multiple":__ You can select multiple rows.`,name:"selectionMode",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Single"'},{value:'"Multiple"'},{value:'"Single"'},{value:'"Multiple"'}]}},scaleWidthMode:{defaultValue:{value:'`"Default"`'},description:"Defines the column growing behaviour. Possible Values:\n\n- **Default**: The available space of the table is distributed evenly for columns without fixed width. If the minimum width of all columns is reached, horizontal scrolling will be enabled.\n- **Smart**: Every column gets the space it needs for displaying the full header text. If all header texts need more space than the available table width, horizontal scrolling will be enabled. If there is space left, columns with a long text will get more space until there is no more table space left.\n- **Grow**: Every column gets the space it needs for displaying its full header text and full text content of all cells. If it requires more space than the table has, horizontal scrolling will be enabled. To prevent huge header text from polluting the table, a max-width of 700px is applied to each column. It can be overwritten by setting the respective column property. This mode adds a calculated `minWidth` to each column. If the internally calculated `minWidth` is larger than the `width` set in the column options, it can lead to an unwanted scrollbar. To prevent this, you can set the `minWidth` in the column options yourself.\n\n__Note:__ Custom cells with components instead of text as children are ignored by the `Smart` and `Grow` modes.\n\n__Note:__ For performance reasons, the `Smart` and `Grow` modes base their calculation for table cell width on a subset of column cells. If the first 20 cells of a column are significantly smaller than the rest of the column cells, the content may still not be fully displayed for all cells.",name:"scaleWidthMode",required:!1,type:{name:"enum",value:[{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'},{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'}]}},scaleXFactor:{defaultValue:null,description:"Defines the number of the CSS `scaleX(sx: number)` function. `sx` is representing the abscissa of the scaling vector.",name:"scaleXFactor",required:!1,type:{name:"number"}},columnOrder:{defaultValue:null,description:"Defines the columns order by their `accessor` or `id`.",name:"columnOrder",required:!1,type:{name:"string[]"}},infiniteScroll:{defaultValue:null,description:`Defines whether infinite scroll is active. __Note:__ It is not recommended to use this prop in combination with a grouped table, as there is no concept for this configuration.`,name:"infiniteScroll",required:!1,type:{name:"boolean"}},infiniteScrollThreshold:{defaultValue:{value:"20"},description:"The `infiniteScrollThreshold` defines at how many remaining rows the `onLoadMore` event should be fired.\n\nExample: Your initial dataset consists of 50 entries and you want to load more data when the user scrolled to the 40th row. Then you should set the `infiniteScrollThreshold` to 10.",name:"infiniteScrollThreshold",required:!1,type:{name:"number"}},globalFilterValue:{defaultValue:null,description:`Defines the value that should be filtered on across all rows. @@ -55,7 +55,7 @@ __Default:__ \`"Row"\``,name:"selectionBehavior",required:!1,type:{name:"enum",v - __"None":__ The rows are not selectable. - __"Single":__ You can select only one row at once. Clicking on another row will unselect the previously selected row. -- __"Multiple":__ You can select multiple rows.`,name:"selectionMode",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Single"'},{value:'"Multiple"'},{value:'"Single"'},{value:'"Multiple"'}]}},scaleWidthMode:{defaultValue:{value:'`"Default"`'},description:"Defines the column growing behaviour. Possible Values:\n\n- **Default**: The available space of the table is distributed evenly for columns without fixed width. If the minimum width of all columns is reached, horizontal scrolling will be enabled.\n- **Smart**: Every column gets the space it needs for displaying the full header text. If all header texts need more space than the available table width, horizontal scrolling will be enabled. If there is space left, columns with a long text will get more space until there is no more table space left.\n- **Grow**: Every column gets the space it needs for displaying its full header text and full text content of all cells. If it requires more space than the table has, horizontal scrolling will be enabled. To prevent huge header text from polluting the table, a max-width of 700px is applied to each column. It can be overwritten by setting the respective column property. This mode adds a calculated `minWidth` to each column. If the internally calculated `minWidth` is larger than the `width` set in the column options, it can lead to an unwanted scrollbar. To prevent this, you can set the `minWidth` in the column options yourself.\n\n__Note:__ Custom cells with components instead of text as children are ignored by the `Smart` and `Grow` modes.\n\n__Note:__ For performance reasons, the `Smart` and `Grow` modes base their calculation for table cell width on a subset of column cells. If the first 20 cells of a column are significantly smaller than the rest of the column cells, the content may still not be fully displayed for all cells.",name:"scaleWidthMode",required:!1,type:{name:"enum",value:[{value:'"Default"'},{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'},{value:'"Smart"'},{value:'"Grow"'}]}},scaleXFactor:{defaultValue:null,description:"Defines the number of the CSS `scaleX(sx: number)` function. `sx` is representing the abscissa of the scaling vector.",name:"scaleXFactor",required:!1,type:{name:"number"}},columnOrder:{defaultValue:null,description:"Defines the columns order by their `accessor` or `id`.",name:"columnOrder",required:!1,type:{name:"string[]"}},infiniteScroll:{defaultValue:null,description:`Defines whether infinite scroll is active. +- __"Multiple":__ You can select multiple rows.`,name:"selectionMode",required:!1,type:{name:"enum",value:[{value:'"None"'},{value:'"None"'},{value:'"Single"'},{value:'"Multiple"'},{value:'"Single"'},{value:'"Multiple"'}]}},scaleWidthMode:{defaultValue:{value:'`"Default"`'},description:"Defines the column growing behaviour. Possible Values:\n\n- **Default**: The available space of the table is distributed evenly for columns without fixed width. If the minimum width of all columns is reached, horizontal scrolling will be enabled.\n- **Smart**: Every column gets the space it needs for displaying the full header text. If all header texts need more space than the available table width, horizontal scrolling will be enabled. If there is space left, columns with a long text will get more space until there is no more table space left.\n- **Grow**: Every column gets the space it needs for displaying its full header text and full text content of all cells. If it requires more space than the table has, horizontal scrolling will be enabled. To prevent huge header text from polluting the table, a max-width of 700px is applied to each column. It can be overwritten by setting the respective column property. This mode adds a calculated `minWidth` to each column. If the internally calculated `minWidth` is larger than the `width` set in the column options, it can lead to an unwanted scrollbar. To prevent this, you can set the `minWidth` in the column options yourself.\n\n__Note:__ Custom cells with components instead of text as children are ignored by the `Smart` and `Grow` modes.\n\n__Note:__ For performance reasons, the `Smart` and `Grow` modes base their calculation for table cell width on a subset of column cells. If the first 20 cells of a column are significantly smaller than the rest of the column cells, the content may still not be fully displayed for all cells.",name:"scaleWidthMode",required:!1,type:{name:"enum",value:[{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'},{value:'"Default"'},{value:'"Smart"'},{value:'"Grow"'}]}},scaleXFactor:{defaultValue:null,description:"Defines the number of the CSS `scaleX(sx: number)` function. `sx` is representing the abscissa of the scaling vector.",name:"scaleXFactor",required:!1,type:{name:"number"}},columnOrder:{defaultValue:null,description:"Defines the columns order by their `accessor` or `id`.",name:"columnOrder",required:!1,type:{name:"string[]"}},infiniteScroll:{defaultValue:null,description:`Defines whether infinite scroll is active. __Note:__ It is not recommended to use this prop in combination with a grouped table, as there is no concept for this configuration.`,name:"infiniteScroll",required:!1,type:{name:"boolean"}},infiniteScrollThreshold:{defaultValue:{value:"20"},description:"The `infiniteScrollThreshold` defines at how many remaining rows the `onLoadMore` event should be fired.\n\nExample: Your initial dataset consists of 50 entries and you want to load more data when the user scrolled to the 40th row. Then you should set the `infiniteScrollThreshold` to 10.",name:"infiniteScrollThreshold",required:!1,type:{name:"number"}},globalFilterValue:{defaultValue:null,description:`Defines the value that should be filtered on across all rows. diff --git a/nightly/assets/AnalyticalTableHooks-DzXlIaJE.js b/nightly/assets/AnalyticalTableHooks-BSNsT-q2.js similarity index 89% rename from nightly/assets/AnalyticalTableHooks-DzXlIaJE.js rename to nightly/assets/AnalyticalTableHooks-BSNsT-q2.js index 944f5d1b76..0dbc2f3b83 100644 --- a/nightly/assets/AnalyticalTableHooks-DzXlIaJE.js +++ b/nightly/assets/AnalyticalTableHooks-BSNsT-q2.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as e}from"./index-BTZqIHVs.js";import"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";import"./TagDesign-Dou_yO3g.js";import"./index-RYns6xqu.js";import"./index-sbqOYYIm.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./Button-BOw4gYNT.js";import"./withWebComponent-v3aPz19k.js";import"./copy-C9H6Zlih.js";import{I as m,F as n}from"./CommandsAndQueries-CaebgOF-.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as a}from"./AnalyticalTableHooks.stories-BvGmDWrt.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./Keys-DoZifIQ_.js";import"./utils-BWMMwCMQ.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./i18n-defaults-CMHHS2wK.js";import"./client-BzooOYO_.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-DmoPyW9s.js";import"./clsx-B-dksMZM.js";import"./useStylesheet-BXpvj2j9.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./index-ziIcWBHz.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./AnalyticalTable.stories-H0AqZiJb.js";import"./delete-BVNnXptZ.js";import"./List-CVE8axbO.js";import"./ItemNavigation-Cpw3mMvK.js";import"./getNormalizedTarget-C4mxORXI.js";import"./debounce-TTkz9ISH.js";import"./TabbableElements-BJJu_CDc.js";import"./RadioButton-VoJW4GtG.js";import"./ValueState-Bg0UWejw.js";import"./CheckBox-DKa-BKsy.js";import"./accept-BLyty2Fr.js";import"./slim-arrow-right-Dax12esc.js";import"./settings-CqtXcrqx.js";import"./i18n-defaults-DPj_Cvrr.js";import"./useIsRTL-cDadyecF.js";import"./directionChange-CZzBlQEM.js";import"./index-C-Zfmu7Z.js";import"./index-BSG3jsMu.js";import"./filter-Dj9UIpKk.js";import"./group-2-P443_1HC.js";import"./navigation-down-arrow-D_RUrFbJ.js";import"./ThemingParameters-B358vlzA.js";import"./index-DowKepYt.js";import"./stopPropagation-BJWsenK5.js";import"./index-RlyTwMZE.js";import"./Input-u9rwYWjF.js";import"./ResponsivePopoverCommon.css-D-A5aToF.js";import"./ValueStateMessage.css-QVpbuZ5I.js";import"./Suggestions.css-Dj9ke65d.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./decline-Cc1aw1Lx.js";import"./index-DRT7K_eN.js";import"./index-BNyNTvfd.js";import"./ListItemCustom-S_X6ur0g.js";import"./index-CxdXzNHJ.js";import"./navigation-right-arrow-BZS6aijN.js";import"./useCurrentTheme-BV9Ov3hA.js";import"./IndicationColor-LRWnbNUo.js";import"./index-CcuYs194.js";import"./index-BuNglZ6G.js";import"./debounce-D7W5PopO.js";import"./index-B6aAKid5.js";import"./Select-CKTzC6QP.js";import"./InvisibleMessage-P8K1iB6d.js";import"./slim-arrow-down-ycu7suf1.js";import"./index-CtqmIz4W.js";import"./Option-D6ST2zcg.js";import"./index-XqPMq3Wy.js";import"./Token-B4PU-HPu.js";import"./ScrollEnablement-6Met_mOA.js";import"./animate-DF-0g--S.js";import"./sys-cancel-BBVsgOP8.js";import"./ToggleButton-DGtLZXxz.js";import"./SuggestionItem-Ts3HdOGI.js";import"./ComboBoxItem-DK4uDLwI.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-BT_dl5sn.js";function r(i){const t={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...p(),...i.components};return o.jsxs(o.Fragment,{children:[o.jsx(e,{of:a}),` +import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as e}from"./index-DF88Vfek.js";import"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";import"./TagDesign-Dou_yO3g.js";import"./index-RYns6xqu.js";import"./index-sbqOYYIm.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./Button-BOw4gYNT.js";import"./withWebComponent-v3aPz19k.js";import"./copy-C9H6Zlih.js";import{I as m,F as n}from"./CommandsAndQueries-fTvyWV95.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as a}from"./AnalyticalTableHooks.stories-pV6aUZHw.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./Keys-DoZifIQ_.js";import"./utils-BWMMwCMQ.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./i18n-defaults-CMHHS2wK.js";import"./client-BzooOYO_.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-NsU9pK7A.js";import"./clsx-B-dksMZM.js";import"./useStylesheet-BXpvj2j9.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./index-ziIcWBHz.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./AnalyticalTable.stories-qGjNx3bC.js";import"./delete-BVNnXptZ.js";import"./List-CVE8axbO.js";import"./ItemNavigation-Cpw3mMvK.js";import"./getNormalizedTarget-C4mxORXI.js";import"./debounce-TTkz9ISH.js";import"./TabbableElements-BJJu_CDc.js";import"./RadioButton-VoJW4GtG.js";import"./ValueState-Bg0UWejw.js";import"./CheckBox-DKa-BKsy.js";import"./accept-BLyty2Fr.js";import"./slim-arrow-right-Dax12esc.js";import"./settings-CqtXcrqx.js";import"./i18n-defaults-DPj_Cvrr.js";import"./useIsRTL-cDadyecF.js";import"./directionChange-CZzBlQEM.js";import"./index-C-Zfmu7Z.js";import"./index-BSG3jsMu.js";import"./filter-Dj9UIpKk.js";import"./group-2-P443_1HC.js";import"./navigation-down-arrow-D_RUrFbJ.js";import"./ThemingParameters-B358vlzA.js";import"./index-DowKepYt.js";import"./stopPropagation-BJWsenK5.js";import"./index-RlyTwMZE.js";import"./Input-u9rwYWjF.js";import"./ResponsivePopoverCommon.css-D-A5aToF.js";import"./ValueStateMessage.css-QVpbuZ5I.js";import"./Suggestions.css-Dj9ke65d.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./decline-Cc1aw1Lx.js";import"./index-DRT7K_eN.js";import"./index-BNyNTvfd.js";import"./ListItemCustom-S_X6ur0g.js";import"./index-CxdXzNHJ.js";import"./navigation-right-arrow-BZS6aijN.js";import"./useCurrentTheme-BV9Ov3hA.js";import"./IndicationColor-LRWnbNUo.js";import"./index-CcuYs194.js";import"./index-BuNglZ6G.js";import"./debounce-D7W5PopO.js";import"./index-B6aAKid5.js";import"./Select-CKTzC6QP.js";import"./InvisibleMessage-P8K1iB6d.js";import"./slim-arrow-down-ycu7suf1.js";import"./index-CtqmIz4W.js";import"./Option-D6ST2zcg.js";import"./index-XqPMq3Wy.js";import"./Token-B4PU-HPu.js";import"./ScrollEnablement-6Met_mOA.js";import"./animate-DF-0g--S.js";import"./sys-cancel-BBVsgOP8.js";import"./ToggleButton-DGtLZXxz.js";import"./SuggestionItem-Ts3HdOGI.js";import"./ComboBoxItem-DK4uDLwI.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-BS6IXka7.js";function r(i){const t={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...p(),...i.components};return o.jsxs(o.Fragment,{children:[o.jsx(e,{of:a}),` `,o.jsx(t.h1,{id:"plugin-hooks",children:"Plugin Hooks"}),` `,o.jsx(m,{moduleNames:["AnalyticalTableHooks"],packageName:"@ui5/webcomponents-react"}),` `,o.jsxs(t.p,{children:["We're offering plugin hooks to extend the functionality of the ",o.jsx(t.code,{children:"AnalyticalTable"})," component. The following hooks are available:"]}),` diff --git a/nightly/assets/AnalyticalTableHooks.stories-BvGmDWrt.js b/nightly/assets/AnalyticalTableHooks.stories-pV6aUZHw.js similarity index 99% rename from nightly/assets/AnalyticalTableHooks.stories-BvGmDWrt.js rename to nightly/assets/AnalyticalTableHooks.stories-pV6aUZHw.js index d2a99ba2be..3b19b793d6 100644 --- a/nightly/assets/AnalyticalTableHooks.stories-BvGmDWrt.js +++ b/nightly/assets/AnalyticalTableHooks.stories-pV6aUZHw.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DEdD30eg.js";import{A as b,c as Z,g as re,m as oe,d as w,e as ie,f as le}from"./AnalyticalTable.stories-H0AqZiJb.js";import{I as ce}from"./Input-u9rwYWjF.js";import{r as h}from"./index-RYns6xqu.js";import{F as S,c as j,a as de}from"./index-DmoPyW9s.js";import{ba as ue}from"./i18n-defaults-CMHHS2wK.js";import{u as me}from"./i18n-defaults-DPj_Cvrr.js";import{T as A}from"./index-BT_dl5sn.js";import{e as B}from"./index-C-Zfmu7Z.js";import{C as ee}from"./index-CcuYs194.js";import{B as H}from"./index-DYGApiRr.js";import{L as x}from"./index-D5soTVf3.js";import{I as ge}from"./index-RlyTwMZE.js";import{d as he}from"./debounce-D7W5PopO.js";import{T}from"./index-jVoXpPWr.js";const ae=e=>{const o=me("@ui5/webcomponents").getText(ue),r=h.useCallback((d,{cell:{value:s}})=>typeof s!="number"&&!s?[d,{"aria-label":`${d["aria-label"]} ${o}`}]:d,[o]);e.getCellProps.push(r)};ae.pluginName="useAnnounceEmptyCells";const fe=(e,a)=>{let o=e.lastIndexOf(".");o===-1&&(o=1/0);const r=e.slice(0,o);return[a[r],o]},ne=e=>{const a={},o=e.lastIndexOf(".");return a[e]=!0,o!==-1&&Object.assign(a,ne(e.slice(0,o))),a},pe=(e,a,o)=>{const r={};let d="";const s=(u,t=null)=>{for(const i of u)if(i.subRows.length>0)s(i.subRows,i.id);else if(t!==null&&d!==t){d=t;const c=l=>{const[m,f]=fe(l,a),p=m.subRows.filter(y=>o.selectedRowIds[y.id]),g=m.subRows.length===p.length;if(p.length>0&&!g){const y=m.id;Object.assign(r,ne(y));return}f!==1/0&&c(m.id)};c(i.id)}};return s(e),r},N=e=>{const a=(s,{row:u,instance:t})=>{var c,l;let i;return t.isAllRowsSelected?i=!1:i=((l=(c=t==null?void 0:t.state)==null?void 0:c.indeterminateRows)==null?void 0:l[u.id])??!1,s.checked&&!t.state.selectedRowIds[u.id]&&u.toggleRowSelected(!0),[s,{indeterminate:i,checked:i?!0:s.checked}]},o=(s,u,t,i)=>{const{rowsById:c,state:l,rows:m}=i;if(u.type==="INDETERMINATE_ROW_IDS"){if(u.payload==="reset")return{...s,indeterminateRows:{}};const f=pe(m,c,l);return{...s,indeterminateRows:f}}},r=s=>{const{data:u,dispatch:t,rowsById:i,state:{selectedRowIds:c,indeterminateRows:l},webComponentsReactProperties:{selectionMode:m,selectionBehavior:f,isTreeTable:p}}=s;h.useEffect(()=>{p&&m===b.Multiple&&f!==Z.RowOnly&&Object.keys(c).length&&Object.keys(i).length!==Object.keys(c).length?t({type:"INDETERMINATE_ROW_IDS"}):typeof l=="object"&&Object.keys(l).length&&t({type:"INDETERMINATE_ROW_IDS",payload:"reset"})},[u,c,p,m,f]),h.useEffect(()=>{typeof e=="function"&&l&&e({indeterminateRowsById:l,tableInstance:s})},[l])},d=s=>{s.getToggleRowSelectedProps.push(a),s.stateReducers.push(o),s.useInstanceAfterData.push(r)};return d.pluginName="useIndeterminate",d};try{N.displayName="useIndeterminateRowSelection",N.__docgenInfo={description:"A plugin hook that marks parent rows as indeterminate if a child row is selected in `Multiple` mode.\nWhen using this hook, it is recommended to also select all sub-rows when selecting a row. (`reactTableOptions={{ selectSubRows: true }}`)\n\n__Note:__ The `indeterminate` state has a higher priority than the `selected` state. Therefore, a row can be selected and indeterminate at the same time. This can for example happen, if `selectSubRows: true` is set and a row with sub-rows is selected and then a sub-row is unselected.\n\n__Note:__ This hook has to traverse the whole data tree on each selection, which can lead to performance degradation with large datasets. Please use with caution!",displayName:"useIndeterminateRowSelection",props:{}}}catch{}try{N.displayName="useIndeterminateRowSelection",N.__docgenInfo={description:"A plugin hook that marks parent rows as indeterminate if a child row is selected in `Multiple` mode.\nWhen using this hook, it is recommended to also select all sub-rows when selecting a row. (`reactTableOptions={{ selectSubRows: true }}`)\n\n__Note:__ The `indeterminate` state has a higher priority than the `selected` state. Therefore, a row can be selected and indeterminate at the same time. This can for example happen, if `selectSubRows: true` is set and a row with sub-rows is selected and then a sub-row is unselected.\n\n__Note:__ This hook has to traverse the whole data tree on each selection, which can lead to performance degradation with large datasets. Please use with caution!",displayName:"useIndeterminateRowSelection",props:{}}}catch{}const be=(e="isSelected")=>{const a=({flatRows:r,toggleRowSelected:d})=>{h.useEffect(()=>{r.forEach(({id:s,original:u})=>{e in u&&d(s,u.isSelected)})},[r,e])},o=r=>{r.useInstanceAfterData.push(a)};return o.pluginName="useManualRowSelect",o},we=(e,a)=>{const o=he(e,(a==null?void 0:a.wait)??100),r=s=>{const{state:u,columns:t}=s,{columnResizing:i}=u,{isResizingColumn:c,columnWidths:l}=i,m=h.useRef(void 0);h.useEffect(()=>{if(c&&(a!=null&&a.liveUpdate)){const f=t.find(p=>p.id===c);o({columnWidth:l[c],header:f})}},[i,a==null?void 0:a.liveUpdate,t]),h.useEffect(()=>{if(a!=null&&a.liveUpdate)return()=>o.cancel()},[a==null?void 0:a.liveUpdate]),h.useEffect(()=>{if(!(a!=null&&a.liveUpdate)){const f=t.find(p=>p.id===m.current);c&&(m.current=c),!c&&m.current&&e({columnWidth:l[m.current],header:f})}},[i,a==null?void 0:a.liveUpdate,t])},d=s=>{s.useFinalInstance.push(r)};return d.pluginName="useOnColumnResize",d},Se=e=>{const a=o=>{o.stateReducers.push((r,d)=>{if(d.type==="toggleSortBy"){if(r.sortBy.length<=1)return r;{const s=[...r.sortBy],u=e.flatMap(t=>{const i=s.findIndex(c=>c.id===t);if(i!==-1){const c=s[i];return s.splice(i,1),[c]}return[]});return{...r,sortBy:[...u,...s]}}}return r})};return a.pluginName="useOrderedMultiSort",a},Re={verticalAlign:"middle"},ye=(e,{instance:{webComponentsReactProperties:{selectionMode:a}}})=>{if(e.key==="header___ui5wcr__internal_selection_column"&&a===b.Multiple){const o={...e.style,cursor:"auto"};return[e,{onClick:void 0,onKeyDown:void 0,title:void 0,style:o}]}return e},xe=e=>e.map(a=>a.id==="__ui5wcr__internal_selection_column"?{...a,Cell:o=>{const{webComponentsReactProperties:r,row:d}=o;return d.disableSelect===!0?d.isGrouped&&r.selectionMode===b.Single?null:r.selectionMode===b.Single?n.jsx("div",{onClick:void 0,"data-name":"internal_selection_column"}):n.jsx(ee,{...d.getToggleRowSelectedProps(),disabled:!0,style:Re,"data-name":"internal_selection_column",tabIndex:-1}):a.Cell(o)},Header:()=>null}:a),R=e=>{const a=typeof e=="function"?e:t=>re(t.original,e,void 0),o=(t,{row:i,instance:c})=>{const{webComponentsReactProperties:l}=c;return a(i)===!0?(i.disableSelect=!0,{...t,onClick:g=>{typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i}))},onKeyDown:g=>{(g.code==="Enter"||g.code==="Space")&&(g.preventDefault(),g.code==="Enter"&&typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i})))},onKeyUp:g=>{g.code==="Space"&&(g.preventDefault(),typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i})))},className:l.classes.tr}):t},r=t=>[...t,e],d=(t,{cell:{row:i,column:c},instance:l})=>{const{selectionMode:m,selectionBehavior:f}=l.webComponentsReactProperties;if(a(i)===!0&&m!==b.None&&(f!==Z.RowSelector||c.id==="__ui5wcr__internal_selection_column")){const{"aria-label":p,...g}=t;if(c.id==="__ui5wcr__internal_selection_column"){const se={...t.style,cursor:"auto"};return{...g,"aria-disabled":!0,style:se}}const{"aria-selected":te,...y}=g;return y}return t},s=(t,{row:i})=>{if(a(i)===!0){const{title:c,...l}=t;return l}return t},u=t=>{t.getHeaderProps.push(ye),t.getRowProps.push(o),t.columns.push(xe),t.columnsDeps.push(r),t.getCellProps.push(d),t.getToggleRowSelectedProps.push(s)};return u.pluginName="useRowDisableSelection",u};try{R.displayName="useRowDisableSelection",R.__docgenInfo={description:`A plugin hook for disabling row selection of specific rows. +import{j as n}from"./jsx-runtime-DEdD30eg.js";import{A as b,c as Z,g as re,m as oe,d as w,e as ie,f as le}from"./AnalyticalTable.stories-qGjNx3bC.js";import{I as ce}from"./Input-u9rwYWjF.js";import{r as h}from"./index-RYns6xqu.js";import{F as S,c as j,a as de}from"./index-NsU9pK7A.js";import{ba as ue}from"./i18n-defaults-CMHHS2wK.js";import{u as me}from"./i18n-defaults-DPj_Cvrr.js";import{T as A}from"./index-BS6IXka7.js";import{e as B}from"./index-C-Zfmu7Z.js";import{C as ee}from"./index-CcuYs194.js";import{B as H}from"./index-het569gt.js";import{L as x}from"./index-D5soTVf3.js";import{I as ge}from"./index-RlyTwMZE.js";import{d as he}from"./debounce-D7W5PopO.js";import{T}from"./index-jVoXpPWr.js";const ae=e=>{const o=me("@ui5/webcomponents").getText(ue),r=h.useCallback((d,{cell:{value:s}})=>typeof s!="number"&&!s?[d,{"aria-label":`${d["aria-label"]} ${o}`}]:d,[o]);e.getCellProps.push(r)};ae.pluginName="useAnnounceEmptyCells";const fe=(e,a)=>{let o=e.lastIndexOf(".");o===-1&&(o=1/0);const r=e.slice(0,o);return[a[r],o]},ne=e=>{const a={},o=e.lastIndexOf(".");return a[e]=!0,o!==-1&&Object.assign(a,ne(e.slice(0,o))),a},pe=(e,a,o)=>{const r={};let d="";const s=(u,t=null)=>{for(const i of u)if(i.subRows.length>0)s(i.subRows,i.id);else if(t!==null&&d!==t){d=t;const c=l=>{const[m,f]=fe(l,a),p=m.subRows.filter(y=>o.selectedRowIds[y.id]),g=m.subRows.length===p.length;if(p.length>0&&!g){const y=m.id;Object.assign(r,ne(y));return}f!==1/0&&c(m.id)};c(i.id)}};return s(e),r},N=e=>{const a=(s,{row:u,instance:t})=>{var c,l;let i;return t.isAllRowsSelected?i=!1:i=((l=(c=t==null?void 0:t.state)==null?void 0:c.indeterminateRows)==null?void 0:l[u.id])??!1,s.checked&&!t.state.selectedRowIds[u.id]&&u.toggleRowSelected(!0),[s,{indeterminate:i,checked:i?!0:s.checked}]},o=(s,u,t,i)=>{const{rowsById:c,state:l,rows:m}=i;if(u.type==="INDETERMINATE_ROW_IDS"){if(u.payload==="reset")return{...s,indeterminateRows:{}};const f=pe(m,c,l);return{...s,indeterminateRows:f}}},r=s=>{const{data:u,dispatch:t,rowsById:i,state:{selectedRowIds:c,indeterminateRows:l},webComponentsReactProperties:{selectionMode:m,selectionBehavior:f,isTreeTable:p}}=s;h.useEffect(()=>{p&&m===b.Multiple&&f!==Z.RowOnly&&Object.keys(c).length&&Object.keys(i).length!==Object.keys(c).length?t({type:"INDETERMINATE_ROW_IDS"}):typeof l=="object"&&Object.keys(l).length&&t({type:"INDETERMINATE_ROW_IDS",payload:"reset"})},[u,c,p,m,f]),h.useEffect(()=>{typeof e=="function"&&l&&e({indeterminateRowsById:l,tableInstance:s})},[l])},d=s=>{s.getToggleRowSelectedProps.push(a),s.stateReducers.push(o),s.useInstanceAfterData.push(r)};return d.pluginName="useIndeterminate",d};try{N.displayName="useIndeterminateRowSelection",N.__docgenInfo={description:"A plugin hook that marks parent rows as indeterminate if a child row is selected in `Multiple` mode.\nWhen using this hook, it is recommended to also select all sub-rows when selecting a row. (`reactTableOptions={{ selectSubRows: true }}`)\n\n__Note:__ The `indeterminate` state has a higher priority than the `selected` state. Therefore, a row can be selected and indeterminate at the same time. This can for example happen, if `selectSubRows: true` is set and a row with sub-rows is selected and then a sub-row is unselected.\n\n__Note:__ This hook has to traverse the whole data tree on each selection, which can lead to performance degradation with large datasets. Please use with caution!",displayName:"useIndeterminateRowSelection",props:{}}}catch{}try{N.displayName="useIndeterminateRowSelection",N.__docgenInfo={description:"A plugin hook that marks parent rows as indeterminate if a child row is selected in `Multiple` mode.\nWhen using this hook, it is recommended to also select all sub-rows when selecting a row. (`reactTableOptions={{ selectSubRows: true }}`)\n\n__Note:__ The `indeterminate` state has a higher priority than the `selected` state. Therefore, a row can be selected and indeterminate at the same time. This can for example happen, if `selectSubRows: true` is set and a row with sub-rows is selected and then a sub-row is unselected.\n\n__Note:__ This hook has to traverse the whole data tree on each selection, which can lead to performance degradation with large datasets. Please use with caution!",displayName:"useIndeterminateRowSelection",props:{}}}catch{}const be=(e="isSelected")=>{const a=({flatRows:r,toggleRowSelected:d})=>{h.useEffect(()=>{r.forEach(({id:s,original:u})=>{e in u&&d(s,u.isSelected)})},[r,e])},o=r=>{r.useInstanceAfterData.push(a)};return o.pluginName="useManualRowSelect",o},we=(e,a)=>{const o=he(e,(a==null?void 0:a.wait)??100),r=s=>{const{state:u,columns:t}=s,{columnResizing:i}=u,{isResizingColumn:c,columnWidths:l}=i,m=h.useRef(void 0);h.useEffect(()=>{if(c&&(a!=null&&a.liveUpdate)){const f=t.find(p=>p.id===c);o({columnWidth:l[c],header:f})}},[i,a==null?void 0:a.liveUpdate,t]),h.useEffect(()=>{if(a!=null&&a.liveUpdate)return()=>o.cancel()},[a==null?void 0:a.liveUpdate]),h.useEffect(()=>{if(!(a!=null&&a.liveUpdate)){const f=t.find(p=>p.id===m.current);c&&(m.current=c),!c&&m.current&&e({columnWidth:l[m.current],header:f})}},[i,a==null?void 0:a.liveUpdate,t])},d=s=>{s.useFinalInstance.push(r)};return d.pluginName="useOnColumnResize",d},Se=e=>{const a=o=>{o.stateReducers.push((r,d)=>{if(d.type==="toggleSortBy"){if(r.sortBy.length<=1)return r;{const s=[...r.sortBy],u=e.flatMap(t=>{const i=s.findIndex(c=>c.id===t);if(i!==-1){const c=s[i];return s.splice(i,1),[c]}return[]});return{...r,sortBy:[...u,...s]}}}return r})};return a.pluginName="useOrderedMultiSort",a},Re={verticalAlign:"middle"},ye=(e,{instance:{webComponentsReactProperties:{selectionMode:a}}})=>{if(e.key==="header___ui5wcr__internal_selection_column"&&a===b.Multiple){const o={...e.style,cursor:"auto"};return[e,{onClick:void 0,onKeyDown:void 0,title:void 0,style:o}]}return e},xe=e=>e.map(a=>a.id==="__ui5wcr__internal_selection_column"?{...a,Cell:o=>{const{webComponentsReactProperties:r,row:d}=o;return d.disableSelect===!0?d.isGrouped&&r.selectionMode===b.Single?null:r.selectionMode===b.Single?n.jsx("div",{onClick:void 0,"data-name":"internal_selection_column"}):n.jsx(ee,{...d.getToggleRowSelectedProps(),disabled:!0,style:Re,"data-name":"internal_selection_column",tabIndex:-1}):a.Cell(o)},Header:()=>null}:a),R=e=>{const a=typeof e=="function"?e:t=>re(t.original,e,void 0),o=(t,{row:i,instance:c})=>{const{webComponentsReactProperties:l}=c;return a(i)===!0?(i.disableSelect=!0,{...t,onClick:g=>{typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i}))},onKeyDown:g=>{(g.code==="Enter"||g.code==="Space")&&(g.preventDefault(),g.code==="Enter"&&typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i})))},onKeyUp:g=>{g.code==="Space"&&(g.preventDefault(),typeof l.onRowClick=="function"&&l.onRowClick(B(g,{row:i})))},className:l.classes.tr}):t},r=t=>[...t,e],d=(t,{cell:{row:i,column:c},instance:l})=>{const{selectionMode:m,selectionBehavior:f}=l.webComponentsReactProperties;if(a(i)===!0&&m!==b.None&&(f!==Z.RowSelector||c.id==="__ui5wcr__internal_selection_column")){const{"aria-label":p,...g}=t;if(c.id==="__ui5wcr__internal_selection_column"){const se={...t.style,cursor:"auto"};return{...g,"aria-disabled":!0,style:se}}const{"aria-selected":te,...y}=g;return y}return t},s=(t,{row:i})=>{if(a(i)===!0){const{title:c,...l}=t;return l}return t},u=t=>{t.getHeaderProps.push(ye),t.getRowProps.push(o),t.columns.push(xe),t.columnsDeps.push(r),t.getCellProps.push(d),t.getToggleRowSelectedProps.push(s)};return u.pluginName="useRowDisableSelection",u};try{R.displayName="useRowDisableSelection",R.__docgenInfo={description:`A plugin hook for disabling row selection of specific rows. __Note:__ The "Select All" checkbox is not available with this hook.`,displayName:"useRowDisableSelection",props:{}}}catch{}try{R.displayName="useRowDisableSelection",R.__docgenInfo={description:`A plugin hook for disabling row selection of specific rows. diff --git a/nightly/assets/ArgTypesWithNote-BzGsOdma.js b/nightly/assets/ArgTypesWithNote-tbsAVKts.js similarity index 76% rename from nightly/assets/ArgTypesWithNote-BzGsOdma.js rename to nightly/assets/ArgTypesWithNote-tbsAVKts.js index 29e211d00f..a161f9604e 100644 --- a/nightly/assets/ArgTypesWithNote-BzGsOdma.js +++ b/nightly/assets/ArgTypesWithNote-tbsAVKts.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-DEdD30eg.js";import{ah as e}from"./index-BTZqIHVs.js";import{M as a,a as p}from"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";const l="_tableContainer_uvl70_1",m="_strip_uvl70_9",r={tableContainer:l,strip:m};function d(o){const{hideHTMLPropsNote:i,noteText:n,...s}=o;return i?t.jsx(e,{...s}):t.jsxs("div",{className:r.tableContainer,children:[t.jsx(a,{design:p.Information,hideCloseButton:!0,className:r.strip,children:n??"This component supports all HTML attributes."}),t.jsx(e,{...s})]})}export{d as A}; +import{j as t}from"./jsx-runtime-DEdD30eg.js";import{ah as e}from"./index-DF88Vfek.js";import{M as a,a as p}from"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";const l="_tableContainer_uvl70_1",m="_strip_uvl70_9",r={tableContainer:l,strip:m};function d(o){const{hideHTMLPropsNote:i,noteText:n,...s}=o;return i?t.jsx(e,{...s}):t.jsxs("div",{className:r.tableContainer,children:[t.jsx(a,{design:p.Information,hideCloseButton:!0,className:r.strip,children:n??"This component supports all HTML attributes."}),t.jsx(e,{...s})]})}export{d as A}; diff --git a/nightly/assets/Avatar-wBKtQV9K.js b/nightly/assets/Avatar-Bc7l0Jj9.js similarity index 77% rename from nightly/assets/Avatar-wBKtQV9K.js rename to nightly/assets/Avatar-Bc7l0Jj9.js index 050267b47e..e66716ddcd 100644 --- a/nightly/assets/Avatar-wBKtQV9K.js +++ b/nightly/assets/Avatar-Bc7l0Jj9.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as n,af as e}from"./index-BTZqIHVs.js";import"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";import{C as s}from"./ControlsWithNote-BxJ65CsC.js";import{D as a}from"./DocsHeader-1j-Nmm97.js";import{F as x}from"./CommandsAndQueries-CaebgOF-.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as f,D as m}from"./Avatar.stories-BWkRpmha.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-DK7lmrjm.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-DmoPyW9s.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./AvatarColorScheme-Bo7yU2Uu.js";import"./AvatarSize-BceVhWoP.js";function i(t){const r={h2:"h2",...p(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:f}),` +import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as n,af as e}from"./index-DF88Vfek.js";import"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";import{C as s}from"./ControlsWithNote-CXZY75qB.js";import{D as a}from"./DocsHeader-CXgpumkn.js";import{F as x}from"./CommandsAndQueries-fTvyWV95.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as f,D as m}from"./Avatar.stories-BWkRpmha.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-7RSyx66T.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-NsU9pK7A.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./AvatarColorScheme-Bo7yU2Uu.js";import"./AvatarSize-BceVhWoP.js";function i(t){const r={h2:"h2",...p(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:f}),` `,o.jsx(a,{since:"0.9.0"}),` `,o.jsx("br",{}),` `,o.jsx(r.h2,{id:"example",children:"Example"}),` diff --git a/nightly/assets/AvatarGroup-D5teYoLU.js b/nightly/assets/AvatarGroup-B0hVZ7F1.js similarity index 79% rename from nightly/assets/AvatarGroup-D5teYoLU.js rename to nightly/assets/AvatarGroup-B0hVZ7F1.js index 0f971f3e4c..d56624020a 100644 --- a/nightly/assets/AvatarGroup-D5teYoLU.js +++ b/nightly/assets/AvatarGroup-B0hVZ7F1.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as n,af as e}from"./index-BTZqIHVs.js";import"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";import{C as s}from"./ControlsWithNote-BxJ65CsC.js";import{D as a}from"./DocsHeader-1j-Nmm97.js";import{F as x}from"./CommandsAndQueries-CaebgOF-.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as f,D as m}from"./AvatarGroup.stories-HUwa9WkF.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-DK7lmrjm.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-DmoPyW9s.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./ItemNavigation-Cpw3mMvK.js";import"./AvatarSize-BceVhWoP.js";import"./AvatarColorScheme-Bo7yU2Uu.js";function i(t){const r={h2:"h2",...p(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:f}),` +import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as p}from"./index-CcnH5Kt0.js";import{ae as n,af as e}from"./index-DF88Vfek.js";import"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";import{C as s}from"./ControlsWithNote-CXZY75qB.js";import{D as a}from"./DocsHeader-CXgpumkn.js";import{F as x}from"./CommandsAndQueries-fTvyWV95.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as f,D as m}from"./AvatarGroup.stories-HUwa9WkF.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-7RSyx66T.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-NsU9pK7A.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./ItemNavigation-Cpw3mMvK.js";import"./AvatarSize-BceVhWoP.js";import"./AvatarColorScheme-Bo7yU2Uu.js";function i(t){const r={h2:"h2",...p(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:f}),` `,o.jsx(a,{since:"0.13.0"}),` `,o.jsx("br",{}),` `,o.jsx(r.h2,{id:"example",children:"Example"}),` diff --git a/nightly/assets/Bar-B_33zrIC.js b/nightly/assets/Bar-q5FBzFhv.js similarity index 80% rename from nightly/assets/Bar-B_33zrIC.js rename to nightly/assets/Bar-q5FBzFhv.js index b5534cf2e2..529589abe7 100644 --- a/nightly/assets/Bar-B_33zrIC.js +++ b/nightly/assets/Bar-q5FBzFhv.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as e}from"./index-CcnH5Kt0.js";import{ae as n,af as m}from"./index-BTZqIHVs.js";import"./index-D9yJfDXX.js";import"./index-C76FDbj7.js";import{C as s}from"./ControlsWithNote-BxJ65CsC.js";import{D as a}from"./DocsHeader-1j-Nmm97.js";import{F as x}from"./CommandsAndQueries-CaebgOF-.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as c,D as i,W as h}from"./Bar.stories-RDou2T-z.js";import"./iframe-BiG39OSh.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-DK7lmrjm.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-LTAANROC.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CHRhtey3.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-DmoPyW9s.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-DYGApiRr.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./BarDesign-BLoXVb05.js";import"./nav-back-DgQ3nuRb.js";import"./index-RlyTwMZE.js";import"./Input-u9rwYWjF.js";import"./ValueState-Bg0UWejw.js";import"./ResponsivePopoverCommon.css-D-A5aToF.js";import"./ValueStateMessage.css-QVpbuZ5I.js";import"./Suggestions.css-Dj9ke65d.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./index-BuNglZ6G.js";import"./index-BOwHDydy.js";function p(r){const t={h1:"h1",h2:"h2",...e(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:c}),` +import{j as o}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as e}from"./index-CcnH5Kt0.js";import{ae as n,af as m}from"./index-DF88Vfek.js";import"./index-D9yJfDXX.js";import"./index-CiCDi3h8.js";import{C as s}from"./ControlsWithNote-CXZY75qB.js";import{D as a}from"./DocsHeader-CXgpumkn.js";import{F as x}from"./CommandsAndQueries-fTvyWV95.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-acGyIFev.js";import{C as c,D as i,W as h}from"./Bar.stories-B7xeOTnn.js";import"./iframe-kRb-Lw1F.js";import"../sb-preview/runtime.js";import"./index-sbqOYYIm.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./withWebComponent-v3aPz19k.js";import"./utils-BWMMwCMQ.js";import"./useIsomorphicLayoutEffect-yry-y2Q-.js";import"./slot-_4yKMUwC.js";import"./event-BX8i4Y_x.js";import"./i18n-DEVDpFvK.js";import"./decline-m373cvJP.js";import"./Icon-Bq3V4Dpj.js";import"./Keys-DoZifIQ_.js";import"./parameters-bundle.css-R51uC6BG.js";import"./i18n-defaults-neJWcM66.js";import"./information-BZEj3R5z.js";import"./alert-C_n2K4SQ.js";import"./class-map-CH6JYcvP.js";import"./Button-BOw4gYNT.js";import"./AriaLabelHelper-C5uDZewF.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BxgbG8pQ.js";import"./i18n-defaults-CMHHS2wK.js";import"./TagDesign-Dou_yO3g.js";import"./utils-7RSyx66T.js";import"./main-Dcm2jhNK.js";import"./index-le1LDJU4.js";import"./Tag-C2md_B1U.js";import"./sys-help-2-SBEgXGVK.js";import"./index-ziIcWBHz.js";import"./Popover-DNjdezPs.js";import"./PopupsCommon.css-WLQXQ1BG.js";import"./FocusableElements-CvTAVvdZ.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-40ebLclU.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-D4Rgk784.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-CUAyzcJr.js";import"./Link-CaNG8aKk.js";import"./chunk-NUUEMKO5-CiBeweD-.js";import"./client-BzooOYO_.js";import"./copy-D2YPqkc4.js";import"./copy-C9H6Zlih.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-TNI-4ed_.js";import"./index-CviwTqIE.js";import"./I18nStore-C5VicRCB.js";import"./useStylesheet-BXpvj2j9.js";import"./index-NsU9pK7A.js";import"./index-D5soTVf3.js";import"./Label-DdUk4dNr.js";import"./index-het569gt.js";import"./index-jVoXpPWr.js";import"./addCustomCSSWithScoping-BWTAHsoK.js";import"./index-X9t538J9.js";import"./BusyIndicator-FUNbKGLu.js";import"./index-CkXQ_HSf.js";import"./index-BRIQar7A.js";import"./Avatar-cCdUUE_c.js";import"./employee-CICz8oty.js";import"./BarDesign-BLoXVb05.js";import"./nav-back-DgQ3nuRb.js";import"./index-RlyTwMZE.js";import"./Input-u9rwYWjF.js";import"./ValueState-Bg0UWejw.js";import"./ResponsivePopoverCommon.css-D-A5aToF.js";import"./ValueStateMessage.css-QVpbuZ5I.js";import"./Suggestions.css-Dj9ke65d.js";import"./ResponsivePopover-DHTYZaBG.js";import"./Dialog-Bw4_TdOz.js";import"./index-BuNglZ6G.js";import"./index-BOwHDydy.js";function p(r){const t={h1:"h1",h2:"h2",...e(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(n,{of:c}),` `,o.jsx(a,{since:"0.13.0"}),` `,o.jsx("br",{}),` `,o.jsx(t.h2,{id:"example",children:"Example"}),` diff --git a/nightly/assets/Bar.stories-RDou2T-z.js b/nightly/assets/Bar.stories-B7xeOTnn.js similarity index 97% rename from nightly/assets/Bar.stories-RDou2T-z.js rename to nightly/assets/Bar.stories-B7xeOTnn.js index 4e6c0a4ec2..ad03f14340 100644 --- a/nightly/assets/Bar.stories-RDou2T-z.js +++ b/nightly/assets/Bar.stories-B7xeOTnn.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DEdD30eg.js";import{G as l}from"./GitHub-Mark-DGRwmqGf.js";import{B as u}from"./BarDesign-BLoXVb05.js";import{B as d}from"./Button-BOw4gYNT.js";import"./withWebComponent-v3aPz19k.js";import"./nav-back-DgQ3nuRb.js";import{B as g}from"./index-DYGApiRr.js";import{I as h}from"./index-RlyTwMZE.js";import{L as x}from"./index-CUAyzcJr.js";import{T as f}from"./index-BuNglZ6G.js";import{B as m}from"./index-BOwHDydy.js";const b="nav-back",B={title:"Layouts & Floorplans / Bar",component:m,argTypes:{startContent:{control:{disable:!0}},children:{control:{disable:!0}},endContent:{control:{disable:!0}}},args:{design:u.Header,startContent:t.jsx("span",{children:"Start Content"}),children:t.jsx("span",{children:"Center Content"}),endContent:t.jsx("span",{children:"End Content"})},tags:["package:@ui5/webcomponents-fiori"]},e={},r={render(p){return t.jsx(m,{...p,startContent:t.jsxs(t.Fragment,{children:[t.jsx(g,{icon:b,design:d.Transparent}),t.jsx("img",{src:"https://raw.githubusercontent.com/SAP/ui5-webcomponents-react/main/assets/Logo-Sticker.png",alt:"logo",style:{marginLeft:"6px",width:"120px"}})]}),endContent:t.jsxs(t.Fragment,{children:[t.jsx(h,{placeholder:"Search"}),t.jsx(x,{style:{marginLeft:"6px"},href:"https://github.com/SAP/ui5-webcomponents-react",target:"_blank",children:t.jsx(l,{})})]}),children:t.jsx(f,{children:"Bar"})})}};var n,o,s;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(o=e.parameters)==null?void 0:o.docs)==null?void 0:s.source}}};var a,i,c;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-DEdD30eg.js";import{G as l}from"./GitHub-Mark-DGRwmqGf.js";import{B as u}from"./BarDesign-BLoXVb05.js";import{B as d}from"./Button-BOw4gYNT.js";import"./withWebComponent-v3aPz19k.js";import"./nav-back-DgQ3nuRb.js";import{B as g}from"./index-het569gt.js";import{I as h}from"./index-RlyTwMZE.js";import{L as x}from"./index-CUAyzcJr.js";import{T as f}from"./index-BuNglZ6G.js";import{B as m}from"./index-BOwHDydy.js";const b="nav-back",B={title:"Layouts & Floorplans / Bar",component:m,argTypes:{startContent:{control:{disable:!0}},children:{control:{disable:!0}},endContent:{control:{disable:!0}}},args:{design:u.Header,startContent:t.jsx("span",{children:"Start Content"}),children:t.jsx("span",{children:"Center Content"}),endContent:t.jsx("span",{children:"End Content"})},tags:["package:@ui5/webcomponents-fiori"]},e={},r={render(p){return t.jsx(m,{...p,startContent:t.jsxs(t.Fragment,{children:[t.jsx(g,{icon:b,design:d.Transparent}),t.jsx("img",{src:"https://raw.githubusercontent.com/SAP/ui5-webcomponents-react/main/assets/Logo-Sticker.png",alt:"logo",style:{marginLeft:"6px",width:"120px"}})]}),endContent:t.jsxs(t.Fragment,{children:[t.jsx(h,{placeholder:"Search"}),t.jsx(x,{style:{marginLeft:"6px"},href:"https://github.com/SAP/ui5-webcomponents-react",target:"_blank",children:t.jsx(l,{})})]}),children:t.jsx(f,{children:"Bar"})})}};var n,o,s;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(o=e.parameters)==null?void 0:o.docs)==null?void 0:s.source}}};var a,i,c;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{ render(args) { return `}function PJ(o,e,t){return t?T`<${R("ui5-icon",e,t)} class="ui5-button-icon" name="${a(this.icon)}" mode="${a(this.iconMode)}" part="icon" ?show-tooltip=${this.showIconTooltip}>`:T``}function RJ(o,e,t){return t?T`<${R("ui5-icon",e,t)} class="ui5-button-end-icon" name="${a(this.endIcon)}" mode="${a(this.endIconMode)}" part="endIcon">`:T``}function OJ(o,e,t){return T``}var LA=DJ;c();u();d();q("@ui5/webcomponents-theming","sap_horizon",async()=>X);q("@ui5/webcomponents","sap_horizon",async()=>re);var $J={packageName:"@ui5/webcomponents",fileName:"themes/Button.css.ts",content:`:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{min-width:var(--_ui5-v2-4-0_button_base_min_width);height:var(--_ui5-v2-4-0_button_base_height);line-height:normal;font-family:var(--_ui5-v2-4-0_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5-v2-4-0_button_text_shadow);border-radius:var(--_ui5-v2-4-0_button_border_radius);cursor:pointer;background-color:var(--sapButton_Background);border:var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);color:var(--sapButton_TextColor);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui5-button-root{min-width:inherit;cursor:inherit;height:100%;width:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;outline:none;padding:0 var(--_ui5-v2-4-0_button_base_padding);position:relative;background:transparent;border:none;color:inherit;text-shadow:inherit;font:inherit;white-space:inherit;overflow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host(:not([hidden]):not([disabled]).ui5_hovered){background:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);color:var(--sapButton_Hover_TextColor)}.ui5-button-icon,.ui5-button-end-icon{color:inherit;flex-shrink:0}.ui5-button-end-icon{margin-inline-start:var(--_ui5-v2-4-0_button_base_icon_margin)}:host([icon-only]:not([has-end-icon])) .ui5-button-root{min-width:auto;padding:0}:host([icon-only]) .ui5-button-text{display:none}.ui5-button-text{outline:none;position:relative;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([has-icon]:not(:empty)) .ui5-button-text{margin-inline-start:var(--_ui5-v2-4-0_button_base_icon_margin)}:host([has-end-icon]:not([has-icon]):empty) .ui5-button-end-icon{margin-inline-start:0}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:unset;cursor:default}:host([has-icon]:not([icon-only]):not([has-end-icon])) .ui5-button-text{min-width:calc(var(--_ui5-v2-4-0_button_base_min_width) - var(--_ui5-v2-4-0_button_base_icon_margin) - 1rem)}:host([disabled]:active){pointer-events:none}:host([desktop]:not([active])) .ui5-button-root:focus-within:after,:host(:not([active])) .ui5-button-root:focus-visible:after,:host([desktop][active][design="Emphasized"]) .ui5-button-root:focus-within:after,:host([active][design="Emphasized"]) .ui5-button-root:focus-visible:after,:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5-v2-4-0_button_focused_border);border-radius:var(--_ui5-v2-4-0_button_focused_border_radius)}:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{border-color:var(--_ui5-v2-4-0_button_pressed_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-4-0_button_emphasized_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:before,:host([design="Emphasized"]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5-v2-4-0_button_emphasized_focused_border_before);border-radius:var(--_ui5-v2-4-0_button_focused_border_radius)}.ui5-button-root::-moz-focus-inner{border:0}bdi{display:block;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([ui5-button][active]:not([disabled]):not([non-interactive])){background-image:none;background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]){background-color:var(--sapButton_Accept_Background);border-color:var(--sapButton_Accept_BorderColor);color:var(--sapButton_Accept_TextColor)}:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Accept_Hover_Background);border-color:var(--sapButton_Accept_Hover_BorderColor);color:var(--sapButton_Accept_Hover_TextColor)}:host([ui5-button][design="Positive"][active]:not([non-interactive])){background-color:var(--sapButton_Accept_Active_Background);border-color:var(--sapButton_Accept_Active_BorderColor);color:var(--sapButton_Accept_Active_TextColor)}:host([design="Negative"]){background-color:var(--sapButton_Reject_Background);border-color:var(--sapButton_Reject_BorderColor);color:var(--sapButton_Reject_TextColor)}:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Reject_Hover_Background);border-color:var(--sapButton_Reject_Hover_BorderColor);color:var(--sapButton_Reject_Hover_TextColor)}:host([ui5-button][design="Negative"][active]:not([non-interactive])){background-color:var(--sapButton_Reject_Active_Background);border-color:var(--sapButton_Reject_Active_BorderColor);color:var(--sapButton_Reject_Active_TextColor)}:host([design="Attention"]){background-color:var(--sapButton_Attention_Background);border-color:var(--sapButton_Attention_BorderColor);color:var(--sapButton_Attention_TextColor)}:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Attention_Hover_Background);border-color:var(--sapButton_Attention_Hover_BorderColor);color:var(--sapButton_Attention_Hover_TextColor)}:host([ui5-button][design="Attention"][active]:not([non-interactive])){background-color:var(--sapButton_Attention_Active_Background);border-color:var(--sapButton_Attention_Active_BorderColor);color:var(--sapButton_Attention_Active_TextColor)}:host([design="Emphasized"]){background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);border-width:var(--_ui5-v2-4-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_TextColor);font-family:var(--sapFontBoldFamily )}:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Emphasized_Hover_Background);border-color:var(--sapButton_Emphasized_Hover_BorderColor);border-width:var(--_ui5-v2-4-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_Hover_TextColor)}:host([ui5-button][design="Empasized"][active]:not([non-interactive])){background-color:var(--sapButton_Emphasized_Active_Background);border-color:var(--sapButton_Emphasized_Active_BorderColor);color:var(--sapButton_Emphasized_Active_TextColor)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-4-0_button_emphasized_focused_border_color);outline:none}:host([design="Emphasized"][desktop][active]:not([non-interactive])) .ui5-button-root:focus-within:after,:host([design="Emphasized"][active]:not([non-interactive])) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-4-0_button_emphasized_focused_active_border_color)}:host([design="Transparent"]){background-color:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor);border-color:var(--sapButton_Lite_BorderColor)}:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Lite_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapButton_Lite_Hover_TextColor)}:host([ui5-button][design="Transparent"][active]:not([non-interactive])){background-color:var(--sapButton_Lite_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([ui5-segmented-button-item][active][desktop]) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item][active]) .ui5-button-root:focus-visible:after,:host([pressed][desktop]) .ui5-button-root:focus-within:after,:host([pressed]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-4-0_button_pressed_focused_border_color);outline:none}:host([ui5-segmented-button-item][desktop]:not(:last-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:last-child)) .ui5-button-root:focus-visible:after{border-top-right-radius:var(--_ui5-v2-4-0_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5-v2-4-0_button_focused_inner_border_radius)}:host([ui5-segmented-button-item][desktop]:not(:first-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:first-child)) .ui5-button-root:focus-visible:after{border-top-left-radius:var(--_ui5-v2-4-0_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5-v2-4-0_button_focused_inner_border_radius)} `},MA=$J;var si=function(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(n=(r<3?s(n):r>3?s(e,t,n):s(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},O5,FA=!1,bf=null,No=O5=class extends le{constructor(){super(),this.design="Default",this.disabled=!1,this.submits=!1,this.accessibilityAttributes={},this.type="Button",this.accessibleRole="Button",this.active=!1,this.iconOnly=!1,this.hasIcon=!1,this.hasEndIcon=!1,this.nonInteractive=!1,this._iconSettings={},this.forcedTabIndex="0",this._isTouch=!1,this._cancelAction=!1,this._deactivate=()=>{bf&&bf._setActiveState(!1)},FA||(document.addEventListener("mouseup",this._deactivate),FA=!0);let e=()=>{this.nonInteractive||this._setActiveState(!0)};this._ontouchstart={handleEvent:e,passive:!0}}onEnterDOM(){rt()&&this.setAttribute("desktop","")}async onBeforeRendering(){this.hasIcon=!!this.icon,this.hasEndIcon=!!this.endIcon,this.iconOnly=this.isIconOnly,this.buttonTitle=this.tooltip||await this.getDefaultTooltip()}_onclick(){this.nonInteractive||(this._isSubmit&&Es(this),this._isReset&&a8(this),Pc()&&this.getDomRef()?.focus())}_onmousedown(){this.nonInteractive||(this._setActiveState(!0),bf=this)}_ontouchend(e){this.disabled&&(e.preventDefault(),e.stopPropagation()),this.active&&this._setActiveState(!1),bf&&bf._setActiveState(!1)}_onkeydown(e){this._cancelAction=f5(e)||_o(e),ve(e)||Te(e)?this._setActiveState(!0):this._cancelAction&&this._setActiveState(!1)}_onkeyup(e){this._cancelAction&&e.preventDefault(),(ve(e)||Te(e))&&this.active&&this._setActiveState(!1)}_onfocusout(){this.nonInteractive||this.active&&this._setActiveState(!1)}_setActiveState(e){this.fireDecoratorEvent("_active-state-change")&&(this.active=e)}get _hasPopup(){return this.accessibilityAttributes.hasPopup}get hasButtonType(){return this.design!==bt.Default&&this.design!==bt.Transparent}get iconMode(){return this.icon?Bi.Decorative:""}get endIconMode(){return this.endIcon?Bi.Decorative:""}get isIconOnly(){return!Os(this.text)}static typeTextMappings(){return{Positive:hT,Negative:mT,Emphasized:fT}}getDefaultTooltip(){if(h_())return ik(this.icon)}get buttonTypeText(){return O5.i18nBundle.getText(O5.typeTextMappings()[this.design])}get effectiveAccRole(){return this.accessibleRole.toLowerCase()}get tabIndexValue(){if(this.disabled)return;let e=this.getAttribute("tabindex");return e||(this.nonInteractive?"-1":this.forcedTabIndex)}get showIconTooltip(){return h_()&&this.iconOnly&&!this.tooltip}get ariaLabelText(){return Et(this)}get ariaDescribedbyText(){return this.hasButtonType?"ui5-button-hiddenText-type":void 0}get _isSubmit(){return this.type===jy.Submit||this.submits}get _isReset(){return this.type===jy.Reset}};si([B()],No.prototype,"design",void 0);si([B({type:Boolean})],No.prototype,"disabled",void 0);si([B()],No.prototype,"icon",void 0);si([B()],No.prototype,"endIcon",void 0);si([B({type:Boolean})],No.prototype,"submits",void 0);si([B()],No.prototype,"tooltip",void 0);si([B()],No.prototype,"accessibleName",void 0);si([B()],No.prototype,"accessibleNameRef",void 0);si([B({type:Object})],No.prototype,"accessibilityAttributes",void 0);si([B()],No.prototype,"type",void 0);si([B()],No.prototype,"accessibleRole",void 0);si([B({type:Boolean})],No.prototype,"active",void 0);si([B({type:Boolean})],No.prototype,"iconOnly",void 0);si([B({type:Boolean})],No.prototype,"hasIcon",void 0);si([B({type:Boolean})],No.prototype,"hasEndIcon",void 0);si([B({type:Boolean})],No.prototype,"nonInteractive",void 0);si([B({noAttribute:!0})],No.prototype,"buttonTitle",void 0);si([B({type:Object})],No.prototype,"_iconSettings",void 0);si([B({noAttribute:!0})],No.prototype,"forcedTabIndex",void 0);si([B({type:Boolean})],No.prototype,"_isTouch",void 0);si([B({type:Boolean,noAttribute:!0})],No.prototype,"_cancelAction",void 0);si([oe({type:Node,default:!0})],No.prototype,"text",void 0);si([pe("@ui5/webcomponents")],No,"i18nBundle",void 0);No=O5=si([K({tag:"ui5-button",formAssociated:!0,languageAware:!0,renderer:de,template:LA,styles:MA,dependencies:[De],shadowRootOptions:{delegatesFocus:!0}}),Y("click",{bubbles:!0}),Y("_active-state-change",{bubbles:!0,cancelable:!0})],No);No.define();var Ze=No;c();u();d();var Wy;(function(o){o.XS="XS",o.S="S",o.M="M",o.L="L",o.XL="XL"})(Wy||(Wy={}));var Cn=Wy;c();u();d();var Gy;(function(o){o.Group="Group",o.Individual="Individual"})(Gy||(Gy={}));var $s=Gy;c();u();d();var Ky;(function(o){o.Accent1="Accent1",o.Accent2="Accent2",o.Accent3="Accent3",o.Accent4="Accent4",o.Accent5="Accent5",o.Accent6="Accent6",o.Accent7="Accent7",o.Accent8="Accent8",o.Accent9="Accent9",o.Accent10="Accent10",o.Placeholder="Placeholder"})(Ky||(Ky={}));var HA=Ky;c();u();d();q("@ui5/webcomponents-theming","sap_horizon",async()=>X);q("@ui5/webcomponents","sap_horizon",async()=>re);var NJ={packageName:"@ui5/webcomponents",fileName:"themes/AvatarGroup.css.ts",content:`:host{-webkit-tap-highlight-color:rgba(0,0,0,0)}:host(:not([hidden])){display:block;width:100%}:host{--_ui5-v2-4-0_button_focused_border: var(--_ui5-v2-4-0_avatar_group_button_focus_border)}.ui5-avatar-group-items:focus{outline:none}:host([type="Group"][desktop]) .ui5-avatar-group-items:focus,:host([type="Group"]) .ui5-avatar-group-items:focus-visible{outline:var(--_ui5-v2-4-0_avatar_outline);outline-offset:var(--_ui5-v2-4-0_avatar_focus_offset);border-radius:var(--_ui5-v2-4-0_avatar_group_focus_border_radius)}.ui5-avatar-group-root{display:flex}.ui5-avatar-group-items{white-space:nowrap;position:relative;display:inline-flex}:host([type="Group"]) .ui5-avatar-group-items{cursor:pointer}:host([type="Group"]) ::slotted([ui5-button]),:host([type="Group"]) ::slotted([ui5-avatar]){pointer-events:none}.ui5-avatar-group-overflow-btn{overflow:visible}.ui5-avatar-group-overflow-btn::part(button){min-width:auto}::slotted([ui5-button]:not([hidden])),.ui5-avatar-group-overflow-btn:not([hidden]){--_ui5-v2-4-0_button_base_padding: 0;border-radius:50%;display:inline-flex;text-overflow:initial;z-index:0}::slotted([ui5-button][desktop]:focus),.ui5-avatar-group-overflow-btn[desktop]:focus{outline:var(--_ui5-v2-4-0_avatar_outline);outline-offset:var(--_ui5-v2-4-0_avatar_overflow_button_focus_offset)}.ui5-avatar-group-overflow-btn::part(button):focus-visible:after{outline:var(--_ui5-v2-4-0_avatar_outline);outline-offset:var(--_ui5-v2-4-0_avatar_focus_offset);border-radius:50%}.ui5-avatar-group-overflow-btn.ui5-avatar-group-overflow-btn-xs{height:2rem;width:2rem;min-width:2rem;font-size:.75rem}::slotted([ui5-button]),.ui5-avatar-group-overflow-btn.ui5-avatar-group-overflow-btn-s{height:3rem;width:3rem;min-width:3rem;font-size:1.125rem}.ui5-avatar-group-overflow-btn.ui5-avatar-group-overflow-btn-m{height:4rem;width:4rem;min-width:4rem;font-size:1.625rem}.ui5-avatar-group-overflow-btn.ui5-avatar-group-overflow-btn-l{height:5rem;width:5rem;min-width:5rem;font-size:2rem}.ui5-avatar-group-overflow-btn.ui5-avatar-group-overflow-btn-xl{height:7rem;width:7rem;min-width:7rem;font-size:2.75rem} `},zA=NJ;c();u();d();function LJ(o,e,t){return T`
${this._customOverflowButton?MJ.call(this,o,e,t):FJ.call(this,o,e,t)}
`}function MJ(o,e,t){return T``}function FJ(o,e,t){return t?T`<${R("ui5-button",e,t)} .accessibilityAttributes="${a(this._overflowButtonAccAttributes)}" accessible-name="${a(this._overflowButtonAriaLabelText)}" ?hidden="${this._overflowBtnHidden}" ?non-interactive=${this._isGroup} class="${ie(this.classes.overflowButton)}">${a(this._overflowButtonText)}`:T`${a(this._overflowButtonText)}`}var VA=LJ;var f_=function(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(n=(r<3?s(n):r>3?s(e,t,n):s(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},m_,qA="ui5-avatar-group-overflow-btn",HJ=`.${qA}`,zJ={[Cn.XS]:{[$s.Individual]:"0.0625rem",[$s.Group]:"-0.5rem"},[Cn.S]:{[$s.Individual]:"0.125rem",[$s.Group]:"-1.25rem"},[Cn.M]:{[$s.Individual]:"0.125rem",[$s.Group]:"-1.625rem"},[Cn.L]:{[$s.Individual]:"0.125rem",[$s.Group]:" -2rem"},[Cn.XL]:{[$s.Individual]:"0.25rem",[$s.Group]:"-2.75rem"}},Kc=m_=class extends le{constructor(){super(),this.type="Group",this.accessibilityAttributes={},this._colorIndex=0,this._hiddenItems=0,this._itemNavigation=new wo(this,{getItemsCallback:()=>this._isGroup?[]:this.items.slice(0,this._hiddenStartIndex)}),this._onResizeHandler=this._onResize.bind(this)}get hiddenItems(){return this.items.slice(this._hiddenStartIndex)}get colorScheme(){return this.items.map(e=>e.\u0435ffectiveBackgroundColor)}get _customOverflowButton(){return this.overflowButton.length?this.overflowButton[0]:void 0}get _ariaLabelText(){let e=this.hiddenItems.length,t=this._isGroup?tT:eT,i=m_.i18nBundle.getText(t);return i+=` ${m_.i18nBundle.getText(JS,this._itemsCount-e,e)}`,this._isGroup?i+=` ${m_.i18nBundle.getText(Hb)}`:i+=` ${m_.i18nBundle.getText(oT)}`,i}get _overflowButtonAriaLabelText(){return this._isGroup?void 0:m_.i18nBundle.getText(Hb)}get _containerAriaHasPopup(){return this._isGroup?this._getAriaHasPopup():void 0}get _overflowButtonAccAttributes(){return{hasPopup:this._isGroup?void 0:this._getAriaHasPopup()}}get _role(){return this._isGroup?"button":"group"}get _hiddenStartIndex(){return this._itemsCount-this._hiddenItems}get _overflowBtnHidden(){return this._hiddenItems===0}get _isGroup(){return this.type===$s.Group}get _itemsCount(){return this.items.length}get _groupTabIndex(){return this._isGroup?"0":"-1"}get _overflowButton(){return this.shadowRoot.querySelector(HJ)}get _overflowButtonEffectiveWidth(){let e=this._customOverflowButton?this._customOverflowButton:this._overflowButton;if(!e)return 0;if(this._isGroup){let t=this.items[1],i=t.offsetLeft-this.offsetLeft;return(!t||t.hidden)&&(t=e),this.effectiveDir==="rtl"?this._getWidthToItem(t):i}return e.offsetWidth}get firstAvatarSize(){return this.items[0]?.size??Cn.S}get classes(){return{overflowButton:{"ui5-avatar-group-overflow-btn":!0,"ui5-avatar-group-overflow-btn-xs":this.firstAvatarSize===Cn.XS,"ui5-avatar-group-overflow-btn-s":this.firstAvatarSize===Cn.S,"ui5-avatar-group-overflow-btn-m":this.firstAvatarSize===Cn.M,"ui5-avatar-group-overflow-btn-l":this.firstAvatarSize===Cn.L,"ui5-avatar-group-overflow-btn-xl":this.firstAvatarSize===Cn.XL}}}onAfterRendering(){this._overflowItems()}onBeforeRendering(){this._customOverflowButton&&(this._customOverflowButton.nonInteractive=this._isGroup),this._prepareAvatars()}onEnterDOM(){rt()&&this.setAttribute("desktop",""),He.register(this,this._onResizeHandler)}onExitDOM(){He.deregister(this,this._onResizeHandler)}_onResize(){this._overflowItems()}_onkeydown(e){this._isGroup&&(Te(e)?this._fireGroupEvent(e.target):ve(e)&&e.preventDefault())}_onkeyup(e){!e.shiftKey&&ve(e)&&this._isGroup&&(this._fireGroupEvent(e.target),e.preventDefault())}_fireGroupEvent(e){let t=e.classList.contains(qA)||e===this._customOverflowButton;this.fireDecoratorEvent("click",{targetRef:e,overflowButtonClicked:t})}_onClick(e){let t=e.target,i=t.hasAttribute("ui5-button");e.stopPropagation(),(this._isGroup||i)&&this._fireGroupEvent(t)}_onUI5Click(e){let t=e.target,i=t.hasAttribute("ui5-avatar");e.stopPropagation(),i&&this._fireGroupEvent(t)}_prepareAvatars(){this._colorIndex=0,this.items.forEach((e,t)=>{let i=this._getNextBackgroundColor();e.interactive=!this._isGroup,e.getAttribute("_color-scheme")||e.setAttribute("_color-scheme",HA[`Accent${i}`]),(t!==this._itemsCount-1||this._customOverflowButton)&&(e.style.marginInlineEnd=zJ[e.effectiveSize][this.type])})}_onfocusin(e){this._itemNavigation.setCurrentItem(e.target)}_getWidthToItem(e){let t=this.effectiveDir==="rtl",i=e.offsetLeft-this.offsetLeft;if(t){let r=e.offsetParent;return r?r.offsetWidth-e.offsetLeft-e.offsetWidth:0}return i}_overflowItems(){if(this.items.length<2)return;let e=0;for(let t=0;tthis.offsetWidth){e=this._itemsCount-t;break}}this._setHiddenItems(e)}_getNextBackgroundColor(){return++this._colorIndex>10&&(this._colorIndex=1),this._colorIndex}_setHiddenItems(e){let t=this._hiddenItems!==e;this._hiddenItems=e,this.items.forEach((i,r)=>{i.hidden=r>=this._hiddenStartIndex}),this._overflowButtonText=`+${e>99?99:e}`,t&&this.fireDecoratorEvent("overflow")}_getAriaHasPopup(){return this.accessibilityAttributes.hasPopup}};f_([B()],Kc.prototype,"type",void 0);f_([B({type:Object})],Kc.prototype,"accessibilityAttributes",void 0);f_([B({noAttribute:!0})],Kc.prototype,"_overflowButtonText",void 0);f_([oe({type:HTMLElement,default:!0})],Kc.prototype,"items",void 0);f_([oe()],Kc.prototype,"overflowButton",void 0);f_([pe("@ui5/webcomponents")],Kc,"i18nBundle",void 0);Kc=m_=f_([K({tag:"ui5-avatar-group",renderer:de,template:VA,styles:zA,dependencies:[Ze]}),Y("click",{detail:{targetRef:{type:HTMLElement},overflowButtonClicked:{type:Boolean}}}),Y("overflow")],Kc);Kc.define();var VJ=ee("ui5-avatar-group",["accessibilityAttributes","type"],[],["overflowButton"],["click","overflow"]);VJ.displayName="AvatarGroup";c();u();d();c();u();d();c();u();d();function qJ(o,e,t){return T``}var UA=qJ;c();u();d();q("@ui5/webcomponents-theming","sap_horizon",async()=>X);q("@ui5/webcomponents","sap_horizon",async()=>re);var UJ={packageName:"@ui5/webcomponents",fileName:"themes/Bar.css.ts",content:`:host{background-color:var(--sapPageHeader_Background);height:var(--_ui5-v2-4-0_bar_base_height);width:100%;box-shadow:var(--sapContent_HeaderShadow);display:block}.ui5-bar-root{container-type:size;display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;background-color:inherit;box-shadow:inherit;border-radius:inherit}.ui5-bar-root .ui5-bar-startcontent-container{padding-inline-start:var(--_ui5-v2-4-0_bar-start-container-padding-start);display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.ui5-bar-root .ui5-bar-content-container{min-width:calc(30% - calc(var(--_ui5-v2-4-0_bar-start-container-padding-start) + var(--_ui5-v2-4-0_bar-end-container-padding-end) + (2*var(--_ui5-v2-4-0_bar-mid-container-padding-start-end))))}.ui5-bar-root.ui5-bar-root-shrinked .ui5-bar-content-container{min-width:0px;overflow:hidden;height:100%}.ui5-bar-root .ui5-bar-endcontent-container{padding-inline-end:var(--_ui5-v2-4-0_bar-end-container-padding-end);display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.ui5-bar-root .ui5-bar-midcontent-container{padding:0 var(--_ui5-v2-4-0_bar-mid-container-padding-start-end);display:flex;flex-direction:row;align-items:center;justify-content:center}:host([design="Footer"]){background-color:var(--sapPageFooter_Background);border-top:.0625rem solid var(--sapPageFooter_BorderColor);box-shadow:none}:host([design="Subheader"]){height:var(--_ui5-v2-4-0_bar_subheader_height);margin-top:var(--_ui5-v2-4-0_bar_subheader_margin-top)}:host([design="FloatingFooter"]){border-radius:var(--sapElement_BorderCornerRadius);background-color:var(--sapPageFooter_Background);box-shadow:var(--sapContent_Shadow1);border:none}::slotted(*){margin:0 .25rem}@container (width < 600px){*{--_ui5-v2-4-0_bar-start-container-padding-start: var(--_ui5-v2-4-0_bar-start-container-padding-start_S);--_ui5-v2-4-0_bar-end-container-padding-end: var(--_ui5-v2-4-0_bar-end-container-padding-end_S) }}@container (width > 1439px){*{--_ui5-v2-4-0_bar-start-container-padding-start: var(--_ui5-v2-4-0_bar-start-container-padding-start_XL);--_ui5-v2-4-0_bar-end-container-padding-end: var(--_ui5-v2-4-0_bar-end-container-padding-end_XL)}}